todosalud-webc-form-citas 1.3.0 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -12,14 +12,57 @@ npm install todosalud-webc-form-citas
|
|
|
12
12
|
|
|
13
13
|
### En Angular
|
|
14
14
|
|
|
15
|
-
1
|
|
15
|
+
#### Paso 1: Instalar el paquete
|
|
16
|
+
|
|
17
|
+
```bash
|
|
18
|
+
npm install todosalud-webc-form-citas
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
#### Paso 2: Importar en tu módulo o componente standalone
|
|
22
|
+
|
|
23
|
+
**Para módulos tradicionales** (`app.module.ts`):
|
|
16
24
|
|
|
17
25
|
```typescript
|
|
18
|
-
import '
|
|
26
|
+
import { NgModule, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
27
|
+
import { BrowserModule } from '@angular/platform-browser';
|
|
28
|
+
|
|
29
|
+
// Importar el web component desde node_modules
|
|
30
|
+
// ⚠️ NO uses el archivo todosalud-webc-form-citas.js (loader)
|
|
31
|
+
// Importa directamente los archivos .js y .css
|
|
32
|
+
import 'todosalud-webc-form-citas/todosalud-webc-form-citas-polyfills.js';
|
|
33
|
+
import 'todosalud-webc-form-citas/todosalud-webc-form-citas-main.js';
|
|
34
|
+
import 'todosalud-webc-form-citas/todosalud-webc-form-citas.css';
|
|
35
|
+
|
|
36
|
+
@NgModule({
|
|
37
|
+
imports: [BrowserModule],
|
|
38
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA], // IMPORTANTE: Necesario para web components
|
|
39
|
+
// ...
|
|
40
|
+
})
|
|
41
|
+
export class AppModule { }
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
**Para componentes standalone**:
|
|
45
|
+
|
|
46
|
+
```typescript
|
|
47
|
+
import { Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';
|
|
48
|
+
|
|
49
|
+
// Importar el web component desde node_modules
|
|
50
|
+
// ⚠️ NO uses el archivo todosalud-webc-form-citas.js (loader)
|
|
51
|
+
// Importa directamente los archivos .js y .css
|
|
52
|
+
import 'todosalud-webc-form-citas/todosalud-webc-form-citas-polyfills.js';
|
|
53
|
+
import 'todosalud-webc-form-citas/todosalud-webc-form-citas-main.js';
|
|
19
54
|
import 'todosalud-webc-form-citas/todosalud-webc-form-citas.css';
|
|
55
|
+
|
|
56
|
+
@Component({
|
|
57
|
+
selector: 'app-mi-componente',
|
|
58
|
+
standalone: true,
|
|
59
|
+
schemas: [CUSTOM_ELEMENTS_SCHEMA], // IMPORTANTE
|
|
60
|
+
template: `...`
|
|
61
|
+
})
|
|
62
|
+
export class MiComponente { }
|
|
20
63
|
```
|
|
21
64
|
|
|
22
|
-
|
|
65
|
+
#### Paso 3: Usar en tu template
|
|
23
66
|
|
|
24
67
|
```html
|
|
25
68
|
<todosalud-webc-form-citas
|
|
@@ -30,11 +73,13 @@ import 'todosalud-webc-form-citas/todosalud-webc-form-citas.css';
|
|
|
30
73
|
</todosalud-webc-form-citas>
|
|
31
74
|
```
|
|
32
75
|
|
|
33
|
-
|
|
76
|
+
#### Paso 4: Escuchar eventos en tu componente
|
|
34
77
|
|
|
35
78
|
```typescript
|
|
36
79
|
onFormSubmitted(event: CustomEvent) {
|
|
37
|
-
|
|
80
|
+
const { app, data } = event.detail;
|
|
81
|
+
console.log('Datos del formulario:', data);
|
|
82
|
+
// Hacer lo que necesites con los datos
|
|
38
83
|
}
|
|
39
84
|
|
|
40
85
|
onCancel() {
|
|
@@ -42,6 +87,8 @@ onCancel() {
|
|
|
42
87
|
}
|
|
43
88
|
```
|
|
44
89
|
|
|
90
|
+
**📖 Ver guía completa en `GUIA-USO-ANGULAR.md`**
|
|
91
|
+
|
|
45
92
|
### En Ionic
|
|
46
93
|
|
|
47
94
|
1. **Importar en tu página o componente:**
|
package/package.json
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "todosalud-webc-form-citas",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"description": "Web Component para formulario de citas médicas TodoSalud",
|
|
5
5
|
"main": "todosalud-webc-form-citas.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "ng serve",
|
|
8
8
|
"build": "ng build --configuration production",
|
|
9
9
|
"build:elements": "npm run build && node build-elements.js",
|
|
10
|
-
"verify": "node verify-build.js",
|
|
11
10
|
"pack": "npm run build:elements && npm pack",
|
|
12
11
|
"publish:npm": "npm run build:elements && npm publish",
|
|
13
12
|
"prepublishOnly": "npm run build:elements"
|
|
@@ -4,4 +4,4 @@ ${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(`
|
|
|
4
4
|
`);return r>=0?n.slice(0,r):n}function ba(e,t){return e?t?`${e} ${t}`:e:t||""}var Bd=S({__forward_ref__:S});function Ii(e){return e.__forward_ref__=Ii,e.toString=function(){return $(this())},e}function ne(e){return Hd(e)?e():e}function Hd(e){return typeof e=="function"&&e.hasOwnProperty(Bd)&&e.__forward_ref__===Ii}function T(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function de(e){return{providers:e.providers||[],imports:e.imports||[]}}function bi(e){return Ma(e,gc)||Ma(e,mc)}function Ma(e,t){return e.hasOwnProperty(t)?e[t]:null}function $d(e){let t=e&&(e[gc]||e[mc]);return t||null}function Sa(e){return e&&(e.hasOwnProperty(Ta)||e.hasOwnProperty(Ud))?e[Ta]:null}var gc=S({\u0275prov:S}),Ta=S({\u0275inj:S}),mc=S({ngInjectableDef:S}),Ud=S({ngInjectorDef:S}),v=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=T({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function yc(e){return e&&!!e.\u0275providers}var Gd=S({\u0275cmp:S}),zd=S({\u0275dir:S}),Wd=S({\u0275pipe:S}),qd=S({\u0275mod:S}),Na=S({\u0275fac:S}),Ot=S({__NG_ELEMENT_ID__:S}),xa=S({__NG_ENV_ID__:S});function vc(e){return typeof e=="string"?e:e==null?"":String(e)}function Zd(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():vc(e)}function Dc(e,t){throw new g(-200,e)}function Mi(e,t){throw new g(-201,!1)}var y=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}(y||{}),$o;function Ec(){return $o}function Y(e){let t=$o;return $o=e,t}function Cc(e,t,n){let r=bi(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&y.Optional)return null;if(t!==void 0)return t;Mi(e,"Injector")}var Yd={},je=Yd,Uo="__NG_DI_FLAG__",Un=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=n;return this.injector.get(t,r.optional?mn:je,r)}},Gn="ngTempTokenPath",Qd="ngTokenPath",Kd=/\n/gm,Jd="\u0275",Aa="__source";function Xd(e,t=y.Default){if(bt()===void 0)throw new g(-203,!1);if(bt()===null)return Cc(e,void 0,t);{let n=bt(),r;return n instanceof Un?r=n.injector:r=n,r.get(e,t&y.Optional?null:void 0,t)}}function C(e,t=y.Default){return(Ec()||Xd)(ne(e),t)}function I(e,t=y.Default){return C(e,yr(t))}function yr(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Go(e){let t=[];for(let n=0;n<e.length;n++){let r=ne(e[n]);if(Array.isArray(r)){if(r.length===0)throw new g(900,!1);let o,i=y.Default;for(let s=0;s<r.length;s++){let a=r[s],c=ef(a);typeof c=="number"?c===-1?o=a.token:i|=c:o=a}t.push(C(o,i))}else t.push(C(r))}return t}function _c(e,t){return e[Uo]=t,e.prototype[Uo]=t,e}function ef(e){return e[Uo]}function tf(e,t,n,r){let o=e[Gn];throw t[Aa]&&o.unshift(t[Aa]),e.message=nf(`
|
|
5
5
|
`+e.message,o,n,r),e[Qd]=o,e[Gn]=null,e}function nf(e,t,n,r=null){e=e&&e.charAt(0)===`
|
|
6
6
|
`&&e.charAt(1)==Jd?e.slice(2):e;let o=$(t);if(Array.isArray(t))o=t.map($).join(" -> ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):$(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(Kd,`
|
|
7
|
-
`)}`}var rf=_c(hc("Optional"),8);var of=_c(hc("SkipSelf"),4);function Ft(e,t){let n=e.hasOwnProperty(Na);return n?e[Na]:null}function Si(e,t){e.forEach(n=>Array.isArray(n)?Si(n,t):t(n))}function wc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function zn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function sf(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function af(e,t,n){let r=Bt(e,t);return r>=0?e[r|1]=n:(r=~r,sf(e,r,t,n)),r}function Ao(e,t){let n=Bt(e,t);if(n>=0)return e[n|1]}function Bt(e,t){return cf(e,t,1)}function cf(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var rt={},re=[],Wn=new v(""),Ic=new v("",-1),bc=new v(""),qn=class{get(t,n=je){if(n===je){let r=new Error(`NullInjectorError: No provider for ${$(t)}!`);throw r.name="NullInjectorError",r}return n}};function uf(e,t){let n=e[qd]||null;if(!n&&t===!0)throw new Error(`Type ${$(e)} does not have '\u0275mod' property.`);return n}function kt(e){return e[Gd]||null}function lf(e){return e[zd]||null}function df(e){return e[Wd]||null}function ff(...e){return{\u0275providers:Mc(!0,e),\u0275fromNgModule:!0}}function Mc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Si(t,s=>{let a=s;zo(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Sc(o,i),n}function Sc(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Ti(o,i=>{t(i,r)})}}function zo(e,t,n,r){if(e=ne(e),!e)return!1;let o=null,i=Sa(e),s=!i&&kt(e);if(!i&&!s){let c=e.ngModule;if(i=Sa(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)zo(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{Si(i.imports,l=>{zo(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Sc(u,t)}if(!a){let u=Ft(o)||(()=>new o);t({provide:o,useFactory:u,deps:re},o),t({provide:bc,useValue:o,multi:!0},o),t({provide:Wn,useValue:()=>C(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Ti(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Ti(e,t){for(let n of e)yc(n)&&(n=n.\u0275providers),Array.isArray(n)?Ti(n,t):t(n)}var pf=S({provide:String,useValue:S});function Tc(e){return e!==null&&typeof e=="object"&&pf in e}function hf(e){return!!(e&&e.useExisting)}function gf(e){return!!(e&&e.useFactory)}function Wo(e){return typeof e=="function"}var vr=new v(""),jn={},Ra={},Ro;function Ni(){return Ro===void 0&&(Ro=new qn),Ro}var xe=class{},Pt=class extends xe{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Zo(t,s=>this.processProvider(s)),this.records.set(Ic,Xe(void 0,this)),o.has("environment")&&this.records.set(xe,Xe(void 0,this));let i=this.records.get(vr);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(bc,re,y.Self))}retrieve(t,n){let r=n;return this.get(t,r.optional?mn:je,r)}destroy(){At(this),this._destroyed=!0;let t=E(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),E(t)}}onDestroy(t){return At(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){At(this);let n=ge(this),r=Y(void 0),o;try{return t()}finally{ge(n),Y(r)}}get(t,n=je,r=y.Default){if(At(this),t.hasOwnProperty(xa))return t[xa](this);r=yr(r);let o,i=ge(this),s=Y(void 0);try{if(!(r&y.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=Cf(t)&&bi(t);u&&this.injectableDefInScope(u)?c=Xe(qo(t),jn):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c,r)}let a=r&y.Self?Ni():this.parent;return n=r&y.Optional&&n===je?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Gn]=a[Gn]||[]).unshift($(t)),i)throw a;return tf(a,t,"R3InjectorError",this.source)}else throw a}finally{Y(s),ge(i)}}resolveInjectorInitializers(){let t=E(null),n=ge(this),r=Y(void 0),o;try{let i=this.get(Wn,re,y.Self);for(let s of i)s()}finally{ge(n),Y(r),E(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push($(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=ne(t);let n=Wo(t)?t:ne(t&&t.provide),r=yf(t);if(!Wo(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Xe(void 0,jn,!0),o.factory=()=>Go(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=E(null);try{return n.value===Ra?Dc($(t)):n.value===jn&&(n.value=Ra,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Ef(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{E(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ne(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function qo(e){let t=bi(e),n=t!==null?t.factory:Ft(e);if(n!==null)return n;if(e instanceof v)throw new g(204,!1);if(e instanceof Function)return mf(e);throw new g(204,!1)}function mf(e){if(e.length>0)throw new g(204,!1);let n=$d(e);return n!==null?()=>n.factory(e):()=>new e}function yf(e){if(Tc(e))return Xe(void 0,e.useValue);{let t=vf(e);return Xe(t,jn)}}function vf(e,t,n){let r;if(Wo(e)){let o=ne(e);return Ft(o)||qo(o)}else if(Tc(e))r=()=>ne(e.useValue);else if(gf(e))r=()=>e.useFactory(...Go(e.deps||[]));else if(hf(e))r=(o,i)=>C(ne(e.useExisting),i!==void 0&&i&y.Optional?y.Optional:void 0);else{let o=ne(e&&(e.useClass||e.provide));if(Df(e))r=()=>new o(...Go(e.deps));else return Ft(o)||qo(o)}return r}function At(e){if(e.destroyed)throw new g(205,!1)}function Xe(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Df(e){return!!e.deps}function Ef(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Cf(e){return typeof e=="function"||typeof e=="object"&&e instanceof v}function Zo(e,t){for(let n of e)Array.isArray(n)?Zo(n,t):n&&yc(n)?Zo(n.\u0275providers,t):t(n)}function Nc(e,t){let n;e instanceof Pt?(At(e),n=e):n=new Un(e);let r,o=ge(n),i=Y(void 0);try{return t()}finally{ge(o),Y(i)}}function xc(){return Ec()!==void 0||bt()!=null}function _f(e){let t=_e.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function wf(e){return typeof e=="function"}var we=0,w=1,m=2,j=3,oe=4,ie=5,Zn=6,Yn=7,U=8,ot=9,Ae=10,L=11,Lt=12,Oa=13,lt=14,ye=15,it=16,et=17,st=18,Dr=19,Ac=20,Te=21,Oo=22,Qn=23,Q=24,Fo=25,ve=26,Rc=1;var He=7,Kn=8,Jn=9,K=10;function Ne(e){return Array.isArray(e)&&typeof e[Rc]=="object"}function Ie(e){return Array.isArray(e)&&e[Rc]===!0}function Oc(e){return(e.flags&4)!==0}function Ht(e){return e.componentOffset>-1}function xi(e){return(e.flags&1)===1}function We(e){return!!e.template}function Xn(e){return(e[m]&512)!==0}function dt(e){return(e[m]&256)===256}var Yo=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Fc(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function If(e){return e.type.prototype.ngOnChanges&&(e.setInput=Mf),bf}function bf(){let e=Pc(this),t=e?.current;if(t){let n=e.previous;if(n===rt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Mf(e,t,n,r,o){let i=this.declaredInputs[r],s=Pc(e)||Sf(e,{previous:rt,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Yo(u&&u.currentValue,n,c===rt),Fc(e,t,o,n)}var kc="__ngSimpleChanges__";function Pc(e){return e[kc]||null}function Sf(e,t){return e[kc]=t}var Fa=null;var x=function(e,t=null,n){Fa?.(e,t,n)},Lc="svg",Tf="math";function ue(e){for(;Array.isArray(e);)e=e[we];return e}function Vc(e,t){return ue(t[e])}function be(e,t){return ue(t[e.index])}function jc(e,t){return e.data[t]}function De(e,t){let n=t[e];return Ne(n)?n:n[we]}function Ai(e){return(e[m]&128)===128}function Nf(e){return Ie(e[j])}function er(e,t){return t==null?null:e[t]}function Bc(e){e[et]=0}function Ri(e){e[m]&1024||(e[m]|=1024,Ai(e)&&Er(e))}function xf(e,t){for(;e>0;)t=t[lt],e--;return t}function $t(e){return!!(e[m]&9216||e[Q]?.dirty)}function Qo(e){e[Ae].changeDetectionScheduler?.notify(8),e[m]&64&&(e[m]|=1024),$t(e)&&Er(e)}function Er(e){e[Ae].changeDetectionScheduler?.notify(0);let t=$e(e);for(;t!==null&&!(t[m]&8192||(t[m]|=8192,!Ai(t)));)t=$e(t)}function Hc(e,t){if(dt(e))throw new g(911,!1);e[Te]===null&&(e[Te]=[]),e[Te].push(t)}function Af(e,t){if(e[Te]===null)return;let n=e[Te].indexOf(t);n!==-1&&e[Te].splice(n,1)}function $e(e){let t=e[j];return Ie(t)?t[j]:t}function $c(e){return e[Yn]??=[]}function Uc(e){return e.cleanup??=[]}var D={lFrame:Jc(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ko=!1;function Rf(){return D.lFrame.elementDepthCount}function Of(){D.lFrame.elementDepthCount++}function Ff(){D.lFrame.elementDepthCount--}function Gc(){return D.bindingsEnabled}function kf(){return D.skipHydrationRootTNode!==null}function Pf(e){return D.skipHydrationRootTNode===e}function Lf(){D.skipHydrationRootTNode=null}function F(){return D.lFrame.lView}function Oe(){return D.lFrame.tView}function Cr(e){return D.lFrame.contextLView=e,e[U]}function _r(e){return D.lFrame.contextLView=null,e}function Me(){let e=zc();for(;e!==null&&e.type===64;)e=e.parent;return e}function zc(){return D.lFrame.currentTNode}function Vf(){let e=D.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Ut(e,t){let n=D.lFrame;n.currentTNode=e,n.isParent=t}function Wc(){return D.lFrame.isParent}function jf(){D.lFrame.isParent=!1}function qc(){return Ko}function ka(e){let t=Ko;return Ko=e,t}function Bf(e){return D.lFrame.bindingIndex=e}function Zc(){return D.lFrame.bindingIndex++}function Hf(e){let t=D.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function $f(){return D.lFrame.inI18n}function Uf(e,t){let n=D.lFrame;n.bindingIndex=n.bindingRootIndex=e,Jo(t)}function Gf(){return D.lFrame.currentDirectiveIndex}function Jo(e){D.lFrame.currentDirectiveIndex=e}function zf(e){let t=D.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Yc(e){D.lFrame.currentQueryIndex=e}function Wf(e){let t=e[w];return t.type===2?t.declTNode:t.type===1?e[ie]:null}function Qc(e,t,n){if(n&y.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&y.Host);)if(o=Wf(i),o===null||(i=i[lt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=D.lFrame=Kc();return r.currentTNode=t,r.lView=e,!0}function Oi(e){let t=Kc(),n=e[w];D.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Kc(){let e=D.lFrame,t=e===null?null:e.child;return t===null?Jc(e):t}function Jc(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Xc(){let e=D.lFrame;return D.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var eu=Xc;function Fi(){let e=Xc();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 qf(e){return(D.lFrame.contextLView=xf(e,D.lFrame.contextLView))[U]}function ft(){return D.lFrame.selectedIndex}function Ue(e){D.lFrame.selectedIndex=e}function Zf(){let e=D.lFrame;return jc(e.tView,e.selectedIndex)}function tu(){D.lFrame.currentNamespace=Lc}function nu(){Yf()}function Yf(){D.lFrame.currentNamespace=null}function Qf(){return D.lFrame.currentNamespace}var ru=!0;function ki(){return ru}function Pi(e){ru=e}function Kf(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=If(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function ou(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function Bn(e,t,n){iu(e,t,3,n)}function Hn(e,t,n,r){(e[m]&3)===n&&iu(e,t,n,r)}function ko(e,t){let n=e[m];(n&3)===t&&(n&=16383,n+=1,e[m]=n)}function iu(e,t,n,r){let o=r!==void 0?e[et]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[et]+=65536),(a<i||i==-1)&&(Jf(e,n,t,c),e[et]=(e[et]&4294901760)+c+2),c++}function Pa(e,t){x(4,e,t);let n=E(null);try{t.call(e)}finally{E(n),x(5,e,t)}}function Jf(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[m]>>14<e[et]>>16&&(e[m]&3)===t&&(e[m]+=16384,Pa(a,i)):Pa(a,i)}var nt=-1,Vt=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function Xf(e){return(e.flags&8)!==0}function ep(e){return(e.flags&16)!==0}function tp(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];rp(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function np(e){return e===3||e===4||e===6}function rp(e){return e.charCodeAt(0)===64}function Li(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?La(e,n,o,null,t[++r]):La(e,n,o,null,null))}}return e}function La(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function su(e){return e!==nt}function tr(e){return e&32767}function op(e){return e>>16}function nr(e,t){let n=op(e),r=t;for(;n>0;)r=r[lt],n--;return r}var Xo=!0;function Va(e){let t=Xo;return Xo=e,t}var ip=256,au=ip-1,cu=5,sp=0,ce={};function ap(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ot)&&(r=n[Ot]),r==null&&(r=n[Ot]=sp++);let o=r&au,i=1<<o;t.data[e+(o>>cu)]|=i}function uu(e,t){let n=lu(e,t);if(n!==-1)return n;let r=t[w];r.firstCreatePass&&(e.injectorIndex=t.length,Po(r.data,e),Po(t,null),Po(r.blueprint,null));let o=Vi(e,t),i=e.injectorIndex;if(su(o)){let s=tr(o),a=nr(o,t),c=a[w].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function Po(e,t){e.push(0,0,0,0,0,0,0,0,t)}function lu(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Vi(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=gu(o),r===null)return nt;if(n++,o=o[lt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return nt}function cp(e,t,n){ap(e,t,n)}function du(e,t,n){if(n&y.Optional||e!==void 0)return e;Mi(t,"NodeInjector")}function fu(e,t,n,r){if(n&y.Optional&&r===void 0&&(r=null),(n&(y.Self|y.Host))===0){let o=e[ot],i=Y(void 0);try{return o?o.get(t,r,n&y.Optional):Cc(t,r,n&y.Optional)}finally{Y(i)}}return du(r,t,n)}function pu(e,t,n,r=y.Default,o){if(e!==null){if(t[m]&2048&&!(r&y.Self)){let s=pp(e,t,n,r,ce);if(s!==ce)return s}let i=hu(e,t,n,r,ce);if(i!==ce)return i}return fu(t,n,r,o)}function hu(e,t,n,r,o){let i=dp(n);if(typeof i=="function"){if(!Qc(t,e,r))return r&y.Host?du(o,n,r):fu(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&y.Optional))Mi(n);else return s}finally{eu()}}else if(typeof i=="number"){let s=null,a=lu(e,t),c=nt,u=r&y.Host?t[ye][ie]:null;for((a===-1||r&y.SkipSelf)&&(c=a===-1?Vi(e,t):t[a+8],c===nt||!Ba(r,!1)?a=-1:(s=t[w],a=tr(c),t=nr(c,t)));a!==-1;){let l=t[w];if(ja(i,a,l.data)){let f=up(a,t,n,s,r,u);if(f!==ce)return f}c=t[a+8],c!==nt&&Ba(r,t[w].data[a+8]===u)&&ja(i,a,t)?(s=l,a=tr(c),t=nr(c,t)):a=-1}}return o}function up(e,t,n,r,o,i){let s=t[w],a=s.data[e+8],c=r==null?Ht(a)&&Xo:r!=s&&(a.type&3)!==0,u=o&y.Host&&i===a,l=lp(a,s,n,c,u);return l!==null?ei(t,s,l,a,o):ce}function lp(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,f=r?a:a+l,p=o?a+l:u;for(let d=f;d<p;d++){let h=s[d];if(d<c&&n===h||d>=c&&h.type===n)return d}if(o){let d=s[c];if(d&&We(d)&&d.type===n)return c}return null}function ei(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Vt){let a=i;a.resolving&&Dc(Zd(s[n]));let c=Va(a.canSeeViewProviders);a.resolving=!0;let u,l=a.injectImpl?Y(a.injectImpl):null,f=Qc(e,r,y.Default);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Kf(n,s[n],t)}finally{l!==null&&Y(l),Va(c),a.resolving=!1,eu()}}return i}function dp(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Ot)?e[Ot]:void 0;return typeof t=="number"?t>=0?t&au:fp:t}function ja(e,t,n){let r=1<<e;return!!(n[t+(e>>cu)]&r)}function Ba(e,t){return!(e&y.Self)&&!(e&y.Host&&t)}var Be=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return pu(this._tNode,this._lView,t,yr(r),n)}};function fp(){return new Be(Me(),F())}function pp(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[m]&2048&&!Xn(s);){let a=hu(i,s,n,r|y.Self,ce);if(a!==ce)return a;let c=i.parent;if(!c){let u=s[Ac];if(u){let l=u.get(n,ce,r);if(l!==ce)return l}c=gu(s),s=s[lt]}i=c}return o}function gu(e){let t=e[w],n=t.type;return n===2?t.declTNode:n===1?e[ie]:null}function Ha(e,t=null,n=null,r){let o=mu(e,t,n,r);return o.resolveInjectorInitializers(),o}function mu(e,t=null,n=null,r,o=new Set){let i=[n||re,ff(e)];return r=r||(typeof e=="object"?void 0:$(e)),new Pt(i,t||Ni(),r||null,o)}var J=class e{static THROW_IF_NOT_FOUND=je;static NULL=new qn;static create(t,n){if(Array.isArray(t))return Ha({name:""},n,t,"");{let r=t.name??"";return Ha({name:r},t.parent,t.providers,r)}}static \u0275prov=T({token:e,providedIn:"any",factory:()=>C(Ic)});static __NG_ELEMENT_ID__=-1};var hp=new v("");hp.__NG_ELEMENT_ID__=e=>{let t=Me();if(t===null)throw new g(204,!1);if(t.type&2)return t.value;if(e&y.Optional)return null;throw new g(204,!1)};var yu=!1,ji=(()=>{class e{static __NG_ELEMENT_ID__=gp;static __NG_ENV_ID__=n=>n}return e})(),ti=class extends ji{_lView;constructor(t){super(),this._lView=t}onDestroy(t){let n=this._lView;return dt(n)?(t(),()=>{}):(Hc(n,t),()=>Af(n,t))}};function gp(){return new ti(F())}var Ge=class{},vu=new v("",{providedIn:"root",factory:()=>!1});var Du=new v(""),Eu=new v(""),wr=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new St(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=T({token:e,providedIn:"root",factory:()=>new e})}return e})();var ni=class extends ee{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,xc()&&(this.destroyRef=I(ji,{optional:!0})??void 0,this.pendingTasks=I(wr,{optional:!0})??void 0)}emit(t){let n=E(null);try{super.next(t)}finally{E(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof V&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},H=ni;function rr(...e){}function Cu(e){let t,n;function r(){e=rr;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function $a(e){return queueMicrotask(()=>e()),()=>{e=rr}}var Bi="isAngularZone",or=Bi+"_ID",mp=0,R=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new H(!1);onMicrotaskEmpty=new H(!1);onStable=new H(!1);onError=new H(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=yu}=t;if(typeof Zone>"u")throw new g(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Dp(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Bi)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new g(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new g(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,yp,rr,rr);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},yp={};function Hi(e){if(e._nesting==0&&!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 vp(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Cu(()=>{e.callbackScheduled=!1,ri(e),e.isCheckStableRunning=!0,Hi(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),ri(e)}function Dp(e){let t=()=>{vp(e)},n=mp++;e._inner=e._inner.fork({name:"angular",properties:{[Bi]:!0,[or]:n,[or+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Ep(c))return r.invokeTask(i,s,a,c);try{return Ua(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ga(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Ua(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Cp(c)&&t(),Ga(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,ri(e),Hi(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function ri(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Ua(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ga(e){e._nesting--,Hi(e)}var ir=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new H;onMicrotaskEmpty=new H;onStable=new H;onError=new H;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Ep(e){return _u(e,"__ignore_ng_zone__")}function Cp(e){return _u(e,"__scheduler_tick__")}function _u(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}function _p(e="zone.js",t){return e==="noop"?new ir:e==="zone.js"?new R(t):e}var Ee=class{_console=console;handleError(t){this._console.error("ERROR",t)}},wp=new v("",{providedIn:"root",factory:()=>{let e=I(R),t=I(Ee);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Ip(){return Ir(Me(),F())}function Ir(e,t){return new pt(be(e,t))}var pt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Ip}return e})();function br(e,t){let n=po(e,t?.equal),r=n[se];return n.set=o=>gn(r,o),n.update=o=>ho(r,o),n.asReadonly=bp.bind(n),n}function bp(){let e=this[se];if(e.readonlyFn===void 0){let t=()=>this();t[se]=e,e.readonlyFn=t}return e.readonlyFn}function wu(e){return(e.flags&128)===128}var Iu=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Iu||{}),bu=new Map,Mp=0;function Sp(){return Mp++}function Tp(e){bu.set(e[Dr],e)}function oi(e){bu.delete(e[Dr])}var za="__ngContext__";function Gt(e,t){Ne(t)?(e[za]=t[Dr],Tp(t)):e[za]=t}function Mu(e){return Tu(e[Lt])}function Su(e){return Tu(e[oe])}function Tu(e){for(;e!==null&&!Ie(e);)e=e[oe];return e}var ii;function Nu(e){ii=e}function Np(){if(ii!==void 0)return ii;if(typeof document<"u")return document;throw new g(210,!1)}var $i=new v("",{providedIn:"root",factory:()=>xp}),xp="ng",Ui=new v(""),zt=new v("",{providedIn:"platform",factory:()=>"unknown"});var Gi=new v("",{providedIn:"root",factory:()=>Np().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Ap="h",Rp="b";var xu=!1,Op=new v("",{providedIn:"root",factory:()=>xu});var Au=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Au||{}),Mr=new v(""),Wa=new Set;function Fp(e){Wa.has(e)||(Wa.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var kp=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=T({token:e,providedIn:"root",factory:()=>new e})}return e})();var Pp=(e,t,n,r)=>{};function Lp(e,t,n,r){Pp(e,t,n,r)}var Vp=()=>null;function Ru(e,t,n=!1){return Vp(e,t,n)}function Ou(e,t){let n=e.contentQueries;if(n!==null){let r=E(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Yc(i),a.contentQueries(2,t[s],s)}}}finally{E(r)}}}function si(e,t,n){Yc(0);let r=E(null);try{t(e,n)}finally{E(r)}}function Fu(e,t,n){if(Oc(t)){let r=E(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{E(r)}}}var le=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(le||{});var ai=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Pd})`}};function jp(e){return e instanceof ai?e.changingThisBreaksApplicationSecurity:e}function Bp(e,t){return e.createText(t)}function Hp(e,t,n){e.setValue(t,n)}function ku(e,t,n){return e.createElement(t,n)}function sr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Pu(e,t,n){e.appendChild(t,n)}function qa(e,t,n,r,o){r!==null?sr(e,t,n,r,o):Pu(e,t,n)}function $p(e,t,n){e.removeChild(null,t,n)}function Up(e,t,n){e.setAttribute(t,"style",n)}function Gp(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Lu(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&tp(e,t,r),o!==null&&Gp(e,t,o),i!==null&&Up(e,t,i)}function zp(e){return e instanceof Function?e():e}function Wp(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var Vu="ng-template";function qp(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&Wp(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(zi(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function zi(e){return e.type===4&&e.value!==Vu}function Zp(e,t,n){let r=e.type===4&&!n?Vu:e.value;return t===r}function Yp(e,t,n){let r=4,o=e.attrs,i=o!==null?Jp(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!te(r)&&!te(c))return!1;if(s&&te(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!Zp(e,c,n)||c===""&&t.length===1){if(te(r))return!1;s=!0}}else if(r&8){if(o===null||!qp(e,o,c,n)){if(te(r))return!1;s=!0}}else{let u=t[++a],l=Qp(c,o,zi(e),n);if(l===-1){if(te(r))return!1;s=!0;continue}if(u!==""){let f;if(l>i?f="":f=o[l+1].toLowerCase(),r&2&&u!==f){if(te(r))return!1;s=!0}}}}return te(r)||s}function te(e){return(e&1)===0}function Qp(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return Xp(t,e)}function Kp(e,t,n=!1){for(let r=0;r<t.length;r++)if(Yp(e,t[r],n))return!0;return!1}function Jp(e){for(let t=0;t<e.length;t++){let n=e[t];if(np(n))return t}return e.length}function Xp(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Za(e,t){return e?":not("+t.trim()+")":t}function eh(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!te(s)&&(t+=Za(i,o),o=""),r=s,i=i||!te(r);n++}return o!==""&&(t+=Za(i,o)),t}function th(e){return e.map(eh).join(",")}function nh(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!te(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var ht={};function Wi(e,t,n,r,o,i,s,a,c,u,l){let f=ve+r,p=f+o,d=rh(f,p),h=typeof u=="function"?u():u;return d[w]={type:e,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:t,data:d.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:!1,ssrId:l}}function rh(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:ht);return n}function oh(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Wi(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function qi(e,t,n,r,o,i,s,a,c,u,l){let f=t.blueprint.slice();return f[we]=o,f[m]=r|4|128|8|64|1024,(u!==null||e&&e[m]&2048)&&(f[m]|=2048),Bc(f),f[j]=f[lt]=e,f[U]=n,f[Ae]=s||e&&e[Ae],f[L]=a||e&&e[L],f[ot]=c||e&&e[ot]||null,f[ie]=i,f[Dr]=Sp(),f[Zn]=l,f[Ac]=u,f[ye]=t.type==2?e[ye]:f,f}function ih(e,t,n){let r=be(t,e),o=oh(n),i=e[Ae].rendererFactory,s=Zi(e,qi(e,o,null,ju(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function ju(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Bu(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Zi(e,t){return e[Lt]?e[Oa][oe]=t:e[Lt]=t,e[Oa]=t,t}function fe(e=1){Hu(Oe(),F(),ft()+e,!1)}function Hu(e,t,n,r){if(!r)if((t[m]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Bn(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Hn(t,i,0,n)}Ue(n)}var Sr=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Sr||{});function ci(e,t,n,r){let o=E(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Sr.SignalBased)!==0&&(c=t[i][se]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Fc(t,c,i,r)}finally{E(o)}}function $u(e,t,n,r,o){let i=ft(),s=r&2;try{Ue(-1),s&&t.length>ve&&Hu(e,t,ve,!1),x(s?2:0,o),n(r,o)}finally{Ue(i),x(s?3:1,o)}}function Yi(e,t,n){fh(e,t,n),(n.flags&64)===64&&ph(e,t,n)}function Uu(e,t,n=be){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function sh(e,t,n,r){let i=r.get(Op,xu)||n===le.ShadowDom,s=e.selectRootElement(t,i);return ah(s),s}function ah(e){ch(e)}var ch=()=>null;function uh(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function lh(e,t,n,r,o,i,s,a){if(!a&&Qi(t,e,n,r,o)){Ht(t)&&dh(n,t.index);return}if(t.type&3){let c=be(t,n);r=uh(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(c,r,o)}else t.type&12}function dh(e,t){let n=De(t,e);n[m]&16||(n[m]|=64)}function fh(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Ht(n)&&ih(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||uu(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=ei(t,e,s,n);if(Gt(c,t),i!==null&&gh(t,s-r,c,a,n,i),We(a)){let u=De(n.index,t);u[U]=ei(t,e,s,n)}}}function ph(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Gf();try{Ue(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Jo(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&hh(c,u)}}finally{Ue(-1),Jo(s)}}function hh(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Gu(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Kp(t,i.selectors,!1)&&(r??=[],We(i)?r.unshift(i):r.push(i))}return r}function gh(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];ci(r,n,c,u)}}function mh(e,t){let n=e[ot],r=n?n.get(Ee,null):null;r&&r.handleError(t)}function Qi(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],f=t.data[u];ci(f,n[u],l,o),a=!0}if(i)for(let c of i){let u=n[c],l=t.data[c];ci(l,u,r,o),a=!0}return a}function yh(e,t){let n=De(t,e),r=n[w];vh(r,n);let o=n[we];o!==null&&n[Zn]===null&&(n[Zn]=Ru(o,n[ot])),x(18),Ki(r,n,n[U]),x(19,n[U])}function vh(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Ki(e,t,n){Oi(t);try{let r=e.viewQuery;r!==null&&si(1,r,n);let o=e.template;o!==null&&$u(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[st]?.finishViewCreation(e),e.staticContentQueries&&Ou(e,t),e.staticViewQueries&&si(2,e.viewQuery,n);let i=e.components;i!==null&&Dh(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[m]&=-5,Fi()}}function Dh(e,t){for(let n=0;n<t.length;n++)yh(e,t[n])}function Eh(e,t,n,r){let o=E(null);try{let i=t.tView,a=e[m]&4096?4096:16,c=qi(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[it]=u;let l=e[st];return l!==null&&(c[st]=l.createEmbeddedView(i)),Ki(i,c,n),c}finally{E(o)}}function Ya(e,t){return!t||t.firstChild===null||wu(e)}var Ch;function Ji(e,t){return Ch(e,t)}var Ce=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Ce||{});function zu(e){return(e.flags&32)===32}function tt(e,t,n,r,o){if(r!=null){let i,s=!1;Ie(r)?i=r:Ne(r)&&(s=!0,r=r[we]);let a=ue(r);e===0&&n!==null?o==null?Pu(t,n,a):sr(t,n,a,o||null,!0):e===1&&n!==null?sr(t,n,a,o||null,!0):e===2?$p(t,a,s):e===3&&t.destroyNode(a),i!=null&&Oh(t,e,i,n,o)}}function _h(e,t){Wu(e,t),t[we]=null,t[ie]=null}function wh(e,t,n,r,o,i){r[we]=o,r[ie]=t,Tr(e,r,n,1,o,i)}function Wu(e,t){t[Ae].changeDetectionScheduler?.notify(9),Tr(e,t,t[L],2,null,null)}function Ih(e){let t=e[Lt];if(!t)return Lo(e[w],e);for(;t;){let n=null;if(Ne(t))n=t[Lt];else{let r=t[K];r&&(n=r)}if(!n){for(;t&&!t[oe]&&t!==e;)Ne(t)&&Lo(t[w],t),t=t[j];t===null&&(t=e),Ne(t)&&Lo(t[w],t),n=t&&t[oe]}t=n}}function Xi(e,t){let n=e[Jn],r=n.indexOf(t);n.splice(r,1)}function qu(e,t){if(dt(t))return;let n=t[L];n.destroyNode&&Tr(e,t,n,3,null,null),Ih(t)}function Lo(e,t){if(dt(t))return;let n=E(null);try{t[m]&=-129,t[m]|=256,t[Q]&&uo(t[Q]),Mh(e,t),bh(e,t),t[w].type===1&&t[L].destroy();let r=t[it];if(r!==null&&Ie(t[j])){r!==t[j]&&Xi(r,t);let o=t[st];o!==null&&o.detachView(e)}oi(t)}finally{E(n)}}function bh(e,t){let n=e.cleanup,r=t[Yn];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Yn]=null);let o=t[Te];if(o!==null){t[Te]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Qn];if(i!==null){t[Qn]=null;for(let s of i)s.destroy()}}function Mh(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Vt)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];x(4,a,c);try{c.call(a)}finally{x(5,a,c)}}else{x(4,o,i);try{i.call(o)}finally{x(5,o,i)}}}}}function Sh(e,t,n){return Th(e,t.parent,n)}function Th(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[we];if(Ht(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===le.None||o===le.Emulated)return null}return be(r,n)}function Nh(e,t,n){return Ah(e,t,n)}function xh(e,t,n){return e.type&40?be(e,n):null}var Ah=xh,Qa;function es(e,t,n,r){let o=Sh(e,r,t),i=t[L],s=r.parent||t[ie],a=Nh(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)qa(i,o,n[c],a,!1);else qa(i,o,n,a,!1);Qa!==void 0&&Qa(i,r,t,n,o)}function Rt(e,t){if(t!==null){let n=t.type;if(n&3)return be(t,e);if(n&4)return ui(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Rt(e,r);{let o=e[t.index];return Ie(o)?ui(-1,o):ue(o)}}else{if(n&128)return Rt(e,t.next);if(n&32)return Ji(t,e)()||ue(e[t.index]);{let r=Zu(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=$e(e[ye]);return Rt(o,r)}else return Rt(e,t.next)}}}return null}function Zu(e,t){if(t!==null){let r=e[ye][ie],o=t.projection;return r.projection[o]}return null}function ui(e,t){let n=K+e+1;if(n<t.length){let r=t[n],o=r[w].firstChild;if(o!==null)return Rt(r,o)}return t[He]}function ts(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],c=n.type;if(s&&t===0&&(a&&Gt(ue(a),r),n.flags|=2),!zu(n))if(c&8)ts(e,t,n.child,r,o,i,!1),tt(t,e,o,a,i);else if(c&32){let u=Ji(n,r),l;for(;l=u();)tt(t,e,o,l,i);tt(t,e,o,a,i)}else c&16?Rh(e,t,r,n,o,i):tt(t,e,o,a,i);n=s?n.projectionNext:n.next}}function Tr(e,t,n,r,o,i){ts(n,r,e.firstChild,t,o,i,!1)}function Rh(e,t,n,r,o,i){let s=n[ye],c=s[ie].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];tt(t,e,o,l,i)}else{let u=c,l=s[j];wu(r)&&(u.flags|=128),ts(e,t,u,l,o,i,!0)}}function Oh(e,t,n,r,o){let i=n[He],s=ue(n);i!==s&&tt(t,e,r,i,o);for(let a=K;a<n.length;a++){let c=n[a];Tr(c[w],c,e,t,r,i)}}function Fh(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Ce.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Ce.Important),e.setStyle(n,r,o,i))}}function ar(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(ue(i)),Ie(i)&&kh(i,r);let s=n.type;if(s&8)ar(e,t,n.child,r);else if(s&32){let a=Ji(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=Zu(t,n);if(Array.isArray(a))r.push(...a);else{let c=$e(t[ye]);ar(c[w],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function kh(e,t){for(let n=K;n<e.length;n++){let r=e[n],o=r[w].firstChild;o!==null&&ar(r[w],r,o,t)}e[He]!==e[we]&&t.push(e[He])}function Yu(e){if(e[Fo]!==null){for(let t of e[Fo])t.impl.addSequence(t);e[Fo].length=0}}var Qu=[];function Ph(e){return e[Q]??Lh(e)}function Lh(e){let t=Qu.pop()??Object.create(jh);return t.lView=e,t}function Vh(e){e.lView[Q]!==e&&(e.lView=null,Qu.push(e))}var jh=N(M({},It),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Er(e.lView)},consumerOnSignalRead(){this.lView[Q]=this}});function Bh(e){let t=e[Q]??Object.create(Hh);return t.lView=e,t}var Hh=N(M({},It),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=$e(e.lView);for(;t&&!Ku(t[w]);)t=$e(t);t&&Ri(t)},consumerOnSignalRead(){this.lView[Q]=this}});function Ku(e){return e.type!==2}function Ju(e){if(e[Qn]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Qn])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[m]&8192)}}var $h=100;function Xu(e,t=!0,n=0){let o=e[Ae].rendererFactory,i=!1;i||o.begin?.();try{Uh(e,n)}catch(s){throw t&&mh(e,s),s}finally{i||o.end?.()}}function Uh(e,t){let n=qc();try{ka(!0),li(e,t);let r=0;for(;$t(e);){if(r===$h)throw new g(103,!1);r++,li(e,1)}}finally{ka(n)}}function Gh(e,t,n,r){if(dt(t))return;let o=t[m],i=!1,s=!1;Oi(t);let a=!0,c=null,u=null;i||(Ku(e)?(u=Ph(t),c=fn(u)):ro()===null?(a=!1,u=Bh(t),c=fn(u)):t[Q]&&(uo(t[Q]),t[Q]=null));try{Bc(t),Bf(e.bindingStartIndex),n!==null&&$u(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let d=e.preOrderCheckHooks;d!==null&&Bn(t,d,null)}else{let d=e.preOrderHooks;d!==null&&Hn(t,d,0,null),ko(t,0)}if(s||zh(t),Ju(t),el(t,0),e.contentQueries!==null&&Ou(e,t),!i)if(l){let d=e.contentCheckHooks;d!==null&&Bn(t,d)}else{let d=e.contentHooks;d!==null&&Hn(t,d,1),ko(t,1)}qh(e,t);let f=e.components;f!==null&&nl(t,f,0);let p=e.viewQuery;if(p!==null&&si(2,p,r),!i)if(l){let d=e.viewCheckHooks;d!==null&&Bn(t,d)}else{let d=e.viewHooks;d!==null&&Hn(t,d,2),ko(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Oo]){for(let d of t[Oo])d();t[Oo]=null}i||(Yu(t),t[m]&=-73)}catch(l){throw i||Er(t),l}finally{u!==null&&(ao(u,c),a&&Vh(u)),Fi()}}function el(e,t){for(let n=Mu(e);n!==null;n=Su(n))for(let r=K;r<n.length;r++){let o=n[r];tl(o,t)}}function zh(e){for(let t=Mu(e);t!==null;t=Su(t)){if(!(t[m]&2))continue;let n=t[Jn];for(let r=0;r<n.length;r++){let o=n[r];Ri(o)}}}function Wh(e,t,n){x(18);let r=De(t,e);tl(r,n),x(19,r[U])}function tl(e,t){Ai(e)&&li(e,t)}function li(e,t){let r=e[w],o=e[m],i=e[Q],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&co(i)),s||=!1,i&&(i.dirty=!1),e[m]&=-9217,s)Gh(r,e,r.template,e[U]);else if(o&8192){Ju(e),el(e,1);let a=r.components;a!==null&&nl(e,a,1),Yu(e)}}function nl(e,t,n){for(let r=0;r<t.length;r++)Wh(e,t[r],n)}function qh(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Ue(~o);else{let i=o,s=n[++r],a=n[++r];Uf(s,i);let c=t[i];x(24,c),a(2,c),x(25,c)}}}finally{Ue(-1)}}function ns(e,t){let n=qc()?64:1088;for(e[Ae].changeDetectionScheduler?.notify(t);e;){e[m]|=n;let r=$e(e);if(Xn(e)&&!r)return e;e=r}return null}function rl(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Zh(e,t,n,r=!0){let o=t[w];if(Yh(o,t,e,n),r){let s=ui(n,e),a=t[L],c=a.parentNode(e[He]);c!==null&&wh(o,e[ie],a,t,c,s)}let i=t[Zn];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function di(e,t){if(e.length<=K)return;let n=K+t,r=e[n];if(r){let o=r[it];o!==null&&o!==e&&Xi(o,r),t>0&&(e[n-1][oe]=r[oe]);let i=zn(e,K+t);_h(r[w],r);let s=i[st];s!==null&&s.detachView(i[w]),r[j]=null,r[oe]=null,r[m]&=-129}return r}function Yh(e,t,n,r){let o=K+r,i=n.length;r>0&&(n[o-1][oe]=t),r<i-K?(t[oe]=n[o],wc(n,K+r,t)):(n.push(t),t[oe]=null),t[j]=n;let s=t[it];s!==null&&n!==s&&ol(s,t);let a=t[st];a!==null&&a.insertView(e),Qo(t),t[m]|=128}function ol(e,t){let n=e[Jn],r=t[j];if(Ne(r))e[m]|=2;else{let o=r[j][ye];t[ye]!==o&&(e[m]|=2)}n===null?e[Jn]=[t]:n.push(t)}var rs=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,n=t[w];return ar(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[U]}set context(t){this._lView[U]=t}get destroyed(){return dt(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[j];if(Ie(t)){let n=t[Kn],r=n?n.indexOf(this):-1;r>-1&&(di(t,r),zn(n,r))}this._attachedToViewContainer=!1}qu(this._lView[w],this._lView)}onDestroy(t){Hc(this._lView,t)}markForCheck(){ns(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[m]&=-129}reattach(){Qo(this._lView),this._lView[m]|=128}detectChanges(){this._lView[m]|=1024,Xu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new g(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Xn(this._lView),n=this._lView[it];n!==null&&!t&&Xi(n,this._lView),Wu(this._lView[w],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new g(902,!1);this._appRef=t;let n=Xn(this._lView),r=this._lView[it];r!==null&&!n&&ol(r,this._lView),Qo(this._lView)}};function il(e){return $t(e._lView)||!!(e._lView[m]&64)}function sl(e){Ri(e._cdRefInjectingView||e._lView)}var Nr=(()=>{class e{static __NG_ELEMENT_ID__=Jh}return e})(),Qh=Nr,Kh=class extends Qh{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Eh(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new rs(o)}};function Jh(){return Xh(Me(),F())}function Xh(e,t){return e.type&4?new Kh(t,e,Ir(e,t)):null}function os(e,t,n,r,o){let i=e.data[t];if(i===null)i=eg(e,t,n,r,o),$f()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Vf();i.injectorIndex=s===null?-1:s.injectorIndex}return Ut(i,!0),i}function eg(e,t,n,r,o){let i=zc(),s=Wc(),a=s?i:i&&i.parent,c=e.data[t]=ng(e,a,n,t,r,o);return tg(e,c,i,s),c}function tg(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function ng(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return kf()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var GC=new RegExp(`^(\\d+)*(${Rp}|${Ap})*(.*)`);var rg=()=>null;function Ka(e,t){return rg(e,t)}var og=class{},al=class{},fi=class{resolveComponentFactory(t){throw Error(`No component factory found for ${$(t)}.`)}},qe=class{static NULL=new fi},at=class{},is=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>ig()}return e})();function ig(){let e=F(),t=Me(),n=De(t.index,e);return(Ne(n)?n:e)[L]}var sg=(()=>{class e{static \u0275prov=T({token:e,providedIn:"root",factory:()=>null})}return e})();var Vo={},pi=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=yr(r);let o=this.injector.get(t,Vo,r);return o!==Vo||n===Vo?o:this.parentInjector.get(t,n,r)}};function Ja(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=ba(o,a);else if(i==2){let c=a,u=t[++s];r=ba(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function W(e,t=y.Default){let n=F();if(n===null)return C(e,t);let r=Me();return pu(r,n,ne(e),t)}function cl(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a,c=null,u=null,l=cg(s);l===null?a=s:[a,c,u]=l,dg(e,t,n,a,i,c,u)}i!==null&&r!==null&&ag(n,r,i)}function ag(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new g(-301,!1);r.push(t[o],i)}}function cg(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&We(a)&&(t=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,o=null,i=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],o??=new Map,i??=new Map,ug(s,r,i,o)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,o,i]):null}function ug(e,t,n,r){let o=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[o,t.length-1])}function lg(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function dg(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let p=0;p<a;p++){let d=r[p];!c&&We(d)&&(c=!0,lg(e,n,p)),cp(uu(n,t),e,d.type)}yg(n,e.data.length,a);for(let p=0;p<a;p++){let d=r[p];d.providersResolver&&d.providersResolver(d)}let u=!1,l=!1,f=Bu(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let d=r[p];if(n.mergedAttrs=Li(n.mergedAttrs,d.hostAttrs),pg(e,n,t,f,d),mg(f,d,o),s!==null&&s.has(d)){let[b,B]=s.get(d);n.directiveToIndex.set(d.type,[f,b+n.directiveStart,B+n.directiveStart])}else(i===null||!i.has(d))&&n.directiveToIndex.set(d.type,f);d.contentQueries!==null&&(n.flags|=4),(d.hostBindings!==null||d.hostAttrs!==null||d.hostVars!==0)&&(n.flags|=64);let h=d.type.prototype;!u&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),f++}fg(e,n,i)}function fg(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Xa(0,t,o,r),Xa(1,t,o,r),tc(t,r,!1);else{let i=n.get(o);ec(0,t,i,r),ec(1,t,i,r),tc(t,r,!0)}}}function Xa(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),ul(t,i)}}function ec(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),ul(t,s)}}function ul(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function tc(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||zi(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function pg(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Ft(o.type,!0)),s=new Vt(i,We(o),W);e.blueprint[r]=s,n[r]=s,hg(e,t,r,Bu(e,n,o.hostVars,ht),o)}function hg(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;gg(s)!=a&&s.push(a),s.push(n,r,i)}}function gg(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function mg(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;We(t)&&(n[""]=e)}}function yg(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ll(e,t,n,r,o,i,s,a){let c=t.consts,u=er(c,s),l=os(t,e,2,r,u);return i&&cl(t,n,l,er(c,a),o),l.mergedAttrs=Li(l.mergedAttrs,l.attrs),l.attrs!==null&&Ja(l,l.attrs,!1),l.mergedAttrs!==null&&Ja(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function dl(e,t){ou(e,t),Oc(t)&&e.queries.elementEnd(t)}var cr=class extends qe{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=kt(t);return new ur(n,this.ngModule)}};function vg(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Sr.SignalBased)!==0};return o&&(i.transform=o),i})}function Dg(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function Eg(e,t,n){let r=t instanceof xe?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new pi(n,r):n}function Cg(e){let t=e.get(at,null);if(t===null)throw new g(407,!1);let n=e.get(sg,null),r=e.get(Ge,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function _g(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return ku(t,n,n==="svg"?Lc:n==="math"?Tf:null)}var ur=class extends al{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=vg(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Dg(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=th(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o){x(22);let i=E(null);try{let s=this.componentDef,a=r?["ng-version","19.2.18"]:nh(this.componentDef.selectors[0]),c=Wi(0,null,null,1,0,null,null,null,null,[a],null),u=Eg(s,o||this.ngModule,t),l=Cg(u),f=l.rendererFactory.createRenderer(null,s),p=r?sh(f,r,s.encapsulation,u):_g(s,f),d=qi(null,c,null,512|ju(s),null,null,l,f,u,null,Ru(p,u,!0));d[ve]=p,Oi(d);let h=null;try{let b=ll(ve,c,d,"#host",()=>[this.componentDef],!0,0);p&&(Lu(f,p,b),Gt(p,d)),Yi(c,d,b),Fu(c,b,d),dl(c,b),n!==void 0&&wg(b,this.ngContentSelectors,n),h=De(b.index,d),d[U]=h[U],Ki(c,d,null)}catch(b){throw h!==null&&oi(h),oi(d),b}finally{x(23),Fi()}return new hi(this.componentType,d)}finally{E(i)}}},hi=class extends og{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n){super(),this._rootLView=n,this._tNode=jc(n[w],ve),this.location=Ir(this._tNode,n),this.instance=De(this._tNode.index,n)[U],this.hostView=this.changeDetectorRef=new rs(n,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=Qi(r,o[w],o,t,n);this.previousInputValues.set(t,n);let s=De(r.index,o);ns(s,1)}get injector(){return new Be(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function wg(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var xr=(()=>{class e{static __NG_ELEMENT_ID__=Ig}return e})();function Ig(){let e=Me();return Mg(e,F())}var bg=xr,fl=class extends bg{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ir(this._hostTNode,this._hostLView)}get injector(){return new Be(this._hostTNode,this._hostLView)}get parentInjector(){let t=Vi(this._hostTNode,this._hostLView);if(su(t)){let n=nr(t,this._hostLView),r=tr(t),o=n[w].data[r+8];return new Be(o,n)}else return new Be(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=nc(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-K}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Ka(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Ya(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!wf(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let c=s?t:new ur(kt(t)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let b=(s?u:this.parentInjector).get(xe,null);b&&(i=b)}let l=kt(c.componentType??{}),f=Ka(this._lContainer,l?.id??null),p=f?.firstChild??null,d=c.create(u,o,p,i);return this.insertImpl(d.hostView,a,Ya(this._hostTNode,f)),d}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Nf(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[j],u=new fl(c,c[ie],c[j]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Zh(s,o,i,r),t.attachToViewContainerRef(),wc(jo(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=nc(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=di(this._lContainer,n);r&&(zn(jo(this._lContainer),n),qu(r[w],r))}detach(t){let n=this._adjustIndex(t,-1),r=di(this._lContainer,n);return r&&zn(jo(this._lContainer),n)!=null?new rs(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function nc(e){return e[Kn]}function jo(e){return e[Kn]||(e[Kn]=[])}function Mg(e,t){let n,r=t[e.index];return Ie(r)?n=r:(n=rl(r,t,null,e),t[e.index]=n,Zi(t,n)),Tg(n,t,e,r),new fl(n,e,t)}function Sg(e,t){let n=e[L],r=n.createComment(""),o=be(t,e),i=n.parentNode(o);return sr(n,i,r,n.nextSibling(o),!1),r}var Tg=Ag,Ng=()=>!1;function xg(e,t,n){return Ng(e,t,n)}function Ag(e,t,n,r){if(e[He])return;let o;n.type&8?o=ue(r):o=Sg(t,n),e[He]=o}function Rg(e){let t=[],n=new Map;function r(o){let i=n.get(o);if(!i){let s=e(o);n.set(o,i=s.then(Pg))}return i}return lr.forEach((o,i)=>{let s=[];o.templateUrl&&s.push(r(o.templateUrl).then(u=>{o.template=u}));let a=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=a,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let u=o.styles.length,l=o.styleUrls;o.styleUrls.forEach((f,p)=>{a.push(""),s.push(r(f).then(d=>{a[u+p]=d,l.splice(l.indexOf(f),1),l.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(r(o.styleUrl).then(u=>{a.push(u),o.styleUrl=void 0}));let c=Promise.all(s).then(()=>Lg(i));t.push(c)}),Fg(),Promise.all(t).then(()=>{})}var lr=new Map,Og=new Set;function Fg(){let e=lr;return lr=new Map,e}function kg(){return lr.size===0}function Pg(e){return typeof e=="string"?e:e.text()}function Lg(e){Og.delete(e)}var ct=class{},Vg=class{};var dr=class extends ct{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new cr(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=uf(t);this._bootstrapComponents=zp(i.bootstrap),this._r3Injector=mu(t,n,[{provide:ct,useValue:this},{provide:qe,useValue:this.componentFactoryResolver},...r],$(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},gi=class extends Vg{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new dr(this.moduleType,t,[])}};function jg(e,t,n){return new dr(e,t,n,!1)}var mi=class extends ct{injector;componentFactoryResolver=new cr(this);instance=null;constructor(t){super();let n=new Pt([...t.providers,{provide:ct,useValue:this},{provide:qe,useValue:this.componentFactoryResolver}],t.parent||Ni(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Bg(e,t,n=null){return new mi({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Hg=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Mc(!1,n.type),o=r.length>0?Bg([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=T({token:e,providedIn:"environment",factory:()=>new e(C(xe))})}return e})();function pl(e){return mr(()=>{let t=hl(e),n=N(M({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Iu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Hg).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||le.Emulated,styles:e.styles||re,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Fp("NgStandalone"),gl(n);let r=e.dependencies;return n.directiveDefs=rc(r,!1),n.pipeDefs=rc(r,!0),n.id=Wg(n),n})}function $g(e){return kt(e)||lf(e)}function Ug(e){return e!==null}function pe(e){return mr(()=>({type:e.type,bootstrap:e.bootstrap||re,declarations:e.declarations||re,imports:e.imports||re,exports:e.exports||re,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Gg(e,t){if(e==null)return rt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Sr.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function zg(e){if(e==null)return rt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Wt(e){return mr(()=>{let t=hl(e);return gl(t),t})}function hl(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||rt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||re,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Gg(e.inputs,t),outputs:zg(e.outputs),debugInfo:null}}function gl(e){e.features?.forEach(t=>t(e))}function rc(e,t){if(!e)return null;let n=t?df:$g;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Ug)}function Wg(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,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];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function ml(e){return Zg(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function qg(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function Zg(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function ss(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Yg(e,t,n,r,o,i,s,a,c){let u=t.consts,l=os(t,e,4,s||null,a||null);Gc()&&cl(t,n,l,er(u,c),Gu),l.mergedAttrs=Li(l.mergedAttrs,l.attrs),ou(t,l);let f=l.tView=Wi(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),f.queries=t.queries.embeddedTView(l)),l}function Qg(e,t,n,r,o,i,s,a,c,u){let l=n+ve,f=t.firstCreatePass?Yg(l,t,e,r,o,i,s,a,c):t.data[l];Ut(f,!1);let p=Kg(t,e,f,n);ki()&&es(t,e,p,f),Gt(p,e);let d=rl(p,e,p,f);return e[l]=d,Zi(e,d),xg(d,f,e),xi(f)&&Yi(t,e,f),c!=null&&Uu(e,f,u),f}function qt(e,t,n,r,o,i,s,a){let c=F(),u=Oe(),l=er(u.consts,i);return Qg(c,u,e,t,n,r,o,l,s,a),qt}var Kg=Jg;function Jg(e,t,n,r){return Pi(!0),t[L].createComment("")}var as=new v(""),Zt=new v(""),Ar=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(n,r,o){this._ngZone=n,this.registry=r,xc()&&(this._destroyRef=I(ji,{optional:!0})??void 0),cs||(Xg(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let n=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),r=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{R.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{n.unsubscribe(),r.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n()},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this._taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static \u0275fac=function(r){return new(r||e)(C(R),C(Rr),C(Zt))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),Rr=(()=>{class e{_applications=new Map;registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return cs?.findTestabilityInTree(this,n,r)??null}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function Xg(e){cs=e}var cs,em=(()=>{class e{static \u0275prov=T({token:e,providedIn:"root",factory:()=>new yi})}return e})(),yi=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}};function Yt(e){return!!e&&typeof e.then=="function"}function yl(e){return!!e&&typeof e.subscribe=="function"}var tm=new v("");var vl=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=I(tm,{optional:!0})??[];injector=I(J);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Nc(this.injector,o);if(Yt(i))n.push(i);else if(yl(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),nm=new v("");function rm(){fo(()=>{throw new g(600,!1)})}function om(e){return e.isBoundToModule}var im=10;function Dl(e,t){return Array.isArray(t)?t.reduce(Dl,e):M(M({},e),t)}var Re=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=I(wp);afterRenderManager=I(kp);zonelessEnabled=I(vu);rootEffectScheduler=I(em);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new ee;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=I(wr).hasPendingTasks.pipe(me(n=>!n));constructor(){I(Mr,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=I(xe);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=J.NULL){x(10);let i=n instanceof al;if(!this._injector.get(vl).done){let d="";throw new g(405,d)}let a;i?a=n:a=this._injector.get(qe).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=om(a)?void 0:this._injector.get(ct),u=r||a.selector,l=a.create(o,[],u,c),f=l.location.nativeElement,p=l.injector.get(as,null);return p?.registerApplication(f),l.onDestroy(()=>{this.detachView(l.hostView),$n(this.components,l),p?.unregisterApplication(f)}),this._loadComponent(l),x(11,l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){x(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Au.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new g(101,!1);let n=E(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,E(n),this.afterTick.next(),x(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(at,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<im;)x(14),this.synchronizeOnce(),x(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)sm(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>$t(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;$n(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(nm,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>$n(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new g(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function $n(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function sm(e,t,n,r){if(!n&&!$t(e))return;Xu(e,t,n&&!r?0:1)}function am(e,t,n,r){return ss(e,Zc(),n)?t+vc(n)+r:ht}function Ln(e,t){return e<<17|t<<2}function ze(e){return e>>17&32767}function cm(e){return(e&2)==2}function um(e,t){return e&131071|t<<17}function vi(e){return e|2}function ut(e){return(e&131068)>>2}function Bo(e,t){return e&-131069|t<<2}function lm(e){return(e&1)===1}function Di(e){return e|1}function dm(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=ze(s),c=ut(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let f=n;l=f[1],(l===null||Bt(f,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let p=ze(e[a+1]);e[r+1]=Ln(p,a),p!==0&&(e[p+1]=Bo(e[p+1],r)),e[a+1]=um(e[a+1],r)}else e[r+1]=Ln(a,0),a!==0&&(e[a+1]=Bo(e[a+1],r)),a=r;else e[r+1]=Ln(c,0),a===0?a=r:e[c+1]=Bo(e[c+1],r),c=r;u&&(e[r+1]=vi(e[r+1])),oc(e,l,r,!0),oc(e,l,r,!1),fm(t,l,e,r,i),s=Ln(a,c),i?t.classBindings=s:t.styleBindings=s}function fm(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Bt(i,t)>=0&&(n[r+1]=Di(n[r+1]))}function oc(e,t,n,r){let o=e[n+1],i=t===null,s=r?ze(o):ut(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];pm(c,t)&&(a=!0,e[s+1]=r?Di(u):vi(u)),s=r?ze(u):ut(u)}a&&(e[n+1]=r?vi(o):Di(o))}function pm(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Bt(e,t)>=0:!1}function Se(e,t,n){let r=F(),o=Zc();if(ss(r,o,t)){let i=Oe(),s=Zf();lh(i,s,r,e,t,r[L],n,!1)}return Se}function ic(e,t,n,r,o){Qi(t,e,n,o?"class":"style",r)}function us(e,t,n){return hm(e,t,n,!1),us}function hm(e,t,n,r){let o=F(),i=Oe(),s=Hf(2);if(i.firstUpdatePass&&mm(i,e,s,r),t!==ht&&ss(o,s,t)){let a=i.data[ft()];Cm(i,a,o,o[L],e,o[s+1]=_m(t,n),r,s)}}function gm(e,t){return t>=e.expandoStartIndex}function mm(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[ft()],s=gm(e,n);wm(i,r)&&t===null&&!s&&(t=!1),t=ym(o,i,t,r),dm(o,i,t,n,s,r)}}function ym(e,t,n,r){let o=zf(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ho(null,e,t,n,r),n=jt(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Ho(o,e,t,n,r),i===null){let c=vm(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Ho(null,e,t,c[1],r),c=jt(c,t.attrs,r),Dm(e,t,r,c))}else i=Em(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function vm(e,t,n){let r=n?t.classBindings:t.styleBindings;if(ut(r)!==0)return e[ze(r)]}function Dm(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[ze(o)]=r}function Em(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=jt(r,s,n)}return jt(r,t.attrs,n)}function Ho(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=jt(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function jt(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),af(e,s,n?!0:t[++i]))}return e===void 0?null:e}function Cm(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=lm(u)?sc(c,t,n,o,ut(u),s):void 0;if(!fr(l)){fr(i)||cm(u)&&(i=sc(c,null,n,o,a,s));let f=Vc(ft(),n);Fh(r,s,f,o,i)}}function sc(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,f=l===null,p=n[o+1];p===ht&&(p=f?re:void 0);let d=f?Ao(p,r):l===r?p:void 0;if(u&&!fr(d)&&(d=Ao(c,r)),fr(d)&&(a=d,s))return a;let h=e[o+1];o=s?ze(h):ut(h)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Ao(c,r))}return a}function fr(e){return e!==void 0}function _m(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=$(jp(e)))),e}function wm(e,t){return(e.flags&(t?8:16))!==0}function G(e,t,n,r){let o=F(),i=Oe(),s=ve+e,a=o[L],c=i.firstCreatePass?ll(s,i,o,t,Gu,Gc(),n,r):i.data[s],u=Im(i,o,c,a,t,e);o[s]=u;let l=xi(c);return Ut(c,!0),Lu(a,u,c),!zu(c)&&ki()&&es(i,o,u,c),(Rf()===0||l)&&Gt(u,o),Of(),l&&(Yi(i,o,c),Fu(i,c,o)),r!==null&&Uu(o,c),G}function z(){let e=Me();Wc()?jf():(e=e.parent,Ut(e,!1));let t=e;Pf(t)&&Lf(),Ff();let n=Oe();return n.firstCreatePass&&dl(n,t),t.classesWithoutHost!=null&&Xf(t)&&ic(n,t,F(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&ep(t)&&ic(n,t,F(),t.stylesWithoutHost,!1),z}function Or(e,t,n,r){return G(e,t,n,r),z(),Or}var Im=(e,t,n,r,o,i)=>(Pi(!0),ku(r,o,Qf()));function El(){return F()}var pr="en-US";var bm=pr;function Mm(e){typeof e=="string"&&(bm=e.toLowerCase().replace(/_/g,"-"))}function ac(e,t,n){return function r(o){if(o===Function)return n;let i=Ht(e)?De(e.index,t):t;ns(i,5);let s=t[U],a=cc(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=cc(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function cc(e,t,n,r){let o=E(null);try{return x(6,t,n),n(r)!==!1}catch(i){return Sm(e,i),!1}finally{x(7,t,n),E(o)}}function Sm(e,t){let n=e[ot],r=n?n.get(Ee,null):null;r&&r.handleError(t)}function uc(e,t,n,r,o,i){let s=t[n],a=t[w],u=a.data[n].outputs[r],l=s[u],f=a.firstCreatePass?Uc(a):null,p=$c(t),d=l.subscribe(i),h=p.length;p.push(i,d),f&&f.push(o,e.index,h,-(h+1))}function gt(e,t,n,r){let o=F(),i=Oe(),s=Me();return Nm(i,o,o[L],s,e,t,r),gt}function Tm(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Yn],c=o[i+2];return a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Nm(e,t,n,r,o,i,s){let a=xi(r),u=e.firstCreatePass?Uc(e):null,l=$c(t),f=!0;if(r.type&3||s){let p=be(r,t),d=s?s(p):p,h=l.length,b=s?k=>s(ue(k[r.index])):r.index,B=null;if(!s&&a&&(B=Tm(e,t,o,r.index)),B!==null){let k=B.__ngLastListenerFn__||B;k.__ngNextListenerFn__=i,B.__ngLastListenerFn__=i,f=!1}else{i=ac(r,t,i),Lp(t,d,o,i);let k=n.listen(d,o,i);l.push(i,k),u&&u.push(o,b,h,h+1)}}else i=ac(r,t,i);if(f){let p=r.outputs?.[o],d=r.hostDirectiveOutputs?.[o];if(d&&d.length)for(let h=0;h<d.length;h+=2){let b=d[h],B=d[h+1];uc(r,t,b,B,o,i)}if(p&&p.length)for(let h of p)uc(r,t,h,o,o,i)}}function mt(e=1){return qf(e)}function Fe(e,t=""){let n=F(),r=Oe(),o=e+ve,i=r.firstCreatePass?os(r,o,1,t,null):r.data[o],s=xm(r,n,i,t,e);n[o]=s,ki()&&es(r,n,s,i),Ut(i,!1)}var xm=(e,t,n,r,o)=>(Pi(!0),Bp(t[L],r));function Fr(e,t,n){let r=F(),o=am(r,e,t,n);return o!==ht&&Am(r,ft(),o),Fr}function Am(e,t,n){let r=Vc(t,e);Hp(e[L],r,n)}var Vn=null;function Rm(e){Vn!==null&&(e.defaultEncapsulation!==Vn.defaultEncapsulation||e.preserveWhitespaces!==Vn.preserveWhitespaces)||(Vn=e)}var Om=new v("");function Fm(e,t,n){let r=new gi(n);return Promise.resolve(r)}function lc(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var km=(()=>{class e{zone=I(R);changeDetectionScheduler=I(Ge);applicationRef=I(Re);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Pm({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new R(N(M({},Cl()),{scheduleInRootZone:n})),[{provide:R,useFactory:e},{provide:Wn,multi:!0,useFactory:()=>{let r=I(km,{optional:!0});return()=>r.initialize()}},{provide:Wn,multi:!0,useFactory:()=>{let r=I(Lm);return()=>{r.initialize()}}},t===!0?{provide:Du,useValue:!0}:[],{provide:Eu,useValue:n??yu}]}function Cl(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Lm=(()=>{class e{subscription=new V;initialized=!1;zone=I(R);pendingTasks=I(wr);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{R.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{R.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Vm=(()=>{class e{appRef=I(Re);taskService=I(wr);ngZone=I(R);zonelessEnabled=I(vu);tracing=I(Mr,{optional:!0});disableScheduling=I(Du,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new V;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(or):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(I(Eu,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof ir||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?$a:Cu;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(or+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,$a(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function jm(){return typeof $localize<"u"&&$localize.locale||pr}var ls=new v("",{providedIn:"root",factory:()=>I(ls,y.Optional|y.SkipSelf)||jm()});var hr=new v(""),Bm=new v("");function xt(e){return!e.moduleRef}function Hm(e){let t=xt(e)?e.r3Injector:e.moduleRef.injector,n=t.get(R);return n.run(()=>{xt(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Ee,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),xt(e)){let i=()=>t.destroy(),s=e.platformInjector.get(hr);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(hr);s.add(i),e.moduleRef.onDestroy(()=>{$n(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return Um(r,n,()=>{let i=t.get(vl);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(ls,pr);if(Mm(s||pr),!t.get(Bm,!0))return xt(e)?t.get(Re):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(xt(e)){let c=t.get(Re);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return $m(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function $m(e,t){let n=e.injector.get(Re);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new g(-403,!1);t.push(e)}function Um(e,t,n){try{let r=n();return Yt(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var _l=(()=>{class e{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(n){this._injector=n}bootstrapModuleFactory(n,r){let o=r?.scheduleInRootZone,i=()=>_p(r?.ngZone,N(M({},Cl({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),s=r?.ignoreChangesOutsideZone,a=[Pm({ngZoneFactory:i,ignoreChangesOutsideZone:s}),{provide:Ge,useExisting:Vm}],c=jg(n.moduleType,this.injector,a);return Hm({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(n,r=[]){let o=Dl({},r);return Fm(this.injector,o,n).then(i=>this.bootstrapModuleFactory(i,o))}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new g(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let n=this._injector.get(hr,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(r){return new(r||e)(C(J))};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),ds=null;function Gm(e){if(ps())throw new g(400,!1);rm(),ds=e;let t=e.get(_l);return qm(e),t}function fs(e,t,n=[]){let r=`Platform: ${t}`,o=new v(r);return(i=[])=>{let s=ps();if(!s){let a=[...n,...i,{provide:o,useValue:!0}];s=e?.(a)??Gm(zm(a,r))}return Wm(o)}}function zm(e=[],t){return J.create({name:t,providers:[{provide:vr,useValue:"platform"},{provide:hr,useValue:new Set([()=>ds=null])},...e]})}function Wm(e){let t=ps();if(!t)throw new g(401,!1);return t}function ps(){return ds?.get(_l)??null}function qm(e){let t=e.get(Ui,null);Nc(e,()=>{t?.forEach(n=>n())})}var Ei=class{constructor(){}supports(t){return ml(t)}create(t){return new Ci(t)}},Zm=(e,t)=>t,Ci=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||Zm}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<dc(r,o,i)?n:r,a=dc(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let u=a-o,l=c-o;if(u!=l){for(let p=0;p<u;p++){let d=p<i.length?i[p]:i[p]=0,h=d+p;l<=h&&h<u&&(i[p]=d+1)}let f=s.previousIndex;i[f]=l-u}}a!==c&&t(s,a,c)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!ml(t))throw new g(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,qg(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new _i(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new gr),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new gr),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},_i=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},wi=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},gr=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new wi,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function dc(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function fc(){return new hs([new Ei])}var hs=(()=>{class e{factories;static \u0275prov=T({token:e,providedIn:"root",factory:fc});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||fc()),deps:[[e,new of,new rf]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new g(901,!1)}}return e})();var wl=fs(null,"core",[]),Il=(()=>{class e{constructor(n){}static \u0275fac=function(r){return new(r||e)(C(Re))};static \u0275mod=pe({type:e});static \u0275inj=de({})}return e})();function ke(e){return mo(e)}function kr(e,t){return lo(e,t?.equal)}var pc=class{[se];constructor(t){this[se]=t}destroy(){this[se].destroy()}};var he=new v("");var bl=null;function vt(){return bl}function gs(e){bl??=e}var Qt=class{};var ms=/\s+/,Ml=[],ys=(()=>{class e{_ngEl;_renderer;initialClasses=Ml;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(ms):Ml}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(ms):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(ms).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||e)(W(pt),W(is))};static \u0275dir=Wt({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var Pr=class{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Vr=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new Pr(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),Sl(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);Sl(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(W(xr),W(Nr),W(hs))};static \u0275dir=Wt({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function Sl(e,t){e.context.$implicit=t.item}var vs=(()=>{class e{_viewContainer;_context=new Lr;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Tl(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Tl(n,!1),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(W(xr),W(Nr))};static \u0275dir=Wt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Lr=class{$implicit=null;ngIf=null};function Tl(e,t){if(e&&!e.createEmbeddedView)throw new g(2020,!1)}var Kt=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=pe({type:e});static \u0275inj=de({})}return e})();function Ds(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Es="browser",Nl="server";function jr(e){return e===Nl}var Jt=class{};var $r=new v(""),Is=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new g(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(C($r),C(R))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),Xt=class{_doc;constructor(t){this._doc=t}manager},Br="ng-app-id";function xl(e){for(let t of e)t.remove()}function Al(e,t){let n=t.createElement("style");return n.textContent=e,n}function Km(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Br}="${t}"],link[${Br}="${t}"]`);if(o)for(let i of o)i.removeAttribute(Br),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function _s(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var bs=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=jr(i),Km(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Al);r?.forEach(o=>this.addUsage(o,this.external,_s))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(xl(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])xl(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Al(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,_s(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Br,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(C(he),C($i),C(Gi,8),C(zt))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),Cs={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/Math/MathML"},Ms=/%COMP%/g;var Ol="%COMP%",Jm=`_nghost-${Ol}`,Xm=`_ngcontent-${Ol}`,ey=!0,ty=new v("",{providedIn:"root",factory:()=>ey});function ny(e){return Xm.replace(Ms,e)}function ry(e){return Jm.replace(Ms,e)}function Fl(e,t){return t.map(n=>n.replace(Ms,e))}var Ss=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c,u=null,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.tracingService=l,this.platformIsServer=jr(a),this.defaultRenderer=new en(n,s,c,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===le.ShadowDom&&(r=N(M({},r),{encapsulation:le.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Hr?o.applyToHost(n):o instanceof tn&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,f=this.platformIsServer,p=this.tracingService;switch(r.encapsulation){case le.Emulated:i=new Hr(c,u,r,this.appId,l,s,a,f,p);break;case le.ShadowDom:return new ws(c,u,n,r,s,a,this.nonce,f,p);default:i=new tn(c,u,r,l,s,a,f,p);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(C(Is),C(bs),C($i),C(ty),C(he),C(zt),C(R),C(Gi),C(Mr,8))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),en=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Cs[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Rl(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Rl(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new g(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Cs[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Cs[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Ce.DashCase|Ce.Important)?t.style.setProperty(n,r,o&Ce.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Ce.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=vt().getGlobalEventTarget(this.doc,t),!t))throw new g(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Rl(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var ws=class extends en{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c,u){super(t,i,s,c,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=o.styles;l=Fl(o.id,l);for(let p of l){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=p,this.shadowRoot.appendChild(d)}let f=o.getExternalStyles?.();if(f)for(let p of f){let d=_s(p,i);a&&d.setAttribute("nonce",a),this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},tn=class extends en{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,u){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let l=r.styles;this.styles=u?Fl(u,l):l,this.styleUrls=r.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Hr=class extends tn{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,u){let l=o+"-"+r.id;super(t,n,r,i,s,a,c,u,l),this.contentAttr=ny(l),this.hostAttr=ry(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Ur=class e extends Qt{supportsDOMEvents=!0;static makeCurrent(){gs(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=oy();return n==null?null:iy(n)}resetBaseElement(){nn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Ds(document.cookie,t)}},nn=null;function oy(){return nn=nn||document.head.querySelector("base"),nn?nn.getAttribute("href"):null}function iy(e){return new URL(e,document.baseURI).pathname}var Gr=class{addToWindow(t){_e.getAngularTestability=(r,o=!0)=>{let i=t.findTestabilityInTree(r,o);if(i==null)throw new g(5103,!1);return i},_e.getAllAngularTestabilities=()=>t.getAllTestabilities(),_e.getAllAngularRootElements=()=>t.getAllRootElements();let n=r=>{let o=_e.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&r()};o.forEach(a=>{a.whenStable(s)})};_e.frameworkStabilizers||(_e.frameworkStabilizers=[]),_e.frameworkStabilizers.push(n)}findTestabilityInTree(t,n,r){if(n==null)return null;let o=t.getTestability(n);return o??(r?vt().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},sy=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),Pl=(()=>{class e extends Xt{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(C(he))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),kl=["alt","control","meta","shift"],ay={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},cy={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Ll=(()=>{class e extends Xt{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vt().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),kl.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=ay[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),kl.forEach(s=>{if(s!==o){let a=cy[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(C(he))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})();function uy(){Ur.makeCurrent()}function ly(){return new Ee}function dy(){return Nu(document),document}var fy=[{provide:zt,useValue:Es},{provide:Ui,useValue:uy,multi:!0},{provide:he,useFactory:dy}],Ts=fs(wl,"browser",fy);var py=[{provide:Zt,useClass:Gr},{provide:as,useClass:Ar,deps:[R,Rr,Zt]},{provide:Ar,useClass:Ar,deps:[R,Rr,Zt]}],hy=[{provide:vr,useValue:"root"},{provide:Ee,useFactory:ly},{provide:$r,useClass:Pl,multi:!0,deps:[he]},{provide:$r,useClass:Ll,multi:!0,deps:[he]},Ss,bs,Is,{provide:at,useExisting:Ss},{provide:Jt,useClass:sy},[]],Ns=(()=>{class e{constructor(){}static \u0275fac=function(r){return new(r||e)};static \u0275mod=pe({type:e});static \u0275inj=de({providers:[...hy,...py],imports:[Kt,Il]})}return e})();function Fs(e){return e==null||ks(e)===0}function ks(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var yy=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ze=class{static min(t){return vy(t)}static max(t){return Dy(t)}static required(t){return Ey(t)}static requiredTrue(t){return Cy(t)}static email(t){return _y(t)}static minLength(t){return wy(t)}static maxLength(t){return Iy(t)}static pattern(t){return by(t)}static nullValidator(t){return Ul()}static compose(t){return Yl(t)}static composeAsync(t){return Ql(t)}};function vy(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function Dy(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function Ey(e){return Fs(e.value)?{required:!0}:null}function Cy(e){return e.value===!0?null:{required:!0}}function _y(e){return Fs(e.value)||yy.test(e.value)?null:{email:!0}}function wy(e){return t=>{let n=t.value?.length??ks(t.value);return n===null||n===0?null:n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}function Iy(e){return t=>{let n=t.value?.length??ks(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function by(e){if(!e)return Ul;let t,n;return typeof e=="string"?(n="",e.charAt(0)!=="^"&&(n+="^"),n+=e,e.charAt(e.length-1)!=="$"&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(Fs(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function Ul(e){return null}function Gl(e){return e!=null}function zl(e){return Yt(e)?Nt(e):e}function Wl(e){let t={};return e.forEach(n=>{t=n!=null?M(M({},t),n):t}),Object.keys(t).length===0?null:t}function ql(e,t){return t.map(n=>n(e))}function My(e){return!e.validate}function Zl(e){return e.map(t=>My(t)?t:n=>t.validate(n))}function Yl(e){if(!e)return null;let t=e.filter(Gl);return t.length==0?null:function(n){return Wl(ql(n,t))}}function Sy(e){return e!=null?Yl(Zl(e)):null}function Ql(e){if(!e)return null;let t=e.filter(Gl);return t.length==0?null:function(n){let r=ql(n,t).map(zl);return To(r).pipe(me(Wl))}}function Ty(e){return e!=null?Ql(Zl(e)):null}function As(e){return e?Array.isArray(e)?e:[e]:[]}function Wr(e,t){return Array.isArray(e)?e.includes(t):e===t}function Vl(e,t){let n=As(t);return As(e).forEach(o=>{Wr(n,o)||n.push(o)}),n}function jl(e,t){return As(t).filter(n=>!Wr(e,n))}var Ny={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},TI=N(M({},Ny),{"[class.ng-submitted]":"isSubmitted"});var rn="VALID",zr="INVALID",Dt="PENDING",on="DISABLED",Ct=class{},qr=class extends Ct{value;source;constructor(t,n){super(),this.value=t,this.source=n}},sn=class extends Ct{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},an=class extends Ct{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Et=class extends Ct{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function Ps(e){return(Yr(e)?e.validators:e)||null}function xy(e){return Array.isArray(e)?Sy(e):e||null}function Ls(e,t){return(Yr(t)?t.asyncValidators:e)||null}function Ay(e){return Array.isArray(e)?Ty(e):e||null}function Yr(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function Kl(e,t,n){let r=e.controls;if(!(t?Object.keys(r):r).length)throw new g(1e3,"");if(!r[n])throw new g(1001,"")}function Jl(e,t,n){e._forEachChild((r,o)=>{if(n[o]===void 0)throw new g(1002,"")})}var _t=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return ke(this.statusReactive)}set status(t){ke(()=>this.statusReactive.set(t))}_status=kr(()=>this.statusReactive());statusReactive=br(void 0);get valid(){return this.status===rn}get invalid(){return this.status===zr}get pending(){return this.status==Dt}get disabled(){return this.status===on}get enabled(){return this.status!==on}errors;get pristine(){return ke(this.pristineReactive)}set pristine(t){ke(()=>this.pristineReactive.set(t))}_pristine=kr(()=>this.pristineReactive());pristineReactive=br(!0);get dirty(){return!this.pristine}get touched(){return ke(this.touchedReactive)}set touched(t){ke(()=>this.touchedReactive.set(t))}_touched=kr(()=>this.touchedReactive());touchedReactive=br(!1);get untouched(){return!this.touched}_events=new ee;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Vl(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Vl(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(jl(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(jl(t,this._rawAsyncValidators))}hasValidator(t){return Wr(this._rawValidators,t)}hasAsyncValidator(t){return Wr(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(N(M({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new an(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new an(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(N(M({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new sn(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new sn(!0,r))}markAsPending(t={}){this.status=Dt;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Et(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(N(M({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=on,this.errors=null,this._forEachChild(o=>{o.disable(N(M({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new qr(this.value,r)),this._events.next(new Et(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(N(M({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=rn,this._forEachChild(r=>{r.enable(N(M({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(N(M({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===rn||this.status===Dt)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new qr(this.value,n)),this._events.next(new Et(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(N(M({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?on:rn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Dt,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=zl(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Et(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new H,this.statusChanges=new H}_calculateStatus(){return this._allControlsDisabled()?on:this.errors?zr:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Dt)?Dt:this._anyControlsHaveStatus(zr)?zr:rn}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new sn(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new an(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Yr(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=xy(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Ay(this._rawAsyncValidators)}},Zr=class extends _t{constructor(t,n,r){super(Ps(n),Ls(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){Jl(this,!0,t),Object.keys(t).forEach(r=>{Kl(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(Object.keys(t).forEach(r=>{let o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t?t[o]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var Rs=class extends Zr{};var Ry=new v("",{providedIn:"root",factory:()=>Xl}),Xl="always";function Bl(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Hl(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var xs=class extends _t{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(Ps(n),Ls(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Yr(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Hl(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Bl(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Bl(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Hl(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Oy=new v("");var Fy=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=pe({type:e});static \u0275inj=de({})}return e})(),Os=class extends _t{constructor(t,n,r){super(Ps(n),Ls(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,n={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(t,n,r={}){this.controls.splice(t,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,n={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(t,n,r={}){let o=this._adjustIndex(t);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),n&&(this.controls.splice(o,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,n={}){Jl(this,!1,t),t.forEach((r,o)=>{Kl(this,!1,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(t.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t=[],n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((n,r)=>r._syncPendingControls()?!0:n,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((n,r)=>{t(n,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(n=>n.enabled&&t(n))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function $l(e){return!!e&&(e.asyncValidators!==void 0||e.validators!==void 0||e.updateOn!==void 0)}var ed=(()=>{class e{useNonNullable=!1;get nonNullable(){let n=new e;return n.useNonNullable=!0,n}group(n,r=null){let o=this._reduceControls(n),i={};return $l(r)?i=r:r!==null&&(i.validators=r.validator,i.asyncValidators=r.asyncValidator),new Zr(o,i)}record(n,r=null){let o=this._reduceControls(n);return new Rs(o,r)}control(n,r,o){let i={};return this.useNonNullable?($l(r)?i=r:(i.validators=r,i.asyncValidators=o),new xs(n,N(M({},i),{nonNullable:!0}))):new xs(n,r,o)}array(n,r,o){let i=n.map(s=>this._createControl(s));return new Os(i,r,o)}_reduceControls(n){let r={};return Object.keys(n).forEach(o=>{r[o]=this._createControl(n[o])}),r}_createControl(n){if(n instanceof xs)return n;if(n instanceof _t)return n;if(Array.isArray(n)){let r=n[0],o=n.length>1?n[1]:null,i=n.length>2?n[2]:null;return this.control(r,o,i)}else return this.control(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Qr=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Oy,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Ry,useValue:n.callSetDisabledState??Xl}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=pe({type:e});static \u0275inj=de({imports:[Fy]})}return e})();var Py={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function Ly(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Vy(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var Vs;function jy(e,t){if(!Vs){let n=Element.prototype;Vs=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?Vs.call(e,t):!1}function By(e){let t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[Ly(r)]=[n,o]}),t}function Hy(e,t){return t.get(qe).resolveComponentFactory(e).inputs}function $y(e,t){let n=e.childNodes,r=t.map(()=>[]),o=-1;t.some((i,s)=>i==="*"?(o=s,!0):!1);for(let i=0,s=n.length;i<s;++i){let a=n[i],c=Uy(a,t,o);c!==-1&&r[c].push(a)}return r}function Uy(e,t,n){let r=n;return Vy(e)&&t.some((o,i)=>o!=="*"&&jy(e,o)?(r=i,!0):!1),r}var Gy=10,js=class{componentFactory;inputMap=new Map;constructor(t,n){this.componentFactory=n.get(qe).resolveComponentFactory(t);for(let r of this.componentFactory.inputs)this.inputMap.set(r.propName,r.templateName)}create(t){return new Bs(this.componentFactory,t,this.inputMap)}},Bs=class{componentFactory;injector;inputMap;eventEmitters=new Tt(1);events=this.eventEmitters.pipe(xo(t=>No(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,n,r){this.componentFactory=t,this.injector=n,this.inputMap=r,this.ngZone=this.injector.get(R),this.appRef=this.injector.get(Re),this.cdScheduler=n.get(Ge),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=Py.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},Gy))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n){if(this.componentRef===null){this.initialInputValues.set(t,n);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,n),il(this.componentRef.hostView)&&(sl(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(t){let n=J.create({providers:[],parent:this.injector}),r=$y(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,r,t),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,n]of this.initialInputValues)this.setInputValue(t,n);this.initialInputValues.clear()}initializeOutputs(t){let n=this.componentFactory.outputs.map(({propName:r,templateName:o})=>{let i=t.instance[r];return new A(s=>{let a=i.subscribe(c=>s.next({name:o,value:c}));return()=>a.unsubscribe()})});this.eventEmitters.next(n)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},Hs=class extends HTMLElement{ngElementEventsSubscription=null};function td(e,t){let n=Hy(e,t.injector),r=t.strategyFactory||new js(e,t.injector),o=By(n);class i extends Hs{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:c,transform:u})=>{if(!this.hasOwnProperty(c))return;let l=this[c];delete this[c],a.setInputValue(c,l,u)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,c,u,l){let[f,p]=o[a];this.ngElementStrategy.setInputValue(f,u,p)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let c=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(c)})}}return n.forEach(({propName:s,transform:a})=>{Object.defineProperty(i.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(c){this.ngElementStrategy.setInputValue(s,c,a)},configurable:!0,enumerable:!0})}),i}function zy(e,t){if(e&1&&(G(0,"div",19)(1,"div",20),Fe(2),z(),G(3,"div",21)(4,"small",22),Fe(5),z()()()),e&2){let n=t.$implicit,r=t.index,o=mt(2);fe(),Se("ngClass",r<=o.currentIndex?"ts-main-bg text-white shadow":"bg-light text-muted border"),fe(),Fr(" ",n.ui," "),fe(2),Se("ngClass",r<=o.currentIndex?"ts-main-text fw-bold":"text-muted"),fe(),Fr(" ",o.getStepTitle(n.internal)," ")}}function Wy(e,t){e&1&&(G(0,"button",23),Fe(1," Siguiente "),z())}function qy(e,t){e&1&&(G(0,"button",23),Fe(1," Agendar "),z())}function Zy(e,t){if(e&1){let n=El();G(0,"div",1)(1,"div",2)(2,"div",3)(3,"button",4),gt("click",function(){Cr(n);let o=mt();return _r(o.cancel.emit())}),tu(),G(4,"svg",5),Or(5,"path",6),z()(),nu(),G(6,"h3",7),Fe(7," Agendar cita "),z(),G(8,"button",8),gt("click",function(){Cr(n);let o=mt();return _r(o.onCancel())}),Fe(9," Cancelar "),z()()(),G(10,"div",9)(11,"div",10)(12,"div",11),Or(13,"div",12),z(),G(14,"div",13),qt(15,zy,6,4,"div",14),z()(),G(16,"div",15)(17,"div",16)(18,"button",17),gt("click",function(){Cr(n);let o=mt();return _r(o.onPrevious())}),Fe(19," Anterior "),z(),qt(20,Wy,2,0,"button",18)(21,qy,2,0,"button",18),z()()()()}if(e&2){let n=mt();fe(13),us("width",(n.totalSteps>1?n.currentIndex/(n.totalSteps-1)*100:0)+"%"),fe(2),Se("ngForOf",n.displayedSteps),fe(3),Se("disabled",n.currentIndex===0),fe(2),Se("ngIf",!n.isLastStep()),fe(),Se("ngIf",n.isLastStep())}}var cn=class e{constructor(t,n){this.fb=t;this.elementRef=n;this.currentIndex=0,this.viewMode="form",console.log("Constructor - appName inicial:",this.appName)}appName="";minPasswordLength=6;cancel=new H;onCancel(){console.log("\u274C Cancelar llamado"),this.emitEvent("cancel",{app:this.appName,cancelled:!0,timestamp:new Date().toISOString()})}emitEvent(t,n){let r=new CustomEvent(t,{detail:n,bubbles:!0,composed:!0});this.elementRef.nativeElement.dispatchEvent(r),console.log(`\u{1F4E4} Evento "${t}" emitido:`,n)}formSubmitted=new H;form;patientBasicForm;currentIndex=0;viewMode="form";ngOnInit(){console.log("ngOnInit - appName:",this.appName),console.log("ngOnInit - minPasswordLength:",this.minPasswordLength);try{(!this.minPasswordLength||this.minPasswordLength<1)&&(this.minPasswordLength=6),this.form=this.fb.group({email:["",[Ze.required,Ze.email]],password:["",[Ze.required,Ze.minLength(this.minPasswordLength)]]}),this.currentIndex=0,this.buildPatientBasicForm(),this.patientBasicForm&&this.patientBasicForm.get("autonomyCondition")?.valueChanges.subscribe(()=>{try{let t=this.displayedSteps;t&&this.currentIndex>=t.length&&(this.currentIndex=t.length-1)}catch(t){console.error("Error en subscription de autonomyCondition:",t)}})}catch(t){console.error("Error en ngOnInit:",t)}}buildPatientBasicForm(){this.patientBasicForm=this.fb.group({documentType:[""],documentNumber:[""],autonomyCondition:["autonomous"],firstName:[""],secondName:[""],firstSurname:[""],secondSurname:[""],birthDate:[""],issueDate:[""],gender:[""],maritalStatus:[""],email:[""],phone:[""],confirmEmail:[""],confirmPhone:[""],validateAutonomous:[!1],lockIdentity:[!1]})}submit(){console.log("Submit llamado"),this.form.valid?(console.log("Formulario v\xE1lido, emitiendo evento"),this.emitEvent("formSubmitted",{app:this.appName,data:this.form.value})):console.log("Formulario inv\xE1lido")}get currentStepInternal(){try{let t=this.displayedSteps;return t&&t.length>0&&this.currentIndex>=0&&this.currentIndex<t.length?t[this.currentIndex]?.internal??1:1}catch(t){return console.error("Error en currentStepInternal:",t),1}}isLastStep(){try{return this.currentIndex===this.totalSteps-1}catch(t){return console.error("Error en isLastStep:",t),!1}}onPrevious(){this.currentIndex>0&&this.currentIndex--}getStepTitle(t){let n;return(this.patientBasicData?.autonomyCondition||"autonomous")==="autonomous"?n={1:"Datos de la cita",2:"Datos b\xE1sicos del paciente",3:"Ubicaci\xF3n y residencia del paciente",6:"Aceptaci\xF3n de t\xE9rminos"}:n={1:"Datos de la cita",2:"Datos b\xE1sicos del paciente",3:"Ubicaci\xF3n y residencia del paciente",4:"Informaci\xF3n del tutor",5:"Ubicaci\xF3n y residencia del tutor",6:"Acompa\xF1ante y aceptaci\xF3n de t\xE9rminos"},n[t]??""}get patientBasicData(){if(!this.patientBasicForm)return{documentType:"",documentNumber:"",autonomyCondition:"autonomous",firstName:"",secondName:"",firstSurname:"",secondSurname:"",birthDate:"",issueDate:"",gender:"",maritalStatus:""};try{return this.patientBasicForm.getRawValue()}catch(t){return console.error("Error al obtener patientBasicData:",t),{documentType:"",documentNumber:"",autonomyCondition:"autonomous",firstName:"",secondName:"",firstSurname:"",secondSurname:"",birthDate:"",issueDate:"",gender:"",maritalStatus:""}}}get displayedSteps(){if(!this.patientBasicForm)return[{ui:1,internal:1},{ui:2,internal:2},{ui:3,internal:3},{ui:4,internal:6}];try{return(this.patientBasicData?.autonomyCondition||"autonomous")==="autonomous"?[{ui:1,internal:1},{ui:2,internal:2},{ui:3,internal:3},{ui:4,internal:6}]:[{ui:1,internal:1},{ui:2,internal:2},{ui:3,internal:3},{ui:4,internal:4},{ui:5,internal:5},{ui:6,internal:6}]}catch(t){return console.error("Error en displayedSteps:",t),[{ui:1,internal:1},{ui:2,internal:2},{ui:3,internal:3},{ui:4,internal:6}]}}get totalSteps(){try{let t=this.displayedSteps;return t?t.length:1}catch(t){return console.error("Error en totalSteps:",t),1}}static \u0275fac=function(n){return new(n||e)(W(ed),W(pt))};static \u0275cmp=pl({type:e,selectors:[["app-formulario-citas"]],inputs:{appName:"appName",minPasswordLength:"minPasswordLength"},outputs:{cancel:"cancel",formSubmitted:"formSubmitted"},decls:1,vars:1,consts:[["class","card shadow-sm",4,"ngIf"],[1,"card","shadow-sm"],[1,"card-header","text-white","ts-header"],[1,"d-flex","align-items-center","justify-content-between"],["type","button","aria-label","Volver",1,"btn","btn-link","p-0","me-2","ts-back-icon",3,"click"],["width","20","height","20","viewBox","0 0 24 24"],["d","M15 19l-7-7 7-7","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"h5","mb-0","fw-bold","flex-grow-1"],[1,"btn","btn-outline-light","btn-sm","ms-3",3,"click"],[1,"card-body"],[1,"d-none","d-sm-block","position-relative"],[1,"progress","position-absolute",2,"top","20px","height","2px","width","100%"],[1,"progress-bar","ts-main-bg"],[1,"d-flex","justify-content-between","position-relative",2,"z-index","10%"],["class","d-flex flex-column align-items-center",4,"ngFor","ngForOf"],[1,"card-footer","bg-white"],[1,"d-flex","justify-content-between"],[1,"btn","btn-outline-secondary",3,"click","disabled"],["class","btn",4,"ngIf"],[1,"d-flex","flex-column","align-items-center"],[1,"rounded-circle","d-flex","align-items-center","justify-content-center","fw-bold",2,"width","40px","height","40px","font-size","14px",3,"ngClass"],[1,"mt-2","text-center",2,"max-width","120px"],[1,"d-block","lh-sm",3,"ngClass"],[1,"btn"]],template:function(n,r){n&1&&qt(0,Zy,22,6,"div",0),n&2&&Se("ngIf",r.viewMode==="form")},dependencies:[ys,Vr,vs,Qr],styles:['@charset "UTF-8";.ts-main-bg[_ngcontent-%COMP%]{background-color:#08203c!important;border-color:#08203c!important}.ts-main-text[_ngcontent-%COMP%]{color:#08203c!important}.ts-header[_ngcontent-%COMP%]{background-color:#08203c}']})};var Kr=class e{constructor(t){this.injector=t}ngDoBootstrap(){if(customElements.get("todosalud-webc-form-citas"))console.log("\u2139\uFE0F Web Component ya estaba registrado");else try{console.log("\u{1F504} Iniciando registro del Web Component...");let t=td(cn,{injector:this.injector});customElements.define("todosalud-webc-form-citas",t),console.log('\u2705 Web Component "todosalud-webc-form-citas" registrado exitosamente')}catch(t){console.error("\u274C Error al registrar Web Component:",t),t instanceof Error&&console.error("Error details:",{message:t.message,stack:t.stack,name:t.name})}}static \u0275fac=function(n){return new(n||e)(C(J))};static \u0275mod=pe({type:e});static \u0275inj=de({imports:[Ns,Kt,Qr,cn]})};Ts().bootstrapModule(Kr,{ngZone:"noop"}).then(()=>{console.log("\u2705 Angular bootstrap completado")}).catch(e=>{console.error("\u274C Error en bootstrap de Angular:",e),e instanceof Error&&console.error("Stack:",e.stack)});
|
|
7
|
+
`)}`}var rf=_c(hc("Optional"),8);var of=_c(hc("SkipSelf"),4);function Ft(e,t){let n=e.hasOwnProperty(Na);return n?e[Na]:null}function Si(e,t){e.forEach(n=>Array.isArray(n)?Si(n,t):t(n))}function wc(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function zn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function sf(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(o===1)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function af(e,t,n){let r=Bt(e,t);return r>=0?e[r|1]=n:(r=~r,sf(e,r,t,n)),r}function Ao(e,t){let n=Bt(e,t);if(n>=0)return e[n|1]}function Bt(e,t){return cf(e,t,1)}function cf(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}var rt={},re=[],Wn=new v(""),Ic=new v("",-1),bc=new v(""),qn=class{get(t,n=je){if(n===je){let r=new Error(`NullInjectorError: No provider for ${$(t)}!`);throw r.name="NullInjectorError",r}return n}};function uf(e,t){let n=e[qd]||null;if(!n&&t===!0)throw new Error(`Type ${$(e)} does not have '\u0275mod' property.`);return n}function kt(e){return e[Gd]||null}function lf(e){return e[zd]||null}function df(e){return e[Wd]||null}function ff(...e){return{\u0275providers:Mc(!0,e),\u0275fromNgModule:!0}}function Mc(e,...t){let n=[],r=new Set,o,i=s=>{n.push(s)};return Si(t,s=>{let a=s;zo(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Sc(o,i),n}function Sc(e,t){for(let n=0;n<e.length;n++){let{ngModule:r,providers:o}=e[n];Ti(o,i=>{t(i,r)})}}function zo(e,t,n,r){if(e=ne(e),!e)return!1;let o=null,i=Sa(e),s=!i&&kt(e);if(!i&&!s){let c=e.ngModule;if(i=Sa(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let u of c)zo(u,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let u;try{Si(i.imports,l=>{zo(l,t,n,r)&&(u||=[],u.push(l))})}finally{}u!==void 0&&Sc(u,t)}if(!a){let u=Ft(o)||(()=>new o);t({provide:o,useFactory:u,deps:re},o),t({provide:bc,useValue:o,multi:!0},o),t({provide:Wn,useValue:()=>C(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let u=e;Ti(c,l=>{t(l,u)})}}else return!1;return o!==e&&e.providers!==void 0}function Ti(e,t){for(let n of e)yc(n)&&(n=n.\u0275providers),Array.isArray(n)?Ti(n,t):t(n)}var pf=S({provide:String,useValue:S});function Tc(e){return e!==null&&typeof e=="object"&&pf in e}function hf(e){return!!(e&&e.useExisting)}function gf(e){return!!(e&&e.useFactory)}function Wo(e){return typeof e=="function"}var vr=new v(""),jn={},Ra={},Ro;function Ni(){return Ro===void 0&&(Ro=new qn),Ro}var xe=class{},Pt=class extends xe{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Zo(t,s=>this.processProvider(s)),this.records.set(Ic,Xe(void 0,this)),o.has("environment")&&this.records.set(xe,Xe(void 0,this));let i=this.records.get(vr);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(bc,re,y.Self))}retrieve(t,n){let r=n;return this.get(t,r.optional?mn:je,r)}destroy(){At(this),this._destroyed=!0;let t=E(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),E(t)}}onDestroy(t){return At(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){At(this);let n=ge(this),r=Y(void 0),o;try{return t()}finally{ge(n),Y(r)}}get(t,n=je,r=y.Default){if(At(this),t.hasOwnProperty(xa))return t[xa](this);r=yr(r);let o,i=ge(this),s=Y(void 0);try{if(!(r&y.SkipSelf)){let c=this.records.get(t);if(c===void 0){let u=Cf(t)&&bi(t);u&&this.injectableDefInScope(u)?c=Xe(qo(t),jn):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c,r)}let a=r&y.Self?Ni():this.parent;return n=r&y.Optional&&n===je?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[Gn]=a[Gn]||[]).unshift($(t)),i)throw a;return tf(a,t,"R3InjectorError",this.source)}else throw a}finally{Y(s),ge(i)}}resolveInjectorInitializers(){let t=E(null),n=ge(this),r=Y(void 0),o;try{let i=this.get(Wn,re,y.Self);for(let s of i)s()}finally{ge(n),Y(r),E(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push($(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=ne(t);let n=Wo(t)?t:ne(t&&t.provide),r=yf(t);if(!Wo(t)&&t.multi===!0){let o=this.records.get(n);o||(o=Xe(void 0,jn,!0),o.factory=()=>Go(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=E(null);try{return n.value===Ra?Dc($(t)):n.value===jn&&(n.value=Ra,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Ef(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{E(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=ne(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function qo(e){let t=bi(e),n=t!==null?t.factory:Ft(e);if(n!==null)return n;if(e instanceof v)throw new g(204,!1);if(e instanceof Function)return mf(e);throw new g(204,!1)}function mf(e){if(e.length>0)throw new g(204,!1);let n=$d(e);return n!==null?()=>n.factory(e):()=>new e}function yf(e){if(Tc(e))return Xe(void 0,e.useValue);{let t=vf(e);return Xe(t,jn)}}function vf(e,t,n){let r;if(Wo(e)){let o=ne(e);return Ft(o)||qo(o)}else if(Tc(e))r=()=>ne(e.useValue);else if(gf(e))r=()=>e.useFactory(...Go(e.deps||[]));else if(hf(e))r=(o,i)=>C(ne(e.useExisting),i!==void 0&&i&y.Optional?y.Optional:void 0);else{let o=ne(e&&(e.useClass||e.provide));if(Df(e))r=()=>new o(...Go(e.deps));else return Ft(o)||qo(o)}return r}function At(e){if(e.destroyed)throw new g(205,!1)}function Xe(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Df(e){return!!e.deps}function Ef(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Cf(e){return typeof e=="function"||typeof e=="object"&&e instanceof v}function Zo(e,t){for(let n of e)Array.isArray(n)?Zo(n,t):n&&yc(n)?Zo(n.\u0275providers,t):t(n)}function Nc(e,t){let n;e instanceof Pt?(At(e),n=e):n=new Un(e);let r,o=ge(n),i=Y(void 0);try{return t()}finally{ge(o),Y(i)}}function xc(){return Ec()!==void 0||bt()!=null}function _f(e){let t=_e.ng;if(t&&t.\u0275compilerFacade)return t.\u0275compilerFacade;throw new Error("JIT compiler unavailable")}function wf(e){return typeof e=="function"}var we=0,w=1,m=2,j=3,oe=4,ie=5,Zn=6,Yn=7,U=8,ot=9,Ae=10,L=11,Lt=12,Oa=13,lt=14,ye=15,it=16,et=17,st=18,Dr=19,Ac=20,Te=21,Oo=22,Qn=23,Q=24,Fo=25,ve=26,Rc=1;var He=7,Kn=8,Jn=9,K=10;function Ne(e){return Array.isArray(e)&&typeof e[Rc]=="object"}function Ie(e){return Array.isArray(e)&&e[Rc]===!0}function Oc(e){return(e.flags&4)!==0}function Ht(e){return e.componentOffset>-1}function xi(e){return(e.flags&1)===1}function We(e){return!!e.template}function Xn(e){return(e[m]&512)!==0}function dt(e){return(e[m]&256)===256}var Yo=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Fc(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}function If(e){return e.type.prototype.ngOnChanges&&(e.setInput=Mf),bf}function bf(){let e=Pc(this),t=e?.current;if(t){let n=e.previous;if(n===rt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function Mf(e,t,n,r,o){let i=this.declaredInputs[r],s=Pc(e)||Sf(e,{previous:rt,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new Yo(u&&u.currentValue,n,c===rt),Fc(e,t,o,n)}var kc="__ngSimpleChanges__";function Pc(e){return e[kc]||null}function Sf(e,t){return e[kc]=t}var Fa=null;var x=function(e,t=null,n){Fa?.(e,t,n)},Lc="svg",Tf="math";function ue(e){for(;Array.isArray(e);)e=e[we];return e}function Vc(e,t){return ue(t[e])}function be(e,t){return ue(t[e.index])}function jc(e,t){return e.data[t]}function De(e,t){let n=t[e];return Ne(n)?n:n[we]}function Ai(e){return(e[m]&128)===128}function Nf(e){return Ie(e[j])}function er(e,t){return t==null?null:e[t]}function Bc(e){e[et]=0}function Ri(e){e[m]&1024||(e[m]|=1024,Ai(e)&&Er(e))}function xf(e,t){for(;e>0;)t=t[lt],e--;return t}function $t(e){return!!(e[m]&9216||e[Q]?.dirty)}function Qo(e){e[Ae].changeDetectionScheduler?.notify(8),e[m]&64&&(e[m]|=1024),$t(e)&&Er(e)}function Er(e){e[Ae].changeDetectionScheduler?.notify(0);let t=$e(e);for(;t!==null&&!(t[m]&8192||(t[m]|=8192,!Ai(t)));)t=$e(t)}function Hc(e,t){if(dt(e))throw new g(911,!1);e[Te]===null&&(e[Te]=[]),e[Te].push(t)}function Af(e,t){if(e[Te]===null)return;let n=e[Te].indexOf(t);n!==-1&&e[Te].splice(n,1)}function $e(e){let t=e[j];return Ie(t)?t[j]:t}function $c(e){return e[Yn]??=[]}function Uc(e){return e.cleanup??=[]}var D={lFrame:Jc(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Ko=!1;function Rf(){return D.lFrame.elementDepthCount}function Of(){D.lFrame.elementDepthCount++}function Ff(){D.lFrame.elementDepthCount--}function Gc(){return D.bindingsEnabled}function kf(){return D.skipHydrationRootTNode!==null}function Pf(e){return D.skipHydrationRootTNode===e}function Lf(){D.skipHydrationRootTNode=null}function F(){return D.lFrame.lView}function Oe(){return D.lFrame.tView}function Cr(e){return D.lFrame.contextLView=e,e[U]}function _r(e){return D.lFrame.contextLView=null,e}function Me(){let e=zc();for(;e!==null&&e.type===64;)e=e.parent;return e}function zc(){return D.lFrame.currentTNode}function Vf(){let e=D.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function Ut(e,t){let n=D.lFrame;n.currentTNode=e,n.isParent=t}function Wc(){return D.lFrame.isParent}function jf(){D.lFrame.isParent=!1}function qc(){return Ko}function ka(e){let t=Ko;return Ko=e,t}function Bf(e){return D.lFrame.bindingIndex=e}function Zc(){return D.lFrame.bindingIndex++}function Hf(e){let t=D.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function $f(){return D.lFrame.inI18n}function Uf(e,t){let n=D.lFrame;n.bindingIndex=n.bindingRootIndex=e,Jo(t)}function Gf(){return D.lFrame.currentDirectiveIndex}function Jo(e){D.lFrame.currentDirectiveIndex=e}function zf(e){let t=D.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function Yc(e){D.lFrame.currentQueryIndex=e}function Wf(e){let t=e[w];return t.type===2?t.declTNode:t.type===1?e[ie]:null}function Qc(e,t,n){if(n&y.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&y.Host);)if(o=Wf(i),o===null||(i=i[lt],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=D.lFrame=Kc();return r.currentTNode=t,r.lView=e,!0}function Oi(e){let t=Kc(),n=e[w];D.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Kc(){let e=D.lFrame,t=e===null?null:e.child;return t===null?Jc(e):t}function Jc(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function Xc(){let e=D.lFrame;return D.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var eu=Xc;function Fi(){let e=Xc();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 qf(e){return(D.lFrame.contextLView=xf(e,D.lFrame.contextLView))[U]}function ft(){return D.lFrame.selectedIndex}function Ue(e){D.lFrame.selectedIndex=e}function Zf(){let e=D.lFrame;return jc(e.tView,e.selectedIndex)}function tu(){D.lFrame.currentNamespace=Lc}function nu(){Yf()}function Yf(){D.lFrame.currentNamespace=null}function Qf(){return D.lFrame.currentNamespace}var ru=!0;function ki(){return ru}function Pi(e){ru=e}function Kf(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=If(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function ou(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){let i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:c,ngAfterViewChecked:u,ngOnDestroy:l}=i;s&&(e.contentHooks??=[]).push(-n,s),a&&((e.contentHooks??=[]).push(n,a),(e.contentCheckHooks??=[]).push(n,a)),c&&(e.viewHooks??=[]).push(-n,c),u&&((e.viewHooks??=[]).push(n,u),(e.viewCheckHooks??=[]).push(n,u)),l!=null&&(e.destroyHooks??=[]).push(n,l)}}function Bn(e,t,n){iu(e,t,3,n)}function Hn(e,t,n,r){(e[m]&3)===n&&iu(e,t,n,r)}function ko(e,t){let n=e[m];(n&3)===t&&(n&=16383,n+=1,e[m]=n)}function iu(e,t,n,r){let o=r!==void 0?e[et]&65535:0,i=r??-1,s=t.length-1,a=0;for(let c=o;c<s;c++)if(typeof t[c+1]=="number"){if(a=t[c],r!=null&&a>=r)break}else t[c]<0&&(e[et]+=65536),(a<i||i==-1)&&(Jf(e,n,t,c),e[et]=(e[et]&4294901760)+c+2),c++}function Pa(e,t){x(4,e,t);let n=E(null);try{t.call(e)}finally{E(n),x(5,e,t)}}function Jf(e,t,n,r){let o=n[r]<0,i=n[r+1],s=o?-n[r]:n[r],a=e[s];o?e[m]>>14<e[et]>>16&&(e[m]&3)===t&&(e[m]+=16384,Pa(a,i)):Pa(a,i)}var nt=-1,Vt=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function Xf(e){return(e.flags&8)!==0}function ep(e){return(e.flags&16)!==0}function tp(e,t,n){let r=0;for(;r<n.length;){let o=n[r];if(typeof o=="number"){if(o!==0)break;r++;let i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{let i=o,s=n[++r];rp(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}return r}function np(e){return e===3||e===4||e===6}function rp(e){return e.charCodeAt(0)===64}function Li(e,t){if(!(t===null||t.length===0))if(e===null||e.length===0)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){let o=t[r];typeof o=="number"?n=o:n===0||(n===-1||n===2?La(e,n,o,null,t[++r]):La(e,n,o,null,null))}}return e}function La(e,t,n,r,o){let i=0,s=e.length;if(t===-1)s=-1;else for(;i<e.length;){let a=e[i++];if(typeof a=="number"){if(a===t){s=-1;break}else if(a>t){s=i-1;break}}}for(;i<e.length;){let a=e[i];if(typeof a=="number")break;if(a===n){o!==null&&(e[i+1]=o);return}i++,o!==null&&i++}s!==-1&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),o!==null&&e.splice(i++,0,o)}function su(e){return e!==nt}function tr(e){return e&32767}function op(e){return e>>16}function nr(e,t){let n=op(e),r=t;for(;n>0;)r=r[lt],n--;return r}var Xo=!0;function Va(e){let t=Xo;return Xo=e,t}var ip=256,au=ip-1,cu=5,sp=0,ce={};function ap(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ot)&&(r=n[Ot]),r==null&&(r=n[Ot]=sp++);let o=r&au,i=1<<o;t.data[e+(o>>cu)]|=i}function uu(e,t){let n=lu(e,t);if(n!==-1)return n;let r=t[w];r.firstCreatePass&&(e.injectorIndex=t.length,Po(r.data,e),Po(t,null),Po(r.blueprint,null));let o=Vi(e,t),i=e.injectorIndex;if(su(o)){let s=tr(o),a=nr(o,t),c=a[w].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function Po(e,t){e.push(0,0,0,0,0,0,0,0,t)}function lu(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Vi(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=gu(o),r===null)return nt;if(n++,o=o[lt],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return nt}function cp(e,t,n){ap(e,t,n)}function du(e,t,n){if(n&y.Optional||e!==void 0)return e;Mi(t,"NodeInjector")}function fu(e,t,n,r){if(n&y.Optional&&r===void 0&&(r=null),(n&(y.Self|y.Host))===0){let o=e[ot],i=Y(void 0);try{return o?o.get(t,r,n&y.Optional):Cc(t,r,n&y.Optional)}finally{Y(i)}}return du(r,t,n)}function pu(e,t,n,r=y.Default,o){if(e!==null){if(t[m]&2048&&!(r&y.Self)){let s=pp(e,t,n,r,ce);if(s!==ce)return s}let i=hu(e,t,n,r,ce);if(i!==ce)return i}return fu(t,n,r,o)}function hu(e,t,n,r,o){let i=dp(n);if(typeof i=="function"){if(!Qc(t,e,r))return r&y.Host?du(o,n,r):fu(t,n,r,o);try{let s;if(s=i(r),s==null&&!(r&y.Optional))Mi(n);else return s}finally{eu()}}else if(typeof i=="number"){let s=null,a=lu(e,t),c=nt,u=r&y.Host?t[ye][ie]:null;for((a===-1||r&y.SkipSelf)&&(c=a===-1?Vi(e,t):t[a+8],c===nt||!Ba(r,!1)?a=-1:(s=t[w],a=tr(c),t=nr(c,t)));a!==-1;){let l=t[w];if(ja(i,a,l.data)){let f=up(a,t,n,s,r,u);if(f!==ce)return f}c=t[a+8],c!==nt&&Ba(r,t[w].data[a+8]===u)&&ja(i,a,t)?(s=l,a=tr(c),t=nr(c,t)):a=-1}}return o}function up(e,t,n,r,o,i){let s=t[w],a=s.data[e+8],c=r==null?Ht(a)&&Xo:r!=s&&(a.type&3)!==0,u=o&y.Host&&i===a,l=lp(a,s,n,c,u);return l!==null?ei(t,s,l,a,o):ce}function lp(e,t,n,r,o){let i=e.providerIndexes,s=t.data,a=i&1048575,c=e.directiveStart,u=e.directiveEnd,l=i>>20,f=r?a:a+l,p=o?a+l:u;for(let d=f;d<p;d++){let h=s[d];if(d<c&&n===h||d>=c&&h.type===n)return d}if(o){let d=s[c];if(d&&We(d)&&d.type===n)return c}return null}function ei(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Vt){let a=i;a.resolving&&Dc(Zd(s[n]));let c=Va(a.canSeeViewProviders);a.resolving=!0;let u,l=a.injectImpl?Y(a.injectImpl):null,f=Qc(e,r,y.Default);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&Kf(n,s[n],t)}finally{l!==null&&Y(l),Va(c),a.resolving=!1,eu()}}return i}function dp(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(Ot)?e[Ot]:void 0;return typeof t=="number"?t>=0?t&au:fp:t}function ja(e,t,n){let r=1<<e;return!!(n[t+(e>>cu)]&r)}function Ba(e,t){return!(e&y.Self)&&!(e&y.Host&&t)}var Be=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return pu(this._tNode,this._lView,t,yr(r),n)}};function fp(){return new Be(Me(),F())}function pp(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[m]&2048&&!Xn(s);){let a=hu(i,s,n,r|y.Self,ce);if(a!==ce)return a;let c=i.parent;if(!c){let u=s[Ac];if(u){let l=u.get(n,ce,r);if(l!==ce)return l}c=gu(s),s=s[lt]}i=c}return o}function gu(e){let t=e[w],n=t.type;return n===2?t.declTNode:n===1?e[ie]:null}function Ha(e,t=null,n=null,r){let o=mu(e,t,n,r);return o.resolveInjectorInitializers(),o}function mu(e,t=null,n=null,r,o=new Set){let i=[n||re,ff(e)];return r=r||(typeof e=="object"?void 0:$(e)),new Pt(i,t||Ni(),r||null,o)}var J=class e{static THROW_IF_NOT_FOUND=je;static NULL=new qn;static create(t,n){if(Array.isArray(t))return Ha({name:""},n,t,"");{let r=t.name??"";return Ha({name:r},t.parent,t.providers,r)}}static \u0275prov=T({token:e,providedIn:"any",factory:()=>C(Ic)});static __NG_ELEMENT_ID__=-1};var hp=new v("");hp.__NG_ELEMENT_ID__=e=>{let t=Me();if(t===null)throw new g(204,!1);if(t.type&2)return t.value;if(e&y.Optional)return null;throw new g(204,!1)};var yu=!1,ji=(()=>{class e{static __NG_ELEMENT_ID__=gp;static __NG_ENV_ID__=n=>n}return e})(),ti=class extends ji{_lView;constructor(t){super(),this._lView=t}onDestroy(t){let n=this._lView;return dt(n)?(t(),()=>{}):(Hc(n,t),()=>Af(n,t))}};function gp(){return new ti(F())}var Ge=class{},vu=new v("",{providedIn:"root",factory:()=>!1});var Du=new v(""),Eu=new v(""),wr=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new St(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=T({token:e,providedIn:"root",factory:()=>new e})}return e})();var ni=class extends ee{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,xc()&&(this.destroyRef=I(ji,{optional:!0})??void 0,this.pendingTasks=I(wr,{optional:!0})??void 0)}emit(t){let n=E(null);try{super.next(t)}finally{E(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof V&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},H=ni;function rr(...e){}function Cu(e){let t,n;function r(){e=rr;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function $a(e){return queueMicrotask(()=>e()),()=>{e=rr}}var Bi="isAngularZone",or=Bi+"_ID",mp=0,R=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new H(!1);onMicrotaskEmpty=new H(!1);onStable=new H(!1);onError=new H(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=yu}=t;if(typeof Zone>"u")throw new g(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,Dp(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Bi)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new g(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new g(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,yp,rr,rr);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},yp={};function Hi(e){if(e._nesting==0&&!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 vp(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){Cu(()=>{e.callbackScheduled=!1,ri(e),e.isCheckStableRunning=!0,Hi(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),ri(e)}function Dp(e){let t=()=>{vp(e)},n=mp++;e._inner=e._inner.fork({name:"angular",properties:{[Bi]:!0,[or]:n,[or+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(Ep(c))return r.invokeTask(i,s,a,c);try{return Ua(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ga(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Ua(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!Cp(c)&&t(),Ga(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,ri(e),Hi(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function ri(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function Ua(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ga(e){e._nesting--,Hi(e)}var ir=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new H;onMicrotaskEmpty=new H;onStable=new H;onError=new H;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function Ep(e){return _u(e,"__ignore_ng_zone__")}function Cp(e){return _u(e,"__scheduler_tick__")}function _u(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}function _p(e="zone.js",t){return e==="noop"?new ir:e==="zone.js"?new R(t):e}var Ee=class{_console=console;handleError(t){this._console.error("ERROR",t)}},wp=new v("",{providedIn:"root",factory:()=>{let e=I(R),t=I(Ee);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function Ip(){return Ir(Me(),F())}function Ir(e,t){return new pt(be(e,t))}var pt=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Ip}return e})();function br(e,t){let n=po(e,t?.equal),r=n[se];return n.set=o=>gn(r,o),n.update=o=>ho(r,o),n.asReadonly=bp.bind(n),n}function bp(){let e=this[se];if(e.readonlyFn===void 0){let t=()=>this();t[se]=e,e.readonlyFn=t}return e.readonlyFn}function wu(e){return(e.flags&128)===128}var Iu=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}(Iu||{}),bu=new Map,Mp=0;function Sp(){return Mp++}function Tp(e){bu.set(e[Dr],e)}function oi(e){bu.delete(e[Dr])}var za="__ngContext__";function Gt(e,t){Ne(t)?(e[za]=t[Dr],Tp(t)):e[za]=t}function Mu(e){return Tu(e[Lt])}function Su(e){return Tu(e[oe])}function Tu(e){for(;e!==null&&!Ie(e);)e=e[oe];return e}var ii;function Nu(e){ii=e}function Np(){if(ii!==void 0)return ii;if(typeof document<"u")return document;throw new g(210,!1)}var $i=new v("",{providedIn:"root",factory:()=>xp}),xp="ng",Ui=new v(""),zt=new v("",{providedIn:"platform",factory:()=>"unknown"});var Gi=new v("",{providedIn:"root",factory:()=>Np().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});var Ap="h",Rp="b";var xu=!1,Op=new v("",{providedIn:"root",factory:()=>xu});var Au=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Au||{}),Mr=new v(""),Wa=new Set;function Fp(e){Wa.has(e)||(Wa.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var kp=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=T({token:e,providedIn:"root",factory:()=>new e})}return e})();var Pp=(e,t,n,r)=>{};function Lp(e,t,n,r){Pp(e,t,n,r)}var Vp=()=>null;function Ru(e,t,n=!1){return Vp(e,t,n)}function Ou(e,t){let n=e.contentQueries;if(n!==null){let r=E(null);try{for(let o=0;o<n.length;o+=2){let i=n[o],s=n[o+1];if(s!==-1){let a=e.data[s];Yc(i),a.contentQueries(2,t[s],s)}}}finally{E(r)}}}function si(e,t,n){Yc(0);let r=E(null);try{t(e,n)}finally{E(r)}}function Fu(e,t,n){if(Oc(t)){let r=E(null);try{let o=t.directiveStart,i=t.directiveEnd;for(let s=o;s<i;s++){let a=e.data[s];if(a.contentQueries){let c=n[s];a.contentQueries(1,c,s)}}}finally{E(r)}}}var le=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}(le||{});var ai=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Pd})`}};function jp(e){return e instanceof ai?e.changingThisBreaksApplicationSecurity:e}function Bp(e,t){return e.createText(t)}function Hp(e,t,n){e.setValue(t,n)}function ku(e,t,n){return e.createElement(t,n)}function sr(e,t,n,r,o){e.insertBefore(t,n,r,o)}function Pu(e,t,n){e.appendChild(t,n)}function qa(e,t,n,r,o){r!==null?sr(e,t,n,r,o):Pu(e,t,n)}function $p(e,t,n){e.removeChild(null,t,n)}function Up(e,t,n){e.setAttribute(t,"style",n)}function Gp(e,t,n){n===""?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}function Lu(e,t,n){let{mergedAttrs:r,classes:o,styles:i}=n;r!==null&&tp(e,t,r),o!==null&&Gp(e,t,o),i!==null&&Up(e,t,i)}function zp(e){return e instanceof Function?e():e}function Wp(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var Vu="ng-template";function qp(e,t,n,r){let o=0;if(r){for(;o<t.length&&typeof t[o]=="string";o+=2)if(t[o]==="class"&&Wp(t[o+1].toLowerCase(),n,0)!==-1)return!0}else if(zi(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&typeof(i=t[o])=="string";)if(i.toLowerCase()===n)return!0}return!1}function zi(e){return e.type===4&&e.value!==Vu}function Zp(e,t,n){let r=e.type===4&&!n?Vu:e.value;return t===r}function Yp(e,t,n){let r=4,o=e.attrs,i=o!==null?Jp(o):0,s=!1;for(let a=0;a<t.length;a++){let c=t[a];if(typeof c=="number"){if(!s&&!te(r)&&!te(c))return!1;if(s&&te(c))continue;s=!1,r=c|r&1;continue}if(!s)if(r&4){if(r=2|r&1,c!==""&&!Zp(e,c,n)||c===""&&t.length===1){if(te(r))return!1;s=!0}}else if(r&8){if(o===null||!qp(e,o,c,n)){if(te(r))return!1;s=!0}}else{let u=t[++a],l=Qp(c,o,zi(e),n);if(l===-1){if(te(r))return!1;s=!0;continue}if(u!==""){let f;if(l>i?f="":f=o[l+1].toLowerCase(),r&2&&u!==f){if(te(r))return!1;s=!0}}}}return te(r)||s}function te(e){return(e&1)===0}function Qp(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){let s=t[o];if(s===e)return o;if(s===3||s===6)i=!0;else if(s===1||s===2){let a=t[++o];for(;typeof a=="string";)a=t[++o];continue}else{if(s===4)break;if(s===0){o+=4;continue}}o+=i?1:2}return-1}else return Xp(t,e)}function Kp(e,t,n=!1){for(let r=0;r<t.length;r++)if(Yp(e,t[r],n))return!0;return!1}function Jp(e){for(let t=0;t<e.length;t++){let n=e[t];if(np(n))return t}return e.length}function Xp(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){let r=e[n];if(typeof r=="number")return-1;if(r===t)return n;n++}return-1}function Za(e,t){return e?":not("+t.trim()+")":t}function eh(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if(typeof s=="string")if(r&2){let a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!te(s)&&(t+=Za(i,o),o=""),r=s,i=i||!te(r);n++}return o!==""&&(t+=Za(i,o)),t}function th(e){return e.map(eh).join(",")}function nh(e){let t=[],n=[],r=1,o=2;for(;r<e.length;){let i=e[r];if(typeof i=="string")o===2?i!==""&&t.push(i,e[++r]):o===8&&n.push(i);else{if(!te(o))break;o=i}r++}return n.length&&t.push(1,...n),t}var ht={};function Wi(e,t,n,r,o,i,s,a,c,u,l){let f=ve+r,p=f+o,d=rh(f,p),h=typeof u=="function"?u():u;return d[w]={type:e,blueprint:d,template:n,queries:null,viewQuery:a,declTNode:t,data:d.slice().fill(null,f),bindingStartIndex:f,expandoStartIndex:p,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:typeof i=="function"?i():i,pipeRegistry:typeof s=="function"?s():s,firstChild:null,schemas:c,consts:h,incompleteFirstPass:!1,ssrId:l}}function rh(e,t){let n=[];for(let r=0;r<t;r++)n.push(r<e?null:ht);return n}function oh(e){let t=e.tView;return t===null||t.incompleteFirstPass?e.tView=Wi(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}function qi(e,t,n,r,o,i,s,a,c,u,l){let f=t.blueprint.slice();return f[we]=o,f[m]=r|4|128|8|64|1024,(u!==null||e&&e[m]&2048)&&(f[m]|=2048),Bc(f),f[j]=f[lt]=e,f[U]=n,f[Ae]=s||e&&e[Ae],f[L]=a||e&&e[L],f[ot]=c||e&&e[ot]||null,f[ie]=i,f[Dr]=Sp(),f[Zn]=l,f[Ac]=u,f[ye]=t.type==2?e[ye]:f,f}function ih(e,t,n){let r=be(t,e),o=oh(n),i=e[Ae].rendererFactory,s=Zi(e,qi(e,o,null,ju(n),r,t,null,i.createRenderer(r,n),null,null,null));return e[t.index]=s}function ju(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function Bu(e,t,n,r){if(n===0)return-1;let o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Zi(e,t){return e[Lt]?e[Oa][oe]=t:e[Lt]=t,e[Oa]=t,t}function fe(e=1){Hu(Oe(),F(),ft()+e,!1)}function Hu(e,t,n,r){if(!r)if((t[m]&3)===3){let i=e.preOrderCheckHooks;i!==null&&Bn(t,i,n)}else{let i=e.preOrderHooks;i!==null&&Hn(t,i,0,n)}Ue(n)}var Sr=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(Sr||{});function ci(e,t,n,r){let o=E(null);try{let[i,s,a]=e.inputs[n],c=null;(s&Sr.SignalBased)!==0&&(c=t[i][se]),c!==null&&c.transformFn!==void 0?r=c.transformFn(r):a!==null&&(r=a.call(t,r)),e.setInput!==null?e.setInput(t,c,r,n,i):Fc(t,c,i,r)}finally{E(o)}}function $u(e,t,n,r,o){let i=ft(),s=r&2;try{Ue(-1),s&&t.length>ve&&Hu(e,t,ve,!1),x(s?2:0,o),n(r,o)}finally{Ue(i),x(s?3:1,o)}}function Yi(e,t,n){fh(e,t,n),(n.flags&64)===64&&ph(e,t,n)}function Uu(e,t,n=be){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;i<r.length;i+=2){let s=r[i+1],a=s===-1?n(t,e):e[s];e[o++]=a}}}function sh(e,t,n,r){let i=r.get(Op,xu)||n===le.ShadowDom,s=e.selectRootElement(t,i);return ah(s),s}function ah(e){ch(e)}var ch=()=>null;function uh(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function lh(e,t,n,r,o,i,s,a){if(!a&&Qi(t,e,n,r,o)){Ht(t)&&dh(n,t.index);return}if(t.type&3){let c=be(t,n);r=uh(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(c,r,o)}else t.type&12}function dh(e,t){let n=De(t,e);n[m]&16||(n[m]|=64)}function fh(e,t,n){let r=n.directiveStart,o=n.directiveEnd;Ht(n)&&ih(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||uu(n,t);let i=n.initialInputs;for(let s=r;s<o;s++){let a=e.data[s],c=ei(t,e,s,n);if(Gt(c,t),i!==null&&gh(t,s-r,c,a,n,i),We(a)){let u=De(n.index,t);u[U]=ei(t,e,s,n)}}}function ph(e,t,n){let r=n.directiveStart,o=n.directiveEnd,i=n.index,s=Gf();try{Ue(i);for(let a=r;a<o;a++){let c=e.data[a],u=t[a];Jo(a),(c.hostBindings!==null||c.hostVars!==0||c.hostAttrs!==null)&&hh(c,u)}}finally{Ue(-1),Jo(s)}}function hh(e,t){e.hostBindings!==null&&e.hostBindings(1,t)}function Gu(e,t){let n=e.directiveRegistry,r=null;if(n)for(let o=0;o<n.length;o++){let i=n[o];Kp(t,i.selectors,!1)&&(r??=[],We(i)?r.unshift(i):r.push(i))}return r}function gh(e,t,n,r,o,i){let s=i[t];if(s!==null)for(let a=0;a<s.length;a+=2){let c=s[a],u=s[a+1];ci(r,n,c,u)}}function mh(e,t){let n=e[ot],r=n?n.get(Ee,null):null;r&&r.handleError(t)}function Qi(e,t,n,r,o){let i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r],a=!1;if(s)for(let c=0;c<s.length;c+=2){let u=s[c],l=s[c+1],f=t.data[u];ci(f,n[u],l,o),a=!0}if(i)for(let c of i){let u=n[c],l=t.data[c];ci(l,u,r,o),a=!0}return a}function yh(e,t){let n=De(t,e),r=n[w];vh(r,n);let o=n[we];o!==null&&n[Zn]===null&&(n[Zn]=Ru(o,n[ot])),x(18),Ki(r,n,n[U]),x(19,n[U])}function vh(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}function Ki(e,t,n){Oi(t);try{let r=e.viewQuery;r!==null&&si(1,r,n);let o=e.template;o!==null&&$u(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[st]?.finishViewCreation(e),e.staticContentQueries&&Ou(e,t),e.staticViewQueries&&si(2,e.viewQuery,n);let i=e.components;i!==null&&Dh(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[m]&=-5,Fi()}}function Dh(e,t){for(let n=0;n<t.length;n++)yh(e,t[n])}function Eh(e,t,n,r){let o=E(null);try{let i=t.tView,a=e[m]&4096?4096:16,c=qi(e,i,n,a,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null),u=e[t.index];c[it]=u;let l=e[st];return l!==null&&(c[st]=l.createEmbeddedView(i)),Ki(i,c,n),c}finally{E(o)}}function Ya(e,t){return!t||t.firstChild===null||wu(e)}var Ch;function Ji(e,t){return Ch(e,t)}var Ce=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Ce||{});function zu(e){return(e.flags&32)===32}function tt(e,t,n,r,o){if(r!=null){let i,s=!1;Ie(r)?i=r:Ne(r)&&(s=!0,r=r[we]);let a=ue(r);e===0&&n!==null?o==null?Pu(t,n,a):sr(t,n,a,o||null,!0):e===1&&n!==null?sr(t,n,a,o||null,!0):e===2?$p(t,a,s):e===3&&t.destroyNode(a),i!=null&&Oh(t,e,i,n,o)}}function _h(e,t){Wu(e,t),t[we]=null,t[ie]=null}function wh(e,t,n,r,o,i){r[we]=o,r[ie]=t,Tr(e,r,n,1,o,i)}function Wu(e,t){t[Ae].changeDetectionScheduler?.notify(9),Tr(e,t,t[L],2,null,null)}function Ih(e){let t=e[Lt];if(!t)return Lo(e[w],e);for(;t;){let n=null;if(Ne(t))n=t[Lt];else{let r=t[K];r&&(n=r)}if(!n){for(;t&&!t[oe]&&t!==e;)Ne(t)&&Lo(t[w],t),t=t[j];t===null&&(t=e),Ne(t)&&Lo(t[w],t),n=t&&t[oe]}t=n}}function Xi(e,t){let n=e[Jn],r=n.indexOf(t);n.splice(r,1)}function qu(e,t){if(dt(t))return;let n=t[L];n.destroyNode&&Tr(e,t,n,3,null,null),Ih(t)}function Lo(e,t){if(dt(t))return;let n=E(null);try{t[m]&=-129,t[m]|=256,t[Q]&&uo(t[Q]),Mh(e,t),bh(e,t),t[w].type===1&&t[L].destroy();let r=t[it];if(r!==null&&Ie(t[j])){r!==t[j]&&Xi(r,t);let o=t[st];o!==null&&o.detachView(e)}oi(t)}finally{E(n)}}function bh(e,t){let n=e.cleanup,r=t[Yn];if(n!==null)for(let s=0;s<n.length-1;s+=2)if(typeof n[s]=="string"){let a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[Yn]=null);let o=t[Te];if(o!==null){t[Te]=null;for(let s=0;s<o.length;s++){let a=o[s];a()}}let i=t[Qn];if(i!==null){t[Qn]=null;for(let s of i)s.destroy()}}function Mh(e,t){let n;if(e!=null&&(n=e.destroyHooks)!=null)for(let r=0;r<n.length;r+=2){let o=t[n[r]];if(!(o instanceof Vt)){let i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){let a=o[i[s]],c=i[s+1];x(4,a,c);try{c.call(a)}finally{x(5,a,c)}}else{x(4,o,i);try{i.call(o)}finally{x(5,o,i)}}}}}function Sh(e,t,n){return Th(e,t.parent,n)}function Th(e,t,n){let r=t;for(;r!==null&&r.type&168;)t=r,r=t.parent;if(r===null)return n[we];if(Ht(r)){let{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===le.None||o===le.Emulated)return null}return be(r,n)}function Nh(e,t,n){return Ah(e,t,n)}function xh(e,t,n){return e.type&40?be(e,n):null}var Ah=xh,Qa;function es(e,t,n,r){let o=Sh(e,r,t),i=t[L],s=r.parent||t[ie],a=Nh(s,r,t);if(o!=null)if(Array.isArray(n))for(let c=0;c<n.length;c++)qa(i,o,n[c],a,!1);else qa(i,o,n,a,!1);Qa!==void 0&&Qa(i,r,t,n,o)}function Rt(e,t){if(t!==null){let n=t.type;if(n&3)return be(t,e);if(n&4)return ui(-1,e[t.index]);if(n&8){let r=t.child;if(r!==null)return Rt(e,r);{let o=e[t.index];return Ie(o)?ui(-1,o):ue(o)}}else{if(n&128)return Rt(e,t.next);if(n&32)return Ji(t,e)()||ue(e[t.index]);{let r=Zu(e,t);if(r!==null){if(Array.isArray(r))return r[0];let o=$e(e[ye]);return Rt(o,r)}else return Rt(e,t.next)}}}return null}function Zu(e,t){if(t!==null){let r=e[ye][ie],o=t.projection;return r.projection[o]}return null}function ui(e,t){let n=K+e+1;if(n<t.length){let r=t[n],o=r[w].firstChild;if(o!==null)return Rt(r,o)}return t[He]}function ts(e,t,n,r,o,i,s){for(;n!=null;){if(n.type===128){n=n.next;continue}let a=r[n.index],c=n.type;if(s&&t===0&&(a&&Gt(ue(a),r),n.flags|=2),!zu(n))if(c&8)ts(e,t,n.child,r,o,i,!1),tt(t,e,o,a,i);else if(c&32){let u=Ji(n,r),l;for(;l=u();)tt(t,e,o,l,i);tt(t,e,o,a,i)}else c&16?Rh(e,t,r,n,o,i):tt(t,e,o,a,i);n=s?n.projectionNext:n.next}}function Tr(e,t,n,r,o,i){ts(n,r,e.firstChild,t,o,i,!1)}function Rh(e,t,n,r,o,i){let s=n[ye],c=s[ie].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++){let l=c[u];tt(t,e,o,l,i)}else{let u=c,l=s[j];wu(r)&&(u.flags|=128),ts(e,t,u,l,o,i,!0)}}function Oh(e,t,n,r,o){let i=n[He],s=ue(n);i!==s&&tt(t,e,r,i,o);for(let a=K;a<n.length;a++){let c=n[a];Tr(c[w],c,e,t,r,i)}}function Fh(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=r.indexOf("-")===-1?void 0:Ce.DashCase;o==null?e.removeStyle(n,r,i):(typeof o=="string"&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=Ce.Important),e.setStyle(n,r,o,i))}}function ar(e,t,n,r,o=!1){for(;n!==null;){if(n.type===128){n=o?n.projectionNext:n.next;continue}let i=t[n.index];i!==null&&r.push(ue(i)),Ie(i)&&kh(i,r);let s=n.type;if(s&8)ar(e,t,n.child,r);else if(s&32){let a=Ji(n,t),c;for(;c=a();)r.push(c)}else if(s&16){let a=Zu(t,n);if(Array.isArray(a))r.push(...a);else{let c=$e(t[ye]);ar(c[w],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function kh(e,t){for(let n=K;n<e.length;n++){let r=e[n],o=r[w].firstChild;o!==null&&ar(r[w],r,o,t)}e[He]!==e[we]&&t.push(e[He])}function Yu(e){if(e[Fo]!==null){for(let t of e[Fo])t.impl.addSequence(t);e[Fo].length=0}}var Qu=[];function Ph(e){return e[Q]??Lh(e)}function Lh(e){let t=Qu.pop()??Object.create(jh);return t.lView=e,t}function Vh(e){e.lView[Q]!==e&&(e.lView=null,Qu.push(e))}var jh=N(M({},It),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Er(e.lView)},consumerOnSignalRead(){this.lView[Q]=this}});function Bh(e){let t=e[Q]??Object.create(Hh);return t.lView=e,t}var Hh=N(M({},It),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=$e(e.lView);for(;t&&!Ku(t[w]);)t=$e(t);t&&Ri(t)},consumerOnSignalRead(){this.lView[Q]=this}});function Ku(e){return e.type!==2}function Ju(e){if(e[Qn]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Qn])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[m]&8192)}}var $h=100;function Xu(e,t=!0,n=0){let o=e[Ae].rendererFactory,i=!1;i||o.begin?.();try{Uh(e,n)}catch(s){throw t&&mh(e,s),s}finally{i||o.end?.()}}function Uh(e,t){let n=qc();try{ka(!0),li(e,t);let r=0;for(;$t(e);){if(r===$h)throw new g(103,!1);r++,li(e,1)}}finally{ka(n)}}function Gh(e,t,n,r){if(dt(t))return;let o=t[m],i=!1,s=!1;Oi(t);let a=!0,c=null,u=null;i||(Ku(e)?(u=Ph(t),c=fn(u)):ro()===null?(a=!1,u=Bh(t),c=fn(u)):t[Q]&&(uo(t[Q]),t[Q]=null));try{Bc(t),Bf(e.bindingStartIndex),n!==null&&$u(e,t,n,2,r);let l=(o&3)===3;if(!i)if(l){let d=e.preOrderCheckHooks;d!==null&&Bn(t,d,null)}else{let d=e.preOrderHooks;d!==null&&Hn(t,d,0,null),ko(t,0)}if(s||zh(t),Ju(t),el(t,0),e.contentQueries!==null&&Ou(e,t),!i)if(l){let d=e.contentCheckHooks;d!==null&&Bn(t,d)}else{let d=e.contentHooks;d!==null&&Hn(t,d,1),ko(t,1)}qh(e,t);let f=e.components;f!==null&&nl(t,f,0);let p=e.viewQuery;if(p!==null&&si(2,p,r),!i)if(l){let d=e.viewCheckHooks;d!==null&&Bn(t,d)}else{let d=e.viewHooks;d!==null&&Hn(t,d,2),ko(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Oo]){for(let d of t[Oo])d();t[Oo]=null}i||(Yu(t),t[m]&=-73)}catch(l){throw i||Er(t),l}finally{u!==null&&(ao(u,c),a&&Vh(u)),Fi()}}function el(e,t){for(let n=Mu(e);n!==null;n=Su(n))for(let r=K;r<n.length;r++){let o=n[r];tl(o,t)}}function zh(e){for(let t=Mu(e);t!==null;t=Su(t)){if(!(t[m]&2))continue;let n=t[Jn];for(let r=0;r<n.length;r++){let o=n[r];Ri(o)}}}function Wh(e,t,n){x(18);let r=De(t,e);tl(r,n),x(19,r[U])}function tl(e,t){Ai(e)&&li(e,t)}function li(e,t){let r=e[w],o=e[m],i=e[Q],s=!!(t===0&&o&16);if(s||=!!(o&64&&t===0),s||=!!(o&1024),s||=!!(i?.dirty&&co(i)),s||=!1,i&&(i.dirty=!1),e[m]&=-9217,s)Gh(r,e,r.template,e[U]);else if(o&8192){Ju(e),el(e,1);let a=r.components;a!==null&&nl(e,a,1),Yu(e)}}function nl(e,t,n){for(let r=0;r<t.length;r++)Wh(e,t[r],n)}function qh(e,t){let n=e.hostBindingOpCodes;if(n!==null)try{for(let r=0;r<n.length;r++){let o=n[r];if(o<0)Ue(~o);else{let i=o,s=n[++r],a=n[++r];Uf(s,i);let c=t[i];x(24,c),a(2,c),x(25,c)}}}finally{Ue(-1)}}function ns(e,t){let n=qc()?64:1088;for(e[Ae].changeDetectionScheduler?.notify(t);e;){e[m]|=n;let r=$e(e);if(Xn(e)&&!r)return e;e=r}return null}function rl(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}function Zh(e,t,n,r=!0){let o=t[w];if(Yh(o,t,e,n),r){let s=ui(n,e),a=t[L],c=a.parentNode(e[He]);c!==null&&wh(o,e[ie],a,t,c,s)}let i=t[Zn];i!==null&&i.firstChild!==null&&(i.firstChild=null)}function di(e,t){if(e.length<=K)return;let n=K+t,r=e[n];if(r){let o=r[it];o!==null&&o!==e&&Xi(o,r),t>0&&(e[n-1][oe]=r[oe]);let i=zn(e,K+t);_h(r[w],r);let s=i[st];s!==null&&s.detachView(i[w]),r[j]=null,r[oe]=null,r[m]&=-129}return r}function Yh(e,t,n,r){let o=K+r,i=n.length;r>0&&(n[o-1][oe]=t),r<i-K?(t[oe]=n[o],wc(n,K+r,t)):(n.push(t),t[oe]=null),t[j]=n;let s=t[it];s!==null&&n!==s&&ol(s,t);let a=t[st];a!==null&&a.insertView(e),Qo(t),t[m]|=128}function ol(e,t){let n=e[Jn],r=t[j];if(Ne(r))e[m]|=2;else{let o=r[j][ye];t[ye]!==o&&(e[m]|=2)}n===null?e[Jn]=[t]:n.push(t)}var rs=class{_lView;_cdRefInjectingView;notifyErrorHandler;_appRef=null;_attachedToViewContainer=!1;get rootNodes(){let t=this._lView,n=t[w];return ar(n,t,n.firstChild,[])}constructor(t,n,r=!0){this._lView=t,this._cdRefInjectingView=n,this.notifyErrorHandler=r}get context(){return this._lView[U]}set context(t){this._lView[U]=t}get destroyed(){return dt(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){let t=this._lView[j];if(Ie(t)){let n=t[Kn],r=n?n.indexOf(this):-1;r>-1&&(di(t,r),zn(n,r))}this._attachedToViewContainer=!1}qu(this._lView[w],this._lView)}onDestroy(t){Hc(this._lView,t)}markForCheck(){ns(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[m]&=-129}reattach(){Qo(this._lView),this._lView[m]|=128}detectChanges(){this._lView[m]|=1024,Xu(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new g(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Xn(this._lView),n=this._lView[it];n!==null&&!t&&Xi(n,this._lView),Wu(this._lView[w],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new g(902,!1);this._appRef=t;let n=Xn(this._lView),r=this._lView[it];r!==null&&!n&&ol(r,this._lView),Qo(this._lView)}};function il(e){return $t(e._lView)||!!(e._lView[m]&64)}function sl(e){Ri(e._cdRefInjectingView||e._lView)}var Nr=(()=>{class e{static __NG_ELEMENT_ID__=Jh}return e})(),Qh=Nr,Kh=class extends Qh{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=Eh(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new rs(o)}};function Jh(){return Xh(Me(),F())}function Xh(e,t){return e.type&4?new Kh(t,e,Ir(e,t)):null}function os(e,t,n,r,o){let i=e.data[t];if(i===null)i=eg(e,t,n,r,o),$f()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Vf();i.injectorIndex=s===null?-1:s.injectorIndex}return Ut(i,!0),i}function eg(e,t,n,r,o){let i=zc(),s=Wc(),a=s?i:i&&i.parent,c=e.data[t]=ng(e,a,n,t,r,o);return tg(e,c,i,s),c}function tg(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function ng(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return kf()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var GC=new RegExp(`^(\\d+)*(${Rp}|${Ap})*(.*)`);var rg=()=>null;function Ka(e,t){return rg(e,t)}var og=class{},al=class{},fi=class{resolveComponentFactory(t){throw Error(`No component factory found for ${$(t)}.`)}},qe=class{static NULL=new fi},at=class{},is=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>ig()}return e})();function ig(){let e=F(),t=Me(),n=De(t.index,e);return(Ne(n)?n:e)[L]}var sg=(()=>{class e{static \u0275prov=T({token:e,providedIn:"root",factory:()=>null})}return e})();var Vo={},pi=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=yr(r);let o=this.injector.get(t,Vo,r);return o!==Vo||n===Vo?o:this.parentInjector.get(t,n,r)}};function Ja(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s<t.length;s++){let a=t[s];if(typeof a=="number")i=a;else if(i==1)o=ba(o,a);else if(i==2){let c=a,u=t[++s];r=ba(r,c+": "+u+";")}}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function W(e,t=y.Default){let n=F();if(n===null)return C(e,t);let r=Me();return pu(r,n,ne(e),t)}function cl(e,t,n,r,o){let i=r===null?null:{"":-1},s=o(e,n);if(s!==null){let a,c=null,u=null,l=cg(s);l===null?a=s:[a,c,u]=l,dg(e,t,n,a,i,c,u)}i!==null&&r!==null&&ag(n,r,i)}function ag(e,t,n){let r=e.localNames=[];for(let o=0;o<t.length;o+=2){let i=n[t[o+1]];if(i==null)throw new g(-301,!1);r.push(t[o],i)}}function cg(e){let t=null,n=!1;for(let s=0;s<e.length;s++){let a=e[s];if(s===0&&We(a)&&(t=a),a.findHostDirectiveDefs!==null){n=!0;break}}if(!n)return null;let r=null,o=null,i=null;for(let s of e)s.findHostDirectiveDefs!==null&&(r??=[],o??=new Map,i??=new Map,ug(s,r,i,o)),s===t&&(r??=[],r.push(s));return r!==null?(r.push(...t===null?e:e.slice(1)),[r,o,i]):null}function ug(e,t,n,r){let o=t.length;e.findHostDirectiveDefs(e,t,r),n.set(e,[o,t.length-1])}function lg(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function dg(e,t,n,r,o,i,s){let a=r.length,c=!1;for(let p=0;p<a;p++){let d=r[p];!c&&We(d)&&(c=!0,lg(e,n,p)),cp(uu(n,t),e,d.type)}yg(n,e.data.length,a);for(let p=0;p<a;p++){let d=r[p];d.providersResolver&&d.providersResolver(d)}let u=!1,l=!1,f=Bu(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let p=0;p<a;p++){let d=r[p];if(n.mergedAttrs=Li(n.mergedAttrs,d.hostAttrs),pg(e,n,t,f,d),mg(f,d,o),s!==null&&s.has(d)){let[b,B]=s.get(d);n.directiveToIndex.set(d.type,[f,b+n.directiveStart,B+n.directiveStart])}else(i===null||!i.has(d))&&n.directiveToIndex.set(d.type,f);d.contentQueries!==null&&(n.flags|=4),(d.hostBindings!==null||d.hostAttrs!==null||d.hostVars!==0)&&(n.flags|=64);let h=d.type.prototype;!u&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),f++}fg(e,n,i)}function fg(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){let o=e.data[r];if(n===null||!n.has(o))Xa(0,t,o,r),Xa(1,t,o,r),tc(t,r,!1);else{let i=n.get(o);ec(0,t,i,r),ec(1,t,i,r),tc(t,r,!0)}}}function Xa(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s;e===0?s=t.inputs??={}:s=t.outputs??={},s[i]??=[],s[i].push(r),ul(t,i)}}function ec(e,t,n,r){let o=e===0?n.inputs:n.outputs;for(let i in o)if(o.hasOwnProperty(i)){let s=o[i],a;e===0?a=t.hostDirectiveInputs??={}:a=t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),ul(t,s)}}function ul(e,t){t==="class"?e.flags|=8:t==="style"&&(e.flags|=16)}function tc(e,t,n){let{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(r===null||!n&&o===null||n&&i===null||zi(e)){e.initialInputs??=[],e.initialInputs.push(null);return}let s=null,a=0;for(;a<r.length;){let c=r[a];if(c===0){a+=4;continue}else if(c===5){a+=2;continue}else if(typeof c=="number")break;if(!n&&o.hasOwnProperty(c)){let u=o[c];for(let l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){let u=i[c];for(let l=0;l<u.length;l+=2)if(u[l]===t){s??=[],s.push(u[l+1],r[a+1]);break}}a+=2}e.initialInputs??=[],e.initialInputs.push(s)}function pg(e,t,n,r,o){e.data[r]=o;let i=o.factory||(o.factory=Ft(o.type,!0)),s=new Vt(i,We(o),W);e.blueprint[r]=s,n[r]=s,hg(e,t,r,Bu(e,n,o.hostVars,ht),o)}function hg(e,t,n,r,o){let i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;s===null&&(s=e.hostBindingOpCodes=[]);let a=~t.index;gg(s)!=a&&s.push(a),s.push(n,r,i)}}function gg(e){let t=e.length;for(;t>0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function mg(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;We(t)&&(n[""]=e)}}function yg(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ll(e,t,n,r,o,i,s,a){let c=t.consts,u=er(c,s),l=os(t,e,2,r,u);return i&&cl(t,n,l,er(c,a),o),l.mergedAttrs=Li(l.mergedAttrs,l.attrs),l.attrs!==null&&Ja(l,l.attrs,!1),l.mergedAttrs!==null&&Ja(l,l.mergedAttrs,!0),t.queries!==null&&t.queries.elementStart(t,l),l}function dl(e,t){ou(e,t),Oc(t)&&e.queries.elementEnd(t)}var cr=class extends qe{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){let n=kt(t);return new ur(n,this.ngModule)}};function vg(e){return Object.keys(e).map(t=>{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Sr.SignalBased)!==0};return o&&(i.transform=o),i})}function Dg(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function Eg(e,t,n){let r=t instanceof xe?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new pi(n,r):n}function Cg(e){let t=e.get(at,null);if(t===null)throw new g(407,!1);let n=e.get(sg,null),r=e.get(Ge,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function _g(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return ku(t,n,n==="svg"?Lc:n==="math"?Tf:null)}var ur=class extends al{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=vg(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=Dg(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=th(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o){x(22);let i=E(null);try{let s=this.componentDef,a=r?["ng-version","19.2.18"]:nh(this.componentDef.selectors[0]),c=Wi(0,null,null,1,0,null,null,null,null,[a],null),u=Eg(s,o||this.ngModule,t),l=Cg(u),f=l.rendererFactory.createRenderer(null,s),p=r?sh(f,r,s.encapsulation,u):_g(s,f),d=qi(null,c,null,512|ju(s),null,null,l,f,u,null,Ru(p,u,!0));d[ve]=p,Oi(d);let h=null;try{let b=ll(ve,c,d,"#host",()=>[this.componentDef],!0,0);p&&(Lu(f,p,b),Gt(p,d)),Yi(c,d,b),Fu(c,b,d),dl(c,b),n!==void 0&&wg(b,this.ngContentSelectors,n),h=De(b.index,d),d[U]=h[U],Ki(c,d,null)}catch(b){throw h!==null&&oi(h),oi(d),b}finally{x(23),Fi()}return new hi(this.componentType,d)}finally{E(i)}}},hi=class extends og{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n){super(),this._rootLView=n,this._tNode=jc(n[w],ve),this.location=Ir(this._tNode,n),this.instance=De(this._tNode.index,n)[U],this.hostView=this.changeDetectorRef=new rs(n,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=Qi(r,o[w],o,t,n);this.previousInputValues.set(t,n);let s=De(r.index,o);ns(s,1)}get injector(){return new Be(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function wg(e,t,n){let r=e.projection=[];for(let o=0;o<t.length;o++){let i=n[o];r.push(i!=null&&i.length?Array.from(i):null)}}var xr=(()=>{class e{static __NG_ELEMENT_ID__=Ig}return e})();function Ig(){let e=Me();return Mg(e,F())}var bg=xr,fl=class extends bg{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return Ir(this._hostTNode,this._hostLView)}get injector(){return new Be(this._hostTNode,this._hostLView)}get parentInjector(){let t=Vi(this._hostTNode,this._hostLView);if(su(t)){let n=nr(t,this._hostLView),r=tr(t),o=n[w].data[r+8];return new Be(o,n)}else return new Be(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=nc(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-K}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Ka(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Ya(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!wf(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let c=s?t:new ur(kt(t)),u=r||this.parentInjector;if(!i&&c.ngModule==null){let b=(s?u:this.parentInjector).get(xe,null);b&&(i=b)}let l=kt(c.componentType??{}),f=Ka(this._lContainer,l?.id??null),p=f?.firstChild??null,d=c.create(u,o,p,i);return this.insertImpl(d.hostView,a,Ya(this._hostTNode,f)),d}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(Nf(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[j],u=new fl(c,c[ie],c[j]);u.detach(u.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return Zh(s,o,i,r),t.attachToViewContainerRef(),wc(jo(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=nc(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=di(this._lContainer,n);r&&(zn(jo(this._lContainer),n),qu(r[w],r))}detach(t){let n=this._adjustIndex(t,-1),r=di(this._lContainer,n);return r&&zn(jo(this._lContainer),n)!=null?new rs(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function nc(e){return e[Kn]}function jo(e){return e[Kn]||(e[Kn]=[])}function Mg(e,t){let n,r=t[e.index];return Ie(r)?n=r:(n=rl(r,t,null,e),t[e.index]=n,Zi(t,n)),Tg(n,t,e,r),new fl(n,e,t)}function Sg(e,t){let n=e[L],r=n.createComment(""),o=be(t,e),i=n.parentNode(o);return sr(n,i,r,n.nextSibling(o),!1),r}var Tg=Ag,Ng=()=>!1;function xg(e,t,n){return Ng(e,t,n)}function Ag(e,t,n,r){if(e[He])return;let o;n.type&8?o=ue(r):o=Sg(t,n),e[He]=o}function Rg(e){let t=[],n=new Map;function r(o){let i=n.get(o);if(!i){let s=e(o);n.set(o,i=s.then(Pg))}return i}return lr.forEach((o,i)=>{let s=[];o.templateUrl&&s.push(r(o.templateUrl).then(u=>{o.template=u}));let a=typeof o.styles=="string"?[o.styles]:o.styles||[];if(o.styles=a,o.styleUrl&&o.styleUrls?.length)throw new Error("@Component cannot define both `styleUrl` and `styleUrls`. Use `styleUrl` if the component has one stylesheet, or `styleUrls` if it has multiple");if(o.styleUrls?.length){let u=o.styles.length,l=o.styleUrls;o.styleUrls.forEach((f,p)=>{a.push(""),s.push(r(f).then(d=>{a[u+p]=d,l.splice(l.indexOf(f),1),l.length==0&&(o.styleUrls=void 0)}))})}else o.styleUrl&&s.push(r(o.styleUrl).then(u=>{a.push(u),o.styleUrl=void 0}));let c=Promise.all(s).then(()=>Lg(i));t.push(c)}),Fg(),Promise.all(t).then(()=>{})}var lr=new Map,Og=new Set;function Fg(){let e=lr;return lr=new Map,e}function kg(){return lr.size===0}function Pg(e){return typeof e=="string"?e:e.text()}function Lg(e){Og.delete(e)}var ct=class{},Vg=class{};var dr=class extends ct{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new cr(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=uf(t);this._bootstrapComponents=zp(i.bootstrap),this._r3Injector=mu(t,n,[{provide:ct,useValue:this},{provide:qe,useValue:this.componentFactoryResolver},...r],$(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},gi=class extends Vg{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new dr(this.moduleType,t,[])}};function jg(e,t,n){return new dr(e,t,n,!1)}var mi=class extends ct{injector;componentFactoryResolver=new cr(this);instance=null;constructor(t){super();let n=new Pt([...t.providers,{provide:ct,useValue:this},{provide:qe,useValue:this.componentFactoryResolver}],t.parent||Ni(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function Bg(e,t,n=null){return new mi({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var Hg=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=Mc(!1,n.type),o=r.length>0?Bg([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=T({token:e,providedIn:"environment",factory:()=>new e(C(xe))})}return e})();function pl(e){return mr(()=>{let t=hl(e),n=N(M({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Iu.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(Hg).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||le.Emulated,styles:e.styles||re,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&Fp("NgStandalone"),gl(n);let r=e.dependencies;return n.directiveDefs=rc(r,!1),n.pipeDefs=rc(r,!0),n.id=Wg(n),n})}function $g(e){return kt(e)||lf(e)}function Ug(e){return e!==null}function pe(e){return mr(()=>({type:e.type,bootstrap:e.bootstrap||re,declarations:e.declarations||re,imports:e.imports||re,exports:e.exports||re,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function Gg(e,t){if(e==null)return rt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Sr.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function zg(e){if(e==null)return rt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Wt(e){return mr(()=>{let t=hl(e);return gl(t),t})}function hl(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||rt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||re,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:Gg(e.inputs,t),outputs:zg(e.outputs),debugInfo:null}}function gl(e){e.features?.forEach(t=>t(e))}function rc(e,t){if(!e)return null;let n=t?df:$g;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(Ug)}function Wg(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,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];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function ml(e){return Zg(e)?Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e:!1}function qg(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{let n=e[Symbol.iterator](),r;for(;!(r=n.next()).done;)t(r.value)}}function Zg(e){return e!==null&&(typeof e=="function"||typeof e=="object")}function ss(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function Yg(e,t,n,r,o,i,s,a,c){let u=t.consts,l=os(t,e,4,s||null,a||null);Gc()&&cl(t,n,l,er(u,c),Gu),l.mergedAttrs=Li(l.mergedAttrs,l.attrs),ou(t,l);let f=l.tView=Wi(2,l,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u,null);return t.queries!==null&&(t.queries.template(t,l),f.queries=t.queries.embeddedTView(l)),l}function Qg(e,t,n,r,o,i,s,a,c,u){let l=n+ve,f=t.firstCreatePass?Yg(l,t,e,r,o,i,s,a,c):t.data[l];Ut(f,!1);let p=Kg(t,e,f,n);ki()&&es(t,e,p,f),Gt(p,e);let d=rl(p,e,p,f);return e[l]=d,Zi(e,d),xg(d,f,e),xi(f)&&Yi(t,e,f),c!=null&&Uu(e,f,u),f}function qt(e,t,n,r,o,i,s,a){let c=F(),u=Oe(),l=er(u.consts,i);return Qg(c,u,e,t,n,r,o,l,s,a),qt}var Kg=Jg;function Jg(e,t,n,r){return Pi(!0),t[L].createComment("")}var as=new v(""),Zt=new v(""),Ar=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(n,r,o){this._ngZone=n,this.registry=r,xc()&&(this._destroyRef=I(ji,{optional:!0})??void 0),cs||(Xg(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){let n=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),r=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{R.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}}));this._destroyRef?.onDestroy(()=>{n.unsubscribe(),r.unsubscribe()})}isStable(){return this._isZoneStable&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;this._callbacks.length!==0;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb()}});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>r.updateCb&&r.updateCb(n)?(clearTimeout(r.timeoutId),!1):!0)}}getPendingTasks(){return this._taskTrackingZone?this._taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n()},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this._taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}registerApplication(n){this.registry.registerApplication(n,this)}unregisterApplication(n){this.registry.unregisterApplication(n)}findProviders(n,r,o){return[]}static \u0275fac=function(r){return new(r||e)(C(R),C(Rr),C(Zt))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),Rr=(()=>{class e{_applications=new Map;registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return cs?.findTestabilityInTree(this,n,r)??null}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function Xg(e){cs=e}var cs,em=(()=>{class e{static \u0275prov=T({token:e,providedIn:"root",factory:()=>new yi})}return e})(),yi=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}};function Yt(e){return!!e&&typeof e.then=="function"}function yl(e){return!!e&&typeof e.subscribe=="function"}var tm=new v("");var vl=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=I(tm,{optional:!0})??[];injector=I(J);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Nc(this.injector,o);if(Yt(i))n.push(i);else if(yl(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),nm=new v("");function rm(){fo(()=>{throw new g(600,!1)})}function om(e){return e.isBoundToModule}var im=10;function Dl(e,t){return Array.isArray(t)?t.reduce(Dl,e):M(M({},e),t)}var Re=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=I(wp);afterRenderManager=I(kp);zonelessEnabled=I(vu);rootEffectScheduler=I(em);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new ee;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=I(wr).hasPendingTasks.pipe(me(n=>!n));constructor(){I(Mr,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=I(xe);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=J.NULL){x(10);let i=n instanceof al;if(!this._injector.get(vl).done){let d="";throw new g(405,d)}let a;i?a=n:a=this._injector.get(qe).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=om(a)?void 0:this._injector.get(ct),u=r||a.selector,l=a.create(o,[],u,c),f=l.location.nativeElement,p=l.injector.get(as,null);return p?.registerApplication(f),l.onDestroy(()=>{this.detachView(l.hostView),$n(this.components,l),p?.unregisterApplication(f)}),this._loadComponent(l),x(11,l),l}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){x(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Au.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new g(101,!1);let n=E(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,E(n),this.afterTick.next(),x(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(at,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<im;)x(14),this.synchronizeOnce(),x(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)sm(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>$t(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;$n(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(nm,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>$n(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new g(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function $n(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function sm(e,t,n,r){if(!n&&!$t(e))return;Xu(e,t,n&&!r?0:1)}function am(e,t,n,r){return ss(e,Zc(),n)?t+vc(n)+r:ht}function Ln(e,t){return e<<17|t<<2}function ze(e){return e>>17&32767}function cm(e){return(e&2)==2}function um(e,t){return e&131071|t<<17}function vi(e){return e|2}function ut(e){return(e&131068)>>2}function Bo(e,t){return e&-131069|t<<2}function lm(e){return(e&1)===1}function Di(e){return e|1}function dm(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=ze(s),c=ut(s);e[r]=n;let u=!1,l;if(Array.isArray(n)){let f=n;l=f[1],(l===null||Bt(f,l)>0)&&(u=!0)}else l=n;if(o)if(c!==0){let p=ze(e[a+1]);e[r+1]=Ln(p,a),p!==0&&(e[p+1]=Bo(e[p+1],r)),e[a+1]=um(e[a+1],r)}else e[r+1]=Ln(a,0),a!==0&&(e[a+1]=Bo(e[a+1],r)),a=r;else e[r+1]=Ln(c,0),a===0?a=r:e[c+1]=Bo(e[c+1],r),c=r;u&&(e[r+1]=vi(e[r+1])),oc(e,l,r,!0),oc(e,l,r,!1),fm(t,l,e,r,i),s=Ln(a,c),i?t.classBindings=s:t.styleBindings=s}function fm(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&Bt(i,t)>=0&&(n[r+1]=Di(n[r+1]))}function oc(e,t,n,r){let o=e[n+1],i=t===null,s=r?ze(o):ut(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],u=e[s+1];pm(c,t)&&(a=!0,e[s+1]=r?Di(u):vi(u)),s=r?ze(u):ut(u)}a&&(e[n+1]=r?vi(o):Di(o))}function pm(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?Bt(e,t)>=0:!1}function Se(e,t,n){let r=F(),o=Zc();if(ss(r,o,t)){let i=Oe(),s=Zf();lh(i,s,r,e,t,r[L],n,!1)}return Se}function ic(e,t,n,r,o){Qi(t,e,n,o?"class":"style",r)}function us(e,t,n){return hm(e,t,n,!1),us}function hm(e,t,n,r){let o=F(),i=Oe(),s=Hf(2);if(i.firstUpdatePass&&mm(i,e,s,r),t!==ht&&ss(o,s,t)){let a=i.data[ft()];Cm(i,a,o,o[L],e,o[s+1]=_m(t,n),r,s)}}function gm(e,t){return t>=e.expandoStartIndex}function mm(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[ft()],s=gm(e,n);wm(i,r)&&t===null&&!s&&(t=!1),t=ym(o,i,t,r),dm(o,i,t,n,s,r)}}function ym(e,t,n,r){let o=zf(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=Ho(null,e,t,n,r),n=jt(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=Ho(o,e,t,n,r),i===null){let c=vm(e,t,r);c!==void 0&&Array.isArray(c)&&(c=Ho(null,e,t,c[1],r),c=jt(c,t.attrs,r),Dm(e,t,r,c))}else i=Em(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function vm(e,t,n){let r=n?t.classBindings:t.styleBindings;if(ut(r)!==0)return e[ze(r)]}function Dm(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[ze(o)]=r}function Em(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++){let s=e[i].hostAttrs;r=jt(r,s,n)}return jt(r,t.attrs,n)}function Ho(e,t,n,r,o){let i=null,s=n.directiveEnd,a=n.directiveStylingLast;for(a===-1?a=n.directiveStart:a++;a<s&&(i=t[a],r=jt(r,i.hostAttrs,o),i!==e);)a++;return e!==null&&(n.directiveStylingLast=a),r}function jt(e,t,n){let r=n?1:2,o=-1;if(t!==null)for(let i=0;i<t.length;i++){let s=t[i];typeof s=="number"?o=s:o===r&&(Array.isArray(e)||(e=e===void 0?[]:["",e]),af(e,s,n?!0:t[++i]))}return e===void 0?null:e}function Cm(e,t,n,r,o,i,s,a){if(!(t.type&3))return;let c=e.data,u=c[a+1],l=lm(u)?sc(c,t,n,o,ut(u),s):void 0;if(!fr(l)){fr(i)||cm(u)&&(i=sc(c,null,n,o,a,s));let f=Vc(ft(),n);Fh(r,s,f,o,i)}}function sc(e,t,n,r,o,i){let s=t===null,a;for(;o>0;){let c=e[o],u=Array.isArray(c),l=u?c[1]:c,f=l===null,p=n[o+1];p===ht&&(p=f?re:void 0);let d=f?Ao(p,r):l===r?p:void 0;if(u&&!fr(d)&&(d=Ao(c,r)),fr(d)&&(a=d,s))return a;let h=e[o+1];o=s?ze(h):ut(h)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Ao(c,r))}return a}function fr(e){return e!==void 0}function _m(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=$(jp(e)))),e}function wm(e,t){return(e.flags&(t?8:16))!==0}function G(e,t,n,r){let o=F(),i=Oe(),s=ve+e,a=o[L],c=i.firstCreatePass?ll(s,i,o,t,Gu,Gc(),n,r):i.data[s],u=Im(i,o,c,a,t,e);o[s]=u;let l=xi(c);return Ut(c,!0),Lu(a,u,c),!zu(c)&&ki()&&es(i,o,u,c),(Rf()===0||l)&&Gt(u,o),Of(),l&&(Yi(i,o,c),Fu(i,c,o)),r!==null&&Uu(o,c),G}function z(){let e=Me();Wc()?jf():(e=e.parent,Ut(e,!1));let t=e;Pf(t)&&Lf(),Ff();let n=Oe();return n.firstCreatePass&&dl(n,t),t.classesWithoutHost!=null&&Xf(t)&&ic(n,t,F(),t.classesWithoutHost,!0),t.stylesWithoutHost!=null&&ep(t)&&ic(n,t,F(),t.stylesWithoutHost,!1),z}function Or(e,t,n,r){return G(e,t,n,r),z(),Or}var Im=(e,t,n,r,o,i)=>(Pi(!0),ku(r,o,Qf()));function El(){return F()}var pr="en-US";var bm=pr;function Mm(e){typeof e=="string"&&(bm=e.toLowerCase().replace(/_/g,"-"))}function ac(e,t,n){return function r(o){if(o===Function)return n;let i=Ht(e)?De(e.index,t):t;ns(i,5);let s=t[U],a=cc(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=cc(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function cc(e,t,n,r){let o=E(null);try{return x(6,t,n),n(r)!==!1}catch(i){return Sm(e,i),!1}finally{x(7,t,n),E(o)}}function Sm(e,t){let n=e[ot],r=n?n.get(Ee,null):null;r&&r.handleError(t)}function uc(e,t,n,r,o,i){let s=t[n],a=t[w],u=a.data[n].outputs[r],l=s[u],f=a.firstCreatePass?Uc(a):null,p=$c(t),d=l.subscribe(i),h=p.length;p.push(i,d),f&&f.push(o,e.index,h,-(h+1))}function gt(e,t,n,r){let o=F(),i=Oe(),s=Me();return Nm(i,o,o[L],s,e,t,r),gt}function Tm(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;i<o.length-1;i+=2){let s=o[i];if(s===n&&o[i+1]===r){let a=t[Yn],c=o[i+2];return a.length>c?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Nm(e,t,n,r,o,i,s){let a=xi(r),u=e.firstCreatePass?Uc(e):null,l=$c(t),f=!0;if(r.type&3||s){let p=be(r,t),d=s?s(p):p,h=l.length,b=s?k=>s(ue(k[r.index])):r.index,B=null;if(!s&&a&&(B=Tm(e,t,o,r.index)),B!==null){let k=B.__ngLastListenerFn__||B;k.__ngNextListenerFn__=i,B.__ngLastListenerFn__=i,f=!1}else{i=ac(r,t,i),Lp(t,d,o,i);let k=n.listen(d,o,i);l.push(i,k),u&&u.push(o,b,h,h+1)}}else i=ac(r,t,i);if(f){let p=r.outputs?.[o],d=r.hostDirectiveOutputs?.[o];if(d&&d.length)for(let h=0;h<d.length;h+=2){let b=d[h],B=d[h+1];uc(r,t,b,B,o,i)}if(p&&p.length)for(let h of p)uc(r,t,h,o,o,i)}}function mt(e=1){return qf(e)}function Fe(e,t=""){let n=F(),r=Oe(),o=e+ve,i=r.firstCreatePass?os(r,o,1,t,null):r.data[o],s=xm(r,n,i,t,e);n[o]=s,ki()&&es(r,n,s,i),Ut(i,!1)}var xm=(e,t,n,r,o)=>(Pi(!0),Bp(t[L],r));function Fr(e,t,n){let r=F(),o=am(r,e,t,n);return o!==ht&&Am(r,ft(),o),Fr}function Am(e,t,n){let r=Vc(t,e);Hp(e[L],r,n)}var Vn=null;function Rm(e){Vn!==null&&(e.defaultEncapsulation!==Vn.defaultEncapsulation||e.preserveWhitespaces!==Vn.preserveWhitespaces)||(Vn=e)}var Om=new v("");function Fm(e,t,n){let r=new gi(n);return Promise.resolve(r)}function lc(e){for(let t=e.length-1;t>=0;t--)if(e[t]!==void 0)return e[t]}var km=(()=>{class e{zone=I(R);changeDetectionScheduler=I(Ge);applicationRef=I(Re);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Pm({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new R(N(M({},Cl()),{scheduleInRootZone:n})),[{provide:R,useFactory:e},{provide:Wn,multi:!0,useFactory:()=>{let r=I(km,{optional:!0});return()=>r.initialize()}},{provide:Wn,multi:!0,useFactory:()=>{let r=I(Lm);return()=>{r.initialize()}}},t===!0?{provide:Du,useValue:!0}:[],{provide:Eu,useValue:n??yu}]}function Cl(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var Lm=(()=>{class e{subscription=new V;initialized=!1;zone=I(R);pendingTasks=I(wr);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{R.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{R.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Vm=(()=>{class e{appRef=I(Re);taskService=I(wr);ngZone=I(R);zonelessEnabled=I(vu);tracing=I(Mr,{optional:!0});disableScheduling=I(Du,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new V;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(or):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(I(Eu,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof ir||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?$a:Cu;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(or+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,$a(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function jm(){return typeof $localize<"u"&&$localize.locale||pr}var ls=new v("",{providedIn:"root",factory:()=>I(ls,y.Optional|y.SkipSelf)||jm()});var hr=new v(""),Bm=new v("");function xt(e){return!e.moduleRef}function Hm(e){let t=xt(e)?e.r3Injector:e.moduleRef.injector,n=t.get(R);return n.run(()=>{xt(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(Ee,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),xt(e)){let i=()=>t.destroy(),s=e.platformInjector.get(hr);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(hr);s.add(i),e.moduleRef.onDestroy(()=>{$n(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return Um(r,n,()=>{let i=t.get(vl);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(ls,pr);if(Mm(s||pr),!t.get(Bm,!0))return xt(e)?t.get(Re):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(xt(e)){let c=t.get(Re);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return $m(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function $m(e,t){let n=e.injector.get(Re);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new g(-403,!1);t.push(e)}function Um(e,t,n){try{let r=n();return Yt(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var _l=(()=>{class e{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(n){this._injector=n}bootstrapModuleFactory(n,r){let o=r?.scheduleInRootZone,i=()=>_p(r?.ngZone,N(M({},Cl({eventCoalescing:r?.ngZoneEventCoalescing,runCoalescing:r?.ngZoneRunCoalescing})),{scheduleInRootZone:o})),s=r?.ignoreChangesOutsideZone,a=[Pm({ngZoneFactory:i,ignoreChangesOutsideZone:s}),{provide:Ge,useExisting:Vm}],c=jg(n.moduleType,this.injector,a);return Hm({moduleRef:c,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(n,r=[]){let o=Dl({},r);return Fm(this.injector,o,n).then(i=>this.bootstrapModuleFactory(i,o))}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new g(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());let n=this._injector.get(hr,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(r){return new(r||e)(C(J))};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),ds=null;function Gm(e){if(ps())throw new g(400,!1);rm(),ds=e;let t=e.get(_l);return qm(e),t}function fs(e,t,n=[]){let r=`Platform: ${t}`,o=new v(r);return(i=[])=>{let s=ps();if(!s){let a=[...n,...i,{provide:o,useValue:!0}];s=e?.(a)??Gm(zm(a,r))}return Wm(o)}}function zm(e=[],t){return J.create({name:t,providers:[{provide:vr,useValue:"platform"},{provide:hr,useValue:new Set([()=>ds=null])},...e]})}function Wm(e){let t=ps();if(!t)throw new g(401,!1);return t}function ps(){return ds?.get(_l)??null}function qm(e){let t=e.get(Ui,null);Nc(e,()=>{t?.forEach(n=>n())})}var Ei=class{constructor(){}supports(t){return ml(t)}create(t){return new Ci(t)}},Zm=(e,t)=>t,Ci=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||Zm}forEachItem(t){let n;for(n=this._itHead;n!==null;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){let s=!r||n&&n.currentIndex<dc(r,o,i)?n:r,a=dc(s,o,i),c=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,s.previousIndex==null)o++;else{i||(i=[]);let u=a-o,l=c-o;if(u!=l){for(let p=0;p<u;p++){let d=p<i.length?i[p]:i[p]=0,h=d+p;l<=h&&h<u&&(i[p]=d+1)}let f=s.previousIndex;i[f]=l-u}}a!==c&&t(s,a,c)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;n!==null;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;n!==null;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;n!==null;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;n!==null;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;n!==null;n=n._nextIdentityChange)t(n)}diff(t){if(t==null&&(t=[]),!ml(t))throw new g(900,!1);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._itHead,r=!1,o,i,s;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,i,s,a),r=!0):(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)),n=n._next}else o=0,qg(t,a=>{s=this._trackByFn(o,a),n===null||!Object.is(n.trackById,s)?(n=this._mismatch(n,a,s,o),r=!0):(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return t===null?i=this._itTail:(i=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):(t=this._linkedRecords===null?null:this._linkedRecords.get(r,o),t!==null?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new _i(n,r),i,o)),t}_verifyReinsertion(t,n,r,o){let i=this._unlinkedRecords===null?null:this._unlinkedRecords.get(r,null);return i!==null?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;t!==null;){let n=t._next;this._addToRemovals(this._unlink(t)),t=n}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let o=t._prevRemoved,i=t._nextRemoved;return o===null?this._removalsHead=i:o._nextRemoved=i,i===null?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){let o=n===null?this._itHead:n._next;return t._next=o,t._prev=n,o===null?this._itTail=t:o._prev=t,n===null?this._itHead=t:n._next=t,this._linkedRecords===null&&(this._linkedRecords=new gr),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let n=t._prev,r=t._next;return n===null?this._itHead=r:n._next=r,r===null?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new gr),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}},_i=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,n){this.item=t,this.trackById=n}},wi=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;r!==null;r=r._nextDup)if((n===null||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){let n=t._prevDup,r=t._nextDup;return n===null?this._head=r:n._nextDup=r,r===null?this._tail=n:r._prevDup=n,this._head===null}},gr=class{map=new Map;put(t){let n=t.trackById,r=this.map.get(n);r||(r=new wi,this.map.set(n,r)),r.add(t)}get(t,n){let r=t,o=this.map.get(r);return o?o.get(t,n):null}remove(t){let n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function dc(e,t,n){let r=e.previousIndex;if(r===null)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}function fc(){return new hs([new Ei])}var hs=(()=>{class e{factories;static \u0275prov=T({token:e,providedIn:"root",factory:fc});constructor(n){this.factories=n}static create(n,r){if(r!=null){let o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||fc()),deps:[[e,new of,new rf]]}}find(n){let r=this.factories.find(o=>o.supports(n));if(r!=null)return r;throw new g(901,!1)}}return e})();var wl=fs(null,"core",[]),Il=(()=>{class e{constructor(n){}static \u0275fac=function(r){return new(r||e)(C(Re))};static \u0275mod=pe({type:e});static \u0275inj=de({})}return e})();function ke(e){return mo(e)}function kr(e,t){return lo(e,t?.equal)}var pc=class{[se];constructor(t){this[se]=t}destroy(){this[se].destroy()}};var he=new v("");var bl=null;function vt(){return bl}function gs(e){bl??=e}var Qt=class{};var ms=/\s+/,Ml=[],ys=(()=>{class e{_ngEl;_renderer;initialClasses=Ml;rawClass;stateMap=new Map;constructor(n,r){this._ngEl=n,this._renderer=r}set klass(n){this.initialClasses=n!=null?n.trim().split(ms):Ml}set ngClass(n){this.rawClass=typeof n=="string"?n.trim().split(ms):n}ngDoCheck(){for(let r of this.initialClasses)this._updateState(r,!0);let n=this.rawClass;if(Array.isArray(n)||n instanceof Set)for(let r of n)this._updateState(r,!0);else if(n!=null)for(let r of Object.keys(n))this._updateState(r,!!n[r]);this._applyStateDiff()}_updateState(n,r){let o=this.stateMap.get(n);o!==void 0?(o.enabled!==r&&(o.changed=!0,o.enabled=r),o.touched=!0):this.stateMap.set(n,{enabled:r,changed:!0,touched:!0})}_applyStateDiff(){for(let n of this.stateMap){let r=n[0],o=n[1];o.changed?(this._toggleClass(r,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(r,!1),this.stateMap.delete(r)),o.touched=!1}}_toggleClass(n,r){n=n.trim(),n.length>0&&n.split(ms).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(r){return new(r||e)(W(pt),W(is))};static \u0275dir=Wt({type:e,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return e})();var Pr=class{$implicit;ngForOf;index;count;constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return this.index===0}get last(){return this.index===this.count-1}get even(){return this.index%2===0}get odd(){return!this.even}},Vr=(()=>{class e{_viewContainer;_template;_differs;set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}_ngForOf=null;_ngForOfDirty=!0;_differ=null;_trackByFn;constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;let n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){let n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){let r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(o.previousIndex==null)r.createEmbeddedView(this._template,new Pr(o.item,this._ngForOf,-1,-1),s===null?void 0:s);else if(s==null)r.remove(i===null?void 0:i);else if(i!==null){let a=r.get(i);r.move(a,s),Sl(a,o)}});for(let o=0,i=r.length;o<i;o++){let a=r.get(o).context;a.index=o,a.count=i,a.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{let i=r.get(o.currentIndex);Sl(i,o)})}static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(W(xr),W(Nr),W(hs))};static \u0275dir=Wt({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}})}return e})();function Sl(e,t){e.context.$implicit=t.item}var vs=(()=>{class e{_viewContainer;_context=new Lr;_thenTemplateRef=null;_elseTemplateRef=null;_thenViewRef=null;_elseViewRef=null;constructor(n,r){this._viewContainer=n,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){Tl(n,!1),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){Tl(n,!1),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngIfUseIfTypeGuard;static ngTemplateGuard_ngIf;static ngTemplateContextGuard(n,r){return!0}static \u0275fac=function(r){return new(r||e)(W(xr),W(Nr))};static \u0275dir=Wt({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}})}return e})(),Lr=class{$implicit=null;ngIf=null};function Tl(e,t){if(e&&!e.createEmbeddedView)throw new g(2020,!1)}var Kt=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=pe({type:e});static \u0275inj=de({})}return e})();function Ds(e,t){t=encodeURIComponent(t);for(let n of e.split(";")){let r=n.indexOf("="),[o,i]=r==-1?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}var Es="browser",Nl="server";function jr(e){return e===Nl}var Jt=class{};var $r=new v(""),Is=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(o=>{o.manager=this}),this._plugins=n.slice().reverse()}addEventListener(n,r,o,i){return this._findPluginFor(r).addEventListener(n,r,o,i)}getZone(){return this._zone}_findPluginFor(n){let r=this._eventNameToPlugin.get(n);if(r)return r;if(r=this._plugins.find(i=>i.supports(n)),!r)throw new g(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(C($r),C(R))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),Xt=class{_doc;constructor(t){this._doc=t}manager},Br="ng-app-id";function xl(e){for(let t of e)t.remove()}function Al(e,t){let n=t.createElement("style");return n.textContent=e,n}function Km(e,t,n,r){let o=e.head?.querySelectorAll(`style[${Br}="${t}"],link[${Br}="${t}"]`);if(o)for(let i of o)i.removeAttribute(Br),i instanceof HTMLLinkElement?r.set(i.href.slice(i.href.lastIndexOf("/")+1),{usage:0,elements:[i]}):i.textContent&&n.set(i.textContent,{usage:0,elements:[i]})}function _s(e,t){let n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}var bs=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,this.isServer=jr(i),Km(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(let o of n)this.addUsage(o,this.inline,Al);r?.forEach(o=>this.addUsage(o,this.external,_s))}removeStyles(n,r){for(let o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){let i=r.get(n);i?i.usage++:r.set(n,{usage:1,elements:[...this.hosts].map(s=>this.addElement(s,o(n,this.doc)))})}removeUsage(n,r){let o=r.get(n);o&&(o.usage--,o.usage<=0&&(xl(o.elements),r.delete(n)))}ngOnDestroy(){for(let[,{elements:n}]of[...this.inline,...this.external])xl(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(let[r,{elements:o}]of this.inline)o.push(this.addElement(n,Al(r,this.doc)));for(let[r,{elements:o}]of this.external)o.push(this.addElement(n,_s(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),this.isServer&&r.setAttribute(Br,this.appId),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(C(he),C($i),C(Gi,8),C(zt))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),Cs={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/Math/MathML"},Ms=/%COMP%/g;var Ol="%COMP%",Jm=`_nghost-${Ol}`,Xm=`_ngcontent-${Ol}`,ey=!0,ty=new v("",{providedIn:"root",factory:()=>ey});function ny(e){return Xm.replace(Ms,e)}function ry(e){return Jm.replace(Ms,e)}function Fl(e,t){return t.map(n=>n.replace(Ms,e))}var Ss=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(n,r,o,i,s,a,c,u=null,l=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.platformId=a,this.ngZone=c,this.nonce=u,this.tracingService=l,this.platformIsServer=jr(a),this.defaultRenderer=new en(n,s,c,this.platformIsServer,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;this.platformIsServer&&r.encapsulation===le.ShadowDom&&(r=N(M({},r),{encapsulation:le.Emulated}));let o=this.getOrCreateRenderer(n,r);return o instanceof Hr?o.applyToHost(n):o instanceof tn&&o.applyStyles(),o}getOrCreateRenderer(n,r){let o=this.rendererByCompId,i=o.get(r.id);if(!i){let s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,f=this.platformIsServer,p=this.tracingService;switch(r.encapsulation){case le.Emulated:i=new Hr(c,u,r,this.appId,l,s,a,f,p);break;case le.ShadowDom:return new ws(c,u,n,r,s,a,this.nonce,f,p);default:i=new tn(c,u,r,l,s,a,f,p);break}o.set(r.id,i)}return i}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(n){this.rendererByCompId.delete(n)}static \u0275fac=function(r){return new(r||e)(C(Is),C(bs),C($i),C(ty),C(he),C(zt),C(R),C(Gi),C(Mr,8))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),en=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o,i){this.eventManager=t,this.doc=n,this.ngZone=r,this.platformIsServer=o,this.tracingService=i}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(Cs[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(Rl(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(Rl(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r=typeof t=="string"?this.doc.querySelector(t):t;if(!r)throw new g(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;let i=Cs[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){let o=Cs[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(Ce.DashCase|Ce.Important)?t.style.setProperty(n,r,o&Ce.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&Ce.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t!=null&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if(typeof t=="string"&&(t=vt().getGlobalEventTarget(this.doc,t),!t))throw new g(5102,!1);let i=this.decoratePreventDefault(r);return this.tracingService?.wrapEventListener&&(i=this.tracingService.wrapEventListener(t,n,i)),this.eventManager.addEventListener(t,n,i,o)}decoratePreventDefault(t){return n=>{if(n==="__ngUnwrap__")return t;(this.platformIsServer?this.ngZone.runGuarded(()=>t(n)):t(n))===!1&&n.preventDefault()}}};function Rl(e){return e.tagName==="TEMPLATE"&&e.content!==void 0}var ws=class extends en{sharedStylesHost;hostEl;shadowRoot;constructor(t,n,r,o,i,s,a,c,u){super(t,i,s,c,u),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let l=o.styles;l=Fl(o.id,l);for(let p of l){let d=document.createElement("style");a&&d.setAttribute("nonce",a),d.textContent=p,this.shadowRoot.appendChild(d)}let f=o.getExternalStyles?.();if(f)for(let p of f){let d=_s(p,i);a&&d.setAttribute("nonce",a),this.shadowRoot.appendChild(d)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(null,n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},tn=class extends en{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c,u){super(t,i,s,a,c),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let l=r.styles;this.styles=u?Fl(u,l):l,this.styleUrls=r.getExternalStyles?.(u)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},Hr=class extends tn{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c,u){let l=o+"-"+r.id;super(t,n,r,i,s,a,c,u,l),this.contentAttr=ny(l),this.hostAttr=ry(l)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){let r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}};var Ur=class e extends Qt{supportsDOMEvents=!0;static makeCurrent(){gs(new e)}onAndCancel(t,n,r,o){return t.addEventListener(n,r,o),()=>{t.removeEventListener(n,r,o)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.remove()}createElement(t,n){return n=n||this.getDefaultDocument(),n.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return n==="window"?window:n==="document"?t:n==="body"?t.body:null}getBaseHref(t){let n=oy();return n==null?null:iy(n)}resetBaseElement(){nn=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return Ds(document.cookie,t)}},nn=null;function oy(){return nn=nn||document.head.querySelector("base"),nn?nn.getAttribute("href"):null}function iy(e){return new URL(e,document.baseURI).pathname}var Gr=class{addToWindow(t){_e.getAngularTestability=(r,o=!0)=>{let i=t.findTestabilityInTree(r,o);if(i==null)throw new g(5103,!1);return i},_e.getAllAngularTestabilities=()=>t.getAllTestabilities(),_e.getAllAngularRootElements=()=>t.getAllRootElements();let n=r=>{let o=_e.getAllAngularTestabilities(),i=o.length,s=function(){i--,i==0&&r()};o.forEach(a=>{a.whenStable(s)})};_e.frameworkStabilizers||(_e.frameworkStabilizers=[]),_e.frameworkStabilizers.push(n)}findTestabilityInTree(t,n,r){if(n==null)return null;let o=t.getTestability(n);return o??(r?vt().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}},sy=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),Pl=(()=>{class e extends Xt{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o,i){return n.addEventListener(r,o,i),()=>this.removeEventListener(n,r,o,i)}removeEventListener(n,r,o,i){return n.removeEventListener(r,o,i)}static \u0275fac=function(r){return new(r||e)(C(he))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})(),kl=["alt","control","meta","shift"],ay={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},cy={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey},Ll=(()=>{class e extends Xt{constructor(n){super(n)}supports(n){return e.parseEventName(n)!=null}addEventListener(n,r,o,i){let s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>vt().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){let r=n.toLowerCase().split("."),o=r.shift();if(r.length===0||!(o==="keydown"||o==="keyup"))return null;let i=e._normalizeKey(r.pop()),s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),kl.forEach(u=>{let l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,r.length!=0||i.length===0)return null;let c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=ay[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),kl.forEach(s=>{if(s!==o){let a=cy[s];a(n)&&(i+=s+".")}}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return n==="esc"?"escape":n}static \u0275fac=function(r){return new(r||e)(C(he))};static \u0275prov=T({token:e,factory:e.\u0275fac})}return e})();function uy(){Ur.makeCurrent()}function ly(){return new Ee}function dy(){return Nu(document),document}var fy=[{provide:zt,useValue:Es},{provide:Ui,useValue:uy,multi:!0},{provide:he,useFactory:dy}],Ts=fs(wl,"browser",fy);var py=[{provide:Zt,useClass:Gr},{provide:as,useClass:Ar,deps:[R,Rr,Zt]},{provide:Ar,useClass:Ar,deps:[R,Rr,Zt]}],hy=[{provide:vr,useValue:"root"},{provide:Ee,useFactory:ly},{provide:$r,useClass:Pl,multi:!0,deps:[he]},{provide:$r,useClass:Ll,multi:!0,deps:[he]},Ss,bs,Is,{provide:at,useExisting:Ss},{provide:Jt,useClass:sy},[]],Ns=(()=>{class e{constructor(){}static \u0275fac=function(r){return new(r||e)};static \u0275mod=pe({type:e});static \u0275inj=de({providers:[...hy,...py],imports:[Kt,Il]})}return e})();function Fs(e){return e==null||ks(e)===0}function ks(e){return e==null?null:Array.isArray(e)||typeof e=="string"?e.length:e instanceof Set?e.size:null}var yy=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ze=class{static min(t){return vy(t)}static max(t){return Dy(t)}static required(t){return Ey(t)}static requiredTrue(t){return Cy(t)}static email(t){return _y(t)}static minLength(t){return wy(t)}static maxLength(t){return Iy(t)}static pattern(t){return by(t)}static nullValidator(t){return Ul()}static compose(t){return Yl(t)}static composeAsync(t){return Ql(t)}};function vy(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}function Dy(e){return t=>{if(t.value==null||e==null)return null;let n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}function Ey(e){return Fs(e.value)?{required:!0}:null}function Cy(e){return e.value===!0?null:{required:!0}}function _y(e){return Fs(e.value)||yy.test(e.value)?null:{email:!0}}function wy(e){return t=>{let n=t.value?.length??ks(t.value);return n===null||n===0?null:n<e?{minlength:{requiredLength:e,actualLength:n}}:null}}function Iy(e){return t=>{let n=t.value?.length??ks(t.value);return n!==null&&n>e?{maxlength:{requiredLength:e,actualLength:n}}:null}}function by(e){if(!e)return Ul;let t,n;return typeof e=="string"?(n="",e.charAt(0)!=="^"&&(n+="^"),n+=e,e.charAt(e.length-1)!=="$"&&(n+="$"),t=new RegExp(n)):(n=e.toString(),t=e),r=>{if(Fs(r.value))return null;let o=r.value;return t.test(o)?null:{pattern:{requiredPattern:n,actualValue:o}}}}function Ul(e){return null}function Gl(e){return e!=null}function zl(e){return Yt(e)?Nt(e):e}function Wl(e){let t={};return e.forEach(n=>{t=n!=null?M(M({},t),n):t}),Object.keys(t).length===0?null:t}function ql(e,t){return t.map(n=>n(e))}function My(e){return!e.validate}function Zl(e){return e.map(t=>My(t)?t:n=>t.validate(n))}function Yl(e){if(!e)return null;let t=e.filter(Gl);return t.length==0?null:function(n){return Wl(ql(n,t))}}function Sy(e){return e!=null?Yl(Zl(e)):null}function Ql(e){if(!e)return null;let t=e.filter(Gl);return t.length==0?null:function(n){let r=ql(n,t).map(zl);return To(r).pipe(me(Wl))}}function Ty(e){return e!=null?Ql(Zl(e)):null}function As(e){return e?Array.isArray(e)?e:[e]:[]}function Wr(e,t){return Array.isArray(e)?e.includes(t):e===t}function Vl(e,t){let n=As(t);return As(e).forEach(o=>{Wr(n,o)||n.push(o)}),n}function jl(e,t){return As(t).filter(n=>!Wr(e,n))}var Ny={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},TI=N(M({},Ny),{"[class.ng-submitted]":"isSubmitted"});var rn="VALID",zr="INVALID",Dt="PENDING",on="DISABLED",Ct=class{},qr=class extends Ct{value;source;constructor(t,n){super(),this.value=t,this.source=n}},sn=class extends Ct{pristine;source;constructor(t,n){super(),this.pristine=t,this.source=n}},an=class extends Ct{touched;source;constructor(t,n){super(),this.touched=t,this.source=n}},Et=class extends Ct{status;source;constructor(t,n){super(),this.status=t,this.source=n}};function Ps(e){return(Yr(e)?e.validators:e)||null}function xy(e){return Array.isArray(e)?Sy(e):e||null}function Ls(e,t){return(Yr(t)?t.asyncValidators:e)||null}function Ay(e){return Array.isArray(e)?Ty(e):e||null}function Yr(e){return e!=null&&!Array.isArray(e)&&typeof e=="object"}function Kl(e,t,n){let r=e.controls;if(!(t?Object.keys(r):r).length)throw new g(1e3,"");if(!r[n])throw new g(1001,"")}function Jl(e,t,n){e._forEachChild((r,o)=>{if(n[o]===void 0)throw new g(1002,"")})}var _t=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(t,n){this._assignValidators(t),this._assignAsyncValidators(n)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get status(){return ke(this.statusReactive)}set status(t){ke(()=>this.statusReactive.set(t))}_status=kr(()=>this.statusReactive());statusReactive=br(void 0);get valid(){return this.status===rn}get invalid(){return this.status===zr}get pending(){return this.status==Dt}get disabled(){return this.status===on}get enabled(){return this.status!==on}errors;get pristine(){return ke(this.pristineReactive)}set pristine(t){ke(()=>this.pristineReactive.set(t))}_pristine=kr(()=>this.pristineReactive());pristineReactive=br(!0);get dirty(){return!this.pristine}get touched(){return ke(this.touchedReactive)}set touched(t){ke(()=>this.touchedReactive.set(t))}_touched=kr(()=>this.touchedReactive());touchedReactive=br(!1);get untouched(){return!this.touched}_events=new ee;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._assignValidators(t)}setAsyncValidators(t){this._assignAsyncValidators(t)}addValidators(t){this.setValidators(Vl(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(Vl(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(jl(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(jl(t,this._rawAsyncValidators))}hasValidator(t){return Wr(this._rawValidators,t)}hasAsyncValidator(t){return Wr(this._rawAsyncValidators,t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){let n=this.touched===!1;this.touched=!0;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsTouched(N(M({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new an(!0,r))}markAllAsTouched(t={}){this.markAsTouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:this}),this._forEachChild(n=>n.markAllAsTouched(t))}markAsUntouched(t={}){let n=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:t.emitEvent,sourceControl:r})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,r),n&&t.emitEvent!==!1&&this._events.next(new an(!1,r))}markAsDirty(t={}){let n=this.pristine===!0;this.pristine=!1;let r=t.sourceControl??this;this._parent&&!t.onlySelf&&this._parent.markAsDirty(N(M({},t),{sourceControl:r})),n&&t.emitEvent!==!1&&this._events.next(new sn(!1,r))}markAsPristine(t={}){let n=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let r=t.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:t.emitEvent})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t,r),n&&t.emitEvent!==!1&&this._events.next(new sn(!0,r))}markAsPending(t={}){this.status=Dt;let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new Et(this.status,n)),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.markAsPending(N(M({},t),{sourceControl:n}))}disable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=on,this.errors=null,this._forEachChild(o=>{o.disable(N(M({},t),{onlySelf:!0}))}),this._updateValue();let r=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new qr(this.value,r)),this._events.next(new Et(this.status,r)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(N(M({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(t={}){let n=this._parentMarkedDirty(t.onlySelf);this.status=rn,this._forEachChild(r=>{r.enable(N(M({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(N(M({},t),{skipPristineCheck:n}),this),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(t,n){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine({},n),this._parent._updateTouched({},n))}setParent(t){this._parent=t}getRawValue(){return this.value}updateValueAndValidity(t={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let r=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===rn||this.status===Dt)&&this._runAsyncValidator(r,t.emitEvent)}let n=t.sourceControl??this;t.emitEvent!==!1&&(this._events.next(new qr(this.value,n)),this._events.next(new Et(this.status,n)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(N(M({},t),{sourceControl:n}))}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?on:rn}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t,n){if(this.asyncValidator){this.status=Dt,this._hasOwnPendingAsyncValidator={emitEvent:n!==!1};let r=zl(this.asyncValidator(this));this._asyncValidationSubscription=r.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:n,shouldHaveEmitted:t})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let t=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,t}return!1}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(n.emitEvent!==!1,this,n.shouldHaveEmitted)}get(t){let n=t;return n==null||(Array.isArray(n)||(n=n.split(".")),n.length===0)?null:n.reduce((r,o)=>r&&r._find(o),this)}getError(t,n){let r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t,n,r){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),(t||r)&&this._events.next(new Et(this.status,n)),this._parent&&this._parent._updateControlsErrors(t,n,r)}_initObservables(){this.valueChanges=new H,this.statusChanges=new H}_calculateStatus(){return this._allControlsDisabled()?on:this.errors?zr:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Dt)?Dt:this._anyControlsHaveStatus(zr)?zr:rn}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t,n){let r=!this._anyControlsDirty(),o=this.pristine!==r;this.pristine=r,this._parent&&!t.onlySelf&&this._parent._updatePristine(t,n),o&&this._events.next(new sn(this.pristine,n))}_updateTouched(t={},n){this.touched=this._anyControlsTouched(),this._events.next(new an(this.touched,n)),this._parent&&!t.onlySelf&&this._parent._updateTouched(t,n)}_onDisabledChange=[];_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){Yr(t)&&t.updateOn!=null&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){let n=this._parent&&this._parent.dirty;return!t&&!!n&&!this._parent._anyControlsDirty()}_find(t){return null}_assignValidators(t){this._rawValidators=Array.isArray(t)?t.slice():t,this._composedValidatorFn=xy(this._rawValidators)}_assignAsyncValidators(t){this._rawAsyncValidators=Array.isArray(t)?t.slice():t,this._composedAsyncValidatorFn=Ay(this._rawAsyncValidators)}},Zr=class extends _t{constructor(t,n,r){super(Ps(n),Ls(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){Jl(this,!0,t),Object.keys(t).forEach(r=>{Kl(this,!0,r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(Object.keys(t).forEach(r=>{let o=this.controls[r];o&&o.patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t?t[o]:null,{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>r._syncPendingControls()?!0:n);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){Object.keys(this.controls).forEach(n=>{let r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(let[n,r]of Object.entries(this.controls))if(this.contains(n)&&t(r))return!0;return!1}_reduceValue(){let t={};return this._reduceChildren(t,(n,r,o)=>((r.enabled||this.disabled)&&(n[o]=r.value),n))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(let t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(t){return this.controls.hasOwnProperty(t)?this.controls[t]:null}};var Rs=class extends Zr{};var Ry=new v("",{providedIn:"root",factory:()=>Xl}),Xl="always";function Bl(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Hl(e){return typeof e=="object"&&e!==null&&Object.keys(e).length===2&&"value"in e&&"disabled"in e}var xs=class extends _t{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(t=null,n,r){super(Ps(n),Ls(r,n)),this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Yr(n)&&(n.nonNullable||n.initialValueIsDefault)&&(Hl(t)?this.defaultValue=t.value:this.defaultValue=t)}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&n.emitModelToViewChange!==!1&&this._onChange.forEach(r=>r(this.value,n.emitViewToModelChange!==!1)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=this.defaultValue,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Bl(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Bl(this._onDisabledChange,t)}_forEachChild(t){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(t){Hl(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}};var Oy=new v("");var Fy=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=pe({type:e});static \u0275inj=de({})}return e})(),Os=class extends _t{constructor(t,n,r){super(Ps(n),Ls(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(t){return this.controls[this._adjustIndex(t)]}push(t,n={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(t,n,r={}){this.controls.splice(t,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,n={}){let r=this._adjustIndex(t);r<0&&(r=0),this.controls[r]&&this.controls[r]._registerOnCollectionChange(()=>{}),this.controls.splice(r,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(t,n,r={}){let o=this._adjustIndex(t);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),n&&(this.controls.splice(o,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,n={}){Jl(this,!1,t),t.forEach((r,o)=>{Kl(this,!1,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){t!=null&&(t.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t=[],n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n,this),this._updateTouched(n,this),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(t=>t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_adjustIndex(t){return t<0?t+this.length:t}_syncPendingControls(){let t=this.controls.reduce((n,r)=>r._syncPendingControls()?!0:n,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_forEachChild(t){this.controls.forEach((n,r)=>{t(n,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(n=>n.enabled&&t(n))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_allControlsDisabled(){for(let t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}_find(t){return this.at(t)??null}};function $l(e){return!!e&&(e.asyncValidators!==void 0||e.validators!==void 0||e.updateOn!==void 0)}var ed=(()=>{class e{useNonNullable=!1;get nonNullable(){let n=new e;return n.useNonNullable=!0,n}group(n,r=null){let o=this._reduceControls(n),i={};return $l(r)?i=r:r!==null&&(i.validators=r.validator,i.asyncValidators=r.asyncValidator),new Zr(o,i)}record(n,r=null){let o=this._reduceControls(n);return new Rs(o,r)}control(n,r,o){let i={};return this.useNonNullable?($l(r)?i=r:(i.validators=r,i.asyncValidators=o),new xs(n,N(M({},i),{nonNullable:!0}))):new xs(n,r,o)}array(n,r,o){let i=n.map(s=>this._createControl(s));return new Os(i,r,o)}_reduceControls(n){let r={};return Object.keys(n).forEach(o=>{r[o]=this._createControl(n[o])}),r}_createControl(n){if(n instanceof xs)return n;if(n instanceof _t)return n;if(Array.isArray(n)){let r=n[0],o=n.length>1?n[1]:null,i=n.length>2?n[2]:null;return this.control(r,o,i)}else return this.control(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=T({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var Qr=(()=>{class e{static withConfig(n){return{ngModule:e,providers:[{provide:Oy,useValue:n.warnOnNgModelWithFormControl??"always"},{provide:Ry,useValue:n.callSetDisabledState??Xl}]}}static \u0275fac=function(r){return new(r||e)};static \u0275mod=pe({type:e});static \u0275inj=de({imports:[Fy]})}return e})();var Py={schedule(e,t){let n=setTimeout(e,t);return()=>clearTimeout(n)}};function Ly(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}function Vy(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}var Vs;function jy(e,t){if(!Vs){let n=Element.prototype;Vs=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE?Vs.call(e,t):!1}function By(e){let t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[Ly(r)]=[n,o]}),t}function Hy(e,t){return t.get(qe).resolveComponentFactory(e).inputs}function $y(e,t){let n=e.childNodes,r=t.map(()=>[]),o=-1;t.some((i,s)=>i==="*"?(o=s,!0):!1);for(let i=0,s=n.length;i<s;++i){let a=n[i],c=Uy(a,t,o);c!==-1&&r[c].push(a)}return r}function Uy(e,t,n){let r=n;return Vy(e)&&t.some((o,i)=>o!=="*"&&jy(e,o)?(r=i,!0):!1),r}var Gy=10,js=class{componentFactory;inputMap=new Map;constructor(t,n){this.componentFactory=n.get(qe).resolveComponentFactory(t);for(let r of this.componentFactory.inputs)this.inputMap.set(r.propName,r.templateName)}create(t){return new Bs(this.componentFactory,t,this.inputMap)}},Bs=class{componentFactory;injector;inputMap;eventEmitters=new Tt(1);events=this.eventEmitters.pipe(xo(t=>No(...t)));componentRef=null;scheduledDestroyFn=null;initialInputValues=new Map;ngZone;elementZone;appRef;cdScheduler;constructor(t,n,r){this.componentFactory=t,this.injector=n,this.inputMap=r,this.ngZone=this.injector.get(R),this.appRef=this.injector.get(Re),this.cdScheduler=n.get(Ge),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(this.scheduledDestroyFn!==null){this.scheduledDestroyFn(),this.scheduledDestroyFn=null;return}this.componentRef===null&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{this.componentRef===null||this.scheduledDestroyFn!==null||(this.scheduledDestroyFn=Py.schedule(()=>{this.componentRef!==null&&(this.componentRef.destroy(),this.componentRef=null)},Gy))})}getInputValue(t){return this.runInZone(()=>this.componentRef===null?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n){if(this.componentRef===null){this.initialInputValues.set(t,n);return}this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,n),il(this.componentRef.hostView)&&(sl(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))})}initializeComponent(t){let n=J.create({providers:[],parent:this.injector}),r=$y(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(n,r,t),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.appRef.attachView(this.componentRef.hostView),this.componentRef.hostView.detectChanges()}initializeInputs(){for(let[t,n]of this.initialInputValues)this.setInputValue(t,n);this.initialInputValues.clear()}initializeOutputs(t){let n=this.componentFactory.outputs.map(({propName:r,templateName:o})=>{let i=t.instance[r];return new A(s=>{let a=i.subscribe(c=>s.next({name:o,value:c}));return()=>a.unsubscribe()})});this.eventEmitters.next(n)}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}},Hs=class extends HTMLElement{ngElementEventsSubscription=null};function td(e,t){let n=Hy(e,t.injector),r=t.strategyFactory||new js(e,t.injector),o=By(n);class i extends Hs{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){let a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:c,transform:u})=>{if(!this.hasOwnProperty(c))return;let l=this[c];delete this[c],a.setInputValue(c,l,u)})}return this._ngElementStrategy}_ngElementStrategy;constructor(a){super(),this.injector=a}attributeChangedCallback(a,c,u,l){let[f,p]=o[a];this.ngElementStrategy.setInputValue(f,u,p)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{let c=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(c)})}}return n.forEach(({propName:s,transform:a})=>{Object.defineProperty(i.prototype,s,{get(){return this.ngElementStrategy.getInputValue(s)},set(c){this.ngElementStrategy.setInputValue(s,c,a)},configurable:!0,enumerable:!0})}),i}function zy(e,t){if(e&1&&(G(0,"div",19)(1,"div",20),Fe(2),z(),G(3,"div",21)(4,"small",22),Fe(5),z()()()),e&2){let n=t.$implicit,r=t.index,o=mt(2);fe(),Se("ngClass",r<=o.currentIndex?"ts-main-bg text-white shadow":"bg-light text-muted border"),fe(),Fr(" ",n.ui," "),fe(2),Se("ngClass",r<=o.currentIndex?"ts-main-text fw-bold":"text-muted"),fe(),Fr(" ",o.getStepTitle(n.internal)," ")}}function Wy(e,t){e&1&&(G(0,"button",23),Fe(1," Siguiente "),z())}function qy(e,t){e&1&&(G(0,"button",23),Fe(1," Agendar "),z())}function Zy(e,t){if(e&1){let n=El();G(0,"div",1)(1,"div",2)(2,"div",3)(3,"button",4),gt("click",function(){Cr(n);let o=mt();return _r(o.cancel.emit())}),tu(),G(4,"svg",5),Or(5,"path",6),z()(),nu(),G(6,"h3",7),Fe(7," Agendar cita "),z(),G(8,"button",8),gt("click",function(){Cr(n);let o=mt();return _r(o.onCancel())}),Fe(9," Cancelar "),z()()(),G(10,"div",9)(11,"div",10)(12,"div",11),Or(13,"div",12),z(),G(14,"div",13),qt(15,zy,6,4,"div",14),z()(),G(16,"div",15)(17,"div",16)(18,"button",17),gt("click",function(){Cr(n);let o=mt();return _r(o.onPrevious())}),Fe(19," Anterior "),z(),qt(20,Wy,2,0,"button",18)(21,qy,2,0,"button",18),z()()()()}if(e&2){let n=mt();fe(13),us("width",(n.totalSteps>1?n.currentIndex/(n.totalSteps-1)*100:0)+"%"),fe(2),Se("ngForOf",n.displayedSteps),fe(3),Se("disabled",n.currentIndex===0),fe(2),Se("ngIf",!n.isLastStep()),fe(),Se("ngIf",n.isLastStep())}}var cn=class e{constructor(t,n){this.fb=t;this.elementRef=n;this.currentIndex=0,this.viewMode="form",console.log("Constructor - appName inicial:",this.appName)}appName="";minPasswordLength=6;cancel=new H;onCancel(){console.log("\u274C Cancelar llamado"),this.emitEvent("cancel",{app:this.appName,cancelled:!0,timestamp:new Date().toISOString()})}emitEvent(t,n){let r=new CustomEvent(t,{detail:n,bubbles:!0,composed:!0});this.elementRef.nativeElement.dispatchEvent(r),console.log(`\u{1F4E4} Evento "${t}" emitido:`,n)}formSubmitted=new H;form;patientBasicForm;currentIndex=0;viewMode="form";ngOnInit(){console.log("ngOnInit - appName:",this.appName),console.log("ngOnInit - minPasswordLength:",this.minPasswordLength);try{(!this.minPasswordLength||this.minPasswordLength<1)&&(this.minPasswordLength=6),this.form=this.fb.group({email:["",[Ze.required,Ze.email]],password:["",[Ze.required,Ze.minLength(this.minPasswordLength)]]}),this.currentIndex=1,this.buildPatientBasicForm(),this.patientBasicForm&&this.patientBasicForm.get("autonomyCondition")?.valueChanges.subscribe(()=>{try{let t=this.displayedSteps;t&&this.currentIndex>=t.length&&(this.currentIndex=t.length-1)}catch(t){console.error("Error en subscription de autonomyCondition:",t)}})}catch(t){console.error("Error en ngOnInit:",t)}}buildPatientBasicForm(){this.patientBasicForm=this.fb.group({documentType:[""],documentNumber:[""],autonomyCondition:["autonomous"],firstName:[""],secondName:[""],firstSurname:[""],secondSurname:[""],birthDate:[""],issueDate:[""],gender:[""],maritalStatus:[""],email:[""],phone:[""],confirmEmail:[""],confirmPhone:[""],validateAutonomous:[!1],lockIdentity:[!1]})}submit(){console.log("Submit llamado"),this.form.valid?(console.log("Formulario v\xE1lido, emitiendo evento"),this.emitEvent("formSubmitted",{app:this.appName,data:this.form.value})):console.log("Formulario inv\xE1lido")}get currentStepInternal(){try{let t=this.displayedSteps;return t&&t.length>0&&this.currentIndex>=0&&this.currentIndex<t.length?t[this.currentIndex]?.internal??1:1}catch(t){return console.error("Error en currentStepInternal:",t),1}}isLastStep(){try{return this.currentIndex===this.totalSteps-1}catch(t){return console.error("Error en isLastStep:",t),!1}}onPrevious(){this.currentIndex>0&&this.currentIndex--}getStepTitle(t){let n;return(this.patientBasicData?.autonomyCondition||"autonomous")==="autonomous"?n={1:"Datos de la cita",2:"Datos b\xE1sicos del paciente",3:"Ubicaci\xF3n y residencia del paciente",6:"Aceptaci\xF3n de t\xE9rminos"}:n={1:"Datos de la cita",2:"Datos b\xE1sicos del paciente",3:"Ubicaci\xF3n y residencia del paciente",4:"Informaci\xF3n del tutor",5:"Ubicaci\xF3n y residencia del tutor",6:"Acompa\xF1ante y aceptaci\xF3n de t\xE9rminos"},n[t]??""}get patientBasicData(){if(!this.patientBasicForm)return{documentType:"",documentNumber:"",autonomyCondition:"autonomous",firstName:"",secondName:"",firstSurname:"",secondSurname:"",birthDate:"",issueDate:"",gender:"",maritalStatus:""};try{return this.patientBasicForm.getRawValue()}catch(t){return console.error("Error al obtener patientBasicData:",t),{documentType:"",documentNumber:"",autonomyCondition:"autonomous",firstName:"",secondName:"",firstSurname:"",secondSurname:"",birthDate:"",issueDate:"",gender:"",maritalStatus:""}}}get displayedSteps(){if(!this.patientBasicForm)return[{ui:1,internal:1},{ui:2,internal:2},{ui:3,internal:3},{ui:4,internal:6}];try{return(this.patientBasicData?.autonomyCondition||"autonomous")==="autonomous"?[{ui:1,internal:1},{ui:2,internal:2},{ui:3,internal:3},{ui:4,internal:6}]:[{ui:1,internal:1},{ui:2,internal:2},{ui:3,internal:3},{ui:4,internal:4},{ui:5,internal:5},{ui:6,internal:6}]}catch(t){return console.error("Error en displayedSteps:",t),[{ui:1,internal:1},{ui:2,internal:2},{ui:3,internal:3},{ui:4,internal:6}]}}get totalSteps(){try{let t=this.displayedSteps;return t?t.length:1}catch(t){return console.error("Error en totalSteps:",t),1}}static \u0275fac=function(n){return new(n||e)(W(ed),W(pt))};static \u0275cmp=pl({type:e,selectors:[["app-formulario-citas"]],inputs:{appName:"appName",minPasswordLength:"minPasswordLength"},outputs:{cancel:"cancel",formSubmitted:"formSubmitted"},decls:1,vars:1,consts:[["class","card shadow-sm",4,"ngIf"],[1,"card","shadow-sm"],[1,"card-header","text-white","ts-header"],[1,"d-flex","align-items-center","justify-content-between"],["type","button","aria-label","Volver",1,"btn","btn-link","p-0","me-2","ts-back-icon",3,"click"],["width","20","height","20","viewBox","0 0 24 24"],["d","M15 19l-7-7 7-7","fill","none","stroke","currentColor","stroke-width","2","stroke-linecap","round","stroke-linejoin","round"],[1,"h5","mb-0","fw-bold","flex-grow-1"],[1,"btn","btn-outline-light","btn-sm","ms-3",3,"click"],[1,"card-body"],[1,"d-none","d-sm-block","position-relative"],[1,"progress","position-absolute",2,"top","20px","height","2px","width","100%"],[1,"progress-bar","ts-main-bg"],[1,"d-flex","justify-content-between","position-relative",2,"z-index","10%"],["class","d-flex flex-column align-items-center",4,"ngFor","ngForOf"],[1,"card-footer","bg-white"],[1,"d-flex","justify-content-between"],[1,"btn","btn-outline-secondary",3,"click","disabled"],["class","btn",4,"ngIf"],[1,"d-flex","flex-column","align-items-center"],[1,"rounded-circle","d-flex","align-items-center","justify-content-center","fw-bold",2,"width","40px","height","40px","font-size","14px",3,"ngClass"],[1,"mt-2","text-center",2,"max-width","120px"],[1,"d-block","lh-sm",3,"ngClass"],[1,"btn"]],template:function(n,r){n&1&&qt(0,Zy,22,6,"div",0),n&2&&Se("ngIf",r.viewMode==="form")},dependencies:[ys,Vr,vs,Qr],styles:['@charset "UTF-8";.ts-main-bg[_ngcontent-%COMP%]{background-color:#08203c!important;border-color:#08203c!important}.ts-main-text[_ngcontent-%COMP%]{color:#08203c!important}.ts-header[_ngcontent-%COMP%]{background-color:#08203c}']})};var Kr=class e{constructor(t){this.injector=t}ngDoBootstrap(){if(customElements.get("todosalud-webc-form-citas"))console.log("\u2139\uFE0F Web Component ya estaba registrado");else try{console.log("\u{1F504} Iniciando registro del Web Component...");let t=td(cn,{injector:this.injector});customElements.define("todosalud-webc-form-citas",t),console.log('\u2705 Web Component "todosalud-webc-form-citas" registrado exitosamente')}catch(t){console.error("\u274C Error al registrar Web Component:",t),t instanceof Error&&console.error("Error details:",{message:t.message,stack:t.stack,name:t.name})}}static \u0275fac=function(n){return new(n||e)(C(J))};static \u0275mod=pe({type:e});static \u0275inj=de({imports:[Ns,Kt,Qr,cn]})};Ts().bootstrapModule(Kr,{ngZone:"noop"}).then(()=>{console.log("\u2705 Angular bootstrap completado")}).catch(e=>{console.error("\u274C Error en bootstrap de Angular:",e),e instanceof Error&&console.error("Stack:",e.stack)});
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/* Estilos extraídos de todos los componentes del proyecto */
|
|
2
|
+
|
|
3
|
+
/* Estilos globales (src/styles.scss) */
|
|
4
|
+
/* You can add global styles to this file, and also import other style files */
|
|
5
|
+
/* Importar estilos del componente para que se incluyan en el build */
|
|
6
|
+
|
|
7
|
+
/* Estilos de app\formulario-citas\formulario-citas.component.scss */
|
|
8
|
+
/* Colores del stepper (círculo, barra y texto activo) */
|
|
9
|
+
.ts-main-bg {
|
|
10
|
+
background-color: #08203C !important;
|
|
11
|
+
border-color: #08203C !important;
|
|
12
|
+
}
|
|
13
|
+
.ts-main-text {
|
|
14
|
+
color: #08203C !important;
|
|
15
|
+
}
|
|
16
|
+
.ts-header {
|
|
17
|
+
background-color: #08203C;
|
|
18
|
+
}
|
|
19
|
+
|
|
@@ -1,10 +1,17 @@
|
|
|
1
1
|
// Loader para el Web Component
|
|
2
|
-
// Este archivo carga
|
|
2
|
+
// Este archivo carga el CSS, polyfills y el main en el orden correcto
|
|
3
3
|
(function() {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
// Cargar CSS primero
|
|
5
|
+
function loadCSS(href) {
|
|
6
|
+
return new Promise((resolve, reject) => {
|
|
7
|
+
const link = document.createElement('link');
|
|
8
|
+
link.rel = 'stylesheet';
|
|
9
|
+
link.href = href;
|
|
10
|
+
link.onload = resolve;
|
|
11
|
+
link.onerror = reject;
|
|
12
|
+
document.head.appendChild(link);
|
|
13
|
+
});
|
|
14
|
+
}
|
|
8
15
|
|
|
9
16
|
function loadScript(src) {
|
|
10
17
|
return new Promise((resolve, reject) => {
|
|
@@ -17,8 +24,17 @@
|
|
|
17
24
|
}
|
|
18
25
|
|
|
19
26
|
async function loadAll() {
|
|
20
|
-
|
|
21
|
-
|
|
27
|
+
try {
|
|
28
|
+
// 1. Cargar CSS primero
|
|
29
|
+
await loadCSS('./todosalud-webc-form-citas.css');
|
|
30
|
+
|
|
31
|
+
// 2. Luego cargar polyfills
|
|
32
|
+
await loadScript('./todosalud-webc-form-citas-polyfills.js');
|
|
33
|
+
|
|
34
|
+
// 3. Finalmente cargar main
|
|
35
|
+
await loadScript('./todosalud-webc-form-citas-main.js');
|
|
36
|
+
} catch (error) {
|
|
37
|
+
console.error('Error al cargar el Web Component:', error);
|
|
22
38
|
}
|
|
23
39
|
}
|
|
24
40
|
|