@qaecy/cue-ui 0.0.5 → 0.0.6

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
@@ -5,12 +5,12 @@ Drop them into any HTML page — no build step required.
5
5
 
6
6
  ## Components
7
7
 
8
- | Custom element | Import path | Description |
9
- | ------------------------ | ------------------------------- | --------------------------------------------------------------------------------- |
10
- | `<cue-card>` | `@qaecy/cue-ui/card` | Reusable card container with variants, padding, and optional shadow |
11
- | `<cue-logo>` | `@qaecy/cue-ui/logo` | Animated QAECY logo |
12
- | `<cue-document-list-wc>` | `@qaecy/cue-ui/document-list` | Lazy document list that fetches metadata internally from Cue SDK state |
13
- | `<cue-document-viewer>` | `@qaecy/cue-ui/document-viewer` | Document viewer with Cue SDK integration (PDF, BIM, CAD, images, spreadsheets, …) |
8
+ | Custom element | Import path | Description |
9
+ | ----------------------- | ------------------------------- | --------------------------------------------------------------------------------- |
10
+ | `<cue-card>` | `@qaecy/cue-ui/card` | Reusable card container with variants, padding, and optional shadow |
11
+ | `<cue-logo>` | `@qaecy/cue-ui/logo` | Animated QAECY logo |
12
+ | `<cue-document-list>` | `@qaecy/cue-ui/document-list` | Lazy document list that fetches metadata internally from Cue SDK state |
13
+ | `<cue-document-viewer>` | `@qaecy/cue-ui/document-viewer` | Document viewer with Cue SDK integration (PDF, BIM, CAD, images, spreadsheets, …) |
14
14
 
15
15
  ---
16
16
 
@@ -47,10 +47,17 @@ Both components and the Cue SDK are available on [jsDelivr](https://www.jsdelivr
47
47
  <!-- Document viewer (populated via JS below) -->
48
48
  <div id="viewer-host" style="flex:1; display:contents;"></div>
49
49
 
50
- <!-- 1. Zone.js (Angular runtime requirement) -->
51
- <script src="https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/document-viewer/polyfills.js"></script>
52
-
53
- <!-- 2. Cue SDK -->
50
+ <!-- 1. Load components (each is a self-contained single-file bundle) -->
51
+ <script
52
+ src="https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/logo/index.js"
53
+ type="module"
54
+ ></script>
55
+ <script
56
+ src="https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/document-viewer/index.js"
57
+ type="module"
58
+ ></script>
59
+
60
+ <!-- 2. Cue SDK + app logic -->
54
61
  <script type="module">
55
62
  import { Cue } from 'https://cdn.jsdelivr.net/npm/@qaecy/cue-sdk/dist/index.esm.js';
56
63
 
@@ -58,31 +65,17 @@ Both components and the Cue SDK are available on [jsDelivr](https://www.jsdelivr
58
65
  const cue = new Cue();
59
66
  await cue.auth.signIn('google');
60
67
 
61
- // 4. Mount the logo web component
62
- const logoPolyfills = document.createElement('script');
63
- logoPolyfills.src = 'https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/logo/polyfills.js';
64
- document.head.appendChild(logoPolyfills);
65
-
66
- const logoScript = document.createElement('script');
67
- logoScript.src = 'https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/logo/main.js';
68
- document.head.appendChild(logoScript);
69
-
70
- // 5. Mount the document viewer
71
- const dvScript = document.createElement('script');
72
- dvScript.src = 'https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/document-viewer/main.js';
73
- dvScript.onload = () => {
74
- customElements.whenDefined('cue-document-viewer').then(() => {
75
- const viewer = document.createElement('cue-document-viewer');
76
-
77
- // Required: authenticated SDK instance (must be set as a property, not an attribute)
78
- viewer.cue = cue;
79
- viewer.uuid = 'your-document-uuid'; // or 'uuid?page=3' to open at a page
80
- viewer.projectId = 'your-project-id';
81
-
82
- document.getElementById('viewer-host').appendChild(viewer);
83
- });
84
- };
85
- document.body.appendChild(dvScript);
68
+ // 4. Mount the document viewer once the custom element is registered
69
+ await customElements.whenDefined('cue-document-viewer');
70
+
71
+ const viewer = document.createElement('cue-document-viewer');
72
+
73
+ // Required: authenticated SDK instance (must be set as a property, not an attribute)
74
+ viewer.cue = cue;
75
+ viewer.uuid = 'your-document-uuid'; // or 'uuid?page=3' to open at a page
76
+ viewer.projectId = 'your-project-id';
77
+
78
+ document.getElementById('viewer-host').appendChild(viewer);
86
79
  </script>
87
80
  </body>
88
81
  </html>
@@ -97,7 +90,7 @@ Renders the animated QAECY logo. Adapts automatically to light/dark mode.
97
90
  | Property / attribute | Type | Default | Description |
98
91
  | -------------------- | ------------------- | ------- | -------------------------------- |
99
92
  | `size` | `'s' \| 'm' \| 'l'` | `'m'` | Size preset |
100
- | `active` | `boolean` | `false` | Triggers the draw animation once |
93
+ | `active` | `boolean` | `true` | Triggers the draw animation once |
101
94
  | `continuous` | `boolean` | `false` | Loops the draw animation |
102
95
 
103
96
  ```html
@@ -111,11 +104,10 @@ Renders the animated QAECY logo. Adapts automatically to light/dark mode.
111
104
  <cue-logo continuous></cue-logo>
112
105
  ```
113
106
 
114
- > **Script tags needed**
107
+ > **Script tag needed**
115
108
  >
116
109
  > ```html
117
- > <script src="https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/logo/polyfills.js"></script>
118
- > <script src="https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/logo/main.js"></script>
110
+ > <script src="https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/logo/index.js" type="module"></script>
119
111
  > ```
120
112
 
121
113
  ---
@@ -139,11 +131,10 @@ Renders the core Cue card container as a standalone web component.
139
131
  </cue-card>
140
132
  ```
141
133
 
142
- > **Script tags needed**
134
+ > **Script tag needed**
143
135
  >
144
136
  > ```html
145
- > <script src="https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/card/polyfills.js"></script>
146
- > <script src="https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/card/main.js"></script>
137
+ > <script src="https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/card/index.js" type="module"></script>
147
138
  > <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/card/styles.css" />
148
139
  > ```
149
140
 
@@ -164,11 +155,13 @@ Document metadata caching is also managed by the SDK; the component reuses SDK-o
164
155
 
165
156
  Supported file types: PDF, IFC/BIM, DXF/CAD, images (PNG, JPG, SVG, …), Markdown, plain text, CSV/XLSX spreadsheets.
166
157
 
167
- > **Script tags needed**
158
+ > **Script tag needed**
168
159
  >
169
160
  > ```html
170
- > <script src="https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/document-viewer/polyfills.js"></script>
171
- > <script src="https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/document-viewer/main.js"></script>
161
+ > <script
162
+ > src="https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/document-viewer/index.js"
163
+ > type="module"
164
+ > ></script>
172
165
  > <link
173
166
  > rel="stylesheet"
174
167
  > href="https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/document-viewer/styles.css"
@@ -177,7 +170,7 @@ Supported file types: PDF, IFC/BIM, DXF/CAD, images (PNG, JPG, SVG, …), Markdo
177
170
 
178
171
  ---
179
172
 
180
- ## `<cue-document-list-wc>`
173
+ ## `<cue-document-list>`
181
174
 
182
175
  Renders a lazy-loaded document table. Pass a `projectId`, `uuids`, and `sdkState`; the component requests metadata and categories internally.
183
176
 
@@ -202,7 +195,7 @@ The component emits the same row click outputs as the internal document list (`c
202
195
  Custom menu items are appended after the standard ones:
203
196
 
204
197
  ```js
205
- const list = document.querySelector('cue-document-list-wc');
198
+ const list = document.querySelector('cue-document-list');
206
199
 
207
200
  list.customMenuItems = [
208
201
  {
@@ -222,11 +215,13 @@ list.customMenuItems = [
222
215
  ];
223
216
  ```
224
217
 
225
- > **Script tags needed**
218
+ > **Script tag needed**
226
219
  >
227
220
  > ```html
228
- > <script src="https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/document-list/polyfills.js"></script>
229
- > <script src="https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/document-list/main.js"></script>
221
+ > <script
222
+ > src="https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/document-list/index.js"
223
+ > type="module"
224
+ > ></script>
230
225
  > <link
231
226
  > rel="stylesheet"
232
227
  > href="https://cdn.jsdelivr.net/npm/@qaecy/cue-ui/document-list/styles.css"
package/card/index.js ADDED
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e,v={},_={};function n(e){var f=_[e];if(void 0!==f)return f.exports;var r=_[e]={exports:{}};return v[e](r,r.exports,n),r.exports}n.m=v,e=[],n.O=(f,r,c,u)=>{if(!r){var s=1/0;for(a=0;a<e.length;a++){for(var[r,c,u]=e[a],i=!0,l=0;l<r.length;l++)(!1&u||s>=u)&&Object.keys(n.O).every(p=>n.O[p](r[l]))?r.splice(l--,1):(i=!1,u<s&&(s=u));if(i){e.splice(a--,1);var o=c();void 0!==o&&(f=o)}}return f}u=u||0;for(var a=e.length;a>0&&e[a-1][2]>u;a--)e[a]=e[a-1];e[a]=[r,c,u]},n.o=(e,f)=>Object.prototype.hasOwnProperty.call(e,f),(()=>{var e={121:0};n.O.j=c=>0===e[c];var f=(c,u)=>{var l,o,[a,s,i]=u,t=0;if(a.some(h=>0!==e[h])){for(l in s)n.o(s,l)&&(n.m[l]=s[l]);if(i)var d=i(n)}for(c&&c(u);t<a.length;t++)n.o(e,o=a[t])&&e[o]&&e[o][0](),e[o]=0;return n.O(d)},r=self.webpackChunkcue_ui=self.webpackChunkcue_ui||[];r.forEach(f.bind(null,0)),r.push=f.bind(null,r.push.bind(r))})()})();"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[461],{935(){const te=globalThis;function ee(e){return(te.__Zone_symbol_prefix||"__zone_symbol__")+e}const pe=Object.getOwnPropertyDescriptor,Oe=Object.defineProperty,Ne=Object.getPrototypeOf,dt=Object.create,_t=Array.prototype.slice,Ze="addEventListener",Le="removeEventListener",Ie=ee(Ze),Me=ee(Le),ae="true",le="false",me=ee("");function Ae(e,r){return Zone.current.wrap(e,r)}function je(e,r,c,t,i){return Zone.current.scheduleMacroTask(e,r,c,t,i)}const j=ee,Pe=typeof window<"u",ye=Pe?window:void 0,$=Pe&&ye||globalThis;function He(e,r){for(let c=e.length-1;c>=0;c--)"function"==typeof e[c]&&(e[c]=Ae(e[c],r+"_"+c));return e}function Ue(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&typeof e.set>"u")}const We=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,Re=!("nw"in $)&&typeof $.process<"u"&&"[object process]"===$.process.toString(),xe=!Re&&!We&&!(!Pe||!ye.HTMLElement),qe=typeof $.process<"u"&&"[object process]"===$.process.toString()&&!We&&!(!Pe||!ye.HTMLElement),we={},gt=j("enable_beforeunload"),Xe=function(e){if(!(e=e||$.event))return;let r=we[e.type];r||(r=we[e.type]=j("ON_PROPERTY"+e.type));const c=this||e.target||$,t=c[r];let i;return xe&&c===ye&&"error"===e.type?(i=t&&t.call(this,e.message,e.filename,e.lineno,e.colno,e.error),!0===i&&e.preventDefault()):(i=t&&t.apply(this,arguments),"beforeunload"===e.type&&$[gt]&&"string"==typeof i?e.returnValue=i:null!=i&&!i&&e.preventDefault()),i};function Ye(e,r,c){let t=pe(e,r);if(!t&&c&&pe(c,r)&&(t={enumerable:!0,configurable:!0}),!t||!t.configurable)return;const i=j("on"+r+"patched");if(e.hasOwnProperty(i)&&e[i])return;delete t.writable,delete t.value;const u=t.get,E=t.set,T=r.slice(2);let p=we[T];p||(p=we[T]=j("ON_PROPERTY"+T)),t.set=function(D){let d=this;!d&&e===$&&(d=$),d&&("function"==typeof d[p]&&d.removeEventListener(T,Xe),E?.call(d,null),d[p]=D,"function"==typeof D&&d.addEventListener(T,Xe,!1))},t.get=function(){let D=this;if(!D&&e===$&&(D=$),!D)return null;const d=D[p];if(d)return d;if(u){let R=u.call(this);if(R)return t.set.call(this,R),"function"==typeof D.removeAttribute&&D.removeAttribute(r),R}return null},Oe(e,r,t),e[i]=!0}function $e(e,r,c){if(r)for(let t=0;t<r.length;t++)Ye(e,"on"+r[t],c);else{const t=[];for(const i in e)"on"==i.slice(0,2)&&t.push(i);for(let i=0;i<t.length;i++)Ye(e,t[i],c)}}const re=j("originalInstance");function ve(e){const r=$[e];if(!r)return;$[j(e)]=r,$[e]=function(){const i=He(arguments,e);switch(i.length){case 0:this[re]=new r;break;case 1:this[re]=new r(i[0]);break;case 2:this[re]=new r(i[0],i[1]);break;case 3:this[re]=new r(i[0],i[1],i[2]);break;case 4:this[re]=new r(i[0],i[1],i[2],i[3]);break;default:throw new Error("Arg list too long.")}},fe($[e],r);const c=new r(function(){});let t;for(t in c)"XMLHttpRequest"===e&&"responseBlob"===t||function(i){"function"==typeof c[i]?$[e].prototype[i]=function(){return this[re][i].apply(this[re],arguments)}:Oe($[e].prototype,i,{set:function(u){"function"==typeof u?(this[re][i]=Ae(u,e+"."+i),fe(this[re][i],u)):this[re][i]=u},get:function(){return this[re][i]}})}(t);for(t in r)"prototype"!==t&&r.hasOwnProperty(t)&&($[e][t]=r[t])}function ue(e,r,c){let t=e;for(;t&&!t.hasOwnProperty(r);)t=Ne(t);!t&&e[r]&&(t=e);const i=j(r);let u=null;if(t&&(!(u=t[i])||!t.hasOwnProperty(i))&&(u=t[i]=t[r],Ue(t&&pe(t,r)))){const T=c(u,i,r);t[r]=function(){return T(this,arguments)},fe(t[r],u)}return u}function kt(e,r,c){let t=null;function i(u){const E=u.data;return E.args[E.cbIdx]=function(){u.invoke.apply(this,arguments)},t.apply(E.target,E.args),u}t=ue(e,r,u=>function(E,T){const p=c(E,T);return p.cbIdx>=0&&"function"==typeof T[p.cbIdx]?je(p.name,T[p.cbIdx],p,i):u.apply(E,T)})}function fe(e,r){e[j("OriginalDelegate")]=r}let Je=!1,Ve=!1;function pt(){if(Je)return Ve;Je=!0;try{const e=ye.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ve=!0)}catch{}return Ve}function Ke(e){return"function"==typeof e}function Qe(e){return"number"==typeof e}const mt={useG:!0},ne={},et={},tt=new RegExp("^"+me+"(\\w+)(true|false)$"),nt=j("propagationStopped");function rt(e,r){const c=(r?r(e):e)+le,t=(r?r(e):e)+ae,i=me+c,u=me+t;ne[e]={},ne[e][le]=i,ne[e][ae]=u}function yt(e,r,c,t){const i=t&&t.add||Ze,u=t&&t.rm||Le,E=t&&t.listeners||"eventListeners",T=t&&t.rmAll||"removeAllListeners",p=j(i),D="."+i+":",d="prependListener",R="."+d+":",M=function(y,h,H){if(y.isRemoved)return;const V=y.callback;let Y;"object"==typeof V&&V.handleEvent&&(y.callback=g=>V.handleEvent(g),y.originalDelegate=V);try{y.invoke(y,h,[H])}catch(g){Y=g}const F=y.options;return F&&"object"==typeof F&&F.once&&h[u].call(h,H.type,y.originalDelegate?y.originalDelegate:y.callback,F),Y};function x(y,h,H){if(!(h=h||e.event))return;const V=y||h.target||e,Y=V[ne[h.type][H?ae:le]];if(Y){const F=[];if(1===Y.length){const g=M(Y[0],V,h);g&&F.push(g)}else{const g=Y.slice();for(let U=0;U<g.length&&(!h||!0!==h[nt]);U++){const O=M(g[U],V,h);O&&F.push(O)}}if(1===F.length)throw F[0];for(let g=0;g<F.length;g++){const U=F[g];r.nativeScheduleMicroTask(()=>{throw U})}}}const z=function(y){return x(this,y,!1)},J=function(y){return x(this,y,!0)};function K(y,h){if(!y)return!1;let H=!0;h&&void 0!==h.useG&&(H=h.useG);const V=h&&h.vh;let Y=!0;h&&void 0!==h.chkDup&&(Y=h.chkDup);let F=!1;h&&void 0!==h.rt&&(F=h.rt);let g=y;for(;g&&!g.hasOwnProperty(i);)g=Ne(g);if(!g&&y[i]&&(g=y),!g||g[p])return!1;const U=h&&h.eventNameToString,O={},w=g[p]=g[i],b=g[j(u)]=g[u],S=g[j(E)]=g[E],Q=g[j(T)]=g[T];let W;h&&h.prepend&&(W=g[j(h.prepend)]=g[h.prepend]);const q=H?function(s){if(!O.isExisting)return w.call(O.target,O.eventName,O.capture?J:z,O.options)}:function(s){return w.call(O.target,O.eventName,s.invoke,O.options)},A=H?function(s){if(!s.isRemoved){const l=ne[s.eventName];let v;l&&(v=l[s.capture?ae:le]);const C=v&&s.target[v];if(C)for(let k=0;k<C.length;k++)if(C[k]===s){C.splice(k,1),s.isRemoved=!0,s.removeAbortListener&&(s.removeAbortListener(),s.removeAbortListener=null),0===C.length&&(s.allRemoved=!0,s.target[v]=null);break}}if(s.allRemoved)return b.call(s.target,s.eventName,s.capture?J:z,s.options)}:function(s){return b.call(s.target,s.eventName,s.invoke,s.options)},he=h?.diff||function(s,l){const v=typeof l;return"function"===v&&s.callback===l||"object"===v&&s.originalDelegate===l},de=Zone[j("UNPATCHED_EVENTS")],oe=e[j("PASSIVE_EVENTS")],a=function(s,l,v,C,k=!1,Z=!1){return function(){const L=this||e;let I=arguments[0];h&&h.transferEventName&&(I=h.transferEventName(I));let G=arguments[1];if(!G)return s.apply(this,arguments);if(Re&&"uncaughtException"===I)return s.apply(this,arguments);let B=!1;if("function"!=typeof G){if(!G.handleEvent)return s.apply(this,arguments);B=!0}if(V&&!V(s,G,L,arguments))return;const Te=!!oe&&-1!==oe.indexOf(I),ie=function f(s){if("object"==typeof s&&null!==s){const l={...s};return s.signal&&(l.signal=s.signal),l}return s}(function N(s,l){return l?"boolean"==typeof s?{capture:s,passive:!0}:s?"object"==typeof s&&!1!==s.passive?{...s,passive:!0}:s:{passive:!0}:s}(arguments[2],Te)),ge=ie?.signal;if(ge?.aborted)return;if(de)for(let ce=0;ce<de.length;ce++)if(I===de[ce])return Te?s.call(L,I,G,ie):s.apply(this,arguments);const Ge=!!ie&&("boolean"==typeof ie||ie.capture),at=!(!ie||"object"!=typeof ie)&&ie.once,It=Zone.current;let Be=ne[I];Be||(rt(I,U),Be=ne[I]);const lt=Be[Ge?ae:le];let De,ke=L[lt],ut=!1;if(ke){if(ut=!0,Y)for(let ce=0;ce<ke.length;ce++)if(he(ke[ce],G))return}else ke=L[lt]=[];const ft=L.constructor.name,ht=et[ft];ht&&(De=ht[I]),De||(De=ft+l+(U?U(I):I)),O.options=ie,at&&(O.options.once=!1),O.target=L,O.capture=Ge,O.eventName=I,O.isExisting=ut;const be=H?mt:void 0;be&&(be.taskData=O),ge&&(O.options.signal=void 0);const se=It.scheduleEventTask(De,G,be,v,C);if(ge){O.options.signal=ge;const ce=()=>se.zone.cancelTask(se);s.call(ge,"abort",ce,{once:!0}),se.removeAbortListener=()=>ge.removeEventListener("abort",ce)}return O.target=null,be&&(be.taskData=null),at&&(O.options.once=!0),"boolean"!=typeof se.options&&(se.options=ie),se.target=L,se.capture=Ge,se.eventName=I,B&&(se.originalDelegate=G),Z?ke.unshift(se):ke.push(se),k?L:void 0}};return g[i]=a(w,D,q,A,F),W&&(g[d]=a(W,R,function(s){return W.call(O.target,O.eventName,s.invoke,O.options)},A,F,!0)),g[u]=function(){const s=this||e;let l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));const v=arguments[2],C=!!v&&("boolean"==typeof v||v.capture),k=arguments[1];if(!k)return b.apply(this,arguments);if(V&&!V(b,k,s,arguments))return;const Z=ne[l];let L;Z&&(L=Z[C?ae:le]);const I=L&&s[L];if(I)for(let G=0;G<I.length;G++){const B=I[G];if(he(B,k))return I.splice(G,1),B.isRemoved=!0,0!==I.length||(B.allRemoved=!0,s[L]=null,C||"string"!=typeof l)||(s[me+"ON_PROPERTY"+l]=null),B.zone.cancelTask(B),F?s:void 0}return b.apply(this,arguments)},g[E]=function(){const s=this||e;let l=arguments[0];h&&h.transferEventName&&(l=h.transferEventName(l));const v=[],C=ot(s,U?U(l):l);for(let k=0;k<C.length;k++){const Z=C[k];v.push(Z.originalDelegate?Z.originalDelegate:Z.callback)}return v},g[T]=function(){const s=this||e;let l=arguments[0];if(l){h&&h.transferEventName&&(l=h.transferEventName(l));const v=ne[l];if(v){const Z=s[v[le]],L=s[v[ae]];if(Z){const I=Z.slice();for(let G=0;G<I.length;G++){const B=I[G];this[u].call(this,l,B.originalDelegate?B.originalDelegate:B.callback,B.options)}}if(L){const I=L.slice();for(let G=0;G<I.length;G++){const B=I[G];this[u].call(this,l,B.originalDelegate?B.originalDelegate:B.callback,B.options)}}}}else{const v=Object.keys(s);for(let C=0;C<v.length;C++){const Z=tt.exec(v[C]);let L=Z&&Z[1];L&&"removeListener"!==L&&this[T].call(this,L)}this[T].call(this,"removeListener")}if(F)return this},fe(g[i],w),fe(g[u],b),Q&&fe(g[T],Q),S&&fe(g[E],S),!0}let X=[];for(let y=0;y<c.length;y++)X[y]=K(c[y],t);return X}function ot(e,r){if(!r){const u=[];for(let E in e){const T=tt.exec(E);let p=T&&T[1];if(p&&(!r||p===r)){const D=e[E];if(D)for(let d=0;d<D.length;d++)u.push(D[d])}}return u}let c=ne[r];c||(rt(r),c=ne[r]);const t=e[c[le]],i=e[c[ae]];return t?i?t.concat(i):t.slice():i?i.slice():[]}function vt(e,r){const c=e.Event;c&&c.prototype&&r.patchMethod(c.prototype,"stopImmediatePropagation",t=>function(i,u){i[nt]=!0,t&&t.apply(i,u)})}const Ce=j("zoneTask");function Ee(e,r,c,t){let i=null,u=null;c+=t;const E={};function T(D){const d=D.data;d.args[0]=function(){return D.invoke.apply(this,arguments)};const R=i.apply(e,d.args);return Qe(R)?d.handleId=R:(d.handle=R,d.isRefreshable=Ke(R.refresh)),D}function p(D){const{handle:d,handleId:R}=D.data;return u.call(e,d??R)}i=ue(e,r+=t,D=>function(d,R){if(Ke(R[0])){const M={isRefreshable:!1,isPeriodic:"Interval"===t,delay:"Timeout"===t||"Interval"===t?R[1]||0:void 0,args:R},x=R[0];R[0]=function(){try{return x.apply(this,arguments)}finally{const{handle:H,handleId:V,isPeriodic:Y,isRefreshable:F}=M;!Y&&!F&&(V?delete E[V]:H&&(H[Ce]=null))}};const z=je(r,R[0],M,T,p);if(!z)return z;const{handleId:J,handle:K,isRefreshable:X,isPeriodic:y}=z.data;if(J)E[J]=z;else if(K&&(K[Ce]=z,X&&!y)){const h=K.refresh;K.refresh=function(){const{zone:H,state:V}=z;return"notScheduled"===V?(z._state="scheduled",H._updateTaskCount(z,1)):"running"===V&&(z._state="scheduling"),h.call(this)}}return K??J??z}return D.apply(e,R)}),u=ue(e,c,D=>function(d,R){const M=R[0];let x;Qe(M)?(x=E[M],delete E[M]):(x=M?.[Ce],x?M[Ce]=null:x=M),x?.type?x.cancelFn&&x.zone.cancelTask(x):D.apply(e,R)})}function st(e,r,c){if(!c||0===c.length)return r;const t=c.filter(u=>u.target===e);if(0===t.length)return r;const i=t[0].ignoreProperties;return r.filter(u=>-1===i.indexOf(u))}function it(e,r,c,t){e&&$e(e,st(e,r,c),t)}function Fe(e){return Object.getOwnPropertyNames(e).filter(r=>r.startsWith("on")&&r.length>2).map(r=>r.substring(2))}function Nt(e,r,c,t,i){const u=Zone.__symbol__(t);if(r[u])return;const E=r[u]=r[t];r[t]=function(T,p,D){return p&&p.prototype&&i.forEach(function(d){const R=`${c}.${t}::`+d,M=p.prototype;try{if(M.hasOwnProperty(d)){const x=e.ObjectGetOwnPropertyDescriptor(M,d);x&&x.value?(x.value=e.wrapWithCurrentZone(x.value,R),e._redefineProperty(p.prototype,d,x)):M[d]&&(M[d]=e.wrapWithCurrentZone(M[d],R))}else M[d]&&(M[d]=e.wrapWithCurrentZone(M[d],R))}catch{}}),E.call(r,T,p,D)},e.attachOriginToPatched(r[t],E)}const ct=function Se(){const e=globalThis,r=!0===e[ee("forceDuplicateZoneCheck")];if(e.Zone&&(r||"function"!=typeof e.Zone.__symbol__))throw new Error("Zone already loaded.");return e.Zone??=function ze(){const e=te.performance;function r(N){e&&e.mark&&e.mark(N)}function c(N,_){e&&e.measure&&e.measure(N,_)}r("Zone");let t=(()=>{class N{static __symbol__=ee;static assertZonePatched(){if(te.Promise!==O.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let n=N.current;for(;n.parent;)n=n.parent;return n}static get current(){return b.zone}static get currentTask(){return S}static __load_patch(n,o,m=!1){if(O.hasOwnProperty(n)){const P=!0===te[ee("forceDuplicateZoneCheck")];if(!m&&P)throw Error("Already loaded patch: "+n)}else if(!te["__Zone_disable_"+n]){const P="Zone:"+n;r(P),O[n]=o(te,N,w),c(P,P)}}get parent(){return this._parent}get name(){return this._name}_parent;_name;_properties;_zoneDelegate;constructor(n,o){this._parent=n,this._name=o?o.name||"unnamed":"<root>",this._properties=o&&o.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,o)}get(n){const o=this.getZoneWith(n);if(o)return o._properties[n]}getZoneWith(n){let o=this;for(;o;){if(o._properties.hasOwnProperty(n))return o;o=o._parent}return null}fork(n){if(!n)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,n)}wrap(n,o){if("function"!=typeof n)throw new Error("Expecting function got: "+n);const m=this._zoneDelegate.intercept(this,n,o),P=this;return function(){return P.runGuarded(m,this,arguments,o)}}run(n,o,m,P){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,n,o,m,P)}finally{b=b.parent}}runGuarded(n,o=null,m,P){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,n,o,m,P)}catch(q){if(this._zoneDelegate.handleError(this,q))throw q}}finally{b=b.parent}}runTask(n,o,m){if(n.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(n.zone||K).name+"; Execution: "+this.name+")");const P=n,{type:q,data:{isPeriodic:A=!1,isRefreshable:_e=!1}={}}=n;if(n.state===X&&(q===U||q===g))return;const he=n.state!=H;he&&P._transitionTo(H,h);const de=S;S=P,b={parent:b,zone:this};try{q==g&&n.data&&!A&&!_e&&(n.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,P,o,m)}catch(oe){if(this._zoneDelegate.handleError(this,oe))throw oe}}finally{const oe=n.state;if(oe!==X&&oe!==Y)if(q==U||A||_e&&oe===y)he&&P._transitionTo(h,H,y);else{const f=P._zoneDelegates;this._updateTaskCount(P,-1),he&&P._transitionTo(X,H,X),_e&&(P._zoneDelegates=f)}b=b.parent,S=de}}scheduleTask(n){if(n.zone&&n.zone!==this){let m=this;for(;m;){if(m===n.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${n.zone.name}`);m=m.parent}}n._transitionTo(y,X);const o=[];n._zoneDelegates=o,n._zone=this;try{n=this._zoneDelegate.scheduleTask(this,n)}catch(m){throw n._transitionTo(Y,y,X),this._zoneDelegate.handleError(this,m),m}return n._zoneDelegates===o&&this._updateTaskCount(n,1),n.state==y&&n._transitionTo(h,y),n}scheduleMicroTask(n,o,m,P){return this.scheduleTask(new E(F,n,o,m,P,void 0))}scheduleMacroTask(n,o,m,P,q){return this.scheduleTask(new E(g,n,o,m,P,q))}scheduleEventTask(n,o,m,P,q){return this.scheduleTask(new E(U,n,o,m,P,q))}cancelTask(n){if(n.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(n.zone||K).name+"; Execution: "+this.name+")");if(n.state===h||n.state===H){n._transitionTo(V,h,H);try{this._zoneDelegate.cancelTask(this,n)}catch(o){throw n._transitionTo(Y,V),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(n,-1),n._transitionTo(X,V),n.runCount=-1,n}}_updateTaskCount(n,o){const m=n._zoneDelegates;-1==o&&(n._zoneDelegates=null);for(let P=0;P<m.length;P++)m[P]._updateTaskCount(n.type,o)}}return N})();const i={name:"",onHasTask:(N,_,n,o)=>N.hasTask(n,o),onScheduleTask:(N,_,n,o)=>N.scheduleTask(n,o),onInvokeTask:(N,_,n,o,m,P)=>N.invokeTask(n,o,m,P),onCancelTask:(N,_,n,o)=>N.cancelTask(n,o)};class u{get zone(){return this._zone}_zone;_taskCounts={microTask:0,macroTask:0,eventTask:0};_parentDelegate;_forkDlgt;_forkZS;_forkCurrZone;_interceptDlgt;_interceptZS;_interceptCurrZone;_invokeDlgt;_invokeZS;_invokeCurrZone;_handleErrorDlgt;_handleErrorZS;_handleErrorCurrZone;_scheduleTaskDlgt;_scheduleTaskZS;_scheduleTaskCurrZone;_invokeTaskDlgt;_invokeTaskZS;_invokeTaskCurrZone;_cancelTaskDlgt;_cancelTaskZS;_cancelTaskCurrZone;_hasTaskDlgt;_hasTaskDlgtOwner;_hasTaskZS;_hasTaskCurrZone;constructor(_,n,o){this._zone=_,this._parentDelegate=n,this._forkZS=o&&(o&&o.onFork?o:n._forkZS),this._forkDlgt=o&&(o.onFork?n:n._forkDlgt),this._forkCurrZone=o&&(o.onFork?this._zone:n._forkCurrZone),this._interceptZS=o&&(o.onIntercept?o:n._interceptZS),this._interceptDlgt=o&&(o.onIntercept?n:n._interceptDlgt),this._interceptCurrZone=o&&(o.onIntercept?this._zone:n._interceptCurrZone),this._invokeZS=o&&(o.onInvoke?o:n._invokeZS),this._invokeDlgt=o&&(o.onInvoke?n:n._invokeDlgt),this._invokeCurrZone=o&&(o.onInvoke?this._zone:n._invokeCurrZone),this._handleErrorZS=o&&(o.onHandleError?o:n._handleErrorZS),this._handleErrorDlgt=o&&(o.onHandleError?n:n._handleErrorDlgt),this._handleErrorCurrZone=o&&(o.onHandleError?this._zone:n._handleErrorCurrZone),this._scheduleTaskZS=o&&(o.onScheduleTask?o:n._scheduleTaskZS),this._scheduleTaskDlgt=o&&(o.onScheduleTask?n:n._scheduleTaskDlgt),this._scheduleTaskCurrZone=o&&(o.onScheduleTask?this._zone:n._scheduleTaskCurrZone),this._invokeTaskZS=o&&(o.onInvokeTask?o:n._invokeTaskZS),this._invokeTaskDlgt=o&&(o.onInvokeTask?n:n._invokeTaskDlgt),this._invokeTaskCurrZone=o&&(o.onInvokeTask?this._zone:n._invokeTaskCurrZone),this._cancelTaskZS=o&&(o.onCancelTask?o:n._cancelTaskZS),this._cancelTaskDlgt=o&&(o.onCancelTask?n:n._cancelTaskDlgt),this._cancelTaskCurrZone=o&&(o.onCancelTask?this._zone:n._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;const m=o&&o.onHasTask;(m||n&&n._hasTaskZS)&&(this._hasTaskZS=m?o:i,this._hasTaskDlgt=n,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,o.onScheduleTask||(this._scheduleTaskZS=i,this._scheduleTaskDlgt=n,this._scheduleTaskCurrZone=this._zone),o.onInvokeTask||(this._invokeTaskZS=i,this._invokeTaskDlgt=n,this._invokeTaskCurrZone=this._zone),o.onCancelTask||(this._cancelTaskZS=i,this._cancelTaskDlgt=n,this._cancelTaskCurrZone=this._zone))}fork(_,n){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,_,n):new t(_,n)}intercept(_,n,o){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,_,n,o):n}invoke(_,n,o,m,P){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,_,n,o,m,P):n.apply(o,m)}handleError(_,n){return!this._handleErrorZS||this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,_,n)}scheduleTask(_,n){let o=n;if(this._scheduleTaskZS)this._hasTaskZS&&o._zoneDelegates.push(this._hasTaskDlgtOwner),o=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,_,n),o||(o=n);else if(n.scheduleFn)n.scheduleFn(n);else{if(n.type!=F)throw new Error("Task is missing scheduleFn.");z(n)}return o}invokeTask(_,n,o,m){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,_,n,o,m):n.callback.apply(o,m)}cancelTask(_,n){let o;if(this._cancelTaskZS)o=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,_,n);else{if(!n.cancelFn)throw Error("Task is not cancelable");o=n.cancelFn(n)}return o}hasTask(_,n){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,_,n)}catch(o){this.handleError(_,o)}}_updateTaskCount(_,n){const o=this._taskCounts,m=o[_],P=o[_]=m+n;if(P<0)throw new Error("More tasks executed then were scheduled.");0!=m&&0!=P||this.hasTask(this._zone,{microTask:o.microTask>0,macroTask:o.macroTask>0,eventTask:o.eventTask>0,change:_})}}class E{type;source;invoke;callback;data;scheduleFn;cancelFn;_zone=null;runCount=0;_zoneDelegates=null;_state="notScheduled";constructor(_,n,o,m,P,q){if(this.type=_,this.source=n,this.data=m,this.scheduleFn=P,this.cancelFn=q,!o)throw new Error("callback is not defined");this.callback=o;const A=this;this.invoke=_===U&&m&&m.useG?E.invokeTask:function(){return E.invokeTask.call(te,A,this,arguments)}}static invokeTask(_,n,o){_||(_=this),Q++;try{return _.runCount++,_.zone.runTask(_,n,o)}finally{1==Q&&J(),Q--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(X,y)}_transitionTo(_,n,o){if(this._state!==n&&this._state!==o)throw new Error(`${this.type} '${this.source}': can not transition to '${_}', expecting state '${n}'${o?" or '"+o+"'":""}, was '${this._state}'.`);this._state=_,_==X&&(this._zoneDelegates=null)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}const T=ee("setTimeout"),p=ee("Promise"),D=ee("then");let M,d=[],R=!1;function x(N){if(M||te[p]&&(M=te[p].resolve(0)),M){let _=M[D];_||(_=M.then),_.call(M,N)}else te[T](N,0)}function z(N){0===Q&&0===d.length&&x(J),N&&d.push(N)}function J(){if(!R){for(R=!0;d.length;){const N=d;d=[];for(let _=0;_<N.length;_++){const n=N[_];try{n.zone.runTask(n,null,null)}catch(o){w.onUnhandledError(o)}}}w.microtaskDrainDone(),R=!1}}const K={name:"NO ZONE"},X="notScheduled",y="scheduling",h="scheduled",H="running",V="canceling",Y="unknown",F="microTask",g="macroTask",U="eventTask",O={},w={symbol:ee,currentZoneFrame:()=>b,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:z,showUncaughtError:()=>!t[ee("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:x};let b={parent:null,zone:new t(null,null)},S=null,Q=0;function W(){}return c("Zone","Zone"),t}(),e.Zone}();(function Lt(e){(function St(e){e.__load_patch("ZoneAwarePromise",(r,c,t)=>{const i=Object.getOwnPropertyDescriptor,u=Object.defineProperty,T=t.symbol,p=[],D=!1!==r[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],d=T("Promise"),R=T("then");t.onUnhandledError=f=>{if(t.showUncaughtError()){const a=f&&f.rejection;a?console.error("Unhandled Promise rejection:",a instanceof Error?a.message:a,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",a,a instanceof Error?a.stack:void 0):console.error(f)}},t.microtaskDrainDone=()=>{for(;p.length;){const f=p.shift();try{f.zone.runGuarded(()=>{throw f.throwOriginal?f.rejection:f})}catch(a){z(a)}}};const x=T("unhandledPromiseRejectionHandler");function z(f){t.onUnhandledError(f);try{const a=c[x];"function"==typeof a&&a.call(this,f)}catch{}}function J(f){return f&&"function"==typeof f.then}function K(f){return f}function X(f){return A.reject(f)}const y=T("state"),h=T("value"),H=T("finally"),V=T("parentPromiseValue"),Y=T("parentPromiseState"),g=null,U=!0,O=!1;function b(f,a){return s=>{try{N(f,a,s)}catch(l){N(f,!1,l)}}}const S=function(){let f=!1;return function(s){return function(){f||(f=!0,s.apply(null,arguments))}}},Q="Promise resolved with itself",W=T("currentTaskTrace");function N(f,a,s){const l=S();if(f===s)throw new TypeError(Q);if(f[y]===g){let v=null;try{("object"==typeof s||"function"==typeof s)&&(v=s&&s.then)}catch(C){return l(()=>{N(f,!1,C)})(),f}if(a!==O&&s instanceof A&&s.hasOwnProperty(y)&&s.hasOwnProperty(h)&&s[y]!==g)n(s),N(f,s[y],s[h]);else if(a!==O&&"function"==typeof v)try{v.call(s,l(b(f,a)),l(b(f,!1)))}catch(C){l(()=>{N(f,!1,C)})()}else{f[y]=a;const C=f[h];if(f[h]=s,f[H]===H&&a===U&&(f[y]=f[Y],f[h]=f[V]),a===O&&s instanceof Error){const k=c.currentTask&&c.currentTask.data&&c.currentTask.data.__creationTrace__;k&&u(s,W,{configurable:!0,enumerable:!1,writable:!0,value:k})}for(let k=0;k<C.length;)o(f,C[k++],C[k++],C[k++],C[k++]);if(0==C.length&&a==O){f[y]=0;let k=s;try{throw new Error("Uncaught (in promise): "+function E(f){return f&&f.toString===Object.prototype.toString?(f.constructor&&f.constructor.name||"")+": "+JSON.stringify(f):f?f.toString():Object.prototype.toString.call(f)}(s)+(s&&s.stack?"\n"+s.stack:""))}catch(Z){k=Z}D&&(k.throwOriginal=!0),k.rejection=s,k.promise=f,k.zone=c.current,k.task=c.currentTask,p.push(k),t.scheduleMicroTask()}}}return f}const _=T("rejectionHandledHandler");function n(f){if(0===f[y]){try{const a=c[_];a&&"function"==typeof a&&a.call(this,{rejection:f[h],promise:f})}catch{}f[y]=O;for(let a=0;a<p.length;a++)f===p[a].promise&&p.splice(a,1)}}function o(f,a,s,l,v){n(f);const C=f[y],k=C?"function"==typeof l?l:K:"function"==typeof v?v:X;a.scheduleMicroTask("Promise.then",()=>{try{const Z=f[h],L=!!s&&H===s[H];L&&(s[V]=Z,s[Y]=C);const I=a.run(k,void 0,L&&k!==X&&k!==K?[]:[Z]);N(s,!0,I)}catch(Z){N(s,!1,Z)}},s)}const P=function(){},q=r.AggregateError;class A{static toString(){return"function ZoneAwarePromise() { [native code] }"}static resolve(a){return a instanceof A?a:N(new this(null),U,a)}static reject(a){return N(new this(null),O,a)}static withResolvers(){const a={};return a.promise=new A((s,l)=>{a.resolve=s,a.reject=l}),a}static any(a){if(!a||"function"!=typeof a[Symbol.iterator])return Promise.reject(new q([],"All promises were rejected"));const s=[];let l=0;try{for(let k of a)l++,s.push(A.resolve(k))}catch{return Promise.reject(new q([],"All promises were rejected"))}if(0===l)return Promise.reject(new q([],"All promises were rejected"));let v=!1;const C=[];return new A((k,Z)=>{for(let L=0;L<s.length;L++)s[L].then(I=>{v||(v=!0,k(I))},I=>{C.push(I),l--,0===l&&(v=!0,Z(new q(C,"All promises were rejected")))})})}static race(a){let s,l,v=new this((Z,L)=>{s=Z,l=L});function C(Z){s(Z)}function k(Z){l(Z)}for(let Z of a)J(Z)||(Z=this.resolve(Z)),Z.then(C,k);return v}static all(a){return A.allWithCallback(a)}static allSettled(a){return(this&&this.prototype instanceof A?this:A).allWithCallback(a,{thenCallback:l=>({status:"fulfilled",value:l}),errorCallback:l=>({status:"rejected",reason:l})})}static allWithCallback(a,s){let l,v,C=new this((I,G)=>{l=I,v=G}),k=2,Z=0;const L=[];for(let I of a){J(I)||(I=this.resolve(I));const G=Z;try{I.then(B=>{L[G]=s?s.thenCallback(B):B,k--,0===k&&l(L)},B=>{s?(L[G]=s.errorCallback(B),k--,0===k&&l(L)):v(B)})}catch(B){v(B)}k++,Z++}return k-=2,0===k&&l(L),C}constructor(a){const s=this;if(!(s instanceof A))throw new Error("Must be an instanceof Promise.");s[y]=g,s[h]=[];try{const l=S();a&&a(l(b(s,U)),l(b(s,O)))}catch(l){N(s,!1,l)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return A}then(a,s){let l=this.constructor?.[Symbol.species];(!l||"function"!=typeof l)&&(l=this.constructor||A);const v=new l(P),C=c.current;return this[y]==g?this[h].push(C,v,a,s):o(this,C,v,a,s),v}catch(a){return this.then(null,a)}finally(a){let s=this.constructor?.[Symbol.species];(!s||"function"!=typeof s)&&(s=A);const l=new s(P);l[H]=H;const v=c.current;return this[y]==g?this[h].push(v,l,a,a):o(this,v,l,a,a),l}}A.resolve=A.resolve,A.reject=A.reject,A.race=A.race,A.all=A.all;const _e=r[d]=r.Promise;r.Promise=A;const he=T("thenPatched");function de(f){const a=f.prototype,s=i(a,"then");if(s&&(!1===s.writable||!s.configurable))return;const l=a.then;a[R]=l,f.prototype.then=function(v,C){return new A((Z,L)=>{l.call(this,Z,L)}).then(v,C)},f[he]=!0}return t.patchThen=de,_e&&(de(_e),ue(r,"fetch",f=>function oe(f){return function(a,s){let l=f.apply(a,s);if(l instanceof A)return l;let v=l.constructor;return v[he]||de(v),l}}(f))),Promise[c.__symbol__("uncaughtPromiseErrors")]=p,A})})(e),function Ot(e){e.__load_patch("toString",r=>{const c=Function.prototype.toString,t=j("OriginalDelegate"),i=j("Promise"),u=j("Error"),E=function(){if("function"==typeof this){const d=this[t];if(d)return"function"==typeof d?c.call(d):Object.prototype.toString.call(d);if(this===Promise){const R=r[i];if(R)return c.call(R)}if(this===Error){const R=r[u];if(R)return c.call(R)}}return c.call(this)};E[t]=c,Function.prototype.toString=E;const T=Object.prototype.toString;Object.prototype.toString=function(){return"function"==typeof Promise&&this instanceof Promise?"[object Promise]":T.call(this)}})}(e),function Zt(e){e.__load_patch("util",(r,c,t)=>{const i=Fe(r);t.patchOnProperties=$e,t.patchMethod=ue,t.bindArguments=He,t.patchMacroTask=kt;const u=c.__symbol__("BLACK_LISTED_EVENTS"),E=c.__symbol__("UNPATCHED_EVENTS");r[E]&&(r[u]=r[E]),r[u]&&(c[u]=c[E]=r[u]),t.patchEventPrototype=vt,t.patchEventTarget=yt,t.isIEOrEdge=pt,t.ObjectDefineProperty=Oe,t.ObjectGetOwnPropertyDescriptor=pe,t.ObjectCreate=dt,t.ArraySlice=_t,t.patchClass=ve,t.wrapWithCurrentZone=Ae,t.filterProperties=st,t.attachOriginToPatched=fe,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Nt,t.getGlobalObjects=()=>({globalSources:et,zoneSymbolEventNames:ne,eventNames:i,isBrowser:xe,isMix:qe,isNode:Re,TRUE_STR:ae,FALSE_STR:le,ZONE_SYMBOL_PREFIX:me,ADD_EVENT_LISTENER_STR:Ze,REMOVE_EVENT_LISTENER_STR:Le})})}(e)})(ct),function Dt(e){e.__load_patch("legacy",r=>{const c=r[e.__symbol__("legacyPatch")];c&&c()}),e.__load_patch("timers",r=>{const t="clear";Ee(r,"set",t,"Timeout"),Ee(r,"set",t,"Interval"),Ee(r,"set",t,"Immediate")}),e.__load_patch("requestAnimationFrame",r=>{Ee(r,"request","cancel","AnimationFrame"),Ee(r,"mozRequest","mozCancel","AnimationFrame"),Ee(r,"webkitRequest","webkitCancel","AnimationFrame")}),e.__load_patch("blocking",(r,c)=>{const t=["alert","prompt","confirm"];for(let i=0;i<t.length;i++)ue(r,t[i],(E,T,p)=>function(D,d){return c.current.run(E,r,d,p)})}),e.__load_patch("EventTarget",(r,c,t)=>{(function wt(e,r){r.patchEventPrototype(e,r)})(r,t),function Rt(e,r){if(Zone[r.symbol("patchEventTarget")])return;const{eventNames:c,zoneSymbolEventNames:t,TRUE_STR:i,FALSE_STR:u,ZONE_SYMBOL_PREFIX:E}=r.getGlobalObjects();for(let p=0;p<c.length;p++){const D=c[p],M=E+(D+u),x=E+(D+i);t[D]={},t[D][u]=M,t[D][i]=x}const T=e.EventTarget;T&&T.prototype&&r.patchEventTarget(e,r,[T&&T.prototype])}(r,t);const i=r.XMLHttpRequestEventTarget;i&&i.prototype&&t.patchEventTarget(r,t,[i.prototype])}),e.__load_patch("MutationObserver",(r,c,t)=>{ve("MutationObserver"),ve("WebKitMutationObserver")}),e.__load_patch("IntersectionObserver",(r,c,t)=>{ve("IntersectionObserver")}),e.__load_patch("FileReader",(r,c,t)=>{ve("FileReader")}),e.__load_patch("on_property",(r,c,t)=>{!function Ct(e,r){if(Re&&!qe||Zone[e.symbol("patchEvents")])return;const c=r.__Zone_ignore_on_properties;let t=[];if(xe){const i=window;t=t.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);const u=[];it(i,Fe(i),c&&c.concat(u),Ne(i))}t=t.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let i=0;i<t.length;i++){const u=r[t[i]];u?.prototype&&it(u.prototype,Fe(u.prototype),c)}}(t,r)}),e.__load_patch("customElements",(r,c,t)=>{!function Pt(e,r){const{isBrowser:c,isMix:t}=r.getGlobalObjects();(c||t)&&e.customElements&&"customElements"in e&&r.patchCallbacks(r,e.customElements,"customElements","define",["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"])}(r,t)}),e.__load_patch("XHR",(r,c)=>{!function D(d){const R=d.XMLHttpRequest;if(!R)return;const M=R.prototype;let z=M[Ie],J=M[Me];if(!z){const w=d.XMLHttpRequestEventTarget;if(w){const b=w.prototype;z=b[Ie],J=b[Me]}}const K="readystatechange",X="scheduled";function y(w){const b=w.data,S=b.target;S[E]=!1,S[p]=!1;const Q=S[u];z||(z=S[Ie],J=S[Me]),Q&&J.call(S,K,Q);const W=S[u]=()=>{if(S.readyState===S.DONE)if(!b.aborted&&S[E]&&w.state===X){const _=S[c.__symbol__("loadfalse")];if(0!==S.status&&_&&_.length>0){const n=w.invoke;w.invoke=function(){const o=S[c.__symbol__("loadfalse")];for(let m=0;m<o.length;m++)o[m]===w&&o.splice(m,1);!b.aborted&&w.state===X&&n.call(w)},_.push(w)}else w.invoke()}else!b.aborted&&!1===S[E]&&(S[p]=!0)};return z.call(S,K,W),S[t]||(S[t]=w),U.apply(S,b.args),S[E]=!0,w}function h(){}function H(w){const b=w.data;return b.aborted=!0,O.apply(b.target,b.args)}const V=ue(M,"open",()=>function(w,b){return w[i]=0==b[2],w[T]=b[1],V.apply(w,b)}),F=j("fetchTaskAborting"),g=j("fetchTaskScheduling"),U=ue(M,"send",()=>function(w,b){if(!0===c.current[g]||w[i])return U.apply(w,b);{const S={target:w,url:w[T],isPeriodic:!1,args:b,aborted:!1},Q=je("XMLHttpRequest.send",h,S,y,H);w&&!0===w[p]&&!S.aborted&&Q.state===X&&Q.invoke()}}),O=ue(M,"abort",()=>function(w,b){const S=function x(w){return w[t]}(w);if(S&&"string"==typeof S.type){if(null==S.cancelFn||S.data&&S.data.aborted)return;S.zone.cancelTask(S)}else if(!0===c.current[F])return O.apply(w,b)})}(r);const t=j("xhrTask"),i=j("xhrSync"),u=j("xhrListener"),E=j("xhrScheduled"),T=j("xhrURL"),p=j("xhrErrorBeforeScheduled")}),e.__load_patch("geolocation",r=>{r.navigator&&r.navigator.geolocation&&function Et(e,r){const c=e.constructor.name;for(let t=0;t<r.length;t++){const i=r[t],u=e[i];if(u){if(!Ue(pe(e,i)))continue;e[i]=(T=>{const p=function(){return T.apply(this,He(arguments,c+"."+i))};return fe(p,T),p})(u)}}}(r.navigator.geolocation,["getCurrentPosition","watchPosition"])}),e.__load_patch("PromiseRejectionEvent",(r,c)=>{function t(i){return function(u){ot(r,i).forEach(T=>{const p=r.PromiseRejectionEvent;if(p){const D=new p(i,{promise:u.promise,reason:u.rejection});T.invoke(D)}})}}r.PromiseRejectionEvent&&(c[j("unhandledPromiseRejectionHandler")]=t("unhandledrejection"),c[j("rejectionHandledHandler")]=t("rejectionhandled"))}),e.__load_patch("queueMicrotask",(r,c,t)=>{!function bt(e,r){r.patchMethod(e,"queueMicrotask",c=>function(t,i){Zone.current.scheduleMicroTask("queueMicrotask",i[0])})}(r,t)})}(ct)}},te=>{te(te.s=935)}]);"use strict";(self.webpackChunkcue_ui=self.webpackChunkcue_ui||[]).push([[792],{309(){let Ee=null,yn=!1,xc=1;const me=Symbol("SIGNAL");function M(e){const t=Ee;return Ee=e,t}const ur={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function wo(e){if(yn)throw new Error("");if(null===Ee)return;Ee.consumerOnSignalRead(e);const t=Ee.producersTail;if(void 0!==t&&t.producer===e)return;let n;const r=Ee.recomputing;if(r&&(n=void 0!==t?t.nextProducer:Ee.producers,void 0!==n&&n.producer===e))return Ee.producersTail=n,void(n.lastReadVersion=e.version);const o=e.consumersTail;if(void 0!==o&&o.consumer===Ee&&(!r||function ob(e,t){const n=t.producersTail;if(void 0!==n){let r=t.producers;do{if(r===e)return!0;if(r===n)break;r=r.nextProducer}while(void 0!==r)}return!1}(o,Ee)))return;const i=dr(Ee),s={producer:e,consumer:Ee,nextProducer:n,prevConsumer:o,lastReadVersion:e.version,nextConsumer:void 0};Ee.producersTail=s,void 0!==t?t.nextProducer=s:Ee.producers=s,i&&Ph(e,s)}function bo(e){if((!dr(e)||e.dirty)&&(e.dirty||e.lastCleanEpoch!==xc)){if(!e.producerMustRecompute(e)&&!Ji(e))return void Ki(e);e.producerRecomputeValue(e),Ki(e)}}function Oh(e){if(void 0===e.consumers)return;const t=yn;yn=!0;try{for(let n=e.consumers;void 0!==n;n=n.nextConsumer){const r=n.consumer;r.dirty||tb(r)}}finally{yn=t}}function tb(e){e.dirty=!0,Oh(e),e.consumerMarkedDirty?.(e)}function Ki(e){e.dirty=!1,e.lastCleanEpoch=xc}function lr(e){return e&&function nb(e){e.producersTail=void 0,e.recomputing=!0}(e),M(e)}function Mo(e,t){M(t),e&&function rb(e){e.recomputing=!1;const t=e.producersTail;let n=void 0!==t?t.nextProducer:e.producers;if(void 0!==n){if(dr(e))do{n=Pc(n)}while(void 0!==n);void 0!==t?t.nextProducer=void 0:e.producers=void 0}}(e)}function Ji(e){for(let t=e.producers;void 0!==t;t=t.nextProducer){const n=t.producer,r=t.lastReadVersion;if(r!==n.version||(bo(n),r!==n.version))return!0}return!1}function So(e){if(dr(e)){let t=e.producers;for(;void 0!==t;)t=Pc(t)}e.producers=void 0,e.producersTail=void 0,e.consumers=void 0,e.consumersTail=void 0}function Ph(e,t){const n=e.consumersTail,r=dr(e);if(void 0!==n?(t.nextConsumer=n.nextConsumer,n.nextConsumer=t):(t.nextConsumer=void 0,e.consumers=t),t.prevConsumer=n,e.consumersTail=t,!r)for(let o=e.producers;void 0!==o;o=o.nextProducer)Ph(o.producer,o)}function Pc(e){const t=e.producer,n=e.nextProducer,r=e.nextConsumer,o=e.prevConsumer;if(e.nextConsumer=void 0,e.prevConsumer=void 0,void 0!==r?r.prevConsumer=o:t.consumersTail=o,void 0!==o)o.nextConsumer=r;else if(t.consumers=r,!dr(t)){let i=t.producers;for(;void 0!==i;)i=Pc(i)}return n}function dr(e){return e.consumerIsAlwaysLive||void 0!==e.consumers}function jc(e,t){return Object.is(e,t)}const vn=Symbol("UNSET"),fr=Symbol("COMPUTING"),Mt=Symbol("ERRORED"),sb={...ur,value:vn,dirty:!0,error:null,equal:jc,kind:"computed",producerMustRecompute:e=>e.value===vn||e.value===fr,producerRecomputeValue(e){if(e.value===fr)throw new Error("");const t=e.value;e.value=fr;const n=lr(e);let r,o=!1;try{r=e.computation(),M(null),o=t!==vn&&t!==Mt&&r!==Mt&&e.equal(t,r)}catch(i){r=Mt,e.error=i}finally{Mo(e,n)}o?e.value=t:(e.value=r,e.version++)}};let Lh=function ab(){throw new Error};function es(e,t){(function Fh(){return!1!==Ee?.consumerAllowSignalWrites})()||function jh(e){Lh(e)}(e),e.equal(e.value,t)||(e.value=t,function db(e){e.version++,function eb(){xc++}(),Oh(e)}(e))}const Bc={...ur,equal:jc,value:void 0,kind:"signal"},fb={...ur,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:"effect"};function ye(e){return"function"==typeof e}function Vh(e){const n=e(r=>{Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}const Vc=Vh(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription:\n${n.map((r,o)=>`${o+1}) ${r.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=n});function Hc(e,t){if(e){const n=e.indexOf(t);0<=n&&e.splice(n,1)}}class Xe{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;const{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(const i of n)i.remove(this);else n.remove(this);const{initialTeardown:r}=this;if(ye(r))try{r()}catch(i){t=i instanceof Vc?i.errors:[i]}const{_finalizers:o}=this;if(o){this._finalizers=null;for(const i of o)try{Uh(i)}catch(s){t=t??[],s instanceof Vc?t=[...t,...s.errors]:t.push(s)}}if(t)throw new Vc(t)}}add(t){var n;if(t&&t!==this)if(this.closed)Uh(t);else{if(t instanceof Xe){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!==(n=this._finalizers)&&void 0!==n?n:[]).push(t)}}_hasParent(t){const{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){const{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){const{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&Hc(n,t)}remove(t){const{_finalizers:n}=this;n&&Hc(n,t),t instanceof Xe&&t._removeParent(this)}}Xe.EMPTY=(()=>{const e=new Xe;return e.closed=!0,e})();const Hh=Xe.EMPTY;function $h(e){return e instanceof Xe||e&&"closed"in e&&ye(e.remove)&&ye(e.add)&&ye(e.unsubscribe)}function Uh(e){ye(e)?e():e.unsubscribe()}const Dn={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},ts={setTimeout(e,t,...n){const{delegate:r}=ts;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){const{delegate:t}=ts;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function zh(e){ts.setTimeout(()=>{const{onUnhandledError:t}=Dn;if(!t)throw e;t(e)})}function Gh(){}const pb=$c("C",void 0,void 0);function $c(e,t,n){return{kind:e,value:t,error:n}}let _n=null;function ns(e){if(Dn.useDeprecatedSynchronousErrorHandling){const t=!_n;if(t&&(_n={errorThrown:!1,error:null}),e(),t){const{errorThrown:n,error:r}=_n;if(_n=null,n)throw r}}else e()}class Uc extends Xe{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,$h(t)&&t.add(this)):this.destination=Eb}static create(t,n,r){return new Gc(t,n,r)}next(t){this.isStopped?Wc(function mb(e){return $c("N",e,void 0)}(t),this):this._next(t)}error(t){this.isStopped?Wc(function gb(e){return $c("E",void 0,e)}(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?Wc(pb,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const vb=Function.prototype.bind;function zc(e,t){return vb.call(e,t)}class Db{constructor(t){this.partialObserver=t}next(t){const{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){rs(r)}}error(t){const{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){rs(r)}else rs(t)}complete(){const{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){rs(n)}}}class Gc extends Uc{constructor(t,n,r){let o;if(super(),ye(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&Dn.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&zc(t.next,i),error:t.error&&zc(t.error,i),complete:t.complete&&zc(t.complete,i)}):o=t}this.destination=new Db(o)}}function rs(e){Dn.useDeprecatedSynchronousErrorHandling?function yb(e){Dn.useDeprecatedSynchronousErrorHandling&&_n&&(_n.errorThrown=!0,_n.error=e)}(e):zh(e)}function Wc(e,t){const{onStoppedNotification:n}=Dn;n&&ts.setTimeout(()=>n(e,t))}const Eb={closed:!0,next:Gh,error:function _b(e){throw e},complete:Gh},qc="function"==typeof Symbol&&Symbol.observable||"@@observable";function Wh(e){return e}let Fe=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){const r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){const i=function Cb(e){return e&&e instanceof Uc||function Ib(e){return e&&ye(e.next)&&ye(e.error)&&ye(e.complete)}(e)&&$h(e)}(n)?n:new Gc(n,r,o);return ns(()=>{const{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return new(r=Zh(r))((o,i)=>{const s=new Gc({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return null===(r=this.source)||void 0===r?void 0:r.subscribe(n)}[qc](){return this}pipe(...n){return function qh(e){return 0===e.length?Wh:1===e.length?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=Zh(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function Zh(e){var t;return null!==(t=e??Dn.Promise)&&void 0!==t?t:Promise}const wb=Vh(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});let Zc,hr=(()=>{class e extends Fe{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){const r=new Qh(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new wb}next(n){ns(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const r of this.currentObservers)r.next(n)}})}error(n){ns(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;const{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){ns(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){const{hasError:r,isStopped:o,observers:i}=this;return r||o?Hh:(this.currentObservers=null,i.push(n),new Xe(()=>{this.currentObservers=null,Hc(i,n)}))}_checkFinalizedStatuses(n){const{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){const n=new Fe;return n.source=this,n}}return e.create=(t,n)=>new Qh(t,n),e})();class Qh extends hr{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.next)||void 0===r||r.call(n,t)}error(t){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.error)||void 0===r||r.call(n,t)}complete(){var t,n;null===(n=null===(t=this.destination)||void 0===t?void 0:t.complete)||void 0===n||n.call(t)}_subscribe(t){var n,r;return null!==(r=null===(n=this.source)||void 0===n?void 0:n.subscribe(t))&&void 0!==r?r:Hh}}class bb extends hr{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){const{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}}function Qc(){return Zc}function zt(e){const t=Zc;return Zc=e,t}const Mb=Symbol("NotFound");function Yc(e){return e===Mb||"\u0275NotFound"===e?.name}Error;class _ extends Error{code;constructor(t,n){super(ut(t,n)),this.code=t}}function ut(e,t){return`${function Tb(e){return`NG0${Math.abs(e)}`}(e)}${t?": "+t:""}`}const ie=globalThis;function U(e){for(let t in e)if(e[t]===U)return t;throw Error("")}function Gt(e){if("string"==typeof e)return e;if(Array.isArray(e))return`[${e.map(Gt).join(", ")}]`;if(null==e)return""+e;const t=e.overriddenName||e.name;if(t)return`${t}`;const n=e.toString();if(null==n)return""+n;const r=n.indexOf("\n");return r>=0?n.slice(0,r):n}function Jc(e,t){return e?t?`${e} ${t}`:e:t||""}const Ab=U({__forward_ref__:U});function Xc(e){return e.__forward_ref__=Xc,e}function F(e){return function os(e){return"function"==typeof e&&e.hasOwnProperty(Ab)&&e.__forward_ref__===Xc}(e)?e():e}function j(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function pr(e){return{providers:e.providers||[],imports:e.imports||[]}}function is(e){return function Pb(e,t){return e.hasOwnProperty(t)&&e[t]||null}(e,as)}function ss(e){return e&&e.hasOwnProperty(eu)?e[eu]:null}const as=U({\u0275prov:U}),eu=U({\u0275inj:U});class C{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=j({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function nu(e){return e&&!!e.\u0275providers}const Xh=U({\u0275cmp:U}),$b=U({\u0275dir:U}),Ub=U({\u0275pipe:U}),ep=U({\u0275mod:U}),Cn=U({\u0275fac:U}),To=U({__NG_ELEMENT_ID__:U}),tp=U({__NG_ENV_ID__:U});function z(e){return us(e),e[Xh]||null}function Re(e){return us(e),e[$b]||null}function lt(e){return us(e),e[Ub]||null}function us(e,t){if(null==e)throw new _(-919,!1)}const ou=U({ngErrorCode:U}),np=U({ngErrorMessage:U}),Ao=U({ngTokenPath:U});function iu(e,t){return rp("",-200,t)}function su(e,t){throw new _(-201,!1)}function rp(e,t,n){const r=new _(t,e);return r[ou]=t,r[np]=e,n&&(r[Ao]=n),r}let au;function op(){return au}function Pe(e){const t=au;return au=e,t}function ip(e,t,n){const r=is(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:8&n?null:void 0!==t?t:void su()}const wn={};class Qb{injector;constructor(t){this.injector=t}retrieve(t,n){const r=ko(n)||0;try{return this.injector.get(t,8&r?null:wn,r)}catch(o){if(Yc(o))return o;throw o}}}function Yb(e,t=0){const n=Qc();if(void 0===n)throw new _(-203,!1);if(null===n)return ip(e,void 0,t);{const r=function Kb(e){return{optional:!!(8&e),host:!!(1&e),self:!!(2&e),skipSelf:!!(4&e)}}(t),o=n.retrieve(e,r);if(Yc(o)){if(r.optional)return null;throw o}return o}}function V(e,t=0){return(op()||Yb)(F(e),t)}function w(e,t){return V(e,ko(t))}function ko(e){return typeof e>"u"||"number"==typeof e?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function uu(e){const t=[];for(let n=0;n<e.length;n++){const r=F(e[n]);if(Array.isArray(r)){if(0===r.length)throw new _(900,!1);let o,i=0;for(let s=0;s<r.length;s++){const a=r[s],c=Jb(a);"number"==typeof c?-1===c?o=a.token:i|=c:o=a}t.push(V(o,i))}else t.push(V(r))}return t}function Jb(e){return e.__NG_DI_FLAG__}function bn(e,t){return e.hasOwnProperty(Cn)?e[Cn]:null}function yr(e,t){e.forEach(n=>Array.isArray(n)?yr(n,t):t(n))}function ls(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function fs(e,t,n){let r=xo(e,t);return r>=0?e[1|r]=n:(r=~r,function up(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function lu(e,t){const n=xo(e,t);if(n>=0)return e[1|n]}function xo(e,t){return function eM(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const 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)}(e,t,1)}const Et={},J=[],vr=new C(""),du=new C("",-1),fu=new C("");class hs{get(t,n=wn){if(n===wn){const o=rp("",-201);throw o.name="\u0275NotFound",o}return n}}function nM(...e){return{\u0275providers:hu(0,e),\u0275fromNgModule:!0}}function hu(e,...t){const n=[],r=new Set;let o;const i=s=>{n.push(s)};return yr(t,s=>{const a=s;ps(a,i,[],r)&&(o||=[],o.push(a))}),void 0!==o&&dp(o,i),n}function dp(e,t){for(let n=0;n<e.length;n++){const{ngModule:r,providers:o}=e[n];pu(o,i=>{t(i,r)})}}function ps(e,t,n,r){if(!(e=F(e)))return!1;let o=null,i=ss(e);const s=!i&&z(e);if(i||s){if(s&&!s.standalone)return!1;o=e}else{const c=e.ngModule;if(i=ss(c),!i)return!1;o=c}const a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){const c="function"==typeof s.dependencies?s.dependencies():s.dependencies;for(const u of c)ps(u,t,n,r)}}else{if(!i)return!1;{if(null!=i.imports&&!a){let u;r.add(o),yr(i.imports,l=>{ps(l,t,n,r)&&(u||=[],u.push(l))}),void 0!==u&&dp(u,t)}if(!a){const u=bn(o)||(()=>new o);t({provide:o,useFactory:u,deps:J},o),t({provide:fu,useValue:o,multi:!0},o),t({provide:vr,useValue:()=>V(o),multi:!0},o)}const c=i.providers;if(null!=c&&!a){const u=e;pu(c,l=>{t(l,u)})}}}return o!==e&&void 0!==e.providers}function pu(e,t){for(let n of e)nu(n)&&(n=n.\u0275providers),Array.isArray(n)?pu(n,t):t(n)}const rM=U({provide:String,useValue:U});function gu(e){return null!==e&&"object"==typeof e&&rM in e}function St(e){return"function"==typeof e}const mu=new C(""),gs={},gp={};let yu;function vu(){return void 0===yu&&(yu=new hs),yu}class tt{}class Mn extends tt{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,_u(t,s=>this.processProvider(s)),this.records.set(du,Dr(void 0,this)),o.has("environment")&&this.records.set(tt,Dr(void 0,this));const i=this.records.get(mu);null!=i&&"string"==typeof i.value&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(fu,J,{self:!0}))}retrieve(t,n){const r=ko(n)||0;try{return this.get(t,wn,r)}catch(o){if(Yc(o))return o;throw o}}destroy(){Oo(this),this._destroyed=!0;const t=M(null);try{for(const r of this._ngOnDestroyHooks)r.ngOnDestroy();const n=this._onDestroyHooks;this._onDestroyHooks=[];for(const r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),M(t)}}onDestroy(t){return Oo(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Oo(this);const n=zt(this),r=Pe(void 0);try{return t()}finally{zt(n),Pe(r)}}get(t,n=wn,r){if(Oo(this),t.hasOwnProperty(tp))return t[tp](this);const o=ko(r),s=zt(this),a=Pe(void 0);try{if(!(4&o)){let u=this.records.get(t);if(void 0===u){const l=function cM(e){return"function"==typeof e||"object"==typeof e&&"InjectionToken"===e.ngMetadataName}(t)&&is(t);u=l&&this.injectableDefInScope(l)?Dr(Du(t),gs):null,this.records.set(t,u)}if(null!=u)return this.hydrate(t,u,o)}return(2&o?vu():this.parent).get(t,n=8&o&&n===wn?null:n)}catch(c){const u=function qb(e){return e[ou]}(c);throw-200===u||-201===u?new _(u,null):c}finally{Pe(a),zt(s)}}resolveInjectorInitializers(){const t=M(null),n=zt(this),r=Pe(void 0);try{const i=this.get(vr,J,{self:!0});for(const s of i)s()}finally{zt(n),Pe(r),M(t)}}toString(){return"R3Injector[...]"}processProvider(t){let n=St(t=F(t))?t:F(t&&t.provide);const r=function iM(e){return gu(e)?Dr(void 0,e.useValue):Dr(function mp(e,t,n){let r;if(St(e)){const o=F(e);return bn(o)||Du(o)}if(gu(e))r=()=>F(e.useValue);else if(function hp(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...uu(e.deps||[]));else if(function fp(e){return!(!e||!e.useExisting)}(e))r=(o,i)=>V(F(e.useExisting),void 0!==i&&8&i?8:void 0);else{const o=F(e&&(e.useClass||e.provide));if(!function sM(e){return!!e.deps}(e))return bn(o)||Du(o);r=()=>new o(...uu(e.deps))}return r}(e),gs)}(t);if(!St(t)&&!0===t.multi){let o=this.records.get(n);o||(o=Dr(void 0,gs,!0),o.factory=()=>uu(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){const o=M(null);try{if(n.value===gp)throw iu();return n.value===gs&&(n.value=gp,n.value=n.factory(void 0,r)),"object"==typeof n.value&&n.value&&function aM(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{M(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;const n=F(t.providedIn);return"string"==typeof n?"any"===n||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){const n=this._onDestroyHooks.indexOf(t);-1!==n&&this._onDestroyHooks.splice(n,1)}}function Du(e){const t=is(e),n=null!==t?t.factory:bn(e);if(null!==n)return n;if(e instanceof C)throw new _(-204,!1);if(e instanceof Function)return function oM(e){if(e.length>0)throw new _(-204,!1);const n=function Lb(e){return(e?.[as]??null)||null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new _(-204,!1)}function Oo(e){if(e.destroyed)throw new _(-205,!1)}function Dr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function _u(e,t){for(const n of e)Array.isArray(n)?_u(n,t):n&&nu(n)?_u(n.\u0275providers,t):t(n)}function yp(e,t){let n;e instanceof Mn?(Oo(e),n=e):n=new Qb(e);const o=zt(n),i=Pe(void 0);try{return t()}finally{zt(o),Pe(i)}}function Eu(){return void 0!==op()||null!=Qc()}const R=11,S=27,q=10;function oe(e){return Array.isArray(e)&&"object"==typeof e[1]}function Se(e){return Array.isArray(e)&&!0===e[1]}function Dp(e){return!!(4&e.flags)}function ft(e){return e.componentOffset>-1}function wr(e){return!(1&~e.flags)}function ht(e){return!!e.template}function Zt(e){return!!(512&e[2])}function At(e){return!(256&~e[2])}function _e(e){for(;Array.isArray(e);)e=e[0];return e}function he(e,t){return _e(t[e.index])}function Te(e,t){const n=t[e];return oe(n)?n:n[0]}function bu(e){return!(128&~e[2])}function Ne(e,t){return null==t?null:e[t]}function bp(e){e[17]=0}function Mu(e){1024&e[2]||(e[2]|=1024,bu(e)&&Sr(e))}function Po(e){return!!(9216&e[2]||e[24]?.dirty)}function Su(e){e[10].changeDetectionScheduler?.notify(8),64&e[2]&&(e[2]|=1024),Po(e)&&Sr(e)}function Sr(e){e[10].changeDetectionScheduler?.notify(0);let t=kt(e);for(;null!==t&&!(8192&t[2])&&(t[2]|=8192,bu(t));)t=kt(t)}function Ds(e,t){if(At(e))throw new _(911,!1);null===e[21]&&(e[21]=[]),e[21].push(t)}function kt(e){const t=e[3];return Se(t)?t[3]:t}const N={lFrame:Up(null),bindingsEnabled:!0,skipHydrationRootTNode:null};let Au=!1;function Ap(){return null!==N.skipHydrationRootTNode}function g(){return N.lFrame.lView}function x(){return N.lFrame.tView}function A(){let e=xp();for(;null!==e&&64===e.type;)e=e.parent;return e}function xp(){return N.lFrame.currentTNode}function Rt(e,t){const n=N.lFrame;n.currentTNode=e,n.isParent=t}function Op(){return N.lFrame.isParent}function Fp(){N.lFrame.isParent=!1}function jp(){return Au}function _s(e){const t=Au;return Au=e,t}function Ot(e){const t=N.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function CM(e,t){const n=N.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ru(t)}function Ru(e){N.lFrame.currentDirectiveIndex=e}function Es(e){N.lFrame.currentQueryIndex=e}function bM(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[5]:null}function Hp(e,t,n){if(4&n){let o=t,i=e;for(;!(o=o.parent,null!==o||1&n||(o=bM(i),null===o||(i=i[14],10&o.type))););if(null===o)return!1;t=o,e=i}const r=N.lFrame=$p();return r.currentTNode=t,r.lView=e,!0}function Fu(e){const t=$p(),n=e[1];N.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function $p(){const e=N.lFrame,t=null===e?null:e.child;return null===t?Up(e):t}function Up(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function zp(){const e=N.lFrame;return N.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Gp=zp;function Pu(){const e=zp();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function Ie(){return N.lFrame.selectedIndex}function Rn(e){N.lFrame.selectedIndex=e}let Wp=!0;function Is(){return Wp}function jo(e){Wp=e}function qp(e,t=null,n=null,r){const o=Zp(e,t,n);return o.resolveInjectorInitializers(),o}function Zp(e,t=null,n=null,r,o=new Set){const i=[n||J,nM(e)];return new Mn(i,t||vu(),null,o)}class je{static THROW_IF_NOT_FOUND=wn;static NULL=new hs;static create(t,n){if(Array.isArray(t))return qp({name:""},n,t);{const r=t.name??"";return qp({name:r},t.parent,t.providers)}}static \u0275prov=j({token:je,providedIn:"any",factory:()=>V(du)});static __NG_ELEMENT_ID__=-1}const Ft=new C("");let Pt=(()=>class e{static __NG_ELEMENT_ID__=RM;static __NG_ENV_ID__=n=>n})();class Qp extends Pt{_lView;constructor(t){super(),this._lView=t}get destroyed(){return At(this._lView)}onDestroy(t){const n=this._lView;return Ds(n,t),()=>function Tu(e,t){if(null===e[21])return;const n=e[21].indexOf(t);-1!==n&&e[21].splice(n,1)}(n,t)}}function RM(){return new Qp(g())}const xM=!1,OM=new C("");let xn=(()=>{class e{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new bb(!1);debugTaskTracker=w(OM,{optional:!0});get hasPendingTasks(){return!this.destroyed&&this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new Fe(n=>{n.next(!1),n.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);const n=this.taskId++;return this.pendingTasks.add(n),this.debugTaskTracker?.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.debugTaskTracker?.remove(n),0===this.pendingTasks.size&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static \u0275prov=j({token:e,providedIn:"root",factory:()=>new e})}return e})();const Qt=class FM extends hr{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Eu()&&(this.destroyRef=w(Pt,{optional:!0})??void 0,this.pendingTasks=w(xn,{optional:!0})??void 0)}emit(t){const n=M(null);try{super.next(t)}finally{M(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&"object"==typeof t){const 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)));const a=super.subscribe({next:o,error:i,complete:s});return t instanceof Xe&&t.add(a),a}wrapInTimeout(t){return n=>{const r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{void 0!==r&&this.pendingTasks?.remove(r)}})}}};function Cs(...e){}function Yp(e){let t,n;function r(){e=Cs;try{void 0!==n&&"function"==typeof cancelAnimationFrame&&cancelAnimationFrame(n),void 0!==t&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),"function"==typeof requestAnimationFrame&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function PM(e){return queueMicrotask(()=>e()),()=>{e=Cs}}const Lu="isAngularZone",ws=Lu+"_ID";let LM=0;class Y{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Qt(!1);onMicrotaskEmpty=new Qt(!1);onStable=new Qt(!1);onError=new Qt(!1);constructor(t){const{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=xM}=t;if(typeof Zone>"u")throw new _(908,!1);Zone.assertZonePatched();const 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,function VM(e){const t=()=>{!function BM(e){function t(){Yp(()=>{e.callbackScheduled=!1,Bu(e),e.isCheckStableRunning=!0,ju(e),e.isCheckStableRunning=!1})}e.isCheckStableRunning||e.callbackScheduled||(e.callbackScheduled=!0,e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Bu(e))}(e)},n=LM++;e._inner=e._inner.fork({name:"angular",properties:{[Lu]:!0,[ws]:n,[ws+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(function $M(e){return Xp(e,"__ignore_ng_zone__")}(c))return r.invokeTask(i,s,a,c);try{return Kp(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||e.shouldCoalesceRunChangeDetection)&&t(),Jp(e)}},onInvoke:(r,o,i,s,a,c,u)=>{try{return Kp(e),r.invoke(i,s,a,c,u)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!function UM(e){return Xp(e,"__scheduler_tick__")}(c)&&t(),Jp(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&("microTask"==s.change?(e._hasPendingMicrotasks=s.microTask,Bu(e),ju(e)):"macroTask"==s.change&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}(s)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get(Lu)}static assertInAngularZone(){if(!Y.isInAngularZone())throw new _(909,!1)}static assertNotInAngularZone(){if(Y.isInAngularZone())throw new _(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,jM,Cs,Cs);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const jM={};function ju(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Bu(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&!0===e.callbackScheduled)}function Kp(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Jp(e){e._nesting--,ju(e)}class HM{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Qt;onMicrotaskEmpty=new Qt;onStable=new Qt;onError=new Qt;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 Xp(e,t){return!(!Array.isArray(e)||1!==e.length)&&!0===e[0]?.data?.[t]}class Nr{_console=console;handleError(t){this._console.error("ERROR",t)}}const Yt=new C("",{factory:()=>{const e=w(Y),t=w(tt);let n;return r=>{e.runOutsideAngular(()=>{t.destroyed&&!n?setTimeout(()=>{throw r}):(n??=t.get(Nr),n.handleError(r))})}}}),zM={provide:vr,useValue:()=>{w(Nr,{optional:!0})},multi:!0};class On{}const $u=new C("",{factory:()=>!0}),qM=new C("");let ng=(()=>{class e{static \u0275prov=j({token:e,providedIn:"root",factory:()=>new ZM})}return e})();class ZM{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){const r=this.queues.get(t.zone);r.has(t)&&(r.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){const n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);const r=this.queues.get(n);r.has(t)||r.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(const[n,r]of this.queues)t||=null===n?this.flushQueue(r):n.run(()=>this.flushQueue(r));t||(this.dirtyEffectCount=0)}}flushQueue(t){let n=!1;for(const r of t)r.dirty&&(this.dirtyEffectCount--,n=!0,r.run());return n}}function Bo(e){return t=>{if(function eS(e){return ye(e?.lift)}(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function Ar(e,t,n,r,o){return new tS(e,t,n,r,o)}class tS extends Uc{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:n}=this;super.unsubscribe(),!n&&(null===(t=this.onFinalize)||void 0===t||t.call(this))}}}function ig(e,t){return Bo((n,r)=>{let o=0;n.subscribe(Ar(r,i=>{r.next(e.call(t,i,o++))}))})}function Lt(e){return{toString:e}.toString()}function yg(e,t,n,r){null!==t?t.applyValueToInputSignal(t,r):e[n]=r}class OS{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function FS(){const e=_g(this),t=e?.current;if(t){const n=e.previous;if(n===Et)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function PS(e,t,n,r,o){const i=this.declaredInputs[r],s=_g(e)||function LS(e,t){return e[Dg]=t}(e,{previous:Et,current:null}),a=s.current||(s.current={}),c=s.previous,u=c[i];a[i]=new OS(u&&u.currentValue,n,c===Et),yg(e,t,o,n)}const Dg="__ngSimpleChanges__";function _g(e){return e[Dg]||null}const Pn=[],W=function(e,t=null,n){for(let r=0;r<Pn.length;r++)(0,Pn[r])(e,t,n)};var I=function(e){return e[e.TemplateCreateStart=0]="TemplateCreateStart",e[e.TemplateCreateEnd=1]="TemplateCreateEnd",e[e.TemplateUpdateStart=2]="TemplateUpdateStart",e[e.TemplateUpdateEnd=3]="TemplateUpdateEnd",e[e.LifecycleHookStart=4]="LifecycleHookStart",e[e.LifecycleHookEnd=5]="LifecycleHookEnd",e[e.OutputStart=6]="OutputStart",e[e.OutputEnd=7]="OutputEnd",e[e.BootstrapApplicationStart=8]="BootstrapApplicationStart",e[e.BootstrapApplicationEnd=9]="BootstrapApplicationEnd",e[e.BootstrapComponentStart=10]="BootstrapComponentStart",e[e.BootstrapComponentEnd=11]="BootstrapComponentEnd",e[e.ChangeDetectionStart=12]="ChangeDetectionStart",e[e.ChangeDetectionEnd=13]="ChangeDetectionEnd",e[e.ChangeDetectionSyncStart=14]="ChangeDetectionSyncStart",e[e.ChangeDetectionSyncEnd=15]="ChangeDetectionSyncEnd",e[e.AfterRenderHooksStart=16]="AfterRenderHooksStart",e[e.AfterRenderHooksEnd=17]="AfterRenderHooksEnd",e[e.ComponentStart=18]="ComponentStart",e[e.ComponentEnd=19]="ComponentEnd",e[e.DeferBlockStateStart=20]="DeferBlockStateStart",e[e.DeferBlockStateEnd=21]="DeferBlockStateEnd",e[e.DynamicComponentStart=22]="DynamicComponentStart",e[e.DynamicComponentEnd=23]="DynamicComponentEnd",e[e.HostBindingsUpdateStart=24]="HostBindingsUpdateStart",e[e.HostBindingsUpdateEnd=25]="HostBindingsUpdateEnd",e}(I||{});function As(e,t,n){Ig(e,t,3,n)}function ks(e,t,n,r){(3&e[2])===n&&Ig(e,t,n,r)}function Xu(e,t){let n=e[2];(3&n)===t&&(n&=16383,n+=1,e[2]=n)}function Ig(e,t,n,r){const i=r??-1,s=t.length-1;let a=0;for(let c=void 0!==r?65535&e[17]:0;c<s;c++)if("number"==typeof t[c+1]){if(a=t[c],null!=r&&a>=r)break}else t[c]<0&&(e[17]+=65536),(a<i||-1==i)&&($S(e,n,t,c),e[17]=(4294901760&e[17])+c+2),c++}function Cg(e,t){W(I.LifecycleHookStart,e,t);const n=M(null);try{t.call(e)}finally{M(n),W(I.LifecycleHookEnd,e,t)}}function $S(e,t,n,r){const o=n[r]<0,i=n[r+1],a=e[o?-n[r]:n[r]];o?e[2]>>14<e[17]>>16&&(3&e[2])===t&&(e[2]+=16384,Cg(a,i)):Cg(a,i)}class Uo{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r,o){this.factory=t,this.name=o,this.canSeeViewProviders=n,this.injectImpl=r}}function bg(e){return 3===e||4===e||6===e}function Mg(e){return 64===e.charCodeAt(0)}function jr(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const o=t[r];"number"==typeof o?n=o:0===n||Sg(e,n,o,0,-1===n||2===n?t[++r]:null)}}return e}function Sg(e,t,n,r,o){let i=0,s=e.length;if(-1===t)s=-1;else for(;i<e.length;){const a=e[i++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=i-1;break}}}for(;i<e.length;){const a=e[i];if("number"==typeof a)break;if(a===n)return void(null!==o&&(e[i+1]=o));i++,null!==o&&i++}-1!==s&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),null!==o&&e.splice(i++,0,o)}function zo(e){return 32767&e}function Go(e,t){let n=function WS(e){return e>>16}(e),r=t;for(;n>0;)r=r[14],n--;return r}let nl=!0;function Rs(e){const t=nl;return nl=e,t}let qS=0;const Ct={};function xs(e,t){const n=Ag(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,rl(r.data,e),rl(t,null),rl(r.blueprint,null));const o=Os(e,t),i=e.injectorIndex;if(function tl(e){return-1!==e}(o)){const s=zo(o),a=Go(o,t),c=a[1].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|c[s+u]}return t[i+8]=o,i}function rl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ag(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Os(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){if(r=Lg(o),null===r)return-1;if(n++,o=o[14],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function ol(e,t,n){!function ZS(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(To)&&(r=n[To]),null==r&&(r=n[To]=qS++);const o=255&r;t.data[e+(o>>5)]|=1<<o}(e,t,n)}function kg(e,t,n){if(8&n||void 0!==e)return e;su()}function Rg(e,t,n,r){if(8&n&&void 0===r&&(r=null),!(3&n)){const o=e[9],i=Pe(void 0);try{return o?o.get(t,r,8&n):ip(t,r,8&n)}finally{Pe(i)}}return kg(r,0,n)}function xg(e,t,n,r=0,o){if(null!==e){if(2048&t[2]&&!(2&r)){const s=function eT(e,t,n,r,o){let i=e,s=t;for(;null!==i&&null!==s&&2048&s[2]&&!Zt(s);){const a=Og(i,s,n,2|r,Ct);if(a!==Ct)return a;let c=i.parent;if(!c){const u=s[20];if(u){const l=u.get(n,Ct,-5&r);if(l!==Ct)return l}c=Lg(s),s=s[14]}i=c}return o}(e,t,n,r,Ct);if(s!==Ct)return s}const i=Og(e,t,n,r,Ct);if(i!==Ct)return i}return Rg(t,n,r,o)}function Og(e,t,n,r,o){const i=function KS(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(To)?e[To]:void 0;return"number"==typeof t?t>=0?255&t:JS:t}(n);if("function"==typeof i){if(!Hp(t,e,r))return 1&r?kg(o,0,r):Rg(t,n,r,o);try{let s;if(s=i(r),null!=s||8&r)return s;su()}finally{Gp()}}else if("number"==typeof i){let s=null,a=Ag(e,t),c=-1,u=1&r?t[15][5]:null;for((-1===a||4&r)&&(c=-1===a?Os(e,t):t[a+8],-1!==c&&Pg(r,!1)?(s=t[1],a=zo(c),t=Go(c,t)):a=-1);-1!==a;){const l=t[1];if(Fg(i,a,l.data)){const d=YS(a,t,n,s,r,u);if(d!==Ct)return d}c=t[a+8],-1!==c&&Pg(r,t[1].data[a+8]===u)&&Fg(i,a,t)?(s=l,a=zo(c),t=Go(c,t)):a=-1}}return o}function YS(e,t,n,r,o,i){const s=t[1],a=s.data[e+8],l=function Fs(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,c=e.directiveStart,l=i>>20,f=o?a+l:e.directiveEnd;for(let h=r?a:a+l;h<f;h++){const p=s[h];if(h<c&&n===p||h>=c&&p.type===n)return h}if(o){const h=s[c];if(h&&ht(h)&&h.type===n)return c}return null}(a,s,n,null==r?ft(a)&&nl:r!=s&&!!(3&a.type),1&o&&i===a);return null!==l?Wo(t,s,l,a,o):Ct}function Wo(e,t,n,r,o){let i=e[n];const s=t.data;if(i instanceof Uo){const a=i;if(a.resolving)throw iu();const c=Rs(a.canSeeViewProviders);a.resolving=!0;const d=a.injectImpl?Pe(a.injectImpl):null;Hp(e,r,0);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&function HS(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=function vg(e){return e.type.prototype.ngOnChanges&&(e.setInput=PS),FS}(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}(n,s[n],t)}finally{null!==d&&Pe(d),Rs(c),a.resolving=!1,Gp()}}return i}function Fg(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Pg(e,t){return!(2&e||1&e&&t)}class ae{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return xg(this._tNode,this._lView,t,ko(r),n)}}function JS(){return new ae(A(),g())}function Lg(e){const t=e[1],n=t.type;return 2===n?t.declTNode:1===n?e[5]:null}function cT(){return Br(A(),g())}function Br(e,t){return new jn(he(e,t))}let jn=(()=>class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=cT})();function qo(e){return!(128&~e.flags)}Symbol;var Ls=function(e){return e[e.OnPush=0]="OnPush",e[e.Eager=1]="Eager",e[e.Default=1]="Default",e}(Ls||{});const js=new Map;let hT=0;function ul(e){js.delete(e[19])}const dl="__ngContext__";function Ve(e,t){oe(t)?(e[dl]=t[19],function gT(e){js.set(e[19],e)}(t)):e[dl]=t}function Jg(e){return em(e[12])}function Xg(e){return em(e[4])}function em(e){for(;null!==e&&!Se(e);)e=e[4];return e}let hl;const Vr=new C("",{factory:()=>PT}),PT="ng",am=new C(""),cm=new C("",{providedIn:"platform",factory:()=>"unknown"}),um=new C("",{factory:()=>w(Ft).body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null}),UT=new C("",{factory:()=>!1});function zs(e){return!(32&~e.flags)}function Lm(e,t){const n=e.contentQueries;if(null!==n){const r=M(null);try{for(let o=0;o<n.length;o+=2){const s=n[o+1];if(-1!==s){const a=e.data[s];Es(n[o]),a.contentQueries(2,t[s],s)}}}finally{M(r)}}}function Tl(e,t,n){Es(0);const r=M(null);try{t(e,n)}finally{M(r)}}function Nl(e,t,n){if(Dp(t)){const r=M(null);try{const i=t.directiveEnd;for(let s=t.directiveStart;s<i;s++){const a=e.data[s];a.contentQueries&&a.contentQueries(1,n[s],s)}}finally{M(r)}}}var ot=function(e){return e[e.Emulated=0]="Emulated",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e[e.ExperimentalIsolatedShadowDom=4]="ExperimentalIsolatedShadowDom",e}(ot||{});class Gm{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss)`}}function nn(e){return e instanceof Gm?e.changingThisBreaksApplicationSecurity:e}function ta(e,t,n){return e.createElement(t,n)}function Bn(e,t,n,r,o){e.insertBefore(t,n,r,o)}function ty(e,t,n){e.appendChild(t,n)}function ny(e,t,n,r,o){null!==r?Bn(e,t,n,r,o):ty(e,t,n)}function oy(e,t,n){const{mergedAttrs:r,classes:o,styles:i}=n;null!==r&&function GS(e,t,n){let r=0;for(;r<n.length;){const o=n[r];if("number"==typeof o){if(0!==o)break;r++;const i=n[r++],s=n[r++],a=n[r++];e.setAttribute(t,s,a,i)}else{const i=o,s=n[++r];Mg(i)?e.setProperty(t,i,s):e.setAttribute(t,i,s),r++}}}(e,t,r),null!==o&&function GN(e,t,n){""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n)}(e,t,o),null!==i&&function zN(e,t,n){e.setAttribute(t,"style",n)}(e,t,i)}function ay(e){return e.ownerDocument.defaultView}function d0(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}const fy="ng-template";function f0(e,t,n,r){let o=0;if(r){for(;o<t.length&&"string"==typeof t[o];o+=2)if("class"===t[o]&&-1!==d0(t[o+1].toLowerCase(),n,0))return!0}else if(Bl(e))return!1;if(o=t.indexOf(1,o),o>-1){let i;for(;++o<t.length&&"string"==typeof(i=t[o]);)if(i.toLowerCase()===n)return!0}return!1}function Bl(e){return 4===e.type&&e.value!==fy}function h0(e,t,n){return t===(4!==e.type||n?e.value:fy)}function p0(e,t,n){let r=4;const o=e.attrs,i=null!==o?function y0(e){for(let t=0;t<e.length;t++)if(bg(e[t]))return t;return e.length}(o):0;let s=!1;for(let a=0;a<t.length;a++){const c=t[a];if("number"!=typeof c){if(!s)if(4&r){if(r=2|1&r,""!==c&&!h0(e,c,n)||""===c&&1===t.length){if(gt(r))return!1;s=!0}}else if(8&r){if(null===o||!f0(e,o,c,n)){if(gt(r))return!1;s=!0}}else{const u=t[++a],l=g0(c,o,Bl(e),n);if(-1===l){if(gt(r))return!1;s=!0;continue}if(""!==u){let d;if(d=l>i?"":o[l+1].toLowerCase(),2&r&&u!==d){if(gt(r))return!1;s=!0}}}}else{if(!s&&!gt(r)&&!gt(c))return!1;if(s&&gt(c))continue;s=!1,r=c|1&r}}return gt(r)||s}function gt(e){return!(1&e)}function g0(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){const s=t[o];if(s===e)return o;if(3===s||6===s)i=!0;else{if(1===s||2===s){let a=t[++o];for(;"string"==typeof a;)a=t[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=i?1:2}return-1}return function v0(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function hy(e,t,n=!1){for(let r=0;r<t.length;r++)if(p0(e,t[r],n))return!0;return!1}function D0(e,t){e:for(let n=0;n<t.length;n++){const r=t[n];if(e.length===r.length){for(let o=0;o<e.length;o++)if(e[o]!==r[o])continue e;return!0}}return!1}function py(e,t){return e?":not("+t.trim()+")":t}function _0(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!gt(s)&&(t+=py(i,o),o=""),r=s,i=i||!gt(r);n++}return""!==o&&(t+=py(i,o)),t}const G={};function Vl(e,t,n,r,o,i,s,a,c,u,l){const d=S+r,f=d+o,h=function C0(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:G);return n}(d,f),p="function"==typeof u?u():u;return h[1]={type:e,blueprint:h,template:n,queries:null,viewQuery:a,declTNode:t,data:h.slice().fill(null,d),bindingStartIndex:d,expandoStartIndex:f,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:c,consts:p,incompleteFirstPass:!1,ssrId:l}}function ra(e,t,n,r,o,i,s,a,c,u,l){const d=t.blueprint.slice();return d[0]=o,d[2]=1228|r,(null!==u||e&&2048&e[2])&&(d[2]|=2048),bp(d),d[3]=d[14]=e,d[8]=n,d[10]=s||e&&e[10],d[R]=a||e&&e[R],d[9]=c||e&&e[9]||null,d[5]=i,d[19]=function pT(){return hT++}(),d[6]=l,d[20]=u,d[15]=2==t.type?e[15]:d,d}function Hl(e){let t=16;return e.signals?t=4096:e.onPush&&(t=64),t}function ri(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function $l(e,t){return e[12]?e[13][4]=t:e[12]=t,e[13]=t,t}var oa=function(e){return e[e.None=0]="None",e[e.SignalBased=1]="SignalBased",e[e.HasDecoratorInputTransform=2]="HasDecoratorInputTransform",e}(oa||{});function rn(e,t,n,r){const o=M(null);try{const[i,s,a]=e.inputs[n];let c=null;0!==(s&oa.SignalBased)&&(c=t[i][me]),null!==c&&void 0!==c.transformFn?r=c.transformFn(r):null!==a&&(r=a.call(t,r)),null!==e.setInput?e.setInput(t,c,r,n,i):yg(t,c,i,r)}finally{M(o)}}var on=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(on||{});function zl(e,t){return(void 0)(e,t)}typeof document<"u"&&document;const oi=new WeakMap,Wl=new WeakSet;const sn=new Set;var Jl=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Jl||{});const Wr=new C(""),Ey=new Set;let Iy=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=j({token:e,providedIn:"root",factory:()=>new e})}return e})();const la=new C("",{factory:()=>{const e=w(tt),t=new Set;return e.onDestroy(()=>t.clear()),{queue:t,isScheduled:!1,scheduler:null,injector:e}}});function Sy(e,t,n){const r=e.get(la);if(Array.isArray(t))for(const o of t)r.queue.add(o),n?.detachedLeaveAnimationFns?.push(o);else r.queue.add(t),n?.detachedLeaveAnimationFns?.push(t);r.scheduler&&r.scheduler(e)}function Ty(e,t,n,r){const o=e?.[26]?.enter;null!==t&&o&&o.has(n.index)&&function Xl(e,t){for(const[n,r]of t)Sy(e,r.animateFns)}(r,o)}function Ny(e,t,n,r){try{n.get(du)}catch{return r(!1)}const o=e?.[26],i=function G0(e,t,n){const r=new Map,o=n?.leave;if(o&&o.has(t.index)&&r.set(t.index,o.get(t.index)),e&&o)for(const[i,s]of o){if(r.has(i))continue;let c=e[1].data[i].parent;for(;c;){if(c===t){r.set(i,s);break}c=c.parent}}return r}(e,t,o);if(0===i.size){let s=!1;if(e){const a=[];fa(e,t,a),s=a.length>0}if(!s)return r(!1)}e&&sn.add(e[19]),Sy(n,()=>function W0(e,t,n,r,o){const i=[];if(n&&n.leave)for(const[s]of r){if(!n.leave.has(s))continue;const a=n.leave.get(s);for(const c of a.animateFns){const{promise:u}=c();i.push(u)}n.detachedLeaveAnimationFns=void 0}if(e&&fa(e,t,i),i.length>0){const s=n||e?.[26];if(s){const a=s.running;a&&i.push(a),s.running=Promise.allSettled(i),function q0(e,t,n){t.then(()=>{e[26]?.running===t&&(e[26].running=void 0,sn.delete(e[19])),n(!0)})}(e,s.running,o)}else Promise.allSettled(i).then(()=>{e&&sn.delete(e[19]),o(!0)})}else e&&sn.delete(e[19]),o(!1)}(e,t,o||void 0,i,r),o||void 0)}function fa(e,t,n){if(ft(t))Ay(Te(t.index,e),n);else if(12&t.type){const o=e[t.index];if(Se(o))for(let i=q;i<o.length;i++)Ay(o[i],n)}let r=t.child;for(;r;)fa(e,r,n),r=r.next}function Ay(e,t){const n=e[26];if(n&&n.leave)for(const o of n.leave.values())for(const i of o.animateFns){const{promise:s}=i();t.push(s)}let r=e[1].firstChild;for(;r;)fa(e,r,t),r=r.next}function qr(e,t,n,r,o,i,s,a){if(null!=o){let c,u=!1;Se(o)?c=o:oe(o)&&(u=!0,o=o[0]);const l=_e(o);0===e&&null!==r?(Ty(a,r,i,n),null==s?ty(t,r,l):Bn(t,r,l,s||null,!0)):1===e&&null!==r?(Ty(a,r,i,n),Bn(t,r,l,s||null,!0),function x0(e,t){const n=oi.get(e);if(!n||0===n.length)return;const r=t.parentNode,o=t.previousSibling;for(let i=n.length-1;i>=0;i--){const s=n[i],a=s.parentNode;s===t?(n.splice(i,1),Wl.add(s),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}}))):(o&&s===o||a&&r&&a!==r)&&(n.splice(i,1),s.dispatchEvent(new CustomEvent("animationend",{detail:{cancel:!0}})),s.parentNode?.removeChild(s))}}(i,l)):2===e?(a?.[26]?.leave?.has(i.index)&&function Zl(e,t){const n=oi.get(e);n?n.includes(t)||n.push(t):oi.set(e,[t])}(i,l),Ny(a,i,n,d=>{Wl.has(l)?Wl.delete(l):function ti(e,t,n,r){e.removeChild(null,t,n,r)}(t,l,u,d)})):3===e&&Ny(a,i,n,()=>{t.destroyNode(l)}),null!=c&&function X0(e,t,n,r,o,i,s){const a=r[7];a!==_e(r)&&qr(t,e,n,i,a,o,s);for(let u=q;u<r.length;u++){const l=r[u];ha(l[1],l,e,t,i,a)}}(t,e,n,c,i,r,s)}}function Ry(e,t){t[10].changeDetectionScheduler?.notify(9),ha(e,t,t[R],2,null,null)}function ed(e,t){const n=e[9],r=n.indexOf(t);n.splice(r,1)}function td(e,t){if(At(t))return;const n=M(null);try{t[2]&=-129,t[2]|=256,t[24]&&So(t[24]),function K0(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const o=t[n[r]];if(!(o instanceof Uo)){const i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){const a=o[i[s]],c=i[s+1];W(I.LifecycleHookStart,a,c);try{c.call(a)}finally{W(I.LifecycleHookEnd,a,c)}}else{W(I.LifecycleHookStart,o,i);try{i.call(o)}finally{W(I.LifecycleHookEnd,o,i)}}}}}(e,t),function Y0(e,t){const n=e.cleanup,r=t[7];if(null!==n)for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const a=n[s+3];a>=0?r[a]():r[-a].unsubscribe(),s+=2}else n[s].call(r[n[s+1]]);null!==r&&(t[7]=null);const o=t[21];if(null!==o){t[21]=null;for(let s=0;s<o.length;s++)(0,o[s])()}const i=t[23];if(null!==i){t[23]=null;for(const s of i)s.destroy()}}(e,t),1===t[1].type&&t[R].destroy();const r=t[16];if(null!==r&&Se(t[3])){r!==t[3]&&ed(r,t);const o=t[18];null!==o&&o.detachView(e)}ul(t)}finally{M(n)}}function nd(e,t,n){return function xy(e,t,n){let r=t;for(;null!==r&&168&r.type;)r=(t=r).parent;if(null===r)return n[0];if(ft(r)){const{encapsulation:o}=e.data[r.directiveStart+r.componentOffset];if(o===ot.None||o===ot.Emulated)return null}return he(r,n)}(e,t.parent,n)}function Oy(e,t,n){return Py(e,t,n)}let Py=function Fy(e,t,n){return 40&e.type?he(e,n):null};function od(e,t,n,r){const o=nd(e,r,t),i=t[R],a=Oy(r.parent||t[5],r,t);if(null!=o)if(Array.isArray(n))for(let c=0;c<n.length;c++)ny(i,o,n[c],a,!1);else ny(i,o,n,a,!1)}function zn(e,t){if(null!==t){const n=t.type;if(3&n)return he(t,e);if(4&n)return id(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return zn(e,r);{const o=e[t.index];return Se(o)?id(-1,o):_e(o)}}if(128&n)return zn(e,t.next);if(32&n)return zl(t,e)()||_e(e[t.index]);{const r=jy(e,t);return null!==r?Array.isArray(r)?r[0]:zn(kt(e[15]),r):zn(e,t.next)}}return null}function jy(e,t){return null!==t?e[15][5].projection[t.projection]:null}function id(e,t){const n=q+e+1;if(n<t.length){const r=t[n],o=r[1].firstChild;if(null!==o)return zn(r,o)}return t[7]}function sd(e,t,n,r,o,i,s){for(;null!=n;){const a=r[9];if(128===n.type){n=n.next;continue}const c=r[n.index],u=n.type;if(s&&0===t&&(c&&Ve(_e(c),r),n.flags|=2),!zs(n))if(8&u)sd(e,t,n.child,r,o,i,!1),qr(t,e,a,o,c,n,i,r);else if(32&u){const l=zl(n,r);let d;for(;d=l();)qr(t,e,a,o,d,n,i,r);qr(t,e,a,o,c,n,i,r)}else 16&u?By(e,t,r,n,o,i):qr(t,e,a,o,c,n,i,r);n=s?n.projectionNext:n.next}}function ha(e,t,n,r,o,i){sd(n,r,e.firstChild,t,o,i,!1)}function By(e,t,n,r,o,i){const s=n[15],c=s[5].projection[r.projection];if(Array.isArray(c))for(let u=0;u<c.length;u++)qr(t,e,n[9],o,c[u],r,i,n);else{let u=c;const l=s[3];qo(r)&&(u.flags|=128),sd(e,t,u,l,o,i,!0)}}function Vy(e,t,n,r,o){const i=Ie(),s=2&r;try{Rn(-1),s&&t.length>S&&function my(e,t,n,r){if(!r)if(3&~t[2]){const i=e.preOrderHooks;null!==i&&ks(t,i,0,n)}else{const i=e.preOrderCheckHooks;null!==i&&As(t,i,n)}Rn(n)}(e,t,S,!1),W(s?I.TemplateUpdateStart:I.TemplateCreateStart,o,n),n(r,o)}finally{Rn(i),W(s?I.TemplateUpdateEnd:I.TemplateCreateEnd,o,n)}}function pa(e,t,n){(function iA(e,t,n){const r=n.directiveStart,o=n.directiveEnd;ft(n)&&function w0(e,t,n){const r=he(t,e),o=function gy(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Vl(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts,e.id):t}(n),i=e[10].rendererFactory,s=$l(e,ra(e,o,null,Hl(n),r,t,null,i.createRenderer(r,n),null,null,null));e[t.index]=s}(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||xs(n,t);const i=n.initialInputs;for(let s=r;s<o;s++){const a=e.data[s],c=Wo(t,e,s,n);Ve(c,t),null!==i&&uA(0,s-r,c,a,0,i),ht(a)&&(Te(n.index,t)[8]=Wo(t,e,s,n))}})(e,t,n),!(64&~n.flags)&&function sA(e,t,n){const r=n.directiveStart,o=n.directiveEnd,i=n.index,s=function wM(){return N.lFrame.currentDirectiveIndex}();try{Rn(i);for(let a=r;a<o;a++){const c=e.data[a],u=t[a];Ru(a),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&aA(c,u)}}finally{Rn(-1),Ru(s)}}(e,t,n)}function Zr(e,t,n=he){const r=t.localNames;if(null!==r){let o=t.index+1;for(let i=0;i<r.length;i+=2){const s=r[i+1],a=-1===s?n(t,e):e[s];e[o++]=a}}}let Hy=()=>null;function aA(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function ud(e,t){const n=e.directiveRegistry;let r=null;if(n)for(let o=0;o<n.length;o++){const i=n[o];hy(t,i.selectors,!1)&&(r??=[],ht(i)?r.unshift(i):r.push(i))}return r}function uA(e,t,n,r,o,i){const s=i[t];if(null!==s)for(let a=0;a<s.length;a+=2)rn(r,n,s[a],s[a+1])}function va(e,t,n,r,o){const i=e.inputs?.[r],s=e.hostDirectiveInputs?.[r];let a=!1;if(s)for(let c=0;c<s.length;c+=2){const u=s[c];rn(t.data[u],n[u],s[c+1],o),a=!0}if(i)for(const c of i)rn(t.data[c],n[c],r,o),a=!0;return a}function dA(e,t){const n=Te(t,e),r=n[1];!function fA(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n);const o=n[0];null!==o&&null===n[6]&&(n[6]=null),W(I.ComponentStart);try{Da(r,n,n[8])}finally{W(I.ComponentEnd,n[8])}}function Da(e,t,n){Fu(t);try{const r=e.viewQuery;null!==r&&Tl(1,r,n);const o=e.template;null!==o&&Vy(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),t[18]?.finishViewCreation(e),e.staticContentQueries&&Lm(e,t),e.staticViewQueries&&Tl(2,e.viewQuery,n);const i=e.components;null!==i&&function hA(e,t){for(let n=0;n<t.length;n++)dA(e,t[n])}(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,Pu()}}function ai(e,t,n,r,o=!1){for(;null!==n;){if(128===n.type){n=o?n.projectionNext:n.next;continue}const i=t[n.index];null!==i&&r.push(_e(i)),Se(i)&&pA(i,r);const s=n.type;if(8&s)ai(e,t,n.child,r);else if(32&s){const a=zl(n,t);let c;for(;c=a();)r.push(c)}else if(16&s){const a=jy(t,n);if(Array.isArray(a))r.push(...a);else{const c=kt(t[15]);ai(c[1],c,a,r,!0)}}n=o?n.projectionNext:n.next}return r}function pA(e,t){for(let n=q;n<e.length;n++){const r=e[n],o=r[1].firstChild;null!==o&&ai(r[1],r,o,t)}e[7]!==e[0]&&t.push(e[7])}function Gy(e){if(null!==e[25]){for(const t of e[25])t.impl.addSequence(t);e[25].length=0}}let Wy=[];const vA={...ur,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{Sr(e.lView)},consumerOnSignalRead(){this.lView[24]=this}},_A={...ur,consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=kt(e.lView);for(;t&&!qy(t[1]);)t=kt(t);t&&Mu(t)},consumerOnSignalRead(){this.lView[24]=this}};function qy(e){return 2!==e.type}function Zy(e){if(null===e[23])return;let t=!0;for(;t;){let n=!1;for(const r of e[23])r.dirty&&(n=!0,null===r.zone||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(8192&e[2])}}function _a(e,t=0){const r=e[10].rendererFactory;r.begin?.();try{!function IA(e,t){const n=jp();try{_s(!0),dd(e,t);let r=0;for(;Po(e);){if(100===r)throw new _(103,!1);r++,dd(e,1)}}finally{_s(n)}}(e,t)}finally{r.end?.()}}function Qy(e,t,n,r){if(At(t))return;const o=t[2];Fu(t);let a=!0,c=null,u=null;qy(e)?(u=function gA(e){return e[24]??function mA(e){const t=Wy.pop()??Object.create(vA);return t.lView=e,t}(e)}(t),c=lr(u)):null===function Fc(){return Ee}()?(a=!1,u=function DA(e){const t=e[24]??Object.create(_A);return t.lView=e,t}(t),c=lr(u)):t[24]&&(So(t[24]),t[24]=null);try{bp(t),function Bp(e){return N.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&Vy(e,t,n,2,r);const l=!(3&~o);if(l){const h=e.preOrderCheckHooks;null!==h&&As(t,h,null)}else{const h=e.preOrderHooks;null!==h&&ks(t,h,0,null),Xu(t,0)}if(function CA(e){for(let t=Jg(e);null!==t;t=Xg(t)){if(!(2&t[2]))continue;const n=t[9];for(let r=0;r<n.length;r++)Mu(n[r])}}(t),Zy(t),Yy(t,0),null!==e.contentQueries&&Lm(e,t),l){const h=e.contentCheckHooks;null!==h&&As(t,h)}else{const h=e.contentHooks;null!==h&&ks(t,h,1),Xu(t,1)}!function bA(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const o=n[r];if(o<0)Rn(~o);else{const i=o,s=n[++r],a=n[++r];CM(s,i);const c=t[i];W(I.HostBindingsUpdateStart,c);try{a(2,c)}finally{W(I.HostBindingsUpdateEnd,c)}}}}finally{Rn(-1)}}(e,t);const d=e.components;null!==d&&Jy(t,d,0);const f=e.viewQuery;if(null!==f&&Tl(2,f,r),l){const h=e.viewCheckHooks;null!==h&&As(t,h)}else{const h=e.viewHooks;null!==h&&ks(t,h,2),Xu(t,2)}if(!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),t[22]){for(const h of t[22])h();t[22]=null}Gy(t),t[2]&=-73}catch(l){throw Sr(t),l}finally{null!==u&&(Mo(u,c),a&&function yA(e){e.lView[24]!==e&&(e.lView=null,Wy.push(e))}(u)),Pu()}}function Yy(e,t){for(let n=Jg(e);null!==n;n=Xg(n))for(let r=q;r<n.length;r++)Ky(n[r],t)}function wA(e,t,n){W(I.ComponentStart);const r=Te(t,e);try{Ky(r,n)}finally{W(I.ComponentEnd,r[8])}}function Ky(e,t){bu(e)&&dd(e,t)}function dd(e,t){const r=e[1],o=e[2],i=e[24];let s=!!(0===t&&16&o);if(s||=!!(64&o&&0===t),s||=!!(1024&o),s||=!(!i?.dirty||!Ji(i)),s||=!1,i&&(i.dirty=!1),e[2]&=-9217,s)Qy(r,e,r.template,e[8]);else if(8192&o){const a=M(null);try{Zy(e),Yy(e,1);const c=r.components;null!==c&&Jy(e,c,1),Gy(e)}finally{M(a)}}}function Jy(e,t,n){for(let r=0;r<t.length;r++)wA(e,t[r],n)}function Yr(e,t){const n=jp()?64:1088;for(e[10].changeDetectionScheduler?.notify(t);e;){e[2]|=n;const r=kt(e);if(Zt(e)&&!r)return e;e=r}return null}function ci(e,t){if(e.length<=q)return;const n=q+t,r=e[n];if(r){const o=r[16];null!==o&&o!==e&&ed(o,r),t>0&&(e[n-1][4]=r[4]);const i=ls(e,q+t);!function ky(e,t){Ry(e,t),t[0]=null,t[5]=null}(r[1],r);const s=i[18];null!==s&&s.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function tv(e,t){const n=e[9],r=t[3];(oe(r)||t[15]!==r[3][15])&&(e[2]|=2),null===n?e[9]=[t]:n.push(t)}class ui{_lView;_cdRefInjectingView;_appRef=null;_attachedToViewContainer=!1;exhaustive;get rootNodes(){const t=this._lView,n=t[1];return ai(n,t,n.firstChild,[])}constructor(t,n){this._lView=t,this._cdRefInjectingView=n}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return At(this._lView)}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(Se(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(ci(t,r),ls(n,r))}this._attachedToViewContainer=!1}!function si(e,t){if(At(t))return;const n=t[R];n.destroyNode&&ha(e,t,n,3,null,null),function Q0(e){let t=e[12];if(!t)return td(e[1],e);for(;t;){let n=null;if(oe(t))n=t[12];else{const r=t[q];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)oe(t)&&td(t[1],t),t=t[3];null===t&&(t=e),oe(t)&&td(t[1],t),n=t&&t[4]}t=n}}(t)}(this._lView[1],this._lView)}onDestroy(t){Ds(this._lView,t)}markForCheck(){Yr(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[2]&=-129}reattach(){Su(this._lView),this._lView[2]|=128}detectChanges(){this._lView[2]|=1024,_a(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new _(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;const t=Zt(this._lView),n=this._lView[16];null!==n&&!t&&ed(n,this._lView),Ry(this._lView[1],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new _(902,!1);this._appRef=t;const n=Zt(this._lView),r=this._lView[16];null!==r&&!n&&tv(r,this._lView),Su(this._lView)}}function Wn(e,t,n,r,o){let i=e.data[t];if(null===i)i=function md(e,t,n,r,o){const i=xp(),s=Op(),c=e.data[t]=function jA(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return Ap()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-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}}(0,s?i:i&&i.parent,n,t,r,o);return function LA(e,t,n,r){null===e.firstChild&&(e.firstChild=t),null!==n&&(r?null==n.child&&null!==t.parent&&(n.child=t):null===n.next&&(n.next=t,t.prev=n))}(e,c,i,s),c}(e,t,n,r,o),function IM(){return N.lFrame.inI18n}()&&(i.flags|=32);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function Lo(){const e=N.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return Rt(i,!0),i}let _k=class{},Mv=class{};class Ek{resolveComponentFactory(t){throw new _(917,!1)}}let Xr=class{static NULL=new Ek};class Cd{}let Ck=(()=>{class e{static \u0275prov=j({token:e,providedIn:"root",factory:()=>null})}return e})();const bd={};class to{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){const o=this.injector.get(t,bd,r);return o!==bd||n===bd?o:this.parentInjector.get(t,n,r)}}function Aa(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?i=a:1==i?o=Jc(o,a):2==i&&(r=Jc(r,a+": "+t[++s]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}function P(e,t=0){const n=g();return null===n?V(e,t):xg(A(),n,F(e),t)}function Nk(e,t,n){t.componentOffset=n,(e.components??=[]).push(t.index)}function Av(e,t,n,r){const o=0===e?n.inputs:n.outputs;for(const i in o)if(o.hasOwnProperty(i)){let s;s=0===e?t.inputs??={}:t.outputs??={},s[i]??=[],s[i].push(r),Rv(t,i)}}function kv(e,t,n,r){const o=0===e?n.inputs:n.outputs;for(const i in o)if(o.hasOwnProperty(i)){const s=o[i];let a;a=0===e?t.hostDirectiveInputs??={}:t.hostDirectiveOutputs??={},a[s]??=[],a[s].push(r,i),Rv(t,s)}}function Rv(e,t){"class"===t?e.flags|=8:"style"===t&&(e.flags|=16)}function xv(e,t,n){const{attrs:r,inputs:o,hostDirectiveInputs:i}=e;if(null===r||!n&&null===o||n&&null===i||Bl(e))return e.initialInputs??=[],void e.initialInputs.push(null);let s=null,a=0;for(;a<r.length;){const c=r[a];if(0!==c)if(5!==c){if("number"==typeof c)break;if(!n&&o.hasOwnProperty(c)){const u=o[c];for(const l of u)if(l===t){s??=[],s.push(c,r[a+1]);break}}else if(n&&i.hasOwnProperty(c)){const 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}else a+=2;else a+=4}e.initialInputs??=[],e.initialInputs.push(s)}function Rk(e,t,n,r,o){e.data[r]=o;const i=o.factory||(o.factory=bn(o.type)),s=new Uo(i,ht(o),P,null);e.blueprint[r]=s,n[r]=s,function xk(e,t,n,r,o){const i=o.hostBindings;if(i){let s=e.hostBindingOpCodes;null===s&&(s=e.hostBindingOpCodes=[]);const a=~t.index;(function Ok(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(s)!=a&&s.push(a),s.push(n,r,i)}}(e,t,r,ri(e,n,o.hostVars,G),o)}function Fk(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;ht(t)&&(n[""]=e)}}function Md(e,t,n,r,o,i,s,a){const c=t[1],u=c.consts,d=Wn(c,e,n,r,Ne(u,s));return i&&function Nv(e,t,n,r,o){const i=null===r?null:{"":-1},s=o(e,n);if(null!==s){let a=s,c=null,u=null;for(const l of s)if(null!==l.resolveHostDirectives){[a,c,u]=l.resolveHostDirectives(s);break}!function Ak(e,t,n,r,o,i,s){const a=r.length;let c=null;for(let f=0;f<a;f++){const h=r[f];null===c&&ht(h)&&(c=h,Nk(e,n,f)),ol(xs(n,t),e,h.type)}(function Pk(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t})(n,e.data.length,a),c?.viewProvidersResolver&&c.viewProvidersResolver(c);for(let f=0;f<a;f++){const h=r[f];h.providersResolver&&h.providersResolver(h)}let u=!1,l=!1,d=ri(e,t,a,null);a>0&&(n.directiveToIndex=new Map);for(let f=0;f<a;f++){const h=r[f];if(n.mergedAttrs=jr(n.mergedAttrs,h.hostAttrs),Rk(e,n,t,d,h),Fk(d,h,o),null!==s&&s.has(h)){const[m,D]=s.get(h);n.directiveToIndex.set(h.type,[d,m+n.directiveStart,D+n.directiveStart])}else(null===i||!i.has(h))&&n.directiveToIndex.set(h.type,d);null!==h.contentQueries&&(n.flags|=4),(null!==h.hostBindings||null!==h.hostAttrs||0!==h.hostVars)&&(n.flags|=64);const p=h.type.prototype;!u&&(p.ngOnChanges||p.ngOnInit||p.ngDoCheck)&&((e.preOrderHooks??=[]).push(n.index),u=!0),!l&&(p.ngOnChanges||p.ngDoCheck)&&((e.preOrderCheckHooks??=[]).push(n.index),l=!0),d++}!function kk(e,t,n){for(let r=t.directiveStart;r<t.directiveEnd;r++){const o=e.data[r];if(null!==n&&n.has(o)){const i=n.get(o);kv(0,t,i,r),kv(1,t,i,r),xv(t,r,!0)}else Av(0,t,o,r),Av(1,t,o,r),xv(t,r,!1)}}(e,n,i)}(e,t,n,a,i,c,u)}null!==i&&null!==r&&function Tk(e,t,n){const r=e.localNames=[];for(let o=0;o<t.length;o+=2){const i=n[t[o+1]];if(null==i)throw new _(-301,!1);r.push(t[o],i)}}(n,r,i)}(c,t,d,Ne(u,a),o),d.mergedAttrs=jr(d.mergedAttrs,d.attrs),null!==d.attrs&&Aa(d,d.attrs,!1),null!==d.mergedAttrs&&Aa(d,d.mergedAttrs,!0),null!==c.queries&&c.queries.elementStart(c,d),d}function Sd(e,t){(function Eg(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const 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)),null!=l&&(e.destroyHooks??=[]).push(n,l)}})(e,t),Dp(t)&&e.queries.elementEnd(t)}function te(e,t,n){return n!==G&&(!Object.is(e[t],n)&&(e[t]=n,!0))}function cn(e,t,n){return function r(o){Yr(ft(e)?Te(e.index,t):t,5);const s=t[8];let a=Fv(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=Fv(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function Fv(e,t,n,r){const o=M(null);try{return W(I.OutputStart,t,n),!1!==n(r)}catch(i){return function ld(e,t){const n=e[9];if(!n)return;let r;try{r=n.get(Yt,null)}catch{r=null}r?.(t)}(e,i),!1}finally{W(I.OutputEnd,t,n),M(o)}}function Pv(e,t,n,r,o,i,s){const a=t.firstCreatePass?function Tp(e){return e.cleanup??=[]}(t):null,c=function Sp(e){return e[7]??=[]}(n),u=c.length;c.push(o,i),a&&a.push(r,e,u,(u+1)*(s?-1:1))}function ro(e,t,n,r,o,i){const a=t[1],d=t[n][a.data[n].outputs[r]].subscribe(i);Pv(e.index,a,t,o,i,d,!0)}const Vt=Symbol("BINDING");function Ad(e){return e.debugInfo?.className||e.type.name||null}class zv extends Xr{ngModule;constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=z(t);return new kd(n,this.ngModule)}}class kd extends Mv{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=function Jk(e){return Object.keys(e).map(t=>{const[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:0!==(r&oa.SignalBased)};return o&&(i.transform=o),i})}(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=function Xk(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=function E0(e){return e.map(_0).join(",")}(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o,i,s){W(I.DynamicComponentStart);const a=M(null);try{const c=this.componentDef,u=function eR(e,t,n){let r=t instanceof tt?t:t?.injector;return r&&null!==e.getStandaloneInjector&&(r=e.getStandaloneInjector(r)||r),r?new to(n,r):n}(c,o||this.ngModule,t),l=function tR(e){const t=e.get(Cd,null);if(null===t)throw new _(407,!1);return{rendererFactory:t,sanitizer:e.get(Ck,null),changeDetectionScheduler:e.get(On,null),ngReflect:!1,tracingService:e.get(Wr,null,{optional:!0})}}(u),d=l.tracingService;return d&&d.componentCreate?d.componentCreate(Ad(c),()=>this.createComponentRef(l,u,n,r,i,s)):this.createComponentRef(l,u,n,r,i,s)}finally{M(a)}}createComponentRef(t,n,r,o,i,s){const a=this.componentDef,c=function oR(e,t,n,r){const o=e?["ng-version","21.2.2"]:function I0(e){const t=[],n=[];let r=1,o=2;for(;r<e.length;){let i=e[r];if("string"==typeof i)2===o?""!==i&&t.push(i,e[++r]):8===o&&n.push(i);else{if(!gt(o))break;o=i}r++}return n.length&&t.push(1,...n),t}(t.selectors[0]);let i=null,s=null,a=0;if(n)for(const l of n)a+=l[Vt].requiredVars,l.create&&(l.targetIdx=0,(i??=[]).push(l)),l.update&&(l.targetIdx=0,(s??=[]).push(l));if(r)for(let l=0;l<r.length;l++){const d=r[l];if("function"!=typeof d)for(const f of d.bindings){a+=f[Vt].requiredVars;const h=l+1;f.create&&(f.targetIdx=h,(i??=[]).push(f)),f.update&&(f.targetIdx=h,(s??=[]).push(f))}}const c=[t];if(r)for(const l of r){const f=Re("function"==typeof l?l:l.type);c.push(f)}return Vl(0,null,function iR(e,t){return e||t?n=>{if(1&n&&e)for(const r of e)r.create();if(2&n&&t)for(const r of t)r.update()}:null}(i,s),1,a,c,null,null,null,[o],null)}(o,a,s,i),u=t.rendererFactory.createRenderer(null,a),l=o?function tA(e,t,n,r){const i=r.get(UT,!1)||n===ot.ShadowDom||n===ot.ExperimentalIsolatedShadowDom,s=e.selectRootElement(t,i);return function nA(e){Hy(e)}(s),s}(u,o,a.encapsulation,n):function nR(e,t){const n=function rR(e){return(e.selectors[0][0]||"div").toLowerCase()}(e);return ta(t,n,"svg"===n?"svg":"math"===n?"math":null)}(a,u),d=s?.some(Gv)||i?.some(p=>"function"!=typeof p&&p.bindings.some(Gv)),f=ra(null,c,null,512|Hl(a),null,null,t,u,n,null,null);f[S]=l,Fu(f);let h=null;try{const p=Md(S,f,2,"#host",()=>c.directiveRegistry,!0,0);oy(u,l,p),Ve(l,f),pa(c,f,p),Nl(c,p,f),Sd(c,p),void 0!==r&&function aR(e,t,n){const r=e.projection=[];for(let o=0;o<t.length;o++){const i=n[o];r.push(null!=i&&i.length?Array.from(i):null)}}(p,this.ngContentSelectors,r),h=Te(p.index,f),f[8]=h[8],Da(c,f,null)}catch(p){throw null!==h&&ul(h),ul(f),p}finally{W(I.DynamicComponentEnd),Pu()}return new sR(this.componentType,f,!!d)}}function Gv(e){const t=e[Vt].kind;return"input"===t||"twoWay"===t}class sR extends _k{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n,r){super(),this._rootLView=n,this._hasInputBindings=r,this._tNode=function Mr(e,t){return e.data[t]}(n[1],S),this.location=Br(this._tNode,n),this.instance=Te(this._tNode.index,n)[8],this.hostView=this.changeDetectorRef=new ui(n,void 0),this.componentType=t}setInput(t,n){const r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;const o=this._rootLView;va(r,o[1],o,t,n),this.previousInputValues.set(t,n),Yr(Te(r.index,o),1)}get injector(){return new ae(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}let Yn=class{},bR=class{};class Gd extends Yn{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new zv(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;const i=function _t(e){return us(e),e[ep]||null}(t);this._bootstrapComponents=function wt(e){return e instanceof Function?e():e}(i.bootstrap),this._r3Injector=Zp(t,n,[{provide:Yn,useValue:this},{provide:Xr,useValue:this.componentFactoryResolver},...r],Gt(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class uD extends bR{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new Gd(this.moduleType,t,[])}}class TR extends Yn{injector;componentFactoryResolver=new zv(this);instance=null;constructor(t){super();const n=new Mn([...t.providers,{provide:Yn,useValue:this},{provide:Xr,useValue:this.componentFactoryResolver}],t.parent||vu(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}let NR=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){const r=hu(0,n.type),o=r.length>0?function lD(e,t,n=null){return new TR({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}([r],this._injector,""):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(const n of this.cachedInjectors.values())null!==n&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=j({token:e,providedIn:"environment",factory:()=>new e(V(tt))})}return e})();function dD(e){return Lt(()=>{const t=hD(e),n={...t,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Ls.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(NR).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||ot.Emulated,styles:e.styles||J,_:null,schemas:e.schemas||null,tView:null,id:""};t.standalone&&function ke(e){Ey.has(e)||(Ey.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}("NgStandalone"),pD(n);const r=e.dependencies;return n.directiveDefs=xa(r,fD),n.pipeDefs=xa(r,lt),n.id=function xR(e){let t=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,"function"==typeof e.consts?"":e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(const i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)|0;return t+=2147483648,"c"+t}(n),n})}function fD(e){return z(e)||Re(e)}function _i(e){return Lt(()=>({type:e.type,bootstrap:e.bootstrap||J,declarations:e.declarations||J,imports:e.imports||J,exports:e.exports||J,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function AR(e,t){if(null==e)return Et;const n={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r];let 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=oa.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function kR(e){if(null==e)return Et;const t={};for(const n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function Qe(e){return Lt(()=>{const t=hD(e);return pD(t),t})}function hD(e){const t={};return{type:e.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||Et,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:!0===e.signals,selectors:e.selectors||J,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,inputs:AR(e.inputs,t),outputs:kR(e.outputs),debugInfo:null}}function pD(e){e.features?.forEach(t=>t(e))}function xa(e,t){return e?()=>{const n="function"==typeof e?e():e,r=[];for(const o of n){const i=t(o);null!==i&&r.push(i)}return r}:null}function Kn(e,t,n,r,o,i,s,a,c,u,l){const d=n+S;let f;if(t.firstCreatePass){if(f=Wn(t,d,4,s||null,a||null),null!=u){const h=Ne(t.consts,u);f.localNames=[];for(let p=0;p<h.length;p+=2)f.localNames.push(h[p],-1)}}else f=t.data[d];return function _D(e,t,n,r,o,i,s,a){if(n.firstCreatePass){e.mergedAttrs=jr(e.mergedAttrs,e.attrs);const l=e.tView=Vl(2,e,o,i,s,n.directiveRegistry,n.pipeRegistry,null,n.schemas,n.consts,null);null!==n.queries&&(n.queries.template(n,e),l.queries=n.queries.embeddedTView(e))}a&&(e.flags|=a),Rt(e,!1);const c=CD(n,t,e,r);Is()&&od(n,t,c,e),Ve(c,t);const u=function Xy(e,t,n,r){return[e,!0,0,t,null,r,null,n,null,null]}(c,t,c,e);t[r+S]=u,$l(t,u)}(f,e,t,n,r,o,i,c),null!=u&&Zr(e,f,l),f}let CD=function wD(e,t,n,r){return jo(!0),t[R].createComment("")};const XD=new C(""),e_=new C("");let tf,ef=(()=>{class e{_ngZone;registry;_isZoneStable=!0;_callbacks=[];_taskTrackingZone=null;_destroyRef;constructor(n,r,o){this._ngZone=n,this.registry=r,Eu()&&(this._destroyRef=w(Pt,{optional:!0})??void 0),tf||(function Xx(e){tf=e}(o),o.addToWindow(r)),this._watchAngularEvents(),n.run(()=>{this._taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){const n=this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),r=this._ngZone.runOutsideAngular(()=>this._ngZone.onStable.subscribe({next:()=>{Y.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(;0!==this._callbacks.length;){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))}}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)(V(Y),V(Jx),V(e_))};static \u0275prov=j({token:e,factory:e.\u0275fac})}return e})(),Jx=(()=>{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 tf?.findTestabilityInTree(this,n,r)??null}static \u0275fac=function(r){return new(r||e)};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();function nf(e){return!!e&&"function"==typeof e.then}function t_(e){return!!e&&"function"==typeof e.subscribe}const n_=new C("");let r_=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=w(n_,{optional:!0})??[];injector=w(je);constructor(){}runInitializers(){if(this.initialized)return;const n=[];for(const o of this.appInits){const i=yp(this.injector,o);if(nf(i))n.push(i);else if(t_(i)){const s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}const r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const eO=new C("");function o_(e,t){return Array.isArray(t)?t.reduce(o_,e):{...e,...t}}let ln=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=w(Yt);afterRenderManager=w(Iy);zonelessEnabled=w($u);rootEffectScheduler=w(ng);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new hr;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=w(xn);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe(ig(n=>!n))}constructor(){w(Wr,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=w(tt);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=je.NULL){return this._injector.get(Y).run(()=>{W(I.BootstrapComponentStart);const s=n instanceof Mv;if(!this._injector.get(r_).done)throw new _(405,"");let c;c=s?n:this._injector.get(Xr).resolveComponentFactory(n),this.componentTypes.push(c.componentType);const u=function nO(e){return e.isBoundToModule}(c)?void 0:this._injector.get(Yn),d=c.create(o,[],r||c.selector,u),f=d.location.nativeElement,h=d.injector.get(XD,null);return h?.registerApplication(f),d.onDestroy(()=>{this.detachView(d.hostView),$a(this.components,d),h?.unregisterApplication(f)}),this._loadComponent(d),W(I.BootstrapComponentEnd,d),d})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){W(I.ChangeDetectionStart),null!==this.tracingSnapshot?this.tracingSnapshot.run(Jl.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw W(I.ChangeDetectionEnd),new _(101,!1);const n=M(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,M(n),this.afterTick.next(),W(I.ChangeDetectionEnd)}};synchronize(){null===this._rendererFactory&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Cd,null,{optional:!0}));let n=0;for(;0!==this.dirtyFlags&&n++<10;){W(I.ChangeDetectionSyncStart);try{this.synchronizeOnce()}finally{W(I.ChangeDetectionSyncEnd)}}}synchronizeOnce(){16&this.dirtyFlags&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush());let n=!1;if(7&this.dirtyFlags){const r=!!(1&this.dirtyFlags);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:o}of this.allViews)(r||Po(o))&&(_a(o,r&&!this.zonelessEnabled?0:1),n=!0);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),23&this.dirtyFlags)return}n||(this._rendererFactory?.begin?.(),this._rendererFactory?.end?.()),8&this.dirtyFlags&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){this.allViews.some(({_lView:n})=>Po(n))?this.dirtyFlags|=2:this.dirtyFlags&=-8}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;$a(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView);try{this.tick()}catch(o){this.internalErrorHandler(o)}this.components.push(n),this._injector.get(eO,[]).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),()=>$a(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new _(406,!1);const 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=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function $a(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}function pf(e,t,n,r,o){va(t,e,n,o?"class":"style",r)}function Mi(e,t,n,r){const o=g(),i=o[1],s=e+S,a=i.firstCreatePass?Md(s,o,2,t,ud,function ku(){return N.bindingsEnabled}(),n,r):i.data[s];if(ft(a)){const c=o[10].tracingService;if(c&&c.componentCreate)return c.componentCreate(Ad(i.data[a.directiveStart+a.componentOffset]),()=>(D_(e,t,o,a,r),Mi))}return D_(e,t,o,a,r),Mi}function D_(e,t,n,r,o){if(function ma(e,t,n,r,o){const i=S+n,s=t[1],a=o(s,t,e,r,n);t[i]=a,Rt(e,!0);const c=2===e.type;return c?(oy(t[R],a,e),(0===function mM(){return N.lFrame.elementDepthCount}()||wr(e))&&Ve(a,t),function yM(){N.lFrame.elementDepthCount++}()):Ve(a,t),Is()&&(!c||!zs(e))&&od(s,t,a,e),e}(r,n,e,t,yf),wr(r)){const i=n[1];pa(i,n,r),Nl(i,r,n)}null!=o&&Zr(n,r)}function qa(){const e=x(),n=function ya(e){let t=e;return Op()?Fp():(t=t.parent,Rt(t,!1)),t}(A());return e.firstCreatePass&&Sd(e,n),function kp(e){return N.skipHydrationRootTNode===e}(n)&&function Rp(){N.skipHydrationRootTNode=null}(),function Np(){N.lFrame.elementDepthCount--}(),null!=n.classesWithoutHost&&function US(e){return!!(8&e.flags)}(n)&&pf(e,n,g(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function zS(e){return!!(16&e.flags)}(n)&&pf(e,n,g(),n.stylesWithoutHost,!1),qa}let yf=(e,t,n,r,o)=>(jo(!0),ta(t[R],r,function kM(){return N.lFrame.currentNamespace}()));const Qa="en-US";let N_=Qa;function Xa(e,t,n){const r=g(),o=x(),i=A();return function Cf(e,t,n,r,o,i,s){let a=!0,c=null;if((3&r.type||s)&&(c??=cn(r,t,i),function Nd(e,t,n,r,o,i,s,a){const c=wr(e);let u=!1,l=null;if(!r&&c&&(l=function Hk(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;i<o.length-1;i+=2){const s=o[i];if(s===n&&o[i+1]===r){const a=t[7],c=o[i+2];return a&&a.length>c?a[c]:null}"string"==typeof s&&(i+=2)}return null}(t,n,i,e.index)),null!==l)(l.__ngLastListenerFn__||l).__ngNextListenerFn__=s,l.__ngLastListenerFn__=s,u=!0;else{const d=he(e,n),f=r?r(d):d,h=o.listen(f,i,a);(function Vk(e){return e.startsWith("animation")||e.startsWith("transition")})(i)||Pv(r?m=>r(_e(m[e.index])):e.index,t,n,i,a,h,!1)}return u}(r,e,t,s,n,o,i,c)&&(a=!1)),a){const u=r.outputs?.[o],l=r.hostDirectiveOutputs?.[o];if(l&&l.length)for(let d=0;d<l.length;d+=2){const f=l[d],h=l[d+1];c??=cn(r,t,i),ro(r,t,f,h,o,c)}if(u&&u.length)for(const d of u)c??=cn(r,t,i),ro(r,t,d,o,o,c)}}(o,r,r[R],i,e,t,n),Xa}function JF(e,t){let n=null;const r=function m0(e){const t=e.attrs;if(null!=t){const n=t.indexOf(5);if(!(1&n))return t[n+1]}return null}(e);for(let o=0;o<t.length;o++){const i=t[o];if("*"!==i){if(null===r?hy(e,i,!0):D0(r,i))return o}else n=o}return n}function K_(e,t=0,n,r,o,i){const s=g(),a=x(),c=r?e+1:null;null!==c&&Kn(s,a,c,r,o,i,null,n);const u=Wn(a,S+e,16,null,n||null);null===u.projection&&(u.projection=t),Fp();const d=!s[6]||Ap();null===s[15][5].projection[u.projection]&&null!==c?function XF(e,t,n){const r=S+n,o=t.data[r],i=e[r],a=function Qr(e,t,n,r){const o=M(null);try{const i=t.tView,c=ra(e,i,n,4096&e[2]?4096:16,null,t,null,null,r?.injector??null,r?.embeddedViewInjector??null,r?.dehydratedView??null);c[16]=e[t.index];const l=e[18];return null!==l&&(c[18]=l.createEmbeddedView(i)),Da(i,c,n),c}finally{M(o)}}(e,o,void 0,{dehydratedView:null});!function Kr(e,t,n,r=!0){const o=t[1];if(function MA(e,t,n,r){const o=q+r,i=n.length;r>0&&(n[o-1][4]=t),r<i-q?(t[4]=n[o],function ap(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}(n,q+r,t)):(n.push(t),t[4]=null),t[3]=n;const s=t[16];null!==s&&n!==s&&tv(s,t);const a=t[18];null!==a&&a.insertView(e),Su(t),t[2]|=128}(o,t,e,n),r){const s=id(n,e),a=t[R],c=a.parentNode(e[7]);null!==c&&function Z0(e,t,n,r,o,i){r[0]=o,r[5]=t,ha(e,r,n,1,o,i)}(o,e[5],a,t,c,s)}const i=t[6];null!==i&&null!==i.firstChild&&(i.firstChild=null)}(i,a,0,function Gn(e,t){return!t||null===t.firstChild||qo(e)}(o,null))}(s,a,c):d&&!zs(u)&&function J0(e,t,n){By(t[R],0,t,n,nd(e,n,t),Oy(n.parent||t[5],n,t))}(a,s,u)}function ec(e,t){return e<<17|t<<2}function nr(e){return e>>17&32767}function wf(e){return 2|e}function fo(e){return(131068&e)>>2}function bf(e,t){return-131069&e|t<<2}function Mf(e){return 1|e}function nE(e,t,n,r){const o=e[n+1],i=null===t;let s=r?nr(o):fo(o),a=!1;for(;0!==s&&(!1===a||i);){const u=e[s+1];u1(e[s],t)&&(a=!0,e[s+1]=r?Mf(u):wf(u)),s=r?nr(u):fo(u)}a&&(e[n+1]=r?wf(o):Mf(o))}function u1(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&xo(e,t)>=0}const ve={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function rE(e){return e.substring(ve.key,ve.keyEnd)}function l1(e){return e.substring(ve.value,ve.valueEnd)}function oE(e,t){const n=ve.textEnd;return n===t?-1:(t=ve.keyEnd=function h1(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,ve.key=t,n),ho(e,t,n))}function iE(e,t){const n=ve.textEnd;let r=ve.key=ho(e,t,n);return n===r?-1:(r=ve.keyEnd=function p1(e,t,n){let r;for(;t<n&&(45===(r=e.charCodeAt(t))||95===r||(-33&r)>=65&&(-33&r)<=90||r>=48&&r<=57);)t++;return t}(e,r,n),r=aE(e,r,n),r=ve.value=ho(e,r,n),r=ve.valueEnd=function g1(e,t,n){let r=-1,o=-1,i=-1,s=t,a=s;for(;s<n;){const c=e.charCodeAt(s++);if(59===c)return a;34===c||39===c?a=s=cE(e,c,s,n):t===s-4&&85===i&&82===o&&76===r&&40===c?a=s=cE(e,41,s,n):c>32&&(a=s),i=o,o=r,r=-33&c}return a}(e,r,n),aE(e,r,n))}function sE(e){ve.key=0,ve.keyEnd=0,ve.value=0,ve.valueEnd=0,ve.textEnd=e.length}function ho(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function aE(e,t,n,r){return(t=ho(e,t,n))<n&&t++,t}function cE(e,t,n,r){let o=-1,i=n;for(;i<r;){const s=e.charCodeAt(i++);if(s==t&&92!==o)return i;o=92==s&&92===o?0:s}throw new Error}function Sf(e,t,n){return dE(e,t,n,!1),Sf}function Tf(e,t){return dE(e,t,null,!0),Tf}function m1(e,t){for(let n=function f1(e){return sE(e),iE(e,ho(e,0,ve.textEnd))}(t);n>=0;n=iE(t,n))gE(e,rE(t),l1(t))}function y1(e,t){for(let n=function d1(e){return sE(e),oE(e,ho(e,0,ve.textEnd))}(t);n>=0;n=oE(t,n))fs(e,rE(t),!0)}function dE(e,t,n,r){const o=g(),i=x(),s=Ot(2);i.firstUpdatePass&&pE(i,e,s,r),t!==G&&te(o,s,t)&&mE(i,i.data[Ie()],o,o[R],e,o[s+1]=function b1(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=Gt(nn(e)))),e}(t,n),r,s)}function fE(e,t,n,r){const o=x(),i=Ot(2);o.firstUpdatePass&&pE(o,null,i,r);const s=g();if(n!==G&&te(s,i,n)){const a=o.data[Ie()];if(vE(a,r)&&!hE(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;null!==c&&(n=Jc(c,n||"")),pf(o,a,s,n,r)}else!function w1(e,t,n,r,o,i,s,a){o===G&&(o=J);let c=0,u=0,l=0<o.length?o[0]:null,d=0<i.length?i[0]:null;for(;null!==l||null!==d;){const f=c<o.length?o[c+1]:void 0,h=u<i.length?i[u+1]:void 0;let m,p=null;l===d?(c+=2,u+=2,f!==h&&(p=d,m=h)):null===d||null!==l&&l<d?(c+=2,p=l):(u+=2,p=d,m=h),null!==p&&mE(e,t,n,r,p,m,s,a),l=c<o.length?o[c]:null,d=u<i.length?i[u]:null}}(o,a,s,s[R],s[i+1],s[i+1]=function I1(e,t,n){if(null==n||""===n)return J;const r=[],o=nn(n);if(Array.isArray(o))for(let i=0;i<o.length;i++)e(r,o[i],!0);else if(o instanceof Set)for(const i of o)e(r,i,!0);else if("object"==typeof o)for(const i in o)o.hasOwnProperty(i)&&e(r,i,o[i]);else"string"==typeof o&&t(r,o);return r}(e,t,n),r,i)}}function hE(e,t){return t>=e.expandoStartIndex}function pE(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[Ie()],s=hE(e,n);vE(i,r)&&null===t&&!s&&(t=!1),t=function v1(e,t,n,r){const o=function xu(e){const t=N.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=xi(n=Nf(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Nf(o,e,t,n,r),null===i){let c=function D1(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==fo(r))return e[nr(r)]}(e,t,r);void 0!==c&&Array.isArray(c)&&(c=Nf(null,e,t,c[1],r),c=xi(c,t.attrs,r),function _1(e,t,n,r){e[nr(n?t.classBindings:t.styleBindings)]=r}(e,t,r,c))}else i=function E1(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++)r=xi(r,e[i].hostAttrs,n);return xi(r,t.attrs,n)}(e,t,r)}return void 0!==i&&(r?t.residualClasses=i:t.residualStyles=i),n}(o,i,t,r),function a1(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=nr(s),c=fo(s);e[r]=n;let l,u=!1;if(Array.isArray(n)?(l=n[1],(null===l||xo(n,l)>0)&&(u=!0)):l=n,o)if(0!==c){const f=nr(e[a+1]);e[r+1]=ec(f,a),0!==f&&(e[f+1]=bf(e[f+1],r)),e[a+1]=function i1(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=ec(a,0),0!==a&&(e[a+1]=bf(e[a+1],r)),a=r;else e[r+1]=ec(c,0),0===a?a=r:e[c+1]=bf(e[c+1],r),c=r;u&&(e[r+1]=wf(e[r+1])),nE(e,l,r,!0),nE(e,l,r,!1),function c1(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&xo(i,t)>=0&&(n[r+1]=Mf(n[r+1]))}(t,l,e,r,i),s=ec(a,c),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}function Nf(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(i=t[a],r=xi(r,i.hostAttrs,o),i!==e);)a++;return null!==e&&(n.directiveStylingLast=a),r}function xi(e,t,n){const r=n?1:2;let o=-1;if(null!==t)for(let i=0;i<t.length;i++){const s=t[i];"number"==typeof s?o=s:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),fs(e,s,!!n||t[++i]))}return void 0===e?null:e}function gE(e,t,n){fs(e,t,nn(n))}function C1(e,t,n){const r=String(t);""!==r&&!r.includes(" ")&&fs(e,r,n)}function mE(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const c=e.data,u=c[a+1],l=function s1(e){return!(1&~e)}(u)?yE(c,t,n,o,fo(u),s):void 0;tc(l)||(tc(i)||function o1(e){return!(2&~e)}(u)&&(i=yE(c,null,n,o,a,s)),function eA(e,t,n,r,o){if(t)o?e.addClass(n,r):e.removeClass(n,r);else{let i=-1===r.indexOf("-")?void 0:on.DashCase;null==o?e.removeStyle(n,r,i):("string"==typeof o&&o.endsWith("!important")&&(o=o.slice(0,-10),i|=on.Important),e.setStyle(n,r,o,i))}}(r,s,function br(e,t){return _e(t[e])}(Ie(),n),o,i))}function yE(e,t,n,r,o,i){const s=null===t;let a;for(;o>0;){const c=e[o],u=Array.isArray(c),l=u?c[1]:c,d=null===l;let f=n[o+1];f===G&&(f=d?J:void 0);let h=d?lu(f,r):l===r?f:void 0;if(u&&!tc(h)&&(h=lu(c,r)),tc(h)&&(a=h,s))return a;const p=e[o+1];o=s?nr(p):fo(p)}if(null!==t){let c=i?t.residualClasses:t.residualStyles;null!=c&&(a=lu(c,r))}return a}function tc(e){return void 0!==e}function vE(e,t){return!!(e.flags&(t?8:16))}let UP=(()=>{class e{applicationErrorHandler=w(Yt);appRef=w(ln);taskService=w(xn);ngZone=w(Y);zonelessEnabled=w($u);tracing=w(Wr,{optional:!0});zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Xe;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(ws):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(w(qM,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{const n=this.taskService.add();this.runningTick||(this.cleanup(),this.zonelessEnabled&&!this.appRef.includeAllTestViews)?(this.switchToMicrotaskScheduler(),this.taskService.remove(n)):this.taskService.remove(n)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{const n=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})})}notify(n){if(!this.zonelessEnabled&&5===n)return;switch(n){case 0:case 6:case 13:this.appRef.dirtyFlags|=2;break;case 3:case 2:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 12:this.appRef.dirtyFlags|=16;break;case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;const r=this.useMicrotaskScheduler?PM:Yp;this.pendingRenderTaskId=this.taskService.add(),this.cancelScheduledCallback=this.scheduleInRootZone?Zone.root.run(()=>r(()=>this.tick())):this.ngZone.runOutsideAngular(()=>r(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||null!==this.pendingRenderTaskId||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(ws+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(0===this.appRef.dirtyFlags)return void this.cleanup();!this.zonelessEnabled&&7&this.appRef.dirtyFlags&&(this.appRef.dirtyFlags|=1);const n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){this.applicationErrorHandler(r)}finally{this.taskService.remove(n),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,null!==this.pendingRenderTaskId){const n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();const hn=new C("",{factory:()=>w(hn,{optional:!0,skipSelf:!0})||function zP(){return typeof $localize<"u"&&$localize.locale||Qa}()}),_I={now:()=>(_I.delegate||Date).now(),delegate:void 0};class YP extends hr{constructor(t=1/0,n=1/0,r=_I){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){const{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();const n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s<i.length&&!t.closed;s+=r?1:2)t.next(i[s]);return this._checkFinalizedStatuses(t),n}_trimBuffer(){const{_bufferSize:t,_timestampProvider:n,_buffer:r,_infiniteTimeWindow:o}=this,i=(o?1:2)*t;if(t<1/0&&i<r.length&&r.splice(0,r.length-i),!o){const s=n.now();let a=0;for(let c=1;c<r.length&&r[c]<=s;c+=2)a=c;a&&r.splice(0,a+1)}}}function or(e){return this instanceof or?(this.v=e,this):new or(e)}function eL(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=function CI(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){!function o(i,s,a,c){Promise.resolve(c).then(function(u){i({value:u,done:a})},s)}(a,c,(s=e[i](s)).done,s.value)})}}}const wI=e=>e&&"number"==typeof e.length&&"function"!=typeof e;function bI(e){return ye(e?.then)}function MI(e){return ye(e[qc])}function SI(e){return Symbol.asyncIterator&&ye(e?.[Symbol.asyncIterator])}function TI(e){return new TypeError(`You provided ${null!==e&&"object"==typeof e?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}const NI=function nL(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}();function AI(e){return ye(e?.[NI])}function kI(e){return function XP(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,m){i.push([f,h,p,m])>1||a(f,h)})})}function a(f,h){try{!function c(f){f.value instanceof or?Promise.resolve(f.value.v).then(u,l):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function u(f){a("next",f)}function l(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}(this,arguments,function*(){const n=e.getReader();try{for(;;){const{value:r,done:o}=yield or(n.read());if(o)return yield or(void 0);yield yield or(r)}}finally{n.releaseLock()}})}function RI(e){return ye(e?.getReader)}function ir(e){if(e instanceof Fe)return e;if(null!=e){if(MI(e))return function rL(e){return new Fe(t=>{const n=e[qc]();if(ye(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(wI(e))return function oL(e){return new Fe(t=>{for(let n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}(e);if(bI(e))return function iL(e){return new Fe(t=>{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,zh)})}(e);if(SI(e))return xI(e);if(AI(e))return function sL(e){return new Fe(t=>{for(const n of e)if(t.next(n),t.closed)return;t.complete()})}(e);if(RI(e))return function aL(e){return xI(kI(e))}(e)}throw TI(e)}function xI(e){return new Fe(t=>{(function cL(e,t){var n,r,o,i;return function KP(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(l){try{u(r.next(l))}catch(d){s(d)}}function c(l){try{u(r.throw(l))}catch(d){s(d)}}function u(l){l.done?i(l.value):function o(i){return i instanceof n?i:new n(function(s){s(i)})}(l.value).then(a,c)}u((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function*(){try{for(n=eL(e);!(r=yield n.next()).done;)if(t.next(r.value),t.closed)return}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})})(e,t).catch(n=>t.error(n))})}function pn(e,t,n,r=0,o=!1){const i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function OI(e,t,n=1/0){return ye(t)?OI((r,o)=>ig((i,s)=>t(r,i,o,s))(ir(e(r,o))),n):("number"==typeof t&&(n=t),Bo((r,o)=>function uL(e,t,n,r,o,i,s,a){const c=[];let u=0,l=0,d=!1;const f=()=>{d&&!c.length&&!u&&t.complete()},h=m=>u<r?p(m):c.push(m),p=m=>{i&&t.next(m),u++;let D=!1;ir(n(m,l++)).subscribe(Ar(t,E=>{o?.(E),i?h(E):t.next(E)},()=>{D=!0},void 0,()=>{if(D)try{for(u--;c.length&&u<r;){const E=c.shift();s?pn(t,s,()=>p(E)):p(E)}f()}catch(E){t.error(E)}}))};return e.subscribe(Ar(t,h,()=>{d=!0,f()})),()=>{a?.()}}(r,o,e,n)))}const FI=new Fe(e=>e.complete());function Uf(e){return e[e.length-1]}function PI(e,t=0){return Bo((n,r)=>{n.subscribe(Ar(r,o=>pn(r,e,()=>r.next(o),t),()=>pn(r,e,()=>r.complete(),t),o=>pn(r,e,()=>r.error(o),t)))})}function LI(e,t=0){return Bo((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function jI(e,t){if(!e)throw new Error("Iterable cannot be null");return new Fe(n=>{pn(n,t,()=>{const r=e[Symbol.asyncIterator]();pn(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function wL(...e){const t=function gL(e){return function hL(e){return e&&ye(e.schedule)}(Uf(e))?e.pop():void 0}(e),n=function mL(e,t){return"number"==typeof Uf(e)?e.pop():t}(e,1/0),r=e;return r.length?1===r.length?ir(r[0]):function lL(e=1/0){return OI(Wh,e)}(n)(function CL(e,t){return t?function IL(e,t){if(null!=e){if(MI(e))return function yL(e,t){return ir(e).pipe(LI(t),PI(t))}(e,t);if(wI(e))return function DL(e,t){return new Fe(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}(e,t);if(bI(e))return function vL(e,t){return ir(e).pipe(LI(t),PI(t))}(e,t);if(SI(e))return jI(e,t);if(AI(e))return function _L(e,t){return new Fe(n=>{let r;return pn(n,t,()=>{r=e[NI](),pn(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){return void n.error(s)}i?n.complete():n.next(o)},0,!0)}),()=>ye(r?.return)&&r.return()})}(e,t);if(RI(e))return function EL(e,t){return jI(kI(e),t)}(e,t)}throw TI(e)}(e,t):ir(e)}(r,t)):FI}function bL(e,t){return Bo((n,r)=>{let o=null,i=0,s=!1;const a=()=>s&&!o&&r.complete();n.subscribe(Ar(r,c=>{o?.unsubscribe();let u=0;const l=i++;ir(e(c,l)).subscribe(o=Ar(r,d=>r.next(t?t(c,d,l,u++):d),()=>{o=null,a()}))},()=>{s=!0,a()}))})}const ML={schedule(e,t){const n=setTimeout(e,t);return()=>clearTimeout(n)}};let zf;function xL(e,t,n){let r=n;return function TL(e){return!!e&&e.nodeType===Node.ELEMENT_NODE}(e)&&t.some((o,i)=>!("*"===o||!function NL(e,t){if(!zf){const n=Element.prototype;zf=n.matches||n.matchesSelector||n.mozMatchesSelector||n.msMatchesSelector||n.oMatchesSelector||n.webkitMatchesSelector}return e.nodeType===Node.ELEMENT_NODE&&zf.call(e,t)}(e,o)||(r=i,0))),r}class FL{componentFactory;inputMap=new Map;constructor(t,n){this.componentFactory=n.get(Xr).resolveComponentFactory(t);for(const r of this.componentFactory.inputs)this.inputMap.set(r.propName,r.templateName)}create(t){return new PL(this.componentFactory,t,this.inputMap)}}class PL{componentFactory;injector;inputMap;eventEmitters=new YP(1);events=this.eventEmitters.pipe(bL(t=>wL(...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(Y),this.appRef=this.injector.get(ln),this.cdScheduler=n.get(On),this.elementZone=typeof Zone>"u"?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=ML.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,n){null!==this.componentRef?this.runInZone(()=>{this.componentRef.setInput(this.inputMap.get(t)??t,n),function SA(e){return Po(e._lView)||!!(64&e._lView[2])}(this.componentRef.hostView)&&(function TA(e){Mu(e._lView)}(this.componentRef.changeDetectorRef),this.cdScheduler.notify(6))}):this.initialInputValues.set(t,n)}initializeComponent(t){const n=je.create({providers:[],parent:this.injector}),r=function RL(e,t){const n=e.childNodes,r=t.map(()=>[]);let o=-1;t.some((i,s)=>"*"===i&&(o=s,!0));for(let i=0,s=n.length;i<s;++i){const a=n[i],c=xL(a,t,o);-1!==c&&r[c].push(a)}return r}(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(const[t,n]of this.initialInputValues)this.setInputValue(t,n);this.initialInputValues.clear()}initializeOutputs(t){const n=this.componentFactory.outputs.map(({propName:r,templateName:o})=>{const i=t.instance[r];return new Fe(s=>{const 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()}}class LL extends HTMLElement{ngElementEventsSubscription=null}function jL(e,t){const n=function kL(e,t){return t.get(Xr).resolveComponentFactory(e).inputs}(e,t.injector),r=t.strategyFactory||new FL(e,t.injector),o=function AL(e){const t={};return e.forEach(({propName:n,templateName:r,transform:o})=>{t[function SL(e){return e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`)}(r)]=[n,o]}),t}(n);class i extends LL{injector;static observedAttributes=Object.keys(o);get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=r.create(this.injector||t.injector);n.forEach(({propName:c,transform:u})=>{if(!this.hasOwnProperty(c))return;const 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){const[d,f]=o[a];this.ngElementStrategy.setInputValue(d,u,f)}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=>{const c=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(c)})}}return n.forEach(({propName:s,transform:a,isSignal:c})=>{Object.defineProperty(i.prototype,s,{get(){const u=this.ngElementStrategy.getInputValue(s);return c&&function Va(e){return"function"==typeof e&&void 0!==e[me]}(u)?u():u},set(u){this.ngElementStrategy.setInputValue(s,u,a)},configurable:!0,enumerable:!0})}),i}let BI=null;function Gf(){return BI}class VL{}class Aj{destroyed=!1;listeners=null;errorHandler=w(Nr,{optional:!0});destroyRef=w(Pt);constructor(){this.destroyRef.onDestroy(()=>{this.destroyed=!0,this.listeners=null})}subscribe(t){if(this.destroyed)throw new _(953,!1);return(this.listeners??=[]).push(t),{unsubscribe:()=>{const n=this.listeners?.indexOf(t);void 0!==n&&-1!==n&&this.listeners?.splice(n,1)}}}emit(t){if(this.destroyed)return void console.warn(ut(953,!1));if(null===this.listeners)return;const n=M(null);try{for(const r of this.listeners)try{r(t)}catch(o){this.errorHandler?.handleError(o)}}finally{M(n)}}}function yt(e,t){return function ib(e,t){const n=Object.create(sb);n.computation=e,void 0!==t&&(n.equal=t);const r=()=>{if(bo(n),wo(n),n.value===Mt)throw n.error;return n.value};return r[me]=n,r}(e,t?.equal)}Error,Error;const gc=Symbol("InputSignalNode#UNSET"),BC={...Bc,transformFn:void 0,applyValueToInputSignal(e,t){es(e,t)}};function VC(e,t){const n=Object.create(BC);function r(){if(wo(n),n.value===gc)throw new _(-950,null);return n.value}return n.value=e,n.transformFn=t?.transform,r[me]=n,r}function HC(e){return new Aj}function $C(e,t){return VC(e,t)}const cr=($C.required=function OV(e){return VC(gc,e)},$C),mc=new C(""),UV=new C("");function Gi(e){return!e.moduleRef}let QC;function YC(){QC=zV}function zV(e,t){const n=e.injector.get(ln);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else{if(!e.instance.ngDoBootstrap)throw new _(-403,!1);e.instance.ngDoBootstrap(n)}t.push(e)}let KC=(()=>{class e{_injector;_modules=[];_destroyListeners=[];_destroyed=!1;constructor(n){this._injector=n}bootstrapModuleFactory(n,r){const o=[[{provide:On,useExisting:UP},{provide:Y,useClass:HM},{provide:$u,useValue:!0}],...r?.applicationProviders??[],zM],i=function SR(e,t,n){return new Gd(e,t,n,!1)}(n.moduleType,this.injector,o);return YC(),function ZC(e){const t=Gi(e)?e.r3Injector:e.moduleRef.injector,n=t.get(Y);return n.run(()=>{Gi(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();const r=t.get(Yt);let o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:r})}),Gi(e)){const i=()=>t.destroy(),s=e.platformInjector.get(mc);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{const i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(mc);s.add(i),e.moduleRef.onDestroy(()=>{$a(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return function GV(e,t,n){try{const r=n();return nf(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e(r)),r}}(r,n,()=>{const i=t.get(xn),s=i.add(),a=t.get(r_);return a.runInitializers(),a.donePromise.then(()=>{if(function gF(e){"string"==typeof e&&(N_=e.toLowerCase().replace(/_/g,"-"))}(t.get(hn,Qa)||Qa),!t.get(UV,!0))return Gi(e)?t.get(ln):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Gi(e)){const l=t.get(ln);return void 0!==e.rootComponent&&l.bootstrap(e.rootComponent),l}return QC?.(e.moduleRef,e.allPlatformModules),e.moduleRef}).finally(()=>{i.remove(s)})})})}({moduleRef:i,allPlatformModules:this._modules,platformInjector:this.injector})}bootstrapModule(n,r=[]){const o=o_({},r);return YC(),function FV(e,t,n){const r=new uD(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new _(404,!1);this._modules.slice().forEach(r=>r.destroy()),this._destroyListeners.forEach(r=>r());const n=this._injector.get(mc,null);n&&(n.forEach(r=>r()),n.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}static \u0275fac=function(r){return new(r||e)(V(je))};static \u0275prov=j({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})(),Eo=null;function JC(e,t,n=[]){const r=`Platform: ${t}`,o=new C(r);return(i=[])=>{let s=yc();if(!s){const a=[...n,...i,{provide:o,useValue:!0}];s=e?.(a)??function WV(e){if(yc())throw new _(400,!1);(function tO(){!function cb(e){Lh=e}(()=>{throw new _(600,"")})})(),Eo=e;const t=e.get(KC);return function ew(e){const t=e.get(am,null);yp(e,()=>{t?.forEach(n=>n())})}(e),t}(function XC(e=[],t){return je.create({name:t,providers:[{provide:mu,useValue:"platform"},{provide:mc,useValue:new Set([()=>Eo=null])},...e]})}(a,r))}return function qV(){const t=yc();if(!t)throw new _(-401,!1);return t}()}}function yc(){return Eo?.get(KC)??null}const DH=JC(null,"core",[]);let _H=(()=>{class e{constructor(n){}static \u0275fac=function(r){return new(r||e)(V(ln))};static \u0275mod=_i({type:e});static \u0275inj=pr({})}return e})();let J2=(()=>{class e{static \u0275fac=function(r){return new(r||e)};static \u0275mod=_i({type:e});static \u0275inj=pr({})}return e})();class Pw{_doc;constructor(t){this._doc=t}manager}let Eh=(()=>{class e extends Pw{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)(V(Ft))};static \u0275prov=j({token:e,factory:e.\u0275fac})}return e})();const Ih=new C("");let Lw=(()=>{class e{_zone;_plugins;_eventNameToPlugin=new Map;constructor(n,r){this._zone=r,n.forEach(s=>{s.manager=this});const o=n.filter(s=>!(s instanceof Eh));this._plugins=o.slice().reverse();const i=n.find(s=>s instanceof Eh);i&&this._plugins.push(i)}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 _(5101,!1);return this._eventNameToPlugin.set(n,r),r}static \u0275fac=function(r){return new(r||e)(V(Ih),V(Y))};static \u0275prov=j({token:e,factory:e.\u0275fac})}return e})();const Ch="ng-app-id";function jw(e){for(const t of e)t.remove()}function Bw(e,t){const n=t.createElement("style");return n.textContent=e,n}function wh(e,t){const n=t.createElement("link");return n.setAttribute("rel","stylesheet"),n.setAttribute("href",e),n}let Vw=(()=>{class e{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(n,r,o,i={}){this.doc=n,this.appId=r,this.nonce=o,function X2(e,t,n,r){const o=e.head?.querySelectorAll(`style[${Ch}="${t}"],link[${Ch}="${t}"]`);if(o)for(const i of o)i.removeAttribute(Ch),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]})}(n,r,this.inline,this.external),this.hosts.add(n.head)}addStyles(n,r){for(const o of n)this.addUsage(o,this.inline,Bw);r?.forEach(o=>this.addUsage(o,this.external,wh))}removeStyles(n,r){for(const o of n)this.removeUsage(o,this.inline);r?.forEach(o=>this.removeUsage(o,this.external))}addUsage(n,r,o){const 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){const o=r.get(n);o&&(o.usage--,o.usage<=0&&(jw(o.elements),r.delete(n)))}ngOnDestroy(){for(const[,{elements:n}]of[...this.inline,...this.external])jw(n);this.hosts.clear()}addHost(n){this.hosts.add(n);for(const[r,{elements:o}]of this.inline)o.push(this.addElement(n,Bw(r,this.doc)));for(const[r,{elements:o}]of this.external)o.push(this.addElement(n,wh(r,this.doc)))}removeHost(n){this.hosts.delete(n)}addElement(n,r){return this.nonce&&r.setAttribute("nonce",this.nonce),n.appendChild(r)}static \u0275fac=function(r){return new(r||e)(V(Ft),V(Vr),V(um,8),V(cm))};static \u0275prov=j({token:e,factory:e.\u0275fac})}return e})();const bh={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"},Mh=/%COMP%/g,i$=new C("",{factory:()=>!0});function $w(e,t){return t.map(n=>n.replace(Mh,e))}let Uw=(()=>{class e{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;constructor(n,r,o,i,s,a,c=null,u=null){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.removeStylesOnCompDestroy=i,this.doc=s,this.ngZone=a,this.nonce=c,this.tracingService=u,this.defaultRenderer=new Sh(n,s,a,this.tracingService)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;const o=this.getOrCreateRenderer(n,r);return o instanceof Ww?o.applyToHost(n):o instanceof Th&&o.applyStyles(),o}getOrCreateRenderer(n,r){const o=this.rendererByCompId;let i=o.get(r.id);if(!i){const s=this.doc,a=this.ngZone,c=this.eventManager,u=this.sharedStylesHost,l=this.removeStylesOnCompDestroy,d=this.tracingService;switch(r.encapsulation){case ot.Emulated:i=new Ww(c,u,r,this.appId,l,s,a,d);break;case ot.ShadowDom:return new Gw(c,n,r,s,a,this.nonce,d,u);case ot.ExperimentalIsolatedShadowDom:return new Gw(c,n,r,s,a,this.nonce,d);default:i=new Th(c,u,r,l,s,a,d)}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)(V(Lw),V(Vw),V(Vr),V(i$),V(Ft),V(Y),V(um),V(Wr,8))};static \u0275prov=j({token:e,factory:e.\u0275fac})}return e})();class Sh{eventManager;doc;ngZone;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,n,r,o){this.eventManager=t,this.doc=n,this.ngZone=r,this.tracingService=o}destroy(){}destroyNode=null;createElement(t,n){return n?this.doc.createElementNS(bh[n]||n,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,n){(zw(t)?t.content:t).appendChild(n)}insertBefore(t,n,r){t&&(zw(t)?t.content:t).insertBefore(n,r)}removeChild(t,n){n.remove()}selectRootElement(t,n){let r="string"==typeof t?this.doc.querySelector(t):t;if(!r)throw new _(-5104,!1);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=bh[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=bh[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&(on.DashCase|on.Important)?t.style.setProperty(n,r,o&on.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&on.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){null!=t&&(t[n]=r)}setValue(t,n){t.nodeValue=n}listen(t,n,r,o){if("string"==typeof t&&!(t=Gf().getGlobalEventTarget(this.doc,t)))throw new _(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("__ngUnwrap__"===n)return t;!1===t(n)&&n.preventDefault()}}}function zw(e){return"TEMPLATE"===e.tagName&&void 0!==e.content}class Gw extends Sh{hostEl;sharedStylesHost;shadowRoot;constructor(t,n,r,o,i,s,a,c){super(t,o,i,a),this.hostEl=n,this.sharedStylesHost=c,this.shadowRoot=n.attachShadow({mode:"open"}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let u=r.styles;u=$w(r.id,u);for(const d of u){const f=document.createElement("style");s&&f.setAttribute("nonce",s),f.textContent=d,this.shadowRoot.appendChild(f)}const l=r.getExternalStyles?.();if(l)for(const d of l){const f=wh(d,o);s&&f.setAttribute("nonce",s),this.shadowRoot.appendChild(f)}}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&&this.sharedStylesHost.removeHost(this.shadowRoot)}}class Th extends Sh{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,n,r,o,i,s,a,c){super(t,i,s,a),this.sharedStylesHost=n,this.removeStylesOnCompDestroy=o;let u=r.styles;this.styles=c?$w(c,u):u,this.styleUrls=r.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&0===sn.size&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}}class Ww extends Th{contentAttr;hostAttr;constructor(t,n,r,o,i,s,a,c){const u=o+"-"+r.id;super(t,n,r,i,s,a,c,u),this.contentAttr=function s$(e){return"_ngcontent-%COMP%".replace(Mh,e)}(u),this.hostAttr=function a$(e){return"_nghost-%COMP%".replace(Mh,e)}(u)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}class Ah extends VL{supportsDOMEvents=!0;static makeCurrent(){!function BL(e){BI??=e}(new Ah)}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()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=function l$(){return Yi=Yi||document.head.querySelector("base"),Yi?Yi.getAttribute("href"):null}();return null==n?null:function d$(e){return new URL(e,document.baseURI).pathname}(n)}resetBaseElement(){Yi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function HL(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,t)}}let Yi=null,h$=(()=>{class e{build(){return new XMLHttpRequest}static \u0275fac=function(r){return new(r||e)};static \u0275prov=j({token:e,factory:e.\u0275fac})}return e})();const Zw=["alt","control","meta","shift"],p$={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},g$={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let m$=(()=>{class e extends Pw{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o,i){const s=e.parseEventName(r),a=e.eventCallback(s.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Gf().onAndCancel(n,s.domEventName,a,i))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="",a=r.indexOf("code");if(a>-1&&(r.splice(a,1),s="code."),Zw.forEach(u=>{const l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const c={};return c.domEventName=o,c.fullKey=s,c}static matchEventFullKeyCode(n,r){let o=p$[n.key]||n.key,i="";return r.indexOf("code.")>-1&&(o=n.code,i="code."),!(null==o||!o)&&(o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),Zw.forEach(s=>{s!==o&&(0,g$[s])(n)&&(i+=s+".")}),i+=o,i===r)}static eventCallback(n,r,o){return i=>{e.matchEventFullKeyCode(i,n)&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}static \u0275fac=function(r){return new(r||e)(V(Ft))};static \u0275prov=j({token:e,factory:e.\u0275fac})}return e})();const _$=JC(DH,"browser",[{provide:cm,useValue:"browser"},{provide:am,useValue:function y$(){Ah.makeCurrent()},multi:!0},{provide:Ft,useFactory:function D$(){return function FT(e){hl=e}(document),document}}]),Kw=[{provide:e_,useClass:class f${addToWindow(t){ie.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new _(5103,!1);return i},ie.getAllAngularTestabilities=()=>t.getAllTestabilities(),ie.getAllAngularRootElements=()=>t.getAllRootElements(),ie.frameworkStabilizers||(ie.frameworkStabilizers=[]),ie.frameworkStabilizers.push(r=>{const o=ie.getAllAngularTestabilities();let i=o.length;const s=function(){i--,0==i&&r()};o.forEach(a=>{a.whenStable(s)})})}findTestabilityInTree(t,n,r){return null==n?null:t.getTestability(n)??(r?Gf().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null)}}},{provide:XD,useClass:ef},{provide:ef,useClass:ef}],Jw=[{provide:mu,useValue:"root"},{provide:Nr,useFactory:function v$(){return new Nr}},{provide:Ih,useClass:Eh,multi:!0},{provide:Ih,useClass:m$,multi:!0},Uw,Vw,Lw,{provide:Cd,useExisting:Uw},{provide:class $L{},useClass:h$},[]];let E$=(()=>{class e{constructor(){}static \u0275fac=function(r){return new(r||e)};static \u0275mod=_i({type:e});static \u0275inj=pr({providers:[...Jw,...Kw],imports:[J2,_H]})}return e})();class Xw{newRect;oldRect;isFirst;element;constructor(t,n,r){this.newRect=t,this.oldRect=n,this.isFirst=null==n,this.element=r}}let I$=(()=>{class e{element;zone;observer;oldRect;resized=HC();windowResized=HC();constructor(n,r){this.element=n,this.zone=r,this.observer=new ResizeObserver(o=>this.zone.run(()=>this.observe(o)))}ngOnInit(){this.observer.observe(this.element.nativeElement)}ngOnDestroy(){this.observer.disconnect()}onWindowResize(){this.zone.run(()=>{const n=this.getWindowRect(),r=new Xw(n,void 0,window.document.documentElement);this.windowResized.emit(r)})}observe(n){const r=n[0],o=new Xw(r.contentRect,this.oldRect,r.target);this.oldRect=r.contentRect,this.resized.emit(o)}getWindowRect(){return{x:0,y:0,width:window.innerWidth,height:window.innerHeight,top:0,left:0,right:window.innerWidth,bottom:window.innerHeight,toJSON:()=>({})}}static \u0275fac=function(r){return new(r||e)(P(jn),P(Y))};static \u0275dir=Qe({type:e,selectors:[["","cueResized",""]],hostBindings:function(r,o){1&r&&Xa("resize",function(){return o.onWindowResize()},ay)},outputs:{resized:"resized",windowResized:"windowResized"}})}return e})();const C$=["*"];let w$=(()=>{class e{style=cr("");variant=cr("default");shadow=cr(!1);padded=cr(!0);scrollable=cr(!1);maxHeight=cr(void 0);maxContentHeight=cr(!1);isScrollable=yt(()=>this.scrollable()||void 0!==this.maxHeight());getClass=yt(()=>`variant-${this.variant()}`);getStyles=yt(()=>{const n="fade"===this.variant()?"neutral":this.variant(),r=[`\n color: var(--cue-${n}Contrast);\n --background-color: var(--cue-${n});\n background-color: var(--background-color);\n max-height: ${this.maxHeight()??"none"};\n position: ${this.isScrollable()?"relative":void 0};\n min-height: ${this.isScrollable()?void 0:"fit-content"};\n `];return"fade"===this.variant()&&r.push(`\n background-image: linear-gradient(to bottom,var(--cue-${n}),var(--cue-main-background));\n `),r.push(this.style()),r.join("")});innerDisplay=yt(()=>this.isScrollable()?"block":"contents");onResize(n){if(!this.maxContentHeight())return;const r=Array.from(n.element.children).reduce((o,i)=>i.getBoundingClientRect().height+o,0);n.element.parentElement.style.maxHeight=`calc(${r}px + var(--cue-card-padding-y) * 2 + 2px)`}static \u0275fac=function(r){return new(r||e)};static \u0275cmp=dD({type:e,selectors:[["cue-card"]],hostVars:8,hostBindings:function(r,o){2&r&&(function uE(e){fE(gE,m1,e,!1)}(o.getStyles()),function lE(e){fE(C1,y1,e,!0)}(o.getClass()),Tf("padded",o.padded())("shadow",o.shadow()))},inputs:{style:[1,"style"],variant:[1,"variant"],shadow:[1,"shadow"],padded:[1,"padded"],scrollable:[1,"scrollable"],maxHeight:[1,"maxHeight"],maxContentHeight:[1,"maxContentHeight"]},ngContentSelectors:C$,decls:2,vars:2,consts:[["cueResized","",1,"inner",3,"resized"]],template:function(r,o){1&r&&(function Y_(e){const t=g()[15][5];if(!t.projection){const r=t.projection=function ds(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(e?e.length:1,null),o=r.slice();let i=t.child;for(;null!==i;){if(128!==i.type){const s=e?JF(i,e):0;null!==s&&(o[s]?o[s].projectionNext=i:r[s]=i,o[s]=i)}i=i.next}}}(),Mi(0,"div",0),Xa("resized",function(s){return o.onResize(s)}),K_(1),qa()),2&r&&Sf("display",o.innerDisplay())},dependencies:[I$],styles:["[_nghost-%COMP%]{display:block;border-radius:var(--cue-card-border-radius);border:1px solid var(--cue-card-border-color);box-sizing:border-box;overflow:hidden;--cue-scrollbar-thumb-color: var(--cue-color-lightgray)}.padded[_nghost-%COMP%]{padding:var(--cue-card-padding-y) var(--cue-card-padding-x)}.shadow[_nghost-%COMP%]{box-shadow:var(--cue-card-box-shadow)}.variant-default[_nghost-%COMP%]{--cue-paginator-text-color: var(--cue-paginator-text-color);--cue-input-border-bottom-color: var(--cue-main-foreground);--cue-input-placeholder-color: var(--cue-color-darkmidgray);--cue-input-label-color: var(--cue-main-foreground);--cue-input-value-color: var(--cue-main-foreground);--cue-stepper-border-color: var(--cue-main-foreground);--cue-stepper-fill-color: var(--cue-main-foreground);--cue-stepper-connector-color: var(--cue-main-foreground)}body.dark .variant-default[_nghost-%COMP%]{--cue-scrollbar-thumb-color: var(--cue-color-midgray);--cue-paginator-text-color: var(--cue-color-midgray)}.variant-secondary[_nghost-%COMP%], .variant-primary[_nghost-%COMP%]{--cue-button-primary-focus-color: var(--cue-color-ultralightgray);--cue-button-primary-foreground: var(--cue-color-blue);--cue-button-primary-border-color: var(--cue-color-ultralightgray);--cue-button-primary-background: var(--cue-color-ultralightgray);--cue-button-primary-disabled-foreground: var(--cue-color-midgray);--cue-button-primary-disabled-background: var(--cue-color-lightgray);--cue-button-primary-disabled-border-color: var(--cue-color-lightgray);--cue-button-secondary-disabled-foreground: var(--cue-color-midgray);--cue-button-secondary-disabled-border-color: var(--cue-color-midgray);--cue-input-value-color: var(--cue-color-ultralightgray);--cue-input-label-color: var(--cue-color-ultralightgray);--cue-input-placeholder-color: var(--cue-color-lightgray);--cue-input-border-bottom-color: var(--cue-color-ultralightgray);--cue-input-switch-background: rgba(255, 255, 255, .25);--cue-input-switch-checked-background: var(--cue-color-green);--cue-input-switch-checked-indicator-background: var(--cue-color-darkgray);--cue-stepper-border-color: var(--cue-color-ultralightgray);--cue-stepper-fill-color: var(--cue-color-ultralightgray);--cue-stepper-connector-color: var(--cue-color-ultralightgray);--cue-table-text-color: var(--cue-color-ultralightgray);--cue-table-secondary-text-color: var(--cue-color-lightgray);--cue-table-row-border-bottom-color: var(--cue-color-ultralightgray);--cue-chart-text-color: var(--cue-color-ultralightgray);--cue-paginator-text-color: var(--cue-color-ultralightgray)}:is(.variant-secondary[_nghost-%COMP%], .variant-primary[_nghost-%COMP%]) .ag-cell{--cue-input-value-color: var(--cue-table-text-color);--cue-input-placeholder-color: var(--cue-table-secondary-text-color)}.variant-secondary[_nghost-%COMP%]{--cue-input-switch-checked-background: var(--cue-color-blue);--cue-chart-border-background-color: var(--cue-secondary)}.variant-accent[_nghost-%COMP%]{--cue-chart-border-background-color: var(--cue-accent);--cue-chart-text-color: var(--cue-color-darkgray);--cue-chart-text-color-select: var(--cue-color-darkmidgray);--cue-input-value-color: var(--cue-color-darkgray);--cue-input-label-color: var(--cue-color-darkgray);--cue-input-placeholder-color: var(--cue-color-darkmidgray);--cue-input-border-bottom-color: var(--cue-color-darkgray);--cue-input-border-color: var(--cue-color-darkgray);--cue-stepper-border-color: var(--cue-color-darkgray);--cue-stepper-fill-color: var(--cue-color-darkgray);--cue-stepper-connector-color: var(--cue-color-darkgray)}.variant-primary[_nghost-%COMP%]{--cue-chart-border-background-color: var(--cue-primary);--cue-chart-text-color: var(--cue-color-ultralightgray);--cue-chart-text-color-select: var(--cue-color-lightgray)}[_nghost-%COMP%] > .inner[_ngcontent-%COMP%]{position:absolute;inset:var(--cue-card-padding-y) 0 0 var(--cue-card-padding-x);overflow:auto;padding-right:var(--cue-card-padding-x);padding-bottom:var(--cue-card-padding-y);scrollbar-width:thin;scrollbar-color:var(--cue-scrollbar-thumb-color) transparent}[_nghost-%COMP%] > .inner[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px;height:4px}[_nghost-%COMP%] > .inner[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:var(--cue-scrollbar-thumb-color);border-radius:2px}[_nghost-%COMP%] > .inner[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}"]})}return e})(),b$=(()=>{class e{injector;constructor(n){this.injector=n}ngDoBootstrap(){const n=jL(w$,{injector:this.injector});customElements.define("cue-card",n)}static \u0275fac=function(r){return new(r||e)(V(je))};static \u0275mod=_i({type:e});static \u0275inj=pr({imports:[E$]})}return e})();_$().bootstrapModule(b$).catch(e=>{throw console.error("[CueCardWC] Bootstrap failed:",e),e})}},Co=>{Co(Co.s=309)}]);