"use strict";(self.webpackChunkfamilySite1=self.webpackChunkfamilySite1||[]).push([[792],{270:()=>{function Hi(e,n,t,r,o,i,s){try{var a=e[i](s),c=a.value}catch(l){return void t(l)}a.done?n(c):Promise.resolve(c).then(r,o)}function Co(e){return function(){var n=this,t=arguments;return new Promise(function(r,o){var i=e.apply(n,t);function s(c){Hi(i,r,o,s,a,"next",c)}function a(c){Hi(i,r,o,s,a,"throw",c)}s(void 0)})}}let Pe=null,La=1;const zr=Symbol("SIGNAL");function Q(e){const n=Pe;return Pe=e,n}function Zg(e){if((!Gi(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==La)){if(!e.producerMustRecompute(e)&&!ku(e))return e.dirty=!1,void(e.lastCleanEpoch=La);e.producerRecomputeValue(e),e.dirty=!1,e.lastCleanEpoch=La}}function ku(e){_o(e);for(let n=0;n0}function _o(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}let rm=null;function be(e){return"function"==typeof e}function Pu(e){const t=e(r=>{Error.call(r),r.stack=(new Error).stack});return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}const xu=Pu(e=>function(t){e(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t});function Fu(e,n){if(e){const t=e.indexOf(n);0<=t&&e.splice(t,1)}}class It{constructor(n){this.initialTeardown=n,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let n;if(!this.closed){this.closed=!0;const{_parentage:t}=this;if(t)if(this._parentage=null,Array.isArray(t))for(const i of t)i.remove(this);else t.remove(this);const{initialTeardown:r}=this;if(be(r))try{r()}catch(i){n=i instanceof xu?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{cm(i)}catch(s){n=n??[],s instanceof xu?n=[...n,...s.errors]:n.push(s)}}if(n)throw new xu(n)}}add(n){var t;if(n&&n!==this)if(this.closed)cm(n);else{if(n instanceof It){if(n.closed||n._hasParent(this))return;n._addParent(this)}(this._finalizers=null!==(t=this._finalizers)&&void 0!==t?t:[]).push(n)}}_hasParent(n){const{_parentage:t}=this;return t===n||Array.isArray(t)&&t.includes(n)}_addParent(n){const{_parentage:t}=this;this._parentage=Array.isArray(t)?(t.push(n),t):t?[t,n]:n}_removeParent(n){const{_parentage:t}=this;t===n?this._parentage=null:Array.isArray(t)&&Fu(t,n)}remove(n){const{_finalizers:t}=this;t&&Fu(t,n),n instanceof It&&n._removeParent(this)}}It.EMPTY=(()=>{const e=new It;return e.closed=!0,e})();const sm=It.EMPTY;function am(e){return e instanceof It||e&&"closed"in e&&be(e.remove)&&be(e.add)&&be(e.unsubscribe)}function cm(e){be(e)?e():e.unsubscribe()}const Gr={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ja={setTimeout(e,n,...t){const{delegate:r}=ja;return r?.setTimeout?r.setTimeout(e,n,...t):setTimeout(e,n,...t)},clearTimeout(e){const{delegate:n}=ja;return(n?.clearTimeout||clearTimeout)(e)},delegate:void 0};function lm(e){ja.setTimeout(()=>{const{onUnhandledError:n}=Gr;if(!n)throw e;n(e)})}function Lu(){}const nI=Vu("C",void 0,void 0);function Vu(e,n,t){return{kind:e,value:n,error:t}}let qr=null;function Ua(e){if(Gr.useDeprecatedSynchronousErrorHandling){const n=!qr;if(n&&(qr={errorThrown:!1,error:null}),e(),n){const{errorThrown:t,error:r}=qr;if(qr=null,t)throw r}}else e()}class ju extends It{constructor(n){super(),this.isStopped=!1,n?(this.destination=n,am(n)&&n.add(this)):this.destination=lI}static create(n,t,r){return new $u(n,t,r)}next(n){this.isStopped?Bu(function oI(e){return Vu("N",e,void 0)}(n),this):this._next(n)}error(n){this.isStopped?Bu(function rI(e){return Vu("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))}complete(){this.isStopped?Bu(nI,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(n){this.destination.next(n)}_error(n){try{this.destination.error(n)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const sI=Function.prototype.bind;function Uu(e,n){return sI.call(e,n)}class aI{constructor(n){this.partialObserver=n}next(n){const{partialObserver:t}=this;if(t.next)try{t.next(n)}catch(r){$a(r)}}error(n){const{partialObserver:t}=this;if(t.error)try{t.error(n)}catch(r){$a(r)}else $a(n)}complete(){const{partialObserver:n}=this;if(n.complete)try{n.complete()}catch(t){$a(t)}}}class $u extends ju{constructor(n,t,r){let o;if(super(),be(n)||!n)o={next:n??void 0,error:t??void 0,complete:r??void 0};else{let i;this&&Gr.useDeprecatedNextContext?(i=Object.create(n),i.unsubscribe=()=>this.unsubscribe(),o={next:n.next&&Uu(n.next,i),error:n.error&&Uu(n.error,i),complete:n.complete&&Uu(n.complete,i)}):o=n}this.destination=new aI(o)}}function $a(e){Gr.useDeprecatedSynchronousErrorHandling?function iI(e){Gr.useDeprecatedSynchronousErrorHandling&&qr&&(qr.errorThrown=!0,qr.error=e)}(e):lm(e)}function Bu(e,n){const{onStoppedNotification:t}=Gr;t&&ja.setTimeout(()=>t(e,n))}const lI={closed:!0,next:Lu,error:function cI(e){throw e},complete:Lu},Hu="function"==typeof Symbol&&Symbol.observable||"@@observable";function Wr(e){return e}function um(e){return 0===e.length?Wr:1===e.length?e[0]:function(t){return e.reduce((r,o)=>o(r),t)}}let He=(()=>{class e{constructor(t){t&&(this._subscribe=t)}lift(t){const r=new e;return r.source=this,r.operator=t,r}subscribe(t,r,o){const i=function fI(e){return e&&e instanceof ju||function dI(e){return e&&be(e.next)&&be(e.error)&&be(e.complete)}(e)&&am(e)}(t)?t:new $u(t,r,o);return Ua(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(t){try{return this._subscribe(t)}catch(r){t.error(r)}}forEach(t,r){return new(r=dm(r))((o,i)=>{const s=new $u({next:a=>{try{t(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(t){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(t)}[Hu](){return this}pipe(...t){return um(t)(this)}toPromise(t){return new(t=dm(t))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=n=>new e(n),e})();function dm(e){var n;return null!==(n=e??Gr.Promise)&&void 0!==n?n:Promise}const hI=Pu(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let qt=(()=>{class e extends He{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){const r=new fm(this,this);return r.operator=t,r}_throwIfClosed(){if(this.closed)throw new hI}next(t){Ua(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(t)}})}error(t){Ua(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;const{observers:r}=this;for(;r.length;)r.shift().error(t)}})}complete(){Ua(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return(null===(t=this.observers)||void 0===t?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){const{hasError:r,isStopped:o,observers:i}=this;return r||o?sm:(this.currentObservers=null,i.push(t),new It(()=>{this.currentObservers=null,Fu(i,t)}))}_checkFinalizedStatuses(t){const{hasError:r,thrownError:o,isStopped:i}=this;r?t.error(o):i&&t.complete()}asObservable(){const t=new He;return t.source=this,t}}return e.create=(n,t)=>new fm(n,t),e})();class fm extends qt{constructor(n,t){super(),this.destination=n,this.source=t}next(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.next)||void 0===r||r.call(t,n)}error(n){var t,r;null===(r=null===(t=this.destination)||void 0===t?void 0:t.error)||void 0===r||r.call(t,n)}complete(){var n,t;null===(t=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===t||t.call(n)}_subscribe(n){var t,r;return null!==(r=null===(t=this.source)||void 0===t?void 0:t.subscribe(n))&&void 0!==r?r:sm}}class Wt extends qt{constructor(n){super(),this._value=n}get value(){return this.getValue()}_subscribe(n){const t=super._subscribe(n);return!t.closed&&n.next(this._value),t}getValue(){const{hasError:n,thrownError:t,_value:r}=this;if(n)throw t;return this._throwIfClosed(),r}next(n){super.next(this._value=n)}}function hm(e){return be(e?.lift)}function ot(e){return n=>{if(hm(n))return n.lift(function(t){try{return e(t,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function We(e,n,t,r,o){return new pI(e,n,t,r,o)}class pI extends ju{constructor(n,t,r,o,i,s){super(n),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=t?function(a){try{t(a)}catch(c){n.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){n.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){n.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:t}=this;super.unsubscribe(),!t&&(null===(n=this.onFinalize)||void 0===n||n.call(this))}}}function ie(e,n){return ot((t,r)=>{let o=0;t.subscribe(We(r,i=>{r.next(e.call(n,i,o++))}))})}const pm="https://g.co/ng/security#xss";class I extends Error{constructor(n,t){super(function Do(e,n){return`NG0${Math.abs(e)}${n?": "+n:""}`}(n,t)),this.code=n}}function Zn(e){return{toString:e}.toString()}const Mo="__parameters__";function bo(e,n,t){return Zn(()=>{const r=function zu(e){return function(...t){if(e){const r=e(...t);for(const o in r)this[o]=r[o]}}}(n);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(c,l,u){const d=c.hasOwnProperty(Mo)?c[Mo]:Object.defineProperty(c,Mo,{value:[]})[Mo];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(s),c}}return t&&(o.prototype=Object.create(t.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}const de=globalThis;function he(e){for(let n in e)if(e[n]===he)return n;throw Error("Could not find renamed property on target object.")}function gI(e,n){for(const t in n)n.hasOwnProperty(t)&&!e.hasOwnProperty(t)&&(e[t]=n[t])}function Ze(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(Ze).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const n=e.toString();if(null==n)return""+n;const t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function Gu(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}const mI=he({__forward_ref__:he});function Ce(e){return e.__forward_ref__=Ce,e.toString=function(){return Ze(this())},e}function L(e){return Ha(e)?e():e}function Ha(e){return"function"==typeof e&&e.hasOwnProperty(mI)&&e.__forward_ref__===Ce}function R(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function Jt(e){return{providers:e.providers||[],imports:e.imports||[]}}function za(e){return ym(e,qa)||ym(e,Cm)}function ym(e,n){return e.hasOwnProperty(n)?e[n]:null}function Ga(e){return e&&(e.hasOwnProperty(qu)||e.hasOwnProperty(wI))?e[qu]:null}const qa=he({\u0275prov:he}),qu=he({\u0275inj:he}),Cm=he({ngInjectableDef:he}),wI=he({ngInjectorDef:he});class N{constructor(n,t){this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=R({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Xu(e){return e&&!!e.\u0275providers}const qi=he({\u0275cmp:he}),Ku=he({\u0275dir:he}),Ju=he({\u0275pipe:he}),Dm=he({\u0275mod:he}),Qn=he({\u0275fac:he}),Wi=he({__NG_ELEMENT_ID__:he}),wm=he({__NG_ENV_ID__:he});function H(e){return"string"==typeof e?e:null==e?"":String(e)}function ed(e,n){throw new I(-201,!1)}var K=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(K||{});let td;function Mm(){return td}function St(e){const n=td;return td=e,n}function Em(e,n,t){const r=za(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:t&K.Optional?null:void 0!==n?n:void ed()}const Zi={},nd="__NG_DI_FLAG__",Wa="ngTempTokenPath",TI=/\n/gm,bm="__source";let Io;function pr(e){const n=Io;return Io=e,n}function RI(e,n=K.Default){if(void 0===Io)throw new I(-203,!1);return null===Io?Em(e,void 0,n):Io.get(e,n&K.Optional?null:void 0,n)}function k(e,n=K.Default){return(Mm()||RI)(L(e),n)}function b(e,n=K.Default){return k(e,Za(n))}function Za(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function rd(e){const n=[];for(let t=0;tArray.isArray(t)?So(t,n):n(t))}function Sm(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function Xa(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}function xt(e,n,t){let r=To(e,n);return r>=0?e[1|r]=t:(r=~r,function Tm(e,n,t,r){let o=e.length;if(o==n)e.push(t,r);else if(1===o)e.push(r,e[0]),e[0]=t;else{for(o--,e.push(e[o-1],e[o]);o>n;)e[o]=e[o-2],o--;e[n]=t,e[n+1]=r}}(e,r,n,t)),r}function id(e,n){const t=To(e,n);if(t>=0)return e[1|t]}function To(e,n){return function Am(e,n,t){let r=0,o=e.length>>t;for(;o!==r;){const i=r+(o-r>>1),s=e[i<n?o=i:r=i+1}return~(o<n){s=i-1;break}}}for(;i-1){let i;for(;++oi?"":o[u+1].toLowerCase(),2&r&&l!==d){if(tn(r))return!1;s=!0}}}}else{if(!s&&!tn(r)&&!tn(c))return!1;if(s&&tn(c))continue;s=!1,r=c|1&r}}return tn(r)||s}function tn(e){return!(1&e)}function HI(e,n,t,r){if(null===n)return-1;let o=0;if(r||!t){let i=!1;for(;o-1)for(t++;t0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!tn(s)&&(n+=Fm(i,o),o=""),r=s,i=i||!tn(r);t++}return""!==o&&(n+=Fm(i,o)),n}function at(e){return Zn(()=>{const n=Vm(e),t={...n,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===ec.OnPush,directiveDefs:null,pipeDefs:null,dependencies:n.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||en.Emulated,styles:e.styles||se,_:null,schemas:e.schemas||null,tView:null,id:""};jm(t);const r=e.dependencies;return t.directiveDefs=tc(r,!1),t.pipeDefs=tc(r,!0),t.id=function eS(e){let n=0;const t=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const o of t)n=Math.imul(31,n)+o.charCodeAt(0)|0;return n+=2147483648,"c"+n}(t),t})}function XI(e){return Y(e)||Qe(e)}function KI(e){return null!==e}function wn(e){return Zn(()=>({type:e.type,bootstrap:e.bootstrap||se,declarations:e.declarations||se,imports:e.imports||se,exports:e.exports||se,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Lm(e,n){if(null==e)return Dn;const t={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];let i,s,a=Ie.None;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i):(i=o,s=o),n?(t[i]=a!==Ie.None?[r,a]:r,n[i]=s):t[i]=r}return t}function B(e){return Zn(()=>{const n=Vm(e);return jm(n),n})}function ct(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 Y(e){return e[qi]||null}function Qe(e){return e[Ku]||null}function it(e){return e[Ju]||null}function lt(e,n){const t=e[Dm]||null;if(!t&&!0===n)throw new Error(`Type ${Ze(e)} does not have '\u0275mod' property.`);return t}function Vm(e){const n={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputTransforms:null,inputConfig:e.inputs||Dn,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||se,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Lm(e.inputs,n),outputs:Lm(e.outputs),debugInfo:null}}function jm(e){e.features?.forEach(n=>n(e))}function tc(e,n){if(!e)return null;const t=n?it:XI;return()=>("function"==typeof e?e():e).map(r=>t(r)).filter(KI)}function tS(...e){return{\u0275providers:ld(0,e),\u0275fromNgModule:!0}}function ld(e,...n){const t=[],r=new Set;let o;const i=s=>{t.push(s)};return So(n,s=>{const a=s;nc(a,i,[],r)&&(o||=[],o.push(a))}),void 0!==o&&Um(o,i),t}function Um(e,n){for(let t=0;t{n(i,r)})}}function nc(e,n,t,r){if(!(e=L(e)))return!1;let o=null,i=Ga(e);const s=!i&&Y(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const c=e.ngModule;if(i=Ga(c),!i)return!1;o=c}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const l of c)nc(l,n,t,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let l;r.add(o);try{So(i.imports,u=>{nc(u,n,t,r)&&(l||=[],l.push(u))})}finally{}void 0!==l&&Um(l,n)}if(!a){const l=Zr(o)||(()=>new o);n({provide:o,useFactory:l,deps:se},o),n({provide:sd,useValue:o,multi:!0},o),n({provide:Qr,useValue:()=>k(o),multi:!0},o)}const c=i.providers;if(null!=c&&!a){const l=e;ud(c,u=>{n(u,l)})}}}return o!==e&&void 0!==e.providers}function ud(e,n){for(let t of e)Xu(t)&&(t=t.\u0275providers),Array.isArray(t)?ud(t,n):n(t)}const nS=he({provide:String,useValue:he});function dd(e){return null!==e&&"object"==typeof e&&nS in e}function Yr(e){return"function"==typeof e}const fd=new N(""),rc={},oS={};let hd;function oc(){return void 0===hd&&(hd=new Ja),hd}class vt{}class Ao extends vt{get destroyed(){return this._destroyed}constructor(n,t,r,o){super(),this.parent=t,this.source=r,this.scopes=o,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,gd(n,s=>this.processProvider(s)),this.records.set(Nm,No(void 0,this)),o.has("environment")&&this.records.set(vt,No(void 0,this));const i=this.records.get(fd);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(sd,se,K.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const n=Q(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const t=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of t)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),Q(n)}}onDestroy(n){return this.assertNotDestroyed(),this._onDestroyHooks.push(n),()=>this.removeOnDestroy(n)}runInContext(n){this.assertNotDestroyed();const t=pr(this),r=St(void 0);try{return n()}finally{pr(t),St(r)}}get(n,t=Zi,r=K.Default){if(this.assertNotDestroyed(),n.hasOwnProperty(wm))return n[wm](this);r=Za(r);const i=pr(this),s=St(void 0);try{if(!(r&K.SkipSelf)){let c=this.records.get(n);if(void 0===c){const l=function lS(e){return"function"==typeof e||"object"==typeof e&&e instanceof N}(n)&&za(n);c=l&&this.injectableDefInScope(l)?No(pd(n),rc):null,this.records.set(n,c)}if(null!=c)return this.hydrate(n,c)}return(r&K.Self?oc():this.parent).get(n,t=r&K.Optional&&t===Zi?null:t)}catch(a){if("NullInjectorError"===a.name){if((a[Wa]=a[Wa]||[]).unshift(Ze(n)),i)throw a;return function OI(e,n,t,r){const o=e[Wa];throw n[bm]&&o.unshift(n[bm]),e.message=function PI(e,n,t,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let o=Ze(n);if(Array.isArray(n))o=n.map(Ze).join(" -> ");else if("object"==typeof n){let i=[];for(let s in n)if(n.hasOwnProperty(s)){let a=n[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Ze(a)))}o=`{${i.join(", ")}}`}return`${t}${r?"("+r+")":""}[${o}]: ${e.replace(TI,"\n ")}`}("\n"+e.message,o,t,r),e.ngTokenPath=o,e[Wa]=null,e}(a,n,"R3InjectorError",this.source)}throw a}finally{St(s),pr(i)}}resolveInjectorInitializers(){const n=Q(null),t=pr(this),r=St(void 0);try{const i=this.get(Qr,se,K.Self);for(const s of i)s()}finally{pr(t),St(r),Q(n)}}toString(){const n=[],t=this.records;for(const r of t.keys())n.push(Ze(r));return`R3Injector[${n.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new I(205,!1)}processProvider(n){let t=Yr(n=L(n))?n:L(n&&n.provide);const r=function sS(e){return dd(e)?No(void 0,e.useValue):No(Hm(e),rc)}(n);if(!Yr(n)&&!0===n.multi){let o=this.records.get(t);o||(o=No(void 0,rc,!0),o.factory=()=>rd(o.multi),this.records.set(t,o)),t=n,o.multi.push(n)}this.records.set(t,r)}hydrate(n,t){const r=Q(null);try{return t.value===rc&&(t.value=oS,t.value=t.factory()),"object"==typeof t.value&&t.value&&function cS(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(t.value)&&this._ngOnDestroyHooks.add(t.value),t.value}finally{Q(r)}}injectableDefInScope(n){if(!n.providedIn)return!1;const t=L(n.providedIn);return"string"==typeof t?"any"===t||this.scopes.has(t):this.injectorDefTypes.has(t)}removeOnDestroy(n){const t=this._onDestroyHooks.indexOf(n);-1!==t&&this._onDestroyHooks.splice(t,1)}}function pd(e){const n=za(e),t=null!==n?n.factory:Zr(e);if(null!==t)return t;if(e instanceof N)throw new I(204,!1);if(e instanceof Function)return function iS(e){if(e.length>0)throw new I(204,!1);const t=function DI(e){return e&&(e[qa]||e[Cm])||null}(e);return null!==t?()=>t.factory(e):()=>new e}(e);throw new I(204,!1)}function Hm(e,n,t){let r;if(Yr(e)){const o=L(e);return Zr(o)||pd(o)}if(dd(e))r=()=>L(e.useValue);else if(function Bm(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...rd(e.deps||[]));else if(function $m(e){return!(!e||!e.useExisting)}(e))r=()=>k(L(e.useExisting));else{const o=L(e&&(e.useClass||e.provide));if(!function aS(e){return!!e.deps}(e))return Zr(o)||pd(o);r=()=>new o(...rd(e.deps))}return r}function No(e,n,t=!1){return{factory:e,value:n,multi:t?[]:void 0}}function gd(e,n){for(const t of e)Array.isArray(t)?gd(t,n):t&&Xu(t)?gd(t.\u0275providers,n):n(t)}function Mn(e,n){e instanceof Ao&&e.assertNotDestroyed();const r=pr(e),o=St(void 0);try{return n()}finally{pr(r),St(o)}}function zm(){return void 0!==Mm()||null!=function NI(){return Io}()}const Se=0,S=1,P=2,xe=3,nn=4,ut=5,Ft=6,ko=7,_e=8,ze=9,rn=10,j=11,Ji=12,qm=13,Oo=14,Ae=15,es=16,Po=17,Yn=18,ts=19,Wm=20,mr=21,ac=22,Xr=23,z=25,vd=1,En=7,xo=9,Fe=10;var yd=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(yd||{});function dt(e){return Array.isArray(e)&&"object"==typeof e[vd]}function ft(e){return Array.isArray(e)&&!0===e[vd]}function Cd(e){return!!(4&e.flags)}function Kr(e){return e.componentOffset>-1}function lc(e){return!(1&~e.flags)}function on(e){return!!e.template}function _d(e){return!!(512&e[P])}class wS{constructor(n,t,r){this.previousValue=n,this.currentValue=t,this.firstChange=r}isFirstChange(){return this.firstChange}}function Xm(e,n,t,r){null!==n?n.applyValueToInputSignal(n,r):e[t]=r}function Zt(){return Km}function Km(e){return e.type.prototype.ngOnChanges&&(e.setInput=ES),MS}function MS(){const e=ev(this),n=e?.current;if(n){const t=e.previous;if(t===Dn)e.previous=n;else for(let r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function ES(e,n,t,r,o){const i=this.declaredInputs[r],s=ev(e)||function bS(e,n){return e[Jm]=n}(e,{previous:Dn,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new wS(l&&l.currentValue,t,c===Dn),Xm(e,n,o,t)}Zt.ngInherit=!0;const Jm="__ngSimpleChanges__";function ev(e){return e[Jm]||null}const bn=function(e,n,t){};let rv=!1;function me(e){for(;Array.isArray(e);)e=e[Se];return e}function rs(e,n){return me(n[e])}function yt(e,n){return me(n[e.index])}function os(e,n){return e.data[n]}function Fo(e,n){return e[n]}function Lt(e,n){const t=n[e];return dt(t)?t:t[Se]}function bd(e){return!(128&~e[P])}function In(e,n){return null==n?null:e[n]}function ov(e){e[Po]=0}function RS(e){1024&e[P]||(e[P]|=1024,bd(e)&&is(e))}function Id(e){return!!(9216&e[P]||e[Xr]?.dirty)}function Sd(e){e[rn].changeDetectionScheduler?.notify(1),Id(e)?is(e):64&e[P]&&(function SS(){return rv}()?(e[P]|=1024,is(e)):e[rn].changeDetectionScheduler?.notify())}function is(e){e[rn].changeDetectionScheduler?.notify();let n=Jr(e);for(;null!==n&&!(8192&n[P])&&(n[P]|=8192,bd(n));)n=Jr(n)}function uc(e,n){if(!(256&~e[P]))throw new I(911,!1);null===e[mr]&&(e[mr]=[]),e[mr].push(n)}function Jr(e){const n=e[xe];return ft(n)?n[xe]:n}const U={lFrame:pv(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function av(){return U.bindingsEnabled}function M(){return U.lFrame.lView}function J(){return U.lFrame.tView}function Ne(e){return U.lFrame.contextLView=e,e[_e]}function Re(e){return U.lFrame.contextLView=null,e}function pe(){let e=cv();for(;null!==e&&64===e.type;)e=e.parent;return e}function cv(){return U.lFrame.currentTNode}function Sn(e,n){const t=U.lFrame;t.currentTNode=e,t.isParent=n}function Ad(){return U.lFrame.isParent}function Ct(){const e=U.lFrame;let n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}function sn(){return U.lFrame.bindingIndex++}function Kn(e){const n=U.lFrame,t=n.bindingIndex;return n.bindingIndex=n.bindingIndex+e,t}function BS(e,n){const t=U.lFrame;t.bindingIndex=t.bindingRootIndex=e,Rd(n)}function Rd(e){U.lFrame.currentDirectiveIndex=e}function Od(){return U.lFrame.currentQueryIndex}function dc(e){U.lFrame.currentQueryIndex=e}function zS(e){const n=e[S];return 2===n.type?n.declTNode:1===n.type?e[ut]:null}function fv(e,n,t){if(t&K.SkipSelf){let o=n,i=e;for(;!(o=o.parent,null!==o||t&K.Host||(o=zS(i),null===o||(i=i[Oo],10&o.type))););if(null===o)return!1;n=o,e=i}const r=U.lFrame=hv();return r.currentTNode=n,r.lView=e,!0}function Pd(e){const n=hv(),t=e[S];U.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex,n.inI18n=!1}function hv(){const e=U.lFrame,n=null===e?null:e.child;return null===n?pv(e):n}function pv(e){const n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=n),n}function gv(){const e=U.lFrame;return U.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const mv=gv;function xd(){const e=gv();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 ht(){return U.lFrame.selectedIndex}function eo(e){U.lFrame.selectedIndex=e}function De(){const e=U.lFrame;return os(e.tView,e.selectedIndex)}let yv=!0;function as(){return yv}function Tn(e){yv=e}function fc(e,n){for(let t=n.directiveStart,r=n.directiveEnd;t=r)break}else n[c]<0&&(e[Po]+=65536),(a>14>16&&(3&e[P])===n&&(e[P]+=16384,_v(a,i)):_v(a,i)}const Vo=-1;class cs{constructor(n,t,r){this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r}}function Vd(e){return e!==Vo}function ls(e){return 32767&e}function us(e,n){let t=function nT(e){return e>>16}(e),r=n;for(;t>0;)r=r[Oo],t--;return r}let jd=!0;function gc(e){const n=jd;return jd=e,n}const Dv=255,wv=5;let rT=0;const An={};function mc(e,n){const t=Mv(e,n);if(-1!==t)return t;const r=n[S];r.firstCreatePass&&(e.injectorIndex=n.length,Ud(r.data,e),Ud(n,null),Ud(r.blueprint,null));const o=vc(e,n),i=e.injectorIndex;if(Vd(o)){const s=ls(o),a=us(o,n),c=a[S].data;for(let l=0;l<8;l++)n[i+l]=a[s+l]|c[s+l]}return n[i+8]=o,i}function Ud(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Mv(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function vc(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let t=0,r=null,o=n;for(;null!==o;){if(r=Nv(o),null===r)return Vo;if(t++,o=o[Oo],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return Vo}function $d(e,n,t){!function oT(e,n,t){let r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Wi)&&(r=t[Wi]),null==r&&(r=t[Wi]=rT++);const o=r&Dv;n.data[e+(o>>wv)]|=1<=0?n&Dv:cT:n}(t);if("function"==typeof i){if(!fv(n,e,r))return r&K.Host?Ev(o,0,r):bv(n,t,r,o);try{let s;if(s=i(r),null!=s||r&K.Optional)return s;ed()}finally{mv()}}else if("number"==typeof i){let s=null,a=Mv(e,n),c=Vo,l=r&K.Host?n[Ae][ut]:null;for((-1===a||r&K.SkipSelf)&&(c=-1===a?vc(e,n):n[a+8],c!==Vo&&Av(r,!1)?(s=n[S],a=ls(c),n=us(c,n)):a=-1);-1!==a;){const u=n[S];if(Tv(i,a,u.data)){const d=sT(a,n,t,s,r,l);if(d!==An)return d}c=n[a+8],c!==Vo&&Av(r,n[S].data[a+8]===l)&&Tv(i,a,n)?(s=u,a=ls(c),n=us(c,n)):a=-1}}return o}function sT(e,n,t,r,o,i){const s=n[S],a=s.data[e+8],u=yc(a,s,t,null==r?Kr(a)&&jd:r!=s&&!!(3&a.type),o&K.Host&&i===a);return null!==u?to(n,s,u,a):An}function yc(e,n,t,r,o){const i=e.providerIndexes,s=n.data,a=1048575&i,c=e.directiveStart,u=i>>20,f=o?a+u:e.directiveEnd;for(let h=r?a:a+u;h=c&&p.type===t)return h}if(o){const h=s[c];if(h&&on(h)&&h.type===t)return c}return null}function to(e,n,t,r){let o=e[t];const i=n.data;if(function KS(e){return e instanceof cs}(o)){const s=o;s.resolving&&function bI(e,n){throw n&&n.join(" > "),new I(-200,e)}(function ae(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():H(e)}(i[t]));const a=gc(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?St(s.injectImpl):null;fv(e,r,K.Default);try{o=e[t]=s.factory(void 0,i,e,r),n.firstCreatePass&&t>=r.directiveStart&&function YS(e,n,t){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=n.type.prototype;if(r){const s=Km(n);(t.preOrderHooks??=[]).push(e,s),(t.preOrderCheckHooks??=[]).push(e,s)}o&&(t.preOrderHooks??=[]).push(0-e,o),i&&((t.preOrderHooks??=[]).push(e,i),(t.preOrderCheckHooks??=[]).push(e,i))}(t,i[t],n)}finally{null!==l&&St(l),gc(a),s.resolving=!1,mv()}}return o}function Tv(e,n,t){return!!(t[n+(e>>wv)]&1<{const n=e.prototype.constructor,t=n[Qn]||Bd(n),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[Qn]||Bd(o);if(i&&i!==t)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Bd(e){return Ha(e)?()=>{const n=Bd(L(e));return n&&n()}:Zr(e)}function Nv(e){const n=e[S],t=n.type;return 2===t?n.declTNode:1===t?e[ut]:null}function xv(e,n=null,t=null,r){const o=Fv(e,n,t,r);return o.resolveInjectorInitializers(),o}function Fv(e,n=null,t=null,r,o=new Set){const i=[t||se,tS(e)];return r=r||("object"==typeof e?void 0:Ze(e)),new Ao(i,n||oc(),r||null,o)}let _t=(()=>{class e{static{this.THROW_IF_NOT_FOUND=Zi}static{this.NULL=new Ja}static create(t,r){if(Array.isArray(t))return xv({name:""},r,t,"");{const o=t.name??"";return xv({name:o},t.parent,t.providers,o)}}static{this.\u0275prov=R({token:e,providedIn:"any",factory:()=>k(Nm)})}static{this.__NG_ELEMENT_ID__=-1}}return e})();function zd(e){return e.ngOriginalError}class Nn{constructor(){this._console=console}handleError(n){const t=this._findOriginalError(n);this._console.error("ERROR",n),t&&this._console.error("ORIGINAL ERROR",t)}_findOriginalError(n){let t=n&&zd(n);for(;t&&zd(t);)t=zd(t);return t||null}}const Vv=new N("",{providedIn:"root",factory:()=>b(Nn).handleError.bind(void 0)});let $o=(()=>{class e{static{this.__NG_ELEMENT_ID__=yT}static{this.__NG_ENV_ID__=t=>t}}return e})();class vT extends $o{constructor(n){super(),this._lView=n}onDestroy(n){return uc(this._lView,n),()=>function Td(e,n){if(null===e[mr])return;const t=e[mr].indexOf(n);-1!==t&&e[mr].splice(t,1)}(this._lView,n)}}function yT(){return new vT(M())}function CT(){return Bo(pe(),M())}function Bo(e,n){return new Vt(yt(e,n))}let Vt=(()=>{class e{constructor(t){this.nativeElement=t}static{this.__NG_ELEMENT_ID__=CT}}return e})();function Uv(e){return e instanceof Vt?e.nativeElement:e}function Gd(e){return n=>{setTimeout(e,void 0,n)}}const ke=class _T extends qt{constructor(n=!1){super(),this.destroyRef=void 0,this.__isAsync=n,zm()&&(this.destroyRef=b($o,{optional:!0})??void 0)}emit(n){const t=Q(null);try{super.next(n)}finally{Q(t)}}subscribe(n,t,r){let o=n,i=t||(()=>null),s=r;if(n&&"object"==typeof n){const c=n;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=Gd(i),o&&(o=Gd(o)),s&&(s=Gd(s)));const a=super.subscribe({next:o,error:i,complete:s});return n instanceof It&&n.add(a),a}};function DT(){return this._results[Symbol.iterator]()}class qd{get changes(){return this._changes??=new ke}constructor(n=!1){this._emitDistinctChangesOnly=n,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const t=qd.prototype;t[Symbol.iterator]||(t[Symbol.iterator]=DT)}get(n){return this._results[n]}map(n){return this._results.map(n)}filter(n){return this._results.filter(n)}find(n){return this._results.find(n)}reduce(n,t){return this._results.reduce(n,t)}forEach(n){this._results.forEach(n)}some(n){return this._results.some(n)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(n,t){this.dirty=!1;const r=function Tt(e){return e.flat(Number.POSITIVE_INFINITY)}(n);(this._changesDetected=!function VI(e,n,t){if(e.length!==n.length)return!1;for(let r=0;rHT}),HT="ng",sy=new N(""),yr=new N("",{providedIn:"platform",factory:()=>"unknown"}),ay=new N("",{providedIn:"root",factory:()=>vr().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});let cy=()=>null;function sf(e,n,t=!1){return cy(e,n,t)}const hy=new N("",{providedIn:"root",factory:()=>!1});let Nc,Rc;function Go(e){return function uf(){if(void 0===Nc&&(Nc=null,de.trustedTypes))try{Nc=de.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Nc}()?.createHTML(e)||e}function df(){if(void 0===Rc&&(Rc=null,de.trustedTypes))try{Rc=de.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Rc}function gy(e){return df()?.createHTML(e)||e}function vy(e){return df()?.createScriptURL(e)||e}class yy{constructor(n){this.changingThisBreaksApplicationSecurity=n}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${pm})`}}function Cr(e){return e instanceof yy?e.changingThisBreaksApplicationSecurity:e}function ys(e,n){const t=function cA(e){return e instanceof yy&&e.getTypeName()||null}(e);if(null!=t&&t!==n){if("ResourceURL"===t&&"URL"===n)return!0;throw new Error(`Required a safe ${n}, got a ${t} (see ${pm})`)}return t===n}class lA{constructor(n){this.inertDocumentHelper=n}getInertBodyElement(n){n=""+n;try{const t=(new window.DOMParser).parseFromString(Go(n),"text/html").body;return null===t?this.inertDocumentHelper.getInertBodyElement(n):(t.removeChild(t.firstChild),t)}catch{return null}}}class uA{constructor(n){this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(n){const t=this.inertDocument.createElement("template");return t.innerHTML=Go(n),t}}const fA=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ff(e){return(e=String(e)).match(fA)?e:"unsafe:"+e}function Jn(e){const n={};for(const t of e.split(","))n[t]=!0;return n}function Cs(...e){const n={};for(const t of e)for(const r in t)t.hasOwnProperty(r)&&(n[r]=!0);return n}const _y=Jn("area,br,col,hr,img,wbr"),Dy=Jn("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),wy=Jn("rp,rt"),hf=Cs(_y,Cs(Dy,Jn("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Cs(wy,Jn("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Cs(wy,Dy)),pf=Jn("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),My=Cs(pf,Jn("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Jn("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),hA=Jn("script,style,template");class pA{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(n){let t=n.firstChild,r=!0,o=[];for(;t;)if(t.nodeType===Node.ELEMENT_NODE?r=this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,r&&t.firstChild)o.push(t),t=vA(t);else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);let i=mA(t);if(i){t=i;break}t=o.pop()}return this.buf.join("")}startElement(n){const t=Ey(n).toLowerCase();if(!hf.hasOwnProperty(t))return this.sanitizedSomething=!0,!hA.hasOwnProperty(t);this.buf.push("<"),this.buf.push(t);const r=n.attributes;for(let o=0;o"),!0}endElement(n){const t=Ey(n).toLowerCase();hf.hasOwnProperty(t)&&!_y.hasOwnProperty(t)&&(this.buf.push(""))}chars(n){this.buf.push(Iy(n))}}function mA(e){const n=e.nextSibling;if(n&&e!==n.previousSibling)throw by(n);return n}function vA(e){const n=e.firstChild;if(n&&function gA(e,n){return(e.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,n))throw by(n);return n}function Ey(e){const n=e.nodeName;return"string"==typeof n?n:"FORM"}function by(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const yA=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,CA=/([^\#-~ |!])/g;function Iy(e){return e.replace(/&/g,"&").replace(yA,function(n){return"&#"+(1024*(n.charCodeAt(0)-55296)+(n.charCodeAt(1)-56320)+65536)+";"}).replace(CA,function(n){return"&#"+n.charCodeAt(0)+";"}).replace(//g,">")}let kc;function gf(e){return"content"in e&&function DA(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var qo=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(qo||{});function mf(e){const n=_s();return n?gy(n.sanitize(qo.HTML,e)||""):ys(e,"HTML")?gy(Cr(e)):function _A(e,n){let t=null;try{kc=kc||function Cy(e){const n=new uA(e);return function dA(){try{return!!(new window.DOMParser).parseFromString(Go(""),"text/html")}catch{return!1}}()?new lA(n):n}(e);let r=n?String(n):"";t=kc.getInertBodyElement(r);let o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=t.innerHTML,t=kc.getInertBodyElement(r)}while(r!==i);return Go((new pA).sanitizeChildren(gf(t)||t))}finally{if(t){const r=gf(t)||t;for(;r.firstChild;)r.removeChild(r.firstChild)}}}(vr(),H(e))}function vf(e){const n=_s();return n?n.sanitize(qo.URL,e)||"":ys(e,"URL")?Cr(e):ff(H(e))}function Sy(e){const n=_s();if(n)return vy(n.sanitize(qo.RESOURCE_URL,e)||"");if(ys(e,"ResourceURL"))return vy(Cr(e));throw new I(904,!1)}function _s(){const e=M();return e&&e[rn].sanitizer}function jt(e){return e instanceof Function?e():e}var _r=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(_r||{});let Df;function wf(e,n){return Df(e,n)}function Zo(e,n,t,r,o){if(null!=r){let i,s=!1;ft(r)?i=r:dt(r)&&(s=!0,r=r[Se]);const a=me(r);0===e&&null!==t?null==o?Uy(n,t,a):no(n,t,a,o||null,!0):1===e&&null!==t?no(n,t,a,o||null,!0):2===e?function Ms(e,n,t){const r=Lc(e,n);r&&function ZA(e,n,t,r){e.removeChild(n,t,r)}(e,r,n,t)}(n,a,s):3===e&&n.destroyNode(a),null!=i&&function XA(e,n,t,r,o){const i=t[En];i!==me(t)&&Zo(n,e,r,i,o);for(let a=Fe;a0&&(e[t-1][nn]=r[nn]);const i=Xa(e,Fe+n);!function $A(e,n){Ly(e,n),n[Se]=null,n[ut]=null}(r[S],r);const s=i[Yn];null!==s&&s.detachView(i[S]),r[xe]=null,r[nn]=null,r[P]&=-129}return r}function Fc(e,n){if(!(256&n[P])){const t=n[j];t.destroyNode&&jc(e,n,t,3,null,null),function HA(e){let n=e[Ji];if(!n)return bf(e[S],e);for(;n;){let t=null;if(dt(n))t=n[Ji];else{const r=n[Fe];r&&(t=r)}if(!t){for(;n&&!n[nn]&&n!==e;)dt(n)&&bf(n[S],n),n=n[xe];null===n&&(n=e),dt(n)&&bf(n[S],n),t=n&&n[nn]}n=t}}(n)}}function bf(e,n){if(256&n[P])return;const t=Q(null);try{n[P]&=-129,n[P]|=256,n[Xr]&&function em(e){if(_o(e),Gi(e))for(let n=0;n=0?r[s]():r[-s].unsubscribe(),i+=2}else t[i].call(r[t[i+1]]);null!==r&&(n[ko]=null);const o=n[mr];if(null!==o){n[mr]=null;for(let i=0;i-1){const{encapsulation:i}=e.data[r.directiveStart+o];if(i===en.None||i===en.Emulated)return null}return yt(r,t)}}(e,n.parent,t)}function no(e,n,t,r,o){e.insertBefore(n,t,r,o)}function Uy(e,n,t){e.appendChild(n,t)}function $y(e,n,t,r,o){null!==r?no(e,n,t,r,o):Uy(e,n,t)}function Lc(e,n){return e.parentNode(n)}let Sf,zy=function Hy(e,n,t){return 40&e.type?yt(e,t):null};function Vc(e,n,t,r){const o=If(e,r,n),i=n[j],a=function By(e,n,t){return zy(e,n,t)}(r.parent||n[ut],r,n);if(null!=o)if(Array.isArray(t))for(let c=0;cz&&Xy(e,n,z,!1),bn(s?2:0,o),t(r,o)}finally{eo(i),bn(s?3:1,o)}}function Rf(e,n,t){if(Cd(n)){const r=Q(null);try{const i=n.directiveEnd;for(let s=n.directiveStart;snull;function rC(e,n,t,r,o){for(let i in n){if(!n.hasOwnProperty(i))continue;const s=n[i];if(void 0===s)continue;r??={};let a,c=Ie.None;Array.isArray(s)?(a=s[0],c=s[1]):a=s;let l=i;if(null!==o){if(!o.hasOwnProperty(i))continue;l=o[i]}0===e?oC(r,t,l,a,c):oC(r,t,l,a)}return r}function oC(e,n,t,r,o){let i;e.hasOwnProperty(t)?(i=e[t]).push(n,r):i=e[t]=[n,r],void 0!==o&&i.push(o)}function Nt(e,n,t,r,o,i,s,a){const c=yt(n,t);let u,l=n.inputs;!a&&null!=l&&(u=l[r])?(jf(e,t,u,r,o),Kr(n)&&function uN(e,n){const t=Lt(n,e);16&t[P]||(t[P]|=64)}(t,n.index)):3&n.type&&(r=function lN(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,n.value||"",r):o,i.setProperty(c,r,o))}function xf(e,n,t,r){if(av()){const o=null===r?null:{"":-1},i=function mN(e,n){const t=e.directiveRegistry;let r=null,o=null;if(t)for(let i=0;i0;){const t=e[--n];if("number"==typeof t&&t<0)return t}return 0})(s)!=a&&s.push(a),s.push(t,r,i)}}(e,n,r,Es(e,t,o.hostVars,G),o)}function Rn(e,n,t,r,o,i){const s=yt(e,n);!function Lf(e,n,t,r,o,i,s){if(null==i)e.removeAttribute(n,o,t);else{const a=null==s?H(i):s(i,r||"",o);e.setAttribute(n,o,a,t)}}(n[j],s,i,e.value,t,r,o)}function wN(e,n,t,r,o,i){const s=i[n];if(null!==s)for(let a=0;a0&&(t[o-1][nn]=n),r!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{},consumerIsAlwaysLive:!0,consumerMarkedDirty:e=>{is(e.lView)},consumerOnSignalRead(){this.lView[Xr]=this}},gC=100;function Hc(e,n=!0,t=0){const r=e[rn],o=r.rendererFactory;o.begin?.();try{!function RN(e,n){Bf(e,n);let t=0;for(;Id(e);){if(t===gC)throw new I(103,!1);t++,Bf(e,1)}}(e,t)}catch(s){throw n&&Bc(e,s),s}finally{o.end?.(),r.inlineEffectRunner?.flush()}}function kN(e,n,t,r){const o=n[P];if(!(256&~o))return;n[rn].inlineEffectRunner?.flush(),Pd(n);let s=null,a=null;(function ON(e){return 2!==e.type})(e)&&(a=function SN(e){return e[Xr]??function TN(e){const n=pC.pop()??Object.create(NN);return n.lView=e,n}(e)}(n),s=function Kg(e){return e&&(e.nextProducerIndex=0),Q(e)}(a));try{ov(n),function uv(e){return U.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==t&&eC(e,n,t,2,r);const c=!(3&~o);if(c){const d=e.preOrderCheckHooks;null!==d&&hc(n,d,null)}else{const d=e.preOrderHooks;null!==d&&pc(n,d,0,null),Fd(n,0)}if(function PN(e){for(let n=Yv(e);null!==n;n=Xv(n)){if(!(n[P]&yd.HasTransplantedViews))continue;const t=n[xo];for(let r=0;re.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}(a,s),function AN(e){e.lView[Xr]!==e&&(e.lView=null,pC.push(e))}(a)),xd()}}function mC(e,n){for(let t=Yv(e);null!==t;t=Xv(t))for(let r=Fe;r-1&&(Ds(n,r),Xa(t,r))}this._attachedToViewContainer=!1}Fc(this._lView[S],this._lView)}onDestroy(n){uc(this._lView,n)}markForCheck(){Ts(this._cdRefInjectingView||this._lView)}detach(){this._lView[P]&=-129}reattach(){Sd(this._lView),this._lView[P]|=128}detectChanges(){this._lView[P]|=1024,Hc(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new I(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Ly(this._lView[S],this._lView)}attachToAppRef(n){if(this._attachedToViewContainer)throw new I(902,!1);this._appRef=n,Sd(this._lView)}}let tr=(()=>{class e{static{this.__NG_ELEMENT_ID__=VN}}return e})();const FN=tr,LN=class extends FN{constructor(n,t,r){super(),this._declarationLView=n,this._declarationTContainer=t,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(n,t){return this.createEmbeddedViewImpl(n,t)}createEmbeddedViewImpl(n,t,r){const o=function bs(e,n,t,r){const o=Q(null);try{const i=n.tView,c=Uc(e,i,t,4096&e[P]?4096:16,null,n,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);c[es]=e[n.index];const u=e[Yn];return null!==u&&(c[Yn]=u.createEmbeddedView(i)),Uf(i,c,t),c}finally{Q(o)}}(this._declarationLView,this._declarationTContainer,n,{embeddedViewInjector:t,dehydratedView:r});return new As(o)}};function VN(){return zc(pe(),M())}function zc(e,n){return 4&e.type?new LN(n,e,Bo(e,n)):null}class Zf{}class c2{}class bC{}class u2{resolveComponentFactory(n){throw function l2(e){const n=Error(`No component factory found for ${Ze(e)}.`);return n.ngComponent=e,n}(n)}}let Qc=(()=>{class e{static{this.NULL=new u2}}return e})();class SC{}let nr=(()=>{class e{constructor(){this.destroyNode=null}static{this.__NG_ELEMENT_ID__=()=>function d2(){const e=M(),t=Lt(pe().index,e);return(dt(t)?t:e)[j]}()}}return e})(),f2=(()=>{class e{static{this.\u0275prov=R({token:e,providedIn:"root",factory:()=>null})}}return e})();const Qf={},TC=new Set;function kn(e){TC.has(e)||(TC.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}function AC(...e){}class fe{constructor({enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ke(!1),this.onMicrotaskEmpty=new ke(!1),this.onStable=new ke(!1),this.onError=new ke(!1),typeof Zone>"u")throw new I(908,!1);Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&t,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function h2(){const e="function"==typeof de.requestAnimationFrame;let n=de[e?"requestAnimationFrame":"setTimeout"],t=de[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&n&&t){const r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r);const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function m2(e){const n=()=>{!function g2(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(de,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Xf(e),e.isCheckStableRunning=!0,Yf(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Xf(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,r,o,i,s,a)=>{if(function v2(e){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0].data?.__ignore_ng_zone__}(a))return t.invokeTask(o,i,s,a);try{return NC(e),t.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&n(),RC(e)}},onInvoke:(t,r,o,i,s,a,c)=>{try{return NC(e),t.invoke(o,i,s,a,c)}finally{e.shouldCoalesceRunChangeDetection&&n(),RC(e)}},onHasTask:(t,r,o,i)=>{t.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Xf(e),Yf(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(t,r,o,i)=>(t.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!fe.isInAngularZone())throw new I(909,!1)}static assertNotInAngularZone(){if(fe.isInAngularZone())throw new I(909,!1)}run(n,t,r){return this._inner.run(n,t,r)}runTask(n,t,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,n,p2,AC,AC);try{return i.runTask(s,t,r)}finally{i.cancelTask(s)}}runGuarded(n,t,r){return this._inner.runGuarded(n,t,r)}runOutsideAngular(n){return this._outer.run(n)}}const p2={};function Yf(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 Xf(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function NC(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function RC(e){e._nesting--,Yf(e)}class kC{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ke,this.onMicrotaskEmpty=new ke,this.onStable=new ke,this.onError=new ke}run(n,t,r){return n.apply(t,r)}runGuarded(n,t,r){return n.apply(t,r)}runOutsideAngular(n){return n()}runTask(n,t,r,o){return n.apply(t,r)}}var ro=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(ro||{});const OC={destroy(){}};function Jf(e,n){!n&&function ic(e){if(!zm())throw new I(-203,!1)}();const t=n?.injector??b(_t);if(!function an(e){return"browser"===(e??b(_t)).get(yr)}(t))return OC;kn("NgAfterNextRender");const r=t.get(Ps),o=r.handler??=new xC,i=n?.phase??ro.MixedReadWrite,s=()=>{o.unregister(c),a()},a=t.get($o).onDestroy(s),c=Mn(t,()=>new PC(i,()=>{s(),e()}));return o.register(c),{destroy:s}}class PC{constructor(n,t){this.phase=n,this.callbackFn=t,this.zone=b(fe),this.errorHandler=b(Nn,{optional:!0}),b(Zf,{optional:!0})?.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(n){this.errorHandler?.handleError(n)}}}class xC{constructor(){this.executingCallbacks=!1,this.buckets={[ro.EarlyRead]:new Set,[ro.Write]:new Set,[ro.MixedReadWrite]:new Set,[ro.Read]:new Set},this.deferredCallbacks=new Set}register(n){(this.executingCallbacks?this.deferredCallbacks:this.buckets[n.phase]).add(n)}unregister(n){this.buckets[n.phase].delete(n),this.deferredCallbacks.delete(n)}execute(){this.executingCallbacks=!0;for(const n of Object.values(this.buckets))for(const t of n)t.invoke();this.executingCallbacks=!1;for(const n of this.deferredCallbacks)this.buckets[n.phase].add(n);this.deferredCallbacks.clear()}destroy(){for(const n of Object.values(this.buckets))n.clear();this.deferredCallbacks.clear()}}let Ps=(()=>{class e{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){this.executeInternalCallbacks(),this.handler?.execute()}executeInternalCallbacks(){const t=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const r of t)r()}ngOnDestroy(){this.handler?.destroy(),this.handler=null,this.internalCallbacks.length=0}static{this.\u0275prov=R({token:e,providedIn:"root",factory:()=>new e})}}return e})();function Xc(e,n,t){let r=t?e.styles:null,o=t?e.classes:null,i=0;if(null!==n)for(let s=0;s0&&Qy(e,t,i.join(" "))}}(h,ue,v,r),void 0!==t&&function A2(e,n,t){const r=e.projection=[];for(let o=0;o{class e{static{this.__NG_ELEMENT_ID__=R2}}return e})();function R2(){return BC(pe(),M())}const k2=cn,UC=class extends k2{constructor(n,t,r){super(),this._lContainer=n,this._hostTNode=t,this._hostLView=r}get element(){return Bo(this._hostTNode,this._hostLView)}get injector(){return new Xe(this._hostTNode,this._hostLView)}get parentInjector(){const n=vc(this._hostTNode,this._hostLView);if(Vd(n)){const t=us(n,this._hostLView),r=ls(n);return new Xe(t[S].data[r+8],t)}return new Xe(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(n){const t=$C(this._lContainer);return null!==t&&t[n]||null}get length(){return this._lContainer.length-Fe}createEmbeddedView(n,t,r){let o,i;"number"==typeof r?o=r:null!=r&&(o=r.index,i=r.injector);const a=n.createEmbeddedViewImpl(t||{},i,null);return this.insertImpl(a,o,Yo(this._hostTNode,null)),a}createComponent(n,t,r,o,i){const s=n&&!function Ki(e){return"function"==typeof e}(n);let a;if(s)a=t;else{const p=t||{};a=p.index,r=p.injector,o=p.projectableNodes,i=p.environmentInjector||p.ngModuleRef}const c=s?n:new Ls(Y(n)),l=r||this.parentInjector;if(!i&&null==c.ngModule){const v=(s?l:this.parentInjector).get(vt,null);v&&(i=v)}Y(c.componentType??{});const h=c.create(l,o,null,i);return this.insertImpl(h.hostView,a,Yo(this._hostTNode,null)),h}insert(n,t){return this.insertImpl(n,t,!0)}insertImpl(n,t,r){const o=n._lView;if(function NS(e){return ft(e[xe])}(o)){const a=this.indexOf(n);if(-1!==a)this.detach(a);else{const c=o[xe],l=new UC(c,c[ut],c[xe]);l.detach(l.indexOf(n))}}const i=this._adjustIndex(t),s=this._lContainer;return Is(s,o,i,r),n.attachToViewContainerRef(),Sm(nh(s),i,n),n}move(n,t){return this.insert(n,t)}indexOf(n){const t=$C(this._lContainer);return null!==t?t.indexOf(n):-1}remove(n){const t=this._adjustIndex(n,-1),r=Ds(this._lContainer,t);r&&(Xa(nh(this._lContainer),t),Fc(r[S],r))}detach(n){const t=this._adjustIndex(n,-1),r=Ds(this._lContainer,t);return r&&null!=Xa(nh(this._lContainer),t)?new As(r):null}_adjustIndex(n,t=0){return n??this.length+t}};function $C(e){return e[8]}function nh(e){return e[8]||(e[8]=[])}function BC(e,n){let t;const r=n[e.index];return ft(r)?t=r:(t=aC(r,n,null,e),n[e.index]=t,$c(n,t)),HC(t,n,e,r),new UC(t,e,n)}let HC=function GC(e,n,t,r){if(e[En])return;let o;o=8&t.type?me(r):function O2(e,n){const t=e[j],r=t.createComment(""),o=yt(n,e);return no(t,Lc(t,o),r,function QA(e,n){return e.nextSibling(n)}(t,o),!1),r}(n,t),e[En]=o},rh=()=>!1;class oh{constructor(n){this.queryList=n,this.matches=null}clone(){return new oh(this.queryList)}setDirty(){this.queryList.setDirty()}}class ih{constructor(n=[]){this.queries=n}createEmbeddedView(n){const t=n.queries;if(null!==t){const r=null!==n.contentQueries?n.contentQueries[0]:t.length,o=[];for(let i=0;in.trim())}(n):n}}class sh{constructor(n=[]){this.queries=n}elementStart(n,t){for(let r=0;r0)r.push(s[a/2]);else{const l=i[a+1],u=n[-c];for(let d=Fe;d=0;r--){const o=e[r];o.hostVars=n+=o.hostVars,o.hostAttrs=Yi(o.hostAttrs,t=Yi(t,o.hostAttrs))}}(r)}function J2(e,n){for(const t in n.inputs){if(!n.inputs.hasOwnProperty(t)||e.inputs.hasOwnProperty(t))continue;const r=n.inputs[t];if(void 0!==r&&(e.inputs[t]=r,e.declaredInputs[t]=n.declaredInputs[t],null!==n.inputTransforms)){const o=Array.isArray(r)?r[0]:r;if(!n.inputTransforms.hasOwnProperty(o))continue;e.inputTransforms??={},e.inputTransforms[o]=n.inputTransforms[o]}}}function el(e){return e===Dn?{}:e===se?[]:e}function tR(e,n){const t=e.viewQuery;e.viewQuery=t?(r,o)=>{n(r,o),t(r,o)}:n}function nR(e,n){const t=e.contentQueries;e.contentQueries=t?(r,o,i)=>{n(r,o,i),t(r,o,i)}:n}function rR(e,n){const t=e.hostBindings;e.hostBindings=t?(r,o)=>{n(r,o),t(r,o)}:n}function m_(e){const n=e.inputConfig,t={};for(const r in n)if(n.hasOwnProperty(r)){const o=n[r];Array.isArray(o)&&o[3]&&(t[r]=o[3])}e.inputTransforms=t}class oo{}class v_{}class fh extends oo{constructor(n,t,r){super(),this._parent=t,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new VC(this);const o=lt(n);this._bootstrapComponents=jt(o.bootstrap),this._r3Injector=Fv(n,t,[{provide:oo,useValue:this},{provide:Qc,useValue:this.componentFactoryResolver},...r],Ze(n),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(n)}get injector(){return this._r3Injector}destroy(){const n=this._r3Injector;!n.destroyed&&n.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(n){this.destroyCbs.push(n)}}class hh extends v_{constructor(n){super(),this.moduleType=n}create(n){return new fh(this.moduleType,n,[])}}class y_ extends oo{constructor(n){super(),this.componentFactoryResolver=new VC(this),this.instance=null;const t=new Ao([...n.providers,{provide:oo,useValue:this},{provide:Qc,useValue:this.componentFactoryResolver}],n.parent||oc(),n.debugName,new Set(["environment"]));this.injector=t,n.runEnvironmentInitializers&&t.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(n){this.injector.onDestroy(n)}}function tl(e,n,t=null){return new y_({providers:e,parent:n,debugName:t,runEnvironmentInitializers:!0}).injector}let Mr=(()=>{class e{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new Wt(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const t=this.taskId++;return this.pendingTasks.add(t),t}remove(t){this.pendingTasks.delete(t),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function rl(e){return!!function ph(e){return null!==e&&("function"==typeof e||"object"==typeof e)}(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function On(e,n,t){return e[n]=t}function Le(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function io(e,n,t,r){const o=Le(e,n,t);return Le(e,n+1,r)||o}function Ve(e,n,t,r,o,i,s,a){const c=M(),l=J(),u=e+z,d=l.firstCreatePass?function mR(e,n,t,r,o,i,s,a,c){const l=n.consts,u=Qo(n,e,4,s||null,In(l,a));xf(n,t,u,In(l,c)),fc(n,u);const d=u.tView=Pf(2,u,r,o,i,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l,null);return null!==n.queries&&(n.queries.template(n,u),d.queries=n.queries.embeddedTView(u)),u}(u,l,c,n,t,r,o,i,s):l.data[u];Sn(d,!1);const f=C_(l,c,d,e);as()&&Vc(l,c,f,d),pt(f,c);const h=aC(f,c,f,d);return c[u]=h,$c(c,h),function zC(e,n,t){return rh(e,n,t)}(h,d,c),lc(d)&&kf(l,c,d),null!=s&&Of(c,d,a),Ve}let C_=function __(e,n,t,r){return Tn(!0),n[j].createComment("")};function Pn(e,n,t,r){const o=M();return Le(o,sn(),n)&&(J(),Rn(De(),o,e,n,t,r)),Pn}function si(e,n,t,r){return Le(e,sn(),t)?n+H(t)+r:G}function ai(e,n,t,r,o,i){const a=io(e,function Xn(){return U.lFrame.bindingIndex}(),t,o);return Kn(2),a?n+H(t)+r+H(o)+i:G}function ul(e,n){return e<<17|n<<2}function br(e){return e>>17&32767}function Eh(e){return 2|e}function ao(e){return(131068&e)>>2}function bh(e,n){return-131069&e|n<<2}function Ih(e){return 1|e}function X_(e,n,t,r){const o=e[t+1],i=null===n;let s=r?br(o):ao(o),a=!1;for(;0!==s&&(!1===a||i);){const l=e[s+1];nk(e[s],n)&&(a=!0,e[s+1]=r?Ih(l):Eh(l)),s=r?br(l):ao(l)}a&&(e[t+1]=r?Eh(o):Ih(o))}function nk(e,n){return null===e||null==n||(Array.isArray(e)?e[1]:e)===n||!(!Array.isArray(e)||"string"!=typeof n)&&To(e,n)>=0}function O(e,n,t){const r=M();return Le(r,sn(),n)&&Nt(J(),De(),r,e,n,r[j],t,!1),O}function Sh(e,n,t,r,o){const s=o?"class":"style";jf(e,t,n.inputs[s],s,r)}function dl(e,n){return function ln(e,n,t,r){const o=M(),i=J(),s=Kn(2);i.firstUpdatePass&&function sD(e,n,t,r){const o=e.data;if(null===o[t+1]){const i=o[ht()],s=function iD(e,n){return n>=e.expandoStartIndex}(e,t);(function uD(e,n){return!!(e.flags&(n?8:16))})(i,r)&&null===n&&!s&&(n=!1),n=function dk(e,n,t,r){const o=function kd(e){const n=U.lFrame.currentDirectiveIndex;return-1===n?null:e[n]}(e);let i=r?n.residualClasses:n.residualStyles;if(null===o)0===(r?n.classBindings:n.styleBindings)&&(t=zs(t=Th(null,e,n,t,r),n.attrs,r),i=null);else{const s=n.directiveStylingLast;if(-1===s||e[s]!==o)if(t=Th(o,e,n,t,r),null===i){let c=function fk(e,n,t){const r=t?n.classBindings:n.styleBindings;if(0!==ao(r))return e[br(r)]}(e,n,r);void 0!==c&&Array.isArray(c)&&(c=Th(null,e,n,c[1],r),c=zs(c,n.attrs,r),function hk(e,n,t,r){e[br(t?n.classBindings:n.styleBindings)]=r}(e,n,r,c))}else i=function pk(e,n,t){let r;const o=n.directiveEnd;for(let i=1+n.directiveStylingLast;i0)&&(l=!0)):u=t,o)if(0!==c){const f=br(e[a+1]);e[r+1]=ul(f,a),0!==f&&(e[f+1]=bh(e[f+1],r)),e[a+1]=function KR(e,n){return 131071&e|n<<17}(e[a+1],r)}else e[r+1]=ul(a,0),0!==a&&(e[a+1]=bh(e[a+1],r)),a=r;else e[r+1]=ul(c,0),0===a?a=r:e[c+1]=bh(e[c+1],r),c=r;l&&(e[r+1]=Eh(e[r+1])),X_(e,u,r,!0),X_(e,u,r,!1),function tk(e,n,t,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof n&&To(i,n)>=0&&(t[r+1]=Ih(t[r+1]))}(n,u,e,r,i),s=ul(a,c),i?n.classBindings=s:n.styleBindings=s}(o,i,n,t,s,r)}}(i,e,s,r),n!==G&&Le(o,s,n)&&function cD(e,n,t,r,o,i,s,a){if(!(3&n.type))return;const c=e.data,l=c[a+1],u=function JR(e){return!(1&~e)}(l)?lD(c,n,t,o,ao(l),s):void 0;fl(u)||(fl(i)||function XR(e){return!(2&~e)}(l)&&(i=lD(c,null,t,o,a,s)),function KA(e,n,t,r,o){if(n)o?e.addClass(t,r):e.removeClass(t,r);else{let i=-1===r.indexOf("-")?void 0:_r.DashCase;null==o?e.removeStyle(t,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=_r.Important),e.setStyle(t,r,o,i))}}(r,s,rs(ht(),t),o,i))}(i,i.data[ht()],o,o[j],e,o[s+1]=function yk(e,n){return null==e||""===e||("string"==typeof n?e+=n:"object"==typeof e&&(e=Ze(Cr(e)))),e}(n,t),r,s)}(e,n,null,!0),dl}function Th(e,n,t,r,o){let i=null;const s=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a0;){const c=e[o],l=Array.isArray(c),u=l?c[1]:c,d=null===u;let f=t[o+1];f===G&&(f=d?se:void 0);let h=d?id(f,r):u===r?f:void 0;if(l&&!fl(h)&&(h=id(c,r)),fl(h)&&(a=h,s))return a;const p=e[o+1];o=s?br(p):ao(p)}if(null!==n){let c=i?n.residualClasses:n.residualStyles;null!=c&&(a=id(c,r))}return a}function fl(e){return void 0!==e}function m(e,n,t,r){const o=M(),i=J(),s=z+e,a=o[j],c=i.firstCreatePass?function $k(e,n,t,r,o,i){const s=n.consts,c=Qo(n,e,2,r,In(s,o));return xf(n,t,c,In(s,i)),null!==c.attrs&&Xc(c,c.attrs,!1),null!==c.mergedAttrs&&Xc(c,c.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,c),c}(s,i,o,n,t,r):i.data[s],l=pD(i,o,c,a,n,e);o[s]=l;const u=lc(c);return Sn(c,!0),Yy(a,l,c),!function Us(e){return!(32&~e.flags)}(c)&&as()&&Vc(i,o,l,c),0===function kS(){return U.lFrame.elementDepthCount}()&&pt(l,o),function OS(){U.lFrame.elementDepthCount++}(),u&&(kf(i,o,c),Rf(i,c,o)),null!==r&&Of(o,c),m}function g(){let e=pe();Ad()?function Nd(){U.lFrame.isParent=!1}():(e=e.parent,Sn(e,!1));const n=e;(function xS(e){return U.skipHydrationRootTNode===e})(n)&&function jS(){U.skipHydrationRootTNode=null}(),function PS(){U.lFrame.elementDepthCount--}();const t=J();return t.firstCreatePass&&(fc(t,e),Cd(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function eT(e){return!!(8&e.flags)}(n)&&Sh(t,n,M(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function tT(e){return!!(16&e.flags)}(n)&&Sh(t,n,M(),n.stylesWithoutHost,!1),g}function V(e,n,t,r){return m(e,n,t,r),g(),V}let pD=(e,n,t,r,o,i)=>(Tn(!0),xc(r,o,function vv(){return U.lFrame.currentNamespace}()));function rr(){return M()}const co=void 0;var Zk=["en",[["a","p"],["AM","PM"],co],[["AM","PM"],co,co],[["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"]],co,[["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"]],co,[["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}",co,"{1} 'at' {0}",co],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function Wk(e){const t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===r?1:5}];let gi={};function Dt(e){const n=function Yk(e){return e.toLowerCase().replace(/_/g,"-")}(e);let t=_D(n);if(t)return t;const r=n.split("-")[0];if(t=_D(r),t)return t;if("en"===r)return Zk;throw new I(701,!1)}function _D(e){return e in gi||(gi[e]=de.ng&&de.ng.common&&de.ng.common.locales&&de.ng.common.locales[e]),gi[e]}var we=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(we||{});const mi="en-US";let DD=mi;function A(e,n,t,r){const o=M(),i=J(),s=pe();return Lh(i,o,o[j],s,e,n,r),A}function Lh(e,n,t,r,o,i,s){const a=lc(r),l=e.firstCreatePass&&uC(e),u=n[_e],d=lC(n);let f=!0;if(3&r.type||s){const v=yt(r,n),_=s?s(v):v,D=d.length,w=s?F=>s(me(F[r.index])):r.index;let T=null;if(!s&&a&&(T=function qO(e,n,t,r){const o=e.cleanup;if(null!=o)for(let i=0;ic?a[c]:null}"string"==typeof s&&(i+=2)}return null}(e,n,o,r.index)),null!==T)(T.__ngLastListenerFn__||T).__ngNextListenerFn__=i,T.__ngLastListenerFn__=i,f=!1;else{i=QD(r,n,u,i,!1);const F=t.listen(_,o,i);d.push(i,F),l&&l.push(o,w,D,D+1)}}else i=QD(r,n,u,i,!1);const h=r.outputs;let p;if(f&&null!==h&&(p=h[o])){const v=p.length;if(v)for(let _=0;_-1?Lt(e.index,n):n);let c=ZD(n,t,r,s),l=i.__ngNextListenerFn__;for(;l;)c=ZD(n,t,l,s)&&c,l=l.__ngNextListenerFn__;return o&&!1===c&&s.preventDefault(),c}}function $e(e=1){return function GS(e){return(U.lFrame.contextLView=function iv(e,n){for(;e>0;)n=n[Oo],e--;return n}(e,U.lFrame.contextLView))[_e]}(e)}function vl(e,n,t,r,o){const i=M(),s=si(i,n,t,r);return s!==G&&Nt(J(),De(),i,e,s,i[j],o,!1),vl}function iw(e,n,t,r){!function YC(e,n,t,r){const o=J();if(o.firstCreatePass){const i=pe();XC(o,new qC(n,t,r),i.index),function B2(e,n){const t=e.contentQueries||(e.contentQueries=[]);n!==(t.length?t[t.length-1]:-1)&&t.push(e.queries.length-1,n)}(o,e),!(2&~t)&&(o.staticContentQueries=!0)}return ZC(o,M(),t)}(e,n,t,r)}function yl(e,n,t){!function QC(e,n,t){const r=J();return r.firstCreatePass&&(XC(r,new qC(e,n,t),-1),!(2&~n)&&(r.staticViewQueries=!0)),ZC(r,M(),n)}(e,n,t)}function Xs(e){const n=M(),t=J(),r=Od();dc(r+1);const o=uh(t,r);if(e.dirty&&function AS(e){return!(4&~e[P])}(n)===!(2&~o.metadata.flags)){if(null===o.matches)e.reset([]);else{const i=KC(n,r);e.reset(i,Uv),e.notifyOnChanges()}return!0}return!1}function Ks(){return function lh(e,n){return e[Yn].queries[n].queryList}(M(),Od())}function y(e,n=""){const t=M(),r=J(),o=e+z,i=r.firstCreatePass?Qo(r,o,1,n,null):r.data[o],s=gw(r,t,i,n,e);t[o]=s,as()&&Vc(r,t,s,i),Sn(i,!1)}let gw=(e,n,t,r,o)=>(Tn(!0),function Mf(e,n){return e.createText(n)}(n[j],r));function q(e){return Oe("",e,""),q}function Oe(e,n,t){const r=M(),o=si(r,e,n,t);return o!==G&&er(r,ht(),o),Oe}function Cl(e,n,t,r,o){const i=M(),s=ai(i,e,n,t,r,o);return s!==G&&er(i,ht(),s),Cl}function ee(e,n,t){t_(n)&&(n=n());const r=M();return Le(r,sn(),n)&&Nt(J(),De(),r,e,n,r[j],t,!1),ee}function re(e,n){const t=t_(e);return t&&e.set(n),t}function te(e,n){const t=M(),r=J(),o=pe();return Lh(r,t,t[j],o,e,n),te}function Vh(e,n,t,r,o){if(e=L(e),Array.isArray(e))for(let i=0;i>20;if(Yr(e)||!e.multi){const h=new cs(l,o,E),p=Uh(c,n,o?u:u+f,d);-1===p?($d(mc(a,s),i,c),jh(i,e,n.length),n.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),t.push(h),s.push(h)):(t[p]=h,s[p]=h)}else{const h=Uh(c,n,u+f,d),p=Uh(c,n,u,u+f),_=p>=0&&t[p];if(o&&!_||!o&&!(h>=0&&t[h])){$d(mc(a,s),i,c);const D=function gP(e,n,t,r,o){const i=new cs(e,t,E);return i.multi=[],i.index=n,i.componentProviders=0,Mw(i,o,r&&!t),i}(o?pP:hP,t.length,o,r,l);!o&&_&&(t[p].providerFactory=D),jh(i,e,n.length,0),n.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),t.push(D),s.push(D)}else jh(i,e,h>-1?h:p,Mw(t[o?p:h],l,!o&&r));!o&&r&&_&&t[p].componentProviders++}}}function jh(e,n,t,r){const o=Yr(n),i=function rS(e){return!!e.useClass}(n);if(o||i){const c=(i?L(n.useClass):n).prototype.ngOnDestroy;if(c){const l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&n.multi){const u=l.indexOf(t);-1===u?l.push(t,[r,c]):l[u+1].push(r,c)}else l.push(t,c)}}}function Mw(e,n,t){return t&&e.componentProviders++,e.multi.push(n)-1}function Uh(e,n,t,r){for(let o=t;o{t.providersResolver=(r,o)=>function fP(e,n,t){const r=J();if(r.firstCreatePass){const o=on(e);Vh(t,r.data,r.blueprint,o,!0),Vh(n,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,n)}}let mP=(()=>{class e{constructor(t){this._injector=t,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(t){if(!t.standalone)return null;if(!this.cachedInjectors.has(t)){const r=ld(0,t.type),o=r.length>0?tl([r],this._injector,`Standalone[${t.type.name}]`):null;this.cachedInjectors.set(t,o)}return this.cachedInjectors.get(t)}ngOnDestroy(){try{for(const t of this.cachedInjectors.values())null!==t&&t.destroy()}finally{this.cachedInjectors.clear()}}static{this.\u0275prov=R({token:e,providedIn:"environment",factory:()=>new e(k(vt))})}}return e})();function Ew(e){kn("NgStandalone"),e.getStandaloneInjector=n=>n.get(mP).getOrCreateStandaloneInjector(e)}function Bh(e,n,t){const r=Ct()+e,o=M();return o[r]===G?On(o,r,t?n.call(t):n()):function js(e,n){return e[n]}(o,r)}function vi(e,n,t,r){return Iw(M(),Ct(),e,n,t,r)}function Js(e,n){const t=e[n];return t===G?void 0:t}function Iw(e,n,t,r,o,i){const s=n+t;return Le(e,s,o)?On(e,s+1,i?r.call(i,o):r(o)):Js(e,s+1)}function st(e,n){const t=J();let r;const o=e+z;t.firstCreatePass?(r=function SP(e,n){if(n)for(let t=n.length-1;t>=0;t--){const r=n[t];if(e===r.name)return r}}(n,t.pipeRegistry),t.data[o]=r,r.onDestroy&&(t.destroyHooks??=[]).push(o,r.onDestroy)):r=t.data[o];const i=r.factory||(r.factory=Zr(r.type)),a=St(E);try{const c=gc(!1),l=i();return gc(c),function JO(e,n,t,r){t>=e.data.length&&(e.data[t]=null,e.blueprint[t]=null),n[t]=r}(t,M(),o,l),l}finally{St(a)}}function lo(e,n,t){const r=e+z,o=M(),i=Fo(o,r);return ea(o,r)?Iw(o,Ct(),n,i.transform,t,i):i.transform(t)}function dn(e,n,t,r){const o=e+z,i=M(),s=Fo(i,o);return ea(i,o)?function Sw(e,n,t,r,o,i,s){const a=n+t;return io(e,a,o,i)?On(e,a+2,s?r.call(s,o,i):r(o,i)):Js(e,a+2)}(i,Ct(),n,s.transform,t,r,s):s.transform(t,r)}function ea(e,n){return e[S].data[n].pure}class na{constructor(n){this.full=n;const t=n.split(".");this.major=t[0],this.minor=t[1],this.patch=t.slice(2).join(".")}}const JP=new na("17.3.12");let qw=(()=>{class e{log(t){console.log(t)}warn(t){console.warn(t)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();const Xw=new N(""),Ml=new N("");let Yh,Zh=(()=>{class e{constructor(t,r,o){this._ngZone=t,this.registry=r,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,Yh||(function b3(e){Yh=e}(o),o.addToWindow(r)),this._watchAngularEvents(),t.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{fe.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,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())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb()}});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(t)||(clearTimeout(r.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),t()},r)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:o})}whenStable(t,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(t,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(t){this.registry.registerApplication(t,this)}unregisterApplication(t){this.registry.unregisterApplication(t)}findProviders(t,r,o){return[]}static{this.\u0275fac=function(r){return new(r||e)(k(fe),k(Qh),k(Ml))}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac})}}return e})(),Qh=(()=>{class e{constructor(){this._applications=new Map}registerApplication(t,r){this._applications.set(t,r)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,r=!0){return Yh?.findTestabilityInTree(this,t,r)??null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})();function oa(e){return!!e&&"function"==typeof e.then}function Kw(e){return!!e&&"function"==typeof e.subscribe}const Xh=new N("");let Kh=(()=>{class e{constructor(){this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,r)=>{this.resolve=t,this.reject=r}),this.appInits=b(Xh,{optional:!0})??[]}runInitializers(){if(this.initialized)return;const t=[];for(const o of this.appInits){const i=o();if(oa(i))t.push(i);else if(Kw(i)){const s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});t.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(t).then(()=>{r()}).catch(o=>{this.reject(o)}),0===t.length&&r(),this.initialized=!0}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Jh=new N("");function t0(e,n){return Array.isArray(n)?n.reduce(t0,e):{...e,...n}}let Ir=(()=>{class e{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=b(Vv),this.afterRenderEffectManager=b(Ps),this.externalTestViews=new Set,this.beforeRender=new qt,this.afterTick=new qt,this.componentTypes=[],this.components=[],this.isStable=b(Mr).hasPendingTasks.pipe(ie(t=>!t)),this._injector=b(vt)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(t,r){const o=t instanceof bC;if(!this._injector.get(Kh).done)throw!o&&function gr(e){const n=Y(e)||Qe(e)||it(e);return null!==n&&n.standalone}(t),new I(405,!1);let s;s=o?t:this._injector.get(Qc).resolveComponentFactory(t),this.componentTypes.push(s.componentType);const a=function I3(e){return e.isBoundToModule}(s)?void 0:this._injector.get(oo),l=s.create(_t.NULL,[],r||s.selector,a),u=l.location.nativeElement,d=l.injector.get(Xw,null);return d?.registerApplication(u),l.onDestroy(()=>{this.detachView(l.hostView),El(this.components,l),d?.unregisterApplication(u)}),this._loadComponent(l),l}tick(){this._tick(!0)}_tick(t){if(this._runningTick)throw new I(101,!1);const r=Q(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(t)}catch(o){this.internalErrorHandler(o)}finally{this.afterTick.next(),this._runningTick=!1,Q(r)}}detectChangesInAttachedViews(t){let r=0;const o=this.afterRenderEffectManager;for(;;){if(r===gC)throw new I(103,!1);if(t){const i=0===r;this.beforeRender.next(i);for(let{_lView:s,notifyErrorHandler:a}of this._views)T3(s,i,a)}if(r++,o.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:i})=>ep(i))&&(o.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:i})=>ep(i))))break}}attachView(t){const r=t;this._views.push(r),r.attachToAppRef(this)}detachView(t){const r=t;El(this._views,r),r.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t);const r=this._injector.get(Jh,[]);[...this._bootstrapListeners,...r].forEach(o=>o(t))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(t=>t()),this._views.slice().forEach(t=>t.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(t){return this._destroyListeners.push(t),()=>El(this._destroyListeners,t)}destroy(){if(this._destroyed)throw new I(406,!1);const t=this._injector;t.destroy&&!t.destroyed&&t.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function El(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function T3(e,n,t){!n&&!ep(e)||function A3(e,n,t){let r;t?(r=0,e[P]|=1024):r=64&e[P]?0:1,Hc(e,n,r)}(e,t,n)}function ep(e){return Id(e)}class N3{constructor(n,t){this.ngModuleFactory=n,this.componentFactories=t}}let n0=(()=>{class e{compileModuleSync(t){return new hh(t)}compileModuleAsync(t){return Promise.resolve(this.compileModuleSync(t))}compileModuleAndAllComponentsSync(t){const r=this.compileModuleSync(t),i=jt(lt(t).declarations).reduce((s,a)=>{const c=Y(a);return c&&s.push(new Ls(c)),s},[]);return new N3(r,i)}compileModuleAndAllComponentsAsync(t){return Promise.resolve(this.compileModuleAndAllComponentsSync(t))}clearCache(){}clearCacheFor(t){}getModuleId(t){}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),O3=(()=>{class e{constructor(){this.zone=b(fe),this.applicationRef=b(Ir)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function P3(){const e=b(fe),n=b(Nn);return t=>e.runOutsideAngular(()=>n.handleError(t))}let F3=(()=>{class e{constructor(){this.subscription=new It,this.initialized=!1,this.zone=b(fe),this.pendingTasks=b(Mr)}initialize(){if(this.initialized)return;this.initialized=!0;let t=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(t=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{fe.assertNotInAngularZone(),queueMicrotask(()=>{null!==t&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(t),t=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{fe.assertInAngularZone(),t??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Ln=new N("",{providedIn:"root",factory:()=>b(Ln,K.Optional|K.SkipSelf)||function L3(){return typeof $localize<"u"&&$localize.locale||mi}()}),tp=new N("");let a0=(()=>{class e{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,r){const o=function y2(e="zone.js",n){return"noop"===e?new kC:"zone.js"===e?new fe(n):e}(r?.ngZone,function s0(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing}));return o.run(()=>{const i=function uR(e,n,t){return new fh(e,n,t)}(t.moduleType,this.injector,function o0(e){return[{provide:fe,useFactory:e},{provide:Qr,multi:!0,useFactory:()=>{const n=b(O3,{optional:!0});return()=>n.initialize()}},{provide:Qr,multi:!0,useFactory:()=>{const n=b(F3);return()=>{n.initialize()}}},{provide:Vv,useFactory:P3}]}(()=>o)),s=i.injector.get(Nn,null);return o.runOutsideAngular(()=>{const a=o.onError.subscribe({next:c=>{s.handleError(c)}});i.onDestroy(()=>{El(this._modules,i),a.unsubscribe()})}),function e0(e,n,t){try{const r=t();return oa(r)?r.catch(o=>{throw n.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw n.runOutsideAngular(()=>e.handleError(r)),r}}(s,o,()=>{const a=i.injector.get(Kh);return a.runInitializers(),a.donePromise.then(()=>(function wD(e){"string"==typeof e&&(DD=e.toLowerCase().replace(/_/g,"-"))}(i.injector.get(Ln,mi)||mi),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,r=[]){const o=t0({},r);return function k3(e,n,t){const r=new hh(t);return Promise.resolve(r)}(0,0,t).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(t){const r=t.injector.get(Ir);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!t.instance.ngDoBootstrap)throw new I(-403,!1);t.instance.ngDoBootstrap(r)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new I(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const t=this._injector.get(tp,null);t&&(t.forEach(r=>r()),t.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static{this.\u0275fac=function(r){return new(r||e)(k(_t))}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"platform"})}}return e})(),Sr=null;const c0=new N("");function l0(e,n,t=[]){const r=`Platform: ${n}`,o=new N(r);return(i=[])=>{let s=np();if(!s||s.injector.get(c0,!1)){const a=[...t,...i,{provide:o,useValue:!0}];e?e(a):function U3(e){if(Sr&&!Sr.get(c0,!1))throw new I(400,!1);(function Jw(){!function X1(e){rm=e}(()=>{throw new I(600,!1)})})(),Sr=e;const n=e.get(a0);(function d0(e){e.get(sy,null)?.forEach(t=>t())})(e)}(function u0(e=[],n){return _t.create({name:n,providers:[{provide:fd,useValue:"platform"},{provide:tp,useValue:new Set([()=>Sr=null])},...e]})}(a,r))}return function $3(e){const n=np();if(!n)throw new I(401,!1);return n}()}}function np(){return Sr?.get(a0)??null}let ia=(()=>{class e{static{this.__NG_ELEMENT_ID__=H3}}return e})();function H3(e){return function z3(e,n,t){if(Kr(e)&&!t){const r=Lt(e.index,n);return new As(r,r)}return 47&e.type?new As(n[Ae],n):null}(pe(),M(),!(16&~e))}class m0{constructor(){}supports(n){return rl(n)}create(n){return new Q3(n)}}const Z3=(e,n)=>n;class Q3{constructor(n){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||Z3}forEachItem(n){let t;for(t=this._itHead;null!==t;t=t._next)n(t)}forEachOperation(n){let t=this._itHead,r=this._removalsHead,o=0,i=null;for(;t||r;){const s=!r||t&&t.currentIndex{s=this._trackByFn(o,a),null!==t&&Object.is(t.trackById,s)?(r&&(t=this._verifyReinsertion(t,a,s,o)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,s,o),r=!0),t=t._next,o++}),this.length=o;return this._truncate(t),this.collection=n,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let n;for(n=this._previousItHead=this._itHead;null!==n;n=n._next)n._nextPrevious=n._next;for(n=this._additionsHead;null!==n;n=n._nextAdded)n.previousIndex=n.currentIndex;for(this._additionsHead=this._additionsTail=null,n=this._movesHead;null!==n;n=n._nextMoved)n.previousIndex=n.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(n,t,r,o){let i;return null===n?i=this._itTail:(i=n._prev,this._remove(n)),null!==(n=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._reinsertAfter(n,i,o)):null!==(n=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(n.item,t)||this._addIdentityChange(n,t),this._moveAfter(n,i,o)):n=this._addAfter(new Y3(t,r),i,o),n}_verifyReinsertion(n,t,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?n=this._reinsertAfter(i,n._prev,o):n.currentIndex!=o&&(n.currentIndex=o,this._addToMoves(n,o)),n}_truncate(n){for(;null!==n;){const t=n._next;this._addToRemovals(this._unlink(n)),n=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(n,t,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(n);const o=n._prevRemoved,i=n._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(n,t,r),this._addToMoves(n,r),n}_moveAfter(n,t,r){return this._unlink(n),this._insertAfter(n,t,r),this._addToMoves(n,r),n}_addAfter(n,t,r){return this._insertAfter(n,t,r),this._additionsTail=null===this._additionsTail?this._additionsHead=n:this._additionsTail._nextAdded=n,n}_insertAfter(n,t,r){const o=null===t?this._itHead:t._next;return n._next=o,n._prev=t,null===o?this._itTail=n:o._prev=n,null===t?this._itHead=n:t._next=n,null===this._linkedRecords&&(this._linkedRecords=new v0),this._linkedRecords.put(n),n.currentIndex=r,n}_remove(n){return this._addToRemovals(this._unlink(n))}_unlink(n){null!==this._linkedRecords&&this._linkedRecords.remove(n);const t=n._prev,r=n._next;return null===t?this._itHead=r:t._next=r,null===r?this._itTail=t:r._prev=t,n}_addToMoves(n,t){return n.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=n:this._movesTail._nextMoved=n),n}_addToRemovals(n){return null===this._unlinkedRecords&&(this._unlinkedRecords=new v0),this._unlinkedRecords.put(n),n.currentIndex=null,n._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=n,n._prevRemoved=null):(n._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=n),n}_addIdentityChange(n,t){return n.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=n:this._identityChangesTail._nextIdentityChange=n,n}}class Y3{constructor(n,t){this.item=n,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class X3{constructor(){this._head=null,this._tail=null}add(n){null===this._head?(this._head=this._tail=n,n._nextDup=null,n._prevDup=null):(this._tail._nextDup=n,n._prevDup=this._tail,n._nextDup=null,this._tail=n)}get(n,t){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===t||t<=r.currentIndex)&&Object.is(r.trackById,n))return r;return null}remove(n){const t=n._prevDup,r=n._nextDup;return null===t?this._head=r:t._nextDup=r,null===r?this._tail=t:r._prevDup=t,null===this._head}}class v0{constructor(){this.map=new Map}put(n){const t=n.trackById;let r=this.map.get(t);r||(r=new X3,this.map.set(t,r)),r.add(n)}get(n,t){const o=this.map.get(n);return o?o.get(n,t):null}remove(n){const t=n.trackById;return this.map.get(t).remove(n)&&this.map.delete(t),n}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function y0(e,n,t){const r=e.previousIndex;if(null===r)return r;let o=0;return t&&r{class e{static{this.\u0275prov=R({token:e,providedIn:"root",factory:_0})}constructor(t){this.factories=t}static create(t,r){if(null!=r){const o=r.factories.slice();t=t.concat(o)}return new e(t)}static extend(t){return{provide:e,useFactory:r=>e.create(t,r||_0()),deps:[[e,new Ya,new Qa]]}}find(t){const r=this.factories.find(o=>o.supports(t));if(null!=r)return r;throw new I(901,!1)}}return e})();const nx=l0(null,"core",[]);let rx=(()=>{class e{constructor(t){}static{this.\u0275fac=function(r){return new(r||e)(k(Ir))}}static{this.\u0275mod=wn({type:e})}static{this.\u0275inj=Jt({})}}return e})();function Di(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}let z0=null;function Tr(){return z0}class Ux{}const $t=new N("");let up=(()=>{class e{historyGo(t){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:()=>b(Bx),providedIn:"platform"})}}return e})();const $x=new N("");let Bx=(()=>{class e extends up{constructor(){super(),this._doc=b($t),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Tr().getBaseHref(this._doc)}onPopState(t){const r=Tr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",t,!1),()=>r.removeEventListener("popstate",t)}onHashChange(t){const r=Tr().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",t,!1),()=>r.removeEventListener("hashchange",t)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(t){this._location.pathname=t}pushState(t,r,o){this._history.pushState(t,r,o)}replaceState(t,r,o){this._history.replaceState(t,r,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:()=>new e,providedIn:"platform"})}}return e})();function dp(e,n){if(0==e.length)return n;if(0==n.length)return e;let t=0;return e.endsWith("/")&&t++,n.startsWith("/")&&t++,2==t?e+n.substring(1):1==t?e+n:e+"/"+n}function G0(e){const n=e.match(/#|\?|$/),t=n&&n.index||e.length;return e.slice(0,t-("/"===e[t-1]?1:0))+e.slice(t)}function or(e){return e&&"?"!==e[0]?"?"+e:e}let Ar=(()=>{class e{historyGo(t){throw new Error("")}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:()=>b(W0),providedIn:"root"})}}return e})();const q0=new N("");let W0=(()=>{class e extends Ar{constructor(t,r){super(),this._platformLocation=t,this._removeListenerFns=[],this._baseHref=r??this._platformLocation.getBaseHrefFromDOM()??b($t).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return dp(this._baseHref,t)}path(t=!1){const r=this._platformLocation.pathname+or(this._platformLocation.search),o=this._platformLocation.hash;return o&&t?`${r}${o}`:r}pushState(t,r,o,i){const s=this.prepareExternalUrl(o+or(i));this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){const s=this.prepareExternalUrl(o+or(i));this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static{this.\u0275fac=function(r){return new(r||e)(k(up),k(q0,8))}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),Z0=(()=>{class e extends Ar{constructor(t,r){super(),this._platformLocation=t,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}path(t=!1){const r=this._platformLocation.hash??"#";return r.length>0?r.substring(1):r}prepareExternalUrl(t){const r=dp(this._baseHref,t);return r.length>0?"#"+r:r}pushState(t,r,o,i){let s=this.prepareExternalUrl(o+or(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(t,r,s)}replaceState(t,r,o,i){let s=this.prepareExternalUrl(o+or(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(t,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(t=0){this._platformLocation.historyGo?.(t)}static{this.\u0275fac=function(r){return new(r||e)(k(up),k(q0,8))}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac})}}return e})(),wi=(()=>{class e{constructor(t){this._subject=new ke,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=t;const r=this._locationStrategy.getBaseHref();this._basePath=function Gx(e){if(new RegExp("^(https?:)?//").test(e)){const[,t]=e.split(/\/\/[^\/]+/);return t}return e}(G0(Q0(r))),this._locationStrategy.onPopState(o=>{this._subject.emit({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(t=!1){return this.normalize(this._locationStrategy.path(t))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(t,r=""){return this.path()==this.normalize(t+or(r))}normalize(t){return e.stripTrailingSlash(function zx(e,n){if(!e||!n.startsWith(e))return n;const t=n.substring(e.length);return""===t||["/",";","?","#"].includes(t[0])?t:n}(this._basePath,Q0(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._locationStrategy.prepareExternalUrl(t)}go(t,r="",o=null){this._locationStrategy.pushState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+or(r)),o)}replaceState(t,r="",o=null){this._locationStrategy.replaceState(o,"",t,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+or(r)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(t=0){this._locationStrategy.historyGo?.(t)}onUrlChange(t){return this._urlChangeListeners.push(t),this._urlChangeSubscription??=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}),()=>{const r=this._urlChangeListeners.indexOf(t);this._urlChangeListeners.splice(r,1),0===this._urlChangeListeners.length&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(t="",r){this._urlChangeListeners.forEach(o=>o(t,r))}subscribe(t,r,o){return this._subject.subscribe({next:t,error:r,complete:o})}static{this.normalizeQueryParams=or}static{this.joinWithSlash=dp}static{this.stripTrailingSlash=G0}static{this.\u0275fac=function(r){return new(r||e)(k(Ar))}}static{this.\u0275prov=R({token:e,factory:()=>function Hx(){return new wi(k(Ar))}(),providedIn:"root"})}}return e})();function Q0(e){return e.replace(/\/index.html$/,"")}var Mt=function(e){return e[e.Format=0]="Format",e[e.Standalone=1]="Standalone",e}(Mt||{}),ye=function(e){return e[e.Narrow=0]="Narrow",e[e.Abbreviated=1]="Abbreviated",e[e.Wide=2]="Wide",e[e.Short=3]="Short",e}(ye||{}),Bt=function(e){return e[e.Short=0]="Short",e[e.Medium=1]="Medium",e[e.Long=2]="Long",e[e.Full=3]="Full",e}(Bt||{});const Ge={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function xl(e,n){return Xt(Dt(e)[we.DateFormat],n)}function Fl(e,n){return Xt(Dt(e)[we.TimeFormat],n)}function Ll(e,n){return Xt(Dt(e)[we.DateTimeFormat],n)}function Yt(e,n){const t=Dt(e),r=t[we.NumberSymbols][n];if(typeof r>"u"){if(n===Ge.CurrencyDecimal)return t[we.NumberSymbols][Ge.Decimal];if(n===Ge.CurrencyGroup)return t[we.NumberSymbols][Ge.Group]}return r}function X0(e){if(!e[we.ExtraData])throw new Error(`Missing extra locale data for the locale "${e[we.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Xt(e,n){for(let t=n;t>-1;t--)if(typeof e[t]<"u")return e[t];throw new Error("Locale data API: locale data undefined")}function hp(e){const[n,t]=e.split(":");return{hours:+n,minutes:+t}}const iF=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Vl={},sF=/((?:[^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 ir=function(e){return e[e.Short=0]="Short",e[e.ShortGMT=1]="ShortGMT",e[e.Long=2]="Long",e[e.Extended=3]="Extended",e}(ir||{}),ce=function(e){return e[e.FullYear=0]="FullYear",e[e.Month=1]="Month",e[e.Date=2]="Date",e[e.Hours=3]="Hours",e[e.Minutes=4]="Minutes",e[e.Seconds=5]="Seconds",e[e.FractionalSeconds=6]="FractionalSeconds",e[e.Day=7]="Day",e}(ce||{}),le=function(e){return e[e.DayPeriods=0]="DayPeriods",e[e.Days=1]="Days",e[e.Months=2]="Months",e[e.Eras=3]="Eras",e}(le||{});function aF(e,n,t,r){let o=function mF(e){if(eM(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 jl(o,i-1,s)}const t=parseFloat(e);if(!isNaN(e-t))return new Date(t);let r;if(r=e.match(iF))return function vF(e){const n=new Date(0);let t=0,r=0;const o=e[8]?n.setUTCFullYear:n.setFullYear,i=e[8]?n.setUTCHours:n.setHours;e[9]&&(t=Number(e[9]+e[10]),r=Number(e[9]+e[11])),o.call(n,Number(e[1]),Number(e[2])-1,Number(e[3]));const s=Number(e[4]||0)-t,a=Number(e[5]||0)-r,c=Number(e[6]||0),l=Math.floor(1e3*parseFloat("0."+(e[7]||0)));return i.call(n,s,a,c,l),n}(r)}const n=new Date(e);if(!eM(n))throw new Error(`Unable to convert "${e}" into a date`);return n}(e);n=sr(t,n)||n;let a,s=[];for(;n;){if(a=sF.exec(n),!a){s.push(n);break}{s=s.concat(a.slice(1));const u=s.pop();if(!u)break;n=u}}let c=o.getTimezoneOffset();r&&(c=J0(r,c),o=function gF(e,n,t){const r=t?-1:1,o=e.getTimezoneOffset();return function pF(e,n){return(e=new Date(e.getTime())).setMinutes(e.getMinutes()+n),e}(e,r*(J0(n,o)-o))}(o,r,!0));let l="";return s.forEach(u=>{const d=function hF(e){if(gp[e])return gp[e];let n;switch(e){case"G":case"GG":case"GGG":n=Me(le.Eras,ye.Abbreviated);break;case"GGGG":n=Me(le.Eras,ye.Wide);break;case"GGGGG":n=Me(le.Eras,ye.Narrow);break;case"y":n=qe(ce.FullYear,1,0,!1,!0);break;case"yy":n=qe(ce.FullYear,2,0,!0,!0);break;case"yyy":n=qe(ce.FullYear,3,0,!1,!0);break;case"yyyy":n=qe(ce.FullYear,4,0,!1,!0);break;case"Y":n=Hl(1);break;case"YY":n=Hl(2,!0);break;case"YYY":n=Hl(3);break;case"YYYY":n=Hl(4);break;case"M":case"L":n=qe(ce.Month,1,1);break;case"MM":case"LL":n=qe(ce.Month,2,1);break;case"MMM":n=Me(le.Months,ye.Abbreviated);break;case"MMMM":n=Me(le.Months,ye.Wide);break;case"MMMMM":n=Me(le.Months,ye.Narrow);break;case"LLL":n=Me(le.Months,ye.Abbreviated,Mt.Standalone);break;case"LLLL":n=Me(le.Months,ye.Wide,Mt.Standalone);break;case"LLLLL":n=Me(le.Months,ye.Narrow,Mt.Standalone);break;case"w":n=pp(1);break;case"ww":n=pp(2);break;case"W":n=pp(1,!0);break;case"d":n=qe(ce.Date,1);break;case"dd":n=qe(ce.Date,2);break;case"c":case"cc":n=qe(ce.Day,1);break;case"ccc":n=Me(le.Days,ye.Abbreviated,Mt.Standalone);break;case"cccc":n=Me(le.Days,ye.Wide,Mt.Standalone);break;case"ccccc":n=Me(le.Days,ye.Narrow,Mt.Standalone);break;case"cccccc":n=Me(le.Days,ye.Short,Mt.Standalone);break;case"E":case"EE":case"EEE":n=Me(le.Days,ye.Abbreviated);break;case"EEEE":n=Me(le.Days,ye.Wide);break;case"EEEEE":n=Me(le.Days,ye.Narrow);break;case"EEEEEE":n=Me(le.Days,ye.Short);break;case"a":case"aa":case"aaa":n=Me(le.DayPeriods,ye.Abbreviated);break;case"aaaa":n=Me(le.DayPeriods,ye.Wide);break;case"aaaaa":n=Me(le.DayPeriods,ye.Narrow);break;case"b":case"bb":case"bbb":n=Me(le.DayPeriods,ye.Abbreviated,Mt.Standalone,!0);break;case"bbbb":n=Me(le.DayPeriods,ye.Wide,Mt.Standalone,!0);break;case"bbbbb":n=Me(le.DayPeriods,ye.Narrow,Mt.Standalone,!0);break;case"B":case"BB":case"BBB":n=Me(le.DayPeriods,ye.Abbreviated,Mt.Format,!0);break;case"BBBB":n=Me(le.DayPeriods,ye.Wide,Mt.Format,!0);break;case"BBBBB":n=Me(le.DayPeriods,ye.Narrow,Mt.Format,!0);break;case"h":n=qe(ce.Hours,1,-12);break;case"hh":n=qe(ce.Hours,2,-12);break;case"H":n=qe(ce.Hours,1);break;case"HH":n=qe(ce.Hours,2);break;case"m":n=qe(ce.Minutes,1);break;case"mm":n=qe(ce.Minutes,2);break;case"s":n=qe(ce.Seconds,1);break;case"ss":n=qe(ce.Seconds,2);break;case"S":n=qe(ce.FractionalSeconds,1);break;case"SS":n=qe(ce.FractionalSeconds,2);break;case"SSS":n=qe(ce.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":n=$l(ir.Short);break;case"ZZZZZ":n=$l(ir.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=$l(ir.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":n=$l(ir.Long);break;default:return null}return gp[e]=n,n}(u);l+=d?d(o,t,c):"''"===u?"'":u.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function jl(e,n,t){const r=new Date(0);return r.setFullYear(e,n,t),r.setHours(0,0,0),r}function sr(e,n){const t=function Wx(e){return Dt(e)[we.LocaleId]}(e);if(Vl[t]??={},Vl[t][n])return Vl[t][n];let r="";switch(n){case"shortDate":r=xl(e,Bt.Short);break;case"mediumDate":r=xl(e,Bt.Medium);break;case"longDate":r=xl(e,Bt.Long);break;case"fullDate":r=xl(e,Bt.Full);break;case"shortTime":r=Fl(e,Bt.Short);break;case"mediumTime":r=Fl(e,Bt.Medium);break;case"longTime":r=Fl(e,Bt.Long);break;case"fullTime":r=Fl(e,Bt.Full);break;case"short":const o=sr(e,"shortTime"),i=sr(e,"shortDate");r=Ul(Ll(e,Bt.Short),[o,i]);break;case"medium":const s=sr(e,"mediumTime"),a=sr(e,"mediumDate");r=Ul(Ll(e,Bt.Medium),[s,a]);break;case"long":const c=sr(e,"longTime"),l=sr(e,"longDate");r=Ul(Ll(e,Bt.Long),[c,l]);break;case"full":const u=sr(e,"fullTime"),d=sr(e,"fullDate");r=Ul(Ll(e,Bt.Full),[u,d])}return r&&(Vl[t][n]=r),r}function Ul(e,n){return n&&(e=e.replace(/\{([^}]+)}/g,function(t,r){return null!=n&&r in n?n[r]:t})),e}function fn(e,n,t="-",r,o){let i="";(e<0||o&&e<=0)&&(o?e=1-e:(e=-e,i=t));let s=String(e);for(;s.length0||a>-t)&&(a+=t),e===ce.Hours)0===a&&-12===t&&(a=12);else if(e===ce.FractionalSeconds)return function cF(e,n){return fn(e,3).substring(0,n)}(a,n);const c=Yt(s,Ge.MinusSign);return fn(a,n,c,r,o)}}function Me(e,n,t=Mt.Format,r=!1){return function(o,i){return function uF(e,n,t,r,o,i){switch(t){case le.Months:return function Yx(e,n,t){const r=Dt(e),i=Xt([r[we.MonthsFormat],r[we.MonthsStandalone]],n);return Xt(i,t)}(n,o,r)[e.getMonth()];case le.Days:return function Qx(e,n,t){const r=Dt(e),i=Xt([r[we.DaysFormat],r[we.DaysStandalone]],n);return Xt(i,t)}(n,o,r)[e.getDay()];case le.DayPeriods:const s=e.getHours(),a=e.getMinutes();if(i){const l=function eF(e){const n=Dt(e);return X0(n),(n[we.ExtraData][2]||[]).map(r=>"string"==typeof r?hp(r):[hp(r[0]),hp(r[1])])}(n),u=function tF(e,n,t){const r=Dt(e);X0(r);const i=Xt([r[we.ExtraData][0],r[we.ExtraData][1]],n)||[];return Xt(i,t)||[]}(n,o,r),d=l.findIndex(f=>{if(Array.isArray(f)){const[h,p]=f,v=s>=h.hours&&a>=h.minutes,_=s0?Math.floor(o/60):Math.ceil(o/60);switch(e){case ir.Short:return(o>=0?"+":"")+fn(s,2,i)+fn(Math.abs(o%60),2,i);case ir.ShortGMT:return"GMT"+(o>=0?"+":"")+fn(s,1,i);case ir.Long:return"GMT"+(o>=0?"+":"")+fn(s,2,i)+":"+fn(Math.abs(o%60),2,i);case ir.Extended:return 0===r?"Z":(o>=0?"+":"")+fn(s,2,i)+":"+fn(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${e}"`)}}}const dF=0,Bl=4;function K0(e){const n=e.getDay(),t=0===n?-3:Bl-n;return jl(e.getFullYear(),e.getMonth(),e.getDate()+t)}function pp(e,n=!1){return function(t,r){let o;if(n){const i=new Date(t.getFullYear(),t.getMonth(),1).getDay()-1,s=t.getDate();o=1+Math.floor((s+i)/7)}else{const i=K0(t),s=function fF(e){const n=jl(e,dF,1).getDay();return jl(e,0,1+(n<=Bl?Bl:Bl+7)-n)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return fn(o,e,Yt(r,Ge.MinusSign))}}function Hl(e,n=!1){return function(t,r){return fn(K0(t).getFullYear(),e,Yt(r,Ge.MinusSign),n)}}const gp={};function J0(e,n){e=e.replace(/:/g,"");const t=Date.parse("Jan 01, 1970 00:00:00 "+e)/6e4;return isNaN(t)?n:t}function eM(e){return e instanceof Date&&!isNaN(e.valueOf())}function oM(e,n){n=encodeURIComponent(n);for(const t of e.split(";")){const r=t.indexOf("="),[o,i]=-1==r?[t,""]:[t.slice(0,r),t.slice(r+1)];if(o.trim()===n)return decodeURIComponent(i)}return null}const Dp=/\s+/,iM=[];let wp=(()=>{class e{constructor(t,r){this._ngEl=t,this._renderer=r,this.initialClasses=iM,this.stateMap=new Map}set klass(t){this.initialClasses=null!=t?t.trim().split(Dp):iM}set ngClass(t){this.rawClass="string"==typeof t?t.trim().split(Dp):t}ngDoCheck(){for(const r of this.initialClasses)this._updateState(r,!0);const t=this.rawClass;if(Array.isArray(t)||t instanceof Set)for(const r of t)this._updateState(r,!0);else if(null!=t)for(const r of Object.keys(t))this._updateState(r,!!t[r]);this._applyStateDiff()}_updateState(t,r){const o=this.stateMap.get(t);void 0!==o?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(t,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(const t of this.stateMap){const r=t[0],o=t[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(t,r){(t=t.trim()).length>0&&t.split(Dp).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static{this.\u0275fac=function(r){return new(r||e)(E(Vt),E(nr))}}static{this.\u0275dir=B({type:e,selectors:[["","ngClass",""]],inputs:{klass:[Ie.None,"class","klass"],ngClass:"ngClass"},standalone:!0})}}return e})();class RF{constructor(n,t,r,o){this.$implicit=n,this.ngForOf=t,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let hn=(()=>{class e{set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}constructor(t,r,o){this._viewContainer=t,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const r=this._viewContainer;t.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new RF(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),aM(a,o)}});for(let o=0,i=r.length;o{aM(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(t,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(E(cn),E(tr),E(ap))}}static{this.\u0275dir=B({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0})}}return e})();function aM(e,n){e.context.$implicit=n.item}let Mp=(()=>{class e{constructor(t,r){this._viewContainer=t,this._context=new kF,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){cM("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){cM("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(t,r){return!0}static{this.\u0275fac=function(r){return new(r||e)(E(cn),E(tr))}}static{this.\u0275dir=B({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0})}}return e})();class kF{constructor(){this.$implicit=null,this.ngIf=null}}function cM(e,n){if(n&&!n.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${Ze(n)}'.`)}const qF=new N(""),WF=new N("");let Nr=(()=>{class e{constructor(t,r,o){this.locale=t,this.defaultTimezone=r,this.defaultOptions=o}transform(t,r,o,i){if(null==t||""===t||t!=t)return null;try{return aF(t,r??this.defaultOptions?.dateFormat??"mediumDate",i||this.locale,o??this.defaultOptions?.timezone??this.defaultTimezone??void 0)}catch(s){throw function pn(e,n){return new I(2100,!1)}()}}static{this.\u0275fac=function(r){return new(r||e)(E(Ln,16),E(qF,24),E(WF,24))}}static{this.\u0275pipe=ct({name:"date",type:e,pure:!0,standalone:!0})}}return e})(),r4=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=wn({type:e})}static{this.\u0275inj=Jt({})}}return e})();const dM="browser";function fM(e){return"server"===e}let c4=(()=>{class e{static{this.\u0275prov=R({token:e,providedIn:"root",factory:()=>function a4(e){return e===dM}(b(yr))?new l4(b($t),window):new d4})}}return e})();class l4{constructor(n,t){this.document=n,this.window=t,this.offset=()=>[0,0]}setOffset(n){this.offset=Array.isArray(n)?()=>n:n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){const t=function u4(e,n){const t=e.getElementById(n)||e.getElementsByName(n)[0];if(t)return t;if("function"==typeof e.createTreeWalker&&e.body&&"function"==typeof e.body.attachShadow){const r=e.createTreeWalker(e.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(n)||i.querySelector(`[name="${n}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,n);t&&(this.scrollToElement(t),t.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){const t=n.getBoundingClientRect(),r=t.left+this.window.pageXOffset,o=t.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}}class d4{setOffset(n){}getScrollPosition(){return[0,0]}scrollToPosition(n){}scrollToAnchor(n){}setHistoryScrollRestoration(n){}}class hM{}class j4 extends Ux{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class Ap extends j4{static makeCurrent(){!function jx(e){z0??=e}(new Ap)}onAndCancel(n,t,r){return n.addEventListener(t,r),()=>{n.removeEventListener(t,r)}}dispatchEvent(n,t){n.dispatchEvent(t)}remove(n){n.parentNode&&n.parentNode.removeChild(n)}createElement(n,t){return(t=t||this.getDefaultDocument()).createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,t){return"window"===t?window:"document"===t?n:"body"===t?n.body:null}getBaseHref(n){const t=function U4(){return da=da||document.querySelector("base"),da?da.getAttribute("href"):null}();return null==t?null:function $4(e){return new URL(e,document.baseURI).pathname}(t)}resetBaseElement(){da=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return oM(document.cookie,n)}}let da=null,H4=(()=>{class e{build(){return new XMLHttpRequest}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac})}}return e})();const Np=new N("");let wM=(()=>{class e{constructor(t,r){this._zone=r,this._eventNameToPlugin=new Map,t.forEach(o=>{o.manager=this}),this._plugins=t.slice().reverse()}addEventListener(t,r,o){return this._findPluginFor(r).addEventListener(t,r,o)}getZone(){return this._zone}_findPluginFor(t){let r=this._eventNameToPlugin.get(t);if(r)return r;if(r=this._plugins.find(i=>i.supports(t)),!r)throw new I(5101,!1);return this._eventNameToPlugin.set(t,r),r}static{this.\u0275fac=function(r){return new(r||e)(k(Np),k(fe))}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac})}}return e})();class MM{constructor(n){this._doc=n}}const Rp="ng-app-id";let EM=(()=>{class e{constructor(t,r,o,i={}){this.doc=t,this.appId=r,this.nonce=o,this.platformId=i,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=fM(i),this.resetHostNodes()}addStyles(t){for(const r of t)1===this.changeUsageCount(r,1)&&this.onStyleAdded(r)}removeStyles(t){for(const r of t)this.changeUsageCount(r,-1)<=0&&this.onStyleRemoved(r)}ngOnDestroy(){const t=this.styleNodesInDOM;t&&(t.forEach(r=>r.remove()),t.clear());for(const r of this.getAllStyles())this.onStyleRemoved(r);this.resetHostNodes()}addHost(t){this.hostNodes.add(t);for(const r of this.getAllStyles())this.addStyleToHost(t,r)}removeHost(t){this.hostNodes.delete(t)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(t){for(const r of this.hostNodes)this.addStyleToHost(r,t)}onStyleRemoved(t){const r=this.styleRef;r.get(t)?.elements?.forEach(o=>o.remove()),r.delete(t)}collectServerRenderedStyles(){const t=this.doc.head?.querySelectorAll(`style[${Rp}="${this.appId}"]`);if(t?.length){const r=new Map;return t.forEach(o=>{null!=o.textContent&&r.set(o.textContent,o)}),r}return null}changeUsageCount(t,r){const o=this.styleRef;if(o.has(t)){const i=o.get(t);return i.usage+=r,i.usage}return o.set(t,{usage:r,elements:[]}),r}getStyleElement(t,r){const o=this.styleNodesInDOM,i=o?.get(r);if(i?.parentNode===t)return o.delete(r),i.removeAttribute(Rp),i;{const s=this.doc.createElement("style");return this.nonce&&s.setAttribute("nonce",this.nonce),s.textContent=r,this.platformIsServer&&s.setAttribute(Rp,this.appId),t.appendChild(s),s}}addStyleToHost(t,r){const o=this.getStyleElement(t,r),i=this.styleRef,s=i.get(r)?.elements;s?s.push(o):i.set(r,{elements:[o],usage:1})}resetHostNodes(){const t=this.hostNodes;t.clear(),t.add(this.doc.head)}static{this.\u0275fac=function(r){return new(r||e)(k($t),k(Mc),k(ay,8),k(yr))}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac})}}return e})();const kp={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/"},Op=/%COMP%/g,W4=new N("",{providedIn:"root",factory:()=>!0});function IM(e,n){return n.map(t=>t.replace(Op,e))}let SM=(()=>{class e{constructor(t,r,o,i,s,a,c,l=null){this.eventManager=t,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=l,this.rendererByCompId=new Map,this.platformIsServer=fM(a),this.defaultRenderer=new Pp(t,s,c,this.platformIsServer)}createRenderer(t,r){if(!t||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===en.ShadowDom&&(r={...r,encapsulation:en.Emulated});const o=this.getOrCreateRenderer(t,r);return o instanceof AM?o.applyToHost(t):o instanceof xp&&o.applyStyles(),o}getOrCreateRenderer(t,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,c=this.eventManager,l=this.sharedStylesHost,u=this.removeStylesOnCompDestroy,d=this.platformIsServer;switch(r.encapsulation){case en.Emulated:i=new AM(c,l,r,this.appId,u,s,a,d);break;case en.ShadowDom:return new X4(c,l,t,r,s,a,this.nonce,d);default:i=new xp(c,l,r,u,s,a,d)}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}static{this.\u0275fac=function(r){return new(r||e)(k(wM),k(EM),k(Mc),k(W4),k($t),k(yr),k(fe),k(ay))}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac})}}return e})();class Pp{constructor(n,t,r,o){this.eventManager=n,this.doc=t,this.ngZone=r,this.platformIsServer=o,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(n,t){return t?this.doc.createElementNS(kp[t]||t,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,t){(TM(n)?n.content:n).appendChild(t)}insertBefore(n,t,r){n&&(TM(n)?n.content:n).insertBefore(t,r)}removeChild(n,t){n&&n.removeChild(t)}selectRootElement(n,t){let r="string"==typeof n?this.doc.querySelector(n):n;if(!r)throw new I(-5104,!1);return t||(r.textContent=""),r}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,t,r,o){if(o){t=o+":"+t;const i=kp[o];i?n.setAttributeNS(i,t,r):n.setAttribute(t,r)}else n.setAttribute(t,r)}removeAttribute(n,t,r){if(r){const o=kp[r];o?n.removeAttributeNS(o,t):n.removeAttribute(`${r}:${t}`)}else n.removeAttribute(t)}addClass(n,t){n.classList.add(t)}removeClass(n,t){n.classList.remove(t)}setStyle(n,t,r,o){o&(_r.DashCase|_r.Important)?n.style.setProperty(t,r,o&_r.Important?"important":""):n.style[t]=r}removeStyle(n,t,r){r&_r.DashCase?n.style.removeProperty(t):n.style[t]=""}setProperty(n,t,r){null!=n&&(n[t]=r)}setValue(n,t){n.nodeValue=t}listen(n,t,r){if("string"==typeof n&&!(n=Tr().getGlobalEventTarget(this.doc,n)))throw new Error(`Unsupported event target ${n} for event ${t}`);return this.eventManager.addEventListener(n,t,this.decoratePreventDefault(r))}decoratePreventDefault(n){return t=>{if("__ngUnwrap__"===t)return n;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>n(t)):n(t))&&t.preventDefault()}}}function TM(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class X4 extends Pp{constructor(n,t,r,o,i,s,a,c){super(n,i,s,c),this.sharedStylesHost=t,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const l=IM(o.id,o.styles);for(const u of l){const d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=u,this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,t){return super.appendChild(this.nodeOrShadowRoot(n),t)}insertBefore(n,t,r){return super.insertBefore(this.nodeOrShadowRoot(n),t,r)}removeChild(n,t){return super.removeChild(this.nodeOrShadowRoot(n),t)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class xp extends Pp{constructor(n,t,r,o,i,s,a,c){super(n,i,s,a),this.sharedStylesHost=t,this.removeStylesOnCompDestroy=o,this.styles=c?IM(c,r.styles):r.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class AM extends xp{constructor(n,t,r,o,i,s,a,c){const l=o+"-"+r.id;super(n,t,r,i,s,a,c,l),this.contentAttr=function Z4(e){return"_ngcontent-%COMP%".replace(Op,e)}(l),this.hostAttr=function Q4(e){return"_nghost-%COMP%".replace(Op,e)}(l)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,t){const r=super.createElement(n,t);return super.setAttribute(r,this.contentAttr,""),r}}let K4=(()=>{class e extends MM{constructor(t){super(t)}supports(t){return!0}addEventListener(t,r,o){return t.addEventListener(r,o,!1),()=>this.removeEventListener(t,r,o)}removeEventListener(t,r,o){return t.removeEventListener(r,o)}static{this.\u0275fac=function(r){return new(r||e)(k($t))}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac})}}return e})();const NM=["alt","control","meta","shift"],J4={"\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"},eL={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let tL=(()=>{class e extends MM{constructor(t){super(t)}supports(t){return null!=e.parseEventName(t)}addEventListener(t,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Tr().onAndCancel(t,i.domEventName,s))}static parseEventName(t){const r=t.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),NM.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(t,r){let o=J4[t.key]||t.key,i="";return r.indexOf("code.")>-1&&(o=t.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),NM.forEach(s=>{s!==o&&(0,eL[s])(t)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(t,r,o){return i=>{e.matchEventFullKeyCode(i,t)&&o.runGuarded(()=>r(i))}}static _normalizeKey(t){return"esc"===t?"escape":t}static{this.\u0275fac=function(r){return new(r||e)(k($t))}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac})}}return e})();const iL=l0(nx,"browser",[{provide:yr,useValue:dM},{provide:sy,useValue:function nL(){Ap.makeCurrent()},multi:!0},{provide:$t,useFactory:function oL(){return function BT(e){Yd=e}(document),document},deps:[]}]),sL=new N(""),OM=[{provide:Ml,useClass:class B4{addToWindow(n){de.getAngularTestability=(r,o=!0)=>{const i=n.findTestabilityInTree(r,o);if(null==i)throw new I(5103,!1);return i},de.getAllAngularTestabilities=()=>n.getAllTestabilities(),de.getAllAngularRootElements=()=>n.getAllRootElements(),de.frameworkStabilizers||(de.frameworkStabilizers=[]),de.frameworkStabilizers.push(r=>{const o=de.getAllAngularTestabilities();let i=o.length;const s=function(){i--,0==i&&r()};o.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(n,t,r){return null==t?null:n.getTestability(t)??(r?Tr().isShadowRoot(t)?this.findTestabilityInTree(n,t.host,!0):this.findTestabilityInTree(n,t.parentElement,!0):null)}},deps:[]},{provide:Xw,useClass:Zh,deps:[fe,Qh,Ml]},{provide:Zh,useClass:Zh,deps:[fe,Qh,Ml]}],PM=[{provide:fd,useValue:"root"},{provide:Nn,useFactory:function rL(){return new Nn},deps:[]},{provide:Np,useClass:K4,multi:!0,deps:[$t,fe,yr]},{provide:Np,useClass:tL,multi:!0,deps:[$t]},SM,EM,wM,{provide:SC,useExisting:SM},{provide:hM,useClass:H4,deps:[]},[]];let aL=(()=>{class e{constructor(t){}static withServerTransition(t){return{ngModule:e,providers:[{provide:Mc,useValue:t.appId}]}}static{this.\u0275fac=function(r){return new(r||e)(k(sL,12))}}static{this.\u0275mod=wn({type:e})}static{this.\u0275inj=Jt({providers:[...PM,...OM],imports:[r4,rx]})}}return e})(),cL=(()=>{class e{constructor(t){this._doc=t}getTitle(){return this._doc.title}setTitle(t){this._doc.title=t||""}static{this.\u0275fac=function(r){return new(r||e)(k($t))}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function Rr(e){return this instanceof Rr?(this.v=e,this):new Rr(e)}function $M(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=function jp(e){var n="function"==typeof Symbol&&Symbol.iterator,t=n&&e[n],r=0;if(t)return t.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(i){t[i]=e[i]&&function(s){return new Promise(function(a,c){!function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}(a,c,(s=e[i](s)).done,s.value)})}}}"function"==typeof SuppressedError&&SuppressedError;const BM=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function HM(e){return be(e?.then)}function zM(e){return be(e[Hu])}function GM(e){return Symbol.asyncIterator&&be(e?.[Symbol.asyncIterator])}function qM(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 WM=function VL(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function ZM(e){return be(e?.[WM])}function QM(e){return function UM(e,n,t){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=t.apply(e,n||[]),i=[];return o=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",function s(h){return function(p){return Promise.resolve(p).then(h,d)}}),o[Symbol.asyncIterator]=function(){return this},o;function a(h,p){r[h]&&(o[h]=function(v){return new Promise(function(_,D){i.push([h,v,_,D])>1||c(h,v)})},p&&(o[h]=p(o[h])))}function c(h,p){try{!function l(h){h.value instanceof Rr?Promise.resolve(h.value.v).then(u,d):f(i[0][2],h)}(r[h](p))}catch(v){f(i[0][3],v)}}function u(h){c("next",h)}function d(h){c("throw",h)}function f(h,p){h(p),i.shift(),i.length&&c(i[0][0],i[0][1])}}(this,arguments,function*(){const t=e.getReader();try{for(;;){const{value:r,done:o}=yield Rr(t.read());if(o)return yield Rr(void 0);yield yield Rr(r)}}finally{t.releaseLock()}})}function YM(e){return be(e?.getReader)}function Vn(e){if(e instanceof He)return e;if(null!=e){if(zM(e))return function jL(e){return new He(n=>{const t=e[Hu]();if(be(t.subscribe))return t.subscribe(n);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(BM(e))return function UL(e){return new He(n=>{for(let t=0;t{e.then(t=>{n.closed||(n.next(t),n.complete())},t=>n.error(t)).then(null,lm)})}(e);if(GM(e))return XM(e);if(ZM(e))return function BL(e){return new He(n=>{for(const t of e)if(n.next(t),n.closed)return;n.complete()})}(e);if(YM(e))return function HL(e){return XM(QM(e))}(e)}throw qM(e)}function XM(e){return new He(n=>{(function zL(e,n){var t,r,o,i;return function VM(e,n,t,r){return new(t||(t=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(d){s(d)}}function c(u){try{l(r.throw(u))}catch(d){s(d)}}function l(u){u.done?i(u.value):function o(i){return i instanceof t?i:new t(function(s){s(i)})}(u.value).then(a,c)}l((r=r.apply(e,n||[])).next())})}(this,void 0,void 0,function*(){try{for(t=$M(e);!(r=yield t.next()).done;)if(n.next(r.value),n.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=t.return)&&(yield i.call(t))}finally{if(o)throw o.error}}n.complete()})})(e,n).catch(t=>n.error(t))})}function ar(e,n,t,r=0,o=!1){const i=n.schedule(function(){t(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function KM(e,n=0){return ot((t,r)=>{t.subscribe(We(r,o=>ar(r,e,()=>r.next(o),n),()=>ar(r,e,()=>r.complete(),n),o=>ar(r,e,()=>r.error(o),n)))})}function JM(e,n=0){return ot((t,r)=>{r.add(e.schedule(()=>t.subscribe(r),n))})}function eE(e,n){if(!e)throw new Error("Iterable cannot be null");return new He(t=>{ar(t,n,()=>{const r=e[Symbol.asyncIterator]();ar(t,n,()=>{r.next().then(o=>{o.done?t.complete():t.next(o.value)})},0,!0)})})}function et(e,n){return n?function YL(e,n){if(null!=e){if(zM(e))return function GL(e,n){return Vn(e).pipe(JM(n),KM(n))}(e,n);if(BM(e))return function WL(e,n){return new He(t=>{let r=0;return n.schedule(function(){r===e.length?t.complete():(t.next(e[r++]),t.closed||this.schedule())})})}(e,n);if(HM(e))return function qL(e,n){return Vn(e).pipe(JM(n),KM(n))}(e,n);if(GM(e))return eE(e,n);if(ZM(e))return function ZL(e,n){return new He(t=>{let r;return ar(t,n,()=>{r=e[WM](),ar(t,n,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void t.error(s)}i?t.complete():t.next(o)},0,!0)}),()=>be(r?.return)&&r.return()})}(e,n);if(YM(e))return function QL(e,n){return eE(QM(e),n)}(e,n)}throw qM(e)}(e,n):Vn(e)}const{isArray:XL}=Array,{getPrototypeOf:KL,prototype:JL,keys:e5}=Object;function tE(e){if(1===e.length){const n=e[0];if(XL(n))return{args:n,keys:null};if(function t5(e){return e&&"object"==typeof e&&KL(e)===JL}(n)){const t=e5(n);return{args:t.map(r=>n[r]),keys:t}}}return{args:e,keys:null}}function $p(e){return e[e.length-1]}function nE(e){return be($p(e))?e.pop():void 0}function Zl(e){return function n5(e){return e&&be(e.schedule)}($p(e))?e.pop():void 0}const{isArray:r5}=Array;function rE(e){return ie(n=>function o5(e,n){return r5(n)?e(...n):e(n)}(e,n))}function oE(e,n){return e.reduce((t,r,o)=>(t[r]=n[o],t),{})}let iE=(()=>{class e{constructor(t,r){this._renderer=t,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(t,r){this._renderer.setProperty(this._elementRef.nativeElement,t,r)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}static{this.\u0275fac=function(r){return new(r||e)(E(nr),E(Vt))}}static{this.\u0275dir=B({type:e})}}return e})(),fo=(()=>{class e extends iE{static{this.\u0275fac=(()=>{let t;return function(o){return(t||(t=nt(e)))(o||e)}})()}static{this.\u0275dir=B({type:e,features:[ge]})}}return e})();const jn=new N(""),s5={provide:jn,useExisting:Ce(()=>ha),multi:!0};let ha=(()=>{class e extends fo{writeValue(t){this.setProperty("checked",t)}static{this.\u0275fac=(()=>{let t;return function(o){return(t||(t=nt(e)))(o||e)}})()}static{this.\u0275dir=B({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(r,o){1&r&&A("change",function(s){return o.onChange(s.target.checked)})("blur",function(){return o.onTouched()})},features:[Te([s5]),ge]})}}return e})();const a5={provide:jn,useExisting:Ce(()=>Et),multi:!0},l5=new N("");let Et=(()=>{class e extends iE{constructor(t,r,o){super(t,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function c5(){const e=Tr()?Tr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(t){this.setProperty("value",t??"")}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}static{this.\u0275fac=function(r){return new(r||e)(E(nr),E(Vt),E(l5,8))}}static{this.\u0275dir=B({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(r,o){1&r&&A("input",function(s){return o._handleInput(s.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(s){return o._compositionEnd(s.target.value)})},features:[Te([a5]),ge]})}}return e})();const gt=new N(""),Or=new N("");function gE(e){return null!=e}function mE(e){return oa(e)?et(e):e}function vE(e){let n={};return e.forEach(t=>{n=null!=t?{...n,...t}:n}),0===Object.keys(n).length?null:n}function yE(e,n){return n.map(t=>t(e))}function CE(e){return e.map(n=>function d5(e){return!e.validate}(n)?n:t=>n.validate(t))}function Bp(e){return null!=e?function _E(e){if(!e)return null;const n=e.filter(gE);return 0==n.length?null:function(t){return vE(yE(t,n))}}(CE(e)):null}function Hp(e){return null!=e?function DE(e){if(!e)return null;const n=e.filter(gE);return 0==n.length?null:function(t){return function i5(...e){const n=nE(e),{args:t,keys:r}=tE(e),o=new He(i=>{const{length:s}=t;if(!s)return void i.complete();const a=new Array(s);let c=s,l=s;for(let u=0;u{d||(d=!0,l--),a[u]=f},()=>c--,void 0,()=>{(!c||!d)&&(l||i.next(r?oE(r,a):a),i.complete())}))}});return n?o.pipe(rE(n)):o}(yE(t,n).map(mE)).pipe(ie(vE))}}(CE(e)):null}function wE(e,n){return null===e?[n]:Array.isArray(e)?[...e,n]:[e,n]}function zp(e){return e?Array.isArray(e)?e:[e]:[]}function Yl(e,n){return Array.isArray(e)?e.includes(n):e===n}function bE(e,n){const t=zp(n);return zp(e).forEach(o=>{Yl(t,o)||t.push(o)}),t}function IE(e,n){return zp(n).filter(t=>!Yl(e,t))}class SE{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Bp(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Hp(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,t){return!!this.control&&this.control.hasError(n,t)}getError(n,t){return this.control?this.control.getError(n,t):null}}class bt extends SE{get formDirective(){return null}get path(){return null}}class Pr extends SE{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class TE{constructor(n){this._cd=n}get isTouched(){return!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return!!this._cd?.submitted}}let Ht=(()=>{class e extends TE{constructor(t){super(t)}static{this.\u0275fac=function(r){return new(r||e)(E(Pr,2))}}static{this.\u0275dir=B({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(r,o){2&r&&dl("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},features:[ge]})}}return e})(),AE=(()=>{class e extends TE{constructor(t){super(t)}static{this.\u0275fac=function(r){return new(r||e)(E(bt,10))}}static{this.\u0275dir=B({type:e,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(r,o){2&r&&dl("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},features:[ge]})}}return e})();const pa="VALID",Kl="INVALID",Ei="PENDING",ga="DISABLED";function Wp(e){return(Jl(e)?e.validators:e)||null}function Zp(e,n){return(Jl(n)?n.asyncValidators:e)||null}function Jl(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class Qp{constructor(n,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(n),this._assignAsyncValidators(t)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get valid(){return this.status===pa}get invalid(){return this.status===Kl}get pending(){return this.status==Ei}get disabled(){return this.status===ga}get enabled(){return this.status!==ga}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(bE(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(bE(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(IE(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(IE(n,this._rawAsyncValidators))}hasValidator(n){return Yl(this._rawValidators,n)}hasAsyncValidator(n){return Yl(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){this.touched=!0,this._parent&&!n.onlySelf&&this._parent.markAsTouched(n)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(n=>n.markAllAsTouched())}markAsUntouched(n={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}markAsDirty(n={}){this.pristine=!1,this._parent&&!n.onlySelf&&this._parent.markAsDirty(n)}markAsPristine(n={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}markAsPending(n={}){this.status=Ei,!1!==n.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!n.onlySelf&&this._parent.markAsPending(n)}disable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=ga,this.errors=null,this._forEachChild(r=>{r.disable({...n,onlySelf:!0})}),this._updateValue(),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!0))}enable(n={}){const t=this._parentMarkedDirty(n.onlySelf);this.status=pa,this._forEachChild(r=>{r.enable({...n,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors({...n,skipPristineCheck:t}),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(n){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===pa||this.status===Ei)&&this._runAsyncValidator(n.emitEvent)),!1!==n.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(n)}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?ga:pa}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n){if(this.asyncValidator){this.status=Ei,this._hasOwnPendingAsyncValidator=!0;const t=mE(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:n})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(n,t={}){this.errors=n,this._updateControlsErrors(!1!==t.emitEvent)}get(n){let t=n;return null==t||(Array.isArray(t)||(t=t.split(".")),0===t.length)?null:t.reduce((r,o)=>r&&r._find(o),this)}getError(n,t){const r=t?this.get(t):this;return r&&r.errors?r.errors[n]:null}hasError(n,t){return!!this.getError(n,t)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(n)}_initObservables(){this.valueChanges=new ke,this.statusChanges=new ke}_calculateStatus(){return this._allControlsDisabled()?ga:this.errors?Kl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Ei)?Ei:this._anyControlsHaveStatus(Kl)?Kl:pa}_anyControlsHaveStatus(n){return this._anyControls(t=>t.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n={}){this.pristine=!this._anyControlsDirty(),this._parent&&!n.onlySelf&&this._parent._updatePristine(n)}_updateTouched(n={}){this.touched=this._anyControlsTouched(),this._parent&&!n.onlySelf&&this._parent._updateTouched(n)}_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Jl(n)&&null!=n.updateOn&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){return!n&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=function g5(e){return Array.isArray(e)?Bp(e):e||null}(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=function m5(e){return Array.isArray(e)?Hp(e):e||null}(this._rawAsyncValidators)}}class Yp extends Qp{constructor(n,t,r){super(Wp(t),Zp(r,t)),this.controls=n,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(n,t){return this.controls[n]?this.controls[n]:(this.controls[n]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(n,t,r={}){this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(n,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(n,t,r={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],t&&this.registerControl(n,t),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,t={}){(function kE(e,n,t){e._forEachChild((r,o)=>{if(void 0===t[o])throw new I(1002,"")})})(this,0,n),Object.keys(n).forEach(r=>{(function RE(e,n,t){const r=e.controls;if(!(n?Object.keys(r):r).length)throw new I(1e3,"");if(!r[t])throw new I(1001,"")})(this,!0,r),this.controls[r].setValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(n,t={}){null!=n&&(Object.keys(n).forEach(r=>{const o=this.controls[r];o&&o.patchValue(n[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(n={},t={}){this._forEachChild((r,o)=>{r.reset(n?n[o]:null,{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(n,t,r)=>(n[r]=t.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(t,r)=>!!r._syncPendingControls()||t);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(t=>{const r=this.controls[t];r&&n(r,t)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(const[t,r]of Object.entries(this.controls))if(this.contains(t)&&n(r))return!0;return!1}_reduceValue(){return this._reduceChildren({},(t,r,o)=>((r.enabled||this.disabled)&&(t[o]=r.value),t))}_reduceChildren(n,t){let r=n;return this._forEachChild((o,i)=>{r=t(r,o,i)}),r}_allControlsDisabled(){for(const n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}}const bi=new N("CallSetDisabledState",{providedIn:"root",factory:()=>eu}),eu="always";function ma(e,n,t=eu){Xp(e,n),n.valueAccessor.writeValue(e.value),(e.disabled||"always"===t)&&n.valueAccessor.setDisabledState?.(e.disabled),function C5(e,n){n.valueAccessor.registerOnChange(t=>{e._pendingValue=t,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&OE(e,n)})}(e,n),function D5(e,n){const t=(r,o)=>{n.valueAccessor.writeValue(r),o&&n.viewToModelUpdate(r)};e.registerOnChange(t),n._registerOnDestroy(()=>{e._unregisterOnChange(t)})}(e,n),function _5(e,n){n.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&OE(e,n),"submit"!==e.updateOn&&e.markAsTouched()})}(e,n),function y5(e,n){if(n.valueAccessor.setDisabledState){const t=r=>{n.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(t),n._registerOnDestroy(()=>{e._unregisterOnDisabledChange(t)})}}(e,n)}function ru(e,n){e.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(n)})}function Xp(e,n){const t=function ME(e){return e._rawValidators}(e);null!==n.validator?e.setValidators(wE(t,n.validator)):"function"==typeof t&&e.setValidators([t]);const r=function EE(e){return e._rawAsyncValidators}(e);null!==n.asyncValidator?e.setAsyncValidators(wE(r,n.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();ru(n._rawValidators,o),ru(n._rawAsyncValidators,o)}function OE(e,n){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}const I5={provide:bt,useExisting:Ce(()=>iu)},va=Promise.resolve();let iu=(()=>{class e extends bt{constructor(t,r,o){super(),this.callSetDisabledState=o,this.submitted=!1,this._directives=new Set,this.ngSubmit=new ke,this.form=new Yp({},Bp(t),Hp(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){va.then(()=>{const r=this._findContainer(t.path);t.control=r.registerControl(t.name,t.control),ma(t.control,t,this.callSetDisabledState),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){va.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){va.then(()=>{const r=this._findContainer(t.path),o=new Yp({});(function PE(e,n){Xp(e,n)})(o,t),r.registerControl(t.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){va.then(()=>{const r=this._findContainer(t.path);r&&r.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,r){va.then(()=>{this.form.get(t.path).setValue(r)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,function xE(e,n){e._syncPendingControls(),n.forEach(t=>{const r=t.control;"submit"===r.updateOn&&r._pendingChange&&(t.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(t),"dialog"===t?.target?.method}onReset(){this.resetForm()}resetForm(t=void 0){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}static{this.\u0275fac=function(r){return new(r||e)(E(gt,10),E(Or,10),E(bi,8))}}static{this.\u0275dir=B({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(r,o){1&r&&A("submit",function(s){return o.onSubmit(s)})("reset",function(){return o.onReset()})},inputs:{options:[Ie.None,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Te([I5]),ge]})}}return e})();function FE(e,n){const t=e.indexOf(n);t>-1&&e.splice(t,1)}function LE(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}const VE=class extends Qp{constructor(n=null,t,r){super(Wp(t),Zp(r,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(n),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Jl(t)&&(t.nonNullable||t.initialValueIsDefault)&&(this.defaultValue=LE(n)?n.value:n)}setValue(n,t={}){this.value=this._pendingValue=n,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(n,t={}){this.setValue(n,t)}reset(n=this.defaultValue,t={}){this._applyFormState(n),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){FE(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){FE(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(n){LE(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}},A5={provide:Pr,useExisting:Ce(()=>kt)},$E=Promise.resolve();let kt=(()=>{class e extends Pr{constructor(t,r,o,i,s,a){super(),this._changeDetectorRef=s,this.callSetDisabledState=a,this.control=new VE,this._registered=!1,this.name="",this.update=new ke,this._parent=t,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function eg(e,n){if(!n)return null;let t,r,o;return Array.isArray(n),n.forEach(i=>{i.constructor===Et?t=i:function E5(e){return Object.getPrototypeOf(e.constructor)===fo}(i)?r=i:o=i}),o||r||t||null}(0,i)}ngOnChanges(t){if(this._checkForErrors(),!this._registered||"name"in t){if(this._registered&&(this._checkName(),this.formDirective)){const r=t.name.previousValue;this.formDirective.removeControl({name:r,path:this._getPath(r)})}this._setUpControl()}"isDisabled"in t&&this._updateDisabled(t),function Jp(e,n){if(!e.hasOwnProperty("model"))return!1;const t=e.model;return!!t.isFirstChange()||!Object.is(n,t.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ma(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(t){$E.then(()=>{this.control.setValue(t,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(t){const r=t.isDisabled.currentValue,o=0!==r&&Di(r);$E.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(t){return this._parent?function tu(e,n){return[...n.path,e]}(t,this._parent):[t]}static{this.\u0275fac=function(r){return new(r||e)(E(bt,9),E(gt,10),E(Or,10),E(jn,10),E(ia,8),E(bi,8))}}static{this.\u0275dir=B({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[Ie.None,"disabled","isDisabled"],model:[Ie.None,"ngModel","model"],options:[Ie.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Te([A5]),ge,Zt]})}}return e})(),BE=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=B({type:e,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]})}}return e})(),J5=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=wn({type:e})}static{this.\u0275inj=Jt({})}}return e})(),t6=(()=>{class e{static withConfig(t){return{ngModule:e,providers:[{provide:bi,useValue:t.callSetDisabledState??eu}]}}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=wn({type:e})}static{this.\u0275inj=Jt({imports:[J5]})}}return e})();function $(...e){return et(e,Zl(e))}function mt(e,n,t=1/0){return be(n)?mt((r,o)=>ie((i,s)=>n(r,i,o,s))(Vn(e(r,o))),t):("number"==typeof n&&(t=n),ot((r,o)=>function n6(e,n,t,r,o,i,s,a){const c=[];let l=0,u=0,d=!1;const f=()=>{d&&!c.length&&!l&&n.complete()},h=v=>l{i&&n.next(v),l++;let _=!1;Vn(t(v,u++)).subscribe(We(n,D=>{o?.(D),i?h(D):n.next(D)},()=>{_=!0},void 0,()=>{if(_)try{for(l--;c.length&&lp(D)):p(D)}f()}catch(D){n.error(D)}}))};return e.subscribe(We(n,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,t)))}function Ii(e,n){return be(n)?mt(e,n,1):mt(e,1)}function cr(e,n){return ot((t,r)=>{let o=0;t.subscribe(We(r,i=>e.call(n,i,o++)&&r.next(i)))})}function ya(e){return ot((n,t)=>{try{n.subscribe(t)}finally{t.add(e)}})}function gn(e,n){return ot((t,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();t.subscribe(We(r,c=>{o?.unsubscribe();let l=0;const u=i++;Vn(e(c,u)).subscribe(o=We(r,d=>r.next(n?n(c,d,u,l++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}class su{}class au{}class Be{constructor(n){this.normalizedNames=new Map,this.lazyUpdate=null,n?"string"==typeof n?this.lazyInit=()=>{this.headers=new Map,n.split("\n").forEach(t=>{const r=t.indexOf(":");if(r>0){const o=t.slice(0,r),i=o.toLowerCase(),s=t.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((t,r)=>{this.setHeaderEntries(r,t)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([t,r])=>{this.setHeaderEntries(t,r)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();const t=this.headers.get(n.toLowerCase());return t&&t.length>0?t[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,t){return this.clone({name:n,value:t,op:"a"})}set(n,t){return this.clone({name:n,value:t,op:"s"})}delete(n,t){return this.clone({name:n,value:t,op:"d"})}maybeSetNormalizedName(n,t){this.normalizedNames.has(t)||this.normalizedNames.set(t,n)}init(){this.lazyInit&&(this.lazyInit instanceof Be?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(t=>{this.headers.set(t,n.headers.get(t)),this.normalizedNames.set(t,n.normalizedNames.get(t))})}clone(n){const t=new Be;return t.lazyInit=this.lazyInit&&this.lazyInit instanceof Be?this.lazyInit:this,t.lazyUpdate=(this.lazyUpdate||[]).concat([n]),t}applyUpdate(n){const t=n.name.toLowerCase();switch(n.op){case"a":case"s":let r=n.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(n.name,t);const o=("a"===n.op?this.headers.get(t):void 0)||[];o.push(...r),this.headers.set(t,o);break;case"d":const i=n.value;if(i){let s=this.headers.get(t);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(t),this.normalizedNames.delete(t)):this.headers.set(t,s)}else this.headers.delete(t),this.normalizedNames.delete(t)}}setHeaderEntries(n,t){const r=(Array.isArray(t)?t:[t]).map(i=>i.toString()),o=n.toLowerCase();this.headers.set(o,r),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(t=>n(this.normalizedNames.get(t),this.headers.get(t)))}}class r6{encodeKey(n){return ab(n)}encodeValue(n){return ab(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}}const i6=/%(\d[a-f0-9])/gi,s6={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function ab(e){return encodeURIComponent(e).replace(i6,(n,t)=>s6[t]??n)}function cu(e){return`${e}`}class xr{constructor(n={}){if(this.updates=null,this.cloneFrom=null,this.encoder=n.encoder||new r6,n.fromString){if(n.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function o6(e,n){const t=new Map;return e.length>0&&e.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,i)),n.decodeValue(o.slice(i+1))],c=t.get(s)||[];c.push(a),t.set(s,c)}),t}(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(t=>{const r=n.fromObject[t],o=Array.isArray(r)?r.map(cu):[cu(r)];this.map.set(t,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();const t=this.map.get(n);return t?t[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,t){return this.clone({param:n,value:t,op:"a"})}appendAll(n){const t=[];return Object.keys(n).forEach(r=>{const o=n[r];Array.isArray(o)?o.forEach(i=>{t.push({param:r,value:i,op:"a"})}):t.push({param:r,value:o,op:"a"})}),this.clone(t)}set(n,t){return this.clone({param:n,value:t,op:"s"})}delete(n,t){return this.clone({param:n,value:t,op:"d"})}toString(){return this.init(),this.keys().map(n=>{const t=this.encoder.encodeKey(n);return this.map.get(n).map(r=>t+"="+this.encoder.encodeValue(r)).join("&")}).filter(n=>""!==n).join("&")}clone(n){const t=new xr({encoder:this.encoder});return t.cloneFrom=this.cloneFrom||this,t.updates=(this.updates||[]).concat(n),t}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":const t=("a"===n.op?this.map.get(n.param):void 0)||[];t.push(cu(n.value)),this.map.set(n.param,t);break;case"d":if(void 0===n.value){this.map.delete(n.param);break}{let r=this.map.get(n.param)||[];const o=r.indexOf(cu(n.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(n.param,r):this.map.delete(n.param)}}}),this.cloneFrom=this.updates=null)}}class a6{constructor(){this.map=new Map}set(n,t){return this.map.set(n,t),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}}function cb(e){return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer}function lb(e){return typeof Blob<"u"&&e instanceof Blob}function ub(e){return typeof FormData<"u"&&e instanceof FormData}class Ca{constructor(n,t,r,o){let i;if(this.url=t,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=n.toUpperCase(),function c6(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.transferCache=i.transferCache),this.headers??=new Be,this.context??=new a6,this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=t;else{const a=t.indexOf("?");this.urlWithParams=t+(-1===a?"?":af.set(h,n.setHeaders[h]),l)),n.setParams&&(u=Object.keys(n.setParams).reduce((f,h)=>f.set(h,n.setParams[h]),u)),new Ca(t,r,s,{params:u,headers:l,context:d,reportProgress:c,responseType:o,withCredentials:a,transferCache:i})}}var Fr=function(e){return e[e.Sent=0]="Sent",e[e.UploadProgress=1]="UploadProgress",e[e.ResponseHeader=2]="ResponseHeader",e[e.DownloadProgress=3]="DownloadProgress",e[e.Response=4]="Response",e[e.User=5]="User",e}(Fr||{});class ag{constructor(n,t=_a.Ok,r="OK"){this.headers=n.headers||new Be,this.status=void 0!==n.status?n.status:t,this.statusText=n.statusText||r,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}}class lu extends ag{constructor(n={}){super(n),this.type=Fr.ResponseHeader}clone(n={}){return new lu({headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class po extends ag{constructor(n={}){super(n),this.type=Fr.Response,this.body=void 0!==n.body?n.body:null}clone(n={}){return new po({body:void 0!==n.body?n.body:this.body,headers:n.headers||this.headers,status:void 0!==n.status?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}}class Si extends ag{constructor(n){super(n,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${n.url||"(unknown url)"}`:`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}}var _a=function(e){return e[e.Continue=100]="Continue",e[e.SwitchingProtocols=101]="SwitchingProtocols",e[e.Processing=102]="Processing",e[e.EarlyHints=103]="EarlyHints",e[e.Ok=200]="Ok",e[e.Created=201]="Created",e[e.Accepted=202]="Accepted",e[e.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",e[e.NoContent=204]="NoContent",e[e.ResetContent=205]="ResetContent",e[e.PartialContent=206]="PartialContent",e[e.MultiStatus=207]="MultiStatus",e[e.AlreadyReported=208]="AlreadyReported",e[e.ImUsed=226]="ImUsed",e[e.MultipleChoices=300]="MultipleChoices",e[e.MovedPermanently=301]="MovedPermanently",e[e.Found=302]="Found",e[e.SeeOther=303]="SeeOther",e[e.NotModified=304]="NotModified",e[e.UseProxy=305]="UseProxy",e[e.Unused=306]="Unused",e[e.TemporaryRedirect=307]="TemporaryRedirect",e[e.PermanentRedirect=308]="PermanentRedirect",e[e.BadRequest=400]="BadRequest",e[e.Unauthorized=401]="Unauthorized",e[e.PaymentRequired=402]="PaymentRequired",e[e.Forbidden=403]="Forbidden",e[e.NotFound=404]="NotFound",e[e.MethodNotAllowed=405]="MethodNotAllowed",e[e.NotAcceptable=406]="NotAcceptable",e[e.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",e[e.RequestTimeout=408]="RequestTimeout",e[e.Conflict=409]="Conflict",e[e.Gone=410]="Gone",e[e.LengthRequired=411]="LengthRequired",e[e.PreconditionFailed=412]="PreconditionFailed",e[e.PayloadTooLarge=413]="PayloadTooLarge",e[e.UriTooLong=414]="UriTooLong",e[e.UnsupportedMediaType=415]="UnsupportedMediaType",e[e.RangeNotSatisfiable=416]="RangeNotSatisfiable",e[e.ExpectationFailed=417]="ExpectationFailed",e[e.ImATeapot=418]="ImATeapot",e[e.MisdirectedRequest=421]="MisdirectedRequest",e[e.UnprocessableEntity=422]="UnprocessableEntity",e[e.Locked=423]="Locked",e[e.FailedDependency=424]="FailedDependency",e[e.TooEarly=425]="TooEarly",e[e.UpgradeRequired=426]="UpgradeRequired",e[e.PreconditionRequired=428]="PreconditionRequired",e[e.TooManyRequests=429]="TooManyRequests",e[e.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",e[e.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",e[e.InternalServerError=500]="InternalServerError",e[e.NotImplemented=501]="NotImplemented",e[e.BadGateway=502]="BadGateway",e[e.ServiceUnavailable=503]="ServiceUnavailable",e[e.GatewayTimeout=504]="GatewayTimeout",e[e.HttpVersionNotSupported=505]="HttpVersionNotSupported",e[e.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",e[e.InsufficientStorage=507]="InsufficientStorage",e[e.LoopDetected=508]="LoopDetected",e[e.NotExtended=510]="NotExtended",e[e.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",e}(_a||{});function cg(e,n){return{body:n,headers:e.headers,context:e.context,observe:e.observe,params:e.params,reportProgress:e.reportProgress,responseType:e.responseType,withCredentials:e.withCredentials,transferCache:e.transferCache}}let lr=(()=>{class e{constructor(t){this.handler=t}request(t,r,o={}){let i;if(t instanceof Ca)i=t;else{let c,l;c=o.headers instanceof Be?o.headers:new Be(o.headers),o.params&&(l=o.params instanceof xr?o.params:new xr({fromObject:o.params})),i=new Ca(t,r,void 0!==o.body?o.body:null,{headers:c,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}const s=$(i).pipe(Ii(c=>this.handler.handle(c)));if(t instanceof Ca||"events"===o.observe)return s;const a=s.pipe(cr(c=>c instanceof po));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(ie(c=>{if(null!==c.body&&!(c.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return c.body}));case"blob":return a.pipe(ie(c=>{if(null!==c.body&&!(c.body instanceof Blob))throw new Error("Response is not a Blob.");return c.body}));case"text":return a.pipe(ie(c=>{if(null!==c.body&&"string"!=typeof c.body)throw new Error("Response is not a string.");return c.body}));default:return a.pipe(ie(c=>c.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(t,r={}){return this.request("DELETE",t,r)}get(t,r={}){return this.request("GET",t,r)}head(t,r={}){return this.request("HEAD",t,r)}jsonp(t,r){return this.request("JSONP",t,{params:(new xr).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,r={}){return this.request("OPTIONS",t,r)}patch(t,r,o={}){return this.request("PATCH",t,cg(o,r))}post(t,r,o={}){return this.request("POST",t,cg(o,r))}put(t,r,o={}){return this.request("PUT",t,cg(o,r))}static{this.\u0275fac=function(r){return new(r||e)(k(su))}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac})}}return e})();function fb(e,n){return n(e)}function p6(e,n){return(t,r)=>n.intercept(t,{handle:o=>e(o,r)})}const hb=new N(""),Da=new N(""),pb=new N(""),gb=new N("");function m6(){let e=null;return(n,t)=>{null===e&&(e=(b(hb,{optional:!0})??[]).reduceRight(p6,fb));const r=b(Mr),o=r.add();return e(n,t).pipe(ya(()=>r.remove(o)))}}let mb=(()=>{class e extends su{constructor(t,r){super(),this.backend=t,this.injector=r,this.chain=null,this.pendingTasks=b(Mr);const o=b(gb,{optional:!0});this.backend=o??t}handle(t){if(null===this.chain){const o=Array.from(new Set([...this.injector.get(Da),...this.injector.get(pb,[])]));this.chain=o.reduceRight((i,s)=>function g6(e,n,t){return(r,o)=>Mn(t,()=>n(r,i=>e(i,o)))}(i,s,this.injector),fb)}const r=this.pendingTasks.add();return this.chain(t,o=>this.backend.handle(o)).pipe(ya(()=>this.pendingTasks.remove(r)))}static{this.\u0275fac=function(r){return new(r||e)(k(au),k(vt))}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac})}}return e})();const D6=/^\)\]\}',?\n/;let yb=(()=>{class e{constructor(t){this.xhrFactory=t}handle(t){if("JSONP"===t.method)throw new I(-2800,!1);const r=this.xhrFactory;return(r.\u0275loadImpl?et(r.\u0275loadImpl()):$(null)).pipe(gn(()=>new He(i=>{const s=r.build();if(s.open(t.method,t.urlWithParams),t.withCredentials&&(s.withCredentials=!0),t.headers.forEach((v,_)=>s.setRequestHeader(v,_.join(","))),t.headers.has("Accept")||s.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){const v=t.detectContentTypeHeader();null!==v&&s.setRequestHeader("Content-Type",v)}if(t.responseType){const v=t.responseType.toLowerCase();s.responseType="json"!==v?v:"text"}const a=t.serializeBody();let c=null;const l=()=>{if(null!==c)return c;const v=s.statusText||"OK",_=new Be(s.getAllResponseHeaders()),D=function w6(e){return"responseURL"in e&&e.responseURL?e.responseURL:/^X-Request-URL:/m.test(e.getAllResponseHeaders())?e.getResponseHeader("X-Request-URL"):null}(s)||t.url;return c=new lu({headers:_,status:s.status,statusText:v,url:D}),c},u=()=>{let{headers:v,status:_,statusText:D,url:w}=l(),T=null;_!==_a.NoContent&&(T=typeof s.response>"u"?s.responseText:s.response),0===_&&(_=T?_a.Ok:0);let F=_>=200&&_<300;if("json"===t.responseType&&"string"==typeof T){const X=T;T=T.replace(D6,"");try{T=""!==T?JSON.parse(T):null}catch(ue){T=X,F&&(F=!1,T={error:ue,text:T})}}F?(i.next(new po({body:T,headers:v,status:_,statusText:D,url:w||void 0})),i.complete()):i.error(new Si({error:T,headers:v,status:_,statusText:D,url:w||void 0}))},d=v=>{const{url:_}=l(),D=new Si({error:v,status:s.status||0,statusText:s.statusText||"Unknown Error",url:_||void 0});i.error(D)};let f=!1;const h=v=>{f||(i.next(l()),f=!0);let _={type:Fr.DownloadProgress,loaded:v.loaded};v.lengthComputable&&(_.total=v.total),"text"===t.responseType&&s.responseText&&(_.partialText=s.responseText),i.next(_)},p=v=>{let _={type:Fr.UploadProgress,loaded:v.loaded};v.lengthComputable&&(_.total=v.total),i.next(_)};return s.addEventListener("load",u),s.addEventListener("error",d),s.addEventListener("timeout",d),s.addEventListener("abort",d),t.reportProgress&&(s.addEventListener("progress",h),null!==a&&s.upload&&s.upload.addEventListener("progress",p)),s.send(a),i.next({type:Fr.Sent}),()=>{s.removeEventListener("error",d),s.removeEventListener("abort",d),s.removeEventListener("load",u),s.removeEventListener("timeout",d),t.reportProgress&&(s.removeEventListener("progress",h),null!==a&&s.upload&&s.upload.removeEventListener("progress",p)),s.readyState!==s.DONE&&s.abort()}})))}static{this.\u0275fac=function(r){return new(r||e)(k(hM))}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac})}}return e})();const dg=new N(""),Cb=new N("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),_b=new N("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class Db{}let b6=(()=>{class e{constructor(t,r,o){this.doc=t,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=oM(t,this.cookieName),this.lastCookieString=t),this.lastToken}static{this.\u0275fac=function(r){return new(r||e)(k($t),k(yr),k(Cb))}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac})}}return e})();function I6(e,n){const t=e.url.toLowerCase();if(!b(dg)||"GET"===e.method||"HEAD"===e.method||t.startsWith("http://")||t.startsWith("https://"))return n(e);const r=b(Db).getToken(),o=b(_b);return null!=r&&!e.headers.has(o)&&(e=e.clone({headers:e.headers.set(o,r)})),n(e)}var Lr=function(e){return e[e.Interceptors=0]="Interceptors",e[e.LegacyInterceptors=1]="LegacyInterceptors",e[e.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",e[e.NoXsrfProtection=3]="NoXsrfProtection",e[e.JsonpSupport=4]="JsonpSupport",e[e.RequestsMadeViaParent=5]="RequestsMadeViaParent",e[e.Fetch=6]="Fetch",e}(Lr||{});function go(e,n){return{\u0275kind:e,\u0275providers:n}}function S6(...e){const n=[lr,yb,mb,{provide:su,useExisting:mb},{provide:au,useExisting:yb},{provide:Da,useValue:I6,multi:!0},{provide:dg,useValue:!0},{provide:Db,useClass:b6}];for(const t of e)n.push(...t.\u0275providers);return function Xi(e){return{\u0275providers:e}}(n)}const wb=new N("");let A6=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=wn({type:e})}static{this.\u0275inj=Jt({providers:[S6(go(Lr.LegacyInterceptors,[{provide:wb,useFactory:m6},{provide:Da,useExisting:wb,multi:!0}]))]})}}return e})();function W(e,n,t){const r=be(e)||n||t?{next:e,error:n,complete:t}:e;return r?ot((o,i)=>{var s;null===(s=r.subscribe)||void 0===s||s.call(r);let a=!0;o.subscribe(We(i,c=>{var l;null===(l=r.next)||void 0===l||l.call(r,c),i.next(c)},()=>{var c;a=!1,null===(c=r.complete)||void 0===c||c.call(r),i.complete()},c=>{var l;a=!1,null===(l=r.error)||void 0===l||l.call(r,c),i.error(c)},()=>{var c,l;a&&(null===(c=r.unsubscribe)||void 0===c||c.call(r)),null===(l=r.finalize)||void 0===l||l.call(r)}))}):Wr}function oe(e){return ot((n,t)=>{let i,r=null,o=!1;r=n.subscribe(We(t,void 0,void 0,s=>{i=Vn(e(s,oe(e)(n))),r?(r.unsubscribe(),r=null,i.subscribe(t)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(t))})}const Un_restServerUrl="https://tds.truyen.network";function Vr(e="operation",n,t){return r=>{throw n&&(t.trim().length>0?n.add(`${t}: ${e} failed. Response status = ${r.status} statusText = ${r.statusText}`):n.add(`${e} failed: response status = ${r.status} statusText = ${r.statusText}`)),0===r.status&&!1===r.ok?new Error("Could not reach API, check your internet connection."):new Error(`${e} failed: status = ${r.status}`,{cause:r})}}let ur=(()=>{class e{constructor(){this.messages=[],this.add("Angular version: "+JP.full)}add(t){this.messages.push((new Date).toLocaleTimeString()+") "+t)}clear(){this.messages=[]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();class mo{static{this.REST_URL=Un_restServerUrl+"/api/chat"}constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Be({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n){return Vr(n,this.appMessageService,this.constructor.name)}log(n){this.appMessageService.add(`${this.constructor.name}: ${n}`)}getChatMessages(){return this.http.get(mo.REST_URL,this.httpOptions).pipe(W(n=>this.log(`fetched ${n.length} messages`)),oe(this.handleError("getChatMessages")))}addChatMessage(n,t){return this.http.post(mo.REST_URL,{author:n,text:t},this.httpOptions).pipe(W(o=>this.log(`added message w/ id=${o.id}`)),oe(this.handleError("addChatMessage")))}static{this.\u0275fac=function(t){return new(t||mo)(k(lr),k(ur))}}static{this.\u0275prov=R({token:mo,factory:mo.\u0275fac,providedIn:"root"})}}const Ti="./ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789".split(""),fg=Array.from({length:64},(e,n)=>n),du=e=>Array(e).fill(-1),jr=[...du(46),0,1,...fg.slice(54,64),...du(7),...fg.slice(2,28),...du(6),...fg.slice(28,54),...du(5)],Nb=[608135816,2242054355,320440878,57701188,2752067618,698298832,137296536,3964562569,1160258022,953160567,3193202383,887688300,3232508343,3380367581,1065670069,3041331479,2450970073,2306472731],Rb=[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],kb=[1332899944,1700884034,1701343084,1684370003,1668446532,1869963892],hg=(e,n)=>{if(n<=0||n>e.length)throw Error(`Illegal len: ${n}`);let r,o,t=0;const i=[];for(;t>2&63]),r=(3&r)<<4,t>=n){i.push(Ti[63&r]);break}if(o=255&e[t++],r|=o>>4&15,i.push(Ti[63&r]),r=(15&o)<<2,t>=n){i.push(Ti[63&r]);break}o=255&e[t++],r|=o>>6&3,i.push(Ti[63&r]),i.push(Ti[63&o])}return i.join("")},fu="object"==typeof process&&"edge"===process.env.NEXT_RUNTIME?setTimeout:"function"==typeof setImmediate?setImmediate:"object"==typeof process&&"function"==typeof process.nextTick?process.nextTick:setTimeout,wa=(e,n,t,r)=>{let o,i=e[n],s=e[n+1];return i^=t[0],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[1],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[2],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[3],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[4],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[5],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[6],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[7],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[8],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[9],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[10],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[11],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[12],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[13],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[14],o=r[i>>>24],o+=r[256|i>>16&255],o^=r[512|i>>8&255],o+=r[768|255&i],s^=o^t[15],o=r[s>>>24],o+=r[256|s>>16&255],o^=r[512|s>>8&255],o+=r[768|255&s],i^=o^t[16],e[n]=s^t[17],e[n+1]=i,e},Ai=(e,n)=>{let t=0;for(let r=0;r<4;++r)t=t<<8|255&e[n],n=(n+1)%e.length;return{key:t,offp:n}},Ob=(e,n,t)=>{const r=n.length,o=t.length;let a,i=0,s=[0,0];for(let c=0;c{const i=kb.slice(),s=i.length;if(t<4||t>31){const f=new Error(`Illegal number of rounds (4-31): ${t}`);if(!1===r)return Promise.reject(f);throw f}if(16!==n.length){const f=new Error(`Illegal salt length: ${n.length} != 16`);if(!1===r)return Promise.reject(f);throw f}t=1<>>0;let a,c,u,l=0;Int32Array?(a=new Int32Array(Nb),c=new Int32Array(Rb)):(a=Nb.slice(),c=Rb.slice()),((e,n,t,r)=>{const o=t.length,i=r.length;let c,s=0,a=[0,0];for(let l=0;l{if(o&&o(l/t),!(l>1;u++)wa(i,u<<1,a,c);const f=[];for(l=0;l>24&255)>>>0),f.push((i[l]>>16&255)>>>0),f.push((i[l]>>8&255)>>>0),f.push((255&i[l])>>>0);return!1===r?Promise.resolve(f):f}{const f=Date.now();for(;l100)););}if(!1===r)return new Promise(f=>fu(()=>{d().then(f)}))};if(!1===r)return d();{let f;for(;;)if(typeof(f=d())<"u")return f||[]}},pg=(e=10)=>{if("number"!=typeof e)throw Error("Illegal arguments: "+typeof e);e<4?e=4:e>31&&(e=31);const n=[];return n.push("$2a$"),e<10&&n.push("0"),n.push(e.toString()),n.push("$"),n.push(hg((e=>{try{let n;n=typeof window<"u"?window.crypto??window.msCrypto:globalThis.crypto;const t=new Uint32Array(16);return n?.getRandomValues(t),Array.from(t)}catch{throw Error("WebCryptoAPI is not available")}})(),16)),n.join("")};const xb=(e,n=10)=>{if("number"==typeof n&&(n=pg(n)),"string"!=typeof e||"string"!=typeof n)throw Error("Illegal arguments: "+typeof e+", "+typeof n);return function gg(e,n,t,r){if("string"!=typeof e||"string"!=typeof n){const h=new Error("Invalid string / salt: Not a string");if(!1===t)return Promise.reject(h);throw h}let o,i;if("$"!==n.charAt(0)||"2"!==n.charAt(1)){const h=new Error("Invalid salt version: "+n.substring(0,2));if(!1===t)return Promise.reject(h);throw h}if("$"===n.charAt(2))o="\0",i=3;else{if(o=n.charAt(2),"a"!==o&&"b"!==o&&"y"!==o||"$"!==n.charAt(3)){const h=Error("Invalid salt revision: "+n.substring(2,4));if(!1===t)return Promise.reject(h);throw h}i=4}if(n.charAt(i+2)>"$"){const h=new Error("Missing salt rounds");if(!1===t)return Promise.reject(h);throw h}const c=10*parseInt(n.substring(i,i+1),10)+parseInt(n.substring(i+1,i+2),10),l=n.substring(i+3,i+25),u=(e=>{let n=0;const t=[];return((e,n)=>{((e,n)=>{let t,r=null;for(;null!==(t=null!==r?r:e());)t>=55296&&t<=57343&&null!==(r=e())&&r>=56320&&r<=57343?(n(1024*(t-55296)+r-56320+65536),r=null):n(t);null!==r&&n(r)})(e,t=>{((e,n)=>{let t=null;for("number"==typeof e&&(t=e,e=()=>null);null!==t||null!==(t=e());)t<128?n(127&t):t<2048?(n(t>>6&31|192),n(63&t|128)):t<65536?(n(t>>12&15|224),n(t>>6&63|128),n(63&t|128)):(n(t>>18&7|240),n(t>>12&63|128),n(t>>6&63|128),n(63&t|128)),t=null})(t,n)})})(()=>n{t.push(r)}),t})(e+=o>="a"?"\0":""),d=((e,n)=>{const t=e.length;let i,s,a,c,l,u,r=0,o=0;const d=[];for(;r>>0,l|=(48&s)>>4,d.push(String.fromCharCode(l)),++o>=16||r>=t)||(u=e.charCodeAt(r++),a=u>>0,l|=(60&a)>>2,d.push(String.fromCharCode(l)),++o>=16||r>=t)));)u=e.charCodeAt(r++),c=u>>0,l|=c,d.push(String.fromCharCode(l)),++o;return d.map(f=>f.charCodeAt(0))})(l),f=h=>{const p=[];return p.push("$2"),o>="a"&&p.push(o),p.push("$"),c<10&&p.push("0"),p.push(c.toString()),p.push("$"),p.push(hg(d,d.length)),p.push(hg(h,4*kb.length-1)),p.join("")};return!1===t?Pb(u,d,c,!1,r).then(h=>f(h)):f(Pb(u,d,c,!0,r))}(e,n,!0)};function mg(...e){const n=Zl(e),t=nE(e),{args:r,keys:o}=tE(e);if(0===r.length)return et([],n);const i=new He(function G6(e,n,t=Wr){return r=>{Fb(n,()=>{const{length:o}=e,i=new Array(o);let s=o,a=o;for(let c=0;c{const l=et(e[c],n);let u=!1;l.subscribe(We(r,d=>{i[c]=d,u||(u=!0,a--),a||r.next(t(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}(r,n,o?s=>oE(o,s):Wr));return t?i.pipe(rE(t)):i}function Fb(e,n,t){e?ar(t,e,n):n()}const hu=Pu(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Ma(e=1/0){return mt(Wr,e)}function vg(...e){return function q6(){return Ma(1)}()(et(e,Zl(e)))}function Lb(e){return new He(n=>{Vn(e()).subscribe(n)})}function pu(e,n){const t=be(e)?e:()=>e,r=o=>o.error(t());return new He(n?o=>n.schedule(r,0,o):r)}const $n=new He(e=>e.complete());function yg(){return ot((e,n)=>{let t=null;e._refCount++;const r=We(n,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount)return void(t=null);const o=e._connection,i=t;t=null,o&&(!i||o===i)&&o.unsubscribe(),n.unsubscribe()});e.subscribe(r),r.closed||(t=e.connect())})}class Vb extends He{constructor(n,t){super(),this.source=n,this.subjectFactory=t,this._subject=null,this._refCount=0,this._connection=null,hm(n)&&(this.lift=n.lift)}_subscribe(n){return this.getSubject().subscribe(n)}getSubject(){const n=this._subject;return(!n||n.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:n}=this;this._subject=this._connection=null,n?.unsubscribe()}connect(){let n=this._connection;if(!n){n=this._connection=new It;const t=this.getSubject();n.add(this.source.subscribe(We(t,void 0,()=>{this._teardown(),t.complete()},r=>{this._teardown(),t.error(r)},()=>this._teardown()))),n.closed&&(this._connection=null,n=It.EMPTY)}return n}refCount(){return yg()(this)}}function Ni(e){return e<=0?()=>$n:ot((n,t)=>{let r=0;n.subscribe(We(t,o=>{++r<=e&&(t.next(o),e<=r&&t.complete())}))})}function gu(e){return ot((n,t)=>{let r=!1;n.subscribe(We(t,o=>{r=!0,t.next(o)},()=>{r||t.next(e),t.complete()}))})}function jb(e=Q6){return ot((n,t)=>{let r=!1;n.subscribe(We(t,o=>{r=!0,t.next(o)},()=>r?t.complete():t.error(e())))})}function Q6(){return new hu}function vo(e,n){const t=arguments.length>=2;return r=>r.pipe(e?cr((o,i)=>e(o,i,r)):Wr,Ni(1),t?gu(n):jb(()=>new hu))}function Cg(e){return e<=0?()=>$n:ot((n,t)=>{let r=[];n.subscribe(We(t,o=>{r.push(o),e{for(const o of r)t.next(o);t.complete()},void 0,()=>{r=null}))})}const Z="primary",Ea=Symbol("RouteTitle");class t8{constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t[0]:t}return null}getAll(n){if(this.has(n)){const t=this.params[n];return Array.isArray(t)?t:[t]}return[]}get keys(){return Object.keys(this.params)}}function Ri(e){return new t8(e)}function n8(e,n,t){const r=t.path.split("/");if(r.length>e.length||"full"===t.pathMatch&&(n.hasChildren()||r.lengthr[i]===o)}return e===n}function $b(e){return e.length>0?e[e.length-1]:null}function Ur(e){return function z6(e){return!!e&&(e instanceof He||be(e.lift)&&be(e.subscribe))}(e)?e:oa(e)?et(Promise.resolve(e)):$(e)}const o8={exact:function zb(e,n,t){if(!yo(e.segments,n.segments)||!mu(e.segments,n.segments,t)||e.numberOfChildren!==n.numberOfChildren)return!1;for(const r in n.children)if(!e.children[r]||!zb(e.children[r],n.children[r],t))return!1;return!0},subset:Gb},Bb={exact:function i8(e,n){return Bn(e,n)},subset:function s8(e,n){return Object.keys(n).length<=Object.keys(e).length&&Object.keys(n).every(t=>Ub(e[t],n[t]))},ignored:()=>!0};function Hb(e,n,t){return o8[t.paths](e.root,n.root,t.matrixParams)&&Bb[t.queryParams](e.queryParams,n.queryParams)&&!("exact"===t.fragment&&e.fragment!==n.fragment)}function Gb(e,n,t){return qb(e,n,n.segments,t)}function qb(e,n,t,r){if(e.segments.length>t.length){const o=e.segments.slice(0,t.length);return!(!yo(o,t)||n.hasChildren()||!mu(o,t,r))}if(e.segments.length===t.length){if(!yo(e.segments,t)||!mu(e.segments,t,r))return!1;for(const o in n.children)if(!e.children[o]||!Gb(e.children[o],n.children[o],r))return!1;return!0}{const o=t.slice(0,e.segments.length),i=t.slice(e.segments.length);return!!(yo(e.segments,o)&&mu(e.segments,o,r)&&e.children[Z])&&qb(e.children[Z],n,i,r)}}function mu(e,n,t){return n.every((r,o)=>Bb[t](e[o].parameters,r.parameters))}class ki{constructor(n=new ve([],{}),t={},r=null){this.root=n,this.queryParams=t,this.fragment=r}get queryParamMap(){return this._queryParamMap??=Ri(this.queryParams),this._queryParamMap}toString(){return l8.serialize(this)}}class ve{constructor(n,t){this.segments=n,this.children=t,this.parent=null,Object.values(t).forEach(r=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return vu(this)}}class ba{constructor(n,t){this.path=n,this.parameters=t}get parameterMap(){return this._parameterMap??=Ri(this.parameters),this._parameterMap}toString(){return Qb(this)}}function yo(e,n){return e.length===n.length&&e.every((t,r)=>t.path===n[r].path)}let Oi=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:()=>new Dg,providedIn:"root"})}}return e})();class Dg{parse(n){const t=new _8(n);return new ki(t.parseRootSegment(),t.parseQueryParams(),t.parseFragment())}serialize(n){const t=`/${Ia(n.root,!0)}`,r=function f8(e){const n=Object.entries(e).map(([t,r])=>Array.isArray(r)?r.map(o=>`${yu(t)}=${yu(o)}`).join("&"):`${yu(t)}=${yu(r)}`).filter(t=>t);return n.length?`?${n.join("&")}`:""}(n.queryParams);return`${t}${r}${"string"==typeof n.fragment?`#${function u8(e){return encodeURI(e)}(n.fragment)}`:""}`}}const l8=new Dg;function vu(e){return e.segments.map(n=>Qb(n)).join("/")}function Ia(e,n){if(!e.hasChildren())return vu(e);if(n){const t=e.children[Z]?Ia(e.children[Z],!1):"",r=[];return Object.entries(e.children).forEach(([o,i])=>{o!==Z&&r.push(`${o}:${Ia(i,!1)}`)}),r.length>0?`${t}(${r.join("//")})`:t}{const t=function c8(e,n){let t=[];return Object.entries(e.children).forEach(([r,o])=>{r===Z&&(t=t.concat(n(o,r)))}),Object.entries(e.children).forEach(([r,o])=>{r!==Z&&(t=t.concat(n(o,r)))}),t}(e,(r,o)=>o===Z?[Ia(e.children[Z],!1)]:[`${o}:${Ia(r,!1)}`]);return 1===Object.keys(e.children).length&&null!=e.children[Z]?`${vu(e)}/${t[0]}`:`${vu(e)}/(${t.join("//")})`}}function Wb(e){return encodeURIComponent(e).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function yu(e){return Wb(e).replace(/%3B/gi,";")}function wg(e){return Wb(e).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Cu(e){return decodeURIComponent(e)}function Zb(e){return Cu(e.replace(/\+/g,"%20"))}function Qb(e){return`${wg(e.path)}${function d8(e){return Object.entries(e).map(([n,t])=>`;${wg(n)}=${wg(t)}`).join("")}(e.parameters)}`}const h8=/^[^\/()?;#]+/;function Mg(e){const n=e.match(h8);return n?n[0]:""}const p8=/^[^\/()?;=#]+/,m8=/^[^=?&#]+/,y8=/^[^&#]+/;class _8{constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new ve([],{}):new ve([],this.parseChildren())}parseQueryParams(){const n={};if(this.consumeOptional("?"))do{this.parseQueryParam(n)}while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let t={};this.peekStartsWith("/(")&&(this.capture("/"),t=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(n.length>0||Object.keys(t).length>0)&&(r[Z]=new ve(n,t)),r}parseSegment(){const n=Mg(this.remaining);if(""===n&&this.peekStartsWith(";"))throw new I(4009,!1);return this.capture(n),new ba(Cu(n),this.parseMatrixParams())}parseMatrixParams(){const n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){const t=function g8(e){const n=e.match(p8);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const o=Mg(this.remaining);o&&(r=o,this.capture(r))}n[Cu(t)]=Cu(r)}parseQueryParam(n){const t=function v8(e){const n=e.match(m8);return n?n[0]:""}(this.remaining);if(!t)return;this.capture(t);let r="";if(this.consumeOptional("=")){const s=function C8(e){const n=e.match(y8);return n?n[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=Zb(t),i=Zb(r);if(n.hasOwnProperty(o)){let s=n[o];Array.isArray(s)||(s=[s],n[o]=s),s.push(i)}else n[o]=i}parseParens(n){const t={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=Mg(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new I(4010,!1);let i;r.indexOf(":")>-1?(i=r.slice(0,r.indexOf(":")),this.capture(i),this.capture(":")):n&&(i=Z);const s=this.parseChildren();t[i]=1===Object.keys(s).length?s[Z]:new ve([],s),this.consumeOptional("//")}return t}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return!!this.peekStartsWith(n)&&(this.remaining=this.remaining.substring(n.length),!0)}capture(n){if(!this.consumeOptional(n))throw new I(4011,!1)}}function Yb(e){return e.segments.length>0?new ve([],{[Z]:e}):e}function Xb(e){const n={};for(const[r,o]of Object.entries(e.children)){const i=Xb(o);if(r===Z&&0===i.segments.length&&i.hasChildren())for(const[s,a]of Object.entries(i.children))n[s]=a;else(i.segments.length>0||i.hasChildren())&&(n[r]=i)}return function D8(e){if(1===e.numberOfChildren&&e.children[Z]){const n=e.children[Z];return new ve(e.segments.concat(n.segments),n.children)}return e}(new ve(e.segments,n))}function Pi(e){return e instanceof ki}function Kb(e){let n;const o=Yb(function t(i){const s={};for(const c of i.children){const l=t(c);s[c.outlet]=l}const a=new ve(i.url,s);return i===e&&(n=a),a}(e.root));return n??o}function Jb(e,n,t,r){let o=e;for(;o.parent;)o=o.parent;if(0===n.length)return Eg(o,o,o,t,r);const i=function M8(e){if("string"==typeof e[0]&&1===e.length&&"/"===e[0])return new t1(!0,0,e);let n=0,t=!1;const r=e.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Object.entries(i.outlets).forEach(([c,l])=>{a[c]="string"==typeof l?l.split("/"):l}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,c)=>{0==c&&"."===a||(0==c&&""===a?t=!0:".."===a?n++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new t1(t,n,r)}(n);if(i.toRoot())return Eg(o,o,new ve([],{}),t,r);const s=function E8(e,n,t){if(e.isAbsolute)return new Du(n,!0,0);if(!t)return new Du(n,!1,NaN);if(null===t.parent)return new Du(t,!0,0);const r=_u(e.commands[0])?0:1;return function b8(e,n,t){let r=e,o=n,i=t;for(;i>o;){if(i-=o,r=r.parent,!r)throw new I(4005,!1);o=r.segments.length}return new Du(r,!1,o-i)}(t,t.segments.length-1+r,e.numberOfDoubleDots)}(i,o,e),a=s.processChildren?Ta(s.segmentGroup,s.index,i.commands):n1(s.segmentGroup,s.index,i.commands);return Eg(o,s.segmentGroup,a,t,r)}function _u(e){return"object"==typeof e&&null!=e&&!e.outlets&&!e.segmentPath}function Sa(e){return"object"==typeof e&&null!=e&&e.outlets}function Eg(e,n,t,r,o){let s,i={};r&&Object.entries(r).forEach(([c,l])=>{i[c]=Array.isArray(l)?l.map(u=>`${u}`):`${l}`}),s=e===n?t:e1(e,n,t);const a=Yb(Xb(s));return new ki(a,i,o)}function e1(e,n,t){const r={};return Object.entries(e.children).forEach(([o,i])=>{r[o]=i===n?t:e1(i,n,t)}),new ve(e.segments,r)}class t1{constructor(n,t,r){if(this.isAbsolute=n,this.numberOfDoubleDots=t,this.commands=r,n&&r.length>0&&_u(r[0]))throw new I(4003,!1);const o=r.find(Sa);if(o&&o!==$b(r))throw new I(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Du{constructor(n,t,r){this.segmentGroup=n,this.processChildren=t,this.index=r}}function n1(e,n,t){if(e??=new ve([],{}),0===e.segments.length&&e.hasChildren())return Ta(e,n,t);const r=function S8(e,n,t){let r=0,o=n;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=t.length)return i;const s=e.segments[o],a=t[r];if(Sa(a))break;const c=`${a}`,l=r0&&void 0===c)break;if(c&&l&&"object"==typeof l&&void 0===l.outlets){if(!o1(c,l,s))return i;r+=2}else{if(!o1(c,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(e,n,t),o=t.slice(r.commandIndex);if(r.match&&r.pathIndexi!==Z)&&e.children[Z]&&1===e.numberOfChildren&&0===e.children[Z].segments.length){const i=Ta(e.children[Z],n,t);return new ve(e.segments,i.children)}return Object.entries(r).forEach(([i,s])=>{"string"==typeof s&&(s=[s]),null!==s&&(o[i]=n1(e.children[i],n,s))}),Object.entries(e.children).forEach(([i,s])=>{void 0===r[i]&&(o[i]=s)}),new ve(e.segments,o)}}function bg(e,n,t){const r=e.segments.slice(0,n);let o=0;for(;o{"string"==typeof r&&(r=[r]),null!==r&&(n[t]=bg(new ve([],{}),0,r))}),n}function r1(e){const n={};return Object.entries(e).forEach(([t,r])=>n[t]=`${r}`),n}function o1(e,n,t){return e==t.path&&Bn(n,t.parameters)}const Aa="imperative";var ne=function(e){return e[e.NavigationStart=0]="NavigationStart",e[e.NavigationEnd=1]="NavigationEnd",e[e.NavigationCancel=2]="NavigationCancel",e[e.NavigationError=3]="NavigationError",e[e.RoutesRecognized=4]="RoutesRecognized",e[e.ResolveStart=5]="ResolveStart",e[e.ResolveEnd=6]="ResolveEnd",e[e.GuardsCheckStart=7]="GuardsCheckStart",e[e.GuardsCheckEnd=8]="GuardsCheckEnd",e[e.RouteConfigLoadStart=9]="RouteConfigLoadStart",e[e.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",e[e.ChildActivationStart=11]="ChildActivationStart",e[e.ChildActivationEnd=12]="ChildActivationEnd",e[e.ActivationStart=13]="ActivationStart",e[e.ActivationEnd=14]="ActivationEnd",e[e.Scroll=15]="Scroll",e[e.NavigationSkipped=16]="NavigationSkipped",e}(ne||{});class Hn{constructor(n,t){this.id=n,this.url=t}}class wu extends Hn{constructor(n,t,r="imperative",o=null){super(n,t),this.type=ne.NavigationStart,this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class dr extends Hn{constructor(n,t,r){super(n,t),this.urlAfterRedirects=r,this.type=ne.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var zt=function(e){return e[e.Redirect=0]="Redirect",e[e.SupersededByNewNavigation=1]="SupersededByNewNavigation",e[e.NoDataFromResolver=2]="NoDataFromResolver",e[e.GuardRejected=3]="GuardRejected",e}(zt||{}),Mu=function(e){return e[e.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",e[e.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",e}(Mu||{});class xi extends Hn{constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o,this.type=ne.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class Fi extends Hn{constructor(n,t,r,o){super(n,t),this.reason=r,this.code=o,this.type=ne.NavigationSkipped}}class Eu extends Hn{constructor(n,t,r,o){super(n,t),this.error=r,this.target=o,this.type=ne.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class i1 extends Hn{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=ne.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class A8 extends Hn{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=ne.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class N8 extends Hn{constructor(n,t,r,o,i){super(n,t),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i,this.type=ne.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class R8 extends Hn{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=ne.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class k8 extends Hn{constructor(n,t,r,o){super(n,t),this.urlAfterRedirects=r,this.state=o,this.type=ne.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class O8{constructor(n){this.route=n,this.type=ne.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class P8{constructor(n){this.route=n,this.type=ne.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class x8{constructor(n){this.snapshot=n,this.type=ne.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class F8{constructor(n){this.snapshot=n,this.type=ne.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class L8{constructor(n){this.snapshot=n,this.type=ne.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class V8{constructor(n){this.snapshot=n,this.type=ne.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class s1{constructor(n,t,r){this.routerEvent=n,this.position=t,this.anchor=r,this.type=ne.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class Ig{}class Sg{constructor(n){this.url=n}}class j8{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Na,this.attachRef=null}}let Na=(()=>{class e{constructor(){this.contexts=new Map}onChildOutletCreated(t,r){const o=this.getOrCreateContext(t);o.outlet=r,this.contexts.set(t,o)}onChildOutletDestroyed(t){const r=this.getContext(t);r&&(r.outlet=null,r.attachRef=null)}onOutletDeactivated(){const t=this.contexts;return this.contexts=new Map,t}onOutletReAttached(t){this.contexts=t}getOrCreateContext(t){let r=this.getContext(t);return r||(r=new j8,this.contexts.set(t,r)),r}getContext(t){return this.contexts.get(t)||null}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();class a1{constructor(n){this._root=n}get root(){return this._root.value}parent(n){const t=this.pathFromRoot(n);return t.length>1?t[t.length-2]:null}children(n){const t=Tg(n,this._root);return t?t.children.map(r=>r.value):[]}firstChild(n){const t=Tg(n,this._root);return t&&t.children.length>0?t.children[0].value:null}siblings(n){const t=Ag(n,this._root);return t.length<2?[]:t[t.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return Ag(n,this._root).map(t=>t.value)}}function Tg(e,n){if(e===n.value)return n;for(const t of n.children){const r=Tg(e,t);if(r)return r}return null}function Ag(e,n){if(e===n.value)return[n];for(const t of n.children){const r=Ag(e,t);if(r.length)return r.unshift(n),r}return[]}class mn{constructor(n,t){this.value=n,this.children=t}toString(){return`TreeNode(${this.value})`}}function Li(e){const n={};return e&&e.children.forEach(t=>n[t.value.outlet]=t),n}class c1 extends a1{constructor(n,t){super(n),this.snapshot=t,kg(this,n)}toString(){return this.snapshot.toString()}}function l1(e){const n=function U8(e){const i=new Rg([],{},{},"",{},Z,e,null,{});return new u1("",new mn(i,[]))}(e),t=new Wt([new ba("",{})]),r=new Wt({}),o=new Wt({}),i=new Wt({}),s=new Wt(""),a=new Kt(t,r,i,s,o,Z,e,n.root);return a.snapshot=n.root,new c1(new mn(a,[]),n)}class Kt{constructor(n,t,r,o,i,s,a,c){this.urlSubject=n,this.paramsSubject=t,this.queryParamsSubject=r,this.fragmentSubject=o,this.dataSubject=i,this.outlet=s,this.component=a,this._futureSnapshot=c,this.title=this.dataSubject?.pipe(ie(l=>l[Ea]))??$(void 0),this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(ie(n=>Ri(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(ie(n=>Ri(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function Ng(e,n,t="emptyOnly"){let r;const{routeConfig:o}=e;return r=null===n||"always"!==t&&""!==o?.path&&(n.component||n.routeConfig?.loadComponent)?{params:{...e.params},data:{...e.data},resolve:{...e.data,...e._resolvedData??{}}}:{params:{...n.params,...e.params},data:{...n.data,...e.data},resolve:{...e.data,...n.data,...o?.data,...e._resolvedData}},o&&f1(o)&&(r.resolve[Ea]=o.title),r}class Rg{get title(){return this.data?.[Ea]}constructor(n,t,r,o,i,s,a,c,l){this.url=n,this.params=t,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=c,this._resolve=l}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??=Ri(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Ri(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class u1 extends a1{constructor(n,t){super(t),this.url=n,kg(this,t)}toString(){return d1(this._root)}}function kg(e,n){n.value._routerState=e,n.children.forEach(t=>kg(e,t))}function d1(e){const n=e.children.length>0?` { ${e.children.map(d1).join(", ")} } `:"";return`${e.value}${n}`}function Og(e){if(e.snapshot){const n=e.snapshot,t=e._futureSnapshot;e.snapshot=t,Bn(n.queryParams,t.queryParams)||e.queryParamsSubject.next(t.queryParams),n.fragment!==t.fragment&&e.fragmentSubject.next(t.fragment),Bn(n.params,t.params)||e.paramsSubject.next(t.params),function r8(e,n){if(e.length!==n.length)return!1;for(let t=0;tBn(t.parameters,n[r].parameters))}(e.url,n.url);return t&&!(!e.parent!=!n.parent)&&(!e.parent||Pg(e.parent,n.parent))}function f1(e){return"string"==typeof e.title||null===e.title}let xg=(()=>{class e{constructor(){this.activated=null,this._activatedRoute=null,this.name=Z,this.activateEvents=new ke,this.deactivateEvents=new ke,this.attachEvents=new ke,this.detachEvents=new ke,this.parentContexts=b(Na),this.location=b(cn),this.changeDetector=b(ia),this.environmentInjector=b(vt),this.inputBinder=b(bu,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(t){if(t.name){const{firstChange:r,previousValue:o}=t.name;if(r)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(t){return this.parentContexts.getContext(t)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const t=this.parentContexts.getContext(this.name);t?.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new I(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new I(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new I(4012,!1);this.location.detach();const t=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(t.instance),t}attach(t,r){this.activated=t,this._activatedRoute=r,this.location.insert(t.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(t.instance)}deactivate(){if(this.activated){const t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}}activateWith(t,r){if(this.isActivated)throw new I(4013,!1);this._activatedRoute=t;const o=this.location,s=t.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,c=new Fg(t,a,o.injector);this.activated=o.createComponent(s,{index:o.length,injector:c,environmentInjector:r??this.environmentInjector}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275dir=B({type:e,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[Zt]})}}return e})();class Fg{__ngOutletInjector(n){return new Fg(this.route,this.childContexts,n)}constructor(n,t,r){this.route=n,this.childContexts=t,this.parent=r}get(n,t){return n===Kt?this.route:n===Na?this.childContexts:this.parent.get(n,t)}}const bu=new N("");let h1=(()=>{class e{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(t){this.unsubscribeFromRouteData(t),this.subscribeToRouteData(t)}unsubscribeFromRouteData(t){this.outletDataSubscriptions.get(t)?.unsubscribe(),this.outletDataSubscriptions.delete(t)}subscribeToRouteData(t){const{activatedRoute:r}=t,o=mg([r.queryParams,r.params,r.data]).pipe(gn(([i,s,a],c)=>(a={...i,...s,...a},0===c?$(a):Promise.resolve(a)))).subscribe(i=>{if(!t.isActivated||!t.activatedComponentRef||t.activatedRoute!==r||null===r.component)return void this.unsubscribeFromRouteData(t);const s=function Vx(e){const n=Y(e);if(!n)return null;const t=new Ls(n);return{get selector(){return t.selector},get type(){return t.componentType},get inputs(){return t.inputs},get outputs(){return t.outputs},get ngContentSelectors(){return t.ngContentSelectors},get isStandalone(){return n.standalone},get isSignal(){return n.signals}}}(r.component);if(s)for(const{templateName:a}of s.inputs)t.activatedComponentRef.setInput(a,i[a]);else this.unsubscribeFromRouteData(t)});this.outletDataSubscriptions.set(t,o)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac})}}return e})();function Ra(e,n,t){if(t&&e.shouldReuseRoute(n.value,t.value.snapshot)){const r=t.value;r._futureSnapshot=n.value;const o=function B8(e,n,t){return n.children.map(r=>{for(const o of t.children)if(e.shouldReuseRoute(r.value,o.value.snapshot))return Ra(e,r,o);return Ra(e,r)})}(e,n,t);return new mn(r,o)}{if(e.shouldAttach(n.value)){const i=e.retrieve(n.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=n.value,s.children=n.children.map(a=>Ra(e,a)),s}}const r=function H8(e){return new Kt(new Wt(e.url),new Wt(e.params),new Wt(e.queryParams),new Wt(e.fragment),new Wt(e.data),e.outlet,e.component,e)}(n.value),o=n.children.map(i=>Ra(e,i));return new mn(r,o)}}const p1="ngNavigationCancelingError";function g1(e,n){const{redirectTo:t,navigationBehaviorOptions:r}=Pi(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=m1(!1,zt.Redirect);return o.url=t,o.navigationBehaviorOptions=r,o}function m1(e,n){const t=new Error(`NavigationCancelingError: ${e||""}`);return t[p1]=!0,t.cancellationCode=n,t}function v1(e){return!!e&&e[p1]}let y1=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275cmp=at({type:e,selectors:[["ng-component"]],standalone:!0,features:[Ew],decls:1,vars:0,template:function(r,o){1&r&&V(0,"router-outlet")},dependencies:[xg],encapsulation:2})}}return e})();function Lg(e){const n=e.children&&e.children.map(Lg),t=n?{...e,children:n}:{...e};return!t.component&&!t.loadComponent&&(n||t.loadChildren)&&t.outlet&&t.outlet!==Z&&(t.component=y1),t}function zn(e){return e.outlet||Z}function ka(e){if(!e)return null;if(e.routeConfig?._injector)return e.routeConfig._injector;for(let n=e.parent;n;n=n.parent){const t=n.routeConfig;if(t?._loadedInjector)return t._loadedInjector;if(t?._injector)return t._injector}return null}class X8{constructor(n,t,r,o,i){this.routeReuseStrategy=n,this.futureState=t,this.currState=r,this.forwardEvent=o,this.inputBindingEnabled=i}activate(n){const t=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(t,r,n),Og(this.futureState.root),this.activateChildRoutes(t,r,n)}deactivateChildRoutes(n,t,r){const o=Li(t);n.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Object.values(o).forEach(i=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(n,t,r){const o=n.value,i=t?t.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(n,t,s.children)}else this.deactivateChildRoutes(n,t,r);else i&&this.deactivateRouteAndItsChildren(t,r)}deactivateRouteAndItsChildren(n,t){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,t):this.deactivateRouteAndOutlet(n,t)}detachAndStoreRouteSubtree(n,t){const r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=Li(n);for(const s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:s,route:n,contexts:a})}}deactivateRouteAndOutlet(n,t){const r=t.getContext(n.value.outlet),o=r&&n.value.component?r.children:t,i=Li(n);for(const s of Object.values(i))this.deactivateRouteAndItsChildren(s,o);r&&(r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated()),r.attachRef=null,r.route=null)}activateChildRoutes(n,t,r){const o=Li(t);n.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new V8(i.value.snapshot))}),n.children.length&&this.forwardEvent(new F8(n.value.snapshot))}activateRoutes(n,t,r){const o=n.value,i=t?t.value:null;if(Og(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(n,t,s.children)}else this.activateChildRoutes(n,t,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Og(a.route.value),this.activateChildRoutes(n,null,s.children)}else{const a=ka(o.snapshot);s.attachRef=null,s.route=o,s.injector=a,s.outlet&&s.outlet.activateWith(o,s.injector),this.activateChildRoutes(n,null,s.children)}}else this.activateChildRoutes(n,null,r)}}class C1{constructor(n){this.path=n,this.route=this.path[this.path.length-1]}}class Iu{constructor(n,t){this.component=n,this.route=t}}function K8(e,n,t){const r=e._root;return Oa(r,n?n._root:null,t,[r.value])}function Vi(e,n){const t=Symbol(),r=n.get(e,t);return r===t?"function"!=typeof e||function _I(e){return null!==za(e)}(e)?n.get(e):e:r}function Oa(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=Li(n);return e.children.forEach(s=>{(function eV(e,n,t,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=e.value,s=n?n.value:null,a=t?t.getContext(e.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const c=function tV(e,n,t){if("function"==typeof t)return t(e,n);switch(t){case"pathParamsChange":return!yo(e.url,n.url);case"pathParamsOrQueryParamsChange":return!yo(e.url,n.url)||!Bn(e.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Pg(e,n)||!Bn(e.queryParams,n.queryParams);default:return!Pg(e,n)}}(s,i,i.routeConfig.runGuardsAndResolvers);c?o.canActivateChecks.push(new C1(r)):(i.data=s.data,i._resolvedData=s._resolvedData),Oa(e,n,i.component?a?a.children:null:t,r,o),c&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Iu(a.outlet.component,s))}else s&&Pa(n,a,o),o.canActivateChecks.push(new C1(r)),Oa(e,null,i.component?a?a.children:null:t,r,o)})(s,i[s.value.outlet],t,r.concat([s.value]),o),delete i[s.value.outlet]}),Object.entries(i).forEach(([s,a])=>Pa(a,t.getContext(s),o)),o}function Pa(e,n,t){const r=Li(e),o=e.value;Object.entries(r).forEach(([i,s])=>{Pa(s,o.component?n?n.children.getContext(i):null:n,t)}),t.canDeactivateChecks.push(new Iu(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))}function xa(e){return"function"==typeof e}function _1(e){return e instanceof hu||"EmptyError"===e?.name}const Su=Symbol("INITIAL_VALUE");function ji(){return gn(e=>mg(e.map(n=>n.pipe(Ni(1),function Z6(...e){const n=Zl(e);return ot((t,r)=>{(n?vg(e,t,n):vg(e,t)).subscribe(r)})}(Su)))).pipe(ie(n=>{for(const t of n)if(!0!==t){if(t===Su)return Su;if(!1===t||t instanceof ki)return t}return!0}),cr(n=>n!==Su),Ni(1)))}function D1(e){return function uI(...e){return um(e)}(W(n=>{if(Pi(n))throw g1(0,n)}),ie(n=>!0===n))}class Vg{constructor(n){this.segmentGroup=n||null}}class jg extends Error{constructor(n){super(),this.urlTree=n}}function Ui(e){return pu(new Vg(e))}class _V{constructor(n,t){this.urlSerializer=n,this.urlTree=t}lineralizeSegments(n,t){let r=[],o=t.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return $(r);if(o.numberOfChildren>1||!o.children[Z])return pu(new I(4e3,!1));o=o.children[Z]}}applyRedirectCommands(n,t,r){const o=this.applyRedirectCreateUrlTree(t,this.urlSerializer.parse(t),n,r);if(t.startsWith("/"))throw new jg(o);return o}applyRedirectCreateUrlTree(n,t,r,o){const i=this.createSegmentGroup(n,t.root,r,o);return new ki(i,this.createQueryParams(t.queryParams,this.urlTree.queryParams),t.fragment)}createQueryParams(n,t){const r={};return Object.entries(n).forEach(([o,i])=>{if("string"==typeof i&&i.startsWith(":")){const a=i.substring(1);r[o]=t[a]}else r[o]=i}),r}createSegmentGroup(n,t,r,o){const i=this.createSegments(n,t.segments,r,o);let s={};return Object.entries(t.children).forEach(([a,c])=>{s[a]=this.createSegmentGroup(n,c,r,o)}),new ve(i,s)}createSegments(n,t,r,o){return t.map(i=>i.path.startsWith(":")?this.findPosParam(n,i,o):this.findOrReturn(i,r))}findPosParam(n,t,r){const o=r[t.path.substring(1)];if(!o)throw new I(4001,!1);return o}findOrReturn(n,t){let r=0;for(const o of t){if(o.path===n.path)return t.splice(r),o;r++}return n}}const Ug={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function DV(e,n,t,r,o){const i=$g(e,n,t);return i.matched?(r=function G8(e,n){return e.providers&&!e._injector&&(e._injector=tl(e.providers,n,`Route: ${e.path}`)),e._injector??n}(n,r),function vV(e,n,t,r){const o=n.canMatch;return o&&0!==o.length?$(o.map(s=>{const a=Vi(s,e);return Ur(function aV(e){return e&&xa(e.canMatch)}(a)?a.canMatch(n,t):Mn(e,()=>a(n,t)))})).pipe(ji(),D1()):$(!0)}(r,n,t).pipe(ie(s=>!0===s?i:{...Ug}))):$(i)}function $g(e,n,t){if("**"===n.path)return function wV(e){return{matched:!0,parameters:e.length>0?$b(e).parameters:{},consumedSegments:e,remainingSegments:[],positionalParamSegments:{}}}(t);if(""===n.path)return"full"===n.pathMatch&&(e.hasChildren()||t.length>0)?{...Ug}:{matched:!0,consumedSegments:[],remainingSegments:t,parameters:{},positionalParamSegments:{}};const o=(n.matcher||n8)(t,e,n);if(!o)return{...Ug};const i={};Object.entries(o.posParams??{}).forEach(([a,c])=>{i[a]=c.path});const s=o.consumed.length>0?{...i,...o.consumed[o.consumed.length-1].parameters}:i;return{matched:!0,consumedSegments:o.consumed,remainingSegments:t.slice(o.consumed.length),parameters:s,positionalParamSegments:o.posParams??{}}}function w1(e,n,t,r){return t.length>0&&function bV(e,n,t){return t.some(r=>Tu(e,n,r)&&zn(r)!==Z)}(e,t,r)?{segmentGroup:new ve(n,EV(r,new ve(t,e.children))),slicedSegments:[]}:0===t.length&&function IV(e,n,t){return t.some(r=>Tu(e,n,r))}(e,t,r)?{segmentGroup:new ve(e.segments,MV(e,t,r,e.children)),slicedSegments:t}:{segmentGroup:new ve(e.segments,e.children),slicedSegments:t}}function MV(e,n,t,r){const o={};for(const i of t)if(Tu(e,n,i)&&!r[zn(i)]){const s=new ve([],{});o[zn(i)]=s}return{...r,...o}}function EV(e,n){const t={};t[Z]=n;for(const r of e)if(""===r.path&&zn(r)!==Z){const o=new ve([],{});t[zn(r)]=o}return t}function Tu(e,n,t){return(!(e.hasChildren()||n.length>0)||"full"!==t.pathMatch)&&""===t.path}class AV{}class kV{constructor(n,t,r,o,i,s,a){this.injector=n,this.configLoader=t,this.rootComponentType=r,this.config=o,this.urlTree=i,this.paramsInheritanceStrategy=s,this.urlSerializer=a,this.applyRedirects=new _V(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(n){return new I(4002,`'${n.segmentGroup}'`)}recognize(){const n=w1(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(ie(t=>{const r=new Rg([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Z,this.rootComponentType,null,{}),o=new mn(r,t),i=new u1("",o),s=function w8(e,n,t=null,r=null){return Jb(Kb(e),n,t,r)}(r,[],this.urlTree.queryParams,this.urlTree.fragment);return s.queryParams=this.urlTree.queryParams,i.url=this.urlSerializer.serialize(s),this.inheritParamsAndData(i._root,null),{state:i,tree:s}}))}match(n){return this.processSegmentGroup(this.injector,this.config,n,Z).pipe(oe(r=>{if(r instanceof jg)return this.urlTree=r.urlTree,this.match(r.urlTree.root);throw r instanceof Vg?this.noMatchError(r):r}))}inheritParamsAndData(n,t){const r=n.value,o=Ng(r,t,this.paramsInheritanceStrategy);r.params=Object.freeze(o.params),r.data=Object.freeze(o.data),n.children.forEach(i=>this.inheritParamsAndData(i,r))}processSegmentGroup(n,t,r,o){return 0===r.segments.length&&r.hasChildren()?this.processChildren(n,t,r):this.processSegment(n,t,r,r.segments,o,!0).pipe(ie(i=>i instanceof mn?[i]:[]))}processChildren(n,t,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return et(o).pipe(Ii(i=>{const s=r.children[i],a=function Q8(e,n){const t=e.filter(r=>zn(r)===n);return t.push(...e.filter(r=>zn(r)!==n)),t}(t,i);return this.processSegmentGroup(n,a,s,i)}),function X6(e,n){return ot(function Y6(e,n,t,r,o){return(i,s)=>{let a=t,c=n,l=0;i.subscribe(We(s,u=>{const d=l++;c=a?e(c,u,d):(a=!0,u),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}(e,n,arguments.length>=2,!0))}((i,s)=>(i.push(...s),i)),gu(null),function K6(e,n){const t=arguments.length>=2;return r=>r.pipe(e?cr((o,i)=>e(o,i,r)):Wr,Cg(1),t?gu(n):jb(()=>new hu))}(),mt(i=>{if(null===i)return Ui(r);const s=M1(i);return function OV(e){e.sort((n,t)=>n.value.outlet===Z?-1:t.value.outlet===Z?1:n.value.outlet.localeCompare(t.value.outlet))}(s),$(s)}))}processSegment(n,t,r,o,i,s){return et(t).pipe(Ii(a=>this.processSegmentAgainstRoute(a._injector??n,t,a,r,o,i,s).pipe(oe(c=>{if(c instanceof Vg)return $(null);throw c}))),vo(a=>!!a),oe(a=>{if(_1(a))return function TV(e,n,t){return 0===n.length&&!e.children[t]}(r,o,i)?$(new AV):Ui(r);throw a}))}processSegmentAgainstRoute(n,t,r,o,i,s,a){return function SV(e,n,t,r){return!!(zn(e)===r||r!==Z&&Tu(n,t,e))&&$g(n,e,t).matched}(r,o,i,s)?void 0===r.redirectTo?this.matchSegmentAgainstRoute(n,o,r,i,s):this.allowRedirects&&a?this.expandSegmentAgainstRouteUsingRedirect(n,o,t,r,i,s):Ui(o):Ui(o)}expandSegmentAgainstRouteUsingRedirect(n,t,r,o,i,s){const{matched:a,consumedSegments:c,positionalParamSegments:l,remainingSegments:u}=$g(t,o,i);if(!a)return Ui(t);o.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const d=this.applyRedirects.applyRedirectCommands(c,o.redirectTo,l);return this.applyRedirects.lineralizeSegments(o,d).pipe(mt(f=>this.processSegment(n,r,t,f.concat(u),s,!1)))}matchSegmentAgainstRoute(n,t,r,o,i){const s=DV(t,r,o,n);return"**"===r.path&&(t.children={}),s.pipe(gn(a=>a.matched?this.getChildConfig(n=r._injector??n,r,o).pipe(gn(({routes:c})=>{const l=r._loadedInjector??n,{consumedSegments:u,remainingSegments:d,parameters:f}=a,h=new Rg(u,f,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function xV(e){return e.data||{}}(r),zn(r),r.component??r._loadedComponent??null,r,function FV(e){return e.resolve||{}}(r)),{segmentGroup:p,slicedSegments:v}=w1(t,u,d,c);if(0===v.length&&p.hasChildren())return this.processChildren(l,c,p).pipe(ie(D=>null===D?null:new mn(h,D)));if(0===c.length&&0===v.length)return $(new mn(h,[]));const _=zn(r)===i;return this.processSegment(l,c,p,v,_?Z:i,!0).pipe(ie(D=>new mn(h,D instanceof mn?[D]:[])))})):Ui(t)))}getChildConfig(n,t,r){return t.children?$({routes:t.children,injector:n}):t.loadChildren?void 0!==t._loadedRoutes?$({routes:t._loadedRoutes,injector:t._loadedInjector}):function mV(e,n,t,r){const o=n.canLoad;return void 0===o||0===o.length?$(!0):$(o.map(s=>{const a=Vi(s,e);return Ur(function rV(e){return e&&xa(e.canLoad)}(a)?a.canLoad(n,t):Mn(e,()=>a(n,t)))})).pipe(ji(),D1())}(n,t,r).pipe(mt(o=>o?this.configLoader.loadChildren(n,t).pipe(W(i=>{t._loadedRoutes=i.routes,t._loadedInjector=i.injector})):function CV(e){return pu(m1(!1,zt.GuardRejected))}())):$({routes:[],injector:n})}}function PV(e){const n=e.value.routeConfig;return n&&""===n.path}function M1(e){const n=[],t=new Set;for(const r of e){if(!PV(r)){n.push(r);continue}const o=n.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),t.add(o)):n.push(r)}for(const r of t){const o=M1(r.children);n.push(new mn(r.value,o))}return n.filter(r=>!t.has(r))}function E1(e){const n=e.children.map(t=>E1(t)).flat();return[e,...n]}function Bg(e){return gn(n=>{const t=e(n);return t?et(t).pipe(ie(()=>n)):$(n)})}let b1=(()=>{class e{buildTitle(t){let r,o=t.root;for(;void 0!==o;)r=this.getResolvedTitleForRoute(o)??r,o=o.children.find(i=>i.outlet===Z);return r}getResolvedTitleForRoute(t){return t.data[Ea]}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:()=>b(BV),providedIn:"root"})}}return e})(),BV=(()=>{class e extends b1{constructor(t){super(),this.title=t}updateTitle(t){const r=this.buildTitle(t);void 0!==r&&this.title.setTitle(r)}static{this.\u0275fac=function(r){return new(r||e)(k(cL))}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const $i=new N("",{providedIn:"root",factory:()=>({})}),Bi=new N("");let Hg=(()=>{class e{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=b(n0)}loadComponent(t){if(this.componentLoaders.get(t))return this.componentLoaders.get(t);if(t._loadedComponent)return $(t._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(t);const r=Ur(t.loadComponent()).pipe(ie(I1),W(i=>{this.onLoadEndListener&&this.onLoadEndListener(t),t._loadedComponent=i}),ya(()=>{this.componentLoaders.delete(t)})),o=new Vb(r,()=>new qt).pipe(yg());return this.componentLoaders.set(t,o),o}loadChildren(t,r){if(this.childrenLoaders.get(r))return this.childrenLoaders.get(r);if(r._loadedRoutes)return $({routes:r._loadedRoutes,injector:r._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(r);const i=function HV(e,n,t,r){return Ur(e.loadChildren()).pipe(ie(I1),mt(o=>o instanceof v_||Array.isArray(o)?$(o):et(n.compileModuleAsync(o))),ie(o=>{r&&r(e);let i,s,a=!1;return Array.isArray(o)?(s=o,!0):(i=o.create(t).injector,s=i.get(Bi,[],{optional:!0,self:!0}).flat()),{routes:s.map(Lg),injector:i}}))}(r,this.compiler,t,this.onLoadEndListener).pipe(ya(()=>{this.childrenLoaders.delete(r)})),s=new Vb(i,()=>new qt).pipe(yg());return this.childrenLoaders.set(r,s),s}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function I1(e){return function zV(e){return e&&"object"==typeof e&&"default"in e}(e)?e.default:e}let zg=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:()=>b(GV),providedIn:"root"})}}return e})(),GV=(()=>{class e{shouldProcessUrl(t){return!0}extract(t){return t}merge(t,r){return t}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const S1=new N(""),T1=new N("");function qV(e,n,t){const r=e.get(T1),o=e.get($t);return e.get(fe).runOutsideAngular(()=>{if(!o.startViewTransition||r.skipNextTransition)return r.skipNextTransition=!1,new Promise(l=>setTimeout(l));let i;const s=new Promise(l=>{i=l}),a=o.startViewTransition(()=>(i(),function WV(e){return new Promise(n=>{Jf(n,{injector:e})})}(e))),{onViewTransitionCreated:c}=r;return c&&Mn(e,()=>c({transition:a,from:n,to:t})),s})}let Au=(()=>{class e{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new qt,this.transitionAbortSubject=new qt,this.configLoader=b(Hg),this.environmentInjector=b(vt),this.urlSerializer=b(Oi),this.rootContexts=b(Na),this.location=b(wi),this.inputBindingEnabled=null!==b(bu,{optional:!0}),this.titleStrategy=b(b1),this.options=b($i,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=b(zg),this.createViewTransition=b(S1,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>$(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=o=>this.events.next(new P8(o)),this.configLoader.onLoadStartListener=o=>this.events.next(new O8(o))}complete(){this.transitions?.complete()}handleNavigationRequest(t){const r=++this.navigationId;this.transitions?.next({...this.transitions.value,...t,id:r})}setupNavigations(t,r,o){return this.transitions=new Wt({id:0,currentUrlTree:r,currentRawUrl:r,extractedUrl:this.urlHandlingStrategy.extract(r),urlAfterRedirects:this.urlHandlingStrategy.extract(r),rawUrl:r,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Aa,restoredState:null,currentSnapshot:o.snapshot,targetSnapshot:null,currentRouterState:o,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe(cr(i=>0!==i.id),ie(i=>({...i,extractedUrl:this.urlHandlingStrategy.extract(i.rawUrl)})),gn(i=>{let s=!1,a=!1;return $(i).pipe(gn(c=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,"",zt.SupersededByNewNavigation),$n;this.currentTransition=i,this.currentNavigation={id:c.id,initialUrl:c.rawUrl,extractedUrl:c.extractedUrl,trigger:c.source,extras:c.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const l=!t.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl();if(!l&&"reload"!==(c.extras.onSameUrlNavigation??t.onSameUrlNavigation)){const d="";return this.events.next(new Fi(c.id,this.urlSerializer.serialize(c.rawUrl),d,Mu.IgnoredSameUrlNavigation)),c.resolve(null),$n}if(this.urlHandlingStrategy.shouldProcessUrl(c.rawUrl))return $(c).pipe(gn(d=>{const f=this.transitions?.getValue();return this.events.next(new wu(d.id,this.urlSerializer.serialize(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions?.getValue()?$n:Promise.resolve(d)}),function LV(e,n,t,r,o,i){return mt(s=>function NV(e,n,t,r,o,i,s="emptyOnly"){return new kV(e,n,t,r,o,s,i).recognize()}(e,n,t,r,s.extractedUrl,o,i).pipe(ie(({state:a,tree:c})=>({...s,targetSnapshot:a,urlAfterRedirects:c}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,t.config,this.urlSerializer,this.paramsInheritanceStrategy),W(d=>{i.targetSnapshot=d.targetSnapshot,i.urlAfterRedirects=d.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:d.urlAfterRedirects};const f=new i1(d.id,this.urlSerializer.serialize(d.extractedUrl),this.urlSerializer.serialize(d.urlAfterRedirects),d.targetSnapshot);this.events.next(f)}));if(l&&this.urlHandlingStrategy.shouldProcessUrl(c.currentRawUrl)){const{id:d,extractedUrl:f,source:h,restoredState:p,extras:v}=c,_=new wu(d,this.urlSerializer.serialize(f),h,p);this.events.next(_);const D=l1(this.rootComponentType).snapshot;return this.currentTransition=i={...c,targetSnapshot:D,urlAfterRedirects:f,extras:{...v,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=f,$(i)}{const d="";return this.events.next(new Fi(c.id,this.urlSerializer.serialize(c.extractedUrl),d,Mu.IgnoredByUrlHandlingStrategy)),c.resolve(null),$n}}),W(c=>{const l=new A8(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot);this.events.next(l)}),ie(c=>(this.currentTransition=i={...c,guards:K8(c.targetSnapshot,c.currentSnapshot,this.rootContexts)},i)),function cV(e,n){return mt(t=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=t;return 0===s.length&&0===i.length?$({...t,guardsResult:!0}):function lV(e,n,t,r){return et(e).pipe(mt(o=>function gV(e,n,t,r,o){const i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return i&&0!==i.length?$(i.map(a=>{const c=ka(n)??o,l=Vi(a,c);return Ur(function sV(e){return e&&xa(e.canDeactivate)}(l)?l.canDeactivate(e,n,t,r):Mn(c,()=>l(e,n,t,r))).pipe(vo())})).pipe(ji()):$(!0)}(o.component,o.route,t,n,r)),vo(o=>!0!==o,!0))}(s,r,o,e).pipe(mt(a=>a&&function nV(e){return"boolean"==typeof e}(a)?function uV(e,n,t,r){return et(n).pipe(Ii(o=>vg(function fV(e,n){return null!==e&&n&&n(new x8(e)),$(!0)}(o.route.parent,r),function dV(e,n){return null!==e&&n&&n(new L8(e)),$(!0)}(o.route,r),function pV(e,n,t){const r=n[n.length-1],i=n.slice(0,n.length-1).reverse().map(s=>function J8(e){const n=e.routeConfig?e.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:e,guards:n}:null}(s)).filter(s=>null!==s).map(s=>Lb(()=>$(s.guards.map(c=>{const l=ka(s.node)??t,u=Vi(c,l);return Ur(function iV(e){return e&&xa(e.canActivateChild)}(u)?u.canActivateChild(r,e):Mn(l,()=>u(r,e))).pipe(vo())})).pipe(ji())));return $(i).pipe(ji())}(e,o.path,t),function hV(e,n,t){const r=n.routeConfig?n.routeConfig.canActivate:null;if(!r||0===r.length)return $(!0);const o=r.map(i=>Lb(()=>{const s=ka(n)??t,a=Vi(i,s);return Ur(function oV(e){return e&&xa(e.canActivate)}(a)?a.canActivate(n,e):Mn(s,()=>a(n,e))).pipe(vo())}));return $(o).pipe(ji())}(e,o.route,t))),vo(o=>!0!==o,!0))}(r,i,e,n):$(a)),ie(a=>({...t,guardsResult:a})))})}(this.environmentInjector,c=>this.events.next(c)),W(c=>{if(i.guardsResult=c.guardsResult,Pi(c.guardsResult))throw g1(0,c.guardsResult);const l=new N8(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects),c.targetSnapshot,!!c.guardsResult);this.events.next(l)}),cr(c=>!!c.guardsResult||(this.cancelNavigationTransition(c,"",zt.GuardRejected),!1)),Bg(c=>{if(c.guards.canActivateChecks.length)return $(c).pipe(W(l=>{const u=new R8(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}),gn(l=>{let u=!1;return $(l).pipe(function VV(e,n){return mt(t=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=t;if(!o.length)return $(t);const i=new Set(o.map(c=>c.route)),s=new Set;for(const c of i)if(!s.has(c))for(const l of E1(c))s.add(l);let a=0;return et(s).pipe(Ii(c=>i.has(c)?function jV(e,n,t,r){const o=e.routeConfig,i=e._resolve;return void 0!==o?.title&&!f1(o)&&(i[Ea]=o.title),function UV(e,n,t,r){const o=_g(e);if(0===o.length)return $({});const i={};return et(o).pipe(mt(s=>function $V(e,n,t,r){const o=ka(n)??r,i=Vi(e,o);return Ur(i.resolve?i.resolve(n,t):Mn(o,()=>i(n,t)))}(e[s],n,t,r).pipe(vo(),W(a=>{i[s]=a}))),Cg(1),function J6(e){return ie(()=>e)}(i),oe(s=>_1(s)?$n:pu(s)))}(i,e,n,r).pipe(ie(s=>(e._resolvedData=s,e.data=Ng(e,e.parent,t).resolve,null)))}(c,r,e,n):(c.data=Ng(c,c.parent,e).resolve,$(void 0))),W(()=>a++),Cg(1),mt(c=>a===s.size?$(t):$n))})}(this.paramsInheritanceStrategy,this.environmentInjector),W({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(l,"",zt.NoDataFromResolver)}}))}),W(l=>{const u=new k8(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(u)}))}),Bg(c=>{const l=u=>{const d=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&d.push(this.configLoader.loadComponent(u.routeConfig).pipe(W(f=>{u.component=f}),ie(()=>{})));for(const f of u.children)d.push(...l(f));return d};return mg(l(c.targetSnapshot.root)).pipe(gu(null),Ni(1))}),Bg(()=>this.afterPreactivation()),gn(()=>{const{currentSnapshot:c,targetSnapshot:l}=i,u=this.createViewTransition?.(this.environmentInjector,c.root,l.root);return u?et(u).pipe(ie(()=>i)):$(i)}),ie(c=>{const l=function $8(e,n,t){const r=Ra(e,n._root,t?t._root:void 0);return new c1(r,n)}(t.routeReuseStrategy,c.targetSnapshot,c.currentRouterState);return this.currentTransition=i={...c,targetRouterState:l},this.currentNavigation.targetRouterState=l,i}),W(()=>{this.events.next(new Ig)}),((e,n,t,r)=>ie(o=>(new X8(n,o.targetRouterState,o.currentRouterState,t,r).activate(e),o)))(this.rootContexts,t.routeReuseStrategy,c=>this.events.next(c),this.inputBindingEnabled),Ni(1),W({next:c=>{s=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new dr(c.id,this.urlSerializer.serialize(c.extractedUrl),this.urlSerializer.serialize(c.urlAfterRedirects))),this.titleStrategy?.updateTitle(c.targetRouterState.snapshot),c.resolve(!0)},complete:()=>{s=!0}}),function e8(e){return ot((n,t)=>{Vn(e).subscribe(We(t,()=>t.complete(),Lu)),!t.closed&&n.subscribe(t)})}(this.transitionAbortSubject.pipe(W(c=>{throw c}))),ya(()=>{!s&&!a&&this.cancelNavigationTransition(i,"",zt.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation=null,this.currentTransition=null)}),oe(c=>{if(a=!0,v1(c))this.events.next(new xi(i.id,this.urlSerializer.serialize(i.extractedUrl),c.message,c.cancellationCode)),function z8(e){return v1(e)&&Pi(e.url)}(c)?this.events.next(new Sg(c.url)):i.resolve(!1);else{this.events.next(new Eu(i.id,this.urlSerializer.serialize(i.extractedUrl),c,i.targetSnapshot??void 0));try{i.resolve(t.errorHandler(c))}catch(l){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(l)}}return $n}))}))}cancelNavigationTransition(t,r,o){const i=new xi(t.id,this.urlSerializer.serialize(t.extractedUrl),r,o);this.events.next(i),t.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==this.currentTransition?.extractedUrl.toString()&&!this.currentTransition?.extras.skipLocationChange}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();function ZV(e){return e!==Aa}let QV=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:()=>b(XV),providedIn:"root"})}}return e})();class YV{shouldDetach(n){return!1}store(n,t){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,t){return n.routeConfig===t.routeConfig}}let XV=(()=>{class e extends YV{static{this.\u0275fac=(()=>{let t;return function(o){return(t||(t=nt(e)))(o||e)}})()}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),A1=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:()=>b(KV),providedIn:"root"})}}return e})(),KV=(()=>{class e extends A1{constructor(){super(...arguments),this.location=b(wi),this.urlSerializer=b(Oi),this.options=b($i,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=b(zg),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new ki,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=l1(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){return"computed"!==this.canceledNavigationResolution?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(t){return this.location.subscribe(r=>{"popstate"===r.type&&t(r.url,r.state)})}handleRouterEvent(t,r){if(t instanceof wu)this.stateMemento=this.createStateMemento();else if(t instanceof Fi)this.rawUrlTree=r.initialUrl;else if(t instanceof i1){if("eager"===this.urlUpdateStrategy&&!r.extras.skipLocationChange){const o=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl);this.setBrowserUrl(o,r)}}else t instanceof Ig?(this.currentUrlTree=r.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(r.finalUrl,r.initialUrl),this.routerState=r.targetRouterState,"deferred"===this.urlUpdateStrategy&&(r.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,r))):t instanceof xi&&(t.code===zt.GuardRejected||t.code===zt.NoDataFromResolver)?this.restoreHistory(r):t instanceof Eu?this.restoreHistory(r,!0):t instanceof dr&&(this.lastSuccessfulId=t.id,this.currentPageId=this.browserPageId)}setBrowserUrl(t,r){const o=this.urlSerializer.serialize(t);if(this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl){const s={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId)};this.location.replaceState(o,"",s)}else{const i={...r.extras.state,...this.generateNgRouterState(r.id,this.browserPageId+1)};this.location.go(o,"",i)}}restoreHistory(t,r=!1){if("computed"===this.canceledNavigationResolution){const i=this.currentPageId-this.browserPageId;0!==i?this.location.historyGo(i):this.currentUrlTree===t.finalUrl&&0===i&&(this.resetState(t),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(t),this.resetUrlToCurrentUrlTree())}resetState(t){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,t.finalUrl??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(t,r){return"computed"===this.canceledNavigationResolution?{navigationId:t,\u0275routerPageId:r}:{navigationId:t}}static{this.\u0275fac=(()=>{let t;return function(o){return(t||(t=nt(e)))(o||e)}})()}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();var Fa=function(e){return e[e.COMPLETE=0]="COMPLETE",e[e.FAILED=1]="FAILED",e[e.REDIRECTING=2]="REDIRECTING",e}(Fa||{});function N1(e,n){e.events.pipe(cr(t=>t instanceof dr||t instanceof xi||t instanceof Eu||t instanceof Fi),ie(t=>t instanceof dr||t instanceof Fi?Fa.COMPLETE:t instanceof xi&&(t.code===zt.Redirect||t.code===zt.SupersededByNewNavigation)?Fa.REDIRECTING:Fa.FAILED),cr(t=>t!==Fa.REDIRECTING),Ni(1)).subscribe(()=>{n()})}function JV(e){throw e}const e9={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},t9={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let tt=(()=>{class e{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){this.disposed=!1,this.isNgZoneEnabled=!1,this.console=b(qw),this.stateManager=b(A1),this.options=b($i,{optional:!0})||{},this.pendingTasks=b(Mr),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=b(Au),this.urlSerializer=b(Oi),this.location=b(wi),this.urlHandlingStrategy=b(zg),this._events=new qt,this.errorHandler=this.options.errorHandler||JV,this.navigated=!1,this.routeReuseStrategy=b(QV),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=b(Bi,{optional:!0})?.flat()??[],this.componentInputBindingEnabled=!!b(bu,{optional:!0}),this.eventsSubscription=new It,this.isNgZoneEnabled=b(fe)instanceof fe&&fe.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:t=>{this.console.warn(t)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const t=this.navigationTransitions.events.subscribe(r=>{try{const o=this.navigationTransitions.currentTransition,i=this.navigationTransitions.currentNavigation;if(null!==o&&null!==i)if(this.stateManager.handleRouterEvent(r,i),r instanceof xi&&r.code!==zt.Redirect&&r.code!==zt.SupersededByNewNavigation)this.navigated=!0;else if(r instanceof dr)this.navigated=!0;else if(r instanceof Sg){const s=this.urlHandlingStrategy.merge(r.url,o.currentRawUrl),a={info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||ZV(o.source)};this.scheduleNavigation(s,Aa,null,a,{resolve:o.resolve,reject:o.reject,promise:o.promise})}(function r9(e){return!(e instanceof Ig||e instanceof Sg)})(r)&&this._events.next(r)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(t)}resetRootComponentType(t){this.routerState.root.component=t,this.navigationTransitions.rootComponentType=t}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Aa,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((t,r)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(t,"popstate",r)},0)})}navigateToSyncWithBrowser(t,r,o){const i={replaceUrl:!0},s=o?.navigationId?o:null;if(o){const c={...o};delete c.navigationId,delete c.\u0275routerPageId,0!==Object.keys(c).length&&(i.state=c)}const a=this.parseUrl(t);this.scheduleNavigation(a,r,s,i)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(t){this.config=t.map(Lg),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(t,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:c}=r,l=c?this.currentUrlTree.fragment:s;let d,u=null;switch(a){case"merge":u={...this.currentUrlTree.queryParams,...i};break;case"preserve":u=this.currentUrlTree.queryParams;break;default:u=i||null}null!==u&&(u=this.removeEmptyProps(u));try{d=Kb(o?o.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof t[0]||!t[0].startsWith("/"))&&(t=[]),d=this.currentUrlTree.root}return Jb(d,t,u,l??null)}navigateByUrl(t,r={skipLocationChange:!1}){const o=Pi(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,Aa,null,r)}navigate(t,r={skipLocationChange:!1}){return function n9(e){for(let n=0;n(null!=i&&(r[o]=i),r),{})}scheduleNavigation(t,r,o,i,s){if(this.disposed)return Promise.resolve(!1);let a,c,l;s?(a=s.resolve,c=s.reject,l=s.promise):l=new Promise((d,f)=>{a=d,c=f});const u=this.pendingTasks.add();return N1(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(u))}),this.navigationTransitions.handleNavigationRequest({source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:t,extras:i,resolve:a,reject:c,promise:l,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),l.catch(d=>Promise.reject(d))}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})(),vn=(()=>{class e{constructor(t,r,o,i,s,a){this.router=t,this.route=r,this.tabIndexAttribute=o,this.renderer=i,this.el=s,this.locationStrategy=a,this.href=null,this.commands=null,this.onChanges=new qt,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const c=s.nativeElement.tagName?.toLowerCase();this.isAnchorElement="a"===c||"area"===c,this.isAnchorElement?this.subscription=t.events.subscribe(l=>{l instanceof dr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(t){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",t)}ngOnChanges(t){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(t){null!=t?(this.commands=Array.isArray(t)?t:[t],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(t,r,o,i,s){const a=this.urlTree;return!!(null===a||this.isAnchorElement&&(0!==t||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(a,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){const t=this.urlTree;this.href=null!==t&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(t)):null;const r=null===this.href?null:function Ty(e,n,t){return function IA(e,n){return"src"===n&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===n&&("base"===e||"link"===e)?Sy:vf}(n,t)(e)}(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",r)}applyAttributeValue(t,r){const o=this.renderer,i=this.el.nativeElement;null!==r?o.setAttribute(i,t,r):o.removeAttribute(i,t)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static{this.\u0275fac=function(r){return new(r||e)(E(tt),E(Kt),function ds(e){return function iT(e,n){if("class"===n)return e.classes;if("style"===n)return e.styles;const t=e.attrs;if(t){const r=t.length;let o=0;for(;o{class e{get isActive(){return this._isActive}constructor(t,r,o,i,s){this.router=t,this.element=r,this.renderer=o,this.cdr=i,this.link=s,this.classes=[],this._isActive=!1,this.routerLinkActiveOptions={exact:!1},this.isActiveChange=new ke,this.routerEventsSubscription=t.events.subscribe(a=>{a instanceof dr&&this.update()})}ngAfterContentInit(){$(this.links.changes,$(null)).pipe(Ma()).subscribe(t=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();const t=[...this.links.toArray(),this.link].filter(r=>!!r).map(r=>r.onChanges);this.linkInputChangesSubscription=et(t).pipe(Ma()).subscribe(r=>{this._isActive!==this.isLinkActive(this.router)(r)&&this.update()})}set routerLinkActive(t){const r=Array.isArray(t)?t:t.split(" ");this.classes=r.filter(o=>!!o)}ngOnChanges(t){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{const t=this.hasActiveLinks();this.classes.forEach(r=>{t?this.renderer.addClass(this.element.nativeElement,r):this.renderer.removeClass(this.element.nativeElement,r)}),t&&void 0!==this.ariaCurrentWhenActive?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==t&&(this._isActive=t,this.cdr.markForCheck(),this.isActiveChange.emit(t))})}isLinkActive(t){const r=function o9(e){return!!e.paths}(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{const i=o.urlTree;return!!i&&t.isActive(i,r)}}hasActiveLinks(){const t=this.isLinkActive(this.router);return this.link&&t(this.link)||this.links.some(t)}static{this.\u0275fac=function(r){return new(r||e)(E(tt),E(Vt),E(nr),E(ia),E(vn,8))}}static{this.\u0275dir=B({type:e,selectors:[["","routerLinkActive",""]],contentQueries:function(r,o,i){if(1&r&&iw(i,vn,5),2&r){let s;Xs(s=Ks())&&(o.links=s)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],standalone:!0,features:[Zt]})}}return e})();class k1{}let i9=(()=>{class e{constructor(t,r,o,i,s){this.router=t,this.injector=o,this.preloadingStrategy=i,this.loader=s}setUpPreloading(){this.subscription=this.router.events.pipe(cr(t=>t instanceof dr),Ii(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(t,r){const o=[];for(const i of r){i.providers&&!i._injector&&(i._injector=tl(i.providers,t,`Route: ${i.path}`));const s=i._injector??t,a=i._loadedInjector??s;(i.loadChildren&&!i._loadedRoutes&&void 0===i.canLoad||i.loadComponent&&!i._loadedComponent)&&o.push(this.preloadConfig(s,i)),(i.children||i._loadedRoutes)&&o.push(this.processRoutes(a,i.children??i._loadedRoutes))}return et(o).pipe(Ma())}preloadConfig(t,r){return this.preloadingStrategy.preload(r,()=>{let o;o=r.loadChildren&&void 0===r.canLoad?this.loader.loadChildren(t,r):$(null);const i=o.pipe(mt(s=>null===s?$(void 0):(r._loadedRoutes=s.routes,r._loadedInjector=s.injector,this.processRoutes(s.injector??t,s.routes))));return r.loadComponent&&!r._loadedComponent?et([i,this.loader.loadComponent(r)]).pipe(Ma()):i})}static{this.\u0275fac=function(r){return new(r||e)(k(tt),k(n0),k(vt),k(k1),k(Hg))}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac,providedIn:"root"})}}return e})();const Gg=new N("");let O1=(()=>{class e{constructor(t,r,o,i,s={}){this.urlSerializer=t,this.transitions=r,this.viewportScroller=o,this.zone=i,this.options=s,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=b(vt),s.scrollPositionRestoration||="disabled",s.anchorScrolling||="disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof wu?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=t.navigationTrigger,this.restoredId=t.restoredState?t.restoredState.navigationId:0):t instanceof dr?(this.lastId=t.id,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.urlAfterRedirects).fragment)):t instanceof Fi&&t.code===Mu.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(t,this.urlSerializer.parse(t.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(t=>{t instanceof s1&&(t.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(t.position):t.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(t.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(t,r){var o=this;this.zone.runOutsideAngular(Co(function*(){yield new Promise(i=>{setTimeout(()=>{i()}),Jf(()=>{i()},{injector:o.environmentInjector})}),o.zone.run(()=>{o.transitions.events.next(new s1(t,"popstate"===o.lastSource?o.store[o.restoredId]:null,r))})}))}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static{this.\u0275fac=function(r){!function Ky(){throw new Error("invalid")}()}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac})}}return e})();function Gn(e,n){return{\u0275kind:e,\u0275providers:n}}function x1(){const e=b(_t);return n=>{const t=e.get(Ir);if(n!==t.components[0])return;const r=e.get(tt),o=e.get(F1);1===e.get(qg)&&r.initialNavigation(),e.get(L1,null,K.Optional)?.setUpPreloading(),e.get(Gg,null,K.Optional)?.init(),r.resetRootComponentType(t.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}const F1=new N("",{factory:()=>new qt}),qg=new N("",{providedIn:"root",factory:()=>1}),L1=new N("");function l9(e){return Gn(0,[{provide:L1,useExisting:i9},{provide:k1,useExisting:e}])}function d9(e){return Gn(9,[{provide:S1,useValue:qV},{provide:T1,useValue:{skipNextTransition:!!e?.skipInitialTransition,...e}}])}const V1=new N("ROUTER_FORROOT_GUARD"),f9=[wi,{provide:Oi,useClass:Dg},tt,Na,{provide:Kt,useFactory:function P1(e){return e.routerState.root},deps:[tt]},Hg,[]];let j1=(()=>{class e{constructor(t){}static forRoot(t,r){return{ngModule:e,providers:[f9,[],{provide:Bi,multi:!0,useValue:t},{provide:V1,useFactory:m9,deps:[[tt,new Qa,new Ya]]},{provide:$i,useValue:r||{}},r?.useHash?{provide:Ar,useClass:Z0}:{provide:Ar,useClass:W0},{provide:Gg,useFactory:()=>{const e=b(c4),n=b(fe),t=b($i),r=b(Au),o=b(Oi);return t.scrollOffset&&e.setOffset(t.scrollOffset),new O1(o,r,e,n,t)}},r?.preloadingStrategy?l9(r.preloadingStrategy).\u0275providers:[],r?.initialNavigation?v9(r):[],r?.bindToComponentInputs?Gn(8,[h1,{provide:bu,useExisting:h1}]).\u0275providers:[],r?.enableViewTransitions?d9().\u0275providers:[],[{provide:U1,useFactory:x1},{provide:Jh,multi:!0,useExisting:U1}]]}}static forChild(t){return{ngModule:e,providers:[{provide:Bi,multi:!0,useValue:t}]}}static{this.\u0275fac=function(r){return new(r||e)(k(V1,8))}}static{this.\u0275mod=wn({type:e})}static{this.\u0275inj=Jt({})}}return e})();function m9(e){return"guarded"}function v9(e){return["disabled"===e.initialNavigation?Gn(3,[{provide:Xh,multi:!0,useFactory:()=>{const n=b(tt);return()=>{n.setUpLocationChangeListener()}}},{provide:qg,useValue:2}]).\u0275providers:[],"enabledBlocking"===e.initialNavigation?Gn(2,[{provide:qg,useValue:0},{provide:Xh,multi:!0,deps:[_t],useFactory:n=>{const t=n.get($x,Promise.resolve());return()=>t.then(()=>new Promise(r=>{const o=n.get(tt),i=n.get(F1);N1(o,()=>{r(!0)}),n.get(Au).afterPreactivation=()=>(r(!0),i.closed?$(void 0):i),o.initialNavigation()}))}}]).\u0275providers:[]]}const U1=new N("");class Gt{static{this.REST_URL=Un_restServerUrl+"/api/user"}constructor(n,t,r){this.http=n,this.router=t,this.appMessageService=r,this.authenticated=!1,this.credentials={username:"",password:""},this.authority="none",this.httpOptions={headers:new Be({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n){return Vr(n,this.appMessageService,this.constructor.name)}log(n){this.appMessageService.add(`${this.constructor.name}: ${n}`)}isAuthenticated(){return this.authenticated}getAuthorizationToken(){return`Basic ${window.btoa(this.credentials.username+":"+this.credentials.password)}`}getUsername(){return this.credentials.username}getAuthority(){return this.authority}authenticate(n){this.log(`Authenticating: ${n.username}`),this.credentials=n;const t=new Be({"Content-Type":"application/json",Accept:"application/json",Authorization:this.getAuthorizationToken()});return this.http.get(Gt.REST_URL,{headers:t}).pipe(W(r=>this.authorizationRecieved(r)),oe(this.handleError("authenticating user")))}logout(){this.authenticated=!1,this.log("Logged out"),this.router.navigateByUrl("/").then(()=>{})}authorizationRecieved(n){if(this.authenticated=!0,n.authorities){let t=n.authorities[0].authority;t=t.substring(t.indexOf("_")+1),this.authority=t}this.log(`Authenticated '${n.name}' as '${this.authority}'`)}changePassword(n){this.log("Changing password.");const t=pg(10),r=xb(n,t);let o={};return o.username=this.credentials.username,o.password=r,this.http.post(Gt.REST_URL,o,this.httpOptions).pipe(W(i=>this.authorizationRecieved(i)),oe(this.handleError("changePassword")))}static{this.\u0275fac=function(t){return new(t||Gt)(k(lr),k(tt),k(ur))}}static{this.\u0275prov=R({token:Gt,factory:Gt.\u0275fac,providedIn:"root"})}}const C9=["scrollMe"];function _9(e,n){if(1&e&&(m(0,"li")(1,"div",9)(2,"span",10),y(3),g(),m(4,"span",11),y(5),st(6,"date"),g(),m(7,"span",12),y(8),g()(),m(9,"span",13),y(10),g()()),2&e){const t=n.$implicit;C(3),q(t.id),C(2),q(dn(6,4,t.dateCreated,"medium")),C(3),q(t.author),C(2),q(t.text)}}function D9(e,n){if(1&e&&(m(0,"ul",7,0),Ve(2,_9,11,7,"li",8),g()),2&e){const t=$e();C(2),O("ngForOf",t.chatMessages)}}let Wg=(()=>{class e{constructor(t,r){this.chatService=t,this.loginService=r,this.disableScrollDown=!1,this.chatMessages=[],this.newMessage="",this.serviceMessage="",this.errorMessage=""}getChatMessages(){this.serviceMessage="Loading chat ...",this.chatService.getChatMessages().subscribe({next:t=>{this.chatMessages=t,this.scrollToBottom(),this.serviceMessage="Loaded chat."},error:t=>{this.serviceMessage="",this.errorMessage=`Error loading chat: ${t.message}`}})}ngOnInit(){this.loginService.isAuthenticated()&&this.getChatMessages()}sendMessage(){this.serviceMessage="Sending message ...",this.chatService.addChatMessage(this.loginService.getUsername(),this.newMessage).subscribe({next:t=>{this.chatMessages.push(t),this.serviceMessage="Send OK.",this.disableScrollDown=!1,this.scrollToBottom()},error:t=>{this.serviceMessage="",this.errorMessage=`Error loading chat: ${t.message}`}}),this.newMessage=""}ngAfterViewChecked(){this.scrollToBottom()}scrollToBottom(){try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}static{this.\u0275fac=function(r){return new(r||e)(E(mo),E(Gt))}}static{this.\u0275cmp=at({type:e,selectors:[["app-chat"]],viewQuery:function(r,o){if(1&r&&yl(C9,5),2&r){let i;Xs(i=Ks())&&(o.myScrollContainer=i.first)}},decls:11,vars:6,consts:[["scrollMe",""],[1,"servicemessage",3,"hidden"],[1,"alert","servicemessage",3,"hidden"],["class","chat",4,"ngIf"],[1,"input"],["id","message-text","placeholder","hello",3,"ngModelChange","keydown.enter","ngModel"],[3,"click"],[1,"chat"],[4,"ngFor","ngForOf"],[1,"message-title"],[1,"badge"],[1,"date"],[1,"author"],[1,"text"]],template:function(r,o){1&r&&(m(0,"p",1),y(1),g(),m(2,"p",2),y(3),g(),Ve(4,D9,3,1,"ul",3),m(5,"div",4)(6,"input",5),te("ngModelChange",function(s){return re(o.newMessage,s)||(o.newMessage=s),s}),A("keydown.enter",function(){return o.sendMessage()}),g(),m(7,"button",6),A("click",function(){return o.sendMessage()}),y(8,"Send"),g(),m(9,"button",6),A("click",function(){return o.getChatMessages()}),y(10,"Reload"),g()()),2&r&&(O("hidden",""===o.serviceMessage),C(),q(o.serviceMessage),C(),O("hidden",""===o.errorMessage),C(),q(o.errorMessage),C(),O("ngIf",o.chatMessages.length),C(2),ee("ngModel",o.newMessage))},dependencies:[hn,Mp,Et,Ht,kt,Nr],styles:[".chat[_ngcontent-%COMP%]{margin:0;list-style-type:none;padding:.1em;max-height:20em;overflow:auto;background-color:#30303040;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}"]})}}return e})();const w9=["scrollMe"];function M9(e,n){if(1&e&&(m(0,"p"),y(1),g()),2&e){const t=n.$implicit;C(),q(t)}}function E9(e,n){if(1&e){const t=rr();m(0,"div",2)(1,"div")(2,"button",3),A("click",function(){return Ne(t),Re($e().appMessagesService.clear())}),y(3,"Clear messages"),g(),m(4,"h2"),y(5,"App messages"),g()(),m(6,"div",4,0),A("scroll",function(){return Ne(t),Re($e().onScroll())}),Ve(8,M9,2,1,"p",5),g()()}if(2&e){const t=$e();C(8),O("ngForOf",t.appMessagesService.messages)}}let b9=(()=>{class e{constructor(t){this.appMessagesService=t,this.disableScrollDown=!1}ngAfterViewChecked(){this.scrollToBottom()}onScroll(){let t=this.myScrollContainer.nativeElement;this.disableScrollDown=!(this.disableScrollDown&&t.scrollHeight-t.scrollTop===t.clientHeight)}scrollToBottom(){if(!this.disableScrollDown)try{this.myScrollContainer.nativeElement.scrollTop=this.myScrollContainer.nativeElement.scrollHeight}catch{}}static{this.\u0275fac=function(r){return new(r||e)(E(ur))}}static{this.\u0275cmp=at({type:e,selectors:[["app-messages"]],viewQuery:function(r,o){if(1&r&&yl(w9,5),2&r){let i;Xs(i=Ks())&&(o.myScrollContainer=i.first)}},decls:1,vars:1,consts:[["scrollMe",""],["class","app-messages",4,"ngIf"],[1,"app-messages"],["type","button",1,"clear",3,"click"],[1,"output",3,"scroll"],[4,"ngFor","ngForOf"]],template:function(r,o){1&r&&Ve(0,E9,9,1,"div",1),2&r&&O("ngIf",o.appMessagesService.messages.length)},dependencies:[hn,Mp],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}"]})}}return e})();const $1=()=>({exact:!0});let I9=(()=>{class e{constructor(t,r){this.loginService=t,this.location=r,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}ngOnInit(){this.location.onUrlChange(()=>this.hideMenus()),this.detectTheme()}hideMenus(){this.linksHidden=!0,this.profileHidden=!0}isAppMessagesHidden(){return!(this.loginService.isAuthenticated()&&"ADMIN"===this.loginService.getAuthority())}isAuthenticated(){return this.loginService.isAuthenticated()}username(){return this.loginService.getUsername()}logout(){localStorage.setItem("username",""),localStorage.setItem("password",""),this.loginService.logout()}toggleLinks(){this.linksHidden=!this.linksHidden,this.profileHidden=!0}isLinksHidden(){return this.linksHidden}toggleProfile(){this.profileHidden=!this.profileHidden,this.linksHidden=!0}isProfileHidden(){return this.profileHidden}toggleChatHidden(t){if(this.chatHidden=!this.chatHidden,!this.chatHidden&&!this.chatLoaded&&(this.chatComponent.getChatMessages(),this.chatLoaded=!0),this.chatHidden){const r=document.getElementById("chatwindow"),o=r.getBoundingClientRect();o.right>window.innerWidth&&(r.style.left=window.innerWidth-o.width+"px"),o.bottom>window.innerHeight&&(r.style.top=window.innerHeight-o.height+"px")}t.stopImmediatePropagation()}isChatHidden(){return this.chatHidden}startMouseDragging(t){t.target instanceof Element&&"chattitlebar"!=t.target.getAttribute("id")||0===t.button&&(t.preventDefault(),this.pos3=t.clientX,this.pos4=t.clientY,document.onmouseup=()=>this.endMouseDrag(),document.onmousemove=r=>this.mouseDragElement(r),this.target=document.getElementById("chatwindow"))}mouseDragElement(t){t.preventDefault(),this.pos1=this.pos3-t.clientX,this.pos2=this.pos4-t.clientY,this.pos3=t.clientX,this.pos4=t.clientY;let r=this.target.offsetTop-this.pos2;r<0&&(r=0),r>window.innerHeight-100&&(r=window.innerHeight-100),this.target.style.top=r+"px";let o=this.target.offsetLeft-this.pos1;o<0&&(o=0),o>window.innerWidth-200&&(o=window.innerWidth-200),this.target.style.left=o+"px"}endMouseDrag(){document.onmouseup=null,document.onmousemove=null,this.target=null}startTouchDragging(t){t.preventDefault(),this.pos3=t.targetTouches[0].clientX,this.pos4=t.targetTouches[0].clientY,document.ontouchend=()=>this.endTouchDrag(),document.ontouchmove=r=>this.touchDragElement(r),this.target=document.getElementById("chatwindow")}touchDragElement(t){t.preventDefault(),this.pos1=this.pos3-t.targetTouches[0].clientX,this.pos2=this.pos4-t.targetTouches[0].clientY,this.pos3=t.targetTouches[0].clientX,this.pos4=t.targetTouches[0].clientY;let r=this.target.offsetTop-this.pos2;r<0&&(r=0),this.target.style.top=r+"px";let o=this.target.offsetLeft-this.pos1;o<0&&(o=0),this.target.style.left=o+"px"}endTouchDrag(){document.ontouchend=null,document.ontouchmove=null,this.target=null}toggleTheme(){const t="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(t),r.classList.contains(t)?localStorage.setItem("theme",t):localStorage.setItem("theme","theme-light")}setTheme(t){const r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.add(t),localStorage.setItem("theme",t)}detectTheme(){const t=localStorage.getItem("theme");"theme-dark"!==t&&"theme-light"!==t?window.matchMedia("(prefers-color-scheme: dark)").matches?this.setTheme("theme-dark"):(window.matchMedia("(prefers-color-scheme: light)"),this.setTheme("theme-light")):this.setTheme(t)}static{this.\u0275fac=function(r){return new(r||e)(E(Gt),E(wi))}}static{this.\u0275cmp=at({type:e,selectors:[["app-root"]],viewQuery:function(r,o){if(1&r&&yl(Wg,5),2&r){let i;Xs(i=Ks())&&(o.chatComponent=i.first)}},decls:69,vars:14,consts:[[3,"hidden"],[1,"nav-toggle",3,"click"],[1,"nav-toggle","float-right",3,"click"],["id","links",3,"hidden"],[1,"title-link"],["routerLinkActive","active-link","routerLink","/",3,"routerLinkActiveOptions"],["routerLinkActive","active-link","routerLink","/checklists"],["routerLinkActive","active-link","routerLink","/contacts"],["routerLinkActive","active-link","routerLink","/notes"],["routerLinkActive","active-link","routerLink","/mychecklists"],["routerLinkActive","active-link","routerLink","/mynotes"],[3,"click"],["id","profile",3,"hidden"],["routerLinkActive","active-link","routerLink","/profile"],["id","logout",3,"click"],["title","Dark theme on/off",3,"click"],[1,"float-right"],["routerLinkActive","active-link","routerLink","/login"],["id","tools",3,"hidden"],["id","chatwindow",3,"hidden"],["id","chattitlebar",3,"mousedown","touchstart"],["id","chattitle"],[1,"close-button",3,"click"],["id","chatcontent"],[1,"footer",3,"hidden"]],template:function(r,o){1&r&&(m(0,"nav")(1,"span",0)(2,"button",1),A("click",function(){return o.toggleLinks()}),y(3,"\u2261"),g(),m(4,"button",2),A("click",function(){return o.toggleProfile()}),y(5),g(),m(6,"div",3)(7,"ul")(8,"li")(9,"button",1),A("click",function(){return o.toggleLinks()}),y(10,"\u2261"),g()(),m(11,"li",4),y(12,"Family:"),g(),m(13,"li")(14,"a",5),y(15,"Home"),g()(),m(16,"li")(17,"a",6),y(18,"Checklists"),g()(),m(19,"li")(20,"a",7),y(21,"Contacts"),g()(),m(22,"li")(23,"a",8),y(24,"Notes"),g()(),m(25,"li",4),y(26,"Personal:"),g(),m(27,"li")(28,"a",9),y(29,"Checklists"),g()(),m(30,"li")(31,"a",10),y(32,"Notes"),g()(),m(33,"li")(34,"button",11),A("click",function(s){return o.toggleChatHidden(s)}),y(35,"Chat"),g()()()(),m(36,"div",12)(37,"ul")(38,"li")(39,"button",1),A("click",function(){return o.toggleProfile()}),y(40),g()(),m(41,"li")(42,"a",13),y(43,"Profile"),g()(),m(44,"li")(45,"a",14),A("click",function(){return o.logout()}),y(46,"Logout"),g()(),m(47,"li")(48,"button",15),A("click",function(){return o.toggleTheme()}),y(49,"\u2600 Theme"),g()()()()(),m(50,"span",0)(51,"h1",16),y(52),g(),m(53,"a",5),y(54,"Home"),g(),m(55,"a",17),y(56,"Login"),g()()(),m(57,"div",18)(58,"div",19)(59,"div",20),A("mousedown",function(s){return o.startMouseDragging(s)})("touchstart",function(s){return o.startTouchDragging(s)}),m(60,"span",21),y(61,"Chat"),g(),m(62,"button",22),A("click",function(s){return o.toggleChatHidden(s)}),y(63,"\u2716"),g()(),m(64,"div",23),V(65,"app-chat"),g()()(),m(66,"main"),V(67,"router-outlet"),g(),V(68,"app-messages",24)),2&r&&(C(),O("hidden",!o.isAuthenticated()),C(4),q(o.username()),C(),O("hidden",o.isLinksHidden()),C(8),O("routerLinkActiveOptions",Bh(12,$1)),C(22),O("hidden",o.isProfileHidden()),C(4),q(o.username()),C(10),O("hidden",o.isAuthenticated()),C(2),q(o.title),C(),O("routerLinkActiveOptions",Bh(13,$1)),C(4),O("hidden",!o.isAuthenticated()),C(),O("hidden",o.isChatHidden()),C(10),O("hidden",o.isAppMessagesHidden()))},dependencies:[xg,vn,R1,b9,Wg],styles:[".big[_ngcontent-%COMP%]{font-size:x-large}.nav-toggle[_ngcontent-%COMP%]{font-size:x-large;border:none;background:none;padding:0 .2em}.nav-toggle[_ngcontent-%COMP%]:hover{background-color:#42545c42;-webkit-text-decoration:underline #83b6f9;text-decoration:underline #83b6f9}.float-right[_ngcontent-%COMP%]{margin:0;float:right}nav[_ngcontent-%COMP%]{display:block;background:#93c6f948 linear-gradient(80deg,#84a8cd 05%,#91b9e0 30%,#0000);border-bottom:1px solid #336699;padding:.4em}nav[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;float:right}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:.2rem;padding:.2rem .3rem;text-decoration:none;text-shadow:2px 2px 2px #40404080;display:inline-block;border-radius:2px}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]:hover{color:#fff;background-color:#42545c;-webkit-text-decoration:underline #93c6f9;text-decoration:underline #93c6f9}.active-link[_ngcontent-%COMP%]{background-color:#00000048}.title-link[_ngcontent-%COMP%]{text-decoration:underline}#profile[_ngcontent-%COMP%]{box-shadow:3px 3px 3px #0006;border:1px solid #336699;z-index:2;position:fixed;padding:.4em;top:0;right:0;background:#91b9e0;border-bottom-left-radius:.4em}#profile[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:0;text-align:center}#profile[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:block;text-decoration:none}#profile[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%;margin:1px}#links[_ngcontent-%COMP%]{box-shadow:3px 3px 3px #0006;border:1px solid #336699;z-index:2;position:fixed;padding:.4em;top:0;left:0;background:#84a8cd;border-end-end-radius:.4em}#links[_ngcontent-%COMP%] ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:0}#links[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{display:block;text-decoration:none}#links[_ngcontent-%COMP%] ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > button[_ngcontent-%COMP%]{width:100%;margin:1px}#logout[_ngcontent-%COMP%]{color:#ef4040;cursor:pointer}#logout[_ngcontent-%COMP%]:hover{background-color:#604040}#chatwindow[_ngcontent-%COMP%]{border:1px solid black;z-index:9990;background:#f0f0f080;border-radius:2px;-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);box-shadow:3px 3px 3px #0006;position:fixed;top:5em;left:5em}#chattitlebar[_ngcontent-%COMP%]{border-bottom:1px solid black;background:#d0d0d080;cursor:grab}#chatcontent[_ngcontent-%COMP%]{padding:2px}#chattitle[_ngcontent-%COMP%]{margin:2px;display:inline-block}.close-button[_ngcontent-%COMP%]{padding:1px 5px;margin:1px;float:right;background:#f99}"]})}}return e})();class $r{static{this.REST_URL=Un_restServerUrl+"/api/news"}constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Be({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n){return Vr(n,this.appMessageService,this.constructor.name)}log(n){this.appMessageService.add(`${this.constructor.name}: ${n}`)}getNewsPosts(){return this.http.get($r.REST_URL,this.httpOptions).pipe(W(n=>this.log(`fetched ${n.length} news posts`)),oe(this.handleError("getNews")))}addNewsPost(n,t){return this.http.post($r.REST_URL,{author:n,text:t},this.httpOptions).pipe(W(o=>this.log(`added message w/ id=${o.id}`)),oe(this.handleError("addNewsPost")))}deleteNewsPost(n){return this.http.delete(`${$r.REST_URL}/${n}`,this.httpOptions).pipe(W(r=>this.log(`deleted newspost id=${n}`)),oe(this.handleError("deleteNewsPost")))}static{this.\u0275fac=function(t){return new(t||$r)(k(lr),k(ur))}}static{this.\u0275prov=R({token:$r,factory:$r.\u0275fac,providedIn:"root"})}}function S9(e,n){if(1&e){const t=rr();m(0,"div",15)(1,"span")(2,"b"),y(3),g(),y(4),st(5,"date"),g(),m(6,"button",16),A("click",function(){const o=Ne(t).$implicit;return Re($e().delete(o))}),y(7,"x"),g(),V(8,"p",17),g()}if(2&e){const t=n.$implicit,r=$e();C(3),q(t.author),C(),Oe(" posted on ",dn(5,4,t.dateCreated,"medium"),""),C(2),O("hidden",!r.isAdmin()),C(2),O("innerHTML",t.text,mf)}}let T9=(()=>{class e{constructor(t,r){this.loginService=t,this.newsService=r,this.newNewsMessage="",this.newsMessages=[],this.serviceMessage="",this.errorMessage=""}getNews(){this.loginService.isAuthenticated()&&(this.serviceMessage="Loading news messages ...",this.newsService.getNewsPosts().subscribe({next:t=>{this.newsMessages=t.reverse(),this.serviceMessage=""},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading news: ${t.message}`}}))}ngOnInit(){this.getNews()}reload(){this.getNews()}isAuthenticated(){return this.loginService.isAuthenticated()}isAdmin(){return"ADMIN"===this.loginService.getAuthority()}username(){return this.loginService.getUsername()}newNewsKeyDown(t){"Enter"===t.key&&t.ctrlKey&&(t.preventDefault(),this.addNews())}addNews(){""!==this.newNewsMessage&&(this.serviceMessage="Adding news ...",this.errorMessage="",this.newsService.addNewsPost(this.loginService.getUsername(),this.newNewsMessage).subscribe({next:t=>{this.newsMessages.unshift(t),this.serviceMessage="Added news."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while adding news: ${t.message}`}}),this.newNewsMessage="")}delete(t){window.confirm("Do you realy want to delete this newspost?")&&(this.serviceMessage="Removing newspost ...",this.newsService.deleteNewsPost(t.id).subscribe({next:()=>{this.newsMessages=this.newsMessages.filter(r=>r!==t),this.serviceMessage="Removed newspost."},error:r=>{this.serviceMessage="",this.errorMessage=`Error while removing newspost: ${r.message}`}}))}static{this.\u0275fac=function(r){return new(r||e)(E(Gt),E($r))}}static{this.\u0275cmp=at({type:e,selectors:[["app-home"]],decls:45,vars:9,consts:[[3,"hidden"],[1,"reload-btn",3,"click"],[1,"alert",3,"hidden"],[1,"context"],["class","message",4,"ngFor","ngForOf"],[1,"input",3,"hidden"],["for","input-item"],["id","input-text","placeholder","X happened!",1,"big-text-input",3,"ngModelChange","keydown","ngModel"],[3,"click"],[1,"title-link"],["routerLink","/checklists"],["routerLink","/contacts"],["routerLink","/notes"],["routerLink","/mychecklists"],["routerLink","/mynotes"],[1,"message"],["type","button","title","Delete newspost",1,"delete",3,"click","hidden"],[1,"text",3,"innerHTML"]],template:function(r,o){1&r&&(m(0,"span",0)(1,"h2"),y(2,"News:"),g(),m(3,"button",1),A("click",function(){return o.reload()}),y(4,"Reload"),g(),m(5,"p",0),y(6),g(),m(7,"p",2),y(8),g(),m(9,"div",3),Ve(10,S9,9,7,"div",4),g(),m(11,"div",5)(12,"h3"),y(13,"Add news:"),g(),m(14,"label",6),y(15,"message:"),g(),V(16,"br"),m(17,"textarea",7),te("ngModelChange",function(s){return re(o.newNewsMessage,s)||(o.newNewsMessage=s),s}),A("keydown",function(s){return o.newNewsKeyDown(s)}),g(),m(18,"button",8),A("click",function(){return o.addNews()}),y(19,"Add news message"),g()(),V(20,"br"),m(21,"h2"),y(22,"Links:"),g(),m(23,"ul")(24,"li",9),y(25,"Family:"),g(),m(26,"li")(27,"a",10),y(28,"Checklists"),g()(),m(29,"li")(30,"a",11),y(31,"Contacts"),g()(),m(32,"li")(33,"a",12),y(34,"Notes"),g()(),m(35,"li",9),y(36,"Personal:"),g(),m(37,"li")(38,"a",13),y(39,"Checklists"),g()(),m(40,"li")(41,"a",14),y(42,"Notes"),g()()()(),m(43,"p",0),y(44,"Welcome to our family site! Please login."),g()),2&r&&(O("hidden",!o.isAuthenticated()),C(5),O("hidden",""===o.serviceMessage),C(),q(o.serviceMessage),C(),O("hidden",""===o.errorMessage),C(),q(o.errorMessage),C(2),O("ngForOf",o.newsMessages),C(),O("hidden",!o.isAdmin()),C(6),ee("ngModel",o.newNewsMessage),C(26),O("hidden",o.isAuthenticated()))},dependencies:[hn,Et,Ht,kt,vn,Nr],styles:[".context[_ngcontent-%COMP%]{margin-bottom:.4em}.message[_ngcontent-%COMP%]{padding:.2em;margin-bottom:.8em;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}ul[_ngcontent-%COMP%]{list-style-type:none;margin:0;padding:0}ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{margin-left:1em;text-decoration:none}.text[_ngcontent-%COMP%]{white-space:pre-wrap;margin:.4em .2em}"]})}}return e})(),A9=(()=>{class e{constructor(t,r,o){this.loginService=t,this.router=r,this.route=o,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(){const t=this.route.snapshot.queryParamMap.get("r");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(t||"/")},error:r=>{console.log("Login failed",r),this.errorMessage=`Login failed: ${r.message}`,this.serviceMessage=""}}),!1;this.errorMessage="Login failed: Username and password required."}static{this.\u0275fac=function(r){return new(r||e)(E(Gt),E(tt),E(Kt))}}static{this.\u0275cmp=at({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,"ngModelChange","ngModel"],["for","password"],["type","password","id","password","name","password","placeholder","password",1,"form-control",3,"ngModelChange","ngModel"],["for","rememberme"],["type","checkbox","id","rememberme","name","rememberme",1,"form-control",3,"ngModelChange","ngModel"],["type","submit",1,"btn","btn-primary"]],template:function(r,o){1&r&&(m(0,"h2"),y(1,"Login form"),g(),m(2,"p",0),y(3),g(),m(4,"p",1),y(5),g(),m(6,"form",2),A("submit",function(){return o.login()}),m(7,"div",3)(8,"label",4),y(9,"Username:"),g(),m(10,"input",5),te("ngModelChange",function(s){return re(o.credentials.username,s)||(o.credentials.username=s),s}),g()(),m(11,"div",3)(12,"label",6),y(13,"Password:"),g(),m(14,"input",7),te("ngModelChange",function(s){return re(o.credentials.password,s)||(o.credentials.password=s),s}),g()(),m(15,"div",3)(16,"label",8),y(17,"Remember me:"),g(),m(18,"input",9),te("ngModelChange",function(s){return re(o.rememberme,s)||(o.rememberme=s),s}),g()(),m(19,"button",10),y(20,"Login"),g()()),2&r&&(C(2),O("hidden",""===o.serviceMessage),C(),q(o.serviceMessage),C(),O("hidden",""===o.errorMessage),C(),q(o.errorMessage),C(5),ee("ngModel",o.credentials.username),C(4),ee("ngModel",o.credentials.password),C(4),ee("ngModel",o.rememberme))},dependencies:[BE,Et,ha,Ht,AE,kt,iu],styles:["button[_ngcontent-%COMP%]{border:revert}"]})}}return e})();const qn=(e,n)=>{const t=b(Gt),r=b(tt);return!!t.isAuthenticated()||r.navigate(["/login"],{queryParams:{r:n.url}})};class yn{static{this.REST_URL=Un_restServerUrl+"/api/contacts"}constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Be({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n){return Vr(n,this.appMessageService,this.constructor.name)}log(n){this.appMessageService.add(`${this.constructor.name}: ${n}`)}getContacts(){return this.http.get(yn.REST_URL,this.httpOptions).pipe(W(n=>this.log(`fetched ${n.length} contacts`)),oe(this.handleError("getContacts")))}getContact(n){return this.http.get(`${yn.REST_URL}/${n}`,this.httpOptions).pipe(W(t=>this.log(`fetched Contact ${t.id}`)),oe(this.handleError("getContact")))}addContact(n){return this.http.post(yn.REST_URL,n,this.httpOptions).pipe(W(t=>this.log(`added contact w/ id=${t.id}`)),oe(this.handleError("addContact")))}saveContact(n){return this.http.post(yn.REST_URL,n,this.httpOptions).pipe(W(t=>this.log(`saved contact w/ id=${t.id}`)),oe(this.handleError("addContact")))}deleteContact(n){return this.http.delete(`${yn.REST_URL}/${n}`,this.httpOptions).pipe(W(r=>this.log(`deleted contact id=${n}`)),oe(this.handleError("deleteContact")))}static{this.\u0275fac=function(t){return new(t||yn)(k(lr),k(ur))}}static{this.\u0275prov=R({token:yn,factory:yn.\u0275fac,providedIn:"root"})}}const N9=e=>["/contact",e];function R9(e,n){if(1&e&&(m(0,"li")(1,"a",21)(2,"span",22)(3,"span",23),y(4),g(),V(5,"br"),y(6),V(7,"br"),y(8),V(9,"br"),y(10),V(11,"br"),y(12,"Website: "),m(13,"span"),y(14),g(),V(15,"br"),y(16),g()()()),2&e){const t=n.$implicit;C(),O("routerLink",vi(8,N9,t.id)),C(3),Cl("",t.firstName," ",t.lastName,""),C(2),Oe("Telephone: ",t.telephone," "),C(2),Oe("E-mail: ",t.email," "),C(2),Oe("Address: ",t.address," "),C(4),q(t.website),C(2),Oe("Description: ",t.description,"")}}let k9=(()=>{class e{constructor(t){this.contactsService=t,this.contacts=[],this.newContact={},this.serviceMessage="",this.errorMessage=""}getContacts(){this.serviceMessage="Loading contacts ...",this.contactsService.getContacts().subscribe({next:t=>{this.contacts=t,this.serviceMessage=t.length?"":"No contacts in database."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading contacts: ${t.message}`}})}ngOnInit(){this.getContacts()}reload(){this.getContacts()}sendContact(){this.serviceMessage="Adding contact ...",this.contactsService.addContact(this.newContact).subscribe({next:t=>{this.contacts.push(t),this.serviceMessage="Added contact."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while adding contact: ${t.message}`}}),this.newContact={}}static{this.\u0275fac=function(r){return new(r||e)(E(yn))}}static{this.\u0275cmp=at({type:e,selectors:[["app-contacts"]],decls:44,vars:12,consts:[[1,"reload-btn",3,"click"],[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"form-group"],["for","input-firstName"],["id","input-firstName","placeholder","firstname",3,"ngModelChange","ngModel"],["for","input-lastName"],["id","input-lastName","placeholder","lastname",3,"ngModelChange","ngModel"],["for","input-telephone"],["id","input-telephone","placeholder","telephone",3,"ngModelChange","ngModel"],["for","input-email"],["id","input-email","placeholder","email",3,"ngModelChange","ngModel"],["for","input-website"],["id","input-website","placeholder","website",3,"ngModelChange","ngModel"],["for","input-address"],["id","input-address","placeholder","address",3,"ngModelChange","ngModel"],["for","input-description"],["id","input-description","placeholder","description",3,"ngModelChange","ngModel"],[3,"click"],[1,"element",3,"routerLink"],[1,"text"],[1,"name"]],template:function(r,o){1&r&&(m(0,"h2"),y(1,"Family contacts:"),g(),m(2,"button",0),A("click",function(){return o.reload()}),y(3,"Reload"),g(),V(4,"br"),m(5,"p",1),y(6),g(),m(7,"p",2),y(8),g(),m(9,"ol",3),Ve(10,R9,17,10,"li",4),g(),m(11,"h2"),y(12,"New contact:"),g(),m(13,"div",5)(14,"label",6),y(15,"Firstname:"),g(),m(16,"input",7),te("ngModelChange",function(s){return re(o.newContact.firstName,s)||(o.newContact.firstName=s),s}),g(),V(17,"br"),m(18,"label",8),y(19,"Lastname:"),g(),m(20,"input",9),te("ngModelChange",function(s){return re(o.newContact.lastName,s)||(o.newContact.lastName=s),s}),g(),V(21,"br"),m(22,"label",10),y(23,"Telephone:"),g(),m(24,"input",11),te("ngModelChange",function(s){return re(o.newContact.telephone,s)||(o.newContact.telephone=s),s}),g(),V(25,"br"),m(26,"label",12),y(27,"Email:"),g(),m(28,"input",13),te("ngModelChange",function(s){return re(o.newContact.email,s)||(o.newContact.email=s),s}),g(),V(29,"br"),m(30,"label",14),y(31,"Website:"),g(),m(32,"input",15),te("ngModelChange",function(s){return re(o.newContact.website,s)||(o.newContact.website=s),s}),g(),V(33,"br"),m(34,"label",16),y(35,"Address:"),g(),m(36,"input",17),te("ngModelChange",function(s){return re(o.newContact.address,s)||(o.newContact.address=s),s}),g(),V(37,"br"),m(38,"label",18),y(39,"Description:"),g(),m(40,"input",19),te("ngModelChange",function(s){return re(o.newContact.description,s)||(o.newContact.description=s),s}),g(),V(41,"br"),m(42,"button",20),A("click",function(){return o.sendContact()}),y(43,"Add contact"),g()()),2&r&&(C(5),O("hidden",""===o.serviceMessage),C(),q(o.serviceMessage),C(),O("hidden",""===o.errorMessage),C(),q(o.errorMessage),C(2),O("ngForOf",o.contacts),C(6),ee("ngModel",o.newContact.firstName),C(4),ee("ngModel",o.newContact.lastName),C(4),ee("ngModel",o.newContact.telephone),C(4),ee("ngModel",o.newContact.email),C(4),ee("ngModel",o.newContact.website),C(4),ee("ngModel",o.newContact.address),C(4),ee("ngModel",o.newContact.description))},dependencies:[hn,Et,Ht,kt,vn],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.name[_ngcontent-%COMP%]{font-size:larger;text-decoration:underline}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:.2em;border-radius:4px;border:solid 1px #808080}.element[_ngcontent-%COMP%]{text-decoration:none;display:block}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e660}"]})}}return e})();class Cn{static{this.REST_URL=Un_restServerUrl+"/api/checklists"}constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Be({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n){return Vr(n,this.appMessageService,this.constructor.name)}log(n){this.appMessageService.add(`${this.constructor.name}: ${n}`)}getChecklists(){return this.http.get(Cn.REST_URL,this.httpOptions).pipe(W(n=>this.log(`fetched ${n.length} checklists`)),oe(this.handleError("getChecklists")))}getChecklist(n){return this.http.get(`${Cn.REST_URL}/${n}`,this.httpOptions).pipe(W(t=>this.log(`fetched checklist ${t.id}`)),oe(this.handleError("getChecklist")))}addChecklist(n){return this.http.post(Cn.REST_URL,{name:n},this.httpOptions).pipe(W(r=>this.log(`added checklist w/ id=${r.id}`)),oe(this.handleError("addChecklist")))}saveChecklist(n){return this.http.post(Cn.REST_URL,n,this.httpOptions).pipe(W(t=>this.log(`saved checklist w/ id=${t.id}`)),oe(this.handleError("addChecklist")))}deleteChecklist(n){return this.http.delete(`${Cn.REST_URL}/${n}`,this.httpOptions).pipe(W(r=>this.log(`deleted checklist id=${n}`)),oe(this.handleError("deleteChecklist")))}static{this.\u0275fac=function(t){return new(t||Cn)(k(lr),k(ur))}}static{this.\u0275prov=R({token:Cn,factory:Cn.\u0275fac,providedIn:"root"})}}let Nu=(()=>{class e{transform(t){return t&&t.filter(r=>!r.unlisted)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275pipe=ct({name:"onlyListedItems",type:e,pure:!0})}}return e})();const O9=e=>["/checklist",e],P9=e=>({strikethrough:e});function x9(e,n){if(1&e&&(m(0,"li",13),y(1),g()),2&e){const t=n.$implicit;O("ngClass",vi(2,P9,!0===t.checked)),C(),Oe(" ",t.text," ")}}function F9(e,n){if(1&e&&(m(0,"li")(1,"a",9)(2,"span",10),y(3),g(),m(4,"ul",11),Ve(5,x9,2,4,"li",12),st(6,"onlyListedItems"),g()()()),2&e){const t=n.$implicit;C(),O("routerLink",vi(5,O9,t.id)),C(2),q(t.name),C(2),O("ngForOf",lo(6,3,t.checks))}}let L9=(()=>{class e{constructor(t,r){this.checklistService=t,this.router=r,this.route=b(Kt),this.checklists=[],this.newChecklist="",this.serviceMessage="",this.errorMessage=""}getChecklists(){this.serviceMessage="Loading checklists ...",this.checklistService.getChecklists().subscribe({next:t=>{this.checklists=t,this.serviceMessage=t.length?"":"No checklist in database."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading checklists: ${t.message}`}})}ngOnInit(){this.getChecklists()}reload(){this.getChecklists()}sendChecklist(){""!==this.newChecklist&&(this.serviceMessage="Creating checklist ...",this.checklistService.addChecklist(this.newChecklist).subscribe({next:t=>this.router.navigate(["/checklist/",t.id]),error:t=>{this.serviceMessage="",this.errorMessage=`Error while creating checklists: ${t.message}`}}))}static{this.\u0275fac=function(r){return new(r||e)(E(Cn),E(tt))}}static{this.\u0275cmp=at({type:e,selectors:[["app-checklists"]],decls:19,vars:6,consts:[[1,"reload-btn",3,"click"],[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-name"],["id","input-name","placeholder","myChecklist",3,"ngModelChange","keydown.enter","ngModel"],[3,"click"],[1,"element",3,"routerLink"],[1,"list-name"],[1,"item-list"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"]],template:function(r,o){1&r&&(m(0,"h2"),y(1,"Family checklists:"),g(),m(2,"button",0),A("click",function(){return o.reload()}),y(3,"Reload"),g(),m(4,"p",1),y(5),g(),m(6,"p",2),y(7),g(),m(8,"ol",3),Ve(9,F9,7,7,"li",4),g(),m(10,"h2"),y(11,"New checklist:"),g(),m(12,"div",5)(13,"div")(14,"label",6),y(15,"name:"),g(),m(16,"input",7),te("ngModelChange",function(s){return re(o.newChecklist,s)||(o.newChecklist=s),s}),A("keydown.enter",function(){return o.sendChecklist()}),g(),m(17,"button",8),A("click",function(){return o.sendChecklist()}),y(18,"Add checklist"),g()()()),2&r&&(C(4),O("hidden",""===o.serviceMessage),C(),q(o.serviceMessage),C(),O("hidden",""===o.errorMessage),C(),q(o.errorMessage),C(2),O("ngForOf",o.checklists),C(7),ee("ngModel",o.newChecklist))},dependencies:[wp,hn,Et,Ht,kt,vn,Nu],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:.2em;border-radius:4px;border:solid 1px #808080}.element[_ngcontent-%COMP%]{text-decoration:none;display:block}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.strikethrough[_ngcontent-%COMP%]{text-decoration:line-through}.list-name[_ngcontent-%COMP%]{font-size:larger;text-decoration:underline}"]})}}return e})(),B1=(()=>{class e{transform(t){return t&&t.filter(r=>r.unlisted)}static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275pipe=ct({name:"onlyUnlistedItems",type:e,pure:!0})}}return e})();function V9(e,n){if(1&e){const t=rr();m(0,"li")(1,"input",12),te("ngModelChange",function(o){const i=Ne(t).$implicit;return re(i.checked,o)||(i.checked=o),Re(o)}),A("change",function(){return Ne(t),Re($e().saveCheckList())}),g(),m(2,"label",13),y(3),g(),m(4,"span",14)(5,"button",15),A("click",function(){const o=Ne(t).$implicit;return Re($e().unlistItem(o.id))}),y(6,"v"),g()()()}if(2&e){const t=n.$implicit;C(),ee("ngModel",t.checked),C(2),q(t.text)}}function j9(e,n){if(1&e){const t=rr();m(0,"li")(1,"input",16),te("ngModelChange",function(o){const i=Ne(t).$implicit;return re(i.text,o)||(i.text=o),Re(o)}),A("change",function(){return Ne(t),Re($e().saveCheckList())}),g(),m(2,"span",14)(3,"button",17),A("click",function(){return Ne(t),Re($e().saveCheckList())}),y(4,"\u{1f4be}"),g(),m(5,"button",18),A("click",function(){const o=Ne(t).$implicit;return Re($e().relistItem(o.id))}),y(6,"^"),g(),m(7,"button",19),A("click",function(){const o=Ne(t).$implicit;return Re($e().removeItem(o.id))}),y(8,"x"),g()()()}if(2&e){const t=n.$implicit;C(),ee("ngModel",t.text)}}let U9=(()=>{class e{constructor(t,r){this.checklistService=t,this.router=r,this.route=b(Kt),this.checklistId=-1,this.checklist={},this.newItem="",this.serviceMessage="",this.errorMessage="",this.checklistId=Number(this.route.snapshot.params.id)}getChecklist(){this.serviceMessage="Loading checklist ...",this.checklistService.getChecklist(this.checklistId).subscribe({next:t=>{this.checklist=t,this.serviceMessage=""},error:t=>{this.serviceMessage="",this.errorMessage=`Error while getting checklists: ${t.message}`}})}ngOnInit(){this.getChecklist()}reload(){this.getChecklist()}addItem(){""!==this.newItem&&(this.checklist.checks.push({text:this.newItem,checklist_id:this.checklist.id}),this.newItem="",this.saveCheckList())}getItemById(t){for(let r of this.checklist.checks)if(r.id==t)return r;return null}unlistItem(t){const r=this.getItemById(t);null!==r&&(r.unlisted=!0,this.saveCheckList())}relistItem(t){const r=this.getItemById(t);null!==r&&(r.unlisted=!1,r.checked=!1,this.saveCheckList())}removeItem(t){if(window.confirm("Do you realy want to delete this item?"))for(let r=0;r{this.checklist=t,this.serviceMessage="Saved checklist."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while saving checklists: ${t.message}`}})}deleteChecklist(){window.confirm("Do you realy want to delete this checklist?")&&(this.serviceMessage="Removing checklist ...",this.checklistService.deleteChecklist(this.checklistId).subscribe({next:()=>{this.router.navigateByUrl("/checklists")},error:t=>{this.serviceMessage="",this.errorMessage=`Error while deleting checklists: ${t.message}`}}))}static{this.\u0275fac=function(r){return new(r||e)(E(Cn),E(tt))}}static{this.\u0275cmp=at({type:e,selectors:[["app-edit-checklist"]],decls:48,vars:22,consts:[["routerLink","/checklists"],[1,"reload-btn",3,"click"],[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,"ngModelChange","keydown.enter","ngModel"],[3,"click"],["for","input-checklist-name"],["id","input-checklist-name","placeholder","myChecklist",3,"ngModelChange","keydown.enter","ngModel"],["type","checkbox",3,"ngModelChange","change","ngModel"],[1,"item-text"],[1,"element-buttons"],["type","button","title","Unlist item",1,"unlist",3,"click"],["type","text",1,"item-text",3,"ngModelChange","change","ngModel"],["type","button","title","Save item",1,"save",3,"click"],["type","button","title","Relist item",1,"relist",3,"click"],["type","button","title","Delete item",1,"delete",3,"click"]],template:function(r,o){1&r&&(m(0,"a",0),y(1,"Back to: Family checklists"),g(),m(2,"button",1),A("click",function(){return o.reload()}),y(3,"Reload"),g(),V(4,"br"),m(5,"h2"),y(6),g(),m(7,"p",2),y(8),g(),m(9,"p",3),y(10),g(),m(11,"p"),y(12),m(13,"button",4),A("click",function(){return o.deleteChecklist()}),y(14,"Delete checklist"),g(),V(15,"br"),y(16),st(17,"date"),V(18,"br"),y(19),st(20,"date"),g(),m(21,"h3"),y(22,"Items:"),g(),m(23,"ol"),Ve(24,V9,7,2,"li",5),st(25,"onlyListedItems"),g(),m(26,"h3"),y(27,"Unlisted Items:"),g(),m(28,"ol"),Ve(29,j9,9,1,"li",5),st(30,"onlyUnlistedItems"),g(),V(31,"hr"),m(32,"h2"),y(33,"Add item:"),g(),m(34,"div",6)(35,"label",7),y(36,"item:"),g(),m(37,"input",8),te("ngModelChange",function(s){return re(o.newItem,s)||(o.newItem=s),s}),A("keydown.enter",function(){return o.addItem()}),g(),m(38,"button",9),A("click",function(){return o.addItem()}),y(39,"Add item"),g()(),m(40,"h2"),y(41,"Change list name:"),g(),m(42,"div",6)(43,"label",10),y(44,"newName:"),g(),m(45,"input",11),te("ngModelChange",function(s){return re(o.checklist.name,s)||(o.checklist.name=s),s}),A("keydown.enter",function(){return o.saveCheckList()}),g(),m(46,"button",9),A("click",function(){return o.saveCheckList()}),y(47,"Save name"),g()()),2&r&&(C(6),Oe("Editing checklist: ",o.checklist.name,""),C(),O("hidden",""===o.serviceMessage),C(),q(o.serviceMessage),C(),O("hidden",""===o.errorMessage),C(),q(o.errorMessage),C(2),Oe("Id: ",o.checklist.id," "),C(4),Oe("Created on: ",dn(17,12,o.checklist.dateCreated,"medium")," "),C(3),Oe("Updated on: ",dn(20,15,o.checklist.dateUpdated,"medium"),"\n"),C(5),O("ngForOf",lo(25,18,o.checklist.checks)),C(5),O("ngForOf",lo(30,20,o.checklist.checks)),C(8),ee("ngModel",o.newItem),C(8),ee("ngModel",o.checklist.name))},dependencies:[hn,Et,ha,Ht,kt,vn,Nr,B1,Nu],styles:["li[_ngcontent-%COMP%]{padding:1px}.delete[_ngcontent-%COMP%]{margin-left:1em;background-color:#ff000080}.unlist[_ngcontent-%COMP%]{background-color:#0000ff80}.relist[_ngcontent-%COMP%]{background-color:#00ff0080}.element-buttons[_ngcontent-%COMP%]{margin-left:2em}.item-text[_ngcontent-%COMP%]{display:inline-block;min-width:8em}"]})}}return e})(),$9=(()=>{class e{constructor(t,r){this.contactsService=t,this.router=r,this.route=b(Kt),this.contactId=-1,this.contact={},this.serviceMessage="",this.errorMessage="",this.contactId=Number(this.route.snapshot.params.id)}getContact(){this.serviceMessage="Loading contact ...",this.contactsService.getContact(this.contactId).subscribe({next:t=>{this.contact=t,this.serviceMessage=""},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading contact: ${t.message}`}})}ngOnInit(){this.getContact()}reload(){this.getContact()}saveContact(){this.serviceMessage="Updating contact ...",this.contactsService.saveContact(this.contact).subscribe({next:t=>{this.contact=t,this.serviceMessage="Updated contact."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while updating contact: ${t.message}`}})}deleteContact(){window.confirm("Do you realy want to delete this contact?")&&(this.serviceMessage="Deleting contact ...",this.contactsService.deleteContact(this.contactId).subscribe({next:()=>this.router.navigateByUrl("/contacts"),error:t=>{this.serviceMessage="",this.errorMessage=`Error while deleting contact: ${t.message}`}}))}static{this.\u0275fac=function(r){return new(r||e)(E(yn),E(tt))}}static{this.\u0275cmp=at({type:e,selectors:[["app-edit-contact"]],decls:57,vars:24,consts:[["routerLink","/contacts"],[1,"reload-btn",3,"click"],[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,"ngModelChange","ngModel"],["for","input-lastName"],["id","input-lastName","placeholder","lastname",3,"ngModelChange","ngModel"],["for","input-telephone"],["id","input-telephone","placeholder","telephone",3,"ngModelChange","ngModel"],["for","input-email"],["id","input-email","placeholder","email",3,"ngModelChange","ngModel"],["for","input-website"],["id","input-website","placeholder","website",3,"ngModelChange","ngModel"],["target","_blank",3,"href"],["for","input-address"],["id","input-address","placeholder","address",3,"ngModelChange","ngModel"],["for","input-description"],["id","input-description","placeholder","description",3,"ngModelChange","ngModel"],[3,"click"]],template:function(r,o){1&r&&(m(0,"a",0),y(1,"Back to: Contacts"),g(),m(2,"button",1),A("click",function(){return o.reload()}),y(3,"Reload"),g(),V(4,"br"),m(5,"h2"),y(6),g(),m(7,"p",2),y(8),g(),m(9,"p",3),y(10),g(),m(11,"p"),y(12),m(13,"button",4),A("click",function(){return o.deleteContact()}),y(14,"Delete contact"),g(),V(15,"br"),y(16),st(17,"date"),V(18,"br"),y(19),st(20,"date"),g(),V(21,"p"),m(22,"h3"),y(23,"Details:"),g(),m(24,"div",5)(25,"label",6),y(26,"Firstname:"),g(),m(27,"input",7),te("ngModelChange",function(s){return re(o.contact.firstName,s)||(o.contact.firstName=s),s}),g(),V(28,"br"),m(29,"label",8),y(30,"Lastname:"),g(),m(31,"input",9),te("ngModelChange",function(s){return re(o.contact.lastName,s)||(o.contact.lastName=s),s}),g(),V(32,"br"),m(33,"label",10),y(34,"Telephone:"),g(),m(35,"input",11),te("ngModelChange",function(s){return re(o.contact.telephone,s)||(o.contact.telephone=s),s}),g(),V(36,"br"),m(37,"label",12),y(38,"Email:"),g(),m(39,"input",13),te("ngModelChange",function(s){return re(o.contact.email,s)||(o.contact.email=s),s}),g(),V(40,"br"),m(41,"label",14),y(42,"Website:"),g(),m(43,"input",15),te("ngModelChange",function(s){return re(o.contact.website,s)||(o.contact.website=s),s}),g(),m(44,"a",16),y(45,"go to website"),g(),V(46,"br"),m(47,"label",17),y(48,"Address:"),g(),m(49,"input",18),te("ngModelChange",function(s){return re(o.contact.address,s)||(o.contact.address=s),s}),g(),V(50,"br"),m(51,"label",19),y(52,"Description:"),g(),m(53,"input",20),te("ngModelChange",function(s){return re(o.contact.description,s)||(o.contact.description=s),s}),g(),V(54,"br"),m(55,"button",21),A("click",function(){return o.saveContact()}),y(56,"Save changes"),g()()),2&r&&(C(6),Cl("Editing contact: ",o.contact.firstName," ",o.contact.lastName,""),C(),O("hidden",""===o.serviceMessage),C(),q(o.serviceMessage),C(),O("hidden",""===o.errorMessage),C(),q(o.errorMessage),C(2),Oe("Id: ",o.contact.id," "),C(4),Oe("Created on: ",dn(17,18,o.contact.dateCreated,"medium")," "),C(3),Oe("Updated on: ",dn(20,21,o.contact.dateUpdated,"medium"),"\n"),C(8),ee("ngModel",o.contact.firstName),C(4),ee("ngModel",o.contact.lastName),C(4),ee("ngModel",o.contact.telephone),C(4),ee("ngModel",o.contact.email),C(4),ee("ngModel",o.contact.website),C(),vl("href","https://",o.contact.website,"",vf),C(5),ee("ngModel",o.contact.address),C(4),ee("ngModel",o.contact.description))},dependencies:[Et,Ht,kt,vn,Nr],styles:[".delete[_ngcontent-%COMP%]{background-color:#ff000080}"]})}}return e})(),B9=(()=>{class e{constructor(t){this.loginService=t,this.newPassword1="",this.newPassword2="",this.serviceMessage="",this.errorMessage=""}username(){return this.loginService.getUsername()}saveProfile(){this.newPassword1==this.newPassword2?(this.serviceMessage="Updating password ...",this.loginService.changePassword(this.newPassword1).subscribe({next:()=>{this.serviceMessage="Password changed",this.loginService.authenticate({username:this.loginService.getUsername(),password:this.newPassword1}).subscribe()},error:t=>{this.serviceMessage="",this.errorMessage=`Error while updating password: ${t.message}`}})):this.serviceMessage="Passwords do not match!"}toggleTheme(){const t="theme-dark",r=document.querySelector(":root");if(!r)throw new Error("No root!?");r.classList.toggle(t),r.classList.contains(t)?localStorage.setItem("theme",t):localStorage.setItem("theme","theme-light")}static{this.\u0275fac=function(r){return new(r||e)(E(Gt))}}static{this.\u0275cmp=at({type:e,selectors:[["app-profile"]],decls:23,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,"ngModelChange","ngModel"],["for","input-newPassword2"],["type","password","id","input-newPassword2","placeholder","new password",3,"ngModelChange","ngModel"],[3,"click"]],template:function(r,o){1&r&&(m(0,"h1"),y(1),g(),m(2,"button",0),A("click",function(){return o.toggleTheme()}),y(3,"\u2600 Switch theme"),g(),V(4,"br"),m(5,"h2"),y(6,"Change password:"),g(),m(7,"p",1),y(8),g(),m(9,"p",2),y(10),g(),m(11,"div",3)(12,"div")(13,"label",4),y(14,"New password:"),g(),m(15,"input",5),te("ngModelChange",function(s){return re(o.newPassword1,s)||(o.newPassword1=s),s}),g(),V(16,"br"),m(17,"label",6),y(18,"Repeat new password:"),g(),m(19,"input",7),te("ngModelChange",function(s){return re(o.newPassword2,s)||(o.newPassword2=s),s}),g(),V(20,"br"),m(21,"button",8),A("click",function(){return o.saveProfile()}),y(22,"Save password"),g()()()),2&r&&(C(),Oe("Profile of: ",o.username(),""),C(6),O("hidden",""===o.serviceMessage),C(),q(o.serviceMessage),C(),O("hidden",""===o.errorMessage),C(),q(o.errorMessage),C(5),ee("ngModel",o.newPassword1),C(4),ee("ngModel",o.newPassword2))},dependencies:[Et,Ht,kt]})}}return e})();class Br{static{this.REST_URL=Un_restServerUrl+"/api/notes"}constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Be({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n){return Vr(n,this.appMessageService,this.constructor.name)}log(n){this.appMessageService.add(`${this.constructor.name}: ${n}`)}getNotes(){return this.http.get(Br.REST_URL,this.httpOptions).pipe(W(n=>this.log(`fetched ${n.length} notes`)),oe(this.handleError("getNotes")))}addNote(n){return this.http.post(Br.REST_URL,{text:n},this.httpOptions).pipe(W(r=>this.log(`added note w/ id=${r.id}`)),oe(this.handleError("addNote")))}deleteNote(n){return this.http.delete(`${Br.REST_URL}/${n}`,this.httpOptions).pipe(W(r=>this.log(`deleted note id=${n}`)),oe(this.handleError("deleteNote")))}static{this.\u0275fac=function(t){return new(t||Br)(k(lr),k(ur))}}static{this.\u0275prov=R({token:Br,factory:Br.\u0275fac,providedIn:"root"})}}function H9(e,n){if(1&e){const t=rr();m(0,"li")(1,"div",8)(2,"span",9),y(3),st(4,"date"),g(),m(5,"button",10),A("click",function(){const o=Ne(t).$implicit;return Re($e().deleteNote(o))}),y(6,"x"),g()(),V(7,"p",11),g()}if(2&e){const t=n.$implicit;C(3),q(dn(4,2,t.dateCreated,"medium")),C(4),O("innerHTML",t.text,mf)}}let z9=(()=>{class e{constructor(t){this.noteService=t,this.notes=[],this.newNote="",this.serviceMessage="",this.errorMessage=""}ngOnInit(){this.getNotes()}reload(){this.getNotes()}getNotes(){this.errorMessage="",this.serviceMessage="Loading notes ...",this.noteService.getNotes().subscribe({next:t=>{this.notes=t,this.serviceMessage=0==t.length?"Nothing to do!":""},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading notes: ${t.message}`}})}newNoteKeyDown(t){"Enter"===t.key&&t.ctrlKey&&(t.preventDefault(),this.addNote())}addNote(){""!==this.newNote?(this.errorMessage="",this.serviceMessage="Adding note ...",this.noteService.addNote(this.newNote).subscribe({next:t=>{this.notes.push(t),this.newNote="",this.serviceMessage="Added note."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while adding note: ${t.message}`}})):this.errorMessage="Note empty"}deleteNote(t){window.confirm("Do you realy want to delete this note?")&&(this.errorMessage="",this.serviceMessage="Removing note ...",this.noteService.deleteNote(t.id).subscribe({next:()=>{this.notes=this.notes.filter(r=>r!==t),this.serviceMessage="Removed note."},error:r=>{this.serviceMessage="",this.errorMessage=`Error while removing note: ${r.message}`}}))}static{this.\u0275fac=function(r){return new(r||e)(E(Br))}}static{this.\u0275cmp=at({type:e,selectors:[["app-note"]],decls:19,vars:6,consts:[[1,"reload-btn",3,"click"],[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["id","input-text","placeholder","Write a note here.",1,"big-text-input",3,"ngModelChange","keydown","ngModel"],[3,"click"],[1,"element-title"],[1,"date"],["type","button","title","Delete note",1,"delete",3,"click"],[1,"text",3,"innerHTML"]],template:function(r,o){1&r&&(m(0,"h2"),y(1,"Family notes:"),g(),m(2,"button",0),A("click",function(){return o.reload()}),y(3,"Reload"),g(),V(4,"br"),m(5,"p",1),y(6),g(),m(7,"p",2),y(8),g(),m(9,"ol",3),Ve(10,H9,8,5,"li",4),g(),m(11,"h2"),y(12,"New note:"),g(),m(13,"div",5)(14,"div")(15,"textarea",6),te("ngModelChange",function(s){return re(o.newNote,s)||(o.newNote=s),s}),A("keydown",function(s){return o.newNoteKeyDown(s)}),g(),V(16,"br"),m(17,"button",7),A("click",function(){return o.addNote()}),y(18,"Add note"),g()()()),2&r&&(C(5),O("hidden",""===o.serviceMessage),C(),q(o.serviceMessage),C(),O("hidden",""===o.errorMessage),C(),q(o.errorMessage),C(2),O("ngForOf",o.notes),C(5),ee("ngModel",o.newNote))},dependencies:[hn,Et,Ht,kt,Nr],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:0;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.element-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.element-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.element-title[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:small;padding:1px 6px;margin:0;border-radius:2px;float:right;background-color:#ff000080}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061;border-radius:0 0 2px}.text[_ngcontent-%COMP%]{white-space:pre-wrap;margin:.2em .4em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;margin:0 0 .2em;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:4em;text-align:right;padding-right:.2em}"]})}}return e})();class Hr{static{this.REST_URL=Un_restServerUrl+"/api/mynotes"}constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Be({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n){return Vr(n,this.appMessageService,this.constructor.name)}log(n){this.appMessageService.add(`${this.constructor.name}: ${n}`)}getNotes(){return this.http.get(Hr.REST_URL,this.httpOptions).pipe(W(n=>this.log(`fetched ${n.length} notes`)),oe(this.handleError("getNotes")))}addNote(n){return this.http.post(Hr.REST_URL,{text:n},this.httpOptions).pipe(W(r=>this.log(`added note w/ id=${r.id}`)),oe(this.handleError("addNote")))}deleteNote(n){return this.http.delete(`${Hr.REST_URL}/${n}`,this.httpOptions).pipe(W(r=>this.log(`deleted note id=${n}`)),oe(this.handleError("deleteNote")))}static{this.\u0275fac=function(t){return new(t||Hr)(k(lr),k(ur))}}static{this.\u0275prov=R({token:Hr,factory:Hr.\u0275fac,providedIn:"root"})}}function G9(e,n){if(1&e){const t=rr();m(0,"li")(1,"div",8)(2,"span",9),y(3),st(4,"date"),g(),m(5,"button",10),A("click",function(){const o=Ne(t).$implicit;return Re($e().deleteNote(o))}),y(6,"x"),g()(),m(7,"p",11),y(8),g()()}if(2&e){const t=n.$implicit;C(3),q(dn(4,2,t.dateCreated,"medium")),C(5),q(t.text)}}let q9=(()=>{class e{constructor(t){this.noteService=t,this.notes=[],this.newNote="",this.serviceMessage="",this.errorMessage=""}ngOnInit(){this.getNotes()}reload(){this.getNotes()}getNotes(){this.errorMessage="",this.serviceMessage="Loading notes ...",this.noteService.getNotes().subscribe({next:t=>{this.notes=t,this.serviceMessage=0==t.length?"Nothing to do!":""},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading notes: ${t.message}`}})}newNoteKeyDown(t){"Enter"===t.key&&t.ctrlKey&&(t.preventDefault(),this.addNote())}addNote(){""!==this.newNote?(this.errorMessage="",this.serviceMessage="Adding note ...",this.noteService.addNote(this.newNote).subscribe({next:t=>{this.notes.push(t),this.newNote="",this.serviceMessage="Added note."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while adding note: ${t.message}`}})):this.errorMessage="Note empty"}deleteNote(t){window.confirm("Do you realy want to delete this note?")&&(this.errorMessage="",this.serviceMessage="Removing note ...",this.noteService.deleteNote(t.id).subscribe({next:()=>{this.notes=this.notes.filter(r=>r!==t),this.serviceMessage="Removed note."},error:r=>{this.serviceMessage="",this.errorMessage=`Error while removing note: ${r.message}`}}))}static{this.\u0275fac=function(r){return new(r||e)(E(Hr))}}static{this.\u0275cmp=at({type:e,selectors:[["app-mynote"]],decls:19,vars:6,consts:[[1,"reload-btn",3,"click"],[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["id","input-text","placeholder","Write a note here.",1,"big-text-input",3,"ngModelChange","keydown","ngModel"],[3,"click"],[1,"element-title"],[1,"date"],["type","button","title","Delete note",1,"delete",3,"click"],[1,"text"]],template:function(r,o){1&r&&(m(0,"h2"),y(1,"Your notes:"),g(),m(2,"button",0),A("click",function(){return o.reload()}),y(3,"Reload"),g(),V(4,"br"),m(5,"p",1),y(6),g(),m(7,"p",2),y(8),g(),m(9,"ol",3),Ve(10,G9,9,5,"li",4),g(),m(11,"h2"),y(12,"New note:"),g(),m(13,"div",5)(14,"div")(15,"textarea",6),te("ngModelChange",function(s){return re(o.newNote,s)||(o.newNote=s),s}),A("keydown",function(s){return o.newNoteKeyDown(s)}),g(),V(16,"br"),m(17,"button",7),A("click",function(){return o.addNote()}),y(18,"Add note"),g()()()),2&r&&(C(5),O("hidden",""===o.serviceMessage),C(),q(o.serviceMessage),C(),O("hidden",""===o.errorMessage),C(),q(o.errorMessage),C(2),O("ngForOf",o.notes),C(5),ee("ngModel",o.newNote))},dependencies:[hn,Et,Ht,kt,Nr],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:0;border-radius:4px;border:solid 1px #808080}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.element-title[_ngcontent-%COMP%]{display:block;text-align:left;font-size:x-small}.element-title[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{display:inline-block;color:#fff}.element-title[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{font-size:small;padding:1px 6px;margin:0;border-radius:2px;float:right;background-color:#ff000080}.badge[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#405061;border-radius:2px 0 0}.date[_ngcontent-%COMP%]{padding:.3em .7em;background-color:#605061;border-radius:0 0 2px}.text[_ngcontent-%COMP%]{white-space:pre-wrap;margin:.2em .4em}.input[_ngcontent-%COMP%] div[_ngcontent-%COMP%]{left:0;margin:0 0 .2em;padding:0}.input[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:inline-block;width:4em;text-align:right;padding-right:.2em}"]})}}return e})();class _n{static{this.REST_URL=Un_restServerUrl+"/api/mychecklists"}constructor(n,t){this.http=n,this.appMessageService=t,this.httpOptions={headers:new Be({"Content-Type":"application/json",Accept:"application/json"})}}handleError(n){return Vr(n,this.appMessageService,this.constructor.name)}log(n){this.appMessageService.add(`${this.constructor.name}: ${n}`)}getChecklists(){return this.http.get(_n.REST_URL,this.httpOptions).pipe(W(n=>this.log(`fetched ${n.length} checklists`)),oe(this.handleError("getChecklists")))}getChecklist(n){return this.http.get(`${_n.REST_URL}/${n}`,this.httpOptions).pipe(W(t=>this.log(`fetched checklist ${t.id}`)),oe(this.handleError("getChecklist")))}addChecklist(n){return this.http.post(_n.REST_URL,{name:n},this.httpOptions).pipe(W(r=>this.log(`added checklist w/ id=${r.id}`)),oe(this.handleError("addChecklist")))}saveChecklist(n){return this.http.post(_n.REST_URL,n,this.httpOptions).pipe(W(t=>this.log(`saved checklist w/ id=${t.id}`)),oe(this.handleError("addChecklist")))}deleteChecklist(n){return this.http.delete(`${_n.REST_URL}/${n}`,this.httpOptions).pipe(W(r=>this.log(`deleted checklist id=${n}`)),oe(this.handleError("deleteChecklist")))}static{this.\u0275fac=function(t){return new(t||_n)(k(lr),k(ur))}}static{this.\u0275prov=R({token:_n,factory:_n.\u0275fac,providedIn:"root"})}}const W9=e=>["/mychecklist",e],Z9=e=>({strikethrough:e});function Q9(e,n){if(1&e&&(m(0,"li",13),y(1),g()),2&e){const t=n.$implicit;O("ngClass",vi(2,Z9,!0===t.checked)),C(),Oe(" ",t.text," ")}}function Y9(e,n){if(1&e&&(m(0,"li")(1,"a",9)(2,"span",10),y(3),g(),m(4,"ul",11),Ve(5,Q9,2,4,"li",12),st(6,"onlyListedItems"),g()()()),2&e){const t=n.$implicit;C(),O("routerLink",vi(5,W9,t.id)),C(2),q(t.name),C(2),O("ngForOf",lo(6,3,t.checks))}}function K9(e,n){if(1&e){const t=rr();m(0,"li")(1,"input",12),te("ngModelChange",function(o){const i=Ne(t).$implicit;return re(i.checked,o)||(i.checked=o),Re(o)}),A("change",function(){return Ne(t),Re($e().saveCheckList())}),g(),m(2,"label",13),y(3),g(),m(4,"span",14)(5,"button",15),A("click",function(){const o=Ne(t).$implicit;return Re($e().unlistItem(o.id))}),y(6,"v"),g()()()}if(2&e){const t=n.$implicit;C(),ee("ngModel",t.checked),C(2),q(t.text)}}function J9(e,n){if(1&e){const t=rr();m(0,"li")(1,"input",16),te("ngModelChange",function(o){const i=Ne(t).$implicit;return re(i.text,o)||(i.text=o),Re(o)}),A("change",function(){return Ne(t),Re($e().saveCheckList())}),g(),m(2,"span",14)(3,"button",17),A("click",function(){return Ne(t),Re($e().saveCheckList())}),y(4,"\u{1f4be}"),g(),m(5,"button",18),A("click",function(){const o=Ne(t).$implicit;return Re($e().relistItem(o.id))}),y(6,"^"),g(),m(7,"button",19),A("click",function(){const o=Ne(t).$implicit;return Re($e().removeItem(o.id))}),y(8,"x"),g()()()}if(2&e){const t=n.$implicit;C(),ee("ngModel",t.text)}}const e7=[{path:"",component:T9,pathMatch:"full"},{path:"login",component:A9},{path:"profile",component:B9,canActivate:[qn]},{path:"chat",component:Wg,canActivate:[qn]},{path:"notes",component:z9,canActivate:[qn]},{path:"mynotes",component:q9,canActivate:[qn]},{path:"contacts",component:k9,canActivate:[qn]},{path:"contact/:id",component:$9,canActivate:[qn]},{path:"checklists",component:L9,canActivate:[qn]},{path:"checklist/:id",component:U9,canActivate:[qn]},{path:"mychecklists",component:(()=>{class e{constructor(t,r){this.checklistService=t,this.router=r,this.route=b(Kt),this.checklists=[],this.newChecklist="",this.serviceMessage="",this.errorMessage=""}getChecklists(){this.serviceMessage="Loading checklists ...",this.checklistService.getChecklists().subscribe({next:t=>{this.checklists=t,this.serviceMessage=t.length?"":"No checklist in database."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while loading checklists: ${t.message}`}})}ngOnInit(){this.getChecklists()}reload(){this.getChecklists()}sendChecklist(){""!==this.newChecklist&&(this.serviceMessage="Creating checklist ...",this.checklistService.addChecklist(this.newChecklist).subscribe({next:t=>this.router.navigate(["/mychecklist/",t.id]),error:t=>{this.serviceMessage="",this.errorMessage=`Error while creating checklists: ${t.message}`}}))}static{this.\u0275fac=function(r){return new(r||e)(E(_n),E(tt))}}static{this.\u0275cmp=at({type:e,selectors:[["app-mychecklists"]],decls:20,vars:6,consts:[[1,"reload-btn",3,"click"],[3,"hidden"],[1,"alert",3,"hidden"],[1,"element-list"],[4,"ngFor","ngForOf"],[1,"input"],["for","input-name"],["id","input-name","placeholder","myChecklist",3,"ngModelChange","keydown.enter","ngModel"],[3,"click"],[1,"element",3,"routerLink"],[1,"text"],[1,"item-list"],[3,"ngClass",4,"ngFor","ngForOf"],[3,"ngClass"]],template:function(r,o){1&r&&(m(0,"h2"),y(1,"Your checklists:"),g(),m(2,"button",0),A("click",function(){return o.reload()}),y(3,"Reload"),g(),V(4,"br"),m(5,"p",1),y(6),g(),m(7,"p",2),y(8),g(),m(9,"ol",3),Ve(10,Y9,7,7,"li",4),g(),m(11,"h2"),y(12,"New checklist:"),g(),m(13,"div",5)(14,"div")(15,"label",6),y(16,"name:"),g(),m(17,"input",7),te("ngModelChange",function(s){return re(o.newChecklist,s)||(o.newChecklist=s),s}),A("keydown.enter",function(){return o.sendChecklist()}),g(),m(18,"button",8),A("click",function(){return o.sendChecklist()}),y(19,"Add checklist"),g()()()),2&r&&(C(5),O("hidden",""===o.serviceMessage),C(),q(o.serviceMessage),C(),O("hidden",""===o.errorMessage),C(),q(o.errorMessage),C(2),O("ngForOf",o.checklists),C(7),ee("ngModel",o.newChecklist))},dependencies:[wp,hn,Et,Ht,kt,vn,Nu],styles:[".element-list[_ngcontent-%COMP%]{margin-left:2em;padding:0}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{position:relative;left:0;margin-top:.5em;padding:.2em;border-radius:4px;border:solid 1px #808080}.element[_ngcontent-%COMP%]{text-decoration:none;display:block}.element-list[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]:hover{background-color:#e6e6e680}.strikethrough[_ngcontent-%COMP%]{text-decoration:line-through}"]})}}return e})(),canActivate:[qn]},{path:"mychecklist/:id",component:(()=>{class e{constructor(t,r){this.checklistService=t,this.router=r,this.route=b(Kt),this.checklistId=-1,this.checklist={},this.newItem="",this.serviceMessage="",this.errorMessage="",this.checklistId=Number(this.route.snapshot.params.id)}getChecklist(){this.serviceMessage="Loading checklist ...",this.checklistService.getChecklist(this.checklistId).subscribe({next:t=>{this.checklist=t,this.serviceMessage=""},error:t=>{this.serviceMessage="",this.errorMessage=`Error while getting checklists: ${t.message}`}})}ngOnInit(){this.getChecklist()}reload(){this.getChecklist()}addItem(){""!==this.newItem&&(this.checklist.checks.push({text:this.newItem,checklist_id:this.checklist.id}),this.newItem="",this.saveCheckList())}getItemById(t){for(let r of this.checklist.checks)if(r.id==t)return r;return null}unlistItem(t){const r=this.getItemById(t);null!==r&&(r.unlisted=!0,this.saveCheckList())}relistItem(t){const r=this.getItemById(t);null!==r&&(r.unlisted=!1,this.saveCheckList())}removeItem(t){if(window.confirm("Do you realy want to delete this item?"))for(let r=0;r{this.checklist=t,this.serviceMessage="Saved checklist."},error:t=>{this.serviceMessage="",this.errorMessage=`Error while saving checklists: ${t.message}`}})}deleteChecklist(){window.confirm("Do you realy want to delete this checklist?")&&(this.serviceMessage="Removing checklist ...",this.checklistService.deleteChecklist(this.checklistId).subscribe({next:()=>{this.router.navigateByUrl("/mychecklists")},error:t=>{this.serviceMessage="",this.errorMessage=`Error while deleting checklists: ${t.message}`}}))}static{this.\u0275fac=function(r){return new(r||e)(E(_n),E(tt))}}static{this.\u0275cmp=at({type:e,selectors:[["app-edit-mychecklists"]],decls:47,vars:22,consts:[["routerLink","/mychecklists"],[1,"reload-btn",3,"click"],[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,"ngModelChange","keydown.enter","ngModel"],[3,"click"],["for","input-checklist-name"],["id","input-checklist-name","placeholder","myChecklist",3,"ngModelChange","keydown.enter","ngModel"],["type","checkbox",3,"ngModelChange","change","ngModel"],[1,"item-text"],[1,"element-buttons"],["type","button","title","Unlist item",1,"unlist",3,"click"],["type","text",1,"item-text",3,"ngModelChange","change","ngModel"],["type","button","title","Save item",1,"save",3,"click"],["type","button","title","Relist item",1,"relist",3,"click"],["type","button","title","Delete item",1,"delete",3,"click"]],template:function(r,o){1&r&&(m(0,"a",0),y(1,"Back to: Your checklists"),g(),m(2,"button",1),A("click",function(){return o.reload()}),y(3,"Reload"),g(),V(4,"br"),m(5,"h2"),y(6),g(),m(7,"p",2),y(8),g(),m(9,"p",3),y(10),g(),m(11,"p"),y(12),m(13,"button",4),A("click",function(){return o.deleteChecklist()}),y(14,"Delete checklist"),g(),V(15,"br"),y(16),st(17,"date"),V(18,"br"),y(19),st(20,"date"),g(),m(21,"h3"),y(22,"Items:"),g(),m(23,"ol"),Ve(24,K9,7,2,"li",5),st(25,"onlyListedItems"),g(),m(26,"h3"),y(27,"Unlisted Items:"),g(),m(28,"ol"),Ve(29,J9,9,1,"li",5),st(30,"onlyUnlistedItems"),g(),m(31,"h2"),y(32,"Add item:"),g(),m(33,"div",6)(34,"label",7),y(35,"item:"),g(),m(36,"input",8),te("ngModelChange",function(s){return re(o.newItem,s)||(o.newItem=s),s}),A("keydown.enter",function(){return o.addItem()}),g(),m(37,"button",9),A("click",function(){return o.addItem()}),y(38,"Add item"),g()(),m(39,"h2"),y(40,"Change name:"),g(),m(41,"div",6)(42,"label",10),y(43,"newName:"),g(),m(44,"input",11),te("ngModelChange",function(s){return re(o.checklist.name,s)||(o.checklist.name=s),s}),A("keydown.enter",function(){return o.saveCheckList()}),g(),m(45,"button",9),A("click",function(){return o.saveCheckList()}),y(46,"Save name"),g()()),2&r&&(C(6),Oe("Editing checklist: ",o.checklist.name,""),C(),O("hidden",""===o.serviceMessage),C(),q(o.serviceMessage),C(),O("hidden",""===o.errorMessage),C(),q(o.errorMessage),C(2),Oe("Id: ",o.checklist.id," "),C(4),Oe("Created on: ",dn(17,12,o.checklist.dateCreated,"medium")," "),C(3),Oe("Updated on: ",dn(20,15,o.checklist.dateUpdated,"medium"),"\n"),C(5),O("ngForOf",lo(25,18,o.checklist.checks)),C(5),O("ngForOf",lo(30,20,o.checklist.checks)),C(7),ee("ngModel",o.newItem),C(8),ee("ngModel",o.checklist.name))},dependencies:[hn,Et,ha,Ht,kt,vn,Nr,B1,Nu],styles:["li[_ngcontent-%COMP%]{padding:1px}.delete[_ngcontent-%COMP%]{margin-left:1em;background-color:#ff000080}.unlist[_ngcontent-%COMP%]{background-color:#0000ff80}.relist[_ngcontent-%COMP%]{background-color:#00ff0080}.element-buttons[_ngcontent-%COMP%]{margin-left:2em}.item-text[_ngcontent-%COMP%]{display:inline-block;min-width:8em}"]})}}return e})(),canActivate:[qn]}];let t7=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=wn({type:e})}static{this.\u0275inj=Jt({imports:[j1.forRoot(e7),j1]})}}return e})(),n7=(()=>{class e{constructor(t){this.auth=t}intercept(t,r){if(this.auth.isAuthenticated()){const o=this.auth.getAuthorizationToken(),i=t.clone({headers:t.headers.set("Authorization",o)});return r.handle(i)}return r.handle(t)}static{this.\u0275fac=function(r){return new(r||e)(k(Gt))}}static{this.\u0275prov=R({token:e,factory:e.\u0275fac})}}return e})();const Wn=void 0;!function AF(e,n,t){(function Qk(e,n,t){"string"!=typeof n&&(t=n,n=e[we.LocaleId]),n=n.toLowerCase().replace(/_/g,"-"),gi[n]=e,t&&(gi[n][we.ExtraData]=t)})(e,n,t)}(["nl",[["a.m.","p.m."],Wn,Wn],Wn,[["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"]],Wn,[["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"]],Wn,[["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}",Wn,"{1} 'om' {0}",Wn],[",",".",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4\xa0#,##0.00;\xa4\xa0-#,##0.00","#E0"],"EUR","\u20ac","Euro",{AUD:["AU$","$"],BYN:[Wn,"\u0440."],CAD:["C$","$"],FJD:["FJ$","$"],JPY:["JP\xa5","\xa5"],PHP:[Wn,"\u20b1"],RUR:[Wn,"\u0440."],SBD:["SI$","$"],THB:["\u0e3f"],TWD:["NT$"],USD:["US$","$"],XPF:[],XXX:[]},"ltr",function r7(e){const t=Math.floor(Math.abs(e)),r=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===r?1:5}]);let o7=(()=>{class e{static{this.\u0275fac=function(r){return new(r||e)}}static{this.\u0275mod=wn({type:e,bootstrap:[I9]})}static{this.\u0275inj=Jt({providers:[{provide:hb,useClass:n7,multi:!0},{provide:Ar,useClass:Z0},{provide:Ln,useValue:"nl-BE"}],imports:[aL,t6,A6,t7]})}}return e})();iL().bootstrapModule(o7).catch(e=>console.error(e))}},Hi=>{Hi(Hi.s=270)}]);