-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.892cc7e66eacef25.js
More file actions
1 lines (1 loc) · 248 KB
/
main.892cc7e66eacef25.js
File metadata and controls
1 lines (1 loc) · 248 KB
1
"use strict";var z2=Object.defineProperty,G2=Object.defineProperties,Q2=Object.getOwnPropertyDescriptors,Iw=Object.getOwnPropertySymbols,K2=Object.prototype.hasOwnProperty,Y2=Object.prototype.propertyIsEnumerable,Aw=(K,Re,Ke)=>Re in K?z2(K,Re,{enumerable:!0,configurable:!0,writable:!0,value:Ke}):K[Re]=Ke,M=(K,Re)=>{for(var Ke in Re||(Re={}))K2.call(Re,Ke)&&Aw(K,Ke,Re[Ke]);if(Iw)for(var Ke of Iw(Re))Y2.call(Re,Ke)&&Aw(K,Ke,Re[Ke]);return K},ct=(K,Re)=>G2(K,Q2(Re));(self.webpackChunkNXiFrontend=self.webpackChunkNXiFrontend||[]).push([[179],{476:()=>{function K(t){return"function"==typeof t}function Re(t){const n=t(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Ke=Re(t=>function(n){t(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,i)=>`${i+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function ns(t,e){if(t){const n=t.indexOf(e);0<=n&&t.splice(n,1)}}class St{constructor(e){this.initialTeardown=e,this.closed=!1,this._parentage=null,this._teardowns=null}unsubscribe(){let e;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const s of n)s.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(K(r))try{r()}catch(s){e=s instanceof Ke?s.errors:[s]}const{_teardowns:i}=this;if(i){this._teardowns=null;for(const s of i)try{Vh(s)}catch(o){e=null!=e?e:[],o instanceof Ke?e=[...e,...o.errors]:e.push(o)}}if(e)throw new Ke(e)}}add(e){var n;if(e&&e!==this)if(this.closed)Vh(e);else{if(e instanceof St){if(e.closed||e._hasParent(this))return;e._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(e)}}_hasParent(e){const{_parentage:n}=this;return n===e||Array.isArray(n)&&n.includes(e)}_addParent(e){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(e),n):n?[n,e]:e}_removeParent(e){const{_parentage:n}=this;n===e?this._parentage=null:Array.isArray(n)&&ns(n,e)}remove(e){const{_teardowns:n}=this;n&&ns(n,e),e instanceof St&&e._removeParent(this)}}St.EMPTY=(()=>{const t=new St;return t.closed=!0,t})();const kh=St.EMPTY;function Lh(t){return t instanceof St||t&&"closed"in t&&K(t.remove)&&K(t.add)&&K(t.unsubscribe)}function Vh(t){K(t)?t():t.unsubscribe()}const ur={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Io={setTimeout(...t){const{delegate:e}=Io;return((null==e?void 0:e.setTimeout)||setTimeout)(...t)},clearTimeout(t){const{delegate:e}=Io;return((null==e?void 0:e.clearTimeout)||clearTimeout)(t)},delegate:void 0};function Bh(t){Io.setTimeout(()=>{const{onUnhandledError:e}=ur;if(!e)throw t;e(t)})}function Ao(){}const Mw=Kl("C",void 0,void 0);function Kl(t,e,n){return{kind:t,value:e,error:n}}let cr=null;function Mo(t){if(ur.useDeprecatedSynchronousErrorHandling){const e=!cr;if(e&&(cr={errorThrown:!1,error:null}),t(),e){const{errorThrown:n,error:r}=cr;if(cr=null,n)throw r}}else t()}class Yl extends St{constructor(e){super(),this.isStopped=!1,e?(this.destination=e,Lh(e)&&e.add(this)):this.destination=xw}static create(e,n,r){return new Zl(e,n,r)}next(e){this.isStopped?Xl(Kl("N",e,void 0),this):this._next(e)}error(e){this.isStopped?Xl(Kl("E",void 0,e),this):(this.isStopped=!0,this._error(e))}complete(){this.isStopped?Xl(Mw,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(e){this.destination.next(e)}_error(e){try{this.destination.error(e)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}class Zl extends Yl{constructor(e,n,r){let i;if(super(),K(e))i=e;else if(e){let s;({next:i,error:n,complete:r}=e),this&&ur.useDeprecatedNextContext?(s=Object.create(e),s.unsubscribe=()=>this.unsubscribe()):s=e,i=null==i?void 0:i.bind(s),n=null==n?void 0:n.bind(s),r=null==r?void 0:r.bind(s)}this.destination={next:i?Jl(i):Ao,error:Jl(null!=n?n:jh),complete:r?Jl(r):Ao}}}function Jl(t,e){return(...n)=>{try{t(...n)}catch(r){ur.useDeprecatedSynchronousErrorHandling?function(t){ur.useDeprecatedSynchronousErrorHandling&&cr&&(cr.errorThrown=!0,cr.error=t)}(r):Bh(r)}}}function jh(t){throw t}function Xl(t,e){const{onStoppedNotification:n}=ur;n&&Io.setTimeout(()=>n(t,e))}const xw={closed:!0,next:Ao,error:jh,complete:Ao},eu="function"==typeof Symbol&&Symbol.observable||"@@observable";function dr(t){return t}let pe=(()=>{class t{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,i){const s=function(t){return t&&t instanceof Yl||function(t){return t&&K(t.next)&&K(t.error)&&K(t.complete)}(t)&&Lh(t)}(n)?n:new Zl(n,r,i);return Mo(()=>{const{operator:o,source:a}=this;s.add(o?o.call(s,a):a?this._subscribe(s):this._trySubscribe(s))}),s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=$h(r))((i,s)=>{let o;o=this.subscribe(a=>{try{n(a)}catch(l){s(l),null==o||o.unsubscribe()}},s,i)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[eu](){return this}pipe(...n){return function(t){return 0===t.length?dr:1===t.length?t[0]:function(n){return t.reduce((r,i)=>i(r),n)}}(n)(this)}toPromise(n){return new(n=$h(n))((r,i)=>{let s;this.subscribe(o=>s=o,o=>i(o),()=>r(s))})}}return t.create=e=>new t(e),t})();function $h(t){var e;return null!==(e=null!=t?t:ur.Promise)&&void 0!==e?e:Promise}const kw=Re(t=>function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let vn=(()=>{class t extends pe{constructor(){super(),this.closed=!1,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Hh(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new kw}next(n){Mo(()=>{if(this._throwIfClosed(),!this.isStopped){const r=this.observers.slice();for(const i of r)i.next(n)}})}error(n){Mo(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Mo(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:i,observers:s}=this;return r||i?kh:(s.push(n),new St(()=>ns(s,n)))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:i,isStopped:s}=this;r?n.error(i):s&&n.complete()}asObservable(){const n=new pe;return n.source=this,n}}return t.create=(e,n)=>new Hh(e,n),t})();class Hh extends vn{constructor(e,n){super(),this.destination=e,this.source=n}next(e){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,e)}error(e){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,e)}complete(){var e,n;null===(n=null===(e=this.destination)||void 0===e?void 0:e.complete)||void 0===n||n.call(e)}_subscribe(e){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(e))&&void 0!==r?r:kh}}function qh(t){return K(null==t?void 0:t.lift)}function ke(t){return e=>{if(qh(e))return e.lift(function(n){try{return t(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}class Le extends Yl{constructor(e,n,r,i,s){super(e),this.onFinalize=s,this._next=n?function(o){try{n(o)}catch(a){e.error(a)}}:super._next,this._error=i?function(o){try{i(o)}catch(a){e.error(a)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(o){e.error(o)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var e;const{closed:n}=this;super.unsubscribe(),!n&&(null===(e=this.onFinalize)||void 0===e||e.call(this))}}function ue(t,e){return ke((n,r)=>{let i=0;n.subscribe(new Le(r,s=>{r.next(t.call(e,s,i++))}))})}function fr(t){return this instanceof fr?(this.v=t,this):new fr(t)}function Bw(t,e,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var i,r=n.apply(t,e||[]),s=[];return i={},o("next"),o("throw"),o("return"),i[Symbol.asyncIterator]=function(){return this},i;function o(f){r[f]&&(i[f]=function(h){return new Promise(function(p,m){s.push([f,h,p,m])>1||a(f,h)})})}function a(f,h){try{!function(f){f.value instanceof fr?Promise.resolve(f.value.v).then(u,c):d(s[0][2],f)}(r[f](h))}catch(p){d(s[0][3],p)}}function u(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),s.shift(),s.length&&a(s[0][0],s[0][1])}}function jw(t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,e=t[Symbol.asyncIterator];return e?e.call(t):(t=function(t){var e="function"==typeof Symbol&&Symbol.iterator,n=e&&t[e],r=0;if(n)return n.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&r>=t.length&&(t=void 0),{value:t&&t[r++],done:!t}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")}(t),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(s){n[s]=t[s]&&function(o){return new Promise(function(a,l){!function(s,o,a,l){Promise.resolve(l).then(function(u){s({value:u,done:a})},o)}(a,l,(o=t[s](o)).done,o.value)})}}}const Qh=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function Kh(t){return K(null==t?void 0:t.then)}function Yh(t){return K(t[eu])}function Zh(t){return Symbol.asyncIterator&&K(null==t?void 0:t[Symbol.asyncIterator])}function Jh(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 Xh="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function ep(t){return K(null==t?void 0:t[Xh])}function tp(t){return Bw(this,arguments,function*(){const n=t.getReader();try{for(;;){const{value:r,done:i}=yield fr(n.read());if(i)return yield fr(void 0);yield yield fr(r)}}finally{n.releaseLock()}})}function np(t){return K(null==t?void 0:t.getReader)}function Cn(t){if(t instanceof pe)return t;if(null!=t){if(Yh(t))return function(t){return new pe(e=>{const n=t[eu]();if(K(n.subscribe))return n.subscribe(e);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(t);if(Qh(t))return function(t){return new pe(e=>{for(let n=0;n<t.length&&!e.closed;n++)e.next(t[n]);e.complete()})}(t);if(Kh(t))return function(t){return new pe(e=>{t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,Bh)})}(t);if(Zh(t))return rp(t);if(ep(t))return function(t){return new pe(e=>{for(const n of t)if(e.next(n),e.closed)return;e.complete()})}(t);if(np(t))return function(t){return rp(tp(t))}(t)}throw Jh(t)}function rp(t){return new pe(e=>{(function(t,e){var n,r,i,s;return function(t,e,n,r){return new(n||(n=Promise))(function(s,o){function a(c){try{u(r.next(c))}catch(d){o(d)}}function l(c){try{u(r.throw(c))}catch(d){o(d)}}function u(c){c.done?s(c.value):function(s){return s instanceof n?s:new n(function(o){o(s)})}(c.value).then(a,l)}u((r=r.apply(t,e||[])).next())})}(this,void 0,void 0,function*(){try{for(n=jw(t);!(r=yield n.next()).done;)if(e.next(r.value),e.closed)return}catch(o){i={error:o}}finally{try{r&&!r.done&&(s=n.return)&&(yield s.call(n))}finally{if(i)throw i.error}}e.complete()})})(t,e).catch(n=>e.error(n))})}function wn(t,e,n,r=0,i=!1){const s=e.schedule(function(){n(),i?t.add(this.schedule(null,r)):this.unsubscribe()},r);if(t.add(s),!i)return s}function Ne(t,e,n=1/0){return K(e)?Ne((r,i)=>ue((s,o)=>e(r,s,i,o))(Cn(t(r,i))),n):("number"==typeof e&&(n=e),ke((r,i)=>function(t,e,n,r,i,s,o,a){const l=[];let u=0,c=0,d=!1;const f=()=>{d&&!l.length&&!u&&e.complete()},h=m=>u<r?p(m):l.push(m),p=m=>{u++;let g=!1;Cn(n(m,c++)).subscribe(new Le(e,_=>{e.next(_)},()=>{g=!0},void 0,()=>{if(g)try{for(u--;l.length&&u<r;){const _=l.shift();p(_)}f()}catch(_){e.error(_)}}))};return t.subscribe(new Le(e,h,()=>{d=!0,f()})),()=>{}}(r,i,t,n)))}function rs(t=1/0){return Ne(dr,t)}const bn=new pe(t=>t.complete());function nu(t){return t[t.length-1]}function is(t){return function(t){return t&&K(t.schedule)}(nu(t))?t.pop():void 0}function ip(t,e=0){return ke((n,r)=>{n.subscribe(new Le(r,i=>wn(r,t,()=>r.next(i),e),()=>wn(r,t,()=>r.complete(),e),i=>wn(r,t,()=>r.error(i),e)))})}function sp(t,e=0){return ke((n,r)=>{r.add(t.schedule(()=>n.subscribe(r),e))})}function op(t,e){if(!t)throw new Error("Iterable cannot be null");return new pe(n=>{wn(n,e,()=>{const r=t[Symbol.asyncIterator]();wn(n,e,()=>{r.next().then(i=>{i.done?n.complete():n.next(i.value)})},0,!0)})})}function Ve(t,e){return e?function(t,e){if(null!=t){if(Yh(t))return function(t,e){return Cn(t).pipe(sp(e),ip(e))}(t,e);if(Qh(t))return function(t,e){return new pe(n=>{let r=0;return e.schedule(function(){r===t.length?n.complete():(n.next(t[r++]),n.closed||this.schedule())})})}(t,e);if(Kh(t))return function(t,e){return Cn(t).pipe(sp(e),ip(e))}(t,e);if(Zh(t))return op(t,e);if(ep(t))return function(t,e){return new pe(n=>{let r;return wn(n,e,()=>{r=t[Xh](),wn(n,e,()=>{let i,s;try{({value:i,done:s}=r.next())}catch(o){return void n.error(o)}s?n.complete():n.next(i)},0,!0)}),()=>K(null==r?void 0:r.return)&&r.return()})}(t,e);if(np(t))return function(t,e){return op(tp(t),e)}(t,e)}throw Jh(t)}(t,e):Cn(t)}function Ro(t){return t<=0?()=>bn:ke((e,n)=>{let r=0;e.subscribe(new Le(n,i=>{++r<=t&&(n.next(i),t<=r&&n.complete())}))})}function ru(t,e,...n){return!0===e?(t(),null):!1===e?null:e(...n).pipe(Ro(1)).subscribe(()=>t())}function ne(t){for(let e in t)if(t[e]===ne)return e;throw Error("Could not find renamed property on target object.")}function q(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(q).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function su(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const lb=ne({__forward_ref__:ne});function ou(t){return t.__forward_ref__=ou,t.toString=function(){return q(this())},t}function T(t){return function(t){return"function"==typeof t&&t.hasOwnProperty(lb)&&t.__forward_ref__===ou}(t)?t():t}class hr extends Error{constructor(e,n){super(function(t,e){return`${t?`NG0${t}: `:""}${e}`}(e,n)),this.code=e}}function Ye(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():function(t){return"string"==typeof t?t:null==t?"":String(t)}(t)}function No(t,e){const n=e?` in ${e}`:"";throw new hr("201",`No provider for ${Ye(t)} found${n}`)}function ft(t,e){null==t&&function(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}(e,t,null,"!=")}function j(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Tn(t){return{providers:t.providers||[],imports:t.imports||[]}}function In(t){return lp(t,Po)||lp(t,cp)}function lp(t,e){return t.hasOwnProperty(e)?t[e]:null}function up(t){return t&&(t.hasOwnProperty(lu)||t.hasOwnProperty(gb))?t[lu]:null}const Po=ne({\u0275prov:ne}),lu=ne({\u0275inj:ne}),cp=ne({ngInjectableDef:ne}),gb=ne({ngInjectorDef:ne});var R=(()=>((R=R||{})[R.Default=0]="Default",R[R.Host=1]="Host",R[R.Self=2]="Self",R[R.SkipSelf=4]="SkipSelf",R[R.Optional=8]="Optional",R))();let uu;function Hn(t){const e=uu;return uu=t,e}function dp(t,e,n){const r=In(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&R.Optional?null:void 0!==e?e:void No(q(t),"Injector")}function qn(t){return{toString:t}.toString()}var Tt=(()=>((Tt=Tt||{})[Tt.OnPush=0]="OnPush",Tt[Tt.Default=1]="Default",Tt))(),st=(()=>{return(t=st||(st={}))[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",st;var t})();const yb="undefined"!=typeof globalThis&&globalThis,_b="undefined"!=typeof window&&window,Eb="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,X=yb||"undefined"!=typeof global&&global||_b||Eb,zr={},re=[],xo=ne({\u0275cmp:ne}),cu=ne({\u0275dir:ne}),du=ne({\u0275pipe:ne}),fp=ne({\u0275mod:ne}),An=ne({\u0275fac:ne}),ss=ne({__NG_ELEMENT_ID__:ne});let Db=0;function Fo(t){return qn(()=>{const n={},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:n,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===Tt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||re,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||st.Emulated,id:"c",styles:t.styles||re,_:null,setInput:null,schemas:t.schemas||null,tView:null},i=t.directives,s=t.features,o=t.pipes;return r.id+=Db++,r.inputs=mp(t.inputs,n),r.outputs=mp(t.outputs),s&&s.forEach(a=>a(r)),r.directiveDefs=i?()=>("function"==typeof i?i():i).map(hp):null,r.pipeDefs=o?()=>("function"==typeof o?o():o).map(pp):null,r})}function hp(t){return Ue(t)||function(t){return t[cu]||null}(t)}function pp(t){return function(t){return t[du]||null}(t)}const gp={};function pr(t){return qn(()=>{const e={type:t.type,bootstrap:t.bootstrap||re,declarations:t.declarations||re,imports:t.imports||re,exports:t.exports||re,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(gp[t.id]=t.type),e})}function mp(t,e){if(null==t)return zr;const n={};for(const r in t)if(t.hasOwnProperty(r)){let i=t[r],s=i;Array.isArray(i)&&(s=i[1],i=i[0]),n[i]=r,e&&(e[i]=s)}return n}const je=Fo;function Ue(t){return t[xo]||null}function It(t,e){const n=t[fp]||null;if(!n&&!0===e)throw new Error(`Type ${q(t)} does not have '\u0275mod' property.`);return n}const U=11;function sn(t){return Array.isArray(t)&&"object"==typeof t[1]}function Ut(t){return Array.isArray(t)&&!0===t[1]}function pu(t){return 0!=(8&t.flags)}function Vo(t){return 2==(2&t.flags)}function $t(t){return null!==t.template}function Tb(t){return 0!=(512&t[2])}function Er(t,e){return t.hasOwnProperty(An)?t[An]:null}class _p{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ep(t){return t.type.prototype.ngOnChanges&&(t.setInput=Rb),Mb}function Mb(){const t=vp(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===zr)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function Rb(t,e,n,r){const i=vp(t)||function(t,e){return t[Dp]=e}(t,{previous:zr,current:null}),s=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[n],l=o[a];s[a]=new _p(l&&l.currentValue,e,o===zr),t[r]=e}const Dp="__ngSimpleChanges__";function vp(t){return t[Dp]||null}let yu;function ge(t){return!!t.listen}const bp={createRenderer:(t,e)=>void 0!==yu?yu:"undefined"!=typeof document?document:void 0};function Ce(t){for(;Array.isArray(t);)t=t[0];return t}function Rt(t,e){return Ce(e[t.index])}function pt(t,e){const n=e[t];return sn(n)?n:n[0]}function Du(t){return 128==(128&t[2])}function zn(t,e){return null==e?null:t[e]}function Tp(t){t[18]=0}function vu(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const F={lFrame:Fp(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ip(){return F.bindingsEnabled}function E(){return F.lFrame.lView}function Y(){return F.lFrame.tView}function Se(){let t=Ap();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ap(){return F.lFrame.currentTNode}function on(t,e){const n=F.lFrame;n.currentTNode=t,n.isParent=e}function Cu(){return F.lFrame.isParent}function Uo(){return F.isInCheckNoChangesMode}function $o(t){F.isInCheckNoChangesMode=t}function zb(t,e){const n=F.lFrame;n.bindingIndex=n.bindingRootIndex=t,bu(e)}function bu(t){F.lFrame.currentDirectiveIndex=t}function Tu(t){F.lFrame.currentQueryIndex=t}function Qb(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function Pp(t,e,n){if(n&R.SkipSelf){let i=e,s=t;for(;!(i=i.parent,null!==i||n&R.Host||(i=Qb(s),null===i||(s=s[15],10&i.type))););if(null===i)return!1;e=i,t=s}const r=F.lFrame=xp();return r.currentTNode=e,r.lView=t,!0}function Ho(t){const e=xp(),n=t[1];F.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function xp(){const t=F.lFrame,e=null===t?null:t.child;return null===e?Fp(t):e}function Fp(t){const e={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=e),e}function Op(){const t=F.lFrame;return F.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const kp=Op;function qo(){const t=Op();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 Gn(t){F.lFrame.selectedIndex=t}function Wo(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n<r;n++){const s=t.data[n].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:u,ngOnDestroy:c}=s;o&&(t.contentHooks||(t.contentHooks=[])).push(-n,o),a&&((t.contentHooks||(t.contentHooks=[])).push(n,a),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,a)),l&&(t.viewHooks||(t.viewHooks=[])).push(-n,l),u&&((t.viewHooks||(t.viewHooks=[])).push(n,u),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,u)),null!=c&&(t.destroyHooks||(t.destroyHooks=[])).push(n,c)}}function zo(t,e,n){Lp(t,e,3,n)}function Go(t,e,n,r){(3&t[2])===n&&Lp(t,e,n,r)}function Iu(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function Lp(t,e,n,r){const s=null!=r?r:-1,o=e.length-1;let a=0;for(let l=void 0!==r?65535&t[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=r&&a>=r)break}else e[l]<0&&(t[18]+=65536),(a<s||-1==s)&&(r0(t,n,e,l),t[18]=(4294901760&t[18])+l+2),l++}function r0(t,e,n,r){const i=n[r]<0,s=n[r+1],a=t[i?-n[r]:n[r]];if(i){if(t[2]>>11<t[18]>>16&&(3&t[2])===e){t[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class cs{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Qo(t,e,n){const r=ge(t);let i=0;for(;i<n.length;){const s=n[i];if("number"==typeof s){if(0!==s)break;i++;const o=n[i++],a=n[i++],l=n[i++];r?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=n[++i];Mu(o)?r&&t.setProperty(e,o,a):r?t.setAttribute(e,o,a):e.setAttribute(o,a),i++}}return i}function Vp(t){return 3===t||4===t||6===t}function Mu(t){return 64===t.charCodeAt(0)}function Ko(t,e){if(null!==e&&0!==e.length)if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let r=0;r<e.length;r++){const i=e[r];"number"==typeof i?n=i:0===n||Bp(t,n,i,null,-1===n||2===n?e[++r]:null)}}return t}function Bp(t,e,n,r,i){let s=0,o=t.length;if(-1===e)o=-1;else for(;s<t.length;){const a=t[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<t.length;){const a=t[s];if("number"==typeof a)break;if(a===n){if(null===r)return void(null!==i&&(t[s+1]=i));if(r===t[s+1])return void(t[s+2]=i)}s++,null!==r&&s++,null!==i&&s++}-1!==o&&(t.splice(o,0,e),s=o+1),t.splice(s++,0,n),null!==r&&t.splice(s++,0,r),null!==i&&t.splice(s++,0,i)}function jp(t){return-1!==t}function Xr(t){return 32767&t}function ei(t,e){let n=function(t){return t>>16}(t),r=e;for(;n>0;)r=r[15],n--;return r}let Ru=!0;function Yo(t){const e=Ru;return Ru=t,e}let c0=0;function fs(t,e){const n=Pu(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,Nu(r.data,t),Nu(e,null),Nu(r.blueprint,null));const i=Zo(t,e),s=t.injectorIndex;if(jp(i)){const o=Xr(i),a=ei(i,e),l=a[1].data;for(let u=0;u<8;u++)e[s+u]=a[o+u]|l[o+u]}return e[s+8]=i,s}function Nu(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Pu(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Zo(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,i=e;for(;null!==i;){const s=i[1],o=s.type;if(r=2===o?s.declTNode:1===o?i[6]:null,null===r)return-1;if(n++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function Jo(t,e,n){!function(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ss)&&(r=n[ss]),null==r&&(r=n[ss]=c0++);const i=255&r;e.data[t+(i>>5)]|=1<<i}(t,e,n)}function Hp(t,e,n){if(n&R.Optional)return t;No(e,"NodeInjector")}function qp(t,e,n,r){if(n&R.Optional&&void 0===r&&(r=null),0==(n&(R.Self|R.Host))){const i=t[9],s=Hn(void 0);try{return i?i.get(e,r,n&R.Optional):dp(e,r,n&R.Optional)}finally{Hn(s)}}return Hp(r,e,n)}function Wp(t,e,n,r=R.Default,i){if(null!==t){const s=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(ss)?t[ss]:void 0;return"number"==typeof e?e>=0?255&e:h0:e}(n);if("function"==typeof s){if(!Pp(e,t,r))return r&R.Host?Hp(i,n,r):qp(e,n,r,i);try{const o=s(r);if(null!=o||r&R.Optional)return o;No(n)}finally{kp()}}else if("number"==typeof s){let o=null,a=Pu(t,e),l=-1,u=r&R.Host?e[16][6]:null;for((-1===a||r&R.SkipSelf)&&(l=-1===a?Zo(t,e):e[a+8],-1!==l&&Qp(r,!1)?(o=e[1],a=Xr(l),e=ei(l,e)):a=-1);-1!==a;){const c=e[1];if(Gp(s,a,c.data)){const d=p0(a,e,n,o,r,u);if(d!==zp)return d}l=e[a+8],-1!==l&&Qp(r,e[1].data[a+8]===u)&&Gp(s,a,e)?(o=c,a=Xr(l),e=ei(l,e)):a=-1}}}return qp(e,n,r,i)}const zp={};function h0(){return new ti(Se(),E())}function p0(t,e,n,r,i,s){const o=e[1],a=o.data[t+8],c=function(t,e,n,r,i){const s=t.providerIndexes,o=e.data,a=1048575&s,l=t.directiveStart,c=s>>20,f=i?a+c:t.directiveEnd;for(let h=r?a:a+c;h<f;h++){const p=o[h];if(h<l&&n===p||h>=l&&p.type===n)return h}if(i){const h=o[l];if(h&&$t(h)&&h.type===n)return l}return null}(a,o,n,null==r?Vo(a)&&Ru:r!=o&&0!=(3&a.type),i&R.Host&&s===a);return null!==c?hs(e,o,c,a):zp}function hs(t,e,n,r){let i=t[n];const s=e.data;if(function(t){return t instanceof cs}(i)){const o=i;o.resolving&&function(t,e){throw new hr("200",`Circular dependency in DI detected for ${t}`)}(Ye(s[n]));const a=Yo(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?Hn(o.injectImpl):null;Pp(t,r,R.Default);try{i=t[n]=o.factory(void 0,s,t,r),e.firstCreatePass&&n>=r.directiveStart&&function(t,e,n){const{ngOnChanges:r,ngOnInit:i,ngDoCheck:s}=e.type.prototype;if(r){const o=Ep(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),s&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s))}(n,s[n],e)}finally{null!==l&&Hn(l),Yo(a),o.resolving=!1,kp()}}return i}function Gp(t,e,n){return!!(n[e+(t>>5)]&1<<t)}function Qp(t,e){return!(t&R.Self||t&R.Host&&e)}class ti{constructor(e,n){this._tNode=e,this._lView=n}get(e,n,r){return Wp(this._tNode,this._lView,e,r,n)}}const ri="__parameters__";function vr(t,e,n){return qn(()=>{const r=function(t){return function(...n){if(t){const r=t(...n);for(const i in r)this[i]=r[i]}}}(e);function i(...s){if(this instanceof i)return r.apply(this,s),this;const o=new i(...s);return a.annotation=o,a;function a(l,u,c){const d=l.hasOwnProperty(ri)?l[ri]:Object.defineProperty(l,ri,{value:[]})[ri];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(o),l}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}class Z{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=j({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const E0=new Z("AnalyzeForEntryComponents");function an(t,e){t.forEach(n=>Array.isArray(n)?an(n,e):e(n))}function ea(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Cr(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}const Es={},Vu="__NG_DI_FLAG__",oi="ngTempTokenPath",M0=/\n/gm,Bu="__source",ju=ne({provide:String,useValue:ne});let Ds;function ai(t){const e=Ds;return Ds=t,e}function N0(t,e=R.Default){if(void 0===Ds)throw new Error("inject() must be called from an injection context");return null===Ds?dp(t,void 0,e):Ds.get(t,e&R.Optional?null:void 0,e)}function S(t,e=R.Default){return(uu||N0)(T(t),e)}function wr(t){const e=[];for(let n=0;n<t.length;n++){const r=T(t[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let i,s=R.Default;for(let o=0;o<r.length;o++){const a=r[o],l=P0(a);"number"==typeof l?-1===l?i=a.token:s|=l:i=a}e.push(S(i,s))}else e.push(S(r))}return e}function vs(t,e){return t[Vu]=e,t.prototype[Vu]=e,t}function P0(t){return t[Vu]}function Xp(t,e,n,r){const i=t[oi];throw e[Bu]&&i.unshift(e[Bu]),t.message=function(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=q(e);if(Array.isArray(e))i=e.map(q).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):q(a)))}i=`{${s.join(", ")}}`}return`${n}${r?"("+r+")":""}[${i}]: ${t.replace(M0,"\n ")}`}("\n"+t.message,i,n,r),t.ngTokenPath=i,t[oi]=null,t}const li=vs(vr("Inject",t=>({token:t})),-1),lt=vs(vr("Optional"),8),Yn=vs(vr("SkipSelf"),4),_g="__ngContext__";function He(t,e){t[_g]=e}function Yu(t){const e=function(t){return t[_g]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function aa(t){return t.ngOriginalError}function SS(t,...e){t.error(...e)}class Sr{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e),r=this._findContext(e),i=(t=e)&&t.ngErrorLogger||SS;var t;i(this._console,"ERROR",e),n&&i(this._console,"ORIGINAL ERROR",n),r&&i(this._console,"ERROR CONTEXT",r)}_findContext(e){return e?e.ngDebugContext||this._findContext(aa(e)):null}_findOriginalError(e){let n=e&&aa(e);for(;n&&aa(n);)n=aa(n);return n||null}}const Ig=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(X))();function cn(t){return t instanceof Function?t():t}var yt=(()=>((yt=yt||{})[yt.Important=1]="Important",yt[yt.DashCase=2]="DashCase",yt))();function Xu(t,e){return undefined(t,e)}function Is(t){const e=t[3];return Ut(e)?e[3]:e}function ec(t){return Pg(t[13])}function tc(t){return Pg(t[4])}function Pg(t){for(;null!==t&&!Ut(t);)t=t[4];return t}function fi(t,e,n,r,i){if(null!=r){let s,o=!1;Ut(r)?s=r:sn(r)&&(o=!0,r=r[0]);const a=Ce(r);0===t&&null!==n?null==i?Vg(e,n,a):Tr(e,n,a,i||null,!0):1===t&&null!==n?Tr(e,n,a,i||null,!0):2===t?function(t,e,n){const r=ua(t,e);r&&function(t,e,n,r){ge(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=s&&function(t,e,n,r,i){const s=n[7];s!==Ce(n)&&fi(e,t,r,s,i);for(let a=10;a<n.length;a++){const l=n[a];As(l[1],l,t,e,r,s)}}(e,t,s,n,i)}}function rc(t,e,n){return ge(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Fg(t,e){const n=t[9],r=n.indexOf(e),i=e[3];1024&e[2]&&(e[2]&=-1025,vu(i,-1)),n.splice(r,1)}function ic(t,e){if(t.length<=10)return;const n=10+e,r=t[n];if(r){const i=r[17];null!==i&&i!==t&&Fg(i,r),e>0&&(t[n-1][4]=r[4]);const s=Cr(t,10+e);!function(t,e){As(t,e,e[U],2,null,null),e[0]=null,e[6]=null}(r[1],r);const o=s[19];null!==o&&o.detachView(s[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Og(t,e){if(!(256&e[2])){const n=e[U];ge(n)&&n.destroyNode&&As(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return sc(t[1],t);for(;e;){let n=null;if(sn(e))n=e[13];else{const r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)sn(e)&&sc(e[1],e),e=e[3];null===e&&(e=t),sn(e)&&sc(e[1],e),n=e&&e[4]}e=n}}(e)}}function sc(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r<n.length;r+=2){const i=e[n[r]];if(!(i instanceof cs)){const s=n[r+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=i[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(i)}finally{}}}}(t,e),function(t,e){const n=t.cleanup,r=e[7];let i=-1;if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const o=n[s+1],a="function"==typeof o?o(e):Ce(e[o]),l=r[i=n[s+2]],u=n[s+3];"boolean"==typeof u?a.removeEventListener(n[s],l,u):u>=0?r[i=u]():r[i=-u].unsubscribe(),s+=2}else{const o=r[i=n[s+1]];n[s].call(o)}if(null!==r){for(let s=i+1;s<r.length;s++)r[s]();e[7]=null}}(t,e),1===e[1].type&&ge(e[U])&&e[U].destroy();const n=e[17];if(null!==n&&Ut(e[3])){n!==e[3]&&Fg(n,e);const r=e[19];null!==r&&r.detachView(t)}}}function kg(t,e,n){return function(t,e,n){let r=e;for(;null!==r&&40&r.type;)r=(e=r).parent;if(null===r)return n[0];if(2&r.flags){const i=t.data[r.directiveStart].encapsulation;if(i===st.None||i===st.Emulated)return null}return Rt(r,n)}(t,e.parent,n)}function Tr(t,e,n,r,i){ge(t)?t.insertBefore(e,n,r,i):e.insertBefore(n,r,i)}function Vg(t,e,n){ge(t)?t.appendChild(e,n):e.appendChild(n)}function Bg(t,e,n,r,i){null!==r?Tr(t,e,n,r,i):Vg(t,e,n)}function ua(t,e){return ge(t)?t.parentNode(e):e.parentNode}let $g=function(t,e,n){return 40&t.type?Rt(t,n):null};function ca(t,e,n,r){const i=kg(t,r,e),s=e[U],a=function(t,e,n){return $g(t,e,n)}(r.parent||e[6],r,e);if(null!=i)if(Array.isArray(n))for(let l=0;l<n.length;l++)Bg(s,i,n[l],a,!1);else Bg(s,i,n,a,!1)}function da(t,e){if(null!==e){const n=e.type;if(3&n)return Rt(e,t);if(4&n)return ac(-1,t[e.index]);if(8&n){const r=e.child;if(null!==r)return da(t,r);{const i=t[e.index];return Ut(i)?ac(-1,i):Ce(i)}}if(32&n)return Xu(e,t)()||Ce(t[e.index]);{const r=qg(t,e);return null!==r?Array.isArray(r)?r[0]:da(Is(t[16]),r):da(t,e.next)}}return null}function qg(t,e){return null!==e?t[16][6].projection[e.projection]:null}function ac(t,e){const n=10+t+1;if(n<e.length){const r=e[n],i=r[1].firstChild;if(null!==i)return da(r,i)}return e[7]}function lc(t,e,n,r,i,s,o){for(;null!=n;){const a=r[n.index],l=n.type;if(o&&0===e&&(a&&He(Ce(a),r),n.flags|=4),64!=(64&n.flags))if(8&l)lc(t,e,n.child,r,i,s,!1),fi(e,t,i,a,s);else if(32&l){const u=Xu(n,r);let c;for(;c=u();)fi(e,t,i,c,s);fi(e,t,i,a,s)}else 16&l?zg(t,e,r,n,i,s):fi(e,t,i,a,s);n=o?n.projectionNext:n.next}}function As(t,e,n,r,i,s){lc(n,r,t.firstChild,e,i,s,!1)}function zg(t,e,n,r,i,s){const o=n[16],l=o[6].projection[r.projection];if(Array.isArray(l))for(let u=0;u<l.length;u++)fi(e,t,i,l[u],s);else lc(t,e,l,o[3],i,s,!0)}function Gg(t,e,n){ge(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function uc(t,e,n){ge(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}function Qg(t,e,n){let r=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const s=e.length;if(i+s===r||t.charCodeAt(i+s)<=32)return i}n=i+1}}const Kg="ng-template";function ZS(t,e,n){let r=0;for(;r<t.length;){let i=t[r++];if(n&&"class"===i){if(i=t[r],-1!==Qg(i.toLowerCase(),e,0))return!0}else if(1===i){for(;r<t.length&&"string"==typeof(i=t[r++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function Yg(t){return 4===t.type&&t.value!==Kg}function JS(t,e,n){return e===(4!==t.type||n?t.value:Kg)}function XS(t,e,n){let r=4;const i=t.attrs||[],s=function(t){for(let e=0;e<t.length;e++)if(Vp(t[e]))return e;return t.length}(i);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&r){if(r=2|1&r,""!==l&&!JS(t,l,n)||""===l&&1===e.length){if(Ht(r))return!1;o=!0}}else{const u=8&r?l:e[++a];if(8&r&&null!==t.attrs){if(!ZS(t.attrs,u,n)){if(Ht(r))return!1;o=!0}continue}const d=eT(8&r?"class":l,i,Yg(t),n);if(-1===d){if(Ht(r))return!1;o=!0;continue}if(""!==u){let f;f=d>s?"":i[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Qg(h,u,0)||2&r&&u!==f){if(Ht(r))return!1;o=!0}}}}else{if(!o&&!Ht(r)&&!Ht(l))return!1;if(o&&Ht(l))continue;o=!1,r=l|1&r}}return Ht(r)||o}function Ht(t){return 0==(1&t)}function eT(t,e,n,r){if(null===e)return-1;let i=0;if(r||!n){let s=!1;for(;i<e.length;){const o=e[i];if(o===t)return i;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++i];for(;"string"==typeof a;)a=e[++i];continue}if(4===o)break;if(0===o){i+=4;continue}}i+=s?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const r=t[n];if("number"==typeof r)return-1;if(r===e)return n;n++}return-1}(e,t)}function Zg(t,e,n=!1){for(let r=0;r<e.length;r++)if(XS(t,e[r],n))return!0;return!1}function Jg(t,e){return t?":not("+e.trim()+")":e}function sT(t){let e=t[0],n=1,r=2,i="",s=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&r){const a=t[++n];i+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""!==i&&!Ht(o)&&(e+=Jg(s,i),i=""),r=o,s=s||!Ht(r);n++}return""!==i&&(e+=Jg(s,i)),e}const B={};function cm(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const i=n[r],s=n[r+1];if(-1!==s){const o=t.data[s];Tu(i),o.contentQueries(2,e[s],s)}}}function Ms(t,e,n,r,i,s,o,a,l,u){const c=e.blueprint.slice();return c[0]=i,c[2]=140|r,Tp(c),c[3]=c[15]=t,c[8]=n,c[10]=o||t&&t[10],c[U]=a||t&&t[U],c[12]=l||t&&t[12]||null,c[9]=u||t&&t[9]||null,c[6]=s,c[16]=2==e.type?t[16]:c,c}function hi(t,e,n,r,i){let s=t.data[e];if(null===s)s=function(t,e,n,r,i){const s=Ap(),o=Cu(),l=t.data[e]=function(t,e,n,r,i,s){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:i,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,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,n,e,r,i);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,e,n,r,i),F.lFrame.inI18n&&(s.flags|=64);else if(64&s.type){s.type=n,s.value=r,s.attrs=i;const o=function(){const t=F.lFrame,e=t.currentTNode;return t.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return on(s,!0),s}function pi(t,e,n,r){if(0===n)return-1;const i=e.length;for(let s=0;s<n;s++)e.push(r),t.blueprint.push(r),t.data.push(null);return i}function Rs(t,e,n){Ho(e);try{const r=t.viewQuery;null!==r&&Rc(1,r,n);const i=t.template;null!==i&&dm(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&cm(t,e),t.staticViewQueries&&Rc(2,t.viewQuery,n);const s=t.components;null!==s&&function(t,e){for(let n=0;n<e.length;n++)$T(t,e[n])}(e,s)}catch(r){throw t.firstCreatePass&&(t.incompleteFirstPass=!0,t.firstCreatePass=!1),r}finally{e[2]&=-5,qo()}}function gi(t,e,n,r){const i=e[2];if(256==(256&i))return;Ho(e);const s=Uo();try{Tp(e),function(t){F.lFrame.bindingIndex=t}(t.bindingStartIndex),null!==n&&dm(t,e,n,2,r);const o=3==(3&i);if(!s)if(o){const u=t.preOrderCheckHooks;null!==u&&zo(e,u,null)}else{const u=t.preOrderHooks;null!==u&&Go(e,u,0,null),Iu(e,0)}if(function(t){for(let e=ec(t);null!==e;e=tc(e)){if(!e[2])continue;const n=e[9];for(let r=0;r<n.length;r++){const i=n[r],s=i[3];0==(1024&i[2])&&vu(s,1),i[2]|=1024}}}(e),function(t){for(let e=ec(t);null!==e;e=tc(e))for(let n=10;n<e.length;n++){const r=e[n],i=r[1];Du(r)&&gi(i,r,i.template,r[8])}}(e),null!==t.contentQueries&&cm(t,e),!s)if(o){const u=t.contentCheckHooks;null!==u&&zo(e,u)}else{const u=t.contentHooks;null!==u&&Go(e,u,1),Iu(e,1)}!function(t,e){const n=t.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const i=n[r];if(i<0)Gn(~i);else{const s=i,o=n[++r],a=n[++r];zb(o,s),a(2,e[s])}}}finally{Gn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)UT(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&Rc(2,l,r),!s)if(o){const u=t.viewCheckHooks;null!==u&&zo(e,u)}else{const u=t.viewHooks;null!==u&&Go(e,u,2),Iu(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),s||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,vu(e[3],-1))}finally{qo()}}function CT(t,e,n,r){const i=e[10],s=!Uo(),o=function(t){return 4==(4&t[2])}(e);try{s&&!o&&i.begin&&i.begin(),o&&Rs(t,e,r),gi(t,e,n,r)}finally{s&&!o&&i.end&&i.end()}}function dm(t,e,n,r,i){const s=F.lFrame.selectedIndex,o=2&r;try{Gn(-1),o&&e.length>20&&function(t,e,n,r){if(!r)if(3==(3&e[2])){const s=t.preOrderCheckHooks;null!==s&&zo(e,s,n)}else{const s=t.preOrderHooks;null!==s&&Go(e,s,0,n)}Gn(n)}(t,e,20,Uo()),n(r,i)}finally{Gn(s)}}function hm(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=ga(1,null,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function ga(t,e,n,r,i,s,o,a,l,u){const c=20+r,d=c+i,f=function(t,e){const n=[];for(let r=0;r<e;r++)n.push(r<t?null:B);return n}(c,d),h="function"==typeof u?u():u;return f[1]={type:t,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:e,data:f.slice().fill(null,c),bindingStartIndex:c,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:h,incompleteFirstPass:!1}}function ym(t,e,n){for(let r in t)if(t.hasOwnProperty(r)){const i=t[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(e,i):n[r]=[e,i]}return n}function Em(t,e,n,r,i,s){const o=s.hostBindings;if(o){let a=t.hostBindingOpCodes;null===a&&(a=t.hostBindingOpCodes=[]);const l=~e.index;(function(t){let e=t.length;for(;e>0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(a)!=l&&a.push(l),a.push(r,i,o)}}function Dm(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function vm(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function OT(t,e,n){if(n){if(e.exportAs)for(let r=0;r<e.exportAs.length;r++)n[e.exportAs[r]]=t;$t(e)&&(n[""]=t)}}function Cm(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function wm(t,e,n,r,i){t.data[r]=i;const s=i.factory||(i.factory=Er(i.type)),o=new cs(s,$t(i),null);t.blueprint[r]=o,n[r]=o,Em(t,e,0,r,pi(t,n,i.hostVars,B),i)}function kT(t,e,n){const r=Rt(e,t),i=hm(n),s=t[10],o=ma(t,Ms(t,i,null,n.onPush?64:16,r,e,s,s.createRenderer(r,n),null,null));t[e.index]=o}function LT(t,e,n,r,i,s){const o=s[e];if(null!==o){const a=r.setInput;for(let l=0;l<o.length;){const u=o[l++],c=o[l++],d=o[l++];null!==a?r.setInput(n,d,u,c):n[c]=d}}}function VT(t,e){let n=null,r=0;for(;r<e.length;){const i=e[r];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[r+1])),r+=2}else r+=2;else r+=4}return n}function UT(t,e){const n=pt(e,t);if(Du(n)){const r=n[1];80&n[2]?gi(r,n,r.template,n[8]):n[5]>0&&Tc(n)}}function Tc(t){for(let r=ec(t);null!==r;r=tc(r))for(let i=10;i<r.length;i++){const s=r[i];if(1024&s[2]){const o=s[1];gi(o,s,o.template,s[8])}else s[5]>0&&Tc(s)}const n=t[1].components;if(null!==n)for(let r=0;r<n.length;r++){const i=pt(n[r],t);Du(i)&&i[5]>0&&Tc(i)}}function $T(t,e){const n=pt(e,t),r=n[1];(function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])})(r,n),Rs(r,n,n[8])}function ma(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function Mc(t,e,n){const r=e[10];r.begin&&r.begin();try{gi(t,e,t.template,n)}catch(i){throw function(t,e){const n=t[9],r=n?n.get(Sr,null):null;r&&r.handleError(e)}(e,i),i}finally{r.end&&r.end()}}function Sm(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],r=Yu(n),i=r[1];CT(i,r,i.template,n)}}(t[8])}function Rc(t,e,n){Tu(0),e(t,n)}const GT=(()=>Promise.resolve(null))();function ya(t,e,n){let r=n?t.styles:null,i=n?t.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?i=su(i,a):2==s&&(r=su(r,a+": "+e[++o]+";"))}n?t.styles=r:t.stylesWithoutHost=r,n?t.classes=i:t.classesWithoutHost=i}const Ns=new Z("INJECTOR",-1);class Nm{get(e,n=Es){if(n===Es){const r=new Error(`NullInjectorError: No provider for ${q(e)}!`);throw r.name="NullInjectorError",r}return n}}const Ps=new Z("Set Injector scope."),xs={},YT={};let Nc;function Pm(){return void 0===Nc&&(Nc=new Nm),Nc}function xm(t,e=null,n=null,r){return new JT(t,n,e||Pm(),r)}class JT{constructor(e,n,r,i=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];n&&an(n,a=>this.processProvider(a,e,n)),an([e],a=>this.processInjectorType(a,[],s)),this.records.set(Ns,mi(void 0,this));const o=this.records.get(Ps);this.scope=null!=o?o.value:null,this.source=i||("object"==typeof e?null:q(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,n=Es,r=R.Default){this.assertNotDestroyed();const i=ai(this),s=Hn(void 0);try{if(!(r&R.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=("function"==typeof(t=e)||"object"==typeof t&&t instanceof Z)&&In(e);a=l&&this.injectableDefInScope(l)?mi(Pc(e),xs):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(r&R.Self?Pm():this.parent).get(e,n=r&R.Optional&&n===Es?null:n)}catch(o){if("NullInjectorError"===o.name){if((o[oi]=o[oi]||[]).unshift(q(e)),i)throw o;return Xp(o,e,"R3InjectorError",this.source)}throw o}finally{Hn(s),ai(i)}var t}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((r,i)=>e.push(q(i))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(e,n,r){if(!(e=T(e)))return!1;let i=up(e);const s=null==i&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==r.indexOf(o);if(void 0!==s&&(i=up(s)),null==i)return!1;if(null!=i.imports&&!a){let c;r.push(o);try{an(i.imports,d=>{this.processInjectorType(d,n,r)&&(void 0===c&&(c=[]),c.push(d))})}finally{}if(void 0!==c)for(let d=0;d<c.length;d++){const{ngModule:f,providers:h}=c[d];an(h,p=>this.processProvider(p,f,h||re))}}this.injectorDefTypes.add(o);const l=Er(o)||(()=>new o);this.records.set(o,mi(l,xs));const u=i.providers;if(null!=u&&!a){const c=e;an(u,d=>this.processProvider(d,c,u))}return void 0!==s&&void 0!==e.providers}processProvider(e,n,r){let i=yi(e=T(e))?e:T(e&&e.provide);const s=(t=e,Om(t)?mi(void 0,t.useValue):mi(function(t,e,n){let r;if(yi(t)){const i=T(t);return Er(i)||Pc(i)}if(Om(t))r=()=>T(t.useValue);else if(function(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(...wr(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))r=()=>S(T(t.useExisting));else{const i=T(t&&(t.useClass||t.provide));if(!function(t){return!!t.deps}(t))return Er(i)||Pc(i);r=()=>new i(...wr(t.deps))}return r}(t),xs));var t;if(yi(e)||!0!==e.multi)this.records.get(i);else{let o=this.records.get(i);o||(o=mi(void 0,xs,!0),o.factory=()=>wr(o.multi),this.records.set(i,o)),i=e,o.multi.push(e)}this.records.set(i,s)}hydrate(e,n){return n.value===xs&&(n.value=YT,n.value=n.factory()),"object"==typeof n.value&&n.value&&null!==(t=n.value)&&"object"==typeof t&&"function"==typeof t.ngOnDestroy&&this.onDestroy.add(n.value),n.value;var t}injectableDefInScope(e){if(!e.providedIn)return!1;const n=T(e.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function Pc(t){const e=In(t),n=null!==e?e.factory:Er(t);if(null!==n)return n;if(t instanceof Z)throw new Error(`Token ${q(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const r=function(t,e){const n=[];for(let r=0;r<t;r++)n.push(e);return n}(e,"?");throw new Error(`Can't resolve all parameters for ${q(t)}: (${r.join(", ")}).`)}const n=function(t){const e=t&&(t[Po]||t[cp]);if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" 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 "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function mi(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Om(t){return null!==t&&"object"==typeof t&&ju in t}function yi(t){return"function"==typeof t}const km=function(t,e,n){return function(t,e=null,n=null,r){const i=xm(t,e,n,r);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)};let ie=(()=>{class t{static create(n,r){return Array.isArray(n)?km(n,r,""):km(n.providers,n.parent,n.name||"")}}return t.THROW_IF_NOT_FOUND=Es,t.NULL=new Nm,t.\u0275prov=j({token:t,providedIn:"any",factory:()=>S(Ns)}),t.__NG_ELEMENT_ID__=-1,t})();function EI(t,e){Wo(Yu(t)[1],Se())}let _a=null;function _i(){if(!_a){const t=X.Symbol;if(t&&t.iterator)_a=t.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<e.length;++n){const r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(_a=r)}}}return _a}function Os(t){return!!Bc(t)&&(Array.isArray(t)||!(t instanceof Map)&&_i()in t)}function Bc(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function I(t,e=R.Default){const n=E();return null===n?S(t,e):Wp(Se(),n,T(t),e)}function Wc(){throw new Error("invalid")}function zc(t,e,n,r,i){const o=i?"class":"style";!function(t,e,n,r,i){for(let s=0;s<n.length;){const o=n[s++],a=n[s++],l=e[o],u=t.data[o];null!==u.setInput?u.setInput(l,i,r,a):l[a]=i}}(t,n,e.inputs[o],o,r)}function Cy(t,e,n,r){const i=E(),s=Y(),o=20+t,a=i[U],l=i[o]=rc(a,e,F.lFrame.currentNamespace),u=s.firstCreatePass?function(t,e,n,r,i,s,o){const a=e.consts,u=hi(e,t,2,i,zn(a,s));return function(t,e,n,r){let i=!1;if(Ip()){const s=function(t,e,n){const r=t.directiveRegistry;let i=null;if(r)for(let s=0;s<r.length;s++){const o=r[s];Zg(n,o.selectors,!1)&&(i||(i=[]),Jo(fs(n,e),t,o.type),$t(o)?(vm(t,n),i.unshift(o)):i.push(o))}return i}(t,e,n),o=null===r?null:{"":-1};if(null!==s){i=!0,Cm(n,t.data.length,s.length);for(let c=0;c<s.length;c++){const d=s[c];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,u=pi(t,e,s.length,null);for(let c=0;c<s.length;c++){const d=s[c];n.mergedAttrs=Ko(n.mergedAttrs,d.hostAttrs),wm(t,n,e,u,d),OT(u,d,o),null!==d.contentQueries&&(n.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(n.flags|=128);const f=d.type.prototype;!a&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index),a=!0),!l&&(f.ngOnChanges||f.ngDoCheck)&&((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index),l=!0),u++}!function(t,e){const r=e.directiveEnd,i=t.data,s=e.attrs,o=[];let a=null,l=null;for(let u=e.directiveStart;u<r;u++){const c=i[u],d=c.inputs,f=null===s||Yg(e)?null:VT(d,s);o.push(f),a=ym(d,u,a),l=ym(c.outputs,u,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}(t,n)}o&&function(t,e,n){if(e){const r=t.localNames=[];for(let i=0;i<e.length;i+=2){const s=n[e[i+1]];if(null==s)throw new hr("301",`Export of name '${e[i+1]}' not found!`);r.push(e[i],s)}}}(n,r,o)}n.mergedAttrs=Ko(n.mergedAttrs,n.attrs)}(e,n,u,zn(a,o)),null!==u.attrs&&ya(u,u.attrs,!1),null!==u.mergedAttrs&&ya(u,u.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,u),u}(o,s,i,0,e,n,r):s.data[o];on(u,!0);const c=u.mergedAttrs;null!==c&&Qo(a,l,c);const d=u.classes;null!==d&&uc(a,l,d);const f=u.styles;null!==f&&Gg(a,l,f),64!=(64&u.flags)&&ca(s,i,l,u),0===F.lFrame.elementDepthCount&&He(l,i),F.lFrame.elementDepthCount++,function(t){return 1==(1&t.flags)}(u)&&(function(t,e,n){!Ip()||(function(t,e,n,r){const i=n.directiveStart,s=n.directiveEnd;t.firstCreatePass||fs(n,e),He(r,e);const o=n.initialInputs;for(let a=i;a<s;a++){const l=t.data[a],u=$t(l);u&&kT(e,n,l);const c=hs(e,t,a,n);He(c,e),null!==o&<(0,a-i,c,l,0,o),u&&(pt(n.index,e)[8]=c)}}(t,e,n,Rt(n,e)),128==(128&n.flags)&&function(t,e,n){const r=n.directiveStart,i=n.directiveEnd,o=n.index,a=F.lFrame.currentDirectiveIndex;try{Gn(o);for(let l=r;l<i;l++){const u=t.data[l],c=e[l];bu(l),(null!==u.hostBindings||0!==u.hostVars||null!==u.hostAttrs)&&Dm(u,c)}}finally{Gn(-1),bu(a)}}(t,e,n))}(s,i,u),function(t,e,n){if(pu(e)){const i=e.directiveEnd;for(let s=e.directiveStart;s<i;s++){const o=t.data[s];o.contentQueries&&o.contentQueries(1,n[s],s)}}}(s,u,i)),null!==r&&function(t,e,n=Rt){const r=e.localNames;if(null!==r){let i=e.index+1;for(let s=0;s<r.length;s+=2){const o=r[s+1],a=-1===o?n(e,t):t[o];t[i++]=a}}}(i,u)}function wy(){let t=Se();Cu()?F.lFrame.isParent=!1:(t=t.parent,on(t,!1));const e=t;F.lFrame.elementDepthCount--;const n=Y();n.firstCreatePass&&(Wo(n,t),pu(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&zc(n,e,E(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&zc(n,e,E(),e.stylesWithoutHost,!1)}function Gc(t,e,n,r){Cy(t,e,n,r),wy()}function va(t){return!!t&&"function"==typeof t.then}const Qc=function(t){return!!t&&"function"==typeof t.subscribe},Ar=void 0;var QA=["en",[["a","p"],["AM","PM"],Ar],[["AM","PM"],Ar,Ar],[["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"]],Ar,[["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"]],Ar,[["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}",Ar,"{1} 'at' {0}",Ar],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){const n=Math.floor(Math.abs(t)),r=t.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Ri={};function v_(t){return t in Ri||(Ri[t]=X.ng&&X.ng.common&&X.ng.common.locales&&X.ng.common.locales[t]),Ri[t]}var w=(()=>((w=w||{})[w.LocaleId=0]="LocaleId",w[w.DayPeriodsFormat=1]="DayPeriodsFormat",w[w.DayPeriodsStandalone=2]="DayPeriodsStandalone",w[w.DaysFormat=3]="DaysFormat",w[w.DaysStandalone=4]="DaysStandalone",w[w.MonthsFormat=5]="MonthsFormat",w[w.MonthsStandalone=6]="MonthsStandalone",w[w.Eras=7]="Eras",w[w.FirstDayOfWeek=8]="FirstDayOfWeek",w[w.WeekendRange=9]="WeekendRange",w[w.DateFormat=10]="DateFormat",w[w.TimeFormat=11]="TimeFormat",w[w.DateTimeFormat=12]="DateTimeFormat",w[w.NumberSymbols=13]="NumberSymbols",w[w.NumberFormats=14]="NumberFormats",w[w.CurrencyCode=15]="CurrencyCode",w[w.CurrencySymbol=16]="CurrencySymbol",w[w.CurrencyName=17]="CurrencyName",w[w.Currencies=18]="Currencies",w[w.Directionality=19]="Directionality",w[w.PluralCase=20]="PluralCase",w[w.ExtraData=21]="ExtraData",w))();const ba="en-US";let C_=ba;class G_{}const K_="ngComponent";class YM{resolveComponentFactory(e){throw function(t){const e=Error(`No component factory found for ${q(t)}. Did you add it to @NgModule.entryComponents?`);return e[K_]=t,e}(e)}}let Mr=(()=>{class t{}return t.NULL=new YM,t})();function Ma(...t){}function Pi(t,e){return new Et(Rt(t,e))}const XM=function(){return Pi(Se(),E())};let Et=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=XM,t})();class Rr{}let od=(()=>{class t{}return t.\u0275prov=j({token:t,providedIn:"root",factory:()=>null}),t})();class Na{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const Z_=new Na("13.0.1"),xi={};function Pa(t,e,n,r,i=!1){for(;null!==n;){const s=e[n.index];if(null!==s&&r.push(Ce(s)),Ut(s))for(let a=10;a<s.length;a++){const l=s[a],u=l[1].firstChild;null!==u&&Pa(l[1],l,u,r)}const o=n.type;if(8&o)Pa(t,e,n.child,r);else if(32&o){const a=Xu(n,e);let l;for(;l=a();)r.push(l)}else if(16&o){const a=qg(e,n);if(Array.isArray(a))r.push(...a);else{const l=Is(e[16]);Pa(l[1],l,a,r,!0)}}n=i?n.projectionNext:n.next}return r}class $s{constructor(e,n){this._lView=e,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,n=e[1];return Pa(n,e,n.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(Ut(e)){const n=e[8],r=n?n.indexOf(this):-1;r>-1&&(ic(e,r),Cr(n,r))}this._attachedToViewContainer=!1}Og(this._lView[1],this._lView)}onDestroy(e){!function(t,e,n,r){const i=function(t){return t[7]||(t[7]=[])}(e);null===n?i.push(r):(i.push(n),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(r,i.length-1))}(this._lView[1],this._lView,null,e)}markForCheck(){!function(t){for(;t;){t[2]|=64;const e=Is(t);if(Tb(t)&&!e)return t;t=e}}(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){Mc(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){$o(!0);try{Mc(t,e,n)}finally{$o(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var e;this._appRef=null,As(this._lView[1],e=this._lView,e[U],2,null,null)}attachToAppRef(e){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}}class iR extends $s{constructor(e){super(e),this._view=e}detectChanges(){Sm(this._view)}checkNoChanges(){!function(t){$o(!0);try{Sm(t)}finally{$o(!1)}}(this._view)}get context(){return null}}class J_ extends Mr{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const n=Ue(e);return new ad(n,this.ngModule)}}function X_(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const oR=new Z("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ig});class ad extends G_{constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=e.selectors.map(sT).join(","),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return X_(this.componentDef.inputs)}get outputs(){return X_(this.componentDef.outputs)}create(e,n,r,i){const s=(i=i||this.ngModule)?function(t,e){return{get:(n,r,i)=>{const s=t.get(n,xi,i);return s!==xi||r===xi?s:e.get(n,r,i)}}}(e,i.injector):e,o=s.get(Rr,bp),a=s.get(od,null),l=o.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",c=r?function(t,e,n){if(ge(t))return t.selectRootElement(e,n===st.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(l,r,this.componentDef.encapsulation):rc(o.createRenderer(null,this.componentDef),u,function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(u)),d=this.componentDef.onPush?576:528,f=function(t,e){return{components:[],scheduler:t||Ig,clean:GT,playerHandler:e||null,flags:0}}(),h=ga(0,null,null,1,0,null,null,null,null,null),p=Ms(null,h,f,d,null,null,o,l,a,s);let m,g;Ho(p);try{const _=function(t,e,n,r,i,s){const o=n[1];n[20]=t;const l=hi(o,20,2,"#host",null),u=l.mergedAttrs=e.hostAttrs;null!==u&&(ya(l,u,!0),null!==t&&(Qo(i,t,u),null!==l.classes&&uc(i,t,l.classes),null!==l.styles&&Gg(i,t,l.styles)));const c=r.createRenderer(t,e),d=Ms(n,hm(e),null,e.onPush?64:16,n[20],l,r,c,s||null,null);return o.firstCreatePass&&(Jo(fs(l,n),o,e.type),vm(o,l),Cm(l,n.length,1)),ma(n,d),n[20]=d}(c,this.componentDef,p,o,l);if(c)if(r)Qo(l,c,["ng-version",Z_.full]);else{const{attrs:y,classes:D}=function(t){const e=[],n=[];let r=1,i=2;for(;r<t.length;){let s=t[r];if("string"==typeof s)2===i?""!==s&&e.push(s,t[++r]):8===i&&n.push(s);else{if(!Ht(i))break;i=s}r++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);y&&Qo(l,c,y),D&&D.length>0&&uc(l,c,D.join(" "))}if(g=function(t,e){return t.data[e]}(h,20),void 0!==n){const y=g.projection=[];for(let D=0;D<this.ngContentSelectors.length;D++){const v=n[D];y.push(null!=v?Array.from(v):null)}}m=function(t,e,n,r,i){const s=n[1],o=function(t,e,n){const r=Se();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),wm(t,r,e,pi(t,e,1,null),n));const i=hs(e,t,r.directiveStart,r);He(i,e);const s=Rt(r,e);return s&&He(s,e),i}(s,n,e);if(r.components.push(o),t[8]=o,i&&i.forEach(l=>l(o,e)),e.contentQueries){const l=Se();e.contentQueries(1,o,l.directiveStart)}const a=Se();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Gn(a.index),Em(n[1],a,0,a.directiveStart,a.directiveEnd,e),Dm(e,o)),o}(_,this.componentDef,p,f,[EI]),Rs(h,p,null)}finally{qo()}return new uR(this.componentType,m,Pi(g,p),p,g)}}class uR extends class{}{constructor(e,n,r,i,s){super(),this.location=r,this._rootLView=i,this._tNode=s,this.instance=n,this.hostView=this.changeDetectorRef=new iR(i),this.componentType=e}get injector(){return new ti(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class gn{}class eE{}const Fi=new Map;class nE extends gn{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new J_(this);const r=It(e);this._bootstrapComponents=cn(r.bootstrap),this._r3Injector=xm(e,n,[{provide:gn,useValue:this},{provide:Mr,useValue:this.componentFactoryResolver}],q(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,n=ie.THROW_IF_NOT_FOUND,r=R.Default){return e===ie||e===gn||e===Ns?this:this._r3Injector.get(e,n,r)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class ud extends eE{constructor(e){super(),this.moduleType=e,null!==It(e)&&function(t){const e=new Set;!function n(r){const i=It(r,!0),s=i.id;null!==s&&(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${q(e)} vs ${q(e.name)}`)}(s,Fi.get(s),r),Fi.set(s,r));const o=cn(i.imports);for(const a of o)e.has(a)||(e.add(a),n(a))}(t)}(e)}create(e){return new nE(this.moduleType,e)}}function cd(t){return e=>{setTimeout(t,void 0,e)}}const tt=class extends vn{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,r){var l,u,c;let i=e,s=n||(()=>null),o=r;if(e&&"object"==typeof e){const d=e;i=null==(l=d.next)?void 0:l.bind(d),s=null==(u=d.error)?void 0:u.bind(d),o=null==(c=d.complete)?void 0:c.bind(d)}this.__isAsync&&(s=cd(s),i&&(i=cd(i)),o&&(o=cd(o)));const a=super.subscribe({next:i,error:s,complete:o});return e instanceof St&&e.add(a),a}};Symbol;const LR=function(){return function(t,e){let n;const r=e[t.index];if(Ut(r))n=r;else{let i;if(8&t.type)i=Ce(r);else{const s=e[U];i=s.createComment("");const o=Rt(t,e);Tr(s,ua(s,o),i,function(t,e){return ge(t)?t.nextSibling(e):e.nextSibling}(s,o),!1)}e[t.index]=n=function(t,e,n,r){return new Array(t,!0,!1,e,null,0,r,n,null,null)}(r,e,i,t),ma(e,n)}return new lE(n,t,e)}(Se(),E())};let Qt=(()=>{class t{}return t.__NG_ELEMENT_ID__=LR,t})();const BR=Qt,lE=class extends BR{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return Pi(this._hostTNode,this._hostLView)}get injector(){return new ti(this._hostTNode,this._hostLView)}get parentInjector(){const e=Zo(this._hostTNode,this._hostLView);if(jp(e)){const n=ei(e,this._hostLView),r=Xr(e);return new ti(n[1].data[r+8],n)}return new ti(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=uE(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,n,r){const i=e.createEmbeddedView(n||{});return this.insert(i,r),i}createComponent(e,n,r,i,s){const o=e&&!("function"==typeof e);let a;if(o)a=n;else{const d=n||{};a=d.index,r=d.injector,i=d.projectableNodes,s=d.ngModuleRef}const l=o?e:new ad(Ue(e)),u=r||this.parentInjector;if(!s&&null==l.ngModule&&u){const d=u.get(gn,null);d&&(s=d)}const c=l.create(u,i,void 0,s);return this.insert(c.hostView,a),c}insert(e,n){const r=e._lView,i=r[1];if(Ut(r[3])){const c=this.indexOf(e);if(-1!==c)this.detach(c);else{const d=r[3],f=new lE(d,d[6],d[3]);f.detach(f.indexOf(e))}}const s=this._adjustIndex(n),o=this._lContainer;!function(t,e,n,r){const i=10+r,s=n.length;r>0&&(n[i-1][4]=e),r<s-10?(e[4]=n[i],ea(n,10+r,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(i,r,o,s);const a=ac(s,o),l=r[U],u=ua(l,o[7]);return null!==u&&function(t,e,n,r,i,s){r[0]=i,r[6]=e,As(t,r,n,1,i,s)}(i,o[6],l,r,u,a),e.attachToViewContainerRef(),ea(dd(o),s,e),e}move(e,n){return this.insert(e,n)}indexOf(e){const n=uE(this._lContainer);return null!==n?n.indexOf(e):-1}remove(e){const n=this._adjustIndex(e,-1),r=ic(this._lContainer,n);r&&(Cr(dd(this._lContainer),n),Og(r[1],r))}detach(e){const n=this._adjustIndex(e,-1),r=ic(this._lContainer,n);return r&&null!=Cr(dd(this._lContainer),n)?new $s(r):null}_adjustIndex(e,n=0){return null==e?this.length+n:e}};function uE(t){return t[8]}function dd(t){return t[8]||(t[8]=[])}const zs=new Z("Application Initializer");let ki=(()=>{class t{constructor(n){this.appInits=n,this.resolve=Ma,this.reject=Ma,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,i)=>{this.resolve=r,this.reject=i})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let i=0;i<this.appInits.length;i++){const s=this.appInits[i]();if(va(s))n.push(s);else if(Qc(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});n.push(o)}}Promise.all(n).then(()=>{r()}).catch(i=>{this.reject(i)}),0===n.length&&r(),this.initialized=!0}}return t.\u0275fac=function(n){return new(n||t)(S(zs,8))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const Gs=new Z("AppId"),CN={provide:Gs,useFactory:function(){return`${Sd()}${Sd()}${Sd()}`},deps:[]};function Sd(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const xE=new Z("Platform Initializer"),Td=new Z("Platform ID"),FE=new Z("appBootstrapListener");let La=(()=>{class t{log(n){console.log(n)}warn(n){console.warn(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const Xn=new Z("LocaleId"),OE=new Z("DefaultCurrencyCode");class bN{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}}const Id=function(t){return new ud(t)},SN=Id,TN=function(t){return Promise.resolve(Id(t))},LE=function(t){const e=Id(t),r=cn(It(t).declarations).reduce((i,s)=>{const o=Ue(s);return o&&i.push(new ad(o)),i},[]);return new bN(e,r)},IN=LE,AN=function(t){return Promise.resolve(LE(t))};let Va=(()=>{class t{constructor(){this.compileModuleSync=SN,this.compileModuleAsync=TN,this.compileModuleAndAllComponentsSync=IN,this.compileModuleAndAllComponentsAsync=AN}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const NN=(()=>Promise.resolve(0))();function Ad(t){"undefined"==typeof Zone?NN.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class _e{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new tt(!1),this.onMicrotaskEmpty=new tt(!1),this.onStable=new tt(!1),this.onError=new tt(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const i=this;i._nesting=0,i._outer=i._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(i._inner=i._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(i._inner=i._inner.fork(Zone.longStackTraceZoneSpec)),i.shouldCoalesceEventChangeDetection=!r&&n,i.shouldCoalesceRunChangeDetection=r,i.lastRequestAnimationFrameId=-1,i.nativeRequestAnimationFrame=function(){let t=X.requestAnimationFrame,e=X.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=()=>{!function(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(X,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Rd(t),t.isCheckStableRunning=!0,Md(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Rd(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,i,s,o,a)=>{try{return VE(t),n.invokeTask(i,s,o,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||t.shouldCoalesceRunChangeDetection)&&e(),BE(t)}},onInvoke:(n,r,i,s,o,a,l)=>{try{return VE(t),n.invoke(i,s,o,a,l)}finally{t.shouldCoalesceRunChangeDetection&&e(),BE(t)}},onHasTask:(n,r,i,s)=>{n.hasTask(i,s),r===i&&("microTask"==s.change?(t._hasPendingMicrotasks=s.microTask,Rd(t),Md(t)):"macroTask"==s.change&&(t.hasPendingMacrotasks=s.macroTask))},onHandleError:(n,r,i,s)=>(n.handleError(i,s),t.runOutsideAngular(()=>t.onError.emit(s)),!1)})}(i)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!_e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(_e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,i){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+i,e,xN,Ma,Ma);try{return s.runTask(o,n,r)}finally{s.cancelTask(o)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}}const xN={};function Md(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 Rd(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function VE(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function BE(t){t._nesting--,Md(t)}class kN{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new tt,this.onMicrotaskEmpty=new tt,this.onStable=new tt,this.onError=new tt}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,i){return e.apply(n,r)}}let Nd=(()=>{class t{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?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:()=>{_e.assertNotInAngularZone(),Ad(()=>{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())Ad(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,i){let s=-1;r&&r>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:s,updateCb:i})}whenStable(n,r,i){if(i&&!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(n,r,i),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,i){return[]}}return t.\u0275fac=function(n){return new(n||t)(S(_e))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),jE=(()=>{class t{constructor(){this._applications=new Map,Pd.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Pd.findTestabilityInTree(this,n,r)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();class LN{addToWindow(e){}findTestabilityInTree(e,n,r){return null}}let Pd=new LN,UE=!0,$E=!1;let Kt;const qE=new Z("AllowMultipleToken");class xd{constructor(e,n){this.name=e,this.token=n}}function WE(t,e,n=[]){const r=`Platform: ${e}`,i=new Z(r);return(s=[])=>{let o=zE();if(!o||o.injector.get(qE,!1))if(t)t(n.concat(s).concat({provide:i,useValue:!0}));else{const a=n.concat(s).concat({provide:i,useValue:!0},{provide:Ps,useValue:"platform"});!function(t){if(Kt&&!Kt.destroyed&&!Kt.injector.get(qE,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Kt=t.get(GE);const e=t.get(xE,null);e&&e.forEach(n=>n())}(ie.create({providers:a,name:r}))}return function(t){const e=zE();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function zE(){return Kt&&!Kt.destroyed?Kt:null}let GE=(()=>{class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function(t,e){let n;return n="noop"===t?new kN:("zone.js"===t?void 0:t)||new _e({enableLongStackTrace:($E=!0,UE),shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),l=[{provide:_e,useValue:a}];return a.run(()=>{const u=ie.create({providers:l,parent:this.injector,name:n.moduleType.name}),c=n.create(u),d=c.injector.get(Sr,null);if(!d)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{d.handleError(h)}});c.onDestroy(()=>{Fd(this._modules,c),f.unsubscribe()})}),function(t,e,n){try{const r=n();return va(r)?r.catch(i=>{throw e.runOutsideAngular(()=>t.handleError(i)),i}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(d,a,()=>{const f=c.injector.get(ki);return f.runInitializers(),f.donePromise.then(()=>(function(t){ft(t,"Expected localeId to be defined"),"string"==typeof t&&(C_=t.toLowerCase().replace(/_/g,"-"))}(c.injector.get(Xn,ba)||ba),this._moduleDoBootstrap(c),c))})})}bootstrapModule(n,r=[]){const i=QE({},r);return function(t,e,n){const r=new ud(n);return Promise.resolve(r)}(0,0,n).then(s=>this.bootstrapModuleFactory(s,i))}_moduleDoBootstrap(n){const r=n.injector.get(Li);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(i=>r.bootstrap(i));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${q(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(n){return new(n||t)(S(ie))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();function QE(t,e){return Array.isArray(e)?e.reduce(QE,t):M(M({},t),e)}let Li=(()=>{class t{constructor(n,r,i,s,o){this._zone=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=s,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new pe(u=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{u.next(this._stable),u.complete()})}),l=new pe(u=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{_e.assertNotInAngularZone(),Ad(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,u.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{_e.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{u.next(!1)}))});return()=>{c.unsubscribe(),d.unsubscribe()}});this.isStable=function(...t){const e=is(t),n=function(t,e){return"number"==typeof nu(t)?t.pop():1/0}(t),r=t;return r.length?1===r.length?Cn(r[0]):rs(n)(Ve(r,e)):bn}(a,l.pipe(function(t={}){const{connector:e=(()=>new vn),resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:i=!0}=t;return s=>{let o=null,a=null,l=null,u=0,c=!1,d=!1;const f=()=>{null==a||a.unsubscribe(),a=null},h=()=>{f(),o=l=null,c=d=!1},p=()=>{const m=o;h(),null==m||m.unsubscribe()};return ke((m,g)=>{u++,!d&&!c&&f();const _=l=null!=l?l:e();g.add(()=>{u--,0===u&&!d&&!c&&(a=ru(p,i))}),_.subscribe(g),o||(o=new Zl({next:y=>_.next(y),error:y=>{d=!0,f(),a=ru(h,n,y),_.error(y)},complete:()=>{c=!0,f(),a=ru(h,r),_.complete()}}),Ve(m).subscribe(o))})(s)}}()))}bootstrap(n,r){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let i;i=n instanceof G_?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(i.componentType);const s=function(t){return t.isBoundToModule}(i)?void 0:this._injector.get(gn),a=i.create(ie.NULL,[],r||i.selector,s),l=a.location.nativeElement,u=a.injector.get(Nd,null),c=u&&a.injector.get(jE);return u&&c&&c.registerApplication(l,u),a.onDestroy(()=>{this.detachView(a.hostView),Fd(this.components,a),c&&c.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Fd(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(FE,[]).concat(this._bootstrapListeners).forEach(i=>i(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(n){return new(n||t)(S(_e),S(ie),S(Sr),S(Mr),S(ki))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();function Fd(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const JN=function(t){return function(t,e,n){if(Vo(t)&&!n){const r=pt(t.index,e);return new $s(r,r)}return 47&t.type?new $s(e[16],e):null}(Se(),E(),16==(16&t))};let kd=(()=>{class t{}return t.__NG_ELEMENT_ID__=JN,t})();class tD{constructor(){}supports(e){return Os(e)}create(e){return new dP(e)}}const cP=(t,e)=>e;class dP{constructor(e){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=e||cP}forEachItem(e){let n;for(n=this._itHead;null!==n;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,i=0,s=null;for(;n||r;){const o=!r||n&&n.currentIndex<rD(r,i,s)?n:r,a=rD(o,i,s),l=o.currentIndex;if(o===r)i--,r=r._nextRemoved;else if(n=n._next,null==o.previousIndex)i++;else{s||(s=[]);const u=a-i,c=l-i;if(u!=c){for(let f=0;f<u;f++){const h=f<s.length?s[f]:s[f]=0,p=h+f;c<=p&&p<u&&(s[f]=h+1)}s[o.previousIndex]=c-u}}a!==l&&e(o,a,l)}}forEachPreviousItem(e){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)e(n)}forEachMovedItem(e){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)e(n)}forEachIdentityChange(e){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)e(n)}diff(e){if(null==e&&(e=[]),!Os(e))throw new Error(`Error trying to diff '${q(e)}'. Only arrays and iterables are allowed`);return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let i,s,o,n=this._itHead,r=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==n&&Object.is(n.trackById,o)?(r&&(n=this._verifyReinsertion(n,s,o,a)),Object.is(n.item,s)||this._addIdentityChange(n,s)):(n=this._mismatch(n,s,o,a),r=!0),n=n._next}else i=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[_i()]();let r;for(;!(r=n.next()).done;)e(r.value)}}(e,a=>{o=this._trackByFn(i,a),null!==n&&Object.is(n.trackById,o)?(r&&(n=this._verifyReinsertion(n,a,o,i)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,o,i),r=!0),n=n._next,i++}),this.length=i;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,i){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,s,i)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,i))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,s,i)):e=this._addAfter(new fP(n,r),s,i),e}_verifyReinsertion(e,n,r,i){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==s?e=this._reinsertAfter(s,e._prev,i):e.currentIndex!=i&&(e.currentIndex=i,this._addToMoves(e,i)),e}_truncate(e){for(;null!==e;){const n=e._next;this._addToRemovals(this._unlink(e)),e=n}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(e,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const i=e._prevRemoved,s=e._nextRemoved;return null===i?this._removalsHead=s:i._nextRemoved=s,null===s?this._removalsTail=i:s._prevRemoved=i,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){const i=null===n?this._itHead:n._next;return e._next=i,e._prev=n,null===i?this._itTail=e:i._prev=e,null===n?this._itHead=e:n._next=e,null===this._linkedRecords&&(this._linkedRecords=new nD),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const n=e._prev,r=e._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new nD),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class fP{constructor(e,n){this.item=e,this.trackById=n,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 hP{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const n=e._prevDup,r=e._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class nD{constructor(){this.map=new Map}put(e){const n=e.trackById;let r=this.map.get(n);r||(r=new hP,this.map.set(n,r)),r.add(e)}get(e,n){const i=this.map.get(e);return i?i.get(e,n):null}remove(e){const n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function rD(t,e,n){const r=t.previousIndex;if(null===r)return r;let i=0;return n&&r<n.length&&(i=n[r]),r+e+i}class iD{constructor(){}supports(e){return e instanceof Map||Bc(e)}create(){return new pP}}class pP{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(e){let n;for(n=this._mapHead;null!==n;n=n._next)e(n)}forEachPreviousItem(e){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)e(n)}forEachChangedItem(e){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)e(n)}forEachAddedItem(e){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)e(n)}forEachRemovedItem(e){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)e(n)}diff(e){if(e){if(!(e instanceof Map||Bc(e)))throw new Error(`Error trying to diff '${q(e)}'. Only maps and objects are allowed`)}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(e,(r,i)=>{if(n&&n.key===i)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const s=this._getOrCreateRecordForKey(i,r);n=this._insertBeforeOrAppend(n,s)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,n){if(e){const r=e._prev;return n._next=e,n._prev=r,e._prev=n,r&&(r._next=n),e===this._mapHead&&(this._mapHead=n),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(e,n){if(this._records.has(e)){const i=this._records.get(e);this._maybeAddToChanges(i,n);const s=i._prev,o=i._next;return s&&(s._next=o),o&&(o._prev=s),i._next=null,i._prev=null,i}const r=new gP(e);return this._records.set(e,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,n){Object.is(n,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=n,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,n){e instanceof Map?e.forEach(n):Object.keys(e).forEach(r=>n(e[r],r))}}class gP{constructor(e){this.key=e,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 sD(){return new Qs([new tD])}let Qs=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(null!=r){const i=r.factories.slice();n=n.concat(i)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||sD()),deps:[[t,new Yn,new lt]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(t){return t.name||typeof t}(n)}'`)}}return t.\u0275prov=j({token:t,providedIn:"root",factory:sD}),t})();function oD(){return new Vi([new iD])}let Vi=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(r){const i=r.factories.slice();n=n.concat(i)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||oD()),deps:[[t,new Yn,new lt]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return t.\u0275prov=j({token:t,providedIn:"root",factory:oD}),t})();const yP=[new iD],EP=new Qs([new tD]),DP=new Vi(yP),vP=WE(null,"core",[{provide:Td,useValue:"unknown"},{provide:GE,deps:[ie]},{provide:jE,deps:[]},{provide:La,deps:[]}]),TP=[{provide:Li,useClass:Li,deps:[_e,ie,Sr,Mr,ki]},{provide:oR,deps:[_e],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(n){e.push(n)}}},{provide:ki,useClass:ki,deps:[[new lt,zs]]},{provide:Va,useClass:Va,deps:[]},CN,{provide:Qs,useFactory:function(){return EP},deps:[]},{provide:Vi,useFactory:function(){return DP},deps:[]},{provide:Xn,useFactory:function(t){return t||"undefined"!=typeof $localize&&$localize.locale||ba},deps:[[new li(Xn),new lt,new Yn]]},{provide:OE,useValue:"USD"}];let AP=(()=>{class t{constructor(n){}}return t.\u0275fac=function(n){return new(n||t)(S(Li))},t.\u0275mod=pr({type:t}),t.\u0275inj=Tn({providers:TP}),t})(),Ja=null;function nr(){return Ja}const Ae=new Z("DocumentToken");let Or=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=j({token:t,factory:function(){return S(qD)},providedIn:"platform"}),t})();const C1=new Z("Location Initialized");let qD=(()=>{class t extends Or{constructor(n){super(),this._doc=n,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return nr().getBaseHref(this._doc)}onPopState(n){const r=nr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=nr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}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(n){this.location.pathname=n}pushState(n,r,i){WD()?this._history.pushState(n,r,i):this.location.hash=i}replaceState(n,r,i){WD()?this._history.replaceState(n,r,i):this.location.hash=i}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return t.\u0275fac=function(n){return new(n||t)(S(Ae))},t.\u0275prov=j({token:t,factory:function(){return new qD(S(Ae))},providedIn:"platform"}),t})();function WD(){return!!window.history.pushState}function cf(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function zD(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function kn(t){return t&&"?"!==t[0]?"?"+t:t}let qi=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=j({token:t,factory:function(){return function(t){const e=S(Ae).location;return new GD(S(Or),e&&e.origin||"")}()},providedIn:"root"}),t})();const df=new Z("appBaseHref");let GD=(()=>{class t extends qi{constructor(n,r){if(super(),this._platformLocation=n,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=r}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return cf(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+kn(this._platformLocation.search),i=this._platformLocation.hash;return i&&n?`${r}${i}`:r}pushState(n,r,i,s){const o=this.prepareExternalUrl(i+kn(s));this._platformLocation.pushState(n,r,o)}replaceState(n,r,i,s){const o=this.prepareExternalUrl(i+kn(s));this._platformLocation.replaceState(n,r,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,i;null==(i=(r=this._platformLocation).historyGo)||i.call(r,n)}}return t.\u0275fac=function(n){return new(n||t)(S(Or),S(df,8))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),S1=(()=>{class t extends qi{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=cf(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,i,s){let o=this.prepareExternalUrl(i+kn(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(n,r,o)}replaceState(n,r,i,s){let o=this.prepareExternalUrl(i+kn(s));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,i;null==(i=(r=this._platformLocation).historyGo)||i.call(r,n)}}return t.\u0275fac=function(n){return new(n||t)(S(Or),S(df,8))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),ff=(()=>{class t{constructor(n,r){this._subject=new tt,this._urlChangeListeners=[],this._platformStrategy=n;const i=this._platformStrategy.getBaseHref();this._platformLocation=r,this._baseHref=zD(QD(i)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(n=!1){return this.normalize(this._platformStrategy.path(n))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+kn(r))}normalize(n){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,QD(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}go(n,r="",i=null){this._platformStrategy.pushState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+kn(r)),i)}replaceState(n,r="",i=null){this._platformStrategy.replaceState(i,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+kn(r)),i)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(n=0){var r,i;null==(i=(r=this._platformStrategy).historyGo)||i.call(r,n)}onUrlChange(n){this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}))}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(i=>i(n,r))}subscribe(n,r,i){return this._subject.subscribe({next:n,error:r,complete:i})}}return t.normalizeQueryParams=kn,t.joinWithSlash=cf,t.stripTrailingSlash=zD,t.\u0275fac=function(n){return new(n||t)(S(qi),S(Or))},t.\u0275prov=j({token:t,factory:function(){return new ff(S(qi),S(Or))},providedIn:"root"}),t})();function QD(t){return t.replace(/\/index.html$/,"")}var we=(()=>((we=we||{})[we.Zero=0]="Zero",we[we.One=1]="One",we[we.Two=2]="Two",we[we.Few=3]="Few",we[we.Many=4]="Many",we[we.Other=5]="Other",we))();const F1=function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=v_(e);if(n)return n;const r=e.split("-")[0];if(n=v_(r),n)return n;if("en"===r)return QA;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[w.PluralCase]};class ll{}let uF=(()=>{class t extends ll{constructor(n){super(),this.locale=n}getPluralCategory(n,r){switch(F1(r||this.locale)(n)){case we.Zero:return"zero";case we.One:return"one";case we.Two:return"two";case we.Few:return"few";case we.Many:return"many";default:return"other"}}}return t.\u0275fac=function(n){return new(n||t)(S(Xn))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),qF=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=pr({type:t}),t.\u0275inj=Tn({providers:[{provide:ll,useClass:uF}]}),t})();let QF=(()=>{class t{}return t.\u0275prov=j({token:t,providedIn:"root",factory:()=>new KF(S(Ae),window)}),t})();class KF{constructor(e,n){this.document=e,this.window=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const n=function(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let i=r.currentNode;for(;i;){const s=i.shadowRoot;if(s){const o=s.getElementById(e)||s.querySelector(`[name="${e}"]`);if(o)return o}i=r.nextNode()}}return null}(this.document,e);n&&(this.scrollToElement(n),this.attemptFocus(n))}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=e)}}scrollToElement(e){const n=e.getBoundingClientRect(),r=n.left+this.window.pageXOffset,i=n.top+this.window.pageYOffset,s=this.offset();this.window.scrollTo(r-s[0],i-s[1])}attemptFocus(e){return e.focus(),this.document.activeElement===e}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=lv(this.window.history)||lv(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function lv(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class Sf extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var t;t=new Sf,Ja||(Ja=t)}onAndCancel(e,n,r){return e.addEventListener(n,r,!1),()=>{e.removeEventListener(n,r,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=(lo=lo||document.querySelector("base"),lo?lo.getAttribute("href"):null);return null==n?null:function(t){ul=ul||document.createElement("a"),ul.setAttribute("href",t);const e=ul.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){lo=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const r=n.indexOf("="),[i,s]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(i.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,e)}}let ul,lo=null;const uv=new Z("TRANSITION_ID"),nO=[{provide:zs,useFactory:function(t,e,n){return()=>{n.get(ki).donePromise.then(()=>{const r=nr(),i=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let s=0;s<i.length;s++)r.remove(i[s])})}},deps:[uv,Ae,ie],multi:!0}];class Tf{static init(){var t;t=new Tf,Pd=t}addToWindow(e){X.getAngularTestability=(r,i=!0)=>{const s=e.findTestabilityInTree(r,i);if(null==s)throw new Error("Could not find testability for element.");return s},X.getAllAngularTestabilities=()=>e.getAllTestabilities(),X.getAllAngularRootElements=()=>e.getAllRootElements(),X.frameworkStabilizers||(X.frameworkStabilizers=[]),X.frameworkStabilizers.push(r=>{const i=X.getAllAngularTestabilities();let s=i.length,o=!1;const a=function(l){o=o||l,s--,0==s&&r(o)};i.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,n,r){if(null==n)return null;const i=e.getTestability(n);return null!=i?i:r?nr().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null}}let rO=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const uo=new Z("EventManagerPlugins");let dl=(()=>{class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(i=>i.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,i){return this._findPluginFor(r).addEventListener(n,r,i)}addGlobalEventListener(n,r,i){return this._findPluginFor(r).addGlobalEventListener(n,r,i)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const i=this._plugins;for(let s=0;s<i.length;s++){const o=i[s];if(o.supports(n))return this._eventNameToPlugin.set(n,o),o}throw new Error(`No event manager plugin found for event ${n}`)}}return t.\u0275fac=function(n){return new(n||t)(S(uo),S(_e))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();class If{constructor(e){this._doc=e}addGlobalEventListener(e,n,r){const i=nr().getGlobalEventTarget(this._doc,e);if(!i)throw new Error(`Unsupported event target ${i} for event ${n}`);return this.addEventListener(i,n,r)}}let dv=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(i=>{this._stylesSet.has(i)||(this._stylesSet.add(i),r.add(i))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),co=(()=>{class t extends dv{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,i){n.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,i.push(r.appendChild(o))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(fv),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,i)=>{this._addStylesToHost(n,i,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(fv))}}return t.\u0275fac=function(n){return new(n||t)(S(Ae))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();function fv(t){nr().remove(t)}const Af={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/"},Mf=/%COMP%/g;function fl(t,e,n){for(let r=0;r<e.length;r++){let i=e[r];Array.isArray(i)?fl(t,i,n):(i=i.replace(Mf,t),n.push(i))}return n}function gv(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let hl=(()=>{class t{constructor(n,r,i){this.eventManager=n,this.sharedStylesHost=r,this.appId=i,this.rendererByCompId=new Map,this.defaultRenderer=new Rf(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case st.Emulated:{let i=this.rendererByCompId.get(r.id);return i||(i=new _O(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,i)),i.applyToHost(n),i}case 1:case st.ShadowDom:return new EO(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const i=fl(r.id,r.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(n){return new(n||t)(S(dl),S(co),S(Gs))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();class Rf{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,n){return n?document.createElementNS(Af[n]||n,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){e.appendChild(n)}insertBefore(e,n,r){e&&e.insertBefore(n,r)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,i){if(i){n=i+":"+n;const s=Af[i];s?e.setAttributeNS(s,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){const i=Af[r];i?e.removeAttributeNS(i,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,i){i&(yt.DashCase|yt.Important)?e.style.setProperty(n,r,i&yt.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&yt.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e[n]=r}setValue(e,n){e.nodeValue=n}listen(e,n,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,gv(r)):this.eventManager.addEventListener(e,n,gv(r))}}class _O extends Rf{constructor(e,n,r,i){super(e),this.component=r;const s=fl(i+"-"+r.id,r.styles,[]);n.addStyles(s),this.contentAttr="_ngcontent-%COMP%".replace(Mf,i+"-"+r.id),this.hostAttr="_nghost-%COMP%".replace(Mf,i+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,n){const r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}}class EO extends Rf{constructor(e,n,r,i){super(e),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=fl(i.id,i.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,n){return super.appendChild(this.nodeOrShadowRoot(e),n)}insertBefore(e,n,r){return super.insertBefore(this.nodeOrShadowRoot(e),n,r)}removeChild(e,n){return super.removeChild(this.nodeOrShadowRoot(e),n)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let DO=(()=>{class t extends If{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,i){return n.addEventListener(r,i,!1),()=>this.removeEventListener(n,r,i)}removeEventListener(n,r,i){return n.removeEventListener(r,i)}}return t.\u0275fac=function(n){return new(n||t)(S(Ae))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const _v=["alt","control","meta","shift"],IO={"\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"},Ev={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},AO={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let MO=(()=>{class t extends If{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,i){const s=t.parseEventName(r),o=t.eventCallback(s.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>nr().onAndCancel(n,s.domEventName,o))}static parseEventName(n){const r=n.toLowerCase().split("."),i=r.shift();if(0===r.length||"keydown"!==i&&"keyup"!==i)return null;const s=t._normalizeKey(r.pop());let o="";if(_v.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),o+=l+".")}),o+=s,0!=r.length||0===s.length)return null;const a={};return a.domEventName=i,a.fullKey=o,a}static getEventFullKey(n){let r="",i=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Ev.hasOwnProperty(e)&&(e=Ev[e]))}return IO[e]||e}(n);return i=i.toLowerCase()," "===i?i="space":"."===i&&(i="dot"),_v.forEach(s=>{s!=i&&AO[s](n)&&(r+=s+".")}),r+=i,r}static eventCallback(n,r,i){return s=>{t.getEventFullKey(s)===n&&i.runGuarded(()=>r(s))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return t.\u0275fac=function(n){return new(n||t)(S(Ae))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const LO=WE(vP,"browser",[{provide:Td,useValue:"browser"},{provide:xE,useValue:function(){Sf.makeCurrent(),Tf.init()},multi:!0},{provide:Ae,useFactory:function(){return t=document,yu=t,document;var t},deps:[]}]),VO=[[],{provide:Ps,useValue:"root"},{provide:Sr,useFactory:function(){return new Sr},deps:[]},{provide:uo,useClass:DO,multi:!0,deps:[Ae,_e,Td]},{provide:uo,useClass:MO,multi:!0,deps:[Ae]},[],{provide:hl,useClass:hl,deps:[dl,co,Gs]},{provide:Rr,useExisting:hl},{provide:dv,useExisting:co},{provide:co,useClass:co,deps:[Ae]},{provide:Nd,useClass:Nd,deps:[_e]},{provide:dl,useClass:dl,deps:[uo,_e]},{provide:class{},useClass:rO,deps:[]},[]];let Dv=(()=>{class t{constructor(n){if(n)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(n){return{ngModule:t,providers:[{provide:Gs,useValue:n.appId},{provide:uv,useExisting:Gs},nO]}}}return t.\u0275fac=function(n){return new(n||t)(S(t,12))},t.\u0275mod=pr({type:t}),t.\u0275inj=Tn({providers:VO,imports:[qF,AP]}),t})();function H(...t){return Ve(t,is(t))}"undefined"!=typeof window&&window;class nn extends vn{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const n=super._subscribe(e);return!n.closed&&e.next(this._value),n}getValue(){const{hasError:e,thrownError:n,_value:r}=this;if(e)throw n;return this._throwIfClosed(),r}next(e){super.next(this._value=e)}}const{isArray:zO}=Array,{getPrototypeOf:GO,prototype:QO,keys:KO}=Object;const{isArray:JO}=Array;function nk(...t){const e=is(t),n=function(t){return K(nu(t))?t.pop():void 0}(t),{args:r,keys:i}=function(t){if(1===t.length){const e=t[0];if(zO(e))return{args:e,keys:null};if(function(t){return t&&"object"==typeof t&&GO(t)===QO}(e)){const n=KO(e);return{args:n.map(r=>e[r]),keys:n}}}return{args:t,keys:null}}(t);if(0===r.length)return Ve([],e);const s=new pe(function(t,e,n=dr){return r=>{Cv(e,()=>{const{length:i}=t,s=new Array(i);let o=i,a=i;for(let l=0;l<i;l++)Cv(e,()=>{const u=Ve(t[l],e);let c=!1;u.subscribe(new Le(r,d=>{s[l]=d,c||(c=!0,a--),a||r.next(n(s.slice()))},()=>{--o||r.complete()}))},r)},r)}}(r,e,i?o=>function(t,e){return t.reduce((n,r,i)=>(n[r]=e[i],n),{})}(i,o):dr));return n?s.pipe(function(t){return ue(e=>function(t,e){return JO(e)?t(...e):t(e)}(t,e))}(n)):s}function Cv(t,e,n){t?wn(n,t,e):e()}const pl=Re(t=>function(){t(this),this.name="EmptyError",this.message="no elements in sequence"});function Of(...t){return rs(1)(Ve(t,is(t)))}function wv(t){return new pe(e=>{Cn(t()).subscribe(e)})}function bv(){return ke((t,e)=>{let n=null;t._refCount++;const r=new Le(e,void 0,void 0,void 0,()=>{if(!t||t._refCount<=0||0<--t._refCount)return void(n=null);const i=t._connection,s=n;n=null,i&&(!s||i===s)&&i.unsubscribe(),e.unsubscribe()});t.subscribe(r),r.closed||(n=t.connect())})}class sk extends pe{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,qh(e)&&(this.lift=e.lift)}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:e}=this;this._subject=this._connection=null,null==e||e.unsubscribe()}connect(){let e=this._connection;if(!e){e=this._connection=new St;const n=this.getSubject();e.add(this.source.subscribe(new Le(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),e.closed&&(this._connection=null,e=St.EMPTY)}return e}refCount(){return bv()(this)}}function kr(t,e){return ke((n,r)=>{let i=null,s=0,o=!1;const a=()=>o&&!i&&r.complete();n.subscribe(new Le(r,l=>{null==i||i.unsubscribe();let u=0;const c=s++;Cn(t(l,c)).subscribe(i=new Le(r,d=>r.next(e?e(l,d,c,u++):d),()=>{i=null,a()}))},()=>{o=!0,a()}))})}function ak(t,e,n,r,i){return(s,o)=>{let a=n,l=e,u=0;s.subscribe(new Le(o,c=>{const d=u++;l=a?t(l,c,d):(a=!0,c),r&&o.next(l)},i&&(()=>{a&&o.next(l),o.complete()})))}}function Sv(t,e){return ke(ak(t,e,arguments.length>=2,!0))}function Wi(t,e){return ke((n,r)=>{let i=0;n.subscribe(new Le(r,s=>t.call(e,s,i++)&&r.next(s)))})}function ir(t){return ke((e,n)=>{let s,r=null,i=!1;r=e.subscribe(new Le(n,void 0,void 0,o=>{s=Cn(t(o,ir(t)(e))),r?(r.unsubscribe(),r=null,s.subscribe(n)):i=!0})),i&&(r.unsubscribe(),r=null,s.subscribe(n))})}function fo(t,e){return K(e)?Ne(t,e,1):Ne(t,1)}function kf(t){return t<=0?()=>bn:ke((e,n)=>{let r=[];e.subscribe(new Le(n,i=>{r.push(i),t<r.length&&r.shift()},()=>{for(const i of r)n.next(i);n.complete()},void 0,()=>{r=null}))})}function Tv(t=lk){return ke((e,n)=>{let r=!1;e.subscribe(new Le(n,i=>{r=!0,n.next(i)},()=>r?n.complete():n.error(t())))})}function lk(){return new pl}function Iv(t){return ke((e,n)=>{let r=!1;e.subscribe(new Le(n,i=>{r=!0,n.next(i)},()=>{r||n.next(t),n.complete()}))})}function zi(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Wi((i,s)=>t(i,s,r)):dr,Ro(1),n?Iv(e):Tv(()=>new pl))}function Dt(t,e,n){const r=K(t)||e||n?{next:t,error:e,complete:n}:t;return r?ke((i,s)=>{var o;null===(o=r.subscribe)||void 0===o||o.call(r);let a=!0;i.subscribe(new Le(s,l=>{var u;null===(u=r.next)||void 0===u||u.call(r,l),s.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),s.complete()},l=>{var u;a=!1,null===(u=r.error)||void 0===u||u.call(r,l),s.error(l)},()=>{var l,u;a&&(null===(l=r.unsubscribe)||void 0===l||l.call(r)),null===(u=r.finalize)||void 0===u||u.call(r)}))}):dr}class Vn{constructor(e,n){this.id=e,this.url=n}}class Lf extends Vn{constructor(e,n,r="imperative",i=null){super(e,n),this.navigationTrigger=r,this.restoredState=i}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class ho extends Vn{constructor(e,n,r){super(e,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Av extends Vn{constructor(e,n,r){super(e,n),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class dk extends Vn{constructor(e,n,r){super(e,n),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class fk extends Vn{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class hk extends Vn{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class pk extends Vn{constructor(e,n,r,i,s){super(e,n),this.urlAfterRedirects=r,this.state=i,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class gk extends Vn{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mk extends Vn{constructor(e,n,r,i){super(e,n),this.urlAfterRedirects=r,this.state=i}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Mv{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Rv{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class yk{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class _k{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Ek{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Dk{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Nv{constructor(e,n,r){this.routerEvent=e,this.position=n,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const z="primary";class vk{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n[0]:n}return null}getAll(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function Gi(t){return new vk(t)}const Pv="ngNavigationCancelingError";function Vf(t){const e=Error("NavigationCancelingError: "+t);return e[Pv]=!0,e}function wk(t,e,n){const r=n.path.split("/");if(r.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;const i={};for(let s=0;s<r.length;s++){const o=r[s],a=t[s];if(o.startsWith(":"))i[o.substring(1)]=a;else if(o!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function mn(t,e){const n=t?Object.keys(t):void 0,r=e?Object.keys(e):void 0;if(!n||!r||n.length!=r.length)return!1;let i;for(let s=0;s<n.length;s++)if(i=n[s],!xv(t[i],e[i]))return!1;return!0}function xv(t,e){if(Array.isArray(t)&&Array.isArray(e)){if(t.length!==e.length)return!1;const n=[...t].sort(),r=[...e].sort();return n.every((i,s)=>r[s]===i)}return t===e}function Fv(t){return Array.prototype.concat.apply([],t)}function Ov(t){return t.length>0?t[t.length-1]:null}function Be(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function yn(t){return Qc(t)?t:va(t)?Ve(Promise.resolve(t)):H(t)}const Tk={exact:function Vv(t,e,n){if(!Vr(t.segments,e.segments)||!gl(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(const r in e.children)if(!t.children[r]||!Vv(t.children[r],e.children[r],n))return!1;return!0},subset:Bv},kv={exact:function(t,e){return mn(t,e)},subset:function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>xv(t[n],e[n]))},ignored:()=>!0};function Lv(t,e,n){return Tk[n.paths](t.root,e.root,n.matrixParams)&&kv[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function Bv(t,e,n){return jv(t,e,e.segments,n)}function jv(t,e,n,r){if(t.segments.length>n.length){const i=t.segments.slice(0,n.length);return!(!Vr(i,n)||e.hasChildren()||!gl(i,n,r))}if(t.segments.length===n.length){if(!Vr(t.segments,n)||!gl(t.segments,n,r))return!1;for(const i in e.children)if(!t.children[i]||!Bv(t.children[i],e.children[i],r))return!1;return!0}{const i=n.slice(0,t.segments.length),s=n.slice(t.segments.length);return!!(Vr(t.segments,i)&&gl(t.segments,i,r)&&t.children[z])&&jv(t.children[z],e,s,r)}}function gl(t,e,n){return e.every((r,i)=>kv[n](t[i].parameters,r.parameters))}class Lr{constructor(e,n,r){this.root=e,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Gi(this.queryParams)),this._queryParamMap}toString(){return Nk.serialize(this)}}class Q{constructor(e,n){this.segments=e,this.children=n,this.parent=null,Be(n,(r,i)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ml(this)}}class po{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=Gi(this.parameters)),this._parameterMap}toString(){return Wv(this)}}function Vr(t,e){return t.length===e.length&&t.every((n,r)=>n.path===e[r].path)}class Uv{}class $v{parse(e){const n=new jk(e);return new Lr(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){const n=`/${go(e.root,!0)}`,r=function(t){const e=Object.keys(t).map(n=>{const r=t[n];return Array.isArray(r)?r.map(i=>`${yl(n)}=${yl(i)}`).join("&"):`${yl(n)}=${yl(r)}`}).filter(n=>!!n);return e.length?`?${e.join("&")}`:""}(e.queryParams);var t;return`${n}${r}${"string"==typeof e.fragment?`#${t=e.fragment,encodeURI(t)}`:""}`}}const Nk=new $v;function ml(t){return t.segments.map(e=>Wv(e)).join("/")}function go(t,e){if(!t.hasChildren())return ml(t);if(e){const n=t.children[z]?go(t.children[z],!1):"",r=[];return Be(t.children,(i,s)=>{s!==z&&r.push(`${s}:${go(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function(t,e){let n=[];return Be(t.children,(r,i)=>{i===z&&(n=n.concat(e(r,i)))}),Be(t.children,(r,i)=>{i!==z&&(n=n.concat(e(r,i)))}),n}(t,(r,i)=>i===z?[go(t.children[z],!1)]:[`${i}:${go(r,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[z]?`${ml(t)}/${n[0]}`:`${ml(t)}/(${n.join("//")})`}}function Hv(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function yl(t){return Hv(t).replace(/%3B/gi,";")}function Bf(t){return Hv(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function _l(t){return decodeURIComponent(t)}function qv(t){return _l(t.replace(/\+/g,"%20"))}function Wv(t){return`${Bf(t.path)}${function(t){return Object.keys(t).map(e=>`;${Bf(e)}=${Bf(t[e])}`).join("")}(t.parameters)}`}const Ok=/^[^\/()?;=#]+/;function El(t){const e=t.match(Ok);return e?e[0]:""}const kk=/^[^=?&#]+/,Vk=/^[^&#]+/;class jk{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new Q([],{}):new Q([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(n).length>0)&&(r[z]=new Q(e,n)),r}parseSegment(){const e=El(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new po(_l(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const n=El(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const i=El(this.remaining);i&&(r=i,this.capture(r))}e[_l(n)]=_l(r)}parseQueryParam(e){const n=function(t){const e=t.match(kk);return e?e[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=function(t){const e=t.match(Vk);return e?e[0]:""}(this.remaining);o&&(r=o,this.capture(r))}const i=qv(n),s=qv(r);if(e.hasOwnProperty(i)){let o=e[i];Array.isArray(o)||(o=[o],e[i]=o),o.push(s)}else e[i]=s}parseParens(e){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=El(this.remaining),i=this.remaining[r.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error(`Cannot parse url '${this.url}'`);let s;r.indexOf(":")>-1?(s=r.substr(0,r.indexOf(":")),this.capture(s),this.capture(":")):e&&(s=z);const o=this.parseChildren();n[s]=1===Object.keys(o).length?o[z]:new Q([],o),this.consumeOptional("//")}return n}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class zv{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null}children(e){const n=jf(e,this._root);return n?n.children.map(r=>r.value):[]}firstChild(e){const n=jf(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){const n=Uf(e,this._root);return n.length<2?[]:n[n.length-2].children.map(i=>i.value).filter(i=>i!==e)}pathFromRoot(e){return Uf(e,this._root).map(n=>n.value)}}function jf(t,e){if(t===e.value)return e;for(const n of e.children){const r=jf(t,n);if(r)return r}return null}function Uf(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Uf(t,n);if(r.length)return r.unshift(e),r}return[]}class Bn{constructor(e,n){this.value=e,this.children=n}toString(){return`TreeNode(${this.value})`}}function Qi(t){const e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}class Gv extends zv{constructor(e,n){super(e),this.snapshot=n,$f(this,e)}toString(){return this.snapshot.toString()}}function Qv(t,e){const n=function(t,e){const o=new Dl([],{},{},"",{},z,e,null,t.root,-1,{});return new Yv("",new Bn(o,[]))}(t,e),r=new nn([new po("",{})]),i=new nn({}),s=new nn({}),o=new nn({}),a=new nn(""),l=new Ki(r,i,o,a,s,z,e,n.root);return l.snapshot=n.root,new Gv(new Bn(l,[]),n)}class Ki{constructor(e,n,r,i,s,o,a,l){this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=s,this.outlet=o,this.component=a,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(ue(e=>Gi(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ue(e=>Gi(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Kv(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const i=n[r],s=n[r-1];if(i.routeConfig&&""===i.routeConfig.path)r--;else{if(s.component)break;r--}}return function(t){return t.reduce((e,n)=>({params:M(M({},e.params),n.params),data:M(M({},e.data),n.data),resolve:M(M({},e.resolve),n._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Dl{constructor(e,n,r,i,s,o,a,l,u,c,d){this.url=e,this.params=n,this.queryParams=r,this.fragment=i,this.data=s,this.outlet=o,this.component=a,this.routeConfig=l,this._urlSegment=u,this._lastPathIndex=c,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=Gi(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Gi(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class Yv extends zv{constructor(e,n){super(n),this.url=e,$f(this,n)}toString(){return Zv(this._root)}}function $f(t,e){e.value._routerState=t,e.children.forEach(n=>$f(t,n))}function Zv(t){const e=t.children.length>0?` { ${t.children.map(Zv).join(", ")} } `:"";return`${t.value}${e}`}function Hf(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,mn(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),mn(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(let n=0;n<t.length;++n)if(!mn(t[n],e[n]))return!1;return!0}(e.url,n.url)||t.url.next(n.url),mn(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function qf(t,e){const n=mn(t.params,e.params)&&function(t,e){return Vr(t,e)&&t.every((n,r)=>mn(n.parameters,e[r].parameters))}(t.url,e.url);return n&&!(!t.parent!=!e.parent)&&(!t.parent||qf(t.parent,e.parent))}function mo(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const i=function(t,e,n){return e.children.map(r=>{for(const i of n.children)if(t.shouldReuseRoute(r.value,i.value.snapshot))return mo(t,r,i);return mo(t,r)})}(t,e,n);return new Bn(r,i)}{if(t.shouldAttach(e.value)){const s=t.retrieve(e.value);if(null!==s){const o=s.route;return o.value._futureSnapshot=e.value,o.children=e.children.map(a=>mo(t,a)),o}}const r=function(t){return new Ki(new nn(t.url),new nn(t.params),new nn(t.queryParams),new nn(t.fragment),new nn(t.data),t.outlet,t.component,t)}(e.value),i=e.children.map(s=>mo(t,s));return new Bn(r,i)}}function vl(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function yo(t){return"object"==typeof t&&null!=t&&t.outlets}function Wf(t,e,n,r,i){let s={};return r&&Be(r,(o,a)=>{s[a]=Array.isArray(o)?o.map(l=>`${l}`):`${o}`}),new Lr(n.root===t?e:Jv(n.root,t,e),s,i)}function Jv(t,e,n){const r={};return Be(t.children,(i,s)=>{r[s]=i===e?n:Jv(i,e,n)}),new Q(t.segments,r)}class Xv{constructor(e,n,r){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&vl(r[0]))throw new Error("Root segment cannot have matrix parameters");const i=r.find(yo);if(i&&i!==Ov(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class zf{constructor(e,n,r){this.segmentGroup=e,this.processChildren=n,this.index=r}}function eC(t,e,n){if(t||(t=new Q([],{})),0===t.segments.length&&t.hasChildren())return Cl(t,e,n);const r=function(t,e,n){let r=0,i=e;const s={match:!1,pathIndex:0,commandIndex:0};for(;i<t.segments.length;){if(r>=n.length)return s;const o=t.segments[i],a=n[r];if(yo(a))break;const l=`${a}`,u=r<n.length-1?n[r+1]:null;if(i>0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!nC(l,u,o))return s;r+=2}else{if(!nC(l,{},o))return s;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){const s=new Q(t.segments.slice(0,r.pathIndex),{});return s.children[z]=new Q(t.segments.slice(r.pathIndex),t.children),Cl(s,0,i)}return r.match&&0===i.length?new Q(t.segments,{}):r.match&&!t.hasChildren()?Gf(t,e,n):r.match?Cl(t,0,i):Gf(t,e,n)}function Cl(t,e,n){if(0===n.length)return new Q(t.segments,{});{const r=function(t){return yo(t[0])?t[0].outlets:{[z]:t}}(n),i={};return Be(r,(s,o)=>{"string"==typeof s&&(s=[s]),null!==s&&(i[o]=eC(t.children[o],e,s))}),Be(t.children,(s,o)=>{void 0===r[o]&&(i[o]=s)}),new Q(t.segments,i)}}function Gf(t,e,n){const r=t.segments.slice(0,e);let i=0;for(;i<n.length;){const s=n[i];if(yo(s)){const l=Jk(s.outlets);return new Q(r,l)}if(0===i&&vl(n[0])){r.push(new po(t.segments[e].path,tC(n[0]))),i++;continue}const o=yo(s)?s.outlets[z]:`${s}`,a=i<n.length-1?n[i+1]:null;o&&a&&vl(a)?(r.push(new po(o,tC(a))),i+=2):(r.push(new po(o,{})),i++)}return new Q(r,{})}function Jk(t){const e={};return Be(t,(n,r)=>{"string"==typeof n&&(n=[n]),null!==n&&(e[r]=Gf(new Q([],{}),0,n))}),e}function tC(t){const e={};return Be(t,(n,r)=>e[r]=`${n}`),e}function nC(t,e,n){return t==n.path&&mn(e,n.parameters)}class eL{constructor(e,n,r,i){this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=i}activate(e){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,e),Hf(this.futureState.root),this.activateChildRoutes(n,r,e)}deactivateChildRoutes(e,n,r){const i=Qi(n);e.children.forEach(s=>{const o=s.value.outlet;this.deactivateRoutes(s,i[o],r),delete i[o]}),Be(i,(s,o)=>{this.deactivateRouteAndItsChildren(s,r)})}deactivateRoutes(e,n,r){const i=e.value,s=n?n.value:null;if(i===s)if(i.component){const o=r.getContext(i.outlet);o&&this.deactivateChildRoutes(e,n,o.children)}else this.deactivateChildRoutes(e,n,r);else s&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(e,n){this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,n):this.deactivateRouteAndOutlet(e,n)}detachAndStoreRouteSubtree(e,n){const r=n.getContext(e.value.outlet),i=r&&e.value.component?r.children:n,s=Qi(e);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],i);if(r&&r.outlet){const o=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:o,route:e,contexts:a})}}deactivateRouteAndOutlet(e,n){const r=n.getContext(e.value.outlet),i=r&&e.value.component?r.children:n,s=Qi(e);for(const o of Object.keys(s))this.deactivateRouteAndItsChildren(s[o],i);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(e,n,r){const i=Qi(n);e.children.forEach(s=>{this.activateRoutes(s,i[s.value.outlet],r),this.forwardEvent(new Dk(s.value.snapshot))}),e.children.length&&this.forwardEvent(new _k(e.value.snapshot))}activateRoutes(e,n,r){const i=e.value,s=n?n.value:null;if(Hf(i),i===s)if(i.component){const o=r.getOrCreateContext(i.outlet);this.activateChildRoutes(e,n,o.children)}else this.activateChildRoutes(e,n,r);else if(i.component){const o=r.getOrCreateContext(i.outlet);if(this.routeReuseStrategy.shouldAttach(i.snapshot)){const a=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.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),Hf(a.route.value),this.activateChildRoutes(e,null,o.children)}else{const a=function(t){for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(i.snapshot),l=a?a.module.componentFactoryResolver:null;o.attachRef=null,o.route=i,o.resolver=l,o.outlet&&o.outlet.activateWith(i,l),this.activateChildRoutes(e,null,o.children)}}else this.activateChildRoutes(e,null,r)}}class Qf{constructor(e,n){this.routes=e,this.module=n}}function sr(t){return"function"==typeof t}function Br(t){return t instanceof Lr}const _o=Symbol("INITIAL_VALUE");function Eo(){return kr(t=>nk(t.map(e=>e.pipe(Ro(1),function(...t){const e=is(t);return ke((n,r)=>{(e?Of(t,n,e):Of(t,n)).subscribe(r)})}(_o)))).pipe(Sv((e,n)=>{let r=!1;return n.reduce((i,s,o)=>i!==_o?i:(s===_o&&(r=!0),r||!1!==s&&o!==n.length-1&&!Br(s)?i:s),e)},_o),Wi(e=>e!==_o),ue(e=>Br(e)?e:!0===e),Ro(1)))}class aL{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Do,this.attachRef=null}}class Do{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new aL,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}}let Kf=(()=>{class t{constructor(n,r,i,s,o){this.parentContexts=n,this.location=r,this.resolver=i,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new tt,this.deactivateEvents=new tt,this.attachEvents=new tt,this.detachEvents=new tt,this.name=s||z,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const n=this.parentContexts.getContext(this.name);n&&n.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.resolver||null))}}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=n;const o=(r=r||this.resolver).resolveComponentFactory(n._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,l=new lL(n,a,this.location.injector);this.activated=this.location.createComponent(o,this.location.length,l),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(n){return new(n||t)(I(Do),I(Qt),I(Mr),function(t){return function(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const r=n.length;let i=0;for(;i<r;){const s=n[i];if(Vp(s))break;if(0===s)i+=2;else if("number"==typeof s)for(i++;i<r&&"string"==typeof n[i];)i++;else{if(s===e)return n[i+1];i+=2}}}return null}(Se(),t)}("name"),I(kd))},t.\u0275dir=je({type:t,selectors:[["router-outlet"]],outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"]}),t})();class lL{constructor(e,n,r){this.route=e,this.childContexts=n,this.parent=r}get(e,n){return e===Ki?this.route:e===Do?this.childContexts:this.parent.get(e,n)}}let rC=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Fo({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,r){1&n&&Gc(0,"router-outlet")},directives:[Kf],encapsulation:2}),t})();function iC(t,e=""){for(let n=0;n<t.length;n++){const r=t[n];uL(r,cL(e,r))}}function uL(t,e){t.children&&iC(t.children,e)}function cL(t,e){return e?t||e.path?t&&!e.path?`${t}/`:!t&&e.path?e.path:`${t}/${e.path}`:"":t}function Yf(t){const e=t.children&&t.children.map(Yf),n=e?ct(M({},t),{children:e}):M({},t);return!n.component&&(e||n.loadChildren)&&n.outlet&&n.outlet!==z&&(n.component=rC),n}function Lt(t){return t.outlet||z}function sC(t,e){const n=t.filter(r=>Lt(r)===e);return n.push(...t.filter(r=>Lt(r)!==e)),n}const oC={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function wl(t,e,n){var a;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?M({},oC):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const i=(e.matcher||wk)(n,t,e);if(!i)return M({},oC);const s={};Be(i.posParams,(l,u)=>{s[u]=l.path});const o=i.consumed.length>0?M(M({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:o,positionalParamSegments:null!=(a=i.posParams)?a:{}}}function bl(t,e,n,r,i="corrected"){if(n.length>0&&function(t,e,n){return n.some(r=>Sl(t,e,r)&&Lt(r)!==z)}(t,n,r)){const o=new Q(e,function(t,e,n,r){const i={};i[z]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const s of n)if(""===s.path&&Lt(s)!==z){const o=new Q([],{});o._sourceSegment=t,o._segmentIndexShift=e.length,i[Lt(s)]=o}return i}(t,e,r,new Q(n,t.children)));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some(r=>Sl(t,e,r))}(t,n,r)){const o=new Q(t.segments,function(t,e,n,r,i,s){const o={};for(const a of r)if(Sl(t,n,a)&&!i[Lt(a)]){const l=new Q([],{});l._sourceSegment=t,l._segmentIndexShift="legacy"===s?t.segments.length:e.length,o[Lt(a)]=l}return M(M({},i),o)}(t,e,n,r,t.children,i));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}const s=new Q(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function Sl(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function aC(t,e,n,r){return!!(Lt(t)===r||r!==z&&Sl(e,n,t))&&("**"===t.path||wl(e,t,n).matched)}function lC(t,e,n){return 0===e.length&&!t.children[n]}class vo{constructor(e){this.segmentGroup=e||null}}class uC{constructor(e){this.urlTree=e}}function Tl(t){return new pe(e=>e.error(new vo(t)))}function cC(t){return new pe(e=>e.error(new uC(t)))}function gL(t){return new pe(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class _L{constructor(e,n,r,i,s){this.configLoader=n,this.urlSerializer=r,this.urlTree=i,this.config=s,this.allowRedirects=!0,this.ngModule=e.get(gn)}apply(){const e=bl(this.urlTree.root,[],[],this.config).segmentGroup,n=new Q(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,z).pipe(ue(s=>this.createUrlTree(Zf(s),this.urlTree.queryParams,this.urlTree.fragment))).pipe(ir(s=>{if(s instanceof uC)return this.allowRedirects=!1,this.match(s.urlTree);throw s instanceof vo?this.noMatchError(s):s}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,z).pipe(ue(i=>this.createUrlTree(Zf(i),e.queryParams,e.fragment))).pipe(ir(i=>{throw i instanceof vo?this.noMatchError(i):i}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,n,r){const i=e.segments.length>0?new Q([],{[z]:e}):e;return new Lr(i,n,r)}expandSegmentGroup(e,n,r,i){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(e,n,r).pipe(ue(s=>new Q([],s))):this.expandSegment(e,r,n,r.segments,i,!0)}expandChildren(e,n,r){const i=[];for(const s of Object.keys(r.children))"primary"===s?i.unshift(s):i.push(s);return Ve(i).pipe(fo(s=>{const o=r.children[s],a=sC(n,s);return this.expandSegmentGroup(e,a,o,s).pipe(ue(l=>({segment:l,outlet:s})))}),Sv((s,o)=>(s[o.outlet]=o.segment,s),{}),function(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Wi((i,s)=>t(i,s,r)):dr,kf(1),n?Iv(e):Tv(()=>new pl))}())}expandSegment(e,n,r,i,s,o){return Ve(r).pipe(fo(a=>this.expandSegmentAgainstRoute(e,n,r,a,i,s,o).pipe(ir(u=>{if(u instanceof vo)return H(null);throw u}))),zi(a=>!!a),ir((a,l)=>{if(a instanceof pl||"EmptyError"===a.name){if(lC(n,i,s))return H(new Q([],{}));throw new vo(n)}throw a}))}expandSegmentAgainstRoute(e,n,r,i,s,o,a){return aC(i,n,s,o)?void 0===i.redirectTo?this.matchSegmentAgainstRoute(e,n,i,s,o):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,n,r,i,s,o):Tl(n):Tl(n)}expandSegmentAgainstRouteUsingRedirect(e,n,r,i,s,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,r,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,i,s,o)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,i){const s=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?cC(s):this.lineralizeSegments(r,s).pipe(Ne(o=>{const a=new Q(o,{});return this.expandSegment(e,a,n,o,i,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,i,s,o){const{matched:a,consumedSegments:l,lastChild:u,positionalParamSegments:c}=wl(n,i,s);if(!a)return Tl(n);const d=this.applyRedirectCommands(l,i.redirectTo,c);return i.redirectTo.startsWith("/")?cC(d):this.lineralizeSegments(i,d).pipe(Ne(f=>this.expandSegment(e,n,r,f.concat(s.slice(u)),o,!1)))}matchSegmentAgainstRoute(e,n,r,i,s){if("**"===r.path)return r.loadChildren?(r._loadedConfig?H(r._loadedConfig):this.configLoader.load(e.injector,r)).pipe(ue(f=>(r._loadedConfig=f,new Q(i,{})))):H(new Q(i,{}));const{matched:o,consumedSegments:a,lastChild:l}=wl(n,r,i);if(!o)return Tl(n);const u=i.slice(l);return this.getChildConfig(e,r,i).pipe(Ne(d=>{const f=d.module,h=d.routes,{segmentGroup:p,slicedSegments:m}=bl(n,a,u,h),g=new Q(p.segments,p.children);if(0===m.length&&g.hasChildren())return this.expandChildren(f,h,g).pipe(ue(v=>new Q(a,v)));if(0===h.length&&0===m.length)return H(new Q(a,{}));const _=Lt(r)===s;return this.expandSegment(f,g,h,m,_?z:s,!0).pipe(ue(D=>new Q(a.concat(D.segments),D.children)))}))}getChildConfig(e,n,r){return n.children?H(new Qf(n.children,e)):n.loadChildren?void 0!==n._loadedConfig?H(n._loadedConfig):this.runCanLoadGuards(e.injector,n,r).pipe(Ne(i=>{return i?this.configLoader.load(e.injector,n).pipe(ue(s=>(n._loadedConfig=s,s))):(t=n,new pe(e=>e.error(Vf(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`))));var t})):H(new Qf([],e))}runCanLoadGuards(e,n,r){const i=n.canLoad;return i&&0!==i.length?H(i.map(o=>{const a=e.get(o);let l;if((t=a)&&sr(t.canLoad))l=a.canLoad(n,r);else{if(!sr(a))throw new Error("Invalid CanLoad guard");l=a(n,r)}var t;return yn(l)})).pipe(Eo(),Dt(o=>{if(!Br(o))return;const a=Vf(`Redirecting to "${this.urlSerializer.serialize(o)}"`);throw a.url=o,a}),ue(o=>!0===o)):H(!0)}lineralizeSegments(e,n){let r=[],i=n.root;for(;;){if(r=r.concat(i.segments),0===i.numberOfChildren)return H(r);if(i.numberOfChildren>1||!i.children[z])return gL(e.redirectTo);i=i.children[z]}}applyRedirectCommands(e,n,r){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),e,r)}applyRedirectCreatreUrlTree(e,n,r,i){const s=this.createSegmentGroup(e,n.root,r,i);return new Lr(s,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(e,n){const r={};return Be(e,(i,s)=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[s]=n[a]}else r[s]=i}),r}createSegmentGroup(e,n,r,i){const s=this.createSegments(e,n.segments,r,i);let o={};return Be(n.children,(a,l)=>{o[l]=this.createSegmentGroup(e,a,r,i)}),new Q(s,o)}createSegments(e,n,r,i){return n.map(s=>s.path.startsWith(":")?this.findPosParam(e,s,i):this.findOrReturn(s,r))}findPosParam(e,n,r){const i=r[n.path.substring(1)];if(!i)throw new Error(`Cannot redirect to '${e}'. Cannot find '${n.path}'.`);return i}findOrReturn(e,n){let r=0;for(const i of n){if(i.path===e.path)return n.splice(r),i;r++}return e}}function Zf(t){const e={};for(const r of Object.keys(t.children)){const s=Zf(t.children[r]);(s.segments.length>0||s.hasChildren())&&(e[r]=s)}return function(t){if(1===t.numberOfChildren&&t.children[z]){const e=t.children[z];return new Q(t.segments.concat(e.segments),e.children)}return t}(new Q(t.segments,e))}class dC{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Il{constructor(e,n){this.component=e,this.route=n}}function vL(t,e,n){const r=t._root;return Co(r,e?e._root:null,n,[r.value])}function Al(t,e,n){const r=function(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Co(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=Qi(e);return t.children.forEach(o=>{(function(t,e,n,r,i={canDeactivateChecks:[],canActivateChecks:[]}){const s=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){const l=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Vr(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Vr(t.url,e.url)||!mn(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!qf(t,e)||!mn(t.queryParams,e.queryParams);default:return!qf(t,e)}}(o,s,s.routeConfig.runGuardsAndResolvers);l?i.canActivateChecks.push(new dC(r)):(s.data=o.data,s._resolvedData=o._resolvedData),Co(t,e,s.component?a?a.children:null:n,r,i),l&&a&&a.outlet&&a.outlet.isActivated&&i.canDeactivateChecks.push(new Il(a.outlet.component,o))}else o&&wo(e,a,i),i.canActivateChecks.push(new dC(r)),Co(t,null,s.component?a?a.children:null:n,r,i)})(o,s[o.value.outlet],n,r.concat([o.value]),i),delete s[o.value.outlet]}),Be(s,(o,a)=>wo(o,n.getContext(a),i)),i}function wo(t,e,n){const r=Qi(t),i=t.value;Be(r,(s,o)=>{wo(s,i.component?e?e.children.getContext(o):null:e,n)}),n.canDeactivateChecks.push(new Il(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))}class FL{}function fC(t){return new pe(e=>e.error(t))}class kL{constructor(e,n,r,i,s,o){this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=i,this.paramsInheritanceStrategy=s,this.relativeLinkResolution=o}recognize(){const e=bl(this.urlTree.root,[],[],this.config.filter(o=>void 0===o.redirectTo),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,e,z);if(null===n)return null;const r=new Dl([],Object.freeze({}),Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,{},z,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Bn(r,n),s=new Yv(this.url,i);return this.inheritParamsAndData(s._root),s}inheritParamsAndData(e){const n=e.value,r=Kv(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(i=>this.inheritParamsAndData(i))}processSegmentGroup(e,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(e,n):this.processSegment(e,n,n.segments,r)}processChildren(e,n){const r=[];for(const s of Object.keys(n.children)){const o=n.children[s],a=sC(e,s),l=this.processSegmentGroup(a,o,s);if(null===l)return null;r.push(...l)}const i=hC(r);return i.sort((e,n)=>e.value.outlet===z?-1:n.value.outlet===z?1:e.value.outlet.localeCompare(n.value.outlet)),i}processSegment(e,n,r,i){for(const s of e){const o=this.processSegmentAgainstRoute(s,n,r,i);if(null!==o)return o}return lC(n,r,i)?[]:null}processSegmentAgainstRoute(e,n,r,i){if(e.redirectTo||!aC(e,n,r,i))return null;let s,o=[],a=[];if("**"===e.path){const h=r.length>0?Ov(r).parameters:{};s=new Dl(r,h,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,mC(e),Lt(e),e.component,e,pC(n),gC(n)+r.length,yC(e))}else{const h=wl(n,e,r);if(!h.matched)return null;o=h.consumedSegments,a=r.slice(h.lastChild),s=new Dl(o,h.parameters,Object.freeze(M({},this.urlTree.queryParams)),this.urlTree.fragment,mC(e),Lt(e),e.component,e,pC(n),gC(n)+o.length,yC(e))}const l=(t=e).children?t.children:t.loadChildren?t._loadedConfig.routes:[],{segmentGroup:u,slicedSegments:c}=bl(n,o,a,l.filter(h=>void 0===h.redirectTo),this.relativeLinkResolution);var t;if(0===c.length&&u.hasChildren()){const h=this.processChildren(l,u);return null===h?null:[new Bn(s,h)]}if(0===l.length&&0===c.length)return[new Bn(s,[])];const d=Lt(e)===i,f=this.processSegment(l,u,c,d?z:i);return null===f?null:[new Bn(s,f)]}}function BL(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function hC(t){const e=[],n=new Set;for(const r of t){if(!BL(r)){e.push(r);continue}const i=e.find(s=>r.value.routeConfig===s.value.routeConfig);void 0!==i?(i.children.push(...r.children),n.add(i)):e.push(r)}for(const r of n){const i=hC(r.children);e.push(new Bn(r.value,i))}return e.filter(r=>!n.has(r))}function pC(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function gC(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function mC(t){return t.data||{}}function yC(t){return t.resolve||{}}function Jf(t){return kr(e=>{const n=t(e);return n?Ve(n).pipe(ue(()=>e)):H(e)})}class GL extends class{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}}{}const Xf=new Z("ROUTES");class _C{constructor(e,n,r,i){this.injector=e,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=i}load(e,n){if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);const i=this.loadModuleFactory(n.loadChildren).pipe(ue(s=>{this.onLoadEndListener&&this.onLoadEndListener(n);const o=s.create(e);return new Qf(Fv(o.injector.get(Xf,void 0,R.Self|R.Optional)).map(Yf),o)}),ir(s=>{throw n._loader$=void 0,s}));return n._loader$=new sk(i,()=>new vn).pipe(bv()),n._loader$}loadModuleFactory(e){return yn(e()).pipe(Ne(n=>n instanceof eE?H(n):Ve(this.compiler.compileModuleAsync(n))))}}class KL{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}}function YL(t){throw t}function ZL(t,e,n){return e.parse("/")}function EC(t,e){return H(null)}const JL={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},XL={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let vt=(()=>{class t{constructor(n,r,i,s,o,a,l){this.rootComponentType=n,this.urlSerializer=r,this.rootContexts=i,this.location=s,this.config=l,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new vn,this.errorHandler=YL,this.malformedUriErrorHandler=ZL,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:EC,afterPreactivation:EC},this.urlHandlingStrategy=new KL,this.routeReuseStrategy=new GL,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=o.get(gn),this.console=o.get(La);const d=o.get(_e);this.isNgZoneEnabled=d instanceof _e&&_e.isInAngularZone(),this.resetConfig(l),this.currentUrlTree=new Lr(new Q([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new _C(o,a,f=>this.triggerEvent(new Mv(f)),f=>this.triggerEvent(new Rv(f))),this.routerState=Qv(this.currentUrlTree,this.rootComponentType),this.transitions=new nn({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var n;return null==(n=this.location.getState())?void 0:n.\u0275routerPageId}setupNavigations(n){const r=this.events;return n.pipe(Wi(i=>0!==i.id),ue(i=>ct(M({},i),{extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),kr(i=>{let s=!1,o=!1;return H(i).pipe(Dt(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?ct(M({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),kr(a=>{const l=this.browserUrlTree.toString(),u=!this.navigated||a.extractedUrl.toString()!==l||l!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||u)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Ml(a.source)&&(this.browserUrlTree=a.extractedUrl),H(a).pipe(kr(d=>{const f=this.transitions.getValue();return r.next(new Lf(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?bn:Promise.resolve(d)}),function(t,e,n,r){return kr(i=>function(t,e,n,r,i){return new _L(t,e,n,r,i).apply()}(t,e,n,i.extractedUrl,r).pipe(ue(s=>ct(M({},i),{urlAfterRedirects:s}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),Dt(d=>{this.currentNavigation=ct(M({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function(t,e,n,r,i){return Ne(s=>function(t,e,n,r,i="emptyOnly",s="legacy"){try{const o=new kL(t,e,n,r,i,s).recognize();return null===o?fC(new FL):H(o)}catch(o){return fC(o)}}(t,e,s.urlAfterRedirects,n(s.urlAfterRedirects),r,i).pipe(ue(o=>ct(M({},s),{targetSnapshot:o}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),Dt(d=>{if("eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const h=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(h,d)}this.browserUrlTree=d.urlAfterRedirects}const f=new fk(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);r.next(f)}));if(u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:h,source:p,restoredState:m,extras:g}=a,_=new Lf(f,this.serializeUrl(h),p,m);r.next(_);const y=Qv(h,this.rootComponentType).snapshot;return H(ct(M({},a),{targetSnapshot:y,urlAfterRedirects:h,extras:ct(M({},g),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),bn}),Jf(a=>{const{targetSnapshot:l,id:u,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.beforePreactivation(l,{navigationId:u,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),Dt(a=>{const l=new hk(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(l)}),ue(a=>ct(M({},a),{guards:vL(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function(t,e){return Ne(n=>{const{targetSnapshot:r,currentSnapshot:i,guards:{canActivateChecks:s,canDeactivateChecks:o}}=n;return 0===o.length&&0===s.length?H(ct(M({},n),{guardsResult:!0})):function(t,e,n,r){return Ve(t).pipe(Ne(i=>function(t,e,n,r,i){const s=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return s&&0!==s.length?H(s.map(a=>{const l=Al(a,e,i);let u;if(function(t){return t&&sr(t.canDeactivate)}(l))u=yn(l.canDeactivate(t,e,n,r));else{if(!sr(l))throw new Error("Invalid CanDeactivate guard");u=yn(l(t,e,n,r))}return u.pipe(zi())})).pipe(Eo()):H(!0)}(i.component,i.route,n,e,r)),zi(i=>!0!==i,!0))}(o,r,i,t).pipe(Ne(a=>a&&function(t){return"boolean"==typeof t}(a)?function(t,e,n,r){return Ve(e).pipe(fo(i=>Of(function(t,e){return null!==t&&e&&e(new yk(t)),H(!0)}(i.route.parent,r),function(t,e){return null!==t&&e&&e(new Ek(t)),H(!0)}(i.route,r),function(t,e,n){const r=e[e.length-1],s=e.slice(0,e.length-1).reverse().map(o=>function(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(o)).filter(o=>null!==o).map(o=>wv(()=>H(o.guards.map(l=>{const u=Al(l,o.node,n);let c;if(function(t){return t&&sr(t.canActivateChild)}(u))c=yn(u.canActivateChild(r,t));else{if(!sr(u))throw new Error("Invalid CanActivateChild guard");c=yn(u(r,t))}return c.pipe(zi())})).pipe(Eo())));return H(s).pipe(Eo())}(t,i.path,n),function(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return H(!0);const i=r.map(s=>wv(()=>{const o=Al(s,e,n);let a;if(function(t){return t&&sr(t.canActivate)}(o))a=yn(o.canActivate(e,t));else{if(!sr(o))throw new Error("Invalid CanActivate guard");a=yn(o(e,t))}return a.pipe(zi())}));return H(i).pipe(Eo())}(t,i.route,n))),zi(i=>!0!==i,!0))}(r,s,t,e):H(a)),ue(a=>ct(M({},n),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),Dt(a=>{if(Br(a.guardsResult)){const u=Vf(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw u.url=a.guardsResult,u}const l=new pk(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(l)}),Wi(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),Jf(a=>{if(a.guards.canActivateChecks.length)return H(a).pipe(Dt(l=>{const u=new gk(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}),kr(l=>{let u=!1;return H(l).pipe(function(t,e){return Ne(n=>{const{targetSnapshot:r,guards:{canActivateChecks:i}}=n;if(!i.length)return H(n);let s=0;return Ve(i).pipe(fo(o=>function(t,e,n,r){return function(t,e,n,r){const i=Object.keys(t);if(0===i.length)return H({});const s={};return Ve(i).pipe(Ne(o=>function(t,e,n,r){const i=Al(t,e,r);return yn(i.resolve?i.resolve(e,n):i(e,n))}(t[o],e,n,r).pipe(Dt(a=>{s[o]=a}))),kf(1),Ne(()=>Object.keys(s).length===i.length?H(s):bn))}(t._resolve,t,e,r).pipe(ue(s=>(t._resolvedData=s,t.data=M(M({},t.data),Kv(t,n).resolve),null)))}(o.route,r,t,e)),Dt(()=>s++),kf(1),Ne(o=>s===i.length?H(n):bn))})}(this.paramsInheritanceStrategy,this.ngModule.injector),Dt({next:()=>u=!0,complete:()=>{u||(this.restoreHistory(l),this.cancelNavigationTransition(l,"At least one route resolver didn't emit any value."))}}))}),Dt(l=>{const u=new mk(l.id,this.serializeUrl(l.extractedUrl),this.serializeUrl(l.urlAfterRedirects),l.targetSnapshot);this.triggerEvent(u)}))}),Jf(a=>{const{targetSnapshot:l,id:u,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.afterPreactivation(l,{navigationId:u,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),ue(a=>{const l=function(t,e,n){const r=mo(t,e._root,n?n._root:void 0);return new Gv(r,e)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return ct(M({},a),{targetRouterState:l})}),Dt(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,e,n)=>ue(r=>(new eL(e,r.targetRouterState,r.currentRouterState,n).activate(t),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),Dt({next(){s=!0},complete(){s=!0}}),function(t){return ke((e,n)=>{try{e.subscribe(n)}finally{n.add(t)}})}(()=>{var a;s||o||this.cancelNavigationTransition(i,`Navigation ID ${i.id} is not equal to the current navigation id ${this.navigationId}`),(null==(a=this.currentNavigation)?void 0:a.id)===i.id&&(this.currentNavigation=null)}),ir(a=>{if(o=!0,function(t){return t&&t[Pv]}(a)){const l=Br(a.url);l||(this.navigated=!0,this.restoreHistory(i,!0));const u=new Av(i.id,this.serializeUrl(i.extractedUrl),a.message);r.next(u),l?setTimeout(()=>{const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:i.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Ml(i.source)};this.scheduleNavigation(c,"imperative",null,d,{resolve:i.resolve,reject:i.reject,promise:i.promise})},0):i.resolve(!1)}else{this.restoreHistory(i,!0);const l=new dk(i.id,this.serializeUrl(i.extractedUrl),a);r.next(l);try{i.resolve(this.errorHandler(a))}catch(u){i.reject(u)}}return bn}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}setTransition(n){this.transitions.next(M(M({},this.transitions.value),n))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{var a;const i={replaceUrl:!0},s=(null==(a=n.state)?void 0:a.navigationId)?n.state:null;if(s){const l=M({},s);delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(i.state=l)}const o=this.parseUrl(n.url);this.scheduleNavigation(o,r,s,i)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){iC(n),this.config=n.map(Yf),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:i,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:l}=r,u=i||this.routerState.root,c=l?this.currentUrlTree.fragment:o;let d=null;switch(a){case"merge":d=M(M({},this.currentUrlTree.queryParams),s);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=s||null}return null!==d&&(d=this.removeEmptyProps(d)),function(t,e,n,r,i){if(0===n.length)return Wf(e.root,e.root,e,r,i);const s=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Xv(!0,0,t);let e=0,n=!1;const r=t.reduce((i,s,o)=>{if("object"==typeof s&&null!=s){if(s.outlets){const a={};return Be(s.outlets,(l,u)=>{a[u]="string"==typeof l?l.split("/"):l}),[...i,{outlets:a}]}if(s.segmentPath)return[...i,s.segmentPath]}return"string"!=typeof s?[...i,s]:0===o?(s.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?n=!0:".."===a?e++:""!=a&&i.push(a))}),i):[...i,s]},[]);return new Xv(n,e,r)}(n);if(s.toRoot())return Wf(e.root,new Q([],{}),e,r,i);const o=function(t,e,n){if(t.isAbsolute)return new zf(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const s=n.snapshot._urlSegment;return new zf(s,s===e.root,0)}const r=vl(t.commands[0])?0:1;return function(t,e,n){let r=t,i=e,s=n;for(;s>i;){if(s-=i,r=r.parent,!r)throw new Error("Invalid number of '../'");i=r.segments.length}return new zf(r,!1,i-s)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(s,e,t),a=o.processChildren?Cl(o.segmentGroup,o.index,s.commands):eC(o.segmentGroup,o.index,s.commands);return Wf(o.segmentGroup,a,e,r,i)}(u,this.currentUrlTree,n,d,null!=c?c:null)}navigateByUrl(n,r={skipLocationChange:!1}){const i=Br(n)?n:this.parseUrl(n),s=this.urlHandlingStrategy.merge(i,this.rawUrlTree);return this.scheduleNavigation(s,"imperative",null,r)}navigate(n,r={skipLocationChange:!1}){return function(t){for(let e=0;e<t.length;e++){const n=t[e];if(null==n)throw new Error(`The requested path contains ${n} segment at index ${e}`)}}(n),this.navigateByUrl(this.createUrlTree(n,r),r)}serializeUrl(n){return this.urlSerializer.serialize(n)}parseUrl(n){let r;try{r=this.urlSerializer.parse(n)}catch(i){r=this.malformedUriErrorHandler(i,this.urlSerializer,n)}return r}isActive(n,r){let i;if(i=!0===r?M({},JL):!1===r?M({},XL):r,Br(n))return Lv(this.currentUrlTree,n,i);const s=this.parseUrl(n);return Lv(this.currentUrlTree,s,i)}removeEmptyProps(n){return Object.keys(n).reduce((r,i)=>{const s=n[i];return null!=s&&(r[i]=s),r},{})}processNavigations(){this.navigations.subscribe(n=>{this.navigated=!0,this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId,this.events.next(new ho(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,n.resolve(!0)},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}scheduleNavigation(n,r,i,s,o){var _,y,D;if(this.disposed)return Promise.resolve(!1);const a=this.transitions.value,l=Ml(r)&&a&&!Ml(a.source),u=a.rawUrl.toString()===n.toString(),c=a.id===(null==(_=this.currentNavigation)?void 0:_.id);if(l&&u&&c)return Promise.resolve(!0);let f,h,p;o?(f=o.resolve,h=o.reject,p=o.promise):p=new Promise((v,x)=>{f=v,h=x});const m=++this.navigationId;let g;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(i=this.location.getState()),g=i&&i.\u0275routerPageId?i.\u0275routerPageId:s.replaceUrl||s.skipLocationChange?null!=(y=this.browserPageId)?y:0:(null!=(D=this.browserPageId)?D:0)+1):g=0,this.setTransition({id:m,targetPageId:g,source:r,restoredState:i,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:s,resolve:f,reject:h,promise:p,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),p.catch(v=>Promise.reject(v))}setBrowserUrl(n,r){const i=this.urlSerializer.serialize(n),s=M(M({},r.extras.state),this.generateNgRouterState(r.id,r.targetPageId));this.location.isCurrentPathEqualTo(i)||r.extras.replaceUrl?this.location.replaceState(i,"",s):this.location.go(i,"",s)}restoreHistory(n,r=!1){var i,s;if("computed"===this.canceledNavigationResolution){const o=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null==(i=this.currentNavigation)?void 0:i.finalUrl)||0===o?this.currentUrlTree===(null==(s=this.currentNavigation)?void 0:s.finalUrl)&&0===o&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(o)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(n,r){const i=new Av(n.id,this.serializeUrl(n.extractedUrl),r);this.triggerEvent(i),n.resolve(!1)}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return t.\u0275fac=function(n){Wc()},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();function Ml(t){return"imperative"!==t}class DC{}class vC{preload(e,n){return H(null)}}let CC=(()=>{class t{constructor(n,r,i,s){this.router=n,this.injector=i,this.preloadingStrategy=s,this.loader=new _C(i,r,l=>n.triggerEvent(new Mv(l)),l=>n.triggerEvent(new Rv(l)))}setUpPreloading(){this.subscription=this.router.events.pipe(Wi(n=>n instanceof ho),fo(()=>this.preload())).subscribe(()=>{})}preload(){const n=this.injector.get(gn);return this.processRoutes(n,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const i=[];for(const s of r)if(s.loadChildren&&!s.canLoad&&s._loadedConfig){const o=s._loadedConfig;i.push(this.processRoutes(o.module,o.routes))}else s.loadChildren&&!s.canLoad?i.push(this.preloadConfig(n,s)):s.children&&i.push(this.processRoutes(n,s.children));return Ve(i).pipe(rs(),ue(s=>{}))}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>(r._loadedConfig?H(r._loadedConfig):this.loader.load(n.injector,r)).pipe(Ne(s=>(r._loadedConfig=s,this.processRoutes(s.module,s.routes)))))}}return t.\u0275fac=function(n){return new(n||t)(S(vt),S(Va),S(ie),S(DC))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),nh=(()=>{class t{constructor(n,r,i={}){this.router=n,this.viewportScroller=r,this.options=i,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},i.scrollPositionRestoration=i.scrollPositionRestoration||"disabled",i.anchorScrolling=i.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(n=>{n instanceof Lf?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof ho&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof Nv&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.router.triggerEvent(new Nv(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(n){Wc()},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const jr=new Z("ROUTER_CONFIGURATION"),wC=new Z("ROUTER_FORROOT_GUARD"),iV=[ff,{provide:Uv,useClass:$v},{provide:vt,useFactory:function(t,e,n,r,i,s,o={},a,l){const u=new vt(null,t,e,n,r,i,Fv(s));return a&&(u.urlHandlingStrategy=a),l&&(u.routeReuseStrategy=l),function(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(e.canceledNavigationResolution=t.canceledNavigationResolution)}(o,u),o.enableTracing&&u.events.subscribe(c=>{var d,f;null==(d=console.group)||d.call(console,`Router Event: ${c.constructor.name}`),console.log(c.toString()),console.log(c),null==(f=console.groupEnd)||f.call(console)}),u},deps:[Uv,Do,ff,ie,Va,Xf,jr,[class{},new lt],[class{},new lt]]},Do,{provide:Ki,useFactory:function(t){return t.routerState.root},deps:[vt]},CC,vC,class{preload(e,n){return n().pipe(ir(()=>H(null)))}},{provide:jr,useValue:{enableTracing:!1}}];function sV(){return new xd("Router",vt)}let oV=(()=>{class t{constructor(n,r){}static forRoot(n,r){return{ngModule:t,providers:[iV,bC(n),{provide:wC,useFactory:uV,deps:[[vt,new lt,new Yn]]},{provide:jr,useValue:r||{}},{provide:qi,useFactory:lV,deps:[Or,[new li(df),new lt],jr]},{provide:nh,useFactory:aV,deps:[vt,QF,jr]},{provide:DC,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:vC},{provide:xd,multi:!0,useFactory:sV},[rh,{provide:zs,multi:!0,useFactory:hV,deps:[rh]},{provide:SC,useFactory:pV,deps:[rh]},{provide:FE,multi:!0,useExisting:SC}]]}}static forChild(n){return{ngModule:t,providers:[bC(n)]}}}return t.\u0275fac=function(n){return new(n||t)(S(wC,8),S(vt,8))},t.\u0275mod=pr({type:t}),t.\u0275inj=Tn({}),t})();function aV(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new nh(t,e,n)}function lV(t,e,n={}){return n.useHash?new S1(t,e):new GD(t,e)}function uV(t){return"guarded"}function bC(t){return[{provide:E0,multi:!0,useValue:t},{provide:Xf,multi:!0,useValue:t}]}let rh=(()=>{class t{constructor(n){this.injector=n,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new vn}appInitializer(){return this.injector.get(C1,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let r=null;const i=new Promise(a=>r=a),s=this.injector.get(vt),o=this.injector.get(jr);return"disabled"===o.initialNavigation?(s.setUpLocationChangeListener(),r(!0)):"enabled"===o.initialNavigation||"enabledBlocking"===o.initialNavigation?(s.hooks.afterPreactivation=()=>this.initNavigation?H(null):(this.initNavigation=!0,r(!0),this.resultOfPreactivationDone),s.initialNavigation()):r(!0),i})}bootstrapListener(n){const r=this.injector.get(jr),i=this.injector.get(CC),s=this.injector.get(nh),o=this.injector.get(vt),a=this.injector.get(Li);n===a.components[0]&&(("enabledNonBlocking"===r.initialNavigation||void 0===r.initialNavigation)&&o.initialNavigation(),i.setUpPreloading(),s.init(),o.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(n){return new(n||t)(S(ie))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();function hV(t){return t.appInitializer.bind(t)}function pV(t){return t.bootstrapListener.bind(t)}const SC=new Z("Router Initializer");let mV=(()=>{class t{constructor(){this.title="NXiFrontend"}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=Fo({type:t,selectors:[["nxi-root"]],decls:1,vars:0,template:function(n,r){1&n&&Gc(0,"router-outlet")},directives:[Kf],encapsulation:2}),t})();class TC{}const jn="*";function IC(t,e=null){return{type:2,steps:t,options:e}}function AC(t){return{type:6,styles:t,offset:null}}function MC(t){Promise.resolve(null).then(t)}class Zi{constructor(e=0,n=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+n}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){MC(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class RC{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let n=0,r=0,i=0;const s=this.players.length;0==s?MC(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++n==s&&this._onFinish()}),o.onDestroy(()=>{++r==s&&this._onDestroy()}),o.onStart(()=>{++i==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(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const n=e*this.totalTime;this.players.forEach(r=>{const i=r.totalTime?Math.min(1,n/r.totalTime):1;r.setPosition(i)})}getPosition(){const e=this.players.reduce((n,r)=>null===n||r.totalTime>n.totalTime?r:n,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}function NC(){return"undefined"!=typeof window&&void 0!==window.document}function sh(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function or(t){switch(t.length){case 0:return new Zi;case 1:return t[0];default:return new RC(t)}}function PC(t,e,n,r,i={},s={}){const o=[],a=[];let l=-1,u=null;if(r.forEach(c=>{const d=c.offset,f=d==l,h=f&&u||{};Object.keys(c).forEach(p=>{let m=p,g=c[p];if("offset"!==p)switch(m=e.normalizePropertyName(m,o),g){case"!":g=i[p];break;case jn:g=s[p];break;default:g=e.normalizeStyleValue(p,m,g,o)}h[m]=g}),f||a.push(h),u=h,l=d}),o.length){const c="\n - ";throw new Error(`Unable to animate due to the following errors:${c}${o.join(c)}`)}return a}function oh(t,e,n,r){switch(e){case"start":t.onStart(()=>r(n&&ah(n,"start",t)));break;case"done":t.onDone(()=>r(n&&ah(n,"done",t)));break;case"destroy":t.onDestroy(()=>r(n&&ah(n,"destroy",t)))}}function ah(t,e,n){const r=n.totalTime,s=lh(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==r?t.totalTime:r,!!n.disabled),o=t._data;return null!=o&&(s._data=o),s}function lh(t,e,n,r,i="",s=0,o){return{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:s,disabled:!!o}}function Ct(t,e,n){let r;return t instanceof Map?(r=t.get(e),r||t.set(e,r=n)):(r=t[e],r||(r=t[e]=n)),r}function xC(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let uh=(t,e)=>!1,ch=(t,e)=>!1,FC=(t,e,n)=>[];const OC=sh();(OC||"undefined"!=typeof Element)&&(uh=NC()?(t,e)=>{for(;e&&e!==document.documentElement;){if(e===t)return!0;e=e.parentNode||e.host}return!1}:(t,e)=>t.contains(e),ch=(()=>{if(OC||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(n,r)=>e.apply(n,[r]):ch}})(),FC=(t,e,n)=>{let r=[];if(n){const i=t.querySelectorAll(e);for(let s=0;s<i.length;s++)r.push(i[s])}else{const i=t.querySelector(e);i&&r.push(i)}return r});let Ur=null,kC=!1;function dh(t){Ur||(Ur=("undefined"!=typeof document?document.body:null)||{},kC=!!Ur.style&&"WebkitAppearance"in Ur.style);let e=!0;return Ur.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in Ur.style,!e&&kC&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Ur.style)),e}const fh=ch,hh=uh,ph=FC;function LC(t){const e={};return Object.keys(t).forEach(n=>{const r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]}),e}let VC=(()=>{class t{validateStyleProperty(n){return dh(n)}matchesElement(n,r){return fh(n,r)}containsElement(n,r){return hh(n,r)}query(n,r,i){return ph(n,r,i)}computeStyle(n,r,i){return i||""}animate(n,r,i,s,o,a=[],l){return new Zi(i,s)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})(),gh=(()=>{class t{}return t.NOOP=new VC,t})();const mh="ng-enter",Rl="ng-leave",Nl="ng-trigger",Pl=".ng-trigger",jC="ng-animating",yh=".ng-animating";function $r(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:_h(parseFloat(e[1]),e[2])}function _h(t,e){return"s"===e?1e3*t:t}function xl(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let i,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 e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};i=_h(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=_h(parseFloat(l),a[4]));const u=a[5];u&&(o=u)}else i=t;if(!n){let a=!1,l=e.length;i<0&&(e.push("Duration values below 0 are not allowed for this animation step."),a=!0),s<0&&(e.push("Delay values below 0 are not allowed for this animation step."),a=!0),a&&e.splice(l,0,`The provided timing value "${t}" is invalid.`)}return{duration:i,delay:s,easing:o}}(t,e,n)}function Ji(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function ar(t,e,n={}){if(e)for(let r in t)n[r]=t[r];else Ji(t,n);return n}function $C(t,e,n){return n?e+":"+n+";":""}function HC(t){let e="";for(let n=0;n<t.style.length;n++){const r=t.style.item(n);e+=$C(0,r,t.style.getPropertyValue(r))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=$C(0,SV(n),t.style[n]));t.setAttribute("style",e)}function _n(t,e,n){t.style&&(Object.keys(e).forEach(r=>{const i=Dh(r);n&&!n.hasOwnProperty(r)&&(n[r]=t.style[i]),t.style[i]=e[r]}),sh()&&HC(t))}function Hr(t,e){t.style&&(Object.keys(e).forEach(n=>{const r=Dh(n);t.style[r]=""}),sh()&&HC(t))}function bo(t){return Array.isArray(t)?1==t.length?t[0]:IC(t):t}const Eh=new RegExp("{{\\s*(.+?)\\s*}}","g");function qC(t){let e=[];if("string"==typeof t){let n;for(;n=Eh.exec(t);)e.push(n[1]);Eh.lastIndex=0}return e}function Fl(t,e,n){const r=t.toString(),i=r.replace(Eh,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(n.push(`Please provide a value for the animation param ${o}`),a=""),a.toString()});return i==r?t:i}function Ol(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const bV=/-+([a-z0-9])/g;function Dh(t){return t.replace(bV,(...e)=>e[1].toUpperCase())}function SV(t){return t.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function WC(t,e){return 0===t||0===e}function zC(t,e,n){const r=Object.keys(n);if(r.length&&e.length){let s=e[0],o=[];if(r.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=n[a]}),o.length)for(var i=1;i<e.length;i++){let a=e[i];o.forEach(function(l){a[l]=vh(t,l)})}}return e}function wt(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error(`Unable to resolve animation metadata node #${e.type}`)}}function vh(t,e){return window.getComputedStyle(t)[e]}function TV(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(r=>function(t,e,n){if(":"==t[0]){const l=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(n,r)=>parseFloat(r)>parseFloat(n);case":decrement":return(n,r)=>parseFloat(r)<parseFloat(n);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof l)return void e.push(l);t=l}const r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const i=r[1],s=r[2],o=r[3];e.push(GC(i,o));"<"==s[0]&&!("*"==i&&"*"==o)&&e.push(GC(o,i))}(r,n,e)):n.push(t),n}const Ll=new Set(["true","1"]),Vl=new Set(["false","0"]);function GC(t,e){const n=Ll.has(t)||Vl.has(t),r=Ll.has(e)||Vl.has(e);return(i,s)=>{let o="*"==t||t==i,a="*"==e||e==s;return!o&&n&&"boolean"==typeof i&&(o=i?Ll.has(t):Vl.has(t)),!a&&r&&"boolean"==typeof s&&(a=s?Ll.has(e):Vl.has(e)),o&&a}}const MV=new RegExp("s*:selfs*,?","g");function Ch(t,e,n){return new RV(t).build(e,n)}class RV{constructor(e){this._driver=e}build(e,n){const r=new xV(n);return this._resetContextStyleTimingState(r),wt(this,bo(e),r)}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,n){let r=n.queryCount=0,i=n.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&n.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(n),0==a.type){const l=a,u=l.name;u.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,s.push(this.visitState(l,n))}),l.name=u}else if(1==a.type){const l=this.visitTransition(a,n);r+=l.queryCount,i+=l.depCount,o.push(l)}else n.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:s,transitions:o,queryCount:r,depCount:i,options:null}}visitState(e,n){const r=this.visitStyle(e.styles,n),i=e.options&&e.options.params||null;if(r.containsDynamicStyles){const s=new Set,o=i||{};if(r.styles.forEach(a=>{if(Bl(a)){const l=a;Object.keys(l).forEach(u=>{qC(l[u]).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}}),s.size){const a=Ol(s.values());n.errors.push(`state("${e.name}", ...) must define default values for all the following style substitutions: ${a.join(", ")}`)}}return{type:0,name:e.name,style:r,options:i?{params:i}:null}}visitTransition(e,n){n.queryCount=0,n.depCount=0;const r=wt(this,bo(e.animation),n);return{type:1,matchers:TV(e.expr,n.errors),animation:r,queryCount:n.queryCount,depCount:n.depCount,options:qr(e.options)}}visitSequence(e,n){return{type:2,steps:e.steps.map(r=>wt(this,r,n)),options:qr(e.options)}}visitGroup(e,n){const r=n.currentTime;let i=0;const s=e.steps.map(o=>{n.currentTime=r;const a=wt(this,o,n);return i=Math.max(i,n.currentTime),a});return n.currentTime=i,{type:3,steps:s,options:qr(e.options)}}visitAnimate(e,n){const r=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return wh(xl(t,e).duration,0,"");const r=t;if(r.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=wh(0,0,"");return s.dynamic=!0,s.strValue=r,s}return n=n||xl(r,e),wh(n.duration,n.delay,n.easing)}(e.timings,n.errors);n.currentAnimateTimings=r;let i,s=e.styles?e.styles:AC({});if(5==s.type)i=this.visitKeyframes(s,n);else{let o=e.styles,a=!1;if(!o){a=!0;const u={};r.easing&&(u.easing=r.easing),o=AC(u)}n.currentTime+=r.duration+r.delay;const l=this.visitStyle(o,n);l.isEmptyStep=a,i=l}return n.currentAnimateTimings=null,{type:4,timings:r,style:i,options:null}}visitStyle(e,n){const r=this._makeStyleAst(e,n);return this._validateStyleAst(r,n),r}_makeStyleAst(e,n){const r=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==jn?r.push(o):n.errors.push(`The provided style string value ${o} is not allowed.`):r.push(o)}):r.push(e.styles);let i=!1,s=null;return r.forEach(o=>{if(Bl(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!i)for(let u in a)if(a[u].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:r,easing:s,offset:e.offset,containsDynamicStyles:i,options:null}}_validateStyleAst(e,n){const r=n.currentAnimateTimings;let i=n.currentTime,s=n.currentTime;r&&s>0&&(s-=r.duration+r.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return void n.errors.push(`The provided animation property "${a}" is not a supported CSS property for animations`);const l=n.collectedStyles[n.currentQuerySelector],u=l[a];let c=!0;u&&(s!=i&&s>=u.startTime&&i<=u.endTime&&(n.errors.push(`The CSS property "${a}" that exists between the times of "${u.startTime}ms" and "${u.endTime}ms" is also being animated in a parallel animation between the times of "${s}ms" and "${i}ms"`),c=!1),s=u.startTime),c&&(l[a]={startTime:s,endTime:i}),n.options&&function(t,e,n){const r=e.params||{},i=qC(t);i.length&&i.forEach(s=>{r.hasOwnProperty(s)||n.push(`Unable to resolve the local animation param ${s} in the given list of values`)})}(o[a],n.options,n.errors)})})}visitKeyframes(e,n){const r={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push("keyframes() must be placed inside of a call to animate()"),r;let s=0;const o=[];let a=!1,l=!1,u=0;const c=e.steps.map(_=>{const y=this._makeStyleAst(_,n);let D=null!=y.offset?y.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(n=>{if(Bl(n)&&n.hasOwnProperty("offset")){const r=n;e=parseFloat(r.offset),delete r.offset}});else if(Bl(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(y.styles),v=0;return null!=D&&(s++,v=y.offset=D),l=l||v<0||v>1,a=a||v<u,u=v,o.push(v),y});l&&n.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),a&&n.errors.push("Please ensure that all keyframe offsets are in order");const d=e.steps.length;let f=0;s>0&&s<d?n.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(f=1/(d-1));const h=d-1,p=n.currentTime,m=n.currentAnimateTimings,g=m.duration;return c.forEach((_,y)=>{const D=f>0?y==h?1:f*y:o[y],v=D*g;n.currentTime=p+m.delay+v,m.duration=v,this._validateStyleAst(_,n),_.offset=D,r.styles.push(_)}),r}visitReference(e,n){return{type:8,animation:wt(this,bo(e.animation),n),options:qr(e.options)}}visitAnimateChild(e,n){return n.depCount++,{type:9,options:qr(e.options)}}visitAnimateRef(e,n){return{type:10,animation:this.visitReference(e.animation,n),options:qr(e.options)}}visitQuery(e,n){const r=n.currentQuerySelector,i=e.options||{};n.queryCount++,n.currentQuery=e;const[s,o]=function(t){const e=!!t.split(/\s*,\s*/).find(n=>":self"==n);return e&&(t=t.replace(MV,"")),t=t.replace(/@\*/g,Pl).replace(/@\w+/g,n=>Pl+"-"+n.substr(1)).replace(/:animating/g,yh),[t,e]}(e.selector);n.currentQuerySelector=r.length?r+" "+s:s,Ct(n.collectedStyles,n.currentQuerySelector,{});const a=wt(this,bo(e.animation),n);return n.currentQuery=null,n.currentQuerySelector=r,{type:11,selector:s,limit:i.limit||0,optional:!!i.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:qr(e.options)}}visitStagger(e,n){n.currentQuery||n.errors.push("stagger() can only be used inside of query()");const r="full"===e.timings?{duration:0,delay:0,easing:"full"}:xl(e.timings,n.errors,!0);return{type:12,animation:wt(this,bo(e.animation),n),timings:r,options:null}}}class xV{constructor(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function Bl(t){return!Array.isArray(t)&&"object"==typeof t}function qr(t){return t?(t=Ji(t)).params&&(t.params=function(t){return t?Ji(t):null}(t.params)):t={},t}function wh(t,e,n){return{duration:t,delay:e,easing:n}}function bh(t,e,n,r,i,s,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:s,totalTime:i+s,easing:o,subTimeline:a}}class jl{constructor(){this._map=new Map}consume(e){let n=this._map.get(e);return n?this._map.delete(e):n=[],n}append(e,n){let r=this._map.get(e);r||this._map.set(e,r=[]),r.push(...n)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const VV=new RegExp(":enter","g"),jV=new RegExp(":leave","g");function Sh(t,e,n,r,i,s={},o={},a,l,u=[]){return(new UV).buildKeyframes(t,e,n,r,i,s,o,a,l,u)}class UV{buildKeyframes(e,n,r,i,s,o,a,l,u,c=[]){u=u||new jl;const d=new Th(e,n,u,i,s,c,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),wt(this,r,d);const f=d.timelines.filter(h=>h.containsAnimation());if(f.length&&Object.keys(a).length){const h=f[f.length-1];h.allowOnlyTimelineStyles()||h.setStyles([a],null,d.errors,l)}return f.length?f.map(h=>h.buildKeyframes()):[bh(n,[],[],[],0,0,"",!1)]}visitTrigger(e,n){}visitState(e,n){}visitTransition(e,n){}visitAnimateChild(e,n){const r=n.subInstructions.consume(n.element);if(r){const i=n.createSubContext(e.options),s=n.currentTimeline.currentTime,o=this._visitSubInstructions(r,i,i.options);s!=o&&n.transformIntoNewTimeline(o)}n.previousNode=e}visitAnimateRef(e,n){const r=n.createSubContext(e.options);r.transformIntoNewTimeline(),this.visitReference(e.animation,r),n.transformIntoNewTimeline(r.currentTimeline.currentTime),n.previousNode=e}_visitSubInstructions(e,n,r){let s=n.currentTimeline.currentTime;const o=null!=r.duration?$r(r.duration):null,a=null!=r.delay?$r(r.delay):null;return 0!==o&&e.forEach(l=>{const u=n.appendInstructionToTimeline(l,o,a);s=Math.max(s,u.duration+u.delay)}),s}visitReference(e,n){n.updateOptions(e.options,!0),wt(this,e.animation,n),n.previousNode=e}visitSequence(e,n){const r=n.subContextCount;let i=n;const s=e.options;if(s&&(s.params||s.delay)&&(i=n.createSubContext(s),i.transformIntoNewTimeline(),null!=s.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Ul);const o=$r(s.delay);i.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>wt(this,o,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),n.previousNode=e}visitGroup(e,n){const r=[];let i=n.currentTimeline.currentTime;const s=e.options&&e.options.delay?$r(e.options.delay):0;e.steps.forEach(o=>{const a=n.createSubContext(e.options);s&&a.delayNextStep(s),wt(this,o,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(o=>n.currentTimeline.mergeTimelineCollectedStyles(o)),n.transformIntoNewTimeline(i),n.previousNode=e}_visitTiming(e,n){if(e.dynamic){const r=e.strValue;return xl(n.params?Fl(r,n.params,n.errors):r,n.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,n){const r=n.currentAnimateTimings=this._visitTiming(e.timings,n),i=n.currentTimeline;r.delay&&(n.incrementTime(r.delay),i.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,n):(n.incrementTime(r.duration),this.visitStyle(s,n),i.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=e}visitStyle(e,n){const r=n.currentTimeline,i=n.currentAnimateTimings;!i&&r.getCurrentStyleProperties().length&&r.forwardFrame();const s=i&&i.easing||e.easing;e.isEmptyStep?r.applyEmptyStep(s):r.setStyles(e.styles,s,n.errors,n.options),n.previousNode=e}visitKeyframes(e,n){const r=n.currentAnimateTimings,i=n.currentTimeline.duration,s=r.duration,a=n.createSubContext().currentTimeline;a.easing=r.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,n.errors,n.options),a.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(a),n.transformIntoNewTimeline(i+s),n.previousNode=e}visitQuery(e,n){const r=n.currentTimeline.currentTime,i=e.options||{},s=i.delay?$r(i.delay):0;s&&(6===n.previousNode.type||0==r&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=Ul);let o=r;const a=n.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,n.errors);n.currentQueryTotal=a.length;let l=null;a.forEach((u,c)=>{n.currentQueryIndex=c;const d=n.createSubContext(e.options,u);s&&d.delayNextStep(s),u===n.element&&(l=d.currentTimeline),wt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(o),l&&(n.currentTimeline.mergeTimelineCollectedStyles(l),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=e}visitStagger(e,n){const r=n.parentContext,i=n.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(n.currentQueryTotal-1);let l=o*n.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=r.currentStaggerTime}const c=n.currentTimeline;l&&c.delayNextStep(l);const d=c.currentTime;wt(this,e.animation,n),n.previousNode=e,r.currentStaggerTime=i.currentTime-d+(i.startTime-r.currentTimeline.startTime)}}const Ul={};class Th{constructor(e,n,r,i,s,o,a,l){this._driver=e,this.element=n,this.subInstructions=r,this._enterClassName=i,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Ul,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new $l(this._driver,n,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,n){if(!e)return;const r=e;let i=this.options;null!=r.duration&&(i.duration=$r(r.duration)),null!=r.delay&&(i.delay=$r(r.delay));const s=r.params;if(s){let o=i.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!n||!o.hasOwnProperty(a))&&(o[a]=Fl(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const n=this.options.params;if(n){const r=e.params={};Object.keys(n).forEach(i=>{r[i]=n[i]})}}return e}createSubContext(e=null,n,r){const i=n||this.element,s=new Th(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=Ul,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,n,r){const i={duration:null!=n?n:e.duration,delay:this.currentTimeline.currentTime+(null!=r?r:0)+e.delay,easing:""},s=new $V(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(s),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,n,r,i,s,o){let a=[];if(i&&a.push(this.element),e.length>0){e=(e=e.replace(VV,"."+this._enterClassName)).replace(jV,"."+this._leaveClassName);let u=this._driver.query(this.element,e,1!=r);0!==r&&(u=r<0?u.slice(u.length+r,u.length):u.slice(0,r)),a.push(...u)}return!s&&0==a.length&&o.push(`\`query("${n}")\` returned zero elements. (Use \`query("${n}", { optional: true })\` if you wish to allow this.)`),a}}class $l{constructor(e,n,r,i){this._driver=e,this.element=n,this.startTime=r,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}}getCurrentStyleProperties(){return Object.keys(this._currentKeyframe)}get currentTime(){return this.startTime+this.duration}delayNextStep(e){const n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+e),n&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,n){return this.applyStylesToKeyframe(),new $l(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=1,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,n){this._localTimelineStyles[e]=n,this._globalTimelineStyles[e]=n,this._styleSummary[e]={time:this.currentTime,value:n}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(n=>{this._backFill[n]=this._globalTimelineStyles[n]||jn,this._currentKeyframe[n]=jn}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,n,r,i){n&&(this._previousKeyframe.easing=n);const s=i&&i.params||{},o=function(t,e){const n={};let r;return t.forEach(i=>{"*"===i?(r=r||Object.keys(e),r.forEach(s=>{n[s]=jn})):ar(i,!1,n)}),n}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Fl(o[a],s,r);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:jn),this._updateStyle(a,l)})}applyStylesToKeyframe(){const e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(r=>{this._currentKeyframe[r]=e[r]}),Object.keys(this._localTimelineStyles).forEach(r=>{this._currentKeyframe.hasOwnProperty(r)||(this._currentKeyframe[r]=this._localTimelineStyles[r])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const n=this._localTimelineStyles[e];this._pendingStyles[e]=n,this._updateStyle(e,n)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let n in this._currentKeyframe)e.push(n);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(n=>{const r=this._styleSummary[n],i=e._styleSummary[n];(!r||i.time>r.time)&&this._updateStyle(n,i.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration;let i=[];this._keyframes.forEach((a,l)=>{const u=ar(a,!0);Object.keys(u).forEach(c=>{const d=u[c];"!"==d?e.add(c):d==jn&&n.add(c)}),r||(u.offset=l/this.duration),i.push(u)});const s=e.size?Ol(e.values()):[],o=n.size?Ol(n.values()):[];if(r){const a=i[0],l=Ji(a);a.offset=0,l.offset=1,i=[a,l]}return bh(this.element,i,s,o,this.duration,this.startTime,this.easing,!1)}}class $V extends $l{constructor(e,n,r,i,s,o,a=!1){super(e,n,o.delay),this.keyframes=r,this.preStyleProps=i,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 e=this.keyframes,{delay:n,duration:r,easing:i}=this.timings;if(this._stretchStartingKeyframe&&n){const s=[],o=r+n,a=n/o,l=ar(e[0],!1);l.offset=0,s.push(l);const u=ar(e[0],!1);u.offset=YC(a),s.push(u);const c=e.length-1;for(let d=1;d<=c;d++){let f=ar(e[d],!1);f.offset=YC((n+f.offset*r)/o),s.push(f)}r=o,n=0,i="",e=s}return bh(this.element,e,this.preStyleProps,this.postStyleProps,r,n,i,!0)}}function YC(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class Ih{}class qV extends Ih{normalizePropertyName(e,n){return Dh(e)}normalizeStyleValue(e,n,r,i){let s="";const o=r.toString().trim();if(WV[n]&&0!==r&&"0"!==r)if("number"==typeof r)s="px";else{const a=r.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push(`Please provide a CSS unit value for ${e}:${r}`)}return o+s}}const WV=(()=>function(t){const e={};return t.forEach(n=>e[n]=!0),e}("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".split(",")))();function ZC(t,e,n,r,i,s,o,a,l,u,c,d,f){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:s,toState:r,toStyles:o,timelines:a,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:d,errors:f}}const Ah={};class JC{constructor(e,n,r){this._triggerName=e,this.ast=n,this._stateStyles=r}match(e,n,r,i){return function(t,e,n,r,i){return t.some(s=>s(e,n,r,i))}(this.ast.matchers,e,n,r,i)}buildStyles(e,n,r){const i=this._stateStyles["*"],s=this._stateStyles[e],o=i?i.buildStyles(n,r):{};return s?s.buildStyles(n,r):o}build(e,n,r,i,s,o,a,l,u,c){const d=[],f=this.ast.options&&this.ast.options.params||Ah,p=this.buildStyles(r,a&&a.params||Ah,d),m=l&&l.params||Ah,g=this.buildStyles(i,m,d),_=new Set,y=new Map,D=new Map,v="void"===i,x={params:M(M({},f),m)},te=c?[]:Sh(e,n,this.ast.animation,s,o,p,g,x,u,d);let se=0;if(te.forEach(Ge=>{se=Math.max(Ge.duration+Ge.delay,se)}),d.length)return ZC(n,this._triggerName,r,i,v,p,g,[],[],y,D,se,d);te.forEach(Ge=>{const Qe=Ge.element,Un=Ct(y,Qe,{});Ge.preStyleProps.forEach(rn=>Un[rn]=!0);const $n=Ct(D,Qe,{});Ge.postStyleProps.forEach(rn=>$n[rn]=!0),Qe!==n&&_.add(Qe)});const it=Ol(_.values());return ZC(n,this._triggerName,r,i,v,p,g,te,it,y,D,se)}}class QV{constructor(e,n,r){this.styles=e,this.defaultParams=n,this.normalizer=r}buildStyles(e,n){const r={},i=Ji(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[s];null!=o&&(i[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Fl(l,i,n));const u=this.normalizer.normalizePropertyName(a,n);l=this.normalizer.normalizeStyleValue(a,u,l,n),r[u]=l})}}),r}}class YV{constructor(e,n,r){this.name=e,this.ast=n,this._normalizer=r,this.transitionFactories=[],this.states={},n.states.forEach(i=>{this.states[i.name]=new QV(i.style,i.options&&i.options.params||{},r)}),XC(this.states,"true","1"),XC(this.states,"false","0"),n.transitions.forEach(i=>{this.transitionFactories.push(new JC(e,i,this.states))}),this.fallbackTransition=function(t,e,n){return new JC(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,n,r,i){return this.transitionFactories.find(o=>o.match(e,n,r,i))||null}matchStyles(e,n,r){return this.fallbackTransition.buildStyles(e,n,r)}}function XC(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const JV=new jl;class XV{constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r,this._animations={},this._playersById={},this.players=[]}register(e,n){const r=[],i=Ch(this._driver,n,r);if(r.length)throw new Error(`Unable to build the animation due to the following errors: ${r.join("\n")}`);this._animations[e]=i}_buildPlayer(e,n,r){const i=e.element,s=PC(0,this._normalizer,0,e.keyframes,n,r);return this._driver.animate(i,s,e.duration,e.delay,e.easing,[],!0)}create(e,n,r={}){const i=[],s=this._animations[e];let o;const a=new Map;if(s?(o=Sh(this._driver,n,s,mh,Rl,{},{},r,JV,i),o.forEach(c=>{const d=Ct(a,c.element,{});c.postStyleProps.forEach(f=>d[f]=null)})):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error(`Unable to create the animation due to the following errors: ${i.join("\n")}`);a.forEach((c,d)=>{Object.keys(c).forEach(f=>{c[f]=this._driver.computeStyle(d,f,jn)})});const u=or(o.map(c=>{const d=a.get(c.element);return this._buildPlayer(c,{},d)}));return this._playersById[e]=u,u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){const n=this._getPlayer(e);n.destroy(),delete this._playersById[e];const r=this.players.indexOf(n);r>=0&&this.players.splice(r,1)}_getPlayer(e){const n=this._playersById[e];if(!n)throw new Error(`Unable to find the timeline player referenced by ${e}`);return n}listen(e,n,r,i){const s=lh(n,"","","");return oh(this._getPlayer(e),r,s,i),()=>{}}command(e,n,r,i){if("register"==r)return void this.register(e,i[0]);if("create"==r)return void this.create(e,n,i[0]||{});const s=this._getPlayer(e);switch(r){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(i[0]));break;case"destroy":this.destroy(e)}}}const ew="ng-animate-queued",tw="ng-animate-disabled",nw=".ng-animate-disabled",r2=[],rw={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},i2={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Vt="__ng_removed";class Mh{constructor(e,n=""){this.namespaceId=n;const r=e&&e.hasOwnProperty("value");if(this.value=null!=(t=r?e.value:e)?t:null,r){const s=Ji(e);delete s.value,this.options=s}else this.options={};var t;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const n=e.params;if(n){const r=this.options.params;Object.keys(n).forEach(i=>{null==r[i]&&(r[i]=n[i])})}}}const So="void",Rh=new Mh(So);class s2{constructor(e,n,r){this.id=e,this.hostElement=n,this._engine=r,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Bt(n,this._hostClassName)}listen(e,n,r,i){if(!this._triggers.hasOwnProperty(n))throw new Error(`Unable to listen on the animation trigger event "${r}" because the animation trigger "${n}" doesn't exist!`);if(null==r||0==r.length)throw new Error(`Unable to listen on the animation trigger "${n}" because the provided event is undefined!`);if("start"!=(t=r)&&"done"!=t)throw new Error(`The provided animation trigger event "${r}" for the animation trigger "${n}" is not supported!`);var t;const s=Ct(this._elementListeners,e,[]),o={name:n,phase:r,callback:i};s.push(o);const a=Ct(this._engine.statesByElement,e,{});return a.hasOwnProperty(n)||(Bt(e,Nl),Bt(e,Nl+"-"+n),a[n]=Rh),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[n]||delete a[n]})}}register(e,n){return!this._triggers[e]&&(this._triggers[e]=n,!0)}_getTrigger(e){const n=this._triggers[e];if(!n)throw new Error(`The provided animation trigger "${e}" has not been registered!`);return n}trigger(e,n,r,i=!0){const s=this._getTrigger(n),o=new Nh(this.id,n,e);let a=this._engine.statesByElement.get(e);a||(Bt(e,Nl),Bt(e,Nl+"-"+n),this._engine.statesByElement.set(e,a={}));let l=a[n];const u=new Mh(r,this.id);if(!(r&&r.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),a[n]=u,l||(l=Rh),u.value!==So&&l.value===u.value){if(!function(t,e){const n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(let i=0;i<n.length;i++){const s=n[i];if(!e.hasOwnProperty(s)||t[s]!==e[s])return!1}return!0}(l.params,u.params)){const m=[],g=s.matchStyles(l.value,l.params,m),_=s.matchStyles(u.value,u.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{Hr(e,g),_n(e,_)})}return}const f=Ct(this._engine.playersByElement,e,[]);f.forEach(m=>{m.namespaceId==this.id&&m.triggerName==n&&m.queued&&m.destroy()});let h=s.matchTransition(l.value,u.value,e,u.params),p=!1;if(!h){if(!i)return;h=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:n,transition:h,fromState:l,toState:u,player:o,isFallbackTransition:p}),p||(Bt(e,ew),o.onStart(()=>{Xi(e,ew)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);const g=this._engine.playersByElement.get(e);if(g){let _=g.indexOf(o);_>=0&&g.splice(_,1)}}),this.players.push(o),f.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((n,r)=>{delete n[e]}),this._elementListeners.forEach((n,r)=>{this._elementListeners.set(r,n.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const n=this._engine.playersByElement.get(e);n&&(n.forEach(r=>r.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,n){const r=this._engine.driver.query(e,Pl,!0);r.forEach(i=>{if(i[Vt])return;const s=this._engine.fetchNamespacesByElement(i);s.size?s.forEach(o=>o.triggerLeaveAnimation(i,n,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>r.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,n,r,i){const s=this._engine.statesByElement.get(e);if(s){const o=[];if(Object.keys(s).forEach(a=>{if(this._triggers[a]){const l=this.trigger(e,a,So,i);l&&o.push(l)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,n),r&&or(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const n=this._elementListeners.get(e),r=this._engine.statesByElement.get(e);if(n&&r){const i=new Set;n.forEach(s=>{const o=s.name;if(i.has(o))return;i.add(o);const l=this._triggers[o].fallbackTransition,u=r[o]||Rh,c=new Mh(So),d=new Nh(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:u,toState:c,player:d,isFallbackTransition:!0})})}}removeNode(e,n){const r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,n),this.triggerLeaveAnimation(e,n,!0))return;let i=!1;if(r.totalAnimations){const s=r.players.length?r.playersByQueriedElement.get(e):[];if(s&&s.length)i=!0;else{let o=e;for(;o=o.parentNode;)if(r.statesByElement.get(o)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)r.markElementAsRemoved(this.id,e,!1,n);else{const s=e[Vt];(!s||s===rw)&&(r.afterFlush(()=>this.clearElementCache(e)),r.destroyInnerAnimations(e),r._onRemovalComplete(e,n))}}insertNode(e,n){Bt(e,this._hostClassName)}drainQueuedTransitions(e){const n=[];return this._queue.forEach(r=>{const i=r.player;if(i.destroyed)return;const s=r.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==r.triggerName){const l=lh(s,r.triggerName,r.fromState.value,r.toState.value);l._data=e,oh(r.player,a.phase,l,a.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):n.push(r)}),this._queue=[],n.sort((r,i)=>{const s=r.transition.ast.depCount,o=i.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(r.element,i.element)?1:-1})}destroy(e){this.players.forEach(n=>n.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let n=!1;return this._elementListeners.has(e)&&(n=!0),n=!!this._queue.find(r=>r.element===e)||n,n}}class o2{constructor(e,n,r){this.bodyNode=e,this.driver=n,this._normalizer=r,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=(i,s)=>{}}_onRemovalComplete(e,n){this.onRemovalComplete(e,n)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(n=>{n.players.forEach(r=>{r.queued&&e.push(r)})}),e}createNamespace(e,n){const r=new s2(e,n,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,n)?this._balanceNamespaceList(r,n):(this.newHostElements.set(n,r),this.collectEnterElement(n)),this._namespaceLookup[e]=r}_balanceNamespaceList(e,n){const r=this._namespaceList.length-1;if(r>=0){let i=!1;for(let s=r;s>=0;s--)if(this.driver.containsElement(this._namespaceList[s].hostElement,n)){this._namespaceList.splice(s+1,0,e),i=!0;break}i||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(n,e),e}register(e,n){let r=this._namespaceLookup[e];return r||(r=this.createNamespace(e,n)),r}registerTrigger(e,n,r){let i=this._namespaceLookup[e];i&&i.register(n,r)&&this.totalAnimations++}destroy(e,n){if(!e)return;const r=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(r.hostElement),delete this._namespaceLookup[e];const i=this._namespaceList.indexOf(r);i>=0&&this._namespaceList.splice(i,1)}),this.afterFlushAnimationsDone(()=>r.destroy(n))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const n=new Set,r=this.statesByElement.get(e);if(r){const i=Object.keys(r);for(let s=0;s<i.length;s++){const o=r[i[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&n.add(a)}}}return n}trigger(e,n,r,i){if(Hl(n)){const s=this._fetchNamespace(e);if(s)return s.trigger(n,r,i),!0}return!1}insertNode(e,n,r,i){if(!Hl(n))return;const s=n[Vt];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(n);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(n,r)}i&&this.collectEnterElement(n)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,n){n?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Bt(e,tw)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Xi(e,tw))}removeNode(e,n,r,i){if(Hl(n)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(n,i):this.markElementAsRemoved(e,n,!1,i),r){const o=this.namespacesByHostElement.get(n);o&&o.id!==e&&o.removeNode(n,i)}}else this._onRemovalComplete(n,i)}markElementAsRemoved(e,n,r,i){this.collectedLeaveElements.push(n),n[Vt]={namespaceId:e,setForRemoval:i,hasAnimation:r,removedBeforeQueried:!1}}listen(e,n,r,i,s){return Hl(n)?this._fetchNamespace(e).listen(n,r,i,s):()=>{}}_buildInstruction(e,n,r,i,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,r,i,e.fromState.options,e.toState.options,n,s)}destroyInnerAnimations(e){let n=this.driver.query(e,Pl,!0);n.forEach(r=>this.destroyActiveAnimationsForElement(r)),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,yh,!0),n.forEach(r=>this.finishActiveQueriedAnimationOnElement(r)))}destroyActiveAnimationsForElement(e){const n=this.playersByElement.get(e);n&&n.forEach(r=>{r.queued?r.markedForDestroy=!0:r.destroy()})}finishActiveQueriedAnimationOnElement(e){const n=this.playersByQueriedElement.get(e);n&&n.forEach(r=>r.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return or(this.players).onDone(()=>e());e()})}processLeaveNode(e){const n=e[Vt];if(n&&n.setForRemoval){if(e[Vt]=rw,n.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,nw)&&this.markElementAsDisabled(e,!1),this.driver.query(e,nw,!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((r,i)=>this._balanceNamespaceList(r,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let r=0;r<this.collectedEnterElements.length;r++)Bt(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const r=[];try{n=this._flushAnimations(r,e)}finally{for(let i=0;i<r.length;i++)r[i]()}}else for(let r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(r=>r()),this._flushFns=[],this._whenQuietFns.length){const r=this._whenQuietFns;this._whenQuietFns=[],n.length?or(n).onDone(()=>{r.forEach(i=>i())}):r.forEach(i=>i())}}reportError(e){throw new Error(`Unable to process animations due to the following failed trigger transitions\n ${e.join("\n")}`)}_flushAnimations(e,n){const r=new jl,i=[],s=new Map,o=[],a=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(b=>{c.add(b);const A=this.driver.query(b,".ng-animate-queued",!0);for(let L=0;L<A.length;L++)c.add(A[L])});const d=this.bodyNode,f=Array.from(this.statesByElement.keys()),h=ow(f,this.collectedEnterElements),p=new Map;let m=0;h.forEach((b,A)=>{const L=mh+m++;p.set(A,L),b.forEach(J=>Bt(J,L))});const g=[],_=new Set,y=new Set;for(let b=0;b<this.collectedLeaveElements.length;b++){const A=this.collectedLeaveElements[b],L=A[Vt];L&&L.setForRemoval&&(g.push(A),_.add(A),L.hasAnimation?this.driver.query(A,".ng-star-inserted",!0).forEach(J=>_.add(J)):y.add(A))}const D=new Map,v=ow(f,Array.from(_));v.forEach((b,A)=>{const L=Rl+m++;D.set(A,L),b.forEach(J=>Bt(J,L))}),e.push(()=>{h.forEach((b,A)=>{const L=p.get(A);b.forEach(J=>Xi(J,L))}),v.forEach((b,A)=>{const L=D.get(A);b.forEach(J=>Xi(J,L))}),g.forEach(b=>{this.processLeaveNode(b)})});const x=[],te=[];for(let b=this._namespaceList.length-1;b>=0;b--)this._namespaceList[b].drainQueuedTransitions(n).forEach(L=>{const J=L.player,Oe=L.element;if(x.push(J),this.collectedEnterElements.length){const Dn=Oe[Vt];if(Dn&&Dn.setForMove)return void J.destroy()}const En=!d||!this.driver.containsElement(d,Oe),bt=D.get(Oe),lr=p.get(Oe),Ee=this._buildInstruction(L,r,lr,bt,En);if(Ee.errors&&Ee.errors.length)te.push(Ee);else{if(En)return J.onStart(()=>Hr(Oe,Ee.fromStyles)),J.onDestroy(()=>_n(Oe,Ee.toStyles)),void i.push(J);if(L.isFallbackTransition)return J.onStart(()=>Hr(Oe,Ee.fromStyles)),J.onDestroy(()=>_n(Oe,Ee.toStyles)),void i.push(J);Ee.timelines.forEach(Dn=>Dn.stretchStartingKeyframe=!0),r.append(Oe,Ee.timelines),o.push({instruction:Ee,player:J,element:Oe}),Ee.queriedElements.forEach(Dn=>Ct(a,Dn,[]).push(J)),Ee.preStyleProps.forEach((Dn,To)=>{const Ql=Object.keys(Dn);if(Ql.length){let Wr=l.get(To);Wr||l.set(To,Wr=new Set),Ql.forEach(Oh=>Wr.add(Oh))}}),Ee.postStyleProps.forEach((Dn,To)=>{const Ql=Object.keys(Dn);let Wr=u.get(To);Wr||u.set(To,Wr=new Set),Ql.forEach(Oh=>Wr.add(Oh))})}});if(te.length){const b=[];te.forEach(A=>{b.push(`@${A.triggerName} has failed due to:\n`),A.errors.forEach(L=>b.push(`- ${L}\n`))}),x.forEach(A=>A.destroy()),this.reportError(b)}const se=new Map,it=new Map;o.forEach(b=>{const A=b.element;r.has(A)&&(it.set(A,A),this._beforeAnimationBuild(b.player.namespaceId,b.instruction,se))}),i.forEach(b=>{const A=b.element;this._getPreviousPlayers(A,!1,b.namespaceId,b.triggerName,null).forEach(J=>{Ct(se,A,[]).push(J),J.destroy()})});const Ge=g.filter(b=>lw(b,l,u)),Qe=new Map;sw(Qe,this.driver,y,u,jn).forEach(b=>{lw(b,l,u)&&Ge.push(b)});const $n=new Map;h.forEach((b,A)=>{sw($n,this.driver,new Set(b),l,"!")}),Ge.forEach(b=>{const A=Qe.get(b),L=$n.get(b);Qe.set(b,M(M({},A),L))});const rn=[],es=[],ts={};o.forEach(b=>{const{element:A,player:L,instruction:J}=b;if(r.has(A)){if(c.has(A))return L.onDestroy(()=>_n(A,J.toStyles)),L.disabled=!0,L.overrideTotalTime(J.totalTime),void i.push(L);let Oe=ts;if(it.size>1){let bt=A;const lr=[];for(;bt=bt.parentNode;){const Ee=it.get(bt);if(Ee){Oe=Ee;break}lr.push(bt)}lr.forEach(Ee=>it.set(Ee,Oe))}const En=this._buildAnimation(L.namespaceId,J,se,s,$n,Qe);if(L.setRealPlayer(En),Oe===ts)rn.push(L);else{const bt=this.playersByElement.get(Oe);bt&&bt.length&&(L.parentPlayer=or(bt)),i.push(L)}}else Hr(A,J.fromStyles),L.onDestroy(()=>_n(A,J.toStyles)),es.push(L),c.has(A)&&i.push(L)}),es.forEach(b=>{const A=s.get(b.element);if(A&&A.length){const L=or(A);b.setRealPlayer(L)}}),i.forEach(b=>{b.parentPlayer?b.syncPlayerEvents(b.parentPlayer):b.destroy()});for(let b=0;b<g.length;b++){const A=g[b],L=A[Vt];if(Xi(A,Rl),L&&L.hasAnimation)continue;let J=[];if(a.size){let En=a.get(A);En&&En.length&&J.push(...En);let bt=this.driver.query(A,yh,!0);for(let lr=0;lr<bt.length;lr++){let Ee=a.get(bt[lr]);Ee&&Ee.length&&J.push(...Ee)}}const Oe=J.filter(En=>!En.destroyed);Oe.length?c2(this,A,Oe):this.processLeaveNode(A)}return g.length=0,rn.forEach(b=>{this.players.push(b),b.onDone(()=>{b.destroy();const A=this.players.indexOf(b);this.players.splice(A,1)}),b.play()}),rn}elementContainsData(e,n){let r=!1;const i=n[Vt];return i&&i.setForRemoval&&(r=!0),this.playersByElement.has(n)&&(r=!0),this.playersByQueriedElement.has(n)&&(r=!0),this.statesByElement.has(n)&&(r=!0),this._fetchNamespace(e).elementContainsData(n)||r}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,n,r,i,s){let o=[];if(n){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==So;a.forEach(u=>{u.queued||!l&&u.triggerName!=i||o.push(u)})}}return(r||i)&&(o=o.filter(a=>!(r&&r!=a.namespaceId||i&&i!=a.triggerName))),o}_beforeAnimationBuild(e,n,r){const s=n.element,o=n.isRemovalTransition?void 0:e,a=n.isRemovalTransition?void 0:n.triggerName;for(const l of n.timelines){const u=l.element,c=u!==s,d=Ct(r,u,[]);this._getPreviousPlayers(u,c,o,a,n.toState).forEach(h=>{const p=h.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),h.destroy(),d.push(h)})}Hr(s,n.fromStyles)}_buildAnimation(e,n,r,i,s,o){const a=n.triggerName,l=n.element,u=[],c=new Set,d=new Set,f=n.timelines.map(p=>{const m=p.element;c.add(m);const g=m[Vt];if(g&&g.removedBeforeQueried)return new Zi(p.duration,p.delay);const _=m!==l,y=function(t){const e=[];return aw(t,e),e}((r.get(m)||r2).map(se=>se.getRealPlayer())).filter(se=>!!se.element&&se.element===m),D=s.get(m),v=o.get(m),x=PC(0,this._normalizer,0,p.keyframes,D,v),te=this._buildPlayer(p,x,y);if(p.subTimeline&&i&&d.add(m),_){const se=new Nh(e,a,m);se.setRealPlayer(te),u.push(se)}return te});u.forEach(p=>{Ct(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function(t,e,n){let r;if(t instanceof Map){if(r=t.get(e),r){if(r.length){const i=r.indexOf(n);r.splice(i,1)}0==r.length&&t.delete(e)}}else if(r=t[e],r){if(r.length){const i=r.indexOf(n);r.splice(i,1)}0==r.length&&delete t[e]}return r}(this.playersByQueriedElement,p.element,p))}),c.forEach(p=>Bt(p,jC));const h=or(f);return h.onDestroy(()=>{c.forEach(p=>Xi(p,jC)),_n(l,n.toStyles)}),d.forEach(p=>{Ct(i,p,[]).push(h)}),h}_buildPlayer(e,n,r){return n.length>0?this.driver.animate(e.element,n,e.duration,e.delay,e.easing,r):new Zi(e.duration,e.delay)}}class Nh{constructor(e,n,r){this.namespaceId=e,this.triggerName=n,this.element=r,this._player=new Zi,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(n=>{this._queuedCallbacks[n].forEach(r=>oh(e,n,void 0,r))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const n=this._player;n.triggerCallback&&e.onStart(()=>n.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,n){Ct(this._queuedCallbacks,e,[]).push(n)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const n=this._player;n.triggerCallback&&n.triggerCallback(e)}}function Hl(t){return t&&1===t.nodeType}function iw(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function sw(t,e,n,r,i){const s=[];n.forEach(l=>s.push(iw(l)));const o=[];r.forEach((l,u)=>{const c={};l.forEach(d=>{const f=c[d]=e.computeStyle(u,d,i);(!f||0==f.length)&&(u[Vt]=i2,o.push(u))}),t.set(u,c)});let a=0;return n.forEach(l=>iw(l,s[a++])),o}function ow(t,e){const n=new Map;if(t.forEach(a=>n.set(a,[])),0==e.length)return n;const i=new Set(e),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const u=a.parentNode;return l=n.has(u)?u:i.has(u)?1:o(u),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&n.get(l).push(a)}),n}const ql="$$classes";function Bt(t,e){if(t.classList)t.classList.add(e);else{let n=t[ql];n||(n=t[ql]={}),n[e]=!0}}function Xi(t,e){if(t.classList)t.classList.remove(e);else{let n=t[ql];n&&delete n[e]}}function c2(t,e,n){or(n).onDone(()=>t.processLeaveNode(e))}function aw(t,e){for(let n=0;n<t.length;n++){const r=t[n];r instanceof RC?aw(r.players,e):e.push(r)}}function lw(t,e,n){const r=n.get(t);if(!r)return!1;let i=e.get(t);return i?r.forEach(s=>i.add(s)):e.set(t,r),n.delete(t),!0}class Wl{constructor(e,n,r){this.bodyNode=e,this._driver=n,this._normalizer=r,this._triggerCache={},this.onRemovalComplete=(i,s)=>{},this._transitionEngine=new o2(e,n,r),this._timelineEngine=new XV(e,n,r),this._transitionEngine.onRemovalComplete=(i,s)=>this.onRemovalComplete(i,s)}registerTrigger(e,n,r,i,s){const o=e+"-"+i;let a=this._triggerCache[o];if(!a){const l=[],u=Ch(this._driver,s,l);if(l.length)throw new Error(`The animation trigger "${i}" has failed to build due to the following errors:\n - ${l.join("\n - ")}`);a=function(t,e,n){return new YV(t,e,n)}(i,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(n,i,a)}register(e,n){this._transitionEngine.register(e,n)}destroy(e,n){this._transitionEngine.destroy(e,n)}onInsert(e,n,r,i){this._transitionEngine.insertNode(e,n,r,i)}onRemove(e,n,r,i){this._transitionEngine.removeNode(e,n,i||!1,r)}disableAnimations(e,n){this._transitionEngine.markElementAsDisabled(e,n)}process(e,n,r,i){if("@"==r.charAt(0)){const[s,o]=xC(r);this._timelineEngine.command(s,n,o,i)}else this._transitionEngine.trigger(e,n,r,i)}listen(e,n,r,i,s){if("@"==r.charAt(0)){const[o,a]=xC(r);return this._timelineEngine.listen(o,n,a,s)}return this._transitionEngine.listen(e,n,r,i,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function uw(t,e){let n=null,r=null;return Array.isArray(e)&&e.length?(n=Ph(e[0]),e.length>1&&(r=Ph(e[e.length-1]))):e&&(n=Ph(e)),n||r?new h2(t,n,r):null}let h2=(()=>{class t{constructor(n,r,i){this._element=n,this._startStyles=r,this._endStyles=i,this._state=0;let s=t.initialStylesByElement.get(n);s||t.initialStylesByElement.set(n,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&_n(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(_n(this._element,this._initialStyles),this._endStyles&&(_n(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Hr(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Hr(this._element,this._endStyles),this._endStyles=null),_n(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function Ph(t){let e=null;const n=Object.keys(t);for(let r=0;r<n.length;r++){const i=n[r];p2(i)&&(e=e||{},e[i]=t[i])}return e}function p2(t){return"display"===t||"position"===t}const cw="animation",dw="animationend";class y2{constructor(e,n,r,i,s,o,a){this._element=e,this._name=n,this._duration=r,this._delay=i,this._easing=s,this._fillMode=o,this._onDoneFn=a,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=l=>this._handleCallback(l)}apply(){(function(t,e){const n=Fh(t,"").trim();let r=0;n.length&&(function(t,e){let n=0;for(let r=0;r<t.length;r++)","===t.charAt(r)&&n++;return n}(n)+1,e=`${n}, ${e}`),zl(t,"",e)})(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),pw(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){fw(this._element,this._name,"paused")}resume(){fw(this._element,this._name,"running")}setPosition(e){const n=hw(this._element,this._name);this._position=e*this._duration,zl(this._element,"Delay",`-${this._position}ms`,n)}getPosition(){return this._position}_handleCallback(e){const n=e._ngTestManualTimestamp||Date.now(),r=1e3*parseFloat(e.elapsedTime.toFixed(3));e.animationName==this._name&&Math.max(n-this._startTime,0)>=this._delay&&r>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),pw(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const r=Fh(t,"").split(","),i=xh(r,e);i>=0&&(r.splice(i,1),zl(t,"",r.join(",")))}(this._element,this._name))}}function fw(t,e,n){zl(t,"PlayState",n,hw(t,e))}function hw(t,e){const n=Fh(t,"");return n.indexOf(",")>0?xh(n.split(","),e):xh([n],e)}function xh(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function pw(t,e,n){n?t.removeEventListener(dw,e):t.addEventListener(dw,e)}function zl(t,e,n,r){const i=cw+e;if(null!=r){const s=t.style[i];if(s.length){const o=s.split(",");o[r]=n,n=o.join(",")}}t.style[i]=n}function Fh(t,e){return t.style[cw+e]||""}class gw{constructor(e,n,r,i,s,o,a,l){this.element=e,this.keyframes=n,this.animationName=r,this._duration=i,this._delay=s,this._finalStyles=a,this._specialStyles=l,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=i+s,this._buildStyler()}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}destroy(){this.init(),!(this._state>=4)&&(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(e=>e()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}finish(){this.init(),!(this._state>=3)&&(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(e){this._styler.setPosition(e)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._state=0,this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new y2(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}beforeDestroy(){this.init();const e={};if(this.hasStarted()){const n=this._state>=3;Object.keys(this._finalStyles).forEach(r=>{"offset"!=r&&(e[r]=n?this._finalStyles[r]:vh(this.element,r))})}this.currentSnapshot=e}}class w2 extends Zi{constructor(e,n){super(),this.element=e,this._startingStyles={},this.__initialized=!1,this._styles=LC(n)}init(){this.__initialized||!this._startingStyles||(this.__initialized=!0,Object.keys(this._styles).forEach(e=>{this._startingStyles[e]=this.element.style[e]}),super.init())}play(){!this._startingStyles||(this.init(),Object.keys(this._styles).forEach(e=>this.element.style.setProperty(e,this._styles[e])),super.play())}destroy(){!this._startingStyles||(Object.keys(this._startingStyles).forEach(e=>{const n=this._startingStyles[e];n?this.element.style.setProperty(e,n):this.element.style.removeProperty(e)}),this._startingStyles=null,super.destroy())}}class yw{constructor(){this._count=0}validateStyleProperty(e){return dh(e)}matchesElement(e,n){return fh(e,n)}containsElement(e,n){return hh(e,n)}query(e,n,r){return ph(e,n,r)}computeStyle(e,n,r){return window.getComputedStyle(e)[n]}buildKeyframeElement(e,n,r){r=r.map(a=>LC(a));let i=`@keyframes ${n} {\n`,s="";r.forEach(a=>{s=" ";const l=parseFloat(a.offset);i+=`${s}${100*l}% {\n`,s+=" ",Object.keys(a).forEach(u=>{const c=a[u];switch(u){case"offset":return;case"easing":return void(c&&(i+=`${s}animation-timing-function: ${c};\n`));default:return void(i+=`${s}${u}: ${c};\n`)}}),i+=`${s}}\n`}),i+="}\n";const o=document.createElement("style");return o.textContent=i,o}animate(e,n,r,i,s,o=[],a){const l=o.filter(g=>g instanceof gw),u={};WC(r,i)&&l.forEach(g=>{let _=g.currentSnapshot;Object.keys(_).forEach(y=>u[y]=_[y])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(r=>{Object.keys(r).forEach(i=>{"offset"==i||"easing"==i||(e[i]=r[i])})}),e}(n=zC(e,n,u));if(0==r)return new w2(e,c);const d="gen_css_kf_"+this._count++,f=this.buildKeyframeElement(e,d,n);(function(t){var n;const e=null==(n=t.getRootNode)?void 0:n.call(t);return"undefined"!=typeof ShadowRoot&&e instanceof ShadowRoot?e:document.head})(e).appendChild(f);const p=uw(e,n),m=new gw(e,n,d,r,i,s,c,p);return m.onDestroy(()=>{var t;(t=f).parentNode.removeChild(t)}),m}}class Ew{constructor(e,n,r,i){this.element=e,this.keyframes=n,this.options=r,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=r.duration,this._delay=r.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,n,r){return e.animate(n,r)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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}_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(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(n=>{"offset"!=n&&(e[n]=this._finished?this._finalKeyframe[n]:vh(this.element,n))}),this.currentSnapshot=e}triggerCallback(e){const n="start"==e?this._onStartFns:this._onDoneFns;n.forEach(r=>r()),n.length=0}}class A2{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Dw().toString()),this._cssKeyframesDriver=new yw}validateStyleProperty(e){return dh(e)}matchesElement(e,n){return fh(e,n)}containsElement(e,n){return hh(e,n)}query(e,n,r){return ph(e,n,r)}computeStyle(e,n,r){return window.getComputedStyle(e)[n]}overrideWebAnimationsSupport(e){this._isNativeImpl=e}animate(e,n,r,i,s,o=[],a){if(!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(e,n,r,i,s,o);const c={duration:r,delay:i,fill:0==i?"both":"forwards"};s&&(c.easing=s);const d={},f=o.filter(p=>p instanceof Ew);WC(r,i)&&f.forEach(p=>{let m=p.currentSnapshot;Object.keys(m).forEach(g=>d[g]=m[g])});const h=uw(e,n=zC(e,n=n.map(p=>ar(p,!1)),d));return new Ew(e,n,c,h)}}function Dw(){return NC()&&Element.prototype.animate||{}}let R2=(()=>{class t extends TC{constructor(n,r){super(),this._nextAnimationId=0,this._renderer=n.createRenderer(r.body,{id:"0",encapsulation:st.None,styles:[],data:{animation:[]}})}build(n){const r=this._nextAnimationId.toString();this._nextAnimationId++;const i=Array.isArray(n)?IC(n):n;return vw(this._renderer,null,r,"register",[i]),new N2(r,this._renderer)}}return t.\u0275fac=function(n){return new(n||t)(S(Rr),S(Ae))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();class N2 extends class{}{constructor(e,n){super(),this._id=e,this._renderer=n}create(e,n){return new P2(this._id,e,n||{},this._renderer)}}class P2{constructor(e,n,r,i){this.id=e,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",r)}_listen(e,n){return this._renderer.listen(this.element,`@@${this.id}:${e}`,n)}_command(e,...n){return vw(this._renderer,this.element,this.id,e,n)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}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(e){this._command("setPosition",e)}getPosition(){var e,n;return null!=(n=null==(e=this._renderer.engine.players[+this.id])?void 0:e.getPosition())?n:0}}function vw(t,e,n,r,i){return t.setProperty(e,`@@${n}:${r}`,i)}const Cw="@.disabled";let x2=(()=>{class t{constructor(n,r,i){this.delegate=n,this.engine=r,this._zone=i,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),r.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(n,r){const s=this.delegate.createRenderer(n,r);if(!(n&&r&&r.data&&r.data.animation)){let c=this._rendererCache.get(s);return c||(c=new ww("",s,this.engine),this._rendererCache.set(s,c)),c}const o=r.id,a=r.id+"-"+this._currentId;this._currentId++,this.engine.register(a,n);const l=c=>{Array.isArray(c)?c.forEach(l):this.engine.registerTrigger(o,a,n,c.name,c)};return r.data.animation.forEach(l),new F2(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(n,r,i){n>=0&&n<this._microtaskId?this._zone.run(()=>r(i)):(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([r,i]))}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(n){return new(n||t)(S(Rr),S(Wl),S(_e))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();class ww{constructor(e,n,r){this.namespaceId=e,this.delegate=n,this.engine=r,this.destroyNode=this.delegate.destroyNode?i=>n.destroyNode(i):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,n){return this.delegate.createElement(e,n)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,n){this.delegate.appendChild(e,n),this.engine.onInsert(this.namespaceId,n,e,!1)}insertBefore(e,n,r,i=!0){this.delegate.insertBefore(e,n,r),this.engine.onInsert(this.namespaceId,n,e,i)}removeChild(e,n,r){this.engine.onRemove(this.namespaceId,n,this.delegate,r)}selectRootElement(e,n){return this.delegate.selectRootElement(e,n)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,n,r,i){this.delegate.setAttribute(e,n,r,i)}removeAttribute(e,n,r){this.delegate.removeAttribute(e,n,r)}addClass(e,n){this.delegate.addClass(e,n)}removeClass(e,n){this.delegate.removeClass(e,n)}setStyle(e,n,r,i){this.delegate.setStyle(e,n,r,i)}removeStyle(e,n,r){this.delegate.removeStyle(e,n,r)}setProperty(e,n,r){"@"==n.charAt(0)&&n==Cw?this.disableAnimations(e,!!r):this.delegate.setProperty(e,n,r)}setValue(e,n){this.delegate.setValue(e,n)}listen(e,n,r){return this.delegate.listen(e,n,r)}disableAnimations(e,n){this.engine.disableAnimations(e,n)}}class F2 extends ww{constructor(e,n,r,i){super(n,r,i),this.factory=e,this.namespaceId=n}setProperty(e,n,r){"@"==n.charAt(0)?"."==n.charAt(1)&&n==Cw?this.disableAnimations(e,r=void 0===r||!!r):this.engine.process(this.namespaceId,e,n.substr(1),r):this.delegate.setProperty(e,n,r)}listen(e,n,r){if("@"==n.charAt(0)){const i=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(e);let s=n.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,i,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,r,a)})}return this.delegate.listen(e,n,r)}}let L2=(()=>{class t extends Wl{constructor(n,r,i){super(n.body,r,i)}ngOnDestroy(){this.flush()}}return t.\u0275fac=function(n){return new(n||t)(S(Ae),S(gh),S(Ih))},t.\u0275prov=j({token:t,factory:t.\u0275fac}),t})();const bw=new Z("AnimationModuleType"),Sw=[{provide:TC,useClass:R2},{provide:Ih,useFactory:function(){return new qV}},{provide:Wl,useClass:L2},{provide:Rr,useFactory:function(t,e,n){return new x2(t,e,n)},deps:[hl,Wl,_e]}],Tw=[{provide:gh,useFactory:function(){return"function"==typeof Dw()?new A2:new yw}},{provide:bw,useValue:"BrowserAnimations"},...Sw],U2=[{provide:gh,useClass:VC},{provide:bw,useValue:"NoopAnimations"},...Sw];let $2=(()=>{class t{static withConfig(n){return{ngModule:t,providers:n.disableAnimations?U2:Tw}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=pr({type:t}),t.\u0275inj=Tn({providers:Tw,imports:[Dv]}),t})();const H2=[];let q2=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=pr({type:t,bootstrap:[mV]}),t.\u0275inj=Tn({providers:[],imports:[[Dv,$2,oV.forRoot(H2)]]}),t})();(function(){if($E)throw new Error("Cannot enable prod mode after platform setup.");UE=!1})(),LO().bootstrapModule(q2).catch(t=>console.error(t))}},K=>{K(K.s=476)}]);