mirror of
https://github.com/Nezumi-2711/nez27.github.io.git
synced 2026-09-22 05:32:01 +00:00
1 line
542 KiB
JavaScript
1 line
542 KiB
JavaScript
"use strict";(self.webpackChunkmovies_app=self.webpackChunkmovies_app||[]).push([[179],{431:()=>{function xe(t){return"function"==typeof t}function $s(t){const e=t(i=>{Error.call(i),i.stack=(new Error).stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}const Aa=$s(t=>function(e){t(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 Us(t,n){if(t){const e=t.indexOf(n);0<=e&&t.splice(e,1)}}class sn{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;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(xe(i))try{i()}catch(s){n=s instanceof Aa?s.errors:[s]}const{_finalizers:r}=this;if(r){this._finalizers=null;for(const s of r)try{Xf(s)}catch(o){n=n??[],o instanceof Aa?n=[...n,...o.errors]:n.push(o)}}if(n)throw new Aa(n)}}add(n){var e;if(n&&n!==this)if(this.closed)Xf(n);else{if(n instanceof sn){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(e=this._finalizers)&&void 0!==e?e:[]).push(n)}}_hasParent(n){const{_parentage:e}=this;return e===n||Array.isArray(e)&&e.includes(n)}_addParent(n){const{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(n),e):e?[e,n]:n}_removeParent(n){const{_parentage:e}=this;e===n?this._parentage=null:Array.isArray(e)&&Us(e,n)}remove(n){const{_finalizers:e}=this;e&&Us(e,n),n instanceof sn&&n._removeParent(this)}}sn.EMPTY=(()=>{const t=new sn;return t.closed=!0,t})();const Zf=sn.EMPTY;function Yf(t){return t instanceof sn||t&&"closed"in t&&xe(t.remove)&&xe(t.add)&&xe(t.unsubscribe)}function Xf(t){xe(t)?t():t.unsubscribe()}const Qi={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Oa={setTimeout(t,n,...e){const{delegate:i}=Oa;return i?.setTimeout?i.setTimeout(t,n,...e):setTimeout(t,n,...e)},clearTimeout(t){const{delegate:n}=Oa;return(n?.clearTimeout||clearTimeout)(t)},delegate:void 0};function Jf(t){Oa.setTimeout(()=>{const{onUnhandledError:n}=Qi;if(!n)throw t;n(t)})}function eg(){}const t0=su("C",void 0,void 0);function su(t,n,e){return{kind:t,value:n,error:e}}let Zi=null;function Pa(t){if(Qi.useDeprecatedSynchronousErrorHandling){const n=!Zi;if(n&&(Zi={errorThrown:!1,error:null}),t(),n){const{errorThrown:e,error:i}=Zi;if(Zi=null,e)throw i}}else t()}class ou extends sn{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Yf(n)&&n.add(this)):this.destination=c0}static create(n,e,i){return new js(n,e,i)}next(n){this.isStopped?lu(function r0(t){return su("N",t,void 0)}(n),this):this._next(n)}error(n){this.isStopped?lu(function n0(t){return su("E",void 0,t)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?lu(t0,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const o0=Function.prototype.bind;function au(t,n){return o0.call(t,n)}class a0{constructor(n){this.partialObserver=n}next(n){const{partialObserver:e}=this;if(e.next)try{e.next(n)}catch(i){xa(i)}}error(n){const{partialObserver:e}=this;if(e.error)try{e.error(n)}catch(i){xa(i)}else xa(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(e){xa(e)}}}class js extends ou{constructor(n,e,i){let r;if(super(),xe(n)||!n)r={next:n??void 0,error:e??void 0,complete:i??void 0};else{let s;this&&Qi.useDeprecatedNextContext?(s=Object.create(n),s.unsubscribe=()=>this.unsubscribe(),r={next:n.next&&au(n.next,s),error:n.error&&au(n.error,s),complete:n.complete&&au(n.complete,s)}):r=n}this.destination=new a0(r)}}function xa(t){Qi.useDeprecatedSynchronousErrorHandling?function s0(t){Qi.useDeprecatedSynchronousErrorHandling&&Zi&&(Zi.errorThrown=!0,Zi.error=t)}(t):Jf(t)}function lu(t,n){const{onStoppedNotification:e}=Qi;e&&Oa.setTimeout(()=>e(t,n))}const c0={closed:!0,next:eg,error:function l0(t){throw t},complete:eg},cu="function"==typeof Symbol&&Symbol.observable||"@@observable";function Yi(t){return t}function tg(t){return 0===t.length?Yi:1===t.length?t[0]:function(e){return t.reduce((i,r)=>r(i),e)}}let We=(()=>{class t{constructor(e){e&&(this._subscribe=e)}lift(e){const i=new t;return i.source=this,i.operator=e,i}subscribe(e,i,r){const s=function h0(t){return t&&t instanceof ou||function d0(t){return t&&xe(t.next)&&xe(t.error)&&xe(t.complete)}(t)&&Yf(t)}(e)?e:new js(e,i,r);return Pa(()=>{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=ng(i))((r,s)=>{const o=new js({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)}[cu](){return this}pipe(...e){return tg(e)(this)}toPromise(e){return new(e=ng(e))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return t.create=n=>new t(n),t})();function ng(t){var n;return null!==(n=t??Qi.Promise)&&void 0!==n?n:Promise}const p0=$s(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let bn=(()=>{class t extends We{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(e){const i=new ig(this,this);return i.operator=e,i}_throwIfClosed(){if(this.closed)throw new p0}next(e){Pa(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const i of this.currentObservers)i.next(e)}})}error(e){Pa(()=>{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(){Pa(()=>{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?Zf:(this.currentObservers=null,s.push(e),new sn(()=>{this.currentObservers=null,Us(s,e)}))}_checkFinalizedStatuses(e){const{hasError:i,thrownError:r,isStopped:s}=this;i?e.error(r):s&&e.complete()}asObservable(){const e=new We;return e.source=this,e}}return t.create=(n,e)=>new ig(n,e),t})();class ig extends bn{constructor(n,e){super(),this.destination=n,this.source=e}next(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.next)||void 0===i||i.call(e,n)}error(n){var e,i;null===(i=null===(e=this.destination)||void 0===e?void 0:e.error)||void 0===i||i.call(e,n)}complete(){var n,e;null===(e=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===e||e.call(n)}_subscribe(n){var e,i;return null!==(i=null===(e=this.source)||void 0===e?void 0:e.subscribe(n))&&void 0!==i?i:Zf}}function rg(t){return xe(t?.lift)}function ct(t){return n=>{if(rg(n))return n.lift(function(e){try{return t(e,this)}catch(i){this.error(i)}});throw new TypeError("Unable to lift unknown Observable type")}}function it(t,n,e,i,r){return new f0(t,n,e,i,r)}class f0 extends ou{constructor(n,e,i,r,s,o){super(n),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=e?function(a){try{e(a)}catch(l){n.error(l)}}:super._next,this._error=r?function(a){try{r(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:e}=this;super.unsubscribe(),!e&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function re(t,n){return ct((e,i)=>{let r=0;e.subscribe(it(i,s=>{i.next(t.call(n,s,r++))}))})}function Xi(t){return this instanceof Xi?(this.v=t,this):new Xi(t)}function _0(t,n,e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,i=e.apply(t,n||[]),s=[];return r={},o("next"),o("throw"),o("return"),r[Symbol.asyncIterator]=function(){return this},r;function o(h){i[h]&&(r[h]=function(p){return new Promise(function(f,_){s.push([h,p,f,_])>1||a(h,p)})})}function a(h,p){try{!function l(h){h.value instanceof Xi?Promise.resolve(h.value.v).then(c,u):d(s[0][2],h)}(i[h](p))}catch(f){d(s[0][3],f)}}function c(h){a("next",h)}function u(h){a("throw",h)}function d(h,p){h(p),s.shift(),s.length&&a(s[0][0],s[0][1])}}function y0(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var e,n=t[Symbol.asyncIterator];return n?n.call(t):(t=function ag(t){var n="function"==typeof Symbol&&Symbol.iterator,e=n&&t[n],i=0;if(e)return e.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&i>=t.length&&(t=void 0),{value:t&&t[i++],done:!t}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),e={},i("next"),i("throw"),i("return"),e[Symbol.asyncIterator]=function(){return this},e);function i(s){e[s]=t[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=t[s](o)).done,o.value)})}}}const lg=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function cg(t){return xe(t?.then)}function ug(t){return xe(t[cu])}function dg(t){return Symbol.asyncIterator&&xe(t?.[Symbol.asyncIterator])}function hg(t){return new TypeError(`You provided ${null!==t&&"object"==typeof t?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const pg=function w0(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function fg(t){return xe(t?.[pg])}function gg(t){return _0(this,arguments,function*(){const e=t.getReader();try{for(;;){const{value:i,done:r}=yield Xi(e.read());if(r)return yield Xi(void 0);yield yield Xi(i)}}finally{e.releaseLock()}})}function mg(t){return xe(t?.getReader)}function on(t){if(t instanceof We)return t;if(null!=t){if(ug(t))return function C0(t){return new We(n=>{const e=t[cu]();if(xe(e.subscribe))return e.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(lg(t))return function b0(t){return new We(n=>{for(let e=0;e<t.length&&!n.closed;e++)n.next(t[e]);n.complete()})}(t);if(cg(t))return function D0(t){return new We(n=>{t.then(e=>{n.closed||(n.next(e),n.complete())},e=>n.error(e)).then(null,Jf)})}(t);if(dg(t))return _g(t);if(fg(t))return function S0(t){return new We(n=>{for(const e of t)if(n.next(e),n.closed)return;n.complete()})}(t);if(mg(t))return function E0(t){return _g(gg(t))}(t)}throw hg(t)}function _g(t){return new We(n=>{(function I0(t,n){var e,i,r,s;return function g0(t,n,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(t,n||[])).next())})}(this,void 0,void 0,function*(){try{for(e=y0(t);!(i=yield e.next()).done;)if(n.next(i.value),n.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}}n.complete()})})(t,n).catch(e=>n.error(e))})}function ri(t,n,e,i=0,r=!1){const s=n.schedule(function(){e(),r?t.add(this.schedule(null,i)):this.unsubscribe()},i);if(t.add(s),!r)return s}function ht(t,n,e=1/0){return xe(n)?ht((i,r)=>re((s,o)=>n(i,s,r,o))(on(t(i,r))),e):("number"==typeof n&&(e=n),ct((i,r)=>function T0(t,n,e,i,r,s,o,a){const l=[];let c=0,u=0,d=!1;const h=()=>{d&&!l.length&&!c&&n.complete()},p=_=>c<i?f(_):l.push(_),f=_=>{s&&n.next(_),c++;let w=!1;on(e(_,u++)).subscribe(it(n,b=>{r?.(b),s?p(b):n.next(b)},()=>{w=!0},void 0,()=>{if(w)try{for(c--;l.length&&c<i;){const b=l.shift();o?ri(n,o,()=>f(b)):f(b)}h()}catch(b){n.error(b)}}))};return t.subscribe(it(n,p,()=>{d=!0,h()})),()=>{a?.()}}(i,r,t,e)))}function kr(t=1/0){return ht(Yi,t)}const Vn=new We(t=>t.complete());function du(t){return t[t.length-1]}function yg(t){return xe(du(t))?t.pop():void 0}function zs(t){return function A0(t){return t&&xe(t.schedule)}(du(t))?t.pop():void 0}function vg(t,n=0){return ct((e,i)=>{e.subscribe(it(i,r=>ri(i,t,()=>i.next(r),n),()=>ri(i,t,()=>i.complete(),n),r=>ri(i,t,()=>i.error(r),n)))})}function wg(t,n=0){return ct((e,i)=>{i.add(t.schedule(()=>e.subscribe(i),n))})}function Cg(t,n){if(!t)throw new Error("Iterable cannot be null");return new We(e=>{ri(e,n,()=>{const i=t[Symbol.asyncIterator]();ri(e,n,()=>{i.next().then(r=>{r.done?e.complete():e.next(r.value)})},0,!0)})})}function Xe(t,n){return n?function k0(t,n){if(null!=t){if(ug(t))return function P0(t,n){return on(t).pipe(wg(n),vg(n))}(t,n);if(lg(t))return function R0(t,n){return new We(e=>{let i=0;return n.schedule(function(){i===t.length?e.complete():(e.next(t[i++]),e.closed||this.schedule())})})}(t,n);if(cg(t))return function x0(t,n){return on(t).pipe(wg(n),vg(n))}(t,n);if(dg(t))return Cg(t,n);if(fg(t))return function N0(t,n){return new We(e=>{let i;return ri(e,n,()=>{i=t[pg](),ri(e,n,()=>{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)}),()=>xe(i?.return)&&i.return()})}(t,n);if(mg(t))return function F0(t,n){return Cg(gg(t),n)}(t,n)}throw hg(t)}(t,n):on(t)}function hu(t,n,...e){if(!0===n)return void t();if(!1===n)return;const i=new js({next:()=>{i.unsubscribe(),t()}});return on(n(...e)).subscribe(i)}function Ae(t){for(let n in t)if(t[n]===Ae)return n;throw Error("Could not find renamed property on target object.")}function pu(t,n){for(const e in n)n.hasOwnProperty(e)&&!t.hasOwnProperty(e)&&(t[e]=n[e])}function Re(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Re).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const n=t.toString();if(null==n)return""+n;const e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function fu(t,n){return null==t||""===t?null===n?"":n:null==n||""===n?t:t+" "+n}const B0=Ae({__forward_ref__:Ae});function ye(t){return t.__forward_ref__=ye,t.toString=function(){return Re(this())},t}function q(t){return gu(t)?t():t}function gu(t){return"function"==typeof t&&t.hasOwnProperty(B0)&&t.__forward_ref__===ye}function mu(t){return t&&!!t.\u0275providers}const Ra="https://g.co/ng/security#xss";class I extends Error{constructor(n,e){super(function Na(t,n){return`NG0${Math.abs(t)}${n?": "+n.trim():""}`}(n,e)),this.code=n}}function Y(t){return"string"==typeof t?t:null==t?"":String(t)}function Fa(t,n){throw new I(-201,!1)}function an(t,n){null==t&&function we(t,n,e,i){throw new Error(`ASSERTION ERROR: ${t}`+(null==i?"":` [Expected=> ${e} ${i} ${n} <=Actual]`))}(n,t,null,"!=")}function k(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Oe(t){return{providers:t.providers||[],imports:t.imports||[]}}function ka(t){return bg(t,La)||bg(t,Sg)}function bg(t,n){return t.hasOwnProperty(n)?t[n]:null}function Dg(t){return t&&(t.hasOwnProperty(_u)||t.hasOwnProperty(K0))?t[_u]:null}const La=Ae({\u0275prov:Ae}),_u=Ae({\u0275inj:Ae}),Sg=Ae({ngInjectableDef:Ae}),K0=Ae({ngInjectorDef:Ae});var K=(()=>((K=K||{})[K.Default=0]="Default",K[K.Host=1]="Host",K[K.Self=2]="Self",K[K.SkipSelf=4]="SkipSelf",K[K.Optional=8]="Optional",K))();let yu;function ln(t){const n=yu;return yu=t,n}function Eg(t,n,e){const i=ka(t);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:e&K.Optional?null:void 0!==n?n:void Fa(Re(t))}const Ne=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Gs={},vu="__NG_DI_FLAG__",Va="ngTempTokenPath",Y0=/\n/gm,Ig="__source";let Ws;function Lr(t){const n=Ws;return Ws=t,n}function J0(t,n=K.Default){if(void 0===Ws)throw new I(-203,!1);return null===Ws?Eg(t,void 0,n):Ws.get(t,n&K.Optional?null:void 0,n)}function x(t,n=K.Default){return(function Q0(){return yu}()||J0)(q(t),n)}function ce(t,n=K.Default){return x(t,Ba(n))}function Ba(t){return typeof t>"u"||"number"==typeof t?t:0|(t.optional&&8)|(t.host&&1)|(t.self&&2)|(t.skipSelf&&4)}function wu(t){const n=[];for(let e=0;e<t.length;e++){const i=q(t[e]);if(Array.isArray(i)){if(0===i.length)throw new I(900,!1);let r,s=K.Default;for(let o=0;o<i.length;o++){const a=i[o],l=eI(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}n.push(x(r,s))}else n.push(x(i))}return n}function qs(t,n){return t[vu]=n,t.prototype[vu]=n,t}function eI(t){return t[vu]}function Pi(t){return{toString:t}.toString()}var Dn=(()=>((Dn=Dn||{})[Dn.OnPush=0]="OnPush",Dn[Dn.Default=1]="Default",Dn))(),Sn=(()=>{return(t=Sn||(Sn={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",Sn;var t})();const si={},me=[],Ha=Ae({\u0275cmp:Ae}),Cu=Ae({\u0275dir:Ae}),bu=Ae({\u0275pipe:Ae}),Mg=Ae({\u0275mod:Ae}),oi=Ae({\u0275fac:Ae}),Ks=Ae({__NG_ELEMENT_ID__:Ae});let iI=0;function Ie(t){return Pi(()=>{const e=!0===t.standalone,i={},r={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Dn.OnPush,directiveDefs:null,pipeDefs:null,standalone:e,dependencies:e&&t.dependencies||null,getStandaloneInjector:null,selectors:t.selectors||me,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||Sn.Emulated,id:"c"+iI++,styles:t.styles||me,_:null,setInput:null,schemas:t.schemas||null,tView:null,findHostDirectiveDefs:null,hostDirectives:null},s=t.dependencies,o=t.features;return r.inputs=Pg(t.inputs,i),r.outputs=Pg(t.outputs),o&&o.forEach(a=>a(r)),r.directiveDefs=s?()=>("function"==typeof s?s():s).map(Ag).filter(Og):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(Ot).filter(Og):null,r})}function Ag(t){return Ce(t)||yt(t)}function Og(t){return null!==t}function Fe(t){return Pi(()=>({type:t.type,bootstrap:t.bootstrap||me,declarations:t.declarations||me,imports:t.imports||me,exports:t.exports||me,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null}))}function Pg(t,n){if(null==t)return si;const e={};for(const i in t)if(t.hasOwnProperty(i)){let r=t[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),e[r]=i,n&&(n[r]=s)}return e}const j=Ie;function Bt(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,standalone:!0===t.standalone,onDestroy:t.type.prototype.ngOnDestroy||null}}function Ce(t){return t[Ha]||null}function yt(t){return t[Cu]||null}function Ot(t){return t[bu]||null}function Gt(t,n){const e=t[Mg]||null;if(!e&&!0===n)throw new Error(`Type ${Re(t)} does not have '\u0275mod' property.`);return e}function Wt(t){return Array.isArray(t)&&"object"==typeof t[1]}function In(t){return Array.isArray(t)&&!0===t[1]}function Eu(t){return 0!=(4&t.flags)}function Xs(t){return t.componentOffset>-1}function Ga(t){return 1==(1&t.flags)}function Tn(t){return null!==t.template}function oI(t){return 0!=(256&t[2])}function er(t,n){return t.hasOwnProperty(oi)?t[oi]:null}class cI{constructor(n,e,i){this.previousValue=n,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}}function pt(){return Lg}function Lg(t){return t.type.prototype.ngOnChanges&&(t.setInput=dI),uI}function uI(){const t=Bg(this),n=t?.current;if(n){const e=t.previous;if(e===si)t.previous=n;else for(let i in n)e[i]=n[i];t.current=null,this.ngOnChanges(n)}}function dI(t,n,e,i){const r=this.declaredInputs[e],s=Bg(t)||function hI(t,n){return t[Vg]=n}(t,{previous:si,current:null}),o=s.current||(s.current={}),a=s.previous,l=a[r];o[r]=new cI(l&&l.currentValue,n,a===si),t[i]=n}pt.ngInherit=!0;const Vg="__ngSimpleChanges__";function Bg(t){return t[Vg]||null}function ft(t){for(;Array.isArray(t);)t=t[0];return t}function Wa(t,n){return ft(n[t])}function qt(t,n){return ft(n[t.index])}function Ug(t,n){return t.data[n]}function jr(t,n){return t[n]}function Kt(t,n){const e=n[t];return Wt(e)?e:e[0]}function qa(t){return 64==(64&t[2])}function xi(t,n){return null==n?null:t[n]}function jg(t){t[18]=0}function Tu(t,n){t[5]+=n;let e=t,i=t[3];for(;null!==i&&(1===n&&1===e[5]||-1===n&&0===e[5]);)i[5]+=n,e=i,i=i[3]}const X={lFrame:Jg(null),bindingsEnabled:!0};function Gg(){return X.bindingsEnabled}function M(){return X.lFrame.lView}function pe(){return X.lFrame.tView}function L(t){return X.lFrame.contextLView=t,t[8]}function V(t){return X.lFrame.contextLView=null,t}function gt(){let t=Wg();for(;null!==t&&64===t.type;)t=t.parent;return t}function Wg(){return X.lFrame.currentTNode}function Hn(t,n){const e=X.lFrame;e.currentTNode=t,e.isParent=n}function Mu(){return X.lFrame.isParent}function Au(){X.lFrame.isParent=!1}function xt(){const t=X.lFrame;let n=t.bindingRootIndex;return-1===n&&(n=t.bindingRootIndex=t.tView.bindingStartIndex),n}function zr(){return X.lFrame.bindingIndex++}function ci(t){const n=X.lFrame,e=n.bindingIndex;return n.bindingIndex=n.bindingIndex+t,e}function EI(t,n){const e=X.lFrame;e.bindingIndex=e.bindingRootIndex=t,Ou(n)}function Ou(t){X.lFrame.currentDirectiveIndex=t}function Zg(){return X.lFrame.currentQueryIndex}function xu(t){X.lFrame.currentQueryIndex=t}function TI(t){const n=t[1];return 2===n.type?n.declTNode:1===n.type?t[6]:null}function Yg(t,n,e){if(e&K.SkipSelf){let r=n,s=t;for(;!(r=r.parent,null!==r||e&K.Host||(r=TI(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;n=r,t=s}const i=X.lFrame=Xg();return i.currentTNode=n,i.lView=t,!0}function Ru(t){const n=Xg(),e=t[1];X.lFrame=n,n.currentTNode=e.firstChild,n.lView=t,n.tView=e,n.contextLView=t,n.bindingIndex=e.bindingStartIndex,n.inI18n=!1}function Xg(){const t=X.lFrame,n=null===t?null:t.child;return null===n?Jg(t):n}function Jg(t){const n={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:t,child:null,inI18n:!1};return null!==t&&(t.child=n),n}function em(){const t=X.lFrame;return X.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const tm=em;function Nu(){const t=em();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Rt(){return X.lFrame.selectedIndex}function tr(t){X.lFrame.selectedIndex=t}function He(){const t=X.lFrame;return Ug(t.tView,t.selectedIndex)}function Ka(t,n){for(let e=n.directiveStart,i=n.directiveEnd;e<i;e++){const s=t.data[e].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(t.contentHooks||(t.contentHooks=[])).push(-e,o),a&&((t.contentHooks||(t.contentHooks=[])).push(e,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(e,a)),l&&(t.viewHooks||(t.viewHooks=[])).push(-e,l),c&&((t.viewHooks||(t.viewHooks=[])).push(e,c),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(e,c)),null!=u&&(t.destroyHooks||(t.destroyHooks=[])).push(e,u)}}function Qa(t,n,e){nm(t,n,3,e)}function Za(t,n,e,i){(3&t[2])===e&&nm(t,n,e,i)}function Fu(t,n){let e=t[2];(3&e)===n&&(e&=2047,e+=1,t[2]=e)}function nm(t,n,e,i){const s=i??-1,o=n.length-1;let a=0;for(let l=void 0!==i?65535&t[18]:0;l<o;l++)if("number"==typeof n[l+1]){if(a=n[l],null!=i&&a>=i)break}else n[l]<0&&(t[18]+=65536),(a<s||-1==s)&&(kI(t,e,n,l),t[18]=(4294901760&t[18])+l+2),l++}function kI(t,n,e,i){const r=e[i]<0,s=e[i+1],a=t[r?-e[i]:e[i]];if(r){if(t[2]>>11<t[18]>>16&&(3&t[2])===n){t[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class eo{constructor(n,e,i){this.factory=n,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=i}}function Lu(t,n,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++];t.setAttribute(n,o,a,s)}else{const s=r,o=e[++i];rm(s)?t.setProperty(n,s,o):t.setAttribute(n,s,o),i++}}return i}function im(t){return 3===t||4===t||6===t}function rm(t){return 64===t.charCodeAt(0)}function to(t,n){if(null!==n&&0!==n.length)if(null===t||0===t.length)t=n.slice();else{let e=-1;for(let i=0;i<n.length;i++){const r=n[i];"number"==typeof r?e=r:0===e||sm(t,e,r,null,-1===e||2===e?n[++i]:null)}}return t}function sm(t,n,e,i,r){let s=0,o=t.length;if(-1===n)o=-1;else for(;s<t.length;){const a=t[s++];if("number"==typeof a){if(a===n){o=-1;break}if(a>n){o=s-1;break}}}for(;s<t.length;){const a=t[s];if("number"==typeof a)break;if(a===e){if(null===i)return void(null!==r&&(t[s+1]=r));if(i===t[s+1])return void(t[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(t.splice(o,0,n),s=o+1),t.splice(s++,0,e),null!==i&&t.splice(s++,0,i),null!==r&&t.splice(s++,0,r)}function om(t){return-1!==t}function Ya(t){return 32767&t}function Xa(t,n){let e=function HI(t){return t>>16}(t),i=n;for(;e>0;)i=i[15],e--;return i}let Vu=!0;function Ja(t){const n=Vu;return Vu=t,n}let $I=0;const $n={};function el(t,n){const e=cm(t,n);if(-1!==e)return e;const i=n[1];i.firstCreatePass&&(t.injectorIndex=n.length,Bu(i.data,t),Bu(n,null),Bu(i.blueprint,null));const r=Hu(t,n),s=t.injectorIndex;if(om(r)){const o=Ya(r),a=Xa(r,n),l=a[1].data;for(let c=0;c<8;c++)n[s+c]=a[o+c]|l[o+c]}return n[s+8]=r,s}function Bu(t,n){t.push(0,0,0,0,0,0,0,0,n)}function cm(t,n){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===n[t.injectorIndex+8]?-1:t.injectorIndex}function Hu(t,n){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let e=0,i=null,r=n;for(;null!==r;){if(i=mm(r),null===i)return-1;if(e++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|e<<16}return-1}function $u(t,n,e){!function UI(t,n,e){let i;"string"==typeof e?i=e.charCodeAt(0)||0:e.hasOwnProperty(Ks)&&(i=e[Ks]),null==i&&(i=e[Ks]=$I++);const r=255&i;n.data[t+(r>>5)]|=1<<r}(t,n,e)}function um(t,n,e){if(e&K.Optional||void 0!==t)return t;Fa()}function dm(t,n,e,i){if(e&K.Optional&&void 0===i&&(i=null),!(e&(K.Self|K.Host))){const r=t[9],s=ln(void 0);try{return r?r.get(n,i,e&K.Optional):Eg(n,i,e&K.Optional)}finally{ln(s)}}return um(i,0,e)}function hm(t,n,e,i=K.Default,r){if(null!==t){if(1024&n[2]){const o=function qI(t,n,e,i,r){let s=t,o=n;for(;null!==s&&null!==o&&1024&o[2]&&!(256&o[2]);){const a=pm(s,o,e,i|K.Self,$n);if(a!==$n)return a;let l=s.parent;if(!l){const c=o[21];if(c){const u=c.get(e,$n,i);if(u!==$n)return u}l=mm(o),o=o[15]}s=l}return r}(t,n,e,i,$n);if(o!==$n)return o}const s=pm(t,n,e,i,$n);if(s!==$n)return s}return dm(n,e,i,r)}function pm(t,n,e,i,r){const s=function GI(t){if("string"==typeof t)return t.charCodeAt(0)||0;const n=t.hasOwnProperty(Ks)?t[Ks]:void 0;return"number"==typeof n?n>=0?255&n:WI:n}(e);if("function"==typeof s){if(!Yg(n,t,i))return i&K.Host?um(r,0,i):dm(n,e,i,r);try{const o=s(i);if(null!=o||i&K.Optional)return o;Fa()}finally{tm()}}else if("number"==typeof s){let o=null,a=cm(t,n),l=-1,c=i&K.Host?n[16][6]:null;for((-1===a||i&K.SkipSelf)&&(l=-1===a?Hu(t,n):n[a+8],-1!==l&&gm(i,!1)?(o=n[1],a=Ya(l),n=Xa(l,n)):a=-1);-1!==a;){const u=n[1];if(fm(s,a,u.data)){const d=zI(a,n,e,o,i,c);if(d!==$n)return d}l=n[a+8],-1!==l&&gm(i,n[1].data[a+8]===c)&&fm(s,a,n)?(o=u,a=Ya(l),n=Xa(l,n)):a=-1}}return r}function zI(t,n,e,i,r,s){const o=n[1],a=o.data[t+8],u=tl(a,o,e,null==i?Xs(a)&&Vu:i!=o&&0!=(3&a.type),r&K.Host&&s===a);return null!==u?nr(n,o,u,a):$n}function tl(t,n,e,i,r){const s=t.providerIndexes,o=n.data,a=1048575&s,l=t.directiveStart,u=s>>20,h=r?a+u:t.directiveEnd;for(let p=i?a:a+u;p<h;p++){const f=o[p];if(p<l&&e===f||p>=l&&f.type===e)return p}if(r){const p=o[l];if(p&&Tn(p)&&p.type===e)return l}return null}function nr(t,n,e,i){let r=t[e];const s=n.data;if(function LI(t){return t instanceof eo}(r)){const o=r;o.resolving&&function H0(t,n){const e=n?`. Dependency path: ${n.join(" > ")} > ${t}`:"";throw new I(-200,`Circular dependency in DI detected for ${t}${e}`)}(function ve(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Y(t)}(s[e]));const a=Ja(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?ln(o.injectImpl):null;Yg(t,i,K.Default);try{r=t[e]=o.factory(void 0,s,t,i),n.firstCreatePass&&e>=i.directiveStart&&function FI(t,n,e){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=n.type.prototype;if(i){const o=Lg(n);(e.preOrderHooks||(e.preOrderHooks=[])).push(t,o),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,o)}r&&(e.preOrderHooks||(e.preOrderHooks=[])).push(0-t,r),s&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t,s),(e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t,s))}(e,s[e],n)}finally{null!==l&&ln(l),Ja(a),o.resolving=!1,tm()}}return r}function fm(t,n,e){return!!(e[n+(t>>5)]&1<<t)}function gm(t,n){return!(t&K.Self||t&K.Host&&n)}class Wr{constructor(n,e){this._tNode=n,this._lView=e}get(n,e,i){return hm(this._tNode,this._lView,n,Ba(i),e)}}function WI(){return new Wr(gt(),M())}function mt(t){return Pi(()=>{const n=t.prototype.constructor,e=n[oi]||Uu(n),i=Object.prototype;let r=Object.getPrototypeOf(t.prototype).constructor;for(;r&&r!==i;){const s=r[oi]||Uu(r);if(s&&s!==e)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function Uu(t){return gu(t)?()=>{const n=Uu(q(t));return n&&n()}:er(t)}function mm(t){const n=t[1],e=n.type;return 2===e?n.declTNode:1===e?t[6]:null}const Kr="__parameters__";function Zr(t,n,e){return Pi(()=>{const i=function ju(t){return function(...e){if(t){const i=t(...e);for(const r in i)this[r]=i[r]}}}(n);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(Kr)?l[Kr]:Object.defineProperty(l,Kr,{value:[]})[Kr];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=t,r.annotationCls=r,r})}class H{constructor(n,e){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=k({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function ir(t,n){t.forEach(e=>Array.isArray(e)?ir(e,n):n(e))}function ym(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function il(t,n){return n>=t.length-1?t.pop():t.splice(n,1)[0]}function ro(t,n){const e=[];for(let i=0;i<t;i++)e.push(n);return e}function Qt(t,n,e){let i=Yr(t,n);return i>=0?t[1|i]=e:(i=~i,function YI(t,n,e,i){let r=t.length;if(r==n)t.push(e,i);else if(1===r)t.push(i,t[0]),t[0]=e;else{for(r--,t.push(t[r-1],t[r]);r>n;)t[r]=t[r-2],r--;t[n]=e,t[n+1]=i}}(t,i,n,e)),i}function Gu(t,n){const e=Yr(t,n);if(e>=0)return t[1|e]}function Yr(t,n){return function vm(t,n,e){let i=0,r=t.length>>e;for(;r!==i;){const s=i+(r-i>>1),o=t[s<<e];if(n===o)return s<<e;o>n?r=s:i=s+1}return~(r<<e)}(t,n,1)}const so=qs(Zr("Optional"),8),oo=qs(Zr("SkipSelf"),4);var Ht=(()=>((Ht=Ht||{})[Ht.Important=1]="Important",Ht[Ht.DashCase=2]="DashCase",Ht))();const Yu=new Map;let vT=0;const Ju="__ngContext__";function Ct(t,n){Wt(n)?(t[Ju]=n[20],function CT(t){Yu.set(t[20],t)}(n)):t[Ju]=n}function td(t,n){return undefined(t,n)}function uo(t){const n=t[3];return In(n)?n[3]:n}function nd(t){return Bm(t[13])}function id(t){return Bm(t[4])}function Bm(t){for(;null!==t&&!In(t);)t=t[4];return t}function Jr(t,n,e,i,r){if(null!=i){let s,o=!1;In(i)?s=i:Wt(i)&&(o=!0,i=i[0]);const a=ft(i);0===t&&null!==e?null==r?Gm(n,e,a):rr(n,e,a,r||null,!0):1===t&&null!==e?rr(n,e,a,r||null,!0):2===t?function ud(t,n,e){const i=al(t,n);i&&function $T(t,n,e,i){t.removeChild(n,e,i)}(t,i,n,e)}(n,a,o):3===t&&n.destroyNode(a),null!=s&&function zT(t,n,e,i,r){const s=e[7];s!==ft(e)&&Jr(n,t,i,s,r);for(let a=10;a<e.length;a++){const l=e[a];ho(l[1],l,t,n,i,s)}}(n,t,s,e,r)}}function sd(t,n,e){return t.createElement(n,e)}function $m(t,n){const e=t[9],i=e.indexOf(n),r=n[3];512&n[2]&&(n[2]&=-513,Tu(r,-1)),e.splice(i,1)}function od(t,n){if(t.length<=10)return;const e=10+n,i=t[e];if(i){const r=i[17];null!==r&&r!==t&&$m(r,i),n>0&&(t[e-1][4]=i[4]);const s=il(t,10+n);!function RT(t,n){ho(t,n,n[11],2,null,null),n[0]=null,n[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 Um(t,n){if(!(128&n[2])){const e=n[11];e.destroyNode&&ho(t,n,e,3,null,null),function kT(t){let n=t[13];if(!n)return ad(t[1],t);for(;n;){let e=null;if(Wt(n))e=n[13];else{const i=n[10];i&&(e=i)}if(!e){for(;n&&!n[4]&&n!==t;)Wt(n)&&ad(n[1],n),n=n[3];null===n&&(n=t),Wt(n)&&ad(n[1],n),e=n&&n[4]}n=e}}(n)}}function ad(t,n){if(!(128&n[2])){n[2]&=-65,n[2]|=128,function HT(t,n){let e;if(null!=t&&null!=(e=t.destroyHooks))for(let i=0;i<e.length;i+=2){const r=n[e[i]];if(!(r instanceof eo)){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{}}}}(t,n),function BT(t,n){const e=t.cleanup,i=n[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])();n[7]=null}}(t,n),1===n[1].type&&n[11].destroy();const e=n[17];if(null!==e&&In(n[3])){e!==n[3]&&$m(e,n);const i=n[19];null!==i&&i.detachView(t)}!function bT(t){Yu.delete(t[20])}(n)}}function jm(t,n,e){return function zm(t,n,e){let i=n;for(;null!==i&&40&i.type;)i=(n=i).parent;if(null===i)return e[0];{const{componentOffset:r}=i;if(r>-1){const{encapsulation:s}=t.data[i.directiveStart+r];if(s===Sn.None||s===Sn.Emulated)return null}return qt(i,e)}}(t,n.parent,e)}function rr(t,n,e,i,r){t.insertBefore(n,e,i,r)}function Gm(t,n,e){t.appendChild(n,e)}function Wm(t,n,e,i,r){null!==i?rr(t,n,e,i,r):Gm(t,n,e)}function al(t,n){return t.parentNode(n)}function qm(t,n,e){return Qm(t,n,e)}let ul,pd,dl,Qm=function Km(t,n,e){return 40&t.type?qt(t,e):null};function ll(t,n,e,i){const r=jm(t,i,n),s=n[11],a=qm(i.parent||n[6],i,n);if(null!=r)if(Array.isArray(e))for(let l=0;l<e.length;l++)Wm(s,r,e[l],a,!1);else Wm(s,r,e,a,!1)}function cl(t,n){if(null!==n){const e=n.type;if(3&e)return qt(n,t);if(4&e)return cd(-1,t[n.index]);if(8&e){const i=n.child;if(null!==i)return cl(t,i);{const r=t[n.index];return In(r)?cd(-1,r):ft(r)}}if(32&e)return td(n,t)()||ft(t[n.index]);{const i=Ym(t,n);return null!==i?Array.isArray(i)?i[0]:cl(uo(t[16]),i):cl(t,n.next)}}return null}function Ym(t,n){return null!==n?t[16][6].projection[n.projection]:null}function cd(t,n){const e=10+t+1;if(e<n.length){const i=n[e],r=i[1].firstChild;if(null!==r)return cl(i,r)}return n[7]}function dd(t,n,e,i,r,s,o){for(;null!=e;){const a=i[e.index],l=e.type;if(o&&0===n&&(a&&Ct(ft(a),i),e.flags|=2),32!=(32&e.flags))if(8&l)dd(t,n,e.child,i,r,s,!1),Jr(n,t,r,a,s);else if(32&l){const c=td(e,i);let u;for(;u=c();)Jr(n,t,r,u,s);Jr(n,t,r,a,s)}else 16&l?Xm(t,n,i,e,r,s):Jr(n,t,r,a,s);e=o?e.projectionNext:e.next}}function ho(t,n,e,i,r,s){dd(e,i,t.firstChild,n,r,s,!1)}function Xm(t,n,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++)Jr(n,t,r,l[c],s);else dd(t,n,l,o[3],r,s,!0)}function Jm(t,n,e){""===e?t.removeAttribute(n,"class"):t.setAttribute(n,"class",e)}function e_(t,n,e){const{mergedAttrs:i,classes:r,styles:s}=e;null!==i&&Lu(t,n,i),null!==r&&Jm(t,n,r),null!==s&&function WT(t,n,e){t.setAttribute(n,"style",e)}(t,n,s)}function sr(t){return function hd(){if(void 0===ul&&(ul=null,Ne.trustedTypes))try{ul=Ne.trustedTypes.createPolicy("angular",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return ul}()?.createHTML(t)||t}function r_(t){return function fd(){if(void 0===dl&&(dl=null,Ne.trustedTypes))try{dl=Ne.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:t=>t,createScript:t=>t,createScriptURL:t=>t})}catch{}return dl}()?.createScriptURL(t)||t}class or{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Ra})`}}class YT extends or{getTypeName(){return"HTML"}}class XT extends or{getTypeName(){return"Style"}}class JT extends or{getTypeName(){return"Script"}}class e1 extends or{getTypeName(){return"URL"}}class t1 extends or{getTypeName(){return"ResourceURL"}}function Zt(t){return t instanceof or?t.changingThisBreaksApplicationSecurity:t}function Un(t,n){const e=function n1(t){return t instanceof or&&t.getTypeName()||null}(t);if(null!=e&&e!==n){if("ResourceURL"===e&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${e} (see ${Ra})`)}return e===n}class c1{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n="<body><remove></remove>"+n;try{const e=(new window.DOMParser).parseFromString(sr(n),"text/html").body;return null===e?this.inertDocumentHelper.getInertBodyElement(n):(e.removeChild(e.firstChild),e)}catch{return null}}}class u1{constructor(n){if(this.defaultDoc=n,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(n){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=sr(n),e;const i=this.inertDocument.createElement("body");return i.innerHTML=sr(n),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(i),i}stripCustomNsAttrs(n){const e=n.attributes;for(let r=e.length-1;0<r;r--){const o=e.item(r).name;("xmlns:ns1"===o||0===o.indexOf("ns1:"))&&n.removeAttribute(o)}let i=n.firstChild;for(;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}const h1=/^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;function hl(t){return(t=String(t)).match(h1)?t:"unsafe:"+t}function ui(t){const n={};for(const e of t.split(","))n[e]=!0;return n}function po(...t){const n={};for(const e of t)for(const i in e)e.hasOwnProperty(i)&&(n[i]=!0);return n}const o_=ui("area,br,col,hr,img,wbr"),a_=ui("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),l_=ui("rp,rt"),gd=po(o_,po(a_,ui("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")),po(l_,ui("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")),po(l_,a_)),md=ui("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),c_=po(md,ui("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"),ui("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")),p1=ui("script,style,template");class f1{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let e=n.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(n){const e=n.nodeName.toLowerCase();if(!gd.hasOwnProperty(e))return this.sanitizedSomething=!0,!p1.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const i=n.attributes;for(let r=0;r<i.length;r++){const s=i.item(r),o=s.name,a=o.toLowerCase();if(!c_.hasOwnProperty(a)){this.sanitizedSomething=!0;continue}let l=s.value;md[a]&&(l=hl(l)),this.buf.push(" ",o,'="',u_(l),'"')}return this.buf.push(">"),!0}endElement(n){const e=n.nodeName.toLowerCase();gd.hasOwnProperty(e)&&!o_.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(n){this.buf.push(u_(n))}checkClobberedElement(n,e){if(e&&(n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return e}}const g1=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,m1=/([^\#-~ |!])/g;function u_(t){return t.replace(/&/g,"&").replace(g1,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(m1,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}let pl;function d_(t,n){let e=null;try{pl=pl||function s_(t){const n=new u1(t);return function d1(){try{return!!(new window.DOMParser).parseFromString(sr(""),"text/html")}catch{return!1}}()?new c1(n):n}(t);let i=n?String(n):"";e=pl.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=pl.getInertBodyElement(i)}while(i!==s);return sr((new f1).sanitizeChildren(_d(e)||e))}finally{if(e){const i=_d(e)||e;for(;i.firstChild;)i.removeChild(i.firstChild)}}}function _d(t){return"content"in t&&function _1(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var ke=(()=>((ke=ke||{})[ke.NONE=0]="NONE",ke[ke.HTML=1]="HTML",ke[ke.STYLE=2]="STYLE",ke[ke.SCRIPT=3]="SCRIPT",ke[ke.URL=4]="URL",ke[ke.RESOURCE_URL=5]="RESOURCE_URL",ke))();function dn(t){const n=fo();return n?n.sanitize(ke.URL,t)||"":Un(t,"URL")?Zt(t):hl(Y(t))}function yd(t){const n=fo();if(n)return r_(n.sanitize(ke.RESOURCE_URL,t)||"");if(Un(t,"ResourceURL"))return r_(Zt(t));throw new I(904,!1)}function fo(){const t=M();return t&&t[12]}const fl=new H("ENVIRONMENT_INITIALIZER"),p_=new H("INJECTOR",-1),f_=new H("INJECTOR_DEF_TYPES");class g_{get(n,e=Gs){if(e===Gs){const i=new Error(`NullInjectorError: No provider for ${Re(n)}!`);throw i.name="NullInjectorError",i}return e}}function E1(...t){return{\u0275providers:m_(0,t),\u0275fromNgModule:!0}}function m_(t,...n){const e=[],i=new Set;let r;return ir(n,s=>{const o=s;vd(o,e,[],i)&&(r||(r=[]),r.push(o))}),void 0!==r&&__(r,e),e}function __(t,n){for(let e=0;e<t.length;e++){const{providers:r}=t[e];wd(r,s=>{n.push(s)})}}function vd(t,n,e,i){if(!(t=q(t)))return!1;let r=null,s=Dg(t);const o=!s&&Ce(t);if(s||o){if(o&&!o.standalone)return!1;r=t}else{const l=t.ngModule;if(s=Dg(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)vd(c,n,e,i)}}else{if(!s)return!1;{if(null!=s.imports&&!a){let c;i.add(r);try{ir(s.imports,u=>{vd(u,n,e,i)&&(c||(c=[]),c.push(u))})}finally{}void 0!==c&&__(c,n)}if(!a){const c=er(r)||(()=>new r);n.push({provide:r,useFactory:c,deps:me},{provide:f_,useValue:r,multi:!0},{provide:fl,useValue:()=>x(r),multi:!0})}const l=s.providers;null==l||a||wd(l,u=>{n.push(u)})}}return r!==t&&void 0!==t.providers}function wd(t,n){for(let e of t)mu(e)&&(e=e.\u0275providers),Array.isArray(e)?wd(e,n):n(e)}const I1=Ae({provide:String,useValue:Ae});function Cd(t){return null!==t&&"object"==typeof t&&I1 in t}function ar(t){return"function"==typeof t}const bd=new H("Set Injector scope."),gl={},M1={};let Dd;function ml(){return void 0===Dd&&(Dd=new g_),Dd}class jn{}class w_ extends jn{get destroyed(){return this._destroyed}constructor(n,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,Ed(n,o=>this.processProvider(o)),this.records.set(p_,es(void 0,this)),r.has("environment")&&this.records.set(jn,es(void 0,this));const s=this.records.get(bd);null!=s&&"string"==typeof s.value&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(f_.multi,me,K.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){this._onDestroyHooks.push(n)}runInContext(n){this.assertNotDestroyed();const e=Lr(this),i=ln(void 0);try{return n()}finally{Lr(e),ln(i)}}get(n,e=Gs,i=K.Default){this.assertNotDestroyed(),i=Ba(i);const r=Lr(this),s=ln(void 0);try{if(!(i&K.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function R1(t){return"function"==typeof t||"object"==typeof t&&t instanceof H}(n)&&ka(n);a=l&&this.injectableDefInScope(l)?es(Sd(n),gl):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(i&K.Self?ml():this.parent).get(n,e=i&K.Optional&&e===Gs?null:e)}catch(o){if("NullInjectorError"===o.name){if((o[Va]=o[Va]||[]).unshift(Re(n)),r)throw o;return function tI(t,n,e,i){const r=t[Va];throw n[Ig]&&r.unshift(n[Ig]),t.message=function nI(t,n,e,i=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.slice(2):t;let r=Re(n);if(Array.isArray(n))r=n.map(Re).join(" -> ");else if("object"==typeof n){let s=[];for(let o in n)if(n.hasOwnProperty(o)){let a=n[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):Re(a)))}r=`{${s.join(", ")}}`}return`${e}${i?"("+i+")":""}[${r}]: ${t.replace(Y0,"\n ")}`}("\n"+t.message,r,e,i),t.ngTokenPath=r,t[Va]=null,t}(o,n,"R3InjectorError",this.source)}throw o}finally{ln(s),Lr(r)}}resolveInjectorInitializers(){const n=Lr(this),e=ln(void 0);try{const i=this.get(fl.multi,me,K.Self);for(const r of i)r()}finally{Lr(n),ln(e)}}toString(){const n=[],e=this.records;for(const i of e.keys())n.push(Re(i));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new I(205,!1)}processProvider(n){let e=ar(n=q(n))?n:q(n&&n.provide);const i=function O1(t){return Cd(t)?es(void 0,t.useValue):es(C_(t),gl)}(n);if(ar(n)||!0!==n.multi)this.records.get(e);else{let r=this.records.get(e);r||(r=es(void 0,gl,!0),r.factory=()=>wu(r.multi),this.records.set(e,r)),e=n,r.multi.push(n)}this.records.set(e,i)}hydrate(n,e){return e.value===gl&&(e.value=M1,e.value=e.factory()),"object"==typeof e.value&&e.value&&function x1(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}injectableDefInScope(n){if(!n.providedIn)return!1;const e=q(n.providedIn);return"string"==typeof e?"any"===e||this.scopes.has(e):this.injectorDefTypes.has(e)}}function Sd(t){const n=ka(t),e=null!==n?n.factory:er(t);if(null!==e)return e;if(t instanceof H)throw new I(204,!1);if(t instanceof Function)return function A1(t){const n=t.length;if(n>0)throw ro(n,"?"),new I(204,!1);const e=function W0(t){const n=t&&(t[La]||t[Sg]);if(n){const e=function q0(t){if(t.hasOwnProperty("name"))return t.name;const n=(""+t).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(t);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.`),n}return null}(t);return null!==e?()=>e.factory(t):()=>new t}(t);throw new I(204,!1)}function C_(t,n,e){let i;if(ar(t)){const r=q(t);return er(r)||Sd(r)}if(Cd(t))i=()=>q(t.useValue);else if(function v_(t){return!(!t||!t.useFactory)}(t))i=()=>t.useFactory(...wu(t.deps||[]));else if(function y_(t){return!(!t||!t.useExisting)}(t))i=()=>x(q(t.useExisting));else{const r=q(t&&(t.useClass||t.provide));if(!function P1(t){return!!t.deps}(t))return er(r)||Sd(r);i=()=>new r(...wu(t.deps))}return i}function es(t,n,e=!1){return{factory:t,value:n,multi:e?[]:void 0}}function Ed(t,n){for(const e of t)Array.isArray(e)?Ed(e,n):e&&mu(e)?Ed(e.\u0275providers,n):n(e)}class N1{}class b_{}class k1{resolveComponentFactory(n){throw function F1(t){const n=Error(`No component factory found for ${Re(t)}. Did you add it to @NgModule.entryComponents?`);return n.ngComponent=t,n}(n)}}let go=(()=>{class t{}return t.NULL=new k1,t})();function L1(){return ts(gt(),M())}function ts(t,n){return new $e(qt(t,n))}let $e=(()=>{class t{constructor(e){this.nativeElement=e}}return t.__NG_ELEMENT_ID__=L1,t})();function V1(t){return t instanceof $e?t.nativeElement:t}class mo{}let Yt=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function B1(){const t=M(),e=Kt(gt().index,t);return(Wt(e)?e:t)[11]}(),t})(),H1=(()=>{class t{}return t.\u0275prov=k({token:t,providedIn:"root",factory:()=>null}),t})();class _o{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const $1=new _o("15.1.2"),Id={};function Md(t){return t.ngOriginalError}class ns{constructor(){this._console=console}handleError(n){const e=this._findOriginalError(n);this._console.error("ERROR",n),e&&this._console.error("ORIGINAL ERROR",e)}_findOriginalError(n){let e=n&&Md(n);for(;e&&Md(e);)e=Md(e);return e||null}}function di(t){return t instanceof Function?t():t}function E_(t,n,e){let i=t.length;for(;;){const r=t.indexOf(n,e);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){const s=n.length;if(r+s===i||t.charCodeAt(r+s)<=32)return r}e=r+1}}const I_="ng-template";function X1(t,n,e){let i=0;for(;i<t.length;){let r=t[i++];if(e&&"class"===r){if(r=t[i],-1!==E_(r.toLowerCase(),n,0))return!0}else if(1===r){for(;i<t.length&&"string"==typeof(r=t[i++]);)if(r.toLowerCase()===n)return!0;return!1}}return!1}function T_(t){return 4===t.type&&t.value!==I_}function J1(t,n,e){return n===(4!==t.type||e?t.value:I_)}function eM(t,n,e){let i=4;const r=t.attrs||[],s=function iM(t){for(let n=0;n<t.length;n++)if(im(t[n]))return n;return t.length}(r);let o=!1;for(let a=0;a<n.length;a++){const l=n[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!J1(t,l,e)||""===l&&1===n.length){if(Mn(i))return!1;o=!0}}else{const c=8&i?l:n[++a];if(8&i&&null!==t.attrs){if(!X1(t.attrs,c,e)){if(Mn(i))return!1;o=!0}continue}const d=tM(8&i?"class":l,r,T_(t),e);if(-1===d){if(Mn(i))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":r[d+1].toLowerCase();const p=8&i?h:null;if(p&&-1!==E_(p,c,0)||2&i&&c!==h){if(Mn(i))return!1;o=!0}}}}else{if(!o&&!Mn(i)&&!Mn(l))return!1;if(o&&Mn(l))continue;o=!1,i=l|1&i}}return Mn(i)||o}function Mn(t){return 0==(1&t)}function tM(t,n,e,i){if(null===n)return-1;let r=0;if(i||!e){let s=!1;for(;r<n.length;){const o=n[r];if(o===t)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=n[++r];for(;"string"==typeof a;)a=n[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function rM(t,n){let e=t.indexOf(4);if(e>-1)for(e++;e<t.length;){const i=t[e];if("number"==typeof i)return-1;if(i===n)return e;e++}return-1}(n,t)}function M_(t,n,e=!1){for(let i=0;i<n.length;i++)if(eM(t,n[i],e))return!0;return!1}function sM(t,n){e:for(let e=0;e<n.length;e++){const i=n[e];if(t.length===i.length){for(let r=0;r<t.length;r++)if(t[r]!==i[r])continue e;return!0}}return!1}function A_(t,n){return t?":not("+n.trim()+")":n}function oM(t){let n=t[0],e=1,i=2,r="",s=!1;for(;e<t.length;){let o=t[e];if("string"==typeof o)if(2&i){const a=t[++e];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!Mn(o)&&(n+=A_(s,r),r=""),i=o,s=s||!Mn(i);e++}return""!==r&&(n+=A_(s,r)),n}const J={};function m(t){O_(pe(),M(),Rt()+t,!1)}function O_(t,n,e,i){if(!i)if(3==(3&n[2])){const s=t.preOrderCheckHooks;null!==s&&Qa(n,s,e)}else{const s=t.preOrderHooks;null!==s&&Za(n,s,0,e)}tr(e)}function N_(t,n=null,e=null,i){const r=F_(t,n,e,i);return r.resolveInjectorInitializers(),r}function F_(t,n=null,e=null,i,r=new Set){const s=[e||me,E1(t)];return i=i||("object"==typeof t?void 0:Re(t)),new w_(s,n||ml(),i||null,r)}let hn=(()=>{class t{static create(e,i){if(Array.isArray(e))return N_({name:""},i,e,"");{const r=e.name??"";return N_({name:r},e.parent,e.providers,r)}}}return t.THROW_IF_NOT_FOUND=Gs,t.NULL=new g_,t.\u0275prov=k({token:t,providedIn:"any",factory:()=>x(p_)}),t.__NG_ELEMENT_ID__=-1,t})();function D(t,n=K.Default){const e=M();return null===e?x(t,n):hm(gt(),e,q(t),n)}function j_(t,n){const e=t.contentQueries;if(null!==e)for(let i=0;i<e.length;i+=2){const s=e[i+1];if(-1!==s){const o=t.data[s];xu(e[i]),o.contentQueries(2,n[s],s)}}}function yl(t,n,e,i,r,s,o,a,l,c,u){const d=n.blueprint.slice();return d[0]=r,d[2]=76|i,(null!==u||t&&1024&t[2])&&(d[2]|=1024),jg(d),d[3]=d[15]=t,d[8]=e,d[10]=o||t&&t[10],d[11]=a||t&&t[11],d[12]=l||t&&t[12]||null,d[9]=c||t&&t[9]||null,d[6]=s,d[20]=function wT(){return vT++}(),d[21]=u,d[16]=2==n.type?t[16]:d,d}function ss(t,n,e,i,r){let s=t.data[n];if(null===s)s=function Rd(t,n,e,i,r){const s=Wg(),o=Mu(),l=t.data[n]=function xM(t,n,e,i,r,s){return{type:e,index:i,insertBeforeIndex:null,injectorIndex:n?n.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:n,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,n,i,r);return null===t.firstChild&&(t.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(t,n,e,i,r),function SI(){return X.lFrame.inI18n}()&&(s.flags|=32);else if(64&s.type){s.type=e,s.value=i,s.attrs=r;const o=function Js(){const t=X.lFrame,n=t.currentTNode;return t.isParent?n:n.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return Hn(s,!0),s}function yo(t,n,e,i){if(0===e)return-1;const r=n.length;for(let s=0;s<e;s++)n.push(i),t.blueprint.push(i),t.data.push(null);return r}function Nd(t,n,e){Ru(n);try{const i=t.viewQuery;null!==i&&zd(1,i,e);const r=t.template;null!==r&&z_(t,n,r,1,e),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&j_(t,n),t.staticViewQueries&&zd(2,t.viewQuery,e);const s=t.components;null!==s&&function AM(t,n){for(let e=0;e<n.length;e++)YM(t,n[e])}(n,s)}catch(i){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),i}finally{n[2]&=-5,Nu()}}function vl(t,n,e,i){const r=n[2];if(128!=(128&r)){Ru(n);try{jg(n),function Kg(t){return X.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==e&&z_(t,n,e,2,i);const o=3==(3&r);if(o){const c=t.preOrderCheckHooks;null!==c&&Qa(n,c,null)}else{const c=t.preOrderHooks;null!==c&&Za(n,c,0,null),Fu(n,0)}if(function QM(t){for(let n=nd(t);null!==n;n=id(n)){if(!n[2])continue;const e=n[9];for(let i=0;i<e.length;i++){const r=e[i];512&r[2]||Tu(r[3],1),r[2]|=512}}}(n),function KM(t){for(let n=nd(t);null!==n;n=id(n))for(let e=10;e<n.length;e++){const i=n[e],r=i[1];qa(i)&&vl(r,i,r.template,i[8])}}(n),null!==t.contentQueries&&j_(t,n),o){const c=t.contentCheckHooks;null!==c&&Qa(n,c)}else{const c=t.contentHooks;null!==c&&Za(n,c,1),Fu(n,1)}!function TM(t,n){const e=t.hostBindingOpCodes;if(null!==e)try{for(let i=0;i<e.length;i++){const r=e[i];if(r<0)tr(~r);else{const s=r,o=e[++i],a=e[++i];EI(o,s),a(2,n[s])}}}finally{tr(-1)}}(t,n);const a=t.components;null!==a&&function MM(t,n){for(let e=0;e<n.length;e++)ZM(t,n[e])}(n,a);const l=t.viewQuery;if(null!==l&&zd(2,l,i),o){const c=t.viewCheckHooks;null!==c&&Qa(n,c)}else{const c=t.viewHooks;null!==c&&Za(n,c,2),Fu(n,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),n[2]&=-41,512&n[2]&&(n[2]&=-513,Tu(n[3],-1))}finally{Nu()}}}function z_(t,n,e,i,r){const s=Rt(),o=2&i;try{tr(-1),o&&n.length>22&&O_(t,n,22,!1),e(i,r)}finally{tr(s)}}function Fd(t,n,e){if(Eu(n)){const r=n.directiveEnd;for(let s=n.directiveStart;s<r;s++){const o=t.data[s];o.contentQueries&&o.contentQueries(1,e[s],s)}}}function kd(t,n,e){Gg()&&(function VM(t,n,e,i){const r=e.directiveStart,s=e.directiveEnd;Xs(e)&&function GM(t,n,e){const i=qt(n,t),r=G_(e),s=t[10],o=wl(t,yl(t,r,null,e.onPush?32:16,i,n,s,s.createRenderer(i,e),null,null,null));t[n.index]=o}(n,e,t.data[r+e.componentOffset]),t.firstCreatePass||el(e,n),Ct(i,n);const o=e.initialInputs;for(let a=r;a<s;a++){const l=t.data[a],c=nr(n,t,a,e);Ct(c,n),null!==o&&WM(0,a-r,c,l,0,o),Tn(l)&&(Kt(e.index,n)[8]=nr(n,t,a,e))}}(t,n,e,qt(e,n)),64==(64&e.flags)&&Y_(t,n,e))}function Ld(t,n,e=qt){const i=n.localNames;if(null!==i){let r=n.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?e(n,t):t[o];t[r++]=a}}}function G_(t){const n=t.tView;return null===n||n.incompleteFirstPass?t.tView=Vd(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):n}function Vd(t,n,e,i,r,s,o,a,l,c){const u=22+i,d=u+r,h=function OM(t,n){const e=[];for(let i=0;i<n;i++)e.push(i<t?null:J);return e}(u,d),p="function"==typeof c?c():c;return h[1]={type:t,blueprint:h,template:e,queries:null,viewQuery:a,declTNode:n,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:p,incompleteFirstPass:!1}}function W_(t,n,e,i){const r=J_(n);null===e?r.push(i):(r.push(e),t.firstCreatePass&&ey(t).push(i,r.length-1))}function q_(t,n,e,i){for(let r in t)if(t.hasOwnProperty(r)){e=null===e?{}:e;const s=t[r];null===i?K_(e,n,r,s):i.hasOwnProperty(r)&&K_(e,n,i[r],s)}return e}function K_(t,n,e,i){t.hasOwnProperty(e)?t[e].push(n,i):t[e]=[n,i]}function Q_(t,n){const e=Kt(n,t);16&e[2]||(e[2]|=32)}function Bd(t,n,e,i){let r=!1;if(Gg()){const s=null===i?null:{"":-1},o=function HM(t,n){const e=t.directiveRegistry;let i=null,r=null;if(e)for(let s=0;s<e.length;s++){const o=e[s];if(M_(n,o.selectors,!1))if(i||(i=[]),Tn(o))if(null!==o.findHostDirectiveDefs){const a=[];r=r||new Map,o.findHostDirectiveDefs(o,a,r),i.unshift(...a,o),Hd(t,n,a.length)}else i.unshift(o),Hd(t,n,0);else r=r||new Map,o.findHostDirectiveDefs?.(o,i,r),i.push(o)}return null===i?null:[i,r]}(t,e);let a,l;null===o?a=l=null:[a,l]=o,null!==a&&(r=!0,Z_(t,n,e,a,s,l)),s&&function $M(t,n,e){if(n){const i=t.localNames=[];for(let r=0;r<n.length;r+=2){const s=e[n[r+1]];if(null==s)throw new I(-301,!1);i.push(n[r],s)}}}(e,i,s)}return e.mergedAttrs=to(e.mergedAttrs,e.attrs),r}function Z_(t,n,e,i,r,s){for(let c=0;c<i.length;c++)$u(el(e,n),t,i[c].type);!function jM(t,n,e){t.flags|=1,t.directiveStart=n,t.directiveEnd=n+e,t.providerIndexes=n}(e,t.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=yo(t,n,i.length,null);for(let c=0;c<i.length;c++){const u=i[c];e.mergedAttrs=to(e.mergedAttrs,u.hostAttrs),zM(t,e,n,l,u),UM(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)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e.index),o=!0),!a&&(d.ngOnChanges||d.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e.index),a=!0),l++}!function RM(t,n,e){const r=n.directiveEnd,s=t.data,o=n.attrs,a=[];let l=null,c=null;for(let u=n.directiveStart;u<r;u++){const d=s[u],h=e?e.get(d):null,f=h?h.outputs:null;l=q_(d.inputs,u,l,h?h.inputs:null),c=q_(d.outputs,u,c,f);const _=null===l||null===o||T_(n)?null:qM(l,u,o);a.push(_)}null!==l&&(l.hasOwnProperty("class")&&(n.flags|=8),l.hasOwnProperty("style")&&(n.flags|=16)),n.initialInputs=a,n.inputs=l,n.outputs=c}(t,e,s)}function Y_(t,n,e){const i=e.directiveStart,r=e.directiveEnd,s=e.index,o=function II(){return X.lFrame.currentDirectiveIndex}();try{tr(s);for(let a=i;a<r;a++){const l=t.data[a],c=n[a];Ou(a),(null!==l.hostBindings||0!==l.hostVars||null!==l.hostAttrs)&&BM(l,c)}}finally{tr(-1),Ou(o)}}function BM(t,n){null!==t.hostBindings&&t.hostBindings(1,n)}function Hd(t,n,e){n.componentOffset=e,(t.components||(t.components=[])).push(n.index)}function UM(t,n,e){if(e){if(n.exportAs)for(let i=0;i<n.exportAs.length;i++)e[n.exportAs[i]]=t;Tn(n)&&(e[""]=t)}}function zM(t,n,e,i,r){t.data[i]=r;const s=r.factory||(r.factory=er(r.type)),o=new eo(s,Tn(r),D);t.blueprint[i]=o,e[i]=o,function kM(t,n,e,i,r){const s=r.hostBindings;if(s){let o=t.hostBindingOpCodes;null===o&&(o=t.hostBindingOpCodes=[]);const a=~n.index;(function LM(t){let n=t.length;for(;n>0;){const e=t[--n];if("number"==typeof e&&e<0)return e}return 0})(o)!=a&&o.push(a),o.push(e,i,s)}}(t,n,i,yo(t,e,r.hostVars,J),r)}function zn(t,n,e,i,r,s){const o=qt(t,n);!function $d(t,n,e,i,r,s,o){if(null==s)t.removeAttribute(n,r,e);else{const a=null==o?Y(s):o(s,i||"",r);t.setAttribute(n,r,a,e)}}(n[11],o,s,t.value,e,i,r)}function WM(t,n,e,i,r,s){const o=s[n];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 qM(t,n,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(t.hasOwnProperty(s)){null===i&&(i=[]);const o=t[s];for(let a=0;a<o.length;a+=2)if(o[a]===n){i.push(s,o[a+1],e[r+1]);break}}r+=2}else r+=2;else r+=4}return i}function X_(t,n,e,i){return[t,!0,!1,n,null,0,i,e,null,null]}function ZM(t,n){const e=Kt(n,t);if(qa(e)){const i=e[1];48&e[2]?vl(i,e,i.template,e[8]):e[5]>0&&Ud(e)}}function Ud(t){for(let i=nd(t);null!==i;i=id(i))for(let r=10;r<i.length;r++){const s=i[r];if(qa(s))if(512&s[2]){const o=s[1];vl(o,s,o.template,s[8])}else s[5]>0&&Ud(s)}const e=t[1].components;if(null!==e)for(let i=0;i<e.length;i++){const r=Kt(e[i],t);qa(r)&&r[5]>0&&Ud(r)}}function YM(t,n){const e=Kt(n,t),i=e[1];(function XM(t,n){for(let e=n.length;e<t.blueprint.length;e++)n.push(t.blueprint[e])})(i,e),Nd(i,e,e[8])}function wl(t,n){return t[13]?t[14][4]=n:t[13]=n,t[14]=n,n}function jd(t){for(;t;){t[2]|=32;const n=uo(t);if(oI(t)&&!n)return t;t=n}return null}function Cl(t,n,e,i=!0){const r=n[10];r.begin&&r.begin();try{vl(t,n,t.template,e)}catch(o){throw i&&ny(n,o),o}finally{r.end&&r.end()}}function zd(t,n,e){xu(0),n(t,e)}function J_(t){return t[7]||(t[7]=[])}function ey(t){return t.cleanup||(t.cleanup=[])}function ny(t,n){const e=t[9],i=e?e.get(ns,null):null;i&&i.handleError(n)}function Gd(t,n,e,i,r){for(let s=0;s<e.length;){const o=e[s++],a=e[s++],l=n[o],c=t.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function bl(t,n,e){let i=e?t.styles:null,r=e?t.classes:null,s=0;if(null!==n)for(let o=0;o<n.length;o++){const a=n[o];"number"==typeof a?s=a:1==s?r=fu(r,a):2==s&&(i=fu(i,a+": "+n[++o]+";"))}e?t.styles=i:t.stylesWithoutHost=i,e?t.classes=r:t.classesWithoutHost=r}function Dl(t,n,e,i,r=!1){for(;null!==e;){const s=n[e.index];if(null!==s&&i.push(ft(s)),In(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&Dl(l[1],l,c,i)}const o=e.type;if(8&o)Dl(t,n,e.child,i);else if(32&o){const a=td(e,n);let l;for(;l=a();)i.push(l)}else if(16&o){const a=Ym(n,e);if(Array.isArray(a))i.push(...a);else{const l=uo(n[16]);Dl(l[1],l,a,i,!0)}}e=r?e.projectionNext:e.next}return i}class vo{get rootNodes(){const n=this._lView,e=n[1];return Dl(e,n,e.firstChild,[])}constructor(n,e){this._lView=n,this._cdRefInjectingView=e,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[8]}set context(n){this._lView[8]=n}get destroyed(){return 128==(128&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[3];if(In(n)){const e=n[8],i=e?e.indexOf(this):-1;i>-1&&(od(n,i),il(e,i))}this._attachedToViewContainer=!1}Um(this._lView[1],this._lView)}onDestroy(n){W_(this._lView[1],this._lView,null,n)}markForCheck(){jd(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-65}reattach(){this._lView[2]|=64}detectChanges(){Cl(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function FT(t,n){ho(t,n,n[11],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=n}}class JM extends vo{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Cl(n[1],n,n[8],!1)}checkNoChanges(){}get context(){return null}}class iy extends go{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const e=Ce(n);return new wo(e,this.ngModule)}}function ry(t){const n=[];for(let e in t)t.hasOwnProperty(e)&&n.push({propName:t[e],templateName:e});return n}class tA{constructor(n,e){this.injector=n,this.parentInjector=e}get(n,e,i){i=Ba(i);const r=this.injector.get(n,Id,i);return r!==Id||e===Id?r:this.parentInjector.get(n,e,i)}}class wo extends b_{get inputs(){return ry(this.componentDef.inputs)}get outputs(){return ry(this.componentDef.outputs)}constructor(n,e){super(),this.componentDef=n,this.ngModule=e,this.componentType=n.type,this.selector=function aM(t){return t.map(oM).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!e}create(n,e,i,r){let s=(r=r||this.ngModule)instanceof jn?r:r?.injector;s&&null!==this.componentDef.getStandaloneInjector&&(s=this.componentDef.getStandaloneInjector(s)||s);const o=s?new tA(n,s):n,a=o.get(mo,null);if(null===a)throw new I(407,!1);const l=o.get(H1,null),c=a.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",d=i?function PM(t,n,e){return t.selectRootElement(n,e===Sn.ShadowDom)}(c,i,this.componentDef.encapsulation):sd(c,u,function eA(t){const n=t.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(u)),h=this.componentDef.onPush?288:272,p=Vd(0,null,null,1,0,null,null,null,null,null),f=yl(null,p,null,h,null,null,a,c,l,o,null);let _,w;Ru(f);try{const b=this.componentDef;let T,E=null;b.findHostDirectiveDefs?(T=[],E=new Map,b.findHostDirectiveDefs(b,T,E),T.push(b)):T=[b];const O=function iA(t,n){const e=t[1];return t[22]=n,ss(e,22,2,"#host",null)}(f,d),te=function rA(t,n,e,i,r,s,o,a){const l=r[1];!function sA(t,n,e,i){for(const r of t)n.mergedAttrs=to(n.mergedAttrs,r.hostAttrs);null!==n.mergedAttrs&&(bl(n,n.mergedAttrs,!0),null!==e&&e_(i,e,n))}(i,t,n,o);const c=s.createRenderer(n,e),u=yl(r,G_(e),null,e.onPush?32:16,r[t.index],t,s,c,a||null,null,null);return l.firstCreatePass&&Hd(l,t,i.length-1),wl(r,u),r[t.index]=u}(O,d,b,T,f,a,c);w=Ug(p,22),d&&function aA(t,n,e,i){if(i)Lu(t,e,["ng-version",$1.full]);else{const{attrs:r,classes:s}=function lM(t){const n=[],e=[];let i=1,r=2;for(;i<t.length;){let s=t[i];if("string"==typeof s)2===r?""!==s&&n.push(s,t[++i]):8===r&&e.push(s);else{if(!Mn(r))break;r=s}i++}return{attrs:n,classes:e}}(n.selectors[0]);r&&Lu(t,e,r),s&&s.length>0&&Jm(t,e,s.join(" "))}}(c,b,d,i),void 0!==e&&function lA(t,n,e){const i=t.projection=[];for(let r=0;r<n.length;r++){const s=e[r];i.push(null!=s?Array.from(s):null)}}(w,this.ngContentSelectors,e),_=function oA(t,n,e,i,r,s){const o=gt(),a=r[1],l=qt(o,r);Z_(a,r,o,e,null,i);for(let u=0;u<e.length;u++)Ct(nr(r,a,o.directiveStart+u,o),r);Y_(a,r,o),l&&Ct(l,r);const c=nr(r,a,o.directiveStart+o.componentOffset,o);if(t[8]=r[8]=c,null!==s)for(const u of s)u(c,n);return Fd(a,o,t),c}(te,b,T,E,f,[cA]),Nd(p,f,null)}finally{Nu()}return new nA(this.componentType,_,ts(w,f),f,w)}}class nA extends N1{constructor(n,e,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=e,this.hostView=this.changeDetectorRef=new JM(r),this.componentType=n}setInput(n,e){const i=this._tNode.inputs;let r;if(null!==i&&(r=i[n])){const s=this._rootLView;Gd(s[1],s,r,n,e),Q_(s,this._tNode.index)}}get injector(){return new Wr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(n){this.hostView.onDestroy(n)}}function cA(){const t=gt();Ka(M()[1],t)}function Ee(t){let n=function sy(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),e=!0;const i=[t];for(;n;){let r;if(Tn(t))r=n.\u0275cmp||n.\u0275dir;else{if(n.\u0275cmp)throw new I(903,!1);r=n.\u0275dir}if(r){if(e){i.push(r);const o=t;o.inputs=Wd(t.inputs),o.declaredInputs=Wd(t.declaredInputs),o.outputs=Wd(t.outputs);const a=r.hostBindings;a&&pA(t,a);const l=r.viewQuery,c=r.contentQueries;if(l&&dA(t,l),c&&hA(t,c),pu(t.inputs,r.inputs),pu(t.declaredInputs,r.declaredInputs),pu(t.outputs,r.outputs),Tn(r)&&r.data.animation){const u=t.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(t),a===Ee&&(e=!1)}}n=Object.getPrototypeOf(n)}!function uA(t){let n=0,e=null;for(let i=t.length-1;i>=0;i--){const r=t[i];r.hostVars=n+=r.hostVars,r.hostAttrs=to(r.hostAttrs,e=to(e,r.hostAttrs))}}(i)}function Wd(t){return t===si?{}:t===me?[]:t}function dA(t,n){const e=t.viewQuery;t.viewQuery=e?(i,r)=>{n(i,r),e(i,r)}:n}function hA(t,n){const e=t.contentQueries;t.contentQueries=e?(i,r,s)=>{n(i,r,s),e(i,r,s)}:n}function pA(t,n){const e=t.hostBindings;t.hostBindings=e?(i,r)=>{n(i,r),e(i,r)}:n}let Sl=null;function lr(){if(!Sl){const t=Ne.Symbol;if(t&&t.iterator)Sl=t.iterator;else{const n=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<n.length;++e){const i=n[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(Sl=i)}}}return Sl}function El(t){return!!qd(t)&&(Array.isArray(t)||!(t instanceof Map)&&lr()in t)}function qd(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Gn(t,n,e){return t[n]=e}function bt(t,n,e){return!Object.is(t[n],e)&&(t[n]=e,!0)}function cr(t,n,e,i){const r=bt(t,n,e);return bt(t,n+1,i)||r}function Be(t,n,e,i){const r=M();return bt(r,zr(),n)&&(pe(),zn(He(),r,t,n,e,i)),Be}function S(t,n,e,i,r,s,o,a){const l=M(),c=pe(),u=t+22,d=c.firstCreatePass?function DA(t,n,e,i,r,s,o,a,l){const c=n.consts,u=ss(n,t,4,o||null,xi(c,a));Bd(n,e,u,xi(c,l)),Ka(n,u);const d=u.tViews=Vd(2,u,i,r,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,c);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,c,l,n,e,i,r,s,o):c.data[u];Hn(d,!1);const h=l[11].createComment("");ll(c,l,h,d),Ct(h,l),wl(l,l[u]=X_(h,l,h,d)),Ga(d)&&kd(c,l,d),null!=o&&Ld(l,d,a)}function An(t){return jr(function DI(){return X.lFrame.contextLView}(),22+t)}function g(t,n,e){const i=M();return bt(i,zr(),n)&&function Xt(t,n,e,i,r,s,o,a){const l=qt(n,e);let u,c=n.inputs;!a&&null!=c&&(u=c[i])?(Gd(t,e,u,i,r),Xs(n)&&Q_(e,n.index)):3&n.type&&(i=function NM(t){return"class"===t?"className":"for"===t?"htmlFor":"formaction"===t?"formAction":"innerHtml"===t?"innerHTML":"readonly"===t?"readOnly":"tabindex"===t?"tabIndex":t}(i),r=null!=o?o(r,n.value||"",i):r,s.setProperty(l,i,r))}(pe(),He(),i,t,n,i[11],e,!1),g}function Kd(t,n,e,i,r){const o=r?"class":"style";Gd(t,e,n.inputs[o],o,i)}function y(t,n,e,i){const r=M(),s=pe(),o=22+t,a=r[11],l=r[o]=sd(a,n,function NI(){return X.lFrame.currentNamespace}()),c=s.firstCreatePass?function EA(t,n,e,i,r,s,o){const a=n.consts,c=ss(n,t,2,r,xi(a,s));return Bd(n,e,c,xi(a,o)),null!==c.attrs&&bl(c,c.attrs,!1),null!==c.mergedAttrs&&bl(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(o,s,r,0,n,e,i):s.data[o];return Hn(c,!0),e_(a,l,c),32!=(32&c.flags)&&ll(s,r,l,c),0===function yI(){return X.lFrame.elementDepthCount}()&&Ct(l,r),function vI(){X.lFrame.elementDepthCount++}(),Ga(c)&&(kd(s,r,c),Fd(s,c,r)),null!==i&&Ld(r,c),y}function v(){let t=gt();Mu()?Au():(t=t.parent,Hn(t,!1));const n=t;!function wI(){X.lFrame.elementDepthCount--}();const e=pe();return e.firstCreatePass&&(Ka(e,t),Eu(t)&&e.queries.elementEnd(t)),null!=n.classesWithoutHost&&function VI(t){return 0!=(8&t.flags)}(n)&&Kd(e,n,M(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function BI(t){return 0!=(16&t.flags)}(n)&&Kd(e,n,M(),n.stylesWithoutHost,!1),v}function G(t,n,e,i){return y(t,n,e,i),v(),G}function oe(t,n,e){const i=M(),r=pe(),s=t+22,o=r.firstCreatePass?function IA(t,n,e,i,r){const s=n.consts,o=xi(s,i),a=ss(n,t,8,"ng-container",o);return null!==o&&bl(a,o,!0),Bd(n,e,a,xi(s,r)),null!==n.queries&&n.queries.elementStart(n,a),a}(s,r,i,n,e):r.data[s];Hn(o,!0);const a=i[s]=i[11].createComment("");return ll(r,i,a,o),Ct(a,i),Ga(o)&&(kd(r,i,o),Fd(r,o,i)),null!=e&&Ld(i,o),oe}function ae(){let t=gt();const n=pe();return Mu()?Au():(t=t.parent,Hn(t,!1)),n.firstCreatePass&&(Ka(n,t),Eu(t)&&n.queries.elementEnd(t)),ae}function fe(t,n,e){return oe(t,n,e),ae(),fe}function be(){return M()}function bo(t){return!!t&&"function"==typeof t.then}const Qd=function yy(t){return!!t&&"function"==typeof t.subscribe};function F(t,n,e,i){const r=M(),s=pe(),o=gt();return function wy(t,n,e,i,r,s,o){const a=Ga(i),c=t.firstCreatePass&&ey(t),u=n[8],d=J_(n);let h=!0;if(3&i.type||o){const _=qt(i,n),w=o?o(_):_,b=d.length,T=o?O=>o(ft(O[i.index])):i.index;let E=null;if(!o&&a&&(E=function TA(t,n,e,i){const r=t.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=n[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(t,n,r,i.index)),null!==E)(E.__ngLastListenerFn__||E).__ngNextListenerFn__=s,E.__ngLastListenerFn__=s,h=!1;else{s=by(i,n,u,s,!1);const O=e.listen(w,r,s);d.push(s,O),c&&c.push(r,T,b,b+1)}}else s=by(i,n,u,s,!1);const p=i.outputs;let f;if(h&&null!==p&&(f=p[r])){const _=f.length;if(_)for(let w=0;w<_;w+=2){const te=n[f[w]][f[w+1]].subscribe(s),he=d.length;d.push(s,te),c&&c.push(r,i.index,he,-(he+1))}}}(s,r,r[11],o,t,n,i),F}function Cy(t,n,e,i){try{return!1!==e(i)}catch(r){return ny(t,r),!1}}function by(t,n,e,i,r){return function s(o){if(o===Function)return i;jd(t.componentOffset>-1?Kt(t.index,n):n);let l=Cy(n,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=Cy(n,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function C(t=1){return function MI(t){return(X.lFrame.contextLView=function AI(t,n){for(;t>0;)n=n[15],t--;return n}(t,X.lFrame.contextLView))[8]}(t)}function MA(t,n){let e=null;const i=function nM(t){const n=t.attrs;if(null!=n){const e=n.indexOf(5);if(!(1&e))return n[e+1]}return null}(t);for(let r=0;r<n.length;r++){const s=n[r];if("*"!==s){if(null===i?M_(t,s,!0):sM(i,s))return r}else e=r}return e}function Ri(t){const n=M()[16][6];if(!n.projection){const i=n.projection=ro(t?t.length:1,null),r=i.slice();let s=n.child;for(;null!==s;){const o=t?MA(s,t):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function pi(t,n=0,e){const i=M(),r=pe(),s=ss(r,22+t,16,null,e||null);null===s.projection&&(s.projection=n),Au(),32!=(32&s.flags)&&function jT(t,n,e){Xm(n[11],0,n,e,jm(t,e,n),qm(e.parent||n[6],e,n))}(r,i,s)}function Tl(t,n){return t<<17|n<<2}function Ni(t){return t>>17&32767}function Yd(t){return 2|t}function ur(t){return(131068&t)>>2}function Xd(t,n){return-131069&t|n<<2}function Jd(t){return 1|t}function xy(t,n,e,i,r){const s=t[e+1],o=null===n;let a=i?Ni(s):ur(s),l=!1;for(;0!==a&&(!1===l||o);){const u=t[a+1];NA(t[a],n)&&(l=!0,t[a+1]=i?Jd(u):Yd(u)),a=i?Ni(u):ur(u)}l&&(t[e+1]=i?Yd(s):Jd(s))}function NA(t,n){return null===t||null==n||(Array.isArray(t)?t[1]:t)===n||!(!Array.isArray(t)||"string"!=typeof n)&&Yr(t,n)>=0}const st={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function Ry(t){return t.substring(st.key,st.keyEnd)}function FA(t){return t.substring(st.value,st.valueEnd)}function Ny(t,n){const e=st.textEnd;return e===n?-1:(n=st.keyEnd=function VA(t,n,e){for(;n<e&&t.charCodeAt(n)>32;)n++;return n}(t,st.key=n,e),gs(t,n,e))}function Fy(t,n){const e=st.textEnd;let i=st.key=gs(t,n,e);return e===i?-1:(i=st.keyEnd=function BA(t,n,e){let i;for(;n<e&&(45===(i=t.charCodeAt(n))||95===i||(-33&i)>=65&&(-33&i)<=90||i>=48&&i<=57);)n++;return n}(t,i,e),i=Ly(t,i,e),i=st.value=gs(t,i,e),i=st.valueEnd=function HA(t,n,e){let i=-1,r=-1,s=-1,o=n,a=o;for(;o<e;){const l=t.charCodeAt(o++);if(59===l)return a;34===l||39===l?a=o=Vy(t,l,o,e):n===o-4&&85===s&&82===r&&76===i&&40===l?a=o=Vy(t,41,o,e):l>32&&(a=o),s=r,r=i,i=-33&l}return a}(t,i,e),Ly(t,i,e))}function ky(t){st.key=0,st.keyEnd=0,st.value=0,st.valueEnd=0,st.textEnd=t.length}function gs(t,n,e){for(;n<e&&t.charCodeAt(n)<=32;)n++;return n}function Ly(t,n,e,i){return(n=gs(t,n,e))<e&&n++,n}function Vy(t,n,e,i){let r=-1,s=e;for(;s<i;){const o=t.charCodeAt(s++);if(o==n&&92!==r)return s;r=92==o&&92===r?0:o}throw new Error}function eh(t,n,e){return On(t,n,e,!1),eh}function dr(t,n){return On(t,n,null,!0),dr}function fn(t){Pn($y,$A,t,!1)}function $A(t,n){for(let e=function LA(t){return ky(t),Fy(t,gs(t,0,st.textEnd))}(n);e>=0;e=Fy(n,e))$y(t,Ry(n),FA(n))}function Ke(t){Pn(Qt,Wn,t,!0)}function Wn(t,n){for(let e=function kA(t){return ky(t),Ny(t,gs(t,0,st.textEnd))}(n);e>=0;e=Ny(n,e))Qt(t,Ry(n),!0)}function On(t,n,e,i){const r=M(),s=pe(),o=ci(2);s.firstUpdatePass&&Hy(s,t,o,i),n!==J&&bt(r,o,n)&&Uy(s,s.data[Rt()],r,r[11],t,r[o+1]=function KA(t,n){return null==t||("string"==typeof n?t+=n:"object"==typeof t&&(t=Re(Zt(t)))),t}(n,e),i,o)}function Pn(t,n,e,i){const r=pe(),s=ci(2);r.firstUpdatePass&&Hy(r,null,s,i);const o=M();if(e!==J&&bt(o,s,e)){const a=r.data[Rt()];if(zy(a,i)&&!By(r,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;null!==l&&(e=fu(l,e||"")),Kd(r,a,o,e,i)}else!function qA(t,n,e,i,r,s,o,a){r===J&&(r=me);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,p=c<s.length?s[c+1]:void 0;let _,f=null;u===d?(l+=2,c+=2,h!==p&&(f=d,_=p)):null===d||null!==u&&u<d?(l+=2,f=u):(c+=2,f=d,_=p),null!==f&&Uy(t,n,e,i,f,_,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 WA(t,n,e){if(null==e||""===e)return me;const i=[],r=Zt(e);if(Array.isArray(r))for(let s=0;s<r.length;s++)t(i,r[s],!0);else if("object"==typeof r)for(const s in r)r.hasOwnProperty(s)&&t(i,s,r[s]);else"string"==typeof r&&n(i,r);return i}(t,n,e),i,s)}}function By(t,n){return n>=t.expandoStartIndex}function Hy(t,n,e,i){const r=t.data;if(null===r[e+1]){const s=r[Rt()],o=By(t,e);zy(s,i)&&null===n&&!o&&(n=!1),n=function UA(t,n,e,i){const r=function Pu(t){const n=X.lFrame.currentDirectiveIndex;return-1===n?null:t[n]}(t);let s=i?n.residualClasses:n.residualStyles;if(null===r)0===(i?n.classBindings:n.styleBindings)&&(e=Do(e=th(null,t,n,e,i),n.attrs,i),s=null);else{const o=n.directiveStylingLast;if(-1===o||t[o]!==r)if(e=th(r,t,n,e,i),null===s){let l=function jA(t,n,e){const i=e?n.classBindings:n.styleBindings;if(0!==ur(i))return t[Ni(i)]}(t,n,i);void 0!==l&&Array.isArray(l)&&(l=th(null,t,n,l[1],i),l=Do(l,n.attrs,i),function zA(t,n,e,i){t[Ni(e?n.classBindings:n.styleBindings)]=i}(t,n,i,l))}else s=function GA(t,n,e){let i;const r=n.directiveEnd;for(let s=1+n.directiveStylingLast;s<r;s++)i=Do(i,t[s].hostAttrs,e);return Do(i,n.attrs,e)}(t,n,i)}return void 0!==s&&(i?n.residualClasses=s:n.residualStyles=s),e}(r,s,n,i),function xA(t,n,e,i,r,s){let o=s?n.classBindings:n.styleBindings,a=Ni(o),l=ur(o);t[i]=e;let u,c=!1;if(Array.isArray(e)?(u=e[1],(null===u||Yr(e,u)>0)&&(c=!0)):u=e,r)if(0!==l){const h=Ni(t[a+1]);t[i+1]=Tl(h,a),0!==h&&(t[h+1]=Xd(t[h+1],i)),t[a+1]=function OA(t,n){return 131071&t|n<<17}(t[a+1],i)}else t[i+1]=Tl(a,0),0!==a&&(t[a+1]=Xd(t[a+1],i)),a=i;else t[i+1]=Tl(l,0),0===a?a=i:t[l+1]=Xd(t[l+1],i),l=i;c&&(t[i+1]=Yd(t[i+1])),xy(t,u,i,!0),xy(t,u,i,!1),function RA(t,n,e,i,r){const s=r?t.residualClasses:t.residualStyles;null!=s&&"string"==typeof n&&Yr(s,n)>=0&&(e[i+1]=Jd(e[i+1]))}(n,u,t,i,s),o=Tl(a,l),s?n.classBindings=o:n.styleBindings=o}(r,s,n,e,o,i)}}function th(t,n,e,i,r){let s=null;const o=e.directiveEnd;let a=e.directiveStylingLast;for(-1===a?a=e.directiveStart:a++;a<o&&(s=n[a],i=Do(i,s.hostAttrs,r),s!==t);)a++;return null!==t&&(e.directiveStylingLast=a),i}function Do(t,n,e){const i=e?1:2;let r=-1;if(null!==n)for(let s=0;s<n.length;s++){const o=n[s];"number"==typeof o?r=o:r===i&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),Qt(t,o,!!e||n[++s]))}return void 0===t?null:t}function $y(t,n,e){Qt(t,n,Zt(e))}function Uy(t,n,e,i,r,s,o,a){if(!(3&n.type))return;const l=t.data,c=l[a+1],u=function PA(t){return 1==(1&t)}(c)?jy(l,n,e,r,ur(c),o):void 0;Ml(u)||(Ml(s)||function AA(t){return 2==(2&t)}(c)&&(s=jy(l,null,e,r,a,o)),function GT(t,n,e,i,r){if(n)r?t.addClass(e,i):t.removeClass(e,i);else{let s=-1===i.indexOf("-")?void 0:Ht.DashCase;null==r?t.removeStyle(e,i,s):("string"==typeof r&&r.endsWith("!important")&&(r=r.slice(0,-10),s|=Ht.Important),t.setStyle(e,i,r,s))}}(i,o,Wa(Rt(),e),r,s))}function jy(t,n,e,i,r,s){const o=null===n;let a;for(;r>0;){const l=t[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=e[r+1];h===J&&(h=d?me:void 0);let p=d?Gu(h,i):u===i?h:void 0;if(c&&!Ml(p)&&(p=Gu(l,i)),Ml(p)&&(a=p,o))return a;const f=t[r+1];r=o?Ni(f):ur(f)}if(null!==n){let l=s?n.residualClasses:n.residualStyles;null!=l&&(a=Gu(l,i))}return a}function Ml(t){return void 0!==t}function zy(t,n){return 0!=(t.flags&(n?8:16))}function P(t,n=""){const e=M(),i=pe(),r=t+22,s=i.firstCreatePass?ss(i,r,1,n,null):i.data[r],o=e[r]=function rd(t,n){return t.createText(n)}(e[11],n);ll(i,e,o,s),Hn(s,!1)}function _e(t){return ot("",t,""),_e}function ot(t,n,e){const i=M(),r=function as(t,n,e,i){return bt(t,zr(),e)?n+Y(e)+i:J}(i,t,n,e);return r!==J&&function hi(t,n,e){const i=Wa(n,t);!function Hm(t,n,e){t.setValue(n,e)}(t[11],i,e)}(i,Rt(),r),ot}const hr=void 0;var fO=["en",[["a","p"],["AM","PM"],hr],[["AM","PM"],hr,hr],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],hr,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],hr,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",hr,"{1} 'at' {0}",hr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function pO(t){const e=Math.floor(Math.abs(t)),i=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===i?1:5}];let ms={};function Nt(t){const n=function gO(t){return t.toLowerCase().replace(/_/g,"-")}(t);let e=dv(n);if(e)return e;const i=n.split("-")[0];if(e=dv(i),e)return e;if("en"===i)return fO;throw new I(701,!1)}function dv(t){return t in ms||(ms[t]=Ne.ng&&Ne.ng.common&&Ne.ng.common.locales&&Ne.ng.common.locales[t]),ms[t]}var R=(()=>((R=R||{})[R.LocaleId=0]="LocaleId",R[R.DayPeriodsFormat=1]="DayPeriodsFormat",R[R.DayPeriodsStandalone=2]="DayPeriodsStandalone",R[R.DaysFormat=3]="DaysFormat",R[R.DaysStandalone=4]="DaysStandalone",R[R.MonthsFormat=5]="MonthsFormat",R[R.MonthsStandalone=6]="MonthsStandalone",R[R.Eras=7]="Eras",R[R.FirstDayOfWeek=8]="FirstDayOfWeek",R[R.WeekendRange=9]="WeekendRange",R[R.DateFormat=10]="DateFormat",R[R.TimeFormat=11]="TimeFormat",R[R.DateTimeFormat=12]="DateTimeFormat",R[R.NumberSymbols=13]="NumberSymbols",R[R.NumberFormats=14]="NumberFormats",R[R.CurrencyCode=15]="CurrencyCode",R[R.CurrencySymbol=16]="CurrencySymbol",R[R.CurrencyName=17]="CurrencyName",R[R.Currencies=18]="Currencies",R[R.Directionality=19]="Directionality",R[R.PluralCase=20]="PluralCase",R[R.ExtraData=21]="ExtraData",R))();const _s="en-US";let hv=_s;function rh(t,n,e,i,r){if(t=q(t),Array.isArray(t))for(let s=0;s<t.length;s++)rh(t[s],n,e,i,r);else{const s=pe(),o=M();let a=ar(t)?t:q(t.provide),l=C_(t);const c=gt(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(ar(t)||!t.multi){const p=new eo(l,r,D),f=oh(a,n,r?u:u+h,d);-1===f?($u(el(c,o),s,a),sh(s,t,n.length),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(p),o.push(p)):(e[f]=p,o[f]=p)}else{const p=oh(a,n,u+h,d),f=oh(a,n,u,u+h),w=f>=0&&e[f];if(r&&!w||!r&&!(p>=0&&e[p])){$u(el(c,o),s,a);const b=function hP(t,n,e,i,r){const s=new eo(t,e,D);return s.multi=[],s.index=n,s.componentProviders=0,Lv(s,r,i&&!e),s}(r?dP:uP,e.length,r,i,l);!r&&w&&(e[f].providerFactory=b),sh(s,t,n.length,0),n.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),e.push(b),o.push(b)}else sh(s,t,p>-1?p:f,Lv(e[r?f:p],l,!r&&i));!r&&i&&w&&e[f].componentProviders++}}}function sh(t,n,e,i){const r=ar(n),s=function T1(t){return!!t.useClass}(n);if(r||s){const l=(s?q(n.useClass):n).prototype.ngOnDestroy;if(l){const c=t.destroyHooks||(t.destroyHooks=[]);if(!r&&n.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 Lv(t,n,e){return e&&t.componentProviders++,t.multi.push(n)-1}function oh(t,n,e,i){for(let r=e;r<i;r++)if(n[r]===t)return r;return-1}function uP(t,n,e,i){return ah(this.multi,[])}function dP(t,n,e,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=nr(e,e[1],this.providerFactory.index,i);s=a.slice(0,o),ah(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],ah(r,s);return s}function ah(t,n){for(let e=0;e<t.length;e++)n.push((0,t[e])());return n}function Pe(t,n=[]){return e=>{e.providersResolver=(i,r)=>function cP(t,n,e){const i=pe();if(i.firstCreatePass){const r=Tn(t);rh(e,i.data,i.blueprint,r,!0),rh(n,i.data,i.blueprint,r,!1)}}(i,r?r(t):t,n)}}class ys{}class Vv{}class Bv extends ys{constructor(n,e){super(),this._parent=e,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new iy(this);const i=Gt(n);this._bootstrapComponents=di(i.bootstrap),this._r3Injector=F_(n,e,[{provide:ys,useValue:this},{provide:go,useValue:this.componentFactoryResolver}],Re(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(e=>e()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class lh extends Vv{constructor(n){super(),this.moduleType=n}create(n){return new Bv(this.moduleType,n)}}class fP extends ys{constructor(n,e,i){super(),this.componentFactoryResolver=new iy(this),this.instance=null;const r=new w_([...n,{provide:ys,useValue:this},{provide:go,useValue:this.componentFactoryResolver}],e||ml(),i,new Set(["environment"]));this.injector=r,r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function Rl(t,n,e=null){return new fP(t,n,e).injector}let gP=(()=>{class t{constructor(e){this._injector=e,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e.id)){const i=m_(0,e.type),r=i.length>0?Rl([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 t.\u0275prov=k({token:t,providedIn:"environment",factory:()=>new t(x(jn))}),t})();function Hv(t){t.getStandaloneInjector=n=>n.get(gP).getOrCreateStandaloneInjector(t)}function pr(t,n,e){const i=xt()+t,r=M();return r[i]===J?Gn(r,i,e?n.call(e):n()):function Co(t,n){return t[n]}(r,i)}function le(t,n,e,i){return Qv(M(),xt(),t,n,e,i)}function Ft(t,n,e,i,r){return Zv(M(),xt(),t,n,e,i,r)}function fr(t,n,e,i,r,s){return function Yv(t,n,e,i,r,s,o,a){const l=n+e;return function Il(t,n,e,i,r){const s=cr(t,n,e,i);return bt(t,n+2,r)||s}(t,l,r,s,o)?Gn(t,l+3,a?i.call(a,r,s,o):i(r,s,o)):Ao(t,l+3)}(M(),xt(),t,n,e,i,r,s)}function qv(t,n,e,i,r,s,o){return function Xv(t,n,e,i,r,s,o,a,l){const c=n+e;return function pn(t,n,e,i,r,s){const o=cr(t,n,e,i);return cr(t,n+2,r,s)||o}(t,c,r,s,o,a)?Gn(t,c+4,l?i.call(l,r,s,o,a):i(r,s,o,a)):Ao(t,c+4)}(M(),xt(),t,n,e,i,r,s,o)}function Kv(t,n,e,i){return function Jv(t,n,e,i,r,s){let o=n+e,a=!1;for(let l=0;l<r.length;l++)bt(t,o++,r[l])&&(a=!0);return a?Gn(t,o,i.apply(s,r)):Ao(t,o)}(M(),xt(),t,n,e,i)}function Ao(t,n){const e=t[n];return e===J?void 0:e}function Qv(t,n,e,i,r,s){const o=n+e;return bt(t,o,r)?Gn(t,o+1,s?i.call(s,r):i(r)):Ao(t,o+1)}function Zv(t,n,e,i,r,s,o){const a=n+e;return cr(t,a,r,s)?Gn(t,a+2,o?i.call(o,r,s):i(r,s)):Ao(t,a+2)}function fi(t,n){const e=pe();let i;const r=t+22;e.firstCreatePass?(i=function MP(t,n){if(n)for(let e=n.length-1;e>=0;e--){const i=n[e];if(t===i.name)return i}}(n,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=er(i.type)),o=ln(D);try{const a=Ja(!1),l=s();return Ja(a),function SA(t,n,e,i){e>=t.data.length&&(t.data[e]=null,t.blueprint[e]=null),n[e]=i}(e,M(),r,l),l}finally{ln(o)}}function uh(t,n,e){const i=t+22,r=M(),s=jr(r,i);return Oo(r,i)?Qv(r,xt(),n,s.transform,e,s):s.transform(e)}function gr(t,n,e,i){const r=t+22,s=M(),o=jr(s,r);return Oo(s,r)?Zv(s,xt(),n,o.transform,e,i,o):o.transform(e,i)}function Oo(t,n){return t[1].data[n].pure}function dh(t){return n=>{setTimeout(t,void 0,n)}}const U=class xP extends bn{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,e,i){let r=n,s=e||(()=>null),o=i;if(n&&"object"==typeof n){const l=n;r=l.next?.bind(l),s=l.error?.bind(l),o=l.complete?.bind(l)}this.__isAsync&&(s=dh(s),r&&(r=dh(r)),o&&(o=dh(o)));const a=super.subscribe({next:r,error:s,complete:o});return n instanceof sn&&n.add(a),a}};function RP(){return this._results[lr()]()}class hh{get changes(){return this._changes||(this._changes=new U)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const e=lr(),i=hh.prototype;i[e]||(i[e]=RP)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,e){return this._results.reduce(n,e)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,e){const i=this;i.dirty=!1;const r=function un(t){return t.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function QI(t,n,e){if(t.length!==n.length)return!1;for(let i=0;i<t.length;i++){let r=t[i],s=n[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 qn=(()=>{class t{}return t.__NG_ELEMENT_ID__=kP,t})();const NP=qn,FP=class extends NP{constructor(n,e,i){super(),this._declarationLView=n,this._declarationTContainer=e,this.elementRef=i}createEmbeddedView(n,e){const i=this._declarationTContainer.tViews,r=yl(this._declarationLView,i,n,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)),Nd(i,r,n),new vo(r)}};function kP(){return Nl(gt(),M())}function Nl(t,n){return 4&t.type?new FP(n,t,ts(t,n)):null}let gn=(()=>{class t{}return t.__NG_ELEMENT_ID__=LP,t})();function LP(){return nw(gt(),M())}const VP=gn,ew=class extends VP{constructor(n,e,i){super(),this._lContainer=n,this._hostTNode=e,this._hostLView=i}get element(){return ts(this._hostTNode,this._hostLView)}get injector(){return new Wr(this._hostTNode,this._hostLView)}get parentInjector(){const n=Hu(this._hostTNode,this._hostLView);if(om(n)){const e=Xa(n,this._hostLView),i=Ya(n);return new Wr(e[1].data[i+8],e)}return new Wr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const e=tw(this._lContainer);return null!==e&&e[n]||null}get length(){return this._lContainer.length-10}createEmbeddedView(n,e,i){let r,s;"number"==typeof i?r=i:null!=i&&(r=i.index,s=i.injector);const o=n.createEmbeddedView(e||{},s);return this.insert(o,r),o}createComponent(n,e,i,r,s){const o=n&&!function io(t){return"function"==typeof t}(n);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?n:new wo(Ce(n)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(jn,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(n,e){const i=n._lView,r=i[1];if(function _I(t){return In(t[3])}(i)){const u=this.indexOf(n);if(-1!==u)this.detach(u);else{const d=i[3],h=new ew(d,d[6],d[3]);h.detach(h.indexOf(n))}}const s=this._adjustIndex(e),o=this._lContainer;!function LT(t,n,e,i){const r=10+i,s=e.length;i>0&&(e[r-1][4]=n),i<s-10?(n[4]=e[r],ym(e,10+i,n)):(e.push(n),n[4]=null),n[3]=e;const o=n[17];null!==o&&e!==o&&function VT(t,n){const e=t[9];n[16]!==n[3][3][16]&&(t[2]=!0),null===e?t[9]=[n]:e.push(n)}(o,n);const a=n[19];null!==a&&a.insertView(t),n[2]|=64}(r,i,o,s);const a=cd(s,o),l=i[11],c=al(l,o[7]);return null!==c&&function NT(t,n,e,i,r,s){i[0]=r,i[6]=n,ho(t,i,e,1,r,s)}(r,o[6],l,i,c,a),n.attachToViewContainerRef(),ym(ph(o),s,n),n}move(n,e){return this.insert(n,e)}indexOf(n){const e=tw(this._lContainer);return null!==e?e.indexOf(n):-1}remove(n){const e=this._adjustIndex(n,-1),i=od(this._lContainer,e);i&&(il(ph(this._lContainer),e),Um(i[1],i))}detach(n){const e=this._adjustIndex(n,-1),i=od(this._lContainer,e);return i&&null!=il(ph(this._lContainer),e)?new vo(i):null}_adjustIndex(n,e=0){return n??this.length+e}};function tw(t){return t[8]}function ph(t){return t[8]||(t[8]=[])}function nw(t,n){let e;const i=n[t.index];if(In(i))e=i;else{let r;if(8&t.type)r=ft(i);else{const s=n[11];r=s.createComment("");const o=qt(t,n);rr(s,al(s,o),r,function UT(t,n){return t.nextSibling(n)}(s,o),!1)}n[t.index]=e=X_(i,n,r,t),wl(n,e)}return new ew(e,t,n)}class fh{constructor(n){this.queryList=n,this.matches=null}clone(){return new fh(this.queryList)}setDirty(){this.queryList.setDirty()}}class gh{constructor(n=[]){this.queries=n}createEmbeddedView(n){const e=n.queries;if(null!==e){const i=null!==n.contentQueries?n.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 gh(r)}return null}insertView(n){this.dirtyQueriesWithMatches(n)}detachView(n){this.dirtyQueriesWithMatches(n)}dirtyQueriesWithMatches(n){for(let e=0;e<this.queries.length;e++)null!==aw(n,e).matches&&this.queries[e].setDirty()}}class iw{constructor(n,e,i=null){this.predicate=n,this.flags=e,this.read=i}}class mh{constructor(n=[]){this.queries=n}elementStart(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(n,e)}elementEnd(n){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(n)}embeddedTView(n){let e=null;for(let i=0;i<this.length;i++){const r=null!==e?e.length:0,s=this.getByIndex(i).embeddedTView(n,r);s&&(s.indexInDeclarationView=i,null!==e?e.push(s):e=[s])}return null!==e?new mh(e):null}template(n,e){for(let i=0;i<this.queries.length;i++)this.queries[i].template(n,e)}getByIndex(n){return this.queries[n]}get length(){return this.queries.length}track(n){this.queries.push(n)}}class _h{constructor(n,e=-1){this.metadata=n,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(n,e){this.isApplyingToNode(e)&&this.matchTNode(n,e)}elementEnd(n){this._declarationNodeIndex===n.index&&(this._appliesToNextNode=!1)}template(n,e){this.elementStart(n,e)}embeddedTView(n,e){return this.isApplyingToNode(n)?(this.crossesNgTemplate=!0,this.addMatch(-n.index,e),new _h(this.metadata)):null}isApplyingToNode(n){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const e=this._declarationNodeIndex;let i=n.parent;for(;null!==i&&8&i.type&&i.index!==e;)i=i.parent;return e===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(n,e){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(n,e,BP(e,s)),this.matchTNodeWithReadOption(n,e,tl(e,n,s,!1,!1))}else i===qn?4&e.type&&this.matchTNodeWithReadOption(n,e,-1):this.matchTNodeWithReadOption(n,e,tl(e,n,i,!1,!1))}matchTNodeWithReadOption(n,e,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===$e||r===gn||r===qn&&4&e.type)this.addMatch(e.index,-2);else{const s=tl(e,n,r,!1,!1);null!==s&&this.addMatch(e.index,s)}else this.addMatch(e.index,i)}}addMatch(n,e){null===this.matches?this.matches=[n,e]:this.matches.push(n,e)}}function BP(t,n){const e=t.localNames;if(null!==e)for(let i=0;i<e.length;i+=2)if(e[i]===n)return e[i+1];return null}function $P(t,n,e,i){return-1===e?function HP(t,n){return 11&t.type?ts(t,n):4&t.type?Nl(t,n):null}(n,t):-2===e?function UP(t,n,e){return e===$e?ts(n,t):e===qn?Nl(n,t):e===gn?nw(n,t):void 0}(t,n,i):nr(t,t[1],e,n)}function rw(t,n,e,i){const r=n[19].queries[i];if(null===r.matches){const s=t.data,o=e.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:$P(n,s[c],o[l+1],e.metadata.read))}r.matches=a}return r.matches}function yh(t,n,e,i){const r=t.queries.getByIndex(e),s=r.matches;if(null!==s){const o=rw(t,n,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=n[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&yh(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const p=d[h];yh(p[1],p,c,i)}}}}}return i}function De(t){const n=M(),e=pe(),i=Zg();xu(i+1);const r=aw(e,i);if(t.dirty&&function mI(t){return 4==(4&t[2])}(n)===(2==(2&r.metadata.flags))){if(null===r.matches)t.reset([]);else{const s=r.crossesNgTemplate?yh(e,n,i,[]):rw(e,n,r,i);t.reset(s,V1),t.notifyOnChanges()}return!0}return!1}function Je(t,n,e){const i=pe();i.firstCreatePass&&(ow(i,new iw(t,n,e),-1),2==(2&n)&&(i.staticViewQueries=!0)),sw(i,M(),n)}function xn(t,n,e,i){const r=pe();if(r.firstCreatePass){const s=gt();ow(r,new iw(n,e,i),s.index),function zP(t,n){const e=t.contentQueries||(t.contentQueries=[]);n!==(e.length?e[e.length-1]:-1)&&e.push(t.queries.length-1,n)}(r,t),2==(2&e)&&(r.staticContentQueries=!0)}sw(r,M(),e)}function Se(){return function jP(t,n){return t[19].queries[n].queryList}(M(),Zg())}function sw(t,n,e){const i=new hh(4==(4&e));W_(t,n,i,i.destroy),null===n[19]&&(n[19]=new gh),n[19].queries.push(new fh(i))}function ow(t,n,e){null===t.queries&&(t.queries=new mh),t.queries.track(new _h(n,e))}function aw(t,n){return t.queries.getByIndex(n)}function gi(t,n){return Nl(t,n)}function kl(...t){}const Ll=new H("Application Initializer");let Vl=(()=>{class t{constructor(e){this.appInits=e,this.resolve=kl,this.reject=kl,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(bo(s))e.push(s);else if(Qd(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 t.\u0275fac=function(e){return new(e||t)(x(Ll,8))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const xo=new H("AppId",{providedIn:"root",factory:function Iw(){return`${Dh()}${Dh()}${Dh()}`}});function Dh(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Tw=new H("Platform Initializer"),Sh=new H("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),Mw=new H("appBootstrapListener"),Aw=new H("AnimationModuleType");let ux=(()=>{class t{log(e){console.log(e)}warn(e){console.warn(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();const mi=new H("LocaleId",{providedIn:"root",factory:()=>ce(mi,K.Optional|K.SkipSelf)||function dx(){return typeof $localize<"u"&&$localize.locale||_s}()}),hx=new H("DefaultCurrencyCode",{providedIn:"root",factory:()=>"USD"});class px{constructor(n,e){this.ngModuleFactory=n,this.componentFactories=e}}let Ow=(()=>{class t{compileModuleSync(e){return new lh(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}compileModuleAndAllComponentsSync(e){const i=this.compileModuleSync(e),s=di(Gt(e).declarations).reduce((o,a)=>{const l=Ce(a);return l&&o.push(new wo(l)),o},[]);return new px(i,s)}compileModuleAndAllComponentsAsync(e){return Promise.resolve(this.compileModuleAndAllComponentsSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const mx=(()=>Promise.resolve(0))();function Eh(t){typeof Zone>"u"?mx.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Te{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:e=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new U(!1),this.onMicrotaskEmpty=new U(!1),this.onStable=new U(!1),this.onError=new U(!1),typeof Zone>"u")throw new I(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)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&e,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function _x(){let t=Ne.requestAnimationFrame,n=Ne.cancelAnimationFrame;if(typeof Zone<"u"&&t&&n){const e=t[Zone.__symbol__("OriginalDelegate")];e&&(t=e);const i=n[Zone.__symbol__("OriginalDelegate")];i&&(n=i)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function wx(t){const n=()=>{!function vx(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ne,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Th(t),t.isCheckStableRunning=!0,Ih(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Th(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(e,i,r,s,o,a)=>{try{return Rw(t),e.invokeTask(r,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&n(),Nw(t)}},onInvoke:(e,i,r,s,o,a,l)=>{try{return Rw(t),e.invoke(r,s,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&n(),Nw(t)}},onHasTask:(e,i,r,s)=>{e.hasTask(r,s),i===r&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Th(t),Ih(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(e,i,r,s)=>(e.handleError(r,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Te.isInAngularZone())throw new I(909,!1)}static assertNotInAngularZone(){if(Te.isInAngularZone())throw new I(909,!1)}run(n,e,i){return this._inner.run(n,e,i)}runTask(n,e,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,n,yx,kl,kl);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(n,e,i){return this._inner.runGuarded(n,e,i)}runOutsideAngular(n){return this._outer.run(n)}}const yx={};function Ih(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Th(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function Rw(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Nw(t){t._nesting--,Ih(t)}class Cx{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new U,this.onMicrotaskEmpty=new U,this.onStable=new U,this.onError=new U}run(n,e,i){return n.apply(e,i)}runGuarded(n,e,i){return n.apply(e,i)}runOutsideAngular(n){return n()}runTask(n,e,i,r){return n.apply(e,i)}}const Fw=new H(""),Bl=new H("");let Oh,Mh=(()=>{class t{constructor(e,i,r){this._ngZone=e,this.registry=i,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Oh||(function bx(t){Oh=t}(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:()=>{Te.assertNotInAngularZone(),Eh(()=>{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())Eh(()=>{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 t.\u0275fac=function(e){return new(e||t)(x(Te),x(Ah),x(Bl))},t.\u0275prov=k({token:t,factory:t.\u0275fac}),t})(),Ah=(()=>{class t{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 Oh?.findTestabilityInTree(this,e,i)??null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})(),Fi=null;const kw=new H("AllowMultipleToken"),Ph=new H("PlatformDestroyListeners");class Lw{constructor(n,e){this.name=n,this.token=e}}function Bw(t,n,e=[]){const i=`Platform: ${n}`,r=new H(i);return(s=[])=>{let o=xh();if(!o||o.injector.get(kw,!1)){const a=[...e,...s,{provide:r,useValue:!0}];t?t(a):function Ex(t){if(Fi&&!Fi.get(kw,!1))throw new I(400,!1);Fi=t;const n=t.get($w);(function Vw(t){const n=t.get(Tw,null);n&&n.forEach(e=>e())})(t)}(function Hw(t=[],n){return hn.create({name:n,providers:[{provide:bd,useValue:"platform"},{provide:Ph,useValue:new Set([()=>Fi=null])},...t]})}(a,i))}return function Tx(t){const n=xh();if(!n)throw new I(401,!1);return n}()}}function xh(){return Fi?.get($w)??null}let $w=(()=>{class t{constructor(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(e,i){const r=function jw(t,n){let e;return e="noop"===t?new Cx:("zone.js"===t?void 0:t)||new Te(n),e}(i?.ngZone,function Uw(t){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!(!t||!t.ngZoneEventCoalescing)||!1,shouldCoalesceRunChangeDetection:!(!t||!t.ngZoneRunCoalescing)||!1}}(i)),s=[{provide:Te,useValue:r}];return r.run(()=>{const o=hn.create({providers:s,parent:this.injector,name:e.moduleType.name}),a=e.create(o),l=a.injector.get(ns,null);if(!l)throw new I(402,!1);return r.runOutsideAngular(()=>{const c=r.onError.subscribe({next:u=>{l.handleError(u)}});a.onDestroy(()=>{Hl(this._modules,a),c.unsubscribe()})}),function zw(t,n,e){try{const i=e();return bo(i)?i.catch(r=>{throw n.runOutsideAngular(()=>t.handleError(r)),r}):i}catch(i){throw n.runOutsideAngular(()=>t.handleError(i)),i}}(l,r,()=>{const c=a.injector.get(Vl);return c.runInitializers(),c.donePromise.then(()=>(function pv(t){an(t,"Expected localeId to be defined"),"string"==typeof t&&(hv=t.toLowerCase().replace(/_/g,"-"))}(a.injector.get(mi,_s)||_s),this._moduleDoBootstrap(a),a))})})}bootstrapModule(e,i=[]){const r=Gw({},i);return function Dx(t,n,e){const i=new lh(e);return Promise.resolve(i)}(0,0,e).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(e){const i=e.injector.get(Ro);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new I(-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 I(404,!1);this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const e=this._injector.get(Ph,null);e&&(e.forEach(i=>i()),e.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(x(hn))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"platform"}),t})();function Gw(t,n){return Array.isArray(n)?n.reduce(Gw,t):{...t,...n}}let Ro=(()=>{class t{get destroyed(){return this._destroyed}get injector(){return this._injector}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 We(a=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{a.next(this._stable),a.complete()})}),o=new We(a=>{let l;this._zone.runOutsideAngular(()=>{l=this._zone.onStable.subscribe(()=>{Te.assertNotInAngularZone(),Eh(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,a.next(!0))})})});const c=this._zone.onUnstable.subscribe(()=>{Te.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{a.next(!1)}))});return()=>{l.unsubscribe(),c.unsubscribe()}});this.isStable=function L0(...t){const n=zs(t),e=function O0(t,n){return"number"==typeof du(t)?t.pop():n}(t,1/0),i=t;return i.length?1===i.length?on(i[0]):kr(e)(Xe(i,n)):Vn}(s,o.pipe(function V0(t={}){const{connector:n=(()=>new bn),resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:r=!0}=t;return s=>{let o,a,l,c=0,u=!1,d=!1;const h=()=>{a?.unsubscribe(),a=void 0},p=()=>{h(),o=l=void 0,u=d=!1},f=()=>{const _=o;p(),_?.unsubscribe()};return ct((_,w)=>{c++,!d&&!u&&h();const b=l=l??n();w.add(()=>{c--,0===c&&!d&&!u&&(a=hu(f,r))}),b.subscribe(w),!o&&c>0&&(o=new js({next:T=>b.next(T),error:T=>{d=!0,h(),a=hu(p,e,T),b.error(T)},complete:()=>{u=!0,h(),a=hu(p,i),b.complete()}}),on(_).subscribe(o))})(s)}}()))}bootstrap(e,i){const r=e instanceof b_;if(!this._injector.get(Vl).done)throw!r&&function Vr(t){const n=Ce(t)||yt(t)||Ot(t);return null!==n&&n.standalone}(e),new I(405,false);let o;o=r?e:this._injector.get(go).resolveComponentFactory(e),this.componentTypes.push(o.componentType);const a=function Sx(t){return t.isBoundToModule}(o)?void 0:this._injector.get(ys),c=o.create(hn.NULL,[],i||o.selector,a),u=c.location.nativeElement,d=c.injector.get(Fw,null);return d?.registerApplication(u),c.onDestroy(()=>{this.detachView(c.hostView),Hl(this.components,c),d?.unregisterApplication(u)}),this._loadComponent(c),c}tick(){if(this._runningTick)throw new I(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;Hl(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView),this.tick(),this.components.push(e);const i=this._injector.get(Mw,[]);i.push(...this._bootstrapListeners),i.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),()=>Hl(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new I(406,!1);const e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return t.\u0275fac=function(e){return new(e||t)(x(Te),x(jn),x(ns))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function Hl(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}let Ut=(()=>{class t{}return t.__NG_ELEMENT_ID__=Ax,t})();function Ax(t){return function Ox(t,n,e){if(Xs(t)&&!e){const i=Kt(t.index,n);return new vo(i,i)}return 47&t.type?new vo(n[16],n):null}(gt(),M(),16==(16&t))}class Zw{constructor(){}supports(n){return El(n)}create(n){return new kx(n)}}const Fx=(t,n)=>n;class kx{constructor(n){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=n||Fx}forEachItem(n){let e;for(e=this._itHead;null!==e;e=e._next)n(e)}forEachOperation(n){let e=this._itHead,i=this._removalsHead,r=0,s=null;for(;e||i;){const o=!i||e&&e.currentIndex<Xw(i,r,s)?e:i,a=Xw(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 p=h<s.length?s[h]:s[h]=0,f=p+h;u<=f&&f<c&&(s[h]=p+1)}s[o.previousIndex]=u-c}}a!==l&&n(o,a,l)}}forEachPreviousItem(n){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachMovedItem(n){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}forEachIdentityChange(n){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)n(e)}diff(n){if(null==n&&(n=[]),!El(n))throw new I(900,!1);return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let r,s,o,e=this._itHead,i=!1;if(Array.isArray(n)){this.length=n.length;for(let a=0;a<this.length;a++)s=n[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 wA(t,n){if(Array.isArray(t))for(let e=0;e<t.length;e++)n(t[e]);else{const e=t[lr()]();let i;for(;!(i=e.next()).done;)n(i.value)}}(n,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=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,e,i,r){let s;return null===n?s=this._itTail:(s=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._reinsertAfter(n,s,r)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(n.item,e)||this._addIdentityChange(n,e),this._moveAfter(n,s,r)):n=this._addAfter(new Lx(e,i),s,r),n}_verifyReinsertion(n,e,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?n=this._reinsertAfter(s,n._prev,r):n.currentIndex!=r&&(n.currentIndex=r,this._addToMoves(n,r)),n}_truncate(n){for(;null!==n;){const e=n._next;this._addToRemovals(this._unlink(n)),n=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(n,e,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const r=n._prevRemoved,s=n._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(n,e,i),this._addToMoves(n,i),n}_moveAfter(n,e,i){return this._unlink(n),this._insertAfter(n,e,i),this._addToMoves(n,i),n}_addAfter(n,e,i){return this._insertAfter(n,e,i),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,e,i){const r=null===e?this._itHead:e._next;return n._next=r,n._prev=e,null===r?this._itTail=n:r._prev=n,null===e?this._itHead=n:e._next=n,null===this._linkedRecords&&(this._linkedRecords=new Yw),this._linkedRecords.put(n),n.currentIndex=i,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const e=n._prev,i=n._next;return null===e?this._itHead=i:e._next=i,null===i?this._itTail=e:i._prev=e,n}_addToMoves(n,e){return n.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Yw),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,e){return n.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Lx{constructor(n,e){this.item=n,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 Vx{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,e){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===e||e<=i.currentIndex)&&Object.is(i.trackById,n))return i;return null}remove(n){const e=n._prevDup,i=n._nextDup;return null===e?this._head=i:e._nextDup=i,null===i?this._tail=e:i._prevDup=e,null===this._head}}class Yw{constructor(){this.map=new Map}put(n){const e=n.trackById;let i=this.map.get(e);i||(i=new Vx,this.map.set(e,i)),i.add(n)}get(n,e){const r=this.map.get(n);return r?r.get(n,e):null}remove(n){const e=n.trackById;return this.map.get(e).remove(n)&&this.map.delete(e),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Xw(t,n,e){const i=t.previousIndex;if(null===i)return i;let r=0;return e&&i<e.length&&(r=e[i]),i+n+r}class Jw{constructor(){}supports(n){return n instanceof Map||qd(n)}create(){return new Bx}}class Bx{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(n){let e;for(e=this._mapHead;null!==e;e=e._next)n(e)}forEachPreviousItem(n){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)n(e)}forEachChangedItem(n){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)n(e)}forEachAddedItem(n){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)n(e)}forEachRemovedItem(n){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)n(e)}diff(n){if(n){if(!(n instanceof Map||qd(n)))throw new I(900,!1)}else n=new Map;return this.check(n)?this:null}onDestroy(){}check(n){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(n,(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(n,e){if(n){const i=n._prev;return e._next=n,e._prev=i,n._prev=e,i&&(i._next=e),n===this._mapHead&&(this._mapHead=e),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(n,e){if(this._records.has(n)){const r=this._records.get(n);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 Hx(n);return this._records.set(n,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,e){Object.is(e,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=e,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,e){n instanceof Map?n.forEach(e):Object.keys(n).forEach(i=>e(n[i],i))}}class Hx{constructor(n){this.key=n,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 eC(){return new jl([new Zw])}let jl=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(null!=i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||eC()),deps:[[t,new oo,new so]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(null!=i)return i;throw new I(901,!1)}}return t.\u0275prov=k({token:t,providedIn:"root",factory:eC}),t})();function tC(){return new No([new Jw])}let No=(()=>{class t{constructor(e){this.factories=e}static create(e,i){if(i){const r=i.factories.slice();e=e.concat(r)}return new t(e)}static extend(e){return{provide:t,useFactory:i=>t.create(e,i||tC()),deps:[[t,new oo,new so]]}}find(e){const i=this.factories.find(r=>r.supports(e));if(i)return i;throw new I(901,!1)}}return t.\u0275prov=k({token:t,providedIn:"root",factory:tC}),t})();const jx=Bw(null,"core",[]);let zx=(()=>{class t{constructor(e){}}return t.\u0275fac=function(e){return new(e||t)(x(Ro))},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({}),t})();function Cs(t){return"boolean"==typeof t?t:null!=t&&"false"!==t}let Lh=null;function Kn(){return Lh}class qx{}const Qe=new H("DocumentToken");let Vh=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:function(){return function Kx(){return x(nC)}()},providedIn:"platform"}),t})();const Qx=new H("Location Initialized");let nC=(()=>{class t extends Vh{constructor(e){super(),this._doc=e,this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Kn().getBaseHref(this._doc)}onPopState(e){const i=Kn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",e,!1),()=>i.removeEventListener("popstate",e)}onHashChange(e){const i=Kn().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){iC()?this._history.pushState(e,i,r):this._location.hash=r}replaceState(e,i,r){iC()?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 t.\u0275fac=function(e){return new(e||t)(x(Qe))},t.\u0275prov=k({token:t,factory:function(){return function Zx(){return new nC(x(Qe))}()},providedIn:"platform"}),t})();function iC(){return!!window.history.pushState}function Bh(t,n){if(0==t.length)return n;if(0==n.length)return t;let e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n}function rC(t){const n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)}function yi(t){return t&&"?"!==t[0]?"?"+t:t}let _r=(()=>{class t{historyGo(e){throw new Error("Not implemented")}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:function(){return ce(oC)},providedIn:"root"}),t})();const sC=new H("appBaseHref");let oC=(()=>{class t extends _r{constructor(e,i){super(),this._platformLocation=e,this._removeListenerFns=[],this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??ce(Qe).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 Bh(this._baseHref,e)}path(e=!1){const i=this._platformLocation.pathname+yi(this._platformLocation.search),r=this._platformLocation.hash;return r&&e?`${i}${r}`:i}pushState(e,i,r,s){const o=this.prepareExternalUrl(r+yi(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){const o=this.prepareExternalUrl(r+yi(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 t.\u0275fac=function(e){return new(e||t)(x(Vh),x(sC,8))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Yx=(()=>{class t extends _r{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=Bh(this._baseHref,e);return i.length>0?"#"+i:i}pushState(e,i,r,s){let o=this.prepareExternalUrl(r+yi(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(e,i,o)}replaceState(e,i,r,s){let o=this.prepareExternalUrl(r+yi(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 t.\u0275fac=function(e){return new(e||t)(x(Vh),x(sC,8))},t.\u0275prov=k({token:t,factory:t.\u0275fac}),t})(),Hh=(()=>{class t{constructor(e){this._subject=new U,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=e;const i=this._locationStrategy.getBaseHref();this._basePath=function eR(t){if(new RegExp("^(https?:)?//").test(t)){const[,e]=t.split(/\/\/[^\/]+/);return e}return t}(rC(aC(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+yi(i))}normalize(e){return t.stripTrailingSlash(function Jx(t,n){return t&&new RegExp(`^${t}([/;?#]|$)`).test(n)?n.substring(t.length):n}(this._basePath,aC(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+yi(i)),r)}replaceState(e,i="",r=null){this._locationStrategy.replaceState(r,"",e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+yi(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 t.normalizeQueryParams=yi,t.joinWithSlash=Bh,t.stripTrailingSlash=rC,t.\u0275fac=function(e){return new(e||t)(x(_r))},t.\u0275prov=k({token:t,factory:function(){return function Xx(){return new Hh(x(_r))}()},providedIn:"root"}),t})();function aC(t){return t.replace(/\/index.html$/,"")}const lC={ADP:[void 0,void 0,0],AFN:[void 0,"\u060b",0],ALL:[void 0,void 0,0],AMD:[void 0,"\u058f",2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],AZN:[void 0,"\u20bc"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GHS:[void 0,"GH\u20b5"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:["\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["F\u202fCFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]};var jt=(()=>((jt=jt||{})[jt.Decimal=0]="Decimal",jt[jt.Percent=1]="Percent",jt[jt.Currency=2]="Currency",jt[jt.Scientific=3]="Scientific",jt))(),Ze=(()=>((Ze=Ze||{})[Ze.Format=0]="Format",Ze[Ze.Standalone=1]="Standalone",Ze))(),de=(()=>((de=de||{})[de.Narrow=0]="Narrow",de[de.Abbreviated=1]="Abbreviated",de[de.Wide=2]="Wide",de[de.Short=3]="Short",de))(),Ue=(()=>((Ue=Ue||{})[Ue.Short=0]="Short",Ue[Ue.Medium=1]="Medium",Ue[Ue.Long=2]="Long",Ue[Ue.Full=3]="Full",Ue))(),W=(()=>((W=W||{})[W.Decimal=0]="Decimal",W[W.Group=1]="Group",W[W.List=2]="List",W[W.PercentSign=3]="PercentSign",W[W.PlusSign=4]="PlusSign",W[W.MinusSign=5]="MinusSign",W[W.Exponential=6]="Exponential",W[W.SuperscriptingExponent=7]="SuperscriptingExponent",W[W.PerMille=8]="PerMille",W[W.Infinity=9]="Infinity",W[W.NaN=10]="NaN",W[W.TimeSeparator=11]="TimeSeparator",W[W.CurrencyDecimal=12]="CurrencyDecimal",W[W.CurrencyGroup=13]="CurrencyGroup",W))();function zl(t,n){return _n(Nt(t)[R.DateFormat],n)}function Gl(t,n){return _n(Nt(t)[R.TimeFormat],n)}function Wl(t,n){return _n(Nt(t)[R.DateTimeFormat],n)}function mn(t,n){const e=Nt(t),i=e[R.NumberSymbols][n];if(typeof i>"u"){if(n===W.CurrencyDecimal)return e[R.NumberSymbols][W.Decimal];if(n===W.CurrencyGroup)return e[R.NumberSymbols][W.Group]}return i}function cC(t){if(!t[R.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[R.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function _n(t,n){for(let e=n;e>-1;e--)if(typeof t[e]<"u")return t[e];throw new Error("Locale data API: locale data undefined")}function Uh(t){const[n,e]=t.split(":");return{hours:+n,minutes:+e}}const pR=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Fo={},fR=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var at=(()=>((at=at||{})[at.Short=0]="Short",at[at.ShortGMT=1]="ShortGMT",at[at.Long=2]="Long",at[at.Extended=3]="Extended",at))(),Q=(()=>((Q=Q||{})[Q.FullYear=0]="FullYear",Q[Q.Month=1]="Month",Q[Q.Date=2]="Date",Q[Q.Hours=3]="Hours",Q[Q.Minutes=4]="Minutes",Q[Q.Seconds=5]="Seconds",Q[Q.FractionalSeconds=6]="FractionalSeconds",Q[Q.Day=7]="Day",Q))(),ie=(()=>((ie=ie||{})[ie.DayPeriods=0]="DayPeriods",ie[ie.Days=1]="Days",ie[ie.Months=2]="Months",ie[ie.Eras=3]="Eras",ie))();function gR(t,n,e,i){let r=function SR(t){if(hC(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[r,s=1,o=1]=t.split("-").map(a=>+a);return ql(r,s-1,o)}const e=parseFloat(t);if(!isNaN(t-e))return new Date(e);let i;if(i=t.match(pR))return function ER(t){const n=new Date(0);let e=0,i=0;const r=t[8]?n.setUTCFullYear:n.setFullYear,s=t[8]?n.setUTCHours:n.setHours;t[9]&&(e=Number(t[9]+t[10]),i=Number(t[9]+t[11])),r.call(n,Number(t[1]),Number(t[2])-1,Number(t[3]));const o=Number(t[4]||0)-e,a=Number(t[5]||0)-i,l=Number(t[6]||0),c=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return s.call(n,o,a,l,c),n}(i)}const n=new Date(t);if(!hC(n))throw new Error(`Unable to convert "${t}" into a date`);return n}(t);n=vi(e,n)||n;let a,o=[];for(;n;){if(a=fR.exec(n),!a){o.push(n);break}{o=o.concat(a.slice(1));const u=o.pop();if(!u)break;n=u}}let l=r.getTimezoneOffset();i&&(l=dC(i,l),r=function DR(t,n,e){const i=e?-1:1,r=t.getTimezoneOffset();return function bR(t,n){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+n),t}(t,i*(dC(n,r)-r))}(r,i,!0));let c="";return o.forEach(u=>{const d=function CR(t){if(zh[t])return zh[t];let n;switch(t){case"G":case"GG":case"GGG":n=Le(ie.Eras,de.Abbreviated);break;case"GGGG":n=Le(ie.Eras,de.Wide);break;case"GGGGG":n=Le(ie.Eras,de.Narrow);break;case"y":n=tt(Q.FullYear,1,0,!1,!0);break;case"yy":n=tt(Q.FullYear,2,0,!0,!0);break;case"yyy":n=tt(Q.FullYear,3,0,!1,!0);break;case"yyyy":n=tt(Q.FullYear,4,0,!1,!0);break;case"Y":n=Yl(1);break;case"YY":n=Yl(2,!0);break;case"YYY":n=Yl(3);break;case"YYYY":n=Yl(4);break;case"M":case"L":n=tt(Q.Month,1,1);break;case"MM":case"LL":n=tt(Q.Month,2,1);break;case"MMM":n=Le(ie.Months,de.Abbreviated);break;case"MMMM":n=Le(ie.Months,de.Wide);break;case"MMMMM":n=Le(ie.Months,de.Narrow);break;case"LLL":n=Le(ie.Months,de.Abbreviated,Ze.Standalone);break;case"LLLL":n=Le(ie.Months,de.Wide,Ze.Standalone);break;case"LLLLL":n=Le(ie.Months,de.Narrow,Ze.Standalone);break;case"w":n=jh(1);break;case"ww":n=jh(2);break;case"W":n=jh(1,!0);break;case"d":n=tt(Q.Date,1);break;case"dd":n=tt(Q.Date,2);break;case"c":case"cc":n=tt(Q.Day,1);break;case"ccc":n=Le(ie.Days,de.Abbreviated,Ze.Standalone);break;case"cccc":n=Le(ie.Days,de.Wide,Ze.Standalone);break;case"ccccc":n=Le(ie.Days,de.Narrow,Ze.Standalone);break;case"cccccc":n=Le(ie.Days,de.Short,Ze.Standalone);break;case"E":case"EE":case"EEE":n=Le(ie.Days,de.Abbreviated);break;case"EEEE":n=Le(ie.Days,de.Wide);break;case"EEEEE":n=Le(ie.Days,de.Narrow);break;case"EEEEEE":n=Le(ie.Days,de.Short);break;case"a":case"aa":case"aaa":n=Le(ie.DayPeriods,de.Abbreviated);break;case"aaaa":n=Le(ie.DayPeriods,de.Wide);break;case"aaaaa":n=Le(ie.DayPeriods,de.Narrow);break;case"b":case"bb":case"bbb":n=Le(ie.DayPeriods,de.Abbreviated,Ze.Standalone,!0);break;case"bbbb":n=Le(ie.DayPeriods,de.Wide,Ze.Standalone,!0);break;case"bbbbb":n=Le(ie.DayPeriods,de.Narrow,Ze.Standalone,!0);break;case"B":case"BB":case"BBB":n=Le(ie.DayPeriods,de.Abbreviated,Ze.Format,!0);break;case"BBBB":n=Le(ie.DayPeriods,de.Wide,Ze.Format,!0);break;case"BBBBB":n=Le(ie.DayPeriods,de.Narrow,Ze.Format,!0);break;case"h":n=tt(Q.Hours,1,-12);break;case"hh":n=tt(Q.Hours,2,-12);break;case"H":n=tt(Q.Hours,1);break;case"HH":n=tt(Q.Hours,2);break;case"m":n=tt(Q.Minutes,1);break;case"mm":n=tt(Q.Minutes,2);break;case"s":n=tt(Q.Seconds,1);break;case"ss":n=tt(Q.Seconds,2);break;case"S":n=tt(Q.FractionalSeconds,1);break;case"SS":n=tt(Q.FractionalSeconds,2);break;case"SSS":n=tt(Q.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=Ql(at.Short);break;case"ZZZZZ":n=Ql(at.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=Ql(at.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=Ql(at.Long);break;default:return null}return zh[t]=n,n}(u);c+=d?d(r,e,l):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),c}function ql(t,n,e){const i=new Date(0);return i.setFullYear(t,n,e),i.setHours(0,0,0),i}function vi(t,n){const e=function tR(t){return Nt(t)[R.LocaleId]}(t);if(Fo[e]=Fo[e]||{},Fo[e][n])return Fo[e][n];let i="";switch(n){case"shortDate":i=zl(t,Ue.Short);break;case"mediumDate":i=zl(t,Ue.Medium);break;case"longDate":i=zl(t,Ue.Long);break;case"fullDate":i=zl(t,Ue.Full);break;case"shortTime":i=Gl(t,Ue.Short);break;case"mediumTime":i=Gl(t,Ue.Medium);break;case"longTime":i=Gl(t,Ue.Long);break;case"fullTime":i=Gl(t,Ue.Full);break;case"short":const r=vi(t,"shortTime"),s=vi(t,"shortDate");i=Kl(Wl(t,Ue.Short),[r,s]);break;case"medium":const o=vi(t,"mediumTime"),a=vi(t,"mediumDate");i=Kl(Wl(t,Ue.Medium),[o,a]);break;case"long":const l=vi(t,"longTime"),c=vi(t,"longDate");i=Kl(Wl(t,Ue.Long),[l,c]);break;case"full":const u=vi(t,"fullTime"),d=vi(t,"fullDate");i=Kl(Wl(t,Ue.Full),[u,d])}return i&&(Fo[e][n]=i),i}function Kl(t,n){return n&&(t=t.replace(/\{([^}]+)}/g,function(e,i){return null!=n&&i in n?n[i]:e})),t}function Nn(t,n,e="-",i,r){let s="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,s=e));let o=String(t);for(;o.length<n;)o="0"+o;return i&&(o=o.slice(o.length-n)),s+o}function tt(t,n,e=0,i=!1,r=!1){return function(s,o){let a=function _R(t,n){switch(t){case Q.FullYear:return n.getFullYear();case Q.Month:return n.getMonth();case Q.Date:return n.getDate();case Q.Hours:return n.getHours();case Q.Minutes:return n.getMinutes();case Q.Seconds:return n.getSeconds();case Q.FractionalSeconds:return n.getMilliseconds();case Q.Day:return n.getDay();default:throw new Error(`Unknown DateType value "${t}".`)}}(t,s);if((e>0||a>-e)&&(a+=e),t===Q.Hours)0===a&&-12===e&&(a=12);else if(t===Q.FractionalSeconds)return function mR(t,n){return Nn(t,3).substring(0,n)}(a,n);const l=mn(o,W.MinusSign);return Nn(a,n,l,i,r)}}function Le(t,n,e=Ze.Format,i=!1){return function(r,s){return function yR(t,n,e,i,r,s){switch(e){case ie.Months:return function rR(t,n,e){const i=Nt(t),s=_n([i[R.MonthsFormat],i[R.MonthsStandalone]],n);return _n(s,e)}(n,r,i)[t.getMonth()];case ie.Days:return function iR(t,n,e){const i=Nt(t),s=_n([i[R.DaysFormat],i[R.DaysStandalone]],n);return _n(s,e)}(n,r,i)[t.getDay()];case ie.DayPeriods:const o=t.getHours(),a=t.getMinutes();if(s){const c=function lR(t){const n=Nt(t);return cC(n),(n[R.ExtraData][2]||[]).map(i=>"string"==typeof i?Uh(i):[Uh(i[0]),Uh(i[1])])}(n),u=function cR(t,n,e){const i=Nt(t);cC(i);const s=_n([i[R.ExtraData][0],i[R.ExtraData][1]],n)||[];return _n(s,e)||[]}(n,r,i),d=c.findIndex(h=>{if(Array.isArray(h)){const[p,f]=h,_=o>=p.hours&&a>=p.minutes,w=o<f.hours||o===f.hours&&a<f.minutes;if(p.hours<f.hours){if(_&&w)return!0}else if(_||w)return!0}else if(h.hours===o&&h.minutes===a)return!0;return!1});if(-1!==d)return u[d]}return function nR(t,n,e){const i=Nt(t),s=_n([i[R.DayPeriodsFormat],i[R.DayPeriodsStandalone]],n);return _n(s,e)}(n,r,i)[o<12?0:1];case ie.Eras:return function sR(t,n){return _n(Nt(t)[R.Eras],n)}(n,i)[t.getFullYear()<=0?0:1];default:throw new Error(`unexpected translation type ${e}`)}}(r,s,t,n,e,i)}}function Ql(t){return function(n,e,i){const r=-1*i,s=mn(e,W.MinusSign),o=r>0?Math.floor(r/60):Math.ceil(r/60);switch(t){case at.Short:return(r>=0?"+":"")+Nn(o,2,s)+Nn(Math.abs(r%60),2,s);case at.ShortGMT:return"GMT"+(r>=0?"+":"")+Nn(o,1,s);case at.Long:return"GMT"+(r>=0?"+":"")+Nn(o,2,s)+":"+Nn(Math.abs(r%60),2,s);case at.Extended:return 0===i?"Z":(r>=0?"+":"")+Nn(o,2,s)+":"+Nn(Math.abs(r%60),2,s);default:throw new Error(`Unknown zone width "${t}"`)}}}function uC(t){return ql(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function jh(t,n=!1){return function(e,i){let r;if(n){const s=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,o=e.getDate();r=1+Math.floor((o+s)/7)}else{const s=uC(e),o=function wR(t){const n=ql(t,0,1).getDay();return ql(t,0,1+(n<=4?4:11)-n)}(s.getFullYear()),a=s.getTime()-o.getTime();r=1+Math.round(a/6048e5)}return Nn(r,t,mn(i,W.MinusSign))}}function Yl(t,n=!1){return function(e,i){return Nn(uC(e).getFullYear(),t,mn(i,W.MinusSign),n)}}const zh={};function dC(t,n){t=t.replace(/:/g,"");const e=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(e)?n:e}function hC(t){return t instanceof Date&&!isNaN(t.valueOf())}const IR=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function OR(t,n,e,i,r){const o=function qh(t,n="-"){const e={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),r=i[0],s=i[1],o=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],a=o[0],l=o[1]||"";e.posPre=a.substring(0,a.indexOf("#"));for(let u=0;u<l.length;u++){const d=l.charAt(u);"0"===d?e.minFrac=e.maxFrac=u+1:"#"===d?e.maxFrac=u+1:e.posSuf+=d}const c=a.split(",");if(e.gSize=c[1]?c[1].length:0,e.lgSize=c[2]||c[1]?(c[2]||c[1]).length:0,s){const u=r.length-e.posPre.length-e.posSuf.length,d=s.indexOf("#");e.negPre=s.substring(0,d).replace(/'/g,""),e.negSuf=s.slice(d+u).replace(/'/g,"")}else e.negPre=n+e.posPre,e.negSuf=e.posSuf;return e}(function $h(t,n){return Nt(t)[R.NumberFormats][n]}(n,jt.Currency),mn(n,W.MinusSign));return o.minFrac=function hR(t){let n;const e=lC[t];return e&&(n=e[2]),"number"==typeof n?n:2}(i),o.maxFrac=o.minFrac,function Wh(t,n,e,i,r,s,o=!1){let a="",l=!1;if(isFinite(t)){let c=function NR(t){let i,r,s,o,a,n=Math.abs(t)+"",e=0;for((r=n.indexOf("."))>-1&&(n=n.replace(".","")),(s=n.search(/e/i))>0?(r<0&&(r=s),r+=+n.slice(s+1),n=n.substring(0,s)):r<0&&(r=n.length),s=0;"0"===n.charAt(s);s++);if(s===(a=n.length))i=[0],r=1;else{for(a--;"0"===n.charAt(a);)a--;for(r-=s,i=[],o=0;s<=a;s++,o++)i[o]=Number(n.charAt(s))}return r>22&&(i=i.splice(0,21),e=r-1,r=1),{digits:i,exponent:e,integerLen:r}}(t);o&&(c=function RR(t){if(0===t.digits[0])return t;const n=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===n?t.digits.push(0,0):1===n&&t.digits.push(0),t.integerLen+=2),t}(c));let u=n.minInt,d=n.minFrac,h=n.maxFrac;if(s){const T=s.match(IR);if(null===T)throw new Error(`${s} is not a valid digit info`);const E=T[1],O=T[3],te=T[5];null!=E&&(u=Kh(E)),null!=O&&(d=Kh(O)),null!=te?h=Kh(te):null!=O&&d>h&&(h=d)}!function FR(t,n,e){if(n>e)throw new Error(`The minimum number of digits after fraction (${n}) is higher than the maximum (${e}).`);let i=t.digits,r=i.length-t.integerLen;const s=Math.min(Math.max(n,r),e);let o=s+t.integerLen,a=i[o];if(o>0){i.splice(Math.max(t.integerLen,o));for(let d=o;d<i.length;d++)i[d]=0}else{r=Math.max(0,r),t.integerLen=1,i.length=Math.max(1,o=s+1),i[0]=0;for(let d=1;d<o;d++)i[d]=0}if(a>=5)if(o-1<0){for(let d=0;d>o;d--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[o-1]++;for(;r<Math.max(0,s);r++)i.push(0);let l=0!==s;const c=n+t.integerLen,u=i.reduceRight(function(d,h,p,f){return f[p]=(h+=d)<10?h:h-10,l&&(0===f[p]&&p>=c?f.pop():l=!1),h>=10?1:0},0);u&&(i.unshift(u),t.integerLen++)}(c,d,h);let p=c.digits,f=c.integerLen;const _=c.exponent;let w=[];for(l=p.every(T=>!T);f<u;f++)p.unshift(0);for(;f<0;f++)p.unshift(0);f>0?w=p.splice(f,p.length):(w=p,p=[0]);const b=[];for(p.length>=n.lgSize&&b.unshift(p.splice(-n.lgSize,p.length).join(""));p.length>n.gSize;)b.unshift(p.splice(-n.gSize,p.length).join(""));p.length&&b.unshift(p.join("")),a=b.join(mn(e,i)),w.length&&(a+=mn(e,r)+w.join("")),_&&(a+=mn(e,W.Exponential)+"+"+_)}else a=mn(e,W.Infinity);return a=t<0&&!l?n.negPre+a+n.negSuf:n.posPre+a+n.posSuf,a}(t,o,n,W.CurrencyGroup,W.CurrencyDecimal,r).replace("\xa4",e).replace("\xa4","").trim()}function Kh(t){const n=parseInt(t);if(isNaN(n))throw new Error("Invalid integer literal when parsing "+t);return n}function mC(t,n){n=encodeURIComponent(n);for(const e of t.split(";")){const i=e.indexOf("="),[r,s]=-1==i?[e,""]:[e.slice(0,i),e.slice(i+1)];if(r.trim()===n)return decodeURIComponent(s)}return null}const Zh=/\s+/,_C=[];let Qn=(()=>{class t{constructor(e,i,r,s){this._iterableDiffers=e,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this.initialClasses=_C,this.stateMap=new Map}set klass(e){this.initialClasses=null!=e?e.trim().split(Zh):_C}set ngClass(e){this.rawClass="string"==typeof e?e.trim().split(Zh):e}ngDoCheck(){for(const i of this.initialClasses)this._updateState(i,!0);const e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(const i of e)this._updateState(i,!0);else if(null!=e)for(const i of Object.keys(e))this._updateState(i,Boolean(e[i]));this._applyStateDiff()}_updateState(e,i){const r=this.stateMap.get(e);void 0!==r?(r.enabled!==i&&(r.changed=!0,r.enabled=i),r.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(const e of this.stateMap){const i=e[0],r=e[1];r.changed?(this._toggleClass(i,r.enabled),r.changed=!1):r.touched||(r.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),r.touched=!1}}_toggleClass(e,i){(e=e.trim()).length>0&&e.split(Zh).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return t.\u0275fac=function(e){return new(e||t)(D(jl),D(No),D($e),D(Yt))},t.\u0275dir=j({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),t})();class VR{constructor(n,e,i,r){this.$implicit=n,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 Jt=(()=>{class t{set ngForOf(e){this._ngForOf=e,this._ngForOfDirty=!0}set ngForTrackBy(e){this._trackByFn=e}get ngForTrackBy(){return this._trackByFn}constructor(e,i,r){this._viewContainer=e,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}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 VR(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),wC(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=>{wC(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(e,i){return!0}}return t.\u0275fac=function(e){return new(e||t)(D(gn),D(qn),D(jl))},t.\u0275dir=j({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),t})();function wC(t,n){t.context.$implicit=n.item}let Dt=(()=>{class t{constructor(e,i){this._viewContainer=e,this._context=new HR,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){CC("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}set ngIfElse(e){CC("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 t.\u0275fac=function(e){return new(e||t)(D(gn),D(qn))},t.\u0275dir=j({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),t})();class HR{constructor(){this.$implicit=null,this.ngIf=null}}function CC(t,n){if(n&&!n.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Re(n)}'.`)}class Yh{constructor(n,e){this._viewContainerRef=n,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(n){n&&!this._created?this.create():!n&&this._created&&this.destroy()}}let Jl=(()=>{class t{constructor(){this._defaultViews=[],this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(e){this._ngSwitch=e,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(e){this._defaultViews.push(e)}_matchCase(e){const i=e==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(e){if(this._defaultViews.length>0&&e!==this._defaultUsed){this._defaultUsed=e;for(const i of this._defaultViews)i.enforceState(e)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=j({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"},standalone:!0}),t})(),bC=(()=>{class t{constructor(e,i,r){this.ngSwitch=r,r._addCase(),this._view=new Yh(e,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(D(gn),D(qn),D(Jl,9))},t.\u0275dir=j({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"},standalone:!0}),t})(),Zn=(()=>{class t{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:Ht.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 t.\u0275fac=function(e){return new(e||t)(D($e),D(No),D(Yt))},t.\u0275dir=j({type:t,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"},standalone:!0}),t})(),Yn=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)(D(gn))},t.\u0275dir=j({type:t,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[pt]}),t})();function Fn(t,n){return new I(2100,!1)}let Xh=(()=>{class t{transform(e){if(null==e)return null;if("string"!=typeof e)throw Fn();return e.toUpperCase()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Bt({name:"uppercase",type:t,pure:!0,standalone:!0}),t})();const XR=new H("DATE_PIPE_DEFAULT_TIMEZONE"),JR=new H("DATE_PIPE_DEFAULT_OPTIONS");let Lo=(()=>{class t{constructor(e,i,r){this.locale=e,this.defaultTimezone=i,this.defaultOptions=r}transform(e,i,r,s){if(null==e||""===e||e!=e)return null;try{return gR(e,i??this.defaultOptions?.dateFormat??"mediumDate",s||this.locale,r??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(o){throw Fn()}}}return t.\u0275fac=function(e){return new(e||t)(D(mi,16),D(XR,24),D(JR,24))},t.\u0275pipe=Bt({name:"date",type:t,pure:!0,standalone:!0}),t})(),EC=(()=>{class t{constructor(e,i="USD"){this._locale=e,this._defaultCurrencyCode=i}transform(e,i=this._defaultCurrencyCode,r="symbol",s,o){if(!function Jh(t){return!(null==t||""===t||t!=t)}(e))return null;o=o||this._locale,"boolean"==typeof r&&(r=r?"symbol":"code");let a=i||this._defaultCurrencyCode;"code"!==r&&(a="symbol"===r||"symbol-narrow"===r?function uR(t,n,e="en"){const i=function oR(t){return Nt(t)[R.Currencies]}(e)[t]||lC[t]||[],r=i[1];return"narrow"===n&&"string"==typeof r?r:i[0]||t}(a,"symbol"===r?"wide":"narrow",o):r);try{return OR(function ep(t){if("string"==typeof t&&!isNaN(Number(t)-parseFloat(t)))return Number(t);if("number"!=typeof t)throw new Error(`${t} is not a number`);return t}(e),o,a,i,s)}catch(l){throw Fn()}}}return t.\u0275fac=function(e){return new(e||t)(D(mi,16),D(hx,16))},t.\u0275pipe=Bt({name:"currency",type:t,pure:!0,standalone:!0}),t})();let St=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({}),t})();let dN=(()=>{class t{}return t.\u0275prov=k({token:t,providedIn:"root",factory:()=>new hN(x(Qe),window)}),t})();class hN{constructor(n,e){this.document=n,this.window=e,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const e=function pN(t,n){const e=t.getElementById(n)||t.getElementsByName(n)[0];if(e)return e;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const i=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let r=i.currentNode;for(;r;){const s=r.shadowRoot;if(s){const o=s.getElementById(n)||s.querySelector(`[name="${n}"]`);if(o)return o}r=i.nextNode()}}return null}(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const e=this.window.history;e&&e.scrollRestoration&&(e.scrollRestoration=n)}}scrollToElement(n){const e=n.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 n=TC(this.window.history)||TC(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function TC(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class MC{}class HN extends qx{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ip extends HN{static makeCurrent(){!function Wx(t){Lh||(Lh=t)}(new ip)}onAndCancel(n,e,i){return n.addEventListener(e,i,!1),()=>{n.removeEventListener(e,i,!1)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,e){return(e=e||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return"window"===e?window:"document"===e?n:"body"===e?n.body:null}getBaseHref(n){const e=function $N(){return Bo=Bo||document.querySelector("base"),Bo?Bo.getAttribute("href"):null}();return null==e?null:function UN(t){tc=tc||document.createElement("a"),tc.setAttribute("href",t);const n=tc.pathname;return"/"===n.charAt(0)?n:`/${n}`}(e)}resetBaseElement(){Bo=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return mC(document.cookie,n)}}let tc,Bo=null;const NC=new H("TRANSITION_ID"),zN=[{provide:Ll,useFactory:function jN(t,n,e){return()=>{e.get(Vl).donePromise.then(()=>{const i=Kn(),r=n.querySelectorAll(`style[ng-transition="${t}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[NC,Qe,hn],multi:!0}];let WN=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac}),t})();const nc=new H("EventManagerPlugins");let ic=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)(x(nc),x(Te))},t.\u0275prov=k({token:t,factory:t.\u0275fac}),t})();class FC{constructor(n){this._doc=n}addGlobalEventListener(n,e,i){const r=Kn().getGlobalEventTarget(this._doc,n);if(!r)throw new Error(`Unsupported event target ${r} for event ${e}`);return this.addEventListener(r,e,i)}}let kC=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac}),t})(),Ho=(()=>{class t extends kC{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(LC),this._hostNodes.delete(e)}onStylesAdded(e){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(e,r,i)})}ngOnDestroy(){this._hostNodes.forEach(e=>e.forEach(LC))}}return t.\u0275fac=function(e){return new(e||t)(x(Qe))},t.\u0275prov=k({token:t,factory:t.\u0275fac}),t})();function LC(t){Kn().remove(t)}const rp={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/"},sp=/%COMP%/g;function op(t,n){return n.flat(100).map(e=>e.replace(sp,t))}function HC(t){return n=>{if("__ngUnwrap__"===n)return t;!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}let rc=(()=>{class t{constructor(e,i,r){this.eventManager=e,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ap(e)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;switch(i.encapsulation){case Sn.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new XN(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(e),r}case Sn.ShadowDom:return new JN(this.eventManager,this.sharedStylesHost,e,i);default:if(!this.rendererByCompId.has(i.id)){const r=op(i.id,i.styles);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(x(ic),x(Ho),x(xo))},t.\u0275prov=k({token:t,factory:t.\u0275fac}),t})();class ap{constructor(n){this.eventManager=n,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,e){return e?document.createElementNS(rp[e]||e,n):document.createElement(n)}createComment(n){return document.createComment(n)}createText(n){return document.createTextNode(n)}appendChild(n,e){(UC(n)?n.content:n).appendChild(e)}insertBefore(n,e,i){n&&(UC(n)?n.content:n).insertBefore(e,i)}removeChild(n,e){n&&n.removeChild(e)}selectRootElement(n,e){let i="string"==typeof n?document.querySelector(n):n;if(!i)throw new Error(`The selector "${n}" did not match any elements`);return e||(i.textContent=""),i}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,i,r){if(r){e=r+":"+e;const s=rp[r];s?n.setAttributeNS(s,e,i):n.setAttribute(e,i)}else n.setAttribute(e,i)}removeAttribute(n,e,i){if(i){const r=rp[i];r?n.removeAttributeNS(r,e):n.removeAttribute(`${i}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,i,r){r&(Ht.DashCase|Ht.Important)?n.style.setProperty(e,i,r&Ht.Important?"important":""):n.style[e]=i}removeStyle(n,e,i){i&Ht.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,i){n[e]=i}setValue(n,e){n.nodeValue=e}listen(n,e,i){return"string"==typeof n?this.eventManager.addGlobalEventListener(n,e,HC(i)):this.eventManager.addEventListener(n,e,HC(i))}}function UC(t){return"TEMPLATE"===t.tagName&&void 0!==t.content}class XN extends ap{constructor(n,e,i,r){super(n),this.component=i;const s=op(r+"-"+i.id,i.styles);e.addStyles(s),this.contentAttr=function QN(t){return"_ngcontent-%COMP%".replace(sp,t)}(r+"-"+i.id),this.hostAttr=function ZN(t){return"_nghost-%COMP%".replace(sp,t)}(r+"-"+i.id)}applyToHost(n){super.setAttribute(n,this.hostAttr,"")}createElement(n,e){const i=super.createElement(n,e);return super.setAttribute(i,this.contentAttr,""),i}}class JN extends ap{constructor(n,e,i,r){super(n),this.sharedStylesHost=e,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=op(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(n){return n===this.hostEl?this.shadowRoot:n}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,i){return super.insertBefore(this.nodeOrShadowRoot(n),e,i)}removeChild(n,e){return super.removeChild(this.nodeOrShadowRoot(n),e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}}let eF=(()=>{class t extends FC{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 t.\u0275fac=function(e){return new(e||t)(x(Qe))},t.\u0275prov=k({token:t,factory:t.\u0275fac}),t})();const jC=["alt","control","meta","shift"],tF={"\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"},nF={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let iF=(()=>{class t extends FC{constructor(e){super(e)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,i,r){const s=t.parseEventName(i),o=t.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Kn().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=t._normalizeKey(i.pop());let o="",a=i.indexOf("code");if(a>-1&&(i.splice(a,1),o="code."),jC.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=tF[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"),jC.forEach(o=>{o!==r&&(0,nF[o])(e)&&(s+=o+".")}),s+=r,s===i)}static eventCallback(e,i,r){return s=>{t.matchEventFullKeyCode(s,e)&&r.runGuarded(()=>i(s))}}static _normalizeKey(e){return"esc"===e?"escape":e}}return t.\u0275fac=function(e){return new(e||t)(x(Qe))},t.\u0275prov=k({token:t,factory:t.\u0275fac}),t})();const aF=Bw(jx,"browser",[{provide:Sh,useValue:"browser"},{provide:Tw,useValue:function rF(){ip.makeCurrent()},multi:!0},{provide:Qe,useFactory:function oF(){return function ZT(t){pd=t}(document),document},deps:[]}]),WC=new H(""),qC=[{provide:Bl,useClass:class GN{addToWindow(n){Ne.getAngularTestability=(i,r=!0)=>{const s=n.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},Ne.getAllAngularTestabilities=()=>n.getAllTestabilities(),Ne.getAllAngularRootElements=()=>n.getAllRootElements(),Ne.frameworkStabilizers||(Ne.frameworkStabilizers=[]),Ne.frameworkStabilizers.push(i=>{const r=Ne.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(n,e,i){return null==e?null:n.getTestability(e)??(i?Kn().isShadowRoot(e)?this.findTestabilityInTree(n,e.host,!0):this.findTestabilityInTree(n,e.parentElement,!0):null)}},deps:[]},{provide:Fw,useClass:Mh,deps:[Te,Ah,Bl]},{provide:Mh,useClass:Mh,deps:[Te,Ah,Bl]}],KC=[{provide:bd,useValue:"root"},{provide:ns,useFactory:function sF(){return new ns},deps:[]},{provide:nc,useClass:eF,multi:!0,deps:[Qe,Te,Sh]},{provide:nc,useClass:iF,multi:!0,deps:[Qe]},{provide:rc,useClass:rc,deps:[ic,Ho,xo]},{provide:mo,useExisting:rc},{provide:kC,useExisting:Ho},{provide:Ho,useClass:Ho,deps:[Qe]},{provide:ic,useClass:ic,deps:[nc,Te]},{provide:MC,useClass:WN,deps:[]},[]];let QC=(()=>{class t{constructor(e){}static withServerTransition(e){return{ngModule:t,providers:[{provide:xo,useValue:e.appId},{provide:NC,useExisting:xo},zN]}}}return t.\u0275fac=function(e){return new(e||t)(x(WC,12))},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({providers:[...KC,...qC],imports:[St,zx]}),t})(),ZC=(()=>{class t{constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}}return t.\u0275fac=function(e){return new(e||t)(x(Qe))},t.\u0275prov=k({token:t,factory:function(e){let i=null;return i=e?new e:function cF(){return new ZC(x(Qe))}(),i},providedIn:"root"}),t})();typeof window<"u"&&window;let JC=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:function(e){let i=null;return i=e?new(e||t):x(eb),i},providedIn:"root"}),t})(),eb=(()=>{class t extends JC{constructor(e){super(),this._doc=e}sanitize(e,i){if(null==i)return null;switch(e){case ke.NONE:return i;case ke.HTML:return Un(i,"HTML")?Zt(i):d_(this._doc,String(i)).toString();case ke.STYLE:return Un(i,"Style")?Zt(i):i;case ke.SCRIPT:if(Un(i,"Script"))return Zt(i);throw new Error("unsafe value used in a script context");case ke.URL:return Un(i,"URL")?Zt(i):hl(String(i));case ke.RESOURCE_URL:if(Un(i,"ResourceURL"))return Zt(i);throw new Error(`unsafe value used in a resource URL context (see ${Ra})`);default:throw new Error(`Unexpected SecurityContext ${e} (see ${Ra})`)}}bypassSecurityTrustHtml(e){return function r1(t){return new YT(t)}(e)}bypassSecurityTrustStyle(e){return function s1(t){return new XT(t)}(e)}bypassSecurityTrustScript(e){return function o1(t){return new JT(t)}(e)}bypassSecurityTrustUrl(e){return function a1(t){return new e1(t)}(e)}bypassSecurityTrustResourceUrl(e){return function l1(t){return new t1(t)}(e)}}return t.\u0275fac=function(e){return new(e||t)(x(Qe))},t.\u0275prov=k({token:t,factory:function(e){let i=null;return i=e?new e:function mF(t){return new eb(t.get(Qe))}(x(hn)),i},providedIn:"root"}),t})();function $(...t){return Xe(t,zs(t))}class kn extends bn{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const e=super._subscribe(n);return!e.closed&&n.next(this._value),e}getValue(){const{hasError:n,thrownError:e,_value:i}=this;if(n)throw e;return this._throwIfClosed(),i}next(n){super.next(this._value=n)}}const sc=$s(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"}),{isArray:_F}=Array,{getPrototypeOf:yF,prototype:vF,keys:wF}=Object;function tb(t){if(1===t.length){const n=t[0];if(_F(n))return{args:n,keys:null};if(function CF(t){return t&&"object"==typeof t&&yF(t)===vF}(n)){const e=wF(n);return{args:e.map(i=>n[i]),keys:e}}}return{args:t,keys:null}}const{isArray:bF}=Array;function nb(t){return re(n=>function DF(t,n){return bF(n)?t(...n):t(n)}(t,n))}function ib(t,n){return t.reduce((e,i,r)=>(e[i]=n[r],e),{})}function rb(...t){const n=zs(t),e=yg(t),{args:i,keys:r}=tb(t);if(0===i.length)return Xe([],n);const s=new We(function SF(t,n,e=Yi){return i=>{sb(n,()=>{const{length:r}=t,s=new Array(r);let o=r,a=r;for(let l=0;l<r;l++)sb(n,()=>{const c=Xe(t[l],n);let u=!1;c.subscribe(it(i,d=>{s[l]=d,u||(u=!0,a--),a||i.next(e(s.slice()))},()=>{--o||i.complete()}))},i)},i)}}(i,n,r?o=>ib(r,o):Yi));return e?s.pipe(nb(e)):s}function sb(t,n,e){t?ri(e,t,n):n()}function up(...t){return function EF(){return kr(1)}()(Xe(t,zs(t)))}function ob(t){return new We(n=>{on(t()).subscribe(n)})}function $o(t,n){const e=xe(t)?t:()=>t,i=r=>r.error(e());return new We(n?r=>n.schedule(i,0,r):i)}function dp(){return ct((t,n)=>{let e=null;t._refCount++;const i=it(n,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(e=null);const r=t._connection,s=e;e=null,r&&(!s||r===s)&&r.unsubscribe(),n.unsubscribe()});t.subscribe(i),i.closed||(e=t.connect())})}class ab extends We{constructor(n,e){super(),this.source=n,this.subjectFactory=e,this._subject=null,this._refCount=0,this._connection=null,rg(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new sn;const e=this.getSubject();n.add(this.source.subscribe(it(e,void 0,()=>{this._teardown(),e.complete()},i=>{this._teardown(),e.error(i)},()=>this._teardown()))),n.closed&&(this._connection=null,n=sn.EMPTY)}return n}refCount(){return dp()(this)}}function ut(t,n){return ct((e,i)=>{let r=null,s=0,o=!1;const a=()=>o&&!r&&i.complete();e.subscribe(it(i,l=>{r?.unsubscribe();let c=0;const u=s++;on(t(l,u)).subscribe(r=it(i,d=>i.next(n?n(l,d,u,c++):d),()=>{r=null,a()}))},()=>{o=!0,a()}))})}function yr(t){return t<=0?()=>Vn:ct((n,e)=>{let i=0;n.subscribe(it(e,r=>{++i<=t&&(e.next(r),t<=i&&e.complete())}))})}function wi(t,n){return ct((e,i)=>{let r=0;e.subscribe(it(i,s=>t.call(n,s,r++)&&i.next(s)))})}function oc(t){return ct((n,e)=>{let i=!1;n.subscribe(it(e,r=>{i=!0,e.next(r)},()=>{i||e.next(t),e.complete()}))})}function lb(t=TF){return ct((n,e)=>{let i=!1;n.subscribe(it(e,r=>{i=!0,e.next(r)},()=>i?e.complete():e.error(t())))})}function TF(){return new sc}function Li(t,n){const e=arguments.length>=2;return i=>i.pipe(t?wi((r,s)=>t(r,s,i)):Yi,yr(1),e?oc(n):lb(()=>new sc))}function Vi(t,n){return xe(n)?ht(t,n,1):ht(t,1)}function Et(t,n,e){const i=xe(t)||n||e?{next:t,error:n,complete:e}:t;return i?ct((r,s)=>{var o;null===(o=i.subscribe)||void 0===o||o.call(i);let a=!0;r.subscribe(it(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)}))}):Yi}function Bi(t){return ct((n,e)=>{let s,i=null,r=!1;i=n.subscribe(it(e,void 0,void 0,o=>{s=on(t(o,Bi(t)(n))),i?(i.unsubscribe(),i=null,s.subscribe(e)):r=!0})),r&&(i.unsubscribe(),i=null,s.subscribe(e))})}function MF(t,n,e,i,r){return(s,o)=>{let a=e,l=n,c=0;s.subscribe(it(o,u=>{const d=c++;l=a?t(l,u,d):(a=!0,u),i&&o.next(l)},r&&(()=>{a&&o.next(l),o.complete()})))}}function cb(t,n){return ct(MF(t,n,arguments.length>=2,!0))}function hp(t){return t<=0?()=>Vn:ct((n,e)=>{let i=[];n.subscribe(it(e,r=>{i.push(r),t<i.length&&i.shift()},()=>{for(const r of i)e.next(r);e.complete()},void 0,()=>{i=null}))})}function ub(t,n){const e=arguments.length>=2;return i=>i.pipe(t?wi((r,s)=>t(r,s,i)):Yi,hp(1),e?oc(n):lb(()=>new sc))}function pp(t){return ct((n,e)=>{try{n.subscribe(e)}finally{e.add(t)}})}const ee="primary",Uo=Symbol("RouteTitle");class PF{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){const e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}}function bs(t){return new PF(t)}function xF(t,n,e){const i=e.path.split("/");if(i.length>t.length||"full"===e.pathMatch&&(n.hasChildren()||i.length<t.length))return null;const r={};for(let s=0;s<i.length;s++){const o=i[s],a=t[s];if(o.startsWith(":"))r[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:t.slice(0,i.length),posParams:r}}function Xn(t,n){const e=t?Object.keys(t):void 0,i=n?Object.keys(n):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],!db(t[r],n[r]))return!1;return!0}function db(t,n){if(Array.isArray(t)&&Array.isArray(n)){if(t.length!==n.length)return!1;const e=[...t].sort(),i=[...n].sort();return e.every((r,s)=>i[s]===r)}return t===n}function hb(t){return Array.prototype.concat.apply([],t)}function pb(t){return t.length>0?t[t.length-1]:null}function _t(t,n){for(const e in t)t.hasOwnProperty(e)&&n(t[e],e)}function Hi(t){return Qd(t)?t:bo(t)?Xe(Promise.resolve(t)):$(t)}const ac=!1,NF={exact:function mb(t,n,e){if(!wr(t.segments,n.segments)||!lc(t.segments,n.segments,e)||t.numberOfChildren!==n.numberOfChildren)return!1;for(const i in n.children)if(!t.children[i]||!mb(t.children[i],n.children[i],e))return!1;return!0},subset:_b},fb={exact:function FF(t,n){return Xn(t,n)},subset:function kF(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(e=>db(t[e],n[e]))},ignored:()=>!0};function gb(t,n,e){return NF[e.paths](t.root,n.root,e.matrixParams)&&fb[e.queryParams](t.queryParams,n.queryParams)&&!("exact"===e.fragment&&t.fragment!==n.fragment)}function _b(t,n,e){return yb(t,n,n.segments,e)}function yb(t,n,e,i){if(t.segments.length>e.length){const r=t.segments.slice(0,e.length);return!(!wr(r,e)||n.hasChildren()||!lc(r,e,i))}if(t.segments.length===e.length){if(!wr(t.segments,e)||!lc(t.segments,e,i))return!1;for(const r in n.children)if(!t.children[r]||!_b(t.children[r],n.children[r],i))return!1;return!0}{const r=e.slice(0,t.segments.length),s=e.slice(t.segments.length);return!!(wr(t.segments,r)&&lc(t.segments,r,i)&&t.children[ee])&&yb(t.children[ee],n,s,i)}}function lc(t,n,e){return n.every((i,r)=>fb[e](t[r].parameters,i.parameters))}class vr{constructor(n=new ue([],{}),e={},i=null){this.root=n,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=bs(this.queryParams)),this._queryParamMap}toString(){return BF.serialize(this)}}class ue{constructor(n,e){this.segments=n,this.children=e,this.parent=null,_t(e,(i,r)=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return cc(this)}}class jo{constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap||(this._parameterMap=bs(this.parameters)),this._parameterMap}toString(){return Cb(this)}}function wr(t,n){return t.length===n.length&&t.every((e,i)=>e.path===n[i].path)}let zo=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:function(){return new fp},providedIn:"root"}),t})();class fp{parse(n){const e=new KF(n);return new vr(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){const e=`/${Go(n.root,!0)}`,i=function UF(t){const n=Object.keys(t).map(e=>{const i=t[e];return Array.isArray(i)?i.map(r=>`${uc(e)}=${uc(r)}`).join("&"):`${uc(e)}=${uc(i)}`}).filter(e=>!!e);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${e}${i}${"string"==typeof n.fragment?`#${function HF(t){return encodeURI(t)}(n.fragment)}`:""}`}}const BF=new fp;function cc(t){return t.segments.map(n=>Cb(n)).join("/")}function Go(t,n){if(!t.hasChildren())return cc(t);if(n){const e=t.children[ee]?Go(t.children[ee],!1):"",i=[];return _t(t.children,(r,s)=>{s!==ee&&i.push(`${s}:${Go(r,!1)}`)}),i.length>0?`${e}(${i.join("//")})`:e}{const e=function VF(t,n){let e=[];return _t(t.children,(i,r)=>{r===ee&&(e=e.concat(n(i,r)))}),_t(t.children,(i,r)=>{r!==ee&&(e=e.concat(n(i,r)))}),e}(t,(i,r)=>r===ee?[Go(t.children[ee],!1)]:[`${r}:${Go(i,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[ee]?`${cc(t)}/${e[0]}`:`${cc(t)}/(${e.join("//")})`}}function vb(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function uc(t){return vb(t).replace(/%3B/gi,";")}function gp(t){return vb(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function dc(t){return decodeURIComponent(t)}function wb(t){return dc(t.replace(/\+/g,"%20"))}function Cb(t){return`${gp(t.path)}${function $F(t){return Object.keys(t).map(n=>`;${gp(n)}=${gp(t[n])}`).join("")}(t.parameters)}`}const jF=/^[^\/()?;=#]+/;function hc(t){const n=t.match(jF);return n?n[0]:""}const zF=/^[^=?&#]+/,WF=/^[^&#]+/;class KF{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ue([],{}):new ue([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let i={};return this.peekStartsWith("(")&&(i=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(i[ee]=new ue(n,e)),i}parseSegment(){const n=hc(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new I(4009,ac);return this.capture(n),new jo(dc(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const e=hc(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const r=hc(this.remaining);r&&(i=r,this.capture(i))}n[dc(e)]=dc(i)}parseQueryParam(n){const e=function GF(t){const n=t.match(zF);return n?n[0]:""}(this.remaining);if(!e)return;this.capture(e);let i="";if(this.consumeOptional("=")){const o=function qF(t){const n=t.match(WF);return n?n[0]:""}(this.remaining);o&&(i=o,this.capture(i))}const r=wb(e),s=wb(i);if(n.hasOwnProperty(r)){let o=n[r];Array.isArray(o)||(o=[o],n[r]=o),o.push(s)}else n[r]=s}parseParens(n){const e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const i=hc(this.remaining),r=this.remaining[i.length];if("/"!==r&&")"!==r&&";"!==r)throw new I(4010,ac);let s;i.indexOf(":")>-1?(s=i.slice(0,i.indexOf(":")),this.capture(s),this.capture(":")):n&&(s=ee);const o=this.parseChildren();e[s]=1===Object.keys(o).length?o[ee]:new ue([],o),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new I(4011,ac)}}function mp(t){return t.segments.length>0?new ue([],{[ee]:t}):t}function pc(t){const n={};for(const i of Object.keys(t.children)){const s=pc(t.children[i]);(s.segments.length>0||s.hasChildren())&&(n[i]=s)}return function QF(t){if(1===t.numberOfChildren&&t.children[ee]){const n=t.children[ee];return new ue(t.segments.concat(n.segments),n.children)}return t}(new ue(t.segments,n))}function Cr(t){return t instanceof vr}function XF(t,n,e,i,r){if(0===e.length)return Ds(n.root,n.root,n.root,i,r);const s=function Sb(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Db(!0,0,t);let n=0,e=!1;const i=t.reduce((r,s,o)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return _t(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?n++:""!=a&&r.push(a))}),r):[...r,s]},[]);return new Db(e,n,i)}(e);return s.toRoot()?Ds(n.root,n.root,new ue([],{}),i,r):function o(l){const c=function ek(t,n,e,i){if(t.isAbsolute)return new Ss(n.root,!0,0);if(-1===i)return new Ss(e,e===n.root,0);return function Eb(t,n,e){let i=t,r=n,s=e;for(;s>r;){if(s-=r,i=i.parent,!i)throw new I(4005,!1);r=i.segments.length}return new Ss(i,!1,r-s)}(e,i+(Wo(t.commands[0])?0:1),t.numberOfDoubleDots)}(s,n,t.snapshot?._urlSegment,l),u=c.processChildren?Es(c.segmentGroup,c.index,s.commands):yp(c.segmentGroup,c.index,s.commands);return Ds(n.root,c.segmentGroup,u,i,r)}(t.snapshot?._lastPathIndex)}function Wo(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function qo(t){return"object"==typeof t&&null!=t&&t.outlets}function Ds(t,n,e,i,r){let o,s={};i&&_t(i,(l,c)=>{s[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),o=t===n?e:bb(t,n,e);const a=mp(pc(o));return new vr(a,s,r)}function bb(t,n,e){const i={};return _t(t.children,(r,s)=>{i[s]=r===n?e:bb(r,n,e)}),new ue(t.segments,i)}class Db{constructor(n,e,i){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=i,n&&i.length>0&&Wo(i[0]))throw new I(4003,!1);const r=i.find(qo);if(r&&r!==pb(i))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Ss{constructor(n,e,i){this.segmentGroup=n,this.processChildren=e,this.index=i}}function yp(t,n,e){if(t||(t=new ue([],{})),0===t.segments.length&&t.hasChildren())return Es(t,n,e);const i=function nk(t,n,e){let i=0,r=n;const s={match:!1,pathIndex:0,commandIndex:0};for(;r<t.segments.length;){if(i>=e.length)return s;const o=t.segments[r],a=e[i];if(qo(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(!Tb(l,c,o))return s;i+=2}else{if(!Tb(l,{},o))return s;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,n,e),r=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){const s=new ue(t.segments.slice(0,i.pathIndex),{});return s.children[ee]=new ue(t.segments.slice(i.pathIndex),t.children),Es(s,0,r)}return i.match&&0===r.length?new ue(t.segments,{}):i.match&&!t.hasChildren()?vp(t,n,e):i.match?Es(t,0,r):vp(t,n,e)}function Es(t,n,e){if(0===e.length)return new ue(t.segments,{});{const i=function tk(t){return qo(t[0])?t[0].outlets:{[ee]:t}}(e),r={};return!i[ee]&&t.children[ee]&&1===t.numberOfChildren&&0===t.children[ee].segments.length?Es(t.children[ee],n,e):(_t(i,(s,o)=>{"string"==typeof s&&(s=[s]),null!==s&&(r[o]=yp(t.children[o],n,s))}),_t(t.children,(s,o)=>{void 0===i[o]&&(r[o]=s)}),new ue(t.segments,r))}}function vp(t,n,e){const i=t.segments.slice(0,n);let r=0;for(;r<e.length;){const s=e[r];if(qo(s)){const l=ik(s.outlets);return new ue(i,l)}if(0===r&&Wo(e[0])){i.push(new jo(t.segments[n].path,Ib(e[0]))),r++;continue}const o=qo(s)?s.outlets[ee]:`${s}`,a=r<e.length-1?e[r+1]:null;o&&a&&Wo(a)?(i.push(new jo(o,Ib(a))),r+=2):(i.push(new jo(o,{})),r++)}return new ue(i,{})}function ik(t){const n={};return _t(t,(e,i)=>{"string"==typeof e&&(e=[e]),null!==e&&(n[i]=vp(new ue([],{}),0,e))}),n}function Ib(t){const n={};return _t(t,(e,i)=>n[i]=`${e}`),n}function Tb(t,n,e){return t==e.path&&Xn(n,e.parameters)}const Ko="imperative";class Jn{constructor(n,e){this.id=n,this.url=e}}class wp extends Jn{constructor(n,e,i="imperative",r=null){super(n,e),this.type=0,this.navigationTrigger=i,this.restoredState=r}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class br extends Jn{constructor(n,e,i){super(n,e),this.urlAfterRedirects=i,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class fc extends Jn{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Mb extends Jn{constructor(n,e,i,r){super(n,e),this.reason=i,this.code=r,this.type=16}}class Ab extends Jn{constructor(n,e,i,r){super(n,e),this.error=i,this.target=r,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class rk extends Jn{constructor(n,e,i,r){super(n,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 sk extends Jn{constructor(n,e,i,r){super(n,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 ok extends Jn{constructor(n,e,i,r,s){super(n,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 ak extends Jn{constructor(n,e,i,r){super(n,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 lk extends Jn{constructor(n,e,i,r){super(n,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 ck{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class uk{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class dk{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class hk{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class pk{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fk{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ob{constructor(n,e,i){this.routerEvent=n,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}')`}}let mk=(()=>{class t{createUrlTree(e,i,r,s,o,a){return XF(e||i.root,r,s,o,a)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac}),t})(),_k=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:function(n){return mk.\u0275fac(n)},providedIn:"root"}),t})();class Pb{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){const e=Cp(n,this._root);return e?e.children.map(i=>i.value):[]}firstChild(n){const e=Cp(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){const e=bp(n,this._root);return e.length<2?[]:e[e.length-2].children.map(r=>r.value).filter(r=>r!==n)}pathFromRoot(n){return bp(n,this._root).map(e=>e.value)}}function Cp(t,n){if(t===n.value)return n;for(const e of n.children){const i=Cp(t,e);if(i)return i}return null}function bp(t,n){if(t===n.value)return[n];for(const e of n.children){const i=bp(t,e);if(i.length)return i.unshift(n),i}return[]}class Ci{constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}}function Is(t){const n={};return t&&t.children.forEach(e=>n[e.value.outlet]=e),n}class xb extends Pb{constructor(n,e){super(n),this.snapshot=e,Dp(this,n)}toString(){return this.snapshot.toString()}}function Rb(t,n){const e=function yk(t,n){const o=new gc([],{},{},"",{},ee,n,null,t.root,-1,{});return new Fb("",new Ci(o,[]))}(t,n),i=new kn([new jo("",{})]),r=new kn({}),s=new kn({}),o=new kn({}),a=new kn(""),l=new ei(i,r,o,a,s,ee,n,e.root);return l.snapshot=e.root,new xb(new Ci(l,[]),e)}class ei{constructor(n,e,i,r,s,o,a,l){this.url=n,this.params=e,this.queryParams=i,this.fragment=r,this.data=s,this.outlet=o,this.component=a,this.title=this.data?.pipe(re(c=>c[Uo]))??$(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(re(n=>bs(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(re(n=>bs(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Nb(t,n="emptyOnly"){const e=t.pathFromRoot;let i=0;if("always"!==n)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 vk(t){return t.reduce((n,e)=>({params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.resolve,...e.routeConfig?.data,...e._resolvedData}}),{params:{},data:{},resolve:{}})}(e.slice(i))}class gc{get title(){return this.data?.[Uo]}constructor(n,e,i,r,s,o,a,l,c,u,d){this.url=n,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 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=bs(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=bs(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Fb extends Pb{constructor(n,e){super(e),this.url=n,Dp(this,e)}toString(){return kb(this._root)}}function Dp(t,n){n.value._routerState=t,n.children.forEach(e=>Dp(t,e))}function kb(t){const n=t.children.length>0?` { ${t.children.map(kb).join(", ")} } `:"";return`${t.value}${n}`}function Sp(t){if(t.snapshot){const n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,Xn(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),Xn(n.params,e.params)||t.params.next(e.params),function RF(t,n){if(t.length!==n.length)return!1;for(let e=0;e<t.length;++e)if(!Xn(t[e],n[e]))return!1;return!0}(n.url,e.url)||t.url.next(e.url),Xn(n.data,e.data)||t.data.next(e.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function Ep(t,n){const e=Xn(t.params,n.params)&&function LF(t,n){return wr(t,n)&&t.every((e,i)=>Xn(e.parameters,n[i].parameters))}(t.url,n.url);return e&&!(!t.parent!=!n.parent)&&(!t.parent||Ep(t.parent,n.parent))}function Qo(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){const i=e.value;i._futureSnapshot=n.value;const r=function Ck(t,n,e){return n.children.map(i=>{for(const r of e.children)if(t.shouldReuseRoute(i.value,r.value.snapshot))return Qo(t,i,r);return Qo(t,i)})}(t,n,e);return new Ci(i,r)}{if(t.shouldAttach(n.value)){const s=t.retrieve(n.value);if(null!==s){const o=s.route;return o.value._futureSnapshot=n.value,o.children=n.children.map(a=>Qo(t,a)),o}}const i=function bk(t){return new ei(new kn(t.url),new kn(t.params),new kn(t.queryParams),new kn(t.fragment),new kn(t.data),t.outlet,t.component,t)}(n.value),r=n.children.map(s=>Qo(t,s));return new Ci(i,r)}}const Ip="ngNavigationCancelingError";function Lb(t,n){const{redirectTo:e,navigationBehaviorOptions:i}=Cr(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,r=Vb(!1,0,n);return r.url=e,r.navigationBehaviorOptions=i,r}function Vb(t,n,e){const i=new Error("NavigationCancelingError: "+(t||""));return i[Ip]=!0,i.cancellationCode=n,e&&(i.url=e),i}function Bb(t){return Hb(t)&&Cr(t.url)}function Hb(t){return t&&t[Ip]}class Dk{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.injector=null,this.children=new Zo,this.attachRef=null}}let Zo=(()=>{class t{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 Dk,this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const mc=!1;let Tp=(()=>{class t{constructor(){this.activated=null,this._activatedRoute=null,this.name=ee,this.activateEvents=new U,this.deactivateEvents=new U,this.attachEvents=new U,this.detachEvents=new U,this.parentContexts=ce(Zo),this.location=ce(gn),this.changeDetector=ce(Ut),this.environmentInjector=ce(jn)}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 I(4012,mc);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new I(4012,mc);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new I(4012,mc);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 I(4013,mc);this._activatedRoute=e;const r=this.location,o=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new Sk(e,a,r.injector);if(i&&function Ek(t){return!!t.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 t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=j({type:t,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[pt]}),t})();class Sk{constructor(n,e,i){this.route=n,this.childContexts=e,this.parent=i}get(n,e){return n===ei?this.route:n===Zo?this.childContexts:this.parent.get(n,e)}}let Mp=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ie({type:t,selectors:[["ng-component"]],standalone:!0,features:[Hv],decls:1,vars:0,template:function(e,i){1&e&&G(0,"router-outlet")},dependencies:[Tp],encapsulation:2}),t})();function $b(t,n){return t.providers&&!t._injector&&(t._injector=Rl(t.providers,n,`Route: ${t.path}`)),t._injector??n}function Op(t){const n=t.children&&t.children.map(Op),e=n?{...t,children:n}:{...t};return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==ee&&(e.component=Mp),e}function yn(t){return t.outlet||ee}function Ub(t,n){const e=t.filter(i=>yn(i)===n);return e.push(...t.filter(i=>yn(i)!==n)),e}function Yo(t){if(!t)return null;if(t.routeConfig?._injector)return t.routeConfig._injector;for(let n=t.parent;n;n=n.parent){const e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}class Ok{constructor(n,e,i,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=i,this.forwardEvent=r}activate(n){const e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,n),Sp(this.futureState.root),this.activateChildRoutes(e,i,n)}deactivateChildRoutes(n,e,i){const r=Is(e);n.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,r[o],i),delete r[o]}),_t(r,(s,o)=>{this.deactivateRouteAndItsChildren(s,i)})}deactivateRoutes(n,e,i){const r=n.value,s=e?e.value:null;if(r===s)if(r.component){const o=i.getContext(r.outlet);o&&this.deactivateChildRoutes(n,e,o.children)}else this.deactivateChildRoutes(n,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,s=Is(n);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(n.value.snapshot,{componentRef:o,route:n,contexts:a})}}deactivateRouteAndOutlet(n,e){const i=e.getContext(n.value.outlet),r=i&&n.value.component?i.children:e,s=Is(n);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(n,e,i){const r=Is(e);n.children.forEach(s=>{this.activateRoutes(s,r[s.value.outlet],i),this.forwardEvent(new fk(s.value.snapshot))}),n.children.length&&this.forwardEvent(new hk(n.value.snapshot))}activateRoutes(n,e,i){const r=n.value,s=e?e.value:null;if(Sp(r),r===s)if(r.component){const o=i.getOrCreateContext(r.outlet);this.activateChildRoutes(n,e,o.children)}else this.activateChildRoutes(n,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),Sp(a.route.value),this.activateChildRoutes(n,null,o.children)}else{const a=Yo(r.snapshot),l=a?.get(go)??null;o.attachRef=null,o.route=r,o.resolver=l,o.injector=a,o.outlet&&o.outlet.activateWith(r,o.injector),this.activateChildRoutes(n,null,o.children)}}else this.activateChildRoutes(n,null,i)}}class jb{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class _c{constructor(n,e){this.component=n,this.route=e}}function Pk(t,n,e){const i=t._root;return Xo(i,n?n._root:null,e,[i.value])}function Ts(t,n){const e=Symbol(),i=n.get(t,e);return i===e?"function"!=typeof t||function G0(t){return null!==ka(t)}(t)?n.get(t):t:i}function Xo(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=Is(n);return t.children.forEach(o=>{(function Rk(t,n,e,i,r={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,o=n?n.value:null,a=e?e.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function Nk(t,n,e){if("function"==typeof e)return e(t,n);switch(e){case"pathParamsChange":return!wr(t.url,n.url);case"pathParamsOrQueryParamsChange":return!wr(t.url,n.url)||!Xn(t.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ep(t,n)||!Xn(t.queryParams,n.queryParams);default:return!Ep(t,n)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?r.canActivateChecks.push(new jb(i)):(s.data=o.data,s._resolvedData=o._resolvedData),Xo(t,n,s.component?a?a.children:null:e,i,r),l&&a&&a.outlet&&a.outlet.isActivated&&r.canDeactivateChecks.push(new _c(a.outlet.component,o))}else o&&Jo(n,a,r),r.canActivateChecks.push(new jb(i)),Xo(t,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]}),_t(s,(o,a)=>Jo(o,e.getContext(a),r)),r}function Jo(t,n,e){const i=Is(t),r=t.value;_t(i,(s,o)=>{Jo(s,r.component?n?n.children.getContext(o):null:n,e)}),e.canDeactivateChecks.push(new _c(r.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,r))}function ea(t){return"function"==typeof t}function Pp(t){return t instanceof sc||"EmptyError"===t?.name}const yc=Symbol("INITIAL_VALUE");function Ms(){return ut(t=>rb(t.map(n=>n.pipe(yr(1),function IF(...t){const n=zs(t);return ct((e,i)=>{(n?up(t,e,n):up(t,e)).subscribe(i)})}(yc)))).pipe(re(n=>{for(const e of n)if(!0!==e){if(e===yc)return yc;if(!1===e||e instanceof vr)return e}return!0}),wi(n=>n!==yc),yr(1)))}function zb(t){return function u0(...t){return tg(t)}(Et(n=>{if(Cr(n))throw Lb(0,n)}),re(n=>!0===n))}const xp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Gb(t,n,e,i,r){const s=Rp(t,n,e);return s.matched?function Yk(t,n,e,i){const r=n.canMatch;return r&&0!==r.length?$(r.map(o=>{const a=Ts(o,t);return Hi(function Hk(t){return t&&ea(t.canMatch)}(a)?a.canMatch(n,e):t.runInContext(()=>a(n,e)))})).pipe(Ms(),zb()):$(!0)}(i=$b(n,i),n,e).pipe(re(o=>!0===o?s:{...xp})):$(s)}function Rp(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{...xp}:{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};const r=(n.matcher||xF)(e,t,n);if(!r)return{...xp};const s={};_t(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 vc(t,n,e,i){if(e.length>0&&function eL(t,n,e){return e.some(i=>wc(t,n,i)&&yn(i)!==ee)}(t,e,i)){const s=new ue(n,function Jk(t,n,e,i){const r={};r[ee]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;for(const s of e)if(""===s.path&&yn(s)!==ee){const o=new ue([],{});o._sourceSegment=t,o._segmentIndexShift=n.length,r[yn(s)]=o}return r}(t,n,i,new ue(e,t.children)));return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:[]}}if(0===e.length&&function tL(t,n,e){return e.some(i=>wc(t,n,i))}(t,e,i)){const s=new ue(t.segments,function Xk(t,n,e,i,r){const s={};for(const o of i)if(wc(t,e,o)&&!r[yn(o)]){const a=new ue([],{});a._sourceSegment=t,a._segmentIndexShift=n.length,s[yn(o)]=a}return{...r,...s}}(t,n,e,i,t.children));return s._sourceSegment=t,s._segmentIndexShift=n.length,{segmentGroup:s,slicedSegments:e}}const r=new ue(t.segments,t.children);return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:e}}function wc(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path}function Wb(t,n,e,i){return!!(yn(t)===i||i!==ee&&wc(n,e,t))&&("**"===t.path||Rp(n,t,e).matched)}function qb(t,n,e){return 0===n.length&&!t.children[e]}const Cc=!1;class bc{constructor(n){this.segmentGroup=n||null}}class Kb{constructor(n){this.urlTree=n}}function ta(t){return $o(new bc(t))}function Qb(t){return $o(new Kb(t))}class sL{constructor(n,e,i,r,s){this.injector=n,this.configLoader=e,this.urlSerializer=i,this.urlTree=r,this.config=s,this.allowRedirects=!0}apply(){const n=vc(this.urlTree.root,[],[],this.config).segmentGroup,e=new ue(n.segments,n.children);return this.expandSegmentGroup(this.injector,this.config,e,ee).pipe(re(s=>this.createUrlTree(pc(s),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Bi(s=>{if(s instanceof Kb)return this.allowRedirects=!1,this.match(s.urlTree);throw s instanceof bc?this.noMatchError(s):s}))}match(n){return this.expandSegmentGroup(this.injector,this.config,n.root,ee).pipe(re(r=>this.createUrlTree(pc(r),n.queryParams,n.fragment))).pipe(Bi(r=>{throw r instanceof bc?this.noMatchError(r):r}))}noMatchError(n){return new I(4002,Cc)}createUrlTree(n,e,i){const r=mp(n);return new vr(r,e,i)}expandSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.expandChildren(n,e,i).pipe(re(s=>new ue([],s))):this.expandSegment(n,i,e,i.segments,r,!0)}expandChildren(n,e,i){const r=[];for(const s of Object.keys(i.children))"primary"===s?r.unshift(s):r.push(s);return Xe(r).pipe(Vi(s=>{const o=i.children[s],a=Ub(e,s);return this.expandSegmentGroup(n,a,o,s).pipe(re(l=>({segment:l,outlet:s})))}),cb((s,o)=>(s[o.outlet]=o.segment,s),{}),ub())}expandSegment(n,e,i,r,s,o){return Xe(i).pipe(Vi(a=>this.expandSegmentAgainstRoute(n,e,i,a,r,s,o).pipe(Bi(c=>{if(c instanceof bc)return $(null);throw c}))),Li(a=>!!a),Bi((a,l)=>{if(Pp(a))return qb(e,r,s)?$(new ue([],{})):ta(e);throw a}))}expandSegmentAgainstRoute(n,e,i,r,s,o,a){return Wb(r,e,s,o)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,e,r,s,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,e,i,r,s,o):ta(e):ta(e)}expandSegmentAgainstRouteUsingRedirect(n,e,i,r,s,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,i,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,e,i,r){const s=this.applyRedirectCommands([],i.redirectTo,{});return i.redirectTo.startsWith("/")?Qb(s):this.lineralizeSegments(i,s).pipe(ht(o=>{const a=new ue(o,{});return this.expandSegment(n,a,e,o,r,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,e,i,r,s,o){const{matched:a,consumedSegments:l,remainingSegments:c,positionalParamSegments:u}=Rp(e,r,s);if(!a)return ta(e);const d=this.applyRedirectCommands(l,r.redirectTo,u);return r.redirectTo.startsWith("/")?Qb(d):this.lineralizeSegments(r,d).pipe(ht(h=>this.expandSegment(n,e,i,h.concat(c),o,!1)))}matchSegmentAgainstRoute(n,e,i,r,s){return"**"===i.path?(n=$b(i,n),i.loadChildren?(i._loadedRoutes?$({routes:i._loadedRoutes,injector:i._loadedInjector}):this.configLoader.loadChildren(n,i)).pipe(re(a=>(i._loadedRoutes=a.routes,i._loadedInjector=a.injector,new ue(r,{})))):$(new ue(r,{}))):Gb(e,i,r,n).pipe(ut(({matched:o,consumedSegments:a,remainingSegments:l})=>o?this.getChildConfig(n=i._injector??n,i,r).pipe(ht(u=>{const d=u.injector??n,h=u.routes,{segmentGroup:p,slicedSegments:f}=vc(e,a,l,h),_=new ue(p.segments,p.children);if(0===f.length&&_.hasChildren())return this.expandChildren(d,h,_).pipe(re(E=>new ue(a,E)));if(0===h.length&&0===f.length)return $(new ue(a,{}));const w=yn(i)===s;return this.expandSegment(d,_,h,f,w?ee:s,!0).pipe(re(T=>new ue(a.concat(T.segments),T.children)))})):ta(e)))}getChildConfig(n,e,i){return e.children?$({routes:e.children,injector:n}):e.loadChildren?void 0!==e._loadedRoutes?$({routes:e._loadedRoutes,injector:e._loadedInjector}):function Zk(t,n,e,i){const r=n.canLoad;return void 0===r||0===r.length?$(!0):$(r.map(o=>{const a=Ts(o,t);return Hi(function kk(t){return t&&ea(t.canLoad)}(a)?a.canLoad(n,e):t.runInContext(()=>a(n,e)))})).pipe(Ms(),zb())}(n,e,i).pipe(ht(r=>r?this.configLoader.loadChildren(n,e).pipe(Et(s=>{e._loadedRoutes=s.routes,e._loadedInjector=s.injector})):function iL(t){return $o(Vb(Cc,3))}())):$({routes:[],injector:n})}lineralizeSegments(n,e){let i=[],r=e.root;for(;;){if(i=i.concat(r.segments),0===r.numberOfChildren)return $(i);if(r.numberOfChildren>1||!r.children[ee])return $o(new I(4e3,Cc));r=r.children[ee]}}applyRedirectCommands(n,e,i){return this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,i)}applyRedirectCreateUrlTree(n,e,i,r){const s=this.createSegmentGroup(n,e.root,i,r);return new vr(s,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){const i={};return _t(n,(r,s)=>{if("string"==typeof r&&r.startsWith(":")){const a=r.substring(1);i[s]=e[a]}else i[s]=r}),i}createSegmentGroup(n,e,i,r){const s=this.createSegments(n,e.segments,i,r);let o={};return _t(e.children,(a,l)=>{o[l]=this.createSegmentGroup(n,a,i,r)}),new ue(s,o)}createSegments(n,e,i,r){return e.map(s=>s.path.startsWith(":")?this.findPosParam(n,s,r):this.findOrReturn(s,i))}findPosParam(n,e,i){const r=i[e.path.substring(1)];if(!r)throw new I(4001,Cc);return r}findOrReturn(n,e){let i=0;for(const r of e){if(r.path===n.path)return e.splice(i),r;i++}return n}}class aL{}class uL{constructor(n,e,i,r,s,o,a){this.injector=n,this.rootComponentType=e,this.config=i,this.urlTree=r,this.url=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a}recognize(){const n=vc(this.urlTree.root,[],[],this.config.filter(e=>void 0===e.redirectTo)).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,ee).pipe(re(e=>{if(null===e)return null;const i=new gc([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},ee,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Ci(i,e),s=new Fb(this.url,r);return this.inheritParamsAndData(s._root),s}))}inheritParamsAndData(n){const e=n.value,i=Nb(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),n.children.forEach(r=>this.inheritParamsAndData(r))}processSegmentGroup(n,e,i,r){return 0===i.segments.length&&i.hasChildren()?this.processChildren(n,e,i):this.processSegment(n,e,i,i.segments,r)}processChildren(n,e,i){return Xe(Object.keys(i.children)).pipe(Vi(r=>{const s=i.children[r],o=Ub(e,r);return this.processSegmentGroup(n,o,s,r)}),cb((r,s)=>r&&s?(r.push(...s),r):null),function AF(t,n=!1){return ct((e,i)=>{let r=0;e.subscribe(it(i,s=>{const o=t(s,r++);(o||n)&&i.next(s),!o&&i.complete()}))})}(r=>null!==r),oc(null),ub(),re(r=>{if(null===r)return null;const s=Yb(r);return function dL(t){t.sort((n,e)=>n.value.outlet===ee?-1:e.value.outlet===ee?1:n.value.outlet.localeCompare(e.value.outlet))}(s),s}))}processSegment(n,e,i,r,s){return Xe(e).pipe(Vi(o=>this.processSegmentAgainstRoute(o._injector??n,o,i,r,s)),Li(o=>!!o),Bi(o=>{if(Pp(o))return qb(i,r,s)?$([]):$(null);throw o}))}processSegmentAgainstRoute(n,e,i,r,s){if(e.redirectTo||!Wb(e,i,r,s))return $(null);let o;if("**"===e.path){const a=r.length>0?pb(r).parameters:{},l=Jb(i)+r.length;o=$({snapshot:new gc(r,a,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,eD(e),yn(e),e.component??e._loadedComponent??null,e,Xb(i),l,tD(e)),consumedSegments:[],remainingSegments:[]})}else o=Gb(i,e,r,n).pipe(re(({matched:a,consumedSegments:l,remainingSegments:c,parameters:u})=>{if(!a)return null;const d=Jb(i)+l.length;return{snapshot:new gc(l,u,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,eD(e),yn(e),e.component??e._loadedComponent??null,e,Xb(i),d,tD(e)),consumedSegments:l,remainingSegments:c}}));return o.pipe(ut(a=>{if(null===a)return $(null);const{snapshot:l,consumedSegments:c,remainingSegments:u}=a;n=e._injector??n;const d=e._loadedInjector??n,h=function hL(t){return t.children?t.children:t.loadChildren?t._loadedRoutes:[]}(e),{segmentGroup:p,slicedSegments:f}=vc(i,c,u,h.filter(w=>void 0===w.redirectTo));if(0===f.length&&p.hasChildren())return this.processChildren(d,h,p).pipe(re(w=>null===w?null:[new Ci(l,w)]));if(0===h.length&&0===f.length)return $([new Ci(l,[])]);const _=yn(e)===s;return this.processSegment(d,h,p,f,_?ee:s).pipe(re(w=>null===w?null:[new Ci(l,w)]))}))}}function pL(t){const n=t.value.routeConfig;return n&&""===n.path&&void 0===n.redirectTo}function Yb(t){const n=[],e=new Set;for(const i of t){if(!pL(i)){n.push(i);continue}const r=n.find(s=>i.value.routeConfig===s.value.routeConfig);void 0!==r?(r.children.push(...i.children),e.add(r)):n.push(i)}for(const i of e){const r=Yb(i.children);n.push(new Ci(i.value,r))}return n.filter(i=>!e.has(i))}function Xb(t){let n=t;for(;n._sourceSegment;)n=n._sourceSegment;return n}function Jb(t){let n=t,e=n._segmentIndexShift??0;for(;n._sourceSegment;)n=n._sourceSegment,e+=n._segmentIndexShift??0;return e-1}function eD(t){return t.data||{}}function tD(t){return t.resolve||{}}function nD(t){return"string"==typeof t.title||null===t.title}function Np(t){return ut(n=>{const e=t(n);return e?Xe(e).pipe(re(()=>n)):$(n)})}const As=new H("ROUTES");let Fp=(()=>{class t{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 $(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);const i=Hi(e.loadComponent()).pipe(re(rD),Et(s=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=s}),pp(()=>{this.componentLoaders.delete(e)})),r=new ab(i,()=>new bn).pipe(dp());return this.componentLoaders.set(e,r),r}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return $({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);const s=this.loadModuleFactoryOrRoutes(i.loadChildren).pipe(re(a=>{this.onLoadEndListener&&this.onLoadEndListener(i);let l,c,u=!1;Array.isArray(a)?c=a:(l=a.create(e).injector,c=hb(l.get(As,[],K.Self|K.Optional)));return{routes:c.map(Op),injector:l}}),pp(()=>{this.childrenLoaders.delete(i)})),o=new ab(s,()=>new bn).pipe(dp());return this.childrenLoaders.set(i,o),o}loadModuleFactoryOrRoutes(e){return Hi(e()).pipe(re(rD),ht(r=>r instanceof Vv||Array.isArray(r)?$(r):Xe(this.compiler.compileModuleAsync(r))))}}return t.\u0275fac=function(e){return new(e||t)(x(hn),x(Ow))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function rD(t){return function bL(t){return t&&"object"==typeof t&&"default"in t}(t)?t.default:t}let Sc=(()=>{class t{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new bn,this.configLoader=ce(Fp),this.environmentInjector=ce(jn),this.urlSerializer=ce(zo),this.rootContexts=ce(Zo),this.navigationId=0,this.afterPreactivation=()=>$(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=r=>this.events.next(new uk(r)),this.configLoader.onLoadStartListener=r=>this.events.next(new ck(r))}complete(){this.transitions?.complete()}handleNavigationRequest(e){const i=++this.navigationId;this.transitions?.next({...this.transitions.value,...e,id:i})}setupNavigations(e){return this.transitions=new kn({id:0,targetPageId:0,currentUrlTree:e.currentUrlTree,currentRawUrl:e.currentUrlTree,extractedUrl:e.urlHandlingStrategy.extract(e.currentUrlTree),urlAfterRedirects:e.urlHandlingStrategy.extract(e.currentUrlTree),rawUrl:e.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Ko,restoredState:null,currentSnapshot:e.routerState.snapshot,targetSnapshot:null,currentRouterState:e.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(wi(i=>0!==i.id),re(i=>({...i,extractedUrl:e.urlHandlingStrategy.extract(i.rawUrl)})),ut(i=>{let r=!1,s=!1;return $(i).pipe(Et(o=>{this.currentNavigation={id:o.id,initialUrl:o.rawUrl,extractedUrl:o.extractedUrl,trigger:o.source,extras:o.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),ut(o=>{const a=e.browserUrlTree.toString(),l=!e.navigated||o.extractedUrl.toString()!==a||a!==e.currentUrlTree.toString();if(!l&&"reload"!==(o.extras.onSameUrlNavigation??e.onSameUrlNavigation)){const u="";return this.events.next(new Mb(o.id,e.serializeUrl(i.rawUrl),u,0)),e.rawUrlTree=o.rawUrl,o.resolve(null),Vn}if(e.urlHandlingStrategy.shouldProcessUrl(o.rawUrl))return sD(o.source)&&(e.browserUrlTree=o.extractedUrl),$(o).pipe(ut(u=>{const d=this.transitions?.getValue();return this.events.next(new wp(u.id,this.urlSerializer.serialize(u.extractedUrl),u.source,u.restoredState)),d!==this.transitions?.getValue()?Vn:Promise.resolve(u)}),function oL(t,n,e,i){return ut(r=>function rL(t,n,e,i,r){return new sL(t,n,e,i,r).apply()}(t,n,e,r.extractedUrl,i).pipe(re(s=>({...r,urlAfterRedirects:s}))))}(this.environmentInjector,this.configLoader,this.urlSerializer,e.config),Et(u=>{this.currentNavigation={...this.currentNavigation,finalUrl:u.urlAfterRedirects},i.urlAfterRedirects=u.urlAfterRedirects}),function gL(t,n,e,i,r){return ht(s=>function cL(t,n,e,i,r,s,o="emptyOnly"){return new uL(t,n,e,i,r,o,s).recognize().pipe(ut(a=>null===a?function lL(t){return new We(n=>n.error(t))}(new aL):$(a)))}(t,n,e,s.urlAfterRedirects,i.serialize(s.urlAfterRedirects),i,r).pipe(re(o=>({...s,targetSnapshot:o}))))}(this.environmentInjector,this.rootComponentType,e.config,this.urlSerializer,e.paramsInheritanceStrategy),Et(u=>{if(i.targetSnapshot=u.targetSnapshot,"eager"===e.urlUpdateStrategy){if(!u.extras.skipLocationChange){const h=e.urlHandlingStrategy.merge(u.urlAfterRedirects,u.rawUrl);e.setBrowserUrl(h,u)}e.browserUrlTree=u.urlAfterRedirects}const d=new rk(u.id,this.urlSerializer.serialize(u.extractedUrl),this.urlSerializer.serialize(u.urlAfterRedirects),u.targetSnapshot);this.events.next(d)}));if(l&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){const{id:u,extractedUrl:d,source:h,restoredState:p,extras:f}=o,_=new wp(u,this.urlSerializer.serialize(d),h,p);this.events.next(_);const w=Rb(d,this.rootComponentType).snapshot;return $(i={...o,targetSnapshot:w,urlAfterRedirects:d,extras:{...f,skipLocationChange:!1,replaceUrl:!1}})}{const u="";return this.events.next(new Mb(o.id,e.serializeUrl(i.extractedUrl),u,1)),e.rawUrlTree=o.rawUrl,o.resolve(null),Vn}}),Et(o=>{const a=new sk(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot);this.events.next(a)}),re(o=>i={...o,guards:Pk(o.targetSnapshot,o.currentSnapshot,this.rootContexts)}),function Uk(t,n){return ht(e=>{const{targetSnapshot:i,currentSnapshot:r,guards:{canActivateChecks:s,canDeactivateChecks:o}}=e;return 0===o.length&&0===s.length?$({...e,guardsResult:!0}):function jk(t,n,e,i){return Xe(t).pipe(ht(r=>function Qk(t,n,e,i,r){const s=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return s&&0!==s.length?$(s.map(a=>{const l=Yo(n)??r,c=Ts(a,l);return Hi(function Bk(t){return t&&ea(t.canDeactivate)}(c)?c.canDeactivate(t,n,e,i):l.runInContext(()=>c(t,n,e,i))).pipe(Li())})).pipe(Ms()):$(!0)}(r.component,r.route,e,n,i)),Li(r=>!0!==r,!0))}(o,i,r,t).pipe(ht(a=>a&&function Fk(t){return"boolean"==typeof t}(a)?function zk(t,n,e,i){return Xe(n).pipe(Vi(r=>up(function Wk(t,n){return null!==t&&n&&n(new dk(t)),$(!0)}(r.route.parent,i),function Gk(t,n){return null!==t&&n&&n(new pk(t)),$(!0)}(r.route,i),function Kk(t,n,e){const i=n[n.length-1],s=n.slice(0,n.length-1).reverse().map(o=>function xk(t){const n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null}(o)).filter(o=>null!==o).map(o=>ob(()=>$(o.guards.map(l=>{const c=Yo(o.node)??e,u=Ts(l,c);return Hi(function Vk(t){return t&&ea(t.canActivateChild)}(u)?u.canActivateChild(i,t):c.runInContext(()=>u(i,t))).pipe(Li())})).pipe(Ms())));return $(s).pipe(Ms())}(t,r.path,e),function qk(t,n,e){const i=n.routeConfig?n.routeConfig.canActivate:null;if(!i||0===i.length)return $(!0);const r=i.map(s=>ob(()=>{const o=Yo(n)??e,a=Ts(s,o);return Hi(function Lk(t){return t&&ea(t.canActivate)}(a)?a.canActivate(n,t):o.runInContext(()=>a(n,t))).pipe(Li())}));return $(r).pipe(Ms())}(t,r.route,e))),Li(r=>!0!==r,!0))}(i,s,t,n):$(a)),re(a=>({...e,guardsResult:a})))})}(this.environmentInjector,o=>this.events.next(o)),Et(o=>{if(i.guardsResult=o.guardsResult,Cr(o.guardsResult))throw Lb(0,o.guardsResult);const a=new ok(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(o.urlAfterRedirects),o.targetSnapshot,!!o.guardsResult);this.events.next(a)}),wi(o=>!!o.guardsResult||(e.restoreHistory(o),this.cancelNavigationTransition(o,"",3),!1)),Np(o=>{if(o.guards.canActivateChecks.length)return $(o).pipe(Et(a=>{const l=new ak(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),ut(a=>{let l=!1;return $(a).pipe(function mL(t,n){return ht(e=>{const{targetSnapshot:i,guards:{canActivateChecks:r}}=e;if(!r.length)return $(e);let s=0;return Xe(r).pipe(Vi(o=>function _L(t,n,e,i){const r=t.routeConfig,s=t._resolve;return void 0!==r?.title&&!nD(r)&&(s[Uo]=r.title),function yL(t,n,e,i){const r=function vL(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}(t);if(0===r.length)return $({});const s={};return Xe(r).pipe(ht(o=>function wL(t,n,e,i){const r=Yo(n)??i,s=Ts(t,r);return Hi(s.resolve?s.resolve(n,e):r.runInContext(()=>s(n,e)))}(t[o],n,e,i).pipe(Li(),Et(a=>{s[o]=a}))),hp(1),function OF(t){return re(()=>t)}(s),Bi(o=>Pp(o)?Vn:$o(o)))}(s,t,n,i).pipe(re(o=>(t._resolvedData=o,t.data=Nb(t,e).resolve,r&&nD(r)&&(t.data[Uo]=r.title),null)))}(o.route,i,t,n)),Et(()=>s++),hp(1),ht(o=>s===r.length?$(e):Vn))})}(e.paramsInheritanceStrategy,this.environmentInjector),Et({next:()=>l=!0,complete:()=>{l||(e.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),Et(a=>{const l=new lk(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),Np(o=>{const a=l=>{const c=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&c.push(this.configLoader.loadComponent(l.routeConfig).pipe(Et(u=>{l.component=u}),re(()=>{})));for(const u of l.children)c.push(...a(u));return c};return rb(a(o.targetSnapshot.root)).pipe(oc(),yr(1))}),Np(()=>this.afterPreactivation()),re(o=>{const a=function wk(t,n,e){const i=Qo(t,n._root,e?e._root:void 0);return new xb(i,n)}(e.routeReuseStrategy,o.targetSnapshot,o.currentRouterState);return i={...o,targetRouterState:a}}),Et(o=>{e.currentUrlTree=o.urlAfterRedirects,e.rawUrlTree=e.urlHandlingStrategy.merge(o.urlAfterRedirects,o.rawUrl),e.routerState=o.targetRouterState,"deferred"===e.urlUpdateStrategy&&(o.extras.skipLocationChange||e.setBrowserUrl(e.rawUrlTree,o),e.browserUrlTree=o.urlAfterRedirects)}),((t,n,e)=>re(i=>(new Ok(n,i.targetRouterState,i.currentRouterState,e).activate(t),i)))(this.rootContexts,e.routeReuseStrategy,o=>this.events.next(o)),Et({next:o=>{r=!0,this.lastSuccessfulNavigation=this.currentNavigation,e.navigated=!0,this.events.next(new br(o.id,this.urlSerializer.serialize(o.extractedUrl),this.urlSerializer.serialize(e.currentUrlTree))),e.titleStrategy?.updateTitle(o.targetRouterState.snapshot),o.resolve(!0)},complete:()=>{r=!0}}),pp(()=>{r||s||this.cancelNavigationTransition(i,"",1),this.currentNavigation?.id===i.id&&(this.currentNavigation=null)}),Bi(o=>{if(s=!0,Hb(o)){Bb(o)||(e.navigated=!0,e.restoreHistory(i,!0));const a=new fc(i.id,this.urlSerializer.serialize(i.extractedUrl),o.message,o.cancellationCode);if(this.events.next(a),Bb(o)){const l=e.urlHandlingStrategy.merge(o.url,e.rawUrlTree),c={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===e.urlUpdateStrategy||sD(i.source)};e.scheduleNavigation(l,Ko,null,c,{resolve:i.resolve,reject:i.reject,promise:i.promise})}else i.resolve(!1)}else{e.restoreHistory(i,!0);const a=new Ab(i.id,this.urlSerializer.serialize(i.extractedUrl),o,i.targetSnapshot??void 0);this.events.next(a);try{i.resolve(e.errorHandler(o))}catch(l){i.reject(l)}}return Vn}))}))}cancelNavigationTransition(e,i,r){const s=new fc(e.id,this.urlSerializer.serialize(e.extractedUrl),i,r);this.events.next(s),e.resolve(!1)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function sD(t){return t!==Ko}let oD=(()=>{class t{buildTitle(e){let i,r=e.root;for(;void 0!==r;)i=this.getResolvedTitleForRoute(r)??i,r=r.children.find(s=>s.outlet===ee);return i}getResolvedTitleForRoute(e){return e.data[Uo]}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:function(){return ce(DL)},providedIn:"root"}),t})(),DL=(()=>{class t extends oD{constructor(e){super(),this.title=e}updateTitle(e){const i=this.buildTitle(e);void 0!==i&&this.title.setTitle(i)}}return t.\u0275fac=function(e){return new(e||t)(x(ZC))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),SL=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:function(){return ce(IL)},providedIn:"root"}),t})();class EL{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}}let IL=(()=>{class t extends EL{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const Ec=new H("",{providedIn:"root",factory:()=>({})});let ML=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:function(){return ce(AL)},providedIn:"root"}),t})(),AL=(()=>{class t{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function OL(t){throw t}function PL(t,n,e){return n.parse("/")}const xL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},RL={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Lt=(()=>{class t{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=ce(ux),this.isNgZoneEnabled=!1,this.options=ce(Ec,{optional:!0})||{},this.errorHandler=this.options.errorHandler||OL,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||PL,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=ce(ML),this.routeReuseStrategy=ce(SL),this.urlCreationStrategy=ce(_k),this.titleStrategy=ce(oD),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=hb(ce(As,{optional:!0})??[]),this.navigationTransitions=ce(Sc),this.urlSerializer=ce(zo),this.location=ce(Hh),this.isNgZoneEnabled=ce(Te)instanceof Te&&Te.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new vr,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=Rb(this.currentUrlTree,null),this.navigationTransitions.setupNavigations(this).subscribe(e=>{this.lastSuccessfulId=e.id,this.currentPageId=e.targetPageId},e=>{this.console.warn(`Unhandled Navigation Error: ${e}`)})}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const e=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Ko,e)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(e=>{const i="popstate"===e.type?"popstate":"hashchange";"popstate"===i&&setTimeout(()=>{this.navigateToSyncWithBrowser(e.url,i,e.state)},0)}))}navigateToSyncWithBrowser(e,i,r){const s={replaceUrl:!0},o=r?.navigationId?r:null;if(r){const l={...r};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(s.state=l)}const a=this.parseUrl(e);this.scheduleNavigation(a,i,o,s)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}resetConfig(e){this.config=e.map(Op),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.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=l?this.currentUrlTree.fragment:o;let u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...s};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=s||null}return null!==u&&(u=this.removeEmptyProps(u)),this.urlCreationStrategy.createUrlTree(r,this.routerState,this.currentUrlTree,e,u,c??null)}navigateByUrl(e,i={skipLocationChange:!1}){const r=Cr(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(r,this.rawUrlTree);return this.scheduleNavigation(s,Ko,null,i)}navigate(e,i={skipLocationChange:!1}){return function NL(t){for(let n=0;n<t.length;n++){if(null==t[n])throw new I(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?{...xL}:!1===i?{...RL}:i,Cr(e))return gb(this.currentUrlTree,e,r);const s=this.parseUrl(e);return gb(this.currentUrlTree,s,r)}removeEmptyProps(e){return Object.keys(e).reduce((i,r)=>{const s=e[r];return null!=s&&(i[r]=s),i},{})}scheduleNavigation(e,i,r,s,o){if(this.disposed)return Promise.resolve(!1);let a,l,c,u;return o?(a=o.resolve,l=o.reject,c=o.promise):c=new Promise((d,h)=>{a=d,l=h}),u="computed"===this.canceledNavigationResolution?r&&r.\u0275routerPageId?r.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?this.browserPageId??0:(this.browserPageId??0)+1:0,this.navigationTransitions.handleNavigationRequest({targetPageId:u,source:i,restoredState:r,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:s,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(d=>Promise.reject(d))}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))}generateNgRouterState(e,i){return"computed"===this.canceledNavigationResolution?{navigationId:e,\u0275routerPageId:i}:{navigationId:e}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),Os=(()=>{class t{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 bn;const l=o.nativeElement.tagName;this.isAnchorElement="A"===l||"AREA"===l,this.isAnchorElement?this.subscription=e.events.subscribe(c=>{c instanceof br&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(e){this._preserveFragment=Cs(e)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(e){this._skipLocationChange=Cs(e)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(e){this._replaceUrl=Cs(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 h_(t,n,e){return function D1(t,n){return"src"===n&&("embed"===t||"frame"===t||"iframe"===t||"media"===t||"script"===t)||"href"===n&&("base"===t||"link"===t)?yd:dn}(n,e)(t)}(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 t.\u0275fac=function(e){return new(e||t)(D(Lt),D(ei),function nl(t){return function jI(t,n){if("class"===n)return t.classes;if("style"===n)return t.styles;const e=t.attrs;if(e){const i=e.length;let r=0;for(;r<i;){const s=e[r];if(im(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof e[r];)r++;else{if(s===n)return e[r+1];r+=2}}}return null}(gt(),t)}("tabindex"),D(Yt),D($e),D(_r))},t.\u0275dir=j({type:t,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(e,i){1&e&&F("click",function(s){return i.onClick(s.button,s.ctrlKey,s.shiftKey,s.altKey,s.metaKey)}),2&e&&Be("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:[pt]}),t})();class lD{}let LL=(()=>{class t{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(wi(e=>e instanceof br),Vi(()=>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=Rl(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 Xe(r).pipe(kr())}preloadConfig(e,i){return this.preloadingStrategy.preload(i,()=>{let r;r=i.loadChildren&&void 0===i.canLoad?this.loader.loadChildren(e,i):$(null);const s=r.pipe(ht(o=>null===o?$(void 0):(i._loadedRoutes=o.routes,i._loadedInjector=o.injector,this.processRoutes(o.injector??e,o.routes))));return i.loadComponent&&!i._loadedComponent?Xe([s,this.loader.loadComponent(i)]).pipe(kr()):s})}}return t.\u0275fac=function(e){return new(e||t)(x(Lt),x(Ow),x(jn),x(lD),x(Fp))},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();const kp=new H("");let cD=(()=>{class t{constructor(e,i,r,s,o={}){this.urlSerializer=e,this.transitions=i,this.viewportScroller=r,this.zone=s,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof wp?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof br&&(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Ob&&(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.transitions.events.next(new Ob(e,"popstate"===this.lastSource?this.store[this.restoredId]:null,i))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return t.\u0275fac=function(e){!function U_(){throw new Error("invalid")}()},t.\u0275prov=k({token:t,factory:t.\u0275fac}),t})();function Dr(t,n){return{\u0275kind:t,\u0275providers:n}}function dD(){const t=ce(hn);return n=>{const e=t.get(Ro);if(n!==e.components[0])return;const i=t.get(Lt),r=t.get(hD);1===t.get(Vp)&&i.initialNavigation(),t.get(pD,null,K.Optional)?.setUpPreloading(),t.get(kp,null,K.Optional)?.init(),i.resetRootComponentType(e.componentTypes[0]),r.closed||(r.next(),r.unsubscribe())}}const hD=new H("",{factory:()=>new bn}),Vp=new H("",{providedIn:"root",factory:()=>1});const pD=new H("");function UL(t){return Dr(0,[{provide:pD,useExisting:LL},{provide:lD,useExisting:t}])}const fD=new H("ROUTER_FORROOT_GUARD"),jL=[Hh,{provide:zo,useClass:fp},Lt,Zo,{provide:ei,useFactory:function uD(t){return t.routerState.root},deps:[Lt]},Fp,[]];function zL(){return new Lw("Router",Lt)}let gD=(()=>{class t{constructor(e){}static forRoot(e,i){return{ngModule:t,providers:[jL,[],{provide:As,multi:!0,useValue:e},{provide:fD,useFactory:KL,deps:[[Lt,new so,new oo]]},{provide:Ec,useValue:i||{}},i?.useHash?{provide:_r,useClass:Yx}:{provide:_r,useClass:oC},{provide:kp,useFactory:()=>{const t=ce(dN),n=ce(Te),e=ce(Ec),i=ce(Sc),r=ce(zo);return e.scrollOffset&&t.setOffset(e.scrollOffset),new cD(r,i,t,n,e)}},i?.preloadingStrategy?UL(i.preloadingStrategy).\u0275providers:[],{provide:Lw,multi:!0,useFactory:zL},i?.initialNavigation?QL(i):[],[{provide:mD,useFactory:dD},{provide:Mw,multi:!0,useExisting:mD}]]}}static forChild(e){return{ngModule:t,providers:[{provide:As,multi:!0,useValue:e}]}}}return t.\u0275fac=function(e){return new(e||t)(x(fD,8))},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({imports:[Mp]}),t})();function KL(t){return"guarded"}function QL(t){return["disabled"===t.initialNavigation?Dr(3,[{provide:Ll,multi:!0,useFactory:()=>{const n=ce(Lt);return()=>{n.setUpLocationChangeListener()}}},{provide:Vp,useValue:2}]).\u0275providers:[],"enabledBlocking"===t.initialNavigation?Dr(2,[{provide:Vp,useValue:0},{provide:Ll,multi:!0,deps:[hn],useFactory:n=>{const e=n.get(Qx,Promise.resolve());return()=>e.then(()=>new Promise(r=>{const s=n.get(Lt),o=n.get(hD);(function i(r){n.get(Lt).events.pipe(wi(o=>o instanceof br||o instanceof fc||o instanceof Ab),re(o=>o instanceof br||o instanceof fc&&(0===o.code||1===o.code)&&null),wi(o=>null!==o),yr(1)).subscribe(()=>{r()})})(()=>{r(!0)}),n.get(Sc).afterPreactivation=()=>(r(!0),o.closed?$(void 0):o),s.initialNavigation()}))}}]).\u0275providers:[]]}const mD=new H("");class Ic{}class Bp{}class bi{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.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(n).forEach(e=>{let i=n[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(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof bi?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){const e=new bi;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof bi?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){const e=n.name.toLowerCase();switch(n.op){case"a":case"s":let i=n.value;if("string"==typeof i&&(i=[i]),0===i.length)return;this.maybeSetNormalizedName(n.name,e);const r=("a"===n.op?this.headers.get(e):void 0)||[];r.push(...i),this.headers.set(e,r);break;case"d":const s=n.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(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}}class YL{encodeKey(n){return _D(n)}encodeValue(n){return _D(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const JL=/%(\d[a-f0-9])/gi,eV={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function _D(t){return encodeURIComponent(t).replace(JL,(n,e)=>eV[e]??n)}function Tc(t){return`${t}`}class $i{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new YL,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function XL(t,n){const e=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(r=>{const s=r.indexOf("="),[o,a]=-1==s?[n.decodeKey(r),""]:[n.decodeKey(r.slice(0,s)),n.decodeValue(r.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{const i=n.fromObject[e],r=Array.isArray(i)?i.map(Tc):[Tc(i)];this.map.set(e,r)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){const e=[];return Object.keys(n).forEach(i=>{const r=n[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(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const e=this.encoder.encodeKey(n);return this.map.get(n).map(i=>e+"="+this.encoder.encodeValue(i)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const e=new $i({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const e=("a"===n.op?this.map.get(n.param):void 0)||[];e.push(Tc(n.value)),this.map.set(n.param,e);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let i=this.map.get(n.param)||[];const r=i.indexOf(Tc(n.value));-1!==r&&i.splice(r,1),i.length>0?this.map.set(n.param,i):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class tV{constructor(){this.map=new Map}set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function yD(t){return typeof ArrayBuffer<"u"&&t instanceof ArrayBuffer}function vD(t){return typeof Blob<"u"&&t instanceof Blob}function wD(t){return typeof FormData<"u"&&t instanceof FormData}class ia{constructor(n,e,i,r){let s;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function nV(t){switch(t){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 bi),this.context||(this.context=new tV),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 $i,this.urlWithParams=e}serializeBody(){return null===this.body?null:yD(this.body)||vD(this.body)||wD(this.body)||function iV(t){return typeof URLSearchParams<"u"&&t instanceof URLSearchParams}(this.body)||"string"==typeof this.body?this.body:this.body instanceof $i?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||wD(this.body)?null:vD(this.body)?this.body.type||null:yD(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof $i?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||"boolean"==typeof this.body?"application/json":null}clone(n={}){const e=n.method||this.method,i=n.url||this.url,r=n.responseType||this.responseType,s=void 0!==n.body?n.body:this.body,o=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,a=void 0!==n.reportProgress?n.reportProgress:this.reportProgress;let l=n.headers||this.headers,c=n.params||this.params;const u=n.context??this.context;return void 0!==n.setHeaders&&(l=Object.keys(n.setHeaders).reduce((d,h)=>d.set(h,n.setHeaders[h]),l)),n.setParams&&(c=Object.keys(n.setParams).reduce((d,h)=>d.set(h,n.setParams[h]),c)),new ia(e,i,s,{params:c,headers:l,context:u,reportProgress:a,responseType:r,withCredentials:o})}}var nt=(()=>((nt=nt||{})[nt.Sent=0]="Sent",nt[nt.UploadProgress=1]="UploadProgress",nt[nt.ResponseHeader=2]="ResponseHeader",nt[nt.DownloadProgress=3]="DownloadProgress",nt[nt.Response=4]="Response",nt[nt.User=5]="User",nt))();class Hp{constructor(n,e=200,i="OK"){this.headers=n.headers||new bi,this.status=void 0!==n.status?n.status:e,this.statusText=n.statusText||i,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class $p extends Hp{constructor(n={}){super(n),this.type=nt.ResponseHeader}clone(n={}){return new $p({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Mc extends Hp{constructor(n={}){super(n),this.type=nt.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new Mc({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class CD extends Hp{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Up(t,n){return{body:n,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let jp=(()=>{class t{constructor(e){this.handler=e}request(e,i,r={}){let s;if(e instanceof ia)s=e;else{let l,c;l=r.headers instanceof bi?r.headers:new bi(r.headers),r.params&&(c=r.params instanceof $i?r.params:new $i({fromObject:r.params})),s=new ia(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=$(s).pipe(Vi(l=>this.handler.handle(l)));if(e instanceof ia||"events"===r.observe)return o;const a=o.pipe(wi(l=>l instanceof Mc));switch(r.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return a.pipe(re(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(re(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(re(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(re(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 $i).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,Up(r,i))}post(e,i,r={}){return this.request("POST",e,Up(r,i))}put(e,i,r={}){return this.request("PUT",e,Up(r,i))}}return t.\u0275fac=function(e){return new(e||t)(x(Ic))},t.\u0275prov=k({token:t,factory:t.\u0275fac}),t})();function bD(t,n){return n(t)}function rV(t,n){return(e,i)=>n.intercept(e,{handle:r=>t(r,i)})}const oV=new H("HTTP_INTERCEPTORS"),ra=new H("HTTP_INTERCEPTOR_FNS");function aV(){let t=null;return(n,e)=>(null===t&&(t=(ce(oV,{optional:!0})??[]).reduceRight(rV,bD)),t(n,e))}let DD=(()=>{class t extends Ic{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(ra)));this.chain=i.reduceRight((r,s)=>function sV(t,n,e){return(i,r)=>e.runInContext(()=>n(i,s=>t(s,r)))}(r,s,this.injector),bD)}return this.chain(e,i=>this.backend.handle(i))}}return t.\u0275fac=function(e){return new(e||t)(x(Bp),x(jn))},t.\u0275prov=k({token:t,factory:t.\u0275fac}),t})();const dV=/^\)\]\}',?\n/;let ED=(()=>{class t{constructor(e){this.xhrFactory=e}handle(e){if("JSONP"===e.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new We(i=>{const r=this.xhrFactory.build();if(r.open(e.method,e.urlWithParams),e.withCredentials&&(r.withCredentials=!0),e.headers.forEach((p,f)=>r.setRequestHeader(p,f.join(","))),e.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!e.headers.has("Content-Type")){const p=e.detectContentTypeHeader();null!==p&&r.setRequestHeader("Content-Type",p)}if(e.responseType){const p=e.responseType.toLowerCase();r.responseType="json"!==p?p:"text"}const s=e.serializeBody();let o=null;const a=()=>{if(null!==o)return o;const p=r.statusText||"OK",f=new bi(r.getAllResponseHeaders()),_=function hV(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||e.url;return o=new $p({headers:f,status:r.status,statusText:p,url:_}),o},l=()=>{let{headers:p,status:f,statusText:_,url:w}=a(),b=null;204!==f&&(b=typeof r.response>"u"?r.responseText:r.response),0===f&&(f=b?200:0);let T=f>=200&&f<300;if("json"===e.responseType&&"string"==typeof b){const E=b;b=b.replace(dV,"");try{b=""!==b?JSON.parse(b):null}catch(O){b=E,T&&(T=!1,b={error:O,text:b})}}T?(i.next(new Mc({body:b,headers:p,status:f,statusText:_,url:w||void 0})),i.complete()):i.error(new CD({error:b,headers:p,status:f,statusText:_,url:w||void 0}))},c=p=>{const{url:f}=a(),_=new CD({error:p,status:r.status||0,statusText:r.statusText||"Unknown Error",url:f||void 0});i.error(_)};let u=!1;const d=p=>{u||(i.next(a()),u=!0);let f={type:nt.DownloadProgress,loaded:p.loaded};p.lengthComputable&&(f.total=p.total),"text"===e.responseType&&r.responseText&&(f.partialText=r.responseText),i.next(f)},h=p=>{let f={type:nt.UploadProgress,loaded:p.loaded};p.lengthComputable&&(f.total=p.total),i.next(f)};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:nt.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 t.\u0275fac=function(e){return new(e||t)(x(MC))},t.\u0275prov=k({token:t,factory:t.\u0275fac}),t})();const zp=new H("XSRF_ENABLED"),ID="XSRF-TOKEN",TD=new H("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>ID}),MD="X-XSRF-TOKEN",AD=new H("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>MD});class OD{}let pV=(()=>{class t{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=mC(e,this.cookieName),this.lastCookieString=e),this.lastToken}}return t.\u0275fac=function(e){return new(e||t)(x(Qe),x(Sh),x(TD))},t.\u0275prov=k({token:t,factory:t.\u0275fac}),t})();function fV(t,n){const e=t.url.toLowerCase();if(!ce(zp)||"GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n(t);const i=ce(OD).getToken(),r=ce(AD);return null!=i&&!t.headers.has(r)&&(t=t.clone({headers:t.headers.set(r,i)})),n(t)}var Ye=(()=>((Ye=Ye||{})[Ye.Interceptors=0]="Interceptors",Ye[Ye.LegacyInterceptors=1]="LegacyInterceptors",Ye[Ye.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Ye[Ye.NoXsrfProtection=3]="NoXsrfProtection",Ye[Ye.JsonpSupport=4]="JsonpSupport",Ye[Ye.RequestsMadeViaParent=5]="RequestsMadeViaParent",Ye))();function xs(t,n){return{\u0275kind:t,\u0275providers:n}}function gV(...t){const n=[jp,ED,DD,{provide:Ic,useExisting:DD},{provide:Bp,useExisting:ED},{provide:ra,useValue:fV,multi:!0},{provide:zp,useValue:!0},{provide:OD,useClass:pV}];for(const e of t)n.push(...e.\u0275providers);return function S1(t){return{\u0275providers:t}}(n)}const PD=new H("LEGACY_INTERCEPTOR_FN");function _V({cookieName:t,headerName:n}){const e=[];return void 0!==t&&e.push({provide:TD,useValue:t}),void 0!==n&&e.push({provide:AD,useValue:n}),xs(Ye.CustomXsrfConfiguration,e)}let yV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({providers:[gV(xs(Ye.LegacyInterceptors,[{provide:PD,useFactory:aV},{provide:ra,useExisting:PD,multi:!0}]),_V({cookieName:ID,headerName:MD}))]}),t})();class Di{constructor(n){this.http=n,this.baseUrl="https://api.themoviedb.org/3",this.apiKey="2867b7114732fb43f2d0f427bcfb7be9"}getMovies(n="upcoming",e=12){return this.http.get(`${this.baseUrl}/movie/${n}?api_key=${this.apiKey}`).pipe(ut(i=>$(i.results.slice(0,e))))}getMovieVideos(n){return this.http.get(`${this.baseUrl}/movie/${n}/videos?api_key=${this.apiKey}`).pipe(ut(e=>$(e.results)))}searchMovie(n,e){return this.http.get(`${this.baseUrl}${e?"/search/movie":"/movie/popular"}?page=${n}&query=${e}&api_key=${this.apiKey}`)}getMovie(n){return this.http.get(`${this.baseUrl}/movie/${n}?api_key=${this.apiKey}`)}getMovieImages(n){return this.http.get(`${this.baseUrl}/movie/${n}/images?api_key=${this.apiKey}`)}getMovieCredits(n){return this.http.get(`${this.baseUrl}/movie/${n}/credits?api_key=${this.apiKey}`)}getMovieSimilar(n){return this.http.get(`${this.baseUrl}/movie/${n}/similar?api_key=${this.apiKey}`).pipe(ut(e=>$(e.results.slice(0,12))))}getMoviesGenres(){return this.http.get(`${this.baseUrl}/genre/movie/list?api_key=${this.apiKey}`).pipe(ut(n=>$(n.genres)))}getMoviesByGenres(n,e){return this.http.get(`${this.baseUrl}/discover/movie/?with_genres=${n}&page=${e}&api_key=${this.apiKey}`)}}Di.\u0275fac=function(n){return new(n||Di)(x(jp))},Di.\u0275prov=k({token:Di,factory:Di.\u0275fac,providedIn:"root"});class Si{constructor(n){this.http=n,this.baseUrl="https://api.themoviedb.org/3",this.apiKey="2867b7114732fb43f2d0f427bcfb7be9"}getTvShows(n,e=12){return this.http.get(`${this.baseUrl}/tv/${n}?api_key=${this.apiKey}`).pipe(ut(i=>$(i.results.slice(0,e))))}searchTvShow(n,e){return this.http.get(`${this.baseUrl}${e?"/search/tv":"/tv/popular"}?page=${n}&query=${e}&api_key=${this.apiKey}`)}getTvShowsGenre(){return this.http.get(`${this.baseUrl}/genre/tv/list?api_key=${this.apiKey}`).pipe(ut(n=>$(n.genres)))}getTvShowsByGenres(n,e){return this.http.get(`${this.baseUrl}/discover/tv/?with_genres=${n}&page=${e}&api_key=${this.apiKey}`)}getTvShow(n){return this.http.get(`${this.baseUrl}/tv/${n}?api_key=${this.apiKey}`)}getTvShowVideos(n){return this.http.get(`${this.baseUrl}/tv/${n}/videos?api_key=${this.apiKey}`).pipe(ut(e=>$(e.results)))}getTvShowImages(n){return this.http.get(`${this.baseUrl}/tv/${n}/images?api_key=${this.apiKey}`)}getTvShowCredits(n){return this.http.get(`${this.baseUrl}/tv/${n}/credits?api_key=${this.apiKey}`)}getTvShowSimilar(n){return this.http.get(`${this.baseUrl}/tv/${n}/similar?api_key=${this.apiKey}`).pipe(ut(e=>$(e.results.slice(0,12))))}}function vV(t,n){if(1&t&&(y(0,"div",3)(1,"a",4),P(2),v()()),2&t){const e=n.$implicit;m(1),g("routerLink","/movies/genres/"+e.id),m(1),_e(e.name)}}function wV(t,n){if(1&t&&(y(0,"div",3)(1,"a",4),P(2),v()()),2&t){const e=n.$implicit;m(1),g("routerLink","/tvshows/genres/"+e.id),m(1),_e(e.name)}}Si.\u0275fac=function(n){return new(n||Si)(x(jp))},Si.\u0275prov=k({token:Si,factory:Si.\u0275fac,providedIn:"root"});class sa{constructor(n,e){this.moviesService=n,this.tvShowsService=e,this.genresMovie=[],this.genresTvShows=[]}ngOnInit(){this.moviesService.getMoviesGenres().subscribe(n=>{this.genresMovie=n}),this.tvShowsService.getTvShowsGenre().subscribe(n=>{this.genresTvShows=n})}}sa.\u0275fac=function(n){return new(n||sa)(D(Di),D(Si))},sa.\u0275cmp=Ie({type:sa,selectors:[["app-genres"]],decls:9,vars:2,consts:[[1,"container"],[1,"grid"],["class","col-6 md:col-3 lg:col-2",4,"ngFor","ngForOf"],[1,"col-6","md:col-3","lg:col-2"],[1,"genre-link",3,"routerLink"]],template:function(n,e){1&n&&(y(0,"div",0)(1,"h1"),P(2,"Movies Genres"),v(),y(3,"div",1),S(4,vV,3,2,"div",2),v(),y(5,"h1"),P(6,"TV Shows"),v(),y(7,"div",1),S(8,wV,3,2,"div",2),v()()),2&n&&(m(4),g("ngForOf",e.genresMovie),m(4),g("ngForOf",e.genresTvShows))},dependencies:[Jt,Os],styles:[".genre-link[_ngcontent-%COMP%]{display:flex;width:100%;height:50px;background-color:#ffd54f;color:#141414;font-size:1.6rem;justify-content:center;align-items:center}"]});class xD{}class CV{}const Ei="*";function Gp(t,n){return{type:7,name:t,definitions:n,options:{}}}function oa(t,n=null){return{type:4,styles:n,timings:t}}function RD(t,n=null){return{type:2,steps:t,options:n}}function Sr(t){return{type:6,styles:t,offset:null}}function aa(t,n,e=null){return{type:1,expr:t,animation:n,options:e}}function ND(t,n=null){return{type:8,animation:t,options:n}}function FD(t,n=null){return{type:10,animation:t,options:n}}function kD(t){Promise.resolve().then(t)}class la{constructor(n=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=n+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(n=>n()),this._onDoneFns=[])}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){kD(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(n=>n()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(n){this._position=this.totalTime?n*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class LD{constructor(n){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=n;let e=0,i=0,r=0;const s=this.players.length;0==s?kD(()=>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(n=>n()),this._onDoneFns=[])}init(){this.players.forEach(n=>n.init())}onStart(n){this._onStartFns.push(n)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(n=>n()),this._onStartFns=[])}onDone(n){this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(n=>n.play())}pause(){this.players.forEach(n=>n.pause())}restart(){this.players.forEach(n=>n.restart())}finish(){this._onFinish(),this.players.forEach(n=>n.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(n=>n.destroy()),this._onDestroyFns.forEach(n=>n()),this._onDestroyFns=[])}reset(){this.players.forEach(n=>n.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(n){const e=n*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,e/i.totalTime):1;i.setPosition(r)})}getPosition(){const n=this.players.reduce((e,i)=>null===e||i.totalTime>e.totalTime?i:e,null);return null!=n?n.getPosition():0}beforeDestroy(){this.players.forEach(n=>{n.beforeDestroy&&n.beforeDestroy()})}triggerCallback(n){const e="start"==n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}const qp="https://image.tmdb.org/t/p",Ac={small:`${qp}/w185`,medium:`${qp}/w342`,large:`${qp}/original`};function DV(t,n){if(1&t&&(y(0,"div",4)(1,"div",5),G(2,"img",6),v(),y(3,"div",7)(4,"h2",8),P(5),v(),y(6,"div",9)(7,"div",10)(8,"span",11)(9,"span",12),P(10,"star"),v(),y(11,"span",13),P(12),v(),y(13,"span"),P(14,"/10"),v()(),y(15,"span"),P(16),v(),y(17,"span"),P(18),fi(19,"date"),v()()(),y(20,"div",14),P(21),v()()()),2&t){const e=C().$implicit,i=C(2);g("@slideFade",void 0),m(2),g("src",i.imagesSizes.large+e.backdrop_path,dn),m(3),_e(e.title),m(7),_e(e.vote_average),m(4),_e(e.vote_count),m(2),_e(gr(19,7,e.release_date,"yyyy")),m(3),ot(" ",e.overview," ")}}function SV(t,n){if(1&t&&(oe(0),S(1,DV,22,10,"div",3),ae()),2&t){const e=n.index,i=C(2);m(1),g("ngIf",e==i.currentSlideIndex)}}function EV(t,n){if(1&t&&(oe(0),y(1,"div",1),S(2,SV,2,1,"ng-container",2),v(),ae()),2&t){const e=C();m(2),g("ngForOf",e.itemsMovie)}}function IV(t,n){if(1&t&&(y(0,"div",4)(1,"div",5),G(2,"img",6),v(),y(3,"div",7)(4,"h2",8),P(5),v(),y(6,"div",9)(7,"div",10)(8,"span",11)(9,"span",12),P(10,"star"),v(),y(11,"span",13),P(12),v(),y(13,"span"),P(14,"/10"),v()(),y(15,"span"),P(16),v(),y(17,"span"),P(18),fi(19,"date"),v()()(),y(20,"div",14),P(21),v()()()),2&t){const e=C().$implicit,i=C(2);g("@slideFade",void 0),m(2),g("src",i.imagesSizes.large+e.backdrop_path,dn),m(3),_e(e.name),m(7),_e(e.vote_average),m(4),_e(e.vote_count),m(2),_e(gr(19,7,e.first_air_date,"yyyy")),m(3),ot(" ",e.overview," ")}}function TV(t,n){if(1&t&&(oe(0),S(1,IV,22,10,"div",3),ae()),2&t){const e=n.index,i=C(2);m(1),g("ngIf",e==i.currentSlideIndex)}}function MV(t,n){if(1&t&&(oe(0),y(1,"div",1),S(2,TV,2,1,"ng-container",2),v(),ae()),2&t){const e=C();m(2),g("ngForOf",e.itemsTvShows)}}class Er{constructor(){this.itemsMovie=null,this.isBanner=!1,this.items=[],this.itemsTvShows=null,this.currentSlideIndex=0,this.imagesSizes=Ac}ngOnInit(){this.isBanner||setInterval(()=>{this.itemsMovie&&(this.currentSlideIndex=++this.currentSlideIndex%this.itemsMovie.length)},5e3)}}function AV(t,n){if(1&t&&(oe(0),y(1,"a",1)(2,"div",2)(3,"i",3),P(4,"star"),v(),y(5,"span"),P(6),v(),P(7,"/10 "),v(),y(8,"div",4),G(9,"img",5),v(),y(10,"div",6),P(11),v()(),ae()),2&t){const e=C();m(1),g("routerLink","/movie/"+e.itemMovie.id),m(5),_e(e.itemMovie.vote_average),m(3),g("src",e.imagesSizes.medium+e.itemMovie.backdrop_path,dn),m(2),_e(e.itemMovie.title)}}function OV(t,n){if(1&t&&(oe(0),y(1,"a",1)(2,"div",2)(3,"i",3),P(4,"star"),v(),y(5,"span"),P(6),v(),P(7,"/10 "),v(),y(8,"div",4),G(9,"img",5),v(),y(10,"div",6),P(11),v()(),ae()),2&t){const e=C();m(1),g("routerLink","/tvshow/"+e.itemTvShow.id),m(5),_e(e.itemTvShow.vote_average),m(3),g("src",e.imagesSizes.medium+e.itemTvShow.backdrop_path,dn),m(2),_e(e.itemTvShow.name)}}Er.\u0275fac=function(n){return new(n||Er)},Er.\u0275cmp=Ie({type:Er,selectors:[["slider"]],inputs:{itemsMovie:"itemsMovie",isBanner:"isBanner",itemsTvShows:"itemsTvShows"},decls:2,vars:2,consts:[[4,"ngIf"],[1,"slider"],[4,"ngFor","ngForOf"],["class","slide",4,"ngIf"],[1,"slide"],[1,"slide-bg"],["alt","",1,"slide-bg-image",3,"src"],[1,"slide-pane"],[1,"name"],[1,"meta"],[1,"info"],[1,"rating"],[1,"app-icon"],[1,"rating-value"],[1,"desc","mt-6"]],template:function(n,e){1&n&&(S(0,EV,3,1,"ng-container",0),S(1,MV,3,1,"ng-container",0)),2&n&&(g("ngIf",null!=e.itemsMovie),m(1),g("ngIf",null!=e.itemsTvShows))},dependencies:[Jt,Dt,Lo],styles:['.slider[_ngcontent-%COMP%]{display:flex;flex-direction:column;justify-content:space-between;height:35rem;position:relative}.slider[_ngcontent-%COMP%] .slide[_ngcontent-%COMP%]{position:absolute;width:100%;display:flex;height:35rem}.slider[_ngcontent-%COMP%] .slide-bg[_ngcontent-%COMP%]{position:relative;display:flex;flex:1 1 auto}.slider[_ngcontent-%COMP%] .slide-bg[_ngcontent-%COMP%]:after{position:absolute;inset:0;display:block;content:"";background-image:linear-gradient(90deg,rgb(0,0,0) 0%,rgb(0,0,0) 30%,rgba(255,255,255,0) 100%)}.slider[_ngcontent-%COMP%] .slide-bg-image[_ngcontent-%COMP%]{height:100%;width:100%;object-fit:cover}.slider[_ngcontent-%COMP%] .slide-pane[_ngcontent-%COMP%]{position:absolute;width:45%;top:5rem;left:5rem}.slider[_ngcontent-%COMP%] .slide-pane[_ngcontent-%COMP%] .name[_ngcontent-%COMP%]{font-size:2.8rem}.slider[_ngcontent-%COMP%] .slide-pane[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%]{font-size:1.4rem;color:#999}.slider[_ngcontent-%COMP%] .slide-pane[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .info[_ngcontent-%COMP%]{display:flex}.slider[_ngcontent-%COMP%] .slide-pane[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] > span[_ngcontent-%COMP%]:not(:last-child):after{content:"|";margin-right:9px;margin-left:9px}.slider[_ngcontent-%COMP%] .slide-pane[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .rating[_ngcontent-%COMP%]{display:flex;align-items:center}.slider[_ngcontent-%COMP%] .slide-pane[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .rating[_ngcontent-%COMP%] .app-icon[_ngcontent-%COMP%]{margin-right:5px;color:#ff0}.slider[_ngcontent-%COMP%] .slide-pane[_ngcontent-%COMP%] .meta[_ngcontent-%COMP%] .info[_ngcontent-%COMP%] .rating-value[_ngcontent-%COMP%]{color:#fff;font-size:1.4rem}.slider[_ngcontent-%COMP%] .slide-pane[_ngcontent-%COMP%] .desc[_ngcontent-%COMP%]{font-size:1.2rem;line-height:1.6}'],data:{animation:[Gp("slideFade",[function bV(t,n,e){return{type:0,name:t,styles:n,options:e}}("void",Sr({opacity:0})),aa("void <=> *",[oa("1s")])])]}});class Ir{constructor(){this.itemMovie=null,this.itemTvShow=null,this.imagesSizes=Ac}}function PV(t,n){if(1&t&&(y(0,"div",4),G(1,"item",5),v()),2&t){const e=n.$implicit;m(1),g("itemMovie",e)}}function xV(t,n){if(1&t&&(oe(0),y(1,"div",1)(2,"h2"),P(3),v(),y(4,"div",2),S(5,PV,2,1,"div",3),v()(),ae()),2&t){const e=C();m(3),_e(e.titleMovie),m(2),g("ngForOf",e.itemsMovie)}}function RV(t,n){if(1&t&&(y(0,"div",4),G(1,"item",6),v()),2&t){const e=n.$implicit;m(1),g("itemTvShow",e)}}function NV(t,n){if(1&t&&(oe(0),y(1,"div",1)(2,"h2"),P(3),v(),y(4,"div",2),S(5,RV,2,1,"div",3),v()(),ae()),2&t){const e=C();m(3),_e(e.titleTvShows),m(2),g("ngForOf",e.itemsTvShows)}}Ir.\u0275fac=function(n){return new(n||Ir)},Ir.\u0275cmp=Ie({type:Ir,selectors:[["item"]],inputs:{itemMovie:"itemMovie",itemTvShow:"itemTvShow"},decls:2,vars:2,consts:[[4,"ngIf"],[1,"movie-item",3,"routerLink"],[1,"movie-item-rating"],[1,"app-icon"],[1,"movie-item-image"],["alt","",3,"src"],[1,"movie-item-title"]],template:function(n,e){1&n&&(S(0,AV,12,4,"ng-container",0),S(1,OV,12,4,"ng-container",0)),2&n&&(g("ngIf",e.itemMovie),m(1),g("ngIf",e.itemTvShow))},dependencies:[Dt,Os],styles:[".movie-item[_ngcontent-%COMP%]{position:relative;display:block;min-height:325px;border-radius:5px;background-color:#212121;border:1px solid #999}.movie-item-image[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;border-radius:5px;height:275px;object-fit:cover}.movie-item-rating[_ngcontent-%COMP%]{position:absolute;display:flex;align-items:center;top:10px;left:10px;background-color:#212121;border-radius:5px;padding:5px 10px}.movie-item-rating[_ngcontent-%COMP%] .app-icon[_ngcontent-%COMP%]{margin-right:5px;color:#d4af37}.movie-item-title[_ngcontent-%COMP%]{display:flex;align-items:center;font-weight:700;margin:.5rem;height:25px}"]});class Tr{constructor(){this.itemsMovie=[],this.titleMovie="",this.itemsTvShows=[],this.titleTvShows=""}}Tr.\u0275fac=function(n){return new(n||Tr)},Tr.\u0275cmp=Ie({type:Tr,selectors:[["items-banner"]],inputs:{itemsMovie:"itemsMovie",titleMovie:"titleMovie",itemsTvShows:"itemsTvShows",titleTvShows:"titleTvShows"},decls:2,vars:2,consts:[[4,"ngIf"],[1,"container"],[1,"grid"],["class","col-6 md:col-3 lg:col-2",4,"ngFor","ngForOf"],[1,"col-6","md:col-3","lg:col-2"],[3,"itemMovie"],[3,"itemTvShow"]],template:function(n,e){1&n&&(S(0,xV,6,2,"ng-container",0),S(1,NV,6,2,"ng-container",0)),2&n&&(g("ngIf",e.itemsMovie),m(1),g("ngIf",e.itemsTvShows))},dependencies:[Jt,Dt,Ir]});class ca{constructor(n,e){this.moviesService=n,this.tvShowsService=e,this.popularMovies=[],this.upcomingMovies=[],this.topRatedMovies=[],this.popularTvShows=[],this.topRatedTvShows=[]}ngOnInit(){this.moviesService.getMovies("popular").subscribe(n=>{this.popularMovies=n}),this.moviesService.getMovies("top_rated").subscribe(n=>{this.topRatedMovies=n}),this.moviesService.getMovies("upcoming").subscribe(n=>{this.upcomingMovies=n}),this.tvShowsService.getTvShows("popular").subscribe(n=>{this.popularTvShows=n}),this.tvShowsService.getTvShows("top_rated").subscribe(n=>{this.topRatedTvShows=n})}}ca.\u0275fac=function(n){return new(n||ca)(D(Di),D(Si))},ca.\u0275cmp=Ie({type:ca,selectors:[["app-home"]],decls:6,vars:5,consts:[[3,"itemsMovie"],["titleMovie","Upcoming Movies",3,"itemsMovie"],["titleMovie","Top Rated Movies",3,"itemsMovie"],["titleTvShows","Popular TV Shows",3,"itemsTvShows"],["titleTvShows","Top Rated TV Shows",3,"itemsTvShows"]],template:function(n,e){1&n&&G(0,"slider",0)(1,"items-banner",1)(2,"items-banner",2)(3,"items-banner",3)(4,"items-banner",4)(5,"items-banner"),2&n&&(g("itemsMovie",e.popularMovies),m(1),g("itemsMovie",e.upcomingMovies),m(1),g("itemsMovie",e.topRatedMovies),m(1),g("itemsTvShows",e.popularTvShows),m(1),g("itemsTvShows",e.topRatedTvShows))},dependencies:[Er,Tr]});class Me{static equals(n,e,i){return i?this.resolveFieldData(n,i)===this.resolveFieldData(e,i):this.equalsByValue(n,e)}static equalsByValue(n,e){if(n===e)return!0;if(n&&e&&"object"==typeof n&&"object"==typeof e){var s,o,a,i=Array.isArray(n),r=Array.isArray(e);if(i&&r){if((o=n.length)!=e.length)return!1;for(s=o;0!=s--;)if(!this.equalsByValue(n[s],e[s]))return!1;return!0}if(i!=r)return!1;var l=this.isDate(n),c=this.isDate(e);if(l!=c)return!1;if(l&&c)return n.getTime()==e.getTime();var u=n instanceof RegExp,d=e instanceof RegExp;if(u!=d)return!1;if(u&&d)return n.toString()==e.toString();var h=Object.keys(n);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(n[a=h[s]],e[a]))return!1;return!0}return n!=n&&e!=e}static resolveFieldData(n,e){if(n&&e){if(this.isFunction(e))return e(n);if(-1==e.indexOf("."))return n[e];{let i=e.split("."),r=n;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(n){return!!(n&&n.constructor&&n.call&&n.apply)}static reorderArray(n,e,i){n&&e!==i&&(i>=n.length&&(i%=n.length,e%=n.length),n.splice(i,0,n.splice(e,1)[0]))}static insertIntoOrderedArray(n,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,n),s=!0;break}s||i.push(n)}else i.push(n)}static findIndexInList(n,e){let i=-1;if(e)for(let r=0;r<e.length;r++)if(e[r]==n){i=r;break}return i}static contains(n,e){if(null!=n&&e&&e.length)for(let i of e)if(this.equals(n,i))return!0;return!1}static removeAccents(n){return n&&n.search(/[\xC0-\xFF]/g)>-1&&(n=n.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")),n}static isDate(n){return"[object Date]"===Object.prototype.toString.call(n)}static isEmpty(n){return null==n||""===n||Array.isArray(n)&&0===n.length||!this.isDate(n)&&"object"==typeof n&&0===Object.keys(n).length}static isNotEmpty(n){return!this.isEmpty(n)}static compare(n,e,i,r=1){let s=-1;const o=this.isEmpty(n),a=this.isEmpty(e);return s=o&&a?0:o?r:a?-r:"string"==typeof n&&"string"==typeof e?n.localeCompare(e,i,{numeric:!0}):n<e?-1:n>e?1:0,s}static sort(n,e,i=1,r,s=1){return(1===s?i:s)*Me.compare(n,e,r,i)}static merge(n,e){if(null!=n||null!=e)return null!=n&&"object"!=typeof n||null!=e&&"object"!=typeof e?null!=n&&"string"!=typeof n||null!=e&&"string"!=typeof e?e||n:[n||"",e||""].join(" "):{...n||{},...e||{}}}}var VD=0;function BD(){return"pr_id_"+ ++VD}var Ui=function FV(){let t=[];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=t.length>0?t[t.length-1]:{key:s,value:o},l=a.value+(a.key===s?0:o)+1;return t.push({key:s,value:l}),l})(s,a)))},clear:s=>{s&&((s=>{t=t.filter(o=>o.value!==s)})(r(s)),s.style.zIndex="")},getCurrent:()=>t.length>0?t[t.length-1].value:0}}();const HD=["*"];let It=(()=>{class t{}return t.STARTS_WITH="startsWith",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.ENDS_WITH="endsWith",t.EQUALS="equals",t.NOT_EQUALS="notEquals",t.IN="in",t.LESS_THAN="lt",t.LESS_THAN_OR_EQUAL_TO="lte",t.GREATER_THAN="gt",t.GREATER_THAN_OR_EQUAL_TO="gte",t.BETWEEN="between",t.IS="is",t.IS_NOT="isNot",t.BEFORE="before",t.AFTER="after",t.DATE_IS="dateIs",t.DATE_IS_NOT="dateIsNot",t.DATE_BEFORE="dateBefore",t.DATE_AFTER="dateAfter",t})(),kV=(()=>{class t{constructor(){this.filters={startsWith:(e,i,r)=>{if(null==i||""===i.trim())return!0;if(null==e)return!1;let s=Me.removeAccents(i.toString()).toLocaleLowerCase(r);return Me.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=Me.removeAccents(i.toString()).toLocaleLowerCase(r);return-1!==Me.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=Me.removeAccents(i.toString()).toLocaleLowerCase(r);return-1===Me.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=Me.removeAccents(i.toString()).toLocaleLowerCase(r),o=Me.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():Me.removeAccents(e.toString()).toLocaleLowerCase(r)==Me.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():Me.removeAccents(e.toString()).toLocaleLowerCase(r)==Me.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(Me.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=Me.resolveFieldData(l,c);if(this.filters[s](u,r,o)){a.push(l);break}}return a}register(e,i){this.filters[e]=i}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),LV=(()=>{class t{constructor(){this.clickSource=new bn,this.clickObservable=this.clickSource.asObservable()}add(e){e&&this.clickSource.next(e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),ua=(()=>{class t{constructor(){this.ripple=!1,this.overlayOptions={},this.filterMatchModeOptions={text:[It.STARTS_WITH,It.CONTAINS,It.NOT_CONTAINS,It.ENDS_WITH,It.EQUALS,It.NOT_EQUALS],numeric:[It.EQUALS,It.NOT_EQUALS,It.LESS_THAN,It.LESS_THAN_OR_EQUAL_TO,It.GREATER_THAN,It.GREATER_THAN_OR_EQUAL_TO],date:[It.DATE_IS,It.DATE_IS_NOT,It.DATE_BEFORE,It.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 bn,this.translationObserver=this.translationSource.asObservable()}getTranslation(e){return this.translation[e]}setTranslation(e){this.translation={...this.translation,...e},this.translationSource.next(this.translation)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),VV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ie({type:t,selectors:[["p-header"]],ngContentSelectors:HD,decls:1,vars:0,template:function(e,i){1&e&&(Ri(),pi(0))},encapsulation:2}),t})(),BV=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ie({type:t,selectors:[["p-footer"]],ngContentSelectors:HD,decls:1,vars:0,template:function(e,i){1&e&&(Ri(),pi(0))},encapsulation:2}),t})(),ti=(()=>{class t{constructor(e){this.template=e}getType(){return this.name}}return t.\u0275fac=function(e){return new(e||t)(D(qn))},t.\u0275dir=j({type:t,selectors:[["","pTemplate",""]],inputs:{type:"type",name:["pTemplate","name"]}}),t})(),Ln=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({imports:[St]}),t})(),$D=(()=>{class t{}return t.STARTS_WITH="startsWith",t.CONTAINS="contains",t.NOT_CONTAINS="notContains",t.ENDS_WITH="endsWith",t.EQUALS="equals",t.NOT_EQUALS="notEquals",t.NO_FILTER="noFilter",t.LT="lt",t.LTE="lte",t.GT="gt",t.GTE="gte",t.IS="is",t.IS_NOT="isNot",t.BEFORE="before",t.AFTER="after",t.CLEAR="clear",t.APPLY="apply",t.MATCH_ALL="matchAll",t.MATCH_ANY="matchAny",t.ADD_RULE="addRule",t.REMOVE_RULE="removeRule",t.ACCEPT="accept",t.REJECT="reject",t.CHOOSE="choose",t.UPLOAD="upload",t.CANCEL="cancel",t.DAY_NAMES="dayNames",t.DAY_NAMES_SHORT="dayNamesShort",t.DAY_NAMES_MIN="dayNamesMin",t.MONTH_NAMES="monthNames",t.MONTH_NAMES_SHORT="monthNamesShort",t.FIRST_DAY_OF_WEEK="firstDayOfWeek",t.TODAY="today",t.WEEK_HEADER="weekHeader",t.WEAK="weak",t.MEDIUM="medium",t.STRONG="strong",t.PASSWORD_PROMPT="passwordPrompt",t.EMPTY_MESSAGE="emptyMessage",t.EMPTY_FILTER_MESSAGE="emptyFilterMessage",t})(),A=(()=>{class t{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=t.getOuterWidth(i)+"px")),"self"===r?this.relativePosition(e,i):this.absolutePosition(e,i))}static relativePosition(e,i){const r=_=>{if(_)return"relative"===getComputedStyle(_).getPropertyValue("position")?_:r(_.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 p,f;a.top+o+s.height>u.height?(p=a.top-h.top-s.height,e.style.transformOrigin="bottom",a.top+p<0&&(p=-1*a.top)):(p=o+a.top-h.top,e.style.transformOrigin="top"),f=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=p+"px",e.style.left=f+"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 p,f;c.top+a+s>h.height?(p=c.top+u-s,e.style.transformOrigin="bottom",p<0&&(p=u)):(p=a+c.top+u,e.style.transformOrigin="top"),f=c.left+o>h.width?Math.max(0,c.left+d+l-o):c.left+d,e.style.top=p+"px",e.style.left=f+"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,p=this.getOuterHeight(i);u<0?e.scrollTop=d+u:u+p>h&&(e.scrollTop=d+u-h+p)}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=t.find(e,'button:not([tabindex = "-1"]):not([disabled]):not([style*="display:none"]):not([hidden]),\n [href]: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)(s.offsetWidth||s.offsetHeight||s.getClientRects().length)&&r.push(s);return r}static getNextFocusableElement(e,i=!1){const r=t.getFocusableElements(e);let s=0;if(r&&r.length>0){const o=r.indexOf(r[0].ownerDocument.activeElement);i?s=-1==o||0===o?r.length-1:o-1:-1!=o&&o!==r.length-1&&(s=o+1)}return r[s]}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 t.zindex=1e3,t.calculatedScrollbarWidth=null,t.calculatedScrollbarHeight=null,t})();class UD{constructor(n,e=(()=>{})){this.element=n,this.listener=e}bindScrollListener(){this.scrollableParents=A.getScrollableParents(this.element);for(let n=0;n<this.scrollableParents.length;n++)this.scrollableParents[n].addEventListener("scroll",this.listener)}unbindScrollListener(){if(this.scrollableParents)for(let n=0;n<this.scrollableParents.length;n++)this.scrollableParents[n].removeEventListener("scroll",this.listener)}destroy(){this.unbindScrollListener(),this.element=null,this.listener=null,this.scrollableParents=null}}let jD=(()=>{class t{constructor(e,i,r,s,o){this.el=e,this.zone=i,this.config=r,this.renderer=s,this.changeDetector=o,this.escape=!0,this.autoHide=!0,this.fitContent=!0,this._tooltipOptions={tooltipPosition:"right",tooltipEvent:"hover",appendTo:"body",tooltipZIndex:"auto",escape:!0,positionTop:0,positionLeft:0,autoHide:!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.onInputClick.bind(this),this.el.nativeElement.addEventListener("mouseenter",this.mouseEnterListener),this.el.nativeElement.addEventListener("click",this.clickListener),this.el.nativeElement.addEventListener("mouseleave",this.mouseLeaveListener);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.autoHide&&this.setOption({autoHide:e.autoHide.currentValue}),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()))}isAutoHide(){return this.getOption("autoHide")}onMouseEnter(e){!this.container&&!this.showTimeout&&this.activate()}onMouseLeave(e){(this.isAutoHide()||!(A.hasClass(e.toElement,"p-tooltip")||A.hasClass(e.toElement,"p-tooltip-arrow")||A.hasClass(e.toElement,"p-tooltip-text")||A.hasClass(e.relatedTarget,"p-tooltip")))&&this.deactivate()}onFocus(e){this.activate()}onBlur(e){this.deactivate()}onInputClick(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"),this.isAutoHide()||this.bindContainerMouseleaveListener()}bindContainerMouseleaveListener(){this.containerMouseleaveListener||(this.containerMouseleaveListener=this.renderer.listen(this.container??this.container.nativeElement,"mouseleave",i=>{this.deactivate()}))}unbindContainerMouseleaveListener(){this.containerMouseleaveListener&&(this.bindContainerMouseleaveListener(),this.containerMouseleaveListener=null)}show(){!this.getOption("tooltipLabel")||this.getOption("disabled")||(this.create(),this.align(),A.fadeIn(this.container,250),"auto"===this.getOption("tooltipZIndex")?Ui.set("tooltip",this.container,this.config.zIndex.tooltip):this.container.style.zIndex=this.getOption("tooltipZIndex"),this.bindDocumentResizeListener(),this.bindScrollListener())}hide(){"auto"===this.getOption("tooltipZIndex")&&Ui.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 UD(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.unbindContainerMouseleaveListener(),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&&Ui.clear(this.container),this.remove(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null)}}return t.\u0275fac=function(e){return new(e||t)(D($e),D(Te),D(ua),D(Yt),D(Ut))},t.\u0275dir=j({type:t,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",autoHide:"autoHide",fitContent:"fitContent",text:["pTooltip","text"],disabled:["tooltipDisabled","disabled"],tooltipOptions:"tooltipOptions"},features:[pt]}),t})(),zD=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({imports:[St]}),t})(),Oc=(()=>{class t{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(){const e=this.el.nativeElement.children;for(let i=0;i<e.length;i++)if("string"==typeof e[i].className&&-1!==e[i].className.indexOf("p-ink"))return e[i];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 t.\u0275fac=function(e){return new(e||t)(D($e),D(Te),D(ua,8))},t.\u0275dir=j({type:t,selectors:[["","pRipple",""]],hostAttrs:[1,"p-ripple","p-element"]}),t})(),da=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({imports:[St]}),t})();function HV(t,n){1&t&&fe(0)}function $V(t,n){if(1&t&&(oe(0),S(1,HV,1,0,"ng-container",3),ae()),2&t){const e=C(2);m(1),g("ngTemplateOutlet",e.contentTemplate)}}function UV(t,n){if(1&t&&(y(0,"div",1),pi(1),S(2,$V,2,1,"ng-container",2),v()),2&t){const e=C();g("hidden",!e.selected),Be("id",e.id)("aria-hidden",!e.selected)("aria-labelledby",e.id+"-label"),m(2),g("ngIf",e.contentTemplate&&(e.cache?e.loaded:e.selected))}}const GD=["*"],jV=["content"],zV=["navbar"],GV=["prevBtn"],WV=["nextBtn"],qV=["inkbar"];function KV(t,n){if(1&t){const e=be();y(0,"button",12,13),F("click",function(){return L(e),V(C().navBackward())}),G(2,"span",14),v()}}function QV(t,n){1&t&&G(0,"span",24),2&t&&g("ngClass",C(3).$implicit.leftIcon)}function ZV(t,n){1&t&&G(0,"span",25),2&t&&g("ngClass",C(3).$implicit.rightIcon)}function YV(t,n){if(1&t&&(oe(0),S(1,QV,1,1,"span",21),y(2,"span",22),P(3),v(),S(4,ZV,1,1,"span",23),ae()),2&t){const e=C(2).$implicit;m(1),g("ngIf",e.leftIcon),m(2),_e(e.header),m(1),g("ngIf",e.rightIcon)}}function XV(t,n){1&t&&fe(0)}function JV(t,n){if(1&t){const e=be();y(0,"span",26),F("click",function(r){L(e);const s=C(2).$implicit;return V(C().close(r,s))}),v()}}const e2=function(t,n){return{"p-highlight":t,"p-disabled":n}};function t2(t,n){if(1&t){const e=be();y(0,"li",16)(1,"a",17),F("click",function(r){L(e);const s=C().$implicit;return V(C().open(r,s))})("keydown.enter",function(r){L(e);const s=C().$implicit;return V(C().open(r,s))}),S(2,YV,5,3,"ng-container",18),S(3,XV,1,0,"ng-container",19),S(4,JV,1,0,"span",20),v()()}if(2&t){const e=C().$implicit;Ke(e.headerStyleClass),g("ngClass",Ft(16,e2,e.selected,e.disabled))("ngStyle",e.headerStyle),m(1),g("pTooltip",e.tooltip)("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPositionStyle)("tooltipStyleClass",e.tooltipStyleClass),Be("id",e.id+"-label")("aria-selected",e.selected)("aria-controls",e.id)("aria-selected",e.selected)("tabindex",e.disabled?null:"0"),m(1),g("ngIf",!e.headerTemplate),m(1),g("ngTemplateOutlet",e.headerTemplate),m(1),g("ngIf",e.closable)}}function n2(t,n){1&t&&S(0,t2,5,19,"li",15),2&t&&g("ngIf",!n.$implicit.closed)}function r2(t,n){if(1&t){const e=be();y(0,"button",27,28),F("click",function(){return L(e),V(C().navForward())}),G(2,"span",29),v()}}const s2=function(t){return{"p-tabview p-component":!0,"p-tabview-scrollable":t}};let o2=0,Kp=(()=>{class t{constructor(e,i,r){this.viewContainer=i,this.cd=r,this.cache=!0,this.tooltipPosition="top",this.tooltipPositionStyle="absolute",this.id="p-tabpanel-"+o2++,this.tabView=e}ngAfterContentInit(){this.templates.forEach(e=>{"header"===e.getType()?this.headerTemplate=e.template:this.contentTemplate=e.template})}get selected(){return this._selected}set selected(e){this._selected=e,this.loaded||this.cd.detectChanges(),e&&(this.loaded=!0)}get disabled(){return this._disabled}set disabled(e){this._disabled=e,this.tabView.cd.markForCheck()}get header(){return this._header}set header(e){this._header=e,Promise.resolve().then(()=>{this.tabView.updateInkBar(),this.tabView.cd.markForCheck()})}get leftIcon(){return this._leftIcon}set leftIcon(e){this._leftIcon=e,this.tabView.cd.markForCheck()}get rightIcon(){return this._rightIcon}set rightIcon(e){this._rightIcon=e,this.tabView.cd.markForCheck()}ngOnDestroy(){this.view=null}}return t.\u0275fac=function(e){return new(e||t)(D(ye(()=>Qp)),D(gn),D(Ut))},t.\u0275cmp=Ie({type:t,selectors:[["p-tabPanel"]],contentQueries:function(e,i,r){if(1&e&&xn(r,ti,4),2&e){let s;De(s=Se())&&(i.templates=s)}},hostAttrs:[1,"p-element"],inputs:{closable:"closable",headerStyle:"headerStyle",headerStyleClass:"headerStyleClass",cache:"cache",tooltip:"tooltip",tooltipPosition:"tooltipPosition",tooltipPositionStyle:"tooltipPositionStyle",tooltipStyleClass:"tooltipStyleClass",selected:"selected",disabled:"disabled",header:"header",leftIcon:"leftIcon",rightIcon:"rightIcon"},ngContentSelectors:GD,decls:1,vars:1,consts:[["class","p-tabview-panel","role","tabpanel",3,"hidden",4,"ngIf"],["role","tabpanel",1,"p-tabview-panel",3,"hidden"],[4,"ngIf"],[4,"ngTemplateOutlet"]],template:function(e,i){1&e&&(Ri(),S(0,UV,3,5,"div",0)),2&e&&g("ngIf",!i.closed)},dependencies:[Dt,Yn],encapsulation:2}),t})(),Qp=(()=>{class t{constructor(e,i){this.el=e,this.cd=i,this.orientation="top",this.onChange=new U,this.onClose=new U,this.activeIndexChange=new U,this.backwardIsDisabled=!0,this.forwardIsDisabled=!1}ngAfterContentInit(){this.initTabs(),this.tabChangesSubscription=this.tabPanels.changes.subscribe(e=>{this.initTabs()})}ngAfterViewChecked(){this.tabChanged&&(this.updateInkBar(),this.tabChanged=!1)}ngOnDestroy(){this.tabChangesSubscription&&this.tabChangesSubscription.unsubscribe()}initTabs(){this.tabs=this.tabPanels.toArray(),!this.findSelectedTab()&&this.tabs.length&&(null!=this.activeIndex&&this.tabs.length>this.activeIndex?this.tabs[this.activeIndex].selected=!0:this.tabs[0].selected=!0,this.tabChanged=!0),this.cd.markForCheck()}open(e,i){if(i.disabled)e&&e.preventDefault();else{if(!i.selected){let r=this.findSelectedTab();r&&(r.selected=!1),this.tabChanged=!0,i.selected=!0;let s=this.findTabIndex(i);this.preventActiveIndexPropagation=!0,this.activeIndexChange.emit(s),this.onChange.emit({originalEvent:e,index:s}),this.updateScrollBar(s)}e&&e.preventDefault()}}close(e,i){this.controlClose?this.onClose.emit({originalEvent:e,index:this.findTabIndex(i),close:()=>{this.closeTab(i)}}):(this.closeTab(i),this.onClose.emit({originalEvent:e,index:this.findTabIndex(i)})),e.stopPropagation()}closeTab(e){if(!e.disabled){if(e.selected){this.tabChanged=!0,e.selected=!1;for(let i=0;i<this.tabs.length;i++){let r=this.tabs[i];if(!r.closed&&!e.disabled){r.selected=!0;break}}}e.closed=!0}}findSelectedTab(){for(let e=0;e<this.tabs.length;e++)if(this.tabs[e].selected)return this.tabs[e];return null}findTabIndex(e){let i=-1;for(let r=0;r<this.tabs.length;r++)if(this.tabs[r]==e){i=r;break}return i}getBlockableElement(){return this.el.nativeElement.children[0]}get activeIndex(){return this._activeIndex}set activeIndex(e){this._activeIndex=e,this.preventActiveIndexPropagation?this.preventActiveIndexPropagation=!1:this.tabs&&this.tabs.length&&null!=this._activeIndex&&this.tabs.length>this._activeIndex&&(this.findSelectedTab().selected=!1,this.tabs[this._activeIndex].selected=!0,this.tabChanged=!0,this.updateScrollBar(e))}updateInkBar(){if(this.navbar){const e=A.findSingle(this.navbar.nativeElement,"li.p-highlight");if(!e)return;this.inkbar.nativeElement.style.width=A.getWidth(e)+"px",this.inkbar.nativeElement.style.left=A.getOffset(e).left-A.getOffset(this.navbar.nativeElement).left+"px"}}updateScrollBar(e){this.navbar.nativeElement.children[e].scrollIntoView({block:"nearest"})}updateButtonState(){const e=this.content.nativeElement,{scrollLeft:i,scrollWidth:r}=e,s=A.getWidth(e);this.backwardIsDisabled=0===i,this.forwardIsDisabled=parseInt(i)===r-s}onScroll(e){this.scrollable&&this.updateButtonState(),e.preventDefault()}getVisibleButtonWidths(){return[this.prevBtn?.nativeElement,this.nextBtn?.nativeElement].reduce((e,i)=>i?e+A.getWidth(i):e,0)}navBackward(){const e=this.content.nativeElement,i=A.getWidth(e)-this.getVisibleButtonWidths(),r=e.scrollLeft-i;e.scrollLeft=r<=0?0:r}navForward(){const e=this.content.nativeElement,i=A.getWidth(e)-this.getVisibleButtonWidths(),r=e.scrollLeft+i,s=e.scrollWidth-i;e.scrollLeft=r>=s?s:r}}return t.\u0275fac=function(e){return new(e||t)(D($e),D(Ut))},t.\u0275cmp=Ie({type:t,selectors:[["p-tabView"]],contentQueries:function(e,i,r){if(1&e&&xn(r,Kp,4),2&e){let s;De(s=Se())&&(i.tabPanels=s)}},viewQuery:function(e,i){if(1&e&&(Je(jV,5),Je(zV,5),Je(GV,5),Je(WV,5),Je(qV,5)),2&e){let r;De(r=Se())&&(i.content=r.first),De(r=Se())&&(i.navbar=r.first),De(r=Se())&&(i.prevBtn=r.first),De(r=Se())&&(i.nextBtn=r.first),De(r=Se())&&(i.inkbar=r.first)}},hostAttrs:[1,"p-element"],inputs:{orientation:"orientation",style:"style",styleClass:"styleClass",controlClose:"controlClose",scrollable:"scrollable",activeIndex:"activeIndex"},outputs:{onChange:"onChange",onClose:"onClose",activeIndexChange:"activeIndexChange"},ngContentSelectors:GD,decls:13,vars:9,consts:[[3,"ngClass","ngStyle"],[1,"p-tabview-nav-container"],["class","p-tabview-nav-prev p-tabview-nav-btn p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabview-nav-content",3,"scroll"],["content",""],["role","tablist",1,"p-tabview-nav"],["navbar",""],["ngFor","",3,"ngForOf"],[1,"p-tabview-ink-bar"],["inkbar",""],["class","p-tabview-nav-next p-tabview-nav-btn p-link","type","button","pRipple","",3,"click",4,"ngIf"],[1,"p-tabview-panels"],["type","button","pRipple","",1,"p-tabview-nav-prev","p-tabview-nav-btn","p-link",3,"click"],["prevBtn",""],[1,"pi","pi-chevron-left"],["role","presentation",3,"ngClass","ngStyle","class",4,"ngIf"],["role","presentation",3,"ngClass","ngStyle"],["role","tab","pRipple","",1,"p-tabview-nav-link",3,"pTooltip","tooltipPosition","positionStyle","tooltipStyleClass","click","keydown.enter"],[4,"ngIf"],[4,"ngTemplateOutlet"],["class","p-tabview-close pi pi-times",3,"click",4,"ngIf"],["class","p-tabview-left-icon",3,"ngClass",4,"ngIf"],[1,"p-tabview-title"],["class","p-tabview-right-icon",3,"ngClass",4,"ngIf"],[1,"p-tabview-left-icon",3,"ngClass"],[1,"p-tabview-right-icon",3,"ngClass"],[1,"p-tabview-close","pi","pi-times",3,"click"],["type","button","pRipple","",1,"p-tabview-nav-next","p-tabview-nav-btn","p-link",3,"click"],["nextBtn",""],[1,"pi","pi-chevron-right"]],template:function(e,i){1&e&&(Ri(),y(0,"div",0)(1,"div",1),S(2,KV,3,0,"button",2),y(3,"div",3,4),F("scroll",function(s){return i.onScroll(s)}),y(5,"ul",5,6),S(7,n2,1,1,"ng-template",7),G(8,"li",8,9),v()(),S(10,r2,3,0,"button",10),v(),y(11,"div",11),pi(12),v()()),2&e&&(Ke(i.styleClass),g("ngClass",le(7,s2,i.scrollable))("ngStyle",i.style),m(2),g("ngIf",i.scrollable&&!i.backwardIsDisabled),m(5),g("ngForOf",i.tabs),m(3),g("ngIf",i.scrollable&&!i.forwardIsDisabled))},dependencies:[Qn,Jt,Dt,Yn,Zn,jD,Oc],styles:[".p-tabview-nav-container{position:relative}.p-tabview-scrollable .p-tabview-nav-container{overflow:hidden}.p-tabview-nav-content{overflow-x:auto;overflow-y:hidden;scroll-behavior:smooth;scrollbar-width:none;overscroll-behavior:contain auto}.p-tabview-nav{display:flex;margin:0;padding:0;list-style-type:none;flex:1 1 auto}.p-tabview-nav-link{cursor:pointer;-webkit-user-select:none;user-select:none;display:flex;align-items:center;position:relative;text-decoration:none;overflow:hidden}.p-tabview-ink-bar{display:none;z-index:1}.p-tabview-nav-link:focus{z-index:1}.p-tabview-title{line-height:1;white-space:nowrap}.p-tabview-nav-btn{position:absolute;top:0;z-index:2;height:100%;display:flex;align-items:center;justify-content:center}.p-tabview-nav-prev{left:0}.p-tabview-nav-next{right:0}.p-tabview-nav-content::-webkit-scrollbar{display:none}.p-tabview-close{z-index:1}\n"],encapsulation:2,changeDetection:0}),t})(),a2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({imports:[St,Ln,zD,da,Ln]}),t})();const l2=["mask"];function c2(t,n){1&t&&fe(0)}function u2(t,n){if(1&t&&(oe(0),S(1,c2,1,0,"ng-container",7),ae()),2&t){const e=C(2);m(1),g("ngTemplateOutlet",e.indicatorTemplate)}}function d2(t,n){1&t&&G(0,"i",8)}function h2(t,n){if(1&t){const e=be();y(0,"div",4),F("click",function(){return L(e),V(C().onImageClick())}),S(1,u2,2,1,"ng-container",5),S(2,d2,1,0,"ng-template",null,6,gi),v()}if(2&t){const e=An(3),i=C();m(1),g("ngIf",i.indicatorTemplate)("ngIfElse",e)}}const p2=function(t,n){return{showTransitionParams:t,hideTransitionParams:n}},f2=function(t){return{value:"visible",params:t}};function g2(t,n){if(1&t){const e=be();y(0,"div"),F("@animation.start",function(r){return L(e),V(C(2).onAnimationStart(r))})("@animation.done",function(r){return L(e),V(C(2).onAnimationEnd(r))}),y(1,"img",20),F("click",function(){return L(e),V(C(2).onPreviewImageClick())}),v()()}if(2&t){const e=C(2);g("@animation",le(6,f2,Ft(3,p2,e.showTransitionOptions,e.hideTransitionOptions))),m(1),g("ngStyle",e.imagePreviewStyle()),Be("src",e.src,dn)}}function m2(t,n){if(1&t){const e=be();y(0,"div",9,10),F("click",function(){return L(e),V(C().onMaskClick())}),y(2,"div",11),F("click",function(r){return L(e),V(C().handleToolbarClick(r))}),y(3,"button",12),F("click",function(){return L(e),V(C().rotateRight())}),G(4,"i",13),v(),y(5,"button",12),F("click",function(){return L(e),V(C().rotateLeft())}),G(6,"i",14),v(),y(7,"button",15),F("click",function(){return L(e),V(C().zoomOut())}),G(8,"i",16),v(),y(9,"button",15),F("click",function(){return L(e),V(C().zoomIn())}),G(10,"i",17),v(),y(11,"button",12),F("click",function(){return L(e),V(C().closePreview())}),G(12,"i",18),v()(),S(13,g2,2,8,"div",19),v()}if(2&t){const e=C();m(7),g("disabled",e.isZoomOutDisabled),m(2),g("disabled",e.isZoomInDisabled),m(4),g("ngIf",e.previewVisible)}}let WD=(()=>{class t{constructor(e,i){this.config=e,this.cd=i,this.preview=!1,this.showTransitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)",this.hideTransitionOptions="150ms cubic-bezier(0, 0, 0.2, 1)",this.onShow=new U,this.onHide=new U,this.onImageError=new U,this.maskVisible=!1,this.previewVisible=!1,this.rotate=0,this.scale=1,this.previewClick=!1,this.zoomSettings={default:1,step:.1,max:1.5,min:.5}}get isZoomOutDisabled(){return this.scale-this.zoomSettings.step<=this.zoomSettings.min}get isZoomInDisabled(){return this.scale+this.zoomSettings.step>=this.zoomSettings.max}ngAfterContentInit(){this.templates.forEach(e=>{e.getType(),this.indicatorTemplate=e.template})}onImageClick(){this.preview&&(this.maskVisible=!0,this.previewVisible=!0)}onMaskClick(){this.previewClick||this.closePreview(),this.previewClick=!1}onPreviewImageClick(){this.previewClick=!0}rotateRight(){this.rotate+=90,this.previewClick=!0}rotateLeft(){this.rotate-=90,this.previewClick=!0}zoomIn(){this.scale=this.scale+this.zoomSettings.step,this.previewClick=!0}zoomOut(){this.scale=this.scale-this.zoomSettings.step,this.previewClick=!0}onAnimationStart(e){switch(e.toState){case"visible":this.container=e.element,this.wrapper=this.container.parentElement,this.appendContainer(),this.moveOnTop();break;case"void":A.addClass(this.wrapper,"p-component-overlay-leave")}}onAnimationEnd(e){switch(e.toState){case"void":Ui.clear(this.wrapper),this.maskVisible=!1,this.container=null,this.wrapper=null,this.cd.markForCheck(),this.onHide.emit({});break;case"visible":this.onShow.emit({})}}moveOnTop(){Ui.set("modal",this.wrapper,this.config.zIndex.modal)}appendContainer(){this.appendTo&&("body"===this.appendTo?document.body.appendChild(this.wrapper):A.appendChild(this.wrapper,this.appendTo))}imagePreviewStyle(){return{transform:"rotate("+this.rotate+"deg) scale("+this.scale+")"}}containerClass(){return{"p-image p-component":!0,"p-image-preview-container":this.preview}}handleToolbarClick(e){e.stopPropagation()}closePreview(){this.previewVisible=!1,this.rotate=0,this.scale=this.zoomSettings.default}imageError(e){this.onImageError.emit(e)}}return t.\u0275fac=function(e){return new(e||t)(D(ua),D(Ut))},t.\u0275cmp=Ie({type:t,selectors:[["p-image"]],contentQueries:function(e,i,r){if(1&e&&xn(r,ti,4),2&e){let s;De(s=Se())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&Je(l2,5),2&e){let r;De(r=Se())&&(i.mask=r.first)}},hostAttrs:[1,"p-element"],inputs:{imageClass:"imageClass",imageStyle:"imageStyle",styleClass:"styleClass",style:"style",src:"src",alt:"alt",width:"width",height:"height",appendTo:"appendTo",preview:"preview",showTransitionOptions:"showTransitionOptions",hideTransitionOptions:"hideTransitionOptions"},outputs:{onShow:"onShow",onHide:"onHide",onImageError:"onImageError"},decls:4,vars:13,consts:[[3,"ngClass","ngStyle"],[3,"ngStyle","error"],["class","p-image-preview-indicator",3,"click",4,"ngIf"],["class","p-image-mask p-component-overlay p-component-overlay-enter",3,"click",4,"ngIf"],[1,"p-image-preview-indicator",3,"click"],[4,"ngIf","ngIfElse"],["defaultTemplate",""],[4,"ngTemplateOutlet"],[1,"p-image-preview-icon","pi","pi-eye"],[1,"p-image-mask","p-component-overlay","p-component-overlay-enter",3,"click"],["mask",""],[1,"p-image-toolbar",3,"click"],["type","button",1,"p-image-action","p-link",3,"click"],[1,"pi","pi-refresh"],[1,"pi","pi-undo"],["type","button",1,"p-image-action","p-link",3,"disabled","click"],[1,"pi","pi-search-minus"],[1,"pi","pi-search-plus"],[1,"pi","pi-times"],[4,"ngIf"],[1,"p-image-preview",3,"ngStyle","click"]],template:function(e,i){1&e&&(y(0,"span",0)(1,"img",1),F("error",function(s){return i.imageError(s)}),v(),S(2,h2,4,2,"div",2),S(3,m2,14,3,"div",3),v()),2&e&&(Ke(i.styleClass),g("ngClass",i.containerClass())("ngStyle",i.style),m(1),Ke(i.imageClass),g("ngStyle",i.imageStyle),Be("src",i.src,dn)("alt",i.alt)("width",i.width)("height",i.height),m(1),g("ngIf",i.preview),m(1),g("ngIf",i.maskVisible))},dependencies:[Qn,Dt,Yn,Zn],styles:[".p-image-mask{display:flex;align-items:center;justify-content:center}.p-image-preview-container{position:relative;display:inline-block}.p-image-preview-indicator{position:absolute;left:0;top:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .3s}.p-image-preview-icon{font-size:1.5rem}.p-image-preview-container:hover>.p-image-preview-indicator{opacity:1;cursor:pointer}.p-image-preview-container>img{cursor:pointer}.p-image-toolbar{position:absolute;top:0;right:0;display:flex;z-index:1}.p-image-action.p-link{display:flex;justify-content:center;align-items:center}.p-image-action.p-link[disabled]{opacity:.5}.p-image-preview{transition:transform .15s;max-width:100vw;max-height:100vh}\n"],encapsulation:2,data:{animation:[Gp("animation",[aa("void => visible",[Sr({transform:"scale(0.7)",opacity:0}),oa("{{showTransitionParams}}")]),aa("visible => void",[oa("{{hideTransitionParams}}",Sr({transform:"scale(0.7)",opacity:0}))])])]},changeDetection:0}),t})(),_2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({imports:[St,Ln]}),t})();const y2=["itemsContainer"];function v2(t,n){1&t&&fe(0)}function w2(t,n){if(1&t&&(y(0,"div",11),pi(1),S(2,v2,1,0,"ng-container",12),v()),2&t){const e=C();m(2),g("ngTemplateOutlet",e.headerTemplate)}}const C2=function(t){return{"p-carousel-prev p-link":!0,"p-disabled":t}},b2=function(t,n){return{"p-carousel-prev-icon pi":!0,"pi-chevron-left":t,"pi-chevron-up":n}};function D2(t,n){if(1&t){const e=be();y(0,"button",13),F("click",function(r){return L(e),V(C().navBackward(r))}),G(1,"span",2),v()}if(2&t){const e=C();g("ngClass",le(3,C2,e.isBackwardNavDisabled()))("disabled",e.isBackwardNavDisabled()),m(1),g("ngClass",Ft(5,b2,!e.isVertical(),e.isVertical()))}}function S2(t,n){1&t&&fe(0)}const qD=function(t,n,e){return{"p-carousel-item p-carousel-item-cloned":!0,"p-carousel-item-active":t,"p-carousel-item-start":n,"p-carousel-item-end":e}},Zp=function(t){return{$implicit:t}};function E2(t,n){if(1&t&&(y(0,"div",2),S(1,S2,1,0,"ng-container",14),v()),2&t){const e=n.$implicit,i=n.index,r=C();g("ngClass",fr(3,qD,-1*r.totalShiftedItems===r.value.length,0===i,r.clonedItemsForStarting.length-1===i)),m(1),g("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",le(7,Zp,e))}}function I2(t,n){1&t&&fe(0)}const T2=function(t,n,e){return{"p-carousel-item":!0,"p-carousel-item-active":t,"p-carousel-item-start":n,"p-carousel-item-end":e}};function M2(t,n){if(1&t&&(y(0,"div",2),S(1,I2,1,0,"ng-container",14),v()),2&t){const e=n.$implicit,i=n.index,r=C();g("ngClass",fr(3,T2,r.firstIndex()<=i&&r.lastIndex()>=i,r.firstIndex()===i,r.lastIndex()===i)),m(1),g("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",le(7,Zp,e))}}function A2(t,n){1&t&&fe(0)}function O2(t,n){if(1&t&&(y(0,"div",2),S(1,A2,1,0,"ng-container",14),v()),2&t){const e=n.$implicit,i=n.index,r=C();g("ngClass",fr(3,qD,-1*r.totalShiftedItems===r.numVisible,0===i,r.clonedItemsForFinishing.length-1===i)),m(1),g("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",le(7,Zp,e))}}const P2=function(t){return{"p-carousel-next p-link":!0,"p-disabled":t}},x2=function(t,n){return{"p-carousel-prev-icon pi":!0,"pi-chevron-right":t,"pi-chevron-down":n}};function R2(t,n){if(1&t){const e=be();y(0,"button",13),F("click",function(r){return L(e),V(C().navForward(r))}),G(1,"span",2),v()}if(2&t){const e=C();g("ngClass",le(3,P2,e.isForwardNavDisabled()))("disabled",e.isForwardNavDisabled()),m(1),g("ngClass",Ft(5,x2,!e.isVertical(),e.isVertical()))}}const N2=function(t){return{"p-carousel-indicator":!0,"p-highlight":t}};function F2(t,n){if(1&t){const e=be();y(0,"li",2)(1,"button",15),F("click",function(r){const o=L(e).index;return V(C(2).onDotClick(r,o))}),v()()}if(2&t){const e=n.index,i=C(2);g("ngClass",le(5,N2,i._page===e)),m(1),Ke(i.indicatorStyleClass),g("ngClass","p-link")("ngStyle",i.indicatorStyle)}}function k2(t,n){if(1&t&&(y(0,"ul",0),S(1,F2,2,7,"li",8),v()),2&t){const e=C();Ke(e.indicatorsContentClass),g("ngClass","p-carousel-indicators p-reset")("ngStyle",e.indicatorsContentStyle),m(1),g("ngForOf",e.totalDotsArray())}}function L2(t,n){1&t&&fe(0)}function V2(t,n){if(1&t&&(y(0,"div",16),pi(1,1),S(2,L2,1,0,"ng-container",12),v()),2&t){const e=C();m(2),g("ngTemplateOutlet",e.footerTemplate)}}const B2=[[["p-header"]],[["p-footer"]]],H2=function(t,n){return{"p-carousel p-component":!0,"p-carousel-vertical":t,"p-carousel-horizontal":n}},$2=function(t){return{height:t}},U2=["p-header","p-footer"];let KD=(()=>{class t{constructor(e,i,r,s,o){this.el=e,this.zone=i,this.cd=r,this.renderer=s,this.document=o,this.orientation="horizontal",this.verticalViewPortHeight="300px",this.contentClass="",this.indicatorsContentClass="",this.indicatorStyleClass="",this.circular=!1,this.showIndicators=!0,this.showNavigators=!0,this.autoplayInterval=0,this.onPage=new U,this._numVisible=1,this._numScroll=1,this._oldNumScroll=0,this.prevState={numScroll:0,numVisible:0,value:[]},this.defaultNumScroll=1,this.defaultNumVisible=1,this._page=0,this.isRemainingItemsAdded=!1,this.remainingItems=0,this.swipeThreshold=20,this.totalShiftedItems=this.page*this.numScroll*-1}get page(){return this._page}set page(e){this.isCreated&&e!==this._page&&(this.autoplayInterval&&(this.stopAutoplay(),this.allowAutoplay=!1),e>this._page&&e<=this.totalDots()-1?this.step(-1,e):e<this._page&&this.step(1,e)),this._page=e}get numVisible(){return this._numVisible}set numVisible(e){this._numVisible=e}get numScroll(){return this._numVisible}set numScroll(e){this._numScroll=e}get value(){return this._value}set value(e){this._value=e}ngOnChanges(e){e.value&&this.circular&&this._value&&this.setCloneItems(),this.isCreated&&(e.numVisible&&(this.responsiveOptions&&(this.defaultNumVisible=this.numVisible),this.isCircular()&&this.setCloneItems(),this.createStyle(),this.calculatePosition()),e.numScroll&&this.responsiveOptions&&(this.defaultNumScroll=this.numScroll))}ngAfterContentInit(){this.id=BD(),this.allowAutoplay=!!this.autoplayInterval,this.circular&&this.setCloneItems(),this.responsiveOptions&&(this.defaultNumScroll=this._numScroll,this.defaultNumVisible=this._numVisible),this.createStyle(),this.calculatePosition(),this.responsiveOptions&&this.bindDocumentListeners(),this.templates.forEach(e=>{switch(e.getType()){case"item":default:this.itemTemplate=e.template;break;case"header":this.headerTemplate=e.template;break;case"footer":this.footerTemplate=e.template}})}ngAfterContentChecked(){const e=this.isCircular();let i=this.totalShiftedItems;if(this.value&&this.itemsContainer&&(this.prevState.numScroll!==this._numScroll||this.prevState.numVisible!==this._numVisible||this.prevState.value.length!==this.value.length)){this.autoplayInterval&&this.stopAutoplay(),this.remainingItems=(this.value.length-this._numVisible)%this._numScroll;let r=this._page;0!==this.totalDots()&&r>=this.totalDots()&&(r=this.totalDots()-1,this._page=r,this.onPage.emit({page:this.page})),i=r*this._numScroll*-1,e&&(i-=this._numVisible),r===this.totalDots()-1&&this.remainingItems>0?(i+=-1*this.remainingItems+this._numScroll,this.isRemainingItemsAdded=!0):this.isRemainingItemsAdded=!1,i!==this.totalShiftedItems&&(this.totalShiftedItems=i),this._oldNumScroll=this._numScroll,this.prevState.numScroll=this._numScroll,this.prevState.numVisible=this._numVisible,this.prevState.value=[...this._value],this.totalDots()>0&&this.itemsContainer.nativeElement&&(this.itemsContainer.nativeElement.style.transform=this.isVertical()?`translate3d(0, ${i*(100/this._numVisible)}%, 0)`:`translate3d(${i*(100/this._numVisible)}%, 0, 0)`),this.isCreated=!0,this.autoplayInterval&&this.isAutoplay()&&this.startAutoplay()}e&&(0===this.page?i=-1*this._numVisible:0===i&&(i=-1*this.value.length,this.remainingItems>0&&(this.isRemainingItemsAdded=!0)),i!==this.totalShiftedItems&&(this.totalShiftedItems=i))}createStyle(){this.carouselStyle||(this.carouselStyle=this.renderer.createElement("style"),this.carouselStyle.type="text/css",this.renderer.appendChild(this.document.head,this.carouselStyle));let e=`\n #${this.id} .p-carousel-item {\n\t\t\t\tflex: 1 0 ${100/this.numVisible}%\n\t\t\t}\n `;if(this.responsiveOptions){this.responsiveOptions.sort((i,r)=>{const s=i.breakpoint,o=r.breakpoint;let a=null;return a=null==s&&null!=o?-1:null!=s&&null==o?1:null==s&&null==o?0:"string"==typeof s&&"string"==typeof o?s.localeCompare(o,void 0,{numeric:!0}):s<o?-1:s>o?1:0,-1*a});for(let i=0;i<this.responsiveOptions.length;i++){let r=this.responsiveOptions[i];e+=`\n @media screen and (max-width: ${r.breakpoint}) {\n #${this.id} .p-carousel-item {\n flex: 1 0 ${100/r.numVisible}%\n }\n }\n `}}this.carouselStyle.innerHTML=e}calculatePosition(){if(this.responsiveOptions){let e={numVisible:this.defaultNumVisible,numScroll:this.defaultNumScroll};if(typeof window<"u"){let i=window.innerWidth;for(let r=0;r<this.responsiveOptions.length;r++){let s=this.responsiveOptions[r];parseInt(s.breakpoint,10)>=i&&(e=s)}}if(this._numScroll!==e.numScroll){let i=this._page;i=Math.floor(i*this._numScroll/e.numScroll);let r=e.numScroll*this.page*-1;this.isCircular()&&(r-=e.numVisible),this.totalShiftedItems=r,this._numScroll=e.numScroll,this._page=i,this.onPage.emit({page:this.page})}this._numVisible!==e.numVisible&&(this._numVisible=e.numVisible,this.setCloneItems()),this.cd.markForCheck()}}setCloneItems(){this.clonedItemsForStarting=[],this.clonedItemsForFinishing=[],this.isCircular()&&(this.clonedItemsForStarting.push(...this.value.slice(-1*this._numVisible)),this.clonedItemsForFinishing.push(...this.value.slice(0,this._numVisible)))}firstIndex(){return this.isCircular()?-1*(this.totalShiftedItems+this.numVisible):-1*this.totalShiftedItems}lastIndex(){return this.firstIndex()+this.numVisible-1}totalDots(){return this.value?.length?Math.ceil((this.value.length-this._numVisible)/this._numScroll)+1:0}totalDotsArray(){const e=this.totalDots();return e<=0?[]:Array(e).fill(0)}isVertical(){return"vertical"===this.orientation}isCircular(){return this.circular&&this.value&&this.value.length>=this.numVisible}isAutoplay(){return this.autoplayInterval&&this.allowAutoplay}isForwardNavDisabled(){return this.isEmpty()||this._page>=this.totalDots()-1&&!this.isCircular()}isBackwardNavDisabled(){return this.isEmpty()||this._page<=0&&!this.isCircular()}isEmpty(){return!this.value||0===this.value.length}navForward(e,i){(this.isCircular()||this._page<this.totalDots()-1)&&this.step(-1,i),this.autoplayInterval&&(this.stopAutoplay(),this.allowAutoplay=!1),e&&e.cancelable&&e.preventDefault()}navBackward(e,i){(this.isCircular()||0!==this._page)&&this.step(1,i),this.autoplayInterval&&(this.stopAutoplay(),this.allowAutoplay=!1),e&&e.cancelable&&e.preventDefault()}onDotClick(e,i){let r=this._page;this.autoplayInterval&&(this.stopAutoplay(),this.allowAutoplay=!1),i>r?this.navForward(e,i):i<r&&this.navBackward(e,i)}step(e,i){let r=this.totalShiftedItems;const s=this.isCircular();null!=i?(r=this._numScroll*i*-1,s&&(r-=this._numVisible),this.isRemainingItemsAdded=!1):(r+=this._numScroll*e,this.isRemainingItemsAdded&&(r+=this.remainingItems-this._numScroll*e,this.isRemainingItemsAdded=!1),i=Math.abs(Math.floor((s?r+this._numVisible:r)/this._numScroll))),s&&this.page===this.totalDots()-1&&-1===e?(r=-1*(this.value.length+this._numVisible),i=0):s&&0===this.page&&1===e?(r=0,i=this.totalDots()-1):i===this.totalDots()-1&&this.remainingItems>0&&(r+=-1*this.remainingItems-this._numScroll*e,this.isRemainingItemsAdded=!0),this.itemsContainer&&(this.itemsContainer.nativeElement.style.transform=this.isVertical()?`translate3d(0, ${r*(100/this._numVisible)}%, 0)`:`translate3d(${r*(100/this._numVisible)}%, 0, 0)`,this.itemsContainer.nativeElement.style.transition="transform 500ms ease 0s"),this.totalShiftedItems=r,this._page=i,this.onPage.emit({page:this.page})}startAutoplay(){this.interval=setInterval(()=>{this.totalDots()>0&&(this.page===this.totalDots()-1?this.step(-1,0):this.step(-1,this.page+1))},this.autoplayInterval)}stopAutoplay(){this.interval&&clearInterval(this.interval)}onTransitionEnd(){this.itemsContainer&&(this.itemsContainer.nativeElement.style.transition="",(0===this.page||this.page===this.totalDots()-1)&&this.isCircular()&&(this.itemsContainer.nativeElement.style.transform=this.isVertical()?`translate3d(0, ${this.totalShiftedItems*(100/this._numVisible)}%, 0)`:`translate3d(${this.totalShiftedItems*(100/this._numVisible)}%, 0, 0)`))}onTouchStart(e){let i=e.changedTouches[0];this.startPos={x:i.pageX,y:i.pageY}}onTouchMove(e){e.cancelable&&e.preventDefault()}onTouchEnd(e){let i=e.changedTouches[0];this.isVertical()?this.changePageOnTouch(e,i.pageY-this.startPos.y):this.changePageOnTouch(e,i.pageX-this.startPos.x)}changePageOnTouch(e,i){Math.abs(i)>this.swipeThreshold&&(i<0?this.navForward(e):this.navBackward(e))}bindDocumentListeners(){!this.documentResizeListener&&typeof window<"u"&&(this.documentResizeListener=e=>{this.calculatePosition()},window.addEventListener("resize",this.documentResizeListener))}unbindDocumentListeners(){this.documentResizeListener&&typeof window<"u"&&(window.removeEventListener("resize",this.documentResizeListener),this.documentResizeListener=null)}ngOnDestroy(){this.responsiveOptions&&this.unbindDocumentListeners(),this.autoplayInterval&&this.stopAutoplay()}}return t.\u0275fac=function(e){return new(e||t)(D($e),D(Te),D(Ut),D(Yt),D(Qe))},t.\u0275cmp=Ie({type:t,selectors:[["p-carousel"]],contentQueries:function(e,i,r){if(1&e&&(xn(r,VV,5),xn(r,BV,5),xn(r,ti,4)),2&e){let s;De(s=Se())&&(i.headerFacet=s.first),De(s=Se())&&(i.footerFacet=s.first),De(s=Se())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&Je(y2,5),2&e){let r;De(r=Se())&&(i.itemsContainer=r.first)}},hostAttrs:[1,"p-element"],inputs:{page:"page",numVisible:"numVisible",numScroll:"numScroll",responsiveOptions:"responsiveOptions",orientation:"orientation",verticalViewPortHeight:"verticalViewPortHeight",contentClass:"contentClass",indicatorsContentClass:"indicatorsContentClass",indicatorsContentStyle:"indicatorsContentStyle",indicatorStyleClass:"indicatorStyleClass",indicatorStyle:"indicatorStyle",value:"value",circular:"circular",showIndicators:"showIndicators",showNavigators:"showNavigators",autoplayInterval:"autoplayInterval",style:"style",styleClass:"styleClass"},outputs:{onPage:"onPage"},features:[pt],ngContentSelectors:U2,decls:14,vars:22,consts:[[3,"ngClass","ngStyle"],["class","p-carousel-header",4,"ngIf"],[3,"ngClass"],[1,"p-carousel-container"],["type","button","pRipple","",3,"ngClass","disabled","click",4,"ngIf"],[1,"p-carousel-items-content",3,"ngStyle"],[1,"p-carousel-items-container",3,"transitionend","touchend","touchstart","touchmove"],["itemsContainer",""],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass","class","ngStyle",4,"ngIf"],["class","p-carousel-footer",4,"ngIf"],[1,"p-carousel-header"],[4,"ngTemplateOutlet"],["type","button","pRipple","",3,"ngClass","disabled","click"],[4,"ngTemplateOutlet","ngTemplateOutletContext"],["type","button",3,"ngClass","ngStyle","click"],[1,"p-carousel-footer"]],template:function(e,i){1&e&&(Ri(B2),y(0,"div",0),S(1,w2,3,1,"div",1),y(2,"div",2)(3,"div",3),S(4,D2,2,8,"button",4),y(5,"div",5)(6,"div",6,7),F("transitionend",function(){return i.onTransitionEnd()})("touchend",function(s){return i.onTouchEnd(s)})("touchstart",function(s){return i.onTouchStart(s)})("touchmove",function(s){return i.onTouchMove(s)}),S(8,E2,2,9,"div",8),S(9,M2,2,9,"div",8),S(10,O2,2,9,"div",8),v()(),S(11,R2,2,8,"button",4),v(),S(12,k2,2,5,"ul",9),v(),S(13,V2,3,1,"div",10),v()),2&e&&(Ke(i.styleClass),g("ngClass",Ft(17,H2,i.isVertical(),!i.isVertical()))("ngStyle",i.style),Be("id",i.id),m(1),g("ngIf",i.headerFacet||i.headerTemplate),m(1),Ke(i.contentClass),g("ngClass","p-carousel-content"),m(2),g("ngIf",i.showNavigators),m(1),g("ngStyle",le(20,$2,i.isVertical()?i.verticalViewPortHeight:"auto")),m(3),g("ngForOf",i.clonedItemsForStarting),m(1),g("ngForOf",i.value),m(1),g("ngForOf",i.clonedItemsForFinishing),m(1),g("ngIf",i.showNavigators),m(1),g("ngIf",i.showIndicators),m(1),g("ngIf",i.footerFacet||i.footerTemplate))},dependencies:[Qn,Jt,Dt,Yn,Zn,Oc],styles:[".p-carousel{display:flex;flex-direction:column}.p-carousel-content{display:flex;flex-direction:column;overflow:auto}.p-carousel-prev,.p-carousel-next{align-self:center;flex-grow:0;flex-shrink:0;display:flex;justify-content:center;align-items:center;overflow:hidden;position:relative}.p-carousel-container{display:flex;flex-direction:row}.p-carousel-items-content{overflow:hidden;width:100%}.p-carousel-items-container{display:flex;flex-direction:row}.p-carousel-indicators{display:flex;flex-direction:row;justify-content:center;flex-wrap:wrap}.p-carousel-indicator>button{display:flex;align-items:center;justify-content:center}.p-carousel-vertical .p-carousel-container{flex-direction:column}.p-carousel-vertical .p-carousel-items-container{flex-direction:column;height:100%}.p-items-hidden .p-carousel-item{visibility:hidden}.p-items-hidden .p-carousel-item.p-carousel-item-active{visibility:visible}\n"],encapsulation:2,changeDetection:0}),t})(),j2=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({imports:[St,Ln,da,St,Ln]}),t})();function z2(t,n){if(1&t&&(oe(0),G(1,"iframe",2),ae()),2&t){const e=C();m(1),g("src",e.videoUrl,yd)}}function G2(t,n){1&t&&fe(0)}class Rs{constructor(n){this.sanitizer=n,this.site="YouTube",this.key=null,this.videoUrl=""}ngOnInit(){switch(this.site){case"YouTube":this.videoUrl=this.getSafeUrl("https://www.youtube.com/embed/"+this.key);break;case"Vimeo":this.videoUrl=this.getSafeUrl("https://www.vimeo.com/embed/"+this.key)}}getSafeUrl(n){return this.sanitizer.bypassSecurityTrustResourceUrl(n)}}function W2(t,n){1&t&&(oe(0),P(1,","),ae())}function q2(t,n){if(1&t&&(y(0,"span"),P(1),S(2,W2,2,0,"ng-container",0),v()),2&t){const e=n.$implicit,i=n.index,r=C(2);m(1),ot(" ",e.name,""),m(1),g("ngIf",i+1!=r.movie.genres.length)}}function K2(t,n){if(1&t&&(oe(0),y(1,"div",17),G(2,"video-embed",18),v(),ae()),2&t){const e=n.$implicit;m(2),g("key",e.key)("site",e.site)}}function Q2(t,n){if(1&t&&(oe(0),y(1,"div",17),G(2,"p-image",19),v(),ae()),2&t){const e=n.$implicit,i=C(2);m(2),g("src",i.imageSizes.large+e.file_path)("preview",!0)}}function Z2(t,n){if(1&t&&(y(0,"div",22),G(1,"img",23),y(2,"span"),P(3),v()()),2&t){const e=n.$implicit,i=C(3);m(1),g("src",i.imageSizes.medium+e.profile_path,dn),m(2),_e(e.name)}}function Y2(t,n){if(1&t&&(y(0,"p-carousel",20),S(1,Z2,4,2,"ng-template",21),v()),2&t){const e=C(2);g("numVisible",7)("value",e.movieCredits.cast)}}Rs.\u0275fac=function(n){return new(n||Rs)(D(JC))},Rs.\u0275cmp=Ie({type:Rs,selectors:[["video-embed"]],inputs:{site:"site",key:"key"},decls:3,vars:3,consts:[[3,"ngSwitch"],[4,"ngSwitchCase"],["width","100%","height","542","title","YouTube Video Player","frameborder","0","allow","accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share","allowfullscreen","",3,"src"]],template:function(n,e){1&n&&(oe(0,0),S(1,z2,2,1,"ng-container",1),S(2,G2,1,0,"ng-container",1),ae()),2&n&&(g("ngSwitch",e.site),m(1),g("ngSwitchCase","YouTube"),m(1),g("ngSwitchCase","Vimeo"))},dependencies:[Jl,bC]});const X2=function(t){return[t]};function J2(t,n){if(1&t&&(oe(0),G(1,"slider",1),y(2,"p-tabView")(3,"p-tabPanel",2)(4,"div",3)(5,"div",4),G(6,"img",5),v(),y(7,"div",6)(8,"h2"),P(9,"Overview"),v(),y(10,"p",7),P(11),v(),y(12,"div",8)(13,"div",9),P(14,"Release Date:"),v(),y(15,"div",10),P(16),fi(17,"date"),v()(),y(18,"div",8)(19,"div",9),P(20,"Language:"),v(),y(21,"div",10),P(22),fi(23,"uppercase"),v()(),y(24,"div",8)(25,"div",9),P(26,"Revenue:"),v(),y(27,"div",10),P(28),fi(29,"currency"),v()(),y(30,"div",8)(31,"div",9),P(32,"Duration:"),v(),y(33,"div",10),P(34),v()(),y(35,"div",8)(36,"div",9),P(37,"Status:"),v(),y(38,"div",10),P(39),v()(),y(40,"div",8)(41,"div",9),P(42,"Genres:"),v(),y(43,"div",10),S(44,q2,3,2,"span",11),v()()()()(),y(45,"p-tabPanel",12)(46,"div",3),S(47,K2,3,2,"ng-container",11),v()(),y(48,"p-tabPanel",13),G(49,"p-image",14),y(50,"div",3),S(51,Q2,3,2,"ng-container",11),v()()(),S(52,Y2,2,2,"p-carousel",15),G(53,"items-banner",16),ae()),2&t){const e=C();m(1),g("itemsMovie",le(23,X2,e.movie))("isBanner",!0),m(5),g("src",e.imageSizes.medium+e.movie.poster_path,dn)("alt",e.movie.title),m(5),_e(e.movie.overview),m(5),ot(" ",gr(17,15,e.movie.release_date,"dd.MM.yyyy")," "),m(6),ot(" ",uh(23,18,e.movie.original_language)," "),m(6),ot(" ",gr(29,20,e.movie.revenue,"USD")," "),m(6),ot("",e.movie.runtime," min"),m(5),_e(e.movie.status),m(5),g("ngForOf",e.movie.genres),m(3),g("ngForOf",e.movieVideos),m(4),g("ngForOf",null==e.movieImages?null:e.movieImages.backdrops),m(1),g("ngIf",e.movieCredits),m(1),g("itemsMovie",e.similarMovies)}}class ha{constructor(n,e,i){this.route=n,this.moviesService=e,this.router=i,this.movie=null,this.movieVideos=[],this.movieImages=null,this.movieCredits=null,this.imageSizes=Ac,this.similarMovies=[]}ngOnInit(){this.urlSubscription=this.route.params.subscribe(n=>{this.getMovie(n.id),this.getMovieVideos(n.id),this.getMovieImages(n.id),this.getMovieCredits(n.id),this.getMovieSimilar(n.id),this.router.navigateByUrl("/movie/"+n.id)})}ngOnDestroy(){this.urlSubscription.unsubscribe()}getMovie(n){this.moviesService.getMovie(n).subscribe(e=>{this.movie=e})}getMovieVideos(n){this.moviesService.getMovieVideos(n).subscribe(e=>{this.movieVideos=e})}getMovieImages(n){this.moviesService.getMovieImages(n).subscribe(e=>{this.movieImages=e})}getMovieCredits(n){this.moviesService.getMovieCredits(n).subscribe(e=>{this.movieCredits=e})}getMovieSimilar(n){this.moviesService.getMovieSimilar(n).subscribe(e=>{this.similarMovies=e})}}ha.\u0275fac=function(n){return new(n||ha)(D(ei),D(Di),D(Lt))},ha.\u0275cmp=Ie({type:ha,selectors:[["app-movie"]],decls:1,vars:1,consts:[[4,"ngIf"],[3,"itemsMovie","isBanner"],["header","Overviews"],[1,"grid"],[1,"col-12","md:col-3","lg:col-3"],[1,"poster",3,"src","alt"],[1,"col-12","md:col-9","lg:col-9"],[1,"overview"],[1,"stat"],[1,"label"],[1,"value"],[4,"ngFor","ngForOf"],["header","Videos"],["header","Photos"],["src","","alt","Image","width","250"],[3,"numVisible","value",4,"ngIf"],["title","Similar Movies",3,"itemsMovie"],[1,"col-12","md:col-4","lg:col-4"],[3,"key","site"],["alt","Image","width","100%",3,"src","preview"],[3,"numVisible","value"],["pTemplate","item"],[1,"actor"],["alt","",3,"src"]],template:function(n,e){1&n&&S(0,J2,54,25,"ng-container",0),2&n&&g("ngIf",e.movie)},dependencies:[Jt,Dt,ti,Qp,Kp,WD,KD,Er,Tr,Rs,Xh,EC,Lo],styles:["[_nghost-%COMP%] .p-tabview-nav{justify-content:center}[_nghost-%COMP%] .p-tabview-nav li .p-tabview.nav.link{background:#141414}[_nghost-%COMP%] .p-tabview-nav li.p-highlight .p-tabview-nav-link{background:#141414}[_nghost-%COMP%] .poster{max-width:100%}[_nghost-%COMP%] .overview{line-height:1.5}[_nghost-%COMP%] .stat{display:flex;margin-bottom:15px}[_nghost-%COMP%] .stat .label{width:150px;font-weight:700}[_nghost-%COMP%] .stat .value{color:#ffd54f}[_nghost-%COMP%] .actor{padding:10px}[_nghost-%COMP%] .actor img{width:100%}[_nghost-%COMP%] .actor span{display:block;text-align:center;margin:10px 0}"]});let QD=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)(D(Yt),D($e))},t.\u0275dir=j({type:t}),t})(),Mr=(()=>{class t extends QD{}return t.\u0275fac=function(){let n;return function(i){return(n||(n=mt(t)))(i||t)}}(),t.\u0275dir=j({type:t,features:[Ee]}),t})();const en=new H("NgValueAccessor"),nB={provide:en,useExisting:ye(()=>pa),multi:!0},rB=new H("CompositionEventMode");let pa=(()=>{class t extends QD{constructor(e,i,r){super(e,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function iB(){const t=Kn()?Kn().getUserAgent():"";return/android (\d+)/.test(t.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 t.\u0275fac=function(e){return new(e||t)(D(Yt),D($e),D(rB,8))},t.\u0275dir=j({type:t,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&&F("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:[Pe([nB]),Ee]}),t})();const Tt=new H("NgValidators"),zi=new H("NgAsyncValidators");function oS(t){return null!=t}function aS(t){return bo(t)?Xe(t):t}function lS(t){let n={};return t.forEach(e=>{n=null!=e?{...n,...e}:n}),0===Object.keys(n).length?null:n}function cS(t,n){return n.map(e=>e(t))}function uS(t){return t.map(n=>function aB(t){return!t.validate}(n)?n:e=>n.validate(e))}function Yp(t){return null!=t?function dS(t){if(!t)return null;const n=t.filter(oS);return 0==n.length?null:function(e){return lS(cS(e,n))}}(uS(t)):null}function Xp(t){return null!=t?function hS(t){if(!t)return null;const n=t.filter(oS);return 0==n.length?null:function(e){return function eB(...t){const n=yg(t),{args:e,keys:i}=tb(t),r=new We(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;on(e[u]).subscribe(it(s,h=>{d||(d=!0,c--),a[u]=h},()=>l--,void 0,()=>{(!l||!d)&&(c||s.next(i?ib(i,a):a),s.complete())}))}});return n?r.pipe(nb(n)):r}(cS(e,n).map(aS)).pipe(re(lS))}}(uS(t)):null}function pS(t,n){return null===t?[n]:Array.isArray(t)?[...t,n]:[t,n]}function Jp(t){return t?Array.isArray(t)?t:[t]:[]}function xc(t,n){return Array.isArray(t)?t.includes(n):t===n}function mS(t,n){const e=Jp(n);return Jp(t).forEach(r=>{xc(e,r)||e.push(r)}),e}function _S(t,n){return Jp(n).filter(e=>!xc(t,e))}class yS{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(n){this._rawValidators=n||[],this._composedValidatorFn=Yp(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Xp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,e){return!!this.control&&this.control.hasError(n,e)}getError(n,e){return this.control?this.control.getError(n,e):null}}class Vt extends yS{get formDirective(){return null}get path(){return null}}class Gi extends yS{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class vS{constructor(n){this._cd=n}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 Rc=(()=>{class t extends vS{constructor(e){super(e)}}return t.\u0275fac=function(e){return new(e||t)(D(Gi,2))},t.\u0275dir=j({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,i){2&e&&dr("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:[Ee]}),t})();const fa="VALID",Fc="INVALID",Ns="PENDING",ga="DISABLED";function kc(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class DS{constructor(n,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(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===fa}get invalid(){return this.status===Fc}get pending(){return this.status==Ns}get disabled(){return this.status===ga}get enabled(){return this.status!==ga}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(mS(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(mS(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(_S(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(_S(n,this._rawAsyncValidators))}hasValidator(n){return xc(this._rawValidators,n)}hasAsyncValidator(n){return xc(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(e=>{e.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(e=>{e.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Ns,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=ga,this.errors=null,this._forEachChild(i=>{i.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!0))}enable(n={}){const e=this._parentMarkedDirty(n.onlySelf);this.status=fa,this._forEachChild(i=>{i.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:e}),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===fa||this.status===Ns)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ga:fa}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Ns,this._hasOwnPendingAsyncValidator=!0;const e=aS(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(!1!==e.emitEvent)}get(n){let e=n;return null==e||(Array.isArray(e)||(e=e.split(".")),0===e.length)?null:e.reduce((i,r)=>i&&i._find(r),this)}getError(n,e){const i=e?this.get(e):this;return i&&i.errors?i.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new U,this.statusChanges=new U}_calculateStatus(){return this._allControlsDisabled()?ga:this.errors?Fc:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ns)?Ns:this._anyControlsHaveStatus(Fc)?Fc:fa}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){kc(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function gB(t){return Array.isArray(t)?Yp(t):t||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function mB(t){return Array.isArray(t)?Xp(t):t||null}(this._rawAsyncValidators)}}const ma=new H("CallSetDisabledState",{providedIn:"root",factory:()=>lf}),lf="always";function _a(t,n,e=lf){(function cf(t,n){const e=function fS(t){return t._rawValidators}(t);null!==n.validator?t.setValidators(pS(e,n.validator)):"function"==typeof e&&t.setValidators([e]);const i=function gS(t){return t._rawAsyncValidators}(t);null!==n.asyncValidator?t.setAsyncValidators(pS(i,n.asyncValidator)):"function"==typeof i&&t.setAsyncValidators([i]);const r=()=>t.updateValueAndValidity();Bc(n._rawValidators,r),Bc(n._rawAsyncValidators,r)})(t,n),n.valueAccessor.writeValue(t.value),(t.disabled||"always"===e)&&n.valueAccessor.setDisabledState?.(t.disabled),function vB(t,n){n.valueAccessor.registerOnChange(e=>{t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&SS(t,n)})}(t,n),function CB(t,n){const e=(i,r)=>{n.valueAccessor.writeValue(i),r&&n.viewToModelUpdate(i)};t.registerOnChange(e),n._registerOnDestroy(()=>{t._unregisterOnChange(e)})}(t,n),function wB(t,n){n.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&SS(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),function yB(t,n){if(n.valueAccessor.setDisabledState){const e=i=>{n.valueAccessor.setDisabledState(i)};t.registerOnDisabledChange(e),n._registerOnDestroy(()=>{t._unregisterOnDisabledChange(e)})}}(t,n)}function Bc(t,n){t.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function SS(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function TS(t,n){const e=t.indexOf(n);e>-1&&t.splice(e,1)}function MS(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}const AS=class extends DS{constructor(n=null,e,i){super(function rf(t){return(kc(t)?t.validators:t)||null}(e),function sf(t,n){return(kc(n)?n.asyncValidators:t)||null}(i,e)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),kc(e)&&(e.nonNullable||e.initialValueIsDefault)&&(this.defaultValue=MS(n)?n.value:n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){TS(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){TS(this._onDisabledChange,n)}_forEachChild(n){}_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(n){MS(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},AB={provide:Gi,useExisting:ye(()=>Fs)},xS=(()=>Promise.resolve())();let Fs=(()=>{class t extends Gi{constructor(e,i,r,s,o,a){super(),this._changeDetectorRef=o,this.callSetDisabledState=a,this.control=new AS,this._registered=!1,this.update=new U,this._parent=e,this._setValidators(i),this._setAsyncValidators(r),this.valueAccessor=function hf(t,n){if(!n)return null;let e,i,r;return Array.isArray(n),n.forEach(s=>{s.constructor===pa?e=s:function SB(t){return Object.getPrototypeOf(t.constructor)===Mr}(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 df(t,n){if(!t.hasOwnProperty("model"))return!1;const e=t.model;return!!e.isFirstChange()||!Object.is(n,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(){_a(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){xS.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){const i=e.isDisabled.currentValue,r=0!==i&&Cs(i);xS.then(()=>{r&&!this.control.disabled?this.control.disable():!r&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?function Lc(t,n){return[...n.path,t]}(e,this._parent):[e]}}return t.\u0275fac=function(e){return new(e||t)(D(Vt,9),D(Tt,10),D(zi,10),D(en,10),D(Ut,8),D(ma,8))},t.\u0275dir=j({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Pe([AB]),Ee,pt]}),t})(),NS=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({}),t})(),eH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({imports:[NS]}),t})(),XS=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:ma,useValue:e.callSetDisabledState??lf}]}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({imports:[eH]}),t})(),nH=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)(D($e))},t.\u0275dir=j({type:t,selectors:[["","pAutoFocus",""]],hostAttrs:[1,"p-element"],inputs:{autofocus:"autofocus"}}),t})(),iH=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({imports:[St]}),t})();const rH=["overlay"],sH=["content"];function oH(t,n){1&t&&fe(0)}const aH=function(t,n,e){return{showTransitionParams:t,hideTransitionParams:n,transform:e}},lH=function(t){return{value:"visible",params:t}},cH=function(t){return{mode:t}},uH=function(t){return{$implicit:t}};function dH(t,n){if(1&t){const e=be();y(0,"div",1,3),F("click",function(r){return L(e),V(C(2).onOverlayContentClick(r))})("@overlayContentAnimation.start",function(r){return L(e),V(C(2).onOverlayContentAnimationStart(r))})("@overlayContentAnimation.done",function(r){return L(e),V(C(2).onOverlayContentAnimationDone(r))}),pi(2),S(3,oH,1,0,"ng-container",4),v()}if(2&t){const e=C(2);Ke(e.contentStyleClass),g("ngStyle",e.contentStyle)("ngClass","p-overlay-content")("@overlayContentAnimation",le(11,lH,fr(7,aH,e.showTransitionOptions,e.hideTransitionOptions,e.transformOptions[e.modal?e.overlayResponsiveDirection:"default"]))),m(3),g("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",le(15,uH,le(13,cH,e.overlayMode)))}}const hH=function(t,n,e,i,r,s,o,a,l,c,u,d,h,p){return{"p-overlay p-component":!0,"p-overlay-modal p-component-overlay p-component-overlay-enter":t,"p-overlay-center":n,"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":p}};function pH(t,n){if(1&t){const e=be();y(0,"div",1,2),F("click",function(r){return L(e),V(C().onOverlayClick(r))}),S(2,dH,4,17,"div",0),v()}if(2&t){const e=C();Ke(e.styleClass),g("ngStyle",e.style)("ngClass",Kv(5,hH,[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])),m(2),g("ngIf",e.visible)}}const fH=["*"],gH={provide:en,useExisting:ye(()=>JS),multi:!0},mH=ND([Sr({transform:"{{transform}}",opacity:0}),oa("{{showTransitionParams}}")]),_H=ND([oa("{{hideTransitionParams}}",Sr({transform:"{{transform}}",opacity:0}))]);let JS=(()=>{class t{constructor(e,i,r,s,o,a){this.document=e,this.el=i,this.renderer=r,this.config=s,this.overlayService=o,this.zone=a,this.visibleChange=new U,this.onBeforeShow=new U,this.onShow=new U,this.onBeforeHide=new U,this.onHide=new U,this.onAnimationStart=new U,this.onAnimationDone=new U,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 Me.merge(this._style,this.modal?this.overlayResponsiveOptions?.style:this.overlayOptions?.style)}set style(e){this._style=e}get styleClass(){return Me.merge(this._styleClass,this.modal?this.overlayResponsiveOptions?.styleClass:this.overlayOptions?.styleClass)}set styleClass(e){this._styleClass=e}get contentStyle(){return Me.merge(this._contentStyle,this.modal?this.overlayResponsiveOptions?.contentStyle:this.overlayOptions?.contentStyle)}set contentStyle(e){this._contentStyle=e}get contentStyleClass(){return Me.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.visible&&(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(e){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&&Ui.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),Ui.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(),this.bindDocumentKeyboardListener()}unbindListeners(){this.unbindScrollListener(),this.unbindDocumentClickListener(),this.unbindDocumentResizeListener(),this.unbindDocumentKeyboardListener()}bindScrollListener(){this.scrollHandler||(this.scrollHandler=new UD(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(this.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)}bindDocumentKeyboardListener(){this.documentKeyboardListener||this.zone.runOutsideAngular(()=>{this.documentKeyboardListener=this.renderer.listen(this.window,"keydown",e=>{this.overlayOptions.hideOnEscape&&27===e.keyCode&&(this.listener?this.listener(e,{type:"keydown",mode:this.overlayMode,valid:!A.isTouchDevice()}):!A.isTouchDevice())&&this.zone.run(()=>{this.hide(e,!0)})})})}unbindDocumentKeyboardListener(){this.documentKeyboardListener&&(this.documentKeyboardListener(),this.documentKeyboardListener=null)}ngOnDestroy(){this.hide(this.overlayEl,!0),this.overlayEl&&(A.appendOverlay(this.overlayEl,this.targetEl,this.appendTo),Ui.clear(this.overlayEl)),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindListeners()}}return t.\u0275fac=function(e){return new(e||t)(D(Qe),D($e),D(Yt),D(ua),D(LV),D(Te))},t.\u0275cmp=Ie({type:t,selectors:[["p-overlay"]],contentQueries:function(e,i,r){if(1&e&&xn(r,ti,4),2&e){let s;De(s=Se())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&(Je(rH,5),Je(sH,5)),2&e){let r;De(r=Se())&&(i.overlayViewChild=r.first),De(r=Se())&&(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:[Pe([gH])],ngContentSelectors:fH,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&&(Ri(),S(0,pH,3,20,"div",0)),2&e&&g("ngIf",i.modalVisible)},dependencies:[Qn,Dt,Yn,Zn],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:[Gp("overlayContentAnimation",[aa(":enter",[FD(mH)]),aa(":leave",[FD(_H)])])]},changeDetection:0}),t})(),eE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({imports:[St,Ln,Ln]}),t})();const yH=["element"],vH=["content"];function wH(t,n){1&t&&fe(0)}const wf=function(t,n){return{$implicit:t,options:n}};function CH(t,n){if(1&t&&(oe(0),S(1,wH,1,0,"ng-container",7),ae()),2&t){const e=C(2);m(1),g("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Ft(2,wf,e.loadedItems,e.getContentOptions()))}}function bH(t,n){1&t&&fe(0)}function DH(t,n){if(1&t&&(oe(0),S(1,bH,1,0,"ng-container",7),ae()),2&t){const e=n.$implicit,i=n.index,r=C(3);m(1),g("ngTemplateOutlet",r.itemTemplate)("ngTemplateOutletContext",Ft(2,wf,e,r.getOptions(i)))}}const SH=function(t){return{"p-scroller-loading":t}};function EH(t,n){if(1&t&&(y(0,"div",8,9),S(2,DH,2,5,"ng-container",10),v()),2&t){const e=C(2);g("ngClass",le(4,SH,e.d_loading))("ngStyle",e.contentStyle),m(2),g("ngForOf",e.loadedItems)("ngForTrackBy",e._trackBy||e.index)}}function IH(t,n){1&t&&G(0,"div",11),2&t&&g("ngStyle",C(2).spacerStyle)}function TH(t,n){1&t&&fe(0)}const MH=function(t){return{numCols:t}},tE=function(t){return{options:t}};function AH(t,n){if(1&t&&(oe(0),S(1,TH,1,0,"ng-container",7),ae()),2&t){const e=n.index,i=C(4);m(1),g("ngTemplateOutlet",i.loaderTemplate)("ngTemplateOutletContext",le(4,tE,i.getLoaderOptions(e,i.both&&le(2,MH,i._numItemsInViewport.cols))))}}function OH(t,n){if(1&t&&(oe(0),S(1,AH,2,6,"ng-container",14),ae()),2&t){const e=C(3);m(1),g("ngForOf",e.loaderArr)}}function PH(t,n){1&t&&fe(0)}const xH=function(){return{styleClass:"p-scroller-loading-icon"}};function RH(t,n){if(1&t&&(oe(0),S(1,PH,1,0,"ng-container",7),ae()),2&t){const e=C(4);m(1),g("ngTemplateOutlet",e.loaderIconTemplate)("ngTemplateOutletContext",le(3,tE,pr(2,xH)))}}function NH(t,n){1&t&&G(0,"i",16)}function FH(t,n){if(1&t&&(S(0,RH,2,5,"ng-container",0),S(1,NH,1,0,"ng-template",null,15,gi)),2&t){const e=An(2);g("ngIf",C(3).loaderIconTemplate)("ngIfElse",e)}}const kH=function(t){return{"p-component-overlay":t}};function LH(t,n){if(1&t&&(y(0,"div",12),S(1,OH,2,1,"ng-container",0),S(2,FH,3,2,"ng-template",null,13,gi),v()),2&t){const e=An(3),i=C(2);g("ngClass",le(3,kH,!i.loaderTemplate)),m(1),g("ngIf",i.loaderTemplate)("ngIfElse",e)}}const VH=function(t,n,e){return{"p-scroller":!0,"p-scroller-inline":t,"p-both-scroll":n,"p-horizontal-scroll":e}};function BH(t,n){if(1&t){const e=be();oe(0),y(1,"div",2,3),F("scroll",function(r){return L(e),V(C().onContainerScroll(r))}),S(3,CH,2,5,"ng-container",0),S(4,EH,3,6,"ng-template",null,4,gi),S(6,IH,1,1,"div",5),S(7,LH,4,5,"div",6),v(),ae()}if(2&t){const e=An(5),i=C();m(1),Ke(i._styleClass),g("ngStyle",i._style)("ngClass",fr(10,VH,i.inline,i.both,i.horizontal)),Be("id",i._id)("tabindex",i.tabindex),m(2),g("ngIf",i.contentTemplate)("ngIfElse",e),m(3),g("ngIf",i._showSpacer),m(1),g("ngIf",!i.loaderDisabled&&i._showLoader&&i.d_loading)}}function HH(t,n){1&t&&fe(0)}const $H=function(t,n){return{rows:t,columns:n}};function UH(t,n){if(1&t&&(oe(0),S(1,HH,1,0,"ng-container",7),ae()),2&t){const e=C(2);m(1),g("ngTemplateOutlet",e.contentTemplate)("ngTemplateOutletContext",Ft(5,wf,e.items,Ft(2,$H,e._items,e.loadedColumns)))}}function jH(t,n){if(1&t&&(pi(0),S(1,UH,2,8,"ng-container",17)),2&t){const e=C();m(1),g("ngIf",e.contentTemplate)}}const zH=["*"];let GH=(()=>{class t{constructor(e,i){this.cd=e,this.zone=i,this.onLazyLoad=new U,this.onScroll=new U,this.onScrollIndexChange=new U,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.isRangeChanged=!1,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(),this.calculateAutoSize())}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(){Promise.resolve().then(()=>{this.viewInit()})}ngAfterViewChecked(){this.initialized||this.viewInit()}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.defaultContentWidth=A.getWidth(this.contentEl),this.defaultContentHeight=A.getHeight(this.contentEl),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=(u=0,d)=>u<=d?0:u,a=(u,d,h)=>u*d+h,l=(u=0,d=0)=>this.scrollTo({left:u,top:d,behavior:i});let c=0;this.both?(c={rows:o(e[0],r[0]),cols:o(e[1],r[1])},l(a(c.cols,this._itemSize[1],s.left),a(c.rows,this._itemSize[0],s.top))):(c=o(e,r),this.horizontal?l(a(c,this._itemSize,s.left),0):l(0,a(c,this._itemSize,s.top))),this.isRangeChanged=this.first!==c,this.first=c}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",this.contentEl.style.position="relative",this.elementViewChild.nativeElement.style.contain="none";const[e,i]=[A.getWidth(this.contentEl),A.getHeight(this.contentEl)];e!==this.defaultContentWidth&&(this.elementViewChild.nativeElement.style.width=""),i!==this.defaultContentHeight&&(this.elementViewChild.nativeElement.style.height="");const[r,s]=[A.getWidth(this.elementViewChild.nativeElement),A.getHeight(this.elementViewChild.nativeElement)];(this.both||this.horizontal)&&(this.elementViewChild.nativeElement.style.width=r<this.defaultWidth?r+"px":this._scrollWidth||this.defaultWidth+"px"),(this.both||this.vertical)&&(this.elementViewChild.nativeElement.style.height=s<this.defaultHeight?s+"px":this._scrollHeight||this.defaultHeight+"px"),this.contentEl.style.minHeight=this.contentEl.style.minWidth="",this.contentEl.style.position="",this.elementViewChild.nativeElement.style.contain=""}})}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=(w,b)=>w?w>b?w-b:w:0,o=(w,b)=>Math.floor(w/(b||w)),a=(w,b,T,E,O,te)=>w<=O?O:te?T-E-O:b+O-1,l=(w,b,T,E,O,te,he)=>w<=te?0:Math.max(0,he?w<b?T:w-te:w>b?T:w-2*te),c=(w,b,T,E,O,te=!1)=>{let he=b+E+2*O;return w>=O&&(he+=O+1),this.getLast(he,te)},u=s(i.scrollTop,r.top),d=s(i.scrollLeft,r.left);let h=this.both?{rows:0,cols:0}:0,p=this.last,f=!1,_=this.lastScrollPos;if(this.both){const w=this.lastScrollPos.top<=u,b=this.lastScrollPos.left<=d;if(!this._appendOnly||this._appendOnly&&(w||b)){const T={rows:o(u,this._itemSize[0]),cols:o(d,this._itemSize[1])},E={rows:a(T.rows,this.first.rows,this.last.rows,this.numItemsInViewport.rows,this.d_numToleratedItems[0],w),cols:a(T.cols,this.first.cols,this.last.cols,this.numItemsInViewport.cols,this.d_numToleratedItems[1],b)};h={rows:l(T.rows,E.rows,this.first.rows,0,0,this.d_numToleratedItems[0],w),cols:l(T.cols,E.cols,this.first.cols,0,0,this.d_numToleratedItems[1],b)},p={rows:c(T.rows,h.rows,0,this.numItemsInViewport.rows,this.d_numToleratedItems[0]),cols:c(T.cols,h.cols,0,this.numItemsInViewport.cols,this.d_numToleratedItems[1],!0)},f=h.rows!==this.first.rows||p.rows!==this.last.rows||h.cols!==this.first.cols||p.cols!==this.last.cols||this.isRangeChanged,_={top:u,left:d}}}else{const w=this.horizontal?d:u,b=this.lastScrollPos<=w;if(!this._appendOnly||this._appendOnly&&b){const T=o(w,this._itemSize);h=l(T,a(T,this.first,this.last,this.numItemsInViewport,this.d_numToleratedItems,b),this.first,0,0,this.d_numToleratedItems,b),p=c(T,h,0,this.numItemsInViewport,this.d_numToleratedItems),f=h!==this.first||p!==this.last||this.isRangeChanged,_=w}}return{first:h,last:p,isRangeChanged:f,scrollPos:_}}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.defaultContentWidth=A.getWidth(this.contentEl),this.defaultContentHeight=A.getHeight(this.contentEl),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 t.\u0275fac=function(e){return new(e||t)(D(Ut),D(Te))},t.\u0275cmp=Ie({type:t,selectors:[["p-scroller"]],contentQueries:function(e,i,r){if(1&e&&xn(r,ti,4),2&e){let s;De(s=Se())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&(Je(yH,5),Je(vH,5)),2&e){let r;De(r=Se())&&(i.elementViewChild=r.first),De(r=Se())&&(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:[pt],ngContentSelectors:zH,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&&(Ri(),S(0,BH,8,14,"ng-container",0),S(1,jH,2,1,"ng-template",null,1,gi)),2&e){const r=An(2);g("ngIf",!i._disabled)("ngIfElse",r)}},dependencies:[Qn,Jt,Dt,Yn,Zn],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}),t})(),nE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({imports:[St]}),t})();function WH(t,n){if(1&t&&(y(0,"span"),P(1),v()),2&t){const e=C();let i;m(1),_e(null!==(i=e.label)&&void 0!==i?i:"empty")}}function qH(t,n){1&t&&fe(0)}const va=function(t){return{height:t}},KH=function(t,n){return{"p-dropdown-item":!0,"p-highlight":t,"p-disabled":n}},Cf=function(t){return{$implicit:t}},QH=["container"],ZH=["filter"],YH=["in"],XH=["editableInput"],JH=["items"],e3=["scroller"],t3=["overlay"];function n3(t,n){if(1&t&&(oe(0),P(1),ae()),2&t){const e=C(2);m(1),_e(e.label||"empty")}}function i3(t,n){1&t&&fe(0)}const r3=function(t){return{"p-dropdown-label p-inputtext":!0,"p-dropdown-label-empty":t}};function s3(t,n){if(1&t&&(y(0,"span",14),S(1,n3,2,1,"ng-container",15),S(2,i3,1,0,"ng-container",16),v()),2&t){const e=C();g("ngClass",le(9,r3,null==e.label||0===e.label.length))("pTooltip",e.tooltip)("tooltipPosition",e.tooltipPosition)("positionStyle",e.tooltipPositionStyle)("tooltipStyleClass",e.tooltipStyleClass),Be("id",e.labelId),m(1),g("ngIf",!e.selectedItemTemplate),m(1),g("ngTemplateOutlet",e.selectedItemTemplate)("ngTemplateOutletContext",le(11,Cf,e.selectedOption))}}const o3=function(t){return{"p-dropdown-label p-inputtext p-placeholder":!0,"p-dropdown-label-empty":t}};function a3(t,n){if(1&t&&(y(0,"span",17),P(1),v()),2&t){const e=C();g("ngClass",le(2,o3,null==e.placeholder||0===e.placeholder.length)),m(1),_e(e.placeholder||"empty")}}function l3(t,n){if(1&t){const e=be();y(0,"input",18,19),F("input",function(r){return L(e),V(C().onEditableInputChange(r))})("focus",function(r){return L(e),V(C().onEditableInputFocus(r))})("blur",function(r){return L(e),V(C().onInputBlur(r))}),v()}if(2&t){const e=C();g("disabled",e.disabled),Be("maxlength",e.maxlength)("placeholder",e.placeholder)("aria-expanded",e.overlayVisible)}}function c3(t,n){if(1&t){const e=be();y(0,"i",20),F("click",function(r){return L(e),V(C().clear(r))}),v()}}function u3(t,n){1&t&&fe(0)}function d3(t,n){1&t&&fe(0)}const iE=function(t){return{options:t}};function h3(t,n){if(1&t&&(oe(0),S(1,d3,1,0,"ng-container",16),ae()),2&t){const e=C(3);m(1),g("ngTemplateOutlet",e.filterTemplate)("ngTemplateOutletContext",le(2,iE,e.filterOptions))}}function p3(t,n){if(1&t){const e=be();y(0,"div",30)(1,"input",31,32),F("keydown.enter",function(r){return r.preventDefault()})("keydown",function(r){return L(e),V(C(3).onKeydown(r,!1))})("input",function(r){return L(e),V(C(3).onFilterInputChange(r))}),v(),G(3,"span",33),v()}if(2&t){const e=C(3);m(1),g("value",e.filterValue||""),Be("placeholder",e.filterPlaceholder)("aria-label",e.ariaFilterLabel)("aria-activedescendant",e.overlayVisible?"p-highlighted-option":e.labelId)}}function f3(t,n){if(1&t&&(y(0,"div",27),F("click",function(i){return i.stopPropagation()}),S(1,h3,2,4,"ng-container",28),S(2,p3,4,4,"ng-template",null,29,gi),v()),2&t){const e=An(3),i=C(2);m(1),g("ngIf",i.filterTemplate)("ngIfElse",e)}}function g3(t,n){1&t&&fe(0)}const rE=function(t,n){return{$implicit:t,options:n}};function m3(t,n){if(1&t&&S(0,g3,1,0,"ng-container",16),2&t){const e=n.$implicit,i=n.options;C(2),g("ngTemplateOutlet",An(7))("ngTemplateOutletContext",Ft(2,rE,e,i))}}function _3(t,n){1&t&&fe(0)}function y3(t,n){if(1&t&&S(0,_3,1,0,"ng-container",16),2&t){const e=n.options;g("ngTemplateOutlet",C(4).loaderTemplate)("ngTemplateOutletContext",le(2,iE,e))}}function v3(t,n){1&t&&(oe(0),S(1,y3,1,4,"ng-template",36),ae())}function w3(t,n){if(1&t){const e=be();y(0,"p-scroller",34,35),F("onLazyLoad",function(r){return L(e),V(C(2).onLazyLoad.emit(r))}),S(2,m3,1,5,"ng-template",13),S(3,v3,2,0,"ng-container",15),v()}if(2&t){const e=C(2);fn(le(8,va,e.scrollHeight)),g("items",e.optionsToDisplay)("itemSize",e.virtualScrollItemSize||e._itemSize)("autoSize",!0)("lazy",e.lazy)("options",e.virtualScrollOptions),m(3),g("ngIf",e.loaderTemplate)}}function C3(t,n){1&t&&fe(0)}const b3=function(){return{}};function D3(t,n){if(1&t&&(oe(0),S(1,C3,1,0,"ng-container",16),ae()),2&t){C();const e=An(7),i=C();m(1),g("ngTemplateOutlet",e)("ngTemplateOutletContext",Ft(3,rE,i.optionsToDisplay,pr(2,b3)))}}function S3(t,n){if(1&t&&(y(0,"span"),P(1),v()),2&t){const e=C().$implicit,i=C(4);m(1),_e(i.getOptionGroupLabel(e)||"empty")}}function E3(t,n){1&t&&fe(0)}function I3(t,n){1&t&&fe(0)}const sE=function(t,n){return{$implicit:t,selectedOption:n}};function T3(t,n){if(1&t&&(y(0,"li",42),S(1,S3,2,1,"span",15),S(2,E3,1,0,"ng-container",16),v(),S(3,I3,1,0,"ng-container",16)),2&t){const e=n.$implicit,i=C(2).options,r=An(5),s=C(2);g("ngStyle",le(6,va,i.itemSize+"px")),m(1),g("ngIf",!s.groupTemplate),m(1),g("ngTemplateOutlet",s.groupTemplate)("ngTemplateOutletContext",le(8,Cf,e)),m(1),g("ngTemplateOutlet",r)("ngTemplateOutletContext",Ft(10,sE,s.getOptionGroupChildren(e),s.selectedOption))}}function M3(t,n){if(1&t&&(oe(0),S(1,T3,4,13,"ng-template",41),ae()),2&t){const e=C().$implicit;m(1),g("ngForOf",e)}}function A3(t,n){1&t&&fe(0)}function O3(t,n){if(1&t&&(oe(0),S(1,A3,1,0,"ng-container",16),ae()),2&t){const e=C().$implicit,i=An(5),r=C(2);m(1),g("ngTemplateOutlet",i)("ngTemplateOutletContext",Ft(2,sE,e,r.selectedOption))}}function P3(t,n){if(1&t){const e=be();y(0,"p-dropdownItem",43),F("onClick",function(r){return L(e),V(C(4).onItemClick(r))}),v()}if(2&t){const e=n.$implicit,i=C().selectedOption,r=C(3);g("option",e)("selected",i==e)("label",r.getOptionLabel(e))("disabled",r.isOptionDisabled(e))("template",r.itemTemplate)}}function x3(t,n){1&t&&S(0,P3,1,5,"ng-template",41),2&t&&g("ngForOf",n.$implicit)}function R3(t,n){if(1&t&&(oe(0),P(1),ae()),2&t){const e=C(4);m(1),ot(" ",e.emptyFilterMessageLabel," ")}}function N3(t,n){1&t&&fe(0,null,45)}function F3(t,n){if(1&t&&(y(0,"li",44),S(1,R3,2,1,"ng-container",28),S(2,N3,2,0,"ng-container",22),v()),2&t){const e=C().options,i=C(2);g("ngStyle",le(4,va,e.itemSize+"px")),m(1),g("ngIf",!i.emptyFilterTemplate&&!i.emptyTemplate)("ngIfElse",i.emptyFilter),m(1),g("ngTemplateOutlet",i.emptyFilterTemplate||i.emptyTemplate)}}function k3(t,n){if(1&t&&(oe(0),P(1),ae()),2&t){const e=C(4);m(1),ot(" ",e.emptyMessageLabel," ")}}function L3(t,n){1&t&&fe(0,null,46)}function V3(t,n){if(1&t&&(y(0,"li",44),S(1,k3,2,1,"ng-container",28),S(2,L3,2,0,"ng-container",22),v()),2&t){const e=C().options,i=C(2);g("ngStyle",le(4,va,e.itemSize+"px")),m(1),g("ngIf",!i.emptyTemplate)("ngIfElse",i.empty),m(1),g("ngTemplateOutlet",i.emptyTemplate)}}function B3(t,n){if(1&t&&(y(0,"ul",37,38),S(2,M3,2,1,"ng-container",15),S(3,O3,2,5,"ng-container",15),S(4,x3,1,1,"ng-template",null,39,gi),S(6,F3,3,6,"li",40),S(7,V3,3,6,"li",40),v()),2&t){const e=n.options,i=C(2);fn(e.contentStyle),g("ngClass",e.contentStyleClass),Be("id",i.listId),m(2),g("ngIf",i.group),m(1),g("ngIf",!i.group),m(3),g("ngIf",i.filterValue&&i.isEmpty()),m(1),g("ngIf",!i.filterValue&&i.isEmpty())}}function H3(t,n){1&t&&fe(0)}function $3(t,n){if(1&t&&(y(0,"div",21),S(1,u3,1,0,"ng-container",22),S(2,f3,4,2,"div",23),y(3,"div",24),S(4,w3,4,10,"p-scroller",25),S(5,D3,2,6,"ng-container",15),S(6,B3,8,8,"ng-template",null,26,gi),v(),S(8,H3,1,0,"ng-container",22),v()),2&t){const e=C();Ke(e.panelStyleClass),g("ngClass","p-dropdown-panel p-component")("ngStyle",e.panelStyle),m(1),g("ngTemplateOutlet",e.headerTemplate),m(1),g("ngIf",e.filter),m(1),eh("max-height",e.virtualScroll?"auto":e.scrollHeight||"auto"),m(1),g("ngIf",e.virtualScroll),m(1),g("ngIf",!e.virtualScroll),m(3),g("ngTemplateOutlet",e.footerTemplate)}}const U3=function(t,n,e,i){return{"p-dropdown p-component":!0,"p-disabled":t,"p-dropdown-open":n,"p-focus":e,"p-dropdown-clearable":i}},j3={provide:en,useExisting:ye(()=>oE),multi:!0};let z3=(()=>{class t{constructor(){this.onClick=new U}onOptionClick(e){this.onClick.emit({originalEvent:e,option:this.option})}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=Ie({type:t,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&&(y(0,"li",0),F("click",function(s){return i.onOptionClick(s)}),S(1,WH,2,1,"span",1),S(2,qH,1,0,"ng-container",2),v()),2&e&&(g("ngStyle",le(8,va,i.itemSize+"px"))("id",i.selected?"p-highlighted-option":"")("ngClass",Ft(10,KH,i.selected,i.disabled)),Be("aria-label",i.label)("aria-selected",i.selected),m(1),g("ngIf",!i.template),m(1),g("ngTemplateOutlet",i.template)("ngTemplateOutletContext",le(13,Cf,i.option)))},dependencies:[Qn,Dt,Yn,Zn,Oc],encapsulation:2}),t})(),oE=(()=>{class t{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 U,this.onFilter=new U,this.onFocus=new U,this.onBlur=new U,this.onClick=new U,this.onShow=new U,this.onHide=new U,this.onClear=new U,this.onLazyLoad=new U,this.onModelChange=()=>{},this.onModelTouched=()=>{},this.id=BD()}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&&Me.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"number"==typeof this.selectedOption&&(this.selectedOption=this.selectedOption.toString()),this.selectedOption?this.getOptionLabel(this.selectedOption):null}get emptyMessageLabel(){return this.emptyMessage||this.config.getTranslation($D.EMPTY_MESSAGE)}get emptyFilterMessageLabel(){return this.emptyFilterMessage||this.config.getTranslation($D.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?Me.resolveFieldData(e,this.optionLabel):e&&void 0!==e.label?e.label:e}getOptionValue(e){return this.optionValue?Me.resolveFieldData(e,this.optionValue):!this.optionLabel&&e&&void 0!==e.value?e.value:e}isOptionDisabled(e){return this.optionDisabled?Me.resolveFieldData(e,this.optionDisabled):!(!e||void 0===e.disabled)&&e.disabled}getOptionGroupLabel(e){return this.optionGroupLabel?Me.resolveFieldData(e,this.optionGroupLabel):e&&void 0!==e.label?e.label:e}getOptionGroupChildren(e){return this.optionGroupChildren?Me.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(){if(this.optionsChanged&&this.overlayVisible&&(this.optionsChanged=!1,this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.overlayViewChild&&this.overlayViewChild.alignOverlay()},1)})),this.selectedOptionUpdated&&this.itemsWrapper){let e=A.findSingle(this.overlayViewChild.overlayViewChild.nativeElement,"li.p-highlight");e&&A.scrollInView(this.itemsWrapper,e),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.overlayViewChild.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])||Me.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 t.\u0275fac=function(e){return new(e||t)(D($e),D(Yt),D(Ut),D(Te),D(kV),D(ua))},t.\u0275cmp=Ie({type:t,selectors:[["p-dropdown"]],contentQueries:function(e,i,r){if(1&e&&xn(r,ti,4),2&e){let s;De(s=Se())&&(i.templates=s)}},viewQuery:function(e,i){if(1&e&&(Je(QH,5),Je(ZH,5),Je(YH,5),Je(XH,5),Je(JH,5),Je(e3,5),Je(t3,5)),2&e){let r;De(r=Se())&&(i.containerViewChild=r.first),De(r=Se())&&(i.filterViewChild=r.first),De(r=Se())&&(i.accessibleViewChild=r.first),De(r=Se())&&(i.editableInputViewChild=r.first),De(r=Se())&&(i.itemsViewChild=r.first),De(r=Se())&&(i.scroller=r.first),De(r=Se())&&(i.overlayViewChild=r.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:4,hostBindings:function(e,i){2&e&&dr("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:[Pe([j3])],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&&(y(0,"div",0,1),F("click",function(s){return i.onMouseclick(s)}),y(2,"div",2)(3,"input",3,4),F("focus",function(s){return i.onInputFocus(s)})("blur",function(s){return i.onInputBlur(s)})("keydown",function(s){return i.onKeydown(s,!0)}),v()(),S(5,s3,3,13,"span",5),S(6,a3,2,4,"span",6),S(7,l3,2,4,"input",7),S(8,c3,1,0,"i",8),y(9,"div",9),G(10,"span",10),v(),y(11,"p-overlay",11,12),F("visibleChange",function(s){return i.overlayVisible=s})("onAnimationStart",function(s){return i.onOverlayAnimationStart(s)})("onHide",function(){return i.hide()}),S(13,$3,9,11,"ng-template",13),v()()),2&e&&(Ke(i.styleClass),g("ngClass",qv(27,U3,i.disabled,i.overlayVisible,i.focused,i.showClear&&!i.disabled))("ngStyle",i.style),m(3),g("disabled",i.disabled)("autofocus",i.autofocus),Be("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),m(2),g("ngIf",!i.editable&&null!=i.label),m(1),g("ngIf",!i.editable&&null==i.label),m(1),g("ngIf",i.editable),m(1),g("ngIf",i.isVisibleClearIcon),m(1),Be("aria-expanded",i.overlayVisible),m(1),g("ngClass",i.dropdownIcon),m(1),g("visible",i.overlayVisible)("options",i.overlayOptions)("target","@parent")("appendTo",i.appendTo)("autoZIndex",i.autoZIndex)("baseZIndex",i.baseZIndex)("showTransitionOptions",i.showTransitionOptions)("hideTransitionOptions",i.hideTransitionOptions))},dependencies:[Qn,Jt,Dt,Yn,Zn,JS,ti,jD,GH,nH,z3],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}),t})(),aE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({imports:[St,eE,Ln,zD,da,nE,iH,eE,Ln,nE]}),t})();const Or={button:"p-button",component:"p-component",iconOnly:"p-button-icon-only",disabled:"p-disabled",loading:"p-button-loading",labelOnly:"p-button-loading-label-only"};let W3=(()=>{class t{constructor(e){this.el=e,this.iconPos="left",this.loadingIcon="pi pi-spinner pi-spin",this._loading=!1,this._internalClasses=Object.values(Or)}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())}get htmlElement(){return this.el.nativeElement}ngAfterViewInit(){A.addMultipleClasses(this.htmlElement,this.getStyleClass().join(" ")),this.createIcon(),this.createLabel(),this.initialized=!0}getStyleClass(){const e=[Or.button,Or.component];return this.icon&&!this.label&&Me.isEmpty(this.htmlElement.textContent)&&e.push(Or.iconOnly),this.loading&&(e.push(Or.disabled,Or.loading),!this.icon&&this.label&&e.push(Or.labelOnly)),e}setStyleClass(){const e=this.getStyleClass();this.htmlElement.classList.remove(...this._internalClasses),this.htmlElement.classList.add(...e)}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.htmlElement.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.htmlElement.insertBefore(e,this.htmlElement.firstChild)}}updateLabel(){let e=A.findSingle(this.htmlElement,".p-button-label");this.label?e?e.textContent=this.label:this.createLabel():e&&this.htmlElement.removeChild(e)}updateIcon(){let e=A.findSingle(this.htmlElement,".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.htmlElement.removeChild(e)}getIconClass(){return this.loading?"p-button-loading-icon "+this.loadingIcon:this._icon}ngOnDestroy(){this.initialized=!1}}return t.\u0275fac=function(e){return new(e||t)(D($e))},t.\u0275dir=j({type:t,selectors:[["","pButton",""]],hostAttrs:[1,"p-element"],inputs:{iconPos:"iconPos",loadingIcon:"loadingIcon",label:"label",icon:"icon",loading:"loading"}}),t})(),q3=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({imports:[St,da]}),t})(),bf=(()=>{class t{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 t.\u0275fac=function(e){return new(e||t)(D($e),D(Fs,8),D(Ut))},t.\u0275dir=j({type:t,selectors:[["","pInputText",""]],hostAttrs:[1,"p-inputtext","p-component","p-element"],hostVars:2,hostBindings:function(e,i){1&e&&F("input",function(s){return i.onInput(s)}),2&e&&dr("p-filled",i.filled)}}),t})(),lE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({imports:[St]}),t})();const K3=["input"];function Q3(t,n){if(1&t){const e=be();y(0,"i",6),F("click",function(){return L(e),V(C().clear())}),v()}}const cE=function(){return{"p-inputnumber-button p-inputnumber-button-up":!0}},uE=function(){return{"p-inputnumber-button p-inputnumber-button-down":!0}};function Z3(t,n){if(1&t){const e=be();y(0,"span",7)(1,"button",8),F("mousedown",function(r){return L(e),V(C().onUpButtonMouseDown(r))})("mouseup",function(){return L(e),V(C().onUpButtonMouseUp())})("mouseleave",function(){return L(e),V(C().onUpButtonMouseLeave())})("keydown",function(r){return L(e),V(C().onUpButtonKeyDown(r))})("keyup",function(){return L(e),V(C().onUpButtonKeyUp())}),v(),y(2,"button",8),F("mousedown",function(r){return L(e),V(C().onDownButtonMouseDown(r))})("mouseup",function(){return L(e),V(C().onDownButtonMouseUp())})("mouseleave",function(){return L(e),V(C().onDownButtonMouseLeave())})("keydown",function(r){return L(e),V(C().onDownButtonKeyDown(r))})("keyup",function(){return L(e),V(C().onDownButtonKeyUp())}),v()()}if(2&t){const e=C();m(1),Ke(e.incrementButtonClass),g("ngClass",pr(10,cE))("icon",e.incrementButtonIcon)("disabled",e.disabled),m(1),Ke(e.decrementButtonClass),g("ngClass",pr(11,uE))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}function Y3(t,n){if(1&t){const e=be();y(0,"button",8),F("mousedown",function(r){return L(e),V(C().onUpButtonMouseDown(r))})("mouseup",function(){return L(e),V(C().onUpButtonMouseUp())})("mouseleave",function(){return L(e),V(C().onUpButtonMouseLeave())})("keydown",function(r){return L(e),V(C().onUpButtonKeyDown(r))})("keyup",function(){return L(e),V(C().onUpButtonKeyUp())}),v()}if(2&t){const e=C();Ke(e.incrementButtonClass),g("ngClass",pr(5,cE))("icon",e.incrementButtonIcon)("disabled",e.disabled)}}function X3(t,n){if(1&t){const e=be();y(0,"button",8),F("mousedown",function(r){return L(e),V(C().onDownButtonMouseDown(r))})("mouseup",function(){return L(e),V(C().onDownButtonMouseUp())})("mouseleave",function(){return L(e),V(C().onDownButtonMouseLeave())})("keydown",function(r){return L(e),V(C().onDownButtonKeyDown(r))})("keyup",function(){return L(e),V(C().onDownButtonKeyUp())}),v()}if(2&t){const e=C();Ke(e.decrementButtonClass),g("ngClass",pr(5,uE))("icon",e.decrementButtonIcon)("disabled",e.disabled)}}const J3=function(t,n,e){return{"p-inputnumber p-component":!0,"p-inputnumber-buttons-stacked":t,"p-inputnumber-buttons-horizontal":n,"p-inputnumber-buttons-vertical":e}},e$={provide:en,useExisting:ye(()=>dE),multi:!0};let dE=(()=>{class t{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 U,this.onFocus=new U,this.onBlur=new U,this.onKeyDown=new U,this.onClear=new U,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 p;if(r.isMinusSign)0===o&&(p=l,(-1===u||0!==a)&&(p=this.insertText(l,i,0,a)),this.updateValue(e,p,i,"insert"));else if(r.isDecimalSign)c>0&&o===c?this.updateValue(e,l,i,"insert"):(c>o&&c<a||-1===c&&this.maxFractionDigits)&&(p=this.insertText(l,i,o,a),this.updateValue(e,p,i,"insert"));else{const f=this.numberFormat.resolvedOptions().maximumFractionDigits,_=o!==a?"range-insert":"insert";if(c>0&&o>c){if(o+i.length-(c+1)<=f){const w=h>=o?h-1:d>=o?d:l.length;p=l.slice(0,o)+i+l.slice(o+i.length,w)+l.slice(w),this.updateValue(e,p,i,_)}}else p=this.insertText(l,i,o,a),this.updateValue(e,p,i,_)}}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)),f=(null!==h?h.toString():"").split("").join(`(${this.groupChar})?`),_=new RegExp(f,"g");_.test(a);const w=i.split("").join(`(${this.groupChar})?`),b=new RegExp(w,"g");b.test(a.slice(_.lastIndex)),u=_.lastIndex+b.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),p=o.charAt(u),f=l-d,_=this._group.test(p);_&&1===f?u+=1:!_&&this.isNumeralChar(h)&&(u+=-1*f+1),this._group.lastIndex=0,this.input.nativeElement.setSelectionRange(u,u)}else if("-"===o&&"insert"===r){this.input.nativeElement.setSelectionRange(0,0);const p=this.initCursor()+i.length+1;this.input.nativeElement.setSelectionRange(p,p)}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 t.\u0275fac=function(e){return new(e||t)(D($e),D(Ut))},t.\u0275cmp=Ie({type:t,selectors:[["p-inputNumber"]],viewQuery:function(e,i){if(1&e&&Je(K3,5),2&e){let r;De(r=Se())&&(i.input=r.first)}},hostAttrs:[1,"p-element","p-inputwrapper"],hostVars:6,hostBindings:function(e,i){2&e&&dr("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:[Pe([e$]),pt],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","","tabindex","-1",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","","tabindex","-1",3,"ngClass","icon","disabled","mousedown","mouseup","mouseleave","keydown","keyup"]],template:function(e,i){1&e&&(y(0,"span",0)(1,"input",1,2),F("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)}),v(),S(3,Q3,1,0,"i",3),S(4,Z3,3,12,"span",4),S(5,Y3,1,6,"button",5),S(6,X3,1,6,"button",5),v()),2&e&&(Ke(i.styleClass),g("ngClass",fr(28,J3,i.showButtons&&"stacked"===i.buttonLayout,i.showButtons&&"horizontal"===i.buttonLayout,i.showButtons&&"vertical"===i.buttonLayout))("ngStyle",i.style),m(1),Ke(i.inputStyleClass),g("ngClass","p-inputnumber-input")("ngStyle",i.inputStyle)("value",i.formattedValue())("disabled",i.disabled)("readonly",i.readonly),Be("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),m(2),g("ngIf","vertical"!=i.buttonLayout&&i.showClear&&i.value),m(1),g("ngIf",i.showButtons&&"stacked"===i.buttonLayout),m(1),g("ngIf",i.showButtons&&"stacked"!==i.buttonLayout),m(1),g("ngIf",i.showButtons&&"stacked"!==i.buttonLayout))},dependencies:[Qn,Dt,Zn,bf,W3],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}),t})(),hE=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({imports:[St,lE,q3]}),t})();function t$(t,n){1&t&&fe(0)}const Df=function(t){return{$implicit:t}};function n$(t,n){if(1&t&&(y(0,"div",15),S(1,t$,1,0,"ng-container",16),v()),2&t){const e=C(2);m(1),g("ngTemplateOutlet",e.templateLeft)("ngTemplateOutletContext",le(2,Df,e.paginatorState))}}function i$(t,n){if(1&t&&(y(0,"span",17),P(1),v()),2&t){const e=C(2);m(1),_e(e.currentPageReport)}}const $c=function(t){return{"p-disabled":t}};function r$(t,n){if(1&t){const e=be();y(0,"button",18),F("click",function(r){return L(e),V(C(2).changePageToFirst(r))}),G(1,"span",19),v()}if(2&t){const e=C(2);g("disabled",e.isFirstPage()||e.empty())("ngClass",le(2,$c,e.isFirstPage()||e.empty()))}}const s$=function(t){return{"p-highlight":t}};function o$(t,n){if(1&t){const e=be();y(0,"button",22),F("click",function(r){const o=L(e).$implicit;return V(C(3).onPageLinkClick(r,o-1))}),P(1),v()}if(2&t){const e=n.$implicit,i=C(3);g("ngClass",le(2,s$,e-1==i.getPage())),m(1),ot(" ",e," ")}}function a$(t,n){if(1&t&&(y(0,"span",20),S(1,o$,2,4,"button",21),v()),2&t){const e=C(2);m(1),g("ngForOf",e.pageLinks)}}function l$(t,n){1&t&&P(0),2&t&&_e(C(3).currentPageReport)}function c$(t,n){if(1&t){const e=be();y(0,"p-dropdown",23),F("onChange",function(r){return L(e),V(C(2).onPageDropdownChange(r))}),S(1,l$,1,1,"ng-template",24),v()}if(2&t){const e=C(2);g("options",e.pageItems)("ngModel",e.getPage())("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight)}}function u$(t,n){if(1&t){const e=be();y(0,"button",25),F("click",function(r){return L(e),V(C(2).changePageToLast(r))}),G(1,"span",26),v()}if(2&t){const e=C(2);g("disabled",e.isLastPage()||e.empty())("ngClass",le(2,$c,e.isLastPage()||e.empty()))}}function d$(t,n){if(1&t){const e=be();y(0,"p-inputNumber",27),F("ngModelChange",function(r){return L(e),V(C(2).changePage(r-1))}),v()}if(2&t){const e=C(2);g("ngModel",e.currentPage())("disabled",e.empty())}}function h$(t,n){1&t&&fe(0)}function p$(t,n){if(1&t&&S(0,h$,1,0,"ng-container",16),2&t){const e=n.$implicit;g("ngTemplateOutlet",C(4).dropdownItemTemplate)("ngTemplateOutletContext",le(2,Df,e))}}function f$(t,n){1&t&&(oe(0),S(1,p$,1,4,"ng-template",30),ae())}function g$(t,n){if(1&t){const e=be();y(0,"p-dropdown",28),F("ngModelChange",function(r){return L(e),V(C(2).rows=r)})("onChange",function(r){return L(e),V(C(2).onRppChange(r))}),S(1,f$,2,0,"ng-container",29),v()}if(2&t){const e=C(2);g("options",e.rowsPerPageItems)("ngModel",e.rows)("disabled",e.empty())("appendTo",e.dropdownAppendTo)("scrollHeight",e.dropdownScrollHeight),m(1),g("ngIf",e.dropdownItemTemplate)}}function m$(t,n){1&t&&fe(0)}function _$(t,n){if(1&t&&(y(0,"div",31),S(1,m$,1,0,"ng-container",16),v()),2&t){const e=C(2);m(1),g("ngTemplateOutlet",e.templateRight)("ngTemplateOutletContext",le(2,Df,e.paginatorState))}}function y$(t,n){if(1&t){const e=be();y(0,"div",1),S(1,n$,2,4,"div",2),S(2,i$,2,1,"span",3),S(3,r$,2,4,"button",4),y(4,"button",5),F("click",function(r){return L(e),V(C().changePageToPrev(r))}),G(5,"span",6),v(),S(6,a$,2,1,"span",7),S(7,c$,2,5,"p-dropdown",8),y(8,"button",9),F("click",function(r){return L(e),V(C().changePageToNext(r))}),G(9,"span",10),v(),S(10,u$,2,4,"button",11),S(11,d$,1,2,"p-inputNumber",12),S(12,g$,2,6,"p-dropdown",13),S(13,_$,2,4,"div",14),v()}if(2&t){const e=C();Ke(e.styleClass),g("ngStyle",e.style)("ngClass","p-paginator p-component"),m(1),g("ngIf",e.templateLeft),m(1),g("ngIf",e.showCurrentPageReport),m(1),g("ngIf",e.showFirstLastIcon),m(1),g("disabled",e.isFirstPage()||e.empty())("ngClass",le(17,$c,e.isFirstPage()||e.empty())),m(2),g("ngIf",e.showPageLinks),m(1),g("ngIf",e.showJumpToPageDropdown),m(1),g("disabled",e.isLastPage()||e.empty())("ngClass",le(19,$c,e.isLastPage()||e.empty())),m(2),g("ngIf",e.showFirstLastIcon),m(1),g("ngIf",e.showJumpToPageInput),m(1),g("ngIf",e.rowsPerPageOptions),m(1),g("ngIf",e.templateRight)}}let pE=(()=>{class t{constructor(e){this.cd=e,this.pageLinkSize=5,this.onPageChange=new U,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 t.\u0275fac=function(e){return new(e||t)(D(Ut))},t.\u0275cmp=Ie({type:t,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:[pt],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,y$,14,21,"div",0),2&e&&g("ngIf",!!i.alwaysShow||i.pageLinks&&i.pageLinks.length>1)},dependencies:[Qn,Jt,Dt,Yn,Zn,oE,ti,dE,Rc,Fs,Oc],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}),t})(),v$=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({imports:[St,aE,hE,XS,Ln,da,aE,hE,XS,Ln]}),t})();function w$(t,n){if(1&t&&(y(0,"div",9),G(1,"item",10),v()),2&t){const e=n.$implicit;m(1),g("itemMovie",e)}}class ks{constructor(n,e){this.moviesService=n,this.route=e,this.movies=[],this.genreId=null,this.searchValue=null,this.totalRecords=0}ngOnInit(){this.route.params.pipe(yr(1)).subscribe(({genreId:n})=>{n?(this.genreId=n,this.getMoviesByGenre(n,1)):this.getPagedMovies(1)})}getMoviesByGenre(n,e){this.moviesService.getMoviesByGenres(n,e).subscribe(i=>{this.movies=i.results,this.totalRecords=i.total_results})}getPagedMovies(n,e){this.moviesService.searchMovie(n,e).subscribe(i=>{this.movies=i.results,this.totalRecords=i.total_results})}paginate(n){const e=n.page+1;this.genreId?this.getMoviesByGenre(this.genreId,e):this.searchValue?this.getPagedMovies(e,this.searchValue):this.getPagedMovies(e)}searchChange(){this.searchValue&&this.getPagedMovies(1,this.searchValue)}}function C$(t,n){1&t&&(oe(0),P(1,","),ae())}function b$(t,n){if(1&t&&(y(0,"span"),P(1),S(2,C$,2,0,"ng-container",0),v()),2&t){const e=n.$implicit,i=n.index,r=C(2);m(1),ot(" ",e.name,""),m(1),g("ngIf",i+1!=r.tvShow.genres.length)}}function D$(t,n){if(1&t&&(oe(0),y(1,"div",17),G(2,"video-embed",18),v(),ae()),2&t){const e=n.$implicit;m(2),g("key",e.key)("site",e.site)}}function S$(t,n){if(1&t&&(oe(0),y(1,"div",17),G(2,"p-image",19),v(),ae()),2&t){const e=n.$implicit,i=C(2);m(2),g("src",i.imageSizes.large+e.file_path)("preview",!0)}}function E$(t,n){if(1&t&&(y(0,"div",22),G(1,"img",23),y(2,"span"),P(3),v()()),2&t){const e=n.$implicit,i=C(3);m(1),g("src",i.imageSizes.medium+e.profile_path,dn),m(2),_e(e.name)}}function I$(t,n){if(1&t&&(y(0,"p-carousel",20),S(1,E$,4,2,"ng-template",21),v()),2&t){const e=C(2);g("numVisible",7)("value",e.tvShowCredit.cast)}}ks.\u0275fac=function(n){return new(n||ks)(D(Di),D(ei))},ks.\u0275cmp=Ie({type:ks,selectors:[["app-movies"]],decls:11,vars:4,consts:[[1,"container"],[1,"grid"],[1,"col-12"],[1,"p-fluid"],[1,"p-input-icon-left"],[1,"pi","pi-search"],["type","text","pInputText","","placeholder","Search",3,"ngModel","ngModelChange","change"],["class","col-6 md:col-3 lg:col-3",4,"ngFor","ngForOf"],[3,"rows","totalRecords","onPageChange"],[1,"col-6","md:col-3","lg:col-3"],[3,"itemMovie"]],template:function(n,e){1&n&&(y(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),G(5,"i",5),y(6,"input",6),F("ngModelChange",function(r){return e.searchValue=r})("change",function(){return e.searchChange()}),v()()()()(),y(7,"div",1),S(8,w$,2,1,"div",7),v(),y(9,"div")(10,"p-paginator",8),F("onPageChange",function(r){return e.paginate(r)}),v()()()),2&n&&(m(6),g("ngModel",e.searchValue),m(2),g("ngForOf",e.movies),m(2),g("rows",10)("totalRecords",e.totalRecords))},dependencies:[Jt,pE,pa,Rc,Fs,bf,Ir]});const T$=function(t){return[t]};function M$(t,n){if(1&t&&(oe(0),G(1,"slider",1),y(2,"p-tabView")(3,"p-tabPanel",2)(4,"div",3)(5,"div",4),G(6,"img",5),v(),y(7,"div",6)(8,"h2"),P(9,"Overview"),v(),y(10,"p",7),P(11),v(),y(12,"div",8)(13,"div",9),P(14,"First Air Date:"),v(),y(15,"div",10),P(16),fi(17,"date"),v()(),y(18,"div",8)(19,"div",9),P(20,"Language:"),v(),y(21,"div",10),P(22),fi(23,"uppercase"),v()(),y(24,"div",8)(25,"div",9),P(26,"Vote Count:"),v(),y(27,"div",10),P(28),v()(),y(29,"div",8)(30,"div",9),P(31,"Popularity:"),v(),y(32,"div",10),P(33),v()(),y(34,"div",8)(35,"div",9),P(36,"Status:"),v(),y(37,"div",10),P(38),v()(),y(39,"div",8)(40,"div",9),P(41,"Genres:"),v(),y(42,"div",10),S(43,b$,3,2,"span",11),v()()()()(),y(44,"p-tabPanel",12)(45,"div",3),S(46,D$,3,2,"ng-container",11),v()(),y(47,"p-tabPanel",13),G(48,"p-image",14),y(49,"div",3),S(50,S$,3,2,"ng-container",11),v()()(),S(51,I$,2,2,"p-carousel",15),G(52,"items-banner",16),ae()),2&t){const e=C();m(1),g("itemsTvShows",le(20,T$,e.tvShow))("isBanner",!0),m(5),g("src",e.imageSizes.medium+e.tvShow.poster_path,dn)("alt",e.tvShow.name),m(5),_e(e.tvShow.overview),m(5),ot(" ",gr(17,15,e.tvShow.first_air_date,"dd.MM.yyyy")," "),m(6),ot(" ",uh(23,18,e.tvShow.original_language)," "),m(6),ot(" ",e.tvShow.vote_count," "),m(5),ot("",e.tvShow.popularity," min"),m(5),_e(e.tvShow.status),m(5),g("ngForOf",e.tvShow.genres),m(3),g("ngForOf",e.tvShowVideo),m(4),g("ngForOf",null==e.tvShowImages?null:e.tvShowImages.backdrops),m(1),g("ngIf",e.tvShowCredit),m(1),g("itemsTvShows",e.similarTvShows)}}class wa{constructor(n,e,i){this.route=n,this.tvShowsService=e,this.router=i,this.tvShow=null,this.tvShowVideo=[],this.tvShowImages=null,this.tvShowCredit=null,this.imageSizes=Ac,this.similarTvShows=[]}ngOnInit(){this.urlSubscription=this.route.params.subscribe(n=>{this.getTvShows(n.id),this.getTvShowsVideos(n.id),this.getTvShowsImages(n.id),this.getTvShowsCredits(n.id),this.getTvShowsSimilar(n.id),this.router.navigateByUrl("/tvshow/"+n.id)})}ngOnDestroy(){this.urlSubscription.unsubscribe()}getTvShowsSimilar(n){this.tvShowsService.getTvShowSimilar(n).subscribe(e=>{this.similarTvShows=e})}getTvShowsCredits(n){this.tvShowsService.getTvShowCredits(n).subscribe(e=>{this.tvShowCredit=e})}getTvShowsImages(n){this.tvShowsService.getTvShowImages(n).subscribe(e=>{this.tvShowImages=e})}getTvShowsVideos(n){this.tvShowsService.getTvShowVideos(n).subscribe(e=>{this.tvShowVideo=e})}getTvShows(n){this.tvShowsService.getTvShow(n).subscribe(e=>{this.tvShow=e})}}function A$(t,n){if(1&t&&(y(0,"div",9),G(1,"item",10),v()),2&t){const e=n.$implicit;m(1),g("itemTvShow",e)}}wa.\u0275fac=function(n){return new(n||wa)(D(ei),D(Si),D(Lt))},wa.\u0275cmp=Ie({type:wa,selectors:[["app-tvshow"]],decls:1,vars:1,consts:[[4,"ngIf"],[3,"itemsTvShows","isBanner"],["header","Overviews"],[1,"grid"],[1,"col-12","md:col-3","lg:col-3"],[1,"poster",3,"src","alt"],[1,"col-12","md:col-9","lg:col-9"],[1,"overview"],[1,"stat"],[1,"label"],[1,"value"],[4,"ngFor","ngForOf"],["header","Videos"],["header","Photos"],["src","","alt","Image","width","250"],[3,"numVisible","value",4,"ngIf"],["title","Similar Movies",3,"itemsTvShows"],[1,"col-12","md:col-4","lg:col-4"],[3,"key","site"],["alt","Image","width","100%",3,"src","preview"],[3,"numVisible","value"],["pTemplate","item"],[1,"actor"],["alt","",3,"src"]],template:function(n,e){1&n&&S(0,M$,53,22,"ng-container",0),2&n&&g("ngIf",e.tvShow)},dependencies:[Jt,Dt,ti,Qp,Kp,WD,KD,Er,Tr,Rs,Xh,Lo],styles:["[_nghost-%COMP%] .p-tabview-nav{justify-content:center}[_nghost-%COMP%] .p-tabview-nav li .p-tabview.nav.link{background:#141414}[_nghost-%COMP%] .p-tabview-nav li.p-highlight .p-tabview-nav-link{background:#141414}[_nghost-%COMP%] .poster{max-width:100%}[_nghost-%COMP%] .overview{line-height:1.5}[_nghost-%COMP%] .stat{display:flex;margin-bottom:15px}[_nghost-%COMP%] .stat .label{width:150px;font-weight:700}[_nghost-%COMP%] .stat .value{color:#ffd54f}[_nghost-%COMP%] .actor{padding:10px}[_nghost-%COMP%] .actor img{width:100%}[_nghost-%COMP%] .actor span{display:block;text-align:center;margin:10px 0}"]});class Ls{constructor(n,e){this.tvShowsService=n,this.route=e,this.tvShows=[],this.genreId=null,this.searchValue=null,this.totalRecords=0}ngOnInit(){this.route.params.pipe(yr(1)).subscribe(({genreId:n})=>{n?(this.genreId=n,this.getTvShowsByGenre(n,1)):this.getPagedTvShows(1)})}getPagedTvShows(n,e){this.tvShowsService.searchTvShow(n,e).subscribe(i=>{this.tvShows=i.results,this.totalRecords=i.total_results})}getTvShowsByGenre(n,e){this.tvShowsService.getTvShowsByGenres(n,e).subscribe(i=>{this.tvShows=i.results,this.totalRecords=i.total_results})}searchChange(){this.searchValue?this.getPagedTvShows(1,this.searchValue):this.getPagedTvShows(1)}paginate(n){const e=n.page+1;this.genreId?this.getTvShowsByGenre(this.genreId,e):this.searchValue?this.getPagedTvShows(e,this.searchValue):this.getPagedTvShows(e)}}Ls.\u0275fac=function(n){return new(n||Ls)(D(Si),D(ei))},Ls.\u0275cmp=Ie({type:Ls,selectors:[["app-tvshows"]],decls:11,vars:4,consts:[[1,"container"],[1,"grid"],[1,"col-12"],[1,"p-fluid"],[1,"p-input-icon-left"],[1,"pi","pi-search"],["type","text","pInputText","","placeholder","Search",3,"ngModel","ngModelChange","change"],["class","col-6 md:col-3 lg:col-3",4,"ngFor","ngForOf"],[3,"rows","totalRecords","onPageChange"],[1,"col-6","md:col-3","lg:col-3"],[3,"itemTvShow"]],template:function(n,e){1&n&&(y(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"span",4),G(5,"i",5),y(6,"input",6),F("ngModelChange",function(r){return e.searchValue=r})("change",function(){return e.searchChange()}),v()()()()(),y(7,"div",1),S(8,A$,2,1,"div",7),v(),y(9,"div")(10,"p-paginator",8),F("onPageChange",function(r){return e.paginate(r)}),v()()()),2&n&&(m(6),g("ngModel",e.searchValue),m(2),g("ngForOf",e.tvShows),m(2),g("rows",12)("totalRecords",e.totalRecords))},dependencies:[Jt,pE,pa,Rc,Fs,bf,Ir]});const O$=[{path:"",component:ca},{path:"movies",component:ks},{path:"tvshows",component:Ls},{path:"genres",component:sa},{path:"movies/genres/:genreId",component:ks},{path:"tvshows/genres/:genreId",component:Ls},{path:"movie/:id",component:ha},{path:"tvshow/:id",component:wa},{path:"**",redirectTo:""}];class Vs{}Vs.\u0275fac=function(n){return new(n||Vs)},Vs.\u0275mod=Fe({type:Vs}),Vs.\u0275inj=Oe({imports:[gD.forRoot(O$),gD]});class Ca{constructor(){this.date=new Date}ngOnInit(){}}Ca.\u0275fac=function(n){return new(n||Ca)},Ca.\u0275cmp=Ie({type:Ca,selectors:[["app-footer"]],decls:4,vars:4,template:function(n,e){1&n&&(y(0,"footer")(1,"span"),P(2),fi(3,"date"),v()()),2&n&&(m(2),ot("\xa9 ",gr(3,1,e.date,"yyyy")," Nezumi-Movies All right reserved."))},dependencies:[Lo],styles:["footer[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;padding:.5rem 1rem;height:65px;background-color:#212121;margin:0}"]});class ba{}ba.\u0275fac=function(n){return new(n||ba)},ba.\u0275cmp=Ie({type:ba,selectors:[["app-header"]],decls:17,vars:0,consts:[[1,"navbar"],["href","",1,"navbar-logo"],["src","assets/images/video-player.png","alt",""],[1,"navbar-links"],["routerLink","/"],["routerLink","movies"],["routerLink","tvshows"],["routerLink","genres"]],template:function(n,e){1&n&&(y(0,"header")(1,"nav",0)(2,"a",1),G(3,"img",2),v(),y(4,"ul",3)(5,"li")(6,"a",4),P(7,"Home"),v()(),y(8,"li")(9,"a",5),P(10,"Movies"),v()(),y(11,"li")(12,"a",6),P(13,"TV Shows"),v()(),y(14,"li")(15,"a",7),P(16,"Genres"),v()()()()())},dependencies:[Os],styles:["header[_ngcontent-%COMP%] .navbar[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;padding:.5rem 1rem;height:65px;background-color:#212121;margin:0;border-bottom:1px solid rgba(255,255,255,.1)}header[_ngcontent-%COMP%] .navbar-logo[_ngcontent-%COMP%]{display:block}header[_ngcontent-%COMP%] .navbar-logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:60px}header[_ngcontent-%COMP%] .navbar-links[_ngcontent-%COMP%]{display:block;padding:0;margin:0;list-style:none}header[_ngcontent-%COMP%] .navbar-links[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{display:inline;margin-right:15px}"]});class Da{constructor(){this.title="movies-app"}}function fE(t){return new I(3e3,!1)}function dU(){return typeof window<"u"&&typeof window.document<"u"}function Sf(){return typeof process<"u"&&"[object process]"==={}.toString.call(process)}function Wi(t){switch(t.length){case 0:return new la;case 1:return t[0];default:return new LD(t)}}function gE(t,n,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,p=h&&c||new Map;u.forEach((f,_)=>{let w=_,b=f;if("offset"!==_)switch(w=n.normalizePropertyName(w,o),b){case"!":b=r.get(_);break;case Ei:b=s.get(_);break;default:b=n.normalizeStyleValue(_,w,b,o)}p.set(w,b)}),h||a.push(p),c=p,l=d}),o.length)throw function J$(t){return new I(3502,!1)}();return a}function Ef(t,n,e,i){switch(n){case"start":t.onStart(()=>i(e&&If(e,"start",t)));break;case"done":t.onDone(()=>i(e&&If(e,"done",t)));break;case"destroy":t.onDestroy(()=>i(e&&If(e,"destroy",t)))}}function If(t,n,e){const s=Tf(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,e.totalTime??t.totalTime,!!e.disabled),o=t._data;return null!=o&&(s._data=o),s}function Tf(t,n,e,i,r="",s=0,o){return{element:t,triggerName:n,fromState:e,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function tn(t,n,e){let i=t.get(n);return i||t.set(n,i=e),i}function mE(t){const n=t.indexOf(":");return[t.substring(1,n),t.slice(n+1)]}Da.\u0275fac=function(n){return new(n||Da)},Da.\u0275cmp=Ie({type:Da,selectors:[["app-root"]],decls:3,vars:0,template:function(n,e){1&n&&G(0,"app-header")(1,"router-outlet")(2,"app-footer")},dependencies:[Tp,Ca,ba]});let Mf=(t,n)=>!1,_E=(t,n,e)=>[],yE=null;function Af(t){const n=t.parentNode||t.host;return n===yE?null:n}(Sf()||typeof Element<"u")&&(dU()?(yE=(()=>document.documentElement)(),Mf=(t,n)=>{for(;n;){if(n===t)return!0;n=Af(n)}return!1}):Mf=(t,n)=>t.contains(n),_E=(t,n,e)=>{if(e)return Array.from(t.querySelectorAll(n));const i=t.querySelector(n);return i?[i]:[]});let Pr=null,vE=!1;const wE=Mf,CE=_E;let bE=(()=>{class t{validateStyleProperty(e){return function pU(t){Pr||(Pr=function fU(){return typeof document<"u"?document.body:null}()||{},vE=!!Pr.style&&"WebkitAppearance"in Pr.style);let n=!0;return Pr.style&&!function hU(t){return"ebkit"==t.substring(1,6)}(t)&&(n=t in Pr.style,!n&&vE&&(n="Webkit"+t.charAt(0).toUpperCase()+t.slice(1)in Pr.style)),n}(e)}matchesElement(e,i){return!1}containsElement(e,i){return wE(e,i)}getParentElement(e){return Af(e)}query(e,i,r){return CE(e,i,r)}computeStyle(e,i,r){return r||""}animate(e,i,r,s,o,a=[],l){return new la(r,s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=k({token:t,factory:t.\u0275fac}),t})(),Of=(()=>{class t{}return t.NOOP=new bE,t})();const Pf="ng-enter",Uc="ng-leave",jc="ng-trigger",zc=".ng-trigger",SE="ng-animating",xf=".ng-animating";function Ii(t){if("number"==typeof t)return t;const n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:Rf(parseFloat(n[1]),n[2])}function Rf(t,n){return"s"===n?1e3*t:t}function Gc(t,n,e){return t.hasOwnProperty("duration")?t:function _U(t,n,e){let r,s=0,o="";if("string"==typeof t){const a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return n.push(fE()),{duration:0,delay:0,easing:""};r=Rf(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=Rf(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=t;if(!e){let a=!1,l=n.length;r<0&&(n.push(function P$(){return new I(3100,!1)}()),a=!0),s<0&&(n.push(function x$(){return new I(3101,!1)}()),a=!0),a&&n.splice(l,0,fE())}return{duration:r,delay:s,easing:o}}(t,n,e)}function Sa(t,n={}){return Object.keys(t).forEach(e=>{n[e]=t[e]}),n}function EE(t){const n=new Map;return Object.keys(t).forEach(e=>{n.set(e,t[e])}),n}function qi(t,n=new Map,e){if(e)for(let[i,r]of e)n.set(i,r);for(let[i,r]of t)n.set(i,r);return n}function TE(t,n,e){return e?n+":"+e+";":""}function ME(t){let n="";for(let e=0;e<t.style.length;e++){const i=t.style.item(e);n+=TE(0,i,t.style.getPropertyValue(i))}for(const e in t.style)t.style.hasOwnProperty(e)&&!e.startsWith("_")&&(n+=TE(0,CU(e),t.style[e]));t.setAttribute("style",n)}function ni(t,n,e){t.style&&(n.forEach((i,r)=>{const s=Ff(r);e&&!e.has(r)&&e.set(r,t.style[s]),t.style[s]=i}),Sf()&&ME(t))}function xr(t,n){t.style&&(n.forEach((e,i)=>{const r=Ff(i);t.style[r]=""}),Sf()&&ME(t))}function Ea(t){return Array.isArray(t)?1==t.length?t[0]:RD(t):t}const Nf=new RegExp("{{\\s*(.+?)\\s*}}","g");function AE(t){let n=[];if("string"==typeof t){let e;for(;e=Nf.exec(t);)n.push(e[1]);Nf.lastIndex=0}return n}function Ia(t,n,e){const i=t.toString(),r=i.replace(Nf,(s,o)=>{let a=n[o];return null==a&&(e.push(function N$(t){return new I(3003,!1)}()),a=""),a.toString()});return r==i?t:r}function Wc(t){const n=[];let e=t.next();for(;!e.done;)n.push(e.value),e=t.next();return n}const wU=/-+([a-z0-9])/g;function Ff(t){return t.replace(wU,(...n)=>n[1].toUpperCase())}function CU(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function nn(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw function F$(t){return new I(3004,!1)}()}}function OE(t,n){return window.getComputedStyle(t)[n]}function TU(t,n){const e=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(i=>function MU(t,n,e){if(":"==t[0]){const l=function AU(t,n){switch(t){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 n.push(function Q$(t){return new I(3016,!1)}()),"* => *"}}(t,e);if("function"==typeof l)return void n.push(l);t=l}const i=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return e.push(function K$(t){return new I(3015,!1)}()),n;const r=i[1],s=i[2],o=i[3];n.push(PE(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&n.push(PE(o,r))}(i,e,n)):e.push(t),e}const Zc=new Set(["true","1"]),Yc=new Set(["false","0"]);function PE(t,n){const e=Zc.has(t)||Yc.has(t),i=Zc.has(n)||Yc.has(n);return(r,s)=>{let o="*"==t||t==r,a="*"==n||n==s;return!o&&e&&"boolean"==typeof r&&(o=r?Zc.has(t):Yc.has(t)),!a&&i&&"boolean"==typeof s&&(a=s?Zc.has(n):Yc.has(n)),o&&a}}const OU=new RegExp("s*:selfs*,?","g");function kf(t,n,e,i){return new PU(t).build(n,e,i)}class PU{constructor(n){this._driver=n}build(n,e,i){const r=new NU(e);return this._resetContextStyleTimingState(r),nn(this,Ea(n),r)}_resetContextStyleTimingState(n){n.currentQuerySelector="",n.collectedStyles=new Map,n.collectedStyles.set("",new Map),n.currentTime=0}visitTrigger(n,e){let i=e.queryCount=0,r=e.depCount=0;const s=[],o=[];return"@"==n.name.charAt(0)&&e.errors.push(function L$(){return new I(3006,!1)}()),n.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 V$(){return new I(3007,!1)}())}),{type:7,name:n.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(n,e){const i=this.visitStyle(n.styles,e),r=n.options&&n.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{AE(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&(Wc(s.values()),e.errors.push(function B$(t,n){return new I(3008,!1)}()))}return{type:0,name:n.name,style:i,options:r?{params:r}:null}}visitTransition(n,e){e.queryCount=0,e.depCount=0;const i=nn(this,Ea(n.animation),e);return{type:1,matchers:TU(n.expr,e.errors),animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Rr(n.options)}}visitSequence(n,e){return{type:2,steps:n.steps.map(i=>nn(this,i,e)),options:Rr(n.options)}}visitGroup(n,e){const i=e.currentTime;let r=0;const s=n.steps.map(o=>{e.currentTime=i;const a=nn(this,o,e);return r=Math.max(r,e.currentTime),a});return e.currentTime=r,{type:3,steps:s,options:Rr(n.options)}}visitAnimate(n,e){const i=function kU(t,n){if(t.hasOwnProperty("duration"))return t;if("number"==typeof t)return Lf(Gc(t,n).duration,0,"");const e=t;if(e.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Lf(0,0,"");return s.dynamic=!0,s.strValue=e,s}const r=Gc(e,n);return Lf(r.duration,r.delay,r.easing)}(n.timings,e.errors);e.currentAnimateTimings=i;let r,s=n.styles?n.styles:Sr({});if(5==s.type)r=this.visitKeyframes(s,e);else{let o=n.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=Sr(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(n,e){const i=this._makeStyleAst(n,e);return this._validateStyleAst(i,e),i}_makeStyleAst(n,e){const i=[],r=Array.isArray(n.styles)?n.styles:[n.styles];for(let a of r)"string"==typeof a?a===Ei?i.push(a):e.errors.push(new I(3002,!1)):i.push(EE(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:n.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(n,e){const i=e.currentAnimateTimings;let r=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),n.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 $$(t,n,e,i,r){return new I(3010,!1)}()),d=!1),s=u.startTime),d&&c.set(l,{startTime:s,endTime:r}),e.options&&function vU(t,n,e){const i=n.params||{},r=AE(t);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||e.push(function R$(t){return new I(3001,!1)}())})}(a,e.options,e.errors)})})}visitKeyframes(n,e){const i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(function U$(){return new I(3011,!1)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=n.steps.map(b=>{const T=this._makeStyleAst(b,e);let E=null!=T.offset?T.offset:function FU(t){if("string"==typeof t)return null;let n=null;if(Array.isArray(t))t.forEach(e=>{if(e instanceof Map&&e.has("offset")){const i=e;n=parseFloat(i.get("offset")),i.delete("offset")}});else if(t instanceof Map&&t.has("offset")){const e=t;n=parseFloat(e.get("offset")),e.delete("offset")}return n}(T.styles),O=0;return null!=E&&(s++,O=T.offset=E),l=l||O<0||O>1,a=a||O<c,c=O,o.push(O),T});l&&e.errors.push(function j$(){return new I(3012,!1)}()),a&&e.errors.push(function z$(){return new I(3200,!1)}());const d=n.steps.length;let h=0;s>0&&s<d?e.errors.push(function G$(){return new I(3202,!1)}()):0==s&&(h=1/(d-1));const p=d-1,f=e.currentTime,_=e.currentAnimateTimings,w=_.duration;return u.forEach((b,T)=>{const E=h>0?T==p?1:h*T:o[T],O=E*w;e.currentTime=f+_.delay+O,_.duration=O,this._validateStyleAst(b,e),b.offset=E,i.styles.push(b)}),i}visitReference(n,e){return{type:8,animation:nn(this,Ea(n.animation),e),options:Rr(n.options)}}visitAnimateChild(n,e){return e.depCount++,{type:9,options:Rr(n.options)}}visitAnimateRef(n,e){return{type:10,animation:this.visitReference(n.animation,e),options:Rr(n.options)}}visitQuery(n,e){const i=e.currentQuerySelector,r=n.options||{};e.queryCount++,e.currentQuery=n;const[s,o]=function xU(t){const n=!!t.split(/\s*,\s*/).find(e=>":self"==e);return n&&(t=t.replace(OU,"")),t=t.replace(/@\*/g,zc).replace(/@\w+/g,e=>zc+"-"+e.slice(1)).replace(/:animating/g,xf),[t,n]}(n.selector);e.currentQuerySelector=i.length?i+" "+s:s,tn(e.collectedStyles,e.currentQuerySelector,new Map);const a=nn(this,Ea(n.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:n.selector,options:Rr(n.options)}}visitStagger(n,e){e.currentQuery||e.errors.push(function W$(){return new I(3013,!1)}());const i="full"===n.timings?{duration:0,delay:0,easing:"full"}:Gc(n.timings,e.errors,!0);return{type:12,animation:nn(this,Ea(n.animation),e),timings:i,options:null}}}class NU{constructor(n){this.errors=n,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 Rr(t){return t?(t=Sa(t)).params&&(t.params=function RU(t){return t?Sa(t):null}(t.params)):t={},t}function Lf(t,n,e){return{duration:t,delay:n,easing:e}}function Vf(t,n,e,i,r,s,o=null,a=!1){return{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class Xc{constructor(){this._map=new Map}get(n){return this._map.get(n)||[]}append(n,e){let i=this._map.get(n);i||this._map.set(n,i=[]),i.push(...e)}has(n){return this._map.has(n)}clear(){this._map.clear()}}const BU=new RegExp(":enter","g"),$U=new RegExp(":leave","g");function Bf(t,n,e,i,r,s=new Map,o=new Map,a,l,c=[]){return(new UU).buildKeyframes(t,n,e,i,r,s,o,a,l,c)}class UU{buildKeyframes(n,e,i,r,s,o,a,l,c,u=[]){c=c||new Xc;const d=new Hf(n,e,c,r,s,u,[]);d.options=l;const h=l.delay?Ii(l.delay):0;d.currentTimeline.delayNextStep(h),d.currentTimeline.setStyles([o],null,d.errors,l),nn(this,i,d);const p=d.timelines.filter(f=>f.containsAnimation());if(p.length&&a.size){let f;for(let _=p.length-1;_>=0;_--){const w=p[_];if(w.element===e){f=w;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return p.length?p.map(f=>f.buildKeyframes()):[Vf(e,[],[],[],0,h,"",!1)]}visitTrigger(n,e){}visitState(n,e){}visitTransition(n,e){}visitAnimateChild(n,e){const i=e.subInstructions.get(e.element);if(i){const r=e.createSubContext(n.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=n}visitAnimateRef(n,e){const i=e.createSubContext(n.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([n.options,n.animation.options],e,i),this.visitReference(n.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=n}_applyAnimationRefDelays(n,e,i){for(const r of n){const s=r?.delay;if(s){const o="number"==typeof s?s:Ii(Ia(s,r?.params??{},e.errors));i.delayNextStep(o)}}}_visitSubInstructions(n,e,i){let s=e.currentTimeline.currentTime;const o=null!=i.duration?Ii(i.duration):null,a=null!=i.delay?Ii(i.delay):null;return 0!==o&&n.forEach(l=>{const c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(n,e){e.updateOptions(n.options,!0),nn(this,n.animation,e),e.previousNode=n}visitSequence(n,e){const i=e.subContextCount;let r=e;const s=n.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=Jc);const o=Ii(s.delay);r.delayNextStep(o)}n.steps.length&&(n.steps.forEach(o=>nn(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=n}visitGroup(n,e){const i=[];let r=e.currentTimeline.currentTime;const s=n.options&&n.options.delay?Ii(n.options.delay):0;n.steps.forEach(o=>{const a=e.createSubContext(n.options);s&&a.delayNextStep(s),nn(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=n}_visitTiming(n,e){if(n.dynamic){const i=n.strValue;return Gc(e.params?Ia(i,e.params,e.errors):i,e.errors)}return{duration:n.duration,delay:n.delay,easing:n.easing}}visitAnimate(n,e){const i=e.currentAnimateTimings=this._visitTiming(n.timings,e),r=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),r.snapshotCurrentStyles());const s=n.style;5==s.type?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=n}visitStyle(n,e){const i=e.currentTimeline,r=e.currentAnimateTimings;!r&&i.hasCurrentStyleProperties()&&i.forwardFrame();const s=r&&r.easing||n.easing;n.isEmptyStep?i.applyEmptyStep(s):i.setStyles(n.styles,s,e.errors,e.options),e.previousNode=n}visitKeyframes(n,e){const i=e.currentAnimateTimings,r=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,n.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=n}visitQuery(n,e){const i=e.currentTimeline.currentTime,r=n.options||{},s=r.delay?Ii(r.delay):0;s&&(6===e.previousNode.type||0==i&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Jc);let o=i;const a=e.invokeQuery(n.selector,n.originalSelector,n.limit,n.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{e.currentQueryIndex=u;const d=e.createSubContext(n.options,c);s&&d.delayNextStep(s),c===e.element&&(l=d.currentTimeline),nn(this,n.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=n}visitStagger(n,e){const i=e.parentContext,r=e.currentTimeline,s=n.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;nn(this,n.animation,e),e.previousNode=n,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Jc={};class Hf{constructor(n,e,i,r,s,o,a,l){this._driver=n,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=Jc,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new eu(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(n,e){if(!n)return;const i=n;let r=this.options;null!=i.duration&&(r.duration=Ii(i.duration)),null!=i.delay&&(r.delay=Ii(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]=Ia(s[a],o,this.errors))})}}_copyOptions(){const n={};if(this.options){const e=this.options.params;if(e){const i=n.params={};Object.keys(e).forEach(r=>{i[r]=e[r]})}}return n}createSubContext(n=null,e,i){const r=e||this.element,s=new Hf(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(n),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(n){return this.previousNode=Jc,this.currentTimeline=this.currentTimeline.fork(this.element,n),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(n,e,i){const r={duration:e??n.duration,delay:this.currentTimeline.currentTime+(i??0)+n.delay,easing:""},s=new jU(this._driver,n.element,n.keyframes,n.preStyleProps,n.postStyleProps,r,n.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(n){this.currentTimeline.forwardTime(this.currentTimeline.duration+n)}delayNextStep(n){n>0&&this.currentTimeline.delayNextStep(n)}invokeQuery(n,e,i,r,s,o){let a=[];if(r&&a.push(this.element),n.length>0){n=(n=n.replace(BU,"."+this._enterClassName)).replace($U,"."+this._leaveClassName);let c=this._driver.query(this.element,n,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 q$(t){return new I(3014,!1)}()),a}}class eu{constructor(n,e,i,r){this._driver=n,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(n){const e=1===this._keyframes.size&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+n),e&&this.snapshotCurrentStyles()):this.startTime+=n}fork(n,e){return this.applyStylesToKeyframe(),new eu(this._driver,n,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(n){this.applyStylesToKeyframe(),this.duration=n,this._loadKeyframe()}_updateStyle(n,e){this._localTimelineStyles.set(n,e),this._globalTimelineStyles.set(n,e),this._styleSummary.set(n,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(n){n&&this._previousKeyframe.set("easing",n);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||Ei),this._currentKeyframe.set(e,Ei);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(n,e,i,r){e&&this._previousKeyframe.set("easing",e);const s=r&&r.params||{},o=function zU(t,n){const e=new Map;let i;return t.forEach(r=>{if("*"===r){i=i||n.keys();for(let s of i)e.set(s,Ei)}else qi(r,e)}),e}(n,this._globalTimelineStyles);for(let[a,l]of o){const c=Ia(l,s,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??Ei),this._updateStyle(a,c)}}applyStylesToKeyframe(){0!=this._pendingStyles.size&&(this._pendingStyles.forEach((n,e)=>{this._currentKeyframe.set(e,n)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((n,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,n)}))}snapshotCurrentStyles(){for(let[n,e]of this._localTimelineStyles)this._pendingStyles.set(n,e),this._updateStyle(n,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const n=[];for(let e in this._currentKeyframe)n.push(e);return n}mergeTimelineCollectedStyles(n){n._styleSummary.forEach((e,i)=>{const r=this._styleSummary.get(i);(!r||e.time>r.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();const n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=qi(a,new Map,this._backFill);c.forEach((u,d)=>{"!"===u?n.add(d):u===Ei&&e.add(d)}),i||c.set("offset",l/this.duration),r.push(c)});const s=n.size?Wc(n.values()):[],o=e.size?Wc(e.values()):[];if(i){const a=r[0],l=new Map(a);a.set("offset",0),l.set("offset",1),r=[a,l]}return Vf(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class jU extends eu{constructor(n,e,i,r,s,o,a=!1){super(n,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 n=this.keyframes,{delay:e,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&e){const s=[],o=i+e,a=e/o,l=qi(n[0]);l.set("offset",0),s.push(l);const c=qi(n[0]);c.set("offset",NE(a)),s.push(c);const u=n.length-1;for(let d=1;d<=u;d++){let h=qi(n[d]);const p=h.get("offset");h.set("offset",NE((e+p*i)/o)),s.push(h)}i=o,e=0,r="",n=s}return Vf(this.element,n,this.preStyleProps,this.postStyleProps,i,e,r,!0)}}function NE(t,n=3){const e=Math.pow(10,n-1);return Math.round(t*e)/e}class $f{}const GU=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 WU extends $f{normalizePropertyName(n,e){return Ff(n)}normalizeStyleValue(n,e,i,r){let s="";const o=i.toString().trim();if(GU.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 k$(t,n){return new I(3005,!1)}())}return o+s}}function FE(t,n,e,i,r,s,o,a,l,c,u,d,h){return{type:0,element:t,triggerName:n,isRemovalTransition:r,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Uf={};class kE{constructor(n,e,i){this._triggerName=n,this.ast=e,this._stateStyles=i}match(n,e,i,r){return function qU(t,n,e,i,r){return t.some(s=>s(n,e,i,r))}(this.ast.matchers,n,e,i,r)}buildStyles(n,e,i){let r=this._stateStyles.get("*");return void 0!==n&&(r=this._stateStyles.get(n?.toString())||r),r?r.buildStyles(e,i):new Map}build(n,e,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||Uf,f=this.buildStyles(i,a&&a.params||Uf,d),_=l&&l.params||Uf,w=this.buildStyles(r,_,d),b=new Set,T=new Map,E=new Map,O="void"===r,te={params:KU(_,h),delay:this.ast.options?.delay},he=u?[]:Bf(n,e,this.ast.animation,s,o,f,w,te,c,d);let Mt=0;if(he.forEach(Mi=>{Mt=Math.max(Mi.duration+Mi.delay,Mt)}),d.length)return FE(e,this._triggerName,i,r,O,f,w,[],[],T,E,Mt,d);he.forEach(Mi=>{const Ai=Mi.element,YE=tn(T,Ai,new Set);Mi.preStyleProps.forEach(Nr=>YE.add(Nr));const Ma=tn(E,Ai,new Set);Mi.postStyleProps.forEach(Nr=>Ma.add(Nr)),Ai!==e&&b.add(Ai)});const Ti=Wc(b.values());return FE(e,this._triggerName,i,r,O,f,w,he,Ti,T,E,Mt)}}function KU(t,n){const e=Sa(n);for(const i in t)t.hasOwnProperty(i)&&null!=t[i]&&(e[i]=t[i]);return e}class QU{constructor(n,e,i){this.styles=n,this.defaultParams=e,this.normalizer=i}buildStyles(n,e){const i=new Map,r=Sa(this.defaultParams);return Object.keys(n).forEach(s=>{const o=n[s];null!==o&&(r[s]=o)}),this.styles.styles.forEach(s=>{"string"!=typeof s&&s.forEach((o,a)=>{o&&(o=Ia(o,r,e));const l=this.normalizer.normalizePropertyName(a,e);o=this.normalizer.normalizeStyleValue(a,l,o,e),i.set(a,o)})}),i}}class YU{constructor(n,e,i){this.name=n,this.ast=e,this._normalizer=i,this.transitionFactories=[],this.states=new Map,e.states.forEach(r=>{this.states.set(r.name,new QU(r.style,r.options&&r.options.params||{},i))}),LE(this.states,"true","1"),LE(this.states,"false","0"),e.transitions.forEach(r=>{this.transitionFactories.push(new kE(n,r,this.states))}),this.fallbackTransition=function XU(t,n,e){return new kE(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},n)}(n,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(n,e,i,r){return this.transitionFactories.find(o=>o.match(n,e,i,r))||null}matchStyles(n,e,i){return this.fallbackTransition.buildStyles(n,e,i)}}function LE(t,n,e){t.has(n)?t.has(e)||t.set(e,t.get(n)):t.has(e)&&t.set(n,t.get(e))}const JU=new Xc;class ej{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._animations=new Map,this._playersById=new Map,this.players=[]}register(n,e){const i=[],s=kf(this._driver,e,i,[]);if(i.length)throw function eU(t){return new I(3503,!1)}();this._animations.set(n,s)}_buildPlayer(n,e,i){const r=n.element,s=gE(0,this._normalizer,0,n.keyframes,e,i);return this._driver.animate(r,s,n.duration,n.delay,n.easing,[],!0)}create(n,e,i={}){const r=[],s=this._animations.get(n);let o;const a=new Map;if(s?(o=Bf(this._driver,e,s,Pf,Uc,new Map,new Map,i,JU,r),o.forEach(u=>{const d=tn(a,u.element,new Map);u.postStyleProps.forEach(h=>d.set(h,null))})):(r.push(function tU(){return new I(3300,!1)}()),o=[]),r.length)throw function nU(t){return new I(3504,!1)}();a.forEach((u,d)=>{u.forEach((h,p)=>{u.set(p,this._driver.computeStyle(d,p,Ei))})});const c=Wi(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,new Map,d)}));return this._playersById.set(n,c),c.onDestroy(()=>this.destroy(n)),this.players.push(c),c}destroy(n){const e=this._getPlayer(n);e.destroy(),this._playersById.delete(n);const i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(n){const e=this._playersById.get(n);if(!e)throw function iU(t){return new I(3301,!1)}();return e}listen(n,e,i,r){const s=Tf(e,"","","");return Ef(this._getPlayer(n),i,s,r),()=>{}}command(n,e,i,r){if("register"==i)return void this.register(n,r[0]);if("create"==i)return void this.create(n,e,r[0]||{});const s=this._getPlayer(n);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(n)}}}const VE="ng-animate-queued",jf="ng-animate-disabled",sj=[],BE={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},oj={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},vn="__ng_removed";class zf{get params(){return this.options.params}constructor(n,e=""){this.namespaceId=e;const i=n&&n.hasOwnProperty("value");if(this.value=function uj(t){return t??null}(i?n.value:n),i){const s=Sa(n);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}absorbOptions(n){const e=n.params;if(e){const i=this.options.params;Object.keys(e).forEach(r=>{null==i[r]&&(i[r]=e[r])})}}}const Ta="void",Gf=new zf(Ta);class aj{constructor(n,e,i){this.id=n,this.hostElement=e,this._engine=i,this.players=[],this._triggers=new Map,this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+n,wn(e,this._hostClassName)}listen(n,e,i,r){if(!this._triggers.has(e))throw function rU(t,n){return new I(3302,!1)}();if(null==i||0==i.length)throw function sU(t){return new I(3303,!1)}();if(!function dj(t){return"start"==t||"done"==t}(i))throw function oU(t,n){return new I(3400,!1)}();const s=tn(this._elementListeners,n,[]),o={name:e,phase:i,callback:r};s.push(o);const a=tn(this._engine.statesByElement,n,new Map);return a.has(e)||(wn(n,jc),wn(n,jc+"-"+e),a.set(e,Gf)),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(n,e){return!this._triggers.has(n)&&(this._triggers.set(n,e),!0)}_getTrigger(n){const e=this._triggers.get(n);if(!e)throw function aU(t){return new I(3401,!1)}();return e}trigger(n,e,i,r=!0){const s=this._getTrigger(e),o=new Wf(this.id,e,n);let a=this._engine.statesByElement.get(n);a||(wn(n,jc),wn(n,jc+"-"+e),this._engine.statesByElement.set(n,a=new Map));let l=a.get(e);const c=new zf(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=Gf),c.value!==Ta&&l.value===c.value){if(!function fj(t,n){const e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(let r=0;r<e.length;r++){const s=e[r];if(!n.hasOwnProperty(s)||t[s]!==n[s])return!1}return!0}(l.params,c.params)){const _=[],w=s.matchStyles(l.value,l.params,_),b=s.matchStyles(c.value,c.params,_);_.length?this._engine.reportError(_):this._engine.afterFlush(()=>{xr(n,w),ni(n,b)})}return}const h=tn(this._engine.playersByElement,n,[]);h.forEach(_=>{_.namespaceId==this.id&&_.triggerName==e&&_.queued&&_.destroy()});let p=s.matchTransition(l.value,c.value,n,c.params),f=!1;if(!p){if(!r)return;p=s.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:e,transition:p,fromState:l,toState:c,player:o,isFallbackTransition:f}),f||(wn(n,VE),o.onStart(()=>{Bs(n,VE)})),o.onDone(()=>{let _=this.players.indexOf(o);_>=0&&this.players.splice(_,1);const w=this._engine.playersByElement.get(n);if(w){let b=w.indexOf(o);b>=0&&w.splice(b,1)}}),this.players.push(o),h.push(o),o}deregister(n){this._triggers.delete(n),this._engine.statesByElement.forEach(e=>e.delete(n)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(r=>r.name!=n))})}clearElementCache(n){this._engine.statesByElement.delete(n),this._elementListeners.delete(n);const e=this._engine.playersByElement.get(n);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(n))}_signalRemovalForInnerTriggers(n,e){const i=this._engine.driver.query(n,zc,!0);i.forEach(r=>{if(r[vn])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(n,e,i,r){const s=this._engine.statesByElement.get(n),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(n,c,Ta,r);u&&a.push(u)}}),a.length)return this._engine.markElementAsRemoved(this.id,n,!0,e,o),i&&Wi(a).onDone(()=>this._engine.processLeaveNode(n)),!0}return!1}prepareLeaveAnimationListeners(n){const e=this._elementListeners.get(n),i=this._engine.statesByElement.get(n);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)||Gf,u=new zf(Ta),d=new Wf(this.id,o,n);this._engine.totalQueuedPlayers++,this._queue.push({element:n,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(n,e){const i=this._engine;if(n.childElementCount&&this._signalRemovalForInnerTriggers(n,e),this.triggerLeaveAnimation(n,e,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(n):[];if(s&&s.length)r=!0;else{let o=n;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(n),r)i.markElementAsRemoved(this.id,n,!1,e);else{const s=n[vn];(!s||s===BE)&&(i.afterFlush(()=>this.clearElementCache(n)),i.destroyInnerAnimations(n),i._onRemovalComplete(n,e))}}insertNode(n,e){wn(n,this._hostClassName)}drainQueuedTransitions(n){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=Tf(s,i.triggerName,i.fromState.value,i.toState.value);l._data=n,Ef(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(n){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,n)}elementContainsData(n){let e=!1;return this._elementListeners.has(n)&&(e=!0),e=!!this._queue.find(i=>i.element===n)||e,e}}class lj{_onRemovalComplete(n,e){this.onRemovalComplete(n,e)}constructor(n,e,i){this.bodyNode=n,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)=>{}}get queuedPlayers(){const n=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&n.push(i)})}),n}createNamespace(n,e){const i=new aj(n,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[n]=i}_balanceNamespaceList(n,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,n),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(n)}else i.push(n);return r.set(e,n),n}register(n,e){let i=this._namespaceLookup[n];return i||(i=this.createNamespace(n,e)),i}registerTrigger(n,e,i){let r=this._namespaceLookup[n];r&&r.register(e,i)&&this.totalAnimations++}destroy(n,e){if(!n)return;const i=this._fetchNamespace(n);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[n];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(e))}_fetchNamespace(n){return this._namespaceLookup[n]}fetchNamespacesByElement(n){const e=new Set,i=this.statesByElement.get(n);if(i)for(let r of i.values())if(r.namespaceId){const s=this._fetchNamespace(r.namespaceId);s&&e.add(s)}return e}trigger(n,e,i,r){if(tu(e)){const s=this._fetchNamespace(n);if(s)return s.trigger(e,i,r),!0}return!1}insertNode(n,e,i,r){if(!tu(e))return;const s=e[vn];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(n){const o=this._fetchNamespace(n);o&&o.insertNode(e,i)}r&&this.collectEnterElement(e)}collectEnterElement(n){this.collectedEnterElements.push(n)}markElementAsDisabled(n,e){e?this.disabledNodes.has(n)||(this.disabledNodes.add(n),wn(n,jf)):this.disabledNodes.has(n)&&(this.disabledNodes.delete(n),Bs(n,jf))}removeNode(n,e,i,r){if(tu(e)){const s=n?this._fetchNamespace(n):null;if(s?s.removeNode(e,r):this.markElementAsRemoved(n,e,!1,r),i){const o=this.namespacesByHostElement.get(e);o&&o.id!==n&&o.removeNode(e,r)}}else this._onRemovalComplete(e,r)}markElementAsRemoved(n,e,i,r,s){this.collectedLeaveElements.push(e),e[vn]={namespaceId:n,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(n,e,i,r,s){return tu(e)?this._fetchNamespace(n).listen(e,i,r,s):()=>{}}_buildInstruction(n,e,i,r,s){return n.transition.build(this.driver,n.element,n.fromState.value,n.toState.value,i,r,n.fromState.options,n.toState.options,e,s)}destroyInnerAnimations(n){let e=this.driver.query(n,zc,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(n,xf,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(n){const e=this.playersByElement.get(n);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(n){const e=this.playersByQueriedElement.get(n);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(n=>{if(this.players.length)return Wi(this.players).onDone(()=>n());n()})}processLeaveNode(n){const e=n[vn];if(e&&e.setForRemoval){if(n[vn]=BE,e.namespaceId){this.destroyInnerAnimations(n);const i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(n)}this._onRemovalComplete(n,e.setForRemoval)}n.classList?.contains(jf)&&this.markElementAsDisabled(n,!1),this.driver.query(n,".ng-animate-disabled",!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(n=-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++)wn(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{e=this._flushAnimations(i,n)}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?Wi(e).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(n){throw function lU(t){return new I(3402,!1)}()}_flushAnimations(n,e){const i=new Xc,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(B=>{u.add(B);const z=this.driver.query(B,".ng-animate-queued",!0);for(let Z=0;Z<z.length;Z++)u.add(z[Z])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),p=UE(h,this.collectedEnterElements),f=new Map;let _=0;p.forEach((B,z)=>{const Z=Pf+_++;f.set(z,Z),B.forEach(ge=>wn(ge,Z))});const w=[],b=new Set,T=new Set;for(let B=0;B<this.collectedLeaveElements.length;B++){const z=this.collectedLeaveElements[B],Z=z[vn];Z&&Z.setForRemoval&&(w.push(z),b.add(z),Z.hasAnimation?this.driver.query(z,".ng-star-inserted",!0).forEach(ge=>b.add(ge)):T.add(z))}const E=new Map,O=UE(h,Array.from(b));O.forEach((B,z)=>{const Z=Uc+_++;E.set(z,Z),B.forEach(ge=>wn(ge,Z))}),n.push(()=>{p.forEach((B,z)=>{const Z=f.get(z);B.forEach(ge=>Bs(ge,Z))}),O.forEach((B,z)=>{const Z=E.get(z);B.forEach(ge=>Bs(ge,Z))}),w.forEach(B=>{this.processLeaveNode(B)})});const te=[],he=[];for(let B=this._namespaceList.length-1;B>=0;B--)this._namespaceList[B].drainQueuedTransitions(e).forEach(Z=>{const ge=Z.player,dt=Z.element;if(te.push(ge),this.collectedEnterElements.length){const At=dt[vn];if(At&&At.setForMove){if(At.previousTriggersValues&&At.previousTriggersValues.has(Z.triggerName)){const Fr=At.previousTriggersValues.get(Z.triggerName),Cn=this.statesByElement.get(Z.element);if(Cn&&Cn.has(Z.triggerName)){const ru=Cn.get(Z.triggerName);ru.value=Fr,Cn.set(Z.triggerName,ru)}}return void ge.destroy()}}const ii=!d||!this.driver.containsElement(d,dt),rn=E.get(dt),Ki=f.get(dt),je=this._buildInstruction(Z,i,Ki,rn,ii);if(je.errors&&je.errors.length)return void he.push(je);if(ii)return ge.onStart(()=>xr(dt,je.fromStyles)),ge.onDestroy(()=>ni(dt,je.toStyles)),void r.push(ge);if(Z.isFallbackTransition)return ge.onStart(()=>xr(dt,je.fromStyles)),ge.onDestroy(()=>ni(dt,je.toStyles)),void r.push(ge);const e0=[];je.timelines.forEach(At=>{At.stretchStartingKeyframe=!0,this.disabledNodes.has(At.element)||e0.push(At)}),je.timelines=e0,i.append(dt,je.timelines),o.push({instruction:je,player:ge,element:dt}),je.queriedElements.forEach(At=>tn(a,At,[]).push(ge)),je.preStyleProps.forEach((At,Fr)=>{if(At.size){let Cn=l.get(Fr);Cn||l.set(Fr,Cn=new Set),At.forEach((ru,Qf)=>Cn.add(Qf))}}),je.postStyleProps.forEach((At,Fr)=>{let Cn=c.get(Fr);Cn||c.set(Fr,Cn=new Set),At.forEach((ru,Qf)=>Cn.add(Qf))})});if(he.length){const B=[];he.forEach(z=>{B.push(function cU(t,n){return new I(3505,!1)}())}),te.forEach(z=>z.destroy()),this.reportError(B)}const Mt=new Map,Ti=new Map;o.forEach(B=>{const z=B.element;i.has(z)&&(Ti.set(z,z),this._beforeAnimationBuild(B.player.namespaceId,B.instruction,Mt))}),r.forEach(B=>{const z=B.element;this._getPreviousPlayers(z,!1,B.namespaceId,B.triggerName,null).forEach(ge=>{tn(Mt,z,[]).push(ge),ge.destroy()})});const Mi=w.filter(B=>zE(B,l,c)),Ai=new Map;$E(Ai,this.driver,T,c,Ei).forEach(B=>{zE(B,l,c)&&Mi.push(B)});const Ma=new Map;p.forEach((B,z)=>{$E(Ma,this.driver,new Set(B),l,"!")}),Mi.forEach(B=>{const z=Ai.get(B),Z=Ma.get(B);Ai.set(B,new Map([...Array.from(z?.entries()??[]),...Array.from(Z?.entries()??[])]))});const Nr=[],XE=[],JE={};o.forEach(B=>{const{element:z,player:Z,instruction:ge}=B;if(i.has(z)){if(u.has(z))return Z.onDestroy(()=>ni(z,ge.toStyles)),Z.disabled=!0,Z.overrideTotalTime(ge.totalTime),void r.push(Z);let dt=JE;if(Ti.size>1){let rn=z;const Ki=[];for(;rn=rn.parentNode;){const je=Ti.get(rn);if(je){dt=je;break}Ki.push(rn)}Ki.forEach(je=>Ti.set(je,dt))}const ii=this._buildAnimation(Z.namespaceId,ge,Mt,s,Ma,Ai);if(Z.setRealPlayer(ii),dt===JE)Nr.push(Z);else{const rn=this.playersByElement.get(dt);rn&&rn.length&&(Z.parentPlayer=Wi(rn)),r.push(Z)}}else xr(z,ge.fromStyles),Z.onDestroy(()=>ni(z,ge.toStyles)),XE.push(Z),u.has(z)&&r.push(Z)}),XE.forEach(B=>{const z=s.get(B.element);if(z&&z.length){const Z=Wi(z);B.setRealPlayer(Z)}}),r.forEach(B=>{B.parentPlayer?B.syncPlayerEvents(B.parentPlayer):B.destroy()});for(let B=0;B<w.length;B++){const z=w[B],Z=z[vn];if(Bs(z,Uc),Z&&Z.hasAnimation)continue;let ge=[];if(a.size){let ii=a.get(z);ii&&ii.length&&ge.push(...ii);let rn=this.driver.query(z,xf,!0);for(let Ki=0;Ki<rn.length;Ki++){let je=a.get(rn[Ki]);je&&je.length&&ge.push(...je)}}const dt=ge.filter(ii=>!ii.destroyed);dt.length?hj(this,z,dt):this.processLeaveNode(z)}return w.length=0,Nr.forEach(B=>{this.players.push(B),B.onDone(()=>{B.destroy();const z=this.players.indexOf(B);this.players.splice(z,1)}),B.play()}),Nr}elementContainsData(n,e){let i=!1;const r=e[vn];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(n).elementContainsData(e)||i}afterFlush(n){this._flushFns.push(n)}afterFlushAnimationsDone(n){this._whenQuietFns.push(n)}_getPreviousPlayers(n,e,i,r,s){let o=[];if(e){const a=this.playersByQueriedElement.get(n);a&&(o=a)}else{const a=this.playersByElement.get(n);if(a){const l=!s||s==Ta;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(n,e,i){const s=e.element,o=e.isRemovalTransition?void 0:n,a=e.isRemovalTransition?void 0:e.triggerName;for(const l of e.timelines){const c=l.element,u=c!==s,d=tn(i,c,[]);this._getPreviousPlayers(c,u,o,a,e.toState).forEach(p=>{const f=p.getRealPlayer();f.beforeDestroy&&f.beforeDestroy(),p.destroy(),d.push(p)})}xr(s,e.fromStyles)}_buildAnimation(n,e,i,r,s,o){const a=e.triggerName,l=e.element,c=[],u=new Set,d=new Set,h=e.timelines.map(f=>{const _=f.element;u.add(_);const w=_[vn];if(w&&w.removedBeforeQueried)return new la(f.duration,f.delay);const b=_!==l,T=function pj(t){const n=[];return jE(t,n),n}((i.get(_)||sj).map(Mt=>Mt.getRealPlayer())).filter(Mt=>!!Mt.element&&Mt.element===_),E=s.get(_),O=o.get(_),te=gE(0,this._normalizer,0,f.keyframes,E,O),he=this._buildPlayer(f,te,T);if(f.subTimeline&&r&&d.add(_),b){const Mt=new Wf(n,a,_);Mt.setRealPlayer(he),c.push(Mt)}return he});c.forEach(f=>{tn(this.playersByQueriedElement,f.element,[]).push(f),f.onDone(()=>function cj(t,n,e){let i=t.get(n);if(i){if(i.length){const r=i.indexOf(e);i.splice(r,1)}0==i.length&&t.delete(n)}return i}(this.playersByQueriedElement,f.element,f))}),u.forEach(f=>wn(f,SE));const p=Wi(h);return p.onDestroy(()=>{u.forEach(f=>Bs(f,SE)),ni(l,e.toStyles)}),d.forEach(f=>{tn(r,f,[]).push(p)}),p}_buildPlayer(n,e,i){return e.length>0?this.driver.animate(n.element,e,n.duration,n.delay,n.easing,i):new la(n.duration,n.delay)}}class Wf{constructor(n,e,i){this.namespaceId=n,this.triggerName=e,this.element=i,this._player=new la,this._containsRealPlayer=!1,this._queuedCallbacks=new Map,this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(n){this._containsRealPlayer||(this._player=n,this._queuedCallbacks.forEach((e,i)=>{e.forEach(r=>Ef(n,i,void 0,r))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(n.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(n){this.totalTime=n}syncPlayerEvents(n){const e=this._player;e.triggerCallback&&n.onStart(()=>e.triggerCallback("start")),n.onDone(()=>this.finish()),n.onDestroy(()=>this.destroy())}_queueEvent(n,e){tn(this._queuedCallbacks,n,[]).push(e)}onDone(n){this.queued&&this._queueEvent("done",n),this._player.onDone(n)}onStart(n){this.queued&&this._queueEvent("start",n),this._player.onStart(n)}onDestroy(n){this.queued&&this._queueEvent("destroy",n),this._player.onDestroy(n)}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(n){this.queued||this._player.setPosition(n)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(n){const e=this._player;e.triggerCallback&&e.triggerCallback(n)}}function tu(t){return t&&1===t.nodeType}function HE(t,n){const e=t.style.display;return t.style.display=n??"none",e}function $E(t,n,e,i,r){const s=[];e.forEach(l=>s.push(HE(l)));const o=[];i.forEach((l,c)=>{const u=new Map;l.forEach(d=>{const h=n.computeStyle(c,d,r);u.set(d,h),(!h||0==h.length)&&(c[vn]=oj,o.push(c))}),t.set(c,u)});let a=0;return e.forEach(l=>HE(l,s[a++])),o}function UE(t,n){const e=new Map;if(t.forEach(a=>e.set(a,[])),0==n.length)return e;const r=new Set(n),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 n.forEach(a=>{const l=o(a);1!==l&&e.get(l).push(a)}),e}function wn(t,n){t.classList?.add(n)}function Bs(t,n){t.classList?.remove(n)}function hj(t,n,e){Wi(e).onDone(()=>t.processLeaveNode(n))}function jE(t,n){for(let e=0;e<t.length;e++){const i=t[e];i instanceof LD?jE(i.players,n):n.push(i)}}function zE(t,n,e){const i=e.get(t);if(!i)return!1;let r=n.get(t);return r?i.forEach(s=>r.add(s)):n.set(t,i),e.delete(t),!0}class nu{constructor(n,e,i){this.bodyNode=n,this._driver=e,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new lj(n,e,i),this._timelineEngine=new ej(n,e,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(n,e,i,r,s){const o=n+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=kf(this._driver,s,l,[]);if(l.length)throw function X$(t,n){return new I(3404,!1)}();a=function ZU(t,n,e){return new YU(t,n,e)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)}register(n,e){this._transitionEngine.register(n,e)}destroy(n,e){this._transitionEngine.destroy(n,e)}onInsert(n,e,i,r){this._transitionEngine.insertNode(n,e,i,r)}onRemove(n,e,i,r){this._transitionEngine.removeNode(n,e,r||!1,i)}disableAnimations(n,e){this._transitionEngine.markElementAsDisabled(n,e)}process(n,e,i,r){if("@"==i.charAt(0)){const[s,o]=mE(i);this._timelineEngine.command(s,e,o,r)}else this._transitionEngine.trigger(n,e,i,r)}listen(n,e,i,r,s){if("@"==i.charAt(0)){const[o,a]=mE(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(n,e,i,r,s)}flush(n=-1){this._transitionEngine.flush(n)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let mj=(()=>{class t{constructor(e,i,r){this._element=e,this._startStyles=i,this._endStyles=r,this._state=0;let s=t.initialStylesByElement.get(e);s||t.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&ni(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(ni(this._element,this._initialStyles),this._endStyles&&(ni(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(xr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(xr(this._element,this._endStyles),this._endStyles=null),ni(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function qf(t){let n=null;return t.forEach((e,i)=>{(function _j(t){return"display"===t||"position"===t})(i)&&(n=n||new Map,n.set(i,e))}),n}class GE{constructor(n,e,i,r){this.element=n,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(n=>n()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const n=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,n,this.options),this._finalKeyframe=n.length?n[n.length-1]:new Map,this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(n){const e=[];return n.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(n,e,i){return n.animate(this._convertKeyframesToObject(e),i)}onStart(n){this._originalOnStartFns.push(n),this._onStartFns.push(n)}onDone(n){this._originalOnDoneFns.push(n),this._onDoneFns.push(n)}onDestroy(n){this._onDestroyFns.push(n)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(n=>n()),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(n=>n()),this._onDestroyFns=[])}setPosition(n){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=n*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const n=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,r)=>{"offset"!==r&&n.set(r,this._finished?i:OE(this.element,r))}),this.currentSnapshot=n}triggerCallback(n){const e="start"===n?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}}class yj{validateStyleProperty(n){return!0}validateAnimatableStyleProperty(n){return!0}matchesElement(n,e){return!1}containsElement(n,e){return wE(n,e)}getParentElement(n){return Af(n)}query(n,e,i){return CE(n,e,i)}computeStyle(n,e,i){return window.getComputedStyle(n)[e]}animate(n,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(p=>p instanceof GE);(function bU(t,n){return 0===t||0===n})(i,r)&&u.forEach(p=>{p.currentSnapshot.forEach((f,_)=>c.set(_,f))});let d=function yU(t){return t.length?t[0]instanceof Map?t:t.map(n=>EE(n)):[]}(e).map(p=>qi(p));d=function DU(t,n,e){if(e.size&&n.length){let i=n[0],r=[];if(e.forEach((s,o)=>{i.has(o)||r.push(o),i.set(o,s)}),r.length)for(let s=1;s<n.length;s++){let o=n[s];r.forEach(a=>o.set(a,OE(t,a)))}}return n}(n,d,c);const h=function gj(t,n){let e=null,i=null;return Array.isArray(n)&&n.length?(e=qf(n[0]),n.length>1&&(i=qf(n[n.length-1]))):n instanceof Map&&(e=qf(n)),e||i?new mj(t,e,i):null}(n,d);return new GE(n,d,l,h)}}let vj=(()=>{class t extends xD{constructor(e,i){super(),this._nextAnimationId=0,this._renderer=e.createRenderer(i.body,{id:"0",encapsulation:Sn.None,styles:[],data:{animation:[]}})}build(e){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(e)?RD(e):e;return WE(this._renderer,null,i,"register",[r]),new wj(i,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(x(mo),x(Qe))},t.\u0275prov=k({token:t,factory:t.\u0275fac}),t})();class wj extends CV{constructor(n,e){super(),this._id=n,this._renderer=e}create(n,e){return new Cj(this._id,n,e||{},this._renderer)}}class Cj{constructor(n,e,i,r){this.id=n,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(n,e){return this._renderer.listen(this.element,`@@${this.id}:${n}`,e)}_command(n,...e){return WE(this._renderer,this.element,this.id,n,e)}onDone(n){this._listen("done",n)}onStart(n){this._listen("start",n)}onDestroy(n){this._listen("destroy",n)}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(n){this._command("setPosition",n)}getPosition(){return this._renderer.engine.players[+this.id]?.getPosition()??0}}function WE(t,n,e,i,r){return t.setProperty(n,`@@${e}:${i}`,r)}const qE="@.disabled";let bj=(()=>{class t{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 KE("",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 Dj(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 t.\u0275fac=function(e){return new(e||t)(x(mo),x(nu),x(Te))},t.\u0275prov=k({token:t,factory:t.\u0275fac}),t})();class KE{constructor(n,e,i,r){this.namespaceId=n,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(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}appendChild(n,e){this.delegate.appendChild(n,e),this.engine.onInsert(this.namespaceId,e,n,!1)}insertBefore(n,e,i,r=!0){this.delegate.insertBefore(n,e,i),this.engine.onInsert(this.namespaceId,e,n,r)}removeChild(n,e,i){this.engine.onRemove(this.namespaceId,e,this.delegate,i)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,i,r){this.delegate.setAttribute(n,e,i,r)}removeAttribute(n,e,i){this.delegate.removeAttribute(n,e,i)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,i,r){this.delegate.setStyle(n,e,i,r)}removeStyle(n,e,i){this.delegate.removeStyle(n,e,i)}setProperty(n,e,i){"@"==e.charAt(0)&&e==qE?this.disableAnimations(n,!!i):this.delegate.setProperty(n,e,i)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,i){return this.delegate.listen(n,e,i)}disableAnimations(n,e){this.engine.disableAnimations(n,e)}}class Dj extends KE{constructor(n,e,i,r,s){super(e,i,r,s),this.factory=n,this.namespaceId=e}setProperty(n,e,i){"@"==e.charAt(0)?"."==e.charAt(1)&&e==qE?this.disableAnimations(n,i=void 0===i||!!i):this.engine.process(this.namespaceId,n,e.slice(1),i):this.delegate.setProperty(n,e,i)}listen(n,e,i){if("@"==e.charAt(0)){const r=function Sj(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(n);let s=e.slice(1),o="";return"@"!=s.charAt(0)&&([s,o]=function Ej(t){const n=t.indexOf(".");return[t.substring(0,n),t.slice(n+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(n,e,i)}}const QE=[{provide:xD,useClass:vj},{provide:$f,useFactory:function Tj(){return new WU}},{provide:nu,useClass:(()=>{class t extends nu{constructor(e,i,r,s){super(e.body,i,r)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(e){return new(e||t)(x(Qe),x(Of),x($f),x(Ro))},t.\u0275prov=k({token:t,factory:t.\u0275fac}),t})()},{provide:mo,useFactory:function Mj(t,n,e){return new bj(t,n,e)},deps:[rc,nu,Te]}],Kf=[{provide:Of,useFactory:()=>new yj},{provide:Aw,useValue:"BrowserAnimations"},...QE],ZE=[{provide:Of,useClass:bE},{provide:Aw,useValue:"NoopAnimations"},...QE];let Aj=(()=>{class t{static withConfig(e){return{ngModule:t,providers:e.disableAnimations?ZE:Kf}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275mod=Fe({type:t}),t.\u0275inj=Oe({providers:Kf,imports:[QC]}),t})();class Hs{}Hs.\u0275fac=function(n){return new(n||Hs)},Hs.\u0275mod=Fe({type:Hs,bootstrap:[Da]}),Hs.\u0275inj=Oe({imports:[QC,Aj,Vs,yV,v$,a2,_2,j2,lE]}),aF().bootstrapModule(Hs).catch(t=>console.error(t))}},xe=>{xe(xe.s=431)}]); |