"use strict";(self.webpackChunkfamilySite1=self.webpackChunkfamilySite1||[]).push([[179],{147:()=>{function de(e){return"function"==typeof e}function ei(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const Ts=ei(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function ti(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class Lt{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const i of t)i.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(de(r))try{r()}catch(i){n=i instanceof Ts?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Ah(i)}catch(s){n=n??[],s instanceof Ts?n=[...n,...s.errors]:n.push(s)}}if(n)throw new Ts(n)}}add(n){var t;if(n&&n!==this)if(this.closed)Ah(n);else{if(n instanceof Lt){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&ti(t,n)}remove(n){const{_finalizers:t}=this;t&&ti(t,n),n instanceof Lt&&n._removeParent(this)}}Lt.EMPTY=(()=>{const e=new Lt;return e.closed=!0,e})();const Ih=Lt.EMPTY;function Th(e){return e instanceof Lt||e&&"closed"in e&&de(e.remove)&&de(e.add)&&de(e.unsubscribe)}function Ah(e){de(e)?e():e.unsubscribe()}const wr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},As={setTimeout(e,n,...t){const{delegate:r}=As;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=As;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Nh(e){As.setTimeout(()=>{const{onUnhandledError:n}=wr;if(!n)throw e;n(e)})}function Rh(){}const Qw=Ql("C",void 0,void 0);function Ql(e,n,t){return{kind:e,value:n,error:t}}let Mr=null;function Ns(e){if(wr.useDeprecatedSynchronousErrorHandling){const n=!Mr;if(n&&(Mr={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=Mr;if(Mr=null,t)throw r}}else e()}class Kl extends Lt{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,Th(n)&&n.add(this)):this.destination=o1}static create(n,t,r){return new ni(n,t,r)}next(n){this.isStopped?eu(function Jw(e){return Ql("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?eu(function Kw(e){return Ql("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?eu(Qw,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const t1=Function.prototype.bind;function Jl(e,n){return t1.call(e,n)}class n1{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){Rs(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){Rs(r)}else Rs(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){Rs(t)}}}class ni extends Kl{constructor(n,t,r){let o;if(super(),de(n)||!n)o={next:n??void 0,error:t??void 0,complete:r??void 0};else{let i;this&&wr.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&Jl(n.next,i),error:n.error&&Jl(n.error,i),complete:n.complete&&Jl(n.complete,i)}):o=n}this.destination=new n1(o)}}function Rs(e){wr.useDeprecatedSynchronousErrorHandling?function e1(e){wr.useDeprecatedSynchronousErrorHandling&&Mr&&(Mr.errorThrown=!0,Mr.error=e)}(e):Nh(e)}function eu(e,n){const{onStoppedNotification:t}=wr;t&&As.setTimeout(()=>t(e,n))}const o1={closed:!0,next:Rh,error:function r1(e){throw e},complete:Rh},tu="function"==typeof Symbol&&Symbol.observable||"@@observable";function Er(e){return e}function kh(e){return 0===e.length?Er:1===e.length?e[0]:function(t){return e.reduce((r,o)=>o(r),t)}}let Se=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,o){const i=function a1(e){return e&&e instanceof Kl||function s1(e){return e&&de(e.next)&&de(e.error)&&de(e.complete)}(e)&&Th(e)}(t)?t:new ni(t,r,o);return Ns(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=Oh(r))((o,i)=>{const s=new ni({next:a=>{try{t(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[tu](){return this}pipe(...t){return kh(t)(this)}toPromise(t){return new(t=Oh(t))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=n=>new e(n),e})();function Oh(e){var n;return null!==(n=e??wr.Promise)&&void 0!==n?n:Promise}const l1=ei(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Hn=(()=>{class e extends Se{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new Ph(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new l1}next(t){Ns(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){Ns(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){Ns(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Ih:(this.currentObservers=null,i.push(t),new Lt(()=>{this.currentObservers=null,ti(i,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:o,isStopped:i}=this;r?t.error(o):i&&t.complete()}asObservable(){const t=new Se;return t.source=this,t}}return e.create=(n,t)=>new Ph(n,t),e})();class Ph extends Hn{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:Ih}}function xh(e){return de(e?.lift)}function Xe(e){return n=>{if(xh(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function We(e,n,t,r,o){return new u1(e,n,t,r,o)}class u1 extends Kl{constructor(n,t,r,o,i,s){super(n),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(l){n.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){n.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function oe(e,n){return Xe((t,r)=>{let o=0;t.subscribe(We(r,i=>{r.next(e.call(n,i,o++))}))})}function br(e){return this instanceof br?(this.v=e,this):new br(e)}function h1(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function Vh(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(s){return new Promise(function(a,l){!function o(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}(a,l,(s=e[i](s)).done,s.value)})}}}const $h=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Hh(e){return de(e?.then)}function jh(e){return de(e[tu])}function Uh(e){return Symbol.asyncIterator&&de(e?.[Symbol.asyncIterator])}function Bh(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const zh=function g1(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Gh(e){return de(e?.[zh])}function Wh(e){return function f1(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=t.apply(e,n||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(y,C){i.push([f,h,y,C])>1||a(f,h)})})}function a(f,h){try{!function l(f){f.value instanceof br?Promise.resolve(f.value.v).then(u,c):d(i[0][2],f)}(r[f](h))}catch(y){d(i[0][3],y)}}function u(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:o}=yield br(t.read());if(o)return yield br(void 0);yield yield br(r)}}finally{t.releaseLock()}})}function qh(e){return de(e?.getReader)}function Vt(e){if(e instanceof Se)return e;if(null!=e){if(jh(e))return function m1(e){return new Se(n=>{const t=e[tu]();if(de(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if($h(e))return function y1(e){return new Se(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,Nh)})}(e);if(Uh(e))return Zh(e);if(Gh(e))return function _1(e){return new Se(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(qh(e))return function C1(e){return Zh(Wh(e))}(e)}throw Bh(e)}function Zh(e){return new Se(n=>{(function D1(e,n){var t,r,o,i;return function c1(e,n,t,r){return new(t||(t=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):function o(i){return i instanceof t?i:new t(function(s){s(i)})}(c.value).then(a,l)}u((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=h1(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=t.return)&&(yield i.call(t))}finally{if(o)throw o.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function jn(e,n,t,r=0,o=!1){const i=n.schedule(function(){t(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Qe(e,n,t=1/0){return de(n)?Qe((r,o)=>oe((i,s)=>n(r,i,o,s))(Vt(e(r,o))),t):("number"==typeof n&&(t=n),Xe((r,o)=>function w1(e,n,t,r,o,i,s,a){const l=[];let u=0,c=0,d=!1;const f=()=>{d&&!l.length&&!u&&n.complete()},h=C=>u{i&&n.next(C),u++;let w=!1;Vt(t(C,c++)).subscribe(We(n,S=>{o?.(S),i?h(S):n.next(S)},()=>{w=!0},void 0,()=>{if(w)try{for(u--;l.length&&uy(S)):y(S)}f()}catch(S){n.error(S)}}))};return e.subscribe(We(n,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,t)))}function qr(e=1/0){return Qe(Er,e)}const hn=new Se(e=>e.complete());function ru(e){return e[e.length-1]}function Yh(e){return de(ru(e))?e.pop():void 0}function ri(e){return function E1(e){return e&&de(e.schedule)}(ru(e))?e.pop():void 0}function Xh(e,n=0){return Xe((t,r)=>{t.subscribe(We(r,o=>jn(r,e,()=>r.next(o),n),()=>jn(r,e,()=>r.complete(),n),o=>jn(r,e,()=>r.error(o),n)))})}function Qh(e,n=0){return Xe((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function Kh(e,n){if(!e)throw new Error("Iterable cannot be null");return new Se(t=>{jn(t,n,()=>{const r=e[Symbol.asyncIterator]();jn(t,n,()=>{r.next().then(o=>{o.done?t.complete():t.next(o.value)})},0,!0)})})}function He(e,n){return n?function R1(e,n){if(null!=e){if(jh(e))return function S1(e,n){return Vt(e).pipe(Qh(n),Xh(n))}(e,n);if($h(e))return function T1(e,n){return new Se(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(Hh(e))return function I1(e,n){return Vt(e).pipe(Qh(n),Xh(n))}(e,n);if(Uh(e))return Kh(e,n);if(Gh(e))return function A1(e,n){return new Se(t=>{let r;return jn(t,n,()=>{r=e[zh](),jn(t,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void t.error(s)}i?t.complete():t.next(o)},0,!0)}),()=>de(r?.return)&&r.return()})}(e,n);if(qh(e))return function N1(e,n){return Kh(Wh(e),n)}(e,n)}throw Bh(e)}(e,n):Vt(e)}function ou(e,n,...t){if(!0===n)return void e();if(!1===n)return;const r=new ni({next:()=>{r.unsubscribe(),e()}});return Vt(n(...t)).subscribe(r)}function le(e){for(let n in e)if(e[n]===le)return n;throw Error("Could not find renamed property on target object.")}function iu(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function je(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(je).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function su(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const P1=le({__forward_ref__:le});function fe(e){return e.__forward_ref__=fe,e.toString=function(){return je(this())},e}function B(e){return au(e)?e():e}function au(e){return"function"==typeof e&&e.hasOwnProperty(P1)&&e.__forward_ref__===fe}function lu(e){return e&&!!e.\u0275providers}const Jh="https://g.co/ng/security#xss";class E extends Error{constructor(n,t){super(function uu(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function G(e){return"string"==typeof e?e:null==e?"":String(e)}function ks(e,n){throw new E(-201,!1)}function $t(e,n){null==e&&function ae(e,n,t,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${t} ${r} ${n} <=Actual]`))}(n,e,null,"!=")}function P(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Ht(e){return{providers:e.providers||[],imports:e.imports||[]}}function Os(e){return ep(e,Ps)||ep(e,np)}function ep(e,n){return e.hasOwnProperty(n)?e[n]:null}function tp(e){return e&&(e.hasOwnProperty(cu)||e.hasOwnProperty(U1))?e[cu]:null}const Ps=le({\u0275prov:le}),cu=le({\u0275inj:le}),np=le({ngInjectableDef:le}),U1=le({ngInjectorDef:le});var V=(()=>((V=V||{})[V.Default=0]="Default",V[V.Host=1]="Host",V[V.Self=2]="Self",V[V.SkipSelf=4]="SkipSelf",V[V.Optional=8]="Optional",V))();let du;function mt(e){const n=du;return du=e,n}function op(e,n,t){const r=Os(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&V.Optional?null:void 0!==n?n:void ks(je(e))}const he=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),oi={},fu="__NG_DI_FLAG__",xs="ngTempTokenPath",z1=/\n/gm,ip="__source";let Zr;function sr(e){const n=Zr;return Zr=e,n}function q1(e,n=V.Default){if(void 0===Zr)throw new E(-203,!1);return null===Zr?op(e,void 0,n):Zr.get(e,n&V.Optional?null:void 0,n)}function A(e,n=V.Default){return(function rp(){return du}()||q1)(B(e),n)}function N(e,n=V.Default){return A(e,Fs(n))}function Fs(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function hu(e){const n=[];for(let t=0;t((pn=pn||{})[pn.OnPush=0]="OnPush",pn[pn.Default=1]="Default",pn))(),At=(()=>{return(e=At||(At={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",At;var e})();const Bn={},re=[],Ls=le({\u0275cmp:le}),pu=le({\u0275dir:le}),gu=le({\u0275pipe:le}),ap=le({\u0275mod:le}),zn=le({\u0275fac:le}),si=le({__NG_ELEMENT_ID__:le}),lp=le({__NG_ENV_ID__:le});function up(e,n,t){let r=e.length;for(;;){const o=e.indexOf(n,t);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=n.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}t=o+1}}function mu(e,n,t){let r=0;for(;rn){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==up(h,u,0)||2&r&&u!==f){if(Zt(r))return!1;s=!0}}}}else{if(!s&&!Zt(r)&&!Zt(l))return!1;if(s&&Zt(l))continue;s=!1,r=l|1&r}}return Zt(r)||s}function Zt(e){return 0==(1&e)}function eM(e,n,t,r){if(null===n)return-1;let o=0;if(r||!t){let i=!1;for(;o-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Zt(s)&&(n+=mp(i,o),o=""),r=s,i=i||!Zt(r);t++}return""!==o&&(n+=mp(i,o)),n}function Ke(e){return Un(()=>{const n=vp(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===pn.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||At.Emulated,styles:e.styles||re,_:null,schemas:e.schemas||null,tView:null,id:""};_p(t);const r=e.dependencies;return t.directiveDefs=Vs(r,!1),t.pipeDefs=Vs(r,!0),t.id=function hM(e){let n=0;const t=JSON.stringify([e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.exportAs,e.inputs,e.outputs,Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery]);for(const o of t)n=Math.imul(31,n)+o.charCodeAt(0)<<0;return n+=2147483648,"c"+n}(t),t})}function uM(e){return ie(e)||rt(e)}function cM(e){return null!==e}function Yt(e){return Un(()=>({type:e.type,bootstrap:e.bootstrap||re,declarations:e.declarations||re,imports:e.imports||re,exports:e.exports||re,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function yp(e,n){if(null==e)return Bn;const t={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),t[o]=r,n&&(n[o]=i)}return t}function j(e){return Un(()=>{const n=vp(e);return _p(n),n})}function nt(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function ie(e){return e[Ls]||null}function rt(e){return e[pu]||null}function yt(e){return e[gu]||null}function Nt(e,n){const t=e[ap]||null;if(!t&&!0===n)throw new Error(`Type ${je(e)} does not have '\u0275mod' property.`);return t}function vp(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||re,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:yp(e.inputs,n),outputs:yp(e.outputs)}}function _p(e){e.features?.forEach(n=>n(e))}function Vs(e,n){if(!e)return null;const t=n?yt:uM;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(cM)}const Ue=0,R=1,Z=2,_e=3,Xt=4,Sr=5,ot=6,Xr=7,Me=8,Qr=9,Ir=10,W=11,li=12,Cp=13,Kr=14,ke=15,ui=16,Jr=17,gn=18,ci=19,Dp=20,ar=21,Gn=22,$s=23,Hs=24,te=25,yu=1,wp=2,mn=7,js=8,eo=9,Je=11;function Rt(e){return Array.isArray(e)&&"object"==typeof e[yu]}function vt(e){return Array.isArray(e)&&!0===e[yu]}function vu(e){return 0!=(4&e.flags)}function Tr(e){return e.componentOffset>-1}function Us(e){return 1==(1&e.flags)}function Qt(e){return!!e.template}function _u(e){return 0!=(512&e[Z])}function Ar(e,n){return e.hasOwnProperty(zn)?e[zn]:null}let vM=he.WeakRef??class yM{constructor(n){this.ref=n}deref(){return this.ref}},CM=0,yn=null,Bs=!1;function qe(e){const n=yn;return yn=e,n}class Ip{constructor(){this.id=CM++,this.ref=function _M(e){return new vM(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[n,t]of this.producers){const r=t.producerNode.deref();if(void 0!==r&&t.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(t.seenValueVersion))return!0}else this.producers.delete(n),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const n=Bs;Bs=!0;try{for(const[t,r]of this.consumers){const o=r.consumerNode.deref();void 0!==o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(t),o?.producers.delete(this.id))}}finally{Bs=n}}producerAccessed(){if(Bs)throw new Error("");if(null===yn)return;let n=yn.producers.get(this.id);void 0===n?(n={consumerNode:yn.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:yn.trackingVersion},yn.producers.set(this.id,n),this.consumers.set(yn.id,n)):(n.seenValueVersion=this.valueVersion,n.atTrackingVersion=yn.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==yn?.consumerAllowSignalWrites}producerPollStatus(n){return this.valueVersion!==n||(this.onProducerUpdateValueVersion(),this.valueVersion!==n)}}let Tp=null;const Ap=()=>{};class EM extends Ip{constructor(n,t,r){super(),this.watch=n,this.schedule=t,this.dirty=!1,this.cleanupFn=Ap,this.registerOnCleanup=o=>{this.cleanupFn=o},this.consumerAllowSignalWrites=r}notify(){this.dirty||this.schedule(this),this.dirty=!0}onConsumerDependencyMayHaveChanged(){this.notify()}onProducerUpdateValueVersion(){}run(){if(this.dirty=!1,0!==this.trackingVersion&&!this.consumerPollProducersForChange())return;const n=qe(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=Ap,this.watch(this.registerOnCleanup)}finally{qe(n)}}cleanup(){this.cleanupFn()}}class bM{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function jt(){return Np}function Np(e){return e.type.prototype.ngOnChanges&&(e.setInput=IM),SM}function SM(){const e=kp(this),n=e?.current;if(n){const t=e.previous;if(t===Bn)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function IM(e,n,t,r){const o=this.declaredInputs[t],i=kp(e)||function TM(e,n){return e[Rp]=n}(e,{previous:Bn,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new bM(l&&l.currentValue,n,a===Bn),e[r]=n}jt.ngInherit=!0;const Rp="__ngSimpleChanges__";function kp(e){return e[Rp]||null}const vn=function(e,n,t){};function me(e){for(;Array.isArray(e);)e=e[Ue];return e}function Ws(e,n){return me(n[e])}function _t(e,n){return me(n[e.index])}function xp(e,n){return e.data[n]}function to(e,n){return e[n]}function Ct(e,n){const t=n[e];return Rt(t)?t:t[Ue]}function qs(e){return 128==(128&e[Z])}function lr(e,n){return null==n?null:e[n]}function Fp(e){e[Jr]=0}function PM(e){1024&e[Z]||(e[Z]|=1024,Vp(e,1))}function Lp(e){1024&e[Z]&&(e[Z]&=-1025,Vp(e,-1))}function Vp(e,n){let t=e[_e];if(null===t)return;t[Sr]+=n;let r=t;for(t=t[_e];null!==t&&(1===n&&1===r[Sr]||-1===n&&0===r[Sr]);)t[Sr]+=n,r=t,t=t[_e]}const H={lFrame:Yp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function jp(){return H.bindingsEnabled}function M(){return H.lFrame.lView}function ne(){return H.lFrame.tView}function Ie(e){return H.lFrame.contextLView=e,e[Me]}function Te(e){return H.lFrame.contextLView=null,e}function et(){let e=Up();for(;null!==e&&64===e.type;)e=e.parent;return e}function Up(){return H.lFrame.currentTNode}function _n(e,n){const t=H.lFrame;t.currentTNode=e,t.isParent=n}function bu(){return H.lFrame.isParent}function ct(){const e=H.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function ro(){return H.lFrame.bindingIndex++}function qn(e){const n=H.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function WM(e,n){const t=H.lFrame;t.bindingIndex=t.bindingRootIndex=e,Iu(n)}function Iu(e){H.lFrame.currentDirectiveIndex=e}function Wp(){return H.lFrame.currentQueryIndex}function Au(e){H.lFrame.currentQueryIndex=e}function ZM(e){const n=e[R];return 2===n.type?n.declTNode:1===n.type?e[ot]:null}function qp(e,n,t){if(t&V.SkipSelf){let o=n,i=e;for(;!(o=o.parent,null!==o||t&V.Host||(o=ZM(i),null===o||(i=i[Kr],10&o.type))););if(null===o)return!1;n=o,e=i}const r=H.lFrame=Zp();return r.currentTNode=n,r.lView=e,!0}function Nu(e){const n=Zp(),t=e[R];H.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function Zp(){const e=H.lFrame,n=null===e?null:e.child;return null===n?Yp(e):n}function Yp(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function Xp(){const e=H.lFrame;return H.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Qp=Xp;function Ru(){const e=Xp();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function dt(){return H.lFrame.selectedIndex}function Nr(e){H.lFrame.selectedIndex=e}function Ce(){const e=H.lFrame;return xp(e.tView,e.selectedIndex)}let Jp=!0;function Zs(){return Jp}function ur(e){Jp=e}function Ys(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[l]<0&&(e[Jr]+=65536),(a>12>16&&(3&e[Z])===n&&(e[Z]+=4096,tg(a,i)):tg(a,i)}const oo=-1;class hi{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function ng(e){return e!==oo}function Ks(e){return 32767&e}function Js(e,n){let t=function sE(e){return e>>16}(e),r=n;for(;t>0;)r=r[Kr],t--;return r}let Pu=!0;function ea(e){const n=Pu;return Pu=e,n}const rg=255,og=5;let aE=0;const Cn={};function ta(e,n){const t=ig(e,n);if(-1!==t)return t;const r=n[R];r.firstCreatePass&&(e.injectorIndex=n.length,xu(r.data,e),xu(n,null),xu(r.blueprint,null));const o=Fu(e,n),i=e.injectorIndex;if(ng(o)){const s=Ks(o),a=Js(o,n),l=a[R].data;for(let u=0;u<8;u++)n[i+u]=a[s+u]|l[s+u]}return n[i+8]=o,i}function xu(e,n){e.push(0,0,0,0,0,0,0,0,n)}function ig(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Fu(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,o=n;for(;null!==o;){if(r=fg(o),null===r)return oo;if(t++,o=o[Kr],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return oo}function Lu(e,n,t){!function lE(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(si)&&(r=t[si]),null==r&&(r=t[si]=aE++);const o=r&rg;n.data[e+(o>>og)]|=1<=0?n&rg:fE:n}(t);if("function"==typeof i){if(!qp(n,e,r))return r&V.Host?sg(o,0,r):ag(n,t,r,o);try{const s=i(r);if(null!=s||r&V.Optional)return s;ks()}finally{Qp()}}else if("number"==typeof i){let s=null,a=ig(e,n),l=oo,u=r&V.Host?n[ke][ot]:null;for((-1===a||r&V.SkipSelf)&&(l=-1===a?Fu(e,n):n[a+8],l!==oo&&dg(r,!1)?(s=n[R],a=Ks(l),n=Js(l,n)):a=-1);-1!==a;){const c=n[R];if(cg(i,a,c.data)){const d=cE(a,n,t,s,r,u);if(d!==Cn)return d}l=n[a+8],l!==oo&&dg(r,n[R].data[a+8]===u)&&cg(i,a,n)?(s=c,a=Ks(l),n=Js(l,n)):a=-1}}return o}function cE(e,n,t,r,o,i){const s=n[R],a=s.data[e+8],c=na(a,s,t,null==r?Tr(a)&&Pu:r!=s&&0!=(3&a.type),o&V.Host&&i===a);return null!==c?Rr(n,s,c,a):Cn}function na(e,n,t,r,o){const i=e.providerIndexes,s=n.data,a=1048575&i,l=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h=l&&y.type===t)return h}if(o){const h=s[l];if(h&&Qt(h)&&h.type===t)return l}return null}function Rr(e,n,t,r){let o=e[t];const i=n.data;if(function rE(e){return e instanceof hi}(o)){const s=o;s.resolving&&function x1(e,n){const t=n?`. Dependency path: ${n.join(" > ")} > ${e}`:"";throw new E(-200,`Circular dependency in DI detected for ${e}${t}`)}(function se(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():G(e)}(i[t]));const a=ea(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?mt(s.injectImpl):null;qp(e,r,V.Default);try{o=e[t]=s.factory(void 0,i,e,r),n.firstCreatePass&&t>=r.directiveStart&&function tE(e,n,t){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=n.type.prototype;if(r){const s=Np(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}o&&(t.preOrderHooks??=[]).push(0-e,o),i&&((t.preOrderHooks??=[]).push(e,i),(t.preOrderCheckHooks??=[]).push(e,i))}(t,i[t],n)}finally{null!==l&&mt(l),ea(a),s.resolving=!1,Qp()}}return o}function cg(e,n,t){return!!(t[n+(e>>og)]&1<{const n=e.prototype.constructor,t=n[zn]||Vu(n),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[zn]||Vu(o);if(i&&i!==t)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Vu(e){return au(e)?()=>{const n=Vu(B(e));return n&&n()}:Ar(e)}function fg(e){const n=e[R],t=n.type;return 2===t?n.declTNode:1===t?e[ot]:null}const ao="__parameters__";function uo(e,n,t){return Un(()=>{const r=function $u(e){return function(...t){if(e){const r=e(...t);for(const o in r)this[o]=r[o]}}}(n);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(ao)?l[ao]:Object.defineProperty(l,ao,{value:[]})[ao];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return t&&(o.prototype=Object.create(t.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function mi(e,n){e.forEach(t=>Array.isArray(t)?mi(t,n):n(t))}function pg(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function oa(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function kt(e,n,t){let r=co(e,n);return r>=0?e[1|r]=t:(r=~r,function vE(e,n,t,r){let o=e.length;if(o==n)e.push(t,r);else if(1===o)e.push(r,e[0]),e[0]=t;else{for(o--,e.push(e[o-1],e[o]);o>n;)e[o]=e[o-2],o--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function Hu(e,n){const t=co(e,n);if(t>=0)return e[1|t]}function co(e,n){return function gg(e,n,t){let r=0,o=e.length>>t;for(;o!==r;){const i=r+(o-r>>1),s=e[i<n?o=i:r=i+1}return~(o<((Dt=Dt||{})[Dt.Important=1]="Important",Dt[Dt.DashCase=2]="DashCase",Dt))();const qu=new Map;let UE=0;const Yu="__ngContext__";function it(e,n){Rt(n)?(e[Yu]=n[ci],function zE(e){qu.set(e[ci],e)}(n)):e[Yu]=n}let Xu;function Qu(e,n){return Xu(e,n)}function Ci(e){const n=e[_e];return vt(n)?n[_e]:n}function Ku(e){return Pg(e[li])}function Ju(e){return Pg(e[Xt])}function Pg(e){for(;null!==e&&!vt(e);)e=e[Xt];return e}function po(e,n,t,r,o){if(null!=r){let i,s=!1;vt(r)?i=r:Rt(r)&&(s=!0,r=r[Ue]);const a=me(r);0===e&&null!==t?null==o?$g(n,t,a):kr(n,t,a,o||null,!0):1===e&&null!==t?kr(n,t,a,o||null,!0):2===e?function ma(e,n,t){const r=pa(e,n);r&&function ub(e,n,t,r){e.removeChild(n,t,r)}(e,r,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=i&&function fb(e,n,t,r,o){const i=t[mn];i!==me(t)&&po(n,e,r,i,o);for(let a=Je;a0&&(e[t-1][Xt]=r[Xt]);const i=oa(e,Je+n);!function tb(e,n){wi(e,n,n[W],2,null,null),n[Ue]=null,n[ot]=null}(r[R],r);const s=i[gn];null!==s&&s.detachView(i[R]),r[_e]=null,r[Xt]=null,r[Z]&=-129}return r}function Lg(e,n){if(!(256&n[Z])){const t=n[W];n[$s]?.destroy(),n[Hs]?.destroy(),t.destroyNode&&wi(e,n,t,3,null,null),function ob(e){let n=e[li];if(!n)return nc(e[R],e);for(;n;){let t=null;if(Rt(n))t=n[li];else{const r=n[Je];r&&(t=r)}if(!t){for(;n&&!n[Xt]&&n!==e;)Rt(n)&&nc(n[R],n),n=n[_e];null===n&&(n=e),Rt(n)&&nc(n[R],n),t=n&&n[Xt]}n=t}}(n)}}function nc(e,n){if(!(256&n[Z])){n[Z]&=-129,n[Z]|=256,function lb(e,n){let t;if(null!=e&&null!=(t=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else t[i].call(r[t[i+1]]);null!==r&&(n[Xr]=null);const o=n[ar];if(null!==o){for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===At.None||i===At.Emulated)return null}return _t(r,t)}}(e,n.parent,t)}function kr(e,n,t,r,o){e.insertBefore(n,t,r,o)}function $g(e,n,t){e.appendChild(n,t)}function Hg(e,n,t,r,o){null!==r?kr(e,n,t,r,o):$g(e,n,t)}function pa(e,n){return e.parentNode(n)}let oc,ya,lc,va,Bg=function Ug(e,n,t){return 40&e.type?_t(e,t):null};function ga(e,n,t,r){const o=rc(e,r,n),i=n[W],a=function jg(e,n,t){return Bg(e,n,t)}(r.parent||n[ot],r,n);if(null!=o)if(Array.isArray(t))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return ya}()?.createHTML(e)||e}function Mi(){if(void 0!==lc)return lc;if(typeof document<"u")return document;throw new E(210,!1)}function uc(){if(void 0===va&&(va=null,he.trustedTypes))try{va=he.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return va}function Xg(e){return uc()?.createHTML(e)||e}function Kg(e){return uc()?.createScriptURL(e)||e}class Jg{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Jh})`}}function cr(e){return e instanceof Jg?e.changingThisBreaksApplicationSecurity:e}function Ei(e,n){const t=function Eb(e){return e instanceof Jg&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${Jh})`)}return t===n}class bb{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const t=(new window.DOMParser).parseFromString(go(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.removeChild(t.firstChild),t)}catch{return null}}}class Sb{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=go(n),t}}const Tb=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function cc(e){return(e=String(e)).match(Tb)?e:"unsafe:"+e}function Zn(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function bi(...e){const n={};for(const t of e)for(const r in t)t.hasOwnProperty(r)&&(n[r]=!0);return n}const tm=Zn("area,br,col,hr,img,wbr"),nm=Zn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),rm=Zn("rp,rt"),dc=bi(tm,bi(nm,Zn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),bi(rm,Zn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),bi(rm,nm)),fc=Zn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),om=bi(fc,Zn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Zn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),Ab=Zn("script,style,template");class Nb{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,r=!0;for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let o=this.checkClobberedElement(t,t.nextSibling);if(o){t=o;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")}startElement(n){const t=n.nodeName.toLowerCase();if(!dc.hasOwnProperty(t))return this.sanitizedSomething=!0,!Ab.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=n.attributes;for(let o=0;o"),!0}endElement(n){const t=n.nodeName.toLowerCase();dc.hasOwnProperty(t)&&!tm.hasOwnProperty(t)&&(this.buf.push(""))}chars(n){this.buf.push(im(n))}checkClobberedElement(n,t){if(t&&(n.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error(`Failed to sanitize html because the element is clobbered: ${n.outerHTML}`);return t}}const Rb=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,kb=/([^\#-~ |!])/g;function im(e){return e.replace(/&/g,"&").replace(Rb,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(kb,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let _a;function hc(e){return"content"in e&&function Pb(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Oe=(()=>((Oe=Oe||{})[Oe.NONE=0]="NONE",Oe[Oe.HTML=1]="HTML",Oe[Oe.STYLE=2]="STYLE",Oe[Oe.SCRIPT=3]="SCRIPT",Oe[Oe.URL=4]="URL",Oe[Oe.RESOURCE_URL=5]="RESOURCE_URL",Oe))();function sm(e){const n=Si();return n?Xg(n.sanitize(Oe.HTML,e)||""):Ei(e,"HTML")?Xg(cr(e)):function Ob(e,n){let t=null;try{_a=_a||function em(e){const n=new Sb(e);return function Ib(){try{return!!(new window.DOMParser).parseFromString(go(""),"text/html")}catch{return!1}}()?new bb(n):n}(e);let r=n?String(n):"";t=_a.getInertBodyElement(r);let o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=t.innerHTML,t=_a.getInertBodyElement(r)}while(r!==i);return go((new Nb).sanitizeChildren(hc(t)||t))}finally{if(t){const r=hc(t)||t;for(;r.firstChild;)r.removeChild(r.firstChild)}}}(Mi(),G(e))}function pc(e){const n=Si();return n?n.sanitize(Oe.URL,e)||"":Ei(e,"URL")?cr(e):cc(G(e))}function am(e){const n=Si();if(n)return Kg(n.sanitize(Oe.RESOURCE_URL,e)||"");if(Ei(e,"ResourceURL"))return Kg(cr(e));throw new E(904,!1)}function Si(){const e=M();return e&&e[Ir].sanitizer}class O{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=P({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Ii=new O("ENVIRONMENT_INITIALIZER"),um=new O("INJECTOR",-1),cm=new O("INJECTOR_DEF_TYPES");class dm{get(n,t=oi){if(t===oi){const r=new Error(`NullInjectorError: No provider for ${je(n)}!`);throw r.name="NullInjectorError",r}return t}}function Hb(...e){return{\u0275providers:fm(0,e),\u0275fromNgModule:!0}}function fm(e,...n){const t=[],r=new Set;let o;return mi(n,i=>{const s=i;mc(s,t,[],r)&&(o||=[],o.push(s))}),void 0!==o&&hm(o,t),t}function hm(e,n){for(let t=0;t{n.push(i)})}}function mc(e,n,t,r){if(!(e=B(e)))return!1;let o=null,i=tp(e);const s=!i&&ie(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(i=tp(l),!i)return!1;o=l}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const l="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of l)mc(u,n,t,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o);try{mi(i.imports,c=>{mc(c,n,t,r)&&(u||=[],u.push(c))})}finally{}void 0!==u&&hm(u,n)}if(!a){const u=Ar(o)||(()=>new o);n.push({provide:o,useFactory:u,deps:re},{provide:cm,useValue:o,multi:!0},{provide:Ii,useValue:()=>A(o),multi:!0})}const l=i.providers;null==l||a||yc(l,c=>{n.push(c)})}}return o!==e&&void 0!==e.providers}function yc(e,n){for(let t of e)lu(t)&&(t=t.\u0275providers),Array.isArray(t)?yc(t,n):n(t)}const jb=le({provide:String,useValue:le});function vc(e){return null!==e&&"object"==typeof e&&jb in e}function Or(e){return"function"==typeof e}const _c=new O("Set Injector scope."),Ca={},Bb={};let Cc;function Da(){return void 0===Cc&&(Cc=new dm),Cc}class Dn{}class Dc extends Dn{get destroyed(){return this._destroyed}constructor(n,t,r,o){super(),this.parent=t,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,Mc(n,s=>this.processProvider(s)),this.records.set(um,mo(void 0,this)),o.has("environment")&&this.records.set(Dn,mo(void 0,this));const i=this.records.get(_c);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(cm.multi,re,V.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const n of this._ngOnDestroyHooks)n.ngOnDestroy();for(const n of this._onDestroyHooks)n()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=sr(this),r=mt(void 0);try{return n()}finally{sr(t),mt(r)}}get(n,t=oi,r=V.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(lp))return n[lp](this);r=Fs(r);const o=sr(this),i=mt(void 0);try{if(!(r&V.SkipSelf)){let a=this.records.get(n);if(void 0===a){const l=function Zb(e){return"function"==typeof e||"object"==typeof e&&e instanceof O}(n)&&Os(n);a=l&&this.injectableDefInScope(l)?mo(wc(n),Ca):null,this.records.set(n,a)}if(null!=a)return this.hydrate(n,a)}return(r&V.Self?Da():this.parent).get(n,t=r&V.Optional&&t===oi?null:t)}catch(s){if("NullInjectorError"===s.name){if((s[xs]=s[xs]||[]).unshift(je(n)),o)throw s;return function Y1(e,n,t,r){const o=e[xs];throw n[ip]&&o.unshift(n[ip]),e.message=function X1(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=je(n);if(Array.isArray(n))o=n.map(je).join(" -> ");else if("object"==typeof n){let i=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):je(a)))}o=`{${i.join(", ")}}`}return`${t}${r?"("+r+")":""}[${o}]: ${e.replace(z1,"\n ")}`}("\n"+e.message,o,t,r),e.ngTokenPath=o,e[xs]=null,e}(s,n,"R3InjectorError",this.source)}throw s}finally{mt(i),sr(o)}}resolveInjectorInitializers(){const n=sr(this),t=mt(void 0);try{const r=this.get(Ii.multi,re,V.Self);for(const o of r)o()}finally{sr(n),mt(t)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(je(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new E(205,!1)}processProvider(n){let t=Or(n=B(n))?n:B(n&&n.provide);const r=function Gb(e){return vc(e)?mo(void 0,e.useValue):mo(mm(e),Ca)}(n);if(Or(n)||!0!==n.multi)this.records.get(t);else{let o=this.records.get(t);o||(o=mo(void 0,Ca,!0),o.factory=()=>hu(o.multi),this.records.set(t,o)),t=n,o.multi.push(n)}this.records.set(t,r)}hydrate(n,t){return t.value===Ca&&(t.value=Bb,t.value=t.factory()),"object"==typeof t.value&&t.value&&function qb(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}injectableDefInScope(n){if(!n.providedIn)return!1;const t=B(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function wc(e){const n=Os(e),t=null!==n?n.factory:Ar(e);if(null!==t)return t;if(e instanceof O)throw new E(204,!1);if(e instanceof Function)return function zb(e){const n=e.length;if(n>0)throw function yi(e,n){const t=[];for(let r=0;rt.factory(e):()=>new e}(e);throw new E(204,!1)}function mm(e,n,t){let r;if(Or(e)){const o=B(e);return Ar(o)||wc(o)}if(vc(e))r=()=>B(e.useValue);else if(function gm(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...hu(e.deps||[]));else if(function pm(e){return!(!e||!e.useExisting)}(e))r=()=>A(B(e.useExisting));else{const o=B(e&&(e.useClass||e.provide));if(!function Wb(e){return!!e.deps}(e))return Ar(o)||wc(o);r=()=>new o(...hu(e.deps))}return r}function mo(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function Mc(e,n){for(const t of e)Array.isArray(t)?Mc(t,n):t&&lu(t)?Mc(t.\u0275providers,n):n(t)}const wa=new O("AppId",{providedIn:"root",factory:()=>Yb}),Yb="ng",ym=new O("Platform Initializer"),Pr=new O("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),vm=new O("CSP nonce",{providedIn:"root",factory:()=>Mi().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let Cm=(e,n)=>null;function Dm(e,n){return Cm(e,n)}class iS{}class Em{}class aS{resolveComponentFactory(n){throw function sS(e){const n=Error(`No component factory found for ${je(e)}.`);return n.ngComponent=e,n}(n)}}let Ia=(()=>{class e{}return e.NULL=new aS,e})();function lS(){return yo(et(),M())}function yo(e,n){return new Ot(_t(e,n))}let Ot=(()=>{class e{constructor(t){this.nativeElement=t}}return e.__NG_ELEMENT_ID__=lS,e})();function uS(e){return e instanceof Ot?e.nativeElement:e}class Sm{}let Yn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function cS(){const e=M(),t=Ct(et().index,e);return(Rt(t)?t:e)[W]}(),e})(),dS=(()=>{class e{}return e.\u0275prov=P({token:e,providedIn:"root",factory:()=>null}),e})();class Ri{constructor(n){this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}}const fS=new Ri("16.0.1"),Pc={};function ki(e){for(;e;){e[Z]|=64;const n=Ci(e);if(_u(e)&&!n)return e;e=n}return null}function xc(e){return e.ngOriginalError}class xr{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&xc(n);for(;t&&xc(t);)t=xc(t);return t||null}}const Am=new O("",{providedIn:"root",factory:()=>!1});function Xn(e){return e instanceof Function?e():e}class km extends Ip{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(n){this._lView=n}onConsumerDependencyMayHaveChanged(){ki(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(n,t,r){const o=qe(this);this.trackingVersion++;try{n(t,r)}finally{qe(o)}}destroy(){this.trackingVersion++}}let Aa=null;function Om(){return Aa??=new km,Aa}function Pm(e,n){return e[n]??Om()}function xm(e,n){const t=Om();t.hasReadASignal&&(e[n]=Aa,t.lView=e,Aa=new km)}const q={};function v(e){Fm(ne(),M(),dt()+e,!1)}function Fm(e,n,t,r){if(!r)if(3==(3&n[Z])){const i=e.preOrderCheckHooks;null!==i&&Xs(n,i,t)}else{const i=e.preOrderHooks;null!==i&&Qs(n,i,0,t)}Nr(t)}function Hm(e,n=null,t=null,r){const o=jm(e,n,t,r);return o.resolveInjectorInitializers(),o}function jm(e,n=null,t=null,r,o=new Set){const i=[t||re,Hb(e)];return r=r||("object"==typeof e?void 0:je(e)),new Dc(i,n||Da(),r||null,o)}let wn=(()=>{class e{static create(t,r){if(Array.isArray(t))return Hm({name:""},r,t,"");{const o=t.name??"";return Hm({name:o},t.parent,t.providers,o)}}}return e.THROW_IF_NOT_FOUND=oi,e.NULL=new dm,e.\u0275prov=P({token:e,providedIn:"any",factory:()=>A(um)}),e.__NG_ELEMENT_ID__=-1,e})();function D(e,n=V.Default){const t=M();return null===t?A(e,n):lg(et(),t,B(e),n)}function Na(e,n,t,r,o,i,s,a,l,u,c){const d=n.blueprint.slice();return d[Ue]=o,d[Z]=140|r,(null!==u||e&&2048&e[Z])&&(d[Z]|=2048),Fp(d),d[_e]=d[Kr]=e,d[Me]=t,d[Ir]=s||e&&e[Ir],d[W]=a||e&&e[W],d[Qr]=l||e&&e[Qr]||null,d[ot]=i,d[ci]=function BE(){return UE++}(),d[Gn]=c,d[Dp]=u,d[ke]=2==n.type?e[ke]:d,d}function _o(e,n,t,r,o){let i=e.data[n];if(null===i)i=function Fc(e,n,t,r,o){const i=Up(),s=bu(),l=e.data[n]=function OS(e,n,t,r,o,i){let s=n?n.injectorIndex:-1,a=0;return function no(){return null!==H.skipHydrationRootTNode}()&&(a|=128),{type:t,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,t,n,r,o);return null===e.firstChild&&(e.firstChild=l),null!==i&&(s?null==i.child&&null!==l.parent&&(i.child=l):null===i.next&&(i.next=l,l.prev=i)),l}(e,n,t,r,o),function GM(){return H.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=t,i.value=r,i.attrs=o;const s=function fi(){const e=H.lFrame,n=e.currentTNode;return e.isParent?n:n.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return _n(i,!0),i}function Oi(e,n,t,r){if(0===t)return-1;const o=n.length;for(let i=0;ite&&Fm(e,n,te,!1),vn(a?2:0,o),a)i.runInContext(t,r,o);else{const u=qe(null);try{t(r,o)}finally{qe(u)}}}finally{a&&null===n[$s]&&xm(n,$s),Nr(s),vn(a?3:1,o)}}function Lc(e,n,t){if(vu(n)){const r=qe(null);try{const i=n.directiveEnd;for(let s=n.directiveStart;snull;function Wm(e,n,t,r){for(let o in e)if(e.hasOwnProperty(o)){t=null===t?{}:t;const i=e[o];null===r?qm(t,n,o,i):r.hasOwnProperty(o)&&qm(t,n,r[o],i)}return t}function qm(e,n,t,r){e.hasOwnProperty(t)?e[t].push(n,r):e[t]=[n,r]}function Pt(e,n,t,r,o,i,s,a){const l=_t(n,t);let c,u=n.inputs;!a&&null!=u&&(c=u[r])?(Gc(e,t,c,r,o),Tr(n)&&function FS(e,n){const t=Ct(n,e);16&t[Z]||(t[Z]|=64)}(t,n.index)):3&n.type&&(r=function xS(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,n.value||"",r):o,i.setProperty(l,r,o))}function jc(e,n,t,r){if(jp()){const o=null===r?null:{"":-1},i=function US(e,n){const t=e.directiveRegistry;let r=null,o=null;if(t)for(let i=0;i0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,r,i)}}(e,n,r,Oi(e,t,o.hostVars,q),o)}function Mn(e,n,t,r,o,i){const s=_t(e,n);!function Bc(e,n,t,r,o,i,s){if(null==i)e.removeAttribute(n,o,t);else{const a=null==s?G(i):s(i,r||"",o);e.setAttribute(n,o,a,t)}}(n[W],s,i,e.value,t,r,o)}function ZS(e,n,t,r,o,i){const s=i[n];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(t,r,o){const i=typeof Zone>"u"?null:Zone.current,s=new EM(t,u=>{this.all.has(u)&&this.queue.set(u,i)},o);let a;this.all.add(s),s.notify();const l=()=>{s.cleanup(),a?.(),this.all.delete(s),this.queue.delete(s)};return a=r?.onDestroy(l),{destroy:l}}flush(){if(0!==this.queue.size)for(const[t,r]of this.queue)this.queue.delete(t),r?r.run(()=>t.run()):t.run()}get isQueueEmpty(){return 0===this.queue.size}}return e.\u0275prov=P({token:e,providedIn:"root",factory:()=>new e}),e})();function ka(e,n,t){let r=t?e.styles:null,o=t?e.classes:null,i=0;if(null!==n)for(let s=0;s0&&qc(t)}}function qc(e){for(let r=Ku(e);null!==r;r=Ju(r))for(let o=Je;o0&&qc(i)}const t=e[R].components;if(null!==t)for(let r=0;r0&&qc(o)}}class xi{get rootNodes(){const n=this._lView,t=n[R];return Pi(t,n,t.firstChild,[])}constructor(n,t){this._lView=n,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[Me]}set context(n){this._lView[Me]=n}get destroyed(){return 256==(256&this._lView[Z])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const n=this._lView[_e];if(vt(n)){const t=n[js],r=t?t.indexOf(this):-1;r>-1&&(tc(n,r),oa(t,r))}this._attachedToViewContainer=!1}Lg(this._lView[R],this._lView)}onDestroy(n){!function $p(e,n){if(256==(256&e[Z]))throw new E(911,!1);null===e[ar]&&(e[ar]=[]),e[ar].push(n)}(this._lView,n)}markForCheck(){ki(this._cdRefInjectingView||this._lView)}detach(){this._lView[Z]&=-129}reattach(){this._lView[Z]|=128}detectChanges(){Oa(this._lView[R],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new E(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function rb(e,n){wi(e,n,n[W],2,null,null)}(this._lView[R],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new E(902,!1);this._appRef=n}}class aI extends xi{constructor(n){super(n),this._view=n}detectChanges(){const n=this._view;Oa(n[R],n,n[Me],!1)}checkNoChanges(){}get context(){return null}}class oy extends Ia{constructor(n){super(),this.ngModule=n}resolveComponentFactory(n){const t=ie(n);return new Fi(t,this.ngModule)}}function iy(e){const n=[];for(let t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}class uI{constructor(n,t){this.injector=n,this.parentInjector=t}get(n,t,r){r=Fs(r);const o=this.injector.get(n,Pc,r);return o!==Pc||t===Pc?o:this.parentInjector.get(n,t,r)}}class Fi extends Em{get inputs(){return iy(this.componentDef.inputs)}get outputs(){return iy(this.componentDef.outputs)}constructor(n,t){super(),this.componentDef=n,this.ngModule=t,this.componentType=n.type,this.selector=function sM(e){return e.map(iM).join(",")}(n.selectors),this.ngContentSelectors=n.ngContentSelectors?n.ngContentSelectors:[],this.isBoundToModule=!!t}create(n,t,r,o){let i=(o=o||this.ngModule)instanceof Dn?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new uI(n,i):n,a=s.get(Sm,null);if(null===a)throw new E(407,!1);const c={rendererFactory:a,sanitizer:s.get(dS,null),effectManager:s.get(ry,null)},d=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",h=r?function TS(e,n,t,r){const i=r.get(Am,!1)||t===At.ShadowDom,s=e.selectRootElement(n,i);return function AS(e){Gm(e)}(s),s}(d,r,this.componentDef.encapsulation,s):ha(d,f,function lI(e){const n=e.toLowerCase();return"svg"===n?"svg":"math"===n?"math":null}(f)),y=this.componentDef.onPush?576:528,C=Hc(0,null,null,1,0,null,null,null,null,null,null),w=Na(null,C,null,y,null,null,c,d,s,null,null);let S,_;Nu(w);try{const T=this.componentDef;let x,Q=null;T.findHostDirectiveDefs?(x=[],Q=new Map,T.findHostDirectiveDefs(T,x,Q),x.push(T)):x=[T];const ge=function dI(e,n){const t=e[R],r=te;return e[r]=n,_o(t,r,2,"#host",null)}(w,h),Jo=function fI(e,n,t,r,o,i,s){const a=o[R];!function hI(e,n,t,r){for(const o of e)n.mergedAttrs=ai(n.mergedAttrs,o.hostAttrs);null!==n.mergedAttrs&&(ka(n,n.mergedAttrs,!0),null!==t&&Yg(r,t,n))}(r,e,n,s);let l=null;null!==n&&(l=Dm(n,o[Qr]));const u=i.rendererFactory.createRenderer(n,t),c=Na(o,zm(t),null,t.onPush?64:16,o[e.index],e,i,u,null,null,l);return a.firstCreatePass&&Uc(a,e,r.length-1),Ra(o,c),o[e.index]=c}(ge,h,T,x,w,c,d);_=xp(C,te),h&&function gI(e,n,t,r){if(r)mu(e,t,["ng-version",fS.full]);else{const{attrs:o,classes:i}=function aM(e){const n=[],t=[];let r=1,o=2;for(;r0&&Zg(e,t,i.join(" "))}}(d,T,h,r),void 0!==t&&function mI(e,n,t){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=n+=o.hostVars,o.hostAttrs=ai(o.hostAttrs,t=ai(t,o.hostAttrs))}}(r)}function Zc(e){return e===Bn?{}:e===re?[]:e}function _I(e,n){const t=e.viewQuery;e.viewQuery=t?(r,o)=>{n(r,o),t(r,o)}:n}function CI(e,n){const t=e.contentQueries;e.contentQueries=t?(r,o,i)=>{n(r,o,i),t(r,o,i)}:n}function DI(e,n){const t=e.hostBindings;e.hostBindings=t?(r,o)=>{n(r,o),t(r,o)}:n}function xa(e){return!!Yc(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Yc(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function En(e,n,t){return e[n]=t}function st(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function Fr(e,n,t,r){const o=st(e,n,t);return st(e,n+1,r)||o}function bn(e,n,t,r){const o=M();return st(o,ro(),n)&&(ne(),Mn(Ce(),o,e,n,t,r)),bn}function Do(e,n,t,r){return st(e,ro(),t)?n+G(t)+r:q}function wo(e,n,t,r,o,i){const a=Fr(e,function Wn(){return H.lFrame.bindingIndex}(),t,o);return qn(2),a?n+G(t)+r+G(o)+i:q}function Ze(e,n,t,r,o,i,s,a){const l=M(),u=ne(),c=e+te,d=u.firstCreatePass?function WI(e,n,t,r,o,i,s,a,l){const u=n.consts,c=_o(n,e,4,s||null,lr(u,a));jc(n,t,c,lr(u,l)),Ys(n,c);const d=c.tView=Hc(2,c,r,o,i,n.directiveRegistry,n.pipeRegistry,null,n.schemas,u,null);return null!==n.queries&&(n.queries.template(n,c),d.queries=n.queries.embeddedTView(c)),c}(c,u,l,n,t,r,o,i,s):u.data[c];_n(d,!1);const f=wy(u,l,d,e);Zs()&&ga(u,l,f,d),it(f,l),Ra(l,l[c]=Qm(f,l,f,d)),Us(d)&&Vc(u,l,d),null!=s&&$c(l,d,a)}let wy=function My(e,n,t,r){return ur(!0),n[W].createComment("")};function b(e,n,t){const r=M();return st(r,ro(),n)&&Pt(ne(),Ce(),r,e,n,r[W],t,!1),b}function td(e,n,t,r,o){const s=o?"class":"style";Gc(e,t,n.inputs[s],s,r)}function g(e,n,t,r){const o=M(),i=ne(),s=te+e,a=o[W],l=i.firstCreatePass?function QI(e,n,t,r,o,i){const s=n.consts,l=_o(n,e,2,r,lr(s,o));return jc(n,t,l,lr(s,i)),null!==l.attrs&&ka(l,l.attrs,!1),null!==l.mergedAttrs&&ka(l,l.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,l),l}(s,i,o,n,t,r):i.data[s],u=Ey(i,o,l,a,n,e);o[s]=u;const c=Us(l);return _n(l,!0),Yg(a,u,l),32!=(32&l.flags)&&Zs()&&ga(i,o,u,l),0===function FM(){return H.lFrame.elementDepthCount}()&&it(u,o),function LM(){H.lFrame.elementDepthCount++}(),c&&(Vc(i,o,l),Lc(i,l,o)),null!==r&&$c(o,l),g}function p(){let e=et();bu()?function Su(){H.lFrame.isParent=!1}():(e=e.parent,_n(e,!1));const n=e;(function $M(e){return H.skipHydrationRootTNode===e})(n)&&function BM(){H.skipHydrationRootTNode=null}(),function VM(){H.lFrame.elementDepthCount--}();const t=ne();return t.firstCreatePass&&(Ys(t,e),vu(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function oE(e){return 0!=(8&e.flags)}(n)&&td(t,n,M(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function iE(e){return 0!=(16&e.flags)}(n)&&td(t,n,M(),n.stylesWithoutHost,!1),p}function J(e,n,t,r){return g(e,n,t,r),p(),J}let Ey=(e,n,t,r,o,i)=>(ur(!0),ha(r,o,function Kp(){return H.lFrame.currentNamespace}()));function Sn(){return M()}function ji(e){return!!e&&"function"==typeof e.then}function Iy(e){return!!e&&"function"==typeof e.subscribe}function I(e,n,t,r){const o=M(),i=ne(),s=et();return function Ay(e,n,t,r,o,i,s){const a=Us(r),u=e.firstCreatePass&&ey(e),c=n[Me],d=Jm(n);let f=!0;if(3&r.type||s){const C=_t(r,n),w=s?s(C):C,S=d.length,_=s?x=>s(me(x[r.index])):r.index;let T=null;if(!s&&a&&(T=function rT(e,n,t,r){const o=e.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,n,o,r.index)),null!==T)(T.__ngLastListenerFn__||T).__ngNextListenerFn__=i,T.__ngLastListenerFn__=i,f=!1;else{i=Ry(r,n,c,i,!1);const x=t.listen(w,o,i);d.push(i,x),u&&u.push(o,_,S,S+1)}}else i=Ry(r,n,c,i,!1);const h=r.outputs;let y;if(f&&null!==h&&(y=h[o])){const C=y.length;if(C)for(let w=0;w-1?Ct(e.index,n):n);let l=Ny(n,t,r,s),u=i.__ngNextListenerFn__;for(;u;)l=Ny(n,t,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function Pe(e=1){return function YM(e){return(H.lFrame.contextLView=function XM(e,n){for(;e>0;)n=n[Kr],e--;return n}(e,H.lFrame.contextLView))[Me]}(e)}function Ha(e,n,t,r,o){const i=M(),s=Do(i,n,t,r);return s!==q&&Pt(ne(),Ce(),i,e,s,i[W],o,!1),Ha}function ja(e,n){return e<<17|n<<2}function dr(e){return e>>17&32767}function od(e){return 2|e}function Lr(e){return(131068&e)>>2}function id(e,n){return-131069&e|n<<2}function sd(e){return 1|e}function jy(e,n,t,r,o){const i=e[t+1],s=null===n;let a=r?dr(i):Lr(i),l=!1;for(;0!==a&&(!1===l||s);){const c=e[a+1];fT(e[a],n)&&(l=!0,e[a+1]=r?sd(c):od(c)),a=r?dr(c):Lr(c)}l&&(e[t+1]=r?od(i):sd(i))}function fT(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&co(e,n)>=0}function Ua(e,n){return function Kt(e,n,t,r){const o=M(),i=ne(),s=qn(2);i.firstUpdatePass&&function Xy(e,n,t,r){const o=e.data;if(null===o[t+1]){const i=o[dt()],s=function Yy(e,n){return n>=e.expandoStartIndex}(e,t);(function ev(e,n){return 0!=(e.flags&(n?8:16))})(i,r)&&null===n&&!s&&(n=!1),n=function DT(e,n,t,r){const o=function Tu(e){const n=H.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let i=r?n.residualClasses:n.residualStyles;if(null===o)0===(r?n.classBindings:n.styleBindings)&&(t=Ui(t=ad(null,e,n,t,r),n.attrs,r),i=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==o)if(t=ad(o,e,n,t,r),null===i){let l=function wT(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==Lr(r))return e[dr(r)]}(e,n,r);void 0!==l&&Array.isArray(l)&&(l=ad(null,e,n,l[1],r),l=Ui(l,n.attrs,r),function MT(e,n,t,r){e[dr(t?n.classBindings:n.styleBindings)]=r}(e,n,r,l))}else i=function ET(e,n,t){let r;const o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i0)&&(u=!0)):c=t,o)if(0!==l){const f=dr(e[a+1]);e[r+1]=ja(f,a),0!==f&&(e[f+1]=id(e[f+1],r)),e[a+1]=function lT(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=ja(a,0),0!==a&&(e[a+1]=id(e[a+1],r)),a=r;else e[r+1]=ja(l,0),0===a?a=r:e[l+1]=id(e[l+1],r),l=r;u&&(e[r+1]=od(e[r+1])),jy(e,c,r,!0),jy(e,c,r,!1),function dT(e,n,t,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof n&&co(i,n)>=0&&(t[r+1]=sd(t[r+1]))}(n,c,e,r,i),s=ja(a,l),i?n.classBindings=s:n.styleBindings=s}(o,i,n,t,s,r)}}(i,e,s,r),n!==q&&st(o,s,n)&&function Ky(e,n,t,r,o,i,s,a){if(!(3&n.type))return;const l=e.data,u=l[a+1],c=function uT(e){return 1==(1&e)}(u)?Jy(l,n,t,o,Lr(u),s):void 0;Ba(c)||(Ba(i)||function aT(e){return 2==(2&e)}(u)&&(i=Jy(l,null,t,o,a,s)),function hb(e,n,t,r,o){if(n)o?e.addClass(t,r):e.removeClass(t,r);else{let i=-1===r.indexOf("-")?void 0:Dt.DashCase;null==o?e.removeStyle(t,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Dt.Important),e.setStyle(t,r,o,i))}}(r,s,Ws(dt(),t),o,i))}(i,i.data[dt()],o,o[W],e,o[s+1]=function TT(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=je(cr(e)))),e}(n,t),r,s)}(e,n,null,!0),Ua}function ad(e,n,t,r,o){let i=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const l=e[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=t[o+1];f===q&&(f=d?re:void 0);let h=d?Hu(f,r):c===r?f:void 0;if(u&&!Ba(h)&&(h=Hu(l,r)),Ba(h)&&(a=h,s))return a;const y=e[o+1];o=s?dr(y):Lr(y)}if(null!==n){let l=i?n.residualClasses:n.residualStyles;null!=l&&(a=Hu(l,r))}return a}function Ba(e){return void 0!==e}function m(e,n=""){const t=M(),r=ne(),o=e+te,i=r.firstCreatePass?_o(r,o,1,n,null):r.data[o],s=tv(r,t,i,n,e);t[o]=s,Zs()&&ga(r,t,s,i),_n(i,!1)}let tv=(e,n,t,r,o)=>(ur(!0),function fa(e,n){return e.createText(n)}(n[W],r));function F(e){return De("",e,""),F}function De(e,n,t){const r=M(),o=Do(r,e,n,t);return o!==q&&Qn(r,dt(),o),De}function za(e,n,t,r,o){const i=M(),s=wo(i,e,n,t,r,o);return s!==q&&Qn(i,dt(),s),za}const Vr=void 0;var XT=["en",[["a","p"],["AM","PM"],Vr],[["AM","PM"],Vr,Vr],[["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"]],Vr,[["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"]],Vr,[["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}",Vr,"{1} 'at' {0}",Vr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function YT(e){const t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===r?1:5}];let No={};function ft(e){const n=function KT(e){return e.toLowerCase().replace(/_/g,"-")}(e);let t=Dv(n);if(t)return t;const r=n.split("-")[0];if(t=Dv(r),t)return t;if("en"===r)return XT;throw new E(701,!1)}function Dv(e){return e in No||(No[e]=he.ng&&he.ng.common&&he.ng.common.locales&&he.ng.common.locales[e]),No[e]}var k=(()=>((k=k||{})[k.LocaleId=0]="LocaleId",k[k.DayPeriodsFormat=1]="DayPeriodsFormat",k[k.DayPeriodsStandalone=2]="DayPeriodsStandalone",k[k.DaysFormat=3]="DaysFormat",k[k.DaysStandalone=4]="DaysStandalone",k[k.MonthsFormat=5]="MonthsFormat",k[k.MonthsStandalone=6]="MonthsStandalone",k[k.Eras=7]="Eras",k[k.FirstDayOfWeek=8]="FirstDayOfWeek",k[k.WeekendRange=9]="WeekendRange",k[k.DateFormat=10]="DateFormat",k[k.TimeFormat=11]="TimeFormat",k[k.DateTimeFormat=12]="DateTimeFormat",k[k.NumberSymbols=13]="NumberSymbols",k[k.NumberFormats=14]="NumberFormats",k[k.CurrencyCode=15]="CurrencyCode",k[k.CurrencySymbol=16]="CurrencySymbol",k[k.CurrencyName=17]="CurrencyName",k[k.Currencies=18]="Currencies",k[k.Directionality=19]="Directionality",k[k.PluralCase=20]="PluralCase",k[k.ExtraData=21]="ExtraData",k))();const Ro="en-US";let wv=Ro;function cd(e,n,t,r,o){if(e=B(e),Array.isArray(e))for(let i=0;i>20;if(Or(e)||!e.multi){const h=new hi(l,o,D),y=fd(a,n,o?c:c+f,d);-1===y?(Lu(ta(u,s),i,a),dd(i,e,n.length),n.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),t.push(h),s.push(h)):(t[y]=h,s[y]=h)}else{const h=fd(a,n,c+f,d),y=fd(a,n,c,c+f),w=y>=0&&t[y];if(o&&!w||!o&&!(h>=0&&t[h])){Lu(ta(u,s),i,a);const S=function Y2(e,n,t,r,o){const i=new hi(e,t,D);return i.multi=[],i.index=n,i.componentProviders=0,qv(i,o,r&&!t),i}(o?Z2:q2,t.length,o,r,l);!o&&w&&(t[y].providerFactory=S),dd(i,e,n.length,0),n.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),t.push(S),s.push(S)}else dd(i,e,h>-1?h:y,qv(t[o?y:h],l,!o&&r));!o&&r&&w&&t[y].componentProviders++}}}function dd(e,n,t,r){const o=Or(n),i=function Ub(e){return!!e.useClass}(n);if(o||i){const l=(i?B(n.useClass):n).prototype.ngOnDestroy;if(l){const u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&n.multi){const c=u.indexOf(t);-1===c?u.push(t,[r,l]):u[c+1].push(r,l)}else u.push(t,l)}}}function qv(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function fd(e,n,t,r){for(let o=t;o{t.providersResolver=(r,o)=>function W2(e,n,t){const r=ne();if(r.firstCreatePass){const o=Qt(e);cd(t,r.data,r.blueprint,o,!0),cd(n,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,n)}}class ko{}class Zv{}class pd extends ko{constructor(n,t,r){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new oy(this);const o=Nt(n);this._bootstrapComponents=Xn(o.bootstrap),this._r3Injector=jm(n,t,[{provide:ko,useValue:this},{provide:Ia,useValue:this.componentFactoryResolver},...r],je(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class gd extends Zv{constructor(n){super(),this.moduleType=n}create(n){return new pd(this.moduleType,n,[])}}class Yv extends ko{constructor(n){super(),this.componentFactoryResolver=new oy(this),this.instance=null;const t=new Dc([...n.providers,{provide:ko,useValue:this},{provide:Ia,useValue:this.componentFactoryResolver}],n.parent||Da(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function md(e,n,t=null){return new Yv({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}let K2=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t.id)){const r=fm(0,t.type),o=r.length>0?md([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t.id,o)}return this.cachedInjectors.get(t.id)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=P({token:e,providedIn:"environment",factory:()=>new e(A(Dn))}),e})();function Xv(e){e.getStandaloneInjector=n=>n.get(K2).getOrCreateStandaloneInjector(e)}function vd(e,n,t){const r=ct()+e,o=M();return o[r]===q?En(o,r,t?n.call(t):n()):function Li(e,n){return e[n]}(o,r)}function Oo(e,n,t,r){return r_(M(),ct(),e,n,t,r)}function Zi(e,n){const t=e[n];return t===q?void 0:t}function r_(e,n,t,r,o,i){const s=n+t;return st(e,s,o)?En(e,s+1,i?r.call(i,o):r(o)):Zi(e,s+1)}function Ye(e,n){const t=ne();let r;const o=e+te;t.firstCreatePass?(r=function gA(e,n){if(n)for(let t=n.length-1;t>=0;t--){const r=n[t];if(e===r.name)return r}}(n,t.pipeRegistry),t.data[o]=r,r.onDestroy&&(t.destroyHooks??=[]).push(o,r.onDestroy)):r=t.data[o];const i=r.factory||(r.factory=Ar(r.type)),s=mt(D);try{const a=ea(!1),l=i();return ea(a),function YI(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}(t,M(),o,l),l}finally{mt(s)}}function $r(e,n,t){const r=e+te,o=M(),i=to(o,r);return Yi(o,r)?r_(o,ct(),n,i.transform,t,i):i.transform(t)}function zt(e,n,t,r){const o=e+te,i=M(),s=to(i,o);return Yi(i,o)?function o_(e,n,t,r,o,i,s){const a=n+t;return Fr(e,a,o,i)?En(e,a+2,s?r.call(s,o,i):r(o,i)):Zi(e,a+2)}(i,ct(),n,s.transform,t,r,s):s.transform(t,r)}function Yi(e,n){return e[R].data[n].pure}function _d(e){return n=>{setTimeout(e,void 0,n)}}const be=class _A extends Hn{constructor(n=!1){super(),this.__isAsync=n}emit(n){super.next(n)}subscribe(n,t,r){let o=n,i=t||(()=>null),s=r;if(n&&"object"==typeof n){const l=n;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=_d(i),o&&(o=_d(o)),s&&(s=_d(s)));const a=super.subscribe({next:o,error:i,complete:s});return n instanceof Lt&&n.add(a),a}};function CA(){return this._results[Symbol.iterator]()}class Cd{get changes(){return this._changes||(this._changes=new be)}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=Cd.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=CA)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){const r=this;r.dirty=!1;const o=function Ut(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function mE(e,n,t){if(e.length!==n.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=MA,e})();const DA=Kn,wA=class extends DA{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t,null)}createEmbeddedViewImpl(n,t,r){const o=this._declarationTContainer.tView,i=Na(this._declarationLView,o,n,16,null,o.declTNode,null,null,null,t||null,r||null);i[ui]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[gn];return null!==a&&(i[gn]=a.createEmbeddedView(o)),Wc(o,i,n),new xi(i)}};function MA(){return Ya(et(),M())}function Ya(e,n){return 4&e.type?new wA(n,e,yo(e,n)):null}let en=(()=>{class e{}return e.__NG_ELEMENT_ID__=NA,e})();function NA(){return h_(et(),M())}const RA=en,d_=class extends RA{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return yo(this._hostTNode,this._hostLView)}get injector(){return new io(this._hostTNode,this._hostLView)}get parentInjector(){const n=Fu(this._hostTNode,this._hostLView);if(ng(n)){const t=Js(n,this._hostLView),r=Ks(n);return new io(t[R].data[r+8],t)}return new io(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=f_(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-Je}createEmbeddedView(n,t,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=n.createEmbeddedViewImpl(t||{},i,null);return this.insertImpl(a,o,false),a}createComponent(n,t,r,o,i){const s=n&&!function gi(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const C=t||{};a=C.index,r=C.injector,o=C.projectableNodes,i=C.environmentInjector||C.ngModuleRef}const l=s?n:new Fi(ie(n)),u=r||this.parentInjector;if(!i&&null==l.ngModule){const w=(s?u:this.parentInjector).get(Dn,null);w&&(i=w)}ie(l.componentType??{});const h=l.create(u,o,null,i);return this.insertImpl(h.hostView,a,false),h}insert(n,t){return this.insertImpl(n,t,!1)}insertImpl(n,t,r){const o=n._lView,i=o[R];if(function OM(e){return vt(e[_e])}(o)){const l=this.indexOf(n);if(-1!==l)this.detach(l);else{const u=o[_e],c=new d_(u,u[ot],u[_e]);c.detach(c.indexOf(n))}}const s=this._adjustIndex(t),a=this._lContainer;if(function ib(e,n,t,r){const o=Je+r,i=t.length;r>0&&(t[o-1][Xt]=n),r0)r.push(s[a/2]);else{const u=i[a+1],c=n[-l];for(let d=Je;d{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=N(Od,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const o of this.appInits){const i=o();if(ji(i))t.push(i);else if(Iy(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});t.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(o=>{this.reject(o)}),0===t.length&&r(),this.initialized=!0}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),V_=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const An=new O("LocaleId",{providedIn:"root",factory:()=>N(An,V.Optional|V.SkipSelf)||function lN(){return typeof $localize<"u"&&$localize.locale||Ro}()});class cN{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let $_=(()=>{class e{compileModuleSync(t){return new gd(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),i=Xn(Nt(t).declarations).reduce((s,a)=>{const l=ie(a);return l&&s.push(new Fi(l)),s},[]);return new cN(r,i)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const hN=(()=>Promise.resolve(0))();function xd(e){typeof Zone>"u"?hN.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function U_(...e){}class ve{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new be(!1),this.onMicrotaskEmpty=new be(!1),this.onStable=new be(!1),this.onError=new be(!1),typeof Zone>"u")throw new E(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&t,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function pN(){let e=he.requestAnimationFrame,n=he.cancelAnimationFrame;if(typeof Zone<"u"&&e&&n){const t=e[Zone.__symbol__("OriginalDelegate")];t&&(e=t);const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,function yN(e){const n=()=>{!function mN(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(he,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Ld(e),e.isCheckStableRunning=!0,Fd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Ld(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,o,i,s,a)=>{try{return B_(e),t.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&n(),z_(e)}},onInvoke:(t,r,o,i,s,a,l)=>{try{return B_(e),t.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&n(),z_(e)}},onHasTask:(t,r,o,i)=>{t.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Ld(e),Fd(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,r,o,i)=>(t.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ve.isInAngularZone())throw new E(909,!1)}static assertNotInAngularZone(){if(ve.isInAngularZone())throw new E(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,n,gN,U_,U_);try{return i.runTask(s,t,r)}finally{i.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const gN={};function Fd(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Ld(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function B_(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function z_(e){e._nesting--,Fd(e)}class vN{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new be,this.onMicrotaskEmpty=new be,this.onStable=new be,this.onError=new be}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,o){return n.apply(t,r)}}const G_=new O("",{providedIn:"root",factory:W_});function W_(){const e=N(ve);let n=!0;return function k1(...e){const n=ri(e),t=function b1(e,n){return"number"==typeof ru(e)?e.pop():n}(e,1/0),r=e;return r.length?1===r.length?Vt(r[0]):qr(t)(He(r,n)):hn}(new Se(o=>{n=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(n),o.complete()})}),new Se(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{ve.assertNotInAngularZone(),xd(()=>{!n&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(n=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ve.assertInAngularZone(),n&&(n=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(function O1(e={}){const{connector:n=(()=>new Hn),resetOnError:t=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,l,u=0,c=!1,d=!1;const f=()=>{a?.unsubscribe(),a=void 0},h=()=>{f(),s=l=void 0,c=d=!1},y=()=>{const C=s;h(),C?.unsubscribe()};return Xe((C,w)=>{u++,!d&&!c&&f();const S=l=l??n();w.add(()=>{u--,0===u&&!d&&!c&&(a=ou(y,o))}),S.subscribe(w),!s&&u>0&&(s=new ni({next:_=>S.next(_),error:_=>{d=!0,f(),a=ou(h,t,_),S.error(_)},complete:()=>{c=!0,f(),a=ou(h,r),S.complete()}}),Vt(C).subscribe(s))})(i)}}()))}const q_=new O(""),Ka=new O("");let Hd,Vd=(()=>{class e{constructor(t,r,o){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Hd||(function _N(e){Hd=e}(o),o.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{ve.assertNotInAngularZone(),xd(()=>{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())xd(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),t(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:o})}whenStable(t,r,o){if(o&&!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(t,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,o){return[]}}return e.\u0275fac=function(t){return new(t||e)(A(ve),A($d),A(Ka))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})(),$d=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return Hd?.findTestabilityInTree(this,t,r)??null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),fr=null;const Z_=new O("AllowMultipleToken"),jd=new O("PlatformDestroyListeners"),Ud=new O("appBootstrapListener");class X_{constructor(n,t){this.name=n,this.token=t}}function K_(e,n,t=[]){const r=`Platform: ${n}`,o=new O(r);return(i=[])=>{let s=Bd();if(!s||s.injector.get(Z_,!1)){const a=[...t,...i,{provide:o,useValue:!0}];e?e(a):function wN(e){if(fr&&!fr.get(Z_,!1))throw new E(400,!1);(function Y_(){!function wM(e){Tp=e}(()=>{throw new E(600,!1)})})(),fr=e;const n=e.get(eC);(function Q_(e){e.get(ym,null)?.forEach(t=>t())})(e)}(function J_(e=[],n){return wn.create({name:n,providers:[{provide:_c,useValue:"platform"},{provide:jd,useValue:new Set([()=>fr=null])},...e]})}(a,r))}return function EN(e){const n=Bd();if(!n)throw new E(401,!1);return n}()}}function Bd(){return fr?.get(eC)??null}let eC=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const o=function bN(e="zone.js",n){return"noop"===e?new vN:"zone.js"===e?new ve(n):e}(r?.ngZone,function tC(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function Q2(e,n,t){return new pd(e,n,t)}(t.moduleType,this.injector,function sC(e){return[{provide:ve,useFactory:e},{provide:Ii,multi:!0,useFactory:()=>{const n=N(IN,{optional:!0});return()=>n.initialize()}},{provide:iC,useFactory:SN},{provide:G_,useFactory:W_}]}(()=>o)),s=i.injector.get(xr,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{Ja(this._modules,i),a.unsubscribe()})}),function nC(e,n,t){try{const r=t();return ji(r)?r.catch(o=>{throw n.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(Pd);return a.runInitializers(),a.donePromise.then(()=>(function Mv(e){$t(e,"Expected localeId to be defined"),"string"==typeof e&&(wv=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(An,Ro)||Ro),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,r=[]){const o=rC({},r);return function CN(e,n,t){const r=new gd(t);return Promise.resolve(r)}(0,0,t).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(t){const r=t.injector.get(Fo);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!t.instance.ngDoBootstrap)throw new E(-403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new E(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(jd,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(t){return new(t||e)(A(wn))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function rC(e,n){return Array.isArray(n)?n.reduce(rC,e):{...e,...n}}let Fo=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=N(iC),this.componentTypes=[],this.components=[],this.isStable=N(G_),this._injector=N(Dn)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const o=t instanceof Em;if(!this._injector.get(Pd).done)throw!o&&function Yr(e){const n=ie(e)||rt(e)||yt(e);return null!==n&&n.standalone}(t),new E(405,!1);let s;s=o?t:this._injector.get(Ia).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function DN(e){return e.isBoundToModule}(s)?void 0:this._injector.get(ko),u=s.create(wn.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(q_,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),Ja(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new E(101,!1);try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this.internalErrorHandler(t)}finally{this._runningTick=!1}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;Ja(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(Ud,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>Ja(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new E(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ja(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}const iC=new O("",{providedIn:"root",factory:()=>N(xr).handleError.bind(void 0)});function SN(){const e=N(ve),n=N(xr);return t=>e.runOutsideAngular(()=>n.handleError(t))}let IN=(()=>{class e{constructor(){this.zone=N(ve),this.applicationRef=N(Fo)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();let el=(()=>{class e{}return e.__NG_ELEMENT_ID__=AN,e})();function AN(e){return function NN(e,n,t){if(Tr(e)&&!t){const r=Ct(e.index,n);return new xi(r,r)}return 47&e.type?new xi(n[ke],n):null}(et(),M(),16==(16&e))}class cC{constructor(){}supports(n){return xa(n)}create(n){return new FN(n)}}const xN=(e,n)=>n;class FN{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||xN}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,o=0,i=null;for(;t||r;){const s=!r||t&&t.currentIndex{s=this._trackByFn(o,a),null!==t&&Object.is(t.trackById,s)?(r&&(t=this._verifyReinsertion(t,a,s,o)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,o),r=!0),t=t._next,o++}),this.length=o;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,r,o){let i;return null===n?i=this._itTail:(i=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,i,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,i,o)):n=this._addAfter(new LN(t,r),i,o),n}_verifyReinsertion(n,t,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?n=this._reinsertAfter(i,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,i=n._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){const o=null===t?this._itHead:t._next;return n._next=o,n._prev=t,null===o?this._itTail=n:o._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new dC),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,r=n._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new dC),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class LN{constructor(n,t){this.item=n,this.trackById=t,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 VN{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const t=n._prevDup,r=n._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class dC{constructor(){this.map=new Map}put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new VN,this.map.set(t,r)),r.add(n)}get(n,t){const o=this.map.get(n);return o?o.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function fC(e,n,t){const r=e.previousIndex;if(null===r)return r;let o=0;return t&&r{if(t&&t.key===o)this._maybeAddToChanges(t,r),this._appendAfter=t,t=t._next;else{const i=this._getOrCreateRecordForKey(o,r);t=this._insertBeforeOrAppend(t,i)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let r=t;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(n,t){if(n){const r=n._prev;return t._next=n,t._prev=r,n._prev=t,r&&(r._next=t),n===this._mapHead&&(this._mapHead=t),this._appendAfter=n,n}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(n,t){if(this._records.has(n)){const o=this._records.get(n);this._maybeAddToChanges(o,t);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new HN(n);return this._records.set(n,r),r.currentValue=t,this._addToAdditions(r),r}_reset(){if(this.isDirty){let n;for(this._previousMapHead=this._mapHead,n=this._previousMapHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._changesHead;null!==n;n=n._nextChanged)n.previousValue=n.currentValue;for(n=this._additionsHead;null!=n;n=n._nextAdded)n.previousValue=n.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(n,t){Object.is(t,n.currentValue)||(n.previousValue=n.currentValue,n.currentValue=t,this._addToChanges(n))}_addToAdditions(n){null===this._additionsHead?this._additionsHead=this._additionsTail=n:(this._additionsTail._nextAdded=n,this._additionsTail=n)}_addToChanges(n){null===this._changesHead?this._changesHead=this._changesTail=n:(this._changesTail._nextChanged=n,this._changesTail=n)}_forEach(n,t){n instanceof Map?n.forEach(t):Object.keys(n).forEach(r=>t(n[r],r))}}class HN{constructor(n){this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function pC(){return new rl([new cC])}let rl=(()=>{class e{constructor(t){this.factories=t}static create(t,r){if(null!=r){const o=r.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||pC()),deps:[[e,new aa,new sa]]}}find(t){const r=this.factories.find(o=>o.supports(t));if(null!=r)return r;throw new E(901,!1)}}return e.\u0275prov=P({token:e,providedIn:"root",factory:pC}),e})();function gC(){return new Ji([new hC])}let Ji=(()=>{class e{constructor(t){this.factories=t}static create(t,r){if(r){const o=r.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||gC()),deps:[[e,new aa,new sa]]}}find(t){const r=this.factories.find(o=>o.supports(t));if(r)return r;throw new E(901,!1)}}return e.\u0275prov=P({token:e,providedIn:"root",factory:gC}),e})();const BN=K_(null,"core",[]);let zN=(()=>{class e{constructor(t){}}return e.\u0275fac=function(t){return new(t||e)(A(Fo))},e.\u0275mod=Yt({type:e}),e.\u0275inj=Ht({}),e})(),DC=(()=>{class e{get whenAllTasksComplete(){return 0===this.collection.size&&this.complete(),this.promise}constructor(){this.taskId=0,this.collection=new Set,this.ngZone=N(ve),this.completed=!1,this.ngZone.runOutsideAngular(()=>{this.promise=new Promise(t=>{this.resolve=t})})}add(){if(this.completed)return-1;const t=this.taskId++;return this.collection.add(t),t}remove(t){this.completed||(this.collection.delete(t),0===this.collection.size&&this.complete())}ngOnDestroy(){this.complete(),this.collection.clear()}complete(){this.completed=!0,this.resolve()}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Lo(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let Xd=null;function hr(){return Xd}class nR{}const xt=new O("DocumentToken");let Qd=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return N(oR)},providedIn:"platform"}),e})();const rR=new O("Location Initialized");let oR=(()=>{class e extends Qd{constructor(){super(),this._doc=N(xt),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return hr().getBaseHref(this._doc)}onPopState(t){const r=hr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=hr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}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(t){this._location.pathname=t}pushState(t,r,o){this._history.pushState(t,r,o)}replaceState(t,r,o){this._history.replaceState(t,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return new e},providedIn:"platform"}),e})();function Kd(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function MC(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function Jn(e){return e&&"?"!==e[0]?"?"+e:e}let pr=(()=>{class e{historyGo(t){throw new Error("Not implemented")}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return N(bC)},providedIn:"root"}),e})();const EC=new O("appBaseHref");let bC=(()=>{class e extends pr{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??N(xt).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Kd(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+Jn(this._platformLocation.search),o=this._platformLocation.hash;return o&&t?`${r}${o}`:r}pushState(t,r,o,i){const s=this.prepareExternalUrl(o+Jn(i));this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){const s=this.prepareExternalUrl(o+Jn(i));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return e.\u0275fac=function(t){return new(t||e)(A(Qd),A(EC,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),SC=(()=>{class e extends pr{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=Kd(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,o,i){let s=this.prepareExternalUrl(o+Jn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){let s=this.prepareExternalUrl(o+Jn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}}return e.\u0275fac=function(t){return new(t||e)(A(Qd),A(EC,8))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})(),il=(()=>{class e{constructor(t){this._subject=new be,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function aR(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(MC(IC(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+Jn(r))}normalize(t){return e.stripTrailingSlash(function sR(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,IC(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",o=null){this._locationStrategy.pushState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Jn(r)),o)}replaceState(t,r="",o=null){this._locationStrategy.replaceState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Jn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(o=>o(t,r))}subscribe(t,r,o){return this._subject.subscribe({next:t,error:r,complete:o})}}return e.normalizeQueryParams=Jn,e.joinWithSlash=Kd,e.stripTrailingSlash=MC,e.\u0275fac=function(t){return new(t||e)(A(pr))},e.\u0275prov=P({token:e,factory:function(){return function iR(){return new il(A(pr))}()},providedIn:"root"}),e})();function IC(e){return e.replace(/\/index.html$/,"")}var Ae=(()=>((Ae=Ae||{})[Ae.Format=0]="Format",Ae[Ae.Standalone=1]="Standalone",Ae))(),ee=(()=>((ee=ee||{})[ee.Narrow=0]="Narrow",ee[ee.Abbreviated=1]="Abbreviated",ee[ee.Wide=2]="Wide",ee[ee.Short=3]="Short",ee))(),we=(()=>((we=we||{})[we.Short=0]="Short",we[we.Medium=1]="Medium",we[we.Long=2]="Long",we[we.Full=3]="Full",we))(),L=(()=>((L=L||{})[L.Decimal=0]="Decimal",L[L.Group=1]="Group",L[L.List=2]="List",L[L.PercentSign=3]="PercentSign",L[L.PlusSign=4]="PlusSign",L[L.MinusSign=5]="MinusSign",L[L.Exponential=6]="Exponential",L[L.SuperscriptingExponent=7]="SuperscriptingExponent",L[L.PerMille=8]="PerMille",L[L.Infinity=9]="Infinity",L[L.NaN=10]="NaN",L[L.TimeSeparator=11]="TimeSeparator",L[L.CurrencyDecimal=12]="CurrencyDecimal",L[L.CurrencyGroup=13]="CurrencyGroup",L))();function sl(e,n){return Wt(ft(e)[k.DateFormat],n)}function al(e,n){return Wt(ft(e)[k.TimeFormat],n)}function ll(e,n){return Wt(ft(e)[k.DateTimeFormat],n)}function Gt(e,n){const t=ft(e),r=t[k.NumberSymbols][n];if(typeof r>"u"){if(n===L.CurrencyDecimal)return t[k.NumberSymbols][L.Decimal];if(n===L.CurrencyGroup)return t[k.NumberSymbols][L.Group]}return r}function AC(e){if(!e[k.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[k.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Wt(e,n){for(let t=n;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function ef(e){const[n,t]=e.split(":");return{hours:+n,minutes:+t}}const CR=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,es={},DR=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Ge=(()=>((Ge=Ge||{})[Ge.Short=0]="Short",Ge[Ge.ShortGMT=1]="ShortGMT",Ge[Ge.Long=2]="Long",Ge[Ge.Extended=3]="Extended",Ge))(),$=(()=>(($=$||{})[$.FullYear=0]="FullYear",$[$.Month=1]="Month",$[$.Date=2]="Date",$[$.Hours=3]="Hours",$[$.Minutes=4]="Minutes",$[$.Seconds=5]="Seconds",$[$.FractionalSeconds=6]="FractionalSeconds",$[$.Day=7]="Day",$))(),X=(()=>((X=X||{})[X.DayPeriods=0]="DayPeriods",X[X.Days=1]="Days",X[X.Months=2]="Months",X[X.Eras=3]="Eras",X))();function wR(e,n,t,r){let o=function RR(e){if(kC(e))return e;if("number"==typeof e&&!isNaN(e))return new Date(e);if("string"==typeof e){if(e=e.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(e)){const[o,i=1,s=1]=e.split("-").map(a=>+a);return ul(o,i-1,s)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let r;if(r=e.match(CR))return function kR(e){const n=new Date(0);let t=0,r=0;const o=e[8]?n.setUTCFullYear:n.setFullYear,i=e[8]?n.setUTCHours:n.setHours;e[9]&&(t=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(n,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-t,a=Number(e[5]||0)-r,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return i.call(n,s,a,l,u),n}(r)}const n=new Date(e);if(!kC(n))throw new Error(`Unable to convert "${e}" into a date`);return n}(e);n=er(t,n)||n;let a,s=[];for(;n;){if(a=DR.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const c=s.pop();if(!c)break;n=c}}let l=o.getTimezoneOffset();r&&(l=RC(r,l),o=function NR(e,n,t){const r=t?-1:1,o=e.getTimezoneOffset();return function AR(e,n){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+n),e}(e,r*(RC(n,o)-o))}(o,r,!0));let u="";return s.forEach(c=>{const d=function TR(e){if(nf[e])return nf[e];let n;switch(e){case"G":case"GG":case"GGG":n=pe(X.Eras,ee.Abbreviated);break;case"GGGG":n=pe(X.Eras,ee.Wide);break;case"GGGGG":n=pe(X.Eras,ee.Narrow);break;case"y":n=Fe($.FullYear,1,0,!1,!0);break;case"yy":n=Fe($.FullYear,2,0,!0,!0);break;case"yyy":n=Fe($.FullYear,3,0,!1,!0);break;case"yyyy":n=Fe($.FullYear,4,0,!1,!0);break;case"Y":n=hl(1);break;case"YY":n=hl(2,!0);break;case"YYY":n=hl(3);break;case"YYYY":n=hl(4);break;case"M":case"L":n=Fe($.Month,1,1);break;case"MM":case"LL":n=Fe($.Month,2,1);break;case"MMM":n=pe(X.Months,ee.Abbreviated);break;case"MMMM":n=pe(X.Months,ee.Wide);break;case"MMMMM":n=pe(X.Months,ee.Narrow);break;case"LLL":n=pe(X.Months,ee.Abbreviated,Ae.Standalone);break;case"LLLL":n=pe(X.Months,ee.Wide,Ae.Standalone);break;case"LLLLL":n=pe(X.Months,ee.Narrow,Ae.Standalone);break;case"w":n=tf(1);break;case"ww":n=tf(2);break;case"W":n=tf(1,!0);break;case"d":n=Fe($.Date,1);break;case"dd":n=Fe($.Date,2);break;case"c":case"cc":n=Fe($.Day,1);break;case"ccc":n=pe(X.Days,ee.Abbreviated,Ae.Standalone);break;case"cccc":n=pe(X.Days,ee.Wide,Ae.Standalone);break;case"ccccc":n=pe(X.Days,ee.Narrow,Ae.Standalone);break;case"cccccc":n=pe(X.Days,ee.Short,Ae.Standalone);break;case"E":case"EE":case"EEE":n=pe(X.Days,ee.Abbreviated);break;case"EEEE":n=pe(X.Days,ee.Wide);break;case"EEEEE":n=pe(X.Days,ee.Narrow);break;case"EEEEEE":n=pe(X.Days,ee.Short);break;case"a":case"aa":case"aaa":n=pe(X.DayPeriods,ee.Abbreviated);break;case"aaaa":n=pe(X.DayPeriods,ee.Wide);break;case"aaaaa":n=pe(X.DayPeriods,ee.Narrow);break;case"b":case"bb":case"bbb":n=pe(X.DayPeriods,ee.Abbreviated,Ae.Standalone,!0);break;case"bbbb":n=pe(X.DayPeriods,ee.Wide,Ae.Standalone,!0);break;case"bbbbb":n=pe(X.DayPeriods,ee.Narrow,Ae.Standalone,!0);break;case"B":case"BB":case"BBB":n=pe(X.DayPeriods,ee.Abbreviated,Ae.Format,!0);break;case"BBBB":n=pe(X.DayPeriods,ee.Wide,Ae.Format,!0);break;case"BBBBB":n=pe(X.DayPeriods,ee.Narrow,Ae.Format,!0);break;case"h":n=Fe($.Hours,1,-12);break;case"hh":n=Fe($.Hours,2,-12);break;case"H":n=Fe($.Hours,1);break;case"HH":n=Fe($.Hours,2);break;case"m":n=Fe($.Minutes,1);break;case"mm":n=Fe($.Minutes,2);break;case"s":n=Fe($.Seconds,1);break;case"ss":n=Fe($.Seconds,2);break;case"S":n=Fe($.FractionalSeconds,1);break;case"SS":n=Fe($.FractionalSeconds,2);break;case"SSS":n=Fe($.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=dl(Ge.Short);break;case"ZZZZZ":n=dl(Ge.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=dl(Ge.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=dl(Ge.Long);break;default:return null}return nf[e]=n,n}(c);u+=d?d(o,t,l):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function ul(e,n,t){const r=new Date(0);return r.setFullYear(e,n,t),r.setHours(0,0,0),r}function er(e,n){const t=function lR(e){return ft(e)[k.LocaleId]}(e);if(es[t]=es[t]||{},es[t][n])return es[t][n];let r="";switch(n){case"shortDate":r=sl(e,we.Short);break;case"mediumDate":r=sl(e,we.Medium);break;case"longDate":r=sl(e,we.Long);break;case"fullDate":r=sl(e,we.Full);break;case"shortTime":r=al(e,we.Short);break;case"mediumTime":r=al(e,we.Medium);break;case"longTime":r=al(e,we.Long);break;case"fullTime":r=al(e,we.Full);break;case"short":const o=er(e,"shortTime"),i=er(e,"shortDate");r=cl(ll(e,we.Short),[o,i]);break;case"medium":const s=er(e,"mediumTime"),a=er(e,"mediumDate");r=cl(ll(e,we.Medium),[s,a]);break;case"long":const l=er(e,"longTime"),u=er(e,"longDate");r=cl(ll(e,we.Long),[l,u]);break;case"full":const c=er(e,"fullTime"),d=er(e,"fullDate");r=cl(ll(e,we.Full),[c,d])}return r&&(es[t][n]=r),r}function cl(e,n){return n&&(e=e.replace(/\{([^}]+)}/g,function(t,r){return null!=n&&r in n?n[r]:t})),e}function nn(e,n,t="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,i=t));let s=String(e);for(;s.length0||a>-t)&&(a+=t),e===$.Hours)0===a&&-12===t&&(a=12);else if(e===$.FractionalSeconds)return function MR(e,n){return nn(e,3).substring(0,n)}(a,n);const l=Gt(s,L.MinusSign);return nn(a,n,l,r,o)}}function pe(e,n,t=Ae.Format,r=!1){return function(o,i){return function bR(e,n,t,r,o,i){switch(t){case X.Months:return function dR(e,n,t){const r=ft(e),i=Wt([r[k.MonthsFormat],r[k.MonthsStandalone]],n);return Wt(i,t)}(n,o,r)[e.getMonth()];case X.Days:return function cR(e,n,t){const r=ft(e),i=Wt([r[k.DaysFormat],r[k.DaysStandalone]],n);return Wt(i,t)}(n,o,r)[e.getDay()];case X.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(i){const u=function gR(e){const n=ft(e);return AC(n),(n[k.ExtraData][2]||[]).map(r=>"string"==typeof r?ef(r):[ef(r[0]),ef(r[1])])}(n),c=function mR(e,n,t){const r=ft(e);AC(r);const i=Wt([r[k.ExtraData][0],r[k.ExtraData][1]],n)||[];return Wt(i,t)||[]}(n,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){const[h,y]=f,C=s>=h.hours&&a>=h.minutes,w=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case Ge.Short:return(o>=0?"+":"")+nn(s,2,i)+nn(Math.abs(o%60),2,i);case Ge.ShortGMT:return"GMT"+(o>=0?"+":"")+nn(s,1,i);case Ge.Long:return"GMT"+(o>=0?"+":"")+nn(s,2,i)+":"+nn(Math.abs(o%60),2,i);case Ge.Extended:return 0===r?"Z":(o>=0?"+":"")+nn(s,2,i)+":"+nn(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}const SR=0,fl=4;function NC(e){return ul(e.getFullYear(),e.getMonth(),e.getDate()+(fl-e.getDay()))}function tf(e,n=!1){return function(t,r){let o;if(n){const i=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,s=t.getDate();o=1+Math.floor((s+i)/7)}else{const i=NC(t),s=function IR(e){const n=ul(e,SR,1).getDay();return ul(e,0,1+(n<=fl?fl:fl+7)-n)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return nn(o,e,Gt(r,L.MinusSign))}}function hl(e,n=!1){return function(t,r){return nn(NC(t).getFullYear(),e,Gt(r,L.MinusSign),n)}}const nf={};function RC(e,n){e=e.replace(/:/g,"");const t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?n:t}function kC(e){return e instanceof Date&&!isNaN(e.valueOf())}function FC(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[o,i]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(o.trim()===n)return decodeURIComponent(i)}return null}const cf=/\s+/,LC=[];let df=(()=>{class e{constructor(t,r,o,i){this._iterableDiffers=t,this._keyValueDiffers=r,this._ngEl=o,this._renderer=i,this.initialClasses=LC,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(cf):LC}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(cf):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){const o=this.stateMap.get(t);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],o=t[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(cf).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return e.\u0275fac=function(t){return new(t||e)(D(rl),D(Ji),D(Ot),D(Yn))},e.\u0275dir=j({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})();class WR{constructor(n,t,r,o){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let qt=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,o){this._viewContainer=t,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new WR(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),$C(a,o)}});for(let o=0,i=r.length;o{$C(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(t,r){return!0}}return e.\u0275fac=function(t){return new(t||e)(D(en),D(Kn),D(rl))},e.\u0275dir=j({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function $C(e,n){e.context.$implicit=n.item}let ff=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new qR,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){HC("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){HC("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,r){return!0}}return e.\u0275fac=function(t){return new(t||e)(D(en),D(Kn))},e.\u0275dir=j({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class qR{constructor(){this.$implicit=null,this.ngIf=null}}function HC(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${je(n)}'.`)}const s3=new O("DATE_PIPE_DEFAULT_TIMEZONE"),a3=new O("DATE_PIPE_DEFAULT_OPTIONS");let tr=(()=>{class e{constructor(t,r,o){this.locale=t,this.defaultTimezone=r,this.defaultOptions=o}transform(t,r,o,i){if(null==t||""===t||t!=t)return null;try{return wR(t,r??this.defaultOptions?.dateFormat??"mediumDate",i||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw function rn(e,n){return new E(2100,!1)}()}}}return e.\u0275fac=function(t){return new(t||e)(D(An,16),D(s3,24),D(a3,24))},e.\u0275pipe=nt({name:"date",type:e,pure:!0,standalone:!0}),e})(),y3=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Yt({type:e}),e.\u0275inj=Ht({}),e})();function zC(e){return"server"===e}let D3=(()=>{class e{}return e.\u0275prov=P({token:e,providedIn:"root",factory:()=>new w3(A(xt),window)}),e})();class w3{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(n){this.supportsScrolling()&&this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){if(!this.supportsScrolling())return;const t=function M3(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(n)||i.querySelector(`[name="${n}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){if(this.supportScrollRestoration()){const t=this.window.history;t&&t.scrollRestoration&&(t.scrollRestoration=n)}}scrollToElement(n){const t=n.getBoundingClientRect(),r=t.left+this.window.pageXOffset,o=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const n=GC(this.window.history)||GC(Object.getPrototypeOf(this.window.history));return!(!n||!n.writable&&!n.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function GC(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class WC{}class X3 extends nR{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class _f extends X3{static makeCurrent(){!function tR(e){Xd||(Xd=e)}(new _f)}onAndCancel(n,t,r){return n.addEventListener(t,r),()=>{n.removeEventListener(t,r)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function Q3(){return rs=rs||document.querySelector("base"),rs?rs.getAttribute("href"):null}();return null==t?null:function K3(e){yl=yl||document.createElement("a"),yl.setAttribute("href",e);const n=yl.pathname;return"/"===n.charAt(0)?n:`/${n}`}(t)}resetBaseElement(){rs=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return FC(document.cookie,n)}}let yl,rs=null,ek=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const Cf=new O("EventManagerPlugins");let QC=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,o){return this._findPluginFor(r).addEventListener(t,r,o)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(i=>i.supports(t)),!r)throw new E(5101,!1);return this._eventNameToPlugin.set(t,r),r}}return e.\u0275fac=function(t){return new(t||e)(A(Cf),A(ve))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();class KC{constructor(n){this._doc=n}}const Df="ng-app-id";let JC=(()=>{class e{constructor(t,r,o,i={}){this.doc=t,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=zC(i),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(o=>o.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${Df}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(t,r){const o=this.styleRef;if(o.has(t)){const i=o.get(t);return i.usage+=r,i.usage}return o.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===t)return o.delete(r),i.removeAttribute(Df),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Df,this.appId),s}}addStyleToHost(t,r){const o=this.getStyleElement(t,r);t.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}}return e.\u0275fac=function(t){return new(t||e)(A(xt),A(wa),A(vm,8),A(Pr))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const wf={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},Mf=/%COMP%/g,ok=new O("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function tD(e,n){return n.map(t=>t.replace(Mf,e))}let nD=(()=>{class e{constructor(t,r,o,i,s,a,l,u=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestory=i,this.doc=s,this.platformId=a,this.ngZone=l,this.nonce=u,this.rendererByCompId=new Map,this.platformIsServer=zC(a),this.defaultRenderer=new Ef(t,s,l,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===At.ShadowDom&&(r={...r,encapsulation:At.Emulated});const o=this.getOrCreateRenderer(t,r);return o instanceof oD?o.applyToHost(t):o instanceof bf&&o.applyStyles(),o}getOrCreateRenderer(t,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,l=this.eventManager,u=this.sharedStylesHost,c=this.removeStylesOnCompDestory,d=this.platformIsServer;switch(r.encapsulation){case At.Emulated:i=new oD(l,u,r,this.appId,c,s,a,d);break;case At.ShadowDom:return new lk(l,u,t,r,s,a,this.nonce,d);default:i=new bf(l,u,r,c,s,a,d)}i.onDestroy=()=>o.delete(r.id),o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}}return e.\u0275fac=function(t){return new(t||e)(A(QC),A(JC),A(wa),A(ok),A(xt),A(Pr),A(ve),A(vm))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();class Ef{constructor(n,t,r,o){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(wf[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(rD(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(rD(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new E(5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,o){if(o){t=o+":"+t;const i=wf[o];i?n.setAttributeNS(i,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const o=wf[r];o?n.removeAttributeNS(o,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,o){o&(Dt.DashCase|Dt.Important)?n.style.setProperty(t,r,o&Dt.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&Dt.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){n[t]=r}setValue(n,t){n.nodeValue=t}listen(n,t,r){if("string"==typeof n&&!(n=hr().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(r))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&(t.preventDefault(),t.returnValue=!1)}}}function rD(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class lk extends Ef{constructor(n,t,r,o,i,s,a,l){super(n,i,s,l),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=tD(o.id,o.styles);for(const c of u){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=c,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class bf extends Ef{constructor(n,t,r,o,i,s,a,l){super(n,i,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=l?tD(l,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles),this.rendererUsageCount++}destroy(){this.removeStylesOnCompDestory&&(this.sharedStylesHost.removeStyles(this.styles),this.rendererUsageCount--,0===this.rendererUsageCount&&this.onDestroy?.())}}class oD extends bf{constructor(n,t,r,o,i,s,a,l){const u=o+"-"+r.id;super(n,t,r,i,s,a,l,u),this.contentAttr=function ik(e){return"_ngcontent-%COMP%".replace(Mf,e)}(u),this.hostAttr=function sk(e){return"_nghost-%COMP%".replace(Mf,e)}(u)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}let uk=(()=>{class e extends KC{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,o){return t.addEventListener(r,o,!1),()=>this.removeEventListener(t,r,o)}removeEventListener(t,r,o){return t.removeEventListener(r,o)}}return e.\u0275fac=function(t){return new(t||e)(A(xt))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const iD=["alt","control","meta","shift"],ck={"\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"},dk={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let fk=(()=>{class e extends KC{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>hr().onAndCancel(t,i.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),iD.forEach(u=>{const c=r.indexOf(u);c>-1&&(r.splice(c,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const l={};return l.domEventName=o,l.fullKey=s,l}static matchEventFullKeyCode(t,r){let o=ck[t.key]||t.key,i="";return r.indexOf("code.")>-1&&(o=t.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),iD.forEach(s=>{s!==o&&(0,dk[s])(t)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(t,r,o){return i=>{e.matchEventFullKeyCode(i,t)&&o.runGuarded(()=>r(i))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return e.\u0275fac=function(t){return new(t||e)(A(xt))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const mk=K_(BN,"browser",[{provide:Pr,useValue:"browser"},{provide:ym,useValue:function hk(){_f.makeCurrent()},multi:!0},{provide:xt,useFactory:function gk(){return function vb(e){lc=e}(document),document},deps:[]}]),yk=new O(""),lD=[{provide:Ka,useClass:class J3{addToWindow(n){he.getAngularTestability=(r,o=!0)=>{const i=n.findTestabilityInTree(r,o);if(null==i)throw new E(5103,!1);return i},he.getAllAngularTestabilities=()=>n.getAllTestabilities(),he.getAllAngularRootElements=()=>n.getAllRootElements(),he.frameworkStabilizers||(he.frameworkStabilizers=[]),he.frameworkStabilizers.push(r=>{const o=he.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?hr().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:q_,useClass:Vd,deps:[ve,$d,Ka]},{provide:Vd,useClass:Vd,deps:[ve,$d,Ka]}],uD=[{provide:_c,useValue:"root"},{provide:xr,useFactory:function pk(){return new xr},deps:[]},{provide:Cf,useClass:uk,multi:!0,deps:[xt,ve,Pr]},{provide:Cf,useClass:fk,multi:!0,deps:[xt]},nD,JC,QC,{provide:Sm,useExisting:nD},{provide:WC,useClass:ek,deps:[]},[]];let vk=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:wa,useValue:t.appId}]}}}return e.\u0275fac=function(t){return new(t||e)(A(yk,12))},e.\u0275mod=Yt({type:e}),e.\u0275inj=Ht({providers:[...uD,...lD],imports:[y3,zN]}),e})(),cD=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}}return e.\u0275fac=function(t){return new(t||e)(A(xt))},e.\u0275prov=P({token:e,factory:function(t){let r=null;return r=t?new t:function Ck(){return new cD(A(xt))}(),r},providedIn:"root"}),e})();typeof window<"u"&&window;const{isArray:bk}=Array,{getPrototypeOf:Sk,prototype:Ik,keys:Tk}=Object;function pD(e){if(1===e.length){const n=e[0];if(bk(n))return{args:n,keys:null};if(function Ak(e){return e&&"object"==typeof e&&Sk(e)===Ik}(n)){const t=Tk(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}const{isArray:Nk}=Array;function gD(e){return oe(n=>function Rk(e,n){return Nk(n)?e(...n):e(n)}(e,n))}function mD(e,n){return e.reduce((t,r,o)=>(t[r]=n[o],t),{})}let yD=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return e.\u0275fac=function(t){return new(t||e)(D(Yn),D(Ot))},e.\u0275dir=j({type:e}),e})(),jr=(()=>{class e extends yD{}return e.\u0275fac=function(){let n;return function(r){return(n||(n=tt(e)))(r||e)}}(),e.\u0275dir=j({type:e,features:[ue]}),e})();const Nn=new O("NgValueAccessor"),Ok={provide:Nn,useExisting:fe(()=>os),multi:!0};let os=(()=>{class e extends jr{writeValue(t){this.setProperty("checked",t)}}return e.\u0275fac=function(){let n;return function(r){return(n||(n=tt(e)))(r||e)}}(),e.\u0275dir=j({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,r){1&t&&I("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[ye([Ok]),ue]}),e})();const Pk={provide:Nn,useExisting:fe(()=>at),multi:!0},Fk=new O("CompositionEventMode");let at=(()=>{class e extends yD{constructor(t,r,o){super(t,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function xk(){const e=hr()?hr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return e.\u0275fac=function(t){return new(t||e)(D(Yn),D(Ot),D(Fk,8))},e.\u0275dir=j({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(t,r){1&t&&I("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[ye([Pk]),ue]}),e})();const lt=new O("NgValidators"),yr=new O("NgAsyncValidators");function ID(e){return null!=e}function TD(e){return ji(e)?He(e):e}function AD(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function ND(e,n){return n.map(t=>t(e))}function RD(e){return e.map(n=>function Vk(e){return!e.validate}(n)?n:t=>n.validate(t))}function If(e){return null!=e?function kD(e){if(!e)return null;const n=e.filter(ID);return 0==n.length?null:function(t){return AD(ND(t,n))}}(RD(e)):null}function Tf(e){return null!=e?function OD(e){if(!e)return null;const n=e.filter(ID);return 0==n.length?null:function(t){return function kk(...e){const n=Yh(e),{args:t,keys:r}=pD(e),o=new Se(i=>{const{length:s}=t;if(!s)return void i.complete();const a=new Array(s);let l=s,u=s;for(let c=0;c{d||(d=!0,u--),a[c]=f},()=>l--,void 0,()=>{(!l||!d)&&(u||i.next(r?mD(r,a):a),i.complete())}))}});return n?o.pipe(gD(n)):o}(ND(t,n).map(TD)).pipe(oe(AD))}}(RD(e)):null}function PD(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function Af(e){return e?Array.isArray(e)?e:[e]:[]}function _l(e,n){return Array.isArray(e)?e.includes(n):e===n}function LD(e,n){const t=Af(n);return Af(e).forEach(o=>{_l(t,o)||t.push(o)}),t}function VD(e,n){return Af(n).filter(t=>!_l(e,t))}class $D{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=If(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Tf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class pt extends $D{get formDirective(){return null}get path(){return null}}class vr extends $D{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class HD{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Et=(()=>{class e extends HD{constructor(t){super(t)}}return e.\u0275fac=function(t){return new(t||e)(D(vr,2))},e.\u0275dir=j({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,r){2&t&&Ua("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)},features:[ue]}),e})(),jD=(()=>{class e extends HD{constructor(t){super(t)}}return e.\u0275fac=function(t){return new(t||e)(D(pt,10))},e.\u0275dir=j({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,r){2&t&&Ua("ng-untouched",r.isUntouched)("ng-touched",r.isTouched)("ng-pristine",r.isPristine)("ng-dirty",r.isDirty)("ng-valid",r.isValid)("ng-invalid",r.isInvalid)("ng-pending",r.isPending)("ng-submitted",r.isSubmitted)},features:[ue]}),e})();const is="VALID",Dl="INVALID",Vo="PENDING",ss="DISABLED";function kf(e){return(wl(e)?e.validators:e)||null}function Of(e,n){return(wl(n)?n.asyncValidators:e)||null}function wl(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class GD{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===is}get invalid(){return this.status===Dl}get pending(){return this.status==Vo}get disabled(){return this.status===ss}get enabled(){return this.status!==ss}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(LD(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(LD(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(VD(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(VD(n,this._rawAsyncValidators))}hasValidator(n){return _l(this._rawValidators,n)}hasAsyncValidator(n){return _l(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Vo,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=ss,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=is,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===is||this.status===Vo)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ss:is}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Vo,this._hasOwnPendingAsyncValidator=!0;const t=TD(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,o)=>r&&r._find(o),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new be,this.statusChanges=new be}_calculateStatus(){return this._allControlsDisabled()?ss:this.errors?Dl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Vo)?Vo:this._anyControlsHaveStatus(Dl)?Dl:is}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){wl(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function Uk(e){return Array.isArray(e)?If(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function Bk(e){return Array.isArray(e)?Tf(e):e||null}(this._rawAsyncValidators)}}class Pf extends GD{constructor(n,t,r){super(kf(t),Of(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){(function zD(e,n,t){e._forEachChild((r,o)=>{if(void 0===t[o])throw new E(1002,"")})})(this,0,n),Object.keys(n).forEach(r=>{(function BD(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new E(1e3,"");if(!r[t])throw new E(1001,"")})(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const o=this.controls[r];o&&o.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,o)=>{r.reset(n[o],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,o)=>((r.enabled||this.disabled)&&(t[o]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((o,i)=>{r=t(r,o,i)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}const $o=new O("CallSetDisabledState",{providedIn:"root",factory:()=>Ml}),Ml="always";function as(e,n,t=Ml){xf(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function Wk(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&WD(e,n)})}(e,n),function Zk(e,n){const t=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function qk(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&WD(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function Gk(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function Sl(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function xf(e,n){const t=function xD(e){return e._rawValidators}(e);null!==n.validator?e.setValidators(PD(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=function FD(e){return e._rawAsyncValidators}(e);null!==n.asyncValidator?e.setAsyncValidators(PD(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();Sl(n._rawValidators,o),Sl(n._rawAsyncValidators,o)}function WD(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const Jk={provide:pt,useExisting:fe(()=>Tl)},ls=(()=>Promise.resolve())();let Tl=(()=>{class e extends pt{constructor(t,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new be,this.form=new Pf({},If(t),Tf(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){ls.then(()=>{const r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),as(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){ls.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){ls.then(()=>{const r=this._findContainer(t.path),o=new Pf({});(function qD(e,n){xf(e,n)})(o,t),r.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){ls.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){ls.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,function ZD(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return e.\u0275fac=function(t){return new(t||e)(D(lt,10),D(yr,10),D($o,8))},e.\u0275dir=j({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,r){1&t&&I("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ye([Jk]),ue]}),e})();function YD(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function XD(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const QD=class extends GD{constructor(n=null,t,r){super(kf(t),Of(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),wl(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=XD(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){YD(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){YD(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){XD(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},nO={provide:vr,useExisting:fe(()=>gt)},e0=(()=>Promise.resolve())();let gt=(()=>{class e extends vr{constructor(t,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new QD,this._registered=!1,this.name="",this.update=new be,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Vf(e,n){if(!n)return null;let t,r,o;return Array.isArray(n),n.forEach(i=>{i.constructor===at?t=i:function Qk(e){return Object.getPrototypeOf(e.constructor)===jr}(i)?r=i:o=i}),o||r||t||null}(0,i)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function Lf(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){as(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){e0.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const r=t.isDisabled.currentValue,o=0!==r&&Lo(r);e0.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?function El(e,n){return[...n.path,e]}(t,this._parent):[t]}}return e.\u0275fac=function(t){return new(t||e)(D(pt,9),D(lt,10),D(yr,10),D(Nn,10),D(el,8),D($o,8))},e.\u0275dir=j({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ye([nO]),ue,jt]}),e})(),t0=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=j({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),r0=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Yt({type:e}),e.\u0275inj=Ht({}),e})(),SO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Yt({type:e}),e.\u0275inj=Ht({imports:[r0]}),e})(),TO=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:$o,useValue:t.callSetDisabledState??Ml}]}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Yt({type:e}),e.\u0275inj=Ht({imports:[SO]}),e})();function U(...e){return He(e,ri(e))}function Ho(e,n){return de(n)?Qe(e,n,1):Qe(e,1)}function nr(e,n){return Xe((t,r)=>{let o=0;t.subscribe(We(r,i=>e.call(n,i,o++)&&r.next(i)))})}function Rn(e,n){return Xe((t,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();t.subscribe(We(r,l=>{o?.unsubscribe();let u=0;const c=i++;Vt(e(l,c)).subscribe(o=We(r,d=>r.next(n?n(l,d,c,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}class Al{}class Gf{}class Le{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?this.lazyInit="string"==typeof n?()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const o=t.slice(0,r),i=o.toLowerCase(),s=t.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{let o;if(o="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(i=>i.toString()),o.length>0){const i=t.toLowerCase();this.headers.set(i,o),this.maybeSetNormalizedName(t,i)}})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof Le?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new Le;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Le?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const o=("a"===n.op?this.headers.get(t):void 0)||[];o.push(...r),this.headers.set(t,o);break;case"d":const i=n.value;if(i){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class AO{encodeKey(n){return w0(n)}encodeValue(n){return w0(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const RO=/%(\d[a-f0-9])/gi,kO={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function w0(e){return encodeURIComponent(e).replace(RO,(n,t)=>kO[t]??n)}function Nl(e){return`${e}`}class _r{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new AO,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function NO(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,i)),n.decodeValue(o.slice(i+1))],l=t.get(s)||[];l.push(a),t.set(s,l)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],o=Array.isArray(r)?r.map(Nl):[Nl(r)];this.map.set(t,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const o=n[r];Array.isArray(o)?o.forEach(i=>{t.push({param:r,value:i,op:"a"})}):t.push({param:r,value:o,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new _r({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(Nl(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const o=r.indexOf(Nl(n.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class OO{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function M0(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function E0(e){return typeof Blob<"u"&&e instanceof Blob}function b0(e){return typeof FormData<"u"&&e instanceof FormData}class us{constructor(n,t,r,o){let i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function PO(e){switch(e){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new Le),this.context||(this.context=new OO),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":ad.set(f,n.setHeaders[f]),l)),n.setParams&&(u=Object.keys(n.setParams).reduce((d,f)=>d.set(f,n.setParams[f]),u)),new us(t,r,i,{params:u,headers:l,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var Ve=(()=>((Ve=Ve||{})[Ve.Sent=0]="Sent",Ve[Ve.UploadProgress=1]="UploadProgress",Ve[Ve.ResponseHeader=2]="ResponseHeader",Ve[Ve.DownloadProgress=3]="DownloadProgress",Ve[Ve.Response=4]="Response",Ve[Ve.User=5]="User",Ve))();class Wf{constructor(n,t=200,r="OK"){this.headers=n.headers||new Le,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class qf extends Wf{constructor(n={}){super(n),this.type=Ve.ResponseHeader}clone(n={}){return new qf({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class jo extends Wf{constructor(n={}){super(n),this.type=Ve.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new jo({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class S0 extends Wf{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}function Zf(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let kn=(()=>{class e{constructor(t){this.handler=t}request(t,r,o={}){let i;if(t instanceof us)i=t;else{let l,u;l=o.headers instanceof Le?o.headers:new Le(o.headers),o.params&&(u=o.params instanceof _r?o.params:new _r({fromObject:o.params})),i=new us(t,r,void 0!==o.body?o.body:null,{headers:l,context:o.context,params:u,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=U(i).pipe(Ho(l=>this.handler.handle(l)));if(t instanceof us||"events"===o.observe)return s;const a=s.pipe(nr(l=>l instanceof jo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(oe(l=>{if(null!==l.body&&!(l.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return l.body}));case"blob":return a.pipe(oe(l=>{if(null!==l.body&&!(l.body instanceof Blob))throw new Error("Response is not a Blob.");return l.body}));case"text":return a.pipe(oe(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(oe(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new _r).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,o={}){return this.request("PATCH",t,Zf(o,r))}post(t,r,o={}){return this.request("POST",t,Zf(o,r))}put(t,r,o={}){return this.request("PUT",t,Zf(o,r))}}return e.\u0275fac=function(t){return new(t||e)(A(Al))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();function I0(e,n){return n(e)}function FO(e,n){return(t,r)=>n.intercept(t,{handle:o=>e(o,r)})}const T0=new O(""),cs=new O(""),A0=new O("");function VO(){let e=null;return(n,t)=>(null===e&&(e=(N(T0,{optional:!0})??[]).reduceRight(FO,I0)),e(n,t))}let N0=(()=>{class e extends Al{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null}handle(t){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(cs),...this.injector.get(A0,[])]));this.chain=r.reduceRight((o,i)=>function LO(e,n,t){return(r,o)=>t.runInContext(()=>n(r,i=>e(i,o)))}(o,i,this.injector),I0)}return this.chain(t,r=>this.backend.handle(r))}}return e.\u0275fac=function(t){return new(t||e)(A(Gf),A(Dn))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const UO=/^\)\]\}',?\n/;let k0=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");const r=this.xhrFactory;return(r.\u0275loadImpl?He(r.\u0275loadImpl()):U(null)).pipe(Rn(()=>new Se(i=>{const s=r.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((_,T)=>s.setRequestHeader(_,T.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const _=t.detectContentTypeHeader();null!==_&&s.setRequestHeader("Content-Type",_)}if(t.responseType){const _=t.responseType.toLowerCase();s.responseType="json"!==_?_:"text"}const a=t.serializeBody();let l=null;const u=()=>{if(null!==l)return l;const _=s.statusText||"OK",T=new Le(s.getAllResponseHeaders()),x=function BO(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||t.url;return l=new qf({headers:T,status:s.status,statusText:_,url:x}),l},c=()=>{let{headers:_,status:T,statusText:x,url:Q}=u(),ge=null;204!==T&&(ge=typeof s.response>"u"?s.responseText:s.response),0===T&&(T=ge?200:0);let Jo=T>=200&&T<300;if("json"===t.responseType&&"string"==typeof ge){const M4=ge;ge=ge.replace(UO,"");try{ge=""!==ge?JSON.parse(ge):null}catch(E4){ge=M4,Jo&&(Jo=!1,ge={error:E4,text:ge})}}Jo?(i.next(new jo({body:ge,headers:_,status:T,statusText:x,url:Q||void 0})),i.complete()):i.error(new S0({error:ge,headers:_,status:T,statusText:x,url:Q||void 0}))},d=_=>{const{url:T}=u(),x=new S0({error:_,status:s.status||0,statusText:s.statusText||"Unknown Error",url:T||void 0});i.error(x)};let f=!1;const h=_=>{f||(i.next(u()),f=!0);let T={type:Ve.DownloadProgress,loaded:_.loaded};_.lengthComputable&&(T.total=_.total),"text"===t.responseType&&s.responseText&&(T.partialText=s.responseText),i.next(T)},y=_=>{let T={type:Ve.UploadProgress,loaded:_.loaded};_.lengthComputable&&(T.total=_.total),i.next(T)};let C;s.addEventListener("load",c),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),t.reportProgress&&(s.addEventListener("progress",h),null!==a&&s.upload&&s.upload.addEventListener("progress",y));const w=()=>{C??=function GO(){const e=setTimeout(()=>{},zO);return()=>clearTimeout(e)}()},S=()=>{C?.()};return s.addEventListener("loadstart",w),s.addEventListener("loadend",S),s.send(a),i.next({type:Ve.Sent}),()=>{s.removeEventListener("loadstart",w),s.removeEventListener("loadend",S),s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",c),s.removeEventListener("timeout",d),C?.(),t.reportProgress&&(s.removeEventListener("progress",h),null!==a&&s.upload&&s.upload.removeEventListener("progress",y)),s.readyState!==s.DONE&&s.abort()}})))}}return e.\u0275fac=function(t){return new(t||e)(A(WC))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const zO=2147483647,Yf=new O("XSRF_ENABLED"),O0=new O("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),P0=new O("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class x0{}let ZO=(()=>{class e{constructor(t,r,o){this.doc=t,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=FC(t,this.cookieName),this.lastCookieString=t),this.lastToken}}return e.\u0275fac=function(t){return new(t||e)(A(xt),A(Pr),A(O0))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();function YO(e,n){const t=e.url.toLowerCase();if(!N(Yf)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=N(x0).getToken(),o=N(P0);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),n(e)}var Re=(()=>((Re=Re||{})[Re.Interceptors=0]="Interceptors",Re[Re.LegacyInterceptors=1]="LegacyInterceptors",Re[Re.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Re[Re.NoXsrfProtection=3]="NoXsrfProtection",Re[Re.JsonpSupport=4]="JsonpSupport",Re[Re.RequestsMadeViaParent=5]="RequestsMadeViaParent",Re))();function Uo(e,n){return{\u0275kind:e,\u0275providers:n}}function XO(...e){const n=[kn,k0,N0,{provide:Al,useExisting:N0},{provide:Gf,useExisting:k0},{provide:cs,useValue:YO,multi:!0},{provide:Yf,useValue:!0},{provide:x0,useClass:ZO}];for(const t of e)n.push(...t.\u0275providers);return function gc(e){return{\u0275providers:e}}(n)}const F0=new O("LEGACY_INTERCEPTOR_FN");let KO=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Yt({type:e}),e.\u0275inj=Ht({providers:[XO(Uo(Re.LegacyInterceptors,[{provide:F0,useFactory:VO},{provide:cs,useExisting:F0,multi:!0}]))]}),e})();function z(e,n,t){const r=de(e)||n||t?{next:e,error:n,complete:t}:e;return r?Xe((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(We(i,l=>{var u;null===(u=r.next)||void 0===u||u.call(r,l),i.next(l)},()=>{var l;a=!1,null===(l=r.complete)||void 0===l||l.call(r),i.complete()},l=>{var u;a=!1,null===(u=r.error)||void 0===u||u.call(r,l),i.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)}))}):Er}function K(e){return Xe((n,t)=>{let i,r=null,o=!1;r=n.subscribe(We(t,void 0,void 0,s=>{i=Vt(e(s,K(e)(n))),r?(r.unsubscribe(),r=null,i.subscribe(t)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(t))})}const On_restServerUrl="https://sf.truyen.network";let Pn=(()=>{class e{constructor(){this.messages=[]}add(t){this.messages.push((new Date).toLocaleTimeString()+") "+t)}clear(){this.messages=[]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class xn{constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Le({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n="operation",t){return r=>{throw this.log(`${n} failed: response status = ${r.status} statusText = ${r.statusText}`),0===r.status&&!1===r.ok?new Error("Could not reach API, check your internet connection."):(console.error(r),new Error(`${n} failed: status = ${r.status}`,{cause:r}))}}log(n){this.appMessageService.add(`ChatMessagesService: ${n}`)}getChatMessages(){return this.http.get(xn.REST_URL,this.httpOptions).pipe(z(n=>this.log(`fetched ${n.length} messages`)),K(this.handleError("getChatMessages",[])))}addChatMessage(n,t){return this.http.post(xn.REST_URL,{author:n,text:t},this.httpOptions).pipe(z(o=>this.log(`added message w/ id=${o.id}`)),K(this.handleError("addChatMessage")))}}xn.REST_URL=On_restServerUrl+"/api/chat",xn.\u0275fac=function(n){return new(n||xn)(A(kn),A(Pn))},xn.\u0275prov=P({token:xn,factory:xn.\u0275fac,providedIn:"root"});const Bo="./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Xf=Array.from({length:64},(e,n)=>n),Rl=e=>Array(e).fill(-1),Cr=[...Rl(46),0,1,...Xf.slice(54,64),...Rl(7),...Xf.slice(2,28),...Rl(6),...Xf.slice(28,54),...Rl(5)],L0=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],V0=[3509652390,2564797868,805139163,3491422135,3101798381,1780907670,3128725573,4046225305,614570311,3012652279,134345442,2240740374,1667834072,1901547113,2757295779,4103290238,227898511,1921955416,1904987480,2182433518,2069144605,3260701109,2620446009,720527379,3318853667,677414384,3393288472,3101374703,2390351024,1614419982,1822297739,2954791486,3608508353,3174124327,2024746970,1432378464,3864339955,2857741204,1464375394,1676153920,1439316330,715854006,3033291828,289532110,2706671279,2087905683,3018724369,1668267050,732546397,1947742710,3462151702,2609353502,2950085171,1814351708,2050118529,680887927,999245976,1800124847,3300911131,1713906067,1641548236,4213287313,1216130144,1575780402,4018429277,3917837745,3693486850,3949271944,596196993,3549867205,258830323,2213823033,772490370,2760122372,1774776394,2652871518,566650946,4142492826,1728879713,2882767088,1783734482,3629395816,2517608232,2874225571,1861159788,326777828,3124490320,2130389656,2716951837,967770486,1724537150,2185432712,2364442137,1164943284,2105845187,998989502,3765401048,2244026483,1075463327,1455516326,1322494562,910128902,469688178,1117454909,936433444,3490320968,3675253459,1240580251,122909385,2157517691,634681816,4142456567,3825094682,3061402683,2540495037,79693498,3249098678,1084186820,1583128258,426386531,1761308591,1047286709,322548459,995290223,1845252383,2603652396,3431023940,2942221577,3202600964,3727903485,1712269319,422464435,3234572375,1170764815,3523960633,3117677531,1434042557,442511882,3600875718,1076654713,1738483198,4213154764,2393238008,3677496056,1014306527,4251020053,793779912,2902807211,842905082,4246964064,1395751752,1040244610,2656851899,3396308128,445077038,3742853595,3577915638,679411651,2892444358,2354009459,1767581616,3150600392,3791627101,3102740896,284835224,4246832056,1258075500,768725851,2589189241,3069724005,3532540348,1274779536,3789419226,2764799539,1660621633,3471099624,4011903706,913787905,3497959166,737222580,2514213453,2928710040,3937242737,1804850592,3499020752,2949064160,2386320175,2390070455,2415321851,4061277028,2290661394,2416832540,1336762016,1754252060,3520065937,3014181293,791618072,3188594551,3933548030,2332172193,3852520463,3043980520,413987798,3465142937,3030929376,4245938359,2093235073,3534596313,375366246,2157278981,2479649556,555357303,3870105701,2008414854,3344188149,4221384143,3956125452,2067696032,3594591187,2921233993,2428461,544322398,577241275,1471733935,610547355,4027169054,1432588573,1507829418,2025931657,3646575487,545086370,48609733,2200306550,1653985193,298326376,1316178497,3007786442,2064951626,458293330,2589141269,3591329599,3164325604,727753846,2179363840,146436021,1461446943,4069977195,705550613,3059967265,3887724982,4281599278,3313849956,1404054877,2845806497,146425753,1854211946,1266315497,3048417604,3681880366,3289982499,290971e4,1235738493,2632868024,2414719590,3970600049,1771706367,1449415276,3266420449,422970021,1963543593,2690192192,3826793022,1062508698,1531092325,1804592342,2583117782,2714934279,4024971509,1294809318,4028980673,1289560198,2221992742,1669523910,35572830,157838143,1052438473,1016535060,1802137761,1753167236,1386275462,3080475397,2857371447,1040679964,2145300060,2390574316,1461121720,2956646967,4031777805,4028374788,33600511,2920084762,1018524850,629373528,3691585981,3515945977,2091462646,2486323059,586499841,988145025,935516892,3367335476,2599673255,2839830854,265290510,3972581182,2759138881,3795373465,1005194799,847297441,406762289,1314163512,1332590856,1866599683,4127851711,750260880,613907577,1450815602,3165620655,3734664991,3650291728,3012275730,3704569646,1427272223,778793252,1343938022,2676280711,2052605720,1946737175,3164576444,3914038668,3967478842,3682934266,1661551462,3294938066,4011595847,840292616,3712170807,616741398,312560963,711312465,1351876610,322626781,1910503582,271666773,2175563734,1594956187,70604529,3617834859,1007753275,1495573769,4069517037,2549218298,2663038764,504708206,2263041392,3941167025,2249088522,1514023603,1998579484,1312622330,694541497,2582060303,2151582166,1382467621,776784248,2618340202,3323268794,2497899128,2784771155,503983604,4076293799,907881277,423175695,432175456,1378068232,4145222326,3954048622,3938656102,3820766613,2793130115,2977904593,26017576,3274890735,3194772133,1700274565,1756076034,4006520079,3677328699,720338349,1533947780,354530856,688349552,3973924725,1637815568,332179504,3949051286,53804574,2852348879,3044236432,1282449977,3583942155,3416972820,4006381244,1617046695,2628476075,3002303598,1686838959,431878346,2686675385,1700445008,1080580658,1009431731,832498133,3223435511,2605976345,2271191193,2516031870,1648197032,4164389018,2548247927,300782431,375919233,238389289,3353747414,2531188641,2019080857,1475708069,455242339,2609103871,448939670,3451063019,1395535956,2413381860,1841049896,1491858159,885456874,4264095073,4001119347,1565136089,3898914787,1108368660,540939232,1173283510,2745871338,3681308437,4207628240,3343053890,4016749493,1699691293,1103962373,3625875870,2256883143,3830138730,1031889488,3479347698,1535977030,4236805024,3251091107,2132092099,1774941330,1199868427,1452454533,157007616,2904115357,342012276,595725824,1480756522,206960106,497939518,591360097,863170706,2375253569,3596610801,1814182875,2094937945,3421402208,1082520231,3463918190,2785509508,435703966,3908032597,1641649973,2842273706,3305899714,1510255612,2148256476,2655287854,3276092548,4258621189,236887753,3681803219,274041037,1734335097,3815195456,3317970021,1899903192,1026095262,4050517792,356393447,2410691914,3873677099,3682840055,3913112168,2491498743,4132185628,2489919796,1091903735,1979897079,3170134830,3567386728,3557303409,857797738,1136121015,1342202287,507115054,2535736646,337727348,3213592640,1301675037,2528481711,1895095763,1721773893,3216771564,62756741,2142006736,835421444,2531993523,1442658625,3659876326,2882144922,676362277,1392781812,170690266,3921047035,1759253602,3611846912,1745797284,664899054,1329594018,3901205900,3045908486,2062866102,2865634940,3543621612,3464012697,1080764994,553557557,3656615353,3996768171,991055499,499776247,1265440854,648242737,3940784050,980351604,3713745714,1749149687,3396870395,4211799374,3640570775,1161844396,3125318951,1431517754,545492359,4268468663,3499529547,1437099964,2702547544,3433638243,2581715763,2787789398,1060185593,1593081372,2418618748,4260947970,69676912,2159744348,86519011,2512459080,3838209314,1220612927,3339683548,133810670,1090789135,1078426020,1569222167,845107691,3583754449,4072456591,1091646820,628848692,1613405280,3757631651,526609435,236106946,48312990,2942717905,3402727701,1797494240,859738849,992217954,4005476642,2243076622,3870952857,3732016268,765654824,3490871365,2511836413,1685915746,3888969200,1414112111,2273134842,3281911079,4080962846,172450625,2569994100,980381355,4109958455,2819808352,2716589560,2568741196,3681446669,3329971472,1835478071,660984891,3704678404,4045999559,3422617507,3040415634,1762651403,1719377915,3470491036,2693910283,3642056355,3138596744,1364962596,2073328063,1983633131,926494387,3423689081,2150032023,4096667949,1749200295,3328846651,309677260,2016342300,1779581495,3079819751,111262694,1274766160,443224088,298511866,1025883608,3806446537,1145181785,168956806,3641502830,3584813610,1689216846,3666258015,3200248200,1692713982,2646376535,4042768518,1618508792,1610833997,3523052358,4130873264,2001055236,3610705100,2202168115,4028541809,2961195399,1006657119,2006996926,3186142756,1430667929,3210227297,1314452623,4074634658,4101304120,2273951170,1399257539,3367210612,3027628629,1190975929,2062231137,2333990788,2221543033,2438960610,1181637006,548689776,2362791313,3372408396,3104550113,3145860560,296247880,1970579870,3078560182,3769228297,1714227617,3291629107,3898220290,166772364,1251581989,493813264,448347421,195405023,2709975567,677966185,3703036547,1463355134,2715995803,1338867538,1343315457,2802222074,2684532164,233230375,2599980071,2000651841,3277868038,1638401717,4028070440,3237316320,6314154,819756386,300326615,590932579,1405279636,3267499572,3150704214,2428286686,3959192993,3461946742,1862657033,1266418056,963775037,2089974820,2263052895,1917689273,448879540,3550394620,3981727096,150775221,3627908307,1303187396,508620638,2975983352,2726630617,1817252668,1876281319,1457606340,908771278,3720792119,3617206836,2455994898,1729034894,1080033504,976866871,3556439503,2881648439,1522871579,1555064734,1336096578,3548522304,2579274686,3574697629,3205460757,3593280638,3338716283,3079412587,564236357,2993598910,1781952180,1464380207,3163844217,3332601554,1699332808,1393555694,1183702653,3581086237,1288719814,691649499,2847557200,2895455976,3193889540,2717570544,1781354906,1676643554,2592534050,3230253752,1126444790,2770207658,2633158820,2210423226,2615765581,2414155088,3127139286,673620729,2805611233,1269405062,4015350505,3341807571,4149409754,1057255273,2012875353,2162469141,2276492801,2601117357,993977747,3918593370,2654263191,753973209,36408145,2530585658,25011837,3520020182,2088578344,530523599,2918365339,1524020338,1518925132,3760827505,3759777254,1202760957,3985898139,3906192525,674977740,4174734889,2031300136,2019492241,3983892565,4153806404,3822280332,352677332,2297720250,60907813,90501309,3286998549,1016092578,2535922412,2839152426,457141659,509813237,4120667899,652014361,1966332200,2975202805,55981186,2327461051,676427537,3255491064,2882294119,3433927263,1307055953,942726286,933058658,2468411793,3933900994,4215176142,1361170020,2001714738,2830558078,3274259782,1222529897,1679025792,2729314320,3714953764,1770335741,151462246,3013232138,1682292957,1483529935,471910574,1539241949,458788160,3436315007,1807016891,3718408830,978976581,1043663428,3165965781,1927990952,4200891579,2372276910,3208408903,3533431907,1412390302,2931980059,4132332400,1947078029,3881505623,4168226417,2941484381,1077988104,1320477388,886195818,18198404,3786409e3,2509781533,112762804,3463356488,1866414978,891333506,18488651,661792760,1628790961,3885187036,3141171499,876946877,2693282273,1372485963,791857591,2686433993,3759982718,3167212022,3472953795,2716379847,445679433,3561995674,3504004811,3574258232,54117162,3331405415,2381918588,3769707343,4154350007,1140177722,4074052095,668550556,3214352940,367459370,261225585,2610173221,4209349473,3468074219,3265815641,314222801,3066103646,3808782860,282218597,3406013506,3773591054,379116347,1285071038,846784868,2669647154,3771962079,3550491691,2305946142,453669953,1268987020,3317592352,3279303384,3744833421,2610507566,3859509063,266596637,3847019092,517658769,3462560207,3443424879,370717030,4247526661,2224018117,4143653529,4112773975,2788324899,2477274417,1456262402,2901442914,1517677493,1846949527,2295493580,3734397586,2176403920,1280348187,1908823572,3871786941,846861322,1172426758,3287448474,3383383037,1655181056,3139813346,901632758,1897031941,2986607138,3066810236,3447102507,1393639104,373351379,950779232,625454576,3124240540,4148612726,2007998917,544563296,2244738638,2330496472,2058025392,1291430526,424198748,50039436,29584100,3605783033,2429876329,2791104160,1057563949,3255363231,3075367218,3463963227,1469046755,985887462],$0=[1332899944,1700884034,1701343084,1684370003,1668446532,1869963892],Qf=(e,n)=>{if(n<=0||n>e.length)throw Error(`Illegal len: ${n}`);let r,o,t=0;const i=[];for(;t>2&63]),r=(3&r)<<4,t>=n){i.push(Bo[63&r]);break}if(o=255&e[t++],r|=o>>4&15,i.push(Bo[63&r]),r=(15&o)<<2,t>=n){i.push(Bo[63&r]);break}o=255&e[t++],r|=o>>6&3,i.push(Bo[63&r]),i.push(Bo[63&o])}return i.join("")},kl="object"==typeof process&&"edge"===process.env.NEXT_RUNTIME?setTimeout:"function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:setTimeout,fs=(e,n,t,r)=>{let o,i=e[n],s=e[n+1];return i^=t[0],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[1],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[2],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[3],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[4],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[5],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[6],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[7],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[8],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[9],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[10],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[11],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[12],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[13],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[14],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[15],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[16],e[n]=s^t[17],e[n+1]=i,e},zo=(e,n)=>{let t=0;for(let r=0;r<4;++r)t=t<<8|255&e[n],n=(n+1)%e.length;return{key:t,offp:n}},H0=(e,n,t)=>{const r=n.length,o=t.length;let a,i=0,s=[0,0];for(let l=0;l{const i=$0.slice(),s=i.length;if(t<4||t>31){const f=new Error(`Illegal number of rounds (4-31): ${t}`);if(!1===r)return Promise.reject(f);throw f}if(16!==n.length){const f=new Error(`Illegal salt length: ${n.length} != 16`);if(!1===r)return Promise.reject(f);throw f}t=1<>>0;let a,l,c,u=0;Int32Array?(a=new Int32Array(L0),l=new Int32Array(V0)):(a=L0.slice(),l=V0.slice()),((e,n,t,r)=>{const o=t.length,i=r.length;let l,s=0,a=[0,0];for(let u=0;u{if(o&&o(u/t),!(u>1;c++)fs(i,c<<1,a,l);const f=[];for(u=0;u>24&255)>>>0),f.push((i[u]>>16&255)>>>0),f.push((i[u]>>8&255)>>>0),f.push((255&i[u])>>>0);return!1===r?Promise.resolve(f):f}{const f=Date.now();for(;u100)););}if(!1===r)return new Promise(f=>kl(()=>{d().then(f)}))};if(!1===r)return d();{let f;for(;;)if(typeof(f=d())<"u")return f||[]}},Kf=(e=10)=>{if("number"!=typeof e)throw Error("Illegal arguments: "+typeof e);e<4?e=4:e>31&&(e=31);const n=[];return n.push("$2a$"),e<10&&n.push("0"),n.push(e.toString()),n.push("$"),n.push(Qf((e=>{try{let n;n=typeof window<"u"?window.crypto??window.msCrypto:globalThis.crypto;const t=new Uint32Array(16);return n?.getRandomValues(t),Array.from(t)}catch{throw Error("WebCryptoAPI is not available")}})(),16)),n.join("")};const U0=(e,n=10)=>{if("number"==typeof n&&(n=Kf(n)),"string"!=typeof e||"string"!=typeof n)throw Error("Illegal arguments: "+typeof e+", "+typeof n);return function Jf(e,n,t,r){if("string"!=typeof e||"string"!=typeof n){const h=new Error("Invalid string / salt: Not a string");if(!1===t)return Promise.reject(h);throw h}let o,i;if("$"!==n.charAt(0)||"2"!==n.charAt(1)){const h=new Error("Invalid salt version: "+n.substring(0,2));if(!1===t)return Promise.reject(h);throw h}if("$"===n.charAt(2))o="\0",i=3;else{if(o=n.charAt(2),"a"!==o&&"b"!==o&&"y"!==o||"$"!==n.charAt(3)){const h=Error("Invalid salt revision: "+n.substring(2,4));if(!1===t)return Promise.reject(h);throw h}i=4}if(n.charAt(i+2)>"$"){const h=new Error("Missing salt rounds");if(!1===t)return Promise.reject(h);throw h}const l=10*parseInt(n.substring(i,i+1),10)+parseInt(n.substring(i+1,i+2),10),u=n.substring(i+3,i+25),c=(e=>{const n=[];let t=0;return((e,n)=>{((e,n)=>{let t,r=null;for(;null!==(t=null!==r?r:e());)t>=55296&&t<=57343&&null!==(r=e())&&r>=56320&&r<=57343?(n(1024*(t-55296)+r-56320+65536),r=null):n(t);null!==r&&n(r)})(e,function(t){((e,n)=>{let t=null;for("number"==typeof e&&(t=e,e=()=>null);null!==t||null!==(t=e());)t<128?n(127&t):t<2048?(n(t>>6&31|192),n(63&t|128)):t<65536?(n(t>>12&15|224),n(t>>6&63|128),n(63&t|128)):(n(t>>18&7|240),n(t>>12&63|128),n(t>>6&63|128),n(63&t|128)),t=null})(t,n)})})(()=>t>=e.length?null:e.charCodeAt(t++),r=>{n.push(r)}),n})(e+=o>="a"?"\0":""),d=((e,n)=>{const t=e.length;let i,s,a,l,u,c,r=0,o=0;const d=[];for(;r>>0,u|=(48&s)>>4,d.push(String.fromCharCode(u)),++o>=16||r>=t)||(c=e.charCodeAt(r++),a=c>>0,u|=(60&a)>>2,d.push(String.fromCharCode(u)),++o>=16||r>=t)));)c=e.charCodeAt(r++),l=c>>0,u|=l,d.push(String.fromCharCode(u)),++o;return d.map(f=>f.charCodeAt(0))})(u),f=h=>{const y=[];return y.push("$2"),o>="a"&&y.push(o),y.push("$"),l<10&&y.push("0"),y.push(l.toString()),y.push("$"),y.push(Qf(d,d.length)),y.push(Qf(h,4*$0.length-1)),y.join("")};return!1===t?j0(c,d,l,!1,r).then(h=>f(h)):f(j0(c,d,l,!0,r))}(e,n,!0)};class on extends Hn{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}function eh(...e){const n=ri(e),t=Yh(e),{args:r,keys:o}=pD(e);if(0===r.length)return He([],n);const i=new Se(function pP(e,n,t=Er){return r=>{B0(n,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let l=0;l{const u=He(e[l],n);let c=!1;u.subscribe(We(r,d=>{i[l]=d,c||(c=!0,a--),a||r.next(t(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,n,o?s=>mD(o,s):Er));return t?i.pipe(gD(t)):i}function B0(e,n,t){e?jn(t,e,n):n()}const Ol=ei(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function th(...e){return function gP(){return qr(1)}()(He(e,ri(e)))}function z0(e){return new Se(n=>{Vt(e()).subscribe(n)})}function hs(e,n){const t=de(e)?e:()=>e,r=o=>o.error(t());return new Se(n?o=>n.schedule(r,0,o):r)}function nh(){return Xe((e,n)=>{let t=null;e._refCount++;const r=We(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const o=e._connection,i=t;t=null,o&&(!i||o===i)&&o.unsubscribe(),n.unsubscribe()});e.subscribe(r),r.closed||(t=e.connect())})}class G0 extends Se{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,xh(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new Lt;const t=this.getSubject();n.add(this.source.subscribe(We(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=Lt.EMPTY)}return n}refCount(){return nh()(this)}}function Go(e){return e<=0?()=>hn:Xe((n,t)=>{let r=0;n.subscribe(We(t,o=>{++r<=e&&(t.next(o),e<=r&&t.complete())}))})}function Pl(e){return Xe((n,t)=>{let r=!1;n.subscribe(We(t,o=>{r=!0,t.next(o)},()=>{r||t.next(e),t.complete()}))})}function W0(e=yP){return Xe((n,t)=>{let r=!1;n.subscribe(We(t,o=>{r=!0,t.next(o)},()=>r?t.complete():t.error(e())))})}function yP(){return new Ol}function Br(e,n){const t=arguments.length>=2;return r=>r.pipe(e?nr((o,i)=>e(o,i,r)):Er,Go(1),t?Pl(n):W0(()=>new Ol))}function rh(e){return e<=0?()=>hn:Xe((n,t)=>{let r=[];n.subscribe(We(t,o=>{r.push(o),e{for(const o of r)t.next(o);t.complete()},void 0,()=>{r=null}))})}function oh(e){return Xe((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}const Y="primary",ps=Symbol("RouteTitle");class wP{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function Wo(e){return new wP(e)}function MP(e,n,t){const r=t.path.split("/");if(r.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||r.lengthr[i]===o)}return e===n}function Z0(e){return e.length>0?e[e.length-1]:null}function Dr(e){return function hP(e){return!!e&&(e instanceof Se||de(e.lift)&&de(e.subscribe))}(e)?e:ji(e)?He(Promise.resolve(e)):U(e)}const bP={exact:function Q0(e,n,t){if(!zr(e.segments,n.segments)||!xl(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!e.children[r]||!Q0(e.children[r],n.children[r],t))return!1;return!0},subset:K0},Y0={exact:function SP(e,n){return Fn(e,n)},subset:function IP(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>q0(e[t],n[t]))},ignored:()=>!0};function X0(e,n,t){return bP[t.paths](e.root,n.root,t.matrixParams)&&Y0[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function K0(e,n,t){return J0(e,n,n.segments,t)}function J0(e,n,t,r){if(e.segments.length>t.length){const o=e.segments.slice(0,t.length);return!(!zr(o,t)||n.hasChildren()||!xl(o,t,r))}if(e.segments.length===t.length){if(!zr(e.segments,t)||!xl(e.segments,t,r))return!1;for(const o in n.children)if(!e.children[o]||!K0(e.children[o],n.children[o],r))return!1;return!0}{const o=t.slice(0,e.segments.length),i=t.slice(e.segments.length);return!!(zr(e.segments,o)&&xl(e.segments,o,r)&&e.children[Y])&&J0(e.children[Y],n,i,r)}}function xl(e,n,t){return n.every((r,o)=>Y0[t](e[o].parameters,r.parameters))}class qo{constructor(n=new ce([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Wo(this.queryParams)),this._queryParamMap}toString(){return NP.serialize(this)}}class ce{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Fl(this)}}class gs{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap||(this._parameterMap=Wo(this.parameters)),this._parameterMap}toString(){return nw(this)}}function zr(e,n){return e.length===n.length&&e.every((t,r)=>t.path===n[r].path)}let ms=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return new ih},providedIn:"root"}),e})();class ih{parse(n){const t=new jP(n);return new qo(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${ys(n.root,!0)}`,r=function OP(e){const n=Object.keys(e).map(t=>{const r=e[t];return Array.isArray(r)?r.map(o=>`${Ll(t)}=${Ll(o)}`).join("&"):`${Ll(t)}=${Ll(r)}`}).filter(t=>!!t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${r}${"string"==typeof n.fragment?`#${function RP(e){return encodeURI(e)}(n.fragment)}`:""}`}}const NP=new ih;function Fl(e){return e.segments.map(n=>nw(n)).join("/")}function ys(e,n){if(!e.hasChildren())return Fl(e);if(n){const t=e.children[Y]?ys(e.children[Y],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==Y&&r.push(`${o}:${ys(i,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function AP(e,n){let t=[];return Object.entries(e.children).forEach(([r,o])=>{r===Y&&(t=t.concat(n(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==Y&&(t=t.concat(n(o,r)))}),t}(e,(r,o)=>o===Y?[ys(e.children[Y],!1)]:[`${o}:${ys(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Y]?`${Fl(e)}/${t[0]}`:`${Fl(e)}/(${t.join("//")})`}}function ew(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ll(e){return ew(e).replace(/%3B/gi,";")}function sh(e){return ew(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Vl(e){return decodeURIComponent(e)}function tw(e){return Vl(e.replace(/\+/g,"%20"))}function nw(e){return`${sh(e.path)}${function kP(e){return Object.keys(e).map(n=>`;${sh(n)}=${sh(e[n])}`).join("")}(e.parameters)}`}const PP=/^[^\/()?;#]+/;function ah(e){const n=e.match(PP);return n?n[0]:""}const xP=/^[^\/()?;=#]+/,LP=/^[^=?&#]+/,$P=/^[^&#]+/;class jP{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ce([],{}):new ce([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(r[Y]=new ce(n,t)),r}parseSegment(){const n=ah(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new E(4009,!1);return this.capture(n),new gs(Vl(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function FP(e){const n=e.match(xP);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const o=ah(this.remaining);o&&(r=o,this.capture(r))}n[Vl(t)]=Vl(r)}parseQueryParam(n){const t=function VP(e){const n=e.match(LP);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const s=function HP(e){const n=e.match($P);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=tw(t),i=tw(r);if(n.hasOwnProperty(o)){let s=n[o];Array.isArray(s)||(s=[s],n[o]=s),s.push(i)}else n[o]=i}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=ah(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new E(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):n&&(i=Y);const s=this.parseChildren();t[i]=1===Object.keys(s).length?s[Y]:new ce([],s),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new E(4011,!1)}}function rw(e){return e.segments.length>0?new ce([],{[Y]:e}):e}function ow(e){const n={};for(const r of Object.keys(e.children)){const i=ow(e.children[r]);if(r===Y&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))n[s]=a;else(i.segments.length>0||i.hasChildren())&&(n[r]=i)}return function UP(e){if(1===e.numberOfChildren&&e.children[Y]){const n=e.children[Y];return new ce(e.segments.concat(n.segments),n.children)}return e}(new ce(e.segments,n))}function Gr(e){return e instanceof qo}function iw(e){let n;const o=rw(function t(i){const s={};for(const l of i.children){const u=t(l);s[l.outlet]=u}const a=new ce(i.url,s);return i===e&&(n=a),a}(e.root));return n??o}function sw(e,n,t,r){let o=e;for(;o.parent;)o=o.parent;if(0===n.length)return lh(o,o,o,t,r);const i=function zP(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new lw(!0,0,e);let n=0,t=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Object.entries(i.outlets).forEach(([l,u])=>{a[l]="string"==typeof u?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,l)=>{0==l&&"."===a||(0==l&&""===a?t=!0:".."===a?n++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new lw(t,n,r)}(n);if(i.toRoot())return lh(o,o,new ce([],{}),t,r);const s=function GP(e,n,t){if(e.isAbsolute)return new Hl(n,!0,0);if(!t)return new Hl(n,!1,NaN);if(null===t.parent)return new Hl(t,!0,0);const r=$l(e.commands[0])?0:1;return function WP(e,n,t){let r=e,o=n,i=t;for(;i>o;){if(i-=o,r=r.parent,!r)throw new E(4005,!1);o=r.segments.length}return new Hl(r,!1,o-i)}(t,t.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?_s(s.segmentGroup,s.index,i.commands):uw(s.segmentGroup,s.index,i.commands);return lh(o,s.segmentGroup,a,t,r)}function $l(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function vs(e){return"object"==typeof e&&null!=e&&e.outlets}function lh(e,n,t,r,o){let s,i={};r&&Object.entries(r).forEach(([l,u])=>{i[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===n?t:aw(e,n,t);const a=rw(ow(s));return new qo(a,i,o)}function aw(e,n,t){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===n?t:aw(i,n,t)}),new ce(e.segments,r)}class lw{constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&$l(r[0]))throw new E(4003,!1);const o=r.find(vs);if(o&&o!==Z0(r))throw new E(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Hl{constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}}function uw(e,n,t){if(e||(e=new ce([],{})),0===e.segments.length&&e.hasChildren())return _s(e,n,t);const r=function ZP(e,n,t){let r=0,o=n;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=t.length)return i;const s=e.segments[o],a=t[r];if(vs(a))break;const l=`${a}`,u=r0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!dw(l,u,s))return i;r+=2}else{if(!dw(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,n,t),o=t.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=uw(e.children[i],n,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new ce(e.segments,o)}}function uh(e,n,t){const r=e.segments.slice(0,n);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(n[t]=uh(new ce([],{}),0,r))}),n}function cw(e){const n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function dw(e,n,t){return e==t.path&&Fn(n,t.parameters)}const Cs="imperative";class Ln{constructor(n,t){this.id=n,this.url=t}}class ch extends Ln{constructor(n,t,r="imperative",o=null){super(n,t),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Wr extends Ln{constructor(n,t,r){super(n,t),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class jl extends Ln{constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Ds extends Ln{constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o,this.type=16}}class dh extends Ln{constructor(n,t,r,o){super(n,t),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class XP extends Ln{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=4}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class QP extends Ln{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=7}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class KP extends Ln{constructor(n,t,r,o,i){super(n,t),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=8}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class JP extends Ln{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=5}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ex extends Ln{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=6}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class tx{constructor(n){this.route=n,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class nx{constructor(n){this.route=n,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class rx{constructor(n){this.snapshot=n,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ox{constructor(n){this.snapshot=n,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ix{constructor(n){this.snapshot=n,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sx{constructor(n){this.snapshot=n,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class fw{constructor(n,t,r){this.routerEvent=n,this.position=t,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class ax{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ws,this.attachRef=null}}let ws=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){const o=this.getOrCreateContext(t);o.outlet=r,this.contexts.set(t,o)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new ax,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class hw{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=fh(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){const t=fh(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=hh(n,this._root);return t.length<2?[]:t[t.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return hh(n,this._root).map(t=>t.value)}}function fh(e,n){if(e===n.value)return n;for(const t of n.children){const r=fh(e,t);if(r)return r}return null}function hh(e,n){if(e===n.value)return[n];for(const t of n.children){const r=hh(e,t);if(r.length)return r.unshift(n),r}return[]}class rr{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function Zo(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class pw extends hw{constructor(n,t){super(n),this.snapshot=t,ph(this,n)}toString(){return this.snapshot.toString()}}function gw(e,n){const t=function lx(e,n){const s=new Ul([],{},{},"",{},Y,n,null,{});return new yw("",new rr(s,[]))}(0,n),r=new on([new gs("",{})]),o=new on({}),i=new on({}),s=new on({}),a=new on(""),l=new sn(r,o,s,a,i,Y,n,t.root);return l.snapshot=t.root,new pw(new rr(l,[]),t)}class sn{constructor(n,t,r,o,i,s,a,l){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(oe(u=>u[ps]))??U(void 0),this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i}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(oe(n=>Wo(n)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(oe(n=>Wo(n)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function mw(e,n="emptyOnly"){const t=e.pathFromRoot;let r=0;if("always"!==n)for(r=t.length-1;r>=1;){const o=t[r],i=t[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function ux(e){return e.reduce((n,t)=>({params:{...n.params,...t.params},data:{...n.data,...t.data},resolve:{...t.data,...n.resolve,...t.routeConfig?.data,...t._resolvedData}}),{params:{},data:{},resolve:{}})}(t.slice(r))}class Ul{get title(){return this.data?.[ps]}constructor(n,t,r,o,i,s,a,l,u){this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=l,this._resolve=u}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=Wo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Wo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class yw extends hw{constructor(n,t){super(t),this.url=n,ph(this,t)}toString(){return vw(this._root)}}function ph(e,n){n.value._routerState=e,n.children.forEach(t=>ph(e,t))}function vw(e){const n=e.children.length>0?` { ${e.children.map(vw).join(", ")} } `:"";return`${e.value}${n}`}function gh(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Fn(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),Fn(n.params,t.params)||e.paramsSubject.next(t.params),function EP(e,n){if(e.length!==n.length)return!1;for(let t=0;tFn(t.parameters,n[r].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||mh(e.parent,n.parent))}let yh=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Y,this.activateEvents=new be,this.deactivateEvents=new be,this.attachEvents=new be,this.detachEvents=new be,this.parentContexts=N(ws),this.location=N(en),this.changeDetector=N(el),this.environmentInjector=N(Dn),this.inputBinder=N(Bl,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){const{firstChange:r,previousValue:o}=t.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new E(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new E(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new E(4012,!1);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new E(4013,!1);this._activatedRoute=t;const o=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new cx(t,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:l,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275dir=j({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[jt]}),e})();class cx{constructor(n,t,r){this.route=n,this.childContexts=t,this.parent=r}get(n,t){return n===sn?this.route:n===ws?this.childContexts:this.parent.get(n,t)}}const Bl=new O("");let _w=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:r}=t,o=eh([r.queryParams,r.params,r.data]).pipe(Rn(([i,s,a],l)=>(a={...i,...s,...a},0===l?U(a):Promise.resolve(a)))).subscribe(i=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(t);const s=function eR(e){const n=ie(e);if(!n)return null;const t=new Fi(n);return{get selector(){return t.selector},get type(){return t.componentType},get inputs(){return t.inputs},get outputs(){return t.outputs},get ngContentSelectors(){return t.ngContentSelectors},get isStandalone(){return n.standalone}}}(r.component);if(s)for(const{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,o)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();function Ms(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=n.value;const o=function fx(e,n,t){return n.children.map(r=>{for(const o of t.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Ms(e,r,o);return Ms(e,r)})}(e,n,t);return new rr(r,o)}{if(e.shouldAttach(n.value)){const i=e.retrieve(n.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Ms(e,a)),s}}const r=function hx(e){return new sn(new on(e.url),new on(e.params),new on(e.queryParams),new on(e.fragment),new on(e.data),e.outlet,e.component,e)}(n.value),o=n.children.map(i=>Ms(e,i));return new rr(r,o)}}const vh="ngNavigationCancelingError";function Cw(e,n){const{redirectTo:t,navigationBehaviorOptions:r}=Gr(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=Dw(!1,0,n);return o.url=t,o.navigationBehaviorOptions=r,o}function Dw(e,n,t){const r=new Error("NavigationCancelingError: "+(e||""));return r[vh]=!0,r.cancellationCode=n,t&&(r.url=t),r}function ww(e){return Mw(e)&&Gr(e.url)}function Mw(e){return e&&e[vh]}let Ew=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275cmp=Ke({type:e,selectors:[["ng-component"]],standalone:!0,features:[Xv],decls:1,vars:0,template:function(t,r){1&t&&J(0,"router-outlet")},dependencies:[yh],encapsulation:2}),e})();function _h(e){const n=e.children&&e.children.map(_h),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==Y&&(t.component=Ew),t}function an(e){return e.outlet||Y}function Es(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class Cx{constructor(n,t,r,o,i){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(n){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),gh(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){const o=Zo(t);n.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(n,t,r){const o=n.value,i=t?t.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else i&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=Zo(n);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=Zo(n);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){const o=Zo(t);n.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new sx(i.value.snapshot))}),n.children.length&&this.forwardEvent(new ox(n.value.snapshot))}activateRoutes(n,t,r){const o=n.value,i=t?t.value:null;if(gh(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),gh(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=Es(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,r)}}class bw{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class zl{constructor(n,t){this.component=n,this.route=t}}function Dx(e,n,t){const r=e._root;return bs(r,n?n._root:null,t,[r.value])}function Yo(e,n){const t=Symbol(),r=n.get(e,t);return r===t?"function"!=typeof e||function H1(e){return null!==Os(e)}(e)?n.get(e):e:r}function bs(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=Zo(n);return e.children.forEach(s=>{(function Mx(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function Ex(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!zr(e.url,n.url);case"pathParamsOrQueryParamsChange":return!zr(e.url,n.url)||!Fn(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!mh(e,n)||!Fn(e.queryParams,n.queryParams);default:return!mh(e,n)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new bw(r)):(i.data=s.data,i._resolvedData=s._resolvedData),bs(e,n,i.component?a?a.children:null:t,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new zl(a.outlet.component,s))}else s&&Ss(n,a,o),o.canActivateChecks.push(new bw(r)),bs(e,null,i.component?a?a.children:null:t,r,o)})(s,i[s.value.outlet],t,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Ss(a,t.getContext(s),o)),o}function Ss(e,n,t){const r=Zo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{Ss(s,o.component?n?n.children.getContext(i):null:n,t)}),t.canDeactivateChecks.push(new zl(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function Is(e){return"function"==typeof e}function Sw(e){return e instanceof Ol||"EmptyError"===e?.name}const Gl=Symbol("INITIAL_VALUE");function Xo(){return Rn(e=>eh(e.map(n=>n.pipe(Go(1),function mP(...e){const n=ri(e);return Xe((t,r)=>{(n?th(e,t,n):th(e,t)).subscribe(r)})}(Gl)))).pipe(oe(n=>{for(const t of n)if(!0!==t){if(t===Gl)return Gl;if(!1===t||t instanceof qo)return t}return!0}),nr(n=>n!==Gl),Go(1)))}function Iw(e){return function i1(...e){return kh(e)}(z(n=>{if(Gr(n))throw Cw(0,n)}),oe(n=>!0===n))}class Wl{constructor(n){this.segmentGroup=n||null}}class Tw{constructor(n){this.urlTree=n}}function Qo(e){return hs(new Wl(e))}function Aw(e){return hs(new Tw(e))}class zx{constructor(n,t){this.urlSerializer=n,this.urlTree=t}noMatchError(n){return new E(4002,!1)}lineralizeSegments(n,t){let r=[],o=t.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return U(r);if(o.numberOfChildren>1||!o.children[Y])return hs(new E(4e3,!1));o=o.children[Y]}}applyRedirectCommands(n,t,r){return this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,r)}applyRedirectCreateUrlTree(n,t,r,o){const i=this.createSegmentGroup(n,t.root,r,o);return new qo(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const r={};return Object.entries(n).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=t[a]}else r[o]=i}),r}createSegmentGroup(n,t,r,o){const i=this.createSegments(n,t.segments,r,o);let s={};return Object.entries(t.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(n,l,r,o)}),new ce(i,s)}createSegments(n,t,r,o){return t.map(i=>i.path.startsWith(":")?this.findPosParam(n,i,o):this.findOrReturn(i,r))}findPosParam(n,t,r){const o=r[t.path.substring(1)];if(!o)throw new E(4001,!1);return o}findOrReturn(n,t){let r=0;for(const o of t){if(o.path===n.path)return t.splice(r),o;r++}return n}}const Ch={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Gx(e,n,t,r,o){const i=Dh(e,n,t);return i.matched?(r=function px(e,n){return e.providers&&!e._injector&&(e._injector=md(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,r),function jx(e,n,t,r){const o=n.canMatch;return o&&0!==o.length?U(o.map(s=>{const a=Yo(s,e);return Dr(function Nx(e){return e&&Is(e.canMatch)}(a)?a.canMatch(n,t):e.runInContext(()=>a(n,t)))})).pipe(Xo(),Iw()):U(!0)}(r,n,t).pipe(oe(s=>!0===s?i:{...Ch}))):U(i)}function Dh(e,n,t){if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...Ch}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const o=(n.matcher||MP)(t,e,n);if(!o)return{...Ch};const i={};Object.entries(o.posParams??{}).forEach(([a,l])=>{i[a]=l.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:t.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Nw(e,n,t,r){return t.length>0&&function Zx(e,n,t){return t.some(r=>ql(e,n,r)&&an(r)!==Y)}(e,t,r)?{segmentGroup:new ce(n,qx(r,new ce(t,e.children))),slicedSegments:[]}:0===t.length&&function Yx(e,n,t){return t.some(r=>ql(e,n,r))}(e,t,r)?{segmentGroup:new ce(e.segments,Wx(e,0,t,r,e.children)),slicedSegments:t}:{segmentGroup:new ce(e.segments,e.children),slicedSegments:t}}function Wx(e,n,t,r,o){const i={};for(const s of r)if(ql(e,t,s)&&!o[an(s)]){const a=new ce([],{});i[an(s)]=a}return{...o,...i}}function qx(e,n){const t={};t[Y]=n;for(const r of e)if(""===r.path&&an(r)!==Y){const o=new ce([],{});t[an(r)]=o}return t}function ql(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class Jx{constructor(n,t,r,o,i,s,a){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new zx(this.urlSerializer,this.urlTree)}noMatchError(n){return new E(4002,!1)}recognize(){const n=Nw(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,n,Y).pipe(K(t=>{if(t instanceof Tw)return this.allowRedirects=!1,this.urlTree=t.urlTree,this.match(t.urlTree);throw t instanceof Wl?this.noMatchError(t):t}),oe(t=>{const r=new Ul([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Y,this.rootComponentType,null,{}),o=new rr(r,t),i=new yw("",o),s=function BP(e,n,t=null,r=null){return sw(iw(e),n,t,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root),{state:i,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n.root,Y).pipe(K(r=>{throw r instanceof Wl?this.noMatchError(r):r}))}inheritParamsAndData(n){const t=n.value,r=mw(t,this.paramsInheritanceStrategy);t.params=Object.freeze(r.params),t.data=Object.freeze(r.data),n.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(n,t,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,t,r):this.processSegment(n,t,r,r.segments,o,!0)}processChildren(n,t,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return He(o).pipe(Ho(i=>{const s=r.children[i],a=function vx(e,n){const t=e.filter(r=>an(r)===n);return t.push(...e.filter(r=>an(r)!==n)),t}(t,i);return this.processSegmentGroup(n,a,s,i)}),function _P(e,n){return Xe(function vP(e,n,t,r,o){return(i,s)=>{let a=t,l=n,u=0;i.subscribe(We(s,c=>{const d=u++;l=a?e(l,c,d):(a=!0,c),r&&s.next(l)},o&&(()=>{a&&s.next(l),s.complete()})))}}(e,n,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),Pl(null),function CP(e,n){const t=arguments.length>=2;return r=>r.pipe(e?nr((o,i)=>e(o,i,r)):Er,rh(1),t?Pl(n):W0(()=>new Ol))}(),Qe(i=>{if(null===i)return Qo(r);const s=Rw(i);return function eF(e){e.sort((n,t)=>n.value.outlet===Y?-1:t.value.outlet===Y?1:n.value.outlet.localeCompare(t.value.outlet))}(s),U(s)}))}processSegment(n,t,r,o,i,s){return He(t).pipe(Ho(a=>this.processSegmentAgainstRoute(a._injector??n,t,a,r,o,i,s).pipe(K(l=>{if(l instanceof Wl)return U(null);throw l}))),Br(a=>!!a),K(a=>{if(Sw(a))return function Qx(e,n,t){return 0===n.length&&!e.children[t]}(r,o,i)?U([]):Qo(r);throw a}))}processSegmentAgainstRoute(n,t,r,o,i,s,a){return function Xx(e,n,t,r){return!!(an(e)===r||r!==Y&&ql(n,t,e))&&("**"===e.path||Dh(n,e,t).matched)}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,o,r,i,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(n,o,t,r,i,s):Qo(o):Qo(o)}expandSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(n,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(n,t,r,o){const i=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?Aw(i):this.applyRedirects.lineralizeSegments(r,i).pipe(Qe(s=>{const a=new ce(s,{});return this.processSegment(n,t,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=Dh(t,o,i);if(!a)return Qo(t);const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?Aw(d):this.applyRedirects.lineralizeSegments(o,d).pipe(Qe(f=>this.processSegment(n,r,t,f.concat(u),s,!1)))}matchSegmentAgainstRoute(n,t,r,o,i,s){let a;if("**"===r.path){const l=o.length>0?Z0(o).parameters:{};a=U({snapshot:new Ul(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,kw(r),an(r),r.component??r._loadedComponent??null,r,Ow(r)),consumedSegments:[],remainingSegments:[]}),t.children={}}else a=Gx(t,r,o,n).pipe(oe(({matched:l,consumedSegments:u,remainingSegments:c,parameters:d})=>l?{snapshot:new Ul(u,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,kw(r),an(r),r.component??r._loadedComponent??null,r,Ow(r)),consumedSegments:u,remainingSegments:c}:null));return a.pipe(Rn(l=>null===l?Qo(t):this.getChildConfig(n=r._injector??n,r,o).pipe(Rn(({routes:u})=>{const c=r._loadedInjector??n,{snapshot:d,consumedSegments:f,remainingSegments:h}=l,{segmentGroup:y,slicedSegments:C}=Nw(t,f,h,u);if(0===C.length&&y.hasChildren())return this.processChildren(c,u,y).pipe(oe(S=>null===S?null:[new rr(d,S)]));if(0===u.length&&0===C.length)return U([new rr(d,[])]);const w=an(r)===i;return this.processSegment(c,u,y,C,w?Y:i,!0).pipe(oe(S=>[new rr(d,S)]))}))))}getChildConfig(n,t,r){return t.children?U({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?U({routes:t._loadedRoutes,injector:t._loadedInjector}):function Hx(e,n,t,r){const o=n.canLoad;return void 0===o||0===o.length?U(!0):U(o.map(s=>{const a=Yo(s,e);return Dr(function Sx(e){return e&&Is(e.canLoad)}(a)?a.canLoad(n,t):e.runInContext(()=>a(n,t)))})).pipe(Xo(),Iw())}(n,t,r).pipe(Qe(o=>o?this.configLoader.loadChildren(n,t).pipe(z(i=>{t._loadedRoutes=i.routes,t._loadedInjector=i.injector})):function Bx(e){return hs(Dw(!1,3))}())):U({routes:[],injector:n})}}function tF(e){const n=e.value.routeConfig;return n&&""===n.path}function Rw(e){const n=[],t=new Set;for(const r of e){if(!tF(r)){n.push(r);continue}const o=n.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),t.add(o)):n.push(r)}for(const r of t){const o=Rw(r.children);n.push(new rr(r.value,o))}return n.filter(r=>!t.has(r))}function kw(e){return e.data||{}}function Ow(e){return e.resolve||{}}function Pw(e){return"string"==typeof e.title||null===e.title}function wh(e){return Rn(n=>{const t=e(n);return t?He(t).pipe(oe(()=>n)):U(n)})}const Ko=new O("ROUTES");let Mh=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=N($_)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return U(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const r=Dr(t.loadComponent()).pipe(oe(xw),z(i=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=i}),oh(()=>{this.componentLoaders.delete(t)})),o=new G0(r,()=>new Hn).pipe(nh());return this.componentLoaders.set(t,o),o}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return U({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(oe(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u;return Array.isArray(a)?u=a:(l=a.create(t).injector,u=l.get(Ko,[],V.Self|V.Optional).flat()),{routes:u.map(_h),injector:l}}),oh(()=>{this.childrenLoaders.delete(r)})),s=new G0(i,()=>new Hn).pipe(nh());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(t){return Dr(t()).pipe(oe(xw),Qe(r=>r instanceof Zv||Array.isArray(r)?U(r):He(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function xw(e){return function lF(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Zl=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Hn,this.configLoader=N(Mh),this.environmentInjector=N(Dn),this.urlSerializer=N(ms),this.rootContexts=N(ws),this.inputBindingEnabled=null!==N(Bl,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>U(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new nx(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new tx(o))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:r})}setupNavigations(t){return this.transitions=new on({id:0,currentUrlTree:t.currentUrlTree,currentRawUrl:t.currentUrlTree,extractedUrl:t.urlHandlingStrategy.extract(t.currentUrlTree),urlAfterRedirects:t.urlHandlingStrategy.extract(t.currentUrlTree),rawUrl:t.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Cs,restoredState:null,currentSnapshot:t.routerState.snapshot,targetSnapshot:null,currentRouterState:t.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(nr(r=>0!==r.id),oe(r=>({...r,extractedUrl:t.urlHandlingStrategy.extract(r.rawUrl)})),Rn(r=>{let o=!1,i=!1;return U(r).pipe(z(s=>{this.currentNavigation={id:s.id,initialUrl:s.rawUrl,extractedUrl:s.extractedUrl,trigger:s.source,extras:s.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null}}),Rn(s=>{const a=t.browserUrlTree.toString(),l=!t.navigated||s.extractedUrl.toString()!==a||a!==t.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const c="";return this.events.next(new Ds(s.id,t.serializeUrl(r.rawUrl),c,0)),t.rawUrlTree=s.rawUrl,s.resolve(null),hn}if(t.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Fw(s.source)&&(t.browserUrlTree=s.extractedUrl),U(s).pipe(Rn(c=>{const d=this.transitions?.getValue();return this.events.next(new ch(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?hn:Promise.resolve(c)}),function nF(e,n,t,r,o,i){return Qe(s=>function Kx(e,n,t,r,o,i,s="emptyOnly"){return new Jx(e,n,t,r,o,s,i).recognize()}(e,n,t,r,s.extractedUrl,o,i).pipe(oe(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,t.paramsInheritanceStrategy),z(c=>{if(r.targetSnapshot=c.targetSnapshot,r.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},"eager"===t.urlUpdateStrategy){if(!c.extras.skipLocationChange){const f=t.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);t.setBrowserUrl(f,c)}t.browserUrlTree=c.urlAfterRedirects}const d=new XP(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}));if(l&&t.urlHandlingStrategy.shouldProcessUrl(t.rawUrlTree)){const{id:c,extractedUrl:d,source:f,restoredState:h,extras:y}=s,C=new ch(c,this.urlSerializer.serialize(d),f,h);this.events.next(C);const w=gw(0,this.rootComponentType).snapshot;return U(r={...s,targetSnapshot:w,urlAfterRedirects:d,extras:{...y,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new Ds(s.id,t.serializeUrl(r.extractedUrl),c,1)),t.rawUrlTree=s.rawUrl,s.resolve(null),hn}}),z(s=>{const a=new QP(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),oe(s=>r={...s,guards:Dx(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function kx(e,n){return Qe(t=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=t;return 0===s.length&&0===i.length?U({...t,guardsResult:!0}):function Ox(e,n,t,r){return He(e).pipe(Qe(o=>function $x(e,n,t,r,o){const i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return i&&0!==i.length?U(i.map(a=>{const l=Es(n)??o,u=Yo(a,l);return Dr(function Ax(e){return e&&Is(e.canDeactivate)}(u)?u.canDeactivate(e,n,t,r):l.runInContext(()=>u(e,n,t,r))).pipe(Br())})).pipe(Xo()):U(!0)}(o.component,o.route,t,n,r)),Br(o=>!0!==o,!0))}(s,r,o,e).pipe(Qe(a=>a&&function bx(e){return"boolean"==typeof e}(a)?function Px(e,n,t,r){return He(n).pipe(Ho(o=>th(function Fx(e,n){return null!==e&&n&&n(new rx(e)),U(!0)}(o.route.parent,r),function xx(e,n){return null!==e&&n&&n(new ix(e)),U(!0)}(o.route,r),function Vx(e,n,t){const r=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(s=>function wx(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>z0(()=>U(s.guards.map(l=>{const u=Es(s.node)??t,c=Yo(l,u);return Dr(function Tx(e){return e&&Is(e.canActivateChild)}(c)?c.canActivateChild(r,e):u.runInContext(()=>c(r,e))).pipe(Br())})).pipe(Xo())));return U(i).pipe(Xo())}(e,o.path,t),function Lx(e,n,t){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return U(!0);const o=r.map(i=>z0(()=>{const s=Es(n)??t,a=Yo(i,s);return Dr(function Ix(e){return e&&Is(e.canActivate)}(a)?a.canActivate(n,e):s.runInContext(()=>a(n,e))).pipe(Br())}));return U(o).pipe(Xo())}(e,o.route,t))),Br(o=>!0!==o,!0))}(r,i,e,n):U(a)),oe(a=>({...t,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),z(s=>{if(r.guardsResult=s.guardsResult,Gr(s.guardsResult))throw Cw(0,s.guardsResult);const a=new KP(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),nr(s=>!!s.guardsResult||(t.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),wh(s=>{if(s.guards.canActivateChecks.length)return U(s).pipe(z(a=>{const l=new JP(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),Rn(a=>{let l=!1;return U(a).pipe(function rF(e,n){return Qe(t=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=t;if(!o.length)return U(t);let i=0;return He(o).pipe(Ho(s=>function oF(e,n,t,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!Pw(o)&&(i[ps]=o.title),function iF(e,n,t,r){const o=function sF(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return U({});const i={};return He(o).pipe(Qe(s=>function aF(e,n,t,r){const o=Es(n)??r,i=Yo(e,o);return Dr(i.resolve?i.resolve(n,t):o.runInContext(()=>i(n,t)))}(e[s],n,t,r).pipe(Br(),z(a=>{i[s]=a}))),rh(1),function DP(e){return oe(()=>e)}(i),K(s=>Sw(s)?hn:hs(s)))}(i,e,n,r).pipe(oe(s=>(e._resolvedData=s,e.data=mw(e,t).resolve,o&&Pw(o)&&(e.data[ps]=o.title),null)))}(s.route,r,e,n)),z(()=>i++),rh(1),Qe(s=>i===o.length?U(t):hn))})}(t.paramsInheritanceStrategy,this.environmentInjector),z({next:()=>l=!0,complete:()=>{l||(t.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),z(a=>{const l=new ex(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),wh(s=>{const a=l=>{const u=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(l.routeConfig).pipe(z(c=>{l.component=c}),oe(()=>{})));for(const c of l.children)u.push(...a(c));return u};return eh(a(s.targetSnapshot.root)).pipe(Pl(),Go(1))}),wh(()=>this.afterPreactivation()),oe(s=>{const a=function dx(e,n,t){const r=Ms(e,n._root,t?t._root:void 0);return new pw(r,n)}(t.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),z(s=>{t.currentUrlTree=s.urlAfterRedirects,t.rawUrlTree=t.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),t.routerState=s.targetRouterState,"deferred"===t.urlUpdateStrategy&&(s.extras.skipLocationChange||t.setBrowserUrl(t.rawUrlTree,s),t.browserUrlTree=s.urlAfterRedirects)}),((e,n,t,r)=>oe(o=>(new Cx(n,o.targetRouterState,o.currentRouterState,t,r).activate(e),o)))(this.rootContexts,t.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Go(1),z({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,t.navigated=!0,this.events.next(new Wr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(t.currentUrlTree))),t.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),oh(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),K(s=>{if(i=!0,Mw(s)){ww(s)||(t.navigated=!0,t.restoreHistory(r,!0));const a=new jl(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),ww(s)){const l=t.urlHandlingStrategy.merge(s.url,t.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===t.urlUpdateStrategy||Fw(r.source)};t.scheduleNavigation(l,Cs,null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{t.restoreHistory(r,!0);const a=new dh(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(t.errorHandler(s))}catch(l){r.reject(l)}}return hn}))}))}cancelNavigationTransition(t,r,o){const i=new jl(t.id,this.urlSerializer.serialize(t.extractedUrl),r,o);this.events.next(i),t.resolve(!1)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Fw(e){return e!==Cs}let Lw=(()=>{class e{buildTitle(t){let r,o=t.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===Y);return r}getResolvedTitleForRoute(t){return t.data[ps]}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return N(uF)},providedIn:"root"}),e})(),uF=(()=>{class e extends Lw{constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(t){return new(t||e)(A(cD))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),cF=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return N(fF)},providedIn:"root"}),e})();class dF{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let fF=(()=>{class e extends dF{}return e.\u0275fac=function(){let n;return function(r){return(n||(n=tt(e)))(r||e)}}(),e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Yl=new O("",{providedIn:"root",factory:()=>({})});let hF=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:function(){return N(pF)},providedIn:"root"}),e})(),pF=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var Ft=(()=>((Ft=Ft||{})[Ft.COMPLETE=0]="COMPLETE",Ft[Ft.FAILED=1]="FAILED",Ft[Ft.REDIRECTING=2]="REDIRECTING",Ft))();function Vw(e,n){e.events.pipe(nr(t=>t instanceof Wr||t instanceof jl||t instanceof dh||t instanceof Ds),oe(t=>t instanceof Wr||t instanceof Ds?Ft.COMPLETE:t instanceof jl&&(0===t.code||1===t.code)?Ft.REDIRECTING:Ft.FAILED),nr(t=>t!==Ft.REDIRECTING),Go(1)).subscribe(()=>{n()})}function gF(e){throw e}function mF(e,n,t){return n.parse("/")}const yF={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},vF={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let $e=(()=>{class e{get navigationId(){return this.navigationTransitions.navigationId}get browserPageId(){if("computed"===this.canceledNavigationResolution)return this.location.getState()?.\u0275routerPageId}get events(){return this.navigationTransitions.events}constructor(){this.disposed=!1,this.currentPageId=0,this.console=N(V_),this.isNgZoneEnabled=!1,this.options=N(Yl,{optional:!0})||{},this.pendingTasks=N(DC),this.errorHandler=this.options.errorHandler||gF,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||mF,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=N(hF),this.routeReuseStrategy=N(cF),this.titleStrategy=N(Lw),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.config=N(Ko,{optional:!0})?.flat()??[],this.navigationTransitions=N(Zl),this.urlSerializer=N(ms),this.location=N(il),this.componentInputBindingEnabled=!!N(Bl,{optional:!0}),this.isNgZoneEnabled=N(ve)instanceof ve&&ve.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new qo,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=gw(0,null),this.navigationTransitions.setupNavigations(this).subscribe(t=>{this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId??0},t=>{this.console.warn(`Unhandled Navigation Error: ${t}`)})}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const t=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),Cs,t)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(t=>{const r="popstate"===t.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(t.url,r,t.state)},0)}))}navigateToSyncWithBrowser(t,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const l={...o};delete l.navigationId,delete l.\u0275routerPageId,0!==Object.keys(l).length&&(i.state=l)}const a=this.parseUrl(t);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(_h),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(t,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:l}=r,u=l?this.currentUrlTree.fragment:s;let d,c=null;switch(a){case"merge":c={...this.currentUrlTree.queryParams,...i};break;case"preserve":c=this.currentUrlTree.queryParams;break;default:c=i||null}null!==c&&(c=this.removeEmptyProps(c));try{d=iw(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||!t[0].startsWith("/"))&&(t=[]),d=this.currentUrlTree.root}return sw(d,t,c,u??null)}navigateByUrl(t,r={skipLocationChange:!1}){const o=Gr(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Cs,null,r)}navigate(t,r={skipLocationChange:!1}){return function _F(e){for(let n=0;n{const i=t[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(t,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,l,u;s?(a=s.resolve,l=s.reject,u=s.promise):u=new Promise((d,f)=>{a=d,l=f});const c=this.pendingTasks.add();return Vw(this,()=>{Promise.resolve().then(()=>this.pendingTasks.remove(c))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:i,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}setBrowserUrl(t,r){const o=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,(this.browserPageId??0)+1)};this.location.go(o,"",i)}}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-(this.browserPageId??this.currentPageId);0!==i?this.location.historyGo(i):this.currentUrlTree===this.getCurrentNavigation()?.finalUrl&&0===i&&(this.resetState(t),this.browserUrlTree=t.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=t.currentRouterState,this.currentUrlTree=t.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Vn=(()=>{class e{constructor(t,r,o,i,s,a){this.router=t,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this._preserveFragment=!1,this._skipLocationChange=!1,this._replaceUrl=!1,this.href=null,this.commands=null,this.onChanges=new Hn;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=t.events.subscribe(u=>{u instanceof Wr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(t){this._preserveFragment=Lo(t)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(t){this._skipLocationChange=Lo(t)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(t){this._replaceUrl=Lo(t)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,r,o,i,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==t||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(this.urlTree,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){this.href=null!==this.urlTree&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null;const t=null===this.href?null:function lm(e,n,t){return function $b(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?am:pc}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(t,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,t,r):o.removeAttribute(i,t)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return e.\u0275fac=function(t){return new(t||e)(D($e),D(sn),function ra(e){return function uE(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const r=t.length;let o=0;for(;o{class e{get isActive(){return this._isActive}constructor(t,r,o,i,s){this.router=t,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new be,this.routerEventsSubscription=t.events.subscribe(a=>{a instanceof Wr&&this.update()})}ngAfterContentInit(){U(this.links.changes,U(null)).pipe(qr()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const t=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=He(t).pipe(qr()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(t){const r=Array.isArray(t)?t:t.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const t=this.hasActiveLinks();this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.classes.forEach(r=>{t?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),t&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this.isActiveChange.emit(t))})}isLinkActive(t){const r=function CF(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&t.isActive(o.urlTree,r)}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}}return e.\u0275fac=function(t){return new(t||e)(D($e),D(Ot),D(Yn),D(el),D(Vn,8))},e.\u0275dir=j({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(t,r,o){if(1&t&&function v_(e,n,t,r){const o=ne();if(o.firstCreatePass){const i=et();C_(o,new m_(n,t,r),i.index),function HA(e,n){const t=e.contentQueries||(e.contentQueries=[]);n!==(t.length?t[t.length-1]:-1)&&t.push(e.queries.length-1,n)}(o,e),2==(2&t)&&(o.staticContentQueries=!0)}__(o,M(),t)}(o,Vn,5),2&t){let i;Xi(i=Qi())&&(r.links=i)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[jt]}),e})();class Hw{}let DF=(()=>{class e{constructor(t,r,o,i,s){this.router=t,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(nr(t=>t instanceof Wr),Ho(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=md(i.providers,t,`Route: ${i.path}`));const s=i._injector??t,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return He(o).pipe(qr())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):U(null);const i=o.pipe(Qe(s=>null===s?U(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return r.loadComponent&&!r._loadedComponent?He([i,this.loader.loadComponent(r)]).pipe(qr()):i})}}return e.\u0275fac=function(t){return new(t||e)(A($e),A($_),A(Dn),A(Hw),A(Mh))},e.\u0275prov=P({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Eh=new O("");let jw=(()=>{class e{constructor(t,r,o,i,s={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},s.scrollPositionRestoration=s.scrollPositionRestoration||"disabled",s.anchorScrolling=s.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof ch?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof Wr?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof Ds&&0===t.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof fw&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new fw(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(t){!function Um(){throw new Error("invalid")}()},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();function or(e,n){return{\u0275kind:e,\u0275providers:n}}function Bw(){const e=N(wn);return n=>{const t=e.get(Fo);if(n!==t.components[0])return;const r=e.get($e),o=e.get(zw);1===e.get(bh)&&r.initialNavigation(),e.get(Gw,null,V.Optional)?.setUpPreloading(),e.get(Eh,null,V.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const zw=new O("",{factory:()=>new Hn}),bh=new O("",{providedIn:"root",factory:()=>1}),Gw=new O("");function bF(e){return or(0,[{provide:Gw,useExisting:DF},{provide:Hw,useExisting:e}])}const Ww=new O("ROUTER_FORROOT_GUARD"),IF=[il,{provide:ms,useClass:ih},$e,ws,{provide:sn,useFactory:function Uw(e){return e.routerState.root},deps:[$e]},Mh,[]];function TF(){return new X_("Router",$e)}let qw=(()=>{class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[IF,[],{provide:Ko,multi:!0,useValue:t},{provide:Ww,useFactory:kF,deps:[[$e,new sa,new aa]]},{provide:Yl,useValue:r||{}},r?.useHash?{provide:pr,useClass:SC}:{provide:pr,useClass:bC},{provide:Eh,useFactory:()=>{const e=N(D3),n=N(ve),t=N(Yl),r=N(Zl),o=N(ms);return t.scrollOffset&&e.setOffset(t.scrollOffset),new jw(o,r,e,n,t)}},r?.preloadingStrategy?bF(r.preloadingStrategy).\u0275providers:[],{provide:X_,multi:!0,useFactory:TF},r?.initialNavigation?OF(r):[],r?.bindToComponentInputs?or(8,[_w,{provide:Bl,useExisting:_w}]).\u0275providers:[],[{provide:Zw,useFactory:Bw},{provide:Ud,multi:!0,useExisting:Zw}]]}}static forChild(t){return{ngModule:e,providers:[{provide:Ko,multi:!0,useValue:t}]}}}return e.\u0275fac=function(t){return new(t||e)(A(Ww,8))},e.\u0275mod=Yt({type:e}),e.\u0275inj=Ht({}),e})();function kF(e){return"guarded"}function OF(e){return["disabled"===e.initialNavigation?or(3,[{provide:Od,multi:!0,useFactory:()=>{const n=N($e);return()=>{n.setUpLocationChangeListener()}}},{provide:bh,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?or(2,[{provide:bh,useValue:0},{provide:Od,multi:!0,deps:[wn],useFactory:n=>{const t=n.get(rR,Promise.resolve());return()=>t.then(()=>new Promise(r=>{const o=n.get($e),i=n.get(zw);Vw(o,()=>{r(!0)}),n.get(Zl).afterPreactivation=()=>(r(!0),i.closed?U(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const Zw=new O("");class ut{constructor(n,t,r){this.http=n,this.router=t,this.appMessageService=r,this.authenticated=!1,this.credentials={username:"",password:""},this.authority="none",this.httpOptions={headers:new Le({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n="operation",t){return r=>{throw this.log(`${n} failed: response status = ${r.status} statusText = ${r.statusText}`),0===r.status&&!1===r.ok?new Error("Could not reach API, check your internet connection."):401===r.status&&!1===r.ok?new Error("Invalid authorization."):(console.error(r),new Error(`${n} failed: status = ${r.status}`,{cause:r}))}}log(n){this.appMessageService.add(`LoginService: ${n}`)}isAuthenticated(){return this.authenticated}getAuthorizationToken(){return`Basic ${window.btoa(this.credentials.username+":"+this.credentials.password)}`}getUsername(){return this.credentials.username}getAuthority(){return this.authority}authenticate(n){this.log(`Authenticating: ${n.username}`),this.credentials=n;const t=new Le({"Content-Type":"application/json",Accept:"application/json",Authorization:this.getAuthorizationToken()});return this.http.get(ut.REST_URL,{headers:t}).pipe(z(r=>this.authorizationRecieved(r)),K(this.handleError("authenticating user")))}logout(){this.authenticated=!1,this.log("Logged out"),this.router.navigateByUrl("/").then(()=>{})}authorizationRecieved(n){if(this.authenticated=!0,n.authorities){let t=n.authorities[0].authority;t=t.substring(t.indexOf("_")+1),this.authority=t}this.log(`Authenticated '${n.name}' as '${this.authority}'`)}changePassword(n){this.log("Changing password.");const t=Kf(10),r=U0(n,t);let o={};return o.username=this.credentials.username,o.password=r,this.http.post(ut.REST_URL,o,this.httpOptions).pipe(z(i=>this.authorizationRecieved(i)),K(this.handleError("changePassword")))}}ut.REST_URL=On_restServerUrl+"/api/user",ut.\u0275fac=function(n){return new(n||ut)(A(kn),A($e),A(Pn))},ut.\u0275prov=P({token:ut,factory:ut.\u0275fac,providedIn:"root"});const xF=["scrollMe"];function FF(e,n){if(1&e&&(g(0,"li")(1,"div",9)(2,"span",10),m(3),p(),g(4,"span",11),m(5),Ye(6,"date"),p(),g(7,"span",12),m(8),p()(),g(9,"span",13),m(10),p()()),2&e){const t=n.$implicit;v(3),F(t.id),v(2),F(zt(6,4,t.dateCreated,"medium")),v(3),F(t.author),v(2),F(t.text)}}function LF(e,n){if(1&e&&(g(0,"ul",6,7),Ze(2,FF,11,7,"li",8),p()),2&e){const t=Pe();v(2),b("ngForOf",t.chatMessages)}}let Sh=(()=>{class e{constructor(t,r){this.chatService=t,this.loginService=r,this.disableScrollDown=!1,this.chatMessages=[],this.newMessage="",this.serviceMessage="",this.errorMessage=""}getChatMessages(){this.serviceMessage="Loading chat ...",this.chatService.getChatMessages().subscribe({next:t=>{this.chatMessages=t,this.scrollToBottom(),this.serviceMessage="Loaded chat."},error:t=>{this.serviceMessage="",this.errorMessage=`Error loading chat: ${t.message}`}})}ngOnInit(){this.loginService.isAuthenticated()&&this.getChatMessages()}sendMessage(){this.serviceMessage="Sending message ...",this.chatService.addChatMessage(this.loginService.getUsername(),this.newMessage).subscribe({next:t=>{this.chatMessages.push(t),this.serviceMessage="Send OK.",this.disableScrollDown=!1,this.scrollToBottom()},error:t=>{this.serviceMessage="",this.errorMessage=`Error loading chat: ${t.message}`}}),this.newMessage=""}ngAfterViewChecked(){this.scrollToBottom()}scrollToBottom(){try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}}return e.\u0275fac=function(t){return new(t||e)(D(xn),D(ut))},e.\u0275cmp=Ke({type:e,selectors:[["app-chat"]],viewQuery:function(t,r){if(1&t&&Xa(xF,5),2&t){let o;Xi(o=Qi())&&(r.myScrollContainer=o.first)}},decls:11,vars:6,consts:[[1,"servicemessage",3,"hidden"],[1,"alert","servicemessage",3,"hidden"],["class","chat",4,"ngIf"],[1,"input"],["id","message-text","placeholder","hello",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"chat"],["scrollMe",""],[4,"ngFor","ngForOf"],[1,"message-title"],[1,"badge"],[1,"date"],[1,"author"],[1,"text"]],template:function(t,r){1&t&&(g(0,"p",0),m(1),p(),g(2,"p",1),m(3),p(),Ze(4,LF,3,1,"ul",2),g(5,"div",3)(6,"input",4),I("ngModelChange",function(i){return r.newMessage=i})("keydown.enter",function(){return r.sendMessage()}),p(),g(7,"button",5),I("click",function(){return r.sendMessage()}),m(8,"Send"),p(),g(9,"button",5),I("click",function(){return r.getChatMessages()}),m(10,"Reload"),p()()),2&t&&(b("hidden",""===r.serviceMessage),v(1),F(r.serviceMessage),v(1),b("hidden",""===r.errorMessage),v(1),F(r.errorMessage),v(1),b("ngIf",r.chatMessages.length),v(2),b("ngModel",r.newMessage))},dependencies:[qt,ff,at,Et,gt,tr],styles:[".chat[_ngcontent-%COMP%]{margin:0;list-style-type:none;padding:.1em;max-height:20em;overflow:auto;background-color:#30303030;border:solid 1px #336699}.chat[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{position:relative;left:0;margin:.1em;padding:0;border-radius:4px;border:solid 1px darkblue}.chat[_ngcontent-%COMP%] li[_ngcontent-%COMP%]:hover{background-color:#e6e6e688}.servicemessage[_ngcontent-%COMP%]{margin:0}.message-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.message-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061}.author[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#a0b0b1;border-radius:0 0 2px}.chat[_ngcontent-%COMP%] .text[_ngcontent-%COMP%]{align-self:center;margin:0 .1em .1em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;padding-right:.2em}"]}),e})();const VF=["scrollMe"];function $F(e,n){if(1&e&&(g(0,"p"),m(1),p()),2&e){const t=n.$implicit;v(1),F(t)}}function HF(e,n){if(1&e){const t=Sn();g(0,"div",1)(1,"div")(2,"button",2),I("click",function(){return Ie(t),Te(Pe().appMessagesService.clear())}),m(3,"Clear messages"),p(),g(4,"h2"),m(5,"App messages"),p()(),g(6,"div",3,4),I("scroll",function(){return Ie(t),Te(Pe().onScroll())}),Ze(8,$F,2,1,"p",5),p()()}if(2&e){const t=Pe();v(8),b("ngForOf",t.appMessagesService.messages)}}let jF=(()=>{class e{constructor(t){this.appMessagesService=t,this.disableScrollDown=!1}ngAfterViewChecked(){this.scrollToBottom()}onScroll(){let t=this.myScrollContainer.nativeElement;this.disableScrollDown=!(this.disableScrollDown&&t.scrollHeight-t.scrollTop===t.clientHeight)}scrollToBottom(){if(!this.disableScrollDown)try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}}return e.\u0275fac=function(t){return new(t||e)(D(Pn))},e.\u0275cmp=Ke({type:e,selectors:[["app-messages"]],viewQuery:function(t,r){if(1&t&&Xa(VF,5),2&t){let o;Xi(o=Qi())&&(r.myScrollContainer=o.first)}},decls:1,vars:1,consts:[["class","app-messages",4,"ngIf"],[1,"app-messages"],["type","button",1,"clear",3,"click"],[1,"output",3,"scroll"],["scrollMe",""],[4,"ngFor","ngForOf"]],template:function(t,r){1&t&&Ze(0,HF,9,1,"div",0),2&t&&b("ngIf",r.appMessagesService.messages.length)},dependencies:[qt,ff],styles:[".app-messages[_ngcontent-%COMP%]{font-size:small;color:#888;padding:.2em}.app-messages[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{float:right}h2[_ngcontent-%COMP%]{display:inline-block}.clear[_ngcontent-%COMP%]{margin:.4em}.output[_ngcontent-%COMP%]{border:2px solid #c0c0c0;min-height:4.5em;max-height:4.5em;margin:0 0 2px;padding:2px 4px;overflow-y:scroll;font-family:Monospace,Incosolata,Courier;font-size:12px;width:unset}.output[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 .1em}"]}),e})();const Yw=function(){return{exact:!0}};let UF=(()=>{class e{constructor(t,r){this.loginService=t,this.location=r,this.title="Sample Family",this.chatLoaded=!1,this.chatHidden=!0,this.linksHidden=!0,this.profileHidden=!0,this.pos1=0,this.pos2=0,this.pos3=0,this.pos4=0,this.target=null}ngOnInit(){this.location.onUrlChange(()=>this.hideMenus()),this.detectTheme()}hideMenus(){this.linksHidden=!0,this.profileHidden=!0}isAppMessagesHidden(){return!(this.loginService.isAuthenticated()&&"ADMIN"===this.loginService.getAuthority())}isAuthenticated(){return this.loginService.isAuthenticated()}username(){return this.loginService.getUsername()}logout(){localStorage.setItem("username",""),localStorage.setItem("password",""),this.loginService.logout()}toggleLinks(){this.linksHidden=!this.linksHidden,this.profileHidden=!0}isLinksHidden(){return this.linksHidden}toggleProfile(){this.profileHidden=!this.profileHidden,this.linksHidden=!0}isProfileHidden(){return this.profileHidden}toggleChatHidden(){this.chatHidden=!this.chatHidden,!this.chatHidden&&!this.chatLoaded&&(this.chatComponent.getChatMessages(),this.chatLoaded=!0)}isChatHidden(){return this.chatHidden}startMouseDragging(t){0===t.button&&(t.preventDefault(),this.pos3=t.clientX,this.pos4=t.clientY,document.onmouseup=()=>this.endMouseDrag(),document.onmousemove=r=>this.mouseDragElement(r),this.target=document.getElementById("chatwindow"))}mouseDragElement(t){t.preventDefault(),this.pos1=this.pos3-t.clientX,this.pos2=this.pos4-t.clientY,this.pos3=t.clientX,this.pos4=t.clientY;let r=this.target.offsetTop-this.pos2;r<0&&(r=0),this.target.style.top=r+"px";let o=this.target.offsetLeft-this.pos1;o<0&&(o=0),this.target.style.left=o+"px"}endMouseDrag(){document.onmouseup=null,document.onmousemove=null,this.target=null}startTouchDragging(t){t.preventDefault(),this.pos3=t.targetTouches[0].clientX,this.pos4=t.targetTouches[0].clientY,document.ontouchend=()=>this.endTouchDrag(),document.ontouchmove=r=>this.touchDragElement(r),this.target=document.getElementById("chatwindow")}touchDragElement(t){t.preventDefault(),this.pos1=this.pos3-t.targetTouches[0].clientX,this.pos2=this.pos4-t.targetTouches[0].clientY,this.pos3=t.targetTouches[0].clientX,this.pos4=t.targetTouches[0].clientY;let r=this.target.offsetTop-this.pos2;r<0&&(r=0),this.target.style.top=r+"px";let o=this.target.offsetLeft-this.pos1;o<0&&(o=0),this.target.style.left=o+"px"}endTouchDrag(){document.ontouchend=null,document.ontouchmove=null,this.target=null}toggleTheme(){const t="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(t),r.classList.contains(t)?localStorage.setItem("theme",t):localStorage.setItem("theme","theme-light")}setTheme(t){const r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.add(t),localStorage.setItem("theme",t)}detectTheme(){const t=localStorage.getItem("theme");"theme-dark"!==t&&"theme-light"!==t?window.matchMedia("(prefers-color-scheme: dark)").matches?this.setTheme("theme-dark"):(window.matchMedia("(prefers-color-scheme: light)"),this.setTheme("theme-light")):this.setTheme(t)}}return e.\u0275fac=function(t){return new(t||e)(D(ut),D(il))},e.\u0275cmp=Ke({type:e,selectors:[["app-root"]],viewQuery:function(t,r){if(1&t&&Xa(Sh,5),2&t){let o;Xi(o=Qi())&&(r.chatComponent=o.first)}},decls:68,vars:14,consts:[[3,"hidden"],[1,"nav-toggle",3,"click"],[1,"nav-toggle","float-right",3,"click"],["id","links",3,"hidden"],[1,"title-link"],["routerLinkActive","active-link","routerLink","/",3,"routerLinkActiveOptions"],["routerLinkActive","active-link","routerLink","/checklists"],["routerLinkActive","active-link","routerLink","/contacts"],["routerLinkActive","active-link","routerLink","/notes"],["routerLinkActive","active-link","routerLink","/mychecklists"],["routerLinkActive","active-link","routerLink","/mynotes"],[3,"click"],["id","profile",3,"hidden"],["routerLinkActive","active-link","routerLink","/profile"],["id","logout",3,"click"],["title","Dark theme on/off",3,"click"],[1,"float-right"],["routerLinkActive","active-link","routerLink","/login"],["id","tools",3,"hidden"],["id","chatwindow",3,"hidden"],["id","chattitlebar",3,"mousedown","touchstart"],[1,"close-button",3,"click"],["id","chatcontent"],[1,"footer",3,"hidden"]],template:function(t,r){1&t&&(g(0,"nav")(1,"span",0)(2,"button",1),I("click",function(){return r.toggleLinks()}),m(3,"\u2261"),p(),g(4,"button",2),I("click",function(){return r.toggleProfile()}),m(5),p(),g(6,"div",3)(7,"ul")(8,"li")(9,"button",1),I("click",function(){return r.toggleLinks()}),m(10,"\u2261"),p()(),g(11,"li",4),m(12,"Global"),p(),g(13,"li")(14,"a",5),m(15,"Home"),p()(),g(16,"li")(17,"a",6),m(18,"Checklists"),p()(),g(19,"li")(20,"a",7),m(21,"Contacts"),p()(),g(22,"li")(23,"a",8),m(24,"Notes"),p()(),g(25,"li",4),m(26,"Personal"),p(),g(27,"li")(28,"a",9),m(29,"Checklists"),p()(),g(30,"li")(31,"a",10),m(32,"Notes"),p()(),g(33,"li")(34,"button",11),I("click",function(){return r.toggleChatHidden()}),m(35,"Chat"),p()()()(),g(36,"div",12)(37,"ul")(38,"li")(39,"button",1),I("click",function(){return r.toggleProfile()}),m(40),p()(),g(41,"li")(42,"a",13),m(43,"Profile"),p()(),g(44,"li")(45,"a",14),I("click",function(){return r.logout()}),m(46,"Logout"),p()(),g(47,"li")(48,"button",15),I("click",function(){return r.toggleTheme()}),m(49,"\u2600 Theme"),p()()()()(),g(50,"span",0)(51,"h1",16),m(52),p(),g(53,"a",5),m(54,"Home"),p(),g(55,"a",17),m(56,"Login"),p()()(),g(57,"div",18)(58,"div",19)(59,"div",20),I("mousedown",function(i){return r.startMouseDragging(i)})("touchstart",function(i){return r.startTouchDragging(i)}),m(60," Chat"),g(61,"button",21),I("click",function(){return r.toggleChatHidden()}),m(62,"\u2716"),p()(),g(63,"div",22),J(64,"app-chat"),p()()(),g(65,"main"),J(66,"router-outlet"),p(),J(67,"app-messages",23)),2&t&&(v(1),b("hidden",!r.isAuthenticated()),v(4),F(r.username()),v(1),b("hidden",r.isLinksHidden()),v(8),b("routerLinkActiveOptions",vd(12,Yw)),v(22),b("hidden",r.isProfileHidden()),v(4),F(r.username()),v(10),b("hidden",r.isAuthenticated()),v(2),F(r.title),v(1),b("routerLinkActiveOptions",vd(13,Yw)),v(4),b("hidden",!r.isAuthenticated()),v(1),b("hidden",r.isChatHidden()),v(9),b("hidden",r.isAppMessagesHidden()))},dependencies:[yh,Vn,$w,jF,Sh],styles:[".big[_ngcontent-%COMP%]{font-size:x-large}.nav-toggle[_ngcontent-%COMP%]{font-size:x-large;border:none;background:none;padding:0 .2em}.nav-toggle[_ngcontent-%COMP%]:hover{background-color:#42545c42;-webkit-text-decoration:underline #83b6f9;text-decoration:underline #83b6f9}.float-right[_ngcontent-%COMP%]{margin:0;float:right}nav[_ngcontent-%COMP%]{display:block;background:#93c6f948 linear-gradient(80deg,rgb(132,168,205) 05%,rgb(145,185,224) 30%,rgba(0,0,0,0) 100%);border-bottom:1px solid #336699;padding:.4em}nav[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;float:right}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:.2rem;padding:.2rem .3rem;text-decoration:none;text-shadow:2px 2px 2px #40404080;display:inline-block;border-radius:2px}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff;background-color:#42545c;-webkit-text-decoration:underline #93c6f9;text-decoration:underline #93c6f9}.active-link[_ngcontent-%COMP%]{background-color:#00000048}.title-link[_ngcontent-%COMP%]{text-decoration:underline}#profile[_ngcontent-%COMP%]{box-shadow:3px 3px 3px #0006;border:1px solid #336699;z-index:2;position:fixed;padding:.4em;top:0;right:0;background:rgb(145,185,224);border-bottom-left-radius:.4em}#profile[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:0;text-align:center}#profile[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:block;text-decoration:none}#profile[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%;margin:1px}#links[_ngcontent-%COMP%]{box-shadow:3px 3px 3px #0006;border:1px solid #336699;z-index:2;position:fixed;padding:.4em;top:0;left:0;background:rgb(132,168,205);border-end-end-radius:.4em}#links[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:0}#links[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:block;text-decoration:none}#links[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%;margin:1px}#logout[_ngcontent-%COMP%]{color:#ef4040;cursor:pointer}#logout[_ngcontent-%COMP%]:hover{background-color:#604040}#chatwindow[_ngcontent-%COMP%]{border:1px solid black;z-index:9990;background:#f0f0f080;border-radius:2px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);box-shadow:3px 3px 3px #0006;position:fixed;top:5em;left:5em}#chattitlebar[_ngcontent-%COMP%]{border-bottom:1px solid black;padding:2px;background:#d0d0d080;cursor:grab}#chatcontent[_ngcontent-%COMP%]{padding:2px}.close-button[_ngcontent-%COMP%]{padding:0 4px;margin:0;float:right}"]}),e})();class ln{constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Le({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n="operation",t){return r=>{throw this.log(`${n} failed: response status = ${r.status} statusText = ${r.statusText}`),0===r.status&&!1===r.ok?new Error("Could not reach API, check your internet connection."):(console.error(r),new Error(`${n} failed: status = ${r.status}`,{cause:r}))}}log(n){this.appMessageService.add(`TodoService: ${n}`)}getTodos(){return this.http.get(ln.REST_URL,this.httpOptions).pipe(z(n=>this.log(`fetched ${n.length} todos`)),K(this.handleError("getTodos",[])))}addTodo(n){return this.http.post(ln.REST_URL,{text:n},this.httpOptions).pipe(z(r=>this.log(`added todo w/ id=${r.id}`)),K(this.handleError("addTodo")))}deleteTodo(n){return this.http.delete(`${ln.REST_URL}/${n}`,this.httpOptions).pipe(z(r=>this.log(`deleted todo id=${n}`)),K(this.handleError("deleteTodo")))}}function BF(e,n){if(1&e){const t=Sn();g(0,"li")(1,"div",8)(2,"span",9),m(3),p(),g(4,"span",10),m(5),Ye(6,"date"),p(),g(7,"button",11),I("click",function(){const i=Ie(t).$implicit;return Te(Pe().delete(i))}),m(8,"x"),p()(),g(9,"span",12),m(10),p()()}if(2&e){const t=n.$implicit;v(3),F(t.id),v(2),F(zt(6,3,t.dateCreated,"medium")),v(5),F(t.text)}}ln.REST_URL=On_restServerUrl+"/api/todos",ln.\u0275fac=function(n){return new(n||ln)(A(kn),A(Pn))},ln.\u0275prov=P({token:ln,factory:ln.\u0275fac,providedIn:"root"});let zF=(()=>{class e{constructor(t){this.todoService=t,this.todos=[],this.newTodo="",this.serviceMessage="",this.errorMessage=""}getTodos(){this.errorMessage="",this.serviceMessage="Loading todos ...",this.todoService.getTodos().subscribe({next:t=>{this.todos=t,this.serviceMessage=0==t.length?"Nothing to do!":""},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading todos: ${t.message}`}})}ngOnInit(){this.getTodos()}sendTodo(){this.errorMessage="",this.serviceMessage="Adding todo ...",this.todoService.addTodo(this.newTodo).subscribe({next:t=>{this.todos.push(t),this.newTodo="",this.serviceMessage="Added todo."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while adding todo: ${t.message}`}})}delete(t){this.errorMessage="",this.serviceMessage="Removing todo ...",this.todoService.deleteTodo(t.id).subscribe({next:()=>{this.todos=this.todos.filter(r=>r!==t),this.serviceMessage="Removed todo."},error:r=>{this.serviceMessage="",this.errorMessage=`Error while removing todo: ${r.message}`}})}}return e.\u0275fac=function(t){return new(t||e)(D(ln))},e.\u0275cmp=Ke({type:e,selectors:[["app-todo"]],decls:17,vars:6,consts:[[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-text"],["id","input-text","placeholder","text",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"element-title"],[1,"badge"],[1,"date"],["type","button","title","Delete todo",1,"delete",3,"click"],[1,"text"]],template:function(t,r){1&t&&(g(0,"h2"),m(1,"Your todos:"),p(),g(2,"p",0),m(3),p(),g(4,"p",1),m(5),p(),g(6,"ol",2),Ze(7,BF,11,6,"li",3),p(),g(8,"h2"),m(9,"New Todo:"),p(),g(10,"div",4)(11,"div")(12,"label",5),m(13,"Text:"),p(),g(14,"input",6),I("ngModelChange",function(i){return r.newTodo=i})("keydown.enter",function(){return r.sendTodo()}),p(),g(15,"button",7),I("click",function(){return r.sendTodo()}),m(16,"Send"),p()()()),2&t&&(v(2),b("hidden",""===r.serviceMessage),v(1),F(r.serviceMessage),v(1),b("hidden",""===r.errorMessage),v(1),F(r.errorMessage),v(2),b("ngForOf",r.todos),v(7),b("ngModel",r.newTodo))},dependencies:[qt,at,Et,gt,tr],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:0;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.element-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.element-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.element-title[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:small;padding:1px 6px;margin:0;border-radius:2px;float:right;background-color:#ff000080}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061;border-radius:0 0 2px}.text[_ngcontent-%COMP%]{align-self:center;margin:0 .1em .1em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;margin:0 0 .2em;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:4em;text-align:right;padding-right:.2em}"]}),e})();class un{constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Le({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n="operation",t){return r=>{throw this.log(`${n} failed: response status = ${r.status} statusText = ${r.statusText}`),0===r.status&&!1===r.ok?new Error("Could not reach API, check your internet connection."):(console.error(r),new Error(`${n} failed: status = ${r.status}`,{cause:r}))}}log(n){this.appMessageService.add(`NewsService: ${n}`)}getNewsPosts(){return this.http.get(un.REST_URL,this.httpOptions).pipe(z(n=>this.log(`fetched ${n.length} news posts`)),K(this.handleError("getNews",[])))}addNewsPost(n,t){return this.http.post(un.REST_URL,{author:n,text:t},this.httpOptions).pipe(z(o=>this.log(`added message w/ id=${o.id}`)),K(this.handleError("addNewsPost")))}deleteNewsPost(n){return this.http.delete(`${un.REST_URL}/${n}`,this.httpOptions).pipe(z(r=>this.log(`deleted newspost id=${n}`)),K(this.handleError("deleteNewsPost")))}}function GF(e,n){if(1&e){const t=Sn();g(0,"div",8)(1,"span")(2,"b"),m(3),p(),m(4),Ye(5,"date"),p(),g(6,"button",9),I("click",function(){const i=Ie(t).$implicit;return Te(Pe().delete(i))}),m(7,"x"),p(),g(8,"p"),m(9),p()()}if(2&e){const t=n.$implicit,r=Pe();v(3),F(t.author),v(1),De(" posted on ",zt(5,4,t.dateCreated,"medium"),""),v(2),b("hidden",!r.isAdmin()),v(3),F(t.text)}}un.REST_URL=On_restServerUrl+"/api/news",un.\u0275fac=function(n){return new(n||un)(A(kn),A(Pn))},un.\u0275prov=P({token:un,factory:un.\u0275fac,providedIn:"root"});let WF=(()=>{class e{constructor(t,r){this.loginService=t,this.newsService=r,this.newNewsMessage="",this.newsMessages=[],this.serviceMessage="",this.errorMessage=""}getNews(){this.loginService.isAuthenticated()&&(this.serviceMessage="Loading news messages ...",this.newsService.getNewsPosts().subscribe({next:t=>{this.newsMessages=t,this.serviceMessage=""},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading news: ${t.message}`}}))}ngOnInit(){this.getNews()}isAuthenticated(){return this.loginService.isAuthenticated()}isAdmin(){return"ADMIN"===this.loginService.getAuthority()}username(){return this.loginService.getUsername()}addNews(){""!==this.newNewsMessage&&(this.serviceMessage="Adding news ...",this.errorMessage="",this.newsService.addNewsPost(this.loginService.getUsername(),this.newNewsMessage).subscribe({next:t=>{this.newsMessages.push(t),this.serviceMessage="Added news."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while adding news: ${t.message}`}}),this.newNewsMessage="")}delete(t){window.confirm("Do you realy want to delete this newspost?")&&(this.serviceMessage="Removing newspost ...",this.newsService.deleteNewsPost(t.id).subscribe({next:()=>{this.newsMessages=this.newsMessages.filter(r=>r!==t),this.serviceMessage="Removed newspost."},error:r=>{this.serviceMessage="",this.errorMessage=`Error while removing newspost: ${r.message}`}}))}}return e.\u0275fac=function(t){return new(t||e)(D(ut),D(un))},e.\u0275cmp=Ke({type:e,selectors:[["app-home"]],decls:21,vars:10,consts:[[3,"hidden"],[1,"alert",3,"hidden"],[1,"context"],["class","message",4,"ngFor","ngForOf"],[1,"input",3,"hidden"],["for","input-item"],["id","input-item","placeholder","X happend!",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"message"],["type","button","title","Delete newspost",1,"delete",3,"hidden","click"]],template:function(t,r){1&t&&(g(0,"span",0)(1,"p"),m(2),p(),g(3,"h3"),m(4,"News:"),p(),g(5,"p",0),m(6),p(),g(7,"p",1),m(8),p(),g(9,"div",2),Ze(10,GF,10,7,"div",3),p(),g(11,"div",4)(12,"h3"),m(13,"Add news:"),p(),g(14,"label",5),m(15,"news:"),p(),g(16,"input",6),I("ngModelChange",function(i){return r.newNewsMessage=i})("keydown.enter",function(){return r.addNews()}),p(),g(17,"button",7),I("click",function(){return r.addNews()}),m(18,"Add"),p()()(),g(19,"p",0),m(20,"Welcome to our family site! Please login."),p()),2&t&&(b("hidden",!r.isAuthenticated()),v(2),De("Welcome, ",r.username(),"!"),v(3),b("hidden",""===r.serviceMessage),v(1),F(r.serviceMessage),v(1),b("hidden",""===r.errorMessage),v(1),F(r.errorMessage),v(2),b("ngForOf",r.newsMessages),v(1),b("hidden",!r.isAdmin()),v(5),b("ngModel",r.newNewsMessage),v(3),b("hidden",r.isAuthenticated()))},dependencies:[qt,at,Et,gt,tr],styles:[".context[_ngcontent-%COMP%]{margin-bottom:1em}.message[_ngcontent-%COMP%]{padding:.5em;margin-bottom:.5em;border:1px solid darkgrey}.message[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{border-bottom:1px solid darkgrey}.delete[_ngcontent-%COMP%]{font-size:small;padding:1px 6px;margin:0;border-radius:2px;float:right;background-color:#ff000080}"]}),e})(),qF=(()=>{class e{constructor(t,r){this.loginService=t,this.router=r,this.rememberme=!1,this.credentials={username:"",password:""},this.serviceMessage="",this.errorMessage="",this.checkPreviousLogin()}checkPreviousLogin(){this.credentials.username=localStorage.getItem("username"),this.credentials.password=localStorage.getItem("password"),this.credentials.username&&this.credentials.password&&this.login()}login(){if(""!==this.credentials.username&&""!==this.credentials.password)return this.serviceMessage="Loggin in ...",this.loginService.authenticate(this.credentials).subscribe({next:()=>{this.rememberme&&(localStorage.setItem("username",this.credentials.username),localStorage.setItem("password",this.credentials.password)),this.router.navigateByUrl("/").then(t=>{})},error:t=>{console.log("Login failed",t),this.errorMessage=`Login failed: ${t.message}`,this.serviceMessage=""}}),!1;this.errorMessage="Login failed: Username and password required."}}return e.\u0275fac=function(t){return new(t||e)(D(ut),D($e))},e.\u0275cmp=Ke({type:e,selectors:[["app-login"]],decls:21,vars:7,consts:[[3,"hidden"],[1,"alert",3,"hidden"],["role","form",3,"submit"],[1,"form-group"],["for","username"],["type","text","id","username","name","username","placeholder","username",1,"form-control",3,"ngModel","ngModelChange"],["for","password"],["type","password","id","password","name","password","placeholder","password",1,"form-control",3,"ngModel","ngModelChange"],["for","rememberme"],["type","checkbox","id","rememberme","name","rememberme",1,"form-control",3,"ngModel","ngModelChange"],["type","submit",1,"btn","btn-primary"]],template:function(t,r){1&t&&(g(0,"h2"),m(1,"Login form"),p(),g(2,"p",0),m(3),p(),g(4,"p",1),m(5),p(),g(6,"form",2),I("submit",function(){return r.login()}),g(7,"div",3)(8,"label",4),m(9,"Username:"),p(),g(10,"input",5),I("ngModelChange",function(i){return r.credentials.username=i}),p()(),g(11,"div",3)(12,"label",6),m(13,"Password:"),p(),g(14,"input",7),I("ngModelChange",function(i){return r.credentials.password=i}),p()(),g(15,"div",3)(16,"label",8),m(17,"Remember me:"),p(),g(18,"input",9),I("ngModelChange",function(i){return r.rememberme=i}),p()(),g(19,"button",10),m(20,"Login"),p()()),2&t&&(v(2),b("hidden",""===r.serviceMessage),v(1),F(r.serviceMessage),v(1),b("hidden",""===r.errorMessage),v(1),F(r.errorMessage),v(5),b("ngModel",r.credentials.username),v(4),b("ngModel",r.credentials.password),v(4),b("ngModel",r.rememberme))},dependencies:[t0,at,os,Et,jD,gt,Tl],styles:["button[_ngcontent-%COMP%]{border:revert}"]}),e})();const cn=(e,n)=>{const t=N(ut),r=N($e);return!!t.isAuthenticated()||r.parseUrl("/login")};class bt{constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Le({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n="operation",t){return r=>{throw this.log(`${n} failed: response status = ${r.status} statusText = ${r.statusText}`),0===r.status&&!1===r.ok?new Error("Could not reach API, check your internet connection."):(console.error(r),new Error(`${n} failed: status = ${r.status}`,{cause:r}))}}log(n){this.appMessageService.add(`ContactService: ${n}`)}getContacts(){return this.http.get(bt.REST_URL,this.httpOptions).pipe(z(n=>this.log(`fetched ${n.length} contacts`)),K(this.handleError("getContacts",[])))}getContact(n){return this.http.get(`${bt.REST_URL}/${n}`,this.httpOptions).pipe(z(t=>this.log(`fetched Contact ${t.id}`)),K(this.handleError("getContact",{})))}addContact(n){return this.http.post(bt.REST_URL,n,this.httpOptions).pipe(z(t=>this.log(`added contact w/ id=${t.id}`)),K(this.handleError("addContact")))}saveContact(n){return this.http.post(bt.REST_URL,n,this.httpOptions).pipe(z(t=>this.log(`saved contact w/ id=${t.id}`)),K(this.handleError("addContact")))}deleteContact(n){return this.http.delete(`${bt.REST_URL}/${n}`,this.httpOptions).pipe(z(r=>this.log(`deleted contact id=${n}`)),K(this.handleError("deleteContact")))}}bt.REST_URL=On_restServerUrl+"/api/contacts",bt.\u0275fac=function(n){return new(n||bt)(A(kn),A(Pn))},bt.\u0275prov=P({token:bt,factory:bt.\u0275fac,providedIn:"root"});const ZF=function(e){return["/contact",e]};function YF(e,n){if(1&e&&(g(0,"li")(1,"a",20)(2,"span",21)(3,"span",22),m(4),p(),J(5,"br"),m(6),J(7,"br"),m(8),J(9,"br"),m(10),J(11,"br"),m(12,"Website: "),g(13,"span"),m(14),p(),J(15,"br"),m(16),p()()()),2&e){const t=n.$implicit;v(1),b("routerLink",Oo(8,ZF,t.id)),v(3),za("",t.firstName," ",t.lastName,""),v(2),De("Telephone: ",t.telephone," "),v(2),De("E-mail: ",t.email," "),v(2),De("Address: ",t.address," "),v(4),F(t.website),v(2),De("Description: ",t.description,"")}}let XF=(()=>{class e{constructor(t){this.contactsService=t,this.contacts=[],this.newContact={},this.serviceMessage="",this.errorMessage=""}getContacts(){this.serviceMessage="Loading contacts ...",this.contactsService.getContacts().subscribe({next:t=>{this.contacts=t,this.serviceMessage=t.length?"":"No contacts in database."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading contacts: ${t.message}`}})}ngOnInit(){this.getContacts()}sendContact(){this.serviceMessage="Adding contact ...",this.contactsService.addContact(this.newContact).subscribe({next:t=>{this.contacts.push(t),this.serviceMessage="Added contact."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while adding contact: ${t.message}`}}),this.newContact={}}}return e.\u0275fac=function(t){return new(t||e)(D(bt))},e.\u0275cmp=Ke({type:e,selectors:[["app-contacts"]],decls:41,vars:12,consts:[[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"form-group"],["for","input-firstName"],["id","input-firstName","placeholder","firstname",3,"ngModel","ngModelChange"],["for","input-lastName"],["id","input-lastName","placeholder","lastname",3,"ngModel","ngModelChange"],["for","input-telephone"],["id","input-telephone","placeholder","telephone",3,"ngModel","ngModelChange"],["for","input-email"],["id","input-email","placeholder","email",3,"ngModel","ngModelChange"],["for","input-website"],["id","input-website","placeholder","website",3,"ngModel","ngModelChange"],["for","input-address"],["id","input-address","placeholder","address",3,"ngModel","ngModelChange"],["for","input-description"],["id","input-description","placeholder","description",3,"ngModel","ngModelChange"],[3,"click"],[1,"element",3,"routerLink"],[1,"text"],[1,"name"]],template:function(t,r){1&t&&(g(0,"h2"),m(1,"Family contacts:"),p(),g(2,"p",0),m(3),p(),g(4,"p",1),m(5),p(),g(6,"ol",2),Ze(7,YF,17,10,"li",3),p(),g(8,"h2"),m(9,"New contact:"),p(),g(10,"div",4)(11,"label",5),m(12,"Firstname:"),p(),g(13,"input",6),I("ngModelChange",function(i){return r.newContact.firstName=i}),p(),J(14,"br"),g(15,"label",7),m(16,"Lastname:"),p(),g(17,"input",8),I("ngModelChange",function(i){return r.newContact.lastName=i}),p(),J(18,"br"),g(19,"label",9),m(20,"Telephone:"),p(),g(21,"input",10),I("ngModelChange",function(i){return r.newContact.telephone=i}),p(),J(22,"br"),g(23,"label",11),m(24,"Email:"),p(),g(25,"input",12),I("ngModelChange",function(i){return r.newContact.email=i}),p(),J(26,"br"),g(27,"label",13),m(28,"Website:"),p(),g(29,"input",14),I("ngModelChange",function(i){return r.newContact.website=i}),p(),J(30,"br"),g(31,"label",15),m(32,"Address:"),p(),g(33,"input",16),I("ngModelChange",function(i){return r.newContact.address=i}),p(),J(34,"br"),g(35,"label",17),m(36,"Description:"),p(),g(37,"input",18),I("ngModelChange",function(i){return r.newContact.description=i}),p(),J(38,"br"),g(39,"button",19),I("click",function(){return r.sendContact()}),m(40,"Send"),p()()),2&t&&(v(2),b("hidden",""===r.serviceMessage),v(1),F(r.serviceMessage),v(1),b("hidden",""===r.errorMessage),v(1),F(r.errorMessage),v(2),b("ngForOf",r.contacts),v(6),b("ngModel",r.newContact.firstName),v(4),b("ngModel",r.newContact.lastName),v(4),b("ngModel",r.newContact.telephone),v(4),b("ngModel",r.newContact.email),v(4),b("ngModel",r.newContact.website),v(4),b("ngModel",r.newContact.address),v(4),b("ngModel",r.newContact.description))},dependencies:[qt,at,Et,gt,Vn],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.name[_ngcontent-%COMP%]{font-size:larger;text-decoration:underline}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:.2em;border-radius:4px;border:solid 1px #808080}.element[_ngcontent-%COMP%]{text-decoration:none;display:block}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}"]}),e})();class St{constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Le({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n="operation"){return t=>{throw this.log(`${n} failed: response status = ${t.status} statusText = ${t.statusText}`),0===t.status&&!1===t.ok?new Error("Could not reach API, check your internet connection."):(console.error(t),new Error(`${n} failed: status = ${t.status}`,{cause:t}))}}log(n){this.appMessageService.add(`ChecklistService: ${n}`)}getChecklists(){return this.http.get(St.REST_URL,this.httpOptions).pipe(z(n=>this.log(`fetched ${n.length} checklists`)),K(this.handleError("getChecklists")))}getChecklist(n){return this.http.get(`${St.REST_URL}/${n}`,this.httpOptions).pipe(z(t=>this.log(`fetched checklist ${t.id}`)),K(this.handleError("getChecklist")))}addChecklist(n){return this.http.post(St.REST_URL,{name:n},this.httpOptions).pipe(z(r=>this.log(`added checklist w/ id=${r.id}`)),K(this.handleError("addChecklist")))}saveChecklist(n){return this.http.post(St.REST_URL,n,this.httpOptions).pipe(z(t=>this.log(`saved checklist w/ id=${t.id}`)),K(this.handleError("addChecklist")))}deleteChecklist(n){return this.http.delete(`${St.REST_URL}/${n}`,this.httpOptions).pipe(z(r=>this.log(`deleted checklist id=${n}`)),K(this.handleError("deleteChecklist")))}}St.REST_URL=On_restServerUrl+"/api/checklists",St.\u0275fac=function(n){return new(n||St)(A(kn),A(Pn))},St.\u0275prov=P({token:St,factory:St.\u0275fac,providedIn:"root"});let Xl=(()=>{class e{transform(t){return t&&t.filter(r=>!r.unlisted)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=nt({name:"onlyListedItems",type:e,pure:!0}),e})();const QF=function(e){return{strikethrough:e}};function KF(e,n){if(1&e&&(g(0,"li",12),m(1),p()),2&e){const t=n.$implicit;b("ngClass",Oo(2,QF,!0===t.checked)),v(1),De(" ",t.text," ")}}const JF=function(e){return["/checklist",e]};function e4(e,n){if(1&e&&(g(0,"li")(1,"a",8)(2,"span",9),m(3),p(),g(4,"ul",10),Ze(5,KF,2,4,"li",11),Ye(6,"onlyListedItems"),p()()()),2&e){const t=n.$implicit;v(1),b("routerLink",Oo(5,JF,t.id)),v(2),F(t.name),v(2),b("ngForOf",$r(6,3,t.checks))}}let t4=(()=>{class e{constructor(t,r){this.checklistService=t,this.router=r,this.route=N(sn),this.checklists=[],this.newChecklist="",this.serviceMessage="",this.errorMessage=""}getChecklists(){this.serviceMessage="Loading checklists ...",this.checklistService.getChecklists().subscribe({next:t=>{this.checklists=t,this.serviceMessage=t.length?"":"No checklist in database."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading checklists: ${t.message}`}})}ngOnInit(){this.getChecklists()}sendChecklist(){""!==this.newChecklist&&(this.serviceMessage="Creating checklist ...",this.checklistService.addChecklist(this.newChecklist).subscribe({next:t=>this.router.navigate(["/checklist/",t.id]),error:t=>{this.serviceMessage="",this.errorMessage=`Error while creating checklists: ${t.message}`}}))}}return e.\u0275fac=function(t){return new(t||e)(D(St),D($e))},e.\u0275cmp=Ke({type:e,selectors:[["app-checklists"]],decls:17,vars:6,consts:[[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-name"],["id","input-name","placeholder","myChecklist",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"element",3,"routerLink"],[1,"text"],[1,"item-list"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"]],template:function(t,r){1&t&&(g(0,"h2"),m(1,"Family checklists:"),p(),g(2,"p",0),m(3),p(),g(4,"p",1),m(5),p(),g(6,"ol",2),Ze(7,e4,7,7,"li",3),p(),g(8,"h2"),m(9,"New checklist:"),p(),g(10,"div",4)(11,"div")(12,"label",5),m(13,"name:"),p(),g(14,"input",6),I("ngModelChange",function(i){return r.newChecklist=i})("keydown.enter",function(){return r.sendChecklist()}),p(),g(15,"button",7),I("click",function(){return r.sendChecklist()}),m(16,"Send"),p()()()),2&t&&(v(2),b("hidden",""===r.serviceMessage),v(1),F(r.serviceMessage),v(1),b("hidden",""===r.errorMessage),v(1),F(r.errorMessage),v(2),b("ngForOf",r.checklists),v(7),b("ngModel",r.newChecklist))},dependencies:[df,qt,at,Et,gt,Vn,Xl],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:.2em;border-radius:4px;border:solid 1px #808080}.element[_ngcontent-%COMP%]{text-decoration:none;display:block}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.strikethrough[_ngcontent-%COMP%]{text-decoration:line-through}"]}),e})(),Xw=(()=>{class e{transform(t){return t&&t.filter(r=>r.unlisted)}}return e.\u0275fac=function(t){return new(t||e)},e.\u0275pipe=nt({name:"onlyUnlistedItems",type:e,pure:!0}),e})();function n4(e,n){if(1&e){const t=Sn();g(0,"li")(1,"input",11),I("ngModelChange",function(o){return Te(Ie(t).$implicit.checked=o)})("change",function(){return Ie(t),Te(Pe().saveCheckList())}),p(),g(2,"label",12),m(3),p(),g(4,"span",13)(5,"button",14),I("click",function(){const i=Ie(t).$implicit;return Te(Pe().unlistItem(i.id))}),m(6,"v"),p()()()}if(2&e){const t=n.$implicit;v(1),b("ngModel",t.checked),v(2),F(t.text)}}function r4(e,n){if(1&e){const t=Sn();g(0,"li")(1,"input",11),I("ngModelChange",function(o){return Te(Ie(t).$implicit.checked=o)})("change",function(){return Ie(t),Te(Pe().saveCheckList())}),p(),g(2,"label",12),m(3),p(),g(4,"span",13)(5,"button",15),I("click",function(){const i=Ie(t).$implicit;return Te(Pe().relistItem(i.id))}),m(6,"^"),p(),g(7,"button",16),I("click",function(){const i=Ie(t).$implicit;return Te(Pe().removeItem(i.id))}),m(8,"x"),p()()()}if(2&e){const t=n.$implicit;v(1),b("ngModel",t.checked),v(2),F(t.text)}}let o4=(()=>{class e{constructor(t,r){this.checklistService=t,this.router=r,this.route=N(sn),this.checklistId=-1,this.checklist={},this.newItem="",this.serviceMessage="",this.errorMessage="",this.checklistId=Number(this.route.snapshot.params.id)}getChecklist(){this.serviceMessage="Loading checklist ...",this.checklistService.getChecklist(this.checklistId).subscribe({next:t=>{this.checklist=t,this.serviceMessage=""},error:t=>{this.serviceMessage="",this.errorMessage=`Error while getting checklists: ${t.message}`}})}ngOnInit(){this.getChecklist()}addItem(){""!==this.newItem&&(this.checklist.checks.push({text:this.newItem,checklist_id:this.checklist.id}),this.newItem="",this.saveCheckList())}getItemById(t){for(let r of this.checklist.checks)if(r.id==t)return r;return null}unlistItem(t){const r=this.getItemById(t);null!==r&&(r.unlisted=!0,this.saveCheckList())}relistItem(t){const r=this.getItemById(t);null!==r&&(r.unlisted=!1,this.saveCheckList())}removeItem(t){if(window.confirm("Do you realy want to delete this item?"))for(let r=0;r{this.checklist=t,this.serviceMessage="Saved checklist."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while saving checklists: ${t.message}`}})}deleteChecklist(){window.confirm("Do you realy want to delete this checklist?")&&(this.serviceMessage="Removing checklist ...",this.checklistService.deleteChecklist(this.checklistId).subscribe({next:()=>{this.router.navigateByUrl("/checklists")},error:t=>{this.serviceMessage="",this.errorMessage=`Error while deleting checklists: ${t.message}`}}))}}return e.\u0275fac=function(t){return new(t||e)(D(St),D($e))},e.\u0275cmp=Ke({type:e,selectors:[["app-edit-checklist"]],decls:44,vars:22,consts:[["routerLink","/checklists"],[3,"hidden"],[1,"alert",3,"hidden"],["type","button","title","Delete checklist",1,"delete",3,"click"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-item"],["id","input-item","placeholder","Remember x",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],["for","input-checklist-name"],["id","input-checklist-name","placeholder","myChecklist",3,"ngModel","ngModelChange","keydown.enter"],["type","checkbox",3,"ngModel","ngModelChange","change"],[1,"item-text"],[1,"element-buttons"],["type","button","title","Unlist item",1,"unlist",3,"click"],["type","button","title","Relist item",1,"relist",3,"click"],["type","button","title","Delete item",1,"delete",3,"click"]],template:function(t,r){1&t&&(g(0,"a",0),m(1,"Back to: Family checklists"),p(),g(2,"h2"),m(3),p(),g(4,"p",1),m(5),p(),g(6,"p",2),m(7),p(),g(8,"p"),m(9),g(10,"button",3),I("click",function(){return r.deleteChecklist()}),m(11,"Delete checklist"),p(),J(12,"br"),m(13),Ye(14,"date"),J(15,"br"),m(16),Ye(17,"date"),p(),g(18,"h3"),m(19,"Items:"),p(),g(20,"ol"),Ze(21,n4,7,2,"li",4),Ye(22,"onlyListedItems"),p(),g(23,"h3"),m(24,"Unlisted Items:"),p(),g(25,"ol"),Ze(26,r4,9,2,"li",4),Ye(27,"onlyUnlistedItems"),p(),g(28,"h2"),m(29,"Add item:"),p(),g(30,"div",5)(31,"label",6),m(32,"item:"),p(),g(33,"input",7),I("ngModelChange",function(i){return r.newItem=i})("keydown.enter",function(){return r.addItem()}),p(),g(34,"button",8),I("click",function(){return r.addItem()}),m(35,"Add"),p()(),g(36,"h2"),m(37,"Change name:"),p(),g(38,"div",5)(39,"label",9),m(40,"newName:"),p(),g(41,"input",10),I("ngModelChange",function(i){return r.checklist.name=i})("keydown.enter",function(){return r.saveCheckList()}),p(),g(42,"button",8),I("click",function(){return r.saveCheckList()}),m(43,"Save"),p()()),2&t&&(v(3),De("Editing checklist: ",r.checklist.name,""),v(1),b("hidden",""===r.serviceMessage),v(1),F(r.serviceMessage),v(1),b("hidden",""===r.errorMessage),v(1),F(r.errorMessage),v(2),De("Id: ",r.checklist.id," "),v(4),De("Created on: ",zt(14,12,r.checklist.dateCreated,"medium")," "),v(3),De("Updated on: ",zt(17,15,r.checklist.dateUpdated,"medium"),"\n"),v(5),b("ngForOf",$r(22,18,r.checklist.checks)),v(5),b("ngForOf",$r(27,20,r.checklist.checks)),v(7),b("ngModel",r.newItem),v(8),b("ngModel",r.checklist.name))},dependencies:[qt,at,os,Et,gt,Vn,tr,Xw,Xl],styles:["li[_ngcontent-%COMP%]{padding:1px}.delete[_ngcontent-%COMP%]{margin-left:1em;background-color:#ff000080}.unlist[_ngcontent-%COMP%]{background-color:#0000ff80}.relist[_ngcontent-%COMP%]{background-color:#00ff0080}.element-buttons[_ngcontent-%COMP%]{margin-left:2em}.item-text[_ngcontent-%COMP%]{display:inline-block;min-width:8em}"]}),e})(),i4=(()=>{class e{constructor(t,r){this.contactsService=t,this.router=r,this.route=N(sn),this.contactId=-1,this.contact={},this.serviceMessage="",this.errorMessage="",this.contactId=Number(this.route.snapshot.params.id)}getChecklist(){this.serviceMessage="Loading contact ...",this.contactsService.getContact(this.contactId).subscribe({next:t=>{this.contact=t,this.serviceMessage=""},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading contact: ${t.message}`}})}ngOnInit(){this.getChecklist()}saveContact(){this.serviceMessage="Updating contact ...",this.contactsService.saveContact(this.contact).subscribe({next:t=>{this.contact=t,this.serviceMessage="Updated contact."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while updating contact: ${t.message}`}})}deleteContact(){window.confirm("Do you realy want to delete this contact?")&&(this.serviceMessage="Deleting contact ...",this.contactsService.deleteContact(this.contactId).subscribe({next:()=>this.router.navigateByUrl("/contacts"),error:t=>{this.serviceMessage="",this.errorMessage=`Error while deleting contact: ${t.message}`}}))}}return e.\u0275fac=function(t){return new(t||e)(D(bt),D($e))},e.\u0275cmp=Ke({type:e,selectors:[["app-edit-contact"]],decls:54,vars:23,consts:[["routerLink","/contacts"],[3,"hidden"],[1,"alert",3,"hidden"],["type","button","title","Delete contact",1,"delete",3,"click"],[1,"form-group"],["for","input-firstName"],["id","input-firstName","placeholder","firstname",3,"ngModel","ngModelChange"],["for","input-lastName"],["id","input-lastName","placeholder","lastname",3,"ngModel","ngModelChange"],["for","input-telephone"],["id","input-telephone","placeholder","telephone",3,"ngModel","ngModelChange"],["for","input-email"],["id","input-email","placeholder","email",3,"ngModel","ngModelChange"],["for","input-website"],["id","input-website","placeholder","website",3,"ngModel","ngModelChange"],["target","_blank",3,"href"],["for","input-address"],["id","input-address","placeholder","address",3,"ngModel","ngModelChange"],["for","input-description"],["id","input-description","placeholder","description",3,"ngModel","ngModelChange"],[3,"click"]],template:function(t,r){1&t&&(g(0,"a",0),m(1,"Back to: Contacts"),p(),g(2,"h2"),m(3),p(),g(4,"p",1),m(5),p(),g(6,"p",2),m(7),p(),g(8,"p"),m(9),g(10,"button",3),I("click",function(){return r.deleteContact()}),m(11,"Delete contact"),p(),J(12,"br"),m(13),Ye(14,"date"),J(15,"br"),m(16),Ye(17,"date"),p(),J(18,"p"),g(19,"h3"),m(20,"Details:"),p(),g(21,"div",4)(22,"label",5),m(23,"Firstname:"),p(),g(24,"input",6),I("ngModelChange",function(i){return r.contact.firstName=i}),p(),J(25,"br"),g(26,"label",7),m(27,"Lastname:"),p(),g(28,"input",8),I("ngModelChange",function(i){return r.contact.lastName=i}),p(),J(29,"br"),g(30,"label",9),m(31,"Telephone:"),p(),g(32,"input",10),I("ngModelChange",function(i){return r.contact.telephone=i}),p(),J(33,"br"),g(34,"label",11),m(35,"Email:"),p(),g(36,"input",12),I("ngModelChange",function(i){return r.contact.email=i}),p(),J(37,"br"),g(38,"label",13),m(39,"Website:"),p(),g(40,"input",14),I("ngModelChange",function(i){return r.contact.website=i}),p(),g(41,"a",15),m(42,"go to website"),p(),J(43,"br"),g(44,"label",16),m(45,"Address:"),p(),g(46,"input",17),I("ngModelChange",function(i){return r.contact.address=i}),p(),J(47,"br"),g(48,"label",18),m(49,"Description:"),p(),g(50,"input",19),I("ngModelChange",function(i){return r.contact.description=i}),p(),J(51,"br"),g(52,"button",20),I("click",function(){return r.saveContact()}),m(53,"Save"),p()()),2&t&&(v(3),za("Editing contact: ",r.contact.firstName," ",r.contact.lastName,""),v(1),b("hidden",""===r.serviceMessage),v(1),F(r.serviceMessage),v(1),b("hidden",""===r.errorMessage),v(1),F(r.errorMessage),v(2),De("Id: ",r.contact.id," "),v(4),De("Created on: ",zt(14,17,r.contact.dateCreated,"medium")," "),v(3),De("Updated on: ",zt(17,20,r.contact.dateUpdated,"medium"),"\n"),v(8),b("ngModel",r.contact.firstName),v(4),b("ngModel",r.contact.lastName),v(4),b("ngModel",r.contact.telephone),v(4),b("ngModel",r.contact.email),v(4),b("ngModel",r.contact.website),v(1),Ha("href","https://",r.contact.website,"",pc),v(5),b("ngModel",r.contact.address),v(4),b("ngModel",r.contact.description))},dependencies:[at,Et,gt,Vn,tr],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080}"]}),e})(),s4=(()=>{class e{constructor(t){this.loginService=t,this.newPassword1="",this.newPassword2="",this.serviceMessage="",this.errorMessage=""}username(){return this.loginService.getUsername()}saveProfile(){this.newPassword1==this.newPassword2?(this.serviceMessage="Updating password ...",this.loginService.changePassword(this.newPassword1).subscribe({next:()=>{this.serviceMessage="Password changed",this.loginService.authenticate({username:this.loginService.getUsername(),password:this.newPassword1}).subscribe()},error:t=>{this.serviceMessage="",this.errorMessage=`Error while updating password: ${t.message}`}})):this.serviceMessage="Passwords do not match!"}toggleTheme(){const t="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(t),r.classList.contains(t)?localStorage.setItem("theme",t):localStorage.setItem("theme","theme-light")}}return e.\u0275fac=function(t){return new(t||e)(D(ut))},e.\u0275cmp=Ke({type:e,selectors:[["app-profile"]],decls:22,vars:7,consts:[["title","Dark theme on/off",3,"click"],[3,"hidden"],[1,"alert",3,"hidden"],[1,"input"],["for","input-newPassword1"],["type","password","id","input-newPassword1","placeholder","new password",3,"ngModel","ngModelChange"],["for","input-newPassword2"],["type","password","id","input-newPassword2","placeholder","new password",3,"ngModel","ngModelChange"],[3,"click"]],template:function(t,r){1&t&&(g(0,"h1"),m(1),p(),g(2,"button",0),I("click",function(){return r.toggleTheme()}),m(3,"\u2600 Theme"),p(),g(4,"h2"),m(5,"Change password:"),p(),g(6,"p",1),m(7),p(),g(8,"p",2),m(9),p(),g(10,"div",3)(11,"div")(12,"label",4),m(13,"New password:"),p(),g(14,"input",5),I("ngModelChange",function(i){return r.newPassword1=i}),p(),J(15,"br"),g(16,"label",6),m(17,"Repeat new password:"),p(),g(18,"input",7),I("ngModelChange",function(i){return r.newPassword2=i}),p(),J(19,"br"),g(20,"button",8),I("click",function(){return r.saveProfile()}),m(21,"Save"),p()()()),2&t&&(v(1),De("Profile of: ",r.username(),""),v(5),b("hidden",""===r.serviceMessage),v(1),F(r.serviceMessage),v(1),b("hidden",""===r.errorMessage),v(1),F(r.errorMessage),v(5),b("ngModel",r.newPassword1),v(4),b("ngModel",r.newPassword2))},dependencies:[at,Et,gt]}),e})();class dn{constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Le({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n="operation",t){return r=>{throw this.log(`${n} failed: response status = ${r.status} statusText = ${r.statusText}`),0===r.status&&!1===r.ok?new Error("Could not reach API, check your internet connection."):(console.error(r),new Error(`${n} failed: status = ${r.status}`,{cause:r}))}}log(n){this.appMessageService.add(`NoteService: ${n}`)}getNotes(){return this.http.get(dn.REST_URL,this.httpOptions).pipe(z(n=>this.log(`fetched ${n.length} notes`)),K(this.handleError("getNotes",[])))}addNote(n){return this.http.post(dn.REST_URL,{text:n},this.httpOptions).pipe(z(r=>this.log(`added note w/ id=${r.id}`)),K(this.handleError("addNote")))}deleteNote(n){return this.http.delete(`${dn.REST_URL}/${n}`,this.httpOptions).pipe(z(r=>this.log(`deleted note id=${n}`)),K(this.handleError("deleteNote")))}}function a4(e,n){if(1&e){const t=Sn();g(0,"li")(1,"div",7)(2,"span",8),m(3),p(),g(4,"span",9),m(5),Ye(6,"date"),p(),g(7,"button",10),I("click",function(){const i=Ie(t).$implicit;return Te(Pe().deleteNote(i))}),m(8,"x"),p()(),J(9,"p",11),p()}if(2&e){const t=n.$implicit;v(3),F(t.id),v(2),F(zt(6,3,t.dateCreated,"medium")),v(4),b("innerHTML",t.text,sm)}}dn.REST_URL=On_restServerUrl+"/api/notes",dn.\u0275fac=function(n){return new(n||dn)(A(kn),A(Pn))},dn.\u0275prov=P({token:dn,factory:dn.\u0275fac,providedIn:"root"});let l4=(()=>{class e{constructor(t){this.noteService=t,this.notes=[],this.newNote="",this.serviceMessage="",this.errorMessage=""}ngOnInit(){this.getNotes()}getNotes(){this.errorMessage="",this.serviceMessage="Loading notes ...",this.noteService.getNotes().subscribe({next:t=>{this.notes=t,this.serviceMessage=0==t.length?"Nothing to do!":""},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading notes: ${t.message}`}})}newNoteKeyDown(t){"Enter"===t.key&&t.ctrlKey&&(t.preventDefault(),this.addNote())}addNote(){""!==this.newNote?(this.errorMessage="",this.serviceMessage="Adding note ...",this.noteService.addNote(this.newNote).subscribe({next:t=>{this.notes.push(t),this.newNote="",this.serviceMessage="Added note."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while adding note: ${t.message}`}})):this.errorMessage="Note empty"}deleteNote(t){window.confirm("Do you realy want to delete this note?")&&(this.errorMessage="",this.serviceMessage="Removing note ...",this.noteService.deleteNote(t.id).subscribe({next:()=>{this.notes=this.notes.filter(r=>r!==t),this.serviceMessage="Removed note."},error:r=>{this.serviceMessage="",this.errorMessage=`Error while removing note: ${r.message}`}}))}}return e.\u0275fac=function(t){return new(t||e)(D(dn))},e.\u0275cmp=Ke({type:e,selectors:[["app-note"]],decls:16,vars:6,consts:[[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["id","input-text","placeholder","Write a note here.",3,"ngModel","ngModelChange","keydown"],[3,"click"],[1,"element-title"],[1,"badge"],[1,"date"],["type","button","title","Delete note",1,"delete",3,"click"],[1,"text",3,"innerHTML"]],template:function(t,r){1&t&&(g(0,"h2"),m(1,"Family notes:"),p(),g(2,"p",0),m(3),p(),g(4,"p",1),m(5),p(),g(6,"ol",2),Ze(7,a4,10,6,"li",3),p(),g(8,"h2"),m(9,"New note:"),p(),g(10,"div",4)(11,"div")(12,"textarea",5),I("ngModelChange",function(i){return r.newNote=i})("keydown",function(i){return r.newNoteKeyDown(i)}),p(),J(13,"br"),g(14,"button",6),I("click",function(){return r.addNote()}),m(15,"Send"),p()()()),2&t&&(v(2),b("hidden",""===r.serviceMessage),v(1),F(r.serviceMessage),v(1),b("hidden",""===r.errorMessage),v(1),F(r.errorMessage),v(2),b("ngForOf",r.notes),v(5),b("ngModel",r.newNote))},dependencies:[qt,at,Et,gt,tr],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:0;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.element-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.element-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.element-title[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:small;padding:1px 6px;margin:0;border-radius:2px;float:right;background-color:#ff000080}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061;border-radius:0 0 2px}.text[_ngcontent-%COMP%]{white-space:pre-wrap;margin:.2em .4em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;margin:0 0 .2em;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:4em;text-align:right;padding-right:.2em}"]}),e})();class fn{constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Le({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n="operation",t){return r=>{throw this.log(`${n} failed: response status = ${r.status} statusText = ${r.statusText}`),0===r.status&&!1===r.ok?new Error("Could not reach API, check your internet connection."):(console.error(r),new Error(`${n} failed: status = ${r.status}`,{cause:r}))}}log(n){this.appMessageService.add(`NoteService: ${n}`)}getNotes(){return this.http.get(fn.REST_URL,this.httpOptions).pipe(z(n=>this.log(`fetched ${n.length} notes`)),K(this.handleError("getNotes",[])))}addNote(n){return this.http.post(fn.REST_URL,{text:n},this.httpOptions).pipe(z(r=>this.log(`added note w/ id=${r.id}`)),K(this.handleError("addNote")))}deleteNote(n){return this.http.delete(`${fn.REST_URL}/${n}`,this.httpOptions).pipe(z(r=>this.log(`deleted note id=${n}`)),K(this.handleError("deleteNote")))}}function u4(e,n){if(1&e){const t=Sn();g(0,"li")(1,"div",7)(2,"span",8),m(3),p(),g(4,"span",9),m(5),Ye(6,"date"),p(),g(7,"button",10),I("click",function(){const i=Ie(t).$implicit;return Te(Pe().deleteNote(i))}),m(8,"x"),p()(),g(9,"p",11),m(10),p()()}if(2&e){const t=n.$implicit;v(3),F(t.id),v(2),F(zt(6,3,t.dateCreated,"medium")),v(5),F(t.text)}}fn.REST_URL=On_restServerUrl+"/api/mynotes",fn.\u0275fac=function(n){return new(n||fn)(A(kn),A(Pn))},fn.\u0275prov=P({token:fn,factory:fn.\u0275fac,providedIn:"root"});let c4=(()=>{class e{constructor(t){this.noteService=t,this.notes=[],this.newNote="",this.serviceMessage="",this.errorMessage=""}ngOnInit(){this.getNotes()}getNotes(){this.errorMessage="",this.serviceMessage="Loading notes ...",this.noteService.getNotes().subscribe({next:t=>{this.notes=t,this.serviceMessage=0==t.length?"Nothing to do!":""},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading notes: ${t.message}`}})}newNoteKeyDown(t){"Enter"===t.key&&t.ctrlKey&&(t.preventDefault(),this.addNote())}addNote(){""!==this.newNote?(this.errorMessage="",this.serviceMessage="Adding note ...",this.noteService.addNote(this.newNote).subscribe({next:t=>{this.notes.push(t),this.newNote="",this.serviceMessage="Added note."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while adding note: ${t.message}`}})):this.errorMessage="Note empty"}deleteNote(t){window.confirm("Do you realy want to delete this note?")&&(this.errorMessage="",this.serviceMessage="Removing note ...",this.noteService.deleteNote(t.id).subscribe({next:()=>{this.notes=this.notes.filter(r=>r!==t),this.serviceMessage="Removed note."},error:r=>{this.serviceMessage="",this.errorMessage=`Error while removing note: ${r.message}`}}))}}return e.\u0275fac=function(t){return new(t||e)(D(fn))},e.\u0275cmp=Ke({type:e,selectors:[["app-mynote"]],decls:16,vars:6,consts:[[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["id","input-text","placeholder","Write a note here.",3,"ngModel","ngModelChange","keydown"],[3,"click"],[1,"element-title"],[1,"badge"],[1,"date"],["type","button","title","Delete note",1,"delete",3,"click"],[1,"text"]],template:function(t,r){1&t&&(g(0,"h2"),m(1,"Your notes:"),p(),g(2,"p",0),m(3),p(),g(4,"p",1),m(5),p(),g(6,"ol",2),Ze(7,u4,11,6,"li",3),p(),g(8,"h2"),m(9,"New note:"),p(),g(10,"div",4)(11,"div")(12,"textarea",5),I("ngModelChange",function(i){return r.newNote=i})("keydown",function(i){return r.newNoteKeyDown(i)}),p(),J(13,"br"),g(14,"button",6),I("click",function(){return r.addNote()}),m(15,"Send"),p()()()),2&t&&(v(2),b("hidden",""===r.serviceMessage),v(1),F(r.serviceMessage),v(1),b("hidden",""===r.errorMessage),v(1),F(r.errorMessage),v(2),b("ngForOf",r.notes),v(5),b("ngModel",r.newNote))},dependencies:[qt,at,Et,gt,tr],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:0;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.element-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.element-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.element-title[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:small;padding:1px 6px;margin:0;border-radius:2px;float:right;background-color:#ff000080}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061;border-radius:0 0 2px}.text[_ngcontent-%COMP%]{white-space:pre-wrap;margin:.2em .4em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;margin:0 0 .2em;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:4em;text-align:right;padding-right:.2em}"]}),e})();class It{constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Le({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n="operation"){return t=>{throw this.log(`${n} failed: response status = ${t.status} statusText = ${t.statusText}`),0===t.status&&!1===t.ok?new Error("Could not reach API, check your internet connection."):(console.error(t),new Error(`${n} failed: status = ${t.status}`,{cause:t}))}}log(n){this.appMessageService.add(`MyChecklistService: ${n}`)}getChecklists(){return this.http.get(It.REST_URL,this.httpOptions).pipe(z(n=>this.log(`fetched ${n.length} checklists`)),K(this.handleError("getChecklists")))}getChecklist(n){return this.http.get(`${It.REST_URL}/${n}`,this.httpOptions).pipe(z(t=>this.log(`fetched checklist ${t.id}`)),K(this.handleError("getChecklist")))}addChecklist(n){return this.http.post(It.REST_URL,{name:n},this.httpOptions).pipe(z(r=>this.log(`added checklist w/ id=${r.id}`)),K(this.handleError("addChecklist")))}saveChecklist(n){return this.http.post(It.REST_URL,n,this.httpOptions).pipe(z(t=>this.log(`saved checklist w/ id=${t.id}`)),K(this.handleError("addChecklist")))}deleteChecklist(n){return this.http.delete(`${It.REST_URL}/${n}`,this.httpOptions).pipe(z(r=>this.log(`deleted checklist id=${n}`)),K(this.handleError("deleteChecklist")))}}It.REST_URL=On_restServerUrl+"/api/mychecklists",It.\u0275fac=function(n){return new(n||It)(A(kn),A(Pn))},It.\u0275prov=P({token:It,factory:It.\u0275fac,providedIn:"root"});const d4=function(e){return{strikethrough:e}};function f4(e,n){if(1&e&&(g(0,"li",12),m(1),p()),2&e){const t=n.$implicit;b("ngClass",Oo(2,d4,!0===t.checked)),v(1),De(" ",t.text," ")}}const h4=function(e){return["/mychecklist",e]};function p4(e,n){if(1&e&&(g(0,"li")(1,"a",8)(2,"span",9),m(3),p(),g(4,"ul",10),Ze(5,f4,2,4,"li",11),Ye(6,"onlyListedItems"),p()()()),2&e){const t=n.$implicit;v(1),b("routerLink",Oo(5,h4,t.id)),v(2),F(t.name),v(2),b("ngForOf",$r(6,3,t.checks))}}function m4(e,n){if(1&e){const t=Sn();g(0,"li")(1,"input",11),I("ngModelChange",function(o){return Te(Ie(t).$implicit.checked=o)})("change",function(){return Ie(t),Te(Pe().saveCheckList())}),p(),g(2,"label",12),m(3),p(),g(4,"span",13)(5,"button",14),I("click",function(){const i=Ie(t).$implicit;return Te(Pe().unlistItem(i.id))}),m(6,"v"),p()()()}if(2&e){const t=n.$implicit;v(1),b("ngModel",t.checked),v(2),F(t.text)}}function y4(e,n){if(1&e){const t=Sn();g(0,"li")(1,"input",11),I("ngModelChange",function(o){return Te(Ie(t).$implicit.checked=o)})("change",function(){return Ie(t),Te(Pe().saveCheckList())}),p(),g(2,"label",12),m(3),p(),g(4,"span",13)(5,"button",15),I("click",function(){const i=Ie(t).$implicit;return Te(Pe().relistItem(i.id))}),m(6,"^"),p(),g(7,"button",16),I("click",function(){const i=Ie(t).$implicit;return Te(Pe().removeItem(i.id))}),m(8,"x"),p()()()}if(2&e){const t=n.$implicit;v(1),b("ngModel",t.checked),v(2),F(t.text)}}const v4=[{path:"",component:WF,pathMatch:"full"},{path:"login",component:qF},{path:"profile",component:s4,canActivate:[cn]},{path:"chat",component:Sh,canActivate:[cn]},{path:"todo",component:zF,canActivate:[cn]},{path:"notes",component:l4,canActivate:[cn]},{path:"mynotes",component:c4,canActivate:[cn]},{path:"contacts",component:XF,canActivate:[cn]},{path:"contact/:id",component:i4,canActivate:[cn]},{path:"checklists",component:t4,canActivate:[cn]},{path:"checklist/:id",component:o4,canActivate:[cn]},{path:"mychecklists",component:(()=>{class e{constructor(t,r){this.checklistService=t,this.router=r,this.route=N(sn),this.checklists=[],this.newChecklist="",this.serviceMessage="",this.errorMessage=""}getChecklists(){this.serviceMessage="Loading checklists ...",this.checklistService.getChecklists().subscribe({next:t=>{this.checklists=t,this.serviceMessage=t.length?"":"No checklist in database."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading checklists: ${t.message}`}})}ngOnInit(){this.getChecklists()}sendChecklist(){""!==this.newChecklist&&(this.serviceMessage="Creating checklist ...",this.checklistService.addChecklist(this.newChecklist).subscribe({next:t=>this.router.navigate(["/mychecklist/",t.id]),error:t=>{this.serviceMessage="",this.errorMessage=`Error while creating checklists: ${t.message}`}}))}}return e.\u0275fac=function(t){return new(t||e)(D(It),D($e))},e.\u0275cmp=Ke({type:e,selectors:[["app-mychecklists"]],decls:17,vars:6,consts:[[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-name"],["id","input-name","placeholder","myChecklist",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],[1,"element",3,"routerLink"],[1,"text"],[1,"item-list"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"]],template:function(t,r){1&t&&(g(0,"h2"),m(1,"Your checklists:"),p(),g(2,"p",0),m(3),p(),g(4,"p",1),m(5),p(),g(6,"ol",2),Ze(7,p4,7,7,"li",3),p(),g(8,"h2"),m(9,"New checklist:"),p(),g(10,"div",4)(11,"div")(12,"label",5),m(13,"name:"),p(),g(14,"input",6),I("ngModelChange",function(i){return r.newChecklist=i})("keydown.enter",function(){return r.sendChecklist()}),p(),g(15,"button",7),I("click",function(){return r.sendChecklist()}),m(16,"Send"),p()()()),2&t&&(v(2),b("hidden",""===r.serviceMessage),v(1),F(r.serviceMessage),v(1),b("hidden",""===r.errorMessage),v(1),F(r.errorMessage),v(2),b("ngForOf",r.checklists),v(7),b("ngModel",r.newChecklist))},dependencies:[df,qt,at,Et,gt,Vn,Xl],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:.2em;border-radius:4px;border:solid 1px #808080}.element[_ngcontent-%COMP%]{text-decoration:none;display:block}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.strikethrough[_ngcontent-%COMP%]{text-decoration:line-through}"]}),e})(),canActivate:[cn]},{path:"mychecklist/:id",component:(()=>{class e{constructor(t,r){this.checklistService=t,this.router=r,this.route=N(sn),this.checklistId=-1,this.checklist={},this.newItem="",this.serviceMessage="",this.errorMessage="",this.checklistId=Number(this.route.snapshot.params.id)}getChecklist(){this.serviceMessage="Loading checklist ...",this.checklistService.getChecklist(this.checklistId).subscribe({next:t=>{this.checklist=t,this.serviceMessage=""},error:t=>{this.serviceMessage="",this.errorMessage=`Error while getting checklists: ${t.message}`}})}ngOnInit(){this.getChecklist()}addItem(){""!==this.newItem&&(this.checklist.checks.push({text:this.newItem,checklist_id:this.checklist.id}),this.newItem="",this.saveCheckList())}getItemById(t){for(let r of this.checklist.checks)if(r.id==t)return r;return null}unlistItem(t){const r=this.getItemById(t);null!==r&&(r.unlisted=!0,this.saveCheckList())}relistItem(t){const r=this.getItemById(t);null!==r&&(r.unlisted=!1,this.saveCheckList())}removeItem(t){if(window.confirm("Do you realy want to delete this item?"))for(let r=0;r{this.checklist=t,this.serviceMessage="Saved checklist."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while saving checklists: ${t.message}`}})}deleteChecklist(){window.confirm("Do you realy want to delete this checklist?")&&(this.serviceMessage="Removing checklist ...",this.checklistService.deleteChecklist(this.checklistId).subscribe({next:()=>{this.router.navigateByUrl("/checklists")},error:t=>{this.serviceMessage="",this.errorMessage=`Error while deleting checklists: ${t.message}`}}))}}return e.\u0275fac=function(t){return new(t||e)(D(It),D($e))},e.\u0275cmp=Ke({type:e,selectors:[["app-edit-mychecklists"]],decls:44,vars:22,consts:[["routerLink","/mychecklists"],[3,"hidden"],[1,"alert",3,"hidden"],["type","button","title","Delete checklist",1,"delete",3,"click"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-item"],["id","input-item","placeholder","Remember x",3,"ngModel","ngModelChange","keydown.enter"],[3,"click"],["for","input-checklist-name"],["id","input-checklist-name","placeholder","myChecklist",3,"ngModel","ngModelChange","keydown.enter"],["type","checkbox",3,"ngModel","ngModelChange","change"],[1,"item-text"],[1,"element-buttons"],["type","button","title","Unlist item",1,"unlist",3,"click"],["type","button","title","Relist item",1,"relist",3,"click"],["type","button","title","Delete item",1,"delete",3,"click"]],template:function(t,r){1&t&&(g(0,"a",0),m(1,"Back to: Your checklists"),p(),g(2,"h2"),m(3),p(),g(4,"p",1),m(5),p(),g(6,"p",2),m(7),p(),g(8,"p"),m(9),g(10,"button",3),I("click",function(){return r.deleteChecklist()}),m(11,"Delete checklist"),p(),J(12,"br"),m(13),Ye(14,"date"),J(15,"br"),m(16),Ye(17,"date"),p(),g(18,"h3"),m(19,"Items:"),p(),g(20,"ol"),Ze(21,m4,7,2,"li",4),Ye(22,"onlyListedItems"),p(),g(23,"h3"),m(24,"Unlisted Items:"),p(),g(25,"ol"),Ze(26,y4,9,2,"li",4),Ye(27,"onlyUnlistedItems"),p(),g(28,"h2"),m(29,"Add item:"),p(),g(30,"div",5)(31,"label",6),m(32,"item:"),p(),g(33,"input",7),I("ngModelChange",function(i){return r.newItem=i})("keydown.enter",function(){return r.addItem()}),p(),g(34,"button",8),I("click",function(){return r.addItem()}),m(35,"Add"),p()(),g(36,"h2"),m(37,"Change name:"),p(),g(38,"div",5)(39,"label",9),m(40,"newName:"),p(),g(41,"input",10),I("ngModelChange",function(i){return r.checklist.name=i})("keydown.enter",function(){return r.saveCheckList()}),p(),g(42,"button",8),I("click",function(){return r.saveCheckList()}),m(43,"Save"),p()()),2&t&&(v(3),De("Editing checklist: ",r.checklist.name,""),v(1),b("hidden",""===r.serviceMessage),v(1),F(r.serviceMessage),v(1),b("hidden",""===r.errorMessage),v(1),F(r.errorMessage),v(2),De("Id: ",r.checklist.id," "),v(4),De("Created on: ",zt(14,12,r.checklist.dateCreated,"medium")," "),v(3),De("Updated on: ",zt(17,15,r.checklist.dateUpdated,"medium"),"\n"),v(5),b("ngForOf",$r(22,18,r.checklist.checks)),v(5),b("ngForOf",$r(27,20,r.checklist.checks)),v(7),b("ngModel",r.newItem),v(8),b("ngModel",r.checklist.name))},dependencies:[qt,at,os,Et,gt,Vn,tr,Xw,Xl],styles:["li[_ngcontent-%COMP%]{padding:1px}.delete[_ngcontent-%COMP%]{margin-left:1em;background-color:#ff000080}.unlist[_ngcontent-%COMP%]{background-color:#0000ff80}.relist[_ngcontent-%COMP%]{background-color:#00ff0080}.element-buttons[_ngcontent-%COMP%]{margin-left:2em}.item-text[_ngcontent-%COMP%]{display:inline-block;min-width:8em}"]}),e})(),canActivate:[cn]}];let _4=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Yt({type:e}),e.\u0275inj=Ht({imports:[qw.forRoot(v4),qw]}),e})(),C4=(()=>{class e{constructor(t){this.auth=t}intercept(t,r){if(this.auth.isAuthenticated()){const o=this.auth.getAuthorizationToken(),i=t.clone({headers:t.headers.set("Authorization",o)});return r.handle(i)}return r.handle(t)}}return e.\u0275fac=function(t){return new(t||e)(A(ut))},e.\u0275prov=P({token:e,factory:e.\u0275fac}),e})();const $n=void 0;!function zR(e,n,t){(function QT(e,n,t){"string"!=typeof n&&(t=n,n=e[k.LocaleId]),n=n.toLowerCase().replace(/_/g,"-"),No[n]=e,t&&(No[n][k.ExtraData]=t)})(e,n,t)}(["nl",[["a.m.","p.m."],$n,$n],$n,[["Z","M","D","W","D","V","Z"],["zo","ma","di","wo","do","vr","za"],["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"],["zo","ma","di","wo","do","vr","za"]],$n,[["J","F","M","A","M","J","J","A","S","O","N","D"],["jan.","feb.","mrt.","apr.","mei","jun.","jul.","aug.","sep.","okt.","nov.","dec."],["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"]],$n,[["v.C.","n.C."],["v.Chr.","n.Chr."],["voor Christus","na Christus"]],1,[6,0],["dd-MM-y","d MMM y","d MMMM y","EEEE d MMMM y"],["HH:mm","HH:mm:ss","HH:mm:ss z","HH:mm:ss zzzz"],["{1} {0}",$n,"{1} 'om' {0}",$n],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00;\xa4\xa0-#,##0.00","#E0"],"EUR","\u20ac","Euro",{AUD:["AU$","$"],BYN:[$n,"\u0440."],CAD:["C$","$"],FJD:["FJ$","$"],JPY:["JP\xa5","\xa5"],PHP:[$n,"\u20b1"],RUR:[$n,"\u0440."],SBD:["SI$","$"],THB:["\u0e3f"],TWD:["NT$"],USD:["US$","$"],XPF:[],XXX:[]},"ltr",function D4(e){const t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===r?1:5}]);let w4=(()=>{class e{}return e.\u0275fac=function(t){return new(t||e)},e.\u0275mod=Yt({type:e,bootstrap:[UF]}),e.\u0275inj=Ht({providers:[{provide:T0,useClass:C4,multi:!0},{provide:pr,useClass:SC},{provide:An,useValue:"nl-BE"}],imports:[vk,TO,KO,_4]}),e})();mk().bootstrapModule(w4).catch(e=>console.error(e))}},de=>{de(de.s=147)}]);