-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.a6a6d462b082fce9.js
1 lines (1 loc) · 983 KB
/
main.a6a6d462b082fce9.js
1
"use strict";(self.webpackChunkMeuSite=self.webpackChunkMeuSite||[]).push([[179],{781:()=>{function nt(n){return"function"==typeof n}function Ma(n){const e=n(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Gc=Ma(n=>function(e){n(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((i,r)=>`${r+1}) ${i.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e});function fo(n,t){if(n){const e=n.indexOf(t);0<=e&&n.splice(e,1)}}class jn{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(const s of e)s.remove(this);else e.remove(this);const{initialTeardown:i}=this;if(nt(i))try{i()}catch(s){t=s instanceof Gc?s.errors:[s]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const s of r)try{Wv(s)}catch(o){t=t??[],o instanceof Gc?t=[...t,...o.errors]:t.push(o)}}if(t)throw new Gc(t)}}add(t){var e;if(t&&t!==this)if(this.closed)Wv(t);else{if(t instanceof jn){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(t)}}_hasParent(t){const{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){const{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&fo(e,t)}remove(t){const{_finalizers:e}=this;e&&fo(e,t),t instanceof jn&&t._removeParent(this)}}jn.EMPTY=(()=>{const n=new jn;return n.closed=!0,n})();const $v=jn.EMPTY;function Uv(n){return n instanceof jn||n&&"closed"in n&&nt(n.remove)&&nt(n.add)&&nt(n.unsubscribe)}function Wv(n){nt(n)?n():n.unsubscribe()}const vs={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Kc={setTimeout(n,t,...e){const{delegate:i}=Kc;return i?.setTimeout?i.setTimeout(n,t,...e):setTimeout(n,t,...e)},clearTimeout(n){const{delegate:t}=Kc;return(t?.clearTimeout||clearTimeout)(n)},delegate:void 0};function Gv(n){Kc.setTimeout(()=>{const{onUnhandledError:t}=vs;if(!t)throw n;t(n)})}function Kv(){}const VO=Mf("C",void 0,void 0);function Mf(n,t,e){return{kind:n,value:t,error:e}}let bs=null;function qc(n){if(vs.useDeprecatedSynchronousErrorHandling){const t=!bs;if(t&&(bs={errorThrown:!1,error:null}),n(),t){const{errorThrown:e,error:i}=bs;if(bs=null,e)throw i}}else n()}class kf extends jn{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Uv(t)&&t.add(this)):this.destination=WO}static create(t,e,i){return new ka(t,e,i)}next(t){this.isStopped?Of(function HO(n){return Mf("N",n,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Of(function BO(n){return Mf("E",void 0,n)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Of(VO,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const jO=Function.prototype.bind;function Af(n,t){return jO.call(n,t)}class $O{constructor(t){this.partialObserver=t}next(t){const{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(i){Yc(i)}}error(t){const{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(i){Yc(i)}else Yc(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){Yc(e)}}}class ka extends kf{constructor(t,e,i){let r;if(super(),nt(t)||!t)r={next:t??void 0,error:e??void 0,complete:i??void 0};else{let s;this&&vs.useDeprecatedNextContext?(s=Object.create(t),s.unsubscribe=()=>this.unsubscribe(),r={next:t.next&&Af(t.next,s),error:t.error&&Af(t.error,s),complete:t.complete&&Af(t.complete,s)}):r=t}this.destination=new $O(r)}}function Yc(n){vs.useDeprecatedSynchronousErrorHandling?function zO(n){vs.useDeprecatedSynchronousErrorHandling&&bs&&(bs.errorThrown=!0,bs.error=n)}(n):Gv(n)}function Of(n,t){const{onStoppedNotification:e}=vs;e&&Kc.setTimeout(()=>e(n,t))}const WO={closed:!0,next:Kv,error:function UO(n){throw n},complete:Kv},Pf="function"==typeof Symbol&&Symbol.observable||"@@observable";function ws(n){return n}function qv(n){return 0===n.length?ws:1===n.length?n[0]:function(e){return n.reduce((i,r)=>r(i),e)}}let St=(()=>{class n{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new n;return i.source=this,i.operator=e,i}subscribe(e,i,r){const s=function qO(n){return n&&n instanceof kf||function KO(n){return n&&nt(n.next)&&nt(n.error)&&nt(n.complete)}(n)&&Uv(n)}(e)?e:new ka(e,i,r);return qc(()=>{const{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(e){try{return this._subscribe(e)}catch(i){e.error(i)}}forEach(e,i){return new(i=Yv(i))((r,s)=>{const o=new ka({next:a=>{try{e(a)}catch(l){s(l),o.unsubscribe()}},error:s,complete:r});this.subscribe(o)})}_subscribe(e){var i;return null===(i=this.source)||void 0===i?void 0:i.subscribe(e)}[Pf](){return this}pipe(...e){return qv(e)(this)}toPromise(e){return new(e=Yv(e))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=t=>new n(t),n})();function Yv(n){var t;return null!==(t=n??vs.Promise)&&void 0!==t?t:Promise}const YO=Ma(n=>function(){n(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Pt=(()=>{class n extends St{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new Qv(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new YO}next(e){qc(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){qc(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=e;const{observers:i}=this;for(;i.length;)i.shift().error(e)}})}complete(){qc(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:e}=this;for(;e.length;)e.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var e;return(null===(e=this.observers)||void 0===e?void 0:e.length)>0}_trySubscribe(e){return this._throwIfClosed(),super._trySubscribe(e)}_subscribe(e){return this._throwIfClosed(),this._checkFinalizedStatuses(e),this._innerSubscribe(e)}_innerSubscribe(e){const{hasError:i,isStopped:r,observers:s}=this;return i||r?$v:(this.currentObservers=null,s.push(e),new jn(()=>{this.currentObservers=null,fo(s,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:s}=this;i?e.error(r):s&&e.complete()}asObservable(){const e=new St;return e.source=this,e}}return n.create=(t,e)=>new Qv(t,e),n})();class Qv extends Pt{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,t)}error(t){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,t)}complete(){var t,e;null===(e=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===e||e.call(t)}_subscribe(t){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(t))&&void 0!==i?i:$v}}function Zv(n){return nt(n?.lift)}function Yt(n){return t=>{if(Zv(t))return t.lift(function(e){try{return n(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function Bt(n,t,e,i,r){return new QO(n,t,e,i,r)}class QO extends kf{constructor(t,e,i,r,s,o){super(t),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=e?function(a){try{e(a)}catch(l){t.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function Me(n,t){return Yt((e,i)=>{let r=0;e.subscribe(Bt(i,s=>{i.next(n.call(t,s,r++))}))})}function Cs(n){return this instanceof Cs?(this.v=n,this):new Cs(n)}function JO(n,t,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(n,t||[]),s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(h){i[h]&&(r[h]=function(f){return new Promise(function(p,g){s.push([h,f,p,g])>1||a(h,f)})})}function a(h,f){try{!function l(h){h.value instanceof Cs?Promise.resolve(h.value.v).then(c,u):d(s[0][2],h)}(i[h](f))}catch(p){d(s[0][3],p)}}function c(h){a("next",h)}function u(h){a("throw",h)}function d(h,f){h(f),s.shift(),s.length&&a(s[0][0],s[0][1])}}function eP(n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,t=n[Symbol.asyncIterator];return t?t.call(n):(n=function eb(n){var t="function"==typeof Symbol&&Symbol.iterator,e=t&&n[t],i=0;if(e)return e.call(n);if(n&&"number"==typeof n.length)return{next:function(){return n&&i>=n.length&&(n=void 0),{value:n&&n[i++],done:!n}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(n),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(s){e[s]=n[s]&&function(o){return new Promise(function(a,l){!function r(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}(a,l,(o=n[s](o)).done,o.value)})}}}const tb=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function nb(n){return nt(n?.then)}function ib(n){return nt(n[Pf])}function rb(n){return Symbol.asyncIterator&&nt(n?.[Symbol.asyncIterator])}function sb(n){return new TypeError(`You provided ${null!==n&&"object"==typeof n?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const ob=function nP(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function ab(n){return nt(n?.[ob])}function lb(n){return JO(this,arguments,function*(){const e=n.getReader();try{for(;;){const{value:i,done:r}=yield Cs(e.read());if(r)return yield Cs(void 0);yield yield Cs(i)}}finally{e.releaseLock()}})}function cb(n){return nt(n?.getReader)}function bi(n){if(n instanceof St)return n;if(null!=n){if(ib(n))return function iP(n){return new St(t=>{const e=n[Pf]();if(nt(e.subscribe))return e.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(n);if(tb(n))return function rP(n){return new St(t=>{for(let e=0;e<n.length&&!t.closed;e++)t.next(n[e]);t.complete()})}(n);if(nb(n))return function sP(n){return new St(t=>{n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,Gv)})}(n);if(rb(n))return ub(n);if(ab(n))return function oP(n){return new St(t=>{for(const e of n)if(t.next(e),t.closed)return;t.complete()})}(n);if(cb(n))return function aP(n){return ub(lb(n))}(n)}throw sb(n)}function ub(n){return new St(t=>{(function lP(n,t){var e,i,r,s;return function ZO(n,t,e,i){return new(e||(e=Promise))(function(s,o){function a(u){try{c(i.next(u))}catch(d){o(d)}}function l(u){try{c(i.throw(u))}catch(d){o(d)}}function c(u){u.done?s(u.value):function r(s){return s instanceof e?s:new e(function(o){o(s)})}(u.value).then(a,l)}c((i=i.apply(n,t||[])).next())})}(this,void 0,void 0,function*(){try{for(e=eP(n);!(i=yield e.next()).done;)if(t.next(i.value),t.closed)return}catch(o){r={error:o}}finally{try{i&&!i.done&&(s=e.return)&&(yield s.call(e))}finally{if(r)throw r.error}}t.complete()})})(n,t).catch(e=>t.error(e))})}function tr(n,t,e,i=0,r=!1){const s=t.schedule(function(){e(),r?n.add(this.schedule(null,i)):this.unsubscribe()},i);if(n.add(s),!r)return s}function nn(n,t,e=1/0){return nt(t)?nn((i,r)=>Me((s,o)=>t(i,s,r,o))(bi(n(i,r))),e):("number"==typeof t&&(e=t),Yt((i,r)=>function cP(n,t,e,i,r,s,o,a){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&t.complete()},f=g=>c<i?p(g):l.push(g),p=g=>{s&&t.next(g),c++;let y=!1;bi(e(g,u++)).subscribe(Bt(t,C=>{r?.(C),s?f(C):t.next(C)},()=>{y=!0},void 0,()=>{if(y)try{for(c--;l.length&&c<i;){const C=l.shift();o?tr(t,o,()=>p(C)):p(C)}h()}catch(C){t.error(C)}}))};return n.subscribe(Bt(t,f,()=>{d=!0,h()})),()=>{a?.()}}(i,r,n,e)))}function po(n=1/0){return nn(ws,n)}const nr=new St(n=>n.complete());function db(n){return n&&nt(n.schedule)}function Ff(n){return n[n.length-1]}function hb(n){return nt(Ff(n))?n.pop():void 0}function Aa(n){return db(Ff(n))?n.pop():void 0}function fb(n,t=0){return Yt((e,i)=>{e.subscribe(Bt(i,r=>tr(i,n,()=>i.next(r),t),()=>tr(i,n,()=>i.complete(),t),r=>tr(i,n,()=>i.error(r),t)))})}function pb(n,t=0){return Yt((e,i)=>{i.add(n.schedule(()=>e.subscribe(i),t))})}function gb(n,t){if(!n)throw new Error("Iterable cannot be null");return new St(e=>{tr(e,t,()=>{const i=n[Symbol.asyncIterator]();tr(e,t,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Rt(n,t){return t?function _P(n,t){if(null!=n){if(ib(n))return function hP(n,t){return bi(n).pipe(pb(t),fb(t))}(n,t);if(tb(n))return function pP(n,t){return new St(e=>{let i=0;return t.schedule(function(){i===n.length?e.complete():(e.next(n[i++]),e.closed||this.schedule())})})}(n,t);if(nb(n))return function fP(n,t){return bi(n).pipe(pb(t),fb(t))}(n,t);if(rb(n))return gb(n,t);if(ab(n))return function gP(n,t){return new St(e=>{let i;return tr(e,t,()=>{i=n[ob](),tr(e,t,()=>{let r,s;try{({value:r,done:s}=i.next())}catch(o){return void e.error(o)}s?e.complete():e.next(r)},0,!0)}),()=>nt(i?.return)&&i.return()})}(n,t);if(cb(n))return function mP(n,t){return gb(lb(n),t)}(n,t)}throw sb(n)}(n,t):bi(n)}function Lf(n,t,...e){if(!0===t)return void n();if(!1===t)return;const i=new ka({next:()=>{i.unsubscribe(),n()}});return t(...e).subscribe(i)}function et(n){for(let t in n)if(n[t]===et)return t;throw Error("Could not find renamed property on target object.")}function Nf(n,t){for(const e in t)t.hasOwnProperty(e)&&!n.hasOwnProperty(e)&&(n[e]=t[e])}function tt(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(tt).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const t=n.toString();if(null==t)return""+t;const e=t.indexOf("\n");return-1===e?t:t.substring(0,e)}function Vf(n,t){return null==n||""===n?null===t?"":t:null==t||""===t?n:n+" "+t}const bP=et({__forward_ref__:et});function Fe(n){return n.__forward_ref__=Fe,n.toString=function(){return tt(this())},n}function ce(n){return Bf(n)?n():n}function Bf(n){return"function"==typeof n&&n.hasOwnProperty(bP)&&n.__forward_ref__===Fe}function Hf(n){return n&&!!n.\u0275providers}const Qc="https://g.co/ng/security#xss";class L extends Error{constructor(t,e){super(function Zc(n,t){return`NG0${Math.abs(n)}${t?": "+t.trim():""}`}(t,e)),this.code=t}}function ve(n){return"string"==typeof n?n:null==n?"":String(n)}function Xc(n,t){throw new L(-201,!1)}function Un(n,t){null==n&&function Ke(n,t,e,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${e} ${i} ${t} <=Actual]`))}(t,n,null,"!=")}function Z(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function _e(n){return{providers:n.providers||[],imports:n.imports||[]}}function Jc(n){return mb(n,eu)||mb(n,yb)}function mb(n,t){return n.hasOwnProperty(t)?n[t]:null}function _b(n){return n&&(n.hasOwnProperty(zf)||n.hasOwnProperty(MP))?n[zf]:null}const eu=et({\u0275prov:et}),zf=et({\u0275inj:et}),yb=et({ngInjectableDef:et}),MP=et({ngInjectorDef:et});var ue=(()=>((ue=ue||{})[ue.Default=0]="Default",ue[ue.Host=1]="Host",ue[ue.Self=2]="Self",ue[ue.SkipSelf=4]="SkipSelf",ue[ue.Optional=8]="Optional",ue))();let jf;function si(n){const t=jf;return jf=n,t}function vb(n,t,e){const i=Jc(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&ue.Optional?null:void 0!==t?t:void Xc(tt(n))}const it=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Oa={},$f="__NG_DI_FLAG__",tu="ngTempTokenPath",OP=/\n/gm,bb="__source";let Pa;function go(n){const t=Pa;return Pa=n,t}function RP(n,t=ue.Default){if(void 0===Pa)throw new L(-203,!1);return null===Pa?vb(n,void 0,t):Pa.get(n,t&ue.Optional?null:void 0,t)}function K(n,t=ue.Default){return(function kP(){return jf}()||RP)(ce(n),t)}function $e(n,t=ue.Default){return K(n,nu(t))}function nu(n){return typeof n>"u"||"number"==typeof n?n:0|(n.optional&&8)|(n.host&&1)|(n.self&&2)|(n.skipSelf&&4)}function Uf(n){const t=[];for(let e=0;e<n.length;e++){const i=ce(n[e]);if(Array.isArray(i)){if(0===i.length)throw new L(900,!1);let r,s=ue.Default;for(let o=0;o<i.length;o++){const a=i[o],l=FP(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}t.push(K(r,s))}else t.push(K(i))}return t}function Ra(n,t){return n[$f]=t,n.prototype[$f]=t,n}function FP(n){return n[$f]}function Nr(n){return{toString:n}.toString()}var wi=(()=>((wi=wi||{})[wi.OnPush=0]="OnPush",wi[wi.Default=1]="Default",wi))(),Ci=(()=>{return(n=Ci||(Ci={}))[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom",Ci;var n})();const rr={},Ue=[],iu=et({\u0275cmp:et}),Wf=et({\u0275dir:et}),Gf=et({\u0275pipe:et}),Cb=et({\u0275mod:et}),sr=et({\u0275fac:et}),Fa=et({__NG_ELEMENT_ID__:et});let VP=0;function Se(n){return Nr(()=>{const e=!0===n.standalone,i={},r={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===wi.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&n.dependencies||null,getStandaloneInjector:null,selectors:n.selectors||Ue,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Ci.Emulated,id:"c"+VP++,styles:n.styles||Ue,_:null,setInput:null,schemas:n.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},s=n.dependencies,o=n.features;return r.inputs=xb(n.inputs,i),r.outputs=xb(n.outputs),o&&o.forEach(a=>a(r)),r.directiveDefs=s?()=>("function"==typeof s?s():s).map(Sb).filter(Db):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(xn).filter(Db):null,r})}function Sb(n){return qe(n)||un(n)}function Db(n){return null!==n}function be(n){return Nr(()=>({type:n.type,bootstrap:n.bootstrap||Ue,declarations:n.declarations||Ue,imports:n.imports||Ue,exports:n.exports||Ue,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null}))}function xb(n,t){if(null==n)return rr;const e={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=i,t&&(t[r]=s)}return e}const se=Se;function Rn(n){return{type:n.type,name:n.name,factory:null,pure:!1!==n.pure,standalone:!0===n.standalone,onDestroy:n.type.prototype.ngOnDestroy||null}}function qe(n){return n[iu]||null}function un(n){return n[Wf]||null}function xn(n){return n[Gf]||null}function Wn(n,t){const e=n[Cb]||null;if(!e&&!0===t)throw new Error(`Type ${tt(n)} does not have '\u0275mod' property.`);return e}function Fn(n){return Array.isArray(n)&&"object"==typeof n[1]}function Di(n){return Array.isArray(n)&&!0===n[1]}function Yf(n){return 0!=(4&n.flags)}function au(n){return n.componentOffset>-1}function lu(n){return 1==(1&n.flags)}function xi(n){return null!==n.template}function UP(n){return 0!=(256&n[2])}function Ts(n,t){return n.hasOwnProperty(sr)?n[sr]:null}class KP{constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function Zt(){return Ib}function Ib(n){return n.type.prototype.ngOnChanges&&(n.setInput=YP),qP}function qP(){const n=kb(this),t=n?.current;if(t){const e=n.previous;if(e===rr)n.previous=t;else for(let i in t)e[i]=t[i];n.current=null,this.ngOnChanges(t)}}function YP(n,t,e,i){const r=this.declaredInputs[e],s=kb(n)||function QP(n,t){return n[Mb]=t}(n,{previous:rr,current:null}),o=s.current||(s.current={}),a=s.previous,l=a[r];o[r]=new KP(l&&l.currentValue,t,a===rr),n[i]=t}Zt.ngInherit=!0;const Mb="__ngSimpleChanges__";function kb(n){return n[Mb]||null}function Ht(n){for(;Array.isArray(n);)n=n[0];return n}function cu(n,t){return Ht(t[n])}function Kn(n,t){return Ht(t[n.index])}function ep(n,t){return n.data[t]}function bo(n,t){return n[t]}function qn(n,t){const e=t[n];return Fn(e)?e:e[0]}function uu(n){return 64==(64&n[2])}function Vr(n,t){return null==t?null:n[t]}function Ab(n){n[18]=0}function tp(n,t){n[5]+=t;let e=n,i=n[3];for(;null!==i&&(1===t&&1===e[5]||-1===t&&0===e[5]);)i[5]+=t,e=i,i=i[3]}const ye={lFrame:zb(null),bindingsEnabled:!0};function Pb(){return ye.bindingsEnabled}function B(){return ye.lFrame.lView}function Ve(){return ye.lFrame.tView}function T(n){return ye.lFrame.contextLView=n,n[8]}function I(n){return ye.lFrame.contextLView=null,n}function rn(){let n=Rb();for(;null!==n&&64===n.type;)n=n.parent;return n}function Rb(){return ye.lFrame.currentTNode}function Bi(n,t){const e=ye.lFrame;e.currentTNode=n,e.isParent=t}function np(){return ye.lFrame.isParent}function ip(){ye.lFrame.isParent=!1}function En(){const n=ye.lFrame;let t=n.bindingRootIndex;return-1===t&&(t=n.bindingRootIndex=n.tView.bindingStartIndex),t}function or(){return ye.lFrame.bindingIndex}function wo(){return ye.lFrame.bindingIndex++}function ar(n){const t=ye.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+n,e}function dR(n,t){const e=ye.lFrame;e.bindingIndex=e.bindingRootIndex=n,rp(t)}function rp(n){ye.lFrame.currentDirectiveIndex=n}function Vb(){return ye.lFrame.currentQueryIndex}function op(n){ye.lFrame.currentQueryIndex=n}function fR(n){const t=n[1];return 2===t.type?t.declTNode:1===t.type?n[6]:null}function Bb(n,t,e){if(e&ue.SkipSelf){let r=t,s=n;for(;!(r=r.parent,null!==r||e&ue.Host||(r=fR(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;t=r,n=s}const i=ye.lFrame=Hb();return i.currentTNode=t,i.lView=n,!0}function ap(n){const t=Hb(),e=n[1];ye.lFrame=t,t.currentTNode=e.firstChild,t.lView=n,t.tView=e,t.contextLView=n,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function Hb(){const n=ye.lFrame,t=null===n?null:n.child;return null===t?zb(n):t}function zb(n){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=t),t}function jb(){const n=ye.lFrame;return ye.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const $b=jb;function lp(){const n=jb();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function Tn(){return ye.lFrame.selectedIndex}function Is(n){ye.lFrame.selectedIndex=n}function vt(){const n=ye.lFrame;return ep(n.tView,n.selectedIndex)}function du(n,t){for(let e=t.directiveStart,i=t.directiveEnd;e<i;e++){const s=n.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-e,o),a&&((n.contentHooks||(n.contentHooks=[])).push(e,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(e,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-e,l),c&&((n.viewHooks||(n.viewHooks=[])).push(e,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(e,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(e,u)}}function hu(n,t,e){Ub(n,t,3,e)}function fu(n,t,e,i){(3&n[2])===e&&Ub(n,t,e,i)}function cp(n,t){let e=n[2];(3&e)===t&&(e&=2047,e+=1,n[2]=e)}function Ub(n,t,e,i){const s=i??-1,o=t.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=i&&a>=i)break}else t[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(CR(n,e,t,l),n[18]=(4294901760&n[18])+l+2),l++}function CR(n,t,e,i){const r=e[i]<0,s=e[i+1],a=n[r?-e[i]:e[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===t){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class za{constructor(t,e,i){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function dp(n,t,e){let i=0;for(;i<e.length;){const r=e[i];if("number"==typeof r){if(0!==r)break;i++;const s=e[i++],o=e[i++],a=e[i++];n.setAttribute(t,o,a,s)}else{const s=r,o=e[++i];Gb(s)?n.setProperty(t,s,o):n.setAttribute(t,s,o),i++}}return i}function Wb(n){return 3===n||4===n||6===n}function Gb(n){return 64===n.charCodeAt(0)}function $a(n,t){if(null!==t&&0!==t.length)if(null===n||0===n.length)n=t.slice();else{let e=-1;for(let i=0;i<t.length;i++){const r=t[i];"number"==typeof r?e=r:0===e||Kb(n,e,r,null,-1===e||2===e?t[++i]:null)}}return n}function Kb(n,t,e,i,r){let s=0,o=n.length;if(-1===t)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===t){o=-1;break}if(a>t){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,t),s=o+1),n.splice(s++,0,e),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function qb(n){return-1!==n}function Co(n){return 32767&n}function So(n,t){let e=function TR(n){return n>>16}(n),i=t;for(;e>0;)i=i[15],e--;return i}let hp=!0;function pu(n){const t=hp;return hp=n,t}let IR=0;const Hi={};function gu(n,t){const e=pp(n,t);if(-1!==e)return e;const i=t[1];i.firstCreatePass&&(n.injectorIndex=t.length,fp(i.data,n),fp(t,null),fp(i.blueprint,null));const r=mu(n,t),s=n.injectorIndex;if(qb(r)){const o=Co(r),a=So(r,t),l=a[1].data;for(let c=0;c<8;c++)t[s+c]=a[o+c]|l[o+c]}return t[s+8]=r,s}function fp(n,t){n.push(0,0,0,0,0,0,0,0,t)}function pp(n,t){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===t[n.injectorIndex+8]?-1:n.injectorIndex}function mu(n,t){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let e=0,i=null,r=t;for(;null!==r;){if(i=iw(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function gp(n,t,e){!function MR(n,t,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Fa)&&(i=e[Fa]),null==i&&(i=e[Fa]=IR++);const r=255&i;t.data[n+(r>>5)]|=1<<r}(n,t,e)}function Zb(n,t,e){if(e&ue.Optional||void 0!==n)return n;Xc()}function Xb(n,t,e,i){if(e&ue.Optional&&void 0===i&&(i=null),0==(e&(ue.Self|ue.Host))){const r=n[9],s=si(void 0);try{return r?r.get(t,i,e&ue.Optional):vb(t,i,e&ue.Optional)}finally{si(s)}}return Zb(i,0,e)}function Jb(n,t,e,i=ue.Default,r){if(null!==n){if(1024&t[2]){const o=function RR(n,t,e,i,r){let s=n,o=t;for(;null!==s&&null!==o&&1024&o[2]&&!(256&o[2]);){const a=ew(s,o,e,i|ue.Self,Hi);if(a!==Hi)return a;let l=s.parent;if(!l){const c=o[21];if(c){const u=c.get(e,Hi,i);if(u!==Hi)return u}l=iw(o),o=o[15]}s=l}return r}(n,t,e,i,Hi);if(o!==Hi)return o}const s=ew(n,t,e,i,Hi);if(s!==Hi)return s}return Xb(t,e,i,r)}function ew(n,t,e,i,r){const s=function OR(n){if("string"==typeof n)return n.charCodeAt(0)||0;const t=n.hasOwnProperty(Fa)?n[Fa]:void 0;return"number"==typeof t?t>=0?255&t:PR:t}(e);if("function"==typeof s){if(!Bb(t,n,i))return i&ue.Host?Zb(r,0,i):Xb(t,e,i,r);try{const o=s(i);if(null!=o||i&ue.Optional)return o;Xc()}finally{$b()}}else if("number"==typeof s){let o=null,a=pp(n,t),l=-1,c=i&ue.Host?t[16][6]:null;for((-1===a||i&ue.SkipSelf)&&(l=-1===a?mu(n,t):t[a+8],-1!==l&&nw(i,!1)?(o=t[1],a=Co(l),t=So(l,t)):a=-1);-1!==a;){const u=t[1];if(tw(s,a,u.data)){const d=AR(a,t,e,o,i,c);if(d!==Hi)return d}l=t[a+8],-1!==l&&nw(i,t[1].data[a+8]===c)&&tw(s,a,t)?(o=u,a=Co(l),t=So(l,t)):a=-1}}return r}function AR(n,t,e,i,r,s){const o=t[1],a=o.data[n+8],u=_u(a,o,e,null==i?au(a)&&hp:i!=o&&0!=(3&a.type),r&ue.Host&&s===a);return null!==u?Do(t,o,u,a):Hi}function _u(n,t,e,i,r){const s=n.providerIndexes,o=t.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=o[f];if(f<l&&e===p||f>=l&&p.type===e)return f}if(r){const f=o[l];if(f&&xi(f)&&f.type===e)return l}return null}function Do(n,t,e,i){let r=n[e];const s=t.data;if(function SR(n){return n instanceof za}(r)){const o=r;o.resolving&&function wP(n,t){const e=t?`. Dependency path: ${t.join(" > ")} > ${n}`:"";throw new L(-200,`Circular dependency in DI detected for ${n}${e}`)}(function Ge(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():ve(n)}(s[e]));const a=pu(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?si(o.injectImpl):null;Bb(n,i,ue.Default);try{r=n[e]=o.factory(void 0,s,n,i),t.firstCreatePass&&e>=i.directiveStart&&function wR(n,t,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=t.type.prototype;if(i){const o=Ib(t);(e.preOrderHooks||(e.preOrderHooks=[])).push(n,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-n,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n,s))}(e,s[e],t)}finally{null!==l&&si(l),pu(a),o.resolving=!1,$b()}}return r}function tw(n,t,e){return!!(e[t+(n>>5)]&1<<n)}function nw(n,t){return!(n&ue.Self||n&ue.Host&&t)}class xo{constructor(t,e){this._tNode=t,this._lView=e}get(t,e,i){return Jb(this._tNode,this._lView,t,nu(i),e)}}function PR(){return new xo(rn(),B())}function sn(n){return Nr(()=>{const t=n.prototype.constructor,e=t[sr]||mp(t),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[sr]||mp(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function mp(n){return Bf(n)?()=>{const t=mp(ce(n));return t&&t()}:Ts(n)}function iw(n){const t=n[1],e=t.type;return 2===e?t.declTNode:1===e?n[6]:null}const To="__parameters__";function Mo(n,t,e){return Nr(()=>{const i=function _p(n){return function(...e){if(n){const i=n(...e);for(const r in i)this[r]=i[r]}}}(t);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(To)?l[To]:Object.defineProperty(l,To,{value:[]})[To];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return e&&(r.prototype=Object.create(e.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class X{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=Z({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Yn(n,t){void 0===t&&(t=n);for(let e=0;e<n.length;e++){let i=n[e];Array.isArray(i)?(t===n&&(t=n.slice(0,e)),Yn(i,t)):t!==n&&t.push(i)}return t}function Ms(n,t){n.forEach(e=>Array.isArray(e)?Ms(e,t):t(e))}function sw(n,t,e){t>=n.length?n.push(e):n.splice(t,0,e)}function vu(n,t){return t>=n.length-1?n.pop():n.splice(t,1)[0]}function Ga(n,t){const e=[];for(let i=0;i<n;i++)e.push(t);return e}function Qn(n,t,e){let i=ko(n,t);return i>=0?n[1|i]=e:(i=~i,function VR(n,t,e,i){let r=n.length;if(r==t)n.push(e,i);else if(1===r)n.push(i,n[0]),n[0]=e;else{for(r--,n.push(n[r-1],n[r]);r>t;)n[r]=n[r-2],r--;n[t]=e,n[t+1]=i}}(n,i,t,e)),i}function vp(n,t){const e=ko(n,t);if(e>=0)return n[1|e]}function ko(n,t){return function lw(n,t,e){let i=0,r=n.length>>e;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<e];if(t===o)return s<<e;o>t?r=s:i=s+1}return~(r<<e)}(n,t,1)}const Ka=Ra(Mo("Optional"),8),qa=Ra(Mo("SkipSelf"),4);var Ln=(()=>((Ln=Ln||{})[Ln.Important=1]="Important",Ln[Ln.DashCase=2]="DashCase",Ln))();const xp=new Map;let oF=0;const Tp="__ngContext__";function fn(n,t){Fn(t)?(n[Tp]=t[20],function lF(n){xp.set(n[20],n)}(t)):n[Tp]=t}function Mp(n,t){return undefined(n,t)}function Xa(n){const t=n[3];return Di(t)?t[3]:t}function kp(n){return Mw(n[13])}function Ap(n){return Mw(n[4])}function Mw(n){for(;null!==n&&!Di(n);)n=n[4];return n}function Oo(n,t,e,i,r){if(null!=i){let s,o=!1;Di(i)?s=i:Fn(i)&&(o=!0,i=i[0]);const a=Ht(i);0===n&&null!==e?null==r?Fw(t,e,a):ks(t,e,a,r||null,!0):1===n&&null!==e?ks(t,e,a,r||null,!0):2===n?function Vp(n,t,e){const i=Su(n,t);i&&function MF(n,t,e,i){n.removeChild(t,e,i)}(n,i,t,e)}(t,a,o):3===n&&t.destroyNode(a),null!=s&&function OF(n,t,e,i,r){const s=e[7];s!==Ht(e)&&Oo(t,n,i,s,r);for(let a=10;a<e.length;a++){const l=e[a];Ja(l[1],l,n,t,i,s)}}(t,n,s,e,r)}}function Pp(n,t,e){return n.createElement(t,e)}function Aw(n,t){const e=n[9],i=e.indexOf(t),r=t[3];512&t[2]&&(t[2]&=-513,tp(r,-1)),e.splice(i,1)}function Rp(n,t){if(n.length<=10)return;const e=10+t,i=n[e];if(i){const r=i[17];null!==r&&r!==n&&Aw(r,i),t>0&&(n[e-1][4]=i[4]);const s=vu(n,10+t);!function wF(n,t){Ja(n,t,t[11],2,null,null),t[0]=null,t[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-65}return i}function Ow(n,t){if(!(128&t[2])){const e=t[11];e.destroyNode&&Ja(n,t,e,3,null,null),function DF(n){let t=n[13];if(!t)return Fp(n[1],n);for(;t;){let e=null;if(Fn(t))e=t[13];else{const i=t[10];i&&(e=i)}if(!e){for(;t&&!t[4]&&t!==n;)Fn(t)&&Fp(t[1],t),t=t[3];null===t&&(t=n),Fn(t)&&Fp(t[1],t),e=t&&t[4]}t=e}}(t)}}function Fp(n,t){if(!(128&t[2])){t[2]&=-65,t[2]|=128,function IF(n,t){let e;if(null!=n&&null!=(e=n.destroyHooks))for(let i=0;i<e.length;i+=2){const r=t[e[i]];if(!(r instanceof za)){const s=e[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,t),function TF(n,t){const e=n.cleanup,i=t[7];let r=-1;if(null!==e)for(let s=0;s<e.length-1;s+=2)if("string"==typeof e[s]){const o=e[s+3];o>=0?i[r=o]():i[r=-o].unsubscribe(),s+=2}else{const o=i[r=e[s+1]];e[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)(0,i[s])();t[7]=null}}(n,t),1===t[1].type&&t[11].destroy();const e=t[17];if(null!==e&&Di(t[3])){e!==t[3]&&Aw(e,t);const i=t[19];null!==i&&i.detachView(n)}!function cF(n){xp.delete(n[20])}(t)}}function Pw(n,t,e){return function Rw(n,t,e){let i=t;for(;null!==i&&40&i.type;)i=(t=i).parent;if(null===i)return e[0];{const{componentOffset:r}=i;if(r>-1){const{encapsulation:s}=n.data[i.directiveStart+r];if(s===Ci.None||s===Ci.Emulated)return null}return Kn(i,e)}}(n,t.parent,e)}function ks(n,t,e,i,r){n.insertBefore(t,e,i,r)}function Fw(n,t,e){n.appendChild(t,e)}function Lw(n,t,e,i,r){null!==i?ks(n,t,e,i,r):Fw(n,t,e)}function Su(n,t){return n.parentNode(t)}function Nw(n,t,e){return Bw(n,t,e)}let Eu,zp,Tu,Bw=function Vw(n,t,e){return 40&n.type?Kn(n,e):null};function Du(n,t,e,i){const r=Pw(n,i,t),s=t[11],a=Nw(i.parent||t[6],i,t);if(null!=r)if(Array.isArray(e))for(let l=0;l<e.length;l++)Lw(s,r,e[l],a,!1);else Lw(s,r,e,a,!1)}function xu(n,t){if(null!==t){const e=t.type;if(3&e)return Kn(t,n);if(4&e)return Np(-1,n[t.index]);if(8&e){const i=t.child;if(null!==i)return xu(n,i);{const r=n[t.index];return Di(r)?Np(-1,r):Ht(r)}}if(32&e)return Mp(t,n)()||Ht(n[t.index]);{const i=zw(n,t);return null!==i?Array.isArray(i)?i[0]:xu(Xa(n[16]),i):xu(n,t.next)}}return null}function zw(n,t){return null!==t?n[16][6].projection[t.projection]:null}function Np(n,t){const e=10+n+1;if(e<t.length){const i=t[e],r=i[1].firstChild;if(null!==r)return xu(i,r)}return t[7]}function Bp(n,t,e,i,r,s,o){for(;null!=e;){const a=i[e.index],l=e.type;if(o&&0===t&&(a&&fn(Ht(a),i),e.flags|=2),32!=(32&e.flags))if(8&l)Bp(n,t,e.child,i,r,s,!1),Oo(t,n,r,a,s);else if(32&l){const c=Mp(e,i);let u;for(;u=c();)Oo(t,n,r,u,s);Oo(t,n,r,a,s)}else 16&l?jw(n,t,i,e,r,s):Oo(t,n,r,a,s);e=o?e.projectionNext:e.next}}function Ja(n,t,e,i,r,s){Bp(e,i,n.firstChild,t,r,s,!1)}function jw(n,t,e,i,r,s){const o=e[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)Oo(t,n,r,l[c],s);else Bp(n,t,l,o[3],r,s,!0)}function $w(n,t,e){""===e?n.removeAttribute(t,"class"):n.setAttribute(t,"class",e)}function Uw(n,t,e){const{mergedAttrs:i,classes:r,styles:s}=e;null!==i&&dp(n,t,i),null!==r&&$w(n,t,r),null!==s&&function RF(n,t,e){n.setAttribute(t,"style",e)}(n,t,s)}function As(n){return function Hp(){if(void 0===Eu&&(Eu=null,it.trustedTypes))try{Eu=it.trustedTypes.createPolicy("angular",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Eu}()?.createHTML(n)||n}function jp(){if(void 0===Tu&&(Tu=null,it.trustedTypes))try{Tu=it.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:n=>n,createScript:n=>n,createScriptURL:n=>n})}catch{}return Tu}function Gw(n){return jp()?.createHTML(n)||n}function qw(n){return jp()?.createScriptURL(n)||n}class Os{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Qc})`}}class BF extends Os{getTypeName(){return"HTML"}}class HF extends Os{getTypeName(){return"Style"}}class zF extends Os{getTypeName(){return"Script"}}class jF extends Os{getTypeName(){return"URL"}}class $F extends Os{getTypeName(){return"ResourceURL"}}function Zn(n){return n instanceof Os?n.changingThisBreaksApplicationSecurity:n}function zi(n,t){const e=function UF(n){return n instanceof Os&&n.getTypeName()||null}(n);if(null!=e&&e!==t){if("ResourceURL"===e&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see ${Qc})`)}return e===t}class QF{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(As(t),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(t):(e.removeChild(e.firstChild),e)}catch{return null}}}class ZF{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const e=this.inertDocument.createElement("html");this.inertDocument.appendChild(e);const i=this.inertDocument.createElement("body");e.appendChild(i)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=As(t),e;const i=this.inertDocument.createElement("body");return i.innerHTML=As(t),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(t){const e=t.attributes;for(let r=e.length-1;0<r;r--){const o=e.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&t.removeAttribute(o)}let i=t.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const JF=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function Iu(n){return(n=String(n)).match(JF)?n:"unsafe:"+n}function lr(n){const t={};for(const e of n.split(","))t[e]=!0;return t}function el(...n){const t={};for(const e of n)for(const i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}const Qw=lr("area,br,col,hr,img,wbr"),Zw=lr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Xw=lr("rp,rt"),$p=el(Qw,el(Zw,lr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),el(Xw,lr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),el(Xw,Zw)),Up=lr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Jw=el(Up,lr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),lr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),e2=lr("script,style,template");class t2{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,i=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let r=this.checkClobberedElement(e,e.nextSibling);if(r){e=r;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!$p.hasOwnProperty(e))return this.sanitizedSomething=!0,!e2.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=t.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!Jw.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;Up[a]&&(l=Iu(l)),this.buf.push(" ",o,'="',e0(l),'"')}return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();$p.hasOwnProperty(e)&&!Qw.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(e0(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${t.outerHTML}`);return e}}const n2=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,r2=/([^\#-~ |!])/g;function e0(n){return n.replace(/&/g,"&").replace(n2,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(r2,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let Mu;function t0(n,t){let e=null;try{Mu=Mu||function Yw(n){const t=new ZF(n);return function XF(){try{return!!(new window.DOMParser).parseFromString(As(""),"text/html")}catch{return!1}}()?new QF(t):t}(n);let i=t?String(t):"";e=Mu.getInertBodyElement(i);let r=5,s=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=s,s=e.innerHTML,e=Mu.getInertBodyElement(i)}while(i!==s);return As((new t2).sanitizeChildren(Wp(e)||e))}finally{if(e){const i=Wp(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function Wp(n){return"content"in n&&function s2(n){return n.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===n.nodeName}(n)?n.content:null}var st=(()=>((st=st||{})[st.NONE=0]="NONE",st[st.HTML=1]="HTML",st[st.STYLE=2]="STYLE",st[st.SCRIPT=3]="SCRIPT",st[st.URL=4]="URL",st[st.RESOURCE_URL=5]="RESOURCE_URL",st))();function tl(n){const t=nl();return t?Gw(t.sanitize(st.HTML,n)||""):zi(n,"HTML")?Gw(Zn(n)):t0(function Ww(){return void 0!==zp?zp:typeof document<"u"?document:void 0}(),ve(n))}function Po(n){const t=nl();return t?t.sanitize(st.URL,n)||"":zi(n,"URL")?Zn(n):Iu(ve(n))}function n0(n){const t=nl();if(t)return qw(t.sanitize(st.RESOURCE_URL,n)||"");if(zi(n,"ResourceURL"))return qw(Zn(n));throw new L(904,!1)}function nl(){const n=B();return n&&n[12]}const ku=new X("ENVIRONMENT_INITIALIZER"),s0=new X("INJECTOR",-1),o0=new X("INJECTOR_DEF_TYPES");class a0{get(t,e=Oa){if(e===Oa){const i=new Error(`NullInjectorError: No provider for ${tt(t)}!`);throw i.name="NullInjectorError",i}return e}}function h2(...n){return{\u0275providers:l0(0,n),\u0275fromNgModule:!0}}function l0(n,...t){const e=[],i=new Set;let r;return Ms(t,s=>{const o=s;Gp(o,e,[],i)&&(r||(r=[]),r.push(o))}),void 0!==r&&c0(r,e),e}function c0(n,t){for(let e=0;e<n.length;e++){const{providers:r}=n[e];Kp(r,s=>{t.push(s)})}}function Gp(n,t,e,i){if(!(n=ce(n)))return!1;let r=null,s=_b(n);const o=!s&&qe(n);if(s||o){if(o&&!o.standalone)return!1;r=n}else{const l=n.ngModule;if(s=_b(l),!s)return!1;r=l}const a=i.has(r);if(o){if(a)return!1;if(i.add(r),o.dependencies){const l="function"==typeof o.dependencies?o.dependencies():o.dependencies;for(const c of l)Gp(c,t,e,i)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let c;i.add(r);try{Ms(s.imports,u=>{Gp(u,t,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&c0(c,t)}if(!a){const c=Ts(r)||(()=>new r);t.push({provide:r,useFactory:c,deps:Ue},{provide:o0,useValue:r,multi:!0},{provide:ku,useValue:()=>K(r),multi:!0})}const l=s.providers;null==l||a||Kp(l,u=>{t.push(u)})}}return r!==n&&void 0!==n.providers}function Kp(n,t){for(let e of n)Hf(e)&&(e=e.\u0275providers),Array.isArray(e)?Kp(e,t):t(e)}const f2=et({provide:String,useValue:et});function qp(n){return null!==n&&"object"==typeof n&&f2 in n}function Ps(n){return"function"==typeof n}const Yp=new X("Set Injector scope."),Au={},g2={};let Qp;function Ou(){return void 0===Qp&&(Qp=new a0),Qp}class cr{}class h0 extends cr{constructor(t,e,i,r){super(),this.parent=e,this.source=i,this.scopes=r,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Xp(t,o=>this.processProvider(o)),this.records.set(s0,Ro(void 0,this)),r.has("environment")&&this.records.set(cr,Ro(void 0,this));const s=this.records.get(Yp);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(o0.multi,Ue,ue.Self))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){this._onDestroyHooks.push(t)}runInContext(t){this.assertNotDestroyed();const e=go(this),i=si(void 0);try{return t()}finally{go(e),si(i)}}get(t,e=Oa,i=ue.Default){this.assertNotDestroyed(),i=nu(i);const r=go(this),s=si(void 0);try{if(!(i&ue.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function b2(n){return"function"==typeof n||"object"==typeof n&&n instanceof X}(t)&&Jc(t);a=l&&this.injectableDefInScope(l)?Ro(Zp(t),Au):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(i&ue.Self?Ou():this.parent).get(t,e=i&ue.Optional&&e===Oa?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[tu]=o[tu]||[]).unshift(tt(t)),r)throw o;return function LP(n,t,e,i){const r=n[tu];throw t[bb]&&r.unshift(t[bb]),n.message=function NP(n,t,e,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.slice(2):n;let r=tt(t);if(Array.isArray(t))r=t.map(tt).join(" -> ");else if("object"==typeof t){let s=[];for(let o in t)if(t.hasOwnProperty(o)){let a=t[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):tt(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${n.replace(OP,"\n ")}`}("\n"+n.message,r,e,i),n.ngTokenPath=r,n[tu]=null,n}(o,t,"R3InjectorError",this.source)}throw o}finally{si(s),go(r)}}resolveInjectorInitializers(){const t=go(this),e=si(void 0);try{const i=this.get(ku.multi,Ue,ue.Self);for(const r of i)r()}finally{go(t),si(e)}}toString(){const t=[],e=this.records;for(const i of e.keys())t.push(tt(i));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new L(205,!1)}processProvider(t){let e=Ps(t=ce(t))?t:ce(t&&t.provide);const i=function _2(n){return qp(n)?Ro(void 0,n.useValue):Ro(f0(n),Au)}(t);if(Ps(t)||!0!==t.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=Ro(void 0,Au,!0),r.factory=()=>Uf(r.multi),this.records.set(e,r)),e=t,r.multi.push(t)}this.records.set(e,i)}hydrate(t,e){return e.value===Au&&(e.value=g2,e.value=e.factory()),"object"==typeof e.value&&e.value&&function v2(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(t){if(!t.providedIn)return!1;const e=ce(t.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function Zp(n){const t=Jc(n),e=null!==t?t.factory:Ts(n);if(null!==e)return e;if(n instanceof X)throw new L(204,!1);if(n instanceof Function)return function m2(n){const t=n.length;if(t>0)throw Ga(t,"?"),new L(204,!1);const e=function TP(n){const t=n&&(n[eu]||n[yb]);if(t){const e=function IP(n){if(n.hasOwnProperty("name"))return n.name;const t=(""+n).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${e}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${e}" class.`),t}return null}(n);return null!==e?()=>e.factory(n):()=>new n}(n);throw new L(204,!1)}function f0(n,t,e){let i;if(Ps(n)){const r=ce(n);return Ts(r)||Zp(r)}if(qp(n))i=()=>ce(n.useValue);else if(function d0(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...Uf(n.deps||[]));else if(function u0(n){return!(!n||!n.useExisting)}(n))i=()=>K(ce(n.useExisting));else{const r=ce(n&&(n.useClass||n.provide));if(!function y2(n){return!!n.deps}(n))return Ts(r)||Zp(r);i=()=>new r(...Uf(n.deps))}return i}function Ro(n,t,e=!1){return{factory:n,value:t,multi:e?[]:void 0}}function Xp(n,t){for(const e of n)Array.isArray(e)?Xp(e,t):e&&Hf(e)?Xp(e.\u0275providers,t):t(e)}class w2{}class p0{}class S2{resolveComponentFactory(t){throw function C2(n){const t=Error(`No component factory found for ${tt(n)}. Did you add it to @NgModule.entryComponents?`);return t.ngComponent=n,t}(t)}}let il=(()=>{class n{}return n.NULL=new S2,n})();function D2(){return Fo(rn(),B())}function Fo(n,t){return new ze(Kn(n,t))}let ze=(()=>{class n{constructor(e){this.nativeElement=e}}return n.__NG_ELEMENT_ID__=D2,n})();function x2(n){return n instanceof ze?n.nativeElement:n}class rl{}let Mn=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function E2(){const n=B(),e=qn(rn().index,n);return(Fn(e)?e:n)[11]}(),n})(),T2=(()=>{class n{}return n.\u0275prov=Z({token:n,providedIn:"root",factory:()=>null}),n})();class sl{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const I2=new sl("15.0.1"),Jp={};function tg(n){return n.ngOriginalError}class Lo{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t);this._console.error("ERROR",t),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(t){let e=t&&tg(t);for(;e&&tg(e);)e=tg(e);return e||null}}function ur(n){return n instanceof Function?n():n}function _0(n,t,e){let i=n.length;for(;;){const r=n.indexOf(t,e);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=t.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}e=r+1}}const y0="ng-template";function B2(n,t,e){let i=0;for(;i<n.length;){let r=n[i++];if(e&&"class"===r){if(r=n[i],-1!==_0(r.toLowerCase(),t,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===t)return!0;return!1}}return!1}function v0(n){return 4===n.type&&n.value!==y0}function H2(n,t,e){return t===(4!==n.type||e?n.value:y0)}function z2(n,t,e){let i=4;const r=n.attrs||[],s=function U2(n){for(let t=0;t<n.length;t++)if(Wb(n[t]))return t;return n.length}(r);let o=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!H2(n,l,e)||""===l&&1===t.length){if(Ei(i))return!1;o=!0}}else{const c=8&i?l:t[++a];if(8&i&&null!==n.attrs){if(!B2(n.attrs,c,e)){if(Ei(i))return!1;o=!0}continue}const d=j2(8&i?"class":l,r,v0(n),e);if(-1===d){if(Ei(i))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==_0(f,c,0)||2&i&&c!==h){if(Ei(i))return!1;o=!0}}}}else{if(!o&&!Ei(i)&&!Ei(l))return!1;if(o&&Ei(l))continue;o=!1,i=l|1&i}}return Ei(i)||o}function Ei(n){return 0==(1&n)}function j2(n,t,e,i){if(null===t)return-1;let r=0;if(i||!e){let s=!1;for(;r<t.length;){const o=t[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=t[++r];for(;"string"==typeof a;)a=t[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function W2(n,t){let e=n.indexOf(4);if(e>-1)for(e++;e<n.length;){const i=n[e];if("number"==typeof i)return-1;if(i===t)return e;e++}return-1}(t,n)}function b0(n,t,e=!1){for(let i=0;i<t.length;i++)if(z2(n,t[i],e))return!0;return!1}function G2(n,t){e:for(let e=0;e<t.length;e++){const i=t[e];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function w0(n,t){return n?":not("+t.trim()+")":t}function K2(n){let t=n[0],e=1,i=2,r="",s=!1;for(;e<n.length;){let o=n[e];if("string"==typeof o)if(2&i){const a=n[++e];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Ei(o)&&(t+=w0(s,r),r=""),i=o,s=s||!Ei(i);e++}return""!==r&&(t+=w0(s,r)),t}const we={};function v(n){C0(Ve(),B(),Tn()+n,!1)}function C0(n,t,e,i){if(!i)if(3==(3&t[2])){const s=n.preOrderCheckHooks;null!==s&&hu(t,s,e)}else{const s=n.preOrderHooks;null!==s&&fu(t,s,0,e)}Is(e)}function E0(n,t=null,e=null,i){const r=T0(n,t,e,i);return r.resolveInjectorInitializers(),r}function T0(n,t=null,e=null,i,r=new Set){const s=[e||Ue,h2(n)];return i=i||("object"==typeof n?void 0:tt(n)),new h0(s,t||Ou(),i||null,r)}let Xn=(()=>{class n{static create(e,i){if(Array.isArray(e))return E0({name:""},i,e,"");{const r=e.name??"";return E0({name:r},e.parent,e.providers,r)}}}return n.THROW_IF_NOT_FOUND=Oa,n.NULL=new a0,n.\u0275prov=Z({token:n,providedIn:"any",factory:()=>K(s0)}),n.__NG_ELEMENT_ID__=-1,n})();function M(n,t=ue.Default){const e=B();return null===e?K(n,t):Jb(rn(),e,ce(n),t)}function og(){throw new Error("invalid")}function Ru(n,t){return n<<17|t<<2}function Ti(n){return n>>17&32767}function ag(n){return 2|n}function dr(n){return(131068&n)>>2}function lg(n,t){return-131069&n|t<<2}function cg(n){return 1|n}function U0(n,t){const e=n.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const r=e[i],s=e[i+1];if(-1!==s){const o=n.data[s];op(r),o.contentQueries(2,t[s],s)}}}function Nu(n,t,e,i,r,s,o,a,l,c,u){const d=t.blueprint.slice();return d[0]=r,d[2]=76|i,(null!==u||n&&1024&n[2])&&(d[2]|=1024),Ab(d),d[3]=d[15]=n,d[8]=e,d[10]=o||n&&n[10],d[11]=a||n&&n[11],d[12]=l||n&&n[12]||null,d[9]=c||n&&n[9]||null,d[6]=s,d[20]=function aF(){return oF++}(),d[21]=u,d[16]=2==t.type?n[16]:d,d}function Bo(n,t,e,i,r){let s=n.data[t];if(null===s)s=function _g(n,t,e,i,r){const s=Rb(),o=np(),l=n.data[t]=function ML(n,t,e,i,r,s){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,e,t,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,t,e,i,r),function uR(){return ye.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=e,s.value=i,s.attrs=r;const o=function Ha(){const n=ye.lFrame,t=n.currentTNode;return n.isParent?t:t.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Bi(s,!0),s}function ol(n,t,e,i){if(0===e)return-1;const r=t.length;for(let s=0;s<e;s++)t.push(i),n.blueprint.push(i),n.data.push(null);return r}function yg(n,t,e){ap(t);try{const i=n.viewQuery;null!==i&&Ig(1,i,e);const r=n.template;null!==r&&W0(n,t,r,1,e),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&U0(n,t),n.staticViewQueries&&Ig(2,n.viewQuery,e);const s=n.components;null!==s&&function EL(n,t){for(let e=0;e<t.length;e++)qL(n,t[e])}(t,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{t[2]&=-5,lp()}}function Vu(n,t,e,i){const r=t[2];if(128!=(128&r)){ap(t);try{Ab(t),function Lb(n){return ye.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==e&&W0(n,t,e,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&hu(t,c,null)}else{const c=n.preOrderHooks;null!==c&&fu(t,c,0,null),cp(t,0)}if(function GL(n){for(let t=kp(n);null!==t;t=Ap(t)){if(!t[2])continue;const e=t[9];for(let i=0;i<e.length;i++){const r=e[i],s=r[3];0==(512&r[2])&&tp(s,1),r[2]|=512}}}(t),function WL(n){for(let t=kp(n);null!==t;t=Ap(t))for(let e=10;e<t.length;e++){const i=t[e],r=i[1];uu(i)&&Vu(r,i,r.template,i[8])}}(t),null!==n.contentQueries&&U0(n,t),o){const c=n.contentCheckHooks;null!==c&&hu(t,c)}else{const c=n.contentHooks;null!==c&&fu(t,c,1),cp(t,1)}!function DL(n,t){const e=n.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)Is(~r);else{const s=r,o=e[++i],a=e[++i];dR(o,s),a(2,t[s])}}}finally{Is(-1)}}(n,t);const a=n.components;null!==a&&function xL(n,t){for(let e=0;e<t.length;e++)KL(n,t[e])}(t,a);const l=n.viewQuery;if(null!==l&&Ig(2,l,i),o){const c=n.viewCheckHooks;null!==c&&hu(t,c)}else{const c=n.viewHooks;null!==c&&fu(t,c,2),cp(t,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),t[2]&=-41,512&t[2]&&(t[2]&=-513,tp(t[3],-1))}finally{lp()}}}function W0(n,t,e,i,r){const s=Tn(),o=2&i;try{Is(-1),o&&t.length>22&&C0(n,t,22,!1),e(i,r)}finally{Is(s)}}function vg(n,t,e){if(Yf(t)){const r=t.directiveEnd;for(let s=t.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,e[s],s)}}}function bg(n,t,e){!Pb()||(function FL(n,t,e,i){const r=e.directiveStart,s=e.directiveEnd;n.firstCreatePass||gu(e,t),fn(i,t);const o=e.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=xi(l);c&&jL(t,e,l);const u=Do(t,n,a,e);fn(u,t),null!==o&&$L(0,a-r,u,l,0,o),c&&(qn(e.index,t)[8]=u)}}(n,t,e,Kn(e,t)),64==(64&e.flags)&&X0(n,t,e))}function wg(n,t,e=Kn){const i=t.localNames;if(null!==i){let r=t.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?e(t,n):n[o];n[r++]=a}}}function G0(n){const t=n.tView;return null===t||t.incompleteFirstPass?n.tView=Cg(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):t}function Cg(n,t,e,i,r,s,o,a,l,c){const u=22+i,d=u+r,h=function TL(n,t){const e=[];for(let i=0;i<t;i++)e.push(i<n?null:we);return e}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof s?s():s,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function K0(n,t,e,i){const r=eC(t);null===e?r.push(i):(r.push(e),n.firstCreatePass&&tC(n).push(i,r.length-1))}function q0(n,t,e,i){for(let r in n)if(n.hasOwnProperty(r)){e=null===e?{}:e;const s=n[r];null===i?Y0(e,t,r,s):i.hasOwnProperty(r)&&Y0(e,t,i[r],s)}return e}function Y0(n,t,e,i){n.hasOwnProperty(e)?n[e].push(t,i):n[e]=[t,i]}function Q0(n,t){const e=qn(t,n);16&e[2]||(e[2]|=32)}function Sg(n,t,e,i){let r=!1;if(Pb()){const s=null===i?null:{"":-1},o=function NL(n,t){const e=n.directiveRegistry;let i=null,r=null;if(e)for(let s=0;s<e.length;s++){const o=e[s];if(b0(t,o.selectors,!1))if(i||(i=[]),xi(o))if(null!==o.findHostDirectiveDefs){const a=[];r=r||new Map,o.findHostDirectiveDefs(o,a,r),i.unshift(...a,o),Dg(n,t,a.length)}else i.unshift(o),Dg(n,t,0);else r=r||new Map,o.findHostDirectiveDefs?.(o,i,r),i.push(o)}return null===i?null:[i,r]}(n,e);let a,l;null===o?a=l=null:[a,l]=o,null!==a&&(r=!0,Z0(n,t,e,a,s,l)),s&&function VL(n,t,e){if(t){const i=n.localNames=[];for(let r=0;r<t.length;r+=2){const s=e[t[r+1]];if(null==s)throw new L(-301,!1);i.push(t[r],s)}}}(e,i,s)}return e.mergedAttrs=$a(e.mergedAttrs,e.attrs),r}function Z0(n,t,e,i,r,s){for(let c=0;c<i.length;c++)gp(gu(e,t),n,i[c].type);!function HL(n,t,e){n.flags|=1,n.directiveStart=t,n.directiveEnd=t+e,n.providerIndexes=t}(e,n.data.length,i.length);for(let c=0;c<i.length;c++){const u=i[c];u.providersResolver&&u.providersResolver(u)}let o=!1,a=!1,l=ol(n,t,i.length,null);for(let c=0;c<i.length;c++){const u=i[c];e.mergedAttrs=$a(e.mergedAttrs,u.hostAttrs),zL(n,e,t,l,u),BL(l,u,r),null!==u.contentQueries&&(e.flags|=4),(null!==u.hostBindings||null!==u.hostAttrs||0!==u.hostVars)&&(e.flags|=64);const d=u.type.prototype;!o&&(d.ngOnChanges||d.ngOnInit||d.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e.index),o=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e.index),a=!0),l++}!function kL(n,t,e){const r=t.directiveEnd,s=n.data,o=t.attrs,a=[];let l=null,c=null;for(let u=t.directiveStart;u<r;u++){const d=s[u],h=e?e.get(d):null,p=h?h.outputs:null;l=q0(d.inputs,u,l,h?h.inputs:null),c=q0(d.outputs,u,c,p);const g=null===l||null===o||v0(t)?null:UL(l,u,o);a.push(g)}null!==l&&(l.hasOwnProperty("class")&&(t.flags|=8),l.hasOwnProperty("style")&&(t.flags|=16)),t.initialInputs=a,t.inputs=l,t.outputs=c}(n,e,s)}function X0(n,t,e){const i=e.directiveStart,r=e.directiveEnd,s=e.index,o=function hR(){return ye.lFrame.currentDirectiveIndex}();try{Is(s);for(let a=i;a<r;a++){const l=n.data[a],c=t[a];rp(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&LL(l,c)}}finally{Is(-1),rp(o)}}function LL(n,t){null!==n.hostBindings&&n.hostBindings(1,t)}function Dg(n,t,e){t.componentOffset=e,(n.components||(n.components=[])).push(t.index)}function BL(n,t,e){if(e){if(t.exportAs)for(let i=0;i<t.exportAs.length;i++)e[t.exportAs[i]]=n;xi(t)&&(e[""]=n)}}function zL(n,t,e,i,r){n.data[i]=r;const s=r.factory||(r.factory=Ts(r.type)),o=new za(s,xi(r),M);n.blueprint[i]=o,e[i]=o,function PL(n,t,e,i,r){const s=r.hostBindings;if(s){let o=n.hostBindingOpCodes;null===o&&(o=n.hostBindingOpCodes=[]);const a=~t.index;(function RL(n){let t=n.length;for(;t>0;){const e=n[--t];if("number"==typeof e&&e<0)return e}return 0})(o)!=a&&o.push(a),o.push(e,i,s)}}(n,t,i,ol(n,e,r.hostVars,we),r)}function jL(n,t,e){const i=Kn(t,n),r=G0(e),s=n[10],o=Bu(n,Nu(n,r,null,e.onPush?32:16,i,t,s,s.createRenderer(i,e),null,null,null));n[t.index]=o}function ji(n,t,e,i,r,s){const o=Kn(n,t);!function xg(n,t,e,i,r,s,o){if(null==s)n.removeAttribute(t,r,e);else{const a=null==o?ve(s):o(s,i||"",r);n.setAttribute(t,r,a,e)}}(t[11],o,s,n.value,e,i,r)}function $L(n,t,e,i,r,s){const o=s[t];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(e,d,c,u):e[u]=d}}}function UL(n,t,e){let i=null,r=0;for(;r<e.length;){const s=e[r];if(0!==s)if(5!==s){if("number"==typeof s)break;if(n.hasOwnProperty(s)){null===i&&(i=[]);const o=n[s];for(let a=0;a<o.length;a+=2)if(o[a]===t){i.push(s,o[a+1],e[r+1]);break}}r+=2}else r+=2;else r+=4}return i}function J0(n,t,e,i){return new Array(n,!0,!1,t,null,0,i,e,null,null)}function KL(n,t){const e=qn(t,n);if(uu(e)){const i=e[1];48&e[2]?Vu(i,e,i.template,e[8]):e[5]>0&&Eg(e)}}function Eg(n){for(let i=kp(n);null!==i;i=Ap(i))for(let r=10;r<i.length;r++){const s=i[r];if(uu(s))if(512&s[2]){const o=s[1];Vu(o,s,o.template,s[8])}else s[5]>0&&Eg(s)}const e=n[1].components;if(null!==e)for(let i=0;i<e.length;i++){const r=qn(e[i],n);uu(r)&&r[5]>0&&Eg(r)}}function qL(n,t){const e=qn(t,n),i=e[1];(function YL(n,t){for(let e=t.length;e<n.blueprint.length;e++)t.push(n.blueprint[e])})(i,e),yg(i,e,e[8])}function Bu(n,t){return n[13]?n[14][4]=t:n[13]=t,n[14]=t,t}function Tg(n){for(;n;){n[2]|=32;const t=Xa(n);if(UP(n)&&!t)return n;n=t}return null}function Hu(n,t,e,i=!0){const r=t[10];r.begin&&r.begin();try{Vu(n,t,n.template,e)}catch(o){throw i&&iC(t,o),o}finally{r.end&&r.end()}}function Ig(n,t,e){op(0),t(n,e)}function eC(n){return n[7]||(n[7]=[])}function tC(n){return n.cleanup||(n.cleanup=[])}function iC(n,t){const e=n[9],i=e?e.get(Lo,null):null;i&&i.handleError(t)}function Mg(n,t,e,i,r){for(let s=0;s<e.length;){const o=e[s++],a=e[s++],l=t[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function hr(n,t,e){const i=cu(t,n);!function kw(n,t,e){n.setValue(t,e)}(n[11],i,e)}function zu(n,t,e){let i=e?n.styles:null,r=e?n.classes:null,s=0;if(null!==t)for(let o=0;o<t.length;o++){const a=t[o];"number"==typeof a?s=a:1==s?r=Vf(r,a):2==s&&(i=Vf(i,a+": "+t[++o]+";"))}e?n.styles=i:n.stylesWithoutHost=i,e?n.classes=r:n.classesWithoutHost=r}function ju(n,t,e,i,r=!1){for(;null!==e;){const s=t[e.index];if(null!==s&&i.push(Ht(s)),Di(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&ju(l[1],l,c,i)}const o=e.type;if(8&o)ju(n,t,e.child,i);else if(32&o){const a=Mp(e,t);let l;for(;l=a();)i.push(l)}else if(16&o){const a=zw(t,e);if(Array.isArray(a))i.push(...a);else{const l=Xa(t[16]);ju(l[1],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}class al{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,e=t[1];return ju(e,t,e.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Di(t)){const e=t[8],i=e?e.indexOf(this):-1;i>-1&&(Rp(t,i),vu(e,i))}this._attachedToViewContainer=!1}Ow(this._lView[1],this._lView)}onDestroy(t){K0(this._lView[1],this._lView,null,t)}markForCheck(){Tg(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Hu(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new L(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function SF(n,t){Ja(n,t,t[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new L(902,!1);this._appRef=t}}class QL extends al{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Hu(t[1],t,t[8],!1)}checkNoChanges(){}get context(){return null}}class kg extends il{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=qe(t);return new ll(e,this.ngModule)}}function rC(n){const t=[];for(let e in n)n.hasOwnProperty(e)&&t.push({propName:n[e],templateName:e});return t}class XL{constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){i=nu(i);const r=this.injector.get(t,Jp,i);return r!==Jp||e===Jp?r:this.parentInjector.get(t,e,i)}}class ll extends p0{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=function q2(n){return n.map(K2).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return rC(this.componentDef.inputs)}get outputs(){return rC(this.componentDef.outputs)}create(t,e,i,r){let s=(r=r||this.ngModule)instanceof cr?r:r?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const o=s?new XL(t,s):t,a=o.get(rl,null);if(null===a)throw new L(407,!1);const l=o.get(T2,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function IL(n,t,e){return n.selectRootElement(t,e===Ci.ShadowDom)}(c,i,this.componentDef.encapsulation):Pp(c,u,function ZL(n){const t=n.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(u)),h=this.componentDef.onPush?288:272,f=Cg(0,null,null,1,0,null,null,null,null,null),p=Nu(null,f,null,h,null,null,a,c,l,o,null);let g,y;ap(p);try{const C=this.componentDef;let x,D=null;C.findHostDirectiveDefs?(x=[],D=new Map,C.findHostDirectiveDefs(C,x,D),x.push(C)):x=[C];const E=function tN(n,t){const e=n[1];return n[22]=t,Bo(e,22,2,"#host",null)}(p,d),k=function nN(n,t,e,i,r,s,o,a){const l=r[1];!function iN(n,t,e,i){for(const r of n)t.mergedAttrs=$a(t.mergedAttrs,r.hostAttrs);null!==t.mergedAttrs&&(zu(t,t.mergedAttrs,!0),null!==e&&Uw(i,e,t))}(i,n,t,o);const c=s.createRenderer(t,e),u=Nu(r,G0(e),null,e.onPush?32:16,r[n.index],n,s,c,a||null,null,null);return l.firstCreatePass&&Dg(l,n,i.length-1),Bu(r,u),r[n.index]=u}(E,d,C,x,p,a,c);y=ep(f,22),d&&function sN(n,t,e,i){if(i)dp(n,e,["ng-version",I2.full]);else{const{attrs:r,classes:s}=function Y2(n){const t=[],e=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&t.push(s,n[++i]):8===r&&e.push(s);else{if(!Ei(r))break;r=s}i++}return{attrs:t,classes:e}}(t.selectors[0]);r&&dp(n,e,r),s&&s.length>0&&$w(n,e,s.join(" "))}}(c,C,d,i),void 0!==e&&function oN(n,t,e){const i=n.projection=[];for(let r=0;r<t.length;r++){const s=e[r];i.push(null!=s?Array.from(s):null)}}(y,this.ngContentSelectors,e),g=function rN(n,t,e,i,r,s){const o=rn(),a=r[1],l=Kn(o,r);Z0(a,r,o,e,null,i);for(let u=0;u<e.length;u++)fn(Do(r,a,o.directiveStart+u,o),r);X0(a,r,o),l&&fn(l,r);const c=Do(r,a,o.directiveStart+o.componentOffset,o);if(n[8]=r[8]=c,null!==s)for(const u of s)u(c,t);return vg(a,o,n),c}(k,C,x,D,p,[aN]),yg(f,p,null)}finally{lp()}return new eN(this.componentType,g,Fo(y,p),p,y)}}class eN extends w2{constructor(t,e,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new QL(r),this.componentType=t}setInput(t,e){const i=this._tNode.inputs;let r;if(null!==i&&(r=i[t])){const s=this._rootLView;Mg(s[1],s,r,t,e),Q0(s,this._tNode.index)}}get injector(){return new xo(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}function aN(){const n=rn();du(B()[1],n)}function Ye(n){let t=function sC(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),e=!0;const i=[n];for(;t;){let r;if(xi(n))r=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new L(903,!1);r=t.\u0275dir}if(r){if(e){i.push(r);const o=n;o.inputs=Ag(n.inputs),o.declaredInputs=Ag(n.declaredInputs),o.outputs=Ag(n.outputs);const a=r.hostBindings;a&&dN(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&cN(n,l),c&&uN(n,c),Nf(n.inputs,r.inputs),Nf(n.declaredInputs,r.declaredInputs),Nf(n.outputs,r.outputs),xi(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===Ye&&(e=!1)}}t=Object.getPrototypeOf(t)}!function lN(n){let t=0,e=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=t+=r.hostVars,r.hostAttrs=$a(r.hostAttrs,e=$a(e,r.hostAttrs))}}(i)}function Ag(n){return n===rr?{}:n===Ue?[]:n}function cN(n,t){const e=n.viewQuery;n.viewQuery=e?(i,r)=>{t(i,r),e(i,r)}:t}function uN(n,t){const e=n.contentQueries;n.contentQueries=e?(i,r,s)=>{t(i,r,s),e(i,r,s)}:t}function dN(n,t){const e=n.hostBindings;n.hostBindings=e?(i,r)=>{t(i,r),e(i,r)}:t}let $u=null;function Rs(){if(!$u){const n=it.Symbol;if(n&&n.iterator)$u=n.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const i=t[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&($u=i)}}}return $u}function cl(n){return!!Og(n)&&(Array.isArray(n)||!(n instanceof Map)&&Rs()in n)}function Og(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function $i(n,t,e){return n[t]=e}function ul(n,t){return n[t]}function pn(n,t,e){return!Object.is(n[t],e)&&(n[t]=e,!0)}function Fs(n,t,e,i){const r=pn(n,t,e);return pn(n,t+1,i)||r}function Uu(n,t,e,i,r){const s=Fs(n,t,e,i);return pn(n,t+2,r)||s}function li(n,t,e,i,r,s){const o=Fs(n,t,e,i);return Fs(n,t+2,r,s)||o}function Ce(n,t,e,i){const r=B();return pn(r,wo(),t)&&(Ve(),ji(vt(),r,n,t,e,i)),Ce}function zo(n,t,e,i){return pn(n,wo(),e)?t+ve(e)+i:we}function S(n,t,e,i,r,s,o,a){const l=B(),c=Ve(),u=n+22,d=c.firstCreatePass?function wN(n,t,e,i,r,s,o,a,l){const c=t.consts,u=Bo(t,n,4,o||null,Vr(c,a));Sg(t,e,u,Vr(c,l)),du(t,u);const d=u.tViews=Cg(2,u,i,r,s,t.directiveRegistry,t.pipeRegistry,null,t.schemas,c);return null!==t.queries&&(t.queries.template(t,u),d.queries=t.queries.embeddedTView(u)),u}(u,c,l,t,e,i,r,s,o):c.data[u];Bi(d,!1);const h=l[11].createComment("");Du(c,l,h,d),fn(h,l),Bu(l,l[u]=J0(h,l,h,d)),lu(d)&&bg(c,l,d),null!=o&&wg(l,d,a)}function ot(n){return bo(function cR(){return ye.lFrame.contextLView}(),22+n)}function m(n,t,e){const i=B();return pn(i,wo(),t)&&function Jn(n,t,e,i,r,s,o,a){const l=Kn(t,e);let u,c=t.inputs;!a&&null!=c&&(u=c[i])?(Mg(n,e,u,i,r),au(t)&&Q0(e,t.index)):3&t.type&&(i=function AL(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,t.value||"",i):r,s.setProperty(l,i,r))}(Ve(),vt(),i,n,t,i[11],e,!1),m}function Pg(n,t,e,i,r){const o=r?"class":"style";Mg(n,e,t.inputs[o],o,i)}function b(n,t,e,i){const r=B(),s=Ve(),o=22+n,a=r[11],l=r[o]=Pp(a,t,function bR(){return ye.lFrame.currentNamespace}()),c=s.firstCreatePass?function SN(n,t,e,i,r,s,o){const a=t.consts,c=Bo(t,n,2,r,Vr(a,s));return Sg(t,e,c,Vr(a,o)),null!==c.attrs&&zu(c,c.attrs,!1),null!==c.mergedAttrs&&zu(c,c.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,c),c}(o,s,r,0,t,e,i):s.data[o];return Bi(c,!0),Uw(a,l,c),32!=(32&c.flags)&&Du(s,r,l,c),0===function rR(){return ye.lFrame.elementDepthCount}()&&fn(l,r),function sR(){ye.lFrame.elementDepthCount++}(),lu(c)&&(bg(s,r,c),vg(s,c,r)),null!==i&&wg(r,c),b}function w(){let n=rn();np()?ip():(n=n.parent,Bi(n,!1));const t=n;!function oR(){ye.lFrame.elementDepthCount--}();const e=Ve();return e.firstCreatePass&&(du(e,n),Yf(n)&&e.queries.elementEnd(n)),null!=t.classesWithoutHost&&function xR(n){return 0!=(8&n.flags)}(t)&&Pg(e,t,B(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function ER(n){return 0!=(16&n.flags)}(t)&&Pg(e,t,B(),t.stylesWithoutHost,!1),w}function F(n,t,e,i){return b(n,t,e,i),w(),F}function pe(n,t,e){const i=B(),r=Ve(),s=n+22,o=r.firstCreatePass?function DN(n,t,e,i,r){const s=t.consts,o=Vr(s,i),a=Bo(t,n,8,"ng-container",o);return null!==o&&zu(a,o,!0),Sg(t,e,a,Vr(s,r)),null!==t.queries&&t.queries.elementStart(t,a),a}(s,r,i,t,e):r.data[s];Bi(o,!0);const a=i[s]=i[11].createComment("");return Du(r,i,a,o),fn(a,i),lu(o)&&(bg(r,i,o),vg(r,o,i)),null!=e&&wg(i,o),pe}function ge(){let n=rn();const t=Ve();return np()?ip():(n=n.parent,Bi(n,!1)),t.firstCreatePass&&(du(t,n),Yf(n)&&t.queries.elementEnd(n)),ge}function Y(n,t,e){return pe(n,t,e),ge(),Y}function Q(){return B()}function dl(n){return!!n&&"function"==typeof n.then}const Rg=function yC(n){return!!n&&"function"==typeof n.subscribe};function R(n,t,e,i){const r=B(),s=Ve(),o=rn();return function bC(n,t,e,i,r,s,o){const a=lu(i),c=n.firstCreatePass&&tC(n),u=t[8],d=eC(t);let h=!0;if(3&i.type||o){const g=Kn(i,t),y=o?o(g):g,C=d.length,x=o?E=>o(Ht(E[i.index])):i.index;let D=null;if(!o&&a&&(D=function xN(n,t,e,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===e&&r[s+1]===i){const a=t[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,t,r,i.index)),null!==D)(D.__ngLastListenerFn__||D).__ngNextListenerFn__=s,D.__ngLastListenerFn__=s,h=!1;else{s=CC(i,t,u,s,!1);const E=e.listen(y,r,s);d.push(s,E),c&&c.push(r,x,C,C+1)}}else s=CC(i,t,u,s,!1);const f=i.outputs;let p;if(h&&null!==f&&(p=f[r])){const g=p.length;if(g)for(let y=0;y<g;y+=2){const k=t[p[y]][p[y+1]].subscribe(s),P=d.length;d.push(s,k),c&&c.push(r,i.index,P,-(P+1))}}}(s,r,r[11],o,n,t,i),R}function wC(n,t,e,i){try{return!1!==e(i)}catch(r){return iC(n,r),!1}}function CC(n,t,e,i,r){return function s(o){if(o===Function)return i;Tg(n.componentOffset>-1?qn(n.index,t):t);let l=wC(t,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=wC(t,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function _(n=1){return function pR(n){return(ye.lFrame.contextLView=function gR(n,t){for(;n>0;)t=t[15],n--;return t}(n,ye.lFrame.contextLView))[8]}(n)}function EN(n,t){let e=null;const i=function $2(n){const t=n.attrs;if(null!=t){const e=t.indexOf(5);if(0==(1&e))return t[e+1]}return null}(n);for(let r=0;r<t.length;r++){const s=t[r];if("*"!==s){if(null===i?b0(n,s,!0):G2(i,s))return r}else e=r}return e}function ci(n){const t=B()[16][6];if(!t.projection){const i=t.projection=Ga(n?n.length:1,null),r=i.slice();let s=t.child;for(;null!==s;){const o=n?EN(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function gn(n,t=0,e){const i=B(),r=Ve(),s=Bo(r,22+n,16,null,e||null);null===s.projection&&(s.projection=t),ip(),32!=(32&s.flags)&&function AF(n,t,e){jw(t[11],0,t,e,Pw(n,e,t),Nw(e.parent||t[6],e,t))}(r,i,s)}function OC(n,t,e,i,r){const s=n[e+1],o=null===t;let a=i?Ti(s):dr(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];MN(n[a],t)&&(l=!0,n[a+1]=i?cg(u):ag(u)),a=i?Ti(u):dr(u)}l&&(n[e+1]=i?ag(s):cg(s))}function MN(n,t){return null===n||null==t||(Array.isArray(n)?n[1]:n)===t||!(!Array.isArray(n)||"string"!=typeof t)&&ko(n,t)>=0}const jt={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function PC(n){return n.substring(jt.key,jt.keyEnd)}function kN(n){return n.substring(jt.value,jt.valueEnd)}function RC(n,t){const e=jt.textEnd;return e===t?-1:(t=jt.keyEnd=function PN(n,t,e){for(;t<e&&n.charCodeAt(t)>32;)t++;return t}(n,jt.key=t,e),Yo(n,t,e))}function FC(n,t){const e=jt.textEnd;let i=jt.key=Yo(n,t,e);return e===i?-1:(i=jt.keyEnd=function RN(n,t,e){let i;for(;t<e&&(45===(i=n.charCodeAt(t))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)t++;return t}(n,i,e),i=NC(n,i,e),i=jt.value=Yo(n,i,e),i=jt.valueEnd=function FN(n,t,e){let i=-1,r=-1,s=-1,o=t,a=o;for(;o<e;){const l=n.charCodeAt(o++);if(59===l)return a;34===l||39===l?a=o=VC(n,l,o,e):t===o-4&&85===s&&82===r&&76===i&&40===l?a=o=VC(n,41,o,e):l>32&&(a=o),s=r,r=i,i=-33&l}return a}(n,i,e),NC(n,i,e))}function LC(n){jt.key=0,jt.keyEnd=0,jt.value=0,jt.valueEnd=0,jt.textEnd=n.length}function Yo(n,t,e){for(;t<e&&n.charCodeAt(t)<=32;)t++;return t}function NC(n,t,e,i){return(t=Yo(n,t,e))<e&&t++,t}function VC(n,t,e,i){let r=-1,s=e;for(;s<i;){const o=n.charCodeAt(s++);if(o==t&&92!==r)return s;r=92==o&&92===r?0:o}throw new Error}function fr(n,t,e){return Ii(n,t,e,!1),fr}function jr(n,t){return Ii(n,t,null,!0),jr}function mn(n){Mi(zC,LN,n,!1)}function LN(n,t){for(let e=function ON(n){return LC(n),FC(n,Yo(n,0,jt.textEnd))}(t);e>=0;e=FC(t,e))zC(n,PC(t),kN(t))}function fe(n){Mi(Qn,Ui,n,!0)}function Ui(n,t){for(let e=function AN(n){return LC(n),RC(n,Yo(n,0,jt.textEnd))}(t);e>=0;e=RC(t,e))Qn(n,PC(t),!0)}function Ii(n,t,e,i){const r=B(),s=Ve(),o=ar(2);s.firstUpdatePass&&HC(s,n,o,i),t!==we&&pn(r,o,t)&&jC(s,s.data[Tn()],r,r[11],n,r[o+1]=function $N(n,t){return null==n||("string"==typeof t?n+=t:"object"==typeof n&&(n=tt(Zn(n)))),n}(t,e),i,o)}function Mi(n,t,e,i){const r=Ve(),s=ar(2);r.firstUpdatePass&&HC(r,null,s,i);const o=B();if(e!==we&&pn(o,s,e)){const a=r.data[Tn()];if(UC(a,i)&&!BC(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=Vf(l,e||"")),Pg(r,a,o,e,i)}else!function jN(n,t,e,i,r,s,o,a){r===we&&(r=Ue);let l=0,c=0,u=0<r.length?r[0]:null,d=0<s.length?s[0]:null;for(;null!==u||null!==d;){const h=l<r.length?r[l+1]:void 0,f=c<s.length?s[c+1]:void 0;let g,p=null;u===d?(l+=2,c+=2,h!==f&&(p=d,g=f)):null===d||null!==u&&u<d?(l+=2,p=u):(c+=2,p=d,g=f),null!==p&&jC(n,t,e,i,p,g,o,a),u=l<r.length?r[l]:null,d=c<s.length?s[c]:null}}(r,a,o,o[11],o[s+1],o[s+1]=function zN(n,t,e){if(null==e||""===e)return Ue;const i=[],r=Zn(e);if(Array.isArray(r))for(let s=0;s<r.length;s++)n(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&n(i,s,r[s]);else"string"==typeof r&&t(i,r);return i}(n,t,e),i,s)}}function BC(n,t){return t>=n.expandoStartIndex}function HC(n,t,e,i){const r=n.data;if(null===r[e+1]){const s=r[Tn()],o=BC(n,e);UC(s,i)&&null===t&&!o&&(t=!1),t=function NN(n,t,e,i){const r=function sp(n){const t=ye.lFrame.currentDirectiveIndex;return-1===t?null:n[t]}(n);let s=i?t.residualClasses:t.residualStyles;if(null===r)0===(i?t.classBindings:t.styleBindings)&&(e=hl(e=Lg(null,n,t,e,i),t.attrs,i),s=null);else{const o=t.directiveStylingLast;if(-1===o||n[o]!==r)if(e=Lg(r,n,t,e,i),null===s){let l=function VN(n,t,e){const i=e?t.classBindings:t.styleBindings;if(0!==dr(i))return n[Ti(i)]}(n,t,i);void 0!==l&&Array.isArray(l)&&(l=Lg(null,n,t,l[1],i),l=hl(l,t.attrs,i),function BN(n,t,e,i){n[Ti(e?t.classBindings:t.styleBindings)]=i}(n,t,i,l))}else s=function HN(n,t,e){let i;const r=t.directiveEnd;for(let s=1+t.directiveStylingLast;s<r;s++)i=hl(i,n[s].hostAttrs,e);return hl(i,t.attrs,e)}(n,t,i)}return void 0!==s&&(i?t.residualClasses=s:t.residualStyles=s),e}(r,s,t,i),function TN(n,t,e,i,r,s){let o=s?t.classBindings:t.styleBindings,a=Ti(o),l=dr(o);n[i]=e;let u,c=!1;if(Array.isArray(e)){const d=e;u=d[1],(null===u||ko(d,u)>0)&&(c=!0)}else u=e;if(r)if(0!==l){const h=Ti(n[a+1]);n[i+1]=Ru(h,a),0!==h&&(n[h+1]=lg(n[h+1],i)),n[a+1]=function pL(n,t){return 131071&n|t<<17}(n[a+1],i)}else n[i+1]=Ru(a,0),0!==a&&(n[a+1]=lg(n[a+1],i)),a=i;else n[i+1]=Ru(l,0),0===a?a=i:n[l+1]=lg(n[l+1],i),l=i;c&&(n[i+1]=ag(n[i+1])),OC(n,u,i,!0),OC(n,u,i,!1),function IN(n,t,e,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof t&&ko(s,t)>=0&&(e[i+1]=cg(e[i+1]))}(t,u,n,i,s),o=Ru(a,l),s?t.classBindings=o:t.styleBindings=o}(r,s,t,e,o,i)}}function Lg(n,t,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(s=t[a],i=hl(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(e.directiveStylingLast=a),i}function hl(n,t,e){const i=e?1:2;let r=-1;if(null!==t)for(let s=0;s<t.length;s++){const o=t[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),Qn(n,o,!!e||t[++s]))}return void 0===n?null:n}function zC(n,t,e){Qn(n,t,Zn(e))}function jC(n,t,e,i,r,s,o,a){if(!(3&t.type))return;const l=n.data,c=l[a+1];Wu(function L0(n){return 1==(1&n)}(c)?$C(l,t,e,r,dr(c),o):void 0)||(Wu(s)||function F0(n){return 2==(2&n)}(c)&&(s=$C(l,null,e,r,a,o)),function PF(n,t,e,i,r){if(t)r?n.addClass(e,i):n.removeClass(e,i);else{let s=-1===i.indexOf("-")?void 0:Ln.DashCase;null==r?n.removeStyle(e,i,s):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),s|=Ln.Important),n.setStyle(e,i,r,s))}}(i,o,cu(Tn(),e),r,s))}function $C(n,t,e,i,r,s){const o=null===t;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===we&&(h=d?Ue:void 0);let f=d?vp(h,i):u===i?h:void 0;if(c&&!Wu(f)&&(f=vp(l,i)),Wu(f)&&(a=f,o))return a;const p=n[r+1];r=o?Ti(p):dr(p)}if(null!==t){let l=s?t.residualClasses:t.residualStyles;null!=l&&(a=vp(l,i))}return a}function Wu(n){return void 0!==n}function UC(n,t){return 0!=(n.flags&(t?8:16))}function O(n,t=""){const e=B(),i=Ve(),r=n+22,s=i.firstCreatePass?Bo(i,r,1,t,null):i.data[r],o=e[r]=function Op(n,t){return n.createText(t)}(e[11],t);Du(i,e,o,s),Bi(s,!1)}function ne(n){return Le("",n,""),ne}function Le(n,t,e){const i=B(),r=zo(i,n,t,e);return r!==we&&hr(i,Tn(),r),Le}function ki(n,t,e,i,r){const s=B(),o=function jo(n,t,e,i,r,s){const a=Fs(n,or(),e,r);return ar(2),a?t+ve(e)+i+ve(r)+s:we}(s,n,t,e,i,r);return o!==we&&hr(s,Tn(),o),ki}function Ng(n,t,e,i,r,s,o,a,l){const c=B(),u=function Uo(n,t,e,i,r,s,o,a,l,c){const d=li(n,or(),e,r,o,l);return ar(4),d?t+ve(e)+i+ve(r)+s+ve(o)+a+ve(l)+c:we}(c,n,t,e,i,r,s,o,a,l);return u!==we&&hr(c,Tn(),u),Ng}const Zo="en-US";let h1=Zo;function Hg(n,t,e,i,r){if(n=ce(n),Array.isArray(n))for(let s=0;s<n.length;s++)Hg(n[s],t,e,i,r);else{const s=Ve(),o=B();let a=Ps(n)?n:ce(n.provide),l=f0(n);const c=rn(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(Ps(n)||!n.multi){const f=new za(l,r,M),p=jg(a,t,r?u:u+h,d);-1===p?(gp(gu(c,o),s,a),zg(s,n,t.length),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(f),o.push(f)):(e[p]=f,o[p]=f)}else{const f=jg(a,t,u+h,d),p=jg(a,t,u,u+h),g=f>=0&&e[f],y=p>=0&&e[p];if(r&&!y||!r&&!g){gp(gu(c,o),s,a);const C=function o3(n,t,e,i,r){const s=new za(n,e,M);return s.multi=[],s.index=t,s.componentProviders=0,N1(s,r,i&&!e),s}(r?s3:r3,e.length,r,i,l);!r&&y&&(e[p].providerFactory=C),zg(s,n,t.length,0),t.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(C),o.push(C)}else zg(s,n,f>-1?f:p,N1(e[r?p:f],l,!r&&i));!r&&i&&y&&e[p].componentProviders++}}}function zg(n,t,e,i){const r=Ps(t),s=function p2(n){return!!n.useClass}(t);if(r||s){const l=(s?ce(t.useClass):t).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&t.multi){const u=c.indexOf(e);-1===u?c.push(e,[i,l]):c[u+1].push(i,l)}else c.push(e,l)}}}function N1(n,t,e){return e&&n.componentProviders++,n.multi.push(t)-1}function jg(n,t,e,i){for(let r=e;r<i;r++)if(t[r]===n)return r;return-1}function r3(n,t,e,i){return $g(this.multi,[])}function s3(n,t,e,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Do(e,e[1],this.providerFactory.index,i);s=a.slice(0,o),$g(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],$g(r,s);return s}function $g(n,t){for(let e=0;e<n.length;e++)t.push((0,n[e])());return t}function Be(n,t=[]){return e=>{e.providersResolver=(i,r)=>function i3(n,t,e){const i=Ve();if(i.firstCreatePass){const r=xi(n);Hg(e,i.data,i.blueprint,r,!0),Hg(t,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,t)}}class Ns{}class V1{}class B1 extends Ns{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new kg(this);const i=Wn(t);this._bootstrapComponents=ur(i.bootstrap),this._r3Injector=T0(t,e,[{provide:Ns,useValue:this},{provide:il,useValue:this.componentFactoryResolver}],tt(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Ug extends V1{constructor(t){super(),this.moduleType=t}create(t){return new B1(this.moduleType,t)}}class l3 extends Ns{constructor(t,e,i){super(),this.componentFactoryResolver=new kg(this),this.instance=null;const r=new h0([...t,{provide:Ns,useValue:this},{provide:il,useValue:this.componentFactoryResolver}],e||Ou(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Qu(n,t,e=null){return new l3(n,t,e).injector}let c3=(()=>{class n{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=l0(0,e.type),r=i.length>0?Qu([i],this._injector,`Standalone[${e.type.name}]`):null;this.cachedInjectors.set(e.id,r)}return this.cachedInjectors.get(e.id)}ngOnDestroy(){try{for(const e of this.cachedInjectors.values())null!==e&&e.destroy()}finally{this.cachedInjectors.clear()}}}return n.\u0275prov=Z({token:n,providedIn:"environment",factory:()=>new n(K(cr))}),n})();function H1(n){n.getStandaloneInjector=t=>t.get(c3).getOrCreateStandaloneInjector(n)}function $r(n,t,e){const i=En()+n,r=B();return r[i]===we?$i(r,i,e?t.call(e):t()):ul(r,i)}function oe(n,t,e,i){return function Y1(n,t,e,i,r,s){const o=t+e;return pn(n,o,r)?$i(n,o+1,s?i.call(s,r):i(r)):vl(n,o+1)}(B(),En(),n,t,e,i)}function He(n,t,e,i,r){return function Q1(n,t,e,i,r,s,o){const a=t+e;return Fs(n,a,r,s)?$i(n,a+2,o?i.call(o,r,s):i(r,s)):vl(n,a+2)}(B(),En(),n,t,e,i,r)}function ui(n,t,e,i,r,s){return Z1(B(),En(),n,t,e,i,r,s)}function Ur(n,t,e,i,r,s,o){return function X1(n,t,e,i,r,s,o,a,l){const c=t+e;return li(n,c,r,s,o,a)?$i(n,c+4,l?i.call(l,r,s,o,a):i(r,s,o,a)):vl(n,c+4)}(B(),En(),n,t,e,i,r,s,o)}function yl(n,t,e,i,r,s,o,a){const l=En()+n,c=B(),u=li(c,l,e,i,r,s);return pn(c,l+4,o)||u?$i(c,l+5,a?t.call(a,e,i,r,s,o):t(e,i,r,s,o)):ul(c,l+5)}function Xo(n,t,e,i,r,s,o,a,l){const c=En()+n,u=B(),d=li(u,c,e,i,r,s);return Fs(u,c+4,o,a)||d?$i(u,c+6,l?t.call(l,e,i,r,s,o,a):t(e,i,r,s,o,a)):ul(u,c+6)}function q1(n,t,e,i){return function J1(n,t,e,i,r,s){let o=t+e,a=!1;for(let l=0;l<r.length;l++)pn(n,o++,r[l])&&(a=!0);return a?$i(n,o,i.apply(s,r)):vl(n,o)}(B(),En(),n,t,e,i)}function vl(n,t){const e=n[t];return e===we?void 0:e}function Z1(n,t,e,i,r,s,o,a){const l=t+e;return Uu(n,l,r,s,o)?$i(n,l+3,a?i.call(a,r,s,o):i(r,s,o)):vl(n,l+3)}function Gg(n){return t=>{setTimeout(n,void 0,t)}}const N=class D3 extends Pt{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,i){let r=t,s=e||(()=>null),o=i;if(t&&"object"==typeof t){const l=t;r=l.next?.bind(l),s=l.error?.bind(l),o=l.complete?.bind(l)}this.__isAsync&&(s=Gg(s),r&&(r=Gg(r)),o&&(o=Gg(o)));const a=super.subscribe({next:r,error:s,complete:o});return t instanceof jn&&t.add(a),a}};function x3(){return this._results[Rs()]()}class Kg{constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=Rs(),i=Kg.prototype;i[e]||(i[e]=x3)}get changes(){return this._changes||(this._changes=new N)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,e){const i=this;i.dirty=!1;const r=Yn(t);(this._changesDetected=!function LR(n,t,e){if(n.length!==t.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=t[i];if(e&&(r=e(r),s=e(s)),s!==r)return!1}return!0}(i._results,r,e))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[0])}notifyOnChanges(){this._changes&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}let Ai=(()=>{class n{}return n.__NG_ELEMENT_ID__=I3,n})();const E3=Ai,T3=class extends E3{constructor(t,e,i){super(),this._declarationLView=t,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(t,e){const i=this._declarationTContainer.tViews,r=Nu(this._declarationLView,i,t,16,null,i.declTNode,null,null,null,null,e||null);r[17]=this._declarationLView[this._declarationTContainer.index];const o=this._declarationLView[19];return null!==o&&(r[19]=o.createEmbeddedView(i)),yg(i,r,t),new al(r)}};function I3(){return Zu(rn(),B())}function Zu(n,t){return 4&n.type?new T3(t,n,Fo(n,t)):null}let Oi=(()=>{class n{}return n.__NG_ELEMENT_ID__=M3,n})();function M3(){return rS(rn(),B())}const k3=Oi,nS=class extends k3{constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return Fo(this._hostTNode,this._hostLView)}get injector(){return new xo(this._hostTNode,this._hostLView)}get parentInjector(){const t=mu(this._hostTNode,this._hostLView);if(qb(t)){const e=So(t,this._hostLView),i=Co(t);return new xo(e[1].data[i+8],e)}return new xo(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const e=iS(this._lContainer);return null!==e&&e[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,e,i){let r,s;"number"==typeof i?r=i:null!=i&&(r=i.index,s=i.injector);const o=t.createEmbeddedView(e||{},s);return this.insert(o,r),o}createComponent(t,e,i,r,s){const o=t&&!function Wa(n){return"function"==typeof n}(t);let a;if(o)a=e;else{const d=e||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.environmentInjector||d.ngModuleRef}const l=o?t:new ll(qe(t)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(cr,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(t,e){const i=t._lView,r=i[1];if(function iR(n){return Di(n[3])}(i)){const u=this.indexOf(t);if(-1!==u)this.detach(u);else{const d=i[3],h=new nS(d,d[6],d[3]);h.detach(h.indexOf(t))}}const s=this._adjustIndex(e),o=this._lContainer;!function xF(n,t,e,i){const r=10+i,s=e.length;i>0&&(e[r-1][4]=t),i<s-10?(t[4]=e[r],sw(e,10+i,t)):(e.push(t),t[4]=null),t[3]=e;const o=t[17];null!==o&&e!==o&&function EF(n,t){const e=n[9];t[16]!==t[3][3][16]&&(n[2]=!0),null===e?n[9]=[t]:e.push(t)}(o,t);const a=t[19];null!==a&&a.insertView(n),t[2]|=64}(r,i,o,s);const a=Np(s,o),l=i[11],c=Su(l,o[7]);return null!==c&&function CF(n,t,e,i,r,s){i[0]=r,i[6]=t,Ja(n,i,e,1,r,s)}(r,o[6],l,i,c,a),t.attachToViewContainerRef(),sw(qg(o),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){const e=iS(this._lContainer);return null!==e?e.indexOf(t):-1}remove(t){const e=this._adjustIndex(t,-1),i=Rp(this._lContainer,e);i&&(vu(qg(this._lContainer),e),Ow(i[1],i))}detach(t){const e=this._adjustIndex(t,-1),i=Rp(this._lContainer,e);return i&&null!=vu(qg(this._lContainer),e)?new al(i):null}_adjustIndex(t,e=0){return t??this.length+e}};function iS(n){return n[8]}function qg(n){return n[8]||(n[8]=[])}function rS(n,t){let e;const i=t[n.index];if(Di(i))e=i;else{let r;if(8&n.type)r=Ht(i);else{const s=t[11];r=s.createComment("");const o=Kn(n,t);ks(s,Su(s,o),r,function kF(n,t){return n.nextSibling(t)}(s,o),!1)}t[n.index]=e=J0(i,t,r,n),Bu(t,e)}return new nS(e,n,t)}class Yg{constructor(t){this.queryList=t,this.matches=null}clone(){return new Yg(this.queryList)}setDirty(){this.queryList.setDirty()}}class Qg{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const i=null!==t.contentQueries?t.contentQueries[0]:e.length,r=[];for(let s=0;s<i;s++){const o=e.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new Qg(r)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==cS(t,e).matches&&this.queries[e].setDirty()}}class sS{constructor(t,e,i=null){this.predicate=t,this.flags=e,this.read=i}}class Zg{constructor(t=[]){this.queries=t}elementStart(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,s=this.getByIndex(i).embeddedTView(t,r);s&&(s.indexInDeclarationView=i,null!==e?e.push(s):e=[s])}return null!==e?new Zg(e):null}template(t,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class Xg{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new Xg(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=t.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(t,e,P3(e,s)),this.matchTNodeWithReadOption(t,e,_u(e,t,s,!1,!1))}else i===Ai?4&e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,_u(e,t,i,!1,!1))}matchTNodeWithReadOption(t,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===ze||r===Oi||r===Ai&&4&e.type)this.addMatch(e.index,-2);else{const s=_u(e,t,r,!1,!1);null!==s&&this.addMatch(e.index,s)}else this.addMatch(e.index,i)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function P3(n,t){const e=n.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===t)return e[i+1];return null}function F3(n,t,e,i){return-1===e?function R3(n,t){return 11&n.type?Fo(n,t):4&n.type?Zu(n,t):null}(t,n):-2===e?function L3(n,t,e){return e===ze?Fo(t,n):e===Ai?Zu(t,n):e===Oi?rS(t,n):void 0}(n,t,i):Do(n,n[1],e,t)}function oS(n,t,e,i){const r=t[19].queries[i];if(null===r.matches){const s=n.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:F3(t,s[c],o[l+1],e.metadata.read))}r.matches=a}return r.matches}function Jg(n,t,e,i){const r=n.queries.getByIndex(e),s=r.matches;if(null!==s){const o=oS(n,t,r,e);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=t[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&Jg(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];Jg(f[1],f,c,i)}}}}}return i}function ie(n){const t=B(),e=Ve(),i=Vb();op(i+1);const r=cS(e,i);if(n.dirty&&function nR(n){return 4==(4&n[2])}(t)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?Jg(e,t,i,[]):oS(e,t,r,i);n.reset(s,x2),n.notifyOnChanges()}return!0}return!1}function ke(n,t,e){const i=Ve();i.firstCreatePass&&(lS(i,new sS(n,t,e),-1),2==(2&t)&&(i.staticViewQueries=!0)),aS(i,B(),t)}function $t(n,t,e,i){const r=Ve();if(r.firstCreatePass){const s=rn();lS(r,new sS(t,e,i),s.index),function V3(n,t){const e=n.contentQueries||(n.contentQueries=[]);t!==(e.length?e[e.length-1]:-1)&&e.push(n.queries.length-1,t)}(r,n),2==(2&e)&&(r.staticContentQueries=!0)}aS(r,B(),e)}function re(){return function N3(n,t){return n[19].queries[t].queryList}(B(),Vb())}function aS(n,t,e){const i=new Kg(4==(4&e));K0(n,t,i,i.destroy),null===t[19]&&(t[19]=new Qg),t[19].queries.push(new Yg(i))}function lS(n,t,e){null===n.queries&&(n.queries=new Zg),n.queries.track(new Xg(t,e))}function cS(n,t){return n.queries.getByIndex(t)}function Xt(n,t){return Zu(n,t)}function Ju(...n){}const ed=new X("Application Initializer");let td=(()=>{class n{constructor(e){this.appInits=e,this.resolve=Ju,this.reject=Ju,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const e=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(dl(s))e.push(s);else if(Rg(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(o)}}Promise.all(e).then(()=>{i()}).catch(r=>{this.reject(r)}),0===e.length&&i(),this.initialized=!0}}return n.\u0275fac=function(e){return new(e||n)(K(ed,8))},n.\u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Cl=new X("AppId",{providedIn:"root",factory:function IS(){return`${rm()}${rm()}${rm()}`}});function rm(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const MS=new X("Platform Initializer"),nd=new X("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),kS=new X("appBootstrapListener"),AS=new X("AnimationModuleType");let rB=(()=>{class n{log(e){console.log(e)}warn(e){console.warn(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();const pr=new X("LocaleId",{providedIn:"root",factory:()=>$e(pr,ue.Optional|ue.SkipSelf)||function sB(){return typeof $localize<"u"&&$localize.locale||Zo}()});class aB{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}let sm=(()=>{class n{compileModuleSync(e){return new Ug(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),s=ur(Wn(e).declarations).reduce((o,a)=>{const l=qe(a);return l&&o.push(new ll(l)),o},[]);return new aB(i,s)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const uB=(()=>Promise.resolve(0))();function om(n){typeof Zone>"u"?uB.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class Qe{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new N(!1),this.onMicrotaskEmpty=new N(!1),this.onStable=new N(!1),this.onError=new N(!1),typeof Zone>"u")throw new L(908,!1);Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function dB(){let n=it.requestAnimationFrame,t=it.cancelAnimationFrame;if(typeof Zone<"u"&&n&&t){const e=n[Zone.__symbol__("OriginalDelegate")];e&&(n=e);const i=t[Zone.__symbol__("OriginalDelegate")];i&&(t=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function pB(n){const t=()=>{!function fB(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(it,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,lm(n),n.isCheckStableRunning=!0,am(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),lm(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{try{return RS(n),e.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&t(),FS(n)}},onInvoke:(e,i,r,s,o,a,l)=>{try{return RS(n),e.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&t(),FS(n)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,lm(n),am(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Qe.isInAngularZone())throw new L(909,!1)}static assertNotInAngularZone(){if(Qe.isInAngularZone())throw new L(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,t,hB,Ju,Ju);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}}const hB={};function am(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function lm(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function RS(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function FS(n){n._nesting--,am(n)}class gB{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new N,this.onMicrotaskEmpty=new N,this.onStable=new N,this.onError=new N}run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,r){return t.apply(e,i)}}const LS=new X(""),id=new X("");let dm,cm=(()=>{class n{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,dm||(function mB(n){dm=n}(r),r.addToWindow(i)),this._watchAngularEvents(),e.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Qe.assertNotInAngularZone(),om(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())om(()=>{for(;0!==this._callbacks.length;){let e=this._callbacks.pop();clearTimeout(e.timeoutId),e.doneCb(this._didWork)}this._didWork=!1});else{let e=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(e)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(e=>({source:e.source,creationLocation:e.creationLocation,data:e.data})):[]}addCallback(e,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),e(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:e,timeoutId:s,updateCb:r})}whenStable(e,i,r){if(r&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(e,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(e){this.registry.registerApplication(e,this)}unregisterApplication(e){this.registry.unregisterApplication(e)}findProviders(e,i,r){return[]}}return n.\u0275fac=function(e){return new(e||n)(K(Qe),K(um),K(id))},n.\u0275prov=Z({token:n,factory:n.\u0275fac}),n})(),um=(()=>{class n{constructor(){this._applications=new Map}registerApplication(e,i){this._applications.set(e,i)}unregisterApplication(e){this._applications.delete(e)}unregisterAllApplications(){this._applications.clear()}getTestability(e){return this._applications.get(e)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(e,i=!0){return dm?.findTestabilityInTree(this,e,i)??null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})(),Wr=null;const NS=new X("AllowMultipleToken"),hm=new X("PlatformDestroyListeners");class VS{constructor(t,e){this.name=t,this.token=e}}function HS(n,t,e=[]){const i=`Platform: ${t}`,r=new X(i);return(s=[])=>{let o=fm();if(!o||o.injector.get(NS,!1)){const a=[...e,...s,{provide:r,useValue:!0}];n?n(a):function vB(n){if(Wr&&!Wr.get(NS,!1))throw new L(400,!1);Wr=n;const t=n.get(jS);(function BS(n){const t=n.get(MS,null);t&&t.forEach(e=>e())})(n)}(function zS(n=[],t){return Xn.create({name:t,providers:[{provide:Yp,useValue:"platform"},{provide:hm,useValue:new Set([()=>Wr=null])},...n]})}(a,i))}return function wB(n){const t=fm();if(!t)throw new L(401,!1);return t}()}}function fm(){return Wr?.get(jS)??null}let jS=(()=>{class n{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function US(n,t){let e;return e="noop"===n?new gB:("zone.js"===n?void 0:n)||new Qe(t),e}(i?.ngZone,function $S(n){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!n||!n.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!n||!n.ngZoneRunCoalescing)||!1}}(i)),s=[{provide:Qe,useValue:r}];return r.run(()=>{const o=Xn.create({providers:s,parent:this.injector,name:e.moduleType.name}),a=e.create(o),l=a.injector.get(Lo,null);if(!l)throw new L(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{rd(this._modules,a),c.unsubscribe()})}),function WS(n,t,e){try{const i=e();return dl(i)?i.catch(r=>{throw t.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw t.runOutsideAngular(()=>n.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(td);return c.runInitializers(),c.donePromise.then(()=>(function f1(n){Un(n,"Expected localeId to be defined"),"string"==typeof n&&(h1=n.toLowerCase().replace(/_/g,"-"))}(a.injector.get(pr,Zo)||Zo),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=GS({},i);return function _B(n,t,e){const i=new Ug(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get(Sl);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new L(403,!1);e.instance.ngDoBootstrap(i)}this._modules.push(e)}onDestroy(e){this._destroyListeners.push(e)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new L(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(hm,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(e){return new(e||n)(K(Xn))},n.\u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function GS(n,t){return Array.isArray(t)?t.reduce(GS,n):{...n,...t}}let Sl=(()=>{class n{constructor(e,i,r){this._zone=e,this._injector=i,this._exceptionHandler=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this._destroyed=!1,this._destroyListeners=[],this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const s=new St(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),o=new St(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Qe.assertNotInAngularZone(),om(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{Qe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=function yP(...n){const t=Aa(n),e=function dP(n,t){return"number"==typeof Ff(n)?n.pop():t}(n,1/0),i=n;return i.length?1===i.length?bi(i[0]):po(e)(Rt(i,t)):nr}(s,o.pipe(function vP(n={}){const{connector:t=(()=>new Pt),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=n;return s=>{let o,a,l,c=0,u=!1,d=!1;const h=()=>{a?.unsubscribe(),a=void 0},f=()=>{h(),o=l=void 0,u=d=!1},p=()=>{const g=o;f(),g?.unsubscribe()};return Yt((g,y)=>{c++,!d&&!u&&h();const C=l=l??t();y.add(()=>{c--,0===c&&!d&&!u&&(a=Lf(p,r))}),C.subscribe(y),!o&&c>0&&(o=new ka({next:x=>C.next(x),error:x=>{d=!0,h(),a=Lf(f,e,x),C.error(x)},complete:()=>{u=!0,h(),a=Lf(f,i),C.complete()}}),bi(g).subscribe(o))})(s)}}()))}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(e,i){const r=e instanceof p0;if(!this._injector.get(td).done)throw!r&&function mo(n){const t=qe(n)||un(n)||xn(n);return null!==t&&t.standalone}(e),new L(405,false);let o;o=r?e:this._injector.get(il).resolveComponentFactory(e),this.componentTypes.push(o.componentType);const a=function yB(n){return n.isBoundToModule}(o)?void 0:this._injector.get(Ns),c=o.create(Xn.NULL,[],i||o.selector,a),u=c.location.nativeElement,d=c.injector.get(LS,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),rd(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new L(101,!1);try{this._runningTick=!0;for(let e of this._views)e.detectChanges()}catch(e){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(e))}finally{this._runningTick=!1}}attachView(e){const i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){const i=e;rd(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(kS,[]).concat(this._bootstrapListeners).forEach(r=>r(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>rd(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new L(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return n.\u0275fac=function(e){return new(e||n)(K(Qe),K(cr),K(Lo))},n.\u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function rd(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}let bt=(()=>{class n{}return n.__NG_ELEMENT_ID__=SB,n})();function SB(n){return function DB(n,t,e){if(au(n)&&!e){const i=qn(n.index,t);return new al(i,i)}return 47&n.type?new al(t[16],t):null}(rn(),B(),16==(16&n))}class ZS{constructor(){}supports(t){return cl(t)}create(t){return new kB(t)}}const MB=(n,t)=>t;class kB{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||MB}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,r=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex<JS(i,r,s)?e:i,a=JS(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<s.length?s[h]:s[h]=0,p=f+h;u<=p&&p<c&&(s[h]=f+1)}s[o.previousIndex]=u-c}}a!==l&&t(o,a,l)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!cl(t))throw new L(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let r,s,o,e=this._itHead,i=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)s=t[a],o=this._trackByFn(a,s),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,s,o,a)),Object.is(e.item,s)||this._addIdentityChange(e,s)):(e=this._mismatch(e,s,o,a),i=!0),e=e._next}else r=0,function yN(n,t){if(Array.isArray(n))for(let e=0;e<n.length;e++)t(n[e]);else{const e=n[Rs()]();let i;for(;!(i=e.next()).done;)t(i.value)}}(t,a=>{o=this._trackByFn(r,a),null!==e&&Object.is(e.trackById,o)?(i&&(e=this._verifyReinsertion(e,a,o,r)),Object.is(e.item,a)||this._addIdentityChange(e,a)):(e=this._mismatch(e,a,o,r),i=!0),e=e._next,r++}),this.length=r;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,r){let s;return null===t?s=this._itTail:(s=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,r)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,r)):t=this._addAfter(new AB(e,i),s,r),t}_verifyReinsertion(t,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?t=this._reinsertAfter(s,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const r=t._prevRemoved,s=t._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){const r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new XS),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,i=t._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new XS),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class AB{constructor(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class OB{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){const e=t._prevDup,i=t._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class XS{constructor(){this.map=new Map}put(t){const e=t.trackById;let i=this.map.get(e);i||(i=new OB,this.map.set(e,i)),i.add(t)}get(t,e){const r=this.map.get(t);return r?r.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function JS(n,t,e){const i=n.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+t+r}class eD{constructor(){}supports(t){return t instanceof Map||Og(t)}create(){return new PB}}class PB{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||Og(t)))throw new L(900,!1)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(i,r)=>{if(e&&e.key===r)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(r,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const r=this._records.get(t);this._maybeAddToChanges(r,e);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new RB(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}}class RB{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function tD(){return new ad([new ZS])}let ad=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||tD()),deps:[[n,new qa,new Ka]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new L(901,!1)}}return n.\u0275prov=Z({token:n,providedIn:"root",factory:tD}),n})();function nD(){return new Dl([new eD])}let Dl=(()=>{class n{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new n(e)}static extend(e){return{provide:n,useFactory:i=>n.create(e,i||nD()),deps:[[n,new qa,new Ka]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new L(901,!1)}}return n.\u0275prov=Z({token:n,providedIn:"root",factory:nD}),n})();const NB=HS(null,"core",[]);let VB=(()=>{class n{constructor(e){}}return n.\u0275fac=function(e){return new(e||n)(K(Sl))},n.\u0275mod=be({type:n}),n.\u0275inj=_e({}),n})();function ta(n){return"boolean"==typeof n?n:null!=n&&"false"!==n}let ld=null;function Wi(){return ld}class zB{}const Mt=new X("DocumentToken");let ym=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:function(){return function jB(){return K(iD)}()},providedIn:"platform"}),n})();const $B=new X("Location Initialized");let iD=(()=>{class n extends ym{constructor(e){super(),this._doc=e,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Wi().getBaseHref(this._doc)}onPopState(e){const i=Wi().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Wi().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",e,!1),()=>i.removeEventListener("hashchange",e)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(e){this.location.pathname=e}pushState(e,i,r){rD()?this._history.pushState(e,i,r):this.location.hash=r}replaceState(e,i,r){rD()?this._history.replaceState(e,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}}return n.\u0275fac=function(e){return new(e||n)(K(Mt))},n.\u0275prov=Z({token:n,factory:function(){return function UB(){return new iD(K(Mt))}()},providedIn:"platform"}),n})();function rD(){return!!window.history.pushState}function vm(n,t){if(0==n.length)return t;if(0==t.length)return n;let e=0;return n.endsWith("/")&&e++,t.startsWith("/")&&e++,2==e?n+t.substring(1):1==e?n+t:n+"/"+t}function sD(n){const t=n.match(/#|\?|$/),e=t&&t.index||n.length;return n.slice(0,e-("/"===n[e-1]?1:0))+n.slice(e)}function mr(n){return n&&"?"!==n[0]?"?"+n:n}let Bs=(()=>{class n{historyGo(e){throw new Error("Not implemented")}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:function(){return $e(aD)},providedIn:"root"}),n})();const oD=new X("appBaseHref");let aD=(()=>{class n extends Bs{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??$e(Mt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return vm(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+mr(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+mr(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+mr(s));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(K(ym),K(oD,8))},n.\u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),WB=(()=>{class n extends Bs{constructor(e,i){super(),this._platformLocation=e,this._baseHref="",this._removeListenerFns=[],null!=i&&(this._baseHref=i)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let i=this._platformLocation.hash;return null==i&&(i="#"),i.length>0?i.substring(1):i}prepareExternalUrl(e){const i=vm(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,s){let o=this.prepareExternalUrl(r+mr(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){let o=this.prepareExternalUrl(r+mr(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}}return n.\u0275fac=function(e){return new(e||n)(K(ym),K(oD,8))},n.\u0275prov=Z({token:n,factory:n.\u0275fac}),n})(),bm=(()=>{class n{constructor(e){this._subject=new N,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._baseHref=sD(lD(i)),this._locationStrategy.onPopState(r=>{this._subject.emit({url:this.path(!0),pop:!0,state:r.state,type:r.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=""){return this.path()==this.normalize(e+mr(i))}normalize(e){return n.stripTrailingSlash(function KB(n,t){return n&&t.startsWith(n)?t.substring(n.length):t}(this._baseHref,lD(e)))}prepareExternalUrl(e){return e&&"/"!==e[0]&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i="",r=null){this._locationStrategy.pushState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+mr(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+mr(i)),r)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)})),()=>{const i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",i){this._urlChangeListeners.forEach(r=>r(e,i))}subscribe(e,i,r){return this._subject.subscribe({next:e,error:i,complete:r})}}return n.normalizeQueryParams=mr,n.joinWithSlash=vm,n.stripTrailingSlash=sD,n.\u0275fac=function(e){return new(e||n)(K(Bs))},n.\u0275prov=Z({token:n,factory:function(){return function GB(){return new bm(K(Bs))}()},providedIn:"root"}),n})();function lD(n){return n.replace(/\/index.html$/,"")}function _D(n,t){t=encodeURIComponent(t);for(const e of n.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===t)return decodeURIComponent(s)}return null}let _t=(()=>{class n{constructor(e,i,r,s){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(cl(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){const e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}}_applyKeyValueChanges(e){e.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),e.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(e){e.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${tt(i.item)}`);this._toggleClass(i.item,!0)}),e.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!0)):Object.keys(e).forEach(i=>this._toggleClass(i,!!e[i])))}_removeClasses(e){e&&(Array.isArray(e)||e instanceof Set?e.forEach(i=>this._toggleClass(i,!1)):Object.keys(e).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(e,i){(e=e.trim())&&e.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(e){return new(e||n)(M(ad),M(Dl),M(ze),M(Mn))},n.\u0275dir=se({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),n})();class AH{constructor(t,e,i,r){this.$implicit=t,this.ngForOf=e,this.index=i,this.count=r}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let fi=(()=>{class n{constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(e){e&&(this._template=e)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const e=this._ngForOf;!this._differ&&e&&(this._differ=this._differs.find(e).create(this.ngForTrackBy))}if(this._differ){const e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}}_applyChanges(e){const i=this._viewContainer;e.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new AH(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),bD(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}e.forEachIdentityChange(r=>{bD(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(M(Oi),M(Ai),M(ad))},n.\u0275dir=se({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),n})();function bD(n,t){n.context.$implicit=t.item}let lt=(()=>{class n{constructor(e,i){this._viewContainer=e,this._context=new PH,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}set ngIfThen(e){wD("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){wD("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(e,i){return!0}}return n.\u0275fac=function(e){return new(e||n)(M(Oi),M(Ai))},n.\u0275dir=se({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),n})();class PH{constructor(){this.$implicit=null,this.ngIf=null}}function wD(n,t){if(t&&!t.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${tt(t)}'.`)}let ut=(()=>{class n{constructor(e,i,r){this._ngEl=e,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){const e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){const[r,s]=e.split("."),o=-1===r.indexOf("-")?void 0:Ln.DashCase;null!=i?this._renderer.setStyle(this._ngEl.nativeElement,r,s?`${i}${s}`:i,o):this._renderer.removeStyle(this._ngEl.nativeElement,r,o)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(e){return new(e||n)(M(ze),M(Dl),M(Mn))},n.\u0275dir=se({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),n})(),on=(()=>{class n{constructor(e){this._viewContainerRef=e,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(e){if(e.ngTemplateOutlet||e.ngTemplateOutletInjector){const i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),this.ngTemplateOutlet){const{ngTemplateOutlet:r,ngTemplateOutletContext:s,ngTemplateOutletInjector:o}=this;this._viewRef=i.createEmbeddedView(r,s,o?{injector:o}:void 0)}else this._viewRef=null}else this._viewRef&&e.ngTemplateOutletContext&&this.ngTemplateOutletContext&&(this._viewRef.context=this.ngTemplateOutletContext)}}return n.\u0275fac=function(e){return new(e||n)(M(Oi))},n.\u0275dir=se({type:n,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[Zt]}),n})();let DD=(()=>{class n{transform(e,i,r){if(null==e)return null;if(!this.supports(e))throw function Fi(n,t){return new L(2100,!1)}();return e.slice(i,r)}supports(e){return"string"==typeof e||Array.isArray(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275pipe=Rn({name:"slice",type:n,pure:!1,standalone:!0}),n})(),We=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({}),n})();const xD="browser";let cz=(()=>{class n{}return n.\u0275prov=Z({token:n,providedIn:"root",factory:()=>new uz(K(Mt),window)}),n})();class uz{constructor(t,e){this.document=t,this.window=e,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const e=function dz(n,t){const e=n.getElementById(t)||n.getElementsByName(t)[0];if(e)return e;if("function"==typeof n.createTreeWalker&&n.body&&(n.body.createShadowRoot||n.body.attachShadow)){const i=n.createTreeWalker(n.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const s=r.shadowRoot;if(s){const o=s.getElementById(t)||s.querySelector(`[name="${t}"]`);if(o)return o}r=i.nextNode()}}return null}(this.document,t);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=t)}}scrollToElement(t){const e=t.getBoundingClientRect(),i=e.left+this.window.pageXOffset,r=e.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(i-s[0],r-s[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=ED(this.window.history)||ED(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function ED(n){return Object.getOwnPropertyDescriptor(n,"scrollRestoration")}class TD{}class Vz extends zB{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Lm extends Vz{static makeCurrent(){!function HB(n){ld||(ld=n)}(new Lm)}onAndCancel(t,e,i){return t.addEventListener(e,i,!1),()=>{t.removeEventListener(e,i,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getBaseHref(t){const e=function Bz(){return Il=Il||document.querySelector("base"),Il?Il.getAttribute("href"):null}();return null==e?null:function Hz(n){vd=vd||document.createElement("a"),vd.setAttribute("href",n);const t=vd.pathname;return"/"===t.charAt(0)?t:`/${t}`}(e)}resetBaseElement(){Il=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return _D(document.cookie,t)}}let vd,Il=null;const PD=new X("TRANSITION_ID"),jz=[{provide:ed,useFactory:function zz(n,t,e){return()=>{e.get(td).donePromise.then(()=>{const i=Wi(),r=t.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[PD,Mt,Xn],multi:!0}];let Uz=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:n.\u0275fac}),n})();const bd=new X("EventManagerPlugins");let wd=(()=>{class n{constructor(e,i){this._zone=i,this._eventNameToPlugin=new Map,e.forEach(r=>r.manager=this),this._plugins=e.slice().reverse()}addEventListener(e,i,r){return this._findPluginFor(i).addEventListener(e,i,r)}addGlobalEventListener(e,i,r){return this._findPluginFor(i).addGlobalEventListener(e,i,r)}getZone(){return this._zone}_findPluginFor(e){const i=this._eventNameToPlugin.get(e);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error(`No event manager plugin found for event ${e}`)}}return n.\u0275fac=function(e){return new(e||n)(K(bd),K(Qe))},n.\u0275prov=Z({token:n,factory:n.\u0275fac}),n})();class RD{constructor(t){this._doc=t}addGlobalEventListener(t,e,i){const r=Wi().getGlobalEventTarget(this._doc,t);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let FD=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(e){const i=new Set;e.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(e){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:n.\u0275fac}),n})(),Ml=(()=>{class n extends FD{constructor(e){super(),this._doc=e,this._hostNodes=new Map,this._hostNodes.set(e.head,[])}_addStylesToHost(e,i,r){e.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(e){const i=[];this._addStylesToHost(this._stylesSet,e,i),this._hostNodes.set(e,i)}removeHost(e){const i=this._hostNodes.get(e);i&&i.forEach(LD),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(LD))}}return n.\u0275fac=function(e){return new(e||n)(K(Mt))},n.\u0275prov=Z({token:n,factory:n.\u0275fac}),n})();function LD(n){Wi().remove(n)}const Nm={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Vm=/%COMP%/g;function Cd(n,t,e){for(let i=0;i<t.length;i++){let r=t[i];Array.isArray(r)?Cd(n,r,e):(r=r.replace(Vm,n),e.push(r))}return e}function BD(n){return t=>{if("__ngUnwrap__"===t)return n;!1===n(t)&&(t.preventDefault(),t.returnValue=!1)}}let Sd=(()=>{class n{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Bm(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Ci.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new Qz(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case 1:case Ci.ShadowDom:return new Zz(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=Cd(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(e){return new(e||n)(K(wd),K(Ml),K(Cl))},n.\u0275prov=Z({token:n,factory:n.\u0275fac}),n})();class Bm{constructor(t){this.eventManager=t,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,e){return e?document.createElementNS(Nm[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){(zD(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(zD(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let i="string"==typeof t?document.querySelector(t):t;if(!i)throw new Error(`The selector "${t}" did not match any elements`);return e||(i.textContent=""),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,r){if(r){e=r+":"+e;const s=Nm[r];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){const r=Nm[i];r?t.removeAttributeNS(r,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,r){r&(Ln.DashCase|Ln.Important)?t.style.setProperty(e,i,r&Ln.Important?"important":""):t.style[e]=i}removeStyle(t,e,i){i&Ln.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,i){t[e]=i}setValue(t,e){t.nodeValue=e}listen(t,e,i){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,BD(i)):this.eventManager.addEventListener(t,e,BD(i))}}function zD(n){return"TEMPLATE"===n.tagName&&void 0!==n.content}class Qz extends Bm{constructor(t,e,i,r){super(t),this.component=i;const s=Cd(r+"-"+i.id,i.styles,[]);e.addStyles(s),this.contentAttr=function Kz(n){return"_ngcontent-%COMP%".replace(Vm,n)}(r+"-"+i.id),this.hostAttr=function qz(n){return"_nghost-%COMP%".replace(Vm,n)}(r+"-"+i.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,""),i}}class Zz extends Bm{constructor(t,e,i,r){super(t),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Cd(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let Xz=(()=>{class n extends RD{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,r){return e.addEventListener(i,r,!1),()=>this.removeEventListener(e,i,r)}removeEventListener(e,i,r){return e.removeEventListener(i,r)}}return n.\u0275fac=function(e){return new(e||n)(K(Mt))},n.\u0275prov=Z({token:n,factory:n.\u0275fac}),n})();const jD=["alt","control","meta","shift"],Jz={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},e4={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let t4=(()=>{class n extends RD{constructor(e){super(e)}supports(e){return null!=n.parseEventName(e)}addEventListener(e,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Wi().onAndCancel(e,s.domEventName,o))}static parseEventName(e){const i=e.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),o="code."),jD.forEach(c=>{const u=i.indexOf(c);u>-1&&(i.splice(u,1),o+=c+".")}),o+=s,0!=i.length||0===s.length)return null;const l={};return l.domEventName=r,l.fullKey=o,l}static matchEventFullKeyCode(e,i){let r=Jz[e.key]||e.key,s="";return i.indexOf("code.")>-1&&(r=e.code,s="code."),!(null==r||!r)&&(r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),jD.forEach(o=>{o!==r&&(0,e4[o])(e)&&(s+=o+".")}),s+=r,s===i)}static eventCallback(e,i,r){return s=>{n.matchEventFullKeyCode(s,e)&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return n.\u0275fac=function(e){return new(e||n)(K(Mt))},n.\u0275prov=Z({token:n,factory:n.\u0275fac}),n})();const s4=HS(NB,"browser",[{provide:nd,useValue:xD},{provide:MS,useValue:function n4(){Lm.makeCurrent()},multi:!0},{provide:Mt,useFactory:function r4(){return function VF(n){zp=n}(document),document},deps:[]}]),WD=new X(""),GD=[{provide:id,useClass:class $z{addToWindow(t){it.getAngularTestability=(i,r=!0)=>{const s=t.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},it.getAllAngularTestabilities=()=>t.getAllTestabilities(),it.getAllAngularRootElements=()=>t.getAllRootElements(),it.frameworkStabilizers||(it.frameworkStabilizers=[]),it.frameworkStabilizers.push(i=>{const r=it.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,e,i){return null==e?null:t.getTestability(e)??(i?Wi().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null)}},deps:[]},{provide:LS,useClass:cm,deps:[Qe,um,id]},{provide:cm,useClass:cm,deps:[Qe,um,id]}],KD=[{provide:Yp,useValue:"root"},{provide:Lo,useFactory:function i4(){return new Lo},deps:[]},{provide:bd,useClass:Xz,multi:!0,deps:[Mt,Qe,nd]},{provide:bd,useClass:t4,multi:!0,deps:[Mt]},{provide:Sd,useClass:Sd,deps:[wd,Ml,Cl]},{provide:rl,useExisting:Sd},{provide:FD,useExisting:Ml},{provide:Ml,useClass:Ml,deps:[Mt]},{provide:wd,useClass:wd,deps:[bd,Qe]},{provide:TD,useClass:Uz,deps:[]},[]];let Dd=(()=>{class n{constructor(e){}static withServerTransition(e){return{ngModule:n,providers:[{provide:Cl,useValue:e.appId},{provide:PD,useExisting:Cl},jz]}}}return n.\u0275fac=function(e){return new(e||n)(K(WD,12))},n.\u0275mod=be({type:n}),n.\u0275inj=_e({providers:[...KD,...GD],imports:[We,VB]}),n})(),zm=(()=>{class n{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return n.\u0275fac=function(e){return new(e||n)(K(Mt))},n.\u0275prov=Z({token:n,factory:function(e){let i=null;return i=e?new e:function a4(){return new zm(K(Mt))}(),i},providedIn:"root"}),n})();typeof window<"u"&&window;let QD=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:function(e){let i=null;return i=e?new(e||n):K(ZD),i},providedIn:"root"}),n})(),ZD=(()=>{class n extends QD{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case st.NONE:return i;case st.HTML:return zi(i,"HTML")?Zn(i):t0(this._doc,String(i)).toString();case st.STYLE:return zi(i,"Style")?Zn(i):i;case st.SCRIPT:if(zi(i,"Script"))return Zn(i);throw new Error("unsafe value used in a script context");case st.URL:return zi(i,"URL")?Zn(i):Iu(String(i));case st.RESOURCE_URL:if(zi(i,"ResourceURL"))return Zn(i);throw new Error(`unsafe value used in a resource URL context (see ${Qc})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${Qc})`)}}bypassSecurityTrustHtml(e){return function WF(n){return new BF(n)}(e)}bypassSecurityTrustStyle(e){return function GF(n){return new HF(n)}(e)}bypassSecurityTrustScript(e){return function KF(n){return new zF(n)}(e)}bypassSecurityTrustUrl(e){return function qF(n){return new jF(n)}(e)}bypassSecurityTrustResourceUrl(e){return function YF(n){return new $F(n)}(e)}}return n.\u0275fac=function(e){return new(e||n)(K(Mt))},n.\u0275prov=Z({token:n,factory:function(e){let i=null;return i=e?new e:function p4(n){return new ZD(n.get(Mt))}(K(Xn)),i},providedIn:"root"}),n})();function ae(...n){return Rt(n,Aa(n))}class Li extends Pt{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){const{hasError:t,thrownError:e,_value:i}=this;if(t)throw e;return this._throwIfClosed(),i}next(t){super.next(this._value=t)}}const xd=Ma(n=>function(){n(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:g4}=Array,{getPrototypeOf:m4,prototype:_4,keys:y4}=Object;function XD(n){if(1===n.length){const t=n[0];if(g4(t))return{args:t,keys:null};if(function v4(n){return n&&"object"==typeof n&&m4(n)===_4}(t)){const e=y4(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:n,keys:null}}const{isArray:b4}=Array;function JD(n){return Me(t=>function w4(n,t){return b4(t)?n(...t):n(t)}(n,t))}function ex(n,t){return n.reduce((e,i,r)=>(e[i]=t[r],e),{})}function tx(...n){const t=Aa(n),e=hb(n),{args:i,keys:r}=XD(n);if(0===i.length)return Rt([],t);const s=new St(function C4(n,t,e=ws){return i=>{nx(t,()=>{const{length:r}=n,s=new Array(r);let o=r,a=r;for(let l=0;l<r;l++)nx(t,()=>{const c=Rt(n[l],t);let u=!1;c.subscribe(Bt(i,d=>{s[l]=d,u||(u=!0,a--),a||i.next(e(s.slice()))},()=>{--o||i.complete()}))},i)},i)}}(i,t,r?o=>ex(r,o):ws));return e?s.pipe(JD(e)):s}function nx(n,t,e){n?tr(e,n,t):t()}function $m(...n){return function S4(){return po(1)}()(Rt(n,Aa(n)))}function ix(n){return new St(t=>{bi(n()).subscribe(t)})}function kl(n,t){const e=nt(n)?n:()=>n,i=r=>r.error(e());return new St(t?r=>t.schedule(i,0,r):i)}function Um(){return Yt((n,t)=>{let e=null;n._refCount++;const i=Bt(t,void 0,void 0,void 0,()=>{if(!n||n._refCount<=0||0<--n._refCount)return void(e=null);const r=n._connection,s=e;e=null,r&&(!s||r===s)&&r.unsubscribe(),t.unsubscribe()});n.subscribe(i),i.closed||(e=n.connect())})}class rx extends St{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,Zv(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new jn;const e=this.getSubject();t.add(this.source.subscribe(Bt(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),t.closed&&(this._connection=null,t=jn.EMPTY)}return t}refCount(){return Um()(this)}}function Gi(n,t){return Yt((e,i)=>{let r=null,s=0,o=!1;const a=()=>o&&!r&&i.complete();e.subscribe(Bt(i,l=>{r?.unsubscribe();let c=0;const u=s++;bi(n(l,u)).subscribe(r=Bt(i,d=>i.next(t?t(l,d,u,c++):d),()=>{r=null,a()}))},()=>{o=!0,a()}))})}function Al(n){return n<=0?()=>nr:Yt((t,e)=>{let i=0;t.subscribe(Bt(e,r=>{++i<=n&&(e.next(r),n<=i&&e.complete())}))})}function yr(n,t){return Yt((e,i)=>{let r=0;e.subscribe(Bt(i,s=>n.call(t,s,r++)&&i.next(s)))})}function Ed(n){return Yt((t,e)=>{let i=!1;t.subscribe(Bt(e,r=>{i=!0,e.next(r)},()=>{i||e.next(n),e.complete()}))})}function sx(n=x4){return Yt((t,e)=>{let i=!1;t.subscribe(Bt(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(n())))})}function x4(){return new xd}function Kr(n,t){const e=arguments.length>=2;return i=>i.pipe(n?yr((r,s)=>n(r,s,i)):ws,Al(1),e?Ed(t):sx(()=>new xd))}function qr(n,t){return nt(t)?nn(n,t,1):nn(n,1)}function _n(n,t,e){const i=nt(n)||t||e?{next:n,error:t,complete:e}:n;return i?Yt((r,s)=>{var o;null===(o=i.subscribe)||void 0===o||o.call(i);let a=!0;r.subscribe(Bt(s,l=>{var c;null===(c=i.next)||void 0===c||c.call(i,l),s.next(l)},()=>{var l;a=!1,null===(l=i.complete)||void 0===l||l.call(i),s.complete()},l=>{var c;a=!1,null===(c=i.error)||void 0===c||c.call(i,l),s.error(l)},()=>{var l,c;a&&(null===(l=i.unsubscribe)||void 0===l||l.call(i)),null===(c=i.finalize)||void 0===c||c.call(i)}))}):ws}function Yr(n){return Yt((t,e)=>{let s,i=null,r=!1;i=t.subscribe(Bt(e,void 0,void 0,o=>{s=bi(n(o,Yr(n)(t))),i?(i.unsubscribe(),i=null,s.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,s.subscribe(e))})}function E4(n,t,e,i,r){return(s,o)=>{let a=e,l=t,c=0;s.subscribe(Bt(o,u=>{const d=c++;l=a?n(l,u,d):(a=!0,u),i&&o.next(l)},r&&(()=>{a&&o.next(l),o.complete()})))}}function ox(n,t){return Yt(E4(n,t,arguments.length>=2,!0))}function Wm(n){return n<=0?()=>nr:Yt((t,e)=>{let i=[];t.subscribe(Bt(e,r=>{i.push(r),n<i.length&&i.shift()},()=>{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function ax(n,t){const e=arguments.length>=2;return i=>i.pipe(n?yr((r,s)=>n(r,s,i)):ws,Wm(1),e?Ed(t):sx(()=>new xd))}function Gm(n){return Yt((t,e)=>{try{t.subscribe(e)}finally{e.add(n)}})}const Ae="primary",Ol=Symbol("RouteTitle");class M4{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){const e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function na(n){return new M4(n)}function k4(n,t,e){const i=e.path.split("/");if(i.length>n.length||"full"===e.pathMatch&&(t.hasChildren()||i.length<n.length))return null;const r={};for(let s=0;s<i.length;s++){const o=i[s],a=n[s];if(o.startsWith(":"))r[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:n.slice(0,i.length),posParams:r}}function Ki(n,t){const e=n?Object.keys(n):void 0,i=t?Object.keys(t):void 0;if(!e||!i||e.length!=i.length)return!1;let r;for(let s=0;s<e.length;s++)if(r=e[s],!lx(n[r],t[r]))return!1;return!0}function lx(n,t){if(Array.isArray(n)&&Array.isArray(t)){if(n.length!==t.length)return!1;const e=[...n].sort(),i=[...t].sort();return e.every((r,s)=>i[s]===r)}return n===t}function cx(n){return Array.prototype.concat.apply([],n)}function ux(n){return n.length>0?n[n.length-1]:null}function an(n,t){for(const e in n)n.hasOwnProperty(e)&&t(n[e],e)}function Qr(n){return Rg(n)?n:dl(n)?Rt(Promise.resolve(n)):ae(n)}const Td=!1,O4={exact:function fx(n,t,e){if(!zs(n.segments,t.segments)||!Id(n.segments,t.segments,e)||n.numberOfChildren!==t.numberOfChildren)return!1;for(const i in t.children)if(!n.children[i]||!fx(n.children[i],t.children[i],e))return!1;return!0},subset:px},dx={exact:function P4(n,t){return Ki(n,t)},subset:function R4(n,t){return Object.keys(t).length<=Object.keys(n).length&&Object.keys(t).every(e=>lx(n[e],t[e]))},ignored:()=>!0};function hx(n,t,e){return O4[e.paths](n.root,t.root,e.matrixParams)&&dx[e.queryParams](n.queryParams,t.queryParams)&&!("exact"===e.fragment&&n.fragment!==t.fragment)}function px(n,t,e){return gx(n,t,t.segments,e)}function gx(n,t,e,i){if(n.segments.length>e.length){const r=n.segments.slice(0,e.length);return!(!zs(r,e)||t.hasChildren()||!Id(r,e,i))}if(n.segments.length===e.length){if(!zs(n.segments,e)||!Id(n.segments,e,i))return!1;for(const r in t.children)if(!n.children[r]||!px(n.children[r],t.children[r],i))return!1;return!0}{const r=e.slice(0,n.segments.length),s=e.slice(n.segments.length);return!!(zs(n.segments,r)&&Id(n.segments,r,i)&&n.children[Ae])&&gx(n.children[Ae],t,s,i)}}function Id(n,t,e){return t.every((i,r)=>dx[e](n[r].parameters,i.parameters))}class Hs{constructor(t=new Oe([],{}),e={},i=null){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=na(this.queryParams)),this._queryParamMap}toString(){return N4.serialize(this)}}class Oe{constructor(t,e){this.segments=t,this.children=e,this.parent=null,an(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Md(this)}}class Pl{constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=na(this.parameters)),this._parameterMap}toString(){return vx(this)}}function zs(n,t){return n.length===t.length&&n.every((e,i)=>e.path===t[i].path)}let mx=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:function(){return new Km},providedIn:"root"}),n})();class Km{parse(t){const e=new G4(t);return new Hs(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){const e=`/${Rl(t.root,!0)}`,i=function H4(n){const t=Object.keys(n).map(e=>{const i=n[e];return Array.isArray(i)?i.map(r=>`${kd(e)}=${kd(r)}`).join("&"):`${kd(e)}=${kd(i)}`}).filter(e=>!!e);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${e}${i}${"string"==typeof t.fragment?`#${function V4(n){return encodeURI(n)}(t.fragment)}`:""}`}}const N4=new Km;function Md(n){return n.segments.map(t=>vx(t)).join("/")}function Rl(n,t){if(!n.hasChildren())return Md(n);if(t){const e=n.children[Ae]?Rl(n.children[Ae],!1):"",i=[];return an(n.children,(r,s)=>{s!==Ae&&i.push(`${s}:${Rl(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function L4(n,t){let e=[];return an(n.children,(i,r)=>{r===Ae&&(e=e.concat(t(i,r)))}),an(n.children,(i,r)=>{r!==Ae&&(e=e.concat(t(i,r)))}),e}(n,(i,r)=>r===Ae?[Rl(n.children[Ae],!1)]:[`${r}:${Rl(i,!1)}`]);return 1===Object.keys(n.children).length&&null!=n.children[Ae]?`${Md(n)}/${e[0]}`:`${Md(n)}/(${e.join("//")})`}}function _x(n){return encodeURIComponent(n).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function kd(n){return _x(n).replace(/%3B/gi,";")}function qm(n){return _x(n).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ad(n){return decodeURIComponent(n)}function yx(n){return Ad(n.replace(/\+/g,"%20"))}function vx(n){return`${qm(n.path)}${function B4(n){return Object.keys(n).map(t=>`;${qm(t)}=${qm(n[t])}`).join("")}(n.parameters)}`}const z4=/^[^\/()?;=#]+/;function Od(n){const t=n.match(z4);return t?t[0]:""}const j4=/^[^=?&#]+/,U4=/^[^&#]+/;class G4{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Oe([],{}):new Oe([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(i[Ae]=new Oe(t,e)),i}parseSegment(){const t=Od(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new L(4009,Td);return this.capture(t),new Pl(Ad(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const e=Od(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=Od(this.remaining);r&&(i=r,this.capture(i))}t[Ad(e)]=Ad(i)}parseQueryParam(t){const e=function $4(n){const t=n.match(j4);return t?t[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=function W4(n){const t=n.match(U4);return t?t[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const r=yx(e),s=yx(i);if(t.hasOwnProperty(r)){let o=t[r];Array.isArray(o)||(o=[o],t[r]=o),o.push(s)}else t[r]=s}parseParens(t){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=Od(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new L(4010,Td);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):t&&(s=Ae);const o=this.parseChildren();e[s]=1===Object.keys(o).length?o[Ae]:new Oe([],o),this.consumeOptional("//")}return e}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new L(4011,Td)}}function Ym(n){return n.segments.length>0?new Oe([],{[Ae]:n}):n}function Pd(n){const t={};for(const i of Object.keys(n.children)){const s=Pd(n.children[i]);(s.segments.length>0||s.hasChildren())&&(t[i]=s)}return function K4(n){if(1===n.numberOfChildren&&n.children[Ae]){const t=n.children[Ae];return new Oe(n.segments.concat(t.segments),t.children)}return n}(new Oe(n.segments,t))}function js(n){return n instanceof Hs}function Q4(n,t,e,i,r){if(0===e.length)return ia(t.root,t.root,t.root,i,r);const s=function Cx(n){if("string"==typeof n[0]&&1===n.length&&"/"===n[0])return new wx(!0,0,n);let t=0,e=!1;const i=n.reduce((r,s,o)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return an(s.outlets,(l,c)=>{a[c]="string"==typeof l?l.split("/"):l}),[...r,{outlets:a}]}if(s.segmentPath)return[...r,s.segmentPath]}return"string"!=typeof s?[...r,s]:0===o?(s.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?e=!0:".."===a?t++:""!=a&&r.push(a))}),r):[...r,s]},[]);return new wx(e,t,i)}(e);return s.toRoot()?ia(t.root,t.root,new Oe([],{}),i,r):function o(l){const c=function X4(n,t,e,i){if(n.isAbsolute)return new ra(t.root,!0,0);if(-1===i)return new ra(e,e===t.root,0);return function Sx(n,t,e){let i=n,r=t,s=e;for(;s>r;){if(s-=r,i=i.parent,!i)throw new L(4005,!1);r=i.segments.length}return new ra(i,!1,r-s)}(e,i+(Fl(n.commands[0])?0:1),n.numberOfDoubleDots)}(s,t,n.snapshot?._urlSegment,l),u=c.processChildren?Nl(c.segmentGroup,c.index,s.commands):Zm(c.segmentGroup,c.index,s.commands);return ia(t.root,c.segmentGroup,u,i,r)}(n.snapshot?._lastPathIndex)}function Fl(n){return"object"==typeof n&&null!=n&&!n.outlets&&!n.segmentPath}function Ll(n){return"object"==typeof n&&null!=n&&n.outlets}function ia(n,t,e,i,r){let o,s={};i&&an(i,(l,c)=>{s[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),o=n===t?e:bx(n,t,e);const a=Ym(Pd(o));return new Hs(a,s,r)}function bx(n,t,e){const i={};return an(n.children,(r,s)=>{i[s]=r===t?e:bx(r,t,e)}),new Oe(n.segments,i)}class wx{constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&Fl(i[0]))throw new L(4003,!1);const r=i.find(Ll);if(r&&r!==ux(i))throw new L(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ra{constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}}function Zm(n,t,e){if(n||(n=new Oe([],{})),0===n.segments.length&&n.hasChildren())return Nl(n,t,e);const i=function e5(n,t,e){let i=0,r=t;const s={match:!1,pathIndex:0,commandIndex:0};for(;r<n.segments.length;){if(i>=e.length)return s;const o=n.segments[r],a=e[i];if(Ll(a))break;const l=`${a}`,c=i<e.length-1?e[i+1]:null;if(r>0&&void 0===l)break;if(l&&c&&"object"==typeof c&&void 0===c.outlets){if(!xx(l,c,o))return s;i+=2}else{if(!xx(l,{},o))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(n,t,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<n.segments.length){const s=new Oe(n.segments.slice(0,i.pathIndex),{});return s.children[Ae]=new Oe(n.segments.slice(i.pathIndex),n.children),Nl(s,0,r)}return i.match&&0===r.length?new Oe(n.segments,{}):i.match&&!n.hasChildren()?Xm(n,t,e):i.match?Nl(n,0,r):Xm(n,t,e)}function Nl(n,t,e){if(0===e.length)return new Oe(n.segments,{});{const i=function J4(n){return Ll(n[0])?n[0].outlets:{[Ae]:n}}(e),r={};return an(i,(s,o)=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=Zm(n.children[o],t,s))}),an(n.children,(s,o)=>{void 0===i[o]&&(r[o]=s)}),new Oe(n.segments,r)}}function Xm(n,t,e){const i=n.segments.slice(0,t);let r=0;for(;r<e.length;){const s=e[r];if(Ll(s)){const l=t5(s.outlets);return new Oe(i,l)}if(0===r&&Fl(e[0])){i.push(new Pl(n.segments[t].path,Dx(e[0]))),r++;continue}const o=Ll(s)?s.outlets[Ae]:`${s}`,a=r<e.length-1?e[r+1]:null;o&&a&&Fl(a)?(i.push(new Pl(o,Dx(a))),r+=2):(i.push(new Pl(o,{})),r++)}return new Oe(i,{})}function t5(n){const t={};return an(n,(e,i)=>{"string"==typeof e&&(e=[e]),null!==e&&(t[i]=Xm(new Oe([],{}),0,e))}),t}function Dx(n){const t={};return an(n,(e,i)=>t[i]=`${e}`),t}function xx(n,t,e){return n==e.path&&Ki(t,e.parameters)}class vr{constructor(t,e){this.id=t,this.url=e}}class Jm extends vr{constructor(t,e,i="imperative",r=null){super(t,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Zr extends vr{constructor(t,e,i){super(t,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Rd extends vr{constructor(t,e,i,r){super(t,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ex extends vr{constructor(t,e,i,r){super(t,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class n5 extends vr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class r5 extends vr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class s5 extends vr{constructor(t,e,i,r,s){super(t,e),this.urlAfterRedirects=i,this.state=r,this.shouldActivate=s,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class o5 extends vr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class a5 extends vr{constructor(t,e,i,r){super(t,e),this.urlAfterRedirects=i,this.state=r,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class l5{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class c5{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class u5{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class d5{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class h5{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class f5{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Tx{constructor(t,e,i){this.routerEvent=t,this.position=e,this.anchor=i,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ix{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){const e=e_(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){const e=e_(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){const e=t_(t,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==t)}pathFromRoot(t){return t_(t,this._root).map(e=>e.value)}}function e_(n,t){if(n===t.value)return t;for(const e of t.children){const i=e_(n,e);if(i)return i}return null}function t_(n,t){if(n===t.value)return[t];for(const e of t.children){const i=t_(n,e);if(i.length)return i.unshift(t),i}return[]}class br{constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}}function sa(n){const t={};return n&&n.children.forEach(e=>t[e.value.outlet]=e),t}class Mx extends Ix{constructor(t,e){super(t),this.snapshot=e,n_(this,t)}toString(){return this.snapshot.toString()}}function kx(n,t){const e=function g5(n,t){const o=new Fd([],{},{},"",{},Ae,t,null,n.root,-1,{});return new Ox("",new br(o,[]))}(n,t),i=new Li([new Pl("",{})]),r=new Li({}),s=new Li({}),o=new Li({}),a=new Li(""),l=new oa(i,r,o,a,s,Ae,t,e.root);return l.snapshot=e.root,new Mx(new br(l,[]),e)}class oa{constructor(t,e,i,r,s,o,a,l){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.title=this.data?.pipe(Me(c=>c[Ol]))??ae(void 0),this._futureSnapshot=l}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Me(t=>na(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Me(t=>na(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ax(n,t="emptyOnly"){const e=n.pathFromRoot;let i=0;if("always"!==t)for(i=e.length-1;i>=1;){const r=e[i],s=e[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(s.component)break;i--}}return function m5(n){return n.reduce((t,e)=>({params:{...t.params,...e.params},data:{...t.data,...e.data},resolve:{...e.data,...t.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class Fd{constructor(t,e,i,r,s,o,a,l,c,u,d){this.url=t,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.routeConfig=l,this._urlSegment=c,this._lastPathIndex=u,this._resolve=d}get title(){return this.data?.[Ol]}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=na(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=na(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Ox extends Ix{constructor(t,e){super(e),this.url=t,n_(this,e)}toString(){return Px(this._root)}}function n_(n,t){t.value._routerState=n,t.children.forEach(e=>n_(n,e))}function Px(n){const t=n.children.length>0?` { ${n.children.map(Px).join(", ")} } `:"";return`${n.value}${t}`}function i_(n){if(n.snapshot){const t=n.snapshot,e=n._futureSnapshot;n.snapshot=e,Ki(t.queryParams,e.queryParams)||n.queryParams.next(e.queryParams),t.fragment!==e.fragment&&n.fragment.next(e.fragment),Ki(t.params,e.params)||n.params.next(e.params),function A4(n,t){if(n.length!==t.length)return!1;for(let e=0;e<n.length;++e)if(!Ki(n[e],t[e]))return!1;return!0}(t.url,e.url)||n.url.next(e.url),Ki(t.data,e.data)||n.data.next(e.data)}else n.snapshot=n._futureSnapshot,n.data.next(n._futureSnapshot.data)}function r_(n,t){const e=Ki(n.params,t.params)&&function F4(n,t){return zs(n,t)&&n.every((e,i)=>Ki(e.parameters,t[i].parameters))}(n.url,t.url);return e&&!(!n.parent!=!t.parent)&&(!n.parent||r_(n.parent,t.parent))}function Vl(n,t,e){if(e&&n.shouldReuseRoute(t.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=t.value;const r=function y5(n,t,e){return t.children.map(i=>{for(const r of e.children)if(n.shouldReuseRoute(i.value,r.value.snapshot))return Vl(n,i,r);return Vl(n,i)})}(n,t,e);return new br(i,r)}{if(n.shouldAttach(t.value)){const s=n.retrieve(t.value);if(null!==s){const o=s.route;return o.value._futureSnapshot=t.value,o.children=t.children.map(a=>Vl(n,a)),o}}const i=function v5(n){return new oa(new Li(n.url),new Li(n.params),new Li(n.queryParams),new Li(n.fragment),new Li(n.data),n.outlet,n.component,n)}(t.value),r=t.children.map(s=>Vl(n,s));return new br(i,r)}}const s_="ngNavigationCancelingError";function Rx(n,t){const{redirectTo:e,navigationBehaviorOptions:i}=js(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,r=Fx(!1,0,t);return r.url=e,r.navigationBehaviorOptions=i,r}function Fx(n,t,e){const i=new Error("NavigationCancelingError: "+(n||""));return i[s_]=!0,i.cancellationCode=t,e&&(i.url=e),i}function Lx(n){return Nx(n)&&js(n.url)}function Nx(n){return n&&n[s_]}class b5{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Bl,this.attachRef=null}}let Bl=(()=>{class n{constructor(){this.contexts=new Map}onChildOutletCreated(e,i){const r=this.getOrCreateContext(e);r.outlet=i,this.contexts.set(e,r)}onChildOutletDestroyed(e){const i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new b5,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ld=!1;let o_=(()=>{class n{constructor(){this.activated=null,this._activatedRoute=null,this.name=Ae,this.activateEvents=new N,this.deactivateEvents=new N,this.attachEvents=new N,this.detachEvents=new N,this.parentContexts=$e(Bl),this.location=$e(Oi),this.changeDetector=$e(bt),this.environmentInjector=$e(cr)}ngOnChanges(e){if(e.name){const{firstChange:i,previousValue:r}=e.name;if(i)return;this.isTrackedInParentContexts(r)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(r)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new L(4012,Ld);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new L(4012,Ld);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new L(4012,Ld);this.location.detach();const e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,i){this.activated=e,this._activatedRoute=i,this.location.insert(e.hostView),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){const e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,i){if(this.isActivated)throw new L(4013,Ld);this._activatedRoute=e;const r=this.location,o=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new w5(e,a,r.injector);if(i&&function C5(n){return!!n.resolveComponentFactory}(i)){const c=i.resolveComponentFactory(o);this.activated=r.createComponent(c,r.length,l)}else this.activated=r.createComponent(o,{index:r.length,injector:l,environmentInjector:i??this.environmentInjector});this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275dir=se({type:n,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Zt]}),n})();class w5{constructor(t,e,i){this.route=t,this.childContexts=e,this.parent=i}get(t,e){return t===oa?this.route:t===Bl?this.childContexts:this.parent.get(t,e)}}let a_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Se({type:n,selectors:[["ng-component"]],standalone:!0,features:[H1],decls:1,vars:0,template:function(e,i){1&e&&F(0,"router-outlet")},dependencies:[o_],encapsulation:2}),n})();function Vx(n,t){return n.providers&&!n._injector&&(n._injector=Qu(n.providers,t,`Route: ${n.path}`)),n._injector??t}function c_(n){const t=n.children&&n.children.map(c_),e=t?{...n,children:t}:{...n};return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==Ae&&(e.component=a_),e}function pi(n){return n.outlet||Ae}function Bx(n,t){const e=n.filter(i=>pi(i)===t);return e.push(...n.filter(i=>pi(i)!==t)),e}function Hl(n){if(!n)return null;if(n.routeConfig?._injector)return n.routeConfig._injector;for(let t=n.parent;t;t=t.parent){const e=t.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class T5{constructor(t,e,i,r){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(t){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),i_(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){const r=sa(e);t.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,r[o],i),delete r[o]}),an(r,(s,o)=>{this.deactivateRouteAndItsChildren(s,i)})}deactivateRoutes(t,e,i){const r=t.value,s=e?e.value:null;if(r===s)if(r.component){const o=i.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=sa(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);if(i&&i.outlet){const o=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:o,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){const i=e.getContext(t.value.outlet),r=i&&t.value.component?i.children:e,s=sa(t);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],r);i&&i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated(),i.attachRef=null,i.resolver=null,i.route=null)}activateChildRoutes(t,e,i){const r=sa(e);t.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],i),this.forwardEvent(new f5(s.value.snapshot))}),t.children.length&&this.forwardEvent(new d5(t.value.snapshot))}activateRoutes(t,e,i){const r=t.value,s=e?e.value:null;if(i_(r),r===s)if(r.component){const o=i.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,i);else if(r.component){const o=i.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){const a=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),i_(a.route.value),this.activateChildRoutes(t,null,o.children)}else{const a=Hl(r.snapshot),l=a?.get(il)??null;o.attachRef=null,o.route=r,o.resolver=l,o.injector=a,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,i)}}class Hx{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Nd{constructor(t,e){this.component=t,this.route=e}}function I5(n,t,e){const i=n._root;return zl(i,t?t._root:null,e,[i.value])}function aa(n,t){const e=Symbol(),i=t.get(n,e);return i===e?"function"!=typeof n||function EP(n){return null!==Jc(n)}(n)?t.get(n):n:i}function zl(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=sa(t);return n.children.forEach(o=>{(function k5(n,t,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=n.value,o=t?t.value:null,a=e?e.getContext(n.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function A5(n,t,e){if("function"==typeof e)return e(n,t);switch(e){case"pathParamsChange":return!zs(n.url,t.url);case"pathParamsOrQueryParamsChange":return!zs(n.url,t.url)||!Ki(n.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!r_(n,t)||!Ki(n.queryParams,t.queryParams);default:return!r_(n,t)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new Hx(i)):(s.data=o.data,s._resolvedData=o._resolvedData),zl(n,t,s.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new Nd(a.outlet.component,o))}else o&&jl(t,a,r),r.canActivateChecks.push(new Hx(i)),zl(n,null,s.component?a?a.children:null:e,i,r)})(o,s[o.value.outlet],e,i.concat([o.value]),r),delete s[o.value.outlet]}),an(s,(o,a)=>jl(o,e.getContext(a),r)),r}function jl(n,t,e){const i=sa(n),r=n.value;an(i,(s,o)=>{jl(s,r.component?t?t.children.getContext(o):null:t,e)}),e.canDeactivateChecks.push(new Nd(r.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,r))}function $l(n){return"function"==typeof n}function u_(n){return n instanceof xd||"EmptyError"===n?.name}const Vd=Symbol("INITIAL_VALUE");function la(){return Gi(n=>tx(n.map(t=>t.pipe(Al(1),function D4(...n){const t=Aa(n);return Yt((e,i)=>{(t?$m(n,e,t):$m(n,e)).subscribe(i)})}(Vd)))).pipe(Me(t=>{for(const e of t)if(!0!==e){if(e===Vd)return Vd;if(!1===e||e instanceof Hs)return e}return!0}),yr(t=>t!==Vd),Al(1)))}function zx(n){return function GO(...n){return qv(n)}(_n(t=>{if(js(t))throw Rx(0,t)}),Me(t=>!0===t))}const d_={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function jx(n,t,e,i,r){const s=h_(n,t,e);return s.matched?function q5(n,t,e,i){const r=t.canMatch;return r&&0!==r.length?ae(r.map(o=>{const a=aa(o,n);return Qr(function N5(n){return n&&$l(n.canMatch)}(a)?a.canMatch(t,e):n.runInContext(()=>a(t,e)))})).pipe(la(),zx()):ae(!0)}(i=Vx(t,i),t,e).pipe(Me(o=>!0===o?s:{...d_})):ae(s)}function h_(n,t,e){if(""===t.path)return"full"===t.pathMatch&&(n.hasChildren()||e.length>0)?{...d_}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(t.matcher||k4)(e,n,t);if(!r)return{...d_};const s={};an(r.posParams,(a,l)=>{s[l]=a.path});const o=r.consumed.length>0?{...s,...r.consumed[r.consumed.length-1].parameters}:s;return{matched:!0,consumedSegments:r.consumed,remainingSegments:e.slice(r.consumed.length),parameters:o,positionalParamSegments:r.posParams??{}}}function Bd(n,t,e,i){if(e.length>0&&function Z5(n,t,e){return e.some(i=>Hd(n,t,i)&&pi(i)!==Ae)}(n,e,i)){const s=new Oe(t,function Q5(n,t,e,i){const r={};r[Ae]=i,i._sourceSegment=n,i._segmentIndexShift=t.length;for(const s of e)if(""===s.path&&pi(s)!==Ae){const o=new Oe([],{});o._sourceSegment=n,o._segmentIndexShift=t.length,r[pi(s)]=o}return r}(n,t,i,new Oe(e,n.children)));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function X5(n,t,e){return e.some(i=>Hd(n,t,i))}(n,e,i)){const s=new Oe(n.segments,function Y5(n,t,e,i,r){const s={};for(const o of i)if(Hd(n,e,o)&&!r[pi(o)]){const a=new Oe([],{});a._sourceSegment=n,a._segmentIndexShift=t.length,s[pi(o)]=a}return{...r,...s}}(n,t,e,i,n.children));return s._sourceSegment=n,s._segmentIndexShift=t.length,{segmentGroup:s,slicedSegments:e}}const r=new Oe(n.segments,n.children);return r._sourceSegment=n,r._segmentIndexShift=t.length,{segmentGroup:r,slicedSegments:e}}function Hd(n,t,e){return(!(n.hasChildren()||t.length>0)||"full"!==e.pathMatch)&&""===e.path}function $x(n,t,e,i){return!!(pi(n)===i||i!==Ae&&Hd(t,e,n))&&("**"===n.path||h_(t,n,e).matched)}function Ux(n,t,e){return 0===t.length&&!n.children[e]}const zd=!1;class jd{constructor(t){this.segmentGroup=t||null}}class Wx{constructor(t){this.urlTree=t}}function Ul(n){return kl(new jd(n))}function Gx(n){return kl(new Wx(n))}class nj{constructor(t,e,i,r,s){this.injector=t,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=s,this.allowRedirects=!0}apply(){const t=Bd(this.urlTree.root,[],[],this.config).segmentGroup,e=new Oe(t.segments,t.children);return this.expandSegmentGroup(this.injector,this.config,e,Ae).pipe(Me(s=>this.createUrlTree(Pd(s),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Yr(s=>{if(s instanceof Wx)return this.allowRedirects=!1,this.match(s.urlTree);throw s instanceof jd?this.noMatchError(s):s}))}match(t){return this.expandSegmentGroup(this.injector,this.config,t.root,Ae).pipe(Me(r=>this.createUrlTree(Pd(r),t.queryParams,t.fragment))).pipe(Yr(r=>{throw r instanceof jd?this.noMatchError(r):r}))}noMatchError(t){return new L(4002,zd)}createUrlTree(t,e,i){const r=Ym(t);return new Hs(r,e,i)}expandSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(t,e,i).pipe(Me(s=>new Oe([],s))):this.expandSegment(t,i,e,i.segments,r,!0)}expandChildren(t,e,i){const r=[];for(const s of Object.keys(i.children))"primary"===s?r.unshift(s):r.push(s);return Rt(r).pipe(qr(s=>{const o=i.children[s],a=Bx(e,s);return this.expandSegmentGroup(t,a,o,s).pipe(Me(l=>({segment:l,outlet:s})))}),ox((s,o)=>(s[o.outlet]=o.segment,s),{}),ax())}expandSegment(t,e,i,r,s,o){return Rt(i).pipe(qr(a=>this.expandSegmentAgainstRoute(t,e,i,a,r,s,o).pipe(Yr(c=>{if(c instanceof jd)return ae(null);throw c}))),Kr(a=>!!a),Yr((a,l)=>{if(u_(a))return Ux(e,r,s)?ae(new Oe([],{})):Ul(e);throw a}))}expandSegmentAgainstRoute(t,e,i,r,s,o,a){return $x(r,e,s,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,s,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o):Ul(e):Ul(e)}expandSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,i,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,r){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Gx(s):this.lineralizeSegments(i,s).pipe(nn(o=>{const a=new Oe(o,{});return this.expandSegment(t,a,e,o,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,e,i,r,s,o){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=h_(e,r,s);if(!a)return Ul(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?Gx(d):this.lineralizeSegments(r,d).pipe(nn(h=>this.expandSegment(t,e,i,h.concat(c),o,!1)))}matchSegmentAgainstRoute(t,e,i,r,s){return"**"===i.path?(t=Vx(i,t),i.loadChildren?(i._loadedRoutes?ae({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(t,i)).pipe(Me(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new Oe(r,{})))):ae(new Oe(r,{}))):jx(e,i,r,t).pipe(Gi(({matched:o,consumedSegments:a,remainingSegments:l})=>o?this.getChildConfig(t=i._injector??t,i,r).pipe(nn(u=>{const d=u.injector??t,h=u.routes,{segmentGroup:f,slicedSegments:p}=Bd(e,a,l,h),g=new Oe(f.segments,f.children);if(0===p.length&&g.hasChildren())return this.expandChildren(d,h,g).pipe(Me(D=>new Oe(a,D)));if(0===h.length&&0===p.length)return ae(new Oe(a,{}));const y=pi(i)===s;return this.expandSegment(d,g,h,p,y?Ae:s,!0).pipe(Me(x=>new Oe(a.concat(x.segments),x.children)))})):Ul(e)))}getChildConfig(t,e,i){return e.children?ae({routes:e.children,injector:t}):e.loadChildren?void 0!==e._loadedRoutes?ae({routes:e._loadedRoutes,injector:e._loadedInjector}):function K5(n,t,e,i){const r=t.canLoad;return void 0===r||0===r.length?ae(!0):ae(r.map(o=>{const a=aa(o,n);return Qr(function P5(n){return n&&$l(n.canLoad)}(a)?a.canLoad(t,e):n.runInContext(()=>a(t,e)))})).pipe(la(),zx())}(t,e,i).pipe(nn(r=>r?this.configLoader.loadChildren(t,e).pipe(_n(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):function ej(n){return kl(Fx(zd,3))}())):ae({routes:[],injector:t})}lineralizeSegments(t,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return ae(i);if(r.numberOfChildren>1||!r.children[Ae])return kl(new L(4e3,zd));r=r.children[Ae]}}applyRedirectCommands(t,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),t,i)}applyRedirectCreateUrlTree(t,e,i,r){const s=this.createSegmentGroup(t,e.root,i,r);return new Hs(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){const i={};return an(t,(r,s)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[s]=e[a]}else i[s]=r}),i}createSegmentGroup(t,e,i,r){const s=this.createSegments(t,e.segments,i,r);let o={};return an(e.children,(a,l)=>{o[l]=this.createSegmentGroup(t,a,i,r)}),new Oe(s,o)}createSegments(t,e,i,r){return e.map(s=>s.path.startsWith(":")?this.findPosParam(t,s,r):this.findOrReturn(s,i))}findPosParam(t,e,i){const r=i[e.path.substring(1)];if(!r)throw new L(4001,zd);return r}findOrReturn(t,e){let i=0;for(const r of e){if(r.path===t.path)return e.splice(i),r;i++}return t}}class rj{}class aj{constructor(t,e,i,r,s,o,a){this.injector=t,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a}recognize(){const t=Bd(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,Ae).pipe(Me(e=>{if(null===e)return null;const i=new Fd([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Ae,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new br(i,e),s=new Ox(this.url,r);return this.inheritParamsAndData(s._root),s}))}inheritParamsAndData(t){const e=t.value,i=Ax(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(t,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(t,e,i):this.processSegment(t,e,i,i.segments,r)}processChildren(t,e,i){return Rt(Object.keys(i.children)).pipe(qr(r=>{const s=i.children[r],o=Bx(e,r);return this.processSegmentGroup(t,o,s,r)}),ox((r,s)=>r&&s?(r.push(...s),r):null),function T4(n,t=!1){return Yt((e,i)=>{let r=0;e.subscribe(Bt(i,s=>{const o=n(s,r++);(o||t)&&i.next(s),!o&&i.complete()}))})}(r=>null!==r),Ed(null),ax(),Me(r=>{if(null===r)return null;const s=qx(r);return function lj(n){n.sort((t,e)=>t.value.outlet===Ae?-1:e.value.outlet===Ae?1:t.value.outlet.localeCompare(e.value.outlet))}(s),s}))}processSegment(t,e,i,r,s){return Rt(e).pipe(qr(o=>this.processSegmentAgainstRoute(o._injector??t,o,i,r,s)),Kr(o=>!!o),Yr(o=>{if(u_(o))return Ux(i,r,s)?ae([]):ae(null);throw o}))}processSegmentAgainstRoute(t,e,i,r,s){if(e.redirectTo||!$x(e,i,r,s))return ae(null);let o;if("**"===e.path){const a=r.length>0?ux(r).parameters:{},l=Qx(i)+r.length;o=ae({snapshot:new Fd(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Zx(e),pi(e),e.component??e._loadedComponent??null,e,Yx(i),l,Xx(e)),consumedSegments:[],remainingSegments:[]})}else o=jx(i,e,r,t).pipe(Me(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=Qx(i)+l.length;return{snapshot:new Fd(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Zx(e),pi(e),e.component??e._loadedComponent??null,e,Yx(i),d,Xx(e)),consumedSegments:l,remainingSegments:c}}));return o.pipe(Gi(a=>{if(null===a)return ae(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;t=e._injector??t;const d=e._loadedInjector??t,h=function cj(n){return n.children?n.children:n.loadChildren?n._loadedRoutes:[]}(e),{segmentGroup:f,slicedSegments:p}=Bd(i,c,u,h.filter(y=>void 0===y.redirectTo));if(0===p.length&&f.hasChildren())return this.processChildren(d,h,f).pipe(Me(y=>null===y?null:[new br(l,y)]));if(0===h.length&&0===p.length)return ae([new br(l,[])]);const g=pi(e)===s;return this.processSegment(d,h,f,p,g?Ae:s).pipe(Me(y=>null===y?null:[new br(l,y)]))}))}}function uj(n){const t=n.value.routeConfig;return t&&""===t.path&&void 0===t.redirectTo}function qx(n){const t=[],e=new Set;for(const i of n){if(!uj(i)){t.push(i);continue}const r=t.find(s=>i.value.routeConfig===s.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):t.push(i)}for(const i of e){const r=qx(i.children);t.push(new br(i.value,r))}return t.filter(i=>!e.has(i))}function Yx(n){let t=n;for(;t._sourceSegment;)t=t._sourceSegment;return t}function Qx(n){let t=n,e=t._segmentIndexShift??0;for(;t._sourceSegment;)t=t._sourceSegment,e+=t._segmentIndexShift??0;return e-1}function Zx(n){return n.data||{}}function Xx(n){return n.resolve||{}}function Jx(n){return"string"==typeof n.title||null===n.title}function f_(n){return Gi(t=>{const e=n(t);return e?Rt(e).pipe(Me(()=>t)):ae(t)})}class yj{constructor(t){this.router=t,this.currentNavigation=null}setupNavigations(t){const e=this.router.events;return t.pipe(yr(i=>0!==i.id),Me(i=>({...i,extractedUrl:this.router.urlHandlingStrategy.extract(i.rawUrl)})),Gi(i=>{let r=!1,s=!1;return ae(i).pipe(_n(o=>{this.currentNavigation={id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,trigger:o.source,extras:o.extras,previousNavigation:this.router.lastSuccessfulNavigation?{...this.router.lastSuccessfulNavigation,previousNavigation:null}:null}}),Gi(o=>{const a=this.router.browserUrlTree.toString(),l=!this.router.navigated||o.extractedUrl.toString()!==a||a!==this.router.currentUrlTree.toString();if(("reload"===this.router.onSameUrlNavigation||l)&&this.router.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return tE(o.source)&&(this.router.browserUrlTree=o.extractedUrl),ae(o).pipe(Gi(u=>{const d=this.router.transitions.getValue();return e.next(new Jm(u.id,this.router.serializeUrl(u.extractedUrl),u.source,u.restoredState)),d!==this.router.transitions.getValue()?nr:Promise.resolve(u)}),function ij(n,t,e,i){return Gi(r=>function tj(n,t,e,i,r){return new nj(n,t,e,i,r).apply()}(n,t,e,r.extractedUrl,i).pipe(Me(s=>({...r,urlAfterRedirects:s}))))}(this.router.ngModule.injector,this.router.configLoader,this.router.urlSerializer,this.router.config),_n(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},i.urlAfterRedirects=u.urlAfterRedirects}),function hj(n,t,e,i,r){return nn(s=>function oj(n,t,e,i,r,s,o="emptyOnly"){return new aj(n,t,e,i,r,o,s).recognize().pipe(Gi(a=>null===a?function sj(n){return new St(t=>t.error(n))}(new rj):ae(a)))}(n,t,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r).pipe(Me(o=>({...s,targetSnapshot:o}))))}(this.router.ngModule.injector,this.router.rootComponentType,this.router.config,this.router.urlSerializer,this.router.paramsInheritanceStrategy),_n(u=>{if(i.targetSnapshot=u.targetSnapshot,"eager"===this.router.urlUpdateStrategy){if(!u.extras.skipLocationChange){const h=this.router.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);this.router.setBrowserUrl(h,u)}this.router.browserUrlTree=u.urlAfterRedirects}const d=new n5(u.id,this.router.serializeUrl(u.extractedUrl),this.router.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);e.next(d)}));if(l&&this.router.rawUrlTree&&this.router.urlHandlingStrategy.shouldProcessUrl(this.router.rawUrlTree)){const{id:d,extractedUrl:h,source:f,restoredState:p,extras:g}=o,y=new Jm(d,this.router.serializeUrl(h),f,p);e.next(y);const C=kx(h,this.router.rootComponentType).snapshot;return ae(i={...o,targetSnapshot:C,urlAfterRedirects:h,extras:{...g,skipLocationChange:!1,replaceUrl:!1}})}return this.router.rawUrlTree=o.rawUrl,o.resolve(null),nr}),_n(o=>{const a=new r5(o.id,this.router.serializeUrl(o.extractedUrl),this.router.serializeUrl(o.urlAfterRedirects),o.targetSnapshot);this.router.triggerEvent(a)}),Me(o=>i={...o,guards:I5(o.targetSnapshot,o.currentSnapshot,this.router.rootContexts)}),function B5(n,t){return nn(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return 0===o.length&&0===s.length?ae({...e,guardsResult:!0}):function H5(n,t,e,i){return Rt(n).pipe(nn(r=>function G5(n,t,e,i,r){const s=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return s&&0!==s.length?ae(s.map(a=>{const l=Hl(t)??r,c=aa(a,l);return Qr(function L5(n){return n&&$l(n.canDeactivate)}(c)?c.canDeactivate(n,t,e,i):l.runInContext(()=>c(n,t,e,i))).pipe(Kr())})).pipe(la()):ae(!0)}(r.component,r.route,e,t,i)),Kr(r=>!0!==r,!0))}(o,i,r,n).pipe(nn(a=>a&&function O5(n){return"boolean"==typeof n}(a)?function z5(n,t,e,i){return Rt(t).pipe(qr(r=>$m(function $5(n,t){return null!==n&&t&&t(new u5(n)),ae(!0)}(r.route.parent,i),function j5(n,t){return null!==n&&t&&t(new h5(n)),ae(!0)}(r.route,i),function W5(n,t,e){const i=t[t.length-1],s=t.slice(0,t.length-1).reverse().map(o=>function M5(n){const t=n.routeConfig?n.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:n,guards:t}:null}(o)).filter(o=>null!==o).map(o=>ix(()=>ae(o.guards.map(l=>{const c=Hl(o.node)??e,u=aa(l,c);return Qr(function F5(n){return n&&$l(n.canActivateChild)}(u)?u.canActivateChild(i,n):c.runInContext(()=>u(i,n))).pipe(Kr())})).pipe(la())));return ae(s).pipe(la())}(n,r.path,e),function U5(n,t,e){const i=t.routeConfig?t.routeConfig.canActivate:null;if(!i||0===i.length)return ae(!0);const r=i.map(s=>ix(()=>{const o=Hl(t)??e,a=aa(s,o);return Qr(function R5(n){return n&&$l(n.canActivate)}(a)?a.canActivate(t,n):o.runInContext(()=>a(t,n))).pipe(Kr())}));return ae(r).pipe(la())}(n,r.route,e))),Kr(r=>!0!==r,!0))}(i,s,n,t):ae(a)),Me(a=>({...e,guardsResult:a})))})}(this.router.ngModule.injector,o=>this.router.triggerEvent(o)),_n(o=>{if(i.guardsResult=o.guardsResult,js(o.guardsResult))throw Rx(0,o.guardsResult);const a=new s5(o.id,this.router.serializeUrl(o.extractedUrl),this.router.serializeUrl(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.router.triggerEvent(a)}),yr(o=>!!o.guardsResult||(this.router.restoreHistory(o),this.router.cancelNavigationTransition(o,"",3),!1)),f_(o=>{if(o.guards.canActivateChecks.length)return ae(o).pipe(_n(a=>{const l=new o5(a.id,this.router.serializeUrl(a.extractedUrl),this.router.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.router.triggerEvent(l)}),Gi(a=>{let l=!1;return ae(a).pipe(function fj(n,t){return nn(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return ae(e);let s=0;return Rt(r).pipe(qr(o=>function pj(n,t,e,i){const r=n.routeConfig,s=n._resolve;return void 0!==r?.title&&!Jx(r)&&(s[Ol]=r.title),function gj(n,t,e,i){const r=function mj(n){return[...Object.keys(n),...Object.getOwnPropertySymbols(n)]}(n);if(0===r.length)return ae({});const s={};return Rt(r).pipe(nn(o=>function _j(n,t,e,i){const r=Hl(t)??i,s=aa(n,r);return Qr(s.resolve?s.resolve(t,e):r.runInContext(()=>s(t,e)))}(n[o],t,e,i).pipe(Kr(),_n(a=>{s[o]=a}))),Wm(1),function I4(n){return Me(()=>n)}(s),Yr(o=>u_(o)?nr:kl(o)))}(s,n,t,i).pipe(Me(o=>(n._resolvedData=o,n.data=Ax(n,e).resolve,r&&Jx(r)&&(n.data[Ol]=r.title),null)))}(o.route,i,n,t)),_n(()=>s++),Wm(1),nn(o=>s===r.length?ae(e):nr))})}(this.router.paramsInheritanceStrategy,this.router.ngModule.injector),_n({next:()=>l=!0,complete:()=>{l||(this.router.restoreHistory(a),this.router.cancelNavigationTransition(a,"",2))}}))}),_n(a=>{const l=new a5(a.id,this.router.serializeUrl(a.extractedUrl),this.router.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.router.triggerEvent(l)}))}),f_(o=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.router.configLoader.loadComponent(l.routeConfig).pipe(_n(u=>{l.component=u}),Me(()=>{})));for(const u of l.children)c.push(...a(u));return c};return tx(a(o.targetSnapshot.root)).pipe(Ed(),Al(1))}),f_(()=>this.router.afterPreactivation()),Me(o=>{const a=function _5(n,t,e){const i=Vl(n,t._root,e?e._root:void 0);return new Mx(i,t)}(this.router.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return i={...o,targetRouterState:a}}),_n(o=>{this.router.currentUrlTree=o.urlAfterRedirects,this.router.rawUrlTree=this.router.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),this.router.routerState=o.targetRouterState,"deferred"===this.router.urlUpdateStrategy&&(o.extras.skipLocationChange||this.router.setBrowserUrl(this.router.rawUrlTree,o),this.router.browserUrlTree=o.urlAfterRedirects)}),((n,t,e)=>Me(i=>(new T5(t,i.targetRouterState,i.currentRouterState,e).activate(n),i)))(this.router.rootContexts,this.router.routeReuseStrategy,o=>this.router.triggerEvent(o)),_n({next(){r=!0},complete(){r=!0}}),Gm(()=>{r||s||this.router.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),Yr(o=>{if(s=!0,Nx(o)){Lx(o)||(this.router.navigated=!0,this.router.restoreHistory(i,!0));const a=new Rd(i.id,this.router.serializeUrl(i.extractedUrl),o.message,o.cancellationCode);if(e.next(a),Lx(o)){const l=this.router.urlHandlingStrategy.merge(o.url,this.router.rawUrlTree),c={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.router.urlUpdateStrategy||tE(i.source)};this.router.scheduleNavigation(l,"imperative",null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{this.router.restoreHistory(i,!0);const a=new Ex(i.id,this.router.serializeUrl(i.extractedUrl),o,i.targetSnapshot??void 0);e.next(a);try{i.resolve(this.router.errorHandler(o))}catch(l){i.reject(l)}}return nr}))}))}}function tE(n){return"imperative"!==n}let nE=(()=>{class n{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(s=>s.outlet===Ae);return i}getResolvedTitleForRoute(e){return e.data[Ol]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:function(){return $e(vj)},providedIn:"root"}),n})(),vj=(()=>{class n extends nE{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return n.\u0275fac=function(e){return new(e||n)(K(zm))},n.\u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),bj=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:function(){return $e(Cj)},providedIn:"root"}),n})();class wj{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}}let Cj=(()=>{class n extends wj{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=sn(n)))(i||n)}}(),n.\u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const $d=new X("",{providedIn:"root",factory:()=>({})}),ca=new X("ROUTES");let p_=(()=>{class n{constructor(e,i){this.injector=e,this.compiler=i,this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap}loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return ae(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Qr(e.loadComponent()).pipe(Me(rE),_n(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),Gm(()=>{this.componentLoaders.delete(e)})),r=new rx(i,()=>new Pt).pipe(Um());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return ae({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const s=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(Me(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=cx(l.get(ca,[],ue.Self|ue.Optional)));return{routes:c.map(c_),injector:l}}),Gm(()=>{this.childrenLoaders.delete(i)})),o=new rx(s,()=>new Pt).pipe(Um());return this.childrenLoaders.set(i,o),o}loadModuleFactoryOrRoutes(e){return Qr(e()).pipe(Me(rE),nn(r=>r instanceof V1||Array.isArray(r)?ae(r):Rt(this.compiler.compileModuleAsync(r))))}}return n.\u0275fac=function(e){return new(e||n)(K(Xn),K(sm))},n.\u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function rE(n){return function xj(n){return n&&"object"==typeof n&&"default"in n}(n)?n.default:n}let Ej=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:function(){return $e(Tj)},providedIn:"root"}),n})(),Tj=(()=>{class n{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ij(n){throw n}function Mj(n,t,e){return t.parse("/")}const kj={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Aj={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};function oE(){const n=$e(mx),t=$e(Bl),e=$e(bm),i=$e(Xn),r=$e(sm),s=$e(ca,{optional:!0})??[],o=$e($d,{optional:!0})??{},a=new Jt(null,n,t,e,i,r,cx(s));return function Oj(n,t){n.errorHandler&&(t.errorHandler=n.errorHandler),n.malformedUriErrorHandler&&(t.malformedUriErrorHandler=n.malformedUriErrorHandler),n.onSameUrlNavigation&&(t.onSameUrlNavigation=n.onSameUrlNavigation),n.paramsInheritanceStrategy&&(t.paramsInheritanceStrategy=n.paramsInheritanceStrategy),n.urlUpdateStrategy&&(t.urlUpdateStrategy=n.urlUpdateStrategy),n.canceledNavigationResolution&&(t.canceledNavigationResolution=n.canceledNavigationResolution)}(o,a),a}let Jt=(()=>{class n{constructor(e,i,r,s,o,a,l){this.rootComponentType=e,this.urlSerializer=i,this.rootContexts=r,this.location=s,this.config=l,this.lastSuccessfulNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Pt,this.errorHandler=Ij,this.malformedUriErrorHandler=Mj,this.navigated=!1,this.lastSuccessfulId=-1,this.afterPreactivation=()=>ae(void 0),this.urlHandlingStrategy=$e(Ej),this.routeReuseStrategy=$e(bj),this.titleStrategy=$e(nE),this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.canceledNavigationResolution="replace",this.navigationTransitions=new yj(this),this.configLoader=o.get(p_),this.configLoader.onLoadEndListener=h=>this.triggerEvent(new c5(h)),this.configLoader.onLoadStartListener=h=>this.triggerEvent(new l5(h)),this.ngModule=o.get(Ns),this.console=o.get(rB);const d=o.get(Qe);this.isNgZoneEnabled=d instanceof Qe&&Qe.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new Hs,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=kx(this.currentUrlTree,this.rootComponentType),this.transitions=new Li({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.navigationTransitions.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){return this.location.getState()?.\u0275routerPageId}resetRootComponentType(e){this.rootComponentType=e,this.routerState.root.component=this.rootComponentType}setTransition(e){this.transitions.next({...this.transitions.value,...e})}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{const r={replaceUrl:!0},s=e.state?.navigationId?e.state:null;if(e.state){const a={...e.state};delete a.navigationId,delete a.\u0275routerPageId,0!==Object.keys(a).length&&(r.state=a)}const o=this.parseUrl(e.url);this.scheduleNavigation(o,i,s,r)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}triggerEvent(e){this.events.next(e)}resetConfig(e){this.config=e.map(c_),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(e,i={}){const{relativeTo:r,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:l}=i,c=r||this.routerState.root,u=l?this.currentUrlTree.fragment:o;let d=null;switch(a){case"merge":d={...this.currentUrlTree.queryParams,...s};break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}return null!==d&&(d=this.removeEmptyProps(d)),Q4(c,this.currentUrlTree,e,d,u??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=js(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,i)}navigate(e,i={skipLocationChange:!1}){return function Pj(n){for(let t=0;t<n.length;t++){if(null==n[t])throw new L(4008,!1)}}(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){let i;try{i=this.urlSerializer.parse(e)}catch(r){i=this.malformedUriErrorHandler(r,this.urlSerializer,e)}return i}isActive(e,i){let r;if(r=!0===i?{...kj}:!1===i?{...Aj}:i,js(e))return hx(this.currentUrlTree,e,r);const s=this.parseUrl(e);return hx(this.currentUrlTree,s,r)}removeEmptyProps(e){return Object.keys(e).reduce((i,r)=>{const s=e[r];return null!=s&&(i[r]=s),i},{})}processNavigations(){this.navigations.subscribe(e=>{this.navigated=!0,this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId,this.events.next(new Zr(e.id,this.serializeUrl(e.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.getCurrentNavigation(),this.titleStrategy?.updateTitle(this.routerState.snapshot),e.resolve(!0)},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}scheduleNavigation(e,i,r,s,o){if(this.disposed)return Promise.resolve(!1);let a,l,c;o?(a=o.resolve,l=o.reject,c=o.promise):c=new Promise((h,f)=>{a=h,l=f});const u=++this.navigationId;let d;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(r=this.location.getState()),d=r&&r.\u0275routerPageId?r.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1):d=0,this.setTransition({id:u,targetPageId:d,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,rawUrl:e,extras:s,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(h=>Promise.reject(h))}setBrowserUrl(e,i){const r=this.urlSerializer.serialize(e),s={...i.extras.state,...this.generateNgRouterState(i.id,i.targetPageId)};this.location.isCurrentPathEqualTo(r)||i.extras.replaceUrl?this.location.replaceState(r,"",s):this.location.go(r,"",s)}restoreHistory(e,i=!1){if("computed"===this.canceledNavigationResolution){const r=this.currentPageId-e.targetPageId;"popstate"!==e.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==this.getCurrentNavigation()?.finalUrl||0===r?this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===r&&(this.resetState(e),this.browserUrlTree=e.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(r)}else"replace"===this.canceledNavigationResolution&&(i&&this.resetState(e),this.resetUrlToCurrentUrlTree())}resetState(e){this.routerState=e.currentRouterState,this.currentUrlTree=e.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(e,i,r){const s=new Rd(e.id,this.serializeUrl(e.extractedUrl),i,r);this.triggerEvent(s),e.resolve(!1)}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return n.\u0275fac=function(e){og()},n.\u0275prov=Z({token:n,factory:function(){return oE()},providedIn:"root"}),n})(),Ud=(()=>{class n{constructor(e,i,r,s,o,a){this.router=e,this.route=i,this.tabIndexAttribute=r,this.renderer=s,this.el=o,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new Pt;const l=o.nativeElement.tagName;this.isAnchorElement="A"===l||"AREA"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof Zr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=ta(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=ta(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=ta(e)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(e){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(e){null!=e?(this.commands=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(e,i,r,s,o){return!!(null===this.urlTree||this.isAnchorElement&&(0!==e||i||r||s||o||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const e=null===this.href?null:function r0(n,t,e){return function u2(n,t){return"src"===t&&("embed"===n||"frame"===n||"iframe"===n||"media"===n||"script"===n)||"href"===t&&("base"===n||"link"===n)?n0:Po}(t,e)(n)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",e)}applyAttributeValue(e,i){const r=this.renderer,s=this.el.nativeElement;null!==i?r.setAttribute(s,e,i):r.removeAttribute(s,e)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return n.\u0275fac=function(e){return new(e||n)(M(Jt),M(oa),function yu(n){return function kR(n,t){if("class"===t)return n.classes;if("style"===t)return n.styles;const e=n.attrs;if(e){const i=e.length;let r=0;for(;r<i;){const s=e[r];if(Wb(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(s===t)return e[r+1];r+=2}}}return null}(rn(),n)}("tabindex"),M(Mn),M(ze),M(Bs))},n.\u0275dir=se({type:n,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,i){1&e&&R("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&e&&Ce("target",i.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",relativeTo:"relativeTo",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",routerLink:"routerLink"},standalone:!0,features:[Zt]}),n})(),aE=(()=>{class n{constructor(e,i,r,s,o){this.router=e,this.element=i,this.renderer=r,this.cdr=s,this.link=o,this.classes=[],this.isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new N,this.routerEventsSubscription=e.events.subscribe(a=>{a instanceof Zr&&this.update()})}ngAfterContentInit(){ae(this.links.changes,ae(null)).pipe(po()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=Rt(e).pipe(po()).subscribe(i=>{this.isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){const i=Array.isArray(e)?e:e.split(" ");this.classes=i.filter(r=>!!r)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const e=this.hasActiveLinks();this.isActive!==e&&(this.isActive=e,this.cdr.markForCheck(),this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),e&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(e))})}isLinkActive(e){const i=function Rj(n){return!!n.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return r=>!!r.urlTree&&e.isActive(r.urlTree,i)}hasActiveLinks(){const e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}}return n.\u0275fac=function(e){return new(e||n)(M(Jt),M(ze),M(Mn),M(bt),M(Ud,8))},n.\u0275dir=se({type:n,selectors:[["","routerLinkActive",""]],contentQueries:function(e,i,r){if(1&e&&$t(r,Ud,5),2&e){let s;ie(s=re())&&(i.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Zt]}),n})();class lE{}let Fj=(()=>{class n{constructor(e,i,r,s,o){this.router=e,this.injector=r,this.preloadingStrategy=s,this.loader=o}setUpPreloading(){this.subscription=this.router.events.pipe(yr(e=>e instanceof Zr),qr(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,i){const r=[];for(const s of i){s.providers&&!s._injector&&(s._injector=Qu(s.providers,e,`Route: ${s.path}`));const o=s._injector??e,a=s._loadedInjector??o;s.loadChildren&&!s._loadedRoutes&&void 0===s.canLoad||s.loadComponent&&!s._loadedComponent?r.push(this.preloadConfig(o,s)):(s.children||s._loadedRoutes)&&r.push(this.processRoutes(a,s.children??s._loadedRoutes))}return Rt(r).pipe(po())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):ae(null);const s=r.pipe(nn(o=>null===o?ae(void 0):(i._loadedRoutes=o.routes,i._loadedInjector=o.injector,this.processRoutes(o.injector??e,o.routes))));return i.loadComponent&&!i._loadedComponent?Rt([s,this.loader.loadComponent(i)]).pipe(po()):s})}}return n.\u0275fac=function(e){return new(e||n)(K(Jt),K(sm),K(cr),K(lE),K(p_))},n.\u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const g_=new X("");let cE=(()=>{class n{constructor(e,i,r,s={}){this.router=e,this.viewportScroller=i,this.zone=r,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Jm?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Zr&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.router.parseUrl(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(e=>{e instanceof Tx&&(e.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(e.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,i){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.router.triggerEvent(new Tx(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return n.\u0275fac=function(e){og()},n.\u0275prov=Z({token:n,factory:n.\u0275fac}),n})();function da(n,t){return{\u0275kind:n,\u0275providers:t}}function dE(){const n=$e(Xn);return t=>{const e=n.get(Sl);if(t!==e.components[0])return;const i=n.get(Jt),r=n.get(hE);1===n.get(__)&&i.initialNavigation(),n.get(fE,null,ue.Optional)?.setUpPreloading(),n.get(g_,null,ue.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.unsubscribe())}}const hE=new X("",{factory:()=>new Pt}),__=new X("",{providedIn:"root",factory:()=>1});const fE=new X("");function Hj(n){return da(0,[{provide:fE,useExisting:Fj},{provide:lE,useExisting:n}])}const pE=new X("ROUTER_FORROOT_GUARD"),zj=[bm,{provide:mx,useClass:Km},{provide:Jt,useFactory:oE},Bl,{provide:oa,useFactory:function uE(n){return n.routerState.root},deps:[Jt]},p_,[]];function jj(){return new VS("Router",Jt)}let Wd=(()=>{class n{constructor(e){}static forRoot(e,i){return{ngModule:n,providers:[zj,[],{provide:ca,multi:!0,useValue:e},{provide:pE,useFactory:Gj,deps:[[Jt,new Ka,new qa]]},{provide:$d,useValue:i||{}},i?.useHash?{provide:Bs,useClass:WB}:{provide:Bs,useClass:aD},{provide:g_,useFactory:()=>{const n=$e(Jt),t=$e(cz),e=$e(Qe),i=$e($d);return i.scrollOffset&&t.setOffset(i.scrollOffset),new cE(n,t,e,i)}},i?.preloadingStrategy?Hj(i.preloadingStrategy).\u0275providers:[],{provide:VS,multi:!0,useFactory:jj},i?.initialNavigation?Kj(i):[],[{provide:gE,useFactory:dE},{provide:kS,multi:!0,useExisting:gE}]]}}static forChild(e){return{ngModule:n,providers:[{provide:ca,multi:!0,useValue:e}]}}}return n.\u0275fac=function(e){return new(e||n)(K(pE,8))},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[a_]}),n})();function Gj(n){return"guarded"}function Kj(n){return["disabled"===n.initialNavigation?da(3,[{provide:ed,multi:!0,useFactory:()=>{const t=$e(Jt);return()=>{t.setUpLocationChangeListener()}}},{provide:__,useValue:2}]).\u0275providers:[],"enabledBlocking"===n.initialNavigation?da(2,[{provide:__,useValue:0},{provide:ed,multi:!0,deps:[Xn],useFactory:t=>{const e=t.get($B,Promise.resolve());return()=>e.then(()=>new Promise(r=>{const s=t.get(Jt),o=t.get(hE);(function i(r){t.get(Jt).events.pipe(yr(o=>o instanceof Zr||o instanceof Rd||o instanceof Ex),Me(o=>o instanceof Zr||o instanceof Rd&&(0===o.code||1===o.code)&&null),yr(o=>null!==o),Al(1)).subscribe(()=>{r()})})(()=>{r(!0)}),s.afterPreactivation=()=>(r(!0),o.closed?ae(void 0):o),s.initialNavigation()}))}}]).\u0275providers:[]]}const gE=new X("");function mE(n,t,e,i,r,s,o){try{var a=n[s](o),l=a.value}catch(c){return void e(c)}a.done?t(l):Promise.resolve(l).then(i,r)}function _E(n){return function(){var t=this,e=arguments;return new Promise(function(i,r){var s=n.apply(t,e);function o(l){mE(s,i,r,o,a,"next",l)}function a(l){mE(s,i,r,o,a,"throw",l)}o(void 0)})}}let Yj=(()=>{class n{constructor(){this.conjuntoColorido=[[0,0,0],[128,128,128],[255,255,255],[255,0,0],[128,0,0],[0,255,0],[0,128,0],[0,0,255],[0,0,128],[255,255,0],[128,128,0],[255,0,255],[128,0,128],[0,255,255],[0,128,128]],this.conjuntoGreyscale=[[0,0,0],[128,128,128],[255,255,255]],this.conjuntoCodigos={1:["{","}","(",")","[","]",";",".",",","x","&","!","$","%","+","-","=","#","@","*"],2:["if","to","xp","&p","p=","i+","i-","to","do","as","in","is","rw","mv","*p","**","*i","or","py","cs","rb"],3:["for","ind","aux","var","let","red","int","bit","new","out","try","num","ref","cmd","std","mem","git","and","xor","asm","jar","c++","map","use","set","ios"],4:["then","here","goto","char","byte","bool","p[i]","x[k]","null","void","this","uint","true","else","base","long","lock","case","aloc","push","pull","enum","list"],5:["class","throw","while","false","float","fixed","using","break","sbyte","ulong","event","stdin","maloc","catch","const","ilist","stack","queue","tuple","regex","mutex"],6:["string","double","static","switch","return","typeof","object","stdout","sizeof","struct","delete","vector","memory","locale","iosfwd","limits","thread","future","random"],7:["include","virtual","decimal","default","checked","finally","foreach","private","replace","virtual","extern","istream","ostream","numeric","int x=1","this->x","list.to"],11:["while(true)"],open:["{","[","("],close:["}","]",")"]}}dist(e,i){return Math.sqrt(Math.pow(Math.abs(e[0]-i[0]),2)+Math.pow(Math.abs(e[1]-i[1]),2)+Math.pow(Math.abs(e[2]-i[2]),2))}rand(){return Math.floor(100*Math.random())}greyscalePixel(e){var i=(e[0]+e[1]+e[2])/3;return[i,i,i]}k_means_clustering(e,i){let r=i.length,s=[];for(let a=1;a<r;a++)s[a]=0;let o=0;s[0]=this.dist(i[0],e);for(let a=1;a<r;a++)s[a]=this.dist(i[a],e),s[a]<s[o]&&(o=a);return o+1}validBackspace(e){return"\b"==e?" ":e}validaProxChar(e,i,r){return!(i+1>=r||" "==e[i+1])}gerarPadrao(e){var i=this.rand()%this.conjuntoCodigos[e].length;return this.conjuntoCodigos[e][i]}gerarAscArt(e,i,r,s,o){var a="";return 1==e&&(a=this.model_1(i,r,s,o)),2==e&&(a=this.model_2(i,r,s,o)),3==e&&(a=this.model_3(i,r,s,o)),a}model_1(e,i,r,s){for(var o="",a=0;a<i;a++){for(var l=0;l<r;l++){var c=e.getImageData(l,a,1,1).data,u=[c[0],c[1],c[2]];1==s&&(u=this.greyscalePixel(u));var h="";if(1==(d=this.k_means_clustering(u,this.conjuntoColorido)))this.rand()%2==0?h+="#":h+="W";else if(2==d)this.rand()%2==0?h+=".":h+=",";else if(3==d)h+=" ";else if(4==d)this.rand()%2==0?h+='"':h+="'";else if(5==d)this.rand()%2==0?h+="*":h+=";";else if(6==d){let p=this.rand()%3;0==p?h+="+":1==p?h+="-":2==p&&(h+="/")}else if(7==d)h+=String.fromCharCode(this.rand()%10+48);else if(8==d)this.rand()%2==0?h+="{":h+="}";else if(9==d)this.rand()%2==0?h+="(":h+=")";else if(10==d)this.rand()%2==0?h+="[":h+="]";else if(11==d)this.rand()%2==0?h+="<":h+=">";else if(12==d)this.rand()%2==0?h+="&":h+="%";else if(13==d)this.rand()%2==0?h+="$":h+="!";else if(14==d)this.rand()%2==0?h+="@":h+="a";else if(15==d){var d;h+=0==(d=this.rand()%3)?"h":1==d?"u":"e"}else h+=" ";o+=this.validBackspace(h)}o+="\n"}return o}model_2(e,i,r,s){for(var o="",a=0;a<i;a++){for(var l=0;l<r;l++){var c=e.getImageData(l,a,1,1).data,u=[c[0],c[1],c[2]];1==s&&(u=this.greyscalePixel(u));var h="";if(1==(d=this.k_means_clustering(u,this.conjuntoColorido)))this.rand()%2==0?h+="w":h+="W";else if(2==d)this.rand()%2==0?h+="x":h+="v";else if(3==d)h+=" ";else if(4==d)this.rand()%2==0?h+='"':h+="o";else if(5==d)this.rand()%2==0?h+="r":h+="f";else if(6==d){let p=this.rand()%3;0==p?h+="k":1==p?h+="u":2==p&&(h+="e")}else if(7==d)h+=String.fromCharCode(this.rand()%10+48);else if(8==d)this.rand()%2==0?h+="t":h+="T";else if(9==d)this.rand()%2==0?h+="x":h+="X";else if(10==d)this.rand()%2==0?h+="[":h+="]";else if(11==d)this.rand()%2==0?h+="o":h+="t";else if(12==d)this.rand()%2==0?h+="&":h+="%";else if(13==d)this.rand()%2==0?h+="$":h+="!";else if(14==d)this.rand()%2==0?h+="q":h+="a";else if(15==d){var d;h+=0==(d=this.rand()%3)?"h":1==d?"u":"e"}else h+=" ";o+=this.validBackspace(h)}o+="\n"}return o}model_3(e,i,r,s){for(var o=new Array(i),a=0;a<i;a++){o[a]="";for(var l=0;l<r;l++){var c=e.getImageData(l,a,1,1).data,u=[c[0],c[1],c[2]];1==s&&(u=this.greyscalePixel(u));var d=this.k_means_clustering(u,this.conjuntoGreyscale),h="";1==d||2==d?h="#":3==d&&(h=" "),o[a]+=h}}var f="";for(a=0;a<i;a++){var p=o[a],g="";for(l=0;l<r;l++)if(" "==p[l])g+=" ";else if(this.validaProxChar(p,l,r)){var y=this.rand()%10;if(0==y)g+=this.gerarPadrao("open");else if(1==y||2==y)l++,g+=this.gerarPadrao(2);else if(3==y)g+=" ";else{let D=1;for(;this.validaProxChar(p,l+D,r)&&D<6&&this.rand()%2==0;)D++;l+=D,g+=this.gerarPadrao(D+1)}}else g+=this.gerarPadrao("close");f+=g+"\n"}return f}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class U{static equals(t,e,i){return i?this.resolveFieldData(t,i)===this.resolveFieldData(e,i):this.equalsByValue(t,e)}static equalsByValue(t,e){if(t===e)return!0;if(t&&e&&"object"==typeof t&&"object"==typeof e){var s,o,a,i=Array.isArray(t),r=Array.isArray(e);if(i&&r){if((o=t.length)!=e.length)return!1;for(s=o;0!=s--;)if(!this.equalsByValue(t[s],e[s]))return!1;return!0}if(i!=r)return!1;var l=t instanceof Date,c=e instanceof Date;if(l!=c)return!1;if(l&&c)return t.getTime()==e.getTime();var u=t instanceof RegExp,d=e instanceof RegExp;if(u!=d)return!1;if(u&&d)return t.toString()==e.toString();var h=Object.keys(t);if((o=h.length)!==Object.keys(e).length)return!1;for(s=o;0!=s--;)if(!Object.prototype.hasOwnProperty.call(e,h[s]))return!1;for(s=o;0!=s--;)if(!this.equalsByValue(t[a=h[s]],e[a]))return!1;return!0}return t!=t&&e!=e}static resolveFieldData(t,e){if(t&&e){if(this.isFunction(e))return e(t);if(-1==e.indexOf("."))return t[e];{let i=e.split("."),r=t;for(let s=0,o=i.length;s<o;++s){if(null==r)return null;r=r[i[s]]}return r}}return null}static isFunction(t){return!!(t&&t.constructor&&t.call&&t.apply)}static reorderArray(t,e,i){t&&e!==i&&(i>=t.length&&(i%=t.length,e%=t.length),t.splice(i,0,t.splice(e,1)[0]))}static insertIntoOrderedArray(t,e,i,r){if(i.length>0){let s=!1;for(let o=0;o<i.length;o++)if(this.findIndexInList(i[o],r)>e){i.splice(o,0,t),s=!0;break}s||i.push(t)}else i.push(t)}static findIndexInList(t,e){let i=-1;if(e)for(let r=0;r<e.length;r++)if(e[r]==t){i=r;break}return i}static contains(t,e){if(null!=t&&e&&e.length)for(let i of e)if(this.equals(t,i))return!0;return!1}static removeAccents(t){return t&&t.search(/[\xC0-\xFF]/g)>-1&&(t=t.replace(/[\xC0-\xC5]/g,"A").replace(/[\xC6]/g,"AE").replace(/[\xC7]/g,"C").replace(/[\xC8-\xCB]/g,"E").replace(/[\xCC-\xCF]/g,"I").replace(/[\xD0]/g,"D").replace(/[\xD1]/g,"N").replace(/[\xD2-\xD6\xD8]/g,"O").replace(/[\xD9-\xDC]/g,"U").replace(/[\xDD]/g,"Y").replace(/[\xDE]/g,"P").replace(/[\xE0-\xE5]/g,"a").replace(/[\xE6]/g,"ae").replace(/[\xE7]/g,"c").replace(/[\xE8-\xEB]/g,"e").replace(/[\xEC-\xEF]/g,"i").replace(/[\xF1]/g,"n").replace(/[\xF2-\xF6\xF8]/g,"o").replace(/[\xF9-\xFC]/g,"u").replace(/[\xFE]/g,"p").replace(/[\xFD\xFF]/g,"y")),t}static isEmpty(t){return null==t||""===t||Array.isArray(t)&&0===t.length||!(t instanceof Date)&&"object"==typeof t&&0===Object.keys(t).length}static isNotEmpty(t){return!this.isEmpty(t)}static compare(t,e,i,r=1){let s=-1;const o=this.isEmpty(t),a=this.isEmpty(e);return s=o&&a?0:o?r:a?-r:"string"==typeof t&&"string"==typeof e?t.localeCompare(e,i,{numeric:!0}):t<e?-1:t>e?1:0,s}static sort(t,e,i=1,r,s=1){return(1===s?i:s)*U.compare(t,e,r,i)}static merge(t,e){return null!=t&&"object"!=typeof t||null!=e&&"object"!=typeof e?null!=t&&"string"!=typeof t||null!=e&&"string"!=typeof e?e||t:[t||"",e||""].join(" "):{...t||{},...e||{}}}}var yE=0;function y_(){return"pr_id_"+ ++yE}var yn=function Qj(){let n=[];const r=s=>s&&parseInt(s.style.zIndex,10)||0;return{get:r,set:(s,o,a)=>{o&&(o.style.zIndex=String(((s,o)=>{let a=n.length>0?n[n.length-1]:{key:s,value:o},l=a.value+(a.key===s?0:o)+1;return n.push({key:s,value:l}),l})(s,a)))},clear:s=>{s&&((s=>{n=n.filter(o=>o.value!==s)})(r(s)),s.style.zIndex="")},getCurrent:()=>n.length>0?n[n.length-1].value:0}}();const vE=["*"];let ln=(()=>{class n{}return n.STARTS_WITH="startsWith",n.CONTAINS="contains",n.NOT_CONTAINS="notContains",n.ENDS_WITH="endsWith",n.EQUALS="equals",n.NOT_EQUALS="notEquals",n.IN="in",n.LESS_THAN="lt",n.LESS_THAN_OR_EQUAL_TO="lte",n.GREATER_THAN="gt",n.GREATER_THAN_OR_EQUAL_TO="gte",n.BETWEEN="between",n.IS="is",n.IS_NOT="isNot",n.BEFORE="before",n.AFTER="after",n.DATE_IS="dateIs",n.DATE_IS_NOT="dateIsNot",n.DATE_BEFORE="dateBefore",n.DATE_AFTER="dateAfter",n})(),bE=(()=>{class n{}return n.AND="and",n.OR="or",n})(),v_=(()=>{class n{constructor(){this.filters={startsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let s=U.removeAccents(i.toString()).toLocaleLowerCase(r);return U.removeAccents(e.toString()).toLocaleLowerCase(r).slice(0,s.length)===s},contains:(e,i,r)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let s=U.removeAccents(i.toString()).toLocaleLowerCase(r);return-1!==U.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(s)},notContains:(e,i,r)=>{if(null==i||"string"==typeof i&&""===i.trim())return!0;if(null==e)return!1;let s=U.removeAccents(i.toString()).toLocaleLowerCase(r);return-1===U.removeAccents(e.toString()).toLocaleLowerCase(r).indexOf(s)},endsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let s=U.removeAccents(i.toString()).toLocaleLowerCase(r),o=U.removeAccents(e.toString()).toLocaleLowerCase(r);return-1!==o.indexOf(s,o.length-s.length)},equals:(e,i,r)=>null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():U.removeAccents(e.toString()).toLocaleLowerCase(r)==U.removeAccents(i.toString()).toLocaleLowerCase(r)),notEquals:(e,i,r)=>!(null==i||"string"==typeof i&&""===i.trim()||null!=e&&(e.getTime&&i.getTime?e.getTime()===i.getTime():U.removeAccents(e.toString()).toLocaleLowerCase(r)==U.removeAccents(i.toString()).toLocaleLowerCase(r))),in:(e,i)=>{if(null==i||0===i.length)return!0;for(let r=0;r<i.length;r++)if(U.equals(e,i[r]))return!0;return!1},between:(e,i)=>null==i||null==i[0]||null==i[1]||null!=e&&(e.getTime?i[0].getTime()<=e.getTime()&&e.getTime()<=i[1].getTime():i[0]<=e&&e<=i[1]),lt:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()<i.getTime():e<i),lte:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()<=i.getTime():e<=i),gt:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>i.getTime():e>i),gte:(e,i,r)=>null==i||null!=e&&(e.getTime&&i.getTime?e.getTime()>=i.getTime():e>=i),is:(e,i,r)=>this.filters.equals(e,i,r),isNot:(e,i,r)=>this.filters.notEquals(e,i,r),before:(e,i,r)=>this.filters.lt(e,i,r),after:(e,i,r)=>this.filters.gt(e,i,r),dateIs:(e,i)=>null==i||null!=e&&e.toDateString()===i.toDateString(),dateIsNot:(e,i)=>null==i||null!=e&&e.toDateString()!==i.toDateString(),dateBefore:(e,i)=>null==i||null!=e&&e.getTime()<i.getTime(),dateAfter:(e,i)=>null==i||null!=e&&e.getTime()>i.getTime()}}filter(e,i,r,s,o){let a=[];if(e)for(let l of e)for(let c of i){let u=U.resolveFieldData(l,c);if(this.filters[s](u,r,o)){a.push(l);break}}return a}register(e,i){this.filters[e]=i}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Zj=(()=>{class n{constructor(){this.messageSource=new Pt,this.clearSource=new Pt,this.messageObserver=this.messageSource.asObservable(),this.clearObserver=this.clearSource.asObservable()}add(e){e&&this.messageSource.next(e)}addAll(e){e&&e.length&&this.messageSource.next(e)}clear(e){this.clearSource.next(e||null)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:n.\u0275fac}),n})(),Gd=(()=>{class n{constructor(){this.clickSource=new Pt,this.clickObservable=this.clickSource.asObservable()}add(e){e&&this.clickSource.next(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wr=(()=>{class n{constructor(){this.ripple=!1,this.overlayOptions={},this.filterMatchModeOptions={text:[ln.STARTS_WITH,ln.CONTAINS,ln.NOT_CONTAINS,ln.ENDS_WITH,ln.EQUALS,ln.NOT_EQUALS],numeric:[ln.EQUALS,ln.NOT_EQUALS,ln.LESS_THAN,ln.LESS_THAN_OR_EQUAL_TO,ln.GREATER_THAN,ln.GREATER_THAN_OR_EQUAL_TO],date:[ln.DATE_IS,ln.DATE_IS_NOT,ln.DATE_BEFORE,ln.DATE_AFTER]},this.translation={startsWith:"Starts with",contains:"Contains",notContains:"Not contains",endsWith:"Ends with",equals:"Equals",notEquals:"Not equals",noFilter:"No Filter",lt:"Less than",lte:"Less than or equal to",gt:"Greater than",gte:"Greater than or equal to",is:"Is",isNot:"Is not",before:"Before",after:"After",dateIs:"Date is",dateIsNot:"Date is not",dateBefore:"Date is before",dateAfter:"Date is after",clear:"Clear",apply:"Apply",matchAll:"Match All",matchAny:"Match Any",addRule:"Add Rule",removeRule:"Remove Rule",accept:"Yes",reject:"No",choose:"Choose",upload:"Upload",cancel:"Cancel",dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],dayNamesShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayNamesMin:["Su","Mo","Tu","We","Th","Fr","Sa"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],monthNamesShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],dateFormat:"mm/dd/yy",firstDayOfWeek:0,today:"Today",weekHeader:"Wk",weak:"Weak",medium:"Medium",strong:"Strong",passwordPrompt:"Enter a password",emptyMessage:"No results found",emptyFilterMessage:"No results found"},this.zIndex={modal:1100,overlay:1e3,menu:1e3,tooltip:1100},this.translationSource=new Pt,this.translationObserver=this.translationSource.asObservable()}getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),wE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Se({type:n,selectors:[["p-header"]],ngContentSelectors:vE,decls:1,vars:0,template:function(e,i){1&e&&(ci(),gn(0))},encapsulation:2}),n})(),CE=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Se({type:n,selectors:[["p-footer"]],ngContentSelectors:vE,decls:1,vars:0,template:function(e,i){1&e&&(ci(),gn(0))},encapsulation:2}),n})(),en=(()=>{class n{constructor(e){this.template=e}getType(){return this.name}}return n.\u0275fac=function(e){return new(e||n)(M(Ai))},n.\u0275dir=se({type:n,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),n})(),cn=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We]}),n})(),vn=(()=>{class n{}return n.STARTS_WITH="startsWith",n.CONTAINS="contains",n.NOT_CONTAINS="notContains",n.ENDS_WITH="endsWith",n.EQUALS="equals",n.NOT_EQUALS="notEquals",n.NO_FILTER="noFilter",n.LT="lt",n.LTE="lte",n.GT="gt",n.GTE="gte",n.IS="is",n.IS_NOT="isNot",n.BEFORE="before",n.AFTER="after",n.CLEAR="clear",n.APPLY="apply",n.MATCH_ALL="matchAll",n.MATCH_ANY="matchAny",n.ADD_RULE="addRule",n.REMOVE_RULE="removeRule",n.ACCEPT="accept",n.REJECT="reject",n.CHOOSE="choose",n.UPLOAD="upload",n.CANCEL="cancel",n.DAY_NAMES="dayNames",n.DAY_NAMES_SHORT="dayNamesShort",n.DAY_NAMES_MIN="dayNamesMin",n.MONTH_NAMES="monthNames",n.MONTH_NAMES_SHORT="monthNamesShort",n.FIRST_DAY_OF_WEEK="firstDayOfWeek",n.TODAY="today",n.WEEK_HEADER="weekHeader",n.WEAK="weak",n.MEDIUM="medium",n.STRONG="strong",n.PASSWORD_PROMPT="passwordPrompt",n.EMPTY_MESSAGE="emptyMessage",n.EMPTY_FILTER_MESSAGE="emptyFilterMessage",n})(),A=(()=>{class n{static addClass(e,i){e&&i&&(e.classList?e.classList.add(i):e.className+=" "+i)}static addMultipleClasses(e,i){if(e&&i)if(e.classList){let r=i.trim().split(" ");for(let s=0;s<r.length;s++)e.classList.add(r[s])}else{let r=i.split(" ");for(let s=0;s<r.length;s++)e.className+=" "+r[s]}}static removeClass(e,i){e&&i&&(e.classList?e.classList.remove(i):e.className=e.className.replace(new RegExp("(^|\\b)"+i.split(" ").join("|")+"(\\b|$)","gi")," "))}static hasClass(e,i){return!(!e||!i)&&(e.classList?e.classList.contains(i):new RegExp("(^| )"+i+"( |$)","gi").test(e.className))}static siblings(e){return Array.prototype.filter.call(e.parentNode.children,function(i){return i!==e})}static find(e,i){return Array.from(e.querySelectorAll(i))}static findSingle(e,i){return e?e.querySelector(i):null}static index(e){let i=e.parentNode.childNodes,r=0;for(var s=0;s<i.length;s++){if(i[s]==e)return r;1==i[s].nodeType&&r++}return-1}static indexWithinGroup(e,i){let r=e.parentNode?e.parentNode.childNodes:[],s=0;for(var o=0;o<r.length;o++){if(r[o]==e)return s;r[o].attributes&&r[o].attributes[i]&&1==r[o].nodeType&&s++}return-1}static appendOverlay(e,i,r="self"){"self"!==r&&e&&i&&this.appendChild(e,i)}static alignOverlay(e,i,r="self",s=!0){e&&i&&(s&&(e.style.minWidth||(e.style.minWidth=n.getOuterWidth(i)+"px")),"self"===r?this.relativePosition(e,i):this.absolutePosition(e,i))}static relativePosition(e,i){const r=g=>{if(g)return"relative"===getComputedStyle(g).getPropertyValue("position")?g:r(g.parentElement)},s=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),o=i.offsetHeight,a=i.getBoundingClientRect(),l=this.getWindowScrollTop(),c=this.getWindowScrollLeft(),u=this.getViewport(),h=r(e)?.getBoundingClientRect()||{top:-1*l,left:-1*c};let f,p;a.top+o+s.height>u.height?(f=a.top-h.top-s.height,e.style.transformOrigin="bottom",a.top+f<0&&(f=-1*a.top)):(f=o+a.top-h.top,e.style.transformOrigin="top"),p=s.width>u.width?-1*(a.left-h.left):a.left-h.left+s.width>u.width?-1*(a.left-h.left+s.width-u.width):a.left-h.left,e.style.top=f+"px",e.style.left=p+"px"}static absolutePosition(e,i){const r=e.offsetParent?{width:e.offsetWidth,height:e.offsetHeight}:this.getHiddenElementDimensions(e),s=r.height,o=r.width,a=i.offsetHeight,l=i.offsetWidth,c=i.getBoundingClientRect(),u=this.getWindowScrollTop(),d=this.getWindowScrollLeft(),h=this.getViewport();let f,p;c.top+a+s>h.height?(f=c.top+u-s,e.style.transformOrigin="bottom",f<0&&(f=u)):(f=a+c.top+u,e.style.transformOrigin="top"),p=c.left+o>h.width?Math.max(0,c.left+d+l-o):c.left+d,e.style.top=f+"px",e.style.left=p+"px"}static getParents(e,i=[]){return null===e.parentNode?i:this.getParents(e.parentNode,i.concat([e.parentNode]))}static getScrollableParents(e){let i=[];if(e){let r=this.getParents(e);const s=/(auto|scroll)/,o=a=>{let l=window.getComputedStyle(a,null);return s.test(l.getPropertyValue("overflow"))||s.test(l.getPropertyValue("overflowX"))||s.test(l.getPropertyValue("overflowY"))};for(let a of r){let l=1===a.nodeType&&a.dataset.scrollselectors;if(l){let c=l.split(",");for(let u of c){let d=this.findSingle(a,u);d&&o(d)&&i.push(d)}}9!==a.nodeType&&o(a)&&i.push(a)}}return i}static getHiddenElementOuterHeight(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetHeight;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementOuterWidth(e){e.style.visibility="hidden",e.style.display="block";let i=e.offsetWidth;return e.style.display="none",e.style.visibility="visible",i}static getHiddenElementDimensions(e){let i={};return e.style.visibility="hidden",e.style.display="block",i.width=e.offsetWidth,i.height=e.offsetHeight,e.style.display="none",e.style.visibility="visible",i}static scrollInView(e,i){let r=getComputedStyle(e).getPropertyValue("borderTopWidth"),s=r?parseFloat(r):0,o=getComputedStyle(e).getPropertyValue("paddingTop"),a=o?parseFloat(o):0,l=e.getBoundingClientRect(),u=i.getBoundingClientRect().top+document.body.scrollTop-(l.top+document.body.scrollTop)-s-a,d=e.scrollTop,h=e.clientHeight,f=this.getOuterHeight(i);u<0?e.scrollTop=d+u:u+f>h&&(e.scrollTop=d+u-h+f)}static fadeIn(e,i){e.style.opacity=0;let r=+new Date,s=0,o=function(){s=+e.style.opacity.replace(",",".")+((new Date).getTime()-r)/i,e.style.opacity=s,r=+new Date,+s<1&&(window.requestAnimationFrame&&requestAnimationFrame(o)||setTimeout(o,16))};o()}static fadeOut(e,i){var r=1,a=50/i;let l=setInterval(()=>{(r-=a)<=0&&(r=0,clearInterval(l)),e.style.opacity=r},50)}static getWindowScrollTop(){let e=document.documentElement;return(window.pageYOffset||e.scrollTop)-(e.clientTop||0)}static getWindowScrollLeft(){let e=document.documentElement;return(window.pageXOffset||e.scrollLeft)-(e.clientLeft||0)}static matches(e,i){var r=Element.prototype;return(r.matches||r.webkitMatchesSelector||r.mozMatchesSelector||r.msMatchesSelector||function(o){return-1!==[].indexOf.call(document.querySelectorAll(o),this)}).call(e,i)}static getOuterWidth(e,i){let r=e.offsetWidth;if(i){let s=getComputedStyle(e);r+=parseFloat(s.marginLeft)+parseFloat(s.marginRight)}return r}static getHorizontalPadding(e){let i=getComputedStyle(e);return parseFloat(i.paddingLeft)+parseFloat(i.paddingRight)}static getHorizontalMargin(e){let i=getComputedStyle(e);return parseFloat(i.marginLeft)+parseFloat(i.marginRight)}static innerWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i+=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static width(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight),i}static getInnerHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i+=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom),i}static getOuterHeight(e,i){let r=e.offsetHeight;if(i){let s=getComputedStyle(e);r+=parseFloat(s.marginTop)+parseFloat(s.marginBottom)}return r}static getHeight(e){let i=e.offsetHeight,r=getComputedStyle(e);return i-=parseFloat(r.paddingTop)+parseFloat(r.paddingBottom)+parseFloat(r.borderTopWidth)+parseFloat(r.borderBottomWidth),i}static getWidth(e){let i=e.offsetWidth,r=getComputedStyle(e);return i-=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight)+parseFloat(r.borderLeftWidth)+parseFloat(r.borderRightWidth),i}static getViewport(){let e=window,i=document,r=i.documentElement,s=i.getElementsByTagName("body")[0];return{width:e.innerWidth||r.clientWidth||s.clientWidth,height:e.innerHeight||r.clientHeight||s.clientHeight}}static getOffset(e){var i=e.getBoundingClientRect();return{top:i.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),left:i.left+(window.pageXOffset||document.documentElement.scrollLeft||document.body.scrollLeft||0)}}static replaceElementWith(e,i){let r=e.parentNode;if(!r)throw"Can't replace element";return r.replaceChild(i,e)}static getUserAgent(){return navigator.userAgent}static isIE(){var e=window.navigator.userAgent;return e.indexOf("MSIE ")>0||(e.indexOf("Trident/")>0?(e.indexOf("rv:"),!0):e.indexOf("Edge/")>0)}static isIOS(){return/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream}static isAndroid(){return/(android)/i.test(navigator.userAgent)}static isTouchDevice(){return"ontouchstart"in window||navigator.maxTouchPoints>0}static appendChild(e,i){if(this.isElement(i))i.appendChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot append "+i+" to "+e;i.el.nativeElement.appendChild(e)}}static removeChild(e,i){if(this.isElement(i))i.removeChild(e);else{if(!i.el||!i.el.nativeElement)throw"Cannot remove "+e+" from "+i;i.el.nativeElement.removeChild(e)}}static removeElement(e){"remove"in Element.prototype?e.remove():e.parentNode.removeChild(e)}static isElement(e){return"object"==typeof HTMLElement?e instanceof HTMLElement:e&&"object"==typeof e&&null!==e&&1===e.nodeType&&"string"==typeof e.nodeName}static calculateScrollbarWidth(e){if(e){let i=getComputedStyle(e);return e.offsetWidth-e.clientWidth-parseFloat(i.borderLeftWidth)-parseFloat(i.borderRightWidth)}{if(null!==this.calculatedScrollbarWidth)return this.calculatedScrollbarWidth;let i=document.createElement("div");i.className="p-scrollbar-measure",document.body.appendChild(i);let r=i.offsetWidth-i.clientWidth;return document.body.removeChild(i),this.calculatedScrollbarWidth=r,r}}static calculateScrollbarHeight(){if(null!==this.calculatedScrollbarHeight)return this.calculatedScrollbarHeight;let e=document.createElement("div");e.className="p-scrollbar-measure",document.body.appendChild(e);let i=e.offsetHeight-e.clientHeight;return document.body.removeChild(e),this.calculatedScrollbarWidth=i,i}static invokeElementMethod(e,i,r){e[i].apply(e,r)}static clearSelection(){if(window.getSelection)window.getSelection().empty?window.getSelection().empty():window.getSelection().removeAllRanges&&window.getSelection().rangeCount>0&&window.getSelection().getRangeAt(0).getClientRects().length>0&&window.getSelection().removeAllRanges();else if(document.selection&&document.selection.empty)try{document.selection.empty()}catch{}}static getBrowser(){if(!this.browser){let e=this.resolveUserAgent();this.browser={},e.browser&&(this.browser[e.browser]=!0,this.browser.version=e.version),this.browser.chrome?this.browser.webkit=!0:this.browser.webkit&&(this.browser.safari=!0)}return this.browser}static resolveUserAgent(){let e=navigator.userAgent.toLowerCase(),i=/(chrome)[ \/]([\w.]+)/.exec(e)||/(webkit)[ \/]([\w.]+)/.exec(e)||/(opera)(?:.*version|)[ \/]([\w.]+)/.exec(e)||/(msie) ([\w.]+)/.exec(e)||e.indexOf("compatible")<0&&/(mozilla)(?:.*? rv:([\w.]+)|)/.exec(e)||[];return{browser:i[1]||"",version:i[2]||"0"}}static isInteger(e){return Number.isInteger?Number.isInteger(e):"number"==typeof e&&isFinite(e)&&Math.floor(e)===e}static isHidden(e){return!e||null===e.offsetParent}static isVisible(e){return e&&null!=e.offsetParent}static isExist(e){return null!==e&&typeof e<"u"&&e.nodeName&&e.parentNode}static focus(e,i){e&&document.activeElement!==e&&e.focus(i)}static getFocusableElements(e){let i=n.find(e,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href][clientHeight][clientWidth]:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n input:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), select:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n textarea:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]), [tabIndex]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [contenteditable]:not([tabIndex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]):not(.p-disabled)'),r=[];for(let s of i)"none"!=getComputedStyle(s).display&&"hidden"!=getComputedStyle(s).visibility&&r.push(s);return r}static generateZIndex(){return this.zindex=this.zindex||999,++this.zindex}static getSelection(){return window.getSelection?window.getSelection().toString():document.getSelection?document.getSelection().toString():document.selection?document.selection.createRange().text:null}static getTargetElement(e,i){if(!e)return null;switch(e){case"document":return document;case"window":return window;case"@next":return i?.nextElementSibling;case"@prev":return i?.previousElementSibling;case"@parent":return i?.parentElement;case"@grandparent":return i?.parentElement.parentElement;default:const r=typeof e;if("string"===r)return document.querySelector(e);if("object"===r&&e.hasOwnProperty("nativeElement"))return this.isExist(e.nativeElement)?e.nativeElement:void 0;const o=(a=e)&&a.constructor&&a.call&&a.apply?e():e;return o&&9===o.nodeType||this.isExist(o)?o:null}var a}}return n.zindex=1e3,n.calculatedScrollbarWidth=null,n.calculatedScrollbarHeight=null,n})();class Kd{constructor(t,e=(()=>{})){this.element=t,this.listener=e}bindScrollListener(){this.scrollableParents=A.getScrollableParents(this.element);for(let t=0;t<this.scrollableParents.length;t++)this.scrollableParents[t].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let t=0;t<this.scrollableParents.length;t++)this.scrollableParents[t].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}let Xr=(()=>{class n{constructor(e,i,r){this.el=e,this.zone=i,this.config=r}ngAfterViewInit(){this.config&&this.config.ripple&&this.zone.runOutsideAngular(()=>{this.create(),this.mouseDownListener=this.onMouseDown.bind(this),this.el.nativeElement.addEventListener("mousedown",this.mouseDownListener)})}onMouseDown(e){let i=this.getInk();if(!i||"none"===getComputedStyle(i,null).display)return;if(A.removeClass(i,"p-ink-active"),!A.getHeight(i)&&!A.getWidth(i)){let a=Math.max(A.getOuterWidth(this.el.nativeElement),A.getOuterHeight(this.el.nativeElement));i.style.height=a+"px",i.style.width=a+"px"}let r=A.getOffset(this.el.nativeElement),s=e.pageX-r.left+document.body.scrollTop-A.getWidth(i)/2,o=e.pageY-r.top+document.body.scrollLeft-A.getHeight(i)/2;i.style.top=o+"px",i.style.left=s+"px",A.addClass(i,"p-ink-active"),this.timeout=setTimeout(()=>{let a=this.getInk();a&&A.removeClass(a,"p-ink-active")},401)}getInk(){for(let e=0;e<this.el.nativeElement.children.length;e++)if(-1!==this.el.nativeElement.children[e].className.indexOf("p-ink"))return this.el.nativeElement.children[e];return null}resetInk(){let e=this.getInk();e&&A.removeClass(e,"p-ink-active")}onAnimationEnd(e){this.timeout&&clearTimeout(this.timeout),A.removeClass(e.currentTarget,"p-ink-active")}create(){let e=document.createElement("span");e.className="p-ink",this.el.nativeElement.appendChild(e),this.animationListener=this.onAnimationEnd.bind(this),e.addEventListener("animationend",this.animationListener)}remove(){let e=this.getInk();e&&(this.el.nativeElement.removeEventListener("mousedown",this.mouseDownListener),e.removeEventListener("animationend",this.animationListener),A.removeElement(e))}ngOnDestroy(){this.config&&this.config.ripple&&this.remove()}}return n.\u0275fac=function(e){return new(e||n)(M(ze),M(Qe),M(wr,8))},n.\u0275dir=se({type:n,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple","p-element"]}),n})(),Jr=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We]}),n})();function Xj(n,t){1&n&&Y(0)}const Jj=function(n,t,e,i){return{"p-button-icon":!0,"p-button-icon-left":n,"p-button-icon-right":t,"p-button-icon-top":e,"p-button-icon-bottom":i}};function e$(n,t){if(1&n&&F(0,"span",4),2&n){const e=_();fe(e.loading?"p-button-loading-icon "+e.loadingIcon:e.icon),m("ngClass",Ur(4,Jj,"left"===e.iconPos&&e.label,"right"===e.iconPos&&e.label,"top"===e.iconPos&&e.label,"bottom"===e.iconPos&&e.label)),Ce("aria-hidden",!0)}}function t$(n,t){if(1&n&&(b(0,"span",5),O(1),w()),2&n){const e=_();Ce("aria-hidden",e.icon&&!e.label),v(1),ne(e.label)}}function n$(n,t){if(1&n&&(b(0,"span",4),O(1),w()),2&n){const e=_();fe(e.badgeClass),m("ngClass",e.badgeStyleClass()),v(1),ne(e.badge)}}const i$=function(n,t,e,i,r){return{"p-button p-component":!0,"p-button-icon-only":n,"p-button-vertical":t,"p-disabled":e,"p-button-loading":i,"p-button-loading-label-only":r}},r$=["*"];let b_=(()=>{class n{constructor(e){this.el=e,this.iconPos="left",this.loadingIcon="pi pi-spinner pi-spin",this._loading=!1}get label(){return this._label}set label(e){this._label=e,this.initialized&&(this.updateLabel(),this.updateIcon(),this.setStyleClass())}get icon(){return this._icon}set icon(e){this._icon=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}get loading(){return this._loading}set loading(e){this._loading=e,this.initialized&&(this.updateIcon(),this.setStyleClass())}ngAfterViewInit(){this._initialStyleClass=this.el.nativeElement.className,A.addMultipleClasses(this.el.nativeElement,this.getStyleClass()),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){let e="p-button p-component";return this.icon&&!this.label&&U.isEmpty(this.el.nativeElement.textContent)&&(e+=" p-button-icon-only"),this.loading&&(e+=" p-disabled p-button-loading",!this.icon&&this.label&&(e+=" p-button-loading-label-only")),e}setStyleClass(){let e=this.getStyleClass();this.el.nativeElement.className=e+" "+this._initialStyleClass}createLabel(){if(this.label){let e=document.createElement("span");this.icon&&!this.label&&e.setAttribute("aria-hidden","true"),e.className="p-button-label",e.appendChild(document.createTextNode(this.label)),this.el.nativeElement.appendChild(e)}}createIcon(){if(this.icon||this.loading){let e=document.createElement("span");e.className="p-button-icon",e.setAttribute("aria-hidden","true");let i=this.label?"p-button-icon-"+this.iconPos:null;i&&A.addClass(e,i);let r=this.getIconClass();r&&A.addMultipleClasses(e,r),this.el.nativeElement.insertBefore(e,this.el.nativeElement.firstChild)}}updateLabel(){let e=A.findSingle(this.el.nativeElement,".p-button-label");this.label?e?e.textContent=this.label:this.createLabel():e&&this.el.nativeElement.removeChild(e)}updateIcon(){let e=A.findSingle(this.el.nativeElement,".p-button-icon");this.icon||this.loading?e?e.className=this.iconPos?"p-button-icon p-button-icon-"+this.iconPos+" "+this.getIconClass():"p-button-icon "+this.getIconClass():this.createIcon():e&&this.el.nativeElement.removeChild(e)}getIconClass(){return this.loading?"p-button-loading-icon "+this.loadingIcon:this._icon}ngOnDestroy(){this.initialized=!1}}return n.\u0275fac=function(e){return new(e||n)(M(ze))},n.\u0275dir=se({type:n,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),n})(),Gl=(()=>{class n{constructor(){this.type="button",this.iconPos="left",this.loading=!1,this.loadingIcon="pi pi-spinner pi-spin",this.onClick=new N,this.onFocus=new N,this.onBlur=new N}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template})}badgeStyleClass(){return{"p-badge p-component":!0,"p-badge-no-gutter":this.badge&&1===String(this.badge).length}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Se({type:n,selectors:[["p-button"]],contentQueries:function(e,i,r){if(1&e&&$t(r,en,4),2&e){let s;ie(s=re())&&(i.templates=s)}},hostAttrs:[1,"p-element"],inputs:{type:"type",iconPos:"iconPos",icon:"icon",badge:"badge",label:"label",disabled:"disabled",loading:"loading",loadingIcon:"loadingIcon",style:"style",styleClass:"styleClass",badgeClass:"badgeClass",ariaLabel:"ariaLabel"},outputs:{onClick:"onClick",onFocus:"onFocus",onBlur:"onBlur"},ngContentSelectors:r$,decls:6,vars:17,consts:[["pRipple","",3,"ngStyle","disabled","ngClass","click","focus","blur"],[4,"ngTemplateOutlet"],[3,"ngClass","class",4,"ngIf"],["class","p-button-label",4,"ngIf"],[3,"ngClass"],[1,"p-button-label"]],template:function(e,i){1&e&&(ci(),b(0,"button",0),R("click",function(s){return i.onClick.emit(s)})("focus",function(s){return i.onFocus.emit(s)})("blur",function(s){return i.onBlur.emit(s)}),gn(1),S(2,Xj,1,0,"ng-container",1),S(3,e$,1,9,"span",2),S(4,t$,2,2,"span",3),S(5,n$,2,4,"span",2),w()),2&e&&(fe(i.styleClass),m("ngStyle",i.style)("disabled",i.disabled||i.loading)("ngClass",yl(11,i$,i.icon&&!i.label,("top"===i.iconPos||"bottom"===i.iconPos)&&i.label,i.disabled||i.loading,i.loading,i.loading&&!i.icon&&i.label)),Ce("type",i.type)("aria-label",i.ariaLabel),v(2),m("ngTemplateOutlet",i.contentTemplate),v(1),m("ngIf",!i.contentTemplate&&(i.icon||i.loading)),v(1),m("ngIf",!i.contentTemplate&&i.label),v(1),m("ngIf",!i.contentTemplate&&i.badge))},dependencies:[_t,lt,on,ut,Xr],encapsulation:2,changeDetection:0}),n})(),es=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We,Jr]}),n})(),SE=(()=>{class n{constructor(e,i){this._renderer=e,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(e,i){this._renderer.setProperty(this._elementRef.nativeElement,e,i)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}}return n.\u0275fac=function(e){return new(e||n)(M(Mn),M(ze))},n.\u0275dir=se({type:n}),n})(),$s=(()=>{class n extends SE{}return n.\u0275fac=function(){let t;return function(i){return(t||(t=sn(n)))(i||n)}}(),n.\u0275dir=se({type:n,features:[Ye]}),n})();const Gt=new X("NgValueAccessor"),a$={provide:Gt,useExisting:Fe(()=>Kl),multi:!0},c$=new X("CompositionEventMode");let Kl=(()=>{class n extends SE{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function l$(){const n=Wi()?Wi().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(e){this.setProperty("value",e??"")}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}return n.\u0275fac=function(e){return new(e||n)(M(Mn),M(ze),M(c$,8))},n.\u0275dir=se({type:n,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(e,i){1&e&&R("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[Be([a$]),Ye]}),n})();const bn=new X("NgValidators"),ns=new X("NgAsyncValidators");function RE(n){return null!=n}function FE(n){return dl(n)?Rt(n):n}function LE(n){let t={};return n.forEach(e=>{t=null!=e?{...t,...e}:t}),0===Object.keys(t).length?null:t}function NE(n,t){return t.map(e=>e(n))}function VE(n){return n.map(t=>function h$(n){return!n.validate}(t)?t:e=>t.validate(e))}function w_(n){return null!=n?function BE(n){if(!n)return null;const t=n.filter(RE);return 0==t.length?null:function(e){return LE(NE(e,t))}}(VE(n)):null}function C_(n){return null!=n?function HE(n){if(!n)return null;const t=n.filter(RE);return 0==t.length?null:function(e){return function s$(...n){const t=hb(n),{args:e,keys:i}=XD(n),r=new St(s=>{const{length:o}=e;if(!o)return void s.complete();const a=new Array(o);let l=o,c=o;for(let u=0;u<o;u++){let d=!1;bi(e[u]).subscribe(Bt(s,h=>{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||s.next(i?ex(i,a):a),s.complete())}))}});return t?r.pipe(JD(t)):r}(NE(e,t).map(FE)).pipe(Me(LE))}}(VE(n)):null}function zE(n,t){return null===n?[t]:Array.isArray(n)?[...n,t]:[n,t]}function S_(n){return n?Array.isArray(n)?n:[n]:[]}function Yd(n,t){return Array.isArray(n)?n.includes(t):n===t}function UE(n,t){const e=S_(t);return S_(n).forEach(r=>{Yd(e,r)||e.push(r)}),e}function WE(n,t){return S_(t).filter(e=>!Yd(n,e))}class GE{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=w_(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=C_(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}class On extends GE{get formDirective(){return null}get path(){return null}}class is extends GE{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class KE{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let ql=(()=>{class n extends KE{constructor(e){super(e)}}return n.\u0275fac=function(e){return new(e||n)(M(is,2))},n.\u0275dir=se({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&jr("ng-untouched",i.isUntouched)("ng-touched",i.isTouched)("ng-pristine",i.isPristine)("ng-dirty",i.isDirty)("ng-valid",i.isValid)("ng-invalid",i.isInvalid)("ng-pending",i.isPending)},features:[Ye]}),n})();const Yl="VALID",Zd="INVALID",ha="PENDING",Ql="DISABLED";function Xd(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}class ZE{constructor(t,e){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Yl}get invalid(){return this.status===Zd}get pending(){return this.status==ha}get disabled(){return this.status===Ql}get enabled(){return this.status!==Ql}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(UE(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(UE(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(WE(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(WE(t,this._rawAsyncValidators))}hasValidator(t){return Yd(this._rawValidators,t)}hasAsyncValidator(t){return Yd(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=ha,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Ql,this.errors=null,this._forEachChild(i=>{i.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=Yl,this._forEachChild(i=>{i.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Yl||this.status===ha)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ql:Yl}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=ha,this._hasOwnPendingAsyncValidator=!0;const e=FE(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){let e=t;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(t,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new N,this.statusChanges=new N}_calculateStatus(){return this._allControlsDisabled()?Ql:this.errors?Zd:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(ha)?ha:this._anyControlsHaveStatus(Zd)?Zd:Yl}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Xd(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function b$(n){return Array.isArray(n)?w_(n):n||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function w$(n){return Array.isArray(n)?C_(n):n||null}(this._rawAsyncValidators)}}const fa=new X("CallSetDisabledState",{providedIn:"root",factory:()=>Jd}),Jd="always";function Zl(n,t,e=Jd){(function k_(n,t){const e=function jE(n){return n._rawValidators}(n);null!==t.validator?n.setValidators(zE(e,t.validator)):"function"==typeof e&&n.setValidators([e]);const i=function $E(n){return n._rawAsyncValidators}(n);null!==t.asyncValidator?n.setAsyncValidators(zE(i,t.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();nh(t._rawValidators,r),nh(t._rawAsyncValidators,r)})(n,t),t.valueAccessor.writeValue(n.value),(n.disabled||"always"===e)&&t.valueAccessor.setDisabledState?.(n.disabled),function D$(n,t){t.valueAccessor.registerOnChange(e=>{n._pendingValue=e,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&XE(n,t)})}(n,t),function E$(n,t){const e=(i,r)=>{t.valueAccessor.writeValue(i),r&&t.viewToModelUpdate(i)};n.registerOnChange(e),t._registerOnDestroy(()=>{n._unregisterOnChange(e)})}(n,t),function x$(n,t){t.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&XE(n,t),"submit"!==n.updateOn&&n.markAsTouched()})}(n,t),function S$(n,t){if(t.valueAccessor.setDisabledState){const e=i=>{t.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(e),t._registerOnDestroy(()=>{n._unregisterOnDisabledChange(e)})}}(n,t)}function nh(n,t){n.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(t)})}function XE(n,t){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function tT(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}function nT(n){return"object"==typeof n&&null!==n&&2===Object.keys(n).length&&"value"in n&&"disabled"in n}const iT=class extends ZE{constructor(t=null,e,i){super(function T_(n){return(Xd(n)?n.validators:n)||null}(e),function I_(n,t){return(Xd(t)?t.asyncValidators:n)||null}(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Xd(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=nT(t)?t.value:t)}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=this.defaultValue,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){tT(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){tT(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){nT(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},R$={provide:is,useExisting:Fe(()=>Us)},oT=(()=>Promise.resolve())();let Us=(()=>{class n extends is{constructor(e,i,r,s,o,a){super(),this._changeDetectorRef=o,this.callSetDisabledState=a,this.control=new iT,this._registered=!1,this.update=new N,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function P_(n,t){if(!t)return null;let e,i,r;return Array.isArray(t),t.forEach(s=>{s.constructor===Kl?e=s:function M$(n){return Object.getPrototypeOf(n.constructor)===$s}(s)?i=s:r=s}),r||i||e||null}(0,s)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){const i=e.name.previousValue;this.formDirective.removeControl({name:i,path:this._getPath(i)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),function O_(n,t){if(!n.hasOwnProperty("model"))return!1;const e=n.model;return!!e.isFirstChange()||!Object.is(t,e.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Zl(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(e){oT.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&ta(i);oT.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function eh(n,t){return[...t.path,n]}(e,this._parent):[e]}}return n.\u0275fac=function(e){return new(e||n)(M(On,9),M(bn,10),M(ns,10),M(Gt,10),M(bt,8),M(fa,8))},n.\u0275dir=se({type:n,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Be([R$]),Ye,Zt]}),n})(),lT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({}),n})();const F_=new X("NgModelWithFormControlWarning");let xT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[lT]}),n})(),rh=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:fa,useValue:e.callSetDisabledState??Jd}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[xT]}),n})(),sU=(()=>{class n{static withConfig(e){return{ngModule:n,providers:[{provide:F_,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:fa,useValue:e.callSetDisabledState??Jd}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[xT]}),n})(),j_=(()=>{class n{constructor(e,i,r){this.el=e,this.ngModel=i,this.cd=r}ngAfterViewInit(){this.updateFilledState(),this.cd.detectChanges()}ngDoCheck(){this.updateFilledState()}onInput(e){this.updateFilledState()}updateFilledState(){this.filled=this.el.nativeElement.value&&this.el.nativeElement.value.length||this.ngModel&&this.ngModel.model}}return n.\u0275fac=function(e){return new(e||n)(M(ze),M(Us,8),M(bt))},n.\u0275dir=se({type:n,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(e,i){1&e&&R("input",function(s){return i.onInput(s)}),2&e&&jr("p-filled",i.filled)}}),n})(),sh=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We]}),n})();const aU=["input"];function lU(n,t){if(1&n){const e=Q();b(0,"i",6),R("click",function(){return T(e),I(_().clear())}),w()}}const ET=function(){return{"p-inputnumber-button p-inputnumber-button-up":!0}},TT=function(){return{"p-inputnumber-button p-inputnumber-button-down":!0}};function cU(n,t){if(1&n){const e=Q();b(0,"span",7)(1,"button",8),R("mousedown",function(r){return T(e),I(_().onUpButtonMouseDown(r))})("mouseup",function(){return T(e),I(_().onUpButtonMouseUp())})("mouseleave",function(){return T(e),I(_().onUpButtonMouseLeave())})("keydown",function(r){return T(e),I(_().onUpButtonKeyDown(r))})("keyup",function(){return T(e),I(_().onUpButtonKeyUp())}),w(),b(2,"button",8),R("mousedown",function(r){return T(e),I(_().onDownButtonMouseDown(r))})("mouseup",function(){return T(e),I(_().onDownButtonMouseUp())})("mouseleave",function(){return T(e),I(_().onDownButtonMouseLeave())})("keydown",function(r){return T(e),I(_().onDownButtonKeyDown(r))})("keyup",function(){return T(e),I(_().onDownButtonKeyUp())}),w()()}if(2&n){const e=_();v(1),fe(e.incrementButtonClass),m("ngClass",$r(10,ET))("icon",e.incrementButtonIcon)("disabled",e.disabled),v(1),fe(e.decrementButtonClass),m("ngClass",$r(11,TT))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}function uU(n,t){if(1&n){const e=Q();b(0,"button",8),R("mousedown",function(r){return T(e),I(_().onUpButtonMouseDown(r))})("mouseup",function(){return T(e),I(_().onUpButtonMouseUp())})("mouseleave",function(){return T(e),I(_().onUpButtonMouseLeave())})("keydown",function(r){return T(e),I(_().onUpButtonKeyDown(r))})("keyup",function(){return T(e),I(_().onUpButtonKeyUp())}),w()}if(2&n){const e=_();fe(e.incrementButtonClass),m("ngClass",$r(5,ET))("icon",e.incrementButtonIcon)("disabled",e.disabled)}}function dU(n,t){if(1&n){const e=Q();b(0,"button",8),R("mousedown",function(r){return T(e),I(_().onDownButtonMouseDown(r))})("mouseup",function(){return T(e),I(_().onDownButtonMouseUp())})("mouseleave",function(){return T(e),I(_().onDownButtonMouseLeave())})("keydown",function(r){return T(e),I(_().onDownButtonKeyDown(r))})("keyup",function(){return T(e),I(_().onDownButtonKeyUp())}),w()}if(2&n){const e=_();fe(e.decrementButtonClass),m("ngClass",$r(5,TT))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}const hU=function(n,t,e){return{"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":n,"p-inputnumber-buttons-horizontal":t,"p-inputnumber-buttons-vertical":e}},fU={provide:Gt,useExisting:Fe(()=>Jl),multi:!0};let Jl=(()=>{class n{constructor(e,i){this.el=e,this.cd=i,this.showButtons=!1,this.format=!0,this.buttonLayout="stacked",this.incrementButtonIcon="pi pi-angle-up",this.decrementButtonIcon="pi pi-angle-down",this.readonly=!1,this.step=1,this.allowEmpty=!0,this.mode="decimal",this.useGrouping=!0,this.showClear=!1,this.onInput=new N,this.onFocus=new N,this.onBlur=new N,this.onKeyDown=new N,this.onClear=new N,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.groupChar="",this.prefixChar="",this.suffixChar=""}get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1),this._disabled=e,this.timer&&this.clearTimer()}ngOnChanges(e){["locale","localeMatcher","mode","currency","currencyDisplay","useGrouping","minFractionDigits","maxFractionDigits","prefix","suffix"].some(r=>!!e[r])&&this.updateConstructParser()}ngOnInit(){this.constructParser(),this.initialized=!0}getOptions(){return{localeMatcher:this.localeMatcher,style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,useGrouping:this.useGrouping,minimumFractionDigits:this.minFractionDigits,maximumFractionDigits:this.maxFractionDigits}}constructParser(){this.numberFormat=new Intl.NumberFormat(this.locale,this.getOptions());const e=[...new Intl.NumberFormat(this.locale,{useGrouping:!1}).format(9876543210)].reverse(),i=new Map(e.map((r,s)=>[r,s]));this._numeral=new RegExp(`[${e.join("")}]`,"g"),this._group=this.getGroupingExpression(),this._minusSign=this.getMinusSignExpression(),this._currency=this.getCurrencyExpression(),this._decimal=this.getDecimalExpression(),this._suffix=this.getSuffixExpression(),this._prefix=this.getPrefixExpression(),this._index=r=>i.get(r)}updateConstructParser(){this.initialized&&this.constructParser()}escapeRegExp(e){return e.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}getDecimalExpression(){const e=new Intl.NumberFormat(this.locale,{...this.getOptions(),useGrouping:!1});return new RegExp(`[${e.format(1.1).replace(this._currency,"").trim().replace(this._numeral,"")}]`,"g")}getGroupingExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!0});return this.groupChar=e.format(1e6).trim().replace(this._numeral,"").charAt(0),new RegExp(`[${this.groupChar}]`,"g")}getMinusSignExpression(){const e=new Intl.NumberFormat(this.locale,{useGrouping:!1});return new RegExp(`[${e.format(-1).trim().replace(this._numeral,"")}]`,"g")}getCurrencyExpression(){if(this.currency){const e=new Intl.NumberFormat(this.locale,{style:"currency",currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});return new RegExp(`[${e.format(1).replace(/\s/g,"").replace(this._numeral,"").replace(this._group,"")}]`,"g")}return new RegExp("[]","g")}getPrefixExpression(){if(this.prefix)this.prefixChar=this.prefix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay});this.prefixChar=e.format(1).split("1")[0]}return new RegExp(`${this.escapeRegExp(this.prefixChar||"")}`,"g")}getSuffixExpression(){if(this.suffix)this.suffixChar=this.suffix;else{const e=new Intl.NumberFormat(this.locale,{style:this.mode,currency:this.currency,currencyDisplay:this.currencyDisplay,minimumFractionDigits:0,maximumFractionDigits:0});this.suffixChar=e.format(1).split("1")[1]}return new RegExp(`${this.escapeRegExp(this.suffixChar||"")}`,"g")}formatValue(e){if(null!=e){if("-"===e)return e;if(this.format){let r=new Intl.NumberFormat(this.locale,this.getOptions()).format(e);return this.prefix&&(r=this.prefix+r),this.suffix&&(r+=this.suffix),r}return e.toString()}return""}parseValue(e){let i=e.replace(this._suffix,"").replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").replace(this._group,"").replace(this._minusSign,"-").replace(this._decimal,".").replace(this._numeral,this._index);if(i){if("-"===i)return i;let r=+i;return isNaN(r)?null:r}return null}repeat(e,i,r){if(this.readonly)return;let s=i||500;this.clearTimer(),this.timer=setTimeout(()=>{this.repeat(e,40,r)},s),this.spin(e,r)}spin(e,i){let r=this.step*i,s=this.parseValue(this.input.nativeElement.value)||0,o=this.validateValue(s+r);this.maxlength&&this.maxlength<this.formatValue(o).length||(this.updateInput(o,null,"spin",null),this.updateModel(e,o),this.handleOnInput(e,s,o))}clear(){this.value=null,this.onModelChange(this.value),this.onClear.emit()}onUpButtonMouseDown(e){this.input.nativeElement.focus(),this.repeat(e,null,1),e.preventDefault()}onUpButtonMouseUp(){this.clearTimer()}onUpButtonMouseLeave(){this.clearTimer()}onUpButtonKeyDown(e){(32===e.keyCode||13===e.keyCode)&&this.repeat(e,null,1)}onUpButtonKeyUp(){this.clearTimer()}onDownButtonMouseDown(e){this.input.nativeElement.focus(),this.repeat(e,null,-1),e.preventDefault()}onDownButtonMouseUp(){this.clearTimer()}onDownButtonMouseLeave(){this.clearTimer()}onDownButtonKeyUp(){this.clearTimer()}onDownButtonKeyDown(e){(32===e.keyCode||13===e.keyCode)&&this.repeat(e,null,-1)}onUserInput(e){this.readonly||(this.isSpecialChar&&(e.target.value=this.lastValue),this.isSpecialChar=!1)}onInputKeyDown(e){if(this.readonly)return;if(this.lastValue=e.target.value,e.shiftKey||e.altKey)return void(this.isSpecialChar=!0);let i=e.target.selectionStart,r=e.target.selectionEnd,s=e.target.value,o=null;switch(e.altKey&&e.preventDefault(),e.which){case 38:this.spin(e,1),e.preventDefault();break;case 40:this.spin(e,-1),e.preventDefault();break;case 37:this.isNumeralChar(s.charAt(i-1))||e.preventDefault();break;case 39:this.isNumeralChar(s.charAt(i))||e.preventDefault();break;case 13:o=this.validateValue(this.parseValue(this.input.nativeElement.value)),this.input.nativeElement.value=this.formatValue(o),this.input.nativeElement.setAttribute("aria-valuenow",o),this.updateModel(e,o);break;case 8:if(e.preventDefault(),i===r){const a=s.charAt(i-1),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(s);if(this.isNumeralChar(a)){const u=this.getDecimalLength(s);if(this._group.test(a))this._group.lastIndex=0,o=s.slice(0,i-2)+s.slice(i-1);else if(this._decimal.test(a))this._decimal.lastIndex=0,u?this.input.nativeElement.setSelectionRange(i-1,i-1):o=s.slice(0,i-1)+s.slice(i);else if(l>0&&i>l){const d=this.isDecimalMode()&&(this.minFractionDigits||0)<u?"":"0";o=s.slice(0,i-1)+d+s.slice(i)}else 1===c?(o=s.slice(0,i-1)+"0"+s.slice(i),o=this.parseValue(o)>0?o:""):o=s.slice(0,i-1)+s.slice(i)}this.updateValue(e,o,null,"delete-single")}else o=this.deleteRange(s,i,r),this.updateValue(e,o,null,"delete-range");break;case 46:if(e.preventDefault(),i===r){const a=s.charAt(i),{decimalCharIndex:l,decimalCharIndexWithoutPrefix:c}=this.getDecimalCharIndexes(s);if(this.isNumeralChar(a)){const u=this.getDecimalLength(s);if(this._group.test(a))this._group.lastIndex=0,o=s.slice(0,i)+s.slice(i+2);else if(this._decimal.test(a))this._decimal.lastIndex=0,u?this.input.nativeElement.setSelectionRange(i+1,i+1):o=s.slice(0,i)+s.slice(i+1);else if(l>0&&i>l){const d=this.isDecimalMode()&&(this.minFractionDigits||0)<u?"":"0";o=s.slice(0,i)+d+s.slice(i+1)}else 1===c?(o=s.slice(0,i)+"0"+s.slice(i+1),o=this.parseValue(o)>0?o:""):o=s.slice(0,i)+s.slice(i+1)}this.updateValue(e,o,null,"delete-back-single")}else o=this.deleteRange(s,i,r),this.updateValue(e,o,null,"delete-range")}this.onKeyDown.emit(e)}onInputKeyPress(e){if(this.readonly)return;let i=e.which||e.keyCode,r=String.fromCharCode(i);const s=this.isDecimalSign(r),o=this.isMinusSign(r);13!=i&&e.preventDefault(),(48<=i&&i<=57||o||s)&&this.insert(e,r,{isDecimalSign:s,isMinusSign:o})}onPaste(e){if(!this.disabled&&!this.readonly){e.preventDefault();let i=(e.clipboardData||window.clipboardData).getData("Text");if(i){let r=this.parseValue(i);null!=r&&this.insert(e,r.toString())}}}allowMinusSign(){return null==this.min||this.min<0}isMinusSign(e){return!(!this._minusSign.test(e)&&"-"!==e||(this._minusSign.lastIndex=0,0))}isDecimalSign(e){return!!this._decimal.test(e)&&(this._decimal.lastIndex=0,!0)}isDecimalMode(){return"decimal"===this.mode}getDecimalCharIndexes(e){let i=e.search(this._decimal);this._decimal.lastIndex=0;const s=e.replace(this._prefix,"").trim().replace(/\s/g,"").replace(this._currency,"").search(this._decimal);return this._decimal.lastIndex=0,{decimalCharIndex:i,decimalCharIndexWithoutPrefix:s}}getCharIndexes(e){const i=e.search(this._decimal);this._decimal.lastIndex=0;const r=e.search(this._minusSign);this._minusSign.lastIndex=0;const s=e.search(this._suffix);this._suffix.lastIndex=0;const o=e.search(this._currency);return this._currency.lastIndex=0,{decimalCharIndex:i,minusCharIndex:r,suffixCharIndex:s,currencyCharIndex:o}}insert(e,i,r={isDecimalSign:!1,isMinusSign:!1}){const s=i.search(this._minusSign);if(this._minusSign.lastIndex=0,!this.allowMinusSign()&&-1!==s)return;let o=this.input.nativeElement.selectionStart,a=this.input.nativeElement.selectionEnd,l=this.input.nativeElement.value.trim();const{decimalCharIndex:c,minusCharIndex:u,suffixCharIndex:d,currencyCharIndex:h}=this.getCharIndexes(l);let f;if(r.isMinusSign)0===o&&(f=l,(-1===u||0!==a)&&(f=this.insertText(l,i,0,a)),this.updateValue(e,f,i,"insert"));else if(r.isDecimalSign)c>0&&o===c?this.updateValue(e,l,i,"insert"):(c>o&&c<a||-1===c&&this.maxFractionDigits)&&(f=this.insertText(l,i,o,a),this.updateValue(e,f,i,"insert"));else{const p=this.numberFormat.resolvedOptions().maximumFractionDigits,g=o!==a?"range-insert":"insert";if(c>0&&o>c){if(o+i.length-(c+1)<=p){const y=h>=o?h-1:d>=o?d:l.length;f=l.slice(0,o)+i+l.slice(o+i.length,y)+l.slice(y),this.updateValue(e,f,i,g)}}else f=this.insertText(l,i,o,a),this.updateValue(e,f,i,g)}}insertText(e,i,r,s){if(2===("."===i?i:i.split(".")).length){const a=e.slice(r,s).search(this._decimal);return this._decimal.lastIndex=0,a>0?e.slice(0,r)+this.formatValue(i)+e.slice(s):e||this.formatValue(i)}return s-r===e.length?this.formatValue(i):0===r?i+e.slice(s):s===e.length?e.slice(0,r)+i:e.slice(0,r)+i+e.slice(s)}deleteRange(e,i,r){let s;return s=r-i===e.length?"":0===i?e.slice(r):r===e.length?e.slice(0,i):e.slice(0,i)+e.slice(r),s}initCursor(){let e=this.input.nativeElement.selectionStart,i=this.input.nativeElement.value,r=i.length,s=null,o=(this.prefixChar||"").length;i=i.replace(this._prefix,""),e-=o;let a=i.charAt(e);if(this.isNumeralChar(a))return e+o;let l=e-1;for(;l>=0;){if(a=i.charAt(l),this.isNumeralChar(a)){s=l+o;break}l--}if(null!==s)this.input.nativeElement.setSelectionRange(s+1,s+1);else{for(l=e;l<r;){if(a=i.charAt(l),this.isNumeralChar(a)){s=l+o;break}l++}null!==s&&this.input.nativeElement.setSelectionRange(s,s)}return s||0}onInputClick(){!this.readonly&&this.input.nativeElement.value!==A.getSelection()&&this.initCursor()}isNumeralChar(e){return!(1!==e.length||!(this._numeral.test(e)||this._decimal.test(e)||this._group.test(e)||this._minusSign.test(e))||(this.resetRegex(),0))}resetRegex(){this._numeral.lastIndex=0,this._decimal.lastIndex=0,this._group.lastIndex=0,this._minusSign.lastIndex=0}updateValue(e,i,r,s){let o=this.input.nativeElement.value,a=null;null!=i&&(a=this.parseValue(i),a=a||this.allowEmpty?a:0,this.updateInput(a,r,s,i),this.handleOnInput(e,o,a))}handleOnInput(e,i,r){this.isValueChanged(i,r)&&this.onInput.emit({originalEvent:e,value:r,formattedValue:i})}isValueChanged(e,i){return null===i&&null!==e||null!=i&&i!==("string"==typeof e?this.parseValue(e):e)}validateValue(e){return"-"===e||null==e?null:null!=this.min&&e<this.min?this.min:null!=this.max&&e>this.max?this.max:e}updateInput(e,i,r,s){i=i||"";let o=this.input.nativeElement.value,a=this.formatValue(e),l=o.length;if(a!==s&&(a=this.concatValues(a,s)),0===l){this.input.nativeElement.value=a,this.input.nativeElement.setSelectionRange(0,0);const u=this.initCursor()+i.length;this.input.nativeElement.setSelectionRange(u,u)}else{let c=this.input.nativeElement.selectionStart,u=this.input.nativeElement.selectionEnd;if(this.maxlength&&this.maxlength<a.length)return;this.input.nativeElement.value=a;let d=a.length;if("range-insert"===r){const h=this.parseValue((o||"").slice(0,c)),p=(null!==h?h.toString():"").split("").join(`(${this.groupChar})?`),g=new RegExp(p,"g");g.test(a);const y=i.split("").join(`(${this.groupChar})?`),C=new RegExp(y,"g");C.test(a.slice(g.lastIndex)),u=g.lastIndex+C.lastIndex,this.input.nativeElement.setSelectionRange(u,u)}else if(d===l)"insert"===r||"delete-back-single"===r?this.input.nativeElement.setSelectionRange(u+1,u+1):"delete-single"===r?this.input.nativeElement.setSelectionRange(u-1,u-1):("delete-range"===r||"spin"===r)&&this.input.nativeElement.setSelectionRange(u,u);else if("delete-back-single"===r){let h=o.charAt(u-1),f=o.charAt(u),p=l-d,g=this._group.test(f);g&&1===p?u+=1:!g&&this.isNumeralChar(h)&&(u+=-1*p+1),this._group.lastIndex=0,this.input.nativeElement.setSelectionRange(u,u)}else if("-"===o&&"insert"===r){this.input.nativeElement.setSelectionRange(0,0);const f=this.initCursor()+i.length+1;this.input.nativeElement.setSelectionRange(f,f)}else u+=d-l,this.input.nativeElement.setSelectionRange(u,u)}this.input.nativeElement.setAttribute("aria-valuenow",e)}concatValues(e,i){if(e&&i){let r=i.search(this._decimal);return this._decimal.lastIndex=0,this.suffixChar?e.replace(this.suffixChar,"").split(this._decimal)[0]+i.replace(this.suffixChar,"").slice(r)+this.suffixChar:-1!==r?e.split(this._decimal)[0]+i.slice(r):e}return e}getDecimalLength(e){if(e){const i=e.split(this._decimal);if(2===i.length)return i[1].replace(this._suffix,"").trim().replace(/\s/g,"").replace(this._currency,"").length}return 0}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1;let i=this.validateValue(this.parseValue(this.input.nativeElement.value));this.input.nativeElement.value=this.formatValue(i),this.input.nativeElement.setAttribute("aria-valuenow",i),this.updateModel(e,i),this.onBlur.emit(e)}formattedValue(){return this.formatValue(this.value||this.allowEmpty?this.value:0)}updateModel(e,i){this.value!==i&&(this.value=i,this.onModelChange(i)),this.onModelTouched()}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get filled(){return null!=this.value&&this.value.toString().length>0}clearTimer(){this.timer&&clearInterval(this.timer)}getFormatter(){return this.numberFormat}}return n.\u0275fac=function(e){return new(e||n)(M(ze),M(bt))},n.\u0275cmp=Se({type:n,selectors:[["p-inputNumber"]],viewQuery:function(e,i){if(1&e&&ke(aU,5),2&e){let r;ie(r=re())&&(i.input=r.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,i){2&e&&jr("p-inputwrapper-filled",i.filled)("p-inputwrapper-focus",i.focused)("p-inputnumber-clearable",i.showClear&&"vertical"!=i.buttonLayout)},inputs:{showButtons:"showButtons",format:"format",buttonLayout:"buttonLayout",inputId:"inputId",styleClass:"styleClass",style:"style",placeholder:"placeholder",size:"size",maxlength:"maxlength",tabindex:"tabindex",title:"title",ariaLabel:"ariaLabel",ariaRequired:"ariaRequired",name:"name",required:"required",autocomplete:"autocomplete",min:"min",max:"max",incrementButtonClass:"incrementButtonClass",decrementButtonClass:"decrementButtonClass",incrementButtonIcon:"incrementButtonIcon",decrementButtonIcon:"decrementButtonIcon",readonly:"readonly",step:"step",allowEmpty:"allowEmpty",locale:"locale",localeMatcher:"localeMatcher",mode:"mode",currency:"currency",currencyDisplay:"currencyDisplay",useGrouping:"useGrouping",minFractionDigits:"minFractionDigits",maxFractionDigits:"maxFractionDigits",prefix:"prefix",suffix:"suffix",inputStyle:"inputStyle",inputStyleClass:"inputStyleClass",showClear:"showClear",disabled:"disabled"},outputs:{onInput:"onInput",onFocus:"onFocus",onBlur:"onBlur",onKeyDown:"onKeyDown",onClear:"onClear"},features:[Be([fU]),Zt],decls:7,vars:32,consts:[[3,"ngClass","ngStyle"],["pInputText","","inputmode","decimal",3,"ngClass","ngStyle","value","disabled","readonly","input","keydown","keypress","paste","click","focus","blur"],["input",""],["class","p-inputnumber-clear-icon pi pi-times",3,"click",4,"ngIf"],["class","p-inputnumber-button-group",4,"ngIf"],["type","button","pButton","",3,"ngClass","class","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup",4,"ngIf"],[1,"p-inputnumber-clear-icon","pi","pi-times",3,"click"],[1,"p-inputnumber-button-group"],["type","button","pButton","",3,"ngClass","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup"]],template:function(e,i){1&e&&(b(0,"span",0)(1,"input",1,2),R("input",function(s){return i.onUserInput(s)})("keydown",function(s){return i.onInputKeyDown(s)})("keypress",function(s){return i.onInputKeyPress(s)})("paste",function(s){return i.onPaste(s)})("click",function(){return i.onInputClick()})("focus",function(s){return i.onInputFocus(s)})("blur",function(s){return i.onInputBlur(s)}),w(),S(3,lU,1,0,"i",3),S(4,cU,3,12,"span",4),S(5,uU,1,6,"button",5),S(6,dU,1,6,"button",5),w()),2&e&&(fe(i.styleClass),m("ngClass",ui(28,hU,i.showButtons&&"stacked"===i.buttonLayout,i.showButtons&&"horizontal"===i.buttonLayout,i.showButtons&&"vertical"===i.buttonLayout))("ngStyle",i.style),v(1),fe(i.inputStyleClass),m("ngClass","p-inputnumber-input")("ngStyle",i.inputStyle)("value",i.formattedValue())("disabled",i.disabled)("readonly",i.readonly),Ce("placeholder",i.placeholder)("title",i.title)("id",i.inputId)("size",i.size)("name",i.name)("autocomplete",i.autocomplete)("maxlength",i.maxlength)("tabindex",i.tabindex)("aria-label",i.ariaLabel)("aria-required",i.ariaRequired)("required",i.required)("min",i.min)("max",i.max),v(2),m("ngIf","vertical"!=i.buttonLayout&&i.showClear&&i.value),v(1),m("ngIf",i.showButtons&&"stacked"===i.buttonLayout),v(1),m("ngIf",i.showButtons&&"stacked"!==i.buttonLayout),v(1),m("ngIf",i.showButtons&&"stacked"!==i.buttonLayout))},dependencies:[_t,lt,ut,j_,b_],styles:["p-inputnumber,.p-inputnumber{display:inline-flex}.p-inputnumber-button{display:flex;align-items:center;justify-content:center;flex:0 0 auto}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button .p-button-label,.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button .p-button-label{display:none}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-up{border-top-left-radius:0;border-bottom-left-radius:0;border-bottom-right-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-input{border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-stacked .p-button.p-inputnumber-button-down{border-top-left-radius:0;border-top-right-radius:0;border-bottom-left-radius:0;padding:0}.p-inputnumber-buttons-stacked .p-inputnumber-button-group{display:flex;flex-direction:column}.p-inputnumber-buttons-stacked .p-inputnumber-button-group .p-button.p-inputnumber-button{flex:1 1 auto}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-up{order:3;border-top-left-radius:0;border-bottom-left-radius:0}.p-inputnumber-buttons-horizontal .p-inputnumber-input{order:2;border-radius:0}.p-inputnumber-buttons-horizontal .p-button.p-inputnumber-button-down{order:1;border-top-right-radius:0;border-bottom-right-radius:0}.p-inputnumber-buttons-vertical{flex-direction:column}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-up{order:1;border-bottom-left-radius:0;border-bottom-right-radius:0;width:100%}.p-inputnumber-buttons-vertical .p-inputnumber-input{order:2;border-radius:0;text-align:center}.p-inputnumber-buttons-vertical .p-button.p-inputnumber-button-down{order:3;border-top-left-radius:0;border-top-right-radius:0;width:100%}.p-inputnumber-input{flex:1 1 auto}.p-fluid p-inputnumber,.p-fluid .p-inputnumber{width:100%}.p-fluid .p-inputnumber .p-inputnumber-input{width:1%}.p-fluid .p-inputnumber-buttons-vertical .p-inputnumber-input{width:100%}.p-inputnumber-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-inputnumber-clearable{position:relative}\n"],encapsulation:2,changeDetection:0}),n})(),ec=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We,sh,es]}),n})(),pU=(()=>{class n{constructor(e){this.host=e,this.focused=!1}ngAfterViewChecked(){if(!this.focused&&this.autofocus){const e=A.getFocusableElements(this.host.nativeElement);0===e.length&&this.host.nativeElement.focus(),e.length>0&&e[0].focus(),this.focused=!0}}}return n.\u0275fac=function(e){return new(e||n)(M(ze))},n.\u0275dir=se({type:n,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:"autofocus"}}),n})(),gU=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We]}),n})();class IT{}class mU{}const Cr="*";function oh(n,t){return{type:7,name:n,definitions:t,options:{}}}function qi(n,t=null){return{type:4,styles:t,timings:n}}function MT(n,t=null){return{type:2,steps:n,options:t}}function Vn(n){return{type:6,styles:n,offset:null}}function _U(n,t,e){return{type:0,name:n,styles:t,options:e}}function Yi(n,t,e=null){return{type:1,expr:n,animation:t,options:e}}function kT(n,t=null){return{type:8,animation:n,options:t}}function AT(n,t=null){return{type:10,animation:n,options:t}}function OT(n){Promise.resolve().then(n)}class tc{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._originalOnDoneFns=[],this._originalOnStartFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){OT(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(t){this._position=this.totalTime?t*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class PT{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,i=0,r=0;const s=this.players.length;0==s?OT(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++e==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const t=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=t?t.getPosition():0}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const yU=["overlay"],vU=["content"];function bU(n,t){1&n&&Y(0)}const wU=function(n,t,e){return{showTransitionParams:n,hideTransitionParams:t,transform:e}},CU=function(n){return{value:"visible",params:n}},SU=function(n){return{mode:n}},DU=function(n){return{$implicit:n}};function xU(n,t){if(1&n){const e=Q();b(0,"div",1,3),R("click",function(r){return T(e),I(_(2).onOverlayContentClick(r))})("@overlayContentAnimation.start",function(r){return T(e),I(_(2).onOverlayContentAnimationStart(r))})("@overlayContentAnimation.done",function(r){return T(e),I(_(2).onOverlayContentAnimationDone(r))}),gn(2),S(3,bU,1,0,"ng-container",4),w()}if(2&n){const e=_(2);fe(e.contentStyleClass),m("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",oe(11,CU,ui(7,wU,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),v(3),m("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",oe(15,DU,oe(13,SU,e.overlayMode)))}}const EU=function(n,t,e,i,r,s,o,a,l,c,u,d,h,f){return{"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":n,"p-overlay-center":t,"p-overlay-top":e,"p-overlay-top-start":i,"p-overlay-top-end":r,"p-overlay-bottom":s,"p-overlay-bottom-start":o,"p-overlay-bottom-end":a,"p-overlay-left":l,"p-overlay-left-start":c,"p-overlay-left-end":u,"p-overlay-right":d,"p-overlay-right-start":h,"p-overlay-right-end":f}};function TU(n,t){if(1&n){const e=Q();b(0,"div",1,2),R("click",function(r){return T(e),I(_().onOverlayClick(r))}),S(2,xU,4,17,"div",0),w()}if(2&n){const e=_();fe(e.styleClass),m("ngStyle",e.style)("ngClass",q1(5,EU,[e.modal,e.modal&&"center"===e.overlayResponsiveDirection,e.modal&&"top"===e.overlayResponsiveDirection,e.modal&&"top-start"===e.overlayResponsiveDirection,e.modal&&"top-end"===e.overlayResponsiveDirection,e.modal&&"bottom"===e.overlayResponsiveDirection,e.modal&&"bottom-start"===e.overlayResponsiveDirection,e.modal&&"bottom-end"===e.overlayResponsiveDirection,e.modal&&"left"===e.overlayResponsiveDirection,e.modal&&"left-start"===e.overlayResponsiveDirection,e.modal&&"left-end"===e.overlayResponsiveDirection,e.modal&&"right"===e.overlayResponsiveDirection,e.modal&&"right-start"===e.overlayResponsiveDirection,e.modal&&"right-end"===e.overlayResponsiveDirection])),v(2),m("ngIf",e.visible)}}const IU=["*"],MU={provide:Gt,useExisting:Fe(()=>RT),multi:!0},kU=kT([Vn({transform:"{{transform}}",opacity:0}),qi("{{showTransitionParams}}")]),AU=kT([qi("{{hideTransitionParams}}",Vn({transform:"{{transform}}",opacity:0}))]);let RT=(()=>{class n{constructor(e,i,r,s,o,a){this.document=e,this.el=i,this.renderer=r,this.config=s,this.overlayService=o,this.cd=a,this.visibleChange=new N,this.onBeforeShow=new N,this.onShow=new N,this.onBeforeHide=new N,this.onHide=new N,this.onAnimationStart=new N,this.onAnimationDone=new N,this._visible=!1,this.modalVisible=!1,this.isOverlayClicked=!1,this.isOverlayContentClicked=!1,this.transformOptions={default:"scaleY(0.8)",center:"scale(0.7)",top:"translate3d(0px, -100%, 0px)","top-start":"translate3d(0px, -100%, 0px)","top-end":"translate3d(0px, -100%, 0px)",bottom:"translate3d(0px, 100%, 0px)","bottom-start":"translate3d(0px, 100%, 0px)","bottom-end":"translate3d(0px, 100%, 0px)",left:"translate3d(-100%, 0px, 0px)","left-start":"translate3d(-100%, 0px, 0px)","left-end":"translate3d(-100%, 0px, 0px)",right:"translate3d(100%, 0px, 0px)","right-start":"translate3d(100%, 0px, 0px)","right-end":"translate3d(100%, 0px, 0px)"},this.window=this.document.defaultView}get visible(){return this._visible}set visible(e){this._visible=e,this._visible&&!this.modalVisible&&(this.modalVisible=!0)}get mode(){return this._mode||this.overlayOptions?.mode}set mode(e){this._mode=e}get style(){return U.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return U.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return U.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return U.merge(this._contentStyleClass,this.modal?this.overlayResponsiveOptions?.contentStyleClass:this.overlayOptions?.contentStyleClass)}set contentStyleClass(e){this._contentStyleClass=e}get target(){const e=this._target||this.overlayOptions?.target;return void 0===e?"@prev":e}set target(e){this._target=e}get appendTo(){return this._appendTo||this.overlayOptions?.appendTo}set appendTo(e){this._appendTo=e}get autoZIndex(){const e=this._autoZIndex||this.overlayOptions?.autoZIndex;return void 0===e||e}set autoZIndex(e){this._autoZIndex=e}get baseZIndex(){const e=this._baseZIndex||this.overlayOptions?.baseZIndex;return void 0===e?0:e}set baseZIndex(e){this._baseZIndex=e}get showTransitionOptions(){const e=this._showTransitionOptions||this.overlayOptions?.showTransitionOptions;return void 0===e?".12s cubic-bezier(0, 0, 0.2, 1)":e}set showTransitionOptions(e){this._showTransitionOptions=e}get hideTransitionOptions(){const e=this._hideTransitionOptions||this.overlayOptions?.hideTransitionOptions;return void 0===e?".1s linear":e}set hideTransitionOptions(e){this._hideTransitionOptions=e}get listener(){return this._listener||this.overlayOptions?.listener}set listener(e){this._listener=e}get responsive(){return this._responsive||this.overlayOptions?.responsive}set responsive(e){this._responsive=e}get options(){return this._options}set options(e){this._options=e}get modal(){return"modal"===this.mode||this.overlayResponsiveOptions&&this.window?.matchMedia(this.overlayResponsiveOptions.media?.replace("@media","")||`(max-width: ${this.overlayResponsiveOptions.breakpoint})`).matches}get overlayMode(){return this.mode||(this.modal?"modal":"overlay")}get overlayOptions(){return{...this.config?.overlayOptions,...this.options}}get overlayResponsiveOptions(){return{...this.overlayOptions?.responsive,...this.responsive}}get overlayResponsiveDirection(){return this.overlayResponsiveOptions?.direction||"center"}get overlayEl(){return this.overlayViewChild?.nativeElement}get contentEl(){return this.contentViewChild?.nativeElement}get targetEl(){return A.getTargetElement(this.target,this.el?.nativeElement)}ngAfterContentInit(){this.templates?.forEach(e=>{e.getType(),this.contentTemplate=e.template})}show(e,i=!1){this.onVisibleChange(!0),this.handleEvents("onShow",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&A.focus(this.targetEl),this.modal&&A.addClass(this.document?.body,"p-overflow-hidden")}hide(e,i=!1){this.onVisibleChange(!1),this.handleEvents("onHide",{overlay:e||this.overlayEl,target:this.targetEl,mode:this.overlayMode}),i&&A.focus(this.targetEl),this.modal&&A.removeClass(this.document?.body,"p-overflow-hidden")}alignOverlay(){!this.modal&&A.alignOverlay(this.overlayEl,this.targetEl,this.appendTo)}onVisibleChange(e){this._visible=e,this.visibleChange.emit(e)}onOverlayClick(){this.isOverlayClicked=!0}onOverlayContentClick(e){this.overlayService.add({originalEvent:e,target:this.targetEl}),this.isOverlayContentClicked=!0}onOverlayContentAnimationStart(e){switch(e.toState){case"visible":this.handleEvents("onBeforeShow",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.autoZIndex&&yn.set(this.overlayMode,this.overlayEl,this.baseZIndex+this.config?.zIndex[this.overlayMode]),A.appendOverlay(this.overlayEl,"body"===this.appendTo?this.document.body:this.appendTo,this.appendTo),this.alignOverlay();break;case"void":this.handleEvents("onBeforeHide",{overlay:this.overlayEl,target:this.targetEl,mode:this.overlayMode}),this.modal&&A.addClass(this.overlayEl,"p-component-overlay-leave")}this.handleEvents("onAnimationStart",e)}onOverlayContentAnimationDone(e){const i=this.overlayEl||e.element.parentElement;switch(e.toState){case"visible":this.show(i,!0),this.bindListeners();break;case"void":this.hide(i,!0),this.unbindListeners(),A.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),yn.clear(i),this.modalVisible=!1}this.handleEvents("onAnimationDone",e)}handleEvents(e,i){this[e].emit(i),this.options&&this.options[e]&&this.options[e](i),this.config?.overlayOptions&&this.config?.overlayOptions[e]&&this.config?.overlayOptions[e](i)}bindListeners(){this.bindScrollListener(),this.bindDocumentClickListener(),this.bindDocumentResizeListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Kd(this.targetEl,e=>{(!this.listener||this.listener(e,{type:"scroll",mode:this.overlayMode,valid:!0}))&&this.hide(e,!0)})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.document,"click",e=>{const r=!(this.targetEl&&(this.targetEl.isSameNode(e.target)||!this.isOverlayClicked&&this.targetEl.contains(e.target))||this.isOverlayContentClicked);(this.listener?this.listener(e,{type:"outside",mode:this.overlayMode,valid:3!==e.which&&r}):r)&&this.hide(e),this.isOverlayClicked=this.isOverlayContentClicked=!1}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){this.documentResizeListener||(this.documentResizeListener=this.renderer.listen("window","resize",e=>{(this.listener?this.listener(e,{type:"resize",mode:this.overlayMode,valid:!A.isTouchDevice()}):!A.isTouchDevice())&&this.hide(e,!0)}))}unbindDocumentResizeListener(){this.documentResizeListener&&(this.documentResizeListener(),this.documentResizeListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(A.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),yn.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}}return n.\u0275fac=function(e){return new(e||n)(M(Mt),M(ze),M(Mn),M(wr),M(Gd),M(bt))},n.\u0275cmp=Se({type:n,selectors:[["p-overlay"]],contentQueries:function(e,i,r){if(1&e&&$t(r,en,4),2&e){let s;ie(s=re())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&(ke(yU,5),ke(vU,5)),2&e){let r;ie(r=re())&&(i.overlayViewChild=r.first),ie(r=re())&&(i.contentViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{visible:"visible",mode:"mode",style:"style",styleClass:"styleClass",contentStyle:"contentStyle",contentStyleClass:"contentStyleClass",target:"target",appendTo:"appendTo",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",listener:"listener",responsive:"responsive",options:"options"},outputs:{visibleChange:"visibleChange",onBeforeShow:"onBeforeShow",onShow:"onShow",onBeforeHide:"onBeforeHide",onHide:"onHide",onAnimationStart:"onAnimationStart",onAnimationDone:"onAnimationDone"},features:[Be([MU])],ngContentSelectors:IU,decls:1,vars:1,consts:[[3,"ngStyle","class","ngClass","click",4,"ngIf"],[3,"ngStyle","ngClass","click"],["overlay",""],["content",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(ci(),S(0,TU,3,20,"div",0)),2&e&&m("ngIf",i.modalVisible)},dependencies:[_t,lt,on,ut],styles:[".p-overlay{position:absolute;top:0;left:0}.p-overlay-modal{display:flex;align-items:center;justify-content:center;position:fixed;top:0;left:0;width:100%;height:100%}.p-overlay-content{transform-origin:inherit}.p-overlay-modal>.p-overlay-content{z-index:1;width:90%}.p-overlay-top{align-items:flex-start}.p-overlay-top-start{align-items:flex-start;justify-content:flex-start}.p-overlay-top-end{align-items:flex-start;justify-content:flex-end}.p-overlay-bottom{align-items:flex-end}.p-overlay-bottom-start{align-items:flex-end;justify-content:flex-start}.p-overlay-bottom-end{align-items:flex-end;justify-content:flex-end}.p-overlay-left{justify-content:flex-start}.p-overlay-left-start{justify-content:flex-start;align-items:flex-start}.p-overlay-left-end{justify-content:flex-start;align-items:flex-end}.p-overlay-right{justify-content:flex-end}.p-overlay-right-start{justify-content:flex-end;align-items:flex-start}.p-overlay-right-end{justify-content:flex-end;align-items:flex-end}\n"],encapsulation:2,data:{animation:[oh("overlayContentAnimation",[Yi(":enter",[AT(kU)]),Yi(":leave",[AT(AU)])])]},changeDetection:0}),n})(),FT=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We,cn,cn]}),n})();const OU=["element"],PU=["content"];function RU(n,t){1&n&&Y(0)}const U_=function(n,t){return{$implicit:n,options:t}};function FU(n,t){if(1&n&&(pe(0),S(1,RU,1,0,"ng-container",7),ge()),2&n){const e=_(2);v(1),m("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",He(2,U_,e.loadedItems,e.getContentOptions()))}}function LU(n,t){1&n&&Y(0)}function NU(n,t){if(1&n&&(pe(0),S(1,LU,1,0,"ng-container",7),ge()),2&n){const e=t.$implicit,i=t.index,r=_(3);v(1),m("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",He(2,U_,e,r.getOptions(i)))}}const VU=function(n){return{"p-scroller-loading":n}};function BU(n,t){if(1&n&&(b(0,"div",8,9),S(2,NU,2,5,"ng-container",10),w()),2&n){const e=_(2);m("ngClass",oe(4,VU,e.d_loading))("ngStyle",e.contentStyle),v(2),m("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy||e.index)}}function HU(n,t){1&n&&F(0,"div",11),2&n&&m("ngStyle",_(2).spacerStyle)}function zU(n,t){1&n&&Y(0)}const jU=function(n){return{numCols:n}},LT=function(n){return{options:n}};function $U(n,t){if(1&n&&(pe(0),S(1,zU,1,0,"ng-container",7),ge()),2&n){const e=t.index,i=_(4);v(1),m("ngTemplateOutlet",i.loaderTemplate)("ngTemplateOutletContext",oe(4,LT,i.getLoaderOptions(e,i.both&&oe(2,jU,i._numItemsInViewport.cols))))}}function UU(n,t){if(1&n&&(pe(0),S(1,$U,2,6,"ng-container",14),ge()),2&n){const e=_(3);v(1),m("ngForOf",e.loaderArr)}}function WU(n,t){1&n&&Y(0)}const GU=function(){return{styleClass:"p-scroller-loading-icon"}};function KU(n,t){if(1&n&&(pe(0),S(1,WU,1,0,"ng-container",7),ge()),2&n){const e=_(4);v(1),m("ngTemplateOutlet",e.loaderIconTemplate)("ngTemplateOutletContext",oe(3,LT,$r(2,GU)))}}function qU(n,t){1&n&&F(0,"i",16)}function YU(n,t){if(1&n&&(S(0,KU,2,5,"ng-container",0),S(1,qU,1,0,"ng-template",null,15,Xt)),2&n){const e=ot(2);m("ngIf",_(3).loaderIconTemplate)("ngIfElse",e)}}const QU=function(n){return{"p-component-overlay":n}};function ZU(n,t){if(1&n&&(b(0,"div",12),S(1,UU,2,1,"ng-container",0),S(2,YU,3,2,"ng-template",null,13,Xt),w()),2&n){const e=ot(3),i=_(2);m("ngClass",oe(3,QU,!i.loaderTemplate)),v(1),m("ngIf",i.loaderTemplate)("ngIfElse",e)}}const XU=function(n,t,e){return{"p-scroller":!0,"p-scroller-inline":n,"p-both-scroll":t,"p-horizontal-scroll":e}};function JU(n,t){if(1&n){const e=Q();pe(0),b(1,"div",2,3),R("scroll",function(r){return T(e),I(_().onContainerScroll(r))}),S(3,FU,2,5,"ng-container",0),S(4,BU,3,6,"ng-template",null,4,Xt),S(6,HU,1,1,"div",5),S(7,ZU,4,5,"div",6),w(),ge()}if(2&n){const e=ot(5),i=_();v(1),fe(i._styleClass),m("ngStyle",i._style)("ngClass",ui(10,XU,i.inline,i.both,i.horizontal)),Ce("id",i._id)("tabindex",i.tabindex),v(2),m("ngIf",i.contentTemplate)("ngIfElse",e),v(3),m("ngIf",i._showSpacer),v(1),m("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function e8(n,t){1&n&&Y(0)}const t8=function(n,t){return{rows:n,columns:t}};function n8(n,t){if(1&n&&(pe(0),S(1,e8,1,0,"ng-container",7),ge()),2&n){const e=_(2);v(1),m("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",He(5,U_,e.items,He(2,t8,e._items,e.loadedColumns)))}}function r8(n,t){if(1&n&&(gn(0),S(1,n8,2,8,"ng-container",17)),2&n){const e=_();v(1),m("ngIf",e.contentTemplate)}}const s8=["*"];let NT=(()=>{class n{constructor(e,i){this.cd=e,this.zone=i,this.onLazyLoad=new N,this.onScroll=new N,this.onScrollIndexChange=new N,this._tabindex=0,this._itemSize=0,this._orientation="vertical",this._step=0,this._delay=0,this._resizeDelay=10,this._appendOnly=!1,this._inline=!1,this._lazy=!1,this._disabled=!1,this._loaderDisabled=!1,this._showSpacer=!0,this._showLoader=!1,this._autoSize=!1,this.d_loading=!1,this.first=0,this.last=0,this.page=0,this.numItemsInViewport=0,this.lastScrollPos=0,this.lazyLoadState={},this.loaderArr=[],this.spacerStyle={},this.contentStyle={},this.initialized=!1}get id(){return this._id}set id(e){this._id=e}get style(){return this._style}set style(e){this._style=e}get styleClass(){return this._styleClass}set styleClass(e){this._styleClass=e}get tabindex(){return this._tabindex}set tabindex(e){this._tabindex=e}get items(){return this._items}set items(e){this._items=e}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e}get scrollHeight(){return this._scrollHeight}set scrollHeight(e){this._scrollHeight=e}get scrollWidth(){return this._scrollWidth}set scrollWidth(e){this._scrollWidth=e}get orientation(){return this._orientation}set orientation(e){this._orientation=e}get step(){return this._step}set step(e){this._step=e}get delay(){return this._delay}set delay(e){this._delay=e}get resizeDelay(){return this._resizeDelay}set resizeDelay(e){this._resizeDelay=e}get appendOnly(){return this._appendOnly}set appendOnly(e){this._appendOnly=e}get inline(){return this._inline}set inline(e){this._inline=e}get lazy(){return this._lazy}set lazy(e){this._lazy=e}get disabled(){return this._disabled}set disabled(e){this._disabled=e}get loaderDisabled(){return this._loaderDisabled}set loaderDisabled(e){this._loaderDisabled=e}get columns(){return this._columns}set columns(e){this._columns=e}get showSpacer(){return this._showSpacer}set showSpacer(e){this._showSpacer=e}get showLoader(){return this._showLoader}set showLoader(e){this._showLoader=e}get numToleratedItems(){return this._numToleratedItems}set numToleratedItems(e){this._numToleratedItems=e}get loading(){return this._loading}set loading(e){this._loading=e}get autoSize(){return this._autoSize}set autoSize(e){this._autoSize=e}get trackBy(){return this._trackBy}set trackBy(e){this._trackBy=e}get options(){return this._options}set options(e){this._options=e,e&&"object"==typeof e&&Object.entries(e).forEach(([i,r])=>this[`_${i}`]!==r&&(this[`_${i}`]=r))}get vertical(){return"vertical"===this._orientation}get horizontal(){return"horizontal"===this._orientation}get both(){return"both"===this._orientation}get loadedItems(){return this._items&&!this.d_loading?this.both?this._items.slice(this._appendOnly?0:this.first.rows,this.last.rows).map(e=>this._columns?e:e.slice(this._appendOnly?0:this.first.cols,this.last.cols)):this.horizontal&&this._columns?this._items:this._items.slice(this._appendOnly?0:this.first,this.last):[]}get loadedRows(){return this.d_loading?this._loaderDisabled?this.loaderArr:[]:this.loadedItems}get loadedColumns(){return this._columns&&(this.both||this.horizontal)?this.d_loading&&this._loaderDisabled?this.both?this.loaderArr[0]:this.loaderArr:this._columns.slice(this.both?this.first.cols:this.first,this.both?this.last.cols:this.last):this._columns}get isPageChanged(){return!this._step||this.page!==this.getPageByFirst()}ngOnInit(){this.setInitialState()}ngOnChanges(e){let i=!1;if(e.loading){const{previousValue:r,currentValue:s}=e.loading;this.lazy&&r!==s&&s!==this.d_loading&&(this.d_loading=s,i=!0)}if(e.orientation&&(this.lastScrollPos=this.both?{top:0,left:0}:0),e.numToleratedItems){const{previousValue:r,currentValue:s}=e.numToleratedItems;r!==s&&s!==this.d_numToleratedItems&&(this.d_numToleratedItems=s)}if(e.options){const{previousValue:r,currentValue:s}=e.options;this.lazy&&r?.loading!==s?.loading&&s?.loading!==this.d_loading&&(this.d_loading=s.loading,i=!0),r?.numToleratedItems!==s?.numToleratedItems&&s?.numToleratedItems!==this.d_numToleratedItems&&(this.d_numToleratedItems=s.numToleratedItems)}this.initialized&&!i&&(e.items?.previousValue?.length!==e.items?.currentValue?.length||e.itemSize||e.scrollHeight||e.scrollWidth)&&this.init()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"content":this.contentTemplate=e.template;break;case"item":default:this.itemTemplate=e.template;break;case"loader":this.loaderTemplate=e.template;break;case"loadericon":this.loaderIconTemplate=e.template}})}ngAfterViewInit(){this.viewInit()}ngAfterViewChecked(){this.initialized||this.viewInit(),this.calculateAutoSize()}ngOnDestroy(){this.unbindResizeListener(),this.contentEl=null,this.initialized=!1}viewInit(){A.isVisible(this.elementViewChild?.nativeElement)&&(this.setInitialState(),this.setContentEl(this.contentEl),this.init(),this.defaultWidth=A.getWidth(this.elementViewChild.nativeElement),this.defaultHeight=A.getHeight(this.elementViewChild.nativeElement),this.initialized=!0)}init(){this._disabled||(this.setSize(),this.calculateOptions(),this.setSpacerSize(),this.bindResizeListener(),this.cd.detectChanges())}setContentEl(e){this.contentEl=e||this.contentViewChild?.nativeElement||A.findSingle(this.elementViewChild?.nativeElement,".p-scroller-content")}setInitialState(){this.first=this.both?{rows:0,cols:0}:0,this.last=this.both?{rows:0,cols:0}:0,this.numItemsInViewport=this.both?{rows:0,cols:0}:0,this.lastScrollPos=this.both?{top:0,left:0}:0,this.d_loading=this._loading||!1,this.d_numToleratedItems=this._numToleratedItems,this.loaderArr=[],this.spacerStyle={},this.contentStyle={}}getElementRef(){return this.elementViewChild}getPageByFirst(){return Math.floor((this.first+4*this.d_numToleratedItems)/(this._step||1))}scrollTo(e){this.lastScrollPos=this.both?{top:0,left:0}:0,this.elementViewChild?.nativeElement?.scrollTo(e)}scrollToIndex(e,i="auto"){const{numToleratedItems:r}=this.calculateNumItems(),s=this.getContentPosition(),o=(c=0,u)=>c<=u?0:c,a=(c,u,d)=>c*u+d,l=(c=0,u=0)=>this.scrollTo({left:c,top:u,behavior:i});this.both?(this.first={rows:o(e[0],r[0]),cols:o(e[1],r[1])},l(a(this.first.cols,this._itemSize[1],s.left),a(this.first.rows,this._itemSize[0],s.top))):(this.first=o(e,r),this.horizontal?l(a(this.first,this._itemSize,s.left),0):l(0,a(this.first,this._itemSize,s.top)))}scrollInView(e,i,r="auto"){if(i){const{first:s,viewport:o}=this.getRenderedRange(),a=(u=0,d=0)=>this.scrollTo({left:u,top:d,behavior:r}),c="to-end"===i;if("to-start"===i){if(this.both)o.first.rows-s.rows>e[0]?a(o.first.cols*this._itemSize[1],(o.first.rows-1)*this._itemSize[0]):o.first.cols-s.cols>e[1]&&a((o.first.cols-1)*this._itemSize[1],o.first.rows*this._itemSize[0]);else if(o.first-s>e){const u=(o.first-1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else if(c)if(this.both)o.last.rows-s.rows<=e[0]+1?a(o.first.cols*this._itemSize[1],(o.first.rows+1)*this._itemSize[0]):o.last.cols-s.cols<=e[1]+1&&a((o.first.cols+1)*this._itemSize[1],o.first.rows*this._itemSize[0]);else if(o.last-s<=e+1){const u=(o.first+1)*this._itemSize;this.horizontal?a(u,0):a(0,u)}}else this.scrollToIndex(e,r)}getRenderedRange(){const e=(s,o)=>Math.floor(s/(o||s));let i=this.first,r=0;if(this.elementViewChild?.nativeElement){const{scrollTop:s,scrollLeft:o}=this.elementViewChild.nativeElement;this.both?(i={rows:e(s,this._itemSize[0]),cols:e(o,this._itemSize[1])},r={rows:i.rows+this.numItemsInViewport.rows,cols:i.cols+this.numItemsInViewport.cols}):(i=e(this.horizontal?o:s,this._itemSize),r=i+this.numItemsInViewport)}return{first:this.first,last:this.last,viewport:{first:i,last:r}}}calculateNumItems(){const e=this.getContentPosition(),i=this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetWidth-e.left:0,r=this.elementViewChild?.nativeElement?this.elementViewChild.nativeElement.offsetHeight-e.top:0,s=(c,u)=>Math.ceil(c/(u||c)),o=c=>Math.ceil(c/2),a=this.both?{rows:s(r,this._itemSize[0]),cols:s(i,this._itemSize[1])}:s(this.horizontal?i:r,this._itemSize);return{numItemsInViewport:a,numToleratedItems:this.d_numToleratedItems||(this.both?[o(a.rows),o(a.cols)]:o(a))}}calculateOptions(){const{numItemsInViewport:e,numToleratedItems:i}=this.calculateNumItems(),r=(a,l,c,u=!1)=>this.getLast(a+l+(a<c?2:3)*c,u),s=this.first,o=this.both?{rows:r(this.first.rows,e.rows,i[0]),cols:r(this.first.cols,e.cols,i[1],!0)}:r(this.first,e,i);this.last=o,this.numItemsInViewport=e,this.d_numToleratedItems=i,this.showLoader&&(this.loaderArr=this.both?Array.from({length:e.rows}).map(()=>Array.from({length:e.cols})):Array.from({length:e})),this._lazy&&Promise.resolve().then(()=>{this.lazyLoadState={first:this._step?this.both?{rows:0,cols:s.cols}:0:s,last:Math.min(this._step?this._step:this.last,this.items.length)},this.handleEvents("onLazyLoad",this.lazyLoadState)})}calculateAutoSize(){this._autoSize&&!this.d_loading&&Promise.resolve().then(()=>{if(this.contentEl){this.contentEl.style.minHeight=this.contentEl.style.minWidth="auto";const{offsetWidth:e,offsetHeight:i}=this.contentEl;(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=(e<this.defaultWidth?e:this.defaultWidth)+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=(i<this.defaultHeight?i:this.defaultHeight)+"px"),this.contentEl.style.minHeight=this.contentEl.style.minWidth=""}})}getLast(e=0,i=!1){return this._items?Math.min(i?(this._columns||this._items[0]).length:this._items.length,e):0}getContentPosition(){if(this.contentEl){const e=getComputedStyle(this.contentEl),i=parseFloat(e.paddingLeft)+Math.max(parseFloat(e.left)||0,0),r=parseFloat(e.paddingRight)+Math.max(parseFloat(e.right)||0,0),s=parseFloat(e.paddingTop)+Math.max(parseFloat(e.top)||0,0),o=parseFloat(e.paddingBottom)+Math.max(parseFloat(e.bottom)||0,0);return{left:i,right:r,top:s,bottom:o,x:i+r,y:s+o}}return{left:0,right:0,top:0,bottom:0,x:0,y:0}}setSize(){if(this.elementViewChild?.nativeElement){const e=this.elementViewChild.nativeElement.parentElement.parentElement,i=this._scrollWidth||`${this.elementViewChild.nativeElement.offsetWidth||e.offsetWidth}px`,r=this._scrollHeight||`${this.elementViewChild.nativeElement.offsetHeight||e.offsetHeight}px`,s=(o,a)=>this.elementViewChild.nativeElement.style[o]=a;this.both||this.horizontal?(s("height",r),s("width",i)):s("height",r)}}setSpacerSize(){if(this._items){const e=this.getContentPosition(),i=(r,s,o,a=0)=>this.spacerStyle={...this.spacerStyle,[`${r}`]:(s||[]).length*o+a+"px"};this.both?(i("height",this._items,this._itemSize[0],e.y),i("width",this._columns||this._items[1],this._itemSize[1],e.x)):this.horizontal?i("width",this._columns||this._items,this._itemSize,e.x):i("height",this._items,this._itemSize,e.y)}}setContentPosition(e){if(this.contentEl&&!this._appendOnly){const i=e?e.first:this.first,r=(o,a)=>o*a,s=(o=0,a=0)=>this.contentStyle={...this.contentStyle,transform:`translate3d(${o}px, ${a}px, 0)`};if(this.both)s(r(i.cols,this._itemSize[1]),r(i.rows,this._itemSize[0]));else{const o=r(i,this._itemSize);this.horizontal?s(o,0):s(0,o)}}}onScrollPositionChange(e){const i=e.target,r=this.getContentPosition(),s=(y,C)=>y?y>C?y-C:y:0,o=(y,C)=>Math.floor(y/(C||y)),a=(y,C,x,D,E,k)=>y<=E?E:k?x-D-E:C+E-1,l=(y,C,x,D,E,k,P)=>y<=k?0:Math.max(0,P?y<C?x:y-k:y>C?x:y-2*k),c=(y,C,x,D,E,k=!1)=>{let P=C+D+2*E;return y>=E&&(P+=E+1),this.getLast(P,k)},u=s(i.scrollTop,r.top),d=s(i.scrollLeft,r.left);let h=this.both?{rows:0,cols:0}:0,f=this.last,p=!1,g=this.lastScrollPos;if(this.both){const y=this.lastScrollPos.top<=u,C=this.lastScrollPos.left<=d;if(!this._appendOnly||this._appendOnly&&(y||C)){const x={rows:o(u,this._itemSize[0]),cols:o(d,this._itemSize[1])},D={rows:a(x.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],y),cols:a(x.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],C)};h={rows:l(x.rows,D.rows,this.first.rows,0,0,this.d_numToleratedItems[0],y),cols:l(x.cols,D.cols,this.first.cols,0,0,this.d_numToleratedItems[1],C)},f={rows:c(x.rows,h.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(x.cols,h.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},p=h.rows!==this.first.rows||f.rows!==this.last.rows||h.cols!==this.first.cols||f.cols!==this.last.cols,g={top:u,left:d}}}else{const y=this.horizontal?d:u,C=this.lastScrollPos<=y;if(!this._appendOnly||this._appendOnly&&C){const x=o(y,this._itemSize);h=l(x,a(x,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,C),this.first,0,0,this.d_numToleratedItems,C),f=c(x,h,0,this.numItemsInViewport,this.d_numToleratedItems),p=h!==this.first||f!==this.last,g=y}}return{first:h,last:f,isRangeChanged:p,scrollPos:g}}onScrollChange(e){const{first:i,last:r,isRangeChanged:s,scrollPos:o}=this.onScrollPositionChange(e);if(s){const a={first:i,last:r};if(this.setContentPosition(a),this.first=i,this.last=r,this.lastScrollPos=o,this.handleEvents("onScrollIndexChange",a),this._lazy&&this.isPageChanged){const l={first:this._step?Math.min(this.getPageByFirst()*this._step,this.items.length-this._step):i,last:Math.min(this._step?(this.getPageByFirst()+1)*this._step:r,this.items.length)};(this.lazyLoadState.first!==l.first||this.lazyLoadState.last!==l.last)&&this.handleEvents("onLazyLoad",l),this.lazyLoadState=l}}}onContainerScroll(e){if(this.handleEvents("onScroll",{originalEvent:e}),this._delay&&this.isPageChanged){if(this.scrollTimeout&&clearTimeout(this.scrollTimeout),!this.d_loading&&this.showLoader){const{isRangeChanged:i}=this.onScrollPositionChange(e);(i||this._step&&this.isPageChanged)&&(this.d_loading=!0,this.cd.detectChanges())}this.scrollTimeout=setTimeout(()=>{this.onScrollChange(e),this.d_loading&&this.showLoader&&(!this._lazy||void 0===this._loading)&&(this.d_loading=!1,this.page=this.getPageByFirst(),this.cd.detectChanges())},this._delay)}else!this.d_loading&&this.onScrollChange(e)}bindResizeListener(){this.windowResizeListener||this.zone.runOutsideAngular(()=>{this.windowResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.windowResizeListener),window.addEventListener("orientationchange",this.windowResizeListener)})}unbindResizeListener(){this.windowResizeListener&&(window.removeEventListener("resize",this.windowResizeListener),window.removeEventListener("orientationchange",this.windowResizeListener),this.windowResizeListener=null)}onWindowResize(){this.resizeTimeout&&clearTimeout(this.resizeTimeout),this.resizeTimeout=setTimeout(()=>{if(A.isVisible(this.elementViewChild?.nativeElement)){const[e,i]=[A.getWidth(this.elementViewChild.nativeElement),A.getHeight(this.elementViewChild.nativeElement)],[r,s]=[e!==this.defaultWidth,i!==this.defaultHeight];(this.both?r||s:this.horizontal?r:this.vertical&&s)&&this.zone.run(()=>{this.d_numToleratedItems=this._numToleratedItems,this.defaultWidth=e,this.defaultHeight=i,this.init()})}},this._resizeDelay)}handleEvents(e,i){return this.options&&this.options[e]?this.options[e](i):this[e].emit(i)}getContentOptions(){return{contentStyleClass:"p-scroller-content "+(this.d_loading?"p-scroller-loading":""),items:this.loadedItems,getItemOptions:e=>this.getOptions(e),loading:this.d_loading,getLoaderOptions:(e,i)=>this.getLoaderOptions(e,i),itemSize:this._itemSize,rows:this.loadedRows,columns:this.loadedColumns,spacerStyle:this.spacerStyle,contentStyle:this.contentStyle,vertical:this.vertical,horizontal:this.horizontal,both:this.both}}getOptions(e){const i=(this._items||[]).length,r=this.both?this.first.rows+e:this.first+e;return{index:r,count:i,first:0===r,last:r===i-1,even:r%2==0,odd:r%2!=0}}getLoaderOptions(e,i){const r=this.loaderArr.length;return{index:e,count:r,first:0===e,last:e===r-1,even:e%2==0,odd:e%2!=0,...i}}}return n.\u0275fac=function(e){return new(e||n)(M(bt),M(Qe))},n.\u0275cmp=Se({type:n,selectors:[["p-scroller"]],contentQueries:function(e,i,r){if(1&e&&$t(r,en,4),2&e){let s;ie(s=re())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&(ke(OU,5),ke(PU,5)),2&e){let r;ie(r=re())&&(i.elementViewChild=r.first),ie(r=re())&&(i.contentViewChild=r.first)}},hostAttrs:[1,"p-scroller-viewport","p-element"],inputs:{id:"id",style:"style",styleClass:"styleClass",tabindex:"tabindex",items:"items",itemSize:"itemSize",scrollHeight:"scrollHeight",scrollWidth:"scrollWidth",orientation:"orientation",step:"step",delay:"delay",resizeDelay:"resizeDelay",appendOnly:"appendOnly",inline:"inline",lazy:"lazy",disabled:"disabled",loaderDisabled:"loaderDisabled",columns:"columns",showSpacer:"showSpacer",showLoader:"showLoader",numToleratedItems:"numToleratedItems",loading:"loading",autoSize:"autoSize",trackBy:"trackBy",options:"options"},outputs:{onLazyLoad:"onLazyLoad",onScroll:"onScroll",onScrollIndexChange:"onScrollIndexChange"},features:[Zt],ngContentSelectors:s8,decls:3,vars:2,consts:[[4,"ngIf","ngIfElse"],["disabledContainer",""],[3,"ngStyle","ngClass","scroll"],["element",""],["buildInContent",""],["class","p-scroller-spacer",3,"ngStyle",4,"ngIf"],["class","p-scroller-loader",3,"ngClass",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-scroller-content",3,"ngClass","ngStyle"],["content",""],[4,"ngFor","ngForOf","ngForTrackBy"],[1,"p-scroller-spacer",3,"ngStyle"],[1,"p-scroller-loader",3,"ngClass"],["buildInLoader",""],[4,"ngFor","ngForOf"],["buildInLoaderIcon",""],[1,"p-scroller-loading-icon","pi","pi-spinner","pi-spin"],[4,"ngIf"]],template:function(e,i){if(1&e&&(ci(),S(0,JU,8,14,"ng-container",0),S(1,r8,2,1,"ng-template",null,1,Xt)),2&e){const r=ot(2);m("ngIf",!i._disabled)("ngIfElse",r)}},dependencies:[_t,fi,lt,on,ut],styles:["p-scroller{flex:1;outline:0 none}.p-scroller{position:relative;overflow:auto;contain:strict;transform:translateZ(0);will-change:scroll-position;outline:0 none}.p-scroller-content{position:absolute;top:0;left:0;min-height:100%;min-width:100%;will-change:transform}.p-scroller-spacer{position:absolute;top:0;left:0;height:1px;width:1px;transform-origin:0 0;pointer-events:none}.p-scroller-loader{position:sticky;top:0;left:0;width:100%;height:100%}.p-scroller-loader.p-component-overlay{display:flex;align-items:center;justify-content:center}.p-scroller-loading-icon{font-size:2rem}.p-scroller-inline .p-scroller-content{position:static}\n"],encapsulation:2}),n})(),ah=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We]}),n})(),VT=(()=>{class n{constructor(e,i,r){this.el=e,this.zone=i,this.config=r,this.escape=!0,this.fitContent=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",tooltipZIndex:"auto",escape:!0,positionTop:0,positionLeft:0}}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.deactivate()}ngAfterViewInit(){this.zone.runOutsideAngular(()=>{if("hover"===this.getOption("tooltipEvent"))this.mouseEnterListener=this.onMouseEnter.bind(this),this.mouseLeaveListener=this.onMouseLeave.bind(this),this.clickListener=this.onClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.addEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){this.focusListener=this.onFocus.bind(this),this.blurListener=this.onBlur.bind(this);let e=this.getTarget(this.el.nativeElement);e.addEventListener("focus",this.focusListener),e.addEventListener("blur",this.blurListener)}})}ngOnChanges(e){e.tooltipPosition&&this.setOption({tooltipPosition:e.tooltipPosition.currentValue}),e.tooltipEvent&&this.setOption({tooltipEvent:e.tooltipEvent.currentValue}),e.appendTo&&this.setOption({appendTo:e.appendTo.currentValue}),e.positionStyle&&this.setOption({positionStyle:e.positionStyle.currentValue}),e.tooltipStyleClass&&this.setOption({tooltipStyleClass:e.tooltipStyleClass.currentValue}),e.tooltipZIndex&&this.setOption({tooltipZIndex:e.tooltipZIndex.currentValue}),e.escape&&this.setOption({escape:e.escape.currentValue}),e.showDelay&&this.setOption({showDelay:e.showDelay.currentValue}),e.hideDelay&&this.setOption({hideDelay:e.hideDelay.currentValue}),e.life&&this.setOption({life:e.life.currentValue}),e.positionTop&&this.setOption({positionTop:e.positionTop.currentValue}),e.positionLeft&&this.setOption({positionLeft:e.positionLeft.currentValue}),e.disabled&&this.setOption({disabled:e.disabled.currentValue}),e.text&&(this.setOption({tooltipLabel:e.text.currentValue}),this.active&&(e.text.currentValue?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide())),e.tooltipOptions&&(this._tooltipOptions={...this._tooltipOptions,...e.tooltipOptions.currentValue},this.deactivate(),this.active&&(this.getOption("tooltipLabel")?this.container&&this.container.offsetParent?(this.updateText(),this.align()):this.show():this.hide()))}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onClick(e){this.deactivate()}activate(){if(this.active=!0,this.clearHideTimeout(),this.getOption("showDelay")?this.showTimeout=setTimeout(()=>{this.show()},this.getOption("showDelay")):this.show(),this.getOption("life")){let e=this.getOption("showDelay")?this.getOption("life")+this.getOption("showDelay"):this.getOption("life");this.hideTimeout=setTimeout(()=>{this.hide()},e)}}deactivate(){this.active=!1,this.clearShowTimeout(),this.getOption("hideDelay")?(this.clearHideTimeout(),this.hideTimeout=setTimeout(()=>{this.hide()},this.getOption("hideDelay"))):this.hide()}create(){this.container&&(this.clearHideTimeout(),this.remove()),this.container=document.createElement("div");let e=document.createElement("div");e.className="p-tooltip-arrow",this.container.appendChild(e),this.tooltipText=document.createElement("div"),this.tooltipText.className="p-tooltip-text",this.updateText(),this.getOption("positionStyle")&&(this.container.style.position=this.getOption("positionStyle")),this.container.appendChild(this.tooltipText),"body"===this.getOption("appendTo")?document.body.appendChild(this.container):"target"===this.getOption("appendTo")?A.appendChild(this.container,this.el.nativeElement):A.appendChild(this.container,this.getOption("appendTo")),this.container.style.display="inline-block",this.fitContent&&(this.container.style.width="fit-content")}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),A.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?yn.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&yn.clear(this.container),this.remove()}updateText(){this.getOption("escape")?(this.tooltipText.innerHTML="",this.tooltipText.appendChild(document.createTextNode(this.getOption("tooltipLabel")))):this.tooltipText.innerHTML=this.getOption("tooltipLabel")}align(){switch(this.getOption("tooltipPosition")){case"top":this.alignTop(),this.isOutOfBounds()&&(this.alignBottom(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"bottom":this.alignBottom(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&this.alignLeft()));break;case"left":this.alignLeft(),this.isOutOfBounds()&&(this.alignRight(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()));break;case"right":this.alignRight(),this.isOutOfBounds()&&(this.alignLeft(),this.isOutOfBounds()&&(this.alignTop(),this.isOutOfBounds()&&this.alignBottom()))}}getHostOffset(){if("body"===this.getOption("appendTo")||"target"===this.getOption("appendTo")){let e=this.el.nativeElement.getBoundingClientRect();return{left:e.left+A.getWindowScrollLeft(),top:e.top+A.getWindowScrollTop()}}return{left:0,top:0}}alignRight(){this.preAlign("right");let e=this.getHostOffset(),i=e.left+A.getOuterWidth(this.el.nativeElement),r=e.top+(A.getOuterHeight(this.el.nativeElement)-A.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignLeft(){this.preAlign("left");let e=this.getHostOffset(),i=e.left-A.getOuterWidth(this.container),r=e.top+(A.getOuterHeight(this.el.nativeElement)-A.getOuterHeight(this.container))/2;this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignTop(){this.preAlign("top");let e=this.getHostOffset(),i=e.left+(A.getOuterWidth(this.el.nativeElement)-A.getOuterWidth(this.container))/2,r=e.top-A.getOuterHeight(this.container);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}alignBottom(){this.preAlign("bottom");let e=this.getHostOffset(),i=e.left+(A.getOuterWidth(this.el.nativeElement)-A.getOuterWidth(this.container))/2,r=e.top+A.getOuterHeight(this.el.nativeElement);this.container.style.left=i+this.getOption("positionLeft")+"px",this.container.style.top=r+this.getOption("positionTop")+"px"}setOption(e){this._tooltipOptions={...this._tooltipOptions,...e}}getOption(e){return this._tooltipOptions[e]}getTarget(e){return A.hasClass(e,"p-inputwrapper")?A.findSingle(e,"input"):e}preAlign(e){this.container.style.left="-999px",this.container.style.top="-999px";let i="p-tooltip p-component p-tooltip-"+e;this.container.className=this.getOption("tooltipStyleClass")?i+" "+this.getOption("tooltipStyleClass"):i}isOutOfBounds(){let e=this.container.getBoundingClientRect(),i=e.top,r=e.left,s=A.getOuterWidth(this.container),o=A.getOuterHeight(this.container),a=A.getViewport();return r+s>a.width||r<0||i<0||i+o>a.height}onWindowResize(e){this.hide()}bindDocumentResizeListener(){this.zone.runOutsideAngular(()=>{this.resizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.resizeListener)})}unbindDocumentResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Kd(this.el.nativeElement,()=>{this.container&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}unbindEvents(){if("hover"===this.getOption("tooltipEvent"))this.el.nativeElement.removeEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.removeEventListener("mouseleave",this.mouseLeaveListener),this.el.nativeElement.removeEventListener("click",this.clickListener);else if("focus"===this.getOption("tooltipEvent")){let e=this.getTarget(this.el.nativeElement);e.removeEventListener("focus",this.focusListener),e.removeEventListener("blur",this.blurListener)}this.unbindDocumentResizeListener()}remove(){this.container&&this.container.parentElement&&("body"===this.getOption("appendTo")?document.body.removeChild(this.container):"target"===this.getOption("appendTo")?this.el.nativeElement.removeChild(this.container):A.removeChild(this.container,this.getOption("appendTo"))),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.clearTimeouts(),this.container=null,this.scrollHandler=null}clearShowTimeout(){this.showTimeout&&(clearTimeout(this.showTimeout),this.showTimeout=null)}clearHideTimeout(){this.hideTimeout&&(clearTimeout(this.hideTimeout),this.hideTimeout=null)}clearTimeouts(){this.clearShowTimeout(),this.clearHideTimeout()}ngOnDestroy(){this.unbindEvents(),this.container&&yn.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return n.\u0275fac=function(e){return new(e||n)(M(ze),M(Qe),M(wr))},n.\u0275dir=se({type:n,selectors:[["","pTooltip",""]],hostAttrs:[1,"p-element"],inputs:{tooltipPosition:"tooltipPosition",tooltipEvent:"tooltipEvent",appendTo:"appendTo",positionStyle:"positionStyle",tooltipStyleClass:"tooltipStyleClass",tooltipZIndex:"tooltipZIndex",escape:"escape",showDelay:"showDelay",hideDelay:"hideDelay",life:"life",positionTop:"positionTop",positionLeft:"positionLeft",fitContent:"fitContent",text:["pTooltip","text"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[Zt]}),n})(),W_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We]}),n})();function o8(n,t){if(1&n&&(b(0,"span"),O(1),w()),2&n){const e=_();v(1),ne(e.label||"empty")}}function a8(n,t){1&n&&Y(0)}const nc=function(n){return{height:n}},l8=function(n,t){return{"p-dropdown-item":!0,"p-highlight":n,"p-disabled":t}},G_=function(n){return{$implicit:n}},c8=["container"],u8=["filter"],d8=["in"],h8=["editableInput"],f8=["items"],p8=["scroller"],g8=["overlay"];function m8(n,t){if(1&n&&(pe(0),O(1),ge()),2&n){const e=_(2);v(1),ne(e.label||"empty")}}function _8(n,t){1&n&&Y(0)}const y8=function(n){return{"p-dropdown-label p-inputtext":!0,"p-dropdown-label-empty":n}};function v8(n,t){if(1&n&&(b(0,"span",14),S(1,m8,2,1,"ng-container",15),S(2,_8,1,0,"ng-container",16),w()),2&n){const e=_();m("ngClass",oe(9,y8,null==e.label||0===e.label.length))("pTooltip",e.tooltip)("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPositionStyle)("tooltipStyleClass",e.tooltipStyleClass),Ce("id",e.labelId),v(1),m("ngIf",!e.selectedItemTemplate),v(1),m("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",oe(11,G_,e.selectedOption))}}const b8=function(n){return{"p-dropdown-label p-inputtext p-placeholder":!0,"p-dropdown-label-empty":n}};function w8(n,t){if(1&n&&(b(0,"span",17),O(1),w()),2&n){const e=_();m("ngClass",oe(2,b8,null==e.placeholder||0===e.placeholder.length)),v(1),ne(e.placeholder||"empty")}}function C8(n,t){if(1&n){const e=Q();b(0,"input",18,19),R("input",function(r){return T(e),I(_().onEditableInputChange(r))})("focus",function(r){return T(e),I(_().onEditableInputFocus(r))})("blur",function(r){return T(e),I(_().onInputBlur(r))}),w()}if(2&n){const e=_();m("disabled",e.disabled),Ce("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function S8(n,t){if(1&n){const e=Q();b(0,"i",20),R("click",function(r){return T(e),I(_().clear(r))}),w()}}function D8(n,t){1&n&&Y(0)}function x8(n,t){1&n&&Y(0)}const BT=function(n){return{options:n}};function E8(n,t){if(1&n&&(pe(0),S(1,x8,1,0,"ng-container",16),ge()),2&n){const e=_(3);v(1),m("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",oe(2,BT,e.filterOptions))}}function T8(n,t){if(1&n){const e=Q();b(0,"div",30)(1,"input",31,32),R("keydown.enter",function(r){return r.preventDefault()})("keydown",function(r){return T(e),I(_(3).onKeydown(r,!1))})("input",function(r){return T(e),I(_(3).onFilterInputChange(r))}),w(),F(3,"span",33),w()}if(2&n){const e=_(3);v(1),m("value",e.filterValue||""),Ce("placeholder",e.filterPlaceholder)("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.overlayVisible?"p-highlighted-option":e.labelId)}}function I8(n,t){if(1&n&&(b(0,"div",27),R("click",function(i){return i.stopPropagation()}),S(1,E8,2,4,"ng-container",28),S(2,T8,4,4,"ng-template",null,29,Xt),w()),2&n){const e=ot(3),i=_(2);v(1),m("ngIf",i.filterTemplate)("ngIfElse",e)}}function M8(n,t){1&n&&Y(0)}const HT=function(n,t){return{$implicit:n,options:t}};function k8(n,t){if(1&n&&S(0,M8,1,0,"ng-container",16),2&n){const e=t.$implicit,i=t.options;_(2),m("ngTemplateOutlet",ot(7))("ngTemplateOutletContext",He(2,HT,e,i))}}function A8(n,t){1&n&&Y(0)}function O8(n,t){if(1&n&&S(0,A8,1,0,"ng-container",16),2&n){const e=t.options;m("ngTemplateOutlet",_(4).loaderTemplate)("ngTemplateOutletContext",oe(2,BT,e))}}function P8(n,t){1&n&&(pe(0),S(1,O8,1,4,"ng-template",36),ge())}function R8(n,t){if(1&n){const e=Q();b(0,"p-scroller",34,35),R("onLazyLoad",function(r){return T(e),I(_(2).onLazyLoad.emit(r))}),S(2,k8,1,5,"ng-template",13),S(3,P8,2,0,"ng-container",15),w()}if(2&n){const e=_(2);mn(oe(8,nc,e.scrollHeight)),m("items",e.optionsToDisplay)("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),v(3),m("ngIf",e.loaderTemplate)}}function F8(n,t){1&n&&Y(0)}const L8=function(){return{}};function N8(n,t){if(1&n&&(pe(0),S(1,F8,1,0,"ng-container",16),ge()),2&n){_();const e=ot(7),i=_();v(1),m("ngTemplateOutlet",e)("ngTemplateOutletContext",He(3,HT,i.optionsToDisplay,$r(2,L8)))}}function V8(n,t){if(1&n&&(b(0,"span"),O(1),w()),2&n){const e=_().$implicit,i=_(4);v(1),ne(i.getOptionGroupLabel(e)||"empty")}}function B8(n,t){1&n&&Y(0)}function H8(n,t){1&n&&Y(0)}const zT=function(n,t){return{$implicit:n,selectedOption:t}};function z8(n,t){if(1&n&&(b(0,"li",42),S(1,V8,2,1,"span",15),S(2,B8,1,0,"ng-container",16),w(),S(3,H8,1,0,"ng-container",16)),2&n){const e=t.$implicit,i=_(2).options,r=ot(5),s=_(2);m("ngStyle",oe(6,nc,i.itemSize+"px")),v(1),m("ngIf",!s.groupTemplate),v(1),m("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",oe(8,G_,e)),v(1),m("ngTemplateOutlet",r)("ngTemplateOutletContext",He(10,zT,s.getOptionGroupChildren(e),s.selectedOption))}}function j8(n,t){if(1&n&&(pe(0),S(1,z8,4,13,"ng-template",41),ge()),2&n){const e=_().$implicit;v(1),m("ngForOf",e)}}function $8(n,t){1&n&&Y(0)}function U8(n,t){if(1&n&&(pe(0),S(1,$8,1,0,"ng-container",16),ge()),2&n){const e=_().$implicit,i=ot(5),r=_(2);v(1),m("ngTemplateOutlet",i)("ngTemplateOutletContext",He(2,zT,e,r.selectedOption))}}function W8(n,t){if(1&n){const e=Q();b(0,"p-dropdownItem",43),R("onClick",function(r){return T(e),I(_(4).onItemClick(r))}),w()}if(2&n){const e=t.$implicit,i=_().selectedOption,r=_(3);m("option",e)("selected",i==e)("label",r.getOptionLabel(e))("disabled",r.isOptionDisabled(e))("template",r.itemTemplate)}}function G8(n,t){1&n&&S(0,W8,1,5,"ng-template",41),2&n&&m("ngForOf",t.$implicit)}function K8(n,t){if(1&n&&(pe(0),O(1),ge()),2&n){const e=_(4);v(1),Le(" ",e.emptyFilterMessageLabel," ")}}function q8(n,t){1&n&&Y(0,null,45)}function Y8(n,t){if(1&n&&(b(0,"li",44),S(1,K8,2,1,"ng-container",28),S(2,q8,2,0,"ng-container",22),w()),2&n){const e=_().options,i=_(2);m("ngStyle",oe(4,nc,e.itemSize+"px")),v(1),m("ngIf",!i.emptyFilterTemplate&&!i.emptyTemplate)("ngIfElse",i.emptyFilter),v(1),m("ngTemplateOutlet",i.emptyFilterTemplate||i.emptyTemplate)}}function Q8(n,t){if(1&n&&(pe(0),O(1),ge()),2&n){const e=_(4);v(1),Le(" ",e.emptyMessageLabel," ")}}function Z8(n,t){1&n&&Y(0,null,46)}function X8(n,t){if(1&n&&(b(0,"li",44),S(1,Q8,2,1,"ng-container",28),S(2,Z8,2,0,"ng-container",22),w()),2&n){const e=_().options,i=_(2);m("ngStyle",oe(4,nc,e.itemSize+"px")),v(1),m("ngIf",!i.emptyTemplate)("ngIfElse",i.empty),v(1),m("ngTemplateOutlet",i.emptyTemplate)}}function J8(n,t){if(1&n&&(b(0,"ul",37,38),S(2,j8,2,1,"ng-container",15),S(3,U8,2,5,"ng-container",15),S(4,G8,1,1,"ng-template",null,39,Xt),S(6,Y8,3,6,"li",40),S(7,X8,3,6,"li",40),w()),2&n){const e=t.options,i=_(2);mn(e.contentStyle),m("ngClass",e.contentStyleClass),Ce("id",i.listId),v(2),m("ngIf",i.group),v(1),m("ngIf",!i.group),v(3),m("ngIf",i.filterValue&&i.isEmpty()),v(1),m("ngIf",!i.filterValue&&i.isEmpty())}}function e6(n,t){1&n&&Y(0)}function t6(n,t){if(1&n&&(b(0,"div",21),S(1,D8,1,0,"ng-container",22),S(2,I8,4,2,"div",23),b(3,"div",24),S(4,R8,4,10,"p-scroller",25),S(5,N8,2,6,"ng-container",15),S(6,J8,8,8,"ng-template",null,26,Xt),w(),S(8,e6,1,0,"ng-container",22),w()),2&n){const e=_();fe(e.panelStyleClass),m("ngClass","p-dropdown-panel p-component")("ngStyle",e.panelStyle),v(1),m("ngTemplateOutlet",e.headerTemplate),v(1),m("ngIf",e.filter),v(1),fr("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),v(1),m("ngIf",e.virtualScroll),v(1),m("ngIf",!e.virtualScroll),v(3),m("ngTemplateOutlet",e.footerTemplate)}}const n6=function(n,t,e,i){return{"p-dropdown p-component":!0,"p-disabled":n,"p-dropdown-open":t,"p-focus":e,"p-dropdown-clearable":i}},r6={provide:Gt,useExisting:Fe(()=>lh),multi:!0};let s6=(()=>{class n{constructor(){this.onClick=new N}onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Se({type:n,selectors:[["p-dropdownItem"]],hostAttrs:[1,"p-element"],inputs:{option:"option",selected:"selected",label:"label",disabled:"disabled",visible:"visible",itemSize:"itemSize",template:"template"},outputs:{onClick:"onClick"},decls:3,vars:15,consts:[["role","option","pRipple","",3,"ngStyle","id","ngClass","click"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(b(0,"li",0),R("click",function(s){return i.onOptionClick(s)}),S(1,o8,2,1,"span",1),S(2,a8,1,0,"ng-container",2),w()),2&e&&(m("ngStyle",oe(8,nc,i.itemSize+"px"))("id",i.selected?"p-highlighted-option":"")("ngClass",He(10,l8,i.selected,i.disabled)),Ce("aria-label",i.label)("aria-selected",i.selected),v(1),m("ngIf",!i.template),v(1),m("ngTemplateOutlet",i.template)("ngTemplateOutletContext",oe(13,G_,i.option)))},dependencies:[_t,lt,on,ut,Xr],encapsulation:2}),n})(),lh=(()=>{class n{constructor(e,i,r,s,o,a){this.el=e,this.renderer=i,this.cd=r,this.zone=s,this.filterService=o,this.config=a,this.scrollHeight="200px",this.resetFilterOnHide=!1,this.dropdownIcon="pi pi-chevron-down",this.optionGroupChildren="items",this.autoDisplayFirst=!0,this.emptyFilterMessage="",this.emptyMessage="",this.lazy=!1,this.filterMatchMode="contains",this.tooltip="",this.tooltipPosition="right",this.tooltipPositionStyle="absolute",this.autofocusFilter=!0,this.overlayDirection="end",this.onChange=new N,this.onFilter=new N,this.onFocus=new N,this.onBlur=new N,this.onClick=new N,this.onShow=new N,this.onHide=new N,this.onClear=new N,this.onLazyLoad=new N,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.id=y_()}get disabled(){return this._disabled}set disabled(e){e&&(this.focused=!1,this.overlayVisible&&this.hide()),this._disabled=e,this.cd.destroyed||this.cd.detectChanges()}get itemSize(){return this._itemSize}set itemSize(e){this._itemSize=e,console.warn("The itemSize property is deprecated, use virtualScrollItemSize property instead.")}get autoZIndex(){return this._autoZIndex}set autoZIndex(e){this._autoZIndex=e,console.warn("The autoZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get baseZIndex(){return this._baseZIndex}set baseZIndex(e){this._baseZIndex=e,console.warn("The baseZIndex property is deprecated since v14.2.0, use overlayOptions property instead.")}get showTransitionOptions(){return this._showTransitionOptions}set showTransitionOptions(e){this._showTransitionOptions=e,console.warn("The showTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}get hideTransitionOptions(){return this._hideTransitionOptions}set hideTransitionOptions(e){this._hideTransitionOptions=e,console.warn("The hideTransitionOptions property is deprecated since v14.2.0, use overlayOptions property instead.")}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"selectedItem":this.selectedItemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"filter":this.filterTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"emptyfilter":this.emptyFilterTemplate=e.template;break;case"empty":this.emptyTemplate=e.template;break;case"group":this.groupTemplate=e.template;break;case"loader":this.loaderTemplate=e.template}})}ngOnInit(){this.optionsToDisplay=this.options,this.updateSelectedOption(null),this.labelId=this.id+"_label",this.listId=this.id+"_list",this.filterBy&&(this.filterOptions={filter:e=>this.onFilterInputChange(e),reset:()=>this.resetFilter()})}get options(){return this._options}set options(e){this._options=e,this.optionsToDisplay=this._options,this.updateSelectedOption(this.value),this.selectedOption=this.findOption(this.value,this.optionsToDisplay),!this.selectedOption&&U.isNotEmpty(this.value)&&!this.editable&&(this.value=null,this.onModelChange(this.value)),this.optionsChanged=!0,this._filterValue&&this._filterValue.length&&this.activateFilter()}get filterValue(){return this._filterValue}set filterValue(e){this._filterValue=e,this.activateFilter()}ngAfterViewInit(){this.editable&&this.updateEditableLabel()}get label(){return this.selectedOption?this.getOptionLabel(this.selectedOption):null}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(vn.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation(vn.EMPTY_FILTER_MESSAGE)}get filled(){return"string"==typeof this.value?!!this.value:this.value||null!=this.value||null!=this.value}get isVisibleClearIcon(){return null!=this.value&&""!==this.value&&this.showClear&&!this.disabled}updateEditableLabel(){this.editableInputViewChild&&this.editableInputViewChild.nativeElement&&(this.editableInputViewChild.nativeElement.value=this.selectedOption?this.getOptionLabel(this.selectedOption):this.value||"")}getOptionLabel(e){return this.optionLabel?U.resolveFieldData(e,this.optionLabel):e&&void 0!==e.label?e.label:e}getOptionValue(e){return this.optionValue?U.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}isOptionDisabled(e){return this.optionDisabled?U.resolveFieldData(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled}getOptionGroupLabel(e){return this.optionGroupLabel?U.resolveFieldData(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?U.resolveFieldData(e,this.optionGroupChildren):e.items}onItemClick(e){const i=e.option;this.isOptionDisabled(i)||(this.selectItem(e.originalEvent,i),this.accessibleViewChild.nativeElement.focus({preventScroll:!0})),setTimeout(()=>{this.hide()},1)}selectItem(e,i){this.selectedOption!=i&&(this.selectedOption=i,this.value=this.getOptionValue(i),this.onModelChange(this.value),this.updateEditableLabel(),this.onChange.emit({originalEvent:e,value:this.value}))}ngAfterViewChecked(){this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper&&(A.findSingle(this.overlayViewChild.el.nativeElement,"li.p-highlight")&&A.scrollInView(this.itemsWrapper,A.findSingle(this.overlayViewChild.el.nativeElement,"li.p-highlight")),this.selectedOptionUpdated=!1)}writeValue(e){this.filter&&this.resetFilter(),this.value=e,this.updateSelectedOption(e),this.updateEditableLabel(),this.cd.markForCheck()}resetFilter(){this._filterValue=null,this.filterViewChild&&this.filterViewChild.nativeElement&&(this.filterViewChild.nativeElement.value=""),this.optionsToDisplay=this.options}updateSelectedOption(e){this.selectedOption=this.findOption(e,this.optionsToDisplay),this.autoDisplayFirst&&!this.placeholder&&!this.selectedOption&&this.optionsToDisplay&&this.optionsToDisplay.length&&!this.editable&&(this.selectedOption=this.group?this.optionsToDisplay[0].items[0]:this.optionsToDisplay[0],this.value=this.getOptionValue(this.selectedOption),this.onModelChange(this.value)),this.selectedOptionUpdated=!0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onMouseclick(e){this.disabled||this.readonly||this.isInputClick(e)||(this.onClick.emit(e),this.accessibleViewChild.nativeElement.focus({preventScroll:!0}),this.overlayVisible?this.hide():this.show(),this.cd.detectChanges())}isInputClick(e){return A.hasClass(e.target,"p-dropdown-clear-icon")||e.target.isSameNode(this.accessibleViewChild.nativeElement)||this.editableInputViewChild&&e.target.isSameNode(this.editableInputViewChild.nativeElement)}isEmpty(){return!this.optionsToDisplay||this.optionsToDisplay&&0===this.optionsToDisplay.length}onEditableInputFocus(e){this.focused=!0,this.hide(),this.onFocus.emit(e)}onEditableInputChange(e){this.value=e.target.value,this.updateSelectedOption(this.value),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}show(){this.overlayVisible=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){if("visible"===e.toState){if(this.itemsWrapper=A.findSingle(this.overlayViewChild.el.nativeElement,this.virtualScroll?".p-scroller":".p-dropdown-items-wrapper"),this.virtualScroll&&this.scroller.setContentEl(this.itemsViewChild.nativeElement),this.options&&this.options.length)if(this.virtualScroll){const i=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;-1!==i&&this.scroller.scrollToIndex(i)}else{let i=A.findSingle(this.itemsWrapper,".p-dropdown-item.p-highlight");i&&i.scrollIntoView({block:"nearest",inline:"center"})}this.filterViewChild&&this.filterViewChild.nativeElement&&(this.preventModelTouched=!0,this.autofocusFilter&&this.filterViewChild.nativeElement.focus()),this.onShow.emit(e)}"void"===e.toState&&(this.itemsWrapper=null,this.onModelTouched(),this.onHide.emit(e))}hide(){this.overlayVisible=!1,this.filter&&this.resetFilterOnHide&&this.resetFilter(),this.cd.markForCheck()}onInputFocus(e){this.focused=!0,this.onFocus.emit(e)}onInputBlur(e){this.focused=!1,this.onBlur.emit(e),this.preventModelTouched||this.onModelTouched(),this.preventModelTouched=!1}findPrevEnabledOption(e){let i;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let r=e-1;0<=r;r--){let s=this.optionsToDisplay[r];if(!this.isOptionDisabled(s)){i=s;break}}if(!i)for(let r=this.optionsToDisplay.length-1;r>=e;r--){let s=this.optionsToDisplay[r];if(!this.isOptionDisabled(s)){i=s;break}}}return i}findNextEnabledOption(e){let i;if(this.optionsToDisplay&&this.optionsToDisplay.length){for(let r=e+1;r<this.optionsToDisplay.length;r++){let s=this.optionsToDisplay[r];if(!this.isOptionDisabled(s)){i=s;break}}if(!i)for(let r=0;r<e;r++){let s=this.optionsToDisplay[r];if(!this.isOptionDisabled(s)){i=s;break}}}return i}onKeydown(e,i){if(!this.readonly&&this.optionsToDisplay&&null!==this.optionsToDisplay.length)switch(e.which){case 40:if(!this.overlayVisible&&e.altKey)this.show();else if(this.group){let r=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==r){let s=r.itemIndex+1;s<this.getOptionGroupChildren(this.optionsToDisplay[r.groupIndex]).length?(this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[r.groupIndex])[s]),this.selectedOptionUpdated=!0):this.optionsToDisplay[r.groupIndex+1]&&(this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[r.groupIndex+1])[0]),this.selectedOptionUpdated=!0)}else this.optionsToDisplay&&this.optionsToDisplay.length>0&&this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[0])[0])}else{let r=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,s=this.findNextEnabledOption(r);s&&(this.selectItem(e,s),this.selectedOptionUpdated=!0)}e.preventDefault();break;case 38:if(this.group){let r=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;if(-1!==r){let s=r.itemIndex-1;if(s>=0)this.selectItem(e,this.getOptionGroupChildren(this.optionsToDisplay[r.groupIndex])[s]),this.selectedOptionUpdated=!0;else if(s<0){let o=this.optionsToDisplay[r.groupIndex-1];o&&(this.selectItem(e,this.getOptionGroupChildren(o)[this.getOptionGroupChildren(o).length-1]),this.selectedOptionUpdated=!0)}}}else{let r=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1,s=this.findPrevEnabledOption(r);s&&(this.selectItem(e,s),this.selectedOptionUpdated=!0)}e.preventDefault();break;case 32:i&&(this.overlayVisible?this.hide():this.show(),e.preventDefault());break;case 13:this.overlayVisible&&(!this.filter||this.optionsToDisplay&&this.optionsToDisplay.length>0)?this.hide():this.overlayVisible||this.show(),e.preventDefault();break;case 27:case 9:this.hide();break;default:i&&!e.metaKey&&17!==e.which&&this.search(e)}}search(e){this.searchTimeout&&clearTimeout(this.searchTimeout);const i=e.key;let r;if(this.previousSearchChar=this.currentSearchChar,this.currentSearchChar=i,this.searchValue=this.previousSearchChar===this.currentSearchChar?this.currentSearchChar:this.searchValue?this.searchValue+i:i,this.group){let s=this.selectedOption?this.findOptionGroupIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):{groupIndex:0,itemIndex:0};r=this.searchOptionWithinGroup(s)}else{let s=this.selectedOption?this.findOptionIndex(this.getOptionValue(this.selectedOption),this.optionsToDisplay):-1;r=this.searchOption(++s)}r&&!this.isOptionDisabled(r)&&(this.selectItem(e,r),this.selectedOptionUpdated=!0),this.searchTimeout=setTimeout(()=>{this.searchValue=null},250)}searchOption(e){let i;return this.searchValue&&(i=this.searchOptionInRange(e,this.optionsToDisplay.length),i||(i=this.searchOptionInRange(0,e))),i}searchOptionInRange(e,i){for(let r=e;r<i;r++){let s=this.optionsToDisplay[r];if(this.getOptionLabel(s).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(s))return s}return null}searchOptionWithinGroup(e){if(this.searchValue){for(let r=e.groupIndex;r<this.optionsToDisplay.length;r++)for(let s=e.groupIndex===r?e.itemIndex+1:0;s<this.getOptionGroupChildren(this.optionsToDisplay[r]).length;s++){let o=this.getOptionGroupChildren(this.optionsToDisplay[r])[s];if(this.getOptionLabel(o).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(o))return o}for(let r=0;r<=e.groupIndex;r++)for(let s=0;s<(e.groupIndex===r?e.itemIndex:this.getOptionGroupChildren(this.optionsToDisplay[r]).length);s++){let o=this.getOptionGroupChildren(this.optionsToDisplay[r])[s];if(this.getOptionLabel(o).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))&&!this.isOptionDisabled(o))return o}}return null}findOptionIndex(e,i){let r=-1;if(i)for(let s=0;s<i.length;s++)if(null==e&&null==this.getOptionValue(i[s])||U.equals(e,this.getOptionValue(i[s]),this.dataKey)){r=s;break}return r}findOptionGroupIndex(e,i){let r,s;if(i)for(let o=0;o<i.length&&(r=o,s=this.findOptionIndex(e,this.getOptionGroupChildren(i[o])),-1===s);o++);return-1!==s?{groupIndex:r,itemIndex:s}:-1}findOption(e,i,r){if(this.group&&!r){let s;if(i&&i.length)for(let o of i)if(s=this.findOption(e,this.getOptionGroupChildren(o),!0),s)break;return s}{let s=this.findOptionIndex(e,i);return-1!=s?i[s]:null}}onFilterInputChange(e){let i=e.target.value;i&&i.length?(this._filterValue=i,this.activateFilter()):(this._filterValue=null,this.optionsToDisplay=this.options),this.virtualScroll&&this.scroller.scrollToIndex(0),this.optionsChanged=!0,this.onFilter.emit({originalEvent:e,filter:this._filterValue})}activateFilter(){let e=(this.filterBy||this.optionLabel||"label").split(",");if(this.options&&this.options.length){if(this.group){let i=[];for(let r of this.options){let s=this.filterService.filter(this.getOptionGroupChildren(r),e,this.filterValue,this.filterMatchMode,this.filterLocale);s&&s.length&&i.push({...r,[this.optionGroupChildren]:s})}this.optionsToDisplay=i}else this.optionsToDisplay=this.filterService.filter(this.options,e,this.filterValue,this.filterMatchMode,this.filterLocale);this.optionsChanged=!0}}applyFocus(){this.editable?A.findSingle(this.el.nativeElement,".p-dropdown-label.p-inputtext").focus():A.findSingle(this.el.nativeElement,"input[readonly]").focus()}focus(){this.applyFocus()}clear(e){this.value=null,this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}),this.updateSelectedOption(this.value),this.updateEditableLabel(),this.onClear.emit(e)}}return n.\u0275fac=function(e){return new(e||n)(M(ze),M(Mn),M(bt),M(Qe),M(v_),M(wr))},n.\u0275cmp=Se({type:n,selectors:[["p-dropdown"]],contentQueries:function(e,i,r){if(1&e&&$t(r,en,4),2&e){let s;ie(s=re())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&(ke(c8,5),ke(u8,5),ke(d8,5),ke(h8,5),ke(f8,5),ke(p8,5),ke(g8,5)),2&e){let r;ie(r=re())&&(i.containerViewChild=r.first),ie(r=re())&&(i.filterViewChild=r.first),ie(r=re())&&(i.accessibleViewChild=r.first),ie(r=re())&&(i.editableInputViewChild=r.first),ie(r=re())&&(i.itemsViewChild=r.first),ie(r=re())&&(i.scroller=r.first),ie(r=re())&&(i.overlayViewChild=r.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(e,i){2&e&&jr("p-inputwrapper-filled",i.filled)("p-inputwrapper-focus",i.focused||i.overlayVisible)},inputs:{scrollHeight:"scrollHeight",filter:"filter",name:"name",style:"style",panelStyle:"panelStyle",styleClass:"styleClass",panelStyleClass:"panelStyleClass",readonly:"readonly",required:"required",editable:"editable",appendTo:"appendTo",tabindex:"tabindex",placeholder:"placeholder",filterPlaceholder:"filterPlaceholder",filterLocale:"filterLocale",inputId:"inputId",selectId:"selectId",dataKey:"dataKey",filterBy:"filterBy",autofocus:"autofocus",resetFilterOnHide:"resetFilterOnHide",dropdownIcon:"dropdownIcon",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",optionGroupLabel:"optionGroupLabel",optionGroupChildren:"optionGroupChildren",autoDisplayFirst:"autoDisplayFirst",group:"group",showClear:"showClear",emptyFilterMessage:"emptyFilterMessage",emptyMessage:"emptyMessage",lazy:"lazy",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",overlayOptions:"overlayOptions",ariaFilterLabel:"ariaFilterLabel",ariaLabel:"ariaLabel",ariaLabelledBy:"ariaLabelledBy",filterMatchMode:"filterMatchMode",maxlength:"maxlength",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",autofocusFilter:"autofocusFilter",overlayDirection:"overlayDirection",disabled:"disabled",itemSize:"itemSize",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",options:"options",filterValue:"filterValue"},outputs:{onChange:"onChange",onFilter:"onFilter",onFocus:"onFocus",onBlur:"onBlur",onClick:"onClick",onShow:"onShow",onHide:"onHide",onClear:"onClear",onLazyLoad:"onLazyLoad"},features:[Be([r6])],decls:14,vars:32,consts:[[3,"ngClass","ngStyle","click"],["container",""],[1,"p-hidden-accessible"],["type","text","readonly","","aria-haspopup","listbox","aria-haspopup","listbox","pAutoFocus","","role","combobox",3,"disabled","autofocus","focus","blur","keydown"],["in",""],[3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass",4,"ngIf"],[3,"ngClass",4,"ngIf"],["type","text","class","p-dropdown-label p-inputtext","aria-haspopup","listbox",3,"disabled","input","focus","blur",4,"ngIf"],["class","p-dropdown-clear-icon pi pi-times",3,"click",4,"ngIf"],["role","button","aria-label","dropdown trigger","aria-haspopup","listbox",1,"p-dropdown-trigger"],[1,"p-dropdown-trigger-icon",3,"ngClass"],[3,"visible","options","target","appendTo","autoZIndex","baseZIndex","showTransitionOptions","hideTransitionOptions","visibleChange","onAnimationStart","onHide"],["overlay",""],["pTemplate","content"],[3,"ngClass","pTooltip","tooltipPosition","positionStyle","tooltipStyleClass"],[4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[3,"ngClass"],["type","text","aria-haspopup","listbox",1,"p-dropdown-label","p-inputtext",3,"disabled","input","focus","blur"],["editableInput",""],[1,"p-dropdown-clear-icon","pi","pi-times",3,"click"],[3,"ngClass","ngStyle"],[4,"ngTemplateOutlet"],["class","p-dropdown-header",3,"click",4,"ngIf"],[1,"p-dropdown-items-wrapper"],[3,"items","style","itemSize","autoSize","lazy","options","onLazyLoad",4,"ngIf"],["buildInItems",""],[1,"p-dropdown-header",3,"click"],[4,"ngIf","ngIfElse"],["builtInFilterElement",""],[1,"p-dropdown-filter-container"],["type","text","autocomplete","off",1,"p-dropdown-filter","p-inputtext","p-component",3,"value","keydown.enter","keydown","input"],["filter",""],[1,"p-dropdown-filter-icon","pi","pi-search"],[3,"items","itemSize","autoSize","lazy","options","onLazyLoad"],["scroller",""],["pTemplate","loader"],["role","listbox",1,"p-dropdown-items",3,"ngClass"],["items",""],["itemslist",""],["class","p-dropdown-empty-message",3,"ngStyle",4,"ngIf"],["ngFor","",3,"ngForOf"],[1,"p-dropdown-item-group",3,"ngStyle"],[3,"option","selected","label","disabled","template","onClick"],[1,"p-dropdown-empty-message",3,"ngStyle"],["emptyFilter",""],["empty",""]],template:function(e,i){1&e&&(b(0,"div",0,1),R("click",function(s){return i.onMouseclick(s)}),b(2,"div",2)(3,"input",3,4),R("focus",function(s){return i.onInputFocus(s)})("blur",function(s){return i.onInputBlur(s)})("keydown",function(s){return i.onKeydown(s,!0)}),w()(),S(5,v8,3,13,"span",5),S(6,w8,2,4,"span",6),S(7,C8,2,4,"input",7),S(8,S8,1,0,"i",8),b(9,"div",9),F(10,"span",10),w(),b(11,"p-overlay",11,12),R("visibleChange",function(s){return i.overlayVisible=s})("onAnimationStart",function(s){return i.onOverlayAnimationStart(s)})("onHide",function(){return i.hide()}),S(13,t6,9,11,"ng-template",13),w()()),2&e&&(fe(i.styleClass),m("ngClass",Ur(27,n6,i.disabled,i.overlayVisible,i.focused,i.showClear&&!i.disabled))("ngStyle",i.style),v(3),m("disabled",i.disabled)("autofocus",i.autofocus),Ce("id",i.inputId)("placeholder",i.placeholder)("aria-label",i.ariaLabel)("aria-expanded",!1)("aria-labelledby",i.ariaLabelledBy)("tabindex",i.tabindex)("aria-activedescendant",i.overlayVisible?i.labelId:null),v(2),m("ngIf",!i.editable&&null!=i.label),v(1),m("ngIf",!i.editable&&null==i.label),v(1),m("ngIf",i.editable),v(1),m("ngIf",i.isVisibleClearIcon),v(1),Ce("aria-expanded",i.overlayVisible),v(1),m("ngClass",i.dropdownIcon),v(1),m("visible",i.overlayVisible)("options",i.overlayOptions)("target","@parent")("appendTo",i.appendTo)("autoZIndex",i.autoZIndex)("baseZIndex",i.baseZIndex)("showTransitionOptions",i.showTransitionOptions)("hideTransitionOptions",i.hideTransitionOptions))},dependencies:[_t,fi,lt,on,ut,RT,en,VT,NT,pU,s6],styles:[".p-dropdown{display:inline-flex;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.p-dropdown-clear-icon{position:absolute;top:50%;margin-top:-.5rem}.p-dropdown-trigger{display:flex;align-items:center;justify-content:center;flex-shrink:0}.p-dropdown-label{display:block;white-space:nowrap;overflow:hidden;flex:1 1 auto;width:1%;text-overflow:ellipsis;cursor:pointer}.p-dropdown-label-empty{overflow:hidden;visibility:hidden}input.p-dropdown-label{cursor:default}.p-dropdown-items-wrapper{overflow:auto}.p-dropdown-item{cursor:pointer;font-weight:400;white-space:nowrap;position:relative;overflow:hidden}.p-dropdown-items{margin:0;padding:0;list-style-type:none}.p-dropdown-filter{width:100%}.p-dropdown-filter-container{position:relative}.p-dropdown-filter-icon{position:absolute;top:50%;margin-top:-.5rem}.p-fluid .p-dropdown{display:flex}.p-fluid .p-dropdown .p-dropdown-label{width:1%}\n"],encapsulation:2,changeDetection:0}),n})(),ic=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We,FT,cn,W_,Jr,ah,gU,FT,cn,ah]}),n})();const o6=["cb"],a6=function(n,t,e){return{"p-checkbox-label":!0,"p-checkbox-label-active":n,"p-disabled":t,"p-checkbox-label-focus":e}};function l6(n,t){if(1&n){const e=Q();b(0,"label",7),R("click",function(r){T(e);const s=_(),o=ot(3);return I(s.onClick(r,o,!0))}),O(1),w()}if(2&n){const e=_();fe(e.labelStyleClass),m("ngClass",ui(5,a6,e.checked(),e.disabled,e.focused)),Ce("for",e.inputId),v(1),ne(e.label)}}const c6=function(n,t,e){return{"p-checkbox p-component":!0,"p-checkbox-checked":n,"p-checkbox-disabled":t,"p-checkbox-focused":e}},u6=function(n,t,e){return{"p-highlight":n,"p-disabled":t,"p-focus":e}},d6={provide:Gt,useExisting:Fe(()=>jT),multi:!0};let jT=(()=>{class n{constructor(e){this.cd=e,this.checkboxIcon="pi pi-check",this.trueValue=!0,this.falseValue=!1,this.onChange=new N,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.focused=!1}onClick(e,i,r){e.preventDefault(),!this.disabled&&!this.readonly&&(this.updateModel(e),r&&i.focus())}updateModel(e){let i;this.binary?(i=this.checked()?this.falseValue:this.trueValue,this.model=i,this.onModelChange(i)):(i=this.checked()?this.model.filter(r=>!U.equals(r,this.value)):this.model?[...this.model,this.value]:[this.value],this.onModelChange(i),this.model=i,this.formControl&&this.formControl.setValue(i)),this.onChange.emit({checked:i,originalEvent:e})}handleChange(e){this.readonly||this.updateModel(e)}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}focus(){this.inputViewChild.nativeElement.focus()}writeValue(e){this.model=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}checked(){return this.binary?this.model===this.trueValue:U.contains(this.value,this.model)}}return n.\u0275fac=function(e){return new(e||n)(M(bt))},n.\u0275cmp=Se({type:n,selectors:[["p-checkbox"]],viewQuery:function(e,i){if(1&e&&ke(o6,5),2&e){let r;ie(r=re())&&(i.inputViewChild=r.first)}},hostAttrs:[1,"p-element"],inputs:{value:"value",name:"name",disabled:"disabled",binary:"binary",label:"label",ariaLabelledBy:"ariaLabelledBy",ariaLabel:"ariaLabel",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",labelStyleClass:"labelStyleClass",formControl:"formControl",checkboxIcon:"checkboxIcon",readonly:"readonly",required:"required",trueValue:"trueValue",falseValue:"falseValue"},outputs:{onChange:"onChange"},features:[Be([d6])],decls:7,vars:26,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","checkbox",3,"readonly","value","checked","disabled","focus","blur","change"],["cb",""],[1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],[3,"class","ngClass","click",4,"ngIf"],[3,"ngClass","click"]],template:function(e,i){if(1&e){const r=Q();b(0,"div",0)(1,"div",1)(2,"input",2,3),R("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()})("change",function(o){return i.handleChange(o)}),w()(),b(4,"div",4),R("click",function(o){T(r);const a=ot(3);return I(i.onClick(o,a,!0))}),F(5,"span",5),w()(),S(6,l6,2,9,"label",6)}2&e&&(fe(i.styleClass),m("ngStyle",i.style)("ngClass",ui(18,c6,i.checked(),i.disabled,i.focused)),v(2),m("readonly",i.readonly)("value",i.value)("checked",i.checked())("disabled",i.disabled),Ce("id",i.inputId)("name",i.name)("tabindex",i.tabindex)("aria-labelledby",i.ariaLabelledBy)("aria-label",i.ariaLabel)("aria-checked",i.checked())("required",i.required),v(2),m("ngClass",ui(22,u6,i.checked(),i.disabled,i.focused)),v(1),m("ngClass",i.checked()?i.checkboxIcon:null),v(1),m("ngIf",i.label))},dependencies:[_t,lt,ut],styles:[".p-checkbox{display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;vertical-align:bottom;position:relative}.p-checkbox-disabled{cursor:default!important;pointer-events:none}.p-checkbox-box{display:flex;justify-content:center;align-items:center}p-checkbox{display:inline-flex;vertical-align:bottom;align-items:center}.p-checkbox-label{line-height:1}\n"],encapsulation:2,changeDetection:0}),n})(),$T=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We]}),n})();class ch{}class K_{}class Sr{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(e=>{const i=e.indexOf(":");if(i>0){const r=e.slice(0,i),s=r.toLowerCase(),o=e.slice(i+1).trim();this.maybeSetNormalizedName(r,s),this.headers.has(s)?this.headers.get(s).push(o):this.headers.set(s,[o])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let i=t[e];const r=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(this.headers.set(r,i),this.maybeSetNormalizedName(e,r))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof Sr?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new Sr;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof Sr?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let i=t.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(t.name,e);const r=("a"===t.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const s=t.value;if(s){let o=this.headers.get(e);if(!o)return;o=o.filter(a=>-1===s.indexOf(a)),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class h6{encodeKey(t){return UT(t)}encodeValue(t){return UT(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const p6=/%(\d[a-f0-9])/gi,g6={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function UT(n){return encodeURIComponent(n).replace(p6,(t,e)=>g6[e]??t)}function uh(n){return`${n}`}class rs{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new h6,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function f6(n,t){const e=new Map;return n.length>0&&n.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[t.decodeKey(r),""]:[t.decodeKey(r.slice(0,s)),t.decodeValue(r.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const i=t.fromObject[e],r=Array.isArray(i)?i.map(uh):[uh(i)];this.map.set(e,r)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}appendAll(t){const e=[];return Object.keys(t).forEach(i=>{const r=t[i];Array.isArray(r)?r.forEach(s=>{e.push({param:i,value:s,op:"a"})}):e.push({param:i,value:r,op:"a"})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new rs({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(uh(t.value)),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let i=this.map.get(t.param)||[];const r=i.indexOf(uh(t.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class m6{constructor(){this.map=new Map}set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function WT(n){return typeof ArrayBuffer<"u"&&n instanceof ArrayBuffer}function GT(n){return typeof Blob<"u"&&n instanceof Blob}function KT(n){return typeof FormData<"u"&&n instanceof FormData}class rc{constructor(t,e,i,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function _6(n){switch(n){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||r?(this.body=void 0!==i?i:null,s=r):s=i,s&&(this.reportProgress=!!s.reportProgress,this.withCredentials=!!s.withCredentials,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params)),this.headers||(this.headers=new Sr),this.context||(this.context=new m6),this.params){const o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{const a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a<e.length-1?"&":"")+o}}else this.params=new rs,this.urlWithParams=e}serializeBody(){return null===this.body?null:WT(this.body)||GT(this.body)||KT(this.body)||function y6(n){return typeof URLSearchParams<"u"&&n instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof rs?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||KT(this.body)?null:GT(this.body)?this.body.type||null:WT(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof rs?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(t={}){const e=t.method||this.method,i=t.url||this.url,r=t.responseType||this.responseType,s=void 0!==t.body?t.body:this.body,o=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,a=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let l=t.headers||this.headers,c=t.params||this.params;const u=t.context??this.context;return void 0!==t.setHeaders&&(l=Object.keys(t.setHeaders).reduce((d,h)=>d.set(h,t.setHeaders[h]),l)),t.setParams&&(c=Object.keys(t.setParams).reduce((d,h)=>d.set(h,t.setParams[h]),c)),new rc(e,i,s,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:o})}}var Ct=(()=>((Ct=Ct||{})[Ct.Sent=0]="Sent",Ct[Ct.UploadProgress=1]="UploadProgress",Ct[Ct.ResponseHeader=2]="ResponseHeader",Ct[Ct.DownloadProgress=3]="DownloadProgress",Ct[Ct.Response=4]="Response",Ct[Ct.User=5]="User",Ct))();class q_{constructor(t,e=200,i="OK"){this.headers=t.headers||new Sr,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class Y_ extends q_{constructor(t={}){super(t),this.type=Ct.ResponseHeader}clone(t={}){return new Y_({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class dh extends q_{constructor(t={}){super(t),this.type=Ct.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new dh({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class qT extends q_{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Q_(n,t){return{body:t,headers:n.headers,context:n.context,observe:n.observe,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType,withCredentials:n.withCredentials}}let YT=(()=>{class n{constructor(e){this.handler=e}request(e,i,r={}){let s;if(e instanceof rc)s=e;else{let l,c;l=r.headers instanceof Sr?r.headers:new Sr(r.headers),r.params&&(c=r.params instanceof rs?r.params:new rs({fromObject:r.params})),s=new rc(e,i,void 0!==r.body?r.body:null,{headers:l,context:r.context,params:c,reportProgress:r.reportProgress,responseType:r.responseType||"json",withCredentials:r.withCredentials})}const o=ae(s).pipe(qr(l=>this.handler.handle(l)));if(e instanceof rc||"events"===r.observe)return o;const a=o.pipe(yr(l=>l instanceof dh));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(Me(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(Me(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(Me(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(Me(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${r.observe}}`)}}delete(e,i={}){return this.request("DELETE",e,i)}get(e,i={}){return this.request("GET",e,i)}head(e,i={}){return this.request("HEAD",e,i)}jsonp(e,i){return this.request("JSONP",e,{params:(new rs).append(i,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,i={}){return this.request("OPTIONS",e,i)}patch(e,i,r={}){return this.request("PATCH",e,Q_(r,i))}post(e,i,r={}){return this.request("POST",e,Q_(r,i))}put(e,i,r={}){return this.request("PUT",e,Q_(r,i))}}return n.\u0275fac=function(e){return new(e||n)(K(ch))},n.\u0275prov=Z({token:n,factory:n.\u0275fac}),n})();function QT(n,t){return t(n)}function v6(n,t){return(e,i)=>t.intercept(e,{handle:r=>n(r,i)})}const w6=new X("HTTP_INTERCEPTORS"),sc=new X("HTTP_INTERCEPTOR_FNS");function C6(){let n=null;return(t,e)=>(null===n&&(n=($e(w6,{optional:!0})??[]).reduceRight(v6,QT)),n(t,e))}let ZT=(()=>{class n extends ch{constructor(e,i){super(),this.backend=e,this.injector=i,this.chain=null}handle(e){if(null===this.chain){const i=Array.from(new Set(this.injector.get(sc)));this.chain=i.reduceRight((r,s)=>function b6(n,t,e){return(i,r)=>e.runInContext(()=>t(i,s=>n(s,r)))}(r,s,this.injector),QT)}return this.chain(e,i=>this.backend.handle(i))}}return n.\u0275fac=function(e){return new(e||n)(K(K_),K(cr))},n.\u0275prov=Z({token:n,factory:n.\u0275fac}),n})();const E6=/^\)\]\}',?\n/;let JT=(()=>{class n{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new St(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((f,p)=>r.setRequestHeader(f,p.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const f=e.detectContentTypeHeader();null!==f&&r.setRequestHeader("Content-Type",f)}if(e.responseType){const f=e.responseType.toLowerCase();r.responseType="json"!==f?f:"text"}const s=e.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const f=r.statusText||"OK",p=new Sr(r.getAllResponseHeaders()),g=function T6(n){return"responseURL"in n&&n.responseURL?n.responseURL:/^X-Request-URL:/m.test(n.getAllResponseHeaders())?n.getResponseHeader("X-Request-URL"):null}(r)||e.url;return o=new Y_({headers:p,status:r.status,statusText:f,url:g}),o},l=()=>{let{headers:f,status:p,statusText:g,url:y}=a(),C=null;204!==p&&(C=typeof r.response>"u"?r.responseText:r.response),0===p&&(p=C?200:0);let x=p>=200&&p<300;if("json"===e.responseType&&"string"==typeof C){const D=C;C=C.replace(E6,"");try{C=""!==C?JSON.parse(C):null}catch(E){C=D,x&&(x=!1,C={error:E,text:C})}}x?(i.next(new dh({body:C,headers:f,status:p,statusText:g,url:y||void 0})),i.complete()):i.error(new qT({error:C,headers:f,status:p,statusText:g,url:y||void 0}))},c=f=>{const{url:p}=a(),g=new qT({error:f,status:r.status||0,statusText:r.statusText||"Unknown Error",url:p||void 0});i.error(g)};let u=!1;const d=f=>{u||(i.next(a()),u=!0);let p={type:Ct.DownloadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),"text"===e.responseType&&!!r.responseText&&(p.partialText=r.responseText),i.next(p)},h=f=>{let p={type:Ct.UploadProgress,loaded:f.loaded};f.lengthComputable&&(p.total=f.total),i.next(p)};return r.addEventListener("load",l),r.addEventListener("error",c),r.addEventListener("timeout",c),r.addEventListener("abort",c),e.reportProgress&&(r.addEventListener("progress",d),null!==s&&r.upload&&r.upload.addEventListener("progress",h)),r.send(s),i.next({type:Ct.Sent}),()=>{r.removeEventListener("error",c),r.removeEventListener("abort",c),r.removeEventListener("load",l),r.removeEventListener("timeout",c),e.reportProgress&&(r.removeEventListener("progress",d),null!==s&&r.upload&&r.upload.removeEventListener("progress",h)),r.readyState!==r.DONE&&r.abort()}})}}return n.\u0275fac=function(e){return new(e||n)(K(TD))},n.\u0275prov=Z({token:n,factory:n.\u0275fac}),n})();const Z_=new X("XSRF_ENABLED"),eI="XSRF-TOKEN",tI=new X("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>eI}),nI="X-XSRF-TOKEN",iI=new X("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>nI});class rI{}let I6=(()=>{class n{constructor(e,i,r){this.doc=e,this.platform=i,this.cookieName=r,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=_D(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return n.\u0275fac=function(e){return new(e||n)(K(Mt),K(nd),K(tI))},n.\u0275prov=Z({token:n,factory:n.\u0275fac}),n})();function M6(n,t){const e=n.url.toLowerCase();if(!$e(Z_)||"GET"===n.method||"HEAD"===n.method||e.startsWith("http://")||e.startsWith("https://"))return t(n);const i=$e(rI).getToken(),r=$e(iI);return null!=i&&!n.headers.has(r)&&(n=n.clone({headers:n.headers.set(r,i)})),t(n)}var At=(()=>((At=At||{})[At.Interceptors=0]="Interceptors",At[At.LegacyInterceptors=1]="LegacyInterceptors",At[At.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",At[At.NoXsrfProtection=3]="NoXsrfProtection",At[At.JsonpSupport=4]="JsonpSupport",At[At.RequestsMadeViaParent=5]="RequestsMadeViaParent",At))();function pa(n,t){return{\u0275kind:n,\u0275providers:t}}function k6(...n){const t=[YT,JT,ZT,{provide:ch,useExisting:ZT},{provide:K_,useExisting:JT},{provide:sc,useValue:M6,multi:!0},{provide:Z_,useValue:!0},{provide:rI,useClass:I6}];for(const e of n)t.push(...e.\u0275providers);return function d2(n){return{\u0275providers:n}}(t)}const sI=new X("LEGACY_INTERCEPTOR_FN");function O6({cookieName:n,headerName:t}){const e=[];return void 0!==n&&e.push({provide:tI,useValue:n}),void 0!==t&&e.push({provide:iI,useValue:t}),pa(At.CustomXsrfConfiguration,e)}let X_=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({providers:[k6(pa(At.LegacyInterceptors,[{provide:sI,useFactory:C6},{provide:sc,useExisting:sI,multi:!0}]),O6({cookieName:eI,headerName:nI}))]}),n})();class P6 extends jn{constructor(t,e){super()}schedule(t,e=0){return this}}const hh={setInterval(n,t,...e){const{delegate:i}=hh;return i?.setInterval?i.setInterval(n,t,...e):setInterval(n,t,...e)},clearInterval(n){const{delegate:t}=hh;return(t?.clearInterval||clearInterval)(n)},delegate:void 0},oI={now:()=>(oI.delegate||Date).now(),delegate:void 0};class oc{constructor(t,e=oc.now){this.schedulerActionCtor=t,this.now=e}schedule(t,e=0,i){return new this.schedulerActionCtor(this,t).schedule(i,e)}}oc.now=oI.now;const L6=new class F6 extends oc{constructor(t,e=oc.now){super(t,e),this.actions=[],this._active=!1}flush(t){const{actions:e}=this;if(this._active)return void e.push(t);let i;this._active=!0;do{if(i=t.execute(t.state,t.delay))break}while(t=e.shift());if(this._active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}}(class R6 extends P6{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){var i;if(this.closed)return this;this.state=t;const r=this.id,s=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(s,r,e)),this.pending=!0,this.delay=e,this.id=null!==(i=this.id)&&void 0!==i?i:this.requestAsyncId(s,this.id,e),this}requestAsyncId(t,e,i=0){return hh.setInterval(t.flush.bind(t,this),i)}recycleAsyncId(t,e,i=0){if(null!=i&&this.delay===i&&!1===this.pending)return e;null!=e&&hh.clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(t,e);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let r,i=!1;try{this.work(t)}catch(s){i=!0,r=s||new Error("Scheduled action threw falsy error")}if(i)return this.unsubscribe(),r}unsubscribe(){if(!this.closed){const{id:t,scheduler:e}=this,{actions:i}=e;this.work=this.state=this.scheduler=null,this.pending=!1,fo(i,this),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null,super.unsubscribe()}}});function B6(n,t){1&n&&F(0,"span",11),2&n&&m("innerHTML",_(2).$implicit.summary,tl)}function H6(n,t){1&n&&F(0,"span",12),2&n&&m("innerHTML",_(2).$implicit.detail,tl)}function z6(n,t){if(1&n&&(pe(0),S(1,B6,1,1,"span",9),S(2,H6,1,1,"span",10),ge()),2&n){const e=_().$implicit;v(1),m("ngIf",e.summary),v(1),m("ngIf",e.detail)}}function j6(n,t){if(1&n&&(b(0,"span",15),O(1),w()),2&n){const e=_(2).$implicit;v(1),ne(e.summary)}}function $6(n,t){if(1&n&&(b(0,"span",16),O(1),w()),2&n){const e=_(2).$implicit;v(1),ne(e.detail)}}function U6(n,t){if(1&n&&(S(0,j6,2,1,"span",13),S(1,$6,2,1,"span",14)),2&n){const e=_().$implicit;m("ngIf",e.summary),v(1),m("ngIf",e.detail)}}function W6(n,t){if(1&n){const e=Q();b(0,"button",17),R("click",function(){T(e);const r=_().index;return I(_(2).removeMessage(r))}),F(1,"i",18),w()}}const G6=function(n,t){return{showTransitionParams:n,hideTransitionParams:t}},K6=function(n){return{value:"visible",params:n}},q6=function(n,t,e,i){return{"pi-info-circle":n,"pi-check":t,"pi-exclamation-triangle":e,"pi-times-circle":i}};function Y6(n,t){if(1&n&&(b(0,"div",4)(1,"div",5),F(2,"span",6),S(3,z6,3,2,"ng-container",1),S(4,U6,2,2,"ng-template",null,7,Xt),S(6,W6,2,0,"button",8),w()()),2&n){const e=t.$implicit,i=ot(5),r=_(2);fe("p-message p-message-"+e.severity),m("@messageAnimation",oe(12,K6,He(9,G6,r.showTransitionOptions,r.hideTransitionOptions))),v(2),fe("p-message-icon pi"+(e.icon?" "+e.icon:"")),m("ngClass",Ur(14,q6,"info"===e.severity,"success"===e.severity,"warn"===e.severity,"error"===e.severity)),v(1),m("ngIf",!r.escape)("ngIfElse",i),v(3),m("ngIf",r.closable)}}function Q6(n,t){if(1&n&&(pe(0),S(1,Y6,7,19,"div",3),ge()),2&n){const e=_();v(1),m("ngForOf",e.messages)}}function Z6(n,t){1&n&&Y(0)}function X6(n,t){if(1&n&&(b(0,"div",19)(1,"div",5),S(2,Z6,1,0,"ng-container",20),w()()),2&n){const e=_();m("ngClass","p-message p-message-"+e.severity),v(2),m("ngTemplateOutlet",e.contentTemplate)}}let J6=(()=>{class n{constructor(e,i,r){this.messageService=e,this.el=i,this.cd=r,this.closable=!0,this.enableService=!0,this.escape=!0,this.showTransitionOptions="300ms ease-out",this.hideTransitionOptions="200ms cubic-bezier(0.86, 0, 0.07, 1)",this.valueChange=new N,this.timerSubscriptions=[]}set value(e){this.messages=e,this.startMessageLifes(this.messages)}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.contentTemplate=e.template}),this.messageService&&this.enableService&&!this.contentTemplate&&(this.messageSubscription=this.messageService.messageObserver.subscribe(e=>{if(e){e instanceof Array||(e=[e]);const i=e.filter(r=>this.key===r.key);this.messages=this.messages?[...this.messages,...i]:[...i],this.startMessageLifes(i),this.cd.markForCheck()}}),this.clearSubscription=this.messageService.clearObserver.subscribe(e=>{e?this.key===e&&(this.messages=null):this.messages=null,this.cd.markForCheck()}))}hasMessages(){let e=this.el.nativeElement.parentElement;return!(!e||!e.offsetParent)&&(null!=this.contentTemplate||this.messages&&this.messages.length>0)}clear(){this.messages=[],this.valueChange.emit(this.messages)}removeMessage(e){this.messages=this.messages.filter((i,r)=>r!==e),this.valueChange.emit(this.messages)}get icon(){const e=this.severity||(this.hasMessages()?this.messages[0].severity:null);if(this.hasMessages())switch(e){case"success":return"pi-check";case"info":default:return"pi-info-circle";case"error":return"pi-times";case"warn":return"pi-exclamation-triangle"}return null}ngOnDestroy(){this.messageSubscription&&this.messageSubscription.unsubscribe(),this.clearSubscription&&this.clearSubscription.unsubscribe(),this.timerSubscriptions?.forEach(e=>e.unsubscribe())}startMessageLifes(e){e?.forEach(i=>i.life&&this.startMessageLife(i))}startMessageLife(e){const i=function V6(n=0,t,e=L6){let i=-1;return null!=t&&(db(t)?e=t:i=t),new St(r=>{let s=function N6(n){return n instanceof Date&&!isNaN(n)}(n)?+n-e.now():n;s<0&&(s=0);let o=0;return e.schedule(function(){r.closed||(r.next(o++),0<=i?this.schedule(void 0,i):r.complete())},s)})}(e.life).subscribe(()=>{this.messages=this.messages?.filter(r=>r!==e),this.timerSubscriptions=this.timerSubscriptions?.filter(r=>r!==i),this.valueChange.emit(this.messages),this.cd.markForCheck()});this.timerSubscriptions.push(i)}}return n.\u0275fac=function(e){return new(e||n)(M(Zj,8),M(ze),M(bt))},n.\u0275cmp=Se({type:n,selectors:[["p-messages"]],contentQueries:function(e,i,r){if(1&e&&$t(r,en,4),2&e){let s;ie(s=re())&&(i.templates=s)}},hostAttrs:[1,"p-element"],inputs:{value:"value",closable:"closable",style:"style",styleClass:"styleClass",enableService:"enableService",key:"key",escape:"escape",severity:"severity",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{valueChange:"valueChange"},decls:4,vars:5,consts:[["role","alert",1,"p-messages","p-component",3,"ngStyle"],[4,"ngIf","ngIfElse"],["staticMessage",""],["role","alert",3,"class",4,"ngFor","ngForOf"],["role","alert"],[1,"p-message-wrapper"],[3,"ngClass"],["escapeOut",""],["class","p-message-close p-link","type","button","pRipple","",3,"click",4,"ngIf"],["class","p-message-summary",3,"innerHTML",4,"ngIf"],["class","p-message-detail",3,"innerHTML",4,"ngIf"],[1,"p-message-summary",3,"innerHTML"],[1,"p-message-detail",3,"innerHTML"],["class","p-message-summary",4,"ngIf"],["class","p-message-detail",4,"ngIf"],[1,"p-message-summary"],[1,"p-message-detail"],["type","button","pRipple","",1,"p-message-close","p-link",3,"click"],[1,"p-message-close-icon","pi","pi-times"],["role","alert",3,"ngClass"],[4,"ngTemplateOutlet"]],template:function(e,i){if(1&e&&(b(0,"div",0),S(1,Q6,2,1,"ng-container",1),S(2,X6,3,2,"ng-template",null,2,Xt),w()),2&e){const r=ot(3);fe(i.styleClass),m("ngStyle",i.style),v(1),m("ngIf",!i.contentTemplate)("ngIfElse",r)}},dependencies:[_t,fi,lt,on,ut,Xr],styles:[".p-message-wrapper{display:flex;align-items:center}.p-message-close{display:flex;align-items:center;justify-content:center}.p-message-close.p-link{margin-left:auto;overflow:hidden;position:relative}.p-messages .p-message.ng-animating{overflow:hidden}\n"],encapsulation:2,data:{animation:[oh("messageAnimation",[Yi(":enter",[Vn({opacity:0,transform:"translateY(-25%)"}),qi("{{showTransitionParams}}")]),Yi(":leave",[qi("{{hideTransitionParams}}",Vn({height:0,marginTop:0,marginBottom:0,marginLeft:0,marginRight:0,opacity:0}))])])]},changeDetection:0}),n})(),aI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We,Jr]}),n})();function eW(n,t){if(1&n&&(b(0,"div",5),O(1),w()),2&n){const e=_(2);fr("display",null!=e.value&&0!==e.value?"flex":"none"),v(1),ki("",e.value,"",e.unit,"")}}function tW(n,t){if(1&n&&(b(0,"div",3),S(1,eW,2,4,"div",4),w()),2&n){const e=_();fr("width",e.value+"%"),v(1),m("ngIf",e.showValue)}}function nW(n,t){1&n&&(b(0,"div",6),F(1,"div",7),w())}const iW=function(n,t){return{"p-progressbar p-component":!0,"p-progressbar-determinate":n,"p-progressbar-indeterminate":t}};let rW=(()=>{class n{constructor(){this.showValue=!0,this.unit="%",this.mode="determinate"}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Se({type:n,selectors:[["p-progressBar"]],hostAttrs:[1,"p-element"],inputs:{value:"value",showValue:"showValue",style:"style",styleClass:"styleClass",unit:"unit",mode:"mode"},decls:3,vars:10,consts:[["role","progressbar","aria-valuemin","0","aria-valuemax","100",3,"ngStyle","ngClass"],["class","p-progressbar-value p-progressbar-value-animate","style","display:flex",3,"width",4,"ngIf"],["class","p-progressbar-indeterminate-container",4,"ngIf"],[1,"p-progressbar-value","p-progressbar-value-animate",2,"display","flex"],["class","p-progressbar-label",3,"display",4,"ngIf"],[1,"p-progressbar-label"],[1,"p-progressbar-indeterminate-container"],[1,"p-progressbar-value","p-progressbar-value-animate"]],template:function(e,i){1&e&&(b(0,"div",0),S(1,tW,2,3,"div",1),S(2,nW,2,0,"div",2),w()),2&e&&(fe(i.styleClass),m("ngStyle",i.style)("ngClass",He(7,iW,"determinate"===i.mode,"indeterminate"===i.mode)),Ce("aria-valuenow",i.value),v(1),m("ngIf","determinate"===i.mode),v(1),m("ngIf","indeterminate"===i.mode))},dependencies:[_t,lt,ut],styles:['.p-progressbar{position:relative;overflow:hidden}.p-progressbar-determinate .p-progressbar-value{height:100%;width:0%;position:absolute;display:none;border:0 none;display:flex;align-items:center;justify-content:center;overflow:hidden}.p-progressbar-determinate .p-progressbar-label{display:inline-flex}.p-progressbar-determinate .p-progressbar-value-animate{transition:width 1s ease-in-out}.p-progressbar-indeterminate .p-progressbar-value:before{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim 2.1s cubic-bezier(.65,.815,.735,.395) infinite}.p-progressbar-indeterminate .p-progressbar-value:after{content:"";position:absolute;background-color:inherit;top:0;left:0;bottom:0;will-change:left,right;animation:p-progressbar-indeterminate-anim-short 2.1s cubic-bezier(.165,.84,.44,1) infinite;animation-delay:1.15s}@keyframes p-progressbar-indeterminate-anim{0%{left:-35%;right:100%}60%{left:100%;right:-90%}to{left:100%;right:-90%}}@keyframes p-progressbar-indeterminate-anim-short{0%{left:-200%;right:100%}60%{left:107%;right:-8%}to{left:107%;right:-8%}}\n'],encapsulation:2,changeDetection:0}),n})(),lI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We]}),n})();const sW=["advancedfileinput"],oW=["basicfileinput"],aW=["content"];function lW(n,t){if(1&n){const e=Q();b(0,"p-button",17),R("onClick",function(){return T(e),I(_(2).upload())}),w()}if(2&n){const e=_(2);m("label",e.uploadButtonLabel)("icon",e.uploadIcon)("disabled",!e.hasFiles()||e.isFileLimitExceeded())("styleClass",e.uploadStyleClass)}}function cW(n,t){if(1&n){const e=Q();b(0,"p-button",17),R("onClick",function(){return T(e),I(_(2).clear())}),w()}if(2&n){const e=_(2);m("label",e.cancelButtonLabel)("icon",e.cancelIcon)("disabled",!e.hasFiles()||e.uploading)("styleClass",e.cancelStyleClass)}}function uW(n,t){1&n&&Y(0)}function dW(n,t){1&n&&F(0,"p-progressBar",18),2&n&&m("value",_(2).progress)("showValue",!1)}function hW(n,t){if(1&n){const e=Q();b(0,"img",26),R("error",function(r){return T(e),I(_(5).imageError(r))}),w()}if(2&n){const e=_().$implicit,i=_(4);m("src",e.objectURL,Po)("width",i.previewWidth)}}function fW(n,t){if(1&n){const e=Q();b(0,"div",22)(1,"div"),S(2,hW,1,2,"img",23),w(),b(3,"div",24),O(4),w(),b(5,"div"),O(6),w(),b(7,"div")(8,"button",25),R("click",function(r){const o=T(e).index;return I(_(4).remove(r,o))}),w()()()}if(2&n){const e=t.$implicit,i=_(4);v(2),m("ngIf",i.isImage(e)),v(2),ne(e.name),v(2),ne(i.formatSize(e.size)),v(2),fe(i.removeStyleClass),m("disabled",i.uploading)}}function pW(n,t){if(1&n&&(b(0,"div"),S(1,fW,9,6,"div",21),w()),2&n){const e=_(3);v(1),m("ngForOf",e.files)}}function gW(n,t){}function mW(n,t){if(1&n&&(b(0,"div"),S(1,gW,0,0,"ng-template",27),w()),2&n){const e=_(3);v(1),m("ngForOf",e.files)("ngForTemplate",e.fileTemplate)}}function _W(n,t){if(1&n&&(b(0,"div",19),S(1,pW,2,1,"div",20),S(2,mW,2,2,"div",20),w()),2&n){const e=_(2);v(1),m("ngIf",!e.fileTemplate),v(1),m("ngIf",e.fileTemplate)}}function yW(n,t){1&n&&Y(0)}const vW=function(n,t){return{"p-focus":n,"p-disabled":t}},bW=function(n){return{$implicit:n}};function wW(n,t){if(1&n){const e=Q();b(0,"div",2)(1,"div",3)(2,"span",4),R("focus",function(){return T(e),I(_().onFocus())})("blur",function(){return T(e),I(_().onBlur())})("click",function(){return T(e),I(_().choose())})("keydown.enter",function(){return T(e),I(_().choose())}),b(3,"input",5,6),R("change",function(r){return T(e),I(_().onFileSelect(r))}),w(),F(5,"span",7),b(6,"span",8),O(7),w()(),S(8,lW,1,4,"p-button",9),S(9,cW,1,4,"p-button",9),S(10,uW,1,0,"ng-container",10),w(),b(11,"div",11,12),R("dragenter",function(r){return T(e),I(_().onDragEnter(r))})("dragleave",function(r){return T(e),I(_().onDragLeave(r))})("drop",function(r){return T(e),I(_().onDrop(r))}),S(13,dW,1,2,"p-progressBar",13),F(14,"p-messages",14),S(15,_W,3,2,"div",15),S(16,yW,1,0,"ng-container",16),w()()}if(2&n){const e=_();fe(e.styleClass),m("ngClass","p-fileupload p-fileupload-advanced p-component")("ngStyle",e.style),v(2),fe(e.chooseStyleClass),m("ngClass",He(24,vW,e.focus,e.disabled||e.isChooseDisabled())),v(1),m("multiple",e.multiple)("accept",e.accept)("disabled",e.disabled||e.isChooseDisabled()),Ce("title",""),v(2),fe(e.chooseIcon),m("ngClass","p-button-icon p-button-icon-left"),v(2),ne(e.chooseButtonLabel),v(1),m("ngIf",!e.auto&&e.showUploadButton),v(1),m("ngIf",!e.auto&&e.showCancelButton),v(1),m("ngTemplateOutlet",e.toolbarTemplate),v(3),m("ngIf",e.hasFiles()),v(1),m("value",e.msgs)("enableService",!1),v(1),m("ngIf",e.hasFiles()),v(1),m("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",oe(27,bW,e.files))}}function CW(n,t){if(1&n&&(b(0,"span",8),O(1),w()),2&n){const e=_(2);v(1),ne(e.basicButtonLabel)}}function SW(n,t){if(1&n){const e=Q();b(0,"input",33,34),R("change",function(r){return T(e),I(_(2).onFileSelect(r))})("focus",function(){return T(e),I(_(2).onFocus())})("blur",function(){return T(e),I(_(2).onBlur())}),w()}if(2&n){const e=_(2);m("accept",e.accept)("multiple",e.multiple)("disabled",e.disabled)}}const DW=function(n,t,e,i){return{"p-button p-component p-fileupload-choose":!0,"p-button-icon-only":n,"p-fileupload-choose-selected":t,"p-focus":e,"p-disabled":i}};function xW(n,t){if(1&n){const e=Q();b(0,"div",28),F(1,"p-messages",14),b(2,"span",29),R("mouseup",function(){return T(e),I(_().onBasicUploaderClick())})("keydown",function(r){return T(e),I(_().onBasicKeydown(r))}),F(3,"span",30),S(4,CW,2,1,"span",31),S(5,SW,2,3,"input",32),w()()}if(2&n){const e=_();v(1),m("value",e.msgs)("enableService",!1),v(1),fe(e.styleClass),m("ngClass",Ur(9,DW,!e.chooseLabel,e.hasFiles(),e.focus,e.disabled))("ngStyle",e.style),v(1),m("ngClass",e.hasFiles()&&!e.auto?e.uploadIcon:e.chooseIcon),v(1),m("ngIf",e.basicButtonLabel),v(1),m("ngIf",!e.hasFiles())}}let EW=(()=>{class n{constructor(e,i,r,s,o,a){this.el=e,this.sanitizer=i,this.zone=r,this.http=s,this.cd=o,this.config=a,this.method="post",this.invalidFileSizeMessageSummary="{0}: Invalid file size, ",this.invalidFileSizeMessageDetail="maximum upload size is {0}.",this.invalidFileTypeMessageSummary="{0}: Invalid file type, ",this.invalidFileTypeMessageDetail="allowed file types: {0}.",this.invalidFileLimitMessageDetail="limit is {0} at most.",this.invalidFileLimitMessageSummary="Maximum number of files exceeded, ",this.previewWidth=50,this.chooseIcon="pi pi-plus",this.uploadIcon="pi pi-upload",this.cancelIcon="pi pi-times",this.showUploadButton=!0,this.showCancelButton=!0,this.mode="advanced",this.onBeforeUpload=new N,this.onSend=new N,this.onUpload=new N,this.onError=new N,this.onClear=new N,this.onRemove=new N,this.onSelect=new N,this.onProgress=new N,this.uploadHandler=new N,this.onImageError=new N,this._files=[],this.progress=0,this.uploadedFileCount=0}set files(e){this._files=[];for(let i=0;i<e.length;i++){let r=e[i];this.validate(r)&&(this.isImage(r)&&(r.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(e[i]))),this._files.push(e[i]))}}get files(){return this._files}get basicButtonLabel(){return this.auto||!this.hasFiles()?this.chooseLabel:this.uploadLabel??this.files[0].name}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"file":default:this.fileTemplate=e.template;break;case"content":this.contentTemplate=e.template;break;case"toolbar":this.toolbarTemplate=e.template}})}ngOnInit(){this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()})}ngAfterViewInit(){"advanced"===this.mode&&this.zone.runOutsideAngular(()=>{this.content&&this.content.nativeElement.addEventListener("dragover",this.onDragOver.bind(this))})}choose(){this.advancedFileInput.nativeElement.click()}onFileSelect(e){if("drop"!==e.type&&this.isIE11()&&this.duplicateIEEvent)return void(this.duplicateIEEvent=!1);this.msgs=[],this.multiple||(this.files=[]);let i=e.dataTransfer?e.dataTransfer.files:e.target.files;for(let r=0;r<i.length;r++){let s=i[r];this.isFileSelected(s)||this.validate(s)&&(this.isImage(s)&&(s.objectURL=this.sanitizer.bypassSecurityTrustUrl(window.URL.createObjectURL(i[r]))),this.files.push(i[r]))}this.onSelect.emit({originalEvent:e,files:i,currentFiles:this.files}),this.fileLimit&&"advanced"==this.mode&&this.checkFileLimit(),this.hasFiles()&&this.auto&&("advanced"!==this.mode||!this.isFileLimitExceeded())&&this.upload(),"drop"!==e.type&&this.isIE11()?this.clearIEInput():this.clearInputElement()}isFileSelected(e){for(let i of this.files)if(i.name+i.type+i.size===e.name+e.type+e.size)return!0;return!1}isIE11(){return!!window.MSInputMethodContext&&!!document.documentMode}validate(e){return this.msgs=[],this.accept&&!this.isFileTypeValid(e)?(this.msgs.push({severity:"error",summary:this.invalidFileTypeMessageSummary.replace("{0}",e.name),detail:this.invalidFileTypeMessageDetail.replace("{0}",this.accept)}),!1):!(this.maxFileSize&&e.size>this.maxFileSize&&(this.msgs.push({severity:"error",summary:this.invalidFileSizeMessageSummary.replace("{0}",e.name),detail:this.invalidFileSizeMessageDetail.replace("{0}",this.formatSize(this.maxFileSize))}),1))}isFileTypeValid(e){let i=this.accept.split(",").map(r=>r.trim());for(let r of i)if(this.isWildcard(r)?this.getTypeClass(e.type)===this.getTypeClass(r):e.type==r||this.getFileExtension(e).toLowerCase()===r.toLowerCase())return!0;return!1}getTypeClass(e){return e.substring(0,e.indexOf("/"))}isWildcard(e){return-1!==e.indexOf("*")}getFileExtension(e){return"."+e.name.split(".").pop()}isImage(e){return/^image\//.test(e.type)}onImageLoad(e){window.URL.revokeObjectURL(e.src)}upload(){if(this.customUpload)this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.uploadHandler.emit({files:this.files}),this.cd.markForCheck();else{this.uploading=!0,this.msgs=[];let e=new FormData;this.onBeforeUpload.emit({formData:e});for(let i=0;i<this.files.length;i++)e.append(this.name,this.files[i],this.files[i].name);this.http[this.method](this.url,e,{headers:this.headers,reportProgress:!0,observe:"events",withCredentials:this.withCredentials}).subscribe(i=>{switch(i.type){case Ct.Sent:this.onSend.emit({originalEvent:i,formData:e});break;case Ct.Response:this.uploading=!1,this.progress=0,i.status>=200&&i.status<300?(this.fileLimit&&(this.uploadedFileCount+=this.files.length),this.onUpload.emit({originalEvent:i,files:this.files})):this.onError.emit({files:this.files}),this.clear();break;case Ct.UploadProgress:i.loaded&&(this.progress=Math.round(100*i.loaded/i.total)),this.onProgress.emit({originalEvent:i,progress:this.progress})}this.cd.markForCheck()},i=>{this.uploading=!1,this.onError.emit({files:this.files,error:i})})}}clear(){this.files=[],this.onClear.emit(),this.clearInputElement(),this.cd.markForCheck()}remove(e,i){this.clearInputElement(),this.onRemove.emit({originalEvent:e,file:this.files[i]}),this.files.splice(i,1),this.checkFileLimit()}isFileLimitExceeded(){return this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount&&this.focus&&(this.focus=!1),this.fileLimit&&this.fileLimit<this.files.length+this.uploadedFileCount}isChooseDisabled(){return this.fileLimit&&this.fileLimit<=this.files.length+this.uploadedFileCount}checkFileLimit(){this.msgs=[],this.isFileLimitExceeded()?this.msgs.push({severity:"error",summary:this.invalidFileLimitMessageSummary.replace("{0}",this.fileLimit.toString()),detail:this.invalidFileLimitMessageDetail.replace("{0}",this.fileLimit.toString())}):this.msgs=[]}clearInputElement(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.advancedFileInput.nativeElement.value=""),this.basicFileInput&&this.basicFileInput.nativeElement&&(this.basicFileInput.nativeElement.value="")}clearIEInput(){this.advancedFileInput&&this.advancedFileInput.nativeElement&&(this.duplicateIEEvent=!0,this.advancedFileInput.nativeElement.value="")}hasFiles(){return this.files&&this.files.length>0}onDragEnter(e){this.disabled||(e.stopPropagation(),e.preventDefault())}onDragOver(e){this.disabled||(A.addClass(this.content.nativeElement,"p-fileupload-highlight"),this.dragHighlight=!0,e.stopPropagation(),e.preventDefault())}onDragLeave(e){this.disabled||A.removeClass(this.content.nativeElement,"p-fileupload-highlight")}onDrop(e){if(!this.disabled){A.removeClass(this.content.nativeElement,"p-fileupload-highlight"),e.stopPropagation(),e.preventDefault();let i=e.dataTransfer?e.dataTransfer.files:e.target.files;(this.multiple||i&&1===i.length)&&this.onFileSelect(e)}}onFocus(){this.focus=!0}onBlur(){this.focus=!1}formatSize(e){if(0==e)return"0 B";let o=Math.floor(Math.log(e)/Math.log(1e3));return parseFloat((e/Math.pow(1e3,o)).toFixed(3))+" "+["B","KB","MB","GB","TB","PB","EB","ZB","YB"][o]}onBasicUploaderClick(){this.hasFiles()?this.upload():this.basicFileInput.nativeElement.click()}onBasicKeydown(e){switch(e.code){case"Space":case"Enter":this.onBasicUploaderClick(),e.preventDefault()}}imageError(e){this.onImageError.emit(e)}getBlockableElement(){return this.el.nativeElement.children[0]}get chooseButtonLabel(){return this.chooseLabel||this.config.getTranslation(vn.CHOOSE)}get uploadButtonLabel(){return this.uploadLabel||this.config.getTranslation(vn.UPLOAD)}get cancelButtonLabel(){return this.cancelLabel||this.config.getTranslation(vn.CANCEL)}ngOnDestroy(){this.content&&this.content.nativeElement&&this.content.nativeElement.removeEventListener("dragover",this.onDragOver),this.translationSubscription&&this.translationSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(M(ze),M(QD),M(Qe),M(YT),M(bt),M(wr))},n.\u0275cmp=Se({type:n,selectors:[["p-fileUpload"]],contentQueries:function(e,i,r){if(1&e&&$t(r,en,4),2&e){let s;ie(s=re())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&(ke(sW,5),ke(oW,5),ke(aW,5)),2&e){let r;ie(r=re())&&(i.advancedFileInput=r.first),ie(r=re())&&(i.basicFileInput=r.first),ie(r=re())&&(i.content=r.first)}},hostAttrs:[1,"p-element"],inputs:{name:"name",url:"url",method:"method",multiple:"multiple",accept:"accept",disabled:"disabled",auto:"auto",withCredentials:"withCredentials",maxFileSize:"maxFileSize",invalidFileSizeMessageSummary:"invalidFileSizeMessageSummary",invalidFileSizeMessageDetail:"invalidFileSizeMessageDetail",invalidFileTypeMessageSummary:"invalidFileTypeMessageSummary",invalidFileTypeMessageDetail:"invalidFileTypeMessageDetail",invalidFileLimitMessageDetail:"invalidFileLimitMessageDetail",invalidFileLimitMessageSummary:"invalidFileLimitMessageSummary",style:"style",styleClass:"styleClass",previewWidth:"previewWidth",chooseLabel:"chooseLabel",uploadLabel:"uploadLabel",cancelLabel:"cancelLabel",chooseIcon:"chooseIcon",uploadIcon:"uploadIcon",cancelIcon:"cancelIcon",showUploadButton:"showUploadButton",showCancelButton:"showCancelButton",mode:"mode",headers:"headers",customUpload:"customUpload",fileLimit:"fileLimit",uploadStyleClass:"uploadStyleClass",cancelStyleClass:"cancelStyleClass",removeStyleClass:"removeStyleClass",chooseStyleClass:"chooseStyleClass",files:"files"},outputs:{onBeforeUpload:"onBeforeUpload",onSend:"onSend",onUpload:"onUpload",onError:"onError",onClear:"onClear",onRemove:"onRemove",onSelect:"onSelect",onProgress:"onProgress",uploadHandler:"uploadHandler",onImageError:"onImageError"},decls:2,vars:2,consts:[[3,"ngClass","ngStyle","class",4,"ngIf"],["class","p-fileupload p-fileupload-basic p-component",4,"ngIf"],[3,"ngClass","ngStyle"],[1,"p-fileupload-buttonbar"],["pRipple","","tabindex","0",1,"p-button","p-component","p-fileupload-choose",3,"ngClass","focus","blur","click","keydown.enter"],["type","file",3,"multiple","accept","disabled","change"],["advancedfileinput",""],[3,"ngClass"],[1,"p-button-label"],["type","button",3,"label","icon","disabled","styleClass","onClick",4,"ngIf"],[4,"ngTemplateOutlet"],[1,"p-fileupload-content",3,"dragenter","dragleave","drop"],["content",""],[3,"value","showValue",4,"ngIf"],[3,"value","enableService"],["class","p-fileupload-files",4,"ngIf"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",3,"label","icon","disabled","styleClass","onClick"],[3,"value","showValue"],[1,"p-fileupload-files"],[4,"ngIf"],["class","p-fileupload-row",4,"ngFor","ngForOf"],[1,"p-fileupload-row"],[3,"src","width","error",4,"ngIf"],[1,"p-fileupload-filename"],["type","button","icon","pi pi-times","pButton","",3,"disabled","click"],[3,"src","width","error"],["ngFor","",3,"ngForOf","ngForTemplate"],[1,"p-fileupload","p-fileupload-basic","p-component"],["tabindex","0","pRipple","",3,"ngClass","ngStyle","mouseup","keydown"],[1,"p-button-icon","p-button-icon-left","pi",3,"ngClass"],["class","p-button-label",4,"ngIf"],["type","file",3,"accept","multiple","disabled","change","focus","blur",4,"ngIf"],["type","file",3,"accept","multiple","disabled","change","focus","blur"],["basicfileinput",""]],template:function(e,i){1&e&&(S(0,wW,17,29,"div",0),S(1,xW,6,14,"div",1)),2&e&&(m("ngIf","advanced"===i.mode),v(1),m("ngIf","basic"===i.mode))},dependencies:[_t,fi,lt,on,ut,b_,Gl,rW,J6,Xr],styles:[".p-fileupload-content{position:relative}.p-fileupload-row{display:flex;align-items:center}.p-fileupload-row>div{flex:1 1 auto;width:25%}.p-fileupload-row>div:last-child{text-align:right}.p-fileupload-content .p-progressbar{width:100%;position:absolute;top:0;left:0}.p-button.p-fileupload-choose{position:relative;overflow:hidden}.p-button.p-fileupload-choose input[type=file],.p-fileupload-choose.p-fileupload-choose-selected input[type=file]{display:none}.p-fluid .p-fileupload .p-button{width:auto}.p-fileupload-filename{word-break:break-all}\n"],encapsulation:2,changeDetection:0}),n})(),cI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We,cn,es,lI,aI,Jr,cn,es,lI,aI]}),n})();const TW=["ins"],uI=new X("AdsenseConfig");let ac=(()=>{class n{constructor(e,i){this.config=e,this.platform=i,this.adRegion="page-"+Math.floor(1e4*Math.random())+1,this.className=""}ngOnInit(){const e=this.config;this.adClient=this.adClient??e.adClient,this.adSlot=this.adSlot??e.adSlot,this.adFormat=this.adFormat??e.adFormat??"auto",this.display=this.display??e.display??"block",this.width=this.width??e.width,this.height=this.height??e.height,this.layout=this.layout??e.layout,this.layoutKey=this.layoutKey??e.layoutKey,this.pageLevelAds=this.pageLevelAds??e.pageLevelAds,this.adtest=this.adtest??e.adtest,this.fullWidthResponsive=this.fullWidthResponsive??e.fullWidthResponsive}ngOnDestroy(){const e=this.ins.nativeElement.querySelector("iframe");e&&e.contentWindow&&(e.src="about:blank",e.remove())}ngAfterViewInit(){(function lz(n){return n===xD})(this.platform)&&this.push()}push(){const e={};if(this.pageLevelAds&&(e.google_ad_client=this.adClient,e.enable_page_level_ads=!0),window)try{(window.adsbygoogle=window.adsbygoogle||[]).push(e)}catch{}}}return n.\u0275fac=function(e){return new(e||n)(M(uI),M(nd))},n.\u0275cmp=Se({type:n,selectors:[["ng2-adsense"],["ng-adsense"]],viewQuery:function(e,i){if(1&e&&ke(TW,7,ze),2&e){let r;ie(r=re())&&(i.ins=r.first)}},inputs:{adClient:"adClient",adSlot:"adSlot",adFormat:"adFormat",adRegion:"adRegion",display:"display",width:"width",height:"height",layout:"layout",layoutKey:"layoutKey",pageLevelAds:"pageLevelAds",adtest:"adtest",fullWidthResponsive:"fullWidthResponsive",className:"className"},decls:2,vars:17,consts:[["ins",""]],template:function(e,i){1&e&&F(0,"ins",null,0),2&e&&(function ZC(n,t,e){Mi(Qn,Ui,zo(B(),n,t,e),!0)}("adsbygoogle ",i.className,""),fr("display",i.display)("width",i.width,"px")("height",i.height,"px"),Ce("data-ad-client",i.adClient)("data-ad-slot",i.adSlot)("data-ad-format",i.adFormat)("data-ad-region",i.adRegion)("data-layout",i.layout)("data-adtest",i.adtest)("data-layout-key",i.layoutKey)("data-full-width-responsive",i.fullWidthResponsive))},encapsulation:2,changeDetection:0}),n})(),IW=(()=>{class n{static forRoot(e={}){return{ngModule:n,providers:[{provide:uI,useValue:e}]}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We]}),n})(),MW=(()=>{class n{constructor(e){this.ascArtService=e,this.width=200,this.height=100,this.greyscale=!1,this.selectedModel=null,this.models=[],this.uploadedFiles=[],this.ascArt="";const i=document.createElement("canvas");this.ctx=i.getContext("2d"),this.models=[{name:"1",code:1},{name:"2",code:2},{name:"3 - Coding",code:3}]}ngOnInit(){this.selectedModel=3}myuploadHandler(e){this.uploadedFiles=[];for(let i of e.files)this.uploadedFiles.push(i)}onBasicUpload(e){}execute(){var e=this;return _E(function*(){const i=new FileReader;i.readAsDataURL(e.uploadedFiles[0]),i.onload=()=>{var s=i.result;console.log(s);var o=new Image;o.src=s,o.onload=()=>{e.ctx.drawImage(o,0,0,e.width,e.height),e.ascArt=e.ascArtService.gerarAscArt(e.selectedModel,e.ctx,e.height,e.width,e.greyscale)}}})()}tobase64(e){return _E(function*(){})()}}return n.\u0275fac=function(e){return new(e||n)(M(Yj))},n.\u0275cmp=Se({type:n,selectors:[["app-asc-art"]],decls:35,vars:12,consts:[[1,"grid",2,"padding-top","50px"],[1,"col-1"],[1,"col-9"],[1,"grid","p-fluid"],[1,"field","col-3"],["for","width"],["inputId","width",3,"ngModel","ngModelChange"],["for","height"],["inputId","height",3,"ngModel","ngModelChange"],["for","model"],["inputId","model","optionLabel","name","optionValue","code","placeholder","Select",3,"options","ngModel","showClear","ngModelChange"],[1,"field","col-12"],["inputId","greyscale",3,"ngModel","binary","ngModelChange"],["for","greyscale"],["accept","image/*",3,"files","maxFileSize","onSelect","onUpload"],["label","Generate!","icon","fas fa-brush","iconPos","left",3,"click"],["id","ascArt",2,"font-family","Consolas, monaco, monospace","line-height","80%","font-size","10px"],[3,"adClient","pageLevelAds"],[1,"col-2"]],template:function(e,i){1&e&&(b(0,"div",0),F(1,"div",1),b(2,"div",2)(3,"h4"),O(4," Asc Art Generator"),w(),b(5,"div",3)(6,"div",4)(7,"label",5),O(8,"Width"),w(),b(9,"p-inputNumber",6),R("ngModelChange",function(s){return i.width=s}),w()(),b(10,"div",4)(11,"label",7),O(12,"Height"),w(),b(13,"p-inputNumber",8),R("ngModelChange",function(s){return i.height=s}),w()(),b(14,"div",4)(15,"label",9),O(16,"Model"),w(),b(17,"p-dropdown",10),R("ngModelChange",function(s){return i.selectedModel=s}),w()(),F(18,"div",4),b(19,"div",11)(20,"p-checkbox",12),R("ngModelChange",function(s){return i.greyscale=s}),w(),b(21,"label",13),O(22,"Greyscale"),w()(),b(23,"div",11)(24,"h5"),O(25,"Upload your image"),w(),b(26,"p-fileUpload",14),R("onSelect",function(s){return i.myuploadHandler(s)})("onUpload",function(s){return i.onBasicUpload(s)}),w()(),b(27,"div",4)(28,"p-button",15),R("click",function(){return i.execute()}),w()()(),b(29,"pre",16),O(30),w(),F(31,"br")(32,"br")(33,"ng-adsense",17),w(),F(34,"div",18),w()),2&e&&(v(9),m("ngModel",i.width),v(4),m("ngModel",i.height),v(4),m("options",i.models)("ngModel",i.selectedModel)("showClear",!0),v(3),m("ngModel",i.greyscale)("binary",!0),v(6),m("files",i.uploadedFiles)("maxFileSize",1e6),v(4),ne(i.ascArt),v(3),m("adClient","ca-pub-1469802245881557")("pageLevelAds",!0))},dependencies:[Gl,Jl,lh,jT,EW,ql,Us,ac]}),n})(),kW=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Se({type:n,selectors:[["app-contact"]],decls:2,vars:0,template:function(e,i){1&e&&(b(0,"p"),O(1,"contact works!"),w())}}),n})();function AW(n,t){if(1&n&&(b(0,"span",4),O(1),w()),2&n){const e=_();v(1),ne(e.label)}}function OW(n,t){1&n&&F(0,"span",6),2&n&&(fe(_(2).icon),m("ngClass","p-avatar-icon"))}function PW(n,t){if(1&n&&S(0,OW,1,3,"span",5),2&n){const e=_(),i=ot(6);m("ngIf",e.icon)("ngIfElse",i)}}function RW(n,t){if(1&n){const e=Q();b(0,"img",8),R("error",function(r){return T(e),I(_(2).imageError(r))}),w()}2&n&&m("src",_(2).image,Po)}function FW(n,t){1&n&&S(0,RW,1,1,"img",7),2&n&&m("ngIf",_().image)}const LW=["*"];let dI=(()=>{class n{constructor(){this.size="normal",this.shape="square",this.onImageError=new N}containerClass(){return{"p-avatar p-component":!0,"p-avatar-image":null!=this.image,"p-avatar-circle":"circle"===this.shape,"p-avatar-lg":"large"===this.size,"p-avatar-xl":"xlarge"===this.size}}imageError(e){this.onImageError.emit(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Se({type:n,selectors:[["p-avatar"]],hostAttrs:[1,"p-element"],inputs:{label:"label",icon:"icon",image:"image",size:"size",shape:"shape",style:"style",styleClass:"styleClass"},outputs:{onImageError:"onImageError"},ngContentSelectors:LW,decls:7,vars:6,consts:[[3,"ngClass","ngStyle"],["class","p-avatar-text",4,"ngIf","ngIfElse"],["iconTemplate",""],["imageTemplate",""],[1,"p-avatar-text"],[3,"class","ngClass",4,"ngIf","ngIfElse"],[3,"ngClass"],[3,"src","error",4,"ngIf"],[3,"src","error"]],template:function(e,i){if(1&e&&(ci(),b(0,"div",0),gn(1),S(2,AW,2,1,"span",1),S(3,PW,1,2,"ng-template",null,2,Xt),S(5,FW,1,1,"ng-template",null,3,Xt),w()),2&e){const r=ot(4);fe(i.styleClass),m("ngClass",i.containerClass())("ngStyle",i.style),v(2),m("ngIf",i.label)("ngIfElse",r)}},dependencies:[_t,lt,ut],styles:[".p-avatar{display:inline-flex;align-items:center;justify-content:center;width:2rem;height:2rem;font-size:1rem}.p-avatar.p-avatar-image{background-color:transparent}.p-avatar.p-avatar-circle{border-radius:50%;overflow:hidden}.p-avatar .p-avatar-icon{font-size:1rem}.p-avatar img{width:100%;height:100%}\n"],encapsulation:2,changeDetection:0}),n})(),hI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We]}),n})();function NW(n,t){1&n&&Y(0)}function VW(n,t){if(1&n&&(b(0,"div",8),gn(1,1),S(2,NW,1,0,"ng-container",6),w()),2&n){const e=_();v(2),m("ngTemplateOutlet",e.headerTemplate)}}function BW(n,t){1&n&&Y(0)}function HW(n,t){if(1&n&&(b(0,"div",9),O(1),S(2,BW,1,0,"ng-container",6),w()),2&n){const e=_();v(1),Le(" ",e.header," "),v(1),m("ngTemplateOutlet",e.titleTemplate)}}function zW(n,t){1&n&&Y(0)}function jW(n,t){if(1&n&&(b(0,"div",10),O(1),S(2,zW,1,0,"ng-container",6),w()),2&n){const e=_();v(1),Le(" ",e.subheader," "),v(1),m("ngTemplateOutlet",e.subtitleTemplate)}}function $W(n,t){1&n&&Y(0)}function UW(n,t){1&n&&Y(0)}function WW(n,t){if(1&n&&(b(0,"div",11),gn(1,2),S(2,UW,1,0,"ng-container",6),w()),2&n){const e=_();v(2),m("ngTemplateOutlet",e.footerTemplate)}}const GW=["*",[["p-header"]],[["p-footer"]]],KW=["*","p-header","p-footer"];let qW=(()=>{class n{constructor(e){this.el=e}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"header":this.headerTemplate=e.template;break;case"title":this.titleTemplate=e.template;break;case"subtitle":this.subtitleTemplate=e.template;break;case"content":default:this.contentTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}getBlockableElement(){return this.el.nativeElement.children[0]}}return n.\u0275fac=function(e){return new(e||n)(M(ze))},n.\u0275cmp=Se({type:n,selectors:[["p-card"]],contentQueries:function(e,i,r){if(1&e&&($t(r,wE,5),$t(r,CE,5),$t(r,en,4)),2&e){let s;ie(s=re())&&(i.headerFacet=s.first),ie(s=re())&&(i.footerFacet=s.first),ie(s=re())&&(i.templates=s)}},hostAttrs:[1,"p-element"],inputs:{header:"header",subheader:"subheader",style:"style",styleClass:"styleClass"},ngContentSelectors:KW,decls:9,vars:9,consts:[[3,"ngClass","ngStyle"],["class","p-card-header",4,"ngIf"],[1,"p-card-body"],["class","p-card-title",4,"ngIf"],["class","p-card-subtitle",4,"ngIf"],[1,"p-card-content"],[4,"ngTemplateOutlet"],["class","p-card-footer",4,"ngIf"],[1,"p-card-header"],[1,"p-card-title"],[1,"p-card-subtitle"],[1,"p-card-footer"]],template:function(e,i){1&e&&(ci(GW),b(0,"div",0),S(1,VW,3,1,"div",1),b(2,"div",2),S(3,HW,3,2,"div",3),S(4,jW,3,2,"div",4),b(5,"div",5),gn(6),S(7,$W,1,0,"ng-container",6),w(),S(8,WW,3,1,"div",7),w()()),2&e&&(fe(i.styleClass),m("ngClass","p-card p-component")("ngStyle",i.style),v(1),m("ngIf",i.headerFacet||i.headerTemplate),v(2),m("ngIf",i.header||i.titleTemplate),v(1),m("ngIf",i.subheader||i.subtitleTemplate),v(3),m("ngTemplateOutlet",i.contentTemplate),v(1),m("ngIf",i.footerFacet||i.footerTemplate))},dependencies:[_t,lt,on,ut],styles:[".p-card-header img{width:100%}\n"],encapsulation:2,changeDetection:0}),n})(),fI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We,cn]}),n})(),pI=(()=>{class n{constructor(e){this.router=e}ngOnInit(){}onClickCard(e){"tspcalculator"==e?this.router.navigate(["/","tspcalculator"]):"investimentSimulator"==e?this.router.navigate(["/","interestSimulator"]):"shipGame"==e&&this.router.navigate(["/","shipGame"])}}return n.\u0275fac=function(e){return new(e||n)(M(Jt))},n.\u0275cmp=Se({type:n,selectors:[["app-home"]],decls:62,vars:2,consts:[[1,"grid",2,"padding-top","50px"],[1,"col-3"],[1,"col-6"],["image","../../../assets/images/me.jpg","shape","circle","size","xlarge",1,"centerPainel"],[1,"grid"],[1,"col-12"],[3,"click"],[1,"fas","fa-project-diagram"],[1,"fas","fa-chart-line"],[1,"fas","fa-rocket"],["href","https://github.com/LucasLP"],[1,"fab","fa-github"],["href","https://www.linkedin.com/in/lucaspresteslp/"],[1,"fab","fa-linkedin"],["href","https://twitter.com/LucasPrestesLP/"],[1,"fab","fa-twitter"],["href","https://www.instagram.com/lucas.prestes.lp/"],[1,"fab","fa-instagram"],[3,"adClient","pageLevelAds"]],template:function(e,i){1&e&&(b(0,"div",0),F(1,"div",1),b(2,"div",2),F(3,"p-avatar",3),b(4,"h4"),O(5,"Hello!"),w(),b(6,"p"),O(7,"I am Lucas Prestes "),w(),b(8,"p"),O(9,"Check my online tools/experiments:"),w(),b(10,"div",4)(11,"div",5)(12,"p-card",6),R("click",function(){return i.onClickCard("tspcalculator")}),b(13,"h6"),F(14,"i",7),O(15," TSP Calculator"),w(),b(16,"p"),O(17,"Calculates the n\xba possibilities, time and energy expenditure used to calculate the optimal solution to a non-polynomial problem by brute force."),w()()(),b(18,"div",5)(19,"p-card",6),R("click",function(){return i.onClickCard("investimentSimulator")}),b(20,"h6"),F(21,"i",8),O(22," Investiment Simulator"),w(),b(23,"p"),O(24,"Helps to simulate investments with different forms of contributions."),w()()(),b(25,"div",5)(26,"p-card",6),R("click",function(){return i.onClickCard("shipGame")}),b(27,"h6"),F(28,"i",9),O(29," Rocket Game"),w(),b(30,"p"),O(31,"A simple rocket game made with ChatGPT guided by me."),w()()()(),b(32,"p"),O(33,' After my Computer Science Degree, I pursued a Master\'s Degree in Electrical Engineering and Industrial Informatics at UTFPR, focusing on Bioinformatics. During this time, I had an article published at the National Meeting of Artificial and Computational Intelligence (ENIAC) in 2014. Subsequently, in 2015, another article of mine was published at the Latin American Congress on Computational Intelligence (LA-CCI), which later became a chapter in the book "Evolutionary Multi-Objective System Design: Theory and Applications". These publications, along with others presented at various congresses and regional and local meetings, were the result of two scientific internships conducted at the State University of Midwest Paran\xe1. Additionally, in 2017, I had another article published at BRACIS (Brazilian Conference on Intelligent Systems). '),w(),b(34,"p")(35,"b"),O(36," E-mail:"),w(),O(37," lucas.prestes.lp @ gmail.com "),w(),b(38,"p")(39,"a",10),F(40,"i",11),O(41," LucasLP "),w()(),b(42,"p")(43,"a",12),F(44,"i",13),O(45," Linkedin"),w()(),b(46,"p")(47,"a",14),F(48,"i",15),O(49," Twitter"),w()(),b(50,"p")(51,"a",16),F(52,"i",17),O(53," Instagram"),w()(),F(54,"br")(55,"br")(56,"br")(57,"br")(58,"br")(59,"br")(60,"ng-adsense",18),w(),F(61,"div",1),w()),2&e&&(v(60),m("adClient","ca-pub-1469802245881557")("pageLevelAds",!0))},dependencies:[dI,qW,ac],styles:[".centerPainel[_ngcontent-%COMP%]{width:100%;padding-top:50px;text-align:center}"]}),n})();const YW=["container"],QW=["inputfield"],ZW=["contentWrapper"];function XW(n,t){if(1&n){const e=Q();b(0,"i",8),R("click",function(){return T(e),I(_(2).clear())}),w()}}function JW(n,t){if(1&n){const e=Q();b(0,"button",9),R("click",function(r){T(e),_();const s=ot(1);return I(_().onButtonClick(r,s))}),w()}if(2&n){const e=_(2);m("icon",e.icon)("disabled",e.disabled),Ce("aria-label",e.iconAriaLabel)}}function e7(n,t){if(1&n){const e=Q();b(0,"input",4,5),R("focus",function(r){return T(e),I(_().onInputFocus(r))})("keydown",function(r){return T(e),I(_().onInputKeydown(r))})("click",function(){return T(e),I(_().onInputClick())})("blur",function(r){return T(e),I(_().onInputBlur(r))})("input",function(r){return T(e),I(_().onUserInput(r))}),w(),S(2,XW,1,0,"i",6),S(3,JW,1,3,"button",7)}if(2&n){const e=_();fe(e.inputStyleClass),m("value",e.inputFieldValue)("readonly",e.readonlyInput)("ngStyle",e.inputStyle)("placeholder",e.placeholder||"")("disabled",e.disabled)("ngClass","p-inputtext p-component"),Ce("id",e.inputId)("name",e.name)("required",e.required)("aria-required",e.required)("tabindex",e.tabindex)("inputmode",e.touchUI?"off":null)("aria-labelledby",e.ariaLabelledBy),v(2),m("ngIf",e.showClear&&!e.disabled&&null!=e.value),v(1),m("ngIf",e.showIcon)}}function t7(n,t){1&n&&Y(0)}function n7(n,t){if(1&n){const e=Q();b(0,"button",30),R("keydown",function(r){return T(e),I(_(4).onContainerButtonKeydown(r))})("click",function(r){return T(e),I(_(4).onPrevButtonClick(r))}),F(1,"span",31),w()}}function r7(n,t){if(1&n){const e=Q();b(0,"button",32),R("click",function(r){return T(e),I(_(4).switchToMonthView(r))})("keydown",function(r){return T(e),I(_(4).onContainerButtonKeydown(r))}),O(1),w()}if(2&n){const e=_().$implicit,i=_(3);m("disabled",i.switchViewButtonDisabled()),v(1),Le(" ",i.getMonthName(e.month)," ")}}function s7(n,t){if(1&n){const e=Q();b(0,"button",33),R("click",function(r){return T(e),I(_(4).switchToYearView(r))})("keydown",function(r){return T(e),I(_(4).onContainerButtonKeydown(r))}),O(1),w()}if(2&n){const e=_().$implicit,i=_(3);m("disabled",i.switchViewButtonDisabled()),v(1),Le(" ",i.getYear(e)," ")}}function o7(n,t){if(1&n&&(pe(0),O(1),ge()),2&n){const e=_(5);v(1),ki("",e.yearPickerValues()[0]," - ",e.yearPickerValues()[e.yearPickerValues().length-1],"")}}function a7(n,t){1&n&&Y(0)}const gI=function(n){return{$implicit:n}};function l7(n,t){if(1&n&&(b(0,"span",34),S(1,o7,2,2,"ng-container",13),S(2,a7,1,0,"ng-container",35),w()),2&n){const e=_(4);v(1),m("ngIf",!e.decadeTemplate),v(1),m("ngTemplateOutlet",e.decadeTemplate)("ngTemplateOutletContext",oe(3,gI,e.yearPickerValues))}}function c7(n,t){if(1&n&&(b(0,"th",41)(1,"span"),O(2),w()()),2&n){const e=_(5);v(2),ne(e.getTranslation("weekHeader"))}}function u7(n,t){if(1&n&&(b(0,"th",42)(1,"span"),O(2),w()()),2&n){const e=t.$implicit;v(2),ne(e)}}function d7(n,t){if(1&n&&(b(0,"td",45)(1,"span",46),O(2),w()()),2&n){const e=_().index,i=_(2).$implicit;v(2),Le(" ",i.weekNumbers[e]," ")}}function h7(n,t){if(1&n&&(pe(0),O(1),ge()),2&n){const e=_(2).$implicit;v(1),ne(e.day)}}function f7(n,t){1&n&&Y(0)}const mI=function(n,t){return{"p-highlight":n,"p-disabled":t}};function p7(n,t){if(1&n){const e=Q();pe(0),b(1,"span",48),R("click",function(r){T(e);const s=_().$implicit;return I(_(6).onDateSelect(r,s))})("keydown",function(r){T(e);const s=_().$implicit,o=_(3).index;return I(_(3).onDateCellKeydown(r,s,o))}),S(2,h7,2,1,"ng-container",13),S(3,f7,1,0,"ng-container",35),w(),ge()}if(2&n){const e=_().$implicit,i=_(6);v(1),m("ngClass",He(4,mI,i.isSelected(e),!e.selectable)),v(1),m("ngIf",!i.dateTemplate),v(1),m("ngTemplateOutlet",i.dateTemplate)("ngTemplateOutletContext",oe(7,gI,e))}}const g7=function(n,t){return{"p-datepicker-other-month":n,"p-datepicker-today":t}};function m7(n,t){if(1&n&&(b(0,"td",47),S(1,p7,4,9,"ng-container",13),w()),2&n){const e=t.$implicit,i=_(6);m("ngClass",He(2,g7,e.otherMonth,e.today)),v(1),m("ngIf",!e.otherMonth||i.showOtherMonths)}}function _7(n,t){if(1&n&&(b(0,"tr"),S(1,d7,3,1,"td",43),S(2,m7,2,5,"td",44),w()),2&n){const e=t.$implicit,i=_(5);v(1),m("ngIf",i.showWeek),v(1),m("ngForOf",e)}}function y7(n,t){if(1&n&&(b(0,"div",36)(1,"table",37)(2,"thead")(3,"tr"),S(4,c7,3,1,"th",38),S(5,u7,3,1,"th",39),w()(),b(6,"tbody"),S(7,_7,3,2,"tr",40),w()()()),2&n){const e=_().$implicit,i=_(3);v(4),m("ngIf",i.showWeek),v(1),m("ngForOf",i.weekDays),v(2),m("ngForOf",e.dates)}}function v7(n,t){if(1&n){const e=Q();b(0,"div",20)(1,"div",21),S(2,n7,2,0,"button",22),b(3,"div",23),S(4,r7,2,2,"button",24),S(5,s7,2,2,"button",25),S(6,l7,3,5,"span",26),w(),b(7,"button",27),R("keydown",function(r){return T(e),I(_(3).onContainerButtonKeydown(r))})("click",function(r){return T(e),I(_(3).onNextButtonClick(r))}),F(8,"span",28),w()(),S(9,y7,8,3,"div",29),w()}if(2&n){const e=t.index,i=_(3);v(2),m("ngIf",0===e),v(2),m("ngIf","date"===i.currentView),v(1),m("ngIf","year"!==i.currentView),v(1),m("ngIf","year"===i.currentView),v(1),fr("display",1===i.numberOfMonths||e===i.numberOfMonths-1?"inline-flex":"none"),v(2),m("ngIf","date"===i.currentView)}}function b7(n,t){if(1&n){const e=Q();b(0,"span",51),R("click",function(r){const o=T(e).index;return I(_(4).onMonthSelect(r,o))})("keydown",function(r){const o=T(e).index;return I(_(4).onMonthCellKeydown(r,o))}),O(1),w()}if(2&n){const e=t.$implicit,i=t.index,r=_(4);m("ngClass",He(2,mI,r.isMonthSelected(i),r.isMonthDisabled(i))),v(1),Le(" ",e," ")}}function w7(n,t){if(1&n&&(b(0,"div",49),S(1,b7,2,5,"span",50),w()),2&n){const e=_(3);v(1),m("ngForOf",e.monthPickerValues())}}const C7=function(n){return{"p-highlight":n}};function S7(n,t){if(1&n){const e=Q();b(0,"span",54),R("click",function(r){const o=T(e).$implicit;return I(_(4).onYearSelect(r,o))})("keydown",function(r){const o=T(e).$implicit;return I(_(4).onYearCellKeydown(r,o))}),O(1),w()}if(2&n){const e=t.$implicit,i=_(4);m("ngClass",oe(2,C7,i.isYearSelected(e))),v(1),Le(" ",e," ")}}function D7(n,t){if(1&n&&(b(0,"div",52),S(1,S7,2,4,"span",53),w()),2&n){const e=_(3);v(1),m("ngForOf",e.yearPickerValues())}}function x7(n,t){if(1&n&&(pe(0),b(1,"div",16),S(2,v7,10,7,"div",17),w(),S(3,w7,2,1,"div",18),S(4,D7,2,1,"div",19),ge()),2&n){const e=_(2);v(2),m("ngForOf",e.months),v(1),m("ngIf","month"===e.currentView),v(1),m("ngIf","year"===e.currentView)}}function E7(n,t){1&n&&(pe(0),O(1,"0"),ge())}function T7(n,t){1&n&&(pe(0),O(1,"0"),ge())}function I7(n,t){if(1&n&&(b(0,"div",60)(1,"span"),O(2),w()()),2&n){const e=_(3);v(2),ne(e.timeSeparator)}}function M7(n,t){1&n&&(pe(0),O(1,"0"),ge())}function k7(n,t){if(1&n){const e=Q();b(0,"div",65)(1,"button",57),R("keydown",function(r){return T(e),I(_(3).onContainerButtonKeydown(r))})("keydown.enter",function(r){return T(e),I(_(3).incrementSecond(r))})("keydown.space",function(r){return T(e),I(_(3).incrementSecond(r))})("mousedown",function(r){return T(e),I(_(3).onTimePickerElementMouseDown(r,2,1))})("mouseup",function(r){return T(e),I(_(3).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return T(e),I(_(3).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return T(e),I(_(3).onTimePickerElementMouseUp(r))})("mouseleave",function(){return T(e),I(_(3).onTimePickerElementMouseLeave())}),F(2,"span",58),w(),b(3,"span"),S(4,M7,2,0,"ng-container",13),O(5),w(),b(6,"button",57),R("keydown",function(r){return T(e),I(_(3).onContainerButtonKeydown(r))})("keydown.enter",function(r){return T(e),I(_(3).decrementSecond(r))})("keydown.space",function(r){return T(e),I(_(3).decrementSecond(r))})("mousedown",function(r){return T(e),I(_(3).onTimePickerElementMouseDown(r,2,-1))})("mouseup",function(r){return T(e),I(_(3).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return T(e),I(_(3).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return T(e),I(_(3).onTimePickerElementMouseUp(r))})("mouseleave",function(){return T(e),I(_(3).onTimePickerElementMouseLeave())}),F(7,"span",59),w()()}if(2&n){const e=_(3);v(4),m("ngIf",e.currentSecond<10),v(1),ne(e.currentSecond)}}function A7(n,t){if(1&n){const e=Q();b(0,"div",66)(1,"button",67),R("keydown",function(r){return T(e),I(_(3).onContainerButtonKeydown(r))})("click",function(r){return T(e),I(_(3).toggleAMPM(r))})("keydown.enter",function(r){return T(e),I(_(3).toggleAMPM(r))}),F(2,"span",58),w(),b(3,"span"),O(4),w(),b(5,"button",67),R("keydown",function(r){return T(e),I(_(3).onContainerButtonKeydown(r))})("click",function(r){return T(e),I(_(3).toggleAMPM(r))})("keydown.enter",function(r){return T(e),I(_(3).toggleAMPM(r))}),F(6,"span",59),w()()}if(2&n){const e=_(3);v(4),ne(e.pm?"PM":"AM")}}function O7(n,t){if(1&n){const e=Q();b(0,"div",55)(1,"div",56)(2,"button",57),R("keydown",function(r){return T(e),I(_(2).onContainerButtonKeydown(r))})("keydown.enter",function(r){return T(e),I(_(2).incrementHour(r))})("keydown.space",function(r){return T(e),I(_(2).incrementHour(r))})("mousedown",function(r){return T(e),I(_(2).onTimePickerElementMouseDown(r,0,1))})("mouseup",function(r){return T(e),I(_(2).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return T(e),I(_(2).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return T(e),I(_(2).onTimePickerElementMouseUp(r))})("mouseleave",function(){return T(e),I(_(2).onTimePickerElementMouseLeave())}),F(3,"span",58),w(),b(4,"span"),S(5,E7,2,0,"ng-container",13),O(6),w(),b(7,"button",57),R("keydown",function(r){return T(e),I(_(2).onContainerButtonKeydown(r))})("keydown.enter",function(r){return T(e),I(_(2).decrementHour(r))})("keydown.space",function(r){return T(e),I(_(2).decrementHour(r))})("mousedown",function(r){return T(e),I(_(2).onTimePickerElementMouseDown(r,0,-1))})("mouseup",function(r){return T(e),I(_(2).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return T(e),I(_(2).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return T(e),I(_(2).onTimePickerElementMouseUp(r))})("mouseleave",function(){return T(e),I(_(2).onTimePickerElementMouseLeave())}),F(8,"span",59),w()(),b(9,"div",60)(10,"span"),O(11),w()(),b(12,"div",61)(13,"button",57),R("keydown",function(r){return T(e),I(_(2).onContainerButtonKeydown(r))})("keydown.enter",function(r){return T(e),I(_(2).incrementMinute(r))})("keydown.space",function(r){return T(e),I(_(2).incrementMinute(r))})("mousedown",function(r){return T(e),I(_(2).onTimePickerElementMouseDown(r,1,1))})("mouseup",function(r){return T(e),I(_(2).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return T(e),I(_(2).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return T(e),I(_(2).onTimePickerElementMouseUp(r))})("mouseleave",function(){return T(e),I(_(2).onTimePickerElementMouseLeave())}),F(14,"span",58),w(),b(15,"span"),S(16,T7,2,0,"ng-container",13),O(17),w(),b(18,"button",57),R("keydown",function(r){return T(e),I(_(2).onContainerButtonKeydown(r))})("keydown.enter",function(r){return T(e),I(_(2).decrementMinute(r))})("keydown.space",function(r){return T(e),I(_(2).decrementMinute(r))})("mousedown",function(r){return T(e),I(_(2).onTimePickerElementMouseDown(r,1,-1))})("mouseup",function(r){return T(e),I(_(2).onTimePickerElementMouseUp(r))})("keyup.enter",function(r){return T(e),I(_(2).onTimePickerElementMouseUp(r))})("keyup.space",function(r){return T(e),I(_(2).onTimePickerElementMouseUp(r))})("mouseleave",function(){return T(e),I(_(2).onTimePickerElementMouseLeave())}),F(19,"span",59),w()(),S(20,I7,3,1,"div",62),S(21,k7,8,2,"div",63),S(22,A7,7,1,"div",64),w()}if(2&n){const e=_(2);v(5),m("ngIf",e.currentHour<10),v(1),ne(e.currentHour),v(5),ne(e.timeSeparator),v(5),m("ngIf",e.currentMinute<10),v(1),ne(e.currentMinute),v(3),m("ngIf",e.showSeconds),v(1),m("ngIf",e.showSeconds),v(1),m("ngIf","12"==e.hourFormat)}}const _I=function(n){return[n]};function P7(n,t){if(1&n){const e=Q();b(0,"div",68)(1,"button",69),R("keydown",function(r){return T(e),I(_(2).onContainerButtonKeydown(r))})("click",function(r){return T(e),I(_(2).onTodayButtonClick(r))}),w(),b(2,"button",69),R("keydown",function(r){return T(e),I(_(2).onContainerButtonKeydown(r))})("click",function(r){return T(e),I(_(2).onClearButtonClick(r))}),w()()}if(2&n){const e=_(2);v(1),m("label",e.getTranslation("today"))("ngClass",oe(4,_I,e.todayButtonStyleClass)),v(1),m("label",e.getTranslation("clear"))("ngClass",oe(6,_I,e.clearButtonStyleClass))}}function R7(n,t){1&n&&Y(0)}const F7=function(n,t,e,i,r,s){return{"p-datepicker p-component":!0,"p-datepicker-inline":n,"p-disabled":t,"p-datepicker-timeonly":e,"p-datepicker-multiple-month":i,"p-datepicker-monthpicker":r,"p-datepicker-touch-ui":s}},yI=function(n,t){return{showTransitionParams:n,hideTransitionParams:t}},L7=function(n){return{value:"visibleTouchUI",params:n}},N7=function(n){return{value:"visible",params:n}};function V7(n,t){if(1&n){const e=Q();b(0,"div",10,11),R("@overlayAnimation.start",function(r){return T(e),I(_().onOverlayAnimationStart(r))})("@overlayAnimation.done",function(r){return T(e),I(_().onOverlayAnimationDone(r))})("click",function(r){return T(e),I(_().onOverlayClick(r))}),gn(2),S(3,t7,1,0,"ng-container",12),S(4,x7,5,3,"ng-container",13),S(5,O7,23,8,"div",14),S(6,P7,3,8,"div",15),gn(7,1),S(8,R7,1,0,"ng-container",12),w()}if(2&n){const e=_();fe(e.panelStyleClass),m("ngStyle",e.panelStyle)("ngClass",Xo(11,F7,e.inline,e.disabled,e.timeOnly,e.numberOfMonths>1,"month"===e.view,e.touchUI))("@overlayAnimation",e.touchUI?oe(21,L7,He(18,yI,e.showTransitionOptions,e.hideTransitionOptions)):oe(26,N7,He(23,yI,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline),v(3),m("ngTemplateOutlet",e.headerTemplate),v(1),m("ngIf",!e.timeOnly),v(1),m("ngIf",(e.showTime||e.timeOnly)&&"date"===e.currentView),v(1),m("ngIf",e.showButtonBar),v(2),m("ngTemplateOutlet",e.footerTemplate)}}const B7=[[["p-header"]],[["p-footer"]]],H7=function(n,t,e,i){return{"p-calendar":!0,"p-calendar-w-btn":n,"p-calendar-timeonly":t,"p-calendar-disabled":e,"p-focus":i}},z7=["p-header","p-footer"],j7={provide:Gt,useExisting:Fe(()=>$7),multi:!0};let $7=(()=>{class n{constructor(e,i,r,s,o,a){this.el=e,this.renderer=i,this.cd=r,this.zone=s,this.config=o,this.overlayService=a,this.multipleSeparator=",",this.rangeSeparator="-",this.inline=!1,this.showOtherMonths=!0,this.icon="pi pi-calendar",this.shortYearCutoff="+10",this.hourFormat="24",this.stepHour=1,this.stepMinute=1,this.stepSecond=1,this.showSeconds=!1,this.showOnFocus=!0,this.showWeek=!1,this.showClear=!1,this.dataType="date",this.selectionMode="single",this.todayButtonStyleClass="p-button-text",this.clearButtonStyleClass="p-button-text",this.autoZIndex=!0,this.baseZIndex=0,this.keepInvalid=!1,this.hideOnDateTimeSelect=!0,this.timeSeparator=":",this.focusTrap=!0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onFocus=new N,this.onBlur=new N,this.onClose=new N,this.onSelect=new N,this.onClear=new N,this.onInput=new N,this.onTodayClick=new N,this.onClearClick=new N,this.onMonthChange=new N,this.onYearChange=new N,this.onClickOutside=new N,this.onShow=new N,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.inputFieldValue=null,this.navigationState=null,this._numberOfMonths=1,this._view="date",this.convertTo24Hour=function(l,c){return"12"==this.hourFormat?12===l?c?12:0:c?l+12:l:l}}set content(e){this.contentViewChild=e,this.contentViewChild&&(this.isMonthNavigate?(Promise.resolve(null).then(()=>this.updateFocus()),this.isMonthNavigate=!1):this.focus||this.initFocusableCell())}get view(){return this._view}set view(e){this._view=e,this.currentView=this._view}get defaultDate(){return this._defaultDate}set defaultDate(e){if(this._defaultDate=e,this.initialized){const i=e||new Date;this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.initTime(i),this.createMonths(this.currentMonth,this.currentYear)}}get minDate(){return this._minDate}set minDate(e){this._minDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDates(){return this._disabledDates}set disabledDates(e){this._disabledDates=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get disabledDays(){return this._disabledDays}set disabledDays(e){this._disabledDays=e,null!=this.currentMonth&&null!=this.currentMonth&&this.currentYear&&this.createMonths(this.currentMonth,this.currentYear)}get yearRange(){return this._yearRange}set yearRange(e){if(this._yearRange=e,e){const i=e.split(":"),r=parseInt(i[0]),s=parseInt(i[1]);this.populateYearOptions(r,s)}}get showTime(){return this._showTime}set showTime(e){this._showTime=e,void 0===this.currentHour&&this.initTime(this.value||new Date),this.updateInputfield()}get locale(){return this._locale}get responsiveOptions(){return this._responsiveOptions}set responsiveOptions(e){this._responsiveOptions=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get numberOfMonths(){return this._numberOfMonths}set numberOfMonths(e){this._numberOfMonths=e,this.destroyResponsiveStyleElement(),this.createResponsiveStyle()}get firstDayOfWeek(){return this._firstDayOfWeek}set firstDayOfWeek(e){this._firstDayOfWeek=e,this.createWeekDays()}set locale(e){console.warn("Locale property has no effect, use new i18n API instead.")}ngOnInit(){this.attributeSelector=y_();const e=this.defaultDate||new Date;this.createResponsiveStyle(),this.currentMonth=e.getMonth(),this.currentYear=e.getFullYear(),this.currentView=this.view,"date"===this.view&&(this.createWeekDays(),this.initTime(e),this.createMonths(this.currentMonth,this.currentYear),this.ticksTo1970=24*(718685+Math.floor(492.5)-Math.floor(19.7)+Math.floor(4.925))*60*60*1e7),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.createWeekDays(),this.cd.markForCheck()}),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"date":default:this.dateTemplate=e.template;break;case"decade":this.decadeTemplate=e.template;break;case"disabledDate":this.disabledDateTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterViewInit(){this.inline&&(this.contentViewChild&&this.contentViewChild.nativeElement.setAttribute(this.attributeSelector,""),this.disabled||(this.initFocusableCell(),1===this.numberOfMonths&&(this.contentViewChild.nativeElement.style.width=A.getOuterWidth(this.containerViewChild.nativeElement)+"px")))}getTranslation(e){return this.config.getTranslation(e)}populateYearOptions(e,i){this.yearOptions=[];for(let r=e;r<=i;r++)this.yearOptions.push(r)}createWeekDays(){this.weekDays=[];let e=this.getFirstDateOfWeek(),i=this.getTranslation(vn.DAY_NAMES_MIN);for(let r=0;r<7;r++)this.weekDays.push(i[e]),e=6==e?0:++e}monthPickerValues(){let e=[];for(let i=0;i<=11;i++)e.push(this.config.getTranslation("monthNamesShort")[i]);return e}yearPickerValues(){let e=[],i=this.currentYear-this.currentYear%10;for(let r=0;r<10;r++)e.push(i+r);return e}createMonths(e,i){this.months=this.months=[];for(let r=0;r<this.numberOfMonths;r++){let s=e+r,o=i;s>11&&(s=s%11-1,o=i+1),this.months.push(this.createMonth(s,o))}}getWeekNumber(e){let i=new Date(e.getTime());i.setDate(i.getDate()+4-(i.getDay()||7));let r=i.getTime();return i.setMonth(0),i.setDate(1),Math.floor(Math.round((r-i.getTime())/864e5)/7)+1}createMonth(e,i){let r=[],s=this.getFirstDayOfMonthIndex(e,i),o=this.getDaysCountInMonth(e,i),a=this.getDaysCountInPrevMonth(e,i),l=1,c=new Date,u=[],d=Math.ceil((o+s)/7);for(let h=0;h<d;h++){let f=[];if(0==h){for(let g=a-s+1;g<=a;g++){let y=this.getPreviousMonthAndYear(e,i);f.push({day:g,month:y.month,year:y.year,otherMonth:!0,today:this.isToday(c,g,y.month,y.year),selectable:this.isSelectable(g,y.month,y.year,!0)})}let p=7-f.length;for(let g=0;g<p;g++)f.push({day:l,month:e,year:i,today:this.isToday(c,l,e,i),selectable:this.isSelectable(l,e,i,!1)}),l++}else for(let p=0;p<7;p++){if(l>o){let g=this.getNextMonthAndYear(e,i);f.push({day:l-o,month:g.month,year:g.year,otherMonth:!0,today:this.isToday(c,l-o,g.month,g.year),selectable:this.isSelectable(l-o,g.month,g.year,!0)})}else f.push({day:l,month:e,year:i,today:this.isToday(c,l,e,i),selectable:this.isSelectable(l,e,i,!1)});l++}this.showWeek&&u.push(this.getWeekNumber(new Date(f[0].year,f[0].month,f[0].day))),r.push(f)}return{month:e,year:i,dates:r,weekNumbers:u}}initTime(e){this.pm=e.getHours()>11,this.showTime?(this.currentMinute=e.getMinutes(),this.currentSecond=e.getSeconds(),this.setCurrentHourPM(e.getHours())):this.timeOnly&&(this.currentMinute=0,this.currentHour=0,this.currentSecond=0)}navBackward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.decrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.decrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(0===this.currentMonth?(this.currentMonth=11,this.decrementYear()):this.currentMonth--,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}navForward(e){this.disabled?e.preventDefault():(this.isMonthNavigate=!0,"month"===this.currentView?(this.incrementYear(),setTimeout(()=>{this.updateFocus()},1)):"year"===this.currentView?(this.incrementDecade(),setTimeout(()=>{this.updateFocus()},1)):(11===this.currentMonth?(this.currentMonth=0,this.incrementYear()):this.currentMonth++,this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)))}decrementYear(){if(this.currentYear--,this.yearNavigator&&this.currentYear<this.yearOptions[0]){let e=this.yearOptions[this.yearOptions.length-1]-this.yearOptions[0];this.populateYearOptions(this.yearOptions[0]-e,this.yearOptions[this.yearOptions.length-1]-e)}}decrementDecade(){this.currentYear=this.currentYear-10}incrementDecade(){this.currentYear=this.currentYear+10}incrementYear(){if(this.currentYear++,this.yearNavigator&&this.currentYear>this.yearOptions[this.yearOptions.length-1]){let e=this.yearOptions[this.yearOptions.length-1]-this.yearOptions[0];this.populateYearOptions(this.yearOptions[0]+e,this.yearOptions[this.yearOptions.length-1]+e)}}switchToMonthView(e){this.setCurrentView("month"),e.preventDefault()}switchToYearView(e){this.setCurrentView("year"),e.preventDefault()}onDateSelect(e,i){!this.disabled&&i.selectable?(this.isMultipleSelection()&&this.isSelected(i)?(this.value=this.value.filter((r,s)=>!this.isDateEquals(r,i)),0===this.value.length&&(this.value=null),this.updateModel(this.value)):this.shouldSelectDate(i)&&this.selectDate(i),this.isSingleSelection()&&this.hideOnDateTimeSelect&&setTimeout(()=>{e.preventDefault(),this.hideOverlay(),this.mask&&this.disableModality(),this.cd.markForCheck()},150),this.updateInputfield(),e.preventDefault()):e.preventDefault()}shouldSelectDate(e){return!this.isMultipleSelection()||null==this.maxDateCount||this.maxDateCount>(this.value?this.value.length:0)}onMonthSelect(e,i){"month"===this.view?this.onDateSelect(e,{year:this.currentYear,month:i,day:1,selectable:!0}):(this.currentMonth=i,this.createMonths(this.currentMonth,this.currentYear),this.setCurrentView("date"),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}))}onYearSelect(e,i){"year"===this.view?this.onDateSelect(e,{year:i,month:0,day:1,selectable:!0}):(this.currentYear=i,this.setCurrentView("month"),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}))}updateInputfield(){let e="";if(this.value)if(this.isSingleSelection())e=this.formatDateTime(this.value);else if(this.isMultipleSelection())for(let i=0;i<this.value.length;i++)e+=this.formatDateTime(this.value[i]),i!==this.value.length-1&&(e+=this.multipleSeparator+" ");else if(this.isRangeSelection()&&this.value&&this.value.length){let r=this.value[1];e=this.formatDateTime(this.value[0]),r&&(e+=" "+this.rangeSeparator+" "+this.formatDateTime(r))}this.inputFieldValue=e,this.updateFilledState(),this.inputfieldViewChild&&this.inputfieldViewChild.nativeElement&&(this.inputfieldViewChild.nativeElement.value=this.inputFieldValue)}formatDateTime(e){let i=this.keepInvalid?e:null;return this.isValidDate(e)&&(this.timeOnly?i=this.formatTime(e):(i=this.formatDate(e,this.getDateFormat()),this.showTime&&(i+=" "+this.formatTime(e)))),i}setCurrentHourPM(e){"12"==this.hourFormat?(this.pm=e>11,this.currentHour=e>=12?12==e?12:e-12:0==e?12:e):this.currentHour=e}setCurrentView(e){this.currentView=e,this.cd.detectChanges(),this.alignOverlay()}selectDate(e){let i=new Date(e.year,e.month,e.day);if(this.showTime&&(i.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),i.setMinutes(this.currentMinute),i.setSeconds(this.currentSecond)),this.minDate&&this.minDate>i&&(i=this.minDate,this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds()),this.maxDate&&this.maxDate<i&&(i=this.maxDate,this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds()),this.isSingleSelection())this.updateModel(i);else if(this.isMultipleSelection())this.updateModel(this.value?[...this.value,i]:[i]);else if(this.isRangeSelection())if(this.value&&this.value.length){let r=this.value[0],s=this.value[1];!s&&i.getTime()>=r.getTime()?s=i:(r=i,s=null),this.updateModel([r,s])}else this.updateModel([i,null]);this.onSelect.emit(i)}updateModel(e){if(this.value=e,"date"==this.dataType)this.onModelChange(this.value);else if("string"==this.dataType)if(this.isSingleSelection())this.onModelChange(this.formatDateTime(this.value));else{let i=null;this.value&&(i=this.value.map(r=>this.formatDateTime(r))),this.onModelChange(i)}}getFirstDayOfMonthIndex(e,i){let r=new Date;r.setDate(1),r.setMonth(e),r.setFullYear(i);let s=r.getDay()+this.getSundayIndex();return s>=7?s-7:s}getDaysCountInMonth(e,i){return 32-this.daylightSavingAdjust(new Date(i,e,32)).getDate()}getDaysCountInPrevMonth(e,i){let r=this.getPreviousMonthAndYear(e,i);return this.getDaysCountInMonth(r.month,r.year)}getPreviousMonthAndYear(e,i){let r,s;return 0===e?(r=11,s=i-1):(r=e-1,s=i),{month:r,year:s}}getNextMonthAndYear(e,i){let r,s;return 11===e?(r=0,s=i+1):(r=e+1,s=i),{month:r,year:s}}getSundayIndex(){let e=this.getFirstDateOfWeek();return e>0?7-e:0}isSelected(e){if(!this.value)return!1;if(this.isSingleSelection())return this.isDateEquals(this.value,e);if(this.isMultipleSelection()){let i=!1;for(let r of this.value)if(i=this.isDateEquals(r,e),i)break;return i}return this.isRangeSelection()?this.value[1]?this.isDateEquals(this.value[0],e)||this.isDateEquals(this.value[1],e)||this.isDateBetween(this.value[0],this.value[1],e):this.isDateEquals(this.value[0],e):void 0}isComparable(){return null!=this.value&&"string"!=typeof this.value}isMonthSelected(e){if(this.isComparable()&&!this.isMultipleSelection()){const[i,r]=this.isRangeSelection()?this.value:[this.value,this.value],s=new Date(this.currentYear,e,1);return s>=i&&s<=(r??i)}return!1}isMonthDisabled(e){return!this.isSelectable(1,e,this.currentYear,!1)}isYearSelected(e){if(this.isComparable()){let i=this.isRangeSelection()?this.value[0]:this.value;return!this.isMultipleSelection()&&i.getFullYear()===e}return!1}isDateEquals(e,i){return!!(e&&e instanceof Date)&&e.getDate()===i.day&&e.getMonth()===i.month&&e.getFullYear()===i.year}isDateBetween(e,i,r){if(e&&i){let o=new Date(r.year,r.month,r.day);return e.getTime()<=o.getTime()&&i.getTime()>=o.getTime()}return!1}isSingleSelection(){return"single"===this.selectionMode}isRangeSelection(){return"range"===this.selectionMode}isMultipleSelection(){return"multiple"===this.selectionMode}isToday(e,i,r,s){return e.getDate()===i&&e.getMonth()===r&&e.getFullYear()===s}isSelectable(e,i,r,s){let o=!0,a=!0,l=!0,c=!0;return!(s&&!this.selectOtherMonths)&&(this.minDate&&(this.minDate.getFullYear()>r||this.minDate.getFullYear()===r&&(this.minDate.getMonth()>i||this.minDate.getMonth()===i&&this.minDate.getDate()>e))&&(o=!1),this.maxDate&&(this.maxDate.getFullYear()<r||this.maxDate.getFullYear()===r&&(this.maxDate.getMonth()<i||this.maxDate.getMonth()===i&&this.maxDate.getDate()<e))&&(a=!1),this.disabledDates&&(l=!this.isDateDisabled(e,i,r)),this.disabledDays&&(c=!this.isDayDisabled(e,i,r)),o&&a&&l&&c)}isDateDisabled(e,i,r){if(this.disabledDates)for(let s of this.disabledDates)if(s.getFullYear()===r&&s.getMonth()===i&&s.getDate()===e)return!0;return!1}isDayDisabled(e,i,r){if(this.disabledDays){let o=new Date(r,i,e).getDay();return-1!==this.disabledDays.indexOf(o)}return!1}onInputFocus(e){this.focus=!0,this.showOnFocus&&this.showOverlay(),this.onFocus.emit(e)}onInputClick(){this.showOnFocus&&!this.overlayVisible&&this.showOverlay()}onInputBlur(e){this.focus=!1,this.onBlur.emit(e),this.keepInvalid||this.updateInputfield(),this.onModelTouched()}onButtonClick(e,i){this.overlayVisible?this.hideOverlay():(i.focus(),this.showOverlay())}clear(){this.inputFieldValue=null,this.value=null,this.onModelChange(this.value),this.onClear.emit()}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement})}getMonthName(e){return this.config.getTranslation("monthNames")[e]}getYear(e){return"month"===this.currentView?this.currentYear:e.year}switchViewButtonDisabled(){return this.numberOfMonths>1||this.disabled}onPrevButtonClick(e){this.navigationState={backward:!0,button:!0},this.navBackward(e)}onNextButtonClick(e){this.navigationState={backward:!1,button:!0},this.navForward(e)}onContainerButtonKeydown(e){switch(e.which){case 9:this.inline||this.trapFocus(e);break;case 27:this.overlayVisible=!1,e.preventDefault()}}onInputKeydown(e){this.isKeydown=!0,40===e.keyCode&&this.contentViewChild?this.trapFocus(e):27===e.keyCode||13===e.keyCode?this.overlayVisible&&(this.overlayVisible=!1,e.preventDefault()):9===e.keyCode&&this.contentViewChild&&(A.getFocusableElements(this.contentViewChild.nativeElement).forEach(i=>i.tabIndex="-1"),this.overlayVisible&&(this.overlayVisible=!1))}onDateCellKeydown(e,i,r){const s=e.currentTarget,o=s.parentElement;switch(e.which){case 40:{s.tabIndex="-1";let a=A.index(o),l=o.parentElement.nextElementSibling;l?A.hasClass(l.children[a].children[0],"p-disabled")?(this.navigationState={backward:!1},this.navForward(e)):(l.children[a].children[0].tabIndex="0",l.children[a].children[0].focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 38:{s.tabIndex="-1";let a=A.index(o),l=o.parentElement.previousElementSibling;if(l){let c=l.children[a].children[0];A.hasClass(c,"p-disabled")?(this.navigationState={backward:!0},this.navBackward(e)):(c.tabIndex="0",c.focus())}else this.navigationState={backward:!0},this.navBackward(e);e.preventDefault();break}case 37:{s.tabIndex="-1";let a=o.previousElementSibling;if(a){let l=a.children[0];A.hasClass(l,"p-disabled")||A.hasClass(l.parentElement,"p-datepicker-weeknumber")?this.navigateToMonth(!0,r):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!0,r);e.preventDefault();break}case 39:{s.tabIndex="-1";let a=o.nextElementSibling;if(a){let l=a.children[0];A.hasClass(l,"p-disabled")?this.navigateToMonth(!1,r):(l.tabIndex="0",l.focus())}else this.navigateToMonth(!1,r);e.preventDefault();break}case 13:case 32:this.onDateSelect(e,i),e.preventDefault();break;case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onMonthCellKeydown(e,i){const r=e.currentTarget;switch(e.which){case 38:case 40:{r.tabIndex="-1";var s=r.parentElement.children,o=A.index(r);let a=s[40===e.which?o+3:o-3];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{r.tabIndex="-1";let a=r.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{r.tabIndex="-1";let a=r.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:this.onMonthSelect(e,i),e.preventDefault();break;case 13:case 32:case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.inline||this.trapFocus(e)}}onYearCellKeydown(e,i){const r=e.currentTarget;switch(e.which){case 38:case 40:{r.tabIndex="-1";var s=r.parentElement.children,o=A.index(r);let a=s[40===e.which?o+2:o-2];a&&(a.tabIndex="0",a.focus()),e.preventDefault();break}case 37:{r.tabIndex="-1";let a=r.previousElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!0},this.navBackward(e)),e.preventDefault();break}case 39:{r.tabIndex="-1";let a=r.nextElementSibling;a?(a.tabIndex="0",a.focus()):(this.navigationState={backward:!1},this.navForward(e)),e.preventDefault();break}case 13:case 32:this.onYearSelect(e,i),e.preventDefault();break;case 27:this.overlayVisible=!1,e.preventDefault();break;case 9:this.trapFocus(e)}}navigateToMonth(e,i){if(e)if(1===this.numberOfMonths||0===i)this.navigationState={backward:!0},this.navBackward(event);else{let s=A.find(this.contentViewChild.nativeElement.children[i-1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),o=s[s.length-1];o.tabIndex="0",o.focus()}else if(1===this.numberOfMonths||i===this.numberOfMonths-1)this.navigationState={backward:!1},this.navForward(event);else{let s=A.findSingle(this.contentViewChild.nativeElement.children[i+1],".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");s.tabIndex="0",s.focus()}}updateFocus(){let e;if(this.navigationState){if(this.navigationState.button)this.initFocusableCell(),this.navigationState.backward?A.findSingle(this.contentViewChild.nativeElement,".p-datepicker-prev").focus():A.findSingle(this.contentViewChild.nativeElement,".p-datepicker-next").focus();else{if(this.navigationState.backward){let i;i=A.find(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)"),i&&i.length>0&&(e=i[i.length-1])}else e=A.findSingle(this.contentViewChild.nativeElement,"month"===this.currentView?".p-monthpicker .p-monthpicker-month:not(.p-disabled)":"year"===this.currentView?".p-yearpicker .p-yearpicker-year:not(.p-disabled)":".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)");e&&(e.tabIndex="0",e.focus())}this.navigationState=null}else this.initFocusableCell()}initFocusableCell(){const e=this.contentViewChild?.nativeElement;let i;if("month"===this.currentView){let r=A.find(e,".p-monthpicker .p-monthpicker-month:not(.p-disabled)"),s=A.findSingle(e,".p-monthpicker .p-monthpicker-month.p-highlight");r.forEach(o=>o.tabIndex=-1),i=s||r[0],0===r.length&&A.find(e,'.p-monthpicker .p-monthpicker-month.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if("year"===this.currentView){let r=A.find(e,".p-yearpicker .p-yearpicker-year:not(.p-disabled)"),s=A.findSingle(e,".p-yearpicker .p-yearpicker-year.p-highlight");r.forEach(o=>o.tabIndex=-1),i=s||r[0],0===r.length&&A.find(e,'.p-yearpicker .p-yearpicker-year.p-disabled[tabindex = "0"]').forEach(a=>a.tabIndex=-1)}else if(i=A.findSingle(e,"span.p-highlight"),!i){let r=A.findSingle(e,"td.p-datepicker-today span:not(.p-disabled):not(.p-ink)");i=r||A.findSingle(e,".p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)")}i&&(i.tabIndex="0",!this.preventFocus&&(!this.navigationState||!this.navigationState.button)&&setTimeout(()=>{i.focus()},1),this.preventFocus=!1)}trapFocus(e){let i=A.getFocusableElements(this.contentViewChild.nativeElement);if(i&&i.length>0)if(i[0].ownerDocument.activeElement){let r=i.indexOf(i[0].ownerDocument.activeElement);if(e.shiftKey)if(-1==r||0===r)if(this.focusTrap)i[i.length-1].focus();else{if(-1===r)return this.hideOverlay();if(0===r)return}else i[r-1].focus();else if(-1==r||r===i.length-1){if(!this.focusTrap&&-1!=r)return this.hideOverlay();i[0].focus()}else i[r+1].focus()}else i[0].focus();e.preventDefault()}onMonthDropdownChange(e){this.currentMonth=parseInt(e),this.onMonthChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}onYearDropdownChange(e){this.currentYear=parseInt(e),this.onYearChange.emit({month:this.currentMonth+1,year:this.currentYear}),this.createMonths(this.currentMonth,this.currentYear)}validateTime(e,i,r,s){let o=this.value;const a=this.convertTo24Hour(e,s);this.isRangeSelection()&&(o=this.value[1]||this.value[0]),this.isMultipleSelection()&&(o=this.value[this.value.length-1]);const l=o?o.toDateString():null;return!(this.minDate&&l&&this.minDate.toDateString()===l&&(this.minDate.getHours()>a||this.minDate.getHours()===a&&(this.minDate.getMinutes()>i||this.minDate.getMinutes()===i&&this.minDate.getSeconds()>r))||this.maxDate&&l&&this.maxDate.toDateString()===l&&(this.maxDate.getHours()<a||this.maxDate.getHours()===a&&(this.maxDate.getMinutes()<i||this.maxDate.getMinutes()===i&&this.maxDate.getSeconds()<r)))}incrementHour(e){let r=this.currentHour+this.stepHour,s=this.pm;"24"==this.hourFormat?r=r>=24?r-24:r:"12"==this.hourFormat&&(this.currentHour<12&&r>11&&(s=!this.pm),r=r>=13?r-12:r),this.validateTime(r,this.currentMinute,this.currentSecond,s)&&(this.currentHour=r,this.pm=s),e.preventDefault()}onTimePickerElementMouseDown(e,i,r){this.disabled||(this.repeat(e,null,i,r),e.preventDefault())}onTimePickerElementMouseUp(e){this.disabled||(this.clearTimePickerTimer(),this.updateTime())}onTimePickerElementMouseLeave(){!this.disabled&&this.timePickerTimer&&(this.clearTimePickerTimer(),this.updateTime())}repeat(e,i,r,s){let o=i||500;switch(this.clearTimePickerTimer(),this.timePickerTimer=setTimeout(()=>{this.repeat(e,100,r,s),this.cd.markForCheck()},o),r){case 0:1===s?this.incrementHour(e):this.decrementHour(e);break;case 1:1===s?this.incrementMinute(e):this.decrementMinute(e);break;case 2:1===s?this.incrementSecond(e):this.decrementSecond(e)}this.updateInputfield()}clearTimePickerTimer(){this.timePickerTimer&&(clearTimeout(this.timePickerTimer),this.timePickerTimer=null)}decrementHour(e){let i=this.currentHour-this.stepHour,r=this.pm;"24"==this.hourFormat?i=i<0?24+i:i:"12"==this.hourFormat&&(12===this.currentHour&&(r=!this.pm),i=i<=0?12+i:i),this.validateTime(i,this.currentMinute,this.currentSecond,r)&&(this.currentHour=i,this.pm=r),e.preventDefault()}incrementMinute(e){let i=this.currentMinute+this.stepMinute;i=i>59?i-60:i,this.validateTime(this.currentHour,i,this.currentSecond,this.pm)&&(this.currentMinute=i),e.preventDefault()}decrementMinute(e){let i=this.currentMinute-this.stepMinute;i=i<0?60+i:i,this.validateTime(this.currentHour,i,this.currentSecond,this.pm)&&(this.currentMinute=i),e.preventDefault()}incrementSecond(e){let i=this.currentSecond+this.stepSecond;i=i>59?i-60:i,this.validateTime(this.currentHour,this.currentMinute,i,this.pm)&&(this.currentSecond=i),e.preventDefault()}decrementSecond(e){let i=this.currentSecond-this.stepSecond;i=i<0?60+i:i,this.validateTime(this.currentHour,this.currentMinute,i,this.pm)&&(this.currentSecond=i),e.preventDefault()}updateTime(){let e=this.value;this.isRangeSelection()&&(e=this.value[1]||this.value[0]),this.isMultipleSelection()&&(e=this.value[this.value.length-1]),e=e?new Date(e.getTime()):new Date,e.setHours("12"==this.hourFormat?12===this.currentHour?this.pm?12:0:this.pm?this.currentHour+12:this.currentHour:this.currentHour),e.setMinutes(this.currentMinute),e.setSeconds(this.currentSecond),this.isRangeSelection()&&(e=this.value[1]?[this.value[0],e]:[e,null]),this.isMultipleSelection()&&(e=[...this.value.slice(0,-1),e]),this.updateModel(e),this.onSelect.emit(e),this.updateInputfield()}toggleAMPM(e){const i=!this.pm;this.validateTime(this.currentHour,this.currentMinute,this.currentSecond,i)&&(this.pm=i,this.updateTime()),e.preventDefault()}onUserInput(e){if(!this.isKeydown)return;this.isKeydown=!1;let i=e.target.value;try{let r=this.parseValueFromString(i);this.isValidSelection(r)&&(this.updateModel(r),this.updateUI())}catch{this.updateModel(this.keepInvalid?i:null)}this.filled=null!=i&&i.length,this.onInput.emit(e)}isValidSelection(e){let i=!0;return this.isSingleSelection()?this.isSelectable(e.getDate(),e.getMonth(),e.getFullYear(),!1)||(i=!1):e.every(r=>this.isSelectable(r.getDate(),r.getMonth(),r.getFullYear(),!1))&&this.isRangeSelection()&&(i=e.length>1&&e[1]>e[0]),i}parseValueFromString(e){if(!e||0===e.trim().length)return null;let i;if(this.isSingleSelection())i=this.parseDateTime(e);else if(this.isMultipleSelection()){let r=e.split(this.multipleSeparator);i=[];for(let s of r)i.push(this.parseDateTime(s.trim()))}else if(this.isRangeSelection()){let r=e.split(" "+this.rangeSeparator+" ");i=[];for(let s=0;s<r.length;s++)i[s]=this.parseDateTime(r[s].trim())}return i}parseDateTime(e){let i,r=e.split(" ");if(this.timeOnly)i=new Date,this.populateTime(i,r[0],r[1]);else{const s=this.getDateFormat();if(this.showTime){let o="12"==this.hourFormat?r.pop():null,a=r.pop();i=this.parseDate(r.join(" "),s),this.populateTime(i,a,o)}else i=this.parseDate(e,s)}return i}populateTime(e,i,r){if("12"==this.hourFormat&&!r)throw"Invalid Time";this.pm="PM"===r||"pm"===r;let s=this.parseTime(i);e.setHours(s.hour),e.setMinutes(s.minute),e.setSeconds(s.second)}isValidDate(e){return e instanceof Date&&U.isNotEmpty(e)}updateUI(){let e=this.value;Array.isArray(e)&&(e=e[0]);let i=this.defaultDate&&this.isValidDate(this.defaultDate)&&!this.value?this.defaultDate:e&&this.isValidDate(e)?e:new Date;this.currentMonth=i.getMonth(),this.currentYear=i.getFullYear(),this.createMonths(this.currentMonth,this.currentYear),(this.showTime||this.timeOnly)&&(this.setCurrentHourPM(i.getHours()),this.currentMinute=i.getMinutes(),this.currentSecond=i.getSeconds())}showOverlay(){this.overlayVisible||(this.updateUI(),this.touchUI||(this.preventFocus=!0),this.overlayVisible=!0)}hideOverlay(){this.overlayVisible=!1,this.clearTimePickerTimer(),this.touchUI&&this.disableModality(),this.cd.markForCheck()}toggle(){this.inline||(this.overlayVisible?this.hideOverlay():(this.showOverlay(),this.inputfieldViewChild.nativeElement.focus()))}onOverlayAnimationStart(e){switch(e.toState){case"visible":case"visibleTouchUI":this.inline||(this.overlay=e.element,this.overlay.setAttribute(this.attributeSelector,""),this.appendOverlay(),this.updateFocus(),this.autoZIndex&&(this.touchUI?yn.set("modal",this.overlay,this.baseZIndex||this.config.zIndex.modal):yn.set("overlay",this.overlay,this.baseZIndex||this.config.zIndex.overlay)),this.alignOverlay(),this.onShow.emit(e));break;case"void":this.onOverlayHide(),this.onClose.emit(e)}}onOverlayAnimationDone(e){switch(e.toState){case"visible":case"visibleTouchUI":this.inline||(this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener());break;case"void":this.autoZIndex&&yn.clear(e.element)}}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):A.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.touchUI?this.enableModality(this.overlay):this.overlay&&(this.appendTo?("date"===this.view?(this.overlay.style.width=A.getOuterWidth(this.overlay)+"px",this.overlay.style.minWidth=A.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px"):this.overlay.style.width=A.getOuterWidth(this.inputfieldViewChild.nativeElement)+"px",A.absolutePosition(this.overlay,this.inputfieldViewChild.nativeElement)):A.relativePosition(this.overlay,this.inputfieldViewChild.nativeElement))}enableModality(e){this.mask||this.touchUI||(this.mask=document.createElement("div"),this.mask.style.zIndex=String(parseInt(e.style.zIndex)-1),A.addMultipleClasses(this.mask,"p-component-overlay p-datepicker-mask p-datepicker-mask-scrollblocker p-component-overlay p-component-overlay-enter"),this.maskClickListener=this.renderer.listen(this.mask,"click",r=>{this.disableModality()}),document.body.appendChild(this.mask),A.addClass(document.body,"p-overflow-hidden"))}disableModality(){this.mask&&(A.addClass(this.mask,"p-component-overlay-leave"),this.animationEndListener=this.destroyMask.bind(this),this.mask.addEventListener("animationend",this.animationEndListener))}destroyMask(){if(!this.mask)return;document.body.removeChild(this.mask);let i,e=document.body.children;for(let r=0;r<e.length;r++)if(A.hasClass(e[r],"p-datepicker-mask-scrollblocker")){i=!0;break}i||A.removeClass(document.body,"p-overflow-hidden"),this.unbindAnimationEndListener(),this.unbindMaskClickListener(),this.mask=null}unbindMaskClickListener(){this.maskClickListener&&(this.maskClickListener(),this.maskClickListener=null)}unbindAnimationEndListener(){this.animationEndListener&&this.mask&&(this.mask.removeEventListener("animationend",this.animationEndListener),this.animationEndListener=null)}writeValue(e){if(this.value=e,this.value&&"string"==typeof this.value)try{this.value=this.parseValueFromString(this.value)}catch{this.keepInvalid&&(this.value=e)}this.updateInputfield(),this.updateUI(),this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}getDateFormat(){return this.dateFormat||this.getTranslation("dateFormat")}getFirstDateOfWeek(){return this._firstDayOfWeek||this.getTranslation(vn.FIRST_DAY_OF_WEEK)}formatDate(e,i){if(!e)return"";let r;const s=u=>{const d=r+1<i.length&&i.charAt(r+1)===u;return d&&r++,d},o=(u,d,h)=>{let f=""+d;if(s(u))for(;f.length<h;)f="0"+f;return f},a=(u,d,h,f)=>s(u)?f[d]:h[d];let l="",c=!1;if(e)for(r=0;r<i.length;r++)if(c)"'"!==i.charAt(r)||s("'")?l+=i.charAt(r):c=!1;else switch(i.charAt(r)){case"d":l+=o("d",e.getDate(),2);break;case"D":l+=a("D",e.getDay(),this.getTranslation(vn.DAY_NAMES_SHORT),this.getTranslation(vn.DAY_NAMES));break;case"o":l+=o("o",Math.round((new Date(e.getFullYear(),e.getMonth(),e.getDate()).getTime()-new Date(e.getFullYear(),0,0).getTime())/864e5),3);break;case"m":l+=o("m",e.getMonth()+1,2);break;case"M":l+=a("M",e.getMonth(),this.getTranslation(vn.MONTH_NAMES_SHORT),this.getTranslation(vn.MONTH_NAMES));break;case"y":l+=s("y")?e.getFullYear():(e.getFullYear()%100<10?"0":"")+e.getFullYear()%100;break;case"@":l+=e.getTime();break;case"!":l+=1e4*e.getTime()+this.ticksTo1970;break;case"'":s("'")?l+="'":c=!0;break;default:l+=i.charAt(r)}return l}formatTime(e){if(!e)return"";let i="",r=e.getHours(),s=e.getMinutes(),o=e.getSeconds();return"12"==this.hourFormat&&r>11&&12!=r&&(r-=12),i+="12"==this.hourFormat&&0===r?12:r<10?"0"+r:r,i+=":",i+=s<10?"0"+s:s,this.showSeconds&&(i+=":",i+=o<10?"0"+o:o),"12"==this.hourFormat&&(i+=e.getHours()>11?" PM":" AM"),i}parseTime(e){let i=e.split(":");if(i.length!==(this.showSeconds?3:2))throw"Invalid time";let s=parseInt(i[0]),o=parseInt(i[1]),a=this.showSeconds?parseInt(i[2]):null;if(isNaN(s)||isNaN(o)||s>23||o>59||"12"==this.hourFormat&&s>12||this.showSeconds&&(isNaN(a)||a>59))throw"Invalid time";return"12"==this.hourFormat&&(12!==s&&this.pm?s+=12:!this.pm&&12===s&&(s-=12)),{hour:s,minute:o,second:a}}parseDate(e,i){if(null==i||null==e)throw"Invalid arguments";if(""===(e="object"==typeof e?e.toString():e+""))return null;let r,s,o,p,a=0,l="string"!=typeof this.shortYearCutoff?this.shortYearCutoff:(new Date).getFullYear()%100+parseInt(this.shortYearCutoff,10),c=-1,u=-1,d=-1,h=-1,f=!1,g=D=>{let E=r+1<i.length&&i.charAt(r+1)===D;return E&&r++,E},y=D=>{let E=g(D),k="@"===D?14:"!"===D?20:"y"===D&&E?4:"o"===D?3:2,V=new RegExp("^\\d{"+("y"===D?k:1)+","+k+"}"),H=e.substring(a).match(V);if(!H)throw"Missing number at position "+a;return a+=H[0].length,parseInt(H[0],10)},C=(D,E,k)=>{let P=-1,V=g(D)?k:E,H=[];for(let j=0;j<V.length;j++)H.push([j,V[j]]);H.sort((j,J)=>-(j[1].length-J[1].length));for(let j=0;j<H.length;j++){let J=H[j][1];if(e.substr(a,J.length).toLowerCase()===J.toLowerCase()){P=H[j][0],a+=J.length;break}}if(-1!==P)return P+1;throw"Unknown name at position "+a},x=()=>{if(e.charAt(a)!==i.charAt(r))throw"Unexpected literal at position "+a;a++};for("month"===this.view&&(d=1),r=0;r<i.length;r++)if(f)"'"!==i.charAt(r)||g("'")?x():f=!1;else switch(i.charAt(r)){case"d":d=y("d");break;case"D":C("D",this.getTranslation(vn.DAY_NAMES_SHORT),this.getTranslation(vn.DAY_NAMES));break;case"o":h=y("o");break;case"m":u=y("m");break;case"M":u=C("M",this.getTranslation(vn.MONTH_NAMES_SHORT),this.getTranslation(vn.MONTH_NAMES));break;case"y":c=y("y");break;case"@":p=new Date(y("@")),c=p.getFullYear(),u=p.getMonth()+1,d=p.getDate();break;case"!":p=new Date((y("!")-this.ticksTo1970)/1e4),c=p.getFullYear(),u=p.getMonth()+1,d=p.getDate();break;case"'":g("'")?x():f=!0;break;default:x()}if(a<e.length&&(o=e.substr(a),!/^\s+/.test(o)))throw"Extra/unparsed characters found in date: "+o;if(-1===c?c=(new Date).getFullYear():c<100&&(c+=(new Date).getFullYear()-(new Date).getFullYear()%100+(c<=l?0:-100)),h>-1)for(u=1,d=h;s=this.getDaysCountInMonth(c,u-1),!(d<=s);)u++,d-=s;if("year"===this.view&&(u=-1===u?1:u,d=-1===d?1:d),p=this.daylightSavingAdjust(new Date(c,u-1,d)),p.getFullYear()!==c||p.getMonth()+1!==u||p.getDate()!==d)throw"Invalid date";return p}daylightSavingAdjust(e){return e?(e.setHours(e.getHours()>12?e.getHours()+2:0),e):null}updateFilledState(){this.filled=this.inputFieldValue&&""!=this.inputFieldValue}onTodayButtonClick(e){let i=new Date,r={day:i.getDate(),month:i.getMonth(),year:i.getFullYear(),otherMonth:i.getMonth()!==this.currentMonth||i.getFullYear()!==this.currentYear,today:!0,selectable:!0};this.onDateSelect(e,r),this.onTodayClick.emit(e)}onClearButtonClick(e){this.updateModel(null),this.updateInputfield(),this.hideOverlay(),this.onClearClick.emit(e)}createResponsiveStyle(){if(this.numberOfMonths>1&&this.responsiveOptions){this.responsiveStyleElement||(this.responsiveStyleElement=document.createElement("style"),this.responsiveStyleElement.type="text/css",document.body.appendChild(this.responsiveStyleElement));let e="";if(this.responsiveOptions){let i=[...this.responsiveOptions].filter(r=>!(!r.breakpoint||!r.numMonths)).sort((r,s)=>-1*r.breakpoint.localeCompare(s.breakpoint,void 0,{numeric:!0}));for(let r=0;r<i.length;r++){let{breakpoint:s,numMonths:o}=i[r],a=`\n .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${o}) .p-datepicker-next {\n display: inline-flex !important;\n }\n `;for(let l=o;l<this.numberOfMonths;l++)a+=`\n .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${l+1}) {\n display: none !important;\n }\n `;e+=`\n @media screen and (max-width: ${s}) {\n ${a}\n }\n `}}this.responsiveStyleElement.innerHTML=e}}destroyResponsiveStyleElement(){this.responsiveStyleElement&&(this.responsiveStyleElement.remove(),this.responsiveStyleElement=null)}bindDocumentClickListener(){this.documentClickListener||this.zone.runOutsideAngular(()=>{this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousedown",i=>{this.isOutsideClicked(i)&&this.overlayVisible&&this.zone.run(()=>{this.hideOverlay(),this.onClickOutside.emit(i),this.cd.markForCheck()})})})}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentResizeListener(){!this.documentResizeListener&&!this.touchUI&&(this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener))}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Kd(this.containerViewChild.nativeElement,()=>{this.overlayVisible&&this.hideOverlay()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}isOutsideClicked(e){return!(this.el.nativeElement.isSameNode(e.target)||this.isNavIconClicked(e)||this.el.nativeElement.contains(e.target)||this.overlay&&this.overlay.contains(e.target))}isNavIconClicked(e){return A.hasClass(e.target,"p-datepicker-prev")||A.hasClass(e.target,"p-datepicker-prev-icon")||A.hasClass(e.target,"p-datepicker-next")||A.hasClass(e.target,"p-datepicker-next-icon")}onWindowResize(){this.overlayVisible&&!A.isTouchDevice()&&this.hideOverlay()}onOverlayHide(){this.currentView=this.view,this.mask&&this.destroyMask(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindScrollListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.translationSubscription&&this.translationSubscription.unsubscribe(),this.overlay&&this.autoZIndex&&yn.clear(this.overlay),this.destroyResponsiveStyleElement(),this.clearTimePickerTimer(),this.restoreOverlayAppend(),this.onOverlayHide()}}return n.\u0275fac=function(e){return new(e||n)(M(ze),M(Mn),M(bt),M(Qe),M(wr),M(Gd))},n.\u0275cmp=Se({type:n,selectors:[["p-calendar"]],contentQueries:function(e,i,r){if(1&e&&$t(r,en,4),2&e){let s;ie(s=re())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&(ke(YW,5),ke(QW,5),ke(ZW,5)),2&e){let r;ie(r=re())&&(i.containerViewChild=r.first),ie(r=re())&&(i.inputfieldViewChild=r.first),ie(r=re())&&(i.content=r.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,i){2&e&&jr("p-inputwrapper-filled",i.filled)("p-inputwrapper-focus",i.focus)("p-calendar-clearable",i.showClear&&!i.disabled)},inputs:{style:"style",styleClass:"styleClass",inputStyle:"inputStyle",inputId:"inputId",name:"name",inputStyleClass:"inputStyleClass",placeholder:"placeholder",ariaLabelledBy:"ariaLabelledBy",iconAriaLabel:"iconAriaLabel",disabled:"disabled",dateFormat:"dateFormat",multipleSeparator:"multipleSeparator",rangeSeparator:"rangeSeparator",inline:"inline",showOtherMonths:"showOtherMonths",selectOtherMonths:"selectOtherMonths",showIcon:"showIcon",icon:"icon",appendTo:"appendTo",readonlyInput:"readonlyInput",shortYearCutoff:"shortYearCutoff",monthNavigator:"monthNavigator",yearNavigator:"yearNavigator",hourFormat:"hourFormat",timeOnly:"timeOnly",stepHour:"stepHour",stepMinute:"stepMinute",stepSecond:"stepSecond",showSeconds:"showSeconds",required:"required",showOnFocus:"showOnFocus",showWeek:"showWeek",showClear:"showClear",dataType:"dataType",selectionMode:"selectionMode",maxDateCount:"maxDateCount",showButtonBar:"showButtonBar",todayButtonStyleClass:"todayButtonStyleClass",clearButtonStyleClass:"clearButtonStyleClass",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",panelStyleClass:"panelStyleClass",panelStyle:"panelStyle",keepInvalid:"keepInvalid",hideOnDateTimeSelect:"hideOnDateTimeSelect",touchUI:"touchUI",timeSeparator:"timeSeparator",focusTrap:"focusTrap",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions",tabindex:"tabindex",view:"view",defaultDate:"defaultDate",minDate:"minDate",maxDate:"maxDate",disabledDates:"disabledDates",disabledDays:"disabledDays",yearRange:"yearRange",showTime:"showTime",responsiveOptions:"responsiveOptions",numberOfMonths:"numberOfMonths",firstDayOfWeek:"firstDayOfWeek",locale:"locale"},outputs:{onFocus:"onFocus",onBlur:"onBlur",onClose:"onClose",onSelect:"onSelect",onClear:"onClear",onInput:"onInput",onTodayClick:"onTodayClick",onClearClick:"onClearClick",onMonthChange:"onMonthChange",onYearChange:"onYearChange",onClickOutside:"onClickOutside",onShow:"onShow"},features:[Be([j7])],ngContentSelectors:z7,decls:4,vars:11,consts:[[3,"ngClass","ngStyle"],["container",""],[3,"ngIf"],[3,"class","ngStyle","ngClass","click",4,"ngIf"],["type","text","autocomplete","off",3,"value","readonly","ngStyle","placeholder","disabled","ngClass","focus","keydown","click","blur","input"],["inputfield",""],["class","p-calendar-clear-icon pi pi-times",3,"click",4,"ngIf"],["type","button","pButton","","pRipple","","class","p-datepicker-trigger","tabindex","0",3,"icon","disabled","click",4,"ngIf"],[1,"p-calendar-clear-icon","pi","pi-times",3,"click"],["type","button","pButton","","pRipple","","tabindex","0",1,"p-datepicker-trigger",3,"icon","disabled","click"],[3,"ngStyle","ngClass","click"],["contentWrapper",""],[4,"ngTemplateOutlet"],[4,"ngIf"],["class","p-timepicker",4,"ngIf"],["class","p-datepicker-buttonbar",4,"ngIf"],[1,"p-datepicker-group-container"],["class","p-datepicker-group",4,"ngFor","ngForOf"],["class","p-monthpicker",4,"ngIf"],["class","p-yearpicker",4,"ngIf"],[1,"p-datepicker-group"],[1,"p-datepicker-header"],["class","p-datepicker-prev p-link","type","button","pRipple","",3,"keydown","click",4,"ngIf"],[1,"p-datepicker-title"],["type","button","class","p-datepicker-month p-link",3,"disabled","click","keydown",4,"ngIf"],["type","button","class","p-datepicker-year p-link",3,"disabled","click","keydown",4,"ngIf"],["class","p-datepicker-decade",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-next","p-link",3,"keydown","click"],[1,"p-datepicker-next-icon","pi","pi-chevron-right"],["class","p-datepicker-calendar-container",4,"ngIf"],["type","button","pRipple","",1,"p-datepicker-prev","p-link",3,"keydown","click"],[1,"p-datepicker-prev-icon","pi","pi-chevron-left"],["type","button",1,"p-datepicker-month","p-link",3,"disabled","click","keydown"],["type","button",1,"p-datepicker-year","p-link",3,"disabled","click","keydown"],[1,"p-datepicker-decade"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-datepicker-calendar-container"],[1,"p-datepicker-calendar"],["class","p-datepicker-weekheader p-disabled",4,"ngIf"],["scope","col",4,"ngFor","ngForOf"],[4,"ngFor","ngForOf"],[1,"p-datepicker-weekheader","p-disabled"],["scope","col"],["class","p-datepicker-weeknumber",4,"ngIf"],[3,"ngClass",4,"ngFor","ngForOf"],[1,"p-datepicker-weeknumber"],[1,"p-disabled"],[3,"ngClass"],["draggable","false","pRipple","",3,"ngClass","click","keydown"],[1,"p-monthpicker"],["class","p-monthpicker-month","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-monthpicker-month",3,"ngClass","click","keydown"],[1,"p-yearpicker"],["class","p-yearpicker-year","pRipple","",3,"ngClass","click","keydown",4,"ngFor","ngForOf"],["pRipple","",1,"p-yearpicker-year",3,"ngClass","click","keydown"],[1,"p-timepicker"],[1,"p-hour-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","keydown.enter","keydown.space","mousedown","mouseup","keyup.enter","keyup.space","mouseleave"],[1,"pi","pi-chevron-up"],[1,"pi","pi-chevron-down"],[1,"p-separator"],[1,"p-minute-picker"],["class","p-separator",4,"ngIf"],["class","p-second-picker",4,"ngIf"],["class","p-ampm-picker",4,"ngIf"],[1,"p-second-picker"],[1,"p-ampm-picker"],["type","button","pRipple","",1,"p-link",3,"keydown","click","keydown.enter"],[1,"p-datepicker-buttonbar"],["type","button","pButton","","pRipple","",3,"label","ngClass","keydown","click"]],template:function(e,i){1&e&&(ci(B7),b(0,"span",0,1),S(2,e7,4,17,"ng-template",2),S(3,V7,9,28,"div",3),w()),2&e&&(fe(i.styleClass),m("ngClass",Ur(6,H7,i.showIcon,i.timeOnly,i.disabled,i.focus))("ngStyle",i.style),v(2),m("ngIf",!i.inline),v(1),m("ngIf",i.inline||i.overlayVisible))},dependencies:[_t,fi,lt,on,ut,b_,Xr],styles:[".p-calendar{position:relative;display:inline-flex;max-width:100%}.p-calendar .p-inputtext{flex:1 1 auto;width:1%}.p-calendar-w-btn .p-inputtext{border-top-right-radius:0;border-bottom-right-radius:0}.p-calendar-w-btn .p-datepicker-trigger{border-top-left-radius:0;border-bottom-left-radius:0}.p-fluid .p-calendar{display:flex}.p-fluid .p-calendar .p-inputtext{width:1%}.p-calendar .p-datepicker{min-width:100%}.p-datepicker{width:auto;position:absolute;top:0;left:0}.p-datepicker-inline{display:inline-block;position:static;overflow-x:auto}.p-datepicker-header{display:flex;align-items:center;justify-content:space-between}.p-datepicker-header .p-datepicker-title{margin:0 auto}.p-datepicker-prev,.p-datepicker-next{cursor:pointer;display:inline-flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-datepicker-multiple-month .p-datepicker-group-container .p-datepicker-group{flex:1 1 auto}.p-datepicker-multiple-month .p-datepicker-group-container{display:flex}.p-datepicker table{width:100%;border-collapse:collapse}.p-datepicker td>span{display:flex;justify-content:center;align-items:center;cursor:pointer;margin:0 auto;overflow:hidden;position:relative}.p-monthpicker-month{width:33.3%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-datepicker-buttonbar{display:flex;justify-content:space-between;align-items:center}.p-timepicker{display:flex;justify-content:center;align-items:center}.p-timepicker button{display:flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-timepicker>div{display:flex;align-items:center;flex-direction:column}.p-datepicker-touch-ui,.p-calendar .p-datepicker-touch-ui{position:fixed;top:50%;left:50%;min-width:80vw;transform:translate(-50%,-50%)}.p-yearpicker-year{width:50%;display:inline-flex;align-items:center;justify-content:center;cursor:pointer;overflow:hidden;position:relative}.p-calendar-clear-icon{position:absolute;top:50%;margin-top:-.5rem;cursor:pointer}.p-calendar-clearable{position:relative}\n"],encapsulation:2,data:{animation:[oh("overlayAnimation",[_U("visibleTouchUI",Vn({transform:"translate(-50%,-50%)",opacity:1})),Yi("void => visible",[Vn({opacity:0,transform:"scaleY(0.8)"}),qi("{{showTransitionParams}}",Vn({opacity:1,transform:"*"}))]),Yi("visible => void",[qi("{{hideTransitionParams}}",Vn({opacity:0}))]),Yi("void => visibleTouchUI",[Vn({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}),qi("{{showTransitionParams}}")]),Yi("visibleTouchUI => void",[qi("{{hideTransitionParams}}",Vn({opacity:0,transform:"translate3d(-50%, -40%, 0) scale(0.9)"}))])])]},changeDetection:0}),n})(),U7=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We,es,cn,Jr,es,cn]}),n})();function W7(n,t){1&n&&Y(0)}const J_=function(n){return{$implicit:n}};function G7(n,t){if(1&n&&(b(0,"div",15),S(1,W7,1,0,"ng-container",16),w()),2&n){const e=_(2);v(1),m("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",oe(2,J_,e.paginatorState))}}function K7(n,t){if(1&n&&(b(0,"span",17),O(1),w()),2&n){const e=_(2);v(1),ne(e.currentPageReport)}}const fh=function(n){return{"p-disabled":n}};function q7(n,t){if(1&n){const e=Q();b(0,"button",18),R("click",function(r){return T(e),I(_(2).changePageToFirst(r))}),F(1,"span",19),w()}if(2&n){const e=_(2);m("disabled",e.isFirstPage()||e.empty())("ngClass",oe(2,fh,e.isFirstPage()||e.empty()))}}const Y7=function(n){return{"p-highlight":n}};function Q7(n,t){if(1&n){const e=Q();b(0,"button",22),R("click",function(r){const o=T(e).$implicit;return I(_(3).onPageLinkClick(r,o-1))}),O(1),w()}if(2&n){const e=t.$implicit,i=_(3);m("ngClass",oe(2,Y7,e-1==i.getPage())),v(1),Le(" ",e," ")}}function Z7(n,t){if(1&n&&(b(0,"span",20),S(1,Q7,2,4,"button",21),w()),2&n){const e=_(2);v(1),m("ngForOf",e.pageLinks)}}function X7(n,t){1&n&&O(0),2&n&&ne(_(3).currentPageReport)}function J7(n,t){if(1&n){const e=Q();b(0,"p-dropdown",23),R("onChange",function(r){return T(e),I(_(2).onPageDropdownChange(r))}),S(1,X7,1,1,"ng-template",24),w()}if(2&n){const e=_(2);m("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight)}}function eG(n,t){if(1&n){const e=Q();b(0,"button",25),R("click",function(r){return T(e),I(_(2).changePageToLast(r))}),F(1,"span",26),w()}if(2&n){const e=_(2);m("disabled",e.isLastPage()||e.empty())("ngClass",oe(2,fh,e.isLastPage()||e.empty()))}}function tG(n,t){if(1&n){const e=Q();b(0,"p-inputNumber",27),R("ngModelChange",function(r){return T(e),I(_(2).changePage(r-1))}),w()}if(2&n){const e=_(2);m("ngModel",e.currentPage())("disabled",e.empty())}}function nG(n,t){1&n&&Y(0)}function iG(n,t){if(1&n&&S(0,nG,1,0,"ng-container",16),2&n){const e=t.$implicit;m("ngTemplateOutlet",_(4).dropdownItemTemplate)("ngTemplateOutletContext",oe(2,J_,e))}}function rG(n,t){1&n&&(pe(0),S(1,iG,1,4,"ng-template",30),ge())}function sG(n,t){if(1&n){const e=Q();b(0,"p-dropdown",28),R("ngModelChange",function(r){return T(e),I(_(2).rows=r)})("onChange",function(r){return T(e),I(_(2).onRppChange(r))}),S(1,rG,2,0,"ng-container",29),w()}if(2&n){const e=_(2);m("options",e.rowsPerPageItems)("ngModel",e.rows)("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),v(1),m("ngIf",e.dropdownItemTemplate)}}function oG(n,t){1&n&&Y(0)}function aG(n,t){if(1&n&&(b(0,"div",31),S(1,oG,1,0,"ng-container",16),w()),2&n){const e=_(2);v(1),m("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",oe(2,J_,e.paginatorState))}}function lG(n,t){if(1&n){const e=Q();b(0,"div",1),S(1,G7,2,4,"div",2),S(2,K7,2,1,"span",3),S(3,q7,2,4,"button",4),b(4,"button",5),R("click",function(r){return T(e),I(_().changePageToPrev(r))}),F(5,"span",6),w(),S(6,Z7,2,1,"span",7),S(7,J7,2,5,"p-dropdown",8),b(8,"button",9),R("click",function(r){return T(e),I(_().changePageToNext(r))}),F(9,"span",10),w(),S(10,eG,2,4,"button",11),S(11,tG,1,2,"p-inputNumber",12),S(12,sG,2,6,"p-dropdown",13),S(13,aG,2,4,"div",14),w()}if(2&n){const e=_();fe(e.styleClass),m("ngStyle",e.style)("ngClass","p-paginator p-component"),v(1),m("ngIf",e.templateLeft),v(1),m("ngIf",e.showCurrentPageReport),v(1),m("ngIf",e.showFirstLastIcon),v(1),m("disabled",e.isFirstPage()||e.empty())("ngClass",oe(17,fh,e.isFirstPage()||e.empty())),v(2),m("ngIf",e.showPageLinks),v(1),m("ngIf",e.showJumpToPageDropdown),v(1),m("disabled",e.isLastPage()||e.empty())("ngClass",oe(19,fh,e.isLastPage()||e.empty())),v(2),m("ngIf",e.showFirstLastIcon),v(1),m("ngIf",e.showJumpToPageInput),v(1),m("ngIf",e.rowsPerPageOptions),v(1),m("ngIf",e.templateRight)}}let vI=(()=>{class n{constructor(e){this.cd=e,this.pageLinkSize=5,this.onPageChange=new N,this.alwaysShow=!0,this.dropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage} of {totalPages}",this.showFirstLastIcon=!0,this.totalRecords=0,this.rows=0,this.showPageLinks=!0,this._first=0,this._page=0}ngOnInit(){this.updatePaginatorState()}ngOnChanges(e){e.totalRecords&&(this.updatePageLinks(),this.updatePaginatorState(),this.updateFirst(),this.updateRowsPerPageOptions()),e.first&&(this._first=e.first.currentValue,this.updatePageLinks(),this.updatePaginatorState()),e.rows&&(this.updatePageLinks(),this.updatePaginatorState()),e.rowsPerPageOptions&&this.updateRowsPerPageOptions()}get first(){return this._first}set first(e){this._first=e}updateRowsPerPageOptions(){if(this.rowsPerPageOptions){this.rowsPerPageItems=[];for(let e of this.rowsPerPageOptions)"object"==typeof e&&e.showAll?this.rowsPerPageItems.unshift({label:e.showAll,value:this.totalRecords}):this.rowsPerPageItems.push({label:String(e),value:e})}}isFirstPage(){return 0===this.getPage()}isLastPage(){return this.getPage()===this.getPageCount()-1}getPageCount(){return Math.ceil(this.totalRecords/this.rows)}calculatePageLinkBoundaries(){let e=this.getPageCount(),i=Math.min(this.pageLinkSize,e),r=Math.max(0,Math.ceil(this.getPage()-i/2)),s=Math.min(e-1,r+i-1);return r=Math.max(0,r-(this.pageLinkSize-(s-r+1))),[r,s]}updatePageLinks(){this.pageLinks=[];let e=this.calculatePageLinkBoundaries(),r=e[1];for(let s=e[0];s<=r;s++)this.pageLinks.push(s+1);if(this.showJumpToPageDropdown){this.pageItems=[];for(let s=0;s<this.getPageCount();s++)this.pageItems.push({label:String(s+1),value:s})}}changePage(e){var i=this.getPageCount();if(e>=0&&e<i){this._first=this.rows*e;var r={page:e,first:this.first,rows:this.rows,pageCount:i};this.updatePageLinks(),this.onPageChange.emit(r),this.updatePaginatorState()}}updateFirst(){const e=this.getPage();e>0&&this.totalRecords&&this.first>=this.totalRecords&&Promise.resolve(null).then(()=>this.changePage(e-1))}getPage(){return Math.floor(this.first/this.rows)}changePageToFirst(e){this.isFirstPage()||this.changePage(0),e.preventDefault()}changePageToPrev(e){this.changePage(this.getPage()-1),e.preventDefault()}changePageToNext(e){this.changePage(this.getPage()+1),e.preventDefault()}changePageToLast(e){this.isLastPage()||this.changePage(this.getPageCount()-1),e.preventDefault()}onPageLinkClick(e,i){this.changePage(i),e.preventDefault()}onRppChange(e){this.changePage(this.getPage())}onPageDropdownChange(e){this.changePage(e.value)}updatePaginatorState(){this.paginatorState={page:this.getPage(),pageCount:this.getPageCount(),rows:this.rows,first:this.first,totalRecords:this.totalRecords}}empty(){return 0===this.getPageCount()}currentPage(){return this.getPageCount()>0?this.getPage()+1:0}get currentPageReport(){return this.currentPageReportTemplate.replace("{currentPage}",String(this.currentPage())).replace("{totalPages}",String(this.getPageCount())).replace("{first}",String(this.totalRecords>0?this._first+1:0)).replace("{last}",String(Math.min(this._first+this.rows,this.totalRecords))).replace("{rows}",String(this.rows)).replace("{totalRecords}",String(this.totalRecords))}}return n.\u0275fac=function(e){return new(e||n)(M(bt))},n.\u0275cmp=Se({type:n,selectors:[["p-paginator"]],hostAttrs:[1,"p-element"],inputs:{pageLinkSize:"pageLinkSize",style:"style",styleClass:"styleClass",alwaysShow:"alwaysShow",templateLeft:"templateLeft",templateRight:"templateRight",dropdownAppendTo:"dropdownAppendTo",dropdownScrollHeight:"dropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showFirstLastIcon:"showFirstLastIcon",totalRecords:"totalRecords",rows:"rows",rowsPerPageOptions:"rowsPerPageOptions",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showPageLinks:"showPageLinks",dropdownItemTemplate:"dropdownItemTemplate",first:"first"},outputs:{onPageChange:"onPageChange"},features:[Zt],decls:1,vars:1,consts:[[3,"class","ngStyle","ngClass",4,"ngIf"],[3,"ngStyle","ngClass"],["class","p-paginator-left-content",4,"ngIf"],["class","p-paginator-current",4,"ngIf"],["type","button","pRipple","","class","p-paginator-first p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-prev","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi","pi-angle-left"],["class","p-paginator-pages",4,"ngIf"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange",4,"ngIf"],["type","button","pRipple","",1,"p-paginator-next","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi","pi-angle-right"],["type","button","pRipple","","class","p-paginator-last p-paginator-element p-link",3,"disabled","ngClass","click",4,"ngIf"],["class","p-paginator-page-input",3,"ngModel","disabled","ngModelChange",4,"ngIf"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange",4,"ngIf"],["class","p-paginator-right-content",4,"ngIf"],[1,"p-paginator-left-content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-paginator-current"],["type","button","pRipple","",1,"p-paginator-first","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi","pi-angle-double-left"],[1,"p-paginator-pages"],["type","button","class","p-paginator-page p-paginator-element p-link","pRipple","",3,"ngClass","click",4,"ngFor","ngForOf"],["type","button","pRipple","",1,"p-paginator-page","p-paginator-element","p-link",3,"ngClass","click"],["styleClass","p-paginator-page-options",3,"options","ngModel","disabled","appendTo","scrollHeight","onChange"],["pTemplate","selectedItem"],["type","button","pRipple","",1,"p-paginator-last","p-paginator-element","p-link",3,"disabled","ngClass","click"],[1,"p-paginator-icon","pi","pi-angle-double-right"],[1,"p-paginator-page-input",3,"ngModel","disabled","ngModelChange"],["styleClass","p-paginator-rpp-options",3,"options","ngModel","disabled","appendTo","scrollHeight","ngModelChange","onChange"],[4,"ngIf"],["pTemplate","item"],[1,"p-paginator-right-content"]],template:function(e,i){1&e&&S(0,lG,14,21,"div",0),2&e&&m("ngIf",!!i.alwaysShow||i.pageLinks&&i.pageLinks.length>1)},dependencies:[_t,fi,lt,on,ut,lh,en,Jl,ql,Us,Xr],styles:[".p-paginator{display:flex;align-items:center;justify-content:center;flex-wrap:wrap}.p-paginator-left-content{margin-right:auto}.p-paginator-right-content{margin-left:auto}.p-paginator-page,.p-paginator-next,.p-paginator-last,.p-paginator-first,.p-paginator-prev,.p-paginator-current{cursor:pointer;display:inline-flex;align-items:center;justify-content:center;line-height:1;-webkit-user-select:none;user-select:none;overflow:hidden;position:relative}.p-paginator-element:focus{z-index:1;position:relative}\n"],encapsulation:2,changeDetection:0}),n})(),bI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We,ic,ec,rh,cn,Jr,ic,ec,rh,cn]}),n})();function cG(n,t){1&n&&F(0,"span",8),2&n&&(fe(_(2).$implicit.icon),m("ngClass","p-button-icon p-button-icon-left"))}function uG(n,t){if(1&n&&(pe(0),S(1,cG,1,3,"span",6),b(2,"span",7),O(3),w(),ge()),2&n){const e=_().$implicit,i=_();v(1),m("ngIf",e.icon),v(2),ne(i.getOptionLabel(e))}}function dG(n,t){1&n&&Y(0)}const hG=function(n,t){return{$implicit:n,index:t}};function fG(n,t){if(1&n&&S(0,dG,1,0,"ng-container",9),2&n){const e=_(),i=e.$implicit,r=e.index;m("ngTemplateOutlet",_().itemTemplate)("ngTemplateOutletContext",He(2,hG,i,r))}}const pG=function(n,t,e){return{"p-highlight":n,"p-disabled":t,"p-button-icon-only":e}};function gG(n,t){if(1&n){const e=Q();b(0,"div",2,3),R("click",function(r){const s=T(e),o=s.$implicit,a=s.index;return I(_().onItemClick(r,o,a))})("keydown.enter",function(r){const s=T(e),o=s.$implicit,a=s.index;return I(_().onItemClick(r,o,a))})("blur",function(){return T(e),I(_().onBlur())}),S(2,uG,4,2,"ng-container",4),S(3,fG,1,5,"ng-template",null,5,Xt),w()}if(2&n){const e=t.$implicit,i=ot(4),r=_();fe(e.styleClass),m("ngClass",ui(10,pG,r.isSelected(e),r.disabled||r.isOptionDisabled(e),e.icon&&!r.getOptionLabel(e))),Ce("aria-pressed",r.isSelected(e))("title",e.title)("aria-label",e.label)("tabindex",r.disabled?null:r.tabindex)("aria-labelledby",r.getOptionLabel(e)),v(2),m("ngIf",!r.itemTemplate)("ngIfElse",i)}}const mG={provide:Gt,useExisting:Fe(()=>_G),multi:!0};let _G=(()=>{class n{constructor(e){this.cd=e,this.tabindex=0,this.onOptionClick=new N,this.onChange=new N,this.onModelChange=()=>{},this.onModelTouched=()=>{}}getOptionLabel(e){return this.optionLabel?U.resolveFieldData(e,this.optionLabel):null!=e.label?e.label:e}getOptionValue(e){return this.optionValue?U.resolveFieldData(e,this.optionValue):this.optionLabel||void 0===e.value?e:e.value}isOptionDisabled(e){return this.optionDisabled?U.resolveFieldData(e,this.optionDisabled):void 0!==e.disabled&&e.disabled}writeValue(e){this.value=e,this.cd.markForCheck()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}onItemClick(e,i,r){if(!this.disabled&&!this.isOptionDisabled(i)){if(this.multiple)this.isSelected(i)?this.removeOption(i):this.value=[...this.value||[],this.getOptionValue(i)],this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value});else{let s=this.getOptionValue(i);this.value!==s&&(this.value=this.getOptionValue(i),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value}))}this.onOptionClick.emit({originalEvent:e,option:i,index:r})}}onBlur(){this.onModelTouched()}removeOption(e){this.value=this.value.filter(i=>!U.equals(i,this.getOptionValue(e),this.dataKey))}isSelected(e){let i=!1,r=this.getOptionValue(e);if(this.multiple){if(this.value&&this.value instanceof Array)for(let s of this.value)if(U.equals(s,r,this.dataKey)){i=!0;break}}else i=U.equals(this.getOptionValue(e),this.value,this.dataKey);return i}}return n.\u0275fac=function(e){return new(e||n)(M(bt))},n.\u0275cmp=Se({type:n,selectors:[["p-selectButton"]],contentQueries:function(e,i,r){if(1&e&&$t(r,Ai,5),2&e){let s;ie(s=re())&&(i.itemTemplate=s.first)}},hostAttrs:[1,"p-element"],inputs:{options:"options",optionLabel:"optionLabel",optionValue:"optionValue",optionDisabled:"optionDisabled",tabindex:"tabindex",multiple:"multiple",style:"style",styleClass:"styleClass",ariaLabelledBy:"ariaLabelledBy",disabled:"disabled",dataKey:"dataKey"},outputs:{onOptionClick:"onOptionClick",onChange:"onChange"},features:[Be([mG])],decls:2,vars:5,consts:[["role","group",3,"ngClass","ngStyle"],["class","p-button p-component","role","button","pRipple","",3,"class","ngClass","click","keydown.enter","blur",4,"ngFor","ngForOf"],["role","button","pRipple","",1,"p-button","p-component",3,"ngClass","click","keydown.enter","blur"],["btn",""],[4,"ngIf","ngIfElse"],["customcontent",""],[3,"ngClass","class",4,"ngIf"],[1,"p-button-label"],[3,"ngClass"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(b(0,"div",0),S(1,gG,5,14,"div",1),w()),2&e&&(fe(i.styleClass),m("ngClass","p-selectbutton p-buttonset p-component")("ngStyle",i.style),v(1),m("ngForOf",i.options))},dependencies:[_t,fi,lt,on,ut,Xr],styles:['.p-button{margin:0;display:inline-flex;cursor:pointer;-webkit-user-select:none;user-select:none;align-items:center;vertical-align:bottom;text-align:center;overflow:hidden;position:relative}.p-button-label{flex:1 1 auto}.p-button-icon-right{order:1}.p-button:disabled{cursor:default}.p-button-icon-only{justify-content:center}.p-button-icon-only:after{content:"p";visibility:hidden;clip:rect(0 0 0 0);width:0}.p-button-vertical{flex-direction:column}.p-button-icon-bottom{order:2}.p-buttonset .p-button{margin:0}.p-buttonset .p-button:not(:last-child){border-right:0 none}.p-buttonset .p-button:not(:first-of-type):not(:last-of-type){border-radius:0}.p-buttonset .p-button:first-of-type{border-top-right-radius:0;border-bottom-right-radius:0}.p-buttonset .p-button:last-of-type{border-top-left-radius:0;border-bottom-left-radius:0}.p-buttonset .p-button:focus{position:relative;z-index:1}\n'],encapsulation:2,changeDetection:0}),n})(),yG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We,Jr]}),n})();const vG=function(n,t,e){return{"p-checkbox-label-active":n,"p-disabled":t,"p-checkbox-label-focus":e}};function bG(n,t){if(1&n){const e=Q();b(0,"label",7),R("click",function(r){T(e);const s=_(),o=ot(3);return I(s.onClick(r,o))}),O(1),w()}if(2&n){const e=_();m("ngClass",ui(3,vG,null!=e.value,e.disabled,e.focused)),Ce("for",e.inputId),v(1),ne(e.label)}}const wG=function(n,t){return{"p-checkbox p-component":!0,"p-checkbox-disabled":n,"p-checkbox-focused":t}},CG=function(n,t,e){return{"p-highlight":n,"p-disabled":t,"p-focus":e}},SG={provide:Gt,useExisting:Fe(()=>DG),multi:!0};let DG=(()=>{class n{constructor(e){this.cd=e,this.checkboxTrueIcon="pi pi-check",this.checkboxFalseIcon="pi pi-times",this.onChange=new N,this.onModelChange=()=>{},this.onModelTouched=()=>{}}onClick(e,i){!this.disabled&&!this.readonly&&(this.toggle(e),this.focused=!0,i.focus())}onKeydown(e){32==e.keyCode&&e.preventDefault()}onKeyup(e){32==e.keyCode&&!this.readonly&&(this.toggle(e),e.preventDefault())}toggle(e){null==this.value||null==this.value?this.value=!0:1==this.value?this.value=!1:0==this.value&&(this.value=null),this.onModelChange(this.value),this.onChange.emit({originalEvent:e,value:this.value})}onFocus(){this.focused=!0}onBlur(){this.focused=!1,this.onModelTouched()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}writeValue(e){this.value=e,this.cd.markForCheck()}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}}return n.\u0275fac=function(e){return new(e||n)(M(bt))},n.\u0275cmp=Se({type:n,selectors:[["p-triStateCheckbox"]],hostAttrs:[1,"p-element"],inputs:{disabled:"disabled",name:"name",ariaLabelledBy:"ariaLabelledBy",tabindex:"tabindex",inputId:"inputId",style:"style",styleClass:"styleClass",label:"label",readonly:"readonly",checkboxTrueIcon:"checkboxTrueIcon",checkboxFalseIcon:"checkboxFalseIcon"},outputs:{onChange:"onChange"},features:[Be([SG])],decls:7,vars:21,consts:[[3,"ngStyle","ngClass"],[1,"p-hidden-accessible"],["type","text","inputmode","none",3,"name","readonly","disabled","keyup","keydown","focus","blur"],["input",""],["role","checkbox",1,"p-checkbox-box",3,"ngClass","click"],[1,"p-checkbox-icon",3,"ngClass"],["class","p-checkbox-label",3,"ngClass","click",4,"ngIf"],[1,"p-checkbox-label",3,"ngClass","click"]],template:function(e,i){if(1&e){const r=Q();b(0,"div",0)(1,"div",1)(2,"input",2,3),R("keyup",function(o){return i.onKeyup(o)})("keydown",function(o){return i.onKeydown(o)})("focus",function(){return i.onFocus()})("blur",function(){return i.onBlur()}),w()(),b(4,"div",4),R("click",function(o){T(r);const a=ot(3);return I(i.onClick(o,a))}),F(5,"span",5),w()(),S(6,bG,2,7,"label",6)}2&e&&(fe(i.styleClass),m("ngStyle",i.style)("ngClass",He(14,wG,i.disabled,i.focused)),v(2),m("name",i.name)("readonly",i.readonly)("disabled",i.disabled),Ce("id",i.inputId)("tabindex",i.tabindex)("aria-labelledby",i.ariaLabelledBy),v(2),m("ngClass",ui(17,CG,null!=i.value,i.disabled,i.focused)),Ce("aria-checked",!0===i.value),v(1),m("ngClass",!0===i.value?i.checkboxTrueIcon:!1===i.value?i.checkboxFalseIcon:""),v(1),m("ngIf",i.label))},dependencies:[_t,lt,ut],encapsulation:2,changeDetection:0}),n})(),xG=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We]}),n})();const EG=["container"],TG=["resizeHelper"],IG=["reorderIndicatorUp"],MG=["reorderIndicatorDown"],kG=["wrapper"],AG=["table"],OG=["thead"],PG=["tfoot"],RG=["scroller"];function FG(n,t){if(1&n&&(b(0,"div",15),F(1,"i"),w()),2&n){const e=_();v(1),fe("p-datatable-loading-icon pi-spin "+e.loadingIcon)}}function LG(n,t){1&n&&Y(0)}function NG(n,t){if(1&n&&(b(0,"div",16),S(1,LG,1,0,"ng-container",17),w()),2&n){const e=_();v(1),m("ngTemplateOutlet",e.captionTemplate)}}function VG(n,t){if(1&n){const e=Q();b(0,"p-paginator",18),R("onPageChange",function(r){return T(e),I(_().onPageChange(r))}),w()}if(2&n){const e=_();m("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)}}function BG(n,t){1&n&&Y(0)}const wI=function(n,t){return{$implicit:n,options:t}};function HG(n,t){if(1&n&&S(0,BG,1,0,"ng-container",22),2&n){const e=t.$implicit,i=t.options;_(2),m("ngTemplateOutlet",ot(10))("ngTemplateOutletContext",He(2,wI,e,i))}}const zG=function(n){return{height:n}};function jG(n,t){if(1&n){const e=Q();b(0,"p-scroller",19,20),R("onLazyLoad",function(r){return T(e),I(_().onLazyItemLoad(r))}),S(2,HG,1,5,"ng-template",21),w()}if(2&n){const e=_();mn(oe(14,zG,"flex"!==e.scrollHeight?e.scrollHeight:void 0)),m("items",e.processedData)("columns",e.columns)("scrollHeight","flex"!==e.scrollHeight?void 0:"100%")("itemSize",e.virtualScrollItemSize||e._virtualRowHeight)("step",e.rows)("delay",e.lazy?e.virtualScrollDelay:0)("inline",!0)("lazy",e.lazy)("loaderDisabled",!0)("showSpacer",!1)("showLoader",e.loadingBodyTemplate)("options",e.virtualScrollOptions)}}function $G(n,t){1&n&&Y(0)}const UG=function(n){return{columns:n}};function WG(n,t){if(1&n&&(pe(0),S(1,$G,1,0,"ng-container",22),ge()),2&n){const e=_(),i=ot(10);v(1),m("ngTemplateOutlet",i)("ngTemplateOutletContext",He(4,wI,e.processedData,oe(2,UG,e.columns)))}}function GG(n,t){1&n&&Y(0)}function KG(n,t){1&n&&Y(0)}function qG(n,t){if(1&n&&F(0,"tbody",31),2&n){const e=_().options,i=_();m("value",i.frozenValue)("frozenRows",!0)("pTableBody",e.columns)("pTableBodyTemplate",i.frozenBodyTemplate)("frozen",!0)}}function YG(n,t){if(1&n&&F(0,"tbody",32),2&n){const e=_().options;mn("height: calc("+e.spacerStyle.height+" - "+e.rows.length*e.itemSize+"px);")}}function QG(n,t){1&n&&Y(0)}const lc=function(n){return{$implicit:n}};function ZG(n,t){if(1&n&&(b(0,"tfoot",33,34),S(2,QG,1,0,"ng-container",22),w()),2&n){const e=_().options,i=_();v(2),m("ngTemplateOutlet",i.footerGroupedTemplate||i.footerTemplate)("ngTemplateOutletContext",oe(2,lc,e.columns))}}const XG=function(n,t,e){return{"p-datatable-table":!0,"p-datatable-scrollable-table":n,"p-datatable-resizable-table":t,"p-datatable-resizable-table-fit":e}};function JG(n,t){if(1&n&&(b(0,"table",23,24),S(2,GG,1,0,"ng-container",22),b(3,"thead",25,26),S(5,KG,1,0,"ng-container",22),w(),S(6,qG,1,5,"tbody",27),F(7,"tbody",28),S(8,YG,1,2,"tbody",29),S(9,ZG,3,4,"tfoot",30),w()),2&n){const e=t.options,i=_();mn(i.tableStyle),fe(i.tableStyleClass),m("ngClass",ui(20,XG,i.scrollable,i.resizableColumns,i.resizableColumns&&"fit"===i.columnResizeMode)),Ce("id",i.id+"-table"),v(2),m("ngTemplateOutlet",i.colGroupTemplate)("ngTemplateOutletContext",oe(24,lc,e.columns)),v(3),m("ngTemplateOutlet",i.headerGroupedTemplate||i.headerTemplate)("ngTemplateOutletContext",oe(26,lc,e.columns)),v(1),m("ngIf",i.frozenValue||i.frozenBodyTemplate),v(1),mn(e.contentStyle),m("ngClass",e.contentStyleClass)("value",i.dataToRender(e.rows))("pTableBody",e.columns)("pTableBodyTemplate",i.bodyTemplate)("scrollerOptions",e),v(1),m("ngIf",e.spacerStyle),v(1),m("ngIf",i.footerGroupedTemplate||i.footerTemplate)}}function e9(n,t){if(1&n){const e=Q();b(0,"p-paginator",35),R("onPageChange",function(r){return T(e),I(_().onPageChange(r))}),w()}if(2&n){const e=_();m("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showJumpToPageInput",e.showJumpToPageInput)("showPageLinks",e.showPageLinks)}}function t9(n,t){1&n&&Y(0)}function n9(n,t){if(1&n&&(b(0,"div",36),S(1,t9,1,0,"ng-container",17),w()),2&n){const e=_();v(1),m("ngTemplateOutlet",e.summaryTemplate)}}function r9(n,t){1&n&&F(0,"div",37,38)}function s9(n,t){1&n&&F(0,"span",39,40)}function o9(n,t){1&n&&F(0,"span",41,42)}const a9=function(n,t,e){return{"p-datatable p-component":!0,"p-datatable-hoverable-rows":n,"p-datatable-scrollable":t,"p-datatable-flex-scrollable":e}},l9=function(n){return{maxHeight:n}},c9=["pTableBody",""];function u9(n,t){1&n&&Y(0)}const ey=function(n,t,e,i,r){return{$implicit:n,rowIndex:t,columns:e,editing:i,frozen:r}};function d9(n,t){if(1&n&&(pe(0,3),S(1,u9,1,0,"ng-container",4),ge()),2&n){const e=_(),i=e.$implicit,r=e.index,s=_(2);v(1),m("ngTemplateOutlet",s.dt.groupHeaderTemplate)("ngTemplateOutletContext",yl(2,ey,i,s.getRowIndex(r),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function h9(n,t){1&n&&Y(0)}function f9(n,t){if(1&n&&(pe(0),S(1,h9,1,0,"ng-container",4),ge()),2&n){const e=_(),i=e.$implicit,r=e.index,s=_(2);v(1),m("ngTemplateOutlet",i?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",yl(2,ey,i,s.getRowIndex(r),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function p9(n,t){1&n&&Y(0)}const g9=function(n,t,e,i,r,s,o){return{$implicit:n,rowIndex:t,columns:e,editing:i,frozen:r,rowgroup:s,rowspan:o}};function m9(n,t){if(1&n&&(pe(0),S(1,p9,1,0,"ng-container",4),ge()),2&n){const e=_(),i=e.$implicit,r=e.index,s=_(2);v(1),m("ngTemplateOutlet",i?s.template:s.dt.loadingBodyTemplate)("ngTemplateOutletContext",function K1(n,t,e,i,r,s,o,a,l,c){const u=En()+n,d=B();let h=li(d,u,e,i,r,s);return Uu(d,u+4,o,a,l)||h?$i(d,u+7,c?t.call(c,e,i,r,s,o,a,l):t(e,i,r,s,o,a,l)):ul(d,u+7)}(2,g9,i,s.getRowIndex(r),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen,s.shouldRenderRowspan(s.value,i,r),s.calculateRowGroupSize(s.value,i,r)))}}function _9(n,t){1&n&&Y(0)}function y9(n,t){if(1&n&&(pe(0,3),S(1,_9,1,0,"ng-container",4),ge()),2&n){const e=_(),i=e.$implicit,r=e.index,s=_(2);v(1),m("ngTemplateOutlet",s.dt.groupFooterTemplate)("ngTemplateOutletContext",yl(2,ey,i,s.getRowIndex(r),s.columns,"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function v9(n,t){if(1&n&&(S(0,d9,2,8,"ng-container",2),S(1,f9,2,8,"ng-container",0),S(2,m9,2,10,"ng-container",0),S(3,y9,2,8,"ng-container",2)),2&n){const e=t.$implicit,i=t.index,r=_(2);m("ngIf",r.dt.groupHeaderTemplate&&!r.dt.virtualScroll&&"subheader"===r.dt.rowGroupMode&&r.shouldRenderRowGroupHeader(r.value,e,i)),v(1),m("ngIf","rowspan"!==r.dt.rowGroupMode),v(1),m("ngIf","rowspan"===r.dt.rowGroupMode),v(1),m("ngIf",r.dt.groupFooterTemplate&&!r.dt.virtualScroll&&"subheader"===r.dt.rowGroupMode&&r.shouldRenderRowGroupFooter(r.value,e,i))}}function b9(n,t){if(1&n&&(pe(0),S(1,v9,4,4,"ng-template",1),ge()),2&n){const e=_();v(1),m("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function w9(n,t){1&n&&Y(0)}const ph=function(n,t,e,i,r,s){return{$implicit:n,rowIndex:t,columns:e,expanded:i,editing:r,frozen:s}};function C9(n,t){if(1&n&&(pe(0),S(1,w9,1,0,"ng-container",4),ge()),2&n){const e=_(),i=e.$implicit,r=e.index,s=_(2);v(1),m("ngTemplateOutlet",s.template)("ngTemplateOutletContext",Xo(2,ph,i,s.getRowIndex(r),s.columns,s.dt.isRowExpanded(i),"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function S9(n,t){1&n&&Y(0)}function D9(n,t){if(1&n&&(pe(0,3),S(1,S9,1,0,"ng-container",4),ge()),2&n){const e=_(),i=e.$implicit,r=e.index,s=_(2);v(1),m("ngTemplateOutlet",s.dt.groupHeaderTemplate)("ngTemplateOutletContext",Xo(2,ph,i,s.getRowIndex(r),s.columns,s.dt.isRowExpanded(i),"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}function x9(n,t){1&n&&Y(0)}function E9(n,t){1&n&&Y(0)}function T9(n,t){if(1&n&&(pe(0,3),S(1,E9,1,0,"ng-container",4),ge()),2&n){const e=_(2),i=e.$implicit,r=e.index,s=_(2);v(1),m("ngTemplateOutlet",s.dt.groupFooterTemplate)("ngTemplateOutletContext",Xo(2,ph,i,s.getRowIndex(r),s.columns,s.dt.isRowExpanded(i),"row"===s.dt.editMode&&s.dt.isRowEditing(i),s.frozen))}}const CI=function(n,t,e,i){return{$implicit:n,rowIndex:t,columns:e,frozen:i}};function I9(n,t){if(1&n&&(pe(0),S(1,x9,1,0,"ng-container",4),S(2,T9,2,9,"ng-container",2),ge()),2&n){const e=_(),i=e.$implicit,r=e.index,s=_(2);v(1),m("ngTemplateOutlet",s.dt.expandedRowTemplate)("ngTemplateOutletContext",Ur(3,CI,i,s.getRowIndex(r),s.columns,s.frozen)),v(1),m("ngIf",s.dt.groupFooterTemplate&&"subheader"===s.dt.rowGroupMode&&s.shouldRenderRowGroupFooter(s.value,i,s.getRowIndex(r)))}}function M9(n,t){if(1&n&&(S(0,C9,2,9,"ng-container",0),S(1,D9,2,9,"ng-container",2),S(2,I9,3,8,"ng-container",0)),2&n){const e=t.$implicit,i=t.index,r=_(2);m("ngIf",!r.dt.groupHeaderTemplate),v(1),m("ngIf",r.dt.groupHeaderTemplate&&"subheader"===r.dt.rowGroupMode&&r.shouldRenderRowGroupHeader(r.value,e,r.getRowIndex(i))),v(1),m("ngIf",r.dt.isRowExpanded(e))}}function k9(n,t){if(1&n&&(pe(0),S(1,M9,3,3,"ng-template",1),ge()),2&n){const e=_();v(1),m("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function A9(n,t){1&n&&Y(0)}function O9(n,t){1&n&&Y(0)}function P9(n,t){if(1&n&&(pe(0),S(1,O9,1,0,"ng-container",4),ge()),2&n){const e=_(),i=e.$implicit,r=e.index,s=_(2);v(1),m("ngTemplateOutlet",s.dt.frozenExpandedRowTemplate)("ngTemplateOutletContext",Ur(2,CI,i,s.getRowIndex(r),s.columns,s.frozen))}}function R9(n,t){if(1&n&&(S(0,A9,1,0,"ng-container",4),S(1,P9,2,7,"ng-container",0)),2&n){const e=t.$implicit,i=t.index,r=_(2);m("ngTemplateOutlet",r.template)("ngTemplateOutletContext",Xo(3,ph,e,r.getRowIndex(i),r.columns,r.dt.isRowExpanded(e),"row"===r.dt.editMode&&r.dt.isRowEditing(e),r.frozen)),v(1),m("ngIf",r.dt.isRowExpanded(e))}}function F9(n,t){if(1&n&&(pe(0),S(1,R9,2,10,"ng-template",1),ge()),2&n){const e=_();v(1),m("ngForOf",e.value)("ngForTrackBy",e.dt.rowTrackBy)}}function L9(n,t){1&n&&Y(0)}const SI=function(n,t){return{$implicit:n,frozen:t}};function N9(n,t){if(1&n&&(pe(0),S(1,L9,1,0,"ng-container",4),ge()),2&n){const e=_();v(1),m("ngTemplateOutlet",e.dt.loadingBodyTemplate)("ngTemplateOutletContext",He(2,SI,e.columns,e.frozen))}}function V9(n,t){1&n&&Y(0)}function B9(n,t){if(1&n&&(pe(0),S(1,V9,1,0,"ng-container",4),ge()),2&n){const e=_();v(1),m("ngTemplateOutlet",e.dt.emptyMessageTemplate)("ngTemplateOutletContext",He(2,SI,e.columns,e.frozen))}}let ty=(()=>{class n{constructor(){this.sortSource=new Pt,this.selectionSource=new Pt,this.contextMenuSource=new Pt,this.valueSource=new Pt,this.totalRecordsSource=new Pt,this.columnsSource=new Pt,this.resetSource=new Pt,this.sortSource$=this.sortSource.asObservable(),this.selectionSource$=this.selectionSource.asObservable(),this.contextMenuSource$=this.contextMenuSource.asObservable(),this.valueSource$=this.valueSource.asObservable(),this.totalRecordsSource$=this.totalRecordsSource.asObservable(),this.columnsSource$=this.columnsSource.asObservable(),this.resetSource$=this.resetSource.asObservable()}onSort(e){this.sortSource.next(e)}onSelectionChange(){this.selectionSource.next(null)}onResetChange(){this.resetSource.next(null)}onContextMenu(e){this.contextMenuSource.next(e)}onValueChange(e){this.valueSource.next(e)}onTotalRecordsChange(e){this.totalRecordsSource.next(e)}onColumnsChange(e){this.columnsSource.next(e)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:n.\u0275fac}),n})(),ny=(()=>{class n{constructor(e,i,r,s,o,a){this.el=e,this.zone=i,this.tableService=r,this.cd=s,this.filterService=o,this.overlayService=a,this.pageLinks=5,this.alwaysShowPaginator=!0,this.paginatorPosition="bottom",this.paginatorDropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage} of {totalPages}",this.showFirstLastIcon=!0,this.showPageLinks=!0,this.defaultSortOrder=1,this.sortMode="single",this.resetPageOnSort=!0,this.selectAllChange=new N,this.selectionChange=new N,this.contextMenuSelectionChange=new N,this.contextMenuSelectionMode="separate",this.rowTrackBy=(l,c)=>c,this.lazy=!1,this.lazyLoadOnInit=!0,this.compareSelectionBy="deepEquals",this.csvSeparator=",",this.exportFilename="download",this.filters={},this.filterDelay=300,this.expandedRowKeys={},this.editingRowKeys={},this.rowExpandMode="multiple",this.scrollDirection="vertical",this.virtualScrollDelay=250,this.columnResizeMode="fit",this.loadingIcon="pi pi-spinner",this.showLoader=!0,this.showInitialSortBadge=!0,this.stateStorage="session",this.editMode="cell",this.groupRowsByOrder=1,this.responsiveLayout="scroll",this.breakpoint="960px",this.onRowSelect=new N,this.onRowUnselect=new N,this.onPage=new N,this.onSort=new N,this.onFilter=new N,this.onLazyLoad=new N,this.onRowExpand=new N,this.onRowCollapse=new N,this.onContextMenuSelect=new N,this.onColResize=new N,this.onColReorder=new N,this.onRowReorder=new N,this.onEditInit=new N,this.onEditComplete=new N,this.onEditCancel=new N,this.onHeaderCheckboxToggle=new N,this.sortFunction=new N,this.firstChange=new N,this.rowsChange=new N,this.onStateSave=new N,this.onStateRestore=new N,this._virtualRowHeight=28,this._value=[],this._totalRecords=0,this._first=0,this.selectionKeys={},this._sortOrder=1,this._selectAll=null,this.columnResizing=!1,this.rowGroupHeaderStyleObject={},this.id=y_()}get responsive(){return this._responsive}set responsive(e){this._responsive=e,console.warn("responsive propery is deprecated as table is always responsive with scrollable behavior.")}get virtualRowHeight(){return this._virtualRowHeight}set virtualRowHeight(e){this._virtualRowHeight=e,console.warn("The virtualRowHeight property is deprecated, use virtualScrollItemSize property instead.")}ngOnInit(){this.lazy&&this.lazyLoadOnInit&&(this.virtualScroll||this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.restoringFilter&&(this.restoringFilter=!1)),"stack"===this.responsiveLayout&&!this.scrollable&&this.createResponsiveStyle(),this.initialized=!0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"caption":this.captionTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"headergrouped":this.headerGroupedTemplate=e.template;break;case"body":this.bodyTemplate=e.template;break;case"loadingbody":this.loadingBodyTemplate=e.template;break;case"footer":this.footerTemplate=e.template;break;case"footergrouped":this.footerGroupedTemplate=e.template;break;case"summary":this.summaryTemplate=e.template;break;case"colgroup":this.colGroupTemplate=e.template;break;case"rowexpansion":this.expandedRowTemplate=e.template;break;case"groupheader":this.groupHeaderTemplate=e.template;break;case"rowspan":this.rowspanTemplate=e.template;break;case"groupfooter":this.groupFooterTemplate=e.template;break;case"frozenrows":this.frozenRowsTemplate=e.template;break;case"frozenheader":this.frozenHeaderTemplate=e.template;break;case"frozenbody":this.frozenBodyTemplate=e.template;break;case"frozenfooter":this.frozenFooterTemplate=e.template;break;case"frozencolgroup":this.frozenColGroupTemplate=e.template;break;case"frozenrowexpansion":this.frozenExpandedRowTemplate=e.template;break;case"emptymessage":this.emptyMessageTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template}})}ngAfterViewInit(){this.isStateful()&&this.resizableColumns&&this.restoreColumnWidths()}ngOnChanges(e){e.value&&(this.isStateful()&&!this.stateRestored&&this.restoreState(),this._value=e.value.currentValue,this.lazy||(this.totalRecords=this._value?this._value.length:0,"single"==this.sortMode&&(this.sortField||this.groupRowsBy)?this.sortSingle():"multiple"==this.sortMode&&(this.multiSortMeta||this.groupRowsBy)?this.sortMultiple():this.hasFilter()&&this._filter()),this.tableService.onValueChange(e.value.currentValue)),e.columns&&(this._columns=e.columns.currentValue,this.tableService.onColumnsChange(e.columns.currentValue),this._columns&&this.isStateful()&&this.reorderableColumns&&!this.columnOrderStateRestored&&this.restoreColumnOrder()),e.sortField&&(this._sortField=e.sortField.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsBy&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.sortOrder&&(this._sortOrder=e.sortOrder.currentValue,(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle()),e.groupRowsByOrder&&(!this.lazy||this.initialized)&&"single"===this.sortMode&&this.sortSingle(),e.multiSortMeta&&(this._multiSortMeta=e.multiSortMeta.currentValue,"multiple"===this.sortMode&&(this.initialized||!this.lazy&&!this.virtualScroll)&&this.sortMultiple()),e.selection&&(this._selection=e.selection.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange()),this.preventSelectionSetterPropagation=!1),e.selectAll&&(this._selectAll=e.selectAll.currentValue,this.preventSelectionSetterPropagation||(this.updateSelectionKeys(),this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()),this.preventSelectionSetterPropagation=!1)}get value(){return this._value}set value(e){this._value=e}get columns(){return this._columns}set columns(e){this._columns=e}get first(){return this._first}set first(e){this._first=e}get rows(){return this._rows}set rows(e){this._rows=e}get totalRecords(){return this._totalRecords}set totalRecords(e){this._totalRecords=e,this.tableService.onTotalRecordsChange(this._totalRecords)}get sortField(){return this._sortField}set sortField(e){this._sortField=e}get sortOrder(){return this._sortOrder}set sortOrder(e){this._sortOrder=e}get multiSortMeta(){return this._multiSortMeta}set multiSortMeta(e){this._multiSortMeta=e}get selection(){return this._selection}set selection(e){this._selection=e}get selectAll(){return this._selection}set selectAll(e){this._selection=e}get processedData(){return this.filteredValue||this.value||[]}dataToRender(e){const i=e||this.processedData;if(i&&this.paginator){const r=this.lazy?0:this.first;return i.slice(r,r+this.rows)}return i}updateSelectionKeys(){if(this.dataKey&&this._selection)if(this.selectionKeys={},Array.isArray(this._selection))for(let e of this._selection)this.selectionKeys[String(U.resolveFieldData(e,this.dataKey))]=1;else this.selectionKeys[String(U.resolveFieldData(this._selection,this.dataKey))]=1}onPageChange(e){this.first=e.first,this.rows=e.rows,this.onPage.emit({first:this.first,rows:this.rows}),this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.firstChange.emit(this.first),this.rowsChange.emit(this.rows),this.tableService.onValueChange(this.value),this.isStateful()&&this.saveState(),this.anchorRowIndex=null,this.scrollable&&this.resetScrollTop()}sort(e){let i=e.originalEvent;if("single"===this.sortMode&&(this._sortOrder=this.sortField===e.field?-1*this.sortOrder:this.defaultSortOrder,this._sortField=e.field,this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop()),this.sortSingle()),"multiple"===this.sortMode){let r=i.metaKey||i.ctrlKey,s=this.getSortMeta(e.field);s?r?s.order=-1*s.order:(this._multiSortMeta=[{field:e.field,order:-1*s.order}],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first),this.scrollable&&this.resetScrollTop())):((!r||!this.multiSortMeta)&&(this._multiSortMeta=[],this.resetPageOnSort&&(this._first=0,this.firstChange.emit(this._first))),this._multiSortMeta.push({field:e.field,order:this.defaultSortOrder})),this.sortMultiple()}this.isStateful()&&this.saveState(),this.anchorRowIndex=null}sortSingle(){let e=this.sortField||this.groupRowsBy,i=this.sortField?this.sortOrder:this.groupRowsByOrder;if(this.groupRowsBy&&this.sortField&&this.groupRowsBy!==this.sortField)return this._multiSortMeta=[this.getGroupRowsMeta(),{field:this.sortField,order:this.sortOrder}],void this.sortMultiple();if(e&&i){this.restoringSort&&(this.restoringSort=!1),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,field:e,order:i}):(this.value.sort((s,o)=>{let a=U.resolveFieldData(s,e),l=U.resolveFieldData(o,e),c=null;return c=null==a&&null!=l?-1:null!=a&&null==l?1:null==a&&null==l?0:"string"==typeof a&&"string"==typeof l?a.localeCompare(l):a<l?-1:a>l?1:0,i*c}),this._value=[...this.value]),this.hasFilter()&&this._filter());let r={field:e,order:i};this.onSort.emit(r),this.tableService.onSort(r)}}sortMultiple(){this.groupRowsBy&&(this._multiSortMeta?this.multiSortMeta[0].field!==this.groupRowsBy&&(this._multiSortMeta=[this.getGroupRowsMeta(),...this._multiSortMeta]):this._multiSortMeta=[this.getGroupRowsMeta()]),this.multiSortMeta&&(this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.customSort?this.sortFunction.emit({data:this.value,mode:this.sortMode,multiSortMeta:this.multiSortMeta}):(this.value.sort((e,i)=>this.multisortField(e,i,this.multiSortMeta,0)),this._value=[...this.value]),this.hasFilter()&&this._filter()),this.onSort.emit({multisortmeta:this.multiSortMeta}),this.tableService.onSort(this.multiSortMeta))}multisortField(e,i,r,s){const o=U.resolveFieldData(e,r[s].field),a=U.resolveFieldData(i,r[s].field);return 0===U.compare(o,a,this.filterLocale)?r.length-1>s?this.multisortField(e,i,r,s+1):0:this.compareValuesOnSort(o,a,r[s].order)}compareValuesOnSort(e,i,r){return U.sort(e,i,r,this.filterLocale,this.sortOrder)}getSortMeta(e){if(this.multiSortMeta&&this.multiSortMeta.length)for(let i=0;i<this.multiSortMeta.length;i++)if(this.multiSortMeta[i].field===e)return this.multiSortMeta[i];return null}isSorted(e){if("single"===this.sortMode)return this.sortField&&this.sortField===e;if("multiple"===this.sortMode){let i=!1;if(this.multiSortMeta)for(let r=0;r<this.multiSortMeta.length;r++)if(this.multiSortMeta[r].field==e){i=!0;break}return i}}handleRowClick(e){let i=e.originalEvent.target,r=i.nodeName,s=i.parentElement&&i.parentElement.nodeName;if("INPUT"!=r&&"BUTTON"!=r&&"A"!=r&&"INPUT"!=s&&"BUTTON"!=s&&"A"!=s&&!A.hasClass(e.originalEvent.target,"p-clickable")){if(this.selectionMode){let o=e.rowData,a=e.rowIndex;if(this.preventSelectionSetterPropagation=!0,this.isMultipleSelectionMode()&&e.originalEvent.shiftKey&&null!=this.anchorRowIndex)A.clearSelection(),null!=this.rangeRowIndex&&this.clearSelectionRange(e.originalEvent),this.rangeRowIndex=a,this.selectRange(e.originalEvent,a);else{let l=this.isSelected(o);if(!l&&!this.isRowSelectable(o,a))return;let c=!this.rowTouched&&this.metaKeySelection,u=this.dataKey?String(U.resolveFieldData(o,this.dataKey)):null;if(this.anchorRowIndex=a,this.rangeRowIndex=a,c){let d=e.originalEvent.metaKey||e.originalEvent.ctrlKey;if(l&&d){if(this.isSingleSelectionMode())this._selection=null,this.selectionKeys={},this.selectionChange.emit(null);else{let h=this.findIndexInSelection(o);this._selection=this.selection.filter((f,p)=>p!=h),this.selectionChange.emit(this.selection),u&&delete this.selectionKeys[u]}this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row"})}else this.isSingleSelectionMode()?(this._selection=o,this.selectionChange.emit(o),u&&(this.selectionKeys={},this.selectionKeys[u]=1)):this.isMultipleSelectionMode()&&(d?this._selection=this.selection||[]:(this._selection=[],this.selectionKeys={}),this._selection=[...this.selection,o],this.selectionChange.emit(this.selection),u&&(this.selectionKeys[u]=1)),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:a})}else if("single"===this.selectionMode)l?(this._selection=null,this.selectionKeys={},this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:a})):(this._selection=o,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:a}),u&&(this.selectionKeys={},this.selectionKeys[u]=1));else if("multiple"===this.selectionMode)if(l){let d=this.findIndexInSelection(o);this._selection=this.selection.filter((h,f)=>f!=d),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:a}),u&&delete this.selectionKeys[u]}else this._selection=this.selection?[...this.selection,o]:[o],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,data:o,type:"row",index:a}),u&&(this.selectionKeys[u]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}this.rowTouched=!1}}handleRowTouchEnd(e){this.rowTouched=!0}handleRowRightClick(e){if(this.contextMenu){const i=e.rowData,r=e.rowIndex;if("separate"===this.contextMenuSelectionMode)this.contextMenuSelection=i,this.contextMenuSelectionChange.emit(i),this.onContextMenuSelect.emit({originalEvent:e.originalEvent,data:i,index:e.rowIndex}),this.contextMenu.show(e.originalEvent),this.tableService.onContextMenu(i);else if("joint"===this.contextMenuSelectionMode){this.preventSelectionSetterPropagation=!0;let s=this.isSelected(i),o=this.dataKey?String(U.resolveFieldData(i,this.dataKey)):null;if(!s){if(!this.isRowSelectable(i,r))return;this.isSingleSelectionMode()?(this.selection=i,this.selectionChange.emit(i),o&&(this.selectionKeys={},this.selectionKeys[o]=1)):this.isMultipleSelectionMode()&&(this._selection=this.selection?[...this.selection,i]:[i],this.selectionChange.emit(this.selection),o&&(this.selectionKeys[o]=1))}this.tableService.onSelectionChange(),this.contextMenu.show(e.originalEvent),this.onContextMenuSelect.emit({originalEvent:e,data:i,index:e.rowIndex})}}}selectRange(e,i){let r,s;this.anchorRowIndex>i?(r=i,s=this.anchorRowIndex):this.anchorRowIndex<i?(r=this.anchorRowIndex,s=i):(r=i,s=i),this.lazy&&this.paginator&&(r-=this.first,s-=this.first);let o=[];for(let a=r;a<=s;a++){let l=this.filteredValue?this.filteredValue[a]:this.value[a];if(!this.isSelected(l)){if(!this.isRowSelectable(l,i))continue;o.push(l),this._selection=[...this.selection,l];let c=this.dataKey?String(U.resolveFieldData(l,this.dataKey)):null;c&&(this.selectionKeys[c]=1)}}this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e,data:o,type:"row"})}clearSelectionRange(e){let i,r;this.rangeRowIndex>this.anchorRowIndex?(i=this.anchorRowIndex,r=this.rangeRowIndex):this.rangeRowIndex<this.anchorRowIndex?(i=this.rangeRowIndex,r=this.anchorRowIndex):(i=this.rangeRowIndex,r=this.rangeRowIndex);for(let s=i;s<=r;s++){let o=this.value[s],a=this.findIndexInSelection(o);this._selection=this.selection.filter((c,u)=>u!=a);let l=this.dataKey?String(U.resolveFieldData(o,this.dataKey)):null;l&&delete this.selectionKeys[l],this.onRowUnselect.emit({originalEvent:e,data:o,type:"row"})}}isSelected(e){return!(!e||!this.selection)&&(this.dataKey?void 0!==this.selectionKeys[U.resolveFieldData(e,this.dataKey)]:this.selection instanceof Array?this.findIndexInSelection(e)>-1:this.equals(e,this.selection))}findIndexInSelection(e){let i=-1;if(this.selection&&this.selection.length)for(let r=0;r<this.selection.length;r++)if(this.equals(e,this.selection[r])){i=r;break}return i}isRowSelectable(e,i){return!(this.rowSelectable&&!this.rowSelectable({data:e,index:i}))}toggleRowWithRadio(e,i){if(this.preventSelectionSetterPropagation=!0,this.selection!=i){if(!this.isRowSelectable(i,e.rowIndex))return;this._selection=i,this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"radiobutton"}),this.dataKey&&(this.selectionKeys={},this.selectionKeys[String(U.resolveFieldData(i,this.dataKey))]=1)}else this._selection=null,this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"radiobutton"});this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowWithCheckbox(e,i){this.selection=this.selection||[];let r=this.isSelected(i),s=this.dataKey?String(U.resolveFieldData(i,this.dataKey)):null;if(this.preventSelectionSetterPropagation=!0,r){let o=this.findIndexInSelection(i);this._selection=this.selection.filter((a,l)=>l!=o),this.selectionChange.emit(this.selection),this.onRowUnselect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"checkbox"}),s&&delete this.selectionKeys[s]}else{if(!this.isRowSelectable(i,e.rowIndex))return;this._selection=this.selection?[...this.selection,i]:[i],this.selectionChange.emit(this.selection),this.onRowSelect.emit({originalEvent:e.originalEvent,index:e.rowIndex,data:i,type:"checkbox"}),s&&(this.selectionKeys[s]=1)}this.tableService.onSelectionChange(),this.isStateful()&&this.saveState()}toggleRowsWithCheckbox(e,i){if(null!==this._selectAll)this.selectAllChange.emit({originalEvent:e,checked:i});else{const r=this.selectionPageOnly?this.dataToRender(this.processedData):this.processedData;let s=this.selectionPageOnly&&this._selection?this._selection.filter(o=>!r.some(a=>this.equals(o,a))):[];i&&(s=this.frozenValue?[...s,...this.frozenValue,...r]:[...s,...r],s=this.rowSelectable?s.filter((o,a)=>this.rowSelectable({data:o,index:a})):s),this._selection=s,this.preventSelectionSetterPropagation=!0,this.updateSelectionKeys(),this.selectionChange.emit(this._selection),this.tableService.onSelectionChange(),this.onHeaderCheckboxToggle.emit({originalEvent:e,checked:i}),this.isStateful()&&this.saveState()}}equals(e,i){return"equals"===this.compareSelectionBy?e===i:U.equals(e,i,this.dataKey)}filter(e,i,r){this.filterTimeout&&clearTimeout(this.filterTimeout),this.isFilterBlank(e)?this.filters[i]&&delete this.filters[i]:this.filters[i]={value:e,matchMode:r},this.filterTimeout=setTimeout(()=>{this._filter(),this.filterTimeout=null},this.filterDelay),this.anchorRowIndex=null}filterGlobal(e,i){this.filter(e,"global",i)}isFilterBlank(e){return null==e||"string"==typeof e&&0==e.trim().length||e instanceof Array&&0==e.length}_filter(){if(this.restoringFilter||(this.first=0,this.firstChange.emit(this.first)),this.lazy)this.onLazyLoad.emit(this.createLazyLoadMetadata());else{if(!this.value)return;if(this.hasFilter()){let e;if(this.filters.global){if(!this.columns&&!this.globalFilterFields)throw new Error("Global filtering requires dynamic columns or globalFilterFields to be defined.");e=this.globalFilterFields||this.columns}this.filteredValue=[];for(let i=0;i<this.value.length;i++){let a,r=!0,s=!1,o=!1;for(let l in this.filters)if(this.filters.hasOwnProperty(l)&&"global"!==l){o=!0;let c=l,u=this.filters[c];if(Array.isArray(u)){for(let d of u)if(r=this.executeLocalFilter(c,this.value[i],d),d.operator===bE.OR&&r||d.operator===bE.AND&&!r)break}else r=this.executeLocalFilter(c,this.value[i],u);if(!r)break}if(this.filters.global&&!s&&e)for(let l=0;l<e.length&&(s=this.filterService.filters[this.filters.global.matchMode](U.resolveFieldData(this.value[i],e[l].field||e[l]),this.filters.global.value,this.filterLocale),!s);l++);a=this.filters.global?o?o&&r&&s:s:o&&r,a&&this.filteredValue.push(this.value[i])}this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0)}else this.filteredValue=null,this.paginator&&(this.totalRecords=this.value?this.value.length:0)}this.onFilter.emit({filters:this.filters,filteredValue:this.filteredValue||this.value}),this.tableService.onValueChange(this.value),this.isStateful()&&!this.restoringFilter&&this.saveState(),this.restoringFilter&&(this.restoringFilter=!1),this.cd.markForCheck(),this.scrollable&&this.resetScrollTop()}executeLocalFilter(e,i,r){let s=r.value,o=r.matchMode||ln.STARTS_WITH,a=U.resolveFieldData(i,e);return(0,this.filterService.filters[o])(a,s,this.filterLocale)}hasFilter(){let e=!0;for(let i in this.filters)if(this.filters.hasOwnProperty(i)){e=!1;break}return!e}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder,filters:this.filters,globalFilter:this.filters&&this.filters.global?this.filters.global.value:null,multiSortMeta:this.multiSortMeta,forceUpdate:()=>this.cd.detectChanges()}}clear(){this._sortField=null,this._sortOrder=this.defaultSortOrder,this._multiSortMeta=null,this.tableService.onSort(null),this.filters.global&&(this.filters.global.value=null),this.filteredValue=null,this.tableService.onResetChange(),this.first=0,this.firstChange.emit(this.first),this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.totalRecords=this._value?this._value.length:0}reset(){this.clear()}getExportHeader(e){return e[this.exportHeader]||e.header||e.field}exportCSV(e){let i,r="",s=this.columns;e&&e.selectionOnly?i=this.selection||[]:(i=this.filteredValue||this.value,this.frozenValue&&(i=i?[...this.frozenValue,...i]:this.frozenValue));for(let l=0;l<s.length;l++){let c=s[l];!1!==c.exportable&&c.field&&(r+='"'+this.getExportHeader(c)+'"',l<s.length-1&&(r+=this.csvSeparator))}i.forEach((l,c)=>{r+="\n";for(let u=0;u<s.length;u++){let d=s[u];if(!1!==d.exportable&&d.field){let h=U.resolveFieldData(l,d.field);h=null!=h?this.exportFunction?this.exportFunction({data:h,field:d.field}):String(h).replace(/"/g,'""'):"",r+='"'+h+'"',u<s.length-1&&(r+=this.csvSeparator)}}});let o=new Blob([r],{type:"text/csv;charset=utf-8;"}),a=document.createElement("a");a.style.display="none",document.body.appendChild(a),void 0!==a.download?(a.setAttribute("href",URL.createObjectURL(o)),a.setAttribute("download",this.exportFilename+".csv"),a.click()):(r="data:text/csv;charset=utf-8,"+r,window.open(encodeURI(r))),document.body.removeChild(a)}onLazyItemLoad(e){this.onLazyLoad.emit({...this.createLazyLoadMetadata(),...e,rows:e.last-e.first})}resetScrollTop(){this.virtualScroll?this.scrollToVirtualIndex(0):this.scrollTo({top:0})}scrollToVirtualIndex(e){this.virtualScroll&&this.scroller.scrollToIndex(e)}scrollTo(e){this.virtualScroll?this.scroller.scrollTo(e):this.wrapperViewChild&&this.wrapperViewChild.nativeElement&&(this.wrapperViewChild.nativeElement.scrollTo?this.wrapperViewChild.nativeElement.scrollTo(e):(this.wrapperViewChild.nativeElement.scrollLeft=e.left,this.wrapperViewChild.nativeElement.scrollTop=e.top))}updateEditingCell(e,i,r,s){this.editingCell=e,this.editingCellData=i,this.editingCellField=r,this.editingCellRowIndex=s,this.bindDocumentEditListener()}isEditingCellValid(){return this.editingCell&&0===A.find(this.editingCell,".ng-invalid.ng-dirty").length}bindDocumentEditListener(){this.documentEditListener||(this.documentEditListener=e=>{this.editingCell&&!this.selfClick&&this.isEditingCellValid()&&(A.removeClass(this.editingCell,"p-cell-editing"),this.editingCell=null,this.onEditComplete.emit({field:this.editingCellField,data:this.editingCellData,originalEvent:e,index:this.editingCellRowIndex}),this.editingCellField=null,this.editingCellData=null,this.editingCellRowIndex=null,this.unbindDocumentEditListener(),this.cd.markForCheck(),this.overlaySubscription&&this.overlaySubscription.unsubscribe()),this.selfClick=!1},document.addEventListener("click",this.documentEditListener))}unbindDocumentEditListener(){this.documentEditListener&&(document.removeEventListener("click",this.documentEditListener),this.documentEditListener=null)}initRowEdit(e){let i=String(U.resolveFieldData(e,this.dataKey));this.editingRowKeys[i]=!0}saveRowEdit(e,i){if(0===A.find(i,".ng-invalid.ng-dirty").length){let r=String(U.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[r]}}cancelRowEdit(e){let i=String(U.resolveFieldData(e,this.dataKey));delete this.editingRowKeys[i]}toggleRow(e,i){if(!this.dataKey)throw new Error("dataKey must be defined to use row expansion");let r=String(U.resolveFieldData(e,this.dataKey));null!=this.expandedRowKeys[r]?(delete this.expandedRowKeys[r],this.onRowCollapse.emit({originalEvent:i,data:e})):("single"===this.rowExpandMode&&(this.expandedRowKeys={}),this.expandedRowKeys[r]=!0,this.onRowExpand.emit({originalEvent:i,data:e})),i&&i.preventDefault(),this.isStateful()&&this.saveState()}isRowExpanded(e){return!0===this.expandedRowKeys[String(U.resolveFieldData(e,this.dataKey))]}isRowEditing(e){return!0===this.editingRowKeys[String(U.resolveFieldData(e,this.dataKey))]}isSingleSelectionMode(){return"single"===this.selectionMode}isMultipleSelectionMode(){return"multiple"===this.selectionMode}onColumnResizeBegin(e){let i=A.getOffset(this.containerViewChild.nativeElement).left;this.resizeColumnElement=e.target.parentElement,this.columnResizing=!0,this.lastResizerHelperX=e.pageX-i+this.containerViewChild.nativeElement.scrollLeft,this.onColumnResize(e),e.preventDefault()}onColumnResize(e){let i=A.getOffset(this.containerViewChild.nativeElement).left;A.addClass(this.containerViewChild.nativeElement,"p-unselectable-text"),this.resizeHelperViewChild.nativeElement.style.height=this.containerViewChild.nativeElement.offsetHeight+"px",this.resizeHelperViewChild.nativeElement.style.top="0px",this.resizeHelperViewChild.nativeElement.style.left=e.pageX-i+this.containerViewChild.nativeElement.scrollLeft+"px",this.resizeHelperViewChild.nativeElement.style.display="block"}onColumnResizeEnd(){let e=this.resizeHelperViewChild.nativeElement.offsetLeft-this.lastResizerHelperX,r=this.resizeColumnElement.offsetWidth+e;if(r>=(this.resizeColumnElement.style.minWidth.replace(/[^\d.]/g,"")||15)){if("fit"===this.columnResizeMode){let a=this.resizeColumnElement.nextElementSibling.offsetWidth-e;r>15&&a>15&&this.resizeTableCells(r,a)}else"expand"===this.columnResizeMode&&(this.setResizeTableWidth(this.tableViewChild.nativeElement.offsetWidth+e+"px"),this.resizeTableCells(r,null));this.onColResize.emit({element:this.resizeColumnElement,delta:e}),this.isStateful()&&this.saveState()}this.resizeHelperViewChild.nativeElement.style.display="none",A.removeClass(this.containerViewChild.nativeElement,"p-unselectable-text")}resizeTableCells(e,i){let r=A.index(this.resizeColumnElement),s=[];const o=A.findSingle(this.containerViewChild.nativeElement,".p-datatable-thead");A.find(o,"tr > th").forEach(c=>s.push(A.getOuterWidth(c))),this.destroyStyleElement(),this.createStyleElement();let l="";s.forEach((c,u)=>{let d=u===r?e:i&&u===r+1?i:c;l+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${u+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${u+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${u+1}) {\n width: ${d}px !important; max-width: ${d}px !important;\n }\n `}),this.styleElement.innerHTML=l}onColumnDragStart(e,i){this.reorderIconWidth=A.getHiddenElementOuterWidth(this.reorderIndicatorUpViewChild.nativeElement),this.reorderIconHeight=A.getHiddenElementOuterHeight(this.reorderIndicatorDownViewChild.nativeElement),this.draggedColumn=i,e.dataTransfer.setData("text","b")}onColumnDragEnter(e,i){if(this.reorderableColumns&&this.draggedColumn&&i){e.preventDefault();let r=A.getOffset(this.containerViewChild.nativeElement),s=A.getOffset(i);if(this.draggedColumn!=i){let o=A.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),a=A.indexWithinGroup(i,"preorderablecolumn"),l=s.left-r.left,u=s.left+i.offsetWidth/2;this.reorderIndicatorUpViewChild.nativeElement.style.top=s.top-r.top-(this.reorderIconHeight-1)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.top=s.top-r.top+i.offsetHeight+"px",e.pageX>u?(this.reorderIndicatorUpViewChild.nativeElement.style.left=l+i.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l+i.offsetWidth-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=1):(this.reorderIndicatorUpViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.reorderIndicatorDownViewChild.nativeElement.style.left=l-Math.ceil(this.reorderIconWidth/2)+"px",this.dropPosition=-1),a-o==1&&-1===this.dropPosition||a-o==-1&&1===this.dropPosition?(this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none"):(this.reorderIndicatorUpViewChild.nativeElement.style.display="block",this.reorderIndicatorDownViewChild.nativeElement.style.display="block")}else e.dataTransfer.dropEffect="none"}}onColumnDragLeave(e){this.reorderableColumns&&this.draggedColumn&&(e.preventDefault(),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none")}onColumnDrop(e,i){if(e.preventDefault(),this.draggedColumn){let r=A.indexWithinGroup(this.draggedColumn,"preorderablecolumn"),s=A.indexWithinGroup(i,"preorderablecolumn"),o=r!=s;o&&(s-r==1&&-1===this.dropPosition||r-s==1&&1===this.dropPosition)&&(o=!1),o&&s<r&&1===this.dropPosition&&(s+=1),o&&s>r&&-1===this.dropPosition&&(s-=1),o&&(U.reorderArray(this.columns,r,s),this.onColReorder.emit({dragIndex:r,dropIndex:s,columns:this.columns}),this.isStateful()&&this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.saveState()})})),this.reorderIndicatorUpViewChild.nativeElement.style.display="none",this.reorderIndicatorDownViewChild.nativeElement.style.display="none",this.draggedColumn.draggable=!1,this.draggedColumn=null,this.dropPosition=null}}onRowDragStart(e,i){this.rowDragging=!0,this.draggedRowIndex=i,e.dataTransfer.setData("text","b")}onRowDragOver(e,i,r){if(this.rowDragging&&this.draggedRowIndex!==i){let s=A.getOffset(r).top+A.getWindowScrollTop(),o=e.pageY,a=s+A.getOuterHeight(r)/2,l=r.previousElementSibling;o<a?(A.removeClass(r,"p-datatable-dragpoint-bottom"),this.droppedRowIndex=i,l?A.addClass(l,"p-datatable-dragpoint-bottom"):A.addClass(r,"p-datatable-dragpoint-top")):(l?A.removeClass(l,"p-datatable-dragpoint-bottom"):A.addClass(r,"p-datatable-dragpoint-top"),this.droppedRowIndex=i+1,A.addClass(r,"p-datatable-dragpoint-bottom"))}}onRowDragLeave(e,i){let r=i.previousElementSibling;r&&A.removeClass(r,"p-datatable-dragpoint-bottom"),A.removeClass(i,"p-datatable-dragpoint-bottom"),A.removeClass(i,"p-datatable-dragpoint-top")}onRowDragEnd(e){this.rowDragging=!1,this.draggedRowIndex=null,this.droppedRowIndex=null}onRowDrop(e,i){if(null!=this.droppedRowIndex){let r=this.draggedRowIndex>this.droppedRowIndex?this.droppedRowIndex:0===this.droppedRowIndex?0:this.droppedRowIndex-1;U.reorderArray(this.value,this.draggedRowIndex,r),this.virtualScroll&&(this._value=[...this._value]),this.onRowReorder.emit({dragIndex:this.draggedRowIndex,dropIndex:r})}this.onRowDragLeave(e,i),this.onRowDragEnd(e)}isEmpty(){let e=this.filteredValue||this.value;return null==e||0==e.length}getBlockableElement(){return this.el.nativeElement.children[0]}getStorage(){switch(this.stateStorage){case"local":return window.localStorage;case"session":return window.sessionStorage;default:throw new Error(this.stateStorage+' is not a valid value for the state storage, supported values are "local" and "session".')}}isStateful(){return null!=this.stateKey}saveState(){const e=this.getStorage();let i={};this.paginator&&(i.first=this.first,i.rows=this.rows),this.sortField&&(i.sortField=this.sortField,i.sortOrder=this.sortOrder),this.multiSortMeta&&(i.multiSortMeta=this.multiSortMeta),this.hasFilter()&&(i.filters=this.filters),this.resizableColumns&&this.saveColumnWidths(i),this.reorderableColumns&&this.saveColumnOrder(i),this.selection&&(i.selection=this.selection),Object.keys(this.expandedRowKeys).length&&(i.expandedRowKeys=this.expandedRowKeys),e.setItem(this.stateKey,JSON.stringify(i)),this.onStateSave.emit(i)}clearState(){const e=this.getStorage();this.stateKey&&e.removeItem(this.stateKey)}restoreState(){const i=this.getStorage().getItem(this.stateKey),r=/\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}.\d{3}Z/;if(i){let o=JSON.parse(i,function(o,a){return"string"==typeof a&&r.test(a)?new Date(a):a});this.paginator&&(void 0!==this.first&&(this.first=o.first,this.firstChange.emit(this.first)),void 0!==this.rows&&(this.rows=o.rows,this.rowsChange.emit(this.rows))),o.sortField&&(this.restoringSort=!0,this._sortField=o.sortField,this._sortOrder=o.sortOrder),o.multiSortMeta&&(this.restoringSort=!0,this._multiSortMeta=o.multiSortMeta),o.filters&&(this.restoringFilter=!0,this.filters=o.filters),this.resizableColumns&&(this.columnWidthsState=o.columnWidths,this.tableWidthState=o.tableWidth),o.expandedRowKeys&&(this.expandedRowKeys=o.expandedRowKeys),o.selection&&Promise.resolve(null).then(()=>this.selectionChange.emit(o.selection)),this.stateRestored=!0,this.onStateRestore.emit(o)}}saveColumnWidths(e){let i=[];A.find(this.containerViewChild.nativeElement,".p-datatable-thead > tr > th").forEach(s=>i.push(A.getOuterWidth(s))),e.columnWidths=i.join(","),"expand"===this.columnResizeMode&&(e.tableWidth=A.getOuterWidth(this.tableViewChild.nativeElement)+"px")}setResizeTableWidth(e){this.tableViewChild.nativeElement.style.width=e,this.tableViewChild.nativeElement.style.minWidth=e}restoreColumnWidths(){if(this.columnWidthsState){let e=this.columnWidthsState.split(",");if("expand"===this.columnResizeMode&&this.tableWidthState&&this.setResizeTableWidth(this.tableWidthState+"px"),U.isNotEmpty(e)){this.createStyleElement();let i="";e.forEach((r,s)=>{i+=`\n #${this.id}-table > .p-datatable-thead > tr > th:nth-child(${s+1}),\n #${this.id}-table > .p-datatable-tbody > tr > td:nth-child(${s+1}),\n #${this.id}-table > .p-datatable-tfoot > tr > td:nth-child(${s+1}) {\n width: ${r}px !important; max-width: ${r}px !important\n }\n `}),this.styleElement.innerHTML=i}}}saveColumnOrder(e){if(this.columns){let i=[];this.columns.map(r=>{i.push(r.field||r.key)}),e.columnOrder=i}}restoreColumnOrder(){const i=this.getStorage().getItem(this.stateKey);if(i){let s=JSON.parse(i).columnOrder;if(s){let o=[];s.map(a=>{let l=this.findColumnByKey(a);l&&o.push(l)}),this.columnOrderStateRestored=!0,this.columns=o}}}findColumnByKey(e){if(!this.columns)return null;for(let i of this.columns)if(i.key===e||i.field===e)return i}createStyleElement(){this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement)}getGroupRowsMeta(){return{field:this.groupRowsBy,order:this.groupRowsByOrder}}createResponsiveStyle(){this.responsiveStyleElement||(this.responsiveStyleElement=document.createElement("style"),this.responsiveStyleElement.type="text/css",document.head.appendChild(this.responsiveStyleElement),this.responsiveStyleElement.innerHTML=`\n@media screen and (max-width: ${this.breakpoint}) {\n #${this.id}-table > .p-datatable-thead > tr > th,\n #${this.id}-table > .p-datatable-tfoot > tr > td {\n display: none !important;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td {\n display: flex;\n width: 100% !important;\n align-items: center;\n justify-content: space-between;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td:not(:last-child) {\n border: 0 none;\n }\n\n #${this.id}.p-datatable-gridlines > .p-datatable-wrapper > .p-datatable-table > .p-datatable-tbody > tr > td:last-child {\n border-top: 0;\n border-right: 0;\n border-left: 0;\n }\n\n #${this.id}-table > .p-datatable-tbody > tr > td > .p-column-title {\n display: block;\n }\n}\n`)}destroyResponsiveStyle(){this.responsiveStyleElement&&(document.head.removeChild(this.responsiveStyleElement),this.responsiveStyleElement=null)}destroyStyleElement(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}ngOnDestroy(){this.unbindDocumentEditListener(),this.editingCell=null,this.initialized=null,this.destroyStyleElement(),this.destroyResponsiveStyle()}}return n.\u0275fac=function(e){return new(e||n)(M(ze),M(Qe),M(ty),M(bt),M(v_),M(Gd))},n.\u0275cmp=Se({type:n,selectors:[["p-table"]],contentQueries:function(e,i,r){if(1&e&&$t(r,en,4),2&e){let s;ie(s=re())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&(ke(EG,5),ke(TG,5),ke(IG,5),ke(MG,5),ke(kG,5),ke(AG,5),ke(OG,5),ke(PG,5),ke(RG,5)),2&e){let r;ie(r=re())&&(i.containerViewChild=r.first),ie(r=re())&&(i.resizeHelperViewChild=r.first),ie(r=re())&&(i.reorderIndicatorUpViewChild=r.first),ie(r=re())&&(i.reorderIndicatorDownViewChild=r.first),ie(r=re())&&(i.wrapperViewChild=r.first),ie(r=re())&&(i.tableViewChild=r.first),ie(r=re())&&(i.tableHeaderViewChild=r.first),ie(r=re())&&(i.tableFooterViewChild=r.first),ie(r=re())&&(i.scroller=r.first)}},hostAttrs:[1,"p-element"],inputs:{frozenColumns:"frozenColumns",frozenValue:"frozenValue",style:"style",styleClass:"styleClass",tableStyle:"tableStyle",tableStyleClass:"tableStyleClass",paginator:"paginator",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",alwaysShowPaginator:"alwaysShowPaginator",paginatorPosition:"paginatorPosition",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showJumpToPageInput:"showJumpToPageInput",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"showPageLinks",defaultSortOrder:"defaultSortOrder",sortMode:"sortMode",resetPageOnSort:"resetPageOnSort",selectionMode:"selectionMode",selectionPageOnly:"selectionPageOnly",contextMenuSelection:"contextMenuSelection",contextMenuSelectionMode:"contextMenuSelectionMode",dataKey:"dataKey",metaKeySelection:"metaKeySelection",rowSelectable:"rowSelectable",rowTrackBy:"rowTrackBy",lazy:"lazy",lazyLoadOnInit:"lazyLoadOnInit",compareSelectionBy:"compareSelectionBy",csvSeparator:"csvSeparator",exportFilename:"exportFilename",filters:"filters",globalFilterFields:"globalFilterFields",filterDelay:"filterDelay",filterLocale:"filterLocale",expandedRowKeys:"expandedRowKeys",editingRowKeys:"editingRowKeys",rowExpandMode:"rowExpandMode",scrollable:"scrollable",scrollDirection:"scrollDirection",rowGroupMode:"rowGroupMode",scrollHeight:"scrollHeight",virtualScroll:"virtualScroll",virtualScrollItemSize:"virtualScrollItemSize",virtualScrollOptions:"virtualScrollOptions",virtualScrollDelay:"virtualScrollDelay",frozenWidth:"frozenWidth",responsive:"responsive",contextMenu:"contextMenu",resizableColumns:"resizableColumns",columnResizeMode:"columnResizeMode",reorderableColumns:"reorderableColumns",loading:"loading",loadingIcon:"loadingIcon",showLoader:"showLoader",rowHover:"rowHover",customSort:"customSort",showInitialSortBadge:"showInitialSortBadge",autoLayout:"autoLayout",exportFunction:"exportFunction",exportHeader:"exportHeader",stateKey:"stateKey",stateStorage:"stateStorage",editMode:"editMode",groupRowsBy:"groupRowsBy",groupRowsByOrder:"groupRowsByOrder",responsiveLayout:"responsiveLayout",breakpoint:"breakpoint",virtualRowHeight:"virtualRowHeight",value:"value",columns:"columns",first:"first",rows:"rows",totalRecords:"totalRecords",sortField:"sortField",sortOrder:"sortOrder",multiSortMeta:"multiSortMeta",selection:"selection",selectAll:"selectAll"},outputs:{selectAllChange:"selectAllChange",selectionChange:"selectionChange",contextMenuSelectionChange:"contextMenuSelectionChange",onRowSelect:"onRowSelect",onRowUnselect:"onRowUnselect",onPage:"onPage",onSort:"onSort",onFilter:"onFilter",onLazyLoad:"onLazyLoad",onRowExpand:"onRowExpand",onRowCollapse:"onRowCollapse",onContextMenuSelect:"onContextMenuSelect",onColResize:"onColResize",onColReorder:"onColReorder",onRowReorder:"onRowReorder",onEditInit:"onEditInit",onEditComplete:"onEditComplete",onEditCancel:"onEditCancel",onHeaderCheckboxToggle:"onHeaderCheckboxToggle",sortFunction:"sortFunction",firstChange:"firstChange",rowsChange:"rowsChange",onStateSave:"onStateSave",onStateRestore:"onStateRestore"},features:[Be([ty]),Zt],decls:16,vars:22,consts:[[3,"ngStyle","ngClass"],["container",""],["class","p-datatable-loading-overlay p-component-overlay",4,"ngIf"],["class","p-datatable-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange",4,"ngIf"],[1,"p-datatable-wrapper",3,"ngStyle"],["wrapper",""],[3,"items","columns","style","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","onLazyLoad",4,"ngIf"],[4,"ngIf"],["buildInTable",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange",4,"ngIf"],["class","p-datatable-footer",4,"ngIf"],["class","p-column-resizer-helper","style","display:none",4,"ngIf"],["class","pi pi-arrow-down p-datatable-reorder-indicator-up","style","display:none",4,"ngIf"],["class","pi pi-arrow-up p-datatable-reorder-indicator-down","style","display:none",4,"ngIf"],[1,"p-datatable-loading-overlay","p-component-overlay"],[1,"p-datatable-header"],[4,"ngTemplateOutlet"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange"],[3,"items","columns","scrollHeight","itemSize","step","delay","inline","lazy","loaderDisabled","showSpacer","showLoader","options","onLazyLoad"],["scroller",""],["pTemplate","content"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["role","table",3,"ngClass"],["table",""],[1,"p-datatable-thead"],["thead",""],["class","p-datatable-tbody p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen",4,"ngIf"],[1,"p-datatable-tbody",3,"ngClass","value","pTableBody","pTableBodyTemplate","scrollerOptions"],["class","p-datatable-scroller-spacer",3,"style",4,"ngIf"],["class","p-datatable-tfoot",4,"ngIf"],[1,"p-datatable-tbody","p-datatable-frozen-tbody",3,"value","frozenRows","pTableBody","pTableBodyTemplate","frozen"],[1,"p-datatable-scroller-spacer"],[1,"p-datatable-tfoot"],["tfoot",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","templateLeft","templateRight","dropdownAppendTo","dropdownScrollHeight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showJumpToPageInput","showPageLinks","onPageChange"],[1,"p-datatable-footer"],[1,"p-column-resizer-helper",2,"display","none"],["resizeHelper",""],[1,"pi","pi-arrow-down","p-datatable-reorder-indicator-up",2,"display","none"],["reorderIndicatorUp",""],[1,"pi","pi-arrow-up","p-datatable-reorder-indicator-down",2,"display","none"],["reorderIndicatorDown",""]],template:function(e,i){1&e&&(b(0,"div",0,1),S(2,FG,2,2,"div",2),S(3,NG,2,1,"div",3),S(4,VG,1,17,"p-paginator",4),b(5,"div",5,6),S(7,jG,3,16,"p-scroller",7),S(8,WG,2,7,"ng-container",8),S(9,JG,10,28,"ng-template",null,9,Xt),w(),S(11,e9,1,17,"p-paginator",10),S(12,n9,2,1,"div",11),S(13,r9,2,0,"div",12),S(14,s9,2,0,"span",13),S(15,o9,2,0,"span",14),w()),2&e&&(fe(i.styleClass),m("ngStyle",i.style)("ngClass",ui(16,a9,i.rowHover||i.selectionMode,i.scrollable,i.scrollable&&"flex"===i.scrollHeight)),Ce("id",i.id),v(2),m("ngIf",i.loading&&i.showLoader),v(1),m("ngIf",i.captionTemplate),v(1),m("ngIf",i.paginator&&("top"===i.paginatorPosition||"both"==i.paginatorPosition)),v(1),m("ngStyle",oe(20,l9,i.virtualScroll?"":i.scrollHeight)),v(2),m("ngIf",i.virtualScroll),v(1),m("ngIf",!i.virtualScroll),v(3),m("ngIf",i.paginator&&("bottom"===i.paginatorPosition||"both"==i.paginatorPosition)),v(1),m("ngIf",i.summaryTemplate),v(1),m("ngIf",i.resizableColumns),v(1),m("ngIf",i.reorderableColumns),v(1),m("ngIf",i.reorderableColumns))},dependencies:function(){return[_t,lt,on,ut,vI,en,NT,uK]},styles:[".p-datatable{position:relative}.p-datatable>.p-datatable-wrapper{overflow:auto}.p-datatable-table{border-spacing:0px;width:100%}.p-datatable .p-sortable-column{cursor:pointer;-webkit-user-select:none;user-select:none}.p-datatable .p-sortable-column .p-column-title,.p-datatable .p-sortable-column .p-sortable-column-icon,.p-datatable .p-sortable-column .p-sortable-column-badge{vertical-align:middle}.p-datatable .p-sortable-column .p-sortable-column-badge{display:inline-flex;align-items:center;justify-content:center}.p-datatable-hoverable-rows .p-selectable-row{cursor:pointer}.p-datatable-scrollable>.p-datatable-wrapper{position:relative}.p-datatable-scrollable-table>.p-datatable-thead{position:sticky;top:0;z-index:1}.p-datatable-scrollable-table>.p-datatable-frozen-tbody{position:sticky;z-index:1}.p-datatable-scrollable-table>.p-datatable-tfoot{position:sticky;bottom:0;z-index:1}.p-datatable-scrollable .p-frozen-column{position:sticky;background:inherit}.p-datatable-scrollable th.p-frozen-column{z-index:1}.p-datatable-flex-scrollable{display:flex;flex-direction:column;height:100%}.p-datatable-flex-scrollable>.p-datatable-wrapper{display:flex;flex-direction:column;flex:1;height:100%}.p-datatable-scrollable-table>.p-datatable-tbody>.p-rowgroup-header{position:sticky;z-index:1}.p-datatable-resizable-table>.p-datatable-thead>tr>th,.p-datatable-resizable-table>.p-datatable-tfoot>tr>td,.p-datatable-resizable-table>.p-datatable-tbody>tr>td{overflow:hidden;white-space:nowrap}.p-datatable-resizable-table>.p-datatable-thead>tr>th.p-resizable-column:not(.p-frozen-column){background-clip:padding-box;position:relative}.p-datatable-resizable-table-fit>.p-datatable-thead>tr>th.p-resizable-column:last-child .p-column-resizer{display:none}.p-datatable .p-column-resizer{display:block;position:absolute!important;top:0;right:0;margin:0;width:.5rem;height:100%;padding:0;cursor:col-resize;border:1px solid transparent}.p-datatable .p-column-resizer-helper{width:1px;position:absolute;z-index:10;display:none}.p-datatable .p-row-editor-init,.p-datatable .p-row-editor-save,.p-datatable .p-row-editor-cancel,.p-datatable .p-row-toggler{display:inline-flex;align-items:center;justify-content:center;overflow:hidden;position:relative}.p-datatable-reorder-indicator-up,.p-datatable-reorder-indicator-down{position:absolute;display:none}.p-datatable-reorderablerow-handle,[pReorderableColumn]{cursor:move}.p-datatable .p-datatable-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}.p-column-filter-row{display:flex;align-items:center;width:100%}.p-column-filter-menu{display:inline-flex}.p-column-filter-row p-columnfilterformelement{flex:1 1 auto;width:1%}.p-column-filter-menu-button,.p-column-filter-clear-button{display:inline-flex;justify-content:center;align-items:center;cursor:pointer;text-decoration:none;overflow:hidden;position:relative}.p-column-filter-overlay{position:absolute;top:0;left:0}.p-column-filter-row-items{margin:0;padding:0;list-style:none}.p-column-filter-row-item{cursor:pointer}.p-column-filter-add-button,.p-column-filter-remove-button{justify-content:center}.p-column-filter-add-button .p-button-label,.p-column-filter-remove-button .p-button-label{flex-grow:0}.p-column-filter-buttonbar{display:flex;align-items:center;justify-content:space-between}.p-column-filter-buttonbar .p-button{width:auto}.p-datatable-tbody>tr>td>.p-column-title{display:none}.p-datatable-scroller-spacer{display:flex}.p-datatable .p-scroller .p-scroller-loading{transform:none!important;min-height:0;position:sticky;top:0;left:0}\n"],encapsulation:2}),n})(),uK=(()=>{class n{constructor(e,i,r,s){this.dt=e,this.tableService=i,this.cd=r,this.el=s,this.subscription=this.dt.tableService.valueSource$.subscribe(()=>{this.dt.virtualScroll&&this.cd.detectChanges()})}get value(){return this._value}set value(e){this._value=e,this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}ngAfterViewInit(){this.frozenRows&&this.updateFrozenRowStickyPosition(),this.dt.scrollable&&"subheader"===this.dt.rowGroupMode&&this.updateFrozenRowGroupHeaderStickyPosition()}shouldRenderRowGroupHeader(e,i,r){let s=U.resolveFieldData(i,this.dt.groupRowsBy),o=e[r-1];return!o||s!==U.resolveFieldData(o,this.dt.groupRowsBy)}shouldRenderRowGroupFooter(e,i,r){let s=U.resolveFieldData(i,this.dt.groupRowsBy),o=e[r+1];return!o||s!==U.resolveFieldData(o,this.dt.groupRowsBy)}shouldRenderRowspan(e,i,r){let s=U.resolveFieldData(i,this.dt.groupRowsBy),o=e[r-1];return!o||s!==U.resolveFieldData(o,this.dt.groupRowsBy)}calculateRowGroupSize(e,i,r){let s=U.resolveFieldData(i,this.dt.groupRowsBy),o=s,a=0;for(;s===o;){a++;let l=e[++r];if(!l)break;o=U.resolveFieldData(l,this.dt.groupRowsBy)}return 1===a?null:a}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}updateFrozenRowStickyPosition(){this.el.nativeElement.style.top=A.getOuterHeight(this.el.nativeElement.previousElementSibling)+"px"}updateFrozenRowGroupHeaderStickyPosition(){if(this.el.nativeElement.previousElementSibling){let e=A.getOuterHeight(this.el.nativeElement.previousElementSibling);this.dt.rowGroupHeaderStyleObject.top=e+"px"}}getScrollerOption(e,i){return this.dt.virtualScroll&&(i=i||this.scrollerOptions)?i[e]:null}getRowIndex(e){const i=this.dt.paginator?this.dt.first+e:e,r=this.getScrollerOption("getItemOptions");return r?r(i).index:i}}return n.\u0275fac=function(e){return new(e||n)(M(ny),M(ty),M(bt),M(ze))},n.\u0275cmp=Se({type:n,selectors:[["","pTableBody",""]],hostAttrs:[1,"p-element"],inputs:{columns:["pTableBody","columns"],template:["pTableBodyTemplate","template"],value:"value",frozen:"frozen",frozenRows:"frozenRows",scrollerOptions:"scrollerOptions"},attrs:c9,decls:5,vars:5,consts:[[4,"ngIf"],["ngFor","",3,"ngForOf","ngForTrackBy"],["role","row",4,"ngIf"],["role","row"],[4,"ngTemplateOutlet","ngTemplateOutletContext"]],template:function(e,i){1&e&&(S(0,b9,2,2,"ng-container",0),S(1,k9,2,2,"ng-container",0),S(2,F9,2,2,"ng-container",0),S(3,N9,2,5,"ng-container",0),S(4,B9,2,5,"ng-container",0)),2&e&&(m("ngIf",!i.dt.expandedRowTemplate),v(1),m("ngIf",i.dt.expandedRowTemplate&&!(i.frozen&&i.dt.frozenExpandedRowTemplate)),v(1),m("ngIf",i.dt.frozenExpandedRowTemplate&&i.frozen),v(1),m("ngIf",i.dt.loading),v(1),m("ngIf",i.dt.isEmpty()&&!i.dt.loading))},dependencies:[fi,lt,on],encapsulation:2}),n})(),DI=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We,bI,sh,ic,rh,es,yG,U7,ec,xG,ah,cn,ah]}),n})();function ga(n){return n+.5|0}const Dr=(n,t,e)=>Math.max(Math.min(n,e),t);function cc(n){return Dr(ga(2.55*n),0,255)}function ss(n){return Dr(ga(255*n),0,255)}function xr(n){return Dr(ga(n/2.55)/100,0,1)}function xI(n){return Dr(ga(100*n),0,100)}const gi={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},iy=[..."0123456789ABCDEF"],dK=n=>iy[15&n],hK=n=>iy[(240&n)>>4]+iy[15&n],gh=n=>(240&n)>>4==(15&n);const _K=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function EI(n,t,e){const i=t*Math.min(e,1-e),r=(s,o=(s+n/30)%12)=>e-i*Math.max(Math.min(o-3,9-o,1),-1);return[r(0),r(8),r(4)]}function yK(n,t,e){const i=(r,s=(r+n/60)%6)=>e-e*t*Math.max(Math.min(s,4-s,1),0);return[i(5),i(3),i(1)]}function vK(n,t,e){const i=EI(n,1,.5);let r;for(t+e>1&&(r=1/(t+e),t*=r,e*=r),r=0;r<3;r++)i[r]*=1-t-e,i[r]+=t;return i}function ry(n){const e=n.r/255,i=n.g/255,r=n.b/255,s=Math.max(e,i,r),o=Math.min(e,i,r),a=(s+o)/2;let l,c,u;return s!==o&&(u=s-o,c=a>.5?u/(2-s-o):u/(s+o),l=function bK(n,t,e,i,r){return n===r?(t-e)/i+(t<e?6:0):t===r?(e-n)/i+2:(n-t)/i+4}(e,i,r,u,s),l=60*l+.5),[0|l,c||0,a]}function sy(n,t,e,i){return(Array.isArray(t)?n(t[0],t[1],t[2]):n(t,e,i)).map(ss)}function oy(n,t,e){return sy(EI,n,t,e)}function TI(n){return(n%360+360)%360}const II={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},MI={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};let mh;const IK=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/,ay=n=>n<=.0031308?12.92*n:1.055*Math.pow(n,1/2.4)-.055,ma=n=>n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4);function _h(n,t,e){if(n){let i=ry(n);i[t]=Math.max(0,Math.min(i[t]+i[t]*e,0===t?360:1)),i=oy(i),n.r=i[0],n.g=i[1],n.b=i[2]}}function kI(n,t){return n&&Object.assign(t||{},n)}function AI(n){var t={r:0,g:0,b:0,a:255};return Array.isArray(n)?n.length>=3&&(t={r:n[0],g:n[1],b:n[2],a:255},n.length>3&&(t.a=ss(n[3]))):(t=kI(n,{r:0,g:0,b:0,a:1})).a=ss(t.a),t}function OK(n){return"r"===n.charAt(0)?function MK(n){const t=IK.exec(n);let i,r,s,e=255;if(t){if(t[7]!==i){const o=+t[7];e=t[8]?cc(o):Dr(255*o,0,255)}return i=+t[1],r=+t[3],s=+t[5],i=255&(t[2]?cc(i):Dr(i,0,255)),r=255&(t[4]?cc(r):Dr(r,0,255)),s=255&(t[6]?cc(s):Dr(s,0,255)),{r:i,g:r,b:s,a:e}}}(n):function SK(n){const t=_K.exec(n);let i,e=255;if(!t)return;t[5]!==i&&(e=t[6]?cc(+t[5]):ss(+t[5]));const r=TI(+t[2]),s=+t[3]/100,o=+t[4]/100;return i="hwb"===t[1]?function wK(n,t,e){return sy(vK,n,t,e)}(r,s,o):"hsv"===t[1]?function CK(n,t,e){return sy(yK,n,t,e)}(r,s,o):oy(r,s,o),{r:i[0],g:i[1],b:i[2],a:e}}(n)}class _a{constructor(t){if(t instanceof _a)return t;const e=typeof t;let i;"object"===e?i=AI(t):"string"===e&&(i=function pK(n){var e,t=n.length;return"#"===n[0]&&(4===t||5===t?e={r:255&17*gi[n[1]],g:255&17*gi[n[2]],b:255&17*gi[n[3]],a:5===t?17*gi[n[4]]:255}:(7===t||9===t)&&(e={r:gi[n[1]]<<4|gi[n[2]],g:gi[n[3]]<<4|gi[n[4]],b:gi[n[5]]<<4|gi[n[6]],a:9===t?gi[n[7]]<<4|gi[n[8]]:255})),e}(t)||function TK(n){mh||(mh=function EK(){const n={},t=Object.keys(MI),e=Object.keys(II);let i,r,s,o,a;for(i=0;i<t.length;i++){for(o=a=t[i],r=0;r<e.length;r++)s=e[r],a=a.replace(s,II[s]);s=parseInt(MI[o],16),n[a]=[s>>16&255,s>>8&255,255&s]}return n}(),mh.transparent=[0,0,0,0]);const t=mh[n.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:4===t.length?t[3]:255}}(t)||OK(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=kI(this._rgb);return t&&(t.a=xr(t.a)),t}set rgb(t){this._rgb=AI(t)}rgbString(){return this._valid?function kK(n){return n&&(n.a<255?`rgba(${n.r}, ${n.g}, ${n.b}, ${xr(n.a)})`:`rgb(${n.r}, ${n.g}, ${n.b})`)}(this._rgb):void 0}hexString(){return this._valid?function mK(n){var t=(n=>gh(n.r)&&gh(n.g)&&gh(n.b)&&gh(n.a))(n)?dK:hK;return n?"#"+t(n.r)+t(n.g)+t(n.b)+((n,t)=>n<255?t(n):"")(n.a,t):void 0}(this._rgb):void 0}hslString(){return this._valid?function xK(n){if(!n)return;const t=ry(n),e=t[0],i=xI(t[1]),r=xI(t[2]);return n.a<255?`hsla(${e}, ${i}%, ${r}%, ${xr(n.a)})`:`hsl(${e}, ${i}%, ${r}%)`}(this._rgb):void 0}mix(t,e){if(t){const i=this.rgb,r=t.rgb;let s;const o=e===s?.5:e,a=2*o-1,l=i.a-r.a,c=((a*l==-1?a:(a+l)/(1+a*l))+1)/2;s=1-c,i.r=255&c*i.r+s*r.r+.5,i.g=255&c*i.g+s*r.g+.5,i.b=255&c*i.b+s*r.b+.5,i.a=o*i.a+(1-o)*r.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=function AK(n,t,e){const i=ma(xr(n.r)),r=ma(xr(n.g)),s=ma(xr(n.b));return{r:ss(ay(i+e*(ma(xr(t.r))-i))),g:ss(ay(r+e*(ma(xr(t.g))-r))),b:ss(ay(s+e*(ma(xr(t.b))-s))),a:n.a+e*(t.a-n.a)}}(this._rgb,t._rgb,e)),this}clone(){return new _a(this.rgb)}alpha(t){return this._rgb.a=ss(t),this}clearer(t){return this._rgb.a*=1-t,this}greyscale(){const t=this._rgb,e=ga(.3*t.r+.59*t.g+.11*t.b);return t.r=t.g=t.b=e,this}opaquer(t){return this._rgb.a*=1+t,this}negate(){const t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return _h(this._rgb,2,t),this}darken(t){return _h(this._rgb,2,-t),this}saturate(t){return _h(this._rgb,1,t),this}desaturate(t){return _h(this._rgb,1,-t),this}rotate(t){return function DK(n,t){var e=ry(n);e[0]=TI(e[0]+t),e=oy(e),n.r=e[0],n.g=e[1],n.b=e[2]}(this._rgb,t),this}}function Er(){}const PK=(()=>{let n=0;return()=>n++})();function je(n){return null===n||typeof n>"u"}function dt(n){if(Array.isArray&&Array.isArray(n))return!0;const t=Object.prototype.toString.call(n);return"[object"===t.slice(0,7)&&"Array]"===t.slice(-6)}function Re(n){return null!==n&&"[object Object]"===Object.prototype.toString.call(n)}function Et(n){return("number"==typeof n||n instanceof Number)&&isFinite(+n)}function ei(n,t){return Et(n)?n:t}function xe(n,t){return typeof n>"u"?t:n}const OI=(n,t)=>"string"==typeof n&&n.endsWith("%")?parseFloat(n)/100*t:+n;function ct(n,t,e){if(n&&"function"==typeof n.call)return n.apply(e,t)}function Ze(n,t,e,i){let r,s,o;if(dt(n))if(s=n.length,i)for(r=s-1;r>=0;r--)t.call(e,n[r],r);else for(r=0;r<s;r++)t.call(e,n[r],r);else if(Re(n))for(o=Object.keys(n),s=o.length,r=0;r<s;r++)t.call(e,n[o[r]],o[r])}function yh(n,t){let e,i,r,s;if(!n||!t||n.length!==t.length)return!1;for(e=0,i=n.length;e<i;++e)if(r=n[e],s=t[e],r.datasetIndex!==s.datasetIndex||r.index!==s.index)return!1;return!0}function vh(n){if(dt(n))return n.map(vh);if(Re(n)){const t=Object.create(null),e=Object.keys(n),i=e.length;let r=0;for(;r<i;++r)t[e[r]]=vh(n[e[r]]);return t}return n}function PI(n){return-1===["__proto__","prototype","constructor"].indexOf(n)}function FK(n,t,e,i){if(!PI(n))return;const r=t[n],s=e[n];Re(r)&&Re(s)?uc(r,s,i):t[n]=vh(s)}function uc(n,t,e){const i=dt(t)?t:[t],r=i.length;if(!Re(n))return n;const s=(e=e||{}).merger||FK;let o;for(let a=0;a<r;++a){if(o=i[a],!Re(o))continue;const l=Object.keys(o);for(let c=0,u=l.length;c<u;++c)s(l[c],n,o,e)}return n}function dc(n,t){return uc(n,t,{merger:LK})}function LK(n,t,e){if(!PI(n))return;const i=t[n],r=e[n];Re(i)&&Re(r)?dc(i,r):Object.prototype.hasOwnProperty.call(t,n)||(t[n]=vh(r))}const RI={"":n=>n,x:n=>n.x,y:n=>n.y};function os(n,t){return(RI[t]||(RI[t]=function VK(n){const t=function NK(n){const t=n.split("."),e=[];let i="";for(const r of t)i+=r,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}(n);return e=>{for(const i of t){if(""===i)break;e=e&&e[i]}return e}}(t)))(n)}function ly(n){return n.charAt(0).toUpperCase()+n.slice(1)}const mi=n=>typeof n<"u",as=n=>"function"==typeof n,FI=(n,t)=>{if(n.size!==t.size)return!1;for(const e of n)if(!t.has(e))return!1;return!0},yt=Math.PI,ht=2*yt,HK=ht+yt,bh=Number.POSITIVE_INFINITY,zK=yt/180,Tt=yt/2,Gs=yt/4,LI=2*yt/3,ls=Math.log10,Qi=Math.sign;function hc(n,t,e){return Math.abs(n-t)<e}function NI(n){const t=Math.round(n);n=hc(n,t,n/1e3)?t:n;const e=Math.pow(10,Math.floor(ls(n))),i=n/e;return(i<=1?1:i<=2?2:i<=5?5:10)*e}function ya(n){return!isNaN(parseFloat(n))&&isFinite(n)}function VI(n,t,e){let i,r,s;for(i=0,r=n.length;i<r;i++)s=n[i][e],isNaN(s)||(t.min=Math.min(t.min,s),t.max=Math.max(t.max,s))}function Ni(n){return n*(yt/180)}function cy(n){return n*(180/yt)}function BI(n){if(!Et(n))return;let t=1,e=0;for(;Math.round(n*t)/t!==n;)t*=10,e++;return e}function HI(n,t){const e=t.x-n.x,i=t.y-n.y,r=Math.sqrt(e*e+i*i);let s=Math.atan2(i,e);return s<-.5*yt&&(s+=ht),{angle:s,distance:r}}function uy(n,t){return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}function UK(n,t){return(n-t+HK)%ht-yt}function ti(n){return(n%ht+ht)%ht}function fc(n,t,e,i){const r=ti(n),s=ti(t),o=ti(e),a=ti(s-r),l=ti(o-r),c=ti(r-s),u=ti(r-o);return r===s||r===o||i&&s===o||a>l&&c<u}function tn(n,t,e){return Math.max(t,Math.min(e,n))}function Tr(n,t,e,i=1e-6){return n>=Math.min(t,e)-i&&n<=Math.max(t,e)+i}function dy(n,t,e){e=e||(o=>n[o]<t);let s,i=n.length-1,r=0;for(;i-r>1;)s=r+i>>1,e(s)?r=s:i=s;return{lo:r,hi:i}}const Ir=(n,t,e,i)=>dy(n,e,i?r=>{const s=n[r][t];return s<e||s===e&&n[r+1][t]===e}:r=>n[r][t]<e),GK=(n,t,e)=>dy(n,e,i=>n[i][t]>=e),zI=["push","pop","shift","splice","unshift"];function jI(n,t){const e=n._chartjs;if(!e)return;const i=e.listeners,r=i.indexOf(t);-1!==r&&i.splice(r,1),!(i.length>0)&&(zI.forEach(s=>{delete n[s]}),delete n._chartjs)}function $I(n){const t=new Set;let e,i;for(e=0,i=n.length;e<i;++e)t.add(n[e]);return t.size===i?n:Array.from(t)}const UI=typeof window>"u"?function(n){return n()}:window.requestAnimationFrame;function WI(n,t){let e=[],i=!1;return function(...r){e=r,i||(i=!0,UI.call(window,()=>{i=!1,n.apply(t,e)}))}}const hy=n=>"start"===n?"left":"end"===n?"right":"center",wn=(n,t,e)=>"start"===n?t:"end"===n?e:(t+e)/2;function GI(n,t,e){const i=t.length;let r=0,s=i;if(n._sorted){const{iScale:o,_parsed:a}=n,l=o.axis,{min:c,max:u,minDefined:d,maxDefined:h}=o.getUserBounds();d&&(r=tn(Math.min(Ir(a,o.axis,c).lo,e?i:Ir(t,l,o.getPixelForValue(c)).lo),0,i-1)),s=h?tn(Math.max(Ir(a,o.axis,u,!0).hi+1,e?0:Ir(t,l,o.getPixelForValue(u),!0).hi+1),r,i)-r:i-r}return{start:r,count:s}}function KI(n){const{xScale:t,yScale:e,_scaleRanges:i}=n,r={xmin:t.min,xmax:t.max,ymin:e.min,ymax:e.max};if(!i)return n._scaleRanges=r,!0;const s=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,r),s}const wh=n=>0===n||1===n,qI=(n,t,e)=>-Math.pow(2,10*(n-=1))*Math.sin((n-t)*ht/e),YI=(n,t,e)=>Math.pow(2,-10*n)*Math.sin((n-t)*ht/e)+1,pc={linear:n=>n,easeInQuad:n=>n*n,easeOutQuad:n=>-n*(n-2),easeInOutQuad:n=>(n/=.5)<1?.5*n*n:-.5*(--n*(n-2)-1),easeInCubic:n=>n*n*n,easeOutCubic:n=>(n-=1)*n*n+1,easeInOutCubic:n=>(n/=.5)<1?.5*n*n*n:.5*((n-=2)*n*n+2),easeInQuart:n=>n*n*n*n,easeOutQuart:n=>-((n-=1)*n*n*n-1),easeInOutQuart:n=>(n/=.5)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2),easeInQuint:n=>n*n*n*n*n,easeOutQuint:n=>(n-=1)*n*n*n*n+1,easeInOutQuint:n=>(n/=.5)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2),easeInSine:n=>1-Math.cos(n*Tt),easeOutSine:n=>Math.sin(n*Tt),easeInOutSine:n=>-.5*(Math.cos(yt*n)-1),easeInExpo:n=>0===n?0:Math.pow(2,10*(n-1)),easeOutExpo:n=>1===n?1:1-Math.pow(2,-10*n),easeInOutExpo:n=>wh(n)?n:n<.5?.5*Math.pow(2,10*(2*n-1)):.5*(2-Math.pow(2,-10*(2*n-1))),easeInCirc:n=>n>=1?n:-(Math.sqrt(1-n*n)-1),easeOutCirc:n=>Math.sqrt(1-(n-=1)*n),easeInOutCirc:n=>(n/=.5)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1),easeInElastic:n=>wh(n)?n:qI(n,.075,.3),easeOutElastic:n=>wh(n)?n:YI(n,.075,.3),easeInOutElastic:n=>wh(n)?n:n<.5?.5*qI(2*n,.1125,.45):.5+.5*YI(2*n-1,.1125,.45),easeInBack:n=>n*n*(2.70158*n-1.70158),easeOutBack:n=>(n-=1)*n*(2.70158*n+1.70158)+1,easeInOutBack(n){let t=1.70158;return(n/=.5)<1?n*n*((1+(t*=1.525))*n-t)*.5:.5*((n-=2)*n*((1+(t*=1.525))*n+t)+2)},easeInBounce:n=>1-pc.easeOutBounce(1-n),easeOutBounce:n=>n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375,easeInOutBounce:n=>n<.5?.5*pc.easeInBounce(2*n):.5*pc.easeOutBounce(2*n-1)+.5};function QI(n){if(n&&"object"==typeof n){const t=n.toString();return"[object CanvasPattern]"===t||"[object CanvasGradient]"===t}return!1}function ZI(n){return QI(n)?n:new _a(n)}function fy(n){return QI(n)?n:new _a(n).saturate(.5).darken(.1).hexString()}const ZK=["x","y","borderWidth","radius","tension"],XK=["color","borderColor","backgroundColor"],XI=new Map;function gc(n,t,e){return function tq(n,t){t=t||{};const e=n+JSON.stringify(t);let i=XI.get(e);return i||(i=new Intl.NumberFormat(n,t),XI.set(e,i)),i}(t,e).format(n)}const JI={values:n=>dt(n)?n:""+n,numeric(n,t,e){if(0===n)return"0";const i=this.chart.options.locale;let r,s=n;if(e.length>1){const c=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(c<1e-4||c>1e15)&&(r="scientific"),s=function nq(n,t){let e=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(e)>=1&&n!==Math.floor(n)&&(e=n-Math.floor(n)),e}(n,e)}const o=ls(Math.abs(s)),a=Math.max(Math.min(-1*Math.floor(o),20),0),l={notation:r,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(l,this.options.ticks.format),gc(n,i,l)},logarithmic(n,t,e){if(0===n)return"0";const i=e[t].significand||n/Math.pow(10,Math.floor(ls(n)));return[1,2,3,5,10,15].includes(i)||t>.8*e.length?JI.numeric.call(this,n,t,e):""}};var Ch={formatters:JI};const Ks=Object.create(null),py=Object.create(null);function mc(n,t){if(!t)return n;const e=t.split(".");for(let i=0,r=e.length;i<r;++i){const s=e[i];n=n[s]||(n[s]=Object.create(null))}return n}function gy(n,t,e){return"string"==typeof t?uc(mc(n,t),e):uc(mc(n,""),t)}class rq{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,r)=>fy(r.backgroundColor),this.hoverBorderColor=(i,r)=>fy(r.borderColor),this.hoverColor=(i,r)=>fy(r.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return gy(this,t,e)}get(t){return mc(this,t)}describe(t,e){return gy(py,t,e)}override(t,e){return gy(Ks,t,e)}route(t,e,i,r){const s=mc(this,t),o=mc(this,i),a="_"+e;Object.defineProperties(s,{[a]:{value:s[e],writable:!0},[e]:{enumerable:!0,get(){const l=this[a],c=o[r];return Re(l)?Object.assign({},c,l):xe(l,c)},set(l){this[a]=l}}})}apply(t){t.forEach(e=>e(this))}}var Ot=new rq({_scriptable:n=>!n.startsWith("on"),_indexable:n=>"events"!==n,hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[function JK(n){n.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),n.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>"onProgress"!==t&&"onComplete"!==t&&"fn"!==t}),n.set("animations",{colors:{type:"color",properties:XK},numbers:{type:"number",properties:ZK}}),n.describe("animations",{_fallback:"animation"}),n.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>0|t}}}})},function eq(n){n.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})},function iq(n){n.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Ch.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),n.route("scale.ticks","color","","color"),n.route("scale.grid","color","","borderColor"),n.route("scale.border","color","","borderColor"),n.route("scale.title","color","","color"),n.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&"callback"!==t&&"parser"!==t,_indexable:t=>"borderDash"!==t&&"tickBorderDash"!==t&&"dash"!==t}),n.describe("scales",{_fallback:"scale"}),n.describe("scale.ticks",{_scriptable:t=>"backdropPadding"!==t&&"callback"!==t,_indexable:t=>"backdropPadding"!==t})}]);function Sh(n,t,e,i,r){let s=t[r];return s||(s=t[r]=n.measureText(r).width,e.push(r)),s>i&&(i=s),i}function oq(n,t,e,i){let r=(i=i||{}).data=i.data||{},s=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(r=i.data={},s=i.garbageCollect=[],i.font=t),n.save(),n.font=t;let o=0;const a=e.length;let l,c,u,d,h;for(l=0;l<a;l++)if(d=e[l],null!=d&&!0!==dt(d))o=Sh(n,r,s,o,d);else if(dt(d))for(c=0,u=d.length;c<u;c++)h=d[c],null!=h&&!dt(h)&&(o=Sh(n,r,s,o,h));n.restore();const f=s.length/2;if(f>e.length){for(l=0;l<f;l++)delete r[s[l]];s.splice(0,f)}return o}function qs(n,t,e){const i=n.currentDevicePixelRatio,r=0!==e?Math.max(e/2,.5):0;return Math.round((t-r)*i)/i+r}function eM(n,t){(t=t||n.getContext("2d")).save(),t.resetTransform(),t.clearRect(0,0,n.width,n.height),t.restore()}function my(n,t,e,i){tM(n,t,e,i,null)}function tM(n,t,e,i,r){let s,o,a,l,c,u,d,h;const f=t.pointStyle,p=t.rotation,g=t.radius;let y=(p||0)*zK;if(f&&"object"==typeof f&&(s=f.toString(),"[object HTMLImageElement]"===s||"[object HTMLCanvasElement]"===s))return n.save(),n.translate(e,i),n.rotate(y),n.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),void n.restore();if(!(isNaN(g)||g<=0)){switch(n.beginPath(),f){default:r?n.ellipse(e,i,r/2,g,0,0,ht):n.arc(e,i,g,0,ht),n.closePath();break;case"triangle":u=r?r/2:g,n.moveTo(e+Math.sin(y)*u,i-Math.cos(y)*g),y+=LI,n.lineTo(e+Math.sin(y)*u,i-Math.cos(y)*g),y+=LI,n.lineTo(e+Math.sin(y)*u,i-Math.cos(y)*g),n.closePath();break;case"rectRounded":c=.516*g,l=g-c,o=Math.cos(y+Gs)*l,d=Math.cos(y+Gs)*(r?r/2-c:l),a=Math.sin(y+Gs)*l,h=Math.sin(y+Gs)*(r?r/2-c:l),n.arc(e-d,i-a,c,y-yt,y-Tt),n.arc(e+h,i-o,c,y-Tt,y),n.arc(e+d,i+a,c,y,y+Tt),n.arc(e-h,i+o,c,y+Tt,y+yt),n.closePath();break;case"rect":if(!p){l=Math.SQRT1_2*g,u=r?r/2:l,n.rect(e-u,i-l,2*u,2*l);break}y+=Gs;case"rectRot":d=Math.cos(y)*(r?r/2:g),o=Math.cos(y)*g,a=Math.sin(y)*g,h=Math.sin(y)*(r?r/2:g),n.moveTo(e-d,i-a),n.lineTo(e+h,i-o),n.lineTo(e+d,i+a),n.lineTo(e-h,i+o),n.closePath();break;case"crossRot":y+=Gs;case"cross":d=Math.cos(y)*(r?r/2:g),o=Math.cos(y)*g,a=Math.sin(y)*g,h=Math.sin(y)*(r?r/2:g),n.moveTo(e-d,i-a),n.lineTo(e+d,i+a),n.moveTo(e+h,i-o),n.lineTo(e-h,i+o);break;case"star":d=Math.cos(y)*(r?r/2:g),o=Math.cos(y)*g,a=Math.sin(y)*g,h=Math.sin(y)*(r?r/2:g),n.moveTo(e-d,i-a),n.lineTo(e+d,i+a),n.moveTo(e+h,i-o),n.lineTo(e-h,i+o),y+=Gs,d=Math.cos(y)*(r?r/2:g),o=Math.cos(y)*g,a=Math.sin(y)*g,h=Math.sin(y)*(r?r/2:g),n.moveTo(e-d,i-a),n.lineTo(e+d,i+a),n.moveTo(e+h,i-o),n.lineTo(e-h,i+o);break;case"line":o=r?r/2:Math.cos(y)*g,a=Math.sin(y)*g,n.moveTo(e-o,i-a),n.lineTo(e+o,i+a);break;case"dash":n.moveTo(e,i),n.lineTo(e+Math.cos(y)*(r?r/2:g),i+Math.sin(y)*g);break;case!1:n.closePath()}n.fill(),t.borderWidth>0&&n.stroke()}}function _c(n,t,e){return e=e||.5,!t||n&&n.x>t.left-e&&n.x<t.right+e&&n.y>t.top-e&&n.y<t.bottom+e}function Dh(n,t){n.save(),n.beginPath(),n.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),n.clip()}function xh(n){n.restore()}function aq(n,t,e,i,r){if(!t)return n.lineTo(e.x,e.y);if("middle"===r){const s=(t.x+e.x)/2;n.lineTo(s,t.y),n.lineTo(s,e.y)}else"after"===r!=!!i?n.lineTo(t.x,e.y):n.lineTo(e.x,t.y);n.lineTo(e.x,e.y)}function lq(n,t,e,i){if(!t)return n.lineTo(e.x,e.y);n.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?e.cp2x:e.cp1x,i?e.cp2y:e.cp1y,e.x,e.y)}function Ys(n,t,e,i,r,s={}){const o=dt(t)?t:[t],a=s.strokeWidth>0&&""!==s.strokeColor;let l,c;for(n.save(),n.font=r.string,function cq(n,t){t.translation&&n.translate(t.translation[0],t.translation[1]),je(t.rotation)||n.rotate(t.rotation),t.color&&(n.fillStyle=t.color),t.textAlign&&(n.textAlign=t.textAlign),t.textBaseline&&(n.textBaseline=t.textBaseline)}(n,s),l=0;l<o.length;++l)c=o[l],s.backdrop&&dq(n,s.backdrop),a&&(s.strokeColor&&(n.strokeStyle=s.strokeColor),je(s.strokeWidth)||(n.lineWidth=s.strokeWidth),n.strokeText(c,e,i,s.maxWidth)),n.fillText(c,e,i,s.maxWidth),uq(n,e,i,c,s),i+=r.lineHeight;n.restore()}function uq(n,t,e,i,r){if(r.strikethrough||r.underline){const s=n.measureText(i),o=t-s.actualBoundingBoxLeft,a=t+s.actualBoundingBoxRight,l=e-s.actualBoundingBoxAscent,c=e+s.actualBoundingBoxDescent,u=r.strikethrough?(l+c)/2:c;n.strokeStyle=n.fillStyle,n.beginPath(),n.lineWidth=r.decorationWidth||2,n.moveTo(o,u),n.lineTo(a,u),n.stroke()}}function dq(n,t){const e=n.fillStyle;n.fillStyle=t.color,n.fillRect(t.left,t.top,t.width,t.height),n.fillStyle=e}function yc(n,t){const{x:e,y:i,w:r,h:s,radius:o}=t;n.arc(e+o.topLeft,i+o.topLeft,o.topLeft,-Tt,yt,!0),n.lineTo(e,i+s-o.bottomLeft),n.arc(e+o.bottomLeft,i+s-o.bottomLeft,o.bottomLeft,yt,Tt,!0),n.lineTo(e+r-o.bottomRight,i+s),n.arc(e+r-o.bottomRight,i+s-o.bottomRight,o.bottomRight,Tt,0,!0),n.lineTo(e+r,i+o.topRight),n.arc(e+r-o.topRight,i+o.topRight,o.topRight,0,-Tt,!0),n.lineTo(e+o.topLeft,i)}const hq=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,fq=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function pq(n,t){const e=(""+n).match(hq);if(!e||"normal"===e[1])return 1.2*t;switch(n=+e[2],e[3]){case"px":return n;case"%":n/=100}return t*n}const gq=n=>+n||0;function _y(n,t){const e={},i=Re(t),r=i?Object.keys(t):t,s=Re(n)?i?o=>xe(n[o],n[t[o]]):o=>n[o]:()=>n;for(const o of r)e[o]=gq(s(o));return e}function nM(n){return _y(n,{top:"y",right:"x",bottom:"y",left:"x"})}function Qs(n){return _y(n,["topLeft","topRight","bottomLeft","bottomRight"])}function Cn(n){const t=nM(n);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Kt(n,t){let e=xe((n=n||{}).size,(t=t||Ot.font).size);"string"==typeof e&&(e=parseInt(e,10));let i=xe(n.style,t.style);i&&!(""+i).match(fq)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);const r={family:xe(n.family,t.family),lineHeight:pq(xe(n.lineHeight,t.lineHeight),e),size:e,style:i,weight:xe(n.weight,t.weight),string:""};return r.string=function sq(n){return!n||je(n.size)||je(n.family)?null:(n.style?n.style+" ":"")+(n.weight?n.weight+" ":"")+n.size+"px "+n.family}(r),r}function vc(n,t,e,i){let s,o,a,r=!0;for(s=0,o=n.length;s<o;++s)if(a=n[s],void 0!==a&&(void 0!==t&&"function"==typeof a&&(a=a(t),r=!1),void 0!==e&&dt(a)&&(a=a[e%a.length],r=!1),void 0!==a))return i&&!r&&(i.cacheable=!1),a}function cs(n,t){return Object.assign(Object.create(n),t)}function yy(n,t=[""],e=n,i,r=(()=>n[0])){mi(i)||(i=aM("_fallback",n));const s={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:n,_rootScopes:e,_fallback:i,_getTarget:r,override:o=>yy([o,...n],t,e,i)};return new Proxy(s,{deleteProperty:(o,a)=>(delete o[a],delete o._keys,delete n[0][a],!0),get:(o,a)=>rM(o,a,()=>function Dq(n,t,e,i){let r;for(const s of t)if(r=aM(_q(s,n),e),mi(r))return vy(n,r)?by(e,i,n,r):r}(a,t,n,o)),getOwnPropertyDescriptor:(o,a)=>Reflect.getOwnPropertyDescriptor(o._scopes[0],a),getPrototypeOf:()=>Reflect.getPrototypeOf(n[0]),has:(o,a)=>lM(o).includes(a),ownKeys:o=>lM(o),set(o,a,l){const c=o._storage||(o._storage=r());return o[a]=c[a]=l,delete o._keys,!0}})}function va(n,t,e,i){const r={_cacheable:!1,_proxy:n,_context:t,_subProxy:e,_stack:new Set,_descriptors:iM(n,i),setContext:s=>va(n,s,e,i),override:s=>va(n.override(s),t,e,i)};return new Proxy(r,{deleteProperty:(s,o)=>(delete s[o],delete n[o],!0),get:(s,o,a)=>rM(s,o,()=>function yq(n,t,e){const{_proxy:i,_context:r,_subProxy:s,_descriptors:o}=n;let a=i[t];return as(a)&&o.isScriptable(t)&&(a=function vq(n,t,e,i){const{_proxy:r,_context:s,_subProxy:o,_stack:a}=e;if(a.has(n))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+n);return a.add(n),t=t(s,o||i),a.delete(n),vy(n,t)&&(t=by(r._scopes,r,n,t)),t}(t,a,n,e)),dt(a)&&a.length&&(a=function bq(n,t,e,i){const{_proxy:r,_context:s,_subProxy:o,_descriptors:a}=e;if(mi(s.index)&&i(n))t=t[s.index%t.length];else if(Re(t[0])){const l=t,c=r._scopes.filter(u=>u!==l);t=[];for(const u of l){const d=by(c,r,n,u);t.push(va(d,s,o&&o[n],a))}}return t}(t,a,n,o.isIndexable)),vy(t,a)&&(a=va(a,r,s&&s[t],o)),a}(s,o,a)),getOwnPropertyDescriptor:(s,o)=>s._descriptors.allKeys?Reflect.has(n,o)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(n,o),getPrototypeOf:()=>Reflect.getPrototypeOf(n),has:(s,o)=>Reflect.has(n,o),ownKeys:()=>Reflect.ownKeys(n),set:(s,o,a)=>(n[o]=a,delete s[o],!0)})}function iM(n,t={scriptable:!0,indexable:!0}){const{_scriptable:e=t.scriptable,_indexable:i=t.indexable,_allKeys:r=t.allKeys}=n;return{allKeys:r,scriptable:e,indexable:i,isScriptable:as(e)?e:()=>e,isIndexable:as(i)?i:()=>i}}const _q=(n,t)=>n?n+ly(t):t,vy=(n,t)=>Re(t)&&"adapters"!==n&&(null===Object.getPrototypeOf(t)||t.constructor===Object);function rM(n,t,e){if(Object.prototype.hasOwnProperty.call(n,t))return n[t];const i=e();return n[t]=i,i}function sM(n,t,e){return as(n)?n(t,e):n}const wq=(n,t)=>!0===n?t:"string"==typeof n?os(t,n):void 0;function Cq(n,t,e,i,r){for(const s of t){const o=wq(e,s);if(o){n.add(o);const a=sM(o._fallback,e,r);if(mi(a)&&a!==e&&a!==i)return a}else if(!1===o&&mi(i)&&e!==i)return null}return!1}function by(n,t,e,i){const r=t._rootScopes,s=sM(t._fallback,e,i),o=[...n,...r],a=new Set;a.add(i);let l=oM(a,o,e,s||e,i);return!(null===l||mi(s)&&s!==e&&(l=oM(a,o,s,l,i),null===l))&&yy(Array.from(a),[""],r,s,()=>function Sq(n,t,e){const i=n._getTarget();t in i||(i[t]={});const r=i[t];return dt(r)&&Re(e)?e:r||{}}(t,e,i))}function oM(n,t,e,i,r){for(;e;)e=Cq(n,t,e,i,r);return e}function aM(n,t){for(const e of t){if(!e)continue;const i=e[n];if(mi(i))return i}}function lM(n){let t=n._keys;return t||(t=n._keys=function xq(n){const t=new Set;for(const e of n)for(const i of Object.keys(e).filter(r=>!r.startsWith("_")))t.add(i);return Array.from(t)}(n._scopes)),t}function cM(n,t,e,i){const{iScale:r}=n,{key:s="r"}=this._parsing,o=new Array(i);let a,l,c,u;for(a=0,l=i;a<l;++a)c=a+e,u=t[c],o[a]={r:r.parse(os(u,s),c)};return o}const Eq=Number.EPSILON||1e-14,ba=(n,t)=>t<n.length&&!n[t].skip&&n[t],uM=n=>"x"===n?"y":"x";function Tq(n,t,e,i){const r=n.skip?t:n,s=t,o=e.skip?t:e,a=uy(s,r),l=uy(o,s);let c=a/(a+l),u=l/(a+l);c=isNaN(c)?0:c,u=isNaN(u)?0:u;const d=i*c,h=i*u;return{previous:{x:s.x-d*(o.x-r.x),y:s.y-d*(o.y-r.y)},next:{x:s.x+h*(o.x-r.x),y:s.y+h*(o.y-r.y)}}}function Eh(n,t,e){return Math.max(Math.min(n,e),t)}function Oq(n,t,e,i,r){let s,o,a,l;if(t.spanGaps&&(n=n.filter(c=>!c.skip)),"monotone"===t.cubicInterpolationMode)!function kq(n,t="x"){const e=uM(t),i=n.length,r=Array(i).fill(0),s=Array(i);let o,a,l,c=ba(n,0);for(o=0;o<i;++o)if(a=l,l=c,c=ba(n,o+1),l){if(c){const u=c[t]-l[t];r[o]=0!==u?(c[e]-l[e])/u:0}s[o]=a?c?Qi(r[o-1])!==Qi(r[o])?0:(r[o-1]+r[o])/2:r[o-1]:r[o]}(function Iq(n,t,e){const i=n.length;let r,s,o,a,l,c=ba(n,0);for(let u=0;u<i-1;++u)if(l=c,c=ba(n,u+1),l&&c){if(hc(t[u],0,Eq)){e[u]=e[u+1]=0;continue}r=e[u]/t[u],s=e[u+1]/t[u],a=Math.pow(r,2)+Math.pow(s,2),!(a<=9)&&(o=3/Math.sqrt(a),e[u]=r*o*t[u],e[u+1]=s*o*t[u])}})(n,r,s),function Mq(n,t,e="x"){const i=uM(e),r=n.length;let s,o,a,l=ba(n,0);for(let c=0;c<r;++c){if(o=a,a=l,l=ba(n,c+1),!a)continue;const u=a[e],d=a[i];o&&(s=(u-o[e])/3,a[`cp1${e}`]=u-s,a[`cp1${i}`]=d-s*t[c]),l&&(s=(l[e]-u)/3,a[`cp2${e}`]=u+s,a[`cp2${i}`]=d+s*t[c])}}(n,s,t)}(n,r);else{let c=i?n[n.length-1]:n[0];for(s=0,o=n.length;s<o;++s)a=n[s],l=Tq(c,a,n[Math.min(s+1,o-(i?0:1))%o],t.tension),a.cp1x=l.previous.x,a.cp1y=l.previous.y,a.cp2x=l.next.x,a.cp2y=l.next.y,c=a}t.capBezierPoints&&function Aq(n,t){let e,i,r,s,o,a=_c(n[0],t);for(e=0,i=n.length;e<i;++e)o=s,s=a,a=e<i-1&&_c(n[e+1],t),s&&(r=n[e],o&&(r.cp1x=Eh(r.cp1x,t.left,t.right),r.cp1y=Eh(r.cp1y,t.top,t.bottom)),a&&(r.cp2x=Eh(r.cp2x,t.left,t.right),r.cp2y=Eh(r.cp2y,t.top,t.bottom)))}(n,e)}function dM(){return typeof window<"u"&&typeof document<"u"}function wy(n){let t=n.parentNode;return t&&"[object ShadowRoot]"===t.toString()&&(t=t.host),t}function Th(n,t,e){let i;return"string"==typeof n?(i=parseInt(n,10),-1!==n.indexOf("%")&&(i=i/100*t.parentNode[e])):i=n,i}const Ih=n=>n.ownerDocument.defaultView.getComputedStyle(n,null),Rq=["top","right","bottom","left"];function Zs(n,t,e){const i={};e=e?"-"+e:"";for(let r=0;r<4;r++){const s=Rq[r];i[s]=parseFloat(n[t+"-"+s+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}function Xs(n,t){if("native"in n)return n;const{canvas:e,currentDevicePixelRatio:i}=t,r=Ih(e),s="border-box"===r.boxSizing,o=Zs(r,"padding"),a=Zs(r,"border","width"),{x:l,y:c,box:u}=function Lq(n,t){const e=n.touches,i=e&&e.length?e[0]:n,{offsetX:r,offsetY:s}=i;let a,l,o=!1;if(((n,t,e)=>(n>0||t>0)&&(!e||!e.shadowRoot))(r,s,n.target))a=r,l=s;else{const c=t.getBoundingClientRect();a=i.clientX-c.left,l=i.clientY-c.top,o=!0}return{x:a,y:l,box:o}}(n,e),d=o.left+(u&&a.left),h=o.top+(u&&a.top);let{width:f,height:p}=t;return s&&(f-=o.width+a.width,p-=o.height+a.height),{x:Math.round((l-d)/f*e.width/i),y:Math.round((c-h)/p*e.height/i)}}const Mh=n=>Math.round(10*n)/10;function hM(n,t,e){const i=t||1,r=Math.floor(n.height*i),s=Math.floor(n.width*i);n.height=Math.floor(n.height),n.width=Math.floor(n.width);const o=n.canvas;return o.style&&(e||!o.style.height&&!o.style.width)&&(o.style.height=`${n.height}px`,o.style.width=`${n.width}px`),(n.currentDevicePixelRatio!==i||o.height!==r||o.width!==s)&&(n.currentDevicePixelRatio=i,o.height=r,o.width=s,n.ctx.setTransform(i,0,0,i,0,0),!0)}const Bq=function(){let n=!1;try{const t={get passive(){return n=!0,!1}};window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch{}return n}();function fM(n,t){const e=function Pq(n,t){return Ih(n).getPropertyValue(t)}(n,t),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Js(n,t,e,i){return{x:n.x+e*(t.x-n.x),y:n.y+e*(t.y-n.y)}}function Hq(n,t,e,i){return{x:n.x+e*(t.x-n.x),y:"middle"===i?e<.5?n.y:t.y:"after"===i?e<1?n.y:t.y:e>0?t.y:n.y}}function zq(n,t,e,i){const r={x:n.cp2x,y:n.cp2y},s={x:t.cp1x,y:t.cp1y},o=Js(n,r,e),a=Js(r,s,e),l=Js(s,t,e),c=Js(o,a,e),u=Js(a,l,e);return Js(c,u,e)}function wa(n,t,e){return n?function(n,t){return{x:e=>n+n+t-e,setWidth(e){t=e},textAlign:e=>"center"===e?e:"right"===e?"left":"right",xPlus:(e,i)=>e-i,leftForLtr:(e,i)=>e-i}}(t,e):{x:n=>n,setWidth(n){},textAlign:n=>n,xPlus:(n,t)=>n+t,leftForLtr:(n,t)=>n}}function pM(n,t){let e,i;("ltr"===t||"rtl"===t)&&(e=n.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",t,"important"),n.prevTextDirection=i)}function gM(n,t){void 0!==t&&(delete n.prevTextDirection,n.canvas.style.setProperty("direction",t[0],t[1]))}function mM(n){return"angle"===n?{between:fc,compare:UK,normalize:ti}:{between:Tr,compare:(t,e)=>t-e,normalize:t=>t}}function _M({start:n,end:t,count:e,loop:i,style:r}){return{start:n%e,end:t%e,loop:i&&(t-n+1)%e==0,style:r}}function yM(n,t,e){if(!e)return[n];const{property:i,start:r,end:s}=e,o=t.length,{compare:a,between:l,normalize:c}=mM(i),{start:u,end:d,loop:h,style:f}=function Uq(n,t,e){const{property:i,start:r,end:s}=e,{between:o,normalize:a}=mM(i),l=t.length;let h,f,{start:c,end:u,loop:d}=n;if(d){for(c+=l,u+=l,h=0,f=l;h<f&&o(a(t[c%l][i]),r,s);++h)c--,u--;c%=l,u%=l}return u<c&&(u+=l),{start:c,end:u,loop:d,style:n.style}}(n,t,e),p=[];let C,x,D,g=!1,y=null;for(let H=u,j=u;H<=d;++H)x=t[H%o],!x.skip&&(C=c(x[i]),C!==D&&(g=l(C,r,s),null===y&&(g||l(r,D,C)&&0!==a(r,D))&&(y=0===a(C,r)?H:j),null!==y&&(!g||0===a(s,C)||l(s,D,C))&&(p.push(_M({start:y,end:H,loop:h,count:o,style:f})),y=null),j=H,D=C));return null!==y&&p.push(_M({start:y,end:d,loop:h,count:o,style:f})),p}function vM(n,t){const e=[],i=n.segments;for(let r=0;r<i.length;r++){const s=yM(i[r],n.points,t);s.length&&e.push(...s)}return e}function wM(n){return{backgroundColor:n.backgroundColor,borderCapStyle:n.borderCapStyle,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderJoinStyle:n.borderJoinStyle,borderWidth:n.borderWidth,borderColor:n.borderColor}}function Yq(n,t){return t&&JSON.stringify(n)!==JSON.stringify(t)}class Qq{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,r){const o=e.duration;e.listeners[r].forEach(a=>a({chart:t,initial:e.initial,numSteps:o,currentStep:Math.min(i-e.start,o)}))}_refresh(){this._request||(this._running=!0,this._request=UI.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,r)=>{if(!i.running||!i.items.length)return;const s=i.items;let l,o=s.length-1,a=!1;for(;o>=0;--o)l=s[o],l._active?(l._total>i.duration&&(i.duration=l._total),l.tick(t),a=!0):(s[o]=s[s.length-1],s.pop());a&&(r.draw(),this._notify(r,i,t,"progress")),s.length||(i.running=!1,this._notify(r,i,t,"complete"),i.initial=!1),e+=s.length}),this._lastDate=t,0===e&&(this._running=!1)}_getAnims(t){const e=this._charts;let i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){const e=this._charts.get(t);!e||(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,r)=>Math.max(i,r._duration),0),this._refresh())}running(t){if(!this._running)return!1;const e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){const e=this._charts.get(t);if(!e||!e.items.length)return;const i=e.items;let r=i.length-1;for(;r>=0;--r)i[r].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}}var Mr=new Qq;const CM="transparent",Zq={boolean:(n,t,e)=>e>.5?t:n,color(n,t,e){const i=ZI(n||CM),r=i.valid&&ZI(t||CM);return r&&r.valid?r.mix(i,e).hexString():t},number:(n,t,e)=>n+(t-n)*e};class Xq{constructor(t,e,i,r){const s=e[i];r=vc([t.to,r,s,t.from]);const o=vc([t.from,s,r]);this._active=!0,this._fn=t.fn||Zq[t.type||typeof o],this._easing=pc[t.easing]||pc.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=o,this._to=r,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);const r=this._target[this._prop],s=i-this._start,o=this._duration-s;this._start=i,this._duration=Math.floor(Math.max(o,t.duration)),this._total+=s,this._loop=!!t.loop,this._to=vc([t.to,e,r,t.from]),this._from=vc([t.from,r,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){const e=t-this._start,i=this._duration,r=this._prop,s=this._from,o=this._loop,a=this._to;let l;if(this._active=s!==a&&(o||e<i),!this._active)return this._target[r]=a,void this._notify(!0);e<0?this._target[r]=s:(l=e/i%2,l=o&&l>1?2-l:l,l=this._easing(Math.min(1,Math.max(0,l))),this._target[r]=this._fn(s,a,l))}wait(){const t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){const e=t?"res":"rej",i=this._promises||[];for(let r=0;r<i.length;r++)i[r][e]()}}class SM{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!Re(t))return;const e=Object.keys(Ot.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(r=>{const s=t[r];if(!Re(s))return;const o={};for(const a of e)o[a]=s[a];(dt(s.properties)&&s.properties||[r]).forEach(a=>{(a===r||!i.has(a))&&i.set(a,o)})})}_animateOptions(t,e){const i=e.options,r=function eY(n,t){if(!t)return;let e=n.options;if(e)return e.$shared&&(n.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e;n.options=t}(t,i);if(!r)return[];const s=this._createAnimations(r,i);return i.$shared&&function Jq(n,t){const e=[],i=Object.keys(t);for(let r=0;r<i.length;r++){const s=n[i[r]];s&&s.active()&&e.push(s.wait())}return Promise.all(e)}(t.options.$animations,i).then(()=>{t.options=i},()=>{}),s}_createAnimations(t,e){const i=this._properties,r=[],s=t.$animations||(t.$animations={}),o=Object.keys(e),a=Date.now();let l;for(l=o.length-1;l>=0;--l){const c=o[l];if("$"===c.charAt(0))continue;if("options"===c){r.push(...this._animateOptions(t,e));continue}const u=e[c];let d=s[c];const h=i.get(c);if(d){if(h&&d.active()){d.update(h,u,a);continue}d.cancel()}h&&h.duration?(s[c]=d=new Xq(h,t,c,u),r.push(d)):t[c]=u}return r}update(t,e){if(0===this._properties.size)return void Object.assign(t,e);const i=this._createAnimations(t,e);return i.length?(Mr.add(this._chart,i),!0):void 0}}function DM(n,t){const e=n&&n.options||{},i=e.reverse,r=void 0===e.min?t:0,s=void 0===e.max?t:0;return{start:i?s:r,end:i?r:s}}function xM(n,t){const e=[],i=n._getSortedDatasetMetas(t);let r,s;for(r=0,s=i.length;r<s;++r)e.push(i[r].index);return e}function EM(n,t,e,i={}){const r=n.keys,s="single"===i.mode;let o,a,l,c;if(null!==t){for(o=0,a=r.length;o<a;++o){if(l=+r[o],l===e){if(i.all)continue;break}c=n.values[l],Et(c)&&(s||0===t||Qi(t)===Qi(c))&&(t+=c)}return t}}function TM(n,t){const e=n&&n.options.stacked;return e||void 0===e&&void 0!==t.stack}function oY(n,t,e){const i=n[t]||(n[t]={});return i[e]||(i[e]={})}function IM(n,t,e,i){for(const r of t.getMatchingVisibleMetas(i).reverse()){const s=n[r.index];if(e&&s>0||!e&&s<0)return r.index}return null}function MM(n,t){const{chart:e,_cachedMeta:i}=n,r=e._stacks||(e._stacks={}),{iScale:s,vScale:o,index:a}=i,l=s.axis,c=o.axis,u=function rY(n,t,e){return`${n.id}.${t.id}.${e.stack||e.type}`}(s,o,i),d=t.length;let h;for(let f=0;f<d;++f){const p=t[f],{[l]:g,[c]:y}=p;h=(p._stacks||(p._stacks={}))[c]=oY(r,u,g),h[a]=y,h._top=IM(h,o,!0,i.type),h._bottom=IM(h,o,!1,i.type),(h._visualValues||(h._visualValues={}))[a]=y}}function Cy(n,t){const e=n.scales;return Object.keys(e).filter(i=>e[i].axis===t).shift()}function bc(n,t){const e=n.controller.index,i=n.vScale&&n.vScale.axis;if(i){t=t||n._parsed;for(const r of t){const s=r._stacks;if(!s||void 0===s[i]||void 0===s[i][e])return;delete s[i][e],void 0!==s[i]._visualValues&&void 0!==s[i]._visualValues[e]&&delete s[i]._visualValues[e]}}}const Sy=n=>"reset"===n||"none"===n,kM=(n,t)=>t?n:Object.assign({},n);class us{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){const t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=TM(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&bc(this._cachedMeta),this.index=t}linkScales(){const t=this.chart,e=this._cachedMeta,i=this.getDataset(),r=(d,h,f,p)=>"x"===d?h:"r"===d?p:f,s=e.xAxisID=xe(i.xAxisID,Cy(t,"x")),o=e.yAxisID=xe(i.yAxisID,Cy(t,"y")),a=e.rAxisID=xe(i.rAxisID,Cy(t,"r")),l=e.indexAxis,c=e.iAxisID=r(l,s,o,a),u=e.vAxisID=r(l,o,s,a);e.xScale=this.getScaleForId(s),e.yScale=this.getScaleForId(o),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(c),e.vScale=this.getScaleForId(u)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){const e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){const t=this._cachedMeta;this._data&&jI(this._data,this),t._stacked&&bc(t)}_dataCheck(){const t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(Re(e))this._data=function iY(n){const t=Object.keys(n),e=new Array(t.length);let i,r,s;for(i=0,r=t.length;i<r;++i)s=t[i],e[i]={x:s,y:n[s]};return e}(e);else if(i!==e){if(i){jI(i,this);const r=this._cachedMeta;bc(r),r._parsed=[]}e&&Object.isExtensible(e)&&function qK(n,t){n._chartjs?n._chartjs.listeners.push(t):(Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),zI.forEach(e=>{const i="_onData"+ly(e),r=n[e];Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value(...s){const o=r.apply(this,s);return n._chartjs.listeners.forEach(a=>{"function"==typeof a[i]&&a[i](...s)}),o}})}))}(e,this),this._syncList=[],this._data=e}}addElements(){const t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){const e=this._cachedMeta,i=this.getDataset();let r=!1;this._dataCheck();const s=e._stacked;e._stacked=TM(e.vScale,e),e.stack!==i.stack&&(r=!0,bc(e),e.stack=i.stack),this._resyncElements(t),(r||s!==e._stacked)&&MM(this,e._parsed)}configure(){const t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){const{_cachedMeta:i,_data:r}=this,{iScale:s,_stacked:o}=i,a=s.axis;let u,d,h,l=0===t&&e===r.length||i._sorted,c=t>0&&i._parsed[t-1];if(!1===this._parsing)i._parsed=r,i._sorted=!0,h=r;else{h=dt(r[t])?this.parseArrayData(i,r,t,e):Re(r[t])?this.parseObjectData(i,r,t,e):this.parsePrimitiveData(i,r,t,e);const f=()=>null===d[a]||c&&d[a]<c[a];for(u=0;u<e;++u)i._parsed[u+t]=d=h[u],l&&(f()&&(l=!1),c=d);i._sorted=l}o&&MM(this,h)}parsePrimitiveData(t,e,i,r){const{iScale:s,vScale:o}=t,a=s.axis,l=o.axis,c=s.getLabels(),u=s===o,d=new Array(r);let h,f,p;for(h=0,f=r;h<f;++h)p=h+i,d[h]={[a]:u||s.parse(c[p],p),[l]:o.parse(e[p],p)};return d}parseArrayData(t,e,i,r){const{xScale:s,yScale:o}=t,a=new Array(r);let l,c,u,d;for(l=0,c=r;l<c;++l)u=l+i,d=e[u],a[l]={x:s.parse(d[0],u),y:o.parse(d[1],u)};return a}parseObjectData(t,e,i,r){const{xScale:s,yScale:o}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c=new Array(r);let u,d,h,f;for(u=0,d=r;u<d;++u)h=u+i,f=e[h],c[u]={x:s.parse(os(f,a),h),y:o.parse(os(f,l),h)};return c}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){const s=this._cachedMeta,o=e[t.axis];return EM({keys:xM(this.chart,!0),values:e._stacks[t.axis]._visualValues},o,s.index,{mode:i})}updateRangeFromParsed(t,e,i,r){const s=i[e.axis];let o=null===s?NaN:s;const a=r&&i._stacks[e.axis];r&&a&&(r.values=a,o=EM(r,s,this._cachedMeta.index)),t.min=Math.min(t.min,o),t.max=Math.max(t.max,o)}getMinMax(t,e){const i=this._cachedMeta,r=i._parsed,s=i._sorted&&t===i.iScale,o=r.length,a=this._getOtherScale(t),l=((n,t,e)=>n&&!t.hidden&&t._stacked&&{keys:xM(this.chart,!0),values:null})(e,i),c={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:u,max:d}=function sY(n){const{min:t,max:e,minDefined:i,maxDefined:r}=n.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:r?e:Number.POSITIVE_INFINITY}}(a);let h,f;function p(){f=r[h];const g=f[a.axis];return!Et(f[t.axis])||u>g||d<g}for(h=0;h<o&&(p()||(this.updateRangeFromParsed(c,t,f,l),!s));++h);if(s)for(h=o-1;h>=0;--h)if(!p()){this.updateRangeFromParsed(c,t,f,l);break}return c}getAllParsedValues(t){const e=this._cachedMeta._parsed,i=[];let r,s,o;for(r=0,s=e.length;r<s;++r)o=e[r][t.axis],Et(o)&&i.push(o);return i}getMaxOverflow(){return!1}getLabelAndValue(t){const e=this._cachedMeta,i=e.iScale,r=e.vScale,s=this.getParsed(t);return{label:i?""+i.getLabelForValue(s[i.axis]):"",value:r?""+r.getLabelForValue(s[r.axis]):""}}_update(t){const e=this._cachedMeta;this.update(t||"default"),e._clip=function nY(n){let t,e,i,r;return Re(n)?(t=n.top,e=n.right,i=n.bottom,r=n.left):t=e=i=r=n,{top:t,right:e,bottom:i,left:r,disabled:!1===n}}(xe(this.options.clip,function tY(n,t,e){if(!1===e)return!1;const i=DM(n,e),r=DM(t,e);return{top:r.end,right:i.end,bottom:r.start,left:i.start}}(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){const t=this._ctx,i=this._cachedMeta,r=i.data||[],s=this.chart.chartArea,o=[],a=this._drawStart||0,l=this._drawCount||r.length-a,c=this.options.drawActiveElementsOnTop;let u;for(i.dataset&&i.dataset.draw(t,s,a,l),u=a;u<a+l;++u){const d=r[u];d.hidden||(d.active&&c?o.push(d):d.draw(t,s))}for(u=0;u<o.length;++u)o[u].draw(t,s)}getStyle(t,e){const i=e?"active":"default";return void 0===t&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){const r=this.getDataset();let s;if(t>=0&&t<this._cachedMeta.data.length){const o=this._cachedMeta.data[t];s=o.$context||(o.$context=function lY(n,t,e){return cs(n,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:e,index:t,mode:"default",type:"data"})}(this.getContext(),t,o)),s.parsed=this.getParsed(t),s.raw=r.data[t],s.index=s.dataIndex=t}else s=this.$context||(this.$context=function aY(n,t){return cs(n,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}(this.chart.getContext(),this.index)),s.dataset=r,s.index=s.datasetIndex=this.index;return s.active=!!e,s.mode=i,s}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){const r="active"===e,s=this._cachedDataOpts,o=t+"-"+e,a=s[o],l=this.enableOptionSharing&&mi(i);if(a)return kM(a,l);const c=this.chart.config,u=c.datasetElementScopeKeys(this._type,t),d=r?[`${t}Hover`,"hover",t,""]:[t,""],h=c.getOptionScopes(this.getDataset(),u),f=Object.keys(Ot.elements[t]),g=c.resolveNamedOptions(h,f,()=>this.getContext(i,r,e),d);return g.$shared&&(g.$shared=l,s[o]=Object.freeze(kM(g,l))),g}_resolveAnimations(t,e,i){const r=this.chart,s=this._cachedDataOpts,o=`animation-${e}`,a=s[o];if(a)return a;let l;if(!1!==r.options.animation){const u=this.chart.config,d=u.datasetAnimationScopeKeys(this._type,e),h=u.getOptionScopes(this.getDataset(),d);l=u.createResolver(h,this.getContext(t,i,e))}const c=new SM(r,l&&l.animations);return l&&l._cacheable&&(s[o]=Object.freeze(c)),c}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||Sy(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){const i=this.resolveDataElementOptions(t,e),r=this._sharedOptions,s=this.getSharedOptions(i),o=this.includeOptions(e,s)||s!==r;return this.updateSharedOptions(s,e,i),{sharedOptions:s,includeOptions:o}}updateElement(t,e,i,r){Sy(r)?Object.assign(t,i):this._resolveAnimations(e,r).update(t,i)}updateSharedOptions(t,e,i){t&&!Sy(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,r){t.active=r;const s=this.getStyle(e,r);this._resolveAnimations(e,i,r).update(t,{options:!r&&this.getSharedOptions(s)||s})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){const t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){const e=this._data,i=this._cachedMeta.data;for(const[a,l,c]of this._syncList)this[a](l,c);this._syncList=[];const r=i.length,s=e.length,o=Math.min(s,r);o&&this.parse(0,o),s>r?this._insertElements(r,s-r,t):s<r&&this._removeElements(s,r-s)}_insertElements(t,e,i=!0){const r=this._cachedMeta,s=r.data,o=t+e;let a;const l=c=>{for(c.length+=e,a=c.length-1;a>=o;a--)c[a]=c[a-e]};for(l(s),a=t;a<o;++a)s[a]=new this.dataElementType;this._parsing&&l(r._parsed),this.parse(t,e),i&&this.updateElements(s,t,e,"reset")}updateElements(t,e,i,r){}_removeElements(t,e){const i=this._cachedMeta;if(this._parsing){const r=i._parsed.splice(t,e);i._stacked&&bc(i,r)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{const[e,i,r]=t;this[e](i,r)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){const t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);const i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}}function dY(n){const t=n.iScale,e=function uY(n,t){if(!n._cache.$bar){const e=n.getMatchingVisibleMetas(t);let i=[];for(let r=0,s=e.length;r<s;r++)i=i.concat(e[r].controller.getAllParsedValues(n));n._cache.$bar=$I(i.sort((r,s)=>r-s))}return n._cache.$bar}(t,n.type);let r,s,o,a,i=t._length;const l=()=>{32767===o||-32768===o||(mi(a)&&(i=Math.min(i,Math.abs(o-a)||i)),a=o)};for(r=0,s=e.length;r<s;++r)o=t.getPixelForValue(e[r]),l();for(a=void 0,r=0,s=t.ticks.length;r<s;++r)o=t.getPixelForTick(r),l();return i}function AM(n,t,e,i){return dt(n)?function pY(n,t,e,i){const r=e.parse(n[0],i),s=e.parse(n[1],i),o=Math.min(r,s),a=Math.max(r,s);let l=o,c=a;Math.abs(o)>Math.abs(a)&&(l=a,c=o),t[e.axis]=c,t._custom={barStart:l,barEnd:c,start:r,end:s,min:o,max:a}}(n,t,e,i):t[e.axis]=e.parse(n,i),t}function OM(n,t,e,i){const r=n.iScale,s=n.vScale,o=r.getLabels(),a=r===s,l=[];let c,u,d,h;for(c=e,u=e+i;c<u;++c)h=t[c],d={},d[r.axis]=a||r.parse(o[c],c),l.push(AM(h,d,s,c));return l}function Dy(n){return n&&void 0!==n.barStart&&void 0!==n.barEnd}function _Y(n,t,e,i){let r=t.borderSkipped;const s={};if(!r)return void(n.borderSkipped=s);if(!0===r)return void(n.borderSkipped={top:!0,right:!0,bottom:!0,left:!0});const{start:o,end:a,reverse:l,top:c,bottom:u}=function mY(n){let t,e,i,r,s;return n.horizontal?(t=n.base>n.x,e="left",i="right"):(t=n.base<n.y,e="bottom",i="top"),t?(r="end",s="start"):(r="start",s="end"),{start:e,end:i,reverse:t,top:r,bottom:s}}(n);"middle"===r&&e&&(n.enableBorderRadius=!0,(e._top||0)===i?r=c:(e._bottom||0)===i?r=u:(s[PM(u,o,a,l)]=!0,r=c)),s[PM(r,o,a,l)]=!0,n.borderSkipped=s}function PM(n,t,e,i){return i?(n=function yY(n,t,e){return n===t?e:n===e?t:n}(n,t,e),n=RM(n,e,t)):n=RM(n,t,e),n}function RM(n,t,e){return"start"===n?t:"end"===n?e:n}function vY(n,{inflateAmount:t},e){n.inflateAmount="auto"===t?1===e?.33:0:t}class xy extends us{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>"spacing"!==t,_indexable:t=>"spacing"!==t};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:r}}=t.legend.options;return e.labels.map((s,o)=>{const l=t.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:r,lineWidth:l.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){const i=this.getDataset().data,r=this._cachedMeta;if(!1===this._parsing)r._parsed=i;else{let o,a,s=l=>+i[l];if(Re(i[t])){const{key:l="value"}=this._parsing;s=c=>+os(i[c],l)}for(o=t,a=t+e;o<a;++o)r._parsed[o]=s(o)}}_getRotation(){return Ni(this.options.rotation-90)}_getCircumference(){return Ni(this.options.circumference)}_getRotationExtents(){let t=ht,e=-ht;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){const r=this.chart.getDatasetMeta(i).controller,s=r._getRotation(),o=r._getCircumference();t=Math.min(t,s),e=Math.max(e,s+o)}return{rotation:t,circumference:e-t}}update(t){const e=this.chart,{chartArea:i}=e,r=this._cachedMeta,s=r.data,o=this.getMaxBorderWidth()+this.getMaxOffset(s)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-o)/2,0),l=Math.min(((n,t)=>"string"==typeof n&&n.endsWith("%")?parseFloat(n)/100:+n/t)(this.options.cutout,a),1),c=this._getRingWeight(this.index),{circumference:u,rotation:d}=this._getRotationExtents(),{ratioX:h,ratioY:f,offsetX:p,offsetY:g}=function CY(n,t,e){let i=1,r=1,s=0,o=0;if(t<ht){const a=n,l=a+t,c=Math.cos(a),u=Math.sin(a),d=Math.cos(l),h=Math.sin(l),f=(D,E,k)=>fc(D,a,l,!0)?1:Math.max(E,E*e,k,k*e),p=(D,E,k)=>fc(D,a,l,!0)?-1:Math.min(E,E*e,k,k*e),g=f(0,c,d),y=f(Tt,u,h),C=p(yt,c,d),x=p(yt+Tt,u,h);i=(g-C)/2,r=(y-x)/2,s=-(g+C)/2,o=-(y+x)/2}return{ratioX:i,ratioY:r,offsetX:s,offsetY:o}}(d,u,l),x=Math.max(Math.min((i.width-o)/h,(i.height-o)/f)/2,0),D=OI(this.options.radius,x),k=(D-Math.max(D*l,0))/this._getVisibleDatasetWeightTotal();this.offsetX=p*D,this.offsetY=g*D,r.total=this.calculateTotal(),this.outerRadius=D-k*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-k*c,0),this.updateElements(s,0,s.length,t)}_circumference(t,e){const i=this.options,r=this._cachedMeta,s=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||null===r._parsed[t]||r.data[t].hidden?0:this.calculateCircumference(r._parsed[t]*s/ht)}updateElements(t,e,i,r){const s="reset"===r,o=this.chart,a=o.chartArea,u=(a.left+a.right)/2,d=(a.top+a.bottom)/2,h=s&&o.options.animation.animateScale,f=h?0:this.innerRadius,p=h?0:this.outerRadius,{sharedOptions:g,includeOptions:y}=this._getSharedOptions(e,r);let x,C=this._getRotation();for(x=0;x<e;++x)C+=this._circumference(x,s);for(x=e;x<e+i;++x){const D=this._circumference(x,s),E=t[x],k={x:u+this.offsetX,y:d+this.offsetY,startAngle:C,endAngle:C+D,circumference:D,outerRadius:p,innerRadius:f};y&&(k.options=g||this.resolveDataElementOptions(x,E.active?"active":r)),C+=D,this.updateElement(E,x,k,r)}}calculateTotal(){const t=this._cachedMeta,e=t.data;let r,i=0;for(r=0;r<e.length;r++){const s=t._parsed[r];null!==s&&!isNaN(s)&&this.chart.getDataVisibility(r)&&!e[r].hidden&&(i+=Math.abs(s))}return i}calculateCircumference(t){const e=this._cachedMeta.total;return e>0&&!isNaN(t)?ht*(Math.abs(t)/e):0}getLabelAndValue(t){const i=this.chart,r=i.data.labels||[],s=gc(this._cachedMeta._parsed[t],i.options.locale);return{label:r[t]||"",value:s}}getMaxBorderWidth(t){let e=0;const i=this.chart;let r,s,o,a,l;if(!t)for(r=0,s=i.data.datasets.length;r<s;++r)if(i.isDatasetVisible(r)){o=i.getDatasetMeta(r),t=o.data,a=o.controller;break}if(!t)return 0;for(r=0,s=t.length;r<s;++r)l=a.resolveDataElementOptions(r),"inner"!==l.borderAlign&&(e=Math.max(e,l.borderWidth||0,l.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,r=t.length;i<r;++i){const s=this.resolveDataElementOptions(i);e=Math.max(e,s.offset||0,s.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(xe(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}}class FM extends us{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){const e=t.data;if(e.labels.length&&e.datasets.length){const{labels:{pointStyle:i,color:r}}=t.legend.options;return e.labels.map((s,o)=>{const l=t.getDatasetMeta(0).controller.getStyle(o);return{text:s,fillStyle:l.backgroundColor,strokeStyle:l.borderColor,fontColor:r,lineWidth:l.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(o),index:o}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){const i=this.chart,r=i.data.labels||[],s=gc(this._cachedMeta._parsed[t].r,i.options.locale);return{label:r[t]||"",value:s}}parseObjectData(t,e,i,r){return cM.bind(this)(t,e,i,r)}update(t){const e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){const e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return this._cachedMeta.data.forEach((i,r)=>{const s=this.getParsed(r).r;!isNaN(s)&&this.chart.getDataVisibility(r)&&(s<e.min&&(e.min=s),s>e.max&&(e.max=s))}),e}_updateRadius(){const t=this.chart,e=t.chartArea,i=t.options,r=Math.min(e.right-e.left,e.bottom-e.top),s=Math.max(r/2,0),a=(s-Math.max(i.cutoutPercentage?s/100*i.cutoutPercentage:1,0))/t.getVisibleDatasetCount();this.outerRadius=s-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,e,i,r){const s="reset"===r,o=this.chart,l=o.options.animation,c=this._cachedMeta.rScale,u=c.xCenter,d=c.yCenter,h=c.getIndexAngle(0)-.5*yt;let p,f=h;const g=360/this.countVisibleElements();for(p=0;p<e;++p)f+=this._computeAngle(p,r,g);for(p=e;p<e+i;p++){const y=t[p];let C=f,x=f+this._computeAngle(p,r,g),D=o.getDataVisibility(p)?c.getDistanceFromCenterForValue(this.getParsed(p).r):0;f=x,s&&(l.animateScale&&(D=0),l.animateRotate&&(C=x=h));const E={x:u,y:d,innerRadius:0,outerRadius:D,startAngle:C,endAngle:x,options:this.resolveDataElementOptions(p,y.active?"active":r)};this.updateElement(y,p,E,r)}}countVisibleElements(){let e=0;return this._cachedMeta.data.forEach((i,r)=>{!isNaN(this.getParsed(r).r)&&this.chart.getDataVisibility(r)&&e++}),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?Ni(this.resolveDataElementOptions(t,e).angle||i):0}}var TY=Object.freeze({__proto__:null,BarController:class bY extends us{static id="bar";static defaults={datasetElementType:!1,dataElementType:"bar",categoryPercentage:.8,barPercentage:.9,grouped:!0,animations:{numbers:{type:"number",properties:["x","y","base","width","height"]}}};static overrides={scales:{_index_:{type:"category",offset:!0,grid:{offset:!0}},_value_:{type:"linear",beginAtZero:!0}}};parsePrimitiveData(t,e,i,r){return OM(t,e,i,r)}parseArrayData(t,e,i,r){return OM(t,e,i,r)}parseObjectData(t,e,i,r){const{iScale:s,vScale:o}=t,{xAxisKey:a="x",yAxisKey:l="y"}=this._parsing,c="x"===s.axis?a:l,u="x"===o.axis?a:l,d=[];let h,f,p,g;for(h=i,f=i+r;h<f;++h)g=e[h],p={},p[s.axis]=s.parse(os(g,c),h),d.push(AM(os(g,u),p,o,h));return d}updateRangeFromParsed(t,e,i,r){super.updateRangeFromParsed(t,e,i,r);const s=i._custom;s&&e===this._cachedMeta.vScale&&(t.min=Math.min(t.min,s.min),t.max=Math.max(t.max,s.max))}getMaxOverflow(){return 0}getLabelAndValue(t){const e=this._cachedMeta,{iScale:i,vScale:r}=e,s=this.getParsed(t),o=s._custom,a=Dy(o)?"["+o.start+", "+o.end+"]":""+r.getLabelForValue(s[r.axis]);return{label:""+i.getLabelForValue(s[i.axis]),value:a}}initialize(){this.enableOptionSharing=!0,super.initialize(),this._cachedMeta.stack=this.getDataset().stack}update(t){const e=this._cachedMeta;this.updateElements(e.data,0,e.data.length,t)}updateElements(t,e,i,r){const s="reset"===r,{index:o,_cachedMeta:{vScale:a}}=this,l=a.getBasePixel(),c=a.isHorizontal(),u=this._getRuler(),{sharedOptions:d,includeOptions:h}=this._getSharedOptions(e,r);for(let f=e;f<e+i;f++){const p=this.getParsed(f),g=s||je(p[a.axis])?{base:l,head:l}:this._calculateBarValuePixels(f),y=this._calculateBarIndexPixels(f,u),C=(p._stacks||{})[a.axis],x={horizontal:c,base:g.base,enableBorderRadius:!C||Dy(p._custom)||o===C._top||o===C._bottom,x:c?g.head:y.center,y:c?y.center:g.head,height:c?y.size:Math.abs(g.size),width:c?Math.abs(g.size):y.size};h&&(x.options=d||this.resolveDataElementOptions(f,t[f].active?"active":r));const D=x.options||t[f].options;_Y(x,D,C,o),vY(x,D,u.ratio),this.updateElement(t[f],f,x,r)}}_getStacks(t,e){const{iScale:i}=this._cachedMeta,r=i.getMatchingVisibleMetas(this._type).filter(l=>l.controller.options.grouped),s=i.options.stacked,o=[],a=l=>{const c=l.controller.getParsed(e),u=c&&c[l.vScale.axis];if(je(u)||isNaN(u))return!0};for(const l of r)if((void 0===e||!a(l))&&((!1===s||-1===o.indexOf(l.stack)||void 0===s&&void 0===l.stack)&&o.push(l.stack),l.index===t))break;return o.length||o.push(void 0),o}_getStackCount(t){return this._getStacks(void 0,t).length}_getStackIndex(t,e,i){const r=this._getStacks(t,i),s=void 0!==e?r.indexOf(e):-1;return-1===s?r.length-1:s}_getRuler(){const t=this.options,e=this._cachedMeta,i=e.iScale,r=[];let s,o;for(s=0,o=e.data.length;s<o;++s)r.push(i.getPixelForValue(this.getParsed(s)[i.axis],s));const a=t.barThickness;return{min:a||dY(e),pixels:r,start:i._startPixel,end:i._endPixel,stackCount:this._getStackCount(),scale:i,grouped:t.grouped,ratio:a?1:t.categoryPercentage*t.barPercentage}}_calculateBarValuePixels(t){const{_cachedMeta:{vScale:e,_stacked:i,index:r},options:{base:s,minBarLength:o}}=this,a=s||0,l=this.getParsed(t),c=l._custom,u=Dy(c);let p,g,d=l[e.axis],h=0,f=i?this.applyStack(e,l,i):d;f!==d&&(h=f-d,f=d),u&&(d=c.barStart,f=c.barEnd-c.barStart,0!==d&&Qi(d)!==Qi(c.barEnd)&&(h=0),h+=d);const y=je(s)||u?h:s;let C=e.getPixelForValue(y);if(p=this.chart.getDataVisibility(t)?e.getPixelForValue(h+f):C,g=p-C,Math.abs(g)<o){g=function gY(n,t,e){return 0!==n?Qi(n):(t.isHorizontal()?1:-1)*(t.min>=e?1:-1)}(g,e,a)*o,d===a&&(C-=g/2);const x=e.getPixelForDecimal(0),D=e.getPixelForDecimal(1),E=Math.min(x,D),k=Math.max(x,D);C=Math.max(Math.min(C,k),E),p=C+g,i&&!u&&(l._stacks[e.axis]._visualValues[r]=e.getValueForPixel(p)-e.getValueForPixel(C))}if(C===e.getPixelForValue(a)){const x=Qi(g)*e.getLineWidthForValue(a)/2;C+=x,g-=x}return{size:g,base:C,head:p,center:p+g/2}}_calculateBarIndexPixels(t,e){const i=e.scale,r=this.options,s=r.skipNull,o=xe(r.maxBarThickness,1/0);let a,l;if(e.grouped){const c=s?this._getStackCount(t):e.stackCount,u="flex"===r.barThickness?function fY(n,t,e,i){const r=t.pixels,s=r[n];let o=n>0?r[n-1]:null,a=n<r.length-1?r[n+1]:null;const l=e.categoryPercentage;null===o&&(o=s-(null===a?t.end-t.start:a-s)),null===a&&(a=s+s-o);const c=s-(s-Math.min(o,a))/2*l;return{chunk:Math.abs(a-o)/2*l/i,ratio:e.barPercentage,start:c}}(t,e,r,c):function hY(n,t,e,i){const r=e.barThickness;let s,o;return je(r)?(s=t.min*e.categoryPercentage,o=e.barPercentage):(s=r*i,o=1),{chunk:s/i,ratio:o,start:t.pixels[n]-s/2}}(t,e,r,c),d=this._getStackIndex(this.index,this._cachedMeta.stack,s?t:void 0);a=u.start+u.chunk*d+u.chunk/2,l=Math.min(o,u.chunk*u.ratio)}else a=i.getPixelForValue(this.getParsed(t)[i.axis],t),l=Math.min(o,e.min*e.ratio);return{base:a-l/2,head:a+l/2,center:a,size:l}}draw(){const t=this._cachedMeta,e=t.vScale,i=t.data,r=i.length;let s=0;for(;s<r;++s)null!==this.getParsed(s)[e.axis]&&i[s].draw(this._ctx)}},BubbleController:class wY extends us{static id="bubble";static defaults={datasetElementType:!1,dataElementType:"point",animations:{numbers:{type:"number",properties:["x","y","borderWidth","radius"]}}};static overrides={scales:{x:{type:"linear"},y:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,super.initialize()}parsePrimitiveData(t,e,i,r){const s=super.parsePrimitiveData(t,e,i,r);for(let o=0;o<s.length;o++)s[o]._custom=this.resolveDataElementOptions(o+i).radius;return s}parseArrayData(t,e,i,r){const s=super.parseArrayData(t,e,i,r);for(let o=0;o<s.length;o++)s[o]._custom=xe(e[i+o][2],this.resolveDataElementOptions(o+i).radius);return s}parseObjectData(t,e,i,r){const s=super.parseObjectData(t,e,i,r);for(let o=0;o<s.length;o++){const a=e[i+o];s[o]._custom=xe(a&&a.r&&+a.r,this.resolveDataElementOptions(o+i).radius)}return s}getMaxOverflow(){const t=this._cachedMeta.data;let e=0;for(let i=t.length-1;i>=0;--i)e=Math.max(e,t[i].size(this.resolveDataElementOptions(i))/2);return e>0&&e}getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:r,yScale:s}=e,o=this.getParsed(t),a=r.getLabelForValue(o.x),l=s.getLabelForValue(o.y),c=o._custom;return{label:i[t]||"",value:"("+a+", "+l+(c?", "+c:"")+")"}}update(t){const e=this._cachedMeta.data;this.updateElements(e,0,e.length,t)}updateElements(t,e,i,r){const s="reset"===r,{iScale:o,vScale:a}=this._cachedMeta,{sharedOptions:l,includeOptions:c}=this._getSharedOptions(e,r),u=o.axis,d=a.axis;for(let h=e;h<e+i;h++){const f=t[h],p=!s&&this.getParsed(h),g={},y=g[u]=s?o.getPixelForDecimal(.5):o.getPixelForValue(p[u]),C=g[d]=s?a.getBasePixel():a.getPixelForValue(p[d]);g.skip=isNaN(y)||isNaN(C),c&&(g.options=l||this.resolveDataElementOptions(h,f.active?"active":r),s&&(g.options.radius=0)),this.updateElement(f,h,g,r)}}resolveDataElementOptions(t,e){const i=this.getParsed(t);let r=super.resolveDataElementOptions(t,e);r.$shared&&(r=Object.assign({},r,{$shared:!1}));const s=r.radius;return"active"!==e&&(r.radius=0),r.radius+=xe(i&&i._custom,s),r}},DoughnutController:xy,LineController:class SY extends us{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){const e=this._cachedMeta,{dataset:i,data:r=[],_dataset:s}=e,o=this.chart._animationsDisabled;let{start:a,count:l}=GI(e,r,o);this._drawStart=a,this._drawCount=l,KI(e)&&(a=0,l=r.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!s._decimated,i.points=r;const c=this.resolveDatasetElementOptions(t);this.options.showLine||(c.borderWidth=0),c.segment=this.options.segment,this.updateElement(i,void 0,{animated:!o,options:c},t),this.updateElements(r,a,l,t)}updateElements(t,e,i,r){const s="reset"===r,{iScale:o,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,{sharedOptions:u,includeOptions:d}=this._getSharedOptions(e,r),h=o.axis,f=a.axis,{spanGaps:p,segment:g}=this.options,y=ya(p)?p:Number.POSITIVE_INFINITY,C=this.chart._animationsDisabled||s||"none"===r,x=e+i,D=t.length;let E=e>0&&this.getParsed(e-1);for(let k=0;k<D;++k){const P=t[k],V=C?P:{};if(k<e||k>=x){V.skip=!0;continue}const H=this.getParsed(k),j=je(H[f]),J=V[h]=o.getPixelForValue(H[h],k),me=V[f]=s||j?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,H,l):H[f],k);V.skip=isNaN(J)||isNaN(me)||j,V.stop=k>0&&Math.abs(H[h]-E[h])>y,g&&(V.parsed=H,V.raw=c.data[k]),d&&(V.options=u||this.resolveDataElementOptions(k,P.active?"active":r)),C||this.updateElement(P,k,V,r),E=H}}getMaxOverflow(){const t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,r=t.data||[];if(!r.length)return i;const s=r[0].size(this.resolveDataElementOptions(0)),o=r[r.length-1].size(this.resolveDataElementOptions(r.length-1));return Math.max(i,s,o)/2}draw(){const t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}},PolarAreaController:FM,PieController:class DY extends xy{static id="pie";static defaults={cutout:0,rotation:0,circumference:360,radius:"100%"}},RadarController:class xY extends us{static id="radar";static defaults={datasetElementType:"line",dataElementType:"point",indexAxis:"r",showLine:!0,elements:{line:{fill:"start"}}};static overrides={aspectRatio:1,scales:{r:{type:"radialLinear"}}};getLabelAndValue(t){const e=this._cachedMeta.vScale,i=this.getParsed(t);return{label:e.getLabels()[t],value:""+e.getLabelForValue(i[e.axis])}}parseObjectData(t,e,i,r){return cM.bind(this)(t,e,i,r)}update(t){const e=this._cachedMeta,i=e.dataset,r=e.data||[],s=e.iScale.getLabels();if(i.points=r,"resize"!==t){const o=this.resolveDatasetElementOptions(t);this.options.showLine||(o.borderWidth=0),this.updateElement(i,void 0,{_loop:!0,_fullLoop:s.length===r.length,options:o},t)}this.updateElements(r,0,r.length,t)}updateElements(t,e,i,r){const s=this._cachedMeta.rScale,o="reset"===r;for(let a=e;a<e+i;a++){const l=t[a],c=this.resolveDataElementOptions(a,l.active?"active":r),u=s.getPointPositionForValue(a,this.getParsed(a).r),d=o?s.xCenter:u.x,h=o?s.yCenter:u.y,f={x:d,y:h,angle:u.angle,skip:isNaN(d)||isNaN(h),options:c};this.updateElement(l,a,f,r)}}},ScatterController:class EY extends us{static id="scatter";static defaults={datasetElementType:!1,dataElementType:"point",showLine:!1,fill:!1};static overrides={interaction:{mode:"point"},scales:{x:{type:"linear"},y:{type:"linear"}}};getLabelAndValue(t){const e=this._cachedMeta,i=this.chart.data.labels||[],{xScale:r,yScale:s}=e,o=this.getParsed(t),a=r.getLabelForValue(o.x),l=s.getLabelForValue(o.y);return{label:i[t]||"",value:"("+a+", "+l+")"}}update(t){const e=this._cachedMeta,{data:i=[]}=e,r=this.chart._animationsDisabled;let{start:s,count:o}=GI(e,i,r);if(this._drawStart=s,this._drawCount=o,KI(e)&&(s=0,o=i.length),this.options.showLine){const{dataset:a,_dataset:l}=e;a._chart=this.chart,a._datasetIndex=this.index,a._decimated=!!l._decimated,a.points=i;const c=this.resolveDatasetElementOptions(t);c.segment=this.options.segment,this.updateElement(a,void 0,{animated:!r,options:c},t)}this.updateElements(i,s,o,t)}addElements(){const{showLine:t}=this.options;!this.datasetElementType&&t&&(this.datasetElementType=this.chart.registry.getElement("line")),super.addElements()}updateElements(t,e,i,r){const s="reset"===r,{iScale:o,vScale:a,_stacked:l,_dataset:c}=this._cachedMeta,u=this.resolveDataElementOptions(e,r),d=this.getSharedOptions(u),h=this.includeOptions(r,d),f=o.axis,p=a.axis,{spanGaps:g,segment:y}=this.options,C=ya(g)?g:Number.POSITIVE_INFINITY,x=this.chart._animationsDisabled||s||"none"===r;let D=e>0&&this.getParsed(e-1);for(let E=e;E<e+i;++E){const k=t[E],P=this.getParsed(E),V=x?k:{},H=je(P[p]),j=V[f]=o.getPixelForValue(P[f],E),J=V[p]=s||H?a.getBasePixel():a.getPixelForValue(l?this.applyStack(a,P,l):P[p],E);V.skip=isNaN(j)||isNaN(J)||H,V.stop=E>0&&Math.abs(P[f]-D[f])>C,y&&(V.parsed=P,V.raw=c.data[E]),h&&(V.options=d||this.resolveDataElementOptions(E,k.active?"active":r)),x||this.updateElement(k,E,V,r),D=P}this.updateSharedOptions(d,r,u)}getMaxOverflow(){const t=this._cachedMeta,e=t.data||[];if(!this.options.showLine){let a=0;for(let l=e.length-1;l>=0;--l)a=Math.max(a,e[l].size(this.resolveDataElementOptions(l))/2);return a>0&&a}const i=t.dataset,r=i.options&&i.options.borderWidth||0;if(!e.length)return r;const s=e[0].size(this.resolveDataElementOptions(0)),o=e[e.length-1].size(this.resolveDataElementOptions(e.length-1));return Math.max(r,s,o)/2}}});function eo(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}class Ey{static override(t){Object.assign(Ey.prototype,t)}constructor(t){this.options=t||{}}init(){}formats(){return eo()}parse(){return eo()}format(){return eo()}add(){return eo()}diff(){return eo()}startOf(){return eo()}endOf(){return eo()}}var IY__date=Ey;function MY(n,t,e,i){const{controller:r,data:s,_sorted:o}=n,a=r._cachedMeta.iScale;if(a&&t===a.axis&&"r"!==t&&o&&s.length){const l=a._reversePixels?GK:Ir;if(!i)return l(s,t,e);if(r._sharedOptions){const c=s[0],u="function"==typeof c.getRange&&c.getRange(t);if(u){const d=l(s,t,e-u),h=l(s,t,e+u);return{lo:d.lo,hi:h.hi}}}}return{lo:0,hi:s.length-1}}function wc(n,t,e,i,r){const s=n.getSortedVisibleDatasetMetas(),o=e[t];for(let a=0,l=s.length;a<l;++a){const{index:c,data:u}=s[a],{lo:d,hi:h}=MY(s[a],t,o,r);for(let f=d;f<=h;++f){const p=u[f];p.skip||i(p,c,f)}}}function Ty(n,t,e,i,r){const s=[];return!r&&!n.isPointInArea(t)||wc(n,e,t,function(a,l,c){!r&&!_c(a,n.chartArea,0)||a.inRange(t.x,t.y,i)&&s.push({element:a,datasetIndex:l,index:c})},!0),s}function Iy(n,t,e,i,r,s){return s||n.isPointInArea(t)?"r"!==e||i?function OY(n,t,e,i,r,s){let o=[];const a=function kY(n){const t=-1!==n.indexOf("x"),e=-1!==n.indexOf("y");return function(i,r){const s=t?Math.abs(i.x-r.x):0,o=e?Math.abs(i.y-r.y):0;return Math.sqrt(Math.pow(s,2)+Math.pow(o,2))}}(e);let l=Number.POSITIVE_INFINITY;return wc(n,e,t,function c(u,d,h){const f=u.inRange(t.x,t.y,r);if(i&&!f)return;const p=u.getCenterPoint(r);if(!s&&!n.isPointInArea(p)&&!f)return;const y=a(t,p);y<l?(o=[{element:u,datasetIndex:d,index:h}],l=y):y===l&&o.push({element:u,datasetIndex:d,index:h})}),o}(n,t,e,i,r,s):function AY(n,t,e,i){let r=[];return wc(n,e,t,function s(o,a,l){const{startAngle:c,endAngle:u}=o.getProps(["startAngle","endAngle"],i),{angle:d}=HI(o,{x:t.x,y:t.y});fc(d,c,u)&&r.push({element:o,datasetIndex:a,index:l})}),r}(n,t,e,r):[]}function LM(n,t,e,i,r){const s=[],o="x"===e?"inXRange":"inYRange";let a=!1;return wc(n,e,t,(l,c,u)=>{l[o](t[e],r)&&(s.push({element:l,datasetIndex:c,index:u}),a=a||l.inRange(t.x,t.y,r))}),i&&!a?[]:s}var PY={evaluateInteractionItems:wc,modes:{index(n,t,e,i){const r=Xs(t,n),s=e.axis||"x",o=e.includeInvisible||!1,a=e.intersect?Ty(n,r,s,i,o):Iy(n,r,s,!1,i,o),l=[];return a.length?(n.getSortedVisibleDatasetMetas().forEach(c=>{const u=a[0].index,d=c.data[u];d&&!d.skip&&l.push({element:d,datasetIndex:c.index,index:u})}),l):[]},dataset(n,t,e,i){const r=Xs(t,n),s=e.axis||"xy",o=e.includeInvisible||!1;let a=e.intersect?Ty(n,r,s,i,o):Iy(n,r,s,!1,i,o);if(a.length>0){const l=a[0].datasetIndex,c=n.getDatasetMeta(l).data;a=[];for(let u=0;u<c.length;++u)a.push({element:c[u],datasetIndex:l,index:u})}return a},point:(n,t,e,i)=>Ty(n,Xs(t,n),e.axis||"xy",i,e.includeInvisible||!1),nearest:(n,t,e,i)=>Iy(n,Xs(t,n),e.axis||"xy",e.intersect,i,e.includeInvisible||!1),x:(n,t,e,i)=>LM(n,Xs(t,n),"x",e.intersect,i),y:(n,t,e,i)=>LM(n,Xs(t,n),"y",e.intersect,i)}};const NM=["left","top","right","bottom"];function Cc(n,t){return n.filter(e=>e.pos===t)}function VM(n,t){return n.filter(e=>-1===NM.indexOf(e.pos)&&e.box.axis===t)}function Sc(n,t){return n.sort((e,i)=>{const r=t?i:e,s=t?e:i;return r.weight===s.weight?r.index-s.index:r.weight-s.weight})}function BM(n,t,e,i){return Math.max(n[e],t[e])+Math.max(n[i],t[i])}function HM(n,t){n.top=Math.max(n.top,t.top),n.left=Math.max(n.left,t.left),n.bottom=Math.max(n.bottom,t.bottom),n.right=Math.max(n.right,t.right)}function VY(n,t,e,i){const{pos:r,box:s}=e,o=n.maxPadding;if(!Re(r)){e.size&&(n[r]-=e.size);const d=i[e.stack]||{size:0,count:1};d.size=Math.max(d.size,e.horizontal?s.height:s.width),e.size=d.size/d.count,n[r]+=e.size}s.getPadding&&HM(o,s.getPadding());const a=Math.max(0,t.outerWidth-BM(o,n,"left","right")),l=Math.max(0,t.outerHeight-BM(o,n,"top","bottom")),c=a!==n.w,u=l!==n.h;return n.w=a,n.h=l,e.horizontal?{same:c,other:u}:{same:u,other:c}}function HY(n,t){const e=t.maxPadding;return function i(r){const s={left:0,top:0,right:0,bottom:0};return r.forEach(o=>{s[o]=Math.max(t[o],e[o])}),s}(n?["left","right"]:["top","bottom"])}function Dc(n,t,e,i){const r=[];let s,o,a,l,c,u;for(s=0,o=n.length,c=0;s<o;++s){a=n[s],l=a.box,l.update(a.width||t.w,a.height||t.h,HY(a.horizontal,t));const{same:d,other:h}=VY(t,e,a,i);c|=d&&r.length,u=u||h,l.fullSize||r.push(a)}return c&&Dc(r,t,e,i)||u}function kh(n,t,e,i,r){n.top=e,n.left=t,n.right=t+i,n.bottom=e+r,n.width=i,n.height=r}function zM(n,t,e,i){const r=e.padding;let{x:s,y:o}=t;for(const a of n){const l=a.box,c=i[a.stack]||{count:1,placed:0,weight:1},u=a.stackWeight/c.weight||1;if(a.horizontal){const d=t.w*u,h=c.size||l.height;mi(c.start)&&(o=c.start),l.fullSize?kh(l,r.left,o,e.outerWidth-r.right-r.left,h):kh(l,t.left+c.placed,o,d,h),c.start=o,c.placed+=d,o=l.bottom}else{const d=t.h*u,h=c.size||l.width;mi(c.start)&&(s=c.start),l.fullSize?kh(l,s,r.top,h,e.outerHeight-r.bottom-r.top):kh(l,s,t.top+c.placed,h,d),c.start=s,c.placed+=d,s=l.right}}t.x=s,t.y=o}var Sn={addBox(n,t){n.boxes||(n.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},n.boxes.push(t)},removeBox(n,t){const e=n.boxes?n.boxes.indexOf(t):-1;-1!==e&&n.boxes.splice(e,1)},configure(n,t,e){t.fullSize=e.fullSize,t.position=e.position,t.weight=e.weight},update(n,t,e,i){if(!n)return;const r=Cn(n.options.layout.padding),s=Math.max(t-r.width,0),o=Math.max(e-r.height,0),a=function NY(n){const t=function RY(n){const t=[];let e,i,r,s,o,a;for(e=0,i=(n||[]).length;e<i;++e)r=n[e],({position:s,options:{stack:o,stackWeight:a=1}}=r),t.push({index:e,box:r,pos:s,horizontal:r.isHorizontal(),weight:r.weight,stack:o&&s+o,stackWeight:a});return t}(n),e=Sc(t.filter(c=>c.box.fullSize),!0),i=Sc(Cc(t,"left"),!0),r=Sc(Cc(t,"right")),s=Sc(Cc(t,"top"),!0),o=Sc(Cc(t,"bottom")),a=VM(t,"x"),l=VM(t,"y");return{fullSize:e,leftAndTop:i.concat(s),rightAndBottom:r.concat(l).concat(o).concat(a),chartArea:Cc(t,"chartArea"),vertical:i.concat(r).concat(l),horizontal:s.concat(o).concat(a)}}(n.boxes),l=a.vertical,c=a.horizontal;Ze(n.boxes,g=>{"function"==typeof g.beforeLayout&&g.beforeLayout()});const u=l.reduce((g,y)=>y.box.options&&!1===y.box.options.display?g:g+1,0)||1,d=Object.freeze({outerWidth:t,outerHeight:e,padding:r,availableWidth:s,availableHeight:o,vBoxMaxWidth:s/2/u,hBoxMaxHeight:o/2}),h=Object.assign({},r);HM(h,Cn(i));const f=Object.assign({maxPadding:h,w:s,h:o,x:r.left,y:r.top},r),p=function LY(n,t){const e=function FY(n){const t={};for(const e of n){const{stack:i,pos:r,stackWeight:s}=e;if(!i||!NM.includes(r))continue;const o=t[i]||(t[i]={count:0,placed:0,weight:0,size:0});o.count++,o.weight+=s}return t}(n),{vBoxMaxWidth:i,hBoxMaxHeight:r}=t;let s,o,a;for(s=0,o=n.length;s<o;++s){a=n[s];const{fullSize:l}=a.box,c=e[a.stack],u=c&&a.stackWeight/c.weight;a.horizontal?(a.width=u?u*i:l&&t.availableWidth,a.height=r):(a.width=i,a.height=u?u*r:l&&t.availableHeight)}return e}(l.concat(c),d);Dc(a.fullSize,f,d,p),Dc(l,f,d,p),Dc(c,f,d,p)&&Dc(l,f,d,p),function BY(n){const t=n.maxPadding;function e(i){const r=Math.max(t[i]-n[i],0);return n[i]+=r,r}n.y+=e("top"),n.x+=e("left"),e("right"),e("bottom")}(f),zM(a.leftAndTop,f,d,p),f.x+=f.w,f.y+=f.h,zM(a.rightAndBottom,f,d,p),n.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},Ze(a.chartArea,g=>{const y=g.box;Object.assign(y,n.chartArea),y.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}};class jM{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,r){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,r?Math.floor(e/r):i)}}isAttached(t){return!0}updateConfig(t){}}class zY extends jM{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}}const Ah="$chartjs",jY={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},$M=n=>null===n||""===n,UM=!!Bq&&{passive:!0};function WY(n,t,e){n.canvas.removeEventListener(t,e,UM)}function Oh(n,t){for(const e of n)if(e===t||e.contains(t))return!0}function KY(n,t,e){const i=n.canvas,r=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||Oh(a.addedNodes,i),o=o&&!Oh(a.removedNodes,i);o&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}function qY(n,t,e){const i=n.canvas,r=new MutationObserver(s=>{let o=!1;for(const a of s)o=o||Oh(a.removedNodes,i),o=o&&!Oh(a.addedNodes,i);o&&e()});return r.observe(document,{childList:!0,subtree:!0}),r}const xc=new Map;let WM=0;function GM(){const n=window.devicePixelRatio;n!==WM&&(WM=n,xc.forEach((t,e)=>{e.currentDevicePixelRatio!==n&&t()}))}function ZY(n,t,e){const i=n.canvas,r=i&&wy(i);if(!r)return;const s=WI((a,l)=>{const c=r.clientWidth;e(a,l),c<r.clientWidth&&e()},window),o=new ResizeObserver(a=>{const l=a[0],c=l.contentRect.width,u=l.contentRect.height;0===c&&0===u||s(c,u)});return o.observe(r),function YY(n,t){xc.size||window.addEventListener("resize",GM),xc.set(n,t)}(n,s),o}function My(n,t,e){e&&e.disconnect(),"resize"===t&&function QY(n){xc.delete(n),xc.size||window.removeEventListener("resize",GM)}(n)}function XY(n,t,e){const i=n.canvas,r=WI(s=>{null!==n.ctx&&e(function GY(n,t){const e=jY[n.type]||n.type,{x:i,y:r}=Xs(n,t);return{type:e,chart:t,native:n,x:void 0!==i?i:null,y:void 0!==r?r:null}}(s,n))},n);return function UY(n,t,e){n.addEventListener(t,e,UM)}(i,t,r),r}class JY extends jM{acquireContext(t,e){const i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(function $Y(n,t){const e=n.style,i=n.getAttribute("height"),r=n.getAttribute("width");if(n[Ah]={initial:{height:i,width:r,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",$M(r)){const s=fM(n,"width");void 0!==s&&(n.width=s)}if($M(i))if(""===n.style.height)n.height=n.width/(t||2);else{const s=fM(n,"height");void 0!==s&&(n.height=s)}}(t,e),i):null}releaseContext(t){const e=t.canvas;if(!e[Ah])return!1;const i=e[Ah].initial;["height","width"].forEach(s=>{const o=i[s];je(o)?e.removeAttribute(s):e.setAttribute(s,o)});const r=i.style||{};return Object.keys(r).forEach(s=>{e.style[s]=r[s]}),e.width=e.width,delete e[Ah],!0}addEventListener(t,e,i){this.removeEventListener(t,e),(t.$proxies||(t.$proxies={}))[e]=({attach:KY,detach:qY,resize:ZY}[e]||XY)(t,e,i)}removeEventListener(t,e){const i=t.$proxies||(t.$proxies={}),r=i[e];r&&(({attach:My,detach:My,resize:My}[e]||WY)(t,e,r),i[e]=void 0)}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,r){return function Vq(n,t,e,i){const r=Ih(n),s=Zs(r,"margin"),o=Th(r.maxWidth,n,"clientWidth")||bh,a=Th(r.maxHeight,n,"clientHeight")||bh,l=function Nq(n,t,e){let i,r;if(void 0===t||void 0===e){const s=wy(n);if(s){const o=s.getBoundingClientRect(),a=Ih(s),l=Zs(a,"border","width"),c=Zs(a,"padding");t=o.width-c.width-l.width,e=o.height-c.height-l.height,i=Th(a.maxWidth,s,"clientWidth"),r=Th(a.maxHeight,s,"clientHeight")}else t=n.clientWidth,e=n.clientHeight}return{width:t,height:e,maxWidth:i||bh,maxHeight:r||bh}}(n,t,e);let{width:c,height:u}=l;if("content-box"===r.boxSizing){const h=Zs(r,"border","width"),f=Zs(r,"padding");c-=f.width+h.width,u-=f.height+h.height}return c=Math.max(0,c-s.width),u=Math.max(0,i?c/i:u-s.height),c=Mh(Math.min(c,o,l.maxWidth)),u=Mh(Math.min(u,a,l.maxHeight)),c&&!u&&(u=Mh(c/2)),(void 0!==t||void 0!==e)&&i&&l.height&&u>l.height&&(u=l.height,c=Mh(Math.floor(u*i))),{width:c,height:u}}(t,e,i,r)}isAttached(t){const e=wy(t);return!(!e||!e.isConnected)}}class kr{static defaults={};static defaultRoutes=void 0;active=!1;tooltipPosition(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return ya(this.x)&&ya(this.y)}getProps(t,e){const i=this.$animations;if(!e||!i)return this;const r={};return t.forEach(s=>{r[s]=i[s]&&i[s].active()?i[s]._to:this[s]}),r}}function Ph(n,t,e,i,r){const s=xe(i,0),o=Math.min(xe(r,n.length),n.length);let l,c,u,a=0;for(e=Math.ceil(e),r&&(l=r-i,e=l/Math.floor(l/e)),u=s;u<0;)a++,u=Math.round(s+a*e);for(c=Math.max(s,0);c<o;c++)c===u&&(t.push(n[c]),a++,u=Math.round(s+a*e))}const KM=(n,t,e)=>"top"===t||"left"===t?n[t]+e:n[t]-e;function qM(n,t){const e=[],i=n.length/t,r=n.length;let s=0;for(;s<r;s+=i)e.push(n[Math.floor(s)]);return e}function lQ(n,t,e){const i=n.ticks.length,r=Math.min(t,i-1),s=n._startPixel,o=n._endPixel,a=1e-6;let c,l=n.getPixelForTick(r);if(!(e&&(c=1===i?Math.max(l-s,o-l):0===t?(n.getPixelForTick(1)-l)/2:(l-n.getPixelForTick(r-1))/2,l+=r<t?c:-c,l<s-a||l>o+a)))return l}function Ec(n){return n.drawTicks?n.tickLength:0}function YM(n,t){if(!n.display)return 0;const e=Kt(n.font,t),i=Cn(n.padding);return(dt(n.text)?n.text.length:1)*e.lineHeight+i.height}function hQ(n,t,e){let i=hy(n);return(e&&"right"!==t||!e&&"right"===t)&&(i=(n=>"left"===n?"right":"right"===n?"left":n)(i)),i}class to extends kr{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:r}=this;return t=ei(t,Number.POSITIVE_INFINITY),e=ei(e,Number.NEGATIVE_INFINITY),i=ei(i,Number.POSITIVE_INFINITY),r=ei(r,Number.NEGATIVE_INFINITY),{min:ei(t,i),max:ei(e,r),minDefined:Et(t),maxDefined:Et(e)}}getMinMax(t){let o,{min:e,max:i,minDefined:r,maxDefined:s}=this.getUserBounds();if(r&&s)return{min:e,max:i};const a=this.getMatchingVisibleMetas();for(let l=0,c=a.length;l<c;++l)o=a[l].controller.getMinMax(this,t),r||(e=Math.min(e,o.min)),s||(i=Math.max(i,o.max));return e=s&&e>i?i:e,i=r&&e>i?e:i,{min:ei(e,ei(i,e)),max:ei(i,ei(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){const t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){ct(this.options.beforeUpdate,[this])}update(t,e,i){const{beginAtZero:r,grace:s,ticks:o}=this.options,a=o.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=function mq(n,t,e){const{min:i,max:r}=n,s=OI(t,(r-i)/2),o=(a,l)=>e&&0===a?0:a+l;return{min:o(i,-Math.abs(s)),max:o(r,s)}}(this,s,r),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();const l=a<this.ticks.length;this._convertTicksToLabels(l?qM(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),o.display&&(o.autoSkip||"auto"===o.source)&&(this.ticks=function tQ(n,t){const e=n.options.ticks,i=function nQ(n){const t=n.options.offset,e=n._tickSize();return Math.floor(Math.min(n._length/e+(t?0:1),n._maxLength/e))}(n),r=Math.min(e.maxTicksLimit||i,i),s=e.major.enabled?function rQ(n){const t=[];let e,i;for(e=0,i=n.length;e<i;e++)n[e].major&&t.push(e);return t}(t):[],o=s.length,a=s[0],l=s[o-1],c=[];if(o>r)return function sQ(n,t,e,i){let o,r=0,s=e[0];for(i=Math.ceil(i),o=0;o<n.length;o++)o===s&&(t.push(n[o]),r++,s=e[r*i])}(t,c,s,o/r),c;const u=function iQ(n,t,e){const i=function oQ(n){const t=n.length;let e,i;if(t<2)return!1;for(i=n[0],e=1;e<t;++e)if(n[e]-n[e-1]!==i)return!1;return i}(n),r=t.length/e;if(!i)return Math.max(r,1);const s=function jK(n){const t=[],e=Math.sqrt(n);let i;for(i=1;i<e;i++)n%i==0&&(t.push(i),t.push(n/i));return e===(0|e)&&t.push(e),t.sort((r,s)=>r-s).pop(),t}(i);for(let o=0,a=s.length-1;o<a;o++){const l=s[o];if(l>r)return l}return Math.max(r,1)}(s,t,r);if(o>0){let d,h;const f=o>1?Math.round((l-a)/(o-1)):null;for(Ph(t,c,u,je(f)?0:a-f,a),d=0,h=o-1;d<h;d++)Ph(t,c,u,s[d],s[d+1]);return Ph(t,c,u,l,je(f)?t.length:l+f),c}return Ph(t,c,u),c}(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),l&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let e,i,t=this.options.reverse;this.isHorizontal()?(e=this.left,i=this.right):(e=this.top,i=this.bottom,t=!t),this._startPixel=e,this._endPixel=i,this._reversePixels=t,this._length=i-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){ct(this.options.afterUpdate,[this])}beforeSetDimensions(){ct(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){ct(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),ct(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){ct(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){const e=this.options.ticks;let i,r,s;for(i=0,r=t.length;i<r;i++)s=t[i],s.label=ct(e.callback,[s.value,i,t],this)}afterTickToLabelConversion(){ct(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){ct(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){const t=this.options,e=t.ticks,i=this.ticks.length,r=e.minRotation||0,s=e.maxRotation;let a,l,c,o=r;if(!this._isVisible()||!e.display||r>=s||i<=1||!this.isHorizontal())return void(this.labelRotation=r);const u=this._getLabelSizes(),d=u.widest.width,h=u.highest.height,f=tn(this.chart.width-d,0,this.maxWidth);a=t.offset?this.maxWidth/i:f/(i-1),d+6>a&&(a=f/(i-(t.offset?.5:1)),l=this.maxHeight-Ec(t.grid)-e.padding-YM(t.title,this.chart.options.font),c=Math.sqrt(d*d+h*h),o=cy(Math.min(Math.asin(tn((u.highest.height+6)/a,-1,1)),Math.asin(tn(l/c,-1,1))-Math.asin(tn(h/c,-1,1)))),o=Math.max(r,Math.min(s,o))),this.labelRotation=o}afterCalculateLabelRotation(){ct(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){ct(this.options.beforeFit,[this])}fit(){const t={width:0,height:0},{chart:e,options:{ticks:i,title:r,grid:s}}=this,o=this._isVisible(),a=this.isHorizontal();if(o){const l=YM(r,e.options.font);if(a?(t.width=this.maxWidth,t.height=Ec(s)+l):(t.height=this.maxHeight,t.width=Ec(s)+l),i.display&&this.ticks.length){const{first:c,last:u,widest:d,highest:h}=this._getLabelSizes(),f=2*i.padding,p=Ni(this.labelRotation),g=Math.cos(p),y=Math.sin(p);a?t.height=Math.min(this.maxHeight,t.height+(i.mirror?0:y*d.width+g*h.height)+f):t.width=Math.min(this.maxWidth,t.width+(i.mirror?0:g*d.width+y*h.height)+f),this._calculatePadding(c,u,y,g)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,r){const{ticks:{align:s,padding:o},position:a}=this.options,l=0!==this.labelRotation,c="top"!==a&&"x"===this.axis;if(this.isHorizontal()){const u=this.getPixelForTick(0)-this.left,d=this.right-this.getPixelForTick(this.ticks.length-1);let h=0,f=0;l?c?(h=r*t.width,f=i*e.height):(h=i*t.height,f=r*e.width):"start"===s?f=e.width:"end"===s?h=t.width:"inner"!==s&&(h=t.width/2,f=e.width/2),this.paddingLeft=Math.max((h-u+o)*this.width/(this.width-u),0),this.paddingRight=Math.max((f-d+o)*this.width/(this.width-d),0)}else{let u=e.height/2,d=t.height/2;"start"===s?(u=0,d=t.height):"end"===s&&(u=e.height,d=0),this.paddingTop=u+o,this.paddingBottom=d+o}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){ct(this.options.afterFit,[this])}isHorizontal(){const{axis:t,position:e}=this.options;return"top"===e||"bottom"===e||"x"===t}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){let e,i;for(this.beforeTickToLabelConversion(),this.generateTickLabels(t),e=0,i=t.length;e<i;e++)je(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){const e=this.options.ticks.sampleSize;let i=this.ticks;e<i.length&&(i=qM(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length)}return t}_computeLabelSizes(t,e){const{ctx:i,_longestTextCache:r}=this,s=[],o=[];let c,u,d,h,f,p,g,y,C,x,D,a=0,l=0;for(c=0;c<e;++c){if(h=t[c].label,f=this._resolveTickFontOptions(c),i.font=p=f.string,g=r[p]=r[p]||{data:{},gc:[]},y=f.lineHeight,C=x=0,je(h)||dt(h)){if(dt(h))for(u=0,d=h.length;u<d;++u)D=h[u],!je(D)&&!dt(D)&&(C=Sh(i,g.data,g.gc,C,D),x+=y)}else C=Sh(i,g.data,g.gc,C,h),x=y;s.push(C),o.push(x),a=Math.max(C,a),l=Math.max(x,l)}!function cQ(n,t){Ze(n,e=>{const i=e.gc,r=i.length/2;let s;if(r>t){for(s=0;s<r;++s)delete e.data[i[s]];i.splice(0,r)}})}(r,e);const E=s.indexOf(a),k=o.indexOf(l),P=V=>({width:s[V]||0,height:o[V]||0});return{first:P(0),last:P(e-1),widest:P(E),highest:P(k),widths:s,heights:o}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);const e=this._startPixel+t*this._length;return function WK(n){return tn(n,-32768,32767)}(this._alignToPixels?qs(this.chart,e,0):e)}getDecimalForPixel(t){const e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){const{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){const e=this.ticks||[];if(t>=0&&t<e.length){const i=e[t];return i.$context||(i.$context=function dQ(n,t,e){return cs(n,{tick:e,index:t,type:"tick"})}(this.getContext(),t,i))}return this.$context||(this.$context=function uQ(n,t){return cs(n,{scale:t,type:"scale"})}(this.chart.getContext(),this))}_tickSize(){const t=this.options.ticks,e=Ni(this.labelRotation),i=Math.abs(Math.cos(e)),r=Math.abs(Math.sin(e)),s=this._getLabelSizes(),o=t.autoSkipPadding||0,a=s?s.widest.width+o:0,l=s?s.highest.height+o:0;return this.isHorizontal()?l*i>a*r?a/i:l/r:l*r<a*i?l/i:a/r}_isVisible(){const t=this.options.display;return"auto"!==t?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){const e=this.axis,i=this.chart,r=this.options,{grid:s,position:o,border:a}=r,l=s.offset,c=this.isHorizontal(),d=this.ticks.length+(l?1:0),h=Ec(s),f=[],p=a.setContext(this.getContext()),g=p.display?p.width:0,y=g/2,C=function(z){return qs(i,z,g)};let x,D,E,k,P,V,H,j,J,me,Ie,Xe;if("top"===o)x=C(this.bottom),V=this.bottom-h,j=x-y,me=C(t.top)+y,Xe=t.bottom;else if("bottom"===o)x=C(this.top),me=t.top,Xe=C(t.bottom)-y,V=x+y,j=this.top+h;else if("left"===o)x=C(this.right),P=this.right-h,H=x-y,J=C(t.left)+y,Ie=t.right;else if("right"===o)x=C(this.left),J=t.left,Ie=C(t.right)-y,P=x+y,H=this.left+h;else if("x"===e){if("center"===o)x=C((t.top+t.bottom)/2+.5);else if(Re(o)){const z=Object.keys(o)[0];x=C(this.chart.scales[z].getPixelForValue(o[z]))}me=t.top,Xe=t.bottom,V=x+y,j=V+h}else if("y"===e){if("center"===o)x=C((t.left+t.right)/2);else if(Re(o)){const z=Object.keys(o)[0];x=C(this.chart.scales[z].getPixelForValue(o[z]))}P=x-y,H=P-h,J=t.left,Ie=t.right}const Nt=xe(r.ticks.maxTicksLimit,d),Ne=Math.max(1,Math.ceil(d/Nt));for(D=0;D<d;D+=Ne){const z=this.getContext(D),$=s.setContext(z),ee=a.setContext(z),de=$.lineWidth,gt=$.color,Pn=ee.dash||[],Vt=ee.dashOffset,zn=$.tickWidth,Je=$.tickColor,ys=$.tickBorderDash||[],uo=$.tickBorderDashOffset;E=lQ(this,D,l),void 0!==E&&(k=qs(i,E,de),c?P=H=J=Ie=k:V=j=me=Xe=k,f.push({tx1:P,ty1:V,tx2:H,ty2:j,x1:J,y1:me,x2:Ie,y2:Xe,width:de,color:gt,borderDash:Pn,borderDashOffset:Vt,tickWidth:zn,tickColor:Je,tickBorderDash:ys,tickBorderDashOffset:uo}))}return this._ticksLength=d,this._borderValue=x,f}_computeLabelItems(t){const e=this.axis,i=this.options,{position:r,ticks:s}=i,o=this.isHorizontal(),a=this.ticks,{align:l,crossAlign:c,padding:u,mirror:d}=s,h=Ec(i.grid),f=h+u,p=d?-u:f,g=-Ni(this.labelRotation),y=[];let C,x,D,E,k,P,V,H,j,J,me,Ie,Xe="middle";if("top"===r)P=this.bottom-p,V=this._getXAxisLabelAlignment();else if("bottom"===r)P=this.top+p,V=this._getXAxisLabelAlignment();else if("left"===r){const Ne=this._getYAxisLabelAlignment(h);V=Ne.textAlign,k=Ne.x}else if("right"===r){const Ne=this._getYAxisLabelAlignment(h);V=Ne.textAlign,k=Ne.x}else if("x"===e){if("center"===r)P=(t.top+t.bottom)/2+f;else if(Re(r)){const Ne=Object.keys(r)[0];P=this.chart.scales[Ne].getPixelForValue(r[Ne])+f}V=this._getXAxisLabelAlignment()}else if("y"===e){if("center"===r)k=(t.left+t.right)/2-f;else if(Re(r)){const Ne=Object.keys(r)[0];k=this.chart.scales[Ne].getPixelForValue(r[Ne])}V=this._getYAxisLabelAlignment(h).textAlign}"y"===e&&("start"===l?Xe="top":"end"===l&&(Xe="bottom"));const Nt=this._getLabelSizes();for(C=0,x=a.length;C<x;++C){D=a[C],E=D.label;const Ne=s.setContext(this.getContext(C));H=this.getPixelForTick(C)+s.labelOffset,j=this._resolveTickFontOptions(C),J=j.lineHeight,me=dt(E)?E.length:1;const z=me/2,$=Ne.color,ee=Ne.textStrokeColor,de=Ne.textStrokeWidth;let Pn,gt=V;if(o?(k=H,"inner"===V&&(gt=C===x-1?this.options.reverse?"left":"right":0===C?this.options.reverse?"right":"left":"center"),Ie="top"===r?"near"===c||0!==g?-me*J+J/2:"center"===c?-Nt.highest.height/2-z*J+J:J/2-Nt.highest.height:"near"===c||0!==g?J/2:"center"===c?Nt.highest.height/2-z*J:Nt.highest.height-me*J,d&&(Ie*=-1),0!==g&&!Ne.showLabelBackdrop&&(k+=J/2*Math.sin(g))):(P=H,Ie=(1-me)*J/2),Ne.showLabelBackdrop){const Vt=Cn(Ne.backdropPadding),zn=Nt.heights[C],Je=Nt.widths[C];let ys=Ie-Vt.top,uo=0-Vt.left;switch(Xe){case"middle":ys-=zn/2;break;case"bottom":ys-=zn}switch(V){case"center":uo-=Je/2;break;case"right":uo-=Je}Pn={left:uo,top:ys,width:Je+Vt.width,height:zn+Vt.height,color:Ne.backdropColor}}y.push({label:E,font:j,textOffset:Ie,options:{rotation:g,color:$,strokeColor:ee,strokeWidth:de,textAlign:gt,textBaseline:Xe,translation:[k,P],backdrop:Pn}})}return y}_getXAxisLabelAlignment(){const{position:t,ticks:e}=this.options;if(-Ni(this.labelRotation))return"top"===t?"left":"right";let r="center";return"start"===e.align?r="left":"end"===e.align?r="right":"inner"===e.align&&(r="inner"),r}_getYAxisLabelAlignment(t){const{position:e,ticks:{crossAlign:i,mirror:r,padding:s}}=this.options,a=t+s,l=this._getLabelSizes().widest.width;let c,u;return"left"===e?r?(u=this.right+s,"near"===i?c="left":"center"===i?(c="center",u+=l/2):(c="right",u+=l)):(u=this.right-a,"near"===i?c="right":"center"===i?(c="center",u-=l/2):(c="left",u=this.left)):"right"===e?r?(u=this.left+s,"near"===i?c="right":"center"===i?(c="center",u-=l/2):(c="left",u-=l)):(u=this.left+a,"near"===i?c="left":"center"===i?(c="center",u+=l/2):(c="right",u=this.right)):c="right",{textAlign:c,x:u}}_computeLabelArea(){if(this.options.ticks.mirror)return;const t=this.chart,e=this.options.position;return"left"===e||"right"===e?{top:0,left:this.left,bottom:t.height,right:this.right}:"top"===e||"bottom"===e?{top:this.top,left:0,bottom:this.bottom,right:t.width}:void 0}drawBackground(){const{ctx:t,options:{backgroundColor:e},left:i,top:r,width:s,height:o}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,r,s,o),t.restore())}getLineWidthForValue(t){const e=this.options.grid;if(!this._isVisible()||!e.display)return 0;const r=this.ticks.findIndex(s=>s.value===t);return r>=0?e.setContext(this.getContext(r)).lineWidth:0}drawGrid(t){const e=this.options.grid,i=this.ctx,r=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t));let s,o;const a=(l,c,u)=>{!u.width||!u.color||(i.save(),i.lineWidth=u.width,i.strokeStyle=u.color,i.setLineDash(u.borderDash||[]),i.lineDashOffset=u.borderDashOffset,i.beginPath(),i.moveTo(l.x,l.y),i.lineTo(c.x,c.y),i.stroke(),i.restore())};if(e.display)for(s=0,o=r.length;s<o;++s){const l=r[s];e.drawOnChartArea&&a({x:l.x1,y:l.y1},{x:l.x2,y:l.y2},l),e.drawTicks&&a({x:l.tx1,y:l.ty1},{x:l.tx2,y:l.ty2},{color:l.tickColor,width:l.tickWidth,borderDash:l.tickBorderDash,borderDashOffset:l.tickBorderDashOffset})}}drawBorder(){const{chart:t,ctx:e,options:{border:i,grid:r}}=this,s=i.setContext(this.getContext()),o=i.display?s.width:0;if(!o)return;const a=r.setContext(this.getContext(0)).lineWidth,l=this._borderValue;let c,u,d,h;this.isHorizontal()?(c=qs(t,this.left,o)-o/2,u=qs(t,this.right,a)+a/2,d=h=l):(d=qs(t,this.top,o)-o/2,h=qs(t,this.bottom,a)+a/2,c=u=l),e.save(),e.lineWidth=s.width,e.strokeStyle=s.color,e.beginPath(),e.moveTo(c,d),e.lineTo(u,h),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;const i=this.ctx,r=this._computeLabelArea();r&&Dh(i,r);const s=this.getLabelItems(t);for(const o of s)Ys(i,o.label,0,o.textOffset,o.font,o.options);r&&xh(i)}drawTitle(){const{ctx:t,options:{position:e,title:i,reverse:r}}=this;if(!i.display)return;const s=Kt(i.font),o=Cn(i.padding),a=i.align;let l=s.lineHeight/2;"bottom"===e||"center"===e||Re(e)?(l+=o.bottom,dt(i.text)&&(l+=s.lineHeight*(i.text.length-1))):l+=o.top;const{titleX:c,titleY:u,maxWidth:d,rotation:h}=function fQ(n,t,e,i){const{top:r,left:s,bottom:o,right:a,chart:l}=n,{chartArea:c,scales:u}=l;let h,f,p,d=0;const g=o-r,y=a-s;if(n.isHorizontal()){if(f=wn(i,s,a),Re(e)){const C=Object.keys(e)[0];p=u[C].getPixelForValue(e[C])+g-t}else p="center"===e?(c.bottom+c.top)/2+g-t:KM(n,e,t);h=a-s}else{if(Re(e)){const C=Object.keys(e)[0];f=u[C].getPixelForValue(e[C])-y+t}else f="center"===e?(c.left+c.right)/2-y+t:KM(n,e,t);p=wn(i,o,r),d="left"===e?-Tt:Tt}return{titleX:f,titleY:p,maxWidth:h,rotation:d}}(this,l,e,a);Ys(t,i.text,0,0,s,{color:i.color,maxWidth:d,rotation:h,textAlign:hQ(a,e,r),textBaseline:"middle",translation:[c,u]})}draw(t){!this._isVisible()||(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){const t=this.options,e=t.ticks&&t.ticks.z||0,i=xe(t.grid&&t.grid.z,-1),r=xe(t.border&&t.border.z,0);return this._isVisible()&&this.draw===to.prototype.draw?[{z:i,draw:s=>{this.drawBackground(),this.drawGrid(s),this.drawTitle()}},{z:r,draw:()=>{this.drawBorder()}},{z:e,draw:s=>{this.drawLabels(s)}}]:[{z:e,draw:s=>{this.draw(s)}}]}getMatchingVisibleMetas(t){const e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",r=[];let s,o;for(s=0,o=e.length;s<o;++s){const a=e[s];a[i]===this.id&&(!t||a.type===t)&&r.push(a)}return r}_resolveTickFontOptions(t){return Kt(this.options.ticks.setContext(this.getContext(t)).font)}_maxDigits(){const t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}}class Rh{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){const e=Object.getPrototypeOf(t);let i;(function mQ(n){return"id"in n&&"defaults"in n})(e)&&(i=this.register(e));const r=this.items,s=t.id,o=this.scope+"."+s;if(!s)throw new Error("class does not have id: "+t);return s in r||(r[s]=t,function pQ(n,t,e){const i=uc(Object.create(null),[e?Ot.get(e):{},Ot.get(t),n.defaults]);Ot.set(t,i),n.defaultRoutes&&function gQ(n,t){Object.keys(t).forEach(e=>{const i=e.split("."),r=i.pop(),s=[n].concat(i).join("."),o=t[e].split("."),a=o.pop(),l=o.join(".");Ot.route(s,r,l,a)})}(t,n.defaultRoutes),n.descriptors&&Ot.describe(t,n.descriptors)}(t,o,i),this.override&&Ot.override(t.id,t.overrides)),o}get(t){return this.items[t]}unregister(t){const e=this.items,i=t.id,r=this.scope;i in e&&delete e[i],r&&i in Ot[r]&&(delete Ot[r][i],this.override&&delete Ks[i])}}class _Q{constructor(){this.controllers=new Rh(us,"datasets",!0),this.elements=new Rh(kr,"elements"),this.plugins=new Rh(Object,"plugins"),this.scales=new Rh(to,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(r=>{const s=i||this._getRegistryForType(r);i||s.isForType(r)||s===this.plugins&&r.id?this._exec(t,s,r):Ze(r,o=>{const a=i||this._getRegistryForType(o);this._exec(t,a,o)})})}_exec(t,e,i){const r=ly(t);ct(i["before"+r],[],i),e[t](i),ct(i["after"+r],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){const i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){const r=e.get(t);if(void 0===r)throw new Error('"'+t+'" is not a registered '+i+".");return r}}var Zi=new _Q;class yQ{constructor(){this._init=[]}notify(t,e,i,r){"beforeInit"===e&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));const s=r?this._descriptors(t).filter(r):this._descriptors(t),o=this._notify(s,t,e,i);return"afterDestroy"===e&&(this._notify(s,t,"stop"),this._notify(this._init,t,"uninstall")),o}_notify(t,e,i,r){r=r||{};for(const s of t){const o=s.plugin;if(!1===ct(o[i],[e,r,s.options],o)&&r.cancelable)return!1}return!0}invalidate(){je(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;const e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){const i=t&&t.config,r=xe(i.options&&i.options.plugins,{}),s=function vQ(n){const t={},e=[],i=Object.keys(Zi.plugins.items);for(let s=0;s<i.length;s++)e.push(Zi.getPlugin(i[s]));const r=n.plugins||[];for(let s=0;s<r.length;s++){const o=r[s];-1===e.indexOf(o)&&(e.push(o),t[o.id]=!0)}return{plugins:e,localIds:t}}(i);return!1!==r||e?function wQ(n,{plugins:t,localIds:e},i,r){const s=[],o=n.getContext();for(const a of t){const l=a.id,c=bQ(i[l],r);null!==c&&s.push({plugin:a,options:CQ(n.config,{plugin:a,local:e[l]},c,o)})}return s}(t,s,r,e):[]}_notifyStateChanges(t){const e=this._oldCache||[],i=this._cache,r=(s,o)=>s.filter(a=>!o.some(l=>a.plugin.id===l.plugin.id));this._notify(r(e,i),t,"stop"),this._notify(r(i,e),t,"start")}}function bQ(n,t){return t||!1!==n?!0===n?{}:n:null}function CQ(n,{plugin:t,local:e},i,r){const s=n.pluginScopeKeys(t),o=n.getOptionScopes(i,s);return e&&t.defaults&&o.push(t.defaults),n.createResolver(o,r,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function ky(n,t){return((t.datasets||{})[n]||{}).indexAxis||t.indexAxis||(Ot.datasets[n]||{}).indexAxis||"x"}function Fh(n,t){if("x"===n||"y"===n||"r"===n||(n=t.axis||function xQ(n){return"top"===n||"bottom"===n?"x":"left"===n||"right"===n?"y":void 0}(t.position)||n.length>1&&Fh(n[0].toLowerCase(),t)))return n;throw new Error(`Cannot determine type of '${name}' axis. Please provide 'axis' or 'position' option.`)}function QM(n){const t=n.options||(n.options={});t.plugins=xe(t.plugins,{}),t.scales=function EQ(n,t){const e=Ks[n.type]||{scales:{}},i=t.scales||{},r=ky(n.type,t),s=Object.create(null);return Object.keys(i).forEach(o=>{const a=i[o];if(!Re(a))return console.error(`Invalid scale configuration for scale: ${o}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${o}`);const l=Fh(o,a),c=function DQ(n,t){return n===t?"_index_":"_value_"}(l,r),u=e.scales||{};s[o]=dc(Object.create(null),[{axis:l},a,u[l],u[c]])}),n.data.datasets.forEach(o=>{const a=o.type||n.type,l=o.indexAxis||ky(a,t),u=(Ks[a]||{}).scales||{};Object.keys(u).forEach(d=>{const h=function SQ(n,t){let e=n;return"_index_"===n?e=t:"_value_"===n&&(e="x"===t?"y":"x"),e}(d,l),f=o[h+"AxisID"]||h;s[f]=s[f]||Object.create(null),dc(s[f],[{axis:h},i[f],u[d]])})}),Object.keys(s).forEach(o=>{const a=s[o];dc(a,[Ot.scales[a.type],Ot.scale])}),s}(n,t)}function ZM(n){return(n=n||{}).datasets=n.datasets||[],n.labels=n.labels||[],n}const XM=new Map,JM=new Set;function Lh(n,t){let e=XM.get(n);return e||(e=t(),XM.set(n,e),JM.add(e)),e}const Tc=(n,t,e)=>{const i=os(t,e);void 0!==i&&n.add(i)};class IQ{constructor(t){this._config=function TQ(n){return(n=n||{}).data=ZM(n.data),QM(n),n}(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=ZM(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){const t=this._config;this.clearCache(),QM(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return Lh(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return Lh(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return Lh(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){const e=t.id;return Lh(`${this.type}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){const i=this._scopeCache;let r=i.get(t);return(!r||e)&&(r=new Map,i.set(t,r)),r}getOptionScopes(t,e,i){const{options:r,type:s}=this,o=this._cachedScopes(t,i),a=o.get(e);if(a)return a;const l=new Set;e.forEach(u=>{t&&(l.add(t),u.forEach(d=>Tc(l,t,d))),u.forEach(d=>Tc(l,r,d)),u.forEach(d=>Tc(l,Ks[s]||{},d)),u.forEach(d=>Tc(l,Ot,d)),u.forEach(d=>Tc(l,py,d))});const c=Array.from(l);return 0===c.length&&c.push(Object.create(null)),JM.has(e)&&o.set(e,c),c}chartOptionScopes(){const{options:t,type:e}=this;return[t,Ks[e]||{},Ot.datasets[e]||{},{type:e},Ot,py]}resolveNamedOptions(t,e,i,r=[""]){const s={$shared:!0},{resolver:o,subPrefixes:a}=ek(this._resolverCache,t,r);let l=o;(function kQ(n,t){const{isScriptable:e,isIndexable:i}=iM(n);for(const r of t){const s=e(r),o=i(r),a=(o||s)&&n[r];if(s&&(as(a)||MQ(a))||o&&dt(a))return!0}return!1})(o,e)&&(s.$shared=!1,l=va(o,i=as(i)?i():i,this.createResolver(t,i,a)));for(const c of e)s[c]=l[c];return s}createResolver(t,e,i=[""],r){const{resolver:s}=ek(this._resolverCache,t,i);return Re(e)?va(s,e,void 0,r):s}}function ek(n,t,e){let i=n.get(t);i||(i=new Map,n.set(t,i));const r=e.join();let s=i.get(r);return s||(s={resolver:yy(t,e),subPrefixes:e.filter(a=>!a.toLowerCase().includes("hover"))},i.set(r,s)),s}const MQ=n=>Re(n)&&Object.getOwnPropertyNames(n).reduce((t,e)=>t||as(n[e]),!1),OQ=["top","bottom","left","right","chartArea"];function tk(n,t){return"top"===n||"bottom"===n||-1===OQ.indexOf(n)&&"x"===t}function nk(n,t){return function(e,i){return e[n]===i[n]?e[t]-i[t]:e[n]-i[n]}}function ik(n){const t=n.chart,e=t.options.animation;t.notifyPlugins("afterRender"),ct(e&&e.onComplete,[n],t)}function PQ(n){const t=n.chart,e=t.options.animation;ct(e&&e.onProgress,[n],t)}function rk(n){return dM()&&"string"==typeof n?n=document.getElementById(n):n&&n.length&&(n=n[0]),n&&n.canvas&&(n=n.canvas),n}const Nh={},sk=n=>{const t=rk(n);return Object.values(Nh).filter(e=>e.canvas===t).pop()};function RQ(n,t,e){const i=Object.keys(n);for(const r of i){const s=+r;if(s>=t){const o=n[r];delete n[r],(e>0||s>t)&&(n[s+e]=o)}}}class Ay{static defaults=Ot;static instances=Nh;static overrides=Ks;static registry=Zi;static version="4.2.0";static getChart=sk;static register(...t){Zi.add(...t),ok()}static unregister(...t){Zi.remove(...t),ok()}constructor(t,e){const i=this.config=new IQ(e),r=rk(t),s=sk(r);if(s)throw new Error("Canvas is already in use. Chart with ID '"+s.id+"' must be destroyed before the canvas with ID '"+s.canvas.id+"' can be reused.");const o=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||function eQ(n){return!dM()||typeof OffscreenCanvas<"u"&&n instanceof OffscreenCanvas?zY:JY}(r)),this.platform.updateConfig(i);const a=this.platform.acquireContext(r,o.aspectRatio),l=a&&a.canvas,c=l&&l.height,u=l&&l.width;this.id=PK(),this.ctx=a,this.canvas=l,this.width=u,this.height=c,this._options=o,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new yQ,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=function YK(n,t){let e;return function(...i){return t?(clearTimeout(e),e=setTimeout(n,t,i)):n.apply(this,i),t}}(d=>this.update(d),o.resizeDelay||0),this._dataChanges=[],Nh[this.id]=this,a&&l?(Mr.listen(this,"complete",ik),Mr.listen(this,"progress",PQ),this._initialize(),this.attached&&this.update()):console.error("Failed to create chart: can't acquire context from the given item")}get aspectRatio(){const{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:r,_aspectRatio:s}=this;return je(t)?e&&s?s:r?i/r:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return Zi}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():hM(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return eM(this.canvas,this.ctx),this}stop(){return Mr.stop(this),this}resize(t,e){Mr.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){const i=this.options,o=this.platform.getMaximumSize(this.canvas,t,e,i.maintainAspectRatio&&this.aspectRatio),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),l=this.width?"resize":"attach";this.width=o.width,this.height=o.height,this._aspectRatio=this.aspectRatio,hM(this,a,!0)&&(this.notifyPlugins("resize",{size:o}),ct(i.onResize,[this,o],this),this.attached&&this._doResize(l)&&this.render())}ensureScalesHaveIDs(){Ze(this.options.scales||{},(i,r)=>{i.id=r})}buildOrUpdateScales(){const t=this.options,e=t.scales,i=this.scales,r=Object.keys(i).reduce((o,a)=>(o[a]=!1,o),{});let s=[];e&&(s=s.concat(Object.keys(e).map(o=>{const a=e[o],l=Fh(o,a),c="r"===l,u="x"===l;return{options:a,dposition:c?"chartArea":u?"bottom":"left",dtype:c?"radialLinear":u?"category":"linear"}}))),Ze(s,o=>{const a=o.options,l=a.id,c=Fh(l,a),u=xe(a.type,o.dtype);(void 0===a.position||tk(a.position,c)!==tk(o.dposition))&&(a.position=o.dposition),r[l]=!0;let d=null;l in i&&i[l].type===u?d=i[l]:(d=new(Zi.getScale(u))({id:l,type:u,ctx:this.ctx,chart:this}),i[d.id]=d),d.init(a,t)}),Ze(r,(o,a)=>{o||delete i[a]}),Ze(i,o=>{Sn.configure(this,o,o.options),Sn.addBox(this,o)})}_updateMetasets(){const t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((r,s)=>r.index-s.index),i>e){for(let r=e;r<i;++r)this._destroyDatasetMeta(r);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(nk("order","index"))}_removeUnreferencedMetasets(){const{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((i,r)=>{0===e.filter(s=>s===i._dataset).length&&this._destroyDatasetMeta(r)})}buildOrUpdateControllers(){const t=[],e=this.data.datasets;let i,r;for(this._removeUnreferencedMetasets(),i=0,r=e.length;i<r;i++){const s=e[i];let o=this.getDatasetMeta(i);const a=s.type||this.config.type;if(o.type&&o.type!==a&&(this._destroyDatasetMeta(i),o=this.getDatasetMeta(i)),o.type=a,o.indexAxis=s.indexAxis||ky(a,this.options),o.order=s.order||0,o.index=i,o.label=""+s.label,o.visible=this.isDatasetVisible(i),o.controller)o.controller.updateIndex(i),o.controller.linkScales();else{const l=Zi.getController(a),{datasetElementType:c,dataElementType:u}=Ot.datasets[a];Object.assign(l,{dataElementType:Zi.getElement(u),datasetElementType:c&&Zi.getElement(c)}),o.controller=new l(this,i),t.push(o.controller)}}return this._updateMetasets(),t}_resetElements(){Ze(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){const e=this.config;e.update();const i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),r=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),!1===this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0}))return;const s=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let o=0;for(let c=0,u=this.data.datasets.length;c<u;c++){const{controller:d}=this.getDatasetMeta(c),h=!r&&-1===s.indexOf(d);d.buildOrUpdateElements(h),o=Math.max(+d.getMaxOverflow(),o)}o=this._minPadding=i.layout.autoPadding?o:0,this._updateLayout(o),r||Ze(s,c=>{c.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(nk("z","_idx"));const{_active:a,_lastEvent:l}=this;l?this._eventHandler(l,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){Ze(this.scales,t=>{Sn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){const t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!FI(e,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){const{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(const{method:i,start:r,count:s}of e)RQ(t,r,"_removeElements"===i?-s:s)}_getUniformDataChanges(){const t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];const e=this.data.datasets.length,i=s=>new Set(t.filter(o=>o[0]===s).map((o,a)=>a+","+o.splice(1).join(","))),r=i(0);for(let s=1;s<e;s++)if(!FI(r,i(s)))return;return Array.from(r).map(s=>s.split(",")).map(s=>({method:s[1],start:+s[2],count:+s[3]}))}_updateLayout(t){if(!1===this.notifyPlugins("beforeLayout",{cancelable:!0}))return;Sn.update(this,this.width,this.height,t);const e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],Ze(this.boxes,r=>{i&&"chartArea"===r.position||(r.configure&&r.configure(),this._layers.push(...r._layers()))},this),this._layers.forEach((r,s)=>{r._idx=s}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(!1!==this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})){for(let e=0,i=this.data.datasets.length;e<i;++e)this.getDatasetMeta(e).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,as(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){const i=this.getDatasetMeta(t),r={meta:i,index:t,mode:e,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetUpdate",r)&&(i.controller._update(e),r.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",r))}render(){!1!==this.notifyPlugins("beforeRender",{cancelable:!0})&&(Mr.has(this)?this.attached&&!Mr.running(this)&&Mr.start(this):(this.draw(),ik({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){const{width:i,height:r}=this._resizeBeforeDraw;this._resize(i,r),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||!1===this.notifyPlugins("beforeDraw",{cancelable:!0}))return;const e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){const e=this._sortedMetasets,i=[];let r,s;for(r=0,s=e.length;r<s;++r){const o=e[r];(!t||o.visible)&&i.push(o)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(!1===this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0}))return;const t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){const e=this.ctx,i=t._clip,r=!i.disabled,s=function LQ(n){const{xScale:t,yScale:e}=n;if(t&&e)return{left:t.left,right:t.right,top:e.top,bottom:e.bottom}}(t)||this.chartArea,o={meta:t,index:t.index,cancelable:!0};!1!==this.notifyPlugins("beforeDatasetDraw",o)&&(r&&Dh(e,{left:!1===i.left?0:s.left-i.left,right:!1===i.right?this.width:s.right+i.right,top:!1===i.top?0:s.top-i.top,bottom:!1===i.bottom?this.height:s.bottom+i.bottom}),t.controller.draw(),r&&xh(e),o.cancelable=!1,this.notifyPlugins("afterDatasetDraw",o))}isPointInArea(t){return _c(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,r){const s=PY.modes[e];return"function"==typeof s?s(this,t,i,r):[]}getDatasetMeta(t){const e=this.data.datasets[t],i=this._metasets;let r=i.filter(s=>s&&s._dataset===e).pop();return r||(r={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(r)),r}getContext(){return this.$context||(this.$context=cs(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){const e=this.data.datasets[t];if(!e)return!1;const i=this.getDatasetMeta(t);return"boolean"==typeof i.hidden?!i.hidden:!e.hidden}setDatasetVisibility(t,e){this.getDatasetMeta(t).hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){const r=i?"show":"hide",s=this.getDatasetMeta(t),o=s.controller._resolveAnimations(void 0,r);mi(e)?(s.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),o.update(s,{visible:i}),this.update(a=>a.datasetIndex===t?r:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){const e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),Mr.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");const{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),eM(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Nh[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){const t=this._listeners,e=this.platform,i=(s,o)=>{e.addEventListener(this,s,o),t[s]=o},r=(s,o,a)=>{s.offsetX=o,s.offsetY=a,this._eventHandler(s)};Ze(this.options.events,s=>i(s,r))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});const t=this._responsiveListeners,e=this.platform,i=(l,c)=>{e.addEventListener(this,l,c),t[l]=c},r=(l,c)=>{t[l]&&(e.removeEventListener(this,l,c),delete t[l])},s=(l,c)=>{this.canvas&&this.resize(l,c)};let o;const a=()=>{r("attach",a),this.attached=!0,this.resize(),i("resize",s),i("detach",o)};o=()=>{this.attached=!1,r("resize",s),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():o()}unbindEvents(){Ze(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},Ze(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){const r=i?"set":"remove";let s,o,a,l;for("dataset"===e&&(s=this.getDatasetMeta(t[0].datasetIndex),s.controller["_"+r+"DatasetHoverStyle"]()),a=0,l=t.length;a<l;++a){o=t[a];const c=o&&this.getDatasetMeta(o.datasetIndex).controller;c&&c[r+"HoverStyle"](o.element,o.datasetIndex,o.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){const e=this._active||[],i=t.map(({datasetIndex:s,index:o})=>{const a=this.getDatasetMeta(s);if(!a)throw new Error("No dataset found at index "+s);return{datasetIndex:s,element:a.data[o],index:o}});!yh(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return 1===this._plugins._cache.filter(e=>e.plugin.id===t).length}_updateHoverStyles(t,e,i){const r=this.options.hover,s=(l,c)=>l.filter(u=>!c.some(d=>u.datasetIndex===d.datasetIndex&&u.index===d.index)),o=s(e,t),a=i?t:s(t,e);o.length&&this.updateHoverStyle(o,r.mode,!1),a.length&&r.mode&&this.updateHoverStyle(a,r.mode,!0)}_eventHandler(t,e){const i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},r=o=>(o.options.events||this.options.events).includes(t.native.type);if(!1===this.notifyPlugins("beforeEvent",i,r))return;const s=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,r),(s||i.changed)&&this.render(),this}_handleEvent(t,e,i){const{_active:r=[],options:s}=this,a=this._getActiveElements(t,r,i,e),l=function BK(n){return"mouseup"===n.type||"click"===n.type||"contextmenu"===n.type}(t),c=function FQ(n,t,e,i){return e&&"mouseout"!==n.type?i?t:n:null}(t,this._lastEvent,i,l);i&&(this._lastEvent=null,ct(s.onHover,[t,a,this],this),l&&ct(s.onClick,[t,a,this],this));const u=!yh(a,r);return(u||e)&&(this._active=a,this._updateHoverStyles(a,r,e)),this._lastEvent=c,u}_getActiveElements(t,e,i,r){if("mouseout"===t.type)return[];if(!i)return e;const s=this.options.hover;return this.getElementsAtEventForMode(t,s.mode,s,r)}}function ok(){return Ze(Ay.instances,n=>n._plugins.invalidate())}function Ca(n,t,e,i){return{x:e+n*Math.cos(t),y:i+n*Math.sin(t)}}function Vh(n,t,e,i,r,s){const{x:o,y:a,startAngle:l,pixelMargin:c,innerRadius:u}=t,d=Math.max(t.outerRadius+i+e-c,0),h=u>0?u+i+e+c:0;let f=0;const p=r-l;if(i){const $=((u>0?u-i:0)+(d>0?d-i:0))/2;f=(p-(0!==$?p*$/($+i):p))/2}const y=(p-Math.max(.001,p*d-e/yt)/d)/2,C=l+y+f,x=r-y-f,{outerStart:D,outerEnd:E,innerStart:k,innerEnd:P}=function BQ(n,t,e,i){const r=function VQ(n){return _y(n,["outerStart","outerEnd","innerStart","innerEnd"])}(n.options.borderRadius),s=(e-t)/2,o=Math.min(s,i*t/2),a=l=>{const c=(e-Math.min(s,l))*i/2;return tn(l,0,Math.min(s,c))};return{outerStart:a(r.outerStart),outerEnd:a(r.outerEnd),innerStart:tn(r.innerStart,0,o),innerEnd:tn(r.innerEnd,0,o)}}(t,h,d,x-C),V=d-D,H=d-E,j=C+D/V,J=x-E/H,me=h+k,Ie=h+P,Xe=C+k/me,Nt=x-P/Ie;if(n.beginPath(),s){const Ne=(j+J)/2;if(n.arc(o,a,d,j,Ne),n.arc(o,a,d,Ne,J),E>0){const de=Ca(H,J,o,a);n.arc(de.x,de.y,E,J,x+Tt)}const z=Ca(Ie,x,o,a);if(n.lineTo(z.x,z.y),P>0){const de=Ca(Ie,Nt,o,a);n.arc(de.x,de.y,P,x+Tt,Nt+Math.PI)}const $=(x-P/h+(C+k/h))/2;if(n.arc(o,a,h,x-P/h,$,!0),n.arc(o,a,h,$,C+k/h,!0),k>0){const de=Ca(me,Xe,o,a);n.arc(de.x,de.y,k,Xe+Math.PI,C-Tt)}const ee=Ca(V,C,o,a);if(n.lineTo(ee.x,ee.y),D>0){const de=Ca(V,j,o,a);n.arc(de.x,de.y,D,C-Tt,j)}}else{n.moveTo(o,a);const Ne=Math.cos(j)*d+o,z=Math.sin(j)*d+a;n.lineTo(Ne,z);const $=Math.cos(J)*d+o,ee=Math.sin(J)*d+a;n.lineTo($,ee)}n.closePath()}function ak(n,t,e=t){n.lineCap=xe(e.borderCapStyle,t.borderCapStyle),n.setLineDash(xe(e.borderDash,t.borderDash)),n.lineDashOffset=xe(e.borderDashOffset,t.borderDashOffset),n.lineJoin=xe(e.borderJoinStyle,t.borderJoinStyle),n.lineWidth=xe(e.borderWidth,t.borderWidth),n.strokeStyle=xe(e.borderColor,t.borderColor)}function $Q(n,t,e){n.lineTo(e.x,e.y)}function lk(n,t,e={}){const i=n.length,{start:r=0,end:s=i-1}=e,{start:o,end:a}=t,l=Math.max(r,o),c=Math.min(s,a);return{count:i,start:l,loop:t.loop,ilen:c<l&&!(r<o&&s<o||r>a&&s>a)?i+c-l:c-l}}function WQ(n,t,e,i){const{points:r,options:s}=t,{count:o,start:a,loop:l,ilen:c}=lk(r,e,i),u=function UQ(n){return n.stepped?aq:n.tension||"monotone"===n.cubicInterpolationMode?lq:$Q}(s);let f,p,g,{move:d=!0,reverse:h}=i||{};for(f=0;f<=c;++f)p=r[(a+(h?c-f:f))%o],!p.skip&&(d?(n.moveTo(p.x,p.y),d=!1):u(n,g,p,h,s.stepped),g=p);return l&&(p=r[(a+(h?c:0))%o],u(n,g,p,h,s.stepped)),!!l}function GQ(n,t,e,i){const r=t.points,{count:s,start:o,ilen:a}=lk(r,e,i),{move:l=!0,reverse:c}=i||{};let h,f,p,g,y,C,u=0,d=0;const x=E=>(o+(c?a-E:E))%s,D=()=>{g!==y&&(n.lineTo(u,y),n.lineTo(u,g),n.lineTo(u,C))};for(l&&(f=r[x(0)],n.moveTo(f.x,f.y)),h=0;h<=a;++h){if(f=r[x(h)],f.skip)continue;const E=f.x,k=f.y,P=0|E;P===p?(k<g?g=k:k>y&&(y=k),u=(d*u+E)/++d):(D(),n.lineTo(E,k),p=P,d=0,g=y=k),C=k}D()}function Oy(n){const t=n.options;return n._decimated||n._loop||t.tension||"monotone"===t.cubicInterpolationMode||t.stepped||t.borderDash&&t.borderDash.length?WQ:GQ}const QQ="function"==typeof Path2D;class Bh extends kr{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>"borderDash"!==t&&"fill"!==t};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){const i=this.options;!i.tension&&"monotone"!==i.cubicInterpolationMode||i.stepped||this._pointsUpdated||(Oq(this._points,i,t,i.spanGaps?this._loop:this._fullLoop,e),this._pointsUpdated=!0)}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=function Kq(n,t){const e=n.points,i=n.options.spanGaps,r=e.length;if(!r)return[];const s=!!n._loop,{start:o,end:a}=function Wq(n,t,e,i){let r=0,s=t-1;if(e&&!i)for(;r<t&&!n[r].skip;)r++;for(;r<t&&n[r].skip;)r++;for(r%=t,e&&(s+=r);s>r&&n[s%t].skip;)s--;return s%=t,{start:r,end:s}}(e,r,s,i);return function bM(n,t,e,i){return i&&i.setContext&&e?function qq(n,t,e,i){const r=n._chart.getContext(),s=wM(n.options),{_datasetIndex:o,options:{spanGaps:a}}=n,l=e.length,c=[];let u=s,d=t[0].start,h=d;function f(p,g,y,C){const x=a?-1:1;if(p!==g){for(p+=l;e[p%l].skip;)p-=x;for(;e[g%l].skip;)g+=x;p%l!=g%l&&(c.push({start:p%l,end:g%l,loop:y,style:C}),u=C,d=g%l)}}for(const p of t){d=a?d:p.start;let y,g=e[d%l];for(h=d+1;h<=p.end;h++){const C=e[h%l];y=wM(i.setContext(cs(r,{type:"segment",p0:g,p1:C,p0DataIndex:(h-1)%l,p1DataIndex:h%l,datasetIndex:o}))),Yq(y,u)&&f(d,h-1,p.loop,u),g=C,u=y}d<h-1&&f(d,h-1,p.loop,u)}return c}(n,t,e,i):t}(n,!0===i?[{start:o,end:a,loop:s}]:function Gq(n,t,e,i){const r=n.length,s=[];let l,o=t,a=n[t];for(l=t+1;l<=e;++l){const c=n[l%r];c.skip||c.stop?a.skip||(s.push({start:t%r,end:(l-1)%r,loop:i=!1}),t=o=c.stop?l:null):(o=l,a.skip&&(t=l)),a=c}return null!==o&&s.push({start:t%r,end:o%r,loop:i}),s}(e,o,a<o?a+r:a,!!n._fullLoop&&0===o&&a===r-1),e,t)}(this,this.options.segment))}first(){const t=this.segments;return t.length&&this.points[t[0].start]}last(){const t=this.segments,i=t.length;return i&&this.points[t[i-1].end]}interpolate(t,e){const i=this.options,r=t[e],s=this.points,o=vM(this,{property:e,start:r,end:r});if(!o.length)return;const a=[],l=function KQ(n){return n.stepped?Hq:n.tension||"monotone"===n.cubicInterpolationMode?zq:Js}(i);let c,u;for(c=0,u=o.length;c<u;++c){const{start:d,end:h}=o[c],f=s[d],p=s[h];if(f===p){a.push(f);continue}const y=l(f,p,Math.abs((r-f[e])/(p[e]-f[e])),i.stepped);y[e]=t[e],a.push(y)}return 1===a.length?a[0]:a}pathSegment(t,e,i){return Oy(this)(t,this,e,i)}path(t,e,i){const r=this.segments,s=Oy(this);let o=this._loop;e=e||0,i=i||this.points.length-e;for(const a of r)o&=s(t,this,a,{start:e,end:e+i-1});return!!o}draw(t,e,i,r){(this.points||[]).length&&(this.options||{}).borderWidth&&(t.save(),function ZQ(n,t,e,i){QQ&&!t.options.segment?function qQ(n,t,e,i){let r=t._path;r||(r=t._path=new Path2D,t.path(r,e,i)&&r.closePath()),ak(n,t.options),n.stroke(r)}(n,t,e,i):function YQ(n,t,e,i){const{segments:r,options:s}=t,o=Oy(t);for(const a of r)ak(n,s,a.style),n.beginPath(),o(n,t,a,{start:e,end:e+i-1})&&n.closePath(),n.stroke()}(n,t,e,i)}(t,this,i,r),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}}function ck(n,t,e,i){const r=n.options,{[e]:s}=n.getProps([e],i);return Math.abs(t-s)<r.radius+r.hitRadius}function uk(n,t){const{x:e,y:i,base:r,width:s,height:o}=n.getProps(["x","y","base","width","height"],t);let a,l,c,u,d;return n.horizontal?(d=o/2,a=Math.min(e,r),l=Math.max(e,r),c=i-d,u=i+d):(d=s/2,a=e-d,l=e+d,c=Math.min(i,r),u=Math.max(i,r)),{left:a,top:c,right:l,bottom:u}}function ds(n,t,e,i){return n?0:tn(t,e,i)}function Py(n,t,e,i){const r=null===t,s=null===e,a=n&&!(r&&s)&&uk(n,i);return a&&(r||Tr(t,a.left,a.right))&&(s||Tr(e,a.top,a.bottom))}function iZ(n,t){n.rect(t.x,t.y,t.w,t.h)}function Ry(n,t,e={}){const i=n.x!==e.x?-t:0,r=n.y!==e.y?-t:0;return{x:n.x+i,y:n.y+r,w:n.w+((n.x+n.w!==e.x+e.w?t:0)-i),h:n.h+((n.y+n.h!==e.y+e.h?t:0)-r),radius:n.radius}}var sZ=Object.freeze({__proto__:null,ArcElement:class jQ extends kr{static id="arc";static defaults={borderAlign:"center",borderColor:"#fff",borderJoinStyle:void 0,borderRadius:0,borderWidth:2,offset:0,spacing:0,angle:void 0,circular:!0};static defaultRoutes={backgroundColor:"backgroundColor"};constructor(t){super(),this.options=void 0,this.circumference=void 0,this.startAngle=void 0,this.endAngle=void 0,this.innerRadius=void 0,this.outerRadius=void 0,this.pixelMargin=0,this.fullCircles=0,t&&Object.assign(this,t)}inRange(t,e,i){const r=this.getProps(["x","y"],i),{angle:s,distance:o}=HI(r,{x:t,y:e}),{startAngle:a,endAngle:l,innerRadius:c,outerRadius:u,circumference:d}=this.getProps(["startAngle","endAngle","innerRadius","outerRadius","circumference"],i),h=this.options.spacing/2,p=xe(d,l-a)>=ht||fc(s,a,l),g=Tr(o,c+h,u+h);return p&&g}getCenterPoint(t){const{x:e,y:i,startAngle:r,endAngle:s,innerRadius:o,outerRadius:a}=this.getProps(["x","y","startAngle","endAngle","innerRadius","outerRadius","circumference"],t),{offset:l,spacing:c}=this.options,u=(r+s)/2,d=(o+a+c+l)/2;return{x:e+Math.cos(u)*d,y:i+Math.sin(u)*d}}tooltipPosition(t){return this.getCenterPoint(t)}draw(t){const{options:e,circumference:i}=this,r=(e.offset||0)/4,s=(e.spacing||0)/2,o=e.circular;if(this.pixelMargin="inner"===e.borderAlign?.33:0,this.fullCircles=i>ht?Math.floor(i/ht):0,0===i||this.innerRadius<0||this.outerRadius<0)return;t.save();const a=(this.startAngle+this.endAngle)/2;t.translate(Math.cos(a)*r,Math.sin(a)*r);const c=r*(1-Math.sin(Math.min(yt,i||0)));t.fillStyle=e.backgroundColor,t.strokeStyle=e.borderColor,function HQ(n,t,e,i,r){const{fullCircles:s,startAngle:o,circumference:a}=t;let l=t.endAngle;if(s){Vh(n,t,e,i,l,r);for(let c=0;c<s;++c)n.fill();isNaN(a)||(l=o+(a%ht||ht))}Vh(n,t,e,i,l,r),n.fill()}(t,this,c,s,o),function zQ(n,t,e,i,r){const{fullCircles:s,startAngle:o,circumference:a,options:l}=t,{borderWidth:c,borderJoinStyle:u}=l,d="inner"===l.borderAlign;if(!c)return;d?(n.lineWidth=2*c,n.lineJoin=u||"round"):(n.lineWidth=c,n.lineJoin=u||"bevel");let h=t.endAngle;if(s){Vh(n,t,e,i,h,r);for(let f=0;f<s;++f)n.stroke();isNaN(a)||(h=o+(a%ht||ht))}d&&function NQ(n,t,e){const{startAngle:i,pixelMargin:r,x:s,y:o,outerRadius:a,innerRadius:l}=t;let c=r/a;n.beginPath(),n.arc(s,o,a,i-c,e+c),l>r?(c=r/l,n.arc(s,o,l,e+c,i-c,!0)):n.arc(s,o,r,e+Tt,i-Tt),n.closePath(),n.clip()}(n,t,h),s||(Vh(n,t,e,i,h,r),n.stroke())}(t,this,c,s,o),t.restore()}},LineElement:Bh,PointElement:class XQ extends kr{static id="point";static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){const r=this.options,{x:s,y:o}=this.getProps(["x","y"],i);return Math.pow(t-s,2)+Math.pow(e-o,2)<Math.pow(r.hitRadius+r.radius,2)}inXRange(t,e){return ck(this,t,"x",e)}inYRange(t,e){return ck(this,t,"y",e)}getCenterPoint(t){const{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){let e=(t=t||this.options||{}).radius||0;return e=Math.max(e,e&&t.hoverRadius||0),2*(e+(e&&t.borderWidth||0))}draw(t,e){const i=this.options;this.skip||i.radius<.1||!_c(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,my(t,i,this.x,this.y))}getRange(){const t=this.options||{};return t.radius+t.hitRadius}},BarElement:class rZ extends kr{static id="bar";static defaults={borderSkipped:"start",borderWidth:0,borderRadius:0,inflateAmount:"auto",pointStyle:void 0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.horizontal=void 0,this.base=void 0,this.width=void 0,this.height=void 0,this.inflateAmount=void 0,t&&Object.assign(this,t)}draw(t){const{inflateAmount:e,options:{borderColor:i,backgroundColor:r}}=this,{inner:s,outer:o}=function tZ(n){const t=uk(n),e=t.right-t.left,i=t.bottom-t.top,r=function JQ(n,t,e){const r=n.borderSkipped,s=nM(n.options.borderWidth);return{t:ds(r.top,s.top,0,e),r:ds(r.right,s.right,0,t),b:ds(r.bottom,s.bottom,0,e),l:ds(r.left,s.left,0,t)}}(n,e/2,i/2),s=function eZ(n,t,e){const{enableBorderRadius:i}=n.getProps(["enableBorderRadius"]),r=n.options.borderRadius,s=Qs(r),o=Math.min(t,e),a=n.borderSkipped,l=i||Re(r);return{topLeft:ds(!l||a.top||a.left,s.topLeft,0,o),topRight:ds(!l||a.top||a.right,s.topRight,0,o),bottomLeft:ds(!l||a.bottom||a.left,s.bottomLeft,0,o),bottomRight:ds(!l||a.bottom||a.right,s.bottomRight,0,o)}}(n,e/2,i/2);return{outer:{x:t.left,y:t.top,w:e,h:i,radius:s},inner:{x:t.left+r.l,y:t.top+r.t,w:e-r.l-r.r,h:i-r.t-r.b,radius:{topLeft:Math.max(0,s.topLeft-Math.max(r.t,r.l)),topRight:Math.max(0,s.topRight-Math.max(r.t,r.r)),bottomLeft:Math.max(0,s.bottomLeft-Math.max(r.b,r.l)),bottomRight:Math.max(0,s.bottomRight-Math.max(r.b,r.r))}}}}(this),a=function nZ(n){return n.topLeft||n.topRight||n.bottomLeft||n.bottomRight}(o.radius)?yc:iZ;t.save(),(o.w!==s.w||o.h!==s.h)&&(t.beginPath(),a(t,Ry(o,e,s)),t.clip(),a(t,Ry(s,-e,o)),t.fillStyle=i,t.fill("evenodd")),t.beginPath(),a(t,Ry(s,e)),t.fillStyle=r,t.fill(),t.restore()}inRange(t,e,i){return Py(this,t,e,i)}inXRange(t,e){return Py(this,t,null,e)}inYRange(t,e){return Py(this,null,t,e)}getCenterPoint(t){const{x:e,y:i,base:r,horizontal:s}=this.getProps(["x","y","base","horizontal"],t);return{x:s?(e+r)/2:e,y:s?i:(i+r)/2}}getRange(t){return"x"===t?this.width/2:this.height/2}}});const Fy=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],dk=Fy.map(n=>n.replace("rgb(","rgba(").replace(")",", 0.5)"));function hk(n){return Fy[n%Fy.length]}function fk(n){return dk[n%dk.length]}function pk(n){let t;for(t in n)if(n[t].borderColor||n[t].backgroundColor)return!0;return!1}var dZ={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(n,t,e){if(!e.enabled)return;const{data:{datasets:i},options:r}=n.config,{elements:s}=r;if(!e.forceOverride&&(pk(i)||function uZ(n){return n&&(n.borderColor||n.backgroundColor)}(r)||s&&pk(s)))return;const o=function cZ(n){let t=0;return(e,i)=>{const r=n.getDatasetMeta(i).controller;r instanceof xy?t=function aZ(n,t){return n.backgroundColor=n.data.map(()=>hk(t++)),t}(e,t):r instanceof FM?t=function lZ(n,t){return n.backgroundColor=n.data.map(()=>fk(t++)),t}(e,t):r&&(t=function oZ(n,t){return n.borderColor=hk(t),n.backgroundColor=fk(t),++t}(e,t))}}(n);i.forEach(o)}};function gk(n){if(n._decimated){const t=n._data;delete n._decimated,delete n._data,Object.defineProperty(n,"data",{value:t})}}function mk(n){n.data.datasets.forEach(t=>{gk(t)})}var gZ={id:"decimation",defaults:{algorithm:"min-max",enabled:!1},beforeElementsUpdate:(n,t,e)=>{if(!e.enabled)return void mk(n);const i=n.width;n.data.datasets.forEach((r,s)=>{const{_data:o,indexAxis:a}=r,l=n.getDatasetMeta(s),c=o||r.data;if("y"===vc([a,n.options.indexAxis])||!l.controller.supportsDecimation)return;const u=n.scales[l.xAxisID];if("linear"!==u.type&&"time"!==u.type||n.options.parsing)return;let p,{start:d,count:h}=function pZ(n,t){const e=t.length;let r,i=0;const{iScale:s}=n,{min:o,max:a,minDefined:l,maxDefined:c}=s.getUserBounds();return l&&(i=tn(Ir(t,s.axis,o).lo,0,e-1)),r=c?tn(Ir(t,s.axis,a).hi+1,i,e)-i:e-i,{start:i,count:r}}(l,c);if(h<=(e.threshold||4*i))gk(r);else{switch(je(o)&&(r._data=c,delete r.data,Object.defineProperty(r,"data",{configurable:!0,enumerable:!0,get:function(){return this._decimated},set:function(g){this._data=g}})),e.algorithm){case"lttb":p=function hZ(n,t,e,i,r){const s=r.samples||i;if(s>=e)return n.slice(t,t+e);const o=[],a=(e-2)/(s-2);let l=0;const c=t+e-1;let d,h,f,p,g,u=t;for(o[l++]=n[u],d=0;d<s-2;d++){let x,y=0,C=0;const D=Math.floor((d+1)*a)+1+t,E=Math.min(Math.floor((d+2)*a)+1,e)+t,k=E-D;for(x=D;x<E;x++)y+=n[x].x,C+=n[x].y;y/=k,C/=k;const P=Math.floor(d*a)+1+t,V=Math.min(Math.floor((d+1)*a)+1,e)+t,{x:H,y:j}=n[u];for(f=p=-1,x=P;x<V;x++)p=.5*Math.abs((H-y)*(n[x].y-j)-(H-n[x].x)*(C-j)),p>f&&(f=p,h=n[x],g=x);o[l++]=h,u=g}return o[l++]=n[c],o}(c,d,h,i,e);break;case"min-max":p=function fZ(n,t,e,i){let o,a,l,c,u,d,h,f,p,g,r=0,s=0;const y=[],x=n[t].x,E=n[t+e-1].x-x;for(o=t;o<t+e;++o){a=n[o],l=(a.x-x)/E*i,c=a.y;const k=0|l;if(k===u)c<p?(p=c,d=o):c>g&&(g=c,h=o),r=(s*r+a.x)/++s;else{const P=o-1;if(!je(d)&&!je(h)){const V=Math.min(d,h),H=Math.max(d,h);V!==f&&V!==P&&y.push({...n[V],x:r}),H!==f&&H!==P&&y.push({...n[H],x:r})}o>0&&P!==f&&y.push(n[P]),y.push(a),u=k,s=0,p=g=c,d=h=f=o}}return y}(c,d,h,i);break;default:throw new Error(`Unsupported decimation algorithm '${e.algorithm}'`)}r._decimated=p}})},destroy(n){mk(n)}};function Ly(n,t,e,i){if(i)return;let r=t[n],s=e[n];return"angle"===n&&(r=ti(r),s=ti(s)),{property:n,start:r,end:s}}function Ny(n,t,e){for(;t>n;t--){const i=e[t];if(!isNaN(i.x)&&!isNaN(i.y))break}return t}function _k(n,t,e,i){return n&&t?i(n[e],t[e]):n?n[e]:t?t[e]:0}function yk(n,t){let e=[],i=!1;return dt(n)?(i=!0,e=n):e=function _Z(n,t){const{x:e=null,y:i=null}=n||{},r=t.points,s=[];return t.segments.forEach(({start:o,end:a})=>{a=Ny(o,a,r);const l=r[o],c=r[a];null!==i?(s.push({x:l.x,y:i}),s.push({x:c.x,y:i})):null!==e&&(s.push({x:e,y:l.y}),s.push({x:e,y:c.y}))}),s}(n,t),e.length?new Bh({points:e,options:{tension:0},_loop:i,_fullLoop:i}):null}function vk(n){return n&&!1!==n.fill}function yZ(n,t,e){let r=n[t].fill;const s=[t];let o;if(!e)return r;for(;!1!==r&&-1===s.indexOf(r);){if(!Et(r))return r;if(o=n[r],!o)return!1;if(o.visible)return r;s.push(r),r=o.fill}return!1}function vZ(n,t,e){const i=function SZ(n){const t=n.options,e=t.fill;let i=xe(e&&e.target,e);return void 0===i&&(i=!!t.backgroundColor),!1!==i&&null!==i&&(!0===i?"origin":i)}(n);if(Re(i))return!isNaN(i.value)&&i;let r=parseFloat(i);return Et(r)&&Math.floor(r)===r?function bZ(n,t,e,i){return("-"===n||"+"===n)&&(e=t+e),!(e===t||e<0||e>=i)&&e}(i[0],t,r,e):["origin","start","end","stack","shape"].indexOf(i)>=0&&i}function EZ(n,t,e){const i=[];for(let r=0;r<e.length;r++){const s=e[r],{first:o,last:a,point:l}=TZ(s,t,"x");if(!(!l||o&&a))if(o)i.unshift(l);else if(n.push(l),!a)break}n.push(...i)}function TZ(n,t,e){const i=n.interpolate(t,e);if(!i)return{};const r=i[e],s=n.segments,o=n.points;let a=!1,l=!1;for(let c=0;c<s.length;c++){const u=s[c],d=o[u.start][e],h=o[u.end][e];if(Tr(r,d,h)){a=r===d,l=r===h;break}}return{first:a,last:l,point:i}}class bk{constructor(t){this.x=t.x,this.y=t.y,this.radius=t.radius}pathSegment(t,e,i){const{x:r,y:s,radius:o}=this;return t.arc(r,s,o,(e=e||{start:0,end:ht}).end,e.start,!0),!i.bounds}interpolate(t){const{x:e,y:i,radius:r}=this,s=t.angle;return{x:e+Math.cos(s)*r,y:i+Math.sin(s)*r,angle:s}}}function Vy(n,t,e){const i=function IZ(n){const{chart:t,fill:e,line:i}=n;if(Et(e))return function MZ(n,t){const e=n.getDatasetMeta(t);return e&&n.isDatasetVisible(t)?e.dataset:null}(t,e);if("stack"===e)return function DZ(n){const{scale:t,index:e,line:i}=n,r=[],s=i.segments,o=i.points,a=function xZ(n,t){const e=[],i=n.getMatchingVisibleMetas("line");for(let r=0;r<i.length;r++){const s=i[r];if(s.index===t)break;s.hidden||e.unshift(s.dataset)}return e}(t,e);a.push(yk({x:null,y:t.bottom},i));for(let l=0;l<s.length;l++){const c=s[l];for(let u=c.start;u<=c.end;u++)EZ(r,o[u],a)}return new Bh({points:r,options:{}})}(n);if("shape"===e)return!0;const r=function kZ(n){return(n.scale||{}).getPointPositionForValue?function OZ(n){const{scale:t,fill:e}=n,i=t.options,r=t.getLabels().length,s=i.reverse?t.max:t.min,o=function CZ(n,t,e){let i;return i="start"===n?e:"end"===n?t.options.reverse?t.min:t.max:Re(n)?n.value:t.getBaseValue(),i}(e,t,s),a=[];if(i.grid.circular){const l=t.getPointPositionForValue(0,s);return new bk({x:l.x,y:l.y,radius:t.getDistanceFromCenterForValue(o)})}for(let l=0;l<r;++l)a.push(t.getPointPositionForValue(l,o));return a}(n):function AZ(n){const{scale:t={},fill:e}=n,i=function wZ(n,t){let e=null;return"start"===n?e=t.bottom:"end"===n?e=t.top:Re(n)?e=t.getPixelForValue(n.value):t.getBasePixel&&(e=t.getBasePixel()),e}(e,t);if(Et(i)){const r=t.isHorizontal();return{x:r?i:null,y:r?null:i}}return null}(n)}(n);return r instanceof bk?r:yk(r,i)}(t),{line:r,scale:s,axis:o}=t,a=r.options,l=a.fill,c=a.backgroundColor,{above:u=c,below:d=c}=l||{};i&&r.points.length&&(Dh(n,e),function PZ(n,t){const{line:e,target:i,above:r,below:s,area:o,scale:a}=t,l=e._loop?"angle":t.axis;n.save(),"x"===l&&s!==r&&(wk(n,i,o.top),Ck(n,{line:e,target:i,color:r,scale:a,property:l}),n.restore(),n.save(),wk(n,i,o.bottom)),Ck(n,{line:e,target:i,color:s,scale:a,property:l}),n.restore()}(n,{line:r,target:i,above:u,below:d,area:e,scale:s,axis:o}),xh(n))}function wk(n,t,e){const{segments:i,points:r}=t;let s=!0,o=!1;n.beginPath();for(const a of i){const{start:l,end:c}=a,u=r[l],d=r[Ny(l,c,r)];s?(n.moveTo(u.x,u.y),s=!1):(n.lineTo(u.x,e),n.lineTo(u.x,u.y)),o=!!t.pathSegment(n,a,{move:o}),o?n.closePath():n.lineTo(d.x,e)}n.lineTo(t.first().x,e),n.closePath(),n.clip()}function Ck(n,t){const{line:e,target:i,property:r,color:s,scale:o}=t,a=function mZ(n,t,e){const i=n.segments,r=n.points,s=t.points,o=[];for(const a of i){let{start:l,end:c}=a;c=Ny(l,c,r);const u=Ly(e,r[l],r[c],a.loop);if(!t.segments){o.push({source:a,target:u,start:r[l],end:r[c]});continue}const d=vM(t,u);for(const h of d){const f=Ly(e,s[h.start],s[h.end],h.loop),p=yM(a,r,f);for(const g of p)o.push({source:g,target:h,start:{[e]:_k(u,f,"start",Math.max)},end:{[e]:_k(u,f,"end",Math.min)}})}}return o}(e,i,r);for(const{source:l,target:c,start:u,end:d}of a){const{style:{backgroundColor:h=s}={}}=l,f=!0!==i;n.save(),n.fillStyle=h,RZ(n,o,f&&Ly(r,u,d)),n.beginPath();const p=!!e.pathSegment(n,l);let g;if(f){p?n.closePath():Sk(n,i,d,r);const y=!!i.pathSegment(n,c,{move:p,reverse:!0});g=p&&y,g||Sk(n,i,u,r)}n.closePath(),n.fill(g?"evenodd":"nonzero"),n.restore()}}function RZ(n,t,e){const{top:i,bottom:r}=t.chart.chartArea,{property:s,start:o,end:a}=e||{};"x"===s&&(n.beginPath(),n.rect(o,i,a-o,r-i),n.clip())}function Sk(n,t,e,i){const r=t.interpolate(e,i);r&&n.lineTo(r.x,r.y)}var FZ={id:"filler",afterDatasetsUpdate(n,t,e){const i=(n.data.datasets||[]).length,r=[];let s,o,a,l;for(o=0;o<i;++o)s=n.getDatasetMeta(o),a=s.dataset,l=null,a&&a.options&&a instanceof Bh&&(l={visible:n.isDatasetVisible(o),index:o,fill:vZ(a,o,i),chart:n,axis:s.controller.options.indexAxis,scale:s.vScale,line:a}),s.$filler=l,r.push(l);for(o=0;o<i;++o)l=r[o],l&&!1!==l.fill&&(l.fill=yZ(r,o,e.propagate))},beforeDraw(n,t,e){const i="beforeDraw"===e.drawTime,r=n.getSortedVisibleDatasetMetas(),s=n.chartArea;for(let o=r.length-1;o>=0;--o){const a=r[o].$filler;!a||(a.line.updateControlPoints(s,a.axis),i&&a.fill&&Vy(n.ctx,a,s))}},beforeDatasetsDraw(n,t,e){if("beforeDatasetsDraw"!==e.drawTime)return;const i=n.getSortedVisibleDatasetMetas();for(let r=i.length-1;r>=0;--r){const s=i[r].$filler;vk(s)&&Vy(n.ctx,s,n.chartArea)}},beforeDatasetDraw(n,t,e){const i=t.meta.$filler;!vk(i)||"beforeDatasetDraw"!==e.drawTime||Vy(n.ctx,i,n.chartArea)},defaults:{propagate:!0,drawTime:"beforeDatasetDraw"}};const Dk=(n,t)=>{let{boxHeight:e=t,boxWidth:i=t}=n;return n.usePointStyle&&(e=Math.min(e,t),i=n.pointStyleWidth||Math.min(i,t)),{boxWidth:i,boxHeight:e,itemHeight:Math.max(t,e)}};class xk extends kr{constructor(t){super(),this._added=!1,this.legendHitBoxes=[],this._hoveredItem=null,this.doughnutMode=!1,this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this.legendItems=void 0,this.columnSizes=void 0,this.lineWidths=void 0,this.maxHeight=void 0,this.maxWidth=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.height=void 0,this.width=void 0,this._margins=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e,i){this.maxWidth=t,this.maxHeight=e,this._margins=i,this.setDimensions(),this.buildLabels(),this.fit()}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=this._margins.left,this.right=this.width):(this.height=this.maxHeight,this.top=this._margins.top,this.bottom=this.height)}buildLabels(){const t=this.options.labels||{};let e=ct(t.generateLabels,[this.chart],this)||[];t.filter&&(e=e.filter(i=>t.filter(i,this.chart.data))),t.sort&&(e=e.sort((i,r)=>t.sort(i,r,this.chart.data))),this.options.reverse&&e.reverse(),this.legendItems=e}fit(){const{options:t,ctx:e}=this;if(!t.display)return void(this.width=this.height=0);const i=t.labels,r=Kt(i.font),s=r.size,o=this._computeTitleHeight(),{boxWidth:a,itemHeight:l}=Dk(i,s);let c,u;e.font=r.string,this.isHorizontal()?(c=this.maxWidth,u=this._fitRows(o,s,a,l)+10):(u=this.maxHeight,c=this._fitCols(o,r,a,l)+10),this.width=Math.min(c,t.maxWidth||this.maxWidth),this.height=Math.min(u,t.maxHeight||this.maxHeight)}_fitRows(t,e,i,r){const{ctx:s,maxWidth:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.lineWidths=[0],u=r+a;let d=t;s.textAlign="left",s.textBaseline="middle";let h=-1,f=-u;return this.legendItems.forEach((p,g)=>{const y=i+e/2+s.measureText(p.text).width;(0===g||c[c.length-1]+y+2*a>o)&&(d+=u,c[c.length-(g>0?0:1)]=0,f+=u,h++),l[g]={left:0,top:f,row:h,width:y,height:r},c[c.length-1]+=y+a}),d}_fitCols(t,e,i,r){const{ctx:s,maxHeight:o,options:{labels:{padding:a}}}=this,l=this.legendHitBoxes=[],c=this.columnSizes=[],u=o-t;let d=a,h=0,f=0,p=0,g=0;return this.legendItems.forEach((y,C)=>{const{itemWidth:x,itemHeight:D}=function NZ(n,t,e,i,r){const s=function VZ(n,t,e,i){let r=n.text;return r&&"string"!=typeof r&&(r=r.reduce((s,o)=>s.length>o.length?s:o)),t+e.size/2+i.measureText(r).width}(i,n,t,e),o=function BZ(n,t,e){let i=n;return"string"!=typeof t.text&&(i=Ek(t,e)),i}(r,i,t.lineHeight);return{itemWidth:s,itemHeight:o}}(i,e,s,y,r);C>0&&f+D+2*a>u&&(d+=h+a,c.push({width:h,height:f}),p+=h+a,g++,h=f=0),l[C]={left:p,top:f,col:g,width:x,height:D},h=Math.max(h,x),f+=D+a}),d+=h,c.push({width:h,height:f}),d}adjustHitBoxes(){if(!this.options.display)return;const t=this._computeTitleHeight(),{legendHitBoxes:e,options:{align:i,labels:{padding:r},rtl:s}}=this,o=wa(s,this.left,this.width);if(this.isHorizontal()){let a=0,l=wn(i,this.left+r,this.right-this.lineWidths[a]);for(const c of e)a!==c.row&&(a=c.row,l=wn(i,this.left+r,this.right-this.lineWidths[a])),c.top+=this.top+t+r,c.left=o.leftForLtr(o.x(l),c.width),l+=c.width+r}else{let a=0,l=wn(i,this.top+t+r,this.bottom-this.columnSizes[a].height);for(const c of e)c.col!==a&&(a=c.col,l=wn(i,this.top+t+r,this.bottom-this.columnSizes[a].height)),c.top=l,c.left+=this.left+r,c.left=o.leftForLtr(o.x(c.left),c.width),l+=c.height+r}}isHorizontal(){return"top"===this.options.position||"bottom"===this.options.position}draw(){if(this.options.display){const t=this.ctx;Dh(t,this),this._draw(),xh(t)}}_draw(){const{options:t,columnSizes:e,lineWidths:i,ctx:r}=this,{align:s,labels:o}=t,a=Ot.color,l=wa(t.rtl,this.left,this.width),c=Kt(o.font),{padding:u}=o,d=c.size,h=d/2;let f;this.drawTitle(),r.textAlign=l.textAlign("left"),r.textBaseline="middle",r.lineWidth=.5,r.font=c.string;const{boxWidth:p,boxHeight:g,itemHeight:y}=Dk(o,d),D=this.isHorizontal(),E=this._computeTitleHeight();f=D?{x:wn(s,this.left+u,this.right-i[0]),y:this.top+u+E,line:0}:{x:this.left+u,y:wn(s,this.top+E+u,this.bottom-e[0].height),line:0},pM(this.ctx,t.textDirection);const k=y+u;this.legendItems.forEach((P,V)=>{r.strokeStyle=P.fontColor,r.fillStyle=P.fontColor;const H=r.measureText(P.text).width,j=l.textAlign(P.textAlign||(P.textAlign=o.textAlign)),J=p+h+H;let me=f.x,Ie=f.y;l.setWidth(this.width),D?V>0&&me+J+u>this.right&&(Ie=f.y+=k,f.line++,me=f.x=wn(s,this.left+u,this.right-i[f.line])):V>0&&Ie+k>this.bottom&&(me=f.x=me+e[f.line].width+u,f.line++,Ie=f.y=wn(s,this.top+E+u,this.bottom-e[f.line].height)),function(P,V,H){if(isNaN(p)||p<=0||isNaN(g)||g<0)return;r.save();const j=xe(H.lineWidth,1);if(r.fillStyle=xe(H.fillStyle,a),r.lineCap=xe(H.lineCap,"butt"),r.lineDashOffset=xe(H.lineDashOffset,0),r.lineJoin=xe(H.lineJoin,"miter"),r.lineWidth=j,r.strokeStyle=xe(H.strokeStyle,a),r.setLineDash(xe(H.lineDash,[])),o.usePointStyle){const J={radius:g*Math.SQRT2/2,pointStyle:H.pointStyle,rotation:H.rotation,borderWidth:j},me=l.xPlus(P,p/2);tM(r,J,me,V+h,o.pointStyleWidth&&p)}else{const J=V+Math.max((d-g)/2,0),me=l.leftForLtr(P,p),Ie=Qs(H.borderRadius);r.beginPath(),Object.values(Ie).some(Xe=>0!==Xe)?yc(r,{x:me,y:J,w:p,h:g,radius:Ie}):r.rect(me,J,p,g),r.fill(),0!==j&&r.stroke()}r.restore()}(l.x(me),Ie,P),me=((n,t,e,i)=>n===(i?"left":"right")?e:"center"===n?(t+e)/2:t)(j,me+p+h,D?me+J:this.right,t.rtl),function(P,V,H){Ys(r,H.text,P,V+y/2,c,{strikethrough:H.hidden,textAlign:l.textAlign(H.textAlign)})}(l.x(me),Ie,P),D?f.x+=J+u:f.y+="string"!=typeof P.text?Ek(P,c.lineHeight):k}),gM(this.ctx,t.textDirection)}drawTitle(){const t=this.options,e=t.title,i=Kt(e.font),r=Cn(e.padding);if(!e.display)return;const s=wa(t.rtl,this.left,this.width),o=this.ctx,a=e.position,c=r.top+i.size/2;let u,d=this.left,h=this.width;if(this.isHorizontal())h=Math.max(...this.lineWidths),u=this.top+c,d=wn(t.align,d,this.right-h);else{const p=this.columnSizes.reduce((g,y)=>Math.max(g,y.height),0);u=c+wn(t.align,this.top,this.bottom-p-t.labels.padding-this._computeTitleHeight())}const f=wn(a,d,d+h);o.textAlign=s.textAlign(hy(a)),o.textBaseline="middle",o.strokeStyle=e.color,o.fillStyle=e.color,o.font=i.string,Ys(o,e.text,f,u,i)}_computeTitleHeight(){const t=this.options.title,e=Kt(t.font),i=Cn(t.padding);return t.display?e.lineHeight+i.height:0}_getLegendItemAt(t,e){let i,r,s;if(Tr(t,this.left,this.right)&&Tr(e,this.top,this.bottom))for(s=this.legendHitBoxes,i=0;i<s.length;++i)if(r=s[i],Tr(t,r.left,r.left+r.width)&&Tr(e,r.top,r.top+r.height))return this.legendItems[i];return null}handleEvent(t){const e=this.options;if(!function HZ(n,t){return!(("mousemove"!==n&&"mouseout"!==n||!t.onHover&&!t.onLeave)&&(!t.onClick||"click"!==n&&"mouseup"!==n))}(t.type,e))return;const i=this._getLegendItemAt(t.x,t.y);if("mousemove"===t.type||"mouseout"===t.type){const r=this._hoveredItem,s=((n,t)=>null!==n&&null!==t&&n.datasetIndex===t.datasetIndex&&n.index===t.index)(r,i);r&&!s&&ct(e.onLeave,[t,r,this],this),this._hoveredItem=i,i&&!s&&ct(e.onHover,[t,i,this],this)}else i&&ct(e.onClick,[t,i,this],this)}}function Ek(n,t){return t*(n.text?n.text.length+.5:0)}var zZ={id:"legend",_element:xk,start(n,t,e){const i=n.legend=new xk({ctx:n.ctx,options:e,chart:n});Sn.configure(n,i,e),Sn.addBox(n,i)},stop(n){Sn.removeBox(n,n.legend),delete n.legend},beforeUpdate(n,t,e){const i=n.legend;Sn.configure(n,i,e),i.options=e},afterUpdate(n){const t=n.legend;t.buildLabels(),t.adjustHitBoxes()},afterEvent(n,t){t.replay||n.legend.handleEvent(t.event)},defaults:{display:!0,position:"top",align:"center",fullSize:!0,reverse:!1,weight:1e3,onClick(n,t,e){const i=t.datasetIndex,r=e.chart;r.isDatasetVisible(i)?(r.hide(i),t.hidden=!0):(r.show(i),t.hidden=!1)},onHover:null,onLeave:null,labels:{color:n=>n.chart.options.color,boxWidth:40,padding:10,generateLabels(n){const t=n.data.datasets,{labels:{usePointStyle:e,pointStyle:i,textAlign:r,color:s,useBorderRadius:o,borderRadius:a}}=n.legend.options;return n._getSortedDatasetMetas().map(l=>{const c=l.controller.getStyle(e?0:void 0),u=Cn(c.borderWidth);return{text:t[l.index].label,fillStyle:c.backgroundColor,fontColor:s,hidden:!l.visible,lineCap:c.borderCapStyle,lineDash:c.borderDash,lineDashOffset:c.borderDashOffset,lineJoin:c.borderJoinStyle,lineWidth:(u.width+u.height)/4,strokeStyle:c.borderColor,pointStyle:i||c.pointStyle,rotation:c.rotation,textAlign:r||c.textAlign,borderRadius:o&&(a||c.borderRadius),datasetIndex:l.index}},this)}},title:{color:n=>n.chart.options.color,display:!1,position:"center",text:""}},descriptors:{_scriptable:n=>!n.startsWith("on"),labels:{_scriptable:n=>!["generateLabels","filter","sort"].includes(n)}}};class By extends kr{constructor(t){super(),this.chart=t.chart,this.options=t.options,this.ctx=t.ctx,this._padding=void 0,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this.position=void 0,this.weight=void 0,this.fullSize=void 0}update(t,e){const i=this.options;if(this.left=0,this.top=0,!i.display)return void(this.width=this.height=this.right=this.bottom=0);this.width=this.right=t,this.height=this.bottom=e;const r=dt(i.text)?i.text.length:1;this._padding=Cn(i.padding);const s=r*Kt(i.font).lineHeight+this._padding.height;this.isHorizontal()?this.height=s:this.width=s}isHorizontal(){const t=this.options.position;return"top"===t||"bottom"===t}_drawArgs(t){const{top:e,left:i,bottom:r,right:s,options:o}=this,a=o.align;let c,u,d,l=0;return this.isHorizontal()?(u=wn(a,i,s),d=e+t,c=s-i):("left"===o.position?(u=i+t,d=wn(a,r,e),l=-.5*yt):(u=s-t,d=wn(a,e,r),l=.5*yt),c=r-e),{titleX:u,titleY:d,maxWidth:c,rotation:l}}draw(){const t=this.ctx,e=this.options;if(!e.display)return;const i=Kt(e.font),s=i.lineHeight/2+this._padding.top,{titleX:o,titleY:a,maxWidth:l,rotation:c}=this._drawArgs(s);Ys(t,e.text,0,0,i,{color:e.color,maxWidth:l,rotation:c,textAlign:hy(e.align),textBaseline:"middle",translation:[o,a]})}}var $Z={id:"title",_element:By,start(n,t,e){!function jZ(n,t){const e=new By({ctx:n.ctx,options:t,chart:n});Sn.configure(n,e,t),Sn.addBox(n,e),n.titleBlock=e}(n,e)},stop(n){Sn.removeBox(n,n.titleBlock),delete n.titleBlock},beforeUpdate(n,t,e){const i=n.titleBlock;Sn.configure(n,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"bold"},fullSize:!0,padding:10,position:"top",text:"",weight:2e3},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Hh=new WeakMap;var UZ={id:"subtitle",start(n,t,e){const i=new By({ctx:n.ctx,options:e,chart:n});Sn.configure(n,i,e),Sn.addBox(n,i),Hh.set(n,i)},stop(n){Sn.removeBox(n,Hh.get(n)),Hh.delete(n)},beforeUpdate(n,t,e){const i=Hh.get(n);Sn.configure(n,i,e),i.options=e},defaults:{align:"center",display:!1,font:{weight:"normal"},fullSize:!0,padding:0,position:"top",text:"",weight:1500},defaultRoutes:{color:"color"},descriptors:{_scriptable:!0,_indexable:!1}};const Ic={average(n){if(!n.length)return!1;let t,e,i=0,r=0,s=0;for(t=0,e=n.length;t<e;++t){const o=n[t].element;if(o&&o.hasValue()){const a=o.tooltipPosition();i+=a.x,r+=a.y,++s}}return{x:i/s,y:r/s}},nearest(n,t){if(!n.length)return!1;let s,o,a,e=t.x,i=t.y,r=Number.POSITIVE_INFINITY;for(s=0,o=n.length;s<o;++s){const l=n[s].element;if(l&&l.hasValue()){const u=uy(t,l.getCenterPoint());u<r&&(r=u,a=l)}}if(a){const l=a.tooltipPosition();e=l.x,i=l.y}return{x:e,y:i}}};function Xi(n,t){return t&&(dt(t)?Array.prototype.push.apply(n,t):n.push(t)),n}function Ar(n){return("string"==typeof n||n instanceof String)&&n.indexOf("\n")>-1?n.split("\n"):n}function WZ(n,t){const{element:e,datasetIndex:i,index:r}=t,s=n.getDatasetMeta(i).controller,{label:o,value:a}=s.getLabelAndValue(r);return{chart:n,label:o,parsed:s.getParsed(r),raw:n.data.datasets[i].data[r],formattedValue:a,dataset:s.getDataset(),dataIndex:r,datasetIndex:i,element:e}}function Tk(n,t){const e=n.chart.ctx,{body:i,footer:r,title:s}=n,{boxWidth:o,boxHeight:a}=t,l=Kt(t.bodyFont),c=Kt(t.titleFont),u=Kt(t.footerFont),d=s.length,h=r.length,f=i.length,p=Cn(t.padding);let g=p.height,y=0,C=i.reduce((E,k)=>E+k.before.length+k.lines.length+k.after.length,0);C+=n.beforeBody.length+n.afterBody.length,d&&(g+=d*c.lineHeight+(d-1)*t.titleSpacing+t.titleMarginBottom),C&&(g+=f*(t.displayColors?Math.max(a,l.lineHeight):l.lineHeight)+(C-f)*l.lineHeight+(C-1)*t.bodySpacing),h&&(g+=t.footerMarginTop+h*u.lineHeight+(h-1)*t.footerSpacing);let x=0;const D=function(E){y=Math.max(y,e.measureText(E).width+x)};return e.save(),e.font=c.string,Ze(n.title,D),e.font=l.string,Ze(n.beforeBody.concat(n.afterBody),D),x=t.displayColors?o+2+t.boxPadding:0,Ze(i,E=>{Ze(E.before,D),Ze(E.lines,D),Ze(E.after,D)}),x=0,e.font=u.string,Ze(n.footer,D),e.restore(),y+=p.width,{width:y,height:g}}function qZ(n,t,e,i){const{x:r,width:s}=e,{width:o,chartArea:{left:a,right:l}}=n;let c="center";return"center"===i?c=r<=(a+l)/2?"left":"right":r<=s/2?c="left":r>=o-s/2&&(c="right"),function KZ(n,t,e,i){const{x:r,width:s}=i,o=e.caretSize+e.caretPadding;if("left"===n&&r+s+o>t.width||"right"===n&&r-s-o<0)return!0}(c,n,t,e)&&(c="center"),c}function Ik(n,t,e){const i=e.yAlign||t.yAlign||function GZ(n,t){const{y:e,height:i}=t;return e<i/2?"top":e>n.height-i/2?"bottom":"center"}(n,e);return{xAlign:e.xAlign||t.xAlign||qZ(n,t,e,i),yAlign:i}}function Mk(n,t,e,i){const{caretSize:r,caretPadding:s,cornerRadius:o}=n,{xAlign:a,yAlign:l}=e,c=r+s,{topLeft:u,topRight:d,bottomLeft:h,bottomRight:f}=Qs(o);let p=function YZ(n,t){let{x:e,width:i}=n;return"right"===t?e-=i:"center"===t&&(e-=i/2),e}(t,a);const g=function QZ(n,t,e){let{y:i,height:r}=n;return"top"===t?i+=e:i-="bottom"===t?r+e:r/2,i}(t,l,c);return"center"===l?"left"===a?p+=c:"right"===a&&(p-=c):"left"===a?p-=Math.max(u,h)+r:"right"===a&&(p+=Math.max(d,f)+r),{x:tn(p,0,i.width-t.width),y:tn(g,0,i.height-t.height)}}function zh(n,t,e){const i=Cn(e.padding);return"center"===t?n.x+n.width/2:"right"===t?n.x+n.width-i.right:n.x+i.left}function kk(n){return Xi([],Ar(n))}function Ak(n,t){const e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?n.override(e):n}const Ok={beforeTitle:Er,title(n){if(n.length>0){const t=n[0],e=t.chart.data.labels,i=e?e.length:0;if(this&&this.options&&"dataset"===this.options.mode)return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return e[t.dataIndex]}return""},afterTitle:Er,beforeBody:Er,beforeLabel:Er,label(n){if(this&&this.options&&"dataset"===this.options.mode)return n.label+": "+n.formattedValue||n.formattedValue;let t=n.dataset.label||"";t&&(t+=": ");const e=n.formattedValue;return je(e)||(t+=e),t},labelColor(n){const e=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(n){const e=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:Er,afterBody:Er,beforeFooter:Er,footer:Er,afterFooter:Er};function Bn(n,t,e,i){const r=n[t].call(e,i);return typeof r>"u"?Ok[t].call(e,i):r}class Pk extends kr{static positioners=Ic;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){const t=this._cachedAnimations;if(t)return t;const e=this.chart,i=this.options.setContext(this.getContext()),r=i.enabled&&e.options.animation&&i.animations,s=new SM(this.chart,r);return r._cacheable&&(this._cachedAnimations=Object.freeze(s)),s}getContext(){return this.$context||(this.$context=function ZZ(n,t,e){return cs(n,{tooltip:t,tooltipItems:e,type:"tooltip"})}(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){const{callbacks:i}=e,r=Bn(i,"beforeTitle",this,t),s=Bn(i,"title",this,t),o=Bn(i,"afterTitle",this,t);let a=[];return a=Xi(a,Ar(r)),a=Xi(a,Ar(s)),a=Xi(a,Ar(o)),a}getBeforeBody(t,e){return kk(Bn(e.callbacks,"beforeBody",this,t))}getBody(t,e){const{callbacks:i}=e,r=[];return Ze(t,s=>{const o={before:[],lines:[],after:[]},a=Ak(i,s);Xi(o.before,Ar(Bn(a,"beforeLabel",this,s))),Xi(o.lines,Bn(a,"label",this,s)),Xi(o.after,Ar(Bn(a,"afterLabel",this,s))),r.push(o)}),r}getAfterBody(t,e){return kk(Bn(e.callbacks,"afterBody",this,t))}getFooter(t,e){const{callbacks:i}=e,r=Bn(i,"beforeFooter",this,t),s=Bn(i,"footer",this,t),o=Bn(i,"afterFooter",this,t);let a=[];return a=Xi(a,Ar(r)),a=Xi(a,Ar(s)),a=Xi(a,Ar(o)),a}_createItems(t){const e=this._active,i=this.chart.data,r=[],s=[],o=[];let l,c,a=[];for(l=0,c=e.length;l<c;++l)a.push(WZ(this.chart,e[l]));return t.filter&&(a=a.filter((u,d,h)=>t.filter(u,d,h,i))),t.itemSort&&(a=a.sort((u,d)=>t.itemSort(u,d,i))),Ze(a,u=>{const d=Ak(t.callbacks,u);r.push(Bn(d,"labelColor",this,u)),s.push(Bn(d,"labelPointStyle",this,u)),o.push(Bn(d,"labelTextColor",this,u))}),this.labelColors=r,this.labelPointStyles=s,this.labelTextColors=o,this.dataPoints=a,a}update(t,e){const i=this.options.setContext(this.getContext()),r=this._active;let s,o=[];if(r.length){const a=Ic[i.position].call(this,r,this._eventPosition);o=this._createItems(i),this.title=this.getTitle(o,i),this.beforeBody=this.getBeforeBody(o,i),this.body=this.getBody(o,i),this.afterBody=this.getAfterBody(o,i),this.footer=this.getFooter(o,i);const l=this._size=Tk(this,i),c=Object.assign({},a,l),u=Ik(this.chart,i,c),d=Mk(i,c,u,this.chart);this.xAlign=u.xAlign,this.yAlign=u.yAlign,s={opacity:1,x:d.x,y:d.y,width:l.width,height:l.height,caretX:a.x,caretY:a.y}}else 0!==this.opacity&&(s={opacity:0});this._tooltipItems=o,this.$context=void 0,s&&this._resolveAnimations().update(this,s),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,r){const s=this.getCaretPosition(t,i,r);e.lineTo(s.x1,s.y1),e.lineTo(s.x2,s.y2),e.lineTo(s.x3,s.y3)}getCaretPosition(t,e,i){const{xAlign:r,yAlign:s}=this,{caretSize:o,cornerRadius:a}=i,{topLeft:l,topRight:c,bottomLeft:u,bottomRight:d}=Qs(a),{x:h,y:f}=t,{width:p,height:g}=e;let y,C,x,D,E,k;return"center"===s?(E=f+g/2,"left"===r?(y=h,C=y-o,D=E+o,k=E-o):(y=h+p,C=y+o,D=E-o,k=E+o),x=y):(C="left"===r?h+Math.max(l,u)+o:"right"===r?h+p-Math.max(c,d)-o:this.caretX,"top"===s?(D=f,E=D-o,y=C-o,x=C+o):(D=f+g,E=D+o,y=C+o,x=C-o),k=D),{x1:y,x2:C,x3:x,y1:D,y2:E,y3:k}}drawTitle(t,e,i){const r=this.title,s=r.length;let o,a,l;if(s){const c=wa(i.rtl,this.x,this.width);for(t.x=zh(this,i.titleAlign,i),e.textAlign=c.textAlign(i.titleAlign),e.textBaseline="middle",o=Kt(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=o.string,l=0;l<s;++l)e.fillText(r[l],c.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+a,l+1===s&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,e,i,r,s){const o=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:l,boxWidth:c,boxPadding:u}=s,d=Kt(s.bodyFont),h=zh(this,"left",s),f=r.x(h),g=e.y+(l<d.lineHeight?(d.lineHeight-l)/2:0);if(s.usePointStyle){const y={radius:Math.min(c,l)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},C=r.leftForLtr(f,c)+c/2,x=g+l/2;t.strokeStyle=s.multiKeyBackground,t.fillStyle=s.multiKeyBackground,my(t,y,C,x),t.strokeStyle=o.borderColor,t.fillStyle=o.backgroundColor,my(t,y,C,x)}else{t.lineWidth=Re(o.borderWidth)?Math.max(...Object.values(o.borderWidth)):o.borderWidth||1,t.strokeStyle=o.borderColor,t.setLineDash(o.borderDash||[]),t.lineDashOffset=o.borderDashOffset||0;const y=r.leftForLtr(f,c-u),C=r.leftForLtr(r.xPlus(f,1),c-u-2),x=Qs(o.borderRadius);Object.values(x).some(D=>0!==D)?(t.beginPath(),t.fillStyle=s.multiKeyBackground,yc(t,{x:y,y:g,w:c,h:l,radius:x}),t.fill(),t.stroke(),t.fillStyle=o.backgroundColor,t.beginPath(),yc(t,{x:C,y:g+1,w:c-2,h:l-2,radius:x}),t.fill()):(t.fillStyle=s.multiKeyBackground,t.fillRect(y,g,c,l),t.strokeRect(y,g,c,l),t.fillStyle=o.backgroundColor,t.fillRect(C,g+1,c-2,l-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){const{body:r}=this,{bodySpacing:s,bodyAlign:o,displayColors:a,boxHeight:l,boxWidth:c,boxPadding:u}=i,d=Kt(i.bodyFont);let h=d.lineHeight,f=0;const p=wa(i.rtl,this.x,this.width),g=function(H){e.fillText(H,p.x(t.x+f),t.y+h/2),t.y+=h+s},y=p.textAlign(o);let C,x,D,E,k,P,V;for(e.textAlign=o,e.textBaseline="middle",e.font=d.string,t.x=zh(this,y,i),e.fillStyle=i.bodyColor,Ze(this.beforeBody,g),f=a&&"right"!==y?"center"===o?c/2+u:c+2+u:0,E=0,P=r.length;E<P;++E){for(C=r[E],x=this.labelTextColors[E],e.fillStyle=x,Ze(C.before,g),D=C.lines,a&&D.length&&(this._drawColorBox(e,t,E,p,i),h=Math.max(d.lineHeight,l)),k=0,V=D.length;k<V;++k)g(D[k]),h=d.lineHeight;Ze(C.after,g)}f=0,h=d.lineHeight,Ze(this.afterBody,g),t.y-=s}drawFooter(t,e,i){const r=this.footer,s=r.length;let o,a;if(s){const l=wa(i.rtl,this.x,this.width);for(t.x=zh(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=l.textAlign(i.footerAlign),e.textBaseline="middle",o=Kt(i.footerFont),e.fillStyle=i.footerColor,e.font=o.string,a=0;a<s;++a)e.fillText(r[a],l.x(t.x),t.y+o.lineHeight/2),t.y+=o.lineHeight+i.footerSpacing}}drawBackground(t,e,i,r){const{xAlign:s,yAlign:o}=this,{x:a,y:l}=t,{width:c,height:u}=i,{topLeft:d,topRight:h,bottomLeft:f,bottomRight:p}=Qs(r.cornerRadius);e.fillStyle=r.backgroundColor,e.strokeStyle=r.borderColor,e.lineWidth=r.borderWidth,e.beginPath(),e.moveTo(a+d,l),"top"===o&&this.drawCaret(t,e,i,r),e.lineTo(a+c-h,l),e.quadraticCurveTo(a+c,l,a+c,l+h),"center"===o&&"right"===s&&this.drawCaret(t,e,i,r),e.lineTo(a+c,l+u-p),e.quadraticCurveTo(a+c,l+u,a+c-p,l+u),"bottom"===o&&this.drawCaret(t,e,i,r),e.lineTo(a+f,l+u),e.quadraticCurveTo(a,l+u,a,l+u-f),"center"===o&&"left"===s&&this.drawCaret(t,e,i,r),e.lineTo(a,l+d),e.quadraticCurveTo(a,l,a+d,l),e.closePath(),e.fill(),r.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){const e=this.chart,i=this.$animations,r=i&&i.x,s=i&&i.y;if(r||s){const o=Ic[t.position].call(this,this._active,this._eventPosition);if(!o)return;const a=this._size=Tk(this,t),l=Object.assign({},o,this._size),c=Ik(e,t,l),u=Mk(t,l,c,e);(r._to!==u.x||s._to!==u.y)&&(this.xAlign=c.xAlign,this.yAlign=c.yAlign,this.width=a.width,this.height=a.height,this.caretX=o.x,this.caretY=o.y,this._resolveAnimations().update(this,u))}}_willRender(){return!!this.opacity}draw(t){const e=this.options.setContext(this.getContext());let i=this.opacity;if(!i)return;this._updateAnimationTarget(e);const r={width:this.width,height:this.height},s={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;const o=Cn(e.padding);e.enabled&&(this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length)&&(t.save(),t.globalAlpha=i,this.drawBackground(s,t,r,e),pM(t,e.textDirection),s.y+=o.top,this.drawTitle(s,t,e),this.drawBody(s,t,e),this.drawFooter(s,t,e),gM(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){const i=this._active,r=t.map(({datasetIndex:a,index:l})=>{const c=this.chart.getDatasetMeta(a);if(!c)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:c.data[l],index:l}}),s=!yh(i,r),o=this._positionChanged(r,e);(s||o)&&(this._active=r,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;const r=this.options,s=this._active||[],o=this._getActiveElements(t,s,e,i),a=this._positionChanged(o,t),l=e||!yh(o,s)||a;return l&&(this._active=o,(r.enabled||r.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),l}_getActiveElements(t,e,i,r){const s=this.options;if("mouseout"===t.type)return[];if(!r)return e;const o=this.chart.getElementsAtEventForMode(t,s.mode,s,i);return s.reverse&&o.reverse(),o}_positionChanged(t,e){const{caretX:i,caretY:r,options:s}=this,o=Ic[s.position].call(this,t,e);return!1!==o&&(i!==o.x||r!==o.y)}}var JZ=Object.freeze({__proto__:null,Colors:dZ,Decimation:gZ,Filler:FZ,Legend:zZ,SubTitle:UZ,Title:$Z,Tooltip:{id:"tooltip",_element:Pk,positioners:Ic,afterInit(n,t,e){e&&(n.tooltip=new Pk({chart:n,options:e}))},beforeUpdate(n,t,e){n.tooltip&&n.tooltip.initialize(e)},reset(n,t,e){n.tooltip&&n.tooltip.initialize(e)},afterDraw(n){const t=n.tooltip;if(t&&t._willRender()){const e={tooltip:t};if(!1===n.notifyPlugins("beforeTooltipDraw",{...e,cancelable:!0}))return;t.draw(n.ctx),n.notifyPlugins("afterTooltipDraw",e)}},afterEvent(n,t){n.tooltip&&n.tooltip.handleEvent(t.event,t.replay,t.inChartArea)&&(t.changed=!0)},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(n,t)=>t.bodyFont.size,boxWidth:(n,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Ok},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:n=>"filter"!==n&&"itemSort"!==n&&"external"!==n,_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]}});function Rk(n){const t=this.getLabels();return n>=0&&n<t.length?t[n]:n}function Fk(n,t,{horizontal:e,minRotation:i}){const r=Ni(i),s=(e?Math.sin(r):Math.cos(r))||.001;return Math.min(t/s,.75*t*(""+n).length)}class jh extends to{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return je(t)||("number"==typeof t||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){const{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds();let{min:r,max:s}=this;const o=l=>r=e?r:l,a=l=>s=i?s:l;if(t){const l=Qi(r),c=Qi(s);l<0&&c<0?a(0):l>0&&c>0&&o(0)}if(r===s){let l=0===s?1:Math.abs(.05*s);a(s+l),t||o(r-l)}this.min=r,this.max=s}getTickLimit(){const t=this.options.ticks;let r,{maxTicksLimit:e,stepSize:i}=t;return i?(r=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,r>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${r} ticks. Limiting to 1000.`),r=1e3)):(r=this.computeTickLimit(),e=e||11),e&&(r=Math.min(e,r)),r}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){const t=this.options,e=t.ticks;let i=this.getTickLimit();i=Math.max(2,i);const o=function rX(n,t){const e=[],{bounds:r,step:s,min:o,max:a,precision:l,count:c,maxTicks:u,maxDigits:d,includeBounds:h}=n,f=s||1,p=u-1,{min:g,max:y}=t,C=!je(o),x=!je(a),D=!je(c),E=(y-g)/(d+1);let P,V,H,j,k=NI((y-g)/p/f)*f;if(k<1e-14&&!C&&!x)return[{value:g},{value:y}];j=Math.ceil(y/k)-Math.floor(g/k),j>p&&(k=NI(j*k/p/f)*f),je(l)||(P=Math.pow(10,l),k=Math.ceil(k*P)/P),"ticks"===r?(V=Math.floor(g/k)*k,H=Math.ceil(y/k)*k):(V=g,H=y),C&&x&&s&&function $K(n,t){const e=Math.round(n);return e-t<=n&&e+t>=n}((a-o)/s,k/1e3)?(j=Math.round(Math.min((a-o)/k,u)),k=(a-o)/j,V=o,H=a):D?(V=C?o:V,H=x?a:H,j=c-1,k=(H-V)/j):(j=(H-V)/k,j=hc(j,Math.round(j),k/1e3)?Math.round(j):Math.ceil(j));const J=Math.max(BI(k),BI(V));P=Math.pow(10,je(l)?J:l),V=Math.round(V*P)/P,H=Math.round(H*P)/P;let me=0;for(C&&(h&&V!==o?(e.push({value:o}),V<o&&me++,hc(Math.round((V+me*k)*P)/P,o,Fk(o,E,n))&&me++):V<o&&me++);me<j;++me)e.push({value:Math.round((V+me*k)*P)/P});return x&&h&&H!==a?e.length&&hc(e[e.length-1].value,a,Fk(a,E,n))?e[e.length-1].value=a:e.push({value:a}):(!x||H===a)&&e.push({value:H}),e}({maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:!1!==e.includeBounds},this._range||this);return"ticks"===t.bounds&&VI(o,this,"value"),t.reverse?(o.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),o}configure(){const t=this.ticks;let e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){const r=(i-e)/Math.max(t.length-1,1)/2;e-=r,i+=r}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return gc(t,this.chart.options.locale,this.options.ticks.format)}}const Mc=n=>Math.floor(ls(n)),no=(n,t)=>Math.pow(10,Mc(n)+t);function Lk(n){return n/Math.pow(10,Mc(n))==1}function Nk(n,t,e){const i=Math.pow(10,e),r=Math.floor(n/i);return Math.ceil(t/i)-r}function Hy(n){const t=n.ticks;if(t.display&&n.display){const e=Cn(t.backdropPadding);return xe(t.font&&t.font.size,Ot.font.size)+e.height}return 0}function cX(n,t,e){return e=dt(e)?e:[e],{w:oq(n,t.string,e),h:e.length*t.lineHeight}}function Vk(n,t,e,i,r){return n===i||n===r?{start:t-e/2,end:t+e/2}:n<i||n>r?{start:t-e,end:t}:{start:t,end:t+e}}function dX(n,t,e,i,r){const s=Math.abs(Math.sin(e)),o=Math.abs(Math.cos(e));let a=0,l=0;i.start<t.l?(a=(t.l-i.start)/s,n.l=Math.min(n.l,t.l-a)):i.end>t.r&&(a=(i.end-t.r)/s,n.r=Math.max(n.r,t.r+a)),r.start<t.t?(l=(t.t-r.start)/o,n.t=Math.min(n.t,t.t-l)):r.end>t.b&&(l=(r.end-t.b)/o,n.b=Math.max(n.b,t.b+l))}function fX(n){return 0===n||180===n?"center":n<180?"left":"right"}function pX(n,t,e){return"right"===e?n-=t:"center"===e&&(n-=t/2),n}function gX(n,t,e){return 90===e||270===e?n-=t/2:(e>270||e<90)&&(n-=t),n}function Bk(n,t,e,i){const{ctx:r}=n;if(e)r.arc(n.xCenter,n.yCenter,t,0,ht);else{let s=n.getPointPosition(0,t);r.moveTo(s.x,s.y);for(let o=1;o<i;o++)s=n.getPointPosition(o,t),r.lineTo(s.x,s.y)}}const $h={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},Hn=Object.keys($h);function bX(n,t){return n-t}function Hk(n,t){if(je(t))return null;const e=n._adapter,{parser:i,round:r,isoWeekday:s}=n._parseOpts;let o=t;return"function"==typeof i&&(o=i(o)),Et(o)||(o="string"==typeof i?e.parse(o,i):e.parse(o)),null===o?null:(r&&(o="week"!==r||!ya(s)&&!0!==s?e.startOf(o,r):e.startOf(o,"isoWeek",s)),+o)}function zk(n,t,e,i){const r=Hn.length;for(let s=Hn.indexOf(n);s<r-1;++s){const o=$h[Hn[s]],a=o.steps?o.steps:Number.MAX_SAFE_INTEGER;if(o.common&&Math.ceil((e-t)/(a*o.size))<=i)return Hn[s]}return Hn[r-1]}function jk(n,t,e){if(e){if(e.length){const{lo:i,hi:r}=dy(e,t);n[e[i]>=t?e[i]:e[r]]=!0}}else n[t]=!0}function $k(n,t,e){const i=[],r={},s=t.length;let o,a;for(o=0;o<s;++o)a=t[o],r[a]=o,i.push({value:a,major:!1});return 0!==s&&e?function SX(n,t,e,i){const r=n._adapter,s=+r.startOf(t[0].value,i),o=t[t.length-1].value;let a,l;for(a=s;a<=o;a=+r.add(a,1,i))l=e[a],l>=0&&(t[l].major=!0);return t}(n,i,r,e):i}class zy extends to{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){const i=t.time||(t.time={}),r=this._adapter=new IY__date(t.adapters.date);r.init(e),dc(i.displayFormats,r.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return void 0===t?null:Hk(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){const t=this.options,e=this._adapter,i=t.time.unit||"day";let{min:r,max:s,minDefined:o,maxDefined:a}=this.getUserBounds();function l(c){!o&&!isNaN(c.min)&&(r=Math.min(r,c.min)),!a&&!isNaN(c.max)&&(s=Math.max(s,c.max))}(!o||!a)&&(l(this._getLabelBounds()),("ticks"!==t.bounds||"labels"!==t.ticks.source)&&l(this.getMinMax(!1))),r=Et(r)&&!isNaN(r)?r:+e.startOf(Date.now(),i),s=Et(s)&&!isNaN(s)?s:+e.endOf(Date.now(),i)+1,this.min=Math.min(r,s-1),this.max=Math.max(r+1,s)}_getLabelBounds(){const t=this.getLabelTimestamps();let e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){const t=this.options,e=t.time,i=t.ticks,r="labels"===i.source?this.getLabelTimestamps():this._generate();"ticks"===t.bounds&&r.length&&(this.min=this._userMin||r[0],this.max=this._userMax||r[r.length-1]);const s=this.min,a=function KK(n,t,e){let i=0,r=n.length;for(;i<r&&n[i]<t;)i++;for(;r>i&&n[r-1]>e;)r--;return i>0||r<n.length?n.slice(i,r):n}(r,s,this.max);return this._unit=e.unit||(i.autoSkip?zk(e.minUnit,this.min,this.max,this._getLabelCapacity(s)):function wX(n,t,e,i,r){for(let s=Hn.length-1;s>=Hn.indexOf(e);s--){const o=Hn[s];if($h[o].common&&n._adapter.diff(r,i,o)>=t-1)return o}return Hn[e?Hn.indexOf(e):0]}(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=i.major.enabled&&"year"!==this._unit?function CX(n){for(let t=Hn.indexOf(n)+1,e=Hn.length;t<e;++t)if($h[Hn[t]].common)return Hn[t]}(this._unit):void 0,this.initOffsets(r),t.reverse&&a.reverse(),$k(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let r,s,e=0,i=0;this.options.offset&&t.length&&(r=this.getDecimalForValue(t[0]),e=1===t.length?1-r:(this.getDecimalForValue(t[1])-r)/2,s=this.getDecimalForValue(t[t.length-1]),i=1===t.length?s:(s-this.getDecimalForValue(t[t.length-2]))/2);const o=t.length<3?.5:.25;e=tn(e,0,o),i=tn(i,0,o),this._offsets={start:e,end:i,factor:1/(e+1+i)}}_generate(){const t=this._adapter,e=this.min,i=this.max,r=this.options,s=r.time,o=s.unit||zk(s.minUnit,e,i,this._getLabelCapacity(e)),a=xe(r.ticks.stepSize,1),l="week"===o&&s.isoWeekday,c=ya(l)||!0===l,u={};let h,f,d=e;if(c&&(d=+t.startOf(d,"isoWeek",l)),d=+t.startOf(d,c?"day":o),t.diff(i,e,o)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+o);const p="data"===r.ticks.source&&this.getDataTimestamps();for(h=d,f=0;h<i;h=+t.add(h,a,o),f++)jk(u,h,p);return(h===i||"ticks"===r.bounds||1===f)&&jk(u,h,p),Object.keys(u).sort((g,y)=>g-y).map(g=>+g)}getLabelForValue(t){const i=this.options.time;return this._adapter.format(t,i.tooltipFormat?i.tooltipFormat:i.displayFormats.datetime)}format(t,e){return this._adapter.format(t,e||this.options.time.displayFormats[this._unit])}_tickFormatFunction(t,e,i,r){const s=this.options,o=s.ticks.callback;if(o)return ct(o,[t,e,i],this);const a=s.time.displayFormats,l=this._unit,c=this._majorUnit,d=c&&a[c],h=i[e];return this._adapter.format(t,r||(c&&d&&h&&h.major?d:l&&a[l]))}generateTickLabels(t){let e,i,r;for(e=0,i=t.length;e<i;++e)r=t[e],r.label=this._tickFormatFunction(r.value,e,t)}getDecimalForValue(t){return null===t?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){const e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){const e=this.options.ticks,i=this.ctx.measureText(t).width,r=Ni(this.isHorizontal()?e.maxRotation:e.minRotation),s=Math.cos(r),o=Math.sin(r),a=this._resolveTickFontOptions(0).size;return{w:i*s+a*o,h:i*o+a*s}}_getLabelCapacity(t){const e=this.options.time,i=e.displayFormats,r=i[e.unit]||i.millisecond,s=this._tickFormatFunction(t,0,$k(this,[t],this._majorUnit),r),o=this._getLabelSize(s),a=Math.floor(this.isHorizontal()?this.width/o.w:this.height/o.h)-1;return a>0?a:1}getDataTimestamps(){let e,i,t=this._cache.data||[];if(t.length)return t;const r=this.getMatchingVisibleMetas();if(this._normalized&&r.length)return this._cache.data=r[0].controller.getAllParsedValues(this);for(e=0,i=r.length;e<i;++e)t=t.concat(r[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){const t=this._cache.labels||[];let e,i;if(t.length)return t;const r=this.getLabels();for(e=0,i=r.length;e<i;++e)t.push(Hk(this,r[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return $I(t.sort(bX))}}function Uh(n,t,e){let s,o,a,l,i=0,r=n.length-1;e?(t>=n[i].pos&&t<=n[r].pos&&({lo:i,hi:r}=Ir(n,"pos",t)),({pos:s,time:a}=n[i]),({pos:o,time:l}=n[r])):(t>=n[i].time&&t<=n[r].time&&({lo:i,hi:r}=Ir(n,"time",t)),({time:s,pos:a}=n[i]),({time:o,pos:l}=n[r]));const c=o-s;return c?a+(l-a)*(t-s)/c:a}Ay.register(TY,sZ,JZ,Object.freeze({__proto__:null,CategoryScale:class iX extends to{static id="category";static defaults={ticks:{callback:Rk}};constructor(t){super(t),this._startValue=void 0,this._valueRange=0,this._addedLabels=[]}init(t){const e=this._addedLabels;if(e.length){const i=this.getLabels();for(const{index:r,label:s}of e)i[r]===s&&i.splice(r,1);this._addedLabels=[]}super.init(t)}parse(t,e){if(je(t))return null;const i=this.getLabels();return((n,t)=>null===n?null:tn(Math.round(n),0,t))(e=isFinite(e)&&i[e]===t?e:function tX(n,t,e,i){const r=n.indexOf(t);return-1===r?((n,t,e,i)=>("string"==typeof t?(e=n.push(t)-1,i.unshift({index:e,label:t})):isNaN(t)&&(e=null),e))(n,t,e,i):r!==n.lastIndexOf(t)?e:r}(i,t,xe(e,t),this._addedLabels),i.length-1)}determineDataLimits(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let{min:i,max:r}=this.getMinMax(!0);"ticks"===this.options.bounds&&(t||(i=0),e||(r=this.getLabels().length-1)),this.min=i,this.max=r}buildTicks(){const t=this.min,e=this.max,i=this.options.offset,r=[];let s=this.getLabels();s=0===t&&e===s.length-1?s:s.slice(t,e+1),this._valueRange=Math.max(s.length-(i?0:1),1),this._startValue=this.min-(i?.5:0);for(let o=t;o<=e;o++)r.push({value:o});return r}getLabelForValue(t){return Rk.call(this,t)}configure(){super.configure(),this.isHorizontal()||(this._reversePixels=!this._reversePixels)}getPixelForValue(t){return"number"!=typeof t&&(t=this.parse(t)),null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getPixelForTick(t){const e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getValueForPixel(t){return Math.round(this._startValue+this.getDecimalForPixel(t)*this._valueRange)}getBasePixel(){return this.bottom}},LinearScale:class sX extends jh{static id="linear";static defaults={ticks:{callback:Ch.formatters.numeric}};determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Et(t)?t:0,this.max=Et(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){const t=this.isHorizontal(),e=t?this.width:this.height,i=Ni(this.options.ticks.minRotation),r=(t?Math.sin(i):Math.cos(i))||.001,s=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,s.lineHeight/r))}getPixelForValue(t){return null===t?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}},LogarithmicScale:class lX extends to{static id="logarithmic";static defaults={ticks:{callback:Ch.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){const i=jh.prototype.parse.apply(this,[t,e]);if(0!==i)return Et(i)&&i>0?i:null;this._zero=!0}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!0);this.min=Et(t)?Math.max(0,t):null,this.max=Et(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!Et(this._userMin)&&(this.min=t===no(this.min,0)?no(this.min,-1):no(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){const{minDefined:t,maxDefined:e}=this.getUserBounds();let i=this.min,r=this.max;const s=a=>i=t?i:a,o=a=>r=e?r:a;i===r&&(i<=0?(s(1),o(10)):(s(no(i,-1)),o(no(r,1)))),i<=0&&s(no(r,-1)),r<=0&&o(no(i,1)),this.min=i,this.max=r}buildTicks(){const t=this.options,i=function aX(n,{min:t,max:e}){t=ei(n.min,t);const i=[],r=Mc(t);let s=function oX(n,t){let i=Mc(t-n);for(;Nk(n,t,i)>10;)i++;for(;Nk(n,t,i)<10;)i--;return Math.min(i,Mc(n))}(t,e),o=s<0?Math.pow(10,Math.abs(s)):1;const a=Math.pow(10,s),l=r>s?Math.pow(10,r):0,c=Math.round((t-l)*o)/o,u=Math.floor((t-l)/a/10)*a*10;let d=Math.floor((c-u)/Math.pow(10,s)),h=ei(n.min,Math.round((l+u+d*Math.pow(10,s))*o)/o);for(;h<e;)i.push({value:h,major:Lk(h),significand:d}),d>=10?d=d<15?15:20:d++,d>=20&&(s++,d=2,o=s>=0?1:o),h=Math.round((l+u+d*Math.pow(10,s))*o)/o;const f=ei(n.max,h);return i.push({value:f,major:Lk(f),significand:d}),i}({min:this._userMin,max:this._userMax},this);return"ticks"===t.bounds&&VI(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return void 0===t?"0":gc(t,this.chart.options.locale,this.options.ticks.format)}configure(){const t=this.min;super.configure(),this._startValue=ls(t),this._valueRange=ls(this.max)-ls(t)}getPixelForValue(t){return(void 0===t||0===t)&&(t=this.min),null===t||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(ls(t)-this._startValue)/this._valueRange)}getValueForPixel(t){const e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}},RadialLinearScale:class vX extends jh{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Ch.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback:t=>t,padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){const t=this._padding=Cn(Hy(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){const{min:t,max:e}=this.getMinMax(!1);this.min=Et(t)&&!isNaN(t)?t:0,this.max=Et(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Hy(this.options))}generateTickLabels(t){jh.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((e,i)=>{const r=ct(this.options.pointLabels.callback,[e,i],this);return r||0===r?r:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){const t=this.options;t.display&&t.pointLabels.display?function uX(n){const t={l:n.left+n._padding.left,r:n.right-n._padding.right,t:n.top+n._padding.top,b:n.bottom-n._padding.bottom},e=Object.assign({},t),i=[],r=[],s=n._pointLabels.length,o=n.options.pointLabels,a=o.centerPointLabels?yt/s:0;for(let l=0;l<s;l++){const c=o.setContext(n.getPointLabelContext(l));r[l]=c.padding;const u=n.getPointPosition(l,n.drawingArea+r[l],a),d=Kt(c.font),h=cX(n.ctx,d,n._pointLabels[l]);i[l]=h;const f=ti(n.getIndexAngle(l)+a),p=Math.round(cy(f));dX(e,t,f,Vk(p,u.x,h.w,0,180),Vk(p,u.y,h.h,90,270))}n.setCenterPoint(t.l-e.l,e.r-t.r,t.t-e.t,e.b-t.b),n._pointLabelItems=function hX(n,t,e){const i=[],r=n._pointLabels.length,s=n.options,o=Hy(s)/2,a=n.drawingArea,l=s.pointLabels.centerPointLabels?yt/r:0;for(let c=0;c<r;c++){const u=n.getPointPosition(c,a+o+e[c],l),d=Math.round(cy(ti(u.angle+Tt))),h=t[c],f=gX(u.y,h.h,d),p=fX(d),g=pX(u.x,h.w,p);i.push({x:u.x,y:f,textAlign:p,left:g,top:f,right:g+h.w,bottom:f+h.h})}return i}(n,i,r)}(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,r){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-r)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,r))}getIndexAngle(t){return ti(t*(ht/(this._pointLabels.length||1))+Ni(this.options.startAngle||0))}getDistanceFromCenterForValue(t){if(je(t))return NaN;const e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(je(t))return NaN;const e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){const e=this._pointLabels||[];if(t>=0&&t<e.length){const i=e[t];return function yX(n,t,e){return cs(n,{label:e,index:t,type:"pointLabel"})}(this.getContext(),t,i)}}getPointPosition(t,e,i=0){const r=this.getIndexAngle(t)-Tt+i;return{x:Math.cos(r)*e+this.xCenter,y:Math.sin(r)*e+this.yCenter,angle:r}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){const{left:e,top:i,right:r,bottom:s}=this._pointLabelItems[t];return{left:e,top:i,right:r,bottom:s}}drawBackground(){const{backgroundColor:t,grid:{circular:e}}=this.options;if(t){const i=this.ctx;i.save(),i.beginPath(),Bk(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){const t=this.ctx,e=this.options,{angleLines:i,grid:r,border:s}=e,o=this._pointLabels.length;let a,l,c;if(e.pointLabels.display&&function mX(n,t){const{ctx:e,options:{pointLabels:i}}=n;for(let r=t-1;r>=0;r--){const s=i.setContext(n.getPointLabelContext(r)),o=Kt(s.font),{x:a,y:l,textAlign:c,left:u,top:d,right:h,bottom:f}=n._pointLabelItems[r],{backdropColor:p}=s;if(!je(p)){const g=Qs(s.borderRadius),y=Cn(s.backdropPadding);e.fillStyle=p;const C=u-y.left,x=d-y.top,D=h-u+y.width,E=f-d+y.height;Object.values(g).some(k=>0!==k)?(e.beginPath(),yc(e,{x:C,y:x,w:D,h:E,radius:g}),e.fill()):e.fillRect(C,x,D,E)}Ys(e,n._pointLabels[r],a,l+o.lineHeight/2,o,{color:s.color,textAlign:c,textBaseline:"middle"})}}(this,o),r.display&&this.ticks.forEach((u,d)=>{if(0!==d){l=this.getDistanceFromCenterForValue(u.value);const h=this.getContext(d),f=r.setContext(h),p=s.setContext(h);!function _X(n,t,e,i,r){const s=n.ctx,o=t.circular,{color:a,lineWidth:l}=t;!o&&!i||!a||!l||e<0||(s.save(),s.strokeStyle=a,s.lineWidth=l,s.setLineDash(r.dash),s.lineDashOffset=r.dashOffset,s.beginPath(),Bk(n,e,o,i),s.closePath(),s.stroke(),s.restore())}(this,f,l,o,p)}}),i.display){for(t.save(),a=o-1;a>=0;a--){const u=i.setContext(this.getPointLabelContext(a)),{color:d,lineWidth:h}=u;!h||!d||(t.lineWidth=h,t.strokeStyle=d,t.setLineDash(u.borderDash),t.lineDashOffset=u.borderDashOffset,l=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),c=this.getPointPosition(a,l),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(c.x,c.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){const t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;const r=this.getIndexAngle(0);let s,o;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(r),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,l)=>{if(0===l&&!e.reverse)return;const c=i.setContext(this.getContext(l)),u=Kt(c.font);if(s=this.getDistanceFromCenterForValue(this.ticks[l].value),c.showLabelBackdrop){t.font=u.string,o=t.measureText(a.label).width,t.fillStyle=c.backdropColor;const d=Cn(c.backdropPadding);t.fillRect(-o/2-d.left,-s-u.size/2-d.top,o+d.width,u.size+d.height)}Ys(t,a.label,0,-s,u,{color:c.color})}),t.restore()}drawTitle(){}},TimeScale:zy,TimeSeriesScale:class DX extends zy{static id="timeseries";static defaults=zy.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){const t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Uh(e,this.min),this._tableRange=Uh(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){const{min:e,max:i}=this,r=[],s=[];let o,a,l,c,u;for(o=0,a=t.length;o<a;++o)c=t[o],c>=e&&c<=i&&r.push(c);if(r.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(o=0,a=r.length;o<a;++o)u=r[o+1],l=r[o-1],c=r[o],Math.round((u+l)/2)!==c&&s.push({time:c,pos:o/(a-1)});return s}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;const e=this.getDataTimestamps(),i=this.getLabelTimestamps();return t=e.length&&i.length?this.normalize(e.concat(i)):e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(Uh(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){const e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return Uh(this._table,i*this._tableRange+this._minPos,!0)}}}));const TX=Ay;let IX=(()=>{class n{constructor(e){this.el=e,this.plugins=[],this.responsive=!0,this.onDataSelect=new N,this._options={}}get data(){return this._data}set data(e){this._data=e,this.reinit()}get options(){return this._options}set options(e){this._options=e,this.reinit()}ngAfterViewInit(){this.initChart(),this.initialized=!0}onCanvasClick(e){if(this.chart){const i=this.chart.getElementsAtEventForMode(e,"nearest",{intersect:!0},!1),r=this.chart.getElementsAtEventForMode(e,"dataset",{intersect:!0},!1);i&&i[0]&&r&&this.onDataSelect.emit({originalEvent:e,element:i[0],dataset:r})}}initChart(){let e=this.options||{};e.responsive=this.responsive,e.responsive&&(this.height||this.width)&&(e.maintainAspectRatio=!1),this.chart=new TX(this.el.nativeElement.children[0].children[0],{type:this.type,data:this.data,options:this.options,plugins:this.plugins})}getCanvas(){return this.el.nativeElement.children[0].children[0]}getBase64Image(){return this.chart.toBase64Image()}generateLegend(){if(this.chart)return this.chart.generateLegend()}refresh(){this.chart&&this.chart.update()}reinit(){this.chart&&(this.chart.destroy(),this.initChart())}ngOnDestroy(){this.chart&&(this.chart.destroy(),this.initialized=!1,this.chart=null)}}return n.\u0275fac=function(e){return new(e||n)(M(ze))},n.\u0275cmp=Se({type:n,selectors:[["p-chart"]],hostAttrs:[1,"p-element"],inputs:{type:"type",plugins:"plugins",width:"width",height:"height",responsive:"responsive",data:"data",options:"options"},outputs:{onDataSelect:"onDataSelect"},decls:2,vars:6,consts:[[2,"position","relative"],[3,"click"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"canvas",1),R("click",function(s){return i.onCanvasClick(s)}),w()()),2&e&&(fr("width",i.responsive&&!i.width?null:i.width)("height",i.responsive&&!i.height?null:i.height),v(1),Ce("width",i.responsive&&!i.width?null:i.width)("height",i.responsive&&!i.height?null:i.height))},encapsulation:2,changeDetection:0}),n})(),Uk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We]}),n})();const MX=["container"],kX=["input"],AX=["colorSelector"],OX=["colorHandle"],PX=["hue"],RX=["hueHandle"],FX=function(n){return{"p-disabled":n}};function LX(n,t){if(1&n){const e=Q();b(0,"input",4,5),R("focus",function(){return T(e),I(_().onInputFocus())})("click",function(){return T(e),I(_().onInputClick())})("keydown",function(r){return T(e),I(_().onInputKeydown(r))}),w()}if(2&n){const e=_();fr("background-color",e.inputBgColor),m("ngClass",oe(6,FX,e.disabled))("disabled",e.disabled),Ce("id",e.inputId)("tabindex",e.tabindex)}}const NX=function(n,t){return{"p-colorpicker-panel":!0,"p-colorpicker-overlay-panel":n,"p-disabled":t}},VX=function(n,t){return{showTransitionParams:n,hideTransitionParams:t}},BX=function(n){return{value:"visible",params:n}};function HX(n,t){if(1&n){const e=Q();b(0,"div",6),R("click",function(r){return T(e),I(_().onOverlayClick(r))})("@overlayAnimation.start",function(r){return T(e),I(_().onOverlayAnimationStart(r))})("@overlayAnimation.done",function(r){return T(e),I(_().onOverlayAnimationEnd(r))}),b(1,"div",7)(2,"div",8,9),R("touchstart",function(r){return T(e),I(_().onColorTouchStart(r))})("touchmove",function(r){return T(e),I(_().onMove(r))})("touchend",function(){return T(e),I(_().onDragEnd())})("mousedown",function(r){return T(e),I(_().onColorMousedown(r))}),b(4,"div",10),F(5,"div",11,12),w()(),b(7,"div",13,14),R("mousedown",function(r){return T(e),I(_().onHueMousedown(r))})("touchstart",function(r){return T(e),I(_().onHueTouchStart(r))})("touchmove",function(r){return T(e),I(_().onMove(r))})("touchend",function(){return T(e),I(_().onDragEnd())}),F(9,"div",15,16),w()()()}if(2&n){const e=_();m("ngClass",He(3,NX,!e.inline,e.disabled))("@overlayAnimation",oe(9,BX,He(6,VX,e.showTransitionOptions,e.hideTransitionOptions)))("@.disabled",!0===e.inline)}}const zX=function(n,t){return{"p-colorpicker p-component":!0,"p-colorpicker-overlay":n,"p-colorpicker-dragging":t}},jX={provide:Gt,useExisting:Fe(()=>Wk),multi:!0};let Wk=(()=>{class n{constructor(e,i,r,s,o){this.el=e,this.renderer=i,this.cd=r,this.config=s,this.overlayService=o,this.format="hex",this.autoZIndex=!0,this.baseZIndex=0,this.showTransitionOptions=".12s cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions=".1s linear",this.onChange=new N,this.onShow=new N,this.onHide=new N,this.value={h:0,s:100,b:100},this.defaultColor="ff0000",this.onModelChange=()=>{},this.onModelTouched=()=>{}}set colorSelector(e){this.colorSelectorViewChild=e}set colorHandle(e){this.colorHandleViewChild=e}set hue(e){this.hueViewChild=e}set hueHandle(e){this.hueHandleViewChild=e}onHueMousedown(e){this.disabled||(this.bindDocumentMousemoveListener(),this.bindDocumentMouseupListener(),this.hueDragging=!0,this.pickHue(e))}onHueTouchStart(e){this.disabled||(this.hueDragging=!0,this.pickHue(e,e.changedTouches[0]))}onColorTouchStart(e){this.disabled||(this.colorDragging=!0,this.pickColor(e,e.changedTouches[0]))}pickHue(e,i){let r=i?i.pageY:e.pageY,s=this.hueViewChild.nativeElement.getBoundingClientRect().top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0);this.value=this.validateHSB({h:Math.floor(360*(150-Math.max(0,Math.min(150,r-s)))/150),s:this.value.s,b:this.value.b}),this.updateColorSelector(),this.updateUI(),this.updateModel(),this.onChange.emit({originalEvent:e,value:this.getValueToUpdate()})}onColorMousedown(e){this.disabled||(this.bindDocumentMousemoveListener(),this.bindDocumentMouseupListener(),this.colorDragging=!0,this.pickColor(e))}onMove(e){this.colorDragging&&(this.pickColor(e,e.changedTouches[0]),e.preventDefault()),this.hueDragging&&(this.pickHue(e,e.changedTouches[0]),e.preventDefault())}onDragEnd(){this.colorDragging=!1,this.hueDragging=!1,this.unbindDocumentMousemoveListener(),this.unbindDocumentMouseupListener()}pickColor(e,i){let r=i?i.pageX:e.pageX,s=i?i.pageY:e.pageY,o=this.colorSelectorViewChild.nativeElement.getBoundingClientRect(),a=o.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),l=o.left+document.body.scrollLeft,c=Math.floor(100*Math.max(0,Math.min(150,r-l))/150),u=Math.floor(100*(150-Math.max(0,Math.min(150,s-a)))/150);this.value=this.validateHSB({h:this.value.h,s:c,b:u}),this.updateUI(),this.updateModel(),this.onChange.emit({originalEvent:e,value:this.getValueToUpdate()})}getValueToUpdate(){let e;switch(this.format){case"hex":e="#"+this.HSBtoHEX(this.value);break;case"rgb":e=this.HSBtoRGB(this.value);break;case"hsb":e=this.value}return e}updateModel(){this.onModelChange(this.getValueToUpdate())}writeValue(e){if(e)switch(this.format){case"hex":this.value=this.HEXtoHSB(e);break;case"rgb":this.value=this.RGBtoHSB(e);break;case"hsb":this.value=e}else this.value=this.HEXtoHSB(this.defaultColor);this.updateColorSelector(),this.updateUI(),this.cd.markForCheck()}updateColorSelector(){if(this.colorSelectorViewChild){const e={s:100,b:100};e.h=this.value.h,this.colorSelectorViewChild.nativeElement.style.backgroundColor="#"+this.HSBtoHEX(e)}}updateUI(){this.colorHandleViewChild&&this.hueHandleViewChild.nativeElement&&(this.colorHandleViewChild.nativeElement.style.left=Math.floor(150*this.value.s/100)+"px",this.colorHandleViewChild.nativeElement.style.top=Math.floor(150*(100-this.value.b)/100)+"px",this.hueHandleViewChild.nativeElement.style.top=Math.floor(150-150*this.value.h/360)+"px"),this.inputBgColor="#"+this.HSBtoHEX(this.value)}onInputFocus(){this.onModelTouched()}show(){this.overlayVisible=!0,this.cd.markForCheck()}onOverlayAnimationStart(e){switch(e.toState){case"visible":this.inline||(this.overlay=e.element,this.appendOverlay(),this.autoZIndex&&yn.set("overlay",this.overlay,this.config.zIndex.overlay),this.alignOverlay(),this.bindDocumentClickListener(),this.bindDocumentResizeListener(),this.bindScrollListener(),this.updateColorSelector(),this.updateUI());break;case"void":this.onOverlayHide()}}onOverlayAnimationEnd(e){switch(e.toState){case"visible":this.inline||this.onShow.emit({});break;case"void":this.autoZIndex&&yn.clear(e.element),this.onHide.emit({})}}appendOverlay(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.overlay):A.appendChild(this.overlay,this.appendTo))}restoreOverlayAppend(){this.overlay&&this.appendTo&&this.el.nativeElement.appendChild(this.overlay)}alignOverlay(){this.appendTo?A.absolutePosition(this.overlay,this.inputViewChild.nativeElement):A.relativePosition(this.overlay,this.inputViewChild.nativeElement)}hide(){this.overlayVisible=!1,this.cd.markForCheck()}onInputClick(){this.selfClick=!0,this.togglePanel()}togglePanel(){this.overlayVisible?this.hide():this.show()}onInputKeydown(e){switch(e.which){case 32:this.togglePanel(),e.preventDefault();break;case 27:case 9:this.hide()}}onOverlayClick(e){this.overlayService.add({originalEvent:e,target:this.el.nativeElement}),this.selfClick=!0}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","click",()=>{this.selfClick||(this.overlayVisible=!1,this.unbindDocumentClickListener()),this.selfClick=!1,this.cd.markForCheck()}))}unbindDocumentClickListener(){this.documentClickListener&&(this.documentClickListener(),this.documentClickListener=null)}bindDocumentMousemoveListener(){this.documentMousemoveListener||(this.documentMousemoveListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mousemove",i=>{this.colorDragging&&this.pickColor(i),this.hueDragging&&this.pickHue(i)}))}unbindDocumentMousemoveListener(){this.documentMousemoveListener&&(this.documentMousemoveListener(),this.documentMousemoveListener=null)}bindDocumentMouseupListener(){this.documentMouseupListener||(this.documentMouseupListener=this.renderer.listen(this.el?this.el.nativeElement.ownerDocument:"document","mouseup",()=>{this.colorDragging=!1,this.hueDragging=!1,this.unbindDocumentMousemoveListener(),this.unbindDocumentMouseupListener()}))}unbindDocumentMouseupListener(){this.documentMouseupListener&&(this.documentMouseupListener(),this.documentMouseupListener=null)}bindDocumentResizeListener(){this.documentResizeListener=this.onWindowResize.bind(this),window.addEventListener("resize",this.documentResizeListener)}unbindDocumentResizeListener(){this.documentResizeListener&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}onWindowResize(){this.overlayVisible&&!A.isTouchDevice()&&this.hide()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new Kd(this.containerViewChild.nativeElement,()=>{this.overlayVisible&&this.hide()})),this.scrollHandler.bindScrollListener()}unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()}validateHSB(e){return{h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}}validateRGB(e){return{r:Math.min(255,Math.max(0,e.r)),g:Math.min(255,Math.max(0,e.g)),b:Math.min(255,Math.max(0,e.b))}}validateHEX(e){var i=6-e.length;if(i>0){for(var r=[],s=0;s<i;s++)r.push("0");r.push(e),e=r.join("")}return e}HEXtoRGB(e){let i=parseInt(e.indexOf("#")>-1?e.substring(1):e,16);return{r:i>>16,g:(65280&i)>>8,b:255&i}}HEXtoHSB(e){return this.RGBtoHSB(this.HEXtoRGB(e))}RGBtoHSB(e){var i={h:0,s:0,b:0},r=Math.min(e.r,e.g,e.b),s=Math.max(e.r,e.g,e.b),o=s-r;return i.b=s,i.s=0!=s?255*o/s:0,i.h=0!=i.s?e.r==s?(e.g-e.b)/o:e.g==s?2+(e.b-e.r)/o:4+(e.r-e.g)/o:-1,i.h*=60,i.h<0&&(i.h+=360),i.s*=100/255,i.b*=100/255,i}HSBtoRGB(e){var i={r:null,g:null,b:null};let r=e.h,s=255*e.s/100,o=255*e.b/100;if(0==s)i={r:o,g:o,b:o};else{let a=o,l=(255-s)*o/255,c=r%60*(a-l)/60;360==r&&(r=0),r<60?(i.r=a,i.b=l,i.g=l+c):r<120?(i.g=a,i.b=l,i.r=a-c):r<180?(i.g=a,i.r=l,i.b=l+c):r<240?(i.b=a,i.r=l,i.g=a-c):r<300?(i.b=a,i.g=l,i.r=l+c):r<360?(i.r=a,i.g=l,i.b=a-c):(i.r=0,i.g=0,i.b=0)}return{r:Math.round(i.r),g:Math.round(i.g),b:Math.round(i.b)}}RGBtoHEX(e){var i=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];for(var r in i)1==i[r].length&&(i[r]="0"+i[r]);return i.join("")}HSBtoHEX(e){return this.RGBtoHEX(this.HSBtoRGB(e))}onOverlayHide(){this.unbindScrollListener(),this.unbindDocumentResizeListener(),this.unbindDocumentClickListener(),this.overlay=null}ngOnDestroy(){this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&this.autoZIndex&&yn.clear(this.overlay),this.restoreOverlayAppend(),this.onOverlayHide()}}return n.\u0275fac=function(e){return new(e||n)(M(ze),M(Mn),M(bt),M(wr),M(Gd))},n.\u0275cmp=Se({type:n,selectors:[["p-colorPicker"]],viewQuery:function(e,i){if(1&e&&(ke(MX,5),ke(kX,5),ke(AX,5),ke(OX,5),ke(PX,5),ke(RX,5)),2&e){let r;ie(r=re())&&(i.containerViewChild=r.first),ie(r=re())&&(i.inputViewChild=r.first),ie(r=re())&&(i.colorSelector=r.first),ie(r=re())&&(i.colorHandle=r.first),ie(r=re())&&(i.hue=r.first),ie(r=re())&&(i.hueHandle=r.first)}},hostAttrs:[1,"p-element"],inputs:{style:"style",styleClass:"styleClass",inline:"inline",format:"format",appendTo:"appendTo",disabled:"disabled",tabindex:"tabindex",inputId:"inputId",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onChange:"onChange",onShow:"onShow",onHide:"onHide"},features:[Be([jX])],decls:4,vars:9,consts:[[3,"ngStyle","ngClass"],["container",""],["type","text","class","p-colorpicker-preview p-inputtext","readonly","readonly",3,"ngClass","disabled","backgroundColor","focus","click","keydown",4,"ngIf"],[3,"ngClass","click",4,"ngIf"],["type","text","readonly","readonly",1,"p-colorpicker-preview","p-inputtext",3,"ngClass","disabled","focus","click","keydown"],["input",""],[3,"ngClass","click"],[1,"p-colorpicker-content"],[1,"p-colorpicker-color-selector",3,"touchstart","touchmove","touchend","mousedown"],["colorSelector",""],[1,"p-colorpicker-color"],[1,"p-colorpicker-color-handle"],["colorHandle",""],[1,"p-colorpicker-hue",3,"mousedown","touchstart","touchmove","touchend"],["hue",""],[1,"p-colorpicker-hue-handle"],["hueHandle",""]],template:function(e,i){1&e&&(b(0,"div",0,1),S(2,LX,2,8,"input",2),S(3,HX,11,11,"div",3),w()),2&e&&(fe(i.styleClass),m("ngStyle",i.style)("ngClass",He(6,zX,!i.inline,i.colorDragging||i.hueDragging)),v(2),m("ngIf",!i.inline),v(1),m("ngIf",i.inline||i.overlayVisible))},dependencies:[_t,lt,ut],styles:[".p-colorpicker{display:inline-block}.p-colorpicker-dragging{cursor:pointer}.p-colorpicker-overlay{position:relative}.p-colorpicker-panel{position:relative;width:193px;height:166px}.p-colorpicker-overlay-panel{position:absolute;top:0;left:0}.p-colorpicker-preview{cursor:pointer}.p-colorpicker-panel .p-colorpicker-content{position:relative}.p-colorpicker-panel .p-colorpicker-color-selector{width:150px;height:150px;top:8px;left:8px;position:absolute}.p-colorpicker-panel .p-colorpicker-color{width:150px;height:150px}.p-colorpicker-panel .p-colorpicker-color-handle{position:absolute;top:0;left:150px;border-radius:100%;width:10px;height:10px;border-width:1px;border-style:solid;margin:-5px 0 0 -5px;cursor:pointer;opacity:.85}.p-colorpicker-panel .p-colorpicker-hue{width:17px;height:150px;top:8px;left:167px;position:absolute;opacity:.85}.p-colorpicker-panel .p-colorpicker-hue-handle{position:absolute;top:150px;left:0;width:21px;margin-left:-2px;margin-top:-5px;height:10px;border-width:2px;border-style:solid;opacity:.85;cursor:pointer}\n"],encapsulation:2,data:{animation:[oh("overlayAnimation",[Yi(":enter",[Vn({opacity:0,transform:"scaleY(0.8)"}),qi("{{showTransitionParams}}")]),Yi(":leave",[qi("{{hideTransitionParams}}",Vn({opacity:0}))])])]},changeDetection:0}),n})(),Gk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We]}),n})();function $X(n,t){if(1&n&&(b(0,"tr")(1,"th"),O(2),w(),b(3,"th"),O(4),w(),b(5,"th"),O(6),w(),b(7,"th"),O(8),w(),F(9,"th"),w()),2&n){const e=_(2);v(2),ne(e.language("name")),v(2),ne(e.language("initialValue")),v(2),ne(e.language("monthlySaved")),v(2),ne(e.language("interestTax"))}}const Kk=function(n){return{"font-weight":"bold",color:n}};function UX(n,t){if(1&n){const e=Q();b(0,"tr",49)(1,"td",50),O(2),w(),b(3,"td"),O(4),w(),b(5,"td"),O(6),w(),b(7,"td"),O(8),w(),b(9,"td")(10,"p-button",51),R("click",function(){const s=T(e).$implicit;return I(_(2).edit(s))}),w(),b(11,"p-button",52),R("click",function(){const s=T(e).$implicit;return I(_(2).copy(s))}),w(),b(12,"p-button",53),R("click",function(){const s=T(e).$implicit;return I(_(2).remove(s))}),w()()()}if(2&n){const e=t.$implicit,i=_(2);v(1),m("ngStyle",oe(7,Kk,e.color)),v(1),Le(" ",e.name,""),v(2),ki("",i.currency," ",e.initValue.toFixed(2),""),v(2),ki("",i.currency," ",e.monthlyValue.toFixed(2),""),v(2),ne(e.interestTax)}}function WX(n,t){if(1&n&&(b(0,"div",45)(1,"p-table",46),S(2,$X,10,4,"ng-template",47),S(3,UX,13,9,"ng-template",48),w()()),2&n){const e=_();v(1),m("value",e.list_comparison)}}function GX(n,t){if(1&n&&(b(0,"tr")(1,"th"),O(2),w(),b(3,"th"),O(4),F(5,"br"),b(6,"small"),O(7),w()(),b(8,"th"),O(9),w(),b(10,"th"),O(11),w(),b(12,"th"),O(13),F(14,"br"),b(15,"small"),O(16),w()(),b(17,"th"),O(18),w()()),2&n){const e=_(2);v(2),ne(e.language("monthYear")),v(2),ne(e.language("monthProfitColumn")),v(3),ne(e.language("monthProfitColumnInfo")),v(2),ne(e.language("savedInterest")),v(2),ne(e.language("monthSaved")),v(2),ne(e.language("amountSaved")),v(3),ne(e.language("amountSavedInfo")),v(2),ne(e.language("finalValue"))}}function KX(n,t){if(1&n&&(b(0,"tr",49)(1,"td"),O(2),w(),b(3,"td"),O(4),w(),b(5,"td"),O(6),w(),b(7,"td"),O(8),w(),b(9,"td"),O(10),w(),b(11,"td"),O(12),w()()),2&n){const e=t.$implicit,i=_(2);v(2),Ng("",e.month,"/",e.year," ",i.language("projectAt")," ",e.calculatedDate,""),v(2),ki("",i.currency," ",null==e.monthProfit?null:e.monthProfit.toFixed(2),""),v(2),ki("",i.currency," ",null==e.interest?null:e.interest.toFixed(2),""),v(2),ki("",i.currency," ",null==e.monthlyValue?null:e.monthlyValue.toFixed(2),""),v(2),ki("",i.currency," ",null==e.amountSaved?null:e.amountSaved.toFixed(2),""),v(2),ki("",i.currency," ",null==e.finalValue?null:e.finalValue.toFixed(2),"")}}function qX(n,t){if(1&n&&(b(0,"div",45)(1,"h4"),F(2,"i",54),O(3),b(4,"label",50),O(5),w()(),b(6,"p-table",55),S(7,GX,19,8,"ng-template",47),S(8,KX,13,14,"ng-template",48),w()()),2&n){const e=_();v(3),Le(" ",e.language("resultsTitleTable")," "),v(1),m("ngStyle",oe(4,Kk,null==e.lastSimulation?null:e.lastSimulation.color)),v(1),Le('"',null==e.lastSimulation?null:e.lastSimulation.name,'"'),v(1),m("value",e.list)}}let YX=(()=>{class n{constructor(){this.months=60,this.currency="R$",this.monthProfitObjetive=null,this.name="n# 1",this.color="#42A5F5",this.initValue=500,this.monthlyValue=100,this.annualValue=0,this.monthlyIncresase=0,this.annualIncresase=0,this.interestTax=.008,this.lastSimulation=null,this.list=[],this.list_comparison=[],this.lst_dates=[],this.languages=[],this.dictionary={eng:{investmentSimulator:"Investment Simulator",configuration:"Configuration",months:"Months",currency:"Currency",monthProfit:"Month profit Objective",monthProfitInfo:"Inform the objective that the system will prioritize in the calculation",comparison:"Comparison",simulation:"Simulation",name:"Name",color:"Color",interestTax:"Interest Tax",interestTaxInfo:"Decimal value [0, 1]",initialValue:"Initial Value",monthlySaved:"Monthly Saved",annualSaved:"Annual Saved",annualSavedInfo:"Enter a value for each year-end savings",monthlyIncreaseDecrese:"Monthly Increase/Decrese",annualIncresaseDecrese:"Annual Incresase/Decrese",clear:"Clear",resultsTitleTable:"Result from simulation",monthYear:"Month/Year",projectAt:"projected at",monthProfitColumn:"Month Profit",monthProfitColumnInfo:"amount received as interest",savedInterest:"Saved+Interest",monthSaved:"Monthly Saved",amountSaved:"Amount saved",amountSavedInfo:"Total saved without considering income",finalValue:"Final Value",alertBreakCalculate:"You will never reach your objective with these inputs!",calculate:"Calculate!"},"pt-br":{investmentSimulator:"Simulador de investimentos",configuration:"Configura\xe7\xe3o",months:"Meses",currency:"Moeda",monthProfit:"Objetivo de Rendimento por m\xeas",monthProfitInfo:"Informe o objetivo de rendimento por m\xeas que o sistema deve priorizar no calculo.",comparison:"Compara\xe7\xe3o",simulation:"Simula\xe7\xe3o",name:"Nome",color:"Cor",interestTax:"Rendimento por m\xeas",interestTaxInfo:"Valor decimal entre 0 e 1",initialValue:"Valor inicial",monthlySaved:"Aporte por m\xeas",annualSaved:"Aporte no final do ano",annualSavedInfo:"Valor extra guardado ao final de cada ano",monthlyIncreaseDecrese:"Ajuste no montante mensal",annualIncresaseDecrese:"Ajuste no montante anualmente",clear:"Limpar",resultsTitleTable:"Resultado da simula\xe7\xe3o",monthYear:"M\xeas/Ano",projectAt:"proje\xe7\xe3o",monthProfitColumn:"Rendimentos no m\xeas",monthProfitColumnInfo:"Valor recebido via rendimento",savedInterest:"Valor Guardado+Rendimento",monthSaved:"Aporte",amountSaved:"Total guardado",amountSavedInfo:"Total guardado sem considerar rendimentos",finalValue:"Valor Final",alertBreakCalculate:"Voc\xea nunca alcan\xe7ar\xe1 seus objetivos com essa configura\xe7\xe3o!",calculate:"Calcular!"}}}ngOnInit(){this.languages=[{name:"English",code:"eng",currency:"US$"},{name:"Portugu\xeas",code:"pt-br",currency:"R$"}],this.selectedLanguage=this.languages.find(e=>"pt-br"==e.code)}calculate(){this.list=[];let e=this.initValue,i=e,r=0,s=this.monthlyValue,o=0;for(let c=1;c<=this.months||null!=this.monthProfitObjetive&&o<this.monthProfitObjetive;c++){o=e*this.interestTax;var a=0;c%12==0&&(a=this.annualValue);let u=e+o;e=u+s+a,i+=s+a;var l=new Date;l.setMonth(l.getMonth()+c);let p={month:c,year:r,calculatedDate:l.getMonth()+1+"/"+l.getFullYear(),interest:u,finalValue:e,amountSaved:i,monthlyValue:s+a,monthProfit:o};if(c%12==0&&(r++,s+=this.annualIncresase),s+=this.monthlyIncresase,this.list.push(p),r>100){alert(this.language("alertBreakCalculate"));break}}this.lastSimulation={month:this.months,currency:this.currency,name:this.name,color:this.color,initValue:this.initValue,monthlyValue:this.monthlyValue,monthlyIncresase:this.monthlyIncresase,annualIncresase:this.annualIncresase,interestTax:this.interestTax,list:this.list},this.list_comparison.push(this.lastSimulation),this.updateChart(),this.nextComparison()}clear(){this.name="n# 1",this.comparisons=null,this.list_comparison=[],this.list=[],this.lastSimulation=""}nextComparison(){this.name="n# "+(this.list_comparison.length+1),this.color="#"+Math.floor(16777215*Math.random()).toString(16)}updateChart(){this.lst_dates=[];for(var e=0,i=1;i<this.months;i++)this.lst_dates.push(i+"/"+e),i%12==0&&e++;this.comparisons={labels:this.lst_dates,datasets:[]},this.list_comparison.forEach(r=>{this.comparisons.datasets.push({label:r.name,data:r.list.map(s=>s.interest),fill:!1,borderColor:r.color,tension:.4})})}edit(e){this.list_comparison=this.list_comparison.filter(i=>i.name!=e.name),this.currency=e.currency,this.name=e.name,this.color=e.color,this.initValue=e.initValue,this.monthlyValue=e.monthlyValue,this.monthlyIncresase=e.monthlyIncresase,this.annualIncresase=e.annualIncresase,this.interestTax=e.interestTax,this.list=[],this.lastSimulation=null,this.updateChart()}copy(e){this.currency=e.currency,this.name=e.name,this.color=e.color,this.initValue=e.initValue,this.monthlyValue=e.monthlyValue,this.monthlyIncresase=e.monthlyIncresase,this.annualIncresase=e.annualIncresase,this.interestTax=e.interestTax,this.list=[],this.lastSimulation=null}remove(e){this.list_comparison=this.list_comparison.filter(i=>i.name!=e.name),this.updateChart()}language(e){return this.dictionary[this.selectedLanguage.code][e]}onChangeLanguage(e){var i;this.currency=null===(i=e?.value)||void 0===i?void 0:i.currency}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Se({type:n,selectors:[["app-interest-simulator"]],decls:96,vars:44,consts:[[1,"grid",2,"padding-top","20px","padding-left","40px"],["optionLabel","name","placeholder","Select a language",3,"options","ngModel","showClear","ngModelChange","onChange"],[1,"col-12"],[2,"padding-top","30px"],[1,"fas","fa-chart-line",2,"padding-right","20px"],[1,"grid"],[1,"lg:col-6","md:col-12"],[1,"fas","fa-cogs"],[1,"grid","p-fluid"],[1,"field","col-4"],["for","months"],[1,"fas","fa-calendar-alt"],["inputId","months",3,"ngModel","ngModelChange"],["for","currency"],[1,"fas","fa-money-bill"],["pInputText","","type","text","pInputText","",3,"ngModel","ngModelChange"],[1,"field","col-6"],["for","monthProfitObjetive"],["inputId","monthProfitObjetive",3,"ngModel","ngModelChange"],["for","name"],[1,"fas","fa-tag"],["type","text","pInputText","","id","name",3,"ngModel","ngModelChange"],["for","color"],["inputId","color",3,"ngModel","ngModelChange"],["for","interestTax"],["inputId","interestTax","mode","decimal",3,"ngModel","maxFractionDigits","min","max","ngModelChange"],["for","initValue"],[1,"fas","fa-piggy-bank"],["inputId","initValue","mode","decimal",3,"ngModel","min","ngModelChange"],["for","monthlyValue"],[1,"fas","fa-hand-holding-usd"],["inputId","monthlyValue","mode","decimal",3,"ngModel","ngModelChange"],["for","annualValue"],["inputId","annualValue","mode","decimal",3,"ngModel","ngModelChange"],["for","monthlyIncresase"],["inputId","monthlyIncresase","mode","decimal",3,"ngModel","ngModelChange"],["for","annualIncresase"],["inputId","annualIncresase","mode","decimal",3,"ngModel","ngModelChange"],[1,"field","col-3"],["icon","fas fa-calculator","iconPos","left",3,"label","click"],[1,"fas","fa-balance-scale-right"],["icon","fas fa-eraser","iconPos","left",3,"label","click"],["type","line",3,"data"],["class","field col-12",4,"ngIf"],[3,"adClient","pageLevelAds"],[1,"field","col-12"],["styleClass","p-datatable-sm",3,"value"],["pTemplate","header"],["pTemplate","body"],[2,"font-size","12px"],[3,"ngStyle"],["icon","fas fa-edit fa-sm","iconPos","left",1,"p-button-sm",3,"click"],["icon","fas fa-copy fa-sm","iconPos","left",1,"p-button-sm",3,"click"],["icon","fas fa-trash fa-sm","iconPos","left",1,"p-button-xsm",3,"click"],[1,"fas","fa-list-ol"],["styleClass","p-datatable-sm p-datatable-striped",3,"value"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"p-dropdown",1),R("ngModelChange",function(s){return i.selectedLanguage=s})("onChange",function(s){return i.onChangeLanguage(s)}),w(),F(2,"br"),b(3,"div",2)(4,"h2",3),F(5,"i",4),O(6),w(),b(7,"div",5)(8,"div",6)(9,"h4"),F(10,"i",7),O(11),w(),b(12,"div",8)(13,"div",9)(14,"label",10),F(15,"i",11),O(16),w(),b(17,"p-inputNumber",12),R("ngModelChange",function(s){return i.months=s}),w()(),b(18,"div",9)(19,"label",13),F(20,"i",14),O(21),w(),b(22,"input",15),R("ngModelChange",function(s){return i.currency=s}),w()(),F(23,"div",9),b(24,"div",16)(25,"label",17),F(26,"i",14),O(27),w(),b(28,"p-inputNumber",18),R("ngModelChange",function(s){return i.monthProfitObjetive=s}),w(),F(29,"br"),b(30,"small"),O(31),w()()(),b(32,"h4"),F(33,"i",7),O(34),w(),b(35,"div",8)(36,"div",9)(37,"label",19),F(38,"i",20),O(39),w(),b(40,"input",21),R("ngModelChange",function(s){return i.name=s}),w()(),b(41,"div",9)(42,"label",22),O(43),w(),F(44,"br"),b(45,"p-colorPicker",23),R("ngModelChange",function(s){return i.color=s}),w()(),b(46,"div",9)(47,"label",24),O(48),w(),b(49,"p-inputNumber",25),R("ngModelChange",function(s){return i.interestTax=s}),w(),F(50,"br"),b(51,"small"),O(52),w(),F(53,"br"),b(54,"small"),O(55),w()(),b(56,"div",9)(57,"label",26),F(58,"i",27),O(59),w(),b(60,"p-inputNumber",28),R("ngModelChange",function(s){return i.initValue=s}),w()(),b(61,"div",9)(62,"label",29),F(63,"i",30),O(64),w(),b(65,"p-inputNumber",31),R("ngModelChange",function(s){return i.monthlyValue=s}),w()(),b(66,"div",9)(67,"label",32),F(68,"i",30),O(69),w(),b(70,"p-inputNumber",33),R("ngModelChange",function(s){return i.annualValue=s}),w(),F(71,"br"),b(72,"small"),O(73),w()(),b(74,"div",9)(75,"label",34),O(76),w(),b(77,"p-inputNumber",35),R("ngModelChange",function(s){return i.monthlyIncresase=s}),w()(),b(78,"div",9)(79,"label",36),O(80),w(),b(81,"p-inputNumber",37),R("ngModelChange",function(s){return i.annualIncresase=s}),w()()(),b(82,"div",38)(83,"p-button",39),R("click",function(){return i.calculate()}),w()()(),b(84,"div",6)(85,"h4"),F(86,"i",40),O(87),w(),b(88,"div",38)(89,"p-button",41),R("click",function(){return i.clear()}),w()(),F(90,"p-chart",42),S(91,WX,4,1,"div",43),w()(),S(92,qX,9,6,"div",43),F(93,"br")(94,"br")(95,"ng-adsense",44),w()()),2&e&&(v(1),m("options",i.languages)("ngModel",i.selectedLanguage)("showClear",!1),v(5),Le(" ",i.language("investmentSimulator"),""),v(5),Le(" ",i.language("configuration"),""),v(5),Le(" ",i.language("months"),":"),v(1),m("ngModel",i.months),v(4),Le(" ",i.language("currency"),":"),v(1),m("ngModel",i.currency),v(5),Le(" ",i.language("monthProfit"),":"),v(1),m("ngModel",i.monthProfitObjetive),v(3),ne(i.language("monthProfitInfo")),v(3),Le(" ",i.language("simulation"),""),v(5),Le(" ",i.language("name"),":"),v(1),m("ngModel",i.name),v(3),Le("",i.language("color"),":"),v(2),m("ngModel",i.color),v(3),Le("",i.language("interestTax"),":"),v(1),m("ngModel",i.interestTax)("maxFractionDigits",4)("min",0)("max",1),v(3),Le("",i.language("interestTaxInfo"),"."),v(3),Le("",100*i.interestTax,"%"),v(4),Le(" ",i.language("initialValue"),":"),v(1),m("ngModel",i.initValue)("min",0),v(4),Le(" ",i.language("monthlySaved"),":"),v(1),m("ngModel",i.monthlyValue),v(4),Le(" ",i.language("annualSaved"),":"),v(1),m("ngModel",i.annualValue),v(3),Le("",i.language("annualSavedInfo"),"."),v(3),Le("",i.language("monthlyIncreaseDecrese"),":"),v(1),m("ngModel",i.monthlyIncresase),v(3),Le("",i.language("monthlyIncreaseDecrese"),":"),v(1),m("ngModel",i.annualIncresase),v(2),m("label",i.language("calculate")),v(4),Le(" ",i.language("comparison"),""),v(2),m("label",i.language("clear")),v(1),m("data",i.comparisons),v(1),m("ngIf",null!=i.list_comparison&&i.list_comparison.length>0),v(1),m("ngIf",i.list.length>0),v(3),m("adClient","ca-pub-1469802245881557")("pageLevelAds",!0))},dependencies:[lt,ut,en,Gl,Jl,j_,ny,lh,IX,Wk,Kl,ql,Us,ac]}),n})();function QX(n,t){if(1&n&&(b(0,"div",10)(1,"div",11),F(2,"i"),w()()),2&n){const e=_();v(2),fe("p-dataview-loading-icon pi-spin "+e.loadingIcon)}}function ZX(n,t){1&n&&Y(0)}function XX(n,t){if(1&n&&(b(0,"div",12),gn(1),S(2,ZX,1,0,"ng-container",13),w()),2&n){const e=_();v(2),m("ngTemplateOutlet",e.headerTemplate)}}function JX(n,t){if(1&n){const e=Q();b(0,"p-paginator",14),R("onPageChange",function(r){return T(e),I(_().paginate(r))}),w()}if(2&n){const e=_();m("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)}}function eJ(n,t){1&n&&Y(0)}const tJ=function(n,t){return{$implicit:n,rowIndex:t}};function nJ(n,t){if(1&n&&S(0,eJ,1,0,"ng-container",15),2&n){const e=t.$implicit,i=t.index;m("ngTemplateOutlet",_().itemTemplate)("ngTemplateOutletContext",He(2,tJ,e,i))}}function iJ(n,t){if(1&n&&(pe(0),O(1),ge()),2&n){const e=_(2);v(1),Le(" ",e.emptyMessageLabel," ")}}function rJ(n,t){1&n&&Y(0,null,19)}function sJ(n,t){if(1&n&&(b(0,"div",16)(1,"div",17),S(2,iJ,2,1,"ng-container",18),S(3,rJ,2,0,"ng-container",13),w()()),2&n){const e=_();v(2),m("ngIf",!e.emptyMessageTemplate)("ngIfElse",e.emptyFilter),v(1),m("ngTemplateOutlet",e.emptyMessageTemplate)}}function oJ(n,t){if(1&n){const e=Q();b(0,"p-paginator",20),R("onPageChange",function(r){return T(e),I(_().paginate(r))}),w()}if(2&n){const e=_();m("rows",e.rows)("first",e.first)("totalRecords",e.totalRecords)("pageLinkSize",e.pageLinks)("alwaysShow",e.alwaysShowPaginator)("rowsPerPageOptions",e.rowsPerPageOptions)("dropdownAppendTo",e.paginatorDropdownAppendTo)("dropdownScrollHeight",e.paginatorDropdownScrollHeight)("templateLeft",e.paginatorLeftTemplate)("templateRight",e.paginatorRightTemplate)("currentPageReportTemplate",e.currentPageReportTemplate)("showFirstLastIcon",e.showFirstLastIcon)("dropdownItemTemplate",e.paginatorDropdownItemTemplate)("showCurrentPageReport",e.showCurrentPageReport)("showJumpToPageDropdown",e.showJumpToPageDropdown)("showPageLinks",e.showPageLinks)}}function aJ(n,t){1&n&&Y(0)}function lJ(n,t){if(1&n&&(b(0,"div",21),gn(1,1),S(2,aJ,1,0,"ng-container",13),w()),2&n){const e=_();v(2),m("ngTemplateOutlet",e.footerTemplate)}}const cJ=[[["p-header"]],[["p-footer"]]],uJ=function(n,t){return{"p-dataview p-component":!0,"p-dataview-list":n,"p-dataview-grid":t}},dJ=["p-header","p-footer"];let hJ=(()=>{class n{constructor(e,i,r,s){this.el=e,this.cd=i,this.filterService=r,this.config=s,this.pageLinks=5,this.paginatorPosition="bottom",this.alwaysShowPaginator=!0,this.paginatorDropdownScrollHeight="200px",this.currentPageReportTemplate="{currentPage} of {totalPages}",this.showFirstLastIcon=!0,this.showPageLinks=!0,this.emptyMessage="",this.onLazyLoad=new N,this.trackBy=(o,a)=>a,this.loadingIcon="pi pi-spinner",this.first=0,this.onPage=new N,this.onSort=new N,this.onChangeLayout=new N,this._layout="list"}get layout(){return this._layout}set layout(e){this._layout=e,this.initialized&&this.changeLayout(e)}ngOnInit(){this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.translationSubscription=this.config.translationObserver.subscribe(()=>{this.cd.markForCheck()}),this.initialized=!0}ngOnChanges(e){e.value&&(this._value=e.value.currentValue,this.updateTotalRecords(),!this.lazy&&this.hasFilter()&&this.filter(this.filterValue)),(e.sortField||e.sortOrder)&&(!this.lazy||this.initialized)&&this.sort()}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"listItem":this.listItemTemplate=e.template;break;case"gridItem":this.gridItemTemplate=e.template;break;case"paginatorleft":this.paginatorLeftTemplate=e.template;break;case"paginatorright":this.paginatorRightTemplate=e.template;break;case"paginatordropdownitem":this.paginatorDropdownItemTemplate=e.template;break;case"empty":this.emptyMessageTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template}}),this.updateItemTemplate()}updateItemTemplate(){switch(this.layout){case"list":this.itemTemplate=this.listItemTemplate;break;case"grid":this.itemTemplate=this.gridItemTemplate}}changeLayout(e){this._layout=e,this.onChangeLayout.emit({layout:this.layout}),this.updateItemTemplate(),this.cd.markForCheck()}updateTotalRecords(){this.totalRecords=this.lazy?this.totalRecords:this._value?this._value.length:0}paginate(e){this.first=e.first,this.rows=e.rows,this.lazy&&this.onLazyLoad.emit(this.createLazyLoadMetadata()),this.onPage.emit({first:this.first,rows:this.rows})}sort(){this.first=0,this.lazy?this.onLazyLoad.emit(this.createLazyLoadMetadata()):this.value&&(this.value.sort((e,i)=>{let r=U.resolveFieldData(e,this.sortField),s=U.resolveFieldData(i,this.sortField),o=null;return o=null==r&&null!=s?-1:null!=r&&null==s?1:null==r&&null==s?0:"string"==typeof r&&"string"==typeof s?r.localeCompare(s):r<s?-1:r>s?1:0,this.sortOrder*o}),this.hasFilter()&&this.filter(this.filterValue)),this.onSort.emit({sortField:this.sortField,sortOrder:this.sortOrder})}isEmpty(){let e=this.filteredValue||this.value;return null==e||0==e.length}createLazyLoadMetadata(){return{first:this.first,rows:this.rows,sortField:this.sortField,sortOrder:this.sortOrder}}getBlockableElement(){return this.el.nativeElement.children[0]}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation(vn.EMPTY_MESSAGE)}filter(e,i="contains"){if(this.filterValue=e,this.value&&this.value.length){let r=this.filterBy.split(",");this.filteredValue=this.filterService.filter(this.value,r,e,i,this.filterLocale),this.filteredValue.length===this.value.length&&(this.filteredValue=null),this.paginator&&(this.first=0,this.totalRecords=this.filteredValue?this.filteredValue.length:this.value?this.value.length:0),this.cd.markForCheck()}}hasFilter(){return this.filterValue&&this.filterValue.trim().length>0}ngOnDestroy(){this.translationSubscription&&this.translationSubscription.unsubscribe()}}return n.\u0275fac=function(e){return new(e||n)(M(ze),M(bt),M(v_),M(wr))},n.\u0275cmp=Se({type:n,selectors:[["p-dataView"]],contentQueries:function(e,i,r){if(1&e&&($t(r,wE,5),$t(r,CE,5),$t(r,en,4)),2&e){let s;ie(s=re())&&(i.header=s.first),ie(s=re())&&(i.footer=s.first),ie(s=re())&&(i.templates=s)}},hostAttrs:[1,"p-element"],inputs:{paginator:"paginator",rows:"rows",totalRecords:"totalRecords",pageLinks:"pageLinks",rowsPerPageOptions:"rowsPerPageOptions",paginatorPosition:"paginatorPosition",alwaysShowPaginator:"alwaysShowPaginator",paginatorDropdownAppendTo:"paginatorDropdownAppendTo",paginatorDropdownScrollHeight:"paginatorDropdownScrollHeight",currentPageReportTemplate:"currentPageReportTemplate",showCurrentPageReport:"showCurrentPageReport",showJumpToPageDropdown:"showJumpToPageDropdown",showFirstLastIcon:"showFirstLastIcon",showPageLinks:"showPageLinks",lazy:"lazy",emptyMessage:"emptyMessage",style:"style",styleClass:"styleClass",trackBy:"trackBy",filterBy:"filterBy",filterLocale:"filterLocale",loading:"loading",loadingIcon:"loadingIcon",first:"first",sortField:"sortField",sortOrder:"sortOrder",value:"value",layout:"layout"},outputs:{onLazyLoad:"onLazyLoad",onPage:"onPage",onSort:"onSort",onChangeLayout:"onChangeLayout"},features:[Zt],ngContentSelectors:dJ,decls:11,vars:19,consts:[[3,"ngClass","ngStyle"],["class","p-dataview-loading",4,"ngIf"],["class","p-dataview-header",4,"ngIf"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","dropdownAppendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","onPageChange",4,"ngIf"],[1,"p-dataview-content"],[1,"p-grid","p-nogutter","grid","grid-nogutter"],["ngFor","",3,"ngForOf","ngForTrackBy"],["class","p-col col",4,"ngIf"],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","dropdownAppendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","onPageChange",4,"ngIf"],["class","p-dataview-footer",4,"ngIf"],[1,"p-dataview-loading"],[1,"p-dataview-loading-overlay","p-component-overlay"],[1,"p-dataview-header"],[4,"ngTemplateOutlet"],["styleClass","p-paginator-top",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","dropdownAppendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","onPageChange"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[1,"p-col","col"],[1,"p-dataview-emptymessage"],[4,"ngIf","ngIfElse"],["emptyFilter",""],["styleClass","p-paginator-bottom",3,"rows","first","totalRecords","pageLinkSize","alwaysShow","rowsPerPageOptions","dropdownAppendTo","dropdownScrollHeight","templateLeft","templateRight","currentPageReportTemplate","showFirstLastIcon","dropdownItemTemplate","showCurrentPageReport","showJumpToPageDropdown","showPageLinks","onPageChange"],[1,"p-dataview-footer"]],template:function(e,i){1&e&&(ci(cJ),b(0,"div",0),S(1,QX,3,2,"div",1),S(2,XX,3,1,"div",2),S(3,JX,1,16,"p-paginator",3),b(4,"div",4)(5,"div",5),S(6,nJ,1,5,"ng-template",6),function eS(n,t){const e=Ve();let i;const r=n+22;e.firstCreatePass?(i=function v3(n,t){if(t)for(let e=t.length-1;e>=0;e--){const i=t[e];if(n===i.name)return i}}(t,e.pipeRegistry),e.data[r]=i,i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(r,i.onDestroy)):i=e.data[r];const s=i.factory||(i.factory=Ts(i.type)),o=si(M);try{const a=pu(!1),l=s();return pu(a),function CN(n,t,e,i){e>=n.data.length&&(n.data[e]=null,n.blueprint[e]=null),t[e]=i}(e,B(),r,l),l}finally{si(o)}}(7,"slice"),S(8,sJ,4,3,"div",7),w()(),S(9,oJ,1,16,"p-paginator",8),S(10,lJ,3,1,"div",9),w()),2&e&&(fe(i.styleClass),m("ngClass",He(16,uJ,"list"===i.layout,"grid"===i.layout))("ngStyle",i.style),v(1),m("ngIf",i.loading),v(1),m("ngIf",i.header||i.headerTemplate),v(1),m("ngIf",i.paginator&&("top"===i.paginatorPosition||"both"==i.paginatorPosition)),v(3),m("ngForOf",i.paginator?function tS(n,t,e,i,r){const s=n+22,o=B(),a=bo(o,s);return function bl(n,t){return n[1].data[t].pure}(o,s)?Z1(o,En(),t,a.transform,e,i,r,a):a.transform(e,i,r)}(7,12,i.filteredValue||i.value,i.lazy?0:i.first,(i.lazy?0:i.first)+i.rows):i.filteredValue||i.value)("ngForTrackBy",i.trackBy),v(2),m("ngIf",i.isEmpty()),v(1),m("ngIf",i.paginator&&("bottom"===i.paginatorPosition||"both"==i.paginatorPosition)),v(1),m("ngIf",i.footer||i.footerTemplate))},dependencies:[_t,fi,lt,on,ut,vI,DD],styles:[".p-dataview{position:relative}.p-dataview .p-dataview-loading-overlay{position:absolute;display:flex;align-items:center;justify-content:center;z-index:2}\n"],encapsulation:2,changeDetection:0}),n})(),qk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We,cn,bI,cn]}),n})();function fJ(n,t){if(1&n&&(b(0,"span")(1,"a",21),F(2,"i",22),O(3," Github Repository "),w()()),2&n){const e=_().$implicit;v(1),m("href",e.link,Po)}}function pJ(n,t){if(1&n&&(b(0,"div",9)(1,"div",10)(2,"div",11)(3,"div"),F(4,"i",12),b(5,"span",13),O(6),w()(),b(7,"span"),O(8),w()(),b(9,"div",14),F(10,"p-avatar",15),b(11,"div",16),O(12),w(),b(13,"div",17),O(14),w()(),b(15,"div",18)(16,"span",19),O(17),w(),S(18,fJ,4,1,"span",20),w()()()),2&n){const e=t.$implicit;v(6),ne(e.version),v(1),fe("project-badge status-"+e.status.toLowerCase()),v(1),ne(e.status),v(2),m("image",e.image),v(2),ne(e.name),v(2),ne(e.description),v(3),ne(e.releaseDate),v(1),m("ngIf",null!=e.link)}}let gJ=(()=>{class n{constructor(){this.projects=[],this.projects=[{name:"GitVersion",image:"../../../assets/images/git.png",download:"./distribuitions/v1.2.2 - GitVersion.jar",version:"v1.2.2",description:"Version Administrator.",status:"Discontinued",releaseDate:"22 ago 2016"},{name:"RNA-Scripted",image:"../../../assets/images/rna.png",download:null,version:"v0.1",description:"RNA Configurable by script, only for academic use.",status:"Discontinued",releaseDate:"10 march 2017"},{name:"PCMaker",image:"../../../assets/images/pcmaker.png",download:null,version:"v1.0.1",description:"Optimize PC components in your purchase.",status:"Discontinued",releaseDate:"19 july 2018"},{name:"ExecuteJMetal",type:"Open Source",image:"../../../assets/images/exejM.PNG",link:"https://github.com/LucasLP/ExecuteJMetal",download:null,version:"v1.1",description:"Script for statistical test in Multi-Objective Evolutionary Algorithms.",status:"Discontinued",releaseDate:"18 march 2019"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Se({type:n,selectors:[["app-projects"]],decls:13,vars:5,consts:[[1,"grid",2,"padding-top","50px"],[1,"col-2"],[1,"col-8"],["align","center"],[1,"card"],["filterBy","name","layout","grid",3,"value","paginator","rows"],["dv",""],["pTemplate","gridItem"],[3,"adClient","pageLevelAds"],[1,"col-12","md:col-4"],[1,"project-grid-item","card"],[1,"project-grid-item-top"],[1,"pi","pi-tag","project-category-icon"],[1,"project-category"],[1,"project-grid-item-content"],["shape","circle","size","large",1,"centerPainel",3,"image"],[1,"project-name"],[1,"project-description"],[1,"project-grid-item-bottom"],[1,"project-date"],[4,"ngIf"],[3,"href"],[1,"fab","fa-github"]],template:function(e,i){1&e&&(b(0,"div",0),F(1,"div",1),b(2,"div",2)(3,"h2",3),O(4,"My old projects"),w(),b(5,"div",4)(6,"p-dataView",5,6),S(8,pJ,19,9,"ng-template",7),w()(),F(9,"br")(10,"br")(11,"ng-adsense",8),w(),F(12,"div",1),w()),2&e&&(v(6),m("value",i.projects)("paginator",!0)("rows",9),v(5),m("adClient","ca-pub-1469802245881557")("pageLevelAds",!0))},dependencies:[lt,en,dI,hJ,ac],styles:["[_nghost-%COMP%] .p-dropdown{width:14rem;font-weight:400}[_nghost-%COMP%] .project-name{font-size:1.5rem;font-weight:700}[_nghost-%COMP%] .project-description{margin:0 0 1rem}[_nghost-%COMP%] .project-category-icon{vertical-align:middle;margin-right:.5rem}[_nghost-%COMP%] .project-category{font-weight:600;vertical-align:middle}[_nghost-%COMP%] .project-list-item{display:flex;align-items:center;padding:1rem;width:100%}[_nghost-%COMP%] .project-list-item img{width:150px;box-shadow:0 3px 6px #00000029,0 3px 6px #0000003b;margin-right:2rem}[_nghost-%COMP%] .project-list-item .project-list-detail{flex:1 1 0}[_nghost-%COMP%] .project-list-item .p-rating{margin:0 0 .5rem}[_nghost-%COMP%] .project-list-item .project-date{font-size:11px;margin-bottom:.5rem;align-self:flex-end}[_nghost-%COMP%] .project-list-item .project-list-action{display:flex;flex-direction:column}[_nghost-%COMP%] .project-list-item .p-button{margin-bottom:.5rem}[_nghost-%COMP%] .project-grid-item{margin:.5em;border:1px solid var(--surface-border)}[_nghost-%COMP%] .project-grid-item .project-grid-item-top, [_nghost-%COMP%] .project-grid-item .project-grid-item-bottom{display:flex;align-items:center;justify-content:space-between}[_nghost-%COMP%] .project-grid-item img{width:75%;box-shadow:0 3px 6px #00000029,0 3px 6px #0000003b;margin:2rem 0}[_nghost-%COMP%] .project-grid-item .project-grid-item-content{text-align:center}[_nghost-%COMP%] .project-grid-item .project-date{font-size:12px}@media screen and (max-width: 576px){[_nghost-%COMP%] .project-list-item{flex-direction:column;align-items:center}[_nghost-%COMP%] .project-list-item img{width:75%;margin:2rem 0}[_nghost-%COMP%] .project-list-item .project-list-detail{text-align:center}[_nghost-%COMP%] .project-list-item .project-price{align-self:center}[_nghost-%COMP%] .project-list-item .project-list-action{display:flex;flex-direction:column}[_nghost-%COMP%] .project-list-item .project-list-action{margin-top:2rem;flex-direction:row;justify-content:space-between;align-items:center;width:100%}}.status[_ngcontent-%COMP%]{font-weight:700}.status-discontinued[_ngcontent-%COMP%]{background-color:#ff9f9f}.status-stopped[_ngcontent-%COMP%]{background-color:#fffd9f}.status-inDev[_ngcontent-%COMP%]{background-color:#a1ffb9}"]}),n})(),mJ=(()=>{class n{constructor(){}describePossibilities(e){var i=[{key:"possibleGamesOfGo",value:Math.pow(10,360),description:"x Possible games of Go (estimated game-tree complexity)"},{key:"possibleConfigurationsOfTheUniverse",value:Math.pow(10,250),description:"x Possible configurations of the observable universe"},{key:"possibleChessGames",value:Math.pow(10,120),description:"x Possible chess games (Shannon number)"},{key:"googolplex",value:Math.pow(10,Math.pow(10,100)),description:"x Googolplex (i.e. 10^10^100)"},{key:"googol",value:Math.pow(10,100),description:"x Googol (i.e. 10^100)"},{key:"possibleStatesOfAChessboard",value:Math.pow(10,92),description:"x Possible states of a chessboard after 40 moves"},{key:"estimatedQuarksInTheObservableUniverse",value:Math.pow(10,88),description:"x Estimated quarks in the observable universe"},{key:"estimatedNeutrinosInTheObservableUniverse",value:Math.pow(10,87),description:"x Estimated neutrinos in the observable universe"},{key:"estimatedAtomsInTheObservableUniverse",value:Math.pow(10,85),description:"x Estimated atoms in the observable universe"},{key:"estimatedStarsInTheUniverse",value:Math.pow(10,82),description:"x Estimated stars in the observable universe"},{key:"atomsInObservableUniverse",value:3.28*Math.pow(10,80),description:"x Atoms in Observable Universe"},{key:"possibleWaysToArrangeStandardDeckOfCards",value:Math.pow(10,68),description:"x Possible ways to arrange a standard deck of cards"},{key:"atomsInMilkWay",value:2.4*Math.pow(10,67),description:"x Atoms in Milky Way"},{key:"atomsInSolarSystem",value:1.2*Math.pow(10,56),description:"x Atoms in Solar System"},{key:"atomsInEarth",value:1.33*Math.pow(10,50),description:"x Atoms in Earth"},{key:"cellsInEarth",value:Math.pow(10,40),description:"x Cells on Earth"},{key:"bacteriaOnEarth",value:Math.pow(10,30),description:"x Bacteria on Earth"},{key:"particlesInLargeHadronCollider",value:Math.pow(10,29),description:"x Particles collided in the Large Hadron Collider"},{key:"atomsInHumanBody",value:Math.pow(10,27),description:"x Atoms in the human body"},{key:"airMoleculesInRoom",value:Math.pow(10,25),description:"x Air molecules in an average-sized room"},{key:"bytesOnTheInternet",value:Math.pow(10,24),description:"x Bytes of information on the Internet"},{key:"mol",value:6.02*Math.pow(10,23),description:"x Mol"},{key:"starsInObservableUniverse",value:100*Math.pow(10,22),description:"x Stars in the observable universe"},{key:"sandGraind",value:7.5*Math.pow(10,18),description:"x Sand Grain on Eearth"},{key:"wordsSpokenByHumans",value:Math.pow(10,16),description:"x Words spoken by all humans in history"},{key:"antsOnEarth",value:20*Math.pow(10,15),description:"x Ants on Earth"},{key:"fishInOceans",value:3*Math.pow(10,13),description:"x Fish in the world's oceans"},{key:"humanCells",value:30*Math.pow(10,12),description:"x Cells in human body"},{key:"emailsSentPerDay",value:306*Math.pow(10,9),description:"x Emails sent per day worldwide"},{key:"tweetsPerDay",value:500*Math.pow(10,6),description:"x Tweets sent per day on Twitter"},{key:"humanHair",value:15e4,description:"x Strands of hair"},{key:"",value:1,description:""}],r="";for(let s of i)if(e>=s.value){r=(e/s.value).toFixed(0)+s.description;break}return r}calculateTime(e,i){var r=e/(i/1e9),s=e/(i/1e3),o=e/i,a=o/60,l=a/60,c=l/24,u=c/365,d="",h=[{key:"boltzmannBrain",value:Math.pow(10,Math.pow(10,50)),description:"x Estimated time for a Boltzmann Brain appear in vaccum"},{key:"nucleonsDecay",value:Math.pow(10,200),description:"x Highest time for all nucleons decay"},{key:"supermassiveBlackHoleDecay",value:Math.pow(10,106),description:"x Supermassive Black Hole (20T sun mass) decays by Hawking radiation"},{key:"supermassiveBlackHoleDecay",value:Math.pow(10,99),description:"x Supermassive Black Hole (66B sun mass) decays by Hawking radiation"},{key:"blackHoleDecay",value:Math.pow(10,66),description:"x Black Hole (1 sun mass) decays by Hawking radiation"},{key:"protonDecay",value:Math.pow(10,36),description:"x Proton Decay Time"},{key:"redwarfs",value:Math.pow(10,13),description:"x Lifetime of red dwarfs"},{key:"tyears",value:Math.pow(10,12),description:"x Trillions years"},{key:"universe",value:1.38*Math.pow(10,10),description:"x Age of the Universe"},{key:"byears",value:Math.pow(10,9),description:"x billions years"},{key:"myears",value:Math.pow(10,6),description:"x million years"},{key:"humanCulturalHistory",value:Math.pow(10,4),description:"x Duration of recorded human cultural history"}];for(let f of h)if(u>1&&u>=f.value){d=(u/f.value).toFixed(0)+f.description;break}return""==d&&(d=u>1?this.round(u)+" years and "+this.round(u%1*365)+" days":c>1?this.round(c)+" days and "+this.round(c%1*24)+" hours":l>1?this.round(l)+" hours and "+this.round(l%1*60)+" minutes":a>1?this.round(a)+" minutes and "+this.round(a%1*60)+" seconds":o>1?this.round(o,1)+" seconds":s>1?this.round(s)+" milliseconds":this.round(r)+" nanoseconds"),d}calculateCost(e,i){var s="";for(let o of[{key:"worldGdp",value:98e12,description:"x World GDP (2022, 98T)"},{key:"chinaGdp",value:167681e8,description:"x China GDP (2022, $16.77 trillion)"},{key:"germanyGdp",value:4223e9,description:"x Germany GDP (2022, 4,2T)"},{key:"appleMarketCap",value:27e11,description:"x Apple Market Cap (2022, $2.7 trillion)"},{key:"cryptocurrencyMarketCap",value:22e11,description:"x Cryptocurrency Market Cap (2022, $2.2 trillion)"},{key:"jeffBezosFortune",value:193e9,description:"x Jeff Bezos Fortune (2022, $193 billion)"},{key:"techUnicornsTotalValuation",value:5e12,description:"x Total Valuation of Top Tech Unicorns (estimated, $5 trillion)"},{key:"taiwanGdp",value:85e10,description:" x Taiwan GDP (2022, 850b)"},{key:"elonMuskFortune",value:181e9,description:"x Elon Msuk Fortune (2022 181b)"},{key:"nasaBudget",value:25e9,description:"x NASA Budget (2022, $25 billion)"},{key:"billion",value:1e9,description:" Billions"},{key:"million",value:1e6,description:" Millions"},{key:"ferrariValue",value:372e3,description:"x Ferrari 296 GTS"},{key:"",value:0,description:""}])if(e>=o.value){""==o.key?(s=i+" ",s+=""==o.description?this.round(0==o.value?e:e/o.value,2):this.round(e/o.value,0)+o.description):s=(e/o.value).toFixed(0)+o.description;break}return s}round(e,i=0){return Number.parseFloat(e.toString()).toFixed(i)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function _J(n,t){1&n&&(b(0,"tr")(1,"th"),F(2,"i",7),O(3," N. Cities"),w(),b(4,"th"),F(5,"i",36),O(6," N. Possibilities"),w(),b(7,"th"),F(8,"i",37),O(9," Time"),w(),b(10,"th"),F(11,"i",38),O(12," Cost"),w()())}function yJ(n,t){if(1&n&&(b(0,"tr")(1,"td"),O(2),w(),b(3,"td"),O(4),w(),b(5,"td"),O(6),w(),b(7,"td"),O(8),w()()),2&n){const e=t.$implicit;v(2),ne(e.ncities),v(2),ne(e.nposs),v(2),ne(e.time),v(2),ne(e.cost)}}let vJ=(()=>{class n{constructor(e){this.tspService=e,this.cities=100,this.currency="US$",this.kwHour=.81,this.cpuGHZ=3.5,this.cores=8,this.tdp=25,this.parallelCPUs=1,this.list=[]}ngOnInit(){}calculate(){this.list=[];for(var e=1,i=1e6*this.cpuGHZ*this.cores*this.parallelCPUs,r=1;r<=this.cities;r++){var s=(e*=r)/(60*i*60)*(this.tdp*this.parallelCPUs)*this.kwHour,o={ncities:r,nposs:this.tspService.describePossibilities(e),time:this.tspService.calculateTime(e,i),cost:this.tspService.calculateCost(s,this.currency)};this.list.push(o)}}}return n.\u0275fac=function(e){return new(e||n)(M(mJ))},n.\u0275cmp=Se({type:n,selectors:[["app-tsp-calculator"]],decls:67,vars:11,consts:[[1,"grid"],[1,"col-1"],[1,"col-10"],[1,"grid","p-fluid"],[2,"padding-top","30px"],[1,"field","col-3"],["for","ncities"],[1,"fas","fa-map-marked"],["inputId","ncities",3,"ngModel","ngModelChange"],["for","currency"],[1,"far","fa-money-bill-alt"],["pInputText","","type","text","pInputText","",3,"ngModel","disabled","ngModelChange"],["for","kwHour"],[1,"fas","fa-plug"],["inputId","kwHour","mode","decimal",3,"ngModel","ngModelChange"],[1,"fas","fa-server"],["for","parallelCPUs"],[1,"fas","fa-network-wired"],["inputId","parallelCPUs",3,"ngModel","ngModelChange"],[1,"field","col-9"],["for","cpuGHZ"],[1,"fas","fa-tachometer-alt"],["inputId","cpuGHZ","mode","decimal",3,"ngModel","ngModelChange"],["for","cores"],[1,"fas","fa-microchip"],["inputId","cores",3,"ngModel","ngModelChange"],["for","tdp"],[1,"fas","fa-car-battery"],["inputId","tdp","mode","decimal",3,"ngModel","ngModelChange"],["label","Calculate!","icon","fas fa-calculator","iconPos","left",3,"click"],[1,"field","col-11"],[1,"field","col-10"],[3,"value"],["pTemplate","header"],["pTemplate","body"],[3,"adClient","pageLevelAds"],[1,"fas","fa-list-ol"],[1,"fas","fa-hourglass-start"],[1,"fas","fa-money-check-alt"]],template:function(e,i){1&e&&(b(0,"div",0),F(1,"div",1),b(2,"div",2)(3,"div",3)(4,"h2",4),O(5,"TSP Brute Force Time Consumption Calculator"),w(),b(6,"p"),O(7," Calculates the n\xba possibilities, time and energy expenditure used to calculate the optimal solution to a non-polynomial problem by brute force "),w(),b(8,"p"),O(9,'The Traveling Salesman Problem (TSP) is a classic problem in computer science and mathematics that asks the following question: "Given a list of cities and the distances between each pair of cities, what is the shortest possible route that visits each city exactly once and returns to the original city?" The problem is known for its simple description but its complex computational nature, as finding the optimal solution becomes increasingly difficult as the number of cities increases.'),w(),b(10,"div",5)(11,"label",6),F(12,"i",7),O(13," Number of Cities:"),w(),b(14,"p-inputNumber",8),R("ngModelChange",function(s){return i.cities=s}),w()(),b(15,"div",5)(16,"label",9),F(17,"i",10),O(18," Currency:"),w(),b(19,"input",11),R("ngModelChange",function(s){return i.currency=s}),w()(),b(20,"div",5)(21,"label",12),F(22,"i",13),O(23," Kilo Watt Hour"),w(),b(24,"p-inputNumber",14),R("ngModelChange",function(s){return i.kwHour=s}),w()(),F(25,"div",5),b(26,"label")(27,"b"),F(28,"i",15),O(29," CPU informations"),w()(),b(30,"div",3)(31,"div",5)(32,"label",16),F(33,"i",17),O(34," Parallel Computers"),w(),b(35,"p-inputNumber",18),R("ngModelChange",function(s){return i.parallelCPUs=s}),w()(),F(36,"div",19),b(37,"div",5)(38,"label",20),F(39,"i",21),O(40," GHz"),w(),b(41,"p-inputNumber",22),R("ngModelChange",function(s){return i.cpuGHZ=s}),w()(),b(42,"div",5)(43,"label",23),F(44,"i",24),O(45," Cores"),w(),b(46,"p-inputNumber",25),R("ngModelChange",function(s){return i.cores=s}),w()(),b(47,"div",5)(48,"label",26),F(49,"i",27),O(50," TDP"),w(),b(51,"p-inputNumber",28),R("ngModelChange",function(s){return i.tdp=s}),w()()(),b(52,"div",5)(53,"p-button",29),R("click",function(){return i.calculate()}),w()()(),F(54,"div",1),b(55,"div",30)(56,"h4"),O(57,"Result"),w()(),F(58,"div",1),b(59,"div",31)(60,"p-table",32),S(61,_J,13,0,"ng-template",33),S(62,yJ,9,4,"ng-template",34),w()(),F(63,"div",1),w(),F(64,"div",0)(65,"br")(66,"ng-adsense",35),w()),2&e&&(v(14),m("ngModel",i.cities),v(5),m("ngModel",i.currency)("disabled",!0),v(5),m("ngModel",i.kwHour),v(11),m("ngModel",i.parallelCPUs),v(6),m("ngModel",i.cpuGHZ),v(5),m("ngModel",i.cores),v(5),m("ngModel",i.tdp),v(9),m("value",i.list),v(6),m("adClient","ca-pub-1469802245881557")("pageLevelAds",!0))},dependencies:[en,Gl,Jl,j_,ny,Kl,ql,Us,ac],styles:[".tspform[_ngcontent-%COMP%]{padding-left:20%}"]}),n})();class Yk{constructor(t,e,i,r){this.isAccelerating=!1,this.isColliding=!1,this.friction=.99,this.rotationSpeed=.1,this.radius=10,this.width=15,this.height=20,this.flameLength=15,this.x=t,this.y=e,this.angle=0,this.velocity={x:0,y:0},this.acceleration=.15,this.isAccelerating=!1,this.fuel=i,this.maxFuel=i,this.fuelConsumptionRate=r}accelerate(){if(this.fuel>0){const t=this.acceleration*Math.cos(this.angle),e=this.acceleration*Math.sin(this.angle);this.velocity.x+=t,this.velocity.y+=e,this.isAccelerating=!0,this.fuel-=this.fuelConsumptionRate,this.fuel<0&&(this.fuel=0)}}stopAccelerate(){this.isAccelerating=!1}updatePosition(){this.x+=this.velocity.x,this.y+=this.velocity.y,this.velocity.x*=.98,this.velocity.y*=.98}checkCollisionWithPlanets(t){for(const e of t){const i=this.x-e.x,r=this.y-e.y;if(Math.sqrt(i*i+r*r)<this.radius+e.radius)return!0}return!1}collidingWithPlanet(){this.isColliding=!0,this.velocity.x=0,this.velocity.y=0,this.refuel(10)}draw(t){const r=this.x,s=this.y,o=this.angle;t.save(),t.translate(r,s),t.rotate(o+Math.PI/2),this.isAccelerating&&(t.beginPath(),t.moveTo(0,12.5),t.lineTo(this.flameLength,22.5),t.lineTo(-this.flameLength,22.5),t.closePath(),t.fillStyle="orange",t.fill()),t.beginPath(),t.moveTo(0,-7.5),t.lineTo(-7.5,20),t.lineTo(7.5,20),t.closePath(),t.strokeStyle="#111111",t.lineWidth=2,t.stroke(),t.restore(),this.drawFuel(t)}getFuelPercentage(){return this.fuel/this.maxFuel*100}drawFuel(t){const r=this.x-25,s=this.y+40,o=this.getFuelPercentage(),a=o/100*50;t.beginPath(),t.rect(r,s,50,10),t.strokeStyle="black",t.stroke();let l="green";o<20?l="red":o<50&&(l="yellow"),t.fillStyle=l,t.fillRect(r,s,a,10)}refuel(t){this.fuel+=t,this.fuel>this.maxFuel&&(this.fuel=this.maxFuel)}}class jy{constructor(t,e,i){this.x=t,this.y=e,this.radius=i}draw(t){t.beginPath(),t.arc(this.x,this.y,this.radius,0,2*Math.PI),t.fillStyle="#FFFFFF",t.fill(),t.strokeStyle="#111111",t.lineWidth=2,t.stroke(),t.closePath()}}const bJ=["gameCanvas"],wJ=[{path:"",component:pI,data:{title:"Home"}},{path:"home",component:pI,data:{title:"Home"}},{path:"ascart",component:MW,data:{title:"ASC ART"}},{path:"projects",component:gJ,data:{title:"Projects"}},{path:"contact",component:kW,data:{title:"Contact"}},{path:"tspcalculator",component:vJ,data:{title:"TSP CALCULATOR"}},{path:"interestSimulator",component:YX,data:{title:"Interest Simulator"}},{path:"shipGame",component:(()=>{class n{constructor(){this.planets=[],this.rocket=new Yk(500,100,100,.5),this.planets=[new jy(100,100,30),new jy(700,150,20),new jy(400,300,40)]}ngAfterViewInit(){this.ctx=this.canvasRef.nativeElement.getContext("2d"),this.gameLoop(),document.addEventListener("keydown",this.handleKeyDown.bind(this)),document.addEventListener("keyup",this.handleKeyUp.bind(this))}restartGame(){this.rocket=new Yk(500,100,100,.5)}draw(){this.ctx.clearRect(0,0,this.ctx.canvas.width,this.ctx.canvas.height),this.rocket.draw(this.ctx),this.planets.forEach(e=>{e.draw(this.ctx)})}gameLoop(){this.rocket.updatePosition(),this.checkRocketCollisionWithPlanets(),this.draw(),requestAnimationFrame(()=>this.gameLoop())}handleKeyDown(e){"ArrowLeft"===e.key?this.rocket.angle-=this.rocket.rotationSpeed:"ArrowRight"===e.key?this.rocket.angle+=this.rocket.rotationSpeed:"ArrowUp"===e.key&&this.rocket.accelerate()}handleKeyUp(e){"ArrowUp"===e.key&&this.rocket.stopAccelerate()}checkRocketCollisionWithPlanets(){this.rocket.checkCollisionWithPlanets(this.planets)?this.rocket.collidingWithPlanet():this.rocket.isColliding=!1}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Se({type:n,selectors:[["app-ship-game"]],viewQuery:function(e,i){if(1&e&&ke(bJ,7),2&e){let r;ie(r=re())&&(i.canvasRef=r.first)}},decls:13,vars:0,consts:[[2,"padding-left","50px","margin-top","15px"],[1,"fas","fa-rocket"],[1,"fas","fa-arrows-alt"],["width","800","height","600"],["gameCanvas",""],["label","Restart Game!","icon","fas fa-sync","iconPos","left",3,"click"]],template:function(e,i){1&e&&(b(0,"div",0)(1,"h4"),F(2,"i",1),O(3,"Rocket Game"),w(),b(4,"p"),O(5,"This game was made almost entirely with ChatGPT guided by me."),w(),b(6,"p"),O(7,"Use Arrows to move! "),F(8,"i",2),w(),F(9,"canvas",3,4)(11,"br"),b(12,"p-button",5),R("click",function(){return i.restartGame()}),w()())},dependencies:[Gl],styles:["body[_ngcontent-%COMP%]{margin:0;padding:0;display:flex;justify-content:center;align-items:center;height:100vh;background-color:#f0f0f0}canvas[_ngcontent-%COMP%]{border:2px solid #333}"]}),n})(),data:{title:"Ship Game"}}];let CJ=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[Wd.forRoot(wJ),Wd]}),n})();const SJ=function(n){return{"p-hidden":n}};function DJ(n,t){if(1&n&&F(0,"li",4),2&n){const e=_().$implicit;m("ngClass",oe(1,SJ,!1===e.visible))}}function xJ(n,t){if(1&n&&F(0,"span",16),2&n){const e=_(3).$implicit;m("ngClass",e.icon)("ngStyle",e.iconStyle)}}function EJ(n,t){if(1&n&&(b(0,"span",17),O(1),w()),2&n){const e=_(3).$implicit;v(1),ne(e.label)}}function TJ(n,t){1&n&&F(0,"span",18),2&n&&m("innerHTML",_(3).$implicit.label,tl)}function IJ(n,t){if(1&n&&(b(0,"span",19),O(1),w()),2&n){const e=_(3).$implicit;m("ngClass",e.badgeStyleClass),v(1),ne(e.badge)}}const Qk=function(n,t){return{"pi-angle-down":n,"pi-angle-right":t}};function MJ(n,t){if(1&n&&F(0,"span",20),2&n){const e=_(4);m("ngClass",He(1,Qk,e.root,!e.root))}}const Zk=function(n){return{"p-menuitem-link":!0,"p-disabled":n}};function kJ(n,t){if(1&n){const e=Q();b(0,"a",10),R("click",function(r){T(e);const s=_(2).$implicit;return I(_().onItemClick(r,s))})("mouseenter",function(r){T(e);const s=_(2).$implicit;return I(_().onItemMouseEnter(r,s))}),S(1,xJ,1,2,"span",11),S(2,EJ,2,1,"span",12),S(3,TJ,1,1,"ng-template",null,13,Xt),S(5,IJ,2,2,"span",14),S(6,MJ,1,4,"span",15),w()}if(2&n){const e=ot(4),i=_(2).$implicit,r=_();m("target",i.target)("ngClass",oe(14,Zk,i.disabled)),Ce("href",i.url,Po)("data-automationid",i.automationId)("title",i.title)("id",i.id)("tabindex",i.disabled?null:"0")("aria-haspopup",null!=r.item.items)("aria-expanded",r.item===r.activeItem),v(1),m("ngIf",i.icon),v(1),m("ngIf",!1!==i.escape)("ngIfElse",e),v(3),m("ngIf",i.badge),v(1),m("ngIf",i.items)}}function AJ(n,t){if(1&n&&F(0,"span",16),2&n){const e=_(3).$implicit;m("ngClass",e.icon)("ngStyle",e.iconStyle)}}function OJ(n,t){if(1&n&&(b(0,"span",17),O(1),w()),2&n){const e=_(3).$implicit;v(1),ne(e.label)}}function PJ(n,t){1&n&&F(0,"span",18),2&n&&m("innerHTML",_(3).$implicit.label,tl)}function RJ(n,t){if(1&n&&(b(0,"span",19),O(1),w()),2&n){const e=_(3).$implicit;m("ngClass",e.badgeStyleClass),v(1),ne(e.badge)}}function FJ(n,t){if(1&n&&F(0,"span",20),2&n){const e=_(4);m("ngClass",He(1,Qk,e.root,!e.root))}}const LJ=function(){return{exact:!1}};function NJ(n,t){if(1&n){const e=Q();b(0,"a",21),R("click",function(r){T(e);const s=_(2).$implicit;return I(_().onItemClick(r,s))})("mouseenter",function(r){T(e);const s=_(2).$implicit;return I(_().onItemMouseEnter(r,s))}),S(1,AJ,1,2,"span",11),S(2,OJ,2,1,"span",12),S(3,PJ,1,1,"ng-template",null,22,Xt),S(5,RJ,2,2,"span",14),S(6,FJ,1,4,"span",15),w()}if(2&n){const e=ot(4),i=_(2).$implicit;m("routerLink",i.routerLink)("queryParams",i.queryParams)("routerLinkActive","p-menuitem-link-active")("routerLinkActiveOptions",i.routerLinkActiveOptions||$r(21,LJ))("target",i.target)("ngClass",oe(22,Zk,i.disabled))("fragment",i.fragment)("queryParamsHandling",i.queryParamsHandling)("preserveFragment",i.preserveFragment)("skipLocationChange",i.skipLocationChange)("replaceUrl",i.replaceUrl)("state",i.state),Ce("data-automationid",i.automationId)("title",i.title)("id",i.id)("tabindex",i.disabled?null:"0"),v(1),m("ngIf",i.icon),v(1),m("ngIf",!1!==i.escape)("ngIfElse",e),v(3),m("ngIf",i.badge),v(1),m("ngIf",i.items)}}function VJ(n,t){if(1&n){const e=Q();b(0,"p-menubarSub",23),R("leafClick",function(){return T(e),I(_(3).onLeafClick())}),w()}if(2&n){const e=_(2).$implicit,i=_();m("parentActive",e===i.activeItem)("item",e)("mobileActive",i.mobileActive)("autoDisplay",i.autoDisplay)}}const BJ=function(n,t){return{"p-menuitem":!0,"p-menuitem-active":n,"p-hidden":t}};function HJ(n,t){if(1&n&&(b(0,"li",5,6),S(2,kJ,7,16,"a",7),S(3,NJ,7,24,"a",8),S(4,VJ,1,4,"p-menubarSub",9),w()),2&n){const e=_().$implicit,i=_();fe(e.styleClass),m("ngClass",He(8,BJ,e===i.activeItem,!1===e.visible))("ngStyle",e.style)("tooltipOptions",e.tooltipOptions),v(2),m("ngIf",!e.routerLink),v(1),m("ngIf",e.routerLink),v(1),m("ngIf",e.items)}}function zJ(n,t){if(1&n&&(S(0,DJ,1,3,"li",2),S(1,HJ,5,11,"li",3)),2&n){const e=t.$implicit;m("ngIf",e.separator),v(1),m("ngIf",!e.separator)}}const jJ=function(n,t){return{"p-submenu-list":n,"p-menubar-root-list":t}},$J=["menubutton"],UJ=["rootmenu"];function WJ(n,t){1&n&&Y(0)}function GJ(n,t){if(1&n&&(b(0,"div",7),S(1,WJ,1,0,"ng-container",8),w()),2&n){const e=_();v(1),m("ngTemplateOutlet",e.startTemplate)}}function KJ(n,t){if(1&n){const e=Q();b(0,"a",9,10),R("click",function(r){return T(e),I(_().toggle(r))}),F(2,"i",11),w()}}function qJ(n,t){1&n&&Y(0)}function YJ(n,t){if(1&n&&(b(0,"div",12),S(1,qJ,1,0,"ng-container",8),w()),2&n){const e=_();v(1),m("ngTemplateOutlet",e.endTemplate)}}function QJ(n,t){1&n&&(b(0,"div",12),gn(1),w())}const ZJ=function(n){return{"p-menubar p-component":!0,"p-menubar-mobile-active":n}},XJ=["*"];let JJ=(()=>{class n{constructor(e,i,r){this.el=e,this.renderer=i,this.cd=r,this.autoZIndex=!0,this.baseZIndex=0,this.leafClick=new N,this.menuHoverActive=!1}get parentActive(){return this._parentActive}set parentActive(e){this.root||(this._parentActive=e,e||(this.activeItem=null))}onItemClick(e,i){i.disabled?e.preventDefault():(!i.url&&!i.routerLink&&e.preventDefault(),i.command&&i.command({originalEvent:e,item:i}),i.items&&(this.activeItem&&i===this.activeItem?(this.activeItem=null,this.unbindDocumentClickListener()):(this.activeItem=i,this.root&&this.bindDocumentClickListener())),i.items||this.onLeafClick())}onItemMouseEnter(e,i){i.disabled||this.mobileActive?e.preventDefault():this.root?(this.activeItem||this.autoDisplay)&&(this.activeItem=i,this.bindDocumentClickListener()):(this.activeItem=i,this.bindDocumentClickListener())}onLeafClick(){this.activeItem=null,this.root&&this.unbindDocumentClickListener(),this.leafClick.emit()}bindDocumentClickListener(){this.documentClickListener||(this.documentClickListener=e=>{this.el&&!this.el.nativeElement.contains(e.target)&&(this.activeItem=null,this.cd.markForCheck(),this.unbindDocumentClickListener())},document.addEventListener("click",this.documentClickListener))}unbindDocumentClickListener(){this.documentClickListener&&(document.removeEventListener("click",this.documentClickListener),this.documentClickListener=null)}ngOnDestroy(){this.unbindDocumentClickListener()}}return n.\u0275fac=function(e){return new(e||n)(M(ze),M(Mn),M(bt))},n.\u0275cmp=Se({type:n,selectors:[["p-menubarSub"]],hostAttrs:[1,"p-element"],inputs:{item:"item",root:"root",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",mobileActive:"mobileActive",autoDisplay:"autoDisplay",parentActive:"parentActive"},outputs:{leafClick:"leafClick"},decls:2,vars:6,consts:[[3,"ngClass"],["ngFor","",3,"ngForOf"],["class","p-menu-separator","role","separator",3,"ngClass",4,"ngIf"],["role","none","pTooltip","",3,"ngClass","ngStyle","class","tooltipOptions",4,"ngIf"],["role","separator",1,"p-menu-separator",3,"ngClass"],["role","none","pTooltip","",3,"ngClass","ngStyle","tooltipOptions"],["listItem",""],["role","menuitem","pRipple","",3,"target","ngClass","click","mouseenter",4,"ngIf"],["role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","mouseenter",4,"ngIf"],[3,"parentActive","item","mobileActive","autoDisplay","leafClick",4,"ngIf"],["role","menuitem","pRipple","",3,"target","ngClass","click","mouseenter"],["class","p-menuitem-icon",3,"ngClass","ngStyle",4,"ngIf"],["class","p-menuitem-text",4,"ngIf","ngIfElse"],["htmlLabel",""],["class","p-menuitem-badge",3,"ngClass",4,"ngIf"],["class","p-submenu-icon pi",3,"ngClass",4,"ngIf"],[1,"p-menuitem-icon",3,"ngClass","ngStyle"],[1,"p-menuitem-text"],[1,"p-menuitem-text",3,"innerHTML"],[1,"p-menuitem-badge",3,"ngClass"],[1,"p-submenu-icon","pi",3,"ngClass"],["role","menuitem","pRipple","",3,"routerLink","queryParams","routerLinkActive","routerLinkActiveOptions","target","ngClass","fragment","queryParamsHandling","preserveFragment","skipLocationChange","replaceUrl","state","click","mouseenter"],["htmlRouteLabel",""],[3,"parentActive","item","mobileActive","autoDisplay","leafClick"]],template:function(e,i){1&e&&(b(0,"ul",0),S(1,zJ,2,2,"ng-template",1),w()),2&e&&(m("ngClass",He(3,jJ,!i.root,i.root)),Ce("role",i.root?"menubar":"menu"),v(1),m("ngForOf",i.root?i.item:i.item.items))},dependencies:[_t,fi,lt,ut,Ud,aE,Xr,VT,n],encapsulation:2}),n})(),eee=(()=>{class n{constructor(e,i,r,s){this.el=e,this.renderer=i,this.cd=r,this.config=s,this.autoZIndex=!0,this.baseZIndex=0}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"start":this.startTemplate=e.template;break;case"end":this.endTemplate=e.template}})}toggle(e){this.mobileActive?(this.hide(),yn.clear(this.rootmenu.el.nativeElement)):(this.mobileActive=!0,yn.set("menu",this.rootmenu.el.nativeElement,this.config.zIndex.menu)),this.bindOutsideClickListener(),e.preventDefault()}bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.mobileActive&&this.rootmenu.el.nativeElement!==e.target&&!this.rootmenu.el.nativeElement.contains(e.target)&&this.menubutton.nativeElement!==e.target&&!this.menubutton.nativeElement.contains(e.target)&&this.hide()},document.addEventListener("click",this.outsideClickListener))}hide(){this.mobileActive=!1,this.cd.markForCheck(),yn.clear(this.rootmenu.el.nativeElement),this.unbindOutsideClickListener()}onLeafClick(){this.hide()}unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)}ngOnDestroy(){this.unbindOutsideClickListener()}}return n.\u0275fac=function(e){return new(e||n)(M(ze),M(Mn),M(bt),M(wr))},n.\u0275cmp=Se({type:n,selectors:[["p-menubar"]],contentQueries:function(e,i,r){if(1&e&&$t(r,en,4),2&e){let s;ie(s=re())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&(ke($J,5),ke(UJ,5)),2&e){let r;ie(r=re())&&(i.menubutton=r.first),ie(r=re())&&(i.rootmenu=r.first)}},hostAttrs:[1,"p-element"],inputs:{model:"model",style:"style",styleClass:"styleClass",autoZIndex:"autoZIndex",baseZIndex:"baseZIndex",autoDisplay:"autoDisplay"},ngContentSelectors:XJ,decls:8,vars:15,consts:[[3,"ngClass","ngStyle"],["class","p-menubar-start",4,"ngIf"],["tabindex","0","class","p-menubar-button",3,"click",4,"ngIf"],["root","root",3,"item","baseZIndex","autoZIndex","mobileActive","autoDisplay","leafClick"],["rootmenu",""],["class","p-menubar-end",4,"ngIf","ngIfElse"],["legacy",""],[1,"p-menubar-start"],[4,"ngTemplateOutlet"],["tabindex","0",1,"p-menubar-button",3,"click"],["menubutton",""],[1,"pi","pi-bars"],[1,"p-menubar-end"]],template:function(e,i){if(1&e&&(ci(),b(0,"div",0),S(1,GJ,2,1,"div",1),S(2,KJ,3,0,"a",2),b(3,"p-menubarSub",3,4),R("leafClick",function(){return i.onLeafClick()}),w(),S(5,YJ,2,1,"div",5),S(6,QJ,2,0,"ng-template",null,6,Xt),w()),2&e){const r=ot(7);fe(i.styleClass),m("ngClass",oe(13,ZJ,i.mobileActive))("ngStyle",i.style),v(1),m("ngIf",i.startTemplate),v(1),m("ngIf",i.model&&i.model.length>0),v(1),m("item",i.model)("baseZIndex",i.baseZIndex)("autoZIndex",i.autoZIndex)("mobileActive",i.mobileActive)("autoDisplay",i.autoDisplay),v(2),m("ngIf",i.endTemplate)("ngIfElse",r)}},dependencies:[_t,lt,on,ut,JJ],styles:[".p-menubar{display:flex;align-items:center}.p-menubar ul{margin:0;padding:0;list-style:none}.p-menubar .p-menuitem-link{cursor:pointer;display:flex;align-items:center;text-decoration:none;overflow:hidden;position:relative}.p-menubar .p-menuitem-text{line-height:1}.p-menubar .p-menuitem{position:relative}.p-menubar-root-list{display:flex;align-items:center}.p-menubar-root-list>li ul{display:none;z-index:1}.p-menubar-root-list>.p-menuitem-active>p-menubarsub>.p-submenu-list{display:block}.p-menubar .p-submenu-list{display:none;position:absolute;z-index:1}.p-menubar .p-submenu-list>.p-menuitem-active>p-menubarsub>.p-submenu-list{display:block;left:100%;top:0}.p-menubar .p-submenu-list .p-menuitem-link .p-submenu-icon{margin-left:auto}.p-menubar .p-menubar-custom,.p-menubar .p-menubar-end{margin-left:auto;align-self:center}.p-menubar-button{display:none;cursor:pointer;align-items:center;justify-content:center}\n"],encapsulation:2,changeDetection:0}),n})(),Xk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We,Wd,Jr,W_,cn,Wd,W_,cn]}),n})(),tee=(()=>{class n{constructor(){this.items=[]}ngOnInit(){this.items=[{label:"Home",icon:"fas home",routerLink:"home"},{label:"TSP Calculator",icon:"fas fa-project-diagram",routerLink:"tspcalculator"},{label:"Asc Art",icon:"fa-solid fa-masks-theater",routerLink:"ascart"},{label:"Investiment Simulator",icon:"fas fa-chart-line",routerLink:"interestSimulator"},{label:"Old Projects",icon:"fas fa-folder",routerLink:"projects"}]}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Se({type:n,selectors:[["app-header"]],decls:1,vars:1,consts:[[3,"model"]],template:function(e,i){1&e&&F(0,"p-menubar",0),2&e&&m("model",i.items)},dependencies:[eee]}),n})();const nee=["*"];let iee=(()=>{class n{constructor(){this.layout="horizontal",this.type="solid"}containerClass(){return{"p-divider p-component":!0,"p-divider-horizontal":"horizontal"===this.layout,"p-divider-vertical":"vertical"===this.layout,"p-divider-solid":"solid"===this.type,"p-divider-dashed":"dashed"===this.type,"p-divider-dotted":"dotted"===this.type,"p-divider-left":"horizontal"===this.layout&&(!this.align||"left"===this.align),"p-divider-center":"horizontal"===this.layout&&"center"===this.align||"vertical"===this.layout&&(!this.align||"center"===this.align),"p-divider-right":"horizontal"===this.layout&&"right"===this.align,"p-divider-top":"vertical"===this.layout&&"top"===this.align,"p-divider-bottom":"vertical"===this.layout&&"bottom"===this.align}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Se({type:n,selectors:[["p-divider"]],hostAttrs:[1,"p-element"],inputs:{styleClass:"styleClass",style:"style",layout:"layout",type:"type",align:"align"},ngContentSelectors:nee,decls:3,vars:4,consts:[["role","separator",3,"ngClass","ngStyle"],[1,"p-divider-content"]],template:function(e,i){1&e&&(ci(),b(0,"div",0)(1,"div",1),gn(2),w()()),2&e&&(fe(i.styleClass),m("ngClass",i.containerClass())("ngStyle",i.style))},dependencies:[_t,ut],styles:['.p-divider-horizontal{display:flex;width:100%;position:relative;align-items:center}.p-divider-horizontal:before{position:absolute;display:block;top:50%;left:0;width:100%;content:""}.p-divider-horizontal.p-divider-left{justify-content:flex-start}.p-divider-horizontal.p-divider-right{justify-content:flex-end}.p-divider-horizontal.p-divider-center{justify-content:center}.p-divider-content{z-index:1}.p-divider-vertical{min-height:100%;margin:0 1rem;display:flex;position:relative;justify-content:center}.p-divider-vertical:before{position:absolute;display:block;top:0;left:50%;height:100%;content:""}.p-divider-vertical.p-divider-top{align-items:flex-start}.p-divider-vertical.p-divider-center{align-items:center}.p-divider-vertical.p-divider-bottom{align-items:flex-end}.p-divider-solid.p-divider-horizontal:before{border-top-style:solid}.p-divider-solid.p-divider-vertical:before{border-left-style:solid}.p-divider-dashed.p-divider-horizontal:before{border-top-style:dashed}.p-divider-dashed.p-divider-vertical:before{border-left-style:dashed}.p-divider-dotted.p-divider-horizontal:before{border-top-style:dotted}.p-divider-dotted.p-divider-horizontal:before{border-left-style:dotted}\n'],encapsulation:2,changeDetection:0}),n})(),Jk=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We]}),n})(),ree=(()=>{class n{constructor(){}ngOnInit(){}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Se({type:n,selectors:[["app-footer"]],decls:4,vars:0,consts:[[1,"page-footer","font-small","cyan","darken-3","fixed-bottom","py-1"],["align","center"],[1,"p-tag",2,"font-size","x-small","background","#7a7a7a"]],template:function(e,i){1&e&&(b(0,"footer",0)(1,"p-divider",1)(2,"span",2),O(3," version 2 "),w()()())},dependencies:[iee]}),n})(),see=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Se({type:n,selectors:[["app-leftpainel"]],decls:1,vars:0,consts:[[1,"leftPainel"]],template:function(e,i){1&e&&F(0,"div",0)},styles:[".leftPainel[_ngcontent-%COMP%]{width:20%;display:inline!important}"]}),n})(),oee=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275cmp=Se({type:n,selectors:[["app-rigthpainel"]],decls:1,vars:0,consts:[[1,"rigthPainel"]],template:function(e,i){1&e&&F(0,"div",0)},styles:[".rigthPainel[_ngcontent-%COMP%]{width:20%;display:inline}"]}),n})(),aee=(()=>{class n{constructor(e,i,r){this.router=e,this.titleService=i,this.document=r,this.title="MeuSite",this.handleRouteEvents()}handleRouteEvents(){this.router.events.subscribe(e=>{if(e instanceof Zr){const i=this.getTitle(this.router.routerState,this.router.routerState.root).join("-");this.titleService.setTitle(i),gtag("event","page_view",{page_title:i,page_path:e.urlAfterRedirects,page_location:this.document.location.href})}})}getTitle(e,i){const r=[];return i&&i.snapshot.data&&i.snapshot.data.title&&r.push(i.snapshot.data.title),e&&i&&i.firstChild&&r.push(...this.getTitle(e,i.firstChild)),r}}return n.\u0275fac=function(e){return new(e||n)(M(Jt),M(zm),M(Mt))},n.\u0275cmp=Se({type:n,selectors:[["app-root"]],decls:5,vars:0,template:function(e,i){1&e&&F(0,"app-header")(1,"app-leftpainel")(2,"app-rigthpainel")(3,"router-outlet")(4,"app-footer")},dependencies:[o_,tee,ree,see,oee],styles:[".centerContent[_ngcontent-%COMP%]{width:20%;min-height:60%;display:inline}.main-div[_ngcontent-%COMP%]{float:left;display:inline-block}"]}),n})(),eA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We]}),n})();function lee(n,t){if(1&n){const e=Q();b(0,"span",5),R("click",function(r){return T(e),I(_(2).clear(r))})("keydown.enter",function(r){return T(e),I(_(2).clear(r))}),w()}if(2&n){const e=_(2);m("ngClass",e.iconCancelClass)("ngStyle",e.iconCancelStyle),Ce("tabindex",e.disabled||e.readonly?null:"0")}}function cee(n,t){if(1&n){const e=Q();b(0,"span",6),R("click",function(r){const o=T(e).index;return I(_(2).rate(r,o))})("keydown.enter",function(r){const o=T(e).index;return I(_(2).rate(r,o))}),w()}if(2&n){const e=t.index,i=_(2);m("ngClass",!i.value||e>=i.value?i.iconOffClass:i.iconOnClass)("ngStyle",!i.value||e>=i.value?i.iconOffStyle:i.iconOnStyle),Ce("tabindex",i.disabled||i.readonly?null:"0")}}function uee(n,t){if(1&n&&(pe(0),S(1,lee,1,3,"span",3),S(2,cee,1,3,"span",4),ge()),2&n){const e=_();v(1),m("ngIf",e.cancel),v(1),m("ngForOf",e.starsArray)}}function dee(n,t){1&n&&Y(0)}function hee(n,t){if(1&n){const e=Q();b(0,"span",9),R("click",function(r){return T(e),I(_(2).clear(r))})("keydown.enter",function(r){return T(e),I(_(2).clear(r))}),S(1,dee,1,0,"ng-container",10),w()}if(2&n){const e=_(2);m("ngStyle",e.iconCancelStyle),Ce("tabindex",e.disabled||e.readonly?null:"0"),v(1),m("ngTemplateOutlet",e.cancelIconTemplate)}}function fee(n,t){1&n&&Y(0)}function pee(n,t){if(1&n){const e=Q();b(0,"span",11),R("click",function(r){const o=T(e).index;return I(_(2).rate(r,o))})("keydown.enter",function(r){const o=T(e).index;return I(_(2).rate(r,o))}),S(1,fee,1,0,"ng-container",10),w()}if(2&n){const e=t.index,i=_(2);Ce("tabindex",i.disabled||i.readonly?null:"0"),v(1),m("ngTemplateOutlet",i.getIconTemplate(e))}}function gee(n,t){if(1&n&&(S(0,hee,2,3,"span",7),S(1,pee,2,2,"span",8)),2&n){const e=_();m("ngIf",e.cancel),v(1),m("ngForOf",e.starsArray)}}const mee=function(n,t){return{"p-readonly":n,"p-disabled":t}},_ee={provide:Gt,useExisting:Fe(()=>yee),multi:!0};let yee=(()=>{class n{constructor(e){this.cd=e,this.isCustomCancelIcon=!0,this.stars=5,this.cancel=!0,this.iconOnClass="pi pi-star-fill",this.iconOffClass="pi pi-star",this.iconCancelClass="pi pi-ban",this.onRate=new N,this.onCancel=new N,this.onModelChange=()=>{},this.onModelTouched=()=>{}}ngOnInit(){this.starsArray=[];for(let e=0;e<this.stars;e++)this.starsArray[e]=e}ngAfterContentInit(){this.templates.forEach(e=>{switch(e.getType()){case"onicon":this.onIconTemplate=e.template;break;case"officon":this.offIconTemplate=e.template;break;case"cancel":this.cancelIconTemplate=e.template}})}getIconTemplate(e){return!this.value||e>=this.value?this.offIconTemplate:this.onIconTemplate}rate(e,i){!this.readonly&&!this.disabled&&(this.value=i+1,this.onModelChange(this.value),this.onModelTouched(),this.onRate.emit({originalEvent:e,value:i+1})),e.preventDefault()}clear(e){!this.readonly&&!this.disabled&&(this.value=null,this.onModelChange(this.value),this.onModelTouched(),this.onCancel.emit(e)),e.preventDefault()}writeValue(e){this.value=e,this.cd.detectChanges()}registerOnChange(e){this.onModelChange=e}registerOnTouched(e){this.onModelTouched=e}setDisabledState(e){this.disabled=e,this.cd.markForCheck()}get isCustomIcon(){return this.templates&&this.templates.length>0}}return n.\u0275fac=function(e){return new(e||n)(M(bt))},n.\u0275cmp=Se({type:n,selectors:[["p-rating"]],contentQueries:function(e,i,r){if(1&e&&$t(r,en,4),2&e){let s;ie(s=re())&&(i.templates=s)}},hostAttrs:[1,"p-element"],inputs:{isCustomCancelIcon:"isCustomCancelIcon",index:"index",disabled:"disabled",readonly:"readonly",stars:"stars",cancel:"cancel",iconOnClass:"iconOnClass",iconOnStyle:"iconOnStyle",iconOffClass:"iconOffClass",iconOffStyle:"iconOffStyle",iconCancelClass:"iconCancelClass",iconCancelStyle:"iconCancelStyle"},outputs:{onRate:"onRate",onCancel:"onCancel"},features:[Be([_ee])],decls:4,vars:6,consts:[[1,"p-rating",3,"ngClass"],[4,"ngIf","ngIfElse"],["customTemplate",""],["class","p-rating-icon p-rating-cancel",3,"ngClass","ngStyle","click","keydown.enter",4,"ngIf"],["class","p-rating-icon",3,"ngClass","ngStyle","click","keydown.enter",4,"ngFor","ngForOf"],[1,"p-rating-icon","p-rating-cancel",3,"ngClass","ngStyle","click","keydown.enter"],[1,"p-rating-icon",3,"ngClass","ngStyle","click","keydown.enter"],["class","p-rating-icon p-rating-cancel",3,"ngStyle","click","keydown.enter",4,"ngIf"],["class","p-rating-icon",3,"click","keydown.enter",4,"ngFor","ngForOf"],[1,"p-rating-icon","p-rating-cancel",3,"ngStyle","click","keydown.enter"],[4,"ngTemplateOutlet"],[1,"p-rating-icon",3,"click","keydown.enter"]],template:function(e,i){if(1&e&&(b(0,"div",0),S(1,uee,3,2,"ng-container",1),S(2,gee,2,2,"ng-template",null,2,Xt),w()),2&e){const r=ot(3);m("ngClass",He(3,mee,i.readonly,i.disabled)),v(1),m("ngIf",!i.isCustomIcon)("ngIfElse",r)}},dependencies:[_t,fi,lt,on,ut],styles:[".p-rating-icon{cursor:pointer;display:inline-flex}.p-rating.p-rating-readonly .p-rating-icon{cursor:default}\n"],encapsulation:2,changeDetection:0}),n})(),tA=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We,cn]}),n})();function nA(n){return new L(3e3,!1)}function Jee(){return typeof window<"u"&&typeof window.document<"u"}function $y(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function hs(n){switch(n.length){case 0:return new tc;case 1:return n[0];default:return new PT(n)}}function iA(n,t,e,i,r=new Map,s=new Map){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.get("offset"),h=d==l,f=h&&c||new Map;u.forEach((p,g)=>{let y=g,C=p;if("offset"!==g)switch(y=t.normalizePropertyName(y,o),C){case"!":C=r.get(g);break;case Cr:C=s.get(g);break;default:C=t.normalizeStyleValue(g,y,C,o)}f.set(y,C)}),h||a.push(f),c=f,l=d}),o.length)throw function zee(n){return new L(3502,!1)}();return a}function Uy(n,t,e,i){switch(t){case"start":n.onStart(()=>i(e&&Wy(e,"start",n)));break;case"done":n.onDone(()=>i(e&&Wy(e,"done",n)));break;case"destroy":n.onDestroy(()=>i(e&&Wy(e,"destroy",n)))}}function Wy(n,t,e){const s=Gy(n.element,n.triggerName,n.fromState,n.toState,t||n.phaseName,e.totalTime??n.totalTime,!!e.disabled),o=n._data;return null!=o&&(s._data=o),s}function Gy(n,t,e,i,r="",s=0,o){return{element:n,triggerName:t,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function ni(n,t,e){let i=n.get(t);return i||n.set(t,i=e),i}function rA(n){const t=n.indexOf(":");return[n.substring(1,t),n.slice(t+1)]}let Ky=(n,t)=>!1,sA=(n,t,e)=>[],oA=null;function qy(n){const t=n.parentNode||n.host;return t===oA?null:t}($y()||typeof Element<"u")&&(Jee()?(oA=(()=>document.documentElement)(),Ky=(n,t)=>{for(;t;){if(t===n)return!0;t=qy(t)}return!1}):Ky=(n,t)=>n.contains(t),sA=(n,t,e)=>{if(e)return Array.from(n.querySelectorAll(t));const i=n.querySelector(t);return i?[i]:[]});let io=null,aA=!1;const lA=Ky,cA=sA;let uA=(()=>{class n{validateStyleProperty(e){return function tte(n){io||(io=function nte(){return typeof document<"u"?document.body:null}()||{},aA=!!io.style&&"WebkitAppearance"in io.style);let t=!0;return io.style&&!function ete(n){return"ebkit"==n.substring(1,6)}(n)&&(t=n in io.style,!t&&aA&&(t="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in io.style)),t}(e)}matchesElement(e,i){return!1}containsElement(e,i){return lA(e,i)}getParentElement(e){return qy(e)}query(e,i,r){return cA(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],l){return new tc(r,s)}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275prov=Z({token:n,factory:n.\u0275fac}),n})(),Yy=(()=>{class n{}return n.NOOP=new uA,n})();const Qy="ng-enter",Wh="ng-leave",Gh="ng-trigger",Kh=".ng-trigger",hA="ng-animating",Zy=".ng-animating";function Or(n){if("number"==typeof n)return n;const t=n.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Xy(parseFloat(t[1]),t[2])}function Xy(n,t){return"s"===t?1e3*n:n}function qh(n,t,e){return n.hasOwnProperty("duration")?n:function ste(n,t,e){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return t.push(nA()),{duration:0,delay:0,easing:""};r=Xy(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Xy(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!e){let a=!1,l=t.length;r<0&&(t.push(function vee(){return new L(3100,!1)}()),a=!0),s<0&&(t.push(function bee(){return new L(3101,!1)}()),a=!0),a&&t.splice(l,0,nA())}return{duration:r,delay:s,easing:o}}(n,t,e)}function kc(n,t={}){return Object.keys(n).forEach(e=>{t[e]=n[e]}),t}function fA(n){const t=new Map;return Object.keys(n).forEach(e=>{t.set(e,n[e])}),t}function fs(n,t=new Map,e){if(e)for(let[i,r]of e)t.set(i,r);for(let[i,r]of n)t.set(i,r);return t}function gA(n,t,e){return e?t+":"+e+";":""}function mA(n){let t="";for(let e=0;e<n.style.length;e++){const i=n.style.item(e);t+=gA(0,i,n.style.getPropertyValue(i))}for(const e in n.style)n.style.hasOwnProperty(e)&&!e.startsWith("_")&&(t+=gA(0,cte(e),n.style[e]));n.setAttribute("style",t)}function Ji(n,t,e){n.style&&(t.forEach((i,r)=>{const s=ev(r);e&&!e.has(r)&&e.set(r,n.style[s]),n.style[s]=i}),$y()&&mA(n))}function ro(n,t){n.style&&(t.forEach((e,i)=>{const r=ev(i);n.style[r]=""}),$y()&&mA(n))}function Ac(n){return Array.isArray(n)?1==n.length?n[0]:MT(n):n}const Jy=new RegExp("{{\\s*(.+?)\\s*}}","g");function _A(n){let t=[];if("string"==typeof n){let e;for(;e=Jy.exec(n);)t.push(e[1]);Jy.lastIndex=0}return t}function Oc(n,t,e){const i=n.toString(),r=i.replace(Jy,(s,o)=>{let a=t[o];return null==a&&(e.push(function Cee(n){return new L(3003,!1)}()),a=""),a.toString()});return r==i?n:r}function Yh(n){const t=[];let e=n.next();for(;!e.done;)t.push(e.value),e=n.next();return t}const lte=/-+([a-z0-9])/g;function ev(n){return n.replace(lte,(...t)=>t[1].toUpperCase())}function cte(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ii(n,t,e){switch(t.type){case 7:return n.visitTrigger(t,e);case 0:return n.visitState(t,e);case 1:return n.visitTransition(t,e);case 2:return n.visitSequence(t,e);case 3:return n.visitGroup(t,e);case 4:return n.visitAnimate(t,e);case 5:return n.visitKeyframes(t,e);case 6:return n.visitStyle(t,e);case 8:return n.visitReference(t,e);case 9:return n.visitAnimateChild(t,e);case 10:return n.visitAnimateRef(t,e);case 11:return n.visitQuery(t,e);case 12:return n.visitStagger(t,e);default:throw function See(n){return new L(3004,!1)}()}}function yA(n,t){return window.getComputedStyle(n)[t]}function gte(n,t){const e=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function mte(n,t,e){if(":"==n[0]){const l=function _te(n,t){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(e,i)=>parseFloat(i)>parseFloat(e);case":decrement":return(e,i)=>parseFloat(i)<parseFloat(e);default:return t.push(function Nee(n){return new L(3016,!1)}()),"* => *"}}(n,e);if("function"==typeof l)return void t.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function Lee(n){return new L(3015,!1)}()),t;const r=i[1],s=i[2],o=i[3];t.push(vA(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&t.push(vA(o,r))}(i,e,t)):e.push(n),e}const Jh=new Set(["true","1"]),ef=new Set(["false","0"]);function vA(n,t){const e=Jh.has(n)||ef.has(n),i=Jh.has(t)||ef.has(t);return(r,s)=>{let o="*"==n||n==r,a="*"==t||t==s;return!o&&e&&"boolean"==typeof r&&(o=r?Jh.has(n):ef.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?Jh.has(t):ef.has(t)),o&&a}}const yte=new RegExp("s*:selfs*,?","g");function tv(n,t,e,i){return new vte(n).build(t,e,i)}class vte{constructor(t){this._driver=t}build(t,e,i){const r=new Cte(e);return this._resetContextStyleTimingState(r),ii(this,Ac(t),r)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles=new Map,t.collectedStyles.set("",new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==t.name.charAt(0)&&e.errors.push(function xee(){return new L(3006,!1)}()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,e))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,e);i+=l.queryCount,r+=l.depCount,o.push(l)}else e.errors.push(function Eee(){return new L(3007,!1)}())}),{type:7,name:t.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(t,e){const i=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{_A(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&(Yh(s.values()),e.errors.push(function Tee(n,t){return new L(3008,!1)}()))}return{type:0,name:t.name,style:i,options:r?{params:r}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const i=ii(this,Ac(t.animation),e);return{type:1,matchers:gte(t.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:so(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(i=>ii(this,i,e)),options:so(t.options)}}visitGroup(t,e){const i=e.currentTime;let r=0;const s=t.steps.map(o=>{e.currentTime=i;const a=ii(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:so(t.options)}}visitAnimate(t,e){const i=function Dte(n,t){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return nv(qh(n,t).duration,0,"");const e=n;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=nv(0,0,"");return s.dynamic=!0,s.strValue=e,s}const r=qh(e,t);return nv(r.duration,r.delay,r.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;let r,s=t.styles?t.styles:Vn({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Vn(c)}e.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,e);l.isEmptyStep=a,r=l}return e.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(t,e){const i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){const i=[],r=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of r)"string"==typeof a?a===Cr?i.push(a):e.errors.push(new L(3002,!1)):i.push(fA(a));let s=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has("easing")&&(o=a.get("easing"),a.delete("easing")),!s))for(let l of a.values())if(l.toString().indexOf("{{")>=0){s=!0;break}}),{type:6,styles:i,easing:o,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){const i=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(o=>{"string"!=typeof o&&o.forEach((a,l)=>{const c=e.collectedStyles.get(e.currentQuerySelector),u=c.get(l);let d=!0;u&&(s!=r&&s>=u.startTime&&r<=u.endTime&&(e.errors.push(function Mee(n,t,e,i,r){return new L(3010,!1)}()),d=!1),s=u.startTime),d&&c.set(l,{startTime:s,endTime:r}),e.options&&function ate(n,t,e){const i=t.params||{},r=_A(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(function wee(n){return new L(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(t,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function kee(){return new L(3011,!1)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=t.steps.map(C=>{const x=this._makeStyleAst(C,e);let D=null!=x.offset?x.offset:function Ste(n){if("string"==typeof n)return null;let t=null;if(Array.isArray(n))n.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;t=parseFloat(i.get("offset")),i.delete("offset")}});else if(n instanceof Map&&n.has("offset")){const e=n;t=parseFloat(e.get("offset")),e.delete("offset")}return t}(x.styles),E=0;return null!=D&&(s++,E=x.offset=D),l=l||E<0||E>1,a=a||E<c,c=E,o.push(E),x});l&&e.errors.push(function Aee(){return new L(3012,!1)}()),a&&e.errors.push(function Oee(){return new L(3200,!1)}());const d=t.steps.length;let h=0;s>0&&s<d?e.errors.push(function Pee(){return new L(3202,!1)}()):0==s&&(h=1/(d-1));const f=d-1,p=e.currentTime,g=e.currentAnimateTimings,y=g.duration;return u.forEach((C,x)=>{const D=h>0?x==f?1:h*x:o[x],E=D*y;e.currentTime=p+g.delay+E,g.duration=E,this._validateStyleAst(C,e),C.offset=D,i.styles.push(C)}),i}visitReference(t,e){return{type:8,animation:ii(this,Ac(t.animation),e),options:so(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:so(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:so(t.options)}}visitQuery(t,e){const i=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;const[s,o]=function bte(n){const t=!!n.split(/\s*,\s*/).find(e=>":self"==e);return t&&(n=n.replace(yte,"")),n=n.replace(/@\*/g,Kh).replace(/@\w+/g,e=>Kh+"-"+e.slice(1)).replace(/:animating/g,Zy),[n,t]}(t.selector);e.currentQuerySelector=i.length?i+" "+s:s,ni(e.collectedStyles,e.currentQuerySelector,new Map);const a=ii(this,Ac(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:so(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(function Ree(){return new L(3013,!1)}());const i="full"===t.timings?{duration:0,delay:0,easing:"full"}:qh(t.timings,e.errors,!0);return{type:12,animation:ii(this,Ac(t.animation),e),timings:i,options:null}}}class Cte{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles=new Map,this.options=null,this.unsupportedCSSPropertiesFound=new Set}}function so(n){return n?(n=kc(n)).params&&(n.params=function wte(n){return n?kc(n):null}(n.params)):n={},n}function nv(n,t,e){return{duration:n,delay:t,easing:e}}function iv(n,t,e,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:t,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class tf{constructor(){this._map=new Map}get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const Tte=new RegExp(":enter","g"),Mte=new RegExp(":leave","g");function rv(n,t,e,i,r,s=new Map,o=new Map,a,l,c=[]){return(new kte).buildKeyframes(n,t,e,i,r,s,o,a,l,c)}class kte{buildKeyframes(t,e,i,r,s,o,a,l,c,u=[]){c=c||new tf;const d=new sv(t,e,c,r,s,u,[]);d.options=l;const h=l.delay?Or(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([o],null,d.errors,l),ii(this,i,d);const f=d.timelines.filter(p=>p.containsAnimation());if(f.length&&a.size){let p;for(let g=f.length-1;g>=0;g--){const y=f[g];if(y.element===e){p=y;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,d.errors,l)}return f.length?f.map(p=>p.buildKeyframes()):[iv(e,[],[],[],0,h,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){const i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(const r of t){const s=r?.delay;if(s){const o="number"==typeof s?s:Or(Oc(s,r?.params??{},e.errors));i.delayNextStep(o)}}}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime;const o=null!=i.duration?Or(i.duration):null,a=null!=i.delay?Or(i.delay):null;return 0!==o&&t.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),ii(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const i=e.subContextCount;let r=e;const s=t.options;if(s&&(s.params||s.delay)&&(r=e.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=nf);const o=Or(s.delay);r.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>ii(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const i=[];let r=e.currentTimeline.currentTime;const s=t.options&&t.options.delay?Or(t.options.delay):0;t.steps.forEach(o=>{const a=e.createSubContext(t.options);s&&a.delayNextStep(s),ii(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(r),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const i=t.strValue;return qh(e.params?Oc(i,e.params,e.errors):i,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const i=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const s=t.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const s=r&&r.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(r+s),e.previousNode=t}visitQuery(t,e){const i=e.currentTimeline.currentTime,r=t.options||{},s=r.delay?Or(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=nf);let o=i;const a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(t.options,c);s&&d.delayNextStep(s),c===e.element&&(l=d.currentTimeline),ii(this,t.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const i=e.parentContext,r=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1);let l=o*e.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=e.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;ii(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const nf={};class sv{constructor(t,e,i,r,s,o,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=nf,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new rf(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const i=t;let r=this.options;null!=i.duration&&(r.duration=Or(i.duration)),null!=i.delay&&(r.delay=Or(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=Oc(s[a],o,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const i=t.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return t}createSubContext(t=null,e,i){const r=e||this.element,s=new sv(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=nf,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){const r={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:""},s=new Ate(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,r,s,o){let a=[];if(r&&a.push(this.element),t.length>0){t=(t=t.replace(Tte,"."+this._enterClassName)).replace(Mte,"."+this._leaveClassName);let c=this._driver.query(this.element,t,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function Fee(n){return new L(3014,!1)}()),a}}class rf{constructor(t,e,i,r){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe=new Map,this._currentKeyframe=new Map,this._keyframes=new Map,this._styleSummary=new Map,this._localTimelineStyles=new Map,this._pendingStyles=new Map,this._backFill=new Map,this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(t){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new rf(this._driver,t,e||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set("easing",t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Cr),this._currentKeyframe.set(e,Cr);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,r){e&&this._previousKeyframe.set("easing",e);const s=r&&r.params||{},o=function Ote(n,t){const e=new Map;let i;return n.forEach(r=>{if("*"===r){i=i||t.keys();for(let s of i)e.set(s,Cr)}else fs(r,e)}),e}(t,this._globalTimelineStyles);for(let[a,l]of o){const c=Oc(l,s,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Cr),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=fs(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?t.add(d):u===Cr&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const s=t.size?Yh(t.values()):[],o=e.size?Yh(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return iv(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class Ate extends rf{constructor(t,e,i,r,s,o,a=!1){super(t,e,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,a=e/o,l=fs(t[0]);l.set("offset",0),s.push(l);const c=fs(t[0]);c.set("offset",CA(a)),s.push(c);const u=t.length-1;for(let d=1;d<=u;d++){let h=fs(t[d]);const f=h.get("offset");h.set("offset",CA((e+f*i)/o)),s.push(h)}i=o,e=0,r="",t=s}return iv(this.element,t,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function CA(n,t=3){const e=Math.pow(10,t-1);return Math.round(n*e)/e}class ov{}const Pte=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]);class Rte extends ov{normalizePropertyName(t,e){return ev(t)}normalizeStyleValue(t,e,i,r){let s="";const o=i.toString().trim();if(Pte.has(e)&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function Dee(n,t){return new L(3005,!1)}())}return o+s}}function SA(n,t,e,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:t,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const av={};class DA{constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,r){return function Fte(n,t,e,i,r){return n.some(s=>s(t,e,i,r))}(this.ast.matchers,t,e,i,r)}buildStyles(t,e,i){let r=this._stateStyles.get("*");return void 0!==t&&(r=this._stateStyles.get(t?.toString())||r),r?r.buildStyles(e,i):new Map}build(t,e,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||av,p=this.buildStyles(i,a&&a.params||av,d),g=l&&l.params||av,y=this.buildStyles(r,g,d),C=new Set,x=new Map,D=new Map,E="void"===r,k={params:Lte(g,h),delay:this.ast.options?.delay},P=u?[]:rv(t,e,this.ast.animation,s,o,p,y,k,c,d);let V=0;if(P.forEach(j=>{V=Math.max(j.duration+j.delay,V)}),d.length)return SA(e,this._triggerName,i,r,E,p,y,[],[],x,D,V,d);P.forEach(j=>{const J=j.element,me=ni(x,J,new Set);j.preStyleProps.forEach(Xe=>me.add(Xe));const Ie=ni(D,J,new Set);j.postStyleProps.forEach(Xe=>Ie.add(Xe)),J!==e&&C.add(J)});const H=Yh(C.values());return SA(e,this._triggerName,i,r,E,p,y,P,H,x,D,V)}}function Lte(n,t){const e=kc(t);for(const i in n)n.hasOwnProperty(i)&&null!=n[i]&&(e[i]=n[i]);return e}class Nte{constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){const i=new Map,r=kc(this.defaultParams);return Object.keys(t).forEach(s=>{const o=t[s];null!==o&&(r[s]=o)}),this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((o,a)=>{o&&(o=Oc(o,r,e));const l=this.normalizer.normalizePropertyName(a,e);o=this.normalizer.normalizeStyleValue(a,l,o,e),i.set(l,o)})}),i}}class Bte{constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new Nte(r.style,r.options&&r.options.params||{},i))}),xA(this.states,"true","1"),xA(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new DA(t,r,this.states))}),this.fallbackTransition=function Hte(n,t,e){return new DA(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},t)}(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,r){return this.transitionFactories.find(o=>o.match(t,e,i,r))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}}function xA(n,t,e){n.has(t)?n.has(e)||n.set(e,n.get(t)):n.has(e)&&n.set(t,n.get(e))}const zte=new tf;class jte{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(t,e){const i=[],s=tv(this._driver,e,i,[]);if(i.length)throw function jee(n){return new L(3503,!1)}();this._animations.set(t,s)}_buildPlayer(t,e,i){const r=t.element,s=iA(0,this._normalizer,0,t.keyframes,e,i);return this._driver.animate(r,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){const r=[],s=this._animations.get(t);let o;const a=new Map;if(s?(o=rv(this._driver,e,s,Qy,Wh,new Map,new Map,i,zte,r),o.forEach(u=>{const d=ni(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function $ee(){return new L(3300,!1)}()),o=[]),r.length)throw function Uee(n){return new L(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,f)=>{u.set(f,this._driver.computeStyle(d,f,Cr))})});const c=hs(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){const e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){const e=this._playersById.get(t);if(!e)throw function Wee(n){return new L(3301,!1)}();return e}listen(t,e,i,r){const s=Gy(e,"","","");return Uy(this._getPlayer(t),i,s,r),()=>{}}command(t,e,i,r){if("register"==i)return void this.register(t,r[0]);if("create"==i)return void this.create(t,e,r[0]||{});const s=this._getPlayer(t);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}}const EA="ng-animate-queued",lv="ng-animate-disabled",Kte=[],TA={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},qte={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},_i="__ng_removed";class cv{constructor(t,e=""){this.namespaceId=e;const i=t&&t.hasOwnProperty("value");if(this.value=function Xte(n){return n??null}(i?t.value:t),i){const s=kc(t);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Pc="void",uv=new cv(Pc);class Yte{constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,yi(e,this._hostClassName)}listen(t,e,i,r){if(!this._triggers.has(e))throw function Gee(n,t){return new L(3302,!1)}();if(null==i||0==i.length)throw function Kee(n){return new L(3303,!1)}();if(!function Jte(n){return"start"==n||"done"==n}(i))throw function qee(n,t){return new L(3400,!1)}();const s=ni(this._elementListeners,t,[]),o={name:e,phase:i,callback:r};s.push(o);const a=ni(this._engine.statesByElement,t,new Map);return a.has(e)||(yi(t,Gh),yi(t,Gh+"-"+e),a.set(e,uv)),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return!this._triggers.has(t)&&(this._triggers.set(t,e),!0)}_getTrigger(t){const e=this._triggers.get(t);if(!e)throw function Yee(n){return new L(3401,!1)}();return e}trigger(t,e,i,r=!0){const s=this._getTrigger(e),o=new dv(this.id,e,t);let a=this._engine.statesByElement.get(t);a||(yi(t,Gh),yi(t,Gh+"-"+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e);const c=new cv(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=uv),c.value!==Pc&&l.value===c.value){if(!function nne(n,t){const e=Object.keys(n),i=Object.keys(t);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){const s=e[r];if(!t.hasOwnProperty(s)||n[s]!==t[s])return!1}return!0}(l.params,c.params)){const g=[],y=s.matchStyles(l.value,l.params,g),C=s.matchStyles(c.value,c.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{ro(t,y),Ji(t,C)})}return}const h=ni(this._engine.playersByElement,t,[]);h.forEach(g=>{g.namespaceId==this.id&&g.triggerName==e&&g.queued&&g.destroy()});let f=s.matchTransition(l.value,c.value,t,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(yi(t,EA),o.onStart(()=>{Sa(t,EA)})),o.onDone(()=>{let g=this.players.indexOf(o);g>=0&&this.players.splice(g,1);const y=this._engine.playersByElement.get(t);if(y){let C=y.indexOf(o);C>=0&&y.splice(C,1)}}),this.players.push(o),h.push(o),o}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const i=this._engine.driver.query(t,Kh,!0);i.forEach(r=>{if(r[_i])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,e,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(t,e,i,r){const s=this._engine.statesByElement.get(t),o=new Map;if(s){const a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){const u=this.trigger(t,c,Pc,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),i&&hs(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){const r=new Set;e.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers.get(o).fallbackTransition,c=i.get(o)||uv,u=new cv(Pc),d=new dv(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(t,e){const i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)r=!0;else{let o=t;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(t),r)i.markElementAsRemoved(this.id,t,!1,e);else{const s=t[_i];(!s||s===TA)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){yi(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=Gy(s,i.triggerName,i.fromState.value,i.toState.value);l._data=t,Uy(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):e.push(i)}),this._queue=[],e.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(i=>i.element===t)||e,e}}class Qte{constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=(r,s)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){const i=new Yte(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){const i=this._namespaceList,r=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(e);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(t)}else i.push(t);return r.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let r=this._namespaceLookup[t];r&&r.register(e,i)&&this.totalAnimations++}destroy(t,e){if(!t)return;const i=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[t];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,i=this.statesByElement.get(t);if(i)for(let r of i.values())if(r.namespaceId){const s=this._fetchNamespace(r.namespaceId);s&&e.add(s)}return e}trigger(t,e,i,r){if(sf(e)){const s=this._fetchNamespace(t);if(s)return s.trigger(e,i,r),!0}return!1}insertNode(t,e,i,r){if(!sf(e))return;const s=e[_i];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){const o=this._fetchNamespace(t);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),yi(t,lv)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Sa(t,lv))}removeNode(t,e,i,r){if(sf(e)){const s=t?this._fetchNamespace(t):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(t,e,!1,r),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(t,e,i,r,s){this.collectedLeaveElements.push(e),e[_i]={namespaceId:t,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,i,r,s){return sf(e)?this._fetchNamespace(t).listen(e,i,r,s):()=>{}}_buildInstruction(t,e,i,r,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,r,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,Kh,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,Zy,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return hs(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t[_i];if(e&&e.setForRemoval){if(t[_i]=TA,e.namespaceId){this.destroyInnerAnimations(t);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(lv)&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)yi(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,t)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],e.length?hs(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(t){throw function Qee(n){return new L(3402,!1)}()}_flushAnimations(t,e){const i=new tf,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(z=>{u.add(z);const $=this.driver.query(z,".ng-animate-queued",!0);for(let ee=0;ee<$.length;ee++)u.add($[ee])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=kA(h,this.collectedEnterElements),p=new Map;let g=0;f.forEach((z,$)=>{const ee=Qy+g++;p.set($,ee),z.forEach(de=>yi(de,ee))});const y=[],C=new Set,x=new Set;for(let z=0;z<this.collectedLeaveElements.length;z++){const $=this.collectedLeaveElements[z],ee=$[_i];ee&&ee.setForRemoval&&(y.push($),C.add($),ee.hasAnimation?this.driver.query($,".ng-star-inserted",!0).forEach(de=>C.add(de)):x.add($))}const D=new Map,E=kA(h,Array.from(C));E.forEach((z,$)=>{const ee=Wh+g++;D.set($,ee),z.forEach(de=>yi(de,ee))}),t.push(()=>{f.forEach((z,$)=>{const ee=p.get($);z.forEach(de=>Sa(de,ee))}),E.forEach((z,$)=>{const ee=D.get($);z.forEach(de=>Sa(de,ee))}),y.forEach(z=>{this.processLeaveNode(z)})});const k=[],P=[];for(let z=this._namespaceList.length-1;z>=0;z--)this._namespaceList[z].drainQueuedTransitions(e).forEach(ee=>{const de=ee.player,gt=ee.element;if(k.push(de),this.collectedEnterElements.length){const Dn=gt[_i];if(Dn&&Dn.setForMove){if(Dn.previousTriggersValues&&Dn.previousTriggersValues.has(ee.triggerName)){const ho=Dn.previousTriggersValues.get(ee.triggerName),vi=this.statesByElement.get(ee.element);if(vi&&vi.has(ee.triggerName)){const If=vi.get(ee.triggerName);If.value=ho,vi.set(ee.triggerName,If)}}return void de.destroy()}}const Pn=!d||!this.driver.containsElement(d,gt),Vt=D.get(gt),zn=p.get(gt),Je=this._buildInstruction(ee,i,zn,Vt,Pn);if(Je.errors&&Je.errors.length)return void P.push(Je);if(Pn)return de.onStart(()=>ro(gt,Je.fromStyles)),de.onDestroy(()=>Ji(gt,Je.toStyles)),void r.push(de);if(ee.isFallbackTransition)return de.onStart(()=>ro(gt,Je.fromStyles)),de.onDestroy(()=>Ji(gt,Je.toStyles)),void r.push(de);const ys=[];Je.timelines.forEach(Dn=>{Dn.stretchStartingKeyframe=!0,this.disabledNodes.has(Dn.element)||ys.push(Dn)}),Je.timelines=ys,i.append(gt,Je.timelines),o.push({instruction:Je,player:de,element:gt}),Je.queriedElements.forEach(Dn=>ni(a,Dn,[]).push(de)),Je.preStyleProps.forEach((Dn,ho)=>{if(Dn.size){let vi=l.get(ho);vi||l.set(ho,vi=new Set),Dn.forEach((If,jv)=>vi.add(jv))}}),Je.postStyleProps.forEach((Dn,ho)=>{let vi=c.get(ho);vi||c.set(ho,vi=new Set),Dn.forEach((If,jv)=>vi.add(jv))})});if(P.length){const z=[];P.forEach($=>{z.push(function Zee(n,t){return new L(3505,!1)}())}),k.forEach($=>$.destroy()),this.reportError(z)}const V=new Map,H=new Map;o.forEach(z=>{const $=z.element;i.has($)&&(H.set($,$),this._beforeAnimationBuild(z.player.namespaceId,z.instruction,V))}),r.forEach(z=>{const $=z.element;this._getPreviousPlayers($,!1,z.namespaceId,z.triggerName,null).forEach(de=>{ni(V,$,[]).push(de),de.destroy()})});const j=y.filter(z=>OA(z,l,c)),J=new Map;MA(J,this.driver,x,c,Cr).forEach(z=>{OA(z,l,c)&&j.push(z)});const Ie=new Map;f.forEach((z,$)=>{MA(Ie,this.driver,new Set(z),l,"!")}),j.forEach(z=>{const $=J.get(z),ee=Ie.get(z);J.set(z,new Map([...Array.from($?.entries()??[]),...Array.from(ee?.entries()??[])]))});const Xe=[],Nt=[],Ne={};o.forEach(z=>{const{element:$,player:ee,instruction:de}=z;if(i.has($)){if(u.has($))return ee.onDestroy(()=>Ji($,de.toStyles)),ee.disabled=!0,ee.overrideTotalTime(de.totalTime),void r.push(ee);let gt=Ne;if(H.size>1){let Vt=$;const zn=[];for(;Vt=Vt.parentNode;){const Je=H.get(Vt);if(Je){gt=Je;break}zn.push(Vt)}zn.forEach(Je=>H.set(Je,gt))}const Pn=this._buildAnimation(ee.namespaceId,de,V,s,Ie,J);if(ee.setRealPlayer(Pn),gt===Ne)Xe.push(ee);else{const Vt=this.playersByElement.get(gt);Vt&&Vt.length&&(ee.parentPlayer=hs(Vt)),r.push(ee)}}else ro($,de.fromStyles),ee.onDestroy(()=>Ji($,de.toStyles)),Nt.push(ee),u.has($)&&r.push(ee)}),Nt.forEach(z=>{const $=s.get(z.element);if($&&$.length){const ee=hs($);z.setRealPlayer(ee)}}),r.forEach(z=>{z.parentPlayer?z.syncPlayerEvents(z.parentPlayer):z.destroy()});for(let z=0;z<y.length;z++){const $=y[z],ee=$[_i];if(Sa($,Wh),ee&&ee.hasAnimation)continue;let de=[];if(a.size){let Pn=a.get($);Pn&&Pn.length&&de.push(...Pn);let Vt=this.driver.query($,Zy,!0);for(let zn=0;zn<Vt.length;zn++){let Je=a.get(Vt[zn]);Je&&Je.length&&de.push(...Je)}}const gt=de.filter(Pn=>!Pn.destroyed);gt.length?ene(this,$,gt):this.processLeaveNode($)}return y.length=0,Xe.forEach(z=>{this.players.push(z),z.onDone(()=>{z.destroy();const $=this.players.indexOf(z);this.players.splice($,1)}),z.play()}),Xe}elementContainsData(t,e){let i=!1;const r=e[_i];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(e)&&(i=!0),this.playersByQueriedElement.has(e)&&(i=!0),this.statesByElement.has(e)&&(i=!0),this._fetchNamespace(t).elementContainsData(e)||i}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(t);a&&(o=a)}else{const a=this.playersByElement.get(t);if(a){const l=!s||s==Pc;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(t,e,i){const s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,d=ni(i,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}ro(s,e.fromStyles)}_buildAnimation(t,e,i,r,s,o){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(p=>{const g=p.element;u.add(g);const y=g[_i];if(y&&y.removedBeforeQueried)return new tc(p.duration,p.delay);const C=g!==l,x=function tne(n){const t=[];return AA(n,t),t}((i.get(g)||Kte).map(V=>V.getRealPlayer())).filter(V=>!!V.element&&V.element===g),D=s.get(g),E=o.get(g),k=iA(0,this._normalizer,0,p.keyframes,D,E),P=this._buildPlayer(p,k,x);if(p.subTimeline&&r&&d.add(g),C){const V=new dv(t,a,g);V.setRealPlayer(P),c.push(V)}return P});c.forEach(p=>{ni(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function Zte(n,t,e){let i=n.get(t);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&n.delete(t)}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>yi(p,hA));const f=hs(h);return f.onDestroy(()=>{u.forEach(p=>Sa(p,hA)),Ji(l,e.toStyles)}),d.forEach(p=>{ni(r,p,[]).push(f)}),f}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new tc(t.duration,t.delay)}}class dv{constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i,this._player=new tc,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>Uy(t,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){ni(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}init(){this._player.init()}hasStarted(){return!this.queued&&this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function sf(n){return n&&1===n.nodeType}function IA(n,t){const e=n.style.display;return n.style.display=t??"none",e}function MA(n,t,e,i,r){const s=[];e.forEach(l=>s.push(IA(l)));const o=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=t.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[_i]=qte,o.push(c))}),n.set(c,u)});let a=0;return e.forEach(l=>IA(l,s[a++])),o}function kA(n,t){const e=new Map;if(n.forEach(a=>e.set(a,[])),0==t.length)return e;const r=new Set(t),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=e.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return t.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function yi(n,t){n.classList?.add(t)}function Sa(n,t){n.classList?.remove(t)}function ene(n,t,e){hs(e).onDone(()=>n.processLeaveNode(t))}function AA(n,t){for(let e=0;e<n.length;e++){const i=n[e];i instanceof PT?AA(i.players,t):t.push(i)}}function OA(n,t,e){const i=e.get(n);if(!i)return!1;let r=t.get(n);return r?i.forEach(s=>r.add(s)):t.set(n,i),e.delete(n),!0}class af{constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new Qte(t,e,i),this._timelineEngine=new jte(t,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(t,e,i,r,s){const o=t+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=tv(this._driver,s,l,[]);if(l.length)throw function Hee(n,t){return new L(3404,!1)}();a=function Vte(n,t,e){return new Bte(n,t,e)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,r){this._transitionEngine.insertNode(t,e,i,r)}onRemove(t,e,i,r){this._transitionEngine.removeNode(t,e,r||!1,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,r){if("@"==i.charAt(0)){const[s,o]=rA(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(t,e,i,r)}listen(t,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=rA(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,i,r,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let rne=(()=>{class n{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(e);s||n.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Ji(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Ji(this._element,this._initialStyles),this._endStyles&&(Ji(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(ro(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(ro(this._element,this._endStyles),this._endStyles=null),Ji(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function hv(n){let t=null;return n.forEach((e,i)=>{(function sne(n){return"display"===n||"position"===n})(i)&&(t=t||new Map,t.set(i,e))}),t}class PA{constructor(t,e,i,r){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this._originalOnDoneFns=[],this._originalOnStartFns=[],this.time=0,this.parentPlayer=null,this.currentSnapshot=new Map,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(t){const e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){return t.animate(this._convertKeyframesToObject(e),i)}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}setPosition(t){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&t.set(r,this._finished?i:yA(this.element,r))}),this.currentSnapshot=t}triggerCallback(t){const e="start"===t?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class one{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}matchesElement(t,e){return!1}containsElement(t,e){return lA(t,e)}getParentElement(t){return qy(t)}query(t,e,i){return cA(t,e,i)}computeStyle(t,e,i){return window.getComputedStyle(t)[e]}animate(t,e,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c=new Map,u=o.filter(f=>f instanceof PA);(function ute(n,t){return 0===n||0===t})(i,r)&&u.forEach(f=>{f.currentSnapshot.forEach((p,g)=>c.set(g,p))});let d=function ote(n){return n.length?n[0]instanceof Map?n:n.map(t=>fA(t)):[]}(e).map(f=>fs(f));d=function dte(n,t,e){if(e.size&&t.length){let i=t[0],r=[];if(e.forEach((s,o)=>{i.has(o)||r.push(o),i.set(o,s)}),r.length)for(let s=1;s<t.length;s++){let o=t[s];r.forEach(a=>o.set(a,yA(n,a)))}}return t}(t,d,c);const h=function ine(n,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=hv(t[0]),t.length>1&&(i=hv(t[t.length-1]))):t instanceof Map&&(e=hv(t)),e||i?new rne(n,e,i):null}(t,d);return new PA(t,d,l,h)}}let ane=(()=>{class n extends IT{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Ci.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?MT(e):e;return RA(this._renderer,null,i,"register",[r]),new lne(i,this._renderer)}}return n.\u0275fac=function(e){return new(e||n)(K(rl),K(Mt))},n.\u0275prov=Z({token:n,factory:n.\u0275fac}),n})();class lne extends mU{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new cne(this._id,t,e||{},this._renderer)}}class cne{constructor(t,e,i,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return RA(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}init(){this._command("init")}hasStarted(){return this._started}play(){this._command("play"),this._started=!0}pause(){this._command("pause")}restart(){this._command("restart")}finish(){this._command("finish")}destroy(){this._command("destroy")}reset(){this._command("reset"),this._started=!1}setPosition(t){this._command("setPosition",t)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function RA(n,t,e,i,r){return n.setProperty(t,`@@${e}:${i}`,r)}const FA="@.disabled";let une=(()=>{class n{constructor(e,i,r){this.delegate=e,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=o?.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(e,i){const s=this.delegate.createRenderer(e,i);if(!(e&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new LA("",s,this.engine,()=>this._rendererCache.delete(s)),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,e,u.name,u)};return i.data.animation.forEach(l),new dne(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(e,i,r){e>=0&&e<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}end(){this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}}return n.\u0275fac=function(e){return new(e||n)(K(rl),K(af),K(Qe))},n.\u0275prov=Z({token:n,factory:n.\u0275fac}),n})();class LA{constructor(t,e,i,r){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=r,this.destroyNode=this.delegate.destroyNode?s=>e.destroyNode(s):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy(),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,r=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,r)}removeChild(t,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,r){this.delegate.setAttribute(t,e,i,r)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,r){this.delegate.setStyle(t,e,i,r)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){"@"==e.charAt(0)&&e==FA?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i){return this.delegate.listen(t,e,i)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class dne extends LA{constructor(t,e,i,r,s){super(e,i,r,s),this.factory=t,this.namespaceId=e}setProperty(t,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==FA?this.disableAnimations(t,i=void 0===i||!!i):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i){if("@"==e.charAt(0)){const r=function hne(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(t);let s=e.slice(1),o="";return"@"!=s.charAt(0)&&([s,o]=function fne(n){const t=n.indexOf(".");return[n.substring(0,t),n.slice(t+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(t,e,i)}}const NA=[{provide:IT,useClass:ane},{provide:ov,useFactory:function gne(){return new Rte}},{provide:af,useClass:(()=>{class n extends af{constructor(e,i,r,s){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(e){return new(e||n)(K(Mt),K(Yy),K(ov),K(Sl))},n.\u0275prov=Z({token:n,factory:n.\u0275fac}),n})()},{provide:rl,useFactory:function mne(n,t,e){return new une(n,t,e)},deps:[Sd,af,Qe]}],fv=[{provide:Yy,useFactory:()=>new one},{provide:AS,useValue:"BrowserAnimations"},...NA],VA=[{provide:Yy,useClass:uA},{provide:AS,useValue:"NoopAnimations"},...NA];let BA=(()=>{class n{static withConfig(e){return{ngModule:n,providers:e.disableAnimations?VA:fv}}}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({providers:fv,imports:[Dd]}),n})(),_ne=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({imports:[We,Jk,Xk,hI,eA,es,ec,sh,DI,qk,tA,ic,Dd,BA,$T,cI,X_,fI,Uk,Gk,Jk,Xk,hI,eA,es,ec,sh,DI,qk,tA,ic,Dd,BA,$T,cI,X_,fI,Uk,Gk]}),n})();function HA(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);t&&(i=i.filter(function(r){return Object.getOwnPropertyDescriptor(n,r).enumerable})),e.push.apply(e,i)}return e}function q(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?HA(Object(e),!0).forEach(function(i){qt(n,i,e[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):HA(Object(e)).forEach(function(i){Object.defineProperty(n,i,Object.getOwnPropertyDescriptor(e,i))})}return n}function cf(n){return(cf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(n)}function zA(n,t){for(var e=0;e<t.length;e++){var i=t[e];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(n,i.key,i)}}function qt(n,t,e){return t in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function pv(n,t){return function Cne(n){if(Array.isArray(n))return n}(n)||function Dne(n,t){var e=null==n?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(null!=e){var o,a,i=[],r=!0,s=!1;try{for(e=e.call(n);!(r=(o=e.next()).done)&&(i.push(o.value),!t||i.length!==t);r=!0);}catch(l){s=!0,a=l}finally{try{!r&&null!=e.return&&e.return()}finally{if(s)throw a}}return i}}(n,t)||jA(n,t)||function Ene(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fc(n){return function wne(n){if(Array.isArray(n))return gv(n)}(n)||function Sne(n){if(typeof Symbol<"u"&&null!=n[Symbol.iterator]||null!=n["@@iterator"])return Array.from(n)}(n)||jA(n)||function xne(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function jA(n,t){if(n){if("string"==typeof n)return gv(n,t);var e=Object.prototype.toString.call(n).slice(8,-1);if("Object"===e&&n.constructor&&(e=n.constructor.name),"Map"===e||"Set"===e)return Array.from(n);if("Arguments"===e||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(e))return gv(n,t)}}function gv(n,t){(null==t||t>n.length)&&(t=n.length);for(var e=0,i=new Array(t);e<t;e++)i[e]=n[e];return i}var $A=function(){},mv={},UA={},WA=null,GA={mark:$A,measure:$A};try{typeof window<"u"&&(mv=window),typeof document<"u"&&(UA=document),typeof MutationObserver<"u"&&(WA=MutationObserver),typeof performance<"u"&&(GA=performance)}catch{}var hf,ff,pf,gf,mf,KA=(mv.navigator||{}).userAgent,qA=void 0===KA?"":KA,ps=mv,ft=UA,YA=WA,df=GA,Pr=!!ft.documentElement&&!!ft.head&&"function"==typeof ft.addEventListener&&"function"==typeof ft.createElement,QA=~qA.indexOf("MSIE")||~qA.indexOf("Trident/"),Rr="___FONT_AWESOME___",XA="svg-inline--fa",oo="data-fa-i2svg",yv="data-fa-pseudo-element",vv="data-prefix",bv="data-icon",JA="fontawesome-i2svg",kne=["HTML","HEAD","STYLE","SCRIPT"],eO=function(){try{return!0}catch{return!1}}(),pt="classic",It="sharp",wv=[pt,It];function Lc(n){return new Proxy(n,{get:function(e,i){return i in e?e[i]:e[pt]}})}var Nc=Lc((qt(hf={},pt,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),qt(hf,It,{fa:"solid",fass:"solid","fa-solid":"solid"}),hf)),Vc=Lc((qt(ff={},pt,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),qt(ff,It,{solid:"fass"}),ff)),Bc=Lc((qt(pf={},pt,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),qt(pf,It,{fass:"fa-solid"}),pf)),Ane=Lc((qt(gf={},pt,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),qt(gf,It,{"fa-solid":"fass"}),gf)),One=/fa(s|r|l|t|d|b|k|ss)?[\-\ ]/,tO="fa-layers-text",Pne=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,Rne=Lc((qt(mf={},pt,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),qt(mf,It,{900:"fass"}),mf)),nO=[1,2,3,4,5,6,7,8,9,10],Fne=nO.concat([11,12,13,14,15,16,17,18,19,20]),Lne=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],Hc=new Set;Object.keys(Vc[pt]).map(Hc.add.bind(Hc)),Object.keys(Vc[It]).map(Hc.add.bind(Hc));var Nne=[].concat(wv,Fc(Hc),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul","duotone-group","swap-opacity","primary","secondary"]).concat(nO.map(function(n){return"".concat(n,"x")})).concat(Fne.map(function(n){return"w-".concat(n)})),zc=ps.FontAwesomeConfig||{};ft&&"function"==typeof ft.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach(function(n){var t=pv(n,2),i=t[1],r=function Bne(n){return""===n||"false"!==n&&("true"===n||n)}(function Vne(n){var t=ft.querySelector("script["+n+"]");if(t)return t.getAttribute(n)}(t[0]));null!=r&&(zc[i]=r)});var iO={styleDefault:"solid",familyDefault:"classic",cssPrefix:"fa",replacementClass:XA,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};zc.familyPrefix&&(zc.cssPrefix=zc.familyPrefix);var Da=q(q({},iO),zc);Da.autoReplaceSvg||(Da.observeMutations=!1);var te={};Object.keys(iO).forEach(function(n){Object.defineProperty(te,n,{enumerable:!0,set:function(e){Da[n]=e,jc.forEach(function(i){return i(te)})},get:function(){return Da[n]}})}),Object.defineProperty(te,"familyPrefix",{enumerable:!0,set:function(t){Da.cssPrefix=t,jc.forEach(function(e){return e(te)})},get:function(){return Da.cssPrefix}}),ps.FontAwesomeConfig=te;var jc=[],er={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function $c(){for(var n=12,t="";n-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function xa(n){for(var t=[],e=(n||[]).length>>>0;e--;)t[e]=n[e];return t}function Cv(n){return n.classList?xa(n.classList):(n.getAttribute("class")||"").split(" ").filter(function(t){return t})}function rO(n){return"".concat(n).replace(/&/g,"&").replace(/"/g,""").replace(/'/g,"'").replace(/</g,"<").replace(/>/g,">")}function _f(n){return Object.keys(n||{}).reduce(function(t,e){return t+"".concat(e,": ").concat(n[e].trim(),";")},"")}function Sv(n){return n.size!==er.size||n.x!==er.x||n.y!==er.y||n.rotate!==er.rotate||n.flipX||n.flipY}function sO(){var n="fa",t=XA,e=te.cssPrefix,i=te.replacementClass,r=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n transition-delay: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';if(e!==n||i!==t){var s=new RegExp("\\.".concat(n,"\\-"),"g"),o=new RegExp("\\--".concat(n,"\\-"),"g"),a=new RegExp("\\.".concat(t),"g");r=r.replace(s,".".concat(e,"-")).replace(o,"--".concat(e,"-")).replace(a,".".concat(i))}return r}var oO=!1;function Dv(){te.autoAddCss&&!oO&&(function jne(n){if(n&&Pr){var t=ft.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=n;for(var e=ft.head.childNodes,i=null,r=e.length-1;r>-1;r--){var s=e[r],o=(s.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(i=s)}ft.head.insertBefore(t,i)}}(sO()),oO=!0)}var qne={mixout:function(){return{dom:{css:sO,insertCss:Dv}}},hooks:function(){return{beforeDOMElementCreation:function(){Dv()},beforeI2svg:function(){Dv()}}}},Fr=ps||{};Fr[Rr]||(Fr[Rr]={}),Fr[Rr].styles||(Fr[Rr].styles={}),Fr[Rr].hooks||(Fr[Rr].hooks={}),Fr[Rr].shims||(Fr[Rr].shims=[]);var Vi=Fr[Rr],aO=[],yf=!1;function Qne(n){!Pr||(yf?setTimeout(n,0):aO.push(n))}function Uc(n){var t=n.tag,e=n.attributes,i=void 0===e?{}:e,r=n.children,s=void 0===r?[]:r;return"string"==typeof n?rO(n):"<".concat(t," ").concat(function Une(n){return Object.keys(n||{}).reduce(function(t,e){return t+"".concat(e,'="').concat(rO(n[e]),'" ')},"").trim()}(i),">").concat(s.map(Uc).join(""),"</").concat(t,">")}function lO(n,t,e){if(n&&n[t]&&n[t][e])return{prefix:t,iconName:e,icon:n[t][e]}}Pr&&((yf=(ft.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(ft.readyState))||ft.addEventListener("DOMContentLoaded",function n(){ft.removeEventListener("DOMContentLoaded",n),yf=1,aO.map(function(t){return t()})}));var xv=function(t,e,i,r){var l,c,u,s=Object.keys(t),o=s.length,a=void 0!==r?function(t,e){return function(i,r,s,o){return t.call(e,i,r,s,o)}}(e,r):e;for(void 0===i?(l=1,u=t[s[0]]):(l=0,u=i);l<o;l++)u=a(u,t[c=s[l]],c,t);return u};function Ev(n){var t=function Xne(n){for(var t=[],e=0,i=n.length;e<i;){var r=n.charCodeAt(e++);if(r>=55296&&r<=56319&&e<i){var s=n.charCodeAt(e++);56320==(64512&s)?t.push(((1023&r)<<10)+(1023&s)+65536):(t.push(r),e--)}else t.push(r)}return t}(n);return 1===t.length?t[0].toString(16):null}function cO(n){return Object.keys(n).reduce(function(t,e){var i=n[e];return i.icon?t[i.iconName]=i.icon:t[e]=i,t},{})}function Tv(n,t){var e=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=e.skipHooks,r=void 0!==i&&i,s=cO(t);"function"!=typeof Vi.hooks.addPack||r?Vi.styles[n]=q(q({},Vi.styles[n]||{}),s):Vi.hooks.addPack(n,cO(t)),"fas"===n&&Tv("fa",t)}var vf,bf,wf,Ea=Vi.styles,eie=Vi.shims,tie=(qt(vf={},pt,Object.values(Bc[pt])),qt(vf,It,Object.values(Bc[It])),vf),Iv=null,uO={},dO={},hO={},fO={},pO={},nie=(qt(bf={},pt,Object.keys(Nc[pt])),qt(bf,It,Object.keys(Nc[It])),bf);function rie(n,t){var e=t.split("-"),i=e[0],r=e.slice(1).join("-");return i!==n||""===r||function iie(n){return~Nne.indexOf(n)}(r)?null:r}var gO=function(){var t=function(s){return xv(Ea,function(o,a,l){return o[l]=xv(a,s,{}),o},{})};uO=t(function(r,s,o){return s[3]&&(r[s[3]]=o),s[2]&&s[2].filter(function(l){return"number"==typeof l}).forEach(function(l){r[l.toString(16)]=o}),r}),dO=t(function(r,s,o){return r[o]=o,s[2]&&s[2].filter(function(l){return"string"==typeof l}).forEach(function(l){r[l]=o}),r}),pO=t(function(r,s,o){var a=s[2];return r[o]=o,a.forEach(function(l){r[l]=o}),r});var e="far"in Ea||te.autoFetchSvg,i=xv(eie,function(r,s){var o=s[0],a=s[1],l=s[2];return"far"===a&&!e&&(a="fas"),"string"==typeof o&&(r.names[o]={prefix:a,iconName:l}),"number"==typeof o&&(r.unicodes[o.toString(16)]={prefix:a,iconName:l}),r},{names:{},unicodes:{}});hO=i.names,fO=i.unicodes,Iv=Cf(te.styleDefault,{family:te.familyDefault})};function Mv(n,t){return(uO[n]||{})[t]}function lo(n,t){return(pO[n]||{})[t]}function mO(n){return hO[n]||{prefix:null,iconName:null}}function ms(){return Iv}function Cf(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.family,i=void 0===e?pt:e,r=Nc[i][n],s=Vc[i][n]||Vc[i][r],o=n in Vi.styles?n:null;return s||o||null}(function zne(n){jc.push(n)})(function(n){Iv=Cf(n.styleDefault,{family:te.familyDefault})}),gO();var _O=(qt(wf={},pt,Object.keys(Bc[pt])),qt(wf,It,Object.keys(Bc[It])),wf);function Sf(n){var t,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.skipLookups,r=void 0!==i&&i,s=(qt(t={},pt,"".concat(te.cssPrefix,"-").concat(pt)),qt(t,It,"".concat(te.cssPrefix,"-").concat(It)),t),o=null,a=pt;(n.includes(s[pt])||n.some(function(c){return _O[pt].includes(c)}))&&(a=pt),(n.includes(s[It])||n.some(function(c){return _O[It].includes(c)}))&&(a=It);var l=n.reduce(function(c,u){var d=rie(te.cssPrefix,u);if(Ea[u]?(u=tie[a].includes(u)?Ane[a][u]:u,o=u,c.prefix=u):nie[a].indexOf(u)>-1?(o=u,c.prefix=Cf(u,{family:a})):d?c.iconName=d:u!==te.replacementClass&&u!==s[pt]&&u!==s[It]&&c.rest.push(u),!r&&c.prefix&&c.iconName){var h="fa"===o?mO(c.iconName):{},f=lo(c.prefix,c.iconName);h.prefix&&(o=null),c.iconName=h.iconName||f||c.iconName,c.prefix=h.prefix||c.prefix,"far"===c.prefix&&!Ea.far&&Ea.fas&&!te.autoFetchSvg&&(c.prefix="fas")}return c},{prefix:null,iconName:null,rest:[]});return(n.includes("fa-brands")||n.includes("fab"))&&(l.prefix="fab"),(n.includes("fa-duotone")||n.includes("fad"))&&(l.prefix="fad"),!l.prefix&&a===It&&(Ea.fass||te.autoFetchSvg)&&(l.prefix="fass",l.iconName=lo(l.prefix,l.iconName)||l.iconName),("fa"===l.prefix||"fa"===o)&&(l.prefix=ms()||"fas"),l}var aie=function(){function n(){(function yne(n,t){if(!(n instanceof t))throw new TypeError("Cannot call a class as a function")})(this,n),this.definitions={}}return function vne(n,t,e){t&&zA(n.prototype,t),e&&zA(n,e),Object.defineProperty(n,"prototype",{writable:!1})}(n,[{key:"add",value:function(){for(var e=this,i=arguments.length,r=new Array(i),s=0;s<i;s++)r[s]=arguments[s];var o=r.reduce(this._pullDefinitions,{});Object.keys(o).forEach(function(a){e.definitions[a]=q(q({},e.definitions[a]||{}),o[a]),Tv(a,o[a]);var l=Bc[pt][a];l&&Tv(l,o[a]),gO()})}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,i){var r=i.prefix&&i.iconName&&i.icon?{0:i}:i;return Object.keys(r).map(function(s){var o=r[s],a=o.prefix,l=o.iconName,c=o.icon,u=c[2];e[a]||(e[a]={}),u.length>0&&u.forEach(function(d){"string"==typeof d&&(e[a][d]=c)}),e[a][l]=c}),e}}]),n}(),yO=[],Ta={},Ia={},lie=Object.keys(Ia);function Av(n,t){for(var e=arguments.length,i=new Array(e>2?e-2:0),r=2;r<e;r++)i[r-2]=arguments[r];var s=Ta[n]||[];return s.forEach(function(o){t=o.apply(null,[t].concat(i))}),t}function co(n){for(var t=arguments.length,e=new Array(t>1?t-1:0),i=1;i<t;i++)e[i-1]=arguments[i];var r=Ta[n]||[];r.forEach(function(s){s.apply(null,e)})}function Lr(){var n=arguments[0],t=Array.prototype.slice.call(arguments,1);return Ia[n]?Ia[n].apply(null,t):void 0}function Ov(n){"fa"===n.prefix&&(n.prefix="fas");var t=n.iconName,e=n.prefix||ms();if(t)return t=lo(e,t)||t,lO(vO.definitions,e,t)||lO(Vi.styles,e,t)}var vO=new aie,die={i2svg:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Pr?(co("beforeI2svg",t),Lr("pseudoElements2svg",t),Lr("i2svg",t)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.autoReplaceSvgRoot;!1===te.autoReplaceSvg&&(te.autoReplaceSvg=!0),te.observeMutations=!0,Qne(function(){fie({autoReplaceSvgRoot:e}),co("watch",t)})}},ri={noAuto:function(){te.autoReplaceSvg=!1,te.observeMutations=!1,co("noAuto")},config:te,dom:die,parse:{icon:function(t){if(null===t)return null;if("object"===cf(t)&&t.prefix&&t.iconName)return{prefix:t.prefix,iconName:lo(t.prefix,t.iconName)||t.iconName};if(Array.isArray(t)&&2===t.length){var e=0===t[1].indexOf("fa-")?t[1].slice(3):t[1],i=Cf(t[0]);return{prefix:i,iconName:lo(i,e)||e}}if("string"==typeof t&&(t.indexOf("".concat(te.cssPrefix,"-"))>-1||t.match(One))){var r=Sf(t.split(" "),{skipLookups:!0});return{prefix:r.prefix||ms(),iconName:lo(r.prefix,r.iconName)||r.iconName}}if("string"==typeof t){var s=ms();return{prefix:s,iconName:lo(s,t)||t}}}},library:vO,findIconDefinition:Ov,toHtml:Uc},fie=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.autoReplaceSvgRoot,i=void 0===e?ft:e;(Object.keys(Vi.styles).length>0||te.autoFetchSvg)&&Pr&&te.autoReplaceSvg&&ri.dom.i2svg({node:i})};function Df(n,t){return Object.defineProperty(n,"abstract",{get:t}),Object.defineProperty(n,"html",{get:function(){return n.abstract.map(function(i){return Uc(i)})}}),Object.defineProperty(n,"node",{get:function(){if(Pr){var i=ft.createElement("div");return i.innerHTML=n.html,i.children}}}),n}function Pv(n){var t=n.icons,e=t.main,i=t.mask,r=n.prefix,s=n.iconName,o=n.transform,a=n.symbol,l=n.title,c=n.maskId,u=n.titleId,d=n.extra,h=n.watchable,f=void 0!==h&&h,p=i.found?i:e,g=p.width,y=p.height,C="fak"===r,x=[te.replacementClass,s?"".concat(te.cssPrefix,"-").concat(s):""].filter(function(j){return-1===d.classes.indexOf(j)}).filter(function(j){return""!==j||!!j}).concat(d.classes).join(" "),D={children:[],attributes:q(q({},d.attributes),{},{"data-prefix":r,"data-icon":s,class:x,role:d.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(y)})},E=C&&!~d.classes.indexOf("fa-fw")?{width:"".concat(g/y*16*.0625,"em")}:{};f&&(D.attributes[oo]=""),l&&(D.children.push({tag:"title",attributes:{id:D.attributes["aria-labelledby"]||"title-".concat(u||$c())},children:[l]}),delete D.attributes.title);var k=q(q({},D),{},{prefix:r,iconName:s,main:e,mask:i,maskId:c,transform:o,symbol:a,styles:q(q({},E),d.styles)}),P=i.found&&e.found?Lr("generateAbstractMask",k)||{children:[],attributes:{}}:Lr("generateAbstractIcon",k)||{children:[],attributes:{}},H=P.attributes;return k.children=P.children,k.attributes=H,a?function gie(n){var e=n.iconName,i=n.children,r=n.attributes,s=n.symbol,o=!0===s?"".concat(n.prefix,"-").concat(te.cssPrefix,"-").concat(e):s;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:q(q({},r),{},{id:o}),children:i}]}]}(k):function pie(n){var t=n.children,e=n.main,i=n.mask,r=n.attributes,s=n.styles,o=n.transform;if(Sv(o)&&e.found&&!i.found){var c={x:e.width/e.height/2,y:.5};r.style=_f(q(q({},s),{},{"transform-origin":"".concat(c.x+o.x/16,"em ").concat(c.y+o.y/16,"em")}))}return[{tag:"svg",attributes:r,children:t}]}(k)}function bO(n){var t=n.content,e=n.width,i=n.height,r=n.transform,s=n.title,o=n.extra,a=n.watchable,l=void 0!==a&&a,c=q(q(q({},o.attributes),s?{title:s}:{}),{},{class:o.classes.join(" ")});l&&(c[oo]="");var u=q({},o.styles);Sv(r)&&(u.transform=function Gne(n){var t=n.transform,e=n.width,r=n.height,s=void 0===r?16:r,o=n.startCentered,a=void 0!==o&&o,l="";return l+=a&&QA?"translate(".concat(t.x/16-(void 0===e?16:e)/2,"em, ").concat(t.y/16-s/2,"em) "):a?"translate(calc(-50% + ".concat(t.x/16,"em), calc(-50% + ").concat(t.y/16,"em)) "):"translate(".concat(t.x/16,"em, ").concat(t.y/16,"em) "),(l+="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "))+"rotate(".concat(t.rotate,"deg) ")}({transform:r,startCentered:!0,width:e,height:i}),u["-webkit-transform"]=u.transform);var d=_f(u);d.length>0&&(c.style=d);var h=[];return h.push({tag:"span",attributes:c,children:[t]}),s&&h.push({tag:"span",attributes:{class:"sr-only"},children:[s]}),h}function mie(n){var t=n.content,e=n.title,i=n.extra,r=q(q(q({},i.attributes),e?{title:e}:{}),{},{class:i.classes.join(" ")}),s=_f(i.styles);s.length>0&&(r.style=s);var o=[];return o.push({tag:"span",attributes:r,children:[t]}),e&&o.push({tag:"span",attributes:{class:"sr-only"},children:[e]}),o}var Rv=Vi.styles;function Fv(n){var t=n[0],e=n[1],s=pv(n.slice(4),1)[0];return{found:!0,width:t,height:e,icon:Array.isArray(s)?{tag:"g",attributes:{class:"".concat(te.cssPrefix,"-").concat("duotone-group")},children:[{tag:"path",attributes:{class:"".concat(te.cssPrefix,"-").concat("secondary"),fill:"currentColor",d:s[0]}},{tag:"path",attributes:{class:"".concat(te.cssPrefix,"-").concat("primary"),fill:"currentColor",d:s[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:s}}}}var _ie={found:!1,width:512,height:512};function Lv(n,t){var e=t;return"fa"===t&&null!==te.styleDefault&&(t=ms()),new Promise(function(i,r){if(Lr("missingIconAbstract"),"fa"===e){var o=mO(n)||{};n=o.iconName||n,t=o.prefix||t}if(n&&t&&Rv[t]&&Rv[t][n])return i(Fv(Rv[t][n]));(function yie(n,t){!eO&&!te.showMissingIcons&&n&&console.error('Icon with name "'.concat(n,'" and prefix "').concat(t,'" is missing.'))})(n,t),i(q(q({},_ie),{},{icon:te.showMissingIcons&&n&&Lr("missingIconAbstract")||{}}))})}var wO=function(){},Nv=te.measurePerformance&&df&&df.mark&&df.measure?df:{mark:wO,measure:wO},Wc='FA "6.2.1"',Vv_begin=function(t){return Nv.mark("".concat(Wc," ").concat(t," begins")),function(){return function(t){Nv.mark("".concat(Wc," ").concat(t," ends")),Nv.measure("".concat(Wc," ").concat(t),"".concat(Wc," ").concat(t," begins"),"".concat(Wc," ").concat(t," ends"))}(t)}},xf=function(){};function SO(n){return"string"==typeof(n.getAttribute?n.getAttribute(oo):null)}function Sie(n){return ft.createElementNS("http://www.w3.org/2000/svg",n)}function Die(n){return ft.createElement(n)}function DO(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},e=t.ceFn,i=void 0===e?"svg"===n.tag?Sie:Die:e;if("string"==typeof n)return ft.createTextNode(n);var r=i(n.tag);Object.keys(n.attributes||[]).forEach(function(o){r.setAttribute(o,n.attributes[o])});var s=n.children||[];return s.forEach(function(o){r.appendChild(DO(o,{ceFn:i}))}),r}var Ef={replace:function(t){var e=t[0];if(e.parentNode)if(t[1].forEach(function(r){e.parentNode.insertBefore(DO(r),e)}),null===e.getAttribute(oo)&&te.keepOriginalSource){var i=ft.createComment(function xie(n){var t=" ".concat(n.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(e));e.parentNode.replaceChild(i,e)}else e.remove()},nest:function(t){var e=t[0],i=t[1];if(~Cv(e).indexOf(te.replacementClass))return Ef.replace(t);var r=new RegExp("".concat(te.cssPrefix,"-.*"));if(delete i[0].attributes.id,i[0].attributes.class){var s=i[0].attributes.class.split(" ").reduce(function(a,l){return l===te.replacementClass||l.match(r)?a.toSvg.push(l):a.toNode.push(l),a},{toNode:[],toSvg:[]});i[0].attributes.class=s.toSvg.join(" "),0===s.toNode.length?e.removeAttribute("class"):e.setAttribute("class",s.toNode.join(" "))}var o=i.map(function(a){return Uc(a)}).join("\n");e.setAttribute(oo,""),e.innerHTML=o}};function xO(n){n()}function EO(n,t){var e="function"==typeof t?t:xf;if(0===n.length)e();else{var i=xO;"async"===te.mutateApproach&&(i=ps.requestAnimationFrame||xO),i(function(){var r=function Cie(){return!0===te.autoReplaceSvg?Ef.replace:Ef[te.autoReplaceSvg]||Ef.replace}(),s=Vv_begin("mutate");n.map(r),s(),e()})}}var Bv=!1;function TO(){Bv=!0}function Hv(){Bv=!1}var Tf=null;function IO(n){if(YA&&te.observeMutations){var t=n.treeCallback,e=void 0===t?xf:t,i=n.nodeCallback,r=void 0===i?xf:i,s=n.pseudoElementsCallback,o=void 0===s?xf:s,a=n.observeMutationsRoot,l=void 0===a?ft:a;Tf=new YA(function(c){if(!Bv){var u=ms();xa(c).forEach(function(d){if("childList"===d.type&&d.addedNodes.length>0&&!SO(d.addedNodes[0])&&(te.searchPseudoElements&&o(d.target),e(d.target)),"attributes"===d.type&&d.target.parentNode&&te.searchPseudoElements&&o(d.target.parentNode),"attributes"===d.type&&SO(d.target)&&~Lne.indexOf(d.attributeName))if("class"===d.attributeName&&function bie(n){var t=n.getAttribute?n.getAttribute(vv):null,e=n.getAttribute?n.getAttribute(bv):null;return t&&e}(d.target)){var h=Sf(Cv(d.target)),p=h.iconName;d.target.setAttribute(vv,h.prefix||u),p&&d.target.setAttribute(bv,p)}else(function wie(n){return n&&n.classList&&n.classList.contains&&n.classList.contains(te.replacementClass)})(d.target)&&r(d.target)})}}),Pr&&Tf.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function Tie(n){var t=n.getAttribute("style"),e=[];return t&&(e=t.split(";").reduce(function(i,r){var s=r.split(":"),o=s[0],a=s.slice(1);return o&&a.length>0&&(i[o]=a.join(":").trim()),i},{})),e}function Iie(n){var t=n.getAttribute("data-prefix"),e=n.getAttribute("data-icon"),i=void 0!==n.innerText?n.innerText.trim():"",r=Sf(Cv(n));return r.prefix||(r.prefix=ms()),t&&e&&(r.prefix=t,r.iconName=e),r.iconName&&r.prefix||(r.prefix&&i.length>0&&(r.iconName=function sie(n,t){return(dO[n]||{})[t]}(r.prefix,n.innerText)||Mv(r.prefix,Ev(n.innerText))),!r.iconName&&te.autoFetchSvg&&n.firstChild&&n.firstChild.nodeType===Node.TEXT_NODE&&(r.iconName=n.firstChild.data)),r}function Mie(n){var t=xa(n.attributes).reduce(function(r,s){return"class"!==r.name&&"style"!==r.name&&(r[s.name]=s.value),r},{}),e=n.getAttribute("title"),i=n.getAttribute("data-fa-title-id");return te.autoA11y&&(e?t["aria-labelledby"]="".concat(te.replacementClass,"-title-").concat(i||$c()):(t["aria-hidden"]="true",t.focusable="false")),t}function MO(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},e=Iie(n),i=e.iconName,r=e.prefix,s=e.rest,o=Mie(n),a=Av("parseNodeAttributes",{},n),l=t.styleParser?Tie(n):[];return q({iconName:i,title:n.getAttribute("title"),titleId:n.getAttribute("data-fa-title-id"),prefix:r,transform:er,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:s,styles:l,attributes:o}},a)}var Aie=Vi.styles;function kO(n){var t="nest"===te.autoReplaceSvg?MO(n,{styleParser:!1}):MO(n);return~t.extra.classes.indexOf(tO)?Lr("generateLayersText",n,t):Lr("generateSvgReplacementMutation",n,t)}var _s=new Set;function AO(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Pr)return Promise.resolve();var e=ft.documentElement.classList,i=function(d){return e.add("".concat(JA,"-").concat(d))},r=function(d){return e.remove("".concat(JA,"-").concat(d))},s=te.autoFetchSvg?_s:wv.map(function(u){return"fa-".concat(u)}).concat(Object.keys(Aie));s.includes("fa")||s.push("fa");var o=[".".concat(tO,":not([").concat(oo,"])")].concat(s.map(function(u){return".".concat(u,":not([").concat(oo,"])")})).join(", ");if(0===o.length)return Promise.resolve();var a=[];try{a=xa(n.querySelectorAll(o))}catch{}if(!(a.length>0))return Promise.resolve();i("pending"),r("complete");var l=Vv_begin("onTree"),c=a.reduce(function(u,d){try{var h=kO(d);h&&u.push(h)}catch(f){eO||"MissingIcon"===f.name&&console.error(f)}return u},[]);return new Promise(function(u,d){Promise.all(c).then(function(h){EO(h,function(){i("active"),i("complete"),r("pending"),"function"==typeof t&&t(),l(),u()})}).catch(function(h){l(),d(h)})})}function Oie(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;kO(n).then(function(e){e&&EO([e],t)})}wv.map(function(n){_s.add("fa-".concat(n))}),Object.keys(Nc[pt]).map(_s.add.bind(_s)),Object.keys(Nc[It]).map(_s.add.bind(_s)),_s=Fc(_s);var Rie=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=e.transform,r=void 0===i?er:i,s=e.symbol,o=void 0!==s&&s,a=e.mask,l=void 0===a?null:a,c=e.maskId,u=void 0===c?null:c,d=e.title,h=void 0===d?null:d,f=e.titleId,p=void 0===f?null:f,g=e.classes,y=void 0===g?[]:g,C=e.attributes,x=void 0===C?{}:C,D=e.styles,E=void 0===D?{}:D;if(t){var k=t.prefix,P=t.iconName,V=t.icon;return Df(q({type:"icon"},t),function(){return co("beforeDOMElementCreation",{iconDefinition:t,params:e}),te.autoA11y&&(h?x["aria-labelledby"]="".concat(te.replacementClass,"-title-").concat(p||$c()):(x["aria-hidden"]="true",x.focusable="false")),Pv({icons:{main:Fv(V),mask:l?Fv(l.icon):{found:!1,width:null,height:null,icon:{}}},prefix:k,iconName:P,transform:q(q({},er),r),symbol:o,title:h,maskId:u,titleId:p,extra:{attributes:x,styles:E,classes:y}})})}},Fie={mixout:function(){return{icon:(n=Rie,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(t||{}).icon?t:Ov(t||{}),r=e.mask;return r&&(r=(r||{}).icon?r:Ov(r||{})),n(i,q(q({},e),{},{mask:r}))})};var n},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=AO,e.nodeCallback=Oie,e}}},provides:function(t){t.i2svg=function(e){var i=e.node,s=e.callback;return AO(void 0===i?ft:i,void 0===s?function(){}:s)},t.generateSvgReplacementMutation=function(e,i){var r=i.iconName,s=i.title,o=i.titleId,a=i.prefix,l=i.transform,c=i.symbol,u=i.mask,d=i.maskId,h=i.extra;return new Promise(function(f,p){Promise.all([Lv(r,a),u.iconName?Lv(u.iconName,u.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then(function(g){var y=pv(g,2);f([e,Pv({icons:{main:y[0],mask:y[1]},prefix:a,iconName:r,transform:l,symbol:c,maskId:d,title:s,titleId:o,extra:h,watchable:!0})])}).catch(p)})},t.generateAbstractIcon=function(e){var c,i=e.children,r=e.attributes,s=e.main,o=e.transform,l=_f(e.styles);return l.length>0&&(r.style=l),Sv(o)&&(c=Lr("generateAbstractTransformGrouping",{main:s,transform:o,containerWidth:s.width,iconWidth:s.width})),i.push(c||s.icon),{children:i,attributes:r}}}},Lie={mixout:function(){return{layer:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.classes,s=void 0===r?[]:r;return Df({type:"layer"},function(){co("beforeDOMElementCreation",{assembler:e,params:i});var o=[];return e(function(a){Array.isArray(a)?a.map(function(l){o=o.concat(l.abstract)}):o=o.concat(a.abstract)}),[{tag:"span",attributes:{class:["".concat(te.cssPrefix,"-layers")].concat(Fc(s)).join(" ")},children:o}]})}}}},Nie={mixout:function(){return{counter:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.title,s=void 0===r?null:r,o=i.classes,a=void 0===o?[]:o,l=i.attributes,c=void 0===l?{}:l,u=i.styles,d=void 0===u?{}:u;return Df({type:"counter",content:e},function(){return co("beforeDOMElementCreation",{content:e,params:i}),mie({content:e.toString(),title:s,extra:{attributes:c,styles:d,classes:["".concat(te.cssPrefix,"-layers-counter")].concat(Fc(a))}})})}}}},Vie={mixout:function(){return{text:function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.transform,s=void 0===r?er:r,o=i.title,a=void 0===o?null:o,l=i.classes,c=void 0===l?[]:l,u=i.attributes,d=void 0===u?{}:u,h=i.styles,f=void 0===h?{}:h;return Df({type:"text",content:e},function(){return co("beforeDOMElementCreation",{content:e,params:i}),bO({content:e,transform:q(q({},er),s),title:a,extra:{attributes:d,styles:f,classes:["".concat(te.cssPrefix,"-layers-text")].concat(Fc(c))}})})}}},provides:function(t){t.generateLayersText=function(e,i){var r=i.title,s=i.transform,o=i.extra,a=null,l=null;if(QA){var c=parseInt(getComputedStyle(e).fontSize,10),u=e.getBoundingClientRect();a=u.width/c,l=u.height/c}return te.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([e,bO({content:e.innerHTML,width:a,height:l,transform:s,title:r,extra:o,watchable:!0})])}}},Bie=new RegExp('"',"ug"),OO=[1105920,1112319];function PO(n,t){var e="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(function(i,r){if(null!==n.getAttribute(e))return i();var o=xa(n.children).filter(function(V){return V.getAttribute(yv)===t})[0],a=ps.getComputedStyle(n,t),l=a.getPropertyValue("font-family").match(Pne),c=a.getPropertyValue("font-weight"),u=a.getPropertyValue("content");if(o&&!l)return n.removeChild(o),i();if(l&&"none"!==u&&""!==u){var d=a.getPropertyValue("content"),h=~["Sharp"].indexOf(l[2])?It:pt,f=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(l[2])?Vc[h][l[2].toLowerCase()]:Rne[h][c],p=function Hie(n){var t=n.replace(Bie,""),e=function Jne(n,t){var r,e=n.length,i=n.charCodeAt(t);return i>=55296&&i<=56319&&e>t+1&&(r=n.charCodeAt(t+1))>=56320&&r<=57343?1024*(i-55296)+r-56320+65536:i}(t,0),i=e>=OO[0]&&e<=OO[1],r=2===t.length&&t[0]===t[1];return{value:Ev(r?t[0]:t),isSecondary:i||r}}(d),g=p.value,y=p.isSecondary,C=l[0].startsWith("FontAwesome"),x=Mv(f,g),D=x;if(C){var E=function oie(n){var t=fO[n],e=Mv("fas",n);return t||(e?{prefix:"fas",iconName:e}:null)||{prefix:null,iconName:null}}(g);E.iconName&&E.prefix&&(x=E.iconName,f=E.prefix)}if(!x||y||o&&o.getAttribute(vv)===f&&o.getAttribute(bv)===D)i();else{n.setAttribute(e,D),o&&n.removeChild(o);var k=function kie(){return{iconName:null,title:null,titleId:null,prefix:null,transform:er,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}}}(),P=k.extra;P.attributes[yv]=t,Lv(x,f).then(function(V){var H=Pv(q(q({},k),{},{icons:{main:V,mask:{prefix:null,iconName:null,rest:[]}},prefix:f,iconName:D,extra:P,watchable:!0})),j=ft.createElement("svg");"::before"===t?n.insertBefore(j,n.firstChild):n.appendChild(j),j.outerHTML=H.map(function(J){return Uc(J)}).join("\n"),n.removeAttribute(e),i()}).catch(r)}}else i()})}function zie(n){return Promise.all([PO(n,"::before"),PO(n,"::after")])}function jie(n){return!(n.parentNode===document.head||~kne.indexOf(n.tagName.toUpperCase())||n.getAttribute(yv)||n.parentNode&&"svg"===n.parentNode.tagName)}function RO(n){if(Pr)return new Promise(function(t,e){var i=xa(n.querySelectorAll("*")).filter(jie).map(zie),r=Vv_begin("searchPseudoElements");TO(),Promise.all(i).then(function(){r(),Hv(),t()}).catch(function(){r(),Hv(),e()})})}var FO=!1,LO=function(t){return t.toLowerCase().split(" ").reduce(function(i,r){var s=r.toLowerCase().split("-"),o=s[0],a=s.slice(1).join("-");if(o&&"h"===a)return i.flipX=!0,i;if(o&&"v"===a)return i.flipY=!0,i;if(a=parseFloat(a),isNaN(a))return i;switch(o){case"grow":i.size=i.size+a;break;case"shrink":i.size=i.size-a;break;case"left":i.x=i.x-a;break;case"right":i.x=i.x+a;break;case"up":i.y=i.y-a;break;case"down":i.y=i.y+a;break;case"rotate":i.rotate=i.rotate+a}return i},{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},zv={x:0,y:0,width:"100%",height:"100%"};function NO(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return n.attributes&&(n.attributes.fill||t)&&(n.attributes.fill="black"),n}!function cie(n,t){var e=t.mixoutsTo;yO=n,Ta={},Object.keys(Ia).forEach(function(i){-1===lie.indexOf(i)&&delete Ia[i]}),yO.forEach(function(i){var r=i.mixout?i.mixout():{};if(Object.keys(r).forEach(function(o){"function"==typeof r[o]&&(e[o]=r[o]),"object"===cf(r[o])&&Object.keys(r[o]).forEach(function(a){e[o]||(e[o]={}),e[o][a]=r[o][a]})}),i.hooks){var s=i.hooks();Object.keys(s).forEach(function(o){Ta[o]||(Ta[o]=[]),Ta[o].push(s[o])})}i.provides&&i.provides(Ia)})}([qne,Fie,Lie,Nie,Vie,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=RO,e}}},provides:function(t){t.pseudoElements2svg=function(e){var i=e.node;te.searchPseudoElements&&RO(void 0===i?ft:i)}}},{mixout:function(){return{dom:{unwatch:function(){TO(),FO=!0}}}},hooks:function(){return{bootstrap:function(){IO(Av("mutationObserverCallbacks",{}))},noAuto:function(){!function Eie(){!Tf||Tf.disconnect()}()},watch:function(e){var i=e.observeMutationsRoot;FO?Hv():IO(Av("mutationObserverCallbacks",{observeMutationsRoot:i}))}}}},{mixout:function(){return{parse:{transform:function(e){return LO(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,i){var r=i.getAttribute("data-fa-transform");return r&&(e.transform=LO(r)),e}}},provides:function(t){t.generateAbstractTransformGrouping=function(e){var i=e.main,r=e.transform,o=e.iconWidth,a={transform:"translate(".concat(e.containerWidth/2," 256)")},l="translate(".concat(32*r.x,", ").concat(32*r.y,") "),c="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),u="rotate(".concat(r.rotate," 0 0)"),f={outer:a,inner:{transform:"".concat(l," ").concat(c," ").concat(u)},path:{transform:"translate(".concat(o/2*-1," -256)")}};return{tag:"g",attributes:q({},f.outer),children:[{tag:"g",attributes:q({},f.inner),children:[{tag:i.icon.tag,children:i.icon.children,attributes:q(q({},i.icon.attributes),f.path)}]}]}}}},{hooks:function(){return{parseNodeAttributes:function(e,i){var r=i.getAttribute("data-fa-mask"),s=r?Sf(r.split(" ").map(function(o){return o.trim()})):{prefix:null,iconName:null,rest:[]};return s.prefix||(s.prefix=ms()),e.mask=s,e.maskId=i.getAttribute("data-fa-mask-id"),e}}},provides:function(t){t.generateAbstractMask=function(e){var n,i=e.children,r=e.attributes,s=e.main,o=e.mask,a=e.maskId,u=s.icon,h=o.icon,f=function Wne(n){var t=n.transform,i=n.iconWidth,r={transform:"translate(".concat(n.containerWidth/2," 256)")},s="translate(".concat(32*t.x,", ").concat(32*t.y,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),a="rotate(".concat(t.rotate," 0 0)");return{outer:r,inner:{transform:"".concat(s," ").concat(o," ").concat(a)},path:{transform:"translate(".concat(i/2*-1," -256)")}}}({transform:e.transform,containerWidth:o.width,iconWidth:s.width}),p={tag:"rect",attributes:q(q({},zv),{},{fill:"white"})},g=u.children?{children:u.children.map(NO)}:{},y={tag:"g",attributes:q({},f.inner),children:[NO(q({tag:u.tag,attributes:q(q({},u.attributes),f.path)},g))]},C={tag:"g",attributes:q({},f.outer),children:[y]},x="mask-".concat(a||$c()),D="clip-".concat(a||$c()),E={tag:"mask",attributes:q(q({},zv),{},{id:x,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[p,C]},k={tag:"defs",children:[{tag:"clipPath",attributes:{id:D},children:(n=h,"g"===n.tag?n.children:[n])},E]};return i.push(k,{tag:"rect",attributes:q({fill:"currentColor","clip-path":"url(#".concat(D,")"),mask:"url(#".concat(x,")")},zv)}),{children:i,attributes:r}}}},{provides:function(t){var e=!1;ps.matchMedia&&(e=ps.matchMedia("(prefers-reduced-motion: reduce)").matches),t.missingIconAbstract=function(){var i=[],r={fill:"currentColor"},s={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};i.push({tag:"path",attributes:q(q({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var o=q(q({},s),{},{attributeName:"opacity"}),a={tag:"circle",attributes:q(q({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return e||a.children.push({tag:"animate",attributes:q(q({},s),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:q(q({},o),{},{values:"1;0;1;1;0;1;"})}),i.push(a),i.push({tag:"path",attributes:q(q({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:e?[]:[{tag:"animate",attributes:q(q({},o),{},{values:"1;0;0;0;0;1;"})}]}),e||i.push({tag:"path",attributes:q(q({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:q(q({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:i}}}},{hooks:function(){return{parseNodeAttributes:function(e,i){var r=i.getAttribute("data-fa-symbol");return e.symbol=null!==r&&(""===r||r),e}}}}],{mixoutsTo:ri});let Xie=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n}),n.\u0275inj=_e({}),n})(),Jie=(()=>{class n{}return n.\u0275fac=function(e){return new(e||n)},n.\u0275mod=be({type:n,bootstrap:[aee]}),n.\u0275inj=_e({imports:[Dd,CJ,_ne,Xie,X_,rh,sU,IW.forRoot()]}),n})();s4().bootstrapModule(Jie).catch(n=>console.error(n))}},nt=>{nt(nt.s=781)}]);