diff --git a/compose.yml b/compose.yml index cb7a0c5..7c2e767 100644 --- a/compose.yml +++ b/compose.yml @@ -14,7 +14,7 @@ services: # - "3306:3306" tdsfront: - build: front + build: tds-front container_name: tds-web restart: always labels: @@ -25,7 +25,7 @@ services: - "traefik.enable=true" tdsback: - build: back + build: tds-back container_name: tds-api restart: always depends_on: @@ -36,3 +36,41 @@ services: - "traefik.http.routers.tdsback.tls=true" - "traefik.http.routers.tdsback.tls.certresolver=myresolver" - "traefik.enable=true" + + samplefamdb: + image: mariadb + container_name: samplefam-db + restart: always + environment: + - MARIADB_ROOT_PASSWORD=lolpol + - MARIADB_USER=ward + - MARIADB_PASSWORD=lolpol + - MARIADB_DATABASE=family + volumes: + - /data/samplefam/mariadb:/var/lib/mysql +# ports: +# - "3306:3306" + + samplefamfront: + build: sample-front + container_name: samplefam-web + restart: always + labels: + - "traefik.http.routers.samplefamfront.rule=Host(`sf.truyen.network`) && PathPrefix(`/`)" + - "traefik.http.routers.samplefamfront.entrypoints=websecure" + - "traefik.http.routers.samplefamfront.tls=true" + - "traefik.http.routers.samplefamfront.tls.certresolver=myresolver" + - "traefik.enable=true" + + samplefamback: + build: sample-back + container_name: samplefam-api + restart: always + depends_on: + - samplefamdb + labels: + - "traefik.http.routers.samplefamback.rule=Host(`sf.truyen.network`) && PathPrefix(`/api`)" + - "traefik.http.routers.samplefamback.entrypoints=websecure" + - "traefik.http.routers.samplefamback.tls=true" + - "traefik.http.routers.samplefamback.tls.certresolver=myresolver" + - "traefik.enable=true" diff --git a/front/dist/familySite1/main.dc9fadbede7cca5c.js b/front/dist/familySite1/main.dc9fadbede7cca5c.js deleted file mode 100644 index bbaad80..0000000 --- a/front/dist/familySite1/main.dc9fadbede7cca5c.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkfamilySite1=self.webpackChunkfamilySite1||[]).push([[179],{332:()=>{function ce(e){return"function"==typeof e}function Wo(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const _s=Wo(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function qo(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class Tt{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(ce(r))try{r()}catch(i){t=i instanceof _s?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{wh(i)}catch(s){t=t??[],s instanceof _s?t=[...t,...s.errors]:t.push(s)}}if(t)throw new _s(t)}}add(t){var n;if(t&&t!==this)if(this.closed)wh(t);else{if(t instanceof Tt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&qo(n,t)}remove(t){const{_finalizers:n}=this;n&&qo(n,t),t instanceof Tt&&t._removeParent(this)}}Tt.EMPTY=(()=>{const e=new Tt;return e.closed=!0,e})();const _h=Tt.EMPTY;function Dh(e){return e instanceof Tt||e&&"closed"in e&&ce(e.remove)&&ce(e.add)&&ce(e.unsubscribe)}function wh(e){ce(e)?e():e.unsubscribe()}const ar={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Ds={setTimeout(e,t,...n){const{delegate:r}=Ds;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Ds;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Eh(e){Ds.setTimeout(()=>{const{onUnhandledError:t}=ar;if(!t)throw e;t(e)})}function Mh(){}const Uw=zl("C",void 0,void 0);function zl(e,t,n){return{kind:e,value:t,error:n}}let lr=null;function ws(e){if(ar.useDeprecatedSynchronousErrorHandling){const t=!lr;if(t&&(lr={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=lr;if(lr=null,n)throw r}}else e()}class Gl extends Tt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,Dh(t)&&t.add(this)):this.destination=Qw}static create(t,n,r){return new Zo(t,n,r)}next(t){this.isStopped?ql(function Gw(e){return zl("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?ql(function zw(e){return zl("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?ql(Uw,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const qw=Function.prototype.bind;function Wl(e,t){return qw.call(e,t)}class Zw{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){Es(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){Es(r)}else Es(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){Es(n)}}}class Zo extends Gl{constructor(t,n,r){let o;if(super(),ce(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&ar.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Wl(t.next,i),error:t.error&&Wl(t.error,i),complete:t.complete&&Wl(t.complete,i)}):o=t}this.destination=new Zw(o)}}function Es(e){ar.useDeprecatedSynchronousErrorHandling?function Ww(e){ar.useDeprecatedSynchronousErrorHandling&&lr&&(lr.errorThrown=!0,lr.error=e)}(e):Eh(e)}function ql(e,t){const{onStoppedNotification:n}=ar;n&&Ds.setTimeout(()=>n(e,t))}const Qw={closed:!0,next:Mh,error:function Yw(e){throw e},complete:Mh},Zl="function"==typeof Symbol&&Symbol.observable||"@@observable";function ur(e){return e}function bh(e){return 0===e.length?ur:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let be=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function Jw(e){return e&&e instanceof Gl||function Kw(e){return e&&ce(e.next)&&ce(e.error)&&ce(e.complete)}(e)&&Dh(e)}(n)?n:new Zo(n,r,o);return ws(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Sh(r))((o,i)=>{const s=new Zo({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Zl](){return this}pipe(...n){return bh(n)(this)}toPromise(n){return new(n=Sh(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Sh(e){var t;return null!==(t=e??ar.Promise)&&void 0!==t?t:Promise}const e1=Wo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Dn=(()=>{class e extends be{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Ih(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new e1}next(n){ws(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){ws(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){ws(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?_h:(this.currentObservers=null,i.push(n),new Tt(()=>{this.currentObservers=null,qo(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new be;return n.source=this,n}}return e.create=(t,n)=>new Ih(t,n),e})();class Ih extends Dn{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:_h}}function Th(e){return ce(e?.lift)}function Ue(e){return t=>{if(Th(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function $e(e,t,n,r,o){return new t1(e,t,n,r,o)}class t1 extends Gl{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function ne(e,t){return Ue((n,r)=>{let o=0;n.subscribe($e(r,i=>{r.next(e.call(t,i,o++))}))})}function cr(e){return this instanceof cr?(this.v=e,this):new cr(e)}function i1(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Rh(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.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(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[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 Oh=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function Ph(e){return ce(e?.then)}function xh(e){return ce(e[Zl])}function kh(e){return Symbol.asyncIterator&&ce(e?.[Symbol.asyncIterator])}function Fh(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 Lh=function a1(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function Vh(e){return ce(e?.[Lh])}function Hh(e){return function o1(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),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(p,v){i.push([f,h,p,v])>1||a(f,h)})})}function a(f,h){try{!function l(f){f.value instanceof cr?Promise.resolve(f.value.v).then(u,c):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}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 n=e.getReader();try{for(;;){const{value:r,done:o}=yield cr(n.read());if(o)return yield cr(void 0);yield yield cr(r)}}finally{n.releaseLock()}})}function $h(e){return ce(e?.getReader)}function At(e){if(e instanceof be)return e;if(null!=e){if(xh(e))return function l1(e){return new be(t=>{const n=e[Zl]();if(ce(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Oh(e))return function u1(e){return new be(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Eh)})}(e);if(kh(e))return jh(e);if(Vh(e))return function d1(e){return new be(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if($h(e))return function f1(e){return jh(Hh(e))}(e)}throw Fh(e)}function jh(e){return new be(t=>{(function h1(e,t){var n,r,o,i;return function n1(e,t,n,r){return new(n||(n=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 n?i:new n(function(s){s(i)})}(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=i1(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function wn(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function ze(e,t,n=1/0){return ce(t)?ze((r,o)=>ne((i,s)=>t(r,i,o,s))(At(e(r,o))),n):("number"==typeof t&&(n=t),Ue((r,o)=>function p1(e,t,n,r,o,i,s,a){const l=[];let u=0,c=0,d=!1;const f=()=>{d&&!l.length&&!u&&t.complete()},h=v=>u{i&&t.next(v),u++;let D=!1;At(n(v,c++)).subscribe($e(t,b=>{o?.(b),i?h(b):t.next(b)},()=>{D=!0},void 0,()=>{if(D)try{for(u--;l.length&&up(b)):p(b)}f()}catch(b){t.error(b)}}))};return e.subscribe($e(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function Hr(e=1/0){return ze(ur,e)}const Kt=new be(e=>e.complete());function Ql(e){return e[e.length-1]}function Bh(e){return ce(Ql(e))?e.pop():void 0}function Yo(e){return function m1(e){return e&&ce(e.schedule)}(Ql(e))?e.pop():void 0}function Uh(e,t=0){return Ue((n,r)=>{n.subscribe($e(r,o=>wn(r,e,()=>r.next(o),t),()=>wn(r,e,()=>r.complete(),t),o=>wn(r,e,()=>r.error(o),t)))})}function zh(e,t=0){return Ue((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Gh(e,t){if(!e)throw new Error("Iterable cannot be null");return new be(n=>{wn(n,t,()=>{const r=e[Symbol.asyncIterator]();wn(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function xe(e,t){return t?function E1(e,t){if(null!=e){if(xh(e))return function v1(e,t){return At(e).pipe(zh(t),Uh(t))}(e,t);if(Oh(e))return function _1(e,t){return new be(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(Ph(e))return function C1(e,t){return At(e).pipe(zh(t),Uh(t))}(e,t);if(kh(e))return Gh(e,t);if(Vh(e))return function D1(e,t){return new be(n=>{let r;return wn(n,t,()=>{r=e[Lh](),wn(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>ce(r?.return)&&r.return()})}(e,t);if($h(e))return function w1(e,t){return Gh(Hh(e),t)}(e,t)}throw Fh(e)}(e,t):At(e)}function Xl(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Zo({next:()=>{r.unsubscribe(),e()}});return At(t(...n)).subscribe(r)}function ae(e){for(let t in e)if(e[t]===ae)return t;throw Error("Could not find renamed property on target object.")}function Kl(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ke(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ke).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function Jl(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const S1=ae({__forward_ref__:ae});function de(e){return e.__forward_ref__=de,e.toString=function(){return ke(this())},e}function B(e){return eu(e)?e():e}function eu(e){return"function"==typeof e&&e.hasOwnProperty(S1)&&e.__forward_ref__===de}function tu(e){return e&&!!e.\u0275providers}const Wh="https://g.co/ng/security#xss";class M extends Error{constructor(t,n){super(function nu(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function U(e){return"string"==typeof e?e:null==e?"":String(e)}function Ms(e,t){throw new M(-201,!1)}function Nt(e,t){null==e&&function se(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function x(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Rt(e){return{providers:e.providers||[],imports:e.imports||[]}}function bs(e){return qh(e,Ss)||qh(e,Yh)}function qh(e,t){return e.hasOwnProperty(t)?e[t]:null}function Zh(e){return e&&(e.hasOwnProperty(ru)||e.hasOwnProperty(x1))?e[ru]:null}const Ss=ae({\u0275prov:ae}),ru=ae({\u0275inj:ae}),Yh=ae({ngInjectableDef:ae}),x1=ae({ngInjectorDef:ae});var L=(()=>((L=L||{})[L.Default=0]="Default",L[L.Host=1]="Host",L[L.Self=2]="Self",L[L.SkipSelf=4]="SkipSelf",L[L.Optional=8]="Optional",L))();let ou;function at(e){const t=ou;return ou=e,t}function Xh(e,t,n){const r=bs(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&L.Optional?null:void 0!==t?t:void Ms(ke(e))}const fe=(()=>typeof globalThis<"u"&&globalThis||typeof global<"u"&&global||typeof window<"u"&&window||typeof self<"u"&&typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&self)(),Qo={},iu="__NG_DI_FLAG__",Is="ngTempTokenPath",F1=/\n/gm,Kh="__source";let $r;function Un(e){const t=$r;return $r=e,t}function H1(e,t=L.Default){if(void 0===$r)throw new M(-203,!1);return null===$r?Xh(e,void 0,t):$r.get(e,t&L.Optional?null:void 0,t)}function N(e,t=L.Default){return(function Qh(){return ou}()||H1)(B(e),t)}function I(e,t=L.Default){return N(e,Ts(t))}function Ts(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function su(e){const t=[];for(let n=0;n((Jt=Jt||{})[Jt.OnPush=0]="OnPush",Jt[Jt.Default=1]="Default",Jt))(),Ct=(()=>{return(e=Ct||(Ct={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ct;var e})();const Mn={},te=[],As=ae({\u0275cmp:ae}),au=ae({\u0275dir:ae}),lu=ae({\u0275pipe:ae}),ep=ae({\u0275mod:ae}),bn=ae({\u0275fac:ae}),Ko=ae({__NG_ELEMENT_ID__:ae}),tp=ae({__NG_ENV_ID__:ae});function np(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function uu(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==np(h,u,0)||2&r&&u!==f){if(Lt(r))return!1;s=!0}}}}else{if(!s&&!Lt(r)&&!Lt(l))return!1;if(s&&Lt(l))continue;s=!1,r=l|1&r}}return Lt(r)||s}function Lt(e){return 0==(1&e)}function W1(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Lt(s)&&(t+=up(i,o),o=""),r=s,i=i||!Lt(r);n++}return""!==o&&(t+=up(i,o)),t}function _t(e){return En(()=>{const t=dp(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Jt.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||Ct.Emulated,styles:e.styles||te,_:null,schemas:e.schemas||null,tView:null,id:""};fp(n);const r=e.dependencies;return n.directiveDefs=Ns(r,!1),n.pipeDefs=Ns(r,!0),n.id=function iE(e){let t=0;const n=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 n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function tE(e){return re(e)||Qe(e)}function nE(e){return null!==e}function Vt(e){return En(()=>({type:e.type,bootstrap:e.bootstrap||te,declarations:e.declarations||te,imports:e.imports||te,exports:e.exports||te,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function cp(e,t){if(null==e)return Mn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}function $(e){return En(()=>{const t=dp(e);return fp(t),t})}function lt(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 re(e){return e[As]||null}function Qe(e){return e[au]||null}function ut(e){return e[lu]||null}function Dt(e,t){const n=e[ep]||null;if(!n&&!0===t)throw new Error(`Type ${ke(e)} does not have '\u0275mod' property.`);return n}function dp(e){const t={};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:t,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||te,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:cp(e.inputs,t),outputs:cp(e.outputs)}}function fp(e){e.features?.forEach(t=>t(e))}function Ns(e,t){if(!e)return null;const n=t?ut:tE;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(nE)}const Fe=0,T=1,W=2,Ce=3,Ht=4,dr=5,Xe=6,Br=7,we=8,Ur=9,fr=10,z=11,ei=12,hp=13,zr=14,Ae=15,ti=16,Gr=17,en=18,ni=19,pp=20,zn=21,Sn=22,Rs=23,Os=24,X=25,cu=1,gp=2,tn=7,Ps=8,Wr=9,Ge=11;function wt(e){return Array.isArray(e)&&"object"==typeof e[cu]}function ct(e){return Array.isArray(e)&&!0===e[cu]}function du(e){return 0!=(4&e.flags)}function hr(e){return e.componentOffset>-1}function xs(e){return 1==(1&e.flags)}function $t(e){return!!e.template}function fu(e){return 0!=(512&e[W])}function pr(e,t){return e.hasOwnProperty(bn)?e[bn]:null}let cE=fe.WeakRef??class uE{constructor(t){this.ref=t}deref(){return this.ref}},fE=0,nn=null,ks=!1;function je(e){const t=nn;return nn=e,t}class _p{constructor(){this.id=fE++,this.ref=function dE(e){return new cE(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[t,n]of this.producers){const r=n.producerNode.deref();if(void 0!==r&&n.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(n.seenValueVersion))return!0}else this.producers.delete(t),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const t=ks;ks=!0;try{for(const[n,r]of this.consumers){const o=r.consumerNode.deref();void 0!==o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),o?.producers.delete(this.id))}}finally{ks=t}}producerAccessed(){if(ks)throw new Error("");if(null===nn)return;let t=nn.producers.get(this.id);void 0===t?(t={consumerNode:nn.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:nn.trackingVersion},nn.producers.set(this.id,t),this.consumers.set(nn.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=nn.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==nn?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}let Dp=null;const wp=()=>{};class mE extends _p{constructor(t,n,r){super(),this.watch=t,this.schedule=n,this.dirty=!1,this.cleanupFn=wp,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 t=je(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=wp,this.watch(this.registerOnCleanup)}finally{je(t)}}cleanup(){this.cleanupFn()}}class yE{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ot(){return Ep}function Ep(e){return e.type.prototype.ngOnChanges&&(e.setInput=CE),vE}function vE(){const e=bp(this),t=e?.current;if(t){const n=e.previous;if(n===Mn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function CE(e,t,n,r){const o=this.declaredInputs[n],i=bp(e)||function _E(e,t){return e[Mp]=t}(e,{previous:Mn,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new yE(l&&l.currentValue,t,a===Mn),e[r]=t}Ot.ngInherit=!0;const Mp="__ngSimpleChanges__";function bp(e){return e[Mp]||null}const rn=function(e,t,n){};function me(e){for(;Array.isArray(e);)e=e[Fe];return e}function Vs(e,t){return me(t[e])}function dt(e,t){return me(t[e.index])}function Tp(e,t){return e.data[t]}function ft(e,t){const n=t[e];return wt(n)?n:n[Fe]}function Hs(e){return 128==(128&e[W])}function Gn(e,t){return null==t?null:e[t]}function Ap(e){e[Gr]=0}function SE(e){1024&e[W]||(e[W]|=1024,Rp(e,1))}function Np(e){1024&e[W]&&(e[W]&=-1025,Rp(e,-1))}function Rp(e,t){let n=e[Ce];if(null===n)return;n[dr]+=t;let r=n;for(n=n[Ce];null!==n&&(1===t&&1===r[dr]||-1===t&&0===r[dr]);)n[dr]+=t,r=n,n=n[Ce]}const H={lFrame:Bp(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function xp(){return H.bindingsEnabled}function E(){return H.lFrame.lView}function K(){return H.lFrame.tView}function gr(e){return H.lFrame.contextLView=e,e[we]}function mr(e){return H.lFrame.contextLView=null,e}function We(){let e=kp();for(;null!==e&&64===e.type;)e=e.parent;return e}function kp(){return H.lFrame.currentTNode}function on(e,t){const n=H.lFrame;n.currentTNode=e,n.isParent=t}function vu(){return H.lFrame.isParent}function nt(){const e=H.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Yr(){return H.lFrame.bindingIndex++}function Tn(e){const t=H.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function VE(e,t){const n=H.lFrame;n.bindingIndex=n.bindingRootIndex=e,_u(t)}function _u(e){H.lFrame.currentDirectiveIndex=e}function Hp(){return H.lFrame.currentQueryIndex}function wu(e){H.lFrame.currentQueryIndex=e}function $E(e){const t=e[T];return 2===t.type?t.declTNode:1===t.type?e[Xe]:null}function $p(e,t,n){if(n&L.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&L.Host||(o=$E(i),null===o||(i=i[zr],10&o.type))););if(null===o)return!1;t=o,e=i}const r=H.lFrame=jp();return r.currentTNode=t,r.lView=e,!0}function Eu(e){const t=jp(),n=e[T];H.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function jp(){const e=H.lFrame,t=null===e?null:e.child;return null===t?Bp(e):t}function Bp(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Up(){const e=H.lFrame;return H.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const zp=Up;function Mu(){const e=Up();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 rt(){return H.lFrame.selectedIndex}function yr(e){H.lFrame.selectedIndex=e}function _e(){const e=H.lFrame;return Tp(e.tView,e.selectedIndex)}let Wp=!0;function $s(){return Wp}function Wn(e){Wp=e}function js(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[l]<0&&(e[Gr]+=65536),(a>12>16&&(3&e[W])===t&&(e[W]+=4096,Zp(a,i)):Zp(a,i)}const Qr=-1;class ii{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Yp(e){return e!==Qr}function zs(e){return 32767&e}function Gs(e,t){let n=function KE(e){return e>>16}(e),r=t;for(;n>0;)r=r[zr],n--;return r}let Iu=!0;function Ws(e){const t=Iu;return Iu=e,t}const Qp=255,Xp=5;let JE=0;const sn={};function qs(e,t){const n=Kp(e,t);if(-1!==n)return n;const r=t[T];r.firstCreatePass&&(e.injectorIndex=t.length,Tu(r.data,e),Tu(t,null),Tu(r.blueprint,null));const o=Au(e,t),i=e.injectorIndex;if(Yp(o)){const s=zs(o),a=Gs(o,t),l=a[T].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|l[s+u]}return t[i+8]=o,i}function Tu(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Kp(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Au(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=ig(o),null===r)return Qr;if(n++,o=o[zr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Qr}function Nu(e,t,n){!function eM(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ko)&&(r=n[Ko]),null==r&&(r=n[Ko]=JE++);const o=r&Qp;t.data[e+(o>>Xp)]|=1<=0?t&Qp:oM:t}(n);if("function"==typeof i){if(!$p(t,e,r))return r&L.Host?Jp(o,0,r):eg(t,n,r,o);try{const s=i(r);if(null!=s||r&L.Optional)return s;Ms()}finally{zp()}}else if("number"==typeof i){let s=null,a=Kp(e,t),l=Qr,u=r&L.Host?t[Ae][Xe]:null;for((-1===a||r&L.SkipSelf)&&(l=-1===a?Au(e,t):t[a+8],l!==Qr&&og(r,!1)?(s=t[T],a=zs(l),t=Gs(l,t)):a=-1);-1!==a;){const c=t[T];if(rg(i,a,c.data)){const d=nM(a,t,n,s,r,u);if(d!==sn)return d}l=t[a+8],l!==Qr&&og(r,t[T].data[a+8]===u)&&rg(i,a,t)?(s=c,a=zs(l),t=Gs(l,t)):a=-1}}return o}function nM(e,t,n,r,o,i){const s=t[T],a=s.data[e+8],c=Zs(a,s,n,null==r?hr(a)&&Iu:r!=s&&0!=(3&a.type),o&L.Host&&i===a);return null!==c?vr(t,s,c,a):sn}function Zs(e,t,n,r,o){const i=e.providerIndexes,s=t.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&&p.type===n)return h}if(o){const h=s[l];if(h&&$t(h)&&h.type===n)return l}return null}function vr(e,t,n,r){let o=e[n];const i=t.data;if(function YE(e){return e instanceof ii}(o)){const s=o;s.resolving&&function I1(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new M(-200,`Circular dependency in DI detected for ${e}${n}`)}(function ie(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():U(e)}(i[n]));const a=Ws(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?at(s.injectImpl):null;$p(e,r,L.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function qE(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=Ep(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==l&&at(l),Ws(a),s.resolving=!1,zp()}}return o}function rg(e,t,n){return!!(n[t+(e>>Xp)]&1<{const t=e.prototype.constructor,n=t[bn]||Ru(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[bn]||Ru(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ru(e){return eu(e)?()=>{const t=Ru(B(e));return t&&t()}:pr(e)}function ig(e){const t=e[T],n=t.type;return 2===n?t.declTNode:1===n?e[Xe]:null}const Jr="__parameters__";function to(e,t,n){return En(()=>{const r=function Ou(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);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(Jr)?l[Jr]:Object.defineProperty(l,Jr,{value:[]})[Jr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function li(e,t){e.forEach(n=>Array.isArray(n)?li(n,t):t(n))}function ag(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Qs(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Et(e,t,n){let r=no(e,t);return r>=0?e[1|r]=n:(r=~r,function cM(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function Pu(e,t){const n=no(e,t);if(n>=0)return e[1|n]}function no(e,t){return function lg(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<((ht=ht||{})[ht.Important=1]="Important",ht[ht.DashCase=2]="DashCase",ht))();const $u=new Map;let xM=0;const Bu="__ngContext__";function Ke(e,t){wt(t)?(e[Bu]=t[ni],function FM(e){$u.set(e[ni],e)}(t)):e[Bu]=t}let Uu;function zu(e,t){return Uu(e,t)}function fi(e){const t=e[Ce];return ct(t)?t[Ce]:t}function Gu(e){return Ig(e[ei])}function Wu(e){return Ig(e[Ht])}function Ig(e){for(;null!==e&&!ct(e);)e=e[Ht];return e}function io(e,t,n,r,o){if(null!=r){let i,s=!1;ct(r)?i=r:wt(r)&&(s=!0,r=r[Fe]);const a=me(r);0===e&&null!==n?null==o?Og(t,n,a):Cr(t,n,a,o||null,!0):1===e&&null!==n?Cr(t,n,a,o||null,!0):2===e?function la(e,t,n){const r=sa(e,t);r&&function tb(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function ob(e,t,n,r,o){const i=n[tn];i!==me(n)&&io(t,e,r,i,o);for(let a=Ge;a0&&(e[n-1][Ht]=r[Ht]);const i=Qs(e,Ge+t);!function qM(e,t){pi(e,t,t[z],2,null,null),t[Fe]=null,t[Xe]=null}(r[T],r);const s=i[en];null!==s&&s.detachView(i[T]),r[Ce]=null,r[Ht]=null,r[W]&=-129}return r}function Ng(e,t){if(!(256&t[W])){const n=t[z];t[Rs]?.destroy(),t[Os]?.destroy(),n.destroyNode&&pi(e,t,n,3,null,null),function QM(e){let t=e[ei];if(!t)return Yu(e[T],e);for(;t;){let n=null;if(wt(t))n=t[ei];else{const r=t[Ge];r&&(n=r)}if(!n){for(;t&&!t[Ht]&&t!==e;)wt(t)&&Yu(t[T],t),t=t[Ce];null===t&&(t=e),wt(t)&&Yu(t[T],t),n=t&&t[Ht]}t=n}}(t)}}function Yu(e,t){if(!(256&t[W])){t[W]&=-129,t[W]|=256,function eb(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[Br]=null);const o=t[zn];if(null!==o){for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===Ct.None||i===Ct.Emulated)return null}return dt(r,n)}}(e,t.parent,n)}function Cr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Og(e,t,n){e.appendChild(t,n)}function Pg(e,t,n,r,o){null!==r?Cr(e,t,n,r,o):Og(e,t,n)}function sa(e,t){return e.parentNode(t)}let Xu,tc,ca,Fg=function kg(e,t,n){return 40&e.type?dt(e,n):null};function aa(e,t,n,r){const o=Qu(e,r,t),i=t[z],a=function xg(e,t,n){return Fg(e,t,n)}(r.parent||t[Xe],r,t);if(null!=o)if(Array.isArray(n))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return ca}()?.createScriptURL(e)||e}class Wg{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Wh})`}}function qn(e){return e instanceof Wg?e.changingThisBreaksApplicationSecurity:e}function mi(e,t){const n=function mb(e){return e instanceof Wg&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${Wh})`)}return n===t}const _b=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Ne=(()=>((Ne=Ne||{})[Ne.NONE=0]="NONE",Ne[Ne.HTML=1]="HTML",Ne[Ne.STYLE=2]="STYLE",Ne[Ne.SCRIPT=3]="SCRIPT",Ne[Ne.URL=4]="URL",Ne[Ne.RESOURCE_URL=5]="RESOURCE_URL",Ne))();function ac(e){const t=vi();return t?t.sanitize(Ne.URL,e)||"":mi(e,"URL")?qn(e):function rc(e){return(e=String(e)).match(_b)?e:"unsafe:"+e}(U(e))}function Jg(e){const t=vi();if(t)return Gg(t.sanitize(Ne.RESOURCE_URL,e)||"");if(mi(e,"ResourceURL"))return Gg(qn(e));throw new M(904,!1)}function vi(){const e=E();return e&&e[fr].sanitizer}class O{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=x({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Ci=new O("ENVIRONMENT_INITIALIZER"),tm=new O("INJECTOR",-1),nm=new O("INJECTOR_DEF_TYPES");class rm{get(t,n=Qo){if(n===Qo){const r=new Error(`NullInjectorError: No provider for ${ke(t)}!`);throw r.name="NullInjectorError",r}return n}}function Pb(...e){return{\u0275providers:om(0,e),\u0275fromNgModule:!0}}function om(e,...t){const n=[],r=new Set;let o;return li(t,i=>{const s=i;uc(s,n,[],r)&&(o||=[],o.push(s))}),void 0!==o&&im(o,n),n}function im(e,t){for(let n=0;n{t.push(i)})}}function uc(e,t,n,r){if(!(e=B(e)))return!1;let o=null,i=Zh(e);const s=!i&&re(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(i=Zh(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)uc(u,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o);try{li(i.imports,c=>{uc(c,t,n,r)&&(u||=[],u.push(c))})}finally{}void 0!==u&&im(u,t)}if(!a){const u=pr(o)||(()=>new o);t.push({provide:o,useFactory:u,deps:te},{provide:nm,useValue:o,multi:!0},{provide:Ci,useValue:()=>N(o),multi:!0})}const l=i.providers;null==l||a||cc(l,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function cc(e,t){for(let n of e)tu(n)&&(n=n.\u0275providers),Array.isArray(n)?cc(n,t):t(n)}const xb=ae({provide:String,useValue:ae});function dc(e){return null!==e&&"object"==typeof e&&xb in e}function _r(e){return"function"==typeof e}const fc=new O("Set Injector scope."),fa={},Fb={};let hc;function ha(){return void 0===hc&&(hc=new rm),hc}class an{}class pc extends an{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,mc(t,s=>this.processProvider(s)),this.records.set(tm,ao(void 0,this)),o.has("environment")&&this.records.set(an,ao(void 0,this));const i=this.records.get(fc);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(nm.multi,te,L.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Un(this),r=at(void 0);try{return t()}finally{Un(n),at(r)}}get(t,n=Qo,r=L.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(tp))return t[tp](this);r=Ts(r);const o=Un(this),i=at(void 0);try{if(!(r&L.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function jb(e){return"function"==typeof e||"object"==typeof e&&e instanceof O}(t)&&bs(t);a=l&&this.injectableDefInScope(l)?ao(gc(t),fa):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&L.Self?ha():this.parent).get(t,n=r&L.Optional&&n===Qo?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Is]=s[Is]||[]).unshift(ke(t)),o)throw s;return function j1(e,t,n,r){const o=e[Is];throw t[Kh]&&o.unshift(t[Kh]),e.message=function B1(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=ke(t);if(Array.isArray(t))o=t.map(ke).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):ke(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(F1,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Is]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{at(i),Un(o)}}resolveInjectorInitializers(){const t=Un(this),n=at(void 0);try{const r=this.get(Ci.multi,te,L.Self);for(const o of r)o()}finally{Un(t),at(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(ke(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processProvider(t){let n=_r(t=B(t))?t:B(t&&t.provide);const r=function Vb(e){return dc(e)?ao(void 0,e.useValue):ao(lm(e),fa)}(t);if(_r(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=ao(void 0,fa,!0),o.factory=()=>su(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===fa&&(n.value=Fb,n.value=n.factory()),"object"==typeof n.value&&n.value&&function $b(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=B(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function gc(e){const t=bs(e),n=null!==t?t.factory:pr(e);if(null!==n)return n;if(e instanceof O)throw new M(204,!1);if(e instanceof Function)return function Lb(e){const t=e.length;if(t>0)throw function ui(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new M(204,!1)}function lm(e,t,n){let r;if(_r(e)){const o=B(e);return pr(o)||gc(o)}if(dc(e))r=()=>B(e.useValue);else if(function am(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...su(e.deps||[]));else if(function sm(e){return!(!e||!e.useExisting)}(e))r=()=>N(B(e.useExisting));else{const o=B(e&&(e.useClass||e.provide));if(!function Hb(e){return!!e.deps}(e))return pr(o)||gc(o);r=()=>new o(...su(e.deps))}return r}function ao(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function mc(e,t){for(const n of e)Array.isArray(n)?mc(n,t):n&&tu(n)?mc(n.\u0275providers,t):t(n)}const pa=new O("AppId",{providedIn:"root",factory:()=>Bb}),Bb="ng",um=new O("Platform Initializer"),Dr=new O("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),cm=new O("CSP nonce",{providedIn:"root",factory:()=>function gi(){if(void 0!==tc)return tc;if(typeof document<"u")return document;throw new M(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let fm=(e,t)=>null;function hm(e,t){return fm(e,t)}class Kb{}class mm{}class eS{resolveComponentFactory(t){throw function Jb(e){const t=Error(`No component factory found for ${ke(e)}.`);return t.ngComponent=e,t}(t)}}let Ca=(()=>{class e{}return e.NULL=new eS,e})();function tS(){return lo(We(),E())}function lo(e,t){return new Mt(dt(e,t))}let Mt=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=tS,e})();function nS(e){return e instanceof Mt?e.nativeElement:e}class vm{}let Nn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function rS(){const e=E(),n=ft(We().index,e);return(wt(n)?n:e)[z]}(),e})(),oS=(()=>{class e{}return e.\u0275prov=x({token:e,providedIn:"root",factory:()=>null}),e})();class Ei{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const iS=new Ei("16.0.1"),Ic={};function Mi(e){for(;e;){e[W]|=64;const t=fi(e);if(fu(e)&&!t)return e;e=t}return null}function Tc(e){return e.ngOriginalError}class wr{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Tc(t);for(;n&&Tc(n);)n=Tc(n);return n||null}}const Dm=new O("",{providedIn:"root",factory:()=>!1});function Rn(e){return e instanceof Function?e():e}class Mm extends _p{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){Mi(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,n,r){const o=je(this);this.trackingVersion++;try{t(n,r)}finally{je(o)}}destroy(){this.trackingVersion++}}let Da=null;function bm(){return Da??=new Mm,Da}function Sm(e,t){return e[t]??bm()}function Im(e,t){const n=bm();n.hasReadASignal&&(e[t]=Da,n.lView=e,Da=new Mm)}const G={};function w(e){Tm(K(),E(),rt()+e,!1)}function Tm(e,t,n,r){if(!r)if(3==(3&t[W])){const i=e.preOrderCheckHooks;null!==i&&Bs(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Us(t,i,0,n)}yr(n)}function Om(e,t=null,n=null,r){const o=Pm(e,t,n,r);return o.resolveInjectorInitializers(),o}function Pm(e,t=null,n=null,r,o=new Set){const i=[n||te,Pb(e)];return r=r||("object"==typeof e?void 0:ke(e)),new pc(i,t||ha(),r||null,o)}let ln=(()=>{class e{static create(n,r){if(Array.isArray(n))return Om({name:""},r,n,"");{const o=n.name??"";return Om({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=Qo,e.NULL=new rm,e.\u0275prov=x({token:e,providedIn:"any",factory:()=>N(tm)}),e.__NG_ELEMENT_ID__=-1,e})();function _(e,t=L.Default){const n=E();return null===n?N(e,t):tg(We(),n,B(e),t)}function wa(e,t,n,r,o,i,s,a,l,u,c){const d=t.blueprint.slice();return d[Fe]=o,d[W]=140|r,(null!==u||e&&2048&e[W])&&(d[W]|=2048),Ap(d),d[Ce]=d[zr]=e,d[we]=n,d[fr]=s||e&&e[fr],d[z]=a||e&&e[z],d[Ur]=l||e&&e[Ur]||null,d[Xe]=i,d[ni]=function kM(){return xM++}(),d[Sn]=c,d[pp]=u,d[Ae]=2==t.type?e[Ae]:d,d}function co(e,t,n,r,o){let i=e.data[t];if(null===i)i=function Ac(e,t,n,r,o){const i=kp(),s=vu(),l=e.data[t]=function SS(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return function Zr(){return null!==H.skipHydrationRootTNode}()&&(a|=128),{type:n,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:t,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,n,t,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,t,n,r,o),function LE(){return H.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function oi(){const e=H.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return on(i,!0),i}function bi(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;iX&&Tm(e,t,X,!1),rn(a?2:0,o),a)i.runInContext(n,r,o);else{const u=je(null);try{n(r,o)}finally{je(u)}}}finally{a&&null===t[Rs]&&Im(t,Rs),yr(s),rn(a?3:1,o)}}function Nc(e,t,n){if(du(t)){const r=je(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;snull;function Vm(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?Hm(n,t,o,i):r.hasOwnProperty(o)&&Hm(n,t,r[o],i)}return n}function Hm(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function bt(e,t,n,r,o,i,s,a){const l=dt(t,n);let c,u=t.inputs;!a&&null!=u&&(c=u[r])?(Vc(e,n,c,r,o),hr(t)&&function AS(e,t){const n=ft(t,e);16&n[W]||(n[W]|=64)}(n,t.index)):3&t.type&&(r=function TS(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,t.value||"",r):o,i.setProperty(l,r,o))}function xc(e,t,n,r){if(xp()){const o=null===r?null:{"":-1},i=function kS(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,bi(e,n,o.hostVars,G),o)}function un(e,t,n,r,o,i){const s=dt(e,t);!function Fc(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?U(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[z],s,i,e.value,n,r,o)}function jS(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(n,r,o){const i=typeof Zone>"u"?null:Zone.current,s=new mE(n,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[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return e.\u0275prov=x({token:e,providedIn:"root",factory:()=>new e}),e})();function Ma(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s0&&$c(n)}}function $c(e){for(let r=Gu(e);null!==r;r=Wu(r))for(let o=Ge;o0&&$c(i)}const n=e[T].components;if(null!==n)for(let r=0;r0&&$c(o)}}class Ii{get rootNodes(){const t=this._lView,n=t[T];return Si(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[we]}set context(t){this._lView[we]=t}get destroyed(){return 256==(256&this._lView[W])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[Ce];if(ct(t)){const n=t[Ps],r=n?n.indexOf(this):-1;r>-1&&(Zu(t,r),Qs(n,r))}this._attachedToViewContainer=!1}Ng(this._lView[T],this._lView)}onDestroy(t){!function Op(e,t){if(256==(256&e[W]))throw new M(911,!1);null===e[zn]&&(e[zn]=[]),e[zn].push(t)}(this._lView,t)}markForCheck(){Mi(this._cdRefInjectingView||this._lView)}detach(){this._lView[W]&=-129}reattach(){this._lView[W]|=128}detectChanges(){ba(this._lView[T],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function YM(e,t){pi(e,t,t[z],2,null,null)}(this._lView[T],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new M(902,!1);this._appRef=t}}class eI extends Ii{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;ba(t[T],t,t[we],!1)}checkNoChanges(){}get context(){return null}}class Qm extends Ca{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=re(t);return new Ti(n,this.ngModule)}}function Xm(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class nI{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Ts(r);const o=this.injector.get(t,Ic,r);return o!==Ic||n===Ic?o:this.parentInjector.get(t,n,r)}}class Ti extends mm{get inputs(){return Xm(this.componentDef.inputs)}get outputs(){return Xm(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function K1(e){return e.map(X1).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof an?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new nI(t,i):t,a=s.get(vm,null);if(null===a)throw new M(407,!1);const c={rendererFactory:a,sanitizer:s.get(oS,null),effectManager:s.get(Ym,null)},d=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",h=r?function DS(e,t,n,r){const i=r.get(Dm,!1)||n===Ct.ShadowDom,s=e.selectRootElement(t,i);return function wS(e){Lm(e)}(s),s}(d,r,this.componentDef.encapsulation,s):ia(d,f,function tI(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(f)),p=this.componentDef.onPush?576:528,v=Pc(0,null,null,1,0,null,null,null,null,null,null),D=wa(null,v,null,p,null,null,c,d,s,null,null);let b,g;Eu(D);try{const S=this.componentDef;let k,Y=null;S.findHostDirectiveDefs?(k=[],Y=new Map,S.findHostDirectiveDefs(S,k,Y),k.push(S)):k=[S];const ge=function oI(e,t){const n=e[T],r=X;return e[r]=t,co(n,r,2,"#host",null)}(D,h),Go=function iI(e,t,n,r,o,i,s){const a=o[T];!function sI(e,t,n,r){for(const o of e)t.mergedAttrs=Jo(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(Ma(t,t.mergedAttrs,!0),null!==n&&Bg(r,n,t))}(r,e,t,s);let l=null;null!==t&&(l=hm(t,o[Ur]));const u=i.rendererFactory.createRenderer(t,n),c=wa(o,Fm(n),null,n.onPush?64:16,o[e.index],e,i,u,null,null,l);return a.firstCreatePass&&kc(a,e,r.length-1),Ea(o,c),o[e.index]=c}(ge,h,S,k,D,c,d);g=Tp(v,X),h&&function lI(e,t,n,r){if(r)uu(e,n,["ng-version",iS.full]);else{const{attrs:o,classes:i}=function J1(e){const t=[],n=[];let r=1,o=2;for(;r0&&jg(e,n,i.join(" "))}}(d,S,h,r),void 0!==n&&function uI(e,t,n){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Jo(o.hostAttrs,n=Jo(n,o.hostAttrs))}}(r)}function jc(e){return e===Mn?{}:e===te?[]:e}function fI(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function hI(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function pI(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function Ia(e){return!!Bc(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Bc(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function cn(e,t,n){return e[t]=n}function Je(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Er(e,t,n,r){const o=Je(e,t,n);return Je(e,t+1,r)||o}function dn(e,t,n,r){const o=E();return Je(o,Yr(),t)&&(K(),un(_e(),o,e,t,n,r)),dn}function ho(e,t,n,r){return Je(e,Yr(),n)?t+U(n)+r:G}function po(e,t,n,r,o,i){const a=Er(e,function In(){return H.lFrame.bindingIndex}(),n,o);return Tn(2),a?t+U(n)+r+U(o)+i:G}function jt(e,t,n,r,o,i,s,a){const l=E(),u=K(),c=e+X,d=u.firstCreatePass?function HI(e,t,n,r,o,i,s,a,l){const u=t.consts,c=co(t,e,4,s||null,Gn(u,a));xc(t,n,c,Gn(u,l)),js(t,c);const d=c.tView=Pc(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,r,o,i,s):u.data[c];on(d,!1);const f=py(u,l,d,e);$s()&&aa(u,l,f,d),Ke(f,l),Ea(l,l[c]=Um(f,l,f,d)),xs(d)&&Rc(u,l,d),null!=s&&Oc(l,d,a)}let py=function gy(e,t,n,r){return Wn(!0),t[z].createComment("")};function R(e,t,n){const r=E();return Je(r,Yr(),t)&&bt(K(),_e(),r,e,t,r[z],n,!1),R}function Zc(e,t,n,r,o){const s=o?"class":"style";Vc(e,n,t.inputs[s],s,r)}function m(e,t,n,r){const o=E(),i=K(),s=X+e,a=o[z],l=i.firstCreatePass?function zI(e,t,n,r,o,i){const s=t.consts,l=co(t,e,2,r,Gn(s,o));return xc(t,n,l,Gn(s,i)),null!==l.attrs&&Ma(l,l.attrs,!1),null!==l.mergedAttrs&&Ma(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,i,o,t,n,r):i.data[s],u=my(i,o,l,a,t,e);o[s]=u;const c=xs(l);return on(l,!0),Bg(a,u,l),32!=(32&l.flags)&&$s()&&aa(i,o,u,l),0===function TE(){return H.lFrame.elementDepthCount}()&&Ke(u,o),function AE(){H.lFrame.elementDepthCount++}(),c&&(Rc(i,o,l),Nc(i,l,o)),null!==r&&Oc(o,l),m}function y(){let e=We();vu()?function Cu(){H.lFrame.isParent=!1}():(e=e.parent,on(e,!1));const t=e;(function RE(e){return H.skipHydrationRootTNode===e})(t)&&function kE(){H.skipHydrationRootTNode=null}(),function NE(){H.lFrame.elementDepthCount--}();const n=K();return n.firstCreatePass&&(js(n,e),du(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function QE(e){return 0!=(8&e.flags)}(t)&&Zc(n,t,E(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function XE(e){return 0!=(16&e.flags)}(t)&&Zc(n,t,E(),t.stylesWithoutHost,!1),y}function oe(e,t,n,r){return m(e,t,n,r),y(),oe}let my=(e,t,n,r,o,i)=>(Wn(!0),ia(r,o,function Gp(){return H.lFrame.currentNamespace}()));function Oa(){return E()}function Pi(e){return!!e&&"function"==typeof e.then}function Cy(e){return!!e&&"function"==typeof e.subscribe}function P(e,t,n,r){const o=E(),i=K(),s=We();return function Dy(e,t,n,r,o,i,s){const a=xs(r),u=e.firstCreatePass&&Wm(e),c=t[we],d=Gm(t);let f=!0;if(3&r.type||s){const v=dt(r,t),D=s?s(v):v,b=d.length,g=s?k=>s(me(k[r.index])):r.index;let S=null;if(!s&&a&&(S=function QI(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==S)(S.__ngLastListenerFn__||S).__ngNextListenerFn__=i,S.__ngLastListenerFn__=i,f=!1;else{i=Ey(r,t,c,i,!1);const k=n.listen(D,o,i);d.push(i,k),u&&u.push(o,g,b,b+1)}}else i=Ey(r,t,c,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const v=p.length;if(v)for(let D=0;D-1?ft(e.index,t):t);let l=wy(t,n,r,s),u=i.__ngNextListenerFn__;for(;u;)l=wy(t,n,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function Zn(e=1){return function jE(e){return(H.lFrame.contextLView=function BE(e,t){for(;e>0;)t=t[zr],e--;return t}(e,H.lFrame.contextLView))[we]}(e)}function Pa(e,t,n,r,o){const i=E(),s=ho(i,t,n,r);return s!==G&&bt(K(),_e(),i,e,s,i[z],o,!1),Pa}function xa(e,t){return e<<17|t<<2}function Yn(e){return e>>17&32767}function Xc(e){return 2|e}function Mr(e){return(131068&e)>>2}function Kc(e,t){return-131069&e|t<<2}function Jc(e){return 1|e}function Py(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?Yn(i):Mr(i),l=!1;for(;0!==a&&(!1===l||s);){const c=e[a+1];iT(e[a],t)&&(l=!0,e[a+1]=r?Jc(c):Xc(c)),a=r?Yn(c):Mr(c)}l&&(e[n+1]=r?Xc(i):Jc(i))}function iT(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&no(e,t)>=0}function ka(e,t){return function Bt(e,t,n,r){const o=E(),i=K(),s=Tn(2);i.firstUpdatePass&&function By(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[rt()],s=function jy(e,t){return t>=e.expandoStartIndex}(e,n);(function Wy(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function pT(e,t,n,r){const o=function Du(e){const t=H.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=xi(n=ed(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=ed(o,e,t,n,r),null===i){let l=function gT(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Mr(r))return e[Yn(r)]}(e,t,r);void 0!==l&&Array.isArray(l)&&(l=ed(null,e,t,l[1],r),l=xi(l,t.attrs,r),function mT(e,t,n,r){e[Yn(n?t.classBindings:t.styleBindings)]=r}(e,t,r,l))}else i=function yT(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(u=!0)):c=n,o)if(0!==l){const f=Yn(e[a+1]);e[r+1]=xa(f,a),0!==f&&(e[f+1]=Kc(e[f+1],r)),e[a+1]=function tT(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=xa(a,0),0!==a&&(e[a+1]=Kc(e[a+1],r)),a=r;else e[r+1]=xa(l,0),0===a?a=r:e[l+1]=Kc(e[l+1],r),l=r;u&&(e[r+1]=Xc(e[r+1])),Py(e,c,r,!0),Py(e,c,r,!1),function oT(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&no(i,t)>=0&&(n[r+1]=Jc(n[r+1]))}(t,c,e,r,i),s=xa(a,l),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==G&&Je(o,s,t)&&function zy(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const l=e.data,u=l[a+1],c=function nT(e){return 1==(1&e)}(u)?Gy(l,t,n,o,Mr(u),s):void 0;Fa(c)||(Fa(i)||function eT(e){return 2==(2&e)}(u)&&(i=Gy(l,null,n,o,a,s)),function ib(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:ht.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=ht.Important),e.setStyle(n,r,o,i))}}(r,s,Vs(rt(),n),o,i))}(i,i.data[rt()],o,o[z],e,o[s+1]=function DT(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ke(qn(e)))),e}(t,n),r,s)}(e,t,null,!0),ka}function ed(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const l=e[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[o+1];f===G&&(f=d?te:void 0);let h=d?Pu(f,r):c===r?f:void 0;if(u&&!Fa(h)&&(h=Pu(l,r)),Fa(h)&&(a=h,s))return a;const p=e[o+1];o=s?Yn(p):Mr(p)}if(null!==t){let l=i?t.residualClasses:t.residualStyles;null!=l&&(a=Pu(l,r))}return a}function Fa(e){return void 0!==e}function C(e,t=""){const n=E(),r=K(),o=e+X,i=r.firstCreatePass?co(r,o,1,t,null):r.data[o],s=qy(r,n,i,t,e);n[o]=s,$s()&&aa(r,n,s,i),on(i,!1)}let qy=(e,t,n,r,o)=>(Wn(!0),function oa(e,t){return e.createText(t)}(t[z],r));function J(e){return Ze("",e,""),J}function Ze(e,t,n){const r=E(),o=ho(r,e,t,n);return o!==G&&On(r,rt(),o),Ze}function La(e,t,n,r,o){const i=E(),s=po(i,e,t,n,r,o);return s!==G&&On(i,rt(),s),La}const br=void 0;var UT=["en",[["a","p"],["AM","PM"],br],[["AM","PM"],br,br],[["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"]],br,[["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"]],br,[["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}",br,"{1} 'at' {0}",br],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function BT(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let wo={};function ot(e){const t=function zT(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=hv(t);if(n)return n;const r=t.split("-")[0];if(n=hv(r),n)return n;if("en"===r)return UT;throw new M(701,!1)}function hv(e){return e in wo||(wo[e]=fe.ng&&fe.ng.common&&fe.ng.common.locales&&fe.ng.common.locales[e]),wo[e]}var A=(()=>((A=A||{})[A.LocaleId=0]="LocaleId",A[A.DayPeriodsFormat=1]="DayPeriodsFormat",A[A.DayPeriodsStandalone=2]="DayPeriodsStandalone",A[A.DaysFormat=3]="DaysFormat",A[A.DaysStandalone=4]="DaysStandalone",A[A.MonthsFormat=5]="MonthsFormat",A[A.MonthsStandalone=6]="MonthsStandalone",A[A.Eras=7]="Eras",A[A.FirstDayOfWeek=8]="FirstDayOfWeek",A[A.WeekendRange=9]="WeekendRange",A[A.DateFormat=10]="DateFormat",A[A.TimeFormat=11]="TimeFormat",A[A.DateTimeFormat=12]="DateTimeFormat",A[A.NumberSymbols=13]="NumberSymbols",A[A.NumberFormats=14]="NumberFormats",A[A.CurrencyCode=15]="CurrencyCode",A[A.CurrencySymbol=16]="CurrencySymbol",A[A.CurrencyName=17]="CurrencyName",A[A.Currencies=18]="Currencies",A[A.Directionality=19]="Directionality",A[A.PluralCase=20]="PluralCase",A[A.ExtraData=21]="ExtraData",A))();const Eo="en-US";let pv=Eo;function rd(e,t,n,r,o){if(e=B(e),Array.isArray(e))for(let i=0;i>20;if(_r(e)||!e.multi){const h=new ii(l,o,_),p=id(a,t,o?c:c+f,d);-1===p?(Nu(qs(u,s),i,a),od(i,e,t.length),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=id(a,t,c+f,d),p=id(a,t,c,c+f),D=p>=0&&n[p];if(o&&!D||!o&&!(h>=0&&n[h])){Nu(qs(u,s),i,a);const b=function jA(e,t,n,r,o){const i=new ii(e,n,_);return i.multi=[],i.index=t,i.componentProviders=0,Hv(i,o,r&&!n),i}(o?$A:HA,n.length,o,r,l);!o&&D&&(n[p].providerFactory=b),od(i,e,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(b),s.push(b)}else od(i,e,h>-1?h:p,Hv(n[o?p:h],l,!o&&r));!o&&r&&D&&n[p].componentProviders++}}}function od(e,t,n,r){const o=_r(t),i=function kb(e){return!!e.useClass}(t);if(o||i){const l=(i?B(t.useClass):t).prototype.ngOnDestroy;if(l){const u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const c=u.indexOf(n);-1===c?u.push(n,[r,l]):u[c+1].push(r,l)}else u.push(n,l)}}}function Hv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function id(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function VA(e,t,n){const r=K();if(r.firstCreatePass){const o=$t(e);rd(n,r.data,r.blueprint,o,!0),rd(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class Mo{}class $v{}class ad extends Mo{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Qm(this);const o=Dt(t);this._bootstrapComponents=Rn(o.bootstrap),this._r3Injector=Pm(t,n,[{provide:Mo,useValue:this},{provide:Ca,useValue:this.componentFactoryResolver},...r],ke(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ld extends $v{constructor(t){super(),this.moduleType=t}create(t){return new ad(this.moduleType,t,[])}}class jv extends Mo{constructor(t){super(),this.componentFactoryResolver=new Qm(this),this.instance=null;const n=new pc([...t.providers,{provide:Mo,useValue:this},{provide:Ca,useValue:this.componentFactoryResolver}],t.parent||ha(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function ud(e,t,n=null){return new jv({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let zA=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const r=om(0,n.type),o=r.length>0?ud([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,o)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=x({token:e,providedIn:"environment",factory:()=>new e(N(an))}),e})();function Bv(e){e.getStandaloneInjector=t=>t.get(zA).getOrCreateStandaloneInjector(e)}function dd(e,t,n){const r=nt()+e,o=E();return o[r]===G?cn(o,r,n?t.call(n):t()):function Ai(e,t){return e[t]}(o,r)}function Ba(e,t,n,r){return function Yv(e,t,n,r,o,i){const s=t+n;return Je(e,s,o)?cn(e,s+1,i?r.call(i,o):r(o)):$i(e,s+1)}(E(),nt(),e,t,n,r)}function $i(e,t){const n=e[t];return n===G?void 0:n}function Sr(e,t){const n=K();let r;const o=e+X;n.firstCreatePass?(r=function a2(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=pr(r.type)),s=at(_);try{const a=Ws(!1),l=i();return Ws(a),function BI(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,E(),o,l),l}finally{at(s)}}function Ir(e,t,n,r){const o=e+X,i=E(),s=function qr(e,t){return e[t]}(i,o);return function ji(e,t){return e[T].data[t].pure}(i,o)?function Qv(e,t,n,r,o,i,s){const a=t+n;return Er(e,a,o,i)?cn(e,a+2,s?r.call(s,o,i):r(o,i)):$i(e,a+2)}(i,nt(),t,s.transform,n,r,s):s.transform(n,r)}function fd(e){return t=>{setTimeout(e,void 0,t)}}const Me=class f2 extends Dn{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=fd(i),o&&(o=fd(o)),s&&(s=fd(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof Tt&&t.add(a),a}};function h2(){return this._results[Symbol.iterator]()}class hd{get changes(){return this._changes||(this._changes=new Me)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=hd.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=h2)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=function Pt(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function lM(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=m2,e})();const p2=Pn,g2=class extends p2{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n,null)}createEmbeddedViewImpl(t,n,r){const o=this._declarationTContainer.tView,i=wa(this._declarationLView,o,t,16,null,o.declTNode,null,null,null,n||null,r||null);i[ti]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[en];return null!==a&&(i[en]=a.createEmbeddedView(o)),Hc(o,i,t),new Ii(i)}};function m2(){return Ua(We(),E())}function Ua(e,t){return 4&e.type?new g2(t,e,lo(e,t)):null}let zt=(()=>{class e{}return e.__NG_ELEMENT_ID__=E2,e})();function E2(){return iC(We(),E())}const M2=zt,rC=class extends M2{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return lo(this._hostTNode,this._hostLView)}get injector(){return new Xr(this._hostTNode,this._hostLView)}get parentInjector(){const t=Au(this._hostTNode,this._hostLView);if(Yp(t)){const n=Gs(t,this._hostLView),r=zs(t);return new Xr(n[T].data[r+8],n)}return new Xr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=oC(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-Ge}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(a,o,false),a}createComponent(t,n,r,o,i){const s=t&&!function ai(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const v=n||{};a=v.index,r=v.injector,o=v.projectableNodes,i=v.environmentInjector||v.ngModuleRef}const l=s?t:new Ti(re(t)),u=r||this.parentInjector;if(!i&&null==l.ngModule){const D=(s?u:this.parentInjector).get(an,null);D&&(i=D)}re(l.componentType??{});const h=l.create(u,o,null,i);return this.insertImpl(h.hostView,a,false),h}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const o=t._lView,i=o[T];if(function bE(e){return ct(e[Ce])}(o)){const l=this.indexOf(t);if(-1!==l)this.detach(l);else{const u=o[Ce],c=new rC(u,u[Xe],u[Ce]);c.detach(c.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;if(function XM(e,t,n,r){const o=Ge+r,i=n.length;r>0&&(n[o-1][Ht]=t),r0)r.push(s[a/2]);else{const u=i[a+1],c=t[-l];for(let d=Ge;d{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=I(Sd,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(Pi(i))n.push(i);else if(Cy(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),NC=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const xn=new O("LocaleId",{providedIn:"root",factory:()=>I(xn,L.Optional|L.SkipSelf)||function tN(){return typeof $localize<"u"&&$localize.locale||Eo}()});class rN{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let RC=(()=>{class e{compileModuleSync(n){return new ld(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=Rn(Dt(n).declarations).reduce((s,a)=>{const l=re(a);return l&&s.push(new Ti(l)),s},[]);return new rN(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const sN=(()=>Promise.resolve(0))();function Td(e){typeof Zone>"u"?sN.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function xC(...e){}class ve{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Me(!1),this.onMicrotaskEmpty=new Me(!1),this.onStable=new Me(!1),this.onError=new Me(!1),typeof Zone>"u")throw new M(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)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function aN(){let e=fe.requestAnimationFrame,t=fe.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function cN(e){const t=()=>{!function uN(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(fe,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Nd(e),e.isCheckStableRunning=!0,Ad(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Nd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return kC(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),FC(e)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return kC(e),n.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),FC(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Nd(e),Ad(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.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 M(909,!1)}static assertNotInAngularZone(){if(ve.isInAngularZone())throw new M(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,lN,xC,xC);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const lN={};function Ad(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 Nd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function kC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function FC(e){e._nesting--,Ad(e)}class dN{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Me,this.onMicrotaskEmpty=new Me,this.onStable=new Me,this.onError=new Me}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const LC=new O("",{providedIn:"root",factory:VC});function VC(){const e=I(ve);let t=!0;return function M1(...e){const t=Yo(e),n=function y1(e,t){return"number"==typeof Ql(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?At(r[0]):Hr(n)(xe(r,t)):Kt}(new be(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new be(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{ve.assertNotInAngularZone(),Td(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ve.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(function b1(e={}){const{connector:t=(()=>new Dn),resetOnError:n=!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},p=()=>{const v=s;h(),v?.unsubscribe()};return Ue((v,D)=>{u++,!d&&!c&&f();const b=l=l??t();D.add(()=>{u--,0===u&&!d&&!c&&(a=Xl(p,o))}),b.subscribe(D),!s&&u>0&&(s=new Zo({next:g=>b.next(g),error:g=>{d=!0,f(),a=Xl(h,n,g),b.error(g)},complete:()=>{c=!0,f(),a=Xl(h,r),b.complete()}}),At(v).subscribe(s))})(i)}}()))}const HC=new O(""),Wa=new O("");let Pd,Rd=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,Pd||(function fN(e){Pd=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.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(),Td(()=>{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())Td(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,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(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(N(ve),N(Od),N(Wa))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),Od=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return Pd?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),Qn=null;const $C=new O("AllowMultipleToken"),xd=new O("PlatformDestroyListeners"),kd=new O("appBootstrapListener");class BC{constructor(t,n){this.name=t,this.token=n}}function zC(e,t,n=[]){const r=`Platform: ${t}`,o=new O(r);return(i=[])=>{let s=Fd();if(!s||s.injector.get($C,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function gN(e){if(Qn&&!Qn.get($C,!1))throw new M(400,!1);(function jC(){!function pE(e){Dp=e}(()=>{throw new M(600,!1)})})(),Qn=e;const t=e.get(WC);(function UC(e){e.get(um,null)?.forEach(n=>n())})(e)}(function GC(e=[],t){return ln.create({name:t,providers:[{provide:fc,useValue:"platform"},{provide:xd,useValue:new Set([()=>Qn=null])},...e]})}(a,r))}return function yN(e){const t=Fd();if(!t)throw new M(401,!1);return t}()}}function Fd(){return Qn?.get(WC)??null}let WC=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function vN(e="zone.js",t){return"noop"===e?new dN:"zone.js"===e?new ve(t):e}(r?.ngZone,function qC(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function UA(e,t,n){return new ad(e,t,n)}(n.moduleType,this.injector,function KC(e){return[{provide:ve,useFactory:e},{provide:Ci,multi:!0,useFactory:()=>{const t=I(_N,{optional:!0});return()=>t.initialize()}},{provide:XC,useFactory:CN},{provide:LC,useFactory:VC}]}(()=>o)),s=i.injector.get(wr,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{qa(this._modules,i),a.unsubscribe()})}),function ZC(e,t,n){try{const r=n();return Pi(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(Id);return a.runInitializers(),a.donePromise.then(()=>(function gv(e){Nt(e,"Expected localeId to be defined"),"string"==typeof e&&(pv=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(xn,Eo)||Eo),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=YC({},r);return function hN(e,t,n){const r=new ld(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(Io);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new M(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new M(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(xd,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(N(ln))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function YC(e,t){return Array.isArray(t)?t.reduce(YC,e):{...e,...t}}let Io=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=I(XC),this.componentTypes=[],this.components=[],this.isStable=I(LC),this._injector=I(an)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof mm;if(!this._injector.get(Id).done)throw!o&&function jr(e){const t=re(e)||Qe(e)||ut(e);return null!==t&&t.standalone}(n),new M(405,!1);let s;s=o?n:this._injector.get(Ca).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function pN(e){return e.isBoundToModule}(s)?void 0:this._injector.get(Mo),u=s.create(ln.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(HC,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),qa(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new M(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;qa(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(kd,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>qa(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new M(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function qa(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const XC=new O("",{providedIn:"root",factory:()=>I(wr).handleError.bind(void 0)});function CN(){const e=I(ve),t=I(wr);return n=>e.runOutsideAngular(()=>t.handleError(n))}let _N=(()=>{class e{constructor(){this.zone=I(ve),this.applicationRef=I(Io)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();let Za=(()=>{class e{}return e.__NG_ELEMENT_ID__=wN,e})();function wN(e){return function EN(e,t,n){if(hr(e)&&!n){const r=ft(e.index,t);return new Ii(r,r)}return 47&e.type?new Ii(t[Ae],t):null}(We(),E(),16==(16&e))}class n_{constructor(){}supports(t){return Ia(t)}create(t){return new AN(t)}}const TN=(e,t)=>t;class AN{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||TN}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new NN(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new r_),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new r_),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class NN{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class RN{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class r_{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new RN,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function o_(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);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 PN(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class PN{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function s_(){return new Xa([new n_])}let Xa=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||s_()),deps:[[e,new Js,new Ks]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new M(901,!1)}}return e.\u0275prov=x({token:e,providedIn:"root",factory:s_}),e})();function a_(){return new Gi([new i_])}let Gi=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||a_()),deps:[[e,new Js,new Ks]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new M(901,!1)}}return e.\u0275prov=x({token:e,providedIn:"root",factory:a_}),e})();const FN=zC(null,"core",[]);let LN=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(N(Io))},e.\u0275mod=Vt({type:e}),e.\u0275inj=Rt({}),e})(),h_=(()=>{class e{get whenAllTasksComplete(){return 0===this.collection.size&&this.complete(),this.promise}constructor(){this.taskId=0,this.collection=new Set,this.ngZone=I(ve),this.completed=!1,this.ngZone.runOutsideAngular(()=>{this.promise=new Promise(n=>{this.resolve=n})})}add(){if(this.completed)return-1;const n=this.taskId++;return this.collection.add(n),n}remove(n){this.completed||(this.collection.delete(n),0===this.collection.size&&this.complete())}ngOnDestroy(){this.complete(),this.collection.clear()}complete(){this.completed=!0,this.resolve()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function To(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let Ud=null;function Xn(){return Ud}class YN{}const St=new O("DocumentToken");let zd=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(XN)},providedIn:"platform"}),e})();const QN=new O("Location Initialized");let XN=(()=>{class e extends zd{constructor(){super(),this._doc=I(St),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Xn().getBaseHref(this._doc)}onPopState(n){const r=Xn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Xn().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return new e},providedIn:"platform"}),e})();function Gd(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function g_(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function kn(e){return e&&"?"!==e[0]?"?"+e:e}let Kn=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(y_)},providedIn:"root"}),e})();const m_=new O("appBaseHref");let y_=(()=>{class e extends Kn{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??I(St).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Gd(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+kn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+kn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+kn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(N(zd),N(m_,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),v_=(()=>{class e extends Kn{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Gd(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+kn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+kn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(N(zd),N(m_,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),Wd=(()=>{class e{constructor(n){this._subject=new Me,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function eR(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(g_(C_(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(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+kn(r))}normalize(n){return e.stripTrailingSlash(function JN(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,C_(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+kn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+kn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return e.normalizeQueryParams=kn,e.joinWithSlash=Gd,e.stripTrailingSlash=g_,e.\u0275fac=function(n){return new(n||e)(N(Kn))},e.\u0275prov=x({token:e,factory:function(){return function KN(){return new Wd(N(Kn))}()},providedIn:"root"}),e})();function C_(e){return e.replace(/\/index.html$/,"")}var Se=(()=>((Se=Se||{})[Se.Format=0]="Format",Se[Se.Standalone=1]="Standalone",Se))(),Q=(()=>((Q=Q||{})[Q.Narrow=0]="Narrow",Q[Q.Abbreviated=1]="Abbreviated",Q[Q.Wide=2]="Wide",Q[Q.Short=3]="Short",Q))(),De=(()=>((De=De||{})[De.Short=0]="Short",De[De.Medium=1]="Medium",De[De.Long=2]="Long",De[De.Full=3]="Full",De))(),F=(()=>((F=F||{})[F.Decimal=0]="Decimal",F[F.Group=1]="Group",F[F.List=2]="List",F[F.PercentSign=3]="PercentSign",F[F.PlusSign=4]="PlusSign",F[F.MinusSign=5]="MinusSign",F[F.Exponential=6]="Exponential",F[F.SuperscriptingExponent=7]="SuperscriptingExponent",F[F.PerMille=8]="PerMille",F[F.Infinity=9]="Infinity",F[F.NaN=10]="NaN",F[F.TimeSeparator=11]="TimeSeparator",F[F.CurrencyDecimal=12]="CurrencyDecimal",F[F.CurrencyGroup=13]="CurrencyGroup",F))();function Ja(e,t){return Ft(ot(e)[A.DateFormat],t)}function el(e,t){return Ft(ot(e)[A.TimeFormat],t)}function tl(e,t){return Ft(ot(e)[A.DateTimeFormat],t)}function kt(e,t){const n=ot(e),r=n[A.NumberSymbols][t];if(typeof r>"u"){if(t===F.CurrencyDecimal)return n[A.NumberSymbols][F.Decimal];if(t===F.CurrencyGroup)return n[A.NumberSymbols][F.Group]}return r}function D_(e){if(!e[A.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[A.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ft(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function Zd(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const hR=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Wi={},pR=/((?:[^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 He=(()=>((He=He||{})[He.Short=0]="Short",He[He.ShortGMT=1]="ShortGMT",He[He.Long=2]="Long",He[He.Extended=3]="Extended",He))(),V=(()=>((V=V||{})[V.FullYear=0]="FullYear",V[V.Month=1]="Month",V[V.Date=2]="Date",V[V.Hours=3]="Hours",V[V.Minutes=4]="Minutes",V[V.Seconds=5]="Seconds",V[V.FractionalSeconds=6]="FractionalSeconds",V[V.Day=7]="Day",V))(),Z=(()=>((Z=Z||{})[Z.DayPeriods=0]="DayPeriods",Z[Z.Days=1]="Days",Z[Z.Months=2]="Months",Z[Z.Eras=3]="Eras",Z))();function gR(e,t,n,r){let o=function MR(e){if(M_(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 nl(o,i-1,s)}const n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(hR))return function bR(e){const t=new Date(0);let n=0,r=0;const o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,s,a,l,u),t}(r)}const t=new Date(e);if(!M_(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=Fn(n,t)||t;let a,s=[];for(;t;){if(a=pR.exec(t),!a){s.push(t);break}{s=s.concat(a.slice(1));const c=s.pop();if(!c)break;t=c}}let l=o.getTimezoneOffset();r&&(l=E_(r,l),o=function ER(e,t,n){const r=n?-1:1,o=e.getTimezoneOffset();return function wR(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,r*(E_(t,o)-o))}(o,r,!0));let u="";return s.forEach(c=>{const d=function DR(e){if(Qd[e])return Qd[e];let t;switch(e){case"G":case"GG":case"GGG":t=he(Z.Eras,Q.Abbreviated);break;case"GGGG":t=he(Z.Eras,Q.Wide);break;case"GGGGG":t=he(Z.Eras,Q.Narrow);break;case"y":t=Oe(V.FullYear,1,0,!1,!0);break;case"yy":t=Oe(V.FullYear,2,0,!0,!0);break;case"yyy":t=Oe(V.FullYear,3,0,!1,!0);break;case"yyyy":t=Oe(V.FullYear,4,0,!1,!0);break;case"Y":t=sl(1);break;case"YY":t=sl(2,!0);break;case"YYY":t=sl(3);break;case"YYYY":t=sl(4);break;case"M":case"L":t=Oe(V.Month,1,1);break;case"MM":case"LL":t=Oe(V.Month,2,1);break;case"MMM":t=he(Z.Months,Q.Abbreviated);break;case"MMMM":t=he(Z.Months,Q.Wide);break;case"MMMMM":t=he(Z.Months,Q.Narrow);break;case"LLL":t=he(Z.Months,Q.Abbreviated,Se.Standalone);break;case"LLLL":t=he(Z.Months,Q.Wide,Se.Standalone);break;case"LLLLL":t=he(Z.Months,Q.Narrow,Se.Standalone);break;case"w":t=Yd(1);break;case"ww":t=Yd(2);break;case"W":t=Yd(1,!0);break;case"d":t=Oe(V.Date,1);break;case"dd":t=Oe(V.Date,2);break;case"c":case"cc":t=Oe(V.Day,1);break;case"ccc":t=he(Z.Days,Q.Abbreviated,Se.Standalone);break;case"cccc":t=he(Z.Days,Q.Wide,Se.Standalone);break;case"ccccc":t=he(Z.Days,Q.Narrow,Se.Standalone);break;case"cccccc":t=he(Z.Days,Q.Short,Se.Standalone);break;case"E":case"EE":case"EEE":t=he(Z.Days,Q.Abbreviated);break;case"EEEE":t=he(Z.Days,Q.Wide);break;case"EEEEE":t=he(Z.Days,Q.Narrow);break;case"EEEEEE":t=he(Z.Days,Q.Short);break;case"a":case"aa":case"aaa":t=he(Z.DayPeriods,Q.Abbreviated);break;case"aaaa":t=he(Z.DayPeriods,Q.Wide);break;case"aaaaa":t=he(Z.DayPeriods,Q.Narrow);break;case"b":case"bb":case"bbb":t=he(Z.DayPeriods,Q.Abbreviated,Se.Standalone,!0);break;case"bbbb":t=he(Z.DayPeriods,Q.Wide,Se.Standalone,!0);break;case"bbbbb":t=he(Z.DayPeriods,Q.Narrow,Se.Standalone,!0);break;case"B":case"BB":case"BBB":t=he(Z.DayPeriods,Q.Abbreviated,Se.Format,!0);break;case"BBBB":t=he(Z.DayPeriods,Q.Wide,Se.Format,!0);break;case"BBBBB":t=he(Z.DayPeriods,Q.Narrow,Se.Format,!0);break;case"h":t=Oe(V.Hours,1,-12);break;case"hh":t=Oe(V.Hours,2,-12);break;case"H":t=Oe(V.Hours,1);break;case"HH":t=Oe(V.Hours,2);break;case"m":t=Oe(V.Minutes,1);break;case"mm":t=Oe(V.Minutes,2);break;case"s":t=Oe(V.Seconds,1);break;case"ss":t=Oe(V.Seconds,2);break;case"S":t=Oe(V.FractionalSeconds,1);break;case"SS":t=Oe(V.FractionalSeconds,2);break;case"SSS":t=Oe(V.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=ol(He.Short);break;case"ZZZZZ":t=ol(He.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=ol(He.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=ol(He.Long);break;default:return null}return Qd[e]=t,t}(c);u+=d?d(o,n,l):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function nl(e,t,n){const r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function Fn(e,t){const n=function tR(e){return ot(e)[A.LocaleId]}(e);if(Wi[n]=Wi[n]||{},Wi[n][t])return Wi[n][t];let r="";switch(t){case"shortDate":r=Ja(e,De.Short);break;case"mediumDate":r=Ja(e,De.Medium);break;case"longDate":r=Ja(e,De.Long);break;case"fullDate":r=Ja(e,De.Full);break;case"shortTime":r=el(e,De.Short);break;case"mediumTime":r=el(e,De.Medium);break;case"longTime":r=el(e,De.Long);break;case"fullTime":r=el(e,De.Full);break;case"short":const o=Fn(e,"shortTime"),i=Fn(e,"shortDate");r=rl(tl(e,De.Short),[o,i]);break;case"medium":const s=Fn(e,"mediumTime"),a=Fn(e,"mediumDate");r=rl(tl(e,De.Medium),[s,a]);break;case"long":const l=Fn(e,"longTime"),u=Fn(e,"longDate");r=rl(tl(e,De.Long),[l,u]);break;case"full":const c=Fn(e,"fullTime"),d=Fn(e,"fullDate");r=rl(tl(e,De.Full),[c,d])}return r&&(Wi[n][t]=r),r}function rl(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return null!=t&&r in t?t[r]:n})),e}function Wt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,i=n));let s=String(e);for(;s.length0||a>-n)&&(a+=n),e===V.Hours)0===a&&-12===n&&(a=12);else if(e===V.FractionalSeconds)return function mR(e,t){return Wt(e,3).substring(0,t)}(a,t);const l=kt(s,F.MinusSign);return Wt(a,t,l,r,o)}}function he(e,t,n=Se.Format,r=!1){return function(o,i){return function vR(e,t,n,r,o,i){switch(n){case Z.Months:return function oR(e,t,n){const r=ot(e),i=Ft([r[A.MonthsFormat],r[A.MonthsStandalone]],t);return Ft(i,n)}(t,o,r)[e.getMonth()];case Z.Days:return function rR(e,t,n){const r=ot(e),i=Ft([r[A.DaysFormat],r[A.DaysStandalone]],t);return Ft(i,n)}(t,o,r)[e.getDay()];case Z.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(i){const u=function lR(e){const t=ot(e);return D_(t),(t[A.ExtraData][2]||[]).map(r=>"string"==typeof r?Zd(r):[Zd(r[0]),Zd(r[1])])}(t),c=function uR(e,t,n){const r=ot(e);D_(r);const i=Ft([r[A.ExtraData][0],r[A.ExtraData][1]],t)||[];return Ft(i,n)||[]}(t,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){const[h,p]=f,v=s>=h.hours&&a>=h.minutes,D=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case He.Short:return(o>=0?"+":"")+Wt(s,2,i)+Wt(Math.abs(o%60),2,i);case He.ShortGMT:return"GMT"+(o>=0?"+":"")+Wt(s,1,i);case He.Long:return"GMT"+(o>=0?"+":"")+Wt(s,2,i)+":"+Wt(Math.abs(o%60),2,i);case He.Extended:return 0===r?"Z":(o>=0?"+":"")+Wt(s,2,i)+":"+Wt(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}const CR=0,il=4;function w_(e){return nl(e.getFullYear(),e.getMonth(),e.getDate()+(il-e.getDay()))}function Yd(e,t=!1){return function(n,r){let o;if(t){const i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{const i=w_(n),s=function _R(e){const t=nl(e,CR,1).getDay();return nl(e,0,1+(t<=il?il:il+7)-t)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Wt(o,e,kt(r,F.MinusSign))}}function sl(e,t=!1){return function(n,r){return Wt(w_(n).getFullYear(),e,kt(r,F.MinusSign),t)}}const Qd={};function E_(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function M_(e){return e instanceof Date&&!isNaN(e.valueOf())}function T_(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}const nf=/\s+/,A_=[];let N_=(()=>{class e{constructor(n,r,o,i){this._iterableDiffers=n,this._keyValueDiffers=r,this._ngEl=o,this._renderer=i,this.initialClasses=A_,this.stateMap=new Map}set klass(n){this.initialClasses=null!=n?n.trim().split(nf):A_}set ngClass(n){this.rawClass="string"==typeof n?n.trim().split(nf):n}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(const r of n)this._updateState(r,!0);else if(null!=n)for(const r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){const o=this.stateMap.get(n);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const n of this.stateMap){const r=n[0],o=n[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(n,r){(n=n.trim()).length>0&&n.split(nf).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return e.\u0275fac=function(n){return new(n||e)(_(Xa),_(Gi),_(Mt),_(Nn))},e.\u0275dir=$({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})();class VR{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,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 Jn=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new VR(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),O_(a,o)}});for(let o=0,i=r.length;o{O_(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(_(zt),_(Pn),_(Xa))},e.\u0275dir=$({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function O_(e,t){e.context.$implicit=t.item}let rf=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new HR,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){P_("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){P_("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(_(zt),_(Pn))},e.\u0275dir=$({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class HR{constructor(){this.$implicit=null,this.ngIf=null}}function P_(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ke(t)}'.`)}const KR=new O("DATE_PIPE_DEFAULT_TIMEZONE"),JR=new O("DATE_PIPE_DEFAULT_OPTIONS");let Zi=(()=>{class e{constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(null==n||""===n||n!=n)return null;try{return gR(n,r??this.defaultOptions?.dateFormat??"mediumDate",i||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw function qt(e,t){return new M(2100,!1)}()}}}return e.\u0275fac=function(n){return new(n||e)(_(xn,16),_(KR,24),_(JR,24))},e.\u0275pipe=lt({name:"date",type:e,pure:!0,standalone:!0}),e})(),u3=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Rt({}),e})();function L_(e){return"server"===e}let h3=(()=>{class e{}return e.\u0275prov=x({token:e,providedIn:"root",factory:()=>new p3(N(St),window)}),e})();class p3{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const n=function g3(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;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(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=V_(this.window.history)||V_(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function V_(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class H_{}class B3 extends YN{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ff extends B3{static makeCurrent(){!function ZN(e){Ud||(Ud=e)}(new ff)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function U3(){return Qi=Qi||document.querySelector("base"),Qi?Qi.getAttribute("href"):null}();return null==n?null:function z3(e){cl=cl||document.createElement("a"),cl.setAttribute("href",e);const t=cl.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Qi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return T_(document.cookie,t)}}let cl,Qi=null,W3=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const hf=new O("EventManagerPlugins");let z_=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new M(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return e.\u0275fac=function(n){return new(n||e)(N(hf),N(ve))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();class G_{constructor(t){this._doc=t}}const pf="ng-app-id";let W_=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=L_(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${pf}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(pf),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(pf,this.appId),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r);n.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(N(St),N(pa),N(cm,8),N(Dr))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const gf={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,Q3=new O("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function Z_(e,t){return t.map(n=>n.replace(mf,e))}let Y_=(()=>{class e{constructor(n,r,o,i,s,a,l,u=null){this.eventManager=n,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=L_(a),this.defaultRenderer=new yf(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ct.ShadowDom&&(r={...r,encapsulation:Ct.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof X_?o.applyToHost(n):o instanceof vf&&o.applyStyles(),o}getOrCreateRenderer(n,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 Ct.Emulated:i=new X_(l,u,r,this.appId,c,s,a,d);break;case Ct.ShadowDom:return new eO(l,u,n,r,s,a,this.nonce,d);default:i=new vf(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(n){return new(n||e)(N(z_),N(W_),N(pa),N(Q3),N(St),N(Dr),N(ve),N(cm))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();class yf{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(gf[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Q_(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Q_(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new M(5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=gf[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=gf[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(ht.DashCase|ht.Important)?t.style.setProperty(n,r,o&ht.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ht.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=Xn().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&(n.preventDefault(),n.returnValue=!1)}}}function Q_(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class eO extends yf{constructor(t,n,r,o,i,s,a,l){super(t,i,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=Z_(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(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class vf extends yf{constructor(t,n,r,o,i,s,a,l){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=l?Z_(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 X_ extends vf{constructor(t,n,r,o,i,s,a,l){const u=o+"-"+r.id;super(t,n,r,i,s,a,l,u),this.contentAttr=function X3(e){return"_ngcontent-%COMP%".replace(mf,e)}(u),this.hostAttr=function K3(e){return"_nghost-%COMP%".replace(mf,e)}(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let tO=(()=>{class e extends G_{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(N(St))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const K_=["alt","control","meta","shift"],nO={"\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"},rO={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let oO=(()=>{class e extends G_{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Xn().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.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."),K_.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(n,r){let o=nO[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),K_.forEach(s=>{s!==o&&(0,rO[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(N(St))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const lO=zC(FN,"browser",[{provide:Dr,useValue:"browser"},{provide:um,useValue:function iO(){ff.makeCurrent()},multi:!0},{provide:St,useFactory:function aO(){return function cb(e){tc=e}(document),document},deps:[]}]),uO=new O(""),tD=[{provide:Wa,useClass:class G3{addToWindow(t){fe.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new M(5103,!1);return i},fe.getAllAngularTestabilities=()=>t.getAllTestabilities(),fe.getAllAngularRootElements=()=>t.getAllRootElements(),fe.frameworkStabilizers||(fe.frameworkStabilizers=[]),fe.frameworkStabilizers.push(r=>{const o=fe.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(t,n,r){return null==n?null:t.getTestability(n)??(r?Xn().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:HC,useClass:Rd,deps:[ve,Od,Wa]},{provide:Rd,useClass:Rd,deps:[ve,Od,Wa]}],nD=[{provide:fc,useValue:"root"},{provide:wr,useFactory:function sO(){return new wr},deps:[]},{provide:hf,useClass:tO,multi:!0,deps:[St,ve,Dr]},{provide:hf,useClass:oO,multi:!0,deps:[St]},Y_,W_,z_,{provide:vm,useExisting:Y_},{provide:H_,useClass:W3,deps:[]},[]];let cO=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:pa,useValue:n.appId}]}}}return e.\u0275fac=function(n){return new(n||e)(N(uO,12))},e.\u0275mod=Vt({type:e}),e.\u0275inj=Rt({providers:[...nD,...tD],imports:[u3,LN]}),e})(),rD=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return e.\u0275fac=function(n){return new(n||e)(N(St))},e.\u0275prov=x({token:e,factory:function(n){let r=null;return r=n?new n:function fO(){return new rD(N(St))}(),r},providedIn:"root"}),e})();typeof window<"u"&&window;const{isArray:yO}=Array,{getPrototypeOf:vO,prototype:CO,keys:_O}=Object;function aD(e){if(1===e.length){const t=e[0];if(yO(t))return{args:t,keys:null};if(function DO(e){return e&&"object"==typeof e&&vO(e)===CO}(t)){const n=_O(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:wO}=Array;function lD(e){return ne(t=>function EO(e,t){return wO(t)?e(...t):e(t)}(e,t))}function uD(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}let cD=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(_(Nn),_(Mt))},e.\u0275dir=$({type:e}),e})(),Ar=(()=>{class e extends cD{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=qe(e)))(r||e)}}(),e.\u0275dir=$({type:e,features:[le]}),e})();const pn=new O("NgValueAccessor"),bO={provide:pn,useExisting:de(()=>dl),multi:!0};let dl=(()=>{class e extends Ar{writeValue(n){this.setProperty("checked",n)}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=qe(e)))(r||e)}}(),e.\u0275dir=$({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){1&n&&P("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[ye([bO]),le]}),e})();const SO={provide:pn,useExisting:de(()=>Zt),multi:!0},TO=new O("CompositionEventMode");let Zt=(()=>{class e extends cD{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function IO(){const e=Xn()?Xn().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return e.\u0275fac=function(n){return new(n||e)(_(Nn),_(Mt),_(TO,8))},e.\u0275dir=$({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(n,r){1&n&&P("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([SO]),le]}),e})();const et=new O("NgValidators"),nr=new O("NgAsyncValidators");function _D(e){return null!=e}function DD(e){return Pi(e)?xe(e):e}function wD(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function ED(e,t){return t.map(n=>n(e))}function MD(e){return e.map(t=>function NO(e){return!e.validate}(t)?t:n=>t.validate(n))}function _f(e){return null!=e?function bD(e){if(!e)return null;const t=e.filter(_D);return 0==t.length?null:function(n){return wD(ED(n,t))}}(MD(e)):null}function Df(e){return null!=e?function SD(e){if(!e)return null;const t=e.filter(_D);return 0==t.length?null:function(n){return function MO(...e){const t=Bh(e),{args:n,keys:r}=aD(e),o=new be(i=>{const{length:s}=n;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?uD(r,a):a),i.complete())}))}});return t?o.pipe(lD(t)):o}(ED(n,t).map(DD)).pipe(ne(wD))}}(MD(e)):null}function ID(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function wf(e){return e?Array.isArray(e)?e:[e]:[]}function hl(e,t){return Array.isArray(e)?e.includes(t):e===t}function ND(e,t){const n=wf(t);return wf(e).forEach(o=>{hl(n,o)||n.push(o)}),n}function RD(e,t){return wf(t).filter(n=>!hl(e,n))}class OD{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=_f(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=Df(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class st extends OD{get formDirective(){return null}get path(){return null}}class rr extends OD{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class PD{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Ln=(()=>{class e extends PD{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(_(rr,2))},e.\u0275dir=$({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&ka("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:[le]}),e})(),xD=(()=>{class e extends PD{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(_(st,10))},e.\u0275dir=$({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&ka("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:[le]}),e})();const Xi="VALID",gl="INVALID",Ao="PENDING",Ki="DISABLED";function bf(e){return(ml(e)?e.validators:e)||null}function Sf(e,t){return(ml(t)?t.asyncValidators:e)||null}function ml(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class VD{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Xi}get invalid(){return this.status===gl}get pending(){return this.status==Ao}get disabled(){return this.status===Ki}get enabled(){return this.status!==Ki}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(ND(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(ND(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(RD(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(RD(t,this._rawAsyncValidators))}hasValidator(t){return hl(this._rawValidators,t)}hasAsyncValidator(t){return hl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Ao,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Ki,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Xi,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Xi||this.status===Ao)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Ki:Xi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Ao,this._hasOwnPendingAsyncValidator=!0;const n=DD(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Me,this.statusChanges=new Me}_calculateStatus(){return this._allControlsDisabled()?Ki:this.errors?gl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ao)?Ao:this._anyControlsHaveStatus(gl)?gl:Xi}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){ml(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function xO(e){return Array.isArray(e)?_f(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function kO(e){return Array.isArray(e)?Df(e):e||null}(this._rawAsyncValidators)}}class If extends VD{constructor(t,n,r){super(bf(n),Sf(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){(function LD(e,t,n){e._forEachChild((r,o)=>{if(void 0===n[o])throw new M(1002,"")})})(this,0,t),Object.keys(t).forEach(r=>{(function FD(e,t,n){const r=e.controls;if(!(t?Object.keys(r):r).length)throw new M(1e3,"");if(!r[n])throw new M(1001,"")})(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{const o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const No=new O("CallSetDisabledState",{providedIn:"root",factory:()=>yl}),yl="always";function Ji(e,t,n=yl){Tf(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function VO(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&HD(e,t)})}(e,t),function $O(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function HO(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&HD(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function LO(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function _l(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Tf(e,t){const n=function TD(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(ID(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function AD(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(ID(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();_l(t._rawValidators,o),_l(t._rawAsyncValidators,o)}function HD(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const GO={provide:st,useExisting:de(()=>wl)},es=(()=>Promise.resolve())();let wl=(()=>{class e extends st{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Me,this.form=new If({},_f(n),Df(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){es.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),Ji(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){es.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){es.then(()=>{const r=this._findContainer(n.path),o=new If({});(function $D(e,t){Tf(e,t)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){es.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){es.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function jD(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return e.\u0275fac=function(n){return new(n||e)(_(et,10),_(nr,10),_(No,8))},e.\u0275dir=$({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&P("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ye([GO]),le]}),e})();function BD(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function UD(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const zD=class extends VD{constructor(t=null,n,r){super(bf(n),Sf(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ml(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=UD(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){BD(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){BD(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){UD(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},ZO={provide:rr,useExisting:de(()=>gn)},qD=(()=>Promise.resolve())();let gn=(()=>{class e extends rr{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new zD,this._registered=!1,this.name="",this.update=new Me,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Rf(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===Zt?n=i:function UO(e){return Object.getPrototypeOf(e.constructor)===Ar}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function Nf(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,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(n){this.viewModel=n,this.update.emit(n)}_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(){Ji(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(n){qD.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&To(r);qD.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function vl(e,t){return[...t.path,e]}(n,this._parent):[n]}}return e.\u0275fac=function(n){return new(n||e)(_(st,9),_(et,10),_(nr,10),_(pn,10),_(Za,8),_(No,8))},e.\u0275dir=$({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([ZO]),le,Ot]}),e})(),ZD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=$({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),QD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Rt({}),e})(),vP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Rt({imports:[QD]}),e})(),_P=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:No,useValue:n.callSetDisabledState??yl}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Rt({imports:[vP]}),e})();function j(...e){return xe(e,Yo(e))}function Ro(e,t){return ce(t)?ze(e,t,1):ze(e,1)}function Vn(e,t){return Ue((n,r)=>{let o=0;n.subscribe($e(r,i=>e.call(t,i,o++)&&r.next(i)))})}function mn(e,t){return Ue((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe($e(r,l=>{o?.unsubscribe();let u=0;const c=i++;At(e(l,c)).subscribe(o=$e(r,d=>r.next(t?t(l,d,c,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}class El{}class Vf{}class Ye{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.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(t).forEach(([n,r])=>{let o;if(o="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(i=>i.toString()),o.length>0){const i=n.toLowerCase();this.headers.set(i,o),this.maybeSetNormalizedName(n,i)}})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof Ye?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new Ye;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Ye?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class DP{encodeKey(t){return g0(t)}encodeValue(t){return g0(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const EP=/%(\d[a-f0-9])/gi,MP={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function g0(e){return encodeURIComponent(e).replace(EP,(t,n)=>MP[n]??t)}function Ml(e){return`${e}`}class or{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new DP,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function wP(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(Ml):[Ml(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new or({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(Ml(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(Ml(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class bP{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function m0(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function y0(e){return typeof Blob<"u"&&e instanceof Blob}function v0(e){return typeof FormData<"u"&&e instanceof FormData}class ts{constructor(t,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function SP(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 Ye),this.context||(this.context=new bP),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ad.set(f,t.setHeaders[f]),l)),t.setParams&&(u=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),u)),new ts(n,r,i,{params:u,headers:l,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var Pe=(()=>((Pe=Pe||{})[Pe.Sent=0]="Sent",Pe[Pe.UploadProgress=1]="UploadProgress",Pe[Pe.ResponseHeader=2]="ResponseHeader",Pe[Pe.DownloadProgress=3]="DownloadProgress",Pe[Pe.Response=4]="Response",Pe[Pe.User=5]="User",Pe))();class Hf{constructor(t,n=200,r="OK"){this.headers=t.headers||new Ye,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class $f extends Hf{constructor(t={}){super(t),this.type=Pe.ResponseHeader}clone(t={}){return new $f({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class Oo extends Hf{constructor(t={}){super(t),this.type=Pe.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new Oo({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class C0 extends Hf{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function jf(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Rr=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof ts)i=n;else{let l,u;l=o.headers instanceof Ye?o.headers:new Ye(o.headers),o.params&&(u=o.params instanceof or?o.params:new or({fromObject:o.params})),i=new ts(n,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=j(i).pipe(Ro(l=>this.handler.handle(l)));if(n instanceof ts||"events"===o.observe)return s;const a=s.pipe(Vn(l=>l instanceof Oo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(ne(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(ne(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(ne(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ne(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new or).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,jf(o,r))}post(n,r,o={}){return this.request("POST",n,jf(o,r))}put(n,r,o={}){return this.request("PUT",n,jf(o,r))}}return e.\u0275fac=function(n){return new(n||e)(N(El))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function _0(e,t){return t(e)}function TP(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const D0=new O(""),ns=new O(""),w0=new O("");function NP(){let e=null;return(t,n)=>(null===e&&(e=(I(D0,{optional:!0})??[]).reduceRight(TP,_0)),e(t,n))}let E0=(()=>{class e extends El{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(ns),...this.injector.get(w0,[])]));this.chain=r.reduceRight((o,i)=>function AP(e,t,n){return(r,o)=>n.runInContext(()=>t(r,i=>e(i,o)))}(o,i,this.injector),_0)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(N(Vf),N(an))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const xP=/^\)\]\}',?\n/;let b0=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");const r=this.xhrFactory;return(r.\u0275loadImpl?xe(r.\u0275loadImpl()):j(null)).pipe(mn(()=>new be(i=>{const s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((g,S)=>s.setRequestHeader(g,S.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const g=n.detectContentTypeHeader();null!==g&&s.setRequestHeader("Content-Type",g)}if(n.responseType){const g=n.responseType.toLowerCase();s.responseType="json"!==g?g:"text"}const a=n.serializeBody();let l=null;const u=()=>{if(null!==l)return l;const g=s.statusText||"OK",S=new Ye(s.getAllResponseHeaders()),k=function kP(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||n.url;return l=new $f({headers:S,status:s.status,statusText:g,url:k}),l},c=()=>{let{headers:g,status:S,statusText:k,url:Y}=u(),ge=null;204!==S&&(ge=typeof s.response>"u"?s.responseText:s.response),0===S&&(S=ge?200:0);let Go=S>=200&&S<300;if("json"===n.responseType&&"string"==typeof ge){const JF=ge;ge=ge.replace(xP,"");try{ge=""!==ge?JSON.parse(ge):null}catch(e4){ge=JF,Go&&(Go=!1,ge={error:e4,text:ge})}}Go?(i.next(new Oo({body:ge,headers:g,status:S,statusText:k,url:Y||void 0})),i.complete()):i.error(new C0({error:ge,headers:g,status:S,statusText:k,url:Y||void 0}))},d=g=>{const{url:S}=u(),k=new C0({error:g,status:s.status||0,statusText:s.statusText||"Unknown Error",url:S||void 0});i.error(k)};let f=!1;const h=g=>{f||(i.next(u()),f=!0);let S={type:Pe.DownloadProgress,loaded:g.loaded};g.lengthComputable&&(S.total=g.total),"text"===n.responseType&&s.responseText&&(S.partialText=s.responseText),i.next(S)},p=g=>{let S={type:Pe.UploadProgress,loaded:g.loaded};g.lengthComputable&&(S.total=g.total),i.next(S)};let v;s.addEventListener("load",c),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",h),null!==a&&s.upload&&s.upload.addEventListener("progress",p));const D=()=>{v??=function LP(){const e=setTimeout(()=>{},FP);return()=>clearTimeout(e)}()},b=()=>{v?.()};return s.addEventListener("loadstart",D),s.addEventListener("loadend",b),s.send(a),i.next({type:Pe.Sent}),()=>{s.removeEventListener("loadstart",D),s.removeEventListener("loadend",b),s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",c),s.removeEventListener("timeout",d),v?.(),n.reportProgress&&(s.removeEventListener("progress",h),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}}return e.\u0275fac=function(n){return new(n||e)(N(H_))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const FP=2147483647,Bf=new O("XSRF_ENABLED"),S0=new O("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),I0=new O("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class T0{}let $P=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=T_(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(N(St),N(Dr),N(S0))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function jP(e,t){const n=e.url.toLowerCase();if(!I(Bf)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=I(T0).getToken(),o=I(I0);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Te=(()=>((Te=Te||{})[Te.Interceptors=0]="Interceptors",Te[Te.LegacyInterceptors=1]="LegacyInterceptors",Te[Te.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Te[Te.NoXsrfProtection=3]="NoXsrfProtection",Te[Te.JsonpSupport=4]="JsonpSupport",Te[Te.RequestsMadeViaParent=5]="RequestsMadeViaParent",Te))();function Po(e,t){return{\u0275kind:e,\u0275providers:t}}function BP(...e){const t=[Rr,b0,E0,{provide:El,useExisting:E0},{provide:Vf,useExisting:b0},{provide:ns,useValue:jP,multi:!0},{provide:Bf,useValue:!0},{provide:T0,useClass:$P}];for(const n of e)t.push(...n.\u0275providers);return function lc(e){return{\u0275providers:e}}(t)}const A0=new O("LEGACY_INTERCEPTOR_FN");let zP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Rt({providers:[BP(Po(Te.LegacyInterceptors,[{provide:A0,useFactory:NP},{provide:ns,useExisting:A0,multi:!0}]))]}),e})();function ee(e,t,n){const r=ce(e)||t||n?{next:e,error:t,complete:n}:e;return r?Ue((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe($e(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)}))}):ur}function pe(e){return Ue((t,n)=>{let i,r=null,o=!1;r=t.subscribe($e(n,void 0,void 0,s=>{i=At(e(s,pe(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}const Or_restServerUrl="https://tds.truyen.network";let Pr=(()=>{class e{constructor(){this.messages=[]}add(n){this.messages.push((new Date).toLocaleTimeString()+") "+n)}clear(){this.messages=[]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class yn{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} 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(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`ChatMessagesService: ${t}`)}getChatMessages(){return this.http.get(yn.REST_URL,this.httpOptions).pipe(ee(t=>this.log(`fetched ${t.length} messages`)),pe(this.handleError("getChatMessages",[])))}addChatMessage(t,n){return this.http.post(yn.REST_URL,{author:t,text:n},this.httpOptions).pipe(ee(o=>this.log(`added message w/ id=${o.id}`)),pe(this.handleError("addChatMessage")))}}yn.REST_URL=Or_restServerUrl+"/api/chat",yn.\u0275fac=function(t){return new(t||yn)(N(Rr),N(Pr))},yn.\u0275prov=x({token:yn,factory:yn.\u0275fac,providedIn:"root"});const xo="./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),Uf=Array.from({length:64},(e,t)=>t),bl=e=>Array(e).fill(-1),ir=[...bl(46),0,1,...Uf.slice(54,64),...bl(7),...Uf.slice(2,28),...bl(6),...Uf.slice(28,54),...bl(5)],N0=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],R0=[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],O0=[1332899944,1700884034,1701343084,1684370003,1668446532,1869963892],zf=(e,t)=>{if(t<=0||t>e.length)throw Error(`Illegal len: ${t}`);let r,o,n=0;const i=[];for(;n>2&63]),r=(3&r)<<4,n>=t){i.push(xo[63&r]);break}if(o=255&e[n++],r|=o>>4&15,i.push(xo[63&r]),r=(15&o)<<2,n>=t){i.push(xo[63&r]);break}o=255&e[n++],r|=o>>6&3,i.push(xo[63&r]),i.push(xo[63&o])}return i.join("")},Sl="object"==typeof process&&"edge"===process.env.NEXT_RUNTIME?setTimeout:"function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:setTimeout,os=(e,t,n,r)=>{let o,i=e[t],s=e[t+1];return i^=n[0],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[1],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[2],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[3],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[4],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[5],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[6],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[7],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[8],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[9],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[10],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[11],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[12],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[13],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[14],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[15],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[16],e[t]=s^n[17],e[t+1]=i,e},ko=(e,t)=>{let n=0;for(let r=0;r<4;++r)n=n<<8|255&e[t],t=(t+1)%e.length;return{key:n,offp:t}},P0=(e,t,n)=>{const r=t.length,o=n.length;let a,i=0,s=[0,0];for(let l=0;l{const i=O0.slice(),s=i.length;if(n<4||n>31){const f=new Error(`Illegal number of rounds (4-31): ${n}`);if(!1===r)return Promise.reject(f);throw f}if(16!==t.length){const f=new Error(`Illegal salt length: ${t.length} != 16`);if(!1===r)return Promise.reject(f);throw f}n=1<>>0;let a,l,c,u=0;Int32Array?(a=new Int32Array(N0),l=new Int32Array(R0)):(a=N0.slice(),l=R0.slice()),((e,t,n,r)=>{const o=n.length,i=r.length;let l,s=0,a=[0,0];for(let u=0;u{if(o&&o(u/n),!(u>1;c++)os(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=>Sl(()=>{d().then(f)}))};if(!1===r)return d();{let f;for(;;)if(typeof(f=d())<"u")return f||[]}},Gf=(e=10)=>{if("number"!=typeof e)throw Error("Illegal arguments: "+typeof e);e<4?e=4:e>31&&(e=31);const t=[];return t.push("$2a$"),e<10&&t.push("0"),t.push(e.toString()),t.push("$"),t.push(zf((e=>{try{let t;t=typeof window<"u"?window.crypto??window.msCrypto:globalThis.crypto;const n=new Uint32Array(16);return t?.getRandomValues(n),Array.from(n)}catch{throw Error("WebCryptoAPI is not available")}})(),16)),t.join("")};const k0=(e,t=10)=>{if("number"==typeof t&&(t=Gf(t)),"string"!=typeof e||"string"!=typeof t)throw Error("Illegal arguments: "+typeof e+", "+typeof t);return function Wf(e,t,n,r){if("string"!=typeof e||"string"!=typeof t){const h=new Error("Invalid string / salt: Not a string");if(!1===n)return Promise.reject(h);throw h}let o,i;if("$"!==t.charAt(0)||"2"!==t.charAt(1)){const h=new Error("Invalid salt version: "+t.substring(0,2));if(!1===n)return Promise.reject(h);throw h}if("$"===t.charAt(2))o="\0",i=3;else{if(o=t.charAt(2),"a"!==o&&"b"!==o&&"y"!==o||"$"!==t.charAt(3)){const h=Error("Invalid salt revision: "+t.substring(2,4));if(!1===n)return Promise.reject(h);throw h}i=4}if(t.charAt(i+2)>"$"){const h=new Error("Missing salt rounds");if(!1===n)return Promise.reject(h);throw h}const l=10*parseInt(t.substring(i,i+1),10)+parseInt(t.substring(i+1,i+2),10),u=t.substring(i+3,i+25),c=(e=>{const t=[];let n=0;return((e,t)=>{((e,t)=>{let n,r=null;for(;null!==(n=null!==r?r:e());)n>=55296&&n<=57343&&null!==(r=e())&&r>=56320&&r<=57343?(t(1024*(n-55296)+r-56320+65536),r=null):t(n);null!==r&&t(r)})(e,function(n){((e,t)=>{let n=null;for("number"==typeof e&&(n=e,e=()=>null);null!==n||null!==(n=e());)n<128?t(127&n):n<2048?(t(n>>6&31|192),t(63&n|128)):n<65536?(t(n>>12&15|224),t(n>>6&63|128),t(63&n|128)):(t(n>>18&7|240),t(n>>12&63|128),t(n>>6&63|128),t(63&n|128)),n=null})(n,t)})})(()=>n>=e.length?null:e.charCodeAt(n++),r=>{t.push(r)}),t})(e+=o>="a"?"\0":""),d=((e,t)=>{const n=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>=n)||(c=e.charCodeAt(r++),a=c>>0,u|=(60&a)>>2,d.push(String.fromCharCode(u)),++o>=16||r>=n)));)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 p=[];return p.push("$2"),o>="a"&&p.push(o),p.push("$"),l<10&&p.push("0"),p.push(l.toString()),p.push("$"),p.push(zf(d,d.length)),p.push(zf(h,4*O0.length-1)),p.join("")};return!1===n?x0(c,d,l,!1,r).then(h=>f(h)):f(x0(c,d,l,!0,r))}(e,t,!0)};class Yt extends Dn{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function qf(...e){const t=Yo(e),n=Bh(e),{args:r,keys:o}=aD(e);if(0===r.length)return xe([],t);const i=new be(function sx(e,t,n=ur){return r=>{F0(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let l=0;l{const u=xe(e[l],t);let c=!1;u.subscribe($e(r,d=>{i[l]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>uD(o,s):ur));return n?i.pipe(lD(n)):i}function F0(e,t,n){e?wn(n,e,t):t()}const Il=Wo(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Zf(...e){return function ax(){return Hr(1)}()(xe(e,Yo(e)))}function L0(e){return new be(t=>{At(e()).subscribe(t)})}function is(e,t){const n=ce(e)?e:()=>e,r=o=>o.error(n());return new be(t?o=>t.schedule(r,0,o):r)}function Yf(){return Ue((e,t)=>{let n=null;e._refCount++;const r=$e(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class V0 extends be{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Th(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Tt;const n=this.getSubject();t.add(this.source.subscribe($e(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Tt.EMPTY)}return t}refCount(){return Yf()(this)}}function Fo(e){return e<=0?()=>Kt:Ue((t,n)=>{let r=0;t.subscribe($e(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Tl(e){return Ue((t,n)=>{let r=!1;t.subscribe($e(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function H0(e=ux){return Ue((t,n)=>{let r=!1;t.subscribe($e(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function ux(){return new Il}function xr(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Vn((o,i)=>e(o,i,r)):ur,Fo(1),n?Tl(t):H0(()=>new Il))}function Qf(e){return e<=0?()=>Kt:Ue((t,n)=>{let r=[];t.subscribe($e(n,o=>{r.push(o),e{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Xf(e){return Ue((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const q="primary",ss=Symbol("RouteTitle");class px{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function Lo(e){return new px(e)}function gx(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[i]===o)}return e===t}function j0(e){return e.length>0?e[e.length-1]:null}function sr(e){return function ix(e){return!!e&&(e instanceof be||ce(e.lift)&&ce(e.subscribe))}(e)?e:Pi(e)?xe(Promise.resolve(e)):j(e)}const yx={exact:function z0(e,t,n){if(!kr(e.segments,t.segments)||!Al(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!z0(e.children[r],t.children[r],n))return!1;return!0},subset:G0},B0={exact:function vx(e,t){return vn(e,t)},subset:function Cx(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>$0(e[n],t[n]))},ignored:()=>!0};function U0(e,t,n){return yx[n.paths](e.root,t.root,n.matrixParams)&&B0[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function G0(e,t,n){return W0(e,t,t.segments,n)}function W0(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!kr(o,n)||t.hasChildren()||!Al(o,n,r))}if(e.segments.length===n.length){if(!kr(e.segments,n)||!Al(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!G0(e.children[o],t.children[o],r))return!1;return!0}{const o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!(kr(e.segments,o)&&Al(e.segments,o,r)&&e.children[q])&&W0(e.children[q],t,i,r)}}function Al(e,t,n){return t.every((r,o)=>B0[n](e[o].parameters,r.parameters))}class Vo{constructor(t=new ue([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lo(this.queryParams)),this._queryParamMap}toString(){return wx.serialize(this)}}class ue{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Nl(this)}}class as{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=Lo(this.parameters)),this._parameterMap}toString(){return Y0(this)}}function kr(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let ls=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return new Kf},providedIn:"root"}),e})();class Kf{parse(t){const n=new Px(t);return new Vo(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${us(t.root,!0)}`,r=function bx(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${Rl(n)}=${Rl(o)}`).join("&"):`${Rl(n)}=${Rl(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function Ex(e){return encodeURI(e)}(t.fragment)}`:""}`}}const wx=new Kf;function Nl(e){return e.segments.map(t=>Y0(t)).join("/")}function us(e,t){if(!e.hasChildren())return Nl(e);if(t){const n=e.children[q]?us(e.children[q],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==q&&r.push(`${o}:${us(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function Dx(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===q&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==q&&(n=n.concat(t(o,r)))}),n}(e,(r,o)=>o===q?[us(e.children[q],!1)]:[`${o}:${us(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[q]?`${Nl(e)}/${n[0]}`:`${Nl(e)}/(${n.join("//")})`}}function q0(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Rl(e){return q0(e).replace(/%3B/gi,";")}function Jf(e){return q0(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Ol(e){return decodeURIComponent(e)}function Z0(e){return Ol(e.replace(/\+/g,"%20"))}function Y0(e){return`${Jf(e.path)}${function Mx(e){return Object.keys(e).map(t=>`;${Jf(t)}=${Jf(e[t])}`).join("")}(e.parameters)}`}const Sx=/^[^\/()?;#]+/;function eh(e){const t=e.match(Sx);return t?t[0]:""}const Ix=/^[^\/()?;=#]+/,Ax=/^[^=?&#]+/,Rx=/^[^&#]+/;class Px{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ue([],{}):new ue([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[q]=new ue(t,n)),r}parseSegment(){const t=eh(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new M(4009,!1);return this.capture(t),new as(Ol(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function Tx(e){const t=e.match(Ix);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=eh(this.remaining);o&&(r=o,this.capture(r))}t[Ol(n)]=Ol(r)}parseQueryParam(t){const n=function Nx(e){const t=e.match(Ax);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function Ox(e){const t=e.match(Rx);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=Z0(n),i=Z0(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=eh(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new M(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=q);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[q]:new ue([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new M(4011,!1)}}function Q0(e){return e.segments.length>0?new ue([],{[q]:e}):e}function X0(e){const t={};for(const r of Object.keys(e.children)){const i=X0(e.children[r]);if(r===q&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function xx(e){if(1===e.numberOfChildren&&e.children[q]){const t=e.children[q];return new ue(e.segments.concat(t.segments),t.children)}return e}(new ue(e.segments,t))}function Fr(e){return e instanceof Vo}function K0(e){let t;const o=Q0(function n(i){const s={};for(const l of i.children){const u=n(l);s[l.outlet]=u}const a=new ue(i.url,s);return i===e&&(t=a),a}(e.root));return t??o}function J0(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(0===t.length)return th(o,o,o,n,r);const i=function Fx(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new tw(!0,0,e);let t=0,n=!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?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new tw(n,t,r)}(t);if(i.toRoot())return th(o,o,new ue([],{}),n,r);const s=function Lx(e,t,n){if(e.isAbsolute)return new xl(t,!0,0);if(!n)return new xl(t,!1,NaN);if(null===n.parent)return new xl(n,!0,0);const r=Pl(e.commands[0])?0:1;return function Vx(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new M(4005,!1);o=r.segments.length}return new xl(r,!1,o-i)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?ds(s.segmentGroup,s.index,i.commands):nw(s.segmentGroup,s.index,i.commands);return th(o,s.segmentGroup,a,n,r)}function Pl(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function cs(e){return"object"==typeof e&&null!=e&&e.outlets}function th(e,t,n,r,o){let s,i={};r&&Object.entries(r).forEach(([l,u])=>{i[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===t?n:ew(e,t,n);const a=Q0(X0(s));return new Vo(a,i,o)}function ew(e,t,n){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===t?n:ew(i,t,n)}),new ue(e.segments,r)}class tw{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&Pl(r[0]))throw new M(4003,!1);const o=r.find(cs);if(o&&o!==j0(r))throw new M(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class xl{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function nw(e,t,n){if(e||(e=new ue([],{})),0===e.segments.length&&e.hasChildren())return ds(e,t,n);const r=function $x(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=e.segments[o],a=n[r];if(cs(a))break;const l=`${a}`,u=r0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!ow(l,u,s))return i;r+=2}else{if(!ow(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=nw(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new ue(e.segments,o)}}function nh(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=nh(new ue([],{}),0,r))}),t}function rw(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function ow(e,t,n){return e==n.path&&vn(t,n.parameters)}const fs="imperative";class Cn{constructor(t,n){this.id=t,this.url=n}}class rh extends Cn{constructor(t,n,r="imperative",o=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Lr extends Cn{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class kl extends Cn{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class hs extends Cn{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=16}}class oh extends Cn{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Bx extends Cn{constructor(t,n,r,o){super(t,n),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 Ux extends Cn{constructor(t,n,r,o){super(t,n),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 zx extends Cn{constructor(t,n,r,o,i){super(t,n),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 Gx extends Cn{constructor(t,n,r,o){super(t,n),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 Wx extends Cn{constructor(t,n,r,o){super(t,n),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 qx{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Zx{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Yx{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Qx{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Xx{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Kx{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class iw{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Jx{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ps,this.attachRef=null}}let ps=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new Jx,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class sw{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=ih(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=ih(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=sh(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return sh(t,this._root).map(n=>n.value)}}function ih(e,t){if(e===t.value)return t;for(const n of t.children){const r=ih(e,n);if(r)return r}return null}function sh(e,t){if(e===t.value)return[t];for(const n of t.children){const r=sh(e,n);if(r.length)return r.unshift(t),r}return[]}class Hn{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function Ho(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class aw extends sw{constructor(t,n){super(t),this.snapshot=n,ah(this,t)}toString(){return this.snapshot.toString()}}function lw(e,t){const n=function ek(e,t){const s=new Fl([],{},{},"",{},q,t,null,{});return new cw("",new Hn(s,[]))}(0,t),r=new Yt([new as("",{})]),o=new Yt({}),i=new Yt({}),s=new Yt({}),a=new Yt(""),l=new $n(r,o,s,a,i,q,t,n.root);return l.snapshot=n.root,new aw(new Hn(l,[]),n)}class $n{constructor(t,n,r,o,i,s,a,l){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ne(u=>u[ss]))??j(void 0),this.url=t,this.params=n,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(ne(t=>Lo(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ne(t=>Lo(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function uw(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function tk(e){return e.reduce((t,n)=>({params:{...t.params,...n.params},data:{...t.data,...n.data},resolve:{...n.data,...t.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Fl{get title(){return this.data?.[ss]}constructor(t,n,r,o,i,s,a,l,u){this.url=t,this.params=n,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=Lo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=Lo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class cw extends sw{constructor(t,n){super(n),this.url=t,ah(this,n)}toString(){return dw(this._root)}}function ah(e,t){t.value._routerState=e,t.children.forEach(n=>ah(e,n))}function dw(e){const t=e.children.length>0?` { ${e.children.map(dw).join(", ")} } `:"";return`${e.value}${t}`}function lh(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,vn(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),vn(t.params,n.params)||e.paramsSubject.next(n.params),function mx(e,t){if(e.length!==t.length)return!1;for(let n=0;nvn(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||uh(e.parent,t.parent))}let ch=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=q,this.activateEvents=new Me,this.deactivateEvents=new Me,this.attachEvents=new Me,this.detachEvents=new Me,this.parentContexts=I(ps),this.location=I(zt),this.changeDetector=I(Za),this.environmentInjector=I(an),this.inputBinder=I(Ll,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.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(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new M(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new M(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new M(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new M(4013,!1);this._activatedRoute=n;const o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new nk(n,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(n){return new(n||e)},e.\u0275dir=$({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ot]}),e})();class nk{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===$n?this.route:t===ps?this.childContexts:this.parent.get(t,n)}}const Ll=new O("");let fw=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,o=qf([r.queryParams,r.params,r.data]).pipe(mn(([i,s,a],l)=>(a={...i,...s,...a},0===l?j(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const s=function qN(e){const t=re(e);if(!t)return null;const n=new Ti(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone}}}(r.component);if(s)for(const{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,o)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function gs(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function ok(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return gs(e,r,o);return gs(e,r)})}(e,t,n);return new Hn(r,o)}{if(e.shouldAttach(t.value)){const i=e.retrieve(t.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>gs(e,a)),s}}const r=function ik(e){return new $n(new Yt(e.url),new Yt(e.params),new Yt(e.queryParams),new Yt(e.fragment),new Yt(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>gs(e,i));return new Hn(r,o)}}const dh="ngNavigationCancelingError";function hw(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=Fr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=pw(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function pw(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[dh]=!0,r.cancellationCode=t,n&&(r.url=n),r}function gw(e){return mw(e)&&Fr(e.url)}function mw(e){return e&&e[dh]}let yw=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=_t({type:e,selectors:[["ng-component"]],standalone:!0,features:[Bv],decls:1,vars:0,template:function(n,r){1&n&&oe(0,"router-outlet")},dependencies:[ch],encapsulation:2}),e})();function fh(e){const t=e.children&&e.children.map(fh),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==q&&(n.component=yw),n}function Qt(e){return e.outlet||q}function ms(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class fk{constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),lh(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=Ho(n);t.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(t,n,r){const o=t.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Ho(t);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(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=Ho(t);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(t,n,r){const o=Ho(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new Kx(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Qx(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(lh(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,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),lh(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=ms(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class vw{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class Vl{constructor(t,n){this.component=t,this.route=n}}function hk(e,t,n){const r=e._root;return ys(r,t?t._root:null,n,[r.value])}function $o(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function O1(e){return null!==bs(e)}(e)?t.get(e):e:r}function ys(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=Ho(t);return e.children.forEach(s=>{(function gk(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function mk(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!kr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!kr(e.url,t.url)||!vn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!uh(e,t)||!vn(e.queryParams,t.queryParams);default:return!uh(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new vw(r)):(i.data=s.data,i._resolvedData=s._resolvedData),ys(e,t,i.component?a?a.children:null:n,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Vl(a.outlet.component,s))}else s&&vs(t,a,o),o.canActivateChecks.push(new vw(r)),ys(e,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>vs(a,n.getContext(s),o)),o}function vs(e,t,n){const r=Ho(e),o=e.value;Object.entries(r).forEach(([i,s])=>{vs(s,o.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new Vl(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function Cs(e){return"function"==typeof e}function Cw(e){return e instanceof Il||"EmptyError"===e?.name}const Hl=Symbol("INITIAL_VALUE");function jo(){return mn(e=>qf(e.map(t=>t.pipe(Fo(1),function lx(...e){const t=Yo(e);return Ue((n,r)=>{(t?Zf(e,n,t):Zf(e,n)).subscribe(r)})}(Hl)))).pipe(ne(t=>{for(const n of t)if(!0!==n){if(n===Hl)return Hl;if(!1===n||n instanceof Vo)return n}return!0}),Vn(t=>t!==Hl),Fo(1)))}function _w(e){return function Xw(...e){return bh(e)}(ee(t=>{if(Fr(t))throw hw(0,t)}),ne(t=>!0===t))}class $l{constructor(t){this.segmentGroup=t||null}}class Dw{constructor(t){this.urlTree=t}}function Bo(e){return is(new $l(e))}function ww(e){return is(new Dw(e))}class Fk{constructor(t,n){this.urlSerializer=t,this.urlTree=n}noMatchError(t){return new M(4002,!1)}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return j(r);if(o.numberOfChildren>1||!o.children[q])return is(new M(4e3,!1));o=o.children[q]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,o){const i=this.createSegmentGroup(t,n.root,r,o);return new Vo(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Object.entries(t).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){const i=this.createSegments(t,n.segments,r,o);let s={};return Object.entries(n.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,r,o)}),new ue(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){const o=r[n.path.substring(1)];if(!o)throw new M(4001,!1);return o}findOrReturn(t,n){let r=0;for(const o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}}const hh={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Lk(e,t,n,r,o){const i=ph(e,t,n);return i.matched?(r=function sk(e,t){return e.providers&&!e._injector&&(e._injector=ud(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function Pk(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?j(o.map(s=>{const a=$o(s,e);return sr(function wk(e){return e&&Cs(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(jo(),_w()):j(!0)}(r,t,n).pipe(ne(s=>!0===s?i:{...hh}))):j(i)}function ph(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...hh}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||gx)(n,e,t);if(!o)return{...hh};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:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Ew(e,t,n,r){return n.length>0&&function $k(e,t,n){return n.some(r=>jl(e,t,r)&&Qt(r)!==q)}(e,n,r)?{segmentGroup:new ue(t,Hk(r,new ue(n,e.children))),slicedSegments:[]}:0===n.length&&function jk(e,t,n){return n.some(r=>jl(e,t,r))}(e,n,r)?{segmentGroup:new ue(e.segments,Vk(e,0,n,r,e.children)),slicedSegments:n}:{segmentGroup:new ue(e.segments,e.children),slicedSegments:n}}function Vk(e,t,n,r,o){const i={};for(const s of r)if(jl(e,n,s)&&!o[Qt(s)]){const a=new ue([],{});i[Qt(s)]=a}return{...o,...i}}function Hk(e,t){const n={};n[q]=t;for(const r of e)if(""===r.path&&Qt(r)!==q){const o=new ue([],{});n[Qt(r)]=o}return n}function jl(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class Gk{constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new Fk(this.urlSerializer,this.urlTree)}noMatchError(t){return new M(4002,!1)}recognize(){const t=Ew(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,q).pipe(pe(n=>{if(n instanceof Dw)return this.allowRedirects=!1,this.urlTree=n.urlTree,this.match(n.urlTree);throw n instanceof $l?this.noMatchError(n):n}),ne(n=>{const r=new Fl([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},q,this.rootComponentType,null,{}),o=new Hn(r,n),i=new cw("",o),s=function kx(e,t,n=null,r=null){return J0(K0(e),t,n,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(t){return this.processSegmentGroup(this.injector,this.config,t.root,q).pipe(pe(r=>{throw r instanceof $l?this.noMatchError(r):r}))}inheritParamsAndData(t){const n=t.value,r=uw(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,o,!0)}processChildren(t,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return xe(o).pipe(Ro(i=>{const s=r.children[i],a=function ck(e,t){const n=e.filter(r=>Qt(r)===t);return n.push(...e.filter(r=>Qt(r)!==t)),n}(n,i);return this.processSegmentGroup(t,a,s,i)}),function dx(e,t){return Ue(function cx(e,t,n,r,o){return(i,s)=>{let a=n,l=t,u=0;i.subscribe($e(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,t,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),Tl(null),function fx(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Vn((o,i)=>e(o,i,r)):ur,Qf(1),n?Tl(t):H0(()=>new Il))}(),ze(i=>{if(null===i)return Bo(r);const s=Mw(i);return function Wk(e){e.sort((t,n)=>t.value.outlet===q?-1:n.value.outlet===q?1:t.value.outlet.localeCompare(n.value.outlet))}(s),j(s)}))}processSegment(t,n,r,o,i,s){return xe(n).pipe(Ro(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,o,i,s).pipe(pe(l=>{if(l instanceof $l)return j(null);throw l}))),xr(a=>!!a),pe(a=>{if(Cw(a))return function Uk(e,t,n){return 0===t.length&&!e.children[n]}(r,o,i)?j([]):Bo(r);throw a}))}processSegmentAgainstRoute(t,n,r,o,i,s,a){return function Bk(e,t,n,r){return!!(Qt(e)===r||r!==q&&jl(t,n,e))&&("**"===e.path||ph(t,e,n).matched)}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,o,r,i,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s):Bo(o):Bo(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o){const i=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?ww(i):this.applyRedirects.lineralizeSegments(r,i).pipe(ze(s=>{const a=new ue(s,{});return this.processSegment(t,n,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=ph(n,o,i);if(!a)return Bo(n);const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?ww(d):this.applyRedirects.lineralizeSegments(o,d).pipe(ze(f=>this.processSegment(t,r,n,f.concat(u),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a;if("**"===r.path){const l=o.length>0?j0(o).parameters:{};a=j({snapshot:new Fl(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,bw(r),Qt(r),r.component??r._loadedComponent??null,r,Sw(r)),consumedSegments:[],remainingSegments:[]}),n.children={}}else a=Lk(n,r,o,t).pipe(ne(({matched:l,consumedSegments:u,remainingSegments:c,parameters:d})=>l?{snapshot:new Fl(u,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,bw(r),Qt(r),r.component??r._loadedComponent??null,r,Sw(r)),consumedSegments:u,remainingSegments:c}:null));return a.pipe(mn(l=>null===l?Bo(n):this.getChildConfig(t=r._injector??t,r,o).pipe(mn(({routes:u})=>{const c=r._loadedInjector??t,{snapshot:d,consumedSegments:f,remainingSegments:h}=l,{segmentGroup:p,slicedSegments:v}=Ew(n,f,h,u);if(0===v.length&&p.hasChildren())return this.processChildren(c,u,p).pipe(ne(b=>null===b?null:[new Hn(d,b)]));if(0===u.length&&0===v.length)return j([new Hn(d,[])]);const D=Qt(r)===i;return this.processSegment(c,u,p,v,D?q:i,!0).pipe(ne(b=>[new Hn(d,b)]))}))))}getChildConfig(t,n,r){return n.children?j({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?j({routes:n._loadedRoutes,injector:n._loadedInjector}):function Ok(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?j(!0):j(o.map(s=>{const a=$o(s,e);return sr(function vk(e){return e&&Cs(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(jo(),_w())}(t,n,r).pipe(ze(o=>o?this.configLoader.loadChildren(t,n).pipe(ee(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function kk(e){return is(pw(!1,3))}())):j({routes:[],injector:t})}}function qk(e){const t=e.value.routeConfig;return t&&""===t.path}function Mw(e){const t=[],n=new Set;for(const r of e){if(!qk(r)){t.push(r);continue}const o=t.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):t.push(r)}for(const r of n){const o=Mw(r.children);t.push(new Hn(r.value,o))}return t.filter(r=>!n.has(r))}function bw(e){return e.data||{}}function Sw(e){return e.resolve||{}}function Iw(e){return"string"==typeof e.title||null===e.title}function gh(e){return mn(t=>{const n=e(t);return n?xe(n).pipe(ne(()=>t)):j(t)})}const Uo=new O("ROUTES");let mh=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=I(RC)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return j(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=sr(n.loadComponent()).pipe(ne(Tw),ee(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Xf(()=>{this.componentLoaders.delete(n)})),o=new V0(r,()=>new Dn).pipe(Yf());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return j({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(ne(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u;return Array.isArray(a)?u=a:(l=a.create(n).injector,u=l.get(Uo,[],L.Self|L.Optional).flat()),{routes:u.map(fh),injector:l}}),Xf(()=>{this.childrenLoaders.delete(r)})),s=new V0(i,()=>new Dn).pipe(Yf());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return sr(n()).pipe(ne(Tw),ze(r=>r instanceof $v||Array.isArray(r)?j(r):xe(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Tw(e){return function eF(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Bl=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new Dn,this.configLoader=I(mh),this.environmentInjector=I(an),this.urlSerializer=I(ls),this.rootContexts=I(ps),this.inputBindingEnabled=null!==I(Ll,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>j(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new Zx(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new qx(o))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n){return this.transitions=new Yt({id:0,currentUrlTree:n.currentUrlTree,currentRawUrl:n.currentUrlTree,extractedUrl:n.urlHandlingStrategy.extract(n.currentUrlTree),urlAfterRedirects:n.urlHandlingStrategy.extract(n.currentUrlTree),rawUrl:n.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:fs,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Vn(r=>0!==r.id),ne(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),mn(r=>{let o=!1,i=!1;return j(r).pipe(ee(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}}),mn(s=>{const a=n.browserUrlTree.toString(),l=!n.navigated||s.extractedUrl.toString()!==a||a!==n.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const c="";return this.events.next(new hs(s.id,n.serializeUrl(r.rawUrl),c,0)),n.rawUrlTree=s.rawUrl,s.resolve(null),Kt}if(n.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Aw(s.source)&&(n.browserUrlTree=s.extractedUrl),j(s).pipe(mn(c=>{const d=this.transitions?.getValue();return this.events.next(new rh(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?Kt:Promise.resolve(c)}),function Zk(e,t,n,r,o,i){return ze(s=>function zk(e,t,n,r,o,i,s="emptyOnly"){return new Gk(e,t,n,r,o,s,i).recognize()}(e,t,n,r,s.extractedUrl,o,i).pipe(ne(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),ee(c=>{if(r.targetSnapshot=c.targetSnapshot,r.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},"eager"===n.urlUpdateStrategy){if(!c.extras.skipLocationChange){const f=n.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);n.setBrowserUrl(f,c)}n.browserUrlTree=c.urlAfterRedirects}const d=new Bx(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}));if(l&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){const{id:c,extractedUrl:d,source:f,restoredState:h,extras:p}=s,v=new rh(c,this.urlSerializer.serialize(d),f,h);this.events.next(v);const D=lw(0,this.rootComponentType).snapshot;return j(r={...s,targetSnapshot:D,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new hs(s.id,n.serializeUrl(r.extractedUrl),c,1)),n.rawUrlTree=s.rawUrl,s.resolve(null),Kt}}),ee(s=>{const a=new Ux(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),ne(s=>r={...s,guards:hk(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function Mk(e,t){return ze(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?j({...n,guardsResult:!0}):function bk(e,t,n,r){return xe(e).pipe(ze(o=>function Rk(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?j(i.map(a=>{const l=ms(t)??o,u=$o(a,l);return sr(function Dk(e){return e&&Cs(e.canDeactivate)}(u)?u.canDeactivate(e,t,n,r):l.runInContext(()=>u(e,t,n,r))).pipe(xr())})).pipe(jo()):j(!0)}(o.component,o.route,n,t,r)),xr(o=>!0!==o,!0))}(s,r,o,e).pipe(ze(a=>a&&function yk(e){return"boolean"==typeof e}(a)?function Sk(e,t,n,r){return xe(t).pipe(Ro(o=>Zf(function Tk(e,t){return null!==e&&t&&t(new Yx(e)),j(!0)}(o.route.parent,r),function Ik(e,t){return null!==e&&t&&t(new Xx(e)),j(!0)}(o.route,r),function Nk(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function pk(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>L0(()=>j(s.guards.map(l=>{const u=ms(s.node)??n,c=$o(l,u);return sr(function _k(e){return e&&Cs(e.canActivateChild)}(c)?c.canActivateChild(r,e):u.runInContext(()=>c(r,e))).pipe(xr())})).pipe(jo())));return j(i).pipe(jo())}(e,o.path,n),function Ak(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return j(!0);const o=r.map(i=>L0(()=>{const s=ms(t)??n,a=$o(i,s);return sr(function Ck(e){return e&&Cs(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(xr())}));return j(o).pipe(jo())}(e,o.route,n))),xr(o=>!0!==o,!0))}(r,i,e,t):j(a)),ne(a=>({...n,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),ee(s=>{if(r.guardsResult=s.guardsResult,Fr(s.guardsResult))throw hw(0,s.guardsResult);const a=new zx(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Vn(s=>!!s.guardsResult||(n.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),gh(s=>{if(s.guards.canActivateChecks.length)return j(s).pipe(ee(a=>{const l=new Gx(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),mn(a=>{let l=!1;return j(a).pipe(function Yk(e,t){return ze(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return j(n);let i=0;return xe(o).pipe(Ro(s=>function Qk(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!Iw(o)&&(i[ss]=o.title),function Xk(e,t,n,r){const o=function Kk(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return j({});const i={};return xe(o).pipe(ze(s=>function Jk(e,t,n,r){const o=ms(t)??r,i=$o(e,o);return sr(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(xr(),ee(a=>{i[s]=a}))),Qf(1),function hx(e){return ne(()=>e)}(i),pe(s=>Cw(s)?Kt:is(s)))}(i,e,t,r).pipe(ne(s=>(e._resolvedData=s,e.data=uw(e,n).resolve,o&&Iw(o)&&(e.data[ss]=o.title),null)))}(s.route,r,e,t)),ee(()=>i++),Qf(1),ze(s=>i===o.length?j(n):Kt))})}(n.paramsInheritanceStrategy,this.environmentInjector),ee({next:()=>l=!0,complete:()=>{l||(n.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),ee(a=>{const l=new Wx(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),gh(s=>{const a=l=>{const u=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(l.routeConfig).pipe(ee(c=>{l.component=c}),ne(()=>{})));for(const c of l.children)u.push(...a(c));return u};return qf(a(s.targetSnapshot.root)).pipe(Tl(),Fo(1))}),gh(()=>this.afterPreactivation()),ne(s=>{const a=function rk(e,t,n){const r=gs(e,t._root,n?n._root:void 0);return new aw(r,t)}(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),ee(s=>{n.currentUrlTree=s.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),n.routerState=s.targetRouterState,"deferred"===n.urlUpdateStrategy&&(s.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,s),n.browserUrlTree=s.urlAfterRedirects)}),((e,t,n,r)=>ne(o=>(new fk(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)))(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Fo(1),ee({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,n.navigated=!0,this.events.next(new Lr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(n.currentUrlTree))),n.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),Xf(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),pe(s=>{if(i=!0,mw(s)){gw(s)||(n.navigated=!0,n.restoreHistory(r,!0));const a=new kl(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),gw(s)){const l=n.urlHandlingStrategy.merge(s.url,n.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||Aw(r.source)};n.scheduleNavigation(l,fs,null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const a=new oh(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(n.errorHandler(s))}catch(l){r.reject(l)}}return Kt}))}))}cancelNavigationTransition(n,r,o){const i=new kl(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Aw(e){return e!==fs}let Nw=(()=>{class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===q);return r}getResolvedTitleForRoute(n){return n.data[ss]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(tF)},providedIn:"root"}),e})(),tF=(()=>{class e extends Nw{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(n){return new(n||e)(N(rD))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),nF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(oF)},providedIn:"root"}),e})();class rF{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let oF=(()=>{class e extends rF{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=qe(e)))(r||e)}}(),e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const Ul=new O("",{providedIn:"root",factory:()=>({})});let iF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(sF)},providedIn:"root"}),e})(),sF=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var It=(()=>((It=It||{})[It.COMPLETE=0]="COMPLETE",It[It.FAILED=1]="FAILED",It[It.REDIRECTING=2]="REDIRECTING",It))();function Rw(e,t){e.events.pipe(Vn(n=>n instanceof Lr||n instanceof kl||n instanceof oh||n instanceof hs),ne(n=>n instanceof Lr||n instanceof hs?It.COMPLETE:n instanceof kl&&(0===n.code||1===n.code)?It.REDIRECTING:It.FAILED),Vn(n=>n!==It.REDIRECTING),Fo(1)).subscribe(()=>{t()})}function aF(e){throw e}function lF(e,t,n){return t.parse("/")}const uF={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},cF={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Be=(()=>{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=I(NC),this.isNgZoneEnabled=!1,this.options=I(Ul,{optional:!0})||{},this.pendingTasks=I(h_),this.errorHandler=this.options.errorHandler||aF,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||lF,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=I(iF),this.routeReuseStrategy=I(nF),this.titleStrategy=I(Nw),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=I(Uo,{optional:!0})?.flat()??[],this.navigationTransitions=I(Bl),this.urlSerializer=I(ls),this.location=I(Wd),this.componentInputBindingEnabled=!!I(Ll,{optional:!0}),this.isNgZoneEnabled=I(ve)instanceof ve&&ve.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Vo,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=lw(0,null),this.navigationTransitions.setupNavigations(this).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId??0},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),fs,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,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(n);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(n){this.config=n.map(fh),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(n,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=K0(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return J0(d,n,c,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=Fr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,fs,null,r)}navigate(n,r={skipLocationChange:!1}){return function dF(e){for(let t=0;t{const i=n[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(n,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 Rw(this,()=>{Promise.resolve().then(()=>this.pendingTasks.remove(c))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);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(n,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(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),zo=(()=>{class e{constructor(n,r,o,i,s,a){this.router=n,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 Dn;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof Lr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(n){this._preserveFragment=To(n)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(n){this._skipLocationChange=To(n)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(n){this._replaceUrl=To(n)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(n){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,o,i,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==n||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 n=null===this.href?null:function em(e,t,n){return function Ob(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?Jg:ac}(t,n)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,n,r):o.removeAttribute(i,n)}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(n){return new(n||e)(_(Be),_($n),function Ys(e){return function tM(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o{class e{get isActive(){return this._isActive}constructor(n,r,o,i,s){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Me,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof Lr&&this.update()})}ngAfterContentInit(){j(this.links.changes,j(null)).pipe(Hr()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=xe(n).pipe(Hr()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){const r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&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(n))})}isLinkActive(n){const r=function fF(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&n.isActive(o.urlTree,r)}hasActiveLinks(){const n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}}return e.\u0275fac=function(n){return new(n||e)(_(Be),_(Mt),_(Nn),_(Za),_(zo,8))},e.\u0275dir=$({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,r,o){if(1&n&&function cC(e,t,n,r){const o=K();if(o.firstCreatePass){const i=We();fC(o,new lC(t,n,r),i.index),function P2(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),2==(2&n)&&(o.staticContentQueries=!0)}dC(o,E(),n)}(o,zo,5),2&n){let i;Bi(i=Ui())&&(r.links=i)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ot]}),e})();class Pw{}let hF=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Vn(n=>n instanceof Lr),Ro(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=ud(i.providers,n,`Route: ${i.path}`));const s=i._injector??n,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 xe(o).pipe(Hr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):j(null);const i=o.pipe(ze(s=>null===s?j(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?xe([i,this.loader.loadComponent(r)]).pipe(Hr()):i})}}return e.\u0275fac=function(n){return new(n||e)(N(Be),N(RC),N(an),N(Pw),N(mh))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const yh=new O("");let xw=(()=>{class e{constructor(n,r,o,i,s={}){this.urlSerializer=n,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(n=>{n instanceof rh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Lr?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof hs&&0===n.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof iw&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new iw(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(n){!function xm(){throw new Error("invalid")}()},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function jn(e,t){return{\u0275kind:e,\u0275providers:t}}function Fw(){const e=I(ln);return t=>{const n=e.get(Io);if(t!==n.components[0])return;const r=e.get(Be),o=e.get(Lw);1===e.get(vh)&&r.initialNavigation(),e.get(Vw,null,L.Optional)?.setUpPreloading(),e.get(yh,null,L.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const Lw=new O("",{factory:()=>new Dn}),vh=new O("",{providedIn:"root",factory:()=>1}),Vw=new O("");function yF(e){return jn(0,[{provide:Vw,useExisting:hF},{provide:Pw,useExisting:e}])}const Hw=new O("ROUTER_FORROOT_GUARD"),CF=[Wd,{provide:ls,useClass:Kf},Be,ps,{provide:$n,useFactory:function kw(e){return e.routerState.root},deps:[Be]},mh,[]];function _F(){return new BC("Router",Be)}let $w=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[CF,[],{provide:Uo,multi:!0,useValue:n},{provide:Hw,useFactory:MF,deps:[[Be,new Ks,new Js]]},{provide:Ul,useValue:r||{}},r?.useHash?{provide:Kn,useClass:v_}:{provide:Kn,useClass:y_},{provide:yh,useFactory:()=>{const e=I(h3),t=I(ve),n=I(Ul),r=I(Bl),o=I(ls);return n.scrollOffset&&e.setOffset(n.scrollOffset),new xw(o,r,e,t,n)}},r?.preloadingStrategy?yF(r.preloadingStrategy).\u0275providers:[],{provide:BC,multi:!0,useFactory:_F},r?.initialNavigation?bF(r):[],r?.bindToComponentInputs?jn(8,[fw,{provide:Ll,useExisting:fw}]).\u0275providers:[],[{provide:jw,useFactory:Fw},{provide:kd,multi:!0,useExisting:jw}]]}}static forChild(n){return{ngModule:e,providers:[{provide:Uo,multi:!0,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)(N(Hw,8))},e.\u0275mod=Vt({type:e}),e.\u0275inj=Rt({}),e})();function MF(e){return"guarded"}function bF(e){return["disabled"===e.initialNavigation?jn(3,[{provide:Sd,multi:!0,useFactory:()=>{const t=I(Be);return()=>{t.setUpLocationChangeListener()}}},{provide:vh,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?jn(2,[{provide:vh,useValue:0},{provide:Sd,multi:!0,deps:[ln],useFactory:t=>{const n=t.get(QN,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(Be),i=t.get(Lw);Rw(o,()=>{r(!0)}),t.get(Bl).afterPreactivation=()=>(r(!0),i.closed?j(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const jw=new O("");class tt{constructor(t,n,r){this.http=t,this.router=n,this.appMessageService=r,this.authenticated=!1,this.credentials={username:"",password:""},this.authority="none",this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} 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(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`LoginService: ${t}`)}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(t){this.log(`Authenticating: ${t.username}`),this.credentials=t;const n=new Ye({"Content-Type":"application/json",Accept:"application/json",Authorization:this.getAuthorizationToken()});return this.http.get(tt.REST_URL,{headers:n}).pipe(ee(r=>this.authorizationRecieved(r)),pe(this.handleError("authenticating user")))}logout(){this.authenticated=!1,this.log("Logged out"),this.router.navigateByUrl("/").then(()=>{})}authorizationRecieved(t){if(this.authenticated=!0,t.authorities){let n=t.authorities[0].authority;n=n.substring(n.indexOf("_")+1),this.authority=n}this.log(`Authenticated '${t.name}' as '${this.authority}'`)}changePassword(t){this.log("Changing password.");const n=Gf(10),r=k0(t,n);let o={};return o.username=this.credentials.username,o.password=r,this.http.post(tt.REST_URL,o,this.httpOptions).pipe(ee(i=>this.authorizationRecieved(i)),pe(this.handleError("changePassword")))}}tt.REST_URL=Or_restServerUrl+"/api/user",tt.\u0275fac=function(t){return new(t||tt)(N(Rr),N(Be),N(Pr))},tt.\u0275prov=x({token:tt,factory:tt.\u0275fac,providedIn:"root"});const IF=["scrollMe"];function TF(e,t){if(1&e&&(m(0,"li")(1,"div",9)(2,"span",10),C(3),y(),m(4,"span",11),C(5),Sr(6,"date"),y(),m(7,"span",12),C(8),y()(),m(9,"span",13),C(10),y()()),2&e){const n=t.$implicit;w(3),J(n.id),w(2),J(Ir(6,4,n.dateCreated,"dd-MM-yyyy HH:mm:ss")),w(3),J(n.author),w(2),J(n.text)}}function AF(e,t){if(1&e&&(m(0,"ul",6,7),jt(2,TF,11,7,"li",8),y()),2&e){const n=Zn();w(2),R("ngForOf",n.chatMessages)}}let Ch=(()=>{class e{constructor(n,r){this.chatService=n,this.loginService=r,this.disableScrollDown=!1,this.chatMessages=[],this.newMessage="",this.serviceMessage="",this.errorMessage=""}getChatMessages(){this.serviceMessage="Loading chat ...",this.chatService.getChatMessages().subscribe({next:n=>{this.chatMessages=n,this.scrollToBottom(),this.serviceMessage="Loaded chat."},error:n=>{this.serviceMessage="",this.errorMessage=`Error loading chat: ${n.message}`}})}ngOnInit(){this.loginService.isAuthenticated()&&this.getChatMessages()}sendMessage(){this.serviceMessage="Sending message ...",this.chatService.addChatMessage(this.loginService.getUsername(),this.newMessage).subscribe({next:n=>{this.chatMessages.push(n),this.serviceMessage="Send OK.",this.disableScrollDown=!1,this.scrollToBottom()},error:n=>{this.serviceMessage="",this.errorMessage=`Error loading chat: ${n.message}`}}),this.newMessage=""}ngAfterViewChecked(){this.scrollToBottom()}scrollToBottom(){try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}}return e.\u0275fac=function(n){return new(n||e)(_(yn),_(tt))},e.\u0275cmp=_t({type:e,selectors:[["app-chat"]],viewQuery:function(n,r){if(1&n&&za(IF,5),2&n){let o;Bi(o=Ui())&&(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(n,r){1&n&&(m(0,"p",0),C(1),y(),m(2,"p",1),C(3),y(),jt(4,AF,3,1,"ul",2),m(5,"div",3)(6,"input",4),P("ngModelChange",function(i){return r.newMessage=i})("keydown.enter",function(){return r.sendMessage()}),y(),m(7,"button",5),P("click",function(){return r.sendMessage()}),C(8,"Send"),y(),m(9,"button",5),P("click",function(){return r.getChatMessages()}),C(10,"Reload"),y()()),2&n&&(R("hidden",""===r.serviceMessage),w(1),J(r.serviceMessage),w(1),R("hidden",""===r.errorMessage),w(1),J(r.errorMessage),w(1),R("ngIf",r.chatMessages.length),w(2),R("ngModel",r.newMessage))},dependencies:[Jn,rf,Zt,Ln,gn,Zi],styles:[".chat[_ngcontent-%COMP%]{margin:0;list-style-type:none;padding:.1em;max-height:20em;overflow:auto}.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 NF=["scrollMe"];function RF(e,t){if(1&e&&(m(0,"p"),C(1),y()),2&e){const n=t.$implicit;w(1),J(n)}}function OF(e,t){if(1&e){const n=Oa();m(0,"div",1)(1,"div")(2,"button",2),P("click",function(){return gr(n),mr(Zn().appMessagesService.clear())}),C(3,"Clear messages"),y(),m(4,"h2"),C(5,"App messages"),y()(),m(6,"div",3,4),P("scroll",function(){return gr(n),mr(Zn().onScroll())}),jt(8,RF,2,1,"p",5),y()()}if(2&e){const n=Zn();w(8),R("ngForOf",n.appMessagesService.messages)}}let PF=(()=>{class e{constructor(n){this.appMessagesService=n,this.disableScrollDown=!1}ngAfterViewChecked(){this.scrollToBottom()}onScroll(){let n=this.myScrollContainer.nativeElement;this.disableScrollDown=!(this.disableScrollDown&&n.scrollHeight-n.scrollTop===n.clientHeight)}scrollToBottom(){if(!this.disableScrollDown)try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}}return e.\u0275fac=function(n){return new(n||e)(_(Pr))},e.\u0275cmp=_t({type:e,selectors:[["app-messages"]],viewQuery:function(n,r){if(1&n&&za(NF,5),2&n){let o;Bi(o=Ui())&&(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(n,r){1&n&&jt(0,OF,9,1,"div",0),2&n&&R("ngIf",r.appMessagesService.messages.length)},dependencies:[Jn,rf],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 Bw=function(){return{exact:!0}};let xF=(()=>{class e{constructor(n){this.loginService=n,this.title="Familie TDS",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}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(n){0===n.button&&(n.preventDefault(),this.pos3=n.clientX,this.pos4=n.clientY,document.onmouseup=()=>this.endMouseDrag(),document.onmousemove=r=>this.mouseDragElement(r),this.target=document.getElementById("chatwindow"))}mouseDragElement(n){n.preventDefault(),this.pos1=this.pos3-n.clientX,this.pos2=this.pos4-n.clientY,this.pos3=n.clientX,this.pos4=n.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(n){n.preventDefault(),this.pos3=n.targetTouches[0].clientX,this.pos4=n.targetTouches[0].clientY,document.ontouchend=()=>this.endTouchDrag(),document.ontouchmove=r=>this.touchDragElement(r),this.target=document.getElementById("chatwindow")}touchDragElement(n){n.preventDefault(),this.pos1=this.pos3-n.targetTouches[0].clientX,this.pos2=this.pos4-n.targetTouches[0].clientY,this.pos3=n.targetTouches[0].clientX,this.pos4=n.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 n="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(n),r.classList.contains(n)?localStorage.setItem("theme",n):localStorage.setItem("theme","theme-light")}setTheme(n){const r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.add(n),localStorage.setItem("theme",n)}detectTheme(){const n=localStorage.getItem("theme");"theme-dark"!==n&&"theme-light"!==n?window.matchMedia("(prefers-color-scheme: dark)").matches?this.setTheme("theme-dark"):(window.matchMedia("(prefers-color-scheme: light)"),this.setTheme("theme-light")):this.setTheme(n)}ngOnInit(){this.detectTheme()}}return e.\u0275fac=function(n){return new(n||e)(_(tt))},e.\u0275cmp=_t({type:e,selectors:[["app-root"]],viewQuery:function(n,r){if(1&n&&za(Ch,5),2&n){let o;Bi(o=Ui())&&(r.chatComponent=o.first)}},decls:46,vars:13,consts:[[3,"hidden"],["id","toggle-links",1,"big",3,"click"],["id","toggle-profile",1,"big","float-right",3,"click"],["id","links",3,"hidden"],["routerLinkActive","active-link","routerLink","/",3,"routerLinkActiveOptions"],["routerLinkActive","active-link","routerLink","/checklists"],["routerLinkActive","active-link","routerLink","/contacts"],["routerLinkActive","active-link","routerLink","/todo"],["id","profile",1,"float-right",3,"hidden"],[3,"click"],["title","Dark theme on/off",3,"click"],["routerLinkActive","active-link","routerLink","/profile"],["id","logout",3,"click"],[1,"float-right"],["routerLinkActive","active-link","routerLink","/login"],["id","tools",3,"hidden"],["id","toolbar"],["id","chatwindow",3,"hidden"],["id","chattitlebar",3,"mousedown","touchstart"],[1,"close-button",3,"click"],["id","chatcontent"],[1,"footer",3,"hidden"]],template:function(n,r){1&n&&(m(0,"nav")(1,"span",0)(2,"a",1),P("click",function(){return r.toggleLinks()}),C(3,"\u2261"),y(),m(4,"a",2),P("click",function(){return r.toggleProfile()}),C(5),y(),m(6,"div")(7,"div",3)(8,"a",4),C(9,"Home"),y(),m(10,"a",5),C(11,"Checklists"),y(),m(12,"a",6),C(13,"Contacts"),y(),m(14,"a",7),C(15,"Todo"),y()(),m(16,"div",8)(17,"button",9),P("click",function(){return r.toggleChatHidden()}),C(18,"Toggle Chat"),y(),m(19,"button",10),P("click",function(){return r.toggleTheme()}),C(20,"\u2600 Theme"),y(),m(21,"a",11),C(22,"Profile"),y(),m(23,"a",12),P("click",function(){return r.logout()}),C(24,"Logout"),y()()()(),m(25,"span",0)(26,"h1",13),C(27),y(),m(28,"a",4),C(29,"Home"),y(),m(30,"a",14),C(31,"Login"),y()()(),m(32,"div",15)(33,"div",16)(34,"button",9),P("click",function(){return r.toggleChatHidden()}),C(35,"Toggle Chat"),y()(),m(36,"div",17)(37,"div",18),P("mousedown",function(i){return r.startMouseDragging(i)})("touchstart",function(i){return r.startTouchDragging(i)}),C(38," Chat"),m(39,"button",19),P("click",function(){return r.toggleChatHidden()}),C(40,"\u2716"),y()(),m(41,"div",20),oe(42,"app-chat"),y()()(),m(43,"main"),oe(44,"router-outlet"),y(),oe(45,"app-messages",21)),2&n&&(w(1),R("hidden",!r.isAuthenticated()),w(4),J(r.username()),w(2),R("hidden",r.isLinksHidden()),w(1),R("routerLinkActiveOptions",dd(11,Bw)),w(8),R("hidden",r.isProfileHidden()),w(9),R("hidden",r.isAuthenticated()),w(2),J(r.title),w(1),R("routerLinkActiveOptions",dd(12,Bw)),w(4),R("hidden",!r.isAuthenticated()),w(4),R("hidden",r.isChatHidden()),w(9),R("hidden",r.isAppMessagesHidden()))},dependencies:[ch,zo,Ow,PF,Ch],styles:["#toggle-links[_ngcontent-%COMP%]{padding:.2em .5em}#toggle-profile[_ngcontent-%COMP%]{color:unset}.big[_ngcontent-%COMP%]{font-size:x-large}.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}#logout[_ngcontent-%COMP%]{color:#ef4040;cursor:pointer}#logout[_ngcontent-%COMP%]:hover{background-color:#604040}#toolbar[_ngcontent-%COMP%]{margin-top:-.4em;margin-bottom:-.4em;margin-left:.2em}#toolbar[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{border:1px solid #40404080}#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 Xt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} 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(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`TodoService: ${t}`)}getTodos(){return this.http.get(Xt.REST_URL,this.httpOptions).pipe(ee(t=>this.log(`fetched ${t.length} todos`)),pe(this.handleError("getTodos",[])))}addTodo(t){return this.http.post(Xt.REST_URL,{text:t},this.httpOptions).pipe(ee(r=>this.log(`added todo w/ id=${r.id}`)),pe(this.handleError("addTodo")))}deleteTodo(t){return this.http.delete(`${Xt.REST_URL}/${t}`,this.httpOptions).pipe(ee(r=>this.log(`deleted todo id=${t}`)),pe(this.handleError("deleteTodo")))}}function kF(e,t){if(1&e){const n=Oa();m(0,"li")(1,"div",8)(2,"span",9),C(3),y(),m(4,"span",10),C(5),Sr(6,"date"),y(),m(7,"button",11),P("click",function(){const i=gr(n).$implicit;return mr(Zn().delete(i))}),C(8,"x"),y()(),m(9,"span",12),C(10),y()()}if(2&e){const n=t.$implicit;w(3),J(n.id),w(2),J(Ir(6,3,n.dateCreated,"dd-MM-yyyy HH:mm:ss")),w(5),J(n.text)}}Xt.REST_URL=Or_restServerUrl+"/api/todos",Xt.\u0275fac=function(t){return new(t||Xt)(N(Rr),N(Pr))},Xt.\u0275prov=x({token:Xt,factory:Xt.\u0275fac,providedIn:"root"});let FF=(()=>{class e{constructor(n){this.todoService=n,this.todos=[],this.newTodo="",this.serviceMessage="",this.errorMessage=""}getTodos(){this.serviceMessage="Loading todos ...",this.todoService.getTodos().subscribe({next:n=>{this.todos=n,this.serviceMessage=0==n.length?"Nothing to do!":""},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading todos: ${n.message}`}})}ngOnInit(){this.getTodos()}sendTodo(){this.serviceMessage="Adding todo ...",this.todoService.addTodo(this.newTodo).subscribe({next:n=>{this.todos.push(n),this.newTodo="",this.serviceMessage="Added todo."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while adding todo: ${n.message}`}})}delete(n){this.serviceMessage="Removing todo ...",this.todoService.deleteTodo(n.id).subscribe({next:()=>{this.todos=this.todos.filter(r=>r!==n),this.serviceMessage="Removed todo."},error:r=>{this.serviceMessage="",this.errorMessage=`Error while removing todo: ${r.message}`}})}}return e.\u0275fac=function(n){return new(n||e)(_(Xt))},e.\u0275cmp=_t({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(n,r){1&n&&(m(0,"h2"),C(1,"Todos"),y(),m(2,"p",0),C(3),y(),m(4,"p",1),C(5),y(),m(6,"ol",2),jt(7,kF,11,6,"li",3),y(),m(8,"h2"),C(9,"New Todo:"),y(),m(10,"div",4)(11,"div")(12,"label",5),C(13,"Text:"),y(),m(14,"input",6),P("ngModelChange",function(i){return r.newTodo=i})("keydown.enter",function(){return r.sendTodo()}),y(),m(15,"button",7),P("click",function(){return r.sendTodo()}),C(16,"Send"),y()()()),2&n&&(w(2),R("hidden",""===r.serviceMessage),w(1),J(r.serviceMessage),w(1),R("hidden",""===r.errorMessage),w(1),J(r.errorMessage),w(2),R("ngForOf",r.todos),w(7),R("ngModel",r.newTodo))},dependencies:[Jn,Zt,Ln,gn,Zi],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 _n{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} 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(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`NewsService: ${t}`)}getNewsPosts(){return this.http.get(_n.REST_URL,this.httpOptions).pipe(ee(t=>this.log(`fetched ${t.length} news posts`)),pe(this.handleError("getNews",[])))}addNewsPost(t,n){return this.http.post(_n.REST_URL,{author:t,text:n},this.httpOptions).pipe(ee(o=>this.log(`added message w/ id=${o.id}`)),pe(this.handleError("addNewsPost")))}}function LF(e,t){if(1&e&&(m(0,"p"),C(1),y()),2&e){const n=t.$implicit;w(1),J(n.text)}}_n.REST_URL=Or_restServerUrl+"/api/news",_n.\u0275fac=function(t){return new(t||_n)(N(Rr),N(Pr))},_n.\u0275prov=x({token:_n,factory:_n.\u0275fac,providedIn:"root"});let VF=(()=>{class e{constructor(n,r){this.loginService=n,this.newsService=r,this.newsMessages=[],this.serviceMessage="",this.errorMessage=""}getNews(){this.loginService.isAuthenticated()&&(this.serviceMessage="Loading news messages ...",this.newsService.getNewsPosts().subscribe({next:n=>{this.newsMessages=n,this.serviceMessage=""},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading news: ${n.message}`}}))}ngOnInit(){this.getNews()}isAuthenticated(){return this.loginService.isAuthenticated()}username(){return this.loginService.getUsername()}}return e.\u0275fac=function(n){return new(n||e)(_(tt),_(_n))},e.\u0275cmp=_t({type:e,selectors:[["app-home"]],decls:13,vars:8,consts:[[3,"hidden"],[1,"alert",3,"hidden"],[1,"context"],[4,"ngFor","ngForOf"]],template:function(n,r){1&n&&(m(0,"span",0)(1,"p"),C(2),y(),m(3,"h3"),C(4,"News"),y(),m(5,"p",0),C(6),y(),m(7,"p",1),C(8),y(),m(9,"div",2),jt(10,LF,2,1,"p",3),y()(),m(11,"p",0),C(12,"Welcome to our family site! Please login."),y()),2&n&&(R("hidden",!r.isAuthenticated()),w(2),Ze("Welcome, ",r.username(),"!"),w(3),R("hidden",""===r.serviceMessage),w(1),J(r.serviceMessage),w(1),R("hidden",""===r.errorMessage),w(1),J(r.errorMessage),w(2),R("ngForOf",r.newsMessages),w(1),R("hidden",r.isAuthenticated()))},dependencies:[Jn],styles:[".context[_ngcontent-%COMP%]{padding-left:1em;border:1px solid darkgrey}"]}),e})(),HF=(()=>{class e{constructor(n,r){this.loginService=n,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(n=>{})},error:n=>{console.log("Login failed",n),this.errorMessage=`Login failed: ${n.message}`,this.serviceMessage=""}}),!1;this.errorMessage="Login failed: Username and password required."}}return e.\u0275fac=function(n){return new(n||e)(_(tt),_(Be))},e.\u0275cmp=_t({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(n,r){1&n&&(m(0,"h2"),C(1,"Login form"),y(),m(2,"p",0),C(3),y(),m(4,"p",1),C(5),y(),m(6,"form",2),P("submit",function(){return r.login()}),m(7,"div",3)(8,"label",4),C(9,"Username:"),y(),m(10,"input",5),P("ngModelChange",function(i){return r.credentials.username=i}),y()(),m(11,"div",3)(12,"label",6),C(13,"Password:"),y(),m(14,"input",7),P("ngModelChange",function(i){return r.credentials.password=i}),y()(),m(15,"div",3)(16,"label",8),C(17,"Remember me:"),y(),m(18,"input",9),P("ngModelChange",function(i){return r.rememberme=i}),y()(),m(19,"button",10),C(20,"Login"),y()()),2&n&&(w(2),R("hidden",""===r.serviceMessage),w(1),J(r.serviceMessage),w(1),R("hidden",""===r.errorMessage),w(1),J(r.errorMessage),w(5),R("ngModel",r.credentials.username),w(4),R("ngModel",r.credentials.password),w(4),R("ngModel",r.rememberme))},dependencies:[ZD,Zt,dl,Ln,xD,gn,wl],styles:[".form-group[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:8em;padding-right:.2em}.form-group[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin:0 0 .2em}button[_ngcontent-%COMP%]{border:revert}"]}),e})();const Vr=(e,t)=>{const n=I(tt),r=I(Be);return!!n.isAuthenticated()||r.parseUrl("/login")};class mt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} 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(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`ContactService: ${t}`)}getContacts(){return this.http.get(mt.REST_URL,this.httpOptions).pipe(ee(t=>this.log(`fetched ${t.length} contacts`)),pe(this.handleError("getContacts",[])))}getContact(t){return this.http.get(`${mt.REST_URL}/${t}`,this.httpOptions).pipe(ee(n=>this.log(`fetched Contact ${n.id}`)),pe(this.handleError("getContact",{})))}addContact(t){return this.http.post(mt.REST_URL,t,this.httpOptions).pipe(ee(n=>this.log(`added contact w/ id=${n.id}`)),pe(this.handleError("addContact")))}saveContact(t){return this.http.post(mt.REST_URL,t,this.httpOptions).pipe(ee(n=>this.log(`saved contact w/ id=${n.id}`)),pe(this.handleError("addContact")))}deleteContact(t){return this.http.delete(`${mt.REST_URL}/${t}`,this.httpOptions).pipe(ee(r=>this.log(`deleted contact id=${t}`)),pe(this.handleError("deleteContact")))}}mt.REST_URL=Or_restServerUrl+"/api/contacts",mt.\u0275fac=function(t){return new(t||mt)(N(Rr),N(Pr))},mt.\u0275prov=x({token:mt,factory:mt.\u0275fac,providedIn:"root"});const $F=function(e){return["/contact",e]};function jF(e,t){if(1&e&&(m(0,"li")(1,"div",20)(2,"span")(3,"a",21),C(4),y()()(),m(5,"span",22),C(6),oe(7,"br"),C(8),oe(9,"br"),C(10),oe(11,"br"),C(12,"Website: "),m(13,"a",23),C(14),y(),oe(15,"br"),C(16),y()()),2&e){const n=t.$implicit;w(3),R("routerLink",Ba(9,$F,n.id)),w(1),La("",n.firstName," ",n.lastName,""),w(2),Ze(" Telephone: ",n.telephone," "),w(2),Ze("E-mail: ",n.email," "),w(2),Ze("Address: ",n.address," "),w(3),Pa("href","https://",n.website,"",ac),w(1),J(n.website),w(2),Ze("Description: ",n.description,"")}}let BF=(()=>{class e{constructor(n){this.contactsService=n,this.contacts=[],this.newContact={},this.serviceMessage="",this.errorMessage=""}getContacts(){this.serviceMessage="Loading contacts ...",this.contactsService.getContacts().subscribe({next:n=>{this.contacts=n,this.serviceMessage=n.length?"":"No contacts in database."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading contacts: ${n.message}`}})}ngOnInit(){this.getContacts()}sendContact(){this.serviceMessage="Adding contact ...",this.contactsService.addContact(this.newContact).subscribe({next:n=>{this.contacts.push(n),this.serviceMessage="Added contact."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while adding contact: ${n.message}`}}),this.newContact={}}}return e.\u0275fac=function(n){return new(n||e)(_(mt))},e.\u0275cmp=_t({type:e,selectors:[["app-contacts"]],decls:42,vars:12,consts:[[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["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-title"],[3,"routerLink"],[1,"text"],["target","_blank",3,"href"]],template:function(n,r){1&n&&(m(0,"h2"),C(1,"Contacts:"),y(),m(2,"p",0),C(3),y(),m(4,"p",1),C(5),y(),m(6,"ol",2),jt(7,jF,17,11,"li",3),y(),m(8,"h2"),C(9,"New Contact:"),y(),m(10,"div",4)(11,"div")(12,"label",5),C(13,"Firstname:"),y(),m(14,"input",6),P("ngModelChange",function(i){return r.newContact.firstName=i}),y(),oe(15,"br"),m(16,"label",7),C(17,"Lastname:"),y(),m(18,"input",8),P("ngModelChange",function(i){return r.newContact.lastName=i}),y(),oe(19,"br"),m(20,"label",9),C(21,"Telephone:"),y(),m(22,"input",10),P("ngModelChange",function(i){return r.newContact.telephone=i}),y(),oe(23,"br"),m(24,"label",11),C(25,"Email:"),y(),m(26,"input",12),P("ngModelChange",function(i){return r.newContact.email=i}),y(),oe(27,"br"),m(28,"label",13),C(29,"Website:"),y(),m(30,"input",14),P("ngModelChange",function(i){return r.newContact.website=i}),y(),oe(31,"br"),m(32,"label",15),C(33,"Address:"),y(),m(34,"input",16),P("ngModelChange",function(i){return r.newContact.address=i}),y(),oe(35,"br"),m(36,"label",17),C(37,"Description:"),y(),m(38,"input",18),P("ngModelChange",function(i){return r.newContact.description=i}),y(),oe(39,"br"),m(40,"button",19),P("click",function(){return r.sendContact()}),C(41,"Send"),y()()()),2&n&&(w(2),R("hidden",""===r.serviceMessage),w(1),J(r.serviceMessage),w(1),R("hidden",""===r.errorMessage),w(1),J(r.errorMessage),w(2),R("ngForOf",r.contacts),w(7),R("ngModel",r.newContact.firstName),w(4),R("ngModel",r.newContact.lastName),w(4),R("ngModel",r.newContact.telephone),w(4),R("ngModel",r.newContact.email),w(4),R("ngModel",r.newContact.website),w(4),R("ngModel",r.newContact.address),w(4),R("ngModel",r.newContact.description))},dependencies:[Jn,Zt,Ln,gn,zo],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:.1em;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}"]}),e})();class yt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation"){return n=>{throw this.log(`${t} failed: response status = ${n.status} statusText = ${n.statusText}`),0===n.status&&!1===n.ok?new Error("Could not reach API, check your internet connection."):(console.error(n),new Error(`${t} failed: status = ${n.status}`,{cause:n}))}}log(t){this.appMessageService.add(`ChecklistService: ${t}`)}getChecklists(){return this.http.get(yt.REST_URL,this.httpOptions).pipe(ee(t=>this.log(`fetched ${t.length} checklists`)),pe(this.handleError("getChecklists")))}getChecklist(t){return this.http.get(`${yt.REST_URL}/${t}`,this.httpOptions).pipe(ee(n=>this.log(`fetched checklist ${n.id}`)),pe(this.handleError("getChecklist")))}addChecklist(t){return this.http.post(yt.REST_URL,{name:t},this.httpOptions).pipe(ee(r=>this.log(`added checklist w/ id=${r.id}`)),pe(this.handleError("addChecklist")))}saveChecklist(t){return this.http.post(yt.REST_URL,t,this.httpOptions).pipe(ee(n=>this.log(`saved checklist w/ id=${n.id}`)),pe(this.handleError("addChecklist")))}deleteChecklist(t){return this.http.delete(`${yt.REST_URL}/${t}`,this.httpOptions).pipe(ee(r=>this.log(`deleted checklist id=${t}`)),pe(this.handleError("deleteChecklist")))}}yt.REST_URL=Or_restServerUrl+"/api/checklists",yt.\u0275fac=function(t){return new(t||yt)(N(Rr),N(Pr))},yt.\u0275prov=x({token:yt,factory:yt.\u0275fac,providedIn:"root"});const UF=function(e){return{strikethrough:e}};function zF(e,t){if(1&e&&(m(0,"li",12),C(1),y()),2&e){const n=t.$implicit;R("ngClass",Ba(2,UF,!0===n.checked)),w(1),Ze(" ",n.text," ")}}const GF=function(e){return["/checklist",e]};function WF(e,t){if(1&e&&(m(0,"li")(1,"span",8)(2,"a",9),C(3),y(),m(4,"ul",10),jt(5,zF,2,4,"li",11),y()()()),2&e){const n=t.$implicit;w(2),R("routerLink",Ba(3,GF,n.id)),w(1),J(n.name),w(2),R("ngForOf",n.checks)}}let qF=(()=>{class e{constructor(n,r){this.checklistService=n,this.router=r,this.route=I($n),this.checklists=[],this.newChecklist="",this.serviceMessage="",this.errorMessage=""}getChecklists(){this.serviceMessage="Loading checklists ...",this.checklistService.getChecklists().subscribe({next:n=>{this.checklists=n,this.serviceMessage=n.length?"":"No checklist in database."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading checklists: ${n.message}`}})}ngOnInit(){this.getChecklists()}sendChecklist(){""!==this.newChecklist&&(this.serviceMessage="Creating checklist ...",this.checklistService.addChecklist(this.newChecklist).subscribe({next:n=>this.router.navigate(["/checklist/",n.id]),error:n=>{this.serviceMessage="",this.errorMessage=`Error while creating checklists: ${n.message}`}}))}}return e.\u0275fac=function(n){return new(n||e)(_(yt),_(Be))},e.\u0275cmp=_t({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,"text"],[3,"routerLink"],[1,"item-list"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"]],template:function(n,r){1&n&&(m(0,"h2"),C(1,"Checklists"),y(),m(2,"p",0),C(3),y(),m(4,"p",1),C(5),y(),m(6,"ol",2),jt(7,WF,6,5,"li",3),y(),m(8,"h2"),C(9,"New Checklist:"),y(),m(10,"div",4)(11,"div")(12,"label",5),C(13,"name:"),y(),m(14,"input",6),P("ngModelChange",function(i){return r.newChecklist=i})("keydown.enter",function(){return r.sendChecklist()}),y(),m(15,"button",7),P("click",function(){return r.sendChecklist()}),C(16,"Send"),y()()()),2&n&&(w(2),R("hidden",""===r.serviceMessage),w(1),J(r.serviceMessage),w(1),R("hidden",""===r.errorMessage),w(1),J(r.errorMessage),w(2),R("ngForOf",r.checklists),w(7),R("ngModel",r.newChecklist))},dependencies:[N_,Jn,Zt,Ln,gn,zo],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:.1em;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.strikethrough[_ngcontent-%COMP%]{text-decoration:line-through}"]}),e})();function ZF(e,t){if(1&e){const n=Oa();m(0,"li")(1,"input",10),P("ngModelChange",function(o){return mr(gr(n).$implicit.checked=o)})("change",function(){return gr(n),mr(Zn().saveCheckList())}),y(),m(2,"label"),C(3),y(),m(4,"button",11),P("click",function(){const i=gr(n).index;return mr(Zn().removeItem(i))}),C(5,"x"),y()()}if(2&e){const n=t.$implicit;w(1),R("ngModel",n.checked),w(2),J(n.text)}}const YF=[{path:"",component:VF,pathMatch:"full"},{path:"login",component:HF},{path:"profile",component:(()=>{class e{constructor(n){this.loginService=n,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:n=>{this.serviceMessage="",this.errorMessage=`Error while updating password: ${n.message}`}})):this.serviceMessage="Passwords do not match!"}toggleTheme(){const n="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(n),r.classList.contains(n)?localStorage.setItem("theme",n):localStorage.setItem("theme","theme-light")}}return e.\u0275fac=function(n){return new(n||e)(_(tt))},e.\u0275cmp=_t({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(n,r){1&n&&(m(0,"h1"),C(1),y(),m(2,"button",0),P("click",function(){return r.toggleTheme()}),C(3,"\u2600 Theme"),y(),m(4,"h2"),C(5,"Change password:"),y(),m(6,"p",1),C(7),y(),m(8,"p",2),C(9),y(),m(10,"div",3)(11,"div")(12,"label",4),C(13,"New password:"),y(),m(14,"input",5),P("ngModelChange",function(i){return r.newPassword1=i}),y(),oe(15,"br"),m(16,"label",6),C(17,"Repeat new password:"),y(),m(18,"input",7),P("ngModelChange",function(i){return r.newPassword2=i}),y(),oe(19,"br"),m(20,"button",8),P("click",function(){return r.saveProfile()}),C(21,"Save"),y()()()),2&n&&(w(1),Ze("Profile of: ",r.username(),""),w(5),R("hidden",""===r.serviceMessage),w(1),J(r.serviceMessage),w(1),R("hidden",""===r.errorMessage),w(1),J(r.errorMessage),w(5),R("ngModel",r.newPassword1),w(4),R("ngModel",r.newPassword2))},dependencies:[Zt,Ln,gn]}),e})(),canActivate:[Vr]},{path:"chat",component:Ch,canActivate:[Vr]},{path:"todo",component:FF,canActivate:[Vr]},{path:"contacts",component:BF,canActivate:[Vr]},{path:"contact/:id",component:(()=>{class e{constructor(n,r){this.contactsService=n,this.router=r,this.route=I($n),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:n=>{this.contact=n,this.serviceMessage=""},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading contact: ${n.message}`}})}ngOnInit(){this.getChecklist()}saveContact(){this.serviceMessage="Updating contact ...",this.contactsService.saveContact(this.contact).subscribe({next:n=>{this.contact=n,this.serviceMessage="Updated contact."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while updating contact: ${n.message}`}})}deleteContact(){this.serviceMessage="Deleting contact ...",this.contactsService.deleteContact(this.contactId).subscribe({next:()=>this.router.navigateByUrl("/contacts"),error:n=>{this.serviceMessage="",this.errorMessage=`Error while deleting contact: ${n.message}`}})}}return e.\u0275fac=function(n){return new(n||e)(_(mt),_(Be))},e.\u0275cmp=_t({type:e,selectors:[["app-edit-contact"]],decls:50,vars:22,consts:[[3,"hidden"],[1,"alert",3,"hidden"],["type","button","title","Delete contact",1,"delete",3,"click"],[1,"input"],["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"]],template:function(n,r){1&n&&(m(0,"h2"),C(1),y(),m(2,"p",0),C(3),y(),m(4,"p",1),C(5),y(),m(6,"p"),C(7),m(8,"button",2),P("click",function(){return r.deleteContact()}),C(9,"Delete contact"),y(),oe(10,"br"),C(11),Sr(12,"date"),oe(13,"br"),C(14),Sr(15,"date"),y(),oe(16,"p"),m(17,"h3"),C(18,"Details:"),y(),m(19,"div",3)(20,"label",4),C(21,"Firstname:"),y(),m(22,"input",5),P("ngModelChange",function(i){return r.contact.firstName=i}),y(),oe(23,"br"),m(24,"label",6),C(25,"Lastname:"),y(),m(26,"input",7),P("ngModelChange",function(i){return r.contact.lastName=i}),y(),oe(27,"br"),m(28,"label",8),C(29,"Telephone:"),y(),m(30,"input",9),P("ngModelChange",function(i){return r.contact.telephone=i}),y(),oe(31,"br"),m(32,"label",10),C(33,"Email:"),y(),m(34,"input",11),P("ngModelChange",function(i){return r.contact.email=i}),y(),oe(35,"br"),m(36,"label",12),C(37,"Website:"),y(),m(38,"input",13),P("ngModelChange",function(i){return r.contact.website=i}),y(),oe(39,"br"),m(40,"label",14),C(41,"Address:"),y(),m(42,"input",15),P("ngModelChange",function(i){return r.contact.address=i}),y(),oe(43,"br"),m(44,"label",16),C(45,"Description:"),y(),m(46,"input",17),P("ngModelChange",function(i){return r.contact.description=i}),y(),oe(47,"br"),m(48,"button",18),P("click",function(){return r.saveContact()}),C(49,"Save"),y()()),2&n&&(w(1),La("Editing contact: ",r.contact.firstName," ",r.contact.lastName,""),w(1),R("hidden",""===r.serviceMessage),w(1),J(r.serviceMessage),w(1),R("hidden",""===r.errorMessage),w(1),J(r.errorMessage),w(2),Ze("Id: ",r.contact.id," "),w(4),Ze("Created on: ",Ir(12,16,r.contact.dateCreated,"dd-MM-yyyy HH:mm:ss")," "),w(3),Ze("Updated on: ",Ir(15,19,r.contact.dateUpdated,"dd-MM-yyyy HH:mm:ss"),"\n"),w(8),R("ngModel",r.contact.firstName),w(4),R("ngModel",r.contact.lastName),w(4),R("ngModel",r.contact.telephone),w(4),R("ngModel",r.contact.email),w(4),R("ngModel",r.contact.website),w(4),R("ngModel",r.contact.address),w(4),R("ngModel",r.contact.description))},dependencies:[Zt,Ln,gn,Zi],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080}"]}),e})(),canActivate:[Vr]},{path:"checklists",component:qF,canActivate:[Vr]},{path:"checklist/:id",component:(()=>{class e{constructor(n,r){this.checklistService=n,this.router=r,this.route=I($n),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:n=>{this.checklist=n,this.serviceMessage=""},error:n=>{this.serviceMessage="",this.errorMessage=`Error while getting checklists: ${n.message}`}})}ngOnInit(){this.getChecklist()}addItem(){""!==this.newItem&&(this.checklist.checks.push({text:this.newItem,checklist_id:this.checklist.id}),this.newItem="",this.saveCheckList())}removeItem(n){(this.checklist.checks[n].text||""===this.checklist.checks[n].text)&&(this.checklist.checks.splice(n,1),this.saveCheckList())}saveCheckList(){this.serviceMessage="Updating checklist ...",this.checklistService.saveChecklist(this.checklist).subscribe({next:n=>{this.checklist=n,this.serviceMessage="Saved checklist."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while saving checklists: ${n.message}`}})}deleteChecklist(){this.serviceMessage="Removing checklist ...",this.checklistService.deleteChecklist(this.checklistId).subscribe({next:()=>{this.router.navigateByUrl("/checklists")},error:n=>{this.serviceMessage="",this.errorMessage=`Error while deleting checklists: ${n.message}`}})}}return e.\u0275fac=function(n){return new(n||e)(_(yt),_(Be))},e.\u0275cmp=_t({type:e,selectors:[["app-edit-checklist"]],decls:38,vars:17,consts:[[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"],["type","button","title","Delete item",1,"delete",3,"click"]],template:function(n,r){1&n&&(m(0,"h2"),C(1),y(),m(2,"p",0),C(3),y(),m(4,"p",1),C(5),y(),m(6,"p"),C(7),m(8,"button",2),P("click",function(){return r.deleteChecklist()}),C(9,"Delete checklist"),y(),oe(10,"br"),C(11),Sr(12,"date"),oe(13,"br"),C(14),Sr(15,"date"),y(),m(16,"h3"),C(17,"Items:"),y(),m(18,"ol"),jt(19,ZF,6,2,"li",3),y(),m(20,"h2"),C(21,"add item:"),y(),m(22,"div",4)(23,"div")(24,"label",5),C(25,"item:"),y(),m(26,"input",6),P("ngModelChange",function(i){return r.newItem=i})("keydown.enter",function(){return r.addItem()}),y(),m(27,"button",7),P("click",function(){return r.addItem()}),C(28,"Add"),y()()(),m(29,"h2"),C(30,"change checklist name:"),y(),m(31,"div",4)(32,"div")(33,"label",8),C(34,"newName:"),y(),m(35,"input",9),P("ngModelChange",function(i){return r.checklist.name=i})("keydown.enter",function(){return r.saveCheckList()}),y(),m(36,"button",7),P("click",function(){return r.saveCheckList()}),C(37,"Save"),y()()()),2&n&&(w(1),Ze("Editing checklist: ",r.checklist.name,""),w(1),R("hidden",""===r.serviceMessage),w(1),J(r.serviceMessage),w(1),R("hidden",""===r.errorMessage),w(1),J(r.errorMessage),w(2),Ze("Id: ",r.checklist.id," "),w(4),Ze("Created on: ",Ir(12,11,r.checklist.dateCreated,"dd-MM-yyyy HH:mm:ss")," "),w(3),Ze("Updated on: ",Ir(15,14,r.checklist.dateUpdated,"dd-MM-yyyy HH:mm:ss"),"\n"),w(5),R("ngForOf",r.checklist.checks),w(7),R("ngModel",r.newItem),w(9),R("ngModel",r.checklist.name))},dependencies:[Jn,Zt,dl,Ln,gn,Zi],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080;margin-left:2em}"]}),e})(),canActivate:[Vr]}];let QF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e}),e.\u0275inj=Rt({imports:[$w.forRoot(YF),$w]}),e})(),XF=(()=>{class e{constructor(n){this.auth=n}intercept(n,r){if(this.auth.isAuthenticated()){const o=this.auth.getAuthorizationToken(),i=n.clone({headers:n.headers.set("Authorization",o)});return r.handle(i)}return r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(N(tt))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),KF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=Vt({type:e,bootstrap:[xF]}),e.\u0275inj=Rt({providers:[{provide:D0,useClass:XF,multi:!0},{provide:Kn,useClass:v_}],imports:[cO,_P,zP,QF]}),e})();lO().bootstrapModule(KF).catch(e=>console.error(e))}},ce=>{ce(ce.s=332)}]); \ No newline at end of file diff --git a/front/dist/familySite1/styles.9d88ca8b65c2ed98.css b/front/dist/familySite1/styles.9d88ca8b65c2ed98.css deleted file mode 100644 index b6c381c..0000000 --- a/front/dist/familySite1/styles.9d88ca8b65c2ed98.css +++ /dev/null @@ -1 +0,0 @@ -*{font-family:Arial,Helvetica,sans-serif}html,body{height:100%;margin:0}app-root{height:100%;display:flex;flex-direction:column}main{margin:1em auto;width:90%}h2,h3{font-weight:lighter;margin:.4em 0}body,button{font-family:Cambria,Georgia,serif}button{border:none;border-radius:4px;cursor:pointer;padding:.2rem .4rem;margin-right:.2rem}.alert{color:red}.footer{margin-top:auto}.theme-dark{color-scheme:light dark} diff --git a/makefile b/makefile index b70aa19..d112880 100644 --- a/makefile +++ b/makefile @@ -1,22 +1,39 @@ # makefile for sample commands # -default: clean build +default: build-tds build-sample-docker-images + +build-tds: clean build-tds-docker-images + +build-sample: clean build-sample-docker-images clean: - rm -rf ./front - rm -rf ./back + rm -rf ./tds-front + rm -rf ./tds-back + rm -rf ./sample-front + rm -rf ./sample-back -build: +build-tds-docker-images: cd ../familySite1Frontend && ng build - mkdir -p ./front/dist - cp -r ../familySite1Frontend/dist/familySite1 ./front/dist/ - cp ../familySite1Frontend/Dockerfile ./front/ + mkdir -p ./tds-front/dist + cp -r ../familySite1Frontend/dist/familySite1 ./tds-front/dist/ + cp ../familySite1Frontend/Dockerfile ./tds-front/ cd ../familySite1Backend && mvn package - mkdir -p ./back/target - cp -r ../familySite1Backend/target/*.jar ./back/target/ - cp ../familySite1Backend/Dockerfile ./back/ - chmod a+x ./back/target/*.jar + mkdir -p ./tds-back/target + cp -r ../familySite1Backend/target/*.jar ./tds-back/target/ + cp ../familySite1Backend/Dockerfile ./tds-back/ + chmod a+x ./tds-back/target/*.jar + +build-sample-docker-images: + cd ../familySite1Frontend && ng build -c sample + mkdir -p ./sample-front/dist + cp -r ../familySite1Frontend/dist/familySite1 ./sample-front/dist/ + cp ../familySite1Frontend/Dockerfile ./sample-front/ + cd ../familySite1Backend && mvn package + mkdir -p ./sample-back/target + cp -r ../familySite1Backend/target/*.jar ./sample-back/target/ + cp ../familySite1Backend/Dockerfile ./sample-back/ + chmod a+x ./sample-back/target/*.jar deploy: docker compose up -d --build --remove-orphans diff --git a/back/Dockerfile b/sample-back/Dockerfile similarity index 100% rename from back/Dockerfile rename to sample-back/Dockerfile diff --git a/back/target/familySite1Backend1-0.1.0.jar b/sample-back/target/familySite1Backend1-0.1.0.jar similarity index 99% rename from back/target/familySite1Backend1-0.1.0.jar rename to sample-back/target/familySite1Backend1-0.1.0.jar index 62c0621..c2e228e 100755 Binary files a/back/target/familySite1Backend1-0.1.0.jar and b/sample-back/target/familySite1Backend1-0.1.0.jar differ diff --git a/front/Dockerfile b/sample-front/Dockerfile similarity index 100% rename from front/Dockerfile rename to sample-front/Dockerfile diff --git a/front/dist/familySite1/3rdpartylicenses.txt b/sample-front/dist/familySite1/3rdpartylicenses.txt similarity index 100% rename from front/dist/familySite1/3rdpartylicenses.txt rename to sample-front/dist/familySite1/3rdpartylicenses.txt diff --git a/front/dist/familySite1/favicon.ico b/sample-front/dist/familySite1/favicon.ico similarity index 100% rename from front/dist/familySite1/favicon.ico rename to sample-front/dist/familySite1/favicon.ico diff --git a/front/dist/familySite1/index.html b/sample-front/dist/familySite1/index.html similarity index 79% rename from front/dist/familySite1/index.html rename to sample-front/dist/familySite1/index.html index 4255635..2f364bf 100644 --- a/front/dist/familySite1/index.html +++ b/sample-front/dist/familySite1/index.html @@ -4,11 +4,11 @@ - + - + \ No newline at end of file diff --git a/sample-front/dist/familySite1/main.e039dc6602f35d3f.js b/sample-front/dist/familySite1/main.e039dc6602f35d3f.js new file mode 100644 index 0000000..d7c6ea9 --- /dev/null +++ b/sample-front/dist/familySite1/main.e039dc6602f35d3f.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkfamilySite1=self.webpackChunkfamilySite1||[]).push([[179],{282:()=>{function ce(e){return"function"==typeof e}function Zo(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const ws=Zo(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Yo(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class Tt{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(ce(r))try{r()}catch(i){t=i instanceof ws?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Eh(i)}catch(s){t=t??[],s instanceof ws?t=[...t,...s.errors]:t.push(s)}}if(t)throw new ws(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Eh(t);else{if(t instanceof Tt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Yo(n,t)}remove(t){const{_finalizers:n}=this;n&&Yo(n,t),t instanceof Tt&&t._removeParent(this)}}Tt.EMPTY=(()=>{const e=new Tt;return e.closed=!0,e})();const Dh=Tt.EMPTY;function wh(e){return e instanceof Tt||e&&"closed"in e&&ce(e.remove)&&ce(e.add)&&ce(e.unsubscribe)}function Eh(e){ce(e)?e():e.unsubscribe()}const fr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Es={setTimeout(e,t,...n){const{delegate:r}=Es;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Es;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Mh(e){Es.setTimeout(()=>{const{onUnhandledError:t}=fr;if(!t)throw e;t(e)})}function bh(){}const zw=Gl("C",void 0,void 0);function Gl(e,t,n){return{kind:e,value:t,error:n}}let hr=null;function Ms(e){if(fr.useDeprecatedSynchronousErrorHandling){const t=!hr;if(t&&(hr={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=hr;if(hr=null,n)throw r}}else e()}class Wl extends Tt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,wh(t)&&t.add(this)):this.destination=Qw}static create(t,n,r){return new Xo(t,n,r)}next(t){this.isStopped?Zl(function Ww(e){return Gl("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Zl(function Gw(e){return Gl("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Zl(zw,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Zw=Function.prototype.bind;function ql(e,t){return Zw.call(e,t)}class Yw{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){bs(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){bs(r)}else bs(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){bs(n)}}}class Xo extends Wl{constructor(t,n,r){let o;if(super(),ce(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&fr.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ql(t.next,i),error:t.error&&ql(t.error,i),complete:t.complete&&ql(t.complete,i)}):o=t}this.destination=new Yw(o)}}function bs(e){fr.useDeprecatedSynchronousErrorHandling?function qw(e){fr.useDeprecatedSynchronousErrorHandling&&hr&&(hr.errorThrown=!0,hr.error=e)}(e):Mh(e)}function Zl(e,t){const{onStoppedNotification:n}=fr;n&&Es.setTimeout(()=>n(e,t))}const Qw={closed:!0,next:bh,error:function Xw(e){throw e},complete:bh},Yl="function"==typeof Symbol&&Symbol.observable||"@@observable";function pr(e){return e}function Sh(e){return 0===e.length?pr:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let be=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function e1(e){return e&&e instanceof Wl||function Jw(e){return e&&ce(e.next)&&ce(e.error)&&ce(e.complete)}(e)&&wh(e)}(n)?n:new Xo(n,r,o);return Ms(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Ih(r))((o,i)=>{const s=new Xo({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Yl](){return this}pipe(...n){return Sh(n)(this)}toPromise(n){return new(n=Ih(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Ih(e){var t;return null!==(t=e??fr.Promise)&&void 0!==t?t:Promise}const t1=Zo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let bn=(()=>{class e extends be{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Th(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new t1}next(n){Ms(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Ms(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Ms(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Dh:(this.currentObservers=null,i.push(n),new Tt(()=>{this.currentObservers=null,Yo(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new be;return n.source=this,n}}return e.create=(t,n)=>new Th(t,n),e})();class Th extends bn{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Dh}}function Ah(e){return ce(e?.lift)}function ze(e){return t=>{if(Ah(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function He(e,t,n,r,o){return new n1(e,t,n,r,o)}class n1 extends Wl{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function ne(e,t){return ze((n,r)=>{let o=0;n.subscribe(He(r,i=>{r.next(e.call(t,i,o++))}))})}function gr(e){return this instanceof gr?(this.v=e,this):new gr(e)}function s1(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Oh(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.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(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[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 Ph=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function xh(e){return ce(e?.then)}function kh(e){return ce(e[Yl])}function Fh(e){return Symbol.asyncIterator&&ce(e?.[Symbol.asyncIterator])}function Lh(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 Vh=function l1(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function $h(e){return ce(e?.[Vh])}function Hh(e){return function i1(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),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(p,v){i.push([f,h,p,v])>1||a(f,h)})})}function a(f,h){try{!function l(f){f.value instanceof gr?Promise.resolve(f.value.v).then(u,c):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}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 n=e.getReader();try{for(;;){const{value:r,done:o}=yield gr(n.read());if(o)return yield gr(void 0);yield yield gr(r)}}finally{n.releaseLock()}})}function jh(e){return ce(e?.getReader)}function At(e){if(e instanceof be)return e;if(null!=e){if(kh(e))return function u1(e){return new be(t=>{const n=e[Yl]();if(ce(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Ph(e))return function c1(e){return new be(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Mh)})}(e);if(Fh(e))return Bh(e);if($h(e))return function f1(e){return new be(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(jh(e))return function h1(e){return Bh(Hh(e))}(e)}throw Lh(e)}function Bh(e){return new be(t=>{(function p1(e,t){var n,r,o,i;return function r1(e,t,n,r){return new(n||(n=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 n?i:new n(function(s){s(i)})}(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=s1(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Sn(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Ge(e,t,n=1/0){return ce(t)?Ge((r,o)=>ne((i,s)=>t(r,i,o,s))(At(e(r,o))),n):("number"==typeof t&&(n=t),ze((r,o)=>function g1(e,t,n,r,o,i,s,a){const l=[];let u=0,c=0,d=!1;const f=()=>{d&&!l.length&&!u&&t.complete()},h=v=>u{i&&t.next(v),u++;let w=!1;At(n(v,c++)).subscribe(He(t,b=>{o?.(b),i?h(b):t.next(b)},()=>{w=!0},void 0,()=>{if(w)try{for(u--;l.length&&up(b)):p(b)}f()}catch(b){t.error(b)}}))};return e.subscribe(He(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function Hr(e=1/0){return Ge(pr,e)}const en=new be(e=>e.complete());function Ql(e){return e[e.length-1]}function Uh(e){return ce(Ql(e))?e.pop():void 0}function Qo(e){return function y1(e){return e&&ce(e.schedule)}(Ql(e))?e.pop():void 0}function zh(e,t=0){return ze((n,r)=>{n.subscribe(He(r,o=>Sn(r,e,()=>r.next(o),t),()=>Sn(r,e,()=>r.complete(),t),o=>Sn(r,e,()=>r.error(o),t)))})}function Gh(e,t=0){return ze((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Wh(e,t){if(!e)throw new Error("Iterable cannot be null");return new be(n=>{Sn(n,t,()=>{const r=e[Symbol.asyncIterator]();Sn(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function xe(e,t){return t?function M1(e,t){if(null!=e){if(kh(e))return function C1(e,t){return At(e).pipe(Gh(t),zh(t))}(e,t);if(Ph(e))return function D1(e,t){return new be(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(xh(e))return function _1(e,t){return At(e).pipe(Gh(t),zh(t))}(e,t);if(Fh(e))return Wh(e,t);if($h(e))return function w1(e,t){return new be(n=>{let r;return Sn(n,t,()=>{r=e[Vh](),Sn(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>ce(r?.return)&&r.return()})}(e,t);if(jh(e))return function E1(e,t){return Wh(Hh(e),t)}(e,t)}throw Lh(e)}(e,t):At(e)}function Kl(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Xo({next:()=>{r.unsubscribe(),e()}});return At(t(...n)).subscribe(r)}function ae(e){for(let t in e)if(e[t]===ae)return t;throw Error("Could not find renamed property on target object.")}function Jl(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ke(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ke).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function eu(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const I1=ae({__forward_ref__:ae});function fe(e){return e.__forward_ref__=fe,e.toString=function(){return ke(this())},e}function B(e){return tu(e)?e():e}function tu(e){return"function"==typeof e&&e.hasOwnProperty(I1)&&e.__forward_ref__===fe}function nu(e){return e&&!!e.\u0275providers}const qh="https://g.co/ng/security#xss";class M extends Error{constructor(t,n){super(function ru(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function U(e){return"string"==typeof e?e:null==e?"":String(e)}function Ss(e,t){throw new M(-201,!1)}function Nt(e,t){null==e&&function se(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function x(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Rt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Is(e){return Zh(e,Ts)||Zh(e,Xh)}function Zh(e,t){return e.hasOwnProperty(t)?e[t]:null}function Yh(e){return e&&(e.hasOwnProperty(ou)||e.hasOwnProperty(k1))?e[ou]:null}const Ts=ae({\u0275prov:ae}),ou=ae({\u0275inj:ae}),Xh=ae({ngInjectableDef:ae}),k1=ae({ngInjectorDef:ae});var L=(()=>((L=L||{})[L.Default=0]="Default",L[L.Host=1]="Host",L[L.Self=2]="Self",L[L.SkipSelf=4]="SkipSelf",L[L.Optional=8]="Optional",L))();let iu;function at(e){const t=iu;return iu=e,t}function Kh(e,t,n){const r=Is(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&L.Optional?null:void 0!==t?t:void Ss(ke(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)(),Ko={},su="__NG_DI_FLAG__",As="ngTempTokenPath",L1=/\n/gm,Jh="__source";let jr;function Gn(e){const t=jr;return jr=e,t}function H1(e,t=L.Default){if(void 0===jr)throw new M(-203,!1);return null===jr?Kh(e,void 0,t):jr.get(e,t&L.Optional?null:void 0,t)}function R(e,t=L.Default){return(function Qh(){return iu}()||H1)(B(e),t)}function I(e,t=L.Default){return R(e,Ns(t))}function Ns(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function au(e){const t=[];for(let n=0;n((tn=tn||{})[tn.OnPush=0]="OnPush",tn[tn.Default=1]="Default",tn))(),Ct=(()=>{return(e=Ct||(Ct={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ct;var e})();const Tn={},te=[],Rs=ae({\u0275cmp:ae}),lu=ae({\u0275dir:ae}),uu=ae({\u0275pipe:ae}),tp=ae({\u0275mod:ae}),An=ae({\u0275fac:ae}),ei=ae({__NG_ELEMENT_ID__:ae}),np=ae({__NG_ENV_ID__:ae});function rp(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function cu(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==rp(h,u,0)||2&r&&u!==f){if(Vt(r))return!1;s=!0}}}}else{if(!s&&!Vt(r)&&!Vt(l))return!1;if(s&&Vt(l))continue;s=!1,r=l|1&r}}return Vt(r)||s}function Vt(e){return 0==(1&e)}function q1(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Vt(s)&&(t+=cp(i,o),o=""),r=s,i=i||!Vt(r);n++}return""!==o&&(t+=cp(i,o)),t}function _t(e){return In(()=>{const t=fp(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===tn.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||Ct.Emulated,styles:e.styles||te,_:null,schemas:e.schemas||null,tView:null,id:""};hp(n);const r=e.dependencies;return n.directiveDefs=Os(r,!1),n.pipeDefs=Os(r,!0),n.id=function sE(e){let t=0;const n=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 n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function nE(e){return re(e)||Xe(e)}function rE(e){return null!==e}function $t(e){return In(()=>({type:e.type,bootstrap:e.bootstrap||te,declarations:e.declarations||te,imports:e.imports||te,exports:e.exports||te,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function dp(e,t){if(null==e)return Tn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}function H(e){return In(()=>{const t=fp(e);return hp(t),t})}function lt(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 re(e){return e[Rs]||null}function Xe(e){return e[lu]||null}function ut(e){return e[uu]||null}function Dt(e,t){const n=e[tp]||null;if(!n&&!0===t)throw new Error(`Type ${ke(e)} does not have '\u0275mod' property.`);return n}function fp(e){const t={};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:t,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||te,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:dp(e.inputs,t),outputs:dp(e.outputs)}}function hp(e){e.features?.forEach(t=>t(e))}function Os(e,t){if(!e)return null;const n=t?ut:nE;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(rE)}const Fe=0,T=1,W=2,Ce=3,Ht=4,mr=5,Qe=6,Ur=7,we=8,zr=9,yr=10,z=11,ni=12,pp=13,Gr=14,Ae=15,ri=16,Wr=17,nn=18,oi=19,gp=20,Wn=21,Nn=22,Ps=23,xs=24,Q=25,du=1,mp=2,rn=7,ks=8,qr=9,We=11;function wt(e){return Array.isArray(e)&&"object"==typeof e[du]}function ct(e){return Array.isArray(e)&&!0===e[du]}function fu(e){return 0!=(4&e.flags)}function vr(e){return e.componentOffset>-1}function Fs(e){return 1==(1&e.flags)}function jt(e){return!!e.template}function hu(e){return 0!=(512&e[W])}function Cr(e,t){return e.hasOwnProperty(An)?e[An]:null}let dE=he.WeakRef??class cE{constructor(t){this.ref=t}deref(){return this.ref}},hE=0,on=null,Ls=!1;function je(e){const t=on;return on=e,t}class Dp{constructor(){this.id=hE++,this.ref=function fE(e){return new dE(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[t,n]of this.producers){const r=n.producerNode.deref();if(void 0!==r&&n.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(n.seenValueVersion))return!0}else this.producers.delete(t),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const t=Ls;Ls=!0;try{for(const[n,r]of this.consumers){const o=r.consumerNode.deref();void 0!==o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),o?.producers.delete(this.id))}}finally{Ls=t}}producerAccessed(){if(Ls)throw new Error("");if(null===on)return;let t=on.producers.get(this.id);void 0===t?(t={consumerNode:on.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:on.trackingVersion},on.producers.set(this.id,t),this.consumers.set(on.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=on.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==on?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}let wp=null;const Ep=()=>{};class yE extends Dp{constructor(t,n,r){super(),this.watch=t,this.schedule=n,this.dirty=!1,this.cleanupFn=Ep,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 t=je(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=Ep,this.watch(this.registerOnCleanup)}finally{je(t)}}cleanup(){this.cleanupFn()}}class vE{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ot(){return Mp}function Mp(e){return e.type.prototype.ngOnChanges&&(e.setInput=_E),CE}function CE(){const e=Sp(this),t=e?.current;if(t){const n=e.previous;if(n===Tn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function _E(e,t,n,r){const o=this.declaredInputs[n],i=Sp(e)||function DE(e,t){return e[bp]=t}(e,{previous:Tn,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new vE(l&&l.currentValue,t,a===Tn),e[r]=t}Ot.ngInherit=!0;const bp="__ngSimpleChanges__";function Sp(e){return e[bp]||null}const sn=function(e,t,n){};function me(e){for(;Array.isArray(e);)e=e[Fe];return e}function Hs(e,t){return me(t[e])}function dt(e,t){return me(t[e.index])}function Ap(e,t){return e.data[t]}function ft(e,t){const n=t[e];return wt(n)?n:n[Fe]}function js(e){return 128==(128&e[W])}function qn(e,t){return null==t?null:e[t]}function Np(e){e[Wr]=0}function IE(e){1024&e[W]||(e[W]|=1024,Op(e,1))}function Rp(e){1024&e[W]&&(e[W]&=-1025,Op(e,-1))}function Op(e,t){let n=e[Ce];if(null===n)return;n[mr]+=t;let r=n;for(n=n[Ce];null!==n&&(1===t&&1===r[mr]||-1===t&&0===r[mr]);)n[mr]+=t,r=n,n=n[Ce]}const $={lFrame:Up(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function kp(){return $.bindingsEnabled}function E(){return $.lFrame.lView}function ee(){return $.lFrame.tView}function Zn(e){return $.lFrame.contextLView=e,e[we]}function Yn(e){return $.lFrame.contextLView=null,e}function qe(){let e=Fp();for(;null!==e&&64===e.type;)e=e.parent;return e}function Fp(){return $.lFrame.currentTNode}function an(e,t){const n=$.lFrame;n.currentTNode=e,n.isParent=t}function Cu(){return $.lFrame.isParent}function nt(){const e=$.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Xr(){return $.lFrame.bindingIndex++}function On(e){const t=$.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function $E(e,t){const n=$.lFrame;n.bindingIndex=n.bindingRootIndex=e,Du(t)}function Du(e){$.lFrame.currentDirectiveIndex=e}function Hp(){return $.lFrame.currentQueryIndex}function Eu(e){$.lFrame.currentQueryIndex=e}function jE(e){const t=e[T];return 2===t.type?t.declTNode:1===t.type?e[Qe]:null}function jp(e,t,n){if(n&L.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&L.Host||(o=jE(i),null===o||(i=i[Gr],10&o.type))););if(null===o)return!1;t=o,e=i}const r=$.lFrame=Bp();return r.currentTNode=t,r.lView=e,!0}function Mu(e){const t=Bp(),n=e[T];$.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Bp(){const e=$.lFrame,t=null===e?null:e.child;return null===t?Up(e):t}function Up(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function zp(){const e=$.lFrame;return $.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Gp=zp;function bu(){const e=zp();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 rt(){return $.lFrame.selectedIndex}function _r(e){$.lFrame.selectedIndex=e}function _e(){const e=$.lFrame;return Ap(e.tView,e.selectedIndex)}let qp=!0;function Bs(){return qp}function Xn(e){qp=e}function Us(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[l]<0&&(e[Wr]+=65536),(a>12>16&&(3&e[W])===t&&(e[W]+=4096,Yp(a,i)):Yp(a,i)}const Qr=-1;class ai{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Xp(e){return e!==Qr}function Ws(e){return 32767&e}function qs(e,t){let n=function JE(e){return e>>16}(e),r=t;for(;n>0;)r=r[Gr],n--;return r}let Tu=!0;function Zs(e){const t=Tu;return Tu=e,t}const Qp=255,Kp=5;let eM=0;const ln={};function Ys(e,t){const n=Jp(e,t);if(-1!==n)return n;const r=t[T];r.firstCreatePass&&(e.injectorIndex=t.length,Au(r.data,e),Au(t,null),Au(r.blueprint,null));const o=Nu(e,t),i=e.injectorIndex;if(Xp(o)){const s=Ws(o),a=qs(o,t),l=a[T].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|l[s+u]}return t[i+8]=o,i}function Au(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Jp(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Nu(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=sg(o),null===r)return Qr;if(n++,o=o[Gr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Qr}function Ru(e,t,n){!function tM(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ei)&&(r=n[ei]),null==r&&(r=n[ei]=eM++);const o=r&Qp;t.data[e+(o>>Kp)]|=1<=0?t&Qp:iM:t}(n);if("function"==typeof i){if(!jp(t,e,r))return r&L.Host?eg(o,0,r):tg(t,n,r,o);try{const s=i(r);if(null!=s||r&L.Optional)return s;Ss()}finally{Gp()}}else if("number"==typeof i){let s=null,a=Jp(e,t),l=Qr,u=r&L.Host?t[Ae][Qe]:null;for((-1===a||r&L.SkipSelf)&&(l=-1===a?Nu(e,t):t[a+8],l!==Qr&&ig(r,!1)?(s=t[T],a=Ws(l),t=qs(l,t)):a=-1);-1!==a;){const c=t[T];if(og(i,a,c.data)){const d=rM(a,t,n,s,r,u);if(d!==ln)return d}l=t[a+8],l!==Qr&&ig(r,t[T].data[a+8]===u)&&og(i,a,t)?(s=c,a=Ws(l),t=qs(l,t)):a=-1}}return o}function rM(e,t,n,r,o,i){const s=t[T],a=s.data[e+8],c=Xs(a,s,n,null==r?vr(a)&&Tu:r!=s&&0!=(3&a.type),o&L.Host&&i===a);return null!==c?Dr(t,s,c,a):ln}function Xs(e,t,n,r,o){const i=e.providerIndexes,s=t.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&&p.type===n)return h}if(o){const h=s[l];if(h&&jt(h)&&h.type===n)return l}return null}function Dr(e,t,n,r){let o=e[n];const i=t.data;if(function XE(e){return e instanceof ai}(o)){const s=o;s.resolving&&function T1(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new M(-200,`Circular dependency in DI detected for ${e}${n}`)}(function ie(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():U(e)}(i[n]));const a=Zs(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?at(s.injectImpl):null;jp(e,r,L.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function ZE(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=Mp(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==l&&at(l),Zs(a),s.resolving=!1,Gp()}}return o}function og(e,t,n){return!!(n[t+(e>>Kp)]&1<{const t=e.prototype.constructor,n=t[An]||Ou(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[An]||Ou(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ou(e){return tu(e)?()=>{const t=Ou(B(e));return t&&t()}:Cr(e)}function sg(e){const t=e[T],n=t.type;return 2===n?t.declTNode:1===n?e[Qe]:null}const eo="__parameters__";function no(e,t,n){return In(()=>{const r=function Pu(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);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(eo)?l[eo]:Object.defineProperty(l,eo,{value:[]})[eo];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function ci(e,t){e.forEach(n=>Array.isArray(n)?ci(n,t):t(n))}function lg(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ks(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Et(e,t,n){let r=ro(e,t);return r>=0?e[1|r]=n:(r=~r,function dM(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function xu(e,t){const n=ro(e,t);if(n>=0)return e[1|n]}function ro(e,t){return function ug(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<((ht=ht||{})[ht.Important=1]="Important",ht[ht.DashCase=2]="DashCase",ht))();const ju=new Map;let kM=0;const Uu="__ngContext__";function Ke(e,t){wt(t)?(e[Uu]=t[oi],function LM(e){ju.set(e[oi],e)}(t)):e[Uu]=t}let zu;function Gu(e,t){return zu(e,t)}function pi(e){const t=e[Ce];return ct(t)?t[Ce]:t}function Wu(e){return Tg(e[ni])}function qu(e){return Tg(e[Ht])}function Tg(e){for(;null!==e&&!ct(e);)e=e[Ht];return e}function so(e,t,n,r,o){if(null!=r){let i,s=!1;ct(r)?i=r:wt(r)&&(s=!0,r=r[Fe]);const a=me(r);0===e&&null!==n?null==o?Pg(t,n,a):wr(t,n,a,o||null,!0):1===e&&null!==n?wr(t,n,a,o||null,!0):2===e?function ca(e,t,n){const r=la(e,t);r&&function nb(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function ib(e,t,n,r,o){const i=n[rn];i!==me(n)&&so(t,e,r,i,o);for(let a=We;a0&&(e[n-1][Ht]=r[Ht]);const i=Ks(e,We+t);!function ZM(e,t){mi(e,t,t[z],2,null,null),t[Fe]=null,t[Qe]=null}(r[T],r);const s=i[nn];null!==s&&s.detachView(i[T]),r[Ce]=null,r[Ht]=null,r[W]&=-129}return r}function Rg(e,t){if(!(256&t[W])){const n=t[z];t[Ps]?.destroy(),t[xs]?.destroy(),n.destroyNode&&mi(e,t,n,3,null,null),function QM(e){let t=e[ni];if(!t)return Xu(e[T],e);for(;t;){let n=null;if(wt(t))n=t[ni];else{const r=t[We];r&&(n=r)}if(!n){for(;t&&!t[Ht]&&t!==e;)wt(t)&&Xu(t[T],t),t=t[Ce];null===t&&(t=e),wt(t)&&Xu(t[T],t),n=t&&t[Ht]}t=n}}(t)}}function Xu(e,t){if(!(256&t[W])){t[W]&=-129,t[W]|=256,function tb(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[Ur]=null);const o=t[Wn];if(null!==o){for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===Ct.None||i===Ct.Emulated)return null}return dt(r,n)}}(e,t.parent,n)}function wr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Pg(e,t,n){e.appendChild(t,n)}function xg(e,t,n,r,o){null!==r?wr(e,t,n,r,o):Pg(e,t,n)}function la(e,t){return e.parentNode(t)}let Ku,nc,fa,Lg=function Fg(e,t,n){return 40&e.type?dt(e,n):null};function ua(e,t,n,r){const o=Qu(e,r,t),i=t[z],a=function kg(e,t,n){return Lg(e,t,n)}(r.parent||t[Qe],r,t);if(null!=o)if(Array.isArray(n))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return fa}()?.createScriptURL(e)||e}class qg{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${qh})`}}function Qn(e){return e instanceof qg?e.changingThisBreaksApplicationSecurity:e}function vi(e,t){const n=function yb(e){return e instanceof qg&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${qh})`)}return n===t}const Db=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Ne=(()=>((Ne=Ne||{})[Ne.NONE=0]="NONE",Ne[Ne.HTML=1]="HTML",Ne[Ne.STYLE=2]="STYLE",Ne[Ne.SCRIPT=3]="SCRIPT",Ne[Ne.URL=4]="URL",Ne[Ne.RESOURCE_URL=5]="RESOURCE_URL",Ne))();function lc(e){const t=_i();return t?t.sanitize(Ne.URL,e)||"":vi(e,"URL")?Qn(e):function oc(e){return(e=String(e)).match(Db)?e:"unsafe:"+e}(U(e))}function em(e){const t=_i();if(t)return Wg(t.sanitize(Ne.RESOURCE_URL,e)||"");if(vi(e,"ResourceURL"))return Wg(Qn(e));throw new M(904,!1)}function _i(){const e=E();return e&&e[yr].sanitizer}class O{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=x({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Di=new O("ENVIRONMENT_INITIALIZER"),nm=new O("INJECTOR",-1),rm=new O("INJECTOR_DEF_TYPES");class om{get(t,n=Ko){if(n===Ko){const r=new Error(`NullInjectorError: No provider for ${ke(t)}!`);throw r.name="NullInjectorError",r}return n}}function xb(...e){return{\u0275providers:im(0,e),\u0275fromNgModule:!0}}function im(e,...t){const n=[],r=new Set;let o;return ci(t,i=>{const s=i;cc(s,n,[],r)&&(o||=[],o.push(s))}),void 0!==o&&sm(o,n),n}function sm(e,t){for(let n=0;n{t.push(i)})}}function cc(e,t,n,r){if(!(e=B(e)))return!1;let o=null,i=Yh(e);const s=!i&&re(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(i=Yh(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)cc(u,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o);try{ci(i.imports,c=>{cc(c,t,n,r)&&(u||=[],u.push(c))})}finally{}void 0!==u&&sm(u,t)}if(!a){const u=Cr(o)||(()=>new o);t.push({provide:o,useFactory:u,deps:te},{provide:rm,useValue:o,multi:!0},{provide:Di,useValue:()=>R(o),multi:!0})}const l=i.providers;null==l||a||dc(l,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function dc(e,t){for(let n of e)nu(n)&&(n=n.\u0275providers),Array.isArray(n)?dc(n,t):t(n)}const kb=ae({provide:String,useValue:ae});function fc(e){return null!==e&&"object"==typeof e&&kb in e}function Er(e){return"function"==typeof e}const hc=new O("Set Injector scope."),pa={},Lb={};let pc;function ga(){return void 0===pc&&(pc=new om),pc}class un{}class gc extends un{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,yc(t,s=>this.processProvider(s)),this.records.set(nm,lo(void 0,this)),o.has("environment")&&this.records.set(un,lo(void 0,this));const i=this.records.get(hc);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(rm.multi,te,L.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Gn(this),r=at(void 0);try{return t()}finally{Gn(n),at(r)}}get(t,n=Ko,r=L.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(np))return t[np](this);r=Ns(r);const o=Gn(this),i=at(void 0);try{if(!(r&L.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function Bb(e){return"function"==typeof e||"object"==typeof e&&e instanceof O}(t)&&Is(t);a=l&&this.injectableDefInScope(l)?lo(mc(t),pa):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&L.Self?ga():this.parent).get(t,n=r&L.Optional&&n===Ko?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[As]=s[As]||[]).unshift(ke(t)),o)throw s;return function B1(e,t,n,r){const o=e[As];throw t[Jh]&&o.unshift(t[Jh]),e.message=function U1(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=ke(t);if(Array.isArray(t))o=t.map(ke).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):ke(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(L1,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[As]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{at(i),Gn(o)}}resolveInjectorInitializers(){const t=Gn(this),n=at(void 0);try{const r=this.get(Di.multi,te,L.Self);for(const o of r)o()}finally{Gn(t),at(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(ke(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processProvider(t){let n=Er(t=B(t))?t:B(t&&t.provide);const r=function $b(e){return fc(e)?lo(void 0,e.useValue):lo(um(e),pa)}(t);if(Er(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=lo(void 0,pa,!0),o.factory=()=>au(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===pa&&(n.value=Lb,n.value=n.factory()),"object"==typeof n.value&&n.value&&function jb(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=B(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function mc(e){const t=Is(e),n=null!==t?t.factory:Cr(e);if(null!==n)return n;if(e instanceof O)throw new M(204,!1);if(e instanceof Function)return function Vb(e){const t=e.length;if(t>0)throw function di(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new M(204,!1)}function um(e,t,n){let r;if(Er(e)){const o=B(e);return Cr(o)||mc(o)}if(fc(e))r=()=>B(e.useValue);else if(function lm(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...au(e.deps||[]));else if(function am(e){return!(!e||!e.useExisting)}(e))r=()=>R(B(e.useExisting));else{const o=B(e&&(e.useClass||e.provide));if(!function Hb(e){return!!e.deps}(e))return Cr(o)||mc(o);r=()=>new o(...au(e.deps))}return r}function lo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function yc(e,t){for(const n of e)Array.isArray(n)?yc(n,t):n&&nu(n)?yc(n.\u0275providers,t):t(n)}const ma=new O("AppId",{providedIn:"root",factory:()=>Ub}),Ub="ng",cm=new O("Platform Initializer"),Mr=new O("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),dm=new O("CSP nonce",{providedIn:"root",factory:()=>function yi(){if(void 0!==nc)return nc;if(typeof document<"u")return document;throw new M(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let hm=(e,t)=>null;function pm(e,t){return hm(e,t)}class Jb{}class ym{}class tS{resolveComponentFactory(t){throw function eS(e){const t=Error(`No component factory found for ${ke(e)}.`);return t.ngComponent=e,t}(t)}}let Da=(()=>{class e{}return e.NULL=new tS,e})();function nS(){return uo(qe(),E())}function uo(e,t){return new Mt(dt(e,t))}let Mt=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=nS,e})();function rS(e){return e instanceof Mt?e.nativeElement:e}class Cm{}let xn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function oS(){const e=E(),n=ft(qe().index,e);return(wt(n)?n:e)[z]}(),e})(),iS=(()=>{class e{}return e.\u0275prov=x({token:e,providedIn:"root",factory:()=>null}),e})();class bi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const sS=new bi("16.0.1"),Tc={};function Si(e){for(;e;){e[W]|=64;const t=pi(e);if(hu(e)&&!t)return e;e=t}return null}function Ac(e){return e.ngOriginalError}class br{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Ac(t);for(;n&&Ac(n);)n=Ac(n);return n||null}}const wm=new O("",{providedIn:"root",factory:()=>!1});function kn(e){return e instanceof Function?e():e}class bm extends Dp{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){Si(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,n,r){const o=je(this);this.trackingVersion++;try{t(n,r)}finally{je(o)}}destroy(){this.trackingVersion++}}let Ea=null;function Sm(){return Ea??=new bm,Ea}function Im(e,t){return e[t]??Sm()}function Tm(e,t){const n=Sm();n.hasReadASignal&&(e[t]=Ea,n.lView=e,Ea=new bm)}const G={};function _(e){Am(ee(),E(),rt()+e,!1)}function Am(e,t,n,r){if(!r)if(3==(3&t[W])){const i=e.preOrderCheckHooks;null!==i&&zs(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Gs(t,i,0,n)}_r(n)}function Pm(e,t=null,n=null,r){const o=xm(e,t,n,r);return o.resolveInjectorInitializers(),o}function xm(e,t=null,n=null,r,o=new Set){const i=[n||te,xb(e)];return r=r||("object"==typeof e?void 0:ke(e)),new gc(i,t||ga(),r||null,o)}let cn=(()=>{class e{static create(n,r){if(Array.isArray(n))return Pm({name:""},r,n,"");{const o=n.name??"";return Pm({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=Ko,e.NULL=new om,e.\u0275prov=x({token:e,providedIn:"any",factory:()=>R(nm)}),e.__NG_ELEMENT_ID__=-1,e})();function D(e,t=L.Default){const n=E();return null===n?R(e,t):ng(qe(),n,B(e),t)}function Ma(e,t,n,r,o,i,s,a,l,u,c){const d=t.blueprint.slice();return d[Fe]=o,d[W]=140|r,(null!==u||e&&2048&e[W])&&(d[W]|=2048),Np(d),d[Ce]=d[Gr]=e,d[we]=n,d[yr]=s||e&&e[yr],d[z]=a||e&&e[z],d[zr]=l||e&&e[zr]||null,d[Qe]=i,d[oi]=function FM(){return kM++}(),d[Nn]=c,d[gp]=u,d[Ae]=2==t.type?e[Ae]:d,d}function fo(e,t,n,r,o){let i=e.data[t];if(null===i)i=function Nc(e,t,n,r,o){const i=Fp(),s=Cu(),l=e.data[t]=function IS(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return function Yr(){return null!==$.skipHydrationRootTNode}()&&(a|=128),{type:n,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:t,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,n,t,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,t,n,r,o),function VE(){return $.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function si(){const e=$.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return an(i,!0),i}function Ii(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;iQ&&Am(e,t,Q,!1),sn(a?2:0,o),a)i.runInContext(n,r,o);else{const u=je(null);try{n(r,o)}finally{je(u)}}}finally{a&&null===t[Ps]&&Tm(t,Ps),_r(s),sn(a?3:1,o)}}function Rc(e,t,n){if(fu(t)){const r=je(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;snull;function $m(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?Hm(n,t,o,i):r.hasOwnProperty(o)&&Hm(n,t,r[o],i)}return n}function Hm(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function bt(e,t,n,r,o,i,s,a){const l=dt(t,n);let c,u=t.inputs;!a&&null!=u&&(c=u[r])?($c(e,n,c,r,o),vr(t)&&function NS(e,t){const n=ft(t,e);16&n[W]||(n[W]|=64)}(n,t.index)):3&t.type&&(r=function AS(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,t.value||"",r):o,i.setProperty(l,r,o))}function kc(e,t,n,r){if(kp()){const o=null===r?null:{"":-1},i=function FS(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,Ii(e,n,o.hostVars,G),o)}function dn(e,t,n,r,o,i){const s=dt(e,t);!function Lc(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?U(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[z],s,i,e.value,n,r,o)}function BS(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(n,r,o){const i=typeof Zone>"u"?null:Zone.current,s=new yE(n,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[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return e.\u0275prov=x({token:e,providedIn:"root",factory:()=>new e}),e})();function Sa(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s0&&jc(n)}}function jc(e){for(let r=Wu(e);null!==r;r=qu(r))for(let o=We;o0&&jc(i)}const n=e[T].components;if(null!==n)for(let r=0;r0&&jc(o)}}class Ai{get rootNodes(){const t=this._lView,n=t[T];return Ti(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[we]}set context(t){this._lView[we]=t}get destroyed(){return 256==(256&this._lView[W])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[Ce];if(ct(t)){const n=t[ks],r=n?n.indexOf(this):-1;r>-1&&(Yu(t,r),Ks(n,r))}this._attachedToViewContainer=!1}Rg(this._lView[T],this._lView)}onDestroy(t){!function Pp(e,t){if(256==(256&e[W]))throw new M(911,!1);null===e[Wn]&&(e[Wn]=[]),e[Wn].push(t)}(this._lView,t)}markForCheck(){Si(this._cdRefInjectingView||this._lView)}detach(){this._lView[W]&=-129}reattach(){this._lView[W]|=128}detectChanges(){Ia(this._lView[T],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function XM(e,t){mi(e,t,t[z],2,null,null)}(this._lView[T],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new M(902,!1);this._appRef=t}}class tI extends Ai{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Ia(t[T],t,t[we],!1)}checkNoChanges(){}get context(){return null}}class Qm extends Da{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=re(t);return new Ni(n,this.ngModule)}}function Km(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class rI{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Ns(r);const o=this.injector.get(t,Tc,r);return o!==Tc||n===Tc?o:this.parentInjector.get(t,n,r)}}class Ni extends ym{get inputs(){return Km(this.componentDef.inputs)}get outputs(){return Km(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function J1(e){return e.map(K1).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof un?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new rI(t,i):t,a=s.get(Cm,null);if(null===a)throw new M(407,!1);const c={rendererFactory:a,sanitizer:s.get(iS,null),effectManager:s.get(Xm,null)},d=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",h=r?function wS(e,t,n,r){const i=r.get(wm,!1)||n===Ct.ShadowDom,s=e.selectRootElement(t,i);return function ES(e){Vm(e)}(s),s}(d,r,this.componentDef.encapsulation,s):aa(d,f,function nI(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(f)),p=this.componentDef.onPush?576:528,v=xc(0,null,null,1,0,null,null,null,null,null,null),w=Ma(null,v,null,p,null,null,c,d,s,null,null);let b,y;Mu(w);try{const S=this.componentDef;let k,Y=null;S.findHostDirectiveDefs?(k=[],Y=new Map,S.findHostDirectiveDefs(S,k,Y),k.push(S)):k=[S];const ge=function iI(e,t){const n=e[T],r=Q;return e[r]=t,fo(n,r,2,"#host",null)}(w,h),qo=function sI(e,t,n,r,o,i,s){const a=o[T];!function aI(e,t,n,r){for(const o of e)t.mergedAttrs=ti(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(Sa(t,t.mergedAttrs,!0),null!==n&&Ug(r,n,t))}(r,e,t,s);let l=null;null!==t&&(l=pm(t,o[zr]));const u=i.rendererFactory.createRenderer(t,n),c=Ma(o,Lm(n),null,n.onPush?64:16,o[e.index],e,i,u,null,null,l);return a.firstCreatePass&&Fc(a,e,r.length-1),ba(o,c),o[e.index]=c}(ge,h,S,k,w,c,d);y=Ap(v,Q),h&&function uI(e,t,n,r){if(r)cu(e,n,["ng-version",sS.full]);else{const{attrs:o,classes:i}=function eE(e){const t=[],n=[];let r=1,o=2;for(;r0&&Bg(e,n,i.join(" "))}}(d,S,h,r),void 0!==n&&function cI(e,t,n){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=ti(o.hostAttrs,n=ti(n,o.hostAttrs))}}(r)}function Bc(e){return e===Tn?{}:e===te?[]:e}function hI(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function pI(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function gI(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function Aa(e){return!!Uc(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Uc(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function fn(e,t,n){return e[t]=n}function Je(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Sr(e,t,n,r){const o=Je(e,t,n);return Je(e,t+1,r)||o}function hn(e,t,n,r){const o=E();return Je(o,Xr(),t)&&(ee(),dn(_e(),o,e,t,n,r)),hn}function po(e,t,n,r){return Je(e,Xr(),n)?t+U(n)+r:G}function go(e,t,n,r,o,i){const a=Sr(e,function Rn(){return $.lFrame.bindingIndex}(),n,o);return On(2),a?t+U(n)+r+U(o)+i:G}function Bt(e,t,n,r,o,i,s,a){const l=E(),u=ee(),c=e+Q,d=u.firstCreatePass?function HI(e,t,n,r,o,i,s,a,l){const u=t.consts,c=fo(t,e,4,s||null,qn(u,a));kc(t,n,c,qn(u,l)),Us(t,c);const d=c.tView=xc(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,r,o,i,s):u.data[c];an(d,!1);const f=gy(u,l,d,e);Bs()&&ua(u,l,f,d),Ke(f,l),ba(l,l[c]=zm(f,l,f,d)),Fs(d)&&Oc(u,l,d),null!=s&&Pc(l,d,a)}let gy=function my(e,t,n,r){return Xn(!0),t[z].createComment("")};function A(e,t,n){const r=E();return Je(r,Xr(),t)&&bt(ee(),_e(),r,e,t,r[z],n,!1),A}function Yc(e,t,n,r,o){const s=o?"class":"style";$c(e,n,t.inputs[s],s,r)}function g(e,t,n,r){const o=E(),i=ee(),s=Q+e,a=o[z],l=i.firstCreatePass?function GI(e,t,n,r,o,i){const s=t.consts,l=fo(t,e,2,r,qn(s,o));return kc(t,n,l,qn(s,i)),null!==l.attrs&&Sa(l,l.attrs,!1),null!==l.mergedAttrs&&Sa(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,i,o,t,n,r):i.data[s],u=yy(i,o,l,a,t,e);o[s]=u;const c=Fs(l);return an(l,!0),Ug(a,u,l),32!=(32&l.flags)&&Bs()&&ua(i,o,u,l),0===function AE(){return $.lFrame.elementDepthCount}()&&Ke(u,o),function NE(){$.lFrame.elementDepthCount++}(),c&&(Oc(i,o,l),Rc(i,l,o)),null!==r&&Pc(o,l),g}function m(){let e=qe();Cu()?function _u(){$.lFrame.isParent=!1}():(e=e.parent,an(e,!1));const t=e;(function OE(e){return $.skipHydrationRootTNode===e})(t)&&function FE(){$.skipHydrationRootTNode=null}(),function RE(){$.lFrame.elementDepthCount--}();const n=ee();return n.firstCreatePass&&(Us(n,e),fu(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function QE(e){return 0!=(8&e.flags)}(t)&&Yc(n,t,E(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function KE(e){return 0!=(16&e.flags)}(t)&&Yc(n,t,E(),t.stylesWithoutHost,!1),m}function oe(e,t,n,r){return g(e,t,n,r),m(),oe}let yy=(e,t,n,r,o,i)=>(Xn(!0),aa(r,o,function Wp(){return $.lFrame.currentNamespace}()));function ki(){return E()}function Fi(e){return!!e&&"function"==typeof e.then}function _y(e){return!!e&&"function"==typeof e.subscribe}function P(e,t,n,r){const o=E(),i=ee(),s=qe();return function wy(e,t,n,r,o,i,s){const a=Fs(r),u=e.firstCreatePass&&qm(e),c=t[we],d=Wm(t);let f=!0;if(3&r.type||s){const v=dt(r,t),w=s?s(v):v,b=d.length,y=s?k=>s(me(k[r.index])):r.index;let S=null;if(!s&&a&&(S=function QI(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==S)(S.__ngLastListenerFn__||S).__ngNextListenerFn__=i,S.__ngLastListenerFn__=i,f=!1;else{i=My(r,t,c,i,!1);const k=n.listen(w,o,i);d.push(i,k),u&&u.push(o,y,b,b+1)}}else i=My(r,t,c,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const v=p.length;if(v)for(let w=0;w-1?ft(e.index,t):t);let l=Ey(t,n,r,s),u=i.__ngNextListenerFn__;for(;u;)l=Ey(t,n,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function pn(e=1){return function BE(e){return($.lFrame.contextLView=function UE(e,t){for(;e>0;)t=t[Gr],e--;return t}(e,$.lFrame.contextLView))[we]}(e)}function xa(e,t,n,r,o){const i=E(),s=po(i,t,n,r);return s!==G&&bt(ee(),_e(),i,e,s,i[z],o,!1),xa}function ka(e,t){return e<<17|t<<2}function Kn(e){return e>>17&32767}function Kc(e){return 2|e}function Ir(e){return(131068&e)>>2}function Jc(e,t){return-131069&e|t<<2}function ed(e){return 1|e}function xy(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?Kn(i):Ir(i),l=!1;for(;0!==a&&(!1===l||s);){const c=e[a+1];sT(e[a],t)&&(l=!0,e[a+1]=r?ed(c):Kc(c)),a=r?Kn(c):Ir(c)}l&&(e[n+1]=r?Kc(i):ed(i))}function sT(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ro(e,t)>=0}function Fa(e,t){return function Ut(e,t,n,r){const o=E(),i=ee(),s=On(2);i.firstUpdatePass&&function Uy(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[rt()],s=function By(e,t){return t>=e.expandoStartIndex}(e,n);(function qy(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function gT(e,t,n,r){const o=function wu(e){const t=$.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Li(n=td(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=td(o,e,t,n,r),null===i){let l=function mT(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Ir(r))return e[Kn(r)]}(e,t,r);void 0!==l&&Array.isArray(l)&&(l=td(null,e,t,l[1],r),l=Li(l,t.attrs,r),function yT(e,t,n,r){e[Kn(n?t.classBindings:t.styleBindings)]=r}(e,t,r,l))}else i=function vT(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(u=!0)):c=n,o)if(0!==l){const f=Kn(e[a+1]);e[r+1]=ka(f,a),0!==f&&(e[f+1]=Jc(e[f+1],r)),e[a+1]=function nT(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=ka(a,0),0!==a&&(e[a+1]=Jc(e[a+1],r)),a=r;else e[r+1]=ka(l,0),0===a?a=r:e[l+1]=Jc(e[l+1],r),l=r;u&&(e[r+1]=Kc(e[r+1])),xy(e,c,r,!0),xy(e,c,r,!1),function iT(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&ro(i,t)>=0&&(n[r+1]=ed(n[r+1]))}(t,c,e,r,i),s=ka(a,l),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==G&&Je(o,s,t)&&function Gy(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const l=e.data,u=l[a+1],c=function rT(e){return 1==(1&e)}(u)?Wy(l,t,n,o,Ir(u),s):void 0;La(c)||(La(i)||function tT(e){return 2==(2&e)}(u)&&(i=Wy(l,null,n,o,a,s)),function sb(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:ht.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=ht.Important),e.setStyle(n,r,o,i))}}(r,s,Hs(rt(),n),o,i))}(i,i.data[rt()],o,o[z],e,o[s+1]=function wT(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ke(Qn(e)))),e}(t,n),r,s)}(e,t,null,!0),Fa}function td(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const l=e[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[o+1];f===G&&(f=d?te:void 0);let h=d?xu(f,r):c===r?f:void 0;if(u&&!La(h)&&(h=xu(l,r)),La(h)&&(a=h,s))return a;const p=e[o+1];o=s?Kn(p):Ir(p)}if(null!==t){let l=i?t.residualClasses:t.residualStyles;null!=l&&(a=xu(l,r))}return a}function La(e){return void 0!==e}function C(e,t=""){const n=E(),r=ee(),o=e+Q,i=r.firstCreatePass?fo(r,o,1,t,null):r.data[o],s=Zy(r,n,i,t,e);n[o]=s,Bs()&&ua(r,n,s,i),an(i,!1)}let Zy=(e,t,n,r,o)=>(Xn(!0),function sa(e,t){return e.createText(t)}(t[z],r));function K(e){return Be("",e,""),K}function Be(e,t,n){const r=E(),o=po(r,e,t,n);return o!==G&&Fn(r,rt(),o),Be}function Va(e,t,n,r,o){const i=E(),s=go(i,e,t,n,r,o);return s!==G&&Fn(i,rt(),s),Va}const Tr=void 0;var zT=["en",[["a","p"],["AM","PM"],Tr],[["AM","PM"],Tr,Tr],[["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"]],Tr,[["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"]],Tr,[["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}",Tr,"{1} 'at' {0}",Tr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function UT(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Eo={};function ot(e){const t=function WT(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=pv(t);if(n)return n;const r=t.split("-")[0];if(n=pv(r),n)return n;if("en"===r)return zT;throw new M(701,!1)}function pv(e){return e in Eo||(Eo[e]=he.ng&&he.ng.common&&he.ng.common.locales&&he.ng.common.locales[e]),Eo[e]}var N=(()=>((N=N||{})[N.LocaleId=0]="LocaleId",N[N.DayPeriodsFormat=1]="DayPeriodsFormat",N[N.DayPeriodsStandalone=2]="DayPeriodsStandalone",N[N.DaysFormat=3]="DaysFormat",N[N.DaysStandalone=4]="DaysStandalone",N[N.MonthsFormat=5]="MonthsFormat",N[N.MonthsStandalone=6]="MonthsStandalone",N[N.Eras=7]="Eras",N[N.FirstDayOfWeek=8]="FirstDayOfWeek",N[N.WeekendRange=9]="WeekendRange",N[N.DateFormat=10]="DateFormat",N[N.TimeFormat=11]="TimeFormat",N[N.DateTimeFormat=12]="DateTimeFormat",N[N.NumberSymbols=13]="NumberSymbols",N[N.NumberFormats=14]="NumberFormats",N[N.CurrencyCode=15]="CurrencyCode",N[N.CurrencySymbol=16]="CurrencySymbol",N[N.CurrencyName=17]="CurrencyName",N[N.Currencies=18]="Currencies",N[N.Directionality=19]="Directionality",N[N.PluralCase=20]="PluralCase",N[N.ExtraData=21]="ExtraData",N))();const Mo="en-US";let gv=Mo;function od(e,t,n,r,o){if(e=B(e),Array.isArray(e))for(let i=0;i>20;if(Er(e)||!e.multi){const h=new ai(l,o,D),p=sd(a,t,o?c:c+f,d);-1===p?(Ru(Ys(u,s),i,a),id(i,e,t.length),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=sd(a,t,c+f,d),p=sd(a,t,c,c+f),w=p>=0&&n[p];if(o&&!w||!o&&!(h>=0&&n[h])){Ru(Ys(u,s),i,a);const b=function UA(e,t,n,r,o){const i=new ai(e,n,D);return i.multi=[],i.index=t,i.componentProviders=0,Hv(i,o,r&&!n),i}(o?BA:jA,n.length,o,r,l);!o&&w&&(n[p].providerFactory=b),id(i,e,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(b),s.push(b)}else id(i,e,h>-1?h:p,Hv(n[o?p:h],l,!o&&r));!o&&r&&w&&n[p].componentProviders++}}}function id(e,t,n,r){const o=Er(t),i=function Fb(e){return!!e.useClass}(t);if(o||i){const l=(i?B(t.useClass):t).prototype.ngOnDestroy;if(l){const u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const c=u.indexOf(n);-1===c?u.push(n,[r,l]):u[c+1].push(r,l)}else u.push(n,l)}}}function Hv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function sd(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function HA(e,t,n){const r=ee();if(r.firstCreatePass){const o=jt(e);od(n,r.data,r.blueprint,o,!0),od(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class bo{}class jv{}class ld extends bo{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Qm(this);const o=Dt(t);this._bootstrapComponents=kn(o.bootstrap),this._r3Injector=xm(t,n,[{provide:bo,useValue:this},{provide:Da,useValue:this.componentFactoryResolver},...r],ke(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ud extends jv{constructor(t){super(),this.moduleType=t}create(t){return new ld(this.moduleType,t,[])}}class Bv extends bo{constructor(t){super(),this.componentFactoryResolver=new Qm(this),this.instance=null;const n=new gc([...t.providers,{provide:bo,useValue:this},{provide:Da,useValue:this.componentFactoryResolver}],t.parent||ga(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function cd(e,t,n=null){return new Bv({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let WA=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const r=im(0,n.type),o=r.length>0?cd([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,o)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=x({token:e,providedIn:"environment",factory:()=>new e(R(un))}),e})();function Uv(e){e.getStandaloneInjector=t=>t.get(WA).getOrCreateStandaloneInjector(e)}function fd(e,t,n){const r=nt()+e,o=E();return o[r]===G?fn(o,r,n?t.call(n):t()):function Ri(e,t){return e[t]}(o,r)}function Ua(e,t,n,r){return function Xv(e,t,n,r,o,i){const s=t+n;return Je(e,s,o)?fn(e,s+1,i?r.call(i,o):r(o)):Ui(e,s+1)}(E(),nt(),e,t,n,r)}function Ui(e,t){const n=e[t];return n===G?void 0:n}function Jn(e,t){const n=ee();let r;const o=e+Q;n.firstCreatePass?(r=function u2(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=Cr(r.type)),s=at(D);try{const a=Zs(!1),l=i();return Zs(a),function UI(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,E(),o,l),l}finally{at(s)}}function er(e,t,n,r){const o=e+Q,i=E(),s=function Zr(e,t){return e[t]}(i,o);return function zi(e,t){return e[T].data[t].pure}(i,o)?function Qv(e,t,n,r,o,i,s){const a=t+n;return Sr(e,a,o,i)?fn(e,a+2,s?r.call(s,o,i):r(o,i)):Ui(e,a+2)}(i,nt(),t,s.transform,n,r,s):s.transform(n,r)}function hd(e){return t=>{setTimeout(e,void 0,t)}}const Me=class p2 extends bn{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=hd(i),o&&(o=hd(o)),s&&(s=hd(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof Tt&&t.add(a),a}};function g2(){return this._results[Symbol.iterator]()}class pd{get changes(){return this._changes||(this._changes=new Me)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=pd.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=g2)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=function Pt(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function uM(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=v2,e})();const m2=Ln,y2=class extends m2{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n,null)}createEmbeddedViewImpl(t,n,r){const o=this._declarationTContainer.tView,i=Ma(this._declarationLView,o,t,16,null,o.declTNode,null,null,null,n||null,r||null);i[ri]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[nn];return null!==a&&(i[nn]=a.createEmbeddedView(o)),Hc(o,i,t),new Ai(i)}};function v2(){return za(qe(),E())}function za(e,t){return 4&e.type?new y2(t,e,uo(e,t)):null}let Gt=(()=>{class e{}return e.__NG_ELEMENT_ID__=b2,e})();function b2(){return sC(qe(),E())}const S2=Gt,oC=class extends S2{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return uo(this._hostTNode,this._hostLView)}get injector(){return new Kr(this._hostTNode,this._hostLView)}get parentInjector(){const t=Nu(this._hostTNode,this._hostLView);if(Xp(t)){const n=qs(t,this._hostLView),r=Ws(t);return new Kr(n[T].data[r+8],n)}return new Kr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=iC(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-We}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(a,o,false),a}createComponent(t,n,r,o,i){const s=t&&!function ui(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const v=n||{};a=v.index,r=v.injector,o=v.projectableNodes,i=v.environmentInjector||v.ngModuleRef}const l=s?t:new Ni(re(t)),u=r||this.parentInjector;if(!i&&null==l.ngModule){const w=(s?u:this.parentInjector).get(un,null);w&&(i=w)}re(l.componentType??{});const h=l.create(u,o,null,i);return this.insertImpl(h.hostView,a,false),h}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const o=t._lView,i=o[T];if(function SE(e){return ct(e[Ce])}(o)){const l=this.indexOf(t);if(-1!==l)this.detach(l);else{const u=o[Ce],c=new oC(u,u[Qe],u[Ce]);c.detach(c.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;if(function KM(e,t,n,r){const o=We+r,i=n.length;r>0&&(n[o-1][Ht]=t),r0)r.push(s[a/2]);else{const u=i[a+1],c=t[-l];for(let d=We;d{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=I(Id,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(Fi(i))n.push(i);else if(_y(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),RC=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const yn=new O("LocaleId",{providedIn:"root",factory:()=>I(yn,L.Optional|L.SkipSelf)||function rN(){return typeof $localize<"u"&&$localize.locale||Mo}()});class iN{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let OC=(()=>{class e{compileModuleSync(n){return new ud(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=kn(Dt(n).declarations).reduce((s,a)=>{const l=re(a);return l&&s.push(new Ni(l)),s},[]);return new iN(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const lN=(()=>Promise.resolve(0))();function Ad(e){typeof Zone>"u"?lN.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function kC(...e){}class ve{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Me(!1),this.onMicrotaskEmpty=new Me(!1),this.onStable=new Me(!1),this.onError=new Me(!1),typeof Zone>"u")throw new M(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)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function uN(){let e=he.requestAnimationFrame,t=he.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function fN(e){const t=()=>{!function dN(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(he,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Rd(e),e.isCheckStableRunning=!0,Nd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Rd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return FC(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),LC(e)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return FC(e),n.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),LC(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Rd(e),Nd(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.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 M(909,!1)}static assertNotInAngularZone(){if(ve.isInAngularZone())throw new M(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,cN,kC,kC);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const cN={};function Nd(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 Rd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function FC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function LC(e){e._nesting--,Nd(e)}class hN{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Me,this.onMicrotaskEmpty=new Me,this.onStable=new Me,this.onError=new Me}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const VC=new O("",{providedIn:"root",factory:$C});function $C(){const e=I(ve);let t=!0;return function b1(...e){const t=Qo(e),n=function v1(e,t){return"number"==typeof Ql(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?At(r[0]):Hr(n)(xe(r,t)):en}(new be(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new be(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{ve.assertNotInAngularZone(),Ad(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ve.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(function S1(e={}){const{connector:t=(()=>new bn),resetOnError:n=!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},p=()=>{const v=s;h(),v?.unsubscribe()};return ze((v,w)=>{u++,!d&&!c&&f();const b=l=l??t();w.add(()=>{u--,0===u&&!d&&!c&&(a=Kl(p,o))}),b.subscribe(w),!s&&u>0&&(s=new Xo({next:y=>b.next(y),error:y=>{d=!0,f(),a=Kl(h,n,y),b.error(y)},complete:()=>{c=!0,f(),a=Kl(h,r),b.complete()}}),At(v).subscribe(s))})(i)}}()))}const HC=new O(""),qa=new O("");let xd,Od=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,xd||(function pN(e){xd=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.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(),Ad(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Ad(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,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(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(R(ve),R(Pd),R(qa))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),Pd=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return xd?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),tr=null;const jC=new O("AllowMultipleToken"),kd=new O("PlatformDestroyListeners"),Fd=new O("appBootstrapListener");class UC{constructor(t,n){this.name=t,this.token=n}}function GC(e,t,n=[]){const r=`Platform: ${t}`,o=new O(r);return(i=[])=>{let s=Ld();if(!s||s.injector.get(jC,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function yN(e){if(tr&&!tr.get(jC,!1))throw new M(400,!1);(function BC(){!function gE(e){wp=e}(()=>{throw new M(600,!1)})})(),tr=e;const t=e.get(qC);(function zC(e){e.get(cm,null)?.forEach(n=>n())})(e)}(function WC(e=[],t){return cn.create({name:t,providers:[{provide:hc,useValue:"platform"},{provide:kd,useValue:new Set([()=>tr=null])},...e]})}(a,r))}return function CN(e){const t=Ld();if(!t)throw new M(401,!1);return t}()}}function Ld(){return tr?.get(qC)??null}let qC=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function _N(e="zone.js",t){return"noop"===e?new hN:"zone.js"===e?new ve(t):e}(r?.ngZone,function ZC(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function GA(e,t,n){return new ld(e,t,n)}(n.moduleType,this.injector,function JC(e){return[{provide:ve,useFactory:e},{provide:Di,multi:!0,useFactory:()=>{const t=I(wN,{optional:!0});return()=>t.initialize()}},{provide:KC,useFactory:DN},{provide:VC,useFactory:$C}]}(()=>o)),s=i.injector.get(br,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{Za(this._modules,i),a.unsubscribe()})}),function YC(e,t,n){try{const r=n();return Fi(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(Td);return a.runInitializers(),a.donePromise.then(()=>(function mv(e){Nt(e,"Expected localeId to be defined"),"string"==typeof e&&(gv=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(yn,Mo)||Mo),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=XC({},r);return function gN(e,t,n){const r=new ud(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(To);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new M(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new M(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(kd,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(R(cn))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function XC(e,t){return Array.isArray(t)?t.reduce(XC,e):{...e,...t}}let To=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=I(KC),this.componentTypes=[],this.components=[],this.isStable=I(VC),this._injector=I(un)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof ym;if(!this._injector.get(Td).done)throw!o&&function Br(e){const t=re(e)||Xe(e)||ut(e);return null!==t&&t.standalone}(n),new M(405,!1);let s;s=o?n:this._injector.get(Da).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function mN(e){return e.isBoundToModule}(s)?void 0:this._injector.get(bo),u=s.create(cn.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(HC,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),Za(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new M(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Za(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Fd,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Za(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new M(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Za(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const KC=new O("",{providedIn:"root",factory:()=>I(br).handleError.bind(void 0)});function DN(){const e=I(ve),t=I(br);return n=>e.runOutsideAngular(()=>t.handleError(n))}let wN=(()=>{class e{constructor(){this.zone=I(ve),this.applicationRef=I(To)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();let Ya=(()=>{class e{}return e.__NG_ELEMENT_ID__=MN,e})();function MN(e){return function bN(e,t,n){if(vr(e)&&!n){const r=ft(e.index,t);return new Ai(r,r)}return 47&e.type?new Ai(t[Ae],t):null}(qe(),E(),16==(16&e))}class r_{constructor(){}supports(t){return Aa(t)}create(t){return new RN(t)}}const NN=(e,t)=>t;class RN{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||NN}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new ON(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new o_),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new o_),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class ON{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class PN{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class o_{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new PN,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function i_(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);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 kN(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class kN{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function a_(){return new Ka([new r_])}let Ka=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||a_()),deps:[[e,new ta,new ea]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new M(901,!1)}}return e.\u0275prov=x({token:e,providedIn:"root",factory:a_}),e})();function l_(){return new Zi([new s_])}let Zi=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||l_()),deps:[[e,new ta,new ea]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new M(901,!1)}}return e.\u0275prov=x({token:e,providedIn:"root",factory:l_}),e})();const VN=GC(null,"core",[]);let $N=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(R(To))},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({}),e})(),p_=(()=>{class e{get whenAllTasksComplete(){return 0===this.collection.size&&this.complete(),this.promise}constructor(){this.taskId=0,this.collection=new Set,this.ngZone=I(ve),this.completed=!1,this.ngZone.runOutsideAngular(()=>{this.promise=new Promise(n=>{this.resolve=n})})}add(){if(this.completed)return-1;const n=this.taskId++;return this.collection.add(n),n}remove(n){this.completed||(this.collection.delete(n),0===this.collection.size&&this.complete())}ngOnDestroy(){this.complete(),this.collection.clear()}complete(){this.completed=!0,this.resolve()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ao(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let zd=null;function nr(){return zd}class QN{}const St=new O("DocumentToken");let Gd=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(JN)},providedIn:"platform"}),e})();const KN=new O("Location Initialized");let JN=(()=>{class e extends Gd{constructor(){super(),this._doc=I(St),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return nr().getBaseHref(this._doc)}onPopState(n){const r=nr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=nr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return new e},providedIn:"platform"}),e})();function Wd(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m_(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Vn(e){return e&&"?"!==e[0]?"?"+e:e}let rr=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(v_)},providedIn:"root"}),e})();const y_=new O("appBaseHref");let v_=(()=>{class e extends rr{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??I(St).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Wd(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Vn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+Vn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+Vn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(R(Gd),R(y_,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),C_=(()=>{class e extends rr{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Wd(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Vn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Vn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(R(Gd),R(y_,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),qd=(()=>{class e{constructor(n){this._subject=new Me,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function nR(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(m_(__(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(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Vn(r))}normalize(n){return e.stripTrailingSlash(function tR(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,__(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Vn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Vn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return e.normalizeQueryParams=Vn,e.joinWithSlash=Wd,e.stripTrailingSlash=m_,e.\u0275fac=function(n){return new(n||e)(R(rr))},e.\u0275prov=x({token:e,factory:function(){return function eR(){return new qd(R(rr))}()},providedIn:"root"}),e})();function __(e){return e.replace(/\/index.html$/,"")}var Se=(()=>((Se=Se||{})[Se.Format=0]="Format",Se[Se.Standalone=1]="Standalone",Se))(),X=(()=>((X=X||{})[X.Narrow=0]="Narrow",X[X.Abbreviated=1]="Abbreviated",X[X.Wide=2]="Wide",X[X.Short=3]="Short",X))(),De=(()=>((De=De||{})[De.Short=0]="Short",De[De.Medium=1]="Medium",De[De.Long=2]="Long",De[De.Full=3]="Full",De))(),F=(()=>((F=F||{})[F.Decimal=0]="Decimal",F[F.Group=1]="Group",F[F.List=2]="List",F[F.PercentSign=3]="PercentSign",F[F.PlusSign=4]="PlusSign",F[F.MinusSign=5]="MinusSign",F[F.Exponential=6]="Exponential",F[F.SuperscriptingExponent=7]="SuperscriptingExponent",F[F.PerMille=8]="PerMille",F[F.Infinity=9]="Infinity",F[F.NaN=10]="NaN",F[F.TimeSeparator=11]="TimeSeparator",F[F.CurrencyDecimal=12]="CurrencyDecimal",F[F.CurrencyGroup=13]="CurrencyGroup",F))();function el(e,t){return Ft(ot(e)[N.DateFormat],t)}function tl(e,t){return Ft(ot(e)[N.TimeFormat],t)}function nl(e,t){return Ft(ot(e)[N.DateTimeFormat],t)}function kt(e,t){const n=ot(e),r=n[N.NumberSymbols][t];if(typeof r>"u"){if(t===F.CurrencyDecimal)return n[N.NumberSymbols][F.Decimal];if(t===F.CurrencyGroup)return n[N.NumberSymbols][F.Group]}return r}function w_(e){if(!e[N.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[N.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ft(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function Yd(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const gR=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Yi={},mR=/((?:[^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 $e=(()=>(($e=$e||{})[$e.Short=0]="Short",$e[$e.ShortGMT=1]="ShortGMT",$e[$e.Long=2]="Long",$e[$e.Extended=3]="Extended",$e))(),V=(()=>((V=V||{})[V.FullYear=0]="FullYear",V[V.Month=1]="Month",V[V.Date=2]="Date",V[V.Hours=3]="Hours",V[V.Minutes=4]="Minutes",V[V.Seconds=5]="Seconds",V[V.FractionalSeconds=6]="FractionalSeconds",V[V.Day=7]="Day",V))(),Z=(()=>((Z=Z||{})[Z.DayPeriods=0]="DayPeriods",Z[Z.Days=1]="Days",Z[Z.Months=2]="Months",Z[Z.Eras=3]="Eras",Z))();function yR(e,t,n,r){let o=function SR(e){if(b_(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 rl(o,i-1,s)}const n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(gR))return function IR(e){const t=new Date(0);let n=0,r=0;const o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,s,a,l,u),t}(r)}const t=new Date(e);if(!b_(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=$n(n,t)||t;let a,s=[];for(;t;){if(a=mR.exec(t),!a){s.push(t);break}{s=s.concat(a.slice(1));const c=s.pop();if(!c)break;t=c}}let l=o.getTimezoneOffset();r&&(l=M_(r,l),o=function bR(e,t,n){const r=n?-1:1,o=e.getTimezoneOffset();return function MR(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,r*(M_(t,o)-o))}(o,r,!0));let u="";return s.forEach(c=>{const d=function ER(e){if(Qd[e])return Qd[e];let t;switch(e){case"G":case"GG":case"GGG":t=pe(Z.Eras,X.Abbreviated);break;case"GGGG":t=pe(Z.Eras,X.Wide);break;case"GGGGG":t=pe(Z.Eras,X.Narrow);break;case"y":t=Oe(V.FullYear,1,0,!1,!0);break;case"yy":t=Oe(V.FullYear,2,0,!0,!0);break;case"yyy":t=Oe(V.FullYear,3,0,!1,!0);break;case"yyyy":t=Oe(V.FullYear,4,0,!1,!0);break;case"Y":t=al(1);break;case"YY":t=al(2,!0);break;case"YYY":t=al(3);break;case"YYYY":t=al(4);break;case"M":case"L":t=Oe(V.Month,1,1);break;case"MM":case"LL":t=Oe(V.Month,2,1);break;case"MMM":t=pe(Z.Months,X.Abbreviated);break;case"MMMM":t=pe(Z.Months,X.Wide);break;case"MMMMM":t=pe(Z.Months,X.Narrow);break;case"LLL":t=pe(Z.Months,X.Abbreviated,Se.Standalone);break;case"LLLL":t=pe(Z.Months,X.Wide,Se.Standalone);break;case"LLLLL":t=pe(Z.Months,X.Narrow,Se.Standalone);break;case"w":t=Xd(1);break;case"ww":t=Xd(2);break;case"W":t=Xd(1,!0);break;case"d":t=Oe(V.Date,1);break;case"dd":t=Oe(V.Date,2);break;case"c":case"cc":t=Oe(V.Day,1);break;case"ccc":t=pe(Z.Days,X.Abbreviated,Se.Standalone);break;case"cccc":t=pe(Z.Days,X.Wide,Se.Standalone);break;case"ccccc":t=pe(Z.Days,X.Narrow,Se.Standalone);break;case"cccccc":t=pe(Z.Days,X.Short,Se.Standalone);break;case"E":case"EE":case"EEE":t=pe(Z.Days,X.Abbreviated);break;case"EEEE":t=pe(Z.Days,X.Wide);break;case"EEEEE":t=pe(Z.Days,X.Narrow);break;case"EEEEEE":t=pe(Z.Days,X.Short);break;case"a":case"aa":case"aaa":t=pe(Z.DayPeriods,X.Abbreviated);break;case"aaaa":t=pe(Z.DayPeriods,X.Wide);break;case"aaaaa":t=pe(Z.DayPeriods,X.Narrow);break;case"b":case"bb":case"bbb":t=pe(Z.DayPeriods,X.Abbreviated,Se.Standalone,!0);break;case"bbbb":t=pe(Z.DayPeriods,X.Wide,Se.Standalone,!0);break;case"bbbbb":t=pe(Z.DayPeriods,X.Narrow,Se.Standalone,!0);break;case"B":case"BB":case"BBB":t=pe(Z.DayPeriods,X.Abbreviated,Se.Format,!0);break;case"BBBB":t=pe(Z.DayPeriods,X.Wide,Se.Format,!0);break;case"BBBBB":t=pe(Z.DayPeriods,X.Narrow,Se.Format,!0);break;case"h":t=Oe(V.Hours,1,-12);break;case"hh":t=Oe(V.Hours,2,-12);break;case"H":t=Oe(V.Hours,1);break;case"HH":t=Oe(V.Hours,2);break;case"m":t=Oe(V.Minutes,1);break;case"mm":t=Oe(V.Minutes,2);break;case"s":t=Oe(V.Seconds,1);break;case"ss":t=Oe(V.Seconds,2);break;case"S":t=Oe(V.FractionalSeconds,1);break;case"SS":t=Oe(V.FractionalSeconds,2);break;case"SSS":t=Oe(V.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=il($e.Short);break;case"ZZZZZ":t=il($e.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=il($e.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=il($e.Long);break;default:return null}return Qd[e]=t,t}(c);u+=d?d(o,n,l):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function rl(e,t,n){const r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function $n(e,t){const n=function rR(e){return ot(e)[N.LocaleId]}(e);if(Yi[n]=Yi[n]||{},Yi[n][t])return Yi[n][t];let r="";switch(t){case"shortDate":r=el(e,De.Short);break;case"mediumDate":r=el(e,De.Medium);break;case"longDate":r=el(e,De.Long);break;case"fullDate":r=el(e,De.Full);break;case"shortTime":r=tl(e,De.Short);break;case"mediumTime":r=tl(e,De.Medium);break;case"longTime":r=tl(e,De.Long);break;case"fullTime":r=tl(e,De.Full);break;case"short":const o=$n(e,"shortTime"),i=$n(e,"shortDate");r=ol(nl(e,De.Short),[o,i]);break;case"medium":const s=$n(e,"mediumTime"),a=$n(e,"mediumDate");r=ol(nl(e,De.Medium),[s,a]);break;case"long":const l=$n(e,"longTime"),u=$n(e,"longDate");r=ol(nl(e,De.Long),[l,u]);break;case"full":const c=$n(e,"fullTime"),d=$n(e,"fullDate");r=ol(nl(e,De.Full),[c,d])}return r&&(Yi[n][t]=r),r}function ol(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return null!=t&&r in t?t[r]:n})),e}function qt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,i=n));let s=String(e);for(;s.length0||a>-n)&&(a+=n),e===V.Hours)0===a&&-12===n&&(a=12);else if(e===V.FractionalSeconds)return function vR(e,t){return qt(e,3).substring(0,t)}(a,t);const l=kt(s,F.MinusSign);return qt(a,t,l,r,o)}}function pe(e,t,n=Se.Format,r=!1){return function(o,i){return function _R(e,t,n,r,o,i){switch(n){case Z.Months:return function sR(e,t,n){const r=ot(e),i=Ft([r[N.MonthsFormat],r[N.MonthsStandalone]],t);return Ft(i,n)}(t,o,r)[e.getMonth()];case Z.Days:return function iR(e,t,n){const r=ot(e),i=Ft([r[N.DaysFormat],r[N.DaysStandalone]],t);return Ft(i,n)}(t,o,r)[e.getDay()];case Z.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(i){const u=function cR(e){const t=ot(e);return w_(t),(t[N.ExtraData][2]||[]).map(r=>"string"==typeof r?Yd(r):[Yd(r[0]),Yd(r[1])])}(t),c=function dR(e,t,n){const r=ot(e);w_(r);const i=Ft([r[N.ExtraData][0],r[N.ExtraData][1]],t)||[];return Ft(i,n)||[]}(t,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){const[h,p]=f,v=s>=h.hours&&a>=h.minutes,w=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case $e.Short:return(o>=0?"+":"")+qt(s,2,i)+qt(Math.abs(o%60),2,i);case $e.ShortGMT:return"GMT"+(o>=0?"+":"")+qt(s,1,i);case $e.Long:return"GMT"+(o>=0?"+":"")+qt(s,2,i)+":"+qt(Math.abs(o%60),2,i);case $e.Extended:return 0===r?"Z":(o>=0?"+":"")+qt(s,2,i)+":"+qt(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}const DR=0,sl=4;function E_(e){return rl(e.getFullYear(),e.getMonth(),e.getDate()+(sl-e.getDay()))}function Xd(e,t=!1){return function(n,r){let o;if(t){const i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{const i=E_(n),s=function wR(e){const t=rl(e,DR,1).getDay();return rl(e,0,1+(t<=sl?sl:sl+7)-t)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return qt(o,e,kt(r,F.MinusSign))}}function al(e,t=!1){return function(n,r){return qt(E_(n).getFullYear(),e,kt(r,F.MinusSign),t)}}const Qd={};function M_(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function b_(e){return e instanceof Date&&!isNaN(e.valueOf())}function A_(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}const rf=/\s+/,N_=[];let R_=(()=>{class e{constructor(n,r,o,i){this._iterableDiffers=n,this._keyValueDiffers=r,this._ngEl=o,this._renderer=i,this.initialClasses=N_,this.stateMap=new Map}set klass(n){this.initialClasses=null!=n?n.trim().split(rf):N_}set ngClass(n){this.rawClass="string"==typeof n?n.trim().split(rf):n}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(const r of n)this._updateState(r,!0);else if(null!=n)for(const r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){const o=this.stateMap.get(n);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const n of this.stateMap){const r=n[0],o=n[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(n,r){(n=n.trim()).length>0&&n.split(rf).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return e.\u0275fac=function(n){return new(n||e)(D(Ka),D(Zi),D(Mt),D(xn))},e.\u0275dir=H({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})();class jR{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,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 or=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new jR(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),P_(a,o)}});for(let o=0,i=r.length;o{P_(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(D(Gt),D(Ln),D(Ka))},e.\u0275dir=H({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function P_(e,t){e.context.$implicit=t.item}let sf=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new BR,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){x_("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){x_("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(D(Gt),D(Ln))},e.\u0275dir=H({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class BR{constructor(){this.$implicit=null,this.ngIf=null}}function x_(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ke(t)}'.`)}const t3=new O("DATE_PIPE_DEFAULT_TIMEZONE"),n3=new O("DATE_PIPE_DEFAULT_OPTIONS");let No=(()=>{class e{constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(null==n||""===n||n!=n)return null;try{return yR(n,r??this.defaultOptions?.dateFormat??"mediumDate",i||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw function Zt(e,t){return new M(2100,!1)}()}}}return e.\u0275fac=function(n){return new(n||e)(D(yn,16),D(t3,24),D(n3,24))},e.\u0275pipe=lt({name:"date",type:e,pure:!0,standalone:!0}),e})(),f3=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({}),e})();function V_(e){return"server"===e}let m3=(()=>{class e{}return e.\u0275prov=x({token:e,providedIn:"root",factory:()=>new y3(R(St),window)}),e})();class y3{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const n=function v3(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;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(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=$_(this.window.history)||$_(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function $_(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class H_{}class G3 extends QN{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class hf extends G3{static makeCurrent(){!function XN(e){zd||(zd=e)}(new hf)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function W3(){return Ki=Ki||document.querySelector("base"),Ki?Ki.getAttribute("href"):null}();return null==n?null:function q3(e){dl=dl||document.createElement("a"),dl.setAttribute("href",e);const t=dl.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Ki=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return A_(document.cookie,t)}}let dl,Ki=null,Y3=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const pf=new O("EventManagerPlugins");let G_=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new M(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return e.\u0275fac=function(n){return new(n||e)(R(pf),R(ve))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();class W_{constructor(t){this._doc=t}}const gf="ng-app-id";let q_=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=V_(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${gf}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(gf),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(gf,this.appId),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r);n.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(R(St),R(ma),R(dm,8),R(Mr))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const mf={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/"},yf=/%COMP%/g,J3=new O("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function Y_(e,t){return t.map(n=>n.replace(yf,e))}let X_=(()=>{class e{constructor(n,r,o,i,s,a,l,u=null){this.eventManager=n,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=V_(a),this.defaultRenderer=new vf(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ct.ShadowDom&&(r={...r,encapsulation:Ct.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof K_?o.applyToHost(n):o instanceof Cf&&o.applyStyles(),o}getOrCreateRenderer(n,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 Ct.Emulated:i=new K_(l,u,r,this.appId,c,s,a,d);break;case Ct.ShadowDom:return new rO(l,u,n,r,s,a,this.nonce,d);default:i=new Cf(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(n){return new(n||e)(R(G_),R(q_),R(ma),R(J3),R(St),R(Mr),R(ve),R(dm))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();class vf{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(mf[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Q_(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Q_(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new M(5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=mf[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=mf[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(ht.DashCase|ht.Important)?t.style.setProperty(n,r,o&ht.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ht.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=nr().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&(n.preventDefault(),n.returnValue=!1)}}}function Q_(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class rO extends vf{constructor(t,n,r,o,i,s,a,l){super(t,i,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=Y_(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(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Cf extends vf{constructor(t,n,r,o,i,s,a,l){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=l?Y_(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 K_ extends Cf{constructor(t,n,r,o,i,s,a,l){const u=o+"-"+r.id;super(t,n,r,i,s,a,l,u),this.contentAttr=function eO(e){return"_ngcontent-%COMP%".replace(yf,e)}(u),this.hostAttr=function tO(e){return"_nghost-%COMP%".replace(yf,e)}(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let oO=(()=>{class e extends W_{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(R(St))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const J_=["alt","control","meta","shift"],iO={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},sO={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let aO=(()=>{class e extends W_{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>nr().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.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."),J_.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(n,r){let o=iO[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),J_.forEach(s=>{s!==o&&(0,sO[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(R(St))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const dO=GC(VN,"browser",[{provide:Mr,useValue:"browser"},{provide:cm,useValue:function lO(){hf.makeCurrent()},multi:!0},{provide:St,useFactory:function cO(){return function db(e){nc=e}(document),document},deps:[]}]),fO=new O(""),nD=[{provide:qa,useClass:class Z3{addToWindow(t){he.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new M(5103,!1);return i},he.getAllAngularTestabilities=()=>t.getAllTestabilities(),he.getAllAngularRootElements=()=>t.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(t,n,r){return null==n?null:t.getTestability(n)??(r?nr().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:HC,useClass:Od,deps:[ve,Pd,qa]},{provide:Od,useClass:Od,deps:[ve,Pd,qa]}],rD=[{provide:hc,useValue:"root"},{provide:br,useFactory:function uO(){return new br},deps:[]},{provide:pf,useClass:oO,multi:!0,deps:[St,ve,Mr]},{provide:pf,useClass:aO,multi:!0,deps:[St]},X_,q_,G_,{provide:Cm,useExisting:X_},{provide:H_,useClass:Y3,deps:[]},[]];let hO=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:ma,useValue:n.appId}]}}}return e.\u0275fac=function(n){return new(n||e)(R(fO,12))},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({providers:[...rD,...nD],imports:[f3,$N]}),e})(),oD=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return e.\u0275fac=function(n){return new(n||e)(R(St))},e.\u0275prov=x({token:e,factory:function(n){let r=null;return r=n?new n:function gO(){return new oD(R(St))}(),r},providedIn:"root"}),e})();typeof window<"u"&&window;const{isArray:_O}=Array,{getPrototypeOf:DO,prototype:wO,keys:EO}=Object;function lD(e){if(1===e.length){const t=e[0];if(_O(t))return{args:t,keys:null};if(function MO(e){return e&&"object"==typeof e&&DO(e)===wO}(t)){const n=EO(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:bO}=Array;function uD(e){return ne(t=>function SO(e,t){return bO(t)?e(...t):e(t)}(e,t))}function cD(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}let dD=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(D(xn),D(Mt))},e.\u0275dir=H({type:e}),e})(),Nr=(()=>{class e extends dD{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ze(e)))(r||e)}}(),e.\u0275dir=H({type:e,features:[le]}),e})();const vn=new O("NgValueAccessor"),TO={provide:vn,useExisting:fe(()=>fl),multi:!0};let fl=(()=>{class e extends Nr{writeValue(n){this.setProperty("checked",n)}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ze(e)))(r||e)}}(),e.\u0275dir=H({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){1&n&&P("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[ye([TO]),le]}),e})();const AO={provide:vn,useExisting:fe(()=>Lt),multi:!0},RO=new O("CompositionEventMode");let Lt=(()=>{class e extends dD{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function NO(){const e=nr()?nr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return e.\u0275fac=function(n){return new(n||e)(D(xn),D(Mt),D(RO,8))},e.\u0275dir=H({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(n,r){1&n&&P("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([AO]),le]}),e})();const et=new O("NgValidators"),ar=new O("NgAsyncValidators");function DD(e){return null!=e}function wD(e){return Fi(e)?xe(e):e}function ED(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function MD(e,t){return t.map(n=>n(e))}function bD(e){return e.map(t=>function PO(e){return!e.validate}(t)?t:n=>t.validate(n))}function Df(e){return null!=e?function SD(e){if(!e)return null;const t=e.filter(DD);return 0==t.length?null:function(n){return ED(MD(n,t))}}(bD(e)):null}function wf(e){return null!=e?function ID(e){if(!e)return null;const t=e.filter(DD);return 0==t.length?null:function(n){return function IO(...e){const t=Uh(e),{args:n,keys:r}=lD(e),o=new be(i=>{const{length:s}=n;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?cD(r,a):a),i.complete())}))}});return t?o.pipe(uD(t)):o}(MD(n,t).map(wD)).pipe(ne(ED))}}(bD(e)):null}function TD(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Ef(e){return e?Array.isArray(e)?e:[e]:[]}function pl(e,t){return Array.isArray(e)?e.includes(t):e===t}function RD(e,t){const n=Ef(t);return Ef(e).forEach(o=>{pl(n,o)||n.push(o)}),n}function OD(e,t){return Ef(t).filter(n=>!pl(e,n))}class PD{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Df(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=wf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class st extends PD{get formDirective(){return null}get path(){return null}}class lr extends PD{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class xD{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Cn=(()=>{class e extends xD{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(D(lr,2))},e.\u0275dir=H({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&Fa("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:[le]}),e})(),kD=(()=>{class e extends xD{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(D(st,10))},e.\u0275dir=H({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&Fa("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:[le]}),e})();const Ji="VALID",ml="INVALID",Ro="PENDING",es="DISABLED";function Sf(e){return(yl(e)?e.validators:e)||null}function If(e,t){return(yl(t)?t.asyncValidators:e)||null}function yl(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class $D{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Ji}get invalid(){return this.status===ml}get pending(){return this.status==Ro}get disabled(){return this.status===es}get enabled(){return this.status!==es}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(RD(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(RD(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(OD(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(OD(t,this._rawAsyncValidators))}hasValidator(t){return pl(this._rawValidators,t)}hasAsyncValidator(t){return pl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Ro,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=es,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Ji,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ji||this.status===Ro)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?es:Ji}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Ro,this._hasOwnPendingAsyncValidator=!0;const n=wD(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Me,this.statusChanges=new Me}_calculateStatus(){return this._allControlsDisabled()?es:this.errors?ml:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ro)?Ro:this._anyControlsHaveStatus(ml)?ml:Ji}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){yl(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function LO(e){return Array.isArray(e)?Df(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function VO(e){return Array.isArray(e)?wf(e):e||null}(this._rawAsyncValidators)}}class Tf extends $D{constructor(t,n,r){super(Sf(n),If(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){(function VD(e,t,n){e._forEachChild((r,o)=>{if(void 0===n[o])throw new M(1002,"")})})(this,0,t),Object.keys(t).forEach(r=>{(function LD(e,t,n){const r=e.controls;if(!(t?Object.keys(r):r).length)throw new M(1e3,"");if(!r[n])throw new M(1001,"")})(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{const o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const Oo=new O("CallSetDisabledState",{providedIn:"root",factory:()=>vl}),vl="always";function ts(e,t,n=vl){Af(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function jO(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&HD(e,t)})}(e,t),function UO(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function BO(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&HD(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function HO(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function Dl(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Af(e,t){const n=function AD(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(TD(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function ND(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(TD(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();Dl(t._rawValidators,o),Dl(t._rawAsyncValidators,o)}function HD(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const ZO={provide:st,useExisting:fe(()=>El)},ns=(()=>Promise.resolve())();let El=(()=>{class e extends st{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Me,this.form=new Tf({},Df(n),wf(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){ns.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),ts(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){ns.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){ns.then(()=>{const r=this._findContainer(n.path),o=new Tf({});(function jD(e,t){Af(e,t)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){ns.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){ns.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function BD(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return e.\u0275fac=function(n){return new(n||e)(D(et,10),D(ar,10),D(Oo,8))},e.\u0275dir=H({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&P("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ye([ZO]),le]}),e})();function UD(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function zD(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const GD=class extends $D{constructor(t=null,n,r){super(Sf(n),If(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),yl(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=zD(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){UD(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){UD(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){zD(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},QO={provide:lr,useExisting:fe(()=>Yt)},ZD=(()=>Promise.resolve())();let Yt=(()=>{class e extends lr{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new GD,this._registered=!1,this.name="",this.update=new Me,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Of(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===Lt?n=i:function WO(e){return Object.getPrototypeOf(e.constructor)===Nr}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function Rf(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,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(n){this.viewModel=n,this.update.emit(n)}_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(){ts(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(n){ZD.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&Ao(r);ZD.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function Cl(e,t){return[...t.path,e]}(n,this._parent):[n]}}return e.\u0275fac=function(n){return new(n||e)(D(st,9),D(et,10),D(ar,10),D(vn,10),D(Ya,8),D(Oo,8))},e.\u0275dir=H({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([QO]),le,Ot]}),e})(),YD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),QD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({}),e})(),DP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({imports:[QD]}),e})(),EP=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Oo,useValue:n.callSetDisabledState??vl}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({imports:[DP]}),e})();function j(...e){return xe(e,Qo(e))}function Po(e,t){return ce(t)?Ge(e,t,1):Ge(e,1)}function Hn(e,t){return ze((n,r)=>{let o=0;n.subscribe(He(r,i=>e.call(t,i,o++)&&r.next(i)))})}function _n(e,t){return ze((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(He(r,l=>{o?.unsubscribe();let u=0;const c=i++;At(e(l,c)).subscribe(o=He(r,d=>r.next(t?t(l,d,c,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}class Ml{}class $f{}class Ye{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.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(t).forEach(([n,r])=>{let o;if(o="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(i=>i.toString()),o.length>0){const i=n.toLowerCase();this.headers.set(i,o),this.maybeSetNormalizedName(n,i)}})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof Ye?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new Ye;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Ye?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class MP{encodeKey(t){return m0(t)}encodeValue(t){return m0(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const SP=/%(\d[a-f0-9])/gi,IP={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function m0(e){return encodeURIComponent(e).replace(SP,(t,n)=>IP[n]??t)}function bl(e){return`${e}`}class ur{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new MP,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function bP(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(bl):[bl(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new ur({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(bl(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(bl(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class TP{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function y0(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function v0(e){return typeof Blob<"u"&&e instanceof Blob}function C0(e){return typeof FormData<"u"&&e instanceof FormData}class rs{constructor(t,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function AP(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 Ye),this.context||(this.context=new TP),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ad.set(f,t.setHeaders[f]),l)),t.setParams&&(u=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),u)),new rs(n,r,i,{params:u,headers:l,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var Pe=(()=>((Pe=Pe||{})[Pe.Sent=0]="Sent",Pe[Pe.UploadProgress=1]="UploadProgress",Pe[Pe.ResponseHeader=2]="ResponseHeader",Pe[Pe.DownloadProgress=3]="DownloadProgress",Pe[Pe.Response=4]="Response",Pe[Pe.User=5]="User",Pe))();class Hf{constructor(t,n=200,r="OK"){this.headers=t.headers||new Ye,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class jf extends Hf{constructor(t={}){super(t),this.type=Pe.ResponseHeader}clone(t={}){return new jf({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class xo extends Hf{constructor(t={}){super(t),this.type=Pe.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new xo({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class _0 extends Hf{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Bf(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Or=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof rs)i=n;else{let l,u;l=o.headers instanceof Ye?o.headers:new Ye(o.headers),o.params&&(u=o.params instanceof ur?o.params:new ur({fromObject:o.params})),i=new rs(n,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=j(i).pipe(Po(l=>this.handler.handle(l)));if(n instanceof rs||"events"===o.observe)return s;const a=s.pipe(Hn(l=>l instanceof xo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(ne(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(ne(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(ne(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ne(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new ur).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Bf(o,r))}post(n,r,o={}){return this.request("POST",n,Bf(o,r))}put(n,r,o={}){return this.request("PUT",n,Bf(o,r))}}return e.\u0275fac=function(n){return new(n||e)(R(Ml))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function D0(e,t){return t(e)}function RP(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const w0=new O(""),os=new O(""),E0=new O("");function PP(){let e=null;return(t,n)=>(null===e&&(e=(I(w0,{optional:!0})??[]).reduceRight(RP,D0)),e(t,n))}let M0=(()=>{class e extends Ml{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(os),...this.injector.get(E0,[])]));this.chain=r.reduceRight((o,i)=>function OP(e,t,n){return(r,o)=>n.runInContext(()=>t(r,i=>e(i,o)))}(o,i,this.injector),D0)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(R($f),R(un))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const LP=/^\)\]\}',?\n/;let S0=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");const r=this.xhrFactory;return(r.\u0275loadImpl?xe(r.\u0275loadImpl()):j(null)).pipe(_n(()=>new be(i=>{const s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((y,S)=>s.setRequestHeader(y,S.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const y=n.detectContentTypeHeader();null!==y&&s.setRequestHeader("Content-Type",y)}if(n.responseType){const y=n.responseType.toLowerCase();s.responseType="json"!==y?y:"text"}const a=n.serializeBody();let l=null;const u=()=>{if(null!==l)return l;const y=s.statusText||"OK",S=new Ye(s.getAllResponseHeaders()),k=function VP(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||n.url;return l=new jf({headers:S,status:s.status,statusText:y,url:k}),l},c=()=>{let{headers:y,status:S,statusText:k,url:Y}=u(),ge=null;204!==S&&(ge=typeof s.response>"u"?s.responseText:s.response),0===S&&(S=ge?200:0);let qo=S>=200&&S<300;if("json"===n.responseType&&"string"==typeof ge){const r4=ge;ge=ge.replace(LP,"");try{ge=""!==ge?JSON.parse(ge):null}catch(o4){ge=r4,qo&&(qo=!1,ge={error:o4,text:ge})}}qo?(i.next(new xo({body:ge,headers:y,status:S,statusText:k,url:Y||void 0})),i.complete()):i.error(new _0({error:ge,headers:y,status:S,statusText:k,url:Y||void 0}))},d=y=>{const{url:S}=u(),k=new _0({error:y,status:s.status||0,statusText:s.statusText||"Unknown Error",url:S||void 0});i.error(k)};let f=!1;const h=y=>{f||(i.next(u()),f=!0);let S={type:Pe.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(S.total=y.total),"text"===n.responseType&&s.responseText&&(S.partialText=s.responseText),i.next(S)},p=y=>{let S={type:Pe.UploadProgress,loaded:y.loaded};y.lengthComputable&&(S.total=y.total),i.next(S)};let v;s.addEventListener("load",c),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",h),null!==a&&s.upload&&s.upload.addEventListener("progress",p));const w=()=>{v??=function HP(){const e=setTimeout(()=>{},$P);return()=>clearTimeout(e)}()},b=()=>{v?.()};return s.addEventListener("loadstart",w),s.addEventListener("loadend",b),s.send(a),i.next({type:Pe.Sent}),()=>{s.removeEventListener("loadstart",w),s.removeEventListener("loadend",b),s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",c),s.removeEventListener("timeout",d),v?.(),n.reportProgress&&(s.removeEventListener("progress",h),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}}return e.\u0275fac=function(n){return new(n||e)(R(H_))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const $P=2147483647,Uf=new O("XSRF_ENABLED"),I0=new O("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),T0=new O("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class A0{}let UP=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=A_(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(R(St),R(Mr),R(I0))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function zP(e,t){const n=e.url.toLowerCase();if(!I(Uf)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=I(A0).getToken(),o=I(T0);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Te=(()=>((Te=Te||{})[Te.Interceptors=0]="Interceptors",Te[Te.LegacyInterceptors=1]="LegacyInterceptors",Te[Te.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Te[Te.NoXsrfProtection=3]="NoXsrfProtection",Te[Te.JsonpSupport=4]="JsonpSupport",Te[Te.RequestsMadeViaParent=5]="RequestsMadeViaParent",Te))();function ko(e,t){return{\u0275kind:e,\u0275providers:t}}function GP(...e){const t=[Or,S0,M0,{provide:Ml,useExisting:M0},{provide:$f,useExisting:S0},{provide:os,useValue:zP,multi:!0},{provide:Uf,useValue:!0},{provide:A0,useClass:UP}];for(const n of e)t.push(...n.\u0275providers);return function uc(e){return{\u0275providers:e}}(t)}const N0=new O("LEGACY_INTERCEPTOR_FN");let qP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({providers:[GP(ko(Te.LegacyInterceptors,[{provide:N0,useFactory:PP},{provide:os,useExisting:N0,multi:!0}]))]}),e})();function J(e,t,n){const r=ce(e)||t||n?{next:e,error:t,complete:n}:e;return r?ze((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(He(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)}))}):pr}function de(e){return ze((t,n)=>{let i,r=null,o=!1;r=t.subscribe(He(n,void 0,void 0,s=>{i=At(e(s,de(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}const Pr_restServerUrl="http://localhost:8080";let xr=(()=>{class e{constructor(){this.messages=[]}add(n){this.messages.push((new Date).toLocaleTimeString()+") "+n)}clear(){this.messages=[]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Dn{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} 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(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`ChatMessagesService: ${t}`)}getChatMessages(){return this.http.get(Dn.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} messages`)),de(this.handleError("getChatMessages",[])))}addChatMessage(t,n){return this.http.post(Dn.REST_URL,{author:t,text:n},this.httpOptions).pipe(J(o=>this.log(`added message w/ id=${o.id}`)),de(this.handleError("addChatMessage")))}}Dn.REST_URL=Pr_restServerUrl+"/api/chat",Dn.\u0275fac=function(t){return new(t||Dn)(R(Or),R(xr))},Dn.\u0275prov=x({token:Dn,factory:Dn.\u0275fac,providedIn:"root"});const Fo="./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),zf=Array.from({length:64},(e,t)=>t),Sl=e=>Array(e).fill(-1),cr=[...Sl(46),0,1,...zf.slice(54,64),...Sl(7),...zf.slice(2,28),...Sl(6),...zf.slice(28,54),...Sl(5)],R0=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],O0=[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],P0=[1332899944,1700884034,1701343084,1684370003,1668446532,1869963892],Gf=(e,t)=>{if(t<=0||t>e.length)throw Error(`Illegal len: ${t}`);let r,o,n=0;const i=[];for(;n>2&63]),r=(3&r)<<4,n>=t){i.push(Fo[63&r]);break}if(o=255&e[n++],r|=o>>4&15,i.push(Fo[63&r]),r=(15&o)<<2,n>=t){i.push(Fo[63&r]);break}o=255&e[n++],r|=o>>6&3,i.push(Fo[63&r]),i.push(Fo[63&o])}return i.join("")},Il="object"==typeof process&&"edge"===process.env.NEXT_RUNTIME?setTimeout:"function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:setTimeout,ss=(e,t,n,r)=>{let o,i=e[t],s=e[t+1];return i^=n[0],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[1],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[2],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[3],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[4],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[5],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[6],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[7],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[8],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[9],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[10],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[11],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[12],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[13],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[14],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[15],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[16],e[t]=s^n[17],e[t+1]=i,e},Lo=(e,t)=>{let n=0;for(let r=0;r<4;++r)n=n<<8|255&e[t],t=(t+1)%e.length;return{key:n,offp:t}},x0=(e,t,n)=>{const r=t.length,o=n.length;let a,i=0,s=[0,0];for(let l=0;l{const i=P0.slice(),s=i.length;if(n<4||n>31){const f=new Error(`Illegal number of rounds (4-31): ${n}`);if(!1===r)return Promise.reject(f);throw f}if(16!==t.length){const f=new Error(`Illegal salt length: ${t.length} != 16`);if(!1===r)return Promise.reject(f);throw f}n=1<>>0;let a,l,c,u=0;Int32Array?(a=new Int32Array(R0),l=new Int32Array(O0)):(a=R0.slice(),l=O0.slice()),((e,t,n,r)=>{const o=n.length,i=r.length;let l,s=0,a=[0,0];for(let u=0;u{if(o&&o(u/n),!(u>1;c++)ss(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=>Il(()=>{d().then(f)}))};if(!1===r)return d();{let f;for(;;)if(typeof(f=d())<"u")return f||[]}},Wf=(e=10)=>{if("number"!=typeof e)throw Error("Illegal arguments: "+typeof e);e<4?e=4:e>31&&(e=31);const t=[];return t.push("$2a$"),e<10&&t.push("0"),t.push(e.toString()),t.push("$"),t.push(Gf((e=>{try{let t;t=typeof window<"u"?window.crypto??window.msCrypto:globalThis.crypto;const n=new Uint32Array(16);return t?.getRandomValues(n),Array.from(n)}catch{throw Error("WebCryptoAPI is not available")}})(),16)),t.join("")};const F0=(e,t=10)=>{if("number"==typeof t&&(t=Wf(t)),"string"!=typeof e||"string"!=typeof t)throw Error("Illegal arguments: "+typeof e+", "+typeof t);return function qf(e,t,n,r){if("string"!=typeof e||"string"!=typeof t){const h=new Error("Invalid string / salt: Not a string");if(!1===n)return Promise.reject(h);throw h}let o,i;if("$"!==t.charAt(0)||"2"!==t.charAt(1)){const h=new Error("Invalid salt version: "+t.substring(0,2));if(!1===n)return Promise.reject(h);throw h}if("$"===t.charAt(2))o="\0",i=3;else{if(o=t.charAt(2),"a"!==o&&"b"!==o&&"y"!==o||"$"!==t.charAt(3)){const h=Error("Invalid salt revision: "+t.substring(2,4));if(!1===n)return Promise.reject(h);throw h}i=4}if(t.charAt(i+2)>"$"){const h=new Error("Missing salt rounds");if(!1===n)return Promise.reject(h);throw h}const l=10*parseInt(t.substring(i,i+1),10)+parseInt(t.substring(i+1,i+2),10),u=t.substring(i+3,i+25),c=(e=>{const t=[];let n=0;return((e,t)=>{((e,t)=>{let n,r=null;for(;null!==(n=null!==r?r:e());)n>=55296&&n<=57343&&null!==(r=e())&&r>=56320&&r<=57343?(t(1024*(n-55296)+r-56320+65536),r=null):t(n);null!==r&&t(r)})(e,function(n){((e,t)=>{let n=null;for("number"==typeof e&&(n=e,e=()=>null);null!==n||null!==(n=e());)n<128?t(127&n):n<2048?(t(n>>6&31|192),t(63&n|128)):n<65536?(t(n>>12&15|224),t(n>>6&63|128),t(63&n|128)):(t(n>>18&7|240),t(n>>12&63|128),t(n>>6&63|128),t(63&n|128)),n=null})(n,t)})})(()=>n>=e.length?null:e.charCodeAt(n++),r=>{t.push(r)}),t})(e+=o>="a"?"\0":""),d=((e,t)=>{const n=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>=n)||(c=e.charCodeAt(r++),a=c>>0,u|=(60&a)>>2,d.push(String.fromCharCode(u)),++o>=16||r>=n)));)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 p=[];return p.push("$2"),o>="a"&&p.push(o),p.push("$"),l<10&&p.push("0"),p.push(l.toString()),p.push("$"),p.push(Gf(d,d.length)),p.push(Gf(h,4*P0.length-1)),p.join("")};return!1===n?k0(c,d,l,!1,r).then(h=>f(h)):f(k0(c,d,l,!0,r))}(e,t,!0)};class Xt extends bn{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Zf(...e){const t=Qo(e),n=Uh(e),{args:r,keys:o}=lD(e);if(0===r.length)return xe([],t);const i=new be(function ux(e,t,n=pr){return r=>{L0(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let l=0;l{const u=xe(e[l],t);let c=!1;u.subscribe(He(r,d=>{i[l]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>cD(o,s):pr));return n?i.pipe(uD(n)):i}function L0(e,t,n){e?Sn(n,e,t):t()}const Tl=Zo(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Yf(...e){return function cx(){return Hr(1)}()(xe(e,Qo(e)))}function V0(e){return new be(t=>{At(e()).subscribe(t)})}function as(e,t){const n=ce(e)?e:()=>e,r=o=>o.error(n());return new be(t?o=>t.schedule(r,0,o):r)}function Xf(){return ze((e,t)=>{let n=null;e._refCount++;const r=He(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class $0 extends be{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Ah(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Tt;const n=this.getSubject();t.add(this.source.subscribe(He(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Tt.EMPTY)}return t}refCount(){return Xf()(this)}}function Vo(e){return e<=0?()=>en:ze((t,n)=>{let r=0;t.subscribe(He(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Al(e){return ze((t,n)=>{let r=!1;t.subscribe(He(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function H0(e=fx){return ze((t,n)=>{let r=!1;t.subscribe(He(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function fx(){return new Tl}function kr(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Hn((o,i)=>e(o,i,r)):pr,Vo(1),n?Al(t):H0(()=>new Tl))}function Qf(e){return e<=0?()=>en:ze((t,n)=>{let r=[];t.subscribe(He(n,o=>{r.push(o),e{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Kf(e){return ze((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const q="primary",ls=Symbol("RouteTitle");class yx{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function $o(e){return new yx(e)}function vx(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[i]===o)}return e===t}function B0(e){return e.length>0?e[e.length-1]:null}function dr(e){return function lx(e){return!!e&&(e instanceof be||ce(e.lift)&&ce(e.subscribe))}(e)?e:Fi(e)?xe(Promise.resolve(e)):j(e)}const _x={exact:function G0(e,t,n){if(!Fr(e.segments,t.segments)||!Nl(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!G0(e.children[r],t.children[r],n))return!1;return!0},subset:W0},U0={exact:function Dx(e,t){return wn(e,t)},subset:function wx(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>j0(e[n],t[n]))},ignored:()=>!0};function z0(e,t,n){return _x[n.paths](e.root,t.root,n.matrixParams)&&U0[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function W0(e,t,n){return q0(e,t,t.segments,n)}function q0(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!Fr(o,n)||t.hasChildren()||!Nl(o,n,r))}if(e.segments.length===n.length){if(!Fr(e.segments,n)||!Nl(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!W0(e.children[o],t.children[o],r))return!1;return!0}{const o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!(Fr(e.segments,o)&&Nl(e.segments,o,r)&&e.children[q])&&q0(e.children[q],t,i,r)}}function Nl(e,t,n){return t.every((r,o)=>U0[n](e[o].parameters,r.parameters))}class Ho{constructor(t=new ue([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=$o(this.queryParams)),this._queryParamMap}toString(){return bx.serialize(this)}}class ue{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Rl(this)}}class us{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=$o(this.parameters)),this._parameterMap}toString(){return X0(this)}}function Fr(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let cs=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return new Jf},providedIn:"root"}),e})();class Jf{parse(t){const n=new Fx(t);return new Ho(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${ds(t.root,!0)}`,r=function Tx(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${Ol(n)}=${Ol(o)}`).join("&"):`${Ol(n)}=${Ol(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function Sx(e){return encodeURI(e)}(t.fragment)}`:""}`}}const bx=new Jf;function Rl(e){return e.segments.map(t=>X0(t)).join("/")}function ds(e,t){if(!e.hasChildren())return Rl(e);if(t){const n=e.children[q]?ds(e.children[q],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==q&&r.push(`${o}:${ds(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function Mx(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===q&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==q&&(n=n.concat(t(o,r)))}),n}(e,(r,o)=>o===q?[ds(e.children[q],!1)]:[`${o}:${ds(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[q]?`${Rl(e)}/${n[0]}`:`${Rl(e)}/(${n.join("//")})`}}function Z0(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ol(e){return Z0(e).replace(/%3B/gi,";")}function eh(e){return Z0(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Pl(e){return decodeURIComponent(e)}function Y0(e){return Pl(e.replace(/\+/g,"%20"))}function X0(e){return`${eh(e.path)}${function Ix(e){return Object.keys(e).map(t=>`;${eh(t)}=${eh(e[t])}`).join("")}(e.parameters)}`}const Ax=/^[^\/()?;#]+/;function th(e){const t=e.match(Ax);return t?t[0]:""}const Nx=/^[^\/()?;=#]+/,Ox=/^[^=?&#]+/,xx=/^[^&#]+/;class Fx{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ue([],{}):new ue([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[q]=new ue(t,n)),r}parseSegment(){const t=th(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new M(4009,!1);return this.capture(t),new us(Pl(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function Rx(e){const t=e.match(Nx);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=th(this.remaining);o&&(r=o,this.capture(r))}t[Pl(n)]=Pl(r)}parseQueryParam(t){const n=function Px(e){const t=e.match(Ox);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function kx(e){const t=e.match(xx);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=Y0(n),i=Y0(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=th(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new M(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=q);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[q]:new ue([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new M(4011,!1)}}function Q0(e){return e.segments.length>0?new ue([],{[q]:e}):e}function K0(e){const t={};for(const r of Object.keys(e.children)){const i=K0(e.children[r]);if(r===q&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function Lx(e){if(1===e.numberOfChildren&&e.children[q]){const t=e.children[q];return new ue(e.segments.concat(t.segments),t.children)}return e}(new ue(e.segments,t))}function Lr(e){return e instanceof Ho}function J0(e){let t;const o=Q0(function n(i){const s={};for(const l of i.children){const u=n(l);s[l.outlet]=u}const a=new ue(i.url,s);return i===e&&(t=a),a}(e.root));return t??o}function ew(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(0===t.length)return nh(o,o,o,n,r);const i=function $x(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new nw(!0,0,e);let t=0,n=!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?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new nw(n,t,r)}(t);if(i.toRoot())return nh(o,o,new ue([],{}),n,r);const s=function Hx(e,t,n){if(e.isAbsolute)return new kl(t,!0,0);if(!n)return new kl(t,!1,NaN);if(null===n.parent)return new kl(n,!0,0);const r=xl(e.commands[0])?0:1;return function jx(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new M(4005,!1);o=r.segments.length}return new kl(r,!1,o-i)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?hs(s.segmentGroup,s.index,i.commands):rw(s.segmentGroup,s.index,i.commands);return nh(o,s.segmentGroup,a,n,r)}function xl(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function fs(e){return"object"==typeof e&&null!=e&&e.outlets}function nh(e,t,n,r,o){let s,i={};r&&Object.entries(r).forEach(([l,u])=>{i[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===t?n:tw(e,t,n);const a=Q0(K0(s));return new Ho(a,i,o)}function tw(e,t,n){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===t?n:tw(i,t,n)}),new ue(e.segments,r)}class nw{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&xl(r[0]))throw new M(4003,!1);const o=r.find(fs);if(o&&o!==B0(r))throw new M(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class kl{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function rw(e,t,n){if(e||(e=new ue([],{})),0===e.segments.length&&e.hasChildren())return hs(e,t,n);const r=function Ux(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=e.segments[o],a=n[r];if(fs(a))break;const l=`${a}`,u=r0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!iw(l,u,s))return i;r+=2}else{if(!iw(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=rw(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new ue(e.segments,o)}}function rh(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=rh(new ue([],{}),0,r))}),t}function ow(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function iw(e,t,n){return e==n.path&&wn(t,n.parameters)}const ps="imperative";class En{constructor(t,n){this.id=t,this.url=n}}class oh extends En{constructor(t,n,r="imperative",o=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Vr extends En{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Fl extends En{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class gs extends En{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=16}}class ih extends En{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Gx extends En{constructor(t,n,r,o){super(t,n),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 Wx extends En{constructor(t,n,r,o){super(t,n),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 qx extends En{constructor(t,n,r,o,i){super(t,n),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 Zx extends En{constructor(t,n,r,o){super(t,n),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 Yx extends En{constructor(t,n,r,o){super(t,n),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 Xx{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Qx{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Kx{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jx{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ek{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tk{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sw{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class nk{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ms,this.attachRef=null}}let ms=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new nk,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class aw{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=sh(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=sh(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=ah(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return ah(t,this._root).map(n=>n.value)}}function sh(e,t){if(e===t.value)return t;for(const n of t.children){const r=sh(e,n);if(r)return r}return null}function ah(e,t){if(e===t.value)return[t];for(const n of t.children){const r=ah(e,n);if(r.length)return r.unshift(t),r}return[]}class jn{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function jo(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class lw extends aw{constructor(t,n){super(t),this.snapshot=n,lh(this,t)}toString(){return this.snapshot.toString()}}function uw(e,t){const n=function rk(e,t){const s=new Ll([],{},{},"",{},q,t,null,{});return new dw("",new jn(s,[]))}(0,t),r=new Xt([new us("",{})]),o=new Xt({}),i=new Xt({}),s=new Xt({}),a=new Xt(""),l=new Bn(r,o,s,a,i,q,t,n.root);return l.snapshot=n.root,new lw(new jn(l,[]),n)}class Bn{constructor(t,n,r,o,i,s,a,l){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ne(u=>u[ls]))??j(void 0),this.url=t,this.params=n,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(ne(t=>$o(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ne(t=>$o(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function cw(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function ok(e){return e.reduce((t,n)=>({params:{...t.params,...n.params},data:{...t.data,...n.data},resolve:{...n.data,...t.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Ll{get title(){return this.data?.[ls]}constructor(t,n,r,o,i,s,a,l,u){this.url=t,this.params=n,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=$o(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=$o(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dw extends aw{constructor(t,n){super(n),this.url=t,lh(this,n)}toString(){return fw(this._root)}}function lh(e,t){t.value._routerState=e,t.children.forEach(n=>lh(e,n))}function fw(e){const t=e.children.length>0?` { ${e.children.map(fw).join(", ")} } `:"";return`${e.value}${t}`}function uh(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,wn(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),wn(t.params,n.params)||e.paramsSubject.next(n.params),function Cx(e,t){if(e.length!==t.length)return!1;for(let n=0;nwn(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||ch(e.parent,t.parent))}let dh=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=q,this.activateEvents=new Me,this.deactivateEvents=new Me,this.attachEvents=new Me,this.detachEvents=new Me,this.parentContexts=I(ms),this.location=I(Gt),this.changeDetector=I(Ya),this.environmentInjector=I(un),this.inputBinder=I(Vl,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.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(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new M(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new M(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new M(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new M(4013,!1);this._activatedRoute=n;const o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new ik(n,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(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ot]}),e})();class ik{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===Bn?this.route:t===ms?this.childContexts:this.parent.get(t,n)}}const Vl=new O("");let hw=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,o=Zf([r.queryParams,r.params,r.data]).pipe(_n(([i,s,a],l)=>(a={...i,...s,...a},0===l?j(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const s=function YN(e){const t=re(e);if(!t)return null;const n=new Ni(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone}}}(r.component);if(s)for(const{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,o)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function ys(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function ak(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return ys(e,r,o);return ys(e,r)})}(e,t,n);return new jn(r,o)}{if(e.shouldAttach(t.value)){const i=e.retrieve(t.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ys(e,a)),s}}const r=function lk(e){return new Bn(new Xt(e.url),new Xt(e.params),new Xt(e.queryParams),new Xt(e.fragment),new Xt(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>ys(e,i));return new jn(r,o)}}const fh="ngNavigationCancelingError";function pw(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=Lr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=gw(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function gw(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[fh]=!0,r.cancellationCode=t,n&&(r.url=n),r}function mw(e){return yw(e)&&Lr(e.url)}function yw(e){return e&&e[fh]}let vw=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=_t({type:e,selectors:[["ng-component"]],standalone:!0,features:[Uv],decls:1,vars:0,template:function(n,r){1&n&&oe(0,"router-outlet")},dependencies:[dh],encapsulation:2}),e})();function hh(e){const t=e.children&&e.children.map(hh),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==q&&(n.component=vw),n}function Qt(e){return e.outlet||q}function vs(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class gk{constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),uh(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=jo(n);t.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(t,n,r){const o=t.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=jo(t);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(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=jo(t);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(t,n,r){const o=jo(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new tk(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Jx(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(uh(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,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),uh(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=vs(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class Cw{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class $l{constructor(t,n){this.component=t,this.route=n}}function mk(e,t,n){const r=e._root;return Cs(r,t?t._root:null,n,[r.value])}function Bo(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function P1(e){return null!==Is(e)}(e)?t.get(e):e:r}function Cs(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=jo(t);return e.children.forEach(s=>{(function vk(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function Ck(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Fr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Fr(e.url,t.url)||!wn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ch(e,t)||!wn(e.queryParams,t.queryParams);default:return!ch(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Cw(r)):(i.data=s.data,i._resolvedData=s._resolvedData),Cs(e,t,i.component?a?a.children:null:n,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new $l(a.outlet.component,s))}else s&&_s(t,a,o),o.canActivateChecks.push(new Cw(r)),Cs(e,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>_s(a,n.getContext(s),o)),o}function _s(e,t,n){const r=jo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{_s(s,o.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new $l(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function Ds(e){return"function"==typeof e}function _w(e){return e instanceof Tl||"EmptyError"===e?.name}const Hl=Symbol("INITIAL_VALUE");function Uo(){return _n(e=>Zf(e.map(t=>t.pipe(Vo(1),function dx(...e){const t=Qo(e);return ze((n,r)=>{(t?Yf(e,n,t):Yf(e,n)).subscribe(r)})}(Hl)))).pipe(ne(t=>{for(const n of t)if(!0!==n){if(n===Hl)return Hl;if(!1===n||n instanceof Ho)return n}return!0}),Hn(t=>t!==Hl),Vo(1)))}function Dw(e){return function Kw(...e){return Sh(e)}(J(t=>{if(Lr(t))throw pw(0,t)}),ne(t=>!0===t))}class jl{constructor(t){this.segmentGroup=t||null}}class ww{constructor(t){this.urlTree=t}}function zo(e){return as(new jl(e))}function Ew(e){return as(new ww(e))}class $k{constructor(t,n){this.urlSerializer=t,this.urlTree=n}noMatchError(t){return new M(4002,!1)}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return j(r);if(o.numberOfChildren>1||!o.children[q])return as(new M(4e3,!1));o=o.children[q]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,o){const i=this.createSegmentGroup(t,n.root,r,o);return new Ho(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Object.entries(t).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){const i=this.createSegments(t,n.segments,r,o);let s={};return Object.entries(n.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,r,o)}),new ue(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){const o=r[n.path.substring(1)];if(!o)throw new M(4001,!1);return o}findOrReturn(t,n){let r=0;for(const o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}}const ph={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Hk(e,t,n,r,o){const i=gh(e,t,n);return i.matched?(r=function uk(e,t){return e.providers&&!e._injector&&(e._injector=cd(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function Fk(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?j(o.map(s=>{const a=Bo(s,e);return dr(function bk(e){return e&&Ds(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(Uo(),Dw()):j(!0)}(r,t,n).pipe(ne(s=>!0===s?i:{...ph}))):j(i)}function gh(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...ph}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||vx)(n,e,t);if(!o)return{...ph};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:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Mw(e,t,n,r){return n.length>0&&function Uk(e,t,n){return n.some(r=>Bl(e,t,r)&&Qt(r)!==q)}(e,n,r)?{segmentGroup:new ue(t,Bk(r,new ue(n,e.children))),slicedSegments:[]}:0===n.length&&function zk(e,t,n){return n.some(r=>Bl(e,t,r))}(e,n,r)?{segmentGroup:new ue(e.segments,jk(e,0,n,r,e.children)),slicedSegments:n}:{segmentGroup:new ue(e.segments,e.children),slicedSegments:n}}function jk(e,t,n,r,o){const i={};for(const s of r)if(Bl(e,n,s)&&!o[Qt(s)]){const a=new ue([],{});i[Qt(s)]=a}return{...o,...i}}function Bk(e,t){const n={};n[q]=t;for(const r of e)if(""===r.path&&Qt(r)!==q){const o=new ue([],{});n[Qt(r)]=o}return n}function Bl(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class Zk{constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new $k(this.urlSerializer,this.urlTree)}noMatchError(t){return new M(4002,!1)}recognize(){const t=Mw(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,q).pipe(de(n=>{if(n instanceof ww)return this.allowRedirects=!1,this.urlTree=n.urlTree,this.match(n.urlTree);throw n instanceof jl?this.noMatchError(n):n}),ne(n=>{const r=new Ll([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},q,this.rootComponentType,null,{}),o=new jn(r,n),i=new dw("",o),s=function Vx(e,t,n=null,r=null){return ew(J0(e),t,n,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(t){return this.processSegmentGroup(this.injector,this.config,t.root,q).pipe(de(r=>{throw r instanceof jl?this.noMatchError(r):r}))}inheritParamsAndData(t){const n=t.value,r=cw(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,o,!0)}processChildren(t,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return xe(o).pipe(Po(i=>{const s=r.children[i],a=function hk(e,t){const n=e.filter(r=>Qt(r)===t);return n.push(...e.filter(r=>Qt(r)!==t)),n}(n,i);return this.processSegmentGroup(t,a,s,i)}),function px(e,t){return ze(function hx(e,t,n,r,o){return(i,s)=>{let a=n,l=t,u=0;i.subscribe(He(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,t,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),Al(null),function gx(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Hn((o,i)=>e(o,i,r)):pr,Qf(1),n?Al(t):H0(()=>new Tl))}(),Ge(i=>{if(null===i)return zo(r);const s=bw(i);return function Yk(e){e.sort((t,n)=>t.value.outlet===q?-1:n.value.outlet===q?1:t.value.outlet.localeCompare(n.value.outlet))}(s),j(s)}))}processSegment(t,n,r,o,i,s){return xe(n).pipe(Po(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,o,i,s).pipe(de(l=>{if(l instanceof jl)return j(null);throw l}))),kr(a=>!!a),de(a=>{if(_w(a))return function Wk(e,t,n){return 0===t.length&&!e.children[n]}(r,o,i)?j([]):zo(r);throw a}))}processSegmentAgainstRoute(t,n,r,o,i,s,a){return function Gk(e,t,n,r){return!!(Qt(e)===r||r!==q&&Bl(t,n,e))&&("**"===e.path||gh(t,e,n).matched)}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,o,r,i,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s):zo(o):zo(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o){const i=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?Ew(i):this.applyRedirects.lineralizeSegments(r,i).pipe(Ge(s=>{const a=new ue(s,{});return this.processSegment(t,n,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=gh(n,o,i);if(!a)return zo(n);const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?Ew(d):this.applyRedirects.lineralizeSegments(o,d).pipe(Ge(f=>this.processSegment(t,r,n,f.concat(u),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a;if("**"===r.path){const l=o.length>0?B0(o).parameters:{};a=j({snapshot:new Ll(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Sw(r),Qt(r),r.component??r._loadedComponent??null,r,Iw(r)),consumedSegments:[],remainingSegments:[]}),n.children={}}else a=Hk(n,r,o,t).pipe(ne(({matched:l,consumedSegments:u,remainingSegments:c,parameters:d})=>l?{snapshot:new Ll(u,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Sw(r),Qt(r),r.component??r._loadedComponent??null,r,Iw(r)),consumedSegments:u,remainingSegments:c}:null));return a.pipe(_n(l=>null===l?zo(n):this.getChildConfig(t=r._injector??t,r,o).pipe(_n(({routes:u})=>{const c=r._loadedInjector??t,{snapshot:d,consumedSegments:f,remainingSegments:h}=l,{segmentGroup:p,slicedSegments:v}=Mw(n,f,h,u);if(0===v.length&&p.hasChildren())return this.processChildren(c,u,p).pipe(ne(b=>null===b?null:[new jn(d,b)]));if(0===u.length&&0===v.length)return j([new jn(d,[])]);const w=Qt(r)===i;return this.processSegment(c,u,p,v,w?q:i,!0).pipe(ne(b=>[new jn(d,b)]))}))))}getChildConfig(t,n,r){return n.children?j({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?j({routes:n._loadedRoutes,injector:n._loadedInjector}):function kk(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?j(!0):j(o.map(s=>{const a=Bo(s,e);return dr(function Dk(e){return e&&Ds(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(Uo(),Dw())}(t,n,r).pipe(Ge(o=>o?this.configLoader.loadChildren(t,n).pipe(J(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function Vk(e){return as(gw(!1,3))}())):j({routes:[],injector:t})}}function Xk(e){const t=e.value.routeConfig;return t&&""===t.path}function bw(e){const t=[],n=new Set;for(const r of e){if(!Xk(r)){t.push(r);continue}const o=t.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):t.push(r)}for(const r of n){const o=bw(r.children);t.push(new jn(r.value,o))}return t.filter(r=>!n.has(r))}function Sw(e){return e.data||{}}function Iw(e){return e.resolve||{}}function Tw(e){return"string"==typeof e.title||null===e.title}function mh(e){return _n(t=>{const n=e(t);return n?xe(n).pipe(ne(()=>t)):j(t)})}const Go=new O("ROUTES");let yh=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=I(OC)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return j(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=dr(n.loadComponent()).pipe(ne(Aw),J(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Kf(()=>{this.componentLoaders.delete(n)})),o=new $0(r,()=>new bn).pipe(Xf());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return j({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(ne(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u;return Array.isArray(a)?u=a:(l=a.create(n).injector,u=l.get(Go,[],L.Self|L.Optional).flat()),{routes:u.map(hh),injector:l}}),Kf(()=>{this.childrenLoaders.delete(r)})),s=new $0(i,()=>new bn).pipe(Xf());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return dr(n()).pipe(ne(Aw),Ge(r=>r instanceof jv||Array.isArray(r)?j(r):xe(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Aw(e){return function rF(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Ul=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new bn,this.configLoader=I(yh),this.environmentInjector=I(un),this.urlSerializer=I(cs),this.rootContexts=I(ms),this.inputBindingEnabled=null!==I(Vl,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>j(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new Qx(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new Xx(o))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n){return this.transitions=new Xt({id:0,currentUrlTree:n.currentUrlTree,currentRawUrl:n.currentUrlTree,extractedUrl:n.urlHandlingStrategy.extract(n.currentUrlTree),urlAfterRedirects:n.urlHandlingStrategy.extract(n.currentUrlTree),rawUrl:n.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ps,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Hn(r=>0!==r.id),ne(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),_n(r=>{let o=!1,i=!1;return j(r).pipe(J(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}}),_n(s=>{const a=n.browserUrlTree.toString(),l=!n.navigated||s.extractedUrl.toString()!==a||a!==n.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const c="";return this.events.next(new gs(s.id,n.serializeUrl(r.rawUrl),c,0)),n.rawUrlTree=s.rawUrl,s.resolve(null),en}if(n.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Nw(s.source)&&(n.browserUrlTree=s.extractedUrl),j(s).pipe(_n(c=>{const d=this.transitions?.getValue();return this.events.next(new oh(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?en:Promise.resolve(c)}),function Qk(e,t,n,r,o,i){return Ge(s=>function qk(e,t,n,r,o,i,s="emptyOnly"){return new Zk(e,t,n,r,o,s,i).recognize()}(e,t,n,r,s.extractedUrl,o,i).pipe(ne(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),J(c=>{if(r.targetSnapshot=c.targetSnapshot,r.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},"eager"===n.urlUpdateStrategy){if(!c.extras.skipLocationChange){const f=n.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);n.setBrowserUrl(f,c)}n.browserUrlTree=c.urlAfterRedirects}const d=new Gx(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}));if(l&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){const{id:c,extractedUrl:d,source:f,restoredState:h,extras:p}=s,v=new oh(c,this.urlSerializer.serialize(d),f,h);this.events.next(v);const w=uw(0,this.rootComponentType).snapshot;return j(r={...s,targetSnapshot:w,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new gs(s.id,n.serializeUrl(r.extractedUrl),c,1)),n.rawUrlTree=s.rawUrl,s.resolve(null),en}}),J(s=>{const a=new Wx(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),ne(s=>r={...s,guards:mk(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function Ik(e,t){return Ge(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?j({...n,guardsResult:!0}):function Tk(e,t,n,r){return xe(e).pipe(Ge(o=>function xk(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?j(i.map(a=>{const l=vs(t)??o,u=Bo(a,l);return dr(function Mk(e){return e&&Ds(e.canDeactivate)}(u)?u.canDeactivate(e,t,n,r):l.runInContext(()=>u(e,t,n,r))).pipe(kr())})).pipe(Uo()):j(!0)}(o.component,o.route,n,t,r)),kr(o=>!0!==o,!0))}(s,r,o,e).pipe(Ge(a=>a&&function _k(e){return"boolean"==typeof e}(a)?function Ak(e,t,n,r){return xe(t).pipe(Po(o=>Yf(function Rk(e,t){return null!==e&&t&&t(new Kx(e)),j(!0)}(o.route.parent,r),function Nk(e,t){return null!==e&&t&&t(new ek(e)),j(!0)}(o.route,r),function Pk(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function yk(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>V0(()=>j(s.guards.map(l=>{const u=vs(s.node)??n,c=Bo(l,u);return dr(function Ek(e){return e&&Ds(e.canActivateChild)}(c)?c.canActivateChild(r,e):u.runInContext(()=>c(r,e))).pipe(kr())})).pipe(Uo())));return j(i).pipe(Uo())}(e,o.path,n),function Ok(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return j(!0);const o=r.map(i=>V0(()=>{const s=vs(t)??n,a=Bo(i,s);return dr(function wk(e){return e&&Ds(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(kr())}));return j(o).pipe(Uo())}(e,o.route,n))),kr(o=>!0!==o,!0))}(r,i,e,t):j(a)),ne(a=>({...n,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),J(s=>{if(r.guardsResult=s.guardsResult,Lr(s.guardsResult))throw pw(0,s.guardsResult);const a=new qx(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Hn(s=>!!s.guardsResult||(n.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),mh(s=>{if(s.guards.canActivateChecks.length)return j(s).pipe(J(a=>{const l=new Zx(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),_n(a=>{let l=!1;return j(a).pipe(function Kk(e,t){return Ge(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return j(n);let i=0;return xe(o).pipe(Po(s=>function Jk(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!Tw(o)&&(i[ls]=o.title),function eF(e,t,n,r){const o=function tF(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return j({});const i={};return xe(o).pipe(Ge(s=>function nF(e,t,n,r){const o=vs(t)??r,i=Bo(e,o);return dr(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(kr(),J(a=>{i[s]=a}))),Qf(1),function mx(e){return ne(()=>e)}(i),de(s=>_w(s)?en:as(s)))}(i,e,t,r).pipe(ne(s=>(e._resolvedData=s,e.data=cw(e,n).resolve,o&&Tw(o)&&(e.data[ls]=o.title),null)))}(s.route,r,e,t)),J(()=>i++),Qf(1),Ge(s=>i===o.length?j(n):en))})}(n.paramsInheritanceStrategy,this.environmentInjector),J({next:()=>l=!0,complete:()=>{l||(n.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),J(a=>{const l=new Yx(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),mh(s=>{const a=l=>{const u=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(l.routeConfig).pipe(J(c=>{l.component=c}),ne(()=>{})));for(const c of l.children)u.push(...a(c));return u};return Zf(a(s.targetSnapshot.root)).pipe(Al(),Vo(1))}),mh(()=>this.afterPreactivation()),ne(s=>{const a=function sk(e,t,n){const r=ys(e,t._root,n?n._root:void 0);return new lw(r,t)}(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),J(s=>{n.currentUrlTree=s.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),n.routerState=s.targetRouterState,"deferred"===n.urlUpdateStrategy&&(s.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,s),n.browserUrlTree=s.urlAfterRedirects)}),((e,t,n,r)=>ne(o=>(new gk(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)))(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Vo(1),J({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,n.navigated=!0,this.events.next(new Vr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(n.currentUrlTree))),n.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),Kf(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),de(s=>{if(i=!0,yw(s)){mw(s)||(n.navigated=!0,n.restoreHistory(r,!0));const a=new Fl(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),mw(s)){const l=n.urlHandlingStrategy.merge(s.url,n.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||Nw(r.source)};n.scheduleNavigation(l,ps,null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const a=new ih(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(n.errorHandler(s))}catch(l){r.reject(l)}}return en}))}))}cancelNavigationTransition(n,r,o){const i=new Fl(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Nw(e){return e!==ps}let Rw=(()=>{class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===q);return r}getResolvedTitleForRoute(n){return n.data[ls]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(oF)},providedIn:"root"}),e})(),oF=(()=>{class e extends Rw{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(n){return new(n||e)(R(oD))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),iF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(aF)},providedIn:"root"}),e})();class sF{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let aF=(()=>{class e extends sF{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ze(e)))(r||e)}}(),e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const zl=new O("",{providedIn:"root",factory:()=>({})});let lF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(uF)},providedIn:"root"}),e})(),uF=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var It=(()=>((It=It||{})[It.COMPLETE=0]="COMPLETE",It[It.FAILED=1]="FAILED",It[It.REDIRECTING=2]="REDIRECTING",It))();function Ow(e,t){e.events.pipe(Hn(n=>n instanceof Vr||n instanceof Fl||n instanceof ih||n instanceof gs),ne(n=>n instanceof Vr||n instanceof gs?It.COMPLETE:n instanceof Fl&&(0===n.code||1===n.code)?It.REDIRECTING:It.FAILED),Hn(n=>n!==It.REDIRECTING),Vo(1)).subscribe(()=>{t()})}function cF(e){throw e}function dF(e,t,n){return t.parse("/")}const fF={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hF={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ue=(()=>{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=I(RC),this.isNgZoneEnabled=!1,this.options=I(zl,{optional:!0})||{},this.pendingTasks=I(p_),this.errorHandler=this.options.errorHandler||cF,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||dF,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=I(lF),this.routeReuseStrategy=I(iF),this.titleStrategy=I(Rw),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=I(Go,{optional:!0})?.flat()??[],this.navigationTransitions=I(Ul),this.urlSerializer=I(cs),this.location=I(qd),this.componentInputBindingEnabled=!!I(Vl,{optional:!0}),this.isNgZoneEnabled=I(ve)instanceof ve&&ve.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Ho,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=uw(0,null),this.navigationTransitions.setupNavigations(this).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId??0},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),ps,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,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(n);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(n){this.config=n.map(hh),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(n,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=J0(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return ew(d,n,c,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=Lr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,ps,null,r)}navigate(n,r={skipLocationChange:!1}){return function pF(e){for(let t=0;t{const i=n[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(n,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 Ow(this,()=>{Promise.resolve().then(()=>this.pendingTasks.remove(c))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);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(n,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(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Wo=(()=>{class e{constructor(n,r,o,i,s,a){this.router=n,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 bn;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof Vr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(n){this._preserveFragment=Ao(n)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(n){this._skipLocationChange=Ao(n)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(n){this._replaceUrl=Ao(n)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(n){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,o,i,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==n||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 n=null===this.href?null:function tm(e,t,n){return function Pb(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?em:lc}(t,n)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,n,r):o.removeAttribute(i,n)}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(n){return new(n||e)(D(Ue),D(Bn),function Qs(e){return function nM(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o{class e{get isActive(){return this._isActive}constructor(n,r,o,i,s){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Me,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof Vr&&this.update()})}ngAfterContentInit(){j(this.links.changes,j(null)).pipe(Hr()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=xe(n).pipe(Hr()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){const r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&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(n))})}isLinkActive(n){const r=function gF(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&n.isActive(o.urlTree,r)}hasActiveLinks(){const n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}}return e.\u0275fac=function(n){return new(n||e)(D(Ue),D(Mt),D(xn),D(Ya),D(Wo,8))},e.\u0275dir=H({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,r,o){if(1&n&&function dC(e,t,n,r){const o=ee();if(o.firstCreatePass){const i=qe();hC(o,new uC(t,n,r),i.index),function k2(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),2==(2&n)&&(o.staticContentQueries=!0)}fC(o,E(),n)}(o,Wo,5),2&n){let i;Gi(i=Wi())&&(r.links=i)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ot]}),e})();class xw{}let mF=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Hn(n=>n instanceof Vr),Po(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=cd(i.providers,n,`Route: ${i.path}`));const s=i._injector??n,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 xe(o).pipe(Hr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):j(null);const i=o.pipe(Ge(s=>null===s?j(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?xe([i,this.loader.loadComponent(r)]).pipe(Hr()):i})}}return e.\u0275fac=function(n){return new(n||e)(R(Ue),R(OC),R(un),R(xw),R(yh))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const vh=new O("");let kw=(()=>{class e{constructor(n,r,o,i,s={}){this.urlSerializer=n,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(n=>{n instanceof oh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Vr?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof gs&&0===n.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof sw&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new sw(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(n){!function km(){throw new Error("invalid")}()},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function Un(e,t){return{\u0275kind:e,\u0275providers:t}}function Lw(){const e=I(cn);return t=>{const n=e.get(To);if(t!==n.components[0])return;const r=e.get(Ue),o=e.get(Vw);1===e.get(Ch)&&r.initialNavigation(),e.get($w,null,L.Optional)?.setUpPreloading(),e.get(vh,null,L.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const Vw=new O("",{factory:()=>new bn}),Ch=new O("",{providedIn:"root",factory:()=>1}),$w=new O("");function _F(e){return Un(0,[{provide:$w,useExisting:mF},{provide:xw,useExisting:e}])}const Hw=new O("ROUTER_FORROOT_GUARD"),wF=[qd,{provide:cs,useClass:Jf},Ue,ms,{provide:Bn,useFactory:function Fw(e){return e.routerState.root},deps:[Ue]},yh,[]];function EF(){return new UC("Router",Ue)}let jw=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[wF,[],{provide:Go,multi:!0,useValue:n},{provide:Hw,useFactory:IF,deps:[[Ue,new ea,new ta]]},{provide:zl,useValue:r||{}},r?.useHash?{provide:rr,useClass:C_}:{provide:rr,useClass:v_},{provide:vh,useFactory:()=>{const e=I(m3),t=I(ve),n=I(zl),r=I(Ul),o=I(cs);return n.scrollOffset&&e.setOffset(n.scrollOffset),new kw(o,r,e,t,n)}},r?.preloadingStrategy?_F(r.preloadingStrategy).\u0275providers:[],{provide:UC,multi:!0,useFactory:EF},r?.initialNavigation?TF(r):[],r?.bindToComponentInputs?Un(8,[hw,{provide:Vl,useExisting:hw}]).\u0275providers:[],[{provide:Bw,useFactory:Lw},{provide:Fd,multi:!0,useExisting:Bw}]]}}static forChild(n){return{ngModule:e,providers:[{provide:Go,multi:!0,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)(R(Hw,8))},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({}),e})();function IF(e){return"guarded"}function TF(e){return["disabled"===e.initialNavigation?Un(3,[{provide:Id,multi:!0,useFactory:()=>{const t=I(Ue);return()=>{t.setUpLocationChangeListener()}}},{provide:Ch,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Un(2,[{provide:Ch,useValue:0},{provide:Id,multi:!0,deps:[cn],useFactory:t=>{const n=t.get(KN,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(Ue),i=t.get(Vw);Ow(o,()=>{r(!0)}),t.get(Ul).afterPreactivation=()=>(r(!0),i.closed?j(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const Bw=new O("");class tt{constructor(t,n,r){this.http=t,this.router=n,this.appMessageService=r,this.authenticated=!1,this.credentials={username:"",password:""},this.authority="none",this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} 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(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`LoginService: ${t}`)}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(t){this.log(`Authenticating: ${t.username}`),this.credentials=t;const n=new Ye({"Content-Type":"application/json",Accept:"application/json",Authorization:this.getAuthorizationToken()});return this.http.get(tt.REST_URL,{headers:n}).pipe(J(r=>this.authorizationRecieved(r)),de(this.handleError("authenticating user")))}logout(){this.authenticated=!1,this.log("Logged out"),this.router.navigateByUrl("/").then(()=>{})}authorizationRecieved(t){if(this.authenticated=!0,t.authorities){let n=t.authorities[0].authority;n=n.substring(n.indexOf("_")+1),this.authority=n}this.log(`Authenticated '${t.name}' as '${this.authority}'`)}changePassword(t){this.log("Changing password.");const n=Wf(10),r=F0(t,n);let o={};return o.username=this.credentials.username,o.password=r,this.http.post(tt.REST_URL,o,this.httpOptions).pipe(J(i=>this.authorizationRecieved(i)),de(this.handleError("changePassword")))}}tt.REST_URL=Pr_restServerUrl+"/api/user",tt.\u0275fac=function(t){return new(t||tt)(R(Or),R(Ue),R(xr))},tt.\u0275prov=x({token:tt,factory:tt.\u0275fac,providedIn:"root"});const NF=["scrollMe"];function RF(e,t){if(1&e&&(g(0,"li")(1,"div",9)(2,"span",10),C(3),m(),g(4,"span",11),C(5),Jn(6,"date"),m(),g(7,"span",12),C(8),m()(),g(9,"span",13),C(10),m()()),2&e){const n=t.$implicit;_(3),K(n.id),_(2),K(er(6,4,n.dateCreated,"medium")),_(3),K(n.author),_(2),K(n.text)}}function OF(e,t){if(1&e&&(g(0,"ul",6,7),Bt(2,RF,11,7,"li",8),m()),2&e){const n=pn();_(2),A("ngForOf",n.chatMessages)}}let _h=(()=>{class e{constructor(n,r){this.chatService=n,this.loginService=r,this.disableScrollDown=!1,this.chatMessages=[],this.newMessage="",this.serviceMessage="",this.errorMessage=""}getChatMessages(){this.serviceMessage="Loading chat ...",this.chatService.getChatMessages().subscribe({next:n=>{this.chatMessages=n,this.scrollToBottom(),this.serviceMessage="Loaded chat."},error:n=>{this.serviceMessage="",this.errorMessage=`Error loading chat: ${n.message}`}})}ngOnInit(){this.loginService.isAuthenticated()&&this.getChatMessages()}sendMessage(){this.serviceMessage="Sending message ...",this.chatService.addChatMessage(this.loginService.getUsername(),this.newMessage).subscribe({next:n=>{this.chatMessages.push(n),this.serviceMessage="Send OK.",this.disableScrollDown=!1,this.scrollToBottom()},error:n=>{this.serviceMessage="",this.errorMessage=`Error loading chat: ${n.message}`}}),this.newMessage=""}ngAfterViewChecked(){this.scrollToBottom()}scrollToBottom(){try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}}return e.\u0275fac=function(n){return new(n||e)(D(Dn),D(tt))},e.\u0275cmp=_t({type:e,selectors:[["app-chat"]],viewQuery:function(n,r){if(1&n&&Ga(NF,5),2&n){let o;Gi(o=Wi())&&(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(n,r){1&n&&(g(0,"p",0),C(1),m(),g(2,"p",1),C(3),m(),Bt(4,OF,3,1,"ul",2),g(5,"div",3)(6,"input",4),P("ngModelChange",function(i){return r.newMessage=i})("keydown.enter",function(){return r.sendMessage()}),m(),g(7,"button",5),P("click",function(){return r.sendMessage()}),C(8,"Send"),m(),g(9,"button",5),P("click",function(){return r.getChatMessages()}),C(10,"Reload"),m()()),2&n&&(A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(1),A("ngIf",r.chatMessages.length),_(2),A("ngModel",r.newMessage))},dependencies:[or,sf,Lt,Cn,Yt,No],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 PF=["scrollMe"];function xF(e,t){if(1&e&&(g(0,"p"),C(1),m()),2&e){const n=t.$implicit;_(1),K(n)}}function kF(e,t){if(1&e){const n=ki();g(0,"div",1)(1,"div")(2,"button",2),P("click",function(){return Zn(n),Yn(pn().appMessagesService.clear())}),C(3,"Clear messages"),m(),g(4,"h2"),C(5,"App messages"),m()(),g(6,"div",3,4),P("scroll",function(){return Zn(n),Yn(pn().onScroll())}),Bt(8,xF,2,1,"p",5),m()()}if(2&e){const n=pn();_(8),A("ngForOf",n.appMessagesService.messages)}}let FF=(()=>{class e{constructor(n){this.appMessagesService=n,this.disableScrollDown=!1}ngAfterViewChecked(){this.scrollToBottom()}onScroll(){let n=this.myScrollContainer.nativeElement;this.disableScrollDown=!(this.disableScrollDown&&n.scrollHeight-n.scrollTop===n.clientHeight)}scrollToBottom(){if(!this.disableScrollDown)try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}}return e.\u0275fac=function(n){return new(n||e)(D(xr))},e.\u0275cmp=_t({type:e,selectors:[["app-messages"]],viewQuery:function(n,r){if(1&n&&Ga(PF,5),2&n){let o;Gi(o=Wi())&&(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(n,r){1&n&&Bt(0,kF,9,1,"div",0),2&n&&A("ngIf",r.appMessagesService.messages.length)},dependencies:[or,sf],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 Uw=function(){return{exact:!0}};let LF=(()=>{class e{constructor(n){this.loginService=n,this.title="(dev)Familie TDS",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}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(n){0===n.button&&(n.preventDefault(),this.pos3=n.clientX,this.pos4=n.clientY,document.onmouseup=()=>this.endMouseDrag(),document.onmousemove=r=>this.mouseDragElement(r),this.target=document.getElementById("chatwindow"))}mouseDragElement(n){n.preventDefault(),this.pos1=this.pos3-n.clientX,this.pos2=this.pos4-n.clientY,this.pos3=n.clientX,this.pos4=n.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(n){n.preventDefault(),this.pos3=n.targetTouches[0].clientX,this.pos4=n.targetTouches[0].clientY,document.ontouchend=()=>this.endTouchDrag(),document.ontouchmove=r=>this.touchDragElement(r),this.target=document.getElementById("chatwindow")}touchDragElement(n){n.preventDefault(),this.pos1=this.pos3-n.targetTouches[0].clientX,this.pos2=this.pos4-n.targetTouches[0].clientY,this.pos3=n.targetTouches[0].clientX,this.pos4=n.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 n="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(n),r.classList.contains(n)?localStorage.setItem("theme",n):localStorage.setItem("theme","theme-light")}setTheme(n){const r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.add(n),localStorage.setItem("theme",n)}detectTheme(){const n=localStorage.getItem("theme");"theme-dark"!==n&&"theme-light"!==n?window.matchMedia("(prefers-color-scheme: dark)").matches?this.setTheme("theme-dark"):(window.matchMedia("(prefers-color-scheme: light)"),this.setTheme("theme-light")):this.setTheme(n)}ngOnInit(){this.detectTheme()}}return e.\u0275fac=function(n){return new(n||e)(D(tt))},e.\u0275cmp=_t({type:e,selectors:[["app-root"]],viewQuery:function(n,r){if(1&n&&Ga(_h,5),2&n){let o;Gi(o=Wi())&&(r.chatComponent=o.first)}},decls:46,vars:13,consts:[[3,"hidden"],["id","toggle-links",1,"big",3,"click"],["id","toggle-profile",1,"big","float-right",3,"click"],["id","links",3,"hidden"],["routerLinkActive","active-link","routerLink","/",3,"routerLinkActiveOptions"],["routerLinkActive","active-link","routerLink","/checklists"],["routerLinkActive","active-link","routerLink","/contacts"],["routerLinkActive","active-link","routerLink","/todo"],["id","profile",1,"float-right",3,"hidden"],[3,"click"],["title","Dark theme on/off",3,"click"],["routerLinkActive","active-link","routerLink","/profile"],["id","logout",3,"click"],[1,"float-right"],["routerLinkActive","active-link","routerLink","/login"],["id","tools",3,"hidden"],["id","toolbar"],["id","chatwindow",3,"hidden"],["id","chattitlebar",3,"mousedown","touchstart"],[1,"close-button",3,"click"],["id","chatcontent"],[1,"footer",3,"hidden"]],template:function(n,r){1&n&&(g(0,"nav")(1,"span",0)(2,"button",1),P("click",function(){return r.toggleLinks()}),C(3,"\u2261"),m(),g(4,"button",2),P("click",function(){return r.toggleProfile()}),C(5),m(),g(6,"div")(7,"div",3)(8,"a",4),C(9,"Home"),m(),g(10,"a",5),C(11,"Checklists"),m(),g(12,"a",6),C(13,"Contacts"),m(),g(14,"a",7),C(15,"Todo"),m()(),g(16,"div",8)(17,"button",9),P("click",function(){return r.toggleChatHidden()}),C(18,"Toggle Chat"),m(),g(19,"button",10),P("click",function(){return r.toggleTheme()}),C(20,"\u2600 Theme"),m(),g(21,"a",11),C(22,"Profile"),m(),g(23,"a",12),P("click",function(){return r.logout()}),C(24,"Logout"),m()()()(),g(25,"span",0)(26,"h1",13),C(27),m(),g(28,"a",4),C(29,"Home"),m(),g(30,"a",14),C(31,"Login"),m()()(),g(32,"div",15)(33,"div",16)(34,"button",9),P("click",function(){return r.toggleChatHidden()}),C(35,"Toggle Chat"),m()(),g(36,"div",17)(37,"div",18),P("mousedown",function(i){return r.startMouseDragging(i)})("touchstart",function(i){return r.startTouchDragging(i)}),C(38," Chat"),g(39,"button",19),P("click",function(){return r.toggleChatHidden()}),C(40,"\u2716"),m()(),g(41,"div",20),oe(42,"app-chat"),m()()(),g(43,"main"),oe(44,"router-outlet"),m(),oe(45,"app-messages",21)),2&n&&(_(1),A("hidden",!r.isAuthenticated()),_(4),K(r.username()),_(2),A("hidden",r.isLinksHidden()),_(1),A("routerLinkActiveOptions",fd(11,Uw)),_(8),A("hidden",r.isProfileHidden()),_(9),A("hidden",r.isAuthenticated()),_(2),K(r.title),_(1),A("routerLinkActiveOptions",fd(12,Uw)),_(4),A("hidden",!r.isAuthenticated()),_(4),A("hidden",r.isChatHidden()),_(9),A("hidden",r.isAppMessagesHidden()))},dependencies:[dh,Wo,Pw,FF,_h],styles:["#toggle-links[_ngcontent-%COMP%]{border:none;background:none;padding:unset;margin:0}#toggle-profile[_ngcontent-%COMP%]{border:none;background:none;padding:unset}.big[_ngcontent-%COMP%]{font-size:x-large}.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}#logout[_ngcontent-%COMP%]{color:#ef4040;cursor:pointer}#logout[_ngcontent-%COMP%]:hover{background-color:#604040}#toolbar[_ngcontent-%COMP%]{margin-top:-.4em;margin-bottom:-.4em;margin-left:.2em}#toolbar[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{border:1px solid #40404080}#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 Kt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} 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(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`TodoService: ${t}`)}getTodos(){return this.http.get(Kt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} todos`)),de(this.handleError("getTodos",[])))}addTodo(t){return this.http.post(Kt.REST_URL,{text:t},this.httpOptions).pipe(J(r=>this.log(`added todo w/ id=${r.id}`)),de(this.handleError("addTodo")))}deleteTodo(t){return this.http.delete(`${Kt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted todo id=${t}`)),de(this.handleError("deleteTodo")))}}function VF(e,t){if(1&e){const n=ki();g(0,"li")(1,"div",8)(2,"span",9),C(3),m(),g(4,"span",10),C(5),Jn(6,"date"),m(),g(7,"button",11),P("click",function(){const i=Zn(n).$implicit;return Yn(pn().delete(i))}),C(8,"x"),m()(),g(9,"span",12),C(10),m()()}if(2&e){const n=t.$implicit;_(3),K(n.id),_(2),K(er(6,3,n.dateCreated,"medium")),_(5),K(n.text)}}Kt.REST_URL=Pr_restServerUrl+"/api/todos",Kt.\u0275fac=function(t){return new(t||Kt)(R(Or),R(xr))},Kt.\u0275prov=x({token:Kt,factory:Kt.\u0275fac,providedIn:"root"});let $F=(()=>{class e{constructor(n){this.todoService=n,this.todos=[],this.newTodo="",this.serviceMessage="",this.errorMessage=""}getTodos(){this.serviceMessage="Loading todos ...",this.todoService.getTodos().subscribe({next:n=>{this.todos=n,this.serviceMessage=0==n.length?"Nothing to do!":""},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading todos: ${n.message}`}})}ngOnInit(){this.getTodos()}sendTodo(){this.serviceMessage="Adding todo ...",this.todoService.addTodo(this.newTodo).subscribe({next:n=>{this.todos.push(n),this.newTodo="",this.serviceMessage="Added todo."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while adding todo: ${n.message}`}})}delete(n){this.serviceMessage="Removing todo ...",this.todoService.deleteTodo(n.id).subscribe({next:()=>{this.todos=this.todos.filter(r=>r!==n),this.serviceMessage="Removed todo."},error:r=>{this.serviceMessage="",this.errorMessage=`Error while removing todo: ${r.message}`}})}}return e.\u0275fac=function(n){return new(n||e)(D(Kt))},e.\u0275cmp=_t({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(n,r){1&n&&(g(0,"h2"),C(1,"Your todos"),m(),g(2,"p",0),C(3),m(),g(4,"p",1),C(5),m(),g(6,"ol",2),Bt(7,VF,11,6,"li",3),m(),g(8,"h2"),C(9,"New Todo:"),m(),g(10,"div",4)(11,"div")(12,"label",5),C(13,"Text:"),m(),g(14,"input",6),P("ngModelChange",function(i){return r.newTodo=i})("keydown.enter",function(){return r.sendTodo()}),m(),g(15,"button",7),P("click",function(){return r.sendTodo()}),C(16,"Send"),m()()()),2&n&&(_(2),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(2),A("ngForOf",r.todos),_(7),A("ngModel",r.newTodo))},dependencies:[or,Lt,Cn,Yt,No],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 Jt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} 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(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`NewsService: ${t}`)}getNewsPosts(){return this.http.get(Jt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} news posts`)),de(this.handleError("getNews",[])))}addNewsPost(t,n){return this.http.post(Jt.REST_URL,{author:t,text:n},this.httpOptions).pipe(J(o=>this.log(`added message w/ id=${o.id}`)),de(this.handleError("addNewsPost")))}deleteNewsPost(t){return this.http.delete(`${Jt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted newspost id=${t}`)),de(this.handleError("deleteNewsPost")))}}function HF(e,t){if(1&e){const n=ki();g(0,"div",8)(1,"span")(2,"b"),C(3),m(),C(4),Jn(5,"date"),m(),g(6,"button",9),P("click",function(){const i=Zn(n).$implicit;return Yn(pn().delete(i))}),C(7,"x"),m(),g(8,"p"),C(9),m()()}if(2&e){const n=t.$implicit,r=pn();_(3),K(n.author),_(1),Be(" posted on ",er(5,4,n.dateCreated,"medium"),""),_(2),A("hidden",!r.isAdmin()),_(3),K(n.text)}}Jt.REST_URL=Pr_restServerUrl+"/api/news",Jt.\u0275fac=function(t){return new(t||Jt)(R(Or),R(xr))},Jt.\u0275prov=x({token:Jt,factory:Jt.\u0275fac,providedIn:"root"});let jF=(()=>{class e{constructor(n,r){this.loginService=n,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:n=>{this.newsMessages=n,this.serviceMessage=""},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading news: ${n.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:n=>{this.newsMessages.push(n),this.serviceMessage="Added news."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while adding news: ${n.message}`}}),this.newNewsMessage="")}delete(n){this.serviceMessage="Removing newspost ...",this.newsService.deleteNewsPost(n.id).subscribe({next:()=>{this.newsMessages=this.newsMessages.filter(r=>r!==n),this.serviceMessage="Removed newspost."},error:r=>{this.serviceMessage="",this.errorMessage=`Error while removing newspost: ${r.message}`}})}}return e.\u0275fac=function(n){return new(n||e)(D(tt),D(Jt))},e.\u0275cmp=_t({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(n,r){1&n&&(g(0,"span",0)(1,"p"),C(2),m(),g(3,"h3"),C(4,"News"),m(),g(5,"p",0),C(6),m(),g(7,"p",1),C(8),m(),g(9,"div",2),Bt(10,HF,10,7,"div",3),m(),g(11,"div",4)(12,"h3"),C(13,"Add news:"),m(),g(14,"label",5),C(15,"news:"),m(),g(16,"input",6),P("ngModelChange",function(i){return r.newNewsMessage=i})("keydown.enter",function(){return r.addNews()}),m(),g(17,"button",7),P("click",function(){return r.addNews()}),C(18,"Add"),m()()(),g(19,"p",0),C(20,"Welcome to our family site! Please login."),m()),2&n&&(A("hidden",!r.isAuthenticated()),_(2),Be("Welcome, ",r.username(),"!"),_(3),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(2),A("ngForOf",r.newsMessages),_(1),A("hidden",!r.isAdmin()),_(5),A("ngModel",r.newNewsMessage),_(3),A("hidden",r.isAuthenticated()))},dependencies:[or,Lt,Cn,Yt,No],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})(),BF=(()=>{class e{constructor(n,r){this.loginService=n,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(n=>{})},error:n=>{console.log("Login failed",n),this.errorMessage=`Login failed: ${n.message}`,this.serviceMessage=""}}),!1;this.errorMessage="Login failed: Username and password required."}}return e.\u0275fac=function(n){return new(n||e)(D(tt),D(Ue))},e.\u0275cmp=_t({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(n,r){1&n&&(g(0,"h2"),C(1,"Login form"),m(),g(2,"p",0),C(3),m(),g(4,"p",1),C(5),m(),g(6,"form",2),P("submit",function(){return r.login()}),g(7,"div",3)(8,"label",4),C(9,"Username:"),m(),g(10,"input",5),P("ngModelChange",function(i){return r.credentials.username=i}),m()(),g(11,"div",3)(12,"label",6),C(13,"Password:"),m(),g(14,"input",7),P("ngModelChange",function(i){return r.credentials.password=i}),m()(),g(15,"div",3)(16,"label",8),C(17,"Remember me:"),m(),g(18,"input",9),P("ngModelChange",function(i){return r.rememberme=i}),m()(),g(19,"button",10),C(20,"Login"),m()()),2&n&&(_(2),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(5),A("ngModel",r.credentials.username),_(4),A("ngModel",r.credentials.password),_(4),A("ngModel",r.rememberme))},dependencies:[YD,Lt,fl,Cn,kD,Yt,El],styles:["button[_ngcontent-%COMP%]{border:revert}"]}),e})();const $r=(e,t)=>{const n=I(tt),r=I(Ue);return!!n.isAuthenticated()||r.parseUrl("/login")};class mt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} 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(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`ContactService: ${t}`)}getContacts(){return this.http.get(mt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} contacts`)),de(this.handleError("getContacts",[])))}getContact(t){return this.http.get(`${mt.REST_URL}/${t}`,this.httpOptions).pipe(J(n=>this.log(`fetched Contact ${n.id}`)),de(this.handleError("getContact",{})))}addContact(t){return this.http.post(mt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`added contact w/ id=${n.id}`)),de(this.handleError("addContact")))}saveContact(t){return this.http.post(mt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`saved contact w/ id=${n.id}`)),de(this.handleError("addContact")))}deleteContact(t){return this.http.delete(`${mt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted contact id=${t}`)),de(this.handleError("deleteContact")))}}mt.REST_URL=Pr_restServerUrl+"/api/contacts",mt.\u0275fac=function(t){return new(t||mt)(R(Or),R(xr))},mt.\u0275prov=x({token:mt,factory:mt.\u0275fac,providedIn:"root"});const UF=function(e){return["/contact",e]};function zF(e,t){if(1&e&&(g(0,"li")(1,"div",20)(2,"span")(3,"a",21),C(4),m()()(),g(5,"span",22),C(6),oe(7,"br"),C(8),oe(9,"br"),C(10),oe(11,"br"),C(12,"Website: "),g(13,"a",23),C(14),m(),oe(15,"br"),C(16),m()()),2&e){const n=t.$implicit;_(3),A("routerLink",Ua(9,UF,n.id)),_(1),Va("",n.firstName," ",n.lastName,""),_(2),Be(" Telephone: ",n.telephone," "),_(2),Be("E-mail: ",n.email," "),_(2),Be("Address: ",n.address," "),_(3),xa("href","https://",n.website,"",lc),_(1),K(n.website),_(2),Be("Description: ",n.description,"")}}let GF=(()=>{class e{constructor(n){this.contactsService=n,this.contacts=[],this.newContact={},this.serviceMessage="",this.errorMessage=""}getContacts(){this.serviceMessage="Loading contacts ...",this.contactsService.getContacts().subscribe({next:n=>{this.contacts=n,this.serviceMessage=n.length?"":"No contacts in database."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading contacts: ${n.message}`}})}ngOnInit(){this.getContacts()}sendContact(){this.serviceMessage="Adding contact ...",this.contactsService.addContact(this.newContact).subscribe({next:n=>{this.contacts.push(n),this.serviceMessage="Added contact."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while adding contact: ${n.message}`}}),this.newContact={}}}return e.\u0275fac=function(n){return new(n||e)(D(mt))},e.\u0275cmp=_t({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-title"],[3,"routerLink"],[1,"text"],["target","_blank",3,"href"]],template:function(n,r){1&n&&(g(0,"h2"),C(1,"Contacts:"),m(),g(2,"p",0),C(3),m(),g(4,"p",1),C(5),m(),g(6,"ol",2),Bt(7,zF,17,11,"li",3),m(),g(8,"h2"),C(9,"New contact:"),m(),g(10,"div",4)(11,"label",5),C(12,"Firstname:"),m(),g(13,"input",6),P("ngModelChange",function(i){return r.newContact.firstName=i}),m(),oe(14,"br"),g(15,"label",7),C(16,"Lastname:"),m(),g(17,"input",8),P("ngModelChange",function(i){return r.newContact.lastName=i}),m(),oe(18,"br"),g(19,"label",9),C(20,"Telephone:"),m(),g(21,"input",10),P("ngModelChange",function(i){return r.newContact.telephone=i}),m(),oe(22,"br"),g(23,"label",11),C(24,"Email:"),m(),g(25,"input",12),P("ngModelChange",function(i){return r.newContact.email=i}),m(),oe(26,"br"),g(27,"label",13),C(28,"Website:"),m(),g(29,"input",14),P("ngModelChange",function(i){return r.newContact.website=i}),m(),oe(30,"br"),g(31,"label",15),C(32,"Address:"),m(),g(33,"input",16),P("ngModelChange",function(i){return r.newContact.address=i}),m(),oe(34,"br"),g(35,"label",17),C(36,"Description:"),m(),g(37,"input",18),P("ngModelChange",function(i){return r.newContact.description=i}),m(),oe(38,"br"),g(39,"button",19),P("click",function(){return r.sendContact()}),C(40,"Send"),m()()),2&n&&(_(2),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(2),A("ngForOf",r.contacts),_(6),A("ngModel",r.newContact.firstName),_(4),A("ngModel",r.newContact.lastName),_(4),A("ngModel",r.newContact.telephone),_(4),A("ngModel",r.newContact.email),_(4),A("ngModel",r.newContact.website),_(4),A("ngModel",r.newContact.address),_(4),A("ngModel",r.newContact.description))},dependencies:[or,Lt,Cn,Yt,Wo],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:.1em;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}"]}),e})();class yt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation"){return n=>{throw this.log(`${t} failed: response status = ${n.status} statusText = ${n.statusText}`),0===n.status&&!1===n.ok?new Error("Could not reach API, check your internet connection."):(console.error(n),new Error(`${t} failed: status = ${n.status}`,{cause:n}))}}log(t){this.appMessageService.add(`ChecklistService: ${t}`)}getChecklists(){return this.http.get(yt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} checklists`)),de(this.handleError("getChecklists")))}getChecklist(t){return this.http.get(`${yt.REST_URL}/${t}`,this.httpOptions).pipe(J(n=>this.log(`fetched checklist ${n.id}`)),de(this.handleError("getChecklist")))}addChecklist(t){return this.http.post(yt.REST_URL,{name:t},this.httpOptions).pipe(J(r=>this.log(`added checklist w/ id=${r.id}`)),de(this.handleError("addChecklist")))}saveChecklist(t){return this.http.post(yt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`saved checklist w/ id=${n.id}`)),de(this.handleError("addChecklist")))}deleteChecklist(t){return this.http.delete(`${yt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted checklist id=${t}`)),de(this.handleError("deleteChecklist")))}}yt.REST_URL=Pr_restServerUrl+"/api/checklists",yt.\u0275fac=function(t){return new(t||yt)(R(Or),R(xr))},yt.\u0275prov=x({token:yt,factory:yt.\u0275fac,providedIn:"root"});const WF=function(e){return{strikethrough:e}};function qF(e,t){if(1&e&&(g(0,"li",12),C(1),m()),2&e){const n=t.$implicit;A("ngClass",Ua(2,WF,!0===n.checked)),_(1),Be(" ",n.text," ")}}const ZF=function(e){return["/checklist",e]};function YF(e,t){if(1&e&&(g(0,"li")(1,"span",8)(2,"a",9),C(3),m(),g(4,"ul",10),Bt(5,qF,2,4,"li",11),m()()()),2&e){const n=t.$implicit;_(2),A("routerLink",Ua(3,ZF,n.id)),_(1),K(n.name),_(2),A("ngForOf",n.checks)}}let XF=(()=>{class e{constructor(n,r){this.checklistService=n,this.router=r,this.route=I(Bn),this.checklists=[],this.newChecklist="",this.serviceMessage="",this.errorMessage=""}getChecklists(){this.serviceMessage="Loading checklists ...",this.checklistService.getChecklists().subscribe({next:n=>{this.checklists=n,this.serviceMessage=n.length?"":"No checklist in database."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading checklists: ${n.message}`}})}ngOnInit(){this.getChecklists()}sendChecklist(){""!==this.newChecklist&&(this.serviceMessage="Creating checklist ...",this.checklistService.addChecklist(this.newChecklist).subscribe({next:n=>this.router.navigate(["/checklist/",n.id]),error:n=>{this.serviceMessage="",this.errorMessage=`Error while creating checklists: ${n.message}`}}))}}return e.\u0275fac=function(n){return new(n||e)(D(yt),D(Ue))},e.\u0275cmp=_t({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,"text"],[3,"routerLink"],[1,"item-list"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"]],template:function(n,r){1&n&&(g(0,"h2"),C(1,"Checklists"),m(),g(2,"p",0),C(3),m(),g(4,"p",1),C(5),m(),g(6,"ol",2),Bt(7,YF,6,5,"li",3),m(),g(8,"h2"),C(9,"New checklist:"),m(),g(10,"div",4)(11,"div")(12,"label",5),C(13,"name:"),m(),g(14,"input",6),P("ngModelChange",function(i){return r.newChecklist=i})("keydown.enter",function(){return r.sendChecklist()}),m(),g(15,"button",7),P("click",function(){return r.sendChecklist()}),C(16,"Send"),m()()()),2&n&&(_(2),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(2),A("ngForOf",r.checklists),_(7),A("ngModel",r.newChecklist))},dependencies:[R_,or,Lt,Cn,Yt,Wo],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:.1em;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.strikethrough[_ngcontent-%COMP%]{text-decoration:line-through}"]}),e})();function QF(e,t){if(1&e){const n=ki();g(0,"li")(1,"input",10),P("ngModelChange",function(o){return Yn(Zn(n).$implicit.checked=o)})("change",function(){return Zn(n),Yn(pn().saveCheckList())}),m(),g(2,"label"),C(3),m(),g(4,"button",11),P("click",function(){const i=Zn(n).index;return Yn(pn().removeItem(i))}),C(5,"x"),m()()}if(2&e){const n=t.$implicit;_(1),A("ngModel",n.checked),_(2),K(n.text)}}const KF=[{path:"",component:jF,pathMatch:"full"},{path:"login",component:BF},{path:"profile",component:(()=>{class e{constructor(n){this.loginService=n,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:n=>{this.serviceMessage="",this.errorMessage=`Error while updating password: ${n.message}`}})):this.serviceMessage="Passwords do not match!"}toggleTheme(){const n="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(n),r.classList.contains(n)?localStorage.setItem("theme",n):localStorage.setItem("theme","theme-light")}}return e.\u0275fac=function(n){return new(n||e)(D(tt))},e.\u0275cmp=_t({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(n,r){1&n&&(g(0,"h1"),C(1),m(),g(2,"button",0),P("click",function(){return r.toggleTheme()}),C(3,"\u2600 Theme"),m(),g(4,"h2"),C(5,"Change password:"),m(),g(6,"p",1),C(7),m(),g(8,"p",2),C(9),m(),g(10,"div",3)(11,"div")(12,"label",4),C(13,"New password:"),m(),g(14,"input",5),P("ngModelChange",function(i){return r.newPassword1=i}),m(),oe(15,"br"),g(16,"label",6),C(17,"Repeat new password:"),m(),g(18,"input",7),P("ngModelChange",function(i){return r.newPassword2=i}),m(),oe(19,"br"),g(20,"button",8),P("click",function(){return r.saveProfile()}),C(21,"Save"),m()()()),2&n&&(_(1),Be("Profile of: ",r.username(),""),_(5),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(5),A("ngModel",r.newPassword1),_(4),A("ngModel",r.newPassword2))},dependencies:[Lt,Cn,Yt]}),e})(),canActivate:[$r]},{path:"chat",component:_h,canActivate:[$r]},{path:"todo",component:$F,canActivate:[$r]},{path:"contacts",component:GF,canActivate:[$r]},{path:"contact/:id",component:(()=>{class e{constructor(n,r){this.contactsService=n,this.router=r,this.route=I(Bn),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:n=>{this.contact=n,this.serviceMessage=""},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading contact: ${n.message}`}})}ngOnInit(){this.getChecklist()}saveContact(){this.serviceMessage="Updating contact ...",this.contactsService.saveContact(this.contact).subscribe({next:n=>{this.contact=n,this.serviceMessage="Updated contact."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while updating contact: ${n.message}`}})}deleteContact(){this.serviceMessage="Deleting contact ...",this.contactsService.deleteContact(this.contactId).subscribe({next:()=>this.router.navigateByUrl("/contacts"),error:n=>{this.serviceMessage="",this.errorMessage=`Error while deleting contact: ${n.message}`}})}}return e.\u0275fac=function(n){return new(n||e)(D(mt),D(Ue))},e.\u0275cmp=_t({type:e,selectors:[["app-edit-contact"]],decls:50,vars:22,consts:[[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"],["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(n,r){1&n&&(g(0,"h2"),C(1),m(),g(2,"p",0),C(3),m(),g(4,"p",1),C(5),m(),g(6,"p"),C(7),g(8,"button",2),P("click",function(){return r.deleteContact()}),C(9,"Delete contact"),m(),oe(10,"br"),C(11),Jn(12,"date"),oe(13,"br"),C(14),Jn(15,"date"),m(),oe(16,"p"),g(17,"h3"),C(18,"Details:"),m(),g(19,"div",3)(20,"label",4),C(21,"Firstname:"),m(),g(22,"input",5),P("ngModelChange",function(i){return r.contact.firstName=i}),m(),oe(23,"br"),g(24,"label",6),C(25,"Lastname:"),m(),g(26,"input",7),P("ngModelChange",function(i){return r.contact.lastName=i}),m(),oe(27,"br"),g(28,"label",8),C(29,"Telephone:"),m(),g(30,"input",9),P("ngModelChange",function(i){return r.contact.telephone=i}),m(),oe(31,"br"),g(32,"label",10),C(33,"Email:"),m(),g(34,"input",11),P("ngModelChange",function(i){return r.contact.email=i}),m(),oe(35,"br"),g(36,"label",12),C(37,"Website:"),m(),g(38,"input",13),P("ngModelChange",function(i){return r.contact.website=i}),m(),oe(39,"br"),g(40,"label",14),C(41,"Address:"),m(),g(42,"input",15),P("ngModelChange",function(i){return r.contact.address=i}),m(),oe(43,"br"),g(44,"label",16),C(45,"Description:"),m(),g(46,"input",17),P("ngModelChange",function(i){return r.contact.description=i}),m(),oe(47,"br"),g(48,"button",18),P("click",function(){return r.saveContact()}),C(49,"Save"),m()()),2&n&&(_(1),Va("Editing contact: ",r.contact.firstName," ",r.contact.lastName,""),_(1),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(2),Be("Id: ",r.contact.id," "),_(4),Be("Created on: ",er(12,16,r.contact.dateCreated,"medium")," "),_(3),Be("Updated on: ",er(15,19,r.contact.dateUpdated,"medium"),"\n"),_(8),A("ngModel",r.contact.firstName),_(4),A("ngModel",r.contact.lastName),_(4),A("ngModel",r.contact.telephone),_(4),A("ngModel",r.contact.email),_(4),A("ngModel",r.contact.website),_(4),A("ngModel",r.contact.address),_(4),A("ngModel",r.contact.description))},dependencies:[Lt,Cn,Yt,No],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080}"]}),e})(),canActivate:[$r]},{path:"checklists",component:XF,canActivate:[$r]},{path:"checklist/:id",component:(()=>{class e{constructor(n,r){this.checklistService=n,this.router=r,this.route=I(Bn),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:n=>{this.checklist=n,this.serviceMessage=""},error:n=>{this.serviceMessage="",this.errorMessage=`Error while getting checklists: ${n.message}`}})}ngOnInit(){this.getChecklist()}addItem(){""!==this.newItem&&(this.checklist.checks.push({text:this.newItem,checklist_id:this.checklist.id}),this.newItem="",this.saveCheckList())}removeItem(n){(this.checklist.checks[n].text||""===this.checklist.checks[n].text)&&(this.checklist.checks.splice(n,1),this.saveCheckList())}saveCheckList(){this.serviceMessage="Updating checklist ...",this.checklistService.saveChecklist(this.checklist).subscribe({next:n=>{this.checklist=n,this.serviceMessage="Saved checklist."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while saving checklists: ${n.message}`}})}deleteChecklist(){this.serviceMessage="Removing checklist ...",this.checklistService.deleteChecklist(this.checklistId).subscribe({next:()=>{this.router.navigateByUrl("/checklists")},error:n=>{this.serviceMessage="",this.errorMessage=`Error while deleting checklists: ${n.message}`}})}}return e.\u0275fac=function(n){return new(n||e)(D(yt),D(Ue))},e.\u0275cmp=_t({type:e,selectors:[["app-edit-checklist"]],decls:36,vars:17,consts:[[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"],["type","button","title","Delete item",1,"delete",3,"click"]],template:function(n,r){1&n&&(g(0,"h2"),C(1),m(),g(2,"p",0),C(3),m(),g(4,"p",1),C(5),m(),g(6,"p"),C(7),g(8,"button",2),P("click",function(){return r.deleteChecklist()}),C(9,"Delete checklist"),m(),oe(10,"br"),C(11),Jn(12,"date"),oe(13,"br"),C(14),Jn(15,"date"),m(),g(16,"h3"),C(17,"Items:"),m(),g(18,"ol"),Bt(19,QF,6,2,"li",3),m(),g(20,"h2"),C(21,"Add item:"),m(),g(22,"div",4)(23,"label",5),C(24,"item:"),m(),g(25,"input",6),P("ngModelChange",function(i){return r.newItem=i})("keydown.enter",function(){return r.addItem()}),m(),g(26,"button",7),P("click",function(){return r.addItem()}),C(27,"Add"),m()(),g(28,"h2"),C(29,"Change name:"),m(),g(30,"div",4)(31,"label",8),C(32,"newName:"),m(),g(33,"input",9),P("ngModelChange",function(i){return r.checklist.name=i})("keydown.enter",function(){return r.saveCheckList()}),m(),g(34,"button",7),P("click",function(){return r.saveCheckList()}),C(35,"Save"),m()()),2&n&&(_(1),Be("Editing checklist: ",r.checklist.name,""),_(1),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(2),Be("Id: ",r.checklist.id," "),_(4),Be("Created on: ",er(12,11,r.checklist.dateCreated,"medium")," "),_(3),Be("Updated on: ",er(15,14,r.checklist.dateUpdated,"medium"),"\n"),_(5),A("ngForOf",r.checklist.checks),_(6),A("ngModel",r.newItem),_(8),A("ngModel",r.checklist.name))},dependencies:[or,Lt,fl,Cn,Yt,No],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080;margin-left:2em}"]}),e})(),canActivate:[$r]}];let JF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({imports:[jw.forRoot(KF),jw]}),e})(),e4=(()=>{class e{constructor(n){this.auth=n}intercept(n,r){if(this.auth.isAuthenticated()){const o=this.auth.getAuthorizationToken(),i=n.clone({headers:n.headers.set("Authorization",o)});return r.handle(i)}return r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(R(tt))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const Mn=void 0;!function $R(e,t,n){(function GT(e,t,n){"string"!=typeof t&&(n=t,t=e[N.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Eo[t]=e,n&&(Eo[t][N.ExtraData]=n)})(e,t,n)}(["nl",[["a.m.","p.m."],Mn,Mn],Mn,[["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"]],Mn,[["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"]],Mn,[["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}",Mn,"{1} 'om' {0}",Mn],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00;\xa4\xa0-#,##0.00","#E0"],"EUR","\u20ac","Euro",{AUD:["AU$","$"],BYN:[Mn,"\u0440."],CAD:["C$","$"],FJD:["FJ$","$"],JPY:["JP\xa5","\xa5"],PHP:[Mn,"\u20b1"],RUR:[Mn,"\u0440."],SBD:["SI$","$"],THB:["\u0e3f"],TWD:["NT$"],USD:["US$","$"],XPF:[],XXX:[]},"ltr",function t4(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}]);let n4=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e,bootstrap:[LF]}),e.\u0275inj=Rt({providers:[{provide:w0,useClass:e4,multi:!0},{provide:rr,useClass:C_},{provide:yn,useValue:"nl-BE"}],imports:[hO,EP,qP,JF]}),e})();dO().bootstrapModule(n4).catch(e=>console.error(e))}},ce=>{ce(ce.s=282)}]); \ No newline at end of file diff --git a/front/dist/familySite1/polyfills.1358c66226f5aae4.js b/sample-front/dist/familySite1/polyfills.1358c66226f5aae4.js similarity index 100% rename from front/dist/familySite1/polyfills.1358c66226f5aae4.js rename to sample-front/dist/familySite1/polyfills.1358c66226f5aae4.js diff --git a/front/dist/familySite1/runtime.ed14f20cc9779f09.js b/sample-front/dist/familySite1/runtime.ed14f20cc9779f09.js similarity index 100% rename from front/dist/familySite1/runtime.ed14f20cc9779f09.js rename to sample-front/dist/familySite1/runtime.ed14f20cc9779f09.js diff --git a/sample-front/dist/familySite1/styles.f56545a065697766.css b/sample-front/dist/familySite1/styles.f56545a065697766.css new file mode 100644 index 0000000..b8b2135 --- /dev/null +++ b/sample-front/dist/familySite1/styles.f56545a065697766.css @@ -0,0 +1 @@ +*{font-family:Arial,Helvetica,sans-serif}html,body{height:100%;margin:0}app-root{height:100%;display:flex;flex-direction:column}main{margin:1em auto;width:90%}h2,h3{font-weight:lighter;margin:.4em 0}body,button{font-family:Cambria,Georgia,serif}ol{margin-top:0}button{border:none;border-radius:4px;cursor:pointer;padding:.2rem .4rem;margin-right:.2rem}.alert{color:red}.footer{margin-top:auto}.theme-dark{color-scheme:light dark}.form-group label{display:inline-block;min-width:6em;padding-right:.2em}.form-group input{margin:0 0 .2em} diff --git a/tds-back/Dockerfile b/tds-back/Dockerfile new file mode 100644 index 0000000..40aa1e9 --- /dev/null +++ b/tds-back/Dockerfile @@ -0,0 +1,7 @@ +FROM openjdk:24-jdk-slim + +ARG JAR_FILE=target/*.jar +COPY ${JAR_FILE} app.jar + +EXPOSE 8080 +ENTRYPOINT ["java","-jar","/app.jar"] \ No newline at end of file diff --git a/tds-back/target/familySite1Backend1-0.1.0.jar b/tds-back/target/familySite1Backend1-0.1.0.jar new file mode 100755 index 0000000..c2e228e Binary files /dev/null and b/tds-back/target/familySite1Backend1-0.1.0.jar differ diff --git a/tds-front/Dockerfile b/tds-front/Dockerfile new file mode 100644 index 0000000..b41b104 --- /dev/null +++ b/tds-front/Dockerfile @@ -0,0 +1,8 @@ +FROM node:lts-alpine3.20 + +WORKDIR /app +COPY dist/familySite1/ . + +RUN npm install --global serve +EXPOSE 3000 +CMD [ "serve", "." ] diff --git a/tds-front/dist/familySite1/3rdpartylicenses.txt b/tds-front/dist/familySite1/3rdpartylicenses.txt new file mode 100644 index 0000000..ec31949 --- /dev/null +++ b/tds-front/dist/familySite1/3rdpartylicenses.txt @@ -0,0 +1,341 @@ +@angular/common +MIT + +@angular/core +MIT + +@angular/forms +MIT + +@angular/platform-browser +MIT + +@angular/router +MIT + +bcrypt-ts +MIT +bcrypt-ts + +Copyright (c) 2022 Mister Hope + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +bcrypt.js + +Copyright (c) 2012 Nevins Bartolomeo +Copyright (c) 2012 Shane Girish +Copyright (c) 2014 Daniel Wirtz + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions +are met: + +1. Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. +2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. +3. The name of the author may not be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR +IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES +OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, +INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT +NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, +DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY +THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF +THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +isaac.js + +Copyright (c) 2012 Yves-Marie K. Rinquin + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +"Software"), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND +NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE +LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION +OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION +WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + +rxjs +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + +tslib +0BSD +Copyright (c) Microsoft Corporation. + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. + +zone.js +MIT +The MIT License + +Copyright (c) 2010-2022 Google LLC. https://angular.io/license + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/tds-front/dist/familySite1/favicon.ico b/tds-front/dist/familySite1/favicon.ico new file mode 100644 index 0000000..36179ed Binary files /dev/null and b/tds-front/dist/familySite1/favicon.ico differ diff --git a/tds-front/dist/familySite1/index.html b/tds-front/dist/familySite1/index.html new file mode 100644 index 0000000..6c0078a --- /dev/null +++ b/tds-front/dist/familySite1/index.html @@ -0,0 +1,14 @@ + + + TDS family site + + + + + + + + + + + \ No newline at end of file diff --git a/tds-front/dist/familySite1/main.f56200f3b8c81316.js b/tds-front/dist/familySite1/main.f56200f3b8c81316.js new file mode 100644 index 0000000..51a7c8f --- /dev/null +++ b/tds-front/dist/familySite1/main.f56200f3b8c81316.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkfamilySite1=self.webpackChunkfamilySite1||[]).push([[179],{282:()=>{function ce(e){return"function"==typeof e}function Zo(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const ws=Zo(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Yo(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class Tt{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(ce(r))try{r()}catch(i){t=i instanceof ws?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Eh(i)}catch(s){t=t??[],s instanceof ws?t=[...t,...s.errors]:t.push(s)}}if(t)throw new ws(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Eh(t);else{if(t instanceof Tt){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Yo(n,t)}remove(t){const{_finalizers:n}=this;n&&Yo(n,t),t instanceof Tt&&t._removeParent(this)}}Tt.EMPTY=(()=>{const e=new Tt;return e.closed=!0,e})();const Dh=Tt.EMPTY;function wh(e){return e instanceof Tt||e&&"closed"in e&&ce(e.remove)&&ce(e.add)&&ce(e.unsubscribe)}function Eh(e){ce(e)?e():e.unsubscribe()}const fr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Es={setTimeout(e,t,...n){const{delegate:r}=Es;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=Es;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function Mh(e){Es.setTimeout(()=>{const{onUnhandledError:t}=fr;if(!t)throw e;t(e)})}function bh(){}const zw=Gl("C",void 0,void 0);function Gl(e,t,n){return{kind:e,value:t,error:n}}let hr=null;function Ms(e){if(fr.useDeprecatedSynchronousErrorHandling){const t=!hr;if(t&&(hr={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=hr;if(hr=null,n)throw r}}else e()}class Wl extends Tt{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,wh(t)&&t.add(this)):this.destination=Qw}static create(t,n,r){return new Xo(t,n,r)}next(t){this.isStopped?Zl(function Ww(e){return Gl("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Zl(function Gw(e){return Gl("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Zl(zw,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const Zw=Function.prototype.bind;function ql(e,t){return Zw.call(e,t)}class Yw{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){bs(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){bs(r)}else bs(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){bs(n)}}}class Xo extends Wl{constructor(t,n,r){let o;if(super(),ce(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&fr.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&ql(t.next,i),error:t.error&&ql(t.error,i),complete:t.complete&&ql(t.complete,i)}):o=t}this.destination=new Yw(o)}}function bs(e){fr.useDeprecatedSynchronousErrorHandling?function qw(e){fr.useDeprecatedSynchronousErrorHandling&&hr&&(hr.errorThrown=!0,hr.error=e)}(e):Mh(e)}function Zl(e,t){const{onStoppedNotification:n}=fr;n&&Es.setTimeout(()=>n(e,t))}const Qw={closed:!0,next:bh,error:function Xw(e){throw e},complete:bh},Yl="function"==typeof Symbol&&Symbol.observable||"@@observable";function pr(e){return e}function Sh(e){return 0===e.length?pr:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}let be=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function e1(e){return e&&e instanceof Wl||function Jw(e){return e&&ce(e.next)&&ce(e.error)&&ce(e.complete)}(e)&&wh(e)}(n)?n:new Xo(n,r,o);return Ms(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Ih(r))((o,i)=>{const s=new Xo({next:a=>{try{n(a)}catch(l){i(l),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[Yl](){return this}pipe(...n){return Sh(n)(this)}toPromise(n){return new(n=Ih(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Ih(e){var t;return null!==(t=e??fr.Promise)&&void 0!==t?t:Promise}const t1=Zo(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let bn=(()=>{class e extends be{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Th(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new t1}next(n){Ms(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){Ms(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){Ms(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Dh:(this.currentObservers=null,i.push(n),new Tt(()=>{this.currentObservers=null,Yo(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new be;return n.source=this,n}}return e.create=(t,n)=>new Th(t,n),e})();class Th extends bn{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Dh}}function Ah(e){return ce(e?.lift)}function ze(e){return t=>{if(Ah(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function He(e,t,n,r,o){return new n1(e,t,n,r,o)}class n1 extends Wl{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(l){t.error(l)}}:super._next,this._error=o?function(a){try{o(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function ne(e,t){return ze((n,r)=>{let o=0;n.subscribe(He(r,i=>{r.next(e.call(t,i,o++))}))})}function gr(e){return this instanceof gr?(this.v=e,this):new gr(e)}function s1(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function Oh(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.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(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[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 Ph=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function xh(e){return ce(e?.then)}function kh(e){return ce(e[Yl])}function Fh(e){return Symbol.asyncIterator&&ce(e?.[Symbol.asyncIterator])}function Lh(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 Vh=function l1(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function $h(e){return ce(e?.[Vh])}function Hh(e){return function i1(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),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(p,v){i.push([f,h,p,v])>1||a(f,h)})})}function a(f,h){try{!function l(f){f.value instanceof gr?Promise.resolve(f.value.v).then(u,c):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}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 n=e.getReader();try{for(;;){const{value:r,done:o}=yield gr(n.read());if(o)return yield gr(void 0);yield yield gr(r)}}finally{n.releaseLock()}})}function jh(e){return ce(e?.getReader)}function At(e){if(e instanceof be)return e;if(null!=e){if(kh(e))return function u1(e){return new be(t=>{const n=e[Yl]();if(ce(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Ph(e))return function c1(e){return new be(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,Mh)})}(e);if(Fh(e))return Bh(e);if($h(e))return function f1(e){return new be(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(jh(e))return function h1(e){return Bh(Hh(e))}(e)}throw Lh(e)}function Bh(e){return new be(t=>{(function p1(e,t){var n,r,o,i;return function r1(e,t,n,r){return new(n||(n=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 n?i:new n(function(s){s(i)})}(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=s1(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function Sn(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function Ge(e,t,n=1/0){return ce(t)?Ge((r,o)=>ne((i,s)=>t(r,i,o,s))(At(e(r,o))),n):("number"==typeof t&&(n=t),ze((r,o)=>function g1(e,t,n,r,o,i,s,a){const l=[];let u=0,c=0,d=!1;const f=()=>{d&&!l.length&&!u&&t.complete()},h=v=>u{i&&t.next(v),u++;let w=!1;At(n(v,c++)).subscribe(He(t,b=>{o?.(b),i?h(b):t.next(b)},()=>{w=!0},void 0,()=>{if(w)try{for(u--;l.length&&up(b)):p(b)}f()}catch(b){t.error(b)}}))};return e.subscribe(He(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}function Hr(e=1/0){return Ge(pr,e)}const en=new be(e=>e.complete());function Ql(e){return e[e.length-1]}function Uh(e){return ce(Ql(e))?e.pop():void 0}function Qo(e){return function y1(e){return e&&ce(e.schedule)}(Ql(e))?e.pop():void 0}function zh(e,t=0){return ze((n,r)=>{n.subscribe(He(r,o=>Sn(r,e,()=>r.next(o),t),()=>Sn(r,e,()=>r.complete(),t),o=>Sn(r,e,()=>r.error(o),t)))})}function Gh(e,t=0){return ze((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Wh(e,t){if(!e)throw new Error("Iterable cannot be null");return new be(n=>{Sn(n,t,()=>{const r=e[Symbol.asyncIterator]();Sn(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function xe(e,t){return t?function M1(e,t){if(null!=e){if(kh(e))return function C1(e,t){return At(e).pipe(Gh(t),zh(t))}(e,t);if(Ph(e))return function D1(e,t){return new be(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(xh(e))return function _1(e,t){return At(e).pipe(Gh(t),zh(t))}(e,t);if(Fh(e))return Wh(e,t);if($h(e))return function w1(e,t){return new be(n=>{let r;return Sn(n,t,()=>{r=e[Vh](),Sn(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>ce(r?.return)&&r.return()})}(e,t);if(jh(e))return function E1(e,t){return Wh(Hh(e),t)}(e,t)}throw Lh(e)}(e,t):At(e)}function Kl(e,t,...n){if(!0===t)return void e();if(!1===t)return;const r=new Xo({next:()=>{r.unsubscribe(),e()}});return At(t(...n)).subscribe(r)}function ae(e){for(let t in e)if(e[t]===ae)return t;throw Error("Could not find renamed property on target object.")}function Jl(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ke(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ke).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function eu(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const I1=ae({__forward_ref__:ae});function fe(e){return e.__forward_ref__=fe,e.toString=function(){return ke(this())},e}function B(e){return tu(e)?e():e}function tu(e){return"function"==typeof e&&e.hasOwnProperty(I1)&&e.__forward_ref__===fe}function nu(e){return e&&!!e.\u0275providers}const qh="https://g.co/ng/security#xss";class M extends Error{constructor(t,n){super(function ru(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}(t,n)),this.code=t}}function U(e){return"string"==typeof e?e:null==e?"":String(e)}function Ss(e,t){throw new M(-201,!1)}function Nt(e,t){null==e&&function se(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function x(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Rt(e){return{providers:e.providers||[],imports:e.imports||[]}}function Is(e){return Zh(e,Ts)||Zh(e,Xh)}function Zh(e,t){return e.hasOwnProperty(t)?e[t]:null}function Yh(e){return e&&(e.hasOwnProperty(ou)||e.hasOwnProperty(k1))?e[ou]:null}const Ts=ae({\u0275prov:ae}),ou=ae({\u0275inj:ae}),Xh=ae({ngInjectableDef:ae}),k1=ae({ngInjectorDef:ae});var L=(()=>((L=L||{})[L.Default=0]="Default",L[L.Host=1]="Host",L[L.Self=2]="Self",L[L.SkipSelf=4]="SkipSelf",L[L.Optional=8]="Optional",L))();let iu;function at(e){const t=iu;return iu=e,t}function Kh(e,t,n){const r=Is(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&L.Optional?null:void 0!==t?t:void Ss(ke(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)(),Ko={},su="__NG_DI_FLAG__",As="ngTempTokenPath",L1=/\n/gm,Jh="__source";let jr;function Gn(e){const t=jr;return jr=e,t}function H1(e,t=L.Default){if(void 0===jr)throw new M(-203,!1);return null===jr?Kh(e,void 0,t):jr.get(e,t&L.Optional?null:void 0,t)}function R(e,t=L.Default){return(function Qh(){return iu}()||H1)(B(e),t)}function I(e,t=L.Default){return R(e,Ns(t))}function Ns(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function au(e){const t=[];for(let n=0;n((tn=tn||{})[tn.OnPush=0]="OnPush",tn[tn.Default=1]="Default",tn))(),Ct=(()=>{return(e=Ct||(Ct={}))[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",Ct;var e})();const Tn={},te=[],Rs=ae({\u0275cmp:ae}),lu=ae({\u0275dir:ae}),uu=ae({\u0275pipe:ae}),tp=ae({\u0275mod:ae}),An=ae({\u0275fac:ae}),ei=ae({__NG_ELEMENT_ID__:ae}),np=ae({__NG_ENV_ID__:ae});function rp(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}function cu(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;ii?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==rp(h,u,0)||2&r&&u!==f){if(Vt(r))return!1;s=!0}}}}else{if(!s&&!Vt(r)&&!Vt(l))return!1;if(s&&Vt(l))continue;s=!1,r=l|1&r}}return Vt(r)||s}function Vt(e){return 0==(1&e)}function q1(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Vt(s)&&(t+=cp(i,o),o=""),r=s,i=i||!Vt(r);n++}return""!==o&&(t+=cp(i,o)),t}function _t(e){return In(()=>{const t=fp(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===tn.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:null,data:e.data||{},encapsulation:e.encapsulation||Ct.Emulated,styles:e.styles||te,_:null,schemas:e.schemas||null,tView:null,id:""};hp(n);const r=e.dependencies;return n.directiveDefs=Os(r,!1),n.pipeDefs=Os(r,!0),n.id=function sE(e){let t=0;const n=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 n)t=Math.imul(31,t)+o.charCodeAt(0)<<0;return t+=2147483648,"c"+t}(n),n})}function nE(e){return re(e)||Xe(e)}function rE(e){return null!==e}function $t(e){return In(()=>({type:e.type,bootstrap:e.bootstrap||te,declarations:e.declarations||te,imports:e.imports||te,exports:e.exports||te,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function dp(e,t){if(null==e)return Tn;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}function H(e){return In(()=>{const t=fp(e);return hp(t),t})}function lt(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 re(e){return e[Rs]||null}function Xe(e){return e[lu]||null}function ut(e){return e[uu]||null}function Dt(e,t){const n=e[tp]||null;if(!n&&!0===t)throw new Error(`Type ${ke(e)} does not have '\u0275mod' property.`);return n}function fp(e){const t={};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:t,exportAs:e.exportAs||null,standalone:!0===e.standalone,selectors:e.selectors||te,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:dp(e.inputs,t),outputs:dp(e.outputs)}}function hp(e){e.features?.forEach(t=>t(e))}function Os(e,t){if(!e)return null;const n=t?ut:nE;return()=>("function"==typeof e?e():e).map(r=>n(r)).filter(rE)}const Fe=0,T=1,W=2,Ce=3,Ht=4,mr=5,Qe=6,Ur=7,we=8,zr=9,yr=10,z=11,ni=12,pp=13,Gr=14,Ae=15,ri=16,Wr=17,nn=18,oi=19,gp=20,Wn=21,Nn=22,Ps=23,xs=24,Q=25,du=1,mp=2,rn=7,ks=8,qr=9,We=11;function wt(e){return Array.isArray(e)&&"object"==typeof e[du]}function ct(e){return Array.isArray(e)&&!0===e[du]}function fu(e){return 0!=(4&e.flags)}function vr(e){return e.componentOffset>-1}function Fs(e){return 1==(1&e.flags)}function jt(e){return!!e.template}function hu(e){return 0!=(512&e[W])}function Cr(e,t){return e.hasOwnProperty(An)?e[An]:null}let dE=he.WeakRef??class cE{constructor(t){this.ref=t}deref(){return this.ref}},hE=0,on=null,Ls=!1;function je(e){const t=on;return on=e,t}class Dp{constructor(){this.id=hE++,this.ref=function fE(e){return new dE(e)}(this),this.producers=new Map,this.consumers=new Map,this.trackingVersion=0,this.valueVersion=0}consumerPollProducersForChange(){for(const[t,n]of this.producers){const r=n.producerNode.deref();if(void 0!==r&&n.atTrackingVersion===this.trackingVersion){if(r.producerPollStatus(n.seenValueVersion))return!0}else this.producers.delete(t),r?.consumers.delete(this.id)}return!1}producerMayHaveChanged(){const t=Ls;Ls=!0;try{for(const[n,r]of this.consumers){const o=r.consumerNode.deref();void 0!==o&&o.trackingVersion===r.atTrackingVersion?o.onConsumerDependencyMayHaveChanged():(this.consumers.delete(n),o?.producers.delete(this.id))}}finally{Ls=t}}producerAccessed(){if(Ls)throw new Error("");if(null===on)return;let t=on.producers.get(this.id);void 0===t?(t={consumerNode:on.ref,producerNode:this.ref,seenValueVersion:this.valueVersion,atTrackingVersion:on.trackingVersion},on.producers.set(this.id,t),this.consumers.set(on.id,t)):(t.seenValueVersion=this.valueVersion,t.atTrackingVersion=on.trackingVersion)}get hasProducers(){return this.producers.size>0}get producerUpdatesAllowed(){return!1!==on?.consumerAllowSignalWrites}producerPollStatus(t){return this.valueVersion!==t||(this.onProducerUpdateValueVersion(),this.valueVersion!==t)}}let wp=null;const Ep=()=>{};class yE extends Dp{constructor(t,n,r){super(),this.watch=t,this.schedule=n,this.dirty=!1,this.cleanupFn=Ep,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 t=je(this);this.trackingVersion++;try{this.cleanupFn(),this.cleanupFn=Ep,this.watch(this.registerOnCleanup)}finally{je(t)}}cleanup(){this.cleanupFn()}}class vE{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function Ot(){return Mp}function Mp(e){return e.type.prototype.ngOnChanges&&(e.setInput=_E),CE}function CE(){const e=Sp(this),t=e?.current;if(t){const n=e.previous;if(n===Tn)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function _E(e,t,n,r){const o=this.declaredInputs[n],i=Sp(e)||function DE(e,t){return e[bp]=t}(e,{previous:Tn,current:null}),s=i.current||(i.current={}),a=i.previous,l=a[o];s[o]=new vE(l&&l.currentValue,t,a===Tn),e[r]=t}Ot.ngInherit=!0;const bp="__ngSimpleChanges__";function Sp(e){return e[bp]||null}const sn=function(e,t,n){};function me(e){for(;Array.isArray(e);)e=e[Fe];return e}function Hs(e,t){return me(t[e])}function dt(e,t){return me(t[e.index])}function Ap(e,t){return e.data[t]}function ft(e,t){const n=t[e];return wt(n)?n:n[Fe]}function js(e){return 128==(128&e[W])}function qn(e,t){return null==t?null:e[t]}function Np(e){e[Wr]=0}function IE(e){1024&e[W]||(e[W]|=1024,Op(e,1))}function Rp(e){1024&e[W]&&(e[W]&=-1025,Op(e,-1))}function Op(e,t){let n=e[Ce];if(null===n)return;n[mr]+=t;let r=n;for(n=n[Ce];null!==n&&(1===t&&1===r[mr]||-1===t&&0===r[mr]);)n[mr]+=t,r=n,n=n[Ce]}const $={lFrame:Up(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function kp(){return $.bindingsEnabled}function E(){return $.lFrame.lView}function ee(){return $.lFrame.tView}function Zn(e){return $.lFrame.contextLView=e,e[we]}function Yn(e){return $.lFrame.contextLView=null,e}function qe(){let e=Fp();for(;null!==e&&64===e.type;)e=e.parent;return e}function Fp(){return $.lFrame.currentTNode}function an(e,t){const n=$.lFrame;n.currentTNode=e,n.isParent=t}function Cu(){return $.lFrame.isParent}function nt(){const e=$.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Xr(){return $.lFrame.bindingIndex++}function On(e){const t=$.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function $E(e,t){const n=$.lFrame;n.bindingIndex=n.bindingRootIndex=e,Du(t)}function Du(e){$.lFrame.currentDirectiveIndex=e}function Hp(){return $.lFrame.currentQueryIndex}function Eu(e){$.lFrame.currentQueryIndex=e}function jE(e){const t=e[T];return 2===t.type?t.declTNode:1===t.type?e[Qe]:null}function jp(e,t,n){if(n&L.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&L.Host||(o=jE(i),null===o||(i=i[Gr],10&o.type))););if(null===o)return!1;t=o,e=i}const r=$.lFrame=Bp();return r.currentTNode=t,r.lView=e,!0}function Mu(e){const t=Bp(),n=e[T];$.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Bp(){const e=$.lFrame,t=null===e?null:e.child;return null===t?Up(e):t}function Up(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function zp(){const e=$.lFrame;return $.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Gp=zp;function bu(){const e=zp();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 rt(){return $.lFrame.selectedIndex}function _r(e){$.lFrame.selectedIndex=e}function _e(){const e=$.lFrame;return Ap(e.tView,e.selectedIndex)}let qp=!0;function Bs(){return qp}function Xn(e){qp=e}function Us(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[l]<0&&(e[Wr]+=65536),(a>12>16&&(3&e[W])===t&&(e[W]+=4096,Yp(a,i)):Yp(a,i)}const Qr=-1;class ai{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Xp(e){return e!==Qr}function Ws(e){return 32767&e}function qs(e,t){let n=function JE(e){return e>>16}(e),r=t;for(;n>0;)r=r[Gr],n--;return r}let Tu=!0;function Zs(e){const t=Tu;return Tu=e,t}const Qp=255,Kp=5;let eM=0;const ln={};function Ys(e,t){const n=Jp(e,t);if(-1!==n)return n;const r=t[T];r.firstCreatePass&&(e.injectorIndex=t.length,Au(r.data,e),Au(t,null),Au(r.blueprint,null));const o=Nu(e,t),i=e.injectorIndex;if(Xp(o)){const s=Ws(o),a=qs(o,t),l=a[T].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|l[s+u]}return t[i+8]=o,i}function Au(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Jp(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Nu(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=sg(o),null===r)return Qr;if(n++,o=o[Gr],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return Qr}function Ru(e,t,n){!function tM(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(ei)&&(r=n[ei]),null==r&&(r=n[ei]=eM++);const o=r&Qp;t.data[e+(o>>Kp)]|=1<=0?t&Qp:iM:t}(n);if("function"==typeof i){if(!jp(t,e,r))return r&L.Host?eg(o,0,r):tg(t,n,r,o);try{const s=i(r);if(null!=s||r&L.Optional)return s;Ss()}finally{Gp()}}else if("number"==typeof i){let s=null,a=Jp(e,t),l=Qr,u=r&L.Host?t[Ae][Qe]:null;for((-1===a||r&L.SkipSelf)&&(l=-1===a?Nu(e,t):t[a+8],l!==Qr&&ig(r,!1)?(s=t[T],a=Ws(l),t=qs(l,t)):a=-1);-1!==a;){const c=t[T];if(og(i,a,c.data)){const d=rM(a,t,n,s,r,u);if(d!==ln)return d}l=t[a+8],l!==Qr&&ig(r,t[T].data[a+8]===u)&&og(i,a,t)?(s=c,a=Ws(l),t=qs(l,t)):a=-1}}return o}function rM(e,t,n,r,o,i){const s=t[T],a=s.data[e+8],c=Xs(a,s,n,null==r?vr(a)&&Tu:r!=s&&0!=(3&a.type),o&L.Host&&i===a);return null!==c?Dr(t,s,c,a):ln}function Xs(e,t,n,r,o){const i=e.providerIndexes,s=t.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&&p.type===n)return h}if(o){const h=s[l];if(h&&jt(h)&&h.type===n)return l}return null}function Dr(e,t,n,r){let o=e[n];const i=t.data;if(function XE(e){return e instanceof ai}(o)){const s=o;s.resolving&&function T1(e,t){const n=t?`. Dependency path: ${t.join(" > ")} > ${e}`:"";throw new M(-200,`Circular dependency in DI detected for ${e}${n}`)}(function ie(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():U(e)}(i[n]));const a=Zs(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?at(s.injectImpl):null;jp(e,r,L.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function ZE(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=Mp(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,i[n],t)}finally{null!==l&&at(l),Zs(a),s.resolving=!1,Gp()}}return o}function og(e,t,n){return!!(n[t+(e>>Kp)]&1<{const t=e.prototype.constructor,n=t[An]||Ou(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[An]||Ou(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ou(e){return tu(e)?()=>{const t=Ou(B(e));return t&&t()}:Cr(e)}function sg(e){const t=e[T],n=t.type;return 2===n?t.declTNode:1===n?e[Qe]:null}const eo="__parameters__";function no(e,t,n){return In(()=>{const r=function Pu(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);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(eo)?l[eo]:Object.defineProperty(l,eo,{value:[]})[eo];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}function ci(e,t){e.forEach(n=>Array.isArray(n)?ci(n,t):t(n))}function lg(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Ks(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Et(e,t,n){let r=ro(e,t);return r>=0?e[1|r]=n:(r=~r,function dM(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function xu(e,t){const n=ro(e,t);if(n>=0)return e[1|n]}function ro(e,t){return function ug(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<((ht=ht||{})[ht.Important=1]="Important",ht[ht.DashCase=2]="DashCase",ht))();const ju=new Map;let kM=0;const Uu="__ngContext__";function Ke(e,t){wt(t)?(e[Uu]=t[oi],function LM(e){ju.set(e[oi],e)}(t)):e[Uu]=t}let zu;function Gu(e,t){return zu(e,t)}function pi(e){const t=e[Ce];return ct(t)?t[Ce]:t}function Wu(e){return Tg(e[ni])}function qu(e){return Tg(e[Ht])}function Tg(e){for(;null!==e&&!ct(e);)e=e[Ht];return e}function so(e,t,n,r,o){if(null!=r){let i,s=!1;ct(r)?i=r:wt(r)&&(s=!0,r=r[Fe]);const a=me(r);0===e&&null!==n?null==o?Pg(t,n,a):wr(t,n,a,o||null,!0):1===e&&null!==n?wr(t,n,a,o||null,!0):2===e?function ca(e,t,n){const r=la(e,t);r&&function nb(e,t,n,r){e.removeChild(t,n,r)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function ib(e,t,n,r,o){const i=n[rn];i!==me(n)&&so(t,e,r,i,o);for(let a=We;a0&&(e[n-1][Ht]=r[Ht]);const i=Ks(e,We+t);!function ZM(e,t){mi(e,t,t[z],2,null,null),t[Fe]=null,t[Qe]=null}(r[T],r);const s=i[nn];null!==s&&s.detachView(i[T]),r[Ce]=null,r[Ht]=null,r[W]&=-129}return r}function Rg(e,t){if(!(256&t[W])){const n=t[z];t[Ps]?.destroy(),t[xs]?.destroy(),n.destroyNode&&mi(e,t,n,3,null,null),function QM(e){let t=e[ni];if(!t)return Xu(e[T],e);for(;t;){let n=null;if(wt(t))n=t[ni];else{const r=t[We];r&&(n=r)}if(!n){for(;t&&!t[Ht]&&t!==e;)wt(t)&&Xu(t[T],t),t=t[Ce];null===t&&(t=e),wt(t)&&Xu(t[T],t),n=t&&t[Ht]}t=n}}(t)}}function Xu(e,t){if(!(256&t[W])){t[W]&=-129,t[W]|=256,function tb(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r=0?r[s]():r[-s].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);null!==r&&(t[Ur]=null);const o=t[Wn];if(null!==o){for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===Ct.None||i===Ct.Emulated)return null}return dt(r,n)}}(e,t.parent,n)}function wr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Pg(e,t,n){e.appendChild(t,n)}function xg(e,t,n,r,o){null!==r?wr(e,t,n,r,o):Pg(e,t,n)}function la(e,t){return e.parentNode(t)}let Ku,nc,fa,Lg=function Fg(e,t,n){return 40&e.type?dt(e,n):null};function ua(e,t,n,r){const o=Qu(e,r,t),i=t[z],a=function kg(e,t,n){return Lg(e,t,n)}(r.parent||t[Qe],r,t);if(null!=o)if(Array.isArray(n))for(let l=0;le,createScript:e=>e,createScriptURL:e=>e})}catch{}return fa}()?.createScriptURL(e)||e}class qg{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${qh})`}}function Qn(e){return e instanceof qg?e.changingThisBreaksApplicationSecurity:e}function vi(e,t){const n=function yb(e){return e instanceof qg&&e.getTypeName()||null}(e);if(null!=n&&n!==t){if("ResourceURL"===n&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${qh})`)}return n===t}const Db=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;var Ne=(()=>((Ne=Ne||{})[Ne.NONE=0]="NONE",Ne[Ne.HTML=1]="HTML",Ne[Ne.STYLE=2]="STYLE",Ne[Ne.SCRIPT=3]="SCRIPT",Ne[Ne.URL=4]="URL",Ne[Ne.RESOURCE_URL=5]="RESOURCE_URL",Ne))();function lc(e){const t=_i();return t?t.sanitize(Ne.URL,e)||"":vi(e,"URL")?Qn(e):function oc(e){return(e=String(e)).match(Db)?e:"unsafe:"+e}(U(e))}function em(e){const t=_i();if(t)return Wg(t.sanitize(Ne.RESOURCE_URL,e)||"");if(vi(e,"ResourceURL"))return Wg(Qn(e));throw new M(904,!1)}function _i(){const e=E();return e&&e[yr].sanitizer}class O{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=x({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}const Di=new O("ENVIRONMENT_INITIALIZER"),nm=new O("INJECTOR",-1),rm=new O("INJECTOR_DEF_TYPES");class om{get(t,n=Ko){if(n===Ko){const r=new Error(`NullInjectorError: No provider for ${ke(t)}!`);throw r.name="NullInjectorError",r}return n}}function xb(...e){return{\u0275providers:im(0,e),\u0275fromNgModule:!0}}function im(e,...t){const n=[],r=new Set;let o;return ci(t,i=>{const s=i;cc(s,n,[],r)&&(o||=[],o.push(s))}),void 0!==o&&sm(o,n),n}function sm(e,t){for(let n=0;n{t.push(i)})}}function cc(e,t,n,r){if(!(e=B(e)))return!1;let o=null,i=Yh(e);const s=!i&&re(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const l=e.ngModule;if(i=Yh(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)cc(u,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o);try{ci(i.imports,c=>{cc(c,t,n,r)&&(u||=[],u.push(c))})}finally{}void 0!==u&&sm(u,t)}if(!a){const u=Cr(o)||(()=>new o);t.push({provide:o,useFactory:u,deps:te},{provide:rm,useValue:o,multi:!0},{provide:Di,useValue:()=>R(o),multi:!0})}const l=i.providers;null==l||a||dc(l,c=>{t.push(c)})}}return o!==e&&void 0!==e.providers}function dc(e,t){for(let n of e)nu(n)&&(n=n.\u0275providers),Array.isArray(n)?dc(n,t):t(n)}const kb=ae({provide:String,useValue:ae});function fc(e){return null!==e&&"object"==typeof e&&kb in e}function Er(e){return"function"==typeof e}const hc=new O("Set Injector scope."),pa={},Lb={};let pc;function ga(){return void 0===pc&&(pc=new om),pc}class un{}class gc extends un{get destroyed(){return this._destroyed}constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,yc(t,s=>this.processProvider(s)),this.records.set(nm,lo(void 0,this)),o.has("environment")&&this.records.set(un,lo(void 0,this));const i=this.records.get(hc);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(rm.multi,te,L.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{for(const t of this._ngOnDestroyHooks)t.ngOnDestroy();for(const t of this._onDestroyHooks)t()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),this._onDestroyHooks.length=0}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const n=Gn(this),r=at(void 0);try{return t()}finally{Gn(n),at(r)}}get(t,n=Ko,r=L.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(np))return t[np](this);r=Ns(r);const o=Gn(this),i=at(void 0);try{if(!(r&L.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=function Bb(e){return"function"==typeof e||"object"==typeof e&&e instanceof O}(t)&&Is(t);a=l&&this.injectableDefInScope(l)?lo(mc(t),pa):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&L.Self?ga():this.parent).get(t,n=r&L.Optional&&n===Ko?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[As]=s[As]||[]).unshift(ke(t)),o)throw s;return function B1(e,t,n,r){const o=e[As];throw t[Jh]&&o.unshift(t[Jh]),e.message=function U1(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=ke(t);if(Array.isArray(t))o=t.map(ke).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):ke(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(L1,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[As]=null,e}(s,t,"R3InjectorError",this.source)}throw s}finally{at(i),Gn(o)}}resolveInjectorInitializers(){const t=Gn(this),n=at(void 0);try{const r=this.get(Di.multi,te,L.Self);for(const o of r)o()}finally{Gn(t),at(n)}}toString(){const t=[],n=this.records;for(const r of n.keys())t.push(ke(r));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processProvider(t){let n=Er(t=B(t))?t:B(t&&t.provide);const r=function $b(e){return fc(e)?lo(void 0,e.useValue):lo(um(e),pa)}(t);if(Er(t)||!0!==t.multi)this.records.get(n);else{let o=this.records.get(n);o||(o=lo(void 0,pa,!0),o.factory=()=>au(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n){return n.value===pa&&(n.value=Lb,n.value=n.factory()),"object"==typeof n.value&&n.value&&function jb(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}injectableDefInScope(t){if(!t.providedIn)return!1;const n=B(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function mc(e){const t=Is(e),n=null!==t?t.factory:Cr(e);if(null!==n)return n;if(e instanceof O)throw new M(204,!1);if(e instanceof Function)return function Vb(e){const t=e.length;if(t>0)throw function di(e,t){const n=[];for(let r=0;rn.factory(e):()=>new e}(e);throw new M(204,!1)}function um(e,t,n){let r;if(Er(e)){const o=B(e);return Cr(o)||mc(o)}if(fc(e))r=()=>B(e.useValue);else if(function lm(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...au(e.deps||[]));else if(function am(e){return!(!e||!e.useExisting)}(e))r=()=>R(B(e.useExisting));else{const o=B(e&&(e.useClass||e.provide));if(!function Hb(e){return!!e.deps}(e))return Cr(o)||mc(o);r=()=>new o(...au(e.deps))}return r}function lo(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function yc(e,t){for(const n of e)Array.isArray(n)?yc(n,t):n&&nu(n)?yc(n.\u0275providers,t):t(n)}const ma=new O("AppId",{providedIn:"root",factory:()=>Ub}),Ub="ng",cm=new O("Platform Initializer"),Mr=new O("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),dm=new O("CSP nonce",{providedIn:"root",factory:()=>function yi(){if(void 0!==nc)return nc;if(typeof document<"u")return document;throw new M(210,!1)}().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let hm=(e,t)=>null;function pm(e,t){return hm(e,t)}class Jb{}class ym{}class tS{resolveComponentFactory(t){throw function eS(e){const t=Error(`No component factory found for ${ke(e)}.`);return t.ngComponent=e,t}(t)}}let Da=(()=>{class e{}return e.NULL=new tS,e})();function nS(){return uo(qe(),E())}function uo(e,t){return new Mt(dt(e,t))}let Mt=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=nS,e})();function rS(e){return e instanceof Mt?e.nativeElement:e}class Cm{}let xn=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>function oS(){const e=E(),n=ft(qe().index,e);return(wt(n)?n:e)[z]}(),e})(),iS=(()=>{class e{}return e.\u0275prov=x({token:e,providedIn:"root",factory:()=>null}),e})();class bi{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const sS=new bi("16.0.1"),Tc={};function Si(e){for(;e;){e[W]|=64;const t=pi(e);if(hu(e)&&!t)return e;e=t}return null}function Ac(e){return e.ngOriginalError}class br{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t);this._console.error("ERROR",t),n&&this._console.error("ORIGINAL ERROR",n)}_findOriginalError(t){let n=t&&Ac(t);for(;n&&Ac(n);)n=Ac(n);return n||null}}const wm=new O("",{providedIn:"root",factory:()=>!1});function kn(e){return e instanceof Function?e():e}class bm extends Dp{constructor(){super(...arguments),this.consumerAllowSignalWrites=!1,this._lView=null}set lView(t){this._lView=t}onConsumerDependencyMayHaveChanged(){Si(this._lView)}onProducerUpdateValueVersion(){}get hasReadASignal(){return this.hasProducers}runInContext(t,n,r){const o=je(this);this.trackingVersion++;try{t(n,r)}finally{je(o)}}destroy(){this.trackingVersion++}}let Ea=null;function Sm(){return Ea??=new bm,Ea}function Im(e,t){return e[t]??Sm()}function Tm(e,t){const n=Sm();n.hasReadASignal&&(e[t]=Ea,n.lView=e,Ea=new bm)}const G={};function _(e){Am(ee(),E(),rt()+e,!1)}function Am(e,t,n,r){if(!r)if(3==(3&t[W])){const i=e.preOrderCheckHooks;null!==i&&zs(t,i,n)}else{const i=e.preOrderHooks;null!==i&&Gs(t,i,0,n)}_r(n)}function Pm(e,t=null,n=null,r){const o=xm(e,t,n,r);return o.resolveInjectorInitializers(),o}function xm(e,t=null,n=null,r,o=new Set){const i=[n||te,xb(e)];return r=r||("object"==typeof e?void 0:ke(e)),new gc(i,t||ga(),r||null,o)}let cn=(()=>{class e{static create(n,r){if(Array.isArray(n))return Pm({name:""},r,n,"");{const o=n.name??"";return Pm({name:o},n.parent,n.providers,o)}}}return e.THROW_IF_NOT_FOUND=Ko,e.NULL=new om,e.\u0275prov=x({token:e,providedIn:"any",factory:()=>R(nm)}),e.__NG_ELEMENT_ID__=-1,e})();function D(e,t=L.Default){const n=E();return null===n?R(e,t):ng(qe(),n,B(e),t)}function Ma(e,t,n,r,o,i,s,a,l,u,c){const d=t.blueprint.slice();return d[Fe]=o,d[W]=140|r,(null!==u||e&&2048&e[W])&&(d[W]|=2048),Np(d),d[Ce]=d[Gr]=e,d[we]=n,d[yr]=s||e&&e[yr],d[z]=a||e&&e[z],d[zr]=l||e&&e[zr]||null,d[Qe]=i,d[oi]=function FM(){return kM++}(),d[Nn]=c,d[gp]=u,d[Ae]=2==t.type?e[Ae]:d,d}function fo(e,t,n,r,o){let i=e.data[t];if(null===i)i=function Nc(e,t,n,r,o){const i=Fp(),s=Cu(),l=e.data[t]=function IS(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return function Yr(){return null!==$.skipHydrationRootTNode}()&&(a|=128),{type:n,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:t,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,n,t,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,t,n,r,o),function VE(){return $.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function si(){const e=$.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return an(i,!0),i}function Ii(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;iQ&&Am(e,t,Q,!1),sn(a?2:0,o),a)i.runInContext(n,r,o);else{const u=je(null);try{n(r,o)}finally{je(u)}}}finally{a&&null===t[Ps]&&Tm(t,Ps),_r(s),sn(a?3:1,o)}}function Rc(e,t,n){if(fu(t)){const r=je(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;snull;function $m(e,t,n,r){for(let o in e)if(e.hasOwnProperty(o)){n=null===n?{}:n;const i=e[o];null===r?Hm(n,t,o,i):r.hasOwnProperty(o)&&Hm(n,t,r[o],i)}return n}function Hm(e,t,n,r){e.hasOwnProperty(n)?e[n].push(t,r):e[n]=[t,r]}function bt(e,t,n,r,o,i,s,a){const l=dt(t,n);let c,u=t.inputs;!a&&null!=u&&(c=u[r])?($c(e,n,c,r,o),vr(t)&&function NS(e,t){const n=ft(t,e);16&n[W]||(n[W]|=64)}(n,t.index)):3&t.type&&(r=function AS(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,t.value||"",r):o,i.setProperty(l,r,o))}function kc(e,t,n,r){if(kp()){const o=null===r?null:{"":-1},i=function FS(e,t){const n=e.directiveRegistry;let r=null,o=null;if(n)for(let i=0;i0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,Ii(e,n,o.hostVars,G),o)}function dn(e,t,n,r,o,i){const s=dt(e,t);!function Lc(e,t,n,r,o,i,s){if(null==i)e.removeAttribute(t,o,n);else{const a=null==s?U(i):s(i,r||"",o);e.setAttribute(t,o,a,n)}}(t[z],s,i,e.value,n,r,o)}function BS(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a{class e{constructor(){this.all=new Set,this.queue=new Map}create(n,r,o){const i=typeof Zone>"u"?null:Zone.current,s=new yE(n,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[n,r]of this.queue)this.queue.delete(n),r?r.run(()=>n.run()):n.run()}get isQueueEmpty(){return 0===this.queue.size}}return e.\u0275prov=x({token:e,providedIn:"root",factory:()=>new e}),e})();function Sa(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s0&&jc(n)}}function jc(e){for(let r=Wu(e);null!==r;r=qu(r))for(let o=We;o0&&jc(i)}const n=e[T].components;if(null!==n)for(let r=0;r0&&jc(o)}}class Ai{get rootNodes(){const t=this._lView,n=t[T];return Ti(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get context(){return this._lView[we]}set context(t){this._lView[we]=t}get destroyed(){return 256==(256&this._lView[W])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[Ce];if(ct(t)){const n=t[ks],r=n?n.indexOf(this):-1;r>-1&&(Yu(t,r),Ks(n,r))}this._attachedToViewContainer=!1}Rg(this._lView[T],this._lView)}onDestroy(t){!function Pp(e,t){if(256==(256&e[W]))throw new M(911,!1);null===e[Wn]&&(e[Wn]=[]),e[Wn].push(t)}(this._lView,t)}markForCheck(){Si(this._cdRefInjectingView||this._lView)}detach(){this._lView[W]&=-129}reattach(){this._lView[W]|=128}detectChanges(){Ia(this._lView[T],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function XM(e,t){mi(e,t,t[z],2,null,null)}(this._lView[T],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new M(902,!1);this._appRef=t}}class tI extends Ai{constructor(t){super(t),this._view=t}detectChanges(){const t=this._view;Ia(t[T],t,t[we],!1)}checkNoChanges(){}get context(){return null}}class Qm extends Da{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=re(t);return new Ni(n,this.ngModule)}}function Km(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}class rI{constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=Ns(r);const o=this.injector.get(t,Tc,r);return o!==Tc||n===Tc?o:this.parentInjector.get(t,n,r)}}class Ni extends ym{get inputs(){return Km(this.componentDef.inputs)}get outputs(){return Km(this.componentDef.outputs)}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function J1(e){return e.map(K1).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}create(t,n,r,o){let i=(o=o||this.ngModule)instanceof un?o:o?.injector;i&&null!==this.componentDef.getStandaloneInjector&&(i=this.componentDef.getStandaloneInjector(i)||i);const s=i?new rI(t,i):t,a=s.get(Cm,null);if(null===a)throw new M(407,!1);const c={rendererFactory:a,sanitizer:s.get(iS,null),effectManager:s.get(Xm,null)},d=a.createRenderer(null,this.componentDef),f=this.componentDef.selectors[0][0]||"div",h=r?function wS(e,t,n,r){const i=r.get(wm,!1)||n===Ct.ShadowDom,s=e.selectRootElement(t,i);return function ES(e){Vm(e)}(s),s}(d,r,this.componentDef.encapsulation,s):aa(d,f,function nI(e){const t=e.toLowerCase();return"svg"===t?"svg":"math"===t?"math":null}(f)),p=this.componentDef.onPush?576:528,v=xc(0,null,null,1,0,null,null,null,null,null,null),w=Ma(null,v,null,p,null,null,c,d,s,null,null);let b,y;Mu(w);try{const S=this.componentDef;let k,Y=null;S.findHostDirectiveDefs?(k=[],Y=new Map,S.findHostDirectiveDefs(S,k,Y),k.push(S)):k=[S];const ge=function iI(e,t){const n=e[T],r=Q;return e[r]=t,fo(n,r,2,"#host",null)}(w,h),qo=function sI(e,t,n,r,o,i,s){const a=o[T];!function aI(e,t,n,r){for(const o of e)t.mergedAttrs=ti(t.mergedAttrs,o.hostAttrs);null!==t.mergedAttrs&&(Sa(t,t.mergedAttrs,!0),null!==n&&Ug(r,n,t))}(r,e,t,s);let l=null;null!==t&&(l=pm(t,o[zr]));const u=i.rendererFactory.createRenderer(t,n),c=Ma(o,Lm(n),null,n.onPush?64:16,o[e.index],e,i,u,null,null,l);return a.firstCreatePass&&Fc(a,e,r.length-1),ba(o,c),o[e.index]=c}(ge,h,S,k,w,c,d);y=Ap(v,Q),h&&function uI(e,t,n,r){if(r)cu(e,n,["ng-version",sS.full]);else{const{attrs:o,classes:i}=function eE(e){const t=[],n=[];let r=1,o=2;for(;r0&&Bg(e,n,i.join(" "))}}(d,S,h,r),void 0!==n&&function cI(e,t,n){const r=e.projection=[];for(let o=0;o=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=ti(o.hostAttrs,n=ti(n,o.hostAttrs))}}(r)}function Bc(e){return e===Tn?{}:e===te?[]:e}function hI(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function pI(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function gI(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}function Aa(e){return!!Uc(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Uc(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function fn(e,t,n){return e[t]=n}function Je(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function Sr(e,t,n,r){const o=Je(e,t,n);return Je(e,t+1,r)||o}function hn(e,t,n,r){const o=E();return Je(o,Xr(),t)&&(ee(),dn(_e(),o,e,t,n,r)),hn}function po(e,t,n,r){return Je(e,Xr(),n)?t+U(n)+r:G}function go(e,t,n,r,o,i){const a=Sr(e,function Rn(){return $.lFrame.bindingIndex}(),n,o);return On(2),a?t+U(n)+r+U(o)+i:G}function Bt(e,t,n,r,o,i,s,a){const l=E(),u=ee(),c=e+Q,d=u.firstCreatePass?function HI(e,t,n,r,o,i,s,a,l){const u=t.consts,c=fo(t,e,4,s||null,qn(u,a));kc(t,n,c,qn(u,l)),Us(t,c);const d=c.tView=xc(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,r,o,i,s):u.data[c];an(d,!1);const f=gy(u,l,d,e);Bs()&&ua(u,l,f,d),Ke(f,l),ba(l,l[c]=zm(f,l,f,d)),Fs(d)&&Oc(u,l,d),null!=s&&Pc(l,d,a)}let gy=function my(e,t,n,r){return Xn(!0),t[z].createComment("")};function A(e,t,n){const r=E();return Je(r,Xr(),t)&&bt(ee(),_e(),r,e,t,r[z],n,!1),A}function Yc(e,t,n,r,o){const s=o?"class":"style";$c(e,n,t.inputs[s],s,r)}function g(e,t,n,r){const o=E(),i=ee(),s=Q+e,a=o[z],l=i.firstCreatePass?function GI(e,t,n,r,o,i){const s=t.consts,l=fo(t,e,2,r,qn(s,o));return kc(t,n,l,qn(s,i)),null!==l.attrs&&Sa(l,l.attrs,!1),null!==l.mergedAttrs&&Sa(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(s,i,o,t,n,r):i.data[s],u=yy(i,o,l,a,t,e);o[s]=u;const c=Fs(l);return an(l,!0),Ug(a,u,l),32!=(32&l.flags)&&Bs()&&ua(i,o,u,l),0===function AE(){return $.lFrame.elementDepthCount}()&&Ke(u,o),function NE(){$.lFrame.elementDepthCount++}(),c&&(Oc(i,o,l),Rc(i,l,o)),null!==r&&Pc(o,l),g}function m(){let e=qe();Cu()?function _u(){$.lFrame.isParent=!1}():(e=e.parent,an(e,!1));const t=e;(function OE(e){return $.skipHydrationRootTNode===e})(t)&&function FE(){$.skipHydrationRootTNode=null}(),function RE(){$.lFrame.elementDepthCount--}();const n=ee();return n.firstCreatePass&&(Us(n,e),fu(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function QE(e){return 0!=(8&e.flags)}(t)&&Yc(n,t,E(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function KE(e){return 0!=(16&e.flags)}(t)&&Yc(n,t,E(),t.stylesWithoutHost,!1),m}function oe(e,t,n,r){return g(e,t,n,r),m(),oe}let yy=(e,t,n,r,o,i)=>(Xn(!0),aa(r,o,function Wp(){return $.lFrame.currentNamespace}()));function ki(){return E()}function Fi(e){return!!e&&"function"==typeof e.then}function _y(e){return!!e&&"function"==typeof e.subscribe}function P(e,t,n,r){const o=E(),i=ee(),s=qe();return function wy(e,t,n,r,o,i,s){const a=Fs(r),u=e.firstCreatePass&&qm(e),c=t[we],d=Wm(t);let f=!0;if(3&r.type||s){const v=dt(r,t),w=s?s(v):v,b=d.length,y=s?k=>s(me(k[r.index])):r.index;let S=null;if(!s&&a&&(S=function QI(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;il?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==S)(S.__ngLastListenerFn__||S).__ngNextListenerFn__=i,S.__ngLastListenerFn__=i,f=!1;else{i=My(r,t,c,i,!1);const k=n.listen(w,o,i);d.push(i,k),u&&u.push(o,y,b,b+1)}}else i=My(r,t,c,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const v=p.length;if(v)for(let w=0;w-1?ft(e.index,t):t);let l=Ey(t,n,r,s),u=i.__ngNextListenerFn__;for(;u;)l=Ey(t,n,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function pn(e=1){return function BE(e){return($.lFrame.contextLView=function UE(e,t){for(;e>0;)t=t[Gr],e--;return t}(e,$.lFrame.contextLView))[we]}(e)}function xa(e,t,n,r,o){const i=E(),s=po(i,t,n,r);return s!==G&&bt(ee(),_e(),i,e,s,i[z],o,!1),xa}function ka(e,t){return e<<17|t<<2}function Kn(e){return e>>17&32767}function Kc(e){return 2|e}function Ir(e){return(131068&e)>>2}function Jc(e,t){return-131069&e|t<<2}function ed(e){return 1|e}function xy(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?Kn(i):Ir(i),l=!1;for(;0!==a&&(!1===l||s);){const c=e[a+1];sT(e[a],t)&&(l=!0,e[a+1]=r?ed(c):Kc(c)),a=r?Kn(c):Ir(c)}l&&(e[n+1]=r?Kc(i):ed(i))}function sT(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&ro(e,t)>=0}function Fa(e,t){return function Ut(e,t,n,r){const o=E(),i=ee(),s=On(2);i.firstUpdatePass&&function Uy(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[rt()],s=function By(e,t){return t>=e.expandoStartIndex}(e,n);(function qy(e,t){return 0!=(e.flags&(t?8:16))})(i,r)&&null===t&&!s&&(t=!1),t=function gT(e,t,n,r){const o=function wu(e){const t=$.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=Li(n=td(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=td(o,e,t,n,r),null===i){let l=function mT(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==Ir(r))return e[Kn(r)]}(e,t,r);void 0!==l&&Array.isArray(l)&&(l=td(null,e,t,l[1],r),l=Li(l,t.attrs,r),function yT(e,t,n,r){e[Kn(n?t.classBindings:t.styleBindings)]=r}(e,t,r,l))}else i=function vT(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0)&&(u=!0)):c=n,o)if(0!==l){const f=Kn(e[a+1]);e[r+1]=ka(f,a),0!==f&&(e[f+1]=Jc(e[f+1],r)),e[a+1]=function nT(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=ka(a,0),0!==a&&(e[a+1]=Jc(e[a+1],r)),a=r;else e[r+1]=ka(l,0),0===a?a=r:e[l+1]=Jc(e[l+1],r),l=r;u&&(e[r+1]=Kc(e[r+1])),xy(e,c,r,!0),xy(e,c,r,!1),function iT(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&ro(i,t)>=0&&(n[r+1]=ed(n[r+1]))}(t,c,e,r,i),s=ka(a,l),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==G&&Je(o,s,t)&&function Gy(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const l=e.data,u=l[a+1],c=function rT(e){return 1==(1&e)}(u)?Wy(l,t,n,o,Ir(u),s):void 0;La(c)||(La(i)||function tT(e){return 2==(2&e)}(u)&&(i=Wy(l,null,n,o,a,s)),function sb(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:ht.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=ht.Important),e.setStyle(n,r,o,i))}}(r,s,Hs(rt(),n),o,i))}(i,i.data[rt()],o,o[z],e,o[s+1]=function wT(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ke(Qn(e)))),e}(t,n),r,s)}(e,t,null,!0),Fa}function td(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const l=e[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[o+1];f===G&&(f=d?te:void 0);let h=d?xu(f,r):c===r?f:void 0;if(u&&!La(h)&&(h=xu(l,r)),La(h)&&(a=h,s))return a;const p=e[o+1];o=s?Kn(p):Ir(p)}if(null!==t){let l=i?t.residualClasses:t.residualStyles;null!=l&&(a=xu(l,r))}return a}function La(e){return void 0!==e}function C(e,t=""){const n=E(),r=ee(),o=e+Q,i=r.firstCreatePass?fo(r,o,1,t,null):r.data[o],s=Zy(r,n,i,t,e);n[o]=s,Bs()&&ua(r,n,s,i),an(i,!1)}let Zy=(e,t,n,r,o)=>(Xn(!0),function sa(e,t){return e.createText(t)}(t[z],r));function K(e){return Be("",e,""),K}function Be(e,t,n){const r=E(),o=po(r,e,t,n);return o!==G&&Fn(r,rt(),o),Be}function Va(e,t,n,r,o){const i=E(),s=go(i,e,t,n,r,o);return s!==G&&Fn(i,rt(),s),Va}const Tr=void 0;var zT=["en",[["a","p"],["AM","PM"],Tr],[["AM","PM"],Tr,Tr],[["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"]],Tr,[["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"]],Tr,[["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}",Tr,"{1} 'at' {0}",Tr],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function UT(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Eo={};function ot(e){const t=function WT(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=pv(t);if(n)return n;const r=t.split("-")[0];if(n=pv(r),n)return n;if("en"===r)return zT;throw new M(701,!1)}function pv(e){return e in Eo||(Eo[e]=he.ng&&he.ng.common&&he.ng.common.locales&&he.ng.common.locales[e]),Eo[e]}var N=(()=>((N=N||{})[N.LocaleId=0]="LocaleId",N[N.DayPeriodsFormat=1]="DayPeriodsFormat",N[N.DayPeriodsStandalone=2]="DayPeriodsStandalone",N[N.DaysFormat=3]="DaysFormat",N[N.DaysStandalone=4]="DaysStandalone",N[N.MonthsFormat=5]="MonthsFormat",N[N.MonthsStandalone=6]="MonthsStandalone",N[N.Eras=7]="Eras",N[N.FirstDayOfWeek=8]="FirstDayOfWeek",N[N.WeekendRange=9]="WeekendRange",N[N.DateFormat=10]="DateFormat",N[N.TimeFormat=11]="TimeFormat",N[N.DateTimeFormat=12]="DateTimeFormat",N[N.NumberSymbols=13]="NumberSymbols",N[N.NumberFormats=14]="NumberFormats",N[N.CurrencyCode=15]="CurrencyCode",N[N.CurrencySymbol=16]="CurrencySymbol",N[N.CurrencyName=17]="CurrencyName",N[N.Currencies=18]="Currencies",N[N.Directionality=19]="Directionality",N[N.PluralCase=20]="PluralCase",N[N.ExtraData=21]="ExtraData",N))();const Mo="en-US";let gv=Mo;function od(e,t,n,r,o){if(e=B(e),Array.isArray(e))for(let i=0;i>20;if(Er(e)||!e.multi){const h=new ai(l,o,D),p=sd(a,t,o?c:c+f,d);-1===p?(Ru(Ys(u,s),i,a),id(i,e,t.length),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=sd(a,t,c+f,d),p=sd(a,t,c,c+f),w=p>=0&&n[p];if(o&&!w||!o&&!(h>=0&&n[h])){Ru(Ys(u,s),i,a);const b=function UA(e,t,n,r,o){const i=new ai(e,n,D);return i.multi=[],i.index=t,i.componentProviders=0,Hv(i,o,r&&!n),i}(o?BA:jA,n.length,o,r,l);!o&&w&&(n[p].providerFactory=b),id(i,e,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(b),s.push(b)}else id(i,e,h>-1?h:p,Hv(n[o?p:h],l,!o&&r));!o&&r&&w&&n[p].componentProviders++}}}function id(e,t,n,r){const o=Er(t),i=function Fb(e){return!!e.useClass}(t);if(o||i){const l=(i?B(t.useClass):t).prototype.ngOnDestroy;if(l){const u=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const c=u.indexOf(n);-1===c?u.push(n,[r,l]):u[c+1].push(r,l)}else u.push(n,l)}}}function Hv(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function sd(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function HA(e,t,n){const r=ee();if(r.firstCreatePass){const o=jt(e);od(n,r.data,r.blueprint,o,!0),od(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class bo{}class jv{}class ld extends bo{constructor(t,n,r){super(),this._parent=n,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new Qm(this);const o=Dt(t);this._bootstrapComponents=kn(o.bootstrap),this._r3Injector=xm(t,n,[{provide:bo,useValue:this},{provide:Da,useValue:this.componentFactoryResolver},...r],ke(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class ud extends jv{constructor(t){super(),this.moduleType=t}create(t){return new ld(this.moduleType,t,[])}}class Bv extends bo{constructor(t){super(),this.componentFactoryResolver=new Qm(this),this.instance=null;const n=new gc([...t.providers,{provide:bo,useValue:this},{provide:Da,useValue:this.componentFactoryResolver}],t.parent||ga(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function cd(e,t,n=null){return new Bv({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}let WA=(()=>{class e{constructor(n){this._injector=n,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n.id)){const r=im(0,n.type),o=r.length>0?cd([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n.id,o)}return this.cachedInjectors.get(n.id)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}}return e.\u0275prov=x({token:e,providedIn:"environment",factory:()=>new e(R(un))}),e})();function Uv(e){e.getStandaloneInjector=t=>t.get(WA).getOrCreateStandaloneInjector(e)}function fd(e,t,n){const r=nt()+e,o=E();return o[r]===G?fn(o,r,n?t.call(n):t()):function Ri(e,t){return e[t]}(o,r)}function Ua(e,t,n,r){return function Xv(e,t,n,r,o,i){const s=t+n;return Je(e,s,o)?fn(e,s+1,i?r.call(i,o):r(o)):Ui(e,s+1)}(E(),nt(),e,t,n,r)}function Ui(e,t){const n=e[t];return n===G?void 0:n}function Jn(e,t){const n=ee();let r;const o=e+Q;n.firstCreatePass?(r=function u2(e,t){if(t)for(let n=t.length-1;n>=0;n--){const r=t[n];if(e===r.name)return r}}(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=Cr(r.type)),s=at(D);try{const a=Zs(!1),l=i();return Zs(a),function UI(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}(n,E(),o,l),l}finally{at(s)}}function er(e,t,n,r){const o=e+Q,i=E(),s=function Zr(e,t){return e[t]}(i,o);return function zi(e,t){return e[T].data[t].pure}(i,o)?function Qv(e,t,n,r,o,i,s){const a=t+n;return Sr(e,a,o,i)?fn(e,a+2,s?r.call(s,o,i):r(o,i)):Ui(e,a+2)}(i,nt(),t,s.transform,n,r,s):s.transform(n,r)}function hd(e){return t=>{setTimeout(e,void 0,t)}}const Me=class p2 extends bn{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const l=t;o=l.next?.bind(l),i=l.error?.bind(l),s=l.complete?.bind(l)}this.__isAsync&&(i=hd(i),o&&(o=hd(o)),s&&(s=hd(s)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof Tt&&t.add(a),a}};function g2(){return this._results[Symbol.iterator]()}class pd{get changes(){return this._changes||(this._changes=new Me)}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const n=pd.prototype;n[Symbol.iterator]||(n[Symbol.iterator]=g2)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){const r=this;r.dirty=!1;const o=function Pt(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function uM(e,t,n){if(e.length!==t.length)return!1;for(let r=0;r{class e{}return e.__NG_ELEMENT_ID__=v2,e})();const m2=Ln,y2=class extends m2{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n,null)}createEmbeddedViewImpl(t,n,r){const o=this._declarationTContainer.tView,i=Ma(this._declarationLView,o,t,16,null,o.declTNode,null,null,null,n||null,r||null);i[ri]=this._declarationLView[this._declarationTContainer.index];const a=this._declarationLView[nn];return null!==a&&(i[nn]=a.createEmbeddedView(o)),Hc(o,i,t),new Ai(i)}};function v2(){return za(qe(),E())}function za(e,t){return 4&e.type?new y2(t,e,uo(e,t)):null}let Gt=(()=>{class e{}return e.__NG_ELEMENT_ID__=b2,e})();function b2(){return sC(qe(),E())}const S2=Gt,oC=class extends S2{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return uo(this._hostTNode,this._hostLView)}get injector(){return new Kr(this._hostTNode,this._hostLView)}get parentInjector(){const t=Nu(this._hostTNode,this._hostLView);if(Xp(t)){const n=qs(t,this._hostLView),r=Ws(t);return new Kr(n[T].data[r+8],n)}return new Kr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=iC(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-We}createEmbeddedView(t,n,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=t.createEmbeddedViewImpl(n||{},i,null);return this.insertImpl(a,o,false),a}createComponent(t,n,r,o,i){const s=t&&!function ui(e){return"function"==typeof e}(t);let a;if(s)a=n;else{const v=n||{};a=v.index,r=v.injector,o=v.projectableNodes,i=v.environmentInjector||v.ngModuleRef}const l=s?t:new Ni(re(t)),u=r||this.parentInjector;if(!i&&null==l.ngModule){const w=(s?u:this.parentInjector).get(un,null);w&&(i=w)}re(l.componentType??{});const h=l.create(u,o,null,i);return this.insertImpl(h.hostView,a,false),h}insert(t,n){return this.insertImpl(t,n,!1)}insertImpl(t,n,r){const o=t._lView,i=o[T];if(function SE(e){return ct(e[Ce])}(o)){const l=this.indexOf(t);if(-1!==l)this.detach(l);else{const u=o[Ce],c=new oC(u,u[Qe],u[Ce]);c.detach(c.indexOf(t))}}const s=this._adjustIndex(n),a=this._lContainer;if(function KM(e,t,n,r){const o=We+r,i=n.length;r>0&&(n[o-1][Ht]=t),r0)r.push(s[a/2]);else{const u=i[a+1],c=t[-l];for(let d=We;d{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r}),this.appInits=I(Id,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=o();if(Fi(i))n.push(i);else if(_y(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),RC=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();const yn=new O("LocaleId",{providedIn:"root",factory:()=>I(yn,L.Optional|L.SkipSelf)||function rN(){return typeof $localize<"u"&&$localize.locale||Mo}()});class iN{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}let OC=(()=>{class e{compileModuleSync(n){return new ud(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=kn(Dt(n).declarations).reduce((s,a)=>{const l=re(a);return l&&s.push(new Ni(l)),s},[]);return new iN(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const lN=(()=>Promise.resolve(0))();function Ad(e){typeof Zone>"u"?lN.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function kC(...e){}class ve{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Me(!1),this.onMicrotaskEmpty=new Me(!1),this.onStable=new Me(!1),this.onError=new Me(!1),typeof Zone>"u")throw new M(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)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function uN(){let e=he.requestAnimationFrame,t=he.cancelAnimationFrame;if(typeof Zone<"u"&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function fN(e){const t=()=>{!function dN(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(he,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Rd(e),e.isCheckStableRunning=!0,Nd(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Rd(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return FC(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),LC(e)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return FC(e),n.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),LC(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Rd(e),Nd(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.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 M(909,!1)}static assertNotInAngularZone(){if(ve.isInAngularZone())throw new M(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,cN,kC,kC);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const cN={};function Nd(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 Rd(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function FC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function LC(e){e._nesting--,Nd(e)}class hN{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Me,this.onMicrotaskEmpty=new Me,this.onStable=new Me,this.onError=new Me}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}const VC=new O("",{providedIn:"root",factory:$C});function $C(){const e=I(ve);let t=!0;return function b1(...e){const t=Qo(e),n=function v1(e,t){return"number"==typeof Ql(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?At(r[0]):Hr(n)(xe(r,t)):en}(new be(o=>{t=e.isStable&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks,e.runOutsideAngular(()=>{o.next(t),o.complete()})}),new be(o=>{let i;e.runOutsideAngular(()=>{i=e.onStable.subscribe(()=>{ve.assertNotInAngularZone(),Ad(()=>{!t&&!e.hasPendingMacrotasks&&!e.hasPendingMicrotasks&&(t=!0,o.next(!0))})})});const s=e.onUnstable.subscribe(()=>{ve.assertInAngularZone(),t&&(t=!1,e.runOutsideAngular(()=>{o.next(!1)}))});return()=>{i.unsubscribe(),s.unsubscribe()}}).pipe(function S1(e={}){const{connector:t=(()=>new bn),resetOnError:n=!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},p=()=>{const v=s;h(),v?.unsubscribe()};return ze((v,w)=>{u++,!d&&!c&&f();const b=l=l??t();w.add(()=>{u--,0===u&&!d&&!c&&(a=Kl(p,o))}),b.subscribe(w),!s&&u>0&&(s=new Xo({next:y=>b.next(y),error:y=>{d=!0,f(),a=Kl(h,n,y),b.error(y)},complete:()=>{c=!0,f(),a=Kl(h,r),b.complete()}}),At(v).subscribe(s))})(i)}}()))}const HC=new O(""),qa=new O("");let xd,Od=(()=>{class e{constructor(n,r,o){this._ngZone=n,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,xd||(function pN(e){xd=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.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(),Ad(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Ad(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,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(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(R(ve),R(Pd),R(qa))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),Pd=(()=>{class e{constructor(){this._applications=new Map}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return xd?.findTestabilityInTree(this,n,r)??null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})(),tr=null;const jC=new O("AllowMultipleToken"),kd=new O("PlatformDestroyListeners"),Fd=new O("appBootstrapListener");class UC{constructor(t,n){this.name=t,this.token=n}}function GC(e,t,n=[]){const r=`Platform: ${t}`,o=new O(r);return(i=[])=>{let s=Ld();if(!s||s.injector.get(jC,!1)){const a=[...n,...i,{provide:o,useValue:!0}];e?e(a):function yN(e){if(tr&&!tr.get(jC,!1))throw new M(400,!1);(function BC(){!function gE(e){wp=e}(()=>{throw new M(600,!1)})})(),tr=e;const t=e.get(qC);(function zC(e){e.get(cm,null)?.forEach(n=>n())})(e)}(function WC(e=[],t){return cn.create({name:t,providers:[{provide:hc,useValue:"platform"},{provide:kd,useValue:new Set([()=>tr=null])},...e]})}(a,r))}return function CN(e){const t=Ld();if(!t)throw new M(401,!1);return t}()}}function Ld(){return tr?.get(qC)??null}let qC=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const o=function _N(e="zone.js",t){return"noop"===e?new hN:"zone.js"===e?new ve(t):e}(r?.ngZone,function ZC(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function GA(e,t,n){return new ld(e,t,n)}(n.moduleType,this.injector,function JC(e){return[{provide:ve,useFactory:e},{provide:Di,multi:!0,useFactory:()=>{const t=I(wN,{optional:!0});return()=>t.initialize()}},{provide:KC,useFactory:DN},{provide:VC,useFactory:$C}]}(()=>o)),s=i.injector.get(br,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:l=>{s.handleError(l)}});i.onDestroy(()=>{Za(this._modules,i),a.unsubscribe()})}),function YC(e,t,n){try{const r=n();return Fi(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(Td);return a.runInitializers(),a.donePromise.then(()=>(function mv(e){Nt(e,"Expected localeId to be defined"),"string"==typeof e&&(gv=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(yn,Mo)||Mo),this._moduleDoBootstrap(i),i))})})}bootstrapModule(n,r=[]){const o=XC({},r);return function gN(e,t,n){const r=new ud(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(To);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new M(-403,!1);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new M(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(kd,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(R(cn))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"platform"}),e})();function XC(e,t){return Array.isArray(t)?t.reduce(XC,e):{...e,...t}}let To=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=I(KC),this.componentTypes=[],this.components=[],this.isStable=I(VC),this._injector=I(un)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(n,r){const o=n instanceof ym;if(!this._injector.get(Td).done)throw!o&&function Br(e){const t=re(e)||Xe(e)||ut(e);return null!==t&&t.standalone}(n),new M(405,!1);let s;s=o?n:this._injector.get(Da).resolveComponentFactory(n),this.componentTypes.push(s.componentType);const a=function mN(e){return e.isBoundToModule}(s)?void 0:this._injector.get(bo),u=s.create(cn.NULL,[],r||s.selector,a),c=u.location.nativeElement,d=u.injector.get(HC,null);return d?.registerApplication(c),u.onDestroy(()=>{this.detachView(u.hostView),Za(this.components,u),d?.unregisterApplication(c)}),this._loadComponent(u),u}tick(){if(this._runningTick)throw new M(101,!1);try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this.internalErrorHandler(n)}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;Za(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n);const r=this._injector.get(Fd,[]);r.push(...this._bootstrapListeners),r.forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Za(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new M(406,!1);const n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Za(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const KC=new O("",{providedIn:"root",factory:()=>I(br).handleError.bind(void 0)});function DN(){const e=I(ve),t=I(br);return n=>e.runOutsideAngular(()=>t.handleError(n))}let wN=(()=>{class e{constructor(){this.zone=I(ve),this.applicationRef=I(To)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();let Ya=(()=>{class e{}return e.__NG_ELEMENT_ID__=MN,e})();function MN(e){return function bN(e,t,n){if(vr(e)&&!n){const r=ft(e.index,t);return new Ai(r,r)}return 47&e.type?new Ai(t[Ae],t):null}(qe(),E(),16==(16&e))}class r_{constructor(){}supports(t){return Aa(t)}create(t){return new RN(t)}}const NN=(e,t)=>t;class RN{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||NN}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new ON(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new o_),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new o_),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class ON{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class PN{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class o_{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new PN,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function i_(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);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 kN(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class kN{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function a_(){return new Ka([new r_])}let Ka=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||a_()),deps:[[e,new ta,new ea]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new M(901,!1)}}return e.\u0275prov=x({token:e,providedIn:"root",factory:a_}),e})();function l_(){return new Zi([new s_])}let Zi=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||l_()),deps:[[e,new ta,new ea]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new M(901,!1)}}return e.\u0275prov=x({token:e,providedIn:"root",factory:l_}),e})();const VN=GC(null,"core",[]);let $N=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(R(To))},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({}),e})(),p_=(()=>{class e{get whenAllTasksComplete(){return 0===this.collection.size&&this.complete(),this.promise}constructor(){this.taskId=0,this.collection=new Set,this.ngZone=I(ve),this.completed=!1,this.ngZone.runOutsideAngular(()=>{this.promise=new Promise(n=>{this.resolve=n})})}add(){if(this.completed)return-1;const n=this.taskId++;return this.collection.add(n),n}remove(n){this.completed||(this.collection.delete(n),0===this.collection.size&&this.complete())}ngOnDestroy(){this.complete(),this.collection.clear()}complete(){this.completed=!0,this.resolve()}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Ao(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let zd=null;function nr(){return zd}class QN{}const St=new O("DocumentToken");let Gd=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(JN)},providedIn:"platform"}),e})();const KN=new O("Location Initialized");let JN=(()=>{class e extends Gd{constructor(){super(),this._doc=I(St),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return nr().getBaseHref(this._doc)}onPopState(n){const r=nr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=nr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(n){this._location.pathname=n}pushState(n,r,o){this._history.pushState(n,r,o)}replaceState(n,r,o){this._history.replaceState(n,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return new e},providedIn:"platform"}),e})();function Wd(e,t){if(0==e.length)return t;if(0==t.length)return e;let n=0;return e.endsWith("/")&&n++,t.startsWith("/")&&n++,2==n?e+t.substring(1):1==n?e+t:e+"/"+t}function m_(e){const t=e.match(/#|\?|$/),n=t&&t.index||e.length;return e.slice(0,n-("/"===e[n-1]?1:0))+e.slice(n)}function Vn(e){return e&&"?"!==e[0]?"?"+e:e}let rr=(()=>{class e{historyGo(n){throw new Error("Not implemented")}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(v_)},providedIn:"root"}),e})();const y_=new O("appBaseHref");let v_=(()=>{class e extends rr{constructor(n,r){super(),this._platformLocation=n,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??I(St).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return Wd(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+Vn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+Vn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+Vn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(R(Gd),R(y_,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),C_=(()=>{class e extends rr{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=Wd(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+Vn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+Vn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(n=0){this._platformLocation.historyGo?.(n)}}return e.\u0275fac=function(n){return new(n||e)(R(Gd),R(y_,8))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})(),qd=(()=>{class e{constructor(n){this._subject=new Me,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=n;const r=this._locationStrategy.getBaseHref();this._basePath=function nR(e){if(new RegExp("^(https?:)?//").test(e)){const[,n]=e.split(/\/\/[^\/]+/);return n}return e}(m_(__(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(n=!1){return this.normalize(this._locationStrategy.path(n))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+Vn(r))}normalize(n){return e.stripTrailingSlash(function tR(e,t){if(!e||!t.startsWith(e))return t;const n=t.substring(e.length);return""===n||["/",";","?","#"].includes(n[0])?n:t}(this._basePath,__(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._locationStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._locationStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Vn(r)),o)}replaceState(n,r="",o=null){this._locationStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+Vn(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(n=0){this._locationStrategy.historyGo?.(n)}onUrlChange(n){return this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)})),()=>{const r=this._urlChangeListeners.indexOf(n);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return e.normalizeQueryParams=Vn,e.joinWithSlash=Wd,e.stripTrailingSlash=m_,e.\u0275fac=function(n){return new(n||e)(R(rr))},e.\u0275prov=x({token:e,factory:function(){return function eR(){return new qd(R(rr))}()},providedIn:"root"}),e})();function __(e){return e.replace(/\/index.html$/,"")}var Se=(()=>((Se=Se||{})[Se.Format=0]="Format",Se[Se.Standalone=1]="Standalone",Se))(),X=(()=>((X=X||{})[X.Narrow=0]="Narrow",X[X.Abbreviated=1]="Abbreviated",X[X.Wide=2]="Wide",X[X.Short=3]="Short",X))(),De=(()=>((De=De||{})[De.Short=0]="Short",De[De.Medium=1]="Medium",De[De.Long=2]="Long",De[De.Full=3]="Full",De))(),F=(()=>((F=F||{})[F.Decimal=0]="Decimal",F[F.Group=1]="Group",F[F.List=2]="List",F[F.PercentSign=3]="PercentSign",F[F.PlusSign=4]="PlusSign",F[F.MinusSign=5]="MinusSign",F[F.Exponential=6]="Exponential",F[F.SuperscriptingExponent=7]="SuperscriptingExponent",F[F.PerMille=8]="PerMille",F[F.Infinity=9]="Infinity",F[F.NaN=10]="NaN",F[F.TimeSeparator=11]="TimeSeparator",F[F.CurrencyDecimal=12]="CurrencyDecimal",F[F.CurrencyGroup=13]="CurrencyGroup",F))();function el(e,t){return Ft(ot(e)[N.DateFormat],t)}function tl(e,t){return Ft(ot(e)[N.TimeFormat],t)}function nl(e,t){return Ft(ot(e)[N.DateTimeFormat],t)}function kt(e,t){const n=ot(e),r=n[N.NumberSymbols][t];if(typeof r>"u"){if(t===F.CurrencyDecimal)return n[N.NumberSymbols][F.Decimal];if(t===F.CurrencyGroup)return n[N.NumberSymbols][F.Group]}return r}function w_(e){if(!e[N.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[N.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Ft(e,t){for(let n=t;n>-1;n--)if(typeof e[n]<"u")return e[n];throw new Error("Locale data API: locale data undefined")}function Yd(e){const[t,n]=e.split(":");return{hours:+t,minutes:+n}}const gR=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Yi={},mR=/((?:[^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 $e=(()=>(($e=$e||{})[$e.Short=0]="Short",$e[$e.ShortGMT=1]="ShortGMT",$e[$e.Long=2]="Long",$e[$e.Extended=3]="Extended",$e))(),V=(()=>((V=V||{})[V.FullYear=0]="FullYear",V[V.Month=1]="Month",V[V.Date=2]="Date",V[V.Hours=3]="Hours",V[V.Minutes=4]="Minutes",V[V.Seconds=5]="Seconds",V[V.FractionalSeconds=6]="FractionalSeconds",V[V.Day=7]="Day",V))(),Z=(()=>((Z=Z||{})[Z.DayPeriods=0]="DayPeriods",Z[Z.Days=1]="Days",Z[Z.Months=2]="Months",Z[Z.Eras=3]="Eras",Z))();function yR(e,t,n,r){let o=function SR(e){if(b_(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 rl(o,i-1,s)}const n=parseFloat(e);if(!isNaN(e-n))return new Date(n);let r;if(r=e.match(gR))return function IR(e){const t=new Date(0);let n=0,r=0;const o=e[8]?t.setUTCFullYear:t.setFullYear,i=e[8]?t.setUTCHours:t.setHours;e[9]&&(n=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(t,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-n,a=Number(e[5]||0)-r,l=Number(e[6]||0),u=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return i.call(t,s,a,l,u),t}(r)}const t=new Date(e);if(!b_(t))throw new Error(`Unable to convert "${e}" into a date`);return t}(e);t=$n(n,t)||t;let a,s=[];for(;t;){if(a=mR.exec(t),!a){s.push(t);break}{s=s.concat(a.slice(1));const c=s.pop();if(!c)break;t=c}}let l=o.getTimezoneOffset();r&&(l=M_(r,l),o=function bR(e,t,n){const r=n?-1:1,o=e.getTimezoneOffset();return function MR(e,t){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+t),e}(e,r*(M_(t,o)-o))}(o,r,!0));let u="";return s.forEach(c=>{const d=function ER(e){if(Qd[e])return Qd[e];let t;switch(e){case"G":case"GG":case"GGG":t=pe(Z.Eras,X.Abbreviated);break;case"GGGG":t=pe(Z.Eras,X.Wide);break;case"GGGGG":t=pe(Z.Eras,X.Narrow);break;case"y":t=Oe(V.FullYear,1,0,!1,!0);break;case"yy":t=Oe(V.FullYear,2,0,!0,!0);break;case"yyy":t=Oe(V.FullYear,3,0,!1,!0);break;case"yyyy":t=Oe(V.FullYear,4,0,!1,!0);break;case"Y":t=al(1);break;case"YY":t=al(2,!0);break;case"YYY":t=al(3);break;case"YYYY":t=al(4);break;case"M":case"L":t=Oe(V.Month,1,1);break;case"MM":case"LL":t=Oe(V.Month,2,1);break;case"MMM":t=pe(Z.Months,X.Abbreviated);break;case"MMMM":t=pe(Z.Months,X.Wide);break;case"MMMMM":t=pe(Z.Months,X.Narrow);break;case"LLL":t=pe(Z.Months,X.Abbreviated,Se.Standalone);break;case"LLLL":t=pe(Z.Months,X.Wide,Se.Standalone);break;case"LLLLL":t=pe(Z.Months,X.Narrow,Se.Standalone);break;case"w":t=Xd(1);break;case"ww":t=Xd(2);break;case"W":t=Xd(1,!0);break;case"d":t=Oe(V.Date,1);break;case"dd":t=Oe(V.Date,2);break;case"c":case"cc":t=Oe(V.Day,1);break;case"ccc":t=pe(Z.Days,X.Abbreviated,Se.Standalone);break;case"cccc":t=pe(Z.Days,X.Wide,Se.Standalone);break;case"ccccc":t=pe(Z.Days,X.Narrow,Se.Standalone);break;case"cccccc":t=pe(Z.Days,X.Short,Se.Standalone);break;case"E":case"EE":case"EEE":t=pe(Z.Days,X.Abbreviated);break;case"EEEE":t=pe(Z.Days,X.Wide);break;case"EEEEE":t=pe(Z.Days,X.Narrow);break;case"EEEEEE":t=pe(Z.Days,X.Short);break;case"a":case"aa":case"aaa":t=pe(Z.DayPeriods,X.Abbreviated);break;case"aaaa":t=pe(Z.DayPeriods,X.Wide);break;case"aaaaa":t=pe(Z.DayPeriods,X.Narrow);break;case"b":case"bb":case"bbb":t=pe(Z.DayPeriods,X.Abbreviated,Se.Standalone,!0);break;case"bbbb":t=pe(Z.DayPeriods,X.Wide,Se.Standalone,!0);break;case"bbbbb":t=pe(Z.DayPeriods,X.Narrow,Se.Standalone,!0);break;case"B":case"BB":case"BBB":t=pe(Z.DayPeriods,X.Abbreviated,Se.Format,!0);break;case"BBBB":t=pe(Z.DayPeriods,X.Wide,Se.Format,!0);break;case"BBBBB":t=pe(Z.DayPeriods,X.Narrow,Se.Format,!0);break;case"h":t=Oe(V.Hours,1,-12);break;case"hh":t=Oe(V.Hours,2,-12);break;case"H":t=Oe(V.Hours,1);break;case"HH":t=Oe(V.Hours,2);break;case"m":t=Oe(V.Minutes,1);break;case"mm":t=Oe(V.Minutes,2);break;case"s":t=Oe(V.Seconds,1);break;case"ss":t=Oe(V.Seconds,2);break;case"S":t=Oe(V.FractionalSeconds,1);break;case"SS":t=Oe(V.FractionalSeconds,2);break;case"SSS":t=Oe(V.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":t=il($e.Short);break;case"ZZZZZ":t=il($e.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":t=il($e.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":t=il($e.Long);break;default:return null}return Qd[e]=t,t}(c);u+=d?d(o,n,l):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),u}function rl(e,t,n){const r=new Date(0);return r.setFullYear(e,t,n),r.setHours(0,0,0),r}function $n(e,t){const n=function rR(e){return ot(e)[N.LocaleId]}(e);if(Yi[n]=Yi[n]||{},Yi[n][t])return Yi[n][t];let r="";switch(t){case"shortDate":r=el(e,De.Short);break;case"mediumDate":r=el(e,De.Medium);break;case"longDate":r=el(e,De.Long);break;case"fullDate":r=el(e,De.Full);break;case"shortTime":r=tl(e,De.Short);break;case"mediumTime":r=tl(e,De.Medium);break;case"longTime":r=tl(e,De.Long);break;case"fullTime":r=tl(e,De.Full);break;case"short":const o=$n(e,"shortTime"),i=$n(e,"shortDate");r=ol(nl(e,De.Short),[o,i]);break;case"medium":const s=$n(e,"mediumTime"),a=$n(e,"mediumDate");r=ol(nl(e,De.Medium),[s,a]);break;case"long":const l=$n(e,"longTime"),u=$n(e,"longDate");r=ol(nl(e,De.Long),[l,u]);break;case"full":const c=$n(e,"fullTime"),d=$n(e,"fullDate");r=ol(nl(e,De.Full),[c,d])}return r&&(Yi[n][t]=r),r}function ol(e,t){return t&&(e=e.replace(/\{([^}]+)}/g,function(n,r){return null!=t&&r in t?t[r]:n})),e}function qt(e,t,n="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,i=n));let s=String(e);for(;s.length0||a>-n)&&(a+=n),e===V.Hours)0===a&&-12===n&&(a=12);else if(e===V.FractionalSeconds)return function vR(e,t){return qt(e,3).substring(0,t)}(a,t);const l=kt(s,F.MinusSign);return qt(a,t,l,r,o)}}function pe(e,t,n=Se.Format,r=!1){return function(o,i){return function _R(e,t,n,r,o,i){switch(n){case Z.Months:return function sR(e,t,n){const r=ot(e),i=Ft([r[N.MonthsFormat],r[N.MonthsStandalone]],t);return Ft(i,n)}(t,o,r)[e.getMonth()];case Z.Days:return function iR(e,t,n){const r=ot(e),i=Ft([r[N.DaysFormat],r[N.DaysStandalone]],t);return Ft(i,n)}(t,o,r)[e.getDay()];case Z.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(i){const u=function cR(e){const t=ot(e);return w_(t),(t[N.ExtraData][2]||[]).map(r=>"string"==typeof r?Yd(r):[Yd(r[0]),Yd(r[1])])}(t),c=function dR(e,t,n){const r=ot(e);w_(r);const i=Ft([r[N.ExtraData][0],r[N.ExtraData][1]],t)||[];return Ft(i,n)||[]}(t,o,r),d=u.findIndex(f=>{if(Array.isArray(f)){const[h,p]=f,v=s>=h.hours&&a>=h.minutes,w=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case $e.Short:return(o>=0?"+":"")+qt(s,2,i)+qt(Math.abs(o%60),2,i);case $e.ShortGMT:return"GMT"+(o>=0?"+":"")+qt(s,1,i);case $e.Long:return"GMT"+(o>=0?"+":"")+qt(s,2,i)+":"+qt(Math.abs(o%60),2,i);case $e.Extended:return 0===r?"Z":(o>=0?"+":"")+qt(s,2,i)+":"+qt(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}const DR=0,sl=4;function E_(e){return rl(e.getFullYear(),e.getMonth(),e.getDate()+(sl-e.getDay()))}function Xd(e,t=!1){return function(n,r){let o;if(t){const i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{const i=E_(n),s=function wR(e){const t=rl(e,DR,1).getDay();return rl(e,0,1+(t<=sl?sl:sl+7)-t)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return qt(o,e,kt(r,F.MinusSign))}}function al(e,t=!1){return function(n,r){return qt(E_(n).getFullYear(),e,kt(r,F.MinusSign),t)}}const Qd={};function M_(e,t){e=e.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(n)?t:n}function b_(e){return e instanceof Date&&!isNaN(e.valueOf())}function A_(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}const rf=/\s+/,N_=[];let R_=(()=>{class e{constructor(n,r,o,i){this._iterableDiffers=n,this._keyValueDiffers=r,this._ngEl=o,this._renderer=i,this.initialClasses=N_,this.stateMap=new Map}set klass(n){this.initialClasses=null!=n?n.trim().split(rf):N_}set ngClass(n){this.rawClass="string"==typeof n?n.trim().split(rf):n}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(const r of n)this._updateState(r,!0);else if(null!=n)for(const r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){const o=this.stateMap.get(n);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const n of this.stateMap){const r=n[0],o=n[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(n,r){(n=n.trim()).length>0&&n.split(rf).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return e.\u0275fac=function(n){return new(n||e)(D(Ka),D(Zi),D(Mt),D(xn))},e.\u0275dir=H({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"},standalone:!0}),e})();class jR{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,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 or=(()=>{class e{set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new jR(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),P_(a,o)}});for(let o=0,i=r.length;o{P_(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(D(Gt),D(Ln),D(Ka))},e.\u0275dir=H({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),e})();function P_(e,t){e.context.$implicit=t.item}let sf=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new BR,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){x_("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){x_("ngIfElse",n),this._elseTemplateRef=n,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(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(D(Gt),D(Ln))},e.\u0275dir=H({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),e})();class BR{constructor(){this.$implicit=null,this.ngIf=null}}function x_(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${ke(t)}'.`)}const t3=new O("DATE_PIPE_DEFAULT_TIMEZONE"),n3=new O("DATE_PIPE_DEFAULT_OPTIONS");let No=(()=>{class e{constructor(n,r,o){this.locale=n,this.defaultTimezone=r,this.defaultOptions=o}transform(n,r,o,i){if(null==n||""===n||n!=n)return null;try{return yR(n,r??this.defaultOptions?.dateFormat??"mediumDate",i||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw function Zt(e,t){return new M(2100,!1)}()}}}return e.\u0275fac=function(n){return new(n||e)(D(yn,16),D(t3,24),D(n3,24))},e.\u0275pipe=lt({name:"date",type:e,pure:!0,standalone:!0}),e})(),f3=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({}),e})();function V_(e){return"server"===e}let m3=(()=>{class e{}return e.\u0275prov=x({token:e,providedIn:"root",factory:()=>new y3(R(St),window)}),e})();class y3{constructor(t,n){this.document=t,this.window=n,this.offset=()=>[0,0]}setOffset(t){this.offset=Array.isArray(t)?()=>t:t}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(t){this.supportsScrolling()&&this.window.scrollTo(t[0],t[1])}scrollToAnchor(t){if(!this.supportsScrolling())return;const n=function v3(e,t){const n=e.getElementById(t)||e.getElementsByName(t)[0];if(n)return n;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(t)||i.querySelector(`[name="${t}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,t);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(t){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}}scrollToElement(t){const n=t.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const t=$_(this.window.history)||$_(Object.getPrototypeOf(this.window.history));return!(!t||!t.writable&&!t.set)}catch{return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch{return!1}}}function $_(e){return Object.getOwnPropertyDescriptor(e,"scrollRestoration")}class H_{}class G3 extends QN{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class hf extends G3{static makeCurrent(){!function XN(e){zd||(zd=e)}(new hf)}onAndCancel(t,n,r){return t.addEventListener(n,r),()=>{t.removeEventListener(n,r)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function W3(){return Ki=Ki||document.querySelector("base"),Ki?Ki.getAttribute("href"):null}();return null==n?null:function q3(e){dl=dl||document.createElement("a"),dl.setAttribute("href",e);const t=dl.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){Ki=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return A_(document.cookie,t)}}let dl,Ki=null,Y3=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const pf=new O("EventManagerPlugins");let G_=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new M(5101,!1);return this._eventNameToPlugin.set(n,r),r}}return e.\u0275fac=function(n){return new(n||e)(R(pf),R(ve))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();class W_{constructor(t){this._doc=t}}const gf="ng-app-id";let q_=(()=>{class e{constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=V_(i),this.resetHostNodes()}addStyles(n){for(const r of n)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(n){for(const r of n)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const n=this.styleNodesInDOM;n&&(n.forEach(r=>r.remove()),n.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(n){this.hostNodes.add(n);for(const r of this.getAllStyles())this.addStyleToHost(n,r)}removeHost(n){this.hostNodes.delete(n)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(n){for(const r of this.hostNodes)this.addStyleToHost(r,n)}onStyleRemoved(n){const r=this.styleRef;r.get(n)?.elements?.forEach(o=>o.remove()),r.delete(n)}collectServerRenderedStyles(){const n=this.doc.head?.querySelectorAll(`style[${gf}="${this.appId}"]`);if(n?.length){const r=new Map;return n.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(n,r){const o=this.styleRef;if(o.has(n)){const i=o.get(n);return i.usage+=r,i.usage}return o.set(n,{usage:r,elements:[]}),r}getStyleElement(n,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===n)return o.delete(r),i.removeAttribute(gf),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(gf,this.appId),s}}addStyleToHost(n,r){const o=this.getStyleElement(n,r);n.appendChild(o);const i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const n=this.hostNodes;n.clear(),n.add(this.doc.head)}}return e.\u0275fac=function(n){return new(n||e)(R(St),R(ma),R(dm,8),R(Mr))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const mf={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/"},yf=/%COMP%/g,J3=new O("RemoveStylesOnCompDestory",{providedIn:"root",factory:()=>!1});function Y_(e,t){return t.map(n=>n.replace(yf,e))}let X_=(()=>{class e{constructor(n,r,o,i,s,a,l,u=null){this.eventManager=n,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=V_(a),this.defaultRenderer=new vf(n,s,l,this.platformIsServer)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===Ct.ShadowDom&&(r={...r,encapsulation:Ct.Emulated});const o=this.getOrCreateRenderer(n,r);return o instanceof K_?o.applyToHost(n):o instanceof Cf&&o.applyStyles(),o}getOrCreateRenderer(n,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 Ct.Emulated:i=new K_(l,u,r,this.appId,c,s,a,d);break;case Ct.ShadowDom:return new rO(l,u,n,r,s,a,this.nonce,d);default:i=new Cf(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(n){return new(n||e)(R(G_),R(q_),R(ma),R(J3),R(St),R(Mr),R(ve),R(dm))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();class vf{constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(t,n){return n?this.doc.createElementNS(mf[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Q_(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Q_(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new M(5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=mf[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=mf[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(ht.DashCase|ht.Important)?t.style.setProperty(n,r,o&ht.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&ht.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){if("string"==typeof t&&!(t=nr().getGlobalEventTarget(this.doc,t)))throw new Error(`Unsupported event target ${t} for event ${n}`);return this.eventManager.addEventListener(t,n,this.decoratePreventDefault(r))}decoratePreventDefault(t){return n=>{if("__ngUnwrap__"===n)return t;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))&&(n.preventDefault(),n.returnValue=!1)}}}function Q_(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class rO extends vf{constructor(t,n,r,o,i,s,a,l){super(t,i,s,l),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const u=Y_(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(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Cf extends vf{constructor(t,n,r,o,i,s,a,l){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestory=o,this.rendererUsageCount=0,this.styles=l?Y_(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 K_ extends Cf{constructor(t,n,r,o,i,s,a,l){const u=o+"-"+r.id;super(t,n,r,i,s,a,l,u),this.contentAttr=function eO(e){return"_ngcontent-%COMP%".replace(yf,e)}(u),this.hostAttr=function tO(e){return"_nghost-%COMP%".replace(yf,e)}(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}let oO=(()=>{class e extends W_{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(R(St))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const J_=["alt","control","meta","shift"],iO={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},sO={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let aO=(()=>{class e extends W_{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>nr().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.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."),J_.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(n,r){let o=iO[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),J_.forEach(s=>{s!==o&&(0,sO[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return e.\u0275fac=function(n){return new(n||e)(R(St))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const dO=GC(VN,"browser",[{provide:Mr,useValue:"browser"},{provide:cm,useValue:function lO(){hf.makeCurrent()},multi:!0},{provide:St,useFactory:function cO(){return function db(e){nc=e}(document),document},deps:[]}]),fO=new O(""),nD=[{provide:qa,useClass:class Z3{addToWindow(t){he.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new M(5103,!1);return i},he.getAllAngularTestabilities=()=>t.getAllTestabilities(),he.getAllAngularRootElements=()=>t.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(t,n,r){return null==n?null:t.getTestability(n)??(r?nr().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},deps:[]},{provide:HC,useClass:Od,deps:[ve,Pd,qa]},{provide:Od,useClass:Od,deps:[ve,Pd,qa]}],rD=[{provide:hc,useValue:"root"},{provide:br,useFactory:function uO(){return new br},deps:[]},{provide:pf,useClass:oO,multi:!0,deps:[St,ve,Mr]},{provide:pf,useClass:aO,multi:!0,deps:[St]},X_,q_,G_,{provide:Cm,useExisting:X_},{provide:H_,useClass:Y3,deps:[]},[]];let hO=(()=>{class e{constructor(n){}static withServerTransition(n){return{ngModule:e,providers:[{provide:ma,useValue:n.appId}]}}}return e.\u0275fac=function(n){return new(n||e)(R(fO,12))},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({providers:[...rD,...nD],imports:[f3,$N]}),e})(),oD=(()=>{class e{constructor(n){this._doc=n}getTitle(){return this._doc.title}setTitle(n){this._doc.title=n||""}}return e.\u0275fac=function(n){return new(n||e)(R(St))},e.\u0275prov=x({token:e,factory:function(n){let r=null;return r=n?new n:function gO(){return new oD(R(St))}(),r},providedIn:"root"}),e})();typeof window<"u"&&window;const{isArray:_O}=Array,{getPrototypeOf:DO,prototype:wO,keys:EO}=Object;function lD(e){if(1===e.length){const t=e[0];if(_O(t))return{args:t,keys:null};if(function MO(e){return e&&"object"==typeof e&&DO(e)===wO}(t)){const n=EO(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}const{isArray:bO}=Array;function uD(e){return ne(t=>function SO(e,t){return bO(t)?e(...t):e(t)}(e,t))}function cD(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}let dD=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(D(xn),D(Mt))},e.\u0275dir=H({type:e}),e})(),Nr=(()=>{class e extends dD{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ze(e)))(r||e)}}(),e.\u0275dir=H({type:e,features:[le]}),e})();const vn=new O("NgValueAccessor"),TO={provide:vn,useExisting:fe(()=>fl),multi:!0};let fl=(()=>{class e extends Nr{writeValue(n){this.setProperty("checked",n)}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ze(e)))(r||e)}}(),e.\u0275dir=H({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){1&n&&P("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[ye([TO]),le]}),e})();const AO={provide:vn,useExisting:fe(()=>Lt),multi:!0},RO=new O("CompositionEventMode");let Lt=(()=>{class e extends dD{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function NO(){const e=nr()?nr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",n??"")}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return e.\u0275fac=function(n){return new(n||e)(D(xn),D(Mt),D(RO,8))},e.\u0275dir=H({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(n,r){1&n&&P("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([AO]),le]}),e})();const et=new O("NgValidators"),ar=new O("NgAsyncValidators");function DD(e){return null!=e}function wD(e){return Fi(e)?xe(e):e}function ED(e){let t={};return e.forEach(n=>{t=null!=n?{...t,...n}:t}),0===Object.keys(t).length?null:t}function MD(e,t){return t.map(n=>n(e))}function bD(e){return e.map(t=>function PO(e){return!e.validate}(t)?t:n=>t.validate(n))}function Df(e){return null!=e?function SD(e){if(!e)return null;const t=e.filter(DD);return 0==t.length?null:function(n){return ED(MD(n,t))}}(bD(e)):null}function wf(e){return null!=e?function ID(e){if(!e)return null;const t=e.filter(DD);return 0==t.length?null:function(n){return function IO(...e){const t=Uh(e),{args:n,keys:r}=lD(e),o=new be(i=>{const{length:s}=n;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?cD(r,a):a),i.complete())}))}});return t?o.pipe(uD(t)):o}(MD(n,t).map(wD)).pipe(ne(ED))}}(bD(e)):null}function TD(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function Ef(e){return e?Array.isArray(e)?e:[e]:[]}function pl(e,t){return Array.isArray(e)?e.includes(t):e===t}function RD(e,t){const n=Ef(t);return Ef(e).forEach(o=>{pl(n,o)||n.push(o)}),n}function OD(e,t){return Ef(t).filter(n=>!pl(e,n))}class PD{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(t){this._rawValidators=t||[],this._composedValidatorFn=Df(this._rawValidators)}_setAsyncValidators(t){this._rawAsyncValidators=t||[],this._composedAsyncValidatorFn=wf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(t){this._onDestroyCallbacks.push(t)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(t=>t()),this._onDestroyCallbacks=[]}reset(t=void 0){this.control&&this.control.reset(t)}hasError(t,n){return!!this.control&&this.control.hasError(t,n)}getError(t,n){return this.control?this.control.getError(t,n):null}}class st extends PD{get formDirective(){return null}get path(){return null}}class lr extends PD{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class xD{constructor(t){this._cd=t}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Cn=(()=>{class e extends xD{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(D(lr,2))},e.\u0275dir=H({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&Fa("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:[le]}),e})(),kD=(()=>{class e extends xD{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(D(st,10))},e.\u0275dir=H({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&Fa("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:[le]}),e})();const Ji="VALID",ml="INVALID",Ro="PENDING",es="DISABLED";function Sf(e){return(yl(e)?e.validators:e)||null}function If(e,t){return(yl(t)?t.asyncValidators:e)||null}function yl(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class $D{constructor(t,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===Ji}get invalid(){return this.status===ml}get pending(){return this.status==Ro}get disabled(){return this.status===es}get enabled(){return this.status!==es}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(RD(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(RD(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(OD(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(OD(t,this._rawAsyncValidators))}hasValidator(t){return pl(this._rawValidators,t)}hasAsyncValidator(t){return pl(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=Ro,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=es,this.errors=null,this._forEachChild(r=>{r.disable({...t,onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Ji,this._forEachChild(r=>{r.enable({...t,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors({...t,skipPristineCheck:n}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Ji||this.status===Ro)&&this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?es:Ji}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=Ro,this._hasOwnPendingAsyncValidator=!0;const n=wD(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){let n=t;return null==n||(Array.isArray(n)||(n=n.split(".")),0===n.length)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new Me,this.statusChanges=new Me}_calculateStatus(){return this._allControlsDisabled()?es:this.errors?ml:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ro)?Ro:this._anyControlsHaveStatus(ml)?ml:Ji}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){yl(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=function LO(e){return Array.isArray(e)?Df(e):e||null}(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=function VO(e){return Array.isArray(e)?wf(e):e||null}(this._rawAsyncValidators)}}class Tf extends $D{constructor(t,n,r){super(Sf(n),If(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){(function VD(e,t,n){e._forEachChild((r,o)=>{if(void 0===n[o])throw new M(1002,"")})})(this,0,t),Object.keys(t).forEach(r=>{(function LD(e,t,n){const r=e.controls;if(!(t?Object.keys(r):r).length)throw new M(1e3,"");if(!r[n])throw new M(1001,"")})(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{const o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}}const Oo=new O("CallSetDisabledState",{providedIn:"root",factory:()=>vl}),vl="always";function ts(e,t,n=vl){Af(e,t),t.valueAccessor.writeValue(e.value),(e.disabled||"always"===n)&&t.valueAccessor.setDisabledState?.(e.disabled),function jO(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&HD(e,t)})}(e,t),function UO(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function BO(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&HD(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function HO(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function Dl(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function Af(e,t){const n=function AD(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(TD(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function ND(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(TD(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();Dl(t._rawValidators,o),Dl(t._rawAsyncValidators,o)}function HD(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const ZO={provide:st,useExisting:fe(()=>El)},ns=(()=>Promise.resolve())();let El=(()=>{class e extends st{constructor(n,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new Me,this.form=new Tf({},Df(n),wf(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){ns.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),ts(n.control,n,this.callSetDisabledState),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){ns.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),this._directives.delete(n)})}addFormGroup(n){ns.then(()=>{const r=this._findContainer(n.path),o=new Tf({});(function jD(e,t){Af(e,t)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){ns.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){ns.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function BD(e,t){e._syncPendingControls(),t.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),"dialog"===n?.target?.method}onReset(){this.resetForm()}resetForm(n=void 0){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return e.\u0275fac=function(n){return new(n||e)(D(et,10),D(ar,10),D(Oo,8))},e.\u0275dir=H({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&P("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ye([ZO]),le]}),e})();function UD(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function zD(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const GD=class extends $D{constructor(t=null,n,r){super(Sf(n),If(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),yl(n)&&(n.nonNullable||n.initialValueIsDefault)&&(this.defaultValue=zD(t)?t.value:t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){UD(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){UD(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(t){zD(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}},QO={provide:lr,useExisting:fe(()=>Yt)},ZD=(()=>Promise.resolve())();let Yt=(()=>{class e extends lr{constructor(n,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new GD,this._registered=!1,this.name="",this.update=new Me,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Of(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===Lt?n=i:function WO(e){return Object.getPrototypeOf(e.constructor)===Nr}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){if(this._checkForErrors(),!this._registered||"name"in n){if(this._registered&&(this._checkName(),this.formDirective)){const r=n.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in n&&this._updateDisabled(n),function Rf(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,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(n){this.viewModel=n,this.update.emit(n)}_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(){ts(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(n){ZD.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=0!==r&&Ao(r);ZD.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(n){return this._parent?function Cl(e,t){return[...t.path,e]}(n,this._parent):[n]}}return e.\u0275fac=function(n){return new(n||e)(D(st,9),D(et,10),D(ar,10),D(vn,10),D(Ya,8),D(Oo,8))},e.\u0275dir=H({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([QO]),le,Ot]}),e})(),YD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),e})(),QD=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({}),e})(),DP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({imports:[QD]}),e})(),EP=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Oo,useValue:n.callSetDisabledState??vl}]}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({imports:[DP]}),e})();function j(...e){return xe(e,Qo(e))}function Po(e,t){return ce(t)?Ge(e,t,1):Ge(e,1)}function Hn(e,t){return ze((n,r)=>{let o=0;n.subscribe(He(r,i=>e.call(t,i,o++)&&r.next(i)))})}function _n(e,t){return ze((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(He(r,l=>{o?.unsubscribe();let u=0;const c=i++;At(e(l,c)).subscribe(o=He(r,d=>r.next(t?t(l,d,c,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}class Ml{}class $f{}class Ye{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.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(t).forEach(([n,r])=>{let o;if(o="string"==typeof r?[r]:"number"==typeof r?[r.toString()]:r.map(i=>i.toString()),o.length>0){const i=n.toLowerCase();this.headers.set(i,o),this.maybeSetNormalizedName(n,i)}})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,n){return this.clone({name:t,value:n,op:"a"})}set(t,n){return this.clone({name:t,value:n,op:"s"})}delete(t,n){return this.clone({name:t,value:n,op:"d"})}maybeSetNormalizedName(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)}init(){this.lazyInit&&(this.lazyInit instanceof Ye?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(n=>{this.headers.set(n,t.headers.get(n)),this.normalizedNames.set(n,t.normalizedNames.get(n))})}clone(t){const n=new Ye;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof Ye?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([t]),n}applyUpdate(t){const n=t.name.toLowerCase();switch(t.op){case"a":case"s":let r=t.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(t.name,n);const o=("a"===t.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=t.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>t(this.normalizedNames.get(n),this.headers.get(n)))}}class MP{encodeKey(t){return m0(t)}encodeValue(t){return m0(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}const SP=/%(\d[a-f0-9])/gi,IP={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function m0(e){return encodeURIComponent(e).replace(SP,(t,n)=>IP[n]??t)}function bl(e){return`${e}`}class ur{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new MP,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function bP(e,t){const n=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[t.decodeKey(o),""]:[t.decodeKey(o.slice(0,i)),t.decodeValue(o.slice(i+1))],l=n.get(s)||[];l.push(a),n.set(s,l)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(n=>{const r=t.fromObject[n],o=Array.isArray(r)?r.map(bl):[bl(r)];this.map.set(n,o)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const n=this.map.get(t);return n?n[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,n){return this.clone({param:t,value:n,op:"a"})}appendAll(t){const n=[];return Object.keys(t).forEach(r=>{const o=t[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(t,n){return this.clone({param:t,value:n,op:"s"})}delete(t,n){return this.clone({param:t,value:n,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const n=this.encoder.encodeKey(t);return this.map.get(t).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const n=new ur({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(t),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const n=("a"===t.op?this.map.get(t.param):void 0)||[];n.push(bl(t.value)),this.map.set(t.param,n);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let r=this.map.get(t.param)||[];const o=r.indexOf(bl(t.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(t.param,r):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}class TP{constructor(){this.map=new Map}set(t,n){return this.map.set(t,n),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}}function y0(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function v0(e){return typeof Blob<"u"&&e instanceof Blob}function C0(e){return typeof FormData<"u"&&e instanceof FormData}class rs{constructor(t,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function AP(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 Ye),this.context||(this.context=new TP),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":ad.set(f,t.setHeaders[f]),l)),t.setParams&&(u=Object.keys(t.setParams).reduce((d,f)=>d.set(f,t.setParams[f]),u)),new rs(n,r,i,{params:u,headers:l,context:c,reportProgress:a,responseType:o,withCredentials:s})}}var Pe=(()=>((Pe=Pe||{})[Pe.Sent=0]="Sent",Pe[Pe.UploadProgress=1]="UploadProgress",Pe[Pe.ResponseHeader=2]="ResponseHeader",Pe[Pe.DownloadProgress=3]="DownloadProgress",Pe[Pe.Response=4]="Response",Pe[Pe.User=5]="User",Pe))();class Hf{constructor(t,n=200,r="OK"){this.headers=t.headers||new Ye,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||r,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}class jf extends Hf{constructor(t={}){super(t),this.type=Pe.ResponseHeader}clone(t={}){return new jf({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class xo extends Hf{constructor(t={}){super(t),this.type=Pe.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new xo({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}class _0 extends Hf{constructor(t){super(t,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${t.url||"(unknown url)"}`:`Http failure response for ${t.url||"(unknown url)"}: ${t.status} ${t.statusText}`,this.error=t.error||null}}function Bf(e,t){return{body:t,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials}}let Or=(()=>{class e{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof rs)i=n;else{let l,u;l=o.headers instanceof Ye?o.headers:new Ye(o.headers),o.params&&(u=o.params instanceof ur?o.params:new ur({fromObject:o.params})),i=new rs(n,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=j(i).pipe(Po(l=>this.handler.handle(l)));if(n instanceof rs||"events"===o.observe)return s;const a=s.pipe(Hn(l=>l instanceof xo));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(ne(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(ne(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(ne(l=>{if(null!==l.body&&"string"!=typeof l.body)throw new Error("Response is not a string.");return l.body}));default:return a.pipe(ne(l=>l.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new ur).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,Bf(o,r))}post(n,r,o={}){return this.request("POST",n,Bf(o,r))}put(n,r,o={}){return this.request("PUT",n,Bf(o,r))}}return e.\u0275fac=function(n){return new(n||e)(R(Ml))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function D0(e,t){return t(e)}function RP(e,t){return(n,r)=>t.intercept(n,{handle:o=>e(o,r)})}const w0=new O(""),os=new O(""),E0=new O("");function PP(){let e=null;return(t,n)=>(null===e&&(e=(I(w0,{optional:!0})??[]).reduceRight(RP,D0)),e(t,n))}let M0=(()=>{class e extends Ml{constructor(n,r){super(),this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=Array.from(new Set([...this.injector.get(os),...this.injector.get(E0,[])]));this.chain=r.reduceRight((o,i)=>function OP(e,t,n){return(r,o)=>n.runInContext(()=>t(r,i=>e(i,o)))}(o,i,this.injector),D0)}return this.chain(n,r=>this.backend.handle(r))}}return e.\u0275fac=function(n){return new(n||e)(R($f),R(un))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const LP=/^\)\]\}',?\n/;let S0=(()=>{class e{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");const r=this.xhrFactory;return(r.\u0275loadImpl?xe(r.\u0275loadImpl()):j(null)).pipe(_n(()=>new be(i=>{const s=r.build();if(s.open(n.method,n.urlWithParams),n.withCredentials&&(s.withCredentials=!0),n.headers.forEach((y,S)=>s.setRequestHeader(y,S.join(","))),n.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const y=n.detectContentTypeHeader();null!==y&&s.setRequestHeader("Content-Type",y)}if(n.responseType){const y=n.responseType.toLowerCase();s.responseType="json"!==y?y:"text"}const a=n.serializeBody();let l=null;const u=()=>{if(null!==l)return l;const y=s.statusText||"OK",S=new Ye(s.getAllResponseHeaders()),k=function VP(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||n.url;return l=new jf({headers:S,status:s.status,statusText:y,url:k}),l},c=()=>{let{headers:y,status:S,statusText:k,url:Y}=u(),ge=null;204!==S&&(ge=typeof s.response>"u"?s.responseText:s.response),0===S&&(S=ge?200:0);let qo=S>=200&&S<300;if("json"===n.responseType&&"string"==typeof ge){const r4=ge;ge=ge.replace(LP,"");try{ge=""!==ge?JSON.parse(ge):null}catch(o4){ge=r4,qo&&(qo=!1,ge={error:o4,text:ge})}}qo?(i.next(new xo({body:ge,headers:y,status:S,statusText:k,url:Y||void 0})),i.complete()):i.error(new _0({error:ge,headers:y,status:S,statusText:k,url:Y||void 0}))},d=y=>{const{url:S}=u(),k=new _0({error:y,status:s.status||0,statusText:s.statusText||"Unknown Error",url:S||void 0});i.error(k)};let f=!1;const h=y=>{f||(i.next(u()),f=!0);let S={type:Pe.DownloadProgress,loaded:y.loaded};y.lengthComputable&&(S.total=y.total),"text"===n.responseType&&s.responseText&&(S.partialText=s.responseText),i.next(S)},p=y=>{let S={type:Pe.UploadProgress,loaded:y.loaded};y.lengthComputable&&(S.total=y.total),i.next(S)};let v;s.addEventListener("load",c),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),n.reportProgress&&(s.addEventListener("progress",h),null!==a&&s.upload&&s.upload.addEventListener("progress",p));const w=()=>{v??=function HP(){const e=setTimeout(()=>{},$P);return()=>clearTimeout(e)}()},b=()=>{v?.()};return s.addEventListener("loadstart",w),s.addEventListener("loadend",b),s.send(a),i.next({type:Pe.Sent}),()=>{s.removeEventListener("loadstart",w),s.removeEventListener("loadend",b),s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",c),s.removeEventListener("timeout",d),v?.(),n.reportProgress&&(s.removeEventListener("progress",h),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}}return e.\u0275fac=function(n){return new(n||e)(R(H_))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const $P=2147483647,Uf=new O("XSRF_ENABLED"),I0=new O("XSRF_COOKIE_NAME",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),T0=new O("XSRF_HEADER_NAME",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class A0{}let UP=(()=>{class e{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=A_(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return e.\u0275fac=function(n){return new(n||e)(R(St),R(Mr),R(I0))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function zP(e,t){const n=e.url.toLowerCase();if(!I(Uf)||"GET"===e.method||"HEAD"===e.method||n.startsWith("http://")||n.startsWith("https://"))return t(e);const r=I(A0).getToken(),o=I(T0);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),t(e)}var Te=(()=>((Te=Te||{})[Te.Interceptors=0]="Interceptors",Te[Te.LegacyInterceptors=1]="LegacyInterceptors",Te[Te.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",Te[Te.NoXsrfProtection=3]="NoXsrfProtection",Te[Te.JsonpSupport=4]="JsonpSupport",Te[Te.RequestsMadeViaParent=5]="RequestsMadeViaParent",Te))();function ko(e,t){return{\u0275kind:e,\u0275providers:t}}function GP(...e){const t=[Or,S0,M0,{provide:Ml,useExisting:M0},{provide:$f,useExisting:S0},{provide:os,useValue:zP,multi:!0},{provide:Uf,useValue:!0},{provide:A0,useClass:UP}];for(const n of e)t.push(...n.\u0275providers);return function uc(e){return{\u0275providers:e}}(t)}const N0=new O("LEGACY_INTERCEPTOR_FN");let qP=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({providers:[GP(ko(Te.LegacyInterceptors,[{provide:N0,useFactory:PP},{provide:os,useExisting:N0,multi:!0}]))]}),e})();function J(e,t,n){const r=ce(e)||t||n?{next:e,error:t,complete:n}:e;return r?ze((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(He(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)}))}):pr}function de(e){return ze((t,n)=>{let i,r=null,o=!1;r=t.subscribe(He(n,void 0,void 0,s=>{i=At(e(s,de(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}const Pr_restServerUrl="https://tds.truyen.network";let xr=(()=>{class e{constructor(){this.messages=[]}add(n){this.messages.push((new Date).toLocaleTimeString()+") "+n)}clear(){this.messages=[]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class Dn{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} 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(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`ChatMessagesService: ${t}`)}getChatMessages(){return this.http.get(Dn.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} messages`)),de(this.handleError("getChatMessages",[])))}addChatMessage(t,n){return this.http.post(Dn.REST_URL,{author:t,text:n},this.httpOptions).pipe(J(o=>this.log(`added message w/ id=${o.id}`)),de(this.handleError("addChatMessage")))}}Dn.REST_URL=Pr_restServerUrl+"/api/chat",Dn.\u0275fac=function(t){return new(t||Dn)(R(Or),R(xr))},Dn.\u0275prov=x({token:Dn,factory:Dn.\u0275fac,providedIn:"root"});const Fo="./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),zf=Array.from({length:64},(e,t)=>t),Sl=e=>Array(e).fill(-1),cr=[...Sl(46),0,1,...zf.slice(54,64),...Sl(7),...zf.slice(2,28),...Sl(6),...zf.slice(28,54),...Sl(5)],R0=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],O0=[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],P0=[1332899944,1700884034,1701343084,1684370003,1668446532,1869963892],Gf=(e,t)=>{if(t<=0||t>e.length)throw Error(`Illegal len: ${t}`);let r,o,n=0;const i=[];for(;n>2&63]),r=(3&r)<<4,n>=t){i.push(Fo[63&r]);break}if(o=255&e[n++],r|=o>>4&15,i.push(Fo[63&r]),r=(15&o)<<2,n>=t){i.push(Fo[63&r]);break}o=255&e[n++],r|=o>>6&3,i.push(Fo[63&r]),i.push(Fo[63&o])}return i.join("")},Il="object"==typeof process&&"edge"===process.env.NEXT_RUNTIME?setTimeout:"function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:setTimeout,ss=(e,t,n,r)=>{let o,i=e[t],s=e[t+1];return i^=n[0],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[1],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[2],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[3],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[4],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[5],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[6],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[7],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[8],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[9],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[10],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[11],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[12],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[13],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[14],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^n[15],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^n[16],e[t]=s^n[17],e[t+1]=i,e},Lo=(e,t)=>{let n=0;for(let r=0;r<4;++r)n=n<<8|255&e[t],t=(t+1)%e.length;return{key:n,offp:t}},x0=(e,t,n)=>{const r=t.length,o=n.length;let a,i=0,s=[0,0];for(let l=0;l{const i=P0.slice(),s=i.length;if(n<4||n>31){const f=new Error(`Illegal number of rounds (4-31): ${n}`);if(!1===r)return Promise.reject(f);throw f}if(16!==t.length){const f=new Error(`Illegal salt length: ${t.length} != 16`);if(!1===r)return Promise.reject(f);throw f}n=1<>>0;let a,l,c,u=0;Int32Array?(a=new Int32Array(R0),l=new Int32Array(O0)):(a=R0.slice(),l=O0.slice()),((e,t,n,r)=>{const o=n.length,i=r.length;let l,s=0,a=[0,0];for(let u=0;u{if(o&&o(u/n),!(u>1;c++)ss(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=>Il(()=>{d().then(f)}))};if(!1===r)return d();{let f;for(;;)if(typeof(f=d())<"u")return f||[]}},Wf=(e=10)=>{if("number"!=typeof e)throw Error("Illegal arguments: "+typeof e);e<4?e=4:e>31&&(e=31);const t=[];return t.push("$2a$"),e<10&&t.push("0"),t.push(e.toString()),t.push("$"),t.push(Gf((e=>{try{let t;t=typeof window<"u"?window.crypto??window.msCrypto:globalThis.crypto;const n=new Uint32Array(16);return t?.getRandomValues(n),Array.from(n)}catch{throw Error("WebCryptoAPI is not available")}})(),16)),t.join("")};const F0=(e,t=10)=>{if("number"==typeof t&&(t=Wf(t)),"string"!=typeof e||"string"!=typeof t)throw Error("Illegal arguments: "+typeof e+", "+typeof t);return function qf(e,t,n,r){if("string"!=typeof e||"string"!=typeof t){const h=new Error("Invalid string / salt: Not a string");if(!1===n)return Promise.reject(h);throw h}let o,i;if("$"!==t.charAt(0)||"2"!==t.charAt(1)){const h=new Error("Invalid salt version: "+t.substring(0,2));if(!1===n)return Promise.reject(h);throw h}if("$"===t.charAt(2))o="\0",i=3;else{if(o=t.charAt(2),"a"!==o&&"b"!==o&&"y"!==o||"$"!==t.charAt(3)){const h=Error("Invalid salt revision: "+t.substring(2,4));if(!1===n)return Promise.reject(h);throw h}i=4}if(t.charAt(i+2)>"$"){const h=new Error("Missing salt rounds");if(!1===n)return Promise.reject(h);throw h}const l=10*parseInt(t.substring(i,i+1),10)+parseInt(t.substring(i+1,i+2),10),u=t.substring(i+3,i+25),c=(e=>{const t=[];let n=0;return((e,t)=>{((e,t)=>{let n,r=null;for(;null!==(n=null!==r?r:e());)n>=55296&&n<=57343&&null!==(r=e())&&r>=56320&&r<=57343?(t(1024*(n-55296)+r-56320+65536),r=null):t(n);null!==r&&t(r)})(e,function(n){((e,t)=>{let n=null;for("number"==typeof e&&(n=e,e=()=>null);null!==n||null!==(n=e());)n<128?t(127&n):n<2048?(t(n>>6&31|192),t(63&n|128)):n<65536?(t(n>>12&15|224),t(n>>6&63|128),t(63&n|128)):(t(n>>18&7|240),t(n>>12&63|128),t(n>>6&63|128),t(63&n|128)),n=null})(n,t)})})(()=>n>=e.length?null:e.charCodeAt(n++),r=>{t.push(r)}),t})(e+=o>="a"?"\0":""),d=((e,t)=>{const n=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>=n)||(c=e.charCodeAt(r++),a=c>>0,u|=(60&a)>>2,d.push(String.fromCharCode(u)),++o>=16||r>=n)));)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 p=[];return p.push("$2"),o>="a"&&p.push(o),p.push("$"),l<10&&p.push("0"),p.push(l.toString()),p.push("$"),p.push(Gf(d,d.length)),p.push(Gf(h,4*P0.length-1)),p.join("")};return!1===n?k0(c,d,l,!1,r).then(h=>f(h)):f(k0(c,d,l,!0,r))}(e,t,!0)};class Xt extends bn{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Zf(...e){const t=Qo(e),n=Uh(e),{args:r,keys:o}=lD(e);if(0===r.length)return xe([],t);const i=new be(function ux(e,t,n=pr){return r=>{L0(t,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let l=0;l{const u=xe(e[l],t);let c=!1;u.subscribe(He(r,d=>{i[l]=d,c||(c=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,t,o?s=>cD(o,s):pr));return n?i.pipe(uD(n)):i}function L0(e,t,n){e?Sn(n,e,t):t()}const Tl=Zo(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Yf(...e){return function cx(){return Hr(1)}()(xe(e,Qo(e)))}function V0(e){return new be(t=>{At(e()).subscribe(t)})}function as(e,t){const n=ce(e)?e:()=>e,r=o=>o.error(n());return new be(t?o=>t.schedule(r,0,o):r)}function Xf(){return ze((e,t)=>{let n=null;e._refCount++;const r=He(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(n=null);const o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}class $0 extends be{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Ah(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new Tt;const n=this.getSubject();t.add(this.source.subscribe(He(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=Tt.EMPTY)}return t}refCount(){return Xf()(this)}}function Vo(e){return e<=0?()=>en:ze((t,n)=>{let r=0;t.subscribe(He(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Al(e){return ze((t,n)=>{let r=!1;t.subscribe(He(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function H0(e=fx){return ze((t,n)=>{let r=!1;t.subscribe(He(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function fx(){return new Tl}function kr(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Hn((o,i)=>e(o,i,r)):pr,Vo(1),n?Al(t):H0(()=>new Tl))}function Qf(e){return e<=0?()=>en:ze((t,n)=>{let r=[];t.subscribe(He(n,o=>{r.push(o),e{for(const o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Kf(e){return ze((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}const q="primary",ls=Symbol("RouteTitle");class yx{constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n[0]:n}return null}getAll(t){if(this.has(t)){const n=this.params[t];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function $o(e){return new yx(e)}function vx(e,t,n){const r=n.path.split("/");if(r.length>e.length||"full"===n.pathMatch&&(t.hasChildren()||r.lengthr[i]===o)}return e===t}function B0(e){return e.length>0?e[e.length-1]:null}function dr(e){return function lx(e){return!!e&&(e instanceof be||ce(e.lift)&&ce(e.subscribe))}(e)?e:Fi(e)?xe(Promise.resolve(e)):j(e)}const _x={exact:function G0(e,t,n){if(!Fr(e.segments,t.segments)||!Nl(e.segments,t.segments,n)||e.numberOfChildren!==t.numberOfChildren)return!1;for(const r in t.children)if(!e.children[r]||!G0(e.children[r],t.children[r],n))return!1;return!0},subset:W0},U0={exact:function Dx(e,t){return wn(e,t)},subset:function wx(e,t){return Object.keys(t).length<=Object.keys(e).length&&Object.keys(t).every(n=>j0(e[n],t[n]))},ignored:()=>!0};function z0(e,t,n){return _x[n.paths](e.root,t.root,n.matrixParams)&&U0[n.queryParams](e.queryParams,t.queryParams)&&!("exact"===n.fragment&&e.fragment!==t.fragment)}function W0(e,t,n){return q0(e,t,t.segments,n)}function q0(e,t,n,r){if(e.segments.length>n.length){const o=e.segments.slice(0,n.length);return!(!Fr(o,n)||t.hasChildren()||!Nl(o,n,r))}if(e.segments.length===n.length){if(!Fr(e.segments,n)||!Nl(e.segments,n,r))return!1;for(const o in t.children)if(!e.children[o]||!W0(e.children[o],t.children[o],r))return!1;return!0}{const o=n.slice(0,e.segments.length),i=n.slice(e.segments.length);return!!(Fr(e.segments,o)&&Nl(e.segments,o,r)&&e.children[q])&&q0(e.children[q],t,i,r)}}function Nl(e,t,n){return t.every((r,o)=>U0[n](e[o].parameters,r.parameters))}class Ho{constructor(t=new ue([],{}),n={},r=null){this.root=t,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=$o(this.queryParams)),this._queryParamMap}toString(){return bx.serialize(this)}}class ue{constructor(t,n){this.segments=t,this.children=n,this.parent=null,Object.values(n).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Rl(this)}}class us{constructor(t,n){this.path=t,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=$o(this.parameters)),this._parameterMap}toString(){return X0(this)}}function Fr(e,t){return e.length===t.length&&e.every((n,r)=>n.path===t[r].path)}let cs=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return new Jf},providedIn:"root"}),e})();class Jf{parse(t){const n=new Fx(t);return new Ho(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(t){const n=`/${ds(t.root,!0)}`,r=function Tx(e){const t=Object.keys(e).map(n=>{const r=e[n];return Array.isArray(r)?r.map(o=>`${Ol(n)}=${Ol(o)}`).join("&"):`${Ol(n)}=${Ol(r)}`}).filter(n=>!!n);return t.length?`?${t.join("&")}`:""}(t.queryParams);return`${n}${r}${"string"==typeof t.fragment?`#${function Sx(e){return encodeURI(e)}(t.fragment)}`:""}`}}const bx=new Jf;function Rl(e){return e.segments.map(t=>X0(t)).join("/")}function ds(e,t){if(!e.hasChildren())return Rl(e);if(t){const n=e.children[q]?ds(e.children[q],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==q&&r.push(`${o}:${ds(i,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function Mx(e,t){let n=[];return Object.entries(e.children).forEach(([r,o])=>{r===q&&(n=n.concat(t(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==q&&(n=n.concat(t(o,r)))}),n}(e,(r,o)=>o===q?[ds(e.children[q],!1)]:[`${o}:${ds(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[q]?`${Rl(e)}/${n[0]}`:`${Rl(e)}/(${n.join("//")})`}}function Z0(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Ol(e){return Z0(e).replace(/%3B/gi,";")}function eh(e){return Z0(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Pl(e){return decodeURIComponent(e)}function Y0(e){return Pl(e.replace(/\+/g,"%20"))}function X0(e){return`${eh(e.path)}${function Ix(e){return Object.keys(e).map(t=>`;${eh(t)}=${eh(e[t])}`).join("")}(e.parameters)}`}const Ax=/^[^\/()?;#]+/;function th(e){const t=e.match(Ax);return t?t[0]:""}const Nx=/^[^\/()?;=#]+/,Ox=/^[^=?&#]+/,xx=/^[^&#]+/;class Fx{constructor(t){this.url=t,this.remaining=t}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ue([],{}):new ue([],this.parseChildren())}parseQueryParams(){const t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(r[q]=new ue(t,n)),r}parseSegment(){const t=th(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new M(4009,!1);return this.capture(t),new us(Pl(t),this.parseMatrixParams())}parseMatrixParams(){const t={};for(;this.consumeOptional(";");)this.parseParam(t);return t}parseParam(t){const n=function Rx(e){const t=e.match(Nx);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=th(this.remaining);o&&(r=o,this.capture(r))}t[Pl(n)]=Pl(r)}parseQueryParam(t){const n=function Px(e){const t=e.match(Ox);return t?t[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function kx(e){const t=e.match(xx);return t?t[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=Y0(n),i=Y0(r);if(t.hasOwnProperty(o)){let s=t[o];Array.isArray(s)||(s=[s],t[o]=s),s.push(i)}else t[o]=i}parseParens(t){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=th(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new M(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=q);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[q]:new ue([],s),this.consumeOptional("//")}return n}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)}capture(t){if(!this.consumeOptional(t))throw new M(4011,!1)}}function Q0(e){return e.segments.length>0?new ue([],{[q]:e}):e}function K0(e){const t={};for(const r of Object.keys(e.children)){const i=K0(e.children[r]);if(r===q&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))t[s]=a;else(i.segments.length>0||i.hasChildren())&&(t[r]=i)}return function Lx(e){if(1===e.numberOfChildren&&e.children[q]){const t=e.children[q];return new ue(e.segments.concat(t.segments),t.children)}return e}(new ue(e.segments,t))}function Lr(e){return e instanceof Ho}function J0(e){let t;const o=Q0(function n(i){const s={};for(const l of i.children){const u=n(l);s[l.outlet]=u}const a=new ue(i.url,s);return i===e&&(t=a),a}(e.root));return t??o}function ew(e,t,n,r){let o=e;for(;o.parent;)o=o.parent;if(0===t.length)return nh(o,o,o,n,r);const i=function $x(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new nw(!0,0,e);let t=0,n=!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?n=!0:".."===a?t++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new nw(n,t,r)}(t);if(i.toRoot())return nh(o,o,new ue([],{}),n,r);const s=function Hx(e,t,n){if(e.isAbsolute)return new kl(t,!0,0);if(!n)return new kl(t,!1,NaN);if(null===n.parent)return new kl(n,!0,0);const r=xl(e.commands[0])?0:1;return function jx(e,t,n){let r=e,o=t,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new M(4005,!1);o=r.segments.length}return new kl(r,!1,o-i)}(n,n.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?hs(s.segmentGroup,s.index,i.commands):rw(s.segmentGroup,s.index,i.commands);return nh(o,s.segmentGroup,a,n,r)}function xl(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function fs(e){return"object"==typeof e&&null!=e&&e.outlets}function nh(e,t,n,r,o){let s,i={};r&&Object.entries(r).forEach(([l,u])=>{i[l]=Array.isArray(u)?u.map(c=>`${c}`):`${u}`}),s=e===t?n:tw(e,t,n);const a=Q0(K0(s));return new Ho(a,i,o)}function tw(e,t,n){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===t?n:tw(i,t,n)}),new ue(e.segments,r)}class nw{constructor(t,n,r){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=r,t&&r.length>0&&xl(r[0]))throw new M(4003,!1);const o=r.find(fs);if(o&&o!==B0(r))throw new M(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class kl{constructor(t,n,r){this.segmentGroup=t,this.processChildren=n,this.index=r}}function rw(e,t,n){if(e||(e=new ue([],{})),0===e.segments.length&&e.hasChildren())return hs(e,t,n);const r=function Ux(e,t,n){let r=0,o=t;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=e.segments[o],a=n[r];if(fs(a))break;const l=`${a}`,u=r0&&void 0===l)break;if(l&&u&&"object"==typeof u&&void 0===u.outlets){if(!iw(l,u,s))return i;r+=2}else{if(!iw(l,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,t,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=rw(e.children[i],t,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new ue(e.segments,o)}}function rh(e,t,n){const r=e.segments.slice(0,t);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(t[n]=rh(new ue([],{}),0,r))}),t}function ow(e){const t={};return Object.entries(e).forEach(([n,r])=>t[n]=`${r}`),t}function iw(e,t,n){return e==n.path&&wn(t,n.parameters)}const ps="imperative";class En{constructor(t,n){this.id=t,this.url=n}}class oh extends En{constructor(t,n,r="imperative",o=null){super(t,n),this.type=0,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Vr extends En{constructor(t,n,r){super(t,n),this.urlAfterRedirects=r,this.type=1}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class Fl extends En{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=2}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class gs extends En{constructor(t,n,r,o){super(t,n),this.reason=r,this.code=o,this.type=16}}class ih extends En{constructor(t,n,r,o){super(t,n),this.error=r,this.target=o,this.type=3}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Gx extends En{constructor(t,n,r,o){super(t,n),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 Wx extends En{constructor(t,n,r,o){super(t,n),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 qx extends En{constructor(t,n,r,o,i){super(t,n),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 Zx extends En{constructor(t,n,r,o){super(t,n),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 Yx extends En{constructor(t,n,r,o){super(t,n),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 Xx{constructor(t){this.route=t,this.type=9}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class Qx{constructor(t){this.route=t,this.type=10}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class Kx{constructor(t){this.snapshot=t,this.type=11}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Jx{constructor(t){this.snapshot=t,this.type=12}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ek{constructor(t){this.snapshot=t,this.type=13}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class tk{constructor(t){this.snapshot=t,this.type=14}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class sw{constructor(t,n,r){this.routerEvent=t,this.position=n,this.anchor=r,this.type=15}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class nk{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new ms,this.attachRef=null}}let ms=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(n,r){const o=this.getOrCreateContext(n);o.outlet=r,this.contexts.set(n,o)}onChildOutletDestroyed(n){const r=this.getContext(n);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const n=this.contexts;return this.contexts=new Map,n}onOutletReAttached(n){this.contexts=n}getOrCreateContext(n){let r=this.getContext(n);return r||(r=new nk,this.contexts.set(n,r)),r}getContext(n){return this.contexts.get(n)||null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();class aw{constructor(t){this._root=t}get root(){return this._root.value}parent(t){const n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null}children(t){const n=sh(t,this._root);return n?n.children.map(r=>r.value):[]}firstChild(t){const n=sh(t,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(t){const n=ah(t,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==t)}pathFromRoot(t){return ah(t,this._root).map(n=>n.value)}}function sh(e,t){if(e===t.value)return t;for(const n of t.children){const r=sh(e,n);if(r)return r}return null}function ah(e,t){if(e===t.value)return[t];for(const n of t.children){const r=ah(e,n);if(r.length)return r.unshift(t),r}return[]}class jn{constructor(t,n){this.value=t,this.children=n}toString(){return`TreeNode(${this.value})`}}function jo(e){const t={};return e&&e.children.forEach(n=>t[n.value.outlet]=n),t}class lw extends aw{constructor(t,n){super(t),this.snapshot=n,lh(this,t)}toString(){return this.snapshot.toString()}}function uw(e,t){const n=function rk(e,t){const s=new Ll([],{},{},"",{},q,t,null,{});return new dw("",new jn(s,[]))}(0,t),r=new Xt([new us("",{})]),o=new Xt({}),i=new Xt({}),s=new Xt({}),a=new Xt(""),l=new Bn(r,o,s,a,i,q,t,n.root);return l.snapshot=n.root,new lw(new jn(l,[]),n)}class Bn{constructor(t,n,r,o,i,s,a,l){this.urlSubject=t,this.paramsSubject=n,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe(ne(u=>u[ls]))??j(void 0),this.url=t,this.params=n,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(ne(t=>$o(t)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(ne(t=>$o(t)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function cw(e,t="emptyOnly"){const n=e.pathFromRoot;let r=0;if("always"!==t)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function ok(e){return e.reduce((t,n)=>({params:{...t.params,...n.params},data:{...t.data,...n.data},resolve:{...n.data,...t.resolve,...n.routeConfig?.data,...n._resolvedData}}),{params:{},data:{},resolve:{}})}(n.slice(r))}class Ll{get title(){return this.data?.[ls]}constructor(t,n,r,o,i,s,a,l,u){this.url=t,this.params=n,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=$o(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=$o(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dw extends aw{constructor(t,n){super(n),this.url=t,lh(this,n)}toString(){return fw(this._root)}}function lh(e,t){t.value._routerState=e,t.children.forEach(n=>lh(e,n))}function fw(e){const t=e.children.length>0?` { ${e.children.map(fw).join(", ")} } `:"";return`${e.value}${t}`}function uh(e){if(e.snapshot){const t=e.snapshot,n=e._futureSnapshot;e.snapshot=n,wn(t.queryParams,n.queryParams)||e.queryParamsSubject.next(n.queryParams),t.fragment!==n.fragment&&e.fragmentSubject.next(n.fragment),wn(t.params,n.params)||e.paramsSubject.next(n.params),function Cx(e,t){if(e.length!==t.length)return!1;for(let n=0;nwn(n.parameters,t[r].parameters))}(e.url,t.url);return n&&!(!e.parent!=!t.parent)&&(!e.parent||ch(e.parent,t.parent))}let dh=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=q,this.activateEvents=new Me,this.deactivateEvents=new Me,this.attachEvents=new Me,this.detachEvents=new Me,this.parentContexts=I(ms),this.location=I(Gt),this.changeDetector=I(Ya),this.environmentInjector=I(un),this.inputBinder=I(Vl,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(n){if(n.name){const{firstChange:r,previousValue:o}=n.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(n){return this.parentContexts.getContext(n)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const n=this.parentContexts.getContext(this.name);n?.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new M(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new M(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new M(4012,!1);this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new M(4013,!1);this._activatedRoute=n;const o=this.location,s=n.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new ik(n,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(n){return new(n||e)},e.\u0275dir=H({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Ot]}),e})();class ik{constructor(t,n,r){this.route=t,this.childContexts=n,this.parent=r}get(t,n){return t===Bn?this.route:t===ms?this.childContexts:this.parent.get(t,n)}}const Vl=new O("");let hw=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(n){this.unsubscribeFromRouteData(n),this.subscribeToRouteData(n)}unsubscribeFromRouteData(n){this.outletDataSubscriptions.get(n)?.unsubscribe(),this.outletDataSubscriptions.delete(n)}subscribeToRouteData(n){const{activatedRoute:r}=n,o=Zf([r.queryParams,r.params,r.data]).pipe(_n(([i,s,a],l)=>(a={...i,...s,...a},0===l?j(a):Promise.resolve(a)))).subscribe(i=>{if(!n.isActivated||!n.activatedComponentRef||n.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(n);const s=function YN(e){const t=re(e);if(!t)return null;const n=new Ni(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone}}}(r.component);if(s)for(const{templateName:a}of s.inputs)n.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(n)});this.outletDataSubscriptions.set(n,o)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function ys(e,t,n){if(n&&e.shouldReuseRoute(t.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=t.value;const o=function ak(e,t,n){return t.children.map(r=>{for(const o of n.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return ys(e,r,o);return ys(e,r)})}(e,t,n);return new jn(r,o)}{if(e.shouldAttach(t.value)){const i=e.retrieve(t.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=t.value,s.children=t.children.map(a=>ys(e,a)),s}}const r=function lk(e){return new Bn(new Xt(e.url),new Xt(e.params),new Xt(e.queryParams),new Xt(e.fragment),new Xt(e.data),e.outlet,e.component,e)}(t.value),o=t.children.map(i=>ys(e,i));return new jn(r,o)}}const fh="ngNavigationCancelingError";function pw(e,t){const{redirectTo:n,navigationBehaviorOptions:r}=Lr(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,o=gw(!1,0,t);return o.url=n,o.navigationBehaviorOptions=r,o}function gw(e,t,n){const r=new Error("NavigationCancelingError: "+(e||""));return r[fh]=!0,r.cancellationCode=t,n&&(r.url=n),r}function mw(e){return yw(e)&&Lr(e.url)}function yw(e){return e&&e[fh]}let vw=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=_t({type:e,selectors:[["ng-component"]],standalone:!0,features:[Uv],decls:1,vars:0,template:function(n,r){1&n&&oe(0,"router-outlet")},dependencies:[dh],encapsulation:2}),e})();function hh(e){const t=e.children&&e.children.map(hh),n=t?{...e,children:t}:{...e};return!n.component&&!n.loadComponent&&(t||n.loadChildren)&&n.outlet&&n.outlet!==q&&(n.component=vw),n}function Qt(e){return e.outlet||q}function vs(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let t=e.parent;t;t=t.parent){const n=t.routeConfig;if(n?._loadedInjector)return n._loadedInjector;if(n?._injector)return n._injector}return null}class gk{constructor(t,n,r,o,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(t){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,t),uh(this.futureState.root),this.activateChildRoutes(n,r,t)}deactivateChildRoutes(t,n,r){const o=jo(n);t.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(t,n,r){const o=t.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(t,n,s.children)}else this.deactivateChildRoutes(t,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(t,n){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)}detachAndStoreRouteSubtree(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=jo(t);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(t.value.snapshot,{componentRef:s,route:t,contexts:a})}}deactivateRouteAndOutlet(t,n){const r=n.getContext(t.value.outlet),o=r&&t.value.component?r.children:n,i=jo(t);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(t,n,r){const o=jo(n);t.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new tk(i.value.snapshot))}),t.children.length&&this.forwardEvent(new Jx(t.value.snapshot))}activateRoutes(t,n,r){const o=t.value,i=n?n.value:null;if(uh(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(t,n,s.children)}else this.activateChildRoutes(t,n,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),uh(a.route.value),this.activateChildRoutes(t,null,s.children)}else{const a=vs(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(t,null,s.children)}}else this.activateChildRoutes(t,null,r)}}class Cw{constructor(t){this.path=t,this.route=this.path[this.path.length-1]}}class $l{constructor(t,n){this.component=t,this.route=n}}function mk(e,t,n){const r=e._root;return Cs(r,t?t._root:null,n,[r.value])}function Bo(e,t){const n=Symbol(),r=t.get(e,n);return r===n?"function"!=typeof e||function P1(e){return null!==Is(e)}(e)?t.get(e):e:r}function Cs(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=jo(t);return e.children.forEach(s=>{(function vk(e,t,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=t?t.value:null,a=n?n.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const l=function Ck(e,t,n){if("function"==typeof n)return n(e,t);switch(n){case"pathParamsChange":return!Fr(e.url,t.url);case"pathParamsOrQueryParamsChange":return!Fr(e.url,t.url)||!wn(e.queryParams,t.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ch(e,t)||!wn(e.queryParams,t.queryParams);default:return!ch(e,t)}}(s,i,i.routeConfig.runGuardsAndResolvers);l?o.canActivateChecks.push(new Cw(r)):(i.data=s.data,i._resolvedData=s._resolvedData),Cs(e,t,i.component?a?a.children:null:n,r,o),l&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new $l(a.outlet.component,s))}else s&&_s(t,a,o),o.canActivateChecks.push(new Cw(r)),Cs(e,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>_s(a,n.getContext(s),o)),o}function _s(e,t,n){const r=jo(e),o=e.value;Object.entries(r).forEach(([i,s])=>{_s(s,o.component?t?t.children.getContext(i):null:t,n)}),n.canDeactivateChecks.push(new $l(o.component&&t&&t.outlet&&t.outlet.isActivated?t.outlet.component:null,o))}function Ds(e){return"function"==typeof e}function _w(e){return e instanceof Tl||"EmptyError"===e?.name}const Hl=Symbol("INITIAL_VALUE");function Uo(){return _n(e=>Zf(e.map(t=>t.pipe(Vo(1),function dx(...e){const t=Qo(e);return ze((n,r)=>{(t?Yf(e,n,t):Yf(e,n)).subscribe(r)})}(Hl)))).pipe(ne(t=>{for(const n of t)if(!0!==n){if(n===Hl)return Hl;if(!1===n||n instanceof Ho)return n}return!0}),Hn(t=>t!==Hl),Vo(1)))}function Dw(e){return function Kw(...e){return Sh(e)}(J(t=>{if(Lr(t))throw pw(0,t)}),ne(t=>!0===t))}class jl{constructor(t){this.segmentGroup=t||null}}class ww{constructor(t){this.urlTree=t}}function zo(e){return as(new jl(e))}function Ew(e){return as(new ww(e))}class $k{constructor(t,n){this.urlSerializer=t,this.urlTree=n}noMatchError(t){return new M(4002,!1)}lineralizeSegments(t,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return j(r);if(o.numberOfChildren>1||!o.children[q])return as(new M(4e3,!1));o=o.children[q]}}applyRedirectCommands(t,n,r){return this.applyRedirectCreateUrlTree(n,this.urlSerializer.parse(n),t,r)}applyRedirectCreateUrlTree(t,n,r,o){const i=this.createSegmentGroup(t,n.root,r,o);return new Ho(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(t,n){const r={};return Object.entries(t).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=n[a]}else r[o]=i}),r}createSegmentGroup(t,n,r,o){const i=this.createSegments(t,n.segments,r,o);let s={};return Object.entries(n.children).forEach(([a,l])=>{s[a]=this.createSegmentGroup(t,l,r,o)}),new ue(i,s)}createSegments(t,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(t,i,o):this.findOrReturn(i,r))}findPosParam(t,n,r){const o=r[n.path.substring(1)];if(!o)throw new M(4001,!1);return o}findOrReturn(t,n){let r=0;for(const o of n){if(o.path===t.path)return n.splice(r),o;r++}return t}}const ph={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Hk(e,t,n,r,o){const i=gh(e,t,n);return i.matched?(r=function uk(e,t){return e.providers&&!e._injector&&(e._injector=cd(e.providers,t,`Route: ${e.path}`)),e._injector??t}(t,r),function Fk(e,t,n,r){const o=t.canMatch;return o&&0!==o.length?j(o.map(s=>{const a=Bo(s,e);return dr(function bk(e){return e&&Ds(e.canMatch)}(a)?a.canMatch(t,n):e.runInContext(()=>a(t,n)))})).pipe(Uo(),Dw()):j(!0)}(r,t,n).pipe(ne(s=>!0===s?i:{...ph}))):j(i)}function gh(e,t,n){if(""===t.path)return"full"===t.pathMatch&&(e.hasChildren()||n.length>0)?{...ph}:{matched:!0,consumedSegments:[],remainingSegments:n,parameters:{},positionalParamSegments:{}};const o=(t.matcher||vx)(n,e,t);if(!o)return{...ph};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:n.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function Mw(e,t,n,r){return n.length>0&&function Uk(e,t,n){return n.some(r=>Bl(e,t,r)&&Qt(r)!==q)}(e,n,r)?{segmentGroup:new ue(t,Bk(r,new ue(n,e.children))),slicedSegments:[]}:0===n.length&&function zk(e,t,n){return n.some(r=>Bl(e,t,r))}(e,n,r)?{segmentGroup:new ue(e.segments,jk(e,0,n,r,e.children)),slicedSegments:n}:{segmentGroup:new ue(e.segments,e.children),slicedSegments:n}}function jk(e,t,n,r,o){const i={};for(const s of r)if(Bl(e,n,s)&&!o[Qt(s)]){const a=new ue([],{});i[Qt(s)]=a}return{...o,...i}}function Bk(e,t){const n={};n[q]=t;for(const r of e)if(""===r.path&&Qt(r)!==q){const o=new ue([],{});n[Qt(r)]=o}return n}function Bl(e,t,n){return(!(e.hasChildren()||t.length>0)||"full"!==n.pathMatch)&&""===n.path}class Zk{constructor(t,n,r,o,i,s,a){this.injector=t,this.configLoader=n,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.allowRedirects=!0,this.applyRedirects=new $k(this.urlSerializer,this.urlTree)}noMatchError(t){return new M(4002,!1)}recognize(){const t=Mw(this.urlTree.root,[],[],this.config).segmentGroup;return this.processSegmentGroup(this.injector,this.config,t,q).pipe(de(n=>{if(n instanceof ww)return this.allowRedirects=!1,this.urlTree=n.urlTree,this.match(n.urlTree);throw n instanceof jl?this.noMatchError(n):n}),ne(n=>{const r=new Ll([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},q,this.rootComponentType,null,{}),o=new jn(r,n),i=new dw("",o),s=function Vx(e,t,n=null,r=null){return ew(J0(e),t,n,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(t){return this.processSegmentGroup(this.injector,this.config,t.root,q).pipe(de(r=>{throw r instanceof jl?this.noMatchError(r):r}))}inheritParamsAndData(t){const n=t.value,r=cw(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(t,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(t,n,r):this.processSegment(t,n,r,r.segments,o,!0)}processChildren(t,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return xe(o).pipe(Po(i=>{const s=r.children[i],a=function hk(e,t){const n=e.filter(r=>Qt(r)===t);return n.push(...e.filter(r=>Qt(r)!==t)),n}(n,i);return this.processSegmentGroup(t,a,s,i)}),function px(e,t){return ze(function hx(e,t,n,r,o){return(i,s)=>{let a=n,l=t,u=0;i.subscribe(He(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,t,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),Al(null),function gx(e,t){const n=arguments.length>=2;return r=>r.pipe(e?Hn((o,i)=>e(o,i,r)):pr,Qf(1),n?Al(t):H0(()=>new Tl))}(),Ge(i=>{if(null===i)return zo(r);const s=bw(i);return function Yk(e){e.sort((t,n)=>t.value.outlet===q?-1:n.value.outlet===q?1:t.value.outlet.localeCompare(n.value.outlet))}(s),j(s)}))}processSegment(t,n,r,o,i,s){return xe(n).pipe(Po(a=>this.processSegmentAgainstRoute(a._injector??t,n,a,r,o,i,s).pipe(de(l=>{if(l instanceof jl)return j(null);throw l}))),kr(a=>!!a),de(a=>{if(_w(a))return function Wk(e,t,n){return 0===t.length&&!e.children[n]}(r,o,i)?j([]):zo(r);throw a}))}processSegmentAgainstRoute(t,n,r,o,i,s,a){return function Gk(e,t,n,r){return!!(Qt(e)===r||r!==q&&Bl(t,n,e))&&("**"===e.path||gh(t,e,n).matched)}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,o,r,i,s,a):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,o,n,r,i,s):zo(o):zo(o)}expandSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o){const i=this.applyRedirects.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?Ew(i):this.applyRedirects.lineralizeSegments(r,i).pipe(Ge(s=>{const a=new ue(s,{});return this.processSegment(t,n,a,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(t,n,r,o,i,s){const{matched:a,consumedSegments:l,remainingSegments:u,positionalParamSegments:c}=gh(n,o,i);if(!a)return zo(n);const d=this.applyRedirects.applyRedirectCommands(l,o.redirectTo,c);return o.redirectTo.startsWith("/")?Ew(d):this.applyRedirects.lineralizeSegments(o,d).pipe(Ge(f=>this.processSegment(t,r,n,f.concat(u),s,!1)))}matchSegmentAgainstRoute(t,n,r,o,i,s){let a;if("**"===r.path){const l=o.length>0?B0(o).parameters:{};a=j({snapshot:new Ll(o,l,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Sw(r),Qt(r),r.component??r._loadedComponent??null,r,Iw(r)),consumedSegments:[],remainingSegments:[]}),n.children={}}else a=Hk(n,r,o,t).pipe(ne(({matched:l,consumedSegments:u,remainingSegments:c,parameters:d})=>l?{snapshot:new Ll(u,d,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,Sw(r),Qt(r),r.component??r._loadedComponent??null,r,Iw(r)),consumedSegments:u,remainingSegments:c}:null));return a.pipe(_n(l=>null===l?zo(n):this.getChildConfig(t=r._injector??t,r,o).pipe(_n(({routes:u})=>{const c=r._loadedInjector??t,{snapshot:d,consumedSegments:f,remainingSegments:h}=l,{segmentGroup:p,slicedSegments:v}=Mw(n,f,h,u);if(0===v.length&&p.hasChildren())return this.processChildren(c,u,p).pipe(ne(b=>null===b?null:[new jn(d,b)]));if(0===u.length&&0===v.length)return j([new jn(d,[])]);const w=Qt(r)===i;return this.processSegment(c,u,p,v,w?q:i,!0).pipe(ne(b=>[new jn(d,b)]))}))))}getChildConfig(t,n,r){return n.children?j({routes:n.children,injector:t}):n.loadChildren?void 0!==n._loadedRoutes?j({routes:n._loadedRoutes,injector:n._loadedInjector}):function kk(e,t,n,r){const o=t.canLoad;return void 0===o||0===o.length?j(!0):j(o.map(s=>{const a=Bo(s,e);return dr(function Dk(e){return e&&Ds(e.canLoad)}(a)?a.canLoad(t,n):e.runInContext(()=>a(t,n)))})).pipe(Uo(),Dw())}(t,n,r).pipe(Ge(o=>o?this.configLoader.loadChildren(t,n).pipe(J(i=>{n._loadedRoutes=i.routes,n._loadedInjector=i.injector})):function Vk(e){return as(gw(!1,3))}())):j({routes:[],injector:t})}}function Xk(e){const t=e.value.routeConfig;return t&&""===t.path}function bw(e){const t=[],n=new Set;for(const r of e){if(!Xk(r)){t.push(r);continue}const o=t.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):t.push(r)}for(const r of n){const o=bw(r.children);t.push(new jn(r.value,o))}return t.filter(r=>!n.has(r))}function Sw(e){return e.data||{}}function Iw(e){return e.resolve||{}}function Tw(e){return"string"==typeof e.title||null===e.title}function mh(e){return _n(t=>{const n=e(t);return n?xe(n).pipe(ne(()=>t)):j(t)})}const Go=new O("ROUTES");let yh=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=I(OC)}loadComponent(n){if(this.componentLoaders.get(n))return this.componentLoaders.get(n);if(n._loadedComponent)return j(n._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(n);const r=dr(n.loadComponent()).pipe(ne(Aw),J(i=>{this.onLoadEndListener&&this.onLoadEndListener(n),n._loadedComponent=i}),Kf(()=>{this.componentLoaders.delete(n)})),o=new $0(r,()=>new bn).pipe(Xf());return this.componentLoaders.set(n,o),o}loadChildren(n,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return j({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=this.loadModuleFactoryOrRoutes(r.loadChildren).pipe(ne(a=>{this.onLoadEndListener&&this.onLoadEndListener(r);let l,u;return Array.isArray(a)?u=a:(l=a.create(n).injector,u=l.get(Go,[],L.Self|L.Optional).flat()),{routes:u.map(hh),injector:l}}),Kf(()=>{this.childrenLoaders.delete(r)})),s=new $0(i,()=>new bn).pipe(Xf());return this.childrenLoaders.set(r,s),s}loadModuleFactoryOrRoutes(n){return dr(n()).pipe(ne(Aw),Ge(r=>r instanceof jv||Array.isArray(r)?j(r):xe(this.compiler.compileModuleAsync(r))))}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Aw(e){return function rF(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let Ul=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.lastSuccessfulNavigation=null,this.events=new bn,this.configLoader=I(yh),this.environmentInjector=I(un),this.urlSerializer=I(cs),this.rootContexts=I(ms),this.inputBindingEnabled=null!==I(Vl,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>j(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new Qx(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new Xx(o))}complete(){this.transitions?.complete()}handleNavigationRequest(n){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...n,id:r})}setupNavigations(n){return this.transitions=new Xt({id:0,currentUrlTree:n.currentUrlTree,currentRawUrl:n.currentUrlTree,extractedUrl:n.urlHandlingStrategy.extract(n.currentUrlTree),urlAfterRedirects:n.urlHandlingStrategy.extract(n.currentUrlTree),rawUrl:n.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:ps,restoredState:null,currentSnapshot:n.routerState.snapshot,targetSnapshot:null,currentRouterState:n.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(Hn(r=>0!==r.id),ne(r=>({...r,extractedUrl:n.urlHandlingStrategy.extract(r.rawUrl)})),_n(r=>{let o=!1,i=!1;return j(r).pipe(J(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}}),_n(s=>{const a=n.browserUrlTree.toString(),l=!n.navigated||s.extractedUrl.toString()!==a||a!==n.currentUrlTree.toString();if(!l&&"reload"!==(s.extras.onSameUrlNavigation??n.onSameUrlNavigation)){const c="";return this.events.next(new gs(s.id,n.serializeUrl(r.rawUrl),c,0)),n.rawUrlTree=s.rawUrl,s.resolve(null),en}if(n.urlHandlingStrategy.shouldProcessUrl(s.rawUrl))return Nw(s.source)&&(n.browserUrlTree=s.extractedUrl),j(s).pipe(_n(c=>{const d=this.transitions?.getValue();return this.events.next(new oh(c.id,this.urlSerializer.serialize(c.extractedUrl),c.source,c.restoredState)),d!==this.transitions?.getValue()?en:Promise.resolve(c)}),function Qk(e,t,n,r,o,i){return Ge(s=>function qk(e,t,n,r,o,i,s="emptyOnly"){return new Zk(e,t,n,r,o,s,i).recognize()}(e,t,n,r,s.extractedUrl,o,i).pipe(ne(({state:a,tree:l})=>({...s,targetSnapshot:a,urlAfterRedirects:l}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,n.config,this.urlSerializer,n.paramsInheritanceStrategy),J(c=>{if(r.targetSnapshot=c.targetSnapshot,r.urlAfterRedirects=c.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:c.urlAfterRedirects},"eager"===n.urlUpdateStrategy){if(!c.extras.skipLocationChange){const f=n.urlHandlingStrategy.merge(c.urlAfterRedirects,c.rawUrl);n.setBrowserUrl(f,c)}n.browserUrlTree=c.urlAfterRedirects}const d=new Gx(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(d)}));if(l&&n.urlHandlingStrategy.shouldProcessUrl(n.rawUrlTree)){const{id:c,extractedUrl:d,source:f,restoredState:h,extras:p}=s,v=new oh(c,this.urlSerializer.serialize(d),f,h);this.events.next(v);const w=uw(0,this.rootComponentType).snapshot;return j(r={...s,targetSnapshot:w,urlAfterRedirects:d,extras:{...p,skipLocationChange:!1,replaceUrl:!1}})}{const c="";return this.events.next(new gs(s.id,n.serializeUrl(r.extractedUrl),c,1)),n.rawUrlTree=s.rawUrl,s.resolve(null),en}}),J(s=>{const a=new Wx(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(a)}),ne(s=>r={...s,guards:mk(s.targetSnapshot,s.currentSnapshot,this.rootContexts)}),function Ik(e,t){return Ge(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?j({...n,guardsResult:!0}):function Tk(e,t,n,r){return xe(e).pipe(Ge(o=>function xk(e,t,n,r,o){const i=t&&t.routeConfig?t.routeConfig.canDeactivate:null;return i&&0!==i.length?j(i.map(a=>{const l=vs(t)??o,u=Bo(a,l);return dr(function Mk(e){return e&&Ds(e.canDeactivate)}(u)?u.canDeactivate(e,t,n,r):l.runInContext(()=>u(e,t,n,r))).pipe(kr())})).pipe(Uo()):j(!0)}(o.component,o.route,n,t,r)),kr(o=>!0!==o,!0))}(s,r,o,e).pipe(Ge(a=>a&&function _k(e){return"boolean"==typeof e}(a)?function Ak(e,t,n,r){return xe(t).pipe(Po(o=>Yf(function Rk(e,t){return null!==e&&t&&t(new Kx(e)),j(!0)}(o.route.parent,r),function Nk(e,t){return null!==e&&t&&t(new ek(e)),j(!0)}(o.route,r),function Pk(e,t,n){const r=t[t.length-1],i=t.slice(0,t.length-1).reverse().map(s=>function yk(e){const t=e.routeConfig?e.routeConfig.canActivateChild:null;return t&&0!==t.length?{node:e,guards:t}:null}(s)).filter(s=>null!==s).map(s=>V0(()=>j(s.guards.map(l=>{const u=vs(s.node)??n,c=Bo(l,u);return dr(function Ek(e){return e&&Ds(e.canActivateChild)}(c)?c.canActivateChild(r,e):u.runInContext(()=>c(r,e))).pipe(kr())})).pipe(Uo())));return j(i).pipe(Uo())}(e,o.path,n),function Ok(e,t,n){const r=t.routeConfig?t.routeConfig.canActivate:null;if(!r||0===r.length)return j(!0);const o=r.map(i=>V0(()=>{const s=vs(t)??n,a=Bo(i,s);return dr(function wk(e){return e&&Ds(e.canActivate)}(a)?a.canActivate(t,e):s.runInContext(()=>a(t,e))).pipe(kr())}));return j(o).pipe(Uo())}(e,o.route,n))),kr(o=>!0!==o,!0))}(r,i,e,t):j(a)),ne(a=>({...n,guardsResult:a})))})}(this.environmentInjector,s=>this.events.next(s)),J(s=>{if(r.guardsResult=s.guardsResult,Lr(s.guardsResult))throw pw(0,s.guardsResult);const a=new qx(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot,!!s.guardsResult);this.events.next(a)}),Hn(s=>!!s.guardsResult||(n.restoreHistory(s),this.cancelNavigationTransition(s,"",3),!1)),mh(s=>{if(s.guards.canActivateChecks.length)return j(s).pipe(J(a=>{const l=new Zx(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}),_n(a=>{let l=!1;return j(a).pipe(function Kk(e,t){return Ge(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return j(n);let i=0;return xe(o).pipe(Po(s=>function Jk(e,t,n,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!Tw(o)&&(i[ls]=o.title),function eF(e,t,n,r){const o=function tF(e){return[...Object.keys(e),...Object.getOwnPropertySymbols(e)]}(e);if(0===o.length)return j({});const i={};return xe(o).pipe(Ge(s=>function nF(e,t,n,r){const o=vs(t)??r,i=Bo(e,o);return dr(i.resolve?i.resolve(t,n):o.runInContext(()=>i(t,n)))}(e[s],t,n,r).pipe(kr(),J(a=>{i[s]=a}))),Qf(1),function mx(e){return ne(()=>e)}(i),de(s=>_w(s)?en:as(s)))}(i,e,t,r).pipe(ne(s=>(e._resolvedData=s,e.data=cw(e,n).resolve,o&&Tw(o)&&(e.data[ls]=o.title),null)))}(s.route,r,e,t)),J(()=>i++),Qf(1),Ge(s=>i===o.length?j(n):en))})}(n.paramsInheritanceStrategy,this.environmentInjector),J({next:()=>l=!0,complete:()=>{l||(n.restoreHistory(a),this.cancelNavigationTransition(a,"",2))}}))}),J(a=>{const l=new Yx(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(l)}))}),mh(s=>{const a=l=>{const u=[];l.routeConfig?.loadComponent&&!l.routeConfig._loadedComponent&&u.push(this.configLoader.loadComponent(l.routeConfig).pipe(J(c=>{l.component=c}),ne(()=>{})));for(const c of l.children)u.push(...a(c));return u};return Zf(a(s.targetSnapshot.root)).pipe(Al(),Vo(1))}),mh(()=>this.afterPreactivation()),ne(s=>{const a=function sk(e,t,n){const r=ys(e,t._root,n?n._root:void 0);return new lw(r,t)}(n.routeReuseStrategy,s.targetSnapshot,s.currentRouterState);return r={...s,targetRouterState:a}}),J(s=>{n.currentUrlTree=s.urlAfterRedirects,n.rawUrlTree=n.urlHandlingStrategy.merge(s.urlAfterRedirects,s.rawUrl),n.routerState=s.targetRouterState,"deferred"===n.urlUpdateStrategy&&(s.extras.skipLocationChange||n.setBrowserUrl(n.rawUrlTree,s),n.browserUrlTree=s.urlAfterRedirects)}),((e,t,n,r)=>ne(o=>(new gk(t,o.targetRouterState,o.currentRouterState,n,r).activate(e),o)))(this.rootContexts,n.routeReuseStrategy,s=>this.events.next(s),this.inputBindingEnabled),Vo(1),J({next:s=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,n.navigated=!0,this.events.next(new Vr(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(n.currentUrlTree))),n.titleStrategy?.updateTitle(s.targetRouterState.snapshot),s.resolve(!0)},complete:()=>{o=!0}}),Kf(()=>{o||i||this.cancelNavigationTransition(r,"",1),this.currentNavigation?.id===r.id&&(this.currentNavigation=null)}),de(s=>{if(i=!0,yw(s)){mw(s)||(n.navigated=!0,n.restoreHistory(r,!0));const a=new Fl(r.id,this.urlSerializer.serialize(r.extractedUrl),s.message,s.cancellationCode);if(this.events.next(a),mw(s)){const l=n.urlHandlingStrategy.merge(s.url,n.rawUrlTree),u={skipLocationChange:r.extras.skipLocationChange,replaceUrl:"eager"===n.urlUpdateStrategy||Nw(r.source)};n.scheduleNavigation(l,ps,null,u,{resolve:r.resolve,reject:r.reject,promise:r.promise})}else r.resolve(!1)}else{n.restoreHistory(r,!0);const a=new ih(r.id,this.urlSerializer.serialize(r.extractedUrl),s,r.targetSnapshot??void 0);this.events.next(a);try{r.resolve(n.errorHandler(s))}catch(l){r.reject(l)}}return en}))}))}cancelNavigationTransition(n,r,o){const i=new Fl(n.id,this.urlSerializer.serialize(n.extractedUrl),r,o);this.events.next(i),n.resolve(!1)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();function Nw(e){return e!==ps}let Rw=(()=>{class e{buildTitle(n){let r,o=n.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===q);return r}getResolvedTitleForRoute(n){return n.data[ls]}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(oF)},providedIn:"root"}),e})(),oF=(()=>{class e extends Rw{constructor(n){super(),this.title=n}updateTitle(n){const r=this.buildTitle(n);void 0!==r&&this.title.setTitle(r)}}return e.\u0275fac=function(n){return new(n||e)(R(oD))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),iF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(aF)},providedIn:"root"}),e})();class sF{shouldDetach(t){return!1}store(t,n){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,n){return t.routeConfig===n.routeConfig}}let aF=(()=>{class e extends sF{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=Ze(e)))(r||e)}}(),e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const zl=new O("",{providedIn:"root",factory:()=>({})});let lF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:function(){return I(uF)},providedIn:"root"}),e})(),uF=(()=>{class e{shouldProcessUrl(n){return!0}extract(n){return n}merge(n,r){return n}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();var It=(()=>((It=It||{})[It.COMPLETE=0]="COMPLETE",It[It.FAILED=1]="FAILED",It[It.REDIRECTING=2]="REDIRECTING",It))();function Ow(e,t){e.events.pipe(Hn(n=>n instanceof Vr||n instanceof Fl||n instanceof ih||n instanceof gs),ne(n=>n instanceof Vr||n instanceof gs?It.COMPLETE:n instanceof Fl&&(0===n.code||1===n.code)?It.REDIRECTING:It.FAILED),Hn(n=>n!==It.REDIRECTING),Vo(1)).subscribe(()=>{t()})}function cF(e){throw e}function dF(e,t,n){return t.parse("/")}const fF={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},hF={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let Ue=(()=>{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=I(RC),this.isNgZoneEnabled=!1,this.options=I(zl,{optional:!0})||{},this.pendingTasks=I(p_),this.errorHandler=this.options.errorHandler||cF,this.malformedUriErrorHandler=this.options.malformedUriErrorHandler||dF,this.navigated=!1,this.lastSuccessfulId=-1,this.urlHandlingStrategy=I(lF),this.routeReuseStrategy=I(iF),this.titleStrategy=I(Rw),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=I(Go,{optional:!0})?.flat()??[],this.navigationTransitions=I(Ul),this.urlSerializer=I(cs),this.location=I(qd),this.componentInputBindingEnabled=!!I(Vl,{optional:!0}),this.isNgZoneEnabled=I(ve)instanceof ve&&ve.isInAngularZone(),this.resetConfig(this.config),this.currentUrlTree=new Ho,this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.routerState=uw(0,null),this.navigationTransitions.setupNavigations(this).subscribe(n=>{this.lastSuccessfulId=n.id,this.currentPageId=this.browserPageId??0},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}resetRootComponentType(n){this.routerState.root.component=n,this.navigationTransitions.rootComponentType=n}initialNavigation(){if(this.setUpLocationChangeListener(),!this.navigationTransitions.hasRequestedNavigation){const n=this.location.getState();this.navigateToSyncWithBrowser(this.location.path(!0),ps,n)}}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{this.navigateToSyncWithBrowser(n.url,r,n.state)},0)}))}navigateToSyncWithBrowser(n,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(n);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(n){this.config=n.map(hh),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(n,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=J0(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof n[0]||!n[0].startsWith("/"))&&(n=[]),d=this.currentUrlTree.root}return ew(d,n,c,u??null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=Lr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,ps,null,r)}navigate(n,r={skipLocationChange:!1}){return function pF(e){for(let t=0;t{const i=n[o];return null!=i&&(r[o]=i),r},{})}scheduleNavigation(n,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 Ow(this,()=>{Promise.resolve().then(()=>this.pendingTasks.remove(c))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:n,extras:i,resolve:a,reject:l,promise:u,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),u.catch(d=>Promise.reject(d))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n);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(n,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(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})(),Wo=(()=>{class e{constructor(n,r,o,i,s,a){this.router=n,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 bn;const l=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===l||"area"===l,this.isAnchorElement?this.subscription=n.events.subscribe(u=>{u instanceof Vr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}set preserveFragment(n){this._preserveFragment=Ao(n)}get preserveFragment(){return this._preserveFragment}set skipLocationChange(n){this._skipLocationChange=Ao(n)}get skipLocationChange(){return this._skipLocationChange}set replaceUrl(n){this._replaceUrl=Ao(n)}get replaceUrl(){return this._replaceUrl}setTabIndexIfNotOnNativeEl(n){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",n)}ngOnChanges(n){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(n){null!=n?(this.commands=Array.isArray(n)?n:[n],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(n,r,o,i,s){return!!(null===this.urlTree||this.isAnchorElement&&(0!==n||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 n=null===this.href?null:function tm(e,t,n){return function Pb(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?em:lc}(t,n)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",n)}applyAttributeValue(n,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,n,r):o.removeAttribute(i,n)}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(n){return new(n||e)(D(Ue),D(Bn),function Qs(e){return function nM(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const n=e.attrs;if(n){const r=n.length;let o=0;for(;o{class e{get isActive(){return this._isActive}constructor(n,r,o,i,s){this.router=n,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new Me,this.routerEventsSubscription=n.events.subscribe(a=>{a instanceof Vr&&this.update()})}ngAfterContentInit(){j(this.links.changes,j(null)).pipe(Hr()).subscribe(n=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const n=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=xe(n).pipe(Hr()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(n){const r=Array.isArray(n)?n:n.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(n){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||Promise.resolve().then(()=>{const n=this.hasActiveLinks();this._isActive!==n&&(this._isActive=n,this.cdr.markForCheck(),this.classes.forEach(r=>{n?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),n&&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(n))})}isLinkActive(n){const r=function gF(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>!!o.urlTree&&n.isActive(o.urlTree,r)}hasActiveLinks(){const n=this.isLinkActive(this.router);return this.link&&n(this.link)||this.links.some(n)}}return e.\u0275fac=function(n){return new(n||e)(D(Ue),D(Mt),D(xn),D(Ya),D(Wo,8))},e.\u0275dir=H({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(n,r,o){if(1&n&&function dC(e,t,n,r){const o=ee();if(o.firstCreatePass){const i=qe();hC(o,new uC(t,n,r),i.index),function k2(e,t){const n=e.contentQueries||(e.contentQueries=[]);t!==(n.length?n[n.length-1]:-1)&&n.push(e.queries.length-1,t)}(o,e),2==(2&n)&&(o.staticContentQueries=!0)}fC(o,E(),n)}(o,Wo,5),2&n){let i;Gi(i=Wi())&&(r.links=i)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Ot]}),e})();class xw{}let mF=(()=>{class e{constructor(n,r,o,i,s){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(Hn(n=>n instanceof Vr),Po(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=cd(i.providers,n,`Route: ${i.path}`));const s=i._injector??n,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 xe(o).pipe(Hr())}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(n,r):j(null);const i=o.pipe(Ge(s=>null===s?j(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??n,s.routes))));return r.loadComponent&&!r._loadedComponent?xe([i,this.loader.loadComponent(r)]).pipe(Hr()):i})}}return e.\u0275fac=function(n){return new(n||e)(R(Ue),R(OC),R(un),R(xw),R(yh))},e.\u0275prov=x({token:e,factory:e.\u0275fac,providedIn:"root"}),e})();const vh=new O("");let kw=(()=>{class e{constructor(n,r,o,i,s={}){this.urlSerializer=n,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(n=>{n instanceof oh?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Vr?(this.lastId=n.id,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.urlAfterRedirects).fragment)):n instanceof gs&&0===n.code&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(n,this.urlSerializer.parse(n.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(n=>{n instanceof sw&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new sw(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}}return e.\u0275fac=function(n){!function km(){throw new Error("invalid")}()},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();function Un(e,t){return{\u0275kind:e,\u0275providers:t}}function Lw(){const e=I(cn);return t=>{const n=e.get(To);if(t!==n.components[0])return;const r=e.get(Ue),o=e.get(Vw);1===e.get(Ch)&&r.initialNavigation(),e.get($w,null,L.Optional)?.setUpPreloading(),e.get(vh,null,L.Optional)?.init(),r.resetRootComponentType(n.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const Vw=new O("",{factory:()=>new bn}),Ch=new O("",{providedIn:"root",factory:()=>1}),$w=new O("");function _F(e){return Un(0,[{provide:$w,useExisting:mF},{provide:xw,useExisting:e}])}const Hw=new O("ROUTER_FORROOT_GUARD"),wF=[qd,{provide:cs,useClass:Jf},Ue,ms,{provide:Bn,useFactory:function Fw(e){return e.routerState.root},deps:[Ue]},yh,[]];function EF(){return new UC("Router",Ue)}let jw=(()=>{class e{constructor(n){}static forRoot(n,r){return{ngModule:e,providers:[wF,[],{provide:Go,multi:!0,useValue:n},{provide:Hw,useFactory:IF,deps:[[Ue,new ea,new ta]]},{provide:zl,useValue:r||{}},r?.useHash?{provide:rr,useClass:C_}:{provide:rr,useClass:v_},{provide:vh,useFactory:()=>{const e=I(m3),t=I(ve),n=I(zl),r=I(Ul),o=I(cs);return n.scrollOffset&&e.setOffset(n.scrollOffset),new kw(o,r,e,t,n)}},r?.preloadingStrategy?_F(r.preloadingStrategy).\u0275providers:[],{provide:UC,multi:!0,useFactory:EF},r?.initialNavigation?TF(r):[],r?.bindToComponentInputs?Un(8,[hw,{provide:Vl,useExisting:hw}]).\u0275providers:[],[{provide:Bw,useFactory:Lw},{provide:Fd,multi:!0,useExisting:Bw}]]}}static forChild(n){return{ngModule:e,providers:[{provide:Go,multi:!0,useValue:n}]}}}return e.\u0275fac=function(n){return new(n||e)(R(Hw,8))},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({}),e})();function IF(e){return"guarded"}function TF(e){return["disabled"===e.initialNavigation?Un(3,[{provide:Id,multi:!0,useFactory:()=>{const t=I(Ue);return()=>{t.setUpLocationChangeListener()}}},{provide:Ch,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Un(2,[{provide:Ch,useValue:0},{provide:Id,multi:!0,deps:[cn],useFactory:t=>{const n=t.get(KN,Promise.resolve());return()=>n.then(()=>new Promise(r=>{const o=t.get(Ue),i=t.get(Vw);Ow(o,()=>{r(!0)}),t.get(Ul).afterPreactivation=()=>(r(!0),i.closed?j(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const Bw=new O("");class tt{constructor(t,n,r){this.http=t,this.router=n,this.appMessageService=r,this.authenticated=!1,this.credentials={username:"",password:""},this.authority="none",this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} 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(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`LoginService: ${t}`)}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(t){this.log(`Authenticating: ${t.username}`),this.credentials=t;const n=new Ye({"Content-Type":"application/json",Accept:"application/json",Authorization:this.getAuthorizationToken()});return this.http.get(tt.REST_URL,{headers:n}).pipe(J(r=>this.authorizationRecieved(r)),de(this.handleError("authenticating user")))}logout(){this.authenticated=!1,this.log("Logged out"),this.router.navigateByUrl("/").then(()=>{})}authorizationRecieved(t){if(this.authenticated=!0,t.authorities){let n=t.authorities[0].authority;n=n.substring(n.indexOf("_")+1),this.authority=n}this.log(`Authenticated '${t.name}' as '${this.authority}'`)}changePassword(t){this.log("Changing password.");const n=Wf(10),r=F0(t,n);let o={};return o.username=this.credentials.username,o.password=r,this.http.post(tt.REST_URL,o,this.httpOptions).pipe(J(i=>this.authorizationRecieved(i)),de(this.handleError("changePassword")))}}tt.REST_URL=Pr_restServerUrl+"/api/user",tt.\u0275fac=function(t){return new(t||tt)(R(Or),R(Ue),R(xr))},tt.\u0275prov=x({token:tt,factory:tt.\u0275fac,providedIn:"root"});const NF=["scrollMe"];function RF(e,t){if(1&e&&(g(0,"li")(1,"div",9)(2,"span",10),C(3),m(),g(4,"span",11),C(5),Jn(6,"date"),m(),g(7,"span",12),C(8),m()(),g(9,"span",13),C(10),m()()),2&e){const n=t.$implicit;_(3),K(n.id),_(2),K(er(6,4,n.dateCreated,"medium")),_(3),K(n.author),_(2),K(n.text)}}function OF(e,t){if(1&e&&(g(0,"ul",6,7),Bt(2,RF,11,7,"li",8),m()),2&e){const n=pn();_(2),A("ngForOf",n.chatMessages)}}let _h=(()=>{class e{constructor(n,r){this.chatService=n,this.loginService=r,this.disableScrollDown=!1,this.chatMessages=[],this.newMessage="",this.serviceMessage="",this.errorMessage=""}getChatMessages(){this.serviceMessage="Loading chat ...",this.chatService.getChatMessages().subscribe({next:n=>{this.chatMessages=n,this.scrollToBottom(),this.serviceMessage="Loaded chat."},error:n=>{this.serviceMessage="",this.errorMessage=`Error loading chat: ${n.message}`}})}ngOnInit(){this.loginService.isAuthenticated()&&this.getChatMessages()}sendMessage(){this.serviceMessage="Sending message ...",this.chatService.addChatMessage(this.loginService.getUsername(),this.newMessage).subscribe({next:n=>{this.chatMessages.push(n),this.serviceMessage="Send OK.",this.disableScrollDown=!1,this.scrollToBottom()},error:n=>{this.serviceMessage="",this.errorMessage=`Error loading chat: ${n.message}`}}),this.newMessage=""}ngAfterViewChecked(){this.scrollToBottom()}scrollToBottom(){try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}}return e.\u0275fac=function(n){return new(n||e)(D(Dn),D(tt))},e.\u0275cmp=_t({type:e,selectors:[["app-chat"]],viewQuery:function(n,r){if(1&n&&Ga(NF,5),2&n){let o;Gi(o=Wi())&&(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(n,r){1&n&&(g(0,"p",0),C(1),m(),g(2,"p",1),C(3),m(),Bt(4,OF,3,1,"ul",2),g(5,"div",3)(6,"input",4),P("ngModelChange",function(i){return r.newMessage=i})("keydown.enter",function(){return r.sendMessage()}),m(),g(7,"button",5),P("click",function(){return r.sendMessage()}),C(8,"Send"),m(),g(9,"button",5),P("click",function(){return r.getChatMessages()}),C(10,"Reload"),m()()),2&n&&(A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(1),A("ngIf",r.chatMessages.length),_(2),A("ngModel",r.newMessage))},dependencies:[or,sf,Lt,Cn,Yt,No],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 PF=["scrollMe"];function xF(e,t){if(1&e&&(g(0,"p"),C(1),m()),2&e){const n=t.$implicit;_(1),K(n)}}function kF(e,t){if(1&e){const n=ki();g(0,"div",1)(1,"div")(2,"button",2),P("click",function(){return Zn(n),Yn(pn().appMessagesService.clear())}),C(3,"Clear messages"),m(),g(4,"h2"),C(5,"App messages"),m()(),g(6,"div",3,4),P("scroll",function(){return Zn(n),Yn(pn().onScroll())}),Bt(8,xF,2,1,"p",5),m()()}if(2&e){const n=pn();_(8),A("ngForOf",n.appMessagesService.messages)}}let FF=(()=>{class e{constructor(n){this.appMessagesService=n,this.disableScrollDown=!1}ngAfterViewChecked(){this.scrollToBottom()}onScroll(){let n=this.myScrollContainer.nativeElement;this.disableScrollDown=!(this.disableScrollDown&&n.scrollHeight-n.scrollTop===n.clientHeight)}scrollToBottom(){if(!this.disableScrollDown)try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}}return e.\u0275fac=function(n){return new(n||e)(D(xr))},e.\u0275cmp=_t({type:e,selectors:[["app-messages"]],viewQuery:function(n,r){if(1&n&&Ga(PF,5),2&n){let o;Gi(o=Wi())&&(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(n,r){1&n&&Bt(0,kF,9,1,"div",0),2&n&&A("ngIf",r.appMessagesService.messages.length)},dependencies:[or,sf],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 Uw=function(){return{exact:!0}};let LF=(()=>{class e{constructor(n){this.loginService=n,this.title="Familie TDS",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}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(n){0===n.button&&(n.preventDefault(),this.pos3=n.clientX,this.pos4=n.clientY,document.onmouseup=()=>this.endMouseDrag(),document.onmousemove=r=>this.mouseDragElement(r),this.target=document.getElementById("chatwindow"))}mouseDragElement(n){n.preventDefault(),this.pos1=this.pos3-n.clientX,this.pos2=this.pos4-n.clientY,this.pos3=n.clientX,this.pos4=n.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(n){n.preventDefault(),this.pos3=n.targetTouches[0].clientX,this.pos4=n.targetTouches[0].clientY,document.ontouchend=()=>this.endTouchDrag(),document.ontouchmove=r=>this.touchDragElement(r),this.target=document.getElementById("chatwindow")}touchDragElement(n){n.preventDefault(),this.pos1=this.pos3-n.targetTouches[0].clientX,this.pos2=this.pos4-n.targetTouches[0].clientY,this.pos3=n.targetTouches[0].clientX,this.pos4=n.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 n="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(n),r.classList.contains(n)?localStorage.setItem("theme",n):localStorage.setItem("theme","theme-light")}setTheme(n){const r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.add(n),localStorage.setItem("theme",n)}detectTheme(){const n=localStorage.getItem("theme");"theme-dark"!==n&&"theme-light"!==n?window.matchMedia("(prefers-color-scheme: dark)").matches?this.setTheme("theme-dark"):(window.matchMedia("(prefers-color-scheme: light)"),this.setTheme("theme-light")):this.setTheme(n)}ngOnInit(){this.detectTheme()}}return e.\u0275fac=function(n){return new(n||e)(D(tt))},e.\u0275cmp=_t({type:e,selectors:[["app-root"]],viewQuery:function(n,r){if(1&n&&Ga(_h,5),2&n){let o;Gi(o=Wi())&&(r.chatComponent=o.first)}},decls:46,vars:13,consts:[[3,"hidden"],["id","toggle-links",1,"big",3,"click"],["id","toggle-profile",1,"big","float-right",3,"click"],["id","links",3,"hidden"],["routerLinkActive","active-link","routerLink","/",3,"routerLinkActiveOptions"],["routerLinkActive","active-link","routerLink","/checklists"],["routerLinkActive","active-link","routerLink","/contacts"],["routerLinkActive","active-link","routerLink","/todo"],["id","profile",1,"float-right",3,"hidden"],[3,"click"],["title","Dark theme on/off",3,"click"],["routerLinkActive","active-link","routerLink","/profile"],["id","logout",3,"click"],[1,"float-right"],["routerLinkActive","active-link","routerLink","/login"],["id","tools",3,"hidden"],["id","toolbar"],["id","chatwindow",3,"hidden"],["id","chattitlebar",3,"mousedown","touchstart"],[1,"close-button",3,"click"],["id","chatcontent"],[1,"footer",3,"hidden"]],template:function(n,r){1&n&&(g(0,"nav")(1,"span",0)(2,"button",1),P("click",function(){return r.toggleLinks()}),C(3,"\u2261"),m(),g(4,"button",2),P("click",function(){return r.toggleProfile()}),C(5),m(),g(6,"div")(7,"div",3)(8,"a",4),C(9,"Home"),m(),g(10,"a",5),C(11,"Checklists"),m(),g(12,"a",6),C(13,"Contacts"),m(),g(14,"a",7),C(15,"Todo"),m()(),g(16,"div",8)(17,"button",9),P("click",function(){return r.toggleChatHidden()}),C(18,"Toggle Chat"),m(),g(19,"button",10),P("click",function(){return r.toggleTheme()}),C(20,"\u2600 Theme"),m(),g(21,"a",11),C(22,"Profile"),m(),g(23,"a",12),P("click",function(){return r.logout()}),C(24,"Logout"),m()()()(),g(25,"span",0)(26,"h1",13),C(27),m(),g(28,"a",4),C(29,"Home"),m(),g(30,"a",14),C(31,"Login"),m()()(),g(32,"div",15)(33,"div",16)(34,"button",9),P("click",function(){return r.toggleChatHidden()}),C(35,"Toggle Chat"),m()(),g(36,"div",17)(37,"div",18),P("mousedown",function(i){return r.startMouseDragging(i)})("touchstart",function(i){return r.startTouchDragging(i)}),C(38," Chat"),g(39,"button",19),P("click",function(){return r.toggleChatHidden()}),C(40,"\u2716"),m()(),g(41,"div",20),oe(42,"app-chat"),m()()(),g(43,"main"),oe(44,"router-outlet"),m(),oe(45,"app-messages",21)),2&n&&(_(1),A("hidden",!r.isAuthenticated()),_(4),K(r.username()),_(2),A("hidden",r.isLinksHidden()),_(1),A("routerLinkActiveOptions",fd(11,Uw)),_(8),A("hidden",r.isProfileHidden()),_(9),A("hidden",r.isAuthenticated()),_(2),K(r.title),_(1),A("routerLinkActiveOptions",fd(12,Uw)),_(4),A("hidden",!r.isAuthenticated()),_(4),A("hidden",r.isChatHidden()),_(9),A("hidden",r.isAppMessagesHidden()))},dependencies:[dh,Wo,Pw,FF,_h],styles:["#toggle-links[_ngcontent-%COMP%]{border:none;background:none;padding:unset;margin:0}#toggle-profile[_ngcontent-%COMP%]{border:none;background:none;padding:unset}.big[_ngcontent-%COMP%]{font-size:x-large}.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}#logout[_ngcontent-%COMP%]{color:#ef4040;cursor:pointer}#logout[_ngcontent-%COMP%]:hover{background-color:#604040}#toolbar[_ngcontent-%COMP%]{margin-top:-.4em;margin-bottom:-.4em;margin-left:.2em}#toolbar[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{border:1px solid #40404080}#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 Kt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} 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(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`TodoService: ${t}`)}getTodos(){return this.http.get(Kt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} todos`)),de(this.handleError("getTodos",[])))}addTodo(t){return this.http.post(Kt.REST_URL,{text:t},this.httpOptions).pipe(J(r=>this.log(`added todo w/ id=${r.id}`)),de(this.handleError("addTodo")))}deleteTodo(t){return this.http.delete(`${Kt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted todo id=${t}`)),de(this.handleError("deleteTodo")))}}function VF(e,t){if(1&e){const n=ki();g(0,"li")(1,"div",8)(2,"span",9),C(3),m(),g(4,"span",10),C(5),Jn(6,"date"),m(),g(7,"button",11),P("click",function(){const i=Zn(n).$implicit;return Yn(pn().delete(i))}),C(8,"x"),m()(),g(9,"span",12),C(10),m()()}if(2&e){const n=t.$implicit;_(3),K(n.id),_(2),K(er(6,3,n.dateCreated,"medium")),_(5),K(n.text)}}Kt.REST_URL=Pr_restServerUrl+"/api/todos",Kt.\u0275fac=function(t){return new(t||Kt)(R(Or),R(xr))},Kt.\u0275prov=x({token:Kt,factory:Kt.\u0275fac,providedIn:"root"});let $F=(()=>{class e{constructor(n){this.todoService=n,this.todos=[],this.newTodo="",this.serviceMessage="",this.errorMessage=""}getTodos(){this.serviceMessage="Loading todos ...",this.todoService.getTodos().subscribe({next:n=>{this.todos=n,this.serviceMessage=0==n.length?"Nothing to do!":""},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading todos: ${n.message}`}})}ngOnInit(){this.getTodos()}sendTodo(){this.serviceMessage="Adding todo ...",this.todoService.addTodo(this.newTodo).subscribe({next:n=>{this.todos.push(n),this.newTodo="",this.serviceMessage="Added todo."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while adding todo: ${n.message}`}})}delete(n){this.serviceMessage="Removing todo ...",this.todoService.deleteTodo(n.id).subscribe({next:()=>{this.todos=this.todos.filter(r=>r!==n),this.serviceMessage="Removed todo."},error:r=>{this.serviceMessage="",this.errorMessage=`Error while removing todo: ${r.message}`}})}}return e.\u0275fac=function(n){return new(n||e)(D(Kt))},e.\u0275cmp=_t({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(n,r){1&n&&(g(0,"h2"),C(1,"Your todos"),m(),g(2,"p",0),C(3),m(),g(4,"p",1),C(5),m(),g(6,"ol",2),Bt(7,VF,11,6,"li",3),m(),g(8,"h2"),C(9,"New Todo:"),m(),g(10,"div",4)(11,"div")(12,"label",5),C(13,"Text:"),m(),g(14,"input",6),P("ngModelChange",function(i){return r.newTodo=i})("keydown.enter",function(){return r.sendTodo()}),m(),g(15,"button",7),P("click",function(){return r.sendTodo()}),C(16,"Send"),m()()()),2&n&&(_(2),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(2),A("ngForOf",r.todos),_(7),A("ngModel",r.newTodo))},dependencies:[or,Lt,Cn,Yt,No],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 Jt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} 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(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`NewsService: ${t}`)}getNewsPosts(){return this.http.get(Jt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} news posts`)),de(this.handleError("getNews",[])))}addNewsPost(t,n){return this.http.post(Jt.REST_URL,{author:t,text:n},this.httpOptions).pipe(J(o=>this.log(`added message w/ id=${o.id}`)),de(this.handleError("addNewsPost")))}deleteNewsPost(t){return this.http.delete(`${Jt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted newspost id=${t}`)),de(this.handleError("deleteNewsPost")))}}function HF(e,t){if(1&e){const n=ki();g(0,"div",8)(1,"span")(2,"b"),C(3),m(),C(4),Jn(5,"date"),m(),g(6,"button",9),P("click",function(){const i=Zn(n).$implicit;return Yn(pn().delete(i))}),C(7,"x"),m(),g(8,"p"),C(9),m()()}if(2&e){const n=t.$implicit,r=pn();_(3),K(n.author),_(1),Be(" posted on ",er(5,4,n.dateCreated,"medium"),""),_(2),A("hidden",!r.isAdmin()),_(3),K(n.text)}}Jt.REST_URL=Pr_restServerUrl+"/api/news",Jt.\u0275fac=function(t){return new(t||Jt)(R(Or),R(xr))},Jt.\u0275prov=x({token:Jt,factory:Jt.\u0275fac,providedIn:"root"});let jF=(()=>{class e{constructor(n,r){this.loginService=n,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:n=>{this.newsMessages=n,this.serviceMessage=""},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading news: ${n.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:n=>{this.newsMessages.push(n),this.serviceMessage="Added news."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while adding news: ${n.message}`}}),this.newNewsMessage="")}delete(n){this.serviceMessage="Removing newspost ...",this.newsService.deleteNewsPost(n.id).subscribe({next:()=>{this.newsMessages=this.newsMessages.filter(r=>r!==n),this.serviceMessage="Removed newspost."},error:r=>{this.serviceMessage="",this.errorMessage=`Error while removing newspost: ${r.message}`}})}}return e.\u0275fac=function(n){return new(n||e)(D(tt),D(Jt))},e.\u0275cmp=_t({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(n,r){1&n&&(g(0,"span",0)(1,"p"),C(2),m(),g(3,"h3"),C(4,"News"),m(),g(5,"p",0),C(6),m(),g(7,"p",1),C(8),m(),g(9,"div",2),Bt(10,HF,10,7,"div",3),m(),g(11,"div",4)(12,"h3"),C(13,"Add news:"),m(),g(14,"label",5),C(15,"news:"),m(),g(16,"input",6),P("ngModelChange",function(i){return r.newNewsMessage=i})("keydown.enter",function(){return r.addNews()}),m(),g(17,"button",7),P("click",function(){return r.addNews()}),C(18,"Add"),m()()(),g(19,"p",0),C(20,"Welcome to our family site! Please login."),m()),2&n&&(A("hidden",!r.isAuthenticated()),_(2),Be("Welcome, ",r.username(),"!"),_(3),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(2),A("ngForOf",r.newsMessages),_(1),A("hidden",!r.isAdmin()),_(5),A("ngModel",r.newNewsMessage),_(3),A("hidden",r.isAuthenticated()))},dependencies:[or,Lt,Cn,Yt,No],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})(),BF=(()=>{class e{constructor(n,r){this.loginService=n,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(n=>{})},error:n=>{console.log("Login failed",n),this.errorMessage=`Login failed: ${n.message}`,this.serviceMessage=""}}),!1;this.errorMessage="Login failed: Username and password required."}}return e.\u0275fac=function(n){return new(n||e)(D(tt),D(Ue))},e.\u0275cmp=_t({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(n,r){1&n&&(g(0,"h2"),C(1,"Login form"),m(),g(2,"p",0),C(3),m(),g(4,"p",1),C(5),m(),g(6,"form",2),P("submit",function(){return r.login()}),g(7,"div",3)(8,"label",4),C(9,"Username:"),m(),g(10,"input",5),P("ngModelChange",function(i){return r.credentials.username=i}),m()(),g(11,"div",3)(12,"label",6),C(13,"Password:"),m(),g(14,"input",7),P("ngModelChange",function(i){return r.credentials.password=i}),m()(),g(15,"div",3)(16,"label",8),C(17,"Remember me:"),m(),g(18,"input",9),P("ngModelChange",function(i){return r.rememberme=i}),m()(),g(19,"button",10),C(20,"Login"),m()()),2&n&&(_(2),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(5),A("ngModel",r.credentials.username),_(4),A("ngModel",r.credentials.password),_(4),A("ngModel",r.rememberme))},dependencies:[YD,Lt,fl,Cn,kD,Yt,El],styles:["button[_ngcontent-%COMP%]{border:revert}"]}),e})();const $r=(e,t)=>{const n=I(tt),r=I(Ue);return!!n.isAuthenticated()||r.parseUrl("/login")};class mt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation",n){return r=>{throw this.log(`${t} 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(`${t} failed: status = ${r.status}`,{cause:r}))}}log(t){this.appMessageService.add(`ContactService: ${t}`)}getContacts(){return this.http.get(mt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} contacts`)),de(this.handleError("getContacts",[])))}getContact(t){return this.http.get(`${mt.REST_URL}/${t}`,this.httpOptions).pipe(J(n=>this.log(`fetched Contact ${n.id}`)),de(this.handleError("getContact",{})))}addContact(t){return this.http.post(mt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`added contact w/ id=${n.id}`)),de(this.handleError("addContact")))}saveContact(t){return this.http.post(mt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`saved contact w/ id=${n.id}`)),de(this.handleError("addContact")))}deleteContact(t){return this.http.delete(`${mt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted contact id=${t}`)),de(this.handleError("deleteContact")))}}mt.REST_URL=Pr_restServerUrl+"/api/contacts",mt.\u0275fac=function(t){return new(t||mt)(R(Or),R(xr))},mt.\u0275prov=x({token:mt,factory:mt.\u0275fac,providedIn:"root"});const UF=function(e){return["/contact",e]};function zF(e,t){if(1&e&&(g(0,"li")(1,"div",20)(2,"span")(3,"a",21),C(4),m()()(),g(5,"span",22),C(6),oe(7,"br"),C(8),oe(9,"br"),C(10),oe(11,"br"),C(12,"Website: "),g(13,"a",23),C(14),m(),oe(15,"br"),C(16),m()()),2&e){const n=t.$implicit;_(3),A("routerLink",Ua(9,UF,n.id)),_(1),Va("",n.firstName," ",n.lastName,""),_(2),Be(" Telephone: ",n.telephone," "),_(2),Be("E-mail: ",n.email," "),_(2),Be("Address: ",n.address," "),_(3),xa("href","https://",n.website,"",lc),_(1),K(n.website),_(2),Be("Description: ",n.description,"")}}let GF=(()=>{class e{constructor(n){this.contactsService=n,this.contacts=[],this.newContact={},this.serviceMessage="",this.errorMessage=""}getContacts(){this.serviceMessage="Loading contacts ...",this.contactsService.getContacts().subscribe({next:n=>{this.contacts=n,this.serviceMessage=n.length?"":"No contacts in database."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading contacts: ${n.message}`}})}ngOnInit(){this.getContacts()}sendContact(){this.serviceMessage="Adding contact ...",this.contactsService.addContact(this.newContact).subscribe({next:n=>{this.contacts.push(n),this.serviceMessage="Added contact."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while adding contact: ${n.message}`}}),this.newContact={}}}return e.\u0275fac=function(n){return new(n||e)(D(mt))},e.\u0275cmp=_t({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-title"],[3,"routerLink"],[1,"text"],["target","_blank",3,"href"]],template:function(n,r){1&n&&(g(0,"h2"),C(1,"Contacts:"),m(),g(2,"p",0),C(3),m(),g(4,"p",1),C(5),m(),g(6,"ol",2),Bt(7,zF,17,11,"li",3),m(),g(8,"h2"),C(9,"New contact:"),m(),g(10,"div",4)(11,"label",5),C(12,"Firstname:"),m(),g(13,"input",6),P("ngModelChange",function(i){return r.newContact.firstName=i}),m(),oe(14,"br"),g(15,"label",7),C(16,"Lastname:"),m(),g(17,"input",8),P("ngModelChange",function(i){return r.newContact.lastName=i}),m(),oe(18,"br"),g(19,"label",9),C(20,"Telephone:"),m(),g(21,"input",10),P("ngModelChange",function(i){return r.newContact.telephone=i}),m(),oe(22,"br"),g(23,"label",11),C(24,"Email:"),m(),g(25,"input",12),P("ngModelChange",function(i){return r.newContact.email=i}),m(),oe(26,"br"),g(27,"label",13),C(28,"Website:"),m(),g(29,"input",14),P("ngModelChange",function(i){return r.newContact.website=i}),m(),oe(30,"br"),g(31,"label",15),C(32,"Address:"),m(),g(33,"input",16),P("ngModelChange",function(i){return r.newContact.address=i}),m(),oe(34,"br"),g(35,"label",17),C(36,"Description:"),m(),g(37,"input",18),P("ngModelChange",function(i){return r.newContact.description=i}),m(),oe(38,"br"),g(39,"button",19),P("click",function(){return r.sendContact()}),C(40,"Send"),m()()),2&n&&(_(2),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(2),A("ngForOf",r.contacts),_(6),A("ngModel",r.newContact.firstName),_(4),A("ngModel",r.newContact.lastName),_(4),A("ngModel",r.newContact.telephone),_(4),A("ngModel",r.newContact.email),_(4),A("ngModel",r.newContact.website),_(4),A("ngModel",r.newContact.address),_(4),A("ngModel",r.newContact.description))},dependencies:[or,Lt,Cn,Yt,Wo],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:.1em;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}"]}),e})();class yt{constructor(t,n){this.http=t,this.appMessageService=n,this.httpOptions={headers:new Ye({"Content-Type":"application/json",Accept:"application/json"})}}handleError(t="operation"){return n=>{throw this.log(`${t} failed: response status = ${n.status} statusText = ${n.statusText}`),0===n.status&&!1===n.ok?new Error("Could not reach API, check your internet connection."):(console.error(n),new Error(`${t} failed: status = ${n.status}`,{cause:n}))}}log(t){this.appMessageService.add(`ChecklistService: ${t}`)}getChecklists(){return this.http.get(yt.REST_URL,this.httpOptions).pipe(J(t=>this.log(`fetched ${t.length} checklists`)),de(this.handleError("getChecklists")))}getChecklist(t){return this.http.get(`${yt.REST_URL}/${t}`,this.httpOptions).pipe(J(n=>this.log(`fetched checklist ${n.id}`)),de(this.handleError("getChecklist")))}addChecklist(t){return this.http.post(yt.REST_URL,{name:t},this.httpOptions).pipe(J(r=>this.log(`added checklist w/ id=${r.id}`)),de(this.handleError("addChecklist")))}saveChecklist(t){return this.http.post(yt.REST_URL,t,this.httpOptions).pipe(J(n=>this.log(`saved checklist w/ id=${n.id}`)),de(this.handleError("addChecklist")))}deleteChecklist(t){return this.http.delete(`${yt.REST_URL}/${t}`,this.httpOptions).pipe(J(r=>this.log(`deleted checklist id=${t}`)),de(this.handleError("deleteChecklist")))}}yt.REST_URL=Pr_restServerUrl+"/api/checklists",yt.\u0275fac=function(t){return new(t||yt)(R(Or),R(xr))},yt.\u0275prov=x({token:yt,factory:yt.\u0275fac,providedIn:"root"});const WF=function(e){return{strikethrough:e}};function qF(e,t){if(1&e&&(g(0,"li",12),C(1),m()),2&e){const n=t.$implicit;A("ngClass",Ua(2,WF,!0===n.checked)),_(1),Be(" ",n.text," ")}}const ZF=function(e){return["/checklist",e]};function YF(e,t){if(1&e&&(g(0,"li")(1,"span",8)(2,"a",9),C(3),m(),g(4,"ul",10),Bt(5,qF,2,4,"li",11),m()()()),2&e){const n=t.$implicit;_(2),A("routerLink",Ua(3,ZF,n.id)),_(1),K(n.name),_(2),A("ngForOf",n.checks)}}let XF=(()=>{class e{constructor(n,r){this.checklistService=n,this.router=r,this.route=I(Bn),this.checklists=[],this.newChecklist="",this.serviceMessage="",this.errorMessage=""}getChecklists(){this.serviceMessage="Loading checklists ...",this.checklistService.getChecklists().subscribe({next:n=>{this.checklists=n,this.serviceMessage=n.length?"":"No checklist in database."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading checklists: ${n.message}`}})}ngOnInit(){this.getChecklists()}sendChecklist(){""!==this.newChecklist&&(this.serviceMessage="Creating checklist ...",this.checklistService.addChecklist(this.newChecklist).subscribe({next:n=>this.router.navigate(["/checklist/",n.id]),error:n=>{this.serviceMessage="",this.errorMessage=`Error while creating checklists: ${n.message}`}}))}}return e.\u0275fac=function(n){return new(n||e)(D(yt),D(Ue))},e.\u0275cmp=_t({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,"text"],[3,"routerLink"],[1,"item-list"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"]],template:function(n,r){1&n&&(g(0,"h2"),C(1,"Checklists"),m(),g(2,"p",0),C(3),m(),g(4,"p",1),C(5),m(),g(6,"ol",2),Bt(7,YF,6,5,"li",3),m(),g(8,"h2"),C(9,"New checklist:"),m(),g(10,"div",4)(11,"div")(12,"label",5),C(13,"name:"),m(),g(14,"input",6),P("ngModelChange",function(i){return r.newChecklist=i})("keydown.enter",function(){return r.sendChecklist()}),m(),g(15,"button",7),P("click",function(){return r.sendChecklist()}),C(16,"Send"),m()()()),2&n&&(_(2),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(2),A("ngForOf",r.checklists),_(7),A("ngModel",r.newChecklist))},dependencies:[R_,or,Lt,Cn,Yt,Wo],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:.1em;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.strikethrough[_ngcontent-%COMP%]{text-decoration:line-through}"]}),e})();function QF(e,t){if(1&e){const n=ki();g(0,"li")(1,"input",10),P("ngModelChange",function(o){return Yn(Zn(n).$implicit.checked=o)})("change",function(){return Zn(n),Yn(pn().saveCheckList())}),m(),g(2,"label"),C(3),m(),g(4,"button",11),P("click",function(){const i=Zn(n).index;return Yn(pn().removeItem(i))}),C(5,"x"),m()()}if(2&e){const n=t.$implicit;_(1),A("ngModel",n.checked),_(2),K(n.text)}}const KF=[{path:"",component:jF,pathMatch:"full"},{path:"login",component:BF},{path:"profile",component:(()=>{class e{constructor(n){this.loginService=n,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:n=>{this.serviceMessage="",this.errorMessage=`Error while updating password: ${n.message}`}})):this.serviceMessage="Passwords do not match!"}toggleTheme(){const n="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(n),r.classList.contains(n)?localStorage.setItem("theme",n):localStorage.setItem("theme","theme-light")}}return e.\u0275fac=function(n){return new(n||e)(D(tt))},e.\u0275cmp=_t({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(n,r){1&n&&(g(0,"h1"),C(1),m(),g(2,"button",0),P("click",function(){return r.toggleTheme()}),C(3,"\u2600 Theme"),m(),g(4,"h2"),C(5,"Change password:"),m(),g(6,"p",1),C(7),m(),g(8,"p",2),C(9),m(),g(10,"div",3)(11,"div")(12,"label",4),C(13,"New password:"),m(),g(14,"input",5),P("ngModelChange",function(i){return r.newPassword1=i}),m(),oe(15,"br"),g(16,"label",6),C(17,"Repeat new password:"),m(),g(18,"input",7),P("ngModelChange",function(i){return r.newPassword2=i}),m(),oe(19,"br"),g(20,"button",8),P("click",function(){return r.saveProfile()}),C(21,"Save"),m()()()),2&n&&(_(1),Be("Profile of: ",r.username(),""),_(5),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(5),A("ngModel",r.newPassword1),_(4),A("ngModel",r.newPassword2))},dependencies:[Lt,Cn,Yt]}),e})(),canActivate:[$r]},{path:"chat",component:_h,canActivate:[$r]},{path:"todo",component:$F,canActivate:[$r]},{path:"contacts",component:GF,canActivate:[$r]},{path:"contact/:id",component:(()=>{class e{constructor(n,r){this.contactsService=n,this.router=r,this.route=I(Bn),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:n=>{this.contact=n,this.serviceMessage=""},error:n=>{this.serviceMessage="",this.errorMessage=`Error while loading contact: ${n.message}`}})}ngOnInit(){this.getChecklist()}saveContact(){this.serviceMessage="Updating contact ...",this.contactsService.saveContact(this.contact).subscribe({next:n=>{this.contact=n,this.serviceMessage="Updated contact."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while updating contact: ${n.message}`}})}deleteContact(){this.serviceMessage="Deleting contact ...",this.contactsService.deleteContact(this.contactId).subscribe({next:()=>this.router.navigateByUrl("/contacts"),error:n=>{this.serviceMessage="",this.errorMessage=`Error while deleting contact: ${n.message}`}})}}return e.\u0275fac=function(n){return new(n||e)(D(mt),D(Ue))},e.\u0275cmp=_t({type:e,selectors:[["app-edit-contact"]],decls:50,vars:22,consts:[[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"],["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(n,r){1&n&&(g(0,"h2"),C(1),m(),g(2,"p",0),C(3),m(),g(4,"p",1),C(5),m(),g(6,"p"),C(7),g(8,"button",2),P("click",function(){return r.deleteContact()}),C(9,"Delete contact"),m(),oe(10,"br"),C(11),Jn(12,"date"),oe(13,"br"),C(14),Jn(15,"date"),m(),oe(16,"p"),g(17,"h3"),C(18,"Details:"),m(),g(19,"div",3)(20,"label",4),C(21,"Firstname:"),m(),g(22,"input",5),P("ngModelChange",function(i){return r.contact.firstName=i}),m(),oe(23,"br"),g(24,"label",6),C(25,"Lastname:"),m(),g(26,"input",7),P("ngModelChange",function(i){return r.contact.lastName=i}),m(),oe(27,"br"),g(28,"label",8),C(29,"Telephone:"),m(),g(30,"input",9),P("ngModelChange",function(i){return r.contact.telephone=i}),m(),oe(31,"br"),g(32,"label",10),C(33,"Email:"),m(),g(34,"input",11),P("ngModelChange",function(i){return r.contact.email=i}),m(),oe(35,"br"),g(36,"label",12),C(37,"Website:"),m(),g(38,"input",13),P("ngModelChange",function(i){return r.contact.website=i}),m(),oe(39,"br"),g(40,"label",14),C(41,"Address:"),m(),g(42,"input",15),P("ngModelChange",function(i){return r.contact.address=i}),m(),oe(43,"br"),g(44,"label",16),C(45,"Description:"),m(),g(46,"input",17),P("ngModelChange",function(i){return r.contact.description=i}),m(),oe(47,"br"),g(48,"button",18),P("click",function(){return r.saveContact()}),C(49,"Save"),m()()),2&n&&(_(1),Va("Editing contact: ",r.contact.firstName," ",r.contact.lastName,""),_(1),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(2),Be("Id: ",r.contact.id," "),_(4),Be("Created on: ",er(12,16,r.contact.dateCreated,"medium")," "),_(3),Be("Updated on: ",er(15,19,r.contact.dateUpdated,"medium"),"\n"),_(8),A("ngModel",r.contact.firstName),_(4),A("ngModel",r.contact.lastName),_(4),A("ngModel",r.contact.telephone),_(4),A("ngModel",r.contact.email),_(4),A("ngModel",r.contact.website),_(4),A("ngModel",r.contact.address),_(4),A("ngModel",r.contact.description))},dependencies:[Lt,Cn,Yt,No],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080}"]}),e})(),canActivate:[$r]},{path:"checklists",component:XF,canActivate:[$r]},{path:"checklist/:id",component:(()=>{class e{constructor(n,r){this.checklistService=n,this.router=r,this.route=I(Bn),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:n=>{this.checklist=n,this.serviceMessage=""},error:n=>{this.serviceMessage="",this.errorMessage=`Error while getting checklists: ${n.message}`}})}ngOnInit(){this.getChecklist()}addItem(){""!==this.newItem&&(this.checklist.checks.push({text:this.newItem,checklist_id:this.checklist.id}),this.newItem="",this.saveCheckList())}removeItem(n){(this.checklist.checks[n].text||""===this.checklist.checks[n].text)&&(this.checklist.checks.splice(n,1),this.saveCheckList())}saveCheckList(){this.serviceMessage="Updating checklist ...",this.checklistService.saveChecklist(this.checklist).subscribe({next:n=>{this.checklist=n,this.serviceMessage="Saved checklist."},error:n=>{this.serviceMessage="",this.errorMessage=`Error while saving checklists: ${n.message}`}})}deleteChecklist(){this.serviceMessage="Removing checklist ...",this.checklistService.deleteChecklist(this.checklistId).subscribe({next:()=>{this.router.navigateByUrl("/checklists")},error:n=>{this.serviceMessage="",this.errorMessage=`Error while deleting checklists: ${n.message}`}})}}return e.\u0275fac=function(n){return new(n||e)(D(yt),D(Ue))},e.\u0275cmp=_t({type:e,selectors:[["app-edit-checklist"]],decls:36,vars:17,consts:[[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"],["type","button","title","Delete item",1,"delete",3,"click"]],template:function(n,r){1&n&&(g(0,"h2"),C(1),m(),g(2,"p",0),C(3),m(),g(4,"p",1),C(5),m(),g(6,"p"),C(7),g(8,"button",2),P("click",function(){return r.deleteChecklist()}),C(9,"Delete checklist"),m(),oe(10,"br"),C(11),Jn(12,"date"),oe(13,"br"),C(14),Jn(15,"date"),m(),g(16,"h3"),C(17,"Items:"),m(),g(18,"ol"),Bt(19,QF,6,2,"li",3),m(),g(20,"h2"),C(21,"Add item:"),m(),g(22,"div",4)(23,"label",5),C(24,"item:"),m(),g(25,"input",6),P("ngModelChange",function(i){return r.newItem=i})("keydown.enter",function(){return r.addItem()}),m(),g(26,"button",7),P("click",function(){return r.addItem()}),C(27,"Add"),m()(),g(28,"h2"),C(29,"Change name:"),m(),g(30,"div",4)(31,"label",8),C(32,"newName:"),m(),g(33,"input",9),P("ngModelChange",function(i){return r.checklist.name=i})("keydown.enter",function(){return r.saveCheckList()}),m(),g(34,"button",7),P("click",function(){return r.saveCheckList()}),C(35,"Save"),m()()),2&n&&(_(1),Be("Editing checklist: ",r.checklist.name,""),_(1),A("hidden",""===r.serviceMessage),_(1),K(r.serviceMessage),_(1),A("hidden",""===r.errorMessage),_(1),K(r.errorMessage),_(2),Be("Id: ",r.checklist.id," "),_(4),Be("Created on: ",er(12,11,r.checklist.dateCreated,"medium")," "),_(3),Be("Updated on: ",er(15,14,r.checklist.dateUpdated,"medium"),"\n"),_(5),A("ngForOf",r.checklist.checks),_(6),A("ngModel",r.newItem),_(8),A("ngModel",r.checklist.name))},dependencies:[or,Lt,fl,Cn,Yt,No],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080;margin-left:2em}"]}),e})(),canActivate:[$r]}];let JF=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e}),e.\u0275inj=Rt({imports:[jw.forRoot(KF),jw]}),e})(),e4=(()=>{class e{constructor(n){this.auth=n}intercept(n,r){if(this.auth.isAuthenticated()){const o=this.auth.getAuthorizationToken(),i=n.clone({headers:n.headers.set("Authorization",o)});return r.handle(i)}return r.handle(n)}}return e.\u0275fac=function(n){return new(n||e)(R(tt))},e.\u0275prov=x({token:e,factory:e.\u0275fac}),e})();const Mn=void 0;!function $R(e,t,n){(function GT(e,t,n){"string"!=typeof t&&(n=t,t=e[N.LocaleId]),t=t.toLowerCase().replace(/_/g,"-"),Eo[t]=e,n&&(Eo[t][N.ExtraData]=n)})(e,t,n)}(["nl",[["a.m.","p.m."],Mn,Mn],Mn,[["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"]],Mn,[["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"]],Mn,[["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}",Mn,"{1} 'om' {0}",Mn],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00;\xa4\xa0-#,##0.00","#E0"],"EUR","\u20ac","Euro",{AUD:["AU$","$"],BYN:[Mn,"\u0440."],CAD:["C$","$"],FJD:["FJ$","$"],JPY:["JP\xa5","\xa5"],PHP:[Mn,"\u20b1"],RUR:[Mn,"\u0440."],SBD:["SI$","$"],THB:["\u0e3f"],TWD:["NT$"],USD:["US$","$"],XPF:[],XXX:[]},"ltr",function t4(e){const n=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}]);let n4=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=$t({type:e,bootstrap:[LF]}),e.\u0275inj=Rt({providers:[{provide:w0,useClass:e4,multi:!0},{provide:rr,useClass:C_},{provide:yn,useValue:"nl-BE"}],imports:[hO,EP,qP,JF]}),e})();dO().bootstrapModule(n4).catch(e=>console.error(e))}},ce=>{ce(ce.s=282)}]); \ No newline at end of file diff --git a/tds-front/dist/familySite1/polyfills.1358c66226f5aae4.js b/tds-front/dist/familySite1/polyfills.1358c66226f5aae4.js new file mode 100644 index 0000000..4a714a6 --- /dev/null +++ b/tds-front/dist/familySite1/polyfills.1358c66226f5aae4.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkfamilySite1=self.webpackChunkfamilySite1||[]).push([[429],{583:()=>{!function(t){const n=t.performance;function i(L){n&&n.mark&&n.mark(L)}function o(L,T){n&&n.measure&&n.measure(L,T)}i("Zone");const c=t.__Zone_symbol_prefix||"__zone_symbol__";function a(L){return c+L}const y=!0===t[a("forceDuplicateZoneCheck")];if(t.Zone){if(y||"function"!=typeof t.Zone.__symbol__)throw new Error("Zone already loaded.");return t.Zone}let d=(()=>{class L{static assertZonePatched(){if(t.Promise!==oe.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let e=L.current;for(;e.parent;)e=e.parent;return e}static get current(){return U.zone}static get currentTask(){return re}static __load_patch(e,r,k=!1){if(oe.hasOwnProperty(e)){if(!k&&y)throw Error("Already loaded patch: "+e)}else if(!t["__Zone_disable_"+e]){const C="Zone:"+e;i(C),oe[e]=r(t,L,z),o(C,C)}}get parent(){return this._parent}get name(){return this._name}constructor(e,r){this._parent=e,this._name=r?r.name||"unnamed":"",this._properties=r&&r.properties||{},this._zoneDelegate=new v(this,this._parent&&this._parent._zoneDelegate,r)}get(e){const r=this.getZoneWith(e);if(r)return r._properties[e]}getZoneWith(e){let r=this;for(;r;){if(r._properties.hasOwnProperty(e))return r;r=r._parent}return null}fork(e){if(!e)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,e)}wrap(e,r){if("function"!=typeof e)throw new Error("Expecting function got: "+e);const k=this._zoneDelegate.intercept(this,e,r),C=this;return function(){return C.runGuarded(k,this,arguments,r)}}run(e,r,k,C){U={parent:U,zone:this};try{return this._zoneDelegate.invoke(this,e,r,k,C)}finally{U=U.parent}}runGuarded(e,r=null,k,C){U={parent:U,zone:this};try{try{return this._zoneDelegate.invoke(this,e,r,k,C)}catch($){if(this._zoneDelegate.handleError(this,$))throw $}}finally{U=U.parent}}runTask(e,r,k){if(e.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(e.zone||J).name+"; Execution: "+this.name+")");if(e.state===x&&(e.type===Q||e.type===P))return;const C=e.state!=E;C&&e._transitionTo(E,A),e.runCount++;const $=re;re=e,U={parent:U,zone:this};try{e.type==P&&e.data&&!e.data.isPeriodic&&(e.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,e,r,k)}catch(l){if(this._zoneDelegate.handleError(this,l))throw l}}finally{e.state!==x&&e.state!==h&&(e.type==Q||e.data&&e.data.isPeriodic?C&&e._transitionTo(A,E):(e.runCount=0,this._updateTaskCount(e,-1),C&&e._transitionTo(x,E,x))),U=U.parent,re=$}}scheduleTask(e){if(e.zone&&e.zone!==this){let k=this;for(;k;){if(k===e.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${e.zone.name}`);k=k.parent}}e._transitionTo(X,x);const r=[];e._zoneDelegates=r,e._zone=this;try{e=this._zoneDelegate.scheduleTask(this,e)}catch(k){throw e._transitionTo(h,X,x),this._zoneDelegate.handleError(this,k),k}return e._zoneDelegates===r&&this._updateTaskCount(e,1),e.state==X&&e._transitionTo(A,X),e}scheduleMicroTask(e,r,k,C){return this.scheduleTask(new m(I,e,r,k,C,void 0))}scheduleMacroTask(e,r,k,C,$){return this.scheduleTask(new m(P,e,r,k,C,$))}scheduleEventTask(e,r,k,C,$){return this.scheduleTask(new m(Q,e,r,k,C,$))}cancelTask(e){if(e.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(e.zone||J).name+"; Execution: "+this.name+")");if(e.state===A||e.state===E){e._transitionTo(G,A,E);try{this._zoneDelegate.cancelTask(this,e)}catch(r){throw e._transitionTo(h,G),this._zoneDelegate.handleError(this,r),r}return this._updateTaskCount(e,-1),e._transitionTo(x,G),e.runCount=0,e}}_updateTaskCount(e,r){const k=e._zoneDelegates;-1==r&&(e._zoneDelegates=null);for(let C=0;CL.hasTask(e,r),onScheduleTask:(L,T,e,r)=>L.scheduleTask(e,r),onInvokeTask:(L,T,e,r,k,C)=>L.invokeTask(e,r,k,C),onCancelTask:(L,T,e,r)=>L.cancelTask(e,r)};class v{constructor(T,e,r){this._taskCounts={microTask:0,macroTask:0,eventTask:0},this.zone=T,this._parentDelegate=e,this._forkZS=r&&(r&&r.onFork?r:e._forkZS),this._forkDlgt=r&&(r.onFork?e:e._forkDlgt),this._forkCurrZone=r&&(r.onFork?this.zone:e._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:e._interceptZS),this._interceptDlgt=r&&(r.onIntercept?e:e._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this.zone:e._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:e._invokeZS),this._invokeDlgt=r&&(r.onInvoke?e:e._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this.zone:e._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:e._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?e:e._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this.zone:e._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:e._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?e:e._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this.zone:e._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:e._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?e:e._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this.zone:e._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:e._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?e:e._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this.zone:e._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const k=r&&r.onHasTask;(k||e&&e._hasTaskZS)&&(this._hasTaskZS=k?r:b,this._hasTaskDlgt=e,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=T,r.onScheduleTask||(this._scheduleTaskZS=b,this._scheduleTaskDlgt=e,this._scheduleTaskCurrZone=this.zone),r.onInvokeTask||(this._invokeTaskZS=b,this._invokeTaskDlgt=e,this._invokeTaskCurrZone=this.zone),r.onCancelTask||(this._cancelTaskZS=b,this._cancelTaskDlgt=e,this._cancelTaskCurrZone=this.zone))}fork(T,e){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,T,e):new d(T,e)}intercept(T,e,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,T,e,r):e}invoke(T,e,r,k,C){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,T,e,r,k,C):e.apply(r,k)}handleError(T,e){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,T,e)}scheduleTask(T,e){let r=e;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,T,e),r||(r=e);else if(e.scheduleFn)e.scheduleFn(e);else{if(e.type!=I)throw new Error("Task is missing scheduleFn.");R(e)}return r}invokeTask(T,e,r,k){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,T,e,r,k):e.callback.apply(r,k)}cancelTask(T,e){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,T,e);else{if(!e.cancelFn)throw Error("Task is not cancelable");r=e.cancelFn(e)}return r}hasTask(T,e){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,T,e)}catch(r){this.handleError(T,r)}}_updateTaskCount(T,e){const r=this._taskCounts,k=r[T],C=r[T]=k+e;if(C<0)throw new Error("More tasks executed then were scheduled.");0!=k&&0!=C||this.hasTask(this.zone,{microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:T})}}class m{constructor(T,e,r,k,C,$){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=T,this.source=e,this.data=k,this.scheduleFn=C,this.cancelFn=$,!r)throw new Error("callback is not defined");this.callback=r;const l=this;this.invoke=T===Q&&k&&k.useG?m.invokeTask:function(){return m.invokeTask.call(t,l,this,arguments)}}static invokeTask(T,e,r){T||(T=this),ee++;try{return T.runCount++,T.zone.runTask(T,e,r)}finally{1==ee&&_(),ee--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(x,X)}_transitionTo(T,e,r){if(this._state!==e&&this._state!==r)throw new Error(`${this.type} '${this.source}': can not transition to '${T}', expecting state '${e}'${r?" or '"+r+"'":""}, was '${this._state}'.`);this._state=T,T==x&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const M=a("setTimeout"),O=a("Promise"),N=a("then");let K,B=[],H=!1;function q(L){if(K||t[O]&&(K=t[O].resolve(0)),K){let T=K[N];T||(T=K.then),T.call(K,L)}else t[M](L,0)}function R(L){0===ee&&0===B.length&&q(_),L&&B.push(L)}function _(){if(!H){for(H=!0;B.length;){const L=B;B=[];for(let T=0;TU,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:R,showUncaughtError:()=>!d[a("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:q};let U={parent:null,zone:new d(null,null)},re=null,ee=0;function W(){}o("Zone","Zone"),t.Zone=d}(typeof window<"u"&&window||typeof self<"u"&&self||global);const ue=Object.getOwnPropertyDescriptor,me=Object.defineProperty,ve=Object.getPrototypeOf,Se=Object.create,it=Array.prototype.slice,De="addEventListener",Ze="removeEventListener",Oe=Zone.__symbol__(De),Ne=Zone.__symbol__(Ze),ie="true",ce="false",pe=Zone.__symbol__("");function Ie(t,n){return Zone.current.wrap(t,n)}function Le(t,n,i,o,c){return Zone.current.scheduleMacroTask(t,n,i,o,c)}const j=Zone.__symbol__,be=typeof window<"u",_e=be?window:void 0,Y=be&&_e||"object"==typeof self&&self||global,ct="removeAttribute";function Me(t,n){for(let i=t.length-1;i>=0;i--)"function"==typeof t[i]&&(t[i]=Ie(t[i],n+"_"+i));return t}function Ve(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&typeof t.set>"u")}const Fe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Pe=!("nw"in Y)&&typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process),Ae=!Pe&&!Fe&&!(!be||!_e.HTMLElement),Be=typeof Y.process<"u"&&"[object process]"==={}.toString.call(Y.process)&&!Fe&&!(!be||!_e.HTMLElement),we={},Ue=function(t){if(!(t=t||Y.event))return;let n=we[t.type];n||(n=we[t.type]=j("ON_PROPERTY"+t.type));const i=this||t.target||Y,o=i[n];let c;return Ae&&i===_e&&"error"===t.type?(c=o&&o.call(this,t.message,t.filename,t.lineno,t.colno,t.error),!0===c&&t.preventDefault()):(c=o&&o.apply(this,arguments),null!=c&&!c&&t.preventDefault()),c};function We(t,n,i){let o=ue(t,n);if(!o&&i&&ue(i,n)&&(o={enumerable:!0,configurable:!0}),!o||!o.configurable)return;const c=j("on"+n+"patched");if(t.hasOwnProperty(c)&&t[c])return;delete o.writable,delete o.value;const a=o.get,y=o.set,d=n.slice(2);let b=we[d];b||(b=we[d]=j("ON_PROPERTY"+d)),o.set=function(v){let m=this;!m&&t===Y&&(m=Y),m&&("function"==typeof m[b]&&m.removeEventListener(d,Ue),y&&y.call(m,null),m[b]=v,"function"==typeof v&&m.addEventListener(d,Ue,!1))},o.get=function(){let v=this;if(!v&&t===Y&&(v=Y),!v)return null;const m=v[b];if(m)return m;if(a){let M=a.call(this);if(M)return o.set.call(this,M),"function"==typeof v[ct]&&v.removeAttribute(n),M}return null},me(t,n,o),t[c]=!0}function qe(t,n,i){if(n)for(let o=0;ofunction(y,d){const b=i(y,d);return b.cbIdx>=0&&"function"==typeof d[b.cbIdx]?Le(b.name,d[b.cbIdx],b,c):a.apply(y,d)})}function le(t,n){t[j("OriginalDelegate")]=n}let Xe=!1,je=!1;function ft(){if(Xe)return je;Xe=!0;try{const t=_e.navigator.userAgent;(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/")||-1!==t.indexOf("Edge/"))&&(je=!0)}catch{}return je}Zone.__load_patch("ZoneAwarePromise",(t,n,i)=>{const o=Object.getOwnPropertyDescriptor,c=Object.defineProperty,y=i.symbol,d=[],b=!0===t[y("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],v=y("Promise"),m=y("then"),M="__creationTrace__";i.onUnhandledError=l=>{if(i.showUncaughtError()){const u=l&&l.rejection;u?console.error("Unhandled Promise rejection:",u instanceof Error?u.message:u,"; Zone:",l.zone.name,"; Task:",l.task&&l.task.source,"; Value:",u,u instanceof Error?u.stack:void 0):console.error(l)}},i.microtaskDrainDone=()=>{for(;d.length;){const l=d.shift();try{l.zone.runGuarded(()=>{throw l.throwOriginal?l.rejection:l})}catch(u){N(u)}}};const O=y("unhandledPromiseRejectionHandler");function N(l){i.onUnhandledError(l);try{const u=n[O];"function"==typeof u&&u.call(this,l)}catch{}}function B(l){return l&&l.then}function H(l){return l}function K(l){return e.reject(l)}const q=y("state"),R=y("value"),_=y("finally"),J=y("parentPromiseValue"),x=y("parentPromiseState"),X="Promise.then",A=null,E=!0,G=!1,h=0;function I(l,u){return s=>{try{z(l,u,s)}catch(f){z(l,!1,f)}}}const P=function(){let l=!1;return function(s){return function(){l||(l=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",oe=y("currentTaskTrace");function z(l,u,s){const f=P();if(l===s)throw new TypeError(Q);if(l[q]===A){let g=null;try{("object"==typeof s||"function"==typeof s)&&(g=s&&s.then)}catch(w){return f(()=>{z(l,!1,w)})(),l}if(u!==G&&s instanceof e&&s.hasOwnProperty(q)&&s.hasOwnProperty(R)&&s[q]!==A)re(s),z(l,s[q],s[R]);else if(u!==G&&"function"==typeof g)try{g.call(s,f(I(l,u)),f(I(l,!1)))}catch(w){f(()=>{z(l,!1,w)})()}else{l[q]=u;const w=l[R];if(l[R]=s,l[_]===_&&u===E&&(l[q]=l[x],l[R]=l[J]),u===G&&s instanceof Error){const p=n.currentTask&&n.currentTask.data&&n.currentTask.data[M];p&&c(s,oe,{configurable:!0,enumerable:!1,writable:!0,value:p})}for(let p=0;p{try{const S=l[R],D=!!s&&_===s[_];D&&(s[J]=S,s[x]=w);const Z=u.run(p,void 0,D&&p!==K&&p!==H?[]:[S]);z(s,!0,Z)}catch(S){z(s,!1,S)}},s)}const L=function(){},T=t.AggregateError;class e{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(u){return z(new this(null),E,u)}static reject(u){return z(new this(null),G,u)}static any(u){if(!u||"function"!=typeof u[Symbol.iterator])return Promise.reject(new T([],"All promises were rejected"));const s=[];let f=0;try{for(let p of u)f++,s.push(e.resolve(p))}catch{return Promise.reject(new T([],"All promises were rejected"))}if(0===f)return Promise.reject(new T([],"All promises were rejected"));let g=!1;const w=[];return new e((p,S)=>{for(let D=0;D{g||(g=!0,p(Z))},Z=>{w.push(Z),f--,0===f&&(g=!0,S(new T(w,"All promises were rejected")))})})}static race(u){let s,f,g=new this((S,D)=>{s=S,f=D});function w(S){s(S)}function p(S){f(S)}for(let S of u)B(S)||(S=this.resolve(S)),S.then(w,p);return g}static all(u){return e.allWithCallback(u)}static allSettled(u){return(this&&this.prototype instanceof e?this:e).allWithCallback(u,{thenCallback:f=>({status:"fulfilled",value:f}),errorCallback:f=>({status:"rejected",reason:f})})}static allWithCallback(u,s){let f,g,w=new this((Z,V)=>{f=Z,g=V}),p=2,S=0;const D=[];for(let Z of u){B(Z)||(Z=this.resolve(Z));const V=S;try{Z.then(F=>{D[V]=s?s.thenCallback(F):F,p--,0===p&&f(D)},F=>{s?(D[V]=s.errorCallback(F),p--,0===p&&f(D)):g(F)})}catch(F){g(F)}p++,S++}return p-=2,0===p&&f(D),w}constructor(u){const s=this;if(!(s instanceof e))throw new Error("Must be an instanceof Promise.");s[q]=A,s[R]=[];try{const f=P();u&&u(f(I(s,E)),f(I(s,G)))}catch(f){z(s,!1,f)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return e}then(u,s){let f=this.constructor?.[Symbol.species];(!f||"function"!=typeof f)&&(f=this.constructor||e);const g=new f(L),w=n.current;return this[q]==A?this[R].push(w,g,u,s):ee(this,w,g,u,s),g}catch(u){return this.then(null,u)}finally(u){let s=this.constructor?.[Symbol.species];(!s||"function"!=typeof s)&&(s=e);const f=new s(L);f[_]=_;const g=n.current;return this[q]==A?this[R].push(g,f,u,u):ee(this,g,f,u,u),f}}e.resolve=e.resolve,e.reject=e.reject,e.race=e.race,e.all=e.all;const r=t[v]=t.Promise;t.Promise=e;const k=y("thenPatched");function C(l){const u=l.prototype,s=o(u,"then");if(s&&(!1===s.writable||!s.configurable))return;const f=u.then;u[m]=f,l.prototype.then=function(g,w){return new e((S,D)=>{f.call(this,S,D)}).then(g,w)},l[k]=!0}return i.patchThen=C,r&&(C(r),ae(t,"fetch",l=>function $(l){return function(u,s){let f=l.apply(u,s);if(f instanceof e)return f;let g=f.constructor;return g[k]||C(g),f}}(l))),Promise[n.__symbol__("uncaughtPromiseErrors")]=d,e}),Zone.__load_patch("toString",t=>{const n=Function.prototype.toString,i=j("OriginalDelegate"),o=j("Promise"),c=j("Error"),a=function(){if("function"==typeof this){const v=this[i];if(v)return"function"==typeof v?n.call(v):Object.prototype.toString.call(v);if(this===Promise){const m=t[o];if(m)return n.call(m)}if(this===Error){const m=t[c];if(m)return n.call(m)}}return n.call(this)};a[i]=n,Function.prototype.toString=a;const y=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":y.call(this)}});let Ee=!1;if(typeof window<"u")try{const t=Object.defineProperty({},"passive",{get:function(){Ee=!0}});window.addEventListener("test",t,t),window.removeEventListener("test",t,t)}catch{Ee=!1}const ht={useG:!0},te={},ze={},Ye=new RegExp("^"+pe+"(\\w+)(true|false)$"),$e=j("propagationStopped");function Je(t,n){const i=(n?n(t):t)+ce,o=(n?n(t):t)+ie,c=pe+i,a=pe+o;te[t]={},te[t][ce]=c,te[t][ie]=a}function dt(t,n,i,o){const c=o&&o.add||De,a=o&&o.rm||Ze,y=o&&o.listeners||"eventListeners",d=o&&o.rmAll||"removeAllListeners",b=j(c),v="."+c+":",m="prependListener",M="."+m+":",O=function(R,_,J){if(R.isRemoved)return;const x=R.callback;let X;"object"==typeof x&&x.handleEvent&&(R.callback=E=>x.handleEvent(E),R.originalDelegate=x);try{R.invoke(R,_,[J])}catch(E){X=E}const A=R.options;return A&&"object"==typeof A&&A.once&&_[a].call(_,J.type,R.originalDelegate?R.originalDelegate:R.callback,A),X};function N(R,_,J){if(!(_=_||t.event))return;const x=R||_.target||t,X=x[te[_.type][J?ie:ce]];if(X){const A=[];if(1===X.length){const E=O(X[0],x,_);E&&A.push(E)}else{const E=X.slice();for(let G=0;G{throw G})}}}const B=function(R){return N(this,R,!1)},H=function(R){return N(this,R,!0)};function K(R,_){if(!R)return!1;let J=!0;_&&void 0!==_.useG&&(J=_.useG);const x=_&&_.vh;let X=!0;_&&void 0!==_.chkDup&&(X=_.chkDup);let A=!1;_&&void 0!==_.rt&&(A=_.rt);let E=R;for(;E&&!E.hasOwnProperty(c);)E=ve(E);if(!E&&R[c]&&(E=R),!E||E[b])return!1;const G=_&&_.eventNameToString,h={},I=E[b]=E[c],P=E[j(a)]=E[a],Q=E[j(y)]=E[y],oe=E[j(d)]=E[d];let z;_&&_.prepend&&(z=E[j(_.prepend)]=E[_.prepend]);const e=J?function(s){if(!h.isExisting)return I.call(h.target,h.eventName,h.capture?H:B,h.options)}:function(s){return I.call(h.target,h.eventName,s.invoke,h.options)},r=J?function(s){if(!s.isRemoved){const f=te[s.eventName];let g;f&&(g=f[s.capture?ie:ce]);const w=g&&s.target[g];if(w)for(let p=0;pfunction(c,a){c[$e]=!0,o&&o.apply(c,a)})}function Et(t,n,i,o,c){const a=Zone.__symbol__(o);if(n[a])return;const y=n[a]=n[o];n[o]=function(d,b,v){return b&&b.prototype&&c.forEach(function(m){const M=`${i}.${o}::`+m,O=b.prototype;try{if(O.hasOwnProperty(m)){const N=t.ObjectGetOwnPropertyDescriptor(O,m);N&&N.value?(N.value=t.wrapWithCurrentZone(N.value,M),t._redefineProperty(b.prototype,m,N)):O[m]&&(O[m]=t.wrapWithCurrentZone(O[m],M))}else O[m]&&(O[m]=t.wrapWithCurrentZone(O[m],M))}catch{}}),y.call(n,d,b,v)},t.attachOriginToPatched(n[o],y)}function Qe(t,n,i){if(!i||0===i.length)return n;const o=i.filter(a=>a.target===t);if(!o||0===o.length)return n;const c=o[0].ignoreProperties;return n.filter(a=>-1===c.indexOf(a))}function et(t,n,i,o){t&&qe(t,Qe(t,n,i),o)}function He(t){return Object.getOwnPropertyNames(t).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}Zone.__load_patch("util",(t,n,i)=>{const o=He(t);i.patchOnProperties=qe,i.patchMethod=ae,i.bindArguments=Me,i.patchMacroTask=lt;const c=n.__symbol__("BLACK_LISTED_EVENTS"),a=n.__symbol__("UNPATCHED_EVENTS");t[a]&&(t[c]=t[a]),t[c]&&(n[c]=n[a]=t[c]),i.patchEventPrototype=_t,i.patchEventTarget=dt,i.isIEOrEdge=ft,i.ObjectDefineProperty=me,i.ObjectGetOwnPropertyDescriptor=ue,i.ObjectCreate=Se,i.ArraySlice=it,i.patchClass=ge,i.wrapWithCurrentZone=Ie,i.filterProperties=Qe,i.attachOriginToPatched=le,i._redefineProperty=Object.defineProperty,i.patchCallbacks=Et,i.getGlobalObjects=()=>({globalSources:ze,zoneSymbolEventNames:te,eventNames:o,isBrowser:Ae,isMix:Be,isNode:Pe,TRUE_STR:ie,FALSE_STR:ce,ZONE_SYMBOL_PREFIX:pe,ADD_EVENT_LISTENER_STR:De,REMOVE_EVENT_LISTENER_STR:Ze})});const Re=j("zoneTask");function Te(t,n,i,o){let c=null,a=null;i+=o;const y={};function d(v){const m=v.data;return m.args[0]=function(){return v.invoke.apply(this,arguments)},m.handleId=c.apply(t,m.args),v}function b(v){return a.call(t,v.data.handleId)}c=ae(t,n+=o,v=>function(m,M){if("function"==typeof M[0]){const O={isPeriodic:"Interval"===o,delay:"Timeout"===o||"Interval"===o?M[1]||0:void 0,args:M},N=M[0];M[0]=function(){try{return N.apply(this,arguments)}finally{O.isPeriodic||("number"==typeof O.handleId?delete y[O.handleId]:O.handleId&&(O.handleId[Re]=null))}};const B=Le(n,M[0],O,d,b);if(!B)return B;const H=B.data.handleId;return"number"==typeof H?y[H]=B:H&&(H[Re]=B),H&&H.ref&&H.unref&&"function"==typeof H.ref&&"function"==typeof H.unref&&(B.ref=H.ref.bind(H),B.unref=H.unref.bind(H)),"number"==typeof H||H?H:B}return v.apply(t,M)}),a=ae(t,i,v=>function(m,M){const O=M[0];let N;"number"==typeof O?N=y[O]:(N=O&&O[Re],N||(N=O)),N&&"string"==typeof N.type?"notScheduled"!==N.state&&(N.cancelFn&&N.data.isPeriodic||0===N.runCount)&&("number"==typeof O?delete y[O]:O&&(O[Re]=null),N.zone.cancelTask(N)):v.apply(t,M)})}Zone.__load_patch("legacy",t=>{const n=t[Zone.__symbol__("legacyPatch")];n&&n()}),Zone.__load_patch("queueMicrotask",(t,n,i)=>{i.patchMethod(t,"queueMicrotask",o=>function(c,a){n.current.scheduleMicroTask("queueMicrotask",a[0])})}),Zone.__load_patch("timers",t=>{const n="set",i="clear";Te(t,n,i,"Timeout"),Te(t,n,i,"Interval"),Te(t,n,i,"Immediate")}),Zone.__load_patch("requestAnimationFrame",t=>{Te(t,"request","cancel","AnimationFrame"),Te(t,"mozRequest","mozCancel","AnimationFrame"),Te(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",(t,n)=>{const i=["alert","prompt","confirm"];for(let o=0;ofunction(b,v){return n.current.run(a,t,v,d)})}),Zone.__load_patch("EventTarget",(t,n,i)=>{(function pt(t,n){n.patchEventPrototype(t,n)})(t,i),function mt(t,n){if(Zone[n.symbol("patchEventTarget")])return;const{eventNames:i,zoneSymbolEventNames:o,TRUE_STR:c,FALSE_STR:a,ZONE_SYMBOL_PREFIX:y}=n.getGlobalObjects();for(let b=0;b{ge("MutationObserver"),ge("WebKitMutationObserver")}),Zone.__load_patch("IntersectionObserver",(t,n,i)=>{ge("IntersectionObserver")}),Zone.__load_patch("FileReader",(t,n,i)=>{ge("FileReader")}),Zone.__load_patch("on_property",(t,n,i)=>{!function Tt(t,n){if(Pe&&!Be||Zone[t.symbol("patchEvents")])return;const i=n.__Zone_ignore_on_properties;let o=[];if(Ae){const c=window;o=o.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const a=function ut(){try{const t=_e.navigator.userAgent;if(-1!==t.indexOf("MSIE ")||-1!==t.indexOf("Trident/"))return!0}catch{}return!1}()?[{target:c,ignoreProperties:["error"]}]:[];et(c,He(c),i&&i.concat(a),ve(c))}o=o.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{!function yt(t,n){const{isBrowser:i,isMix:o}=n.getGlobalObjects();(i||o)&&t.customElements&&"customElements"in t&&n.patchCallbacks(n,t.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback"])}(t,i)}),Zone.__load_patch("XHR",(t,n)=>{!function b(v){const m=v.XMLHttpRequest;if(!m)return;const M=m.prototype;let N=M[Oe],B=M[Ne];if(!N){const h=v.XMLHttpRequestEventTarget;if(h){const I=h.prototype;N=I[Oe],B=I[Ne]}}const H="readystatechange",K="scheduled";function q(h){const I=h.data,P=I.target;P[a]=!1,P[d]=!1;const Q=P[c];N||(N=P[Oe],B=P[Ne]),Q&&B.call(P,H,Q);const oe=P[c]=()=>{if(P.readyState===P.DONE)if(!I.aborted&&P[a]&&h.state===K){const U=P[n.__symbol__("loadfalse")];if(0!==P.status&&U&&U.length>0){const re=h.invoke;h.invoke=function(){const ee=P[n.__symbol__("loadfalse")];for(let W=0;Wfunction(h,I){return h[o]=0==I[2],h[y]=I[1],J.apply(h,I)}),X=j("fetchTaskAborting"),A=j("fetchTaskScheduling"),E=ae(M,"send",()=>function(h,I){if(!0===n.current[A]||h[o])return E.apply(h,I);{const P={target:h,url:h[y],isPeriodic:!1,args:I,aborted:!1},Q=Le("XMLHttpRequest.send",R,P,q,_);h&&!0===h[d]&&!P.aborted&&Q.state===K&&Q.invoke()}}),G=ae(M,"abort",()=>function(h,I){const P=function O(h){return h[i]}(h);if(P&&"string"==typeof P.type){if(null==P.cancelFn||P.data&&P.data.aborted)return;P.zone.cancelTask(P)}else if(!0===n.current[X])return G.apply(h,I)})}(t);const i=j("xhrTask"),o=j("xhrSync"),c=j("xhrListener"),a=j("xhrScheduled"),y=j("xhrURL"),d=j("xhrErrorBeforeScheduled")}),Zone.__load_patch("geolocation",t=>{t.navigator&&t.navigator.geolocation&&function at(t,n){const i=t.constructor.name;for(let o=0;o{const b=function(){return d.apply(this,Me(arguments,i+"."+c))};return le(b,d),b})(a)}}}(t.navigator.geolocation,["getCurrentPosition","watchPosition"])}),Zone.__load_patch("PromiseRejectionEvent",(t,n)=>{function i(o){return function(c){Ke(t,o).forEach(y=>{const d=t.PromiseRejectionEvent;if(d){const b=new d(o,{promise:c.promise,reason:c.rejection});y.invoke(b)}})}}t.PromiseRejectionEvent&&(n[j("unhandledPromiseRejectionHandler")]=i("unhandledrejection"),n[j("rejectionHandledHandler")]=i("rejectionhandled"))})}},ue=>{ue(ue.s=583)}]); \ No newline at end of file diff --git a/tds-front/dist/familySite1/runtime.ed14f20cc9779f09.js b/tds-front/dist/familySite1/runtime.ed14f20cc9779f09.js new file mode 100644 index 0000000..e22fde7 --- /dev/null +++ b/tds-front/dist/familySite1/runtime.ed14f20cc9779f09.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,v={},_={};function n(e){var l=_[e];if(void 0!==l)return l.exports;var r=_[e]={exports:{}};return v[e](r,r.exports,n),r.exports}n.m=v,e=[],n.O=(l,r,u,f)=>{if(!r){var s=1/0;for(a=0;a=f)&&Object.keys(n.O).every(p=>n.O[p](r[o]))?r.splice(o--,1):(t=!1,f0&&e[a-1][2]>f;a--)e[a]=e[a-1];e[a]=[r,u,f]},n.o=(e,l)=>Object.prototype.hasOwnProperty.call(e,l),(()=>{var e={666:0};n.O.j=u=>0===e[u];var l=(u,f)=>{var o,i,[a,s,t]=f,c=0;if(a.some(h=>0!==e[h])){for(o in s)n.o(s,o)&&(n.m[o]=s[o]);if(t)var d=t(n)}for(u&&u(f);c