From a5f373df9968ceeffd786262aef5b982251fef07 Mon Sep 17 00:00:00 2001 From: Juan Francisco Cisneros Windows Date: Wed, 30 Oct 2024 11:19:17 -0500 Subject: [PATCH] New Features: 1. Incident Manager finished 2. Postmortem 3. Postmortem with AI New Pages: Bugs Corrected: To Be Corrected: 0. On product delete, delete trace results 1. On product delete, delete flamegraph result 3. On add member do not delete github info 4. Sort System Test check if needed!!! --- src/app/app-routing.module.ts | 439 +++++++++--------- src/app/interfaces/incident.ts | 6 + .../incident-details.page.html | 2 +- .../incident-details/incident-details.page.ts | 21 +- .../incident-manager.page.html | 20 +- .../incident-manager/incident-manager.page.ts | 9 +- .../incident-postmortem-routing.module.ts | 17 + .../incident-postmortem.module.ts | 22 + .../incident-postmortem.page.html | 62 +++ .../incident-postmortem.page.scss | 0 .../incident-postmortem.page.spec.ts | 17 + .../incident-postmortem.page.ts | 209 +++++++++ src/app/services/incident.service.ts | 40 ++ www/3675.185a8c86d3ff0b7c.js | 1 + www/3675.881df6996b8040b2.js | 1 - www/6749.35cfdb01525f2301.js | 1 + www/7907.060d40f84c30ad9b.js | 1 + www/7907.d72619a0c1833a1b.js | 1 - www/common.62b9652b6820acda.js | 1 + www/common.d3be83ed72735b56.js | 1 - www/index.html | 4 +- www/main.828b48b08bb3175e.js | 1 + www/main.fbf9b0eda3a2e1a7.js | 1 - www/runtime.c571ec1430bc7676.js | 1 + www/runtime.ca9400f10852926d.js | 1 - ...dae33c.css => styles.af6f8c1461f0d4cc.css} | 2 +- 26 files changed, 650 insertions(+), 231 deletions(-) create mode 100644 src/app/pages/incident_manager/incident-postmortem/incident-postmortem-routing.module.ts create mode 100644 src/app/pages/incident_manager/incident-postmortem/incident-postmortem.module.ts create mode 100644 src/app/pages/incident_manager/incident-postmortem/incident-postmortem.page.html create mode 100644 src/app/pages/incident_manager/incident-postmortem/incident-postmortem.page.scss create mode 100644 src/app/pages/incident_manager/incident-postmortem/incident-postmortem.page.spec.ts create mode 100644 src/app/pages/incident_manager/incident-postmortem/incident-postmortem.page.ts create mode 100644 www/3675.185a8c86d3ff0b7c.js delete mode 100644 www/3675.881df6996b8040b2.js create mode 100644 www/6749.35cfdb01525f2301.js create mode 100644 www/7907.060d40f84c30ad9b.js delete mode 100644 www/7907.d72619a0c1833a1b.js create mode 100644 www/common.62b9652b6820acda.js delete mode 100644 www/common.d3be83ed72735b56.js create mode 100644 www/main.828b48b08bb3175e.js delete mode 100644 www/main.fbf9b0eda3a2e1a7.js create mode 100644 www/runtime.c571ec1430bc7676.js delete mode 100644 www/runtime.ca9400f10852926d.js rename www/{styles.d5878049b3dae33c.css => styles.af6f8c1461f0d4cc.css} (93%) diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 5949d86..fe2f07f 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -1,224 +1,233 @@ -import { NgModule } from '@angular/core'; -import { PreloadAllModules, RouterModule, Routes } from '@angular/router'; -import {canActivate, redirectLoggedInTo, redirectUnauthorizedTo} from "@angular/fire/auth-guard"; - -const redirectUnauthorizedToLogin = () => redirectUnauthorizedTo(['']); -const redirectLoggedInToHome = () => redirectLoggedInTo(['home']); - -// @ts-ignore -const routes: Routes = [ - { - path: '', - redirectTo: 'login', - pathMatch: 'full' - }, - { - path: 'home', - loadChildren: () => import('./pages/main_graphs/home/home.module').then(m => m.HomePageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'register', - loadChildren: () => import('./pages/login_register/register/register.module').then(m => m.RegisterPageModule), - ...canActivate(redirectLoggedInToHome) - }, - { - path: 'login', - loadChildren: () => import('./pages/login_register/login/login.module').then(m => m.LoginPageModule), - ...canActivate(redirectLoggedInToHome) - - }, - { - path: 'myteam', - loadChildren: () => import('./pages/myteam/myteam.module').then( m => m.MyteamPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'model-product', - loadChildren: () => import('./pages/model_the_product/model-product/model-product.module').then(m => m.ModelProductPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'new-product', - loadChildren: () => import('./pages/model_the_product/new-product/new-product.module').then(m => m.NewProductPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'view-product', - loadChildren: () => import('./pages/model_the_product/view-product/view-product.module').then(m => m.ViewProductPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'show-map', - loadChildren: () => import('./pages/latency_test/show-map/show-map.module').then(m => m.ShowMapPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'latency-test', - loadChildren: () => import('./pages/latency_test/latency-test/latency-test.module').then(m => m.LatencyTestPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'latency-chooser', - loadChildren: () => import('./pages/latency_test/latency-chooser/latency-chooser.module').then(m => m.LatencyChooserPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'latency-results', - loadChildren: () => import('./pages/latency_test/latency-results/latency-results.module').then(m => m.LatencyResultsPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'graph-latency', - loadChildren: () => import('./pages/main_graphs/latency_graph/graph-latency/graph-latency.module').then(m => m.GraphPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'trace-chooser', - loadChildren: () => import('./pages/trace_test/trace-chooser/trace-chooser.module').then(m => m.TraceChooserPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'trace-test', - loadChildren: () => import('./pages/trace_test/trace-test/trace-test.module').then(m => m.TraceTestPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'trace-results', - loadChildren: () => import('./pages/trace_test/trace-results/trace-results.module').then(m => m.TraceResultsPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'show-map-trace', - loadChildren: () => import('./pages/trace_test/show-map-trace/show-map-trace.module').then(m => m.ShowMapTracePageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'graph-data-for', - loadChildren: () => import('./pages/main_graphs/graph-data-for/graph-data-for.module').then(m => m.GraphDataForPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'graph-trace', - loadChildren: () => import('./pages/main_graphs/traceroute_graph/graph-trace/graph-trace.module').then(m => m.GraphTracePageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'ai', - loadChildren: () => import('./pages/ai/ai.module').then( m => m.AiPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'flame-graph', - loadChildren: () => import('./pages/flame_graph/flame-graph/flame-graph.module').then(m => m.FlameGraphPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'flame-graph-for', - loadChildren: () => import('./pages/flame_graph/flame-graph-for/flame-graph-for.module').then(m => m.FlameGraphForPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'flame-graph-date', - loadChildren: () => import('./pages/flame_graph/flame-graph-date/flame-graph-date.module').then(m => m.FlameGraphDatePageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'flame-graph-compare', - loadChildren: () => import('./pages/flame_graph/flame-graph-compare/flame-graph-compare.module').then(m => m.FlameGraphComparePageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'software-testing', - loadChildren: () => import('./pages/software_testing/software-testing/software-testing.module').then(m => m.SoftwareTestingPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'software-testing-chooser', - loadChildren: () => import('./pages/software_testing/software-testing-chooser/software-testing-chooser.module').then(m => m.SoftwareTestingChooserPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'create-system-test', - loadChildren: () => import('./pages/software_testing/system_tests/create-system-test/create-system-test.module').then(m => m.CreateSystemTestPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'execute-system-test', - loadChildren: () => import('./pages/software_testing/system_tests/execute-system-test/execute-system-test.module').then(m => m.ExecuteSystemTestPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'board', - loadChildren: () => import('./pages/board/board.module').then( m => m.BoardPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'view-history-system-test', - loadChildren: () => import('./pages/software_testing/system_tests/view-history-system-test/view-history-system-test.module').then(m => m.ViewHistorySystemTestPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'view-system-test', - loadChildren: () => import('./pages/software_testing/system_tests/view-system-test/view-system-test.module').then(m => m.ViewSystemTestPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'create-unit-test', - loadChildren: () => import('./pages/software_testing/unit_tests/create-unit-test/create-unit-test.module').then( m => m.CreateUnitTestPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'settings', - loadChildren: () => import('./pages/settings/settings.module').then( m => m.SettingsPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'create-integration-test', - loadChildren: () => import('./pages/software_testing/integration_tests/create-integration-test/create-integration-test.module').then( m => m.CreateIntegrationTestPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'load-test-chooser', - loadChildren: () => import('./pages/load_test/load-test-chooser/load-test-chooser.module').then( m => m.LoadTestChooserPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'load-test', - loadChildren: () => import('./pages/load_test/load-test/load-test.module').then( m => m.LoadTestPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'load-test-history', - loadChildren: () => import('./pages/load_test/load-test-history/load-test-history.module').then( m => m.LoadTestHistoryPageModule), - ...canActivate(redirectUnauthorizedToLogin), - }, - { - path: 'incident-manager-chooser', - loadChildren: () => import('./pages/incident_manager/incident-manager-chooser/incident-manager-chooser.module').then( m => m.IncidentManagerChooserPageModule), - ...canActivate(redirectUnauthorizedToLogin), - - }, { +import { NgModule } from '@angular/core'; +import { PreloadAllModules, RouterModule, Routes } from '@angular/router'; +import {canActivate, redirectLoggedInTo, redirectUnauthorizedTo} from "@angular/fire/auth-guard"; + +const redirectUnauthorizedToLogin = () => redirectUnauthorizedTo(['']); +const redirectLoggedInToHome = () => redirectLoggedInTo(['home']); + +// @ts-ignore +const routes: Routes = [ + { + path: '', + redirectTo: 'login', + pathMatch: 'full' + }, + { + path: 'home', + loadChildren: () => import('./pages/main_graphs/home/home.module').then(m => m.HomePageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'register', + loadChildren: () => import('./pages/login_register/register/register.module').then(m => m.RegisterPageModule), + ...canActivate(redirectLoggedInToHome) + }, + { + path: 'login', + loadChildren: () => import('./pages/login_register/login/login.module').then(m => m.LoginPageModule), + ...canActivate(redirectLoggedInToHome) + + }, + { + path: 'myteam', + loadChildren: () => import('./pages/myteam/myteam.module').then( m => m.MyteamPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'model-product', + loadChildren: () => import('./pages/model_the_product/model-product/model-product.module').then(m => m.ModelProductPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'new-product', + loadChildren: () => import('./pages/model_the_product/new-product/new-product.module').then(m => m.NewProductPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'view-product', + loadChildren: () => import('./pages/model_the_product/view-product/view-product.module').then(m => m.ViewProductPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'show-map', + loadChildren: () => import('./pages/latency_test/show-map/show-map.module').then(m => m.ShowMapPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'latency-test', + loadChildren: () => import('./pages/latency_test/latency-test/latency-test.module').then(m => m.LatencyTestPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'latency-chooser', + loadChildren: () => import('./pages/latency_test/latency-chooser/latency-chooser.module').then(m => m.LatencyChooserPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'latency-results', + loadChildren: () => import('./pages/latency_test/latency-results/latency-results.module').then(m => m.LatencyResultsPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'graph-latency', + loadChildren: () => import('./pages/main_graphs/latency_graph/graph-latency/graph-latency.module').then(m => m.GraphPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'trace-chooser', + loadChildren: () => import('./pages/trace_test/trace-chooser/trace-chooser.module').then(m => m.TraceChooserPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'trace-test', + loadChildren: () => import('./pages/trace_test/trace-test/trace-test.module').then(m => m.TraceTestPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'trace-results', + loadChildren: () => import('./pages/trace_test/trace-results/trace-results.module').then(m => m.TraceResultsPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'show-map-trace', + loadChildren: () => import('./pages/trace_test/show-map-trace/show-map-trace.module').then(m => m.ShowMapTracePageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'graph-data-for', + loadChildren: () => import('./pages/main_graphs/graph-data-for/graph-data-for.module').then(m => m.GraphDataForPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'graph-trace', + loadChildren: () => import('./pages/main_graphs/traceroute_graph/graph-trace/graph-trace.module').then(m => m.GraphTracePageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'ai', + loadChildren: () => import('./pages/ai/ai.module').then( m => m.AiPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'flame-graph', + loadChildren: () => import('./pages/flame_graph/flame-graph/flame-graph.module').then(m => m.FlameGraphPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'flame-graph-for', + loadChildren: () => import('./pages/flame_graph/flame-graph-for/flame-graph-for.module').then(m => m.FlameGraphForPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'flame-graph-date', + loadChildren: () => import('./pages/flame_graph/flame-graph-date/flame-graph-date.module').then(m => m.FlameGraphDatePageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'flame-graph-compare', + loadChildren: () => import('./pages/flame_graph/flame-graph-compare/flame-graph-compare.module').then(m => m.FlameGraphComparePageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'software-testing', + loadChildren: () => import('./pages/software_testing/software-testing/software-testing.module').then(m => m.SoftwareTestingPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'software-testing-chooser', + loadChildren: () => import('./pages/software_testing/software-testing-chooser/software-testing-chooser.module').then(m => m.SoftwareTestingChooserPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'create-system-test', + loadChildren: () => import('./pages/software_testing/system_tests/create-system-test/create-system-test.module').then(m => m.CreateSystemTestPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'execute-system-test', + loadChildren: () => import('./pages/software_testing/system_tests/execute-system-test/execute-system-test.module').then(m => m.ExecuteSystemTestPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'board', + loadChildren: () => import('./pages/board/board.module').then( m => m.BoardPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'view-history-system-test', + loadChildren: () => import('./pages/software_testing/system_tests/view-history-system-test/view-history-system-test.module').then(m => m.ViewHistorySystemTestPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'view-system-test', + loadChildren: () => import('./pages/software_testing/system_tests/view-system-test/view-system-test.module').then(m => m.ViewSystemTestPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'create-unit-test', + loadChildren: () => import('./pages/software_testing/unit_tests/create-unit-test/create-unit-test.module').then( m => m.CreateUnitTestPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'settings', + loadChildren: () => import('./pages/settings/settings.module').then( m => m.SettingsPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'create-integration-test', + loadChildren: () => import('./pages/software_testing/integration_tests/create-integration-test/create-integration-test.module').then( m => m.CreateIntegrationTestPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'load-test-chooser', + loadChildren: () => import('./pages/load_test/load-test-chooser/load-test-chooser.module').then( m => m.LoadTestChooserPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'load-test', + loadChildren: () => import('./pages/load_test/load-test/load-test.module').then( m => m.LoadTestPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'load-test-history', + loadChildren: () => import('./pages/load_test/load-test-history/load-test-history.module').then( m => m.LoadTestHistoryPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + { + path: 'incident-manager-chooser', + loadChildren: () => import('./pages/incident_manager/incident-manager-chooser/incident-manager-chooser.module').then( m => m.IncidentManagerChooserPageModule), + ...canActivate(redirectUnauthorizedToLogin), + + }, + { path: 'incident-manager', - loadChildren: () => import('./pages/incident_manager/incident-manager/incident-manager.module').then( m => m.IncidentManagerPageModule) + loadChildren: () => import('./pages/incident_manager/incident-manager/incident-manager.module').then( m => m.IncidentManagerPageModule), + ...canActivate(redirectUnauthorizedToLogin), }, { path: 'new-incident', - loadChildren: () => import('./pages/incident_manager/new-incident/new-incident.module').then( m => m.NewIncidentPageModule) + loadChildren: () => import('./pages/incident_manager/new-incident/new-incident.module').then( m => m.NewIncidentPageModule), + ...canActivate(redirectUnauthorizedToLogin), }, { path: 'incident-details', - loadChildren: () => import('./pages/incident_manager/incident-details/incident-details.module').then( m => m.IncidentDetailsPageModule) + loadChildren: () => import('./pages/incident_manager/incident-details/incident-details.module').then( m => m.IncidentDetailsPageModule), + ...canActivate(redirectUnauthorizedToLogin), }, + { + path: 'incident-postmortem', + loadChildren: () => import('./pages/incident_manager/incident-postmortem/incident-postmortem.module').then( m => m.IncidentPostmortemPageModule), + ...canActivate(redirectUnauthorizedToLogin), + }, + + + +]; - - -]; - -@NgModule({ - imports: [ - RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules }) - ], - exports: [RouterModule] -}) -export class AppRoutingModule { } +@NgModule({ + imports: [ + RouterModule.forRoot(routes, { preloadingStrategy: PreloadAllModules }) + ], + exports: [RouterModule] +}) +export class AppRoutingModule { } diff --git a/src/app/interfaces/incident.ts b/src/app/interfaces/incident.ts index edb5661..d1971e8 100644 --- a/src/app/interfaces/incident.ts +++ b/src/app/interfaces/incident.ts @@ -17,6 +17,12 @@ export interface Incident { iAmIn?: boolean; + postmortem?: { + wentWrong: string; + canBeLearned: string; + howToPrevent: string; + } + } diff --git a/src/app/pages/incident_manager/incident-details/incident-details.page.html b/src/app/pages/incident_manager/incident-details/incident-details.page.html index 4564bb2..4090d57 100644 --- a/src/app/pages/incident_manager/incident-details/incident-details.page.html +++ b/src/app/pages/incident_manager/incident-details/incident-details.page.html @@ -215,7 +215,7 @@

Postmortem Culture: Learning from Failure. The postmortem is a retrospective of the incident, focusing on what went wrong, what can be learned, and how to prevent similar incidents in the future.

- Incident Postmortem + Incident Postmortem diff --git a/src/app/pages/incident_manager/incident-details/incident-details.page.ts b/src/app/pages/incident_manager/incident-details/incident-details.page.ts index 350ff21..514cf39 100644 --- a/src/app/pages/incident_manager/incident-details/incident-details.page.ts +++ b/src/app/pages/incident_manager/incident-details/incident-details.page.ts @@ -175,15 +175,33 @@ export class IncidentDetailsPage implements OnInit { closeIncident() { + this.incidentService.closeIncident(this.orgName, this.productObjective, this.productStep, this.incident).then(async res => { + if (res) { + // navigate one step back + await this.router.navigate(['/incident-manager', { + productObjective: this.productObjective, + step: this.productStep + }]); + } + }); } - saveChanges() { + + async postmortemIncident() { + await this.router.navigate(['/incident-postmortem', { + orgName: this.orgName, + productObjective: this.productObjective, + step: this.productStep, + currentUser: this.currentUser, + incidentTitle: this.incident.title + }]); } + /** * Show a loading spinner. */ @@ -207,4 +225,5 @@ export class IncidentDetailsPage implements OnInit { upload.value = ''; this.isImageLoaded = false; } + } diff --git a/src/app/pages/incident_manager/incident-manager/incident-manager.page.html b/src/app/pages/incident_manager/incident-manager/incident-manager.page.html index 3dff722..e676ac7 100644 --- a/src/app/pages/incident_manager/incident-manager/incident-manager.page.html +++ b/src/app/pages/incident_manager/incident-manager/incident-manager.page.html @@ -19,9 +19,12 @@

{{incident.title}}

+
@if (incident.iAmIn) { Assigned to you } + Open +
@@ -37,13 +40,20 @@

{{incident.title}}

- +
-

{{incident.title}}

- @if (incident.iAmIn) { - Assigned to you - } +

{{incident.title}}

+
+ @if (incident.iAmIn) { + Assigned to you + } + @if (incident.state === 'postmortem') { + Postmortem + } @else { + Closed + } +
diff --git a/src/app/pages/incident_manager/incident-manager/incident-manager.page.ts b/src/app/pages/incident_manager/incident-manager/incident-manager.page.ts index 0d39d21..07f2faf 100644 --- a/src/app/pages/incident_manager/incident-manager/incident-manager.page.ts +++ b/src/app/pages/incident_manager/incident-manager/incident-manager.page.ts @@ -63,7 +63,7 @@ export class IncidentManagerPage implements OnInit { async closeIncident() { this.closeIncidents = await this.incidentService.getIncidents(this.orgName, this.productObjective, this.productStep ); - this.closeIncidents = this.closeIncidents.filter(incident => incident.state === 'closed'); + this.closeIncidents = this.closeIncidents.filter(incident => incident.state === 'closed' || incident.state === 'postmortem'); } @@ -135,4 +135,11 @@ export class IncidentManagerPage implements OnInit { await this.loadingCtrl.dismiss(); } + goToPostmortem(incident: Incident) { + this.router.navigate(['incident-postmortem', { + productObjective: this.productObjective, + step: this.productStep, + incidentTitle: incident.title + }]); + } } diff --git a/src/app/pages/incident_manager/incident-postmortem/incident-postmortem-routing.module.ts b/src/app/pages/incident_manager/incident-postmortem/incident-postmortem-routing.module.ts new file mode 100644 index 0000000..3e67540 --- /dev/null +++ b/src/app/pages/incident_manager/incident-postmortem/incident-postmortem-routing.module.ts @@ -0,0 +1,17 @@ +import { NgModule } from '@angular/core'; +import { Routes, RouterModule } from '@angular/router'; + +import { IncidentPostmortemPage } from './incident-postmortem.page'; + +const routes: Routes = [ + { + path: '', + component: IncidentPostmortemPage + } +]; + +@NgModule({ + imports: [RouterModule.forChild(routes)], + exports: [RouterModule], +}) +export class IncidentPostmortemPageRoutingModule {} diff --git a/src/app/pages/incident_manager/incident-postmortem/incident-postmortem.module.ts b/src/app/pages/incident_manager/incident-postmortem/incident-postmortem.module.ts new file mode 100644 index 0000000..2706b67 --- /dev/null +++ b/src/app/pages/incident_manager/incident-postmortem/incident-postmortem.module.ts @@ -0,0 +1,22 @@ +import { NgModule } from '@angular/core'; +import { CommonModule } from '@angular/common'; +import { FormsModule } from '@angular/forms'; + +import { IonicModule } from '@ionic/angular'; + +import { IncidentPostmortemPageRoutingModule } from './incident-postmortem-routing.module'; + +import { IncidentPostmortemPage } from './incident-postmortem.page'; +import {ComponentsModule} from "../../../components/components.module"; + +@NgModule({ + imports: [ + CommonModule, + FormsModule, + IonicModule, + IncidentPostmortemPageRoutingModule, + ComponentsModule + ], + declarations: [IncidentPostmortemPage] +}) +export class IncidentPostmortemPageModule {} diff --git a/src/app/pages/incident_manager/incident-postmortem/incident-postmortem.page.html b/src/app/pages/incident_manager/incident-postmortem/incident-postmortem.page.html new file mode 100644 index 0000000..62f51a2 --- /dev/null +++ b/src/app/pages/incident_manager/incident-postmortem/incident-postmortem.page.html @@ -0,0 +1,62 @@ + + + + + + + +

Postmortem for {{ incident.title }}

+
+
+ + + + + + + +
+

What went wrong?

+ + + +
+ +
+
+ + +
+

What can be learned?

+ + + +
+ +
+
+ + +
+

How to prevent similar incidents in the future?

+ + + +
+ +
+
+
+
+
+ + + + + Save and Close + + + +
+
+
diff --git a/src/app/pages/incident_manager/incident-postmortem/incident-postmortem.page.scss b/src/app/pages/incident_manager/incident-postmortem/incident-postmortem.page.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/pages/incident_manager/incident-postmortem/incident-postmortem.page.spec.ts b/src/app/pages/incident_manager/incident-postmortem/incident-postmortem.page.spec.ts new file mode 100644 index 0000000..3be9ece --- /dev/null +++ b/src/app/pages/incident_manager/incident-postmortem/incident-postmortem.page.spec.ts @@ -0,0 +1,17 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; +import { IncidentPostmortemPage } from './incident-postmortem.page'; + +describe('IncidentPostmortemPage', () => { + let component: IncidentPostmortemPage; + let fixture: ComponentFixture; + + beforeEach(() => { + fixture = TestBed.createComponent(IncidentPostmortemPage); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/pages/incident_manager/incident-postmortem/incident-postmortem.page.ts b/src/app/pages/incident_manager/incident-postmortem/incident-postmortem.page.ts new file mode 100644 index 0000000..c8eebb2 --- /dev/null +++ b/src/app/pages/incident_manager/incident-postmortem/incident-postmortem.page.ts @@ -0,0 +1,209 @@ +import {Component, inject, OnInit} from '@angular/core'; +import {ActivatedRoute, Router} from "@angular/router"; +import {LoadingController} from "@ionic/angular"; +import {IncidentService} from "../../../services/incident.service"; +import {Incident} from "../../../interfaces/incident"; +import {getGenerativeModel, VertexAI} from "@angular/fire/vertexai-preview"; + +@Component({ + selector: 'app-incident-postmortem', + templateUrl: './incident-postmortem.page.html', + styleUrls: ['./incident-postmortem.page.scss'], +}) +export class IncidentPostmortemPage implements OnInit { + + orgName: string = ''; + productObjective: string = ''; + productStep: string = ''; + incident: Incident = {} as Incident; + + + + wentWrong:string = ''; + canBeLearned: string = ''; + howToPrevent: string = ''; + + private vertexAI:VertexAI = inject(VertexAI); + + + constructor( + private router: Router, + private activatedRoute: ActivatedRoute, + private loadingCtrl: LoadingController, + private incidentService: IncidentService, + + ) { } + + ngOnInit() { + } + + async ionViewWillEnter() { + this.getParams(); + await this.getIncident() + } + + + getParams() { + this.activatedRoute.params.subscribe(params => { + this.productObjective = params['productObjective']; //this is the product objective + this.productStep = params['step']; //this is the step of the product + this.incident.title = params['incidentTitle']; + }); + const user = JSON.parse(localStorage.getItem('user')!); + this.orgName = user.orgName!; + + console.log(this.orgName); + console.log(this.productObjective); + console.log(this.productStep); + console.log(this.incident.title); + } + + async getIncident() { + + await this.showLoading(); + + this.incident = await this.incidentService.getIncident(this.orgName, this.productObjective, this.productStep, this.incident.title) + + try { + this.wentWrong = this.incident.postmortem?.wentWrong!; + this.canBeLearned = this.incident.postmortem?.canBeLearned!; + this.howToPrevent = this.incident.postmortem?.howToPrevent!; + }catch (e) { + console.log(e); + } + + await this.hideLoading(); + + } + + + async savePostmortem() { + await this.showLoading(); + this.incident.postmortem = { + wentWrong: this.wentWrong, + canBeLearned: this.canBeLearned, + howToPrevent: this.howToPrevent + } + + this.incident.state = 'postmortem'; + + console.dir(this.incident); + + await this.incidentService.updateIncident(this.orgName, this.productObjective, this.productStep, this.incident).then(async res => { + if (res) { + await this.hideLoading(); + await this.router.navigate(['/incident-manager', { + productObjective: this.productObjective, + step: this.productStep, + }]) + } + await this.hideLoading(); + }) + } + + async sendToAI(field: string) { + await this.showLoading(); + + try { + + + console.log(field); + + + let question = ''; + let answer; + if (field === 'wentWrong') { + question = 'Ayudame a completar el Postmortem del siguiente incidente: ' + this.incident.title + '. Lo sucedido se basa en la sigueinte descripción: ' + this.incident.description + '. Esto fue ' + ' lo que fue pasando en el incidente: '; + for (let i = 0; i < this.incident.report!.length; i++) { + question += ' ' + this.incident.report![i].comment; + } + question += ' ¿Qué salió mal?. Responde solo a esta pregunta en maximo 100 palabras'; + } + + if (field === 'canBeLearned') { + + if (this.wentWrong === '') { + await this.hideLoading(); + return; + } + + question = 'Ayudame a completar el Postmortem del siguiente incidente: ' + this.incident.title + '. Lo sucedido se basa en la sigueinte descripción: ' + this.incident.description + '. Esto fue ' + ' lo que fue pasando en el incidente: '; + for (let i = 0; i < this.incident.report!.length; i++) { + question += ' ' + this.incident.report![i].comment; + } + + question += 'Lo que salió mal fue: ' + this.wentWrong; + + question += ' ¿Qué se puede aprender sobre el incidente?. Responde solo a esta pregunta en maximo 100 palabras'; + } + + + if (field === 'howToPrevent') { + + if (this.canBeLearned === '' || this.wentWrong === '') { + await this.hideLoading(); + return; + } + + question = 'Ayudame a completar el Postmortem del siguiente incidente: ' + this.incident.title + '. Lo sucedido se basa en la sigueinte descripción: ' + this.incident.description + '. Esto fue ' + ' lo que fue pasando en el incidente: '; + for (let i = 0; i < this.incident.report!.length; i++) { + question += ' ' + this.incident.report![i].comment; + } + + question += 'Lo que salió mal fue: ' + this.wentWrong; + + question += 'Lo que se puede aprender sobre el incidente fue: ' + this.canBeLearned; + + question += ' ¿Cómo se puede prevenir que vuelva a suceder?. Responde solo a esta pregunta en maximo 100 palabras'; + } + + + const model = getGenerativeModel(this.vertexAI, {model: "gemini-1.5-flash"}); + answer = await model.generateContent(question); + console.log(answer); + + if (field === 'wentWrong') { + this.wentWrong = answer.response.text() as string; + } + + if (field === 'canBeLearned') { + this.canBeLearned = answer.response.text() as string; + } + + if (field === 'howToPrevent') { + this.howToPrevent = answer.response.text() as string; + } + + }catch (e){ + console.log(e); + } + + + + await this.hideLoading(); + + + } + + /** + * Show a loading spinner. + */ + async showLoading() { + const loading = await this.loadingCtrl.create({ + }); + await loading.present(); + } + + /** + * Hide the loading spinner. + */ + async hideLoading() { + await this.loadingCtrl.dismiss(); + } + + + +} diff --git a/src/app/services/incident.service.ts b/src/app/services/incident.service.ts index 4884b6f..b37012b 100644 --- a/src/app/services/incident.service.ts +++ b/src/app/services/incident.service.ts @@ -56,6 +56,19 @@ export class IncidentService { return []; } + async getIncident(orgName: string, productObjective: string, productStep: string, incidentTitle:string) { + let incidents = await this.getIncidents(orgName, productObjective, productStep) as Incident[] + //search for the incident using the title + for (let i = 0; i <= incidents.length; i++) { + if (incidents[i].title === incidentTitle) { + return incidents[i]; + } + } + + return {} as Incident; + + } + async updateIncident(orgName: string, productObjective: string, productStep: string, incident: Incident) { const docRef = doc(this.firestore, 'teams', orgName, 'products', productObjective, 'incident', productStep); @@ -80,4 +93,31 @@ export class IncidentService { return false; } + async closeIncident(orgName: string, productObjective: string, productStep: string, incident: Incident) { + const docRef = doc(this.firestore, 'teams', orgName, 'products', productObjective, 'incident', productStep); + incident.state = 'closed' + const docSnap = await getDoc(docRef); + if (docSnap.exists()) { + const data = docSnap.data(); + //get the incidents array + // @ts-ignore + let dataIncident = data.incidents; + console.log(dataIncident); + for (let i = 0; i <= dataIncident.length; i++) { + console.log(dataIncident[i].title); + console.log(incident.title); + if (dataIncident[i].title === incident.title) { + console.log('found'); + dataIncident[i] = incident; + await setDoc(docRef, data); + return true; + } + } + } + return false; +} + + + + } diff --git a/www/3675.185a8c86d3ff0b7c.js b/www/3675.185a8c86d3ff0b7c.js new file mode 100644 index 0000000..f47a07f --- /dev/null +++ b/www/3675.185a8c86d3ff0b7c.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3675],{5553:(f,_,c)=>{c.d(_,{h:()=>m});var r=c(177),I=c(7863),s=c(4438);let m=(()=>{var a;class n{}return(a=n).\u0275fac=function(u){return new(u||a)},a.\u0275mod=s.$C({type:a}),a.\u0275inj=s.G2t({imports:[r.MD,I.bv]}),n})()},3241:(f,_,c)=>{c.d(_,{p:()=>m});var r=c(4438),I=c(177),s=c(7863);let m=(()=>{var a;class n{constructor(u){this.location=u,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(a=n).\u0275fac=function(u){return new(u||a)(r.rXU(I.aZ))},a.\u0275cmp=r.VBU({type:a,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(u,h){1&u&&(r.j41(0,"ion-header",0)(1,"ion-toolbar"),r.nrm(2,"ion-menu-button",1),r.j41(3,"ion-icon",2),r.bIt("click",function(){return h.goBack()}),r.k0s(),r.j41(4,"ion-title"),r.EFF(5),r.k0s()()()),2&u&&(r.Y8G("translucent",!0),r.R7$(5),r.JRh(h.title))},dependencies:[s.eU,s.iq,s.MC,s.BC,s.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),n})()},8453:(f,_,c)=>{c.d(_,{W:()=>s});var r=c(4438),I=c(7863);let s=(()=>{var m;class a{constructor(){this.title="Title"}ngOnInit(){}}return(m=a).\u0275fac=function(g){return new(g||m)},m.\u0275cmp=r.VBU({type:m,selectors:[["app-title"]],inputs:{title:"title"},decls:4,vars:1,consts:[[1,"lg:m-10"],["size","12","size-md","6","size-lg","6"],[1,"text-4xl","lg:text-6xl","font-bold"]],template:function(g,u){1&g&&(r.j41(0,"ion-row",0)(1,"ion-col",1)(2,"h1",2),r.EFF(3),r.k0s()()()),2&g&&(r.R7$(3),r.JRh(u.title))},dependencies:[I.hU,I.ln]}),a})()},3675:(f,_,c)=>{c.r(_),c.d(_,{IncidentManagerPageModule:()=>E});var r=c(177),I=c(4341),s=c(7863),m=c(7650),a=c(467),n=c(4438),g=c(4624),u=c(8453),h=c(3241);function M(o,d){1&o&&(n.j41(0,"ion-chip"),n.EFF(1," Assigned to you"),n.k0s())}function v(o,d){if(1&o){const l=n.RV6();n.j41(0,"ion-item",8),n.bIt("click",function(){const t=n.eBV(l).$implicit,i=n.XpG();return n.Njj(i.goToIncident(t))}),n.j41(1,"ion-label",9)(2,"div",10)(3,"h2"),n.EFF(4),n.k0s(),n.j41(5,"div"),n.DNE(6,M,2,0,"ion-chip"),n.j41(7,"ion-chip",11),n.EFF(8,"Open"),n.k0s()()()()()}if(2&o){const l=d.$implicit;n.R7$(4),n.JRh(l.title),n.R7$(2),n.vxM(6,l.iAmIn?6:-1)}}function C(o,d){if(1&o){const l=n.RV6();n.j41(0,"ion-chip",8),n.bIt("click",function(){n.eBV(l);const t=n.XpG().$implicit,i=n.XpG();return n.Njj(i.goToIncident(t))}),n.EFF(1," Assigned to you"),n.k0s()}}function P(o,d){if(1&o){const l=n.RV6();n.j41(0,"ion-chip",13),n.bIt("click",function(){n.eBV(l);const t=n.XpG().$implicit,i=n.XpG();return n.Njj(i.goToPostmortem(t))}),n.EFF(1," Postmortem"),n.k0s()}}function O(o,d){if(1&o){const l=n.RV6();n.j41(0,"ion-chip",14),n.bIt("click",function(){n.eBV(l);const t=n.XpG().$implicit,i=n.XpG();return n.Njj(i.goToIncident(t))}),n.EFF(1," Closed"),n.k0s()}}function j(o,d){if(1&o){const l=n.RV6();n.j41(0,"ion-item")(1,"ion-label",9)(2,"div",10)(3,"h2",8),n.bIt("click",function(){const t=n.eBV(l).$implicit,i=n.XpG();return n.Njj(i.goToIncident(t))}),n.EFF(4),n.k0s(),n.j41(5,"div"),n.DNE(6,C,2,0,"ion-chip")(7,P,2,0,"ion-chip",12)(8,O,2,0),n.k0s()()()()}if(2&o){const l=d.$implicit;n.R7$(4),n.JRh(l.title),n.R7$(2),n.vxM(6,l.iAmIn?6:-1),n.R7$(),n.vxM(7,"postmortem"===l.state?7:8)}}const T=[{path:"",component:(()=>{var o;class d{constructor(e,t,i,p){this.router=e,this.activatedRoute=t,this.loadingCtrl=i,this.incidentService=p,this.productStep="",this.productObjective="",this.orgName="",this.openIncidents=[],this.closeIncidents=[]}ngOnInit(){}ionViewWillEnter(){var e=this;return(0,a.A)(function*(){yield e.showLoading(),e.getParams(),yield e.getOpenIncidents(),yield e.closeIncident(),yield e.getMyOpenIncidents(),yield e.getMyClosedIncidents(),yield e.hideLoading()})()}getParams(){this.activatedRoute.params.subscribe(t=>{this.productObjective=t.productObjective,this.productStep=t.step});const e=JSON.parse(localStorage.getItem("user"));this.orgName=e.orgName,console.log(this.orgName),console.log(this.productObjective),console.log(this.productStep)}getOpenIncidents(){var e=this;return(0,a.A)(function*(){e.openIncidents=yield e.incidentService.getIncidents(e.orgName,e.productObjective,e.productStep),e.openIncidents=e.openIncidents.filter(t=>"open"===t.state)})()}closeIncident(){var e=this;return(0,a.A)(function*(){e.closeIncidents=yield e.incidentService.getIncidents(e.orgName,e.productObjective,e.productStep),e.closeIncidents=e.closeIncidents.filter(t=>"closed"===t.state||"postmortem"===t.state)})()}getMyOpenIncidents(){var e=this;return(0,a.A)(function*(){const t=JSON.parse(localStorage.getItem("user"));for(let i=0;i{var o;class d{}return(o=d).\u0275fac=function(e){return new(e||o)},o.\u0275mod=n.$C({type:o}),o.\u0275inj=n.G2t({imports:[m.iI.forChild(T),m.iI]}),d})();var y=c(5553);let E=(()=>{var o;class d{}return(o=d).\u0275fac=function(e){return new(e||o)},o.\u0275mod=n.$C({type:o}),o.\u0275inj=n.G2t({imports:[r.MD,I.YN,s.bv,R,y.h]}),d})()}}]); \ No newline at end of file diff --git a/www/3675.881df6996b8040b2.js b/www/3675.881df6996b8040b2.js deleted file mode 100644 index 4fcf9ba..0000000 --- a/www/3675.881df6996b8040b2.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[3675],{5553:(f,I,c)=>{c.d(I,{h:()=>u});var a=c(177),_=c(7863),s=c(4438);let u=(()=>{var r;class n{}return(r=n).\u0275fac=function(m){return new(m||r)},r.\u0275mod=s.$C({type:r}),r.\u0275inj=s.G2t({imports:[a.MD,_.bv]}),n})()},3241:(f,I,c)=>{c.d(I,{p:()=>u});var a=c(4438),_=c(177),s=c(7863);let u=(()=>{var r;class n{constructor(m){this.location=m,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(r=n).\u0275fac=function(m){return new(m||r)(a.rXU(_.aZ))},r.\u0275cmp=a.VBU({type:r,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(m,h){1&m&&(a.j41(0,"ion-header",0)(1,"ion-toolbar"),a.nrm(2,"ion-menu-button",1),a.j41(3,"ion-icon",2),a.bIt("click",function(){return h.goBack()}),a.k0s(),a.j41(4,"ion-title"),a.EFF(5),a.k0s()()()),2&m&&(a.Y8G("translucent",!0),a.R7$(5),a.JRh(h.title))},dependencies:[s.eU,s.iq,s.MC,s.BC,s.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),n})()},8453:(f,I,c)=>{c.d(I,{W:()=>s});var a=c(4438),_=c(7863);let s=(()=>{var u;class r{constructor(){this.title="Title"}ngOnInit(){}}return(u=r).\u0275fac=function(p){return new(p||u)},u.\u0275cmp=a.VBU({type:u,selectors:[["app-title"]],inputs:{title:"title"},decls:4,vars:1,consts:[[1,"lg:m-10"],["size","12","size-md","6","size-lg","6"],[1,"text-4xl","lg:text-6xl","font-bold"]],template:function(p,m){1&p&&(a.j41(0,"ion-row",0)(1,"ion-col",1)(2,"h1",2),a.EFF(3),a.k0s()()()),2&p&&(a.R7$(3),a.JRh(m.title))},dependencies:[_.hU,_.ln]}),r})()},3675:(f,I,c)=>{c.r(I),c.d(I,{IncidentManagerPageModule:()=>E});var a=c(177),_=c(4341),s=c(7863),u=c(7650),r=c(467),n=c(4438),p=c(4624),m=c(8453),h=c(3241);function M(o,g){1&o&&(n.j41(0,"ion-chip"),n.EFF(1," Assigned to you"),n.k0s())}function v(o,g){if(1&o){const l=n.RV6();n.j41(0,"ion-item",7),n.bIt("click",function(){const t=n.eBV(l).$implicit,i=n.XpG();return n.Njj(i.goToIncident(t))}),n.j41(1,"ion-label",8)(2,"div",9)(3,"h2"),n.EFF(4),n.k0s(),n.DNE(5,M,2,0,"ion-chip"),n.k0s()()()}if(2&o){const l=g.$implicit;n.R7$(4),n.JRh(l.title),n.R7$(),n.vxM(5,l.iAmIn?5:-1)}}function O(o,g){1&o&&(n.j41(0,"ion-chip"),n.EFF(1," Assigned to you"),n.k0s())}function C(o,g){if(1&o){const l=n.RV6();n.j41(0,"ion-item",7),n.bIt("click",function(){const t=n.eBV(l).$implicit,i=n.XpG();return n.Njj(i.goToIncident(t))}),n.j41(1,"ion-label",8)(2,"div",9)(3,"h2"),n.EFF(4),n.k0s(),n.DNE(5,O,2,0,"ion-chip"),n.k0s()()()}if(2&o){const l=g.$implicit;n.R7$(4),n.JRh(l.title),n.R7$(),n.vxM(5,l.iAmIn?5:-1)}}const P=[{path:"",component:(()=>{var o;class g{constructor(e,t,i,d){this.router=e,this.activatedRoute=t,this.loadingCtrl=i,this.incidentService=d,this.productStep="",this.productObjective="",this.orgName="",this.openIncidents=[],this.closeIncidents=[]}ngOnInit(){}ionViewWillEnter(){var e=this;return(0,r.A)(function*(){yield e.showLoading(),e.getParams(),yield e.getOpenIncidents(),yield e.closeIncident(),yield e.getMyOpenIncidents(),yield e.getMyClosedIncidents(),yield e.hideLoading()})()}getParams(){this.activatedRoute.params.subscribe(t=>{this.productObjective=t.productObjective,this.productStep=t.step});const e=JSON.parse(localStorage.getItem("user"));this.orgName=e.orgName,console.log(this.orgName),console.log(this.productObjective),console.log(this.productStep)}getOpenIncidents(){var e=this;return(0,r.A)(function*(){e.openIncidents=yield e.incidentService.getIncidents(e.orgName,e.productObjective,e.productStep),e.openIncidents=e.openIncidents.filter(t=>"open"===t.state)})()}closeIncident(){var e=this;return(0,r.A)(function*(){e.closeIncidents=yield e.incidentService.getIncidents(e.orgName,e.productObjective,e.productStep),e.closeIncidents=e.closeIncidents.filter(t=>"closed"===t.state)})()}getMyOpenIncidents(){var e=this;return(0,r.A)(function*(){const t=JSON.parse(localStorage.getItem("user"));for(let i=0;i{var o;class g{}return(o=g).\u0275fac=function(e){return new(e||o)},o.\u0275mod=n.$C({type:o}),o.\u0275inj=n.G2t({imports:[u.iI.forChild(P),u.iI]}),g})();var y=c(5553);let E=(()=>{var o;class g{}return(o=g).\u0275fac=function(e){return new(e||o)},o.\u0275mod=n.$C({type:o}),o.\u0275inj=n.G2t({imports:[a.MD,_.YN,s.bv,R,y.h]}),g})()}}]); \ No newline at end of file diff --git a/www/6749.35cfdb01525f2301.js b/www/6749.35cfdb01525f2301.js new file mode 100644 index 0000000..191ea60 --- /dev/null +++ b/www/6749.35cfdb01525f2301.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[6749],{5553:(I,h,i)=>{i.d(h,{h:()=>d});var r=i(177),p=i(7863),a=i(4438);let d=(()=>{var l;class e{}return(l=e).\u0275fac=function(u){return new(u||l)},l.\u0275mod=a.$C({type:l}),l.\u0275inj=a.G2t({imports:[r.MD,p.bv]}),e})()},3241:(I,h,i)=>{i.d(h,{p:()=>d});var r=i(4438),p=i(177),a=i(7863);let d=(()=>{var l;class e{constructor(u){this.location=u,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(l=e).\u0275fac=function(u){return new(u||l)(r.rXU(p.aZ))},l.\u0275cmp=r.VBU({type:l,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(u,f){1&u&&(r.j41(0,"ion-header",0)(1,"ion-toolbar"),r.nrm(2,"ion-menu-button",1),r.j41(3,"ion-icon",2),r.bIt("click",function(){return f.goBack()}),r.k0s(),r.j41(4,"ion-title"),r.EFF(5),r.k0s()()()),2&u&&(r.Y8G("translucent",!0),r.R7$(5),r.JRh(f.title))},dependencies:[a.eU,a.iq,a.MC,a.BC,a.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},8453:(I,h,i)=>{i.d(h,{W:()=>a});var r=i(4438),p=i(7863);let a=(()=>{var d;class l{constructor(){this.title="Title"}ngOnInit(){}}return(d=l).\u0275fac=function(m){return new(m||d)},d.\u0275cmp=r.VBU({type:d,selectors:[["app-title"]],inputs:{title:"title"},decls:4,vars:1,consts:[[1,"lg:m-10"],["size","12","size-md","6","size-lg","6"],[1,"text-4xl","lg:text-6xl","font-bold"]],template:function(m,u){1&m&&(r.j41(0,"ion-row",0)(1,"ion-col",1)(2,"h1",2),r.EFF(3),r.k0s()()()),2&m&&(r.R7$(3),r.JRh(u.title))},dependencies:[p.hU,p.ln]}),l})()},6749:(I,h,i)=>{i.r(h),i.d(h,{IncidentPostmortemPageModule:()=>L});var r=i(177),p=i(4341),a=i(7863),d=i(7650),l=i(467),e=i(4438),m=i(9032),u=i(4624),f=i(8453),_=i(3241);const C=[{path:"",component:(()=>{var c;class v{constructor(n,t,o,s){this.router=n,this.activatedRoute=t,this.loadingCtrl=o,this.incidentService=s,this.orgName="",this.productObjective="",this.productStep="",this.incident={},this.wentWrong="",this.canBeLearned="",this.howToPrevent="",this.vertexAI=(0,e.WQX)(m.L9)}ngOnInit(){}ionViewWillEnter(){var n=this;return(0,l.A)(function*(){n.getParams(),yield n.getIncident()})()}getParams(){this.activatedRoute.params.subscribe(t=>{this.productObjective=t.productObjective,this.productStep=t.step,this.incident.title=t.incidentTitle});const n=JSON.parse(localStorage.getItem("user"));this.orgName=n.orgName,console.log(this.orgName),console.log(this.productObjective),console.log(this.productStep),console.log(this.incident.title)}getIncident(){var n=this;return(0,l.A)(function*(){yield n.showLoading(),n.incident=yield n.incidentService.getIncident(n.orgName,n.productObjective,n.productStep,n.incident.title);try{var t,o,s;n.wentWrong=null===(t=n.incident.postmortem)||void 0===t?void 0:t.wentWrong,n.canBeLearned=null===(o=n.incident.postmortem)||void 0===o?void 0:o.canBeLearned,n.howToPrevent=null===(s=n.incident.postmortem)||void 0===s?void 0:s.howToPrevent}catch(w){console.log(w)}yield n.hideLoading()})()}savePostmortem(){var n=this;return(0,l.A)(function*(){yield n.showLoading(),n.incident.postmortem={wentWrong:n.wentWrong,canBeLearned:n.canBeLearned,howToPrevent:n.howToPrevent},n.incident.state="postmortem",console.dir(n.incident),yield n.incidentService.updateIncident(n.orgName,n.productObjective,n.productStep,n.incident).then(function(){var t=(0,l.A)(function*(o){o&&(yield n.hideLoading(),yield n.router.navigate(["/incident-manager",{productObjective:n.productObjective,step:n.productStep}])),yield n.hideLoading()});return function(o){return t.apply(this,arguments)}}())})()}sendToAI(n){var t=this;return(0,l.A)(function*(){yield t.showLoading();try{console.log(n);let s,o="";if("wentWrong"===n){o="Ayudame a completar el Postmortem del siguiente incidente: "+t.incident.title+". Lo sucedido se basa en la sigueinte descripci\xf3n: "+t.incident.description+". Esto fue ";for(let g=0;g{var c;class v{}return(c=v).\u0275fac=function(n){return new(n||c)},c.\u0275mod=e.$C({type:c}),c.\u0275inj=e.G2t({imports:[d.iI.forChild(C),d.iI]}),v})();var M=i(5553);let L=(()=>{var c;class v{}return(c=v).\u0275fac=function(n){return new(n||c)},c.\u0275mod=e.$C({type:c}),c.\u0275inj=e.G2t({imports:[r.MD,p.YN,a.bv,T,M.h]}),v})()}}]); \ No newline at end of file diff --git a/www/7907.060d40f84c30ad9b.js b/www/7907.060d40f84c30ad9b.js new file mode 100644 index 0000000..e486c97 --- /dev/null +++ b/www/7907.060d40f84c30ad9b.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7907],{5553:(F,E,r)=>{r.d(E,{h:()=>h});var c=r(177),m=r(7863),a=r(4438);let h=(()=>{var p;class e{}return(p=e).\u0275fac=function(I){return new(I||p)},p.\u0275mod=a.$C({type:p}),p.\u0275inj=a.G2t({imports:[c.MD,m.bv]}),e})()},3241:(F,E,r)=>{r.d(E,{p:()=>h});var c=r(4438),m=r(177),a=r(7863);let h=(()=>{var p;class e{constructor(I){this.location=I,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(p=e).\u0275fac=function(I){return new(I||p)(c.rXU(m.aZ))},p.\u0275cmp=c.VBU({type:p,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(I,s){1&I&&(c.j41(0,"ion-header",0)(1,"ion-toolbar"),c.nrm(2,"ion-menu-button",1),c.j41(3,"ion-icon",2),c.bIt("click",function(){return s.goBack()}),c.k0s(),c.j41(4,"ion-title"),c.EFF(5),c.k0s()()()),2&I&&(c.Y8G("translucent",!0),c.R7$(5),c.JRh(s.title))},dependencies:[a.eU,a.iq,a.MC,a.BC,a.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},8453:(F,E,r)=>{r.d(E,{W:()=>a});var c=r(4438),m=r(7863);let a=(()=>{var h;class p{constructor(){this.title="Title"}ngOnInit(){}}return(h=p).\u0275fac=function(g){return new(g||h)},h.\u0275cmp=c.VBU({type:h,selectors:[["app-title"]],inputs:{title:"title"},decls:4,vars:1,consts:[[1,"lg:m-10"],["size","12","size-md","6","size-lg","6"],[1,"text-4xl","lg:text-6xl","font-bold"]],template:function(g,I){1&g&&(c.j41(0,"ion-row",0)(1,"ion-col",1)(2,"h1",2),c.EFF(3),c.k0s()()()),2&g&&(c.R7$(3),c.JRh(I.title))},dependencies:[m.hU,m.ln]}),p})()},7907:(F,E,r)=>{r.r(E),r.d(E,{IncidentDetailsPageModule:()=>V});var c=r(177),m=r(4341),a=r(7863),h=r(7650),p=r(467),e=r(4438),g=r(2107),I=r(4624),s=r(7473),d=r(8453),l=r(3241);function u(n,_){if(1&n&&(e.j41(0,"ion-card-content")(1,"ion-label",26),e.EFF(2),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.JRh(o.incident.state.toUpperCase())}}function v(n,_){if(1&n&&(e.j41(0,"ion-card-content")(1,"ion-label",27),e.EFF(2),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.JRh(o.incident.state.toLocaleUpperCase())}}function R(n,_){if(1&n&&(e.j41(0,"ion-card-content")(1,"ion-label",27),e.EFF(2),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.JRh(o.incident.urgency.toUpperCase())}}function C(n,_){if(1&n&&(e.j41(0,"ion-card-content")(1,"ion-label",28),e.EFF(2),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.JRh(o.incident.urgency.toUpperCase())}}function D(n,_){if(1&n&&(e.j41(0,"ion-card-content")(1,"ion-label",29),e.EFF(2),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.JRh(o.incident.urgency.toUpperCase())}}function y(n,_){if(1&n&&(e.j41(0,"ion-card-content")(1,"ion-label",26),e.EFF(2),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.JRh(o.incident.urgency.toUpperCase())}}function b(n,_){if(1&n&&(e.j41(0,"ion-card-content")(1,"ion-label",27),e.EFF(2),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.JRh(o.incident.org_impact.toUpperCase())}}function T(n,_){if(1&n&&(e.j41(0,"ion-card-content")(1,"ion-label",28),e.EFF(2),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.JRh(o.incident.org_impact.toUpperCase())}}function M(n,_){if(1&n&&(e.j41(0,"ion-card-content")(1,"ion-label",29),e.EFF(2),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.JRh(o.incident.org_impact.toUpperCase())}}function O(n,_){if(1&n&&(e.j41(0,"ion-card-content")(1,"ion-label",26),e.EFF(2),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.JRh(o.incident.org_impact.toUpperCase())}}function k(n,_){if(1&n&&(e.j41(0,"div",12),e.nrm(1,"ion-icon",13),e.j41(2,"ion-label",8),e.EFF(3),e.k0s()()),2&n){const o=_.$implicit;e.R7$(3),e.JRh(o)}}function $(n,_){if(1&n&&(e.j41(0,"div",31)(1,"a",34),e.nrm(2,"img",35),e.k0s()()),2&n){const o=e.XpG().$implicit;e.R7$(),e.FS9("href",o.comment,e.B4B),e.R7$(),e.FS9("src",o.comment,e.B4B)}}function N(n,_){if(1&n&&(e.j41(0,"a",36)(1,"ion-chip"),e.nrm(2,"ion-icon",37),e.j41(3,"ion-label"),e.EFF(4),e.k0s()()()),2&n){const o=e.XpG().$implicit,t=e.XpG();e.FS9("href",o.comment,e.B4B),e.R7$(4),e.JRh(t.fileName(o.comment))}}function B(n,_){if(1&n&&(e.j41(0,"a",36)(1,"ion-chip",38),e.nrm(2,"ion-icon",37),e.j41(3,"ion-label"),e.EFF(4),e.k0s()()(),e.j41(5,"p"),e.EFF(6," This is an unknown file type. "),e.k0s()),2&n){const o=e.XpG().$implicit,t=e.XpG();e.FS9("href",o.comment,e.B4B),e.R7$(4),e.JRh(t.fileName(o.comment))}}function L(n,_){if(1&n&&e.nrm(0,"p",39),2&n){const o=e.XpG().$implicit;e.Y8G("innerHTML",o.comment,e.npT)}}function S(n,_){if(1&n&&(e.qex(0),e.j41(1,"ion-card",30)(2,"ion-card-content"),e.DNE(3,$,3,2,"div",31)(4,N,5,2)(5,B,7,2)(6,L,1,1),e.k0s(),e.j41(7,"ion-card-content",32)(8,"div",33),e.nrm(9,"ion-icon",13),e.j41(10,"ion-label",8),e.EFF(11),e.k0s()()()(),e.bVm()),2&n){const o=_.$implicit,t=e.XpG();e.R7$(),e.AVh("self-end",o.from===t.currentUser)("bg-gray-600",o.from===t.currentUser)("self-start",o.from!==t.currentUser)("bg-gray-800",o.from!==t.currentUser),e.R7$(2),e.vxM(3,t.isImage(o.comment)?3:t.isFile(o.comment)?4:"https:"===o.comment.split("/")[0]||"http:"===o.comment.split("/")[0]?5:6),e.R7$(8),e.JRh(o.from)}}function w(n,_){if(1&n){const o=e.RV6();e.j41(0,"ion-icon",40),e.bIt("click",function(){e.eBV(o);const i=e.XpG(),f=e.sdS(83);return e.Njj(i.uploadFile(f))}),e.k0s()}}function A(n,_){if(1&n){const o=e.RV6();e.j41(0,"ion-icon",41),e.bIt("click",function(){e.eBV(o);const i=e.XpG(),f=e.sdS(83);return e.Njj(i.deleteUploadfile(f))}),e.k0s()}}function G(n,_){if(1&n){const o=e.RV6();e.j41(0,"ion-button",42),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.closeIncident())}),e.EFF(1,"Close Incident"),e.k0s()}}function X(n,_){if(1&n){const o=e.RV6();e.j41(0,"ion-button",43),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.closeIncident())}),e.EFF(1,"Close Incident"),e.k0s()}2&n&&e.Y8G("disabled",!0)}function z(n,_){if(1&n){const o=e.RV6();e.j41(0,"ion-col",5)(1,"ion-card",6)(2,"ion-card-title",7),e.EFF(3,"Go to Incident Postmortem"),e.k0s(),e.j41(4,"ion-card-content")(5,"p"),e.EFF(6,"Postmortem Culture: Learning from Failure. The postmortem is a retrospective of the incident, focusing on what went wrong, what can be learned, and how to prevent similar incidents in the future."),e.k0s()(),e.j41(7,"ion-card-content",16)(8,"ion-button",44),e.bIt("click",function(){e.eBV(o);const i=e.XpG();return e.Njj(i.postmortemIncident())}),e.EFF(9,"Incident Postmortem"),e.k0s()()()()}}const K=[{path:"",component:(()=>{var n;class _{constructor(t,i,f,j,P){this.router=t,this.activatedRoute=i,this.loadingCtrl=f,this.incidentService=j,this.notificationService=P,this.productStep="",this.productObjective="",this.orgName="",this.currentUser="",this.incident={},this.newComment="",this.storage=(0,e.WQX)(g.wc),this.isImageLoaded=!1,this.decodeURIComponent=decodeURIComponent}ngOnInit(){}ionViewWillEnter(){this.getParams()}getParams(){this.activatedRoute.params.subscribe(i=>{this.productObjective=i.productObjective,this.productStep=i.step,this.incident=JSON.parse(i.incident)});const t=JSON.parse(localStorage.getItem("user"));this.orgName=t.orgName,this.currentUser=t.name,console.log(this.orgName),console.log(this.productObjective),console.log(this.productStep),console.log(this.incident.title)}addComment(){var t=this;return(0,p.A)(function*(){if(yield t.showLoading(),console.log("add comment"),console.log(t.currentUser),console.log(t.newComment),""===t.newComment)return void(yield t.hideLoading());t.incident.report?t.incident.report.push({comment:t.newComment.replace(/\n/g,"
"),from:t.currentUser}):t.incident.report=[{comment:t.newComment.replace(/\n/g,"
"),from:t.currentUser}],yield t.incidentService.updateIncident(t.orgName,t.productObjective,t.productStep,t.incident);let i=[];i.push({role:"Incident Commander",member:t.incident.incidentCommander}),i.push({role:"Communications Lead",member:t.incident.communications_lead}),i.push({role:"Operations Lead",member:t.incident.operations_lead});for(let f=0;f{console.log("Uploaded a blob or file!",U.ref.fullPath),i.downloadFile(U.ref.fullPath).then(function(){var Z=(0,p.A)(function*(x){i.newComment=x,yield i.hideLoading(),yield i.addComment(),i.isImageLoaded=!1});return function(x){return Z.apply(this,arguments)}}())})}}})()}downloadFile(t){var i=this;return(0,p.A)(function*(){let f="";return yield(0,g.qk)((0,g.KR)(i.storage,t)).then(j=>{console.log("File available at",j),f=j}),f})()}isImage(t){return/(\.jpg|\.jpeg|\.png|\.gif|\.bmp|\.webp)(\?|$)/i.test(t)}isFile(t){return/(\.csv|\.pdf|\.doc|\.docx|\.ppt|\.pptx|\.xls|\.xlsx|\.txt|\.mp3|\.wav|\.ogg|\.mp4|\.avi|\.mkv|\.mov|\.zip|\.rar|\.7z|\.tar|\.gz)(\?|$)/i.test(t)}fileName(t){var i;return null===(i=decodeURIComponent(t.split("/").pop().split("?")[0]).split("\xb0").pop())||void 0===i?void 0:i.substring(1)}closeIncident(){var t=this;this.incidentService.closeIncident(this.orgName,this.productObjective,this.productStep,this.incident).then(function(){var i=(0,p.A)(function*(f){f&&(yield t.router.navigate(["/incident-manager",{productObjective:t.productObjective,step:t.productStep}]))});return function(f){return i.apply(this,arguments)}}())}postmortemIncident(){var t=this;return(0,p.A)(function*(){yield t.router.navigate(["/incident-postmortem",{orgName:t.orgName,productObjective:t.productObjective,step:t.productStep,currentUser:t.currentUser,incidentTitle:t.incident.title}])})()}showLoading(){var t=this;return(0,p.A)(function*(){yield(yield t.loadingCtrl.create({})).present()})()}hideLoading(){var t=this;return(0,p.A)(function*(){yield t.loadingCtrl.dismiss()})()}deleteUploadfile(t){t.value="",this.isImageLoaded=!1}}return(n=_).\u0275fac=function(t){return new(t||n)(e.rXU(h.Ix),e.rXU(h.nX),e.rXU(a.Xi),e.rXU(I.I),e.rXU(s.J))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-incident-details"]],decls:100,vars:30,consts:[["upload",""],["title","Incident Details"],[3,"fullscreen"],[3,"title"],[1,"lg:m-10","md:m-10"],["size","12","size-md","12","size-lg","12",1,""],[1,"p-5","flex","flex-col","justify-center","items-center"],[1,"text-2xl"],[1,""],["size","6","size-md","4","size-lg","4",1,""],["size","12","size-md","4","size-lg","4",1,""],["size","6","size-md","6","size-lg","6",1,""],[1,"flex","flex-row","justify-center","items-center"],["name","person-circle",1,"text-2xl"],[1,"p-5","flex","flex-col","justify-center","items-start"],[4,"ngFor","ngForOf"],[1,"flex","flex-row","justify-center","items-center","w-full"],["placeholder","Add a comment","type","text",1,"w-2/3",3,"ngModelChange","hidden","autoGrow","ngModel"],[1,"pl-1","pr-1"],["size","large","name","cloud-upload",3,"click","hidden"],["type","file",2,"display","none",3,"change"],["size","large","class","ion-margin","expand","block","name","save",3,"click",4,"ngIf"],["size","large","class","ion-margin","expand","block","name","trash",3,"click",4,"ngIf"],[1,"w-1/3","m-5",3,"click","hidden"],["color","danger",1,"w-full"],["color","danger",1,"w-full",3,"disabled"],[1,"text-green-800"],[1,"text-red-800"],[1,"text-yellow-800"],[1,"text-yellow-600"],[1,"text-white"],[1,"flex","flex-row","w-full","items-end"],[1,"text-right"],[1,"flex","flex-row","justify-end","items-center"],["target","_blank",1,"",3,"href"],["alt","image",1,"w-1/2",3,"src"],["target","_blank",3,"href"],["name","document"],["color","warning"],[3,"innerHTML"],["size","large","expand","block","name","save",1,"ion-margin",3,"click"],["size","large","expand","block","name","trash",1,"ion-margin",3,"click"],["color","danger",1,"w-full",3,"click"],["color","danger",1,"w-full",3,"click","disabled"],["color","primary",1,"w-full",3,"click"]],template:function(t,i){if(1&t){const f=e.RV6();e.nrm(0,"app-header-return",1),e.j41(1,"ion-content",2)(2,"ion-grid"),e.nrm(3,"app-title",3),e.j41(4,"ion-row",4)(5,"ion-col",5)(6,"ion-card",6)(7,"ion-card-title",7),e.EFF(8),e.k0s(),e.j41(9,"ion-card-content")(10,"p",8),e.EFF(11),e.k0s()()()()(),e.j41(12,"ion-row",4)(13,"ion-col",9)(14,"ion-card",6)(15,"ion-card-title",7),e.EFF(16,"Current Status"),e.k0s(),e.DNE(17,u,3,1,"ion-card-content")(18,v,3,1,"ion-card-content"),e.k0s()(),e.j41(19,"ion-col",9)(20,"ion-card",6)(21,"ion-card-title",7),e.EFF(22,"Urgency"),e.k0s(),e.DNE(23,R,3,1,"ion-card-content")(24,C,3,1,"ion-card-content")(25,D,3,1,"ion-card-content")(26,y,3,1,"ion-card-content"),e.k0s()(),e.j41(27,"ion-col",10)(28,"ion-card",6)(29,"ion-card-title",7),e.EFF(30," Organization Impact"),e.k0s(),e.DNE(31,b,3,1,"ion-card-content")(32,T,3,1,"ion-card-content")(33,M,3,1,"ion-card-content")(34,O,3,1,"ion-card-content"),e.k0s()()(),e.nrm(35,"app-title",3),e.j41(36,"ion-row",4)(37,"ion-col",11)(38,"ion-card",6)(39,"ion-card-title",7),e.EFF(40,"Incident Commander"),e.k0s(),e.j41(41,"ion-card-content")(42,"div",12),e.nrm(43,"ion-icon",13),e.j41(44,"ion-label",8),e.EFF(45),e.k0s()()()()(),e.j41(46,"ion-col",11)(47,"ion-card",6)(48,"ion-card-title",7),e.EFF(49,"Communications Leader"),e.k0s(),e.j41(50,"ion-card-content")(51,"div",12),e.nrm(52,"ion-icon",13),e.j41(53,"ion-label",8),e.EFF(54),e.k0s()()()()(),e.j41(55,"ion-col",5)(56,"ion-card",6)(57,"ion-card-title",7),e.EFF(58,"Operations Lead"),e.k0s(),e.j41(59,"ion-card-content")(60,"div",12),e.nrm(61,"ion-icon",13),e.j41(62,"ion-label",8),e.EFF(63),e.k0s()()(),e.nrm(64,"br"),e.j41(65,"ion-card-title",7),e.EFF(66,"Operations Team"),e.k0s(),e.j41(67,"ion-card-content"),e.Z7z(68,k,4,1,"div",12,e.fX1),e.k0s()()()(),e.nrm(70,"app-title",3),e.j41(71,"ion-row",4)(72,"ion-col",5)(73,"ion-card",14),e.DNE(74,S,12,10,"ng-container",15),e.k0s()(),e.j41(75,"ion-col",5)(76,"ion-card",6)(77,"div",16)(78,"ion-textarea",17),e.mxI("ngModelChange",function(P){return e.eBV(f),e.DH7(i.newComment,P)||(i.newComment=P),e.Njj(P)}),e.k0s(),e.j41(79,"div",18)(80,"ion-icon",19),e.bIt("click",function(){e.eBV(f);const P=e.sdS(83);return e.Njj(P.click())}),e.EFF(81," Add Data "),e.j41(82,"input",20,0),e.bIt("change",function(){return e.eBV(f),e.Njj(i.onImageLoad())}),e.k0s()(),e.DNE(84,w,1,0,"ion-icon",21)(85,A,1,0,"ion-icon",22),e.k0s(),e.j41(86,"ion-button",23),e.bIt("click",function(){return e.eBV(f),e.Njj(i.addComment())}),e.EFF(87,"Add Comment"),e.k0s()()()()(),e.j41(88,"ion-row",4)(89,"ion-col",5)(90,"ion-card",6)(91,"ion-card-title",7),e.EFF(92,"Change Incident State"),e.k0s(),e.j41(93,"ion-card-content")(94,"p"),e.EFF(95,"Change the state of the incident to closed or open.Only the incident commander can change the state of the incident."),e.k0s()(),e.j41(96,"ion-card-content",16),e.DNE(97,G,2,0,"ion-button",24)(98,X,2,1,"ion-button",25),e.k0s()()(),e.DNE(99,z,10,0,"ion-col",5),e.k0s()()()}2&t&&(e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","Incident Details"),e.R7$(5),e.JRh(i.incident.title),e.R7$(3),e.JRh(i.incident.description),e.R7$(6),e.vxM(17,"open"===i.incident.state?17:-1),e.R7$(),e.vxM(18,"closed"===i.incident.state?18:-1),e.R7$(5),e.vxM(23,"Critical"===i.incident.urgency?23:-1),e.R7$(),e.vxM(24,"High"===i.incident.urgency?24:-1),e.R7$(),e.vxM(25,"Medium"===i.incident.urgency?25:-1),e.R7$(),e.vxM(26,"Low"===i.incident.urgency?26:-1),e.R7$(5),e.vxM(31,"Extensive/Widespread"===i.incident.org_impact?31:-1),e.R7$(),e.vxM(32,"Significant/Large"===i.incident.org_impact?32:-1),e.R7$(),e.vxM(33,"Moderate/Limited"===i.incident.org_impact?33:-1),e.R7$(),e.vxM(34,"Minor/Localized"===i.incident.org_impact?34:-1),e.R7$(),e.Y8G("title","Incident Team"),e.R7$(10),e.JRh(i.incident.incidentCommander),e.R7$(9),e.JRh(i.incident.communications_lead),e.R7$(9),e.JRh(i.incident.operations_lead),e.R7$(5),e.Dyx(i.incident.operation_team),e.R7$(2),e.Y8G("title","Incident Progress"),e.R7$(4),e.Y8G("ngForOf",i.incident.report),e.R7$(4),e.Y8G("hidden",i.isImageLoaded)("autoGrow",!0),e.R50("ngModel",i.newComment),e.R7$(2),e.Y8G("hidden",i.isImageLoaded),e.R7$(4),e.Y8G("ngIf",i.isImageLoaded),e.R7$(),e.Y8G("ngIf",i.isImageLoaded),e.R7$(),e.Y8G("hidden",i.isImageLoaded),e.R7$(11),e.vxM(97,i.currentUser===i.incident.incidentCommander&&"open"===i.incident.state?97:-1),e.R7$(),e.vxM(98,i.currentUser!==i.incident.incidentCommander||"closed"===i.incident.state?98:-1),e.R7$(),e.vxM(99,"closed"===i.incident.state?99:-1))},dependencies:[c.Sq,c.bT,m.BC,m.vS,a.Jm,a.b_,a.I9,a.tN,a.ZB,a.hU,a.W9,a.lO,a.iq,a.he,a.ln,a.nc,a.Gw,d.W,l.p]}),_})()}];let W=(()=>{var n;class _{}return(n=_).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[h.iI.forChild(K),h.iI]}),_})();var J=r(5553);let V=(()=>{var n;class _{}return(n=_).\u0275fac=function(t){return new(t||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[c.MD,m.YN,a.bv,W,J.h]}),_})()},4796:(F,E,r)=>{r.d(E,{u:()=>p});var c=r(467),m=r(8737),a=r(4262),h=r(4438);let p=(()=>{var e;class g{constructor(s,d){this.auth=s,this.firestore=d}registerUser(s){var d=this;return(0,c.A)(function*(){try{const l=yield(0,m.eJ)(d.auth,s.email,s.password);return l.user?(yield(0,a.BN)((0,a.H9)(d.firestore,"users",l.user.uid),{email:s.email,name:s.name,orgName:s.orgName,uid:l.user.uid}),yield(0,a.BN)((0,a.H9)(d.firestore,"teams",`${s.orgName}`),{name:s.orgName,members:[l.user.uid]}),l):null}catch{return null}})()}loginUser(s){var d=this;return(0,c.A)(function*(){try{var l;const u=yield(0,m.x9)(d.auth,s.email,s.password);if(null!==(l=u.user)&&void 0!==l&&l.uid){const v=yield(0,a.x7)((0,a.H9)(d.firestore,"users",u.user.uid));if(v.exists())return localStorage.setItem("user",JSON.stringify(v.data())),u}}catch(u){console.error(u)}return null})()}logoutUser(){var s=this;return(0,c.A)(function*(){yield s.auth.signOut()})()}addMember(s){var d=this;return(0,c.A)(function*(){try{const l=yield(0,m.eJ)(d.auth,s.email,s.password);if(!l.user)return!1;const u={email:s.email,name:s.name,orgName:s.orgName,uid:l.user.uid};return yield(0,a.BN)((0,a.H9)(d.firestore,"users",l.user.uid),u),u}catch{return!1}})()}}return(e=g).\u0275fac=function(s){return new(s||e)(h.KVO(m.Nj),h.KVO(a._7))},e.\u0275prov=h.jDH({token:e,factory:e.\u0275fac,providedIn:"root"}),g})()},7473:(F,E,r)=>{r.d(E,{J:()=>e});var c=r(467),m=r(4262),a=r(4438),h=r(1626),p=r(5092);let e=(()=>{var g;class I{constructor(d,l,u){this.firestore=d,this.http=l,this.teamService=u}saveNotificationID(d,l){var u=this;return(0,c.A)(function*(){const v=(0,m.H9)(u.firestore,"users",d.uid),R=yield(0,m.x7)(v);if(R.exists()){const C=R.data();return C.notificationID=l,yield(0,m.BN)(v,C),!0}return console.log("No such document!"),!1})()}getNotificationUser(d){var l=this;return(0,c.A)(function*(){const u=(0,m.H9)(l.firestore,"users",d.uid),v=yield(0,m.x7)(u);if(v.exists()){const R=v.data();return R.notificationID?R.notificationID:""}return console.log("No such document!"),null})()}notifyIncidentToUser(d,l){var u=this;return(0,c.A)(function*(){try{const v=yield u.teamService.getTeamByOrganization(l),R=d.map(y=>y.member),C=v.filter(y=>R.includes(y.name));console.log("team",C);const D="https://devprobeapi.onrender.com/sendNotification";for(let y of C){let b=yield u.getNotificationUser(y);if(console.log("sid",b),""!==b){const M={sid:b,title:"New Incident",type:"new_incident",message:`Hey ${y.name}, you have been assigned a new incident your incident role is ${d.find(O=>O.member===y.name).role}`,target:"https://devprobe-89481.web.app/incident-manager-chooser"};yield u.http.post(D,M).toPromise(),console.log("Notification sent successfully")}else console.log("no sid")}}catch(v){console.log(v)}})()}notifyIncidentUpdateToTeam(d,l){var u=this;return(0,c.A)(function*(){try{const v=yield u.teamService.getTeamByOrganization(l),R=d.map(y=>y.member),C=v.filter(y=>R.includes(y.name));console.log("team",C);const D="https://devprobeapi.onrender.com/sendNotification";for(let y of C){let b=yield u.getNotificationUser(y);if(console.log("sid",b),""!==b){const M={sid:b,title:"Incident Update",type:"update_incident",message:`Hey ${y.name}, there are updates to your incident`,target:"https://devprobe-89481.web.app/incident-manager-chooser"};yield u.http.post(D,M).toPromise(),console.log("Notification sent successfully")}else console.log("no sid")}}catch(v){console.log(v)}})()}}return(g=I).\u0275fac=function(d){return new(d||g)(a.KVO(m._7),a.KVO(h.Qq),a.KVO(p.O))},g.\u0275prov=a.jDH({token:g,factory:g.\u0275fac,providedIn:"root"}),I})()},5092:(F,E,r)=>{r.d(E,{O:()=>p});var c=r(467),m=r(4262),a=r(4438),h=r(4796);let p=(()=>{var e;class g{constructor(s,d){this.firestore=s,this.authService=d}getTeamByOrganization(s){var d=this;return(0,c.A)(function*(){let l=(0,m.H9)(d.firestore,"teams",s);const R=(yield(0,m.x7)(l)).data();let C=[];for(let D=0;Db!==d);return yield(0,m.BN)(u,{name:C.name,members:D}),u=(0,m.H9)(l.firestore,"users",d),yield(0,m.BN)(u,{}),yield l.authService,!0}catch{return!1}})()}addMember(s){var d=this;return(0,c.A)(function*(){try{const l=yield d.authService.addMember(s);if(!l)return!1;const u=(0,m.H9)(d.firestore,"teams",s.orgName),R=(yield(0,m.x7)(u)).data();console.log(R);const C=R;let D=C.members;return D.push(l.uid),console.log(D),yield(0,m.mZ)(u,{name:C.name,members:D}),l.uid}catch{return!1}})()}}return(e=g).\u0275fac=function(s){return new(s||e)(a.KVO(m._7),a.KVO(h.u))},e.\u0275prov=a.jDH({token:e,factory:e.\u0275fac,providedIn:"root"}),g})()}}]); \ No newline at end of file diff --git a/www/7907.d72619a0c1833a1b.js b/www/7907.d72619a0c1833a1b.js deleted file mode 100644 index 22b26cd..0000000 --- a/www/7907.d72619a0c1833a1b.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[7907],{5553:(F,E,r)=>{r.d(E,{h:()=>f});var c=r(177),m=r(7863),a=r(4438);let f=(()=>{var p;class e{}return(p=e).\u0275fac=function(I){return new(I||p)},p.\u0275mod=a.$C({type:p}),p.\u0275inj=a.G2t({imports:[c.MD,m.bv]}),e})()},3241:(F,E,r)=>{r.d(E,{p:()=>f});var c=r(4438),m=r(177),a=r(7863);let f=(()=>{var p;class e{constructor(I){this.location=I,this.title="Header Title"}ngOnInit(){}goBack(){this.location.back()}}return(p=e).\u0275fac=function(I){return new(I||p)(c.rXU(m.aZ))},p.\u0275cmp=c.VBU({type:p,selectors:[["app-header-return"]],inputs:{title:"title"},decls:6,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"],["name","arrow-back","slot","start",1,"p-4","bigger-icon",3,"click"]],template:function(I,s){1&I&&(c.j41(0,"ion-header",0)(1,"ion-toolbar"),c.nrm(2,"ion-menu-button",1),c.j41(3,"ion-icon",2),c.bIt("click",function(){return s.goBack()}),c.k0s(),c.j41(4,"ion-title"),c.EFF(5),c.k0s()()()),2&I&&(c.Y8G("translucent",!0),c.R7$(5),c.JRh(s.title))},dependencies:[a.eU,a.iq,a.MC,a.BC,a.ai],styles:[".bigger-icon[_ngcontent-%COMP%]{font-size:1.5em}"]}),e})()},8453:(F,E,r)=>{r.d(E,{W:()=>a});var c=r(4438),m=r(7863);let a=(()=>{var f;class p{constructor(){this.title="Title"}ngOnInit(){}}return(f=p).\u0275fac=function(g){return new(g||f)},f.\u0275cmp=c.VBU({type:f,selectors:[["app-title"]],inputs:{title:"title"},decls:4,vars:1,consts:[[1,"lg:m-10"],["size","12","size-md","6","size-lg","6"],[1,"text-4xl","lg:text-6xl","font-bold"]],template:function(g,I){1&g&&(c.j41(0,"ion-row",0)(1,"ion-col",1)(2,"h1",2),c.EFF(3),c.k0s()()()),2&g&&(c.R7$(3),c.JRh(I.title))},dependencies:[m.hU,m.ln]}),p})()},7907:(F,E,r)=>{r.r(E),r.d(E,{IncidentDetailsPageModule:()=>V});var c=r(177),m=r(4341),a=r(7863),f=r(7650),p=r(467),e=r(4438),g=r(2107),I=r(4624),s=r(7473),d=r(8453),l=r(3241);function u(n,_){if(1&n&&(e.j41(0,"ion-card-content")(1,"ion-label",26),e.EFF(2),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.JRh(o.incident.state.toUpperCase())}}function h(n,_){if(1&n&&(e.j41(0,"ion-card-content")(1,"ion-label",27),e.EFF(2),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.JRh(o.incident.state.toLocaleUpperCase())}}function R(n,_){if(1&n&&(e.j41(0,"ion-card-content")(1,"ion-label",27),e.EFF(2),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.JRh(o.incident.urgency.toUpperCase())}}function C(n,_){if(1&n&&(e.j41(0,"ion-card-content")(1,"ion-label",28),e.EFF(2),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.JRh(o.incident.urgency.toUpperCase())}}function y(n,_){if(1&n&&(e.j41(0,"ion-card-content")(1,"ion-label",29),e.EFF(2),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.JRh(o.incident.urgency.toUpperCase())}}function D(n,_){if(1&n&&(e.j41(0,"ion-card-content")(1,"ion-label",26),e.EFF(2),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.JRh(o.incident.urgency.toUpperCase())}}function P(n,_){if(1&n&&(e.j41(0,"ion-card-content")(1,"ion-label",27),e.EFF(2),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.JRh(o.incident.org_impact.toUpperCase())}}function T(n,_){if(1&n&&(e.j41(0,"ion-card-content")(1,"ion-label",28),e.EFF(2),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.JRh(o.incident.org_impact.toUpperCase())}}function M(n,_){if(1&n&&(e.j41(0,"ion-card-content")(1,"ion-label",29),e.EFF(2),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.JRh(o.incident.org_impact.toUpperCase())}}function O(n,_){if(1&n&&(e.j41(0,"ion-card-content")(1,"ion-label",26),e.EFF(2),e.k0s()()),2&n){const o=e.XpG();e.R7$(2),e.JRh(o.incident.org_impact.toUpperCase())}}function k(n,_){if(1&n&&(e.j41(0,"div",12),e.nrm(1,"ion-icon",13),e.j41(2,"ion-label",8),e.EFF(3),e.k0s()()),2&n){const o=_.$implicit;e.R7$(3),e.JRh(o)}}function $(n,_){if(1&n&&(e.j41(0,"div",31)(1,"a",34),e.nrm(2,"img",35),e.k0s()()),2&n){const o=e.XpG().$implicit;e.R7$(),e.FS9("href",o.comment,e.B4B),e.R7$(),e.FS9("src",o.comment,e.B4B)}}function N(n,_){if(1&n&&(e.j41(0,"a",36)(1,"ion-chip"),e.nrm(2,"ion-icon",37),e.j41(3,"ion-label"),e.EFF(4),e.k0s()()()),2&n){const o=e.XpG().$implicit,i=e.XpG();e.FS9("href",o.comment,e.B4B),e.R7$(4),e.JRh(i.fileName(o.comment))}}function B(n,_){if(1&n&&(e.j41(0,"a",36)(1,"ion-chip",38),e.nrm(2,"ion-icon",37),e.j41(3,"ion-label"),e.EFF(4),e.k0s()()(),e.j41(5,"p"),e.EFF(6," This is an unknown file type. "),e.k0s()),2&n){const o=e.XpG().$implicit,i=e.XpG();e.FS9("href",o.comment,e.B4B),e.R7$(4),e.JRh(i.fileName(o.comment))}}function L(n,_){if(1&n&&e.nrm(0,"p",39),2&n){const o=e.XpG().$implicit;e.Y8G("innerHTML",o.comment,e.npT)}}function w(n,_){if(1&n&&(e.qex(0),e.j41(1,"ion-card",30)(2,"ion-card-content"),e.DNE(3,$,3,2,"div",31)(4,N,5,2)(5,B,7,2)(6,L,1,1),e.k0s(),e.j41(7,"ion-card-content",32)(8,"div",33),e.nrm(9,"ion-icon",13),e.j41(10,"ion-label",8),e.EFF(11),e.k0s()()()(),e.bVm()),2&n){const o=_.$implicit,i=e.XpG();e.R7$(),e.AVh("self-end",o.from===i.currentUser)("bg-gray-600",o.from===i.currentUser)("self-start",o.from!==i.currentUser)("bg-gray-800",o.from!==i.currentUser),e.R7$(2),e.vxM(3,i.isImage(o.comment)?3:i.isFile(o.comment)?4:"https:"===o.comment.split("/")[0]||"http:"===o.comment.split("/")[0]?5:6),e.R7$(8),e.JRh(o.from)}}function A(n,_){if(1&n){const o=e.RV6();e.j41(0,"ion-icon",40),e.bIt("click",function(){e.eBV(o);const t=e.XpG(),v=e.sdS(83);return e.Njj(t.uploadFile(v))}),e.k0s()}}function G(n,_){if(1&n){const o=e.RV6();e.j41(0,"ion-icon",41),e.bIt("click",function(){e.eBV(o);const t=e.XpG(),v=e.sdS(83);return e.Njj(t.deleteUploadfile(v))}),e.k0s()}}function S(n,_){if(1&n){const o=e.RV6();e.j41(0,"ion-button",42),e.bIt("click",function(){e.eBV(o);const t=e.XpG();return e.Njj(t.closeIncident())}),e.EFF(1,"Close Incident"),e.k0s()}}function X(n,_){if(1&n){const o=e.RV6();e.j41(0,"ion-button",43),e.bIt("click",function(){e.eBV(o);const t=e.XpG();return e.Njj(t.closeIncident())}),e.EFF(1,"Close Incident"),e.k0s()}2&n&&e.Y8G("disabled",!0)}function z(n,_){if(1&n){const o=e.RV6();e.j41(0,"ion-col",5)(1,"ion-card",6)(2,"ion-card-title",7),e.EFF(3,"Go to Incident Postmortem"),e.k0s(),e.j41(4,"ion-card-content")(5,"p"),e.EFF(6,"Postmortem Culture: Learning from Failure. The postmortem is a retrospective of the incident, focusing on what went wrong, what can be learned, and how to prevent similar incidents in the future."),e.k0s()(),e.j41(7,"ion-card-content",16)(8,"ion-button",44),e.bIt("click",function(){e.eBV(o);const t=e.XpG();return e.Njj(t.closeIncident())}),e.EFF(9,"Incident Postmortem"),e.k0s()()()()}}const K=[{path:"",component:(()=>{var n;class _{constructor(i,t,v,b,j){this.router=i,this.activatedRoute=t,this.loadingCtrl=v,this.incidentService=b,this.notificationService=j,this.productStep="",this.productObjective="",this.orgName="",this.currentUser="",this.incident={},this.newComment="",this.storage=(0,e.WQX)(g.wc),this.isImageLoaded=!1,this.decodeURIComponent=decodeURIComponent}ngOnInit(){}ionViewWillEnter(){this.getParams()}getParams(){this.activatedRoute.params.subscribe(t=>{this.productObjective=t.productObjective,this.productStep=t.step,this.incident=JSON.parse(t.incident)});const i=JSON.parse(localStorage.getItem("user"));this.orgName=i.orgName,this.currentUser=i.name,console.log(this.orgName),console.log(this.productObjective),console.log(this.productStep),console.log(this.incident.title)}addComment(){var i=this;return(0,p.A)(function*(){if(yield i.showLoading(),console.log("add comment"),console.log(i.currentUser),console.log(i.newComment),""===i.newComment)return void(yield i.hideLoading());i.incident.report?i.incident.report.push({comment:i.newComment.replace(/\n/g,"
"),from:i.currentUser}):i.incident.report=[{comment:i.newComment.replace(/\n/g,"
"),from:i.currentUser}],yield i.incidentService.updateIncident(i.orgName,i.productObjective,i.productStep,i.incident);let t=[];t.push({role:"Incident Commander",member:i.incident.incidentCommander}),t.push({role:"Communications Lead",member:i.incident.communications_lead}),t.push({role:"Operations Lead",member:i.incident.operations_lead});for(let v=0;v{console.log("Uploaded a blob or file!",U.ref.fullPath),t.downloadFile(U.ref.fullPath).then(function(){var Z=(0,p.A)(function*(x){t.newComment=x,yield t.hideLoading(),yield t.addComment(),t.isImageLoaded=!1});return function(x){return Z.apply(this,arguments)}}())})}}})()}downloadFile(i){var t=this;return(0,p.A)(function*(){let v="";return yield(0,g.qk)((0,g.KR)(t.storage,i)).then(b=>{console.log("File available at",b),v=b}),v})()}isImage(i){return/(\.jpg|\.jpeg|\.png|\.gif|\.bmp|\.webp)(\?|$)/i.test(i)}isFile(i){return/(\.csv|\.pdf|\.doc|\.docx|\.ppt|\.pptx|\.xls|\.xlsx|\.txt|\.mp3|\.wav|\.ogg|\.mp4|\.avi|\.mkv|\.mov|\.zip|\.rar|\.7z|\.tar|\.gz)(\?|$)/i.test(i)}fileName(i){var t;return null===(t=decodeURIComponent(i.split("/").pop().split("?")[0]).split("\xb0").pop())||void 0===t?void 0:t.substring(1)}closeIncident(){}saveChanges(){}showLoading(){var i=this;return(0,p.A)(function*(){yield(yield i.loadingCtrl.create({})).present()})()}hideLoading(){var i=this;return(0,p.A)(function*(){yield i.loadingCtrl.dismiss()})()}deleteUploadfile(i){i.value="",this.isImageLoaded=!1}}return(n=_).\u0275fac=function(i){return new(i||n)(e.rXU(f.Ix),e.rXU(f.nX),e.rXU(a.Xi),e.rXU(I.I),e.rXU(s.J))},n.\u0275cmp=e.VBU({type:n,selectors:[["app-incident-details"]],decls:100,vars:30,consts:[["upload",""],["title","Incident Details"],[3,"fullscreen"],[3,"title"],[1,"lg:m-10","md:m-10"],["size","12","size-md","12","size-lg","12",1,""],[1,"p-5","flex","flex-col","justify-center","items-center"],[1,"text-2xl"],[1,""],["size","6","size-md","4","size-lg","4",1,""],["size","12","size-md","4","size-lg","4",1,""],["size","6","size-md","6","size-lg","6",1,""],[1,"flex","flex-row","justify-center","items-center"],["name","person-circle",1,"text-2xl"],[1,"p-5","flex","flex-col","justify-center","items-start"],[4,"ngFor","ngForOf"],[1,"flex","flex-row","justify-center","items-center","w-full"],["placeholder","Add a comment","type","text",1,"w-2/3",3,"ngModelChange","hidden","autoGrow","ngModel"],[1,"pl-1","pr-1"],["size","large","name","cloud-upload",3,"click","hidden"],["type","file",2,"display","none",3,"change"],["size","large","class","ion-margin","expand","block","name","save",3,"click",4,"ngIf"],["size","large","class","ion-margin","expand","block","name","trash",3,"click",4,"ngIf"],[1,"w-1/3","m-5",3,"click","hidden"],["color","danger",1,"w-full"],["color","danger",1,"w-full",3,"disabled"],[1,"text-green-800"],[1,"text-red-800"],[1,"text-yellow-800"],[1,"text-yellow-600"],[1,"text-white"],[1,"flex","flex-row","w-full","items-end"],[1,"text-right"],[1,"flex","flex-row","justify-end","items-center"],["target","_blank",1,"",3,"href"],["alt","image",1,"w-1/2",3,"src"],["target","_blank",3,"href"],["name","document"],["color","warning"],[3,"innerHTML"],["size","large","expand","block","name","save",1,"ion-margin",3,"click"],["size","large","expand","block","name","trash",1,"ion-margin",3,"click"],["color","danger",1,"w-full",3,"click"],["color","danger",1,"w-full",3,"click","disabled"],["color","primary",1,"w-full",3,"click"]],template:function(i,t){if(1&i){const v=e.RV6();e.nrm(0,"app-header-return",1),e.j41(1,"ion-content",2)(2,"ion-grid"),e.nrm(3,"app-title",3),e.j41(4,"ion-row",4)(5,"ion-col",5)(6,"ion-card",6)(7,"ion-card-title",7),e.EFF(8),e.k0s(),e.j41(9,"ion-card-content")(10,"p",8),e.EFF(11),e.k0s()()()()(),e.j41(12,"ion-row",4)(13,"ion-col",9)(14,"ion-card",6)(15,"ion-card-title",7),e.EFF(16,"Current Status"),e.k0s(),e.DNE(17,u,3,1,"ion-card-content")(18,h,3,1,"ion-card-content"),e.k0s()(),e.j41(19,"ion-col",9)(20,"ion-card",6)(21,"ion-card-title",7),e.EFF(22,"Urgency"),e.k0s(),e.DNE(23,R,3,1,"ion-card-content")(24,C,3,1,"ion-card-content")(25,y,3,1,"ion-card-content")(26,D,3,1,"ion-card-content"),e.k0s()(),e.j41(27,"ion-col",10)(28,"ion-card",6)(29,"ion-card-title",7),e.EFF(30," Organization Impact"),e.k0s(),e.DNE(31,P,3,1,"ion-card-content")(32,T,3,1,"ion-card-content")(33,M,3,1,"ion-card-content")(34,O,3,1,"ion-card-content"),e.k0s()()(),e.nrm(35,"app-title",3),e.j41(36,"ion-row",4)(37,"ion-col",11)(38,"ion-card",6)(39,"ion-card-title",7),e.EFF(40,"Incident Commander"),e.k0s(),e.j41(41,"ion-card-content")(42,"div",12),e.nrm(43,"ion-icon",13),e.j41(44,"ion-label",8),e.EFF(45),e.k0s()()()()(),e.j41(46,"ion-col",11)(47,"ion-card",6)(48,"ion-card-title",7),e.EFF(49,"Communications Leader"),e.k0s(),e.j41(50,"ion-card-content")(51,"div",12),e.nrm(52,"ion-icon",13),e.j41(53,"ion-label",8),e.EFF(54),e.k0s()()()()(),e.j41(55,"ion-col",5)(56,"ion-card",6)(57,"ion-card-title",7),e.EFF(58,"Operations Lead"),e.k0s(),e.j41(59,"ion-card-content")(60,"div",12),e.nrm(61,"ion-icon",13),e.j41(62,"ion-label",8),e.EFF(63),e.k0s()()(),e.nrm(64,"br"),e.j41(65,"ion-card-title",7),e.EFF(66,"Operations Team"),e.k0s(),e.j41(67,"ion-card-content"),e.Z7z(68,k,4,1,"div",12,e.fX1),e.k0s()()()(),e.nrm(70,"app-title",3),e.j41(71,"ion-row",4)(72,"ion-col",5)(73,"ion-card",14),e.DNE(74,w,12,10,"ng-container",15),e.k0s()(),e.j41(75,"ion-col",5)(76,"ion-card",6)(77,"div",16)(78,"ion-textarea",17),e.mxI("ngModelChange",function(j){return e.eBV(v),e.DH7(t.newComment,j)||(t.newComment=j),e.Njj(j)}),e.k0s(),e.j41(79,"div",18)(80,"ion-icon",19),e.bIt("click",function(){e.eBV(v);const j=e.sdS(83);return e.Njj(j.click())}),e.EFF(81," Add Data "),e.j41(82,"input",20,0),e.bIt("change",function(){return e.eBV(v),e.Njj(t.onImageLoad())}),e.k0s()(),e.DNE(84,A,1,0,"ion-icon",21)(85,G,1,0,"ion-icon",22),e.k0s(),e.j41(86,"ion-button",23),e.bIt("click",function(){return e.eBV(v),e.Njj(t.addComment())}),e.EFF(87,"Add Comment"),e.k0s()()()()(),e.j41(88,"ion-row",4)(89,"ion-col",5)(90,"ion-card",6)(91,"ion-card-title",7),e.EFF(92,"Change Incident State"),e.k0s(),e.j41(93,"ion-card-content")(94,"p"),e.EFF(95,"Change the state of the incident to closed or open.Only the incident commander can change the state of the incident."),e.k0s()(),e.j41(96,"ion-card-content",16),e.DNE(97,S,2,0,"ion-button",24)(98,X,2,1,"ion-button",25),e.k0s()()(),e.DNE(99,z,10,0,"ion-col",5),e.k0s()()()}2&i&&(e.R7$(),e.Y8G("fullscreen",!0),e.R7$(2),e.Y8G("title","Incident Details"),e.R7$(5),e.JRh(t.incident.title),e.R7$(3),e.JRh(t.incident.description),e.R7$(6),e.vxM(17,"open"===t.incident.state?17:-1),e.R7$(),e.vxM(18,"closed"===t.incident.state?18:-1),e.R7$(5),e.vxM(23,"Critical"===t.incident.urgency?23:-1),e.R7$(),e.vxM(24,"High"===t.incident.urgency?24:-1),e.R7$(),e.vxM(25,"Medium"===t.incident.urgency?25:-1),e.R7$(),e.vxM(26,"Low"===t.incident.urgency?26:-1),e.R7$(5),e.vxM(31,"Extensive/Widespread"===t.incident.org_impact?31:-1),e.R7$(),e.vxM(32,"Significant/Large"===t.incident.org_impact?32:-1),e.R7$(),e.vxM(33,"Moderate/Limited"===t.incident.org_impact?33:-1),e.R7$(),e.vxM(34,"Minor/Localized"===t.incident.org_impact?34:-1),e.R7$(),e.Y8G("title","Incident Team"),e.R7$(10),e.JRh(t.incident.incidentCommander),e.R7$(9),e.JRh(t.incident.communications_lead),e.R7$(9),e.JRh(t.incident.operations_lead),e.R7$(5),e.Dyx(t.incident.operation_team),e.R7$(2),e.Y8G("title","Incident Progress"),e.R7$(4),e.Y8G("ngForOf",t.incident.report),e.R7$(4),e.Y8G("hidden",t.isImageLoaded)("autoGrow",!0),e.R50("ngModel",t.newComment),e.R7$(2),e.Y8G("hidden",t.isImageLoaded),e.R7$(4),e.Y8G("ngIf",t.isImageLoaded),e.R7$(),e.Y8G("ngIf",t.isImageLoaded),e.R7$(),e.Y8G("hidden",t.isImageLoaded),e.R7$(11),e.vxM(97,t.currentUser===t.incident.incidentCommander&&"open"===t.incident.state?97:-1),e.R7$(),e.vxM(98,t.currentUser!==t.incident.incidentCommander||"closed"===t.incident.state?98:-1),e.R7$(),e.vxM(99,"closed"===t.incident.state?99:-1))},dependencies:[c.Sq,c.bT,m.BC,m.vS,a.Jm,a.b_,a.I9,a.tN,a.ZB,a.hU,a.W9,a.lO,a.iq,a.he,a.ln,a.nc,a.Gw,d.W,l.p]}),_})()}];let W=(()=>{var n;class _{}return(n=_).\u0275fac=function(i){return new(i||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[f.iI.forChild(K),f.iI]}),_})();var J=r(5553);let V=(()=>{var n;class _{}return(n=_).\u0275fac=function(i){return new(i||n)},n.\u0275mod=e.$C({type:n}),n.\u0275inj=e.G2t({imports:[c.MD,m.YN,a.bv,W,J.h]}),_})()},4796:(F,E,r)=>{r.d(E,{u:()=>p});var c=r(467),m=r(8737),a=r(4262),f=r(4438);let p=(()=>{var e;class g{constructor(s,d){this.auth=s,this.firestore=d}registerUser(s){var d=this;return(0,c.A)(function*(){try{const l=yield(0,m.eJ)(d.auth,s.email,s.password);return l.user?(yield(0,a.BN)((0,a.H9)(d.firestore,"users",l.user.uid),{email:s.email,name:s.name,orgName:s.orgName,uid:l.user.uid}),yield(0,a.BN)((0,a.H9)(d.firestore,"teams",`${s.orgName}`),{name:s.orgName,members:[l.user.uid]}),l):null}catch{return null}})()}loginUser(s){var d=this;return(0,c.A)(function*(){try{var l;const u=yield(0,m.x9)(d.auth,s.email,s.password);if(null!==(l=u.user)&&void 0!==l&&l.uid){const h=yield(0,a.x7)((0,a.H9)(d.firestore,"users",u.user.uid));if(h.exists())return localStorage.setItem("user",JSON.stringify(h.data())),u}}catch(u){console.error(u)}return null})()}logoutUser(){var s=this;return(0,c.A)(function*(){yield s.auth.signOut()})()}addMember(s){var d=this;return(0,c.A)(function*(){try{const l=yield(0,m.eJ)(d.auth,s.email,s.password);if(!l.user)return!1;const u={email:s.email,name:s.name,orgName:s.orgName,uid:l.user.uid};return yield(0,a.BN)((0,a.H9)(d.firestore,"users",l.user.uid),u),u}catch{return!1}})()}}return(e=g).\u0275fac=function(s){return new(s||e)(f.KVO(m.Nj),f.KVO(a._7))},e.\u0275prov=f.jDH({token:e,factory:e.\u0275fac,providedIn:"root"}),g})()},7473:(F,E,r)=>{r.d(E,{J:()=>e});var c=r(467),m=r(4262),a=r(4438),f=r(1626),p=r(5092);let e=(()=>{var g;class I{constructor(d,l,u){this.firestore=d,this.http=l,this.teamService=u}saveNotificationID(d,l){var u=this;return(0,c.A)(function*(){const h=(0,m.H9)(u.firestore,"users",d.uid),R=yield(0,m.x7)(h);if(R.exists()){const C=R.data();return C.notificationID=l,yield(0,m.BN)(h,C),!0}return console.log("No such document!"),!1})()}getNotificationUser(d){var l=this;return(0,c.A)(function*(){const u=(0,m.H9)(l.firestore,"users",d.uid),h=yield(0,m.x7)(u);if(h.exists()){const R=h.data();return R.notificationID?R.notificationID:""}return console.log("No such document!"),null})()}notifyIncidentToUser(d,l){var u=this;return(0,c.A)(function*(){try{const h=yield u.teamService.getTeamByOrganization(l),R=d.map(D=>D.member),C=h.filter(D=>R.includes(D.name));console.log("team",C);const y="https://devprobeapi.onrender.com/sendNotification";for(let D of C){let P=yield u.getNotificationUser(D);if(console.log("sid",P),""!==P){const M={sid:P,title:"New Incident",type:"new_incident",message:`Hey ${D.name}, you have been assigned a new incident your incident role is ${d.find(O=>O.member===D.name).role}`,target:"https://devprobe-89481.web.app/incident-manager-chooser"};yield u.http.post(y,M).toPromise(),console.log("Notification sent successfully")}else console.log("no sid")}}catch(h){console.log(h)}})()}notifyIncidentUpdateToTeam(d,l){var u=this;return(0,c.A)(function*(){try{const h=yield u.teamService.getTeamByOrganization(l),R=d.map(D=>D.member),C=h.filter(D=>R.includes(D.name));console.log("team",C);const y="https://devprobeapi.onrender.com/sendNotification";for(let D of C){let P=yield u.getNotificationUser(D);if(console.log("sid",P),""!==P){const M={sid:P,title:"Incident Update",type:"update_incident",message:`Hey ${D.name}, there are updates to your incident`,target:"https://devprobe-89481.web.app/incident-manager-chooser"};yield u.http.post(y,M).toPromise(),console.log("Notification sent successfully")}else console.log("no sid")}}catch(h){console.log(h)}})()}}return(g=I).\u0275fac=function(d){return new(d||g)(a.KVO(m._7),a.KVO(f.Qq),a.KVO(p.O))},g.\u0275prov=a.jDH({token:g,factory:g.\u0275fac,providedIn:"root"}),I})()},5092:(F,E,r)=>{r.d(E,{O:()=>p});var c=r(467),m=r(4262),a=r(4438),f=r(4796);let p=(()=>{var e;class g{constructor(s,d){this.firestore=s,this.authService=d}getTeamByOrganization(s){var d=this;return(0,c.A)(function*(){let l=(0,m.H9)(d.firestore,"teams",s);const R=(yield(0,m.x7)(l)).data();let C=[];for(let y=0;yP!==d);return yield(0,m.BN)(u,{name:C.name,members:y}),u=(0,m.H9)(l.firestore,"users",d),yield(0,m.BN)(u,{}),yield l.authService,!0}catch{return!1}})()}addMember(s){var d=this;return(0,c.A)(function*(){try{const l=yield d.authService.addMember(s);if(!l)return!1;const u=(0,m.H9)(d.firestore,"teams",s.orgName),R=(yield(0,m.x7)(u)).data();console.log(R);const C=R;let y=C.members;return y.push(l.uid),console.log(y),yield(0,m.mZ)(u,{name:C.name,members:y}),l.uid}catch{return!1}})()}}return(e=g).\u0275fac=function(s){return new(s||e)(a.KVO(m._7),a.KVO(f.u))},e.\u0275prov=a.jDH({token:e,factory:e.\u0275fac,providedIn:"root"}),g})()}}]); \ No newline at end of file diff --git a/www/common.62b9652b6820acda.js b/www/common.62b9652b6820acda.js new file mode 100644 index 0000000..e71ab72 --- /dev/null +++ b/www/common.62b9652b6820acda.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkapp=self.webpackChunkapp||[]).push([[2076],{1263:(w,p,h)=>{h.d(p,{c:()=>g});var v=h(9672),r=h(1086),m=h(8607);const g=(d,f)=>{let _,o;const n=(s,i,a)=>{if(typeof document>"u")return;const c=document.elementFromPoint(s,i);c&&f(c)&&!c.disabled?c!==_&&(t(),e(c,a)):t()},e=(s,i)=>{_=s,o||(o=_);const a=_;(0,v.w)(()=>a.classList.add("ion-activated")),i()},t=(s=!1)=>{if(!_)return;const i=_;(0,v.w)(()=>i.classList.remove("ion-activated")),s&&o!==_&&_.click(),_=void 0};return(0,m.createGesture)({el:d,gestureName:"buttonActiveDrag",threshold:0,onStart:s=>n(s.currentX,s.currentY,r.a),onMove:s=>n(s.currentX,s.currentY,r.b),onEnd:()=>{t(!0),(0,r.h)(),o=void 0}})}},8438:(w,p,h)=>{h.d(p,{g:()=>r});var v=h(8476);const r=()=>{if(void 0!==v.w)return v.w.Capacitor}},5572:(w,p,h)=>{h.d(p,{c:()=>v,i:()=>r});const v=(m,g,d)=>"function"==typeof d?d(m,g):"string"==typeof d?m[d]===g[d]:Array.isArray(g)?g.includes(m):m===g,r=(m,g,d)=>void 0!==m&&(Array.isArray(m)?m.some(f=>v(f,g,d)):v(m,g,d))},3351:(w,p,h)=>{h.d(p,{g:()=>v});const v=(f,_,o,n,e)=>m(f[1],_[1],o[1],n[1],e).map(t=>r(f[0],_[0],o[0],n[0],t)),r=(f,_,o,n,e)=>e*(3*_*Math.pow(e-1,2)+e*(-3*o*e+3*o+n*e))-f*Math.pow(e-1,3),m=(f,_,o,n,e)=>d((n-=e)-3*(o-=e)+3*(_-=e)-(f-=e),3*o-6*_+3*f,3*_-3*f,f).filter(s=>s>=0&&s<=1),d=(f,_,o,n)=>{if(0===f)return((f,_,o)=>{const n=_*_-4*f*o;return n<0?[]:[(-_+Math.sqrt(n))/(2*f),(-_-Math.sqrt(n))/(2*f)]})(_,o,n);const e=(3*(o/=f)-(_/=f)*_)/3,t=(2*_*_*_-9*_*o+27*(n/=f))/27;if(0===e)return[Math.pow(-t,1/3)];if(0===t)return[Math.sqrt(-e),-Math.sqrt(-e)];const s=Math.pow(t/2,2)+Math.pow(e/3,3);if(0===s)return[Math.pow(t/2,.5)-_/3];if(s>0)return[Math.pow(-t/2+Math.sqrt(s),1/3)-Math.pow(t/2+Math.sqrt(s),1/3)-_/3];const i=Math.sqrt(Math.pow(-e/3,3)),a=Math.acos(-t/(2*Math.sqrt(Math.pow(-e/3,3)))),c=2*Math.pow(i,1/3);return[c*Math.cos(a/3)-_/3,c*Math.cos((a+2*Math.PI)/3)-_/3,c*Math.cos((a+4*Math.PI)/3)-_/3]}},5083:(w,p,h)=>{h.d(p,{i:()=>v});const v=r=>r&&""!==r.dir?"rtl"===r.dir.toLowerCase():"rtl"===(null==document?void 0:document.dir.toLowerCase())},3126:(w,p,h)=>{h.r(p),h.d(p,{startFocusVisible:()=>g});const v="ion-focused",m=["Tab","ArrowDown","Space","Escape"," ","Shift","Enter","ArrowLeft","ArrowRight","ArrowUp","Home","End"],g=d=>{let f=[],_=!0;const o=d?d.shadowRoot:document,n=d||document.body,e=u=>{f.forEach(l=>l.classList.remove(v)),u.forEach(l=>l.classList.add(v)),f=u},t=()=>{_=!1,e([])},s=u=>{_=m.includes(u.key),_||e([])},i=u=>{if(_&&void 0!==u.composedPath){const l=u.composedPath().filter(y=>!!y.classList&&y.classList.contains("ion-focusable"));e(l)}},a=()=>{o.activeElement===n&&e([])};return o.addEventListener("keydown",s),o.addEventListener("focusin",i),o.addEventListener("focusout",a),o.addEventListener("touchstart",t,{passive:!0}),o.addEventListener("mousedown",t),{destroy:()=>{o.removeEventListener("keydown",s),o.removeEventListener("focusin",i),o.removeEventListener("focusout",a),o.removeEventListener("touchstart",t),o.removeEventListener("mousedown",t)},setFocus:e}}},1086:(w,p,h)=>{h.d(p,{I:()=>r,a:()=>_,b:()=>o,c:()=>f,d:()=>e,h:()=>n});var v=h(8438),r=function(t){return t.Heavy="HEAVY",t.Medium="MEDIUM",t.Light="LIGHT",t}(r||{});const g={getEngine(){const t=(0,v.g)();if(null!=t&&t.isPluginAvailable("Haptics"))return t.Plugins.Haptics},available(){if(!this.getEngine())return!1;const s=(0,v.g)();return"web"!==(null==s?void 0:s.getPlatform())||typeof navigator<"u"&&void 0!==navigator.vibrate},impact(t){const s=this.getEngine();s&&s.impact({style:t.style})},notification(t){const s=this.getEngine();s&&s.notification({type:t.type})},selection(){this.impact({style:r.Light})},selectionStart(){const t=this.getEngine();t&&t.selectionStart()},selectionChanged(){const t=this.getEngine();t&&t.selectionChanged()},selectionEnd(){const t=this.getEngine();t&&t.selectionEnd()}},d=()=>g.available(),f=()=>{d()&&g.selection()},_=()=>{d()&&g.selectionStart()},o=()=>{d()&&g.selectionChanged()},n=()=>{d()&&g.selectionEnd()},e=t=>{d()&&g.impact(t)}},909:(w,p,h)=>{h.d(p,{I:()=>f,a:()=>e,b:()=>d,c:()=>i,d:()=>c,f:()=>t,g:()=>n,i:()=>o,p:()=>a,r:()=>u,s:()=>s});var v=h(467),r=h(4920),m=h(4929);const d="ion-content",f=".ion-content-scroll-host",_=`${d}, ${f}`,o=l=>"ION-CONTENT"===l.tagName,n=function(){var l=(0,v.A)(function*(y){return o(y)?(yield new Promise(D=>(0,r.c)(y,D)),y.getScrollElement()):y});return function(D){return l.apply(this,arguments)}}(),e=l=>l.querySelector(f)||l.querySelector(_),t=l=>l.closest(_),s=(l,y)=>o(l)?l.scrollToTop(y):Promise.resolve(l.scrollTo({top:0,left:0,behavior:y>0?"smooth":"auto"})),i=(l,y,D,M)=>o(l)?l.scrollByPoint(y,D,M):Promise.resolve(l.scrollBy({top:D,left:y,behavior:M>0?"smooth":"auto"})),a=l=>(0,m.b)(l,d),c=l=>{if(o(l)){const D=l.scrollY;return l.scrollY=!1,D}return l.style.setProperty("overflow","hidden"),!0},u=(l,y)=>{o(l)?l.scrollY=y:l.style.removeProperty("overflow")}},3992:(w,p,h)=>{h.d(p,{a:()=>v,b:()=>i,c:()=>_,d:()=>a,e:()=>A,f:()=>f,g:()=>c,h:()=>m,i:()=>r,j:()=>E,k:()=>P,l:()=>o,m:()=>t,n:()=>u,o:()=>e,p:()=>d,q:()=>g,r:()=>O,s:()=>T,t:()=>s,u:()=>D,v:()=>M,w:()=>n,x:()=>l,y:()=>y});const v="data:image/svg+xml;utf8,",r="data:image/svg+xml;utf8,",m="data:image/svg+xml;utf8,",g="data:image/svg+xml;utf8,",d="data:image/svg+xml;utf8,",f="data:image/svg+xml;utf8,",_="data:image/svg+xml;utf8,",o="data:image/svg+xml;utf8,",n="data:image/svg+xml;utf8,",e="data:image/svg+xml;utf8,",t="data:image/svg+xml;utf8,",s="data:image/svg+xml;utf8,",i="data:image/svg+xml;utf8,",a="data:image/svg+xml;utf8,",c="data:image/svg+xml;utf8,",u="data:image/svg+xml;utf8,",l="data:image/svg+xml;utf8,",y="data:image/svg+xml;utf8,",D="data:image/svg+xml;utf8,",M="data:image/svg+xml;utf8,",O="data:image/svg+xml;utf8,",E="data:image/svg+xml;utf8,",P="data:image/svg+xml;utf8,",T="data:image/svg+xml;utf8,",A="data:image/svg+xml;utf8,"},243:(w,p,h)=>{h.d(p,{c:()=>g,g:()=>d});var v=h(8476),r=h(4920),m=h(4929);const g=(_,o,n)=>{let e,t;if(void 0!==v.w&&"MutationObserver"in v.w){const c=Array.isArray(o)?o:[o];e=new MutationObserver(u=>{for(const l of u)for(const y of l.addedNodes)if(y.nodeType===Node.ELEMENT_NODE&&c.includes(y.slot))return n(),void(0,r.r)(()=>s(y))}),e.observe(_,{childList:!0,subtree:!0})}const s=c=>{var u;t&&(t.disconnect(),t=void 0),t=new MutationObserver(l=>{n();for(const y of l)for(const D of y.removedNodes)D.nodeType===Node.ELEMENT_NODE&&D.slot===o&&a()}),t.observe(null!==(u=c.parentElement)&&void 0!==u?u:c,{subtree:!0,childList:!0})},a=()=>{t&&(t.disconnect(),t=void 0)};return{destroy:()=>{e&&(e.disconnect(),e=void 0),a()}}},d=(_,o,n)=>{const e=null==_?0:_.toString().length,t=f(e,o);if(void 0===n)return t;try{return n(e,o)}catch(s){return(0,m.a)("Exception in provided `counterFormatter`.",s),t}},f=(_,o)=>`${_} / ${o}`},1622:(w,p,h)=>{h.r(p),h.d(p,{KEYBOARD_DID_CLOSE:()=>d,KEYBOARD_DID_OPEN:()=>g,copyVisualViewport:()=>O,keyboardDidClose:()=>l,keyboardDidOpen:()=>c,keyboardDidResize:()=>u,resetKeyboardAssist:()=>e,setKeyboardClose:()=>a,setKeyboardOpen:()=>i,startKeyboardAssist:()=>t,trackViewportChanges:()=>M});var v=h(4379);h(8438),h(8476);const g="ionKeyboardDidShow",d="ionKeyboardDidHide";let _={},o={},n=!1;const e=()=>{_={},o={},n=!1},t=E=>{if(v.K.getEngine())s(E);else{if(!E.visualViewport)return;o=O(E.visualViewport),E.visualViewport.onresize=()=>{M(E),c()||u(E)?i(E):l(E)&&a(E)}}},s=E=>{E.addEventListener("keyboardDidShow",P=>i(E,P)),E.addEventListener("keyboardDidHide",()=>a(E))},i=(E,P)=>{y(E,P),n=!0},a=E=>{D(E),n=!1},c=()=>!n&&_.width===o.width&&(_.height-o.height)*o.scale>150,u=E=>n&&!l(E),l=E=>n&&o.height===E.innerHeight,y=(E,P)=>{const A=new CustomEvent(g,{detail:{keyboardHeight:P?P.keyboardHeight:E.innerHeight-o.height}});E.dispatchEvent(A)},D=E=>{const P=new CustomEvent(d);E.dispatchEvent(P)},M=E=>{_=Object.assign({},o),o=O(E.visualViewport)},O=E=>({width:Math.round(E.width),height:Math.round(E.height),offsetTop:E.offsetTop,offsetLeft:E.offsetLeft,pageTop:E.pageTop,pageLeft:E.pageLeft,scale:E.scale})},4379:(w,p,h)=>{h.d(p,{K:()=>g,a:()=>m});var v=h(8438),r=function(d){return d.Unimplemented="UNIMPLEMENTED",d.Unavailable="UNAVAILABLE",d}(r||{}),m=function(d){return d.Body="body",d.Ionic="ionic",d.Native="native",d.None="none",d}(m||{});const g={getEngine(){const d=(0,v.g)();if(null!=d&&d.isPluginAvailable("Keyboard"))return d.Plugins.Keyboard},getResizeMode(){const d=this.getEngine();return null!=d&&d.getResizeMode?d.getResizeMode().catch(f=>{if(f.code!==r.Unimplemented)throw f}):Promise.resolve(void 0)}}},4731:(w,p,h)=>{h.d(p,{c:()=>f});var v=h(467),r=h(8476),m=h(4379);const g=_=>{if(void 0===r.d||_===m.a.None||void 0===_)return null;const o=r.d.querySelector("ion-app");return null!=o?o:r.d.body},d=_=>{const o=g(_);return null===o?0:o.clientHeight},f=function(){var _=(0,v.A)(function*(o){let n,e,t,s;const i=function(){var y=(0,v.A)(function*(){const D=yield m.K.getResizeMode(),M=void 0===D?void 0:D.mode;n=()=>{void 0===s&&(s=d(M)),t=!0,a(t,M)},e=()=>{t=!1,a(t,M)},null==r.w||r.w.addEventListener("keyboardWillShow",n),null==r.w||r.w.addEventListener("keyboardWillHide",e)});return function(){return y.apply(this,arguments)}}(),a=(y,D)=>{o&&o(y,c(D))},c=y=>{if(0===s||s===d(y))return;const D=g(y);return null!==D?new Promise(M=>{const E=new ResizeObserver(()=>{D.clientHeight===s&&(E.disconnect(),M())});E.observe(D)}):void 0};return yield i(),{init:i,destroy:()=>{null==r.w||r.w.removeEventListener("keyboardWillShow",n),null==r.w||r.w.removeEventListener("keyboardWillHide",e),n=e=void 0},isKeyboardVisible:()=>t}});return function(n){return _.apply(this,arguments)}}()},7838:(w,p,h)=>{h.d(p,{c:()=>r});var v=h(467);const r=()=>{let m;return{lock:function(){var d=(0,v.A)(function*(){const f=m;let _;return m=new Promise(o=>_=o),void 0!==f&&(yield f),_});return function(){return d.apply(this,arguments)}}()}}},9001:(w,p,h)=>{h.d(p,{c:()=>m});var v=h(8476),r=h(4920);const m=(g,d,f)=>{let _;const o=()=>!(void 0===d()||void 0!==g.label||null===f()),e=()=>{const s=d();if(void 0===s)return;if(!o())return void s.style.removeProperty("width");const i=f().scrollWidth;if(0===i&&null===s.offsetParent&&void 0!==v.w&&"IntersectionObserver"in v.w){if(void 0!==_)return;const a=_=new IntersectionObserver(c=>{1===c[0].intersectionRatio&&(e(),a.disconnect(),_=void 0)},{threshold:.01,root:g});a.observe(s)}else s.style.setProperty("width",.75*i+"px")};return{calculateNotchWidth:()=>{o()&&(0,r.r)(()=>{e()})},destroy:()=>{_&&(_.disconnect(),_=void 0)}}}},7895:(w,p,h)=>{h.d(p,{S:()=>r});const r={bubbles:{dur:1e3,circles:9,fn:(m,g,d)=>{const f=m*g/d-m+"ms",_=2*Math.PI*g/d;return{r:5,style:{top:32*Math.sin(_)+"%",left:32*Math.cos(_)+"%","animation-delay":f}}}},circles:{dur:1e3,circles:8,fn:(m,g,d)=>{const f=g/d,_=m*f-m+"ms",o=2*Math.PI*f;return{r:5,style:{top:32*Math.sin(o)+"%",left:32*Math.cos(o)+"%","animation-delay":_}}}},circular:{dur:1400,elmDuration:!0,circles:1,fn:()=>({r:20,cx:48,cy:48,fill:"none",viewBox:"24 24 48 48",transform:"translate(0,0)",style:{}})},crescent:{dur:750,circles:1,fn:()=>({r:26,style:{}})},dots:{dur:750,circles:3,fn:(m,g)=>({r:6,style:{left:32-32*g+"%","animation-delay":-110*g+"ms"}})},lines:{dur:1e3,lines:8,fn:(m,g,d)=>({y1:14,y2:26,style:{transform:`rotate(${360/d*g+(g({y1:12,y2:20,style:{transform:`rotate(${360/d*g+(g({y1:17,y2:29,style:{transform:`rotate(${30*g+(g<6?180:-180)}deg)`,"animation-delay":m*g/d-m+"ms"}})},"lines-sharp-small":{dur:1e3,lines:12,fn:(m,g,d)=>({y1:12,y2:20,style:{transform:`rotate(${30*g+(g<6?180:-180)}deg)`,"animation-delay":m*g/d-m+"ms"}})}}},7166:(w,p,h)=>{h.r(p),h.d(p,{createSwipeBackGesture:()=>d});var v=h(4920),r=h(5083),m=h(8607);h(1970);const d=(f,_,o,n,e)=>{const t=f.ownerDocument.defaultView;let s=(0,r.i)(f);const a=D=>s?-D.deltaX:D.deltaX;return(0,m.createGesture)({el:f,gestureName:"goback-swipe",gesturePriority:101,threshold:10,canStart:D=>(s=(0,r.i)(f),(D=>{const{startX:O}=D;return s?O>=t.innerWidth-50:O<=50})(D)&&_()),onStart:o,onMove:D=>{const O=a(D)/t.innerWidth;n(O)},onEnd:D=>{const M=a(D),O=t.innerWidth,E=M/O,P=(D=>s?-D.velocityX:D.velocityX)(D),A=P>=0&&(P>.2||M>O/2),L=(A?1-E:E)*O;let C=0;if(L>5){const R=L/Math.abs(P);C=Math.min(R,540)}e(A,E<=0?.01:(0,v.j)(0,E,.9999),C)}})}},2935:(w,p,h)=>{h.d(p,{w:()=>v});const v=(g,d,f)=>{if(typeof MutationObserver>"u")return;const _=new MutationObserver(o=>{f(r(o,d))});return _.observe(g,{childList:!0,subtree:!0}),_},r=(g,d)=>{let f;return g.forEach(_=>{for(let o=0;o<_.addedNodes.length;o++)f=m(_.addedNodes[o],d)||f}),f},m=(g,d)=>{if(1!==g.nodeType)return;const f=g;return(f.tagName===d.toUpperCase()?[f]:Array.from(f.querySelectorAll(d))).find(o=>o.value===f.value)}},385:(w,p,h)=>{h.d(p,{l:()=>m});var v=h(4438),r=h(7863);let m=(()=>{var g;class d{constructor(){this.title="Header Title"}ngOnInit(){}}return(g=d).\u0275fac=function(_){return new(_||g)},g.\u0275cmp=v.VBU({type:g,selectors:[["app-header"]],inputs:{title:"title"},decls:5,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"]],template:function(_,o){1&_&&(v.j41(0,"ion-header",0)(1,"ion-toolbar"),v.nrm(2,"ion-menu-button",1),v.j41(3,"ion-title"),v.EFF(4),v.k0s()()()),2&_&&(v.Y8G("translucent",!0),v.R7$(4),v.JRh(o.title))},dependencies:[r.eU,r.MC,r.BC,r.ai]}),d})()},6560:(w,p,h)=>{h.d(p,{x:()=>d});var v=h(467),r=h(4262),m=h(4438),g=h(1626);let d=(()=>{var f;class _{constructor(n,e){this.firestore=n,this.http=e,this.url_cpu="https://devprobeapi.onrender.com/flame_graph_date",this.url_mem="https://devprobeapi.onrender.com/flame_graph_memory_date"}getProducts(n){var e=this;return(0,v.A)(function*(){try{const t=(0,r.rJ)(e.firestore,"teams",n,"products");return(yield(0,r.GG)(t)).docs.map(i=>i.data())}catch(t){return console.log(t),[]}})()}getDates(n,e,t){var s=this;return(0,v.A)(function*(){try{t||(t="cpu_usage");const i=(0,r.rJ)(s.firestore,"teams",n,"products",e,t);return(yield(0,r.GG)(i)).docs.map(c=>c.id)}catch(i){return console.log(i),[]}})()}getFlameGraphByDate(n,e,t,s){var i=this;return(0,v.A)(function*(){try{let a={team:n,product:e,date:t};return s?yield i.http.post(i.url_mem,a).toPromise():yield i.http.post(i.url_cpu,a).toPromise()}catch{return{}}})()}}return(f=_).\u0275fac=function(n){return new(n||f)(m.KVO(r._7),m.KVO(g.Qq))},f.\u0275prov=m.jDH({token:f,factory:f.\u0275fac,providedIn:"root"}),_})()},201:(w,p,h)=>{h.d(p,{p:()=>d});var v=h(467),r=h(4262),m=h(4438),g=h(1626);let d=(()=>{var f;class _{constructor(n,e){this.firestore=n,this.httpClient=e,this.url="https://devprobeapi.onrender.com/"}syncRepo(n,e,t,s,i){var a=this;return(0,v.A)(function*(){const c=(0,r.H9)(a.firestore,"teams",n),u=yield(0,r.x7)(c);if(u.exists()){const l=u.data();l.gitHub={key:e,repo:t,branch:s,owner:i},yield(0,r.BN)(c,l)}})()}getSyncRepo(n){var e=this;return(0,v.A)(function*(){const t=(0,r.H9)(e.firestore,"teams",n),s=yield(0,r.x7)(t);return s.exists()?s.data().gitHub:null})()}getFiles(n){var e=this;return(0,v.A)(function*(){const t=yield e.httpClient.post(e.url+"github_repo",{auth:n.key,repo:n.repo,branch:n.branch,owner:n.owner}).toPromise();if(console.log(t),t){let s=t.paths;return s=s.filter(i=>!i.includes(".git")),s=s.filter(i=>!i.includes("node_modules")),s=s.filter(i=>!i.includes(".idea")),s=s.filter(i=>i.includes(".")),s}return[]})()}getContentFromFilePath(n,e){var t=this;return(0,v.A)(function*(){const s=yield t.httpClient.post(t.url+"github_file",{auth:n.key,repo:n.repo,owner:n.owner,path:e}).toPromise();return console.log(s),s?s.content:""})()}}return(f=_).\u0275fac=function(n){return new(n||f)(m.KVO(r._7),m.KVO(g.Qq))},f.\u0275prov=m.jDH({token:f,factory:f.\u0275fac,providedIn:"root"}),_})()},4624:(w,p,h)=>{h.d(p,{I:()=>g});var v=h(467),r=h(4262),m=h(4438);let g=(()=>{var d;class f{constructor(o){this.firestore=o}saveIncident(o,n,e,t){var s=this;return(0,v.A)(function*(){try{console.log(t);const i=(0,r.H9)(s.firestore,"teams",o,"products",n,"incident",e),a=yield(0,r.x7)(i);if(a.exists()){const c=a.data();return c.incidents.push({...t}),yield(0,r.BN)(i,c),!0}return console.log("No such document!"),yield(0,r.BN)(i,{incidents:[t]}),!0}catch(i){return console.log(i),!1}})()}getIncidents(o,n,e){var t=this;return(0,v.A)(function*(){const s=(0,r.H9)(t.firestore,"teams",o,"products",n,"incident",e),i=yield(0,r.x7)(s);if(i.exists()){let a=i.data();return console.log(a),a.incidents}return[]})()}getIncident(o,n,e,t){var s=this;return(0,v.A)(function*(){let i=yield s.getIncidents(o,n,e);for(let a=0;a<=i.length;a++)if(i[a].title===t)return i[a];return{}})()}updateIncident(o,n,e,t){var s=this;return(0,v.A)(function*(){const i=(0,r.H9)(s.firestore,"teams",o,"products",n,"incident",e),a=yield(0,r.x7)(i);if(a.exists()){const c=a.data();let u=c.incidents;console.log(u);for(let l=0;l<=u.length;l++)if(console.log(u[l].title),console.log(t.title),u[l].title===t.title)return console.log("found"),u[l]=t,yield(0,r.BN)(i,c),!0}return!1})()}closeIncident(o,n,e,t){var s=this;return(0,v.A)(function*(){const i=(0,r.H9)(s.firestore,"teams",o,"products",n,"incident",e);t.state="closed";const a=yield(0,r.x7)(i);if(a.exists()){const c=a.data();let u=c.incidents;console.log(u);for(let l=0;l<=u.length;l++)if(console.log(u[l].title),console.log(t.title),u[l].title===t.title)return console.log("found"),u[l]=t,yield(0,r.BN)(i,c),!0}return!1})()}}return(d=f).\u0275fac=function(o){return new(o||d)(m.KVO(r._7))},d.\u0275prov=m.jDH({token:d,factory:d.\u0275fac,providedIn:"root"}),f})()},3661:(w,p,h)=>{h.d(p,{e:()=>d});var v=h(467),r=h(4438),m=h(4262),g=h(1626);let d=(()=>{var f;class _{constructor(n,e){this.firestore=n,this.http=e,this.ipApiURL="https://cors-ea3m.onrender.com/http://ip-api.com/json/"}getLocationDestSrc(n){var e=this;return(0,v.A)(function*(){var t,s,i,a,c,u,l,y;if(!n)return n;const D=e.http.get(e.ipApiURL+n.dst_addr).toPromise(),M=e.http.get(e.ipApiURL+n.src_addr).toPromise(),O=yield D,E=yield M;return n.dst_city=null!==(t=O.city)&&void 0!==t?t:"No city found",n.dst_country=null!==(s=O.country)&&void 0!==s?s:"No country found",n.dst_latitude=null!==(i=O.lat)&&void 0!==i?i:0,n.dst_longitude=null!==(a=O.lon)&&void 0!==a?a:0,n.src_city=null!==(c=E.city)&&void 0!==c?c:"No city found",n.src_country=null!==(u=E.country)&&void 0!==u?u:"No country found",n.src_latitude=null!==(l=E.lat)&&void 0!==l?l:0,n.src_longitude=null!==(y=E.lon)&&void 0!==y?y:0,n})()}getLocationFrom(n){var e=this;return(0,v.A)(function*(){if(!n)return n;let t=n.result;for(let u=0;u{h.d(p,{N:()=>d});var v=h(467),r=h(4262),m=h(4438),g=h(1626);let d=(()=>{var f;class _{constructor(n,e){this.firestore=n,this.http=e,this.ipApiURL="https://cors-ea3m.onrender.com/http://ip-api.com/json/"}getLocation(n){var e=this;return(0,v.A)(function*(){console.log(n);const s=yield e.http.get(e.ipApiURL+n[0].dst_addr).toPromise();for(let c=0;ce.http.get(e.ipApiURL+c.from).toPromise());return(yield Promise.all(i)).forEach((c,u)=>{n[u].fromLatitude=c.lat,n[u].fromLongitude=c.lon,n[u].cityFrom=c.city,n[u].countryFrom=c.country}),console.log(n),n})()}saveLocationResults(n,e,t,s){var i=this;return(0,v.A)(function*(){try{console.log(s,"ripeData");const a=(0,r.rJ)(i.firestore,"teams",n,"products",e,"ripe"),c=(0,r.H9)(a,t),u=s.map(l=>({from:l.from,dst_addr:l.dst_addr,latency:l.latency,cityFrom:l.cityFrom,countryFrom:l.countryFrom,cityTo:l.cityTo,countryTo:l.countryTo,fromLatitude:l.fromLatitude,fromLongitude:l.fromLongitude,toLatitude:l.toLatitude,toLongitude:l.toLongitude,id:l.id}));return yield(0,r.BN)(c,{data:u}),console.log("Data saved",{data:u}),!0}catch(a){return console.log(a),!1}})()}}return(f=_).\u0275fac=function(n){return new(n||f)(m.KVO(r._7),m.KVO(g.Qq))},f.\u0275prov=m.jDH({token:f,factory:f.\u0275fac,providedIn:"root"}),_})()},6241:(w,p,h)=>{h.d(p,{b:()=>g});var v=h(467),r=h(4262),m=h(4438);let g=(()=>{var d;class f{constructor(o){this.firestore=o}addProduct(o,n){var e=this;return(0,v.A)(function*(){try{console.log(o);const t=(0,r.H9)(e.firestore,"teams",n,"products",o.productObjective);return yield(0,r.BN)(t,o),!0}catch(t){return console.log(t),!1}})()}getProducts(o){var n=this;return(0,v.A)(function*(){try{const e=(0,r.rJ)(n.firestore,"teams",o,"products");return(yield(0,r.GG)(e)).docs.map(s=>s.data())}catch(e){return console.log(e),[]}})()}removeProduct(o,n){var e=this;return(0,v.A)(function*(){try{const t=(0,r.H9)(e.firestore,"teams",o,"products",n);return yield(0,r.kd)(t),!0}catch(t){return console.log(t),!1}})()}}return(d=f).\u0275fac=function(o){return new(o||d)(m.KVO(r._7))},d.\u0275prov=m.jDH({token:d,factory:d.\u0275fac,providedIn:"root"}),f})()},2588:(w,p,h)=>{h.d(p,{N:()=>d});var v=h(467),r=h(4262),m=h(4438),g=h(1626);let d=(()=>{var f;class _{constructor(n,e){this.http=n,this.firestore=e,this.measurementsUrl="https://cors-ea3m.onrender.com/https://atlas.ripe.net/api/v2/measurements/",this.measurementID=""}sendTraceRequest(n,e,t,s){var i=this;return(0,v.A)(function*(){console.log("Sending trace request");try{let a={definitions:[{target:n,description:e,type:t,af:4,is_oneoff:!0,protocol:"TCP"}],probes:[]};console.log(s);let c=s.split(",").length-1,u=(s=s.slice(0,-1)).split(","),l=[];for(let M=0;M({id:i.measurementID,dst_addr:l.dst_addr,dst_city:l.dst_city,dst_country:l.dst_country,dst_latitude:l.dst_latitude,dst_longitude:l.dst_longitude,src_addr:l.src_addr,src_city:l.src_city,src_country:l.src_country,src_latitude:l.src_latitude,src_longitude:l.src_longitude,result:l.result}));return yield(0,r.BN)(c,{data:u}),!0}catch(a){return console.log(a),!1}})()}getHistoryResults(n,e){var t=this;return(0,v.A)(function*(){const i=(0,r.rJ)(t.firestore,"teams/"+n+"/products/"+e+"/ripe_trace"),a=yield(0,r.GG)(i);let c=[];return a.docs.forEach(u=>{c.push({id:u.id,data:u.data()})}),console.log(c),c})()}getAllResultsByDescription(n,e,t){var s=this;return(0,v.A)(function*(){try{let i="teams/"+n+"/products/"+e+"/ripe_trace";console.log(i);let a=(0,r.H9)(s.firestore,i,t);return(yield(0,r.x7)(a)).data()}catch(i){return console.log(i),[]}})()}}return(f=_).\u0275fac=function(n){return new(n||f)(m.KVO(g.Qq),m.KVO(r._7))},f.\u0275prov=m.jDH({token:f,factory:f.\u0275fac,providedIn:"root"}),_})()},9640:(w,p,h)=>{h.d(p,{Q:()=>f});var v=h(467),r=h(1985),m=h(4262),g=h(4438),d=h(1626);let f=(()=>{var _;class o{constructor(e,t){this.http=e,this.firestore=t,this.measurementsUrl="https://cors-ea3m.onrender.com/https://atlas.ripe.net/api/v2/measurements/",this.measurementID=""}sendMeasurementRequest(e,t,s,i){var a=this;return(0,v.A)(function*(){let c=i.split(",").length-1;i=i.slice(0,-1);try{let u={definitions:[{target:e,description:"ping",type:"ping",af:4,is_oneoff:!0}],probes:[{requested:c,type:"probes",value:i}]},l={Authorization:"Key 92530695-134f-4cbc-b7c3-ec130f3719b0"};console.log(u);let y=yield a.http.post(a.measurementsUrl,u,{headers:l}).toPromise();return console.log(y),a.measurementID=y.measurements[0],a.measurementID}catch(u){return console.log(u),!1}})()}getMeasurementResults(e){var t=this;return(0,v.A)(function*(){e&&(t.measurementID=e);try{let s={Authorization:"Key 92530695-134f-4cbc-b7c3-ec130f3719b0"};return""===t.measurementID?(console.log("No measurement ID"),!1):t.http.get(t.measurementsUrl+t.measurementID+"/results/",{headers:s})}catch(s){return console.log(s),new r.c}})()}saveMeasurementResults(e,t,s,i){var a=this;return(0,v.A)(function*(){try{const c=(0,m.rJ)(a.firestore,"teams",e,"products",t,"ripe"),u=(0,m.H9)(c,s),l=i.map((y,D)=>({id:a.measurementID,from:y.from,dst_addr:y.dst_addr,latency:y.latency}));return yield(0,m.BN)(u,{data:l}),!0}catch(c){return console.log(c),!1}})()}getAllResultsByDescription(e,t,s){var i=this;return(0,v.A)(function*(){try{let a="teams/"+e+"/products/"+t+"/ripe";console.log(a);let c=(0,m.H9)(i.firestore,a,s);return(yield(0,m.x7)(c)).data()}catch(a){return console.log(a),[]}})()}getHistoryResults(e,t){var s=this;return(0,v.A)(function*(){const a=(0,m.rJ)(s.firestore,"teams/"+e+"/products/"+t+"/ripe"),c=yield(0,m.GG)(a);let u=[];return c.docs.forEach(l=>{u.push({id:l.id,data:l.data()})}),console.log(u),u})()}deleteHistory(e,t,s){var i=this;return(0,v.A)(function*(){const c=(0,m.H9)(i.firestore,"teams/"+e+"/products/"+t+"/ripe",s);try{return yield(0,m.kd)(c),!0}catch(u){return console.log(u),!1}})()}}return(_=o).\u0275fac=function(e){return new(e||_)(g.KVO(d.Qq),g.KVO(m._7))},_.\u0275prov=g.jDH({token:_,factory:_.\u0275fac,providedIn:"root"}),o})()},9536:(w,p,h)=>{h.d(p,{Q:()=>g});var v=h(467),r=h(4262),m=h(4438);let g=(()=>{var d;class f{constructor(o){this.firestore=o}addSystemTest(o,n,e,t){var s=this;return(0,v.A)(function*(){const i=(0,r.H9)(s.firestore,"teams",o,"products",n,"software_testing","integration_tests"),a=yield(0,r.x7)(i);if(a.exists()){const c=a.data();if(!c[e])return c[e]=[t],yield(0,r.BN)(i,c),void console.log("Document created with ID: ",i.id);c[e].push(t),yield(0,r.BN)(i,c),console.log("Document updated with ID: ",a.id)}else console.log("No such document!"),yield(0,r.BN)(i,{[e]:[t]}),console.log("Document created with ID: ",i.id)})()}getIntegrationTests(o,n,e){var t=this;return(0,v.A)(function*(){const s=(0,r.H9)(t.firestore,"teams",o,"products",n,"software_testing","integration_tests"),i=yield(0,r.x7)(s);return i.exists()?i.data()[e]:[]})()}updateIntegrationTestState(o,n,e,t,s){var i=this;return(0,v.A)(function*(){const a=(0,r.H9)(i.firestore,"teams",o,"products",n,"software_testing","integration_tests"),c=yield(0,r.x7)(a);if(c.exists()){const u=c.data();for(let l=0;l{h.d(p,{h:()=>g});var v=h(467),r=h(4262),m=h(4438);let g=(()=>{var d;class f{constructor(o){this.firestore=o}addSystemTest(o,n,e,t){var s=this;return(0,v.A)(function*(){const i=(0,r.H9)(s.firestore,"teams",o,"products",n,"software_testing","system_tests"),a=yield(0,r.x7)(i);if(a.exists()){const c=a.data();if(!c[e])return c[e]=[t],yield(0,r.BN)(i,c),void console.log("Document created with ID: ",i.id);c[e].push(t),yield(0,r.BN)(i,c),console.log("Document updated with ID: ",a.id)}else console.log("No such document!"),yield(0,r.BN)(i,{[e]:[t]}),console.log("Document created with ID: ",i.id)})()}getSystemTest(o,n,e){var t=this;return(0,v.A)(function*(){const s=(0,r.H9)(t.firestore,"teams",o,"products",n,"software_testing","system_tests"),i=yield(0,r.x7)(s);return i.exists()?i.data()[e]:[]})()}saveSystemTest(o,n,e,t){var s=this;return(0,v.A)(function*(){const i=(0,r.H9)(s.firestore,"teams",o,"products",n,"software_testing","system_tests_history"),a=new Date,c=`${a.getFullYear()}-${a.getMonth()+1}-${a.getDate()} ${a.getHours()}:${a.getMinutes()}:${a.getSeconds()}`;console.log(c);const u=yield(0,r.x7)(i);if(u.exists()){let l=u.data();l[c]={systemTest:t},l[c].productStep=e,yield(0,r.BN)(i,l)}else yield(0,r.BN)(i,{[c]:{systemTest:t,productStep:e}})})()}getSystemTestHistoryByStep(o,n,e){var t=this;return(0,v.A)(function*(){const s=(0,r.H9)(t.firestore,"teams",o,"products",n,"software_testing","system_tests_history"),i=yield(0,r.x7)(s);if(i.exists()){const a=i.data();return Object.keys(a).filter(u=>a[u].productStep===e).map(u=>a[u].systemTest)}return[]})()}getSystemTestHistoryByTitle(o,n,e,t){var s=this;return(0,v.A)(function*(){const i=(0,r.H9)(s.firestore,"teams",o,"products",n,"software_testing","system_tests_history"),a=yield(0,r.x7)(i);let c=[];if(a.exists()){const u=a.data();for(let l in u)u[l].systemTest.title===t&&u[l].productStep===e&&c.push({timestamp:l,systemTest:u[l].systemTest})}return c})()}getSystemTestByTimestamp(o,n,e,t,s){var i=this;return(0,v.A)(function*(){const a=(0,r.H9)(i.firestore,"teams",o,"products",n,"software_testing","system_tests_history"),c=yield(0,r.x7)(a);if(c.exists()){const u=c.data();for(let l in u)if(u[l].systemTest.title===t&&l===s&&u[l].productStep===e)return u[l].systemTest}return{}})()}deleteSystemTestHistoryByKey(o,n,e,t,s){var i=this;return(0,v.A)(function*(){const a=(0,r.H9)(i.firestore,"teams",o,"products",n,"software_testing","system_tests_history"),c=yield(0,r.x7)(a);if(c.exists()){const u=c.data();for(let l in u)u[l].systemTest.title===t&&l===s&&u[l].productStep===e&&delete u[l];yield(0,r.BN)(a,u)}})()}getSystemTestHistory(o,n){var e=this;return(0,v.A)(function*(){const t=(0,r.H9)(e.firestore,"teams",o,"products",n,"software_testing","system_tests_history"),s=yield(0,r.x7)(t);return s.exists()?s.data():{}})()}deleteSystemTest(o,n,e,t){var s=this;return(0,v.A)(function*(){let i=(0,r.H9)(s.firestore,"teams",o,"products",n,"software_testing","system_tests"),a=yield(0,r.x7)(i);if(a.exists()){let c=a.data();c[e]=c[e].filter(u=>u.title!==t.title),yield(0,r.BN)(i,c)}if(i=(0,r.H9)(s.firestore,"teams",o,"products",n,"software_testing","system_tests_history"),a=yield(0,r.x7)(i),a.exists()){let c=a.data();for(let u in c)console.log(c[u].systemTest.title),c[u].systemTest.title===t.title&&delete c[u];yield(0,r.BN)(i,c)}})()}}return(d=f).\u0275fac=function(o){return new(o||d)(m.KVO(r._7))},d.\u0275prov=m.jDH({token:d,factory:d.\u0275fac,providedIn:"root"}),f})()},1854:(w,p,h)=>{h.d(p,{I:()=>g});var v=h(467),r=h(4262),m=h(4438);let g=(()=>{var d;class f{constructor(o){this.firestore=o}addUnitTest(o,n,e,t){var s=this;return(0,v.A)(function*(){const i=(0,r.H9)(s.firestore,"teams",o,"products",n,"software_testing","unit_tests"),a=yield(0,r.x7)(i);if(a.exists()){let c=a.data();if(!c[e])return c[e]=[t],yield(0,r.BN)(i,c),void console.log("Document created with ID: ",i.id);for(let u=0;u{h.d(p,{c:()=>g});var v=h(9672),s=h(1086),m=h(8607);const g=(l,_)=>{let u,o;const n=(r,i,c)=>{if(typeof document>"u")return;const a=document.elementFromPoint(r,i);a&&_(a)&&!a.disabled?a!==u&&(e(),t(a,c)):e()},t=(r,i)=>{u=r,o||(o=u);const c=u;(0,v.w)(()=>c.classList.add("ion-activated")),i()},e=(r=!1)=>{if(!u)return;const i=u;(0,v.w)(()=>i.classList.remove("ion-activated")),r&&o!==u&&u.click(),u=void 0};return(0,m.createGesture)({el:l,gestureName:"buttonActiveDrag",threshold:0,onStart:r=>n(r.currentX,r.currentY,s.a),onMove:r=>n(r.currentX,r.currentY,s.b),onEnd:()=>{e(!0),(0,s.h)(),o=void 0}})}},8438:(w,p,h)=>{h.d(p,{g:()=>s});var v=h(8476);const s=()=>{if(void 0!==v.w)return v.w.Capacitor}},5572:(w,p,h)=>{h.d(p,{c:()=>v,i:()=>s});const v=(m,g,l)=>"function"==typeof l?l(m,g):"string"==typeof l?m[l]===g[l]:Array.isArray(g)?g.includes(m):m===g,s=(m,g,l)=>void 0!==m&&(Array.isArray(m)?m.some(_=>v(_,g,l)):v(m,g,l))},3351:(w,p,h)=>{h.d(p,{g:()=>v});const v=(_,u,o,n,t)=>m(_[1],u[1],o[1],n[1],t).map(e=>s(_[0],u[0],o[0],n[0],e)),s=(_,u,o,n,t)=>t*(3*u*Math.pow(t-1,2)+t*(-3*o*t+3*o+n*t))-_*Math.pow(t-1,3),m=(_,u,o,n,t)=>l((n-=t)-3*(o-=t)+3*(u-=t)-(_-=t),3*o-6*u+3*_,3*u-3*_,_).filter(r=>r>=0&&r<=1),l=(_,u,o,n)=>{if(0===_)return((_,u,o)=>{const n=u*u-4*_*o;return n<0?[]:[(-u+Math.sqrt(n))/(2*_),(-u-Math.sqrt(n))/(2*_)]})(u,o,n);const t=(3*(o/=_)-(u/=_)*u)/3,e=(2*u*u*u-9*u*o+27*(n/=_))/27;if(0===t)return[Math.pow(-e,1/3)];if(0===e)return[Math.sqrt(-t),-Math.sqrt(-t)];const r=Math.pow(e/2,2)+Math.pow(t/3,3);if(0===r)return[Math.pow(e/2,.5)-u/3];if(r>0)return[Math.pow(-e/2+Math.sqrt(r),1/3)-Math.pow(e/2+Math.sqrt(r),1/3)-u/3];const i=Math.sqrt(Math.pow(-t/3,3)),c=Math.acos(-e/(2*Math.sqrt(Math.pow(-t/3,3)))),a=2*Math.pow(i,1/3);return[a*Math.cos(c/3)-u/3,a*Math.cos((c+2*Math.PI)/3)-u/3,a*Math.cos((c+4*Math.PI)/3)-u/3]}},5083:(w,p,h)=>{h.d(p,{i:()=>v});const v=s=>s&&""!==s.dir?"rtl"===s.dir.toLowerCase():"rtl"===(null==document?void 0:document.dir.toLowerCase())},3126:(w,p,h)=>{h.r(p),h.d(p,{startFocusVisible:()=>g});const v="ion-focused",m=["Tab","ArrowDown","Space","Escape"," ","Shift","Enter","ArrowLeft","ArrowRight","ArrowUp","Home","End"],g=l=>{let _=[],u=!0;const o=l?l.shadowRoot:document,n=l||document.body,t=f=>{_.forEach(d=>d.classList.remove(v)),f.forEach(d=>d.classList.add(v)),_=f},e=()=>{u=!1,t([])},r=f=>{u=m.includes(f.key),u||t([])},i=f=>{if(u&&void 0!==f.composedPath){const d=f.composedPath().filter(y=>!!y.classList&&y.classList.contains("ion-focusable"));t(d)}},c=()=>{o.activeElement===n&&t([])};return o.addEventListener("keydown",r),o.addEventListener("focusin",i),o.addEventListener("focusout",c),o.addEventListener("touchstart",e,{passive:!0}),o.addEventListener("mousedown",e),{destroy:()=>{o.removeEventListener("keydown",r),o.removeEventListener("focusin",i),o.removeEventListener("focusout",c),o.removeEventListener("touchstart",e),o.removeEventListener("mousedown",e)},setFocus:t}}},1086:(w,p,h)=>{h.d(p,{I:()=>s,a:()=>u,b:()=>o,c:()=>_,d:()=>t,h:()=>n});var v=h(8438),s=function(e){return e.Heavy="HEAVY",e.Medium="MEDIUM",e.Light="LIGHT",e}(s||{});const g={getEngine(){const e=(0,v.g)();if(null!=e&&e.isPluginAvailable("Haptics"))return e.Plugins.Haptics},available(){if(!this.getEngine())return!1;const r=(0,v.g)();return"web"!==(null==r?void 0:r.getPlatform())||typeof navigator<"u"&&void 0!==navigator.vibrate},impact(e){const r=this.getEngine();r&&r.impact({style:e.style})},notification(e){const r=this.getEngine();r&&r.notification({type:e.type})},selection(){this.impact({style:s.Light})},selectionStart(){const e=this.getEngine();e&&e.selectionStart()},selectionChanged(){const e=this.getEngine();e&&e.selectionChanged()},selectionEnd(){const e=this.getEngine();e&&e.selectionEnd()}},l=()=>g.available(),_=()=>{l()&&g.selection()},u=()=>{l()&&g.selectionStart()},o=()=>{l()&&g.selectionChanged()},n=()=>{l()&&g.selectionEnd()},t=e=>{l()&&g.impact(e)}},909:(w,p,h)=>{h.d(p,{I:()=>_,a:()=>t,b:()=>l,c:()=>i,d:()=>a,f:()=>e,g:()=>n,i:()=>o,p:()=>c,r:()=>f,s:()=>r});var v=h(467),s=h(4920),m=h(4929);const l="ion-content",_=".ion-content-scroll-host",u=`${l}, ${_}`,o=d=>"ION-CONTENT"===d.tagName,n=function(){var d=(0,v.A)(function*(y){return o(y)?(yield new Promise(D=>(0,s.c)(y,D)),y.getScrollElement()):y});return function(D){return d.apply(this,arguments)}}(),t=d=>d.querySelector(_)||d.querySelector(u),e=d=>d.closest(u),r=(d,y)=>o(d)?d.scrollToTop(y):Promise.resolve(d.scrollTo({top:0,left:0,behavior:y>0?"smooth":"auto"})),i=(d,y,D,M)=>o(d)?d.scrollByPoint(y,D,M):Promise.resolve(d.scrollBy({top:D,left:y,behavior:M>0?"smooth":"auto"})),c=d=>(0,m.b)(d,l),a=d=>{if(o(d)){const D=d.scrollY;return d.scrollY=!1,D}return d.style.setProperty("overflow","hidden"),!0},f=(d,y)=>{o(d)?d.scrollY=y:d.style.removeProperty("overflow")}},3992:(w,p,h)=>{h.d(p,{a:()=>v,b:()=>i,c:()=>u,d:()=>c,e:()=>A,f:()=>_,g:()=>a,h:()=>m,i:()=>s,j:()=>E,k:()=>P,l:()=>o,m:()=>e,n:()=>f,o:()=>t,p:()=>l,q:()=>g,r:()=>O,s:()=>T,t:()=>r,u:()=>D,v:()=>M,w:()=>n,x:()=>d,y:()=>y});const v="data:image/svg+xml;utf8,",s="data:image/svg+xml;utf8,",m="data:image/svg+xml;utf8,",g="data:image/svg+xml;utf8,",l="data:image/svg+xml;utf8,",_="data:image/svg+xml;utf8,",u="data:image/svg+xml;utf8,",o="data:image/svg+xml;utf8,",n="data:image/svg+xml;utf8,",t="data:image/svg+xml;utf8,",e="data:image/svg+xml;utf8,",r="data:image/svg+xml;utf8,",i="data:image/svg+xml;utf8,",c="data:image/svg+xml;utf8,",a="data:image/svg+xml;utf8,",f="data:image/svg+xml;utf8,",d="data:image/svg+xml;utf8,",y="data:image/svg+xml;utf8,",D="data:image/svg+xml;utf8,",M="data:image/svg+xml;utf8,",O="data:image/svg+xml;utf8,",E="data:image/svg+xml;utf8,",P="data:image/svg+xml;utf8,",T="data:image/svg+xml;utf8,",A="data:image/svg+xml;utf8,"},243:(w,p,h)=>{h.d(p,{c:()=>g,g:()=>l});var v=h(8476),s=h(4920),m=h(4929);const g=(u,o,n)=>{let t,e;if(void 0!==v.w&&"MutationObserver"in v.w){const a=Array.isArray(o)?o:[o];t=new MutationObserver(f=>{for(const d of f)for(const y of d.addedNodes)if(y.nodeType===Node.ELEMENT_NODE&&a.includes(y.slot))return n(),void(0,s.r)(()=>r(y))}),t.observe(u,{childList:!0,subtree:!0})}const r=a=>{var f;e&&(e.disconnect(),e=void 0),e=new MutationObserver(d=>{n();for(const y of d)for(const D of y.removedNodes)D.nodeType===Node.ELEMENT_NODE&&D.slot===o&&c()}),e.observe(null!==(f=a.parentElement)&&void 0!==f?f:a,{subtree:!0,childList:!0})},c=()=>{e&&(e.disconnect(),e=void 0)};return{destroy:()=>{t&&(t.disconnect(),t=void 0),c()}}},l=(u,o,n)=>{const t=null==u?0:u.toString().length,e=_(t,o);if(void 0===n)return e;try{return n(t,o)}catch(r){return(0,m.a)("Exception in provided `counterFormatter`.",r),e}},_=(u,o)=>`${u} / ${o}`},1622:(w,p,h)=>{h.r(p),h.d(p,{KEYBOARD_DID_CLOSE:()=>l,KEYBOARD_DID_OPEN:()=>g,copyVisualViewport:()=>O,keyboardDidClose:()=>d,keyboardDidOpen:()=>a,keyboardDidResize:()=>f,resetKeyboardAssist:()=>t,setKeyboardClose:()=>c,setKeyboardOpen:()=>i,startKeyboardAssist:()=>e,trackViewportChanges:()=>M});var v=h(4379);h(8438),h(8476);const g="ionKeyboardDidShow",l="ionKeyboardDidHide";let u={},o={},n=!1;const t=()=>{u={},o={},n=!1},e=E=>{if(v.K.getEngine())r(E);else{if(!E.visualViewport)return;o=O(E.visualViewport),E.visualViewport.onresize=()=>{M(E),a()||f(E)?i(E):d(E)&&c(E)}}},r=E=>{E.addEventListener("keyboardDidShow",P=>i(E,P)),E.addEventListener("keyboardDidHide",()=>c(E))},i=(E,P)=>{y(E,P),n=!0},c=E=>{D(E),n=!1},a=()=>!n&&u.width===o.width&&(u.height-o.height)*o.scale>150,f=E=>n&&!d(E),d=E=>n&&o.height===E.innerHeight,y=(E,P)=>{const A=new CustomEvent(g,{detail:{keyboardHeight:P?P.keyboardHeight:E.innerHeight-o.height}});E.dispatchEvent(A)},D=E=>{const P=new CustomEvent(l);E.dispatchEvent(P)},M=E=>{u=Object.assign({},o),o=O(E.visualViewport)},O=E=>({width:Math.round(E.width),height:Math.round(E.height),offsetTop:E.offsetTop,offsetLeft:E.offsetLeft,pageTop:E.pageTop,pageLeft:E.pageLeft,scale:E.scale})},4379:(w,p,h)=>{h.d(p,{K:()=>g,a:()=>m});var v=h(8438),s=function(l){return l.Unimplemented="UNIMPLEMENTED",l.Unavailable="UNAVAILABLE",l}(s||{}),m=function(l){return l.Body="body",l.Ionic="ionic",l.Native="native",l.None="none",l}(m||{});const g={getEngine(){const l=(0,v.g)();if(null!=l&&l.isPluginAvailable("Keyboard"))return l.Plugins.Keyboard},getResizeMode(){const l=this.getEngine();return null!=l&&l.getResizeMode?l.getResizeMode().catch(_=>{if(_.code!==s.Unimplemented)throw _}):Promise.resolve(void 0)}}},4731:(w,p,h)=>{h.d(p,{c:()=>_});var v=h(467),s=h(8476),m=h(4379);const g=u=>{if(void 0===s.d||u===m.a.None||void 0===u)return null;const o=s.d.querySelector("ion-app");return null!=o?o:s.d.body},l=u=>{const o=g(u);return null===o?0:o.clientHeight},_=function(){var u=(0,v.A)(function*(o){let n,t,e,r;const i=function(){var y=(0,v.A)(function*(){const D=yield m.K.getResizeMode(),M=void 0===D?void 0:D.mode;n=()=>{void 0===r&&(r=l(M)),e=!0,c(e,M)},t=()=>{e=!1,c(e,M)},null==s.w||s.w.addEventListener("keyboardWillShow",n),null==s.w||s.w.addEventListener("keyboardWillHide",t)});return function(){return y.apply(this,arguments)}}(),c=(y,D)=>{o&&o(y,a(D))},a=y=>{if(0===r||r===l(y))return;const D=g(y);return null!==D?new Promise(M=>{const E=new ResizeObserver(()=>{D.clientHeight===r&&(E.disconnect(),M())});E.observe(D)}):void 0};return yield i(),{init:i,destroy:()=>{null==s.w||s.w.removeEventListener("keyboardWillShow",n),null==s.w||s.w.removeEventListener("keyboardWillHide",t),n=t=void 0},isKeyboardVisible:()=>e}});return function(n){return u.apply(this,arguments)}}()},7838:(w,p,h)=>{h.d(p,{c:()=>s});var v=h(467);const s=()=>{let m;return{lock:function(){var l=(0,v.A)(function*(){const _=m;let u;return m=new Promise(o=>u=o),void 0!==_&&(yield _),u});return function(){return l.apply(this,arguments)}}()}}},9001:(w,p,h)=>{h.d(p,{c:()=>m});var v=h(8476),s=h(4920);const m=(g,l,_)=>{let u;const o=()=>!(void 0===l()||void 0!==g.label||null===_()),t=()=>{const r=l();if(void 0===r)return;if(!o())return void r.style.removeProperty("width");const i=_().scrollWidth;if(0===i&&null===r.offsetParent&&void 0!==v.w&&"IntersectionObserver"in v.w){if(void 0!==u)return;const c=u=new IntersectionObserver(a=>{1===a[0].intersectionRatio&&(t(),c.disconnect(),u=void 0)},{threshold:.01,root:g});c.observe(r)}else r.style.setProperty("width",.75*i+"px")};return{calculateNotchWidth:()=>{o()&&(0,s.r)(()=>{t()})},destroy:()=>{u&&(u.disconnect(),u=void 0)}}}},7895:(w,p,h)=>{h.d(p,{S:()=>s});const s={bubbles:{dur:1e3,circles:9,fn:(m,g,l)=>{const _=m*g/l-m+"ms",u=2*Math.PI*g/l;return{r:5,style:{top:32*Math.sin(u)+"%",left:32*Math.cos(u)+"%","animation-delay":_}}}},circles:{dur:1e3,circles:8,fn:(m,g,l)=>{const _=g/l,u=m*_-m+"ms",o=2*Math.PI*_;return{r:5,style:{top:32*Math.sin(o)+"%",left:32*Math.cos(o)+"%","animation-delay":u}}}},circular:{dur:1400,elmDuration:!0,circles:1,fn:()=>({r:20,cx:48,cy:48,fill:"none",viewBox:"24 24 48 48",transform:"translate(0,0)",style:{}})},crescent:{dur:750,circles:1,fn:()=>({r:26,style:{}})},dots:{dur:750,circles:3,fn:(m,g)=>({r:6,style:{left:32-32*g+"%","animation-delay":-110*g+"ms"}})},lines:{dur:1e3,lines:8,fn:(m,g,l)=>({y1:14,y2:26,style:{transform:`rotate(${360/l*g+(g({y1:12,y2:20,style:{transform:`rotate(${360/l*g+(g({y1:17,y2:29,style:{transform:`rotate(${30*g+(g<6?180:-180)}deg)`,"animation-delay":m*g/l-m+"ms"}})},"lines-sharp-small":{dur:1e3,lines:12,fn:(m,g,l)=>({y1:12,y2:20,style:{transform:`rotate(${30*g+(g<6?180:-180)}deg)`,"animation-delay":m*g/l-m+"ms"}})}}},7166:(w,p,h)=>{h.r(p),h.d(p,{createSwipeBackGesture:()=>l});var v=h(4920),s=h(5083),m=h(8607);h(1970);const l=(_,u,o,n,t)=>{const e=_.ownerDocument.defaultView;let r=(0,s.i)(_);const c=D=>r?-D.deltaX:D.deltaX;return(0,m.createGesture)({el:_,gestureName:"goback-swipe",gesturePriority:101,threshold:10,canStart:D=>(r=(0,s.i)(_),(D=>{const{startX:O}=D;return r?O>=e.innerWidth-50:O<=50})(D)&&u()),onStart:o,onMove:D=>{const O=c(D)/e.innerWidth;n(O)},onEnd:D=>{const M=c(D),O=e.innerWidth,E=M/O,P=(D=>r?-D.velocityX:D.velocityX)(D),A=P>=0&&(P>.2||M>O/2),L=(A?1-E:E)*O;let C=0;if(L>5){const R=L/Math.abs(P);C=Math.min(R,540)}t(A,E<=0?.01:(0,v.j)(0,E,.9999),C)}})}},2935:(w,p,h)=>{h.d(p,{w:()=>v});const v=(g,l,_)=>{if(typeof MutationObserver>"u")return;const u=new MutationObserver(o=>{_(s(o,l))});return u.observe(g,{childList:!0,subtree:!0}),u},s=(g,l)=>{let _;return g.forEach(u=>{for(let o=0;o{if(1!==g.nodeType)return;const _=g;return(_.tagName===l.toUpperCase()?[_]:Array.from(_.querySelectorAll(l))).find(o=>o.value===_.value)}},385:(w,p,h)=>{h.d(p,{l:()=>m});var v=h(4438),s=h(7863);let m=(()=>{var g;class l{constructor(){this.title="Header Title"}ngOnInit(){}}return(g=l).\u0275fac=function(u){return new(u||g)},g.\u0275cmp=v.VBU({type:g,selectors:[["app-header"]],inputs:{title:"title"},decls:5,vars:2,consts:[[3,"translucent"],["slot","start","menu","menu-id"]],template:function(u,o){1&u&&(v.j41(0,"ion-header",0)(1,"ion-toolbar"),v.nrm(2,"ion-menu-button",1),v.j41(3,"ion-title"),v.EFF(4),v.k0s()()()),2&u&&(v.Y8G("translucent",!0),v.R7$(4),v.JRh(o.title))},dependencies:[s.eU,s.MC,s.BC,s.ai]}),l})()},6560:(w,p,h)=>{h.d(p,{x:()=>l});var v=h(467),s=h(4262),m=h(4438),g=h(1626);let l=(()=>{var _;class u{constructor(n,t){this.firestore=n,this.http=t,this.url_cpu="https://devprobeapi.onrender.com/flame_graph_date",this.url_mem="https://devprobeapi.onrender.com/flame_graph_memory_date"}getProducts(n){var t=this;return(0,v.A)(function*(){try{const e=(0,s.rJ)(t.firestore,"teams",n,"products");return(yield(0,s.GG)(e)).docs.map(i=>i.data())}catch(e){return console.log(e),[]}})()}getDates(n,t,e){var r=this;return(0,v.A)(function*(){try{e||(e="cpu_usage");const i=(0,s.rJ)(r.firestore,"teams",n,"products",t,e);return(yield(0,s.GG)(i)).docs.map(a=>a.id)}catch(i){return console.log(i),[]}})()}getFlameGraphByDate(n,t,e,r){var i=this;return(0,v.A)(function*(){try{let c={team:n,product:t,date:e};return r?yield i.http.post(i.url_mem,c).toPromise():yield i.http.post(i.url_cpu,c).toPromise()}catch{return{}}})()}}return(_=u).\u0275fac=function(n){return new(n||_)(m.KVO(s._7),m.KVO(g.Qq))},_.\u0275prov=m.jDH({token:_,factory:_.\u0275fac,providedIn:"root"}),u})()},201:(w,p,h)=>{h.d(p,{p:()=>l});var v=h(467),s=h(4262),m=h(4438),g=h(1626);let l=(()=>{var _;class u{constructor(n,t){this.firestore=n,this.httpClient=t,this.url="https://devprobeapi.onrender.com/"}syncRepo(n,t,e,r,i){var c=this;return(0,v.A)(function*(){const a=(0,s.H9)(c.firestore,"teams",n),f=yield(0,s.x7)(a);if(f.exists()){const d=f.data();d.gitHub={key:t,repo:e,branch:r,owner:i},yield(0,s.BN)(a,d)}})()}getSyncRepo(n){var t=this;return(0,v.A)(function*(){const e=(0,s.H9)(t.firestore,"teams",n),r=yield(0,s.x7)(e);return r.exists()?r.data().gitHub:null})()}getFiles(n){var t=this;return(0,v.A)(function*(){const e=yield t.httpClient.post(t.url+"github_repo",{auth:n.key,repo:n.repo,branch:n.branch,owner:n.owner}).toPromise();if(console.log(e),e){let r=e.paths;return r=r.filter(i=>!i.includes(".git")),r=r.filter(i=>!i.includes("node_modules")),r=r.filter(i=>!i.includes(".idea")),r=r.filter(i=>i.includes(".")),r}return[]})()}getContentFromFilePath(n,t){var e=this;return(0,v.A)(function*(){const r=yield e.httpClient.post(e.url+"github_file",{auth:n.key,repo:n.repo,owner:n.owner,path:t}).toPromise();return console.log(r),r?r.content:""})()}}return(_=u).\u0275fac=function(n){return new(n||_)(m.KVO(s._7),m.KVO(g.Qq))},_.\u0275prov=m.jDH({token:_,factory:_.\u0275fac,providedIn:"root"}),u})()},4624:(w,p,h)=>{h.d(p,{I:()=>g});var v=h(467),s=h(4262),m=h(4438);let g=(()=>{var l;class _{constructor(o){this.firestore=o}saveIncident(o,n,t,e){var r=this;return(0,v.A)(function*(){try{console.log(e);const i=(0,s.H9)(r.firestore,"teams",o,"products",n,"incident",t),c=yield(0,s.x7)(i);if(c.exists()){const a=c.data();return a.incidents.push({...e}),yield(0,s.BN)(i,a),!0}return console.log("No such document!"),yield(0,s.BN)(i,{incidents:[e]}),!0}catch(i){return console.log(i),!1}})()}getIncidents(o,n,t){var e=this;return(0,v.A)(function*(){const r=(0,s.H9)(e.firestore,"teams",o,"products",n,"incident",t),i=yield(0,s.x7)(r);if(i.exists()){let c=i.data();return console.log(c),c.incidents}return[]})()}updateIncident(o,n,t,e){var r=this;return(0,v.A)(function*(){const i=(0,s.H9)(r.firestore,"teams",o,"products",n,"incident",t),c=yield(0,s.x7)(i);if(c.exists()){const a=c.data();let f=a.incidents;console.log(f);for(let d=0;d<=f.length;d++)if(console.log(f[d].title),console.log(e.title),f[d].title===e.title)return console.log("found"),f[d]=e,yield(0,s.BN)(i,a),!0}return!1})()}}return(l=_).\u0275fac=function(o){return new(o||l)(m.KVO(s._7))},l.\u0275prov=m.jDH({token:l,factory:l.\u0275fac,providedIn:"root"}),_})()},3661:(w,p,h)=>{h.d(p,{e:()=>l});var v=h(467),s=h(4438),m=h(4262),g=h(1626);let l=(()=>{var _;class u{constructor(n,t){this.firestore=n,this.http=t,this.ipApiURL="https://cors-ea3m.onrender.com/http://ip-api.com/json/"}getLocationDestSrc(n){var t=this;return(0,v.A)(function*(){var e,r,i,c,a,f,d,y;if(!n)return n;const D=t.http.get(t.ipApiURL+n.dst_addr).toPromise(),M=t.http.get(t.ipApiURL+n.src_addr).toPromise(),O=yield D,E=yield M;return n.dst_city=null!==(e=O.city)&&void 0!==e?e:"No city found",n.dst_country=null!==(r=O.country)&&void 0!==r?r:"No country found",n.dst_latitude=null!==(i=O.lat)&&void 0!==i?i:0,n.dst_longitude=null!==(c=O.lon)&&void 0!==c?c:0,n.src_city=null!==(a=E.city)&&void 0!==a?a:"No city found",n.src_country=null!==(f=E.country)&&void 0!==f?f:"No country found",n.src_latitude=null!==(d=E.lat)&&void 0!==d?d:0,n.src_longitude=null!==(y=E.lon)&&void 0!==y?y:0,n})()}getLocationFrom(n){var t=this;return(0,v.A)(function*(){if(!n)return n;let e=n.result;for(let f=0;f{h.d(p,{N:()=>l});var v=h(467),s=h(4262),m=h(4438),g=h(1626);let l=(()=>{var _;class u{constructor(n,t){this.firestore=n,this.http=t,this.ipApiURL="https://cors-ea3m.onrender.com/http://ip-api.com/json/"}getLocation(n){var t=this;return(0,v.A)(function*(){console.log(n);const r=yield t.http.get(t.ipApiURL+n[0].dst_addr).toPromise();for(let a=0;at.http.get(t.ipApiURL+a.from).toPromise());return(yield Promise.all(i)).forEach((a,f)=>{n[f].fromLatitude=a.lat,n[f].fromLongitude=a.lon,n[f].cityFrom=a.city,n[f].countryFrom=a.country}),console.log(n),n})()}saveLocationResults(n,t,e,r){var i=this;return(0,v.A)(function*(){try{console.log(r,"ripeData");const c=(0,s.rJ)(i.firestore,"teams",n,"products",t,"ripe"),a=(0,s.H9)(c,e),f=r.map(d=>({from:d.from,dst_addr:d.dst_addr,latency:d.latency,cityFrom:d.cityFrom,countryFrom:d.countryFrom,cityTo:d.cityTo,countryTo:d.countryTo,fromLatitude:d.fromLatitude,fromLongitude:d.fromLongitude,toLatitude:d.toLatitude,toLongitude:d.toLongitude,id:d.id}));return yield(0,s.BN)(a,{data:f}),console.log("Data saved",{data:f}),!0}catch(c){return console.log(c),!1}})()}}return(_=u).\u0275fac=function(n){return new(n||_)(m.KVO(s._7),m.KVO(g.Qq))},_.\u0275prov=m.jDH({token:_,factory:_.\u0275fac,providedIn:"root"}),u})()},6241:(w,p,h)=>{h.d(p,{b:()=>g});var v=h(467),s=h(4262),m=h(4438);let g=(()=>{var l;class _{constructor(o){this.firestore=o}addProduct(o,n){var t=this;return(0,v.A)(function*(){try{console.log(o);const e=(0,s.H9)(t.firestore,"teams",n,"products",o.productObjective);return yield(0,s.BN)(e,o),!0}catch(e){return console.log(e),!1}})()}getProducts(o){var n=this;return(0,v.A)(function*(){try{const t=(0,s.rJ)(n.firestore,"teams",o,"products");return(yield(0,s.GG)(t)).docs.map(r=>r.data())}catch(t){return console.log(t),[]}})()}removeProduct(o,n){var t=this;return(0,v.A)(function*(){try{const e=(0,s.H9)(t.firestore,"teams",o,"products",n);return yield(0,s.kd)(e),!0}catch(e){return console.log(e),!1}})()}}return(l=_).\u0275fac=function(o){return new(o||l)(m.KVO(s._7))},l.\u0275prov=m.jDH({token:l,factory:l.\u0275fac,providedIn:"root"}),_})()},2588:(w,p,h)=>{h.d(p,{N:()=>l});var v=h(467),s=h(4262),m=h(4438),g=h(1626);let l=(()=>{var _;class u{constructor(n,t){this.http=n,this.firestore=t,this.measurementsUrl="https://cors-ea3m.onrender.com/https://atlas.ripe.net/api/v2/measurements/",this.measurementID=""}sendTraceRequest(n,t,e,r){var i=this;return(0,v.A)(function*(){console.log("Sending trace request");try{let c={definitions:[{target:n,description:t,type:e,af:4,is_oneoff:!0,protocol:"TCP"}],probes:[]};console.log(r);let a=r.split(",").length-1,f=(r=r.slice(0,-1)).split(","),d=[];for(let M=0;M({id:i.measurementID,dst_addr:d.dst_addr,dst_city:d.dst_city,dst_country:d.dst_country,dst_latitude:d.dst_latitude,dst_longitude:d.dst_longitude,src_addr:d.src_addr,src_city:d.src_city,src_country:d.src_country,src_latitude:d.src_latitude,src_longitude:d.src_longitude,result:d.result}));return yield(0,s.BN)(a,{data:f}),!0}catch(c){return console.log(c),!1}})()}getHistoryResults(n,t){var e=this;return(0,v.A)(function*(){const i=(0,s.rJ)(e.firestore,"teams/"+n+"/products/"+t+"/ripe_trace"),c=yield(0,s.GG)(i);let a=[];return c.docs.forEach(f=>{a.push({id:f.id,data:f.data()})}),console.log(a),a})()}getAllResultsByDescription(n,t,e){var r=this;return(0,v.A)(function*(){try{let i="teams/"+n+"/products/"+t+"/ripe_trace";console.log(i);let c=(0,s.H9)(r.firestore,i,e);return(yield(0,s.x7)(c)).data()}catch(i){return console.log(i),[]}})()}}return(_=u).\u0275fac=function(n){return new(n||_)(m.KVO(g.Qq),m.KVO(s._7))},_.\u0275prov=m.jDH({token:_,factory:_.\u0275fac,providedIn:"root"}),u})()},9640:(w,p,h)=>{h.d(p,{Q:()=>_});var v=h(467),s=h(1985),m=h(4262),g=h(4438),l=h(1626);let _=(()=>{var u;class o{constructor(t,e){this.http=t,this.firestore=e,this.measurementsUrl="https://cors-ea3m.onrender.com/https://atlas.ripe.net/api/v2/measurements/",this.measurementID=""}sendMeasurementRequest(t,e,r,i){var c=this;return(0,v.A)(function*(){let a=i.split(",").length-1;i=i.slice(0,-1);try{let f={definitions:[{target:t,description:"ping",type:"ping",af:4,is_oneoff:!0}],probes:[{requested:a,type:"probes",value:i}]},d={Authorization:"Key 92530695-134f-4cbc-b7c3-ec130f3719b0"};console.log(f);let y=yield c.http.post(c.measurementsUrl,f,{headers:d}).toPromise();return console.log(y),c.measurementID=y.measurements[0],c.measurementID}catch(f){return console.log(f),!1}})()}getMeasurementResults(t){var e=this;return(0,v.A)(function*(){t&&(e.measurementID=t);try{let r={Authorization:"Key 92530695-134f-4cbc-b7c3-ec130f3719b0"};return""===e.measurementID?(console.log("No measurement ID"),!1):e.http.get(e.measurementsUrl+e.measurementID+"/results/",{headers:r})}catch(r){return console.log(r),new s.c}})()}saveMeasurementResults(t,e,r,i){var c=this;return(0,v.A)(function*(){try{const a=(0,m.rJ)(c.firestore,"teams",t,"products",e,"ripe"),f=(0,m.H9)(a,r),d=i.map((y,D)=>({id:c.measurementID,from:y.from,dst_addr:y.dst_addr,latency:y.latency}));return yield(0,m.BN)(f,{data:d}),!0}catch(a){return console.log(a),!1}})()}getAllResultsByDescription(t,e,r){var i=this;return(0,v.A)(function*(){try{let c="teams/"+t+"/products/"+e+"/ripe";console.log(c);let a=(0,m.H9)(i.firestore,c,r);return(yield(0,m.x7)(a)).data()}catch(c){return console.log(c),[]}})()}getHistoryResults(t,e){var r=this;return(0,v.A)(function*(){const c=(0,m.rJ)(r.firestore,"teams/"+t+"/products/"+e+"/ripe"),a=yield(0,m.GG)(c);let f=[];return a.docs.forEach(d=>{f.push({id:d.id,data:d.data()})}),console.log(f),f})()}deleteHistory(t,e,r){var i=this;return(0,v.A)(function*(){const a=(0,m.H9)(i.firestore,"teams/"+t+"/products/"+e+"/ripe",r);try{return yield(0,m.kd)(a),!0}catch(f){return console.log(f),!1}})()}}return(u=o).\u0275fac=function(t){return new(t||u)(g.KVO(l.Qq),g.KVO(m._7))},u.\u0275prov=g.jDH({token:u,factory:u.\u0275fac,providedIn:"root"}),o})()},9536:(w,p,h)=>{h.d(p,{Q:()=>g});var v=h(467),s=h(4262),m=h(4438);let g=(()=>{var l;class _{constructor(o){this.firestore=o}addSystemTest(o,n,t,e){var r=this;return(0,v.A)(function*(){const i=(0,s.H9)(r.firestore,"teams",o,"products",n,"software_testing","integration_tests"),c=yield(0,s.x7)(i);if(c.exists()){const a=c.data();if(!a[t])return a[t]=[e],yield(0,s.BN)(i,a),void console.log("Document created with ID: ",i.id);a[t].push(e),yield(0,s.BN)(i,a),console.log("Document updated with ID: ",c.id)}else console.log("No such document!"),yield(0,s.BN)(i,{[t]:[e]}),console.log("Document created with ID: ",i.id)})()}getIntegrationTests(o,n,t){var e=this;return(0,v.A)(function*(){const r=(0,s.H9)(e.firestore,"teams",o,"products",n,"software_testing","integration_tests"),i=yield(0,s.x7)(r);return i.exists()?i.data()[t]:[]})()}updateIntegrationTestState(o,n,t,e,r){var i=this;return(0,v.A)(function*(){const c=(0,s.H9)(i.firestore,"teams",o,"products",n,"software_testing","integration_tests"),a=yield(0,s.x7)(c);if(a.exists()){const f=a.data();for(let d=0;d{h.d(p,{h:()=>g});var v=h(467),s=h(4262),m=h(4438);let g=(()=>{var l;class _{constructor(o){this.firestore=o}addSystemTest(o,n,t,e){var r=this;return(0,v.A)(function*(){const i=(0,s.H9)(r.firestore,"teams",o,"products",n,"software_testing","system_tests"),c=yield(0,s.x7)(i);if(c.exists()){const a=c.data();if(!a[t])return a[t]=[e],yield(0,s.BN)(i,a),void console.log("Document created with ID: ",i.id);a[t].push(e),yield(0,s.BN)(i,a),console.log("Document updated with ID: ",c.id)}else console.log("No such document!"),yield(0,s.BN)(i,{[t]:[e]}),console.log("Document created with ID: ",i.id)})()}getSystemTest(o,n,t){var e=this;return(0,v.A)(function*(){const r=(0,s.H9)(e.firestore,"teams",o,"products",n,"software_testing","system_tests"),i=yield(0,s.x7)(r);return i.exists()?i.data()[t]:[]})()}saveSystemTest(o,n,t,e){var r=this;return(0,v.A)(function*(){const i=(0,s.H9)(r.firestore,"teams",o,"products",n,"software_testing","system_tests_history"),c=new Date,a=`${c.getFullYear()}-${c.getMonth()+1}-${c.getDate()} ${c.getHours()}:${c.getMinutes()}:${c.getSeconds()}`;console.log(a);const f=yield(0,s.x7)(i);if(f.exists()){let d=f.data();d[a]={systemTest:e},d[a].productStep=t,yield(0,s.BN)(i,d)}else yield(0,s.BN)(i,{[a]:{systemTest:e,productStep:t}})})()}getSystemTestHistoryByStep(o,n,t){var e=this;return(0,v.A)(function*(){const r=(0,s.H9)(e.firestore,"teams",o,"products",n,"software_testing","system_tests_history"),i=yield(0,s.x7)(r);if(i.exists()){const c=i.data();return Object.keys(c).filter(f=>c[f].productStep===t).map(f=>c[f].systemTest)}return[]})()}getSystemTestHistoryByTitle(o,n,t,e){var r=this;return(0,v.A)(function*(){const i=(0,s.H9)(r.firestore,"teams",o,"products",n,"software_testing","system_tests_history"),c=yield(0,s.x7)(i);let a=[];if(c.exists()){const f=c.data();for(let d in f)f[d].systemTest.title===e&&f[d].productStep===t&&a.push({timestamp:d,systemTest:f[d].systemTest})}return a})()}getSystemTestByTimestamp(o,n,t,e,r){var i=this;return(0,v.A)(function*(){const c=(0,s.H9)(i.firestore,"teams",o,"products",n,"software_testing","system_tests_history"),a=yield(0,s.x7)(c);if(a.exists()){const f=a.data();for(let d in f)if(f[d].systemTest.title===e&&d===r&&f[d].productStep===t)return f[d].systemTest}return{}})()}deleteSystemTestHistoryByKey(o,n,t,e,r){var i=this;return(0,v.A)(function*(){const c=(0,s.H9)(i.firestore,"teams",o,"products",n,"software_testing","system_tests_history"),a=yield(0,s.x7)(c);if(a.exists()){const f=a.data();for(let d in f)f[d].systemTest.title===e&&d===r&&f[d].productStep===t&&delete f[d];yield(0,s.BN)(c,f)}})()}getSystemTestHistory(o,n){var t=this;return(0,v.A)(function*(){const e=(0,s.H9)(t.firestore,"teams",o,"products",n,"software_testing","system_tests_history"),r=yield(0,s.x7)(e);return r.exists()?r.data():{}})()}deleteSystemTest(o,n,t,e){var r=this;return(0,v.A)(function*(){let i=(0,s.H9)(r.firestore,"teams",o,"products",n,"software_testing","system_tests"),c=yield(0,s.x7)(i);if(c.exists()){let a=c.data();a[t]=a[t].filter(f=>f.title!==e.title),yield(0,s.BN)(i,a)}if(i=(0,s.H9)(r.firestore,"teams",o,"products",n,"software_testing","system_tests_history"),c=yield(0,s.x7)(i),c.exists()){let a=c.data();for(let f in a)console.log(a[f].systemTest.title),a[f].systemTest.title===e.title&&delete a[f];yield(0,s.BN)(i,a)}})()}}return(l=_).\u0275fac=function(o){return new(o||l)(m.KVO(s._7))},l.\u0275prov=m.jDH({token:l,factory:l.\u0275fac,providedIn:"root"}),_})()},1854:(w,p,h)=>{h.d(p,{I:()=>g});var v=h(467),s=h(4262),m=h(4438);let g=(()=>{var l;class _{constructor(o){this.firestore=o}addUnitTest(o,n,t,e){var r=this;return(0,v.A)(function*(){const i=(0,s.H9)(r.firestore,"teams",o,"products",n,"software_testing","unit_tests"),c=yield(0,s.x7)(i);if(c.exists()){let a=c.data();if(!a[t])return a[t]=[e],yield(0,s.BN)(i,a),void console.log("Document created with ID: ",i.id);for(let f=0;f - + - + diff --git a/www/main.828b48b08bb3175e.js b/www/main.828b48b08bb3175e.js new file mode 100644 index 0000000..b0be284 --- /dev/null +++ b/www/main.828b48b08bb3175e.js @@ -0,0 +1 @@ +(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8792],{1076:(Pn,It,C)=>{"use strict";C.d(It,{Am:()=>En,FA:()=>Ve,Fy:()=>_e,I9:()=>Fr,Im:()=>dr,Ku:()=>pt,T9:()=>At,Tj:()=>zt,Uj:()=>tt,XA:()=>Ie,ZQ:()=>$e,bD:()=>Lt,cY:()=>Ze,eX:()=>X,g:()=>Ee,hp:()=>Vn,jZ:()=>Le,lT:()=>st,lV:()=>Cn,nr:()=>Re,sr:()=>kt,tD:()=>In,u:()=>Se,yU:()=>Tt,zW:()=>G});const ke=function(de){const Ae=[];let Ge=0;for(let $t=0;$t>6|192,Ae[Ge++]=63&le|128):55296==(64512&le)&&$t+1>18|240,Ae[Ge++]=le>>12&63|128,Ae[Ge++]=le>>6&63|128,Ae[Ge++]=63&le|128):(Ae[Ge++]=le>>12|224,Ae[Ge++]=le>>6&63|128,Ae[Ge++]=63&le|128)}return Ae},he={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(de,Ae){if(!Array.isArray(de))throw Error("encodeByteArray takes an array as a parameter");this.init_();const Ge=Ae?this.byteToCharMapWebSafe_:this.byteToCharMap_,$t=[];for(let le=0;le>6,hr=63&Tn;sn||(hr=64,ft||(wn=64)),$t.push(Ge[gt>>2],Ge[(3>)<<4|Qt>>4],Ge[wn],Ge[hr])}return $t.join("")},encodeString(de,Ae){return this.HAS_NATIVE_SUPPORT&&!Ae?btoa(de):this.encodeByteArray(ke(de),Ae)},decodeString(de,Ae){return this.HAS_NATIVE_SUPPORT&&!Ae?atob(de):function(de){const Ae=[];let Ge=0,$t=0;for(;Ge191&&le<224){const gt=de[Ge++];Ae[$t++]=String.fromCharCode((31&le)<<6|63>)}else if(le>239&&le<365){const sn=((7&le)<<18|(63&de[Ge++])<<12|(63&de[Ge++])<<6|63&de[Ge++])-65536;Ae[$t++]=String.fromCharCode(55296+(sn>>10)),Ae[$t++]=String.fromCharCode(56320+(1023&sn))}else{const gt=de[Ge++],ft=de[Ge++];Ae[$t++]=String.fromCharCode((15&le)<<12|(63>)<<6|63&ft)}}return Ae.join("")}(this.decodeStringToByteArray(de,Ae))},decodeStringToByteArray(de,Ae){this.init_();const Ge=Ae?this.charToByteMapWebSafe_:this.charToByteMap_,$t=[];for(let le=0;le>4),64!==Tn&&($t.push(Qt<<4&240|Tn>>2),64!==dn&&$t.push(Tn<<6&192|dn))}return $t},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let de=0;de=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(de)]=de,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(de)]=de)}}};class ae extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const tt=function(de){return function(de){const Ae=ke(de);return he.encodeByteArray(Ae,!0)}(de).replace(/\./g,"")},Se=function(de){try{return he.decodeString(de,!0)}catch(Ae){console.error("base64Decode failed: ",Ae)}return null},Dt=()=>{try{return function Ye(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const de=process.env.__FIREBASE_DEFAULTS__;return de?JSON.parse(de):void 0})()||(()=>{if(typeof document>"u")return;let de;try{de=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const Ae=de&&Se(de[1]);return Ae&&JSON.parse(Ae)})()}catch(de){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${de}`)}},zt=de=>{var Ae,Ge;return null===(Ge=null===(Ae=Dt())||void 0===Ae?void 0:Ae.emulatorHosts)||void 0===Ge?void 0:Ge[de]},Tt=de=>{const Ae=zt(de);if(!Ae)return;const Ge=Ae.lastIndexOf(":");if(Ge<=0||Ge+1===Ae.length)throw new Error(`Invalid host ${Ae} with no separate hostname and port!`);const $t=parseInt(Ae.substring(Ge+1),10);return"["===Ae[0]?[Ae.substring(1,Ge-1),$t]:[Ae.substring(0,Ge),$t]},At=()=>{var de;return null===(de=Dt())||void 0===de?void 0:de.config},Ie=de=>{var Ae;return null===(Ae=Dt())||void 0===Ae?void 0:Ae[`_${de}`]};class Ze{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((Ae,Ge)=>{this.resolve=Ae,this.reject=Ge})}wrapCallback(Ae){return(Ge,$t)=>{Ge?this.reject(Ge):this.resolve($t),"function"==typeof Ae&&(this.promise.catch(()=>{}),1===Ae.length?Ae(Ge):Ae(Ge,$t))}}}function _e(de,Ae){if(de.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const $t=Ae||"demo-project",le=de.iat||0,gt=de.sub||de.user_id;if(!gt)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const ft=Object.assign({iss:`https://securetoken.google.com/${$t}`,aud:$t,iat:le,exp:le+3600,auth_time:le,sub:gt,user_id:gt,firebase:{sign_in_provider:"custom",identities:{}}},de);return[tt(JSON.stringify({alg:"none",type:"JWT"})),tt(JSON.stringify(ft)),""].join(".")}function $e(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function Le(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test($e())}function kt(){const de="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof de&&void 0!==de.id}function Cn(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function st(){const de=$e();return de.indexOf("MSIE ")>=0||de.indexOf("Trident/")>=0}function Re(){return!function Oe(){var de;const Ae=null===(de=Dt())||void 0===de?void 0:de.forceEnvironment;if("node"===Ae)return!0;if("browser"===Ae)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function G(){try{return"object"==typeof indexedDB}catch{return!1}}function X(){return new Promise((de,Ae)=>{try{let Ge=!0;const $t="validate-browser-context-for-indexeddb-analytics-module",le=self.indexedDB.open($t);le.onsuccess=()=>{le.result.close(),Ge||self.indexedDB.deleteDatabase($t),de(!0)},le.onupgradeneeded=()=>{Ge=!1},le.onerror=()=>{var gt;Ae((null===(gt=le.error)||void 0===gt?void 0:gt.message)||"")}}catch(Ge){Ae(Ge)}})}class Ee extends Error{constructor(Ae,Ge,$t){super(Ge),this.code=Ae,this.customData=$t,this.name="FirebaseError",Object.setPrototypeOf(this,Ee.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Ve.prototype.create)}}class Ve{constructor(Ae,Ge,$t){this.service=Ae,this.serviceName=Ge,this.errors=$t}create(Ae,...Ge){const $t=Ge[0]||{},le=`${this.service}/${Ae}`,gt=this.errors[Ae],ft=gt?function ut(de,Ae){return de.replace(fn,(Ge,$t)=>{const le=Ae[$t];return null!=le?String(le):`<${$t}?>`})}(gt,$t):"Error";return new Ee(le,`${this.serviceName}: ${ft} (${le}).`,$t)}}const fn=/\{\$([^}]+)}/g;function dr(de){for(const Ae in de)if(Object.prototype.hasOwnProperty.call(de,Ae))return!1;return!0}function Lt(de,Ae){if(de===Ae)return!0;const Ge=Object.keys(de),$t=Object.keys(Ae);for(const le of Ge){if(!$t.includes(le))return!1;const gt=de[le],ft=Ae[le];if(Xt(gt)&&Xt(ft)){if(!Lt(gt,ft))return!1}else if(gt!==ft)return!1}for(const le of $t)if(!Ge.includes(le))return!1;return!0}function Xt(de){return null!==de&&"object"==typeof de}function En(de){const Ae=[];for(const[Ge,$t]of Object.entries(de))Array.isArray($t)?$t.forEach(le=>{Ae.push(encodeURIComponent(Ge)+"="+encodeURIComponent(le))}):Ae.push(encodeURIComponent(Ge)+"="+encodeURIComponent($t));return Ae.length?"&"+Ae.join("&"):""}function Fr(de){const Ae={};return de.replace(/^\?/,"").split("&").forEach($t=>{if($t){const[le,gt]=$t.split("=");Ae[decodeURIComponent(le)]=decodeURIComponent(gt)}}),Ae}function Vn(de){const Ae=de.indexOf("?");if(!Ae)return"";const Ge=de.indexOf("#",Ae);return de.substring(Ae,Ge>0?Ge:void 0)}function In(de,Ae){const Ge=new on(de,Ae);return Ge.subscribe.bind(Ge)}class on{constructor(Ae,Ge){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=Ge,this.task.then(()=>{Ae(this)}).catch($t=>{this.error($t)})}next(Ae){this.forEachObserver(Ge=>{Ge.next(Ae)})}error(Ae){this.forEachObserver(Ge=>{Ge.error(Ae)}),this.close(Ae)}complete(){this.forEachObserver(Ae=>{Ae.complete()}),this.close()}subscribe(Ae,Ge,$t){let le;if(void 0===Ae&&void 0===Ge&&void 0===$t)throw new Error("Missing Observer.");le=function br(de,Ae){if("object"!=typeof de||null===de)return!1;for(const Ge of Ae)if(Ge in de&&"function"==typeof de[Ge])return!0;return!1}(Ae,["next","error","complete"])?Ae:{next:Ae,error:Ge,complete:$t},void 0===le.next&&(le.next=Vr),void 0===le.error&&(le.error=Vr),void 0===le.complete&&(le.complete=Vr);const gt=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?le.error(this.finalError):le.complete()}catch{}}),this.observers.push(le),gt}unsubscribeOne(Ae){void 0===this.observers||void 0===this.observers[Ae]||(delete this.observers[Ae],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(Ae){if(!this.finalized)for(let Ge=0;Ge{if(void 0!==this.observers&&void 0!==this.observers[Ae])try{Ge(this.observers[Ae])}catch($t){typeof console<"u"&&console.error&&console.error($t)}})}close(Ae){this.finalized||(this.finalized=!0,void 0!==Ae&&(this.finalError=Ae),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Vr(){}function pt(de){return de&&de._delegate?de._delegate:de}},4442:(Pn,It,C)=>{"use strict";C.d(It,{L:()=>$,a:()=>he,b:()=>ae,c:()=>Xe,d:()=>tt,g:()=>vt}),C(5531);const $="ionViewWillEnter",he="ionViewDidEnter",ae="ionViewWillLeave",Xe="ionViewDidLeave",tt="ionViewWillUnload",vt=Re=>Re.classList.contains("ion-page")?Re:Re.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||Re},5531:(Pn,It,C)=>{"use strict";C.d(It,{a:()=>Se,c:()=>c,g:()=>tt});class h{constructor(){this.m=new Map}reset(Re){this.m=new Map(Object.entries(Re))}get(Re,G){const X=this.m.get(Re);return void 0!==X?X:G}getBoolean(Re,G=!1){const X=this.m.get(Re);return void 0===X?G:"string"==typeof X?"true"===X:!!X}getNumber(Re,G){const X=parseFloat(this.m.get(Re));return isNaN(X)?void 0!==G?G:NaN:X}set(Re,G){this.m.set(Re,G)}}const c=new h,tt=vt=>be(vt),Se=(vt,Re)=>("string"==typeof vt&&(Re=vt,vt=void 0),tt(vt).includes(Re)),be=(vt=window)=>{if(typeof vt>"u")return[];vt.Ionic=vt.Ionic||{};let Re=vt.Ionic.platforms;return null==Re&&(Re=vt.Ionic.platforms=et(vt),Re.forEach(G=>vt.document.documentElement.classList.add(`plt-${G}`))),Re},et=vt=>{const Re=c.get("platform");return Object.keys(Cn).filter(G=>{const X=null==Re?void 0:Re[G];return"function"==typeof X?X(vt):Cn[G](vt)})},Ye=vt=>!!(Ct(vt,/iPad/i)||Ct(vt,/Macintosh/i)&&At(vt)),xt=vt=>Ct(vt,/android|sink/i),At=vt=>kt(vt,"(any-pointer:coarse)"),Ze=vt=>_e(vt)||$e(vt),_e=vt=>!!(vt.cordova||vt.phonegap||vt.PhoneGap),$e=vt=>{const Re=vt.Capacitor;return!(null==Re||!Re.isNative)},Ct=(vt,Re)=>Re.test(vt.navigator.userAgent),kt=(vt,Re)=>{var G;return null===(G=vt.matchMedia)||void 0===G?void 0:G.call(vt,Re).matches},Cn={ipad:Ye,iphone:vt=>Ct(vt,/iPhone/i),ios:vt=>Ct(vt,/iPhone|iPod/i)||Ye(vt),android:xt,phablet:vt=>{const Re=vt.innerWidth,G=vt.innerHeight,X=Math.min(Re,G),ce=Math.max(Re,G);return X>390&&X<520&&ce>620&&ce<800},tablet:vt=>{const Re=vt.innerWidth,G=vt.innerHeight,X=Math.min(Re,G),ce=Math.max(Re,G);return Ye(vt)||(vt=>xt(vt)&&!Ct(vt,/mobile/i))(vt)||X>460&&X<820&&ce>780&&ce<1400},cordova:_e,capacitor:$e,electron:vt=>Ct(vt,/electron/i),pwa:vt=>{var Re;return!!(null!==(Re=vt.matchMedia)&&void 0!==Re&&Re.call(vt,"(display-mode: standalone)").matches||vt.navigator.standalone)},mobile:At,mobileweb:vt=>At(vt)&&!Ze(vt),desktop:vt=>!At(vt),hybrid:Ze}},9986:(Pn,It,C)=>{"use strict";C.d(It,{c:()=>he});var h=C(8476);let c;const ke=(ae,Xe,tt)=>{const Se=Xe.startsWith("animation")?(ae=>(void 0===c&&(c=void 0===ae.style.animationName&&void 0!==ae.style.webkitAnimationName?"-webkit-":""),c))(ae):"";ae.style.setProperty(Se+Xe,tt)},$=(ae=[],Xe)=>{if(void 0!==Xe){const tt=Array.isArray(Xe)?Xe:[Xe];return[...ae,...tt]}return ae},he=ae=>{let Xe,tt,Se,be,et,it,Dt,Le,Oe,Ct,st,Ye=[],at=[],mt=[],xt=!1,zt={},Tt=[],At=[],Ie={},Ze=0,_e=!1,$e=!1,kt=!0,Cn=!1,Et=!0,cn=!1;const vt=ae,Re=[],G=[],X=[],ce=[],ue=[],Ee=[],Ve=[],ut=[],fn=[],xn=[],un=[],Je="function"==typeof AnimationEffect||void 0!==h.w&&"function"==typeof h.w.AnimationEffect,Sn="function"==typeof Element&&"function"==typeof Element.prototype.animate&&Je,kn=()=>un,dr=(O,re)=>{const we=re.findIndex(We=>We.c===O);we>-1&&re.splice(we,1)},Lt=(O,re)=>((null!=re&&re.oneTimeCallback?G:Re).push({c:O,o:re}),st),yn=()=>{Sn&&(un.forEach(O=>{O.cancel()}),un.length=0)},En=()=>{Ee.forEach(O=>{null!=O&&O.parentNode&&O.parentNode.removeChild(O)}),Ee.length=0},Tr=()=>void 0!==et?et:Dt?Dt.getFill():"both",yr=()=>void 0!==Le?Le:void 0!==it?it:Dt?Dt.getDirection():"normal",Br=()=>_e?"linear":void 0!==Se?Se:Dt?Dt.getEasing():"linear",ar=()=>$e?0:void 0!==Oe?Oe:void 0!==tt?tt:Dt?Dt.getDuration():0,Lr=()=>void 0!==be?be:Dt?Dt.getIterations():1,li=()=>void 0!==Ct?Ct:void 0!==Xe?Xe:Dt?Dt.getDelay():0,sn=()=>{0!==Ze&&(Ze--,0===Ze&&((()=>{fn.forEach(St=>St()),xn.forEach(St=>St());const O=kt?1:0,re=Tt,we=At,We=Ie;ce.forEach(St=>{const nn=St.classList;re.forEach(rn=>nn.add(rn)),we.forEach(rn=>nn.remove(rn));for(const rn in We)We.hasOwnProperty(rn)&&ke(St,rn,We[rn])}),Oe=void 0,Le=void 0,Ct=void 0,Re.forEach(St=>St.c(O,st)),G.forEach(St=>St.c(O,st)),G.length=0,Et=!0,kt&&(Cn=!0),kt=!0})(),Dt&&Dt.animationFinish()))},Xn=()=>{(()=>{Ve.forEach(We=>We()),ut.forEach(We=>We());const O=at,re=mt,we=zt;ce.forEach(We=>{const St=We.classList;O.forEach(nn=>St.add(nn)),re.forEach(nn=>St.remove(nn));for(const nn in we)we.hasOwnProperty(nn)&&ke(We,nn,we[nn])})})(),Ye.length>0&&Sn&&(ce.forEach(O=>{const re=O.animate(Ye,{id:vt,delay:li(),duration:ar(),easing:Br(),iterations:Lr(),fill:Tr(),direction:yr()});re.pause(),un.push(re)}),un.length>0&&(un[0].onfinish=()=>{sn()})),xt=!0},dn=O=>{O=Math.min(Math.max(O,0),.9999),Sn&&un.forEach(re=>{re.currentTime=re.effect.getComputedTiming().delay+ar()*O,re.pause()})},wn=O=>{un.forEach(re=>{re.effect.updateTiming({delay:li(),duration:ar(),easing:Br(),iterations:Lr(),fill:Tr(),direction:yr()})}),void 0!==O&&dn(O)},hr=(O=!1,re=!0,we)=>(O&&ue.forEach(We=>{We.update(O,re,we)}),Sn&&wn(we),st),oi=()=>{xt&&(Sn?un.forEach(O=>{O.pause()}):ce.forEach(O=>{ke(O,"animation-play-state","paused")}),cn=!0)},Gt=O=>new Promise(re=>{null!=O&&O.sync&&($e=!0,Lt(()=>$e=!1,{oneTimeCallback:!0})),xt||Xn(),Cn&&(Sn&&(dn(0),wn()),Cn=!1),Et&&(Ze=ue.length+1,Et=!1);const we=()=>{dr(We,G),re()},We=()=>{dr(we,X),re()};Lt(We,{oneTimeCallback:!0}),((O,re)=>{X.push({c:O,o:{oneTimeCallback:!0}})})(we),ue.forEach(St=>{St.play()}),Sn?(un.forEach(O=>{O.play()}),(0===Ye.length||0===ce.length)&&sn()):sn(),cn=!1}),te=(O,re)=>{const we=Ye[0];return void 0===we||void 0!==we.offset&&0!==we.offset?Ye=[{offset:0,[O]:re},...Ye]:we[O]=re,st};return st={parentAnimation:Dt,elements:ce,childAnimations:ue,id:vt,animationFinish:sn,from:te,to:(O,re)=>{const we=Ye[Ye.length-1];return void 0===we||void 0!==we.offset&&1!==we.offset?Ye=[...Ye,{offset:1,[O]:re}]:we[O]=re,st},fromTo:(O,re,we)=>te(O,re).to(O,we),parent:O=>(Dt=O,st),play:Gt,pause:()=>(ue.forEach(O=>{O.pause()}),oi(),st),stop:()=>{ue.forEach(O=>{O.stop()}),xt&&(yn(),xt=!1),_e=!1,$e=!1,Et=!0,Le=void 0,Oe=void 0,Ct=void 0,Ze=0,Cn=!1,kt=!0,cn=!1,X.forEach(O=>O.c(0,st)),X.length=0},destroy:O=>(ue.forEach(re=>{re.destroy(O)}),(O=>{yn(),O&&En()})(O),ce.length=0,ue.length=0,Ye.length=0,Re.length=0,G.length=0,xt=!1,Et=!0,st),keyframes:O=>{const re=Ye!==O;return Ye=O,re&&(O=>{Sn&&kn().forEach(re=>{const we=re.effect;if(we.setKeyframes)we.setKeyframes(O);else{const We=new KeyframeEffect(we.target,O,we.getTiming());re.effect=We}})})(Ye),st},addAnimation:O=>{if(null!=O)if(Array.isArray(O))for(const re of O)re.parent(st),ue.push(re);else O.parent(st),ue.push(O);return st},addElement:O=>{if(null!=O)if(1===O.nodeType)ce.push(O);else if(O.length>=0)for(let re=0;re(et=O,hr(!0),st),direction:O=>(it=O,hr(!0),st),iterations:O=>(be=O,hr(!0),st),duration:O=>(!Sn&&0===O&&(O=1),tt=O,hr(!0),st),easing:O=>(Se=O,hr(!0),st),delay:O=>(Xe=O,hr(!0),st),getWebAnimations:kn,getKeyframes:()=>Ye,getFill:Tr,getDirection:yr,getDelay:li,getIterations:Lr,getEasing:Br,getDuration:ar,afterAddRead:O=>(fn.push(O),st),afterAddWrite:O=>(xn.push(O),st),afterClearStyles:(O=[])=>{for(const re of O)Ie[re]="";return st},afterStyles:(O={})=>(Ie=O,st),afterRemoveClass:O=>(At=$(At,O),st),afterAddClass:O=>(Tt=$(Tt,O),st),beforeAddRead:O=>(Ve.push(O),st),beforeAddWrite:O=>(ut.push(O),st),beforeClearStyles:(O=[])=>{for(const re of O)zt[re]="";return st},beforeStyles:(O={})=>(zt=O,st),beforeRemoveClass:O=>(mt=$(mt,O),st),beforeAddClass:O=>(at=$(at,O),st),onFinish:Lt,isRunning:()=>0!==Ze&&!cn,progressStart:(O=!1,re)=>(ue.forEach(we=>{we.progressStart(O,re)}),oi(),_e=O,xt||Xn(),hr(!1,!0,re),st),progressStep:O=>(ue.forEach(re=>{re.progressStep(O)}),dn(O),st),progressEnd:(O,re,we)=>(_e=!1,ue.forEach(We=>{We.progressEnd(O,re,we)}),void 0!==we&&(Oe=we),Cn=!1,kt=!0,0===O?(Le="reverse"===yr()?"normal":"reverse","reverse"===Le&&(kt=!1),Sn?(hr(),dn(1-re)):(Ct=(1-re)*ar()*-1,hr(!1,!1))):1===O&&(Sn?(hr(),dn(re)):(Ct=re*ar()*-1,hr(!1,!1))),void 0!==O&&!Dt&&Gt(),st)}}},464:(Pn,It,C)=>{"use strict";C.d(It,{E:()=>Se,a:()=>h,s:()=>Xe});const h=be=>{try{if(be instanceof ae)return be.value;if(!ke()||"string"!=typeof be||""===be)return be;if(be.includes("onload="))return"";const et=document.createDocumentFragment(),it=document.createElement("div");et.appendChild(it),it.innerHTML=be,he.forEach(xt=>{const Dt=et.querySelectorAll(xt);for(let zt=Dt.length-1;zt>=0;zt--){const Tt=Dt[zt];Tt.parentNode?Tt.parentNode.removeChild(Tt):et.removeChild(Tt);const At=Z(Tt);for(let Ie=0;Ie{if(be.nodeType&&1!==be.nodeType)return;if(typeof NamedNodeMap<"u"&&!(be.attributes instanceof NamedNodeMap))return void be.remove();for(let it=be.attributes.length-1;it>=0;it--){const Ye=be.attributes.item(it),at=Ye.name;if(!$.includes(at.toLowerCase())){be.removeAttribute(at);continue}const mt=Ye.value,xt=be[at];(null!=mt&&mt.toLowerCase().includes("javascript:")||null!=xt&&xt.toLowerCase().includes("javascript:"))&&be.removeAttribute(at)}const et=Z(be);for(let it=0;itnull!=be.children?be.children:be.childNodes,ke=()=>{var be;const et=window,it=null===(be=null==et?void 0:et.Ionic)||void 0===be?void 0:be.config;return!it||(it.get?it.get("sanitizerEnabled",!0):!0===it.sanitizerEnabled||void 0===it.sanitizerEnabled)},$=["class","id","href","src","name","slot"],he=["script","style","iframe","meta","link","object","embed"];class ae{constructor(et){this.value=et}}const Xe=be=>{const et=window,it=et.Ionic;if(!it||!it.config||"Object"===it.config.constructor.name)return et.Ionic=et.Ionic||{},et.Ionic.config=Object.assign(Object.assign({},et.Ionic.config),be),et.Ionic.config},Se=!1},8621:(Pn,It,C)=>{"use strict";C.d(It,{C:()=>$,a:()=>Z,d:()=>ke});var h=C(467),c=C(4920);const Z=function(){var he=(0,h.A)(function*(ae,Xe,tt,Se,be,et){var it;if(ae)return ae.attachViewToDom(Xe,tt,be,Se);if(!(et||"string"==typeof tt||tt instanceof HTMLElement))throw new Error("framework delegate is missing");const Ye="string"==typeof tt?null===(it=Xe.ownerDocument)||void 0===it?void 0:it.createElement(tt):tt;return Se&&Se.forEach(at=>Ye.classList.add(at)),be&&Object.assign(Ye,be),Xe.appendChild(Ye),yield new Promise(at=>(0,c.c)(Ye,at)),Ye});return function(Xe,tt,Se,be,et,it){return he.apply(this,arguments)}}(),ke=(he,ae)=>{if(ae){if(he)return he.removeViewFromDom(ae.parentElement,ae);ae.remove()}return Promise.resolve()},$=()=>{let he,ae;return{attachViewToDom:function(){var Se=(0,h.A)(function*(be,et,it={},Ye=[]){var at,mt;let xt;if(he=be,et){const zt="string"==typeof et?null===(at=he.ownerDocument)||void 0===at?void 0:at.createElement(et):et;Ye.forEach(Tt=>zt.classList.add(Tt)),Object.assign(zt,it),he.appendChild(zt),xt=zt,yield new Promise(Tt=>(0,c.c)(zt,Tt))}else if(he.children.length>0&&("ION-MODAL"===he.tagName||"ION-POPOVER"===he.tagName)&&!(xt=he.children[0]).classList.contains("ion-delegate-host")){const Tt=null===(mt=he.ownerDocument)||void 0===mt?void 0:mt.createElement("div");Tt.classList.add("ion-delegate-host"),Ye.forEach(At=>Tt.classList.add(At)),Tt.append(...he.children),he.appendChild(Tt),xt=Tt}const Dt=document.querySelector("ion-app")||document.body;return ae=document.createComment("ionic teleport"),he.parentNode.insertBefore(ae,he),Dt.appendChild(he),null!=xt?xt:he});return function(et,it){return Se.apply(this,arguments)}}(),removeViewFromDom:()=>(he&&ae&&(ae.parentNode.insertBefore(he,ae),ae.remove()),Promise.resolve())}}},1970:(Pn,It,C)=>{"use strict";C.d(It,{B:()=>ke,G:()=>$});class c{constructor(ae,Xe,tt,Se,be){this.id=Xe,this.name=tt,this.disableScroll=be,this.priority=1e6*Se+Xe,this.ctrl=ae}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const ae=this.ctrl.capture(this.name,this.id,this.priority);return ae&&this.disableScroll&&this.ctrl.disableScroll(this.id),ae}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class Z{constructor(ae,Xe,tt,Se){this.id=Xe,this.disable=tt,this.disableScroll=Se,this.ctrl=ae}block(){if(this.ctrl){if(this.disable)for(const ae of this.disable)this.ctrl.disableGesture(ae,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const ae of this.disable)this.ctrl.enableGesture(ae,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const ke="backdrop-no-scroll",$=new class h{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(ae){var Xe;return new c(this,this.newID(),ae.name,null!==(Xe=ae.priority)&&void 0!==Xe?Xe:0,!!ae.disableScroll)}createBlocker(ae={}){return new Z(this,this.newID(),ae.disable,!!ae.disableScroll)}start(ae,Xe,tt){return this.canStart(ae)?(this.requestedStart.set(Xe,tt),!0):(this.requestedStart.delete(Xe),!1)}capture(ae,Xe,tt){if(!this.start(ae,Xe,tt))return!1;const Se=this.requestedStart;let be=-1e4;if(Se.forEach(et=>{be=Math.max(be,et)}),be===tt){this.capturedId=Xe,Se.clear();const et=new CustomEvent("ionGestureCaptured",{detail:{gestureName:ae}});return document.dispatchEvent(et),!0}return Se.delete(Xe),!1}release(ae){this.requestedStart.delete(ae),this.capturedId===ae&&(this.capturedId=void 0)}disableGesture(ae,Xe){let tt=this.disabledGestures.get(ae);void 0===tt&&(tt=new Set,this.disabledGestures.set(ae,tt)),tt.add(Xe)}enableGesture(ae,Xe){const tt=this.disabledGestures.get(ae);void 0!==tt&&tt.delete(Xe)}disableScroll(ae){this.disabledScroll.add(ae),1===this.disabledScroll.size&&document.body.classList.add(ke)}enableScroll(ae){this.disabledScroll.delete(ae),0===this.disabledScroll.size&&document.body.classList.remove(ke)}canStart(ae){return!(void 0!==this.capturedId||this.isDisabled(ae))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(ae){const Xe=this.disabledGestures.get(ae);return!!(Xe&&Xe.size>0)}newID(){return this.gestureId++,this.gestureId}}},6411:(Pn,It,C)=>{"use strict";C.r(It),C.d(It,{MENU_BACK_BUTTON_PRIORITY:()=>tt,OVERLAY_BACK_BUTTON_PRIORITY:()=>Xe,blockHardwareBackButton:()=>he,shouldUseCloseWatcher:()=>$,startHardwareBackButton:()=>ae});var h=C(467),c=C(8476),Z=C(3664);C(9672);const $=()=>Z.c.get("experimentalCloseWatcher",!1)&&void 0!==c.w&&"CloseWatcher"in c.w,he=()=>{document.addEventListener("backbutton",()=>{})},ae=()=>{const Se=document;let be=!1;const et=()=>{if(be)return;let it=0,Ye=[];const at=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(Dt,zt){Ye.push({priority:Dt,handler:zt,id:it++})}}});Se.dispatchEvent(at);const mt=function(){var Dt=(0,h.A)(function*(zt){try{if(null!=zt&&zt.handler){const Tt=zt.handler(xt);null!=Tt&&(yield Tt)}}catch(Tt){console.error(Tt)}});return function(Tt){return Dt.apply(this,arguments)}}(),xt=()=>{if(Ye.length>0){let Dt={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};Ye.forEach(zt=>{zt.priority>=Dt.priority&&(Dt=zt)}),be=!0,Ye=Ye.filter(zt=>zt.id!==Dt.id),mt(Dt).then(()=>be=!1)}};xt()};if($()){let it;const Ye=()=>{null==it||it.destroy(),it=new c.w.CloseWatcher,it.onclose=()=>{et(),Ye()}};Ye()}else Se.addEventListener("backbutton",et)},Xe=100,tt=99},4920:(Pn,It,C)=>{"use strict";C.d(It,{a:()=>Xe,b:()=>tt,c:()=>Z,d:()=>Ye,e:()=>zt,f:()=>it,g:()=>Se,h:()=>$,i:()=>ae,j:()=>at,k:()=>ke,l:()=>et,m:()=>mt,n:()=>Dt,o:()=>Tt,p:()=>xt,r:()=>be,s:()=>At,t:()=>h});const h=(Ie,Ze=0)=>new Promise(_e=>{c(Ie,Ze,_e)}),c=(Ie,Ze=0,_e)=>{let $e,Le;const Oe={passive:!0},kt=()=>{$e&&$e()},Cn=Et=>{(void 0===Et||Ie===Et.target)&&(kt(),_e(Et))};return Ie&&(Ie.addEventListener("webkitTransitionEnd",Cn,Oe),Ie.addEventListener("transitionend",Cn,Oe),Le=setTimeout(Cn,Ze+500),$e=()=>{void 0!==Le&&(clearTimeout(Le),Le=void 0),Ie.removeEventListener("webkitTransitionEnd",Cn,Oe),Ie.removeEventListener("transitionend",Cn,Oe)}),kt},Z=(Ie,Ze)=>{Ie.componentOnReady?Ie.componentOnReady().then(_e=>Ze(_e)):be(()=>Ze(Ie))},ke=Ie=>void 0!==Ie.componentOnReady,$=(Ie,Ze=[])=>{const _e={};return Ze.forEach($e=>{Ie.hasAttribute($e)&&(null!==Ie.getAttribute($e)&&(_e[$e]=Ie.getAttribute($e)),Ie.removeAttribute($e))}),_e},he=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],ae=(Ie,Ze)=>{let _e=he;return Ze&&Ze.length>0&&(_e=_e.filter($e=>!Ze.includes($e))),$(Ie,_e)},Xe=(Ie,Ze,_e,$e)=>{var Le;if(typeof window<"u"){const Oe=window,Ct=null===(Le=null==Oe?void 0:Oe.Ionic)||void 0===Le?void 0:Le.config;if(Ct){const kt=Ct.get("_ael");if(kt)return kt(Ie,Ze,_e,$e);if(Ct._ael)return Ct._ael(Ie,Ze,_e,$e)}}return Ie.addEventListener(Ze,_e,$e)},tt=(Ie,Ze,_e,$e)=>{var Le;if(typeof window<"u"){const Oe=window,Ct=null===(Le=null==Oe?void 0:Oe.Ionic)||void 0===Le?void 0:Le.config;if(Ct){const kt=Ct.get("_rel");if(kt)return kt(Ie,Ze,_e,$e);if(Ct._rel)return Ct._rel(Ie,Ze,_e,$e)}}return Ie.removeEventListener(Ze,_e,$e)},Se=(Ie,Ze=Ie)=>Ie.shadowRoot||Ze,be=Ie=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Ie):"function"==typeof requestAnimationFrame?requestAnimationFrame(Ie):setTimeout(Ie),et=Ie=>!!Ie.shadowRoot&&!!Ie.attachShadow,it=Ie=>{if(Ie.focus(),Ie.classList.contains("ion-focusable")){const Ze=Ie.closest("ion-app");Ze&&Ze.setFocus([Ie])}},Ye=(Ie,Ze,_e,$e,Le)=>{if(Ie||et(Ze)){let Oe=Ze.querySelector("input.aux-input");Oe||(Oe=Ze.ownerDocument.createElement("input"),Oe.type="hidden",Oe.classList.add("aux-input"),Ze.appendChild(Oe)),Oe.disabled=Le,Oe.name=_e,Oe.value=$e||""}},at=(Ie,Ze,_e)=>Math.max(Ie,Math.min(Ze,_e)),mt=(Ie,Ze)=>{if(!Ie){const _e="ASSERT: "+Ze;throw console.error(_e),new Error(_e)}},xt=Ie=>{if(Ie){const Ze=Ie.changedTouches;if(Ze&&Ze.length>0){const _e=Ze[0];return{x:_e.clientX,y:_e.clientY}}if(void 0!==Ie.pageX)return{x:Ie.pageX,y:Ie.pageY}}return{x:0,y:0}},Dt=Ie=>{const Ze="rtl"===document.dir;switch(Ie){case"start":return Ze;case"end":return!Ze;default:throw new Error(`"${Ie}" is not a valid value for [side]. Use "start" or "end" instead.`)}},zt=(Ie,Ze)=>{const _e=Ie._original||Ie;return{_original:Ie,emit:Tt(_e.emit.bind(_e),Ze)}},Tt=(Ie,Ze=0)=>{let _e;return(...$e)=>{clearTimeout(_e),_e=setTimeout(Ie,Ze,...$e)}},At=(Ie,Ze)=>{if(null!=Ie||(Ie={}),null!=Ze||(Ze={}),Ie===Ze)return!0;const _e=Object.keys(Ie);if(_e.length!==Object.keys(Ze).length)return!1;for(const $e of _e)if(!($e in Ze)||Ie[$e]!==Ze[$e])return!1;return!0}},5465:(Pn,It,C)=>{"use strict";C.d(It,{m:()=>it});var h=C(467),c=C(8476),Z=C(6411),ke=C(4929),$=C(4920),he=C(3664),ae=C(9986);const Xe=Ye=>(0,ae.c)().duration(Ye?400:300),tt=Ye=>{let at,mt;const xt=Ye.width+8,Dt=(0,ae.c)(),zt=(0,ae.c)();Ye.isEndSide?(at=xt+"px",mt="0px"):(at=-xt+"px",mt="0px"),Dt.addElement(Ye.menuInnerEl).fromTo("transform",`translateX(${at})`,`translateX(${mt})`);const At="ios"===(0,he.b)(Ye),Ie=At?.2:.25;return zt.addElement(Ye.backdropEl).fromTo("opacity",.01,Ie),Xe(At).addAnimation([Dt,zt])},Se=Ye=>{let at,mt;const xt=(0,he.b)(Ye),Dt=Ye.width;Ye.isEndSide?(at=-Dt+"px",mt=Dt+"px"):(at=Dt+"px",mt=-Dt+"px");const zt=(0,ae.c)().addElement(Ye.menuInnerEl).fromTo("transform",`translateX(${mt})`,"translateX(0px)"),Tt=(0,ae.c)().addElement(Ye.contentEl).fromTo("transform","translateX(0px)",`translateX(${at})`),At=(0,ae.c)().addElement(Ye.backdropEl).fromTo("opacity",.01,.32);return Xe("ios"===xt).addAnimation([zt,Tt,At])},be=Ye=>{const at=(0,he.b)(Ye),mt=Ye.width*(Ye.isEndSide?-1:1)+"px",xt=(0,ae.c)().addElement(Ye.contentEl).fromTo("transform","translateX(0px)",`translateX(${mt})`);return Xe("ios"===at).addAnimation(xt)},it=(()=>{const Ye=new Map,at=[],mt=function(){var X=(0,h.A)(function*(ce){const ue=yield Ze(ce,!0);return!!ue&&ue.open()});return function(ue){return X.apply(this,arguments)}}(),xt=function(){var X=(0,h.A)(function*(ce){const ue=yield void 0!==ce?Ze(ce,!0):_e();return void 0!==ue&&ue.close()});return function(ue){return X.apply(this,arguments)}}(),Dt=function(){var X=(0,h.A)(function*(ce){const ue=yield Ze(ce,!0);return!!ue&&ue.toggle()});return function(ue){return X.apply(this,arguments)}}(),zt=function(){var X=(0,h.A)(function*(ce,ue){const Ee=yield Ze(ue);return Ee&&(Ee.disabled=!ce),Ee});return function(ue,Ee){return X.apply(this,arguments)}}(),Tt=function(){var X=(0,h.A)(function*(ce,ue){const Ee=yield Ze(ue);return Ee&&(Ee.swipeGesture=ce),Ee});return function(ue,Ee){return X.apply(this,arguments)}}(),At=function(){var X=(0,h.A)(function*(ce){if(null!=ce){const ue=yield Ze(ce);return void 0!==ue&&ue.isOpen()}return void 0!==(yield _e())});return function(ue){return X.apply(this,arguments)}}(),Ie=function(){var X=(0,h.A)(function*(ce){const ue=yield Ze(ce);return!!ue&&!ue.disabled});return function(ue){return X.apply(this,arguments)}}(),Ze=function(){var X=(0,h.A)(function*(ce,ue=!1){if(yield G(),"start"===ce||"end"===ce){const Ve=at.filter(fn=>fn.side===ce&&!fn.disabled);if(Ve.length>=1)return Ve.length>1&&ue&&(0,ke.p)(`menuController queried for a menu on the "${ce}" side, but ${Ve.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,Ve.map(fn=>fn.el)),Ve[0].el;const ut=at.filter(fn=>fn.side===ce);if(ut.length>=1)return ut.length>1&&ue&&(0,ke.p)(`menuController queried for a menu on the "${ce}" side, but ${ut.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,ut.map(fn=>fn.el)),ut[0].el}else if(null!=ce)return Re(Ve=>Ve.menuId===ce);return Re(Ve=>!Ve.disabled)||(at.length>0?at[0].el:void 0)});return function(ue){return X.apply(this,arguments)}}(),_e=function(){var X=(0,h.A)(function*(){return yield G(),st()});return function(){return X.apply(this,arguments)}}(),$e=function(){var X=(0,h.A)(function*(){return yield G(),cn()});return function(){return X.apply(this,arguments)}}(),Le=function(){var X=(0,h.A)(function*(){return yield G(),vt()});return function(){return X.apply(this,arguments)}}(),Oe=(X,ce)=>{Ye.set(X,ce)},Cn=function(){var X=(0,h.A)(function*(ce,ue,Ee){if(vt())return!1;if(ue){const Ve=yield _e();Ve&&ce.el!==Ve&&(yield Ve.setOpen(!1,!1))}return ce._setOpen(ue,Ee)});return function(ue,Ee,Ve){return X.apply(this,arguments)}}(),st=()=>Re(X=>X._isOpen),cn=()=>at.map(X=>X.el),vt=()=>at.some(X=>X.isAnimating),Re=X=>{const ce=at.find(X);if(void 0!==ce)return ce.el},G=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(X=>new Promise(ce=>(0,$.c)(X,ce))));return Oe("reveal",be),Oe("push",Se),Oe("overlay",tt),null==c.d||c.d.addEventListener("ionBackButton",X=>{const ce=st();ce&&X.detail.register(Z.MENU_BACK_BUTTON_PRIORITY,()=>ce.close())}),{registerAnimation:Oe,get:Ze,getMenus:$e,getOpen:_e,isEnabled:Ie,swipeGesture:Tt,isAnimating:Le,isOpen:At,enable:zt,toggle:Dt,close:xt,open:mt,_getOpenSync:st,_createAnimation:(X,ce)=>{const ue=Ye.get(X);if(!ue)throw new Error("animation not registered");return ue(ce)},_register:X=>{at.indexOf(X)<0&&at.push(X)},_unregister:X=>{const ce=at.indexOf(X);ce>-1&&at.splice(ce,1)},_setOpen:Cn}})()},8607:(Pn,It,C)=>{"use strict";C.r(It),C.d(It,{GESTURE_CONTROLLER:()=>h.G,createGesture:()=>tt});var h=C(1970);const c=(it,Ye,at,mt)=>{const xt=Z(it)?{capture:!!mt.capture,passive:!!mt.passive}:!!mt.capture;let Dt,zt;return it.__zone_symbol__addEventListener?(Dt="__zone_symbol__addEventListener",zt="__zone_symbol__removeEventListener"):(Dt="addEventListener",zt="removeEventListener"),it[Dt](Ye,at,xt),()=>{it[zt](Ye,at,xt)}},Z=it=>{if(void 0===ke)try{const Ye=Object.defineProperty({},"passive",{get:()=>{ke=!0}});it.addEventListener("optsTest",()=>{},Ye)}catch{ke=!1}return!!ke};let ke;const ae=it=>it instanceof Document?it:it.ownerDocument,tt=it=>{let Ye=!1,at=!1,mt=!0,xt=!1;const Dt=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},it),zt=Dt.canStart,Tt=Dt.onWillStart,At=Dt.onStart,Ie=Dt.onEnd,Ze=Dt.notCaptured,_e=Dt.onMove,$e=Dt.threshold,Le=Dt.passive,Oe=Dt.blurOnStart,Ct={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},kt=((it,Ye,at)=>{const mt=at*(Math.PI/180),xt="x"===it,Dt=Math.cos(mt),zt=Ye*Ye;let Tt=0,At=0,Ie=!1,Ze=0;return{start(_e,$e){Tt=_e,At=$e,Ze=0,Ie=!0},detect(_e,$e){if(!Ie)return!1;const Le=_e-Tt,Oe=$e-At,Ct=Le*Le+Oe*Oe;if(CtDt?1:Cn<-Dt?-1:0,Ie=!1,!0},isGesture:()=>0!==Ze,getDirection:()=>Ze}})(Dt.direction,Dt.threshold,Dt.maxAngle),Cn=h.G.createGesture({name:it.gestureName,priority:it.gesturePriority,disableScroll:it.disableScroll}),cn=()=>{Ye&&(xt=!1,_e&&_e(Ct))},vt=()=>!!Cn.capture()&&(Ye=!0,mt=!1,Ct.startX=Ct.currentX,Ct.startY=Ct.currentY,Ct.startTime=Ct.currentTime,Tt?Tt(Ct).then(G):G(),!0),G=()=>{Oe&&(()=>{if(typeof document<"u"){const Ve=document.activeElement;null!=Ve&&Ve.blur&&Ve.blur()}})(),At&&At(Ct),mt=!0},X=()=>{Ye=!1,at=!1,xt=!1,mt=!0,Cn.release()},ce=Ve=>{const ut=Ye,fn=mt;if(X(),fn){if(Se(Ct,Ve),ut)return void(Ie&&Ie(Ct));Ze&&Ze(Ct)}},ue=((it,Ye,at,mt,xt)=>{let Dt,zt,Tt,At,Ie,Ze,_e,$e=0;const Le=Re=>{$e=Date.now()+2e3,Ye(Re)&&(!zt&&at&&(zt=c(it,"touchmove",at,xt)),Tt||(Tt=c(Re.target,"touchend",Ct,xt)),At||(At=c(Re.target,"touchcancel",Ct,xt)))},Oe=Re=>{$e>Date.now()||Ye(Re)&&(!Ze&&at&&(Ze=c(ae(it),"mousemove",at,xt)),_e||(_e=c(ae(it),"mouseup",kt,xt)))},Ct=Re=>{Cn(),mt&&mt(Re)},kt=Re=>{Et(),mt&&mt(Re)},Cn=()=>{zt&&zt(),Tt&&Tt(),At&&At(),zt=Tt=At=void 0},Et=()=>{Ze&&Ze(),_e&&_e(),Ze=_e=void 0},st=()=>{Cn(),Et()},cn=(Re=!0)=>{Re?(Dt||(Dt=c(it,"touchstart",Le,xt)),Ie||(Ie=c(it,"mousedown",Oe,xt))):(Dt&&Dt(),Ie&&Ie(),Dt=Ie=void 0,st())};return{enable:cn,stop:st,destroy:()=>{cn(!1),mt=at=Ye=void 0}}})(Dt.el,Ve=>{const ut=et(Ve);return!(at||!mt||(be(Ve,Ct),Ct.startX=Ct.currentX,Ct.startY=Ct.currentY,Ct.startTime=Ct.currentTime=ut,Ct.velocityX=Ct.velocityY=Ct.deltaX=Ct.deltaY=0,Ct.event=Ve,zt&&!1===zt(Ct))||(Cn.release(),!Cn.start()))&&(at=!0,0===$e?vt():(kt.start(Ct.startX,Ct.startY),!0))},Ve=>{Ye?!xt&&mt&&(xt=!0,Se(Ct,Ve),requestAnimationFrame(cn)):(Se(Ct,Ve),kt.detect(Ct.currentX,Ct.currentY)&&(!kt.isGesture()||!vt())&&Ee())},ce,{capture:!1,passive:Le}),Ee=()=>{X(),ue.stop(),Ze&&Ze(Ct)};return{enable(Ve=!0){Ve||(Ye&&ce(void 0),X()),ue.enable(Ve)},destroy(){Cn.destroy(),ue.destroy()}}},Se=(it,Ye)=>{if(!Ye)return;const at=it.currentX,mt=it.currentY,xt=it.currentTime;be(Ye,it);const Dt=it.currentX,zt=it.currentY,At=(it.currentTime=et(Ye))-xt;if(At>0&&At<100){const Ze=(zt-mt)/At;it.velocityX=(Dt-at)/At*.7+.3*it.velocityX,it.velocityY=.7*Ze+.3*it.velocityY}it.deltaX=Dt-it.startX,it.deltaY=zt-it.startY,it.event=Ye},be=(it,Ye)=>{let at=0,mt=0;if(it){const xt=it.changedTouches;if(xt&&xt.length>0){const Dt=xt[0];at=Dt.clientX,mt=Dt.clientY}else void 0!==it.pageX&&(at=it.pageX,mt=it.pageY)}Ye.currentX=at,Ye.currentY=mt},et=it=>it.timeStamp||Date.now()},9672:(Pn,It,C)=>{"use strict";C.d(It,{B:()=>he,a:()=>je,b:()=>Nr,c:()=>fn,d:()=>Sn,e:()=>vr,f:()=>vt,g:()=>xn,h:()=>st,i:()=>Je,j:()=>hr,k:()=>ae,r:()=>tr,w:()=>ai});var h=C(467);var ke=Object.defineProperty,he={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},ae=W=>{const ye=new URL(W,K.$resourcesUrl$);return ye.origin!==Pt.location.origin?ye.href:ye.pathname},Xe={},et=W=>"object"==(W=typeof W)||"function"===W;function it(W){var ye,Fe,ot;return null!=(ot=null==(Fe=null==(ye=W.head)?void 0:ye.querySelector('meta[name="csp-nonce"]'))?void 0:Fe.getAttribute("content"))?ot:void 0}((W,ye)=>{for(var Fe in ye)ke(W,Fe,{get:ye[Fe],enumerable:!0})})({},{err:()=>mt,map:()=>xt,ok:()=>at,unwrap:()=>Dt,unwrapErr:()=>zt});var at=W=>({isOk:!0,isErr:!1,value:W}),mt=W=>({isOk:!1,isErr:!0,value:W});function xt(W,ye){if(W.isOk){const Fe=ye(W.value);return Fe instanceof Promise?Fe.then(ot=>at(ot)):at(Fe)}if(W.isErr)return mt(W.value);throw"should never get here"}var Dt=W=>{if(W.isOk)return W.value;throw W.value},zt=W=>{if(W.isErr)return W.value;throw W.value},Le="s-id",Oe="sty-id",Cn="slot-fb{display:contents}slot-fb[hidden]{display:none}",Et="http://www.w3.org/1999/xlink",st=(W,ye,...Fe)=>{let ot=null,Ot=null,wt=null,en=!1,pn=!1;const vn=[],bn=Yn=>{for(let _r=0;_rYn[_r]).join(" "))}}if("function"==typeof W)return W(null===ye?{}:ye,vn,G);const Gn=cn(W,null);return Gn.$attrs$=ye,vn.length>0&&(Gn.$children$=vn),Gn.$key$=Ot,Gn.$name$=wt,Gn},cn=(W,ye)=>({$flags$:0,$tag$:W,$text$:ye,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),vt={},G={forEach:(W,ye)=>W.map(X).forEach(ye),map:(W,ye)=>W.map(X).map(ye).map(ce)},X=W=>({vattrs:W.$attrs$,vchildren:W.$children$,vkey:W.$key$,vname:W.$name$,vtag:W.$tag$,vtext:W.$text$}),ce=W=>{if("function"==typeof W.vtag){const Fe={...W.vattrs};return W.vkey&&(Fe.key=W.vkey),W.vname&&(Fe.name=W.vname),st(W.vtag,Fe,...W.vchildren||[])}const ye=cn(W.vtag,W.vtext);return ye.$attrs$=W.vattrs,ye.$children$=W.vchildren,ye.$key$=W.vkey,ye.$name$=W.vname,ye},Ee=(W,ye,Fe,ot,Ot,wt,en)=>{let pn,vn,bn,Gn;if(1===wt.nodeType){for(pn=wt.getAttribute("c-id"),pn&&(vn=pn.split("."),(vn[0]===en||"0"===vn[0])&&(bn={$flags$:0,$hostId$:vn[0],$nodeId$:vn[1],$depth$:vn[2],$index$:vn[3],$tag$:wt.tagName.toLowerCase(),$elm$:wt,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},ye.push(bn),wt.removeAttribute("c-id"),W.$children$||(W.$children$=[]),W.$children$[bn.$index$]=bn,W=bn,ot&&"0"===bn.$depth$&&(ot[bn.$index$]=bn.$elm$))),Gn=wt.childNodes.length-1;Gn>=0;Gn--)Ee(W,ye,Fe,ot,Ot,wt.childNodes[Gn],en);if(wt.shadowRoot)for(Gn=wt.shadowRoot.childNodes.length-1;Gn>=0;Gn--)Ee(W,ye,Fe,ot,Ot,wt.shadowRoot.childNodes[Gn],en)}else if(8===wt.nodeType)vn=wt.nodeValue.split("."),(vn[1]===en||"0"===vn[1])&&(pn=vn[0],bn={$flags$:0,$hostId$:vn[1],$nodeId$:vn[2],$depth$:vn[3],$index$:vn[4],$elm$:wt,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===pn?(bn.$elm$=wt.nextSibling,bn.$elm$&&3===bn.$elm$.nodeType&&(bn.$text$=bn.$elm$.textContent,ye.push(bn),wt.remove(),W.$children$||(W.$children$=[]),W.$children$[bn.$index$]=bn,ot&&"0"===bn.$depth$&&(ot[bn.$index$]=bn.$elm$))):bn.$hostId$===en&&("s"===pn?(bn.$tag$="slot",wt["s-sn"]=vn[5]?bn.$name$=vn[5]:"",wt["s-sr"]=!0,ot&&(bn.$elm$=ge.createElement(bn.$tag$),bn.$name$&&bn.$elm$.setAttribute("name",bn.$name$),wt.parentNode.insertBefore(bn.$elm$,wt),wt.remove(),"0"===bn.$depth$&&(ot[bn.$index$]=bn.$elm$)),Fe.push(bn),W.$children$||(W.$children$=[]),W.$children$[bn.$index$]=bn):"r"===pn&&(ot?wt.remove():(Ot["s-cr"]=wt,wt["s-cn"]=!0))));else if(W&&"style"===W.$tag$){const Yn=cn(null,wt.textContent);Yn.$elm$=wt,Yn.$index$="0",W.$children$=[Yn]}},Ve=(W,ye)=>{if(1===W.nodeType){let Fe=0;for(;Feui.push(W),xn=W=>_i(W).$modeName$,Je=W=>_i(W).$hostElement$,Sn=(W,ye,Fe)=>{const ot=Je(W);return{emit:Ot=>kn(ot,ye,{bubbles:!!(4&Fe),composed:!!(2&Fe),cancelable:!!(1&Fe),detail:Ot})}},kn=(W,ye,Fe)=>{const ot=K.ce(ye,Fe);return W.dispatchEvent(ot),ot},On=new WeakMap,or=(W,ye,Fe)=>{let ot=bo.get(W);Dn&&Fe?(ot=ot||new CSSStyleSheet,"string"==typeof ot?ot=ye:ot.replaceSync(ye)):ot=ye,bo.set(W,ot)},gr=(W,ye,Fe)=>{var ot;const Ot=dr(ye,Fe),wt=bo.get(Ot);if(W=11===W.nodeType?W:ge,wt)if("string"==typeof wt){let pn,en=On.get(W=W.head||W);if(en||On.set(W,en=new Set),!en.has(Ot)){if(W.host&&(pn=W.querySelector(`[${Oe}="${Ot}"]`)))pn.innerHTML=wt;else{pn=ge.createElement("style"),pn.innerHTML=wt;const vn=null!=(ot=K.$nonce$)?ot:it(ge);null!=vn&&pn.setAttribute("nonce",vn),W.insertBefore(pn,W.querySelector("link"))}4&ye.$flags$&&(pn.innerHTML+=Cn),en&&en.add(Ot)}}else W.adoptedStyleSheets.includes(wt)||(W.adoptedStyleSheets=[...W.adoptedStyleSheets,wt]);return Ot},dr=(W,ye)=>"sc-"+(ye&&32&W.$flags$?W.$tagName$+"-"+ye:W.$tagName$),nt=W=>W.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Lt=(W,ye,Fe,ot,Ot,wt)=>{if(Fe!==ot){let en=mo(W,ye),pn=ye.toLowerCase();if("class"===ye){const vn=W.classList,bn=yn(Fe),Gn=yn(ot);vn.remove(...bn.filter(Yn=>Yn&&!Gn.includes(Yn))),vn.add(...Gn.filter(Yn=>Yn&&!bn.includes(Yn)))}else if("style"===ye){for(const vn in Fe)(!ot||null==ot[vn])&&(vn.includes("-")?W.style.removeProperty(vn):W.style[vn]="");for(const vn in ot)(!Fe||ot[vn]!==Fe[vn])&&(vn.includes("-")?W.style.setProperty(vn,ot[vn]):W.style[vn]=ot[vn])}else if("key"!==ye)if("ref"===ye)ot&&ot(W);else if(en||"o"!==ye[0]||"n"!==ye[1]){const vn=et(ot);if((en||vn&&null!==ot)&&!Ot)try{if(W.tagName.includes("-"))W[ye]=ot;else{const Gn=null==ot?"":ot;"list"===ye?en=!1:(null==Fe||W[ye]!=Gn)&&(W[ye]=Gn)}}catch{}let bn=!1;pn!==(pn=pn.replace(/^xlink\:?/,""))&&(ye=pn,bn=!0),null==ot||!1===ot?(!1!==ot||""===W.getAttribute(ye))&&(bn?W.removeAttributeNS(Et,ye):W.removeAttribute(ye)):(!en||4&wt||Ot)&&!vn&&(ot=!0===ot?"":ot,bn?W.setAttributeNS(Et,ye,ot):W.setAttribute(ye,ot))}else if(ye="-"===ye[2]?ye.slice(3):mo(Pt,pn)?pn.slice(2):pn[2]+ye.slice(3),Fe||ot){const vn=ye.endsWith(En);ye=ye.replace(Fr,""),Fe&&K.rel(W,ye,Fe,vn),ot&&K.ael(W,ye,ot,vn)}}},Xt=/\s/,yn=W=>W?W.split(Xt):[],En="Capture",Fr=new RegExp(En+"$"),Vn=(W,ye,Fe)=>{const ot=11===ye.$elm$.nodeType&&ye.$elm$.host?ye.$elm$.host:ye.$elm$,Ot=W&&W.$attrs$||Xe,wt=ye.$attrs$||Xe;for(const en of $n(Object.keys(Ot)))en in wt||Lt(ot,en,Ot[en],void 0,Fe,ye.$flags$);for(const en of $n(Object.keys(wt)))Lt(ot,en,Ot[en],wt[en],Fe,ye.$flags$)};function $n(W){return W.includes("ref")?[...W.filter(ye=>"ref"!==ye),"ref"]:W}var In,on,mr,br=!1,Vr=!1,rr=!1,Mr=!1,sr=(W,ye,Fe,ot)=>{var Ot;const wt=ye.$children$[Fe];let pn,vn,bn,en=0;if(br||(rr=!0,"slot"===wt.$tag$&&(In&&ot.classList.add(In+"-s"),wt.$flags$|=wt.$children$?2:1)),null!==wt.$text$)pn=wt.$elm$=ge.createTextNode(wt.$text$);else if(1&wt.$flags$)pn=wt.$elm$=ge.createTextNode("");else{if(Mr||(Mr="svg"===wt.$tag$),pn=wt.$elm$=ge.createElementNS(Mr?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&wt.$flags$?"slot-fb":wt.$tag$),Mr&&"foreignObject"===wt.$tag$&&(Mr=!1),Vn(null,wt,Mr),(W=>null!=W)(In)&&pn["s-si"]!==In&&pn.classList.add(pn["s-si"]=In),wt.$children$)for(en=0;en{K.$flags$|=1;const ye=W.closest(mr.toLowerCase());if(null!=ye){const Fe=Array.from(ye.childNodes).find(Ot=>Ot["s-cr"]),ot=Array.from(W.childNodes);for(const Ot of Fe?ot.reverse():ot)null!=Ot["s-sh"]&&(Ae(ye,Ot,null!=Fe?Fe:null),Ot["s-sh"]=void 0,rr=!0)}K.$flags$&=-2},Tr=(W,ye)=>{K.$flags$|=1;const Fe=Array.from(W.childNodes);if(W["s-sr"]){let ot=W;for(;ot=ot.nextSibling;)ot&&ot["s-sn"]===W["s-sn"]&&ot["s-sh"]===mr&&Fe.push(ot)}for(let ot=Fe.length-1;ot>=0;ot--){const Ot=Fe[ot];Ot["s-hn"]!==mr&&Ot["s-ol"]&&(Ae(Di(Ot),Ot,li(Ot)),Ot["s-ol"].remove(),Ot["s-ol"]=void 0,Ot["s-sh"]=void 0,rr=!0),ye&&Tr(Ot,ye)}K.$flags$&=-2},yr=(W,ye,Fe,ot,Ot,wt)=>{let pn,en=W["s-cr"]&&W["s-cr"].parentNode||W;for(en.shadowRoot&&en.tagName===mr&&(en=en.shadowRoot);Ot<=wt;++Ot)ot[Ot]&&(pn=sr(null,Fe,Ot,W),pn&&(ot[Ot].$elm$=pn,Ae(en,pn,li(ye))))},Br=(W,ye,Fe)=>{for(let ot=ye;ot<=Fe;++ot){const Ot=W[ot];if(Ot){const wt=Ot.$elm$;de(Ot),wt&&(Vr=!0,wt["s-ol"]?wt["s-ol"].remove():Tr(wt,!0),wt.remove())}}},Lr=(W,ye,Fe=!1)=>W.$tag$===ye.$tag$&&("slot"===W.$tag$?W.$name$===ye.$name$:!!Fe||W.$key$===ye.$key$),li=W=>W&&W["s-ol"]||W,Di=W=>(W["s-ol"]?W["s-ol"]:W).parentNode,Zr=(W,ye,Fe=!1)=>{const ot=ye.$elm$=W.$elm$,Ot=W.$children$,wt=ye.$children$,en=ye.$tag$,pn=ye.$text$;let vn;null===pn?(Mr="svg"===en||"foreignObject"!==en&&Mr,"slot"!==en||br?Vn(W,ye,Mr):W.$name$!==ye.$name$&&(ye.$elm$["s-sn"]=ye.$name$||"",ii(ye.$elm$.parentElement)),null!==Ot&&null!==wt?((W,ye,Fe,ot,Ot=!1)=>{let Wr,kr,wt=0,en=0,pn=0,vn=0,bn=ye.length-1,Gn=ye[0],Yn=ye[bn],_r=ot.length-1,Kn=ot[0],Qr=ot[_r];for(;wt<=bn&&en<=_r;)if(null==Gn)Gn=ye[++wt];else if(null==Yn)Yn=ye[--bn];else if(null==Kn)Kn=ot[++en];else if(null==Qr)Qr=ot[--_r];else if(Lr(Gn,Kn,Ot))Zr(Gn,Kn,Ot),Gn=ye[++wt],Kn=ot[++en];else if(Lr(Yn,Qr,Ot))Zr(Yn,Qr,Ot),Yn=ye[--bn],Qr=ot[--_r];else if(Lr(Gn,Qr,Ot))("slot"===Gn.$tag$||"slot"===Qr.$tag$)&&Tr(Gn.$elm$.parentNode,!1),Zr(Gn,Qr,Ot),Ae(W,Gn.$elm$,Yn.$elm$.nextSibling),Gn=ye[++wt],Qr=ot[--_r];else if(Lr(Yn,Kn,Ot))("slot"===Gn.$tag$||"slot"===Qr.$tag$)&&Tr(Yn.$elm$.parentNode,!1),Zr(Yn,Kn,Ot),Ae(W,Yn.$elm$,Gn.$elm$),Yn=ye[--bn],Kn=ot[++en];else{for(pn=-1,vn=wt;vn<=bn;++vn)if(ye[vn]&&null!==ye[vn].$key$&&ye[vn].$key$===Kn.$key$){pn=vn;break}pn>=0?(kr=ye[pn],kr.$tag$!==Kn.$tag$?Wr=sr(ye&&ye[en],Fe,pn,W):(Zr(kr,Kn,Ot),ye[pn]=void 0,Wr=kr.$elm$),Kn=ot[++en]):(Wr=sr(ye&&ye[en],Fe,en,W),Kn=ot[++en]),Wr&&Ae(Di(Gn.$elm$),Wr,li(Gn.$elm$))}wt>bn?yr(W,null==ot[_r+1]?null:ot[_r+1].$elm$,Fe,ot,en,_r):en>_r&&Br(ye,wt,bn)})(ot,Ot,ye,wt,Fe):null!==wt?(null!==W.$text$&&(ot.textContent=""),yr(ot,null,ye,wt,0,wt.length-1)):null!==Ot&&Br(Ot,0,Ot.length-1),Mr&&"svg"===en&&(Mr=!1)):(vn=ot["s-cr"])?vn.parentNode.textContent=pn:W.$text$!==pn&&(ot.data=pn)},ve=W=>{const ye=W.childNodes;for(const Fe of ye)if(1===Fe.nodeType){if(Fe["s-sr"]){const ot=Fe["s-sn"];Fe.hidden=!1;for(const Ot of ye)if(Ot!==Fe)if(Ot["s-hn"]!==Fe["s-hn"]||""!==ot){if(1===Ot.nodeType&&(ot===Ot.getAttribute("slot")||ot===Ot["s-sn"])||3===Ot.nodeType&&ot===Ot["s-sn"]){Fe.hidden=!0;break}}else if(1===Ot.nodeType||3===Ot.nodeType&&""!==Ot.textContent.trim()){Fe.hidden=!0;break}}ve(Fe)}},rt=[],Nt=W=>{let ye,Fe,ot;for(const Ot of W.childNodes){if(Ot["s-sr"]&&(ye=Ot["s-cr"])&&ye.parentNode){Fe=ye.parentNode.childNodes;const wt=Ot["s-sn"];for(ot=Fe.length-1;ot>=0;ot--)if(ye=Fe[ot],!(ye["s-cn"]||ye["s-nr"]||ye["s-hn"]===Ot["s-hn"]||ye["s-sh"]&&ye["s-sh"]===Ot["s-hn"]))if(pt(ye,wt)){let en=rt.find(pn=>pn.$nodeToRelocate$===ye);Vr=!0,ye["s-sn"]=ye["s-sn"]||wt,en?(en.$nodeToRelocate$["s-sh"]=Ot["s-hn"],en.$slotRefNode$=Ot):(ye["s-sh"]=Ot["s-hn"],rt.push({$slotRefNode$:Ot,$nodeToRelocate$:ye})),ye["s-sr"]&&rt.map(pn=>{pt(pn.$nodeToRelocate$,ye["s-sn"])&&(en=rt.find(vn=>vn.$nodeToRelocate$===ye),en&&!pn.$slotRefNode$&&(pn.$slotRefNode$=en.$slotRefNode$))})}else rt.some(en=>en.$nodeToRelocate$===ye)||rt.push({$nodeToRelocate$:ye})}1===Ot.nodeType&&Nt(Ot)}},pt=(W,ye)=>1===W.nodeType?null===W.getAttribute("slot")&&""===ye||W.getAttribute("slot")===ye:W["s-sn"]===ye||""===ye,de=W=>{W.$attrs$&&W.$attrs$.ref&&W.$attrs$.ref(null),W.$children$&&W.$children$.map(de)},Ae=(W,ye,Fe)=>{const ot=null==W?void 0:W.insertBefore(ye,Fe);return $t(ye,W),ot},Ge=W=>W?W["s-rsc"]||W["s-si"]||W["s-sc"]||Ge(W.parentElement):void 0,$t=(W,ye)=>{var Fe,ot,Ot;if(W&&ye){const wt=W["s-rsc"],en=Ge(ye);wt&&null!=(Fe=W.classList)&&Fe.contains(wt)&&W.classList.remove(wt),en&&(W["s-rsc"]=en,(null==(ot=W.classList)||!ot.contains(en))&&(null==(Ot=W.classList)||Ot.add(en)))}},gt=(W,ye)=>{ye&&!W.$onRenderResolve$&&ye["s-p"]&&ye["s-p"].push(new Promise(Fe=>W.$onRenderResolve$=Fe))},ft=(W,ye)=>{if(W.$flags$|=16,!(4&W.$flags$))return gt(W,W.$ancestorComponent$),ai(()=>Qt(W,ye));W.$flags$|=512},Qt=(W,ye)=>{const ot=W.$lazyInstance$;let Ot;return ye&&(W.$flags$|=256,W.$queuedListeners$&&(W.$queuedListeners$.map(([wt,en])=>fr(ot,wt,en)),W.$queuedListeners$=void 0),Ot=fr(ot,"componentWillLoad")),Ot=sn(Ot,()=>fr(ot,"componentWillRender")),sn(Ot,()=>Xn(W,ot,ye))},sn=(W,ye)=>Tn(W)?W.then(ye):ye(),Tn=W=>W instanceof Promise||W&&W.then&&"function"==typeof W.then,Xn=function(){var W=(0,h.A)(function*(ye,Fe,ot){var Ot;const wt=ye.$hostElement$,pn=wt["s-rc"];ot&&(W=>{const ye=W.$cmpMeta$,Fe=W.$hostElement$,ot=ye.$flags$,wt=gr(Fe.shadowRoot?Fe.shadowRoot:Fe.getRootNode(),ye,W.$modeName$);10&ot&&(Fe["s-sc"]=wt,Fe.classList.add(wt+"-h"),2&ot&&Fe.classList.add(wt+"-s"))})(ye);dn(ye,Fe,wt,ot),pn&&(pn.map(bn=>bn()),wt["s-rc"]=void 0);{const bn=null!=(Ot=wt["s-p"])?Ot:[],Gn=()=>wn(ye);0===bn.length?Gn():(Promise.all(bn).then(Gn),ye.$flags$|=4,bn.length=0)}});return function(Fe,ot,Ot){return W.apply(this,arguments)}}(),dn=(W,ye,Fe,ot)=>{try{ye=ye.render&&ye.render(),W.$flags$&=-17,W.$flags$|=2,((W,ye,Fe=!1)=>{var ot,Ot,wt,en,pn;const vn=W.$hostElement$,bn=W.$cmpMeta$,Gn=W.$vnode$||cn(null,null),Yn=(W=>W&&W.$tag$===vt)(ye)?ye:st(null,null,ye);if(mr=vn.tagName,bn.$attrsToReflect$&&(Yn.$attrs$=Yn.$attrs$||{},bn.$attrsToReflect$.map(([_r,Kn])=>Yn.$attrs$[Kn]=vn[_r])),Fe&&Yn.$attrs$)for(const _r of Object.keys(Yn.$attrs$))vn.hasAttribute(_r)&&!["key","ref","style","class"].includes(_r)&&(Yn.$attrs$[_r]=vn[_r]);if(Yn.$tag$=null,Yn.$flags$|=4,W.$vnode$=Yn,Yn.$elm$=Gn.$elm$=vn.shadowRoot||vn,In=vn["s-sc"],br=!!(1&bn.$flags$),on=vn["s-cr"],Vr=!1,Zr(Gn,Yn,Fe),K.$flags$|=1,rr){Nt(Yn.$elm$);for(const _r of rt){const Kn=_r.$nodeToRelocate$;if(!Kn["s-ol"]){const Qr=ge.createTextNode("");Qr["s-nr"]=Kn,Ae(Kn.parentNode,Kn["s-ol"]=Qr,Kn)}}for(const _r of rt){const Kn=_r.$nodeToRelocate$,Qr=_r.$slotRefNode$;if(Qr){const Wr=Qr.parentNode;let kr=Qr.nextSibling;if(kr&&1===kr.nodeType){let ki=null==(ot=Kn["s-ol"])?void 0:ot.previousSibling;for(;ki;){let Fi=null!=(Ot=ki["s-nr"])?Ot:null;if(Fi&&Fi["s-sn"]===Kn["s-sn"]&&Wr===Fi.parentNode){for(Fi=Fi.nextSibling;Fi===Kn||null!=Fi&&Fi["s-sr"];)Fi=null==Fi?void 0:Fi.nextSibling;if(!Fi||!Fi["s-nr"]){kr=Fi;break}}ki=ki.previousSibling}}(!kr&&Wr!==Kn.parentNode||Kn.nextSibling!==kr)&&Kn!==kr&&(Ae(Wr,Kn,kr),1===Kn.nodeType&&(Kn.hidden=null!=(wt=Kn["s-ih"])&&wt)),Kn&&"function"==typeof Qr["s-rf"]&&Qr["s-rf"](Kn)}else 1===Kn.nodeType&&(Fe&&(Kn["s-ih"]=null!=(en=Kn.hidden)&&en),Kn.hidden=!0)}}if(Vr&&ve(Yn.$elm$),K.$flags$&=-2,rt.length=0,2&bn.$flags$)for(const _r of Yn.$elm$.childNodes)_r["s-hn"]!==mr&&!_r["s-sh"]&&(Fe&&null==_r["s-ih"]&&(_r["s-ih"]=null!=(pn=_r.hidden)&&pn),_r.hidden=!0);on=void 0})(W,ye,ot)}catch(Ot){fi(Ot,W.$hostElement$)}return null},wn=W=>{const Fe=W.$hostElement$,Ot=W.$lazyInstance$,wt=W.$ancestorComponent$;fr(Ot,"componentDidRender"),64&W.$flags$?fr(Ot,"componentDidUpdate"):(W.$flags$|=64,Ur(Fe),fr(Ot,"componentDidLoad"),W.$onReadyResolve$(Fe),wt||wr()),W.$onInstanceResolve$(Fe),W.$onRenderResolve$&&(W.$onRenderResolve$(),W.$onRenderResolve$=void 0),512&W.$flags$&&dt(()=>ft(W,!1)),W.$flags$&=-517},hr=W=>{{const ye=_i(W),Fe=ye.$hostElement$.isConnected;return Fe&&2==(18&ye.$flags$)&&ft(ye,!1),Fe}},wr=W=>{Ur(ge.documentElement),dt(()=>kn(Pt,"appload",{detail:{namespace:"ionic"}}))},fr=(W,ye,Fe)=>{if(W&&W[ye])try{return W[ye](Fe)}catch(ot){fi(ot)}},Ur=W=>W.classList.add("hydrated"),xi=(W,ye,Fe)=>{var ot;const Ot=W.prototype;if(ye.$members$){W.watchers&&(ye.$watchers$=W.watchers);const wt=Object.entries(ye.$members$);if(wt.map(([en,[pn]])=>{31&pn||2&Fe&&32&pn?Object.defineProperty(Ot,en,{get(){return((W,ye)=>_i(this).$instanceValues$.get(ye))(0,en)},set(vn){((W,ye,Fe,ot)=>{const Ot=_i(W);if(!Ot)throw new Error(`Couldn't find host element for "${ot.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const wt=Ot.$hostElement$,en=Ot.$instanceValues$.get(ye),pn=Ot.$flags$,vn=Ot.$lazyInstance$;Fe=((W,ye)=>null==W||et(W)?W:4&ye?"false"!==W&&(""===W||!!W):2&ye?parseFloat(W):1&ye?String(W):W)(Fe,ot.$members$[ye][0]);const bn=Number.isNaN(en)&&Number.isNaN(Fe);if((!(8&pn)||void 0===en)&&Fe!==en&&!bn&&(Ot.$instanceValues$.set(ye,Fe),vn)){if(ot.$watchers$&&128&pn){const Yn=ot.$watchers$[ye];Yn&&Yn.map(_r=>{try{vn[_r](Fe,en,ye)}catch(Kn){fi(Kn,wt)}})}2==(18&pn)&&ft(Ot,!1)}})(this,en,vn,ye)},configurable:!0,enumerable:!0}):1&Fe&&64&pn&&Object.defineProperty(Ot,en,{value(...vn){var bn;const Gn=_i(this);return null==(bn=null==Gn?void 0:Gn.$onInstancePromise$)?void 0:bn.then(()=>{var Yn;return null==(Yn=Gn.$lazyInstance$)?void 0:Yn[en](...vn)})}})}),1&Fe){const en=new Map;Ot.attributeChangedCallback=function(pn,vn,bn){K.jmp(()=>{var Gn;const Yn=en.get(pn);if(this.hasOwnProperty(Yn))bn=this[Yn],delete this[Yn];else{if(Ot.hasOwnProperty(Yn)&&"number"==typeof this[Yn]&&this[Yn]==bn)return;if(null==Yn){const _r=_i(this),Kn=null==_r?void 0:_r.$flags$;if(Kn&&!(8&Kn)&&128&Kn&&bn!==vn){const Qr=_r.$lazyInstance$,Wr=null==(Gn=ye.$watchers$)?void 0:Gn[pn];null==Wr||Wr.forEach(kr=>{null!=Qr[kr]&&Qr[kr].call(Qr,bn,vn,pn)})}return}}this[Yn]=(null!==bn||"boolean"!=typeof this[Yn])&&bn})},W.observedAttributes=Array.from(new Set([...Object.keys(null!=(ot=ye.$watchers$)?ot:{}),...wt.filter(([pn,vn])=>15&vn[0]).map(([pn,vn])=>{var bn;const Gn=vn[1]||pn;return en.set(Gn,pn),512&vn[0]&&(null==(bn=ye.$attrsToReflect$)||bn.push([pn,Gn])),Gn})]))}}return W},vi=function(){var W=(0,h.A)(function*(ye,Fe,ot,Ot){let wt;if(!(32&Fe.$flags$)){if(Fe.$flags$|=32,ot.$lazyBundleId$){if(wt=vo(ot),wt.then){const Gn=()=>{};wt=yield wt,Gn()}wt.isProxied||(ot.$watchers$=wt.watchers,xi(wt,ot,2),wt.isProxied=!0);const bn=()=>{};Fe.$flags$|=8;try{new wt(Fe)}catch(Gn){fi(Gn)}Fe.$flags$&=-9,Fe.$flags$|=128,bn(),Ar(Fe.$lazyInstance$)}else wt=ye.constructor,customElements.whenDefined(ot.$tagName$).then(()=>Fe.$flags$|=128);if(wt.style){let bn=wt.style;"string"!=typeof bn&&(bn=bn[Fe.$modeName$=(W=>ui.map(ye=>ye(W)).find(ye=>!!ye))(ye)]);const Gn=dr(ot,Fe.$modeName$);if(!bo.has(Gn)){const Yn=()=>{};or(Gn,bn,!!(1&ot.$flags$)),Yn()}}}const en=Fe.$ancestorComponent$,pn=()=>ft(Fe,!0);en&&en["s-rc"]?en["s-rc"].push(pn):pn()});return function(Fe,ot,Ot,wt){return W.apply(this,arguments)}}(),Ar=W=>{fr(W,"connectedCallback")},ie=W=>{const ye=W["s-cr"]=ge.createComment("");ye["s-cn"]=!0,Ae(W,ye,W.firstChild)},te=W=>{fr(W,"disconnectedCallback")},ze=function(){var W=(0,h.A)(function*(ye){if(!(1&K.$flags$)){const Fe=_i(ye);Fe.$rmListeners$&&(Fe.$rmListeners$.map(ot=>ot()),Fe.$rmListeners$=void 0),null!=Fe&&Fe.$lazyInstance$?te(Fe.$lazyInstance$):null!=Fe&&Fe.$onReadyPromise$&&Fe.$onReadyPromise$.then(()=>te(Fe.$lazyInstance$))}});return function(Fe){return W.apply(this,arguments)}}(),O=W=>{const ye=W.cloneNode;W.cloneNode=function(Fe){const ot=this,Ot=ot.shadowRoot&&Be,wt=ye.call(ot,!!Ot&&Fe);if(!Ot&&Fe){let pn,vn,en=0;const bn=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-rsc"];for(;en!ot.childNodes[en][Gn]),pn&&(wt.__appendChild?wt.__appendChild(pn.cloneNode(!0)):wt.appendChild(pn.cloneNode(!0))),vn&&wt.appendChild(ot.childNodes[en].cloneNode(!0))}return wt}},re=W=>{W.__appendChild=W.appendChild,W.appendChild=function(ye){const Fe=ye["s-sn"]=zr(ye),ot=$r(this.childNodes,Fe,this.tagName);if(ot){const Ot=Pr(ot,Fe),wt=Ot[Ot.length-1],en=Ae(wt.parentNode,ye,wt.nextSibling);return ve(this),en}return this.__appendChild(ye)}},we=W=>{W.__removeChild=W.removeChild,W.removeChild=function(ye){if(ye&&typeof ye["s-sn"]<"u"){const Fe=$r(this.childNodes,ye["s-sn"],this.tagName);if(Fe){const Ot=Pr(Fe,ye["s-sn"]).find(wt=>wt===ye);if(Ot)return Ot.remove(),void ve(this)}}return this.__removeChild(ye)}},We=W=>{const ye=W.prepend;W.prepend=function(...Fe){Fe.forEach(ot=>{"string"==typeof ot&&(ot=this.ownerDocument.createTextNode(ot));const Ot=ot["s-sn"]=zr(ot),wt=$r(this.childNodes,Ot,this.tagName);if(wt){const en=document.createTextNode("");en["s-nr"]=ot,wt["s-cr"].parentNode.__appendChild(en),ot["s-ol"]=en;const vn=Pr(wt,Ot)[0];return Ae(vn.parentNode,ot,vn.nextSibling)}return 1===ot.nodeType&&ot.getAttribute("slot")&&(ot.hidden=!0),ye.call(this,ot)})}},St=W=>{W.append=function(...ye){ye.forEach(Fe=>{"string"==typeof Fe&&(Fe=this.ownerDocument.createTextNode(Fe)),this.appendChild(Fe)})}},nn=W=>{const ye=W.insertAdjacentHTML;W.insertAdjacentHTML=function(Fe,ot){if("afterbegin"!==Fe&&"beforeend"!==Fe)return ye.call(this,Fe,ot);const Ot=this.ownerDocument.createElement("_");let wt;if(Ot.innerHTML=ot,"afterbegin"===Fe)for(;wt=Ot.firstChild;)this.prepend(wt);else if("beforeend"===Fe)for(;wt=Ot.firstChild;)this.append(wt)}},rn=W=>{W.insertAdjacentText=function(ye,Fe){this.insertAdjacentHTML(ye,Fe)}},pr=W=>{const ye=W.insertAdjacentElement;W.insertAdjacentElement=function(Fe,ot){return"afterbegin"!==Fe&&"beforeend"!==Fe?ye.call(this,Fe,ot):"afterbegin"===Fe?(this.prepend(ot),ot):("beforeend"===Fe&&this.append(ot),ot)}},qn=W=>{const ye=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(W,"__textContent",ye),Object.defineProperty(W,"textContent",{get(){return" "+jn(this.childNodes).map(Ot=>{var wt,en;const pn=[];let vn=Ot.nextSibling;for(;vn&&vn["s-sn"]===Ot["s-sn"];)(3===vn.nodeType||1===vn.nodeType)&&pn.push(null!=(en=null==(wt=vn.textContent)?void 0:wt.trim())?en:""),vn=vn.nextSibling;return pn.filter(bn=>""!==bn).join(" ")}).filter(Ot=>""!==Ot).join(" ")+" "},set(Fe){jn(this.childNodes).forEach(Ot=>{let wt=Ot.nextSibling;for(;wt&&wt["s-sn"]===Ot["s-sn"];){const en=wt;wt=wt.nextSibling,en.remove()}if(""===Ot["s-sn"]){const en=this.ownerDocument.createTextNode(Fe);en["s-sn"]="",Ae(Ot.parentElement,en,Ot.nextSibling)}else Ot.remove()})}})},Sr=(W,ye)=>{class Fe extends Array{item(Ot){return this[Ot]}}if(8&ye.$flags$){const ot=W.__lookupGetter__("childNodes");Object.defineProperty(W,"children",{get(){return this.childNodes.map(Ot=>1===Ot.nodeType)}}),Object.defineProperty(W,"childElementCount",{get:()=>W.children.length}),Object.defineProperty(W,"childNodes",{get(){const Ot=ot.call(this);if(!(1&K.$flags$)&&2&_i(this).$flags$){const wt=new Fe;for(let en=0;en{const ye=[];for(const Fe of Array.from(W))Fe["s-sr"]&&ye.push(Fe),ye.push(...jn(Fe.childNodes));return ye},zr=W=>W["s-sn"]||1===W.nodeType&&W.getAttribute("slot")||"",$r=(W,ye,Fe)=>{let Ot,ot=0;for(;ot{const Fe=[W];for(;(W=W.nextSibling)&&W["s-sn"]===ye;)Fe.push(W);return Fe},Nr=(W,ye={})=>{var Fe;const Ot=[],wt=ye.exclude||[],en=Pt.customElements,pn=ge.head,vn=pn.querySelector("meta[charset]"),bn=ge.createElement("style"),Gn=[],Yn=ge.querySelectorAll(`[${Oe}]`);let _r,Kn=!0,Qr=0;for(Object.assign(K,ye),K.$resourcesUrl$=new URL(ye.resourcesUrl||"./",ge.baseURI).href,K.$flags$|=2;Qr{kr[1].map(ki=>{var Fi;const Bi={$flags$:ki[0],$tagName$:ki[1],$members$:ki[2],$listeners$:ki[3]};4&Bi.$flags$&&(Wr=!0),Bi.$members$=ki[2],Bi.$listeners$=ki[3],Bi.$attrsToReflect$=[],Bi.$watchers$=null!=(Fi=ki[4])?Fi:{};const yo=Bi.$tagName$,Jo=class extends HTMLElement{constructor(Kr){super(Kr),Zn(Kr=this,Bi),1&Bi.$flags$&&Kr.attachShadow({mode:"open",delegatesFocus:!!(16&Bi.$flags$)})}connectedCallback(){_r&&(clearTimeout(_r),_r=null),Kn?Gn.push(this):K.jmp(()=>(W=>{if(!(1&K.$flags$)){const ye=_i(W),Fe=ye.$cmpMeta$,ot=()=>{};if(1&ye.$flags$)er(W,ye,Fe.$listeners$),null!=ye&&ye.$lazyInstance$?Ar(ye.$lazyInstance$):null!=ye&&ye.$onReadyPromise$&&ye.$onReadyPromise$.then(()=>Ar(ye.$lazyInstance$));else{let Ot;if(ye.$flags$|=1,Ot=W.getAttribute(Le),Ot){if(1&Fe.$flags$){const wt=gr(W.shadowRoot,Fe,W.getAttribute("s-mode"));W.classList.remove(wt+"-h",wt+"-s")}((W,ye,Fe,ot)=>{const wt=W.shadowRoot,en=[],vn=wt?[]:null,bn=ot.$vnode$=cn(ye,null);K.$orgLocNodes$||Ve(ge.body,K.$orgLocNodes$=new Map),W[Le]=Fe,W.removeAttribute(Le),Ee(bn,en,[],vn,W,W,Fe),en.map(Gn=>{const Yn=Gn.$hostId$+"."+Gn.$nodeId$,_r=K.$orgLocNodes$.get(Yn),Kn=Gn.$elm$;_r&&Be&&""===_r["s-en"]&&_r.parentNode.insertBefore(Kn,_r.nextSibling),wt||(Kn["s-hn"]=ye,_r&&(Kn["s-ol"]=_r,Kn["s-ol"]["s-nr"]=Kn)),K.$orgLocNodes$.delete(Yn)}),wt&&vn.map(Gn=>{Gn&&wt.appendChild(Gn)})})(W,Fe.$tagName$,Ot,ye)}Ot||12&Fe.$flags$&&ie(W);{let wt=W;for(;wt=wt.parentNode||wt.host;)if(1===wt.nodeType&&wt.hasAttribute("s-id")&&wt["s-p"]||wt["s-p"]){gt(ye,ye.$ancestorComponent$=wt);break}}Fe.$members$&&Object.entries(Fe.$members$).map(([wt,[en]])=>{if(31&en&&W.hasOwnProperty(wt)){const pn=W[wt];delete W[wt],W[wt]=pn}}),vi(W,ye,Fe)}ot()}})(this))}disconnectedCallback(){K.jmp(()=>ze(this))}componentOnReady(){return _i(this).$onReadyPromise$}};2&Bi.$flags$&&((W,ye)=>{O(W),re(W),St(W),We(W),pr(W),nn(W),rn(W),qn(W),Sr(W,ye),we(W)})(Jo.prototype,Bi),Bi.$lazyBundleId$=kr[0],!wt.includes(yo)&&!en.get(yo)&&(Ot.push(yo),en.define(yo,xi(Jo,Bi,1)))})}),Ot.length>0&&(Wr&&(bn.textContent+=Cn),bn.textContent+=Ot+"{visibility:hidden}.hydrated{visibility:inherit}",bn.innerHTML.length)){bn.setAttribute("data-styles","");const kr=null!=(Fe=K.$nonce$)?Fe:it(ge);null!=kr&&bn.setAttribute("nonce",kr),pn.insertBefore(bn,vn?vn.nextSibling:pn.firstChild)}Kn=!1,Gn.length?Gn.map(kr=>kr.connectedCallback()):K.jmp(()=>_r=setTimeout(wr,30))},er=(W,ye,Fe,ot)=>{Fe&&Fe.map(([Ot,wt,en])=>{const pn=di(W,Ot),vn=Rr(ye,en),bn=hi(Ot);K.ael(pn,wt,vn,bn),(ye.$rmListeners$=ye.$rmListeners$||[]).push(()=>K.rel(pn,wt,vn,bn))})},Rr=(W,ye)=>Fe=>{try{256&W.$flags$?W.$lazyInstance$[ye](Fe):(W.$queuedListeners$=W.$queuedListeners$||[]).push([ye,Fe])}catch(ot){fi(ot)}},di=(W,ye)=>4&ye?ge:8&ye?Pt:16&ye?ge.body:W,hi=W=>ct?{passive:!!(1&W),capture:!!(2&W)}:!!(2&W),Hr=new WeakMap,_i=W=>Hr.get(W),tr=(W,ye)=>Hr.set(ye.$lazyInstance$=W,ye),Zn=(W,ye)=>{const Fe={$flags$:0,$hostElement$:W,$cmpMeta$:ye,$instanceValues$:new Map};return Fe.$onInstancePromise$=new Promise(ot=>Fe.$onInstanceResolve$=ot),Fe.$onReadyPromise$=new Promise(ot=>Fe.$onReadyResolve$=ot),W["s-p"]=[],W["s-rc"]=[],er(W,Fe,ye.$listeners$),Hr.set(W,Fe)},mo=(W,ye)=>ye in W,fi=(W,ye)=>(0,console.error)(W,ye),yi=new Map,vo=(W,ye,Fe)=>{const ot=W.$tagName$.replace(/-/g,"_"),Ot=W.$lazyBundleId$,wt=yi.get(Ot);return wt?wt[ot]:C(8996)(`./${Ot}.entry.js`).then(en=>(yi.set(Ot,en),en[ot]),fi)},bo=new Map,ui=[],Pt=typeof window<"u"?window:{},ge=Pt.document||{head:{}},K={$flags$:0,$resourcesUrl$:"",jmp:W=>W(),raf:W=>requestAnimationFrame(W),ael:(W,ye,Fe,ot)=>W.addEventListener(ye,Fe,ot),rel:(W,ye,Fe,ot)=>W.removeEventListener(ye,Fe,ot),ce:(W,ye)=>new CustomEvent(W,ye)},je=W=>{Object.assign(K,W)},Be=!0,ct=(()=>{let W=!1;try{ge.addEventListener("e",null,Object.defineProperty({},"passive",{get(){W=!0}}))}catch{}return W})(),Dn=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Hn=!1,w=[],H=[],oe=(W,ye)=>Fe=>{W.push(Fe),Hn||(Hn=!0,ye&&4&K.$flags$?dt(Te):K.raf(Te))},P=W=>{for(let ye=0;ye{P(w),P(H),(Hn=w.length>0)&&K.raf(Te)},dt=W=>Promise.resolve(void 0).then(W),vr=oe(w,!1),ai=oe(H,!0)},2725:(Pn,It,C)=>{"use strict";C.d(It,{b:()=>Xe,c:()=>tt,d:()=>Se,e:()=>st,g:()=>Re,l:()=>Cn,s:()=>cn,t:()=>Dt,w:()=>Et});var h=C(467),c=C(3664),Z=C(9672),ke=C(4929),$=C(4920);const Xe="ionViewWillLeave",tt="ionViewDidLeave",Se="ionViewWillUnload",be=G=>{G.tabIndex=-1,G.focus()},et=G=>null!==G.offsetParent,Ye="ion-last-focus",xt_saveViewFocus=ce=>{if(c.c.get("focusManagerPriority",!1)){const Ee=document.activeElement;null!==Ee&&null!=ce&&ce.contains(Ee)&&Ee.setAttribute(Ye,"true")}},xt_setViewFocus=ce=>{const ue=c.c.get("focusManagerPriority",!1);if(Array.isArray(ue)&&!ce.contains(document.activeElement)){const Ee=ce.querySelector(`[${Ye}]`);if(Ee&&et(Ee))return void be(Ee);for(const Ve of ue)switch(Ve){case"content":const ut=ce.querySelector('main, [role="main"]');if(ut&&et(ut))return void be(ut);break;case"heading":const fn=ce.querySelector('h1, [role="heading"][aria-level="1"]');if(fn&&et(fn))return void be(fn);break;case"banner":const xn=ce.querySelector('header, [role="banner"]');if(xn&&et(xn))return void be(xn);break;default:(0,ke.p)(`Unrecognized focus manager priority value ${Ve}`)}be(ce)}},Dt=G=>new Promise((X,ce)=>{(0,Z.w)(()=>{zt(G),Tt(G).then(ue=>{ue.animation&&ue.animation.destroy(),At(G),X(ue)},ue=>{At(G),ce(ue)})})}),zt=G=>{const X=G.enteringEl,ce=G.leavingEl;xt_saveViewFocus(ce),vt(X,ce,G.direction),G.showGoBack?X.classList.add("can-go-back"):X.classList.remove("can-go-back"),cn(X,!1),X.style.setProperty("pointer-events","none"),ce&&(cn(ce,!1),ce.style.setProperty("pointer-events","none"))},Tt=function(){var G=(0,h.A)(function*(X){const ce=yield Ie(X);return ce&&Z.B.isBrowser?Ze(ce,X):_e(X)});return function(ce){return G.apply(this,arguments)}}(),At=G=>{const X=G.enteringEl,ce=G.leavingEl;X.classList.remove("ion-page-invisible"),X.style.removeProperty("pointer-events"),void 0!==ce&&(ce.classList.remove("ion-page-invisible"),ce.style.removeProperty("pointer-events")),xt_setViewFocus(X)},Ie=function(){var G=(0,h.A)(function*(X){return X.leavingEl&&X.animated&&0!==X.duration?X.animationBuilder?X.animationBuilder:"ios"===X.mode?(yield Promise.resolve().then(C.bind(C,8454))).iosTransitionAnimation:(yield Promise.resolve().then(C.bind(C,3314))).mdTransitionAnimation:void 0});return function(ce){return G.apply(this,arguments)}}(),Ze=function(){var G=(0,h.A)(function*(X,ce){yield $e(ce,!0);const ue=X(ce.baseEl,ce);Ct(ce.enteringEl,ce.leavingEl);const Ee=yield Oe(ue,ce);return ce.progressCallback&&ce.progressCallback(void 0),Ee&&kt(ce.enteringEl,ce.leavingEl),{hasCompleted:Ee,animation:ue}});return function(ce,ue){return G.apply(this,arguments)}}(),_e=function(){var G=(0,h.A)(function*(X){const ce=X.enteringEl,ue=X.leavingEl,Ee=c.c.get("focusManagerPriority",!1);return yield $e(X,Ee),Ct(ce,ue),kt(ce,ue),{hasCompleted:!0}});return function(ce){return G.apply(this,arguments)}}(),$e=function(){var G=(0,h.A)(function*(X,ce){(void 0!==X.deepWait?X.deepWait:ce)&&(yield Promise.all([st(X.enteringEl),st(X.leavingEl)])),yield Le(X.viewIsReady,X.enteringEl)});return function(ce,ue){return G.apply(this,arguments)}}(),Le=function(){var G=(0,h.A)(function*(X,ce){X&&(yield X(ce))});return function(ce,ue){return G.apply(this,arguments)}}(),Oe=(G,X)=>{const ce=X.progressCallback,ue=new Promise(Ee=>{G.onFinish(Ve=>Ee(1===Ve))});return ce?(G.progressStart(!0),ce(G)):G.play(),ue},Ct=(G,X)=>{Cn(X,Xe),Cn(G,"ionViewWillEnter")},kt=(G,X)=>{Cn(G,"ionViewDidEnter"),Cn(X,tt)},Cn=(G,X)=>{if(G){const ce=new CustomEvent(X,{bubbles:!1,cancelable:!1});G.dispatchEvent(ce)}},Et=()=>new Promise(G=>(0,$.r)(()=>(0,$.r)(()=>G()))),st=function(){var G=(0,h.A)(function*(X){const ce=X;if(ce){if(null!=ce.componentOnReady){if(null!=(yield ce.componentOnReady()))return}else if(null!=ce.__registerHost)return void(yield new Promise(Ee=>(0,$.r)(Ee)));yield Promise.all(Array.from(ce.children).map(st))}});return function(ce){return G.apply(this,arguments)}}(),cn=(G,X)=>{X?(G.setAttribute("aria-hidden","true"),G.classList.add("ion-page-hidden")):(G.hidden=!1,G.removeAttribute("aria-hidden"),G.classList.remove("ion-page-hidden"))},vt=(G,X,ce)=>{void 0!==G&&(G.style.zIndex="back"===ce?"99":"101"),void 0!==X&&(X.style.zIndex="100")},Re=G=>G.classList.contains("ion-page")?G:G.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||G},4929:(Pn,It,C)=>{"use strict";C.d(It,{a:()=>c,b:()=>Z,p:()=>h});const h=(ke,...$)=>console.warn(`[Ionic Warning]: ${ke}`,...$),c=(ke,...$)=>console.error(`[Ionic Error]: ${ke}`,...$),Z=(ke,...$)=>console.error(`<${ke.tagName.toLowerCase()}> must be used inside ${$.join(" or ")}.`)},8476:(Pn,It,C)=>{"use strict";C.d(It,{d:()=>c,w:()=>h});const h=typeof window<"u"?window:void 0,c=typeof document<"u"?document:void 0},3664:(Pn,It,C)=>{"use strict";C.d(It,{a:()=>be,b:()=>cn,c:()=>Z,i:()=>vt});var h=C(9672);class c{constructor(){this.m=new Map}reset(G){this.m=new Map(Object.entries(G))}get(G,X){const ce=this.m.get(G);return void 0!==ce?ce:X}getBoolean(G,X=!1){const ce=this.m.get(G);return void 0===ce?X:"string"==typeof ce?"true"===ce:!!ce}getNumber(G,X){const ce=parseFloat(this.m.get(G));return isNaN(ce)?void 0!==X?X:NaN:ce}set(G,X){this.m.set(G,X)}}const Z=new c,tt="ionic-persist-config",be=(Re,G)=>("string"==typeof Re&&(G=Re,Re=void 0),(Re=>et(Re))(Re).includes(G)),et=(Re=window)=>{if(typeof Re>"u")return[];Re.Ionic=Re.Ionic||{};let G=Re.Ionic.platforms;return null==G&&(G=Re.Ionic.platforms=it(Re),G.forEach(X=>Re.document.documentElement.classList.add(`plt-${X}`))),G},it=Re=>{const G=Z.get("platform");return Object.keys(Et).filter(X=>{const ce=null==G?void 0:G[X];return"function"==typeof ce?ce(Re):Et[X](Re)})},at=Re=>!!(kt(Re,/iPad/i)||kt(Re,/Macintosh/i)&&Ie(Re)),Dt=Re=>kt(Re,/android|sink/i),Ie=Re=>Cn(Re,"(any-pointer:coarse)"),_e=Re=>$e(Re)||Le(Re),$e=Re=>!!(Re.cordova||Re.phonegap||Re.PhoneGap),Le=Re=>{const G=Re.Capacitor;return!(null==G||!G.isNative)},kt=(Re,G)=>G.test(Re.navigator.userAgent),Cn=(Re,G)=>{var X;return null===(X=Re.matchMedia)||void 0===X?void 0:X.call(Re,G).matches},Et={ipad:at,iphone:Re=>kt(Re,/iPhone/i),ios:Re=>kt(Re,/iPhone|iPod/i)||at(Re),android:Dt,phablet:Re=>{const G=Re.innerWidth,X=Re.innerHeight,ce=Math.min(G,X),ue=Math.max(G,X);return ce>390&&ce<520&&ue>620&&ue<800},tablet:Re=>{const G=Re.innerWidth,X=Re.innerHeight,ce=Math.min(G,X),ue=Math.max(G,X);return at(Re)||(Re=>Dt(Re)&&!kt(Re,/mobile/i))(Re)||ce>460&&ce<820&&ue>780&&ue<1400},cordova:$e,capacitor:Le,electron:Re=>kt(Re,/electron/i),pwa:Re=>{var G;return!!(null!==(G=Re.matchMedia)&&void 0!==G&&G.call(Re,"(display-mode: standalone)").matches||Re.navigator.standalone)},mobile:Ie,mobileweb:Re=>Ie(Re)&&!_e(Re),desktop:Re=>!Ie(Re),hybrid:_e};let st;const cn=Re=>Re&&(0,h.g)(Re)||st,vt=(Re={})=>{if(typeof window>"u")return;const G=window.document,X=window,ce=X.Ionic=X.Ionic||{},ue={};Re._ael&&(ue.ael=Re._ael),Re._rel&&(ue.rel=Re._rel),Re._ce&&(ue.ce=Re._ce),(0,h.a)(ue);const Ee=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(Re=>{try{const G=Re.sessionStorage.getItem(tt);return null!==G?JSON.parse(G):{}}catch{return{}}})(X)),{persistConfig:!1}),ce.config),(Re=>{const G={};return Re.location.search.slice(1).split("&").map(X=>X.split("=")).map(([X,ce])=>{try{return[decodeURIComponent(X),decodeURIComponent(ce)]}catch{return["",""]}}).filter(([X])=>((Re,G)=>Re.substr(0,G.length)===G)(X,"ionic:")).map(([X,ce])=>[X.slice(6),ce]).forEach(([X,ce])=>{G[X]=ce}),G})(X)),Re);Z.reset(Ee),Z.getBoolean("persistConfig")&&((Re,G)=>{try{Re.sessionStorage.setItem(tt,JSON.stringify(G))}catch{return}})(X,Ee),et(X),ce.config=Z,ce.mode=st=Z.get("mode",G.documentElement.getAttribute("mode")||(be(X,"ios")?"ios":"md")),Z.set("mode",st),G.documentElement.setAttribute("mode",st),G.documentElement.classList.add(st),Z.getBoolean("_testing")&&Z.set("animated",!1);const Ve=fn=>{var xn;return null===(xn=fn.tagName)||void 0===xn?void 0:xn.startsWith("ION-")},ut=fn=>["ios","md"].includes(fn);(0,h.c)(fn=>{for(;fn;){const xn=fn.mode||fn.getAttribute("mode");if(xn){if(ut(xn))return xn;Ve(fn)&&console.warn('Invalid ionic mode: "'+xn+'", expected: "ios" or "md"')}fn=fn.parentElement}return st})}},8454:(Pn,It,C)=>{"use strict";C.r(It),C.d(It,{iosTransitionAnimation:()=>Ye,shadow:()=>Xe});var h=C(9986),c=C(2725);C(8476),C(3664),C(9672);const ae=mt=>document.querySelector(`${mt}.ion-cloned-element`),Xe=mt=>mt.shadowRoot||mt,tt=mt=>{const xt="ION-TABS"===mt.tagName?mt:mt.querySelector("ion-tabs"),Dt="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=xt){const zt=xt.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=zt?zt.querySelector(Dt):null}return mt.querySelector(Dt)},Se=(mt,xt)=>{const Dt="ION-TABS"===mt.tagName?mt:mt.querySelector("ion-tabs");let zt=[];if(null!=Dt){const Tt=Dt.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=Tt&&(zt=Tt.querySelectorAll("ion-buttons"))}else zt=mt.querySelectorAll("ion-buttons");for(const Tt of zt){const At=Tt.closest("ion-header"),Ie=At&&!At.classList.contains("header-collapse-condense-inactive"),Ze=Tt.querySelector("ion-back-button"),_e=Tt.classList.contains("buttons-collapse");if(null!==Ze&&("start"===Tt.slot||""===Tt.slot)&&(_e&&Ie&&xt||!_e))return Ze}return null},et=(mt,xt,Dt,zt,Tt,At,Ie,Ze,_e)=>{var $e,Le;const Oe=xt?`calc(100% - ${Tt.right+4}px)`:Tt.left-4+"px",Ct=xt?"right":"left",kt=xt?"left":"right",Cn=xt?"right":"left";let Et=1,st=1,cn=`scale(${st})`;const vt="scale(1)";if(At&&Ie){const Xt=(null===($e=At.textContent)||void 0===$e?void 0:$e.trim())===(null===(Le=Ze.textContent)||void 0===Le?void 0:Le.trim());Et=_e.width/Ie.width,st=(_e.height-at)/Ie.height,cn=Xt?`scale(${Et}, ${st})`:`scale(${st})`}const G=Xe(zt).querySelector("ion-icon").getBoundingClientRect(),X=xt?G.width/2-(G.right-Tt.right)+"px":Tt.left-G.width/2+"px",ce=xt?`-${window.innerWidth-Tt.right}px`:`${Tt.left}px`,ue=`${_e.top}px`,Ee=`${Tt.top}px`,fn=Dt?[{offset:0,transform:`translate3d(${ce}, ${Ee}, 0)`},{offset:1,transform:`translate3d(${X}, ${ue}, 0)`}]:[{offset:0,transform:`translate3d(${X}, ${ue}, 0)`},{offset:1,transform:`translate3d(${ce}, ${Ee}, 0)`}],Je=Dt?[{offset:0,opacity:1,transform:vt},{offset:1,opacity:0,transform:cn}]:[{offset:0,opacity:0,transform:cn},{offset:1,opacity:1,transform:vt}],On=Dt?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],or=(0,h.c)(),gr=(0,h.c)(),cr=(0,h.c)(),dr=ae("ion-back-button"),nt=Xe(dr).querySelector(".button-text"),Lt=Xe(dr).querySelector("ion-icon");dr.text=zt.text,dr.mode=zt.mode,dr.icon=zt.icon,dr.color=zt.color,dr.disabled=zt.disabled,dr.style.setProperty("display","block"),dr.style.setProperty("position","fixed"),gr.addElement(Lt),or.addElement(nt),cr.addElement(dr),cr.beforeStyles({position:"absolute",top:"0px",[Cn]:"0px"}).beforeAddWrite(()=>{zt.style.setProperty("display","none"),dr.style.setProperty(Ct,Oe)}).afterAddWrite(()=>{zt.style.setProperty("display",""),dr.style.setProperty("display","none"),dr.style.removeProperty(Ct)}).keyframes(fn),or.beforeStyles({"transform-origin":`${Ct} top`}).keyframes(Je),gr.beforeStyles({"transform-origin":`${kt} center`}).keyframes(On),mt.addAnimation([or,gr,cr])},it=(mt,xt,Dt,zt,Tt,At,Ie,Ze,_e)=>{var $e,Le;const Oe=xt?"right":"left",Ct=xt?`calc(100% - ${Tt.right}px)`:`${Tt.left}px`,Cn=`${Tt.top}px`;let st=xt?`-${window.innerWidth-Ie.right-8}px`:`${Ie.x+8}px`,cn=.5;const vt="scale(1)";let Re=`scale(${cn})`;if(Ze&&_e){st=xt?`-${window.innerWidth-_e.right-8}px`:_e.x-8+"px";const xn=(null===($e=Ze.textContent)||void 0===$e?void 0:$e.trim())===(null===(Le=zt.textContent)||void 0===Le?void 0:Le.trim());cn=_e.height/(At.height-at),Re=xn?`scale(${_e.width/At.width}, ${cn})`:`scale(${cn})`}const ce=Ie.top+Ie.height/2-Tt.height*cn/2+"px",Ve=Dt?[{offset:0,opacity:0,transform:`translate3d(${st}, ${ce}, 0) ${Re}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${Cn}, 0) ${vt}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${Cn}, 0) ${vt}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${st}, ${ce}, 0) ${Re}`}],ut=ae("ion-title"),fn=(0,h.c)();ut.innerText=zt.innerText,ut.size=zt.size,ut.color=zt.color,fn.addElement(ut),fn.beforeStyles({"transform-origin":`${Oe} top`,height:`${Tt.height}px`,display:"",position:"relative",[Oe]:Ct}).beforeAddWrite(()=>{zt.style.setProperty("opacity","0")}).afterAddWrite(()=>{zt.style.setProperty("opacity",""),ut.style.setProperty("display","none")}).keyframes(Ve),mt.addAnimation(fn)},Ye=(mt,xt)=>{var Dt;try{const zt="cubic-bezier(0.32,0.72,0,1)",Tt="opacity",At="transform",Ie="0%",_e="rtl"===mt.ownerDocument.dir,$e=_e?"-99.5%":"99.5%",Le=_e?"33%":"-33%",Oe=xt.enteringEl,Ct=xt.leavingEl,kt="back"===xt.direction,Cn=Oe.querySelector(":scope > ion-content"),Et=Oe.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),st=Oe.querySelectorAll(":scope > ion-header > ion-toolbar"),cn=(0,h.c)(),vt=(0,h.c)();if(cn.addElement(Oe).duration((null!==(Dt=xt.duration)&&void 0!==Dt?Dt:0)||540).easing(xt.easing||zt).fill("both").beforeRemoveClass("ion-page-invisible"),Ct&&null!=mt){const ce=(0,h.c)();ce.addElement(mt),cn.addAnimation(ce)}if(Cn||0!==st.length||0!==Et.length?(vt.addElement(Cn),vt.addElement(Et)):vt.addElement(Oe.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),cn.addAnimation(vt),kt?vt.beforeClearStyles([Tt]).fromTo("transform",`translateX(${Le})`,`translateX(${Ie})`).fromTo(Tt,.8,1):vt.beforeClearStyles([Tt]).fromTo("transform",`translateX(${$e})`,`translateX(${Ie})`),Cn){const ce=Xe(Cn).querySelector(".transition-effect");if(ce){const ue=ce.querySelector(".transition-cover"),Ee=ce.querySelector(".transition-shadow"),Ve=(0,h.c)(),ut=(0,h.c)(),fn=(0,h.c)();Ve.addElement(ce).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),ut.addElement(ue).beforeClearStyles([Tt]).fromTo(Tt,0,.1),fn.addElement(Ee).beforeClearStyles([Tt]).fromTo(Tt,.03,.7),Ve.addAnimation([ut,fn]),vt.addAnimation([Ve])}}const Re=Oe.querySelector("ion-header.header-collapse-condense"),{forward:G,backward:X}=((mt,xt,Dt,zt,Tt)=>{const At=Se(zt,Dt),Ie=tt(Tt),Ze=tt(zt),_e=Se(Tt,Dt),$e=null!==At&&null!==Ie&&!Dt,Le=null!==Ze&&null!==_e&&Dt;if($e){const Oe=Ie.getBoundingClientRect(),Ct=At.getBoundingClientRect(),kt=Xe(At).querySelector(".button-text"),Cn=null==kt?void 0:kt.getBoundingClientRect(),st=Xe(Ie).querySelector(".toolbar-title").getBoundingClientRect();it(mt,xt,Dt,Ie,Oe,st,Ct,kt,Cn),et(mt,xt,Dt,At,Ct,kt,Cn,Ie,st)}else if(Le){const Oe=Ze.getBoundingClientRect(),Ct=_e.getBoundingClientRect(),kt=Xe(_e).querySelector(".button-text"),Cn=null==kt?void 0:kt.getBoundingClientRect(),st=Xe(Ze).querySelector(".toolbar-title").getBoundingClientRect();it(mt,xt,Dt,Ze,Oe,st,Ct,kt,Cn),et(mt,xt,Dt,_e,Ct,kt,Cn,Ze,st)}return{forward:$e,backward:Le}})(cn,_e,kt,Oe,Ct);if(st.forEach(ce=>{const ue=(0,h.c)();ue.addElement(ce),cn.addAnimation(ue);const Ee=(0,h.c)();Ee.addElement(ce.querySelector("ion-title"));const Ve=(0,h.c)(),ut=Array.from(ce.querySelectorAll("ion-buttons,[menuToggle]")),fn=ce.closest("ion-header"),xn=null==fn?void 0:fn.classList.contains("header-collapse-condense-inactive");let un;un=ut.filter(kt?or=>{const gr=or.classList.contains("buttons-collapse");return gr&&!xn||!gr}:or=>!or.classList.contains("buttons-collapse")),Ve.addElement(un);const Je=(0,h.c)();Je.addElement(ce.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const Sn=(0,h.c)();Sn.addElement(Xe(ce).querySelector(".toolbar-background"));const kn=(0,h.c)(),On=ce.querySelector("ion-back-button");if(On&&kn.addElement(On),ue.addAnimation([Ee,Ve,Je,Sn,kn]),Ve.fromTo(Tt,.01,1),Je.fromTo(Tt,.01,1),kt)xn||Ee.fromTo("transform",`translateX(${Le})`,`translateX(${Ie})`).fromTo(Tt,.01,1),Je.fromTo("transform",`translateX(${Le})`,`translateX(${Ie})`),kn.fromTo(Tt,.01,1);else if(Re||Ee.fromTo("transform",`translateX(${$e})`,`translateX(${Ie})`).fromTo(Tt,.01,1),Je.fromTo("transform",`translateX(${$e})`,`translateX(${Ie})`),Sn.beforeClearStyles([Tt,"transform"]),(null==fn?void 0:fn.translucent)?Sn.fromTo("transform",_e?"translateX(-100%)":"translateX(100%)","translateX(0px)"):Sn.fromTo(Tt,.01,"var(--opacity)"),G||kn.fromTo(Tt,.01,1),On&&!G){const gr=(0,h.c)();gr.addElement(Xe(On).querySelector(".button-text")).fromTo("transform",_e?"translateX(-100px)":"translateX(100px)","translateX(0px)"),ue.addAnimation(gr)}}),Ct){const ce=(0,h.c)(),ue=Ct.querySelector(":scope > ion-content"),Ee=Ct.querySelectorAll(":scope > ion-header > ion-toolbar"),Ve=Ct.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(ue||0!==Ee.length||0!==Ve.length?(ce.addElement(ue),ce.addElement(Ve)):ce.addElement(Ct.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),cn.addAnimation(ce),kt){ce.beforeClearStyles([Tt]).fromTo("transform",`translateX(${Ie})`,_e?"translateX(-100%)":"translateX(100%)");const ut=(0,c.g)(Ct);cn.afterAddWrite(()=>{"normal"===cn.getDirection()&&ut.style.setProperty("display","none")})}else ce.fromTo("transform",`translateX(${Ie})`,`translateX(${Le})`).fromTo(Tt,1,.8);if(ue){const ut=Xe(ue).querySelector(".transition-effect");if(ut){const fn=ut.querySelector(".transition-cover"),xn=ut.querySelector(".transition-shadow"),un=(0,h.c)(),Je=(0,h.c)(),Sn=(0,h.c)();un.addElement(ut).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),Je.addElement(fn).beforeClearStyles([Tt]).fromTo(Tt,.1,0),Sn.addElement(xn).beforeClearStyles([Tt]).fromTo(Tt,.7,.03),un.addAnimation([Je,Sn]),ce.addAnimation([un])}}Ee.forEach(ut=>{const fn=(0,h.c)();fn.addElement(ut);const xn=(0,h.c)();xn.addElement(ut.querySelector("ion-title"));const un=(0,h.c)(),Je=ut.querySelectorAll("ion-buttons,[menuToggle]"),Sn=ut.closest("ion-header"),kn=null==Sn?void 0:Sn.classList.contains("header-collapse-condense-inactive"),On=Array.from(Je).filter(Lt=>{const Xt=Lt.classList.contains("buttons-collapse");return Xt&&!kn||!Xt});un.addElement(On);const or=(0,h.c)(),gr=ut.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");gr.length>0&&or.addElement(gr);const cr=(0,h.c)();cr.addElement(Xe(ut).querySelector(".toolbar-background"));const dr=(0,h.c)(),nt=ut.querySelector("ion-back-button");if(nt&&dr.addElement(nt),fn.addAnimation([xn,un,or,dr,cr]),cn.addAnimation(fn),dr.fromTo(Tt,.99,0),un.fromTo(Tt,.99,0),or.fromTo(Tt,.99,0),kt){if(kn||xn.fromTo("transform",`translateX(${Ie})`,_e?"translateX(-100%)":"translateX(100%)").fromTo(Tt,.99,0),or.fromTo("transform",`translateX(${Ie})`,_e?"translateX(-100%)":"translateX(100%)"),cr.beforeClearStyles([Tt,"transform"]),(null==Sn?void 0:Sn.translucent)?cr.fromTo("transform","translateX(0px)",_e?"translateX(-100%)":"translateX(100%)"):cr.fromTo(Tt,"var(--opacity)",0),nt&&!X){const Xt=(0,h.c)();Xt.addElement(Xe(nt).querySelector(".button-text")).fromTo("transform",`translateX(${Ie})`,`translateX(${(_e?-124:124)+"px"})`),fn.addAnimation(Xt)}}else kn||xn.fromTo("transform",`translateX(${Ie})`,`translateX(${Le})`).fromTo(Tt,.99,0).afterClearStyles([At,Tt]),or.fromTo("transform",`translateX(${Ie})`,`translateX(${Le})`).afterClearStyles([At,Tt]),dr.afterClearStyles([Tt]),xn.afterClearStyles([Tt]),un.afterClearStyles([Tt])})}return cn}catch(zt){throw zt}},at=10},3314:(Pn,It,C)=>{"use strict";C.r(It),C.d(It,{mdTransitionAnimation:()=>he});var h=C(9986),c=C(2725);C(8476),C(3664),C(9672);const he=(ae,Xe)=>{var tt,Se,be;const Ye="back"===Xe.direction,mt=Xe.leavingEl,xt=(0,c.g)(Xe.enteringEl),Dt=xt.querySelector("ion-toolbar"),zt=(0,h.c)();if(zt.addElement(xt).fill("both").beforeRemoveClass("ion-page-invisible"),Ye?zt.duration((null!==(tt=Xe.duration)&&void 0!==tt?tt:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):zt.duration((null!==(Se=Xe.duration)&&void 0!==Se?Se:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),Dt){const Tt=(0,h.c)();Tt.addElement(Dt),zt.addAnimation(Tt)}if(mt&&Ye){zt.duration((null!==(be=Xe.duration)&&void 0!==be?be:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const Tt=(0,h.c)();Tt.addElement((0,c.g)(mt)).onFinish(At=>{1===At&&Tt.elements.length>0&&Tt.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),zt.addAnimation(Tt)}return zt}},6002:(Pn,It,C)=>{"use strict";C.d(It,{B:()=>Je,F:()=>dr,G:()=>Sn,O:()=>kn,a:()=>xt,b:()=>Dt,c:()=>Ie,d:()=>On,e:()=>or,f:()=>G,g:()=>ce,h:()=>Ve,i:()=>fn,j:()=>_e,k:()=>$e,l:()=>zt,m:()=>Tt,n:()=>Se,o:()=>vt,q:()=>be,s:()=>un});var h=C(467),c=C(8476),Z=C(4920),ke=C(6411),$=C(3664),he=C(8621),ae=C(1970),Xe=C(4929);const tt='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',Se=(nt,Lt)=>{const Xt=nt.querySelector(tt);et(Xt,null!=Lt?Lt:nt)},be=(nt,Lt)=>{const Xt=Array.from(nt.querySelectorAll(tt));et(Xt.length>0?Xt[Xt.length-1]:null,null!=Lt?Lt:nt)},et=(nt,Lt)=>{let Xt=nt;const yn=null==nt?void 0:nt.shadowRoot;yn&&(Xt=yn.querySelector(tt)||nt),Xt?(0,Z.f)(Xt):Lt.focus()};let it=0,Ye=0;const at=new WeakMap,mt=nt=>({create:Lt=>Le(nt,Lt),dismiss:(Lt,Xt,yn)=>Et(document,Lt,Xt,nt,yn),getTop:()=>(0,h.A)(function*(){return vt(document,nt)})()}),xt=mt("ion-alert"),Dt=mt("ion-action-sheet"),zt=mt("ion-loading"),Tt=mt("ion-modal"),Ie=mt("ion-popover"),_e=nt=>{typeof document<"u"&&Cn(document);const Lt=it++;nt.overlayIndex=Lt},$e=nt=>(nt.hasAttribute("id")||(nt.id="ion-overlay-"+ ++Ye),nt.id),Le=(nt,Lt)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(nt).then(()=>{const Xt=document.createElement(nt);return Xt.classList.add("overlay-hidden"),Object.assign(Xt,Object.assign(Object.assign({},Lt),{hasController:!0})),ue(document).appendChild(Xt),new Promise(yn=>(0,Z.c)(Xt,yn))}):Promise.resolve(),Ct=(nt,Lt)=>{let Xt=nt;const yn=null==nt?void 0:nt.shadowRoot;yn&&(Xt=yn.querySelector(tt)||nt),Xt?(0,Z.f)(Xt):Lt.focus()},Cn=nt=>{0===it&&(it=1,nt.addEventListener("focus",Lt=>{((nt,Lt)=>{const Xt=vt(Lt,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),yn=nt.target;Xt&&yn&&!Xt.classList.contains(dr)&&(Xt.shadowRoot?(()=>{if(Xt.contains(yn))Xt.lastFocus=yn;else if("ION-TOAST"===yn.tagName)Ct(Xt.lastFocus,Xt);else{const Vn=Xt.lastFocus;Se(Xt),Vn===Lt.activeElement&&be(Xt),Xt.lastFocus=Lt.activeElement}})():(()=>{if(Xt===yn)Xt.lastFocus=void 0;else if("ION-TOAST"===yn.tagName)Ct(Xt.lastFocus,Xt);else{const Vn=(0,Z.g)(Xt);if(!Vn.contains(yn))return;const $n=Vn.querySelector(".ion-overlay-wrapper");if(!$n)return;if($n.contains(yn)||yn===Vn.querySelector("ion-backdrop"))Xt.lastFocus=yn;else{const In=Xt.lastFocus;Se($n,Xt),In===Lt.activeElement&&be($n,Xt),Xt.lastFocus=Lt.activeElement}}})())})(Lt,nt)},!0),nt.addEventListener("ionBackButton",Lt=>{const Xt=vt(nt);null!=Xt&&Xt.backdropDismiss&&Lt.detail.register(ke.OVERLAY_BACK_BUTTON_PRIORITY,()=>{Xt.dismiss(void 0,Je)})}),(0,ke.shouldUseCloseWatcher)()||nt.addEventListener("keydown",Lt=>{if("Escape"===Lt.key){const Xt=vt(nt);null!=Xt&&Xt.backdropDismiss&&Xt.dismiss(void 0,Je)}}))},Et=(nt,Lt,Xt,yn,En)=>{const Fr=vt(nt,yn,En);return Fr?Fr.dismiss(Lt,Xt):Promise.reject("overlay does not exist")},cn=(nt,Lt)=>((nt,Lt)=>(void 0===Lt&&(Lt="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(nt.querySelectorAll(Lt)).filter(Xt=>Xt.overlayIndex>0)))(nt,Lt).filter(Xt=>!(nt=>nt.classList.contains("overlay-hidden"))(Xt)),vt=(nt,Lt,Xt)=>{const yn=cn(nt,Lt);return void 0===Xt?yn[yn.length-1]:yn.find(En=>En.id===Xt)},Re=(nt=!1)=>{const Xt=ue(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");Xt&&(nt?Xt.setAttribute("aria-hidden","true"):Xt.removeAttribute("aria-hidden"))},G=function(){var nt=(0,h.A)(function*(Lt,Xt,yn,En,Fr){var Vn,$n;if(Lt.presented)return;Re(!0),document.body.classList.add(ae.B),gr(Lt.el),Lt.presented=!0,Lt.willPresent.emit(),null===(Vn=Lt.willPresentShorthand)||void 0===Vn||Vn.emit();const In=(0,$.b)(Lt),on=Lt.enterAnimation?Lt.enterAnimation:$.c.get(Xt,"ios"===In?yn:En);(yield Ee(Lt,on,Lt.el,Fr))&&(Lt.didPresent.emit(),null===($n=Lt.didPresentShorthand)||void 0===$n||$n.emit()),"ION-TOAST"!==Lt.el.tagName&&X(Lt.el),Lt.keyboardClose&&(null===document.activeElement||!Lt.el.contains(document.activeElement))&&Lt.el.focus(),Lt.el.removeAttribute("aria-hidden")});return function(Xt,yn,En,Fr,Vn){return nt.apply(this,arguments)}}(),X=function(){var nt=(0,h.A)(function*(Lt){let Xt=document.activeElement;if(!Xt)return;const yn=null==Xt?void 0:Xt.shadowRoot;yn&&(Xt=yn.querySelector(tt)||Xt),yield Lt.onDidDismiss(),(null===document.activeElement||document.activeElement===document.body)&&Xt.focus()});return function(Xt){return nt.apply(this,arguments)}}(),ce=function(){var nt=(0,h.A)(function*(Lt,Xt,yn,En,Fr,Vn,$n){var In,on;if(!Lt.presented)return!1;void 0!==c.d&&1===cn(c.d).length&&(Re(!1),document.body.classList.remove(ae.B)),Lt.presented=!1;try{Lt.el.style.setProperty("pointer-events","none"),Lt.willDismiss.emit({data:Xt,role:yn}),null===(In=Lt.willDismissShorthand)||void 0===In||In.emit({data:Xt,role:yn});const br=(0,$.b)(Lt),Vr=Lt.leaveAnimation?Lt.leaveAnimation:$.c.get(En,"ios"===br?Fr:Vn);yn!==Sn&&(yield Ee(Lt,Vr,Lt.el,$n)),Lt.didDismiss.emit({data:Xt,role:yn}),null===(on=Lt.didDismissShorthand)||void 0===on||on.emit({data:Xt,role:yn}),(at.get(Lt)||[]).forEach(Mr=>Mr.destroy()),at.delete(Lt),Lt.el.classList.add("overlay-hidden"),Lt.el.style.removeProperty("pointer-events"),void 0!==Lt.el.lastFocus&&(Lt.el.lastFocus=void 0)}catch(br){console.error(br)}return Lt.el.remove(),cr(),!0});return function(Xt,yn,En,Fr,Vn,$n,In){return nt.apply(this,arguments)}}(),ue=nt=>nt.querySelector("ion-app")||nt.body,Ee=function(){var nt=(0,h.A)(function*(Lt,Xt,yn,En){yn.classList.remove("overlay-hidden");const Vn=Xt(Lt.el,En);(!Lt.animated||!$.c.getBoolean("animated",!0))&&Vn.duration(0),Lt.keyboardClose&&Vn.beforeAddWrite(()=>{const In=yn.ownerDocument.activeElement;null!=In&&In.matches("input,ion-input, ion-textarea")&&In.blur()});const $n=at.get(Lt)||[];return at.set(Lt,[...$n,Vn]),yield Vn.play(),!0});return function(Xt,yn,En,Fr){return nt.apply(this,arguments)}}(),Ve=(nt,Lt)=>{let Xt;const yn=new Promise(En=>Xt=En);return ut(nt,Lt,En=>{Xt(En.detail)}),yn},ut=(nt,Lt,Xt)=>{const yn=En=>{(0,Z.b)(nt,Lt,yn),Xt(En)};(0,Z.a)(nt,Lt,yn)},fn=nt=>"cancel"===nt||nt===Je,xn=nt=>nt(),un=(nt,Lt)=>{if("function"==typeof nt)return $.c.get("_zoneGate",xn)(()=>{try{return nt(Lt)}catch(yn){throw yn}})},Je="backdrop",Sn="gesture",kn=39,On=nt=>{let Xt,Lt=!1;const yn=(0,he.C)(),En=($n=!1)=>{if(Xt&&!$n)return{delegate:Xt,inline:Lt};const{el:In,hasController:on,delegate:mr}=nt;return Lt=null!==In.parentNode&&!on,Xt=Lt?mr||yn:mr,{inline:Lt,delegate:Xt}};return{attachViewToDom:function(){var $n=(0,h.A)(function*(In){const{delegate:on}=En(!0);if(on)return yield on.attachViewToDom(nt.el,In);const{hasController:mr}=nt;if(mr&&void 0!==In)throw new Error("framework delegate is missing");return null});return function(on){return $n.apply(this,arguments)}}(),removeViewFromDom:()=>{const{delegate:$n}=En();$n&&void 0!==nt.el&&$n.removeViewFromDom(nt.el.parentElement,nt.el)}}},or=()=>{let nt;const Lt=()=>{nt&&(nt(),nt=void 0)};return{addClickListener:(yn,En)=>{Lt();const Fr=void 0!==En?document.getElementById(En):null;Fr?nt=(($n,In)=>{const on=()=>{In.present()};return $n.addEventListener("click",on),()=>{$n.removeEventListener("click",on)}})(Fr,yn):(0,Xe.p)(`A trigger element with the ID "${En}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,yn)},removeClickListener:Lt}},gr=nt=>{var Lt;if(void 0===c.d)return;const Xt=cn(c.d);for(let yn=Xt.length-1;yn>=0;yn--){const En=Xt[yn],Fr=null!==(Lt=Xt[yn+1])&&void 0!==Lt?Lt:nt;(Fr.hasAttribute("aria-hidden")||"ION-TOAST"!==Fr.tagName)&&En.setAttribute("aria-hidden","true")}},cr=()=>{if(void 0===c.d)return;const nt=cn(c.d);for(let Lt=nt.length-1;Lt>=0;Lt--){const Xt=nt[Lt];if(Xt.removeAttribute("aria-hidden"),"ION-TOAST"!==Xt.tagName)break}},dr="ion-disable-focus-trap"},63:(Pn,It,C)=>{"use strict";var h=C(345),c=C(4438),Z=C(7650),ke=C(2872),$=C(7863),he=C(177);function ae(Je,Sn){if(1&Je){const kn=c.RV6();c.j41(0,"ion-item",6),c.bIt("click",function(){c.eBV(kn);const or=c.XpG().$implicit,gr=c.XpG();return c.Njj(gr.navigate(or))}),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s()()}if(2&Je){const kn=c.XpG().$implicit;c.R7$(),c.Y8G("name",kn.icon),c.R7$(2),c.JRh(kn.title)}}function Xe(Je,Sn){if(1&Je&&(c.j41(0,"ion-item",9),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s(),c.j41(4,"ion-chip"),c.EFF(5),c.k0s()()),2&Je){const kn=c.XpG(2).$implicit,On=c.XpG();c.Y8G("routerLink",kn.url),c.R7$(),c.Y8G("name",kn.icon),c.R7$(2),c.JRh(kn.title),c.R7$(2),c.JRh(On.user.name)}}function tt(Je,Sn){if(1&Je&&(c.j41(0,"ion-item",9),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s(),c.j41(4,"ion-chip"),c.EFF(5),c.k0s()()),2&Je){const kn=c.XpG(2).$implicit,On=c.XpG();c.Y8G("routerLink",kn.url),c.R7$(),c.Y8G("name",kn.icon),c.R7$(2),c.JRh(kn.title),c.R7$(2),c.JRh(On.user.orgName)}}function Se(Je,Sn){if(1&Je&&(c.j41(0,"ion-item",9),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s()()),2&Je){const kn=c.XpG(2).$implicit;c.Y8G("routerLink",kn.url),c.R7$(),c.Y8G("name",kn.icon),c.R7$(2),c.JRh(kn.title)}}function be(Je,Sn){if(1&Je&&c.DNE(0,Xe,6,4,"ion-item",9)(1,tt,6,4)(2,Se,4,3),2&Je){const kn=c.XpG().$implicit;c.vxM(0,"Settings"===kn.title?0:"My Team"===kn.title?1:2)}}function et(Je,Sn){if(1&Je&&(c.j41(0,"ion-menu-toggle",5),c.DNE(1,ae,4,2,"ion-item")(2,be,3,1),c.k0s()),2&Je){const kn=Sn.$implicit;c.R7$(),c.vxM(1,kn.params?1:2)}}let it=(()=>{var Je;class Sn{constructor(On,or){this.router=On,this.menuController=or,this.user={},this.menuItems=[{title:"Home",url:"/home",icon:"home"},{title:"Model The Product",url:"/model-product",icon:"cube"},{title:"Latency Test",url:"/latency-chooser",icon:"pulse"},{title:"Trace Test",url:"/trace-chooser",icon:"globe"},{title:"CPU Usage",url:"/flame-graph-for",params:{usage_type:"cpu"},icon:"stats-chart"},{title:"Memory Usage",url:"/flame-graph-for",params:{usage_type:"memory_usage"},icon:"swap-horizontal"},{title:"Software Testing",url:"/software-testing",icon:"flask"},{title:"Load Test",url:"/load-test-chooser",icon:"barbell"},{title:"Incident Manager",url:"/incident-manager-chooser",icon:"alert-circle"},{title:"My Team",url:"/myteam",icon:"people"},{title:"Settings",url:"/settings",icon:"settings"}]}ngOnInit(){this.router.events.subscribe(On=>{On instanceof Z.wF&&(On.urlAfterRedirects.includes("/login")||On.urlAfterRedirects.includes("/register")?this.menuController.enable(!1):this.menuController.enable(!0))}),this.getUser()}navigate(On){this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>{this.router.navigate([On.url],{queryParams:On.params||{}})})}getUser(){const On=JSON.parse(localStorage.getItem("user"));this.user=On}}return(Je=Sn).\u0275fac=function(On){return new(On||Je)(c.rXU(Z.Ix),c.rXU($._t))},Je.\u0275cmp=c.VBU({type:Je,selectors:[["app-root"]],decls:11,vars:1,consts:[["when","md","contentId","menu-content"],["content-id","menu-content","menu-id","menu-id","side","start","type","overlay"],[1,"h-full"],["auto-hide","false",4,"ngFor","ngForOf"],["id","menu-content"],["auto-hide","false"],[3,"click"],["slot","start",3,"name"],["color","primary"],[3,"routerLink"]],template:function(On,or){1&On&&(c.j41(0,"ion-app")(1,"ion-split-pane",0)(2,"ion-menu",1)(3,"ion-header")(4,"ion-toolbar")(5,"ion-title"),c.EFF(6," Menu "),c.k0s()()(),c.j41(7,"ion-content")(8,"ion-list",2),c.DNE(9,et,3,1,"ion-menu-toggle",3),c.k0s()()(),c.nrm(10,"ion-router-outlet",4),c.k0s()()),2&On&&(c.R7$(9),c.Y8G("ngForOf",or.menuItems))},dependencies:[he.Sq,$.U1,$.ZB,$.W9,$.eU,$.iq,$.uz,$.he,$.nf,$.oS,$.cA,$.HP,$.BC,$.ai,$.Rg,$.N7,Z.Wk]}),Sn})();var Ye=C(9842),at=C(8737),mt=C(1203),xt=C(6354),Dt=C(6697);C(2214);const Tt=(0,xt.T)(Je=>!!Je);let At=(()=>{var Je;class Sn{constructor(On,or){(0,Ye.A)(this,"router",void 0),(0,Ye.A)(this,"auth",void 0),(0,Ye.A)(this,"canActivate",(gr,cr)=>{const dr=gr.data.authGuardPipe||(()=>Tt);return(0,at.kQ)(this.auth).pipe((0,Dt.s)(1),dr(gr,cr),(0,xt.T)(nt=>"boolean"==typeof nt?nt:Array.isArray(nt)?this.router.createUrlTree(nt):this.router.parseUrl(nt)))}),this.router=On,this.auth=or}}return Je=Sn,(0,Ye.A)(Sn,"\u0275fac",function(On){return new(On||Je)(c.KVO(Z.Ix),c.KVO(at.Nj))}),(0,Ye.A)(Sn,"\u0275prov",c.jDH({token:Je,factory:Je.\u0275fac,providedIn:"any"})),Sn})();const Ie=Je=>({canActivate:[At],data:{authGuardPipe:Je}}),Et=()=>{return Je=[""],(0,mt.F)(Tt,(0,xt.T)(Sn=>Sn||Je));var Je},st=()=>{return Je=["home"],(0,mt.F)(Tt,(0,xt.T)(Sn=>Sn&&Je||!0));var Je},cn=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"home",loadChildren:()=>Promise.all([C.e(2076),C.e(2757)]).then(C.bind(C,2757)).then(Je=>Je.HomePageModule),...Ie(Et)},{path:"register",loadChildren:()=>C.e(5995).then(C.bind(C,5995)).then(Je=>Je.RegisterPageModule),...Ie(st)},{path:"login",loadChildren:()=>C.e(6536).then(C.bind(C,6536)).then(Je=>Je.LoginPageModule),...Ie(st)},{path:"myteam",loadChildren:()=>Promise.all([C.e(2076),C.e(461)]).then(C.bind(C,461)).then(Je=>Je.MyteamPageModule),...Ie(Et)},{path:"model-product",loadChildren:()=>Promise.all([C.e(2076),C.e(4914)]).then(C.bind(C,4914)).then(Je=>Je.ModelProductPageModule),...Ie(Et)},{path:"new-product",loadChildren:()=>Promise.all([C.e(2076),C.e(3646)]).then(C.bind(C,3646)).then(Je=>Je.NewProductPageModule),...Ie(Et)},{path:"view-product",loadChildren:()=>Promise.all([C.e(2076),C.e(1313)]).then(C.bind(C,1313)).then(Je=>Je.ViewProductPageModule),...Ie(Et)},{path:"show-map",loadChildren:()=>Promise.all([C.e(9273),C.e(2076),C.e(9070)]).then(C.bind(C,9070)).then(Je=>Je.ShowMapPageModule),...Ie(Et)},{path:"latency-test",loadChildren:()=>Promise.all([C.e(2076),C.e(9456)]).then(C.bind(C,9456)).then(Je=>Je.LatencyTestPageModule),...Ie(Et)},{path:"latency-chooser",loadChildren:()=>Promise.all([C.e(2076),C.e(8886)]).then(C.bind(C,8886)).then(Je=>Je.LatencyChooserPageModule),...Ie(Et)},{path:"latency-results",loadChildren:()=>Promise.all([C.e(2076),C.e(8984)]).then(C.bind(C,8984)).then(Je=>Je.LatencyResultsPageModule),...Ie(Et)},{path:"graph-latency",loadChildren:()=>Promise.all([C.e(2076),C.e(6975)]).then(C.bind(C,6975)).then(Je=>Je.GraphPageModule),...Ie(Et)},{path:"trace-chooser",loadChildren:()=>Promise.all([C.e(2076),C.e(4839)]).then(C.bind(C,4839)).then(Je=>Je.TraceChooserPageModule),...Ie(Et)},{path:"trace-test",loadChildren:()=>Promise.all([C.e(2076),C.e(3451)]).then(C.bind(C,3451)).then(Je=>Je.TraceTestPageModule),...Ie(Et)},{path:"trace-results",loadChildren:()=>Promise.all([C.e(2076),C.e(7762)]).then(C.bind(C,7762)).then(Je=>Je.TraceResultsPageModule),...Ie(Et)},{path:"show-map-trace",loadChildren:()=>Promise.all([C.e(9273),C.e(2076),C.e(8566)]).then(C.bind(C,8566)).then(Je=>Je.ShowMapTracePageModule),...Ie(Et)},{path:"graph-data-for",loadChildren:()=>C.e(1081).then(C.bind(C,1081)).then(Je=>Je.GraphDataForPageModule),...Ie(Et)},{path:"graph-trace",loadChildren:()=>Promise.all([C.e(2076),C.e(6303)]).then(C.bind(C,6303)).then(Je=>Je.GraphTracePageModule),...Ie(Et)},{path:"ai",loadChildren:()=>C.e(4348).then(C.bind(C,4348)).then(Je=>Je.AiPageModule),...Ie(Et)},{path:"flame-graph",loadChildren:()=>Promise.all([C.e(2076),C.e(5054)]).then(C.bind(C,5054)).then(Je=>Je.FlameGraphPageModule),...Ie(Et)},{path:"flame-graph-for",loadChildren:()=>Promise.all([C.e(2076),C.e(5399)]).then(C.bind(C,5399)).then(Je=>Je.FlameGraphForPageModule),...Ie(Et)},{path:"flame-graph-date",loadChildren:()=>Promise.all([C.e(2076),C.e(6480)]).then(C.bind(C,6480)).then(Je=>Je.FlameGraphDatePageModule),...Ie(Et)},{path:"flame-graph-compare",loadChildren:()=>Promise.all([C.e(2076),C.e(3100)]).then(C.bind(C,3100)).then(Je=>Je.FlameGraphComparePageModule),...Ie(Et)},{path:"software-testing",loadChildren:()=>Promise.all([C.e(2076),C.e(1015)]).then(C.bind(C,1015)).then(Je=>Je.SoftwareTestingPageModule),...Ie(Et)},{path:"software-testing-chooser",loadChildren:()=>Promise.all([C.e(2076),C.e(8711)]).then(C.bind(C,8711)).then(Je=>Je.SoftwareTestingChooserPageModule),...Ie(Et)},{path:"create-system-test",loadChildren:()=>Promise.all([C.e(2076),C.e(1143)]).then(C.bind(C,1143)).then(Je=>Je.CreateSystemTestPageModule),...Ie(Et)},{path:"execute-system-test",loadChildren:()=>Promise.all([C.e(2076),C.e(1010)]).then(C.bind(C,1010)).then(Je=>Je.ExecuteSystemTestPageModule),...Ie(Et)},{path:"board",loadChildren:()=>Promise.all([C.e(6982),C.e(2076),C.e(3728)]).then(C.bind(C,3728)).then(Je=>Je.BoardPageModule),...Ie(Et)},{path:"view-history-system-test",loadChildren:()=>Promise.all([C.e(2076),C.e(9546)]).then(C.bind(C,9546)).then(Je=>Je.ViewHistorySystemTestPageModule),...Ie(Et)},{path:"view-system-test",loadChildren:()=>Promise.all([C.e(2076),C.e(7056)]).then(C.bind(C,7056)).then(Je=>Je.ViewSystemTestPageModule),...Ie(Et)},{path:"create-unit-test",loadChildren:()=>Promise.all([C.e(2076),C.e(6695)]).then(C.bind(C,6695)).then(Je=>Je.CreateUnitTestPageModule),...Ie(Et)},{path:"settings",loadChildren:()=>Promise.all([C.e(2076),C.e(5371)]).then(C.bind(C,5371)).then(Je=>Je.SettingsPageModule),...Ie(Et)},{path:"create-integration-test",loadChildren:()=>Promise.all([C.e(2076),C.e(2494)]).then(C.bind(C,2494)).then(Je=>Je.CreateIntegrationTestPageModule),...Ie(Et)},{path:"load-test-chooser",loadChildren:()=>Promise.all([C.e(2076),C.e(4163)]).then(C.bind(C,4163)).then(Je=>Je.LoadTestChooserPageModule),...Ie(Et)},{path:"load-test",loadChildren:()=>Promise.all([C.e(9878),C.e(4559)]).then(C.bind(C,4559)).then(Je=>Je.LoadTestPageModule),...Ie(Et)},{path:"load-test-history",loadChildren:()=>Promise.all([C.e(9878),C.e(4304)]).then(C.bind(C,4304)).then(Je=>Je.LoadTestHistoryPageModule),...Ie(Et)},{path:"incident-manager-chooser",loadChildren:()=>Promise.all([C.e(2076),C.e(1133)]).then(C.bind(C,1133)).then(Je=>Je.IncidentManagerChooserPageModule),...Ie(Et)},{path:"incident-manager",loadChildren:()=>Promise.all([C.e(2076),C.e(3675)]).then(C.bind(C,3675)).then(Je=>Je.IncidentManagerPageModule),...Ie(Et)},{path:"new-incident",loadChildren:()=>Promise.all([C.e(6982),C.e(2076),C.e(8839)]).then(C.bind(C,8839)).then(Je=>Je.NewIncidentPageModule),...Ie(Et)},{path:"incident-details",loadChildren:()=>Promise.all([C.e(2076),C.e(7907)]).then(C.bind(C,7907)).then(Je=>Je.IncidentDetailsPageModule),...Ie(Et)},{path:"incident-postmortem",loadChildren:()=>Promise.all([C.e(2076),C.e(6749)]).then(C.bind(C,6749)).then(Je=>Je.IncidentPostmortemPageModule),...Ie(Et)}];let vt=(()=>{var Je;class Sn{}return(Je=Sn).\u0275fac=function(On){return new(On||Je)},Je.\u0275mod=c.$C({type:Je}),Je.\u0275inj=c.G2t({imports:[Z.iI.forRoot(cn,{preloadingStrategy:Z.Kp}),Z.iI]}),Sn})();var Re=C(7440),G=C(4262);const X_firebase={projectId:"devprobe-89481",appId:"1:405563293900:web:ba12c0bd15401fd708c269",storageBucket:"devprobe-89481.appspot.com",apiKey:"AIzaSyAORx8ZNhFZwo_uR4tPEcmF8pKm4GAqi5A",authDomain:"devprobe-89481.firebaseapp.com",messagingSenderId:"405563293900"};var ce=C(1626),ue=C(2820),Ee=C(9032),Ve=C(7616),ut=C(9549),fn=C(2107);let xn=(()=>{var Je;class Sn{}return(Je=Sn).\u0275fac=function(On){return new(On||Je)},Je.\u0275mod=c.$C({type:Je,bootstrap:[it]}),Je.\u0275inj=c.G2t({providers:[{provide:Z.b,useClass:ke.jM},(0,Re.MW)(()=>(0,Re.Wp)(X_firebase)),(0,G.hV)(()=>(0,G.aU)()),(0,at._q)(()=>(0,at.xI)()),(0,Ee.cw)(()=>(0,Ee.v_)()),(0,fn.Xm)(()=>(0,fn.c7)()),ce.q1,(0,ue.eS)()],imports:[h.Bb,$.bv.forRoot(),vt,ce.q1,ue.sN.forRoot({echarts:()=>C.e(9697).then(C.bind(C,9697))}),Ve.n,ut.y2.forRoot()]}),Sn})();(0,c.SmG)(),h.sG().bootstrapModule(xn).catch(Je=>console.log(Je))},4412:(Pn,It,C)=>{"use strict";C.d(It,{t:()=>c});var h=C(1413);class c extends h.B{constructor(ke){super(),this._value=ke}get value(){return this.getValue()}_subscribe(ke){const $=super._subscribe(ke);return!$.closed&&ke.next(this._value),$}getValue(){const{hasError:ke,thrownError:$,_value:he}=this;if(ke)throw $;return this._throwIfClosed(),he}next(ke){super.next(this._value=ke)}}},1985:(Pn,It,C)=>{"use strict";C.d(It,{c:()=>Xe});var h=C(7707),c=C(8359),Z=C(3494),ke=C(1203),$=C(1026),he=C(8071),ae=C(9786);let Xe=(()=>{class et{constructor(Ye){Ye&&(this._subscribe=Ye)}lift(Ye){const at=new et;return at.source=this,at.operator=Ye,at}subscribe(Ye,at,mt){const xt=function be(et){return et&&et instanceof h.vU||function Se(et){return et&&(0,he.T)(et.next)&&(0,he.T)(et.error)&&(0,he.T)(et.complete)}(et)&&(0,c.Uv)(et)}(Ye)?Ye:new h.Ms(Ye,at,mt);return(0,ae.Y)(()=>{const{operator:Dt,source:zt}=this;xt.add(Dt?Dt.call(xt,zt):zt?this._subscribe(xt):this._trySubscribe(xt))}),xt}_trySubscribe(Ye){try{return this._subscribe(Ye)}catch(at){Ye.error(at)}}forEach(Ye,at){return new(at=tt(at))((mt,xt)=>{const Dt=new h.Ms({next:zt=>{try{Ye(zt)}catch(Tt){xt(Tt),Dt.unsubscribe()}},error:xt,complete:mt});this.subscribe(Dt)})}_subscribe(Ye){var at;return null===(at=this.source)||void 0===at?void 0:at.subscribe(Ye)}[Z.s](){return this}pipe(...Ye){return(0,ke.m)(Ye)(this)}toPromise(Ye){return new(Ye=tt(Ye))((at,mt)=>{let xt;this.subscribe(Dt=>xt=Dt,Dt=>mt(Dt),()=>at(xt))})}}return et.create=it=>new et(it),et})();function tt(et){var it;return null!==(it=null!=et?et:$.$.Promise)&&void 0!==it?it:Promise}},2771:(Pn,It,C)=>{"use strict";C.d(It,{m:()=>Z});var h=C(1413),c=C(6129);class Z extends h.B{constructor($=1/0,he=1/0,ae=c.U){super(),this._bufferSize=$,this._windowTime=he,this._timestampProvider=ae,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=he===1/0,this._bufferSize=Math.max(1,$),this._windowTime=Math.max(1,he)}next($){const{isStopped:he,_buffer:ae,_infiniteTimeWindow:Xe,_timestampProvider:tt,_windowTime:Se}=this;he||(ae.push($),!Xe&&ae.push(tt.now()+Se)),this._trimBuffer(),super.next($)}_subscribe($){this._throwIfClosed(),this._trimBuffer();const he=this._innerSubscribe($),{_infiniteTimeWindow:ae,_buffer:Xe}=this,tt=Xe.slice();for(let Se=0;Se{"use strict";C.d(It,{B:()=>ae});var h=C(1985),c=C(8359);const ke=(0,C(1853).L)(tt=>function(){tt(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var $=C(7908),he=C(9786);let ae=(()=>{class tt extends h.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(be){const et=new Xe(this,this);return et.operator=be,et}_throwIfClosed(){if(this.closed)throw new ke}next(be){(0,he.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const et of this.currentObservers)et.next(be)}})}error(be){(0,he.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=be;const{observers:et}=this;for(;et.length;)et.shift().error(be)}})}complete(){(0,he.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:be}=this;for(;be.length;)be.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var be;return(null===(be=this.observers)||void 0===be?void 0:be.length)>0}_trySubscribe(be){return this._throwIfClosed(),super._trySubscribe(be)}_subscribe(be){return this._throwIfClosed(),this._checkFinalizedStatuses(be),this._innerSubscribe(be)}_innerSubscribe(be){const{hasError:et,isStopped:it,observers:Ye}=this;return et||it?c.Kn:(this.currentObservers=null,Ye.push(be),new c.yU(()=>{this.currentObservers=null,(0,$.o)(Ye,be)}))}_checkFinalizedStatuses(be){const{hasError:et,thrownError:it,isStopped:Ye}=this;et?be.error(it):Ye&&be.complete()}asObservable(){const be=new h.c;return be.source=this,be}}return tt.create=(Se,be)=>new Xe(Se,be),tt})();class Xe extends ae{constructor(Se,be){super(),this.destination=Se,this.source=be}next(Se){var be,et;null===(et=null===(be=this.destination)||void 0===be?void 0:be.next)||void 0===et||et.call(be,Se)}error(Se){var be,et;null===(et=null===(be=this.destination)||void 0===be?void 0:be.error)||void 0===et||et.call(be,Se)}complete(){var Se,be;null===(be=null===(Se=this.destination)||void 0===Se?void 0:Se.complete)||void 0===be||be.call(Se)}_subscribe(Se){var be,et;return null!==(et=null===(be=this.source)||void 0===be?void 0:be.subscribe(Se))&&void 0!==et?et:c.Kn}}},7707:(Pn,It,C)=>{"use strict";C.d(It,{Ms:()=>mt,vU:()=>et});var h=C(8071),c=C(8359),Z=C(1026),ke=C(5334),$=C(5343);const he=tt("C",void 0,void 0);function tt(At,Ie,Ze){return{kind:At,value:Ie,error:Ze}}var Se=C(9270),be=C(9786);class et extends c.yU{constructor(Ie){super(),this.isStopped=!1,Ie?(this.destination=Ie,(0,c.Uv)(Ie)&&Ie.add(this)):this.destination=Tt}static create(Ie,Ze,_e){return new mt(Ie,Ze,_e)}next(Ie){this.isStopped?zt(function Xe(At){return tt("N",At,void 0)}(Ie),this):this._next(Ie)}error(Ie){this.isStopped?zt(function ae(At){return tt("E",void 0,At)}(Ie),this):(this.isStopped=!0,this._error(Ie))}complete(){this.isStopped?zt(he,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Ie){this.destination.next(Ie)}_error(Ie){try{this.destination.error(Ie)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const it=Function.prototype.bind;function Ye(At,Ie){return it.call(At,Ie)}class at{constructor(Ie){this.partialObserver=Ie}next(Ie){const{partialObserver:Ze}=this;if(Ze.next)try{Ze.next(Ie)}catch(_e){xt(_e)}}error(Ie){const{partialObserver:Ze}=this;if(Ze.error)try{Ze.error(Ie)}catch(_e){xt(_e)}else xt(Ie)}complete(){const{partialObserver:Ie}=this;if(Ie.complete)try{Ie.complete()}catch(Ze){xt(Ze)}}}class mt extends et{constructor(Ie,Ze,_e){let $e;if(super(),(0,h.T)(Ie)||!Ie)$e={next:null!=Ie?Ie:void 0,error:null!=Ze?Ze:void 0,complete:null!=_e?_e:void 0};else{let Le;this&&Z.$.useDeprecatedNextContext?(Le=Object.create(Ie),Le.unsubscribe=()=>this.unsubscribe(),$e={next:Ie.next&&Ye(Ie.next,Le),error:Ie.error&&Ye(Ie.error,Le),complete:Ie.complete&&Ye(Ie.complete,Le)}):$e=Ie}this.destination=new at($e)}}function xt(At){Z.$.useDeprecatedSynchronousErrorHandling?(0,be.l)(At):(0,ke.m)(At)}function zt(At,Ie){const{onStoppedNotification:Ze}=Z.$;Ze&&Se.f.setTimeout(()=>Ze(At,Ie))}const Tt={closed:!0,next:$.l,error:function Dt(At){throw At},complete:$.l}},8359:(Pn,It,C)=>{"use strict";C.d(It,{Kn:()=>he,yU:()=>$,Uv:()=>ae});var h=C(8071);const Z=(0,C(1853).L)(tt=>function(be){tt(this),this.message=be?`${be.length} errors occurred during unsubscription:\n${be.map((et,it)=>`${it+1}) ${et.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=be});var ke=C(7908);class ${constructor(Se){this.initialTeardown=Se,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Se;if(!this.closed){this.closed=!0;const{_parentage:be}=this;if(be)if(this._parentage=null,Array.isArray(be))for(const Ye of be)Ye.remove(this);else be.remove(this);const{initialTeardown:et}=this;if((0,h.T)(et))try{et()}catch(Ye){Se=Ye instanceof Z?Ye.errors:[Ye]}const{_finalizers:it}=this;if(it){this._finalizers=null;for(const Ye of it)try{Xe(Ye)}catch(at){Se=null!=Se?Se:[],at instanceof Z?Se=[...Se,...at.errors]:Se.push(at)}}if(Se)throw new Z(Se)}}add(Se){var be;if(Se&&Se!==this)if(this.closed)Xe(Se);else{if(Se instanceof $){if(Se.closed||Se._hasParent(this))return;Se._addParent(this)}(this._finalizers=null!==(be=this._finalizers)&&void 0!==be?be:[]).push(Se)}}_hasParent(Se){const{_parentage:be}=this;return be===Se||Array.isArray(be)&&be.includes(Se)}_addParent(Se){const{_parentage:be}=this;this._parentage=Array.isArray(be)?(be.push(Se),be):be?[be,Se]:Se}_removeParent(Se){const{_parentage:be}=this;be===Se?this._parentage=null:Array.isArray(be)&&(0,ke.o)(be,Se)}remove(Se){const{_finalizers:be}=this;be&&(0,ke.o)(be,Se),Se instanceof $&&Se._removeParent(this)}}$.EMPTY=(()=>{const tt=new $;return tt.closed=!0,tt})();const he=$.EMPTY;function ae(tt){return tt instanceof $||tt&&"closed"in tt&&(0,h.T)(tt.remove)&&(0,h.T)(tt.add)&&(0,h.T)(tt.unsubscribe)}function Xe(tt){(0,h.T)(tt)?tt():tt.unsubscribe()}},1026:(Pn,It,C)=>{"use strict";C.d(It,{$:()=>h});const h={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4572:(Pn,It,C)=>{"use strict";C.d(It,{z:()=>Se});var h=C(1985),c=C(3073),Z=C(8455),ke=C(3669),$=C(6450),he=C(9326),ae=C(8496),Xe=C(4360),tt=C(5225);function Se(...it){const Ye=(0,he.lI)(it),at=(0,he.ms)(it),{args:mt,keys:xt}=(0,c.D)(it);if(0===mt.length)return(0,Z.H)([],Ye);const Dt=new h.c(function be(it,Ye,at=ke.D){return mt=>{et(Ye,()=>{const{length:xt}=it,Dt=new Array(xt);let zt=xt,Tt=xt;for(let At=0;At{const Ie=(0,Z.H)(it[At],Ye);let Ze=!1;Ie.subscribe((0,Xe._)(mt,_e=>{Dt[At]=_e,Ze||(Ze=!0,Tt--),Tt||mt.next(at(Dt.slice()))},()=>{--zt||mt.complete()}))},mt)},mt)}}(mt,Ye,xt?zt=>(0,ae.e)(xt,zt):ke.D));return at?Dt.pipe((0,$.I)(at)):Dt}function et(it,Ye,at){it?(0,tt.N)(at,it,Ye):Ye()}},8793:(Pn,It,C)=>{"use strict";C.d(It,{x:()=>$});var h=C(6365),Z=C(9326),ke=C(8455);function $(...he){return function c(){return(0,h.U)(1)}()((0,ke.H)(he,(0,Z.lI)(he)))}},983:(Pn,It,C)=>{"use strict";C.d(It,{w:()=>c});const c=new(C(1985).c)($=>$.complete())},8455:(Pn,It,C)=>{"use strict";C.d(It,{H:()=>Ie});var h=C(8750),c=C(941),Z=C(6745),he=C(1985),Xe=C(4761),tt=C(8071),Se=C(5225);function et(Ze,_e){if(!Ze)throw new Error("Iterable cannot be null");return new he.c($e=>{(0,Se.N)($e,_e,()=>{const Le=Ze[Symbol.asyncIterator]();(0,Se.N)($e,_e,()=>{Le.next().then(Oe=>{Oe.done?$e.complete():$e.next(Oe.value)})},0,!0)})})}var it=C(5055),Ye=C(9858),at=C(7441),mt=C(5397),xt=C(7953),Dt=C(591),zt=C(5196);function Ie(Ze,_e){return _e?function At(Ze,_e){if(null!=Ze){if((0,it.l)(Ze))return function ke(Ze,_e){return(0,h.Tg)(Ze).pipe((0,Z._)(_e),(0,c.Q)(_e))}(Ze,_e);if((0,at.X)(Ze))return function ae(Ze,_e){return new he.c($e=>{let Le=0;return _e.schedule(function(){Le===Ze.length?$e.complete():($e.next(Ze[Le++]),$e.closed||this.schedule())})})}(Ze,_e);if((0,Ye.y)(Ze))return function $(Ze,_e){return(0,h.Tg)(Ze).pipe((0,Z._)(_e),(0,c.Q)(_e))}(Ze,_e);if((0,xt.T)(Ze))return et(Ze,_e);if((0,mt.x)(Ze))return function be(Ze,_e){return new he.c($e=>{let Le;return(0,Se.N)($e,_e,()=>{Le=Ze[Xe.l](),(0,Se.N)($e,_e,()=>{let Oe,Ct;try{({value:Oe,done:Ct}=Le.next())}catch(kt){return void $e.error(kt)}Ct?$e.complete():$e.next(Oe)},0,!0)}),()=>(0,tt.T)(null==Le?void 0:Le.return)&&Le.return()})}(Ze,_e);if((0,zt.U)(Ze))return function Tt(Ze,_e){return et((0,zt.C)(Ze),_e)}(Ze,_e)}throw(0,Dt.L)(Ze)}(Ze,_e):(0,h.Tg)(Ze)}},3726:(Pn,It,C)=>{"use strict";C.d(It,{R:()=>Se});var h=C(8750),c=C(1985),Z=C(1397),ke=C(7441),$=C(8071),he=C(6450);const ae=["addListener","removeListener"],Xe=["addEventListener","removeEventListener"],tt=["on","off"];function Se(at,mt,xt,Dt){if((0,$.T)(xt)&&(Dt=xt,xt=void 0),Dt)return Se(at,mt,xt).pipe((0,he.I)(Dt));const[zt,Tt]=function Ye(at){return(0,$.T)(at.addEventListener)&&(0,$.T)(at.removeEventListener)}(at)?Xe.map(At=>Ie=>at[At](mt,Ie,xt)):function et(at){return(0,$.T)(at.addListener)&&(0,$.T)(at.removeListener)}(at)?ae.map(be(at,mt)):function it(at){return(0,$.T)(at.on)&&(0,$.T)(at.off)}(at)?tt.map(be(at,mt)):[];if(!zt&&(0,ke.X)(at))return(0,Z.Z)(At=>Se(At,mt,xt))((0,h.Tg)(at));if(!zt)throw new TypeError("Invalid event target");return new c.c(At=>{const Ie=(...Ze)=>At.next(1Tt(Ie)})}function be(at,mt){return xt=>Dt=>at[xt](mt,Dt)}},8750:(Pn,It,C)=>{"use strict";C.d(It,{Tg:()=>it});var h=C(1635),c=C(7441),Z=C(9858),ke=C(1985),$=C(5055),he=C(7953),ae=C(591),Xe=C(5397),tt=C(5196),Se=C(8071),be=C(5334),et=C(3494);function it(At){if(At instanceof ke.c)return At;if(null!=At){if((0,$.l)(At))return function Ye(At){return new ke.c(Ie=>{const Ze=At[et.s]();if((0,Se.T)(Ze.subscribe))return Ze.subscribe(Ie);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(At);if((0,c.X)(At))return function at(At){return new ke.c(Ie=>{for(let Ze=0;Ze{At.then(Ze=>{Ie.closed||(Ie.next(Ze),Ie.complete())},Ze=>Ie.error(Ze)).then(null,be.m)})}(At);if((0,he.T)(At))return Dt(At);if((0,Xe.x)(At))return function xt(At){return new ke.c(Ie=>{for(const Ze of At)if(Ie.next(Ze),Ie.closed)return;Ie.complete()})}(At);if((0,tt.U)(At))return function zt(At){return Dt((0,tt.C)(At))}(At)}throw(0,ae.L)(At)}function Dt(At){return new ke.c(Ie=>{(function Tt(At,Ie){var Ze,_e,$e,Le;return(0,h.sH)(this,void 0,void 0,function*(){try{for(Ze=(0,h.xN)(At);!(_e=yield Ze.next()).done;)if(Ie.next(_e.value),Ie.closed)return}catch(Oe){$e={error:Oe}}finally{try{_e&&!_e.done&&(Le=Ze.return)&&(yield Le.call(Ze))}finally{if($e)throw $e.error}}Ie.complete()})})(At,Ie).catch(Ze=>Ie.error(Ze))})}},7786:(Pn,It,C)=>{"use strict";C.d(It,{h:()=>he});var h=C(6365),c=C(8750),Z=C(983),ke=C(9326),$=C(8455);function he(...ae){const Xe=(0,ke.lI)(ae),tt=(0,ke.R0)(ae,1/0),Se=ae;return Se.length?1===Se.length?(0,c.Tg)(Se[0]):(0,h.U)(tt)((0,$.H)(Se,Xe)):Z.w}},7673:(Pn,It,C)=>{"use strict";C.d(It,{of:()=>Z});var h=C(9326),c=C(8455);function Z(...ke){const $=(0,h.lI)(ke);return(0,c.H)(ke,$)}},1584:(Pn,It,C)=>{"use strict";C.d(It,{O:()=>$});var h=C(1985),c=C(3236),Z=C(9470);function $(he=0,ae,Xe=c.b){let tt=-1;return null!=ae&&((0,Z.m)(ae)?Xe=ae:tt=ae),new h.c(Se=>{let be=function ke(he){return he instanceof Date&&!isNaN(he)}(he)?+he-Xe.now():he;be<0&&(be=0);let et=0;return Xe.schedule(function(){Se.closed||(Se.next(et++),0<=tt?this.schedule(void 0,tt):Se.complete())},be)})}},4360:(Pn,It,C)=>{"use strict";C.d(It,{_:()=>c});var h=C(7707);function c(ke,$,he,ae,Xe){return new Z(ke,$,he,ae,Xe)}class Z extends h.vU{constructor($,he,ae,Xe,tt,Se){super($),this.onFinalize=tt,this.shouldUnsubscribe=Se,this._next=he?function(be){try{he(be)}catch(et){$.error(et)}}:super._next,this._error=Xe?function(be){try{Xe(be)}catch(et){$.error(et)}finally{this.unsubscribe()}}:super._error,this._complete=ae?function(){try{ae()}catch(be){$.error(be)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var $;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:he}=this;super.unsubscribe(),!he&&(null===($=this.onFinalize)||void 0===$||$.call(this))}}}},274:(Pn,It,C)=>{"use strict";C.d(It,{H:()=>Z});var h=C(1397),c=C(8071);function Z(ke,$){return(0,c.T)($)?(0,h.Z)(ke,$,1):(0,h.Z)(ke,1)}},9901:(Pn,It,C)=>{"use strict";C.d(It,{U:()=>Z});var h=C(9974),c=C(4360);function Z(ke){return(0,h.N)(($,he)=>{let ae=!1;$.subscribe((0,c._)(he,Xe=>{ae=!0,he.next(Xe)},()=>{ae||he.next(ke),he.complete()}))})}},3294:(Pn,It,C)=>{"use strict";C.d(It,{F:()=>ke});var h=C(3669),c=C(9974),Z=C(4360);function ke(he,ae=h.D){return he=null!=he?he:$,(0,c.N)((Xe,tt)=>{let Se,be=!0;Xe.subscribe((0,Z._)(tt,et=>{const it=ae(et);(be||!he(Se,it))&&(be=!1,Se=it,tt.next(et))}))})}function $(he,ae){return he===ae}},5964:(Pn,It,C)=>{"use strict";C.d(It,{p:()=>Z});var h=C(9974),c=C(4360);function Z(ke,$){return(0,h.N)((he,ae)=>{let Xe=0;he.subscribe((0,c._)(ae,tt=>ke.call($,tt,Xe++)&&ae.next(tt)))})}},980:(Pn,It,C)=>{"use strict";C.d(It,{j:()=>c});var h=C(9974);function c(Z){return(0,h.N)((ke,$)=>{try{ke.subscribe($)}finally{$.add(Z)}})}},1594:(Pn,It,C)=>{"use strict";C.d(It,{$:()=>ae});var h=C(9350),c=C(5964),Z=C(6697),ke=C(9901),$=C(3774),he=C(3669);function ae(Xe,tt){const Se=arguments.length>=2;return be=>be.pipe(Xe?(0,c.p)((et,it)=>Xe(et,it,be)):he.D,(0,Z.s)(1),Se?(0,ke.U)(tt):(0,$.v)(()=>new h.G))}},6354:(Pn,It,C)=>{"use strict";C.d(It,{T:()=>Z});var h=C(9974),c=C(4360);function Z(ke,$){return(0,h.N)((he,ae)=>{let Xe=0;he.subscribe((0,c._)(ae,tt=>{ae.next(ke.call($,tt,Xe++))}))})}},3703:(Pn,It,C)=>{"use strict";C.d(It,{u:()=>c});var h=C(6354);function c(Z){return(0,h.T)(()=>Z)}},6365:(Pn,It,C)=>{"use strict";C.d(It,{U:()=>Z});var h=C(1397),c=C(3669);function Z(ke=1/0){return(0,h.Z)(c.D,ke)}},1397:(Pn,It,C)=>{"use strict";C.d(It,{Z:()=>Xe});var h=C(6354),c=C(8750),Z=C(9974),ke=C(5225),$=C(4360),ae=C(8071);function Xe(tt,Se,be=1/0){return(0,ae.T)(Se)?Xe((et,it)=>(0,h.T)((Ye,at)=>Se(et,Ye,it,at))((0,c.Tg)(tt(et,it))),be):("number"==typeof Se&&(be=Se),(0,Z.N)((et,it)=>function he(tt,Se,be,et,it,Ye,at,mt){const xt=[];let Dt=0,zt=0,Tt=!1;const At=()=>{Tt&&!xt.length&&!Dt&&Se.complete()},Ie=_e=>Dt{Ye&&Se.next(_e),Dt++;let $e=!1;(0,c.Tg)(be(_e,zt++)).subscribe((0,$._)(Se,Le=>{null==it||it(Le),Ye?Ie(Le):Se.next(Le)},()=>{$e=!0},void 0,()=>{if($e)try{for(Dt--;xt.length&&DtZe(Le)):Ze(Le)}At()}catch(Le){Se.error(Le)}}))};return tt.subscribe((0,$._)(Se,Ie,()=>{Tt=!0,At()})),()=>{null==mt||mt()}}(et,it,tt,be)))}},941:(Pn,It,C)=>{"use strict";C.d(It,{Q:()=>ke});var h=C(5225),c=C(9974),Z=C(4360);function ke($,he=0){return(0,c.N)((ae,Xe)=>{ae.subscribe((0,Z._)(Xe,tt=>(0,h.N)(Xe,$,()=>Xe.next(tt),he),()=>(0,h.N)(Xe,$,()=>Xe.complete(),he),tt=>(0,h.N)(Xe,$,()=>Xe.error(tt),he)))})}},9172:(Pn,It,C)=>{"use strict";C.d(It,{Z:()=>ke});var h=C(8793),c=C(9326),Z=C(9974);function ke(...$){const he=(0,c.lI)($);return(0,Z.N)((ae,Xe)=>{(he?(0,h.x)($,ae,he):(0,h.x)($,ae)).subscribe(Xe)})}},6745:(Pn,It,C)=>{"use strict";C.d(It,{_:()=>c});var h=C(9974);function c(Z,ke=0){return(0,h.N)(($,he)=>{he.add(Z.schedule(()=>$.subscribe(he),ke))})}},5558:(Pn,It,C)=>{"use strict";C.d(It,{n:()=>ke});var h=C(8750),c=C(9974),Z=C(4360);function ke($,he){return(0,c.N)((ae,Xe)=>{let tt=null,Se=0,be=!1;const et=()=>be&&!tt&&Xe.complete();ae.subscribe((0,Z._)(Xe,it=>{null==tt||tt.unsubscribe();let Ye=0;const at=Se++;(0,h.Tg)($(it,at)).subscribe(tt=(0,Z._)(Xe,mt=>Xe.next(he?he(it,mt,at,Ye++):mt),()=>{tt=null,et()}))},()=>{be=!0,et()}))})}},6697:(Pn,It,C)=>{"use strict";C.d(It,{s:()=>ke});var h=C(983),c=C(9974),Z=C(4360);function ke($){return $<=0?()=>h.w:(0,c.N)((he,ae)=>{let Xe=0;he.subscribe((0,Z._)(ae,tt=>{++Xe<=$&&(ae.next(tt),$<=Xe&&ae.complete())}))})}},6977:(Pn,It,C)=>{"use strict";C.d(It,{Q:()=>$});var h=C(9974),c=C(4360),Z=C(8750),ke=C(5343);function $(he){return(0,h.N)((ae,Xe)=>{(0,Z.Tg)(he).subscribe((0,c._)(Xe,()=>Xe.complete(),ke.l)),!Xe.closed&&ae.subscribe(Xe)})}},8141:(Pn,It,C)=>{"use strict";C.d(It,{M:()=>$});var h=C(8071),c=C(9974),Z=C(4360),ke=C(3669);function $(he,ae,Xe){const tt=(0,h.T)(he)||ae||Xe?{next:he,error:ae,complete:Xe}:he;return tt?(0,c.N)((Se,be)=>{var et;null===(et=tt.subscribe)||void 0===et||et.call(tt);let it=!0;Se.subscribe((0,Z._)(be,Ye=>{var at;null===(at=tt.next)||void 0===at||at.call(tt,Ye),be.next(Ye)},()=>{var Ye;it=!1,null===(Ye=tt.complete)||void 0===Ye||Ye.call(tt),be.complete()},Ye=>{var at;it=!1,null===(at=tt.error)||void 0===at||at.call(tt,Ye),be.error(Ye)},()=>{var Ye,at;it&&(null===(Ye=tt.unsubscribe)||void 0===Ye||Ye.call(tt)),null===(at=tt.finalize)||void 0===at||at.call(tt)}))}):ke.D}},3774:(Pn,It,C)=>{"use strict";C.d(It,{v:()=>ke});var h=C(9350),c=C(9974),Z=C(4360);function ke(he=$){return(0,c.N)((ae,Xe)=>{let tt=!1;ae.subscribe((0,Z._)(Xe,Se=>{tt=!0,Xe.next(Se)},()=>tt?Xe.complete():Xe.error(he())))})}function $(){return new h.G}},6780:(Pn,It,C)=>{"use strict";C.d(It,{R:()=>$});var h=C(8359);class c extends h.yU{constructor(ae,Xe){super()}schedule(ae,Xe=0){return this}}const Z={setInterval(he,ae,...Xe){const{delegate:tt}=Z;return null!=tt&&tt.setInterval?tt.setInterval(he,ae,...Xe):setInterval(he,ae,...Xe)},clearInterval(he){const{delegate:ae}=Z;return((null==ae?void 0:ae.clearInterval)||clearInterval)(he)},delegate:void 0};var ke=C(7908);class $ extends c{constructor(ae,Xe){super(ae,Xe),this.scheduler=ae,this.work=Xe,this.pending=!1}schedule(ae,Xe=0){var tt;if(this.closed)return this;this.state=ae;const Se=this.id,be=this.scheduler;return null!=Se&&(this.id=this.recycleAsyncId(be,Se,Xe)),this.pending=!0,this.delay=Xe,this.id=null!==(tt=this.id)&&void 0!==tt?tt:this.requestAsyncId(be,this.id,Xe),this}requestAsyncId(ae,Xe,tt=0){return Z.setInterval(ae.flush.bind(ae,this),tt)}recycleAsyncId(ae,Xe,tt=0){if(null!=tt&&this.delay===tt&&!1===this.pending)return Xe;null!=Xe&&Z.clearInterval(Xe)}execute(ae,Xe){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const tt=this._execute(ae,Xe);if(tt)return tt;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(ae,Xe){let Se,tt=!1;try{this.work(ae)}catch(be){tt=!0,Se=be||new Error("Scheduled action threw falsy error")}if(tt)return this.unsubscribe(),Se}unsubscribe(){if(!this.closed){const{id:ae,scheduler:Xe}=this,{actions:tt}=Xe;this.work=this.state=this.scheduler=null,this.pending=!1,(0,ke.o)(tt,this),null!=ae&&(this.id=this.recycleAsyncId(Xe,ae,null)),this.delay=null,super.unsubscribe()}}}},9687:(Pn,It,C)=>{"use strict";C.d(It,{q:()=>Z});var h=C(6129);class c{constructor($,he=c.now){this.schedulerActionCtor=$,this.now=he}schedule($,he=0,ae){return new this.schedulerActionCtor(this,$).schedule(ae,he)}}c.now=h.U.now;class Z extends c{constructor($,he=c.now){super($,he),this.actions=[],this._active=!1}flush($){const{actions:he}=this;if(this._active)return void he.push($);let ae;this._active=!0;do{if(ae=$.execute($.state,$.delay))break}while($=he.shift());if(this._active=!1,ae){for(;$=he.shift();)$.unsubscribe();throw ae}}}},3236:(Pn,It,C)=>{"use strict";C.d(It,{E:()=>Z,b:()=>ke});var h=C(6780);const Z=new(C(9687).q)(h.R),ke=Z},6129:(Pn,It,C)=>{"use strict";C.d(It,{U:()=>h});const h={now:()=>(h.delegate||Date).now(),delegate:void 0}},9270:(Pn,It,C)=>{"use strict";C.d(It,{f:()=>h});const h={setTimeout(c,Z,...ke){const{delegate:$}=h;return null!=$&&$.setTimeout?$.setTimeout(c,Z,...ke):setTimeout(c,Z,...ke)},clearTimeout(c){const{delegate:Z}=h;return((null==Z?void 0:Z.clearTimeout)||clearTimeout)(c)},delegate:void 0}},4761:(Pn,It,C)=>{"use strict";C.d(It,{l:()=>c});const c=function h(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Pn,It,C)=>{"use strict";C.d(It,{s:()=>h});const h="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(Pn,It,C)=>{"use strict";C.d(It,{G:()=>c});const c=(0,C(1853).L)(Z=>function(){Z(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(Pn,It,C)=>{"use strict";C.d(It,{R0:()=>he,lI:()=>$,ms:()=>ke});var h=C(8071),c=C(9470);function Z(ae){return ae[ae.length-1]}function ke(ae){return(0,h.T)(Z(ae))?ae.pop():void 0}function $(ae){return(0,c.m)(Z(ae))?ae.pop():void 0}function he(ae,Xe){return"number"==typeof Z(ae)?ae.pop():Xe}},3073:(Pn,It,C)=>{"use strict";C.d(It,{D:()=>$});const{isArray:h}=Array,{getPrototypeOf:c,prototype:Z,keys:ke}=Object;function $(ae){if(1===ae.length){const Xe=ae[0];if(h(Xe))return{args:Xe,keys:null};if(function he(ae){return ae&&"object"==typeof ae&&c(ae)===Z}(Xe)){const tt=ke(Xe);return{args:tt.map(Se=>Xe[Se]),keys:tt}}}return{args:ae,keys:null}}},7908:(Pn,It,C)=>{"use strict";function h(c,Z){if(c){const ke=c.indexOf(Z);0<=ke&&c.splice(ke,1)}}C.d(It,{o:()=>h})},1853:(Pn,It,C)=>{"use strict";function h(c){const ke=c($=>{Error.call($),$.stack=(new Error).stack});return ke.prototype=Object.create(Error.prototype),ke.prototype.constructor=ke,ke}C.d(It,{L:()=>h})},8496:(Pn,It,C)=>{"use strict";function h(c,Z){return c.reduce((ke,$,he)=>(ke[$]=Z[he],ke),{})}C.d(It,{e:()=>h})},9786:(Pn,It,C)=>{"use strict";C.d(It,{Y:()=>Z,l:()=>ke});var h=C(1026);let c=null;function Z($){if(h.$.useDeprecatedSynchronousErrorHandling){const he=!c;if(he&&(c={errorThrown:!1,error:null}),$(),he){const{errorThrown:ae,error:Xe}=c;if(c=null,ae)throw Xe}}else $()}function ke($){h.$.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=$)}},5225:(Pn,It,C)=>{"use strict";function h(c,Z,ke,$=0,he=!1){const ae=Z.schedule(function(){ke(),he?c.add(this.schedule(null,$)):this.unsubscribe()},$);if(c.add(ae),!he)return ae}C.d(It,{N:()=>h})},3669:(Pn,It,C)=>{"use strict";function h(c){return c}C.d(It,{D:()=>h})},7441:(Pn,It,C)=>{"use strict";C.d(It,{X:()=>h});const h=c=>c&&"number"==typeof c.length&&"function"!=typeof c},7953:(Pn,It,C)=>{"use strict";C.d(It,{T:()=>c});var h=C(8071);function c(Z){return Symbol.asyncIterator&&(0,h.T)(null==Z?void 0:Z[Symbol.asyncIterator])}},8071:(Pn,It,C)=>{"use strict";function h(c){return"function"==typeof c}C.d(It,{T:()=>h})},5055:(Pn,It,C)=>{"use strict";C.d(It,{l:()=>Z});var h=C(3494),c=C(8071);function Z(ke){return(0,c.T)(ke[h.s])}},5397:(Pn,It,C)=>{"use strict";C.d(It,{x:()=>Z});var h=C(4761),c=C(8071);function Z(ke){return(0,c.T)(null==ke?void 0:ke[h.l])}},4402:(Pn,It,C)=>{"use strict";C.d(It,{A:()=>Z});var h=C(1985),c=C(8071);function Z(ke){return!!ke&&(ke instanceof h.c||(0,c.T)(ke.lift)&&(0,c.T)(ke.subscribe))}},9858:(Pn,It,C)=>{"use strict";C.d(It,{y:()=>c});var h=C(8071);function c(Z){return(0,h.T)(null==Z?void 0:Z.then)}},5196:(Pn,It,C)=>{"use strict";C.d(It,{C:()=>Z,U:()=>ke});var h=C(1635),c=C(8071);function Z($){return(0,h.AQ)(this,arguments,function*(){const ae=$.getReader();try{for(;;){const{value:Xe,done:tt}=yield(0,h.N3)(ae.read());if(tt)return yield(0,h.N3)(void 0);yield yield(0,h.N3)(Xe)}}finally{ae.releaseLock()}})}function ke($){return(0,c.T)(null==$?void 0:$.getReader)}},9470:(Pn,It,C)=>{"use strict";C.d(It,{m:()=>c});var h=C(8071);function c(Z){return Z&&(0,h.T)(Z.schedule)}},9974:(Pn,It,C)=>{"use strict";C.d(It,{N:()=>Z,S:()=>c});var h=C(8071);function c(ke){return(0,h.T)(null==ke?void 0:ke.lift)}function Z(ke){return $=>{if(c($))return $.lift(function(he){try{return ke(he,this)}catch(ae){this.error(ae)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Pn,It,C)=>{"use strict";C.d(It,{I:()=>ke});var h=C(6354);const{isArray:c}=Array;function ke($){return(0,h.T)(he=>function Z($,he){return c(he)?$(...he):$(he)}($,he))}},5343:(Pn,It,C)=>{"use strict";function h(){}C.d(It,{l:()=>h})},1203:(Pn,It,C)=>{"use strict";C.d(It,{F:()=>c,m:()=>Z});var h=C(3669);function c(...ke){return Z(ke)}function Z(ke){return 0===ke.length?h.D:1===ke.length?ke[0]:function(he){return ke.reduce((ae,Xe)=>Xe(ae),he)}}},5334:(Pn,It,C)=>{"use strict";C.d(It,{m:()=>Z});var h=C(1026),c=C(9270);function Z(ke){c.f.setTimeout(()=>{const{onUnhandledError:$}=h.$;if(!$)throw ke;$(ke)})}},591:(Pn,It,C)=>{"use strict";function h(c){return new TypeError(`You provided ${null!==c&&"object"==typeof c?"an invalid object":`'${c}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}C.d(It,{L:()=>h})},8996:(Pn,It,C)=>{var h={"./ion-accordion_2.entry.js":[2375,2076,2375],"./ion-action-sheet.entry.js":[8814,2076,8814],"./ion-alert.entry.js":[5222,2076,5222],"./ion-app_8.entry.js":[7720,2076,7720],"./ion-avatar_3.entry.js":[1049,1049],"./ion-back-button.entry.js":[3162,2076,3162],"./ion-backdrop.entry.js":[7240,7240],"./ion-breadcrumb_2.entry.js":[8314,2076,8314],"./ion-button_2.entry.js":[4591,4591],"./ion-card_5.entry.js":[8584,8584],"./ion-checkbox.entry.js":[3511,3511],"./ion-chip.entry.js":[6024,6024],"./ion-col_3.entry.js":[5100,5100],"./ion-datetime-button.entry.js":[7428,1293,7428],"./ion-datetime_3.entry.js":[2885,1293,2076,2885],"./ion-fab_3.entry.js":[4463,2076,4463],"./ion-img.entry.js":[4183,4183],"./ion-infinite-scroll_2.entry.js":[4171,2076,4171],"./ion-input-password-toggle.entry.js":[6521,2076,6521],"./ion-input.entry.js":[9344,2076,9344],"./ion-item-option_3.entry.js":[5949,2076,5949],"./ion-item_8.entry.js":[3506,2076,3506],"./ion-loading.entry.js":[7372,2076,7372],"./ion-menu_3.entry.js":[2075,2076,2075],"./ion-modal.entry.js":[441,2076,441],"./ion-nav_2.entry.js":[5712,2076,5712],"./ion-picker-column-option.entry.js":[9013,9013],"./ion-picker-column.entry.js":[1459,2076,1459],"./ion-picker.entry.js":[6840,6840],"./ion-popover.entry.js":[6433,2076,6433],"./ion-progress-bar.entry.js":[9977,9977],"./ion-radio_2.entry.js":[8066,2076,8066],"./ion-range.entry.js":[8477,2076,8477],"./ion-refresher_2.entry.js":[5197,2076,5197],"./ion-reorder_2.entry.js":[7030,2076,7030],"./ion-ripple-effect.entry.js":[964,964],"./ion-route_4.entry.js":[8970,8970],"./ion-searchbar.entry.js":[8193,2076,8193],"./ion-segment_2.entry.js":[2560,2076,2560],"./ion-select_3.entry.js":[7076,2076,7076],"./ion-spinner.entry.js":[8805,2076,8805],"./ion-split-pane.entry.js":[5887,5887],"./ion-tab-bar_2.entry.js":[4406,2076,4406],"./ion-tab_2.entry.js":[1102,1102],"./ion-text.entry.js":[1577,1577],"./ion-textarea.entry.js":[2348,2076,2348],"./ion-toast.entry.js":[2415,2076,2415],"./ion-toggle.entry.js":[3814,2076,3814]};function c(Z){if(!C.o(h,Z))return Promise.resolve().then(()=>{var he=new Error("Cannot find module '"+Z+"'");throw he.code="MODULE_NOT_FOUND",he});var ke=h[Z],$=ke[0];return Promise.all(ke.slice(1).map(C.e)).then(()=>C($))}c.keys=()=>Object.keys(h),c.id=8996,Pn.exports=c},177:(Pn,It,C)=>{"use strict";C.d(It,{AJ:()=>en,Jj:()=>Pt,MD:()=>wt,N0:()=>Bi,QT:()=>Z,QX:()=>vr,Sm:()=>mt,Sq:()=>pr,T3:()=>Zn,UE:()=>Gn,VF:()=>$,Vy:()=>Yn,Xr:()=>Wr,ZD:()=>ke,_b:()=>O,aZ:()=>Dt,bT:()=>jn,fw:()=>xt,hb:()=>Ye,hj:()=>tt,qQ:()=>ae});var h=C(4438);let c=null;function Z(){return c}function ke(T){var j;null!==(j=c)&&void 0!==j||(c=T)}class ${}const ae=new h.nKC("");let Xe=(()=>{var T;class j{historyGo(F){throw new Error("")}}return(T=j).\u0275fac=function(F){return new(F||T)},T.\u0275prov=h.jDH({token:T,factory:()=>(0,h.WQX)(Se),providedIn:"platform"}),j})();const tt=new h.nKC("");let Se=(()=>{var T;class j extends Xe{constructor(){super(),this._doc=(0,h.WQX)(ae),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Z().getBaseHref(this._doc)}onPopState(F){const De=Z().getGlobalEventTarget(this._doc,"window");return De.addEventListener("popstate",F,!1),()=>De.removeEventListener("popstate",F)}onHashChange(F){const De=Z().getGlobalEventTarget(this._doc,"window");return De.addEventListener("hashchange",F,!1),()=>De.removeEventListener("hashchange",F)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(F){this._location.pathname=F}pushState(F,De,Qe){this._history.pushState(F,De,Qe)}replaceState(F,De,Qe){this._history.replaceState(F,De,Qe)}forward(){this._history.forward()}back(){this._history.back()}historyGo(F=0){this._history.go(F)}getState(){return this._history.state}}return(T=j).\u0275fac=function(F){return new(F||T)},T.\u0275prov=h.jDH({token:T,factory:()=>new T,providedIn:"platform"}),j})();function be(T,j){if(0==T.length)return j;if(0==j.length)return T;let Ue=0;return T.endsWith("/")&&Ue++,j.startsWith("/")&&Ue++,2==Ue?T+j.substring(1):1==Ue?T+j:T+"/"+j}function et(T){const j=T.match(/#|\?|$/),Ue=j&&j.index||T.length;return T.slice(0,Ue-("/"===T[Ue-1]?1:0))+T.slice(Ue)}function it(T){return T&&"?"!==T[0]?"?"+T:T}let Ye=(()=>{var T;class j{historyGo(F){throw new Error("")}}return(T=j).\u0275fac=function(F){return new(F||T)},T.\u0275prov=h.jDH({token:T,factory:()=>(0,h.WQX)(mt),providedIn:"root"}),j})();const at=new h.nKC("");let mt=(()=>{var T;class j extends Ye{constructor(F,De){var Qe,tn,Fn;super(),this._platformLocation=F,this._removeListenerFns=[],this._baseHref=null!==(Qe=null!==(tn=null!=De?De:this._platformLocation.getBaseHrefFromDOM())&&void 0!==tn?tn:null===(Fn=(0,h.WQX)(ae).location)||void 0===Fn?void 0:Fn.origin)&&void 0!==Qe?Qe:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}prepareExternalUrl(F){return be(this._baseHref,F)}path(F=!1){const De=this._platformLocation.pathname+it(this._platformLocation.search),Qe=this._platformLocation.hash;return Qe&&F?`${De}${Qe}`:De}pushState(F,De,Qe,tn){const Fn=this.prepareExternalUrl(Qe+it(tn));this._platformLocation.pushState(F,De,Fn)}replaceState(F,De,Qe,tn){const Fn=this.prepareExternalUrl(Qe+it(tn));this._platformLocation.replaceState(F,De,Fn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var De,Qe;null===(De=(Qe=this._platformLocation).historyGo)||void 0===De||De.call(Qe,F)}}return(T=j).\u0275fac=function(F){return new(F||T)(h.KVO(Xe),h.KVO(at,8))},T.\u0275prov=h.jDH({token:T,factory:T.\u0275fac,providedIn:"root"}),j})(),xt=(()=>{var T;class j extends Ye{constructor(F,De){super(),this._platformLocation=F,this._baseHref="",this._removeListenerFns=[],null!=De&&(this._baseHref=De)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}path(F=!1){var De;const Qe=null!==(De=this._platformLocation.hash)&&void 0!==De?De:"#";return Qe.length>0?Qe.substring(1):Qe}prepareExternalUrl(F){const De=be(this._baseHref,F);return De.length>0?"#"+De:De}pushState(F,De,Qe,tn){let Fn=this.prepareExternalUrl(Qe+it(tn));0==Fn.length&&(Fn=this._platformLocation.pathname),this._platformLocation.pushState(F,De,Fn)}replaceState(F,De,Qe,tn){let Fn=this.prepareExternalUrl(Qe+it(tn));0==Fn.length&&(Fn=this._platformLocation.pathname),this._platformLocation.replaceState(F,De,Fn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var De,Qe;null===(De=(Qe=this._platformLocation).historyGo)||void 0===De||De.call(Qe,F)}}return(T=j).\u0275fac=function(F){return new(F||T)(h.KVO(Xe),h.KVO(at,8))},T.\u0275prov=h.jDH({token:T,factory:T.\u0275fac}),j})(),Dt=(()=>{var T;class j{constructor(F){this._subject=new h.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=F;const De=this._locationStrategy.getBaseHref();this._basePath=function Ie(T){if(new RegExp("^(https?:)?//").test(T)){const[,Ue]=T.split(/\/\/[^\/]+/);return Ue}return T}(et(At(De))),this._locationStrategy.onPopState(Qe=>{this._subject.emit({url:this.path(!0),pop:!0,state:Qe.state,type:Qe.type})})}ngOnDestroy(){var F;null===(F=this._urlChangeSubscription)||void 0===F||F.unsubscribe(),this._urlChangeListeners=[]}path(F=!1){return this.normalize(this._locationStrategy.path(F))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(F,De=""){return this.path()==this.normalize(F+it(De))}normalize(F){return j.stripTrailingSlash(function Tt(T,j){if(!T||!j.startsWith(T))return j;const Ue=j.substring(T.length);return""===Ue||["/",";","?","#"].includes(Ue[0])?Ue:j}(this._basePath,At(F)))}prepareExternalUrl(F){return F&&"/"!==F[0]&&(F="/"+F),this._locationStrategy.prepareExternalUrl(F)}go(F,De="",Qe=null){this._locationStrategy.pushState(Qe,"",F,De),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+it(De)),Qe)}replaceState(F,De="",Qe=null){this._locationStrategy.replaceState(Qe,"",F,De),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+it(De)),Qe)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(F=0){var De,Qe;null===(De=(Qe=this._locationStrategy).historyGo)||void 0===De||De.call(Qe,F)}onUrlChange(F){var De;return this._urlChangeListeners.push(F),null!==(De=this._urlChangeSubscription)&&void 0!==De||(this._urlChangeSubscription=this.subscribe(Qe=>{this._notifyUrlChangeListeners(Qe.url,Qe.state)})),()=>{const Qe=this._urlChangeListeners.indexOf(F);var tn;this._urlChangeListeners.splice(Qe,1),0===this._urlChangeListeners.length&&(null===(tn=this._urlChangeSubscription)||void 0===tn||tn.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(F="",De){this._urlChangeListeners.forEach(Qe=>Qe(F,De))}subscribe(F,De,Qe){return this._subject.subscribe({next:F,error:De,complete:Qe})}}return(T=j).normalizeQueryParams=it,T.joinWithSlash=be,T.stripTrailingSlash=et,T.\u0275fac=function(F){return new(F||T)(h.KVO(Ye))},T.\u0275prov=h.jDH({token:T,factory:()=>function zt(){return new Dt((0,h.KVO)(Ye))}(),providedIn:"root"}),j})();function At(T){return T.replace(/\/index.html$/,"")}var _e=function(T){return T[T.Decimal=0]="Decimal",T[T.Percent=1]="Percent",T[T.Currency=2]="Currency",T[T.Scientific=3]="Scientific",T}(_e||{});const kt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Ve(T,j){const Ue=(0,h.H5H)(T),F=Ue[h.KH2.NumberSymbols][j];if(typeof F>"u"){if(j===kt.CurrencyDecimal)return Ue[h.KH2.NumberSymbols][kt.Decimal];if(j===kt.CurrencyGroup)return Ue[h.KH2.NumberSymbols][kt.Group]}return F}const gt=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Gt(T){const j=parseInt(T);if(isNaN(j))throw new Error("Invalid integer literal when parsing "+T);return j}function O(T,j){j=encodeURIComponent(j);for(const Ue of T.split(";")){const F=Ue.indexOf("="),[De,Qe]=-1==F?[Ue,""]:[Ue.slice(0,F),Ue.slice(F+1)];if(De.trim()===j)return decodeURIComponent(Qe)}return null}class rn{constructor(j,Ue,F,De){this.$implicit=j,this.ngForOf=Ue,this.index=F,this.count=De}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let pr=(()=>{var T;class j{set ngForOf(F){this._ngForOf=F,this._ngForOfDirty=!0}set ngForTrackBy(F){this._trackByFn=F}get ngForTrackBy(){return this._trackByFn}constructor(F,De,Qe){this._viewContainer=F,this._template=De,this._differs=Qe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(F){F&&(this._template=F)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const F=this._ngForOf;!this._differ&&F&&(this._differ=this._differs.find(F).create(this.ngForTrackBy))}if(this._differ){const F=this._differ.diff(this._ngForOf);F&&this._applyChanges(F)}}_applyChanges(F){const De=this._viewContainer;F.forEachOperation((Qe,tn,Fn)=>{if(null==Qe.previousIndex)De.createEmbeddedView(this._template,new rn(Qe.item,this._ngForOf,-1,-1),null===Fn?void 0:Fn);else if(null==Fn)De.remove(null===tn?void 0:tn);else if(null!==tn){const Er=De.get(tn);De.move(Er,Fn),qn(Er,Qe)}});for(let Qe=0,tn=De.length;Qe{qn(De.get(Qe.currentIndex),Qe)})}static ngTemplateContextGuard(F,De){return!0}}return(T=j).\u0275fac=function(F){return new(F||T)(h.rXU(h.c1b),h.rXU(h.C4Q),h.rXU(h._q3))},T.\u0275dir=h.FsC({type:T,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),j})();function qn(T,j){T.context.$implicit=j.item}let jn=(()=>{var T;class j{constructor(F,De){this._viewContainer=F,this._context=new zr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=De}set ngIf(F){this._context.$implicit=this._context.ngIf=F,this._updateView()}set ngIfThen(F){$r("ngIfThen",F),this._thenTemplateRef=F,this._thenViewRef=null,this._updateView()}set ngIfElse(F){$r("ngIfElse",F),this._elseTemplateRef=F,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(F,De){return!0}}return(T=j).\u0275fac=function(F){return new(F||T)(h.rXU(h.c1b),h.rXU(h.C4Q))},T.\u0275dir=h.FsC({type:T,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),j})();class zr{constructor(){this.$implicit=null,this.ngIf=null}}function $r(T,j){if(j&&!j.createEmbeddedView)throw new Error(`${T} must be a TemplateRef, but received '${(0,h.Tbb)(j)}'.`)}let Zn=(()=>{var T;class j{constructor(F){this._viewContainerRef=F,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(F){if(this._shouldRecreateView(F)){var De;const Qe=this._viewContainerRef;if(this._viewRef&&Qe.remove(Qe.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const tn=this._createContextForwardProxy();this._viewRef=Qe.createEmbeddedView(this.ngTemplateOutlet,tn,{injector:null!==(De=this.ngTemplateOutletInjector)&&void 0!==De?De:void 0})}}_shouldRecreateView(F){return!!F.ngTemplateOutlet||!!F.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(F,De,Qe)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,De,Qe),get:(F,De,Qe)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,De,Qe)}})}}return(T=j).\u0275fac=function(F){return new(F||T)(h.rXU(h.c1b))},T.\u0275dir=h.FsC({type:T,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[h.OA$]}),j})();function fi(T,j){return new h.wOt(2100,!1)}class yi{createSubscription(j,Ue){return(0,h.O8t)(()=>j.subscribe({next:Ue,error:F=>{throw F}}))}dispose(j){(0,h.O8t)(()=>j.unsubscribe())}}class vo{createSubscription(j,Ue){return j.then(Ue,F=>{throw F})}dispose(j){}}const bo=new vo,ui=new yi;let Pt=(()=>{var T;class j{constructor(F){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=F}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(F){if(!this._obj){if(F)try{this.markForCheckOnValueUpdate=!1,this._subscribe(F)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return F!==this._obj?(this._dispose(),this.transform(F)):this._latestValue}_subscribe(F){this._obj=F,this._strategy=this._selectStrategy(F),this._subscription=this._strategy.createSubscription(F,De=>this._updateLatestValue(F,De))}_selectStrategy(F){if((0,h.jNT)(F))return bo;if((0,h.zjR)(F))return ui;throw fi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(F,De){var Qe;F===this._obj&&(this._latestValue=De,this.markForCheckOnValueUpdate)&&(null===(Qe=this._ref)||void 0===Qe||Qe.markForCheck())}}return(T=j).\u0275fac=function(F){return new(F||T)(h.rXU(h.gRc,16))},T.\u0275pipe=h.EJ8({name:"async",type:T,pure:!1,standalone:!0}),j})(),vr=(()=>{var T;class j{constructor(F){this._locale=F}transform(F,De,Qe){if(!function ye(T){return!(null==T||""===T||T!=T)}(F))return null;Qe||(Qe=this._locale);try{return function oi(T,j,Ue){return function wr(T,j,Ue,F,De,Qe,tn=!1){let Fn="",Er=!1;if(isFinite(T)){let ur=function vi(T){let F,De,Qe,tn,Fn,j=Math.abs(T)+"",Ue=0;for((De=j.indexOf("."))>-1&&(j=j.replace(".","")),(Qe=j.search(/e/i))>0?(De<0&&(De=Qe),De+=+j.slice(Qe+1),j=j.substring(0,Qe)):De<0&&(De=j.length),Qe=0;"0"===j.charAt(Qe);Qe++);if(Qe===(Fn=j.length))F=[0],De=1;else{for(Fn--;"0"===j.charAt(Fn);)Fn--;for(De-=Qe,F=[],tn=0;Qe<=Fn;Qe++,tn++)F[tn]=Number(j.charAt(Qe))}return De>22&&(F=F.splice(0,21),Ue=De-1,De=1),{digits:F,exponent:Ue,integerLen:De}}(T);tn&&(ur=function xi(T){if(0===T.digits[0])return T;const j=T.digits.length-T.integerLen;return T.exponent?T.exponent+=2:(0===j?T.digits.push(0,0):1===j&&T.digits.push(0),T.integerLen+=2),T}(ur));let bi=j.minInt,ri=j.minFrac,Ii=j.maxFrac;if(Qe){const Ni=Qe.match(gt);if(null===Ni)throw new Error(`${Qe} is not a valid digit info`);const lo=Ni[1],Vi=Ni[3],uo=Ni[5];null!=lo&&(bi=Gt(lo)),null!=Vi&&(ri=Gt(Vi)),null!=uo?Ii=Gt(uo):null!=Vi&&ri>Ii&&(Ii=ri)}!function Ar(T,j,Ue){if(j>Ue)throw new Error(`The minimum number of digits after fraction (${j}) is higher than the maximum (${Ue}).`);let F=T.digits,De=F.length-T.integerLen;const Qe=Math.min(Math.max(j,De),Ue);let tn=Qe+T.integerLen,Fn=F[tn];if(tn>0){F.splice(Math.max(T.integerLen,tn));for(let ri=tn;ri=5)if(tn-1<0){for(let ri=0;ri>tn;ri--)F.unshift(0),T.integerLen++;F.unshift(1),T.integerLen++}else F[tn-1]++;for(;De=ur?to.pop():Er=!1),Ii>=10?1:0},0);bi&&(F.unshift(bi),T.integerLen++)}(ur,ri,Ii);let gi=ur.digits,to=ur.integerLen;const wi=ur.exponent;let Bn=[];for(Er=gi.every(Ni=>!Ni);to0?Bn=gi.splice(to,gi.length):(Bn=gi,gi=[0]);const ir=[];for(gi.length>=j.lgSize&&ir.unshift(gi.splice(-j.lgSize,gi.length).join(""));gi.length>j.gSize;)ir.unshift(gi.splice(-j.gSize,gi.length).join(""));gi.length&&ir.unshift(gi.join("")),Fn=ir.join(Ve(Ue,F)),Bn.length&&(Fn+=Ve(Ue,De)+Bn.join("")),wi&&(Fn+=Ve(Ue,kt.Exponential)+"+"+wi)}else Fn=Ve(Ue,kt.Infinity);return Fn=T<0&&!Er?j.negPre+Fn+j.negSuf:j.posPre+Fn+j.posSuf,Fn}(T,function Ir(T,j="-"){const Ue={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},F=T.split(";"),De=F[0],Qe=F[1],tn=-1!==De.indexOf(".")?De.split("."):[De.substring(0,De.lastIndexOf("0")+1),De.substring(De.lastIndexOf("0")+1)],Fn=tn[0],Er=tn[1]||"";Ue.posPre=Fn.substring(0,Fn.indexOf("#"));for(let bi=0;bi{var T;class j{}return(T=j).\u0275fac=function(F){return new(F||T)},T.\u0275mod=h.$C({type:T}),T.\u0275inj=h.G2t({}),j})();const en="browser",pn="server";function Gn(T){return T===en}function Yn(T){return T===pn}let Wr=(()=>{var T;class j{}return(T=j).\u0275prov=(0,h.jDH)({token:T,providedIn:"root",factory:()=>Gn((0,h.WQX)(h.Agw))?new kr((0,h.WQX)(ae),window):new Fi}),j})();class kr{constructor(j,Ue){this.document=j,this.window=Ue,this.offset=()=>[0,0]}setOffset(j){this.offset=Array.isArray(j)?()=>j:j}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(j){this.window.scrollTo(j[0],j[1])}scrollToAnchor(j){const Ue=function ki(T,j){const Ue=T.getElementById(j)||T.getElementsByName(j)[0];if(Ue)return Ue;if("function"==typeof T.createTreeWalker&&T.body&&"function"==typeof T.body.attachShadow){const F=T.createTreeWalker(T.body,NodeFilter.SHOW_ELEMENT);let De=F.currentNode;for(;De;){const Qe=De.shadowRoot;if(Qe){const tn=Qe.getElementById(j)||Qe.querySelector(`[name="${j}"]`);if(tn)return tn}De=F.nextNode()}}return null}(this.document,j);Ue&&(this.scrollToElement(Ue),Ue.focus())}setHistoryScrollRestoration(j){this.window.history.scrollRestoration=j}scrollToElement(j){const Ue=j.getBoundingClientRect(),F=Ue.left+this.window.pageXOffset,De=Ue.top+this.window.pageYOffset,Qe=this.offset();this.window.scrollTo(F-Qe[0],De-Qe[1])}}class Fi{setOffset(j){}getScrollPosition(){return[0,0]}scrollToPosition(j){}scrollToAnchor(j){}setHistoryScrollRestoration(j){}}class Bi{}},1626:(Pn,It,C)=>{"use strict";C.d(It,{Qq:()=>ce,q1:()=>Tn}),C(467);var c=C(4438),Z=C(7673),ke=C(1985),$=C(8455),he=C(274),ae=C(5964),Xe=C(6354),tt=C(980),Se=C(5558),be=C(177);class et{}class it{}class Ye{constructor(O){this.normalizedNames=new Map,this.lazyUpdate=null,O?"string"==typeof O?this.lazyInit=()=>{this.headers=new Map,O.split("\n").forEach(re=>{const we=re.indexOf(":");if(we>0){const We=re.slice(0,we),St=We.toLowerCase(),nn=re.slice(we+1).trim();this.maybeSetNormalizedName(We,St),this.headers.has(St)?this.headers.get(St).push(nn):this.headers.set(St,[nn])}})}:typeof Headers<"u"&&O instanceof Headers?(this.headers=new Map,O.forEach((re,we)=>{this.setHeaderEntries(we,re)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(O).forEach(([re,we])=>{this.setHeaderEntries(re,we)})}:this.headers=new Map}has(O){return this.init(),this.headers.has(O.toLowerCase())}get(O){this.init();const re=this.headers.get(O.toLowerCase());return re&&re.length>0?re[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(O){return this.init(),this.headers.get(O.toLowerCase())||null}append(O,re){return this.clone({name:O,value:re,op:"a"})}set(O,re){return this.clone({name:O,value:re,op:"s"})}delete(O,re){return this.clone({name:O,value:re,op:"d"})}maybeSetNormalizedName(O,re){this.normalizedNames.has(re)||this.normalizedNames.set(re,O)}init(){this.lazyInit&&(this.lazyInit instanceof Ye?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(O=>this.applyUpdate(O)),this.lazyUpdate=null))}copyFrom(O){O.init(),Array.from(O.headers.keys()).forEach(re=>{this.headers.set(re,O.headers.get(re)),this.normalizedNames.set(re,O.normalizedNames.get(re))})}clone(O){const re=new Ye;return re.lazyInit=this.lazyInit&&this.lazyInit instanceof Ye?this.lazyInit:this,re.lazyUpdate=(this.lazyUpdate||[]).concat([O]),re}applyUpdate(O){const re=O.name.toLowerCase();switch(O.op){case"a":case"s":let we=O.value;if("string"==typeof we&&(we=[we]),0===we.length)return;this.maybeSetNormalizedName(O.name,re);const We=("a"===O.op?this.headers.get(re):void 0)||[];We.push(...we),this.headers.set(re,We);break;case"d":const St=O.value;if(St){let nn=this.headers.get(re);if(!nn)return;nn=nn.filter(rn=>-1===St.indexOf(rn)),0===nn.length?(this.headers.delete(re),this.normalizedNames.delete(re)):this.headers.set(re,nn)}else this.headers.delete(re),this.normalizedNames.delete(re)}}setHeaderEntries(O,re){const we=(Array.isArray(re)?re:[re]).map(St=>St.toString()),We=O.toLowerCase();this.headers.set(We,we),this.maybeSetNormalizedName(O,We)}forEach(O){this.init(),Array.from(this.normalizedNames.keys()).forEach(re=>O(this.normalizedNames.get(re),this.headers.get(re)))}}class mt{encodeKey(O){return Tt(O)}encodeValue(O){return Tt(O)}decodeKey(O){return decodeURIComponent(O)}decodeValue(O){return decodeURIComponent(O)}}const Dt=/%(\d[a-f0-9])/gi,zt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Tt(M){return encodeURIComponent(M).replace(Dt,(O,re)=>{var we;return null!==(we=zt[re])&&void 0!==we?we:O})}function At(M){return`${M}`}class Ie{constructor(O={}){if(this.updates=null,this.cloneFrom=null,this.encoder=O.encoder||new mt,O.fromString){if(O.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function xt(M,O){const re=new Map;return M.length>0&&M.replace(/^\?/,"").split("&").forEach(We=>{const St=We.indexOf("="),[nn,rn]=-1==St?[O.decodeKey(We),""]:[O.decodeKey(We.slice(0,St)),O.decodeValue(We.slice(St+1))],pr=re.get(nn)||[];pr.push(rn),re.set(nn,pr)}),re}(O.fromString,this.encoder)}else O.fromObject?(this.map=new Map,Object.keys(O.fromObject).forEach(re=>{const we=O.fromObject[re],We=Array.isArray(we)?we.map(At):[At(we)];this.map.set(re,We)})):this.map=null}has(O){return this.init(),this.map.has(O)}get(O){this.init();const re=this.map.get(O);return re?re[0]:null}getAll(O){return this.init(),this.map.get(O)||null}keys(){return this.init(),Array.from(this.map.keys())}append(O,re){return this.clone({param:O,value:re,op:"a"})}appendAll(O){const re=[];return Object.keys(O).forEach(we=>{const We=O[we];Array.isArray(We)?We.forEach(St=>{re.push({param:we,value:St,op:"a"})}):re.push({param:we,value:We,op:"a"})}),this.clone(re)}set(O,re){return this.clone({param:O,value:re,op:"s"})}delete(O,re){return this.clone({param:O,value:re,op:"d"})}toString(){return this.init(),this.keys().map(O=>{const re=this.encoder.encodeKey(O);return this.map.get(O).map(we=>re+"="+this.encoder.encodeValue(we)).join("&")}).filter(O=>""!==O).join("&")}clone(O){const re=new Ie({encoder:this.encoder});return re.cloneFrom=this.cloneFrom||this,re.updates=(this.updates||[]).concat(O),re}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(O=>this.map.set(O,this.cloneFrom.map.get(O))),this.updates.forEach(O=>{switch(O.op){case"a":case"s":const re=("a"===O.op?this.map.get(O.param):void 0)||[];re.push(At(O.value)),this.map.set(O.param,re);break;case"d":if(void 0===O.value){this.map.delete(O.param);break}{let we=this.map.get(O.param)||[];const We=we.indexOf(At(O.value));-1!==We&&we.splice(We,1),we.length>0?this.map.set(O.param,we):this.map.delete(O.param)}}}),this.cloneFrom=this.updates=null)}}class _e{constructor(){this.map=new Map}set(O,re){return this.map.set(O,re),this}get(O){return this.map.has(O)||this.map.set(O,O.defaultValue()),this.map.get(O)}delete(O){return this.map.delete(O),this}has(O){return this.map.has(O)}keys(){return this.map.keys()}}function Le(M){return typeof ArrayBuffer<"u"&&M instanceof ArrayBuffer}function Oe(M){return typeof Blob<"u"&&M instanceof Blob}function Ct(M){return typeof FormData<"u"&&M instanceof FormData}class Cn{constructor(O,re,we,We){var St,nn;let rn;if(this.url=re,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=O.toUpperCase(),function $e(M){switch(M){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||We?(this.body=void 0!==we?we:null,rn=We):rn=we,rn&&(this.reportProgress=!!rn.reportProgress,this.withCredentials=!!rn.withCredentials,rn.responseType&&(this.responseType=rn.responseType),rn.headers&&(this.headers=rn.headers),rn.context&&(this.context=rn.context),rn.params&&(this.params=rn.params),this.transferCache=rn.transferCache),null!==(St=this.headers)&&void 0!==St||(this.headers=new Ye),null!==(nn=this.context)&&void 0!==nn||(this.context=new _e),this.params){const pr=this.params.toString();if(0===pr.length)this.urlWithParams=re;else{const qn=re.indexOf("?");this.urlWithParams=re+(-1===qn?"?":qner.set(Rr,O.setHeaders[Rr]),$r)),O.setParams&&(Pr=Object.keys(O.setParams).reduce((er,Rr)=>er.set(Rr,O.setParams[Rr]),Pr)),new Cn(nn,rn,Sr,{params:Pr,headers:$r,context:Nr,reportProgress:zr,responseType:pr,withCredentials:jn,transferCache:qn})}}var Et=function(M){return M[M.Sent=0]="Sent",M[M.UploadProgress=1]="UploadProgress",M[M.ResponseHeader=2]="ResponseHeader",M[M.DownloadProgress=3]="DownloadProgress",M[M.Response=4]="Response",M[M.User=5]="User",M}(Et||{});class st{constructor(O,re=G.Ok,we="OK"){this.headers=O.headers||new Ye,this.status=void 0!==O.status?O.status:re,this.statusText=O.statusText||we,this.url=O.url||null,this.ok=this.status>=200&&this.status<300}}class cn extends st{constructor(O={}){super(O),this.type=Et.ResponseHeader}clone(O={}){return new cn({headers:O.headers||this.headers,status:void 0!==O.status?O.status:this.status,statusText:O.statusText||this.statusText,url:O.url||this.url||void 0})}}class vt extends st{constructor(O={}){super(O),this.type=Et.Response,this.body=void 0!==O.body?O.body:null}clone(O={}){return new vt({body:void 0!==O.body?O.body:this.body,headers:O.headers||this.headers,status:void 0!==O.status?O.status:this.status,statusText:O.statusText||this.statusText,url:O.url||this.url||void 0})}}class Re extends st{constructor(O){super(O,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${O.url||"(unknown url)"}`:`Http failure response for ${O.url||"(unknown url)"}: ${O.status} ${O.statusText}`,this.error=O.error||null}}var G=function(M){return M[M.Continue=100]="Continue",M[M.SwitchingProtocols=101]="SwitchingProtocols",M[M.Processing=102]="Processing",M[M.EarlyHints=103]="EarlyHints",M[M.Ok=200]="Ok",M[M.Created=201]="Created",M[M.Accepted=202]="Accepted",M[M.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",M[M.NoContent=204]="NoContent",M[M.ResetContent=205]="ResetContent",M[M.PartialContent=206]="PartialContent",M[M.MultiStatus=207]="MultiStatus",M[M.AlreadyReported=208]="AlreadyReported",M[M.ImUsed=226]="ImUsed",M[M.MultipleChoices=300]="MultipleChoices",M[M.MovedPermanently=301]="MovedPermanently",M[M.Found=302]="Found",M[M.SeeOther=303]="SeeOther",M[M.NotModified=304]="NotModified",M[M.UseProxy=305]="UseProxy",M[M.Unused=306]="Unused",M[M.TemporaryRedirect=307]="TemporaryRedirect",M[M.PermanentRedirect=308]="PermanentRedirect",M[M.BadRequest=400]="BadRequest",M[M.Unauthorized=401]="Unauthorized",M[M.PaymentRequired=402]="PaymentRequired",M[M.Forbidden=403]="Forbidden",M[M.NotFound=404]="NotFound",M[M.MethodNotAllowed=405]="MethodNotAllowed",M[M.NotAcceptable=406]="NotAcceptable",M[M.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",M[M.RequestTimeout=408]="RequestTimeout",M[M.Conflict=409]="Conflict",M[M.Gone=410]="Gone",M[M.LengthRequired=411]="LengthRequired",M[M.PreconditionFailed=412]="PreconditionFailed",M[M.PayloadTooLarge=413]="PayloadTooLarge",M[M.UriTooLong=414]="UriTooLong",M[M.UnsupportedMediaType=415]="UnsupportedMediaType",M[M.RangeNotSatisfiable=416]="RangeNotSatisfiable",M[M.ExpectationFailed=417]="ExpectationFailed",M[M.ImATeapot=418]="ImATeapot",M[M.MisdirectedRequest=421]="MisdirectedRequest",M[M.UnprocessableEntity=422]="UnprocessableEntity",M[M.Locked=423]="Locked",M[M.FailedDependency=424]="FailedDependency",M[M.TooEarly=425]="TooEarly",M[M.UpgradeRequired=426]="UpgradeRequired",M[M.PreconditionRequired=428]="PreconditionRequired",M[M.TooManyRequests=429]="TooManyRequests",M[M.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",M[M.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",M[M.InternalServerError=500]="InternalServerError",M[M.NotImplemented=501]="NotImplemented",M[M.BadGateway=502]="BadGateway",M[M.ServiceUnavailable=503]="ServiceUnavailable",M[M.GatewayTimeout=504]="GatewayTimeout",M[M.HttpVersionNotSupported=505]="HttpVersionNotSupported",M[M.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",M[M.InsufficientStorage=507]="InsufficientStorage",M[M.LoopDetected=508]="LoopDetected",M[M.NotExtended=510]="NotExtended",M[M.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",M}(G||{});function X(M,O){return{body:O,headers:M.headers,context:M.context,observe:M.observe,params:M.params,reportProgress:M.reportProgress,responseType:M.responseType,withCredentials:M.withCredentials,transferCache:M.transferCache}}let ce=(()=>{var M;class O{constructor(we){this.handler=we}request(we,We,St={}){let nn;if(we instanceof Cn)nn=we;else{let qn,Sr;qn=St.headers instanceof Ye?St.headers:new Ye(St.headers),St.params&&(Sr=St.params instanceof Ie?St.params:new Ie({fromObject:St.params})),nn=new Cn(we,We,void 0!==St.body?St.body:null,{headers:qn,context:St.context,params:Sr,reportProgress:St.reportProgress,responseType:St.responseType||"json",withCredentials:St.withCredentials,transferCache:St.transferCache})}const rn=(0,Z.of)(nn).pipe((0,he.H)(qn=>this.handler.handle(qn)));if(we instanceof Cn||"events"===St.observe)return rn;const pr=rn.pipe((0,ae.p)(qn=>qn instanceof vt));switch(St.observe||"body"){case"body":switch(nn.responseType){case"arraybuffer":return pr.pipe((0,Xe.T)(qn=>{if(null!==qn.body&&!(qn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return qn.body}));case"blob":return pr.pipe((0,Xe.T)(qn=>{if(null!==qn.body&&!(qn.body instanceof Blob))throw new Error("Response is not a Blob.");return qn.body}));case"text":return pr.pipe((0,Xe.T)(qn=>{if(null!==qn.body&&"string"!=typeof qn.body)throw new Error("Response is not a string.");return qn.body}));default:return pr.pipe((0,Xe.T)(qn=>qn.body))}case"response":return pr;default:throw new Error(`Unreachable: unhandled observe type ${St.observe}}`)}}delete(we,We={}){return this.request("DELETE",we,We)}get(we,We={}){return this.request("GET",we,We)}head(we,We={}){return this.request("HEAD",we,We)}jsonp(we,We){return this.request("JSONP",we,{params:(new Ie).append(We,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(we,We={}){return this.request("OPTIONS",we,We)}patch(we,We,St={}){return this.request("PATCH",we,X(St,We))}post(we,We,St={}){return this.request("POST",we,X(St,We))}put(we,We,St={}){return this.request("PUT",we,X(St,We))}}return(M=O).\u0275fac=function(we){return new(we||M)(c.KVO(et))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),O})();function Je(M,O){return O(M)}function Sn(M,O){return(re,we)=>O.intercept(re,{handle:We=>M(We,we)})}const On=new c.nKC(""),or=new c.nKC(""),gr=new c.nKC(""),cr=new c.nKC("");function dr(){let M=null;return(O,re)=>{var we;null===M&&(M=(null!==(we=(0,c.WQX)(On,{optional:!0}))&&void 0!==we?we:[]).reduceRight(Sn,Je));const We=(0,c.WQX)(c.TgB),St=We.add();return M(O,re).pipe((0,tt.j)(()=>We.remove(St)))}}let Xt=(()=>{var M;class O extends et{constructor(we,We){super(),this.backend=we,this.injector=We,this.chain=null,this.pendingTasks=(0,c.WQX)(c.TgB);const St=(0,c.WQX)(cr,{optional:!0});this.backend=null!=St?St:we}handle(we){if(null===this.chain){const St=Array.from(new Set([...this.injector.get(or),...this.injector.get(gr,[])]));this.chain=St.reduceRight((nn,rn)=>function kn(M,O,re){return(we,We)=>(0,c.N4e)(re,()=>O(we,St=>M(St,We)))}(nn,rn,this.injector),Je)}const We=this.pendingTasks.add();return this.chain(we,St=>this.backend.handle(St)).pipe((0,tt.j)(()=>this.pendingTasks.remove(We)))}}return(M=O).\u0275fac=function(we){return new(we||M)(c.KVO(it),c.KVO(c.uvJ))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),O})();const Mr=/^\)\]\}',?\n/;let ii=(()=>{var M;class O{constructor(we){this.xhrFactory=we}handle(we){if("JSONP"===we.method)throw new c.wOt(-2800,!1);const We=this.xhrFactory;return(We.\u0275loadImpl?(0,$.H)(We.\u0275loadImpl()):(0,Z.of)(null)).pipe((0,Se.n)(()=>new ke.c(nn=>{const rn=We.build();if(rn.open(we.method,we.urlWithParams),we.withCredentials&&(rn.withCredentials=!0),we.headers.forEach((er,Rr)=>rn.setRequestHeader(er,Rr.join(","))),we.headers.has("Accept")||rn.setRequestHeader("Accept","application/json, text/plain, */*"),!we.headers.has("Content-Type")){const er=we.detectContentTypeHeader();null!==er&&rn.setRequestHeader("Content-Type",er)}if(we.responseType){const er=we.responseType.toLowerCase();rn.responseType="json"!==er?er:"text"}const pr=we.serializeBody();let qn=null;const Sr=()=>{if(null!==qn)return qn;const er=rn.statusText||"OK",Rr=new Ye(rn.getAllResponseHeaders()),di=function sr(M){return"responseURL"in M&&M.responseURL?M.responseURL:/^X-Request-URL:/m.test(M.getAllResponseHeaders())?M.getResponseHeader("X-Request-URL"):null}(rn)||we.url;return qn=new cn({headers:Rr,status:rn.status,statusText:er,url:di}),qn},jn=()=>{let{headers:er,status:Rr,statusText:di,url:hi}=Sr(),Yr=null;Rr!==G.NoContent&&(Yr=typeof rn.response>"u"?rn.responseText:rn.response),0===Rr&&(Rr=Yr?G.Ok:0);let Hr=Rr>=200&&Rr<300;if("json"===we.responseType&&"string"==typeof Yr){const _i=Yr;Yr=Yr.replace(Mr,"");try{Yr=""!==Yr?JSON.parse(Yr):null}catch(tr){Yr=_i,Hr&&(Hr=!1,Yr={error:tr,text:Yr})}}Hr?(nn.next(new vt({body:Yr,headers:er,status:Rr,statusText:di,url:hi||void 0})),nn.complete()):nn.error(new Re({error:Yr,headers:er,status:Rr,statusText:di,url:hi||void 0}))},zr=er=>{const{url:Rr}=Sr(),di=new Re({error:er,status:rn.status||0,statusText:rn.statusText||"Unknown Error",url:Rr||void 0});nn.error(di)};let $r=!1;const Pr=er=>{$r||(nn.next(Sr()),$r=!0);let Rr={type:Et.DownloadProgress,loaded:er.loaded};er.lengthComputable&&(Rr.total=er.total),"text"===we.responseType&&rn.responseText&&(Rr.partialText=rn.responseText),nn.next(Rr)},Nr=er=>{let Rr={type:Et.UploadProgress,loaded:er.loaded};er.lengthComputable&&(Rr.total=er.total),nn.next(Rr)};return rn.addEventListener("load",jn),rn.addEventListener("error",zr),rn.addEventListener("timeout",zr),rn.addEventListener("abort",zr),we.reportProgress&&(rn.addEventListener("progress",Pr),null!==pr&&rn.upload&&rn.upload.addEventListener("progress",Nr)),rn.send(pr),nn.next({type:Et.Sent}),()=>{rn.removeEventListener("error",zr),rn.removeEventListener("abort",zr),rn.removeEventListener("load",jn),rn.removeEventListener("timeout",zr),we.reportProgress&&(rn.removeEventListener("progress",Pr),null!==pr&&rn.upload&&rn.upload.removeEventListener("progress",Nr)),rn.readyState!==rn.DONE&&rn.abort()}})))}}return(M=O).\u0275fac=function(we){return new(we||M)(c.KVO(be.N0))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),O})();const Tr=new c.nKC(""),Br=new c.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Lr=new c.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class li{}let Di=(()=>{var M;class O{constructor(we,We,St){this.doc=we,this.platform=We,this.cookieName=St,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const we=this.doc.cookie||"";return we!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,be._b)(we,this.cookieName),this.lastCookieString=we),this.lastToken}}return(M=O).\u0275fac=function(we){return new(we||M)(c.KVO(be.qQ),c.KVO(c.Agw),c.KVO(Br))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),O})();function Zr(M,O){const re=M.url.toLowerCase();if(!(0,c.WQX)(Tr)||"GET"===M.method||"HEAD"===M.method||re.startsWith("http://")||re.startsWith("https://"))return O(M);const we=(0,c.WQX)(li).getToken(),We=(0,c.WQX)(Lr);return null!=we&&!M.headers.has(We)&&(M=M.clone({headers:M.headers.set(We,we)})),O(M)}var rt=function(M){return M[M.Interceptors=0]="Interceptors",M[M.LegacyInterceptors=1]="LegacyInterceptors",M[M.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",M[M.NoXsrfProtection=3]="NoXsrfProtection",M[M.JsonpSupport=4]="JsonpSupport",M[M.RequestsMadeViaParent=5]="RequestsMadeViaParent",M[M.Fetch=6]="Fetch",M}(rt||{});function Nt(M,O){return{\u0275kind:M,\u0275providers:O}}function pt(...M){const O=[ce,ii,Xt,{provide:et,useExisting:Xt},{provide:it,useExisting:ii},{provide:or,useValue:Zr,multi:!0},{provide:Tr,useValue:!0},{provide:li,useClass:Di}];for(const re of M)O.push(...re.\u0275providers);return(0,c.EmA)(O)}const Ae=new c.nKC("");let Tn=(()=>{var M;class O{}return(M=O).\u0275fac=function(we){return new(we||M)},M.\u0275mod=c.$C({type:M}),M.\u0275inj=c.G2t({providers:[pt(Nt(rt.LegacyInterceptors,[{provide:Ae,useFactory:dr},{provide:or,useExisting:Ae,multi:!0}]))]}),O})()},4438:(Pn,It,C)=>{"use strict";C.d(It,{iLQ:()=>GE,sZ2:()=>yv,hnV:()=>aD,Hbi:()=>Z1,o8S:()=>Cd,BIS:()=>Ay,gRc:()=>ED,Ql9:()=>D1,Ocv:()=>O1,Z63:()=>Ao,aKT:()=>Ju,uvJ:()=>Qo,zcH:()=>tl,bkB:()=>Ks,$GK:()=>Pt,nKC:()=>We,zZn:()=>Ts,_q3:()=>ZE,MKu:()=>eI,xe9:()=>uy,Co$:()=>ji,Vns:()=>Io,SKi:()=>Bo,Xx1:()=>Gn,Agw:()=>eh,PLl:()=>Ev,rOR:()=>Zu,sFG:()=>vm,_9s:()=>up,czy:()=>Yg,WPN:()=>sc,kdw:()=>_r,C4Q:()=>ap,NYb:()=>_1,giA:()=>oD,xvI:()=>WR,RxE:()=>JT,c1b:()=>pd,gXe:()=>Zo,mal:()=>d_,L39:()=>SM,a0P:()=>FM,Ol2:()=>Q0,w6W:()=>_s,oH4:()=>mD,QZP:()=>YD,SmG:()=>V1,Rfq:()=>Zr,WQX:()=>Fe,Hps:()=>Lm,QuC:()=>So,EmA:()=>dl,Udg:()=>RM,fpN:()=>J1,HJs:()=>LM,N4e:()=>Co,vPA:()=>_d,O8t:()=>PM,H3F:()=>ZT,H8p:()=>zl,KH2:()=>Qp,TgB:()=>Pp,wOt:()=>nt,WHO:()=>rD,e01:()=>iD,lNU:()=>dr,h9k:()=>$g,$MX:()=>qi,ZF7:()=>To,Kcf:()=>il,e5t:()=>aI,UyX:()=>sI,cWb:()=>Py,osQ:()=>xv,H5H:()=>AE,Zy3:()=>Lt,mq5:()=>hC,JZv:()=>sr,LfX:()=>Gt,plB:()=>sl,jNT:()=>zE,zjR:()=>sD,TL$:()=>Dg,Tbb:()=>ar,rcV:()=>Rl,Vt3:()=>wp,Mj6:()=>ls,GFd:()=>ro,OA$:()=>fo,Jv_:()=>DT,aNF:()=>bT,R7$:()=>a0,BMQ:()=>aE,AVh:()=>pE,vxM:()=>rC,wni:()=>eT,VBU:()=>Ki,FsC:()=>Eo,jDH:()=>Ir,G2t:()=>vi,$C:()=>cs,EJ8:()=>ko,rXU:()=>sd,nrm:()=>EE,eu8:()=>IE,bVm:()=>J_,qex:()=>Y_,k0s:()=>Q_,j41:()=>q_,RV6:()=>uC,xGo:()=>hf,KVO:()=>W,kS0:()=>jc,QTQ:()=>l0,bIt:()=>DE,lsd:()=>rT,qSk:()=>ef,XpG:()=>zC,nI1:()=>NT,bMT:()=>kT,i5U:()=>FT,SdG:()=>GC,NAR:()=>HC,Y8G:()=>dE,FS9:()=>wE,Mz_:()=>ry,lJ4:()=>ST,mGM:()=>nT,sdS:()=>iT,Dyx:()=>sC,Z7z:()=>oC,fX1:()=>iC,Njj:()=>wc,eBV:()=>Md,npT:()=>pu,$dS:()=>fh,B4B:()=>ac,n$t:()=>Hf,xc7:()=>fE,DNE:()=>xp,EFF:()=>pT,JRh:()=>SE,SpI:()=>iy,Lme:()=>RE,DH7:()=>CT,mxI:()=>PE,R50:()=>ME,GBs:()=>tT}),C(467);let Z=null,ke=!1,$=1;const he=Symbol("SIGNAL");function ae(e){const t=Z;return Z=e,t}const be={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function et(e){if(ke)throw new Error("");if(null===Z)return;Z.consumerOnSignalRead(e);const t=Z.nextProducerIndex++;$e(Z),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Tt(e){$e(e);for(let t=0;t0}function $e(e){var t,r,o;null!==(t=e.producerNode)&&void 0!==t||(e.producerNode=[]),null!==(r=e.producerIndexOfThis)&&void 0!==r||(e.producerIndexOfThis=[]),null!==(o=e.producerLastReadVersion)&&void 0!==o||(e.producerLastReadVersion=[])}function Le(e){var t,r;null!==(t=e.liveConsumerNode)&&void 0!==t||(e.liveConsumerNode=[]),null!==(r=e.liveConsumerIndexOfThis)&&void 0!==r||(e.liveConsumerIndexOfThis=[])}let cn=function st(){throw new Error};function vt(){cn()}let G=null;function Ee(e,t){mt()||vt(),e.equal(e.value,t)||(e.value=t,function fn(e){var t;e.version++,function it(){$++}(),at(e),null===(t=G)||void 0===t||t()}(e))}const ut={...be,equal:function c(e,t){return Object.is(e,t)},value:void 0};const un=()=>{},Je={...be,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:un};var kn=C(1413),On=C(8359),or=C(4412),gr=C(6354);const dr="https://g.co/ng/security#xss";class nt extends Error{constructor(t,r){super(Lt(t,r)),this.code=t}}function Lt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function $n(e){return{toString:e}.toString()}const on="__parameters__";function rr(e,t,r){return $n(()=>{const o=function Vr(e){return function(...r){if(e){const o=e(...r);for(const a in o)this[a]=o[a]}}}(t);function a(...d){if(this instanceof a)return o.apply(this,d),this;const g=new a(...d);return y.annotation=g,y;function y(A,U,Y){const me=A.hasOwnProperty(on)?A[on]:Object.defineProperty(A,on,{value:[]})[on];for(;me.length<=Y;)me.push(null);return(me[Y]=me[Y]||[]).push(g),A}}return r&&(a.prototype=Object.create(r.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const sr=globalThis;function yr(e){for(let t in e)if(e[t]===yr)return t;throw Error("Could not find renamed property on target object.")}function Br(e,t){for(const r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function ar(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ar).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const r=t.indexOf("\n");return-1===r?t:t.substring(0,r)}function Lr(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Di=yr({__forward_ref__:yr});function Zr(e){return e.__forward_ref__=Zr,e.toString=function(){return ar(this())},e}function ve(e){return rt(e)?e():e}function rt(e){return"function"==typeof e&&e.hasOwnProperty(Di)&&e.__forward_ref__===Zr}function Ir(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function vi(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ar(e){return ie(e,M)||ie(e,re)}function Gt(e){return null!==Ar(e)}function ie(e,t){return e.hasOwnProperty(t)?e[t]:null}function ze(e){return e&&(e.hasOwnProperty(O)||e.hasOwnProperty(we))?e[O]:null}const M=yr({\u0275prov:yr}),O=yr({\u0275inj:yr}),re=yr({ngInjectableDef:yr}),we=yr({ngInjectorDef:yr});class We{constructor(t,r){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=Ir({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Nr(e){return e&&!!e.\u0275providers}const er=yr({\u0275cmp:yr}),Rr=yr({\u0275dir:yr}),di=yr({\u0275pipe:yr}),hi=yr({\u0275mod:yr}),Yr=yr({\u0275fac:yr}),Hr=yr({__NG_ELEMENT_ID__:yr}),_i=yr({__NG_ENV_ID__:yr});function tr(e){return"string"==typeof e?e:null==e?"":String(e)}function ui(e,t){throw new nt(-201,!1)}var Pt=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Pt||{});let ge;function fe(){return ge}function K(e){const t=ge;return ge=e,t}function je(e,t,r){const o=Ar(e);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:r&Pt.Optional?null:void 0!==t?t:void ui()}const Kt={},Dn="__NG_DI_FLAG__",Hn="ngTempTokenPath",H=/\n/gm,P="__source";let Te;function vr(e){const t=Te;return Te=e,t}function ai(e,t=Pt.Default){if(void 0===Te)throw new nt(-203,!1);return null===Te?je(e,void 0,t):Te.get(e,t&Pt.Optional?null:void 0,t)}function W(e,t=Pt.Default){return(fe()||ai)(ve(e),t)}function Fe(e,t=Pt.Default){return W(e,ot(t))}function ot(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ot(e){const t=[];for(let r=0;rArray.isArray(r)?ki(r,t):t(r))}function Fi(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function Bi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function so(e,t,r){let o=wo(e,t);return o>=0?e[1|o]=r:(o=~o,function Oi(e,t,r,o){let a=e.length;if(a==t)e.push(r,o);else if(1===a)e.push(o,e[0]),e[0]=r;else{for(a--,e.push(e[a-1],e[a]);a>t;)e[a]=e[a-2],a--;e[t]=r,e[t+1]=o}}(e,o,t,r)),o}function Ko(e,t){const r=wo(e,t);if(r>=0)return e[1|r]}function wo(e,t){return function ho(e,t,r){let o=0,a=e.length>>r;for(;a!==o;){const d=o+(a-o>>1),g=e[d<t?a=d:o=d+1}return~(a<t){g=d-1;break}}}for(;d-1){let d;for(;++ad?"":a[Y+1].toLowerCase(),2&o&&U!==me){if(se(o))return!1;g=!0}}}}else{if(!g&&!se(o)&&!se(A))return!1;if(g&&se(A))continue;g=!1,o=A|1&o}}return se(o)||g}function se(e){return!(1&e)}function z(e,t,r,o){if(null===t)return-1;let a=0;if(o||!r){let d=!1;for(;a-1)for(r++;r0?'="'+y+'"':"")+"]"}else 8&o?a+="."+g:4&o&&(a+=" "+g);else""!==a&&!se(g)&&(t+=Hi(d,a),a=""),o=g,d=d||!se(o);r++}return""!==a&&(t+=Hi(d,a)),t}function Ki(e){return $n(()=>{var t;const r=Ba(e),o={...r,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Rs.OnPush,directiveDefs:null,pipeDefs:null,dependencies:r.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:null!==(t=e.signals)&&void 0!==t&&t,data:e.data||{},encapsulation:e.encapsulation||Zo.Emulated,styles:e.styles||Jr,_:null,schemas:e.schemas||null,tView:null,id:""};es(o);const a=e.dependencies;return o.directiveDefs=Ps(a,!1),o.pipeDefs=Ps(a,!0),o.id=function ei(e){let t=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const a of r)t=Math.imul(31,t)+a.charCodeAt(0)|0;return t+=2147483648,"c"+t}(o),o})}function Qi(e){return jr(e)||Zi(e)}function qo(e){return null!==e}function cs(e){return $n(()=>({type:e.type,bootstrap:e.bootstrap||Jr,declarations:e.declarations||Jr,imports:e.imports||Jr,exports:e.exports||Jr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function ys(e,t){if(null==e)return Uo;const r={};for(const a in e)if(e.hasOwnProperty(a)){const d=e[a];let g,y,A=ls.None;var o;Array.isArray(d)?(A=d[0],g=d[1],y=null!==(o=d[2])&&void 0!==o?o:g):(g=d,y=d),t?(r[g]=A!==ls.None?[a,A]:a,t[g]=y):r[g]=a}return r}function Eo(e){return $n(()=>{const t=Ba(e);return es(t),t})}function ko(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function jr(e){return e[er]||null}function Zi(e){return e[Rr]||null}function eo(e){return e[di]||null}function So(e){const t=jr(e)||Zi(e)||eo(e);return null!==t&&t.standalone}function Li(e,t){const r=e[hi]||null;if(!r&&!0===t)throw new Error(`Type ${ar(e)} does not have '\u0275mod' property.`);return r}function Ba(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Uo,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Jr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ys(e.inputs,t),outputs:ys(e.outputs),debugInfo:null}}function es(e){var t;null===(t=e.features)||void 0===t||t.forEach(r=>r(e))}function Ps(e,t){if(!e)return null;const r=t?eo:Qi;return()=>("function"==typeof e?e():e).map(o=>r(o)).filter(qo)}function dl(e){return{\u0275providers:e}}function Zs(...e){return{\u0275providers:Ua(0,e),\u0275fromNgModule:!0}}function Ua(e,...t){const r=[],o=new Set;let a;const d=g=>{r.push(g)};return ki(t,g=>{const y=g;hl(y,d,[],o)&&(a||(a=[]),a.push(y))}),void 0!==a&&xs(a,d),r}function xs(e,t){for(let r=0;r{t(d,o)})}}function hl(e,t,r,o){if(!(e=ve(e)))return!1;let a=null,d=ze(e);const g=!d&&jr(e);if(d||g){if(g&&!g.standalone)return!1;a=e}else{const A=e.ngModule;if(d=ze(A),!d)return!1;a=A}const y=o.has(a);if(g){if(y)return!1;if(o.add(a),g.dependencies){const A="function"==typeof g.dependencies?g.dependencies():g.dependencies;for(const U of A)hl(U,t,r,o)}}else{if(!d)return!1;{if(null!=d.imports&&!y){let U;o.add(a);try{ki(d.imports,Y=>{hl(Y,t,r,o)&&(U||(U=[]),U.push(Y))})}finally{}void 0!==U&&xs(U,t)}if(!y){const U=Qr(a)||(()=>new a);t({provide:a,useFactory:U,deps:Jr},a),t({provide:Ss,useValue:a,multi:!0},a),t({provide:Ao,useValue:()=>W(a),multi:!0},a)}const A=d.providers;if(null!=A&&!y){const U=e;Ul(A,Y=>{t(Y,U)})}}}return a!==e&&void 0!==e.providers}function Ul(e,t){for(let r of e)Nr(r)&&(r=r.\u0275providers),Array.isArray(r)?Ul(r,t):t(r)}const $l=yr({provide:String,useValue:yr});function jl(e){return null!==e&&"object"==typeof e&&$l in e}function ds(e){return"function"==typeof e}const zl=new We(""),hs={},Ru={};let Hl;function fs(){return void 0===Hl&&(Hl=new Us),Hl}class Qo{}class js extends Qo{get destroyed(){return this._destroyed}constructor(t,r,o,a){super(),this.parent=r,this.source=o,this.scopes=a,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ea(t,g=>this.processProvider(g)),this.records.set(Js,za(void 0,this)),a.has("environment")&&this.records.set(Qo,za(void 0,this));const d=this.records.get(zl);null!=d&&"string"==typeof d.value&&this.scopes.add(d.value),this.injectorDefTypes=new Set(this.get(Ss,Jr,Pt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=ae(null);try{for(const o of this._ngOnDestroyHooks)o.ngOnDestroy();const r=this._onDestroyHooks;this._onDestroyHooks=[];for(const o of r)o()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ae(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const r=vr(this),o=K(void 0);try{return t()}finally{vr(r),K(o)}}get(t,r=Kt,o=Pt.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(_i))return t[_i](this);o=ot(o);const d=vr(this),g=K(void 0);try{if(!(o&Pt.SkipSelf)){let A=this.records.get(t);if(void 0===A){const U=function Aa(e){return"function"==typeof e||"object"==typeof e&&e instanceof We}(t)&&Ar(t);A=U&&this.injectableDefInScope(U)?za(Yi(t),hs):null,this.records.set(t,A)}if(null!=A)return this.hydrate(t,A)}return(o&Pt.Self?fs():this.parent).get(t,r=o&Pt.Optional&&r===Kt?null:r)}catch(y){if("NullInjectorError"===y.name){if((y[Hn]=y[Hn]||[]).unshift(ar(t)),d)throw y;return function pn(e,t,r,o){const a=e[Hn];throw t[P]&&a.unshift(t[P]),e.message=function vn(e,t,r,o=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let a=ar(t);if(Array.isArray(t))a=t.map(ar).join(" -> ");else if("object"==typeof t){let d=[];for(let g in t)if(t.hasOwnProperty(g)){let y=t[g];d.push(g+":"+("string"==typeof y?JSON.stringify(y):ar(y)))}a=`{${d.join(", ")}}`}return`${r}${o?"("+o+")":""}[${a}]: ${e.replace(H,"\n ")}`}("\n"+e.message,a,r,o),e.ngTokenPath=a,e[Hn]=null,e}(y,t,"R3InjectorError",this.source)}throw y}finally{K(g),vr(d)}}resolveInjectorInitializers(){const t=ae(null),r=vr(this),o=K(void 0);try{const d=this.get(Ao,Jr,Pt.Self);for(const g of d)g()}finally{vr(r),K(o),ae(t)}}toString(){const t=[],r=this.records;for(const o of r.keys())t.push(ar(o));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new nt(205,!1)}processProvider(t){let r=ds(t=ve(t))?t:ve(t&&t.provide);const o=function ja(e){return jl(e)?za(void 0,e.useValue):za(Ea(e),hs)}(t);if(!ds(t)&&!0===t.multi){let a=this.records.get(r);a||(a=za(void 0,hs,!0),a.factory=()=>Ot(a.multi),this.records.set(r,a)),r=t,a.multi.push(t)}this.records.set(r,o)}hydrate(t,r){const o=ae(null);try{return r.value===hs&&(r.value=Ru,r.value=r.factory()),"object"==typeof r.value&&r.value&&function Ia(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{ae(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;const r=ve(t.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){const r=this._onDestroyHooks.indexOf(t);-1!==r&&this._onDestroyHooks.splice(r,1)}}function Yi(e){const t=Ar(e),r=null!==t?t.factory:Qr(e);if(null!==r)return r;if(e instanceof We)throw new nt(204,!1);if(e instanceof Function)return function ya(e){if(e.length>0)throw new nt(204,!1);const r=function te(e){return e&&(e[M]||e[re])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new nt(204,!1)}function Ea(e,t,r){let o;if(ds(e)){const a=ve(e);return Qr(a)||Yi(a)}if(jl(e))o=()=>ve(e.useValue);else if(function $s(e){return!(!e||!e.useFactory)}(e))o=()=>e.useFactory(...Ot(e.deps||[]));else if(function Os(e){return!(!e||!e.useExisting)}(e))o=()=>W(ve(e.useExisting));else{const a=ve(e&&(e.useClass||e.provide));if(!function ts(e){return!!e.deps}(e))return Qr(a)||Yi(a);o=()=>new a(...Ot(e.deps))}return o}function za(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function ea(e,t){for(const r of e)Array.isArray(r)?ea(r,t):r&&Nr(r)?ea(r.\u0275providers,t):t(r)}function Co(e,t){e instanceof js&&e.assertNotDestroyed();const o=vr(e),a=K(void 0);try{return t()}finally{vr(o),K(a)}}function Gl(){return void 0!==fe()||null!=function dt(){return Te}()}function Ca(e){if(!Gl())throw new nt(-203,!1)}const wi=0,Bn=1,ir=2,Ni=3,lo=4,Vi=5,uo=6,ns=7,Si=8,io=9,zs=10,qr=11,ta=12,_c=13,fl=14,no=15,Fo=16,ks=17,rs=18,na=19,yc=20,Ui=21,ra=22,Es=23,ti=25,Ta=1,is=7,Da=9,oo=10;var Mu=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Mu||{});function Ai(e){return Array.isArray(e)&&"object"==typeof e[Ta]}function Lo(e){return Array.isArray(e)&&!0===e[Ta]}function Wl(e){return!!(4&e.flags)}function gs(e){return e.componentOffset>-1}function ia(e){return!(1&~e.flags)}function Is(e){return!!e.template}function Kl(e){return!!(512&e[ir])}class Ji{constructor(t,r,o){this.previousValue=t,this.currentValue=r,this.firstChange=o}isFirstChange(){return this.firstChange}}function Ri(e,t,r,o){null!==t?t.applyValueToInputSignal(t,o):e[r]=o}function fo(){return oa}function oa(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ka),Wa}function Wa(){const e=As(this),t=null==e?void 0:e.current;if(t){const r=e.previous;if(r===Uo)e.previous=t;else for(let o in t)r[o]=t[o];e.current=null,this.ngOnChanges(t)}}function Ka(e,t,r,o,a){const d=this.declaredInputs[o],g=As(e)||function Ra(e,t){return e[Hs]=t}(e,{previous:Uo,current:null}),y=g.current||(g.current={}),A=g.previous,U=A[d];y[d]=new Ji(U&&U.currentValue,r,A===Uo),Ri(e,t,a,r)}fo.ngInherit=!0;const Hs="__ngSimpleChanges__";function As(e){return e[Hs]||null}const Fs=function(e,t,r){},ng="svg";let xu=!1;function $i(e){for(;Array.isArray(e);)e=e[wi];return e}function qa(e,t){return $i(t[e])}function ms(e,t){return $i(t[e.index])}function Ql(e,t){return e.data[t]}function Cs(e,t){return e[t]}function $o(e,t){const r=t[e];return Ai(r)?r:r[wi]}function Ac(e){return!(128&~e[ir])}function Ls(e,t){return null==t?null:e[t]}function Tc(e){e[ks]=0}function Sd(e){1024&e[ir]||(e[ir]|=1024,Ac(e)&&Gs(e))}function Yl(e){var t;return!!(9216&e[ir]||null!==(t=e[Es])&&void 0!==t&&t.dirty)}function ml(e){var t;if(null===(t=e[zs].changeDetectionScheduler)||void 0===t||t.notify(1),Yl(e))Gs(e);else if(64&e[ir])if(function Ma(){return xu}())e[ir]|=1024,Gs(e);else{var r;null===(r=e[zs].changeDetectionScheduler)||void 0===r||r.notify()}}function Gs(e){var t;null===(t=e[zs].changeDetectionScheduler)||void 0===t||t.notify();let r=sa(e);for(;null!==r&&!(8192&r[ir])&&(r[ir]|=8192,Ac(r));)r=sa(r)}function Qa(e,t){if(!(256&~e[ir]))throw new nt(911,!1);null===e[Ui]&&(e[Ui]=[]),e[Ui].push(t)}function sa(e){const t=e[Ni];return Lo(t)?t[Ni]:t}const Dr={lFrame:Zh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Pa(){return Dr.bindingsEnabled}function Zl(){return null!==Dr.skipHydrationRootTNode}function mn(){return Dr.lFrame.lView}function Mi(){return Dr.lFrame.tView}function Md(e){return Dr.lFrame.contextLView=e,e[Si]}function wc(e){return Dr.lFrame.contextLView=null,e}function Xi(){let e=Qh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Qh(){return Dr.lFrame.currentTNode}function ua(e,t){const r=Dr.lFrame;r.currentTNode=e,r.isParent=t}function Nu(){return Dr.lFrame.isParent}function ku(){Dr.lFrame.isParent=!1}function Ro(){const e=Dr.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Vs(){return Dr.lFrame.bindingIndex++}function ha(e){const t=Dr.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function xd(e,t){const r=Dr.lFrame;r.bindingIndex=r.bindingRootIndex=e,Od(t)}function Od(e){Dr.lFrame.currentDirectiveIndex=e}function Nd(){return Dr.lFrame.currentQueryIndex}function Mc(e){Dr.lFrame.currentQueryIndex=e}function Pc(e){const t=e[Bn];return 2===t.type?t.declTNode:1===t.type?e[Vi]:null}function Jh(e,t,r){if(r&Pt.SkipSelf){let a=t,d=e;for(;!(a=a.parent,null!==a||r&Pt.Host||(a=Pc(d),null===a||(d=d[fl],10&a.type))););if(null===a)return!1;t=a,e=d}const o=Dr.lFrame=Lu();return o.currentTNode=t,o.lView=e,!0}function xa(e){const t=Lu(),r=e[Bn];Dr.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function Lu(){const e=Dr.lFrame,t=null===e?null:e.child;return null===t?Zh(e):t}function Zh(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 kd(){const e=Dr.lFrame;return Dr.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const xc=kd;function Vu(){const e=kd();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 Mo(){return Dr.lFrame.selectedIndex}function Oa(e){Dr.lFrame.selectedIndex=e}function Gi(){const e=Dr.lFrame;return Ql(e.tView,e.selectedIndex)}function ef(){Dr.lFrame.currentNamespace=ng}let Uu=!0;function $u(){return Uu}function Ws(e){Uu=e}function ju(e,t){for(let U=t.directiveStart,Y=t.directiveEnd;U=o)break}else t[A]<0&&(e[ks]+=65536),(y>14>16&&(3&e[ir])===t&&(e[ir]+=16384,El(y,d)):El(y,d)}const Il=-1;class Al{constructor(t,r,o){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=o}}function Cl(e){return e!==Il}function Na(e){return 32767&e}function Tl(e,t){let r=function Lc(e){return e>>16}(e),o=t;for(;r>0;)o=o[fl],r--;return o}let Hu=!0;function eu(e){const t=Hu;return Hu=e,t}const lf=255,Bd=5;let Vc=0;const Bs={};function Gu(e,t){const r=Ud(e,t);if(-1!==r)return r;const o=t[Bn];o.firstCreatePass&&(e.injectorIndex=t.length,jo(o.data,e),jo(t,null),jo(o.blueprint,null));const a=Ja(e,t),d=e.injectorIndex;if(Cl(a)){const g=Na(a),y=Tl(a,t),A=y[Bn].data;for(let U=0;U<8;U++)t[d+U]=y[g+U]|A[g+U]}return t[d+8]=a,d}function jo(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ud(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Ja(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let r=0,o=null,a=t;for(;null!==a;){if(o=el(a),null===o)return Il;if(r++,a=a[fl],-1!==o.injectorIndex)return o.injectorIndex|r<<16}return Il}function Dl(e,t,r){!function hv(e,t,r){let o;"string"==typeof r?o=r.charCodeAt(0)||0:r.hasOwnProperty(Hr)&&(o=r[Hr]),null==o&&(o=r[Hr]=Vc++);const a=o&lf;t.data[e+(a>>Bd)]|=1<=0?t&lf:df:t}(r);if("function"==typeof d){if(!Jh(t,e,o))return o&Pt.Host?tu(a,0,o):$d(t,r,o,a);try{let g;if(g=d(o),null!=g||o&Pt.Optional)return g;ui()}finally{xc()}}else if("number"==typeof d){let g=null,y=Ud(e,t),A=Il,U=o&Pt.Host?t[no][Vi]:null;for((-1===y||o&Pt.SkipSelf)&&(A=-1===y?Ja(e,t):t[y+8],A!==Il&&nu(o,!1)?(g=t[Bn],y=Na(A),t=Tl(A,t)):y=-1);-1!==y;){const Y=t[Bn];if($c(d,y,Y.data)){const me=lg(y,t,r,g,o,U);if(me!==Bs)return me}A=t[y+8],A!==Il&&nu(o,t[Bn].data[y+8]===U)&&$c(d,y,t)?(g=Y,y=Na(A),t=Tl(A,t)):y=-1}}return a}function lg(e,t,r,o,a,d){const g=t[Bn],y=g.data[e+8],Y=jd(y,g,r,null==o?gs(y)&&Hu:o!=g&&!!(3&y.type),a&Pt.Host&&d===y);return null!==Y?bl(t,g,Y,y):Bs}function jd(e,t,r,o,a){const d=e.providerIndexes,g=t.data,y=1048575&d,A=e.directiveStart,Y=d>>20,Ke=a?y+Y:e.directiveEnd;for(let _t=o?y:y+Y;_t=A&&jt.type===r)return _t}if(a){const _t=g[A];if(_t&&Is(_t)&&_t.type===r)return A}return null}function bl(e,t,r,o){let a=e[r];const d=t.data;if(function sf(e){return e instanceof Al}(a)){const g=a;g.resolving&&function yi(e,t){throw t&&t.join(" > "),new nt(-200,e)}(function Zn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():tr(e)}(d[r]));const y=eu(g.canSeeViewProviders);g.resolving=!0;const U=g.injectImpl?K(g.injectImpl):null;Jh(e,o,Pt.Default);try{a=e[r]=g.factory(void 0,d,e,o),t.firstCreatePass&&r>=o.directiveStart&&function ag(e,t,r){const{ngOnChanges:o,ngOnInit:a,ngDoCheck:d}=t.type.prototype;if(o){var g,y;const me=oa(t);(null!==(g=r.preOrderHooks)&&void 0!==g?g:r.preOrderHooks=[]).push(e,me),(null!==(y=r.preOrderCheckHooks)&&void 0!==y?y:r.preOrderCheckHooks=[]).push(e,me)}var A,U,Y;a&&(null!==(A=r.preOrderHooks)&&void 0!==A?A:r.preOrderHooks=[]).push(0-e,a),d&&((null!==(U=r.preOrderHooks)&&void 0!==U?U:r.preOrderHooks=[]).push(e,d),(null!==(Y=r.preOrderCheckHooks)&&void 0!==Y?Y:r.preOrderCheckHooks=[]).push(e,d))}(r,d[r],t)}finally{null!==U&&K(U),eu(y),g.resolving=!1,xc()}}return a}function $c(e,t,r){return!!(r[t+(e>>Bd)]&1<{const t=e.prototype.constructor,r=t[Yr]||Wu(t),o=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==o;){const d=a[Yr]||Wu(a);if(d&&d!==r)return d;a=Object.getPrototypeOf(a)}return d=>new d})}function Wu(e){return rt(e)?()=>{const t=Wu(ve(e));return t&&t()}:Qr(e)}function el(e){const t=e[Bn],r=t.type;return 2===r?t.declTNode:1===r?e[Vi]:null}function jc(e){return function Bc(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const r=e.attrs;if(r){const o=r.length;let a=0;for(;a{var e;class t{static create(o,a){if(Array.isArray(o))return dg({name:""},a,o,"");{var d;const g=null!==(d=o.name)&&void 0!==d?d:"";return dg({name:g},o.parent,o.providers,g)}}}return(e=t).THROW_IF_NOT_FOUND=Kt,e.NULL=new Us,e.\u0275prov=Ir({token:e,providedIn:"any",factory:()=>W(Js)}),e.__NG_ELEMENT_ID__=-1,t})();function Hc(e){return e.ngOriginalError}class tl{constructor(){this._console=console}handleError(t){const r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&Hc(t);for(;r&&Hc(r);)r=Hc(r);return r||null}}const Gd=new We("",{providedIn:"root",factory:()=>Fe(tl).handleError.bind(void 0)});let qu=(()=>{var e;class t{}return(e=t).__NG_ELEMENT_ID__=hg,e.__NG_ENV_ID__=r=>r,t})();class If extends qu{constructor(t){super(),this._lView=t}onDestroy(t){return Qa(this._lView,t),()=>function Jl(e,t){if(null===e[Ui])return;const r=e[Ui].indexOf(t);-1!==r&&e[Ui].splice(r,1)}(this._lView,t)}}function hg(){return new If(mn())}function Yu(){return ga(Xi(),mn())}function ga(e,t){return new Ju(ms(e,t))}let Ju=(()=>{class t{constructor(o){this.nativeElement=o}}return t.__NG_ELEMENT_ID__=Yu,t})();function iu(e){return e instanceof Ju?e.nativeElement:e}function Af(e){return t=>{setTimeout(e,void 0,t)}}const Ks=class pv extends kn.B{constructor(t=!1){var r;super(),this.destroyRef=void 0,this.__isAsync=t,Gl()&&(this.destroyRef=null!==(r=Fe(qu,{optional:!0}))&&void 0!==r?r:void 0)}emit(t){const r=ae(null);try{super.next(t)}finally{ae(r)}}subscribe(t,r,o){let a=t,d=r||(()=>null),g=o;if(t&&"object"==typeof t){var y,A,U;const me=t;a=null===(y=me.next)||void 0===y?void 0:y.bind(me),d=null===(A=me.error)||void 0===A?void 0:A.bind(me),g=null===(U=me.complete)||void 0===U?void 0:U.bind(me)}this.__isAsync&&(d=Af(d),a&&(a=Af(a)),g&&(g=Af(g)));const Y=super.subscribe({next:a,error:d,complete:g});return t instanceof On.yU&&t.add(Y),Y}};function Cf(){return this._results[Symbol.iterator]()}class Zu{get changes(){var t;return null!==(t=this._changes)&&void 0!==t?t:this._changes=new Ks}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const r=Zu.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Cf)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){this.dirty=!1;const o=function kr(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Wr(e,t,r){if(e.length!==t.length)return!1;for(let o=0;obg}),bg="ng",Ev=new We(""),eh=new We("",{providedIn:"platform",factory:()=>"unknown"}),Ay=new We("",{providedIn:"root",factory:()=>{var e;return(null===(e=lu().body)||void 0===e||null===(e=e.querySelector("[ngCspNonce]"))||void 0===e?void 0:e.getAttribute("ngCspNonce"))||null}});let Tv=()=>null;function oh(e,t,r=!1){return Tv(e,t,r)}const Ng=new We("",{providedIn:"root",factory:()=>!1});let Lf,uh;function Yc(e){var t;return(null===(t=function kg(){if(void 0===Lf&&(Lf=null,sr.trustedTypes))try{Lf=sr.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Lf}())||void 0===t?void 0:t.createHTML(e))||e}function Vf(){if(void 0===uh&&(uh=null,sr.trustedTypes))try{uh=sr.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return uh}function Bf(e){var t;return(null===(t=Vf())||void 0===t?void 0:t.createHTML(e))||e}function Fg(e){var t;return(null===(t=Vf())||void 0===t?void 0:t.createScriptURL(e))||e}class du{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${dr})`}}class Uf extends du{getTypeName(){return"HTML"}}class Pi extends du{getTypeName(){return"Style"}}class Mv extends du{getTypeName(){return"Script"}}class Pv extends du{getTypeName(){return"URL"}}class ch extends du{getTypeName(){return"ResourceURL"}}function Rl(e){return e instanceof du?e.changingThisBreaksApplicationSecurity:e}function To(e,t){const r=function Po(e){return e instanceof du&&e.getTypeName()||null}(e);if(null!=r&&r!==t){if("ResourceURL"===r&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${dr})`)}return r===t}function il(e){return new Uf(e)}function Py(e){return new Pi(e)}function sI(e){return new Mv(e)}function xv(e){return new Pv(e)}function aI(e){return new ch(e)}class xy{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const r=(new window.DOMParser).parseFromString(Yc(t),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(t):(r.removeChild(r.firstChild),r)}catch{return null}}}class Vg{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const r=this.inertDocument.createElement("template");return r.innerHTML=Yc(t),r}}const lI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function qi(e){return(e=String(e)).match(lI)?e:"unsafe:"+e}function hu(e){const t={};for(const r of e.split(","))t[r]=!0;return t}function dh(...e){const t={};for(const r of e)for(const o in r)r.hasOwnProperty(o)&&(t[o]=!0);return t}const _o=hu("area,br,col,hr,img,wbr"),Bg=hu("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ny=hu("rp,rt"),Ov=dh(_o,dh(Bg,hu("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),dh(Ny,hu("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),dh(Ny,Bg)),Nv=hu("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Fy=dh(Nv,hu("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),hu("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),uI=hu("script,style,template");class kv{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let r=t.firstChild,o=!0,a=[];for(;r;)if(r.nodeType===Node.ELEMENT_NODE?o=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,o&&r.firstChild)a.push(r),r=oc(r);else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let d=Ly(r);if(d){r=d;break}r=a.pop()}return this.buf.join("")}startElement(t){const r=fu(t).toLowerCase();if(!Ov.hasOwnProperty(r))return this.sanitizedSomething=!0,!uI.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const o=t.attributes;for(let a=0;a"),!0}endElement(t){const r=fu(t).toLowerCase();Ov.hasOwnProperty(r)&&!_o.hasOwnProperty(r)&&(this.buf.push(""))}chars(t){this.buf.push(Fv(t))}}function Ly(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw Vy(t);return t}function oc(e){const t=e.firstChild;if(t&&function hh(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw Vy(t);return t}function fu(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function Vy(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const Jc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ug=/([^\#-~ |!])/g;function Fv(e){return e.replace(/&/g,"&").replace(Jc,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ug,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let $f;function $g(e,t){let r=null;try{$f=$f||function Lg(e){const t=new Vg(e);return function Oy(){try{return!!(new window.DOMParser).parseFromString(Yc(""),"text/html")}catch{return!1}}()?new xy(t):t}(e);let o=t?String(t):"";r=$f.getInertBodyElement(o);let a=5,d=o;do{if(0===a)throw new Error("Failed to sanitize html because the input is unstable");a--,o=d,d=r.innerHTML,r=$f.getInertBodyElement(o)}while(o!==d);return Yc((new kv).sanitizeChildren(jf(r)||r))}finally{if(r){const o=jf(r)||r;for(;o.firstChild;)o.removeChild(o.firstChild)}}}function jf(e){return"content"in e&&function zf(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var sc=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(sc||{});function pu(e){const t=ka();return t?Bf(t.sanitize(sc.HTML,e)||""):To(e,"HTML")?Bf(Rl(e)):$g(lu(),tr(e))}function fh(e){const t=ka();return t?t.sanitize(sc.STYLE,e)||"":To(e,"Style")?Rl(e):tr(e)}function ac(e){const t=ka();return t?t.sanitize(sc.URL,e)||"":To(e,"URL")?Rl(e):qi(tr(e))}function jg(e){const t=ka();if(t)return Fg(t.sanitize(sc.RESOURCE_URL,e)||"");if(To(e,"ResourceURL"))return Fg(Rl(e));throw new nt(904,!1)}function Hf(e,t,r){return function Wg(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?jg:ac}(t,r)(e)}function ka(){const e=mn();return e&&e[zs].sanitizer}const Vv=/^>|^->||--!>|)/g,Kg="\u200b$1\u200b";function va(e){return e instanceof Function?e():e}var Yg=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Yg||{});let zv;function Jg(e,t){return zv(e,t)}function vh(e,t,r,o,a){if(null!=o){let d,g=!1;Lo(o)?d=o:Ai(o)&&(g=!0,o=o[wi]);const y=$i(o);0===e&&null!==r?null==a?od(t,r,y):id(t,r,y,a||null,!0):1===e&&null!==r?id(t,r,y,a||null,!0):2===e?function Jf(e,t,r){const o=Yf(e,t);o&&function vI(e,t,r,o){e.removeChild(t,r,o)}(e,o,t,r)}(t,y,g):3===e&&t.destroyNode(y),null!=d&&function yI(e,t,r,o,a){const d=r[is];d!==$i(r)&&vh(t,e,o,d,a);for(let y=oo;yt.replace(Bv,Kg))}(t))}function xl(e,t,r){return e.createElement(t,r)}function Hv(e,t){var r;null===(r=t[zs].changeDetectionScheduler)||void 0===r||r.notify(1),Fa(e,t,t[qr],2,null,null)}function Gv(e,t){const r=e[Da],o=r.indexOf(t);r.splice(o,1)}function qf(e,t){if(e.length<=oo)return;const r=oo+t,o=e[r];if(o){const a=o[Fo];null!==a&&a!==e&&Gv(a,o),t>0&&(e[r-1][lo]=o[lo]);const d=Bi(e,oo+t);!function qy(e,t){Hv(e,t),t[wi]=null,t[Vi]=null}(o[Bn],o);const g=d[rs];null!==g&&g.detachView(d[Bn]),o[Ni]=null,o[lo]=null,o[ir]&=-129}return o}function Zg(e,t){if(!(256&t[ir])){const r=t[qr];r.destroyNode&&Fa(e,t,r,3,null,null),function gu(e){let t=e[ta];if(!t)return em(e[Bn],e);for(;t;){let r=null;if(Ai(t))r=t[ta];else{const o=t[oo];o&&(r=o)}if(!r){for(;t&&!t[lo]&&t!==e;)Ai(t)&&em(t[Bn],t),t=t[Ni];null===t&&(t=e),Ai(t)&&em(t[Bn],t),r=t&&t[lo]}t=r}}(t)}}function em(e,t){if(256&t[ir])return;const r=ae(null);try{t[ir]&=-129,t[ir]|=256,t[Es]&&At(t[Es]),function Yy(e,t){let r;if(null!=e&&null!=(r=e.destroyHooks))for(let o=0;o=0?o[g]():o[-g].unsubscribe(),d+=2}else r[d].call(o[r[d+1]]);null!==o&&(t[ns]=null);const a=t[Ui];if(null!==a){t[Ui]=null;for(let d=0;d-1){const{encapsulation:d}=e.data[o.directiveStart+a];if(d===Zo.None||d===Zo.Emulated)return null}return ms(o,r)}}(e,t.parent,r)}function id(e,t,r,o,a){e.insertBefore(t,r,o,a)}function od(e,t,r){e.appendChild(t,r)}function Qf(e,t,r,o,a){null!==o?id(e,t,r,o,a):od(e,t,r)}function Yf(e,t){return e.parentNode(t)}function Kv(e,t,r){return e0(e,t,r)}let qv,e0=function Xv(e,t,r){return 40&e.type?ms(e,r):null};function tm(e,t,r,o){const a=Wv(e,o,t),d=t[qr],y=Kv(o.parent||t[Vi],o,t);if(null!=a)if(Array.isArray(r))for(let A=0;Ati&&im(e,t,ti,!1),Fs(g?2:0,a),r(o,a)}finally{Oa(d),Fs(g?3:1,a)}}function Jv(e,t,r){if(Wl(t)){const o=ae(null);try{const d=t.directiveEnd;for(let g=t.directiveStart;gnull;function e_(e,t,r,o,a){for(let g in t){var d;if(!t.hasOwnProperty(g))continue;const y=t[g];if(void 0===y)continue;null!==(d=o)&&void 0!==d||(o={});let A,U=ls.None;Array.isArray(y)?(A=y[0],U=y[1]):A=y;let Y=g;if(null!==a){if(!a.hasOwnProperty(g))continue;Y=a[g]}0===e?g0(o,r,Y,A,U):g0(o,r,Y,A)}return o}function g0(e,t,r,o,a){let d;e.hasOwnProperty(r)?(d=e[r]).push(t,o):d=e[r]=[t,o],void 0!==a&&d.push(a)}function Xs(e,t,r,o,a,d,g,y){const A=ms(t,r);let Y,U=t.inputs;!y&&null!=U&&(Y=U[o])?(i_(e,r,Y,o,a),gs(t)&&function wI(e,t){const r=$o(t,e);16&r[ir]||(r[ir]|=64)}(r,t.index)):3&t.type&&(o=function bI(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(o),a=null!=g?g(a,t.value||"",o):a,d.setProperty(A,o,a))}function t_(e,t,r,o){if(Pa()){const a=null===o?null:{"":-1},d=function OI(e,t){const r=e.directiveRegistry;let o=null,a=null;if(r)for(let g=0;g0;){const r=e[--t];if("number"==typeof r&&r<0)return r}return 0})(g)!=y&&g.push(y),g.push(r,o,d)}}(e,t,o,ep(e,r,a.hostVars,ci),a)}function Ol(e,t,r,o,a,d){const g=ms(e,t);!function r_(e,t,r,o,a,d,g){if(null==d)e.removeAttribute(t,a,r);else{const y=null==g?tr(d):g(d,o||"",a);e.setAttribute(t,a,y,r)}}(t[qr],g,d,e.value,r,o,a)}function VI(e,t,r,o,a,d){const g=d[t];if(null!==g)for(let y=0;y0&&(r[a-1][lo]=t),o{Gs(e.lView)},consumerOnSignalRead(){this.lView[Es]=this}},w0=100;function hm(e,t=!0,r=0){const o=e[zs],a=o.rendererFactory;var g;null===(g=a.begin)||void 0===g||g.call(a);try{!function WI(e,t){s_(e,t);let r=0;for(;Yl(e);){if(r===w0)throw new nt(103,!1);r++,s_(e,1)}}(e,r)}catch(U){throw t&&um(e,U),U}finally{var y,A;null===(y=a.end)||void 0===y||y.call(a),null===(A=o.inlineEffectRunner)||void 0===A||A.flush()}}function KI(e,t,r,o){var a;const d=t[ir];if(!(256&~d))return;null===(a=t[zs].inlineEffectRunner)||void 0===a||a.flush(),xa(t);let y=null,A=null;(function XI(e){return 2!==e.type})(e)&&(A=function jI(e){var t;return null!==(t=e[Es])&&void 0!==t?t:function zI(e){var t;const r=null!==(t=b0.pop())&&void 0!==t?t:Object.create(GI);return r.lView=e,r}(e)}(t),y=Dt(A));try{Tc(t),function Sc(e){return Dr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&c0(e,t,r,2,o);const U=!(3&~d);if(U){const Ke=e.preOrderCheckHooks;null!==Ke&&Oc(t,Ke,null)}else{const Ke=e.preOrderHooks;null!==Ke&&fa(t,Ke,0,null),pa(t,0)}if(function qI(e){for(let t=vg(e);null!==t;t=bf(t)){if(!(t[ir]&Mu.HasTransplantedViews))continue;const r=t[Da];for(let o=0;o-1&&(qf(t,o),Bi(r,o))}this._attachedToViewContainer=!1}Zg(this._lView[Bn],this._lView)}onDestroy(t){Qa(this._lView,t)}markForCheck(){op(this._cdRefInjectingView||this._lView)}detach(){this._lView[ir]&=-129}reattach(){ml(this._lView),this._lView[ir]|=128}detectChanges(){this._lView[ir]|=1024,hm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new nt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Hv(this._lView[Bn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new nt(902,!1);this._appRef=t,ml(this._lView)}}let ap=(()=>{class t{}return t.__NG_ELEMENT_ID__=JI,t})();const P0=ap,YI=class extends P0{constructor(t,r,o){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=o}get ssrId(){var t;return(null===(t=this._declarationTContainer.tView)||void 0===t?void 0:t.ssrId)||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,o){const a=np(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:o});return new sp(a)}};function JI(){return fm(Xi(),mn())}function fm(e,t){return 4&e.type?new YI(t,e,ga(e,t)):null}let gm=()=>null;function xo(e,t){return gm(e,t)}class mm{}class Ch{}class l_{}class lp{resolveComponentFactory(t){throw function Th(e){const t=Error(`No component factory found for ${ar(e)}.`);return t.ngComponent=e,t}(t)}}let hc=(()=>{class t{}return t.NULL=new lp,t})();class up{}let vm=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function _m(){const e=mn(),r=$o(Xi().index,e);return(Ai(r)?r:e)[qr]}(),t})(),ym=(()=>{var e;class t{}return(e=t).\u0275prov=Ir({token:e,providedIn:"root",factory:()=>null}),t})();const cp={},c_=new Set;function La(e){var t,r;c_.has(e)||(c_.add(e),null===(t=performance)||void 0===t||null===(r=t.mark)||void 0===r||r.call(t,"mark_feature_usage",{detail:{feature:e}}))}function Em(...e){}class Bo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ks(!1),this.onMicrotaskEmpty=new Ks(!1),this.onStable=new Ks(!1),this.onError=new Ks(!1),typeof Zone>"u")throw new nt(908,!1);Zone.assertZonePatched();const a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&r,a.shouldCoalesceRunChangeDetection=o,a.lastRequestAnimationFrameId=-1,a.nativeRequestAnimationFrame=function Im(){const e="function"==typeof sr.requestAnimationFrame;let t=sr[e?"requestAnimationFrame":"setTimeout"],r=sr[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o);const a=r[Zone.__symbol__("OriginalDelegate")];a&&(r=a)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function vs(e){const t=()=>{!function Cm(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(sr,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,os(e),e.isCheckStableRunning=!0,Dh(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),os(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,o,a,d,g,y)=>{if(function L0(e){var t;return!(!Array.isArray(e)||1!==e.length)&&!0===(null===(t=e[0].data)||void 0===t?void 0:t.__ignore_ng_zone__)}(y))return r.invokeTask(a,d,g,y);try{return bh(e),r.invokeTask(a,d,g,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===d.type||e.shouldCoalesceRunChangeDetection)&&t(),Tm(e)}},onInvoke:(r,o,a,d,g,y,A)=>{try{return bh(e),r.invoke(a,d,g,y,A)}finally{e.shouldCoalesceRunChangeDetection&&t(),Tm(e)}},onHasTask:(r,o,a,d)=>{r.hasTask(a,d),o===a&&("microTask"==d.change?(e._hasPendingMicrotasks=d.microTask,os(e),Dh(e)):"macroTask"==d.change&&(e.hasPendingMacrotasks=d.macroTask))},onHandleError:(r,o,a,d)=>(r.handleError(a,d),e.runOutsideAngular(()=>e.onError.emit(d)),!1)})}(a)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Bo.isInAngularZone())throw new nt(909,!1)}static assertNotInAngularZone(){if(Bo.isInAngularZone())throw new nt(909,!1)}run(t,r,o){return this._inner.run(t,r,o)}runTask(t,r,o,a){const d=this._inner,g=d.scheduleEventTask("NgZoneEvent: "+a,t,Am,Em,Em);try{return d.runTask(g,r,o)}finally{d.cancelTask(g)}}runGuarded(t,r,o){return this._inner.runGuarded(t,r,o)}runOutsideAngular(t){return this._outer.run(t)}}const Am={};function Dh(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 os(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function bh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Tm(e){e._nesting--,Dh(e)}class Dm{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ks,this.onMicrotaskEmpty=new Ks,this.onStable=new Ks,this.onError=new Ks}run(t,r,o){return t.apply(r,o)}runGuarded(t,r,o){return t.apply(r,o)}runOutsideAngular(t){return t()}runTask(t,r,o,a){return t.apply(r,o)}}var _u=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(_u||{});const bm={destroy(){}};function d_(e,t){var r,o,a;!t&&Ca();const d=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Fe(Ts);if(!function ol(e){return"browser"===(null!=e?e:Fe(Ts)).get(eh)}(d))return bm;La("NgAfterNextRender");const g=d.get(ud),y=null!==(o=g.handler)&&void 0!==o?o:g.handler=new wm,A=null!==(a=null==t?void 0:t.phase)&&void 0!==a?a:_u.MixedReadWrite,U=()=>{y.unregister(me),Y()},Y=d.get(qu).onDestroy(U),me=Co(d,()=>new dp(A,()=>{U(),e()}));return y.register(me),{destroy:U}}class dp{constructor(t,r){var o;this.phase=t,this.callbackFn=r,this.zone=Fe(Bo),this.errorHandler=Fe(tl,{optional:!0}),null===(o=Fe(mm,{optional:!0}))||void 0===o||o.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(r){var t;null===(t=this.errorHandler)||void 0===t||t.handleError(r)}}}class wm{constructor(){this.executingCallbacks=!1,this.buckets={[_u.EarlyRead]:new Set,[_u.Write]:new Set,[_u.MixedReadWrite]:new Set,[_u.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const r of t)r.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let ud=(()=>{var e;class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var o;this.executeInternalCallbacks(),null===(o=this.handler)||void 0===o||o.execute()}executeInternalCallbacks(){const o=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const a of o)a()}ngOnDestroy(){var o;null===(o=this.handler)||void 0===o||o.destroy(),this.handler=null,this.internalCallbacks.length=0}}return(e=t).\u0275prov=Ir({token:e,providedIn:"root",factory:()=>new e}),t})();function sl(e){return!!Li(e)}function Eu(e,t,r){let o=r?e.styles:null,a=r?e.classes:null,d=0;if(null!==t)for(let g=0;g0&&o0(e,r,d.join(" "))}}(ln,Bl,Un,o),void 0!==r&&function v_(e,t,r){const o=e.projection=[];for(let a=0;a{class t{}return t.__NG_ELEMENT_ID__=__,t})();function __(){return _p(Xi(),mn())}const y_=pd,E_=class extends y_{constructor(t,r,o){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=o}get element(){return ga(this._hostTNode,this._hostLView)}get injector(){return new po(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ja(this._hostTNode,this._hostLView);if(Cl(t)){const r=Tl(t,this._hostLView),o=Na(t);return new po(r[Bn].data[o+8],r)}return new po(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const r=Mh(this._lContainer);return null!==r&&r[t]||null}get length(){return this._lContainer.length-oo}createEmbeddedView(t,r,o){let a,d;"number"==typeof o?a=o:null!=o&&(a=o.index,d=o.injector);const g=xo(this._lContainer,t.ssrId),y=t.createEmbeddedViewImpl(r||{},d,g);return this.insertImpl(y,a,Ih(this._hostTNode,g)),y}createComponent(t,r,o,a,d){var g,y,A;const U=t&&!function tn(e){return"function"==typeof e}(t);let Y;if(U)Y=r;else{const Un=r||{};Y=Un.index,o=Un.injector,a=Un.projectableNodes,d=Un.environmentInjector||Un.ngModuleRef}const me=U?t:new Rh(jr(t)),Ke=o||this.parentInjector;if(!d&&null==me.ngModule){const _n=(U?Ke:this.parentInjector).get(Qo,null);_n&&(d=_n)}const _t=jr(null!==(g=me.componentType)&&void 0!==g?g:{}),jt=xo(this._lContainer,null!==(y=null==_t?void 0:_t.id)&&void 0!==y?y:null),ln=null!==(A=null==jt?void 0:jt.firstChild)&&void 0!==A?A:null,Nn=me.create(Ke,a,ln,d);return this.insertImpl(Nn.hostView,Y,Ih(this._hostTNode,jt)),Nn}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,o){const a=t._lView;if(function Cc(e){return Lo(e[Ni])}(a)){const y=this.indexOf(t);if(-1!==y)this.detach(y);else{const A=a[Ni],U=new E_(A,A[Vi],A[Ni]);U.detach(U.indexOf(t))}}const d=this._adjustIndex(r),g=this._lContainer;return rp(g,a,d,o),t.attachToViewContainerRef(),Fi(vp(g),d,t),t}move(t,r){return this.insert(t,r)}indexOf(t){const r=Mh(this._lContainer);return null!==r?r.indexOf(t):-1}remove(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);o&&(Bi(vp(this._lContainer),r),Zg(o[Bn],o))}detach(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);return o&&null!=Bi(vp(this._lContainer),r)?new sp(o):null}_adjustIndex(t,r=0){return null==t?this.length+r:t}};function Mh(e){return e[8]}function vp(e){return e[8]||(e[8]=[])}function _p(e,t){let r;const o=t[e.index];return Lo(o)?r=o:(r=E0(o,t,null,e),t[e.index]=r,am(t,r)),Au(r,t,e,o),new E_(r,e,t)}let Au=function Pm(e,t,r,o){if(e[is])return;let a;a=8&r.type?$i(o):function Ph(e,t){const r=e[qr],o=r.createComment(""),a=ms(t,e);return id(r,Yf(r,a),o,function Zy(e,t){return e.nextSibling(t)}(r,a),!1),o}(t,r),e[is]=a},xh=()=>!1;class Oh{constructor(t){this.queryList=t,this.matches=null}clone(){return new Oh(this.queryList)}setDirty(){this.queryList.setDirty()}}class yp{constructor(t=[]){this.queries=t}createEmbeddedView(t){const r=t.queries;if(null!==r){const o=null!==t.contentQueries?t.contentQueries[0]:r.length,a=[];for(let d=0;dt.trim())}(t):t}}class Nm{constructor(t=[]){this.queries=t}elementStart(t,r){for(let o=0;o0)o.push(g[y/2]);else{const U=d[y+1],Y=t[-A];for(let me=oo;me(et(t),t.value);return r[he]=t,r}(e),o=r[he];return null!=t&&t.equal&&(o.equal=t.equal),r.set=a=>Ee(o,a),r.update=a=>function Ve(e,t){mt()||vt(),Ee(e,t(e.value))}(o,a),r.asReadonly=kl.bind(r),r}function kl(){const e=this[he];if(void 0===e.readonlyFn){const t=()=>this();t[he]=e,e.readonlyFn=t}return e.readonlyFn}function Vm(e){return Lm(e)&&"function"==typeof e.set}function wp(e){let t=function Tu(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),r=!0;const o=[e];for(;t;){let a;if(Is(e))a=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new nt(903,!1);a=t.\u0275dir}if(a){if(r){o.push(a);const g=e;g.inputs=Uh(e.inputs),g.inputTransforms=Uh(e.inputTransforms),g.declaredInputs=Uh(e.declaredInputs),g.outputs=Uh(e.outputs);const y=a.hostBindings;y&&L_(e,y);const A=a.viewQuery,U=a.contentQueries;if(A&&Sp(e,A),U&&qs(e,U),k_(e,a),Br(e.outputs,a.outputs),Is(a)&&a.data.animation){const Y=e.data;Y.animation=(Y.animation||[]).concat(a.data.animation)}}const d=a.features;if(d)for(let g=0;g=0;o--){const a=e[o];a.hostVars=t+=a.hostVars,a.hostAttrs=ee(a.hostAttrs,r=ee(r,a.hostAttrs))}}(o)}function k_(e,t){for(const o in t.inputs){if(!t.inputs.hasOwnProperty(o)||e.inputs.hasOwnProperty(o))continue;const a=t.inputs[o];if(void 0!==a&&(e.inputs[o]=a,e.declaredInputs[o]=t.declaredInputs[o],null!==t.inputTransforms)){var r;const d=Array.isArray(a)?a[0]:a;if(!t.inputTransforms.hasOwnProperty(d))continue;null!==(r=e.inputTransforms)&&void 0!==r||(e.inputTransforms={}),e.inputTransforms[d]=t.inputTransforms[d]}}}function Uh(e){return e===Uo?{}:e===Jr?[]:e}function Sp(e,t){const r=e.viewQuery;e.viewQuery=r?(o,a)=>{t(o,a),r(o,a)}:t}function qs(e,t){const r=e.contentQueries;e.contentQueries=r?(o,a,d)=>{t(o,a,d),r(o,a,d)}:t}function L_(e,t){const r=e.hostBindings;e.hostBindings=r?(o,a)=>{t(o,a),r(o,a)}:t}function ro(e){const t=e.inputConfig,r={};for(const o in t)if(t.hasOwnProperty(o)){const a=t[o];Array.isArray(a)&&a[3]&&(r[o]=a[3])}e.inputTransforms=r}class Io{}class ji{}function _s(e,t){return new Du(e,null!=t?t:null,[])}class Du extends Io{constructor(t,r,o){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new f_(this);const a=Li(t);this._bootstrapComponents=va(a.bootstrap),this._r3Injector=Ef(t,r,[{provide:Io,useValue:this},{provide:hc,useValue:this.componentFactoryResolver},...o],ar(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Qs extends ji{constructor(t){super(),this.moduleType=t}create(t){return new Du(this.moduleType,t,[])}}class Mp extends Io{constructor(t){super(),this.componentFactoryResolver=new f_(this),this.instance=null;const r=new js([...t.providers,{provide:Io,useValue:this},{provide:hc,useValue:this.componentFactoryResolver}],t.parent||fs(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Q0(e,t,r=null){return new Mp({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}let Pp=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new or.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const o=this.taskId++;return this.pendingTasks.add(o),o}remove(o){this.pendingTasks.delete(o),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function U_(e){return!!Y0(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Y0(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function bu(e,t,r){return e[t]=r}function zo(e,t,r){return!Object.is(e[t],r)&&(e[t]=r,!0)}function $h(e,t,r,o){const a=zo(e,t,r);return zo(e,t+1,o)||a}function xp(e,t,r,o,a,d,g,y){const A=mn(),U=Mi(),Y=e+ti,me=U.firstCreatePass?function mb(e,t,r,o,a,d,g,y,A){const U=t.consts,Y=cc(t,e,4,g||null,Ls(U,y));t_(t,r,Y,Ls(U,A)),ju(t,Y);const me=Y.tView=tp(2,Y,o,a,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,U,null);return null!==t.queries&&(t.queries.template(t,Y),me.queries=t.queries.embeddedTView(Y)),Y}(Y,U,A,t,r,o,a,d,g):U.data[Y];ua(me,!1);const Ke=uA(U,A,me,e);$u()&&tm(U,A,Ke,me),go(Ke,A);const _t=E0(Ke,A,Ke,me);return A[Y]=_t,am(A,_t),function I_(e,t,r){return xh(e,t,r)}(_t,me,A),ia(me)&&yh(U,A,me),null!=g&&ad(A,me,y),xp}let uA=function cA(e,t,r,o){return Ws(!0),t[qr].createComment("")};function aE(e,t,r,o){const a=mn();return zo(a,Vs(),t)&&(Mi(),Ol(Gi(),a,e,t,r,o)),aE}function Up(e,t,r,o){return zo(e,Vs(),r)?t+tr(r)+o:ci}function $p(e,t,r,o,a,d){const y=$h(e,function da(){return Dr.lFrame.bindingIndex}(),r,a);return ha(2),y?t+tr(r)+o+tr(a)+d:ci}function K_(e,t){return e<<17|t<<2}function Ad(e){return e>>17&32767}function lE(e){return 2|e}function zh(e){return(131068&e)>>2}function uE(e,t){return-131069&e|t<<2}function cE(e){return 1|e}function $A(e,t,r,o){const a=e[r+1],d=null===t;let g=o?Ad(a):zh(a),y=!1;for(;0!==g&&(!1===y||d);){const U=e[g+1];nw(e[g],t)&&(y=!0,e[g+1]=o?cE(U):lE(U)),g=o?Ad(U):zh(U)}y&&(e[r+1]=o?lE(a):cE(a))}function nw(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&wo(e,t)>=0}function dE(e,t,r){const o=mn();return zo(o,Vs(),t)&&Xs(Mi(),Gi(),o,e,t,o[qr],r,!1),dE}function hE(e,t,r,o,a){const g=a?"class":"style";i_(e,r,t.inputs[g],g,o)}function fE(e,t,r){return Ll(e,t,r,!1),fE}function pE(e,t){return Ll(e,t,null,!0),pE}function Ll(e,t,r,o){const a=mn(),d=Mi(),g=ha(2);d.firstUpdatePass&&function qA(e,t,r,o){const a=e.data;if(null===a[r+1]){const d=a[Mo()],g=function XA(e,t){return t>=e.expandoStartIndex}(e,r);(function ZA(e,t){return!!(e.flags&(t?8:16))})(d,o)&&null===t&&!g&&(t=!1),t=function dw(e,t,r,o){const a=function Fu(e){const t=Dr.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let d=o?t.residualClasses:t.residualStyles;if(null===a)0===(o?t.classBindings:t.styleBindings)&&(r=Ym(r=gE(null,e,t,r,o),t.attrs,o),d=null);else{const g=t.directiveStylingLast;if(-1===g||e[g]!==a)if(r=gE(a,e,t,r,o),null===d){let A=function hw(e,t,r){const o=r?t.classBindings:t.styleBindings;if(0!==zh(o))return e[Ad(o)]}(e,t,o);void 0!==A&&Array.isArray(A)&&(A=gE(null,e,t,A[1],o),A=Ym(A,t.attrs,o),function fw(e,t,r,o){e[Ad(r?t.classBindings:t.styleBindings)]=o}(e,t,o,A))}else d=function pw(e,t,r){let o;const a=t.directiveEnd;for(let d=1+t.directiveStylingLast;d0)&&(U=!0)):Y=r,a)if(0!==A){const Ke=Ad(e[y+1]);e[o+1]=K_(Ke,y),0!==Ke&&(e[Ke+1]=uE(e[Ke+1],o)),e[y+1]=function Jb(e,t){return 131071&e|t<<17}(e[y+1],o)}else e[o+1]=K_(y,0),0!==y&&(e[y+1]=uE(e[y+1],o)),y=o;else e[o+1]=K_(A,0),0===y?y=o:e[A+1]=uE(e[A+1],o),A=o;U&&(e[o+1]=lE(e[o+1])),$A(e,Y,o,!0),$A(e,Y,o,!1),function tw(e,t,r,o,a){const d=a?e.residualClasses:e.residualStyles;null!=d&&"string"==typeof t&&wo(d,t)>=0&&(r[o+1]=cE(r[o+1]))}(t,Y,e,o,d),g=K_(y,A),d?t.classBindings=g:t.styleBindings=g}(a,d,t,r,g,o)}}(d,e,g,o),t!==ci&&zo(a,g,t)&&function YA(e,t,r,o,a,d,g,y){if(!(3&t.type))return;const A=e.data,U=A[y+1],Y=function Zb(e){return!(1&~e)}(U)?JA(A,t,r,a,zh(U),g):void 0;X_(Y)||(X_(d)||function Yb(e){return!(2&~e)}(U)&&(d=JA(A,null,r,a,y,g)),function EI(e,t,r,o,a){if(t)a?e.addClass(r,o):e.removeClass(r,o);else{let d=-1===o.indexOf("-")?void 0:Yg.DashCase;null==a?e.removeStyle(r,o,d):("string"==typeof a&&a.endsWith("!important")&&(a=a.slice(0,-10),d|=Yg.Important),e.setStyle(r,o,a,d))}}(o,g,qa(Mo(),r),a,d))}(d,d.data[Mo()],a,a[qr],e,a[g+1]=function _w(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ar(Rl(e)))),e}(t,r),o,g)}function gE(e,t,r,o,a){let d=null;const g=r.directiveEnd;let y=r.directiveStylingLast;for(-1===y?y=r.directiveStart:y++;y0;){const A=e[a],U=Array.isArray(A),Y=U?A[1]:A,me=null===Y;let Ke=r[a+1];Ke===ci&&(Ke=me?Jr:void 0);let _t=me?Ko(Ke,o):Y===o?Ke:void 0;if(U&&!X_(_t)&&(_t=Ko(A,o)),X_(_t)&&(y=_t,g))return y;const jt=e[a+1];a=g?Ad(jt):zh(jt)}if(null!==t){let A=d?t.residualClasses:t.residualStyles;null!=A&&(y=Ko(A,o))}return y}function X_(e){return void 0!==e}class Rw{destroy(t){}updateValue(t,r){}swap(t,r){const o=Math.min(t,r),a=Math.max(t,r),d=this.detach(a);if(a-o>1){const g=this.detach(o);this.attach(o,d),this.attach(a,g)}else this.attach(o,d)}move(t,r){this.attach(r,this.detach(t))}}function mE(e,t,r,o,a){return e===r&&Object.is(t,o)?1:Object.is(a(e,t),a(r,o))?-1:0}function vE(e,t,r,o){return!(void 0===t||!t.has(o)||(e.attach(r,t.get(o)),t.delete(o),0))}function eC(e,t,r,o,a){if(vE(e,t,o,r(o,a)))e.updateValue(o,a);else{const d=e.create(o,a);e.attach(o,d)}}function tC(e,t,r,o){const a=new Set;for(let d=t;d<=r;d++)a.add(o(d,e.at(d)));return a}class nC{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const r=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(r)?(this.kvMap.set(t,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,r){if(this.kvMap.has(t)){let o=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const a=this._vMap;for(;a.has(o);)o=a.get(o);a.set(o,r)}else this.kvMap.set(t,r)}forEach(t){for(let[r,o]of this.kvMap)if(t(o,r),void 0!==this._vMap){const a=this._vMap;for(;a.has(o);)o=a.get(o),t(o,r)}}}function rC(e,t,r){La("NgControlFlow");const o=mn(),a=Vs(),d=_E(o,ti+e);if(zo(o,a,t)){const y=ae(null);try{if(dm(d,0),-1!==t){const A=yE(o[Bn],ti+t),U=xo(d,A.tView.ssrId);rp(d,np(o,A,r,{dehydratedView:U}),0,Ih(A,U))}}finally{ae(y)}}else{const y=o_(d,0);void 0!==y&&(y[Si]=r)}}class Pw{constructor(t,r,o){this.lContainer=t,this.$implicit=r,this.$index=o}get $count(){return this.lContainer.length-oo}}function iC(e,t){return t}class Ow{constructor(t,r,o){this.hasEmptyBlock=t,this.trackByFn=r,this.liveCollection=o}}function oC(e,t,r,o,a,d,g,y,A,U,Y,me,Ke){La("NgControlFlow");const _t=void 0!==A,jt=mn(),ln=y?g.bind(jt[no][Si]):g,Nn=new Ow(_t,ln);jt[ti+e]=Nn,xp(e+1,t,r,o,a,d),_t&&xp(e+2,A,U,Y,me,Ke)}class Nw extends Rw{constructor(t,r,o){super(),this.lContainer=t,this.hostLView=r,this.templateTNode=o,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-oo}at(t){return this.getLView(t)[Si].$implicit}attach(t,r){const o=r[uo];this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length),rp(this.lContainer,r,t,Ih(this.templateTNode,o))}detach(t){return this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length-1),function kw(e,t){return qf(e,t)}(this.lContainer,t)}create(t,r){const o=xo(this.lContainer,this.templateTNode.tView.ssrId);return np(this.hostLView,this.templateTNode,new Pw(this.lContainer,r,t),{dehydratedView:o})}destroy(t){Zg(t[Bn],t)}updateValue(t,r){this.getLView(t)[Si].$implicit=r}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(Ke)})}(g,e,d.trackByFn),g.updateIndexes(),d.hasEmptyBlock){const y=Vs(),A=0===g.length;if(zo(o,y,A)){const U=r+2,Y=_E(o,U);if(A){const me=yE(a,U),Ke=xo(Y,me.tView.ssrId);rp(Y,np(o,me,void 0,{dehydratedView:Ke}),0,Ih(me,Ke))}else dm(Y,0)}}}finally{ae(t)}}function _E(e,t){return e[t]}function yE(e,t){return Ql(e,t)}function q_(e,t,r,o){const a=mn(),d=Mi(),g=ti+e,y=a[qr],A=d.firstCreatePass?function Lw(e,t,r,o,a,d){const g=t.consts,A=cc(t,e,2,o,Ls(g,a));return t_(t,r,A,Ls(g,d)),null!==A.attrs&&Eu(A,A.attrs,!1),null!==A.mergedAttrs&&Eu(A,A.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,A),A}(g,d,a,t,r,o):d.data[g],U=aC(d,a,A,y,t,e);a[g]=U;const Y=ia(A);return ua(A,!0),s0(y,U,A),!function Km(e){return!(32&~e.flags)}(A)&&$u()&&tm(d,a,U,A),0===function Dc(){return Dr.lFrame.elementDepthCount}()&&go(U,a),function bc(){Dr.lFrame.elementDepthCount++}(),Y&&(yh(d,a,A),Jv(d,A,a)),null!==o&&ad(a,A),q_}function Q_(){let e=Xi();Nu()?ku():(e=e.parent,ua(e,!1));const t=e;(function _l(e){return Dr.skipHydrationRootTNode===e})(t)&&function Ya(){Dr.skipHydrationRootTNode=null}(),function aa(){Dr.lFrame.elementDepthCount--}();const r=Mi();return r.firstCreatePass&&(ju(r,e),Wl(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function zu(e){return!!(8&e.flags)}(t)&&hE(r,t,mn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Ld(e){return!!(16&e.flags)}(t)&&hE(r,t,mn(),t.stylesWithoutHost,!1),Q_}function EE(e,t,r,o){return q_(e,t,r,o),Q_(),EE}let aC=(e,t,r,o,a,d)=>(Ws(!0),xl(o,a,function Fd(){return Dr.lFrame.currentNamespace}()));function Y_(e,t,r){const o=mn(),a=Mi(),d=e+ti,g=a.firstCreatePass?function Uw(e,t,r,o,a){const d=t.consts,g=Ls(d,o),y=cc(t,e,8,"ng-container",g);return null!==g&&Eu(y,g,!0),t_(t,r,y,Ls(d,a)),null!==t.queries&&t.queries.elementStart(t,y),y}(d,a,o,t,r):a.data[d];ua(g,!0);const y=lC(a,o,g,e);return o[d]=y,$u()&&tm(a,o,y,g),go(y,o),ia(g)&&(yh(a,o,g),Jv(a,g,o)),null!=r&&ad(o,g),Y_}function J_(){let e=Xi();const t=Mi();return Nu()?ku():(e=e.parent,ua(e,!1)),t.firstCreatePass&&(ju(t,e),Wl(e)&&t.queries.elementEnd(e)),J_}function IE(e,t,r){return Y_(e,t,r),J_(),IE}let lC=(e,t,r,o)=>(Ws(!0),rd(t[qr],""));function uC(){return mn()}const Hh=void 0;var Hw=["en",[["a","p"],["AM","PM"],Hh],[["AM","PM"],Hh,Hh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Hh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Hh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Hh,"{1} 'at' {0}",Hh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function zw(e){const r=Math.floor(Math.abs(e)),o=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===o?1:5}];let qp={};function AE(e){const t=function Gw(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=fC(t);if(r)return r;const o=t.split("-")[0];if(r=fC(o),r)return r;if("en"===o)return Hw;throw new nt(701,!1)}function hC(e){return AE(e)[Qp.PluralCase]}function fC(e){return e in qp||(qp[e]=sr.ng&&sr.ng.common&&sr.ng.common.locales&&sr.ng.common.locales[e]),qp[e]}var Qp=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Qp||{});const Yp="en-US";let pC=Yp;function DE(e,t,r,o){const a=mn(),d=Mi(),g=Xi();return bE(d,a,a[qr],g,e,t,o),DE}function bE(e,t,r,o,a,d,g){const y=ia(o),U=e.firstCreatePass&&C0(e),Y=t[Si],me=A0(t);let Ke=!0;if(3&o.type||g){const ln=ms(o,t),Nn=g?g(ln):ln,Un=me.length,_n=g?mi=>g($i(mi[o.index])):o.index;let ni=null;if(!g&&y&&(ni=function $S(e,t,r,o){const a=e.cleanup;if(null!=a)for(let d=0;dA?y[A]:null}"string"==typeof g&&(d+=2)}return null}(e,t,a,o.index)),null!==ni)(ni.__ngLastListenerFn__||ni).__ngNextListenerFn__=d,ni.__ngLastListenerFn__=d,Ke=!1;else{d=jC(o,t,Y,d,!1);const mi=r.listen(Nn,a,d);me.push(d,mi),U&&U.push(a,_n,Un,Un+1)}}else d=jC(o,t,Y,d,!1);const _t=o.outputs;let jt;if(Ke&&null!==_t&&(jt=_t[a])){const ln=jt.length;if(ln)for(let Nn=0;Nn-1?$o(e.index,t):t);let A=$C(t,r,o,g),U=d.__ngNextListenerFn__;for(;U;)A=$C(t,r,U,g)&&A,U=U.__ngNextListenerFn__;return a&&!1===A&&g.preventDefault(),A}}function zC(e=1){return function Bu(e){return(Dr.lFrame.contextLView=function rg(e,t){for(;e>0;)t=t[fl],e--;return t}(e,Dr.lFrame.contextLView))[Si]}(e)}function jS(e,t){let r=null;const o=function an(e){const t=e.attrs;if(null!=t){const r=t.indexOf(5);if(!(1&r))return t[r+1]}return null}(e);for(let a=0;a(Ws(!0),function Pl(e,t){return e.createText(t)}(t[qr],o));function SE(e){return iy("",e,""),SE}function iy(e,t,r){const o=mn(),a=Up(o,e,t,r);return a!==ci&&mu(o,Mo(),a),iy}function RE(e,t,r,o,a){const d=mn(),g=$p(d,e,t,r,o,a);return g!==ci&&mu(d,Mo(),g),RE}function ME(e,t,r){Vm(t)&&(t=t());const o=mn();return zo(o,Vs(),t)&&Xs(Mi(),Gi(),o,e,t,o[qr],r,!1),ME}function CT(e,t){const r=Vm(e);return r&&e.set(t),r}function PE(e,t){const r=mn(),o=Mi(),a=Xi();return bE(o,r,r[qr],a,e,t),PE}function xE(e,t,r,o,a){if(e=ve(e),Array.isArray(e))for(let d=0;d>20;if(ds(e)||!e.multi){const _t=new Al(U,a,sd),jt=NE(A,t,a?Y:Y+Ke,me);-1===jt?(Dl(Gu(y,g),d,A),OE(d,e,t.length),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(_t),g.push(_t)):(r[jt]=_t,g[jt]=_t)}else{const _t=NE(A,t,Y+Ke,me),jt=NE(A,t,Y,Y+Ke),Nn=jt>=0&&r[jt];if(a&&!Nn||!a&&!(_t>=0&&r[_t])){Dl(Gu(y,g),d,A);const Un=function aR(e,t,r,o,a){const d=new Al(e,r,sd);return d.multi=[],d.index=t,d.componentProviders=0,TT(d,a,o&&!r),d}(a?sR:oR,r.length,a,o,U);!a&&Nn&&(r[jt].providerFactory=Un),OE(d,e,t.length,0),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(Un),g.push(Un)}else OE(d,e,_t>-1?_t:jt,TT(r[a?jt:_t],U,!a&&o));!a&&o&&Nn&&r[jt].componentProviders++}}}function OE(e,t,r,o){const a=ds(t),d=function Ns(e){return!!e.useClass}(t);if(a||d){const A=(d?ve(t.useClass):t).prototype.ngOnDestroy;if(A){const U=e.destroyHooks||(e.destroyHooks=[]);if(!a&&t.multi){const Y=U.indexOf(r);-1===Y?U.push(r,[o,A]):U[Y+1].push(o,A)}else U.push(r,A)}}}function TT(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function NE(e,t,r,o){for(let a=r;a{r.providersResolver=(o,a)=>function iR(e,t,r){const o=Mi();if(o.firstCreatePass){const a=Is(e);xE(r,o.data,o.blueprint,a,!0),xE(t,o.data,o.blueprint,a,!1)}}(o,a?a(e):e,t)}}let lR=(()=>{var e;class t{constructor(o){this._injector=o,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(o){if(!o.standalone)return null;if(!this.cachedInjectors.has(o)){const a=Ua(0,o.type),d=a.length>0?Q0([a],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o,d)}return this.cachedInjectors.get(o)}ngOnDestroy(){try{for(const o of this.cachedInjectors.values())null!==o&&o.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=Ir({token:e,providedIn:"environment",factory:()=>new e(W(Qo))}),t})();function bT(e){La("NgStandalone"),e.getStandaloneInjector=t=>t.get(lR).getOrCreateStandaloneInjector(e)}function ST(e,t,r){const o=Ro()+e,a=mn();return a[o]===ci?bu(a,o,r?t.call(r):t()):function Wm(e,t){return e[t]}(a,o)}function iv(e,t){const r=e[t];return r===ci?void 0:r}function NT(e,t){const r=Mi();let o;const a=e+ti;var d;r.firstCreatePass?(o=function ER(e,t){if(t)for(let r=t.length-1;r>=0;r--){const o=t[r];if(e===o.name)return o}}(t,r.pipeRegistry),r.data[a]=o,o.onDestroy&&(null!==(d=r.destroyHooks)&&void 0!==d?d:r.destroyHooks=[]).push(a,o.onDestroy)):o=r.data[a];const g=o.factory||(o.factory=Qr(o.type)),A=K(sd);try{const U=eu(!1),Y=g();return eu(U),function WS(e,t,r,o){r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=o}(r,mn(),a,Y),Y}finally{K(A)}}function kT(e,t,r){const o=e+ti,a=mn(),d=Cs(a,o);return ov(a,o)?function RT(e,t,r,o,a,d){const g=t+r;return zo(e,g,a)?bu(e,g+1,d?o.call(d,a):o(a)):iv(e,g+1)}(a,Ro(),t,d.transform,r,d):d.transform(r)}function FT(e,t,r,o){const a=e+ti,d=mn(),g=Cs(d,a);return ov(d,a)?function MT(e,t,r,o,a,d,g){const y=t+r;return $h(e,y,a,d)?bu(e,y+2,g?o.call(g,a,d):o(a,d)):iv(e,y+2)}(d,Ro(),t,g.transform,r,o,g):g.transform(r,o)}function ov(e,t){return e[Bn].data[t].pure}class JT{constructor(t){this.full=t;const r=t.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}}const WR=new JT("17.3.10");let ZT=(()=>{var e;class t{log(o){console.log(o)}warn(o){console.warn(o)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const rD=new We(""),iD=new We("");let jE,_1=(()=>{var e;class t{constructor(o,a,d){this._ngZone=o,this.registry=a,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,jE||(function y1(e){jE=e}(d),d.addToWindow(a)),this._watchAngularEvents(),o.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Bo.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let o=this._callbacks.pop();clearTimeout(o.timeoutId),o.doneCb()}});else{let o=this.getPendingTasks();this._callbacks=this._callbacks.filter(a=>!a.updateCb||!a.updateCb(o)||(clearTimeout(a.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(o=>({source:o.source,creationLocation:o.creationLocation,data:o.data})):[]}addCallback(o,a,d){let g=-1;a&&a>0&&(g=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==g),o()},a)),this._callbacks.push({doneCb:o,timeoutId:g,updateCb:d})}whenStable(o,a,d){if(d&&!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(o,a,d),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,a,d){return[]}}return(e=t).\u0275fac=function(o){return new(o||e)(W(Bo),W(oD),W(iD))},e.\u0275prov=Ir({token:e,factory:e.\u0275fac}),t})(),oD=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(o,a){this._applications.set(o,a)}unregisterApplication(o){this._applications.delete(o)}unregisterAllApplications(){this._applications.clear()}getTestability(o){return this._applications.get(o)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(o,a=!0){var d,g;return null!==(d=null===(g=jE)||void 0===g?void 0:g.findTestabilityInTree(this,o,a))&&void 0!==d?d:null}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function zE(e){return!!e&&"function"==typeof e.then}function sD(e){return!!e&&"function"==typeof e.subscribe}const aD=new We("");let HE=(()=>{var e;class t{constructor(){var o;this.initialized=!1,this.done=!1,this.donePromise=new Promise((a,d)=>{this.resolve=a,this.reject=d}),this.appInits=null!==(o=Fe(aD,{optional:!0}))&&void 0!==o?o:[]}runInitializers(){if(this.initialized)return;const o=[];for(const d of this.appInits){const g=d();if(zE(g))o.push(g);else if(sD(g)){const y=new Promise((A,U)=>{g.subscribe({complete:A,error:U})});o.push(y)}}const a=()=>{this.done=!0,this.resolve()};Promise.all(o).then(()=>{a()}).catch(d=>{this.reject(d)}),0===o.length&&a(),this.initialized=!0}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const GE=new We("");function cD(e,t){return Array.isArray(t)?t.reduce(cD,e):{...e,...t}}let Cd=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Fe(Gd),this.afterRenderEffectManager=Fe(ud),this.externalTestViews=new Set,this.beforeRender=new kn.B,this.afterTick=new kn.B,this.componentTypes=[],this.components=[],this.isStable=Fe(Pp).hasPendingTasks.pipe((0,gr.T)(o=>!o)),this._injector=Fe(Qo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,a){const d=o instanceof l_;if(!this._injector.get(HE).done)throw!d&&So(o),new nt(405,!1);let y;y=d?o:this._injector.get(hc).resolveComponentFactory(o),this.componentTypes.push(y.componentType);const A=function E1(e){return e.isBoundToModule}(y)?void 0:this._injector.get(Io),Y=y.create(Ts.NULL,[],a||y.selector,A),me=Y.location.nativeElement,Ke=Y.injector.get(rD,null);return null==Ke||Ke.registerApplication(me),Y.onDestroy(()=>{this.detachView(Y.hostView),ly(this.components,Y),null==Ke||Ke.unregisterApplication(me)}),this._loadComponent(Y),Y}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new nt(101,!1);const a=ae(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(d){this.internalErrorHandler(d)}finally{this.afterTick.next(),this._runningTick=!1,ae(a)}}detectChangesInAttachedViews(o){let a=0;const d=this.afterRenderEffectManager;for(;;){if(a===w0)throw new nt(103,!1);if(o){const g=0===a;this.beforeRender.next(g);for(let{_lView:y,notifyErrorHandler:A}of this._views)A1(y,g,A)}if(a++,d.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:g})=>WE(g))&&(d.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:g})=>WE(g))))break}}attachView(o){const a=o;this._views.push(a),a.attachToAppRef(this)}detachView(o){const a=o;ly(this._views,a),a.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const a=this._injector.get(GE,[]);[...this._bootstrapListeners,...a].forEach(d=>d(o))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(o=>o()),this._views.slice().forEach(o=>o.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(o){return this._destroyListeners.push(o),()=>ly(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new nt(406,!1);const o=this._injector;o.destroy&&!o.destroyed&&o.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function ly(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function A1(e,t,r){!t&&!WE(e)||function C1(e,t,r){let o;r?(o=0,e[ir]|=1024):o=64&e[ir]?0:1,hm(e,t,o)}(e,r,t)}function WE(e){return Yl(e)}class T1{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}}let D1=(()=>{var e;class t{compileModuleSync(o){return new Qs(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const a=this.compileModuleSync(o),g=va(Li(o).declarations).reduce((y,A)=>{const U=jr(A);return U&&y.push(new Rh(U)),y},[]);return new T1(a,g)}compileModuleAndAllComponentsAsync(o){return Promise.resolve(this.compileModuleAndAllComponentsSync(o))}clearCache(){}clearCacheFor(o){}getModuleId(o){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),S1=(()=>{var e;class t{constructor(){this.zone=Fe(Bo),this.applicationRef=Fe(Cd)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var o;null===(o=this._onMicrotaskEmptySubscription)||void 0===o||o.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function R1(){const e=Fe(Bo),t=Fe(tl);return r=>e.runOutsideAngular(()=>t.handleError(r))}let P1=(()=>{var e;class t{constructor(){this.subscription=new On.yU,this.initialized=!1,this.zone=Fe(Bo),this.pendingTasks=Fe(Pp)}initialize(){if(this.initialized)return;this.initialized=!0;let o=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(o=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Bo.assertNotInAngularZone(),queueMicrotask(()=>{null!==o&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(o),o=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{var a;Bo.assertInAngularZone(),null!==(a=o)&&void 0!==a||(o=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const uy=new We("",{providedIn:"root",factory:()=>Fe(uy,Pt.Optional|Pt.SkipSelf)||function x1(){return typeof $localize<"u"&&$localize.locale||Yp}()}),O1=new We("",{providedIn:"root",factory:()=>"USD"}),KE=new We("");let pD=(()=>{var e;class t{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,a){const d=function wh(e="zone.js",t){return"noop"===e?new Dm:"zone.js"===e?new Bo(t):e}(null==a?void 0:a.ngZone,function fD(e){var t,r;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:null!==(t=null==e?void 0:e.eventCoalescing)&&void 0!==t&&t,shouldCoalesceRunChangeDetection:null!==(r=null==e?void 0:e.runCoalescing)&&void 0!==r&&r}}({eventCoalescing:null==a?void 0:a.ngZoneEventCoalescing,runCoalescing:null==a?void 0:a.ngZoneRunCoalescing}));return d.run(()=>{const g=function Rp(e,t,r){return new Du(e,t,r)}(o.moduleType,this.injector,function hD(e){return[{provide:Bo,useFactory:e},{provide:Ao,multi:!0,useFactory:()=>{const t=Fe(S1,{optional:!0});return()=>t.initialize()}},{provide:Ao,multi:!0,useFactory:()=>{const t=Fe(P1);return()=>{t.initialize()}}},{provide:Gd,useFactory:R1}]}(()=>d)),y=g.injector.get(tl,null);return d.runOutsideAngular(()=>{const A=d.onError.subscribe({next:U=>{y.handleError(U)}});g.onDestroy(()=>{ly(this._modules,g),A.unsubscribe()})}),function uD(e,t,r){try{const o=r();return zE(o)?o.catch(a=>{throw t.runOutsideAngular(()=>e.handleError(a)),a}):o}catch(o){throw t.runOutsideAngular(()=>e.handleError(o)),o}}(y,d,()=>{const A=g.injector.get(HE);return A.runInitializers(),A.donePromise.then(()=>(function gC(e){"string"==typeof e&&(pC=e.toLowerCase().replace(/_/g,"-"))}(g.injector.get(uy,Yp)||Yp),this._moduleDoBootstrap(g),g))})})}bootstrapModule(o,a=[]){const d=cD({},a);return function w1(e,t,r){const o=new Qs(r);return Promise.resolve(o)}(0,0,o).then(g=>this.bootstrapModuleFactory(g,d))}_moduleDoBootstrap(o){const a=o.injector.get(Cd);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(d=>a.bootstrap(d));else{if(!o.instance.ngDoBootstrap)throw new nt(-403,!1);o.instance.ngDoBootstrap(a)}this._modules.push(o)}onDestroy(o){this._destroyListeners.push(o)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new nt(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const o=this._injector.get(KE,null);o&&(o.forEach(a=>a()),o.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(o){return new(o||e)(W(Ts))},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Td=null;const gD=new We("");function mD(e,t,r=[]){const o=`Platform: ${t}`,a=new We(o);return(d=[])=>{let g=XE();if(!g||g.injector.get(gD,!1)){const y=[...r,...d,{provide:a,useValue:!0}];e?e(y):function k1(e){if(Td&&!Td.get(gD,!1))throw new nt(400,!1);(function lD(){!function Re(e){cn=e}(()=>{throw new nt(600,!1)})})(),Td=e;const t=e.get(pD);(function _D(e){const t=e.get(Ev,null);null==t||t.forEach(r=>r())})(e)}(function vD(e=[],t){return Ts.create({name:t,providers:[{provide:zl,useValue:"platform"},{provide:KE,useValue:new Set([()=>Td=null])},...e]})}(y,o))}return function F1(e){const t=XE();if(!t)throw new nt(401,!1);return t}()}}function XE(){var e,t;return null!==(e=null===(t=Td)||void 0===t?void 0:t.get(pD))&&void 0!==e?e:null}function V1(){}let ED=(()=>{class t{}return t.__NG_ELEMENT_ID__=B1,t})();function B1(e){return function U1(e,t,r){if(gs(e)&&!r){const o=$o(e.index,t);return new sp(o,o)}return 47&e.type?new sp(t[no],t):null}(Xi(),mn(),!(16&~e))}class TD{constructor(){}supports(t){return U_(t)}create(t){return new G1(t)}}const H1=(e,t)=>t;class G1{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||H1}forEachItem(t){let r;for(r=this._itHead;null!==r;r=r._next)t(r)}forEachOperation(t){let r=this._itHead,o=this._removalsHead,a=0,d=null;for(;r||o;){const g=!o||r&&r.currentIndex{g=this._trackByFn(a,y),null!==r&&Object.is(r.trackById,g)?(o&&(r=this._verifyReinsertion(r,y,g,a)),Object.is(r.item,y)||this._addIdentityChange(r,y)):(r=this._mismatch(r,y,g,a),o=!0),r=r._next,a++}),this.length=a;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,r,o,a){let d;return null===t?d=this._itTail:(d=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._reinsertAfter(t,d,a)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(o,a))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,d,a)):t=this._addAfter(new W1(r,o),d,a),t}_verifyReinsertion(t,r,o,a){let d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==d?t=this._reinsertAfter(d,t._prev,a):t.currentIndex!=a&&(t.currentIndex=a,this._addToMoves(t,a)),t}_truncate(t){for(;null!==t;){const r=t._next;this._addToRemovals(this._unlink(t)),t=r}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,r,o){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const a=t._prevRemoved,d=t._nextRemoved;return null===a?this._removalsHead=d:a._nextRemoved=d,null===d?this._removalsTail=a:d._prevRemoved=a,this._insertAfter(t,r,o),this._addToMoves(t,o),t}_moveAfter(t,r,o){return this._unlink(t),this._insertAfter(t,r,o),this._addToMoves(t,o),t}_addAfter(t,r,o){return this._insertAfter(t,r,o),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,r,o){const a=null===r?this._itHead:r._next;return t._next=a,t._prev=r,null===a?this._itTail=t:a._prev=t,null===r?this._itHead=t:r._next=t,null===this._linkedRecords&&(this._linkedRecords=new DD),this._linkedRecords.put(t),t.currentIndex=o,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const r=t._prev,o=t._next;return null===r?this._itHead=o:r._next=o,null===o?this._itTail=r:o._prev=r,t}_addToMoves(t,r){return t.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new DD),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,r){return t.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class W1{constructor(t,r){this.item=t,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class K1{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,r){let o;for(o=this._head;null!==o;o=o._nextDup)if((null===r||r<=o.currentIndex)&&Object.is(o.trackById,t))return o;return null}remove(t){const r=t._prevDup,o=t._nextDup;return null===r?this._head=o:r._nextDup=o,null===o?this._tail=r:o._prevDup=r,null===this._head}}class DD{constructor(){this.map=new Map}put(t){const r=t.trackById;let o=this.map.get(r);o||(o=new K1,this.map.set(r,o)),o.add(t)}get(t,r){const a=this.map.get(t);return a?a.get(t,r):null}remove(t){const r=t.trackById;return this.map.get(r).remove(t)&&this.map.delete(r),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function bD(e,t,r){const o=e.previousIndex;if(null===o)return o;let a=0;return r&&o{if(r&&r.key===a)this._maybeAddToChanges(r,o),this._appendAfter=r,r=r._next;else{const d=this._getOrCreateRecordForKey(a,o);r=this._insertBeforeOrAppend(r,d)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let o=r;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,r){if(t){const o=t._prev;return r._next=t,r._prev=o,t._prev=r,o&&(o._next=r),t===this._mapHead&&(this._mapHead=r),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(t,r){if(this._records.has(t)){const a=this._records.get(t);this._maybeAddToChanges(a,r);const d=a._prev,g=a._next;return d&&(d._next=g),g&&(g._prev=d),a._next=null,a._prev=null,a}const o=new q1(t);return this._records.set(t,o),o.currentValue=r,this._addToAdditions(o),o}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,r){Object.is(r,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=r,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,r){t instanceof Map?t.forEach(r):Object.keys(t).forEach(o=>r(t[o],o))}}class q1{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function SD(){return new ZE([new TD])}let ZE=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(null!=a){const d=a.factories.slice();o=o.concat(d)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||SD()),deps:[[t,new _r,new Gn]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(null!=a)return a;throw new nt(901,!1)}}return(e=t).\u0275prov=Ir({token:e,providedIn:"root",factory:SD}),t})();function RD(){return new eI([new wD])}let eI=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(a){const d=a.factories.slice();o=o.concat(d)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||RD()),deps:[[t,new _r,new Gn]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(a)return a;throw new nt(901,!1)}}return(e=t).\u0275prov=Ir({token:e,providedIn:"root",factory:RD}),t})();const J1=mD(null,"core",[]);let Z1=(()=>{var e;class t{constructor(o){}}return(e=t).\u0275fac=function(o){return new(o||e)(W(Cd))},e.\u0275mod=cs({type:e}),e.\u0275inj=vi({}),t})();function SM(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function RM(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function PM(e){const t=ae(null);try{return e()}finally{ae(t)}}const xM=new We("",{providedIn:"root",factory:()=>Fe(OM)});let OM=(()=>{var e;class t{}return(e=t).\u0275prov=Ir({token:e,providedIn:"root",factory:()=>new NM}),t})();class NM{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Fe(Pp),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),null===this.taskId){const r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(t){const r=t.creationZone;this.queues.has(r)||this.queues.set(r,new Set);const o=this.queues.get(r);o.has(t)||(this.queuedEffectCount++,o.add(t))}flush(){for(;this.queuedEffectCount>0;)for(const[t,r]of this.queues)null===t?this.flushQueue(r):t.run(()=>this.flushQueue(r))}flushQueue(t){for(const r of t)t.delete(r),this.queuedEffectCount--,r.run()}}class kM{constructor(t,r,o,a,d,g){this.scheduler=t,this.effectFn=r,this.creationZone=o,this.injector=d,this.watcher=function xn(e,t,r){const o=Object.create(Je);r&&(o.consumerAllowSignalWrites=!0),o.fn=e,o.schedule=t;const a=A=>{o.cleanupFn=A};return o.ref={notify:()=>xt(o),run:()=>{if(null===o.fn)return;if(function tt(){return ke}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(o.dirty=!1,o.hasRun&&!Tt(o))return;o.hasRun=!0;const A=Dt(o);try{o.cleanupFn(),o.cleanupFn=un,o.fn(a)}finally{zt(o,A)}},cleanup:()=>o.cleanupFn(),destroy:()=>function g(A){(function d(A){return null===A.fn&&null===A.schedule})(A)||(At(A),A.cleanupFn(),A.fn=null,A.schedule=null,A.cleanupFn=un)}(o),[he]:o},o.ref}(y=>this.runEffect(y),()=>this.schedule(),g),this.unregisterOnDestroy=null==a?void 0:a.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(r){const o=this.injector.get(tl,null,{optional:!0});null==o||o.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){var t;this.watcher.destroy(),null===(t=this.unregisterOnDestroy)||void 0===t||t.call(this)}}function YD(e,t){var r,o;La("NgSignals"),(null==t||!t.injector)&&Ca();const a=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Fe(Ts),d=!0!==(null==t?void 0:t.manualCleanup)?a.get(qu):null,g=new kM(a.get(xM),e,typeof Zone>"u"?null:Zone.current,d,a,null!==(o=null==t?void 0:t.allowSignalWrites)&&void 0!==o&&o),y=a.get(ED,null,{optional:!0});var A,U;return y&&8&y._lView[ir]?(null!==(U=(A=y._lView)[ra])&&void 0!==U?U:A[ra]=[]).push(g.watcher.notify):g.watcher.notify(),g}function FM(e,t){const r=jr(e),o=t.elementInjector||fs();return new Rh(r).create(o,t.projectableNodes,t.hostElement,t.environmentInjector)}function LM(e){const t=jr(e);if(!t)return null;const r=new Rh(t);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},7440:(Pn,It,C)=>{"use strict";C.d(It,{MW:()=>it,Wp:()=>xt,XU:()=>ke,gL:()=>$});var h=C(2214),c=C(4438),Z=C(5407);class ke{constructor(Ze){return Ze}}class ${constructor(){return(0,h.Dk)()}}const Xe=new c.nKC("angularfire2._apps"),tt={provide:ke,useFactory:function ae(Ie){return Ie&&1===Ie.length?Ie[0]:new ke((0,h.Sx)())},deps:[[new c.Xx1,Xe]]},Se={provide:$,deps:[[new c.Xx1,Xe]]};function be(Ie){return(Ze,_e)=>{const $e=_e.get(c.Agw);(0,h.KO)("angularfire",Z.xv.full,"core"),(0,h.KO)("angularfire",Z.xv.full,"app"),(0,h.KO)("angular",c.xvI.full,$e.toString());const Le=Ze.runOutsideAngular(()=>Ie(_e));return new ke(Le)}}function it(Ie,...Ze){return(0,c.EmA)([tt,Se,{provide:Xe,useFactory:be(Ie),multi:!0,deps:[c.SKi,c.zZn,Z.u0,...Ze]}])}const xt=(0,Z.S3)(h.Wp,!0)},8737:(Pn,It,C)=>{"use strict";C.d(It,{Nj:()=>Ja,DF:()=>Dl,eJ:()=>Wu,xI:()=>ug,_q:()=>bl,x9:()=>Qu,kQ:()=>$c});var h=C(5407),c=C(4438),Z=C(7440),ke=C(2214),$=C(467),he=C(7852),ae=C(1076),Xe=C(8041),tt=C(1635),Se=C(1362);const zt=function xt(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}},Tt=new ae.FA("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),Ie=new Xe.Vy("@firebase/auth");function _e(I,...f){Ie.logLevel<=Xe.$b.ERROR&&Ie.error(`Auth (${he.MF}): ${I}`,...f)}function $e(I,...f){throw Cn(I,...f)}function Le(I,...f){return Cn(I,...f)}function Oe(I,f,v){const S=Object.assign(Object.assign({},zt()),{[f]:v});return new ae.FA("auth","Firebase",S).create(f,{appName:I.name})}function Ct(I){return Oe(I,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Cn(I,...f){if("string"!=typeof I){const v=f[0],S=[...f.slice(1)];return S[0]&&(S[0].appName=I.name),I._errorFactory.create(v,...S)}return Tt.create(I,...f)}function Et(I,f,...v){if(!I)throw Cn(f,...v)}function st(I){const f="INTERNAL ASSERTION FAILED: "+I;throw _e(f),new Error(f)}function cn(I,f){I||st(f)}function vt(){var I;return typeof self<"u"&&(null===(I=self.location)||void 0===I?void 0:I.href)||""}function G(){var I;return typeof self<"u"&&(null===(I=self.location)||void 0===I?void 0:I.protocol)||null}class ue{constructor(f,v){this.shortDelay=f,this.longDelay=v,cn(v>f,"Short delay should be less than long delay!"),this.isMobile=(0,ae.jZ)()||(0,ae.lV)()}get(){return function X(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function Re(){return"http:"===G()||"https:"===G()}()||(0,ae.sr)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function Ee(I,f){cn(I.emulator,"Emulator should always be set here");const{url:v}=I.emulator;return f?`${v}${f.startsWith("/")?f.slice(1):f}`:v}class Ve{static initialize(f,v,S){this.fetchImpl=f,v&&(this.headersImpl=v),S&&(this.responseImpl=S)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:typeof globalThis<"u"&&globalThis.fetch?globalThis.fetch:typeof fetch<"u"?fetch:void st("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:typeof self<"u"&&"Headers"in self?self.Headers:typeof globalThis<"u"&&globalThis.Headers?globalThis.Headers:typeof Headers<"u"?Headers:void st("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:typeof self<"u"&&"Response"in self?self.Response:typeof globalThis<"u"&&globalThis.Response?globalThis.Response:typeof Response<"u"?Response:void st("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const ut={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},fn=new ue(3e4,6e4);function xn(I,f){return I.tenantId&&!f.tenantId?Object.assign(Object.assign({},f),{tenantId:I.tenantId}):f}function un(I,f,v,S){return Je.apply(this,arguments)}function Je(){return(Je=(0,$.A)(function*(I,f,v,S,J={}){return Sn(I,J,(0,$.A)(function*(){let Me={},Mt={};S&&("GET"===f?Mt=S:Me={body:JSON.stringify(S)});const Jt=(0,ae.Am)(Object.assign({key:I.config.apiKey},Mt)).slice(1),Mn=yield I._getAdditionalHeaders();return Mn["Content-Type"]="application/json",I.languageCode&&(Mn["X-Firebase-Locale"]=I.languageCode),Ve.fetch()(gr(I,I.config.apiHost,v,Jt),Object.assign({method:f,headers:Mn,referrerPolicy:"no-referrer"},Me))}))})).apply(this,arguments)}function Sn(I,f,v){return kn.apply(this,arguments)}function kn(){return(kn=(0,$.A)(function*(I,f,v){I._canInitEmulator=!1;const S=Object.assign(Object.assign({},ut),f);try{const J=new dr(I),Me=yield Promise.race([v(),J.promise]);J.clearNetworkTimeout();const Mt=yield Me.json();if("needConfirmation"in Mt)throw nt(I,"account-exists-with-different-credential",Mt);if(Me.ok&&!("errorMessage"in Mt))return Mt;{const Jt=Me.ok?Mt.errorMessage:Mt.error.message,[Mn,Jn]=Jt.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===Mn)throw nt(I,"credential-already-in-use",Mt);if("EMAIL_EXISTS"===Mn)throw nt(I,"email-already-in-use",Mt);if("USER_DISABLED"===Mn)throw nt(I,"user-disabled",Mt);const xr=S[Mn]||Mn.toLowerCase().replace(/[_\s]+/g,"-");if(Jn)throw Oe(I,xr,Jn);$e(I,xr)}}catch(J){if(J instanceof ae.g)throw J;$e(I,"network-request-failed",{message:String(J)})}})).apply(this,arguments)}function On(I,f,v,S){return or.apply(this,arguments)}function or(){return(or=(0,$.A)(function*(I,f,v,S,J={}){const Me=yield un(I,f,v,S,J);return"mfaPendingCredential"in Me&&$e(I,"multi-factor-auth-required",{_serverResponse:Me}),Me})).apply(this,arguments)}function gr(I,f,v,S){const J=`${f}${v}?${S}`;return I.config.emulator?Ee(I.config,J):`${I.config.apiScheme}://${J}`}function cr(I){switch(I){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class dr{constructor(f){this.auth=f,this.timer=null,this.promise=new Promise((v,S)=>{this.timer=setTimeout(()=>S(Le(this.auth,"network-request-failed")),fn.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function nt(I,f,v){const S={appName:I.name};v.email&&(S.email=v.email),v.phoneNumber&&(S.phoneNumber=v.phoneNumber);const J=Le(I,f,S);return J.customData._tokenResponse=v,J}function Xt(I){return void 0!==I&&void 0!==I.enterprise}class yn{constructor(f){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===f.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=f.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=f.recaptchaEnforcementState}getProviderEnforcementState(f){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const v of this.recaptchaEnforcementState)if(v.provider&&v.provider===f)return cr(v.enforcementState);return null}isProviderEnabled(f){return"ENFORCE"===this.getProviderEnforcementState(f)||"AUDIT"===this.getProviderEnforcementState(f)}}function Vn(I,f){return $n.apply(this,arguments)}function $n(){return($n=(0,$.A)(function*(I,f){return un(I,"GET","/v2/recaptchaConfig",xn(I,f))})).apply(this,arguments)}function on(){return(on=(0,$.A)(function*(I,f){return un(I,"POST","/v1/accounts:delete",f)})).apply(this,arguments)}function Vr(I,f){return rr.apply(this,arguments)}function rr(){return(rr=(0,$.A)(function*(I,f){return un(I,"POST","/v1/accounts:lookup",f)})).apply(this,arguments)}function Mr(I){if(I)try{const f=new Date(Number(I));if(!isNaN(f.getTime()))return f.toUTCString()}catch{}}function Tr(){return(Tr=(0,$.A)(function*(I,f=!1){const v=(0,ae.Ku)(I),S=yield v.getIdToken(f),J=Br(S);Et(J&&J.exp&&J.auth_time&&J.iat,v.auth,"internal-error");const Me="object"==typeof J.firebase?J.firebase:void 0,Mt=null==Me?void 0:Me.sign_in_provider;return{claims:J,token:S,authTime:Mr(yr(J.auth_time)),issuedAtTime:Mr(yr(J.iat)),expirationTime:Mr(yr(J.exp)),signInProvider:Mt||null,signInSecondFactor:(null==Me?void 0:Me.sign_in_second_factor)||null}})).apply(this,arguments)}function yr(I){return 1e3*Number(I)}function Br(I){const[f,v,S]=I.split(".");if(void 0===f||void 0===v||void 0===S)return _e("JWT malformed, contained fewer than 3 sections"),null;try{const J=(0,ae.u)(v);return J?JSON.parse(J):(_e("Failed to decode base64 JWT payload"),null)}catch(J){return _e("Caught error parsing JWT payload as JSON",null==J?void 0:J.toString()),null}}function ar(I){const f=Br(I);return Et(f,"internal-error"),Et(typeof f.exp<"u","internal-error"),Et(typeof f.iat<"u","internal-error"),Number(f.exp)-Number(f.iat)}function Lr(I,f){return li.apply(this,arguments)}function li(){return(li=(0,$.A)(function*(I,f,v=!1){if(v)return f;try{return yield f}catch(S){throw S instanceof ae.g&&function Di({code:I}){return"auth/user-disabled"===I||"auth/user-token-expired"===I}(S)&&I.auth.currentUser===I&&(yield I.auth.signOut()),S}})).apply(this,arguments)}class Zr{constructor(f){this.user=f,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(f){var v;if(f){const S=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),S}{this.errorBackoff=3e4;const J=(null!==(v=this.user.stsTokenManager.expirationTime)&&void 0!==v?v:0)-Date.now()-3e5;return Math.max(0,J)}}schedule(f=!1){var v=this;if(!this.isRunning)return;const S=this.getInterval(f);this.timerId=setTimeout((0,$.A)(function*(){yield v.iteration()}),S)}iteration(){var f=this;return(0,$.A)(function*(){try{yield f.user.getIdToken(!0)}catch(v){return void("auth/network-request-failed"===(null==v?void 0:v.code)&&f.schedule(!0))}f.schedule()})()}}class ve{constructor(f,v){this.createdAt=f,this.lastLoginAt=v,this._initializeTime()}_initializeTime(){this.lastSignInTime=Mr(this.lastLoginAt),this.creationTime=Mr(this.createdAt)}_copy(f){this.createdAt=f.createdAt,this.lastLoginAt=f.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function rt(I){return Nt.apply(this,arguments)}function Nt(){return(Nt=(0,$.A)(function*(I){var f;const v=I.auth,S=yield I.getIdToken(),J=yield Lr(I,Vr(v,{idToken:S}));Et(null==J?void 0:J.users.length,v,"internal-error");const Me=J.users[0];I._notifyReloadListener(Me);const Mt=null!==(f=Me.providerUserInfo)&&void 0!==f&&f.length?Ge(Me.providerUserInfo):[],Jt=function Ae(I,f){return[...I.filter(S=>!f.some(J=>J.providerId===S.providerId)),...f]}(I.providerData,Mt),xr=!!I.isAnonymous&&!(I.email&&Me.passwordHash||null!=Jt&&Jt.length),Ci={uid:Me.localId,displayName:Me.displayName||null,photoURL:Me.photoUrl||null,email:Me.email||null,emailVerified:Me.emailVerified||!1,phoneNumber:Me.phoneNumber||null,tenantId:Me.tenantId||null,providerData:Jt,metadata:new ve(Me.createdAt,Me.lastLoginAt),isAnonymous:xr};Object.assign(I,Ci)})).apply(this,arguments)}function de(){return(de=(0,$.A)(function*(I){const f=(0,ae.Ku)(I);yield rt(f),yield f.auth._persistUserIfCurrent(f),f.auth._notifyListenersIfCurrent(f)})).apply(this,arguments)}function Ge(I){return I.map(f=>{var{providerId:v}=f,S=(0,tt.Tt)(f,["providerId"]);return{providerId:v,uid:S.rawId||"",displayName:S.displayName||null,email:S.email||null,phoneNumber:S.phoneNumber||null,photoURL:S.photoUrl||null}})}function le(){return(le=(0,$.A)(function*(I,f){const v=yield Sn(I,{},(0,$.A)(function*(){const S=(0,ae.Am)({grant_type:"refresh_token",refresh_token:f}).slice(1),{tokenApiHost:J,apiKey:Me}=I.config,Mt=gr(I,J,"/v1/token",`key=${Me}`),Jt=yield I._getAdditionalHeaders();return Jt["Content-Type"]="application/x-www-form-urlencoded",Ve.fetch()(Mt,{method:"POST",headers:Jt,body:S})}));return{accessToken:v.access_token,expiresIn:v.expires_in,refreshToken:v.refresh_token}})).apply(this,arguments)}function ft(){return(ft=(0,$.A)(function*(I,f){return un(I,"POST","/v2/accounts:revokeToken",xn(I,f))})).apply(this,arguments)}class Qt{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(f){Et(f.idToken,"internal-error"),Et(typeof f.idToken<"u","internal-error"),Et(typeof f.refreshToken<"u","internal-error");const v="expiresIn"in f&&typeof f.expiresIn<"u"?Number(f.expiresIn):ar(f.idToken);this.updateTokensAndExpiration(f.idToken,f.refreshToken,v)}updateFromIdToken(f){Et(0!==f.length,"internal-error");const v=ar(f);this.updateTokensAndExpiration(f,null,v)}getToken(f,v=!1){var S=this;return(0,$.A)(function*(){return v||!S.accessToken||S.isExpired?(Et(S.refreshToken,f,"user-token-expired"),S.refreshToken?(yield S.refresh(f,S.refreshToken),S.accessToken):null):S.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(f,v){var S=this;return(0,$.A)(function*(){const{accessToken:J,refreshToken:Me,expiresIn:Mt}=yield function $t(I,f){return le.apply(this,arguments)}(f,v);S.updateTokensAndExpiration(J,Me,Number(Mt))})()}updateTokensAndExpiration(f,v,S){this.refreshToken=v||null,this.accessToken=f||null,this.expirationTime=Date.now()+1e3*S}static fromJSON(f,v){const{refreshToken:S,accessToken:J,expirationTime:Me}=v,Mt=new Qt;return S&&(Et("string"==typeof S,"internal-error",{appName:f}),Mt.refreshToken=S),J&&(Et("string"==typeof J,"internal-error",{appName:f}),Mt.accessToken=J),Me&&(Et("number"==typeof Me,"internal-error",{appName:f}),Mt.expirationTime=Me),Mt}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(f){this.accessToken=f.accessToken,this.refreshToken=f.refreshToken,this.expirationTime=f.expirationTime}_clone(){return Object.assign(new Qt,this.toJSON())}_performRefresh(){return st("not implemented")}}function sn(I,f){Et("string"==typeof I||typeof I>"u","internal-error",{appName:f})}class Tn{constructor(f){var{uid:v,auth:S,stsTokenManager:J}=f,Me=(0,tt.Tt)(f,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Zr(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=v,this.auth=S,this.stsTokenManager=J,this.accessToken=J.accessToken,this.displayName=Me.displayName||null,this.email=Me.email||null,this.emailVerified=Me.emailVerified||!1,this.phoneNumber=Me.phoneNumber||null,this.photoURL=Me.photoURL||null,this.isAnonymous=Me.isAnonymous||!1,this.tenantId=Me.tenantId||null,this.providerData=Me.providerData?[...Me.providerData]:[],this.metadata=new ve(Me.createdAt||void 0,Me.lastLoginAt||void 0)}getIdToken(f){var v=this;return(0,$.A)(function*(){const S=yield Lr(v,v.stsTokenManager.getToken(v.auth,f));return Et(S,v.auth,"internal-error"),v.accessToken!==S&&(v.accessToken=S,yield v.auth._persistUserIfCurrent(v),v.auth._notifyListenersIfCurrent(v)),S})()}getIdTokenResult(f){return function ii(I){return Tr.apply(this,arguments)}(this,f)}reload(){return function pt(I){return de.apply(this,arguments)}(this)}_assign(f){this!==f&&(Et(this.uid===f.uid,this.auth,"internal-error"),this.displayName=f.displayName,this.photoURL=f.photoURL,this.email=f.email,this.emailVerified=f.emailVerified,this.phoneNumber=f.phoneNumber,this.isAnonymous=f.isAnonymous,this.tenantId=f.tenantId,this.providerData=f.providerData.map(v=>Object.assign({},v)),this.metadata._copy(f.metadata),this.stsTokenManager._assign(f.stsTokenManager))}_clone(f){const v=new Tn(Object.assign(Object.assign({},this),{auth:f,stsTokenManager:this.stsTokenManager._clone()}));return v.metadata._copy(this.metadata),v}_onReload(f){Et(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=f,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(f){this.reloadListener?this.reloadListener(f):this.reloadUserInfo=f}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(f,v=!1){var S=this;return(0,$.A)(function*(){let J=!1;f.idToken&&f.idToken!==S.stsTokenManager.accessToken&&(S.stsTokenManager.updateFromServerResponse(f),J=!0),v&&(yield rt(S)),yield S.auth._persistUserIfCurrent(S),J&&S.auth._notifyListenersIfCurrent(S)})()}delete(){var f=this;return(0,$.A)(function*(){if((0,he.xZ)(f.auth.app))return Promise.reject(Ct(f.auth));const v=yield f.getIdToken();return yield Lr(f,function In(I,f){return on.apply(this,arguments)}(f.auth,{idToken:v})),f.stsTokenManager.clearRefreshToken(),f.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(f=>Object.assign({},f)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(f,v){var S,J,Me,Mt,Jt,Mn,Jn,xr;const Ci=null!==(S=v.displayName)&&void 0!==S?S:void 0,Yo=null!==(J=v.email)&&void 0!==J?J:void 0,go=null!==(Me=v.phoneNumber)&&void 0!==Me?Me:void 0,ma=null!==(Mt=v.photoURL)&&void 0!==Mt?Mt:void 0,Xd=null!==(Jt=v.tenantId)&&void 0!==Jt?Jt:void 0,su=null!==(Mn=v._redirectEventId)&&void 0!==Mn?Mn:void 0,qd=null!==(Jn=v.createdAt)&&void 0!==Jn?Jn:void 0,ec=null!==(xr=v.lastLoginAt)&&void 0!==xr?xr:void 0,{uid:tc,emailVerified:nc,isAnonymous:Tf,providerData:au,stsTokenManager:Df}=v;Et(tc&&Df,f,"internal-error");const Qd=Qt.fromJSON(this.name,Df);Et("string"==typeof tc,f,"internal-error"),sn(Ci,f.name),sn(Yo,f.name),Et("boolean"==typeof nc,f,"internal-error"),Et("boolean"==typeof Tf,f,"internal-error"),sn(go,f.name),sn(ma,f.name),sn(Xd,f.name),sn(su,f.name),sn(qd,f.name),sn(ec,f.name);const Yd=new Tn({uid:tc,auth:f,email:Yo,emailVerified:nc,displayName:Ci,isAnonymous:Tf,photoURL:ma,phoneNumber:go,tenantId:Xd,stsTokenManager:Qd,createdAt:qd,lastLoginAt:ec});return au&&Array.isArray(au)&&(Yd.providerData=au.map(Jd=>Object.assign({},Jd))),su&&(Yd._redirectEventId=su),Yd}static _fromIdTokenResponse(f,v,S=!1){return(0,$.A)(function*(){const J=new Qt;J.updateFromServerResponse(v);const Me=new Tn({uid:v.localId,auth:f,stsTokenManager:J,isAnonymous:S});return yield rt(Me),Me})()}static _fromGetAccountInfoResponse(f,v,S){return(0,$.A)(function*(){const J=v.users[0];Et(void 0!==J.localId,"internal-error");const Me=void 0!==J.providerUserInfo?Ge(J.providerUserInfo):[],Mt=!(J.email&&J.passwordHash||null!=Me&&Me.length),Jt=new Qt;Jt.updateFromIdToken(S);const Mn=new Tn({uid:J.localId,auth:f,stsTokenManager:Jt,isAnonymous:Mt}),Jn={uid:J.localId,displayName:J.displayName||null,photoURL:J.photoUrl||null,email:J.email||null,emailVerified:J.emailVerified||!1,phoneNumber:J.phoneNumber||null,tenantId:J.tenantId||null,providerData:Me,metadata:new ve(J.createdAt,J.lastLoginAt),isAnonymous:!(J.email&&J.passwordHash||null!=Me&&Me.length)};return Object.assign(Mn,Jn),Mn})()}}const Xn=new Map;function dn(I){cn(I instanceof Function,"Expected a class definition");let f=Xn.get(I);return f?(cn(f instanceof I,"Instance stored in cache mismatched with class"),f):(f=new I,Xn.set(I,f),f)}const hr=(()=>{class I{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,$.A)(function*(){return!0})()}_set(v,S){var J=this;return(0,$.A)(function*(){J.storage[v]=S})()}_get(v){var S=this;return(0,$.A)(function*(){const J=S.storage[v];return void 0===J?null:J})()}_remove(v){var S=this;return(0,$.A)(function*(){delete S.storage[v]})()}_addListener(v,S){}_removeListener(v,S){}}return I.type="NONE",I})();function wr(I,f,v){return`firebase:${I}:${f}:${v}`}class fr{constructor(f,v,S){this.persistence=f,this.auth=v,this.userKey=S;const{config:J,name:Me}=this.auth;this.fullUserKey=wr(this.userKey,J.apiKey,Me),this.fullPersistenceKey=wr("persistence",J.apiKey,Me),this.boundEventHandler=v._onStorageEvent.bind(v),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(f){return this.persistence._set(this.fullUserKey,f.toJSON())}getCurrentUser(){var f=this;return(0,$.A)(function*(){const v=yield f.persistence._get(f.fullUserKey);return v?Tn._fromJSON(f.auth,v):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(f){var v=this;return(0,$.A)(function*(){if(v.persistence===f)return;const S=yield v.getCurrentUser();return yield v.removeCurrentUser(),v.persistence=f,S?v.setCurrentUser(S):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(f,v,S="authUser"){return(0,$.A)(function*(){if(!v.length)return new fr(dn(hr),f,S);const J=(yield Promise.all(v.map(function(){var Jn=(0,$.A)(function*(xr){if(yield xr._isAvailable())return xr});return function(xr){return Jn.apply(this,arguments)}}()))).filter(Jn=>Jn);let Me=J[0]||dn(hr);const Mt=wr(S,f.config.apiKey,f.name);let Jt=null;for(const Jn of v)try{const xr=yield Jn._get(Mt);if(xr){const Ci=Tn._fromJSON(f,xr);Jn!==Me&&(Jt=Ci),Me=Jn;break}}catch{}const Mn=J.filter(Jn=>Jn._shouldAllowMigration);return Me._shouldAllowMigration&&Mn.length?(Me=Mn[0],Jt&&(yield Me._set(Mt,Jt.toJSON())),yield Promise.all(v.map(function(){var Jn=(0,$.A)(function*(xr){if(xr!==Me)try{yield xr._remove(Mt)}catch{}});return function(xr){return Jn.apply(this,arguments)}}())),new fr(Me,f,S)):new fr(Me,f,S)})()}}function Ur(I){const f=I.toLowerCase();if(f.includes("opera/")||f.includes("opr/")||f.includes("opios/"))return"Opera";if(vi(f))return"IEMobile";if(f.includes("msie")||f.includes("trident/"))return"IE";if(f.includes("edge/"))return"Edge";if(oi(f))return"Firefox";if(f.includes("silk/"))return"Silk";if(Gt(f))return"Blackberry";if(ie(f))return"Webos";if(Ir(f))return"Safari";if((f.includes("chrome/")||xi(f))&&!f.includes("edge/"))return"Chrome";if(Ar(f))return"Android";{const S=I.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===(null==S?void 0:S.length))return S[1]}return"Other"}function oi(I=(0,ae.ZQ)()){return/firefox\//i.test(I)}function Ir(I=(0,ae.ZQ)()){const f=I.toLowerCase();return f.includes("safari/")&&!f.includes("chrome/")&&!f.includes("crios/")&&!f.includes("android")}function xi(I=(0,ae.ZQ)()){return/crios\//i.test(I)}function vi(I=(0,ae.ZQ)()){return/iemobile/i.test(I)}function Ar(I=(0,ae.ZQ)()){return/android/i.test(I)}function Gt(I=(0,ae.ZQ)()){return/blackberry/i.test(I)}function ie(I=(0,ae.ZQ)()){return/webos/i.test(I)}function te(I=(0,ae.ZQ)()){return/iphone|ipad|ipod/i.test(I)||/macintosh/i.test(I)&&/mobile/i.test(I)}function re(I=(0,ae.ZQ)()){return te(I)||Ar(I)||ie(I)||Gt(I)||/windows phone/i.test(I)||vi(I)}function We(I,f=[]){let v;switch(I){case"Browser":v=Ur((0,ae.ZQ)());break;case"Worker":v=`${Ur((0,ae.ZQ)())}-${I}`;break;default:v=I}const S=f.length?f.join(","):"FirebaseCore-web";return`${v}/JsCore/${he.MF}/${S}`}class St{constructor(f){this.auth=f,this.queue=[]}pushCallback(f,v){const S=Me=>new Promise((Mt,Jt)=>{try{Mt(f(Me))}catch(Mn){Jt(Mn)}});S.onAbort=v,this.queue.push(S);const J=this.queue.length-1;return()=>{this.queue[J]=()=>Promise.resolve()}}runMiddleware(f){var v=this;return(0,$.A)(function*(){if(v.auth.currentUser===f)return;const S=[];try{for(const J of v.queue)yield J(f),J.onAbort&&S.push(J.onAbort)}catch(J){S.reverse();for(const Me of S)try{Me()}catch{}throw v.auth._errorFactory.create("login-blocked",{originalMessage:null==J?void 0:J.message})}})()}}function rn(){return(rn=(0,$.A)(function*(I,f={}){return un(I,"GET","/v2/passwordPolicy",xn(I,f))})).apply(this,arguments)}class qn{constructor(f){var v,S,J,Me;const Mt=f.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(v=Mt.minPasswordLength)&&void 0!==v?v:6,Mt.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=Mt.maxPasswordLength),void 0!==Mt.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=Mt.containsLowercaseCharacter),void 0!==Mt.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=Mt.containsUppercaseCharacter),void 0!==Mt.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=Mt.containsNumericCharacter),void 0!==Mt.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=Mt.containsNonAlphanumericCharacter),this.enforcementState=f.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(J=null===(S=f.allowedNonAlphanumericCharacters)||void 0===S?void 0:S.join(""))&&void 0!==J?J:"",this.forceUpgradeOnSignin=null!==(Me=f.forceUpgradeOnSignin)&&void 0!==Me&&Me,this.schemaVersion=f.schemaVersion}validatePassword(f){var v,S,J,Me,Mt,Jt;const Mn={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(f,Mn),this.validatePasswordCharacterOptions(f,Mn),Mn.isValid&&(Mn.isValid=null===(v=Mn.meetsMinPasswordLength)||void 0===v||v),Mn.isValid&&(Mn.isValid=null===(S=Mn.meetsMaxPasswordLength)||void 0===S||S),Mn.isValid&&(Mn.isValid=null===(J=Mn.containsLowercaseLetter)||void 0===J||J),Mn.isValid&&(Mn.isValid=null===(Me=Mn.containsUppercaseLetter)||void 0===Me||Me),Mn.isValid&&(Mn.isValid=null===(Mt=Mn.containsNumericCharacter)||void 0===Mt||Mt),Mn.isValid&&(Mn.isValid=null===(Jt=Mn.containsNonAlphanumericCharacter)||void 0===Jt||Jt),Mn}validatePasswordLengthOptions(f,v){const S=this.customStrengthOptions.minPasswordLength,J=this.customStrengthOptions.maxPasswordLength;S&&(v.meetsMinPasswordLength=f.length>=S),J&&(v.meetsMaxPasswordLength=f.length<=J)}validatePasswordCharacterOptions(f,v){let S;this.updatePasswordCharacterOptionsStatuses(v,!1,!1,!1,!1);for(let J=0;J="a"&&S<="z",S>="A"&&S<="Z",S>="0"&&S<="9",this.allowedNonAlphanumericCharacters.includes(S))}updatePasswordCharacterOptionsStatuses(f,v,S,J,Me){this.customStrengthOptions.containsLowercaseLetter&&(f.containsLowercaseLetter||(f.containsLowercaseLetter=v)),this.customStrengthOptions.containsUppercaseLetter&&(f.containsUppercaseLetter||(f.containsUppercaseLetter=S)),this.customStrengthOptions.containsNumericCharacter&&(f.containsNumericCharacter||(f.containsNumericCharacter=J)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(f.containsNonAlphanumericCharacter||(f.containsNonAlphanumericCharacter=Me))}}class Sr{constructor(f,v,S,J){this.app=f,this.heartbeatServiceProvider=v,this.appCheckServiceProvider=S,this.config=J,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new zr(this),this.idTokenSubscription=new zr(this),this.beforeStateQueue=new St(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Tt,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=f.name,this.clientVersion=J.sdkClientVersion}_initializeWithPersistence(f,v){var S=this;return v&&(this._popupRedirectResolver=dn(v)),this._initializationPromise=this.queue((0,$.A)(function*(){var J,Me;if(!S._deleted&&(S.persistenceManager=yield fr.create(S,f),!S._deleted)){if(null!==(J=S._popupRedirectResolver)&&void 0!==J&&J._shouldInitProactively)try{yield S._popupRedirectResolver._initialize(S)}catch{}yield S.initializeCurrentUser(v),S.lastNotifiedUid=(null===(Me=S.currentUser)||void 0===Me?void 0:Me.uid)||null,!S._deleted&&(S._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var f=this;return(0,$.A)(function*(){if(f._deleted)return;const v=yield f.assertedPersistence.getCurrentUser();if(f.currentUser||v){if(f.currentUser&&v&&f.currentUser.uid===v.uid)return f._currentUser._assign(v),void(yield f.currentUser.getIdToken());yield f._updateCurrentUser(v,!0)}})()}initializeCurrentUserFromIdToken(f){var v=this;return(0,$.A)(function*(){try{const S=yield Vr(v,{idToken:f}),J=yield Tn._fromGetAccountInfoResponse(v,S,f);yield v.directlySetCurrentUser(J)}catch(S){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",S),yield v.directlySetCurrentUser(null)}})()}initializeCurrentUser(f){var v=this;return(0,$.A)(function*(){var S;if((0,he.xZ)(v.app)){const Jt=v.app.settings.authIdToken;return Jt?new Promise(Mn=>{setTimeout(()=>v.initializeCurrentUserFromIdToken(Jt).then(Mn,Mn))}):v.directlySetCurrentUser(null)}const J=yield v.assertedPersistence.getCurrentUser();let Me=J,Mt=!1;if(f&&v.config.authDomain){yield v.getOrInitRedirectPersistenceManager();const Jt=null===(S=v.redirectUser)||void 0===S?void 0:S._redirectEventId,Mn=null==Me?void 0:Me._redirectEventId,Jn=yield v.tryRedirectSignIn(f);(!Jt||Jt===Mn)&&null!=Jn&&Jn.user&&(Me=Jn.user,Mt=!0)}if(!Me)return v.directlySetCurrentUser(null);if(!Me._redirectEventId){if(Mt)try{yield v.beforeStateQueue.runMiddleware(Me)}catch(Jt){Me=J,v._popupRedirectResolver._overrideRedirectResult(v,()=>Promise.reject(Jt))}return Me?v.reloadAndSetCurrentUserOrClear(Me):v.directlySetCurrentUser(null)}return Et(v._popupRedirectResolver,v,"argument-error"),yield v.getOrInitRedirectPersistenceManager(),v.redirectUser&&v.redirectUser._redirectEventId===Me._redirectEventId?v.directlySetCurrentUser(Me):v.reloadAndSetCurrentUserOrClear(Me)})()}tryRedirectSignIn(f){var v=this;return(0,$.A)(function*(){let S=null;try{S=yield v._popupRedirectResolver._completeRedirectFn(v,f,!0)}catch{yield v._setRedirectUser(null)}return S})()}reloadAndSetCurrentUserOrClear(f){var v=this;return(0,$.A)(function*(){try{yield rt(f)}catch(S){if("auth/network-request-failed"!==(null==S?void 0:S.code))return v.directlySetCurrentUser(null)}return v.directlySetCurrentUser(f)})()}useDeviceLanguage(){this.languageCode=function ce(){if(typeof navigator>"u")return null;const I=navigator;return I.languages&&I.languages[0]||I.language||null}()}_delete(){var f=this;return(0,$.A)(function*(){f._deleted=!0})()}updateCurrentUser(f){var v=this;return(0,$.A)(function*(){if((0,he.xZ)(v.app))return Promise.reject(Ct(v));const S=f?(0,ae.Ku)(f):null;return S&&Et(S.auth.config.apiKey===v.config.apiKey,v,"invalid-user-token"),v._updateCurrentUser(S&&S._clone(v))})()}_updateCurrentUser(f,v=!1){var S=this;return(0,$.A)(function*(){if(!S._deleted)return f&&Et(S.tenantId===f.tenantId,S,"tenant-id-mismatch"),v||(yield S.beforeStateQueue.runMiddleware(f)),S.queue((0,$.A)(function*(){yield S.directlySetCurrentUser(f),S.notifyAuthListeners()}))})()}signOut(){var f=this;return(0,$.A)(function*(){return(0,he.xZ)(f.app)?Promise.reject(Ct(f)):(yield f.beforeStateQueue.runMiddleware(null),(f.redirectPersistenceManager||f._popupRedirectResolver)&&(yield f._setRedirectUser(null)),f._updateCurrentUser(null,!0))})()}setPersistence(f){var v=this;return(0,he.xZ)(this.app)?Promise.reject(Ct(this)):this.queue((0,$.A)(function*(){yield v.assertedPersistence.setPersistence(dn(f))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(f){var v=this;return(0,$.A)(function*(){v._getPasswordPolicyInternal()||(yield v._updatePasswordPolicy());const S=v._getPasswordPolicyInternal();return S.schemaVersion!==v.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(v._errorFactory.create("unsupported-password-policy-schema-version",{})):S.validatePassword(f)})()}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){var f=this;return(0,$.A)(function*(){const v=yield function nn(I){return rn.apply(this,arguments)}(f),S=new qn(v);null===f.tenantId?f._projectPasswordPolicy=S:f._tenantPasswordPolicies[f.tenantId]=S})()}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(f){this._errorFactory=new ae.FA("auth","Firebase",f())}onAuthStateChanged(f,v,S){return this.registerStateListener(this.authStateSubscription,f,v,S)}beforeAuthStateChanged(f,v){return this.beforeStateQueue.pushCallback(f,v)}onIdTokenChanged(f,v,S){return this.registerStateListener(this.idTokenSubscription,f,v,S)}authStateReady(){return new Promise((f,v)=>{if(this.currentUser)f();else{const S=this.onAuthStateChanged(()=>{S(),f()},v)}})}revokeAccessToken(f){var v=this;return(0,$.A)(function*(){if(v.currentUser){const S=yield v.currentUser.getIdToken(),J={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:f,idToken:S};null!=v.tenantId&&(J.tenantId=v.tenantId),yield function gt(I,f){return ft.apply(this,arguments)}(v,J)}})()}toJSON(){var f;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(f=this._currentUser)||void 0===f?void 0:f.toJSON()}}_setRedirectUser(f,v){var S=this;return(0,$.A)(function*(){const J=yield S.getOrInitRedirectPersistenceManager(v);return null===f?J.removeCurrentUser():J.setCurrentUser(f)})()}getOrInitRedirectPersistenceManager(f){var v=this;return(0,$.A)(function*(){if(!v.redirectPersistenceManager){const S=f&&dn(f)||v._popupRedirectResolver;Et(S,v,"argument-error"),v.redirectPersistenceManager=yield fr.create(v,[dn(S._redirectPersistence)],"redirectUser"),v.redirectUser=yield v.redirectPersistenceManager.getCurrentUser()}return v.redirectPersistenceManager})()}_redirectUserForId(f){var v=this;return(0,$.A)(function*(){var S,J;return v._isInitialized&&(yield v.queue((0,$.A)(function*(){}))),(null===(S=v._currentUser)||void 0===S?void 0:S._redirectEventId)===f?v._currentUser:(null===(J=v.redirectUser)||void 0===J?void 0:J._redirectEventId)===f?v.redirectUser:null})()}_persistUserIfCurrent(f){var v=this;return(0,$.A)(function*(){if(f===v.currentUser)return v.queue((0,$.A)(function*(){return v.directlySetCurrentUser(f)}))})()}_notifyListenersIfCurrent(f){f===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var f,v;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const S=null!==(v=null===(f=this.currentUser)||void 0===f?void 0:f.uid)&&void 0!==v?v:null;this.lastNotifiedUid!==S&&(this.lastNotifiedUid=S,this.authStateSubscription.next(this.currentUser))}registerStateListener(f,v,S,J){if(this._deleted)return()=>{};const Me="function"==typeof v?v:v.next.bind(v);let Mt=!1;const Jt=this._isInitialized?Promise.resolve():this._initializationPromise;if(Et(Jt,this,"internal-error"),Jt.then(()=>{Mt||Me(this.currentUser)}),"function"==typeof v){const Mn=f.addObserver(v,S,J);return()=>{Mt=!0,Mn()}}{const Mn=f.addObserver(v);return()=>{Mt=!0,Mn()}}}directlySetCurrentUser(f){var v=this;return(0,$.A)(function*(){v.currentUser&&v.currentUser!==f&&v._currentUser._stopProactiveRefresh(),f&&v.isProactiveRefreshEnabled&&f._startProactiveRefresh(),v.currentUser=f,f?yield v.assertedPersistence.setCurrentUser(f):yield v.assertedPersistence.removeCurrentUser()})()}queue(f){return this.operations=this.operations.then(f,f),this.operations}get assertedPersistence(){return Et(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(f){!f||this.frameworks.includes(f)||(this.frameworks.push(f),this.frameworks.sort(),this.clientVersion=We(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var f=this;return(0,$.A)(function*(){var v;const S={"X-Client-Version":f.clientVersion};f.app.options.appId&&(S["X-Firebase-gmpid"]=f.app.options.appId);const J=yield null===(v=f.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getHeartbeatsHeader();J&&(S["X-Firebase-Client"]=J);const Me=yield f._getAppCheckToken();return Me&&(S["X-Firebase-AppCheck"]=Me),S})()}_getAppCheckToken(){var f=this;return(0,$.A)(function*(){var v;const S=yield null===(v=f.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getToken();return null!=S&&S.error&&function Ze(I,...f){Ie.logLevel<=Xe.$b.WARN&&Ie.warn(`Auth (${he.MF}): ${I}`,...f)}(`Error while retrieving App Check token: ${S.error}`),null==S?void 0:S.token})()}}function jn(I){return(0,ae.Ku)(I)}class zr{constructor(f){this.auth=f,this.observer=null,this.addObserver=(0,ae.tD)(v=>this.observer=v)}get next(){return Et(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let $r={loadJS:()=>(0,$.A)(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Nr(I){return $r.loadJS(I)}function hi(I){return`__${I}${Math.floor(1e6*Math.random())}`}class _i{constructor(f){this.type="recaptcha-enterprise",this.auth=jn(f)}verify(f="verify",v=!1){var S=this;return(0,$.A)(function*(){function Me(){return Me=(0,$.A)(function*(Jt){if(!v){if(null==Jt.tenantId&&null!=Jt._agentRecaptchaConfig)return Jt._agentRecaptchaConfig.siteKey;if(null!=Jt.tenantId&&void 0!==Jt._tenantRecaptchaConfigs[Jt.tenantId])return Jt._tenantRecaptchaConfigs[Jt.tenantId].siteKey}return new Promise(function(){var Mn=(0,$.A)(function*(Jn,xr){Vn(Jt,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(Ci=>{if(void 0!==Ci.recaptchaKey){const Yo=new yn(Ci);return null==Jt.tenantId?Jt._agentRecaptchaConfig=Yo:Jt._tenantRecaptchaConfigs[Jt.tenantId]=Yo,Jn(Yo.siteKey)}xr(new Error("recaptcha Enterprise site key undefined"))}).catch(Ci=>{xr(Ci)})});return function(Jn,xr){return Mn.apply(this,arguments)}}())}),Me.apply(this,arguments)}function Mt(Jt,Mn,Jn){const xr=window.grecaptcha;Xt(xr)?xr.enterprise.ready(()=>{xr.enterprise.execute(Jt,{action:f}).then(Ci=>{Mn(Ci)}).catch(()=>{Mn("NO_RECAPTCHA")})}):Jn(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((Jt,Mn)=>{(function J(Jt){return Me.apply(this,arguments)})(S.auth).then(Jn=>{if(!v&&Xt(window.grecaptcha))Mt(Jn,Jt,Mn);else{if(typeof window>"u")return void Mn(new Error("RecaptchaVerifier is only supported in browser"));let xr=function Rr(){return $r.recaptchaEnterpriseScript}();0!==xr.length&&(xr+=Jn),Nr(xr).then(()=>{Mt(Jn,Jt,Mn)}).catch(Ci=>{Mn(Ci)})}}).catch(Jn=>{Mn(Jn)})})})()}}function tr(I,f,v){return Zn.apply(this,arguments)}function Zn(){return(Zn=(0,$.A)(function*(I,f,v,S=!1){const J=new _i(I);let Me;try{Me=yield J.verify(v)}catch{Me=yield J.verify(v,!0)}const Mt=Object.assign({},f);return Object.assign(Mt,S?{captchaResp:Me}:{captchaResponse:Me}),Object.assign(Mt,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(Mt,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),Mt})).apply(this,arguments)}function mo(I,f,v,S){return fi.apply(this,arguments)}function fi(){return fi=(0,$.A)(function*(I,f,v,S){var J;if(null!==(J=I._getRecaptchaConfig())&&void 0!==J&&J.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const Me=yield tr(I,f,v,"getOobCode"===v);return S(I,Me)}return S(I,f).catch(function(){var Me=(0,$.A)(function*(Mt){if("auth/missing-recaptcha-token"===Mt.code){console.log(`${v} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const Jt=yield tr(I,f,v,"getOobCode"===v);return S(I,Jt)}return Promise.reject(Mt)});return function(Mt){return Me.apply(this,arguments)}}())}),fi.apply(this,arguments)}function ge(I){const f=I.indexOf(":");return f<0?"":I.substr(0,f+1)}function K(I){if(!I)return null;const f=Number(I);return isNaN(f)?null:f}class Be{constructor(f,v){this.providerId=f,this.signInMethod=v}toJSON(){return st("not implemented")}_getIdTokenResponse(f){return st("not implemented")}_linkToIdToken(f,v){return st("not implemented")}_getReauthenticationResolver(f){return st("not implemented")}}function w(I,f){return H.apply(this,arguments)}function H(){return(H=(0,$.A)(function*(I,f){return un(I,"POST","/v1/accounts:signUp",f)})).apply(this,arguments)}function Te(I,f){return dt.apply(this,arguments)}function dt(){return(dt=(0,$.A)(function*(I,f){return On(I,"POST","/v1/accounts:signInWithPassword",xn(I,f))})).apply(this,arguments)}function bn(){return(bn=(0,$.A)(function*(I,f){return On(I,"POST","/v1/accounts:signInWithEmailLink",xn(I,f))})).apply(this,arguments)}function Yn(){return(Yn=(0,$.A)(function*(I,f){return On(I,"POST","/v1/accounts:signInWithEmailLink",xn(I,f))})).apply(this,arguments)}class _r extends Be{constructor(f,v,S,J=null){super("password",S),this._email=f,this._password=v,this._tenantId=J}static _fromEmailAndPassword(f,v){return new _r(f,v,"password")}static _fromEmailAndCode(f,v,S=null){return new _r(f,v,"emailLink",S)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(f){const v="string"==typeof f?JSON.parse(f):f;if(null!=v&&v.email&&null!=v&&v.password){if("password"===v.signInMethod)return this._fromEmailAndPassword(v.email,v.password);if("emailLink"===v.signInMethod)return this._fromEmailAndCode(v.email,v.password,v.tenantId)}return null}_getIdTokenResponse(f){var v=this;return(0,$.A)(function*(){switch(v.signInMethod){case"password":return mo(f,{returnSecureToken:!0,email:v._email,password:v._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",Te);case"emailLink":return function vn(I,f){return bn.apply(this,arguments)}(f,{email:v._email,oobCode:v._password});default:$e(f,"internal-error")}})()}_linkToIdToken(f,v){var S=this;return(0,$.A)(function*(){switch(S.signInMethod){case"password":return mo(f,{idToken:v,returnSecureToken:!0,email:S._email,password:S._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",w);case"emailLink":return function Gn(I,f){return Yn.apply(this,arguments)}(f,{idToken:v,email:S._email,oobCode:S._password});default:$e(f,"internal-error")}})()}_getReauthenticationResolver(f){return this._getIdTokenResponse(f)}}function Kn(I,f){return Qr.apply(this,arguments)}function Qr(){return(Qr=(0,$.A)(function*(I,f){return On(I,"POST","/v1/accounts:signInWithIdp",xn(I,f))})).apply(this,arguments)}class ho{constructor(f){var v,S,J,Me,Mt,Jt;const Mn=(0,ae.I9)((0,ae.hp)(f)),Jn=null!==(v=Mn.apiKey)&&void 0!==v?v:null,xr=null!==(S=Mn.oobCode)&&void 0!==S?S:null,Ci=function wo(I){switch(I){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(J=Mn.mode)&&void 0!==J?J:null);Et(Jn&&xr&&Ci,"argument-error"),this.apiKey=Jn,this.operation=Ci,this.code=xr,this.continueUrl=null!==(Me=Mn.continueUrl)&&void 0!==Me?Me:null,this.languageCode=null!==(Mt=Mn.languageCode)&&void 0!==Mt?Mt:null,this.tenantId=null!==(Jt=Mn.tenantId)&&void 0!==Jt?Jt:null}static parseLink(f){const v=function ws(I){const f=(0,ae.I9)((0,ae.hp)(I)).link,v=f?(0,ae.I9)((0,ae.hp)(f)).deep_link_id:null,S=(0,ae.I9)((0,ae.hp)(I)).deep_link_id;return(S?(0,ae.I9)((0,ae.hp)(S)).link:null)||S||v||f||I}(f);try{return new ho(v)}catch{return null}}}let Jr=(()=>{class I{constructor(){this.providerId=I.PROVIDER_ID}static credential(v,S){return _r._fromEmailAndPassword(v,S)}static credentialWithLink(v,S){const J=ho.parseLink(S);return Et(J,"argument-error"),_r._fromEmailAndCode(v,J.code,J.tenantId)}}return I.PROVIDER_ID="password",I.EMAIL_PASSWORD_SIGN_IN_METHOD="password",I.EMAIL_LINK_SIGN_IN_METHOD="emailLink",I})();class Ao{constructor(f){this.providerId=f,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(f){this.defaultLanguageCode=f}setCustomParameters(f){return this.customParameters=f,this}getCustomParameters(){return this.customParameters}}class Js extends Ao{constructor(){super(...arguments),this.scopes=[]}addScope(f){return this.scopes.includes(f)||this.scopes.push(f),this}getScopes(){return[...this.scopes]}}function ee(I,f){return qe.apply(this,arguments)}function qe(){return(qe=(0,$.A)(function*(I,f){return On(I,"POST","/v1/accounts:signUp",xn(I,f))})).apply(this,arguments)}class lt{constructor(f){this.user=f.user,this.providerId=f.providerId,this._tokenResponse=f._tokenResponse,this.operationType=f.operationType}static _fromIdTokenResponse(f,v,S,J=!1){return(0,$.A)(function*(){const Me=yield Tn._fromIdTokenResponse(f,S,J),Mt=Vt(S);return new lt({user:Me,providerId:Mt,_tokenResponse:S,operationType:v})})()}static _forOperation(f,v,S){return(0,$.A)(function*(){yield f._updateTokensIfNecessary(S,!0);const J=Vt(S);return new lt({user:f,providerId:J,_tokenResponse:S,operationType:v})})()}}function Vt(I){return I.providerId?I.providerId:"phoneNumber"in I?"phone":null}class x extends ae.g{constructor(f,v,S,J){var Me;super(v.code,v.message),this.operationType=S,this.user=J,Object.setPrototypeOf(this,x.prototype),this.customData={appName:f.name,tenantId:null!==(Me=f.tenantId)&&void 0!==Me?Me:void 0,_serverResponse:v.customData._serverResponse,operationType:S}}static _fromErrorAndOperation(f,v,S,J){return new x(f,v,S,J)}}function se(I,f,v,S){return("reauthenticate"===f?v._getReauthenticationResolver(I):v._getIdTokenResponse(I)).catch(Me=>{throw"auth/multi-factor-auth-required"===Me.code?x._fromErrorAndOperation(I,Me,f,S):Me})}function lr(){return(lr=(0,$.A)(function*(I,f,v=!1){const S=yield Lr(I,f._linkToIdToken(I.auth,yield I.getIdToken()),v);return lt._forOperation(I,"link",S)})).apply(this,arguments)}function ao(){return(ao=(0,$.A)(function*(I,f,v=!1){const{auth:S}=I;if((0,he.xZ)(S.app))return Promise.reject(Ct(S));const J="reauthenticate";try{const Me=yield Lr(I,se(S,J,f,I),v);Et(Me.idToken,S,"internal-error");const Mt=Br(Me.idToken);Et(Mt,S,"internal-error");const{sub:Jt}=Mt;return Et(I.uid===Jt,S,"user-mismatch"),lt._forOperation(I,J,Me)}catch(Me){throw"auth/user-not-found"===(null==Me?void 0:Me.code)&&$e(S,"user-mismatch"),Me}})).apply(this,arguments)}function No(I,f){return Ki.apply(this,arguments)}function Ki(){return(Ki=(0,$.A)(function*(I,f,v=!1){if((0,he.xZ)(I.app))return Promise.reject(Ct(I));const S="signIn",J=yield se(I,S,f),Me=yield lt._fromIdTokenResponse(I,S,J);return v||(yield I._updateCurrentUser(Me.user)),Me})).apply(this,arguments)}function qo(){return(qo=(0,$.A)(function*(I,f){return No(jn(I),f)})).apply(this,arguments)}function cl(I){return ei.apply(this,arguments)}function ei(){return(ei=(0,$.A)(function*(I){const f=jn(I);f._getPasswordPolicyInternal()&&(yield f._updatePasswordPolicy())})).apply(this,arguments)}function $s(I,f,v){return ds.apply(this,arguments)}function ds(){return(ds=(0,$.A)(function*(I,f,v){if((0,he.xZ)(I.app))return Promise.reject(Ct(I));const S=jn(I),Mt=yield mo(S,{returnSecureToken:!0,email:f,password:v,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",ee).catch(Mn=>{throw"auth/password-does-not-meet-requirements"===Mn.code&&cl(I),Mn}),Jt=yield lt._fromIdTokenResponse(S,"signIn",Mt);return yield S._updateCurrentUser(Jt.user),Jt})).apply(this,arguments)}function Ns(I,f,v){return(0,he.xZ)(I.app)?Promise.reject(Ct(I)):function Qi(I,f){return qo.apply(this,arguments)}((0,ae.Ku)(I),Jr.credential(f,v)).catch(function(){var S=(0,$.A)(function*(J){throw"auth/password-does-not-meet-requirements"===J.code&&cl(I),J});return function(J){return S.apply(this,arguments)}}())}function to(I,f,v,S){return(0,ae.Ku)(I).onIdTokenChanged(f,v,S)}const na="__sak";class yc{constructor(f,v){this.storageRetriever=f,this.type=v}_isAvailable(){try{return this.storage?(this.storage.setItem(na,"1"),this.storage.removeItem(na),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(f,v){return this.storage.setItem(f,JSON.stringify(v)),Promise.resolve()}_get(f){const v=this.storage.getItem(f);return Promise.resolve(v?JSON.parse(v):null)}_remove(f){return this.storage.removeItem(f),Promise.resolve()}get storage(){return this.storageRetriever()}}const Ta=(()=>{class I extends yc{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(v,S)=>this.onStorageEvent(v,S),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function Ui(){const I=(0,ae.ZQ)();return Ir(I)||te(I)}()&&function we(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=re(),this._shouldAllowMigration=!0}forAllChangedKeys(v){for(const S of Object.keys(this.listeners)){const J=this.storage.getItem(S),Me=this.localCache[S];J!==Me&&v(S,Me,J)}}onStorageEvent(v,S=!1){if(!v.key)return void this.forAllChangedKeys((Jt,Mn,Jn)=>{this.notifyListeners(Jt,Jn)});const J=v.key;if(S?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const Jt=this.storage.getItem(J);if(v.newValue!==Jt)null!==v.newValue?this.storage.setItem(J,v.newValue):this.storage.removeItem(J);else if(this.localCache[J]===v.newValue&&!S)return}const Me=()=>{const Jt=this.storage.getItem(J);!S&&this.localCache[J]===Jt||this.notifyListeners(J,Jt)},Mt=this.storage.getItem(J);!function O(){return(0,ae.lT)()&&10===document.documentMode}()||Mt===v.newValue||v.newValue===v.oldValue?Me():setTimeout(Me,10)}notifyListeners(v,S){this.localCache[v]=S;const J=this.listeners[v];if(J)for(const Me of Array.from(J))Me(S&&JSON.parse(S))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((v,S,J)=>{this.onStorageEvent(new StorageEvent("storage",{key:v,oldValue:S,newValue:J}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(v,S){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[v]||(this.listeners[v]=new Set,this.localCache[v]=this.storage.getItem(v)),this.listeners[v].add(S)}_removeListener(v,S){this.listeners[v]&&(this.listeners[v].delete(S),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(v,S){var J=()=>super._set,Me=this;return(0,$.A)(function*(){yield J().call(Me,v,S),Me.localCache[v]=JSON.stringify(S)})()}_get(v){var S=()=>super._get,J=this;return(0,$.A)(function*(){const Me=yield S().call(J,v);return J.localCache[v]=JSON.stringify(Me),Me})()}_remove(v){var S=()=>super._remove,J=this;return(0,$.A)(function*(){yield S().call(J,v),delete J.localCache[v]})()}}return I.type="LOCAL",I})(),is=(()=>{class I extends yc{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(v,S){}_removeListener(v,S){}}return I.type="SESSION",I})();let Da=(()=>{class I{constructor(v){this.eventTarget=v,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(v){const S=this.receivers.find(Me=>Me.isListeningto(v));if(S)return S;const J=new I(v);return this.receivers.push(J),J}isListeningto(v){return this.eventTarget===v}handleEvent(v){var S=this;return(0,$.A)(function*(){const J=v,{eventId:Me,eventType:Mt,data:Jt}=J.data,Mn=S.handlersMap[Mt];if(null==Mn||!Mn.size)return;J.ports[0].postMessage({status:"ack",eventId:Me,eventType:Mt});const Jn=Array.from(Mn).map(function(){var Ci=(0,$.A)(function*(Yo){return Yo(J.origin,Jt)});return function(Yo){return Ci.apply(this,arguments)}}()),xr=yield function pl(I){return Promise.all(I.map(function(){var f=(0,$.A)(function*(v){try{return{fulfilled:!0,value:yield v}}catch(S){return{fulfilled:!1,reason:S}}});return function(v){return f.apply(this,arguments)}}()))}(Jn);J.ports[0].postMessage({status:"done",eventId:Me,eventType:Mt,response:xr})})()}_subscribe(v,S){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[v]||(this.handlersMap[v]=new Set),this.handlersMap[v].add(S)}_unsubscribe(v,S){this.handlersMap[v]&&S&&this.handlersMap[v].delete(S),(!S||0===this.handlersMap[v].size)&&delete this.handlersMap[v],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return I.receivers=[],I})();function oo(I="",f=10){let v="";for(let S=0;S{const xr=oo("",20);Me.port1.start();const Ci=setTimeout(()=>{Jn(new Error("unsupported_event"))},S);Jt={messageChannel:Me,onMessage(Yo){const go=Yo;if(go.data.eventId===xr)switch(go.data.status){case"ack":clearTimeout(Ci),Mt=setTimeout(()=>{Jn(new Error("timeout"))},3e3);break;case"done":clearTimeout(Mt),Mn(go.data.response);break;default:clearTimeout(Ci),clearTimeout(Mt),Jn(new Error("invalid_response"))}}},J.handlers.add(Jt),Me.port1.addEventListener("message",Jt.onMessage),J.target.postMessage({eventType:f,eventId:xr,data:v},[Me.port2])}).finally(()=>{Jt&&J.removeMessageHandler(Jt)})})()}}function Ai(){return window}function Wl(){return typeof Ai().WorkerGlobalScope<"u"&&"function"==typeof Ai().importScripts}function ia(){return(ia=(0,$.A)(function*(){if(null==navigator||!navigator.serviceWorker)return null;try{return(yield navigator.serviceWorker.ready).active}catch{return null}})).apply(this,arguments)}const gl="firebaseLocalStorageDb",ba="firebaseLocalStorage",Pu="fbase_key";class wa{constructor(f){this.request=f}toPromise(){return new Promise((f,v)=>{this.request.addEventListener("success",()=>{f(this.request.result)}),this.request.addEventListener("error",()=>{v(this.request.error)})})}}function Ha(I,f){return I.transaction([ba],f?"readwrite":"readonly").objectStore(ba)}function Dd(){const I=indexedDB.open(gl,1);return new Promise((f,v)=>{I.addEventListener("error",()=>{v(I.error)}),I.addEventListener("upgradeneeded",()=>{const S=I.result;try{S.createObjectStore(ba,{keyPath:Pu})}catch(J){v(J)}}),I.addEventListener("success",(0,$.A)(function*(){const S=I.result;S.objectStoreNames.contains(ba)?f(S):(S.close(),yield function tg(){const I=indexedDB.deleteDatabase(gl);return new wa(I).toPromise()}(),f(yield Dd()))}))})}function Sa(I,f,v){return Ga.apply(this,arguments)}function Ga(){return(Ga=(0,$.A)(function*(I,f,v){const S=Ha(I,!0).put({[Pu]:f,value:v});return new wa(S).toPromise()})).apply(this,arguments)}function bd(){return(bd=(0,$.A)(function*(I,f){const v=Ha(I,!1).get(f),S=yield new wa(v).toPromise();return void 0===S?null:S.value})).apply(this,arguments)}function E(I,f){const v=Ha(I,!0).delete(f);return new wa(v).toPromise()}const L=(()=>{class I{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}_openDb(){var v=this;return(0,$.A)(function*(){return v.db||(v.db=yield Dd()),v.db})()}_withRetries(v){var S=this;return(0,$.A)(function*(){let J=0;for(;;)try{const Me=yield S._openDb();return yield v(Me)}catch(Me){if(J++>3)throw Me;S.db&&(S.db.close(),S.db=void 0)}})()}initializeServiceWorkerMessaging(){var v=this;return(0,$.A)(function*(){return Wl()?v.initializeReceiver():v.initializeSender()})()}initializeReceiver(){var v=this;return(0,$.A)(function*(){v.receiver=Da._getInstance(function Kl(){return Wl()?self:null}()),v.receiver._subscribe("keyChanged",function(){var S=(0,$.A)(function*(J,Me){return{keyProcessed:(yield v._poll()).includes(Me.key)}});return function(J,Me){return S.apply(this,arguments)}}()),v.receiver._subscribe("ping",function(){var S=(0,$.A)(function*(J,Me){return["keyChanged"]});return function(J,Me){return S.apply(this,arguments)}}())})()}initializeSender(){var v=this;return(0,$.A)(function*(){var S,J;if(v.activeServiceWorker=yield function gs(){return ia.apply(this,arguments)}(),!v.activeServiceWorker)return;v.sender=new Mu(v.activeServiceWorker);const Me=yield v.sender._send("ping",{},800);Me&&null!==(S=Me[0])&&void 0!==S&&S.fulfilled&&null!==(J=Me[0])&&void 0!==J&&J.value.includes("keyChanged")&&(v.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(v){var S=this;return(0,$.A)(function*(){if(S.sender&&S.activeServiceWorker&&function Is(){var I;return(null===(I=null==navigator?void 0:navigator.serviceWorker)||void 0===I?void 0:I.controller)||null}()===S.activeServiceWorker)try{yield S.sender._send("keyChanged",{key:v},S.serviceWorkerReceiverAvailable?800:50)}catch{}})()}_isAvailable(){return(0,$.A)(function*(){try{if(!indexedDB)return!1;const v=yield Dd();return yield Sa(v,na,"1"),yield E(v,na),!0}catch{}return!1})()}_withPendingWrite(v){var S=this;return(0,$.A)(function*(){S.pendingWrites++;try{yield v()}finally{S.pendingWrites--}})()}_set(v,S){var J=this;return(0,$.A)(function*(){return J._withPendingWrite((0,$.A)(function*(){return yield J._withRetries(Me=>Sa(Me,v,S)),J.localCache[v]=S,J.notifyServiceWorker(v)}))})()}_get(v){var S=this;return(0,$.A)(function*(){const J=yield S._withRetries(Me=>function Kh(I,f){return bd.apply(this,arguments)}(Me,v));return S.localCache[v]=J,J})()}_remove(v){var S=this;return(0,$.A)(function*(){return S._withPendingWrite((0,$.A)(function*(){return yield S._withRetries(J=>E(J,v)),delete S.localCache[v],S.notifyServiceWorker(v)}))})()}_poll(){var v=this;return(0,$.A)(function*(){const S=yield v._withRetries(Mt=>{const Jt=Ha(Mt,!1).getAll();return new wa(Jt).toPromise()});if(!S)return[];if(0!==v.pendingWrites)return[];const J=[],Me=new Set;if(0!==S.length)for(const{fbase_key:Mt,value:Jt}of S)Me.add(Mt),JSON.stringify(v.localCache[Mt])!==JSON.stringify(Jt)&&(v.notifyListeners(Mt,Jt),J.push(Mt));for(const Mt of Object.keys(v.localCache))v.localCache[Mt]&&!Me.has(Mt)&&(v.notifyListeners(Mt,null),J.push(Mt));return J})()}notifyListeners(v,S){this.localCache[v]=S;const J=this.listeners[v];if(J)for(const Me of Array.from(J))Me(S)}startPolling(){var v=this;this.stopPolling(),this.pollTimer=setInterval((0,$.A)(function*(){return v._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(v,S){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[v]||(this.listeners[v]=new Set,this._get(v)),this.listeners[v].add(S)}_removeListener(v,S){this.listeners[v]&&(this.listeners[v].delete(S),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return I.type="LOCAL",I})();hi("rcb"),new ue(3e4,6e4);class $o extends Be{constructor(f){super("custom","custom"),this.params=f}_getIdTokenResponse(f){return Kn(f,this._buildIdpRequest())}_linkToIdToken(f,v){return Kn(f,this._buildIdpRequest(v))}_getReauthenticationResolver(f){return Kn(f,this._buildIdpRequest())}_buildIdpRequest(f){const v={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return f&&(v.idToken=f),v}}function wd(I){return No(I.auth,new $o(I),I.bypassAuthState)}function Ac(I){const{auth:f,user:v}=I;return Et(v,f,"internal-error"),function Ei(I,f){return ao.apply(this,arguments)}(v,new $o(I),I.bypassAuthState)}function Cc(I){return Ls.apply(this,arguments)}function Ls(){return(Ls=(0,$.A)(function*(I){const{auth:f,user:v}=I;return Et(v,f,"internal-error"),function zn(I,f){return lr.apply(this,arguments)}(v,new $o(I),I.bypassAuthState)})).apply(this,arguments)}class Tc{constructor(f,v,S,J,Me=!1){this.auth=f,this.resolver=S,this.user=J,this.bypassAuthState=Me,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(v)?v:[v]}execute(){var f=this;return new Promise(function(){var v=(0,$.A)(function*(S,J){f.pendingPromise={resolve:S,reject:J};try{f.eventManager=yield f.resolver._initialize(f.auth),yield f.onExecution(),f.eventManager.registerConsumer(f)}catch(Me){f.reject(Me)}});return function(S,J){return v.apply(this,arguments)}}())}onAuthEvent(f){var v=this;return(0,$.A)(function*(){const{urlResponse:S,sessionId:J,postBody:Me,tenantId:Mt,error:Jt,type:Mn}=f;if(Jt)return void v.reject(Jt);const Jn={auth:v.auth,requestUri:S,sessionId:J,tenantId:Mt||void 0,postBody:Me||void 0,user:v.user,bypassAuthState:v.bypassAuthState};try{v.resolve(yield v.getIdpTask(Mn)(Jn))}catch(xr){v.reject(xr)}})()}onError(f){this.reject(f)}getIdpTask(f){switch(f){case"signInViaPopup":case"signInViaRedirect":return wd;case"linkViaPopup":case"linkViaRedirect":return Cc;case"reauthViaPopup":case"reauthViaRedirect":return Ac;default:$e(this.auth,"internal-error")}}resolve(f){cn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(f),this.unregisterAndCleanUp()}reject(f){cn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(f),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}new ue(2e3,1e4);const Dr="pendingRedirect",vl=new Map;class Rd extends Tc{constructor(f,v,S=!1){super(f,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],v,void 0,S),this.eventId=null}execute(){var f=()=>super.execute,v=this;return(0,$.A)(function*(){let S=vl.get(v.auth._key());if(!S){try{const Me=(yield function Dc(I,f){return bc.apply(this,arguments)}(v.resolver,v.auth))?yield f().call(v):null;S=()=>Promise.resolve(Me)}catch(J){S=()=>Promise.reject(J)}vl.set(v.auth._key(),S)}return v.bypassAuthState||vl.set(v.auth._key(),()=>Promise.resolve(null)),S()})()}onAuthEvent(f){var v=()=>super.onAuthEvent,S=this;return(0,$.A)(function*(){if("signInViaRedirect"===f.type)return v().call(S,f);if("unknown"!==f.type){if(f.eventId){const J=yield S.auth._redirectUserForId(f.eventId);if(J)return S.user=J,v().call(S,f);S.resolve(null)}}else S.resolve(null)})()}onExecution(){return(0,$.A)(function*(){})()}cleanUp(){}}function bc(){return(bc=(0,$.A)(function*(I,f){const v=function yl(I){return wr(Dr,I.config.apiKey,I.name)}(f),S=function qh(I){return dn(I._redirectPersistence)}(I);if(!(yield S._isAvailable()))return!1;const J="true"===(yield S._get(v));return yield S._remove(v),J})).apply(this,arguments)}function _l(I,f){vl.set(I._key(),f)}function ku(I,f){return Pd.apply(this,arguments)}function Pd(){return(Pd=(0,$.A)(function*(I,f,v=!1){if((0,he.xZ)(I.app))return Promise.reject(Ct(I));const S=jn(I),J=function Cs(I,f){return f?dn(f):(Et(I._popupRedirectResolver,I,"argument-error"),I._popupRedirectResolver)}(S,f),Mt=yield new Rd(S,J,v).execute();return Mt&&!v&&(delete Mt.user._redirectEventId,yield S._persistUserIfCurrent(Mt.user),yield S._setRedirectUser(null,f)),Mt})).apply(this,arguments)}class da{constructor(f){this.auth=f,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(f){this.consumers.add(f),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,f)&&(this.sendToConsumer(this.queuedRedirectEvent,f),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(f){this.consumers.delete(f)}onEvent(f){if(this.hasEventBeenHandled(f))return!1;let v=!1;return this.consumers.forEach(S=>{this.isEventForConsumer(f,S)&&(v=!0,this.sendToConsumer(f,S),this.saveEventToCache(f))}),this.hasHandledPotentialRedirect||!function ha(I){switch(I.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Vs(I);default:return!1}}(f)||(this.hasHandledPotentialRedirect=!0,v||(this.queuedRedirectEvent=f,v=!0)),v}sendToConsumer(f,v){var S;if(f.error&&!Vs(f)){const J=(null===(S=f.error.code)||void 0===S?void 0:S.split("auth/")[1])||"internal-error";v.onError(Le(this.auth,J))}else v.onAuthEvent(f)}isEventForConsumer(f,v){const S=null===v.eventId||!!f.eventId&&f.eventId===v.eventId;return v.filter.includes(f.type)&&S}hasEventBeenHandled(f){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(Sc(f))}saveEventToCache(f){this.cachedEventUids.add(Sc(f)),this.lastProcessedEventTime=Date.now()}}function Sc(I){return[I.type,I.eventId,I.sessionId,I.tenantId].filter(f=>f).join("-")}function Vs({type:I,error:f}){return"unknown"===I&&"auth/no-auth-event"===(null==f?void 0:f.code)}function Rc(){return(Rc=(0,$.A)(function*(I,f={}){return un(I,"GET","/v1/projects",f)})).apply(this,arguments)}const xd=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Vo=/^https?/;function Fu(){return Fu=(0,$.A)(function*(I){if(I.config.emulator)return;const{authorizedDomains:f}=yield function og(I){return Rc.apply(this,arguments)}(I);for(const v of f)try{if(Nd(v))return}catch{}$e(I,"unauthorized-domain")}),Fu.apply(this,arguments)}function Nd(I){const f=vt(),{protocol:v,hostname:S}=new URL(f);if(I.startsWith("chrome-extension://")){const Mt=new URL(I);return""===Mt.hostname&&""===S?"chrome-extension:"===v&&I.replace("chrome-extension://","")===f.replace("chrome-extension://",""):"chrome-extension:"===v&&Mt.hostname===S}if(!Vo.test(v))return!1;if(xd.test(I))return S===I;const J=I.replace(/\./g,"\\.");return new RegExp("^(.+\\."+J+"|"+J+")$","i").test(S)}const Mc=new ue(3e4,6e4);function Pc(){const I=Ai().___jsl;if(null!=I&&I.H)for(const f of Object.keys(I.H))if(I.H[f].r=I.H[f].r||[],I.H[f].L=I.H[f].L||[],I.H[f].r=[...I.H[f].L],I.CP)for(let v=0;v{var S,J,Me;function Mt(){Pc(),gapi.load("gapi.iframes",{callback:()=>{f(gapi.iframes.getContext())},ontimeout:()=>{Pc(),v(Le(I,"network-request-failed"))},timeout:Mc.get()})}if(null!==(J=null===(S=Ai().gapi)||void 0===S?void 0:S.iframes)&&void 0!==J&&J.Iframe)f(gapi.iframes.getContext());else{if(null===(Me=Ai().gapi)||void 0===Me||!Me.load){const Jt=hi("iframefcb");return Ai()[Jt]=()=>{gapi.load?Mt():v(Le(I,"network-request-failed"))},Nr(`${function di(){return $r.gapiScript}()}?onload=${Jt}`).catch(Mn=>v(Mn))}Mt()}}).catch(f=>{throw xa=null,f})}(I),xa}(I),v=Ai().gapi;return Et(v,I,"internal-error"),f.open({where:document.body,url:Mo(I),messageHandlersFilter:v.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Vu,dontclear:!0},S=>new Promise(function(){var J=(0,$.A)(function*(Me,Mt){yield S.restyle({setHideOnLeave:!1});const Jt=Le(I,"network-request-failed"),Mn=Ai().setTimeout(()=>{Mt(Jt)},Zh.get());function Jn(){Ai().clearTimeout(Mn),Me(S)}S.ping(Jn).then(Jn,()=>{Mt(Jt)})});return function(Me,Mt){return J.apply(this,arguments)}}()))}),Gi.apply(this,arguments)}const ef={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Uu{constructor(f){this.window=f,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}const ag="__/auth/handler",ju="emulator/auth/handler",Oc=encodeURIComponent("fac");function fa(I,f,v,S,J,Me){return pa.apply(this,arguments)}function pa(){return(pa=(0,$.A)(function*(I,f,v,S,J,Me){Et(I.config.authDomain,I,"auth-domain-config-required"),Et(I.config.apiKey,I,"invalid-api-key");const Mt={apiKey:I.config.apiKey,appName:I.name,authType:v,redirectUrl:S,v:he.MF,eventId:J};if(f instanceof Ao){f.setDefaultLanguage(I.languageCode),Mt.providerId=f.providerId||"",(0,ae.Im)(f.getCustomParameters())||(Mt.customParameters=JSON.stringify(f.getCustomParameters()));for(const[xr,Ci]of Object.entries(Me||{}))Mt[xr]=Ci}if(f instanceof Js){const xr=f.getScopes().filter(Ci=>""!==Ci);xr.length>0&&(Mt.scopes=xr.join(","))}I.tenantId&&(Mt.tid=I.tenantId);const Jt=Mt;for(const xr of Object.keys(Jt))void 0===Jt[xr]&&delete Jt[xr];const Mn=yield I._getAppCheckToken(),Jn=Mn?`#${Oc}=${encodeURIComponent(Mn)}`:"";return`${function Nc({config:I}){return I.emulator?Ee(I,ju):`https://${I.authDomain}/${ag}`}(I)}?${(0,ae.Am)(Jt).slice(1)}${Jn}`})).apply(this,arguments)}const El="webStorageSupport",Il=class rf{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=is,this._completeRedirectFn=ku,this._overrideRedirectResult=_l}_openPopup(f,v,S,J){var Me=this;return(0,$.A)(function*(){var Mt;cn(null===(Mt=Me.eventManagers[f._key()])||void 0===Mt?void 0:Mt.manager,"_initialize() not called before _openPopup()");const Jt=yield fa(f,v,S,vt(),J);return function $u(I,f,v,S=500,J=600){const Me=Math.max((window.screen.availHeight-J)/2,0).toString(),Mt=Math.max((window.screen.availWidth-S)/2,0).toString();let Jt="";const Mn=Object.assign(Object.assign({},ef),{width:S.toString(),height:J.toString(),top:Me,left:Mt}),Jn=(0,ae.ZQ)().toLowerCase();v&&(Jt=xi(Jn)?"_blank":v),oi(Jn)&&(f=f||"http://localhost",Mn.scrollbars="yes");const xr=Object.entries(Mn).reduce((Yo,[go,ma])=>`${Yo}${go}=${ma},`,"");if(function M(I=(0,ae.ZQ)()){var f;return te(I)&&!(null===(f=window.navigator)||void 0===f||!f.standalone)}(Jn)&&"_self"!==Jt)return function Ws(I,f){const v=document.createElement("a");v.href=I,v.target=f;const S=document.createEvent("MouseEvent");S.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),v.dispatchEvent(S)}(f||"",Jt),new Uu(null);const Ci=window.open(f||"",Jt,xr);Et(Ci,I,"popup-blocked");try{Ci.focus()}catch{}return new Uu(Ci)}(f,Jt,oo())})()}_openRedirect(f,v,S,J){var Me=this;return(0,$.A)(function*(){return yield Me._originValidation(f),function Lo(I){Ai().location.href=I}(yield fa(f,v,S,vt(),J)),new Promise(()=>{})})()}_initialize(f){const v=f._key();if(this.eventManagers[v]){const{manager:J,promise:Me}=this.eventManagers[v];return J?Promise.resolve(J):(cn(Me,"If manager is not set, promise should be"),Me)}const S=this.initAndGetManager(f);return this.eventManagers[v]={promise:S},S.catch(()=>{delete this.eventManagers[v]}),S}initAndGetManager(f){var v=this;return(0,$.A)(function*(){const S=yield function Oa(I){return Gi.apply(this,arguments)}(f),J=new da(f);return S.register("authEvent",Me=>(Et(null==Me?void 0:Me.authEvent,f,"invalid-auth-event"),{status:J.onEvent(Me.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),v.eventManagers[f._key()]={manager:J},v.iframes[f._key()]=S,J})()}_isIframeWebStorageSupported(f,v){this.iframes[f._key()].send(El,{type:El},J=>{var Me;const Mt=null===(Me=null==J?void 0:J[0])||void 0===Me?void 0:Me[El];void 0!==Mt&&v(!!Mt),$e(f,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(f){const v=f._key();return this.originValidationPromises[v]||(this.originValidationPromises[v]=function Od(I){return Fu.apply(this,arguments)}(f)),this.originValidationPromises[v]}get _shouldInitProactively(){return re()||Ir()||te()}};var Vd="@firebase/auth";class Na{constructor(f){this.auth=f,this.internalListeners=new Map}getUid(){var f;return this.assertAuthConfigured(),(null===(f=this.auth.currentUser)||void 0===f?void 0:f.uid)||null}getToken(f){var v=this;return(0,$.A)(function*(){return v.assertAuthConfigured(),yield v.auth._initializationPromise,v.auth.currentUser?{accessToken:yield v.auth.currentUser.getIdToken(f)}:null})()}addAuthTokenListener(f){if(this.assertAuthConfigured(),this.internalListeners.has(f))return;const v=this.auth.onIdTokenChanged(S=>{f((null==S?void 0:S.stsTokenManager.accessToken)||null)});this.internalListeners.set(f,v),this.updateProactiveRefresh()}removeAuthTokenListener(f){this.assertAuthConfigured();const v=this.internalListeners.get(f);v&&(this.internalListeners.delete(f),v(),this.updateProactiveRefresh())}assertAuthConfigured(){Et(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const eu=(0,ae.XA)("authIdTokenMaxAge")||300;let af=null;const lf=I=>function(){var f=(0,$.A)(function*(v){const S=v&&(yield v.getIdTokenResult()),J=S&&((new Date).getTime()-Date.parse(S.issuedAtTime))/1e3;if(J&&J>eu)return;const Me=null==S?void 0:S.token;af!==Me&&(af=Me,yield fetch(I,{method:Me?"POST":"DELETE",headers:Me?{Authorization:`Bearer ${Me}`}:{}}))});return function(v){return f.apply(this,arguments)}}();function Bd(I=(0,he.Sx)()){const f=(0,he.j6)(I,"auth");if(f.isInitialized())return f.getImmediate();const v=function bo(I,f){const v=(0,he.j6)(I,"auth");if(v.isInitialized()){const J=v.getImmediate(),Me=v.getOptions();if((0,ae.bD)(Me,null!=f?f:{}))return J;$e(J,"already-initialized")}return v.initialize({options:f})}(I,{popupRedirectResolver:Il,persistence:[L,Ta,is]}),S=(0,ae.XA)("authTokenSyncURL");if(S&&"boolean"==typeof isSecureContext&&isSecureContext){const Me=new URL(S,location.origin);if(location.origin===Me.origin){const Mt=lf(Me.toString());(function wi(I,f,v){(0,ae.Ku)(I).beforeAuthStateChanged(f,v)})(v,Mt,()=>Mt(v.currentUser)),to(v,Jt=>Mt(Jt))}}const J=(0,ae.Tj)("auth");return J&&function Pt(I,f,v){const S=jn(I);Et(S._canInitEmulator,S,"emulator-config-failed"),Et(/^https?:\/\//.test(f),S,"invalid-emulator-scheme");const J=!(null==v||!v.disableWarnings),Me=ge(f),{host:Mt,port:Jt}=function fe(I){const f=ge(I),v=/(\/\/)?([^?#/]+)/.exec(I.substr(f.length));if(!v)return{host:"",port:null};const S=v[2].split("@").pop()||"",J=/^(\[[^\]]+\])(:|$)/.exec(S);if(J){const Me=J[1];return{host:Me,port:K(S.substr(Me.length+1))}}{const[Me,Mt]=S.split(":");return{host:Me,port:K(Mt)}}}(f);S.config.emulator={url:`${Me}//${Mt}${null===Jt?"":`:${Jt}`}/`},S.settings.appVerificationDisabledForTesting=!0,S.emulatorConfig=Object.freeze({host:Mt,port:Jt,protocol:Me.replace(":",""),options:Object.freeze({disableWarnings:J})}),J||function je(){function I(){const f=document.createElement("p"),v=f.style;f.innerText="Running in emulator mode. Do not use with production credentials.",v.position="fixed",v.width="100%",v.backgroundColor="#ffffff",v.border=".1em solid #000000",v.color="#b50000",v.bottom="0px",v.left="0px",v.margin="0px",v.zIndex="10000",v.textAlign="center",f.classList.add("firebase-emulator-warning"),document.body.appendChild(f)}typeof console<"u"&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",I):I())}()}(v,`http://${J}`),v}(function Pr(I){$r=I})({loadJS:I=>new Promise((f,v)=>{const S=document.createElement("script");S.setAttribute("src",I),S.onload=f,S.onerror=J=>{const Me=Le("internal-error");Me.customData=J,v(Me)},S.type="text/javascript",S.charset="UTF-8",function Vc(){var I,f;return null!==(f=null===(I=document.getElementsByTagName("head"))||void 0===I?void 0:I[0])&&void 0!==f?f:document}().appendChild(S)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),function Tl(I){(0,he.om)(new Se.uA("auth",(f,{options:v})=>{const S=f.getProvider("app").getImmediate(),J=f.getProvider("heartbeat"),Me=f.getProvider("app-check-internal"),{apiKey:Mt,authDomain:Jt}=S.options;Et(Mt&&!Mt.includes(":"),"invalid-api-key",{appName:S.name});const Mn={apiKey:Mt,authDomain:Jt,clientPlatform:I,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:We(I)},Jn=new Sr(S,J,Me,Mn);return function ui(I,f){const v=(null==f?void 0:f.persistence)||[],S=(Array.isArray(v)?v:[v]).map(dn);null!=f&&f.errorMap&&I._updateErrorMap(f.errorMap),I._initializeWithPersistence(S,null==f?void 0:f.popupRedirectResolver)}(Jn,v),Jn},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((f,v,S)=>{f.getProvider("auth-internal").initialize()})),(0,he.om)(new Se.uA("auth-internal",f=>{const v=jn(f.getProvider("auth").getImmediate());return new Na(v)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,he.KO)(Vd,"1.7.4",function Lc(I){switch(I){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(I)),(0,he.KO)(Vd,"1.7.4","esm2017")}("Browser");var Bs=C(1985);function Gu(I){return new Bs.c(function(f){return{unsubscribe:to(I,f.next.bind(f),f.error.bind(f),f.complete.bind(f))}})}class Ja{constructor(f){return f}}class Dl{constructor(){return(0,h.CA)("auth")}}const tu=new c.nKC("angularfire2.auth-instances");function uf(I){return(f,v)=>{const S=f.runOutsideAngular(()=>I(v));return new Ja(S)}}const cf={provide:Dl,deps:[[new c.Xx1,tu]]},lg={provide:Ja,useFactory:function $d(I,f){const v=(0,h.lR)("auth",I,f);return v&&new Ja(v)},deps:[[new c.Xx1,tu],Z.XU]};function bl(I,...f){return(0,ke.KO)("angularfire",h.xv.full,"auth"),(0,c.EmA)([lg,cf,{provide:tu,useFactory:uf(I),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,h.Jv],...f]}])}const $c=(0,h.S3)(Gu,!0),Wu=(0,h.S3)($s,!0),ug=(0,h.S3)(Bd,!0),Qu=(0,h.S3)(Ns,!0)},4262:(Pn,It,C)=>{"use strict";C.d(It,{_7:()=>Eh,rJ:()=>_0,kd:()=>y0,H9:()=>lm,x7:()=>cm,GG:()=>o_,aU:()=>dm,hV:()=>e_,BN:()=>P0,mZ:()=>x0});var it,Ye,h=C(5407),c=C(4438),Z=C(7440),ke=C(8737),$=C(2214),he=C(467),ae=C(7852),Xe=C(1362),tt=C(8041),Se=C(1076),be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},et={};(function(){var l;function s(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}function u(Bt,ht,Rt){Rt||(Rt=0);var Ut=Array(16);if("string"==typeof ht)for(var Ht=0;16>Ht;++Ht)Ut[Ht]=ht.charCodeAt(Rt++)|ht.charCodeAt(Rt++)<<8|ht.charCodeAt(Rt++)<<16|ht.charCodeAt(Rt++)<<24;else for(Ht=0;16>Ht;++Ht)Ut[Ht]=ht[Rt++]|ht[Rt++]<<8|ht[Rt++]<<16|ht[Rt++]<<24;var Zt=Bt.g[3],bt=(ht=Bt.g[0])+(Zt^(Rt=Bt.g[1])&((Ht=Bt.g[2])^Zt))+Ut[0]+3614090360&4294967295;bt=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=Rt+(bt<<7&4294967295|bt>>>25))+((bt=Zt+(Ht^ht&(Rt^Ht))+Ut[1]+3905402710&4294967295)<<12&4294967295|bt>>>20))+((bt=Ht+(Rt^Zt&(ht^Rt))+Ut[2]+606105819&4294967295)<<17&4294967295|bt>>>15))+((bt=Rt+(ht^Ht&(Zt^ht))+Ut[3]+3250441966&4294967295)<<22&4294967295|bt>>>10))+((bt=ht+(Zt^Rt&(Ht^Zt))+Ut[4]+4118548399&4294967295)<<7&4294967295|bt>>>25))+((bt=Zt+(Ht^ht&(Rt^Ht))+Ut[5]+1200080426&4294967295)<<12&4294967295|bt>>>20))+((bt=Ht+(Rt^Zt&(ht^Rt))+Ut[6]+2821735955&4294967295)<<17&4294967295|bt>>>15))+((bt=Rt+(ht^Ht&(Zt^ht))+Ut[7]+4249261313&4294967295)<<22&4294967295|bt>>>10))+((bt=ht+(Zt^Rt&(Ht^Zt))+Ut[8]+1770035416&4294967295)<<7&4294967295|bt>>>25))+((bt=Zt+(Ht^ht&(Rt^Ht))+Ut[9]+2336552879&4294967295)<<12&4294967295|bt>>>20))+((bt=Ht+(Rt^Zt&(ht^Rt))+Ut[10]+4294925233&4294967295)<<17&4294967295|bt>>>15))+((bt=Rt+(ht^Ht&(Zt^ht))+Ut[11]+2304563134&4294967295)<<22&4294967295|bt>>>10))+((bt=ht+(Zt^Rt&(Ht^Zt))+Ut[12]+1804603682&4294967295)<<7&4294967295|bt>>>25))+((bt=Zt+(Ht^ht&(Rt^Ht))+Ut[13]+4254626195&4294967295)<<12&4294967295|bt>>>20))+((bt=Ht+(Rt^Zt&(ht^Rt))+Ut[14]+2792965006&4294967295)<<17&4294967295|bt>>>15))+((bt=Rt+(ht^Ht&(Zt^ht))+Ut[15]+1236535329&4294967295)<<22&4294967295|bt>>>10))+((bt=ht+(Ht^Zt&(Rt^Ht))+Ut[1]+4129170786&4294967295)<<5&4294967295|bt>>>27))+((bt=Zt+(Rt^Ht&(ht^Rt))+Ut[6]+3225465664&4294967295)<<9&4294967295|bt>>>23))+((bt=Ht+(ht^Rt&(Zt^ht))+Ut[11]+643717713&4294967295)<<14&4294967295|bt>>>18))+((bt=Rt+(Zt^ht&(Ht^Zt))+Ut[0]+3921069994&4294967295)<<20&4294967295|bt>>>12))+((bt=ht+(Ht^Zt&(Rt^Ht))+Ut[5]+3593408605&4294967295)<<5&4294967295|bt>>>27))+((bt=Zt+(Rt^Ht&(ht^Rt))+Ut[10]+38016083&4294967295)<<9&4294967295|bt>>>23))+((bt=Ht+(ht^Rt&(Zt^ht))+Ut[15]+3634488961&4294967295)<<14&4294967295|bt>>>18))+((bt=Rt+(Zt^ht&(Ht^Zt))+Ut[4]+3889429448&4294967295)<<20&4294967295|bt>>>12))+((bt=ht+(Ht^Zt&(Rt^Ht))+Ut[9]+568446438&4294967295)<<5&4294967295|bt>>>27))+((bt=Zt+(Rt^Ht&(ht^Rt))+Ut[14]+3275163606&4294967295)<<9&4294967295|bt>>>23))+((bt=Ht+(ht^Rt&(Zt^ht))+Ut[3]+4107603335&4294967295)<<14&4294967295|bt>>>18))+((bt=Rt+(Zt^ht&(Ht^Zt))+Ut[8]+1163531501&4294967295)<<20&4294967295|bt>>>12))+((bt=ht+(Ht^Zt&(Rt^Ht))+Ut[13]+2850285829&4294967295)<<5&4294967295|bt>>>27))+((bt=Zt+(Rt^Ht&(ht^Rt))+Ut[2]+4243563512&4294967295)<<9&4294967295|bt>>>23))+((bt=Ht+(ht^Rt&(Zt^ht))+Ut[7]+1735328473&4294967295)<<14&4294967295|bt>>>18))+((bt=Rt+(Zt^ht&(Ht^Zt))+Ut[12]+2368359562&4294967295)<<20&4294967295|bt>>>12))+((bt=ht+(Rt^Ht^Zt)+Ut[5]+4294588738&4294967295)<<4&4294967295|bt>>>28))+((bt=Zt+(ht^Rt^Ht)+Ut[8]+2272392833&4294967295)<<11&4294967295|bt>>>21))+((bt=Ht+(Zt^ht^Rt)+Ut[11]+1839030562&4294967295)<<16&4294967295|bt>>>16))+((bt=Rt+(Ht^Zt^ht)+Ut[14]+4259657740&4294967295)<<23&4294967295|bt>>>9))+((bt=ht+(Rt^Ht^Zt)+Ut[1]+2763975236&4294967295)<<4&4294967295|bt>>>28))+((bt=Zt+(ht^Rt^Ht)+Ut[4]+1272893353&4294967295)<<11&4294967295|bt>>>21))+((bt=Ht+(Zt^ht^Rt)+Ut[7]+4139469664&4294967295)<<16&4294967295|bt>>>16))+((bt=Rt+(Ht^Zt^ht)+Ut[10]+3200236656&4294967295)<<23&4294967295|bt>>>9))+((bt=ht+(Rt^Ht^Zt)+Ut[13]+681279174&4294967295)<<4&4294967295|bt>>>28))+((bt=Zt+(ht^Rt^Ht)+Ut[0]+3936430074&4294967295)<<11&4294967295|bt>>>21))+((bt=Ht+(Zt^ht^Rt)+Ut[3]+3572445317&4294967295)<<16&4294967295|bt>>>16))+((bt=Rt+(Ht^Zt^ht)+Ut[6]+76029189&4294967295)<<23&4294967295|bt>>>9))+((bt=ht+(Rt^Ht^Zt)+Ut[9]+3654602809&4294967295)<<4&4294967295|bt>>>28))+((bt=Zt+(ht^Rt^Ht)+Ut[12]+3873151461&4294967295)<<11&4294967295|bt>>>21))+((bt=Ht+(Zt^ht^Rt)+Ut[15]+530742520&4294967295)<<16&4294967295|bt>>>16))+((bt=Rt+(Ht^Zt^ht)+Ut[2]+3299628645&4294967295)<<23&4294967295|bt>>>9))+((bt=ht+(Ht^(Rt|~Zt))+Ut[0]+4096336452&4294967295)<<6&4294967295|bt>>>26))+((bt=Zt+(Rt^(ht|~Ht))+Ut[7]+1126891415&4294967295)<<10&4294967295|bt>>>22))+((bt=Ht+(ht^(Zt|~Rt))+Ut[14]+2878612391&4294967295)<<15&4294967295|bt>>>17))+((bt=Rt+(Zt^(Ht|~ht))+Ut[5]+4237533241&4294967295)<<21&4294967295|bt>>>11))+((bt=ht+(Ht^(Rt|~Zt))+Ut[12]+1700485571&4294967295)<<6&4294967295|bt>>>26))+((bt=Zt+(Rt^(ht|~Ht))+Ut[3]+2399980690&4294967295)<<10&4294967295|bt>>>22))+((bt=Ht+(ht^(Zt|~Rt))+Ut[10]+4293915773&4294967295)<<15&4294967295|bt>>>17))+((bt=Rt+(Zt^(Ht|~ht))+Ut[1]+2240044497&4294967295)<<21&4294967295|bt>>>11))+((bt=ht+(Ht^(Rt|~Zt))+Ut[8]+1873313359&4294967295)<<6&4294967295|bt>>>26))+((bt=Zt+(Rt^(ht|~Ht))+Ut[15]+4264355552&4294967295)<<10&4294967295|bt>>>22))+((bt=Ht+(ht^(Zt|~Rt))+Ut[6]+2734768916&4294967295)<<15&4294967295|bt>>>17))+((bt=Rt+(Zt^(Ht|~ht))+Ut[13]+1309151649&4294967295)<<21&4294967295|bt>>>11))+((Zt=(ht=Rt+((bt=ht+(Ht^(Rt|~Zt))+Ut[4]+4149444226&4294967295)<<6&4294967295|bt>>>26))+((bt=Zt+(Rt^(ht|~Ht))+Ut[11]+3174756917&4294967295)<<10&4294967295|bt>>>22))^((Ht=Zt+((bt=Ht+(ht^(Zt|~Rt))+Ut[2]+718787259&4294967295)<<15&4294967295|bt>>>17))|~ht))+Ut[9]+3951481745&4294967295,Bt.g[0]=Bt.g[0]+ht&4294967295,Bt.g[1]=Bt.g[1]+(Ht+(bt<<21&4294967295|bt>>>11))&4294967295,Bt.g[2]=Bt.g[2]+Ht&4294967295,Bt.g[3]=Bt.g[3]+Zt&4294967295}function _(Bt,ht){this.h=ht;for(var Rt=[],Ut=!0,Ht=Bt.length-1;0<=Ht;Ht--){var Zt=0|Bt[Ht];Ut&&Zt==ht||(Rt[Ht]=Zt,Ut=!1)}this.g=Rt}(function n(Bt,ht){function Rt(){}Rt.prototype=ht.prototype,Bt.D=ht.prototype,Bt.prototype=new Rt,Bt.prototype.constructor=Bt,Bt.C=function(Ut,Ht,Zt){for(var bt=Array(arguments.length-2),Nl=2;Nlthis.h?this.blockSize:2*this.blockSize)-this.h);Bt[0]=128;for(var ht=1;htht;++ht)for(var Ut=0;32>Ut;Ut+=8)Bt[Rt++]=this.g[ht]>>>Ut&255;return Bt};var R={};function k(Bt){return-128<=Bt&&128>Bt?function p(Bt,ht){var Rt=R;return Object.prototype.hasOwnProperty.call(Rt,Bt)?Rt[Bt]:Rt[Bt]=ht(Bt)}(Bt,function(ht){return new _([0|ht],0>ht?-1:0)}):new _([0|Bt],0>Bt?-1:0)}function q(Bt){if(isNaN(Bt)||!isFinite(Bt))return He;if(0>Bt)return Ln(q(-Bt));for(var ht=[],Rt=1,Ut=0;Bt>=Rt;Ut++)ht[Ut]=Bt/Rt|0,Rt*=4294967296;return new _(ht,0)}var He=k(0),yt=k(1),Yt=k(16777216);function Rn(Bt){if(0!=Bt.h)return!1;for(var ht=0;ht>>16,Bt[ht]&=65535,ht++}function Or(Bt,ht){this.g=Bt,this.h=ht}function si(Bt,ht){if(Rn(ht))throw Error("division by zero");if(Rn(Bt))return new Or(He,He);if(Wn(Bt))return ht=si(Ln(Bt),ht),new Or(Ln(ht.g),Ln(ht.h));if(Wn(ht))return ht=si(Bt,Ln(ht)),new Or(Ln(ht.g),ht.h);if(30=Ut.l(Bt);)Rt=Wi(Rt),Ut=Wi(Ut);var Ht=Ti(Rt,1),Zt=Ti(Ut,1);for(Ut=Ti(Ut,2),Rt=Ti(Rt,2);!Rn(Ut);){var bt=Zt.add(Ut);0>=bt.l(Bt)&&(Ht=Ht.add(Rt),Zt=bt),Ut=Ti(Ut,1),Rt=Ti(Rt,1)}return ht=Cr(Bt,Ht.j(ht)),new Or(Ht,ht)}for(Ht=He;0<=Bt.l(ht);){for(Rt=Math.max(1,Math.floor(Bt.m()/ht.m())),Ut=48>=(Ut=Math.ceil(Math.log(Rt)/Math.LN2))?1:Math.pow(2,Ut-48),bt=(Zt=q(Rt)).j(ht);Wn(bt)||0>>31;return new _(Rt,Bt.h)}function Ti(Bt,ht){var Rt=ht>>5;ht%=32;for(var Ut=Bt.g.length-Rt,Ht=[],Zt=0;Zt>>ht|Bt.i(Zt+Rt+1)<<32-ht:Bt.i(Zt+Rt);return new _(Ht,Bt.h)}(l=_.prototype).m=function(){if(Wn(this))return-Ln(this).m();for(var Bt=0,ht=1,Rt=0;Rt(Bt=Bt||10)||36>>0).toString(Bt);if(Rn(Rt=Ht))return Zt+Ut;for(;6>Zt.length;)Zt="0"+Zt;Ut=Zt+Ut}},l.i=function(Bt){return 0>Bt?0:Bt>>16)+(this.i(Ht)>>>16)+(Bt.i(Ht)>>>16);Ut=bt>>>16,Rt[Ht]=(bt&=65535)<<16|(Zt&=65535)}return new _(Rt,-2147483648&Rt[Rt.length-1]?-1:0)},l.j=function(Bt){if(Rn(this)||Rn(Bt))return He;if(Wn(this))return Wn(Bt)?Ln(this).j(Ln(Bt)):Ln(Ln(this).j(Bt));if(Wn(Bt))return Ln(this.j(Ln(Bt)));if(0>this.l(Yt)&&0>Bt.l(Yt))return q(this.m()*Bt.m());for(var ht=this.g.length+Bt.g.length,Rt=[],Ut=0;Ut<2*ht;Ut++)Rt[Ut]=0;for(Ut=0;Ut>>16,bt=65535&this.i(Ut),Nl=Bt.i(Ht)>>>16,dc=65535&Bt.i(Ht);Rt[2*Ut+2*Ht]+=bt*dc,Gr(Rt,2*Ut+2*Ht),Rt[2*Ut+2*Ht+1]+=Zt*dc,Gr(Rt,2*Ut+2*Ht+1),Rt[2*Ut+2*Ht+1]+=bt*Nl,Gr(Rt,2*Ut+2*Ht+1),Rt[2*Ut+2*Ht+2]+=Zt*Nl,Gr(Rt,2*Ut+2*Ht+2)}for(Ut=0;Ut(ht=ht||10)||36Zt?(Zt=q(Math.pow(ht,Zt)),Ut=Ut.j(Zt).add(q(bt))):Ut=(Ut=Ut.j(Rt)).add(q(bt))}return Ut},it=et.Integer=_}).apply(typeof be<"u"?be:typeof self<"u"?self:typeof window<"u"?window:{});var xt,Dt,zt,Tt,At,Ie,Ze,_e,$e,at=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},mt={};(function(){var l,n="function"==typeof Object.defineProperties?Object.defineProperty:function(m,V,Q){return m==Array.prototype||m==Object.prototype||(m[V]=Q.value),m},s=function i(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof at&&at];for(var V=0;V{throw m},0)}function bt(){var m=pm;let V=null;return m.g&&(V=m.g,m.g=m.g.next,m.g||(m.h=null),V.next=null),V}var dc=new class Cr{constructor(V,Q){this.i=V,this.j=Q,this.h=0,this.g=null}get(){let V;return 0new O0,m=>m.reset());class O0{constructor(){this.next=this.g=this.h=null}set(V,Q){this.h=V,this.g=Q,this.next=null}reset(){this.next=this.g=this.h=null}}let ld,Ah=!1,pm=new class Nl{constructor(){this.h=this.g=null}add(V,Q){const Ne=dc.get();Ne.set(V,Q),this.h?this.h.next=Ne:this.g=Ne,this.h=Ne}},gm=()=>{const m=R.Promise.resolve(void 0);ld=()=>{m.then(N0)}};var N0=()=>{for(var m;m=bt();){try{m.h.call(m.g)}catch(Q){Zt(Q)}var V=dc;V.j(m),100>V.h&&(V.h++,m.next=V.g,V.g=m)}Ah=!1};function vu(){this.s=this.s,this.C=this.C}function xo(m,V){this.type=m,this.g=this.target=V,this.defaultPrevented=!1}vu.prototype.s=!1,vu.prototype.ma=function(){this.s||(this.s=!0,this.N())},vu.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},xo.prototype.h=function(){this.defaultPrevented=!0};var mm=function(){if(!R.addEventListener||!Object.defineProperty)return!1;var m=!1,V=Object.defineProperty({},"passive",{get:function(){m=!0}});try{const Q=()=>{};R.addEventListener("test",Q,V),R.removeEventListener("test",Q,V)}catch{}return m}();function Ch(m,V){if(xo.call(this,m?m.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,m){var Q=this.type=m.type,Ne=m.changedTouches&&m.changedTouches.length?m.changedTouches[0]:null;if(this.target=m.target||m.srcElement,this.g=V,V=m.relatedTarget){if(Wi){e:{try{si(V.nodeName);var qt=!0;break e}catch{}qt=!1}qt||(V=null)}}else"mouseover"==Q?V=m.fromElement:"mouseout"==Q&&(V=m.toElement);this.relatedTarget=V,Ne?(this.clientX=void 0!==Ne.clientX?Ne.clientX:Ne.pageX,this.clientY=void 0!==Ne.clientY?Ne.clientY:Ne.pageY,this.screenX=Ne.screenX||0,this.screenY=Ne.screenY||0):(this.clientX=void 0!==m.clientX?m.clientX:m.pageX,this.clientY=void 0!==m.clientY?m.clientY:m.pageY,this.screenX=m.screenX||0,this.screenY=m.screenY||0),this.button=m.button,this.key=m.key||"",this.ctrlKey=m.ctrlKey,this.altKey=m.altKey,this.shiftKey=m.shiftKey,this.metaKey=m.metaKey,this.pointerId=m.pointerId||0,this.pointerType="string"==typeof m.pointerType?m.pointerType:l_[m.pointerType]||"",this.state=m.state,this.i=m,m.defaultPrevented&&Ch.aa.h.call(this)}}Rn(Ch,xo);var l_={2:"touch",3:"pen",4:"mouse"};Ch.prototype.h=function(){Ch.aa.h.call(this);var m=this.i;m.preventDefault?m.preventDefault():m.returnValue=!1};var Th="closure_listenable_"+(1e6*Math.random()|0),u_=0;function nA(m,V,Q,Ne,qt){this.listener=m,this.proxy=null,this.src=V,this.type=Q,this.capture=!!Ne,this.ha=qt,this.key=++u_,this.da=this.fa=!1}function lp(m){m.da=!0,m.listener=null,m.proxy=null,m.src=null,m.ha=null}function hc(m){this.src=m,this.g={},this.h=0}function up(m,V){var Q=V.type;if(Q in m.g){var hn,Ne=m.g[Q],qt=Array.prototype.indexOf.call(Ne,V,void 0);(hn=0<=qt)&&Array.prototype.splice.call(Ne,qt,1),hn&&(lp(V),0==m.g[Q].length&&(delete m.g[Q],m.h--))}}function vm(m,V,Q,Ne){for(var qt=0;qt>>0);function Cm(m){return"function"==typeof m?m:(m[Dh]||(m[Dh]=function(V){return m.handleEvent(V)}),m[Dh])}function vs(){vu.call(this),this.i=new hc(this),this.M=this,this.F=null}function os(m,V){var Q,Ne=m.F;if(Ne)for(Q=[];Ne;Ne=Ne.F)Q.push(Ne);if(m=m.M,Ne=V.type||V,"string"==typeof V)V=new xo(V,m);else if(V instanceof xo)V.target=V.target||m;else{var qt=V;Ut(V=new xo(Ne,m),qt)}if(qt=!0,Q)for(var hn=Q.length-1;0<=hn;hn--){var nr=V.g=Q[hn];qt=bh(nr,Ne,!0,V)&&qt}if(qt=bh(nr=V.g=m,Ne,!0,V)&&qt,qt=bh(nr,Ne,!1,V)&&qt,Q)for(hn=0;hn{m.g=null,m.i&&(m.i=!1,Dm(m))},m.l);const V=m.h;m.h=null,m.m.apply(null,V)}Rn(vs,vu),vs.prototype[Th]=!0,vs.prototype.removeEventListener=function(m,V,Q,Ne){Em(this,m,V,Q,Ne)},vs.prototype.N=function(){if(vs.aa.N.call(this),this.i){var V,m=this.i;for(V in m.g){for(var Q=m.g[V],Ne=0;NeNe.length)){var qt=Ne[1];if(Array.isArray(qt)&&!(1>qt.length)){var hn=qt[0];if("noop"!=hn&&"stop"!=hn&&"close"!=hn)for(var nr=1;nrV.length?Mm:(V=V.slice(Ne,Ne+Q),m.C=Ne+Q,V))}function Mh(m){m.S=Date.now()+m.I,vp(m,m.I)}function vp(m,V){if(null!=m.B)throw Error("WatchDog timer not null");m.B=fp(yt(m.ba,m),V)}function _p(m){m.B&&(R.clearTimeout(m.B),m.B=null)}function Ph(m){0==m.j.G||m.J||q0(m.j,m)}function Au(m){_p(m);var V=m.M;V&&"function"==typeof V.ma&&V.ma(),m.M=null,bm(m.U),m.g&&(V=m.g,m.g=null,V.abort(),V.ma())}function xh(m,V){try{var Q=m.j;if(0!=Q.G&&(Q.g==m||xm(Q.h,m)))if(!m.K&&xm(Q.h,m)&&3==Q.G){try{var Ne=Q.Da.g.parse(V)}catch{Ne=null}if(Array.isArray(Ne)&&3==Ne.length){var qt=Ne;if(0==qt[0]){e:if(!Q.u){if(Q.g){if(!(Q.g.F+3e3qt[2]&&Q.F&&0==Q.v&&!Q.C&&(Q.C=fp(yt(Q.Za,Q),6e3));if(1>=C_(Q.h)&&Q.ca){try{Q.ca()}catch{}Q.ca=void 0}}else Tu(Q,11)}else if((m.K||Q.g==m)&&Bh(Q),!Gr(V))for(qt=Q.Da.g.parse(V),V=0;VDs)&&(3!=Ds||this.g&&(this.h.h||this.g.oa()||R_(this.g)))){this.J||4!=Ds||7==V||pc(),_p(this);var Q=this.g.Z();this.X=Q;t:if(y_(this)){var Ne=R_(this.g);m="";var qt=Ne.length,hn=4==Cu(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Au(this),Ph(this);var nr="";break t}this.h.i=new R.TextDecoder}for(V=0;V=m.j}function C_(m){return m.h?1:m.g?m.g.size:0}function xm(m,V){return m.h?m.h==V:!!m.g&&m.g.has(V)}function Oh(m,V){m.g?m.g.add(V):m.h=V}function yp(m,V){m.h&&m.h==V?m.h=null:m.g&&m.g.has(V)&&m.g.delete(V)}function Om(m){if(null!=m.h)return m.i.concat(m.h.D);if(null!=m.g&&0!==m.g.size){let V=m.i;for(const Q of m.g.values())V=V.concat(Q.D);return V}return Wn(m.i)}function T_(m,V){if(m.forEach&&"function"==typeof m.forEach)m.forEach(V,void 0);else if(k(m)||"string"==typeof m)Array.prototype.forEach.call(m,V,void 0);else for(var Q=function km(m){if(m.na&&"function"==typeof m.na)return m.na();if(!m.V||"function"!=typeof m.V){if(typeof Map<"u"&&m instanceof Map)return Array.from(m.keys());if(!(typeof Set<"u"&&m instanceof Set)){if(k(m)||"string"==typeof m){var V=[];m=m.length;for(var Q=0;QV)throw Error("Bad port number "+V);m.s=V}else m.s=null}function Fm(m,V,Q){V instanceof _d?(m.i=V,function w_(m,V){V&&!m.j&&(kl(m),m.i=null,m.g.forEach(function(Q,Ne){var qt=Ne.toLowerCase();Ne!=qt&&(Vm(this,Ne),Bm(this,qt,Q))},m)),m.j=V}(m.i,m.h)):(Q||(V=vd(V,rA)),m.i=new _d(V,m.h))}function co(m,V,Q){m.i.set(V,Q)}function Nh(m){return co(m,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),m}function kh(m,V){return m?V?decodeURI(m.replace(/%25/g,"%2525")):decodeURIComponent(m):""}function vd(m,V,Q){return"string"==typeof m?(m=encodeURI(m).replace(V,U0),Q&&(m=m.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m):null}function U0(m){return"%"+((m=m.charCodeAt(0))>>4&15).toString(16)+(15&m).toString(16)}gc.prototype.toString=function(){var m=[],V=this.j;V&&m.push(vd(V,Ep,!0),":");var Q=this.g;return(Q||"file"==V)&&(m.push("//"),(V=this.o)&&m.push(vd(V,Ep,!0),"@"),m.push(encodeURIComponent(String(Q)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(Q=this.s)&&m.push(":",String(Q))),(Q=this.l)&&(this.g&&"/"!=Q.charAt(0)&&m.push("/"),m.push(vd(Q,"/"==Q.charAt(0)?Lm:b_,!0))),(Q=this.i.toString())&&m.push("?",Q),(Q=this.m)&&m.push("#",vd(Q,iA)),m.join("")};var Ep=/[#\/\?@]/g,b_=/[#\?:]/g,Lm=/[#\?]/g,rA=/[#\?@]/g,iA=/#/g;function _d(m,V){this.h=this.g=null,this.i=m||null,this.j=!!V}function kl(m){m.g||(m.g=new Map,m.h=0,m.i&&function B0(m,V){if(m){m=m.split("&");for(var Q=0;Q{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Cp(this)),this.readyState=0},l.Sa=function(m){if(this.g&&(this.l=m,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=m.headers,this.readyState=2,Tp(this)),this.g&&(this.readyState=3,Tp(this),this.g)))if("arraybuffer"===this.responseType)m.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof R.ReadableStream<"u"&&"body"in m){if(this.j=m.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;j0(this)}else m.text().then(this.Ra.bind(this),this.ga.bind(this))},l.Pa=function(m){if(this.g){if(this.o&&m.value)this.response.push(m.value);else if(!this.o){var V=m.value?m.value:new Uint8Array(0);(V=this.v.decode(V,{stream:!m.done}))&&(this.response=this.responseText+=V)}m.done?Cp(this):Tp(this),3==this.readyState&&j0(this)}},l.Ra=function(m){this.g&&(this.response=this.responseText=m,Cp(this))},l.Qa=function(m){this.g&&(this.response=m,Cp(this))},l.ga=function(){this.g&&Cp(this)},l.setRequestHeader=function(m,V){this.u.append(m,V)},l.getResponseHeader=function(m){return this.h&&this.h.get(m.toLowerCase())||""},l.getAllResponseHeaders=function(){if(!this.h)return"";const m=[],V=this.h.entries();for(var Q=V.next();!Q.done;)m.push((Q=Q.value)[0]+": "+Q[1]),Q=V.next();return m.join("\r\n")},Object.defineProperty(Um.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(m){this.m=m?"include":"same-origin"}}),Rn(Oo,vs);var aA=/^https?$/i,lA=["POST","PUT"];function z0(m,V){m.h=!1,m.g&&(m.j=!0,m.g.abort(),m.j=!1),m.l=V,m.m=5,H0(m),jm(m)}function H0(m){m.A||(m.A=!0,os(m,"complete"),os(m,"error"))}function G0(m){if(m.h&&typeof _<"u"&&(!m.v[1]||4!=Cu(m)||2!=m.Z()))if(m.u&&4==Cu(m))Tm(m.Ea,0,m);else if(os(m,"readystatechange"),4==Cu(m)){m.h=!1;try{const nr=m.Z();e:switch(nr){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var V=!0;break e;default:V=!1}var Q;if(!(Q=V)){var Ne;if(Ne=0===nr){var qt=String(m.D).match(D_)[1]||null;!qt&&R.self&&R.self.location&&(qt=R.self.location.protocol.slice(0,-1)),Ne=!aA.test(qt?qt.toLowerCase():"")}Q=Ne}if(Q)os(m,"complete"),os(m,"success");else{m.m=6;try{var hn=2{}:null;m.g=null,m.v=null,V||os(m,"ready");try{Q.onreadystatechange=Ne}catch{}}}function W0(m){m.I&&(R.clearTimeout(m.I),m.I=null)}function Cu(m){return m.g?m.g.readyState:0}function R_(m){try{if(!m.g)return null;if("response"in m.g)return m.g.response;switch(m.H){case"":case"text":return m.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in m.g)return m.g.mozResponseArrayBuffer}return null}catch{return null}}function Fl(m,V,Q){return Q&&Q.internalChannelParams&&Q.internalChannelParams[m]||V}function M_(m){this.Aa=0,this.i=[],this.j=new Eu,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=Fl("failFast",!1,m),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=Fl("baseRetryDelayMs",5e3,m),this.cb=Fl("retryDelaySeedMs",1e4,m),this.Wa=Fl("forwardChannelMaxRetries",2,m),this.wa=Fl("forwardChannelRequestTimeoutMs",2e4,m),this.pa=m&&m.xmlHttpFactory||void 0,this.Xa=m&&m.Tb||void 0,this.Ca=m&&m.useFetchStreams||!1,this.L=void 0,this.J=m&&m.supportsCrossDomainXhr||!1,this.K="",this.h=new Pm(m&&m.concurrentRequestLimit),this.Da=new oA,this.P=m&&m.fastHandshake||!1,this.O=m&&m.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=m&&m.Rb||!1,m&&m.xa&&this.j.xa(),m&&m.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&m&&m.detectBufferingProxy||!1,this.ja=void 0,m&&m.longPollingTimeout&&0ji)hn=Math.max(0,qt[Io].g-100),ro=!1;else try{sA(_s,nr,"req"+ji+"_")}catch{Ne&&Ne(_s)}}if(ro){Ne=nr.join("&");break e}}}return m=m.i.splice(0,Q),V.D=m,Ne}function Hm(m){if(!m.g&&!m.u){m.Y=1;var V=m.Fa;ld||gm(),Ah||(ld(),Ah=!0),pm.add(V,m),m.v=0}}function Gm(m){return!(m.g||m.u||3<=m.v||(m.Y++,m.u=fp(yt(m.Fa,m),N_(m,m.v)),m.v++,0))}function bp(m){null!=m.A&&(R.clearTimeout(m.A),m.A=null)}function X0(m){m.g=new Iu(m,m.j,"rpc",m.Y),null===m.m&&(m.g.H=m.o),m.g.O=0;var V=al(m.qa);co(V,"RID","rpc"),co(V,"SID",m.K),co(V,"AID",m.T),co(V,"CI",m.F?"0":"1"),!m.F&&m.ja&&co(V,"TO",m.ja),co(V,"TYPE","xmlhttp"),Lh(m,V),m.m&&m.o&&Dp(V,m.m,m.o),m.L&&(m.g.I=m.L);var Q=m.g;m=m.ia,Q.L=1,Q.v=Nh(al(V)),Q.m=null,Q.P=!0,__(Q,m)}function Bh(m){null!=m.C&&(R.clearTimeout(m.C),m.C=null)}function q0(m,V){var Q=null;if(m.g==V){Bh(m),bp(m),m.g=null;var Ne=2}else{if(!xm(m.h,V))return;Q=V.D,yp(m.h,V),Ne=1}if(0!=m.G)if(V.o)if(1==Ne){Q=V.m?V.m.length:0,V=Date.now()-V.F;var qt=m.B;os(Ne=hp(),new hd(Ne,Q)),zm(m)}else Hm(m);else if(3==(qt=V.s)||0==qt&&0=m.h.j-(m.s?1:0)||(m.s?(m.i=V.D.concat(m.i),0):1==m.G||2==m.G||m.B>=(m.Va?0:m.Wa)||(m.s=fp(yt(m.Ga,m,V),N_(m,m.B)),m.B++,0)))}(m,V)||2==Ne&&Gm(m)))switch(Q&&0{Ne.abort(),vc(0,0,!1,V)},1e4);fetch(m,{signal:Ne.signal}).then(hn=>{clearTimeout(qt),vc(0,0,!!hn.ok,V)}).catch(()=>{clearTimeout(qt),vc(0,0,!1,V)})}(Ne.toString(),Q)}else Do(2);m.G=0,m.l&&m.l.sa(V),wp(m),x_(m)}function wp(m){if(m.G=0,m.ka=[],m.l){const V=Om(m.h);(0!=V.length||0!=m.i.length)&&(Ln(m.ka,V),Ln(m.ka,m.i),m.h.i.length=0,Wn(m.i),m.i.length=0),m.l.ra()}}function k_(m,V,Q){var Ne=Q instanceof gc?al(Q):new gc(Q);if(""!=Ne.g)V&&(Ne.g=V+"."+Ne.g),md(Ne,Ne.s);else{var qt=R.location;Ne=qt.protocol,V=V?V+"."+qt.hostname:qt.hostname,qt=+qt.port;var hn=new gc(null);Ne&&gd(hn,Ne),V&&(hn.g=V),qt&&md(hn,qt),Q&&(hn.l=Q),Ne=hn}return V=m.ya,(Q=m.D)&&V&&co(Ne,Q,V),co(Ne,"VER",m.la),Lh(m,Ne),Ne}function F_(m,V,Q){if(V&&!m.J)throw Error("Can't create secondary domain capable XhrIo object.");return(V=new Oo(m.Ca&&!m.pa?new Ap({eb:Q}):m.pa)).Ha(m.J),V}function Uh(){}function Sp(){}function qs(m,V){vs.call(this),this.g=new M_(V),this.l=m,this.h=V&&V.messageUrlParams||null,m=V&&V.messageHeaders||null,V&&V.clientProtocolHeaderRequired&&(m?m["X-Client-Protocol"]="webchannel":m={"X-Client-Protocol":"webchannel"}),this.g.o=m,m=V&&V.initMessageHeaders||null,V&&V.messageContentType&&(m?m["X-WebChannel-Content-Type"]=V.messageContentType:m={"X-WebChannel-Content-Type":V.messageContentType}),V&&V.va&&(m?m["X-WebChannel-Client-Profile"]=V.va:m={"X-WebChannel-Client-Profile":V.va}),this.g.S=m,(m=V&&V.Sb)&&!Gr(m)&&(this.g.m=m),this.v=V&&V.supportsCrossDomainXhr||!1,this.u=V&&V.sendRawJson||!1,(V=V&&V.httpSessionIdParam)&&!Gr(V)&&(this.g.D=V,null!==(m=this.h)&&V in m&&V in(m=this.h)&&delete m[V]),this.j=new Ed(this)}function L_(m){sl.call(this),m.__headers__&&(this.headers=m.__headers__,this.statusCode=m.__status__,delete m.__headers__,delete m.__status__);var V=m.__sm__;if(V){e:{for(const Q in V){m=Q;break e}m=void 0}(this.i=m)&&(m=this.i,V=null!==V&&m in V?V[m]:void 0),this.data=V}else this.data=m}function V_(){cd.call(this),this.status=1}function Ed(m){this.g=m}(l=Oo.prototype).Ha=function(m){this.J=m},l.ea=function(m,V,Q,Ne){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+m);V=V?V.toUpperCase():"GET",this.D=m,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():Rm.g(),this.v=function wm(m){return m.h||(m.h=m.i())}(this.o?this.o:Rm),this.g.onreadystatechange=yt(this.Ea,this);try{this.B=!0,this.g.open(V,String(m),!0),this.B=!1}catch(hn){return void z0(this,hn)}if(m=Q||"",Q=new Map(this.headers),Ne)if(Object.getPrototypeOf(Ne)===Object.prototype)for(var qt in Ne)Q.set(qt,Ne[qt]);else{if("function"!=typeof Ne.keys||"function"!=typeof Ne.get)throw Error("Unknown input type for opt_headers: "+String(Ne));for(const hn of Ne.keys())Q.set(hn,Ne.get(hn))}Ne=Array.from(Q.keys()).find(hn=>"content-type"==hn.toLowerCase()),qt=R.FormData&&m instanceof R.FormData,!(0<=Array.prototype.indexOf.call(lA,V,void 0))||Ne||qt||Q.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[hn,nr]of Q)this.g.setRequestHeader(hn,nr);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{W0(this),this.u=!0,this.g.send(m),this.u=!1}catch(hn){z0(this,hn)}},l.abort=function(m){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=m||7,os(this,"complete"),os(this,"abort"),jm(this))},l.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),jm(this,!0)),Oo.aa.N.call(this)},l.Ea=function(){this.s||(this.B||this.u||this.j?G0(this):this.bb())},l.bb=function(){G0(this)},l.isActive=function(){return!!this.g},l.Z=function(){try{return 2=this.R)){var m=2*this.R;this.j.info("BP detection timer enabled: "+m),this.A=fp(yt(this.ab,this),m)}},l.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,Do(10),Fh(this),X0(this))},l.Za=function(){null!=this.C&&(this.C=null,Fh(this),Gm(this),Do(19))},l.fb=function(m){m?(this.j.info("Successfully pinged google.com"),Do(2)):(this.j.info("Failed to ping google.com"),Do(1))},l.isActive=function(){return!!this.l&&this.l.isActive(this)},(l=Uh.prototype).ua=function(){},l.ta=function(){},l.sa=function(){},l.ra=function(){},l.isActive=function(){return!0},l.Na=function(){},Sp.prototype.g=function(m,V){return new qs(m,V)},Rn(qs,vs),qs.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},qs.prototype.close=function(){P_(this.g)},qs.prototype.o=function(m){var V=this.g;if("string"==typeof m){var Q={};Q.__data__=m,m=Q}else this.u&&((Q={}).__data__=Sh(m),m=Q);V.i.push(new I_(V.Ya++,m)),3==V.G&&zm(V)},qs.prototype.N=function(){this.g.l=null,delete this.j,P_(this.g),delete this.g,qs.aa.N.call(this)},Rn(L_,sl),Rn(V_,cd),Rn(Ed,Uh),Ed.prototype.ua=function(){os(this.g,"a")},Ed.prototype.ta=function(m){os(this.g,new L_(m))},Ed.prototype.sa=function(m){os(this.g,new V_)},Ed.prototype.ra=function(){os(this.g,"b")},Sp.prototype.createWebChannel=Sp.prototype.g,qs.prototype.send=qs.prototype.o,qs.prototype.open=qs.prototype.m,qs.prototype.close=qs.prototype.close,$e=mt.createWebChannelTransport=function(){return new Sp},_e=mt.getStatEventTarget=function(){return hp()},Ze=mt.Event=yu,Ie=mt.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},gp.NO_ERROR=0,gp.TIMEOUT=8,gp.HTTP_ERROR=6,At=mt.ErrorCode=gp,g_.COMPLETE="complete",Tt=mt.EventType=g_,ud.EventType=fc,fc.OPEN="a",fc.CLOSE="b",fc.ERROR="c",fc.MESSAGE="d",vs.prototype.listen=vs.prototype.K,zt=mt.WebChannel=ud,Dt=mt.FetchXmlHttpFactory=Ap,Oo.prototype.listenOnce=Oo.prototype.L,Oo.prototype.getLastError=Oo.prototype.Ka,Oo.prototype.getLastErrorCode=Oo.prototype.Ba,Oo.prototype.getStatus=Oo.prototype.Z,Oo.prototype.getResponseJson=Oo.prototype.Oa,Oo.prototype.getResponseText=Oo.prototype.oa,Oo.prototype.send=Oo.prototype.ea,Oo.prototype.setWithCredentials=Oo.prototype.Ha,xt=mt.XhrIo=Oo}).apply(typeof at<"u"?at:typeof self<"u"?self:typeof window<"u"?window:{});const Le="@firebase/firestore";class Oe{constructor(n){this.uid=n}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(n){return n.uid===this.uid}}Oe.UNAUTHENTICATED=new Oe(null),Oe.GOOGLE_CREDENTIALS=new Oe("google-credentials-uid"),Oe.FIRST_PARTY=new Oe("first-party-uid"),Oe.MOCK_USER=new Oe("mock-user");let Ct="10.12.1";const kt=new tt.Vy("@firebase/firestore");function Cn(){return kt.logLevel}function st(l,...n){if(kt.logLevel<=tt.$b.DEBUG){const i=n.map(Re);kt.debug(`Firestore (${Ct}): ${l}`,...i)}}function cn(l,...n){if(kt.logLevel<=tt.$b.ERROR){const i=n.map(Re);kt.error(`Firestore (${Ct}): ${l}`,...i)}}function vt(l,...n){if(kt.logLevel<=tt.$b.WARN){const i=n.map(Re);kt.warn(`Firestore (${Ct}): ${l}`,...i)}}function Re(l){if("string"==typeof l)return l;try{return JSON.stringify(l)}catch{return l}}function G(l="Unexpected state"){const n=`FIRESTORE (${Ct}) INTERNAL ASSERTION FAILED: `+l;throw cn(n),new Error(n)}function X(l,n){l||G()}function ue(l,n){return l}const Ee={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class Ve extends Se.g{constructor(n,i){super(n,i),this.code=n,this.message=i,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class ut{constructor(){this.promise=new Promise((n,i)=>{this.resolve=n,this.reject=i})}}class fn{constructor(n,i){this.user=i,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${n}`)}}class xn{getToken(){return Promise.resolve(null)}invalidateToken(){}start(n,i){n.enqueueRetryable(()=>i(Oe.UNAUTHENTICATED))}shutdown(){}}class un{constructor(n){this.token=n,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(n,i){this.changeListener=i,n.enqueueRetryable(()=>i(this.token.user))}shutdown(){this.changeListener=null}}class Je{constructor(n){this.t=n,this.currentUser=Oe.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(n,i){var s=this;let u=this.i;const p=q=>this.i!==u?(u=this.i,i(q)):Promise.resolve();let _=new ut;this.o=()=>{this.i++,this.currentUser=this.u(),_.resolve(),_=new ut,n.enqueueRetryable(()=>p(this.currentUser))};const R=()=>{const q=_;n.enqueueRetryable((0,he.A)(function*(){yield q.promise,yield p(s.currentUser)}))},k=q=>{st("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=q,this.auth.addAuthTokenListener(this.o),R()};this.t.onInit(q=>k(q)),setTimeout(()=>{if(!this.auth){const q=this.t.getImmediate({optional:!0});q?k(q):(st("FirebaseAuthCredentialsProvider","Auth not yet detected"),_.resolve(),_=new ut)}},0),R()}getToken(){const n=this.i,i=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(i).then(s=>this.i!==n?(st("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):s?(X("string"==typeof s.accessToken),new fn(s.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const n=this.auth&&this.auth.getUid();return X(null===n||"string"==typeof n),new Oe(n)}}class Sn{constructor(n,i,s){this.l=n,this.h=i,this.P=s,this.type="FirstParty",this.user=Oe.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const n=this.T();return n&&this.I.set("Authorization",n),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class kn{constructor(n,i,s){this.l=n,this.h=i,this.P=s}getToken(){return Promise.resolve(new Sn(this.l,this.h,this.P))}start(n,i){n.enqueueRetryable(()=>i(Oe.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class On{constructor(n){this.value=n,this.type="AppCheck",this.headers=new Map,n&&n.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class or{constructor(n){this.A=n,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(n,i){const s=p=>{null!=p.error&&st("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${p.error.message}`);const _=p.token!==this.R;return this.R=p.token,st("FirebaseAppCheckTokenProvider",`Received ${_?"new":"existing"} token.`),_?i(p.token):Promise.resolve()};this.o=p=>{n.enqueueRetryable(()=>s(p))};const u=p=>{st("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=p,this.appCheck.addTokenListener(this.o)};this.A.onInit(p=>u(p)),setTimeout(()=>{if(!this.appCheck){const p=this.A.getImmediate({optional:!0});p?u(p):st("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const n=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(n).then(i=>i?(X("string"==typeof i.token),this.R=i.token,new On(i.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function cr(l){const n=typeof self<"u"&&(self.crypto||self.msCrypto),i=new Uint8Array(l);if(n&&"function"==typeof n.getRandomValues)n.getRandomValues(i);else for(let s=0;sn?1:0}function Lt(l,n,i){return l.length===n.length&&l.every((s,u)=>i(s,n[u]))}class yn{constructor(n,i){if(this.seconds=n,this.nanoseconds=i,i<0)throw new Ve(Ee.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(i>=1e9)throw new Ve(Ee.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(n<-62135596800)throw new Ve(Ee.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n);if(n>=253402300800)throw new Ve(Ee.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n)}static now(){return yn.fromMillis(Date.now())}static fromDate(n){return yn.fromMillis(n.getTime())}static fromMillis(n){const i=Math.floor(n/1e3),s=Math.floor(1e6*(n-1e3*i));return new yn(i,s)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(n){return this.seconds===n.seconds?nt(this.nanoseconds,n.nanoseconds):nt(this.seconds,n.seconds)}isEqual(n){return n.seconds===this.seconds&&n.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}class En{constructor(n){this.timestamp=n}static fromTimestamp(n){return new En(n)}static min(){return new En(new yn(0,0))}static max(){return new En(new yn(253402300799,999999999))}compareTo(n){return this.timestamp._compareTo(n.timestamp)}isEqual(n){return this.timestamp.isEqual(n.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}class Fr{constructor(n,i,s){void 0===i?i=0:i>n.length&&G(),void 0===s?s=n.length-i:s>n.length-i&&G(),this.segments=n,this.offset=i,this.len=s}get length(){return this.len}isEqual(n){return 0===Fr.comparator(this,n)}child(n){const i=this.segments.slice(this.offset,this.limit());return n instanceof Fr?n.forEach(s=>{i.push(s)}):i.push(n),this.construct(i)}limit(){return this.offset+this.length}popFirst(n){return this.construct(this.segments,this.offset+(n=void 0===n?1:n),this.length-n)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(n){return this.segments[this.offset+n]}isEmpty(){return 0===this.length}isPrefixOf(n){if(n.length_)return 1}return n.lengthi.length?1:0}}class Vn extends Fr{construct(n,i,s){return new Vn(n,i,s)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...n){const i=[];for(const s of n){if(s.indexOf("//")>=0)throw new Ve(Ee.INVALID_ARGUMENT,`Invalid segment (${s}). Paths must not contain // in them.`);i.push(...s.split("/").filter(u=>u.length>0))}return new Vn(i)}static emptyPath(){return new Vn([])}}const $n=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class In extends Fr{construct(n,i,s){return new In(n,i,s)}static isValidIdentifier(n){return $n.test(n)}canonicalString(){return this.toArray().map(n=>(n=n.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),In.isValidIdentifier(n)||(n="`"+n+"`"),n)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new In(["__name__"])}static fromServerFormat(n){const i=[];let s="",u=0;const p=()=>{if(0===s.length)throw new Ve(Ee.INVALID_ARGUMENT,`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);i.push(s),s=""};let _=!1;for(;u=2&&this.path.get(this.path.length-2)===n}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(n){return null!==n&&0===Vn.comparator(this.path,n.path)}toString(){return this.path.toString()}static comparator(n,i){return Vn.comparator(n.path,i.path)}static isDocumentKey(n){return n.length%2==0}static fromSegments(n){return new on(new Vn(n.slice()))}}class Br{constructor(n,i,s){this.readTime=n,this.documentKey=i,this.largestBatchId=s}static min(){return new Br(En.min(),on.empty(),-1)}static max(){return new Br(En.max(),on.empty(),-1)}}function ar(l,n){let i=l.readTime.compareTo(n.readTime);return 0!==i?i:(i=on.comparator(l.documentKey,n.documentKey),0!==i?i:nt(l.largestBatchId,n.largestBatchId))}const Lr="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class li{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(n){this.onCommittedListeners.push(n)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(n=>n())}}function Di(l){return Zr.apply(this,arguments)}function Zr(){return(Zr=(0,he.A)(function*(l){if(l.code!==Ee.FAILED_PRECONDITION||l.message!==Lr)throw l;st("LocalStore","Unexpectedly lost primary lease")})).apply(this,arguments)}class ve{constructor(n){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,n(i=>{this.isDone=!0,this.result=i,this.nextCallback&&this.nextCallback(i)},i=>{this.isDone=!0,this.error=i,this.catchCallback&&this.catchCallback(i)})}catch(n){return this.next(void 0,n)}next(n,i){return this.callbackAttached&&G(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(i,this.error):this.wrapSuccess(n,this.result):new ve((s,u)=>{this.nextCallback=p=>{this.wrapSuccess(n,p).next(s,u)},this.catchCallback=p=>{this.wrapFailure(i,p).next(s,u)}})}toPromise(){return new Promise((n,i)=>{this.next(n,i)})}wrapUserFunction(n){try{const i=n();return i instanceof ve?i:ve.resolve(i)}catch(i){return ve.reject(i)}}wrapSuccess(n,i){return n?this.wrapUserFunction(()=>n(i)):ve.resolve(i)}wrapFailure(n,i){return n?this.wrapUserFunction(()=>n(i)):ve.reject(i)}static resolve(n){return new ve((i,s)=>{i(n)})}static reject(n){return new ve((i,s)=>{s(n)})}static waitFor(n){return new ve((i,s)=>{let u=0,p=0,_=!1;n.forEach(R=>{++u,R.next(()=>{++p,_&&p===u&&i()},k=>s(k))}),_=!0,p===u&&i()})}static or(n){let i=ve.resolve(!1);for(const s of n)i=i.next(u=>u?ve.resolve(u):s());return i}static forEach(n,i){const s=[];return n.forEach((u,p)=>{s.push(i.call(this,u,p))}),this.waitFor(s)}static mapArray(n,i){return new ve((s,u)=>{const p=n.length,_=new Array(p);let R=0;for(let k=0;k{_[q]=Ce,++R,R===p&&s(_)},Ce=>u(Ce))}})}static doWhile(n,i){return new ve((s,u)=>{const p=()=>{!0===n()?i().next(()=>{p()},u):s()};p()})}}function Ge(l){return"IndexedDbTransactionError"===l.name}let Tn=(()=>{class l{constructor(i,s){this.previousValue=i,s&&(s.sequenceNumberHandler=u=>this.ie(u),this.se=u=>s.writeSequenceNumber(u))}ie(i){return this.previousValue=Math.max(i,this.previousValue),this.previousValue}next(){const i=++this.previousValue;return this.se&&this.se(i),i}}return l.oe=-1,l})();function Xn(l){return null==l}function dn(l){return 0===l&&1/l==-1/0}function Rr(l){let n=0;for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n++;return n}function di(l,n){for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n(i,l[i])}function Yr(l){for(const n in l)if(Object.prototype.hasOwnProperty.call(l,n))return!1;return!0}class Hr{constructor(n,i){this.comparator=n,this.root=i||tr.EMPTY}insert(n,i){return new Hr(this.comparator,this.root.insert(n,i,this.comparator).copy(null,null,tr.BLACK,null,null))}remove(n){return new Hr(this.comparator,this.root.remove(n,this.comparator).copy(null,null,tr.BLACK,null,null))}get(n){let i=this.root;for(;!i.isEmpty();){const s=this.comparator(n,i.key);if(0===s)return i.value;s<0?i=i.left:s>0&&(i=i.right)}return null}indexOf(n){let i=0,s=this.root;for(;!s.isEmpty();){const u=this.comparator(n,s.key);if(0===u)return i+s.left.size;u<0?s=s.left:(i+=s.left.size+1,s=s.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(n){return this.root.inorderTraversal(n)}forEach(n){this.inorderTraversal((i,s)=>(n(i,s),!1))}toString(){const n=[];return this.inorderTraversal((i,s)=>(n.push(`${i}:${s}`),!1)),`{${n.join(", ")}}`}reverseTraversal(n){return this.root.reverseTraversal(n)}getIterator(){return new _i(this.root,null,this.comparator,!1)}getIteratorFrom(n){return new _i(this.root,n,this.comparator,!1)}getReverseIterator(){return new _i(this.root,null,this.comparator,!0)}getReverseIteratorFrom(n){return new _i(this.root,n,this.comparator,!0)}}class _i{constructor(n,i,s,u){this.isReverse=u,this.nodeStack=[];let p=1;for(;!n.isEmpty();)if(p=i?s(n.key,i):1,i&&u&&(p*=-1),p<0)n=this.isReverse?n.left:n.right;else{if(0===p){this.nodeStack.push(n);break}this.nodeStack.push(n),n=this.isReverse?n.right:n.left}}getNext(){let n=this.nodeStack.pop();const i={key:n.key,value:n.value};if(this.isReverse)for(n=n.left;!n.isEmpty();)this.nodeStack.push(n),n=n.right;else for(n=n.right;!n.isEmpty();)this.nodeStack.push(n),n=n.left;return i}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const n=this.nodeStack[this.nodeStack.length-1];return{key:n.key,value:n.value}}}class tr{constructor(n,i,s,u,p){this.key=n,this.value=i,this.color=null!=s?s:tr.RED,this.left=null!=u?u:tr.EMPTY,this.right=null!=p?p:tr.EMPTY,this.size=this.left.size+1+this.right.size}copy(n,i,s,u,p){return new tr(null!=n?n:this.key,null!=i?i:this.value,null!=s?s:this.color,null!=u?u:this.left,null!=p?p:this.right)}isEmpty(){return!1}inorderTraversal(n){return this.left.inorderTraversal(n)||n(this.key,this.value)||this.right.inorderTraversal(n)}reverseTraversal(n){return this.right.reverseTraversal(n)||n(this.key,this.value)||this.left.reverseTraversal(n)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(n,i,s){let u=this;const p=s(n,u.key);return u=p<0?u.copy(null,null,null,u.left.insert(n,i,s),null):0===p?u.copy(null,i,null,null,null):u.copy(null,null,null,null,u.right.insert(n,i,s)),u.fixUp()}removeMin(){if(this.left.isEmpty())return tr.EMPTY;let n=this;return n.left.isRed()||n.left.left.isRed()||(n=n.moveRedLeft()),n=n.copy(null,null,null,n.left.removeMin(),null),n.fixUp()}remove(n,i){let s,u=this;if(i(n,u.key)<0)u.left.isEmpty()||u.left.isRed()||u.left.left.isRed()||(u=u.moveRedLeft()),u=u.copy(null,null,null,u.left.remove(n,i),null);else{if(u.left.isRed()&&(u=u.rotateRight()),u.right.isEmpty()||u.right.isRed()||u.right.left.isRed()||(u=u.moveRedRight()),0===i(n,u.key)){if(u.right.isEmpty())return tr.EMPTY;s=u.right.min(),u=u.copy(s.key,s.value,null,null,u.right.removeMin())}u=u.copy(null,null,null,null,u.right.remove(n,i))}return u.fixUp()}isRed(){return this.color}fixUp(){let n=this;return n.right.isRed()&&!n.left.isRed()&&(n=n.rotateLeft()),n.left.isRed()&&n.left.left.isRed()&&(n=n.rotateRight()),n.left.isRed()&&n.right.isRed()&&(n=n.colorFlip()),n}moveRedLeft(){let n=this.colorFlip();return n.right.left.isRed()&&(n=n.copy(null,null,null,null,n.right.rotateRight()),n=n.rotateLeft(),n=n.colorFlip()),n}moveRedRight(){let n=this.colorFlip();return n.left.left.isRed()&&(n=n.rotateRight(),n=n.colorFlip()),n}rotateLeft(){const n=this.copy(null,null,tr.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight(){const n=this.copy(null,null,tr.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,n)}colorFlip(){const n=this.left.copy(null,null,!this.left.color,null,null),i=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,n,i)}checkMaxDepth(){const n=this.check();return Math.pow(2,n)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw G();const n=this.left.check();if(n!==this.right.check())throw G();return n+(this.isRed()?0:1)}}tr.EMPTY=null,tr.RED=!0,tr.BLACK=!1,tr.EMPTY=new class{constructor(){this.size=0}get key(){throw G()}get value(){throw G()}get color(){throw G()}get left(){throw G()}get right(){throw G()}copy(n,i,s,u,p){return this}insert(n,i,s){return new tr(n,i)}remove(n,i){return this}isEmpty(){return!0}inorderTraversal(n){return!1}reverseTraversal(n){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class Zn{constructor(n){this.comparator=n,this.data=new Hr(this.comparator)}has(n){return null!==this.data.get(n)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(n){return this.data.indexOf(n)}forEach(n){this.data.inorderTraversal((i,s)=>(n(i),!1))}forEachInRange(n,i){const s=this.data.getIteratorFrom(n[0]);for(;s.hasNext();){const u=s.getNext();if(this.comparator(u.key,n[1])>=0)return;i(u.key)}}forEachWhile(n,i){let s;for(s=void 0!==i?this.data.getIteratorFrom(i):this.data.getIterator();s.hasNext();)if(!n(s.getNext().key))return}firstAfterOrEqual(n){const i=this.data.getIteratorFrom(n);return i.hasNext()?i.getNext().key:null}getIterator(){return new mo(this.data.getIterator())}getIteratorFrom(n){return new mo(this.data.getIteratorFrom(n))}add(n){return this.copy(this.data.remove(n).insert(n,!0))}delete(n){return this.has(n)?this.copy(this.data.remove(n)):this}isEmpty(){return this.data.isEmpty()}unionWith(n){let i=this;return i.size{i=i.add(s)}),i}isEqual(n){if(!(n instanceof Zn)||this.size!==n.size)return!1;const i=this.data.getIterator(),s=n.data.getIterator();for(;i.hasNext();){const u=i.getNext().key,p=s.getNext().key;if(0!==this.comparator(u,p))return!1}return!0}toArray(){const n=[];return this.forEach(i=>{n.push(i)}),n}toString(){const n=[];return this.forEach(i=>n.push(i)),"SortedSet("+n.toString()+")"}copy(n){const i=new Zn(this.comparator);return i.data=n,i}}class mo{constructor(n){this.iter=n}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class yi{constructor(n){this.fields=n,n.sort(In.comparator)}static empty(){return new yi([])}unionWith(n){let i=new Zn(In.comparator);for(const s of this.fields)i=i.add(s);for(const s of n)i=i.add(s);return new yi(i.toArray())}covers(n){for(const i of this.fields)if(i.isPrefixOf(n))return!0;return!1}isEqual(n){return Lt(this.fields,n.fields,(i,s)=>i.isEqual(s))}}class vo extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class ui{constructor(n){this.binaryString=n}static fromBase64String(n){const i=function(u){try{return atob(u)}catch(p){throw typeof DOMException<"u"&&p instanceof DOMException?new vo("Invalid base64 string: "+p):p}}(n);return new ui(i)}static fromUint8Array(n){const i=function(u){let p="";for(let _=0;_noe(i,n))}function Te(l,n){if(l===n)return 0;const i=H(l),s=H(n);if(i!==s)return nt(i,s);switch(i){case 0:case 9007199254740991:return 0;case 1:return nt(l.booleanValue,n.booleanValue);case 2:return function(p,_){const R=fe(p.integerValue||p.doubleValue),k=fe(_.integerValue||_.doubleValue);return Rk?1:R===k?0:isNaN(R)?isNaN(k)?0:-1:1}(l,n);case 3:return dt(l.timestampValue,n.timestampValue);case 4:return dt(ct(l),ct(n));case 5:return nt(l.stringValue,n.stringValue);case 6:return function(p,_){const R=K(p),k=K(_);return R.compareTo(k)}(l.bytesValue,n.bytesValue);case 7:return function(p,_){const R=p.split("/"),k=_.split("/");for(let q=0;qn.mapValue.fields[i]=pn(s)),n}if(l.arrayValue){const n={arrayValue:{values:[]}};for(let i=0;i<(l.arrayValue.values||[]).length;++i)n.arrayValue.values[i]=pn(l.arrayValue.values[i]);return n}return Object.assign({},l)}function vn(l){return"__max__"===(((l.mapValue||{}).fields||{}).__type__||{}).stringValue}class Kn{constructor(n){this.value=n}static empty(){return new Kn({mapValue:{}})}field(n){if(n.isEmpty())return this.value;{let i=this.value;for(let s=0;s{if(!i.isImmediateParentOf(R)){const k=this.getFieldsMap(i);this.applyChanges(k,s,u),s={},u=[],i=R.popLast()}_?s[R.lastSegment()]=pn(_):u.push(R.lastSegment())});const p=this.getFieldsMap(i);this.applyChanges(p,s,u)}delete(n){const i=this.field(n.popLast());en(i)&&i.mapValue.fields&&delete i.mapValue.fields[n.lastSegment()]}isEqual(n){return oe(this.value,n.value)}getFieldsMap(n){let i=this.value;i.mapValue.fields||(i.mapValue={fields:{}});for(let s=0;sn[u]=p);for(const u of s)delete n[u]}clone(){return new Kn(pn(this.value))}}function Qr(l){const n=[];return di(l.fields,(i,s)=>{const u=new In([i]);if(en(s)){const p=Qr(s.mapValue).fields;if(0===p.length)n.push(u);else for(const _ of p)n.push(u.child(_))}else n.push(u)}),new yi(n)}class Wr{constructor(n,i,s,u,p,_,R){this.key=n,this.documentType=i,this.version=s,this.readTime=u,this.createTime=p,this.data=_,this.documentState=R}static newInvalidDocument(n){return new Wr(n,0,En.min(),En.min(),En.min(),Kn.empty(),0)}static newFoundDocument(n,i,s,u){return new Wr(n,1,i,En.min(),s,u,0)}static newNoDocument(n,i){return new Wr(n,2,i,En.min(),En.min(),Kn.empty(),0)}static newUnknownDocument(n,i){return new Wr(n,3,i,En.min(),En.min(),Kn.empty(),2)}convertToFoundDocument(n,i){return!this.createTime.isEqual(En.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=n),this.version=n,this.documentType=1,this.data=i,this.documentState=0,this}convertToNoDocument(n){return this.version=n,this.documentType=2,this.data=Kn.empty(),this.documentState=0,this}convertToUnknownDocument(n){return this.version=n,this.documentType=3,this.data=Kn.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=En.min(),this}setReadTime(n){return this.readTime=n,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(n){return n instanceof Wr&&this.key.isEqual(n.key)&&this.version.isEqual(n.version)&&this.documentType===n.documentType&&this.documentState===n.documentState&&this.data.isEqual(n.data)}mutableCopy(){return new Wr(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}class kr{constructor(n,i){this.position=n,this.inclusive=i}}function ki(l,n,i){let s=0;for(let u=0;u":return n>0;case">=":return n>=0;default:return G()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class Oi extends Jo{constructor(n,i){super(),this.filters=n,this.op=i,this.ae=null}static create(n,i){return new Oi(n,i)}matches(n){return Wo(this)?void 0===this.filters.find(i=>!i.matches(n)):void 0!==this.filters.find(i=>i.matches(n))}getFlattenedFilters(){return null!==this.ae||(this.ae=this.filters.reduce((n,i)=>n.concat(i.getFlattenedFilters()),[])),this.ae}getFilters(){return Object.assign([],this.filters)}}function Wo(l){return"and"===l.op}function Ko(l){return function wo(l){for(const n of l.filters)if(n instanceof Oi)return!1;return!0}(l)&&Wo(l)}function ws(l){if(l instanceof Kr)return l.field.canonicalString()+l.op.toString()+vr(l.value);if(Ko(l))return l.filters.map(n=>ws(n)).join(",");{const n=l.filters.map(i=>ws(i)).join(",");return`${l.op}(${n})`}}function ho(l,n){return l instanceof Kr?(s=l,(u=n)instanceof Kr&&s.op===u.op&&s.field.isEqual(u.field)&&oe(s.value,u.value)):l instanceof Oi?function(s,u){return u instanceof Oi&&s.op===u.op&&s.filters.length===u.filters.length&&s.filters.reduce((p,_,R)=>p&&ho(_,u.filters[R]),!0)}(l,n):void G();var s,u}function Jr(l){return l instanceof Kr?`${(i=l).field.canonicalString()} ${i.op} ${vr(i.value)}`:l instanceof Oi?function(i){return i.op.toString()+" {"+i.getFilters().map(Jr).join(" ,")+"}"}(l):"Filter";var i}class Ao extends Kr{constructor(n,i,s){super(n,i,s),this.key=on.fromName(s.referenceValue)}matches(n){const i=on.comparator(n.key,this.key);return this.matchesComparison(i)}}class Js extends Kr{constructor(n,i){super(n,"in",i),this.keys=Us(0,i)}matches(n){return this.keys.some(i=>i.isEqual(n.key))}}class Ss extends Kr{constructor(n,i){super(n,"not-in",i),this.keys=Us(0,i)}matches(n){return!this.keys.some(i=>i.isEqual(n.key))}}function Us(l,n){var i;return((null===(i=n.arrayValue)||void 0===i?void 0:i.values)||[]).map(s=>on.fromName(s.referenceValue))}class Rs extends Kr{constructor(n,i){super(n,"array-contains",i)}matches(n){const i=n.data.field(this.field);return ot(i)&&P(i.arrayValue,this.value)}}class Zo extends Kr{constructor(n,i){super(n,"in",i)}matches(n){const i=n.data.field(this.field);return null!==i&&P(this.value.arrayValue,i)}}class ls extends Kr{constructor(n,i){super(n,"not-in",i)}matches(n){if(P(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const i=n.data.field(this.field);return null!==i&&!P(this.value.arrayValue,i)}}class Xo extends Kr{constructor(n,i){super(n,"array-contains-any",i)}matches(n){const i=n.data.field(this.field);return!(!ot(i)||!i.arrayValue.values)&&i.arrayValue.values.some(s=>P(this.value.arrayValue,s))}}class us{constructor(n,i=null,s=[],u=[],p=null,_=null,R=null){this.path=n,this.collectionGroup=i,this.orderBy=s,this.filters=u,this.limit=p,this.startAt=_,this.endAt=R,this.ue=null}}function Ms(l,n=null,i=[],s=[],u=null,p=null,_=null){return new us(l,n,i,s,u,p,_)}function ne(l){const n=ue(l);if(null===n.ue){let i=n.path.canonicalString();null!==n.collectionGroup&&(i+="|cg:"+n.collectionGroup),i+="|f:",i+=n.filters.map(s=>ws(s)).join(","),i+="|ob:",i+=n.orderBy.map(s=>{return(p=s).field.canonicalString()+p.dir;var p}).join(","),Xn(n.limit)||(i+="|l:",i+=n.limit),n.startAt&&(i+="|lb:",i+=n.startAt.inclusive?"b:":"a:",i+=n.startAt.position.map(s=>vr(s)).join(",")),n.endAt&&(i+="|ub:",i+=n.endAt.inclusive?"a:":"b:",i+=n.endAt.position.map(s=>vr(s)).join(",")),n.ue=i}return n.ue}function ee(l,n){if(l.limit!==n.limit||l.orderBy.length!==n.orderBy.length)return!1;for(let i=0;i0?n.explicitOrderBy[n.explicitOrderBy.length-1].dir:"asc";(function(_){let R=new Zn(In.comparator);return _.filters.forEach(k=>{k.getFlattenedFilters().forEach(q=>{q.isInequality()&&(R=R.add(q.field))})}),R})(n).forEach(p=>{i.has(p.canonicalString())||p.isKeyField()||n.ce.push(new Bi(p,s))}),i.has(In.keyField().canonicalString())||n.ce.push(new Bi(In.keyField(),s))}return n.ce}function zn(l){const n=ue(l);return n.le||(n.le=function pi(l,n){if("F"===l.limitType)return Ms(l.path,l.collectionGroup,n,l.filters,l.limit,l.startAt,l.endAt);{n=n.map(u=>new Bi(u.field,"desc"===u.dir?"asc":"desc"));const i=l.endAt?new kr(l.endAt.position,l.endAt.inclusive):null,s=l.startAt?new kr(l.startAt.position,l.startAt.inclusive):null;return Ms(l.path,l.collectionGroup,n,l.filters,l.limit,i,s)}}(n,an(l))),n.le}function Ei(l,n,i){return new B(l.path,l.collectionGroup,l.explicitOrderBy.slice(),l.filters.slice(),n,i,l.startAt,l.endAt)}function ao(l,n){return ee(zn(l),zn(n))&&l.limitType===n.limitType}function No(l){return`${ne(zn(l))}|lt:${l.limitType}`}function Ki(l){return`Query(target=${function(i){let s=i.path.canonicalString();return null!==i.collectionGroup&&(s+=" collectionGroup="+i.collectionGroup),i.filters.length>0&&(s+=`, filters: [${i.filters.map(u=>Jr(u)).join(", ")}]`),Xn(i.limit)||(s+=", limit: "+i.limit),i.orderBy.length>0&&(s+=`, orderBy: [${i.orderBy.map(u=>{return`${(_=u).field.canonicalString()} (${_.dir})`;var _}).join(", ")}]`),i.startAt&&(s+=", startAt: ",s+=i.startAt.inclusive?"b:":"a:",s+=i.startAt.position.map(u=>vr(u)).join(",")),i.endAt&&(s+=", endAt: ",s+=i.endAt.inclusive?"a:":"b:",s+=i.endAt.position.map(u=>vr(u)).join(",")),`Target(${s})`}(zn(l))}; limitType=${l.limitType})`}function Qi(l,n){return n.isFoundDocument()&&function(s,u){const p=u.key.path;return null!==s.collectionGroup?u.key.hasCollectionId(s.collectionGroup)&&s.path.isPrefixOf(p):on.isDocumentKey(s.path)?s.path.isEqual(p):s.path.isImmediateParentOf(p)}(l,n)&&function(s,u){for(const p of an(s))if(!p.field.isKeyField()&&null===u.data.field(p.field))return!1;return!0}(l,n)&&function(s,u){for(const p of s.filters)if(!p.matches(u))return!1;return!0}(l,n)&&(u=n,!((s=l).startAt&&!function(_,R,k){const q=ki(_,R,k);return _.inclusive?q<=0:q<0}(s.startAt,an(s),u)||s.endAt&&!function(_,R,k){const q=ki(_,R,k);return _.inclusive?q>=0:q>0}(s.endAt,an(s),u)));var s,u}function cs(l){return(n,i)=>{let s=!1;for(const u of an(l)){const p=ys(u,n,i);if(0!==p)return p;s=s||u.field.isKeyField()}return 0}}function ys(l,n,i){const s=l.field.isKeyField()?on.comparator(n.key,i.key):function(p,_,R){const k=_.data.field(p),q=R.data.field(p);return null!==k&&null!==q?Te(k,q):G()}(l.field,n,i);switch(l.dir){case"asc":return s;case"desc":return-1*s;default:return G()}}class Eo{constructor(n,i){this.mapKeyFn=n,this.equalsFn=i,this.inner={},this.innerSize=0}get(n){const i=this.mapKeyFn(n),s=this.inner[i];if(void 0!==s)for(const[u,p]of s)if(this.equalsFn(u,n))return p}has(n){return void 0!==this.get(n)}set(n,i){const s=this.mapKeyFn(n),u=this.inner[s];if(void 0===u)return this.inner[s]=[[n,i]],void this.innerSize++;for(let p=0;p{for(const[u,p]of s)n(u,p)})}isEmpty(){return Yr(this.inner)}size(){return this.innerSize}}const ko=new Hr(on.comparator);function jr(){return ko}const Zi=new Hr(on.comparator);function eo(...l){let n=Zi;for(const i of l)n=n.insert(i.key,i);return n}function So(l){let n=Zi;return l.forEach((i,s)=>n=n.insert(i,s.overlayedDocument)),n}function Li(){return es()}function Ba(){return es()}function es(){return new Eo(l=>l.toString(),(l,n)=>l.isEqual(n))}const Ps=new Hr(on.comparator),cl=new Zn(on.comparator);function ei(...l){let n=cl;for(const i of l)n=n.add(i);return n}const dl=new Zn(nt);function Ua(l,n){if(l.useProto3Json){if(isNaN(n))return{doubleValue:"NaN"};if(n===1/0)return{doubleValue:"Infinity"};if(n===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:dn(n)?"-0":n}}function xs(l){return{integerValue:""+l}}function hl(l,n){return function wn(l){return"number"==typeof l&&Number.isInteger(l)&&!dn(l)&&l<=Number.MAX_SAFE_INTEGER&&l>=Number.MIN_SAFE_INTEGER}(n)?xs(n):Ua(l,n)}class $a{constructor(){this._=void 0}}function Ul(l,n,i){return l instanceof Os?function(u,p){const _={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:u.seconds,nanos:u.nanoseconds}}}};return p&&je(p)&&(p=Be(p)),p&&(_.fields.__previous_value__=p),{mapValue:_}}(i,n):l instanceof $s?ds(l,n):l instanceof Ns?zl(l,n):function(u,p){const _=jl(u,p),R=Ru(_)+Ru(u.Pe);return Fe(_)&&Fe(u.Pe)?xs(R):Ua(u.serializer,R)}(l,n)}function $l(l,n,i){return l instanceof $s?ds(l,n):l instanceof Ns?zl(l,n):i}function jl(l,n){return l instanceof hs?Fe(s=n)||(p=s)&&"doubleValue"in p?n:{integerValue:0}:null;var s,p}class Os extends $a{}class $s extends $a{constructor(n){super(),this.elements=n}}function ds(l,n){const i=Hl(n);for(const s of l.elements)i.some(u=>oe(u,s))||i.push(s);return{arrayValue:{values:i}}}class Ns extends $a{constructor(n){super(),this.elements=n}}function zl(l,n){let i=Hl(n);for(const s of l.elements)i=i.filter(u=>!oe(u,s));return{arrayValue:{values:i}}}class hs extends $a{constructor(n,i){super(),this.serializer=n,this.Pe=i}}function Ru(l){return fe(l.integerValue||l.doubleValue)}function Hl(l){return ot(l)&&l.arrayValue.values?l.arrayValue.values.slice():[]}class js{constructor(n,i){this.version=n,this.transformResults=i}}class Yi{constructor(n,i){this.updateTime=n,this.exists=i}static none(){return new Yi}static exists(n){return new Yi(void 0,n)}static updateTime(n){return new Yi(n)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(n){return this.exists===n.exists&&(this.updateTime?!!n.updateTime&&this.updateTime.isEqual(n.updateTime):!n.updateTime)}}function ya(l,n){return void 0!==l.updateTime?n.isFoundDocument()&&n.version.isEqual(l.updateTime):void 0===l.exists||l.exists===n.isFoundDocument()}class ja{}function Ea(l,n){if(!l.hasLocalMutations||n&&0===n.fields.length)return null;if(null===n)return l.isNoDocument()?new j(l.key,Yi.none()):new ea(l.key,l.data,Yi.none());{const i=l.data,s=Kn.empty();let u=new Zn(In.comparator);for(let p of n.fields)if(!u.has(p)){let _=i.field(p);null===_&&p.length>1&&(p=p.popLast(),_=i.field(p)),null===_?s.delete(p):s.set(p,_),u=u.add(p)}return new Co(l.key,s,new yi(u.toArray()),Yi.none())}}function za(l,n,i){l instanceof ea?function(u,p,_){const R=u.value.clone(),k=Ca(u.fieldTransforms,p,_.transformResults);R.setAll(k),p.convertToFoundDocument(_.version,R).setHasCommittedMutations()}(l,n,i):l instanceof Co?function(u,p,_){if(!ya(u.precondition,p))return void p.convertToUnknownDocument(_.version);const R=Ca(u.fieldTransforms,p,_.transformResults),k=p.data;k.setAll(Gl(u)),k.setAll(R),p.convertToFoundDocument(_.version,k).setHasCommittedMutations()}(l,n,i):n.convertToNoDocument(i.version).setHasCommittedMutations()}function ts(l,n,i,s){return l instanceof ea?function(p,_,R,k){if(!ya(p.precondition,_))return R;const q=p.value.clone(),Ce=T(p.fieldTransforms,k,_);return q.setAll(Ce),_.convertToFoundDocument(_.version,q).setHasLocalMutations(),null}(l,n,i,s):l instanceof Co?function(p,_,R,k){if(!ya(p.precondition,_))return R;const q=T(p.fieldTransforms,k,_),Ce=_.data;return Ce.setAll(Gl(p)),Ce.setAll(q),_.convertToFoundDocument(_.version,Ce).setHasLocalMutations(),null===R?null:R.unionWith(p.fieldMask.fields).unionWith(p.fieldTransforms.map(He=>He.field))}(l,n,i,s):(R=i,ya(l.precondition,_=n)?(_.convertToNoDocument(_.version).setHasLocalMutations(),null):R);var _,R}function Ia(l,n){let i=null;for(const s of l.fieldTransforms){const u=n.data.field(s.field),p=jl(s.transform,u||null);null!=p&&(null===i&&(i=Kn.empty()),i.set(s.field,p))}return i||null}function Aa(l,n){return l.type===n.type&&!!l.key.isEqual(n.key)&&!!l.precondition.isEqual(n.precondition)&&(u=n.fieldTransforms,!!(void 0===(s=l.fieldTransforms)&&void 0===u||s&&u&&Lt(s,u,(p,_)=>function Qo(l,n){return l.field.isEqual(n.field)&&(u=n.transform,(s=l.transform)instanceof $s&&u instanceof $s||s instanceof Ns&&u instanceof Ns?Lt(s.elements,u.elements,oe):s instanceof hs&&u instanceof hs?oe(s.Pe,u.Pe):s instanceof Os&&u instanceof Os);var s,u}(p,_))))&&(0===l.type?l.value.isEqual(n.value):1!==l.type||l.data.isEqual(n.data)&&l.fieldMask.isEqual(n.fieldMask));var s,u}class ea extends ja{constructor(n,i,s,u=[]){super(),this.key=n,this.value=i,this.precondition=s,this.fieldTransforms=u,this.type=0}getFieldMask(){return null}}class Co extends ja{constructor(n,i,s,u,p=[]){super(),this.key=n,this.data=i,this.fieldMask=s,this.precondition=u,this.fieldTransforms=p,this.type=1}getFieldMask(){return this.fieldMask}}function Gl(l){const n=new Map;return l.fieldMask.fields.forEach(i=>{if(!i.isEmpty()){const s=l.data.field(i);n.set(i,s)}}),n}function Ca(l,n,i){const s=new Map;X(l.length===i.length);for(let u=0;u{const p=n.get(u.key),_=p.overlayedDocument;let R=this.applyToLocalView(_,p.mutatedFields);R=i.has(u.key)?null:R;const k=Ea(_,R);null!==k&&s.set(u.key,k),_.isValidDocument()||_.convertToNoDocument(En.min())}),s}keys(){return this.mutations.reduce((n,i)=>n.add(i.key),ei())}isEqual(n){return this.batchId===n.batchId&&Lt(this.mutations,n.mutations,(i,s)=>Aa(i,s))&&Lt(this.baseMutations,n.baseMutations,(i,s)=>Aa(i,s))}}class De{constructor(n,i,s,u){this.batch=n,this.commitVersion=i,this.mutationResults=s,this.docVersions=u}static from(n,i,s){X(n.mutations.length===s.length);let u=function(){return Ps}();const p=n.mutations;for(let _=0;_=8)throw new Ni(`Invalid padding: ${i}`);if(s<0)throw new Ni(`Invalid hash count: ${s}`);if(n.length>0&&0===this.hashCount)throw new Ni(`Invalid hash count: ${s}`);if(0===n.length&&0!==i)throw new Ni(`Invalid padding when bitmap length is 0: ${i}`);this.Ie=8*n.length-i,this.Te=it.fromNumber(this.Ie)}Ee(n,i,s){let u=n.add(i.multiply(it.fromNumber(s)));return 1===u.compare(to)&&(u=new it([u.getBits(0),u.getBits(1)],0)),u.modulo(this.Te).toNumber()}de(n){return!!(this.bitmap[Math.floor(n/8)]&1<_.insert(R)),_}insert(n){if(0===this.Ie)return;const i=wi(n),[s,u]=Bn(i);for(let p=0;p0&&(this.we=!0,this.pe=n)}Ce(){let n=ei(),i=ei(),s=ei();return this.ge.forEach((u,p)=>{switch(p){case 0:n=n.add(u);break;case 2:i=i.add(u);break;case 1:s=s.add(u);break;default:G()}}),new Vi(this.pe,this.ye,n,i,s)}ve(){this.we=!1,this.ge=ta()}Fe(n,i){this.we=!0,this.ge=this.ge.insert(n,i)}Me(n){this.we=!0,this.ge=this.ge.remove(n)}xe(){this.fe+=1}Oe(){this.fe-=1,X(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class zs{constructor(n){this.Le=n,this.Be=new Map,this.ke=jr(),this.qe=qr(),this.Qe=new Hr(nt)}Ke(n){for(const i of n.Re)n.Ve&&n.Ve.isFoundDocument()?this.$e(i,n.Ve):this.Ue(i,n.key,n.Ve);for(const i of n.removedTargetIds)this.Ue(i,n.key,n.Ve)}We(n){this.forEachTarget(n,i=>{const s=this.Ge(i);switch(n.state){case 0:this.ze(i)&&s.De(n.resumeToken);break;case 1:s.Oe(),s.Se||s.ve(),s.De(n.resumeToken);break;case 2:s.Oe(),s.Se||this.removeTarget(i);break;case 3:this.ze(i)&&(s.Ne(),s.De(n.resumeToken));break;case 4:this.ze(i)&&(this.je(i),s.De(n.resumeToken));break;default:G()}})}forEachTarget(n,i){n.targetIds.length>0?n.targetIds.forEach(i):this.Be.forEach((s,u)=>{this.ze(u)&&i(u)})}He(n){const i=n.targetId,s=n.me.count,u=this.Je(i);if(u){const p=u.target;if(qe(p))if(0===s){const _=new on(p.path);this.Ue(i,_,Wr.newNoDocument(_,En.min()))}else X(1===s);else{const _=this.Ye(i);if(_!==s){const R=this.Ze(n),k=R?this.Xe(R,n,_):1;0!==k&&(this.je(i),this.Qe=this.Qe.insert(i,2===k?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch"))}}}}Ze(n){const i=n.me.unchangedNames;if(!i||!i.bits)return null;const{bits:{bitmap:s="",padding:u=0},hashCount:p=0}=i;let _,R;try{_=K(s).toUint8Array()}catch(k){if(k instanceof vo)return vt("Decoding the base64 bloom filter in existence filter failed ("+k.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw k}try{R=new ir(_,u,p)}catch(k){return vt(k instanceof Ni?"BloomFilter error: ":"Applying bloom filter failed: ",k),null}return 0===R.Ie?null:R}Xe(n,i,s){return i.me.count===s-this.nt(n,i.targetId)?0:2}nt(n,i){const s=this.Le.getRemoteKeysForTarget(i);let u=0;return s.forEach(p=>{const _=this.Le.tt(),R=`projects/${_.projectId}/databases/${_.database}/documents/${p.path.canonicalString()}`;n.mightContain(R)||(this.Ue(i,p,null),u++)}),u}rt(n){const i=new Map;this.Be.forEach((p,_)=>{const R=this.Je(_);if(R){if(p.current&&qe(R.target)){const k=new on(R.target.path);null!==this.ke.get(k)||this.it(_,k)||this.Ue(_,k,Wr.newNoDocument(k,n))}p.be&&(i.set(_,p.Ce()),p.ve())}});let s=ei();this.qe.forEach((p,_)=>{let R=!0;_.forEachWhile(k=>{const q=this.Je(k);return!q||"TargetPurposeLimboResolution"===q.purpose||(R=!1,!1)}),R&&(s=s.add(p))}),this.ke.forEach((p,_)=>_.setReadTime(n));const u=new lo(n,i,this.Qe,this.ke,s);return this.ke=jr(),this.qe=qr(),this.Qe=new Hr(nt),u}$e(n,i){if(!this.ze(n))return;const s=this.it(n,i.key)?2:0;this.Ge(n).Fe(i.key,s),this.ke=this.ke.insert(i.key,i),this.qe=this.qe.insert(i.key,this.st(i.key).add(n))}Ue(n,i,s){if(!this.ze(n))return;const u=this.Ge(n);this.it(n,i)?u.Fe(i,1):u.Me(i),this.qe=this.qe.insert(i,this.st(i).delete(n)),s&&(this.ke=this.ke.insert(i,s))}removeTarget(n){this.Be.delete(n)}Ye(n){const i=this.Ge(n).Ce();return this.Le.getRemoteKeysForTarget(n).size+i.addedDocuments.size-i.removedDocuments.size}xe(n){this.Ge(n).xe()}Ge(n){let i=this.Be.get(n);return i||(i=new io,this.Be.set(n,i)),i}st(n){let i=this.qe.get(n);return i||(i=new Zn(nt),this.qe=this.qe.insert(n,i)),i}ze(n){const i=null!==this.Je(n);return i||st("WatchChangeAggregator","Detected inactive target",n),i}Je(n){const i=this.Be.get(n);return i&&i.Se?null:this.Le.ot(n)}je(n){this.Be.set(n,new io),this.Le.getRemoteKeysForTarget(n).forEach(i=>{this.Ue(n,i,null)})}it(n,i){return this.Le.getRemoteKeysForTarget(n).has(i)}}function qr(){return new Hr(on.comparator)}function ta(){return new Hr(on.comparator)}const _c={asc:"ASCENDING",desc:"DESCENDING"},fl={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},no={and:"AND",or:"OR"};class Fo{constructor(n,i){this.databaseId=n,this.useProto3Json=i}}function ks(l,n){return l.useProto3Json||Xn(n)?n:{value:n}}function rs(l,n){return l.useProto3Json?`${new Date(1e3*n.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+n.nanoseconds).slice(-9)}Z`:{seconds:""+n.seconds,nanos:n.nanoseconds}}function na(l,n){return l.useProto3Json?n.toBase64():n.toUint8Array()}function yc(l,n){return rs(l,n.toTimestamp())}function Ui(l){return X(!!l),En.fromTimestamp(function(i){const s=ge(i);return new yn(s.seconds,s.nanos)}(l))}function ra(l,n){return Es(l,n).canonicalString()}function Es(l,n){const i=(u=l,new Vn(["projects",u.projectId,"databases",u.database])).child("documents");var u;return void 0===n?i:i.child(n)}function ti(l){const n=Vn.fromString(l);return X(E(n)),n}function Ta(l,n){return ra(l.databaseId,n.path)}function ps(l,n){const i=ti(n);if(i.get(1)!==l.databaseId.projectId)throw new Ve(Ee.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+i.get(1)+" vs "+l.databaseId.projectId);if(i.get(3)!==l.databaseId.database)throw new Ve(Ee.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+i.get(3)+" vs "+l.databaseId.database);return new on(oo(i))}function is(l,n){return ra(l.databaseId,n)}function Da(l){return new Vn(["projects",l.databaseId.projectId,"databases",l.databaseId.database]).canonicalString()}function oo(l){return X(l.length>4&&"documents"===l.get(4)),l.popFirst(5)}function Mu(l,n,i){return{name:Ta(l,n),fields:i.value.mapValue.fields}}function Kl(l,n){return{documents:[is(l,n.path)]}}function gl(l,n){const i={structuredQuery:{}},s=n.path;let u;null!==n.collectionGroup?(u=s,i.structuredQuery.from=[{collectionId:n.collectionGroup,allDescendants:!0}]):(u=s.popLast(),i.structuredQuery.from=[{collectionId:s.lastSegment()}]),i.parent=is(l,u);const p=function(q){if(0!==q.length)return Kh(Oi.create(q,"and"))}(n.filters);p&&(i.structuredQuery.where=p);const _=function(q){if(0!==q.length)return q.map(Ce=>{return{field:Sa((yt=Ce).field),direction:Ha(yt.dir)};var yt})}(n.orderBy);_&&(i.structuredQuery.orderBy=_);const R=ks(l,n.limit);return null!==R&&(i.structuredQuery.limit=R),n.startAt&&(i.structuredQuery.startAt={before:(q=n.startAt).inclusive,values:q.position}),n.endAt&&(i.structuredQuery.endAt=function(q){return{before:!q.inclusive,values:q.position}}(n.endAt)),{_t:i,parent:u};var q}function ba(l){let n=function pl(l){const n=ti(l);return 4===n.length?Vn.emptyPath():oo(n)}(l.parent);const i=l.structuredQuery,s=i.from?i.from.length:0;let u=null;if(s>0){X(1===s);const Ce=i.from[0];Ce.allDescendants?u=Ce.collectionId:n=n.child(Ce.collectionId)}let p=[];i.where&&(p=function(He){const yt=wa(He);return yt instanceof Oi&&Ko(yt)?yt.getFilters():[yt]}(i.where));let _=[];i.orderBy&&(_=i.orderBy.map(yt=>{return new Bi(Ga((Rn=yt).field),function(Ln){switch(Ln){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(Rn.direction));var Rn}));let R=null;i.limit&&(R=function(He){let yt;return yt="object"==typeof He?He.value:He,Xn(yt)?null:yt}(i.limit));let k=null;var He;i.startAt&&(k=new kr((He=i.startAt).values||[],!!He.before));let q=null;return i.endAt&&(q=function(He){return new kr(He.values||[],!He.before)}(i.endAt)),function x(l,n,i,s,u,p,_,R){return new B(l,n,i,s,u,p,_,R)}(n,u,_,p,R,"F",k,q)}function wa(l){return void 0!==l.unaryFilter?function(i){switch(i.unaryFilter.op){case"IS_NAN":const s=Ga(i.unaryFilter.field);return Kr.create(s,"==",{doubleValue:NaN});case"IS_NULL":const u=Ga(i.unaryFilter.field);return Kr.create(u,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const p=Ga(i.unaryFilter.field);return Kr.create(p,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const _=Ga(i.unaryFilter.field);return Kr.create(_,"!=",{nullValue:"NULL_VALUE"});default:return G()}}(l):void 0!==l.fieldFilter?Kr.create(Ga((i=l).fieldFilter.field),function(u){switch(u){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return G()}}(i.fieldFilter.op),i.fieldFilter.value):void 0!==l.compositeFilter?function(i){return Oi.create(i.compositeFilter.filters.map(s=>wa(s)),function(u){switch(u){case"AND":return"and";case"OR":return"or";default:return G()}}(i.compositeFilter.op))}(l):G();var i}function Ha(l){return _c[l]}function tg(l){return fl[l]}function Dd(l){return no[l]}function Sa(l){return{fieldPath:l.canonicalString()}}function Ga(l){return In.fromServerFormat(l.fieldPath)}function Kh(l){return l instanceof Kr?function(i){if("=="===i.op){if(wt(i.value))return{unaryFilter:{field:Sa(i.field),op:"IS_NAN"}};if(Ot(i.value))return{unaryFilter:{field:Sa(i.field),op:"IS_NULL"}}}else if("!="===i.op){if(wt(i.value))return{unaryFilter:{field:Sa(i.field),op:"IS_NOT_NAN"}};if(Ot(i.value))return{unaryFilter:{field:Sa(i.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Sa(i.field),op:tg(i.op),value:i.value}}}(l):l instanceof Oi?function(i){const s=i.getFilters().map(u=>Kh(u));return 1===s.length?s[0]:{compositeFilter:{op:Dd(i.op),filters:s}}}(l):G()}function bd(l){const n=[];return l.fields.forEach(i=>n.push(i.canonicalString())),{fieldPaths:n}}function E(l){return l.length>=4&&"projects"===l.get(0)&&"databases"===l.get(2)}class b{constructor(n,i,s,u,p=En.min(),_=En.min(),R=ui.EMPTY_BYTE_STRING,k=null){this.target=n,this.targetId=i,this.purpose=s,this.sequenceNumber=u,this.snapshotVersion=p,this.lastLimboFreeSnapshotVersion=_,this.resumeToken=R,this.expectedCount=k}withSequenceNumber(n){return new b(this.target,this.targetId,this.purpose,n,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(n,i){return new b(this.target,this.targetId,this.purpose,this.sequenceNumber,i,this.lastLimboFreeSnapshotVersion,n,null)}withExpectedCount(n){return new b(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,n)}withLastLimboFreeSnapshotVersion(n){return new b(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,n,this.resumeToken,this.expectedCount)}}class N{constructor(n){this.ct=n}}function Xr(l){const n=ba({parent:l.parent,structuredQuery:l.structuredQuery});return"LAST"===l.limitType?Ei(n,n.limit,"L"):n}class Ra{constructor(){}Pt(n,i){this.It(n,i),i.Tt()}It(n,i){if("nullValue"in n)this.Et(i,5);else if("booleanValue"in n)this.Et(i,10),i.dt(n.booleanValue?1:0);else if("integerValue"in n)this.Et(i,15),i.dt(fe(n.integerValue));else if("doubleValue"in n){const s=fe(n.doubleValue);isNaN(s)?this.Et(i,13):(this.Et(i,15),dn(s)?i.dt(0):i.dt(s))}else if("timestampValue"in n){let s=n.timestampValue;this.Et(i,20),"string"==typeof s&&(s=ge(s)),i.At(`${s.seconds||""}`),i.dt(s.nanos||0)}else if("stringValue"in n)this.Rt(n.stringValue,i),this.Vt(i);else if("bytesValue"in n)this.Et(i,30),i.ft(K(n.bytesValue)),this.Vt(i);else if("referenceValue"in n)this.gt(n.referenceValue,i);else if("geoPointValue"in n){const s=n.geoPointValue;this.Et(i,45),i.dt(s.latitude||0),i.dt(s.longitude||0)}else"mapValue"in n?vn(n)?this.Et(i,Number.MAX_SAFE_INTEGER):(this.yt(n.mapValue,i),this.Vt(i)):"arrayValue"in n?(this.wt(n.arrayValue,i),this.Vt(i)):G()}Rt(n,i){this.Et(i,25),this.St(n,i)}St(n,i){i.At(n)}yt(n,i){const s=n.fields||{};this.Et(i,55);for(const u of Object.keys(s))this.Rt(u,i),this.It(s[u],i)}wt(n,i){const s=n.values||[];this.Et(i,50);for(const u of s)this.It(u,i)}gt(n,i){this.Et(i,37),on.fromName(n).path.forEach(s=>{this.Et(i,60),this.St(s,i)})}Et(n,i){n.dt(i)}Vt(n){n.dt(2)}}Ra.bt=new Ra;class Ls{constructor(){this._n=new Tc}addToCollectionParentIndex(n,i){return this._n.add(i),ve.resolve()}getCollectionParents(n,i){return ve.resolve(this._n.getEntries(i))}addFieldIndex(n,i){return ve.resolve()}deleteFieldIndex(n,i){return ve.resolve()}deleteAllFieldIndexes(n){return ve.resolve()}createTargetIndexes(n,i){return ve.resolve()}getDocumentsMatchingTarget(n,i){return ve.resolve(null)}getIndexType(n,i){return ve.resolve(0)}getFieldIndexes(n,i){return ve.resolve([])}getNextCollectionGroupToUpdate(n){return ve.resolve(null)}getMinOffset(n,i){return ve.resolve(Br.min())}getMinOffsetFromCollectionGroup(n,i){return ve.resolve(Br.min())}updateCollectionGroup(n,i,s){return ve.resolve()}updateIndexEntries(n,i){return ve.resolve()}}class Tc{constructor(){this.index={}}add(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i]||new Zn(Vn.comparator),p=!u.has(s);return this.index[i]=u.add(s),p}has(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i];return u&&u.has(s)}getEntries(n){return(this.index[n]||new Zn(Vn.comparator)).toArray()}}new Uint8Array(0);class Dr{constructor(n,i,s){this.cacheSizeCollectionThreshold=n,this.percentileToCollect=i,this.maximumSequenceNumbersToCollect=s}static withCacheSize(n){return new Dr(n,Dr.DEFAULT_COLLECTION_PERCENTILE,Dr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}Dr.DEFAULT_COLLECTION_PERCENTILE=10,Dr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Dr.DEFAULT=new Dr(41943040,Dr.DEFAULT_COLLECTION_PERCENTILE,Dr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Dr.DISABLED=new Dr(-1,0,0);class _l{constructor(n){this.On=n}next(){return this.On+=2,this.On}static Nn(){return new _l(0)}static Ln(){return new _l(-1)}}class ua{constructor(){this.changes=new Eo(n=>n.toString(),(n,i)=>n.isEqual(i)),this.changesApplied=!1}addEntry(n){this.assertNotApplied(),this.changes.set(n.key,n)}removeEntry(n,i){this.assertNotApplied(),this.changes.set(n,Wr.newInvalidDocument(n).setReadTime(i))}getEntry(n,i){this.assertNotApplied();const s=this.changes.get(i);return void 0!==s?ve.resolve(s):this.getFromCache(n,i)}getEntries(n,i){return this.getAllFromCache(n,i)}apply(n){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(n)}assertNotApplied(){}}class Vs{constructor(n,i){this.overlayedDocument=n,this.mutatedFields=i}}class ha{constructor(n,i,s,u){this.remoteDocumentCache=n,this.mutationQueue=i,this.documentOverlayCache=s,this.indexManager=u}getDocument(n,i){let s=null;return this.documentOverlayCache.getOverlay(n,i).next(u=>(s=u,this.remoteDocumentCache.getEntry(n,i))).next(u=>(null!==s&&ts(s.mutation,u,yi.empty(),yn.now()),u))}getDocuments(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.getLocalViewOfDocuments(n,s,ei()).next(()=>s))}getLocalViewOfDocuments(n,i,s=ei()){const u=Li();return this.populateOverlays(n,u,i).next(()=>this.computeViews(n,i,u,s).next(p=>{let _=eo();return p.forEach((R,k)=>{_=_.insert(R,k.overlayedDocument)}),_}))}getOverlayedDocuments(n,i){const s=Li();return this.populateOverlays(n,s,i).next(()=>this.computeViews(n,i,s,ei()))}populateOverlays(n,i,s){const u=[];return s.forEach(p=>{i.has(p)||u.push(p)}),this.documentOverlayCache.getOverlays(n,u).next(p=>{p.forEach((_,R)=>{i.set(_,R)})})}computeViews(n,i,s,u){let p=jr();const _=es(),R=es();return i.forEach((k,q)=>{const Ce=s.get(q.key);u.has(q.key)&&(void 0===Ce||Ce.mutation instanceof Co)?p=p.insert(q.key,q):void 0!==Ce?(_.set(q.key,Ce.mutation.getFieldMask()),ts(Ce.mutation,q,Ce.mutation.getFieldMask(),yn.now())):_.set(q.key,yi.empty())}),this.recalculateAndSaveOverlays(n,p).next(k=>(k.forEach((q,Ce)=>_.set(q,Ce)),i.forEach((q,Ce)=>{var He;return R.set(q,new Vs(Ce,null!==(He=_.get(q))&&void 0!==He?He:null))}),R))}recalculateAndSaveOverlays(n,i){const s=es();let u=new Hr((_,R)=>_-R),p=ei();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(n,i).next(_=>{for(const R of _)R.keys().forEach(k=>{const q=i.get(k);if(null===q)return;let Ce=s.get(k)||yi.empty();Ce=R.applyToLocalView(q,Ce),s.set(k,Ce);const He=(u.get(R.batchId)||ei()).add(k);u=u.insert(R.batchId,He)})}).next(()=>{const _=[],R=u.getReverseIterator();for(;R.hasNext();){const k=R.getNext(),q=k.key,Ce=k.value,He=Ba();Ce.forEach(yt=>{if(!p.has(yt)){const Yt=Ea(i.get(yt),s.get(yt));null!==Yt&&He.set(yt,Yt),p=p.add(yt)}}),_.push(this.documentOverlayCache.saveOverlays(n,q,He))}return ve.waitFor(_)}).next(()=>s)}recalculateAndSaveOverlaysForDocumentKeys(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.recalculateAndSaveOverlays(n,s))}getDocumentsMatchingQuery(n,i,s,u){return on.isDocumentKey((_=i).path)&&null===_.collectionGroup&&0===_.filters.length?this.getDocumentsMatchingDocumentQuery(n,i.path):function Pe(l){return null!==l.collectionGroup}(i)?this.getDocumentsMatchingCollectionGroupQuery(n,i,s,u):this.getDocumentsMatchingCollectionQuery(n,i,s,u);var _}getNextDocuments(n,i,s,u){return this.remoteDocumentCache.getAllFromCollectionGroup(n,i,s,u).next(p=>{const _=u-p.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(n,i,s.largestBatchId,u-p.size):ve.resolve(Li());let R=-1,k=p;return _.next(q=>ve.forEach(q,(Ce,He)=>(R{k=k.insert(Ce,yt)}))).next(()=>this.populateOverlays(n,q,p)).next(()=>this.computeViews(n,k,q,ei())).next(Ce=>({batchId:R,changes:So(Ce)})))})}getDocumentsMatchingDocumentQuery(n,i){return this.getDocument(n,new on(i)).next(s=>{let u=eo();return s.isFoundDocument()&&(u=u.insert(s.key,s)),u})}getDocumentsMatchingCollectionGroupQuery(n,i,s,u){const p=i.collectionGroup;let _=eo();return this.indexManager.getCollectionParents(n,p).next(R=>ve.forEach(R,k=>{const q=(He=i,yt=k.child(p),new B(yt,null,He.explicitOrderBy.slice(),He.filters.slice(),He.limit,He.limitType,He.startAt,He.endAt));var He,yt;return this.getDocumentsMatchingCollectionQuery(n,q,s,u).next(Ce=>{Ce.forEach((He,yt)=>{_=_.insert(He,yt)})})}).next(()=>_))}getDocumentsMatchingCollectionQuery(n,i,s,u){let p;return this.documentOverlayCache.getOverlaysForCollection(n,i.path,s.largestBatchId).next(_=>(p=_,this.remoteDocumentCache.getDocumentsMatchingQuery(n,i,s,p,u))).next(_=>{p.forEach((k,q)=>{const Ce=q.getKey();null===_.get(Ce)&&(_=_.insert(Ce,Wr.newInvalidDocument(Ce)))});let R=eo();return _.forEach((k,q)=>{const Ce=p.get(k);void 0!==Ce&&ts(Ce.mutation,q,yi.empty(),yn.now()),Qi(i,q)&&(R=R.insert(k,q))}),R})}}class og{constructor(n){this.serializer=n,this.cr=new Map,this.lr=new Map}getBundleMetadata(n,i){return ve.resolve(this.cr.get(i))}saveBundleMetadata(n,i){return this.cr.set(i.id,{id:(u=i).id,version:u.version,createTime:Ui(u.createTime)}),ve.resolve();var u}getNamedQuery(n,i){return ve.resolve(this.lr.get(i))}saveNamedQuery(n,i){return this.lr.set(i.name,{name:(u=i).name,query:Xr(u.bundledQuery),readTime:Ui(u.readTime)}),ve.resolve();var u}}class Rc{constructor(){this.overlays=new Hr(on.comparator),this.hr=new Map}getOverlay(n,i){return ve.resolve(this.overlays.get(i))}getOverlays(n,i){const s=Li();return ve.forEach(i,u=>this.getOverlay(n,u).next(p=>{null!==p&&s.set(u,p)})).next(()=>s)}saveOverlays(n,i,s){return s.forEach((u,p)=>{this.ht(n,i,p)}),ve.resolve()}removeOverlaysForBatchId(n,i,s){const u=this.hr.get(s);return void 0!==u&&(u.forEach(p=>this.overlays=this.overlays.remove(p)),this.hr.delete(s)),ve.resolve()}getOverlaysForCollection(n,i,s){const u=Li(),p=i.length+1,_=new on(i.child("")),R=this.overlays.getIteratorFrom(_);for(;R.hasNext();){const k=R.getNext().value,q=k.getKey();if(!i.isPrefixOf(q.path))break;q.path.length===p&&k.largestBatchId>s&&u.set(k.getKey(),k)}return ve.resolve(u)}getOverlaysForCollectionGroup(n,i,s,u){let p=new Hr((q,Ce)=>q-Ce);const _=this.overlays.getIterator();for(;_.hasNext();){const q=_.getNext().value;if(q.getKey().getCollectionGroup()===i&&q.largestBatchId>s){let Ce=p.get(q.largestBatchId);null===Ce&&(Ce=Li(),p=p.insert(q.largestBatchId,Ce)),Ce.set(q.getKey(),q)}}const R=Li(),k=p.getIterator();for(;k.hasNext()&&(k.getNext().value.forEach((q,Ce)=>R.set(q,Ce)),!(R.size()>=u)););return ve.resolve(R)}ht(n,i,s){const u=this.overlays.get(s.key);if(null!==u){const _=this.hr.get(u.largestBatchId).delete(s.key);this.hr.set(u.largestBatchId,_)}this.overlays=this.overlays.insert(s.key,new Qe(i,s));let p=this.hr.get(i);void 0===p&&(p=ei(),this.hr.set(i,p)),this.hr.set(i,p.add(s.key))}}class xd{constructor(){this.Pr=new Zn(Vo.Ir),this.Tr=new Zn(Vo.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(n,i){const s=new Vo(n,i);this.Pr=this.Pr.add(s),this.Tr=this.Tr.add(s)}dr(n,i){n.forEach(s=>this.addReference(s,i))}removeReference(n,i){this.Ar(new Vo(n,i))}Rr(n,i){n.forEach(s=>this.removeReference(s,i))}Vr(n){const i=new on(new Vn([])),s=new Vo(i,n),u=new Vo(i,n+1),p=[];return this.Tr.forEachInRange([s,u],_=>{this.Ar(_),p.push(_.key)}),p}mr(){this.Pr.forEach(n=>this.Ar(n))}Ar(n){this.Pr=this.Pr.delete(n),this.Tr=this.Tr.delete(n)}gr(n){const i=new on(new Vn([])),s=new Vo(i,n),u=new Vo(i,n+1);let p=ei();return this.Tr.forEachInRange([s,u],_=>{p=p.add(_.key)}),p}containsKey(n){const i=new Vo(n,0),s=this.Pr.firstAfterOrEqual(i);return null!==s&&n.isEqual(s.key)}}class Vo{constructor(n,i){this.key=n,this.pr=i}static Ir(n,i){return on.comparator(n.key,i.key)||nt(n.pr,i.pr)}static Er(n,i){return nt(n.pr,i.pr)||on.comparator(n.key,i.key)}}class Od{constructor(n,i){this.indexManager=n,this.referenceDelegate=i,this.mutationQueue=[],this.yr=1,this.wr=new Zn(Vo.Ir)}checkEmpty(n){return ve.resolve(0===this.mutationQueue.length)}addMutationBatch(n,i,s,u){const p=this.yr;this.yr++;const _=new F(p,i,s,u);this.mutationQueue.push(_);for(const R of u)this.wr=this.wr.add(new Vo(R.key,p)),this.indexManager.addToCollectionParentIndex(n,R.key.path.popLast());return ve.resolve(_)}lookupMutationBatch(n,i){return ve.resolve(this.Sr(i))}getNextMutationBatchAfterBatchId(n,i){const u=this.br(i+1),p=u<0?0:u;return ve.resolve(this.mutationQueue.length>p?this.mutationQueue[p]:null)}getHighestUnacknowledgedBatchId(){return ve.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(n){return ve.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(n,i){const s=new Vo(i,0),u=new Vo(i,Number.POSITIVE_INFINITY),p=[];return this.wr.forEachInRange([s,u],_=>{const R=this.Sr(_.pr);p.push(R)}),ve.resolve(p)}getAllMutationBatchesAffectingDocumentKeys(n,i){let s=new Zn(nt);return i.forEach(u=>{const p=new Vo(u,0),_=new Vo(u,Number.POSITIVE_INFINITY);this.wr.forEachInRange([p,_],R=>{s=s.add(R.pr)})}),ve.resolve(this.Dr(s))}getAllMutationBatchesAffectingQuery(n,i){const s=i.path,u=s.length+1;let p=s;on.isDocumentKey(p)||(p=p.child(""));const _=new Vo(new on(p),0);let R=new Zn(nt);return this.wr.forEachWhile(k=>{const q=k.key.path;return!!s.isPrefixOf(q)&&(q.length===u&&(R=R.add(k.pr)),!0)},_),ve.resolve(this.Dr(R))}Dr(n){const i=[];return n.forEach(s=>{const u=this.Sr(s);null!==u&&i.push(u)}),i}removeMutationBatch(n,i){X(0===this.Cr(i.batchId,"removed")),this.mutationQueue.shift();let s=this.wr;return ve.forEach(i.mutations,u=>{const p=new Vo(u.key,i.batchId);return s=s.delete(p),this.referenceDelegate.markPotentiallyOrphaned(n,u.key)}).next(()=>{this.wr=s})}Mn(n){}containsKey(n,i){const s=new Vo(i,0),u=this.wr.firstAfterOrEqual(s);return ve.resolve(i.isEqual(u&&u.key))}performConsistencyCheck(n){return ve.resolve()}Cr(n,i){return this.br(n)}br(n){return 0===this.mutationQueue.length?0:n-this.mutationQueue[0].batchId}Sr(n){const i=this.br(n);return i<0||i>=this.mutationQueue.length?null:this.mutationQueue[i]}}class Fu{constructor(n){this.vr=n,this.docs=new Hr(on.comparator),this.size=0}setIndexManager(n){this.indexManager=n}addEntry(n,i){const s=i.key,u=this.docs.get(s),p=u?u.size:0,_=this.vr(i);return this.docs=this.docs.insert(s,{document:i.mutableCopy(),size:_}),this.size+=_-p,this.indexManager.addToCollectionParentIndex(n,s.path.popLast())}removeEntry(n){const i=this.docs.get(n);i&&(this.docs=this.docs.remove(n),this.size-=i.size)}getEntry(n,i){const s=this.docs.get(i);return ve.resolve(s?s.document.mutableCopy():Wr.newInvalidDocument(i))}getEntries(n,i){let s=jr();return i.forEach(u=>{const p=this.docs.get(u);s=s.insert(u,p?p.document.mutableCopy():Wr.newInvalidDocument(u))}),ve.resolve(s)}getDocumentsMatchingQuery(n,i,s,u){let p=jr();const _=i.path,R=new on(_.child("")),k=this.docs.getIteratorFrom(R);for(;k.hasNext();){const{key:q,value:{document:Ce}}=k.getNext();if(!_.isPrefixOf(q.path))break;q.path.length>_.length+1||ar(new Br((l=Ce).readTime,l.key,-1),s)<=0||(u.has(Ce.key)||Qi(i,Ce))&&(p=p.insert(Ce.key,Ce.mutableCopy()))}var l;return ve.resolve(p)}getAllFromCollectionGroup(n,i,s,u){G()}Fr(n,i){return ve.forEach(this.docs,s=>i(s))}newChangeBuffer(n){return new Nd(this)}getSize(n){return ve.resolve(this.size)}}class Nd extends ua{constructor(n){super(),this.ar=n}applyChanges(n){const i=[];return this.changes.forEach((s,u)=>{u.isValidDocument()?i.push(this.ar.addEntry(n,u)):this.ar.removeEntry(s)}),ve.waitFor(i)}getFromCache(n,i){return this.ar.getEntry(n,i)}getAllFromCache(n,i){return this.ar.getEntries(n,i)}}class Mc{constructor(n){this.persistence=n,this.Mr=new Eo(i=>ne(i),ee),this.lastRemoteSnapshotVersion=En.min(),this.highestTargetId=0,this.Or=0,this.Nr=new xd,this.targetCount=0,this.Lr=_l.Nn()}forEachTarget(n,i){return this.Mr.forEach((s,u)=>i(u)),ve.resolve()}getLastRemoteSnapshotVersion(n){return ve.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(n){return ve.resolve(this.Or)}allocateTargetId(n){return this.highestTargetId=this.Lr.next(),ve.resolve(this.highestTargetId)}setTargetsMetadata(n,i,s){return s&&(this.lastRemoteSnapshotVersion=s),i>this.Or&&(this.Or=i),ve.resolve()}qn(n){this.Mr.set(n.target,n);const i=n.targetId;i>this.highestTargetId&&(this.Lr=new _l(i),this.highestTargetId=i),n.sequenceNumber>this.Or&&(this.Or=n.sequenceNumber)}addTargetData(n,i){return this.qn(i),this.targetCount+=1,ve.resolve()}updateTargetData(n,i){return this.qn(i),ve.resolve()}removeTargetData(n,i){return this.Mr.delete(i.target),this.Nr.Vr(i.targetId),this.targetCount-=1,ve.resolve()}removeTargets(n,i,s){let u=0;const p=[];return this.Mr.forEach((_,R)=>{R.sequenceNumber<=i&&null===s.get(R.targetId)&&(this.Mr.delete(_),p.push(this.removeMatchingKeysForTargetId(n,R.targetId)),u++)}),ve.waitFor(p).next(()=>u)}getTargetCount(n){return ve.resolve(this.targetCount)}getTargetData(n,i){const s=this.Mr.get(i)||null;return ve.resolve(s)}addMatchingKeys(n,i,s){return this.Nr.dr(i,s),ve.resolve()}removeMatchingKeys(n,i,s){this.Nr.Rr(i,s);const u=this.persistence.referenceDelegate,p=[];return u&&i.forEach(_=>{p.push(u.markPotentiallyOrphaned(n,_))}),ve.waitFor(p)}removeMatchingKeysForTargetId(n,i){return this.Nr.Vr(i),ve.resolve()}getMatchingKeysForTargetId(n,i){const s=this.Nr.gr(i);return ve.resolve(s)}containsKey(n,i){return ve.resolve(this.Nr.containsKey(i))}}class Pc{constructor(n,i){this.Br={},this.overlays={},this.kr=new Tn(0),this.qr=!1,this.qr=!0,this.referenceDelegate=n(this),this.Qr=new Mc(this),this.indexManager=new Ls,this.remoteDocumentCache=new Fu(s=>this.referenceDelegate.Kr(s)),this.serializer=new N(i),this.$r=new og(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.qr=!1,Promise.resolve()}get started(){return this.qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(n){return this.indexManager}getDocumentOverlayCache(n){let i=this.overlays[n.toKey()];return i||(i=new Rc,this.overlays[n.toKey()]=i),i}getMutationQueue(n,i){let s=this.Br[n.toKey()];return s||(s=new Od(i,this.referenceDelegate),this.Br[n.toKey()]=s),s}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.$r}runTransaction(n,i,s){st("MemoryPersistence","Starting transaction:",n);const u=new Jh(this.kr.next());return this.referenceDelegate.Ur(),s(u).next(p=>this.referenceDelegate.Wr(u).next(()=>p)).toPromise().then(p=>(u.raiseOnCommittedEvent(),p))}Gr(n,i){return ve.or(Object.values(this.Br).map(s=>()=>s.containsKey(n,i)))}}class Jh extends li{constructor(n){super(),this.currentSequenceNumber=n}}class xa{constructor(n){this.persistence=n,this.zr=new xd,this.jr=null}static Hr(n){return new xa(n)}get Jr(){if(this.jr)return this.jr;throw G()}addReference(n,i,s){return this.zr.addReference(s,i),this.Jr.delete(s.toString()),ve.resolve()}removeReference(n,i,s){return this.zr.removeReference(s,i),this.Jr.add(s.toString()),ve.resolve()}markPotentiallyOrphaned(n,i){return this.Jr.add(i.toString()),ve.resolve()}removeTarget(n,i){this.zr.Vr(i.targetId).forEach(u=>this.Jr.add(u.toString()));const s=this.persistence.getTargetCache();return s.getMatchingKeysForTargetId(n,i.targetId).next(u=>{u.forEach(p=>this.Jr.add(p.toString()))}).next(()=>s.removeTargetData(n,i))}Ur(){this.jr=new Set}Wr(n){const i=this.persistence.getRemoteDocumentCache().newChangeBuffer();return ve.forEach(this.Jr,s=>{const u=on.fromPath(s);return this.Yr(n,u).next(p=>{p||i.removeEntry(u,En.min())})}).next(()=>(this.jr=null,i.apply(n)))}updateLimboDocument(n,i){return this.Yr(n,i).next(s=>{s?this.Jr.delete(i.toString()):this.Jr.add(i.toString())})}Kr(n){return 0}Yr(n,i){return ve.or([()=>ve.resolve(this.zr.containsKey(i)),()=>this.persistence.getTargetCache().containsKey(n,i),()=>this.persistence.Gr(n,i)])}}class Gi{constructor(n,i,s,u){this.targetId=n,this.fromCache=i,this.qi=s,this.Qi=u}static Ki(n,i){let s=ei(),u=ei();for(const p of i.docChanges)switch(p.type){case 0:s=s.add(p.doc.key);break;case 1:u=u.add(p.doc.key)}return new Gi(n,i.fromCache,s,u)}}class ef{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(n){this._documentReadCount+=n}}class tf{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=(0,Se.nr)()?8:function pt(l){const n=l.match(/Android ([\d.]+)/i),i=n?n[1].split(".").slice(0,2).join("."):"-1";return Number(i)}((0,Se.ZQ)())>0?6:4}initialize(n,i){this.zi=n,this.indexManager=i,this.$i=!0}getDocumentsMatchingQuery(n,i,s,u){const p={result:null};return this.ji(n,i).next(_=>{p.result=_}).next(()=>{if(!p.result)return this.Hi(n,i,u,s).next(_=>{p.result=_})}).next(()=>{if(p.result)return;const _=new ef;return this.Ji(n,i,_).next(R=>{if(p.result=R,this.Ui)return this.Yi(n,i,_,R.size)})}).next(()=>p.result)}Yi(n,i,s,u){return s.documentReadCountthis.Gi*u?(Cn()<=tt.$b.DEBUG&&st("QueryEngine","The SDK decides to create cache indexes for query:",Ki(i),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(n,zn(i))):ve.resolve())}ji(n,i){if(z(i))return ve.resolve(null);let s=zn(i);return this.indexManager.getIndexType(n,s).next(u=>0===u?null:(null!==i.limit&&1===u&&(i=Ei(i,null,"F"),s=zn(i)),this.indexManager.getDocumentsMatchingTarget(n,s).next(p=>{const _=ei(...p);return this.zi.getDocuments(n,_).next(R=>this.indexManager.getMinOffset(n,s).next(k=>{const q=this.Zi(i,R);return this.Xi(i,q,_,k.readTime)?this.ji(n,Ei(i,null,"F")):this.es(n,q,i,k)}))})))}Hi(n,i,s,u){return z(i)||u.isEqual(En.min())?ve.resolve(null):this.zi.getDocuments(n,s).next(p=>{const _=this.Zi(i,p);return this.Xi(i,_,s,u)?ve.resolve(null):(Cn()<=tt.$b.DEBUG&&st("QueryEngine","Re-using previous result from %s to execute query: %s",u.toString(),Ki(i)),this.es(n,_,i,function Tr(l,n){const i=l.toTimestamp().seconds,s=l.toTimestamp().nanoseconds+1,u=En.fromTimestamp(1e9===s?new yn(i+1,0):new yn(i,s));return new Br(u,on.empty(),n)}(u,-1)).next(R=>R))})}Zi(n,i){let s=new Zn(cs(n));return i.forEach((u,p)=>{Qi(n,p)&&(s=s.add(p))}),s}Xi(n,i,s,u){if(null===n.limit)return!1;if(s.size!==i.size)return!0;const p="F"===n.limitType?i.last():i.first();return!!p&&(p.hasPendingWrites||p.version.compareTo(u)>0)}Ji(n,i,s){return Cn()<=tt.$b.DEBUG&&st("QueryEngine","Using full collection scan to execute query:",Ki(i)),this.zi.getDocumentsMatchingQuery(n,i,Br.min(),s)}es(n,i,s,u){return this.zi.getDocumentsMatchingQuery(n,s,u).next(p=>(i.forEach(_=>{p=p.insert(_.key,_)}),p))}}class sg{constructor(n,i,s,u){this.persistence=n,this.ts=i,this.serializer=u,this.ns=new Hr(nt),this.rs=new Eo(p=>ne(p),ee),this.ss=new Map,this.os=n.getRemoteDocumentCache(),this.Qr=n.getTargetCache(),this.$r=n.getBundleCache(),this._s(s)}_s(n){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(n),this.indexManager=this.persistence.getIndexManager(n),this.mutationQueue=this.persistence.getMutationQueue(n,this.indexManager),this.localDocuments=new ha(this.os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.os.setIndexManager(this.indexManager),this.ts.initialize(this.localDocuments,this.indexManager)}collectGarbage(n){return this.persistence.runTransaction("Collect garbage","readwrite-primary",i=>n.collect(i,this.ns))}}function Fd(l,n){return Uu.apply(this,arguments)}function Uu(){return(Uu=(0,he.A)(function*(l,n){const i=ue(l);return yield i.persistence.runTransaction("Handle user change","readonly",s=>{let u;return i.mutationQueue.getAllMutationBatches(s).next(p=>(u=p,i._s(n),i.mutationQueue.getAllMutationBatches(s))).next(p=>{const _=[],R=[];let k=ei();for(const q of u){_.push(q.batchId);for(const Ce of q.mutations)k=k.add(Ce.key)}for(const q of p){R.push(q.batchId);for(const Ce of q.mutations)k=k.add(Ce.key)}return i.localDocuments.getDocuments(s,k).next(q=>({us:q,removedBatchIds:_,addedBatchIds:R}))})})})).apply(this,arguments)}function Ws(l){const n=ue(l);return n.persistence.runTransaction("Get last remote snapshot version","readonly",i=>n.Qr.getLastRemoteSnapshotVersion(i))}function Oc(l,n){const i=ue(l);return i.persistence.runTransaction("Get next mutation batch","readonly",s=>(void 0===n&&(n=-1),i.mutationQueue.getNextMutationBatchAfterBatchId(s,n)))}function pa(l,n,i){return Nc.apply(this,arguments)}function Nc(){return(Nc=(0,he.A)(function*(l,n,i){const s=ue(l),u=s.ns.get(n),p=i?"readwrite":"readwrite-primary";try{i||(yield s.persistence.runTransaction("Release target",p,_=>s.persistence.referenceDelegate.removeTarget(_,u)))}catch(_){if(!Ge(_))throw _;st("LocalStore",`Failed to update sequence numbers for target ${n}: ${_}`)}s.ns=s.ns.remove(n),s.rs.delete(u.target)})).apply(this,arguments)}function El(l,n,i){const s=ue(l);let u=En.min(),p=ei();return s.persistence.runTransaction("Execute query","readwrite",_=>function(k,q,Ce){const He=ue(k),yt=He.rs.get(Ce);return void 0!==yt?ve.resolve(He.ns.get(yt)):He.Qr.getTargetData(q,Ce)}(s,_,zn(n)).next(R=>{if(R)return u=R.lastLimboFreeSnapshotVersion,s.Qr.getMatchingKeysForTargetId(_,R.targetId).next(k=>{p=k})}).next(()=>s.ts.getDocumentsMatchingQuery(_,n,i?u:En.min(),i?p:ei())).next(R=>(function Al(l,n,i){let s=l.ss.get(n)||En.min();i.forEach((u,p)=>{p.readTime.compareTo(s)>0&&(s=p.readTime)}),l.ss.set(n,s)}(s,function qo(l){return l.collectionGroup||(l.path.length%2==1?l.path.lastSegment():l.path.get(l.path.length-2))}(n),R),{documents:R,hs:p})))}class Hu{constructor(){this.activeTargetIds=function Zs(){return dl}()}As(n){this.activeTargetIds=this.activeTargetIds.add(n)}Rs(n){this.activeTargetIds=this.activeTargetIds.delete(n)}ds(){const n={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(n)}}class af{constructor(){this.no=new Hu,this.ro={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(n){}updateMutationState(n,i,s){}addLocalQueryTarget(n){return this.no.As(n),this.ro[n]||"not-current"}updateQueryState(n,i,s){this.ro[n]=i}removeLocalQueryTarget(n){this.no.Rs(n)}isLocalQueryTarget(n){return this.no.activeTargetIds.has(n)}clearQueryState(n){delete this.ro[n]}getAllActiveQueryTargets(){return this.no.activeTargetIds}isActiveQueryTarget(n){return this.no.activeTargetIds.has(n)}start(){return this.no=new Hu,Promise.resolve()}handleUserChange(n,i,s){}setOnlineState(n){}shutdown(){}writeSequenceNumber(n){}notifyBundleLoaded(n){}}class lf{io(n){}shutdown(){}}class Bd{constructor(){this.so=()=>this.oo(),this._o=()=>this.ao(),this.uo=[],this.co()}io(n){this.uo.push(n)}shutdown(){window.removeEventListener("online",this.so),window.removeEventListener("offline",this._o)}co(){window.addEventListener("online",this.so),window.addEventListener("offline",this._o)}oo(){st("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const n of this.uo)n(0)}ao(){st("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const n of this.uo)n(1)}static D(){return typeof window<"u"&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let Vc=null;function Bs(){return null===Vc?Vc=268435456+Math.round(2147483648*Math.random()):Vc++,"0x"+Vc.toString(16)}const hv={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class Gu{constructor(n){this.lo=n.lo,this.ho=n.ho}Po(n){this.Io=n}To(n){this.Eo=n}Ao(n){this.Ro=n}onMessage(n){this.Vo=n}close(){this.ho()}send(n){this.lo(n)}mo(){this.Io()}fo(){this.Eo()}po(n){this.Ro(n)}yo(n){this.Vo(n)}}const jo="WebChannelConnection";class Ud extends class{constructor(i){this.databaseInfo=i,this.databaseId=i.databaseId;const s=i.ssl?"https":"http",u=encodeURIComponent(this.databaseId.projectId),p=encodeURIComponent(this.databaseId.database);this.wo=s+"://"+i.host,this.So=`projects/${u}/databases/${p}`,this.bo="(default)"===this.databaseId.database?`project_id=${u}`:`project_id=${u}&database_id=${p}`}get Do(){return!1}Co(i,s,u,p,_){const R=Bs(),k=this.vo(i,s.toUriEncodedString());st("RestConnection",`Sending RPC '${i}' ${R}:`,k,u);const q={"google-cloud-resource-prefix":this.So,"x-goog-request-params":this.bo};return this.Fo(q,p,_),this.Mo(i,k,q,u).then(Ce=>(st("RestConnection",`Received RPC '${i}' ${R}: `,Ce),Ce),Ce=>{throw vt("RestConnection",`RPC '${i}' ${R} failed with error: `,Ce,"url: ",k,"request:",u),Ce})}xo(i,s,u,p,_,R){return this.Co(i,s,u,p,_)}Fo(i,s,u){i["X-Goog-Api-Client"]="gl-js/ fire/"+Ct,i["Content-Type"]="text/plain",this.databaseInfo.appId&&(i["X-Firebase-GMPID"]=this.databaseInfo.appId),s&&s.headers.forEach((p,_)=>i[_]=p),u&&u.headers.forEach((p,_)=>i[_]=p)}vo(i,s){return`${this.wo}/v1/${s}:${hv[i]}`}terminate(){}}{constructor(n){super(n),this.forceLongPolling=n.forceLongPolling,this.autoDetectLongPolling=n.autoDetectLongPolling,this.useFetchStreams=n.useFetchStreams,this.longPollingOptions=n.longPollingOptions}Mo(n,i,s,u){const p=Bs();return new Promise((_,R)=>{const k=new xt;k.setWithCredentials(!0),k.listenOnce(Tt.COMPLETE,()=>{try{switch(k.getLastErrorCode()){case At.NO_ERROR:const Ce=k.getResponseJson();st(jo,`XHR for RPC '${n}' ${p} received:`,JSON.stringify(Ce)),_(Ce);break;case At.TIMEOUT:st(jo,`RPC '${n}' ${p} timed out`),R(new Ve(Ee.DEADLINE_EXCEEDED,"Request time out"));break;case At.HTTP_ERROR:const He=k.getStatus();if(st(jo,`RPC '${n}' ${p} failed with status:`,He,"response text:",k.getResponseText()),He>0){let yt=k.getResponseJson();Array.isArray(yt)&&(yt=yt[0]);const Yt=null==yt?void 0:yt.error;if(Yt&&Yt.status&&Yt.message){const Rn=function(Ln){const Cr=Ln.toLowerCase().replace(/_/g,"-");return Object.values(Ee).indexOf(Cr)>=0?Cr:Ee.UNKNOWN}(Yt.status);R(new Ve(Rn,Yt.message))}else R(new Ve(Ee.UNKNOWN,"Server responded with status "+k.getStatus()))}else R(new Ve(Ee.UNAVAILABLE,"Connection failed."));break;default:G()}}finally{st(jo,`RPC '${n}' ${p} completed.`)}});const q=JSON.stringify(u);st(jo,`RPC '${n}' ${p} sending request:`,u),k.send(i,"POST",q,s,15)})}Oo(n,i,s){const u=Bs(),p=[this.wo,"/","google.firestore.v1.Firestore","/",n,"/channel"],_=$e(),R=_e(),k={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},q=this.longPollingOptions.timeoutSeconds;void 0!==q&&(k.longPollingTimeout=Math.round(1e3*q)),this.useFetchStreams&&(k.xmlHttpFactory=new Dt({})),this.Fo(k.initMessageHeaders,i,s),k.encodeInitMessageHeaders=!0;const Ce=p.join("");st(jo,`Creating RPC '${n}' stream ${u}: ${Ce}`,k);const He=_.createWebChannel(Ce,k);let yt=!1,Yt=!1;const Rn=new Gu({lo:Ln=>{Yt?st(jo,`Not sending because RPC '${n}' stream ${u} is closed:`,Ln):(yt||(st(jo,`Opening RPC '${n}' stream ${u} transport.`),He.open(),yt=!0),st(jo,`RPC '${n}' stream ${u} sending:`,Ln),He.send(Ln))},ho:()=>He.close()}),Wn=(Ln,Cr,Gr)=>{Ln.listen(Cr,Or=>{try{Gr(Or)}catch(si){setTimeout(()=>{throw si},0)}})};return Wn(He,zt.EventType.OPEN,()=>{Yt||(st(jo,`RPC '${n}' stream ${u} transport opened.`),Rn.mo())}),Wn(He,zt.EventType.CLOSE,()=>{Yt||(Yt=!0,st(jo,`RPC '${n}' stream ${u} transport closed`),Rn.po())}),Wn(He,zt.EventType.ERROR,Ln=>{Yt||(Yt=!0,vt(jo,`RPC '${n}' stream ${u} transport errored:`,Ln),Rn.po(new Ve(Ee.UNAVAILABLE,"The operation could not be completed")))}),Wn(He,zt.EventType.MESSAGE,Ln=>{var Cr;if(!Yt){const Gr=Ln.data[0];X(!!Gr);const si=Gr.error||(null===(Cr=Gr[0])||void 0===Cr?void 0:Cr.error);if(si){st(jo,`RPC '${n}' stream ${u} received error:`,si);const Wi=si.status;let Ti=function(Rt){const Ut=Er[Rt];if(void 0!==Ut)return ri(Ut)}(Wi),Bt=si.message;void 0===Ti&&(Ti=Ee.INTERNAL,Bt="Unknown error status: "+Wi+" with message "+si.message),Yt=!0,Rn.po(new Ve(Ti,Bt)),He.close()}else st(jo,`RPC '${n}' stream ${u} received:`,Gr),Rn.yo(Gr)}}),Wn(R,Ze.STAT_EVENT,Ln=>{Ln.stat===Ie.PROXY?st(jo,`RPC '${n}' stream ${u} detected buffering proxy`):Ln.stat===Ie.NOPROXY&&st(jo,`RPC '${n}' stream ${u} detected no buffering proxy`)}),setTimeout(()=>{Rn.fo()},0),Rn}}function Dl(){return typeof document<"u"?document:null}function Bc(l){return new Fo(l,!0)}class tu{constructor(n,i,s=1e3,u=1.5,p=6e4){this.oi=n,this.timerId=i,this.No=s,this.Lo=u,this.Bo=p,this.ko=0,this.qo=null,this.Qo=Date.now(),this.reset()}reset(){this.ko=0}Ko(){this.ko=this.Bo}$o(n){this.cancel();const i=Math.floor(this.ko+this.Uo()),s=Math.max(0,Date.now()-this.Qo),u=Math.max(0,i-s);u>0&&st("ExponentialBackoff",`Backing off for ${u} ms (base delay: ${this.ko} ms, delay with jitter: ${i} ms, last attempt: ${s} ms ago)`),this.qo=this.oi.enqueueAfterDelay(this.timerId,u,()=>(this.Qo=Date.now(),n())),this.ko*=this.Lo,this.kothis.Bo&&(this.ko=this.Bo)}Wo(){null!==this.qo&&(this.qo.skipDelay(),this.qo=null)}cancel(){null!==this.qo&&(this.qo.cancel(),this.qo=null)}Uo(){return(Math.random()-.5)*this.ko}}class $d{constructor(n,i,s,u,p,_,R,k){this.oi=n,this.Go=s,this.zo=u,this.connection=p,this.authCredentialsProvider=_,this.appCheckCredentialsProvider=R,this.listener=k,this.state=0,this.jo=0,this.Ho=null,this.Jo=null,this.stream=null,this.Yo=new tu(n,i)}Zo(){return 1===this.state||5===this.state||this.Xo()}Xo(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.e_()}stop(){var n=this;return(0,he.A)(function*(){n.Zo()&&(yield n.close(0))})()}t_(){this.state=0,this.Yo.reset()}n_(){this.Xo()&&null===this.Ho&&(this.Ho=this.oi.enqueueAfterDelay(this.Go,6e4,()=>this.r_()))}i_(n){this.s_(),this.stream.send(n)}r_(){var n=this;return(0,he.A)(function*(){if(n.Xo())return n.close(0)})()}s_(){this.Ho&&(this.Ho.cancel(),this.Ho=null)}o_(){this.Jo&&(this.Jo.cancel(),this.Jo=null)}close(n,i){var s=this;return(0,he.A)(function*(){s.s_(),s.o_(),s.Yo.cancel(),s.jo++,4!==n?s.Yo.reset():i&&i.code===Ee.RESOURCE_EXHAUSTED?(cn(i.toString()),cn("Using maximum backoff delay to prevent overloading the backend."),s.Yo.Ko()):i&&i.code===Ee.UNAUTHENTICATED&&3!==s.state&&(s.authCredentialsProvider.invalidateToken(),s.appCheckCredentialsProvider.invalidateToken()),null!==s.stream&&(s.__(),s.stream.close(),s.stream=null),s.state=n,yield s.listener.Ao(i)})()}__(){}auth(){this.state=1;const n=this.a_(this.jo),i=this.jo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([s,u])=>{this.jo===i&&this.u_(s,u)},s=>{n(()=>{const u=new Ve(Ee.UNKNOWN,"Fetching auth token failed: "+s.message);return this.c_(u)})})}u_(n,i){const s=this.a_(this.jo);this.stream=this.l_(n,i),this.stream.Po(()=>{s(()=>this.listener.Po())}),this.stream.To(()=>{s(()=>(this.state=2,this.Jo=this.oi.enqueueAfterDelay(this.zo,1e4,()=>(this.Xo()&&(this.state=3),Promise.resolve())),this.listener.To()))}),this.stream.Ao(u=>{s(()=>this.c_(u))}),this.stream.onMessage(u=>{s(()=>this.onMessage(u))})}e_(){var n=this;this.state=5,this.Yo.$o((0,he.A)(function*(){n.state=0,n.start()}))}c_(n){return st("PersistentStream",`close with error: ${n}`),this.stream=null,this.close(4,n)}a_(n){return i=>{this.oi.enqueueAndForget(()=>this.jo===n?i():(st("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class uf extends $d{constructor(n,i,s,u,p,_){super(n,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",i,s,u,_),this.serializer=p}l_(n,i){return this.connection.Oo("Listen",n,i)}onMessage(n){this.Yo.reset();const i=function Wl(l,n){let i;if("targetChange"in n){const s="NO_CHANGE"===(q=n.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===q?1:"REMOVE"===q?2:"CURRENT"===q?3:"RESET"===q?4:G(),u=n.targetChange.targetIds||[],p=function(q,Ce){return q.useProto3Json?(X(void 0===Ce||"string"==typeof Ce),ui.fromBase64String(Ce||"")):(X(void 0===Ce||Ce instanceof Buffer||Ce instanceof Uint8Array),ui.fromUint8Array(Ce||new Uint8Array))}(l,n.targetChange.resumeToken),_=n.targetChange.cause,R=_&&function(q){const Ce=void 0===q.code?Ee.UNKNOWN:ri(q.code);return new Ve(Ce,q.message||"")}(_);i=new Si(s,u,p,R||null)}else if("documentChange"in n){const s=n.documentChange,u=ps(l,s.document.name),p=Ui(s.document.updateTime),_=s.document.createTime?Ui(s.document.createTime):En.min(),R=new Kn({mapValue:{fields:s.document.fields}}),k=Wr.newFoundDocument(u,p,_,R);i=new uo(s.targetIds||[],s.removedTargetIds||[],k.key,k)}else if("documentDelete"in n){const s=n.documentDelete,u=ps(l,s.document),p=s.readTime?Ui(s.readTime):En.min(),_=Wr.newNoDocument(u,p);i=new uo([],s.removedTargetIds||[],_.key,_)}else if("documentRemove"in n){const s=n.documentRemove,u=ps(l,s.document);i=new uo([],s.removedTargetIds||[],u,null)}else{if(!("filter"in n))return G();{const s=n.filter,{count:u=0,unchangedNames:p}=s,_=new Fn(u,p);i=new ns(s.targetId,_)}}var q;return i}(this.serializer,n),s=function(p){if(!("targetChange"in p))return En.min();const _=p.targetChange;return _.targetIds&&_.targetIds.length?En.min():_.readTime?Ui(_.readTime):En.min()}(n);return this.listener.h_(i,s)}P_(n){const i={};i.database=Da(this.serializer),i.addTarget=function(p,_){let R;const k=_.target;if(R=qe(k)?{documents:Kl(p,k)}:{query:gl(p,k)._t},R.targetId=_.targetId,_.resumeToken.approximateByteSize()>0){R.resumeToken=na(p,_.resumeToken);const q=ks(p,_.expectedCount);null!==q&&(R.expectedCount=q)}else if(_.snapshotVersion.compareTo(En.min())>0){R.readTime=rs(p,_.snapshotVersion.toTimestamp());const q=ks(p,_.expectedCount);null!==q&&(R.expectedCount=q)}return R}(this.serializer,n);const s=function Pu(l,n){const i=function(u){switch(u){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return G()}}(n.purpose);return null==i?null:{"goog-listen-tags":i}}(0,n);s&&(i.labels=s),this.i_(i)}I_(n){const i={};i.database=Da(this.serializer),i.removeTarget=n,this.i_(i)}}class cf extends $d{constructor(n,i,s,u,p,_){super(n,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",i,s,u,_),this.serializer=p,this.T_=!1}get E_(){return this.T_}start(){this.T_=!1,this.lastStreamToken=void 0,super.start()}__(){this.T_&&this.d_([])}l_(n,i){return this.connection.Oo("Write",n,i)}onMessage(n){if(X(!!n.streamToken),this.lastStreamToken=n.streamToken,this.T_){this.Yo.reset();const i=function Is(l,n){return l&&l.length>0?(X(void 0!==n),l.map(i=>function(u,p){let _=Ui(u.updateTime?u.updateTime:p);return _.isEqual(En.min())&&(_=Ui(p)),new js(_,u.transformResults||[])}(i,n))):[]}(n.writeResults,n.commitTime),s=Ui(n.commitTime);return this.listener.A_(s,i)}return X(!n.writeResults||0===n.writeResults.length),this.T_=!0,this.listener.R_()}V_(){const n={};n.database=Da(this.serializer),this.i_(n)}d_(n){const i={streamToken:this.lastStreamToken,writes:n.map(s=>function gs(l,n){let i;if(n instanceof ea)i={update:Mu(l,n.key,n.value)};else if(n instanceof j)i={delete:Ta(l,n.key)};else if(n instanceof Co)i={update:Mu(l,n.key,n.data),updateMask:bd(n.fieldMask)};else{if(!(n instanceof Ue))return G();i={verify:Ta(l,n.key)}}return n.fieldTransforms.length>0&&(i.updateTransforms=n.fieldTransforms.map(s=>function(p,_){const R=_.transform;if(R instanceof Os)return{fieldPath:_.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(R instanceof $s)return{fieldPath:_.field.canonicalString(),appendMissingElements:{values:R.elements}};if(R instanceof Ns)return{fieldPath:_.field.canonicalString(),removeAllFromArray:{values:R.elements}};if(R instanceof hs)return{fieldPath:_.field.canonicalString(),increment:R.Pe};throw G()}(0,s))),n.precondition.isNone||(i.currentDocument=void 0!==(p=n.precondition).updateTime?{updateTime:yc(l,p.updateTime)}:void 0!==p.exists?{exists:p.exists}:G()),i;var p}(this.serializer,s))};this.i_(i)}}class lg extends class{}{constructor(n,i,s,u){super(),this.authCredentials=n,this.appCheckCredentials=i,this.connection=s,this.serializer=u,this.m_=!1}f_(){if(this.m_)throw new Ve(Ee.FAILED_PRECONDITION,"The client has already been terminated.")}Co(n,i,s,u){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([p,_])=>this.connection.Co(n,Es(i,s),u,p,_)).catch(p=>{throw"FirebaseError"===p.name?(p.code===Ee.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),p):new Ve(Ee.UNKNOWN,p.toString())})}xo(n,i,s,u,p){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([_,R])=>this.connection.xo(n,Es(i,s),u,_,R,p)).catch(_=>{throw"FirebaseError"===_.name?(_.code===Ee.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),_):new Ve(Ee.UNKNOWN,_.toString())})}terminate(){this.m_=!0,this.connection.terminate()}}class jd{constructor(n,i){this.asyncQueue=n,this.onlineStateHandler=i,this.state="Unknown",this.g_=0,this.p_=null,this.y_=!0}w_(){0===this.g_&&(this.S_("Unknown"),this.p_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.p_=null,this.b_("Backend didn't respond within 10 seconds."),this.S_("Offline"),Promise.resolve())))}D_(n){"Online"===this.state?this.S_("Unknown"):(this.g_++,this.g_>=1&&(this.C_(),this.b_(`Connection failed 1 times. Most recent error: ${n.toString()}`),this.S_("Offline")))}set(n){this.C_(),this.g_=0,"Online"===n&&(this.y_=!1),this.S_(n)}S_(n){n!==this.state&&(this.state=n,this.onlineStateHandler(n))}b_(n){const i=`Could not reach Cloud Firestore backend. ${n}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.y_?(cn(i),this.y_=!1):st("OnlineStateTracker",i)}C_(){null!==this.p_&&(this.p_.cancel(),this.p_=null)}}class bl{constructor(n,i,s,u,p){var _=this;this.localStore=n,this.datastore=i,this.asyncQueue=s,this.remoteSyncer={},this.v_=[],this.F_=new Map,this.M_=new Set,this.x_=[],this.O_=p,this.O_.io(R=>{s.enqueueAndForget((0,he.A)(function*(){var k;el(_)&&(st("RemoteStore","Restarting streams for network reachability change."),yield(k=(0,he.A)(function*(Ce){const He=ue(Ce);He.M_.add(4),yield nu(He),He.N_.set("Unknown"),He.M_.delete(4),yield Uc(He)}),function q(Ce){return k.apply(this,arguments)})(_))}))}),this.N_=new jd(s,u)}}function Uc(l){return $c.apply(this,arguments)}function $c(){return($c=(0,he.A)(function*(l){if(el(l))for(const n of l.x_)yield n(!0)})).apply(this,arguments)}function nu(l){return wl.apply(this,arguments)}function wl(){return(wl=(0,he.A)(function*(l){for(const n of l.x_)yield n(!1)})).apply(this,arguments)}function Za(l,n){const i=ue(l);i.F_.has(n.targetId)||(i.F_.set(n.targetId,n),ff(i)?Wu(i):Qu(i).Xo()&&df(i,n))}function po(l,n){const i=ue(l),s=Qu(i);i.F_.delete(n),s.Xo()&&hf(i,n),0===i.F_.size&&(s.Xo()?s.n_():el(i)&&i.N_.set("Unknown"))}function df(l,n){if(l.L_.xe(n.targetId),n.resumeToken.approximateByteSize()>0||n.snapshotVersion.compareTo(En.min())>0){const i=l.remoteSyncer.getRemoteKeysForTarget(n.targetId).size;n=n.withExpectedCount(i)}Qu(l).P_(n)}function hf(l,n){l.L_.xe(n),Qu(l).I_(n)}function Wu(l){l.L_=new zs({getRemoteKeysForTarget:n=>l.remoteSyncer.getRemoteKeysForTarget(n),ot:n=>l.F_.get(n)||null,tt:()=>l.datastore.serializer.databaseId}),Qu(l).start(),l.N_.w_()}function ff(l){return el(l)&&!Qu(l).Zo()&&l.F_.size>0}function el(l){return 0===ue(l).M_.size}function jc(l){l.L_=void 0}function ug(l){return zd.apply(this,arguments)}function zd(){return(zd=(0,he.A)(function*(l){l.N_.set("Online")})).apply(this,arguments)}function pf(l){return Ku.apply(this,arguments)}function Ku(){return(Ku=(0,he.A)(function*(l){l.F_.forEach((n,i)=>{df(l,n)})})).apply(this,arguments)}function cg(l,n){return gf.apply(this,arguments)}function gf(){return(gf=(0,he.A)(function*(l,n){jc(l),ff(l)?(l.N_.D_(n),Wu(l)):l.N_.set("Unknown")})).apply(this,arguments)}function fv(l,n,i){return mf.apply(this,arguments)}function mf(){return mf=(0,he.A)(function*(l,n,i){if(l.N_.set("Online"),n instanceof Si&&2===n.state&&n.cause)try{yield(s=(0,he.A)(function*(p,_){const R=_.cause;for(const k of _.targetIds)p.F_.has(k)&&(yield p.remoteSyncer.rejectListen(k,R),p.F_.delete(k),p.L_.removeTarget(k))}),function u(p,_){return s.apply(this,arguments)})(l,n)}catch(s){st("RemoteStore","Failed to remove targets %s: %s ",n.targetIds.join(","),s),yield zc(l,s)}else if(n instanceof uo?l.L_.Ke(n):n instanceof ns?l.L_.He(n):l.L_.We(n),!i.isEqual(En.min()))try{const s=yield Ws(l.localStore);i.compareTo(s)>=0&&(yield function(p,_){const R=p.L_.rt(_);return R.targetChanges.forEach((k,q)=>{if(k.resumeToken.approximateByteSize()>0){const Ce=p.F_.get(q);Ce&&p.F_.set(q,Ce.withResumeToken(k.resumeToken,_))}}),R.targetMismatches.forEach((k,q)=>{const Ce=p.F_.get(k);if(!Ce)return;p.F_.set(k,Ce.withResumeToken(ui.EMPTY_BYTE_STRING,Ce.snapshotVersion)),hf(p,k);const He=new b(Ce.target,k,q,Ce.sequenceNumber);df(p,He)}),p.remoteSyncer.applyRemoteEvent(R)}(l,i))}catch(s){st("RemoteStore","Failed to raise snapshot:",s),yield zc(l,s)}var s}),mf.apply(this,arguments)}function zc(l,n,i){return vf.apply(this,arguments)}function vf(){return(vf=(0,he.A)(function*(l,n,i){if(!Ge(n))throw n;l.M_.add(1),yield nu(l),l.N_.set("Offline"),i||(i=()=>Ws(l.localStore)),l.asyncQueue.enqueueRetryable((0,he.A)(function*(){st("RemoteStore","Retrying IndexedDB access"),yield i(),l.M_.delete(1),yield Uc(l)}))})).apply(this,arguments)}function _f(l,n){return n().catch(i=>zc(l,i,n))}function Xu(l){return yf.apply(this,arguments)}function yf(){return(yf=(0,he.A)(function*(l){const n=ue(l),i=ru(n);let s=n.v_.length>0?n.v_[n.v_.length-1].batchId:-1;for(;vy(n);)try{const u=yield Oc(n.localStore,s);if(null===u){0===n.v_.length&&i.n_();break}s=u.batchId,dg(n,u)}catch(u){yield zc(n,u)}Ef(n)&&Ts(n)})).apply(this,arguments)}function vy(l){return el(l)&&l.v_.length<10}function dg(l,n){l.v_.push(n);const i=ru(l);i.Xo()&&i.E_&&i.d_(n.mutations)}function Ef(l){return el(l)&&!ru(l).Zo()&&l.v_.length>0}function Ts(l){ru(l).start()}function _y(l){return Hd.apply(this,arguments)}function Hd(){return(Hd=(0,he.A)(function*(l){ru(l).V_()})).apply(this,arguments)}function yy(l){return Hc.apply(this,arguments)}function Hc(){return(Hc=(0,he.A)(function*(l){const n=ru(l);for(const i of l.v_)n.d_(i.mutations)})).apply(this,arguments)}function tl(l,n,i){return Gd.apply(this,arguments)}function Gd(){return(Gd=(0,he.A)(function*(l,n,i){const s=l.v_.shift(),u=De.from(s,n,i);yield _f(l,()=>l.remoteSyncer.applySuccessfulWrite(u)),yield Xu(l)})).apply(this,arguments)}function qu(l,n){return If.apply(this,arguments)}function If(){return If=(0,he.A)(function*(l,n){var i;n&&ru(l).E_&&(yield(i=(0,he.A)(function*(u,p){if(function bi(l){switch(l){default:return G();case Ee.CANCELLED:case Ee.UNKNOWN:case Ee.DEADLINE_EXCEEDED:case Ee.RESOURCE_EXHAUSTED:case Ee.INTERNAL:case Ee.UNAVAILABLE:case Ee.UNAUTHENTICATED:return!1;case Ee.INVALID_ARGUMENT:case Ee.NOT_FOUND:case Ee.ALREADY_EXISTS:case Ee.PERMISSION_DENIED:case Ee.FAILED_PRECONDITION:case Ee.ABORTED:case Ee.OUT_OF_RANGE:case Ee.UNIMPLEMENTED:case Ee.DATA_LOSS:return!0}}(R=p.code)&&R!==Ee.ABORTED){const _=u.v_.shift();ru(u).t_(),yield _f(u,()=>u.remoteSyncer.rejectFailedWrite(_.batchId,p)),yield Xu(u)}var R}),function s(u,p){return i.apply(this,arguments)})(l,n)),Ef(l)&&Ts(l)}),If.apply(this,arguments)}function hg(l,n){return Wd.apply(this,arguments)}function Wd(){return(Wd=(0,he.A)(function*(l,n){const i=ue(l);i.asyncQueue.verifyOperationInProgress(),st("RemoteStore","RemoteStore received new credentials");const s=el(i);i.M_.add(3),yield nu(i),s&&i.N_.set("Unknown"),yield i.remoteSyncer.handleCredentialChange(n),i.M_.delete(3),yield Uc(i)})).apply(this,arguments)}function fg(l,n){return pg.apply(this,arguments)}function pg(){return(pg=(0,he.A)(function*(l,n){const i=ue(l);n?(i.M_.delete(2),yield Uc(i)):n||(i.M_.add(2),yield nu(i),i.N_.set("Unknown"))})).apply(this,arguments)}function Qu(l){return l.B_||(l.B_=function(i,s,u){const p=ue(i);return p.f_(),new uf(s,p.connection,p.authCredentials,p.appCheckCredentials,p.serializer,u)}(l.datastore,l.asyncQueue,{Po:ug.bind(null,l),To:pf.bind(null,l),Ao:cg.bind(null,l),h_:fv.bind(null,l)}),l.x_.push(function(){var n=(0,he.A)(function*(i){i?(l.B_.t_(),ff(l)?Wu(l):l.N_.set("Unknown")):(yield l.B_.stop(),jc(l))});return function(i){return n.apply(this,arguments)}}())),l.B_}function ru(l){return l.k_||(l.k_=function(i,s,u){const p=ue(i);return p.f_(),new cf(s,p.connection,p.authCredentials,p.appCheckCredentials,p.serializer,u)}(l.datastore,l.asyncQueue,{Po:()=>Promise.resolve(),To:_y.bind(null,l),Ao:qu.bind(null,l),R_:yy.bind(null,l),A_:tl.bind(null,l)}),l.x_.push(function(){var n=(0,he.A)(function*(i){i?(l.k_.t_(),yield Xu(l)):(yield l.k_.stop(),l.v_.length>0&&(st("RemoteStore",`Stopping write stream with ${l.v_.length} pending writes`),l.v_=[]))});return function(i){return n.apply(this,arguments)}}())),l.k_}class gg{constructor(n,i,s,u,p){this.asyncQueue=n,this.timerId=i,this.targetTimeMs=s,this.op=u,this.removalCallback=p,this.deferred=new ut,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(_=>{})}get promise(){return this.deferred.promise}static createAndSchedule(n,i,s,u,p){const _=Date.now()+s,R=new gg(n,i,_,u,p);return R.start(s),R}start(n){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),n)}skipDelay(){return this.handleDelayElapsed()}cancel(n){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Ve(Ee.CANCELLED,"Operation cancelled"+(n?": "+n:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(n=>this.deferred.resolve(n))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function Yu(l,n){if(cn("AsyncQueue",`${n}: ${l}`),Ge(l))return new Ve(Ee.UNAVAILABLE,`${n}: ${l}`);throw l}class ga{constructor(n){this.comparator=n?(i,s)=>n(i,s)||on.comparator(i.key,s.key):(i,s)=>on.comparator(i.key,s.key),this.keyedMap=eo(),this.sortedSet=new Hr(this.comparator)}static emptySet(n){return new ga(n.comparator)}has(n){return null!=this.keyedMap.get(n)}get(n){return this.keyedMap.get(n)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(n){const i=this.keyedMap.get(n);return i?this.sortedSet.indexOf(i):-1}get size(){return this.sortedSet.size}forEach(n){this.sortedSet.inorderTraversal((i,s)=>(n(i),!1))}add(n){const i=this.delete(n.key);return i.copy(i.keyedMap.insert(n.key,n),i.sortedSet.insert(n,null))}delete(n){const i=this.get(n);return i?this.copy(this.keyedMap.remove(n),this.sortedSet.remove(i)):this}isEqual(n){if(!(n instanceof ga)||this.size!==n.size)return!1;const i=this.sortedSet.getIterator(),s=n.sortedSet.getIterator();for(;i.hasNext();){const u=i.getNext().key,p=s.getNext().key;if(!u.isEqual(p))return!1}return!0}toString(){const n=[];return this.forEach(i=>{n.push(i.toString())}),0===n.length?"DocumentSet ()":"DocumentSet (\n "+n.join(" \n")+"\n)"}copy(n,i){const s=new ga;return s.comparator=this.comparator,s.keyedMap=n,s.sortedSet=i,s}}class Ju{constructor(){this.q_=new Hr(on.comparator)}track(n){const i=n.doc.key,s=this.q_.get(i);s?0!==n.type&&3===s.type?this.q_=this.q_.insert(i,n):3===n.type&&1!==s.type?this.q_=this.q_.insert(i,{type:s.type,doc:n.doc}):2===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):2===n.type&&0===s.type?this.q_=this.q_.insert(i,{type:0,doc:n.doc}):1===n.type&&0===s.type?this.q_=this.q_.remove(i):1===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:1,doc:s.doc}):0===n.type&&1===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):G():this.q_=this.q_.insert(i,n)}Q_(){const n=[];return this.q_.inorderTraversal((i,s)=>{n.push(s)}),n}}class iu{constructor(n,i,s,u,p,_,R,k,q){this.query=n,this.docs=i,this.oldDocs=s,this.docChanges=u,this.mutatedKeys=p,this.fromCache=_,this.syncStateChanged=R,this.excludesMetadataChanges=k,this.hasCachedResults=q}static fromInitialDocuments(n,i,s,u,p){const _=[];return i.forEach(R=>{_.push({type:0,doc:R})}),new iu(n,i,ga.emptySet(i),_,s,u,!0,!1,p)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(n){if(!(this.fromCache===n.fromCache&&this.hasCachedResults===n.hasCachedResults&&this.syncStateChanged===n.syncStateChanged&&this.mutatedKeys.isEqual(n.mutatedKeys)&&ao(this.query,n.query)&&this.docs.isEqual(n.docs)&&this.oldDocs.isEqual(n.oldDocs)))return!1;const i=this.docChanges,s=n.docChanges;if(i.length!==s.length)return!1;for(let u=0;un.G_())}}class Af{constructor(){this.queries=new Eo(n=>No(n),ao),this.onlineState="Unknown",this.z_=new Set}}function Ks(l,n){return Cf.apply(this,arguments)}function Cf(){return(Cf=(0,he.A)(function*(l,n){const i=ue(l);let s=3;const u=n.query;let p=i.queries.get(u);p?!p.W_()&&n.G_()&&(s=2):(p=new pv,s=n.G_()?0:1);try{switch(s){case 0:p.K_=yield i.onListen(u,!0);break;case 1:p.K_=yield i.onListen(u,!1);break;case 2:yield i.onFirstRemoteStoreListen(u)}}catch(_){const R=Yu(_,`Initialization of query '${Ki(n.query)}' failed`);return void n.onError(R)}i.queries.set(u,p),p.U_.push(n),n.j_(i.onlineState),p.K_&&n.H_(p.K_)&&Kd(i)})).apply(this,arguments)}function Zu(l,n){return ou.apply(this,arguments)}function ou(){return(ou=(0,he.A)(function*(l,n){const i=ue(l),s=n.query;let u=3;const p=i.queries.get(s);if(p){const _=p.U_.indexOf(n);_>=0&&(p.U_.splice(_,1),0===p.U_.length?u=n.G_()?0:1:!p.W_()&&n.G_()&&(u=2))}switch(u){case 0:return i.queries.delete(s),i.onUnlisten(s,!0);case 1:return i.queries.delete(s),i.onUnlisten(s,!1);case 2:return i.onLastRemoteStoreUnlisten(s);default:return}})).apply(this,arguments)}function gv(l,n){const i=ue(l);let s=!1;for(const u of n){const _=i.queries.get(u.query);if(_){for(const R of _.U_)R.H_(u)&&(s=!0);_.K_=u}}s&&Kd(i)}function mg(l,n,i){const s=ue(l),u=s.queries.get(n);if(u)for(const p of u.U_)p.onError(i);s.queries.delete(n)}function Kd(l){l.z_.forEach(n=>{n.next()})}var I,f;(f=I||(I={})).J_="default",f.Cache="cache";class v{constructor(n,i,s){this.query=n,this.Y_=i,this.Z_=!1,this.X_=null,this.onlineState="Unknown",this.options=s||{}}H_(n){if(!this.options.includeMetadataChanges){const s=[];for(const u of n.docChanges)3!==u.type&&s.push(u);n=new iu(n.query,n.docs,n.oldDocs,s,n.mutatedKeys,n.fromCache,n.syncStateChanged,!0,n.hasCachedResults)}let i=!1;return this.Z_?this.ea(n)&&(this.Y_.next(n),i=!0):this.ta(n,this.onlineState)&&(this.na(n),i=!0),this.X_=n,i}onError(n){this.Y_.error(n)}j_(n){this.onlineState=n;let i=!1;return this.X_&&!this.Z_&&this.ta(this.X_,n)&&(this.na(this.X_),i=!0),i}ta(n,i){return!n.fromCache||!this.G_()||(!this.options.ra||!("Offline"!==i))&&(!n.docs.isEmpty()||n.hasCachedResults||"Offline"===i)}ea(n){return n.docChanges.length>0||!!(n.syncStateChanged||this.X_&&this.X_.hasPendingWrites!==n.hasPendingWrites)&&!0===this.options.includeMetadataChanges}na(n){n=iu.fromInitialDocuments(n.query,n.docs,n.mutatedKeys,n.fromCache,n.hasCachedResults),this.Z_=!0,this.Y_.next(n)}G_(){return this.options.source!==I.Cache}}class Jt{constructor(n){this.key=n}}class Mn{constructor(n){this.key=n}}class Jn{constructor(n,i){this.query=n,this.la=i,this.ha=null,this.hasCachedResults=!1,this.current=!1,this.Pa=ei(),this.mutatedKeys=ei(),this.Ia=cs(n),this.Ta=new ga(this.Ia)}get Ea(){return this.la}da(n,i){const s=i?i.Aa:new Ju,u=i?i.Ta:this.Ta;let p=i?i.mutatedKeys:this.mutatedKeys,_=u,R=!1;const k="F"===this.query.limitType&&u.size===this.query.limit?u.last():null,q="L"===this.query.limitType&&u.size===this.query.limit?u.first():null;if(n.inorderTraversal((Ce,He)=>{const yt=u.get(Ce),Yt=Qi(this.query,He)?He:null,Rn=!!yt&&this.mutatedKeys.has(yt.key),Wn=!!Yt&&(Yt.hasLocalMutations||this.mutatedKeys.has(Yt.key)&&Yt.hasCommittedMutations);let Ln=!1;yt&&Yt?yt.data.isEqual(Yt.data)?Rn!==Wn&&(s.track({type:3,doc:Yt}),Ln=!0):this.Ra(yt,Yt)||(s.track({type:2,doc:Yt}),Ln=!0,(k&&this.Ia(Yt,k)>0||q&&this.Ia(Yt,q)<0)&&(R=!0)):!yt&&Yt?(s.track({type:0,doc:Yt}),Ln=!0):yt&&!Yt&&(s.track({type:1,doc:yt}),Ln=!0,(k||q)&&(R=!0)),Ln&&(Yt?(_=_.add(Yt),p=Wn?p.add(Ce):p.delete(Ce)):(_=_.delete(Ce),p=p.delete(Ce)))}),null!==this.query.limit)for(;_.size>this.query.limit;){const Ce="F"===this.query.limitType?_.last():_.first();_=_.delete(Ce.key),p=p.delete(Ce.key),s.track({type:1,doc:Ce})}return{Ta:_,Aa:s,Xi:R,mutatedKeys:p}}Ra(n,i){return n.hasLocalMutations&&i.hasCommittedMutations&&!i.hasLocalMutations}applyChanges(n,i,s,u){const p=this.Ta;this.Ta=n.Ta,this.mutatedKeys=n.mutatedKeys;const _=n.Aa.Q_();_.sort((Ce,He)=>function(Yt,Rn){const Wn=Ln=>{switch(Ln){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return G()}};return Wn(Yt)-Wn(Rn)}(Ce.type,He.type)||this.Ia(Ce.doc,He.doc)),this.Va(s),u=null!=u&&u;const R=i&&!u?this.ma():[],k=0===this.Pa.size&&this.current&&!u?1:0,q=k!==this.ha;return this.ha=k,0!==_.length||q?{snapshot:new iu(this.query,n.Ta,p,_,n.mutatedKeys,0===k,q,!1,!!s&&s.resumeToken.approximateByteSize()>0),fa:R}:{fa:R}}j_(n){return this.current&&"Offline"===n?(this.current=!1,this.applyChanges({Ta:this.Ta,Aa:new Ju,mutatedKeys:this.mutatedKeys,Xi:!1},!1)):{fa:[]}}ga(n){return!this.la.has(n)&&!!this.Ta.has(n)&&!this.Ta.get(n).hasLocalMutations}Va(n){n&&(n.addedDocuments.forEach(i=>this.la=this.la.add(i)),n.modifiedDocuments.forEach(i=>{}),n.removedDocuments.forEach(i=>this.la=this.la.delete(i)),this.current=n.current)}ma(){if(!this.current)return[];const n=this.Pa;this.Pa=ei(),this.Ta.forEach(s=>{this.ga(s.key)&&(this.Pa=this.Pa.add(s.key))});const i=[];return n.forEach(s=>{this.Pa.has(s)||i.push(new Mn(s))}),this.Pa.forEach(s=>{n.has(s)||i.push(new Jt(s))}),i}pa(n){this.la=n.hs,this.Pa=ei();const i=this.da(n.documents);return this.applyChanges(i,!0)}ya(){return iu.fromInitialDocuments(this.query,this.Ta,this.mutatedKeys,0===this.ha,this.hasCachedResults)}}class xr{constructor(n,i,s){this.query=n,this.targetId=i,this.view=s}}class Ci{constructor(n){this.key=n,this.wa=!1}}class Yo{constructor(n,i,s,u,p,_){this.localStore=n,this.remoteStore=i,this.eventManager=s,this.sharedClientState=u,this.currentUser=p,this.maxConcurrentLimboResolutions=_,this.Sa={},this.ba=new Eo(R=>No(R),ao),this.Da=new Map,this.Ca=new Set,this.va=new Hr(on.comparator),this.Fa=new Map,this.Ma=new xd,this.xa={},this.Oa=new Map,this.Na=_l.Ln(),this.onlineState="Unknown",this.La=void 0}get isPrimaryClient(){return!0===this.La}}function go(l,n){return ma.apply(this,arguments)}function ma(){return(ma=(0,he.A)(function*(l,n,i=!0){const s=rc(l);let u;const p=s.ba.get(n);return p?(s.sharedClientState.addLocalQueryTarget(p.targetId),u=p.view.ya()):u=yield qd(s,n,i,!0),u})).apply(this,arguments)}function Xd(l,n){return su.apply(this,arguments)}function su(){return(su=(0,he.A)(function*(l,n){const i=rc(l);yield qd(i,n,!0,!1)})).apply(this,arguments)}function qd(l,n,i,s){return ec.apply(this,arguments)}function ec(){return(ec=(0,he.A)(function*(l,n,i,s){const u=yield function fa(l,n){const i=ue(l);return i.persistence.runTransaction("Allocate target","readwrite",s=>{let u;return i.Qr.getTargetData(s,n).next(p=>p?(u=p,ve.resolve(u)):i.Qr.allocateTargetId(s).next(_=>(u=new b(n,_,"TargetPurposeListen",s.currentSequenceNumber),i.Qr.addTargetData(s,u).next(()=>u))))}).then(s=>{const u=i.ns.get(s.targetId);return(null===u||s.snapshotVersion.compareTo(u.snapshotVersion)>0)&&(i.ns=i.ns.insert(s.targetId,s),i.rs.set(n,s.targetId)),s})}(l.localStore,zn(n)),p=u.targetId,_=i?l.sharedClientState.addLocalQueryTarget(p):"not-current";let R;return s&&(R=yield function tc(l,n,i,s,u){return nc.apply(this,arguments)}(l,n,p,"current"===_,u.resumeToken)),l.isPrimaryClient&&i&&Za(l.remoteStore,u),R})).apply(this,arguments)}function nc(){return nc=(0,he.A)(function*(l,n,i,s,u){l.Ba=(He,yt,Yt)=>{return(Rn=(0,he.A)(function*(Ln,Cr,Gr,Or){let si=Cr.view.da(Gr);si.Xi&&(si=yield El(Ln.localStore,Cr.query,!1).then(({documents:ht})=>Cr.view.da(ht,si)));const Wi=Or&&Or.targetChanges.get(Cr.targetId),Ti=Or&&null!=Or.targetMismatches.get(Cr.targetId),Bt=Cr.view.applyChanges(si,Ln.isPrimaryClient,Wi,Ti);return Cg(Ln,Cr.targetId,Bt.fa),Bt.snapshot}),function Wn(Ln,Cr,Gr,Or){return Rn.apply(this,arguments)})(l,He,yt,Yt);var Rn};const p=yield El(l.localStore,n,!0),_=new Jn(n,p.hs),R=_.da(p.documents),k=Vi.createSynthesizedTargetChangeForCurrentChange(i,s&&"Offline"!==l.onlineState,u),q=_.applyChanges(R,l.isPrimaryClient,k);Cg(l,i,q.fa);const Ce=new xr(n,i,_);return l.ba.set(n,Ce),l.Da.has(i)?l.Da.get(i).push(n):l.Da.set(i,[n]),q.snapshot}),nc.apply(this,arguments)}function Tf(l,n,i){return au.apply(this,arguments)}function au(){return(au=(0,he.A)(function*(l,n,i){const s=ue(l),u=s.ba.get(n),p=s.Da.get(u.targetId);if(p.length>1)return s.Da.set(u.targetId,p.filter(_=>!ao(_,n))),void s.ba.delete(n);s.isPrimaryClient?(s.sharedClientState.removeLocalQueryTarget(u.targetId),s.sharedClientState.isActiveQueryTarget(u.targetId)||(yield pa(s.localStore,u.targetId,!1).then(()=>{s.sharedClientState.clearQueryState(u.targetId),i&&po(s.remoteStore,u.targetId),Zd(s,u.targetId)}).catch(Di))):(Zd(s,u.targetId),yield pa(s.localStore,u.targetId,!0))})).apply(this,arguments)}function Df(l,n){return Qd.apply(this,arguments)}function Qd(){return(Qd=(0,he.A)(function*(l,n){const i=ue(l),s=i.ba.get(n),u=i.Da.get(s.targetId);i.isPrimaryClient&&1===u.length&&(i.sharedClientState.removeLocalQueryTarget(s.targetId),po(i.remoteStore,s.targetId))})).apply(this,arguments)}function Jd(){return(Jd=(0,he.A)(function*(l,n,i){const s=function Gc(l){const n=ue(l);return n.remoteStore.remoteSyncer.applySuccessfulWrite=mv.bind(null,n),n.remoteStore.remoteSyncer.rejectFailedWrite=vv.bind(null,n),n}(l);try{const u=yield function(_,R){const k=ue(_),q=yn.now(),Ce=R.reduce((Yt,Rn)=>Yt.add(Rn.key),ei());let He,yt;return k.persistence.runTransaction("Locally write mutations","readwrite",Yt=>{let Rn=jr(),Wn=ei();return k.os.getEntries(Yt,Ce).next(Ln=>{Rn=Ln,Rn.forEach((Cr,Gr)=>{Gr.isValidDocument()||(Wn=Wn.add(Cr))})}).next(()=>k.localDocuments.getOverlayedDocuments(Yt,Rn)).next(Ln=>{He=Ln;const Cr=[];for(const Gr of R){const Or=Ia(Gr,He.get(Gr.key).overlayedDocument);null!=Or&&Cr.push(new Co(Gr.key,Or,Qr(Or.value.mapValue),Yi.exists(!0)))}return k.mutationQueue.addMutationBatch(Yt,q,Cr,R)}).next(Ln=>{yt=Ln;const Cr=Ln.applyToLocalDocumentSet(He,Wn);return k.documentOverlayCache.saveOverlays(Yt,Ln.batchId,Cr)})}).then(()=>({batchId:yt.batchId,changes:So(He)}))}(s.localStore,n);s.sharedClientState.addPendingMutation(u.batchId),function(_,R,k){let q=_.xa[_.currentUser.toKey()];q||(q=new Hr(nt)),q=q.insert(R,k),_.xa[_.currentUser.toKey()]=q}(s,u.batchId,i),yield Sl(s,u.changes),yield Xu(s.remoteStore)}catch(u){const p=Yu(u,"Failed to persist write");i.reject(p)}})).apply(this,arguments)}function vg(l,n){return bf.apply(this,arguments)}function bf(){return(bf=(0,he.A)(function*(l,n){const i=ue(l);try{const s=yield function ag(l,n){const i=ue(l),s=n.snapshotVersion;let u=i.ns;return i.persistence.runTransaction("Apply remote event","readwrite-primary",p=>{const _=i.os.newChangeBuffer({trackRemovals:!0});u=i.ns;const R=[];n.targetChanges.forEach((Ce,He)=>{const yt=u.get(He);if(!yt)return;R.push(i.Qr.removeMatchingKeys(p,Ce.removedDocuments,He).next(()=>i.Qr.addMatchingKeys(p,Ce.addedDocuments,He)));let Yt=yt.withSequenceNumber(p.currentSequenceNumber);var Wn,Ln,Cr;null!==n.targetMismatches.get(He)?Yt=Yt.withResumeToken(ui.EMPTY_BYTE_STRING,En.min()).withLastLimboFreeSnapshotVersion(En.min()):Ce.resumeToken.approximateByteSize()>0&&(Yt=Yt.withResumeToken(Ce.resumeToken,s)),u=u.insert(He,Yt),Ln=Yt,Cr=Ce,(0===(Wn=yt).resumeToken.approximateByteSize()||Ln.snapshotVersion.toMicroseconds()-Wn.snapshotVersion.toMicroseconds()>=3e8||Cr.addedDocuments.size+Cr.modifiedDocuments.size+Cr.removedDocuments.size>0)&&R.push(i.Qr.updateTargetData(p,Yt))});let k=jr(),q=ei();if(n.documentUpdates.forEach(Ce=>{n.resolvedLimboDocuments.has(Ce)&&R.push(i.persistence.referenceDelegate.updateLimboDocument(p,Ce))}),R.push(function ju(l,n,i){let s=ei(),u=ei();return i.forEach(p=>s=s.add(p)),n.getEntries(l,s).next(p=>{let _=jr();return i.forEach((R,k)=>{const q=p.get(R);k.isFoundDocument()!==q.isFoundDocument()&&(u=u.add(R)),k.isNoDocument()&&k.version.isEqual(En.min())?(n.removeEntry(R,k.readTime),_=_.insert(R,k)):!q.isValidDocument()||k.version.compareTo(q.version)>0||0===k.version.compareTo(q.version)&&q.hasPendingWrites?(n.addEntry(k),_=_.insert(R,k)):st("LocalStore","Ignoring outdated watch update for ",R,". Current version:",q.version," Watch version:",k.version)}),{cs:_,ls:u}})}(p,_,n.documentUpdates).next(Ce=>{k=Ce.cs,q=Ce.ls})),!s.isEqual(En.min())){const Ce=i.Qr.getLastRemoteSnapshotVersion(p).next(He=>i.Qr.setTargetsMetadata(p,p.currentSequenceNumber,s));R.push(Ce)}return ve.waitFor(R).next(()=>_.apply(p)).next(()=>i.localDocuments.getLocalViewOfDocuments(p,k,q)).next(()=>k)}).then(p=>(i.ns=u,p))}(i.localStore,n);n.targetChanges.forEach((u,p)=>{const _=i.Fa.get(p);_&&(X(u.addedDocuments.size+u.modifiedDocuments.size+u.removedDocuments.size<=1),u.addedDocuments.size>0?_.wa=!0:u.modifiedDocuments.size>0?X(_.wa):u.removedDocuments.size>0&&(X(_.wa),_.wa=!1))}),yield Sl(i,s,n)}catch(s){yield Di(s)}})).apply(this,arguments)}function _g(l,n,i){const s=ue(l);if(s.isPrimaryClient&&0===i||!s.isPrimaryClient&&1===i){const u=[];s.ba.forEach((p,_)=>{const R=_.view.j_(n);R.snapshot&&u.push(R.snapshot)}),function(_,R){const k=ue(_);k.onlineState=R;let q=!1;k.queries.forEach((Ce,He)=>{for(const yt of He.U_)yt.j_(R)&&(q=!0)}),q&&Kd(k)}(s.eventManager,n),u.length&&s.Sa.h_(u),s.onlineState=n,s.isPrimaryClient&&s.sharedClientState.setOnlineState(n)}}function wf(l,n,i){return Sf.apply(this,arguments)}function Sf(){return(Sf=(0,he.A)(function*(l,n,i){const s=ue(l);s.sharedClientState.updateQueryState(n,"rejected",i);const u=s.Fa.get(n),p=u&&u.key;if(p){let _=new Hr(on.comparator);_=_.insert(p,Wr.newNoDocument(p,En.min()));const R=ei().add(p),k=new lo(En.min(),new Map,new Hr(nt),_,R);yield vg(s,k),s.va=s.va.remove(p),s.Fa.delete(n),_v(s)}else yield pa(s.localStore,n,!1).then(()=>Zd(s,n,i)).catch(Di)})).apply(this,arguments)}function mv(l,n){return Rf.apply(this,arguments)}function Rf(){return(Rf=(0,he.A)(function*(l,n){const i=ue(l),s=n.batch.batchId;try{const u=yield function $u(l,n){const i=ue(l);return i.persistence.runTransaction("Acknowledge batch","readwrite-primary",s=>{const u=n.batch.keys(),p=i.os.newChangeBuffer({trackRemovals:!0});return function(R,k,q,Ce){const He=q.batch,yt=He.keys();let Yt=ve.resolve();return yt.forEach(Rn=>{Yt=Yt.next(()=>Ce.getEntry(k,Rn)).next(Wn=>{const Ln=q.docVersions.get(Rn);X(null!==Ln),Wn.version.compareTo(Ln)<0&&(He.applyToRemoteDocument(Wn,q),Wn.isValidDocument()&&(Wn.setReadTime(q.commitVersion),Ce.addEntry(Wn)))})}),Yt.next(()=>R.mutationQueue.removeMutationBatch(k,He))}(i,s,n,p).next(()=>p.apply(s)).next(()=>i.mutationQueue.performConsistencyCheck(s)).next(()=>i.documentOverlayCache.removeOverlaysForBatchId(s,u,n.batch.batchId)).next(()=>i.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(s,function(R){let k=ei();for(let q=0;q0&&(k=k.add(R.batch.mutations[q].key));return k}(n))).next(()=>i.localDocuments.getDocuments(s,u))})}(i.localStore,n);Mf(i,s,null),Ig(i,s),i.sharedClientState.updateMutationState(s,"acknowledged"),yield Sl(i,u)}catch(u){yield Di(u)}})).apply(this,arguments)}function vv(l,n,i){return yg.apply(this,arguments)}function yg(){return(yg=(0,he.A)(function*(l,n,i){const s=ue(l);try{const u=yield function(_,R){const k=ue(_);return k.persistence.runTransaction("Reject batch","readwrite-primary",q=>{let Ce;return k.mutationQueue.lookupMutationBatch(q,R).next(He=>(X(null!==He),Ce=He.keys(),k.mutationQueue.removeMutationBatch(q,He))).next(()=>k.mutationQueue.performConsistencyCheck(q)).next(()=>k.documentOverlayCache.removeOverlaysForBatchId(q,Ce,R)).next(()=>k.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(q,Ce)).next(()=>k.localDocuments.getDocuments(q,Ce))})}(s.localStore,n);Mf(s,n,i),Ig(s,n),s.sharedClientState.updateMutationState(n,"rejected",i),yield Sl(s,u)}catch(u){yield Di(u)}})).apply(this,arguments)}function Ig(l,n){(l.Oa.get(n)||[]).forEach(i=>{i.resolve()}),l.Oa.delete(n)}function Mf(l,n,i){const s=ue(l);let u=s.xa[s.currentUser.toKey()];if(u){const p=u.get(n);p&&(i?p.reject(i):p.resolve(),u=u.remove(n)),s.xa[s.currentUser.toKey()]=u}}function Zd(l,n,i=null){l.sharedClientState.removeLocalQueryTarget(n);for(const s of l.Da.get(n))l.ba.delete(s),i&&l.Sa.ka(s,i);l.Da.delete(n),l.isPrimaryClient&&l.Ma.Vr(n).forEach(s=>{l.Ma.containsKey(s)||Ag(l,s)})}function Ag(l,n){l.Ca.delete(n.path.canonicalString());const i=l.va.get(n);null!==i&&(po(l.remoteStore,i),l.va=l.va.remove(n),l.Fa.delete(i),_v(l))}function Cg(l,n,i){for(const s of i)s instanceof Jt?(l.Ma.addReference(s.key,n),Iy(l,s)):s instanceof Mn?(st("SyncEngine","Document no longer in limbo: "+s.key),l.Ma.removeReference(s.key,n),l.Ma.containsKey(s.key)||Ag(l,s.key)):G()}function Iy(l,n){const i=n.key,s=i.path.canonicalString();l.va.get(i)||l.Ca.has(s)||(st("SyncEngine","New document in limbo: "+i),l.Ca.add(s),_v(l))}function _v(l){for(;l.Ca.size>0&&l.va.size{_.push(s.Ba(k,n,i).then(q=>{if((q||i)&&s.isPrimaryClient&&s.sharedClientState.updateQueryState(k.targetId,q&&!q.fromCache?"current":"not-current"),q){u.push(q);const Ce=Gi.Ki(k.targetId,q);p.push(Ce)}}))}),yield Promise.all(_),s.Sa.h_(u),yield(R=(0,he.A)(function*(q,Ce){const He=ue(q);try{yield He.persistence.runTransaction("notifyLocalViewChanges","readwrite",yt=>ve.forEach(Ce,Yt=>ve.forEach(Yt.qi,Rn=>He.persistence.referenceDelegate.addReference(yt,Yt.targetId,Rn)).next(()=>ve.forEach(Yt.Qi,Rn=>He.persistence.referenceDelegate.removeReference(yt,Yt.targetId,Rn)))))}catch(yt){if(!Ge(yt))throw yt;st("LocalStore","Failed to update sequence numbers: "+yt)}for(const yt of Ce){const Yt=yt.targetId;if(!yt.fromCache){const Rn=He.ns.get(Yt),Ln=Rn.withLastLimboFreeSnapshotVersion(Rn.snapshotVersion);He.ns=He.ns.insert(Yt,Ln)}}}),function k(q,Ce){return R.apply(this,arguments)})(s.localStore,p))}),Pf.apply(this,arguments)}function Tg(l,n){return Dg.apply(this,arguments)}function Dg(){return(Dg=(0,he.A)(function*(l,n){const i=ue(l);if(!i.currentUser.isEqual(n)){st("SyncEngine","User change. New user:",n.toKey());const s=yield Fd(i.localStore,n);i.currentUser=n,(p=i).Oa.forEach(R=>{R.forEach(k=>{k.reject(new Ve(Ee.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),p.Oa.clear(),i.sharedClientState.handleUserChange(n,s.removedBatchIds,s.addedBatchIds),yield Sl(i,s.us)}var p})).apply(this,arguments)}function lu(l,n){const i=ue(l),s=i.Fa.get(n);if(s&&s.wa)return ei().add(s.key);{let u=ei();const p=i.Da.get(n);if(!p)return u;for(const _ of p){const R=i.ba.get(_);u=u.unionWith(R.view.Ea)}return u}}function rc(l){const n=ue(l);return n.remoteStore.remoteSyncer.applyRemoteEvent=vg.bind(null,n),n.remoteStore.remoteSyncer.getRemoteKeysForTarget=lu.bind(null,n),n.remoteStore.remoteSyncer.rejectListen=wf.bind(null,n),n.Sa.h_=gv.bind(null,n.eventManager),n.Sa.ka=mg.bind(null,n.eventManager),n}class nl{constructor(){this.synchronizeTabs=!1}initialize(n){var i=this;return(0,he.A)(function*(){i.serializer=Bc(n.databaseInfo.databaseId),i.sharedClientState=i.createSharedClientState(n),i.persistence=i.createPersistence(n),yield i.persistence.start(),i.localStore=i.createLocalStore(n),i.gcScheduler=i.createGarbageCollectionScheduler(n,i.localStore),i.indexBackfillerScheduler=i.createIndexBackfillerScheduler(n,i.localStore)})()}createGarbageCollectionScheduler(n,i){return null}createIndexBackfillerScheduler(n,i){return null}createLocalStore(n){return function nf(l,n,i,s){return new sg(l,n,i,s)}(this.persistence,new tf,n.initialUser,this.serializer)}createPersistence(n){return new Pc(xa.Hr,this.serializer)}createSharedClientState(n){return new af}terminate(){var n=this;return(0,he.A)(function*(){var i,s;null===(i=n.gcScheduler)||void 0===i||i.stop(),null===(s=n.indexBackfillerScheduler)||void 0===s||s.stop(),n.sharedClientState.shutdown(),yield n.persistence.shutdown()})()}}class rl{initialize(n,i){var s=this;return(0,he.A)(function*(){s.localStore||(s.localStore=n.localStore,s.sharedClientState=n.sharedClientState,s.datastore=s.createDatastore(i),s.remoteStore=s.createRemoteStore(i),s.eventManager=s.createEventManager(i),s.syncEngine=s.createSyncEngine(i,!n.synchronizeTabs),s.sharedClientState.onlineStateHandler=u=>_g(s.syncEngine,u,1),s.remoteStore.remoteSyncer.handleCredentialChange=Tg.bind(null,s.syncEngine),yield fg(s.remoteStore,s.syncEngine.isPrimaryClient))})()}createEventManager(n){return new Af}createDatastore(n){const i=Bc(n.databaseInfo.databaseId),s=new Ud(n.databaseInfo);return new lg(n.authCredentials,n.appCheckCredentials,s,i)}createRemoteStore(n){return s=this.localStore,u=this.datastore,p=n.asyncQueue,_=i=>_g(this.syncEngine,i,0),R=Bd.D()?new Bd:new lf,new bl(s,u,p,_,R);var s,u,p,_,R}createSyncEngine(n,i){return function(u,p,_,R,k,q,Ce){const He=new Yo(u,p,_,R,k,q);return Ce&&(He.La=!0),He}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,n.initialUser,n.maxConcurrentLimboResolutions,i)}terminate(){var n=this;return(0,he.A)(function*(){var i,s;yield(s=(0,he.A)(function*(p){const _=ue(p);st("RemoteStore","RemoteStore shutting down."),_.M_.add(5),yield nu(_),_.O_.shutdown(),_.N_.set("Unknown")}),function u(p){return s.apply(this,arguments)})(n.remoteStore),null===(i=n.datastore)||void 0===i||i.terminate()})()}}class Xc{constructor(n){this.observer=n,this.muted=!1}next(n){this.observer.next&&this.Ka(this.observer.next,n)}error(n){this.observer.error?this.Ka(this.observer.error,n):cn("Uncaught Error in snapshot listener:",n.toString())}$a(){this.muted=!0}Ka(n,i){this.muted||setTimeout(()=>{this.muted||n(i)},0)}}class wy{constructor(n,i,s,u){var p=this;this.authCredentials=n,this.appCheckCredentials=i,this.asyncQueue=s,this.databaseInfo=u,this.user=Oe.UNAUTHENTICATED,this.clientId=dr.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(s,function(){var _=(0,he.A)(function*(R){st("FirestoreClient","Received user=",R.uid),yield p.authCredentialListener(R),p.user=R});return function(R){return _.apply(this,arguments)}}()),this.appCheckCredentials.start(s,_=>(st("FirestoreClient","Received new app check token=",_),this.appCheckCredentialListener(_,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(n){this.authCredentialListener=n}setAppCheckTokenChangeListener(n){this.appCheckCredentialListener=n}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new Ve(Ee.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var n=this;this.asyncQueue.enterRestrictedMode();const i=new ut;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((0,he.A)(function*(){try{n._onlineComponents&&(yield n._onlineComponents.terminate()),n._offlineComponents&&(yield n._offlineComponents.terminate()),n.authCredentials.shutdown(),n.appCheckCredentials.shutdown(),i.resolve()}catch(s){const u=Yu(s,"Failed to shutdown persistence");i.reject(u)}})),i.promise}}function Of(l,n){return oh.apply(this,arguments)}function oh(){return oh=(0,he.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress(),st("FirestoreClient","Initializing OfflineComponentProvider");const i=l.configuration;yield n.initialize(i);let s=i.initialUser;l.setCredentialChangeListener(function(){var u=(0,he.A)(function*(p){s.isEqual(p)||(yield Fd(n.localStore,p),s=p)});return function(p){return u.apply(this,arguments)}}()),n.persistence.setDatabaseDeletedListener(()=>l.terminate()),l._offlineComponents=n}),oh.apply(this,arguments)}function Nf(l,n){return Rg.apply(this,arguments)}function Rg(){return(Rg=(0,he.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress();const i=yield function ic(l){return kf.apply(this,arguments)}(l);st("FirestoreClient","Initializing OnlineComponentProvider"),yield n.initialize(i,l.configuration),l.setCredentialChangeListener(s=>hg(n.remoteStore,s)),l.setAppCheckTokenChangeListener((s,u)=>hg(n.remoteStore,u)),l._onlineComponents=n})).apply(this,arguments)}function kf(){return(kf=(0,he.A)(function*(l){if(!l._offlineComponents)if(l._uninitializedComponentsProvider){st("FirestoreClient","Using user provided OfflineComponentProvider");try{yield Of(l,l._uninitializedComponentsProvider._offline)}catch(n){const i=n;if(!function Dv(l){return"FirebaseError"===l.name?l.code===Ee.FAILED_PRECONDITION||l.code===Ee.UNIMPLEMENTED:!(typeof DOMException<"u"&&l instanceof DOMException)||22===l.code||20===l.code||11===l.code}(i))throw i;vt("Error using user provided cache. Falling back to memory cache: "+i),yield Of(l,new nl)}}else st("FirestoreClient","Using default OfflineComponentProvider"),yield Of(l,new nl);return l._offlineComponents})).apply(this,arguments)}function qc(l){return Mg.apply(this,arguments)}function Mg(){return(Mg=(0,he.A)(function*(l){return l._onlineComponents||(l._uninitializedComponentsProvider?(st("FirestoreClient","Using user provided OnlineComponentProvider"),yield Nf(l,l._uninitializedComponentsProvider._online)):(st("FirestoreClient","Using default OnlineComponentProvider"),yield Nf(l,new rl))),l._onlineComponents})).apply(this,arguments)}function cu(l){return xg.apply(this,arguments)}function xg(){return(xg=(0,he.A)(function*(l){const n=yield qc(l),i=n.eventManager;return i.onListen=go.bind(null,n.syncEngine),i.onUnlisten=Tf.bind(null,n.syncEngine),i.onFirstRemoteStoreListen=Xd.bind(null,n.syncEngine),i.onLastRemoteStoreUnlisten=Df.bind(null,n.syncEngine),i})).apply(this,arguments)}function uh(l){const n={};return void 0!==l.timeoutSeconds&&(n.timeoutSeconds=l.timeoutSeconds),n}const Vf=new Map;function Bf(l,n,i){if(!i)throw new Ve(Ee.INVALID_ARGUMENT,`Function ${l}() cannot be called with an empty ${n}.`)}function Fg(l){if(!on.isDocumentKey(l))throw new Ve(Ee.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${l} has ${l.length}.`)}function du(l){if(on.isDocumentKey(l))throw new Ve(Ee.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${l} has ${l.length}.`)}function Uf(l){if(void 0===l)return"undefined";if(null===l)return"null";if("string"==typeof l)return l.length>20&&(l=`${l.substring(0,20)}...`),JSON.stringify(l);if("number"==typeof l||"boolean"==typeof l)return""+l;if("object"==typeof l){if(l instanceof Array)return"an array";{const n=(s=l).constructor?s.constructor.name:null;return n?`a custom ${n} object`:"an object"}}var s;return"function"==typeof l?"a function":G()}function Pi(l,n){if("_delegate"in l&&(l=l._delegate),!(l instanceof n)){if(n.name===l.constructor.name)throw new Ve(Ee.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const i=Uf(l);throw new Ve(Ee.INVALID_ARGUMENT,`Expected type '${n.name}', but it was: ${i}`)}}return l}class Pv{constructor(n){var i,s;if(void 0===n.host){if(void 0!==n.ssl)throw new Ve(Ee.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=n.host,this.ssl=null===(i=n.ssl)||void 0===i||i;if(this.credentials=n.credentials,this.ignoreUndefinedProperties=!!n.ignoreUndefinedProperties,this.localCache=n.localCache,void 0===n.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==n.cacheSizeBytes&&n.cacheSizeBytes<1048576)throw new Ve(Ee.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=n.cacheSizeBytes}(function Rv(l,n,i,s){if(!0===n&&!0===s)throw new Ve(Ee.INVALID_ARGUMENT,`${l} and ${i} cannot be used together.`)})("experimentalForceLongPolling",n.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",n.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!n.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==n.experimentalAutoDetectLongPolling&&!n.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=uh(null!==(s=n.experimentalLongPollingOptions)&&void 0!==s?s:{}),function(p){if(void 0!==p.timeoutSeconds){if(isNaN(p.timeoutSeconds))throw new Ve(Ee.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (must not be NaN)`);if(p.timeoutSeconds<5)throw new Ve(Ee.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (minimum allowed value is 5)`);if(p.timeoutSeconds>30)throw new Ve(Ee.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!n.useFetchStreams}isEqual(n){return this.host===n.host&&this.ssl===n.ssl&&this.credentials===n.credentials&&this.cacheSizeBytes===n.cacheSizeBytes&&this.experimentalForceLongPolling===n.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===n.experimentalAutoDetectLongPolling&&this.experimentalLongPollingOptions.timeoutSeconds===n.experimentalLongPollingOptions.timeoutSeconds&&this.ignoreUndefinedProperties===n.ignoreUndefinedProperties&&this.useFetchStreams===n.useFetchStreams}}class ch{constructor(n,i,s,u){this._authCredentials=n,this._appCheckCredentials=i,this._databaseId=s,this._app=u,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Pv({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new Ve(Ee.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(n){if(this._settingsFrozen)throw new Ve(Ee.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Pv(n),void 0!==n.credentials&&(this._authCredentials=function(s){if(!s)return new xn;switch(s.type){case"firstParty":return new kn(s.sessionIndex||"0",s.iamToken||null,s.authTokenFactory||null);case"provider":return s.client;default:throw new Ve(Ee.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(n.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(i){const s=Vf.get(i);s&&(st("ComponentProvider","Removing Datastore"),Vf.delete(i),s.terminate())}(this),Promise.resolve()}}class To{constructor(n,i,s){this.converter=i,this._query=s,this.type="query",this.firestore=n}withConverter(n){return new To(this.firestore,n,this._query)}}class Po{constructor(n,i,s){this.converter=i,this._key=s,this.type="document",this.firestore=n}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new il(this.firestore,this.converter,this._key.path.popLast())}withConverter(n){return new Po(this.firestore,n,this._key)}}class il extends To{constructor(n,i,s){super(n,i,se(s)),this._path=s,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const n=this._path.popLast();return n.isEmpty()?null:new Po(this.firestore,null,new on(n))}withConverter(n){return new il(this.firestore,n,this._path)}}function Py(l,n,...i){if(l=(0,Se.Ku)(l),Bf("collection","path",n),l instanceof ch){const s=Vn.fromString(n,...i);return du(s),new il(l,null,s)}{if(!(l instanceof Po||l instanceof il))throw new Ve(Ee.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(Vn.fromString(n,...i));return du(s),new il(l.firestore,null,s)}}function xv(l,n,...i){if(l=(0,Se.Ku)(l),1===arguments.length&&(n=dr.newId()),Bf("doc","path",n),l instanceof ch){const s=Vn.fromString(n,...i);return Fg(s),new Po(l,null,new on(s))}{if(!(l instanceof Po||l instanceof il))throw new Ve(Ee.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(Vn.fromString(n,...i));return Fg(s),new Po(l.firestore,l instanceof il?l.converter:null,new on(s))}}class xy{constructor(){this.iu=Promise.resolve(),this.su=[],this.ou=!1,this._u=[],this.au=null,this.uu=!1,this.cu=!1,this.lu=[],this.Yo=new tu(this,"async_queue_retry"),this.hu=()=>{const i=Dl();i&&st("AsyncQueue","Visibility state changed to "+i.visibilityState),this.Yo.Wo()};const n=Dl();n&&"function"==typeof n.addEventListener&&n.addEventListener("visibilitychange",this.hu)}get isShuttingDown(){return this.ou}enqueueAndForget(n){this.enqueue(n)}enqueueAndForgetEvenWhileRestricted(n){this.Pu(),this.Iu(n)}enterRestrictedMode(n){if(!this.ou){this.ou=!0,this.cu=n||!1;const i=Dl();i&&"function"==typeof i.removeEventListener&&i.removeEventListener("visibilitychange",this.hu)}}enqueue(n){if(this.Pu(),this.ou)return new Promise(()=>{});const i=new ut;return this.Iu(()=>this.ou&&this.cu?Promise.resolve():(n().then(i.resolve,i.reject),i.promise)).then(()=>i.promise)}enqueueRetryable(n){this.enqueueAndForget(()=>(this.su.push(n),this.Tu()))}Tu(){var n=this;return(0,he.A)(function*(){if(0!==n.su.length){try{yield n.su[0](),n.su.shift(),n.Yo.reset()}catch(i){if(!Ge(i))throw i;st("AsyncQueue","Operation failed with retryable error: "+i)}n.su.length>0&&n.Yo.$o(()=>n.Tu())}})()}Iu(n){const i=this.iu.then(()=>(this.uu=!0,n().catch(s=>{throw this.au=s,this.uu=!1,cn("INTERNAL UNHANDLED ERROR: ",function(_){let R=_.message||"";return _.stack&&(R=_.stack.includes(_.message)?_.stack:_.message+"\n"+_.stack),R}(s)),s}).then(s=>(this.uu=!1,s))));return this.iu=i,i}enqueueAfterDelay(n,i,s){this.Pu(),this.lu.indexOf(n)>-1&&(i=0);const u=gg.createAndSchedule(this,n,i,s,p=>this.Eu(p));return this._u.push(u),u}Pu(){this.au&&G()}verifyOperationInProgress(){}du(){var n=this;return(0,he.A)(function*(){let i;do{i=n.iu,yield i}while(i!==n.iu)})()}Au(n){for(const i of this._u)if(i.timerId===n)return!0;return!1}Ru(n){return this.du().then(()=>{this._u.sort((i,s)=>i.targetTimeMs-s.targetTimeMs);for(const i of this._u)if(i.skipDelay(),"all"!==n&&i.timerId===n)break;return this.du()})}Vu(n){this.lu.push(n)}Eu(n){const i=this._u.indexOf(n);this._u.splice(i,1)}}class qi extends ch{constructor(n,i,s,u){super(n,i,s,u),this.type="firestore",this._queue=new xy,this._persistenceKey=(null==u?void 0:u.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||Bg(this),this._firestoreClient.terminate()}}function dh(l,n){const i="object"==typeof l?l:(0,ae.Sx)(),s="string"==typeof l?l:n||"(default)",u=(0,ae.j6)(i,"firestore").getImmediate({identifier:s});if(!u._initialized){const p=(0,Se.yU)("firestore");p&&function Rl(l,n,i,s={}){var u;const p=(l=Pi(l,ch))._getSettings(),_=`${n}:${i}`;if("firestore.googleapis.com"!==p.host&&p.host!==_&&vt("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),l._setSettings(Object.assign(Object.assign({},p),{host:_,ssl:!1})),s.mockUserToken){let R,k;if("string"==typeof s.mockUserToken)R=s.mockUserToken,k=Oe.MOCK_USER;else{R=(0,Se.Fy)(s.mockUserToken,null===(u=l._app)||void 0===u?void 0:u.options.projectId);const q=s.mockUserToken.sub||s.mockUserToken.user_id;if(!q)throw new Ve(Ee.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");k=new Oe(q)}l._authCredentials=new un(new fn(R,k))}}(u,...p)}return u}function _o(l){return l._firestoreClient||Bg(l),l._firestoreClient.verifyNotTerminated(),l._firestoreClient}function Bg(l){var n,i,s;const u=l._freezeSettings(),p=(k=(null===(n=l._app)||void 0===n?void 0:n.options.appId)||"",new Kt(l._databaseId,k,l._persistenceKey,(Ce=u).host,Ce.ssl,Ce.experimentalForceLongPolling,Ce.experimentalAutoDetectLongPolling,uh(Ce.experimentalLongPollingOptions),Ce.useFetchStreams));var k,Ce;l._firestoreClient=new wy(l._authCredentials,l._appCheckCredentials,l._queue,p),null!==(i=u.localCache)&&void 0!==i&&i._offlineComponentProvider&&null!==(s=u.localCache)&&void 0!==s&&s._onlineComponentProvider&&(l._firestoreClient._uninitializedComponentsProvider={_offlineKind:u.localCache.kind,_offline:u.localCache._offlineComponentProvider,_online:u.localCache._onlineComponentProvider})}class oc{constructor(n){this._byteString=n}static fromBase64String(n){try{return new oc(ui.fromBase64String(n))}catch(i){throw new Ve(Ee.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+i)}}static fromUint8Array(n){return new oc(ui.fromUint8Array(n))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(n){return this._byteString.isEqual(n._byteString)}}class fu{constructor(...n){for(let i=0;i90)throw new Ve(Ee.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+n);if(!isFinite(i)||i<-180||i>180)throw new Ve(Ee.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+i);this._lat=n,this._long=i}get latitude(){return this._lat}get longitude(){return this._long}isEqual(n){return this._lat===n._lat&&this._long===n._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(n){return nt(this._lat,n._lat)||nt(this._long,n._long)}}const Fv=/^__.*__$/;class $f{constructor(n,i,s){this.data=n,this.fieldMask=i,this.fieldTransforms=s}toMutation(n,i){return null!==this.fieldMask?new Co(n,this.data,this.fieldMask,i,this.fieldTransforms):new ea(n,this.data,i,this.fieldTransforms)}}class $g{constructor(n,i,s){this.data=n,this.fieldMask=i,this.fieldTransforms=s}toMutation(n,i){return new Co(n,this.data,this.fieldMask,i,this.fieldTransforms)}}function jf(l){switch(l){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw G()}}class zf{constructor(n,i,s,u,p,_){this.settings=n,this.databaseId=i,this.serializer=s,this.ignoreUndefinedProperties=u,void 0===p&&this.mu(),this.fieldTransforms=p||[],this.fieldMask=_||[]}get path(){return this.settings.path}get fu(){return this.settings.fu}gu(n){return new zf(Object.assign(Object.assign({},this.settings),n),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}pu(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.wu(n),u}Su(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.mu(),u}bu(n){return this.gu({path:void 0,yu:!0})}Du(n){return Wf(n,this.settings.methodName,this.settings.Cu||!1,this.path,this.settings.vu)}contains(n){return void 0!==this.fieldMask.find(i=>n.isPrefixOf(i))||void 0!==this.fieldTransforms.find(i=>n.isPrefixOf(i.field))}mu(){if(this.path)for(let n=0;nk.covers(He.field))}else k=null,q=_.fieldTransforms;return new $f(new Kn(R),k,q)}class ac extends Jc{_toFieldTransform(n){if(2!==n.fu)throw n.Du(1===n.fu?`${this._methodName}() can only appear at the top level of your update data`:`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return n.fieldMask.push(n.path),null}isEqual(n){return n instanceof ac}}function ka(l,n){if(Bv(l=(0,Se.Ku)(l)))return Kg("Unsupported field value:",n,l),Vv(l,n);if(l instanceof Jc)return function(s,u){if(!jf(u.fu))throw u.Du(`${s._methodName}() can only be used with update() and set()`);if(!u.path)throw u.Du(`${s._methodName}() is not currently supported inside arrays`);const p=s._toFieldTransform(u);p&&u.fieldTransforms.push(p)}(l,n),null;if(void 0===l&&n.ignoreUndefinedProperties)return null;if(n.path&&n.fieldMask.push(n.path),l instanceof Array){if(n.settings.yu&&4!==n.fu)throw n.Du("Nested arrays are not supported");return function(s,u){const p=[];let _=0;for(const R of s){let k=ka(R,u.bu(_));null==k&&(k={nullValue:"NULL_VALUE"}),p.push(k),_++}return{arrayValue:{values:p}}}(l,n)}return function(s,u){if(null===(s=(0,Se.Ku)(s)))return{nullValue:"NULL_VALUE"};if("number"==typeof s)return hl(u.serializer,s);if("boolean"==typeof s)return{booleanValue:s};if("string"==typeof s)return{stringValue:s};if(s instanceof Date){const p=yn.fromDate(s);return{timestampValue:rs(u.serializer,p)}}if(s instanceof yn){const p=new yn(s.seconds,1e3*Math.floor(s.nanoseconds/1e3));return{timestampValue:rs(u.serializer,p)}}if(s instanceof Ug)return{geoPointValue:{latitude:s.latitude,longitude:s.longitude}};if(s instanceof oc)return{bytesValue:na(u.serializer,s._byteString)};if(s instanceof Po){const p=u.databaseId,_=s.firestore._databaseId;if(!_.isEqual(p))throw u.Du(`Document reference is for database ${_.projectId}/${_.database} but should be for database ${p.projectId}/${p.database}`);return{referenceValue:ra(s.firestore._databaseId||u.databaseId,s._key.path)}}throw u.Du(`Unsupported field value: ${Uf(s)}`)}(l,n)}function Vv(l,n){const i={};return Yr(l)?n.path&&n.path.length>0&&n.fieldMask.push(n.path):di(l,(s,u)=>{const p=ka(u,n.pu(s));null!=p&&(i[s]=p)}),{mapValue:{fields:i}}}function Bv(l){return!("object"!=typeof l||null===l||l instanceof Array||l instanceof Date||l instanceof yn||l instanceof Ug||l instanceof oc||l instanceof Po||l instanceof Jc)}function Kg(l,n,i){if(!Bv(i)||"object"!=typeof(u=i)||null===u||Object.getPrototypeOf(u)!==Object.prototype&&null!==Object.getPrototypeOf(u)){const s=Uf(i);throw n.Du("an object"===s?l+" a custom object":l+" "+s)}var u}function Zc(l,n,i){if((n=(0,Se.Ku)(n))instanceof fu)return n._internalPath;if("string"==typeof n)return Gf(l,n);throw Wf("Field path arguments must be of type string or ",l,!1,void 0,i)}const Uy=new RegExp("[~\\*/\\[\\]]");function Gf(l,n,i){if(n.search(Uy)>=0)throw Wf(`Invalid field path (${n}). Paths must not contain '~', '*', '/', '[', or ']'`,l,!1,void 0,i);try{return new fu(...n.split("."))._internalPath}catch{throw Wf(`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,l,!1,void 0,i)}}function Wf(l,n,i,s,u){const p=s&&!s.isEmpty(),_=void 0!==u;let R=`Function ${n}() called with invalid data`;i&&(R+=" (via `toFirestore()`)"),R+=". ";let k="";return(p||_)&&(k+=" (found",p&&(k+=` in field ${s}`),_&&(k+=` in document ${u}`),k+=")"),new Ve(Ee.INVALID_ARGUMENT,R+l+k)}function Uv(l,n){return l.some(i=>i.isEqual(n))}class ph{constructor(n,i,s,u,p){this._firestore=n,this._userDataWriter=i,this._key=s,this._document=u,this._converter=p}get id(){return this._key.path.lastSegment()}get ref(){return new Po(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const n=new $y(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(n)}return this._userDataWriter.convertValue(this._document.data.value)}}get(n){if(this._document){const i=this._document.data.field(ed("DocumentSnapshot.get",n));if(null!==i)return this._userDataWriter.convertValue(i)}}}class $y extends ph{data(){return super.data()}}function ed(l,n){return"string"==typeof n?Gf(l,n):n instanceof fu?n._internalPath:n._delegate._internalPath}class Qg{convertValue(n,i="none"){switch(H(n)){case 0:return null;case 1:return n.booleanValue;case 2:return fe(n.integerValue||n.doubleValue);case 3:return this.convertTimestamp(n.timestampValue);case 4:return this.convertServerTimestamp(n,i);case 5:return n.stringValue;case 6:return this.convertBytes(K(n.bytesValue));case 7:return this.convertReference(n.referenceValue);case 8:return this.convertGeoPoint(n.geoPointValue);case 9:return this.convertArray(n.arrayValue,i);case 10:return this.convertObject(n.mapValue,i);default:throw G()}}convertObject(n,i){return this.convertObjectMap(n.fields,i)}convertObjectMap(n,i="none"){const s={};return di(n,(u,p)=>{s[u]=this.convertValue(p,i)}),s}convertGeoPoint(n){return new Ug(fe(n.latitude),fe(n.longitude))}convertArray(n,i){return(n.values||[]).map(s=>this.convertValue(s,i))}convertServerTimestamp(n,i){switch(i){case"previous":const s=Be(n);return null==s?null:this.convertValue(s,i);case"estimate":return this.convertTimestamp(ct(n));default:return null}}convertTimestamp(n){const i=ge(n);return new yn(i.seconds,i.nanos)}convertDocumentKey(n,i){const s=Vn.fromString(n);X(E(s));const u=new Dn(s.get(1),s.get(3)),p=new on(s.popFirst(5));return u.isEqual(i)||cn(`Document ${p} contains a document reference within a different database (${u.projectId}/${u.database}) which is not supported. It will be treated as a reference in the current database (${i.projectId}/${i.database}) instead.`),p}}class Pl{constructor(n,i){this.hasPendingWrites=n,this.fromCache=i}isEqual(n){return this.hasPendingWrites===n.hasPendingWrites&&this.fromCache===n.fromCache}}class uc extends ph{constructor(n,i,s,u,p,_){super(n,i,s,u,_),this._firestore=n,this._firestoreImpl=n,this.metadata=p}exists(){return super.exists()}data(n={}){if(this._document){if(this._converter){const i=new rd(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(i,n)}return this._userDataWriter.convertValue(this._document.data.value,n.serverTimestamps)}}get(n,i={}){if(this._document){const s=this._document.data.field(ed("DocumentSnapshot.get",n));if(null!==s)return this._userDataWriter.convertValue(s,i.serverTimestamps)}}}class rd extends uc{data(n={}){return super.data(n)}}class xl{constructor(n,i,s,u){this._firestore=n,this._userDataWriter=i,this._snapshot=u,this.metadata=new Pl(u.hasPendingWrites,u.fromCache),this.query=s}get docs(){const n=[];return this.forEach(i=>n.push(i)),n}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(n,i){this._snapshot.docs.forEach(s=>{n.call(i,new rd(this._firestore,this._userDataWriter,s.key,s,new Pl(this._snapshot.mutatedKeys.has(s.key),this._snapshot.fromCache),this.query.converter))})}docChanges(n={}){const i=!!n.includeMetadataChanges;if(i&&this._snapshot.excludesMetadataChanges)throw new Ve(Ee.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===i||(this._cachedChanges=function(u,p){if(u._snapshot.oldDocs.isEmpty()){let _=0;return u._snapshot.docChanges.map(R=>({type:"added",doc:new rd(u._firestore,u._userDataWriter,R.doc.key,R.doc,new Pl(u._snapshot.mutatedKeys.has(R.doc.key),u._snapshot.fromCache),u.query.converter),oldIndex:-1,newIndex:_++}))}{let _=u._snapshot.oldDocs;return u._snapshot.docChanges.filter(R=>p||3!==R.type).map(R=>{const k=new rd(u._firestore,u._userDataWriter,R.doc.key,R.doc,new Pl(u._snapshot.mutatedKeys.has(R.doc.key),u._snapshot.fromCache),u.query.converter);let q=-1,Ce=-1;return 0!==R.type&&(q=_.indexOf(R.doc.key),_=_.delete(R.doc.key)),1!==R.type&&(_=_.add(R.doc),Ce=_.indexOf(R.doc.key)),{type:qy(R.type),doc:k,oldIndex:q,newIndex:Ce}})}}(this,i),this._cachedChangesIncludeMetadataChanges=i),this._cachedChanges}}function qy(l){switch(l){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return G()}}function Hv(l){l=Pi(l,Po);const n=Pi(l.firestore,qi);return function lh(l,n,i={}){const s=new ut;return l.asyncQueue.enqueueAndForget((0,he.A)(function*(){return function(p,_,R,k,q){const Ce=new Xc({next:yt=>{_.enqueueAndForget(()=>Zu(p,He));const Yt=yt.docs.has(R);!Yt&&yt.fromCache?q.reject(new Ve(Ee.UNAVAILABLE,"Failed to get document because the client is offline.")):Yt&&yt.fromCache&&k&&"server"===k.source?q.reject(new Ve(Ee.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):q.resolve(yt)},error:yt=>q.reject(yt)}),He=new v(se(R.path),Ce,{includeMetadataChanges:!0,ra:!0});return Ks(p,He)}(yield cu(l),l.asyncQueue,n,i,s)})),s.promise}(_o(n),l._key).then(i=>function Qf(l,n,i){const s=i.docs.get(n._key),u=new gu(l);return new uc(l,u,n._key,s,new Pl(i.hasPendingWrites,i.fromCache),n.converter)}(n,l,i))}class gu extends Qg{constructor(n){super(),this.firestore=n}convertBytes(n){return new oc(n)}convertReference(n){const i=this.convertDocumentKey(n,this.firestore._databaseId);return new Po(this.firestore,null,i)}}function Gv(l){l=Pi(l,To);const n=Pi(l.firestore,qi),i=_o(n),s=new gu(n);return function jy(l){if("L"===l.limitType&&0===l.explicitOrderBy.length)throw new Ve(Ee.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(l._query),function Ng(l,n,i={}){const s=new ut;return l.asyncQueue.enqueueAndForget((0,he.A)(function*(){return function(p,_,R,k,q){const Ce=new Xc({next:yt=>{_.enqueueAndForget(()=>Zu(p,He)),yt.fromCache&&"server"===k.source?q.reject(new Ve(Ee.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):q.resolve(yt)},error:yt=>q.reject(yt)}),He=new v(R,Ce,{includeMetadataChanges:!0,ra:!0});return Ks(p,He)}(yield cu(l),l.asyncQueue,n,i,s)})),s.promise}(i,l._query).then(u=>new xl(n,s,l,u))}function em(l,n,i){l=Pi(l,Po);const s=Pi(l.firestore,qi),u=function mh(l,n,i){let s;return s=l?i&&(i.merge||i.mergeFields)?l.toFirestore(n,i):l.toFirestore(n):n,s}(l.converter,n,i);return od(s,[fh(pu(s),"setDoc",l._key,u,null!==l.converter,i).toMutation(l._key,Yi.none())])}function Qy(l,n,i,...s){l=Pi(l,Po);const u=Pi(l.firestore,qi),p=pu(u);let _;return _="string"==typeof(n=(0,Se.Ku)(n))||n instanceof fu?function Lv(l,n,i,s,u,p){const _=l.Fu(1,n,i),R=[Zc(n,s,i)],k=[u];if(p.length%2!=0)throw new Ve(Ee.INVALID_ARGUMENT,`Function ${n}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let yt=0;yt=0;--yt)if(!Uv(q,R[yt])){const Yt=R[yt];let Rn=k[yt];Rn=(0,Se.Ku)(Rn);const Wn=_.Su(Yt);if(Rn instanceof ac)q.push(Yt);else{const Ln=ka(Rn,Wn);null!=Ln&&(q.push(Yt),Ce.set(Yt,Ln))}}const He=new yi(q);return new $g(Ce,He,_.fieldTransforms)}(p,"updateDoc",l._key,n,i,s):function Hf(l,n,i,s){const u=l.Fu(1,n,i);Kg("Data must be an object, but it was:",u,s);const p=[],_=Kn.empty();di(s,(k,q)=>{const Ce=Gf(n,k,i);q=(0,Se.Ku)(q);const He=u.Su(Ce);if(q instanceof ac)p.push(Ce);else{const yt=ka(q,He);null!=yt&&(p.push(Ce),_.set(Ce,yt))}});const R=new yi(p);return new $g(_,R,u.fieldTransforms)}(p,"updateDoc",l._key,n),od(u,[_.toMutation(l._key,Yi.exists(!0))])}function Yy(l){return od(Pi(l.firestore,qi),[new j(l._key,Yi.none())])}function od(l,n){return function(s,u){const p=new ut;return s.asyncQueue.enqueueAndForget((0,he.A)(function*(){return function Yd(l,n,i){return Jd.apply(this,arguments)}(yield function Pg(l){return qc(l).then(n=>n.syncEngine)}(s),u,p)})),p.promise}(_o(l),n)}!function(n,i=!0){Ct=ae.MF,(0,ae.om)(new Xe.uA("firestore",(s,{instanceIdentifier:u,options:p})=>{const _=s.getProvider("app").getImmediate(),R=new qi(new Je(s.getProvider("auth-internal")),new or(s.getProvider("app-check-internal")),function(q,Ce){if(!Object.prototype.hasOwnProperty.apply(q.options,["projectId"]))throw new Ve(Ee.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Dn(q.options.projectId,Ce)}(_,u),_);return p=Object.assign({useFetchStreams:i},p),R._setSettings(p),R},"PUBLIC").setMultipleInstances(!0)),(0,ae.KO)(Le,"4.6.3",n),(0,ae.KO)(Le,"4.6.3","esm2017")}();class Eh{constructor(n){return n}}const tp="firestore",sm=new c.nKC("angularfire2.firestore-instances");function h0(l){return(n,i)=>{const s=n.runOutsideAngular(()=>l(i));return new Eh(s)}}const f0={provide:class d0{constructor(){return(0,h.CA)(tp)}},deps:[[new c.Xx1,sm]]},p0={provide:Eh,useFactory:function Zv(l,n){const i=(0,h.lR)(tp,l,n);return i&&new Eh(i)},deps:[[new c.Xx1,sm],Z.XU]};function e_(l,...n){return(0,$.KO)("angularfire",h.xv.full,"fst"),(0,c.EmA)([p0,f0,{provide:sm,useFactory:h0(l),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,ke.DF],[new c.Xx1,h.Jv],...n]}])}const _0=(0,h.S3)(Py,!0),y0=(0,h.S3)(Yy,!0),lm=(0,h.S3)(xv,!0),cm=(0,h.S3)(Hv,!0),o_=(0,h.S3)(Gv,!0),dm=(0,h.S3)(dh,!0),P0=(0,h.S3)(em,!0),x0=(0,h.S3)(Qy,!0)},2107:(Pn,It,C)=>{"use strict";C.d(It,{wc:()=>Qr,qk:()=>Jr,c7:()=>Js,Xm:()=>Wo,KR:()=>Zo,bp:()=>us});var h=C(5407),c=C(4438),Z=C(7440),ke=C(8737),$=C(2214),he=C(467),ae=C(7852),Xe=C(1076),tt=C(1362);const Se="firebasestorage.googleapis.com",be="storageBucket";class at extends Xe.g{constructor(ee,qe,lt=0){super(xt(ee),`Firebase Storage: ${qe} (${xt(ee)})`),this.status_=lt,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,at.prototype)}get status(){return this.status_}set status(ee){this.status_=ee}_codeEquals(ee){return xt(ee)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(ee){this.customData.serverResponse=ee,this.message=this.customData.serverResponse?`${this._baseMessage}\n${this.customData.serverResponse}`:this._baseMessage}}var mt=function(ne){return ne.UNKNOWN="unknown",ne.OBJECT_NOT_FOUND="object-not-found",ne.BUCKET_NOT_FOUND="bucket-not-found",ne.PROJECT_NOT_FOUND="project-not-found",ne.QUOTA_EXCEEDED="quota-exceeded",ne.UNAUTHENTICATED="unauthenticated",ne.UNAUTHORIZED="unauthorized",ne.UNAUTHORIZED_APP="unauthorized-app",ne.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",ne.INVALID_CHECKSUM="invalid-checksum",ne.CANCELED="canceled",ne.INVALID_EVENT_NAME="invalid-event-name",ne.INVALID_URL="invalid-url",ne.INVALID_DEFAULT_BUCKET="invalid-default-bucket",ne.NO_DEFAULT_BUCKET="no-default-bucket",ne.CANNOT_SLICE_BLOB="cannot-slice-blob",ne.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",ne.NO_DOWNLOAD_URL="no-download-url",ne.INVALID_ARGUMENT="invalid-argument",ne.INVALID_ARGUMENT_COUNT="invalid-argument-count",ne.APP_DELETED="app-deleted",ne.INVALID_ROOT_OPERATION="invalid-root-operation",ne.INVALID_FORMAT="invalid-format",ne.INTERNAL_ERROR="internal-error",ne.UNSUPPORTED_ENVIRONMENT="unsupported-environment",ne}(mt||{});function xt(ne){return"storage/"+ne}function Dt(){return new at(mt.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function _e(){return new at(mt.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function $e(){return new at(mt.CANCELED,"User canceled the upload/download.")}function kt(){return new at(mt.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function cn(ne){return new at(mt.INVALID_ARGUMENT,ne)}function vt(){return new at(mt.APP_DELETED,"The Firebase app was deleted.")}function G(ne,ee){return new at(mt.INVALID_FORMAT,"String does not match format '"+ne+"': "+ee)}function X(ne){throw new at(mt.INTERNAL_ERROR,"Internal error: "+ne)}class ce{constructor(ee,qe){this.bucket=ee,this.path_=qe}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){const ee=encodeURIComponent;return"/b/"+ee(this.bucket)+"/o/"+ee(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(ee,qe){let lt;try{lt=ce.makeFromUrl(ee,qe)}catch{return new ce(ee,"")}if(""===lt.path)return lt;throw function Oe(ne){return new at(mt.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+ne+"'.")}(ee)}static makeFromUrl(ee,qe){let lt=null;const Vt="([A-Za-z0-9.\\-_]+)",x=new RegExp("^gs://"+Vt+"(/(.*))?$","i");function z(Qi){Qi.path_=decodeURIComponent(Qi.path)}const an=qe.replace(/[.]/g,"\\."),Ki=[{regex:x,indices:{bucket:1,path:3},postModify:function gn(Qi){"/"===Qi.path.charAt(Qi.path.length-1)&&(Qi.path_=Qi.path_.slice(0,-1))}},{regex:new RegExp(`^https?://${an}/v[A-Za-z0-9_]+/b/${Vt}/o(/([^?#]*).*)?$`,"i"),indices:{bucket:1,path:3},postModify:z},{regex:new RegExp(`^https?://${qe===Se?"(?:storage.googleapis.com|storage.cloud.google.com)":qe}/${Vt}/([^?#]*)`,"i"),indices:{bucket:1,path:2},postModify:z}];for(let Qi=0;Qiqe)throw cn(`Invalid value for '${ne}'. Expected ${qe} or less.`)}function On(ne,ee,qe){let lt=ee;return null==qe&&(lt=`https://${ee}`),`${qe}://${lt}/v0${ne}`}function or(ne){const ee=encodeURIComponent;let qe="?";for(const lt in ne)ne.hasOwnProperty(lt)&&(qe=qe+(ee(lt)+"=")+ee(ne[lt])+"&");return qe=qe.slice(0,-1),qe}var gr=function(ne){return ne[ne.NO_ERROR=0]="NO_ERROR",ne[ne.NETWORK_ERROR=1]="NETWORK_ERROR",ne[ne.ABORT=2]="ABORT",ne}(gr||{});function cr(ne,ee){const qe=ne>=500&&ne<600,Vt=-1!==[408,429].indexOf(ne),gn=-1!==ee.indexOf(ne);return qe||Vt||gn}class dr{constructor(ee,qe,lt,Vt,gn,B,x,se,z,Pe,an,zn=!0){this.url_=ee,this.method_=qe,this.headers_=lt,this.body_=Vt,this.successCodes_=gn,this.additionalRetryCodes_=B,this.callback_=x,this.errorCallback_=se,this.timeout_=z,this.progressCallback_=Pe,this.connectionFactory_=an,this.retry=zn,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((lr,pi)=>{this.resolve_=lr,this.reject_=pi,this.start_()})}start_(){const qe=(lt,Vt)=>{const gn=this.resolve_,B=this.reject_,x=Vt.connection;if(Vt.wasSuccessCode)try{const se=this.callback_(x,x.getResponse());!function ut(ne){return void 0!==ne}(se)?gn():gn(se)}catch(se){B(se)}else if(null!==x){const se=Dt();se.serverResponse=x.getErrorText(),B(this.errorCallback_?this.errorCallback_(x,se):se)}else B(Vt.canceled?this.appDelete_?vt():$e():_e())};this.canceled_?qe(0,new nt(!1,null,!0)):this.backoffId_=function Ee(ne,ee,qe){let lt=1,Vt=null,gn=null,B=!1,x=0;function se(){return 2===x}let z=!1;function Pe(...Ei){z||(z=!0,ee.apply(null,Ei))}function an(Ei){Vt=setTimeout(()=>{Vt=null,ne(lr,se())},Ei)}function zn(){gn&&clearTimeout(gn)}function lr(Ei,...ao){if(z)return void zn();if(Ei)return zn(),void Pe.call(null,Ei,...ao);if(se()||B)return zn(),void Pe.call(null,Ei,...ao);let Ki;lt<64&&(lt*=2),1===x?(x=2,Ki=0):Ki=1e3*(lt+Math.random()),an(Ki)}let pi=!1;function Hi(Ei){pi||(pi=!0,zn(),!z&&(null!==Vt?(Ei||(x=2),clearTimeout(Vt),an(0)):Ei||(x=1)))}return an(0),gn=setTimeout(()=>{B=!0,Hi(!0)},qe),Hi}((lt,Vt)=>{if(Vt)return void lt(!1,new nt(!1,null,!0));const gn=this.connectionFactory_();this.pendingConnection_=gn;const B=x=>{null!==this.progressCallback_&&this.progressCallback_(x.loaded,x.lengthComputable?x.total:-1)};null!==this.progressCallback_&&gn.addUploadProgressListener(B),gn.send(this.url_,this.method_,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&gn.removeUploadProgressListener(B),this.pendingConnection_=null;const x=gn.getErrorCode()===gr.NO_ERROR,se=gn.getStatus();if(!x||cr(se,this.additionalRetryCodes_)&&this.retry){const Pe=gn.getErrorCode()===gr.ABORT;return void lt(!1,new nt(!1,null,Pe))}const z=-1!==this.successCodes_.indexOf(se);lt(!0,new nt(z,gn))})},qe,this.timeout_)}getPromise(){return this.promise_}cancel(ee){this.canceled_=!0,this.appDelete_=ee||!1,null!==this.backoffId_&&function Ve(ne){ne(!1)}(this.backoffId_),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class nt{constructor(ee,qe,lt){this.wasSuccessCode=ee,this.connection=qe,this.canceled=!!lt}}function $n(...ne){const ee=function Vn(){return typeof BlobBuilder<"u"?BlobBuilder:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:void 0}();if(void 0!==ee){const qe=new ee;for(let lt=0;lt>6,128|63<):55296==(64512<)?qe>18,128|lt>>12&63,128|lt>>6&63,128|63<)):ee.push(239,191,189):56320==(64512<)?ee.push(239,191,189):ee.push(224|lt>>12,128|lt>>6&63,128|63<)}return new Uint8Array(ee)}function sr(ne,ee){switch(ne){case mr.BASE64:{const Vt=-1!==ee.indexOf("-"),gn=-1!==ee.indexOf("_");if(Vt||gn)throw G(ne,"Invalid character '"+(Vt?"-":"_")+"' found: is it base64url encoded?");break}case mr.BASE64URL:{const Vt=-1!==ee.indexOf("+"),gn=-1!==ee.indexOf("/");if(Vt||gn)throw G(ne,"Invalid character '"+(Vt?"+":"/")+"' found: is it base64 encoded?");ee=ee.replace(/-/g,"+").replace(/_/g,"/");break}}let qe;try{qe=function on(ne){if(typeof atob>"u")throw function st(ne){return new at(mt.UNSUPPORTED_ENVIRONMENT,`${ne} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`)}("base-64");return atob(ne)}(ee)}catch(Vt){throw Vt.message.includes("polyfill")?Vt:G(ne,"Invalid character found")}const lt=new Uint8Array(qe.length);for(let Vt=0;Vt][;base64],");const lt=qe[1]||null;null!=lt&&(this.base64=function Br(ne,ee){return ne.length>=ee.length&&ne.substring(ne.length-ee.length)===ee}(lt,";base64"),this.contentType=this.base64?lt.substring(0,lt.length-7):lt),this.rest=ee.substring(ee.indexOf(",")+1)}}class ar{constructor(ee,qe){let lt=0,Vt="";Je(ee)?(this.data_=ee,lt=ee.size,Vt=ee.type):ee instanceof ArrayBuffer?(qe?this.data_=new Uint8Array(ee):(this.data_=new Uint8Array(ee.byteLength),this.data_.set(new Uint8Array(ee))),lt=this.data_.length):ee instanceof Uint8Array&&(qe?this.data_=ee:(this.data_=new Uint8Array(ee.length),this.data_.set(ee)),lt=ee.length),this.size_=lt,this.type_=Vt}size(){return this.size_}type(){return this.type_}slice(ee,qe){if(Je(this.data_)){const Vt=function In(ne,ee,qe){return ne.webkitSlice?ne.webkitSlice(ee,qe):ne.mozSlice?ne.mozSlice(ee,qe):ne.slice?ne.slice(ee,qe):null}(this.data_,ee,qe);return null===Vt?null:new ar(Vt)}{const lt=new Uint8Array(this.data_.buffer,ee,qe-ee);return new ar(lt,!0)}}static getBlob(...ee){if(Sn()){const qe=ee.map(lt=>lt instanceof ar?lt.data_:lt);return new ar($n.apply(null,qe))}{const qe=ee.map(B=>un(B)?function Vr(ne,ee){switch(ne){case mr.RAW:return new br(rr(ee));case mr.BASE64:case mr.BASE64URL:return new br(sr(ne,ee));case mr.DATA_URL:return new br(function Tr(ne){const ee=new ii(ne);return ee.base64?sr(mr.BASE64,ee.rest):function Mr(ne){let ee;try{ee=decodeURIComponent(ne)}catch{throw G(mr.DATA_URL,"Malformed data URL.")}return rr(ee)}(ee.rest)}(ee),function yr(ne){return new ii(ne).contentType}(ee))}throw Dt()}(mr.RAW,B).data:B.data_);let lt=0;qe.forEach(B=>{lt+=B.byteLength});const Vt=new Uint8Array(lt);let gn=0;return qe.forEach(B=>{for(let x=0;x{Promise.resolve().then(()=>ne(...ee))}}let jn=null;class zr{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=gr.NO_ERROR,this.sendPromise_=new Promise(ee=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=gr.ABORT,ee()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=gr.NETWORK_ERROR,ee()}),this.xhr_.addEventListener("load",()=>{ee()})})}send(ee,qe,lt,Vt){if(this.sent_)throw X("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(qe,ee,!0),void 0!==Vt)for(const gn in Vt)Vt.hasOwnProperty(gn)&&this.xhr_.setRequestHeader(gn,Vt[gn].toString());return void 0!==lt?this.xhr_.send(lt):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw X("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw X("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw X("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw X("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(ee){return this.xhr_.getResponseHeader(ee)}addUploadProgressListener(ee){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",ee)}removeUploadProgressListener(ee){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",ee)}}class $r extends zr{initXhr(){this.xhr_.responseType="text"}}function Pr(){return jn?jn():new $r}class hi{constructor(ee,qe,lt=null){this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=ee,this._blob=qe,this._metadata=lt,this._mappings=de(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=Vt=>{if(this._request=void 0,this._chunkMultiplier=1,Vt._codeEquals(mt.CANCELED))this._needToFetchStatus=!0,this.completeTransitions_();else{const gn=this.isExponentialBackoffExpired();if(cr(Vt.status,[])){if(!gn)return this.sleepTime=Math.max(2*this.sleepTime,1e3),this._needToFetchStatus=!0,void this.completeTransitions_();Vt=_e()}this._error=Vt,this._transition("error")}},this._metadataErrorHandler=Vt=>{this._request=void 0,Vt._codeEquals(mt.CANCELED)?this.completeTransitions_():(this._error=Vt,this._transition("error"))},this.sleepTime=0,this.maxSleepTime=this._ref.storage.maxUploadRetryTime,this._promise=new Promise((Vt,gn)=>{this._resolve=Vt,this._reject=gn,this._start()}),this._promise.then(null,()=>{})}isExponentialBackoffExpired(){return this.sleepTime>this.maxSleepTime}_makeProgressCallback(){const ee=this._transferred;return qe=>this._updateProgress(ee+qe)}_shouldDoResumable(ee){return ee.size()>262144}_start(){"running"===this._state&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this.pendingTimeout=setTimeout(()=>{this.pendingTimeout=void 0,this._continueUpload()},this.sleepTime):this._oneShotUpload())}_resolveToken(ee){Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then(([qe,lt])=>{switch(this._state){case"running":ee(qe,lt);break;case"canceling":this._transition("canceled");break;case"pausing":this._transition("paused")}})}_createResumable(){this._resolveToken((ee,qe)=>{const lt=function re(ne,ee,qe,lt,Vt){const gn=ee.bucketOnlyServerUrl(),B=te(ee,lt,Vt),x={name:B.fullPath},se=On(gn,ne.host,ne._protocol),Pe={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${lt.size()}`,"X-Goog-Upload-Header-Content-Type":B.contentType,"Content-Type":"application/json; charset=utf-8"},an=gt(B,qe),pi=new Xn(se,"POST",function lr(Hi){let Ei;O(Hi);try{Ei=Hi.getResponseHeader("X-Goog-Upload-URL")}catch{dn(!1)}return dn(un(Ei)),Ei},ne.maxUploadRetryTime);return pi.urlParams=x,pi.headers=Pe,pi.body=an,pi.errorHandler=fr(ee),pi}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),Vt=this._ref.storage._makeRequest(lt,Pr,ee,qe);this._request=Vt,Vt.getPromise().then(gn=>{this._request=void 0,this._uploadUrl=gn,this._needToFetchStatus=!1,this.completeTransitions_()},this._errorHandler)})}_fetchStatus(){const ee=this._uploadUrl;this._resolveToken((qe,lt)=>{const Vt=function we(ne,ee,qe,lt){const se=new Xn(qe,"POST",function gn(z){const Pe=O(z,["active","final"]);let an=null;try{an=z.getResponseHeader("X-Goog-Upload-Size-Received")}catch{dn(!1)}an||dn(!1);const zn=Number(an);return dn(!isNaN(zn)),new M(zn,lt.size(),"final"===Pe)},ne.maxUploadRetryTime);return se.headers={"X-Goog-Upload-Command":"query"},se.errorHandler=fr(ee),se}(this._ref.storage,this._ref._location,ee,this._blob),gn=this._ref.storage._makeRequest(Vt,Pr,qe,lt);this._request=gn,gn.getPromise().then(B=>{this._request=void 0,this._updateProgress(B.current),this._needToFetchStatus=!1,B.finalized&&(this._needToFetchMetadata=!0),this.completeTransitions_()},this._errorHandler)})}_continueUpload(){const ee=262144*this._chunkMultiplier,qe=new M(this._transferred,this._blob.size()),lt=this._uploadUrl;this._resolveToken((Vt,gn)=>{let B;try{B=function St(ne,ee,qe,lt,Vt,gn,B,x){const se=new M(0,0);if(B?(se.current=B.current,se.total=B.total):(se.current=0,se.total=lt.size()),lt.size()!==se.total)throw function Cn(){return new at(mt.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.")}();const z=se.total-se.current;let Pe=z;Vt>0&&(Pe=Math.min(Pe,Vt));const an=se.current;let lr="";lr=0===Pe?"finalize":z===Pe?"upload, finalize":"upload";const pi={"X-Goog-Upload-Command":lr,"X-Goog-Upload-Offset":`${se.current}`},Hi=lt.slice(an,an+Pe);if(null===Hi)throw kt();const Ki=new Xn(qe,"POST",function Ei(Qi,qo){const cs=O(Qi,["active","final"]),ys=se.current+Pe,Eo=lt.size();let ko;return ko="final"===cs?wn(ee,gn)(Qi,qo):null,new M(ys,Eo,"final"===cs,ko)},ee.maxUploadRetryTime);return Ki.headers=pi,Ki.body=Hi.uploadData(),Ki.progressCallback=x||null,Ki.errorHandler=fr(ne),Ki}(this._ref._location,this._ref.storage,lt,this._blob,ee,this._mappings,qe,this._makeProgressCallback())}catch(se){return this._error=se,void this._transition("error")}const x=this._ref.storage._makeRequest(B,Pr,Vt,gn,!1);this._request=x,x.getPromise().then(se=>{this._increaseMultiplier(),this._request=void 0,this._updateProgress(se.current),se.finalized?(this._metadata=se.metadata,this._transition("success")):this.completeTransitions_()},this._errorHandler)})}_increaseMultiplier(){262144*this._chunkMultiplier*2<33554432&&(this._chunkMultiplier*=2)}_fetchMetadata(){this._resolveToken((ee,qe)=>{const lt=function oi(ne,ee,qe){const Vt=On(ee.fullServerUrl(),ne.host,ne._protocol),B=ne.maxOperationRetryTime,x=new Xn(Vt,"GET",wn(ne,qe),B);return x.errorHandler=Ur(ee),x}(this._ref.storage,this._ref._location,this._mappings),Vt=this._ref.storage._makeRequest(lt,Pr,ee,qe);this._request=Vt,Vt.getPromise().then(gn=>{this._request=void 0,this._metadata=gn,this._transition("success")},this._metadataErrorHandler)})}_oneShotUpload(){this._resolveToken((ee,qe)=>{const lt=function ze(ne,ee,qe,lt,Vt){const gn=ee.bucketOnlyServerUrl(),B={"X-Goog-Upload-Protocol":"multipart"},se=function x(){let Ki="";for(let Qi=0;Qi<2;Qi++)Ki+=Math.random().toString().slice(2);return Ki}();B["Content-Type"]="multipart/related; boundary="+se;const z=te(ee,lt,Vt),Pe=gt(z,qe),lr=ar.getBlob("--"+se+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+Pe+"\r\n--"+se+"\r\nContent-Type: "+z.contentType+"\r\n\r\n",lt,"\r\n--"+se+"--");if(null===lr)throw kt();const pi={name:z.fullPath},Hi=On(gn,ne.host,ne._protocol),ao=ne.maxUploadRetryTime,No=new Xn(Hi,"POST",wn(ne,qe),ao);return No.urlParams=pi,No.headers=B,No.body=lr.uploadData(),No.errorHandler=fr(ee),No}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),Vt=this._ref.storage._makeRequest(lt,Pr,ee,qe);this._request=Vt,Vt.getPromise().then(gn=>{this._request=void 0,this._metadata=gn,this._updateProgress(this._blob.size()),this._transition("success")},this._errorHandler)})}_updateProgress(ee){const qe=this._transferred;this._transferred=ee,this._transferred!==qe&&this._notifyObservers()}_transition(ee){if(this._state!==ee)switch(ee){case"canceling":case"pausing":this._state=ee,void 0!==this._request?this._request.cancel():this.pendingTimeout&&(clearTimeout(this.pendingTimeout),this.pendingTimeout=void 0,this.completeTransitions_());break;case"running":const qe="paused"===this._state;this._state=ee,qe&&(this._notifyObservers(),this._start());break;case"paused":case"error":case"success":this._state=ee,this._notifyObservers();break;case"canceled":this._error=$e(),this._state=ee,this._notifyObservers()}}completeTransitions_(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start()}}get snapshot(){const ee=pr(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:ee,metadata:this._metadata,task:this,ref:this._ref}}on(ee,qe,lt,Vt){const gn=new qn(qe||void 0,lt||void 0,Vt||void 0);return this._addObserver(gn),()=>{this._removeObserver(gn)}}then(ee,qe){return this._promise.then(ee,qe)}catch(ee){return this.then(null,ee)}_addObserver(ee){this._observers.push(ee),this._notifyObserver(ee)}_removeObserver(ee){const qe=this._observers.indexOf(ee);-1!==qe&&this._observers.splice(qe,1)}_notifyObservers(){this._finishPromise(),this._observers.slice().forEach(qe=>{this._notifyObserver(qe)})}_finishPromise(){if(void 0!==this._resolve){let ee=!0;switch(pr(this._state)){case"success":Sr(this._resolve.bind(null,this.snapshot))();break;case"canceled":case"error":Sr(this._reject.bind(null,this._error))();break;default:ee=!1}ee&&(this._resolve=void 0,this._reject=void 0)}}_notifyObserver(ee){switch(pr(this._state)){case"running":case"paused":ee.next&&Sr(ee.next.bind(ee,this.snapshot))();break;case"success":ee.complete&&Sr(ee.complete.bind(ee))();break;default:ee.error&&Sr(ee.error.bind(ee,this._error))()}}resume(){const ee="paused"===this._state||"pausing"===this._state;return ee&&this._transition("running"),ee}pause(){const ee="running"===this._state;return ee&&this._transition("pausing"),ee}cancel(){const ee="running"===this._state||"pausing"===this._state;return ee&&this._transition("canceling"),ee}}class Yr{constructor(ee,qe){this._service=ee,this._location=qe instanceof ce?qe:ce.makeFromUrl(qe,ee.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(ee,qe){return new Yr(ee,qe)}get root(){const ee=new ce(this._location.bucket,"");return this._newRef(this._service,ee)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return Zr(this._location.path)}get storage(){return this._service}get parent(){const ee=function li(ne){if(0===ne.length)return null;const ee=ne.lastIndexOf("/");return-1===ee?"":ne.slice(0,ee)}(this._location.path);if(null===ee)return null;const qe=new ce(this._location.bucket,ee);return new Yr(this._service,qe)}_throwIfRoot(ee){if(""===this._location.path)throw function Re(ne){return new at(mt.INVALID_ROOT_OPERATION,"The operation '"+ne+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(ee)}}function ge(ne){ne._throwIfRoot("getDownloadURL");const ee=function vi(ne,ee,qe){const Vt=On(ee.fullServerUrl(),ne.host,ne._protocol),B=ne.maxOperationRetryTime,x=new Xn(Vt,"GET",function wr(ne,ee){return function qe(lt,Vt){const gn=$t(ne,Vt,ee);return dn(null!==gn),function le(ne,ee,qe,lt){const Vt=Lr(ee);if(null===Vt||!un(Vt.downloadTokens))return null;const gn=Vt.downloadTokens;if(0===gn.length)return null;const B=encodeURIComponent;return gn.split(",").map(z=>{const an=ne.fullPath;return On("/b/"+B(ne.bucket)+"/o/"+B(an),qe,lt)+or({alt:"media",token:z})})[0]}(gn,Vt,ne.host,ne._protocol)}}(ne,qe),B);return x.errorHandler=Ur(ee),x}(ne.storage,ne._location,de());return ne.storage.makeRequestWithTokens(ee,Pr).then(qe=>{if(null===qe)throw function Et(){return new at(mt.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}();return qe})}function ct(ne,ee){if(ne instanceof w){const qe=ne;if(null==qe._bucket)throw function Ct(){return new at(mt.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+be+"' property when initializing the app?")}();const lt=new Yr(qe,qe._bucket);return null!=ee?ct(lt,ee):lt}return void 0!==ee?function K(ne,ee){const qe=function Di(ne,ee){const qe=ee.split("/").filter(lt=>lt.length>0).join("/");return 0===ne.length?qe:ne+"/"+qe}(ne._location.path,ee),lt=new ce(ne._location.bucket,qe);return new Yr(ne.storage,lt)}(ne,ee):ne}function Dn(ne,ee){const qe=null==ee?void 0:ee[be];return null==qe?null:ce.makeFromBucketSpec(qe,ne)}class w{constructor(ee,qe,lt,Vt,gn){this.app=ee,this._authProvider=qe,this._appCheckProvider=lt,this._url=Vt,this._firebaseVersion=gn,this._bucket=null,this._host=Se,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=Vt?ce.makeFromBucketSpec(Vt,this._host):Dn(this._host,this.app.options)}get host(){return this._host}set host(ee){this._host=ee,this._bucket=null!=this._url?ce.makeFromBucketSpec(this._url,ee):Dn(ee,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(ee){kn("time",0,Number.POSITIVE_INFINITY,ee),this._maxUploadRetryTime=ee}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(ee){kn("time",0,Number.POSITIVE_INFINITY,ee),this._maxOperationRetryTime=ee}_getAuthToken(){var ee=this;return(0,he.A)(function*(){if(ee._overrideAuthToken)return ee._overrideAuthToken;const qe=ee._authProvider.getImmediate({optional:!0});if(qe){const lt=yield qe.getToken();if(null!==lt)return lt.accessToken}return null})()}_getAppCheckToken(){var ee=this;return(0,he.A)(function*(){const qe=ee._appCheckProvider.getImmediate({optional:!0});return qe?(yield qe.getToken()).token:null})()}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(ee=>ee.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(ee){return new Yr(this,ee)}_makeRequest(ee,qe,lt,Vt,gn=!0){if(this._deleted)return new ue(vt());{const B=function Fr(ne,ee,qe,lt,Vt,gn,B=!0){const x=or(ne.urlParams),se=ne.url+x,z=Object.assign({},ne.headers);return function yn(ne,ee){ee&&(ne["X-Firebase-GMPID"]=ee)}(z,ee),function Lt(ne,ee){null!==ee&&ee.length>0&&(ne.Authorization="Firebase "+ee)}(z,qe),function Xt(ne,ee){ne["X-Firebase-Storage-Version"]="webjs/"+(null!=ee?ee:"AppManager")}(z,gn),function En(ne,ee){null!==ee&&(ne["X-Firebase-AppCheck"]=ee)}(z,lt),new dr(se,ne.method,z,ne.body,ne.successCodes,ne.additionalRetryCodes,ne.handler,ne.errorHandler,ne.timeout,ne.progressCallback,Vt,B)}(ee,this._appId,lt,Vt,qe,this._firebaseVersion,gn);return this._requests.add(B),B.getPromise().then(()=>this._requests.delete(B),()=>this._requests.delete(B)),B}}makeRequestWithTokens(ee,qe){var lt=this;return(0,he.A)(function*(){const[Vt,gn]=yield Promise.all([lt._getAuthToken(),lt._getAppCheckToken()]);return lt._makeRequest(ee,qe,Vt,gn).getPromise()})()}}const H="@firebase/storage",P="storage";function ai(ne,ee,qe){return function Zn(ne,ee,qe){return ne._throwIfRoot("uploadBytesResumable"),new hi(ne,new ar(ee),qe)}(ne=(0,Xe.Ku)(ne),ee,qe)}function Ot(ne){return ge(ne=(0,Xe.Ku)(ne))}function en(ne,ee){return function Kt(ne,ee){if(ee&&function je(ne){return/^[A-Za-z]+:\/\//.test(ne)}(ee)){if(ne instanceof w)return function Be(ne,ee){return new Yr(ne,ee)}(ne,ee);throw cn("To use ref(service, url), the first argument must be a Storage instance.")}return ct(ne,ee)}(ne=(0,Xe.Ku)(ne),ee)}function vn(ne=(0,ae.Sx)(),ee){ne=(0,Xe.Ku)(ne);const lt=(0,ae.j6)(ne,P).getImmediate({identifier:ee}),Vt=(0,Xe.yU)("storage");return Vt&&function bn(ne,ee,qe,lt={}){!function Hn(ne,ee,qe,lt={}){ne.host=`${ee}:${qe}`,ne._protocol="http";const{mockUserToken:Vt}=lt;Vt&&(ne._overrideAuthToken="string"==typeof Vt?Vt:(0,Xe.Fy)(Vt,ne.app.options.projectId))}(ne,ee,qe,lt)}(lt,...Vt),lt}function _r(ne,{instanceIdentifier:ee}){const qe=ne.getProvider("app").getImmediate(),lt=ne.getProvider("auth-internal"),Vt=ne.getProvider("app-check-internal");return new w(qe,lt,Vt,ee,ae.MF)}!function Kn(){(0,ae.om)(new tt.uA(P,_r,"PUBLIC").setMultipleInstances(!0)),(0,ae.KO)(H,"0.12.5",""),(0,ae.KO)(H,"0.12.5","esm2017")}();class Qr{constructor(ee){return ee}}const Wr="storage",Fi=new c.nKC("angularfire2.storage-instances");function yo(ne){return(ee,qe)=>{const lt=ee.runOutsideAngular(()=>ne(qe));return new Qr(lt)}}const Jo={provide:class kr{constructor(){return(0,h.CA)(Wr)}},deps:[[new c.Xx1,Fi]]},Kr={provide:Qr,useFactory:function Bi(ne,ee){const qe=(0,h.lR)(Wr,ne,ee);return qe&&new Qr(qe)},deps:[[new c.Xx1,Fi],Z.XU]};function Wo(ne,...ee){return(0,$.KO)("angularfire",h.xv.full,"gcs"),(0,c.EmA)([Kr,Jo,{provide:Fi,useFactory:yo(ne),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,ke.DF],[new c.Xx1,h.Jv],...ee]}])}const Jr=(0,h.S3)(Ot,!0),Js=(0,h.S3)(vn,!0),Zo=(0,h.S3)(en,!0),us=(0,h.S3)(ai,!0)},9032:(Pn,It,C)=>{"use strict";C.d(It,{L9:()=>ar,oc:()=>$t,v_:()=>Ge,cw:()=>Ae});var h=C(5407),c=C(4438),Z=C(7440),ke=C(2214),$=C(467),he=C(7852),ae=C(1362),Xe=C(1076),tt=C(1635),Se="@firebase/vertexai-preview",be="0.0.2";const et="vertexAI",it="us-central1",mt=be,xt="gl-js";class Dt{constructor(gt,ft,Qt,sn){var Tn;this.app=gt,this.options=sn;const Xn=null==Qt?void 0:Qt.getImmediate({optional:!0}),dn=null==ft?void 0:ft.getImmediate({optional:!0});this.auth=dn||null,this.appCheck=Xn||null,this.location=(null===(Tn=this.options)||void 0===Tn?void 0:Tn.location)||it}_delete(){return Promise.resolve()}}const Tt=new Xe.FA("vertexAI","VertexAI",{"fetch-error":"Error fetching from {$url}: {$message}","invalid-content":"Content formatting error: {$message}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase VertexAI requires this field tocontain a valid API key.',"no-project-id":'The "projectId" field is empty in the local Firebase config. Firebase VertexAI requires this field tocontain a valid project ID.',"no-model":"Must provide a model name. Example: getGenerativeModel({ model: 'my-model-name' })","parse-failed":"Parsing failed: {$message}","response-error":"Response error: {$message}. Response body stored in error.customData.response"});var At=function(le){return le.GENERATE_CONTENT="generateContent",le.STREAM_GENERATE_CONTENT="streamGenerateContent",le.COUNT_TOKENS="countTokens",le}(At||{});class Ie{constructor(gt,ft,Qt,sn,Tn){this.model=gt,this.task=ft,this.apiSettings=Qt,this.stream=sn,this.requestOptions=Tn}toString(){var gt;let sn=`${(null===(gt=this.requestOptions)||void 0===gt?void 0:gt.baseUrl)||"https://firebaseml.googleapis.com"}/v2beta`;return sn+=`/projects/${this.apiSettings.project}`,sn+=`/locations/${this.apiSettings.location}`,sn+=`/${this.model}`,sn+=`:${this.task}`,this.stream&&(sn+="?alt=sse"),sn}get fullModelString(){let gt=`projects/${this.apiSettings.project}`;return gt+=`/locations/${this.apiSettings.location}`,gt+=`/${this.model}`,gt}}function _e(le){return $e.apply(this,arguments)}function $e(){return($e=(0,$.A)(function*(le){const gt=new Headers;if(gt.append("Content-Type","application/json"),gt.append("x-goog-api-client",function Ze(){const le=[];return le.push(`${xt}/${mt}`),le.push(`fire/${mt}`),le.join(" ")}()),gt.append("x-goog-api-key",le.apiSettings.apiKey),le.apiSettings.getAppCheckToken){const ft=yield le.apiSettings.getAppCheckToken();ft&&!ft.error&>.append("X-Firebase-AppCheck",ft.token)}if(le.apiSettings.getAuthToken){const ft=yield le.apiSettings.getAuthToken();ft&>.append("Authorization",`Firebase ${ft.accessToken}`)}return gt})).apply(this,arguments)}function Oe(){return(Oe=(0,$.A)(function*(le,gt,ft,Qt,sn,Tn){const Xn=new Ie(le,gt,ft,Qt,Tn);return{url:Xn.toString(),fetchOptions:Object.assign(Object.assign({},Cn(Tn)),{method:"POST",headers:yield _e(Xn),body:sn})}})).apply(this,arguments)}function Ct(le,gt,ft,Qt,sn,Tn){return kt.apply(this,arguments)}function kt(){return kt=(0,$.A)(function*(le,gt,ft,Qt,sn,Tn){const Xn=new Ie(le,gt,ft,Qt,Tn);let dn;try{const wn=yield function Le(le,gt,ft,Qt,sn,Tn){return Oe.apply(this,arguments)}(le,gt,ft,Qt,sn,Tn);if(dn=yield fetch(wn.url,wn.fetchOptions),!dn.ok){let hr="";try{const wr=yield dn.json();hr=wr.error.message,wr.error.details&&(hr+=` ${JSON.stringify(wr.error.details)}`)}catch{}throw new Error(`[${dn.status} ${dn.statusText}] ${hr}`)}}catch(wn){const hr=wn,wr=Tt.create("fetch-error",{url:Xn.toString(),message:hr.message});throw wr.stack=hr.stack,wr}return dn}),kt.apply(this,arguments)}function Cn(le){const gt={};if(null!=le&&le.timeout&&(null==le?void 0:le.timeout)>=0){const ft=new AbortController,Qt=ft.signal;setTimeout(()=>ft.abort(),le.timeout),gt.signal=Qt}return gt}const Et=["user","model","function","system"];var ce=function(le){return le.FINISH_REASON_UNSPECIFIED="FINISH_REASON_UNSPECIFIED",le.STOP="STOP",le.MAX_TOKENS="MAX_TOKENS",le.SAFETY="SAFETY",le.RECITATION="RECITATION",le.OTHER="OTHER",le}(ce||{});function Ve(le){return le.text=()=>{if(le.candidates&&le.candidates.length>0){if(le.candidates.length>1&&console.warn(`This response had ${le.candidates.length} candidates. Returning text from the first candidate only. Access response.candidates directly to use the other candidates.`),un(le.candidates[0]))throw Tt.create("response-error",{message:`${Je(le)}`,response:le});return function ut(le){var gt,ft,Qt,sn;const Tn=[];if(null!==(ft=null===(gt=le.candidates)||void 0===gt?void 0:gt[0].content)&&void 0!==ft&&ft.parts)for(const Xn of null===(sn=null===(Qt=le.candidates)||void 0===Qt?void 0:Qt[0].content)||void 0===sn?void 0:sn.parts)Xn.text&&Tn.push(Xn.text);return Tn.length>0?Tn.join(""):""}(le)}if(le.promptFeedback)throw Tt.create("response-error",{message:`Text not available. ${Je(le)}`,response:le});return""},le.functionCalls=()=>{if(le.candidates&&le.candidates.length>0){if(le.candidates.length>1&&console.warn(`This response had ${le.candidates.length} candidates. Returning function calls from the first candidate only. Access response.candidates directly to use the other candidates.`),un(le.candidates[0]))throw Tt.create("response-error",{message:`${Je(le)}`,response:le});return function fn(le){var gt,ft,Qt,sn;const Tn=[];if(null!==(ft=null===(gt=le.candidates)||void 0===gt?void 0:gt[0].content)&&void 0!==ft&&ft.parts)for(const Xn of null===(sn=null===(Qt=le.candidates)||void 0===Qt?void 0:Qt[0].content)||void 0===sn?void 0:sn.parts)Xn.functionCall&&Tn.push(Xn.functionCall);if(Tn.length>0)return Tn}(le)}if(le.promptFeedback)throw Tt.create("response-error",{message:`Function call not available. ${Je(le)}`,response:le})},le}const xn=[ce.RECITATION,ce.SAFETY];function un(le){return!!le.finishReason&&xn.includes(le.finishReason)}function Je(le){var gt,ft,Qt;let sn="";if(le.candidates&&0!==le.candidates.length||!le.promptFeedback){if(null!==(Qt=le.candidates)&&void 0!==Qt&&Qt[0]){const Tn=le.candidates[0];un(Tn)&&(sn+=`Candidate was blocked due to ${Tn.finishReason}`,Tn.finishMessage&&(sn+=`: ${Tn.finishMessage}`))}}else sn+="Response was blocked",!(null===(gt=le.promptFeedback)||void 0===gt)&>.blockReason&&(sn+=` due to ${le.promptFeedback.blockReason}`),null!==(ft=le.promptFeedback)&&void 0!==ft&&ft.blockReasonMessage&&(sn+=`: ${le.promptFeedback.blockReasonMessage}`);return sn}const Sn=/^data\: (.*)(?:\n\n|\r\r|\r\n\r\n)/;function On(le){return or.apply(this,arguments)}function or(){return(or=(0,$.A)(function*(le){const gt=[],ft=le.getReader();for(;;){const{done:Qt,value:sn}=yield ft.read();if(Qt)return Ve(dr(gt));gt.push(sn)}})).apply(this,arguments)}function gr(le){return(0,tt.AQ)(this,arguments,function*(){const ft=le.getReader();for(;;){const{value:Qt,done:sn}=yield(0,tt.N3)(ft.read());if(sn)break;yield yield(0,tt.N3)(Ve(Qt))}})}function dr(le){const gt=le[le.length-1],ft={promptFeedback:null==gt?void 0:gt.promptFeedback};for(const Qt of le)if(Qt.candidates)for(const sn of Qt.candidates){const Tn=sn.index;if(ft.candidates||(ft.candidates=[]),ft.candidates[Tn]||(ft.candidates[Tn]={index:sn.index}),ft.candidates[Tn].citationMetadata=sn.citationMetadata,ft.candidates[Tn].finishReason=sn.finishReason,ft.candidates[Tn].finishMessage=sn.finishMessage,ft.candidates[Tn].safetyRatings=sn.safetyRatings,sn.content&&sn.content.parts){ft.candidates[Tn].content||(ft.candidates[Tn].content={role:sn.content.role||"user",parts:[]});const Xn={};for(const dn of sn.content.parts)dn.text&&(Xn.text=dn.text),dn.functionCall&&(Xn.functionCall=dn.functionCall),0===Object.keys(Xn).length&&(Xn.text=""),ft.candidates[Tn].content.parts.push(Xn)}}return ft}function nt(le,gt,ft,Qt){return Lt.apply(this,arguments)}function Lt(){return(Lt=(0,$.A)(function*(le,gt,ft,Qt){return function kn(le){const ft=function cr(le){const gt=le.getReader();return new ReadableStream({start(Qt){let sn="";return function Tn(){return gt.read().then(({value:Xn,done:dn})=>{if(dn)return sn.trim()?void Qt.error(Tt.create("parse-failed",{message:"Failed to parse stream"})):void Qt.close();sn+=Xn;let hr,wn=sn.match(Sn);for(;wn;){try{hr=JSON.parse(wn[1])}catch{return void Qt.error(Tt.create("parse-failed",{message:`Error parsing JSON response: "${wn[1]}"`}))}Qt.enqueue(hr),sn=sn.substring(wn[0].length),wn=sn.match(Sn)}return Tn()})}()}})}(le.body.pipeThrough(new TextDecoderStream("utf8",{fatal:!0}))),[Qt,sn]=ft.tee();return{stream:gr(Qt),response:On(sn)}}(yield Ct(gt,At.STREAM_GENERATE_CONTENT,le,!0,JSON.stringify(ft),Qt))})).apply(this,arguments)}function Xt(le,gt,ft,Qt){return yn.apply(this,arguments)}function yn(){return(yn=(0,$.A)(function*(le,gt,ft,Qt){return{response:Ve(yield(yield Ct(gt,At.GENERATE_CONTENT,le,!1,JSON.stringify(ft),Qt)).json())}})).apply(this,arguments)}function En(le){if(null!=le){if("string"==typeof le)return{role:"system",parts:[{text:le}]};if(le.text)return{role:"system",parts:[le]};if(le.parts)return le.role?le:{role:"system",parts:le.parts}}}function Fr(le){let gt=[];if("string"==typeof le)gt=[{text:le}];else for(const ft of le)gt.push("string"==typeof ft?{text:ft}:ft);return function Vn(le){const gt={role:"user",parts:[]},ft={role:"function",parts:[]};let Qt=!1,sn=!1;for(const Tn of le)"functionResponse"in Tn?(ft.parts.push(Tn),sn=!0):(gt.parts.push(Tn),Qt=!0);if(Qt&&sn)throw Tt.create("invalid-content",{message:"Within a single message, FunctionResponse cannot be mixed with other type of part in the request for sending chat message."});if(!Qt&&!sn)throw Tt.create("invalid-content",{message:"No content is provided for sending chat message."});return Qt?gt:ft}(gt)}function $n(le){let gt;return gt=le.contents?le:{contents:[Fr(le)]},le.systemInstruction&&(gt.systemInstruction=En(le.systemInstruction)),gt}const In=["text","inlineData","functionCall","functionResponse"],on={user:["text","inlineData"],function:["functionResponse"],model:["text","functionCall"],system:["text"]},mr={user:["model"],function:["model"],model:["user","function"],system:[]},Vr="SILENT_ERROR";class rr{constructor(gt,ft,Qt,sn){this.model=ft,this.params=Qt,this.requestOptions=sn,this._history=[],this._sendPromise=Promise.resolve(),this._apiSettings=gt,null!=Qt&&Qt.history&&(function br(le){let gt=null;for(const ft of le){const{role:Qt,parts:sn}=ft;if(!gt&&"user"!==Qt)throw Tt.create("invalid-content",{message:`First content should be with role 'user', got ${Qt}`});if(!Et.includes(Qt))throw Tt.create("invalid-content",{message:`Each item should include role field. Got ${Qt} but valid roles are: ${JSON.stringify(Et)}`});if(!Array.isArray(sn))throw Tt.create("invalid-content",{message:"Content should have 'parts' property with an array of Parts"});if(0===sn.length)throw Tt.create("invalid-content",{message:"Each Content should have at least one part"});const Tn={text:0,inlineData:0,functionCall:0,functionResponse:0};for(const dn of sn)for(const wn of In)wn in dn&&(Tn[wn]+=1);const Xn=on[Qt];for(const dn of In)if(!Xn.includes(dn)&&Tn[dn]>0)throw Tt.create("invalid-content",{message:`Content with role '${Qt}' can't contain '${dn}' part`});if(gt&&!mr[Qt].includes(gt.role))throw Tt.create("invalid-content",{message:`Content with role '${Qt}' can't follow '${gt.role}'. Valid previous roles: ${JSON.stringify(mr)}`});gt=ft}}(Qt.history),this._history=Qt.history)}getHistory(){var gt=this;return(0,$.A)(function*(){return yield gt._sendPromise,gt._history})()}sendMessage(gt){var ft=this;return(0,$.A)(function*(){var Qt,sn,Tn,Xn,dn;yield ft._sendPromise;const wn=Fr(gt),hr={safetySettings:null===(Qt=ft.params)||void 0===Qt?void 0:Qt.safetySettings,generationConfig:null===(sn=ft.params)||void 0===sn?void 0:sn.generationConfig,tools:null===(Tn=ft.params)||void 0===Tn?void 0:Tn.tools,toolConfig:null===(Xn=ft.params)||void 0===Xn?void 0:Xn.toolConfig,systemInstruction:null===(dn=ft.params)||void 0===dn?void 0:dn.systemInstruction,contents:[...ft._history,wn]};let wr={};return ft._sendPromise=ft._sendPromise.then(()=>Xt(ft._apiSettings,ft.model,hr,ft.requestOptions)).then(fr=>{var Ur,oi;if(fr.response.candidates&&fr.response.candidates.length>0){ft._history.push(wn);const Ir={parts:(null===(Ur=fr.response.candidates)||void 0===Ur?void 0:Ur[0].content.parts)||[],role:(null===(oi=fr.response.candidates)||void 0===oi?void 0:oi[0].content.role)||"model"};ft._history.push(Ir)}else{const Ir=Je(fr.response);Ir&&console.warn(`sendMessage() was unsuccessful. ${Ir}. Inspect response object for details.`)}wr=fr}),yield ft._sendPromise,wr})()}sendMessageStream(gt){var ft=this;return(0,$.A)(function*(){var Qt,sn,Tn,Xn,dn;yield ft._sendPromise;const wn=Fr(gt),hr={safetySettings:null===(Qt=ft.params)||void 0===Qt?void 0:Qt.safetySettings,generationConfig:null===(sn=ft.params)||void 0===sn?void 0:sn.generationConfig,tools:null===(Tn=ft.params)||void 0===Tn?void 0:Tn.tools,toolConfig:null===(Xn=ft.params)||void 0===Xn?void 0:Xn.toolConfig,systemInstruction:null===(dn=ft.params)||void 0===dn?void 0:dn.systemInstruction,contents:[...ft._history,wn]},wr=nt(ft._apiSettings,ft.model,hr,ft.requestOptions);return ft._sendPromise=ft._sendPromise.then(()=>wr).catch(fr=>{throw new Error(Vr)}).then(fr=>fr.response).then(fr=>{if(fr.candidates&&fr.candidates.length>0){ft._history.push(wn);const Ur=Object.assign({},fr.candidates[0].content);Ur.role||(Ur.role="model"),ft._history.push(Ur)}else{const Ur=Je(fr);Ur&&console.warn(`sendMessageStream() was unsuccessful. ${Ur}. Inspect response object for details.`)}}).catch(fr=>{fr.message!==Vr&&console.error(fr)}),wr})()}}function sr(){return(sr=(0,$.A)(function*(le,gt,ft,Qt){return(yield Ct(gt,At.COUNT_TOKENS,le,!1,JSON.stringify(ft),Qt)).json()})).apply(this,arguments)}class ii{constructor(gt,ft,Qt){var sn,Tn,Xn,dn;if(null===(Tn=null===(sn=gt.app)||void 0===sn?void 0:sn.options)||void 0===Tn||!Tn.apiKey)throw Tt.create("no-api-key");if(null===(dn=null===(Xn=gt.app)||void 0===Xn?void 0:Xn.options)||void 0===dn||!dn.projectId)throw Tt.create("no-project-id");this._apiSettings={apiKey:gt.app.options.apiKey,project:gt.app.options.projectId,location:gt.location},gt.appCheck&&(this._apiSettings.getAppCheckToken=()=>gt.appCheck.getToken()),gt.auth&&(this._apiSettings.getAuthToken=()=>gt.auth.getToken()),this.model=ft.model.includes("/")?ft.model.startsWith("models/")?`publishers/google/${ft.model}`:ft.model:`publishers/google/models/${ft.model}`,this.generationConfig=ft.generationConfig||{},this.safetySettings=ft.safetySettings||[],this.tools=ft.tools,this.toolConfig=ft.toolConfig,this.systemInstruction=En(ft.systemInstruction),this.requestOptions=Qt||{}}generateContent(gt){var ft=this;return(0,$.A)(function*(){const Qt=$n(gt);return Xt(ft._apiSettings,ft.model,Object.assign({generationConfig:ft.generationConfig,safetySettings:ft.safetySettings,tools:ft.tools,toolConfig:ft.toolConfig,systemInstruction:ft.systemInstruction},Qt),ft.requestOptions)})()}generateContentStream(gt){var ft=this;return(0,$.A)(function*(){const Qt=$n(gt);return nt(ft._apiSettings,ft.model,Object.assign({generationConfig:ft.generationConfig,safetySettings:ft.safetySettings,tools:ft.tools,toolConfig:ft.toolConfig,systemInstruction:ft.systemInstruction},Qt),ft.requestOptions)})()}startChat(gt){return new rr(this._apiSettings,this.model,Object.assign({tools:this.tools,toolConfig:this.toolConfig,systemInstruction:this.systemInstruction},gt),this.requestOptions)}countTokens(gt){var ft=this;return(0,$.A)(function*(){const Qt=$n(gt);return function Mr(le,gt,ft,Qt){return sr.apply(this,arguments)}(ft._apiSettings,ft.model,Qt)})()}}function Tr(le=(0,he.Sx)(),gt){return le=(0,Xe.Ku)(le),(0,he.j6)(le,et).getImmediate({identifier:(null==gt?void 0:gt.location)||it})}function yr(le,gt,ft){if(!gt.model)throw Tt.create("no-model");return new ii(le,gt,ft)}!function Br(){(0,he.om)(new ae.uA(et,(le,{instanceIdentifier:gt})=>{const ft=le.getProvider("app").getImmediate(),Qt=le.getProvider("auth-internal"),sn=le.getProvider("app-check-internal");return new Dt(ft,Qt,sn,{location:gt})},"PUBLIC").setMultipleInstances(!0)),(0,he.KO)(Se,be),(0,he.KO)(Se,be,"esm2017")}();class ar{constructor(gt){return gt}}const Lr="vertexai",Zr=new c.nKC("angularfire2.vertexai-instances");function rt(le){return(gt,ft)=>{const Qt=gt.runOutsideAngular(()=>le(ft));return new ar(Qt)}}const Nt={provide:class li{constructor(){return(0,h.CA)(Lr)}},deps:[[new c.Xx1,Zr]]},pt={provide:ar,useFactory:function ve(le,gt){const ft=(0,h.lR)(Lr,le,gt);return ft&&new ar(ft)},deps:[[new c.Xx1,Zr],Z.XU]};function Ae(le,...gt){return(0,ke.KO)("angularfire",h.xv.full,"vertexai"),(0,c.EmA)([pt,Nt,{provide:Zr,useFactory:rt(le),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,h.Jv],...gt]}])}const Ge=(0,h.S3)(Tr,!0),$t=(0,h.S3)(yr,!0)},5407:(Pn,It,C)=>{"use strict";C.d(It,{xv:()=>at,u0:()=>_e,Jv:()=>zt,CA:()=>Dt,lR:()=>xt,S3:()=>cn});var h=C(9842),c=C(4438),Z=C(2214),ke=C(6780),he=C(9687);const Xe=new class ae extends he.q{}(class $ extends ke.R{constructor(Re,G){super(Re,G),this.scheduler=Re,this.work=G}schedule(Re,G=0){return G>0?super.schedule(Re,G):(this.delay=G,this.state=Re,this.scheduler.flush(this),this)}execute(Re,G){return G>0||this.closed?super.execute(Re,G):this._execute(Re,G)}requestAsyncId(Re,G,X=0){return null!=X&&X>0||null==X&&this.delay>0?super.requestAsyncId(Re,G,X):(Re.flush(this),0)}});var Se=C(3236),be=C(1985),et=C(8141),it=C(6745),Ye=C(941);const at=new c.RxE("ANGULARFIRE2_VERSION");function xt(vt,Re,G){if(Re){if(1===Re.length)return Re[0];const ue=Re.filter(Ee=>Ee.app===G);if(1===ue.length)return ue[0]}return G.container.getProvider(vt).getImmediate({optional:!0})}const Dt=(vt,Re)=>{const G=Re?[Re]:(0,Z.Dk)(),X=[];return G.forEach(ce=>{ce.container.getProvider(vt).instances.forEach(Ee=>{X.includes(Ee)||X.push(Ee)})}),X};class zt{constructor(){return Dt(Tt)}}const Tt="app-check";function At(){}class Ie{constructor(Re,G=Xe){(0,h.A)(this,"zone",void 0),(0,h.A)(this,"delegate",void 0),this.zone=Re,this.delegate=G}now(){return this.delegate.now()}schedule(Re,G,X){const ce=this.zone;return this.delegate.schedule(function(Ee){ce.runGuarded(()=>{Re.apply(this,[Ee])})},G,X)}}class Ze{constructor(Re){(0,h.A)(this,"zone",void 0),(0,h.A)(this,"task",null),this.zone=Re}call(Re,G){const X=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",At,{},At,At)),G.pipe((0,et.M)({next:X,complete:X,error:X})).subscribe(Re).add(X)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let _e=(()=>{var vt;class Re{constructor(X){(0,h.A)(this,"ngZone",void 0),(0,h.A)(this,"outsideAngular",void 0),(0,h.A)(this,"insideAngular",void 0),this.ngZone=X,this.outsideAngular=X.runOutsideAngular(()=>new Ie(Zone.current)),this.insideAngular=X.run(()=>new Ie(Zone.current,Se.E)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return vt=Re,(0,h.A)(Re,"\u0275fac",function(X){return new(X||vt)(c.KVO(c.SKi))}),(0,h.A)(Re,"\u0275prov",c.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})),Re})();function $e(){const vt=globalThis.\u0275AngularFireScheduler;if(!vt)throw new Error("Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return vt}function Oe(vt){return $e().ngZone.run(()=>vt())}function Cn(vt){return function Et(vt){return function(G){return(G=G.lift(new Ze(vt.ngZone))).pipe((0,it._)(vt.outsideAngular),(0,Ye.Q)(vt.insideAngular))}}($e())(vt)}const st=(vt,Re)=>function(){const X=arguments;return Re&&setTimeout(()=>{"scheduled"===Re.state&&Re.invoke()},10),Oe(()=>vt.apply(void 0,X))},cn=(vt,Re)=>function(){let G;const X=arguments;for(let ue=0;ueZone.current.scheduleMacroTask("firebaseZoneBlock",At,{},At,At)))),X[ue]=st(X[ue],G));const ce=function Le(vt){return $e().ngZone.runOutsideAngular(()=>vt())}(()=>vt.apply(this,X));if(!Re){if(ce instanceof be.c){const ue=$e();return ce.pipe((0,it._)(ue.outsideAngular),(0,Ye.Q)(ue.insideAngular))}return Oe(()=>ce)}return ce instanceof be.c?ce.pipe(Cn):ce instanceof Promise?Oe(()=>new Promise((ue,Ee)=>ce.then(Ve=>Oe(()=>ue(Ve)),Ve=>Oe(()=>Ee(Ve))))):"function"==typeof ce&&G?function(){return setTimeout(()=>{G&&"scheduled"===G.state&&G.invoke()},10),ce.apply(this,arguments)}:Oe(()=>ce)}},4341:(Pn,It,C)=>{"use strict";C.d(It,{YN:()=>Vt,zX:()=>Bi,VZ:()=>Jo,cz:()=>_e,kq:()=>at,vO:()=>Xt,BC:()=>Vn,vS:()=>Pt});var h=C(4438),c=C(177),Z=C(8455),ke=C(1985),$=C(3073),he=C(8750),ae=C(9326),Xe=C(4360),tt=C(6450),Se=C(8496),et=C(6354);let it=(()=>{var B;class x{constructor(z,Pe){this._renderer=z,this._elementRef=Pe,this.onChange=an=>{},this.onTouched=()=>{}}setProperty(z,Pe){this._renderer.setProperty(this._elementRef.nativeElement,z,Pe)}registerOnTouched(z){this.onTouched=z}registerOnChange(z){this.onChange=z}setDisabledState(z){this.setProperty("disabled",z)}}return(B=x).\u0275fac=function(z){return new(z||B)(h.rXU(h.sFG),h.rXU(h.aKT))},B.\u0275dir=h.FsC({type:B}),x})(),Ye=(()=>{var B;class x extends it{}return(B=x).\u0275fac=(()=>{let se;return function(Pe){return(se||(se=h.xGo(B)))(Pe||B)}})(),B.\u0275dir=h.FsC({type:B,features:[h.Vt3]}),x})();const at=new h.nKC(""),Dt={provide:at,useExisting:(0,h.Rfq)(()=>At),multi:!0},Tt=new h.nKC("");let At=(()=>{var B;class x extends it{constructor(z,Pe,an){super(z,Pe),this._compositionMode=an,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function zt(){const B=(0,c.QT)()?(0,c.QT)().getUserAgent():"";return/android (\d+)/.test(B.toLowerCase())}())}writeValue(z){this.setProperty("value",null==z?"":z)}_handleInput(z){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(z)}_compositionStart(){this._composing=!0}_compositionEnd(z){this._composing=!1,this._compositionMode&&this.onChange(z)}}return(B=x).\u0275fac=function(z){return new(z||B)(h.rXU(h.sFG),h.rXU(h.aKT),h.rXU(Tt,8))},B.\u0275dir=h.FsC({type:B,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(z,Pe){1&z&&h.bIt("input",function(zn){return Pe._handleInput(zn.target.value)})("blur",function(){return Pe.onTouched()})("compositionstart",function(){return Pe._compositionStart()})("compositionend",function(zn){return Pe._compositionEnd(zn.target.value)})},features:[h.Jv_([Dt]),h.Vt3]}),x})();function Ie(B){return null==B||("string"==typeof B||Array.isArray(B))&&0===B.length}const _e=new h.nKC(""),$e=new h.nKC("");function G(B){return null}function X(B){return null!=B}function ce(B){return(0,h.jNT)(B)?(0,Z.H)(B):B}function ue(B){let x={};return B.forEach(se=>{x=null!=se?{...x,...se}:x}),0===Object.keys(x).length?null:x}function Ee(B,x){return x.map(se=>se(B))}function ut(B){return B.map(x=>function Ve(B){return!B.validate}(x)?x:se=>x.validate(se))}function xn(B){return null!=B?function fn(B){if(!B)return null;const x=B.filter(X);return 0==x.length?null:function(se){return ue(Ee(se,x))}}(ut(B)):null}function Je(B){return null!=B?function un(B){if(!B)return null;const x=B.filter(X);return 0==x.length?null:function(se){return function be(...B){const x=(0,ae.ms)(B),{args:se,keys:z}=(0,$.D)(B),Pe=new ke.c(an=>{const{length:zn}=se;if(!zn)return void an.complete();const lr=new Array(zn);let pi=zn,Hi=zn;for(let Ei=0;Ei{ao||(ao=!0,Hi--),lr[Ei]=No},()=>pi--,void 0,()=>{(!pi||!ao)&&(Hi||an.next(z?(0,Se.e)(z,lr):lr),an.complete())}))}});return x?Pe.pipe((0,tt.I)(x)):Pe}(Ee(se,x).map(ce)).pipe((0,et.T)(ue))}}(ut(B)):null}function Sn(B,x){return null===B?[x]:Array.isArray(B)?[...B,x]:[B,x]}function or(B){return B?Array.isArray(B)?B:[B]:[]}function gr(B,x){return Array.isArray(B)?B.includes(x):B===x}function cr(B,x){const se=or(x);return or(B).forEach(Pe=>{gr(se,Pe)||se.push(Pe)}),se}function dr(B,x){return or(x).filter(se=>!gr(B,se))}class nt{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(x){this._rawValidators=x||[],this._composedValidatorFn=xn(this._rawValidators)}_setAsyncValidators(x){this._rawAsyncValidators=x||[],this._composedAsyncValidatorFn=Je(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(x){this._onDestroyCallbacks.push(x)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(x=>x()),this._onDestroyCallbacks=[]}reset(x=void 0){this.control&&this.control.reset(x)}hasError(x,se){return!!this.control&&this.control.hasError(x,se)}getError(x,se){return this.control?this.control.getError(x,se):null}}class Lt extends nt{get formDirective(){return null}get path(){return null}}class Xt extends nt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class yn{constructor(x){this._cd=x}get isTouched(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.touched)}get isUntouched(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.untouched)}get isPristine(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.pristine)}get isDirty(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.dirty)}get isValid(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.valid)}get isInvalid(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.invalid)}get isPending(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.pending)}get isSubmitted(){var x;return!(null===(x=this._cd)||void 0===x||!x.submitted)}}let Vn=(()=>{var B;class x extends yn{constructor(z){super(z)}}return(B=x).\u0275fac=function(z){return new(z||B)(h.rXU(Xt,2))},B.\u0275dir=h.FsC({type:B,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(z,Pe){2&z&&h.AVh("ng-untouched",Pe.isUntouched)("ng-touched",Pe.isTouched)("ng-pristine",Pe.isPristine)("ng-dirty",Pe.isDirty)("ng-valid",Pe.isValid)("ng-invalid",Pe.isInvalid)("ng-pending",Pe.isPending)},features:[h.Vt3]}),x})();const ve="VALID",rt="INVALID",Nt="PENDING",pt="DISABLED";function le(B){return null!=B&&!Array.isArray(B)&&"object"==typeof B}class Qt{constructor(x,se){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(x),this._assignAsyncValidators(se)}get validator(){return this._composedValidatorFn}set validator(x){this._rawValidators=this._composedValidatorFn=x}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(x){this._rawAsyncValidators=this._composedAsyncValidatorFn=x}get parent(){return this._parent}get valid(){return this.status===ve}get invalid(){return this.status===rt}get pending(){return this.status==Nt}get disabled(){return this.status===pt}get enabled(){return this.status!==pt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(x){this._assignValidators(x)}setAsyncValidators(x){this._assignAsyncValidators(x)}addValidators(x){this.setValidators(cr(x,this._rawValidators))}addAsyncValidators(x){this.setAsyncValidators(cr(x,this._rawAsyncValidators))}removeValidators(x){this.setValidators(dr(x,this._rawValidators))}removeAsyncValidators(x){this.setAsyncValidators(dr(x,this._rawAsyncValidators))}hasValidator(x){return gr(this._rawValidators,x)}hasAsyncValidator(x){return gr(this._rawAsyncValidators,x)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(x={}){this.touched=!0,this._parent&&!x.onlySelf&&this._parent.markAsTouched(x)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(x=>x.markAllAsTouched())}markAsUntouched(x={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(se=>{se.markAsUntouched({onlySelf:!0})}),this._parent&&!x.onlySelf&&this._parent._updateTouched(x)}markAsDirty(x={}){this.pristine=!1,this._parent&&!x.onlySelf&&this._parent.markAsDirty(x)}markAsPristine(x={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(se=>{se.markAsPristine({onlySelf:!0})}),this._parent&&!x.onlySelf&&this._parent._updatePristine(x)}markAsPending(x={}){this.status=Nt,!1!==x.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!x.onlySelf&&this._parent.markAsPending(x)}disable(x={}){const se=this._parentMarkedDirty(x.onlySelf);this.status=pt,this.errors=null,this._forEachChild(z=>{z.disable({...x,onlySelf:!0})}),this._updateValue(),!1!==x.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...x,skipPristineCheck:se}),this._onDisabledChange.forEach(z=>z(!0))}enable(x={}){const se=this._parentMarkedDirty(x.onlySelf);this.status=ve,this._forEachChild(z=>{z.enable({...x,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:x.emitEvent}),this._updateAncestors({...x,skipPristineCheck:se}),this._onDisabledChange.forEach(z=>z(!1))}_updateAncestors(x){this._parent&&!x.onlySelf&&(this._parent.updateValueAndValidity(x),x.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(x){this._parent=x}getRawValue(){return this.value}updateValueAndValidity(x={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ve||this.status===Nt)&&this._runAsyncValidator(x.emitEvent)),!1!==x.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!x.onlySelf&&this._parent.updateValueAndValidity(x)}_updateTreeValidity(x={emitEvent:!0}){this._forEachChild(se=>se._updateTreeValidity(x)),this.updateValueAndValidity({onlySelf:!0,emitEvent:x.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?pt:ve}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(x){if(this.asyncValidator){this.status=Nt,this._hasOwnPendingAsyncValidator=!0;const se=ce(this.asyncValidator(this));this._asyncValidationSubscription=se.subscribe(z=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(z,{emitEvent:x})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(x,se={}){this.errors=x,this._updateControlsErrors(!1!==se.emitEvent)}get(x){let se=x;return null==se||(Array.isArray(se)||(se=se.split(".")),0===se.length)?null:se.reduce((z,Pe)=>z&&z._find(Pe),this)}getError(x,se){const z=se?this.get(se):this;return z&&z.errors?z.errors[x]:null}hasError(x,se){return!!this.getError(x,se)}get root(){let x=this;for(;x._parent;)x=x._parent;return x}_updateControlsErrors(x){this.status=this._calculateStatus(),x&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(x)}_initObservables(){this.valueChanges=new h.bkB,this.statusChanges=new h.bkB}_calculateStatus(){return this._allControlsDisabled()?pt:this.errors?rt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Nt)?Nt:this._anyControlsHaveStatus(rt)?rt:ve}_anyControlsHaveStatus(x){return this._anyControls(se=>se.status===x)}_anyControlsDirty(){return this._anyControls(x=>x.dirty)}_anyControlsTouched(){return this._anyControls(x=>x.touched)}_updatePristine(x={}){this.pristine=!this._anyControlsDirty(),this._parent&&!x.onlySelf&&this._parent._updatePristine(x)}_updateTouched(x={}){this.touched=this._anyControlsTouched(),this._parent&&!x.onlySelf&&this._parent._updateTouched(x)}_registerOnCollectionChange(x){this._onCollectionChange=x}_setUpdateStrategy(x){le(x)&&null!=x.updateOn&&(this._updateOn=x.updateOn)}_parentMarkedDirty(x){return!x&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(x){return null}_assignValidators(x){this._rawValidators=Array.isArray(x)?x.slice():x,this._composedValidatorFn=function Ae(B){return Array.isArray(B)?xn(B):B||null}(this._rawValidators)}_assignAsyncValidators(x){this._rawAsyncValidators=Array.isArray(x)?x.slice():x,this._composedAsyncValidatorFn=function $t(B){return Array.isArray(B)?Je(B):B||null}(this._rawAsyncValidators)}}const wr=new h.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>fr}),fr="always";function oi(B,x,se=fr){var z,Pe;(function Ar(B,x){const se=function kn(B){return B._rawValidators}(B);null!==x.validator?B.setValidators(Sn(se,x.validator)):"function"==typeof se&&B.setValidators([se]);const z=function On(B){return B._rawAsyncValidators}(B);null!==x.asyncValidator?B.setAsyncValidators(Sn(z,x.asyncValidator)):"function"==typeof z&&B.setAsyncValidators([z]);const Pe=()=>B.updateValueAndValidity();xi(x._rawValidators,Pe),xi(x._rawAsyncValidators,Pe)})(B,x),x.valueAccessor.writeValue(B.value),(B.disabled||"always"===se)&&(null===(z=(Pe=x.valueAccessor).setDisabledState)||void 0===z||z.call(Pe,B.disabled)),function ie(B,x){x.valueAccessor.registerOnChange(se=>{B._pendingValue=se,B._pendingChange=!0,B._pendingDirty=!0,"change"===B.updateOn&&ze(B,x)})}(B,x),function M(B,x){const se=(z,Pe)=>{x.valueAccessor.writeValue(z),Pe&&x.viewToModelUpdate(z)};B.registerOnChange(se),x._registerOnDestroy(()=>{B._unregisterOnChange(se)})}(B,x),function te(B,x){x.valueAccessor.registerOnTouched(()=>{B._pendingTouched=!0,"blur"===B.updateOn&&B._pendingChange&&ze(B,x),"submit"!==B.updateOn&&B.markAsTouched()})}(B,x),function vi(B,x){if(x.valueAccessor.setDisabledState){const se=z=>{x.valueAccessor.setDisabledState(z)};B.registerOnDisabledChange(se),x._registerOnDestroy(()=>{B._unregisterOnDisabledChange(se)})}}(B,x)}function xi(B,x){B.forEach(se=>{se.registerOnValidatorChange&&se.registerOnValidatorChange(x)})}function ze(B,x){B._pendingDirty&&B.markAsDirty(),B.setValue(B._pendingValue,{emitModelToViewChange:!1}),x.viewToModelUpdate(B._pendingValue),B._pendingChange=!1}function Rr(B,x){const se=B.indexOf(x);se>-1&&B.splice(se,1)}function di(B){return"object"==typeof B&&null!==B&&2===Object.keys(B).length&&"value"in B&&"disabled"in B}Promise.resolve();const hi=class extends Qt{constructor(x=null,se,z){super(function de(B){return(le(B)?B.validators:B)||null}(se),function Ge(B,x){return(le(x)?x.asyncValidators:B)||null}(z,se)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(x),this._setUpdateStrategy(se),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),le(se)&&(se.nonNullable||se.initialValueIsDefault)&&(this.defaultValue=di(x)?x.value:x)}setValue(x,se={}){this.value=this._pendingValue=x,this._onChange.length&&!1!==se.emitModelToViewChange&&this._onChange.forEach(z=>z(this.value,!1!==se.emitViewToModelChange)),this.updateValueAndValidity(se)}patchValue(x,se={}){this.setValue(x,se)}reset(x=this.defaultValue,se={}){this._applyFormState(x),this.markAsPristine(se),this.markAsUntouched(se),this.setValue(this.value,se),this._pendingChange=!1}_updateValue(){}_anyControls(x){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(x){this._onChange.push(x)}_unregisterOnChange(x){Rr(this._onChange,x)}registerOnDisabledChange(x){this._onDisabledChange.push(x)}_unregisterOnDisabledChange(x){Rr(this._onDisabledChange,x)}_forEachChild(x){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(x){di(x)?(this.value=this._pendingValue=x.value,x.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=x}},bo={provide:Xt,useExisting:(0,h.Rfq)(()=>Pt)},ui=Promise.resolve();let Pt=(()=>{var B;class x extends Xt{constructor(z,Pe,an,zn,lr,pi){super(),this._changeDetectorRef=lr,this.callSetDisabledState=pi,this.control=new hi,this._registered=!1,this.name="",this.update=new h.bkB,this._parent=z,this._setValidators(Pe),this._setAsyncValidators(an),this.valueAccessor=function jn(B,x){if(!x)return null;let se,z,Pe;return Array.isArray(x),x.forEach(an=>{an.constructor===At?se=an:function qn(B){return Object.getPrototypeOf(B.constructor)===Ye}(an)?z=an:Pe=an}),Pe||z||se||null}(0,zn)}ngOnChanges(z){if(this._checkForErrors(),!this._registered||"name"in z){if(this._registered&&(this._checkName(),this.formDirective)){const Pe=z.name.previousValue;this.formDirective.removeControl({name:Pe,path:this._getPath(Pe)})}this._setUpControl()}"isDisabled"in z&&this._updateDisabled(z),function pr(B,x){if(!B.hasOwnProperty("model"))return!1;const se=B.model;return!!se.isFirstChange()||!Object.is(x,se.currentValue)}(z,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(z){this.viewModel=z,this.update.emit(z)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){oi(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(z){ui.then(()=>{var Pe;this.control.setValue(z,{emitViewToModelChange:!1}),null===(Pe=this._changeDetectorRef)||void 0===Pe||Pe.markForCheck()})}_updateDisabled(z){const Pe=z.isDisabled.currentValue,an=0!==Pe&&(0,h.L39)(Pe);ui.then(()=>{var zn;an&&!this.control.disabled?this.control.disable():!an&&this.control.disabled&&this.control.enable(),null===(zn=this._changeDetectorRef)||void 0===zn||zn.markForCheck()})}_getPath(z){return this._parent?function Ur(B,x){return[...x.path,B]}(z,this._parent):[z]}}return(B=x).\u0275fac=function(z){return new(z||B)(h.rXU(Lt,9),h.rXU(_e,10),h.rXU($e,10),h.rXU(at,10),h.rXU(h.gRc,8),h.rXU(wr,8))},B.\u0275dir=h.FsC({type:B,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[h.Mj6.None,"disabled","isDisabled"],model:[h.Mj6.None,"ngModel","model"],options:[h.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[h.Jv_([bo]),h.Vt3,h.OA$]}),x})();function kr(B){return"number"==typeof B?B:parseFloat(B)}let ki=(()=>{var B;class x{constructor(){this._validator=G}ngOnChanges(z){if(this.inputName in z){const Pe=this.normalizeInput(z[this.inputName].currentValue);this._enabled=this.enabled(Pe),this._validator=this._enabled?this.createValidator(Pe):G,this._onChange&&this._onChange()}}validate(z){return this._validator(z)}registerOnValidatorChange(z){this._onChange=z}enabled(z){return null!=z}}return(B=x).\u0275fac=function(z){return new(z||B)},B.\u0275dir=h.FsC({type:B,features:[h.OA$]}),x})();const Fi={provide:_e,useExisting:(0,h.Rfq)(()=>Bi),multi:!0};let Bi=(()=>{var B;class x extends ki{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=z=>kr(z),this.createValidator=z=>function kt(B){return x=>{if(Ie(x.value)||Ie(B))return null;const se=parseFloat(x.value);return!isNaN(se)&&se>B?{max:{max:B,actual:x.value}}:null}}(z)}}return(B=x).\u0275fac=(()=>{let se;return function(Pe){return(se||(se=h.xGo(B)))(Pe||B)}})(),B.\u0275dir=h.FsC({type:B,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(z,Pe){2&z&&h.BMQ("max",Pe._enabled?Pe.max:null)},inputs:{max:"max"},features:[h.Jv_([Fi]),h.Vt3]}),x})();const yo={provide:_e,useExisting:(0,h.Rfq)(()=>Jo),multi:!0};let Jo=(()=>{var B;class x extends ki{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=z=>kr(z),this.createValidator=z=>function Ct(B){return x=>{if(Ie(x.value)||Ie(B))return null;const se=parseFloat(x.value);return!isNaN(se)&&se{let se;return function(Pe){return(se||(se=h.xGo(B)))(Pe||B)}})(),B.\u0275dir=h.FsC({type:B,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(z,Pe){2&z&&h.BMQ("min",Pe._enabled?Pe.min:null)},inputs:{min:"min"},features:[h.Jv_([yo]),h.Vt3]}),x})(),Zo=(()=>{var B;class x{}return(B=x).\u0275fac=function(z){return new(z||B)},B.\u0275mod=h.$C({type:B}),B.\u0275inj=h.G2t({}),x})(),Vt=(()=>{var B;class x{static withConfig(z){var Pe;return{ngModule:x,providers:[{provide:wr,useValue:null!==(Pe=z.callSetDisabledState)&&void 0!==Pe?Pe:fr}]}}}return(B=x).\u0275fac=function(z){return new(z||B)},B.\u0275mod=h.$C({type:B}),B.\u0275inj=h.G2t({imports:[Zo]}),x})()},345:(Pn,It,C)=>{"use strict";C.d(It,{Bb:()=>or,hE:()=>dr,sG:()=>Je,up:()=>Mr});var h=C(4438),c=C(177);class Z extends c.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ke extends Z{static makeCurrent(){(0,c.ZD)(new ke)}onAndCancel(rt,Nt,pt){return rt.addEventListener(Nt,pt),()=>{rt.removeEventListener(Nt,pt)}}dispatchEvent(rt,Nt){rt.dispatchEvent(Nt)}remove(rt){rt.parentNode&&rt.parentNode.removeChild(rt)}createElement(rt,Nt){return(Nt=Nt||this.getDefaultDocument()).createElement(rt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(rt){return rt.nodeType===Node.ELEMENT_NODE}isShadowRoot(rt){return rt instanceof DocumentFragment}getGlobalEventTarget(rt,Nt){return"window"===Nt?window:"document"===Nt?rt:"body"===Nt?rt.body:null}getBaseHref(rt){const Nt=function he(){return $=$||document.querySelector("base"),$?$.getAttribute("href"):null}();return null==Nt?null:function ae(ve){return new URL(ve,document.baseURI).pathname}(Nt)}resetBaseElement(){$=null}getUserAgent(){return window.navigator.userAgent}getCookie(rt){return(0,c._b)(document.cookie,rt)}}let $=null,tt=(()=>{var ve;class rt{build(){return new XMLHttpRequest}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac}),rt})();const Se=new h.nKC("");let be=(()=>{var ve;class rt{constructor(pt,de){this._zone=de,this._eventNameToPlugin=new Map,pt.forEach(Ae=>{Ae.manager=this}),this._plugins=pt.slice().reverse()}addEventListener(pt,de,Ae){return this._findPluginFor(de).addEventListener(pt,de,Ae)}getZone(){return this._zone}_findPluginFor(pt){let de=this._eventNameToPlugin.get(pt);if(de)return de;if(de=this._plugins.find(Ge=>Ge.supports(pt)),!de)throw new h.wOt(5101,!1);return this._eventNameToPlugin.set(pt,de),de}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(Se),h.KVO(h.SKi))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac}),rt})();class et{constructor(rt){this._doc=rt}}const it="ng-app-id";let Ye=(()=>{var ve;class rt{constructor(pt,de,Ae,Ge={}){this.doc=pt,this.appId=de,this.nonce=Ae,this.platformId=Ge,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,c.Vy)(Ge),this.resetHostNodes()}addStyles(pt){for(const de of pt)1===this.changeUsageCount(de,1)&&this.onStyleAdded(de)}removeStyles(pt){for(const de of pt)this.changeUsageCount(de,-1)<=0&&this.onStyleRemoved(de)}ngOnDestroy(){const pt=this.styleNodesInDOM;pt&&(pt.forEach(de=>de.remove()),pt.clear());for(const de of this.getAllStyles())this.onStyleRemoved(de);this.resetHostNodes()}addHost(pt){this.hostNodes.add(pt);for(const de of this.getAllStyles())this.addStyleToHost(pt,de)}removeHost(pt){this.hostNodes.delete(pt)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(pt){for(const de of this.hostNodes)this.addStyleToHost(de,pt)}onStyleRemoved(pt){var de;const Ae=this.styleRef;null===(de=Ae.get(pt))||void 0===de||null===(de=de.elements)||void 0===de||de.forEach(Ge=>Ge.remove()),Ae.delete(pt)}collectServerRenderedStyles(){var pt;const de=null===(pt=this.doc.head)||void 0===pt?void 0:pt.querySelectorAll(`style[${it}="${this.appId}"]`);if(null!=de&&de.length){const Ae=new Map;return de.forEach(Ge=>{null!=Ge.textContent&&Ae.set(Ge.textContent,Ge)}),Ae}return null}changeUsageCount(pt,de){const Ae=this.styleRef;if(Ae.has(pt)){const Ge=Ae.get(pt);return Ge.usage+=de,Ge.usage}return Ae.set(pt,{usage:de,elements:[]}),de}getStyleElement(pt,de){const Ae=this.styleNodesInDOM,Ge=null==Ae?void 0:Ae.get(de);if((null==Ge?void 0:Ge.parentNode)===pt)return Ae.delete(de),Ge.removeAttribute(it),Ge;{const $t=this.doc.createElement("style");return this.nonce&&$t.setAttribute("nonce",this.nonce),$t.textContent=de,this.platformIsServer&&$t.setAttribute(it,this.appId),pt.appendChild($t),$t}}addStyleToHost(pt,de){var Ae;const Ge=this.getStyleElement(pt,de),$t=this.styleRef,le=null===(Ae=$t.get(de))||void 0===Ae?void 0:Ae.elements;le?le.push(Ge):$t.set(de,{elements:[Ge],usage:1})}resetHostNodes(){const pt=this.hostNodes;pt.clear(),pt.add(this.doc.head)}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(c.qQ),h.KVO(h.sZ2),h.KVO(h.BIS,8),h.KVO(h.Agw))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac}),rt})();const at={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},mt=/%COMP%/g,At=new h.nKC("",{providedIn:"root",factory:()=>!0});function _e(ve,rt){return rt.map(Nt=>Nt.replace(mt,ve))}let $e=(()=>{var ve;class rt{constructor(pt,de,Ae,Ge,$t,le,gt,ft=null){this.eventManager=pt,this.sharedStylesHost=de,this.appId=Ae,this.removeStylesOnCompDestroy=Ge,this.doc=$t,this.platformId=le,this.ngZone=gt,this.nonce=ft,this.rendererByCompId=new Map,this.platformIsServer=(0,c.Vy)(le),this.defaultRenderer=new Le(pt,$t,gt,this.platformIsServer)}createRenderer(pt,de){if(!pt||!de)return this.defaultRenderer;this.platformIsServer&&de.encapsulation===h.gXe.ShadowDom&&(de={...de,encapsulation:h.gXe.Emulated});const Ae=this.getOrCreateRenderer(pt,de);return Ae instanceof st?Ae.applyToHost(pt):Ae instanceof Et&&Ae.applyStyles(),Ae}getOrCreateRenderer(pt,de){const Ae=this.rendererByCompId;let Ge=Ae.get(de.id);if(!Ge){const $t=this.doc,le=this.ngZone,gt=this.eventManager,ft=this.sharedStylesHost,Qt=this.removeStylesOnCompDestroy,sn=this.platformIsServer;switch(de.encapsulation){case h.gXe.Emulated:Ge=new st(gt,ft,de,this.appId,Qt,$t,le,sn);break;case h.gXe.ShadowDom:return new Cn(gt,ft,pt,de,$t,le,this.nonce,sn);default:Ge=new Et(gt,ft,de,Qt,$t,le,sn)}Ae.set(de.id,Ge)}return Ge}ngOnDestroy(){this.rendererByCompId.clear()}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(be),h.KVO(Ye),h.KVO(h.sZ2),h.KVO(At),h.KVO(c.qQ),h.KVO(h.Agw),h.KVO(h.SKi),h.KVO(h.BIS))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac}),rt})();class Le{constructor(rt,Nt,pt,de){this.eventManager=rt,this.doc=Nt,this.ngZone=pt,this.platformIsServer=de,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(rt,Nt){return Nt?this.doc.createElementNS(at[Nt]||Nt,rt):this.doc.createElement(rt)}createComment(rt){return this.doc.createComment(rt)}createText(rt){return this.doc.createTextNode(rt)}appendChild(rt,Nt){(kt(rt)?rt.content:rt).appendChild(Nt)}insertBefore(rt,Nt,pt){rt&&(kt(rt)?rt.content:rt).insertBefore(Nt,pt)}removeChild(rt,Nt){rt&&rt.removeChild(Nt)}selectRootElement(rt,Nt){let pt="string"==typeof rt?this.doc.querySelector(rt):rt;if(!pt)throw new h.wOt(-5104,!1);return Nt||(pt.textContent=""),pt}parentNode(rt){return rt.parentNode}nextSibling(rt){return rt.nextSibling}setAttribute(rt,Nt,pt,de){if(de){Nt=de+":"+Nt;const Ae=at[de];Ae?rt.setAttributeNS(Ae,Nt,pt):rt.setAttribute(Nt,pt)}else rt.setAttribute(Nt,pt)}removeAttribute(rt,Nt,pt){if(pt){const de=at[pt];de?rt.removeAttributeNS(de,Nt):rt.removeAttribute(`${pt}:${Nt}`)}else rt.removeAttribute(Nt)}addClass(rt,Nt){rt.classList.add(Nt)}removeClass(rt,Nt){rt.classList.remove(Nt)}setStyle(rt,Nt,pt,de){de&(h.czy.DashCase|h.czy.Important)?rt.style.setProperty(Nt,pt,de&h.czy.Important?"important":""):rt.style[Nt]=pt}removeStyle(rt,Nt,pt){pt&h.czy.DashCase?rt.style.removeProperty(Nt):rt.style[Nt]=""}setProperty(rt,Nt,pt){null!=rt&&(rt[Nt]=pt)}setValue(rt,Nt){rt.nodeValue=Nt}listen(rt,Nt,pt){if("string"==typeof rt&&!(rt=(0,c.QT)().getGlobalEventTarget(this.doc,rt)))throw new Error(`Unsupported event target ${rt} for event ${Nt}`);return this.eventManager.addEventListener(rt,Nt,this.decoratePreventDefault(pt))}decoratePreventDefault(rt){return Nt=>{if("__ngUnwrap__"===Nt)return rt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>rt(Nt)):rt(Nt))&&Nt.preventDefault()}}}function kt(ve){return"TEMPLATE"===ve.tagName&&void 0!==ve.content}class Cn extends Le{constructor(rt,Nt,pt,de,Ae,Ge,$t,le){super(rt,Ae,Ge,le),this.sharedStylesHost=Nt,this.hostEl=pt,this.shadowRoot=pt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const gt=_e(de.id,de.styles);for(const ft of gt){const Qt=document.createElement("style");$t&&Qt.setAttribute("nonce",$t),Qt.textContent=ft,this.shadowRoot.appendChild(Qt)}}nodeOrShadowRoot(rt){return rt===this.hostEl?this.shadowRoot:rt}appendChild(rt,Nt){return super.appendChild(this.nodeOrShadowRoot(rt),Nt)}insertBefore(rt,Nt,pt){return super.insertBefore(this.nodeOrShadowRoot(rt),Nt,pt)}removeChild(rt,Nt){return super.removeChild(this.nodeOrShadowRoot(rt),Nt)}parentNode(rt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(rt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class Et extends Le{constructor(rt,Nt,pt,de,Ae,Ge,$t,le){super(rt,Ae,Ge,$t),this.sharedStylesHost=Nt,this.removeStylesOnCompDestroy=de,this.styles=le?_e(le,pt.styles):pt.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class st extends Et{constructor(rt,Nt,pt,de,Ae,Ge,$t,le){const gt=de+"-"+pt.id;super(rt,Nt,pt,Ae,Ge,$t,le,gt),this.contentAttr=function Ie(ve){return"_ngcontent-%COMP%".replace(mt,ve)}(gt),this.hostAttr=function Ze(ve){return"_nghost-%COMP%".replace(mt,ve)}(gt)}applyToHost(rt){this.applyStyles(),this.setAttribute(rt,this.hostAttr,"")}createElement(rt,Nt){const pt=super.createElement(rt,Nt);return super.setAttribute(pt,this.contentAttr,""),pt}}let cn=(()=>{var ve;class rt extends et{constructor(pt){super(pt)}supports(pt){return!0}addEventListener(pt,de,Ae){return pt.addEventListener(de,Ae,!1),()=>this.removeEventListener(pt,de,Ae)}removeEventListener(pt,de,Ae){return pt.removeEventListener(de,Ae)}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(c.qQ))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac}),rt})();const vt=["alt","control","meta","shift"],Re={"\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:ve=>ve.altKey,control:ve=>ve.ctrlKey,meta:ve=>ve.metaKey,shift:ve=>ve.shiftKey};let X=(()=>{var ve;class rt extends et{constructor(pt){super(pt)}supports(pt){return null!=rt.parseEventName(pt)}addEventListener(pt,de,Ae){const Ge=rt.parseEventName(de),$t=rt.eventCallback(Ge.fullKey,Ae,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,c.QT)().onAndCancel(pt,Ge.domEventName,$t))}static parseEventName(pt){const de=pt.toLowerCase().split("."),Ae=de.shift();if(0===de.length||"keydown"!==Ae&&"keyup"!==Ae)return null;const Ge=rt._normalizeKey(de.pop());let $t="",le=de.indexOf("code");if(le>-1&&(de.splice(le,1),$t="code."),vt.forEach(ft=>{const Qt=de.indexOf(ft);Qt>-1&&(de.splice(Qt,1),$t+=ft+".")}),$t+=Ge,0!=de.length||0===Ge.length)return null;const gt={};return gt.domEventName=Ae,gt.fullKey=$t,gt}static matchEventFullKeyCode(pt,de){let Ae=Re[pt.key]||pt.key,Ge="";return de.indexOf("code.")>-1&&(Ae=pt.code,Ge="code."),!(null==Ae||!Ae)&&(Ae=Ae.toLowerCase()," "===Ae?Ae="space":"."===Ae&&(Ae="dot"),vt.forEach($t=>{$t!==Ae&&(0,G[$t])(pt)&&(Ge+=$t+".")}),Ge+=Ae,Ge===de)}static eventCallback(pt,de,Ae){return Ge=>{rt.matchEventFullKeyCode(Ge,pt)&&Ae.runGuarded(()=>de(Ge))}}static _normalizeKey(pt){return"esc"===pt?"escape":pt}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(c.qQ))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac}),rt})();const Je=(0,h.oH4)(h.fpN,"browser",[{provide:h.Agw,useValue:c.AJ},{provide:h.PLl,useValue:function ut(){ke.makeCurrent()},multi:!0},{provide:c.qQ,useFactory:function xn(){return(0,h.TL$)(document),document},deps:[]}]),Sn=new h.nKC(""),kn=[{provide:h.e01,useClass:class Xe{addToWindow(rt){h.JZv.getAngularTestability=(pt,de=!0)=>{const Ae=rt.findTestabilityInTree(pt,de);if(null==Ae)throw new h.wOt(5103,!1);return Ae},h.JZv.getAllAngularTestabilities=()=>rt.getAllTestabilities(),h.JZv.getAllAngularRootElements=()=>rt.getAllRootElements(),h.JZv.frameworkStabilizers||(h.JZv.frameworkStabilizers=[]),h.JZv.frameworkStabilizers.push(pt=>{const de=h.JZv.getAllAngularTestabilities();let Ae=de.length;const Ge=function(){Ae--,0==Ae&&pt()};de.forEach($t=>{$t.whenStable(Ge)})})}findTestabilityInTree(rt,Nt,pt){if(null==Nt)return null;const de=rt.getTestability(Nt);return null!=de?de:pt?(0,c.QT)().isShadowRoot(Nt)?this.findTestabilityInTree(rt,Nt.host,!0):this.findTestabilityInTree(rt,Nt.parentElement,!0):null}},deps:[]},{provide:h.WHO,useClass:h.NYb,deps:[h.SKi,h.giA,h.e01]},{provide:h.NYb,useClass:h.NYb,deps:[h.SKi,h.giA,h.e01]}],On=[{provide:h.H8p,useValue:"root"},{provide:h.zcH,useFactory:function fn(){return new h.zcH},deps:[]},{provide:Se,useClass:cn,multi:!0,deps:[c.qQ,h.SKi,h.Agw]},{provide:Se,useClass:X,multi:!0,deps:[c.qQ]},$e,Ye,be,{provide:h._9s,useExisting:$e},{provide:c.N0,useClass:tt,deps:[]},[]];let or=(()=>{var ve;class rt{constructor(pt){}static withServerTransition(pt){return{ngModule:rt,providers:[{provide:h.sZ2,useValue:pt.appId}]}}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(Sn,12))},ve.\u0275mod=h.$C({type:ve}),ve.\u0275inj=h.G2t({providers:[...On,...kn],imports:[c.MD,h.Hbi]}),rt})(),dr=(()=>{var ve;class rt{constructor(pt){this._doc=pt}getTitle(){return this._doc.title}setTitle(pt){this._doc.title=pt||""}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(c.qQ))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"}),rt})(),Mr=(()=>{var ve;class rt{}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)},ve.\u0275prov=h.jDH({token:ve,factory:function(pt){let de=null;return de=pt?new(pt||ve):h.KVO(sr),de},providedIn:"root"}),rt})(),sr=(()=>{var ve;class rt extends Mr{constructor(pt){super(),this._doc=pt}sanitize(pt,de){if(null==de)return null;switch(pt){case h.WPN.NONE:return de;case h.WPN.HTML:return(0,h.ZF7)(de,"HTML")?(0,h.rcV)(de):(0,h.h9k)(this._doc,String(de)).toString();case h.WPN.STYLE:return(0,h.ZF7)(de,"Style")?(0,h.rcV)(de):de;case h.WPN.SCRIPT:if((0,h.ZF7)(de,"Script"))return(0,h.rcV)(de);throw new h.wOt(5200,!1);case h.WPN.URL:return(0,h.ZF7)(de,"URL")?(0,h.rcV)(de):(0,h.$MX)(String(de));case h.WPN.RESOURCE_URL:if((0,h.ZF7)(de,"ResourceURL"))return(0,h.rcV)(de);throw new h.wOt(5201,!1);default:throw new h.wOt(5202,!1)}}bypassSecurityTrustHtml(pt){return(0,h.Kcf)(pt)}bypassSecurityTrustStyle(pt){return(0,h.cWb)(pt)}bypassSecurityTrustScript(pt){return(0,h.UyX)(pt)}bypassSecurityTrustUrl(pt){return(0,h.osQ)(pt)}bypassSecurityTrustResourceUrl(pt){return(0,h.e5t)(pt)}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(c.qQ))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"}),rt})()},7650:(Pn,It,C)=>{"use strict";C.d(It,{nX:()=>Te,Zp:()=>Be,wF:()=>Pr,Z:()=>$r,Xk:()=>Je,Kp:()=>io,b:()=>Fn,Ix:()=>ir,Wk:()=>Vi,iI:()=>Is,Sd:()=>yr});var h=C(467),c=C(4438),Z=C(4402),ke=C(8455),$=C(7673),he=C(4412),ae=C(4572),Xe=C(9350),tt=C(8793),Se=C(1985),be=C(8750);function et(E){return new Se.c(b=>{(0,be.Tg)(E()).subscribe(b)})}var it=C(1203),Ye=C(8071);function at(E,b){const N=(0,Ye.T)(E)?E:()=>E,D=L=>L.error(N());return new Se.c(b?L=>b.schedule(D,0,L):D)}var mt=C(983),xt=C(8359),Dt=C(9974),zt=C(4360);function Tt(){return(0,Dt.N)((E,b)=>{let N=null;E._refCount++;const D=(0,zt._)(b,void 0,void 0,void 0,()=>{if(!E||E._refCount<=0||0<--E._refCount)return void(N=null);const L=E._connection,pe=N;N=null,L&&(!pe||L===pe)&&L.unsubscribe(),b.unsubscribe()});E.subscribe(D),D.closed||(N=E.connect())})}class At extends Se.c{constructor(b,N){super(),this.source=b,this.subjectFactory=N,this._subject=null,this._refCount=0,this._connection=null,(0,Dt.S)(b)&&(this.lift=b.lift)}_subscribe(b){return this.getSubject().subscribe(b)}getSubject(){const b=this._subject;return(!b||b.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:b}=this;this._subject=this._connection=null,null==b||b.unsubscribe()}connect(){let b=this._connection;if(!b){b=this._connection=new xt.yU;const N=this.getSubject();b.add(this.source.subscribe((0,zt._)(N,void 0,()=>{this._teardown(),N.complete()},D=>{this._teardown(),N.error(D)},()=>this._teardown()))),b.closed&&(this._connection=null,b=xt.yU.EMPTY)}return b}refCount(){return Tt()(this)}}var Ie=C(1413),Ze=C(177),_e=C(6354),$e=C(5558),Le=C(6697),Oe=C(9172),Ct=C(5964),kt=C(1397),Cn=C(1594),Et=C(274),st=C(8141);function cn(E){return(0,Dt.N)((b,N)=>{let pe,D=null,L=!1;D=b.subscribe((0,zt._)(N,void 0,void 0,xe=>{pe=(0,be.Tg)(E(xe,cn(E)(b))),D?(D.unsubscribe(),D=null,pe.subscribe(N)):L=!0})),L&&(D.unsubscribe(),D=null,pe.subscribe(N))})}var G=C(9901);function X(E){return E<=0?()=>mt.w:(0,Dt.N)((b,N)=>{let D=[];b.subscribe((0,zt._)(N,L=>{D.push(L),E{for(const L of D)N.next(L);N.complete()},void 0,()=>{D=null}))})}var ce=C(3774),ue=C(3669),Ve=C(3703),ut=C(980),fn=C(6977),xn=C(6365),un=C(345);const Je="primary",Sn=Symbol("RouteTitle");class kn{constructor(b){this.params=b||{}}has(b){return Object.prototype.hasOwnProperty.call(this.params,b)}get(b){if(this.has(b)){const N=this.params[b];return Array.isArray(N)?N[0]:N}return null}getAll(b){if(this.has(b)){const N=this.params[b];return Array.isArray(N)?N:[N]}return[]}get keys(){return Object.keys(this.params)}}function On(E){return new kn(E)}function or(E,b,N){const D=N.path.split("/");if(D.length>E.length||"full"===N.pathMatch&&(b.hasChildren()||D.lengthD[pe]===L)}return E===b}function Lt(E){return E.length>0?E[E.length-1]:null}function Xt(E){return(0,Z.A)(E)?E:(0,c.jNT)(E)?(0,ke.H)(Promise.resolve(E)):(0,$.of)(E)}const yn={exact:function $n(E,b,N){if(!ii(E.segments,b.segments)||!br(E.segments,b.segments,N)||E.numberOfChildren!==b.numberOfChildren)return!1;for(const D in b.children)if(!E.children[D]||!$n(E.children[D],b.children[D],N))return!1;return!0},subset:on},En={exact:function Vn(E,b){return cr(E,b)},subset:function In(E,b){return Object.keys(b).length<=Object.keys(E).length&&Object.keys(b).every(N=>nt(E[N],b[N]))},ignored:()=>!0};function Fr(E,b,N){return yn[N.paths](E.root,b.root,N.matrixParams)&&En[N.queryParams](E.queryParams,b.queryParams)&&!("exact"===N.fragment&&E.fragment!==b.fragment)}function on(E,b,N){return mr(E,b,b.segments,N)}function mr(E,b,N,D){if(E.segments.length>N.length){const L=E.segments.slice(0,N.length);return!(!ii(L,N)||b.hasChildren()||!br(L,N,D))}if(E.segments.length===N.length){if(!ii(E.segments,N)||!br(E.segments,N,D))return!1;for(const L in b.children)if(!E.children[L]||!on(E.children[L],b.children[L],D))return!1;return!0}{const L=N.slice(0,E.segments.length),pe=N.slice(E.segments.length);return!!(ii(E.segments,L)&&br(E.segments,L,D)&&E.children[Je])&&mr(E.children[Je],b,pe,D)}}function br(E,b,N){return b.every((D,L)=>En[N](E[L].parameters,D.parameters))}class Vr{constructor(b=new rr([],{}),N={},D=null){this.root=b,this.queryParams=N,this.fragment=D}get queryParamMap(){var b;return null!==(b=this._queryParamMap)&&void 0!==b||(this._queryParamMap=On(this.queryParams)),this._queryParamMap}toString(){return ar.serialize(this)}}class rr{constructor(b,N){this.segments=b,this.children=N,this.parent=null,Object.values(N).forEach(D=>D.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Lr(this)}}class Mr{constructor(b,N){this.path=b,this.parameters=N}get parameterMap(){var b;return null!==(b=this._parameterMap)&&void 0!==b||(this._parameterMap=On(this.parameters)),this._parameterMap}toString(){return de(this)}}function ii(E,b){return E.length===b.length&&E.every((N,D)=>N.path===b[D].path)}let yr=(()=>{var E;class b{}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>new Br,providedIn:"root"}),b})();class Br{parse(b){const N=new dn(b);return new Vr(N.parseRootSegment(),N.parseQueryParams(),N.parseFragment())}serialize(b){const N=`/${li(b.root,!0)}`,D=function Ge(E){const b=Object.entries(E).map(([N,D])=>Array.isArray(D)?D.map(L=>`${Zr(N)}=${Zr(L)}`).join("&"):`${Zr(N)}=${Zr(D)}`).filter(N=>N);return b.length?`?${b.join("&")}`:""}(b.queryParams);return`${N}${D}${"string"==typeof b.fragment?`#${function ve(E){return encodeURI(E)}(b.fragment)}`:""}`}}const ar=new Br;function Lr(E){return E.segments.map(b=>de(b)).join("/")}function li(E,b){if(!E.hasChildren())return Lr(E);if(b){const N=E.children[Je]?li(E.children[Je],!1):"",D=[];return Object.entries(E.children).forEach(([L,pe])=>{L!==Je&&D.push(`${L}:${li(pe,!1)}`)}),D.length>0?`${N}(${D.join("//")})`:N}{const N=function Tr(E,b){let N=[];return Object.entries(E.children).forEach(([D,L])=>{D===Je&&(N=N.concat(b(L,D)))}),Object.entries(E.children).forEach(([D,L])=>{D!==Je&&(N=N.concat(b(L,D)))}),N}(E,(D,L)=>L===Je?[li(E.children[Je],!1)]:[`${L}:${li(D,!1)}`]);return 1===Object.keys(E.children).length&&null!=E.children[Je]?`${Lr(E)}/${N[0]}`:`${Lr(E)}/(${N.join("//")})`}}function Di(E){return encodeURIComponent(E).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zr(E){return Di(E).replace(/%3B/gi,";")}function rt(E){return Di(E).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Nt(E){return decodeURIComponent(E)}function pt(E){return Nt(E.replace(/\+/g,"%20"))}function de(E){return`${rt(E.path)}${function Ae(E){return Object.entries(E).map(([b,N])=>`;${rt(b)}=${rt(N)}`).join("")}(E.parameters)}`}const $t=/^[^\/()?;#]+/;function le(E){const b=E.match($t);return b?b[0]:""}const gt=/^[^\/()?;=#]+/,Qt=/^[^=?&#]+/,Tn=/^[^&#]+/;class dn{constructor(b){this.url=b,this.remaining=b}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new rr([],{}):new rr([],this.parseChildren())}parseQueryParams(){const b={};if(this.consumeOptional("?"))do{this.parseQueryParam(b)}while(this.consumeOptional("&"));return b}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const b=[];for(this.peekStartsWith("(")||b.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),b.push(this.parseSegment());let N={};this.peekStartsWith("/(")&&(this.capture("/"),N=this.parseParens(!0));let D={};return this.peekStartsWith("(")&&(D=this.parseParens(!1)),(b.length>0||Object.keys(N).length>0)&&(D[Je]=new rr(b,N)),D}parseSegment(){const b=le(this.remaining);if(""===b&&this.peekStartsWith(";"))throw new c.wOt(4009,!1);return this.capture(b),new Mr(Nt(b),this.parseMatrixParams())}parseMatrixParams(){const b={};for(;this.consumeOptional(";");)this.parseParam(b);return b}parseParam(b){const N=function ft(E){const b=E.match(gt);return b?b[0]:""}(this.remaining);if(!N)return;this.capture(N);let D="";if(this.consumeOptional("=")){const L=le(this.remaining);L&&(D=L,this.capture(D))}b[Nt(N)]=Nt(D)}parseQueryParam(b){const N=function sn(E){const b=E.match(Qt);return b?b[0]:""}(this.remaining);if(!N)return;this.capture(N);let D="";if(this.consumeOptional("=")){const xe=function Xn(E){const b=E.match(Tn);return b?b[0]:""}(this.remaining);xe&&(D=xe,this.capture(D))}const L=pt(N),pe=pt(D);if(b.hasOwnProperty(L)){let xe=b[L];Array.isArray(xe)||(xe=[xe],b[L]=xe),xe.push(pe)}else b[L]=pe}parseParens(b){const N={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const D=le(this.remaining),L=this.remaining[D.length];if("/"!==L&&")"!==L&&";"!==L)throw new c.wOt(4010,!1);let pe;D.indexOf(":")>-1?(pe=D.slice(0,D.indexOf(":")),this.capture(pe),this.capture(":")):b&&(pe=Je);const xe=this.parseChildren();N[pe]=1===Object.keys(xe).length?xe[Je]:new rr([],xe),this.consumeOptional("//")}return N}peekStartsWith(b){return this.remaining.startsWith(b)}consumeOptional(b){return!!this.peekStartsWith(b)&&(this.remaining=this.remaining.substring(b.length),!0)}capture(b){if(!this.consumeOptional(b))throw new c.wOt(4011,!1)}}function wn(E){return E.segments.length>0?new rr([],{[Je]:E}):E}function hr(E){const b={};for(const[D,L]of Object.entries(E.children)){const pe=hr(L);if(D===Je&&0===pe.segments.length&&pe.hasChildren())for(const[xe,Ft]of Object.entries(pe.children))b[xe]=Ft;else(pe.segments.length>0||pe.hasChildren())&&(b[D]=pe)}return function wr(E){if(1===E.numberOfChildren&&E.children[Je]){const b=E.children[Je];return new rr(E.segments.concat(b.segments),b.children)}return E}(new rr(E.segments,b))}function fr(E){return E instanceof Vr}function oi(E){var b;let N;const pe=wn(function D(xe){const Ft={};for(const Wt of xe.children){const Qn=D(Wt);Ft[Wt.outlet]=Qn}const An=new rr(xe.url,Ft);return xe===E&&(N=An),An}(E.root));return null!==(b=N)&&void 0!==b?b:pe}function Ir(E,b,N,D){let L=E;for(;L.parent;)L=L.parent;if(0===b.length)return Ar(L,L,L,N,D);const pe=function te(E){if("string"==typeof E[0]&&1===E.length&&"/"===E[0])return new ie(!0,0,E);let b=0,N=!1;const D=E.reduce((L,pe,xe)=>{if("object"==typeof pe&&null!=pe){if(pe.outlets){const Ft={};return Object.entries(pe.outlets).forEach(([An,Wt])=>{Ft[An]="string"==typeof Wt?Wt.split("/"):Wt}),[...L,{outlets:Ft}]}if(pe.segmentPath)return[...L,pe.segmentPath]}return"string"!=typeof pe?[...L,pe]:0===xe?(pe.split("/").forEach((Ft,An)=>{0==An&&"."===Ft||(0==An&&""===Ft?N=!0:".."===Ft?b++:""!=Ft&&L.push(Ft))}),L):[...L,pe]},[]);return new ie(N,b,D)}(b);if(pe.toRoot())return Ar(L,L,new rr([],{}),N,D);const xe=function M(E,b,N){if(E.isAbsolute)return new ze(b,!0,0);if(!N)return new ze(b,!1,NaN);if(null===N.parent)return new ze(N,!0,0);const D=xi(E.commands[0])?0:1;return function O(E,b,N){let D=E,L=b,pe=N;for(;pe>L;){if(pe-=L,D=D.parent,!D)throw new c.wOt(4005,!1);L=D.segments.length}return new ze(D,!1,L-pe)}(N,N.segments.length-1+D,E.numberOfDoubleDots)}(pe,L,E),Ft=xe.processChildren?We(xe.segmentGroup,xe.index,pe.commands):we(xe.segmentGroup,xe.index,pe.commands);return Ar(L,xe.segmentGroup,Ft,N,D)}function xi(E){return"object"==typeof E&&null!=E&&!E.outlets&&!E.segmentPath}function vi(E){return"object"==typeof E&&null!=E&&E.outlets}function Ar(E,b,N,D,L){let xe,pe={};D&&Object.entries(D).forEach(([An,Wt])=>{pe[An]=Array.isArray(Wt)?Wt.map(Qn=>`${Qn}`):`${Wt}`}),xe=E===b?N:Gt(E,b,N);const Ft=wn(hr(xe));return new Vr(Ft,pe,L)}function Gt(E,b,N){const D={};return Object.entries(E.children).forEach(([L,pe])=>{D[L]=pe===b?N:Gt(pe,b,N)}),new rr(E.segments,D)}class ie{constructor(b,N,D){if(this.isAbsolute=b,this.numberOfDoubleDots=N,this.commands=D,b&&D.length>0&&xi(D[0]))throw new c.wOt(4003,!1);const L=D.find(vi);if(L&&L!==Lt(D))throw new c.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ze{constructor(b,N,D){this.segmentGroup=b,this.processChildren=N,this.index=D}}function we(E,b,N){var D;if(null!==(D=E)&&void 0!==D||(E=new rr([],{})),0===E.segments.length&&E.hasChildren())return We(E,b,N);const L=function St(E,b,N){let D=0,L=b;const pe={match:!1,pathIndex:0,commandIndex:0};for(;L=N.length)return pe;const xe=E.segments[L],Ft=N[D];if(vi(Ft))break;const An=`${Ft}`,Wt=D0&&void 0===An)break;if(An&&Wt&&"object"==typeof Wt&&void 0===Wt.outlets){if(!qn(An,Wt,xe))return pe;D+=2}else{if(!qn(An,{},xe))return pe;D++}L++}return{match:!0,pathIndex:L,commandIndex:D}}(E,b,N),pe=N.slice(L.commandIndex);if(L.match&&L.pathIndexpe!==Je)&&E.children[Je]&&1===E.numberOfChildren&&0===E.children[Je].segments.length){const pe=We(E.children[Je],b,N);return new rr(E.segments,pe.children)}return Object.entries(D).forEach(([pe,xe])=>{"string"==typeof xe&&(xe=[xe]),null!==xe&&(L[pe]=we(E.children[pe],b,xe))}),Object.entries(E.children).forEach(([pe,xe])=>{void 0===D[pe]&&(L[pe]=xe)}),new rr(E.segments,L)}}function nn(E,b,N){const D=E.segments.slice(0,b);let L=0;for(;L{"string"==typeof D&&(D=[D]),null!==D&&(b[N]=nn(new rr([],{}),0,D))}),b}function pr(E){const b={};return Object.entries(E).forEach(([N,D])=>b[N]=`${D}`),b}function qn(E,b,N){return E==N.path&&cr(b,N.parameters)}const Sr="imperative";var jn=function(E){return E[E.NavigationStart=0]="NavigationStart",E[E.NavigationEnd=1]="NavigationEnd",E[E.NavigationCancel=2]="NavigationCancel",E[E.NavigationError=3]="NavigationError",E[E.RoutesRecognized=4]="RoutesRecognized",E[E.ResolveStart=5]="ResolveStart",E[E.ResolveEnd=6]="ResolveEnd",E[E.GuardsCheckStart=7]="GuardsCheckStart",E[E.GuardsCheckEnd=8]="GuardsCheckEnd",E[E.RouteConfigLoadStart=9]="RouteConfigLoadStart",E[E.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",E[E.ChildActivationStart=11]="ChildActivationStart",E[E.ChildActivationEnd=12]="ChildActivationEnd",E[E.ActivationStart=13]="ActivationStart",E[E.ActivationEnd=14]="ActivationEnd",E[E.Scroll=15]="Scroll",E[E.NavigationSkipped=16]="NavigationSkipped",E}(jn||{});class zr{constructor(b,N){this.id=b,this.url=N}}class $r extends zr{constructor(b,N,D="imperative",L=null){super(b,N),this.type=jn.NavigationStart,this.navigationTrigger=D,this.restoredState=L}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Pr extends zr{constructor(b,N,D){super(b,N),this.urlAfterRedirects=D,this.type=jn.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Nr=function(E){return E[E.Redirect=0]="Redirect",E[E.SupersededByNewNavigation=1]="SupersededByNewNavigation",E[E.NoDataFromResolver=2]="NoDataFromResolver",E[E.GuardRejected=3]="GuardRejected",E}(Nr||{}),er=function(E){return E[E.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",E[E.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",E}(er||{});class Rr extends zr{constructor(b,N,D,L){super(b,N),this.reason=D,this.code=L,this.type=jn.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class di extends zr{constructor(b,N,D,L){super(b,N),this.reason=D,this.code=L,this.type=jn.NavigationSkipped}}class hi extends zr{constructor(b,N,D,L){super(b,N),this.error=D,this.target=L,this.type=jn.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Yr extends zr{constructor(b,N,D,L){super(b,N),this.urlAfterRedirects=D,this.state=L,this.type=jn.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hr extends zr{constructor(b,N,D,L){super(b,N),this.urlAfterRedirects=D,this.state=L,this.type=jn.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _i extends zr{constructor(b,N,D,L,pe){super(b,N),this.urlAfterRedirects=D,this.state=L,this.shouldActivate=pe,this.type=jn.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class tr extends zr{constructor(b,N,D,L){super(b,N),this.urlAfterRedirects=D,this.state=L,this.type=jn.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Zn extends zr{constructor(b,N,D,L){super(b,N),this.urlAfterRedirects=D,this.state=L,this.type=jn.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mo{constructor(b){this.route=b,this.type=jn.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class fi{constructor(b){this.route=b,this.type=jn.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class yi{constructor(b){this.snapshot=b,this.type=jn.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vo{constructor(b){this.snapshot=b,this.type=jn.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bo{constructor(b){this.snapshot=b,this.type=jn.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ui{constructor(b){this.snapshot=b,this.type=jn.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Pt{constructor(b,N,D){this.routerEvent=b,this.position=N,this.anchor=D,this.type=jn.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class ge{}class fe{constructor(b){this.url=b}}class je{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Be,this.attachRef=null}}let Be=(()=>{var E;class b{constructor(){this.contexts=new Map}onChildOutletCreated(D,L){const pe=this.getOrCreateContext(D);pe.outlet=L,this.contexts.set(D,pe)}onChildOutletDestroyed(D){const L=this.getContext(D);L&&(L.outlet=null,L.attachRef=null)}onOutletDeactivated(){const D=this.contexts;return this.contexts=new Map,D}onOutletReAttached(D){this.contexts=D}getOrCreateContext(D){let L=this.getContext(D);return L||(L=new je,this.contexts.set(D,L)),L}getContext(D){return this.contexts.get(D)||null}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();class ct{constructor(b){this._root=b}get root(){return this._root.value}parent(b){const N=this.pathFromRoot(b);return N.length>1?N[N.length-2]:null}children(b){const N=Kt(b,this._root);return N?N.children.map(D=>D.value):[]}firstChild(b){const N=Kt(b,this._root);return N&&N.children.length>0?N.children[0].value:null}siblings(b){const N=Dn(b,this._root);return N.length<2?[]:N[N.length-2].children.map(L=>L.value).filter(L=>L!==b)}pathFromRoot(b){return Dn(b,this._root).map(N=>N.value)}}function Kt(E,b){if(E===b.value)return b;for(const N of b.children){const D=Kt(E,N);if(D)return D}return null}function Dn(E,b){if(E===b.value)return[b];for(const N of b.children){const D=Dn(E,N);if(D.length)return D.unshift(b),D}return[]}class Hn{constructor(b,N){this.value=b,this.children=N}toString(){return`TreeNode(${this.value})`}}function w(E){const b={};return E&&E.children.forEach(N=>b[N.value.outlet]=N),b}class H extends ct{constructor(b,N){super(b),this.snapshot=N,W(this,b)}toString(){return this.snapshot.toString()}}function oe(E){const b=function P(E){const pe=new vr([],{},{},"",{},Je,E,null,{});return new ai("",new Hn(pe,[]))}(E),N=new he.t([new Mr("",{})]),D=new he.t({}),L=new he.t({}),pe=new he.t({}),xe=new he.t(""),Ft=new Te(N,D,pe,xe,L,Je,E,b.root);return Ft.snapshot=b.root,new H(new Hn(Ft,[]),b)}class Te{constructor(b,N,D,L,pe,xe,Ft,An){var Wt,Qn;this.urlSubject=b,this.paramsSubject=N,this.queryParamsSubject=D,this.fragmentSubject=L,this.dataSubject=pe,this.outlet=xe,this.component=Ft,this._futureSnapshot=An,this.title=null!==(Wt=null===(Qn=this.dataSubject)||void 0===Qn?void 0:Qn.pipe((0,_e.T)(Xr=>Xr[Sn])))&&void 0!==Wt?Wt:(0,$.of)(void 0),this.url=b,this.params=N,this.queryParams=D,this.fragment=L,this.data=pe}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){var b;return null!==(b=this._paramMap)&&void 0!==b||(this._paramMap=this.params.pipe((0,_e.T)(N=>On(N)))),this._paramMap}get queryParamMap(){var b;return null!==(b=this._queryParamMap)&&void 0!==b||(this._queryParamMap=this.queryParams.pipe((0,_e.T)(N=>On(N)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function dt(E,b,N="emptyOnly"){var D;let L;const{routeConfig:pe}=E;var xe;return L=null===b||"always"!==N&&""!==(null==pe?void 0:pe.path)&&(b.component||null!==(D=b.routeConfig)&&void 0!==D&&D.loadComponent)?{params:{...E.params},data:{...E.data},resolve:{...E.data,...null!==(xe=E._resolvedData)&&void 0!==xe?xe:{}}}:{params:{...b.params,...E.params},data:{...b.data,...E.data},resolve:{...E.data,...b.data,...null==pe?void 0:pe.data,...E._resolvedData}},pe&&Ot(pe)&&(L.resolve[Sn]=pe.title),L}class vr{get title(){var b;return null===(b=this.data)||void 0===b?void 0:b[Sn]}constructor(b,N,D,L,pe,xe,Ft,An,Wt){this.url=b,this.params=N,this.queryParams=D,this.fragment=L,this.data=pe,this.outlet=xe,this.component=Ft,this.routeConfig=An,this._resolve=Wt}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){var b;return null!==(b=this._paramMap)&&void 0!==b||(this._paramMap=On(this.params)),this._paramMap}get queryParamMap(){var b;return null!==(b=this._queryParamMap)&&void 0!==b||(this._queryParamMap=On(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(D=>D.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ai extends ct{constructor(b,N){super(N),this.url=b,W(this,N)}toString(){return ye(this._root)}}function W(E,b){b.value._routerState=E,b.children.forEach(N=>W(E,N))}function ye(E){const b=E.children.length>0?` { ${E.children.map(ye).join(", ")} } `:"";return`${E.value}${b}`}function Fe(E){if(E.snapshot){const b=E.snapshot,N=E._futureSnapshot;E.snapshot=N,cr(b.queryParams,N.queryParams)||E.queryParamsSubject.next(N.queryParams),b.fragment!==N.fragment&&E.fragmentSubject.next(N.fragment),cr(b.params,N.params)||E.paramsSubject.next(N.params),function gr(E,b){if(E.length!==b.length)return!1;for(let N=0;Ncr(N.parameters,b[D].parameters))}(E.url,b.url);return N&&!(!E.parent!=!b.parent)&&(!E.parent||ot(E.parent,b.parent))}function Ot(E){return"string"==typeof E.title||null===E.title}let wt=(()=>{var E;class b{constructor(){this.activated=null,this._activatedRoute=null,this.name=Je,this.activateEvents=new c.bkB,this.deactivateEvents=new c.bkB,this.attachEvents=new c.bkB,this.detachEvents=new c.bkB,this.parentContexts=(0,c.WQX)(Be),this.location=(0,c.WQX)(c.c1b),this.changeDetector=(0,c.WQX)(c.gRc),this.environmentInjector=(0,c.WQX)(c.uvJ),this.inputBinder=(0,c.WQX)(pn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(D){if(D.name){const{firstChange:L,previousValue:pe}=D.name;if(L)return;this.isTrackedInParentContexts(pe)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(pe)),this.initializeOutletWithName()}}ngOnDestroy(){var D;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null===(D=this.inputBinder)||void 0===D||D.unsubscribeFromRouteData(this)}isTrackedInParentContexts(D){var L;return(null===(L=this.parentContexts.getContext(D))||void 0===L?void 0:L.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const D=this.parentContexts.getContext(this.name);null!=D&&D.route&&(D.attachRef?this.attach(D.attachRef,D.route):this.activateWith(D.route,D.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new c.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new c.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new c.wOt(4012,!1);this.location.detach();const D=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(D.instance),D}attach(D,L){var pe;this.activated=D,this._activatedRoute=L,this.location.insert(D.hostView),null===(pe=this.inputBinder)||void 0===pe||pe.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(D.instance)}deactivate(){if(this.activated){const D=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(D)}}activateWith(D,L){var pe;if(this.isActivated)throw new c.wOt(4013,!1);this._activatedRoute=D;const xe=this.location,An=D.snapshot.component,Wt=this.parentContexts.getOrCreateContext(this.name).children,Qn=new en(D,Wt,xe.injector);this.activated=xe.createComponent(An,{index:xe.length,injector:Qn,environmentInjector:null!=L?L:this.environmentInjector}),this.changeDetector.markForCheck(),null===(pe=this.inputBinder)||void 0===pe||pe.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275dir=c.FsC({type:E,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[c.OA$]}),b})();class en{__ngOutletInjector(b){return new en(this.route,this.childContexts,b)}constructor(b,N,D){this.route=b,this.childContexts=N,this.parent=D}get(b,N){return b===Te?this.route:b===Be?this.childContexts:this.parent.get(b,N)}}const pn=new c.nKC("");let vn=(()=>{var E;class b{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(D){this.unsubscribeFromRouteData(D),this.subscribeToRouteData(D)}unsubscribeFromRouteData(D){var L;null===(L=this.outletDataSubscriptions.get(D))||void 0===L||L.unsubscribe(),this.outletDataSubscriptions.delete(D)}subscribeToRouteData(D){const{activatedRoute:L}=D,pe=(0,ae.z)([L.queryParams,L.params,L.data]).pipe((0,$e.n)(([xe,Ft,An],Wt)=>(An={...xe,...Ft,...An},0===Wt?(0,$.of)(An):Promise.resolve(An)))).subscribe(xe=>{if(!D.isActivated||!D.activatedComponentRef||D.activatedRoute!==L||null===L.component)return void this.unsubscribeFromRouteData(D);const Ft=(0,c.HJs)(L.component);if(Ft)for(const{templateName:An}of Ft.inputs)D.activatedComponentRef.setInput(An,xe[An]);else this.unsubscribeFromRouteData(D)});this.outletDataSubscriptions.set(D,pe)}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac}),b})();function Gn(E,b,N){if(N&&E.shouldReuseRoute(b.value,N.value.snapshot)){const D=N.value;D._futureSnapshot=b.value;const L=function Yn(E,b,N){return b.children.map(D=>{for(const L of N.children)if(E.shouldReuseRoute(D.value,L.value.snapshot))return Gn(E,D,L);return Gn(E,D)})}(E,b,N);return new Hn(D,L)}{if(E.shouldAttach(b.value)){const pe=E.retrieve(b.value);if(null!==pe){const xe=pe.route;return xe.value._futureSnapshot=b.value,xe.children=b.children.map(Ft=>Gn(E,Ft)),xe}}const D=function _r(E){return new Te(new he.t(E.url),new he.t(E.params),new he.t(E.queryParams),new he.t(E.fragment),new he.t(E.data),E.outlet,E.component,E)}(b.value),L=b.children.map(pe=>Gn(E,pe));return new Hn(D,L)}}const Kn="ngNavigationCancelingError";function Qr(E,b){const{redirectTo:N,navigationBehaviorOptions:D}=fr(b)?{redirectTo:b,navigationBehaviorOptions:void 0}:b,L=Wr(!1,Nr.Redirect);return L.url=N,L.navigationBehaviorOptions=D,L}function Wr(E,b){const N=new Error(`NavigationCancelingError: ${E||""}`);return N[Kn]=!0,N.cancellationCode=b,N}function ki(E){return!!E&&E[Kn]}let Fi=(()=>{var E;class b{}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275cmp=c.VBU({type:E,selectors:[["ng-component"]],standalone:!0,features:[c.aNF],decls:1,vars:0,template:function(D,L){1&D&&c.nrm(0,"router-outlet")},dependencies:[wt],encapsulation:2}),b})();function ws(E){const b=E.children&&E.children.map(ws),N=b?{...E,children:b}:{...E};return!N.component&&!N.loadComponent&&(b||N.loadChildren)&&N.outlet&&N.outlet!==Je&&(N.component=Fi),N}function ho(E){return E.outlet||Je}function Jr(E){var b;if(!E)return null;if(null!==(b=E.routeConfig)&&void 0!==b&&b._injector)return E.routeConfig._injector;for(let N=E.parent;N;N=N.parent){const D=N.routeConfig;if(null!=D&&D._loadedInjector)return D._loadedInjector;if(null!=D&&D._injector)return D._injector}return null}class Ss{constructor(b,N,D,L,pe){this.routeReuseStrategy=b,this.futureState=N,this.currState=D,this.forwardEvent=L,this.inputBindingEnabled=pe}activate(b){const N=this.futureState._root,D=this.currState?this.currState._root:null;this.deactivateChildRoutes(N,D,b),Fe(this.futureState.root),this.activateChildRoutes(N,D,b)}deactivateChildRoutes(b,N,D){const L=w(N);b.children.forEach(pe=>{const xe=pe.value.outlet;this.deactivateRoutes(pe,L[xe],D),delete L[xe]}),Object.values(L).forEach(pe=>{this.deactivateRouteAndItsChildren(pe,D)})}deactivateRoutes(b,N,D){const L=b.value,pe=N?N.value:null;if(L===pe)if(L.component){const xe=D.getContext(L.outlet);xe&&this.deactivateChildRoutes(b,N,xe.children)}else this.deactivateChildRoutes(b,N,D);else pe&&this.deactivateRouteAndItsChildren(N,D)}deactivateRouteAndItsChildren(b,N){b.value.component&&this.routeReuseStrategy.shouldDetach(b.value.snapshot)?this.detachAndStoreRouteSubtree(b,N):this.deactivateRouteAndOutlet(b,N)}detachAndStoreRouteSubtree(b,N){const D=N.getContext(b.value.outlet),L=D&&b.value.component?D.children:N,pe=w(b);for(const xe of Object.values(pe))this.deactivateRouteAndItsChildren(xe,L);if(D&&D.outlet){const xe=D.outlet.detach(),Ft=D.children.onOutletDeactivated();this.routeReuseStrategy.store(b.value.snapshot,{componentRef:xe,route:b,contexts:Ft})}}deactivateRouteAndOutlet(b,N){const D=N.getContext(b.value.outlet),L=D&&b.value.component?D.children:N,pe=w(b);for(const xe of Object.values(pe))this.deactivateRouteAndItsChildren(xe,L);D&&(D.outlet&&(D.outlet.deactivate(),D.children.onOutletDeactivated()),D.attachRef=null,D.route=null)}activateChildRoutes(b,N,D){const L=w(N);b.children.forEach(pe=>{this.activateRoutes(pe,L[pe.value.outlet],D),this.forwardEvent(new ui(pe.value.snapshot))}),b.children.length&&this.forwardEvent(new vo(b.value.snapshot))}activateRoutes(b,N,D){const L=b.value,pe=N?N.value:null;if(Fe(L),L===pe)if(L.component){const xe=D.getOrCreateContext(L.outlet);this.activateChildRoutes(b,N,xe.children)}else this.activateChildRoutes(b,N,D);else if(L.component){const xe=D.getOrCreateContext(L.outlet);if(this.routeReuseStrategy.shouldAttach(L.snapshot)){const Ft=this.routeReuseStrategy.retrieve(L.snapshot);this.routeReuseStrategy.store(L.snapshot,null),xe.children.onOutletReAttached(Ft.contexts),xe.attachRef=Ft.componentRef,xe.route=Ft.route.value,xe.outlet&&xe.outlet.attach(Ft.componentRef,Ft.route.value),Fe(Ft.route.value),this.activateChildRoutes(b,null,xe.children)}else{const Ft=Jr(L.snapshot);xe.attachRef=null,xe.route=L,xe.injector=Ft,xe.outlet&&xe.outlet.activateWith(L,xe.injector),this.activateChildRoutes(b,null,xe.children)}}else this.activateChildRoutes(b,null,D)}}class Us{constructor(b){this.path=b,this.route=this.path[this.path.length-1]}}class Rs{constructor(b,N){this.component=b,this.route=N}}function Zo(E,b,N){const D=E._root;return us(D,b?b._root:null,N,[D.value])}function Xo(E,b){const N=Symbol(),D=b.get(E,N);return D===N?"function"!=typeof E||(0,c.LfX)(E)?b.get(E):E:D}function us(E,b,N,D,L={canDeactivateChecks:[],canActivateChecks:[]}){const pe=w(b);return E.children.forEach(xe=>{(function Ms(E,b,N,D,L={canDeactivateChecks:[],canActivateChecks:[]}){const pe=E.value,xe=b?b.value:null,Ft=N?N.getContext(E.value.outlet):null;if(xe&&pe.routeConfig===xe.routeConfig){const An=function ne(E,b,N){if("function"==typeof N)return N(E,b);switch(N){case"pathParamsChange":return!ii(E.url,b.url);case"pathParamsOrQueryParamsChange":return!ii(E.url,b.url)||!cr(E.queryParams,b.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ot(E,b)||!cr(E.queryParams,b.queryParams);default:return!ot(E,b)}}(xe,pe,pe.routeConfig.runGuardsAndResolvers);An?L.canActivateChecks.push(new Us(D)):(pe.data=xe.data,pe._resolvedData=xe._resolvedData),us(E,b,pe.component?Ft?Ft.children:null:N,D,L),An&&Ft&&Ft.outlet&&Ft.outlet.isActivated&&L.canDeactivateChecks.push(new Rs(Ft.outlet.component,xe))}else xe&&ee(b,Ft,L),L.canActivateChecks.push(new Us(D)),us(E,null,pe.component?Ft?Ft.children:null:N,D,L)})(xe,pe[xe.value.outlet],N,D.concat([xe.value]),L),delete pe[xe.value.outlet]}),Object.entries(pe).forEach(([xe,Ft])=>ee(Ft,N.getContext(xe),L)),L}function ee(E,b,N){const D=w(E),L=E.value;Object.entries(D).forEach(([pe,xe])=>{ee(xe,L.component?b?b.children.getContext(pe):null:b,N)}),N.canDeactivateChecks.push(new Rs(L.component&&b&&b.outlet&&b.outlet.isActivated?b.outlet.component:null,L))}function qe(E){return"function"==typeof E}function z(E){return E instanceof Xe.G||"EmptyError"===(null==E?void 0:E.name)}const Pe=Symbol("INITIAL_VALUE");function an(){return(0,$e.n)(E=>(0,ae.z)(E.map(b=>b.pipe((0,Le.s)(1),(0,Oe.Z)(Pe)))).pipe((0,_e.T)(b=>{for(const N of b)if(!0!==N){if(N===Pe)return Pe;if(!1===N||N instanceof Vr)return N}return!0}),(0,Ct.p)(b=>b!==Pe),(0,Le.s)(1)))}function qo(E){return(0,it.F)((0,st.M)(b=>{if(fr(b))throw Qr(0,b)}),(0,_e.T)(b=>!0===b))}class ys{constructor(b){this.segmentGroup=b||null}}class Eo extends Error{constructor(b){super(),this.urlTree=b}}function ko(E){return at(new ys(E))}class So{constructor(b,N){this.urlSerializer=b,this.urlTree=N}lineralizeSegments(b,N){let D=[],L=N.root;for(;;){if(D=D.concat(L.segments),0===L.numberOfChildren)return(0,$.of)(D);if(L.numberOfChildren>1||!L.children[Je])return at(new c.wOt(4e3,!1));L=L.children[Je]}}applyRedirectCommands(b,N,D){const L=this.applyRedirectCreateUrlTree(N,this.urlSerializer.parse(N),b,D);if(N.startsWith("/"))throw new Eo(L);return L}applyRedirectCreateUrlTree(b,N,D,L){const pe=this.createSegmentGroup(b,N.root,D,L);return new Vr(pe,this.createQueryParams(N.queryParams,this.urlTree.queryParams),N.fragment)}createQueryParams(b,N){const D={};return Object.entries(b).forEach(([L,pe])=>{if("string"==typeof pe&&pe.startsWith(":")){const Ft=pe.substring(1);D[L]=N[Ft]}else D[L]=pe}),D}createSegmentGroup(b,N,D,L){const pe=this.createSegments(b,N.segments,D,L);let xe={};return Object.entries(N.children).forEach(([Ft,An])=>{xe[Ft]=this.createSegmentGroup(b,An,D,L)}),new rr(pe,xe)}createSegments(b,N,D,L){return N.map(pe=>pe.path.startsWith(":")?this.findPosParam(b,pe,L):this.findOrReturn(pe,D))}findPosParam(b,N,D){const L=D[N.path.substring(1)];if(!L)throw new c.wOt(4001,!1);return L}findOrReturn(b,N){let D=0;for(const L of N){if(L.path===b.path)return N.splice(D),L;D++}return b}}const Li={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ba(E,b,N,D,L){const pe=es(E,b,N);return pe.matched?(D=function Bi(E,b){var N;return E.providers&&!E._injector&&(E._injector=(0,c.Ol2)(E.providers,b,`Route: ${E.path}`)),null!==(N=E._injector)&&void 0!==N?N:b}(b,D),function cs(E,b,N,D){const L=b.canMatch;if(!L||0===L.length)return(0,$.of)(!0);const pe=L.map(xe=>{const Ft=Xo(xe,E);return Xt(function se(E){return E&&qe(E.canMatch)}(Ft)?Ft.canMatch(b,N):(0,c.N4e)(E,()=>Ft(b,N)))});return(0,$.of)(pe).pipe(an(),qo())}(D,b,N).pipe((0,_e.T)(xe=>!0===xe?pe:{...Li}))):(0,$.of)(pe)}function es(E,b,N){var D,L;if("**"===b.path)return function Ps(E){return{matched:!0,parameters:E.length>0?Lt(E).parameters:{},consumedSegments:E,remainingSegments:[],positionalParamSegments:{}}}(N);if(""===b.path)return"full"===b.pathMatch&&(E.hasChildren()||N.length>0)?{...Li}:{matched:!0,consumedSegments:[],remainingSegments:N,parameters:{},positionalParamSegments:{}};const xe=(b.matcher||or)(N,E,b);if(!xe)return{...Li};const Ft={};Object.entries(null!==(D=xe.posParams)&&void 0!==D?D:{}).forEach(([Wt,Qn])=>{Ft[Wt]=Qn.path});const An=xe.consumed.length>0?{...Ft,...xe.consumed[xe.consumed.length-1].parameters}:Ft;return{matched:!0,consumedSegments:xe.consumed,remainingSegments:N.slice(xe.consumed.length),parameters:An,positionalParamSegments:null!==(L=xe.posParams)&&void 0!==L?L:{}}}function cl(E,b,N,D){return N.length>0&&function Zs(E,b,N){return N.some(D=>xs(E,b,D)&&ho(D)!==Je)}(E,N,D)?{segmentGroup:new rr(b,dl(D,new rr(N,E.children))),slicedSegments:[]}:0===N.length&&function Ua(E,b,N){return N.some(D=>xs(E,b,D))}(E,N,D)?{segmentGroup:new rr(E.segments,ei(E,N,D,E.children)),slicedSegments:N}:{segmentGroup:new rr(E.segments,E.children),slicedSegments:N}}function ei(E,b,N,D){const L={};for(const pe of N)if(xs(E,b,pe)&&!D[ho(pe)]){const xe=new rr([],{});L[ho(pe)]=xe}return{...D,...L}}function dl(E,b){const N={};N[Je]=b;for(const D of E)if(""===D.path&&ho(D)!==Je){const L=new rr([],{});N[ho(D)]=L}return N}function xs(E,b,N){return(!(E.hasChildren()||b.length>0)||"full"!==N.pathMatch)&&""===N.path}class Ul{}class Os{constructor(b,N,D,L,pe,xe,Ft){this.injector=b,this.configLoader=N,this.rootComponentType=D,this.config=L,this.urlTree=pe,this.paramsInheritanceStrategy=xe,this.urlSerializer=Ft,this.applyRedirects=new So(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(b){return new c.wOt(4002,`'${b.segmentGroup}'`)}recognize(){const b=cl(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(b).pipe((0,_e.T)(N=>{const D=new vr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Je,this.rootComponentType,null,{}),L=new Hn(D,N),pe=new ai("",L),xe=function Ur(E,b,N=null,D=null){return Ir(oi(E),b,N,D)}(D,[],this.urlTree.queryParams,this.urlTree.fragment);return xe.queryParams=this.urlTree.queryParams,pe.url=this.urlSerializer.serialize(xe),this.inheritParamsAndData(pe._root,null),{state:pe,tree:xe}}))}match(b){return this.processSegmentGroup(this.injector,this.config,b,Je).pipe(cn(D=>{if(D instanceof Eo)return this.urlTree=D.urlTree,this.match(D.urlTree.root);throw D instanceof ys?this.noMatchError(D):D}))}inheritParamsAndData(b,N){const D=b.value,L=dt(D,N,this.paramsInheritanceStrategy);D.params=Object.freeze(L.params),D.data=Object.freeze(L.data),b.children.forEach(pe=>this.inheritParamsAndData(pe,D))}processSegmentGroup(b,N,D,L){return 0===D.segments.length&&D.hasChildren()?this.processChildren(b,N,D):this.processSegment(b,N,D,D.segments,L,!0).pipe((0,_e.T)(pe=>pe instanceof Hn?[pe]:[]))}processChildren(b,N,D){const L=[];for(const pe of Object.keys(D.children))"primary"===pe?L.unshift(pe):L.push(pe);return(0,ke.H)(L).pipe((0,Et.H)(pe=>{const xe=D.children[pe],Ft=function Uo(E,b){const N=E.filter(D=>ho(D)===b);return N.push(...E.filter(D=>ho(D)!==b)),N}(N,pe);return this.processSegmentGroup(b,Ft,xe,pe)}),function Re(E,b){return(0,Dt.N)(function vt(E,b,N,D,L){return(pe,xe)=>{let Ft=N,An=b,Wt=0;pe.subscribe((0,zt._)(xe,Qn=>{const Xr=Wt++;An=Ft?E(An,Qn,Xr):(Ft=!0,Qn),D&&xe.next(An)},L&&(()=>{Ft&&xe.next(An),xe.complete()})))}}(E,b,arguments.length>=2,!0))}((pe,xe)=>(pe.push(...xe),pe)),(0,G.U)(null),function Ee(E,b){const N=arguments.length>=2;return D=>D.pipe(E?(0,Ct.p)((L,pe)=>E(L,pe,D)):ue.D,X(1),N?(0,G.U)(b):(0,ce.v)(()=>new Xe.G))}(),(0,kt.Z)(pe=>{if(null===pe)return ko(D);const xe=Ns(pe);return function $s(E){E.sort((b,N)=>b.value.outlet===Je?-1:N.value.outlet===Je?1:b.value.outlet.localeCompare(N.value.outlet))}(xe),(0,$.of)(xe)}))}processSegment(b,N,D,L,pe,xe){return(0,ke.H)(N).pipe((0,Et.H)(Ft=>{var An;return this.processSegmentAgainstRoute(null!==(An=Ft._injector)&&void 0!==An?An:b,N,Ft,D,L,pe,xe).pipe(cn(Wt=>{if(Wt instanceof ys)return(0,$.of)(null);throw Wt}))}),(0,Cn.$)(Ft=>!!Ft),cn(Ft=>{if(z(Ft))return function $a(E,b,N){return 0===b.length&&!E.children[N]}(D,L,pe)?(0,$.of)(new Ul):ko(D);throw Ft}))}processSegmentAgainstRoute(b,N,D,L,pe,xe,Ft){return function hl(E,b,N,D){return!!(ho(E)===D||D!==Je&&xs(b,N,E))&&es(b,E,N).matched}(D,L,pe,xe)?void 0===D.redirectTo?this.matchSegmentAgainstRoute(b,L,D,pe,xe):this.allowRedirects&&Ft?this.expandSegmentAgainstRouteUsingRedirect(b,L,N,D,pe,xe):ko(L):ko(L)}expandSegmentAgainstRouteUsingRedirect(b,N,D,L,pe,xe){const{matched:Ft,consumedSegments:An,positionalParamSegments:Wt,remainingSegments:Qn}=es(N,L,pe);if(!Ft)return ko(N);L.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Xr=this.applyRedirects.applyRedirectCommands(An,L.redirectTo,Wt);return this.applyRedirects.lineralizeSegments(L,Xr).pipe((0,kt.Z)(Ji=>this.processSegment(b,D,N,Ji.concat(Qn),xe,!1)))}matchSegmentAgainstRoute(b,N,D,L,pe){const xe=Ba(N,D,L,b);return"**"===D.path&&(N.children={}),xe.pipe((0,$e.n)(Ft=>{var An;return Ft.matched?(b=null!==(An=D._injector)&&void 0!==An?An:b,this.getChildConfig(b,D,L).pipe((0,$e.n)(({routes:Wt})=>{var Qn,Xr,Ji;const Ri=null!==(Qn=D._loadedInjector)&&void 0!==Qn?Qn:b,{consumedSegments:fo,remainingSegments:oa,parameters:Wa}=Ft,Ka=new vr(fo,Wa,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function hs(E){return E.data||{}}(D),ho(D),null!==(Xr=null!==(Ji=D.component)&&void 0!==Ji?Ji:D._loadedComponent)&&void 0!==Xr?Xr:null,D,function Ru(E){return E.resolve||{}}(D)),{segmentGroup:Hs,slicedSegments:As}=cl(N,fo,oa,Wt);if(0===As.length&&Hs.hasChildren())return this.processChildren(Ri,Wt,Hs).pipe((0,_e.T)(Xa=>null===Xa?null:new Hn(Ka,Xa)));if(0===Wt.length&&0===As.length)return(0,$.of)(new Hn(Ka,[]));const Ra=ho(D)===pe;return this.processSegment(Ri,Wt,Hs,As,Ra?Je:pe,!0).pipe((0,_e.T)(Xa=>new Hn(Ka,Xa instanceof Hn?[Xa]:[])))}))):ko(N)}))}getChildConfig(b,N,D){return N.children?(0,$.of)({routes:N.children,injector:b}):N.loadChildren?void 0!==N._loadedRoutes?(0,$.of)({routes:N._loadedRoutes,injector:N._loadedInjector}):function Qi(E,b,N,D){const L=b.canLoad;if(void 0===L||0===L.length)return(0,$.of)(!0);const pe=L.map(xe=>{const Ft=Xo(xe,E);return Xt(function Vt(E){return E&&qe(E.canLoad)}(Ft)?Ft.canLoad(b,N):(0,c.N4e)(E,()=>Ft(b,N)))});return(0,$.of)(pe).pipe(an(),qo())}(b,N,D).pipe((0,kt.Z)(L=>L?this.configLoader.loadChildren(b,N).pipe((0,st.M)(pe=>{N._loadedRoutes=pe.routes,N._loadedInjector=pe.injector})):function eo(E){return at(Wr(!1,Nr.GuardRejected))}())):(0,$.of)({routes:[],injector:b})}}function ds(E){const b=E.value.routeConfig;return b&&""===b.path}function Ns(E){const b=[],N=new Set;for(const D of E){if(!ds(D)){b.push(D);continue}const L=b.find(pe=>D.value.routeConfig===pe.value.routeConfig);void 0!==L?(L.children.push(...D.children),N.add(L)):b.push(D)}for(const D of N){const L=Ns(D.children);b.push(new Hn(D.value,L))}return b.filter(D=>!N.has(D))}function Qo(E){const b=E.children.map(N=>Qo(N)).flat();return[E,...b]}function ja(E){return(0,$e.n)(b=>{const N=E(b);return N?(0,ke.H)(N).pipe((0,_e.T)(()=>b)):(0,$.of)(b)})}let Ea=(()=>{var E;class b{buildTitle(D){let L,pe=D.root;for(;void 0!==pe;){var xe;L=null!==(xe=this.getResolvedTitleForRoute(pe))&&void 0!==xe?xe:L,pe=pe.children.find(Ft=>Ft.outlet===Je)}return L}getResolvedTitleForRoute(D){return D.data[Sn]}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(za),providedIn:"root"}),b})(),za=(()=>{var E;class b extends Ea{constructor(D){super(),this.title=D}updateTitle(D){const L=this.buildTitle(D);void 0!==L&&this.title.setTitle(L)}}return(E=b).\u0275fac=function(D){return new(D||E)(c.KVO(un.hE))},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();const ts=new c.nKC("",{providedIn:"root",factory:()=>({})}),Ia=new c.nKC("");let Aa=(()=>{var E;class b{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,c.WQX)(c.Ql9)}loadComponent(D){if(this.componentLoaders.get(D))return this.componentLoaders.get(D);if(D._loadedComponent)return(0,$.of)(D._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(D);const L=Xt(D.loadComponent()).pipe((0,_e.T)(Gl),(0,st.M)(xe=>{this.onLoadEndListener&&this.onLoadEndListener(D),D._loadedComponent=xe}),(0,ut.j)(()=>{this.componentLoaders.delete(D)})),pe=new At(L,()=>new Ie.B).pipe(Tt());return this.componentLoaders.set(D,pe),pe}loadChildren(D,L){if(this.childrenLoaders.get(L))return this.childrenLoaders.get(L);if(L._loadedRoutes)return(0,$.of)({routes:L._loadedRoutes,injector:L._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(L);const xe=function ea(E,b,N,D){return Xt(E.loadChildren()).pipe((0,_e.T)(Gl),(0,kt.Z)(L=>L instanceof c.Co$||Array.isArray(L)?(0,$.of)(L):(0,ke.H)(b.compileModuleAsync(L))),(0,_e.T)(L=>{D&&D(E);let pe,xe,Ft=!1;return Array.isArray(L)?(xe=L,!0):(pe=L.create(N).injector,xe=pe.get(Ia,[],{optional:!0,self:!0}).flat()),{routes:xe.map(ws),injector:pe}}))}(L,this.compiler,D,this.onLoadEndListener).pipe((0,ut.j)(()=>{this.childrenLoaders.delete(L)})),Ft=new At(xe,()=>new Ie.B).pipe(Tt());return this.childrenLoaders.set(L,Ft),Ft}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();function Gl(E){return function Co(E){return E&&"object"==typeof E&&"default"in E}(E)?E.default:E}let Ca=(()=>{var E;class b{}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(T),providedIn:"root"}),b})(),T=(()=>{var E;class b{shouldProcessUrl(D){return!0}extract(D){return D}merge(D,L){return D}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();const j=new c.nKC(""),Ue=new c.nKC("");function F(E,b,N){const D=E.get(Ue),L=E.get(Ze.qQ);return E.get(c.SKi).runOutsideAngular(()=>{if(!L.startViewTransition||D.skipNextTransition)return D.skipNextTransition=!1,new Promise(Wt=>setTimeout(Wt));let pe;const xe=new Promise(Wt=>{pe=Wt}),Ft=L.startViewTransition(()=>(pe(),function De(E){return new Promise(b=>{(0,c.mal)(b,{injector:E})})}(E))),{onViewTransitionCreated:An}=D;return An&&(0,c.N4e)(E,()=>An({transition:Ft,from:b,to:N})),xe})}let Qe=(()=>{var E;class b{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Ie.B,this.transitionAbortSubject=new Ie.B,this.configLoader=(0,c.WQX)(Aa),this.environmentInjector=(0,c.WQX)(c.uvJ),this.urlSerializer=(0,c.WQX)(yr),this.rootContexts=(0,c.WQX)(Be),this.location=(0,c.WQX)(Ze.aZ),this.inputBindingEnabled=null!==(0,c.WQX)(pn,{optional:!0}),this.titleStrategy=(0,c.WQX)(Ea),this.options=(0,c.WQX)(ts,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,c.WQX)(Ca),this.createViewTransition=(0,c.WQX)(j,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,$.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=pe=>this.events.next(new fi(pe)),this.configLoader.onLoadStartListener=pe=>this.events.next(new mo(pe))}complete(){var D;null===(D=this.transitions)||void 0===D||D.complete()}handleNavigationRequest(D){var L;const pe=++this.navigationId;null===(L=this.transitions)||void 0===L||L.next({...this.transitions.value,...D,id:pe})}setupNavigations(D,L,pe){return this.transitions=new he.t({id:0,currentUrlTree:L,currentRawUrl:L,extractedUrl:this.urlHandlingStrategy.extract(L),urlAfterRedirects:this.urlHandlingStrategy.extract(L),rawUrl:L,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Sr,restoredState:null,currentSnapshot:pe.snapshot,targetSnapshot:null,currentRouterState:pe,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Ct.p)(xe=>0!==xe.id),(0,_e.T)(xe=>({...xe,extractedUrl:this.urlHandlingStrategy.extract(xe.rawUrl)})),(0,$e.n)(xe=>{let Ft=!1,An=!1;return(0,$.of)(xe).pipe((0,$e.n)(Wt=>{var Qn;if(this.navigationId>xe.id)return this.cancelNavigationTransition(xe,"",Nr.SupersededByNewNavigation),mt.w;this.currentTransition=xe,this.currentNavigation={id:Wt.id,initialUrl:Wt.rawUrl,extractedUrl:Wt.extractedUrl,trigger:Wt.source,extras:Wt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const Xr=!D.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),Ji=null!==(Qn=Wt.extras.onSameUrlNavigation)&&void 0!==Qn?Qn:D.onSameUrlNavigation;if(!Xr&&"reload"!==Ji){const Ri="";return this.events.next(new di(Wt.id,this.urlSerializer.serialize(Wt.rawUrl),Ri,er.IgnoredSameUrlNavigation)),Wt.resolve(null),mt.w}if(this.urlHandlingStrategy.shouldProcessUrl(Wt.rawUrl))return(0,$.of)(Wt).pipe((0,$e.n)(Ri=>{var fo,oa;const Wa=null===(fo=this.transitions)||void 0===fo?void 0:fo.getValue();return this.events.next(new $r(Ri.id,this.urlSerializer.serialize(Ri.extractedUrl),Ri.source,Ri.restoredState)),Wa!==(null===(oa=this.transitions)||void 0===oa?void 0:oa.getValue())?mt.w:Promise.resolve(Ri)}),function Hl(E,b,N,D,L,pe){return(0,kt.Z)(xe=>function $l(E,b,N,D,L,pe,xe="emptyOnly"){return new Os(E,b,N,D,L,xe,pe).recognize()}(E,b,N,D,xe.extractedUrl,L,pe).pipe((0,_e.T)(({state:Ft,tree:An})=>({...xe,targetSnapshot:Ft,urlAfterRedirects:An}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,D.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,st.M)(Ri=>{xe.targetSnapshot=Ri.targetSnapshot,xe.urlAfterRedirects=Ri.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Ri.urlAfterRedirects};const fo=new Yr(Ri.id,this.urlSerializer.serialize(Ri.extractedUrl),this.urlSerializer.serialize(Ri.urlAfterRedirects),Ri.targetSnapshot);this.events.next(fo)}));if(Xr&&this.urlHandlingStrategy.shouldProcessUrl(Wt.currentRawUrl)){const{id:Ri,extractedUrl:fo,source:oa,restoredState:Wa,extras:Ka}=Wt,Hs=new $r(Ri,this.urlSerializer.serialize(fo),oa,Wa);this.events.next(Hs);const As=oe(this.rootComponentType).snapshot;return this.currentTransition=xe={...Wt,targetSnapshot:As,urlAfterRedirects:fo,extras:{...Ka,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=fo,(0,$.of)(xe)}{const Ri="";return this.events.next(new di(Wt.id,this.urlSerializer.serialize(Wt.extractedUrl),Ri,er.IgnoredByUrlHandlingStrategy)),Wt.resolve(null),mt.w}}),(0,st.M)(Wt=>{const Qn=new Hr(Wt.id,this.urlSerializer.serialize(Wt.extractedUrl),this.urlSerializer.serialize(Wt.urlAfterRedirects),Wt.targetSnapshot);this.events.next(Qn)}),(0,_e.T)(Wt=>(this.currentTransition=xe={...Wt,guards:Zo(Wt.targetSnapshot,Wt.currentSnapshot,this.rootContexts)},xe)),function zn(E,b){return(0,kt.Z)(N=>{const{targetSnapshot:D,currentSnapshot:L,guards:{canActivateChecks:pe,canDeactivateChecks:xe}}=N;return 0===xe.length&&0===pe.length?(0,$.of)({...N,guardsResult:!0}):function lr(E,b,N,D){return(0,ke.H)(E).pipe((0,kt.Z)(L=>function Ki(E,b,N,D,L){const pe=b&&b.routeConfig?b.routeConfig.canDeactivate:null;if(!pe||0===pe.length)return(0,$.of)(!0);const xe=pe.map(Ft=>{var An;const Wt=null!==(An=Jr(b))&&void 0!==An?An:L,Qn=Xo(Ft,Wt);return Xt(function x(E){return E&&qe(E.canDeactivate)}(Qn)?Qn.canDeactivate(E,b,N,D):(0,c.N4e)(Wt,()=>Qn(E,b,N,D))).pipe((0,Cn.$)())});return(0,$.of)(xe).pipe(an())}(L.component,L.route,N,b,D)),(0,Cn.$)(L=>!0!==L,!0))}(xe,D,L,E).pipe((0,kt.Z)(Ft=>Ft&&function lt(E){return"boolean"==typeof E}(Ft)?function pi(E,b,N,D){return(0,ke.H)(b).pipe((0,Et.H)(L=>(0,tt.x)(function Ei(E,b){return null!==E&&b&&b(new yi(E)),(0,$.of)(!0)}(L.route.parent,D),function Hi(E,b){return null!==E&&b&&b(new bo(E)),(0,$.of)(!0)}(L.route,D),function No(E,b,N){const D=b[b.length-1],pe=b.slice(0,b.length-1).reverse().map(xe=>function ls(E){const b=E.routeConfig?E.routeConfig.canActivateChild:null;return b&&0!==b.length?{node:E,guards:b}:null}(xe)).filter(xe=>null!==xe).map(xe=>et(()=>{const Ft=xe.guards.map(An=>{var Wt;const Qn=null!==(Wt=Jr(xe.node))&&void 0!==Wt?Wt:N,Xr=Xo(An,Qn);return Xt(function B(E){return E&&qe(E.canActivateChild)}(Xr)?Xr.canActivateChild(D,E):(0,c.N4e)(Qn,()=>Xr(D,E))).pipe((0,Cn.$)())});return(0,$.of)(Ft).pipe(an())}));return(0,$.of)(pe).pipe(an())}(E,L.path,N),function ao(E,b,N){const D=b.routeConfig?b.routeConfig.canActivate:null;if(!D||0===D.length)return(0,$.of)(!0);const L=D.map(pe=>et(()=>{var xe;const Ft=null!==(xe=Jr(b))&&void 0!==xe?xe:N,An=Xo(pe,Ft);return Xt(function gn(E){return E&&qe(E.canActivate)}(An)?An.canActivate(b,E):(0,c.N4e)(Ft,()=>An(b,E))).pipe((0,Cn.$)())}));return(0,$.of)(L).pipe(an())}(E,L.route,N))),(0,Cn.$)(L=>!0!==L,!0))}(D,pe,E,b):(0,$.of)(Ft)),(0,_e.T)(Ft=>({...N,guardsResult:Ft})))})}(this.environmentInjector,Wt=>this.events.next(Wt)),(0,st.M)(Wt=>{if(xe.guardsResult=Wt.guardsResult,fr(Wt.guardsResult))throw Qr(0,Wt.guardsResult);const Qn=new _i(Wt.id,this.urlSerializer.serialize(Wt.extractedUrl),this.urlSerializer.serialize(Wt.urlAfterRedirects),Wt.targetSnapshot,!!Wt.guardsResult);this.events.next(Qn)}),(0,Ct.p)(Wt=>!!Wt.guardsResult||(this.cancelNavigationTransition(Wt,"",Nr.GuardRejected),!1)),ja(Wt=>{if(Wt.guards.canActivateChecks.length)return(0,$.of)(Wt).pipe((0,st.M)(Qn=>{const Xr=new tr(Qn.id,this.urlSerializer.serialize(Qn.extractedUrl),this.urlSerializer.serialize(Qn.urlAfterRedirects),Qn.targetSnapshot);this.events.next(Xr)}),(0,$e.n)(Qn=>{let Xr=!1;return(0,$.of)(Qn).pipe(function fs(E,b){return(0,kt.Z)(N=>{const{targetSnapshot:D,guards:{canActivateChecks:L}}=N;if(!L.length)return(0,$.of)(N);const pe=new Set(L.map(An=>An.route)),xe=new Set;for(const An of pe)if(!xe.has(An))for(const Wt of Qo(An))xe.add(Wt);let Ft=0;return(0,ke.H)(xe).pipe((0,Et.H)(An=>pe.has(An)?function js(E,b,N,D){const L=E.routeConfig,pe=E._resolve;return void 0!==(null==L?void 0:L.title)&&!Ot(L)&&(pe[Sn]=L.title),function Yi(E,b,N,D){const L=dr(E);if(0===L.length)return(0,$.of)({});const pe={};return(0,ke.H)(L).pipe((0,kt.Z)(xe=>function ya(E,b,N,D){var L;const pe=null!==(L=Jr(b))&&void 0!==L?L:D,xe=Xo(E,pe);return Xt(xe.resolve?xe.resolve(b,N):(0,c.N4e)(pe,()=>xe(b,N)))}(E[xe],b,N,D).pipe((0,Cn.$)(),(0,st.M)(Ft=>{pe[xe]=Ft}))),X(1),(0,Ve.u)(pe),cn(xe=>z(xe)?mt.w:at(xe)))}(pe,E,b,D).pipe((0,_e.T)(xe=>(E._resolvedData=xe,E.data=dt(E,E.parent,N).resolve,null)))}(An,D,E,b):(An.data=dt(An,An.parent,E).resolve,(0,$.of)(void 0))),(0,st.M)(()=>Ft++),X(1),(0,kt.Z)(An=>Ft===xe.size?(0,$.of)(N):mt.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,st.M)({next:()=>Xr=!0,complete:()=>{Xr||this.cancelNavigationTransition(Qn,"",Nr.NoDataFromResolver)}}))}),(0,st.M)(Qn=>{const Xr=new Zn(Qn.id,this.urlSerializer.serialize(Qn.extractedUrl),this.urlSerializer.serialize(Qn.urlAfterRedirects),Qn.targetSnapshot);this.events.next(Xr)}))}),ja(Wt=>{const Qn=Xr=>{var Ji;const Ri=[];null!==(Ji=Xr.routeConfig)&&void 0!==Ji&&Ji.loadComponent&&!Xr.routeConfig._loadedComponent&&Ri.push(this.configLoader.loadComponent(Xr.routeConfig).pipe((0,st.M)(fo=>{Xr.component=fo}),(0,_e.T)(()=>{})));for(const fo of Xr.children)Ri.push(...Qn(fo));return Ri};return(0,ae.z)(Qn(Wt.targetSnapshot.root)).pipe((0,G.U)(null),(0,Le.s)(1))}),ja(()=>this.afterPreactivation()),(0,$e.n)(()=>{var Wt;const{currentSnapshot:Qn,targetSnapshot:Xr}=xe,Ji=null===(Wt=this.createViewTransition)||void 0===Wt?void 0:Wt.call(this,this.environmentInjector,Qn.root,Xr.root);return Ji?(0,ke.H)(Ji).pipe((0,_e.T)(()=>xe)):(0,$.of)(xe)}),(0,_e.T)(Wt=>{const Qn=function bn(E,b,N){const D=Gn(E,b._root,N?N._root:void 0);return new H(D,b)}(D.routeReuseStrategy,Wt.targetSnapshot,Wt.currentRouterState);return this.currentTransition=xe={...Wt,targetRouterState:Qn},this.currentNavigation.targetRouterState=Qn,xe}),(0,st.M)(()=>{this.events.next(new ge)}),((E,b,N,D)=>(0,_e.T)(L=>(new Ss(b,L.targetRouterState,L.currentRouterState,N,D).activate(E),L)))(this.rootContexts,D.routeReuseStrategy,Wt=>this.events.next(Wt),this.inputBindingEnabled),(0,Le.s)(1),(0,st.M)({next:Wt=>{var Qn;Ft=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Pr(Wt.id,this.urlSerializer.serialize(Wt.extractedUrl),this.urlSerializer.serialize(Wt.urlAfterRedirects))),null===(Qn=this.titleStrategy)||void 0===Qn||Qn.updateTitle(Wt.targetRouterState.snapshot),Wt.resolve(!0)},complete:()=>{Ft=!0}}),(0,fn.Q)(this.transitionAbortSubject.pipe((0,st.M)(Wt=>{throw Wt}))),(0,ut.j)(()=>{var Wt;!Ft&&!An&&this.cancelNavigationTransition(xe,"",Nr.SupersededByNewNavigation),(null===(Wt=this.currentTransition)||void 0===Wt?void 0:Wt.id)===xe.id&&(this.currentNavigation=null,this.currentTransition=null)}),cn(Wt=>{if(An=!0,ki(Wt))this.events.next(new Rr(xe.id,this.urlSerializer.serialize(xe.extractedUrl),Wt.message,Wt.cancellationCode)),function kr(E){return ki(E)&&fr(E.url)}(Wt)?this.events.next(new fe(Wt.url)):xe.resolve(!1);else{var Qn;this.events.next(new hi(xe.id,this.urlSerializer.serialize(xe.extractedUrl),Wt,null!==(Qn=xe.targetSnapshot)&&void 0!==Qn?Qn:void 0));try{xe.resolve(D.errorHandler(Wt))}catch(Xr){this.options.resolveNavigationPromiseOnError?xe.resolve(!1):xe.reject(Xr)}}return mt.w}))}))}cancelNavigationTransition(D,L,pe){const xe=new Rr(D.id,this.urlSerializer.serialize(D.extractedUrl),L,pe);this.events.next(xe),D.resolve(!1)}isUpdatingInternalState(){var D,L;return(null===(D=this.currentTransition)||void 0===D?void 0:D.extractedUrl.toString())!==(null===(L=this.currentTransition)||void 0===L?void 0:L.currentUrlTree.toString())}isUpdatedBrowserUrl(){var D,L;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==(null===(D=this.currentTransition)||void 0===D?void 0:D.extractedUrl.toString())&&!(null!==(L=this.currentTransition)&&void 0!==L&&L.extras.skipLocationChange)}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();function tn(E){return E!==Sr}let Fn=(()=>{var E;class b{}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(ur),providedIn:"root"}),b})();class Er{shouldDetach(b){return!1}store(b,N){}shouldAttach(b){return!1}retrieve(b){return null}shouldReuseRoute(b,N){return b.routeConfig===N.routeConfig}}let ur=(()=>{var E;class b extends Er{}return(E=b).\u0275fac=(()=>{let N;return function(L){return(N||(N=c.xGo(E)))(L||E)}})(),E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})(),bi=(()=>{var E;class b{}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(ri),providedIn:"root"}),b})(),ri=(()=>{var E;class b extends bi{constructor(){super(...arguments),this.location=(0,c.WQX)(Ze.aZ),this.urlSerializer=(0,c.WQX)(yr),this.options=(0,c.WQX)(ts,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,c.WQX)(Ca),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Vr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=oe(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var D,L;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(D=null===(L=this.restoredState())||void 0===L?void 0:L.\u0275routerPageId)&&void 0!==D?D:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(D){return this.location.subscribe(L=>{"popstate"===L.type&&D(L.url,L.state)})}handleRouterEvent(D,L){if(D instanceof $r)this.stateMemento=this.createStateMemento();else if(D instanceof di)this.rawUrlTree=L.initialUrl;else if(D instanceof Yr){if("eager"===this.urlUpdateStrategy&&!L.extras.skipLocationChange){const pe=this.urlHandlingStrategy.merge(L.finalUrl,L.initialUrl);this.setBrowserUrl(pe,L)}}else D instanceof ge?(this.currentUrlTree=L.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(L.finalUrl,L.initialUrl),this.routerState=L.targetRouterState,"deferred"===this.urlUpdateStrategy&&(L.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,L))):D instanceof Rr&&(D.code===Nr.GuardRejected||D.code===Nr.NoDataFromResolver)?this.restoreHistory(L):D instanceof hi?this.restoreHistory(L,!0):D instanceof Pr&&(this.lastSuccessfulId=D.id,this.currentPageId=this.browserPageId)}setBrowserUrl(D,L){const pe=this.urlSerializer.serialize(D);if(this.location.isCurrentPathEqualTo(pe)||L.extras.replaceUrl){const Ft={...L.extras.state,...this.generateNgRouterState(L.id,this.browserPageId)};this.location.replaceState(pe,"",Ft)}else{const xe={...L.extras.state,...this.generateNgRouterState(L.id,this.browserPageId+1)};this.location.go(pe,"",xe)}}restoreHistory(D,L=!1){if("computed"===this.canceledNavigationResolution){const xe=this.currentPageId-this.browserPageId;0!==xe?this.location.historyGo(xe):this.currentUrlTree===D.finalUrl&&0===xe&&(this.resetState(D),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(L&&this.resetState(D),this.resetUrlToCurrentUrlTree())}resetState(D){var L;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(L=D.finalUrl)&&void 0!==L?L:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(D,L){return"computed"===this.canceledNavigationResolution?{navigationId:D,\u0275routerPageId:L}:{navigationId:D}}}return(E=b).\u0275fac=(()=>{let N;return function(L){return(N||(N=c.xGo(E)))(L||E)}})(),E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();var Ii=function(E){return E[E.COMPLETE=0]="COMPLETE",E[E.FAILED=1]="FAILED",E[E.REDIRECTING=2]="REDIRECTING",E}(Ii||{});function gi(E,b){E.events.pipe((0,Ct.p)(N=>N instanceof Pr||N instanceof Rr||N instanceof hi||N instanceof di),(0,_e.T)(N=>N instanceof Pr||N instanceof di?Ii.COMPLETE:N instanceof Rr&&(N.code===Nr.Redirect||N.code===Nr.SupersededByNewNavigation)?Ii.REDIRECTING:Ii.FAILED),(0,Ct.p)(N=>N!==Ii.REDIRECTING),(0,Le.s)(1)).subscribe(()=>{b()})}function to(E){throw E}const wi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Bn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ir=(()=>{var E;class b{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var D,L;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,c.WQX)(c.H3F),this.stateManager=(0,c.WQX)(bi),this.options=(0,c.WQX)(ts,{optional:!0})||{},this.pendingTasks=(0,c.WQX)(c.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,c.WQX)(Qe),this.urlSerializer=(0,c.WQX)(yr),this.location=(0,c.WQX)(Ze.aZ),this.urlHandlingStrategy=(0,c.WQX)(Ca),this._events=new Ie.B,this.errorHandler=this.options.errorHandler||to,this.navigated=!1,this.routeReuseStrategy=(0,c.WQX)(Fn),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=null!==(D=null===(L=(0,c.WQX)(Ia,{optional:!0}))||void 0===L?void 0:L.flat())&&void 0!==D?D:[],this.componentInputBindingEnabled=!!(0,c.WQX)(pn,{optional:!0}),this.eventsSubscription=new xt.yU,this.isNgZoneEnabled=(0,c.WQX)(c.SKi)instanceof c.SKi&&c.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:pe=>{this.console.warn(pe)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const D=this.navigationTransitions.events.subscribe(L=>{try{const pe=this.navigationTransitions.currentTransition,xe=this.navigationTransitions.currentNavigation;if(null!==pe&&null!==xe)if(this.stateManager.handleRouterEvent(L,xe),L instanceof Rr&&L.code!==Nr.Redirect&&L.code!==Nr.SupersededByNewNavigation)this.navigated=!0;else if(L instanceof Pr)this.navigated=!0;else if(L instanceof fe){const Ft=this.urlHandlingStrategy.merge(L.url,pe.currentRawUrl),An={info:pe.extras.info,skipLocationChange:pe.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||tn(pe.source)};this.scheduleNavigation(Ft,Sr,null,An,{resolve:pe.resolve,reject:pe.reject,promise:pe.promise})}(function lo(E){return!(E instanceof ge||E instanceof fe)})(L)&&this._events.next(L)}catch(pe){this.navigationTransitions.transitionAbortSubject.next(pe)}});this.eventsSubscription.add(D)}resetRootComponentType(D){this.routerState.root.component=D,this.navigationTransitions.rootComponentType=D}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Sr,this.stateManager.restoredState())}setUpLocationChangeListener(){var D;null!==(D=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==D||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((L,pe)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(L,"popstate",pe)},0)}))}navigateToSyncWithBrowser(D,L,pe){const xe={replaceUrl:!0},Ft=null!=pe&&pe.navigationId?pe:null;if(pe){const Wt={...pe};delete Wt.navigationId,delete Wt.\u0275routerPageId,0!==Object.keys(Wt).length&&(xe.state=Wt)}const An=this.parseUrl(D);this.scheduleNavigation(An,L,Ft,xe)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(D){this.config=D.map(ws),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(D,L={}){const{relativeTo:pe,queryParams:xe,fragment:Ft,queryParamsHandling:An,preserveFragment:Wt}=L,Qn=Wt?this.currentUrlTree.fragment:Ft;let Ji,Xr=null;switch(An){case"merge":Xr={...this.currentUrlTree.queryParams,...xe};break;case"preserve":Xr=this.currentUrlTree.queryParams;break;default:Xr=xe||null}null!==Xr&&(Xr=this.removeEmptyProps(Xr));try{Ji=oi(pe?pe.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof D[0]||!D[0].startsWith("/"))&&(D=[]),Ji=this.currentUrlTree.root}return Ir(Ji,D,Xr,null!=Qn?Qn:null)}navigateByUrl(D,L={skipLocationChange:!1}){const pe=fr(D)?D:this.parseUrl(D),xe=this.urlHandlingStrategy.merge(pe,this.rawUrlTree);return this.scheduleNavigation(xe,Sr,null,L)}navigate(D,L={skipLocationChange:!1}){return function Ni(E){for(let b=0;b(null!=xe&&(L[pe]=xe),L),{})}scheduleNavigation(D,L,pe,xe,Ft){if(this.disposed)return Promise.resolve(!1);let An,Wt,Qn;Ft?(An=Ft.resolve,Wt=Ft.reject,Qn=Ft.promise):Qn=new Promise((Ji,Ri)=>{An=Ji,Wt=Ri});const Xr=this.pendingTasks.add();return gi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Xr))}),this.navigationTransitions.handleNavigationRequest({source:L,restoredState:pe,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:D,extras:xe,resolve:An,reject:Wt,promise:Qn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Qn.catch(Ji=>Promise.reject(Ji))}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})(),Vi=(()=>{var E;class b{constructor(D,L,pe,xe,Ft,An){var Wt;this.router=D,this.route=L,this.tabIndexAttribute=pe,this.renderer=xe,this.el=Ft,this.locationStrategy=An,this.href=null,this.commands=null,this.onChanges=new Ie.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Qn=null===(Wt=Ft.nativeElement.tagName)||void 0===Wt?void 0:Wt.toLowerCase();this.isAnchorElement="a"===Qn||"area"===Qn,this.isAnchorElement?this.subscription=D.events.subscribe(Xr=>{Xr instanceof Pr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(D){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",D)}ngOnChanges(D){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(D){null!=D?(this.commands=Array.isArray(D)?D:[D],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(D,L,pe,xe,Ft){const An=this.urlTree;return!!(null===An||this.isAnchorElement&&(0!==D||L||pe||xe||Ft||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(An,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){var D;null===(D=this.subscription)||void 0===D||D.unsubscribe()}updateHref(){var D;const L=this.urlTree;this.href=null!==L&&this.locationStrategy?null===(D=this.locationStrategy)||void 0===D?void 0:D.prepareExternalUrl(this.router.serializeUrl(L)):null;const pe=null===this.href?null:(0,c.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",pe)}applyAttributeValue(D,L){const pe=this.renderer,xe=this.el.nativeElement;null!==L?pe.setAttribute(xe,D,L):pe.removeAttribute(xe,D)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return(E=b).\u0275fac=function(D){return new(D||E)(c.rXU(ir),c.rXU(Te),c.kS0("tabindex"),c.rXU(c.sFG),c.rXU(c.aKT),c.rXU(Ze.hb))},E.\u0275dir=c.FsC({type:E,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(D,L){1&D&&c.bIt("click",function(xe){return L.onClick(xe.button,xe.ctrlKey,xe.shiftKey,xe.altKey,xe.metaKey)}),2&D&&c.BMQ("target",L.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[c.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",c.L39],skipLocationChange:[c.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",c.L39],replaceUrl:[c.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",c.L39],routerLink:"routerLink"},standalone:!0,features:[c.GFd,c.OA$]}),b})();class Si{}let io=(()=>{var E;class b{preload(D,L){return L().pipe(cn(()=>(0,$.of)(null)))}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})(),qr=(()=>{var E;class b{constructor(D,L,pe,xe,Ft){this.router=D,this.injector=pe,this.preloadingStrategy=xe,this.loader=Ft}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ct.p)(D=>D instanceof Pr),(0,Et.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(D,L){const pe=[];for(const Wt of L){var xe,Ft;Wt.providers&&!Wt._injector&&(Wt._injector=(0,c.Ol2)(Wt.providers,D,`Route: ${Wt.path}`));const Qn=null!==(xe=Wt._injector)&&void 0!==xe?xe:D,Xr=null!==(Ft=Wt._loadedInjector)&&void 0!==Ft?Ft:Qn;var An;(Wt.loadChildren&&!Wt._loadedRoutes&&void 0===Wt.canLoad||Wt.loadComponent&&!Wt._loadedComponent)&&pe.push(this.preloadConfig(Qn,Wt)),(Wt.children||Wt._loadedRoutes)&&pe.push(this.processRoutes(Xr,null!==(An=Wt.children)&&void 0!==An?An:Wt._loadedRoutes))}return(0,ke.H)(pe).pipe((0,xn.U)())}preloadConfig(D,L){return this.preloadingStrategy.preload(L,()=>{let pe;pe=L.loadChildren&&void 0===L.canLoad?this.loader.loadChildren(D,L):(0,$.of)(null);const xe=pe.pipe((0,kt.Z)(Ft=>{var An;return null===Ft?(0,$.of)(void 0):(L._loadedRoutes=Ft.routes,L._loadedInjector=Ft.injector,this.processRoutes(null!==(An=Ft.injector)&&void 0!==An?An:D,Ft.routes))}));if(L.loadComponent&&!L._loadedComponent){const Ft=this.loader.loadComponent(L);return(0,ke.H)([xe,Ft]).pipe((0,xn.U)())}return xe})}}return(E=b).\u0275fac=function(D){return new(D||E)(c.KVO(ir),c.KVO(c.Ql9),c.KVO(c.uvJ),c.KVO(Si),c.KVO(Aa))},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();const ta=new c.nKC("");let _c=(()=>{var E;class b{constructor(D,L,pe,xe,Ft={}){this.urlSerializer=D,this.transitions=L,this.viewportScroller=pe,this.zone=xe,this.options=Ft,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,c.WQX)(c.uvJ),Ft.scrollPositionRestoration||(Ft.scrollPositionRestoration="disabled"),Ft.anchorScrolling||(Ft.anchorScrolling="disabled")}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(D=>{D instanceof $r?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=D.navigationTrigger,this.restoredId=D.restoredState?D.restoredState.navigationId:0):D instanceof Pr?(this.lastId=D.id,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.urlAfterRedirects).fragment)):D instanceof di&&D.code===er.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(D=>{D instanceof Pt&&(D.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(D.position):D.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(D.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(D,L){var pe=this;this.zone.runOutsideAngular((0,h.A)(function*(){yield new Promise(xe=>{setTimeout(()=>{xe()}),(0,c.mal)(()=>{xe()},{injector:pe.environmentInjector})}),pe.zone.run(()=>{pe.transitions.events.next(new Pt(D,"popstate"===pe.lastSource?pe.store[pe.restoredId]:null,L))})}))}ngOnDestroy(){var D,L;null===(D=this.routerEventsSubscription)||void 0===D||D.unsubscribe(),null===(L=this.scrollEventsSubscription)||void 0===L||L.unsubscribe()}}return(E=b).\u0275fac=function(D){c.QTQ()},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac}),b})();function Fo(E,b){return{\u0275kind:E,\u0275providers:b}}function Ui(){const E=(0,c.WQX)(c.zZn);return b=>{var N,D;const L=E.get(c.o8S);if(b!==L.components[0])return;const pe=E.get(ir),xe=E.get(ra);1===E.get(Es)&&pe.initialNavigation(),null===(N=E.get(is,null,c.$GK.Optional))||void 0===N||N.setUpPreloading(),null===(D=E.get(ta,null,c.$GK.Optional))||void 0===D||D.init(),pe.resetRootComponentType(L.componentTypes[0]),xe.closed||(xe.next(),xe.complete(),xe.unsubscribe())}}const ra=new c.nKC("",{factory:()=>new Ie.B}),Es=new c.nKC("",{providedIn:"root",factory:()=>1}),is=new c.nKC("");function pl(E){return Fo(0,[{provide:is,useExisting:qr},{provide:Si,useExisting:E}])}function Lo(E){return Fo(9,[{provide:j,useValue:F},{provide:Ue,useValue:{skipNextTransition:!(null==E||!E.skipInitialTransition),...E}}])}const gs=new c.nKC("ROUTER_FORROOT_GUARD"),ia=[Ze.aZ,{provide:yr,useClass:Br},ir,Be,{provide:Te,useFactory:function no(E){return E.routerState.root},deps:[ir]},Aa,[]];let Is=(()=>{var E;class b{constructor(D){}static forRoot(D,L){return{ngModule:b,providers:[ia,[],{provide:Ia,multi:!0,useValue:D},{provide:gs,useFactory:ba,deps:[[ir,new c.Xx1,new c.kdw]]},{provide:ts,useValue:L||{}},null!=L&&L.useHash?{provide:Ze.hb,useClass:Ze.fw}:{provide:Ze.hb,useClass:Ze.Sm},{provide:ta,useFactory:()=>{const E=(0,c.WQX)(Ze.Xr),b=(0,c.WQX)(c.SKi),N=(0,c.WQX)(ts),D=(0,c.WQX)(Qe),L=(0,c.WQX)(yr);return N.scrollOffset&&E.setOffset(N.scrollOffset),new _c(L,D,E,b,N)}},null!=L&&L.preloadingStrategy?pl(L.preloadingStrategy).\u0275providers:[],null!=L&&L.initialNavigation?Pu(L):[],null!=L&&L.bindToComponentInputs?Fo(8,[vn,{provide:pn,useExisting:vn}]).\u0275providers:[],null!=L&&L.enableViewTransitions?Lo().\u0275providers:[],[{provide:wa,useFactory:Ui},{provide:c.iLQ,multi:!0,useExisting:wa}]]}}static forChild(D){return{ngModule:b,providers:[{provide:Ia,multi:!0,useValue:D}]}}}return(E=b).\u0275fac=function(D){return new(D||E)(c.KVO(gs,8))},E.\u0275mod=c.$C({type:E}),E.\u0275inj=c.G2t({}),b})();function ba(E){return"guarded"}function Pu(E){return["disabled"===E.initialNavigation?Fo(3,[{provide:c.hnV,multi:!0,useFactory:()=>{const b=(0,c.WQX)(ir);return()=>{b.setUpLocationChangeListener()}}},{provide:Es,useValue:2}]).\u0275providers:[],"enabledBlocking"===E.initialNavigation?Fo(2,[{provide:Es,useValue:0},{provide:c.hnV,multi:!0,deps:[c.zZn],useFactory:b=>{const N=b.get(Ze.hj,Promise.resolve());return()=>N.then(()=>new Promise(D=>{const L=b.get(ir),pe=b.get(ra);gi(L,()=>{D(!0)}),b.get(Qe).afterPreactivation=()=>(D(!0),pe.closed?(0,$.of)(void 0):pe),L.initialNavigation()}))}}]).\u0275providers:[]]}const wa=new c.nKC("")},7852:(Pn,It,C)=>{"use strict";C.d(It,{MF:()=>Di,j6:()=>Mr,xZ:()=>Tr,om:()=>rr,Sx:()=>rt,Dk:()=>Nt,Wp:()=>Zr,KO:()=>Ae});var h=C(467),c=C(1362),Z=C(8041),ke=C(1076);const $=(Gt,ie)=>ie.some(te=>Gt instanceof te);let he,ae;const Se=new WeakMap,be=new WeakMap,et=new WeakMap,it=new WeakMap,Ye=new WeakMap;let xt={get(Gt,ie,te){if(Gt instanceof IDBTransaction){if("done"===ie)return be.get(Gt);if("objectStoreNames"===ie)return Gt.objectStoreNames||et.get(Gt);if("store"===ie)return te.objectStoreNames[1]?void 0:te.objectStore(te.objectStoreNames[0])}return At(Gt[ie])},set:(Gt,ie,te)=>(Gt[ie]=te,!0),has:(Gt,ie)=>Gt instanceof IDBTransaction&&("done"===ie||"store"===ie)||ie in Gt};function Tt(Gt){return"function"==typeof Gt?function zt(Gt){return Gt!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function tt(){return ae||(ae=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(Gt)?function(...ie){return Gt.apply(Ie(this),ie),At(Se.get(this))}:function(...ie){return At(Gt.apply(Ie(this),ie))}:function(ie,...te){const ze=Gt.call(Ie(this),ie,...te);return et.set(ze,ie.sort?ie.sort():[ie]),At(ze)}}(Gt):(Gt instanceof IDBTransaction&&function mt(Gt){if(be.has(Gt))return;const ie=new Promise((te,ze)=>{const M=()=>{Gt.removeEventListener("complete",O),Gt.removeEventListener("error",re),Gt.removeEventListener("abort",re)},O=()=>{te(),M()},re=()=>{ze(Gt.error||new DOMException("AbortError","AbortError")),M()};Gt.addEventListener("complete",O),Gt.addEventListener("error",re),Gt.addEventListener("abort",re)});be.set(Gt,ie)}(Gt),$(Gt,function Xe(){return he||(he=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(Gt,xt):Gt)}function At(Gt){if(Gt instanceof IDBRequest)return function at(Gt){const ie=new Promise((te,ze)=>{const M=()=>{Gt.removeEventListener("success",O),Gt.removeEventListener("error",re)},O=()=>{te(At(Gt.result)),M()},re=()=>{ze(Gt.error),M()};Gt.addEventListener("success",O),Gt.addEventListener("error",re)});return ie.then(te=>{te instanceof IDBCursor&&Se.set(te,Gt)}).catch(()=>{}),Ye.set(ie,Gt),ie}(Gt);if(it.has(Gt))return it.get(Gt);const ie=Tt(Gt);return ie!==Gt&&(it.set(Gt,ie),Ye.set(ie,Gt)),ie}const Ie=Gt=>Ye.get(Gt),$e=["get","getKey","getAll","getAllKeys","count"],Le=["put","add","delete","clear"],Oe=new Map;function Ct(Gt,ie){if(!(Gt instanceof IDBDatabase)||ie in Gt||"string"!=typeof ie)return;if(Oe.get(ie))return Oe.get(ie);const te=ie.replace(/FromIndex$/,""),ze=ie!==te,M=Le.includes(te);if(!(te in(ze?IDBIndex:IDBObjectStore).prototype)||!M&&!$e.includes(te))return;const O=function(){var re=(0,h.A)(function*(we,...We){const St=this.transaction(we,M?"readwrite":"readonly");let nn=St.store;return ze&&(nn=nn.index(We.shift())),(yield Promise.all([nn[te](...We),M&&St.done]))[0]});return function(We){return re.apply(this,arguments)}}();return Oe.set(ie,O),O}!function Dt(Gt){xt=Gt(xt)}(Gt=>({...Gt,get:(ie,te,ze)=>Ct(ie,te)||Gt.get(ie,te,ze),has:(ie,te)=>!!Ct(ie,te)||Gt.has(ie,te)}));class kt{constructor(ie){this.container=ie}getPlatformInfoString(){return this.container.getProviders().map(te=>{if(function Cn(Gt){const ie=Gt.getComponent();return"VERSION"===(null==ie?void 0:ie.type)}(te)){const ze=te.getImmediate();return`${ze.library}/${ze.version}`}return null}).filter(te=>te).join(" ")}}const Et="@firebase/app",cn=new Z.Vy("@firebase/app"),Vn="[DEFAULT]",$n={[Et]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/vertexai-preview":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},In=new Map,on=new Map,mr=new Map;function br(Gt,ie){try{Gt.container.addComponent(ie)}catch(te){cn.debug(`Component ${ie.name} failed to register with FirebaseApp ${Gt.name}`,te)}}function rr(Gt){const ie=Gt.name;if(mr.has(ie))return cn.debug(`There were multiple attempts to register component ${ie}.`),!1;mr.set(ie,Gt);for(const te of In.values())br(te,Gt);for(const te of on.values())br(te,Gt);return!0}function Mr(Gt,ie){const te=Gt.container.getProvider("heartbeat").getImmediate({optional:!0});return te&&te.triggerHeartbeat(),Gt.container.getProvider(ie)}function Tr(Gt){return void 0!==Gt.settings}const ar=new ke.FA("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class Lr{constructor(ie,te,ze){this._isDeleted=!1,this._options=Object.assign({},ie),this._config=Object.assign({},te),this._name=te.name,this._automaticDataCollectionEnabled=te.automaticDataCollectionEnabled,this._container=ze,this.container.addComponent(new c.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(ie){this.checkDestroyed(),this._automaticDataCollectionEnabled=ie}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(ie){this._isDeleted=ie}checkDestroyed(){if(this.isDeleted)throw ar.create("app-deleted",{appName:this._name})}}const Di="10.12.2";function Zr(Gt,ie={}){let te=Gt;"object"!=typeof ie&&(ie={name:ie});const ze=Object.assign({name:Vn,automaticDataCollectionEnabled:!1},ie),M=ze.name;if("string"!=typeof M||!M)throw ar.create("bad-app-name",{appName:String(M)});if(te||(te=(0,ke.T9)()),!te)throw ar.create("no-options");const O=In.get(M);if(O){if((0,ke.bD)(te,O.options)&&(0,ke.bD)(ze,O.config))return O;throw ar.create("duplicate-app",{appName:M})}const re=new c.h1(M);for(const We of mr.values())re.addComponent(We);const we=new Lr(te,ze,re);return In.set(M,we),we}function rt(Gt=Vn){const ie=In.get(Gt);if(!ie&&Gt===Vn&&(0,ke.T9)())return Zr();if(!ie)throw ar.create("no-app",{appName:Gt});return ie}function Nt(){return Array.from(In.values())}function Ae(Gt,ie,te){var ze;let M=null!==(ze=$n[Gt])&&void 0!==ze?ze:Gt;te&&(M+=`-${te}`);const O=M.match(/\s|\//),re=ie.match(/\s|\//);if(O||re){const we=[`Unable to register library "${M}" with version "${ie}":`];return O&&we.push(`library name "${M}" contains illegal characters (whitespace or "/")`),O&&re&&we.push("and"),re&&we.push(`version name "${ie}" contains illegal characters (whitespace or "/")`),void cn.warn(we.join(" "))}rr(new c.uA(`${M}-version`,()=>({library:M,version:ie}),"VERSION"))}const le="firebase-heartbeat-database",gt=1,ft="firebase-heartbeat-store";let Qt=null;function sn(){return Qt||(Qt=function Ze(Gt,ie,{blocked:te,upgrade:ze,blocking:M,terminated:O}={}){const re=indexedDB.open(Gt,ie),we=At(re);return ze&&re.addEventListener("upgradeneeded",We=>{ze(At(re.result),We.oldVersion,We.newVersion,At(re.transaction),We)}),te&&re.addEventListener("blocked",We=>te(We.oldVersion,We.newVersion,We)),we.then(We=>{O&&We.addEventListener("close",()=>O()),M&&We.addEventListener("versionchange",St=>M(St.oldVersion,St.newVersion,St))}).catch(()=>{}),we}(le,gt,{upgrade:(Gt,ie)=>{if(0===ie)try{Gt.createObjectStore(ft)}catch(te){console.warn(te)}}}).catch(Gt=>{throw ar.create("idb-open",{originalErrorMessage:Gt.message})})),Qt}function Xn(){return(Xn=(0,h.A)(function*(Gt){try{const te=(yield sn()).transaction(ft),ze=yield te.objectStore(ft).get(hr(Gt));return yield te.done,ze}catch(ie){if(ie instanceof ke.g)cn.warn(ie.message);else{const te=ar.create("idb-get",{originalErrorMessage:null==ie?void 0:ie.message});cn.warn(te.message)}}})).apply(this,arguments)}function dn(Gt,ie){return wn.apply(this,arguments)}function wn(){return(wn=(0,h.A)(function*(Gt,ie){try{const ze=(yield sn()).transaction(ft,"readwrite");yield ze.objectStore(ft).put(ie,hr(Gt)),yield ze.done}catch(te){if(te instanceof ke.g)cn.warn(te.message);else{const ze=ar.create("idb-set",{originalErrorMessage:null==te?void 0:te.message});cn.warn(ze.message)}}})).apply(this,arguments)}function hr(Gt){return`${Gt.name}!${Gt.options.appId}`}class Ur{constructor(ie){this.container=ie,this._heartbeatsCache=null;const te=this.container.getProvider("app").getImmediate();this._storage=new xi(te),this._heartbeatsCachePromise=this._storage.read().then(ze=>(this._heartbeatsCache=ze,ze))}triggerHeartbeat(){var ie=this;return(0,h.A)(function*(){var te,ze;const O=ie.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),re=oi();if((null!=(null===(te=ie._heartbeatsCache)||void 0===te?void 0:te.heartbeats)||(ie._heartbeatsCache=yield ie._heartbeatsCachePromise,null!=(null===(ze=ie._heartbeatsCache)||void 0===ze?void 0:ze.heartbeats)))&&ie._heartbeatsCache.lastSentHeartbeatDate!==re&&!ie._heartbeatsCache.heartbeats.some(we=>we.date===re))return ie._heartbeatsCache.heartbeats.push({date:re,agent:O}),ie._heartbeatsCache.heartbeats=ie._heartbeatsCache.heartbeats.filter(we=>{const We=new Date(we.date).valueOf();return Date.now()-We<=2592e6}),ie._storage.overwrite(ie._heartbeatsCache)})()}getHeartbeatsHeader(){var ie=this;return(0,h.A)(function*(){var te;if(null===ie._heartbeatsCache&&(yield ie._heartbeatsCachePromise),null==(null===(te=ie._heartbeatsCache)||void 0===te?void 0:te.heartbeats)||0===ie._heartbeatsCache.heartbeats.length)return"";const ze=oi(),{heartbeatsToSend:M,unsentEntries:O}=function Ir(Gt,ie=1024){const te=[];let ze=Gt.slice();for(const M of Gt){const O=te.find(re=>re.agent===M.agent);if(O){if(O.dates.push(M.date),vi(te)>ie){O.dates.pop();break}}else if(te.push({agent:M.agent,dates:[M.date]}),vi(te)>ie){te.pop();break}ze=ze.slice(1)}return{heartbeatsToSend:te,unsentEntries:ze}}(ie._heartbeatsCache.heartbeats),re=(0,ke.Uj)(JSON.stringify({version:2,heartbeats:M}));return ie._heartbeatsCache.lastSentHeartbeatDate=ze,O.length>0?(ie._heartbeatsCache.heartbeats=O,yield ie._storage.overwrite(ie._heartbeatsCache)):(ie._heartbeatsCache.heartbeats=[],ie._storage.overwrite(ie._heartbeatsCache)),re})()}}function oi(){return(new Date).toISOString().substring(0,10)}class xi{constructor(ie){this.app=ie,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,h.A)(function*(){return!!(0,ke.zW)()&&(0,ke.eX)().then(()=>!0).catch(()=>!1)})()}read(){var ie=this;return(0,h.A)(function*(){if(yield ie._canUseIndexedDBPromise){const ze=yield function Tn(Gt){return Xn.apply(this,arguments)}(ie.app);return null!=ze&&ze.heartbeats?ze:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(ie){var te=this;return(0,h.A)(function*(){var ze;if(yield te._canUseIndexedDBPromise){const O=yield te.read();return dn(te.app,{lastSentHeartbeatDate:null!==(ze=ie.lastSentHeartbeatDate)&&void 0!==ze?ze:O.lastSentHeartbeatDate,heartbeats:ie.heartbeats})}})()}add(ie){var te=this;return(0,h.A)(function*(){var ze;if(yield te._canUseIndexedDBPromise){const O=yield te.read();return dn(te.app,{lastSentHeartbeatDate:null!==(ze=ie.lastSentHeartbeatDate)&&void 0!==ze?ze:O.lastSentHeartbeatDate,heartbeats:[...O.heartbeats,...ie.heartbeats]})}})()}}function vi(Gt){return(0,ke.Uj)(JSON.stringify({version:2,heartbeats:Gt})).length}!function Ar(Gt){rr(new c.uA("platform-logger",ie=>new kt(ie),"PRIVATE")),rr(new c.uA("heartbeat",ie=>new Ur(ie),"PRIVATE")),Ae(Et,"0.10.5",Gt),Ae(Et,"0.10.5","esm2017"),Ae("fire-js","")}("")},1362:(Pn,It,C)=>{"use strict";C.d(It,{h1:()=>Xe,uA:()=>Z});var h=C(467),c=C(1076);class Z{constructor(Se,be,et){this.name=Se,this.instanceFactory=be,this.type=et,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(Se){return this.instantiationMode=Se,this}setMultipleInstances(Se){return this.multipleInstances=Se,this}setServiceProps(Se){return this.serviceProps=Se,this}setInstanceCreatedCallback(Se){return this.onInstanceCreated=Se,this}}const ke="[DEFAULT]";class ${constructor(Se,be){this.name=Se,this.container=be,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(Se){const be=this.normalizeInstanceIdentifier(Se);if(!this.instancesDeferred.has(be)){const et=new c.cY;if(this.instancesDeferred.set(be,et),this.isInitialized(be)||this.shouldAutoInitialize())try{const it=this.getOrInitializeService({instanceIdentifier:be});it&&et.resolve(it)}catch{}}return this.instancesDeferred.get(be).promise}getImmediate(Se){var be;const et=this.normalizeInstanceIdentifier(null==Se?void 0:Se.identifier),it=null!==(be=null==Se?void 0:Se.optional)&&void 0!==be&&be;if(!this.isInitialized(et)&&!this.shouldAutoInitialize()){if(it)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:et})}catch(Ye){if(it)return null;throw Ye}}getComponent(){return this.component}setComponent(Se){if(Se.name!==this.name)throw Error(`Mismatching Component ${Se.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=Se,this.shouldAutoInitialize()){if(function ae(tt){return"EAGER"===tt.instantiationMode}(Se))try{this.getOrInitializeService({instanceIdentifier:ke})}catch{}for(const[be,et]of this.instancesDeferred.entries()){const it=this.normalizeInstanceIdentifier(be);try{const Ye=this.getOrInitializeService({instanceIdentifier:it});et.resolve(Ye)}catch{}}}}clearInstance(Se=ke){this.instancesDeferred.delete(Se),this.instancesOptions.delete(Se),this.instances.delete(Se)}delete(){var Se=this;return(0,h.A)(function*(){const be=Array.from(Se.instances.values());yield Promise.all([...be.filter(et=>"INTERNAL"in et).map(et=>et.INTERNAL.delete()),...be.filter(et=>"_delete"in et).map(et=>et._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(Se=ke){return this.instances.has(Se)}getOptions(Se=ke){return this.instancesOptions.get(Se)||{}}initialize(Se={}){const{options:be={}}=Se,et=this.normalizeInstanceIdentifier(Se.instanceIdentifier);if(this.isInitialized(et))throw Error(`${this.name}(${et}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const it=this.getOrInitializeService({instanceIdentifier:et,options:be});for(const[Ye,at]of this.instancesDeferred.entries())et===this.normalizeInstanceIdentifier(Ye)&&at.resolve(it);return it}onInit(Se,be){var et;const it=this.normalizeInstanceIdentifier(be),Ye=null!==(et=this.onInitCallbacks.get(it))&&void 0!==et?et:new Set;Ye.add(Se),this.onInitCallbacks.set(it,Ye);const at=this.instances.get(it);return at&&Se(at,it),()=>{Ye.delete(Se)}}invokeOnInitCallbacks(Se,be){const et=this.onInitCallbacks.get(be);if(et)for(const it of et)try{it(Se,be)}catch{}}getOrInitializeService({instanceIdentifier:Se,options:be={}}){let et=this.instances.get(Se);if(!et&&this.component&&(et=this.component.instanceFactory(this.container,{instanceIdentifier:(tt=Se,tt===ke?void 0:tt),options:be}),this.instances.set(Se,et),this.instancesOptions.set(Se,be),this.invokeOnInitCallbacks(et,Se),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,Se,et)}catch{}var tt;return et||null}normalizeInstanceIdentifier(Se=ke){return this.component?this.component.multipleInstances?Se:ke:Se}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Xe{constructor(Se){this.name=Se,this.providers=new Map}addComponent(Se){const be=this.getProvider(Se.name);if(be.isComponentSet())throw new Error(`Component ${Se.name} has already been registered with ${this.name}`);be.setComponent(Se)}addOrOverwriteComponent(Se){this.getProvider(Se.name).isComponentSet()&&this.providers.delete(Se.name),this.addComponent(Se)}getProvider(Se){if(this.providers.has(Se))return this.providers.get(Se);const be=new $(Se,this);return this.providers.set(Se,be),be}getProviders(){return Array.from(this.providers.values())}}},8041:(Pn,It,C)=>{"use strict";C.d(It,{$b:()=>c,Vy:()=>ae});const h=[];var c=function(Se){return Se[Se.DEBUG=0]="DEBUG",Se[Se.VERBOSE=1]="VERBOSE",Se[Se.INFO=2]="INFO",Se[Se.WARN=3]="WARN",Se[Se.ERROR=4]="ERROR",Se[Se.SILENT=5]="SILENT",Se}(c||{});const Z={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},ke=c.INFO,$={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},he=(Se,be,...et)=>{if(be{"use strict";C.d(It,{Yq:()=>nt,TS:()=>or,sR:()=>gr,el:()=>sn,Sb:()=>Tr,QE:()=>hr,CF:()=>Mr,Rg:()=>Ae,p4:()=>wr,jM:()=>Ar,_t:()=>Ee,q9:()=>Je,Kb:()=>Gt,CE:()=>Tn,pF:()=>Xn,fL:()=>Ur,YV:()=>gt,er:()=>fr,z3:()=>oi});var h=C(467),c=C(9842),Z=C(4438),ke=C(7650),$=C(177),he=C(5531),ae=C(4442);var kt=C(1413),Cn=C(3726),Et=C(4412),st=C(4572),cn=C(7673),vt=C(1635),Re=C(5964),G=C(5558),X=C(3294),ce=C(4341);const ue=["tabsInner"];class Ee{constructor(te){(0,c.A)(this,"menuController",void 0),this.menuController=te}open(te){return this.menuController.open(te)}close(te){return this.menuController.close(te)}toggle(te){return this.menuController.toggle(te)}enable(te,ze){return this.menuController.enable(te,ze)}swipeGesture(te,ze){return this.menuController.swipeGesture(te,ze)}isOpen(te){return this.menuController.isOpen(te)}isEnabled(te){return this.menuController.isEnabled(te)}get(te){return this.menuController.get(te)}getOpen(){return this.menuController.getOpen()}getMenus(){return this.menuController.getMenus()}registerAnimation(te,ze){return this.menuController.registerAnimation(te,ze)}isAnimating(){return this.menuController.isAnimating()}_getOpenSync(){return this.menuController._getOpenSync()}_createAnimation(te,ze){return this.menuController._createAnimation(te,ze)}_register(te){return this.menuController._register(te)}_unregister(te){return this.menuController._unregister(te)}_setOpen(te,ze,M){return this.menuController._setOpen(te,ze,M)}}let fn=(()=>{var ie;class te{constructor(M,O){(0,c.A)(this,"doc",void 0),(0,c.A)(this,"_readyPromise",void 0),(0,c.A)(this,"win",void 0),(0,c.A)(this,"backButton",new kt.B),(0,c.A)(this,"keyboardDidShow",new kt.B),(0,c.A)(this,"keyboardDidHide",new kt.B),(0,c.A)(this,"pause",new kt.B),(0,c.A)(this,"resume",new kt.B),(0,c.A)(this,"resize",new kt.B),this.doc=M,O.run(()=>{var re;let we;this.win=M.defaultView,this.backButton.subscribeWithPriority=function(We,St){return this.subscribe(nn=>nn.register(We,rn=>O.run(()=>St(rn))))},un(this.pause,M,"pause",O),un(this.resume,M,"resume",O),un(this.backButton,M,"ionBackButton",O),un(this.resize,this.win,"resize",O),un(this.keyboardDidShow,this.win,"ionKeyboardDidShow",O),un(this.keyboardDidHide,this.win,"ionKeyboardDidHide",O),this._readyPromise=new Promise(We=>{we=We}),null!==(re=this.win)&&void 0!==re&&re.cordova?M.addEventListener("deviceready",()=>{we("cordova")},{once:!0}):we("dom")})}is(M){return(0,he.a)(this.win,M)}platforms(){return(0,he.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(M){return xn(this.win.location.href,M)}isLandscape(){return!this.isPortrait()}isPortrait(){var M,O;return null===(M=(O=this.win).matchMedia)||void 0===M?void 0:M.call(O,"(orientation: portrait)").matches}testUserAgent(M){const O=this.win.navigator;return!!(null!=O&&O.userAgent&&O.userAgent.indexOf(M)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.KVO($.qQ),Z.KVO(Z.SKi))}),(0,c.A)(te,"\u0275prov",Z.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"})),te})();const xn=(ie,te)=>{te=te.replace(/[[\]\\]/g,"\\$&");const M=new RegExp("[\\?&]"+te+"=([^&#]*)").exec(ie);return M?decodeURIComponent(M[1].replace(/\+/g," ")):null},un=(ie,te,ze,M)=>{te&&te.addEventListener(ze,O=>{M.run(()=>{ie.next(null!=O?O.detail:void 0)})})};let Je=(()=>{var ie;class te{constructor(M,O,re,we){(0,c.A)(this,"location",void 0),(0,c.A)(this,"serializer",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"topOutlet",void 0),(0,c.A)(this,"direction",kn),(0,c.A)(this,"animated",On),(0,c.A)(this,"animationBuilder",void 0),(0,c.A)(this,"guessDirection","forward"),(0,c.A)(this,"guessAnimation",void 0),(0,c.A)(this,"lastNavId",-1),this.location=O,this.serializer=re,this.router=we,we&&we.events.subscribe(We=>{if(We instanceof ke.Z){const St=We.restoredState?We.restoredState.navigationId:We.id;this.guessDirection=this.guessAnimation=St{this.pop(),We()})}navigateForward(M,O={}){return this.setDirection("forward",O.animated,O.animationDirection,O.animation),this.navigate(M,O)}navigateBack(M,O={}){return this.setDirection("back",O.animated,O.animationDirection,O.animation),this.navigate(M,O)}navigateRoot(M,O={}){return this.setDirection("root",O.animated,O.animationDirection,O.animation),this.navigate(M,O)}back(M={animated:!0,animationDirection:"back"}){return this.setDirection("back",M.animated,M.animationDirection,M.animation),this.location.back()}pop(){var M=this;return(0,h.A)(function*(){let O=M.topOutlet;for(;O;){if(yield O.pop())return!0;O=O.parentOutlet}return!1})()}setDirection(M,O,re,we){this.direction=M,this.animated=Sn(M,O,re),this.animationBuilder=we}setTopOutlet(M){this.topOutlet=M}consumeTransition(){let O,M="root";const re=this.animationBuilder;return"auto"===this.direction?(M=this.guessDirection,O=this.guessAnimation):(O=this.animated,M=this.direction),this.direction=kn,this.animated=On,this.animationBuilder=void 0,{direction:M,animation:O,animationBuilder:re}}navigate(M,O){if(Array.isArray(M))return this.router.navigate(M,O);{const re=this.serializer.parse(M.toString());return void 0!==O.queryParams&&(re.queryParams={...O.queryParams}),void 0!==O.fragment&&(re.fragment=O.fragment),this.router.navigateByUrl(re,O)}}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.KVO(fn),Z.KVO($.aZ),Z.KVO(ke.Sd),Z.KVO(ke.Ix,8))}),(0,c.A)(te,"\u0275prov",Z.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"})),te})();const Sn=(ie,te,ze)=>{if(!1!==te){if(void 0!==ze)return ze;if("forward"===ie||"back"===ie)return ie;if("root"===ie&&!0===te)return"forward"}},kn="auto",On=void 0;let or=(()=>{var ie;class te{get(M,O){const re=cr();return re?re.get(M,O):null}getBoolean(M,O){const re=cr();return!!re&&re.getBoolean(M,O)}getNumber(M,O){const re=cr();return re?re.getNumber(M,O):0}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)}),(0,c.A)(te,"\u0275prov",Z.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"})),te})();const gr=new Z.nKC("USERCONFIG"),cr=()=>{if(typeof window<"u"){const ie=window.Ionic;if(null!=ie&&ie.config)return ie.config}return null};class dr{constructor(te={}){(0,c.A)(this,"data",void 0),this.data=te,console.warn("[Ionic Warning]: NavParams has been deprecated in favor of using Angular's input API. Developers should migrate to either the @Input decorator or the Signals-based input API.")}get(te){return this.data[te]}}let nt=(()=>{var ie;class te{constructor(){(0,c.A)(this,"zone",(0,Z.WQX)(Z.SKi)),(0,c.A)(this,"applicationRef",(0,Z.WQX)(Z.o8S)),(0,c.A)(this,"config",(0,Z.WQX)(gr))}create(M,O,re){var we;return new Lt(M,O,this.applicationRef,this.zone,re,null!==(we=this.config.useSetInputAPI)&&void 0!==we&&we)}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)}),(0,c.A)(te,"\u0275prov",Z.jDH({token:ie,factory:ie.\u0275fac})),te})();class Lt{constructor(te,ze,M,O,re,we){(0,c.A)(this,"environmentInjector",void 0),(0,c.A)(this,"injector",void 0),(0,c.A)(this,"applicationRef",void 0),(0,c.A)(this,"zone",void 0),(0,c.A)(this,"elementReferenceKey",void 0),(0,c.A)(this,"enableSignalsSupport",void 0),(0,c.A)(this,"elRefMap",new WeakMap),(0,c.A)(this,"elEventsMap",new WeakMap),this.environmentInjector=te,this.injector=ze,this.applicationRef=M,this.zone=O,this.elementReferenceKey=re,this.enableSignalsSupport=we}attachViewToDom(te,ze,M,O){return this.zone.run(()=>new Promise(re=>{const we={...M};void 0!==this.elementReferenceKey&&(we[this.elementReferenceKey]=te),re(Xt(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,te,ze,we,O,this.elementReferenceKey,this.enableSignalsSupport))}))}removeViewFromDom(te,ze){return this.zone.run(()=>new Promise(M=>{const O=this.elRefMap.get(ze);if(O){O.destroy(),this.elRefMap.delete(ze);const re=this.elEventsMap.get(ze);re&&(re(),this.elEventsMap.delete(ze))}M()}))}}const Xt=(ie,te,ze,M,O,re,we,We,St,nn,rn,pr)=>{const qn=Z.zZn.create({providers:Vn(St),parent:ze}),Sr=(0,Z.a0P)(We,{environmentInjector:te,elementInjector:qn}),jn=Sr.instance,zr=Sr.location.nativeElement;if(St)if(rn&&void 0!==jn[rn]&&console.error(`[Ionic Error]: ${rn} is a reserved property when using ${we.tagName.toLowerCase()}. Rename or remove the "${rn}" property from ${We.name}.`),!0===pr&&void 0!==Sr.setInput){const{modal:Pr,popover:Nr,...er}=St;for(const Rr in er)Sr.setInput(Rr,er[Rr]);void 0!==Pr&&Object.assign(jn,{modal:Pr}),void 0!==Nr&&Object.assign(jn,{popover:Nr})}else Object.assign(jn,St);if(nn)for(const Pr of nn)zr.classList.add(Pr);const $r=En(ie,jn,zr);return we.appendChild(zr),M.attachView(Sr.hostView),O.set(zr,Sr),re.set(zr,$r),zr},yn=[ae.L,ae.a,ae.b,ae.c,ae.d],En=(ie,te,ze)=>ie.run(()=>{const M=yn.filter(O=>"function"==typeof te[O]).map(O=>{const re=we=>te[O](we.detail);return ze.addEventListener(O,re),()=>ze.removeEventListener(O,re)});return()=>M.forEach(O=>O())}),Fr=new Z.nKC("NavParamsToken"),Vn=ie=>[{provide:Fr,useValue:ie},{provide:dr,useFactory:$n,deps:[Fr]}],$n=ie=>new dr(ie),In=(ie,te)=>{const ze=ie.prototype;te.forEach(M=>{Object.defineProperty(ze,M,{get(){return this.el[M]},set(O){this.z.runOutsideAngular(()=>this.el[M]=O)}})})},on=(ie,te)=>{const ze=ie.prototype;te.forEach(M=>{ze[M]=function(){const O=arguments;return this.z.runOutsideAngular(()=>this.el[M].apply(this.el,O))}})},mr=(ie,te,ze)=>{ze.forEach(M=>ie[M]=(0,Cn.R)(te,M))};function br(ie){return function(ze){const{defineCustomElementFn:M,inputs:O,methods:re}=ie;return void 0!==M&&M(),O&&In(ze,O),re&&on(ze,re),ze}}const Vr=["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],rr=["present","dismiss","onDidDismiss","onWillDismiss"];let Mr=(()=>{var ie;let te=((0,c.A)(ie=class{constructor(M,O,re){(0,c.A)(this,"z",void 0),(0,c.A)(this,"template",void 0),(0,c.A)(this,"isCmpOpen",!1),(0,c.A)(this,"el",void 0),this.z=re,this.el=O.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,M.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,M.detectChanges()}),mr(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(M){return new(M||ie)(Z.rXU(Z.gRc),Z.rXU(Z.aKT),Z.rXU(Z.SKi))}),(0,c.A)(ie,"\u0275dir",Z.FsC({type:ie,selectors:[["ion-popover"]],contentQueries:function(M,O,re){if(1&M&&Z.wni(re,Z.C4Q,5),2&M){let we;Z.mGM(we=Z.lsd())&&(O.template=we.first)}},inputs:{alignment:"alignment",animated:"animated",arrow:"arrow",keepContentsMounted:"keepContentsMounted",backdropDismiss:"backdropDismiss",cssClass:"cssClass",dismissOnSelect:"dismissOnSelect",enterAnimation:"enterAnimation",event:"event",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger",triggerAction:"triggerAction",reference:"reference",size:"size",side:"side"}})),ie);return te=(0,vt.Cg)([br({inputs:Vr,methods:rr})],te),te})();const sr=["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","translucent","trigger"],ii=["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"];let Tr=(()=>{var ie;let te=((0,c.A)(ie=class{constructor(M,O,re){(0,c.A)(this,"z",void 0),(0,c.A)(this,"template",void 0),(0,c.A)(this,"isCmpOpen",!1),(0,c.A)(this,"el",void 0),this.z=re,this.el=O.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,M.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,M.detectChanges()}),mr(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(M){return new(M||ie)(Z.rXU(Z.gRc),Z.rXU(Z.aKT),Z.rXU(Z.SKi))}),(0,c.A)(ie,"\u0275dir",Z.FsC({type:ie,selectors:[["ion-modal"]],contentQueries:function(M,O,re){if(1&M&&Z.wni(re,Z.C4Q,5),2&M){let we;Z.mGM(we=Z.lsd())&&(O.template=we.first)}},inputs:{animated:"animated",keepContentsMounted:"keepContentsMounted",backdropBreakpoint:"backdropBreakpoint",backdropDismiss:"backdropDismiss",breakpoints:"breakpoints",canDismiss:"canDismiss",cssClass:"cssClass",enterAnimation:"enterAnimation",event:"event",handle:"handle",handleBehavior:"handleBehavior",initialBreakpoint:"initialBreakpoint",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",presentingElement:"presentingElement",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger"}})),ie);return te=(0,vt.Cg)([br({inputs:sr,methods:ii})],te),te})();const Br=(ie,te)=>((ie=ie.filter(ze=>ze.stackId!==te.stackId)).push(te),ie),li=(ie,te)=>{const ze=ie.createUrlTree(["."],{relativeTo:te});return ie.serializeUrl(ze)},Di=(ie,te)=>!te||ie.stackId!==te.stackId,Zr=(ie,te)=>{if(!ie)return;const ze=ve(te);for(let M=0;M=ie.length)return ze[M];if(ze[M]!==ie[M])return}},ve=ie=>ie.split("/").map(te=>te.trim()).filter(te=>""!==te),rt=ie=>{ie&&(ie.ref.destroy(),ie.unlistenEvents())};class Nt{constructor(te,ze,M,O,re,we){(0,c.A)(this,"containerEl",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"zone",void 0),(0,c.A)(this,"location",void 0),(0,c.A)(this,"views",[]),(0,c.A)(this,"runningTask",void 0),(0,c.A)(this,"skipTransition",!1),(0,c.A)(this,"tabsPrefix",void 0),(0,c.A)(this,"activeView",void 0),(0,c.A)(this,"nextId",0),this.containerEl=ze,this.router=M,this.navCtrl=O,this.zone=re,this.location=we,this.tabsPrefix=void 0!==te?ve(te):void 0}createView(te,ze){var M;const O=li(this.router,ze),re=null==te||null===(M=te.location)||void 0===M?void 0:M.nativeElement,we=En(this.zone,te.instance,re);return{id:this.nextId++,stackId:Zr(this.tabsPrefix,O),unlistenEvents:we,element:re,ref:te,url:O}}getExistingView(te){const ze=li(this.router,te),M=this.views.find(O=>O.url===ze);return M&&M.ref.changeDetectorRef.reattach(),M}setActive(te){var ze,M;const O=this.navCtrl.consumeTransition();let{direction:re,animation:we,animationBuilder:We}=O;const St=this.activeView,nn=Di(te,St);nn&&(re="back",we=void 0);const rn=this.views.slice();let pr;const qn=this.router;qn.getCurrentNavigation?pr=qn.getCurrentNavigation():null!==(ze=qn.navigations)&&void 0!==ze&&ze.value&&(pr=qn.navigations.value),null!==(M=pr)&&void 0!==M&&null!==(M=M.extras)&&void 0!==M&&M.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const Sr=this.views.includes(te),jn=this.insertView(te,re);Sr||te.ref.changeDetectorRef.detectChanges();const zr=te.animationBuilder;return void 0===We&&"back"===re&&!nn&&void 0!==zr&&(We=zr),St&&(St.animationBuilder=We),this.zone.runOutsideAngular(()=>this.wait(()=>(St&&St.ref.changeDetectorRef.detach(),te.ref.changeDetectorRef.reattach(),this.transition(te,St,we,this.canGoBack(1),!1,We).then(()=>pt(te,jn,rn,this.location,this.zone)).then(()=>({enteringView:te,direction:re,animation:we,tabSwitch:nn})))))}canGoBack(te,ze=this.getActiveStackId()){return this.getStack(ze).length>te}pop(te,ze=this.getActiveStackId()){return this.zone.run(()=>{const M=this.getStack(ze);if(M.length<=te)return Promise.resolve(!1);const O=M[M.length-te-1];let re=O.url;const we=O.savedData;if(we){var We;const nn=we.get("primary");null!=nn&&null!==(We=nn.route)&&void 0!==We&&null!==(We=We._routerState)&&void 0!==We&&We.snapshot.url&&(re=nn.route._routerState.snapshot.url)}const{animationBuilder:St}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(re,{...O.savedExtras,animation:St}).then(()=>!0)})}startBackTransition(){const te=this.activeView;if(te){const ze=this.getStack(te.stackId),M=ze[ze.length-2],O=M.animationBuilder;return this.wait(()=>this.transition(M,te,"back",this.canGoBack(2),!0,O))}return Promise.resolve()}endBackTransition(te){te?(this.skipTransition=!0,this.pop(1)):this.activeView&&de(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(te){const ze=this.getStack(te);return ze.length>0?ze[ze.length-1]:void 0}getRootUrl(te){const ze=this.getStack(te);return ze.length>0?ze[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}getActiveView(){return this.activeView}hasRunningTask(){return void 0!==this.runningTask}destroy(){this.containerEl=void 0,this.views.forEach(rt),this.activeView=void 0,this.views=[]}getStack(te){return this.views.filter(ze=>ze.stackId===te)}insertView(te,ze){return this.activeView=te,this.views=((ie,te,ze)=>"root"===ze?Br(ie,te):"forward"===ze?((ie,te)=>(ie.indexOf(te)>=0?ie=ie.filter(M=>M.stackId!==te.stackId||M.id<=te.id):ie.push(te),ie))(ie,te):((ie,te)=>ie.indexOf(te)>=0?ie.filter(M=>M.stackId!==te.stackId||M.id<=te.id):Br(ie,te))(ie,te))(this.views,te,ze),this.views.slice()}transition(te,ze,M,O,re,we){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(ze===te)return Promise.resolve(!1);const We=te?te.element:void 0,St=ze?ze.element:void 0,nn=this.containerEl;return We&&We!==St&&(We.classList.add("ion-page"),We.classList.add("ion-page-invisible"),nn.commit)?nn.commit(We,St,{duration:void 0===M?0:void 0,direction:M,showGoBack:O,progressAnimation:re,animationBuilder:we}):Promise.resolve(!1)}wait(te){var ze=this;return(0,h.A)(function*(){void 0!==ze.runningTask&&(yield ze.runningTask,ze.runningTask=void 0);const M=ze.runningTask=te();return M.finally(()=>ze.runningTask=void 0),M})()}}const pt=(ie,te,ze,M,O)=>"function"==typeof requestAnimationFrame?new Promise(re=>{requestAnimationFrame(()=>{de(ie,te,ze,M,O),re()})}):Promise.resolve(),de=(ie,te,ze,M,O)=>{O.run(()=>ze.filter(re=>!te.includes(re)).forEach(rt)),te.forEach(re=>{const We=M.path().split("?")[0].split("#")[0];if(re!==ie&&re.url!==We){const St=re.element;St.setAttribute("aria-hidden","true"),St.classList.add("ion-page-hidden"),re.ref.changeDetectorRef.detach()}})};let Ae=(()=>{var ie;class te{get activatedComponentRef(){return this.activated}set animation(M){this.nativeEl.animation=M}set animated(M){this.nativeEl.animated=M}set swipeGesture(M){this._swipeGesture=M,this.nativeEl.swipeHandler=M?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:O=>this.stackCtrl.endBackTransition(O)}:void 0}constructor(M,O,re,we,We,St,nn,rn){(0,c.A)(this,"parentOutlet",void 0),(0,c.A)(this,"nativeEl",void 0),(0,c.A)(this,"activatedView",null),(0,c.A)(this,"tabsPrefix",void 0),(0,c.A)(this,"_swipeGesture",void 0),(0,c.A)(this,"stackCtrl",void 0),(0,c.A)(this,"proxyMap",new WeakMap),(0,c.A)(this,"currentActivatedRoute$",new Et.t(null)),(0,c.A)(this,"activated",null),(0,c.A)(this,"_activatedRoute",null),(0,c.A)(this,"name",ke.Xk),(0,c.A)(this,"stackWillChange",new Z.bkB),(0,c.A)(this,"stackDidChange",new Z.bkB),(0,c.A)(this,"activateEvents",new Z.bkB),(0,c.A)(this,"deactivateEvents",new Z.bkB),(0,c.A)(this,"parentContexts",(0,Z.WQX)(ke.Zp)),(0,c.A)(this,"location",(0,Z.WQX)(Z.c1b)),(0,c.A)(this,"environmentInjector",(0,Z.WQX)(Z.uvJ)),(0,c.A)(this,"inputBinder",(0,Z.WQX)($t,{optional:!0})),(0,c.A)(this,"supportsBindingToComponentInputs",!0),(0,c.A)(this,"config",(0,Z.WQX)(or)),(0,c.A)(this,"navCtrl",(0,Z.WQX)(Je)),this.parentOutlet=rn,this.nativeEl=we.nativeElement,this.name=M||ke.Xk,this.tabsPrefix="true"===O?li(We,nn):void 0,this.stackCtrl=new Nt(this.tabsPrefix,this.nativeEl,We,this.navCtrl,St,re),this.parentContexts.onChildOutletCreated(this.name,this)}ngOnDestroy(){var M;this.stackCtrl.destroy(),null===(M=this.inputBinder)||void 0===M||M.unsubscribeFromRouteData(this)}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(!this.activated){const M=this.getContext();null!=M&&M.route&&this.activateWith(M.route,M.injector)}new Promise(M=>((ie,te)=>{ie.componentOnReady?ie.componentOnReady().then(ze=>te(ze)):(ie=>{"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(ie):"function"==typeof requestAnimationFrame?requestAnimationFrame(ie):setTimeout(ie)})(()=>te(ie))})(this.nativeEl,M)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(M,O){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const O=this.getContext();this.activatedView.savedData=new Map(O.children.contexts);const re=this.activatedView.savedData.get("primary");if(re&&O.route&&(re.route={...O.route}),this.activatedView.savedExtras={},O.route){const we=O.route.snapshot;this.activatedView.savedExtras.queryParams=we.queryParams,this.activatedView.savedExtras.fragment=we.fragment}}const M=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(M)}}activateWith(M,O){var re;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=M;let we,We=this.stackCtrl.getExistingView(M);if(We){we=this.activated=We.ref;const rn=We.savedData;rn&&(this.getContext().children.contexts=rn),this.updateActivatedRouteProxy(we.instance,M)}else{var St;const rn=M._futureSnapshot,pr=this.parentContexts.getOrCreateContext(this.name).children,qn=new Et.t(null),Sr=this.createActivatedRouteProxy(qn,M),jn=new Ge(Sr,pr,this.location.injector),zr=null!==(St=rn.routeConfig.component)&&void 0!==St?St:rn.component;we=this.activated=this.outletContent.createComponent(zr,{index:this.outletContent.length,injector:jn,environmentInjector:null!=O?O:this.environmentInjector}),qn.next(we.instance),We=this.stackCtrl.createView(this.activated,M),this.proxyMap.set(we.instance,Sr),this.currentActivatedRoute$.next({component:we.instance,activatedRoute:M})}null===(re=this.inputBinder)||void 0===re||re.bindActivatedRouteToOutletComponent(this),this.activatedView=We,this.navCtrl.setTopOutlet(this);const nn=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:We,tabSwitch:Di(We,nn)}),this.stackCtrl.setActive(We).then(rn=>{this.activateEvents.emit(we.instance),this.stackDidChange.emit(rn)})}canGoBack(M=1,O){return this.stackCtrl.canGoBack(M,O)}pop(M=1,O){return this.stackCtrl.pop(M,O)}getLastUrl(M){const O=this.stackCtrl.getLastUrl(M);return O?O.url:void 0}getLastRouteView(M){return this.stackCtrl.getLastUrl(M)}getRootView(M){return this.stackCtrl.getRootUrl(M)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(M,O){const re=new ke.nX;return re._futureSnapshot=O._futureSnapshot,re._routerState=O._routerState,re.snapshot=O.snapshot,re.outlet=O.outlet,re.component=O.component,re._paramMap=this.proxyObservable(M,"paramMap"),re._queryParamMap=this.proxyObservable(M,"queryParamMap"),re.url=this.proxyObservable(M,"url"),re.params=this.proxyObservable(M,"params"),re.queryParams=this.proxyObservable(M,"queryParams"),re.fragment=this.proxyObservable(M,"fragment"),re.data=this.proxyObservable(M,"data"),re}proxyObservable(M,O){return M.pipe((0,Re.p)(re=>!!re),(0,G.n)(re=>this.currentActivatedRoute$.pipe((0,Re.p)(we=>null!==we&&we.component===re),(0,G.n)(we=>we&&we.activatedRoute[O]),(0,X.F)())))}updateActivatedRouteProxy(M,O){const re=this.proxyMap.get(M);if(!re)throw new Error("Could not find activated route proxy for view");re._futureSnapshot=O._futureSnapshot,re._routerState=O._routerState,re.snapshot=O.snapshot,re.outlet=O.outlet,re.component=O.component,this.currentActivatedRoute$.next({component:M,activatedRoute:O})}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.kS0("name"),Z.kS0("tabs"),Z.rXU($.aZ),Z.rXU(Z.aKT),Z.rXU(ke.Ix),Z.rXU(Z.SKi),Z.rXU(ke.nX),Z.rXU(ie,12))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:ie,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",mode:"mode",swipeGesture:"swipeGesture",name:"name"},outputs:{stackWillChange:"stackWillChange",stackDidChange:"stackDidChange",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]})),te})();class Ge{constructor(te,ze,M){(0,c.A)(this,"route",void 0),(0,c.A)(this,"childContexts",void 0),(0,c.A)(this,"parent",void 0),this.route=te,this.childContexts=ze,this.parent=M}get(te,ze){return te===ke.nX?this.route:te===ke.Zp?this.childContexts:this.parent.get(te,ze)}}const $t=new Z.nKC("");let le=(()=>{var ie;class te{constructor(){(0,c.A)(this,"outletDataSubscriptions",new Map)}bindActivatedRouteToOutletComponent(M){this.unsubscribeFromRouteData(M),this.subscribeToRouteData(M)}unsubscribeFromRouteData(M){var O;null===(O=this.outletDataSubscriptions.get(M))||void 0===O||O.unsubscribe(),this.outletDataSubscriptions.delete(M)}subscribeToRouteData(M){const{activatedRoute:O}=M,re=(0,st.z)([O.queryParams,O.params,O.data]).pipe((0,G.n)(([we,We,St],nn)=>(St={...we,...We,...St},0===nn?(0,cn.of)(St):Promise.resolve(St)))).subscribe(we=>{if(!M.isActivated||!M.activatedComponentRef||M.activatedRoute!==O||null===O.component)return void this.unsubscribeFromRouteData(M);const We=(0,Z.HJs)(O.component);if(We)for(const{templateName:St}of We.inputs)M.activatedComponentRef.setInput(St,we[St]);else this.unsubscribeFromRouteData(M)});this.outletDataSubscriptions.set(M,re)}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)}),(0,c.A)(te,"\u0275prov",Z.jDH({token:ie,factory:ie.\u0275fac})),te})();const gt=()=>({provide:$t,useFactory:ft,deps:[ke.Ix]});function ft(ie){return null!=ie&&ie.componentInputBindingEnabled?new le:null}const Qt=["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"];let sn=(()=>{var ie;let te=((0,c.A)(ie=class{constructor(M,O,re,we,We,St){(0,c.A)(this,"routerOutlet",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"config",void 0),(0,c.A)(this,"r",void 0),(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.routerOutlet=M,this.navCtrl=O,this.config=re,this.r=we,this.z=We,St.detach(),this.el=this.r.nativeElement}onClick(M){var O;const re=this.defaultHref||this.config.get("backButtonDefaultHref");null!==(O=this.routerOutlet)&&void 0!==O&&O.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),M.preventDefault()):null!=re&&(this.navCtrl.navigateBack(re,{animation:this.routerAnimation}),M.preventDefault())}},"\u0275fac",function(M){return new(M||ie)(Z.rXU(Ae,8),Z.rXU(Je),Z.rXU(or),Z.rXU(Z.aKT),Z.rXU(Z.SKi),Z.rXU(Z.gRc))}),(0,c.A)(ie,"\u0275dir",Z.FsC({type:ie,hostBindings:function(M,O){1&M&&Z.bIt("click",function(we){return O.onClick(we)})},inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"}})),ie);return te=(0,vt.Cg)([br({inputs:Qt})],te),te})(),Tn=(()=>{var ie;class te{constructor(M,O,re,we,We){(0,c.A)(this,"locationStrategy",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"routerLink",void 0),(0,c.A)(this,"routerDirection","forward"),(0,c.A)(this,"routerAnimation",void 0),this.locationStrategy=M,this.navCtrl=O,this.elementRef=re,this.router=we,this.routerLink=We}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var M;if(null!==(M=this.routerLink)&&void 0!==M&&M.urlTree){const O=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=O}}onClick(M){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),M.preventDefault()}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.rXU($.hb),Z.rXU(Je),Z.rXU(Z.aKT),Z.rXU(ke.Ix),Z.rXU(ke.Wk,8))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:ie,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(M,O){1&M&&Z.bIt("click",function(we){return O.onClick(we)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[Z.OA$]})),te})(),Xn=(()=>{var ie;class te{constructor(M,O,re,we,We){(0,c.A)(this,"locationStrategy",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"routerLink",void 0),(0,c.A)(this,"routerDirection","forward"),(0,c.A)(this,"routerAnimation",void 0),this.locationStrategy=M,this.navCtrl=O,this.elementRef=re,this.router=we,this.routerLink=We}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var M;if(null!==(M=this.routerLink)&&void 0!==M&&M.urlTree){const O=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=O}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.rXU($.hb),Z.rXU(Je),Z.rXU(Z.aKT),Z.rXU(ke.Ix),Z.rXU(ke.Wk,8))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:ie,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(M,O){1&M&&Z.bIt("click",function(){return O.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[Z.OA$]})),te})();const dn=["animated","animation","root","rootParams","swipeGesture"],wn=["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"];let hr=(()=>{var ie;let te=((0,c.A)(ie=class{constructor(M,O,re,we,We,St){(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.z=We,St.detach(),this.el=M.nativeElement,M.nativeElement.delegate=we.create(O,re),mr(this,this.el,["ionNavDidChange","ionNavWillChange"])}},"\u0275fac",function(M){return new(M||ie)(Z.rXU(Z.aKT),Z.rXU(Z.uvJ),Z.rXU(Z.zZn),Z.rXU(nt),Z.rXU(Z.SKi),Z.rXU(Z.gRc))}),(0,c.A)(ie,"\u0275dir",Z.FsC({type:ie,inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"}})),ie);return te=(0,vt.Cg)([br({inputs:dn,methods:wn})],te),te})(),wr=(()=>{var ie;class te{constructor(M){(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"tabsInner",void 0),(0,c.A)(this,"ionTabsWillChange",new Z.bkB),(0,c.A)(this,"ionTabsDidChange",new Z.bkB),(0,c.A)(this,"tabBarSlot","bottom"),this.navCtrl=M}ngAfterContentInit(){this.detectSlotChanges()}ngAfterContentChecked(){this.detectSlotChanges()}onStackWillChange({enteringView:M,tabSwitch:O}){const re=M.stackId;O&&void 0!==re&&this.ionTabsWillChange.emit({tab:re})}onStackDidChange({enteringView:M,tabSwitch:O}){const re=M.stackId;O&&void 0!==re&&(this.tabBar&&(this.tabBar.selectedTab=re),this.ionTabsDidChange.emit({tab:re}))}select(M){const O="string"==typeof M,re=O?M:M.detail.tab,we=this.outlet.getActiveStackId()===re,We=`${this.outlet.tabsPrefix}/${re}`;if(O||M.stopPropagation(),we){const St=this.outlet.getActiveStackId(),nn=this.outlet.getLastRouteView(St);if((null==nn?void 0:nn.url)===We)return;const rn=this.outlet.getRootView(re);return this.navCtrl.navigateRoot(We,{...rn&&We===rn.url&&rn.savedExtras,animated:!0,animationDirection:"back"})}{const St=this.outlet.getLastRouteView(re);return this.navCtrl.navigateRoot((null==St?void 0:St.url)||We,{...null==St?void 0:St.savedExtras,animated:!0,animationDirection:"back"})}}getSelected(){return this.outlet.getActiveStackId()}detectSlotChanges(){this.tabBars.forEach(M=>{const O=M.el.getAttribute("slot");O!==this.tabBarSlot&&(this.tabBarSlot=O,this.relocateTabBar())})}relocateTabBar(){const M=this.tabBar.el;"top"===this.tabBarSlot?this.tabsInner.nativeElement.before(M):this.tabsInner.nativeElement.after(M)}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.rXU(Je))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:ie,selectors:[["ion-tabs"]],viewQuery:function(M,O){if(1&M&&Z.GBs(ue,7,Z.aKT),2&M){let re;Z.mGM(re=Z.lsd())&&(O.tabsInner=re.first)}},hostBindings:function(M,O){1&M&&Z.bIt("ionTabButtonClick",function(we){return O.select(we)})},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"}})),te})();const fr=ie=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(ie):"function"==typeof requestAnimationFrame?requestAnimationFrame(ie):setTimeout(ie);let Ur=(()=>{var ie;class te{constructor(M,O){(0,c.A)(this,"injector",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"onChange",()=>{}),(0,c.A)(this,"onTouched",()=>{}),(0,c.A)(this,"lastValue",void 0),(0,c.A)(this,"statusChanges",void 0),this.injector=M,this.elementRef=O}writeValue(M){this.elementRef.nativeElement.value=this.lastValue=M,oi(this.elementRef)}handleValueChange(M,O){M===this.elementRef.nativeElement&&(O!==this.lastValue&&(this.lastValue=O,this.onChange(O)),oi(this.elementRef))}_handleBlurEvent(M){M===this.elementRef.nativeElement&&(this.onTouched(),oi(this.elementRef))}registerOnChange(M){this.onChange=M}registerOnTouched(M){this.onTouched=M}setDisabledState(M){this.elementRef.nativeElement.disabled=M}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let M;try{M=this.injector.get(ce.vO)}catch{}if(!M)return;M.statusChanges&&(this.statusChanges=M.statusChanges.subscribe(()=>oi(this.elementRef)));const O=M.control;O&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(we=>{if(typeof O[we]<"u"){const We=O[we].bind(O);O[we]=(...St)=>{We(...St),oi(this.elementRef)}}})}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.rXU(Z.zZn),Z.rXU(Z.aKT))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:ie,hostBindings:function(M,O){1&M&&Z.bIt("ionBlur",function(we){return O._handleBlurEvent(we.target)})}})),te})();const oi=ie=>{fr(()=>{const te=ie.nativeElement,ze=null!=te.value&&te.value.toString().length>0,M=Ir(te);xi(te,M);const O=te.closest("ion-item");O&&xi(O,ze?[...M,"item-has-value"]:M)})},Ir=ie=>{const te=ie.classList,ze=[];for(let M=0;M{const ze=ie.classList;ze.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),ze.add(...te)},vi=(ie,te)=>ie.substring(0,te.length)===te;class Ar{shouldDetach(te){return!1}shouldAttach(te){return!1}store(te,ze){}retrieve(te){return null}shouldReuseRoute(te,ze){if(te.routeConfig!==ze.routeConfig)return!1;const M=te.params,O=ze.params,re=Object.keys(M),we=Object.keys(O);if(re.length!==we.length)return!1;for(const We of re)if(O[We]!==M[We])return!1;return!0}}class Gt{constructor(te){(0,c.A)(this,"ctrl",void 0),this.ctrl=te}create(te){return this.ctrl.create(te||{})}dismiss(te,ze,M){return this.ctrl.dismiss(te,ze,M)}getTop(){return this.ctrl.getTop()}}},7863:(Pn,It,C)=>{"use strict";C.d(It,{hG:()=>yi,hB:()=>vt,U1:()=>Sn,mC:()=>kn,Jm:()=>dr,QW:()=>nt,b_:()=>Lt,I9:()=>Xt,ME:()=>yn,HW:()=>En,tN:()=>Fr,eY:()=>Vn,ZB:()=>$n,hU:()=>In,W9:()=>on,Q8:()=>Vr,M0:()=>sr,lO:()=>ii,eU:()=>Tr,iq:()=>yr,$w:()=>li,uz:()=>Zr,Dg:()=>ve,he:()=>Ae,nf:()=>Ge,oS:()=>gt,MC:()=>ft,cA:()=>Qt,Sb:()=>Hr,To:()=>Ir,Ki:()=>xi,Rg:()=>Nr,ln:()=>ie,Gp:()=>ze,eP:()=>M,Nm:()=>O,Ip:()=>re,HP:()=>St,nc:()=>qn,BC:()=>jn,ai:()=>Pr,bv:()=>Hn,Xi:()=>Pt,_t:()=>ge,N7:()=>hi,oY:()=>Yr,Je:()=>G,Gw:()=>X});var h=C(9842),c=C(4438),Z=C(4341),ke=C(2872),$=C(1635),he=C(3726),ae=C(177),Xe=C(7650),Ye=(C(9986),C(2725),C(8454),C(3314),C(8607),C(3664)),at=C(464),mt=C(5465),xt=C(6002),zt=(C(8476),C(9672));C(1970),C(6411);var _e=C(467);const $e=Ye.i,Le=function(){var w=(0,_e.A)(function*(H,oe){if(!(typeof window>"u"))return yield $e(),(0,zt.b)(JSON.parse('[["ion-menu_3",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]],{"type":["typeChanged"],"disabled":["disabledChanged"],"side":["sideChanged"],"swipeGesture":["swipeGestureChanged"]}],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-input-password-toggle",[[33,"ion-input-password-toggle",{"color":[513],"showIcon":[1,"show-icon"],"hideIcon":[1,"hide-icon"],"type":[1025]},null,{"type":["onTypeChange"]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]},null,{"activated":["activatedChanged"]}],[1,"ion-fab-list",{"activated":[4],"side":[1]},null,{"activated":["activatedChanged"]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"layout":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"positionAnchor":[1,"position-anchor"],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"swipeGesture":[1,"swipe-gesture"],"isOpen":[4,"is-open"],"trigger":[1],"revealContentToScreenReader":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"swipeGesture":["swipeGestureChanged"],"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-card_5",[[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[513]}],[33,"ion-card-title",{"color":[513]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-accordion_2",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]},null,{"value":["valueChanged"]}],[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]],{"value":["valueChanged"],"disabled":["disabledChanged"],"readonly":["readonlyChanged"]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]},null,{"threshold":["thresholdChanged"],"disabled":["disabledChanged"]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[1028],"layout":[1],"type":[1],"value":[8],"checked":[32],"setFocus":[64]},null,{"value":["valueChanged"]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1032],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]],{"color":["colorChanged"],"swipeGesture":["swipeGestureChanged"],"value":["valueChanged"],"disabled":["disabledChanged"]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},null,{"selectedTab":["selectedTabChanged"]}]]],["ion-chip",[[33,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-datetime-button",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["ion-input",[[38,"ion-input",{"color":[513],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearInputIcon":[1,"clear-input-icon"],"clearOnEdit":[4,"clear-on-edit"],"counter":[4],"counterFormatter":[16],"debounce":[2],"disabled":[516],"enterkeyhint":[1],"errorText":[1,"error-text"],"fill":[1],"inputmode":[1],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[516],"required":[4],"shape":[1],"spellcheck":[4],"step":[1],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"type":["onTypeChange"],"value":["valueChanged"]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]},null,{"lang":["onLangChanged"],"dir":["onDirChanged"],"debounce":["debounceChanged"],"value":["valueChanged"],"showCancelButton":["showCancelButtonChanged"]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"activated":[32]},null,{"disabled":["disabledChanged"]}]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64],"getLength":[64]},null,{"swipeGesture":["swipeGestureChanged"],"root":["rootChanged"]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-textarea",[[38,"ion-textarea",{"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"fill":[1],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[514],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"counter":[4],"counterFormatter":[16],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"shape":[1],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"value":["valueChanged"]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-breadcrumb_2",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}],[33,"ion-breadcrumbs",{"color":[513],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]],{"maxItems":["maxItemsChanged"],"itemsBeforeCollapse":["maxItemsChanged"],"itemsAfterCollapse":["maxItemsChanged"]}]]],["ion-modal",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"focusTrap":[4,"focus-trap"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]},null,{"url":["onUpdate"],"component":["onUpdate"],"componentProps":["onComponentProps"]}],[0,"ion-route-redirect",{"from":[1],"to":[1]},null,{"from":["propDidChange"],"to":["propDidChange"]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]},null,{"active":["changeActive"]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]},null,{"src":["srcChanged"]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["ion-range",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"label":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"labelPlacement":[1,"label-placement"],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]},null,{"debounce":["debounceChanged"],"min":["minChanged"],"max":["maxChanged"],"activeBarStart":["activeBarStartChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32],"isVisible":[64]},null,{"visible":["visibleChanged"],"disabled":["updateState"],"when":["updateState"]}]]],["ion-text",[[1,"ion-text",{"color":[513]}]]],["ion-select_3",[[33,"ion-select",{"cancelText":[1,"cancel-text"],"color":[513],"compareWith":[1,"compare-with"],"disabled":[4],"fill":[1],"interface":[1],"interfaceOptions":[8,"interface-options"],"justify":[1],"label":[1],"labelPlacement":[1,"label-placement"],"multiple":[4],"name":[1],"okText":[1,"ok-text"],"placeholder":[1],"selectedText":[1,"selected-text"],"toggleIcon":[1,"toggle-icon"],"expandedIcon":[1,"expanded-icon"],"shape":[1],"value":[1032],"isExpanded":[32],"open":[64]},null,{"disabled":["styleChanged"],"isExpanded":["styleChanged"],"placeholder":["styleChanged"],"value":["styleChanged"]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]}]]],["ion-picker",[[33,"ion-picker",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["ion-picker-column",[[1,"ion-picker-column",{"disabled":[4],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"ariaLabel":[32],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64],"setFocus":[64]},null,{"aria-label":["ariaLabelChanged"],"value":["valueChange"]}]]],["ion-datetime_3",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"formatOptions":[16],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"highlightedDates":[16],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isTimePopoverOpen":[32],"forceRenderDate":[32],"confirm":[64],"reset":[64],"cancel":[64]},null,{"formatOptions":["formatOptionsChanged"],"disabled":["disabledChanged"],"min":["minChanged"],"max":["maxChanged"],"presentation":["presentationChanged"],"yearValues":["yearValuesChanged"],"monthValues":["monthValuesChanged"],"dayValues":["dayValuesChanged"],"hourValues":["hourValuesChanged"],"minuteValues":["minuteValuesChanged"],"value":["valueChanged"]}],[34,"ion-picker-legacy",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}],[32,"ion-picker-legacy-column",{"col":[16]},null,{"col":["colChanged"]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]},null,{"value":["valueChanged"]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"compareWith":[1,"compare-with"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]],{"value":["valueChanged"]}]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1],"isCircle":[32]},null,{"disabled":["disabledChanged"]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"],"ios":["loadIcon"],"md":["loadIcon"]}]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]],{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"],"buttons":["buttonsChanged"],"inputs":["inputsChanged"]}]]],["ion-app_8",[[0,"ion-app",{"setFocus":[64]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"fixedSlotPlacement":[1,"fixed-slot-placement"],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[9,"resize","onResize"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]},null,{"swipeHandler":["swipeHandlerChanged"]}],[33,"ion-title",{"color":[513],"size":[1]},null,{"size":["sizeChanged"]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[38,"ion-buttons",{"collapse":[4]}]]],["ion-picker-column-option",[[33,"ion-picker-column-option",{"disabled":[4],"value":[8],"color":[513],"ariaLabel":[32]},null,{"aria-label":["onAriaLabelChange"]}]]],["ion-popover",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"focusTrap":[4,"focus-trap"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"trigger":["onTriggerChange"],"triggerAction":["onTriggerChange"],"isOpen":["onIsOpenChange"]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[513]}],[1,"ion-skeleton-text",{"animated":[4]}],[33,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32],"focusable":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]],{"button":["buttonChanged"]}],[38,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]},null,{"color":["colorChanged"],"position":["positionChanged"]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}]]]]'),oe)});return function(oe,P){return w.apply(this,arguments)}}(),Oe=["*"],Ct=["outletContent"];function st(w,H){if(1&w&&(c.j41(0,"div",1),c.eu8(1,2),c.k0s()),2&w){const oe=c.XpG();c.R7$(),c.Y8G("ngTemplateOutlet",oe.template)}}let vt=(()=>{var w;class H extends ke.fL{constructor(P,Te){super(P,Te)}writeValue(P){this.elementRef.nativeElement.checked=this.lastValue=P,(0,ke.z3)(this.elementRef)}_handleIonChange(P){this.handleValueChange(P,P.checked)}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(P,Te){1&P&&c.bIt("ionChange",function(vr){return Te._handleIonChange(vr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:w,multi:!0}]),c.Vt3]})),H})(),G=(()=>{var w;class H extends ke.fL{constructor(P,Te){super(P,Te)}_handleChangeEvent(P){this.handleValueChange(P,P.value)}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(P,Te){1&P&&c.bIt("ionChange",function(vr){return Te._handleChangeEvent(vr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:w,multi:!0}]),c.Vt3]})),H})(),X=(()=>{var w;class H extends ke.fL{constructor(P,Te){super(P,Te)}_handleInputEvent(P){this.handleValueChange(P,P.value)}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(P,Te){1&P&&c.bIt("ionInput",function(vr){return Te._handleInputEvent(vr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:w,multi:!0}]),c.Vt3]})),H})();const ce=(w,H)=>{const oe=w.prototype;H.forEach(P=>{Object.defineProperty(oe,P,{get(){return this.el[P]},set(Te){this.z.runOutsideAngular(()=>this.el[P]=Te)},configurable:!0})})},ue=(w,H)=>{const oe=w.prototype;H.forEach(P=>{oe[P]=function(){const Te=arguments;return this.z.runOutsideAngular(()=>this.el[P].apply(this.el,Te))}})},Ee=(w,H,oe)=>{oe.forEach(P=>w[P]=(0,he.R)(H,P))};function ut(w){return function(oe){const{defineCustomElementFn:P,inputs:Te,methods:dt}=w;return void 0!==P&&P(),Te&&ce(oe,Te),dt&&ue(oe,dt),oe}}let Sn=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-app"]],ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({})],H),H})(),kn=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-avatar"]],ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({})],H),H})(),dr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement,Ee(this,this.el,["ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",form:"form",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],H),H})(),nt=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["collapse"]})],H),H})(),Lt=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],H),H})(),Xt=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["mode"]})],H),H})(),yn=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","mode","translucent"]})],H),H})(),En=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","mode"]})],H),H})(),Fr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","mode"]})],H),H})(),Vn=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement,Ee(this,this.el,["ionChange","ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-checkbox"]],inputs:{alignment:"alignment",checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",justify:"justify",labelPlacement:"labelPlacement",mode:"mode",name:"name",value:"value"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["alignment","checked","color","disabled","indeterminate","justify","labelPlacement","mode","name","value"]})],H),H})(),$n=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","disabled","mode","outline"]})],H),H})(),In=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],H),H})(),on=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement,Ee(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-content"]],inputs:{color:"color",fixedSlotPlacement:"fixedSlotPlacement",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","fixedSlotPlacement","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],H),H})(),Vr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],H),H})(),sr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-footer"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["collapse","mode","translucent"]})],H),H})(),ii=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["fixed"]})],H),H})(),Tr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["collapse","mode","translucent"]})],H),H})(),yr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-icon"]],inputs:{color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],H),H})(),li=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement,Ee(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-input"]],inputs:{autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearInputIcon:"clearInputIcon",clearOnEdit:"clearOnEdit",color:"color",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",shape:"shape",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearInputIcon","clearOnEdit","color","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","shape","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],H),H})(),Zr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],H),H})(),ve=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-item-divider"]],inputs:{color:"color",mode:"mode",sticky:"sticky"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","mode","sticky"]})],H),H})(),Ae=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","mode","position"]})],H),H})(),Ge=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],H),H})(),gt=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement,Ee(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],H),H})(),ft=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["autoHide","color","disabled","menu","mode","type"]})],H),H})(),Qt=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["autoHide","menu"]})],H),H})(),Ir=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement,Ee(this,this.el,["ionRefresh","ionPull","ionStart"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",mode:"mode",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["closeDuration","disabled","mode","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],H),H})(),xi=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],H),H})(),ie=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-row"]],ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({})],H),H})(),ze=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement,Ee(this,this.el,["ionChange"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",selectOnFocus:"selectOnFocus",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","disabled","mode","scrollable","selectOnFocus","swipeGesture","value"]})],H),H})(),M=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["disabled","layout","mode","type","value"]})],H),H})(),O=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement,Ee(this,this.el,["ionChange","ionCancel","ionDismiss","ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",color:"color",compareWith:"compareWith",disabled:"disabled",expandedIcon:"expandedIcon",fill:"fill",interface:"interface",interfaceOptions:"interfaceOptions",justify:"justify",label:"label",labelPlacement:"labelPlacement",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",shape:"shape",toggleIcon:"toggleIcon",value:"value"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["cancelText","color","compareWith","disabled","expandedIcon","fill","interface","interfaceOptions","justify","label","labelPlacement","mode","multiple","name","okText","placeholder","selectedText","shape","toggleIcon","value"],methods:["open"]})],H),H})(),re=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["disabled","value"]})],H),H})(),St=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement,Ee(this,this.el,["ionSplitPaneVisible"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["contentId","disabled","when"]})],H),H})(),qn=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement,Ee(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-textarea"]],inputs:{autoGrow:"autoGrow",autocapitalize:"autocapitalize",autofocus:"autofocus",clearOnEdit:"clearOnEdit",color:"color",cols:"cols",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",maxlength:"maxlength",minlength:"minlength",mode:"mode",name:"name",placeholder:"placeholder",readonly:"readonly",required:"required",rows:"rows",shape:"shape",spellcheck:"spellcheck",value:"value",wrap:"wrap"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","maxlength","minlength","mode","name","placeholder","readonly","required","rows","shape","spellcheck","value","wrap"],methods:["setFocus","getInputElement"]})],H),H})(),jn=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","size"]})],H),H})(),Pr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Te,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Te.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Te){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","mode"]})],H),H})(),Nr=(()=>{var w;class H extends ke.Rg{constructor(P,Te,dt,vr,ai,W,ye,Fe){super(P,Te,dt,vr,ai,W,ye,Fe),(0,h.A)(this,"parentOutlet",void 0),(0,h.A)(this,"outletContent",void 0),this.parentOutlet=Fe}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)(c.kS0("name"),c.kS0("tabs"),c.rXU(ae.aZ),c.rXU(c.aKT),c.rXU(Xe.Ix),c.rXU(c.SKi),c.rXU(Xe.nX),c.rXU(w,12))}),(0,h.A)(H,"\u0275cmp",c.VBU({type:w,selectors:[["ion-router-outlet"]],viewQuery:function(P,Te){if(1&P&&c.GBs(Ct,7,c.c1b),2&P){let dt;c.mGM(dt=c.lsd())&&(Te.outletContent=dt.first)}},features:[c.Vt3],ngContentSelectors:Oe,decls:3,vars:0,consts:[["outletContent",""]],template:function(P,Te){1&P&&(c.NAR(),c.qex(0,null,0),c.SdG(2),c.bVm())},encapsulation:2})),H})(),hi=(()=>{var w;class H extends ke.CE{}return w=H,(0,h.A)(H,"\u0275fac",(()=>{let oe;return function(Te){return(oe||(oe=c.xGo(w)))(Te||w)}})()),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["","routerLink","",5,"a",5,"area"]],features:[c.Vt3]})),H})(),Yr=(()=>{var w;class H extends ke.pF{}return w=H,(0,h.A)(H,"\u0275fac",(()=>{let oe;return function(Te){return(oe||(oe=c.xGo(w)))(Te||w)}})()),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["a","routerLink",""],["area","routerLink",""]],features:[c.Vt3]})),H})(),Hr=(()=>{var w;class H extends ke.Sb{}return w=H,(0,h.A)(H,"\u0275fac",(()=>{let oe;return function(Te){return(oe||(oe=c.xGo(w)))(Te||w)}})()),(0,h.A)(H,"\u0275cmp",c.VBU({type:w,selectors:[["ion-modal"]],features:[c.Vt3],decls:1,vars:1,consts:[["class","ion-delegate-host ion-page",4,"ngIf"],[1,"ion-delegate-host","ion-page"],[3,"ngTemplateOutlet"]],template:function(P,Te){1&P&&c.DNE(0,st,2,1,"div",0),2&P&&c.Y8G("ngIf",Te.isCmpOpen||Te.keepContentsMounted)},dependencies:[ae.bT,ae.T3],encapsulation:2,changeDetection:0})),H})();const tr={provide:Z.cz,useExisting:(0,c.Rfq)(()=>Zn),multi:!0};let Zn=(()=>{var w;class H extends Z.zX{}return w=H,(0,h.A)(H,"\u0275fac",(()=>{let oe;return function(Te){return(oe||(oe=c.xGo(w)))(Te||w)}})()),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["ion-input","type","number","max","","formControlName",""],["ion-input","type","number","max","","formControl",""],["ion-input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(P,Te){2&P&&c.BMQ("max",Te._enabled?Te.max:null)},features:[c.Jv_([tr]),c.Vt3]})),H})();const mo={provide:Z.cz,useExisting:(0,c.Rfq)(()=>fi),multi:!0};let fi=(()=>{var w;class H extends Z.VZ{}return w=H,(0,h.A)(H,"\u0275fac",(()=>{let oe;return function(Te){return(oe||(oe=c.xGo(w)))(Te||w)}})()),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["ion-input","type","number","min","","formControlName",""],["ion-input","type","number","min","","formControl",""],["ion-input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(P,Te){2&P&&c.BMQ("min",Te._enabled?Te.min:null)},features:[c.Jv_([mo]),c.Vt3]})),H})(),yi=(()=>{var w;class H extends ke.Kb{constructor(){super(xt.a)}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(H,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),H})(),Pt=(()=>{var w;class H extends ke.Kb{constructor(){super(xt.l)}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(H,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),H})(),ge=(()=>{var w;class H extends ke._t{constructor(){super(mt.m)}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(H,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),H})(),fe=(()=>{var w;class H extends ke.Kb{constructor(){super(xt.m),(0,h.A)(this,"angularDelegate",(0,c.WQX)(ke.Yq)),(0,h.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,h.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(P){return super.create({...P,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")})}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(H,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac})),H})();class je extends ke.Kb{constructor(){super(xt.c),(0,h.A)(this,"angularDelegate",(0,c.WQX)(ke.Yq)),(0,h.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,h.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(H){return super.create({...H,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")})}}const ct=(w,H,oe)=>()=>{const P=H.defaultView;if(P&&typeof window<"u"){(0,at.s)({...w,_zoneGate:dt=>oe.run(dt)});const Te="__zone_symbol__addEventListener"in H.body?"__zone_symbol__addEventListener":"addEventListener";return function Ze(){var w=[];if(typeof window<"u"){var H=window;(!H.customElements||H.Element&&(!H.Element.prototype.closest||!H.Element.prototype.matches||!H.Element.prototype.remove||!H.Element.prototype.getRootNode))&&w.push(C.e(7278).then(C.t.bind(C,2190,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||H.NodeList&&!H.NodeList.prototype.forEach||!H.fetch||!function(){try{var P=new URL("b","http://a");return P.pathname="c%20d","http://a/c%20d"===P.href&&P.searchParams}catch{return!1}}()||typeof WeakMap>"u")&&w.push(C.e(9329).then(C.t.bind(C,7783,23)))}return Promise.all(w)}().then(()=>Le(P,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:ke.er,jmp:dt=>oe.runOutsideAngular(dt),ael(dt,vr,ai,W){dt[Te](vr,ai,W)},rel(dt,vr,ai,W){dt.removeEventListener(vr,ai,W)}}))}};let Hn=(()=>{var w;class H{static forRoot(P={}){return{ngModule:H,providers:[{provide:ke.sR,useValue:P},{provide:c.hnV,useFactory:ct,multi:!0,deps:[ke.sR,ae.qQ,c.SKi]},ke.Yq,(0,ke.YV)()]}}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(H,"\u0275mod",c.$C({type:w})),(0,h.A)(H,"\u0275inj",c.G2t({providers:[fe,je],imports:[ae.MD]})),H})()},2214:(Pn,It,C)=>{"use strict";C.d(It,{Dk:()=>h.Dk,KO:()=>h.KO,Sx:()=>h.Sx,Wp:()=>h.Wp});var h=C(7852);(0,h.KO)("firebase","10.12.2","app")},2820:(Pn,It,C)=>{"use strict";C.d(It,{$P:()=>xt,sN:()=>Tt,eS:()=>Dt});var h=C(467),c=C(4438),Z=C(2771),ke=C(8359),$=C(1413),he=C(3236),ae=C(1985),Xe=C(9974),tt=C(4360),Se=C(8750),et=C(1584);var Ye=C(5558);class at{constructor(){this.subject=new Z.m(1),this.subscriptions=new ke.yU}doFilter(Ie){this.subject.next(Ie)}dispose(){this.subscriptions.unsubscribe()}notEmpty(Ie,Ze){this.subscriptions.add(this.subject.subscribe(_e=>{if(_e[Ie]){const $e=_e[Ie].currentValue;null!=$e&&Ze($e)}}))}has(Ie,Ze){this.subscriptions.add(this.subject.subscribe(_e=>{_e[Ie]&&Ze(_e[Ie].currentValue)}))}notFirst(Ie,Ze){this.subscriptions.add(this.subject.subscribe(_e=>{_e[Ie]&&!_e[Ie].isFirstChange()&&Ze(_e[Ie].currentValue)}))}notFirstAndEmpty(Ie,Ze){this.subscriptions.add(this.subject.subscribe(_e=>{if(_e[Ie]&&!_e[Ie].isFirstChange()){const $e=_e[Ie].currentValue;null!=$e&&Ze($e)}}))}}const mt=new c.nKC("NGX_ECHARTS_CONFIG");let xt=(()=>{var At;class Ie{constructor(_e,$e,Le){this.el=$e,this.ngZone=Le,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new c.bkB,this.optionsError=new c.bkB,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartHighlight=this.createLazyEvent("highlight"),this.chartDownplay=this.createLazyEvent("downplay"),this.chartSelectChanged=this.createLazyEvent("selectchanged"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendLegendSelectAll=this.createLazyEvent("legendselectall"),this.chartLegendLegendInverseSelect=this.createLazyEvent("legendinverseselect"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartGraphRoam=this.createLazyEvent("graphroam"),this.chartGeoRoam=this.createLazyEvent("georoam"),this.chartTreeRoam=this.createLazyEvent("treeroam"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartGeoSelectChanged=this.createLazyEvent("geoselectchanged"),this.chartGeoSelected=this.createLazyEvent("geoselected"),this.chartGeoUnselected=this.createLazyEvent("geounselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartGlobalCursorTaken=this.createLazyEvent("globalcursortaken"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new Z.m(1),this.resize$=new $.B,this.changeFilter=new at,this.resizeObFired=!1,this.echarts=_e.echarts,this.theme=_e.theme||null}ngOnChanges(_e){this.changeFilter.doFilter(_e)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function it(At,Ie=he.E,Ze){const _e=(0,et.O)(At,Ie);return function be(At,Ie){return(0,Xe.N)((Ze,_e)=>{const{leading:$e=!0,trailing:Le=!1}=null!=Ie?Ie:{};let Oe=!1,Ct=null,kt=null,Cn=!1;const Et=()=>{null==kt||kt.unsubscribe(),kt=null,Le&&(vt(),Cn&&_e.complete())},st=()=>{kt=null,Cn&&_e.complete()},cn=Re=>kt=(0,Se.Tg)(At(Re)).subscribe((0,tt._)(_e,Et,st)),vt=()=>{if(Oe){Oe=!1;const Re=Ct;Ct=null,_e.next(Re),!Cn&&cn(Re)}};Ze.subscribe((0,tt._)(_e,Re=>{Oe=!0,Ct=Re,(!kt||kt.closed)&&($e?vt():cn(Re))},()=>{Cn=!0,(!(Le&&Oe&&kt)||kt.closed)&&_e.complete()}))})}(()=>_e,Ze)}(100,he.E,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(_e=>{for(const $e of _e)$e.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",_e=>this.onOptionsChange(_e)),this.changeFilter.notFirstAndEmpty("merge",_e=>this.setOption(_e)),this.changeFilter.has("loading",_e=>this.toggleLoading(!!_e)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(_e){this.chart?_e?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe($e=>_e?$e.showLoading(this.loadingType,this.loadingOpts):$e.hideLoading())}setOption(_e,$e){if(this.chart)try{this.chart.setOption(_e,$e)}catch(Le){console.error(Le),this.optionsError.emit(Le)}}refreshChart(){var _e=this;return(0,h.A)(function*(){_e.dispose(),yield _e.initChart()})()}createChart(){const _e=this.el.nativeElement;if(window&&window.getComputedStyle){const $e=window.getComputedStyle(_e,null).getPropertyValue("height");(!$e||"0px"===$e)&&(!_e.style.height||"0px"===_e.style.height)&&(_e.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:Le})=>Le(_e,this.theme,this.initOpts)))}initChart(){var _e=this;return(0,h.A)(function*(){yield _e.onOptionsChange(_e.options),_e.merge&&_e.chart&&_e.setOption(_e.merge)})()}onOptionsChange(_e){var $e=this;return(0,h.A)(function*(){_e&&($e.chart||($e.chart=yield $e.createChart(),$e.chart$.next($e.chart),$e.chartInit.emit($e.chart)),$e.setOption($e.options,!0))})()}createLazyEvent(_e){return this.chartInit.pipe((0,Ye.n)($e=>new ae.c(Le=>($e.on(_e,Oe=>this.ngZone.run(()=>Le.next(Oe))),()=>{this.chart&&(this.chart.isDisposed()||$e.off(_e))}))))}}return(At=Ie).\u0275fac=function(_e){return new(_e||At)(c.rXU(mt),c.rXU(c.aKT),c.rXU(c.SKi))},At.\u0275dir=c.FsC({type:At,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],standalone:!0,features:[c.OA$]}),Ie})();const Dt=(At={})=>({provide:mt,useFactory:()=>({...At,echarts:()=>C.e(9697).then(C.bind(C,9697))})}),zt=At=>({provide:mt,useValue:At});let Tt=(()=>{var At;class Ie{static forRoot(_e){return{ngModule:Ie,providers:[zt(_e)]}}static forChild(){return{ngModule:Ie}}}return(At=Ie).\u0275fac=function(_e){return new(_e||At)},At.\u0275mod=c.$C({type:At}),At.\u0275inj=c.G2t({}),Ie})()},7616:(Pn,It,C)=>{"use strict";C.d(It,{E:()=>Ie,n:()=>Ze});var h=C(4438),c=C(177);const Z=["flamegraph-node",""];function ke(_e,$e){if(1&_e){const Le=h.RV6();h.j41(0,"div",2)(1,"div",3),h.EFF(2),h.k0s(),h.j41(3,"div",2),h.qSk(),h.j41(4,"svg",4)(5,"g",5),h.bIt("click",function(){const Ct=h.eBV(Le).$implicit,kt=h.XpG();return h.Njj(kt.frameClick.emit(Ct.original))})("mouseOverZoneless",function(){const Ct=h.eBV(Le).$implicit,kt=h.XpG();return h.Njj(kt.frameMouseEnter.emit(Ct.original))})("mouseLeaveZoneless",function(){const Ct=h.eBV(Le).$implicit,kt=h.XpG();return h.Njj(kt.frameMouseLeave.emit(Ct.original))})("zoom",function(){const Ct=h.eBV(Le).$implicit,kt=h.XpG();return h.Njj(kt.zoom.emit(Ct))}),h.k0s()()()()}if(2&_e){const Le=$e.$implicit,Oe=h.XpG();h.xc7("position","absolute")("transform","translate("+Oe.getLeft(Le)+"px,"+Oe.getTop(Le)+"px)")("height",Oe.levelHeight,"px"),h.AVh("hide-bar",!(void 0===Oe.minimumBarSize||Oe.getWidth(Le)>Oe.minimumBarSize)),h.R7$(),h.xc7("width",Oe.getWidth(Le),"px"),h.R7$(),h.SpI(" ",Le.label," "),h.R7$(),h.xc7("transform","scaleX("+Oe.getWidth(Le)/Oe.width+")")("height",Oe.levelHeight,"px"),h.R7$(2),h.Y8G("height",Oe.levelHeight)("navigable",Le.navigable)("color",Le.color)}}function $(_e,$e){if(1&_e){const Le=h.RV6();h.j41(0,"ngx-flamegraph-graph",1),h.bIt("frameClick",function(Ct){h.eBV(Le);const kt=h.XpG();return h.Njj(kt.frameClick.emit(Ct))})("frameMouseEnter",function(Ct){h.eBV(Le);const kt=h.XpG();return h.Njj(kt.onFrameMouseEnter(Ct))})("frameMouseLeave",function(Ct){h.eBV(Le);const kt=h.XpG();return h.Njj(kt.onFrameMouseLeave(Ct))})("zoom",function(Ct){h.eBV(Le);const kt=h.XpG();return h.Njj(kt.onZoom(Ct))}),h.k0s()}if(2&_e){const Le=h.XpG();h.xc7("height",Le.depth*Le.levelHeight,"px")("width",Le.width,"px"),h.Y8G("layout",Le.siblingLayout)("data",Le.entries)("depth",Le.depth)("levelHeight",Le.levelHeight)("width",Le.width)("minimumBarSize",Le.minimumBarSize)}}const he=_e=>_e.reduce(($e,Le)=>Math.max($e,Le.value,he(Le.children||[])),-1/0),ae=([_e,$e],Le)=>_e+($e-_e)*Le,Xe=(_e,$e,Le,Oe,Ct=null,kt=0,Cn=1,Et=0)=>{const st=[];let cn=0;_e.forEach(Re=>{cn+=Re.value});const vt=[];return _e.forEach(Re=>{var G,X,ce;let ue=Cn/_e.length;"relative"===$e&&(ue=Re.value/cn*Cn||0);const Ee=Math.min(Re.value/Le,1),Ve=Re.color||`hsl(${null!==(G=ae(Oe.hue,Ee))&&void 0!==G?G:0}, ${null!==(X=ae(Oe.saturation,Ee))&&void 0!==X?X:80}%, ${null!==(ce=ae(Oe.lightness,Ee))&&void 0!==ce?ce:0}%)`,fn={label:Re.label,value:Re.value,siblings:vt,color:Ve,widthRatio:ue,originalWidthRatio:ue,originalLeftRatio:kt,leftRatio:kt,navigable:!1,rowNumber:Et,original:Re,children:[],parent:Ct};Ct&&Ct.children.push(fn);const xn=Xe(Re.children||[],$e,Le,Oe,fn,kt,ue,Et+1);vt.push(fn),st.push(fn,...xn),kt+=ue}),st},tt=_e=>{if(!_e||!_e.length)return 0;let $e=0;for(const Le of _e)$e=Math.max(1+tt(Le.children),$e);return $e},et=(_e,$e)=>{$e.widthRatio=0,$e.leftRatio=_e,$e.children.forEach(Le=>et(_e,Le))},it=_e=>{const $e=_e.siblings.indexOf(_e);for(let Le=0;Le<$e;Le++)_e.siblings[Le].widthRatio=0,_e.siblings[Le].leftRatio=0,_e.siblings[Le].children.forEach(et.bind(null,0));for(let Le=$e+1;Le<_e.siblings.length;Le++)_e.siblings[Le].widthRatio=0,_e.siblings[Le].leftRatio=1,_e.siblings[Le].children.forEach(et.bind(null,1))},at=(_e,$e,Le=0,Oe=1)=>{let Ct=0;_e.forEach(kt=>{Ct+=kt.value}),_e.forEach(kt=>{let Cn=kt.value/Ct*Oe;"equal"===$e&&(Cn=Oe/_e.length),kt.widthRatio=Cn,kt.leftRatio=Le,at(kt.children,$e,Le,Cn),Le+=Cn})},mt=_e=>{_e.navigable=!1,_e.leftRatio=_e.originalLeftRatio,_e.widthRatio=_e.originalWidthRatio,_e.children.forEach(mt)},Dt={hue:[50,0],saturation:[80,80],lightness:[55,60]};let zt=(()=>{class _e{constructor(Le,Oe,Ct){this._ngZone=Le,this._element=Oe,this._renderer=Ct,this.navigable=!1,this.zoom=new h.bkB,this.mouseOverZoneless=new h.bkB,this.mouseLeaveZoneless=new h.bkB}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this.mouseOverTeardownFn=this._renderer.listen(this._element.nativeElement,"mouseover",Le=>this.mouseOverZoneless.emit(Le)),this.mouseLeaveTeardownFn=this._renderer.listen(this._element.nativeElement,"mouseleave",Le=>this.mouseLeaveZoneless.emit(Le))})}ngOnDestroy(){this.mouseOverTeardownFn(),this.mouseLeaveTeardownFn()}}return _e.\u0275fac=function(Le){return new(Le||_e)(h.rXU(h.SKi),h.rXU(h.aKT),h.rXU(h.sFG))},_e.\u0275cmp=h.VBU({type:_e,selectors:[["","flamegraph-node",""]],inputs:{height:"height",navigable:"navigable",color:"color"},outputs:{zoom:"zoom",mouseOverZoneless:"mouseOverZoneless",mouseLeaveZoneless:"mouseLeaveZoneless"},attrs:Z,decls:1,vars:4,consts:[["stroke","white","stroke-width","1px","pointer-events","all","width","100%","rx","1","ry","1",1,"ngx-fg-rect",3,"dblclick"]],template:function(Le,Oe){1&Le&&(h.qSk(),h.j41(0,"rect",0),h.bIt("dblclick",function(){return Oe.zoom.emit()}),h.k0s()),2&Le&&(h.AVh("ngx-fg-navigable",Oe.navigable),h.BMQ("height",Oe.height)("fill",Oe.color))},styles:[".ngx-fg-navigable{opacity:.5}\n"],encapsulation:2,changeDetection:0}),_e})(),Tt=(()=>{class _e{constructor(){this.selectedData=[],this.entries=[],this.frameClick=new h.bkB,this.frameMouseEnter=new h.bkB,this.frameMouseLeave=new h.bkB,this.zoom=new h.bkB}set data(Le){this.entries=Le}get height(){return this.levelHeight*this.depth}getTop(Le){return Le.rowNumber*this.levelHeight}getLeft(Le){return Le.leftRatio*this.width}getWidth(Le){return Le.widthRatio*this.width||0}}return _e.\u0275fac=function(Le){return new(Le||_e)},_e.\u0275cmp=h.VBU({type:_e,selectors:[["ngx-flamegraph-graph"]],inputs:{width:"width",levelHeight:"levelHeight",layout:"layout",depth:"depth",minimumBarSize:"minimumBarSize",data:"data"},outputs:{frameClick:"frameClick",frameMouseEnter:"frameMouseEnter",frameMouseLeave:"frameMouseLeave",zoom:"zoom"},decls:2,vars:3,consts:[[1,"ngx-fg-chart-wrapper"],["class","svg-wrapper",3,"hide-bar","position","transform","height",4,"ngFor","ngForOf"],[1,"svg-wrapper"],[1,"bar-text"],["width","100%","height","100%",1,"ngx-fg-svg"],["flamegraph-node","",1,"ngx-fg-svg-g",3,"click","mouseOverZoneless","mouseLeaveZoneless","zoom","height","navigable","color"]],template:function(Le,Oe){1&Le&&(h.j41(0,"div",0),h.DNE(1,ke,6,18,"div",1),h.k0s()),2&Le&&(h.AVh("ngx-fg-grayscale",Oe.selectedData&&Oe.selectedData.length),h.R7$(),h.Y8G("ngForOf",Oe.entries))},dependencies:[c.Sq,zt],styles:[".ngx-fg-svg{pointer-events:none}ngx-flamegraph-graph{position:absolute;display:block;overflow:hidden}.svg-wrapper{width:100%;transform-origin:left}.svg-wrapper{transition:transform .333s ease-in-out,opacity .333s ease-in-out}.bar-text{position:absolute;z-index:1;overflow:hidden;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#fff;padding:5px;font-family:sans-serif;font-size:80%}.hide-bar{opacity:0;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),_e})();const At=typeof ResizeObserver<"u";let Ie=(()=>{class _e{constructor(Le,Oe,Ct){this._el=Le,this.cdr=Oe,this._ngZone=Ct,this.entries=[],this.depth=0,this.frameClick=new h.bkB,this.frameMouseEnter=new h.bkB,this.frameMouseLeave=new h.bkB,this.siblingLayout="relative",this.width=null,this.levelHeight=25}set config(Le){var Oe,Ct;this._data=Le.data,this._colors=null!==(Oe=Le.color)&&void 0!==Oe?Oe:Dt,this.minimumBarSize=null!==(Ct=Le.minimumBarSize)&&void 0!==Ct?Ct:2,this._refresh()}get hostStyles(){return`height: ${this.depth*this.levelHeight}px `}ngOnInit(){var Le;const Oe=null===(Le=this._el.nativeElement)||void 0===Le?void 0:Le.parentElement;Oe&&null===this.width&&At&&(this._resizeObserver=new ResizeObserver(()=>this._ngZone.run(()=>this._onParentResize())),this._resizeObserver.observe(Oe))}ngOnDestroy(){var Le;const Oe=null===(Le=this._el.nativeElement)||void 0===Le?void 0:Le.parentElement;Oe&&this._resizeObserver&&At&&this._resizeObserver.unobserve(Oe)}_onParentResize(){var Le;const Oe=null===(Le=this._el.nativeElement)||void 0===Le?void 0:Le.parentElement;Oe&&(this.width=Oe.clientWidth,this.cdr.markForCheck())}_refresh(){const{hue:Le,saturation:Oe,lightness:Ct}=this._colors,kt={hue:Array.isArray(Le)?Le:[Le,Le],saturation:Array.isArray(Oe)?Oe:[Oe,Oe],lightness:Array.isArray(Ct)?Ct:[Ct,Ct]};this.entries=Xe(this._data,this.siblingLayout,he(this._data),kt),this.depth=tt(this._data)}onZoom(Le){Le.navigable&&mt(Le),((_e,$e)=>{let Le=_e;for(;Le;)Le.widthRatio=1,Le.leftRatio=0,it(Le),Le=Le.parent,Le&&(Le.navigable=!0);at(_e.children,$e)})(Le,this.siblingLayout)}onFrameMouseEnter(Le){0!==this.frameMouseEnter.observers.length&&this._ngZone.run(()=>this.frameMouseEnter.emit(Le))}onFrameMouseLeave(Le){0!==this.frameMouseLeave.observers.length&&this._ngZone.run(()=>this.frameMouseLeave.emit(Le))}}return _e.\u0275fac=function(Le){return new(Le||_e)(h.rXU(h.aKT),h.rXU(h.gRc),h.rXU(h.SKi))},_e.\u0275cmp=h.VBU({type:_e,selectors:[["ngx-flamegraph"]],hostVars:1,hostBindings:function(Le,Oe){2&Le&&h.BMQ("style",Oe.hostStyles,h.$dS)},inputs:{siblingLayout:"siblingLayout",width:"width",levelHeight:"levelHeight",config:"config"},outputs:{frameClick:"frameClick",frameMouseEnter:"frameMouseEnter",frameMouseLeave:"frameMouseLeave"},decls:1,vars:1,consts:[[3,"layout","data","depth","levelHeight","width","height","minimumBarSize","frameClick","frameMouseEnter","frameMouseLeave","zoom",4,"ngIf"],[3,"frameClick","frameMouseEnter","frameMouseLeave","zoom","layout","data","depth","levelHeight","width","minimumBarSize"]],template:function(Le,Oe){1&Le&&h.DNE(0,$,1,10,"ngx-flamegraph-graph",0),2&Le&&h.Y8G("ngIf",null!==Oe.width)},dependencies:[c.bT,Tt],styles:["ngx-flamegraph{display:block}\n"],encapsulation:2,changeDetection:0}),_e})(),Ze=(()=>{class _e{}return _e.\u0275fac=function(Le){return new(Le||_e)},_e.\u0275mod=h.$C({type:_e}),_e.\u0275inj=h.G2t({imports:[c.MD]}),_e})()},9549:(Pn,It,C)=>{"use strict";C.d(It,{NN:()=>mo,y2:()=>bo});var h=C(467),c=C(177),Z=C(4438),ke=C(1413),$=C(7786),he=C(7673),ae=C(1584),Xe=C(5558),tt=C(3703),Se=C(3294),be=C(2771),et=C(8750),it=C(7707),Ye=C(9974);function mt(Pt,ge,...fe){if(!0===ge)return void Pt();if(!1===ge)return;const K=new it.Ms({next:()=>{K.unsubscribe(),Pt()}});return(0,et.Tg)(ge(...fe)).subscribe(K)}var Dt=C(9172),zt=C(6354),Tt=C(6977);function _e(Pt,ge,fe){if("function"==typeof Pt?Pt===ge:Pt.has(ge))return arguments.length<3?ge:fe;throw new TypeError("Private element is not present on this object")}C(1594);var $e=C(9842);let Oe={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function Ct(Pt){Oe=Pt}const kt=/[&<>"']/,Cn=new RegExp(kt.source,"g"),Et=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,st=new RegExp(Et.source,"g"),cn={"&":"&","<":"<",">":">",'"':""","'":"'"},vt=Pt=>cn[Pt];function Re(Pt,ge){if(ge){if(kt.test(Pt))return Pt.replace(Cn,vt)}else if(Et.test(Pt))return Pt.replace(st,vt);return Pt}const G=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,ce=/(^|[^\[])\^/g;function ue(Pt,ge){let fe="string"==typeof Pt?Pt:Pt.source;ge=ge||"";const K={replace:(je,Be)=>{let ct="string"==typeof Be?Be:Be.source;return ct=ct.replace(ce,"$1"),fe=fe.replace(je,ct),K},getRegex:()=>new RegExp(fe,ge)};return K}function Ee(Pt){try{Pt=encodeURI(Pt).replace(/%25/g,"%")}catch{return null}return Pt}const Ve={exec:()=>null};function ut(Pt,ge){const K=Pt.replace(/\|/g,(Be,ct,Kt)=>{let Dn=!1,Hn=ct;for(;--Hn>=0&&"\\"===Kt[Hn];)Dn=!Dn;return Dn?"|":" |"}).split(/ \|/);let je=0;if(K[0].trim()||K.shift(),K.length>0&&!K[K.length-1].trim()&&K.pop(),ge)if(K.length>ge)K.splice(ge);else for(;K.length0)return{type:"space",raw:fe[0]}}code(ge){const fe=this.rules.block.code.exec(ge);if(fe){const K=fe[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:fe[0],codeBlockStyle:"indented",text:this.options.pedantic?K:fn(K,"\n")}}}fences(ge){const fe=this.rules.block.fences.exec(ge);if(fe){const K=fe[0],je=function Je(Pt,ge){const fe=Pt.match(/^(\s+)(?:```)/);if(null===fe)return ge;const K=fe[1];return ge.split("\n").map(je=>{const Be=je.match(/^\s+/);if(null===Be)return je;const[ct]=Be;return ct.length>=K.length?je.slice(K.length):je}).join("\n")}(K,fe[3]||"");return{type:"code",raw:K,lang:fe[2]?fe[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):fe[2],text:je}}}heading(ge){const fe=this.rules.block.heading.exec(ge);if(fe){let K=fe[2].trim();if(/#$/.test(K)){const je=fn(K,"#");(this.options.pedantic||!je||/ $/.test(je))&&(K=je.trim())}return{type:"heading",raw:fe[0],depth:fe[1].length,text:K,tokens:this.lexer.inline(K)}}}hr(ge){const fe=this.rules.block.hr.exec(ge);if(fe)return{type:"hr",raw:fe[0]}}blockquote(ge){const fe=this.rules.block.blockquote.exec(ge);if(fe){let K=fe[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1");K=fn(K.replace(/^ *>[ \t]?/gm,""),"\n");const je=this.lexer.state.top;this.lexer.state.top=!0;const Be=this.lexer.blockTokens(K);return this.lexer.state.top=je,{type:"blockquote",raw:fe[0],tokens:Be,text:K}}}list(ge){let fe=this.rules.block.list.exec(ge);if(fe){let K=fe[1].trim();const je=K.length>1,Be={type:"list",raw:"",ordered:je,start:je?+K.slice(0,-1):"",loose:!1,items:[]};K=je?`\\d{1,9}\\${K.slice(-1)}`:`\\${K}`,this.options.pedantic&&(K=je?K:"[*+-]");const ct=new RegExp(`^( {0,3}${K})((?:[\t ][^\\n]*)?(?:\\n|$))`);let Kt="",Dn="",Hn=!1;for(;ge;){let w=!1;if(!(fe=ct.exec(ge))||this.rules.block.hr.test(ge))break;Kt=fe[0],ge=ge.substring(Kt.length);let H=fe[2].split("\n",1)[0].replace(/^\t+/,ai=>" ".repeat(3*ai.length)),oe=ge.split("\n",1)[0],P=0;this.options.pedantic?(P=2,Dn=H.trimStart()):(P=fe[2].search(/[^ ]/),P=P>4?1:P,Dn=H.slice(P),P+=fe[1].length);let Te=!1;if(!H&&/^ *$/.test(oe)&&(Kt+=oe+"\n",ge=ge.substring(oe.length+1),w=!0),!w){const ai=new RegExp(`^ {0,${Math.min(3,P-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),W=new RegExp(`^ {0,${Math.min(3,P-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),ye=new RegExp(`^ {0,${Math.min(3,P-1)}}(?:\`\`\`|~~~)`),Fe=new RegExp(`^ {0,${Math.min(3,P-1)}}#`);for(;ge;){const ot=ge.split("\n",1)[0];if(oe=ot,this.options.pedantic&&(oe=oe.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),ye.test(oe)||Fe.test(oe)||ai.test(oe)||W.test(ge))break;if(oe.search(/[^ ]/)>=P||!oe.trim())Dn+="\n"+oe.slice(P);else{if(Te||H.search(/[^ ]/)>=4||ye.test(H)||Fe.test(H)||W.test(H))break;Dn+="\n"+oe}!Te&&!oe.trim()&&(Te=!0),Kt+=ot+"\n",ge=ge.substring(ot.length+1),H=oe.slice(P)}}Be.loose||(Hn?Be.loose=!0:/\n *\n *$/.test(Kt)&&(Hn=!0));let vr,dt=null;this.options.gfm&&(dt=/^\[[ xX]\] /.exec(Dn),dt&&(vr="[ ] "!==dt[0],Dn=Dn.replace(/^\[[ xX]\] +/,""))),Be.items.push({type:"list_item",raw:Kt,task:!!dt,checked:vr,loose:!1,text:Dn,tokens:[]}),Be.raw+=Kt}Be.items[Be.items.length-1].raw=Kt.trimEnd(),Be.items[Be.items.length-1].text=Dn.trimEnd(),Be.raw=Be.raw.trimEnd();for(let w=0;w"space"===P.type),oe=H.length>0&&H.some(P=>/\n.*\n/.test(P.raw));Be.loose=oe}if(Be.loose)for(let w=0;w$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",Be=fe[3]?fe[3].substring(1,fe[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):fe[3];return{type:"def",tag:K,raw:fe[0],href:je,title:Be}}}table(ge){const fe=this.rules.block.table.exec(ge);if(!fe||!/[:|]/.test(fe[2]))return;const K=ut(fe[1]),je=fe[2].replace(/^\||\| *$/g,"").split("|"),Be=fe[3]&&fe[3].trim()?fe[3].replace(/\n[ \t]*$/,"").split("\n"):[],ct={type:"table",raw:fe[0],header:[],align:[],rows:[]};if(K.length===je.length){for(const Kt of je)/^ *-+: *$/.test(Kt)?ct.align.push("right"):/^ *:-+: *$/.test(Kt)?ct.align.push("center"):/^ *:-+ *$/.test(Kt)?ct.align.push("left"):ct.align.push(null);for(const Kt of K)ct.header.push({text:Kt,tokens:this.lexer.inline(Kt)});for(const Kt of Be)ct.rows.push(ut(Kt,ct.header.length).map(Dn=>({text:Dn,tokens:this.lexer.inline(Dn)})));return ct}}lheading(ge){const fe=this.rules.block.lheading.exec(ge);if(fe)return{type:"heading",raw:fe[0],depth:"="===fe[2].charAt(0)?1:2,text:fe[1],tokens:this.lexer.inline(fe[1])}}paragraph(ge){const fe=this.rules.block.paragraph.exec(ge);if(fe){const K="\n"===fe[1].charAt(fe[1].length-1)?fe[1].slice(0,-1):fe[1];return{type:"paragraph",raw:fe[0],text:K,tokens:this.lexer.inline(K)}}}text(ge){const fe=this.rules.block.text.exec(ge);if(fe)return{type:"text",raw:fe[0],text:fe[0],tokens:this.lexer.inline(fe[0])}}escape(ge){const fe=this.rules.inline.escape.exec(ge);if(fe)return{type:"escape",raw:fe[0],text:Re(fe[1])}}tag(ge){const fe=this.rules.inline.tag.exec(ge);if(fe)return!this.lexer.state.inLink&&/^/i.test(fe[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(fe[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(fe[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:fe[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:fe[0]}}link(ge){const fe=this.rules.inline.link.exec(ge);if(fe){const K=fe[2].trim();if(!this.options.pedantic&&/^$/.test(K))return;const ct=fn(K.slice(0,-1),"\\");if((K.length-ct.length)%2==0)return}else{const ct=function xn(Pt,ge){if(-1===Pt.indexOf(ge[1]))return-1;let fe=0;for(let K=0;K-1){const Dn=(0===fe[0].indexOf("!")?5:4)+fe[1].length+ct;fe[2]=fe[2].substring(0,ct),fe[0]=fe[0].substring(0,Dn).trim(),fe[3]=""}}let je=fe[2],Be="";if(this.options.pedantic){const ct=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(je);ct&&(je=ct[1],Be=ct[3])}else Be=fe[3]?fe[3].slice(1,-1):"";return je=je.trim(),/^$/.test(K)?je.slice(1):je.slice(1,-1)),un(fe,{href:je&&je.replace(this.rules.inline.anyPunctuation,"$1"),title:Be&&Be.replace(this.rules.inline.anyPunctuation,"$1")},fe[0],this.lexer)}}reflink(ge,fe){let K;if((K=this.rules.inline.reflink.exec(ge))||(K=this.rules.inline.nolink.exec(ge))){const Be=fe[(K[2]||K[1]).replace(/\s+/g," ").toLowerCase()];if(!Be){const ct=K[0].charAt(0);return{type:"text",raw:ct,text:ct}}return un(K,Be,K[0],this.lexer)}}emStrong(ge,fe,K=""){let je=this.rules.inline.emStrongLDelim.exec(ge);if(!(!je||je[3]&&K.match(/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10107}-\u{10133}\u{10140}-\u{10178}\u{1018A}\u{1018B}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10858}-\u{10876}\u{10879}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A60}-\u{10A7E}\u{10A80}-\u{10A9F}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F54}\u{10F70}-\u{10F81}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11003}-\u{11037}\u{11052}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11083}-\u{110AF}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{11136}-\u{1113F}\u{11144}\u{11147}\u{11150}-\u{11172}\u{11176}\u{11183}-\u{111B2}\u{111C1}-\u{111C4}\u{111D0}-\u{111DA}\u{111DC}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122B}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112DE}\u{112F0}-\u{112F9}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}\u{11350}\u{1135D}-\u{11361}\u{11400}-\u{11434}\u{11447}-\u{1144A}\u{11450}-\u{11459}\u{1145F}-\u{11461}\u{11480}-\u{114AF}\u{114C4}\u{114C5}\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115AE}\u{115D8}-\u{115DB}\u{11600}-\u{1162F}\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116B8}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11730}-\u{1173B}\u{11740}-\u{11746}\u{11800}-\u{1182B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{1192F}\u{1193F}\u{11941}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D0}\u{119E1}\u{119E3}\u{11A00}\u{11A0B}-\u{11A32}\u{11A3A}\u{11A50}\u{11A5C}-\u{11A89}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2E}\u{11C40}\u{11C50}-\u{11C6C}\u{11C72}-\u{11C8F}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D89}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11F02}\u{11F04}-\u{11F10}\u{11F12}-\u{11F33}\u{11F50}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13441}-\u{13446}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A70}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16B00}-\u{16B2F}\u{16B40}-\u{16B43}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E96}\u{16F00}-\u{16F4A}\u{16F50}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D7FF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1EC71}-\u{1ECAB}\u{1ECAD}-\u{1ECAF}\u{1ECB1}-\u{1ECB4}\u{1ED01}-\u{1ED2D}\u{1ED2F}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10C}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}]/u))&&(!je[1]&&!je[2]||!K||this.rules.inline.punctuation.exec(K))){const ct=[...je[0]].length-1;let Kt,Dn,Hn=ct,w=0;const H="*"===je[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(H.lastIndex=0,fe=fe.slice(-1*ge.length+ct);null!=(je=H.exec(fe));){if(Kt=je[1]||je[2]||je[3]||je[4]||je[5]||je[6],!Kt)continue;if(Dn=[...Kt].length,je[3]||je[4]){Hn+=Dn;continue}if((je[5]||je[6])&&ct%3&&!((ct+Dn)%3)){w+=Dn;continue}if(Hn-=Dn,Hn>0)continue;Dn=Math.min(Dn,Dn+Hn+w);const oe=[...je[0]][0].length,P=ge.slice(0,ct+je.index+oe+Dn);if(Math.min(ct,Dn)%2){const dt=P.slice(1,-1);return{type:"em",raw:P,text:dt,tokens:this.lexer.inlineTokens(dt)}}const Te=P.slice(2,-2);return{type:"strong",raw:P,text:Te,tokens:this.lexer.inlineTokens(Te)}}}}codespan(ge){const fe=this.rules.inline.code.exec(ge);if(fe){let K=fe[2].replace(/\n/g," ");const je=/[^ ]/.test(K),Be=/^ /.test(K)&&/ $/.test(K);return je&&Be&&(K=K.substring(1,K.length-1)),K=Re(K,!0),{type:"codespan",raw:fe[0],text:K}}}br(ge){const fe=this.rules.inline.br.exec(ge);if(fe)return{type:"br",raw:fe[0]}}del(ge){const fe=this.rules.inline.del.exec(ge);if(fe)return{type:"del",raw:fe[0],text:fe[2],tokens:this.lexer.inlineTokens(fe[2])}}autolink(ge){const fe=this.rules.inline.autolink.exec(ge);if(fe){let K,je;return"@"===fe[2]?(K=Re(fe[1]),je="mailto:"+K):(K=Re(fe[1]),je=K),{type:"link",raw:fe[0],text:K,href:je,tokens:[{type:"text",raw:K,text:K}]}}}url(ge){let fe;if(fe=this.rules.inline.url.exec(ge)){let Be,ct;if("@"===fe[2])Be=Re(fe[0]),ct="mailto:"+Be;else{let Kt;do{var K,je;Kt=fe[0],fe[0]=null!==(K=null===(je=this.rules.inline._backpedal.exec(fe[0]))||void 0===je?void 0:je[0])&&void 0!==K?K:""}while(Kt!==fe[0]);Be=Re(fe[0]),ct="www."===fe[1]?"http://"+fe[0]:fe[0]}return{type:"link",raw:fe[0],text:Be,href:ct,tokens:[{type:"text",raw:Be,text:Be}]}}}inlineText(ge){const fe=this.rules.inline.text.exec(ge);if(fe){let K;return K=this.lexer.state.inRawBlock?fe[0]:Re(fe[0]),{type:"text",raw:fe[0],text:K}}}}const gr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,dr=/(?:[*+-]|\d{1,9}[.)])/,nt=ue(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,dr).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Lt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,yn=/(?!\s*\])(?:\\.|[^\[\]\\])+/,En=ue(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",yn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Fr=ue(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,dr).getRegex(),Vn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",$n=/|$))/,In=ue("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",$n).replace("tag",Vn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),on=ue(Lt).replace("hr",gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Vn).getRegex(),br={blockquote:ue(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",on).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:En,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:gr,html:In,lheading:nt,list:Fr,newline:/^(?: *(?:\n|$))+/,paragraph:on,table:Ve,text:/^[^\n]+/},Vr=ue("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Vn).getRegex(),rr={...br,table:Vr,paragraph:ue(Lt).replace("hr",gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Vr).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Vn).getRegex()},Mr={...br,html:ue("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",$n).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ve,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ue(Lt).replace("hr",gr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",nt).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},sr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Tr=/^( {2,}|\\)\n(?!\s*$)/,Br="\\p{P}\\p{S}",ar=ue(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Br).getRegex(),li=ue(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Br).getRegex(),Di=ue("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Br).getRegex(),Zr=ue("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Br).getRegex(),ve=ue(/\\([punct])/,"gu").replace(/punct/g,Br).getRegex(),rt=ue(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Nt=ue($n).replace("(?:--\x3e|$)","--\x3e").getRegex(),pt=ue("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Nt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),de=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ae=ue(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",de).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ge=ue(/^!?\[(label)\]\[(ref)\]/).replace("label",de).replace("ref",yn).getRegex(),$t=ue(/^!?\[(ref)\](?:\[\])?/).replace("ref",yn).getRegex(),gt={_backpedal:Ve,anyPunctuation:ve,autolink:rt,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:Tr,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Ve,emStrongLDelim:li,emStrongRDelimAst:Di,emStrongRDelimUnd:Zr,escape:sr,link:Ae,nolink:$t,punctuation:ar,reflink:Ge,reflinkSearch:ue("reflink|nolink(?!\\()","g").replace("reflink",Ge).replace("nolink",$t).getRegex(),tag:pt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\Dn+" ".repeat(Hn.length));ge;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(Kt=>!!(K=Kt.call({lexer:this},ge,fe))&&(ge=ge.substring(K.raw.length),fe.push(K),!0)))){if(K=this.tokenizer.space(ge)){ge=ge.substring(K.raw.length),1===K.raw.length&&fe.length>0?fe[fe.length-1].raw+="\n":fe.push(K);continue}if(K=this.tokenizer.code(ge)){ge=ge.substring(K.raw.length),je=fe[fe.length-1],!je||"paragraph"!==je.type&&"text"!==je.type?fe.push(K):(je.raw+="\n"+K.raw,je.text+="\n"+K.text,this.inlineQueue[this.inlineQueue.length-1].src=je.text);continue}if(K=this.tokenizer.fences(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.heading(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.hr(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.blockquote(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.list(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.html(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.def(ge)){ge=ge.substring(K.raw.length),je=fe[fe.length-1],!je||"paragraph"!==je.type&&"text"!==je.type?this.tokens.links[K.tag]||(this.tokens.links[K.tag]={href:K.href,title:K.title}):(je.raw+="\n"+K.raw,je.text+="\n"+K.raw,this.inlineQueue[this.inlineQueue.length-1].src=je.text);continue}if(K=this.tokenizer.table(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.lheading(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(Be=ge,this.options.extensions&&this.options.extensions.startBlock){let Kt=1/0;const Dn=ge.slice(1);let Hn;this.options.extensions.startBlock.forEach(w=>{Hn=w.call({lexer:this},Dn),"number"==typeof Hn&&Hn>=0&&(Kt=Math.min(Kt,Hn))}),Kt<1/0&&Kt>=0&&(Be=ge.substring(0,Kt+1))}if(this.state.top&&(K=this.tokenizer.paragraph(Be))){je=fe[fe.length-1],ct&&"paragraph"===je.type?(je.raw+="\n"+K.raw,je.text+="\n"+K.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=je.text):fe.push(K),ct=Be.length!==ge.length,ge=ge.substring(K.raw.length);continue}if(K=this.tokenizer.text(ge)){ge=ge.substring(K.raw.length),je=fe[fe.length-1],je&&"text"===je.type?(je.raw+="\n"+K.raw,je.text+="\n"+K.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=je.text):fe.push(K);continue}if(ge){const Kt="Infinite loop on byte: "+ge.charCodeAt(0);if(this.options.silent){console.error(Kt);break}throw new Error(Kt)}}return this.state.top=!0,fe}inline(ge,fe=[]){return this.inlineQueue.push({src:ge,tokens:fe}),fe}inlineTokens(ge,fe=[]){let K,je,Be,Kt,Dn,Hn,ct=ge;if(this.tokens.links){const w=Object.keys(this.tokens.links);if(w.length>0)for(;null!=(Kt=this.tokenizer.rules.inline.reflinkSearch.exec(ct));)w.includes(Kt[0].slice(Kt[0].lastIndexOf("[")+1,-1))&&(ct=ct.slice(0,Kt.index)+"["+"a".repeat(Kt[0].length-2)+"]"+ct.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(Kt=this.tokenizer.rules.inline.blockSkip.exec(ct));)ct=ct.slice(0,Kt.index)+"["+"a".repeat(Kt[0].length-2)+"]"+ct.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(Kt=this.tokenizer.rules.inline.anyPunctuation.exec(ct));)ct=ct.slice(0,Kt.index)+"++"+ct.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;ge;)if(Dn||(Hn=""),Dn=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(w=>!!(K=w.call({lexer:this},ge,fe))&&(ge=ge.substring(K.raw.length),fe.push(K),!0)))){if(K=this.tokenizer.escape(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.tag(ge)){ge=ge.substring(K.raw.length),je=fe[fe.length-1],je&&"text"===K.type&&"text"===je.type?(je.raw+=K.raw,je.text+=K.text):fe.push(K);continue}if(K=this.tokenizer.link(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.reflink(ge,this.tokens.links)){ge=ge.substring(K.raw.length),je=fe[fe.length-1],je&&"text"===K.type&&"text"===je.type?(je.raw+=K.raw,je.text+=K.text):fe.push(K);continue}if(K=this.tokenizer.emStrong(ge,ct,Hn)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.codespan(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.br(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.del(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.autolink(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(!this.state.inLink&&(K=this.tokenizer.url(ge))){ge=ge.substring(K.raw.length),fe.push(K);continue}if(Be=ge,this.options.extensions&&this.options.extensions.startInline){let w=1/0;const H=ge.slice(1);let oe;this.options.extensions.startInline.forEach(P=>{oe=P.call({lexer:this},H),"number"==typeof oe&&oe>=0&&(w=Math.min(w,oe))}),w<1/0&&w>=0&&(Be=ge.substring(0,w+1))}if(K=this.tokenizer.inlineText(Be)){ge=ge.substring(K.raw.length),"_"!==K.raw.slice(-1)&&(Hn=K.raw.slice(-1)),Dn=!0,je=fe[fe.length-1],je&&"text"===je.type?(je.raw+=K.raw,je.text+=K.text):fe.push(K);continue}if(ge){const w="Infinite loop on byte: "+ge.charCodeAt(0);if(this.options.silent){console.error(w);break}throw new Error(w)}}return fe}}class wn{constructor(ge){(0,$e.A)(this,"options",void 0),this.options=ge||Oe}code(ge,fe,K){var je;const Be=null===(je=(fe||"").match(/^\S*/))||void 0===je?void 0:je[0];return ge=ge.replace(/\n$/,"")+"\n",Be?'
'+(K?ge:Re(ge,!0))+"
\n":"
"+(K?ge:Re(ge,!0))+"
\n"}blockquote(ge){return`
\n${ge}
\n`}html(ge,fe){return ge}heading(ge,fe,K){return`${ge}\n`}hr(){return"
\n"}list(ge,fe,K){const je=fe?"ol":"ul";return"<"+je+(fe&&1!==K?' start="'+K+'"':"")+">\n"+ge+"\n"}listitem(ge,fe,K){return`
  • ${ge}
  • \n`}checkbox(ge){return"'}paragraph(ge){return`

    ${ge}

    \n`}table(ge,fe){return fe&&(fe=`${fe}`),"\n\n"+ge+"\n"+fe+"
    \n"}tablerow(ge){return`\n${ge}\n`}tablecell(ge,fe){const K=fe.header?"th":"td";return(fe.align?`<${K} align="${fe.align}">`:`<${K}>`)+ge+`\n`}strong(ge){return`${ge}`}em(ge){return`${ge}`}codespan(ge){return`${ge}`}br(){return"
    "}del(ge){return`${ge}`}link(ge,fe,K){const je=Ee(ge);if(null===je)return K;let Be='
    ",Be}image(ge,fe,K){const je=Ee(ge);if(null===je)return K;let Be=`${K}"colon"===(fe=fe.toLowerCase())?":":"#"===fe.charAt(0)?"x"===fe.charAt(1)?String.fromCharCode(parseInt(fe.substring(2),16)):String.fromCharCode(+fe.substring(1)):""));continue}case"code":K+=this.renderer.code(Be.text,Be.lang,!!Be.escaped);continue;case"table":{const ct=Be;let Kt="",Dn="";for(let w=0;w0&&"paragraph"===oe.tokens[0].type?(oe.tokens[0].text=vr+" "+oe.tokens[0].text,oe.tokens[0].tokens&&oe.tokens[0].tokens.length>0&&"text"===oe.tokens[0].tokens[0].type&&(oe.tokens[0].tokens[0].text=vr+" "+oe.tokens[0].tokens[0].text)):oe.tokens.unshift({type:"text",text:vr+" "}):dt+=vr+" "}dt+=this.parse(oe.tokens,Hn),w+=this.renderer.listitem(dt,Te,!!P)}K+=this.renderer.list(w,Kt,Dn);continue}case"html":K+=this.renderer.html(Be.text,Be.block);continue;case"paragraph":K+=this.renderer.paragraph(this.parseInline(Be.tokens));continue;case"text":{let ct=Be,Kt=ct.tokens?this.parseInline(ct.tokens):ct.text;for(;je+1{const je={...K},Be={...this.defaults,...je};!0===this.defaults.async&&!1===je.async&&(Be.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),Be.async=!0);const ct=_e(Ur,this,xi).call(this,!!Be.silent,!!Be.async);if(typeof fe>"u"||null===fe)return ct(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof fe)return ct(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(fe)+", string expected"));if(Be.hooks&&(Be.hooks.options=Be),Be.async)return Promise.resolve(Be.hooks?Be.hooks.preprocess(fe):fe).then(Kt=>Pt(Kt,Be)).then(Kt=>Be.hooks?Be.hooks.processAllTokens(Kt):Kt).then(Kt=>Be.walkTokens?Promise.all(this.walkTokens(Kt,Be.walkTokens)).then(()=>Kt):Kt).then(Kt=>ge(Kt,Be)).then(Kt=>Be.hooks?Be.hooks.postprocess(Kt):Kt).catch(ct);try{Be.hooks&&(fe=Be.hooks.preprocess(fe));let Kt=Pt(fe,Be);Be.hooks&&(Kt=Be.hooks.processAllTokens(Kt)),Be.walkTokens&&this.walkTokens(Kt,Be.walkTokens);let Dn=ge(Kt,Be);return Be.hooks&&(Dn=Be.hooks.postprocess(Dn)),Dn}catch(Kt){return ct(Kt)}}}function xi(Pt,ge){return fe=>{if(fe.message+="\nPlease report this to https://github.com/markedjs/marked.",Pt){const K="

    An error occurred:

    "+Re(fe.message+"",!0)+"
    ";return ge?Promise.resolve(K):K}if(ge)return Promise.reject(fe);throw fe}}const vi=new class oi{constructor(...ge){(function Ze(Pt,ge){(function Ie(Pt,ge){if(ge.has(Pt))throw new TypeError("Cannot initialize the same private elements twice on an object")})(Pt,ge),ge.add(Pt)})(this,Ur),(0,$e.A)(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),(0,$e.A)(this,"options",this.setOptions),(0,$e.A)(this,"parse",_e(Ur,this,Ir).call(this,dn.lex,wr.parse)),(0,$e.A)(this,"parseInline",_e(Ur,this,Ir).call(this,dn.lexInline,wr.parseInline)),(0,$e.A)(this,"Parser",wr),(0,$e.A)(this,"Renderer",wn),(0,$e.A)(this,"TextRenderer",hr),(0,$e.A)(this,"Lexer",dn),(0,$e.A)(this,"Tokenizer",Sn),(0,$e.A)(this,"Hooks",fr),this.use(...ge)}walkTokens(ge,fe){let K=[];for(const Be of ge)switch(K=K.concat(fe.call(this,Be)),Be.type){case"table":{const ct=Be;for(const Kt of ct.header)K=K.concat(this.walkTokens(Kt.tokens,fe));for(const Kt of ct.rows)for(const Dn of Kt)K=K.concat(this.walkTokens(Dn.tokens,fe));break}case"list":K=K.concat(this.walkTokens(Be.items,fe));break;default:{var je;const ct=Be;null!==(je=this.defaults.extensions)&&void 0!==je&&null!==(je=je.childTokens)&&void 0!==je&&je[ct.type]?this.defaults.extensions.childTokens[ct.type].forEach(Kt=>{const Dn=ct[Kt].flat(1/0);K=K.concat(this.walkTokens(Dn,fe))}):ct.tokens&&(K=K.concat(this.walkTokens(ct.tokens,fe)))}}return K}use(...ge){const fe=this.defaults.extensions||{renderers:{},childTokens:{}};return ge.forEach(K=>{const je={...K};if(je.async=this.defaults.async||je.async||!1,K.extensions&&(K.extensions.forEach(Be=>{if(!Be.name)throw new Error("extension name required");if("renderer"in Be){const ct=fe.renderers[Be.name];fe.renderers[Be.name]=ct?function(...Kt){let Dn=Be.renderer.apply(this,Kt);return!1===Dn&&(Dn=ct.apply(this,Kt)),Dn}:Be.renderer}if("tokenizer"in Be){if(!Be.level||"block"!==Be.level&&"inline"!==Be.level)throw new Error("extension level must be 'block' or 'inline'");const ct=fe[Be.level];ct?ct.unshift(Be.tokenizer):fe[Be.level]=[Be.tokenizer],Be.start&&("block"===Be.level?fe.startBlock?fe.startBlock.push(Be.start):fe.startBlock=[Be.start]:"inline"===Be.level&&(fe.startInline?fe.startInline.push(Be.start):fe.startInline=[Be.start]))}"childTokens"in Be&&Be.childTokens&&(fe.childTokens[Be.name]=Be.childTokens)}),je.extensions=fe),K.renderer){const Be=this.defaults.renderer||new wn(this.defaults);for(const ct in K.renderer){if(!(ct in Be))throw new Error(`renderer '${ct}' does not exist`);if("options"===ct)continue;const Dn=K.renderer[ct],Hn=Be[ct];Be[ct]=(...w)=>{let H=Dn.apply(Be,w);return!1===H&&(H=Hn.apply(Be,w)),H||""}}je.renderer=Be}if(K.tokenizer){const Be=this.defaults.tokenizer||new Sn(this.defaults);for(const ct in K.tokenizer){if(!(ct in Be))throw new Error(`tokenizer '${ct}' does not exist`);if(["options","rules","lexer"].includes(ct))continue;const Dn=K.tokenizer[ct],Hn=Be[ct];Be[ct]=(...w)=>{let H=Dn.apply(Be,w);return!1===H&&(H=Hn.apply(Be,w)),H}}je.tokenizer=Be}if(K.hooks){const Be=this.defaults.hooks||new fr;for(const ct in K.hooks){if(!(ct in Be))throw new Error(`hook '${ct}' does not exist`);if("options"===ct)continue;const Dn=K.hooks[ct],Hn=Be[ct];Be[ct]=fr.passThroughHooks.has(ct)?w=>{if(this.defaults.async)return Promise.resolve(Dn.call(Be,w)).then(oe=>Hn.call(Be,oe));const H=Dn.call(Be,w);return Hn.call(Be,H)}:(...w)=>{let H=Dn.apply(Be,w);return!1===H&&(H=Hn.apply(Be,w)),H}}je.hooks=Be}if(K.walkTokens){const Be=this.defaults.walkTokens,ct=K.walkTokens;je.walkTokens=function(Kt){let Dn=[];return Dn.push(ct.call(this,Kt)),Be&&(Dn=Dn.concat(Be.call(this,Kt))),Dn}}this.defaults={...this.defaults,...je}}),this}setOptions(ge){return this.defaults={...this.defaults,...ge},this}lexer(ge,fe){return dn.lex(ge,null!=fe?fe:this.defaults)}parser(ge,fe){return wr.parse(ge,null!=fe?fe:this.defaults)}};function Ar(Pt,ge){return vi.parse(Pt,ge)}Ar.options=Ar.setOptions=function(Pt){return vi.setOptions(Pt),Ct(Ar.defaults=vi.defaults),Ar},Ar.getDefaults=function Le(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},Ar.defaults=Oe,Ar.use=function(...Pt){return vi.use(...Pt),Ct(Ar.defaults=vi.defaults),Ar},Ar.walkTokens=function(Pt,ge){return vi.walkTokens(Pt,ge)},Ar.parseInline=vi.parseInline,Ar.Parser=wr,Ar.parser=wr.parse,Ar.Renderer=wn,Ar.TextRenderer=hr,Ar.Lexer=dn,Ar.lexer=dn.lex,Ar.Tokenizer=Sn,Ar.Hooks=fr,Ar.parse=Ar;var We=C(1626),St=C(345);const nn=["*"];let qn=(()=>{var Pt;class ge{constructor(){this._buttonClick$=new ke.B,this.copied$=this._buttonClick$.pipe((0,Xe.n)(()=>(0,$.h)((0,he.of)(!0),(0,ae.O)(3e3).pipe((0,tt.u)(!1)))),(0,Se.F)(),function xt(Pt,ge,fe){let K,je=!1;return Pt&&"object"==typeof Pt?({bufferSize:K=1/0,windowTime:ge=1/0,refCount:je=!1,scheduler:fe}=Pt):K=null!=Pt?Pt:1/0,function at(Pt={}){const{connector:ge=(()=>new ke.B),resetOnError:fe=!0,resetOnComplete:K=!0,resetOnRefCountZero:je=!0}=Pt;return Be=>{let ct,Kt,Dn,Hn=0,w=!1,H=!1;const oe=()=>{null==Kt||Kt.unsubscribe(),Kt=void 0},P=()=>{oe(),ct=Dn=void 0,w=H=!1},Te=()=>{const dt=ct;P(),null==dt||dt.unsubscribe()};return(0,Ye.N)((dt,vr)=>{Hn++,!H&&!w&&oe();const ai=Dn=null!=Dn?Dn:ge();vr.add(()=>{Hn--,0===Hn&&!H&&!w&&(Kt=mt(Te,je))}),ai.subscribe(vr),!ct&&Hn>0&&(ct=new it.Ms({next:W=>ai.next(W),error:W=>{H=!0,oe(),Kt=mt(P,fe,W),ai.error(W)},complete:()=>{w=!0,oe(),Kt=mt(P,K),ai.complete()}}),(0,et.Tg)(dt).subscribe(ct))})(Be)}}({connector:()=>new be.m(K,ge,fe),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:je})}(1)),this.copiedText$=this.copied$.pipe((0,Dt.Z)(!1),(0,zt.T)(K=>K?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}}return(Pt=ge).\u0275fac=function(K){return new(K||Pt)},Pt.\u0275cmp=Z.VBU({type:Pt,selectors:[["markdown-clipboard"]],standalone:!0,features:[Z.aNF],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(K,je){1&K&&(Z.j41(0,"button",0),Z.nI1(1,"async"),Z.bIt("click",function(){return je.onCopyToClipboardClick()}),Z.EFF(2),Z.nI1(3,"async"),Z.k0s()),2&K&&(Z.AVh("copied",Z.bMT(1,3,je.copied$)),Z.R7$(2),Z.JRh(Z.bMT(3,5,je.copiedText$)))},dependencies:[c.Jj],encapsulation:2,changeDetection:0}),ge})();const Sr=new Z.nKC("CLIPBOARD_OPTIONS");var $r=function(Pt){return Pt.CommandLine="command-line",Pt.LineHighlight="line-highlight",Pt.LineNumbers="line-numbers",Pt}($r||{});const Pr=new Z.nKC("MARKED_EXTENSIONS"),Nr=new Z.nKC("MARKED_OPTIONS"),_i=new Z.nKC("SECURITY_CONTEXT");let Zn=(()=>{var Pt;class ge{get options(){return this._options}set options(K){this._options={...this.DEFAULT_MARKED_OPTIONS,...K}}get renderer(){return this.options.renderer}set renderer(K){this.options.renderer=K}constructor(K,je,Be,ct,Kt,Dn,Hn){this.clipboardOptions=K,this.extensions=je,this.platform=ct,this.securityContext=Kt,this.http=Dn,this.sanitizer=Hn,this.DEFAULT_MARKED_OPTIONS={renderer:new wn},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new ke.B,this.reload$=this._reload$.asObservable(),this.options=Be}parse(K,je=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:Be,inline:ct,emoji:Kt,mermaid:Dn,disableSanitizer:Hn}=je,w={...this.options,...je.markedOptions},H=w.renderer||this.renderer||new wn;this.extensions&&(this.renderer=this.extendsRendererForExtensions(H)),Dn&&(this.renderer=this.extendsRendererForMermaid(H));const oe=this.trimIndentation(K),P=Be?this.decodeHtml(oe):oe,Te=Kt?this.parseEmoji(P):P,dt=this.parseMarked(Te,w,ct);return(Hn?dt:this.sanitizer.sanitize(this.securityContext,dt))||""}render(K,je=this.DEFAULT_RENDER_OPTIONS,Be){const{clipboard:ct,clipboardOptions:Kt,katex:Dn,katexOptions:Hn,mermaid:w,mermaidOptions:H}=je;Dn&&this.renderKatex(K,{...this.DEFAULT_KATEX_OPTIONS,...Hn}),w&&this.renderMermaid(K,{...this.DEFAULT_MERMAID_OPTIONS,...H}),ct&&this.renderClipboard(K,Be,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...Kt}),this.highlight(K)}reload(){this._reload$.next()}getSource(K){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(K,{responseType:"text"}).pipe((0,zt.T)(je=>this.handleExtension(K,je)))}highlight(K){if(!(0,c.UE)(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;K||(K=document);const je=K.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(je,Be=>Be.classList.add("language-none")),Prism.highlightAllUnder(K)}decodeHtml(K){if(!(0,c.UE)(this.platform))return K;const je=document.createElement("textarea");return je.innerHTML=K,je.value}extendsRendererForExtensions(K){var je;const Be=K;return!0===Be.\u0275NgxMarkdownRendererExtendedForExtensions||((null===(je=this.extensions)||void 0===je?void 0:je.length)>0&&Ar.use(...this.extensions),Be.\u0275NgxMarkdownRendererExtendedForExtensions=!0),K}extendsRendererForMermaid(K){const je=K;if(!0===je.\u0275NgxMarkdownRendererExtendedForMermaid)return K;const Be=K.code;return K.code=function(ct,Kt,Dn){return"mermaid"===Kt?`
    ${ct}
    `:Be.call(this,ct,Kt,Dn)},je.\u0275NgxMarkdownRendererExtendedForMermaid=!0,K}handleExtension(K,je){const Be=K.lastIndexOf("://"),ct=Be>-1?K.substring(Be+4):K,Kt=ct.lastIndexOf("/"),Dn=Kt>-1?ct.substring(Kt+1).split("?")[0]:"",Hn=Dn.lastIndexOf("."),w=Hn>-1?Dn.substring(Hn+1):"";return w&&"md"!==w?"```"+w+"\n"+je+"\n```":je}parseMarked(K,je,Be=!1){if(je.renderer){const ct={...je.renderer};delete ct.\u0275NgxMarkdownRendererExtendedForExtensions,delete ct.\u0275NgxMarkdownRendererExtendedForMermaid,delete je.renderer,Ar.use({renderer:ct})}return Be?Ar.parseInline(K,je):Ar.parse(K,je)}parseEmoji(K){if(!(0,c.UE)(this.platform))return K;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(K)}renderKatex(K,je){if((0,c.UE)(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(K,je)}}renderClipboard(K,je,Be){if(!(0,c.UE)(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!je)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:ct,buttonTemplate:Kt}=Be,Dn=K.querySelectorAll("pre");for(let Hn=0;Hnoe.classList.add("hover"),H.onmouseleave=()=>oe.classList.remove("hover"),ct){const dt=je.createComponent(ct);P=dt.hostView,dt.changeDetectorRef.markForCheck()}else if(Kt)P=je.createEmbeddedView(Kt);else{const dt=je.createComponent(qn);P=dt.hostView,dt.changeDetectorRef.markForCheck()}P.rootNodes.forEach(dt=>{oe.appendChild(dt),Te=new ClipboardJS(dt,{text:()=>w.innerText})}),P.onDestroy(()=>Te.destroy())}}renderMermaid(K,je=this.DEFAULT_MERMAID_OPTIONS){if(!(0,c.UE)(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const Be=K.querySelectorAll(".mermaid");0!==Be.length&&(mermaid.initialize(je),mermaid.run({nodes:Be}))}trimIndentation(K){if(!K)return"";let je;return K.split("\n").map(Be=>{let ct=je;return Be.length>0&&(ct=isNaN(ct)?Be.search(/\S|$/):Math.min(Be.search(/\S|$/),ct)),isNaN(je)&&(je=ct),ct?Be.substring(ct):Be}).join("\n")}}return(Pt=ge).\u0275fac=function(K){return new(K||Pt)(Z.KVO(Sr,8),Z.KVO(Pr,8),Z.KVO(Nr,8),Z.KVO(Z.Agw),Z.KVO(_i),Z.KVO(We.Qq,8),Z.KVO(St.up))},Pt.\u0275prov=Z.jDH({token:Pt,factory:Pt.\u0275fac}),ge})(),mo=(()=>{var Pt;class ge{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(K){this._disableSanitizer=this.coerceBooleanProperty(K)}get inline(){return this._inline}set inline(K){this._inline=this.coerceBooleanProperty(K)}get clipboard(){return this._clipboard}set clipboard(K){this._clipboard=this.coerceBooleanProperty(K)}get emoji(){return this._emoji}set emoji(K){this._emoji=this.coerceBooleanProperty(K)}get katex(){return this._katex}set katex(K){this._katex=this.coerceBooleanProperty(K)}get mermaid(){return this._mermaid}set mermaid(K){this._mermaid=this.coerceBooleanProperty(K)}get lineHighlight(){return this._lineHighlight}set lineHighlight(K){this._lineHighlight=this.coerceBooleanProperty(K)}get lineNumbers(){return this._lineNumbers}set lineNumbers(K){this._lineNumbers=this.coerceBooleanProperty(K)}get commandLine(){return this._commandLine}set commandLine(K){this._commandLine=this.coerceBooleanProperty(K)}constructor(K,je,Be){this.element=K,this.markdownService=je,this.viewContainerRef=Be,this.error=new Z.bkB,this.load=new Z.bkB,this.ready=new Z.bkB,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new ke.B}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe((0,Tt.Q)(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(K,je=!1){var Be=this;return(0,h.A)(function*(){const ct={decodeHtml:je,inline:Be.inline,emoji:Be.emoji,mermaid:Be.mermaid,disableSanitizer:Be.disableSanitizer},Kt={clipboard:Be.clipboard,clipboardOptions:{buttonComponent:Be.clipboardButtonComponent,buttonTemplate:Be.clipboardButtonTemplate},katex:Be.katex,katexOptions:Be.katexOptions,mermaid:Be.mermaid,mermaidOptions:Be.mermaidOptions},Dn=yield Be.markdownService.parse(K,ct);Be.element.nativeElement.innerHTML=Dn,Be.handlePlugins(),Be.markdownService.render(Be.element.nativeElement,Kt,Be.viewContainerRef),Be.ready.emit()})()}coerceBooleanProperty(K){return null!=K&&"false"!=`${String(K)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:K=>{this.render(K).then(()=>{this.load.emit(K)})},error:K=>this.error.emit(K)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,$r.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,$r.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(K,je){const Be=K.querySelectorAll("pre");for(let ct=0;ct{const Dn=je[Kt];if(Dn){const Hn=this.toLispCase(Kt);Be.item(ct).setAttribute(Hn,Dn.toString())}})}toLispCase(K){const je=K.match(/([A-Z])/g);if(!je)return K;let Be=K.toString();for(let ct=0,Kt=je.length;ct{var Pt;class ge{static forRoot(K){return{ngModule:ge,providers:[yi(K)]}}static forChild(){return{ngModule:ge}}}return(Pt=ge).\u0275fac=function(K){return new(K||Pt)},Pt.\u0275mod=Z.$C({type:Pt}),Pt.\u0275inj=Z.G2t({imports:[c.MD]}),ge})();var ui;!function(Pt){let ge;var je;let fe,K;(je=ge=Pt.SecurityLevel||(Pt.SecurityLevel={})).Strict="strict",je.Loose="loose",je.Antiscript="antiscript",je.Sandbox="sandbox",function(je){je.Base="base",je.Forest="forest",je.Dark="dark",je.Default="default",je.Neutral="neutral"}(fe=Pt.Theme||(Pt.Theme={})),function(je){je[je.Debug=1]="Debug",je[je.Info=2]="Info",je[je.Warn=3]="Warn",je[je.Error=4]="Error",je[je.Fatal=5]="Fatal"}(K=Pt.LogLevel||(Pt.LogLevel={}))}(ui||(ui={}))},467:(Pn,It,C)=>{"use strict";function h(Z,ke,$,he,ae,Xe,tt){try{var Se=Z[Xe](tt),be=Se.value}catch(et){return void $(et)}Se.done?ke(be):Promise.resolve(be).then(he,ae)}function c(Z){return function(){var ke=this,$=arguments;return new Promise(function(he,ae){var Xe=Z.apply(ke,$);function tt(be){h(Xe,he,ae,tt,Se,"next",be)}function Se(be){h(Xe,he,ae,tt,Se,"throw",be)}tt(void 0)})}}C.d(It,{A:()=>c})},9842:(Pn,It,C)=>{"use strict";function h($){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(he){return typeof he}:function(he){return he&&"function"==typeof Symbol&&he.constructor===Symbol&&he!==Symbol.prototype?"symbol":typeof he})($)}function ke($,he,ae){return(he=function Z($){var he=function c($,he){if("object"!=h($)||!$)return $;var ae=$[Symbol.toPrimitive];if(void 0!==ae){var Xe=ae.call($,he||"default");if("object"!=h(Xe))return Xe;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===he?String:Number)($)}($,"string");return"symbol"==h(he)?he:String(he)}(he))in $?Object.defineProperty($,he,{value:ae,enumerable:!0,configurable:!0,writable:!0}):$[he]=ae,$}C.d(It,{A:()=>ke})},1635:(Pn,It,C)=>{"use strict";function ke(G,X){var ce={};for(var ue in G)Object.prototype.hasOwnProperty.call(G,ue)&&X.indexOf(ue)<0&&(ce[ue]=G[ue]);if(null!=G&&"function"==typeof Object.getOwnPropertySymbols){var Ee=0;for(ue=Object.getOwnPropertySymbols(G);Ee=0;fn--)(ut=G[fn])&&(Ve=(Ee<3?ut(Ve):Ee>3?ut(X,ce,Ve):ut(X,ce))||Ve);return Ee>3&&Ve&&Object.defineProperty(X,ce,Ve),Ve}function et(G,X,ce,ue){return new(ce||(ce=Promise))(function(Ve,ut){function fn(Je){try{un(ue.next(Je))}catch(Sn){ut(Sn)}}function xn(Je){try{un(ue.throw(Je))}catch(Sn){ut(Sn)}}function un(Je){Je.done?Ve(Je.value):function Ee(Ve){return Ve instanceof ce?Ve:new ce(function(ut){ut(Ve)})}(Je.value).then(fn,xn)}un((ue=ue.apply(G,X||[])).next())})}function At(G){return this instanceof At?(this.v=G,this):new At(G)}function Ie(G,X,ce){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ee,ue=ce.apply(G,X||[]),Ve=[];return Ee={},ut("next"),ut("throw"),ut("return"),Ee[Symbol.asyncIterator]=function(){return this},Ee;function ut(kn){ue[kn]&&(Ee[kn]=function(On){return new Promise(function(or,gr){Ve.push([kn,On,or,gr])>1||fn(kn,On)})})}function fn(kn,On){try{!function xn(kn){kn.value instanceof At?Promise.resolve(kn.value.v).then(un,Je):Sn(Ve[0][2],kn)}(ue[kn](On))}catch(or){Sn(Ve[0][3],or)}}function un(kn){fn("next",kn)}function Je(kn){fn("throw",kn)}function Sn(kn,On){kn(On),Ve.shift(),Ve.length&&fn(Ve[0][0],Ve[0][1])}}function _e(G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ce,X=G[Symbol.asyncIterator];return X?X.call(G):(G=function mt(G){var X="function"==typeof Symbol&&Symbol.iterator,ce=X&&G[X],ue=0;if(ce)return ce.call(G);if(G&&"number"==typeof G.length)return{next:function(){return G&&ue>=G.length&&(G=void 0),{value:G&&G[ue++],done:!G}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")}(G),ce={},ue("next"),ue("throw"),ue("return"),ce[Symbol.asyncIterator]=function(){return this},ce);function ue(Ve){ce[Ve]=G[Ve]&&function(ut){return new Promise(function(fn,xn){!function Ee(Ve,ut,fn,xn){Promise.resolve(xn).then(function(un){Ve({value:un,done:fn})},ut)}(fn,xn,(ut=G[Ve](ut)).done,ut.value)})}}}C.d(It,{AQ:()=>Ie,Cg:()=>$,N3:()=>At,Tt:()=>ke,sH:()=>et,xN:()=>_e}),"function"==typeof SuppressedError&&SuppressedError}},Pn=>{Pn(Pn.s=63)}]); \ No newline at end of file diff --git a/www/main.fbf9b0eda3a2e1a7.js b/www/main.fbf9b0eda3a2e1a7.js deleted file mode 100644 index 5ab01b8..0000000 --- a/www/main.fbf9b0eda3a2e1a7.js +++ /dev/null @@ -1 +0,0 @@ -(self.webpackChunkapp=self.webpackChunkapp||[]).push([[8792],{1076:(Pn,Et,C)=>{"use strict";C.d(Et,{Am:()=>En,FA:()=>Ve,Fy:()=>_e,I9:()=>Fr,Im:()=>dr,Ku:()=>pt,T9:()=>It,Tj:()=>zt,Uj:()=>tt,XA:()=>Te,ZQ:()=>$e,bD:()=>Lt,cY:()=>Ze,eX:()=>X,g:()=>Ee,hp:()=>Vn,jZ:()=>Le,lT:()=>st,lV:()=>Cn,nr:()=>Re,sr:()=>kt,tD:()=>In,u:()=>Se,yU:()=>Tt,zW:()=>G});const ke=function(de){const Ie=[];let Ge=0;for(let $t=0;$t>6|192,Ie[Ge++]=63&le|128):55296==(64512&le)&&$t+1>18|240,Ie[Ge++]=le>>12&63|128,Ie[Ge++]=le>>6&63|128,Ie[Ge++]=63&le|128):(Ie[Ge++]=le>>12|224,Ie[Ge++]=le>>6&63|128,Ie[Ge++]=63&le|128)}return Ie},he={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:"function"==typeof atob,encodeByteArray(de,Ie){if(!Array.isArray(de))throw Error("encodeByteArray takes an array as a parameter");this.init_();const Ge=Ie?this.byteToCharMapWebSafe_:this.byteToCharMap_,$t=[];for(let le=0;le>6,hr=63&Tn;sn||(hr=64,ft||(wn=64)),$t.push(Ge[gt>>2],Ge[(3>)<<4|Qt>>4],Ge[wn],Ge[hr])}return $t.join("")},encodeString(de,Ie){return this.HAS_NATIVE_SUPPORT&&!Ie?btoa(de):this.encodeByteArray(ke(de),Ie)},decodeString(de,Ie){return this.HAS_NATIVE_SUPPORT&&!Ie?atob(de):function(de){const Ie=[];let Ge=0,$t=0;for(;Ge191&&le<224){const gt=de[Ge++];Ie[$t++]=String.fromCharCode((31&le)<<6|63>)}else if(le>239&&le<365){const sn=((7&le)<<18|(63&de[Ge++])<<12|(63&de[Ge++])<<6|63&de[Ge++])-65536;Ie[$t++]=String.fromCharCode(55296+(sn>>10)),Ie[$t++]=String.fromCharCode(56320+(1023&sn))}else{const gt=de[Ge++],ft=de[Ge++];Ie[$t++]=String.fromCharCode((15&le)<<12|(63>)<<6|63&ft)}}return Ie.join("")}(this.decodeStringToByteArray(de,Ie))},decodeStringToByteArray(de,Ie){this.init_();const Ge=Ie?this.charToByteMapWebSafe_:this.charToByteMap_,$t=[];for(let le=0;le>4),64!==Tn&&($t.push(Qt<<4&240|Tn>>2),64!==dn&&$t.push(Tn<<6&192|dn))}return $t},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let de=0;de=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(de)]=de,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(de)]=de)}}};class ae extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const tt=function(de){return function(de){const Ie=ke(de);return he.encodeByteArray(Ie,!0)}(de).replace(/\./g,"")},Se=function(de){try{return he.decodeString(de,!0)}catch(Ie){console.error("base64Decode failed: ",Ie)}return null},Dt=()=>{try{return function Ye(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}().__FIREBASE_DEFAULTS__||(()=>{if(typeof process>"u"||typeof process.env>"u")return;const de=process.env.__FIREBASE_DEFAULTS__;return de?JSON.parse(de):void 0})()||(()=>{if(typeof document>"u")return;let de;try{de=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const Ie=de&&Se(de[1]);return Ie&&JSON.parse(Ie)})()}catch(de){return void console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${de}`)}},zt=de=>{var Ie,Ge;return null===(Ge=null===(Ie=Dt())||void 0===Ie?void 0:Ie.emulatorHosts)||void 0===Ge?void 0:Ge[de]},Tt=de=>{const Ie=zt(de);if(!Ie)return;const Ge=Ie.lastIndexOf(":");if(Ge<=0||Ge+1===Ie.length)throw new Error(`Invalid host ${Ie} with no separate hostname and port!`);const $t=parseInt(Ie.substring(Ge+1),10);return"["===Ie[0]?[Ie.substring(1,Ge-1),$t]:[Ie.substring(0,Ge),$t]},It=()=>{var de;return null===(de=Dt())||void 0===de?void 0:de.config},Te=de=>{var Ie;return null===(Ie=Dt())||void 0===Ie?void 0:Ie[`_${de}`]};class Ze{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((Ie,Ge)=>{this.resolve=Ie,this.reject=Ge})}wrapCallback(Ie){return(Ge,$t)=>{Ge?this.reject(Ge):this.resolve($t),"function"==typeof Ie&&(this.promise.catch(()=>{}),1===Ie.length?Ie(Ge):Ie(Ge,$t))}}}function _e(de,Ie){if(de.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const $t=Ie||"demo-project",le=de.iat||0,gt=de.sub||de.user_id;if(!gt)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const ft=Object.assign({iss:`https://securetoken.google.com/${$t}`,aud:$t,iat:le,exp:le+3600,auth_time:le,sub:gt,user_id:gt,firebase:{sign_in_provider:"custom",identities:{}}},de);return[tt(JSON.stringify({alg:"none",type:"JWT"})),tt(JSON.stringify(ft)),""].join(".")}function $e(){return typeof navigator<"u"&&"string"==typeof navigator.userAgent?navigator.userAgent:""}function Le(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test($e())}function kt(){const de="object"==typeof chrome?chrome.runtime:"object"==typeof browser?browser.runtime:void 0;return"object"==typeof de&&void 0!==de.id}function Cn(){return"object"==typeof navigator&&"ReactNative"===navigator.product}function st(){const de=$e();return de.indexOf("MSIE ")>=0||de.indexOf("Trident/")>=0}function Re(){return!function Oe(){var de;const Ie=null===(de=Dt())||void 0===de?void 0:de.forceEnvironment;if("node"===Ie)return!0;if("browser"===Ie)return!1;try{return"[object process]"===Object.prototype.toString.call(global.process)}catch{return!1}}()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function G(){try{return"object"==typeof indexedDB}catch{return!1}}function X(){return new Promise((de,Ie)=>{try{let Ge=!0;const $t="validate-browser-context-for-indexeddb-analytics-module",le=self.indexedDB.open($t);le.onsuccess=()=>{le.result.close(),Ge||self.indexedDB.deleteDatabase($t),de(!0)},le.onupgradeneeded=()=>{Ge=!1},le.onerror=()=>{var gt;Ie((null===(gt=le.error)||void 0===gt?void 0:gt.message)||"")}}catch(Ge){Ie(Ge)}})}class Ee extends Error{constructor(Ie,Ge,$t){super(Ge),this.code=Ie,this.customData=$t,this.name="FirebaseError",Object.setPrototypeOf(this,Ee.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Ve.prototype.create)}}class Ve{constructor(Ie,Ge,$t){this.service=Ie,this.serviceName=Ge,this.errors=$t}create(Ie,...Ge){const $t=Ge[0]||{},le=`${this.service}/${Ie}`,gt=this.errors[Ie],ft=gt?function ut(de,Ie){return de.replace(fn,(Ge,$t)=>{const le=Ie[$t];return null!=le?String(le):`<${$t}?>`})}(gt,$t):"Error";return new Ee(le,`${this.serviceName}: ${ft} (${le}).`,$t)}}const fn=/\{\$([^}]+)}/g;function dr(de){for(const Ie in de)if(Object.prototype.hasOwnProperty.call(de,Ie))return!1;return!0}function Lt(de,Ie){if(de===Ie)return!0;const Ge=Object.keys(de),$t=Object.keys(Ie);for(const le of Ge){if(!$t.includes(le))return!1;const gt=de[le],ft=Ie[le];if(Xt(gt)&&Xt(ft)){if(!Lt(gt,ft))return!1}else if(gt!==ft)return!1}for(const le of $t)if(!Ge.includes(le))return!1;return!0}function Xt(de){return null!==de&&"object"==typeof de}function En(de){const Ie=[];for(const[Ge,$t]of Object.entries(de))Array.isArray($t)?$t.forEach(le=>{Ie.push(encodeURIComponent(Ge)+"="+encodeURIComponent(le))}):Ie.push(encodeURIComponent(Ge)+"="+encodeURIComponent($t));return Ie.length?"&"+Ie.join("&"):""}function Fr(de){const Ie={};return de.replace(/^\?/,"").split("&").forEach($t=>{if($t){const[le,gt]=$t.split("=");Ie[decodeURIComponent(le)]=decodeURIComponent(gt)}}),Ie}function Vn(de){const Ie=de.indexOf("?");if(!Ie)return"";const Ge=de.indexOf("#",Ie);return de.substring(Ie,Ge>0?Ge:void 0)}function In(de,Ie){const Ge=new on(de,Ie);return Ge.subscribe.bind(Ge)}class on{constructor(Ie,Ge){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=Ge,this.task.then(()=>{Ie(this)}).catch($t=>{this.error($t)})}next(Ie){this.forEachObserver(Ge=>{Ge.next(Ie)})}error(Ie){this.forEachObserver(Ge=>{Ge.error(Ie)}),this.close(Ie)}complete(){this.forEachObserver(Ie=>{Ie.complete()}),this.close()}subscribe(Ie,Ge,$t){let le;if(void 0===Ie&&void 0===Ge&&void 0===$t)throw new Error("Missing Observer.");le=function br(de,Ie){if("object"!=typeof de||null===de)return!1;for(const Ge of Ie)if(Ge in de&&"function"==typeof de[Ge])return!0;return!1}(Ie,["next","error","complete"])?Ie:{next:Ie,error:Ge,complete:$t},void 0===le.next&&(le.next=Vr),void 0===le.error&&(le.error=Vr),void 0===le.complete&&(le.complete=Vr);const gt=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?le.error(this.finalError):le.complete()}catch{}}),this.observers.push(le),gt}unsubscribeOne(Ie){void 0===this.observers||void 0===this.observers[Ie]||(delete this.observers[Ie],this.observerCount-=1,0===this.observerCount&&void 0!==this.onNoObservers&&this.onNoObservers(this))}forEachObserver(Ie){if(!this.finalized)for(let Ge=0;Ge{if(void 0!==this.observers&&void 0!==this.observers[Ie])try{Ge(this.observers[Ie])}catch($t){typeof console<"u"&&console.error&&console.error($t)}})}close(Ie){this.finalized||(this.finalized=!0,void 0!==Ie&&(this.finalError=Ie),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function Vr(){}function pt(de){return de&&de._delegate?de._delegate:de}},4442:(Pn,Et,C)=>{"use strict";C.d(Et,{L:()=>$,a:()=>he,b:()=>ae,c:()=>Xe,d:()=>tt,g:()=>vt}),C(5531);const $="ionViewWillEnter",he="ionViewDidEnter",ae="ionViewWillLeave",Xe="ionViewDidLeave",tt="ionViewWillUnload",vt=Re=>Re.classList.contains("ion-page")?Re:Re.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||Re},5531:(Pn,Et,C)=>{"use strict";C.d(Et,{a:()=>Se,c:()=>c,g:()=>tt});class h{constructor(){this.m=new Map}reset(Re){this.m=new Map(Object.entries(Re))}get(Re,G){const X=this.m.get(Re);return void 0!==X?X:G}getBoolean(Re,G=!1){const X=this.m.get(Re);return void 0===X?G:"string"==typeof X?"true"===X:!!X}getNumber(Re,G){const X=parseFloat(this.m.get(Re));return isNaN(X)?void 0!==G?G:NaN:X}set(Re,G){this.m.set(Re,G)}}const c=new h,tt=vt=>be(vt),Se=(vt,Re)=>("string"==typeof vt&&(Re=vt,vt=void 0),tt(vt).includes(Re)),be=(vt=window)=>{if(typeof vt>"u")return[];vt.Ionic=vt.Ionic||{};let Re=vt.Ionic.platforms;return null==Re&&(Re=vt.Ionic.platforms=et(vt),Re.forEach(G=>vt.document.documentElement.classList.add(`plt-${G}`))),Re},et=vt=>{const Re=c.get("platform");return Object.keys(Cn).filter(G=>{const X=null==Re?void 0:Re[G];return"function"==typeof X?X(vt):Cn[G](vt)})},Ye=vt=>!!(Ct(vt,/iPad/i)||Ct(vt,/Macintosh/i)&&It(vt)),xt=vt=>Ct(vt,/android|sink/i),It=vt=>kt(vt,"(any-pointer:coarse)"),Ze=vt=>_e(vt)||$e(vt),_e=vt=>!!(vt.cordova||vt.phonegap||vt.PhoneGap),$e=vt=>{const Re=vt.Capacitor;return!(null==Re||!Re.isNative)},Ct=(vt,Re)=>Re.test(vt.navigator.userAgent),kt=(vt,Re)=>{var G;return null===(G=vt.matchMedia)||void 0===G?void 0:G.call(vt,Re).matches},Cn={ipad:Ye,iphone:vt=>Ct(vt,/iPhone/i),ios:vt=>Ct(vt,/iPhone|iPod/i)||Ye(vt),android:xt,phablet:vt=>{const Re=vt.innerWidth,G=vt.innerHeight,X=Math.min(Re,G),ce=Math.max(Re,G);return X>390&&X<520&&ce>620&&ce<800},tablet:vt=>{const Re=vt.innerWidth,G=vt.innerHeight,X=Math.min(Re,G),ce=Math.max(Re,G);return Ye(vt)||(vt=>xt(vt)&&!Ct(vt,/mobile/i))(vt)||X>460&&X<820&&ce>780&&ce<1400},cordova:_e,capacitor:$e,electron:vt=>Ct(vt,/electron/i),pwa:vt=>{var Re;return!!(null!==(Re=vt.matchMedia)&&void 0!==Re&&Re.call(vt,"(display-mode: standalone)").matches||vt.navigator.standalone)},mobile:It,mobileweb:vt=>It(vt)&&!Ze(vt),desktop:vt=>!It(vt),hybrid:Ze}},9986:(Pn,Et,C)=>{"use strict";C.d(Et,{c:()=>he});var h=C(8476);let c;const ke=(ae,Xe,tt)=>{const Se=Xe.startsWith("animation")?(ae=>(void 0===c&&(c=void 0===ae.style.animationName&&void 0!==ae.style.webkitAnimationName?"-webkit-":""),c))(ae):"";ae.style.setProperty(Se+Xe,tt)},$=(ae=[],Xe)=>{if(void 0!==Xe){const tt=Array.isArray(Xe)?Xe:[Xe];return[...ae,...tt]}return ae},he=ae=>{let Xe,tt,Se,be,et,it,Dt,Le,Oe,Ct,st,Ye=[],at=[],mt=[],xt=!1,zt={},Tt=[],It=[],Te={},Ze=0,_e=!1,$e=!1,kt=!0,Cn=!1,At=!0,cn=!1;const vt=ae,Re=[],G=[],X=[],ce=[],ue=[],Ee=[],Ve=[],ut=[],fn=[],xn=[],un=[],Je="function"==typeof AnimationEffect||void 0!==h.w&&"function"==typeof h.w.AnimationEffect,Sn="function"==typeof Element&&"function"==typeof Element.prototype.animate&&Je,kn=()=>un,dr=(O,re)=>{const we=re.findIndex(We=>We.c===O);we>-1&&re.splice(we,1)},Lt=(O,re)=>((null!=re&&re.oneTimeCallback?G:Re).push({c:O,o:re}),st),yn=()=>{Sn&&(un.forEach(O=>{O.cancel()}),un.length=0)},En=()=>{Ee.forEach(O=>{null!=O&&O.parentNode&&O.parentNode.removeChild(O)}),Ee.length=0},Tr=()=>void 0!==et?et:Dt?Dt.getFill():"both",yr=()=>void 0!==Le?Le:void 0!==it?it:Dt?Dt.getDirection():"normal",Br=()=>_e?"linear":void 0!==Se?Se:Dt?Dt.getEasing():"linear",ar=()=>$e?0:void 0!==Oe?Oe:void 0!==tt?tt:Dt?Dt.getDuration():0,Lr=()=>void 0!==be?be:Dt?Dt.getIterations():1,li=()=>void 0!==Ct?Ct:void 0!==Xe?Xe:Dt?Dt.getDelay():0,sn=()=>{0!==Ze&&(Ze--,0===Ze&&((()=>{fn.forEach(St=>St()),xn.forEach(St=>St());const O=kt?1:0,re=Tt,we=It,We=Te;ce.forEach(St=>{const nn=St.classList;re.forEach(rn=>nn.add(rn)),we.forEach(rn=>nn.remove(rn));for(const rn in We)We.hasOwnProperty(rn)&&ke(St,rn,We[rn])}),Oe=void 0,Le=void 0,Ct=void 0,Re.forEach(St=>St.c(O,st)),G.forEach(St=>St.c(O,st)),G.length=0,At=!0,kt&&(Cn=!0),kt=!0})(),Dt&&Dt.animationFinish()))},Xn=()=>{(()=>{Ve.forEach(We=>We()),ut.forEach(We=>We());const O=at,re=mt,we=zt;ce.forEach(We=>{const St=We.classList;O.forEach(nn=>St.add(nn)),re.forEach(nn=>St.remove(nn));for(const nn in we)we.hasOwnProperty(nn)&&ke(We,nn,we[nn])})})(),Ye.length>0&&Sn&&(ce.forEach(O=>{const re=O.animate(Ye,{id:vt,delay:li(),duration:ar(),easing:Br(),iterations:Lr(),fill:Tr(),direction:yr()});re.pause(),un.push(re)}),un.length>0&&(un[0].onfinish=()=>{sn()})),xt=!0},dn=O=>{O=Math.min(Math.max(O,0),.9999),Sn&&un.forEach(re=>{re.currentTime=re.effect.getComputedTiming().delay+ar()*O,re.pause()})},wn=O=>{un.forEach(re=>{re.effect.updateTiming({delay:li(),duration:ar(),easing:Br(),iterations:Lr(),fill:Tr(),direction:yr()})}),void 0!==O&&dn(O)},hr=(O=!1,re=!0,we)=>(O&&ue.forEach(We=>{We.update(O,re,we)}),Sn&&wn(we),st),oi=()=>{xt&&(Sn?un.forEach(O=>{O.pause()}):ce.forEach(O=>{ke(O,"animation-play-state","paused")}),cn=!0)},Gt=O=>new Promise(re=>{null!=O&&O.sync&&($e=!0,Lt(()=>$e=!1,{oneTimeCallback:!0})),xt||Xn(),Cn&&(Sn&&(dn(0),wn()),Cn=!1),At&&(Ze=ue.length+1,At=!1);const we=()=>{dr(We,G),re()},We=()=>{dr(we,X),re()};Lt(We,{oneTimeCallback:!0}),((O,re)=>{X.push({c:O,o:{oneTimeCallback:!0}})})(we),ue.forEach(St=>{St.play()}),Sn?(un.forEach(O=>{O.play()}),(0===Ye.length||0===ce.length)&&sn()):sn(),cn=!1}),te=(O,re)=>{const we=Ye[0];return void 0===we||void 0!==we.offset&&0!==we.offset?Ye=[{offset:0,[O]:re},...Ye]:we[O]=re,st};return st={parentAnimation:Dt,elements:ce,childAnimations:ue,id:vt,animationFinish:sn,from:te,to:(O,re)=>{const we=Ye[Ye.length-1];return void 0===we||void 0!==we.offset&&1!==we.offset?Ye=[...Ye,{offset:1,[O]:re}]:we[O]=re,st},fromTo:(O,re,we)=>te(O,re).to(O,we),parent:O=>(Dt=O,st),play:Gt,pause:()=>(ue.forEach(O=>{O.pause()}),oi(),st),stop:()=>{ue.forEach(O=>{O.stop()}),xt&&(yn(),xt=!1),_e=!1,$e=!1,At=!0,Le=void 0,Oe=void 0,Ct=void 0,Ze=0,Cn=!1,kt=!0,cn=!1,X.forEach(O=>O.c(0,st)),X.length=0},destroy:O=>(ue.forEach(re=>{re.destroy(O)}),(O=>{yn(),O&&En()})(O),ce.length=0,ue.length=0,Ye.length=0,Re.length=0,G.length=0,xt=!1,At=!0,st),keyframes:O=>{const re=Ye!==O;return Ye=O,re&&(O=>{Sn&&kn().forEach(re=>{const we=re.effect;if(we.setKeyframes)we.setKeyframes(O);else{const We=new KeyframeEffect(we.target,O,we.getTiming());re.effect=We}})})(Ye),st},addAnimation:O=>{if(null!=O)if(Array.isArray(O))for(const re of O)re.parent(st),ue.push(re);else O.parent(st),ue.push(O);return st},addElement:O=>{if(null!=O)if(1===O.nodeType)ce.push(O);else if(O.length>=0)for(let re=0;re(et=O,hr(!0),st),direction:O=>(it=O,hr(!0),st),iterations:O=>(be=O,hr(!0),st),duration:O=>(!Sn&&0===O&&(O=1),tt=O,hr(!0),st),easing:O=>(Se=O,hr(!0),st),delay:O=>(Xe=O,hr(!0),st),getWebAnimations:kn,getKeyframes:()=>Ye,getFill:Tr,getDirection:yr,getDelay:li,getIterations:Lr,getEasing:Br,getDuration:ar,afterAddRead:O=>(fn.push(O),st),afterAddWrite:O=>(xn.push(O),st),afterClearStyles:(O=[])=>{for(const re of O)Te[re]="";return st},afterStyles:(O={})=>(Te=O,st),afterRemoveClass:O=>(It=$(It,O),st),afterAddClass:O=>(Tt=$(Tt,O),st),beforeAddRead:O=>(Ve.push(O),st),beforeAddWrite:O=>(ut.push(O),st),beforeClearStyles:(O=[])=>{for(const re of O)zt[re]="";return st},beforeStyles:(O={})=>(zt=O,st),beforeRemoveClass:O=>(mt=$(mt,O),st),beforeAddClass:O=>(at=$(at,O),st),onFinish:Lt,isRunning:()=>0!==Ze&&!cn,progressStart:(O=!1,re)=>(ue.forEach(we=>{we.progressStart(O,re)}),oi(),_e=O,xt||Xn(),hr(!1,!0,re),st),progressStep:O=>(ue.forEach(re=>{re.progressStep(O)}),dn(O),st),progressEnd:(O,re,we)=>(_e=!1,ue.forEach(We=>{We.progressEnd(O,re,we)}),void 0!==we&&(Oe=we),Cn=!1,kt=!0,0===O?(Le="reverse"===yr()?"normal":"reverse","reverse"===Le&&(kt=!1),Sn?(hr(),dn(1-re)):(Ct=(1-re)*ar()*-1,hr(!1,!1))):1===O&&(Sn?(hr(),dn(re)):(Ct=re*ar()*-1,hr(!1,!1))),void 0!==O&&!Dt&&Gt(),st)}}},464:(Pn,Et,C)=>{"use strict";C.d(Et,{E:()=>Se,a:()=>h,s:()=>Xe});const h=be=>{try{if(be instanceof ae)return be.value;if(!ke()||"string"!=typeof be||""===be)return be;if(be.includes("onload="))return"";const et=document.createDocumentFragment(),it=document.createElement("div");et.appendChild(it),it.innerHTML=be,he.forEach(xt=>{const Dt=et.querySelectorAll(xt);for(let zt=Dt.length-1;zt>=0;zt--){const Tt=Dt[zt];Tt.parentNode?Tt.parentNode.removeChild(Tt):et.removeChild(Tt);const It=Z(Tt);for(let Te=0;Te{if(be.nodeType&&1!==be.nodeType)return;if(typeof NamedNodeMap<"u"&&!(be.attributes instanceof NamedNodeMap))return void be.remove();for(let it=be.attributes.length-1;it>=0;it--){const Ye=be.attributes.item(it),at=Ye.name;if(!$.includes(at.toLowerCase())){be.removeAttribute(at);continue}const mt=Ye.value,xt=be[at];(null!=mt&&mt.toLowerCase().includes("javascript:")||null!=xt&&xt.toLowerCase().includes("javascript:"))&&be.removeAttribute(at)}const et=Z(be);for(let it=0;itnull!=be.children?be.children:be.childNodes,ke=()=>{var be;const et=window,it=null===(be=null==et?void 0:et.Ionic)||void 0===be?void 0:be.config;return!it||(it.get?it.get("sanitizerEnabled",!0):!0===it.sanitizerEnabled||void 0===it.sanitizerEnabled)},$=["class","id","href","src","name","slot"],he=["script","style","iframe","meta","link","object","embed"];class ae{constructor(et){this.value=et}}const Xe=be=>{const et=window,it=et.Ionic;if(!it||!it.config||"Object"===it.config.constructor.name)return et.Ionic=et.Ionic||{},et.Ionic.config=Object.assign(Object.assign({},et.Ionic.config),be),et.Ionic.config},Se=!1},8621:(Pn,Et,C)=>{"use strict";C.d(Et,{C:()=>$,a:()=>Z,d:()=>ke});var h=C(467),c=C(4920);const Z=function(){var he=(0,h.A)(function*(ae,Xe,tt,Se,be,et){var it;if(ae)return ae.attachViewToDom(Xe,tt,be,Se);if(!(et||"string"==typeof tt||tt instanceof HTMLElement))throw new Error("framework delegate is missing");const Ye="string"==typeof tt?null===(it=Xe.ownerDocument)||void 0===it?void 0:it.createElement(tt):tt;return Se&&Se.forEach(at=>Ye.classList.add(at)),be&&Object.assign(Ye,be),Xe.appendChild(Ye),yield new Promise(at=>(0,c.c)(Ye,at)),Ye});return function(Xe,tt,Se,be,et,it){return he.apply(this,arguments)}}(),ke=(he,ae)=>{if(ae){if(he)return he.removeViewFromDom(ae.parentElement,ae);ae.remove()}return Promise.resolve()},$=()=>{let he,ae;return{attachViewToDom:function(){var Se=(0,h.A)(function*(be,et,it={},Ye=[]){var at,mt;let xt;if(he=be,et){const zt="string"==typeof et?null===(at=he.ownerDocument)||void 0===at?void 0:at.createElement(et):et;Ye.forEach(Tt=>zt.classList.add(Tt)),Object.assign(zt,it),he.appendChild(zt),xt=zt,yield new Promise(Tt=>(0,c.c)(zt,Tt))}else if(he.children.length>0&&("ION-MODAL"===he.tagName||"ION-POPOVER"===he.tagName)&&!(xt=he.children[0]).classList.contains("ion-delegate-host")){const Tt=null===(mt=he.ownerDocument)||void 0===mt?void 0:mt.createElement("div");Tt.classList.add("ion-delegate-host"),Ye.forEach(It=>Tt.classList.add(It)),Tt.append(...he.children),he.appendChild(Tt),xt=Tt}const Dt=document.querySelector("ion-app")||document.body;return ae=document.createComment("ionic teleport"),he.parentNode.insertBefore(ae,he),Dt.appendChild(he),null!=xt?xt:he});return function(et,it){return Se.apply(this,arguments)}}(),removeViewFromDom:()=>(he&&ae&&(ae.parentNode.insertBefore(he,ae),ae.remove()),Promise.resolve())}}},1970:(Pn,Et,C)=>{"use strict";C.d(Et,{B:()=>ke,G:()=>$});class c{constructor(ae,Xe,tt,Se,be){this.id=Xe,this.name=tt,this.disableScroll=be,this.priority=1e6*Se+Xe,this.ctrl=ae}canStart(){return!!this.ctrl&&this.ctrl.canStart(this.name)}start(){return!!this.ctrl&&this.ctrl.start(this.name,this.id,this.priority)}capture(){if(!this.ctrl)return!1;const ae=this.ctrl.capture(this.name,this.id,this.priority);return ae&&this.disableScroll&&this.ctrl.disableScroll(this.id),ae}release(){this.ctrl&&(this.ctrl.release(this.id),this.disableScroll&&this.ctrl.enableScroll(this.id))}destroy(){this.release(),this.ctrl=void 0}}class Z{constructor(ae,Xe,tt,Se){this.id=Xe,this.disable=tt,this.disableScroll=Se,this.ctrl=ae}block(){if(this.ctrl){if(this.disable)for(const ae of this.disable)this.ctrl.disableGesture(ae,this.id);this.disableScroll&&this.ctrl.disableScroll(this.id)}}unblock(){if(this.ctrl){if(this.disable)for(const ae of this.disable)this.ctrl.enableGesture(ae,this.id);this.disableScroll&&this.ctrl.enableScroll(this.id)}}destroy(){this.unblock(),this.ctrl=void 0}}const ke="backdrop-no-scroll",$=new class h{constructor(){this.gestureId=0,this.requestedStart=new Map,this.disabledGestures=new Map,this.disabledScroll=new Set}createGesture(ae){var Xe;return new c(this,this.newID(),ae.name,null!==(Xe=ae.priority)&&void 0!==Xe?Xe:0,!!ae.disableScroll)}createBlocker(ae={}){return new Z(this,this.newID(),ae.disable,!!ae.disableScroll)}start(ae,Xe,tt){return this.canStart(ae)?(this.requestedStart.set(Xe,tt),!0):(this.requestedStart.delete(Xe),!1)}capture(ae,Xe,tt){if(!this.start(ae,Xe,tt))return!1;const Se=this.requestedStart;let be=-1e4;if(Se.forEach(et=>{be=Math.max(be,et)}),be===tt){this.capturedId=Xe,Se.clear();const et=new CustomEvent("ionGestureCaptured",{detail:{gestureName:ae}});return document.dispatchEvent(et),!0}return Se.delete(Xe),!1}release(ae){this.requestedStart.delete(ae),this.capturedId===ae&&(this.capturedId=void 0)}disableGesture(ae,Xe){let tt=this.disabledGestures.get(ae);void 0===tt&&(tt=new Set,this.disabledGestures.set(ae,tt)),tt.add(Xe)}enableGesture(ae,Xe){const tt=this.disabledGestures.get(ae);void 0!==tt&&tt.delete(Xe)}disableScroll(ae){this.disabledScroll.add(ae),1===this.disabledScroll.size&&document.body.classList.add(ke)}enableScroll(ae){this.disabledScroll.delete(ae),0===this.disabledScroll.size&&document.body.classList.remove(ke)}canStart(ae){return!(void 0!==this.capturedId||this.isDisabled(ae))}isCaptured(){return void 0!==this.capturedId}isScrollDisabled(){return this.disabledScroll.size>0}isDisabled(ae){const Xe=this.disabledGestures.get(ae);return!!(Xe&&Xe.size>0)}newID(){return this.gestureId++,this.gestureId}}},6411:(Pn,Et,C)=>{"use strict";C.r(Et),C.d(Et,{MENU_BACK_BUTTON_PRIORITY:()=>tt,OVERLAY_BACK_BUTTON_PRIORITY:()=>Xe,blockHardwareBackButton:()=>he,shouldUseCloseWatcher:()=>$,startHardwareBackButton:()=>ae});var h=C(467),c=C(8476),Z=C(3664);C(9672);const $=()=>Z.c.get("experimentalCloseWatcher",!1)&&void 0!==c.w&&"CloseWatcher"in c.w,he=()=>{document.addEventListener("backbutton",()=>{})},ae=()=>{const Se=document;let be=!1;const et=()=>{if(be)return;let it=0,Ye=[];const at=new CustomEvent("ionBackButton",{bubbles:!1,detail:{register(Dt,zt){Ye.push({priority:Dt,handler:zt,id:it++})}}});Se.dispatchEvent(at);const mt=function(){var Dt=(0,h.A)(function*(zt){try{if(null!=zt&&zt.handler){const Tt=zt.handler(xt);null!=Tt&&(yield Tt)}}catch(Tt){console.error(Tt)}});return function(Tt){return Dt.apply(this,arguments)}}(),xt=()=>{if(Ye.length>0){let Dt={priority:Number.MIN_SAFE_INTEGER,handler:()=>{},id:-1};Ye.forEach(zt=>{zt.priority>=Dt.priority&&(Dt=zt)}),be=!0,Ye=Ye.filter(zt=>zt.id!==Dt.id),mt(Dt).then(()=>be=!1)}};xt()};if($()){let it;const Ye=()=>{null==it||it.destroy(),it=new c.w.CloseWatcher,it.onclose=()=>{et(),Ye()}};Ye()}else Se.addEventListener("backbutton",et)},Xe=100,tt=99},4920:(Pn,Et,C)=>{"use strict";C.d(Et,{a:()=>Xe,b:()=>tt,c:()=>Z,d:()=>Ye,e:()=>zt,f:()=>it,g:()=>Se,h:()=>$,i:()=>ae,j:()=>at,k:()=>ke,l:()=>et,m:()=>mt,n:()=>Dt,o:()=>Tt,p:()=>xt,r:()=>be,s:()=>It,t:()=>h});const h=(Te,Ze=0)=>new Promise(_e=>{c(Te,Ze,_e)}),c=(Te,Ze=0,_e)=>{let $e,Le;const Oe={passive:!0},kt=()=>{$e&&$e()},Cn=At=>{(void 0===At||Te===At.target)&&(kt(),_e(At))};return Te&&(Te.addEventListener("webkitTransitionEnd",Cn,Oe),Te.addEventListener("transitionend",Cn,Oe),Le=setTimeout(Cn,Ze+500),$e=()=>{void 0!==Le&&(clearTimeout(Le),Le=void 0),Te.removeEventListener("webkitTransitionEnd",Cn,Oe),Te.removeEventListener("transitionend",Cn,Oe)}),kt},Z=(Te,Ze)=>{Te.componentOnReady?Te.componentOnReady().then(_e=>Ze(_e)):be(()=>Ze(Te))},ke=Te=>void 0!==Te.componentOnReady,$=(Te,Ze=[])=>{const _e={};return Ze.forEach($e=>{Te.hasAttribute($e)&&(null!==Te.getAttribute($e)&&(_e[$e]=Te.getAttribute($e)),Te.removeAttribute($e))}),_e},he=["role","aria-activedescendant","aria-atomic","aria-autocomplete","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext"],ae=(Te,Ze)=>{let _e=he;return Ze&&Ze.length>0&&(_e=_e.filter($e=>!Ze.includes($e))),$(Te,_e)},Xe=(Te,Ze,_e,$e)=>{var Le;if(typeof window<"u"){const Oe=window,Ct=null===(Le=null==Oe?void 0:Oe.Ionic)||void 0===Le?void 0:Le.config;if(Ct){const kt=Ct.get("_ael");if(kt)return kt(Te,Ze,_e,$e);if(Ct._ael)return Ct._ael(Te,Ze,_e,$e)}}return Te.addEventListener(Ze,_e,$e)},tt=(Te,Ze,_e,$e)=>{var Le;if(typeof window<"u"){const Oe=window,Ct=null===(Le=null==Oe?void 0:Oe.Ionic)||void 0===Le?void 0:Le.config;if(Ct){const kt=Ct.get("_rel");if(kt)return kt(Te,Ze,_e,$e);if(Ct._rel)return Ct._rel(Te,Ze,_e,$e)}}return Te.removeEventListener(Ze,_e,$e)},Se=(Te,Ze=Te)=>Te.shadowRoot||Ze,be=Te=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(Te):"function"==typeof requestAnimationFrame?requestAnimationFrame(Te):setTimeout(Te),et=Te=>!!Te.shadowRoot&&!!Te.attachShadow,it=Te=>{if(Te.focus(),Te.classList.contains("ion-focusable")){const Ze=Te.closest("ion-app");Ze&&Ze.setFocus([Te])}},Ye=(Te,Ze,_e,$e,Le)=>{if(Te||et(Ze)){let Oe=Ze.querySelector("input.aux-input");Oe||(Oe=Ze.ownerDocument.createElement("input"),Oe.type="hidden",Oe.classList.add("aux-input"),Ze.appendChild(Oe)),Oe.disabled=Le,Oe.name=_e,Oe.value=$e||""}},at=(Te,Ze,_e)=>Math.max(Te,Math.min(Ze,_e)),mt=(Te,Ze)=>{if(!Te){const _e="ASSERT: "+Ze;throw console.error(_e),new Error(_e)}},xt=Te=>{if(Te){const Ze=Te.changedTouches;if(Ze&&Ze.length>0){const _e=Ze[0];return{x:_e.clientX,y:_e.clientY}}if(void 0!==Te.pageX)return{x:Te.pageX,y:Te.pageY}}return{x:0,y:0}},Dt=Te=>{const Ze="rtl"===document.dir;switch(Te){case"start":return Ze;case"end":return!Ze;default:throw new Error(`"${Te}" is not a valid value for [side]. Use "start" or "end" instead.`)}},zt=(Te,Ze)=>{const _e=Te._original||Te;return{_original:Te,emit:Tt(_e.emit.bind(_e),Ze)}},Tt=(Te,Ze=0)=>{let _e;return(...$e)=>{clearTimeout(_e),_e=setTimeout(Te,Ze,...$e)}},It=(Te,Ze)=>{if(null!=Te||(Te={}),null!=Ze||(Ze={}),Te===Ze)return!0;const _e=Object.keys(Te);if(_e.length!==Object.keys(Ze).length)return!1;for(const $e of _e)if(!($e in Ze)||Te[$e]!==Ze[$e])return!1;return!0}},5465:(Pn,Et,C)=>{"use strict";C.d(Et,{m:()=>it});var h=C(467),c=C(8476),Z=C(6411),ke=C(4929),$=C(4920),he=C(3664),ae=C(9986);const Xe=Ye=>(0,ae.c)().duration(Ye?400:300),tt=Ye=>{let at,mt;const xt=Ye.width+8,Dt=(0,ae.c)(),zt=(0,ae.c)();Ye.isEndSide?(at=xt+"px",mt="0px"):(at=-xt+"px",mt="0px"),Dt.addElement(Ye.menuInnerEl).fromTo("transform",`translateX(${at})`,`translateX(${mt})`);const It="ios"===(0,he.b)(Ye),Te=It?.2:.25;return zt.addElement(Ye.backdropEl).fromTo("opacity",.01,Te),Xe(It).addAnimation([Dt,zt])},Se=Ye=>{let at,mt;const xt=(0,he.b)(Ye),Dt=Ye.width;Ye.isEndSide?(at=-Dt+"px",mt=Dt+"px"):(at=Dt+"px",mt=-Dt+"px");const zt=(0,ae.c)().addElement(Ye.menuInnerEl).fromTo("transform",`translateX(${mt})`,"translateX(0px)"),Tt=(0,ae.c)().addElement(Ye.contentEl).fromTo("transform","translateX(0px)",`translateX(${at})`),It=(0,ae.c)().addElement(Ye.backdropEl).fromTo("opacity",.01,.32);return Xe("ios"===xt).addAnimation([zt,Tt,It])},be=Ye=>{const at=(0,he.b)(Ye),mt=Ye.width*(Ye.isEndSide?-1:1)+"px",xt=(0,ae.c)().addElement(Ye.contentEl).fromTo("transform","translateX(0px)",`translateX(${mt})`);return Xe("ios"===at).addAnimation(xt)},it=(()=>{const Ye=new Map,at=[],mt=function(){var X=(0,h.A)(function*(ce){const ue=yield Ze(ce,!0);return!!ue&&ue.open()});return function(ue){return X.apply(this,arguments)}}(),xt=function(){var X=(0,h.A)(function*(ce){const ue=yield void 0!==ce?Ze(ce,!0):_e();return void 0!==ue&&ue.close()});return function(ue){return X.apply(this,arguments)}}(),Dt=function(){var X=(0,h.A)(function*(ce){const ue=yield Ze(ce,!0);return!!ue&&ue.toggle()});return function(ue){return X.apply(this,arguments)}}(),zt=function(){var X=(0,h.A)(function*(ce,ue){const Ee=yield Ze(ue);return Ee&&(Ee.disabled=!ce),Ee});return function(ue,Ee){return X.apply(this,arguments)}}(),Tt=function(){var X=(0,h.A)(function*(ce,ue){const Ee=yield Ze(ue);return Ee&&(Ee.swipeGesture=ce),Ee});return function(ue,Ee){return X.apply(this,arguments)}}(),It=function(){var X=(0,h.A)(function*(ce){if(null!=ce){const ue=yield Ze(ce);return void 0!==ue&&ue.isOpen()}return void 0!==(yield _e())});return function(ue){return X.apply(this,arguments)}}(),Te=function(){var X=(0,h.A)(function*(ce){const ue=yield Ze(ce);return!!ue&&!ue.disabled});return function(ue){return X.apply(this,arguments)}}(),Ze=function(){var X=(0,h.A)(function*(ce,ue=!1){if(yield G(),"start"===ce||"end"===ce){const Ve=at.filter(fn=>fn.side===ce&&!fn.disabled);if(Ve.length>=1)return Ve.length>1&&ue&&(0,ke.p)(`menuController queried for a menu on the "${ce}" side, but ${Ve.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,Ve.map(fn=>fn.el)),Ve[0].el;const ut=at.filter(fn=>fn.side===ce);if(ut.length>=1)return ut.length>1&&ue&&(0,ke.p)(`menuController queried for a menu on the "${ce}" side, but ${ut.length} menus were found. The first menu reference will be used. If this is not the behavior you want then pass the ID of the menu instead of its side.`,ut.map(fn=>fn.el)),ut[0].el}else if(null!=ce)return Re(Ve=>Ve.menuId===ce);return Re(Ve=>!Ve.disabled)||(at.length>0?at[0].el:void 0)});return function(ue){return X.apply(this,arguments)}}(),_e=function(){var X=(0,h.A)(function*(){return yield G(),st()});return function(){return X.apply(this,arguments)}}(),$e=function(){var X=(0,h.A)(function*(){return yield G(),cn()});return function(){return X.apply(this,arguments)}}(),Le=function(){var X=(0,h.A)(function*(){return yield G(),vt()});return function(){return X.apply(this,arguments)}}(),Oe=(X,ce)=>{Ye.set(X,ce)},Cn=function(){var X=(0,h.A)(function*(ce,ue,Ee){if(vt())return!1;if(ue){const Ve=yield _e();Ve&&ce.el!==Ve&&(yield Ve.setOpen(!1,!1))}return ce._setOpen(ue,Ee)});return function(ue,Ee,Ve){return X.apply(this,arguments)}}(),st=()=>Re(X=>X._isOpen),cn=()=>at.map(X=>X.el),vt=()=>at.some(X=>X.isAnimating),Re=X=>{const ce=at.find(X);if(void 0!==ce)return ce.el},G=()=>Promise.all(Array.from(document.querySelectorAll("ion-menu")).map(X=>new Promise(ce=>(0,$.c)(X,ce))));return Oe("reveal",be),Oe("push",Se),Oe("overlay",tt),null==c.d||c.d.addEventListener("ionBackButton",X=>{const ce=st();ce&&X.detail.register(Z.MENU_BACK_BUTTON_PRIORITY,()=>ce.close())}),{registerAnimation:Oe,get:Ze,getMenus:$e,getOpen:_e,isEnabled:Te,swipeGesture:Tt,isAnimating:Le,isOpen:It,enable:zt,toggle:Dt,close:xt,open:mt,_getOpenSync:st,_createAnimation:(X,ce)=>{const ue=Ye.get(X);if(!ue)throw new Error("animation not registered");return ue(ce)},_register:X=>{at.indexOf(X)<0&&at.push(X)},_unregister:X=>{const ce=at.indexOf(X);ce>-1&&at.splice(ce,1)},_setOpen:Cn}})()},8607:(Pn,Et,C)=>{"use strict";C.r(Et),C.d(Et,{GESTURE_CONTROLLER:()=>h.G,createGesture:()=>tt});var h=C(1970);const c=(it,Ye,at,mt)=>{const xt=Z(it)?{capture:!!mt.capture,passive:!!mt.passive}:!!mt.capture;let Dt,zt;return it.__zone_symbol__addEventListener?(Dt="__zone_symbol__addEventListener",zt="__zone_symbol__removeEventListener"):(Dt="addEventListener",zt="removeEventListener"),it[Dt](Ye,at,xt),()=>{it[zt](Ye,at,xt)}},Z=it=>{if(void 0===ke)try{const Ye=Object.defineProperty({},"passive",{get:()=>{ke=!0}});it.addEventListener("optsTest",()=>{},Ye)}catch{ke=!1}return!!ke};let ke;const ae=it=>it instanceof Document?it:it.ownerDocument,tt=it=>{let Ye=!1,at=!1,mt=!0,xt=!1;const Dt=Object.assign({disableScroll:!1,direction:"x",gesturePriority:0,passive:!0,maxAngle:40,threshold:10},it),zt=Dt.canStart,Tt=Dt.onWillStart,It=Dt.onStart,Te=Dt.onEnd,Ze=Dt.notCaptured,_e=Dt.onMove,$e=Dt.threshold,Le=Dt.passive,Oe=Dt.blurOnStart,Ct={type:"pan",startX:0,startY:0,startTime:0,currentX:0,currentY:0,velocityX:0,velocityY:0,deltaX:0,deltaY:0,currentTime:0,event:void 0,data:void 0},kt=((it,Ye,at)=>{const mt=at*(Math.PI/180),xt="x"===it,Dt=Math.cos(mt),zt=Ye*Ye;let Tt=0,It=0,Te=!1,Ze=0;return{start(_e,$e){Tt=_e,It=$e,Ze=0,Te=!0},detect(_e,$e){if(!Te)return!1;const Le=_e-Tt,Oe=$e-It,Ct=Le*Le+Oe*Oe;if(CtDt?1:Cn<-Dt?-1:0,Te=!1,!0},isGesture:()=>0!==Ze,getDirection:()=>Ze}})(Dt.direction,Dt.threshold,Dt.maxAngle),Cn=h.G.createGesture({name:it.gestureName,priority:it.gesturePriority,disableScroll:it.disableScroll}),cn=()=>{Ye&&(xt=!1,_e&&_e(Ct))},vt=()=>!!Cn.capture()&&(Ye=!0,mt=!1,Ct.startX=Ct.currentX,Ct.startY=Ct.currentY,Ct.startTime=Ct.currentTime,Tt?Tt(Ct).then(G):G(),!0),G=()=>{Oe&&(()=>{if(typeof document<"u"){const Ve=document.activeElement;null!=Ve&&Ve.blur&&Ve.blur()}})(),It&&It(Ct),mt=!0},X=()=>{Ye=!1,at=!1,xt=!1,mt=!0,Cn.release()},ce=Ve=>{const ut=Ye,fn=mt;if(X(),fn){if(Se(Ct,Ve),ut)return void(Te&&Te(Ct));Ze&&Ze(Ct)}},ue=((it,Ye,at,mt,xt)=>{let Dt,zt,Tt,It,Te,Ze,_e,$e=0;const Le=Re=>{$e=Date.now()+2e3,Ye(Re)&&(!zt&&at&&(zt=c(it,"touchmove",at,xt)),Tt||(Tt=c(Re.target,"touchend",Ct,xt)),It||(It=c(Re.target,"touchcancel",Ct,xt)))},Oe=Re=>{$e>Date.now()||Ye(Re)&&(!Ze&&at&&(Ze=c(ae(it),"mousemove",at,xt)),_e||(_e=c(ae(it),"mouseup",kt,xt)))},Ct=Re=>{Cn(),mt&&mt(Re)},kt=Re=>{At(),mt&&mt(Re)},Cn=()=>{zt&&zt(),Tt&&Tt(),It&&It(),zt=Tt=It=void 0},At=()=>{Ze&&Ze(),_e&&_e(),Ze=_e=void 0},st=()=>{Cn(),At()},cn=(Re=!0)=>{Re?(Dt||(Dt=c(it,"touchstart",Le,xt)),Te||(Te=c(it,"mousedown",Oe,xt))):(Dt&&Dt(),Te&&Te(),Dt=Te=void 0,st())};return{enable:cn,stop:st,destroy:()=>{cn(!1),mt=at=Ye=void 0}}})(Dt.el,Ve=>{const ut=et(Ve);return!(at||!mt||(be(Ve,Ct),Ct.startX=Ct.currentX,Ct.startY=Ct.currentY,Ct.startTime=Ct.currentTime=ut,Ct.velocityX=Ct.velocityY=Ct.deltaX=Ct.deltaY=0,Ct.event=Ve,zt&&!1===zt(Ct))||(Cn.release(),!Cn.start()))&&(at=!0,0===$e?vt():(kt.start(Ct.startX,Ct.startY),!0))},Ve=>{Ye?!xt&&mt&&(xt=!0,Se(Ct,Ve),requestAnimationFrame(cn)):(Se(Ct,Ve),kt.detect(Ct.currentX,Ct.currentY)&&(!kt.isGesture()||!vt())&&Ee())},ce,{capture:!1,passive:Le}),Ee=()=>{X(),ue.stop(),Ze&&Ze(Ct)};return{enable(Ve=!0){Ve||(Ye&&ce(void 0),X()),ue.enable(Ve)},destroy(){Cn.destroy(),ue.destroy()}}},Se=(it,Ye)=>{if(!Ye)return;const at=it.currentX,mt=it.currentY,xt=it.currentTime;be(Ye,it);const Dt=it.currentX,zt=it.currentY,It=(it.currentTime=et(Ye))-xt;if(It>0&&It<100){const Ze=(zt-mt)/It;it.velocityX=(Dt-at)/It*.7+.3*it.velocityX,it.velocityY=.7*Ze+.3*it.velocityY}it.deltaX=Dt-it.startX,it.deltaY=zt-it.startY,it.event=Ye},be=(it,Ye)=>{let at=0,mt=0;if(it){const xt=it.changedTouches;if(xt&&xt.length>0){const Dt=xt[0];at=Dt.clientX,mt=Dt.clientY}else void 0!==it.pageX&&(at=it.pageX,mt=it.pageY)}Ye.currentX=at,Ye.currentY=mt},et=it=>it.timeStamp||Date.now()},9672:(Pn,Et,C)=>{"use strict";C.d(Et,{B:()=>he,a:()=>je,b:()=>Nr,c:()=>fn,d:()=>Sn,e:()=>vr,f:()=>vt,g:()=>xn,h:()=>st,i:()=>Je,j:()=>hr,k:()=>ae,r:()=>tr,w:()=>ai});var h=C(467);var ke=Object.defineProperty,he={isDev:!1,isBrowser:!0,isServer:!1,isTesting:!1},ae=W=>{const ye=new URL(W,K.$resourcesUrl$);return ye.origin!==Pt.location.origin?ye.href:ye.pathname},Xe={},et=W=>"object"==(W=typeof W)||"function"===W;function it(W){var ye,Fe,ot;return null!=(ot=null==(Fe=null==(ye=W.head)?void 0:ye.querySelector('meta[name="csp-nonce"]'))?void 0:Fe.getAttribute("content"))?ot:void 0}((W,ye)=>{for(var Fe in ye)ke(W,Fe,{get:ye[Fe],enumerable:!0})})({},{err:()=>mt,map:()=>xt,ok:()=>at,unwrap:()=>Dt,unwrapErr:()=>zt});var at=W=>({isOk:!0,isErr:!1,value:W}),mt=W=>({isOk:!1,isErr:!0,value:W});function xt(W,ye){if(W.isOk){const Fe=ye(W.value);return Fe instanceof Promise?Fe.then(ot=>at(ot)):at(Fe)}if(W.isErr)return mt(W.value);throw"should never get here"}var Dt=W=>{if(W.isOk)return W.value;throw W.value},zt=W=>{if(W.isErr)return W.value;throw W.value},Le="s-id",Oe="sty-id",Cn="slot-fb{display:contents}slot-fb[hidden]{display:none}",At="http://www.w3.org/1999/xlink",st=(W,ye,...Fe)=>{let ot=null,Ot=null,wt=null,en=!1,pn=!1;const vn=[],bn=Yn=>{for(let _r=0;_rYn[_r]).join(" "))}}if("function"==typeof W)return W(null===ye?{}:ye,vn,G);const Gn=cn(W,null);return Gn.$attrs$=ye,vn.length>0&&(Gn.$children$=vn),Gn.$key$=Ot,Gn.$name$=wt,Gn},cn=(W,ye)=>({$flags$:0,$tag$:W,$text$:ye,$elm$:null,$children$:null,$attrs$:null,$key$:null,$name$:null}),vt={},G={forEach:(W,ye)=>W.map(X).forEach(ye),map:(W,ye)=>W.map(X).map(ye).map(ce)},X=W=>({vattrs:W.$attrs$,vchildren:W.$children$,vkey:W.$key$,vname:W.$name$,vtag:W.$tag$,vtext:W.$text$}),ce=W=>{if("function"==typeof W.vtag){const Fe={...W.vattrs};return W.vkey&&(Fe.key=W.vkey),W.vname&&(Fe.name=W.vname),st(W.vtag,Fe,...W.vchildren||[])}const ye=cn(W.vtag,W.vtext);return ye.$attrs$=W.vattrs,ye.$children$=W.vchildren,ye.$key$=W.vkey,ye.$name$=W.vname,ye},Ee=(W,ye,Fe,ot,Ot,wt,en)=>{let pn,vn,bn,Gn;if(1===wt.nodeType){for(pn=wt.getAttribute("c-id"),pn&&(vn=pn.split("."),(vn[0]===en||"0"===vn[0])&&(bn={$flags$:0,$hostId$:vn[0],$nodeId$:vn[1],$depth$:vn[2],$index$:vn[3],$tag$:wt.tagName.toLowerCase(),$elm$:wt,$attrs$:null,$children$:null,$key$:null,$name$:null,$text$:null},ye.push(bn),wt.removeAttribute("c-id"),W.$children$||(W.$children$=[]),W.$children$[bn.$index$]=bn,W=bn,ot&&"0"===bn.$depth$&&(ot[bn.$index$]=bn.$elm$))),Gn=wt.childNodes.length-1;Gn>=0;Gn--)Ee(W,ye,Fe,ot,Ot,wt.childNodes[Gn],en);if(wt.shadowRoot)for(Gn=wt.shadowRoot.childNodes.length-1;Gn>=0;Gn--)Ee(W,ye,Fe,ot,Ot,wt.shadowRoot.childNodes[Gn],en)}else if(8===wt.nodeType)vn=wt.nodeValue.split("."),(vn[1]===en||"0"===vn[1])&&(pn=vn[0],bn={$flags$:0,$hostId$:vn[1],$nodeId$:vn[2],$depth$:vn[3],$index$:vn[4],$elm$:wt,$attrs$:null,$children$:null,$key$:null,$name$:null,$tag$:null,$text$:null},"t"===pn?(bn.$elm$=wt.nextSibling,bn.$elm$&&3===bn.$elm$.nodeType&&(bn.$text$=bn.$elm$.textContent,ye.push(bn),wt.remove(),W.$children$||(W.$children$=[]),W.$children$[bn.$index$]=bn,ot&&"0"===bn.$depth$&&(ot[bn.$index$]=bn.$elm$))):bn.$hostId$===en&&("s"===pn?(bn.$tag$="slot",wt["s-sn"]=vn[5]?bn.$name$=vn[5]:"",wt["s-sr"]=!0,ot&&(bn.$elm$=ge.createElement(bn.$tag$),bn.$name$&&bn.$elm$.setAttribute("name",bn.$name$),wt.parentNode.insertBefore(bn.$elm$,wt),wt.remove(),"0"===bn.$depth$&&(ot[bn.$index$]=bn.$elm$)),Fe.push(bn),W.$children$||(W.$children$=[]),W.$children$[bn.$index$]=bn):"r"===pn&&(ot?wt.remove():(Ot["s-cr"]=wt,wt["s-cn"]=!0))));else if(W&&"style"===W.$tag$){const Yn=cn(null,wt.textContent);Yn.$elm$=wt,Yn.$index$="0",W.$children$=[Yn]}},Ve=(W,ye)=>{if(1===W.nodeType){let Fe=0;for(;Feui.push(W),xn=W=>_i(W).$modeName$,Je=W=>_i(W).$hostElement$,Sn=(W,ye,Fe)=>{const ot=Je(W);return{emit:Ot=>kn(ot,ye,{bubbles:!!(4&Fe),composed:!!(2&Fe),cancelable:!!(1&Fe),detail:Ot})}},kn=(W,ye,Fe)=>{const ot=K.ce(ye,Fe);return W.dispatchEvent(ot),ot},On=new WeakMap,or=(W,ye,Fe)=>{let ot=bo.get(W);Dn&&Fe?(ot=ot||new CSSStyleSheet,"string"==typeof ot?ot=ye:ot.replaceSync(ye)):ot=ye,bo.set(W,ot)},gr=(W,ye,Fe)=>{var ot;const Ot=dr(ye,Fe),wt=bo.get(Ot);if(W=11===W.nodeType?W:ge,wt)if("string"==typeof wt){let pn,en=On.get(W=W.head||W);if(en||On.set(W,en=new Set),!en.has(Ot)){if(W.host&&(pn=W.querySelector(`[${Oe}="${Ot}"]`)))pn.innerHTML=wt;else{pn=ge.createElement("style"),pn.innerHTML=wt;const vn=null!=(ot=K.$nonce$)?ot:it(ge);null!=vn&&pn.setAttribute("nonce",vn),W.insertBefore(pn,W.querySelector("link"))}4&ye.$flags$&&(pn.innerHTML+=Cn),en&&en.add(Ot)}}else W.adoptedStyleSheets.includes(wt)||(W.adoptedStyleSheets=[...W.adoptedStyleSheets,wt]);return Ot},dr=(W,ye)=>"sc-"+(ye&&32&W.$flags$?W.$tagName$+"-"+ye:W.$tagName$),nt=W=>W.replace(/\/\*!@([^\/]+)\*\/[^\{]+\{/g,"$1{"),Lt=(W,ye,Fe,ot,Ot,wt)=>{if(Fe!==ot){let en=mo(W,ye),pn=ye.toLowerCase();if("class"===ye){const vn=W.classList,bn=yn(Fe),Gn=yn(ot);vn.remove(...bn.filter(Yn=>Yn&&!Gn.includes(Yn))),vn.add(...Gn.filter(Yn=>Yn&&!bn.includes(Yn)))}else if("style"===ye){for(const vn in Fe)(!ot||null==ot[vn])&&(vn.includes("-")?W.style.removeProperty(vn):W.style[vn]="");for(const vn in ot)(!Fe||ot[vn]!==Fe[vn])&&(vn.includes("-")?W.style.setProperty(vn,ot[vn]):W.style[vn]=ot[vn])}else if("key"!==ye)if("ref"===ye)ot&&ot(W);else if(en||"o"!==ye[0]||"n"!==ye[1]){const vn=et(ot);if((en||vn&&null!==ot)&&!Ot)try{if(W.tagName.includes("-"))W[ye]=ot;else{const Gn=null==ot?"":ot;"list"===ye?en=!1:(null==Fe||W[ye]!=Gn)&&(W[ye]=Gn)}}catch{}let bn=!1;pn!==(pn=pn.replace(/^xlink\:?/,""))&&(ye=pn,bn=!0),null==ot||!1===ot?(!1!==ot||""===W.getAttribute(ye))&&(bn?W.removeAttributeNS(At,ye):W.removeAttribute(ye)):(!en||4&wt||Ot)&&!vn&&(ot=!0===ot?"":ot,bn?W.setAttributeNS(At,ye,ot):W.setAttribute(ye,ot))}else if(ye="-"===ye[2]?ye.slice(3):mo(Pt,pn)?pn.slice(2):pn[2]+ye.slice(3),Fe||ot){const vn=ye.endsWith(En);ye=ye.replace(Fr,""),Fe&&K.rel(W,ye,Fe,vn),ot&&K.ael(W,ye,ot,vn)}}},Xt=/\s/,yn=W=>W?W.split(Xt):[],En="Capture",Fr=new RegExp(En+"$"),Vn=(W,ye,Fe)=>{const ot=11===ye.$elm$.nodeType&&ye.$elm$.host?ye.$elm$.host:ye.$elm$,Ot=W&&W.$attrs$||Xe,wt=ye.$attrs$||Xe;for(const en of $n(Object.keys(Ot)))en in wt||Lt(ot,en,Ot[en],void 0,Fe,ye.$flags$);for(const en of $n(Object.keys(wt)))Lt(ot,en,Ot[en],wt[en],Fe,ye.$flags$)};function $n(W){return W.includes("ref")?[...W.filter(ye=>"ref"!==ye),"ref"]:W}var In,on,mr,br=!1,Vr=!1,rr=!1,Mr=!1,sr=(W,ye,Fe,ot)=>{var Ot;const wt=ye.$children$[Fe];let pn,vn,bn,en=0;if(br||(rr=!0,"slot"===wt.$tag$&&(In&&ot.classList.add(In+"-s"),wt.$flags$|=wt.$children$?2:1)),null!==wt.$text$)pn=wt.$elm$=ge.createTextNode(wt.$text$);else if(1&wt.$flags$)pn=wt.$elm$=ge.createTextNode("");else{if(Mr||(Mr="svg"===wt.$tag$),pn=wt.$elm$=ge.createElementNS(Mr?"http://www.w3.org/2000/svg":"http://www.w3.org/1999/xhtml",2&wt.$flags$?"slot-fb":wt.$tag$),Mr&&"foreignObject"===wt.$tag$&&(Mr=!1),Vn(null,wt,Mr),(W=>null!=W)(In)&&pn["s-si"]!==In&&pn.classList.add(pn["s-si"]=In),wt.$children$)for(en=0;en{K.$flags$|=1;const ye=W.closest(mr.toLowerCase());if(null!=ye){const Fe=Array.from(ye.childNodes).find(Ot=>Ot["s-cr"]),ot=Array.from(W.childNodes);for(const Ot of Fe?ot.reverse():ot)null!=Ot["s-sh"]&&(Ie(ye,Ot,null!=Fe?Fe:null),Ot["s-sh"]=void 0,rr=!0)}K.$flags$&=-2},Tr=(W,ye)=>{K.$flags$|=1;const Fe=Array.from(W.childNodes);if(W["s-sr"]){let ot=W;for(;ot=ot.nextSibling;)ot&&ot["s-sn"]===W["s-sn"]&&ot["s-sh"]===mr&&Fe.push(ot)}for(let ot=Fe.length-1;ot>=0;ot--){const Ot=Fe[ot];Ot["s-hn"]!==mr&&Ot["s-ol"]&&(Ie(Di(Ot),Ot,li(Ot)),Ot["s-ol"].remove(),Ot["s-ol"]=void 0,Ot["s-sh"]=void 0,rr=!0),ye&&Tr(Ot,ye)}K.$flags$&=-2},yr=(W,ye,Fe,ot,Ot,wt)=>{let pn,en=W["s-cr"]&&W["s-cr"].parentNode||W;for(en.shadowRoot&&en.tagName===mr&&(en=en.shadowRoot);Ot<=wt;++Ot)ot[Ot]&&(pn=sr(null,Fe,Ot,W),pn&&(ot[Ot].$elm$=pn,Ie(en,pn,li(ye))))},Br=(W,ye,Fe)=>{for(let ot=ye;ot<=Fe;++ot){const Ot=W[ot];if(Ot){const wt=Ot.$elm$;de(Ot),wt&&(Vr=!0,wt["s-ol"]?wt["s-ol"].remove():Tr(wt,!0),wt.remove())}}},Lr=(W,ye,Fe=!1)=>W.$tag$===ye.$tag$&&("slot"===W.$tag$?W.$name$===ye.$name$:!!Fe||W.$key$===ye.$key$),li=W=>W&&W["s-ol"]||W,Di=W=>(W["s-ol"]?W["s-ol"]:W).parentNode,Zr=(W,ye,Fe=!1)=>{const ot=ye.$elm$=W.$elm$,Ot=W.$children$,wt=ye.$children$,en=ye.$tag$,pn=ye.$text$;let vn;null===pn?(Mr="svg"===en||"foreignObject"!==en&&Mr,"slot"!==en||br?Vn(W,ye,Mr):W.$name$!==ye.$name$&&(ye.$elm$["s-sn"]=ye.$name$||"",ii(ye.$elm$.parentElement)),null!==Ot&&null!==wt?((W,ye,Fe,ot,Ot=!1)=>{let Wr,kr,wt=0,en=0,pn=0,vn=0,bn=ye.length-1,Gn=ye[0],Yn=ye[bn],_r=ot.length-1,Kn=ot[0],Qr=ot[_r];for(;wt<=bn&&en<=_r;)if(null==Gn)Gn=ye[++wt];else if(null==Yn)Yn=ye[--bn];else if(null==Kn)Kn=ot[++en];else if(null==Qr)Qr=ot[--_r];else if(Lr(Gn,Kn,Ot))Zr(Gn,Kn,Ot),Gn=ye[++wt],Kn=ot[++en];else if(Lr(Yn,Qr,Ot))Zr(Yn,Qr,Ot),Yn=ye[--bn],Qr=ot[--_r];else if(Lr(Gn,Qr,Ot))("slot"===Gn.$tag$||"slot"===Qr.$tag$)&&Tr(Gn.$elm$.parentNode,!1),Zr(Gn,Qr,Ot),Ie(W,Gn.$elm$,Yn.$elm$.nextSibling),Gn=ye[++wt],Qr=ot[--_r];else if(Lr(Yn,Kn,Ot))("slot"===Gn.$tag$||"slot"===Qr.$tag$)&&Tr(Yn.$elm$.parentNode,!1),Zr(Yn,Kn,Ot),Ie(W,Yn.$elm$,Gn.$elm$),Yn=ye[--bn],Kn=ot[++en];else{for(pn=-1,vn=wt;vn<=bn;++vn)if(ye[vn]&&null!==ye[vn].$key$&&ye[vn].$key$===Kn.$key$){pn=vn;break}pn>=0?(kr=ye[pn],kr.$tag$!==Kn.$tag$?Wr=sr(ye&&ye[en],Fe,pn,W):(Zr(kr,Kn,Ot),ye[pn]=void 0,Wr=kr.$elm$),Kn=ot[++en]):(Wr=sr(ye&&ye[en],Fe,en,W),Kn=ot[++en]),Wr&&Ie(Di(Gn.$elm$),Wr,li(Gn.$elm$))}wt>bn?yr(W,null==ot[_r+1]?null:ot[_r+1].$elm$,Fe,ot,en,_r):en>_r&&Br(ye,wt,bn)})(ot,Ot,ye,wt,Fe):null!==wt?(null!==W.$text$&&(ot.textContent=""),yr(ot,null,ye,wt,0,wt.length-1)):null!==Ot&&Br(Ot,0,Ot.length-1),Mr&&"svg"===en&&(Mr=!1)):(vn=ot["s-cr"])?vn.parentNode.textContent=pn:W.$text$!==pn&&(ot.data=pn)},ve=W=>{const ye=W.childNodes;for(const Fe of ye)if(1===Fe.nodeType){if(Fe["s-sr"]){const ot=Fe["s-sn"];Fe.hidden=!1;for(const Ot of ye)if(Ot!==Fe)if(Ot["s-hn"]!==Fe["s-hn"]||""!==ot){if(1===Ot.nodeType&&(ot===Ot.getAttribute("slot")||ot===Ot["s-sn"])||3===Ot.nodeType&&ot===Ot["s-sn"]){Fe.hidden=!0;break}}else if(1===Ot.nodeType||3===Ot.nodeType&&""!==Ot.textContent.trim()){Fe.hidden=!0;break}}ve(Fe)}},rt=[],Nt=W=>{let ye,Fe,ot;for(const Ot of W.childNodes){if(Ot["s-sr"]&&(ye=Ot["s-cr"])&&ye.parentNode){Fe=ye.parentNode.childNodes;const wt=Ot["s-sn"];for(ot=Fe.length-1;ot>=0;ot--)if(ye=Fe[ot],!(ye["s-cn"]||ye["s-nr"]||ye["s-hn"]===Ot["s-hn"]||ye["s-sh"]&&ye["s-sh"]===Ot["s-hn"]))if(pt(ye,wt)){let en=rt.find(pn=>pn.$nodeToRelocate$===ye);Vr=!0,ye["s-sn"]=ye["s-sn"]||wt,en?(en.$nodeToRelocate$["s-sh"]=Ot["s-hn"],en.$slotRefNode$=Ot):(ye["s-sh"]=Ot["s-hn"],rt.push({$slotRefNode$:Ot,$nodeToRelocate$:ye})),ye["s-sr"]&&rt.map(pn=>{pt(pn.$nodeToRelocate$,ye["s-sn"])&&(en=rt.find(vn=>vn.$nodeToRelocate$===ye),en&&!pn.$slotRefNode$&&(pn.$slotRefNode$=en.$slotRefNode$))})}else rt.some(en=>en.$nodeToRelocate$===ye)||rt.push({$nodeToRelocate$:ye})}1===Ot.nodeType&&Nt(Ot)}},pt=(W,ye)=>1===W.nodeType?null===W.getAttribute("slot")&&""===ye||W.getAttribute("slot")===ye:W["s-sn"]===ye||""===ye,de=W=>{W.$attrs$&&W.$attrs$.ref&&W.$attrs$.ref(null),W.$children$&&W.$children$.map(de)},Ie=(W,ye,Fe)=>{const ot=null==W?void 0:W.insertBefore(ye,Fe);return $t(ye,W),ot},Ge=W=>W?W["s-rsc"]||W["s-si"]||W["s-sc"]||Ge(W.parentElement):void 0,$t=(W,ye)=>{var Fe,ot,Ot;if(W&&ye){const wt=W["s-rsc"],en=Ge(ye);wt&&null!=(Fe=W.classList)&&Fe.contains(wt)&&W.classList.remove(wt),en&&(W["s-rsc"]=en,(null==(ot=W.classList)||!ot.contains(en))&&(null==(Ot=W.classList)||Ot.add(en)))}},gt=(W,ye)=>{ye&&!W.$onRenderResolve$&&ye["s-p"]&&ye["s-p"].push(new Promise(Fe=>W.$onRenderResolve$=Fe))},ft=(W,ye)=>{if(W.$flags$|=16,!(4&W.$flags$))return gt(W,W.$ancestorComponent$),ai(()=>Qt(W,ye));W.$flags$|=512},Qt=(W,ye)=>{const ot=W.$lazyInstance$;let Ot;return ye&&(W.$flags$|=256,W.$queuedListeners$&&(W.$queuedListeners$.map(([wt,en])=>fr(ot,wt,en)),W.$queuedListeners$=void 0),Ot=fr(ot,"componentWillLoad")),Ot=sn(Ot,()=>fr(ot,"componentWillRender")),sn(Ot,()=>Xn(W,ot,ye))},sn=(W,ye)=>Tn(W)?W.then(ye):ye(),Tn=W=>W instanceof Promise||W&&W.then&&"function"==typeof W.then,Xn=function(){var W=(0,h.A)(function*(ye,Fe,ot){var Ot;const wt=ye.$hostElement$,pn=wt["s-rc"];ot&&(W=>{const ye=W.$cmpMeta$,Fe=W.$hostElement$,ot=ye.$flags$,wt=gr(Fe.shadowRoot?Fe.shadowRoot:Fe.getRootNode(),ye,W.$modeName$);10&ot&&(Fe["s-sc"]=wt,Fe.classList.add(wt+"-h"),2&ot&&Fe.classList.add(wt+"-s"))})(ye);dn(ye,Fe,wt,ot),pn&&(pn.map(bn=>bn()),wt["s-rc"]=void 0);{const bn=null!=(Ot=wt["s-p"])?Ot:[],Gn=()=>wn(ye);0===bn.length?Gn():(Promise.all(bn).then(Gn),ye.$flags$|=4,bn.length=0)}});return function(Fe,ot,Ot){return W.apply(this,arguments)}}(),dn=(W,ye,Fe,ot)=>{try{ye=ye.render&&ye.render(),W.$flags$&=-17,W.$flags$|=2,((W,ye,Fe=!1)=>{var ot,Ot,wt,en,pn;const vn=W.$hostElement$,bn=W.$cmpMeta$,Gn=W.$vnode$||cn(null,null),Yn=(W=>W&&W.$tag$===vt)(ye)?ye:st(null,null,ye);if(mr=vn.tagName,bn.$attrsToReflect$&&(Yn.$attrs$=Yn.$attrs$||{},bn.$attrsToReflect$.map(([_r,Kn])=>Yn.$attrs$[Kn]=vn[_r])),Fe&&Yn.$attrs$)for(const _r of Object.keys(Yn.$attrs$))vn.hasAttribute(_r)&&!["key","ref","style","class"].includes(_r)&&(Yn.$attrs$[_r]=vn[_r]);if(Yn.$tag$=null,Yn.$flags$|=4,W.$vnode$=Yn,Yn.$elm$=Gn.$elm$=vn.shadowRoot||vn,In=vn["s-sc"],br=!!(1&bn.$flags$),on=vn["s-cr"],Vr=!1,Zr(Gn,Yn,Fe),K.$flags$|=1,rr){Nt(Yn.$elm$);for(const _r of rt){const Kn=_r.$nodeToRelocate$;if(!Kn["s-ol"]){const Qr=ge.createTextNode("");Qr["s-nr"]=Kn,Ie(Kn.parentNode,Kn["s-ol"]=Qr,Kn)}}for(const _r of rt){const Kn=_r.$nodeToRelocate$,Qr=_r.$slotRefNode$;if(Qr){const Wr=Qr.parentNode;let kr=Qr.nextSibling;if(kr&&1===kr.nodeType){let ki=null==(ot=Kn["s-ol"])?void 0:ot.previousSibling;for(;ki;){let Fi=null!=(Ot=ki["s-nr"])?Ot:null;if(Fi&&Fi["s-sn"]===Kn["s-sn"]&&Wr===Fi.parentNode){for(Fi=Fi.nextSibling;Fi===Kn||null!=Fi&&Fi["s-sr"];)Fi=null==Fi?void 0:Fi.nextSibling;if(!Fi||!Fi["s-nr"]){kr=Fi;break}}ki=ki.previousSibling}}(!kr&&Wr!==Kn.parentNode||Kn.nextSibling!==kr)&&Kn!==kr&&(Ie(Wr,Kn,kr),1===Kn.nodeType&&(Kn.hidden=null!=(wt=Kn["s-ih"])&&wt)),Kn&&"function"==typeof Qr["s-rf"]&&Qr["s-rf"](Kn)}else 1===Kn.nodeType&&(Fe&&(Kn["s-ih"]=null!=(en=Kn.hidden)&&en),Kn.hidden=!0)}}if(Vr&&ve(Yn.$elm$),K.$flags$&=-2,rt.length=0,2&bn.$flags$)for(const _r of Yn.$elm$.childNodes)_r["s-hn"]!==mr&&!_r["s-sh"]&&(Fe&&null==_r["s-ih"]&&(_r["s-ih"]=null!=(pn=_r.hidden)&&pn),_r.hidden=!0);on=void 0})(W,ye,ot)}catch(Ot){fi(Ot,W.$hostElement$)}return null},wn=W=>{const Fe=W.$hostElement$,Ot=W.$lazyInstance$,wt=W.$ancestorComponent$;fr(Ot,"componentDidRender"),64&W.$flags$?fr(Ot,"componentDidUpdate"):(W.$flags$|=64,Ur(Fe),fr(Ot,"componentDidLoad"),W.$onReadyResolve$(Fe),wt||wr()),W.$onInstanceResolve$(Fe),W.$onRenderResolve$&&(W.$onRenderResolve$(),W.$onRenderResolve$=void 0),512&W.$flags$&&dt(()=>ft(W,!1)),W.$flags$&=-517},hr=W=>{{const ye=_i(W),Fe=ye.$hostElement$.isConnected;return Fe&&2==(18&ye.$flags$)&&ft(ye,!1),Fe}},wr=W=>{Ur(ge.documentElement),dt(()=>kn(Pt,"appload",{detail:{namespace:"ionic"}}))},fr=(W,ye,Fe)=>{if(W&&W[ye])try{return W[ye](Fe)}catch(ot){fi(ot)}},Ur=W=>W.classList.add("hydrated"),xi=(W,ye,Fe)=>{var ot;const Ot=W.prototype;if(ye.$members$){W.watchers&&(ye.$watchers$=W.watchers);const wt=Object.entries(ye.$members$);if(wt.map(([en,[pn]])=>{31&pn||2&Fe&&32&pn?Object.defineProperty(Ot,en,{get(){return((W,ye)=>_i(this).$instanceValues$.get(ye))(0,en)},set(vn){((W,ye,Fe,ot)=>{const Ot=_i(W);if(!Ot)throw new Error(`Couldn't find host element for "${ot.$tagName$}" as it is unknown to this Stencil runtime. This usually happens when integrating a 3rd party Stencil component with another Stencil component or application. Please reach out to the maintainers of the 3rd party Stencil component or report this on the Stencil Discord server (https://chat.stenciljs.com) or comment on this similar [GitHub issue](https://github.com/ionic-team/stencil/issues/5457).`);const wt=Ot.$hostElement$,en=Ot.$instanceValues$.get(ye),pn=Ot.$flags$,vn=Ot.$lazyInstance$;Fe=((W,ye)=>null==W||et(W)?W:4&ye?"false"!==W&&(""===W||!!W):2&ye?parseFloat(W):1&ye?String(W):W)(Fe,ot.$members$[ye][0]);const bn=Number.isNaN(en)&&Number.isNaN(Fe);if((!(8&pn)||void 0===en)&&Fe!==en&&!bn&&(Ot.$instanceValues$.set(ye,Fe),vn)){if(ot.$watchers$&&128&pn){const Yn=ot.$watchers$[ye];Yn&&Yn.map(_r=>{try{vn[_r](Fe,en,ye)}catch(Kn){fi(Kn,wt)}})}2==(18&pn)&&ft(Ot,!1)}})(this,en,vn,ye)},configurable:!0,enumerable:!0}):1&Fe&&64&pn&&Object.defineProperty(Ot,en,{value(...vn){var bn;const Gn=_i(this);return null==(bn=null==Gn?void 0:Gn.$onInstancePromise$)?void 0:bn.then(()=>{var Yn;return null==(Yn=Gn.$lazyInstance$)?void 0:Yn[en](...vn)})}})}),1&Fe){const en=new Map;Ot.attributeChangedCallback=function(pn,vn,bn){K.jmp(()=>{var Gn;const Yn=en.get(pn);if(this.hasOwnProperty(Yn))bn=this[Yn],delete this[Yn];else{if(Ot.hasOwnProperty(Yn)&&"number"==typeof this[Yn]&&this[Yn]==bn)return;if(null==Yn){const _r=_i(this),Kn=null==_r?void 0:_r.$flags$;if(Kn&&!(8&Kn)&&128&Kn&&bn!==vn){const Qr=_r.$lazyInstance$,Wr=null==(Gn=ye.$watchers$)?void 0:Gn[pn];null==Wr||Wr.forEach(kr=>{null!=Qr[kr]&&Qr[kr].call(Qr,bn,vn,pn)})}return}}this[Yn]=(null!==bn||"boolean"!=typeof this[Yn])&&bn})},W.observedAttributes=Array.from(new Set([...Object.keys(null!=(ot=ye.$watchers$)?ot:{}),...wt.filter(([pn,vn])=>15&vn[0]).map(([pn,vn])=>{var bn;const Gn=vn[1]||pn;return en.set(Gn,pn),512&vn[0]&&(null==(bn=ye.$attrsToReflect$)||bn.push([pn,Gn])),Gn})]))}}return W},vi=function(){var W=(0,h.A)(function*(ye,Fe,ot,Ot){let wt;if(!(32&Fe.$flags$)){if(Fe.$flags$|=32,ot.$lazyBundleId$){if(wt=vo(ot),wt.then){const Gn=()=>{};wt=yield wt,Gn()}wt.isProxied||(ot.$watchers$=wt.watchers,xi(wt,ot,2),wt.isProxied=!0);const bn=()=>{};Fe.$flags$|=8;try{new wt(Fe)}catch(Gn){fi(Gn)}Fe.$flags$&=-9,Fe.$flags$|=128,bn(),Ar(Fe.$lazyInstance$)}else wt=ye.constructor,customElements.whenDefined(ot.$tagName$).then(()=>Fe.$flags$|=128);if(wt.style){let bn=wt.style;"string"!=typeof bn&&(bn=bn[Fe.$modeName$=(W=>ui.map(ye=>ye(W)).find(ye=>!!ye))(ye)]);const Gn=dr(ot,Fe.$modeName$);if(!bo.has(Gn)){const Yn=()=>{};or(Gn,bn,!!(1&ot.$flags$)),Yn()}}}const en=Fe.$ancestorComponent$,pn=()=>ft(Fe,!0);en&&en["s-rc"]?en["s-rc"].push(pn):pn()});return function(Fe,ot,Ot,wt){return W.apply(this,arguments)}}(),Ar=W=>{fr(W,"connectedCallback")},ie=W=>{const ye=W["s-cr"]=ge.createComment("");ye["s-cn"]=!0,Ie(W,ye,W.firstChild)},te=W=>{fr(W,"disconnectedCallback")},ze=function(){var W=(0,h.A)(function*(ye){if(!(1&K.$flags$)){const Fe=_i(ye);Fe.$rmListeners$&&(Fe.$rmListeners$.map(ot=>ot()),Fe.$rmListeners$=void 0),null!=Fe&&Fe.$lazyInstance$?te(Fe.$lazyInstance$):null!=Fe&&Fe.$onReadyPromise$&&Fe.$onReadyPromise$.then(()=>te(Fe.$lazyInstance$))}});return function(Fe){return W.apply(this,arguments)}}(),O=W=>{const ye=W.cloneNode;W.cloneNode=function(Fe){const ot=this,Ot=ot.shadowRoot&&Be,wt=ye.call(ot,!!Ot&&Fe);if(!Ot&&Fe){let pn,vn,en=0;const bn=["s-id","s-cr","s-lr","s-rc","s-sc","s-p","s-cn","s-sr","s-sn","s-hn","s-ol","s-nr","s-si","s-rf","s-rsc"];for(;en!ot.childNodes[en][Gn]),pn&&(wt.__appendChild?wt.__appendChild(pn.cloneNode(!0)):wt.appendChild(pn.cloneNode(!0))),vn&&wt.appendChild(ot.childNodes[en].cloneNode(!0))}return wt}},re=W=>{W.__appendChild=W.appendChild,W.appendChild=function(ye){const Fe=ye["s-sn"]=zr(ye),ot=$r(this.childNodes,Fe,this.tagName);if(ot){const Ot=Pr(ot,Fe),wt=Ot[Ot.length-1],en=Ie(wt.parentNode,ye,wt.nextSibling);return ve(this),en}return this.__appendChild(ye)}},we=W=>{W.__removeChild=W.removeChild,W.removeChild=function(ye){if(ye&&typeof ye["s-sn"]<"u"){const Fe=$r(this.childNodes,ye["s-sn"],this.tagName);if(Fe){const Ot=Pr(Fe,ye["s-sn"]).find(wt=>wt===ye);if(Ot)return Ot.remove(),void ve(this)}}return this.__removeChild(ye)}},We=W=>{const ye=W.prepend;W.prepend=function(...Fe){Fe.forEach(ot=>{"string"==typeof ot&&(ot=this.ownerDocument.createTextNode(ot));const Ot=ot["s-sn"]=zr(ot),wt=$r(this.childNodes,Ot,this.tagName);if(wt){const en=document.createTextNode("");en["s-nr"]=ot,wt["s-cr"].parentNode.__appendChild(en),ot["s-ol"]=en;const vn=Pr(wt,Ot)[0];return Ie(vn.parentNode,ot,vn.nextSibling)}return 1===ot.nodeType&&ot.getAttribute("slot")&&(ot.hidden=!0),ye.call(this,ot)})}},St=W=>{W.append=function(...ye){ye.forEach(Fe=>{"string"==typeof Fe&&(Fe=this.ownerDocument.createTextNode(Fe)),this.appendChild(Fe)})}},nn=W=>{const ye=W.insertAdjacentHTML;W.insertAdjacentHTML=function(Fe,ot){if("afterbegin"!==Fe&&"beforeend"!==Fe)return ye.call(this,Fe,ot);const Ot=this.ownerDocument.createElement("_");let wt;if(Ot.innerHTML=ot,"afterbegin"===Fe)for(;wt=Ot.firstChild;)this.prepend(wt);else if("beforeend"===Fe)for(;wt=Ot.firstChild;)this.append(wt)}},rn=W=>{W.insertAdjacentText=function(ye,Fe){this.insertAdjacentHTML(ye,Fe)}},pr=W=>{const ye=W.insertAdjacentElement;W.insertAdjacentElement=function(Fe,ot){return"afterbegin"!==Fe&&"beforeend"!==Fe?ye.call(this,Fe,ot):"afterbegin"===Fe?(this.prepend(ot),ot):("beforeend"===Fe&&this.append(ot),ot)}},qn=W=>{const ye=Object.getOwnPropertyDescriptor(Node.prototype,"textContent");Object.defineProperty(W,"__textContent",ye),Object.defineProperty(W,"textContent",{get(){return" "+jn(this.childNodes).map(Ot=>{var wt,en;const pn=[];let vn=Ot.nextSibling;for(;vn&&vn["s-sn"]===Ot["s-sn"];)(3===vn.nodeType||1===vn.nodeType)&&pn.push(null!=(en=null==(wt=vn.textContent)?void 0:wt.trim())?en:""),vn=vn.nextSibling;return pn.filter(bn=>""!==bn).join(" ")}).filter(Ot=>""!==Ot).join(" ")+" "},set(Fe){jn(this.childNodes).forEach(Ot=>{let wt=Ot.nextSibling;for(;wt&&wt["s-sn"]===Ot["s-sn"];){const en=wt;wt=wt.nextSibling,en.remove()}if(""===Ot["s-sn"]){const en=this.ownerDocument.createTextNode(Fe);en["s-sn"]="",Ie(Ot.parentElement,en,Ot.nextSibling)}else Ot.remove()})}})},Sr=(W,ye)=>{class Fe extends Array{item(Ot){return this[Ot]}}if(8&ye.$flags$){const ot=W.__lookupGetter__("childNodes");Object.defineProperty(W,"children",{get(){return this.childNodes.map(Ot=>1===Ot.nodeType)}}),Object.defineProperty(W,"childElementCount",{get:()=>W.children.length}),Object.defineProperty(W,"childNodes",{get(){const Ot=ot.call(this);if(!(1&K.$flags$)&&2&_i(this).$flags$){const wt=new Fe;for(let en=0;en{const ye=[];for(const Fe of Array.from(W))Fe["s-sr"]&&ye.push(Fe),ye.push(...jn(Fe.childNodes));return ye},zr=W=>W["s-sn"]||1===W.nodeType&&W.getAttribute("slot")||"",$r=(W,ye,Fe)=>{let Ot,ot=0;for(;ot{const Fe=[W];for(;(W=W.nextSibling)&&W["s-sn"]===ye;)Fe.push(W);return Fe},Nr=(W,ye={})=>{var Fe;const Ot=[],wt=ye.exclude||[],en=Pt.customElements,pn=ge.head,vn=pn.querySelector("meta[charset]"),bn=ge.createElement("style"),Gn=[],Yn=ge.querySelectorAll(`[${Oe}]`);let _r,Kn=!0,Qr=0;for(Object.assign(K,ye),K.$resourcesUrl$=new URL(ye.resourcesUrl||"./",ge.baseURI).href,K.$flags$|=2;Qr{kr[1].map(ki=>{var Fi;const Bi={$flags$:ki[0],$tagName$:ki[1],$members$:ki[2],$listeners$:ki[3]};4&Bi.$flags$&&(Wr=!0),Bi.$members$=ki[2],Bi.$listeners$=ki[3],Bi.$attrsToReflect$=[],Bi.$watchers$=null!=(Fi=ki[4])?Fi:{};const yo=Bi.$tagName$,Jo=class extends HTMLElement{constructor(Kr){super(Kr),Zn(Kr=this,Bi),1&Bi.$flags$&&Kr.attachShadow({mode:"open",delegatesFocus:!!(16&Bi.$flags$)})}connectedCallback(){_r&&(clearTimeout(_r),_r=null),Kn?Gn.push(this):K.jmp(()=>(W=>{if(!(1&K.$flags$)){const ye=_i(W),Fe=ye.$cmpMeta$,ot=()=>{};if(1&ye.$flags$)er(W,ye,Fe.$listeners$),null!=ye&&ye.$lazyInstance$?Ar(ye.$lazyInstance$):null!=ye&&ye.$onReadyPromise$&&ye.$onReadyPromise$.then(()=>Ar(ye.$lazyInstance$));else{let Ot;if(ye.$flags$|=1,Ot=W.getAttribute(Le),Ot){if(1&Fe.$flags$){const wt=gr(W.shadowRoot,Fe,W.getAttribute("s-mode"));W.classList.remove(wt+"-h",wt+"-s")}((W,ye,Fe,ot)=>{const wt=W.shadowRoot,en=[],vn=wt?[]:null,bn=ot.$vnode$=cn(ye,null);K.$orgLocNodes$||Ve(ge.body,K.$orgLocNodes$=new Map),W[Le]=Fe,W.removeAttribute(Le),Ee(bn,en,[],vn,W,W,Fe),en.map(Gn=>{const Yn=Gn.$hostId$+"."+Gn.$nodeId$,_r=K.$orgLocNodes$.get(Yn),Kn=Gn.$elm$;_r&&Be&&""===_r["s-en"]&&_r.parentNode.insertBefore(Kn,_r.nextSibling),wt||(Kn["s-hn"]=ye,_r&&(Kn["s-ol"]=_r,Kn["s-ol"]["s-nr"]=Kn)),K.$orgLocNodes$.delete(Yn)}),wt&&vn.map(Gn=>{Gn&&wt.appendChild(Gn)})})(W,Fe.$tagName$,Ot,ye)}Ot||12&Fe.$flags$&&ie(W);{let wt=W;for(;wt=wt.parentNode||wt.host;)if(1===wt.nodeType&&wt.hasAttribute("s-id")&&wt["s-p"]||wt["s-p"]){gt(ye,ye.$ancestorComponent$=wt);break}}Fe.$members$&&Object.entries(Fe.$members$).map(([wt,[en]])=>{if(31&en&&W.hasOwnProperty(wt)){const pn=W[wt];delete W[wt],W[wt]=pn}}),vi(W,ye,Fe)}ot()}})(this))}disconnectedCallback(){K.jmp(()=>ze(this))}componentOnReady(){return _i(this).$onReadyPromise$}};2&Bi.$flags$&&((W,ye)=>{O(W),re(W),St(W),We(W),pr(W),nn(W),rn(W),qn(W),Sr(W,ye),we(W)})(Jo.prototype,Bi),Bi.$lazyBundleId$=kr[0],!wt.includes(yo)&&!en.get(yo)&&(Ot.push(yo),en.define(yo,xi(Jo,Bi,1)))})}),Ot.length>0&&(Wr&&(bn.textContent+=Cn),bn.textContent+=Ot+"{visibility:hidden}.hydrated{visibility:inherit}",bn.innerHTML.length)){bn.setAttribute("data-styles","");const kr=null!=(Fe=K.$nonce$)?Fe:it(ge);null!=kr&&bn.setAttribute("nonce",kr),pn.insertBefore(bn,vn?vn.nextSibling:pn.firstChild)}Kn=!1,Gn.length?Gn.map(kr=>kr.connectedCallback()):K.jmp(()=>_r=setTimeout(wr,30))},er=(W,ye,Fe,ot)=>{Fe&&Fe.map(([Ot,wt,en])=>{const pn=di(W,Ot),vn=Rr(ye,en),bn=hi(Ot);K.ael(pn,wt,vn,bn),(ye.$rmListeners$=ye.$rmListeners$||[]).push(()=>K.rel(pn,wt,vn,bn))})},Rr=(W,ye)=>Fe=>{try{256&W.$flags$?W.$lazyInstance$[ye](Fe):(W.$queuedListeners$=W.$queuedListeners$||[]).push([ye,Fe])}catch(ot){fi(ot)}},di=(W,ye)=>4&ye?ge:8&ye?Pt:16&ye?ge.body:W,hi=W=>ct?{passive:!!(1&W),capture:!!(2&W)}:!!(2&W),Hr=new WeakMap,_i=W=>Hr.get(W),tr=(W,ye)=>Hr.set(ye.$lazyInstance$=W,ye),Zn=(W,ye)=>{const Fe={$flags$:0,$hostElement$:W,$cmpMeta$:ye,$instanceValues$:new Map};return Fe.$onInstancePromise$=new Promise(ot=>Fe.$onInstanceResolve$=ot),Fe.$onReadyPromise$=new Promise(ot=>Fe.$onReadyResolve$=ot),W["s-p"]=[],W["s-rc"]=[],er(W,Fe,ye.$listeners$),Hr.set(W,Fe)},mo=(W,ye)=>ye in W,fi=(W,ye)=>(0,console.error)(W,ye),yi=new Map,vo=(W,ye,Fe)=>{const ot=W.$tagName$.replace(/-/g,"_"),Ot=W.$lazyBundleId$,wt=yi.get(Ot);return wt?wt[ot]:C(8996)(`./${Ot}.entry.js`).then(en=>(yi.set(Ot,en),en[ot]),fi)},bo=new Map,ui=[],Pt=typeof window<"u"?window:{},ge=Pt.document||{head:{}},K={$flags$:0,$resourcesUrl$:"",jmp:W=>W(),raf:W=>requestAnimationFrame(W),ael:(W,ye,Fe,ot)=>W.addEventListener(ye,Fe,ot),rel:(W,ye,Fe,ot)=>W.removeEventListener(ye,Fe,ot),ce:(W,ye)=>new CustomEvent(W,ye)},je=W=>{Object.assign(K,W)},Be=!0,ct=(()=>{let W=!1;try{ge.addEventListener("e",null,Object.defineProperty({},"passive",{get(){W=!0}}))}catch{}return W})(),Dn=(()=>{try{return new CSSStyleSheet,"function"==typeof(new CSSStyleSheet).replaceSync}catch{}return!1})(),Hn=!1,w=[],H=[],oe=(W,ye)=>Fe=>{W.push(Fe),Hn||(Hn=!0,ye&&4&K.$flags$?dt(Ce):K.raf(Ce))},P=W=>{for(let ye=0;ye{P(w),P(H),(Hn=w.length>0)&&K.raf(Ce)},dt=W=>Promise.resolve(void 0).then(W),vr=oe(w,!1),ai=oe(H,!0)},2725:(Pn,Et,C)=>{"use strict";C.d(Et,{b:()=>Xe,c:()=>tt,d:()=>Se,e:()=>st,g:()=>Re,l:()=>Cn,s:()=>cn,t:()=>Dt,w:()=>At});var h=C(467),c=C(3664),Z=C(9672),ke=C(4929),$=C(4920);const Xe="ionViewWillLeave",tt="ionViewDidLeave",Se="ionViewWillUnload",be=G=>{G.tabIndex=-1,G.focus()},et=G=>null!==G.offsetParent,Ye="ion-last-focus",xt_saveViewFocus=ce=>{if(c.c.get("focusManagerPriority",!1)){const Ee=document.activeElement;null!==Ee&&null!=ce&&ce.contains(Ee)&&Ee.setAttribute(Ye,"true")}},xt_setViewFocus=ce=>{const ue=c.c.get("focusManagerPriority",!1);if(Array.isArray(ue)&&!ce.contains(document.activeElement)){const Ee=ce.querySelector(`[${Ye}]`);if(Ee&&et(Ee))return void be(Ee);for(const Ve of ue)switch(Ve){case"content":const ut=ce.querySelector('main, [role="main"]');if(ut&&et(ut))return void be(ut);break;case"heading":const fn=ce.querySelector('h1, [role="heading"][aria-level="1"]');if(fn&&et(fn))return void be(fn);break;case"banner":const xn=ce.querySelector('header, [role="banner"]');if(xn&&et(xn))return void be(xn);break;default:(0,ke.p)(`Unrecognized focus manager priority value ${Ve}`)}be(ce)}},Dt=G=>new Promise((X,ce)=>{(0,Z.w)(()=>{zt(G),Tt(G).then(ue=>{ue.animation&&ue.animation.destroy(),It(G),X(ue)},ue=>{It(G),ce(ue)})})}),zt=G=>{const X=G.enteringEl,ce=G.leavingEl;xt_saveViewFocus(ce),vt(X,ce,G.direction),G.showGoBack?X.classList.add("can-go-back"):X.classList.remove("can-go-back"),cn(X,!1),X.style.setProperty("pointer-events","none"),ce&&(cn(ce,!1),ce.style.setProperty("pointer-events","none"))},Tt=function(){var G=(0,h.A)(function*(X){const ce=yield Te(X);return ce&&Z.B.isBrowser?Ze(ce,X):_e(X)});return function(ce){return G.apply(this,arguments)}}(),It=G=>{const X=G.enteringEl,ce=G.leavingEl;X.classList.remove("ion-page-invisible"),X.style.removeProperty("pointer-events"),void 0!==ce&&(ce.classList.remove("ion-page-invisible"),ce.style.removeProperty("pointer-events")),xt_setViewFocus(X)},Te=function(){var G=(0,h.A)(function*(X){return X.leavingEl&&X.animated&&0!==X.duration?X.animationBuilder?X.animationBuilder:"ios"===X.mode?(yield Promise.resolve().then(C.bind(C,8454))).iosTransitionAnimation:(yield Promise.resolve().then(C.bind(C,3314))).mdTransitionAnimation:void 0});return function(ce){return G.apply(this,arguments)}}(),Ze=function(){var G=(0,h.A)(function*(X,ce){yield $e(ce,!0);const ue=X(ce.baseEl,ce);Ct(ce.enteringEl,ce.leavingEl);const Ee=yield Oe(ue,ce);return ce.progressCallback&&ce.progressCallback(void 0),Ee&&kt(ce.enteringEl,ce.leavingEl),{hasCompleted:Ee,animation:ue}});return function(ce,ue){return G.apply(this,arguments)}}(),_e=function(){var G=(0,h.A)(function*(X){const ce=X.enteringEl,ue=X.leavingEl,Ee=c.c.get("focusManagerPriority",!1);return yield $e(X,Ee),Ct(ce,ue),kt(ce,ue),{hasCompleted:!0}});return function(ce){return G.apply(this,arguments)}}(),$e=function(){var G=(0,h.A)(function*(X,ce){(void 0!==X.deepWait?X.deepWait:ce)&&(yield Promise.all([st(X.enteringEl),st(X.leavingEl)])),yield Le(X.viewIsReady,X.enteringEl)});return function(ce,ue){return G.apply(this,arguments)}}(),Le=function(){var G=(0,h.A)(function*(X,ce){X&&(yield X(ce))});return function(ce,ue){return G.apply(this,arguments)}}(),Oe=(G,X)=>{const ce=X.progressCallback,ue=new Promise(Ee=>{G.onFinish(Ve=>Ee(1===Ve))});return ce?(G.progressStart(!0),ce(G)):G.play(),ue},Ct=(G,X)=>{Cn(X,Xe),Cn(G,"ionViewWillEnter")},kt=(G,X)=>{Cn(G,"ionViewDidEnter"),Cn(X,tt)},Cn=(G,X)=>{if(G){const ce=new CustomEvent(X,{bubbles:!1,cancelable:!1});G.dispatchEvent(ce)}},At=()=>new Promise(G=>(0,$.r)(()=>(0,$.r)(()=>G()))),st=function(){var G=(0,h.A)(function*(X){const ce=X;if(ce){if(null!=ce.componentOnReady){if(null!=(yield ce.componentOnReady()))return}else if(null!=ce.__registerHost)return void(yield new Promise(Ee=>(0,$.r)(Ee)));yield Promise.all(Array.from(ce.children).map(st))}});return function(ce){return G.apply(this,arguments)}}(),cn=(G,X)=>{X?(G.setAttribute("aria-hidden","true"),G.classList.add("ion-page-hidden")):(G.hidden=!1,G.removeAttribute("aria-hidden"),G.classList.remove("ion-page-hidden"))},vt=(G,X,ce)=>{void 0!==G&&(G.style.zIndex="back"===ce?"99":"101"),void 0!==X&&(X.style.zIndex="100")},Re=G=>G.classList.contains("ion-page")?G:G.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")||G},4929:(Pn,Et,C)=>{"use strict";C.d(Et,{a:()=>c,b:()=>Z,p:()=>h});const h=(ke,...$)=>console.warn(`[Ionic Warning]: ${ke}`,...$),c=(ke,...$)=>console.error(`[Ionic Error]: ${ke}`,...$),Z=(ke,...$)=>console.error(`<${ke.tagName.toLowerCase()}> must be used inside ${$.join(" or ")}.`)},8476:(Pn,Et,C)=>{"use strict";C.d(Et,{d:()=>c,w:()=>h});const h=typeof window<"u"?window:void 0,c=typeof document<"u"?document:void 0},3664:(Pn,Et,C)=>{"use strict";C.d(Et,{a:()=>be,b:()=>cn,c:()=>Z,i:()=>vt});var h=C(9672);class c{constructor(){this.m=new Map}reset(G){this.m=new Map(Object.entries(G))}get(G,X){const ce=this.m.get(G);return void 0!==ce?ce:X}getBoolean(G,X=!1){const ce=this.m.get(G);return void 0===ce?X:"string"==typeof ce?"true"===ce:!!ce}getNumber(G,X){const ce=parseFloat(this.m.get(G));return isNaN(ce)?void 0!==X?X:NaN:ce}set(G,X){this.m.set(G,X)}}const Z=new c,tt="ionic-persist-config",be=(Re,G)=>("string"==typeof Re&&(G=Re,Re=void 0),(Re=>et(Re))(Re).includes(G)),et=(Re=window)=>{if(typeof Re>"u")return[];Re.Ionic=Re.Ionic||{};let G=Re.Ionic.platforms;return null==G&&(G=Re.Ionic.platforms=it(Re),G.forEach(X=>Re.document.documentElement.classList.add(`plt-${X}`))),G},it=Re=>{const G=Z.get("platform");return Object.keys(At).filter(X=>{const ce=null==G?void 0:G[X];return"function"==typeof ce?ce(Re):At[X](Re)})},at=Re=>!!(kt(Re,/iPad/i)||kt(Re,/Macintosh/i)&&Te(Re)),Dt=Re=>kt(Re,/android|sink/i),Te=Re=>Cn(Re,"(any-pointer:coarse)"),_e=Re=>$e(Re)||Le(Re),$e=Re=>!!(Re.cordova||Re.phonegap||Re.PhoneGap),Le=Re=>{const G=Re.Capacitor;return!(null==G||!G.isNative)},kt=(Re,G)=>G.test(Re.navigator.userAgent),Cn=(Re,G)=>{var X;return null===(X=Re.matchMedia)||void 0===X?void 0:X.call(Re,G).matches},At={ipad:at,iphone:Re=>kt(Re,/iPhone/i),ios:Re=>kt(Re,/iPhone|iPod/i)||at(Re),android:Dt,phablet:Re=>{const G=Re.innerWidth,X=Re.innerHeight,ce=Math.min(G,X),ue=Math.max(G,X);return ce>390&&ce<520&&ue>620&&ue<800},tablet:Re=>{const G=Re.innerWidth,X=Re.innerHeight,ce=Math.min(G,X),ue=Math.max(G,X);return at(Re)||(Re=>Dt(Re)&&!kt(Re,/mobile/i))(Re)||ce>460&&ce<820&&ue>780&&ue<1400},cordova:$e,capacitor:Le,electron:Re=>kt(Re,/electron/i),pwa:Re=>{var G;return!!(null!==(G=Re.matchMedia)&&void 0!==G&&G.call(Re,"(display-mode: standalone)").matches||Re.navigator.standalone)},mobile:Te,mobileweb:Re=>Te(Re)&&!_e(Re),desktop:Re=>!Te(Re),hybrid:_e};let st;const cn=Re=>Re&&(0,h.g)(Re)||st,vt=(Re={})=>{if(typeof window>"u")return;const G=window.document,X=window,ce=X.Ionic=X.Ionic||{},ue={};Re._ael&&(ue.ael=Re._ael),Re._rel&&(ue.rel=Re._rel),Re._ce&&(ue.ce=Re._ce),(0,h.a)(ue);const Ee=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},(Re=>{try{const G=Re.sessionStorage.getItem(tt);return null!==G?JSON.parse(G):{}}catch{return{}}})(X)),{persistConfig:!1}),ce.config),(Re=>{const G={};return Re.location.search.slice(1).split("&").map(X=>X.split("=")).map(([X,ce])=>{try{return[decodeURIComponent(X),decodeURIComponent(ce)]}catch{return["",""]}}).filter(([X])=>((Re,G)=>Re.substr(0,G.length)===G)(X,"ionic:")).map(([X,ce])=>[X.slice(6),ce]).forEach(([X,ce])=>{G[X]=ce}),G})(X)),Re);Z.reset(Ee),Z.getBoolean("persistConfig")&&((Re,G)=>{try{Re.sessionStorage.setItem(tt,JSON.stringify(G))}catch{return}})(X,Ee),et(X),ce.config=Z,ce.mode=st=Z.get("mode",G.documentElement.getAttribute("mode")||(be(X,"ios")?"ios":"md")),Z.set("mode",st),G.documentElement.setAttribute("mode",st),G.documentElement.classList.add(st),Z.getBoolean("_testing")&&Z.set("animated",!1);const Ve=fn=>{var xn;return null===(xn=fn.tagName)||void 0===xn?void 0:xn.startsWith("ION-")},ut=fn=>["ios","md"].includes(fn);(0,h.c)(fn=>{for(;fn;){const xn=fn.mode||fn.getAttribute("mode");if(xn){if(ut(xn))return xn;Ve(fn)&&console.warn('Invalid ionic mode: "'+xn+'", expected: "ios" or "md"')}fn=fn.parentElement}return st})}},8454:(Pn,Et,C)=>{"use strict";C.r(Et),C.d(Et,{iosTransitionAnimation:()=>Ye,shadow:()=>Xe});var h=C(9986),c=C(2725);C(8476),C(3664),C(9672);const ae=mt=>document.querySelector(`${mt}.ion-cloned-element`),Xe=mt=>mt.shadowRoot||mt,tt=mt=>{const xt="ION-TABS"===mt.tagName?mt:mt.querySelector("ion-tabs"),Dt="ion-content ion-header:not(.header-collapse-condense-inactive) ion-title.title-large";if(null!=xt){const zt=xt.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");return null!=zt?zt.querySelector(Dt):null}return mt.querySelector(Dt)},Se=(mt,xt)=>{const Dt="ION-TABS"===mt.tagName?mt:mt.querySelector("ion-tabs");let zt=[];if(null!=Dt){const Tt=Dt.querySelector("ion-tab:not(.tab-hidden), .ion-page:not(.ion-page-hidden)");null!=Tt&&(zt=Tt.querySelectorAll("ion-buttons"))}else zt=mt.querySelectorAll("ion-buttons");for(const Tt of zt){const It=Tt.closest("ion-header"),Te=It&&!It.classList.contains("header-collapse-condense-inactive"),Ze=Tt.querySelector("ion-back-button"),_e=Tt.classList.contains("buttons-collapse");if(null!==Ze&&("start"===Tt.slot||""===Tt.slot)&&(_e&&Te&&xt||!_e))return Ze}return null},et=(mt,xt,Dt,zt,Tt,It,Te,Ze,_e)=>{var $e,Le;const Oe=xt?`calc(100% - ${Tt.right+4}px)`:Tt.left-4+"px",Ct=xt?"right":"left",kt=xt?"left":"right",Cn=xt?"right":"left";let At=1,st=1,cn=`scale(${st})`;const vt="scale(1)";if(It&&Te){const Xt=(null===($e=It.textContent)||void 0===$e?void 0:$e.trim())===(null===(Le=Ze.textContent)||void 0===Le?void 0:Le.trim());At=_e.width/Te.width,st=(_e.height-at)/Te.height,cn=Xt?`scale(${At}, ${st})`:`scale(${st})`}const G=Xe(zt).querySelector("ion-icon").getBoundingClientRect(),X=xt?G.width/2-(G.right-Tt.right)+"px":Tt.left-G.width/2+"px",ce=xt?`-${window.innerWidth-Tt.right}px`:`${Tt.left}px`,ue=`${_e.top}px`,Ee=`${Tt.top}px`,fn=Dt?[{offset:0,transform:`translate3d(${ce}, ${Ee}, 0)`},{offset:1,transform:`translate3d(${X}, ${ue}, 0)`}]:[{offset:0,transform:`translate3d(${X}, ${ue}, 0)`},{offset:1,transform:`translate3d(${ce}, ${Ee}, 0)`}],Je=Dt?[{offset:0,opacity:1,transform:vt},{offset:1,opacity:0,transform:cn}]:[{offset:0,opacity:0,transform:cn},{offset:1,opacity:1,transform:vt}],On=Dt?[{offset:0,opacity:1,transform:"scale(1)"},{offset:.2,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:0,transform:"scale(0.6)"}]:[{offset:0,opacity:0,transform:"scale(0.6)"},{offset:.6,opacity:0,transform:"scale(0.6)"},{offset:1,opacity:1,transform:"scale(1)"}],or=(0,h.c)(),gr=(0,h.c)(),cr=(0,h.c)(),dr=ae("ion-back-button"),nt=Xe(dr).querySelector(".button-text"),Lt=Xe(dr).querySelector("ion-icon");dr.text=zt.text,dr.mode=zt.mode,dr.icon=zt.icon,dr.color=zt.color,dr.disabled=zt.disabled,dr.style.setProperty("display","block"),dr.style.setProperty("position","fixed"),gr.addElement(Lt),or.addElement(nt),cr.addElement(dr),cr.beforeStyles({position:"absolute",top:"0px",[Cn]:"0px"}).beforeAddWrite(()=>{zt.style.setProperty("display","none"),dr.style.setProperty(Ct,Oe)}).afterAddWrite(()=>{zt.style.setProperty("display",""),dr.style.setProperty("display","none"),dr.style.removeProperty(Ct)}).keyframes(fn),or.beforeStyles({"transform-origin":`${Ct} top`}).keyframes(Je),gr.beforeStyles({"transform-origin":`${kt} center`}).keyframes(On),mt.addAnimation([or,gr,cr])},it=(mt,xt,Dt,zt,Tt,It,Te,Ze,_e)=>{var $e,Le;const Oe=xt?"right":"left",Ct=xt?`calc(100% - ${Tt.right}px)`:`${Tt.left}px`,Cn=`${Tt.top}px`;let st=xt?`-${window.innerWidth-Te.right-8}px`:`${Te.x+8}px`,cn=.5;const vt="scale(1)";let Re=`scale(${cn})`;if(Ze&&_e){st=xt?`-${window.innerWidth-_e.right-8}px`:_e.x-8+"px";const xn=(null===($e=Ze.textContent)||void 0===$e?void 0:$e.trim())===(null===(Le=zt.textContent)||void 0===Le?void 0:Le.trim());cn=_e.height/(It.height-at),Re=xn?`scale(${_e.width/It.width}, ${cn})`:`scale(${cn})`}const ce=Te.top+Te.height/2-Tt.height*cn/2+"px",Ve=Dt?[{offset:0,opacity:0,transform:`translate3d(${st}, ${ce}, 0) ${Re}`},{offset:.1,opacity:0},{offset:1,opacity:1,transform:`translate3d(0px, ${Cn}, 0) ${vt}`}]:[{offset:0,opacity:.99,transform:`translate3d(0px, ${Cn}, 0) ${vt}`},{offset:.6,opacity:0},{offset:1,opacity:0,transform:`translate3d(${st}, ${ce}, 0) ${Re}`}],ut=ae("ion-title"),fn=(0,h.c)();ut.innerText=zt.innerText,ut.size=zt.size,ut.color=zt.color,fn.addElement(ut),fn.beforeStyles({"transform-origin":`${Oe} top`,height:`${Tt.height}px`,display:"",position:"relative",[Oe]:Ct}).beforeAddWrite(()=>{zt.style.setProperty("opacity","0")}).afterAddWrite(()=>{zt.style.setProperty("opacity",""),ut.style.setProperty("display","none")}).keyframes(Ve),mt.addAnimation(fn)},Ye=(mt,xt)=>{var Dt;try{const zt="cubic-bezier(0.32,0.72,0,1)",Tt="opacity",It="transform",Te="0%",_e="rtl"===mt.ownerDocument.dir,$e=_e?"-99.5%":"99.5%",Le=_e?"33%":"-33%",Oe=xt.enteringEl,Ct=xt.leavingEl,kt="back"===xt.direction,Cn=Oe.querySelector(":scope > ion-content"),At=Oe.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *"),st=Oe.querySelectorAll(":scope > ion-header > ion-toolbar"),cn=(0,h.c)(),vt=(0,h.c)();if(cn.addElement(Oe).duration((null!==(Dt=xt.duration)&&void 0!==Dt?Dt:0)||540).easing(xt.easing||zt).fill("both").beforeRemoveClass("ion-page-invisible"),Ct&&null!=mt){const ce=(0,h.c)();ce.addElement(mt),cn.addAnimation(ce)}if(Cn||0!==st.length||0!==At.length?(vt.addElement(Cn),vt.addElement(At)):vt.addElement(Oe.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),cn.addAnimation(vt),kt?vt.beforeClearStyles([Tt]).fromTo("transform",`translateX(${Le})`,`translateX(${Te})`).fromTo(Tt,.8,1):vt.beforeClearStyles([Tt]).fromTo("transform",`translateX(${$e})`,`translateX(${Te})`),Cn){const ce=Xe(Cn).querySelector(".transition-effect");if(ce){const ue=ce.querySelector(".transition-cover"),Ee=ce.querySelector(".transition-shadow"),Ve=(0,h.c)(),ut=(0,h.c)(),fn=(0,h.c)();Ve.addElement(ce).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),ut.addElement(ue).beforeClearStyles([Tt]).fromTo(Tt,0,.1),fn.addElement(Ee).beforeClearStyles([Tt]).fromTo(Tt,.03,.7),Ve.addAnimation([ut,fn]),vt.addAnimation([Ve])}}const Re=Oe.querySelector("ion-header.header-collapse-condense"),{forward:G,backward:X}=((mt,xt,Dt,zt,Tt)=>{const It=Se(zt,Dt),Te=tt(Tt),Ze=tt(zt),_e=Se(Tt,Dt),$e=null!==It&&null!==Te&&!Dt,Le=null!==Ze&&null!==_e&&Dt;if($e){const Oe=Te.getBoundingClientRect(),Ct=It.getBoundingClientRect(),kt=Xe(It).querySelector(".button-text"),Cn=null==kt?void 0:kt.getBoundingClientRect(),st=Xe(Te).querySelector(".toolbar-title").getBoundingClientRect();it(mt,xt,Dt,Te,Oe,st,Ct,kt,Cn),et(mt,xt,Dt,It,Ct,kt,Cn,Te,st)}else if(Le){const Oe=Ze.getBoundingClientRect(),Ct=_e.getBoundingClientRect(),kt=Xe(_e).querySelector(".button-text"),Cn=null==kt?void 0:kt.getBoundingClientRect(),st=Xe(Ze).querySelector(".toolbar-title").getBoundingClientRect();it(mt,xt,Dt,Ze,Oe,st,Ct,kt,Cn),et(mt,xt,Dt,_e,Ct,kt,Cn,Ze,st)}return{forward:$e,backward:Le}})(cn,_e,kt,Oe,Ct);if(st.forEach(ce=>{const ue=(0,h.c)();ue.addElement(ce),cn.addAnimation(ue);const Ee=(0,h.c)();Ee.addElement(ce.querySelector("ion-title"));const Ve=(0,h.c)(),ut=Array.from(ce.querySelectorAll("ion-buttons,[menuToggle]")),fn=ce.closest("ion-header"),xn=null==fn?void 0:fn.classList.contains("header-collapse-condense-inactive");let un;un=ut.filter(kt?or=>{const gr=or.classList.contains("buttons-collapse");return gr&&!xn||!gr}:or=>!or.classList.contains("buttons-collapse")),Ve.addElement(un);const Je=(0,h.c)();Je.addElement(ce.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])"));const Sn=(0,h.c)();Sn.addElement(Xe(ce).querySelector(".toolbar-background"));const kn=(0,h.c)(),On=ce.querySelector("ion-back-button");if(On&&kn.addElement(On),ue.addAnimation([Ee,Ve,Je,Sn,kn]),Ve.fromTo(Tt,.01,1),Je.fromTo(Tt,.01,1),kt)xn||Ee.fromTo("transform",`translateX(${Le})`,`translateX(${Te})`).fromTo(Tt,.01,1),Je.fromTo("transform",`translateX(${Le})`,`translateX(${Te})`),kn.fromTo(Tt,.01,1);else if(Re||Ee.fromTo("transform",`translateX(${$e})`,`translateX(${Te})`).fromTo(Tt,.01,1),Je.fromTo("transform",`translateX(${$e})`,`translateX(${Te})`),Sn.beforeClearStyles([Tt,"transform"]),(null==fn?void 0:fn.translucent)?Sn.fromTo("transform",_e?"translateX(-100%)":"translateX(100%)","translateX(0px)"):Sn.fromTo(Tt,.01,"var(--opacity)"),G||kn.fromTo(Tt,.01,1),On&&!G){const gr=(0,h.c)();gr.addElement(Xe(On).querySelector(".button-text")).fromTo("transform",_e?"translateX(-100px)":"translateX(100px)","translateX(0px)"),ue.addAnimation(gr)}}),Ct){const ce=(0,h.c)(),ue=Ct.querySelector(":scope > ion-content"),Ee=Ct.querySelectorAll(":scope > ion-header > ion-toolbar"),Ve=Ct.querySelectorAll(":scope > ion-header > *:not(ion-toolbar), :scope > ion-footer > *");if(ue||0!==Ee.length||0!==Ve.length?(ce.addElement(ue),ce.addElement(Ve)):ce.addElement(Ct.querySelector(":scope > .ion-page, :scope > ion-nav, :scope > ion-tabs")),cn.addAnimation(ce),kt){ce.beforeClearStyles([Tt]).fromTo("transform",`translateX(${Te})`,_e?"translateX(-100%)":"translateX(100%)");const ut=(0,c.g)(Ct);cn.afterAddWrite(()=>{"normal"===cn.getDirection()&&ut.style.setProperty("display","none")})}else ce.fromTo("transform",`translateX(${Te})`,`translateX(${Le})`).fromTo(Tt,1,.8);if(ue){const ut=Xe(ue).querySelector(".transition-effect");if(ut){const fn=ut.querySelector(".transition-cover"),xn=ut.querySelector(".transition-shadow"),un=(0,h.c)(),Je=(0,h.c)(),Sn=(0,h.c)();un.addElement(ut).beforeStyles({opacity:"1",display:"block"}).afterStyles({opacity:"",display:""}),Je.addElement(fn).beforeClearStyles([Tt]).fromTo(Tt,.1,0),Sn.addElement(xn).beforeClearStyles([Tt]).fromTo(Tt,.7,.03),un.addAnimation([Je,Sn]),ce.addAnimation([un])}}Ee.forEach(ut=>{const fn=(0,h.c)();fn.addElement(ut);const xn=(0,h.c)();xn.addElement(ut.querySelector("ion-title"));const un=(0,h.c)(),Je=ut.querySelectorAll("ion-buttons,[menuToggle]"),Sn=ut.closest("ion-header"),kn=null==Sn?void 0:Sn.classList.contains("header-collapse-condense-inactive"),On=Array.from(Je).filter(Lt=>{const Xt=Lt.classList.contains("buttons-collapse");return Xt&&!kn||!Xt});un.addElement(On);const or=(0,h.c)(),gr=ut.querySelectorAll(":scope > *:not(ion-title):not(ion-buttons):not([menuToggle])");gr.length>0&&or.addElement(gr);const cr=(0,h.c)();cr.addElement(Xe(ut).querySelector(".toolbar-background"));const dr=(0,h.c)(),nt=ut.querySelector("ion-back-button");if(nt&&dr.addElement(nt),fn.addAnimation([xn,un,or,dr,cr]),cn.addAnimation(fn),dr.fromTo(Tt,.99,0),un.fromTo(Tt,.99,0),or.fromTo(Tt,.99,0),kt){if(kn||xn.fromTo("transform",`translateX(${Te})`,_e?"translateX(-100%)":"translateX(100%)").fromTo(Tt,.99,0),or.fromTo("transform",`translateX(${Te})`,_e?"translateX(-100%)":"translateX(100%)"),cr.beforeClearStyles([Tt,"transform"]),(null==Sn?void 0:Sn.translucent)?cr.fromTo("transform","translateX(0px)",_e?"translateX(-100%)":"translateX(100%)"):cr.fromTo(Tt,"var(--opacity)",0),nt&&!X){const Xt=(0,h.c)();Xt.addElement(Xe(nt).querySelector(".button-text")).fromTo("transform",`translateX(${Te})`,`translateX(${(_e?-124:124)+"px"})`),fn.addAnimation(Xt)}}else kn||xn.fromTo("transform",`translateX(${Te})`,`translateX(${Le})`).fromTo(Tt,.99,0).afterClearStyles([It,Tt]),or.fromTo("transform",`translateX(${Te})`,`translateX(${Le})`).afterClearStyles([It,Tt]),dr.afterClearStyles([Tt]),xn.afterClearStyles([Tt]),un.afterClearStyles([Tt])})}return cn}catch(zt){throw zt}},at=10},3314:(Pn,Et,C)=>{"use strict";C.r(Et),C.d(Et,{mdTransitionAnimation:()=>he});var h=C(9986),c=C(2725);C(8476),C(3664),C(9672);const he=(ae,Xe)=>{var tt,Se,be;const Ye="back"===Xe.direction,mt=Xe.leavingEl,xt=(0,c.g)(Xe.enteringEl),Dt=xt.querySelector("ion-toolbar"),zt=(0,h.c)();if(zt.addElement(xt).fill("both").beforeRemoveClass("ion-page-invisible"),Ye?zt.duration((null!==(tt=Xe.duration)&&void 0!==tt?tt:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)"):zt.duration((null!==(Se=Xe.duration)&&void 0!==Se?Se:0)||280).easing("cubic-bezier(0.36,0.66,0.04,1)").fromTo("transform","translateY(40px)","translateY(0px)").fromTo("opacity",.01,1),Dt){const Tt=(0,h.c)();Tt.addElement(Dt),zt.addAnimation(Tt)}if(mt&&Ye){zt.duration((null!==(be=Xe.duration)&&void 0!==be?be:0)||200).easing("cubic-bezier(0.47,0,0.745,0.715)");const Tt=(0,h.c)();Tt.addElement((0,c.g)(mt)).onFinish(It=>{1===It&&Tt.elements.length>0&&Tt.elements[0].style.setProperty("display","none")}).fromTo("transform","translateY(0px)","translateY(40px)").fromTo("opacity",1,0),zt.addAnimation(Tt)}return zt}},6002:(Pn,Et,C)=>{"use strict";C.d(Et,{B:()=>Je,F:()=>dr,G:()=>Sn,O:()=>kn,a:()=>xt,b:()=>Dt,c:()=>Te,d:()=>On,e:()=>or,f:()=>G,g:()=>ce,h:()=>Ve,i:()=>fn,j:()=>_e,k:()=>$e,l:()=>zt,m:()=>Tt,n:()=>Se,o:()=>vt,q:()=>be,s:()=>un});var h=C(467),c=C(8476),Z=C(4920),ke=C(6411),$=C(3664),he=C(8621),ae=C(1970),Xe=C(4929);const tt='[tabindex]:not([tabindex^="-"]):not([hidden]):not([disabled]), input:not([type=hidden]):not([tabindex^="-"]):not([hidden]):not([disabled]), textarea:not([tabindex^="-"]):not([hidden]):not([disabled]), button:not([tabindex^="-"]):not([hidden]):not([disabled]), select:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable:not([tabindex^="-"]):not([hidden]):not([disabled]), .ion-focusable[disabled="false"]:not([tabindex^="-"]):not([hidden])',Se=(nt,Lt)=>{const Xt=nt.querySelector(tt);et(Xt,null!=Lt?Lt:nt)},be=(nt,Lt)=>{const Xt=Array.from(nt.querySelectorAll(tt));et(Xt.length>0?Xt[Xt.length-1]:null,null!=Lt?Lt:nt)},et=(nt,Lt)=>{let Xt=nt;const yn=null==nt?void 0:nt.shadowRoot;yn&&(Xt=yn.querySelector(tt)||nt),Xt?(0,Z.f)(Xt):Lt.focus()};let it=0,Ye=0;const at=new WeakMap,mt=nt=>({create:Lt=>Le(nt,Lt),dismiss:(Lt,Xt,yn)=>At(document,Lt,Xt,nt,yn),getTop:()=>(0,h.A)(function*(){return vt(document,nt)})()}),xt=mt("ion-alert"),Dt=mt("ion-action-sheet"),zt=mt("ion-loading"),Tt=mt("ion-modal"),Te=mt("ion-popover"),_e=nt=>{typeof document<"u"&&Cn(document);const Lt=it++;nt.overlayIndex=Lt},$e=nt=>(nt.hasAttribute("id")||(nt.id="ion-overlay-"+ ++Ye),nt.id),Le=(nt,Lt)=>typeof window<"u"&&typeof window.customElements<"u"?window.customElements.whenDefined(nt).then(()=>{const Xt=document.createElement(nt);return Xt.classList.add("overlay-hidden"),Object.assign(Xt,Object.assign(Object.assign({},Lt),{hasController:!0})),ue(document).appendChild(Xt),new Promise(yn=>(0,Z.c)(Xt,yn))}):Promise.resolve(),Ct=(nt,Lt)=>{let Xt=nt;const yn=null==nt?void 0:nt.shadowRoot;yn&&(Xt=yn.querySelector(tt)||nt),Xt?(0,Z.f)(Xt):Lt.focus()},Cn=nt=>{0===it&&(it=1,nt.addEventListener("focus",Lt=>{((nt,Lt)=>{const Xt=vt(Lt,"ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover"),yn=nt.target;Xt&&yn&&!Xt.classList.contains(dr)&&(Xt.shadowRoot?(()=>{if(Xt.contains(yn))Xt.lastFocus=yn;else if("ION-TOAST"===yn.tagName)Ct(Xt.lastFocus,Xt);else{const Vn=Xt.lastFocus;Se(Xt),Vn===Lt.activeElement&&be(Xt),Xt.lastFocus=Lt.activeElement}})():(()=>{if(Xt===yn)Xt.lastFocus=void 0;else if("ION-TOAST"===yn.tagName)Ct(Xt.lastFocus,Xt);else{const Vn=(0,Z.g)(Xt);if(!Vn.contains(yn))return;const $n=Vn.querySelector(".ion-overlay-wrapper");if(!$n)return;if($n.contains(yn)||yn===Vn.querySelector("ion-backdrop"))Xt.lastFocus=yn;else{const In=Xt.lastFocus;Se($n,Xt),In===Lt.activeElement&&be($n,Xt),Xt.lastFocus=Lt.activeElement}}})())})(Lt,nt)},!0),nt.addEventListener("ionBackButton",Lt=>{const Xt=vt(nt);null!=Xt&&Xt.backdropDismiss&&Lt.detail.register(ke.OVERLAY_BACK_BUTTON_PRIORITY,()=>{Xt.dismiss(void 0,Je)})}),(0,ke.shouldUseCloseWatcher)()||nt.addEventListener("keydown",Lt=>{if("Escape"===Lt.key){const Xt=vt(nt);null!=Xt&&Xt.backdropDismiss&&Xt.dismiss(void 0,Je)}}))},At=(nt,Lt,Xt,yn,En)=>{const Fr=vt(nt,yn,En);return Fr?Fr.dismiss(Lt,Xt):Promise.reject("overlay does not exist")},cn=(nt,Lt)=>((nt,Lt)=>(void 0===Lt&&(Lt="ion-alert,ion-action-sheet,ion-loading,ion-modal,ion-picker-legacy,ion-popover,ion-toast"),Array.from(nt.querySelectorAll(Lt)).filter(Xt=>Xt.overlayIndex>0)))(nt,Lt).filter(Xt=>!(nt=>nt.classList.contains("overlay-hidden"))(Xt)),vt=(nt,Lt,Xt)=>{const yn=cn(nt,Lt);return void 0===Xt?yn[yn.length-1]:yn.find(En=>En.id===Xt)},Re=(nt=!1)=>{const Xt=ue(document).querySelector("ion-router-outlet, ion-nav, #ion-view-container-root");Xt&&(nt?Xt.setAttribute("aria-hidden","true"):Xt.removeAttribute("aria-hidden"))},G=function(){var nt=(0,h.A)(function*(Lt,Xt,yn,En,Fr){var Vn,$n;if(Lt.presented)return;Re(!0),document.body.classList.add(ae.B),gr(Lt.el),Lt.presented=!0,Lt.willPresent.emit(),null===(Vn=Lt.willPresentShorthand)||void 0===Vn||Vn.emit();const In=(0,$.b)(Lt),on=Lt.enterAnimation?Lt.enterAnimation:$.c.get(Xt,"ios"===In?yn:En);(yield Ee(Lt,on,Lt.el,Fr))&&(Lt.didPresent.emit(),null===($n=Lt.didPresentShorthand)||void 0===$n||$n.emit()),"ION-TOAST"!==Lt.el.tagName&&X(Lt.el),Lt.keyboardClose&&(null===document.activeElement||!Lt.el.contains(document.activeElement))&&Lt.el.focus(),Lt.el.removeAttribute("aria-hidden")});return function(Xt,yn,En,Fr,Vn){return nt.apply(this,arguments)}}(),X=function(){var nt=(0,h.A)(function*(Lt){let Xt=document.activeElement;if(!Xt)return;const yn=null==Xt?void 0:Xt.shadowRoot;yn&&(Xt=yn.querySelector(tt)||Xt),yield Lt.onDidDismiss(),(null===document.activeElement||document.activeElement===document.body)&&Xt.focus()});return function(Xt){return nt.apply(this,arguments)}}(),ce=function(){var nt=(0,h.A)(function*(Lt,Xt,yn,En,Fr,Vn,$n){var In,on;if(!Lt.presented)return!1;void 0!==c.d&&1===cn(c.d).length&&(Re(!1),document.body.classList.remove(ae.B)),Lt.presented=!1;try{Lt.el.style.setProperty("pointer-events","none"),Lt.willDismiss.emit({data:Xt,role:yn}),null===(In=Lt.willDismissShorthand)||void 0===In||In.emit({data:Xt,role:yn});const br=(0,$.b)(Lt),Vr=Lt.leaveAnimation?Lt.leaveAnimation:$.c.get(En,"ios"===br?Fr:Vn);yn!==Sn&&(yield Ee(Lt,Vr,Lt.el,$n)),Lt.didDismiss.emit({data:Xt,role:yn}),null===(on=Lt.didDismissShorthand)||void 0===on||on.emit({data:Xt,role:yn}),(at.get(Lt)||[]).forEach(Mr=>Mr.destroy()),at.delete(Lt),Lt.el.classList.add("overlay-hidden"),Lt.el.style.removeProperty("pointer-events"),void 0!==Lt.el.lastFocus&&(Lt.el.lastFocus=void 0)}catch(br){console.error(br)}return Lt.el.remove(),cr(),!0});return function(Xt,yn,En,Fr,Vn,$n,In){return nt.apply(this,arguments)}}(),ue=nt=>nt.querySelector("ion-app")||nt.body,Ee=function(){var nt=(0,h.A)(function*(Lt,Xt,yn,En){yn.classList.remove("overlay-hidden");const Vn=Xt(Lt.el,En);(!Lt.animated||!$.c.getBoolean("animated",!0))&&Vn.duration(0),Lt.keyboardClose&&Vn.beforeAddWrite(()=>{const In=yn.ownerDocument.activeElement;null!=In&&In.matches("input,ion-input, ion-textarea")&&In.blur()});const $n=at.get(Lt)||[];return at.set(Lt,[...$n,Vn]),yield Vn.play(),!0});return function(Xt,yn,En,Fr){return nt.apply(this,arguments)}}(),Ve=(nt,Lt)=>{let Xt;const yn=new Promise(En=>Xt=En);return ut(nt,Lt,En=>{Xt(En.detail)}),yn},ut=(nt,Lt,Xt)=>{const yn=En=>{(0,Z.b)(nt,Lt,yn),Xt(En)};(0,Z.a)(nt,Lt,yn)},fn=nt=>"cancel"===nt||nt===Je,xn=nt=>nt(),un=(nt,Lt)=>{if("function"==typeof nt)return $.c.get("_zoneGate",xn)(()=>{try{return nt(Lt)}catch(yn){throw yn}})},Je="backdrop",Sn="gesture",kn=39,On=nt=>{let Xt,Lt=!1;const yn=(0,he.C)(),En=($n=!1)=>{if(Xt&&!$n)return{delegate:Xt,inline:Lt};const{el:In,hasController:on,delegate:mr}=nt;return Lt=null!==In.parentNode&&!on,Xt=Lt?mr||yn:mr,{inline:Lt,delegate:Xt}};return{attachViewToDom:function(){var $n=(0,h.A)(function*(In){const{delegate:on}=En(!0);if(on)return yield on.attachViewToDom(nt.el,In);const{hasController:mr}=nt;if(mr&&void 0!==In)throw new Error("framework delegate is missing");return null});return function(on){return $n.apply(this,arguments)}}(),removeViewFromDom:()=>{const{delegate:$n}=En();$n&&void 0!==nt.el&&$n.removeViewFromDom(nt.el.parentElement,nt.el)}}},or=()=>{let nt;const Lt=()=>{nt&&(nt(),nt=void 0)};return{addClickListener:(yn,En)=>{Lt();const Fr=void 0!==En?document.getElementById(En):null;Fr?nt=(($n,In)=>{const on=()=>{In.present()};return $n.addEventListener("click",on),()=>{$n.removeEventListener("click",on)}})(Fr,yn):(0,Xe.p)(`A trigger element with the ID "${En}" was not found in the DOM. The trigger element must be in the DOM when the "trigger" property is set on an overlay component.`,yn)},removeClickListener:Lt}},gr=nt=>{var Lt;if(void 0===c.d)return;const Xt=cn(c.d);for(let yn=Xt.length-1;yn>=0;yn--){const En=Xt[yn],Fr=null!==(Lt=Xt[yn+1])&&void 0!==Lt?Lt:nt;(Fr.hasAttribute("aria-hidden")||"ION-TOAST"!==Fr.tagName)&&En.setAttribute("aria-hidden","true")}},cr=()=>{if(void 0===c.d)return;const nt=cn(c.d);for(let Lt=nt.length-1;Lt>=0;Lt--){const Xt=nt[Lt];if(Xt.removeAttribute("aria-hidden"),"ION-TOAST"!==Xt.tagName)break}},dr="ion-disable-focus-trap"},63:(Pn,Et,C)=>{"use strict";var h=C(345),c=C(4438),Z=C(7650),ke=C(2872),$=C(7863),he=C(177);function ae(Je,Sn){if(1&Je){const kn=c.RV6();c.j41(0,"ion-item",6),c.bIt("click",function(){c.eBV(kn);const or=c.XpG().$implicit,gr=c.XpG();return c.Njj(gr.navigate(or))}),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s()()}if(2&Je){const kn=c.XpG().$implicit;c.R7$(),c.Y8G("name",kn.icon),c.R7$(2),c.JRh(kn.title)}}function Xe(Je,Sn){if(1&Je&&(c.j41(0,"ion-item",9),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s(),c.j41(4,"ion-chip"),c.EFF(5),c.k0s()()),2&Je){const kn=c.XpG(2).$implicit,On=c.XpG();c.Y8G("routerLink",kn.url),c.R7$(),c.Y8G("name",kn.icon),c.R7$(2),c.JRh(kn.title),c.R7$(2),c.JRh(On.user.name)}}function tt(Je,Sn){if(1&Je&&(c.j41(0,"ion-item",9),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s(),c.j41(4,"ion-chip"),c.EFF(5),c.k0s()()),2&Je){const kn=c.XpG(2).$implicit,On=c.XpG();c.Y8G("routerLink",kn.url),c.R7$(),c.Y8G("name",kn.icon),c.R7$(2),c.JRh(kn.title),c.R7$(2),c.JRh(On.user.orgName)}}function Se(Je,Sn){if(1&Je&&(c.j41(0,"ion-item",9),c.nrm(1,"ion-icon",7),c.j41(2,"ion-label",8),c.EFF(3),c.k0s()()),2&Je){const kn=c.XpG(2).$implicit;c.Y8G("routerLink",kn.url),c.R7$(),c.Y8G("name",kn.icon),c.R7$(2),c.JRh(kn.title)}}function be(Je,Sn){if(1&Je&&c.DNE(0,Xe,6,4,"ion-item",9)(1,tt,6,4)(2,Se,4,3),2&Je){const kn=c.XpG().$implicit;c.vxM(0,"Settings"===kn.title?0:"My Team"===kn.title?1:2)}}function et(Je,Sn){if(1&Je&&(c.j41(0,"ion-menu-toggle",5),c.DNE(1,ae,4,2,"ion-item")(2,be,3,1),c.k0s()),2&Je){const kn=Sn.$implicit;c.R7$(),c.vxM(1,kn.params?1:2)}}let it=(()=>{var Je;class Sn{constructor(On,or){this.router=On,this.menuController=or,this.user={},this.menuItems=[{title:"Home",url:"/home",icon:"home"},{title:"Model The Product",url:"/model-product",icon:"cube"},{title:"Latency Test",url:"/latency-chooser",icon:"pulse"},{title:"Trace Test",url:"/trace-chooser",icon:"globe"},{title:"CPU Usage",url:"/flame-graph-for",params:{usage_type:"cpu"},icon:"stats-chart"},{title:"Memory Usage",url:"/flame-graph-for",params:{usage_type:"memory_usage"},icon:"swap-horizontal"},{title:"Software Testing",url:"/software-testing",icon:"flask"},{title:"Load Test",url:"/load-test-chooser",icon:"barbell"},{title:"Incident Manager",url:"/incident-manager-chooser",icon:"alert-circle"},{title:"My Team",url:"/myteam",icon:"people"},{title:"Settings",url:"/settings",icon:"settings"}]}ngOnInit(){this.router.events.subscribe(On=>{On instanceof Z.wF&&(On.urlAfterRedirects.includes("/login")||On.urlAfterRedirects.includes("/register")?this.menuController.enable(!1):this.menuController.enable(!0))}),this.getUser()}navigate(On){this.router.navigateByUrl("/",{skipLocationChange:!0}).then(()=>{this.router.navigate([On.url],{queryParams:On.params||{}})})}getUser(){const On=JSON.parse(localStorage.getItem("user"));this.user=On}}return(Je=Sn).\u0275fac=function(On){return new(On||Je)(c.rXU(Z.Ix),c.rXU($._t))},Je.\u0275cmp=c.VBU({type:Je,selectors:[["app-root"]],decls:11,vars:1,consts:[["when","md","contentId","menu-content"],["content-id","menu-content","menu-id","menu-id","side","start","type","overlay"],[1,"h-full"],["auto-hide","false",4,"ngFor","ngForOf"],["id","menu-content"],["auto-hide","false"],[3,"click"],["slot","start",3,"name"],["color","primary"],[3,"routerLink"]],template:function(On,or){1&On&&(c.j41(0,"ion-app")(1,"ion-split-pane",0)(2,"ion-menu",1)(3,"ion-header")(4,"ion-toolbar")(5,"ion-title"),c.EFF(6," Menu "),c.k0s()()(),c.j41(7,"ion-content")(8,"ion-list",2),c.DNE(9,et,3,1,"ion-menu-toggle",3),c.k0s()()(),c.nrm(10,"ion-router-outlet",4),c.k0s()()),2&On&&(c.R7$(9),c.Y8G("ngForOf",or.menuItems))},dependencies:[he.Sq,$.U1,$.ZB,$.W9,$.eU,$.iq,$.uz,$.he,$.nf,$.oS,$.cA,$.HP,$.BC,$.ai,$.Rg,$.N7,Z.Wk]}),Sn})();var Ye=C(9842),at=C(8737),mt=C(1203),xt=C(6354),Dt=C(6697);C(2214);const Tt=(0,xt.T)(Je=>!!Je);let It=(()=>{var Je;class Sn{constructor(On,or){(0,Ye.A)(this,"router",void 0),(0,Ye.A)(this,"auth",void 0),(0,Ye.A)(this,"canActivate",(gr,cr)=>{const dr=gr.data.authGuardPipe||(()=>Tt);return(0,at.kQ)(this.auth).pipe((0,Dt.s)(1),dr(gr,cr),(0,xt.T)(nt=>"boolean"==typeof nt?nt:Array.isArray(nt)?this.router.createUrlTree(nt):this.router.parseUrl(nt)))}),this.router=On,this.auth=or}}return Je=Sn,(0,Ye.A)(Sn,"\u0275fac",function(On){return new(On||Je)(c.KVO(Z.Ix),c.KVO(at.Nj))}),(0,Ye.A)(Sn,"\u0275prov",c.jDH({token:Je,factory:Je.\u0275fac,providedIn:"any"})),Sn})();const Te=Je=>({canActivate:[It],data:{authGuardPipe:Je}}),At=()=>{return Je=[""],(0,mt.F)(Tt,(0,xt.T)(Sn=>Sn||Je));var Je},st=()=>{return Je=["home"],(0,mt.F)(Tt,(0,xt.T)(Sn=>Sn&&Je||!0));var Je},cn=[{path:"",redirectTo:"login",pathMatch:"full"},{path:"home",loadChildren:()=>Promise.all([C.e(2076),C.e(2757)]).then(C.bind(C,2757)).then(Je=>Je.HomePageModule),...Te(At)},{path:"register",loadChildren:()=>C.e(5995).then(C.bind(C,5995)).then(Je=>Je.RegisterPageModule),...Te(st)},{path:"login",loadChildren:()=>C.e(6536).then(C.bind(C,6536)).then(Je=>Je.LoginPageModule),...Te(st)},{path:"myteam",loadChildren:()=>Promise.all([C.e(2076),C.e(461)]).then(C.bind(C,461)).then(Je=>Je.MyteamPageModule),...Te(At)},{path:"model-product",loadChildren:()=>Promise.all([C.e(2076),C.e(4914)]).then(C.bind(C,4914)).then(Je=>Je.ModelProductPageModule),...Te(At)},{path:"new-product",loadChildren:()=>Promise.all([C.e(2076),C.e(3646)]).then(C.bind(C,3646)).then(Je=>Je.NewProductPageModule),...Te(At)},{path:"view-product",loadChildren:()=>Promise.all([C.e(2076),C.e(1313)]).then(C.bind(C,1313)).then(Je=>Je.ViewProductPageModule),...Te(At)},{path:"show-map",loadChildren:()=>Promise.all([C.e(9273),C.e(2076),C.e(9070)]).then(C.bind(C,9070)).then(Je=>Je.ShowMapPageModule),...Te(At)},{path:"latency-test",loadChildren:()=>Promise.all([C.e(2076),C.e(9456)]).then(C.bind(C,9456)).then(Je=>Je.LatencyTestPageModule),...Te(At)},{path:"latency-chooser",loadChildren:()=>Promise.all([C.e(2076),C.e(8886)]).then(C.bind(C,8886)).then(Je=>Je.LatencyChooserPageModule),...Te(At)},{path:"latency-results",loadChildren:()=>Promise.all([C.e(2076),C.e(8984)]).then(C.bind(C,8984)).then(Je=>Je.LatencyResultsPageModule),...Te(At)},{path:"graph-latency",loadChildren:()=>Promise.all([C.e(2076),C.e(6975)]).then(C.bind(C,6975)).then(Je=>Je.GraphPageModule),...Te(At)},{path:"trace-chooser",loadChildren:()=>Promise.all([C.e(2076),C.e(4839)]).then(C.bind(C,4839)).then(Je=>Je.TraceChooserPageModule),...Te(At)},{path:"trace-test",loadChildren:()=>Promise.all([C.e(2076),C.e(3451)]).then(C.bind(C,3451)).then(Je=>Je.TraceTestPageModule),...Te(At)},{path:"trace-results",loadChildren:()=>Promise.all([C.e(2076),C.e(7762)]).then(C.bind(C,7762)).then(Je=>Je.TraceResultsPageModule),...Te(At)},{path:"show-map-trace",loadChildren:()=>Promise.all([C.e(9273),C.e(2076),C.e(8566)]).then(C.bind(C,8566)).then(Je=>Je.ShowMapTracePageModule),...Te(At)},{path:"graph-data-for",loadChildren:()=>C.e(1081).then(C.bind(C,1081)).then(Je=>Je.GraphDataForPageModule),...Te(At)},{path:"graph-trace",loadChildren:()=>Promise.all([C.e(2076),C.e(6303)]).then(C.bind(C,6303)).then(Je=>Je.GraphTracePageModule),...Te(At)},{path:"ai",loadChildren:()=>C.e(4348).then(C.bind(C,4348)).then(Je=>Je.AiPageModule),...Te(At)},{path:"flame-graph",loadChildren:()=>Promise.all([C.e(2076),C.e(5054)]).then(C.bind(C,5054)).then(Je=>Je.FlameGraphPageModule),...Te(At)},{path:"flame-graph-for",loadChildren:()=>Promise.all([C.e(2076),C.e(5399)]).then(C.bind(C,5399)).then(Je=>Je.FlameGraphForPageModule),...Te(At)},{path:"flame-graph-date",loadChildren:()=>Promise.all([C.e(2076),C.e(6480)]).then(C.bind(C,6480)).then(Je=>Je.FlameGraphDatePageModule),...Te(At)},{path:"flame-graph-compare",loadChildren:()=>Promise.all([C.e(2076),C.e(3100)]).then(C.bind(C,3100)).then(Je=>Je.FlameGraphComparePageModule),...Te(At)},{path:"software-testing",loadChildren:()=>Promise.all([C.e(2076),C.e(1015)]).then(C.bind(C,1015)).then(Je=>Je.SoftwareTestingPageModule),...Te(At)},{path:"software-testing-chooser",loadChildren:()=>Promise.all([C.e(2076),C.e(8711)]).then(C.bind(C,8711)).then(Je=>Je.SoftwareTestingChooserPageModule),...Te(At)},{path:"create-system-test",loadChildren:()=>Promise.all([C.e(2076),C.e(1143)]).then(C.bind(C,1143)).then(Je=>Je.CreateSystemTestPageModule),...Te(At)},{path:"execute-system-test",loadChildren:()=>Promise.all([C.e(2076),C.e(1010)]).then(C.bind(C,1010)).then(Je=>Je.ExecuteSystemTestPageModule),...Te(At)},{path:"board",loadChildren:()=>Promise.all([C.e(6982),C.e(2076),C.e(3728)]).then(C.bind(C,3728)).then(Je=>Je.BoardPageModule),...Te(At)},{path:"view-history-system-test",loadChildren:()=>Promise.all([C.e(2076),C.e(9546)]).then(C.bind(C,9546)).then(Je=>Je.ViewHistorySystemTestPageModule),...Te(At)},{path:"view-system-test",loadChildren:()=>Promise.all([C.e(2076),C.e(7056)]).then(C.bind(C,7056)).then(Je=>Je.ViewSystemTestPageModule),...Te(At)},{path:"create-unit-test",loadChildren:()=>Promise.all([C.e(2076),C.e(6695)]).then(C.bind(C,6695)).then(Je=>Je.CreateUnitTestPageModule),...Te(At)},{path:"settings",loadChildren:()=>Promise.all([C.e(2076),C.e(5371)]).then(C.bind(C,5371)).then(Je=>Je.SettingsPageModule),...Te(At)},{path:"create-integration-test",loadChildren:()=>Promise.all([C.e(2076),C.e(2494)]).then(C.bind(C,2494)).then(Je=>Je.CreateIntegrationTestPageModule),...Te(At)},{path:"load-test-chooser",loadChildren:()=>Promise.all([C.e(2076),C.e(4163)]).then(C.bind(C,4163)).then(Je=>Je.LoadTestChooserPageModule),...Te(At)},{path:"load-test",loadChildren:()=>Promise.all([C.e(9878),C.e(4559)]).then(C.bind(C,4559)).then(Je=>Je.LoadTestPageModule),...Te(At)},{path:"load-test-history",loadChildren:()=>Promise.all([C.e(9878),C.e(4304)]).then(C.bind(C,4304)).then(Je=>Je.LoadTestHistoryPageModule),...Te(At)},{path:"incident-manager-chooser",loadChildren:()=>Promise.all([C.e(2076),C.e(1133)]).then(C.bind(C,1133)).then(Je=>Je.IncidentManagerChooserPageModule),...Te(At)},{path:"incident-manager",loadChildren:()=>Promise.all([C.e(2076),C.e(3675)]).then(C.bind(C,3675)).then(Je=>Je.IncidentManagerPageModule)},{path:"new-incident",loadChildren:()=>Promise.all([C.e(6982),C.e(2076),C.e(8839)]).then(C.bind(C,8839)).then(Je=>Je.NewIncidentPageModule)},{path:"incident-details",loadChildren:()=>Promise.all([C.e(2076),C.e(7907)]).then(C.bind(C,7907)).then(Je=>Je.IncidentDetailsPageModule)}];let vt=(()=>{var Je;class Sn{}return(Je=Sn).\u0275fac=function(On){return new(On||Je)},Je.\u0275mod=c.$C({type:Je}),Je.\u0275inj=c.G2t({imports:[Z.iI.forRoot(cn,{preloadingStrategy:Z.Kp}),Z.iI]}),Sn})();var Re=C(7440),G=C(4262);const X_firebase={projectId:"devprobe-89481",appId:"1:405563293900:web:ba12c0bd15401fd708c269",storageBucket:"devprobe-89481.appspot.com",apiKey:"AIzaSyAORx8ZNhFZwo_uR4tPEcmF8pKm4GAqi5A",authDomain:"devprobe-89481.firebaseapp.com",messagingSenderId:"405563293900"};var ce=C(1626),ue=C(2820),Ee=C(9032),Ve=C(7616),ut=C(9549),fn=C(2107);let xn=(()=>{var Je;class Sn{}return(Je=Sn).\u0275fac=function(On){return new(On||Je)},Je.\u0275mod=c.$C({type:Je,bootstrap:[it]}),Je.\u0275inj=c.G2t({providers:[{provide:Z.b,useClass:ke.jM},(0,Re.MW)(()=>(0,Re.Wp)(X_firebase)),(0,G.hV)(()=>(0,G.aU)()),(0,at._q)(()=>(0,at.xI)()),(0,Ee.cw)(()=>(0,Ee.v_)()),(0,fn.Xm)(()=>(0,fn.c7)()),ce.q1,(0,ue.eS)()],imports:[h.Bb,$.bv.forRoot(),vt,ce.q1,ue.sN.forRoot({echarts:()=>C.e(9697).then(C.bind(C,9697))}),Ve.n,ut.y2.forRoot()]}),Sn})();(0,c.SmG)(),h.sG().bootstrapModule(xn).catch(Je=>console.log(Je))},4412:(Pn,Et,C)=>{"use strict";C.d(Et,{t:()=>c});var h=C(1413);class c extends h.B{constructor(ke){super(),this._value=ke}get value(){return this.getValue()}_subscribe(ke){const $=super._subscribe(ke);return!$.closed&&ke.next(this._value),$}getValue(){const{hasError:ke,thrownError:$,_value:he}=this;if(ke)throw $;return this._throwIfClosed(),he}next(ke){super.next(this._value=ke)}}},1985:(Pn,Et,C)=>{"use strict";C.d(Et,{c:()=>Xe});var h=C(7707),c=C(8359),Z=C(3494),ke=C(1203),$=C(1026),he=C(8071),ae=C(9786);let Xe=(()=>{class et{constructor(Ye){Ye&&(this._subscribe=Ye)}lift(Ye){const at=new et;return at.source=this,at.operator=Ye,at}subscribe(Ye,at,mt){const xt=function be(et){return et&&et instanceof h.vU||function Se(et){return et&&(0,he.T)(et.next)&&(0,he.T)(et.error)&&(0,he.T)(et.complete)}(et)&&(0,c.Uv)(et)}(Ye)?Ye:new h.Ms(Ye,at,mt);return(0,ae.Y)(()=>{const{operator:Dt,source:zt}=this;xt.add(Dt?Dt.call(xt,zt):zt?this._subscribe(xt):this._trySubscribe(xt))}),xt}_trySubscribe(Ye){try{return this._subscribe(Ye)}catch(at){Ye.error(at)}}forEach(Ye,at){return new(at=tt(at))((mt,xt)=>{const Dt=new h.Ms({next:zt=>{try{Ye(zt)}catch(Tt){xt(Tt),Dt.unsubscribe()}},error:xt,complete:mt});this.subscribe(Dt)})}_subscribe(Ye){var at;return null===(at=this.source)||void 0===at?void 0:at.subscribe(Ye)}[Z.s](){return this}pipe(...Ye){return(0,ke.m)(Ye)(this)}toPromise(Ye){return new(Ye=tt(Ye))((at,mt)=>{let xt;this.subscribe(Dt=>xt=Dt,Dt=>mt(Dt),()=>at(xt))})}}return et.create=it=>new et(it),et})();function tt(et){var it;return null!==(it=null!=et?et:$.$.Promise)&&void 0!==it?it:Promise}},2771:(Pn,Et,C)=>{"use strict";C.d(Et,{m:()=>Z});var h=C(1413),c=C(6129);class Z extends h.B{constructor($=1/0,he=1/0,ae=c.U){super(),this._bufferSize=$,this._windowTime=he,this._timestampProvider=ae,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=he===1/0,this._bufferSize=Math.max(1,$),this._windowTime=Math.max(1,he)}next($){const{isStopped:he,_buffer:ae,_infiniteTimeWindow:Xe,_timestampProvider:tt,_windowTime:Se}=this;he||(ae.push($),!Xe&&ae.push(tt.now()+Se)),this._trimBuffer(),super.next($)}_subscribe($){this._throwIfClosed(),this._trimBuffer();const he=this._innerSubscribe($),{_infiniteTimeWindow:ae,_buffer:Xe}=this,tt=Xe.slice();for(let Se=0;Se{"use strict";C.d(Et,{B:()=>ae});var h=C(1985),c=C(8359);const ke=(0,C(1853).L)(tt=>function(){tt(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var $=C(7908),he=C(9786);let ae=(()=>{class tt extends h.c{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(be){const et=new Xe(this,this);return et.operator=be,et}_throwIfClosed(){if(this.closed)throw new ke}next(be){(0,he.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(const et of this.currentObservers)et.next(be)}})}error(be){(0,he.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=be;const{observers:et}=this;for(;et.length;)et.shift().error(be)}})}complete(){(0,he.Y)(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;const{observers:be}=this;for(;be.length;)be.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var be;return(null===(be=this.observers)||void 0===be?void 0:be.length)>0}_trySubscribe(be){return this._throwIfClosed(),super._trySubscribe(be)}_subscribe(be){return this._throwIfClosed(),this._checkFinalizedStatuses(be),this._innerSubscribe(be)}_innerSubscribe(be){const{hasError:et,isStopped:it,observers:Ye}=this;return et||it?c.Kn:(this.currentObservers=null,Ye.push(be),new c.yU(()=>{this.currentObservers=null,(0,$.o)(Ye,be)}))}_checkFinalizedStatuses(be){const{hasError:et,thrownError:it,isStopped:Ye}=this;et?be.error(it):Ye&&be.complete()}asObservable(){const be=new h.c;return be.source=this,be}}return tt.create=(Se,be)=>new Xe(Se,be),tt})();class Xe extends ae{constructor(Se,be){super(),this.destination=Se,this.source=be}next(Se){var be,et;null===(et=null===(be=this.destination)||void 0===be?void 0:be.next)||void 0===et||et.call(be,Se)}error(Se){var be,et;null===(et=null===(be=this.destination)||void 0===be?void 0:be.error)||void 0===et||et.call(be,Se)}complete(){var Se,be;null===(be=null===(Se=this.destination)||void 0===Se?void 0:Se.complete)||void 0===be||be.call(Se)}_subscribe(Se){var be,et;return null!==(et=null===(be=this.source)||void 0===be?void 0:be.subscribe(Se))&&void 0!==et?et:c.Kn}}},7707:(Pn,Et,C)=>{"use strict";C.d(Et,{Ms:()=>mt,vU:()=>et});var h=C(8071),c=C(8359),Z=C(1026),ke=C(5334),$=C(5343);const he=tt("C",void 0,void 0);function tt(It,Te,Ze){return{kind:It,value:Te,error:Ze}}var Se=C(9270),be=C(9786);class et extends c.yU{constructor(Te){super(),this.isStopped=!1,Te?(this.destination=Te,(0,c.Uv)(Te)&&Te.add(this)):this.destination=Tt}static create(Te,Ze,_e){return new mt(Te,Ze,_e)}next(Te){this.isStopped?zt(function Xe(It){return tt("N",It,void 0)}(Te),this):this._next(Te)}error(Te){this.isStopped?zt(function ae(It){return tt("E",void 0,It)}(Te),this):(this.isStopped=!0,this._error(Te))}complete(){this.isStopped?zt(he,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(Te){this.destination.next(Te)}_error(Te){try{this.destination.error(Te)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}}const it=Function.prototype.bind;function Ye(It,Te){return it.call(It,Te)}class at{constructor(Te){this.partialObserver=Te}next(Te){const{partialObserver:Ze}=this;if(Ze.next)try{Ze.next(Te)}catch(_e){xt(_e)}}error(Te){const{partialObserver:Ze}=this;if(Ze.error)try{Ze.error(Te)}catch(_e){xt(_e)}else xt(Te)}complete(){const{partialObserver:Te}=this;if(Te.complete)try{Te.complete()}catch(Ze){xt(Ze)}}}class mt extends et{constructor(Te,Ze,_e){let $e;if(super(),(0,h.T)(Te)||!Te)$e={next:null!=Te?Te:void 0,error:null!=Ze?Ze:void 0,complete:null!=_e?_e:void 0};else{let Le;this&&Z.$.useDeprecatedNextContext?(Le=Object.create(Te),Le.unsubscribe=()=>this.unsubscribe(),$e={next:Te.next&&Ye(Te.next,Le),error:Te.error&&Ye(Te.error,Le),complete:Te.complete&&Ye(Te.complete,Le)}):$e=Te}this.destination=new at($e)}}function xt(It){Z.$.useDeprecatedSynchronousErrorHandling?(0,be.l)(It):(0,ke.m)(It)}function zt(It,Te){const{onStoppedNotification:Ze}=Z.$;Ze&&Se.f.setTimeout(()=>Ze(It,Te))}const Tt={closed:!0,next:$.l,error:function Dt(It){throw It},complete:$.l}},8359:(Pn,Et,C)=>{"use strict";C.d(Et,{Kn:()=>he,yU:()=>$,Uv:()=>ae});var h=C(8071);const Z=(0,C(1853).L)(tt=>function(be){tt(this),this.message=be?`${be.length} errors occurred during unsubscription:\n${be.map((et,it)=>`${it+1}) ${et.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=be});var ke=C(7908);class ${constructor(Se){this.initialTeardown=Se,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let Se;if(!this.closed){this.closed=!0;const{_parentage:be}=this;if(be)if(this._parentage=null,Array.isArray(be))for(const Ye of be)Ye.remove(this);else be.remove(this);const{initialTeardown:et}=this;if((0,h.T)(et))try{et()}catch(Ye){Se=Ye instanceof Z?Ye.errors:[Ye]}const{_finalizers:it}=this;if(it){this._finalizers=null;for(const Ye of it)try{Xe(Ye)}catch(at){Se=null!=Se?Se:[],at instanceof Z?Se=[...Se,...at.errors]:Se.push(at)}}if(Se)throw new Z(Se)}}add(Se){var be;if(Se&&Se!==this)if(this.closed)Xe(Se);else{if(Se instanceof $){if(Se.closed||Se._hasParent(this))return;Se._addParent(this)}(this._finalizers=null!==(be=this._finalizers)&&void 0!==be?be:[]).push(Se)}}_hasParent(Se){const{_parentage:be}=this;return be===Se||Array.isArray(be)&&be.includes(Se)}_addParent(Se){const{_parentage:be}=this;this._parentage=Array.isArray(be)?(be.push(Se),be):be?[be,Se]:Se}_removeParent(Se){const{_parentage:be}=this;be===Se?this._parentage=null:Array.isArray(be)&&(0,ke.o)(be,Se)}remove(Se){const{_finalizers:be}=this;be&&(0,ke.o)(be,Se),Se instanceof $&&Se._removeParent(this)}}$.EMPTY=(()=>{const tt=new $;return tt.closed=!0,tt})();const he=$.EMPTY;function ae(tt){return tt instanceof $||tt&&"closed"in tt&&(0,h.T)(tt.remove)&&(0,h.T)(tt.add)&&(0,h.T)(tt.unsubscribe)}function Xe(tt){(0,h.T)(tt)?tt():tt.unsubscribe()}},1026:(Pn,Et,C)=>{"use strict";C.d(Et,{$:()=>h});const h={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1}},4572:(Pn,Et,C)=>{"use strict";C.d(Et,{z:()=>Se});var h=C(1985),c=C(3073),Z=C(8455),ke=C(3669),$=C(6450),he=C(9326),ae=C(8496),Xe=C(4360),tt=C(5225);function Se(...it){const Ye=(0,he.lI)(it),at=(0,he.ms)(it),{args:mt,keys:xt}=(0,c.D)(it);if(0===mt.length)return(0,Z.H)([],Ye);const Dt=new h.c(function be(it,Ye,at=ke.D){return mt=>{et(Ye,()=>{const{length:xt}=it,Dt=new Array(xt);let zt=xt,Tt=xt;for(let It=0;It{const Te=(0,Z.H)(it[It],Ye);let Ze=!1;Te.subscribe((0,Xe._)(mt,_e=>{Dt[It]=_e,Ze||(Ze=!0,Tt--),Tt||mt.next(at(Dt.slice()))},()=>{--zt||mt.complete()}))},mt)},mt)}}(mt,Ye,xt?zt=>(0,ae.e)(xt,zt):ke.D));return at?Dt.pipe((0,$.I)(at)):Dt}function et(it,Ye,at){it?(0,tt.N)(at,it,Ye):Ye()}},8793:(Pn,Et,C)=>{"use strict";C.d(Et,{x:()=>$});var h=C(6365),Z=C(9326),ke=C(8455);function $(...he){return function c(){return(0,h.U)(1)}()((0,ke.H)(he,(0,Z.lI)(he)))}},983:(Pn,Et,C)=>{"use strict";C.d(Et,{w:()=>c});const c=new(C(1985).c)($=>$.complete())},8455:(Pn,Et,C)=>{"use strict";C.d(Et,{H:()=>Te});var h=C(8750),c=C(941),Z=C(6745),he=C(1985),Xe=C(4761),tt=C(8071),Se=C(5225);function et(Ze,_e){if(!Ze)throw new Error("Iterable cannot be null");return new he.c($e=>{(0,Se.N)($e,_e,()=>{const Le=Ze[Symbol.asyncIterator]();(0,Se.N)($e,_e,()=>{Le.next().then(Oe=>{Oe.done?$e.complete():$e.next(Oe.value)})},0,!0)})})}var it=C(5055),Ye=C(9858),at=C(7441),mt=C(5397),xt=C(7953),Dt=C(591),zt=C(5196);function Te(Ze,_e){return _e?function It(Ze,_e){if(null!=Ze){if((0,it.l)(Ze))return function ke(Ze,_e){return(0,h.Tg)(Ze).pipe((0,Z._)(_e),(0,c.Q)(_e))}(Ze,_e);if((0,at.X)(Ze))return function ae(Ze,_e){return new he.c($e=>{let Le=0;return _e.schedule(function(){Le===Ze.length?$e.complete():($e.next(Ze[Le++]),$e.closed||this.schedule())})})}(Ze,_e);if((0,Ye.y)(Ze))return function $(Ze,_e){return(0,h.Tg)(Ze).pipe((0,Z._)(_e),(0,c.Q)(_e))}(Ze,_e);if((0,xt.T)(Ze))return et(Ze,_e);if((0,mt.x)(Ze))return function be(Ze,_e){return new he.c($e=>{let Le;return(0,Se.N)($e,_e,()=>{Le=Ze[Xe.l](),(0,Se.N)($e,_e,()=>{let Oe,Ct;try{({value:Oe,done:Ct}=Le.next())}catch(kt){return void $e.error(kt)}Ct?$e.complete():$e.next(Oe)},0,!0)}),()=>(0,tt.T)(null==Le?void 0:Le.return)&&Le.return()})}(Ze,_e);if((0,zt.U)(Ze))return function Tt(Ze,_e){return et((0,zt.C)(Ze),_e)}(Ze,_e)}throw(0,Dt.L)(Ze)}(Ze,_e):(0,h.Tg)(Ze)}},3726:(Pn,Et,C)=>{"use strict";C.d(Et,{R:()=>Se});var h=C(8750),c=C(1985),Z=C(1397),ke=C(7441),$=C(8071),he=C(6450);const ae=["addListener","removeListener"],Xe=["addEventListener","removeEventListener"],tt=["on","off"];function Se(at,mt,xt,Dt){if((0,$.T)(xt)&&(Dt=xt,xt=void 0),Dt)return Se(at,mt,xt).pipe((0,he.I)(Dt));const[zt,Tt]=function Ye(at){return(0,$.T)(at.addEventListener)&&(0,$.T)(at.removeEventListener)}(at)?Xe.map(It=>Te=>at[It](mt,Te,xt)):function et(at){return(0,$.T)(at.addListener)&&(0,$.T)(at.removeListener)}(at)?ae.map(be(at,mt)):function it(at){return(0,$.T)(at.on)&&(0,$.T)(at.off)}(at)?tt.map(be(at,mt)):[];if(!zt&&(0,ke.X)(at))return(0,Z.Z)(It=>Se(It,mt,xt))((0,h.Tg)(at));if(!zt)throw new TypeError("Invalid event target");return new c.c(It=>{const Te=(...Ze)=>It.next(1Tt(Te)})}function be(at,mt){return xt=>Dt=>at[xt](mt,Dt)}},8750:(Pn,Et,C)=>{"use strict";C.d(Et,{Tg:()=>it});var h=C(1635),c=C(7441),Z=C(9858),ke=C(1985),$=C(5055),he=C(7953),ae=C(591),Xe=C(5397),tt=C(5196),Se=C(8071),be=C(5334),et=C(3494);function it(It){if(It instanceof ke.c)return It;if(null!=It){if((0,$.l)(It))return function Ye(It){return new ke.c(Te=>{const Ze=It[et.s]();if((0,Se.T)(Ze.subscribe))return Ze.subscribe(Te);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(It);if((0,c.X)(It))return function at(It){return new ke.c(Te=>{for(let Ze=0;Ze{It.then(Ze=>{Te.closed||(Te.next(Ze),Te.complete())},Ze=>Te.error(Ze)).then(null,be.m)})}(It);if((0,he.T)(It))return Dt(It);if((0,Xe.x)(It))return function xt(It){return new ke.c(Te=>{for(const Ze of It)if(Te.next(Ze),Te.closed)return;Te.complete()})}(It);if((0,tt.U)(It))return function zt(It){return Dt((0,tt.C)(It))}(It)}throw(0,ae.L)(It)}function Dt(It){return new ke.c(Te=>{(function Tt(It,Te){var Ze,_e,$e,Le;return(0,h.sH)(this,void 0,void 0,function*(){try{for(Ze=(0,h.xN)(It);!(_e=yield Ze.next()).done;)if(Te.next(_e.value),Te.closed)return}catch(Oe){$e={error:Oe}}finally{try{_e&&!_e.done&&(Le=Ze.return)&&(yield Le.call(Ze))}finally{if($e)throw $e.error}}Te.complete()})})(It,Te).catch(Ze=>Te.error(Ze))})}},7786:(Pn,Et,C)=>{"use strict";C.d(Et,{h:()=>he});var h=C(6365),c=C(8750),Z=C(983),ke=C(9326),$=C(8455);function he(...ae){const Xe=(0,ke.lI)(ae),tt=(0,ke.R0)(ae,1/0),Se=ae;return Se.length?1===Se.length?(0,c.Tg)(Se[0]):(0,h.U)(tt)((0,$.H)(Se,Xe)):Z.w}},7673:(Pn,Et,C)=>{"use strict";C.d(Et,{of:()=>Z});var h=C(9326),c=C(8455);function Z(...ke){const $=(0,h.lI)(ke);return(0,c.H)(ke,$)}},1584:(Pn,Et,C)=>{"use strict";C.d(Et,{O:()=>$});var h=C(1985),c=C(3236),Z=C(9470);function $(he=0,ae,Xe=c.b){let tt=-1;return null!=ae&&((0,Z.m)(ae)?Xe=ae:tt=ae),new h.c(Se=>{let be=function ke(he){return he instanceof Date&&!isNaN(he)}(he)?+he-Xe.now():he;be<0&&(be=0);let et=0;return Xe.schedule(function(){Se.closed||(Se.next(et++),0<=tt?this.schedule(void 0,tt):Se.complete())},be)})}},4360:(Pn,Et,C)=>{"use strict";C.d(Et,{_:()=>c});var h=C(7707);function c(ke,$,he,ae,Xe){return new Z(ke,$,he,ae,Xe)}class Z extends h.vU{constructor($,he,ae,Xe,tt,Se){super($),this.onFinalize=tt,this.shouldUnsubscribe=Se,this._next=he?function(be){try{he(be)}catch(et){$.error(et)}}:super._next,this._error=Xe?function(be){try{Xe(be)}catch(et){$.error(et)}finally{this.unsubscribe()}}:super._error,this._complete=ae?function(){try{ae()}catch(be){$.error(be)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var $;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){const{closed:he}=this;super.unsubscribe(),!he&&(null===($=this.onFinalize)||void 0===$||$.call(this))}}}},274:(Pn,Et,C)=>{"use strict";C.d(Et,{H:()=>Z});var h=C(1397),c=C(8071);function Z(ke,$){return(0,c.T)($)?(0,h.Z)(ke,$,1):(0,h.Z)(ke,1)}},9901:(Pn,Et,C)=>{"use strict";C.d(Et,{U:()=>Z});var h=C(9974),c=C(4360);function Z(ke){return(0,h.N)(($,he)=>{let ae=!1;$.subscribe((0,c._)(he,Xe=>{ae=!0,he.next(Xe)},()=>{ae||he.next(ke),he.complete()}))})}},3294:(Pn,Et,C)=>{"use strict";C.d(Et,{F:()=>ke});var h=C(3669),c=C(9974),Z=C(4360);function ke(he,ae=h.D){return he=null!=he?he:$,(0,c.N)((Xe,tt)=>{let Se,be=!0;Xe.subscribe((0,Z._)(tt,et=>{const it=ae(et);(be||!he(Se,it))&&(be=!1,Se=it,tt.next(et))}))})}function $(he,ae){return he===ae}},5964:(Pn,Et,C)=>{"use strict";C.d(Et,{p:()=>Z});var h=C(9974),c=C(4360);function Z(ke,$){return(0,h.N)((he,ae)=>{let Xe=0;he.subscribe((0,c._)(ae,tt=>ke.call($,tt,Xe++)&&ae.next(tt)))})}},980:(Pn,Et,C)=>{"use strict";C.d(Et,{j:()=>c});var h=C(9974);function c(Z){return(0,h.N)((ke,$)=>{try{ke.subscribe($)}finally{$.add(Z)}})}},1594:(Pn,Et,C)=>{"use strict";C.d(Et,{$:()=>ae});var h=C(9350),c=C(5964),Z=C(6697),ke=C(9901),$=C(3774),he=C(3669);function ae(Xe,tt){const Se=arguments.length>=2;return be=>be.pipe(Xe?(0,c.p)((et,it)=>Xe(et,it,be)):he.D,(0,Z.s)(1),Se?(0,ke.U)(tt):(0,$.v)(()=>new h.G))}},6354:(Pn,Et,C)=>{"use strict";C.d(Et,{T:()=>Z});var h=C(9974),c=C(4360);function Z(ke,$){return(0,h.N)((he,ae)=>{let Xe=0;he.subscribe((0,c._)(ae,tt=>{ae.next(ke.call($,tt,Xe++))}))})}},3703:(Pn,Et,C)=>{"use strict";C.d(Et,{u:()=>c});var h=C(6354);function c(Z){return(0,h.T)(()=>Z)}},6365:(Pn,Et,C)=>{"use strict";C.d(Et,{U:()=>Z});var h=C(1397),c=C(3669);function Z(ke=1/0){return(0,h.Z)(c.D,ke)}},1397:(Pn,Et,C)=>{"use strict";C.d(Et,{Z:()=>Xe});var h=C(6354),c=C(8750),Z=C(9974),ke=C(5225),$=C(4360),ae=C(8071);function Xe(tt,Se,be=1/0){return(0,ae.T)(Se)?Xe((et,it)=>(0,h.T)((Ye,at)=>Se(et,Ye,it,at))((0,c.Tg)(tt(et,it))),be):("number"==typeof Se&&(be=Se),(0,Z.N)((et,it)=>function he(tt,Se,be,et,it,Ye,at,mt){const xt=[];let Dt=0,zt=0,Tt=!1;const It=()=>{Tt&&!xt.length&&!Dt&&Se.complete()},Te=_e=>Dt{Ye&&Se.next(_e),Dt++;let $e=!1;(0,c.Tg)(be(_e,zt++)).subscribe((0,$._)(Se,Le=>{null==it||it(Le),Ye?Te(Le):Se.next(Le)},()=>{$e=!0},void 0,()=>{if($e)try{for(Dt--;xt.length&&DtZe(Le)):Ze(Le)}It()}catch(Le){Se.error(Le)}}))};return tt.subscribe((0,$._)(Se,Te,()=>{Tt=!0,It()})),()=>{null==mt||mt()}}(et,it,tt,be)))}},941:(Pn,Et,C)=>{"use strict";C.d(Et,{Q:()=>ke});var h=C(5225),c=C(9974),Z=C(4360);function ke($,he=0){return(0,c.N)((ae,Xe)=>{ae.subscribe((0,Z._)(Xe,tt=>(0,h.N)(Xe,$,()=>Xe.next(tt),he),()=>(0,h.N)(Xe,$,()=>Xe.complete(),he),tt=>(0,h.N)(Xe,$,()=>Xe.error(tt),he)))})}},9172:(Pn,Et,C)=>{"use strict";C.d(Et,{Z:()=>ke});var h=C(8793),c=C(9326),Z=C(9974);function ke(...$){const he=(0,c.lI)($);return(0,Z.N)((ae,Xe)=>{(he?(0,h.x)($,ae,he):(0,h.x)($,ae)).subscribe(Xe)})}},6745:(Pn,Et,C)=>{"use strict";C.d(Et,{_:()=>c});var h=C(9974);function c(Z,ke=0){return(0,h.N)(($,he)=>{he.add(Z.schedule(()=>$.subscribe(he),ke))})}},5558:(Pn,Et,C)=>{"use strict";C.d(Et,{n:()=>ke});var h=C(8750),c=C(9974),Z=C(4360);function ke($,he){return(0,c.N)((ae,Xe)=>{let tt=null,Se=0,be=!1;const et=()=>be&&!tt&&Xe.complete();ae.subscribe((0,Z._)(Xe,it=>{null==tt||tt.unsubscribe();let Ye=0;const at=Se++;(0,h.Tg)($(it,at)).subscribe(tt=(0,Z._)(Xe,mt=>Xe.next(he?he(it,mt,at,Ye++):mt),()=>{tt=null,et()}))},()=>{be=!0,et()}))})}},6697:(Pn,Et,C)=>{"use strict";C.d(Et,{s:()=>ke});var h=C(983),c=C(9974),Z=C(4360);function ke($){return $<=0?()=>h.w:(0,c.N)((he,ae)=>{let Xe=0;he.subscribe((0,Z._)(ae,tt=>{++Xe<=$&&(ae.next(tt),$<=Xe&&ae.complete())}))})}},6977:(Pn,Et,C)=>{"use strict";C.d(Et,{Q:()=>$});var h=C(9974),c=C(4360),Z=C(8750),ke=C(5343);function $(he){return(0,h.N)((ae,Xe)=>{(0,Z.Tg)(he).subscribe((0,c._)(Xe,()=>Xe.complete(),ke.l)),!Xe.closed&&ae.subscribe(Xe)})}},8141:(Pn,Et,C)=>{"use strict";C.d(Et,{M:()=>$});var h=C(8071),c=C(9974),Z=C(4360),ke=C(3669);function $(he,ae,Xe){const tt=(0,h.T)(he)||ae||Xe?{next:he,error:ae,complete:Xe}:he;return tt?(0,c.N)((Se,be)=>{var et;null===(et=tt.subscribe)||void 0===et||et.call(tt);let it=!0;Se.subscribe((0,Z._)(be,Ye=>{var at;null===(at=tt.next)||void 0===at||at.call(tt,Ye),be.next(Ye)},()=>{var Ye;it=!1,null===(Ye=tt.complete)||void 0===Ye||Ye.call(tt),be.complete()},Ye=>{var at;it=!1,null===(at=tt.error)||void 0===at||at.call(tt,Ye),be.error(Ye)},()=>{var Ye,at;it&&(null===(Ye=tt.unsubscribe)||void 0===Ye||Ye.call(tt)),null===(at=tt.finalize)||void 0===at||at.call(tt)}))}):ke.D}},3774:(Pn,Et,C)=>{"use strict";C.d(Et,{v:()=>ke});var h=C(9350),c=C(9974),Z=C(4360);function ke(he=$){return(0,c.N)((ae,Xe)=>{let tt=!1;ae.subscribe((0,Z._)(Xe,Se=>{tt=!0,Xe.next(Se)},()=>tt?Xe.complete():Xe.error(he())))})}function $(){return new h.G}},6780:(Pn,Et,C)=>{"use strict";C.d(Et,{R:()=>$});var h=C(8359);class c extends h.yU{constructor(ae,Xe){super()}schedule(ae,Xe=0){return this}}const Z={setInterval(he,ae,...Xe){const{delegate:tt}=Z;return null!=tt&&tt.setInterval?tt.setInterval(he,ae,...Xe):setInterval(he,ae,...Xe)},clearInterval(he){const{delegate:ae}=Z;return((null==ae?void 0:ae.clearInterval)||clearInterval)(he)},delegate:void 0};var ke=C(7908);class $ extends c{constructor(ae,Xe){super(ae,Xe),this.scheduler=ae,this.work=Xe,this.pending=!1}schedule(ae,Xe=0){var tt;if(this.closed)return this;this.state=ae;const Se=this.id,be=this.scheduler;return null!=Se&&(this.id=this.recycleAsyncId(be,Se,Xe)),this.pending=!0,this.delay=Xe,this.id=null!==(tt=this.id)&&void 0!==tt?tt:this.requestAsyncId(be,this.id,Xe),this}requestAsyncId(ae,Xe,tt=0){return Z.setInterval(ae.flush.bind(ae,this),tt)}recycleAsyncId(ae,Xe,tt=0){if(null!=tt&&this.delay===tt&&!1===this.pending)return Xe;null!=Xe&&Z.clearInterval(Xe)}execute(ae,Xe){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const tt=this._execute(ae,Xe);if(tt)return tt;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(ae,Xe){let Se,tt=!1;try{this.work(ae)}catch(be){tt=!0,Se=be||new Error("Scheduled action threw falsy error")}if(tt)return this.unsubscribe(),Se}unsubscribe(){if(!this.closed){const{id:ae,scheduler:Xe}=this,{actions:tt}=Xe;this.work=this.state=this.scheduler=null,this.pending=!1,(0,ke.o)(tt,this),null!=ae&&(this.id=this.recycleAsyncId(Xe,ae,null)),this.delay=null,super.unsubscribe()}}}},9687:(Pn,Et,C)=>{"use strict";C.d(Et,{q:()=>Z});var h=C(6129);class c{constructor($,he=c.now){this.schedulerActionCtor=$,this.now=he}schedule($,he=0,ae){return new this.schedulerActionCtor(this,$).schedule(ae,he)}}c.now=h.U.now;class Z extends c{constructor($,he=c.now){super($,he),this.actions=[],this._active=!1}flush($){const{actions:he}=this;if(this._active)return void he.push($);let ae;this._active=!0;do{if(ae=$.execute($.state,$.delay))break}while($=he.shift());if(this._active=!1,ae){for(;$=he.shift();)$.unsubscribe();throw ae}}}},3236:(Pn,Et,C)=>{"use strict";C.d(Et,{E:()=>Z,b:()=>ke});var h=C(6780);const Z=new(C(9687).q)(h.R),ke=Z},6129:(Pn,Et,C)=>{"use strict";C.d(Et,{U:()=>h});const h={now:()=>(h.delegate||Date).now(),delegate:void 0}},9270:(Pn,Et,C)=>{"use strict";C.d(Et,{f:()=>h});const h={setTimeout(c,Z,...ke){const{delegate:$}=h;return null!=$&&$.setTimeout?$.setTimeout(c,Z,...ke):setTimeout(c,Z,...ke)},clearTimeout(c){const{delegate:Z}=h;return((null==Z?void 0:Z.clearTimeout)||clearTimeout)(c)},delegate:void 0}},4761:(Pn,Et,C)=>{"use strict";C.d(Et,{l:()=>c});const c=function h(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}()},3494:(Pn,Et,C)=>{"use strict";C.d(Et,{s:()=>h});const h="function"==typeof Symbol&&Symbol.observable||"@@observable"},9350:(Pn,Et,C)=>{"use strict";C.d(Et,{G:()=>c});const c=(0,C(1853).L)(Z=>function(){Z(this),this.name="EmptyError",this.message="no elements in sequence"})},9326:(Pn,Et,C)=>{"use strict";C.d(Et,{R0:()=>he,lI:()=>$,ms:()=>ke});var h=C(8071),c=C(9470);function Z(ae){return ae[ae.length-1]}function ke(ae){return(0,h.T)(Z(ae))?ae.pop():void 0}function $(ae){return(0,c.m)(Z(ae))?ae.pop():void 0}function he(ae,Xe){return"number"==typeof Z(ae)?ae.pop():Xe}},3073:(Pn,Et,C)=>{"use strict";C.d(Et,{D:()=>$});const{isArray:h}=Array,{getPrototypeOf:c,prototype:Z,keys:ke}=Object;function $(ae){if(1===ae.length){const Xe=ae[0];if(h(Xe))return{args:Xe,keys:null};if(function he(ae){return ae&&"object"==typeof ae&&c(ae)===Z}(Xe)){const tt=ke(Xe);return{args:tt.map(Se=>Xe[Se]),keys:tt}}}return{args:ae,keys:null}}},7908:(Pn,Et,C)=>{"use strict";function h(c,Z){if(c){const ke=c.indexOf(Z);0<=ke&&c.splice(ke,1)}}C.d(Et,{o:()=>h})},1853:(Pn,Et,C)=>{"use strict";function h(c){const ke=c($=>{Error.call($),$.stack=(new Error).stack});return ke.prototype=Object.create(Error.prototype),ke.prototype.constructor=ke,ke}C.d(Et,{L:()=>h})},8496:(Pn,Et,C)=>{"use strict";function h(c,Z){return c.reduce((ke,$,he)=>(ke[$]=Z[he],ke),{})}C.d(Et,{e:()=>h})},9786:(Pn,Et,C)=>{"use strict";C.d(Et,{Y:()=>Z,l:()=>ke});var h=C(1026);let c=null;function Z($){if(h.$.useDeprecatedSynchronousErrorHandling){const he=!c;if(he&&(c={errorThrown:!1,error:null}),$(),he){const{errorThrown:ae,error:Xe}=c;if(c=null,ae)throw Xe}}else $()}function ke($){h.$.useDeprecatedSynchronousErrorHandling&&c&&(c.errorThrown=!0,c.error=$)}},5225:(Pn,Et,C)=>{"use strict";function h(c,Z,ke,$=0,he=!1){const ae=Z.schedule(function(){ke(),he?c.add(this.schedule(null,$)):this.unsubscribe()},$);if(c.add(ae),!he)return ae}C.d(Et,{N:()=>h})},3669:(Pn,Et,C)=>{"use strict";function h(c){return c}C.d(Et,{D:()=>h})},7441:(Pn,Et,C)=>{"use strict";C.d(Et,{X:()=>h});const h=c=>c&&"number"==typeof c.length&&"function"!=typeof c},7953:(Pn,Et,C)=>{"use strict";C.d(Et,{T:()=>c});var h=C(8071);function c(Z){return Symbol.asyncIterator&&(0,h.T)(null==Z?void 0:Z[Symbol.asyncIterator])}},8071:(Pn,Et,C)=>{"use strict";function h(c){return"function"==typeof c}C.d(Et,{T:()=>h})},5055:(Pn,Et,C)=>{"use strict";C.d(Et,{l:()=>Z});var h=C(3494),c=C(8071);function Z(ke){return(0,c.T)(ke[h.s])}},5397:(Pn,Et,C)=>{"use strict";C.d(Et,{x:()=>Z});var h=C(4761),c=C(8071);function Z(ke){return(0,c.T)(null==ke?void 0:ke[h.l])}},4402:(Pn,Et,C)=>{"use strict";C.d(Et,{A:()=>Z});var h=C(1985),c=C(8071);function Z(ke){return!!ke&&(ke instanceof h.c||(0,c.T)(ke.lift)&&(0,c.T)(ke.subscribe))}},9858:(Pn,Et,C)=>{"use strict";C.d(Et,{y:()=>c});var h=C(8071);function c(Z){return(0,h.T)(null==Z?void 0:Z.then)}},5196:(Pn,Et,C)=>{"use strict";C.d(Et,{C:()=>Z,U:()=>ke});var h=C(1635),c=C(8071);function Z($){return(0,h.AQ)(this,arguments,function*(){const ae=$.getReader();try{for(;;){const{value:Xe,done:tt}=yield(0,h.N3)(ae.read());if(tt)return yield(0,h.N3)(void 0);yield yield(0,h.N3)(Xe)}}finally{ae.releaseLock()}})}function ke($){return(0,c.T)(null==$?void 0:$.getReader)}},9470:(Pn,Et,C)=>{"use strict";C.d(Et,{m:()=>c});var h=C(8071);function c(Z){return Z&&(0,h.T)(Z.schedule)}},9974:(Pn,Et,C)=>{"use strict";C.d(Et,{N:()=>Z,S:()=>c});var h=C(8071);function c(ke){return(0,h.T)(null==ke?void 0:ke.lift)}function Z(ke){return $=>{if(c($))return $.lift(function(he){try{return ke(he,this)}catch(ae){this.error(ae)}});throw new TypeError("Unable to lift unknown Observable type")}}},6450:(Pn,Et,C)=>{"use strict";C.d(Et,{I:()=>ke});var h=C(6354);const{isArray:c}=Array;function ke($){return(0,h.T)(he=>function Z($,he){return c(he)?$(...he):$(he)}($,he))}},5343:(Pn,Et,C)=>{"use strict";function h(){}C.d(Et,{l:()=>h})},1203:(Pn,Et,C)=>{"use strict";C.d(Et,{F:()=>c,m:()=>Z});var h=C(3669);function c(...ke){return Z(ke)}function Z(ke){return 0===ke.length?h.D:1===ke.length?ke[0]:function(he){return ke.reduce((ae,Xe)=>Xe(ae),he)}}},5334:(Pn,Et,C)=>{"use strict";C.d(Et,{m:()=>Z});var h=C(1026),c=C(9270);function Z(ke){c.f.setTimeout(()=>{const{onUnhandledError:$}=h.$;if(!$)throw ke;$(ke)})}},591:(Pn,Et,C)=>{"use strict";function h(c){return new TypeError(`You provided ${null!==c&&"object"==typeof c?"an invalid object":`'${c}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}C.d(Et,{L:()=>h})},8996:(Pn,Et,C)=>{var h={"./ion-accordion_2.entry.js":[2375,2076,2375],"./ion-action-sheet.entry.js":[8814,2076,8814],"./ion-alert.entry.js":[5222,2076,5222],"./ion-app_8.entry.js":[7720,2076,7720],"./ion-avatar_3.entry.js":[1049,1049],"./ion-back-button.entry.js":[3162,2076,3162],"./ion-backdrop.entry.js":[7240,7240],"./ion-breadcrumb_2.entry.js":[8314,2076,8314],"./ion-button_2.entry.js":[4591,4591],"./ion-card_5.entry.js":[8584,8584],"./ion-checkbox.entry.js":[3511,3511],"./ion-chip.entry.js":[6024,6024],"./ion-col_3.entry.js":[5100,5100],"./ion-datetime-button.entry.js":[7428,1293,7428],"./ion-datetime_3.entry.js":[2885,1293,2076,2885],"./ion-fab_3.entry.js":[4463,2076,4463],"./ion-img.entry.js":[4183,4183],"./ion-infinite-scroll_2.entry.js":[4171,2076,4171],"./ion-input-password-toggle.entry.js":[6521,2076,6521],"./ion-input.entry.js":[9344,2076,9344],"./ion-item-option_3.entry.js":[5949,2076,5949],"./ion-item_8.entry.js":[3506,2076,3506],"./ion-loading.entry.js":[7372,2076,7372],"./ion-menu_3.entry.js":[2075,2076,2075],"./ion-modal.entry.js":[441,2076,441],"./ion-nav_2.entry.js":[5712,2076,5712],"./ion-picker-column-option.entry.js":[9013,9013],"./ion-picker-column.entry.js":[1459,2076,1459],"./ion-picker.entry.js":[6840,6840],"./ion-popover.entry.js":[6433,2076,6433],"./ion-progress-bar.entry.js":[9977,9977],"./ion-radio_2.entry.js":[8066,2076,8066],"./ion-range.entry.js":[8477,2076,8477],"./ion-refresher_2.entry.js":[5197,2076,5197],"./ion-reorder_2.entry.js":[7030,2076,7030],"./ion-ripple-effect.entry.js":[964,964],"./ion-route_4.entry.js":[8970,8970],"./ion-searchbar.entry.js":[8193,2076,8193],"./ion-segment_2.entry.js":[2560,2076,2560],"./ion-select_3.entry.js":[7076,2076,7076],"./ion-spinner.entry.js":[8805,2076,8805],"./ion-split-pane.entry.js":[5887,5887],"./ion-tab-bar_2.entry.js":[4406,2076,4406],"./ion-tab_2.entry.js":[1102,1102],"./ion-text.entry.js":[1577,1577],"./ion-textarea.entry.js":[2348,2076,2348],"./ion-toast.entry.js":[2415,2076,2415],"./ion-toggle.entry.js":[3814,2076,3814]};function c(Z){if(!C.o(h,Z))return Promise.resolve().then(()=>{var he=new Error("Cannot find module '"+Z+"'");throw he.code="MODULE_NOT_FOUND",he});var ke=h[Z],$=ke[0];return Promise.all(ke.slice(1).map(C.e)).then(()=>C($))}c.keys=()=>Object.keys(h),c.id=8996,Pn.exports=c},177:(Pn,Et,C)=>{"use strict";C.d(Et,{AJ:()=>en,Jj:()=>Pt,MD:()=>wt,N0:()=>Bi,QT:()=>Z,QX:()=>vr,Sm:()=>mt,Sq:()=>pr,T3:()=>Zn,UE:()=>Gn,VF:()=>$,Vy:()=>Yn,Xr:()=>Wr,ZD:()=>ke,_b:()=>O,aZ:()=>Dt,bT:()=>jn,fw:()=>xt,hb:()=>Ye,hj:()=>tt,qQ:()=>ae});var h=C(4438);let c=null;function Z(){return c}function ke(T){var j;null!==(j=c)&&void 0!==j||(c=T)}class ${}const ae=new h.nKC("");let Xe=(()=>{var T;class j{historyGo(F){throw new Error("")}}return(T=j).\u0275fac=function(F){return new(F||T)},T.\u0275prov=h.jDH({token:T,factory:()=>(0,h.WQX)(Se),providedIn:"platform"}),j})();const tt=new h.nKC("");let Se=(()=>{var T;class j extends Xe{constructor(){super(),this._doc=(0,h.WQX)(ae),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Z().getBaseHref(this._doc)}onPopState(F){const De=Z().getGlobalEventTarget(this._doc,"window");return De.addEventListener("popstate",F,!1),()=>De.removeEventListener("popstate",F)}onHashChange(F){const De=Z().getGlobalEventTarget(this._doc,"window");return De.addEventListener("hashchange",F,!1),()=>De.removeEventListener("hashchange",F)}get href(){return this._location.href}get protocol(){return this._location.protocol}get hostname(){return this._location.hostname}get port(){return this._location.port}get pathname(){return this._location.pathname}get search(){return this._location.search}get hash(){return this._location.hash}set pathname(F){this._location.pathname=F}pushState(F,De,Qe){this._history.pushState(F,De,Qe)}replaceState(F,De,Qe){this._history.replaceState(F,De,Qe)}forward(){this._history.forward()}back(){this._history.back()}historyGo(F=0){this._history.go(F)}getState(){return this._history.state}}return(T=j).\u0275fac=function(F){return new(F||T)},T.\u0275prov=h.jDH({token:T,factory:()=>new T,providedIn:"platform"}),j})();function be(T,j){if(0==T.length)return j;if(0==j.length)return T;let Ue=0;return T.endsWith("/")&&Ue++,j.startsWith("/")&&Ue++,2==Ue?T+j.substring(1):1==Ue?T+j:T+"/"+j}function et(T){const j=T.match(/#|\?|$/),Ue=j&&j.index||T.length;return T.slice(0,Ue-("/"===T[Ue-1]?1:0))+T.slice(Ue)}function it(T){return T&&"?"!==T[0]?"?"+T:T}let Ye=(()=>{var T;class j{historyGo(F){throw new Error("")}}return(T=j).\u0275fac=function(F){return new(F||T)},T.\u0275prov=h.jDH({token:T,factory:()=>(0,h.WQX)(mt),providedIn:"root"}),j})();const at=new h.nKC("");let mt=(()=>{var T;class j extends Ye{constructor(F,De){var Qe,tn,Fn;super(),this._platformLocation=F,this._removeListenerFns=[],this._baseHref=null!==(Qe=null!==(tn=null!=De?De:this._platformLocation.getBaseHrefFromDOM())&&void 0!==tn?tn:null===(Fn=(0,h.WQX)(ae).location)||void 0===Fn?void 0:Fn.origin)&&void 0!==Qe?Qe:""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}prepareExternalUrl(F){return be(this._baseHref,F)}path(F=!1){const De=this._platformLocation.pathname+it(this._platformLocation.search),Qe=this._platformLocation.hash;return Qe&&F?`${De}${Qe}`:De}pushState(F,De,Qe,tn){const Fn=this.prepareExternalUrl(Qe+it(tn));this._platformLocation.pushState(F,De,Fn)}replaceState(F,De,Qe,tn){const Fn=this.prepareExternalUrl(Qe+it(tn));this._platformLocation.replaceState(F,De,Fn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var De,Qe;null===(De=(Qe=this._platformLocation).historyGo)||void 0===De||De.call(Qe,F)}}return(T=j).\u0275fac=function(F){return new(F||T)(h.KVO(Xe),h.KVO(at,8))},T.\u0275prov=h.jDH({token:T,factory:T.\u0275fac,providedIn:"root"}),j})(),xt=(()=>{var T;class j extends Ye{constructor(F,De){super(),this._platformLocation=F,this._baseHref="",this._removeListenerFns=[],null!=De&&(this._baseHref=De)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(F){this._removeListenerFns.push(this._platformLocation.onPopState(F),this._platformLocation.onHashChange(F))}getBaseHref(){return this._baseHref}path(F=!1){var De;const Qe=null!==(De=this._platformLocation.hash)&&void 0!==De?De:"#";return Qe.length>0?Qe.substring(1):Qe}prepareExternalUrl(F){const De=be(this._baseHref,F);return De.length>0?"#"+De:De}pushState(F,De,Qe,tn){let Fn=this.prepareExternalUrl(Qe+it(tn));0==Fn.length&&(Fn=this._platformLocation.pathname),this._platformLocation.pushState(F,De,Fn)}replaceState(F,De,Qe,tn){let Fn=this.prepareExternalUrl(Qe+it(tn));0==Fn.length&&(Fn=this._platformLocation.pathname),this._platformLocation.replaceState(F,De,Fn)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(F=0){var De,Qe;null===(De=(Qe=this._platformLocation).historyGo)||void 0===De||De.call(Qe,F)}}return(T=j).\u0275fac=function(F){return new(F||T)(h.KVO(Xe),h.KVO(at,8))},T.\u0275prov=h.jDH({token:T,factory:T.\u0275fac}),j})(),Dt=(()=>{var T;class j{constructor(F){this._subject=new h.bkB,this._urlChangeListeners=[],this._urlChangeSubscription=null,this._locationStrategy=F;const De=this._locationStrategy.getBaseHref();this._basePath=function Te(T){if(new RegExp("^(https?:)?//").test(T)){const[,Ue]=T.split(/\/\/[^\/]+/);return Ue}return T}(et(It(De))),this._locationStrategy.onPopState(Qe=>{this._subject.emit({url:this.path(!0),pop:!0,state:Qe.state,type:Qe.type})})}ngOnDestroy(){var F;null===(F=this._urlChangeSubscription)||void 0===F||F.unsubscribe(),this._urlChangeListeners=[]}path(F=!1){return this.normalize(this._locationStrategy.path(F))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(F,De=""){return this.path()==this.normalize(F+it(De))}normalize(F){return j.stripTrailingSlash(function Tt(T,j){if(!T||!j.startsWith(T))return j;const Ue=j.substring(T.length);return""===Ue||["/",";","?","#"].includes(Ue[0])?Ue:j}(this._basePath,It(F)))}prepareExternalUrl(F){return F&&"/"!==F[0]&&(F="/"+F),this._locationStrategy.prepareExternalUrl(F)}go(F,De="",Qe=null){this._locationStrategy.pushState(Qe,"",F,De),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+it(De)),Qe)}replaceState(F,De="",Qe=null){this._locationStrategy.replaceState(Qe,"",F,De),this._notifyUrlChangeListeners(this.prepareExternalUrl(F+it(De)),Qe)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(F=0){var De,Qe;null===(De=(Qe=this._locationStrategy).historyGo)||void 0===De||De.call(Qe,F)}onUrlChange(F){var De;return this._urlChangeListeners.push(F),null!==(De=this._urlChangeSubscription)&&void 0!==De||(this._urlChangeSubscription=this.subscribe(Qe=>{this._notifyUrlChangeListeners(Qe.url,Qe.state)})),()=>{const Qe=this._urlChangeListeners.indexOf(F);var tn;this._urlChangeListeners.splice(Qe,1),0===this._urlChangeListeners.length&&(null===(tn=this._urlChangeSubscription)||void 0===tn||tn.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(F="",De){this._urlChangeListeners.forEach(Qe=>Qe(F,De))}subscribe(F,De,Qe){return this._subject.subscribe({next:F,error:De,complete:Qe})}}return(T=j).normalizeQueryParams=it,T.joinWithSlash=be,T.stripTrailingSlash=et,T.\u0275fac=function(F){return new(F||T)(h.KVO(Ye))},T.\u0275prov=h.jDH({token:T,factory:()=>function zt(){return new Dt((0,h.KVO)(Ye))}(),providedIn:"root"}),j})();function It(T){return T.replace(/\/index.html$/,"")}var _e=function(T){return T[T.Decimal=0]="Decimal",T[T.Percent=1]="Percent",T[T.Currency=2]="Currency",T[T.Scientific=3]="Scientific",T}(_e||{});const kt={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Ve(T,j){const Ue=(0,h.H5H)(T),F=Ue[h.KH2.NumberSymbols][j];if(typeof F>"u"){if(j===kt.CurrencyDecimal)return Ue[h.KH2.NumberSymbols][kt.Decimal];if(j===kt.CurrencyGroup)return Ue[h.KH2.NumberSymbols][kt.Group]}return F}const gt=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function Gt(T){const j=parseInt(T);if(isNaN(j))throw new Error("Invalid integer literal when parsing "+T);return j}function O(T,j){j=encodeURIComponent(j);for(const Ue of T.split(";")){const F=Ue.indexOf("="),[De,Qe]=-1==F?[Ue,""]:[Ue.slice(0,F),Ue.slice(F+1)];if(De.trim()===j)return decodeURIComponent(Qe)}return null}class rn{constructor(j,Ue,F,De){this.$implicit=j,this.ngForOf=Ue,this.index=F,this.count=De}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let pr=(()=>{var T;class j{set ngForOf(F){this._ngForOf=F,this._ngForOfDirty=!0}set ngForTrackBy(F){this._trackByFn=F}get ngForTrackBy(){return this._trackByFn}constructor(F,De,Qe){this._viewContainer=F,this._template=De,this._differs=Qe,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForTemplate(F){F&&(this._template=F)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const F=this._ngForOf;!this._differ&&F&&(this._differ=this._differs.find(F).create(this.ngForTrackBy))}if(this._differ){const F=this._differ.diff(this._ngForOf);F&&this._applyChanges(F)}}_applyChanges(F){const De=this._viewContainer;F.forEachOperation((Qe,tn,Fn)=>{if(null==Qe.previousIndex)De.createEmbeddedView(this._template,new rn(Qe.item,this._ngForOf,-1,-1),null===Fn?void 0:Fn);else if(null==Fn)De.remove(null===tn?void 0:tn);else if(null!==tn){const Er=De.get(tn);De.move(Er,Fn),qn(Er,Qe)}});for(let Qe=0,tn=De.length;Qe{qn(De.get(Qe.currentIndex),Qe)})}static ngTemplateContextGuard(F,De){return!0}}return(T=j).\u0275fac=function(F){return new(F||T)(h.rXU(h.c1b),h.rXU(h.C4Q),h.rXU(h._q3))},T.\u0275dir=h.FsC({type:T,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"},standalone:!0}),j})();function qn(T,j){T.context.$implicit=j.item}let jn=(()=>{var T;class j{constructor(F,De){this._viewContainer=F,this._context=new zr,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=De}set ngIf(F){this._context.$implicit=this._context.ngIf=F,this._updateView()}set ngIfThen(F){$r("ngIfThen",F),this._thenTemplateRef=F,this._thenViewRef=null,this._updateView()}set ngIfElse(F){$r("ngIfElse",F),this._elseTemplateRef=F,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(F,De){return!0}}return(T=j).\u0275fac=function(F){return new(F||T)(h.rXU(h.c1b),h.rXU(h.C4Q))},T.\u0275dir=h.FsC({type:T,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"},standalone:!0}),j})();class zr{constructor(){this.$implicit=null,this.ngIf=null}}function $r(T,j){if(j&&!j.createEmbeddedView)throw new Error(`${T} must be a TemplateRef, but received '${(0,h.Tbb)(j)}'.`)}let Zn=(()=>{var T;class j{constructor(F){this._viewContainerRef=F,this._viewRef=null,this.ngTemplateOutletContext=null,this.ngTemplateOutlet=null,this.ngTemplateOutletInjector=null}ngOnChanges(F){if(this._shouldRecreateView(F)){var De;const Qe=this._viewContainerRef;if(this._viewRef&&Qe.remove(Qe.indexOf(this._viewRef)),!this.ngTemplateOutlet)return void(this._viewRef=null);const tn=this._createContextForwardProxy();this._viewRef=Qe.createEmbeddedView(this.ngTemplateOutlet,tn,{injector:null!==(De=this.ngTemplateOutletInjector)&&void 0!==De?De:void 0})}}_shouldRecreateView(F){return!!F.ngTemplateOutlet||!!F.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(F,De,Qe)=>!!this.ngTemplateOutletContext&&Reflect.set(this.ngTemplateOutletContext,De,Qe),get:(F,De,Qe)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,De,Qe)}})}}return(T=j).\u0275fac=function(F){return new(F||T)(h.rXU(h.c1b))},T.\u0275dir=h.FsC({type:T,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},standalone:!0,features:[h.OA$]}),j})();function fi(T,j){return new h.wOt(2100,!1)}class yi{createSubscription(j,Ue){return(0,h.O8t)(()=>j.subscribe({next:Ue,error:F=>{throw F}}))}dispose(j){(0,h.O8t)(()=>j.unsubscribe())}}class vo{createSubscription(j,Ue){return j.then(Ue,F=>{throw F})}dispose(j){}}const bo=new vo,ui=new yi;let Pt=(()=>{var T;class j{constructor(F){this._latestValue=null,this.markForCheckOnValueUpdate=!0,this._subscription=null,this._obj=null,this._strategy=null,this._ref=F}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(F){if(!this._obj){if(F)try{this.markForCheckOnValueUpdate=!1,this._subscribe(F)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return F!==this._obj?(this._dispose(),this.transform(F)):this._latestValue}_subscribe(F){this._obj=F,this._strategy=this._selectStrategy(F),this._subscription=this._strategy.createSubscription(F,De=>this._updateLatestValue(F,De))}_selectStrategy(F){if((0,h.jNT)(F))return bo;if((0,h.zjR)(F))return ui;throw fi()}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(F,De){var Qe;F===this._obj&&(this._latestValue=De,this.markForCheckOnValueUpdate)&&(null===(Qe=this._ref)||void 0===Qe||Qe.markForCheck())}}return(T=j).\u0275fac=function(F){return new(F||T)(h.rXU(h.gRc,16))},T.\u0275pipe=h.EJ8({name:"async",type:T,pure:!1,standalone:!0}),j})(),vr=(()=>{var T;class j{constructor(F){this._locale=F}transform(F,De,Qe){if(!function ye(T){return!(null==T||""===T||T!=T)}(F))return null;Qe||(Qe=this._locale);try{return function oi(T,j,Ue){return function wr(T,j,Ue,F,De,Qe,tn=!1){let Fn="",Er=!1;if(isFinite(T)){let ur=function vi(T){let F,De,Qe,tn,Fn,j=Math.abs(T)+"",Ue=0;for((De=j.indexOf("."))>-1&&(j=j.replace(".","")),(Qe=j.search(/e/i))>0?(De<0&&(De=Qe),De+=+j.slice(Qe+1),j=j.substring(0,Qe)):De<0&&(De=j.length),Qe=0;"0"===j.charAt(Qe);Qe++);if(Qe===(Fn=j.length))F=[0],De=1;else{for(Fn--;"0"===j.charAt(Fn);)Fn--;for(De-=Qe,F=[],tn=0;Qe<=Fn;Qe++,tn++)F[tn]=Number(j.charAt(Qe))}return De>22&&(F=F.splice(0,21),Ue=De-1,De=1),{digits:F,exponent:Ue,integerLen:De}}(T);tn&&(ur=function xi(T){if(0===T.digits[0])return T;const j=T.digits.length-T.integerLen;return T.exponent?T.exponent+=2:(0===j?T.digits.push(0,0):1===j&&T.digits.push(0),T.integerLen+=2),T}(ur));let bi=j.minInt,ri=j.minFrac,Ii=j.maxFrac;if(Qe){const Ni=Qe.match(gt);if(null===Ni)throw new Error(`${Qe} is not a valid digit info`);const lo=Ni[1],Vi=Ni[3],uo=Ni[5];null!=lo&&(bi=Gt(lo)),null!=Vi&&(ri=Gt(Vi)),null!=uo?Ii=Gt(uo):null!=Vi&&ri>Ii&&(Ii=ri)}!function Ar(T,j,Ue){if(j>Ue)throw new Error(`The minimum number of digits after fraction (${j}) is higher than the maximum (${Ue}).`);let F=T.digits,De=F.length-T.integerLen;const Qe=Math.min(Math.max(j,De),Ue);let tn=Qe+T.integerLen,Fn=F[tn];if(tn>0){F.splice(Math.max(T.integerLen,tn));for(let ri=tn;ri=5)if(tn-1<0){for(let ri=0;ri>tn;ri--)F.unshift(0),T.integerLen++;F.unshift(1),T.integerLen++}else F[tn-1]++;for(;De=ur?to.pop():Er=!1),Ii>=10?1:0},0);bi&&(F.unshift(bi),T.integerLen++)}(ur,ri,Ii);let gi=ur.digits,to=ur.integerLen;const wi=ur.exponent;let Bn=[];for(Er=gi.every(Ni=>!Ni);to0?Bn=gi.splice(to,gi.length):(Bn=gi,gi=[0]);const ir=[];for(gi.length>=j.lgSize&&ir.unshift(gi.splice(-j.lgSize,gi.length).join(""));gi.length>j.gSize;)ir.unshift(gi.splice(-j.gSize,gi.length).join(""));gi.length&&ir.unshift(gi.join("")),Fn=ir.join(Ve(Ue,F)),Bn.length&&(Fn+=Ve(Ue,De)+Bn.join("")),wi&&(Fn+=Ve(Ue,kt.Exponential)+"+"+wi)}else Fn=Ve(Ue,kt.Infinity);return Fn=T<0&&!Er?j.negPre+Fn+j.negSuf:j.posPre+Fn+j.posSuf,Fn}(T,function Ir(T,j="-"){const Ue={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},F=T.split(";"),De=F[0],Qe=F[1],tn=-1!==De.indexOf(".")?De.split("."):[De.substring(0,De.lastIndexOf("0")+1),De.substring(De.lastIndexOf("0")+1)],Fn=tn[0],Er=tn[1]||"";Ue.posPre=Fn.substring(0,Fn.indexOf("#"));for(let bi=0;bi{var T;class j{}return(T=j).\u0275fac=function(F){return new(F||T)},T.\u0275mod=h.$C({type:T}),T.\u0275inj=h.G2t({}),j})();const en="browser",pn="server";function Gn(T){return T===en}function Yn(T){return T===pn}let Wr=(()=>{var T;class j{}return(T=j).\u0275prov=(0,h.jDH)({token:T,providedIn:"root",factory:()=>Gn((0,h.WQX)(h.Agw))?new kr((0,h.WQX)(ae),window):new Fi}),j})();class kr{constructor(j,Ue){this.document=j,this.window=Ue,this.offset=()=>[0,0]}setOffset(j){this.offset=Array.isArray(j)?()=>j:j}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(j){this.window.scrollTo(j[0],j[1])}scrollToAnchor(j){const Ue=function ki(T,j){const Ue=T.getElementById(j)||T.getElementsByName(j)[0];if(Ue)return Ue;if("function"==typeof T.createTreeWalker&&T.body&&"function"==typeof T.body.attachShadow){const F=T.createTreeWalker(T.body,NodeFilter.SHOW_ELEMENT);let De=F.currentNode;for(;De;){const Qe=De.shadowRoot;if(Qe){const tn=Qe.getElementById(j)||Qe.querySelector(`[name="${j}"]`);if(tn)return tn}De=F.nextNode()}}return null}(this.document,j);Ue&&(this.scrollToElement(Ue),Ue.focus())}setHistoryScrollRestoration(j){this.window.history.scrollRestoration=j}scrollToElement(j){const Ue=j.getBoundingClientRect(),F=Ue.left+this.window.pageXOffset,De=Ue.top+this.window.pageYOffset,Qe=this.offset();this.window.scrollTo(F-Qe[0],De-Qe[1])}}class Fi{setOffset(j){}getScrollPosition(){return[0,0]}scrollToPosition(j){}scrollToAnchor(j){}setHistoryScrollRestoration(j){}}class Bi{}},1626:(Pn,Et,C)=>{"use strict";C.d(Et,{Qq:()=>ce,q1:()=>Tn}),C(467);var c=C(4438),Z=C(7673),ke=C(1985),$=C(8455),he=C(274),ae=C(5964),Xe=C(6354),tt=C(980),Se=C(5558),be=C(177);class et{}class it{}class Ye{constructor(O){this.normalizedNames=new Map,this.lazyUpdate=null,O?"string"==typeof O?this.lazyInit=()=>{this.headers=new Map,O.split("\n").forEach(re=>{const we=re.indexOf(":");if(we>0){const We=re.slice(0,we),St=We.toLowerCase(),nn=re.slice(we+1).trim();this.maybeSetNormalizedName(We,St),this.headers.has(St)?this.headers.get(St).push(nn):this.headers.set(St,[nn])}})}:typeof Headers<"u"&&O instanceof Headers?(this.headers=new Map,O.forEach((re,we)=>{this.setHeaderEntries(we,re)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(O).forEach(([re,we])=>{this.setHeaderEntries(re,we)})}:this.headers=new Map}has(O){return this.init(),this.headers.has(O.toLowerCase())}get(O){this.init();const re=this.headers.get(O.toLowerCase());return re&&re.length>0?re[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(O){return this.init(),this.headers.get(O.toLowerCase())||null}append(O,re){return this.clone({name:O,value:re,op:"a"})}set(O,re){return this.clone({name:O,value:re,op:"s"})}delete(O,re){return this.clone({name:O,value:re,op:"d"})}maybeSetNormalizedName(O,re){this.normalizedNames.has(re)||this.normalizedNames.set(re,O)}init(){this.lazyInit&&(this.lazyInit instanceof Ye?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(O=>this.applyUpdate(O)),this.lazyUpdate=null))}copyFrom(O){O.init(),Array.from(O.headers.keys()).forEach(re=>{this.headers.set(re,O.headers.get(re)),this.normalizedNames.set(re,O.normalizedNames.get(re))})}clone(O){const re=new Ye;return re.lazyInit=this.lazyInit&&this.lazyInit instanceof Ye?this.lazyInit:this,re.lazyUpdate=(this.lazyUpdate||[]).concat([O]),re}applyUpdate(O){const re=O.name.toLowerCase();switch(O.op){case"a":case"s":let we=O.value;if("string"==typeof we&&(we=[we]),0===we.length)return;this.maybeSetNormalizedName(O.name,re);const We=("a"===O.op?this.headers.get(re):void 0)||[];We.push(...we),this.headers.set(re,We);break;case"d":const St=O.value;if(St){let nn=this.headers.get(re);if(!nn)return;nn=nn.filter(rn=>-1===St.indexOf(rn)),0===nn.length?(this.headers.delete(re),this.normalizedNames.delete(re)):this.headers.set(re,nn)}else this.headers.delete(re),this.normalizedNames.delete(re)}}setHeaderEntries(O,re){const we=(Array.isArray(re)?re:[re]).map(St=>St.toString()),We=O.toLowerCase();this.headers.set(We,we),this.maybeSetNormalizedName(O,We)}forEach(O){this.init(),Array.from(this.normalizedNames.keys()).forEach(re=>O(this.normalizedNames.get(re),this.headers.get(re)))}}class mt{encodeKey(O){return Tt(O)}encodeValue(O){return Tt(O)}decodeKey(O){return decodeURIComponent(O)}decodeValue(O){return decodeURIComponent(O)}}const Dt=/%(\d[a-f0-9])/gi,zt={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function Tt(M){return encodeURIComponent(M).replace(Dt,(O,re)=>{var we;return null!==(we=zt[re])&&void 0!==we?we:O})}function It(M){return`${M}`}class Te{constructor(O={}){if(this.updates=null,this.cloneFrom=null,this.encoder=O.encoder||new mt,O.fromString){if(O.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function xt(M,O){const re=new Map;return M.length>0&&M.replace(/^\?/,"").split("&").forEach(We=>{const St=We.indexOf("="),[nn,rn]=-1==St?[O.decodeKey(We),""]:[O.decodeKey(We.slice(0,St)),O.decodeValue(We.slice(St+1))],pr=re.get(nn)||[];pr.push(rn),re.set(nn,pr)}),re}(O.fromString,this.encoder)}else O.fromObject?(this.map=new Map,Object.keys(O.fromObject).forEach(re=>{const we=O.fromObject[re],We=Array.isArray(we)?we.map(It):[It(we)];this.map.set(re,We)})):this.map=null}has(O){return this.init(),this.map.has(O)}get(O){this.init();const re=this.map.get(O);return re?re[0]:null}getAll(O){return this.init(),this.map.get(O)||null}keys(){return this.init(),Array.from(this.map.keys())}append(O,re){return this.clone({param:O,value:re,op:"a"})}appendAll(O){const re=[];return Object.keys(O).forEach(we=>{const We=O[we];Array.isArray(We)?We.forEach(St=>{re.push({param:we,value:St,op:"a"})}):re.push({param:we,value:We,op:"a"})}),this.clone(re)}set(O,re){return this.clone({param:O,value:re,op:"s"})}delete(O,re){return this.clone({param:O,value:re,op:"d"})}toString(){return this.init(),this.keys().map(O=>{const re=this.encoder.encodeKey(O);return this.map.get(O).map(we=>re+"="+this.encoder.encodeValue(we)).join("&")}).filter(O=>""!==O).join("&")}clone(O){const re=new Te({encoder:this.encoder});return re.cloneFrom=this.cloneFrom||this,re.updates=(this.updates||[]).concat(O),re}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(O=>this.map.set(O,this.cloneFrom.map.get(O))),this.updates.forEach(O=>{switch(O.op){case"a":case"s":const re=("a"===O.op?this.map.get(O.param):void 0)||[];re.push(It(O.value)),this.map.set(O.param,re);break;case"d":if(void 0===O.value){this.map.delete(O.param);break}{let we=this.map.get(O.param)||[];const We=we.indexOf(It(O.value));-1!==We&&we.splice(We,1),we.length>0?this.map.set(O.param,we):this.map.delete(O.param)}}}),this.cloneFrom=this.updates=null)}}class _e{constructor(){this.map=new Map}set(O,re){return this.map.set(O,re),this}get(O){return this.map.has(O)||this.map.set(O,O.defaultValue()),this.map.get(O)}delete(O){return this.map.delete(O),this}has(O){return this.map.has(O)}keys(){return this.map.keys()}}function Le(M){return typeof ArrayBuffer<"u"&&M instanceof ArrayBuffer}function Oe(M){return typeof Blob<"u"&&M instanceof Blob}function Ct(M){return typeof FormData<"u"&&M instanceof FormData}class Cn{constructor(O,re,we,We){var St,nn;let rn;if(this.url=re,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=O.toUpperCase(),function $e(M){switch(M){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||We?(this.body=void 0!==we?we:null,rn=We):rn=we,rn&&(this.reportProgress=!!rn.reportProgress,this.withCredentials=!!rn.withCredentials,rn.responseType&&(this.responseType=rn.responseType),rn.headers&&(this.headers=rn.headers),rn.context&&(this.context=rn.context),rn.params&&(this.params=rn.params),this.transferCache=rn.transferCache),null!==(St=this.headers)&&void 0!==St||(this.headers=new Ye),null!==(nn=this.context)&&void 0!==nn||(this.context=new _e),this.params){const pr=this.params.toString();if(0===pr.length)this.urlWithParams=re;else{const qn=re.indexOf("?");this.urlWithParams=re+(-1===qn?"?":qner.set(Rr,O.setHeaders[Rr]),$r)),O.setParams&&(Pr=Object.keys(O.setParams).reduce((er,Rr)=>er.set(Rr,O.setParams[Rr]),Pr)),new Cn(nn,rn,Sr,{params:Pr,headers:$r,context:Nr,reportProgress:zr,responseType:pr,withCredentials:jn,transferCache:qn})}}var At=function(M){return M[M.Sent=0]="Sent",M[M.UploadProgress=1]="UploadProgress",M[M.ResponseHeader=2]="ResponseHeader",M[M.DownloadProgress=3]="DownloadProgress",M[M.Response=4]="Response",M[M.User=5]="User",M}(At||{});class st{constructor(O,re=G.Ok,we="OK"){this.headers=O.headers||new Ye,this.status=void 0!==O.status?O.status:re,this.statusText=O.statusText||we,this.url=O.url||null,this.ok=this.status>=200&&this.status<300}}class cn extends st{constructor(O={}){super(O),this.type=At.ResponseHeader}clone(O={}){return new cn({headers:O.headers||this.headers,status:void 0!==O.status?O.status:this.status,statusText:O.statusText||this.statusText,url:O.url||this.url||void 0})}}class vt extends st{constructor(O={}){super(O),this.type=At.Response,this.body=void 0!==O.body?O.body:null}clone(O={}){return new vt({body:void 0!==O.body?O.body:this.body,headers:O.headers||this.headers,status:void 0!==O.status?O.status:this.status,statusText:O.statusText||this.statusText,url:O.url||this.url||void 0})}}class Re extends st{constructor(O){super(O,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${O.url||"(unknown url)"}`:`Http failure response for ${O.url||"(unknown url)"}: ${O.status} ${O.statusText}`,this.error=O.error||null}}var G=function(M){return M[M.Continue=100]="Continue",M[M.SwitchingProtocols=101]="SwitchingProtocols",M[M.Processing=102]="Processing",M[M.EarlyHints=103]="EarlyHints",M[M.Ok=200]="Ok",M[M.Created=201]="Created",M[M.Accepted=202]="Accepted",M[M.NonAuthoritativeInformation=203]="NonAuthoritativeInformation",M[M.NoContent=204]="NoContent",M[M.ResetContent=205]="ResetContent",M[M.PartialContent=206]="PartialContent",M[M.MultiStatus=207]="MultiStatus",M[M.AlreadyReported=208]="AlreadyReported",M[M.ImUsed=226]="ImUsed",M[M.MultipleChoices=300]="MultipleChoices",M[M.MovedPermanently=301]="MovedPermanently",M[M.Found=302]="Found",M[M.SeeOther=303]="SeeOther",M[M.NotModified=304]="NotModified",M[M.UseProxy=305]="UseProxy",M[M.Unused=306]="Unused",M[M.TemporaryRedirect=307]="TemporaryRedirect",M[M.PermanentRedirect=308]="PermanentRedirect",M[M.BadRequest=400]="BadRequest",M[M.Unauthorized=401]="Unauthorized",M[M.PaymentRequired=402]="PaymentRequired",M[M.Forbidden=403]="Forbidden",M[M.NotFound=404]="NotFound",M[M.MethodNotAllowed=405]="MethodNotAllowed",M[M.NotAcceptable=406]="NotAcceptable",M[M.ProxyAuthenticationRequired=407]="ProxyAuthenticationRequired",M[M.RequestTimeout=408]="RequestTimeout",M[M.Conflict=409]="Conflict",M[M.Gone=410]="Gone",M[M.LengthRequired=411]="LengthRequired",M[M.PreconditionFailed=412]="PreconditionFailed",M[M.PayloadTooLarge=413]="PayloadTooLarge",M[M.UriTooLong=414]="UriTooLong",M[M.UnsupportedMediaType=415]="UnsupportedMediaType",M[M.RangeNotSatisfiable=416]="RangeNotSatisfiable",M[M.ExpectationFailed=417]="ExpectationFailed",M[M.ImATeapot=418]="ImATeapot",M[M.MisdirectedRequest=421]="MisdirectedRequest",M[M.UnprocessableEntity=422]="UnprocessableEntity",M[M.Locked=423]="Locked",M[M.FailedDependency=424]="FailedDependency",M[M.TooEarly=425]="TooEarly",M[M.UpgradeRequired=426]="UpgradeRequired",M[M.PreconditionRequired=428]="PreconditionRequired",M[M.TooManyRequests=429]="TooManyRequests",M[M.RequestHeaderFieldsTooLarge=431]="RequestHeaderFieldsTooLarge",M[M.UnavailableForLegalReasons=451]="UnavailableForLegalReasons",M[M.InternalServerError=500]="InternalServerError",M[M.NotImplemented=501]="NotImplemented",M[M.BadGateway=502]="BadGateway",M[M.ServiceUnavailable=503]="ServiceUnavailable",M[M.GatewayTimeout=504]="GatewayTimeout",M[M.HttpVersionNotSupported=505]="HttpVersionNotSupported",M[M.VariantAlsoNegotiates=506]="VariantAlsoNegotiates",M[M.InsufficientStorage=507]="InsufficientStorage",M[M.LoopDetected=508]="LoopDetected",M[M.NotExtended=510]="NotExtended",M[M.NetworkAuthenticationRequired=511]="NetworkAuthenticationRequired",M}(G||{});function X(M,O){return{body:O,headers:M.headers,context:M.context,observe:M.observe,params:M.params,reportProgress:M.reportProgress,responseType:M.responseType,withCredentials:M.withCredentials,transferCache:M.transferCache}}let ce=(()=>{var M;class O{constructor(we){this.handler=we}request(we,We,St={}){let nn;if(we instanceof Cn)nn=we;else{let qn,Sr;qn=St.headers instanceof Ye?St.headers:new Ye(St.headers),St.params&&(Sr=St.params instanceof Te?St.params:new Te({fromObject:St.params})),nn=new Cn(we,We,void 0!==St.body?St.body:null,{headers:qn,context:St.context,params:Sr,reportProgress:St.reportProgress,responseType:St.responseType||"json",withCredentials:St.withCredentials,transferCache:St.transferCache})}const rn=(0,Z.of)(nn).pipe((0,he.H)(qn=>this.handler.handle(qn)));if(we instanceof Cn||"events"===St.observe)return rn;const pr=rn.pipe((0,ae.p)(qn=>qn instanceof vt));switch(St.observe||"body"){case"body":switch(nn.responseType){case"arraybuffer":return pr.pipe((0,Xe.T)(qn=>{if(null!==qn.body&&!(qn.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return qn.body}));case"blob":return pr.pipe((0,Xe.T)(qn=>{if(null!==qn.body&&!(qn.body instanceof Blob))throw new Error("Response is not a Blob.");return qn.body}));case"text":return pr.pipe((0,Xe.T)(qn=>{if(null!==qn.body&&"string"!=typeof qn.body)throw new Error("Response is not a string.");return qn.body}));default:return pr.pipe((0,Xe.T)(qn=>qn.body))}case"response":return pr;default:throw new Error(`Unreachable: unhandled observe type ${St.observe}}`)}}delete(we,We={}){return this.request("DELETE",we,We)}get(we,We={}){return this.request("GET",we,We)}head(we,We={}){return this.request("HEAD",we,We)}jsonp(we,We){return this.request("JSONP",we,{params:(new Te).append(We,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(we,We={}){return this.request("OPTIONS",we,We)}patch(we,We,St={}){return this.request("PATCH",we,X(St,We))}post(we,We,St={}){return this.request("POST",we,X(St,We))}put(we,We,St={}){return this.request("PUT",we,X(St,We))}}return(M=O).\u0275fac=function(we){return new(we||M)(c.KVO(et))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),O})();function Je(M,O){return O(M)}function Sn(M,O){return(re,we)=>O.intercept(re,{handle:We=>M(We,we)})}const On=new c.nKC(""),or=new c.nKC(""),gr=new c.nKC(""),cr=new c.nKC("");function dr(){let M=null;return(O,re)=>{var we;null===M&&(M=(null!==(we=(0,c.WQX)(On,{optional:!0}))&&void 0!==we?we:[]).reduceRight(Sn,Je));const We=(0,c.WQX)(c.TgB),St=We.add();return M(O,re).pipe((0,tt.j)(()=>We.remove(St)))}}let Xt=(()=>{var M;class O extends et{constructor(we,We){super(),this.backend=we,this.injector=We,this.chain=null,this.pendingTasks=(0,c.WQX)(c.TgB);const St=(0,c.WQX)(cr,{optional:!0});this.backend=null!=St?St:we}handle(we){if(null===this.chain){const St=Array.from(new Set([...this.injector.get(or),...this.injector.get(gr,[])]));this.chain=St.reduceRight((nn,rn)=>function kn(M,O,re){return(we,We)=>(0,c.N4e)(re,()=>O(we,St=>M(St,We)))}(nn,rn,this.injector),Je)}const We=this.pendingTasks.add();return this.chain(we,St=>this.backend.handle(St)).pipe((0,tt.j)(()=>this.pendingTasks.remove(We)))}}return(M=O).\u0275fac=function(we){return new(we||M)(c.KVO(it),c.KVO(c.uvJ))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),O})();const Mr=/^\)\]\}',?\n/;let ii=(()=>{var M;class O{constructor(we){this.xhrFactory=we}handle(we){if("JSONP"===we.method)throw new c.wOt(-2800,!1);const We=this.xhrFactory;return(We.\u0275loadImpl?(0,$.H)(We.\u0275loadImpl()):(0,Z.of)(null)).pipe((0,Se.n)(()=>new ke.c(nn=>{const rn=We.build();if(rn.open(we.method,we.urlWithParams),we.withCredentials&&(rn.withCredentials=!0),we.headers.forEach((er,Rr)=>rn.setRequestHeader(er,Rr.join(","))),we.headers.has("Accept")||rn.setRequestHeader("Accept","application/json, text/plain, */*"),!we.headers.has("Content-Type")){const er=we.detectContentTypeHeader();null!==er&&rn.setRequestHeader("Content-Type",er)}if(we.responseType){const er=we.responseType.toLowerCase();rn.responseType="json"!==er?er:"text"}const pr=we.serializeBody();let qn=null;const Sr=()=>{if(null!==qn)return qn;const er=rn.statusText||"OK",Rr=new Ye(rn.getAllResponseHeaders()),di=function sr(M){return"responseURL"in M&&M.responseURL?M.responseURL:/^X-Request-URL:/m.test(M.getAllResponseHeaders())?M.getResponseHeader("X-Request-URL"):null}(rn)||we.url;return qn=new cn({headers:Rr,status:rn.status,statusText:er,url:di}),qn},jn=()=>{let{headers:er,status:Rr,statusText:di,url:hi}=Sr(),Yr=null;Rr!==G.NoContent&&(Yr=typeof rn.response>"u"?rn.responseText:rn.response),0===Rr&&(Rr=Yr?G.Ok:0);let Hr=Rr>=200&&Rr<300;if("json"===we.responseType&&"string"==typeof Yr){const _i=Yr;Yr=Yr.replace(Mr,"");try{Yr=""!==Yr?JSON.parse(Yr):null}catch(tr){Yr=_i,Hr&&(Hr=!1,Yr={error:tr,text:Yr})}}Hr?(nn.next(new vt({body:Yr,headers:er,status:Rr,statusText:di,url:hi||void 0})),nn.complete()):nn.error(new Re({error:Yr,headers:er,status:Rr,statusText:di,url:hi||void 0}))},zr=er=>{const{url:Rr}=Sr(),di=new Re({error:er,status:rn.status||0,statusText:rn.statusText||"Unknown Error",url:Rr||void 0});nn.error(di)};let $r=!1;const Pr=er=>{$r||(nn.next(Sr()),$r=!0);let Rr={type:At.DownloadProgress,loaded:er.loaded};er.lengthComputable&&(Rr.total=er.total),"text"===we.responseType&&rn.responseText&&(Rr.partialText=rn.responseText),nn.next(Rr)},Nr=er=>{let Rr={type:At.UploadProgress,loaded:er.loaded};er.lengthComputable&&(Rr.total=er.total),nn.next(Rr)};return rn.addEventListener("load",jn),rn.addEventListener("error",zr),rn.addEventListener("timeout",zr),rn.addEventListener("abort",zr),we.reportProgress&&(rn.addEventListener("progress",Pr),null!==pr&&rn.upload&&rn.upload.addEventListener("progress",Nr)),rn.send(pr),nn.next({type:At.Sent}),()=>{rn.removeEventListener("error",zr),rn.removeEventListener("abort",zr),rn.removeEventListener("load",jn),rn.removeEventListener("timeout",zr),we.reportProgress&&(rn.removeEventListener("progress",Pr),null!==pr&&rn.upload&&rn.upload.removeEventListener("progress",Nr)),rn.readyState!==rn.DONE&&rn.abort()}})))}}return(M=O).\u0275fac=function(we){return new(we||M)(c.KVO(be.N0))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),O})();const Tr=new c.nKC(""),Br=new c.nKC("",{providedIn:"root",factory:()=>"XSRF-TOKEN"}),Lr=new c.nKC("",{providedIn:"root",factory:()=>"X-XSRF-TOKEN"});class li{}let Di=(()=>{var M;class O{constructor(we,We,St){this.doc=we,this.platform=We,this.cookieName=St,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const we=this.doc.cookie||"";return we!==this.lastCookieString&&(this.parseCount++,this.lastToken=(0,be._b)(we,this.cookieName),this.lastCookieString=we),this.lastToken}}return(M=O).\u0275fac=function(we){return new(we||M)(c.KVO(be.qQ),c.KVO(c.Agw),c.KVO(Br))},M.\u0275prov=c.jDH({token:M,factory:M.\u0275fac}),O})();function Zr(M,O){const re=M.url.toLowerCase();if(!(0,c.WQX)(Tr)||"GET"===M.method||"HEAD"===M.method||re.startsWith("http://")||re.startsWith("https://"))return O(M);const we=(0,c.WQX)(li).getToken(),We=(0,c.WQX)(Lr);return null!=we&&!M.headers.has(We)&&(M=M.clone({headers:M.headers.set(We,we)})),O(M)}var rt=function(M){return M[M.Interceptors=0]="Interceptors",M[M.LegacyInterceptors=1]="LegacyInterceptors",M[M.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",M[M.NoXsrfProtection=3]="NoXsrfProtection",M[M.JsonpSupport=4]="JsonpSupport",M[M.RequestsMadeViaParent=5]="RequestsMadeViaParent",M[M.Fetch=6]="Fetch",M}(rt||{});function Nt(M,O){return{\u0275kind:M,\u0275providers:O}}function pt(...M){const O=[ce,ii,Xt,{provide:et,useExisting:Xt},{provide:it,useExisting:ii},{provide:or,useValue:Zr,multi:!0},{provide:Tr,useValue:!0},{provide:li,useClass:Di}];for(const re of M)O.push(...re.\u0275providers);return(0,c.EmA)(O)}const Ie=new c.nKC("");let Tn=(()=>{var M;class O{}return(M=O).\u0275fac=function(we){return new(we||M)},M.\u0275mod=c.$C({type:M}),M.\u0275inj=c.G2t({providers:[pt(Nt(rt.LegacyInterceptors,[{provide:Ie,useFactory:dr},{provide:or,useExisting:Ie,multi:!0}]))]}),O})()},4438:(Pn,Et,C)=>{"use strict";C.d(Et,{iLQ:()=>GE,sZ2:()=>yv,hnV:()=>aD,Hbi:()=>Z1,o8S:()=>Cd,BIS:()=>Ay,gRc:()=>ED,Ql9:()=>D1,Ocv:()=>O1,Z63:()=>Ao,aKT:()=>Ju,uvJ:()=>Qo,zcH:()=>tl,bkB:()=>Ks,$GK:()=>Pt,nKC:()=>We,zZn:()=>Ts,_q3:()=>ZE,MKu:()=>eI,xe9:()=>uy,Co$:()=>ji,Vns:()=>Io,SKi:()=>Bo,Xx1:()=>Gn,Agw:()=>eh,PLl:()=>Ev,rOR:()=>Zu,sFG:()=>vm,_9s:()=>up,czy:()=>Yg,WPN:()=>sc,kdw:()=>_r,C4Q:()=>ap,NYb:()=>_1,giA:()=>oD,xvI:()=>WR,RxE:()=>JT,c1b:()=>pd,gXe:()=>Zo,mal:()=>d_,L39:()=>SM,a0P:()=>FM,Ol2:()=>Q0,w6W:()=>_s,oH4:()=>mD,QZP:()=>YD,SmG:()=>V1,Rfq:()=>Zr,WQX:()=>Fe,Hps:()=>Lm,QuC:()=>So,EmA:()=>dl,Udg:()=>RM,fpN:()=>J1,HJs:()=>LM,N4e:()=>Co,vPA:()=>_d,O8t:()=>PM,H3F:()=>ZT,H8p:()=>zl,KH2:()=>Qp,TgB:()=>Pp,wOt:()=>nt,WHO:()=>rD,e01:()=>iD,lNU:()=>dr,h9k:()=>$g,$MX:()=>qi,ZF7:()=>To,Kcf:()=>il,e5t:()=>aI,UyX:()=>sI,cWb:()=>Py,osQ:()=>xv,H5H:()=>AE,Zy3:()=>Lt,mq5:()=>hC,JZv:()=>sr,LfX:()=>Gt,plB:()=>sl,jNT:()=>zE,zjR:()=>sD,TL$:()=>Dg,Tbb:()=>ar,rcV:()=>Rl,Vt3:()=>wp,Mj6:()=>ls,GFd:()=>ro,OA$:()=>fo,Jv_:()=>DT,aNF:()=>bT,R7$:()=>a0,BMQ:()=>aE,AVh:()=>pE,vxM:()=>rC,wni:()=>eT,VBU:()=>Ki,FsC:()=>Eo,jDH:()=>Ir,G2t:()=>vi,$C:()=>cs,EJ8:()=>ko,rXU:()=>sd,nrm:()=>EE,eu8:()=>IE,bVm:()=>J_,qex:()=>Y_,k0s:()=>Q_,j41:()=>q_,RV6:()=>uC,xGo:()=>hf,KVO:()=>W,kS0:()=>jc,QTQ:()=>l0,bIt:()=>DE,lsd:()=>rT,qSk:()=>ef,XpG:()=>zC,nI1:()=>NT,bMT:()=>kT,i5U:()=>FT,SdG:()=>GC,NAR:()=>HC,Y8G:()=>dE,FS9:()=>wE,Mz_:()=>ry,lJ4:()=>ST,mGM:()=>nT,sdS:()=>iT,Dyx:()=>sC,Z7z:()=>oC,fX1:()=>iC,Njj:()=>wc,eBV:()=>Md,npT:()=>pu,$dS:()=>fh,B4B:()=>ac,n$t:()=>Hf,xc7:()=>fE,DNE:()=>xp,EFF:()=>pT,JRh:()=>SE,SpI:()=>iy,Lme:()=>RE,DH7:()=>CT,mxI:()=>PE,R50:()=>ME,GBs:()=>tT}),C(467);let Z=null,ke=!1,$=1;const he=Symbol("SIGNAL");function ae(e){const t=Z;return Z=e,t}const be={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function et(e){if(ke)throw new Error("");if(null===Z)return;Z.consumerOnSignalRead(e);const t=Z.nextProducerIndex++;$e(Z),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Tt(e){$e(e);for(let t=0;t0}function $e(e){var t,r,o;null!==(t=e.producerNode)&&void 0!==t||(e.producerNode=[]),null!==(r=e.producerIndexOfThis)&&void 0!==r||(e.producerIndexOfThis=[]),null!==(o=e.producerLastReadVersion)&&void 0!==o||(e.producerLastReadVersion=[])}function Le(e){var t,r;null!==(t=e.liveConsumerNode)&&void 0!==t||(e.liveConsumerNode=[]),null!==(r=e.liveConsumerIndexOfThis)&&void 0!==r||(e.liveConsumerIndexOfThis=[])}let cn=function st(){throw new Error};function vt(){cn()}let G=null;function Ee(e,t){mt()||vt(),e.equal(e.value,t)||(e.value=t,function fn(e){var t;e.version++,function it(){$++}(),at(e),null===(t=G)||void 0===t||t()}(e))}const ut={...be,equal:function c(e,t){return Object.is(e,t)},value:void 0};const un=()=>{},Je={...be,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!1,consumerMarkedDirty:e=>{null!==e.schedule&&e.schedule(e.ref)},hasRun:!1,cleanupFn:un};var kn=C(1413),On=C(8359),or=C(4412),gr=C(6354);const dr="https://g.co/ng/security#xss";class nt extends Error{constructor(t,r){super(Lt(t,r)),this.code=t}}function Lt(e,t){return`NG0${Math.abs(e)}${t?": "+t:""}`}function $n(e){return{toString:e}.toString()}const on="__parameters__";function rr(e,t,r){return $n(()=>{const o=function Vr(e){return function(...r){if(e){const o=e(...r);for(const a in o)this[a]=o[a]}}}(t);function a(...d){if(this instanceof a)return o.apply(this,d),this;const g=new a(...d);return y.annotation=g,y;function y(A,U,Y){const me=A.hasOwnProperty(on)?A[on]:Object.defineProperty(A,on,{value:[]})[on];for(;me.length<=Y;)me.push(null);return(me[Y]=me[Y]||[]).push(g),A}}return r&&(a.prototype=Object.create(r.prototype)),a.prototype.ngMetadataName=e,a.annotationCls=a,a})}const sr=globalThis;function yr(e){for(let t in e)if(e[t]===yr)return t;throw Error("Could not find renamed property on target object.")}function Br(e,t){for(const r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r])}function ar(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ar).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const r=t.indexOf("\n");return-1===r?t:t.substring(0,r)}function Lr(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const Di=yr({__forward_ref__:yr});function Zr(e){return e.__forward_ref__=Zr,e.toString=function(){return ar(this())},e}function ve(e){return rt(e)?e():e}function rt(e){return"function"==typeof e&&e.hasOwnProperty(Di)&&e.__forward_ref__===Zr}function Ir(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function vi(e){return{providers:e.providers||[],imports:e.imports||[]}}function Ar(e){return ie(e,M)||ie(e,re)}function Gt(e){return null!==Ar(e)}function ie(e,t){return e.hasOwnProperty(t)?e[t]:null}function ze(e){return e&&(e.hasOwnProperty(O)||e.hasOwnProperty(we))?e[O]:null}const M=yr({\u0275prov:yr}),O=yr({\u0275inj:yr}),re=yr({ngInjectableDef:yr}),we=yr({ngInjectorDef:yr});class We{constructor(t,r){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof r?this.__NG_ELEMENT_ID__=r:void 0!==r&&(this.\u0275prov=Ir({token:this,providedIn:r.providedIn||"root",factory:r.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}}function Nr(e){return e&&!!e.\u0275providers}const er=yr({\u0275cmp:yr}),Rr=yr({\u0275dir:yr}),di=yr({\u0275pipe:yr}),hi=yr({\u0275mod:yr}),Yr=yr({\u0275fac:yr}),Hr=yr({__NG_ELEMENT_ID__:yr}),_i=yr({__NG_ENV_ID__:yr});function tr(e){return"string"==typeof e?e:null==e?"":String(e)}function ui(e,t){throw new nt(-201,!1)}var Pt=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(Pt||{});let ge;function fe(){return ge}function K(e){const t=ge;return ge=e,t}function je(e,t,r){const o=Ar(e);return o&&"root"==o.providedIn?void 0===o.value?o.value=o.factory():o.value:r&Pt.Optional?null:void 0!==t?t:void ui()}const Kt={},Dn="__NG_DI_FLAG__",Hn="ngTempTokenPath",H=/\n/gm,P="__source";let Ce;function vr(e){const t=Ce;return Ce=e,t}function ai(e,t=Pt.Default){if(void 0===Ce)throw new nt(-203,!1);return null===Ce?je(e,void 0,t):Ce.get(e,t&Pt.Optional?null:void 0,t)}function W(e,t=Pt.Default){return(fe()||ai)(ve(e),t)}function Fe(e,t=Pt.Default){return W(e,ot(t))}function ot(e){return typeof e>"u"||"number"==typeof e?e:(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Ot(e){const t=[];for(let r=0;rArray.isArray(r)?ki(r,t):t(r))}function Fi(e,t,r){t>=e.length?e.push(r):e.splice(t,0,r)}function Bi(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function so(e,t,r){let o=wo(e,t);return o>=0?e[1|o]=r:(o=~o,function Oi(e,t,r,o){let a=e.length;if(a==t)e.push(r,o);else if(1===a)e.push(o,e[0]),e[0]=r;else{for(a--,e.push(e[a-1],e[a]);a>t;)e[a]=e[a-2],a--;e[t]=r,e[t+1]=o}}(e,o,t,r)),o}function Ko(e,t){const r=wo(e,t);if(r>=0)return e[1|r]}function wo(e,t){return function ho(e,t,r){let o=0,a=e.length>>r;for(;a!==o;){const d=o+(a-o>>1),g=e[d<t?a=d:o=d+1}return~(a<t){g=d-1;break}}}for(;d-1){let d;for(;++ad?"":a[Y+1].toLowerCase(),2&o&&U!==me){if(se(o))return!1;g=!0}}}}else{if(!g&&!se(o)&&!se(A))return!1;if(g&&se(A))continue;g=!1,o=A|1&o}}return se(o)||g}function se(e){return!(1&e)}function z(e,t,r,o){if(null===t)return-1;let a=0;if(o||!r){let d=!1;for(;a-1)for(r++;r0?'="'+y+'"':"")+"]"}else 8&o?a+="."+g:4&o&&(a+=" "+g);else""!==a&&!se(g)&&(t+=Hi(d,a),a=""),o=g,d=d||!se(o);r++}return""!==a&&(t+=Hi(d,a)),t}function Ki(e){return $n(()=>{var t;const r=Ba(e),o={...r,decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Rs.OnPush,directiveDefs:null,pipeDefs:null,dependencies:r.standalone&&e.dependencies||null,getStandaloneInjector:null,signals:null!==(t=e.signals)&&void 0!==t&&t,data:e.data||{},encapsulation:e.encapsulation||Zo.Emulated,styles:e.styles||Jr,_:null,schemas:e.schemas||null,tView:null,id:""};es(o);const a=e.dependencies;return o.directiveDefs=Ps(a,!1),o.pipeDefs=Ps(a,!0),o.id=function ei(e){let t=0;const r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,e.consts,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery].join("|");for(const a of r)t=Math.imul(31,t)+a.charCodeAt(0)|0;return t+=2147483648,"c"+t}(o),o})}function Qi(e){return jr(e)||Zi(e)}function qo(e){return null!==e}function cs(e){return $n(()=>({type:e.type,bootstrap:e.bootstrap||Jr,declarations:e.declarations||Jr,imports:e.imports||Jr,exports:e.exports||Jr,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function ys(e,t){if(null==e)return Uo;const r={};for(const a in e)if(e.hasOwnProperty(a)){const d=e[a];let g,y,A=ls.None;var o;Array.isArray(d)?(A=d[0],g=d[1],y=null!==(o=d[2])&&void 0!==o?o:g):(g=d,y=d),t?(r[g]=A!==ls.None?[a,A]:a,t[g]=y):r[g]=a}return r}function Eo(e){return $n(()=>{const t=Ba(e);return es(t),t})}function ko(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,standalone:!0===e.standalone,onDestroy:e.type.prototype.ngOnDestroy||null}}function jr(e){return e[er]||null}function Zi(e){return e[Rr]||null}function eo(e){return e[di]||null}function So(e){const t=jr(e)||Zi(e)||eo(e);return null!==t&&t.standalone}function Li(e,t){const r=e[hi]||null;if(!r&&!0===t)throw new Error(`Type ${ar(e)} does not have '\u0275mod' property.`);return r}function Ba(e){const t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputTransforms:null,inputConfig:e.inputs||Uo,exportAs:e.exportAs||null,standalone:!0===e.standalone,signals:!0===e.signals,selectors:e.selectors||Jr,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:ys(e.inputs,t),outputs:ys(e.outputs),debugInfo:null}}function es(e){var t;null===(t=e.features)||void 0===t||t.forEach(r=>r(e))}function Ps(e,t){if(!e)return null;const r=t?eo:Qi;return()=>("function"==typeof e?e():e).map(o=>r(o)).filter(qo)}function dl(e){return{\u0275providers:e}}function Zs(...e){return{\u0275providers:Ua(0,e),\u0275fromNgModule:!0}}function Ua(e,...t){const r=[],o=new Set;let a;const d=g=>{r.push(g)};return ki(t,g=>{const y=g;hl(y,d,[],o)&&(a||(a=[]),a.push(y))}),void 0!==a&&xs(a,d),r}function xs(e,t){for(let r=0;r{t(d,o)})}}function hl(e,t,r,o){if(!(e=ve(e)))return!1;let a=null,d=ze(e);const g=!d&&jr(e);if(d||g){if(g&&!g.standalone)return!1;a=e}else{const A=e.ngModule;if(d=ze(A),!d)return!1;a=A}const y=o.has(a);if(g){if(y)return!1;if(o.add(a),g.dependencies){const A="function"==typeof g.dependencies?g.dependencies():g.dependencies;for(const U of A)hl(U,t,r,o)}}else{if(!d)return!1;{if(null!=d.imports&&!y){let U;o.add(a);try{ki(d.imports,Y=>{hl(Y,t,r,o)&&(U||(U=[]),U.push(Y))})}finally{}void 0!==U&&xs(U,t)}if(!y){const U=Qr(a)||(()=>new a);t({provide:a,useFactory:U,deps:Jr},a),t({provide:Ss,useValue:a,multi:!0},a),t({provide:Ao,useValue:()=>W(a),multi:!0},a)}const A=d.providers;if(null!=A&&!y){const U=e;Ul(A,Y=>{t(Y,U)})}}}return a!==e&&void 0!==e.providers}function Ul(e,t){for(let r of e)Nr(r)&&(r=r.\u0275providers),Array.isArray(r)?Ul(r,t):t(r)}const $l=yr({provide:String,useValue:yr});function jl(e){return null!==e&&"object"==typeof e&&$l in e}function ds(e){return"function"==typeof e}const zl=new We(""),hs={},Ru={};let Hl;function fs(){return void 0===Hl&&(Hl=new Us),Hl}class Qo{}class js extends Qo{get destroyed(){return this._destroyed}constructor(t,r,o,a){super(),this.parent=r,this.source=o,this.scopes=a,this.records=new Map,this._ngOnDestroyHooks=new Set,this._onDestroyHooks=[],this._destroyed=!1,ea(t,g=>this.processProvider(g)),this.records.set(Js,za(void 0,this)),a.has("environment")&&this.records.set(Qo,za(void 0,this));const d=this.records.get(zl);null!=d&&"string"==typeof d.value&&this.scopes.add(d.value),this.injectorDefTypes=new Set(this.get(Ss,Jr,Pt.Self))}destroy(){this.assertNotDestroyed(),this._destroyed=!0;const t=ae(null);try{for(const o of this._ngOnDestroyHooks)o.ngOnDestroy();const r=this._onDestroyHooks;this._onDestroyHooks=[];for(const o of r)o()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),ae(t)}}onDestroy(t){return this.assertNotDestroyed(),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){this.assertNotDestroyed();const r=vr(this),o=K(void 0);try{return t()}finally{vr(r),K(o)}}get(t,r=Kt,o=Pt.Default){if(this.assertNotDestroyed(),t.hasOwnProperty(_i))return t[_i](this);o=ot(o);const d=vr(this),g=K(void 0);try{if(!(o&Pt.SkipSelf)){let A=this.records.get(t);if(void 0===A){const U=function Aa(e){return"function"==typeof e||"object"==typeof e&&e instanceof We}(t)&&Ar(t);A=U&&this.injectableDefInScope(U)?za(Yi(t),hs):null,this.records.set(t,A)}if(null!=A)return this.hydrate(t,A)}return(o&Pt.Self?fs():this.parent).get(t,r=o&Pt.Optional&&r===Kt?null:r)}catch(y){if("NullInjectorError"===y.name){if((y[Hn]=y[Hn]||[]).unshift(ar(t)),d)throw y;return function pn(e,t,r,o){const a=e[Hn];throw t[P]&&a.unshift(t[P]),e.message=function vn(e,t,r,o=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.slice(2):e;let a=ar(t);if(Array.isArray(t))a=t.map(ar).join(" -> ");else if("object"==typeof t){let d=[];for(let g in t)if(t.hasOwnProperty(g)){let y=t[g];d.push(g+":"+("string"==typeof y?JSON.stringify(y):ar(y)))}a=`{${d.join(", ")}}`}return`${r}${o?"("+o+")":""}[${a}]: ${e.replace(H,"\n ")}`}("\n"+e.message,a,r,o),e.ngTokenPath=a,e[Hn]=null,e}(y,t,"R3InjectorError",this.source)}throw y}finally{K(g),vr(d)}}resolveInjectorInitializers(){const t=ae(null),r=vr(this),o=K(void 0);try{const d=this.get(Ao,Jr,Pt.Self);for(const g of d)g()}finally{vr(r),K(o),ae(t)}}toString(){const t=[],r=this.records;for(const o of r.keys())t.push(ar(o));return`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new nt(205,!1)}processProvider(t){let r=ds(t=ve(t))?t:ve(t&&t.provide);const o=function ja(e){return jl(e)?za(void 0,e.useValue):za(Ea(e),hs)}(t);if(!ds(t)&&!0===t.multi){let a=this.records.get(r);a||(a=za(void 0,hs,!0),a.factory=()=>Ot(a.multi),this.records.set(r,a)),r=t,a.multi.push(t)}this.records.set(r,o)}hydrate(t,r){const o=ae(null);try{return r.value===hs&&(r.value=Ru,r.value=r.factory()),"object"==typeof r.value&&r.value&&function Ia(e){return null!==e&&"object"==typeof e&&"function"==typeof e.ngOnDestroy}(r.value)&&this._ngOnDestroyHooks.add(r.value),r.value}finally{ae(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;const r=ve(t.providedIn);return"string"==typeof r?"any"===r||this.scopes.has(r):this.injectorDefTypes.has(r)}removeOnDestroy(t){const r=this._onDestroyHooks.indexOf(t);-1!==r&&this._onDestroyHooks.splice(r,1)}}function Yi(e){const t=Ar(e),r=null!==t?t.factory:Qr(e);if(null!==r)return r;if(e instanceof We)throw new nt(204,!1);if(e instanceof Function)return function ya(e){if(e.length>0)throw new nt(204,!1);const r=function te(e){return e&&(e[M]||e[re])||null}(e);return null!==r?()=>r.factory(e):()=>new e}(e);throw new nt(204,!1)}function Ea(e,t,r){let o;if(ds(e)){const a=ve(e);return Qr(a)||Yi(a)}if(jl(e))o=()=>ve(e.useValue);else if(function $s(e){return!(!e||!e.useFactory)}(e))o=()=>e.useFactory(...Ot(e.deps||[]));else if(function Os(e){return!(!e||!e.useExisting)}(e))o=()=>W(ve(e.useExisting));else{const a=ve(e&&(e.useClass||e.provide));if(!function ts(e){return!!e.deps}(e))return Qr(a)||Yi(a);o=()=>new a(...Ot(e.deps))}return o}function za(e,t,r=!1){return{factory:e,value:t,multi:r?[]:void 0}}function ea(e,t){for(const r of e)Array.isArray(r)?ea(r,t):r&&Nr(r)?ea(r.\u0275providers,t):t(r)}function Co(e,t){e instanceof js&&e.assertNotDestroyed();const o=vr(e),a=K(void 0);try{return t()}finally{vr(o),K(a)}}function Gl(){return void 0!==fe()||null!=function dt(){return Ce}()}function Ca(e){if(!Gl())throw new nt(-203,!1)}const wi=0,Bn=1,ir=2,Ni=3,lo=4,Vi=5,uo=6,ns=7,Si=8,io=9,zs=10,qr=11,ta=12,_c=13,fl=14,no=15,Fo=16,ks=17,rs=18,na=19,yc=20,Ui=21,ra=22,Es=23,ti=25,Ta=1,is=7,Da=9,oo=10;var Mu=function(e){return e[e.None=0]="None",e[e.HasTransplantedViews=2]="HasTransplantedViews",e}(Mu||{});function Ai(e){return Array.isArray(e)&&"object"==typeof e[Ta]}function Lo(e){return Array.isArray(e)&&!0===e[Ta]}function Wl(e){return!!(4&e.flags)}function gs(e){return e.componentOffset>-1}function ia(e){return!(1&~e.flags)}function Is(e){return!!e.template}function Kl(e){return!!(512&e[ir])}class Ji{constructor(t,r,o){this.previousValue=t,this.currentValue=r,this.firstChange=o}isFirstChange(){return this.firstChange}}function Ri(e,t,r,o){null!==t?t.applyValueToInputSignal(t,o):e[r]=o}function fo(){return oa}function oa(e){return e.type.prototype.ngOnChanges&&(e.setInput=Ka),Wa}function Wa(){const e=As(this),t=null==e?void 0:e.current;if(t){const r=e.previous;if(r===Uo)e.previous=t;else for(let o in t)r[o]=t[o];e.current=null,this.ngOnChanges(t)}}function Ka(e,t,r,o,a){const d=this.declaredInputs[o],g=As(e)||function Ra(e,t){return e[Hs]=t}(e,{previous:Uo,current:null}),y=g.current||(g.current={}),A=g.previous,U=A[d];y[d]=new Ji(U&&U.currentValue,r,A===Uo),Ri(e,t,a,r)}fo.ngInherit=!0;const Hs="__ngSimpleChanges__";function As(e){return e[Hs]||null}const Fs=function(e,t,r){},ng="svg";let xu=!1;function $i(e){for(;Array.isArray(e);)e=e[wi];return e}function qa(e,t){return $i(t[e])}function ms(e,t){return $i(t[e.index])}function Ql(e,t){return e.data[t]}function Cs(e,t){return e[t]}function $o(e,t){const r=t[e];return Ai(r)?r:r[wi]}function Ac(e){return!(128&~e[ir])}function Ls(e,t){return null==t?null:e[t]}function Tc(e){e[ks]=0}function Sd(e){1024&e[ir]||(e[ir]|=1024,Ac(e)&&Gs(e))}function Yl(e){var t;return!!(9216&e[ir]||null!==(t=e[Es])&&void 0!==t&&t.dirty)}function ml(e){var t;if(null===(t=e[zs].changeDetectionScheduler)||void 0===t||t.notify(1),Yl(e))Gs(e);else if(64&e[ir])if(function Ma(){return xu}())e[ir]|=1024,Gs(e);else{var r;null===(r=e[zs].changeDetectionScheduler)||void 0===r||r.notify()}}function Gs(e){var t;null===(t=e[zs].changeDetectionScheduler)||void 0===t||t.notify();let r=sa(e);for(;null!==r&&!(8192&r[ir])&&(r[ir]|=8192,Ac(r));)r=sa(r)}function Qa(e,t){if(!(256&~e[ir]))throw new nt(911,!1);null===e[Ui]&&(e[Ui]=[]),e[Ui].push(t)}function sa(e){const t=e[Ni];return Lo(t)?t[Ni]:t}const Dr={lFrame:Zh(null),bindingsEnabled:!0,skipHydrationRootTNode:null};function Pa(){return Dr.bindingsEnabled}function Zl(){return null!==Dr.skipHydrationRootTNode}function mn(){return Dr.lFrame.lView}function Mi(){return Dr.lFrame.tView}function Md(e){return Dr.lFrame.contextLView=e,e[Si]}function wc(e){return Dr.lFrame.contextLView=null,e}function Xi(){let e=Qh();for(;null!==e&&64===e.type;)e=e.parent;return e}function Qh(){return Dr.lFrame.currentTNode}function ua(e,t){const r=Dr.lFrame;r.currentTNode=e,r.isParent=t}function Nu(){return Dr.lFrame.isParent}function ku(){Dr.lFrame.isParent=!1}function Ro(){const e=Dr.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function Vs(){return Dr.lFrame.bindingIndex++}function ha(e){const t=Dr.lFrame,r=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,r}function xd(e,t){const r=Dr.lFrame;r.bindingIndex=r.bindingRootIndex=e,Od(t)}function Od(e){Dr.lFrame.currentDirectiveIndex=e}function Nd(){return Dr.lFrame.currentQueryIndex}function Mc(e){Dr.lFrame.currentQueryIndex=e}function Pc(e){const t=e[Bn];return 2===t.type?t.declTNode:1===t.type?e[Vi]:null}function Jh(e,t,r){if(r&Pt.SkipSelf){let a=t,d=e;for(;!(a=a.parent,null!==a||r&Pt.Host||(a=Pc(d),null===a||(d=d[fl],10&a.type))););if(null===a)return!1;t=a,e=d}const o=Dr.lFrame=Lu();return o.currentTNode=t,o.lView=e,!0}function xa(e){const t=Lu(),r=e[Bn];Dr.lFrame=t,t.currentTNode=r.firstChild,t.lView=e,t.tView=r,t.contextLView=e,t.bindingIndex=r.bindingStartIndex,t.inI18n=!1}function Lu(){const e=Dr.lFrame,t=null===e?null:e.child;return null===t?Zh(e):t}function Zh(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 kd(){const e=Dr.lFrame;return Dr.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const xc=kd;function Vu(){const e=kd();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 Mo(){return Dr.lFrame.selectedIndex}function Oa(e){Dr.lFrame.selectedIndex=e}function Gi(){const e=Dr.lFrame;return Ql(e.tView,e.selectedIndex)}function ef(){Dr.lFrame.currentNamespace=ng}let Uu=!0;function $u(){return Uu}function Ws(e){Uu=e}function ju(e,t){for(let U=t.directiveStart,Y=t.directiveEnd;U=o)break}else t[A]<0&&(e[ks]+=65536),(y>14>16&&(3&e[ir])===t&&(e[ir]+=16384,El(y,d)):El(y,d)}const Il=-1;class Al{constructor(t,r,o){this.factory=t,this.resolving=!1,this.canSeeViewProviders=r,this.injectImpl=o}}function Cl(e){return e!==Il}function Na(e){return 32767&e}function Tl(e,t){let r=function Lc(e){return e>>16}(e),o=t;for(;r>0;)o=o[fl],r--;return o}let Hu=!0;function eu(e){const t=Hu;return Hu=e,t}const lf=255,Bd=5;let Vc=0;const Bs={};function Gu(e,t){const r=Ud(e,t);if(-1!==r)return r;const o=t[Bn];o.firstCreatePass&&(e.injectorIndex=t.length,jo(o.data,e),jo(t,null),jo(o.blueprint,null));const a=Ja(e,t),d=e.injectorIndex;if(Cl(a)){const g=Na(a),y=Tl(a,t),A=y[Bn].data;for(let U=0;U<8;U++)t[d+U]=y[g+U]|A[g+U]}return t[d+8]=a,d}function jo(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Ud(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function Ja(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let r=0,o=null,a=t;for(;null!==a;){if(o=el(a),null===o)return Il;if(r++,a=a[fl],-1!==o.injectorIndex)return o.injectorIndex|r<<16}return Il}function Dl(e,t,r){!function hv(e,t,r){let o;"string"==typeof r?o=r.charCodeAt(0)||0:r.hasOwnProperty(Hr)&&(o=r[Hr]),null==o&&(o=r[Hr]=Vc++);const a=o&lf;t.data[e+(a>>Bd)]|=1<=0?t&lf:df:t}(r);if("function"==typeof d){if(!Jh(t,e,o))return o&Pt.Host?tu(a,0,o):$d(t,r,o,a);try{let g;if(g=d(o),null!=g||o&Pt.Optional)return g;ui()}finally{xc()}}else if("number"==typeof d){let g=null,y=Ud(e,t),A=Il,U=o&Pt.Host?t[no][Vi]:null;for((-1===y||o&Pt.SkipSelf)&&(A=-1===y?Ja(e,t):t[y+8],A!==Il&&nu(o,!1)?(g=t[Bn],y=Na(A),t=Tl(A,t)):y=-1);-1!==y;){const Y=t[Bn];if($c(d,y,Y.data)){const me=lg(y,t,r,g,o,U);if(me!==Bs)return me}A=t[y+8],A!==Il&&nu(o,t[Bn].data[y+8]===U)&&$c(d,y,t)?(g=Y,y=Na(A),t=Tl(A,t)):y=-1}}return a}function lg(e,t,r,o,a,d){const g=t[Bn],y=g.data[e+8],Y=jd(y,g,r,null==o?gs(y)&&Hu:o!=g&&!!(3&y.type),a&Pt.Host&&d===y);return null!==Y?bl(t,g,Y,y):Bs}function jd(e,t,r,o,a){const d=e.providerIndexes,g=t.data,y=1048575&d,A=e.directiveStart,Y=d>>20,Ke=a?y+Y:e.directiveEnd;for(let _t=o?y:y+Y;_t=A&&jt.type===r)return _t}if(a){const _t=g[A];if(_t&&Is(_t)&&_t.type===r)return A}return null}function bl(e,t,r,o){let a=e[r];const d=t.data;if(function sf(e){return e instanceof Al}(a)){const g=a;g.resolving&&function yi(e,t){throw t&&t.join(" > "),new nt(-200,e)}(function Zn(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():tr(e)}(d[r]));const y=eu(g.canSeeViewProviders);g.resolving=!0;const U=g.injectImpl?K(g.injectImpl):null;Jh(e,o,Pt.Default);try{a=e[r]=g.factory(void 0,d,e,o),t.firstCreatePass&&r>=o.directiveStart&&function ag(e,t,r){const{ngOnChanges:o,ngOnInit:a,ngDoCheck:d}=t.type.prototype;if(o){var g,y;const me=oa(t);(null!==(g=r.preOrderHooks)&&void 0!==g?g:r.preOrderHooks=[]).push(e,me),(null!==(y=r.preOrderCheckHooks)&&void 0!==y?y:r.preOrderCheckHooks=[]).push(e,me)}var A,U,Y;a&&(null!==(A=r.preOrderHooks)&&void 0!==A?A:r.preOrderHooks=[]).push(0-e,a),d&&((null!==(U=r.preOrderHooks)&&void 0!==U?U:r.preOrderHooks=[]).push(e,d),(null!==(Y=r.preOrderCheckHooks)&&void 0!==Y?Y:r.preOrderCheckHooks=[]).push(e,d))}(r,d[r],t)}finally{null!==U&&K(U),eu(y),g.resolving=!1,xc()}}return a}function $c(e,t,r){return!!(r[t+(e>>Bd)]&1<{const t=e.prototype.constructor,r=t[Yr]||Wu(t),o=Object.prototype;let a=Object.getPrototypeOf(e.prototype).constructor;for(;a&&a!==o;){const d=a[Yr]||Wu(a);if(d&&d!==r)return d;a=Object.getPrototypeOf(a)}return d=>new d})}function Wu(e){return rt(e)?()=>{const t=Wu(ve(e));return t&&t()}:Qr(e)}function el(e){const t=e[Bn],r=t.type;return 2===r?t.declTNode:1===r?e[Vi]:null}function jc(e){return function Bc(e,t){if("class"===t)return e.classes;if("style"===t)return e.styles;const r=e.attrs;if(r){const o=r.length;let a=0;for(;a{var e;class t{static create(o,a){if(Array.isArray(o))return dg({name:""},a,o,"");{var d;const g=null!==(d=o.name)&&void 0!==d?d:"";return dg({name:g},o.parent,o.providers,g)}}}return(e=t).THROW_IF_NOT_FOUND=Kt,e.NULL=new Us,e.\u0275prov=Ir({token:e,providedIn:"any",factory:()=>W(Js)}),e.__NG_ELEMENT_ID__=-1,t})();function Hc(e){return e.ngOriginalError}class tl{constructor(){this._console=console}handleError(t){const r=this._findOriginalError(t);this._console.error("ERROR",t),r&&this._console.error("ORIGINAL ERROR",r)}_findOriginalError(t){let r=t&&Hc(t);for(;r&&Hc(r);)r=Hc(r);return r||null}}const Gd=new We("",{providedIn:"root",factory:()=>Fe(tl).handleError.bind(void 0)});let qu=(()=>{var e;class t{}return(e=t).__NG_ELEMENT_ID__=hg,e.__NG_ENV_ID__=r=>r,t})();class If extends qu{constructor(t){super(),this._lView=t}onDestroy(t){return Qa(this._lView,t),()=>function Jl(e,t){if(null===e[Ui])return;const r=e[Ui].indexOf(t);-1!==r&&e[Ui].splice(r,1)}(this._lView,t)}}function hg(){return new If(mn())}function Yu(){return ga(Xi(),mn())}function ga(e,t){return new Ju(ms(e,t))}let Ju=(()=>{class t{constructor(o){this.nativeElement=o}}return t.__NG_ELEMENT_ID__=Yu,t})();function iu(e){return e instanceof Ju?e.nativeElement:e}function Af(e){return t=>{setTimeout(e,void 0,t)}}const Ks=class pv extends kn.B{constructor(t=!1){var r;super(),this.destroyRef=void 0,this.__isAsync=t,Gl()&&(this.destroyRef=null!==(r=Fe(qu,{optional:!0}))&&void 0!==r?r:void 0)}emit(t){const r=ae(null);try{super.next(t)}finally{ae(r)}}subscribe(t,r,o){let a=t,d=r||(()=>null),g=o;if(t&&"object"==typeof t){var y,A,U;const me=t;a=null===(y=me.next)||void 0===y?void 0:y.bind(me),d=null===(A=me.error)||void 0===A?void 0:A.bind(me),g=null===(U=me.complete)||void 0===U?void 0:U.bind(me)}this.__isAsync&&(d=Af(d),a&&(a=Af(a)),g&&(g=Af(g)));const Y=super.subscribe({next:a,error:d,complete:g});return t instanceof On.yU&&t.add(Y),Y}};function Cf(){return this._results[Symbol.iterator]()}class Zu{get changes(){var t;return null!==(t=this._changes)&&void 0!==t?t:this._changes=new Ks}constructor(t=!1){this._emitDistinctChangesOnly=t,this.dirty=!0,this._onDirty=void 0,this._results=[],this._changesDetected=!1,this._changes=void 0,this.length=0,this.first=void 0,this.last=void 0;const r=Zu.prototype;r[Symbol.iterator]||(r[Symbol.iterator]=Cf)}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,r){return this._results.reduce(t,r)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,r){this.dirty=!1;const o=function kr(e){return e.flat(Number.POSITIVE_INFINITY)}(t);(this._changesDetected=!function Wr(e,t,r){if(e.length!==t.length)return!1;for(let o=0;obg}),bg="ng",Ev=new We(""),eh=new We("",{providedIn:"platform",factory:()=>"unknown"}),Ay=new We("",{providedIn:"root",factory:()=>{var e;return(null===(e=lu().body)||void 0===e||null===(e=e.querySelector("[ngCspNonce]"))||void 0===e?void 0:e.getAttribute("ngCspNonce"))||null}});let Tv=()=>null;function oh(e,t,r=!1){return Tv(e,t,r)}const Ng=new We("",{providedIn:"root",factory:()=>!1});let Lf,uh;function Yc(e){var t;return(null===(t=function kg(){if(void 0===Lf&&(Lf=null,sr.trustedTypes))try{Lf=sr.trustedTypes.createPolicy("angular",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Lf}())||void 0===t?void 0:t.createHTML(e))||e}function Vf(){if(void 0===uh&&(uh=null,sr.trustedTypes))try{uh=sr.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return uh}function Bf(e){var t;return(null===(t=Vf())||void 0===t?void 0:t.createHTML(e))||e}function Fg(e){var t;return(null===(t=Vf())||void 0===t?void 0:t.createScriptURL(e))||e}class du{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${dr})`}}class Uf extends du{getTypeName(){return"HTML"}}class Pi extends du{getTypeName(){return"Style"}}class Mv extends du{getTypeName(){return"Script"}}class Pv extends du{getTypeName(){return"URL"}}class ch extends du{getTypeName(){return"ResourceURL"}}function Rl(e){return e instanceof du?e.changingThisBreaksApplicationSecurity:e}function To(e,t){const r=function Po(e){return e instanceof du&&e.getTypeName()||null}(e);if(null!=r&&r!==t){if("ResourceURL"===r&&"URL"===t)return!0;throw new Error(`Required a safe ${t}, got a ${r} (see ${dr})`)}return r===t}function il(e){return new Uf(e)}function Py(e){return new Pi(e)}function sI(e){return new Mv(e)}function xv(e){return new Pv(e)}function aI(e){return new ch(e)}class xy{constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{const r=(new window.DOMParser).parseFromString(Yc(t),"text/html").body;return null===r?this.inertDocumentHelper.getInertBodyElement(t):(r.removeChild(r.firstChild),r)}catch{return null}}}class Vg{constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){const r=this.inertDocument.createElement("template");return r.innerHTML=Yc(t),r}}const lI=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function qi(e){return(e=String(e)).match(lI)?e:"unsafe:"+e}function hu(e){const t={};for(const r of e.split(","))t[r]=!0;return t}function dh(...e){const t={};for(const r of e)for(const o in r)r.hasOwnProperty(o)&&(t[o]=!0);return t}const _o=hu("area,br,col,hr,img,wbr"),Bg=hu("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ny=hu("rp,rt"),Ov=dh(_o,dh(Bg,hu("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),dh(Ny,hu("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),dh(Ny,Bg)),Nv=hu("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Fy=dh(Nv,hu("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),hu("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),uI=hu("script,style,template");class kv{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let r=t.firstChild,o=!0,a=[];for(;r;)if(r.nodeType===Node.ELEMENT_NODE?o=this.startElement(r):r.nodeType===Node.TEXT_NODE?this.chars(r.nodeValue):this.sanitizedSomething=!0,o&&r.firstChild)a.push(r),r=oc(r);else for(;r;){r.nodeType===Node.ELEMENT_NODE&&this.endElement(r);let d=Ly(r);if(d){r=d;break}r=a.pop()}return this.buf.join("")}startElement(t){const r=fu(t).toLowerCase();if(!Ov.hasOwnProperty(r))return this.sanitizedSomething=!0,!uI.hasOwnProperty(r);this.buf.push("<"),this.buf.push(r);const o=t.attributes;for(let a=0;a"),!0}endElement(t){const r=fu(t).toLowerCase();Ov.hasOwnProperty(r)&&!_o.hasOwnProperty(r)&&(this.buf.push(""))}chars(t){this.buf.push(Fv(t))}}function Ly(e){const t=e.nextSibling;if(t&&e!==t.previousSibling)throw Vy(t);return t}function oc(e){const t=e.firstChild;if(t&&function hh(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}(e,t))throw Vy(t);return t}function fu(e){const t=e.nodeName;return"string"==typeof t?t:"FORM"}function Vy(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}const Jc=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ug=/([^\#-~ |!])/g;function Fv(e){return e.replace(/&/g,"&").replace(Jc,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ug,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}let $f;function $g(e,t){let r=null;try{$f=$f||function Lg(e){const t=new Vg(e);return function Oy(){try{return!!(new window.DOMParser).parseFromString(Yc(""),"text/html")}catch{return!1}}()?new xy(t):t}(e);let o=t?String(t):"";r=$f.getInertBodyElement(o);let a=5,d=o;do{if(0===a)throw new Error("Failed to sanitize html because the input is unstable");a--,o=d,d=r.innerHTML,r=$f.getInertBodyElement(o)}while(o!==d);return Yc((new kv).sanitizeChildren(jf(r)||r))}finally{if(r){const o=jf(r)||r;for(;o.firstChild;)o.removeChild(o.firstChild)}}}function jf(e){return"content"in e&&function zf(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var sc=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(sc||{});function pu(e){const t=ka();return t?Bf(t.sanitize(sc.HTML,e)||""):To(e,"HTML")?Bf(Rl(e)):$g(lu(),tr(e))}function fh(e){const t=ka();return t?t.sanitize(sc.STYLE,e)||"":To(e,"Style")?Rl(e):tr(e)}function ac(e){const t=ka();return t?t.sanitize(sc.URL,e)||"":To(e,"URL")?Rl(e):qi(tr(e))}function jg(e){const t=ka();if(t)return Fg(t.sanitize(sc.RESOURCE_URL,e)||"");if(To(e,"ResourceURL"))return Fg(Rl(e));throw new nt(904,!1)}function Hf(e,t,r){return function Wg(e,t){return"src"===t&&("embed"===e||"frame"===e||"iframe"===e||"media"===e||"script"===e)||"href"===t&&("base"===e||"link"===e)?jg:ac}(t,r)(e)}function ka(){const e=mn();return e&&e[zs].sanitizer}const Vv=/^>|^->||--!>|)/g,Kg="\u200b$1\u200b";function va(e){return e instanceof Function?e():e}var Yg=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}(Yg||{});let zv;function Jg(e,t){return zv(e,t)}function vh(e,t,r,o,a){if(null!=o){let d,g=!1;Lo(o)?d=o:Ai(o)&&(g=!0,o=o[wi]);const y=$i(o);0===e&&null!==r?null==a?od(t,r,y):id(t,r,y,a||null,!0):1===e&&null!==r?id(t,r,y,a||null,!0):2===e?function Jf(e,t,r){const o=Yf(e,t);o&&function vI(e,t,r,o){e.removeChild(t,r,o)}(e,o,t,r)}(t,y,g):3===e&&t.destroyNode(y),null!=d&&function yI(e,t,r,o,a){const d=r[is];d!==$i(r)&&vh(t,e,o,d,a);for(let y=oo;yt.replace(Bv,Kg))}(t))}function xl(e,t,r){return e.createElement(t,r)}function Hv(e,t){var r;null===(r=t[zs].changeDetectionScheduler)||void 0===r||r.notify(1),Fa(e,t,t[qr],2,null,null)}function Gv(e,t){const r=e[Da],o=r.indexOf(t);r.splice(o,1)}function qf(e,t){if(e.length<=oo)return;const r=oo+t,o=e[r];if(o){const a=o[Fo];null!==a&&a!==e&&Gv(a,o),t>0&&(e[r-1][lo]=o[lo]);const d=Bi(e,oo+t);!function qy(e,t){Hv(e,t),t[wi]=null,t[Vi]=null}(o[Bn],o);const g=d[rs];null!==g&&g.detachView(d[Bn]),o[Ni]=null,o[lo]=null,o[ir]&=-129}return o}function Zg(e,t){if(!(256&t[ir])){const r=t[qr];r.destroyNode&&Fa(e,t,r,3,null,null),function gu(e){let t=e[ta];if(!t)return em(e[Bn],e);for(;t;){let r=null;if(Ai(t))r=t[ta];else{const o=t[oo];o&&(r=o)}if(!r){for(;t&&!t[lo]&&t!==e;)Ai(t)&&em(t[Bn],t),t=t[Ni];null===t&&(t=e),Ai(t)&&em(t[Bn],t),r=t&&t[lo]}t=r}}(t)}}function em(e,t){if(256&t[ir])return;const r=ae(null);try{t[ir]&=-129,t[ir]|=256,t[Es]&&It(t[Es]),function Yy(e,t){let r;if(null!=e&&null!=(r=e.destroyHooks))for(let o=0;o=0?o[g]():o[-g].unsubscribe(),d+=2}else r[d].call(o[r[d+1]]);null!==o&&(t[ns]=null);const a=t[Ui];if(null!==a){t[Ui]=null;for(let d=0;d-1){const{encapsulation:d}=e.data[o.directiveStart+a];if(d===Zo.None||d===Zo.Emulated)return null}return ms(o,r)}}(e,t.parent,r)}function id(e,t,r,o,a){e.insertBefore(t,r,o,a)}function od(e,t,r){e.appendChild(t,r)}function Qf(e,t,r,o,a){null!==o?id(e,t,r,o,a):od(e,t,r)}function Yf(e,t){return e.parentNode(t)}function Kv(e,t,r){return e0(e,t,r)}let qv,e0=function Xv(e,t,r){return 40&e.type?ms(e,r):null};function tm(e,t,r,o){const a=Wv(e,o,t),d=t[qr],y=Kv(o.parent||t[Vi],o,t);if(null!=a)if(Array.isArray(r))for(let A=0;Ati&&im(e,t,ti,!1),Fs(g?2:0,a),r(o,a)}finally{Oa(d),Fs(g?3:1,a)}}function Jv(e,t,r){if(Wl(t)){const o=ae(null);try{const d=t.directiveEnd;for(let g=t.directiveStart;gnull;function e_(e,t,r,o,a){for(let g in t){var d;if(!t.hasOwnProperty(g))continue;const y=t[g];if(void 0===y)continue;null!==(d=o)&&void 0!==d||(o={});let A,U=ls.None;Array.isArray(y)?(A=y[0],U=y[1]):A=y;let Y=g;if(null!==a){if(!a.hasOwnProperty(g))continue;Y=a[g]}0===e?g0(o,r,Y,A,U):g0(o,r,Y,A)}return o}function g0(e,t,r,o,a){let d;e.hasOwnProperty(r)?(d=e[r]).push(t,o):d=e[r]=[t,o],void 0!==a&&d.push(a)}function Xs(e,t,r,o,a,d,g,y){const A=ms(t,r);let Y,U=t.inputs;!y&&null!=U&&(Y=U[o])?(i_(e,r,Y,o,a),gs(t)&&function wI(e,t){const r=$o(t,e);16&r[ir]||(r[ir]|=64)}(r,t.index)):3&t.type&&(o=function bI(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(o),a=null!=g?g(a,t.value||"",o):a,d.setProperty(A,o,a))}function t_(e,t,r,o){if(Pa()){const a=null===o?null:{"":-1},d=function OI(e,t){const r=e.directiveRegistry;let o=null,a=null;if(r)for(let g=0;g0;){const r=e[--t];if("number"==typeof r&&r<0)return r}return 0})(g)!=y&&g.push(y),g.push(r,o,d)}}(e,t,o,ep(e,r,a.hostVars,ci),a)}function Ol(e,t,r,o,a,d){const g=ms(e,t);!function r_(e,t,r,o,a,d,g){if(null==d)e.removeAttribute(t,a,r);else{const y=null==g?tr(d):g(d,o||"",a);e.setAttribute(t,a,y,r)}}(t[qr],g,d,e.value,r,o,a)}function VI(e,t,r,o,a,d){const g=d[t];if(null!==g)for(let y=0;y0&&(r[a-1][lo]=t),o{Gs(e.lView)},consumerOnSignalRead(){this.lView[Es]=this}},w0=100;function hm(e,t=!0,r=0){const o=e[zs],a=o.rendererFactory;var g;null===(g=a.begin)||void 0===g||g.call(a);try{!function WI(e,t){s_(e,t);let r=0;for(;Yl(e);){if(r===w0)throw new nt(103,!1);r++,s_(e,1)}}(e,r)}catch(U){throw t&&um(e,U),U}finally{var y,A;null===(y=a.end)||void 0===y||y.call(a),null===(A=o.inlineEffectRunner)||void 0===A||A.flush()}}function KI(e,t,r,o){var a;const d=t[ir];if(!(256&~d))return;null===(a=t[zs].inlineEffectRunner)||void 0===a||a.flush(),xa(t);let y=null,A=null;(function XI(e){return 2!==e.type})(e)&&(A=function jI(e){var t;return null!==(t=e[Es])&&void 0!==t?t:function zI(e){var t;const r=null!==(t=b0.pop())&&void 0!==t?t:Object.create(GI);return r.lView=e,r}(e)}(t),y=Dt(A));try{Tc(t),function Sc(e){return Dr.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==r&&c0(e,t,r,2,o);const U=!(3&~d);if(U){const Ke=e.preOrderCheckHooks;null!==Ke&&Oc(t,Ke,null)}else{const Ke=e.preOrderHooks;null!==Ke&&fa(t,Ke,0,null),pa(t,0)}if(function qI(e){for(let t=vg(e);null!==t;t=bf(t)){if(!(t[ir]&Mu.HasTransplantedViews))continue;const r=t[Da];for(let o=0;o-1&&(qf(t,o),Bi(r,o))}this._attachedToViewContainer=!1}Zg(this._lView[Bn],this._lView)}onDestroy(t){Qa(this._lView,t)}markForCheck(){op(this._cdRefInjectingView||this._lView)}detach(){this._lView[ir]&=-129}reattach(){ml(this._lView),this._lView[ir]|=128}detectChanges(){this._lView[ir]|=1024,hm(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new nt(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,Hv(this._lView[Bn],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new nt(902,!1);this._appRef=t,ml(this._lView)}}let ap=(()=>{class t{}return t.__NG_ELEMENT_ID__=JI,t})();const P0=ap,YI=class extends P0{constructor(t,r,o){super(),this._declarationLView=t,this._declarationTContainer=r,this.elementRef=o}get ssrId(){var t;return(null===(t=this._declarationTContainer.tView)||void 0===t?void 0:t.ssrId)||null}createEmbeddedView(t,r){return this.createEmbeddedViewImpl(t,r)}createEmbeddedViewImpl(t,r,o){const a=np(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:r,dehydratedView:o});return new sp(a)}};function JI(){return fm(Xi(),mn())}function fm(e,t){return 4&e.type?new YI(t,e,ga(e,t)):null}let gm=()=>null;function xo(e,t){return gm(e,t)}class mm{}class Ch{}class l_{}class lp{resolveComponentFactory(t){throw function Th(e){const t=Error(`No component factory found for ${ar(e)}.`);return t.ngComponent=e,t}(t)}}let hc=(()=>{class t{}return t.NULL=new lp,t})();class up{}let vm=(()=>{class t{constructor(){this.destroyNode=null}}return t.__NG_ELEMENT_ID__=()=>function _m(){const e=mn(),r=$o(Xi().index,e);return(Ai(r)?r:e)[qr]}(),t})(),ym=(()=>{var e;class t{}return(e=t).\u0275prov=Ir({token:e,providedIn:"root",factory:()=>null}),t})();const cp={},c_=new Set;function La(e){var t,r;c_.has(e)||(c_.add(e),null===(t=performance)||void 0===t||null===(r=t.mark)||void 0===r||r.call(t,"mark_feature_usage",{detail:{feature:e}}))}function Em(...e){}class Bo{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ks(!1),this.onMicrotaskEmpty=new Ks(!1),this.onStable=new Ks(!1),this.onError=new Ks(!1),typeof Zone>"u")throw new nt(908,!1);Zone.assertZonePatched();const a=this;a._nesting=0,a._outer=a._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(a._inner=a._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(a._inner=a._inner.fork(Zone.longStackTraceZoneSpec)),a.shouldCoalesceEventChangeDetection=!o&&r,a.shouldCoalesceRunChangeDetection=o,a.lastRequestAnimationFrameId=-1,a.nativeRequestAnimationFrame=function Im(){const e="function"==typeof sr.requestAnimationFrame;let t=sr[e?"requestAnimationFrame":"setTimeout"],r=sr[e?"cancelAnimationFrame":"clearTimeout"];if(typeof Zone<"u"&&t&&r){const o=t[Zone.__symbol__("OriginalDelegate")];o&&(t=o);const a=r[Zone.__symbol__("OriginalDelegate")];a&&(r=a)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:r}}().nativeRequestAnimationFrame,function vs(e){const t=()=>{!function Cm(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(sr,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,os(e),e.isCheckStableRunning=!0,Dh(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),os(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(r,o,a,d,g,y)=>{if(function L0(e){var t;return!(!Array.isArray(e)||1!==e.length)&&!0===(null===(t=e[0].data)||void 0===t?void 0:t.__ignore_ng_zone__)}(y))return r.invokeTask(a,d,g,y);try{return bh(e),r.invokeTask(a,d,g,y)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===d.type||e.shouldCoalesceRunChangeDetection)&&t(),Tm(e)}},onInvoke:(r,o,a,d,g,y,A)=>{try{return bh(e),r.invoke(a,d,g,y,A)}finally{e.shouldCoalesceRunChangeDetection&&t(),Tm(e)}},onHasTask:(r,o,a,d)=>{r.hasTask(a,d),o===a&&("microTask"==d.change?(e._hasPendingMicrotasks=d.microTask,os(e),Dh(e)):"macroTask"==d.change&&(e.hasPendingMacrotasks=d.macroTask))},onHandleError:(r,o,a,d)=>(r.handleError(a,d),e.runOutsideAngular(()=>e.onError.emit(d)),!1)})}(a)}static isInAngularZone(){return typeof Zone<"u"&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Bo.isInAngularZone())throw new nt(909,!1)}static assertNotInAngularZone(){if(Bo.isInAngularZone())throw new nt(909,!1)}run(t,r,o){return this._inner.run(t,r,o)}runTask(t,r,o,a){const d=this._inner,g=d.scheduleEventTask("NgZoneEvent: "+a,t,Am,Em,Em);try{return d.runTask(g,r,o)}finally{d.cancelTask(g)}}runGuarded(t,r,o){return this._inner.runGuarded(t,r,o)}runOutsideAngular(t){return this._outer.run(t)}}const Am={};function Dh(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 os(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function bh(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Tm(e){e._nesting--,Dh(e)}class Dm{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ks,this.onMicrotaskEmpty=new Ks,this.onStable=new Ks,this.onError=new Ks}run(t,r,o){return t.apply(r,o)}runGuarded(t,r,o){return t.apply(r,o)}runOutsideAngular(t){return t()}runTask(t,r,o,a){return t.apply(r,o)}}var _u=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(_u||{});const bm={destroy(){}};function d_(e,t){var r,o,a;!t&&Ca();const d=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Fe(Ts);if(!function ol(e){return"browser"===(null!=e?e:Fe(Ts)).get(eh)}(d))return bm;La("NgAfterNextRender");const g=d.get(ud),y=null!==(o=g.handler)&&void 0!==o?o:g.handler=new wm,A=null!==(a=null==t?void 0:t.phase)&&void 0!==a?a:_u.MixedReadWrite,U=()=>{y.unregister(me),Y()},Y=d.get(qu).onDestroy(U),me=Co(d,()=>new dp(A,()=>{U(),e()}));return y.register(me),{destroy:U}}class dp{constructor(t,r){var o;this.phase=t,this.callbackFn=r,this.zone=Fe(Bo),this.errorHandler=Fe(tl,{optional:!0}),null===(o=Fe(mm,{optional:!0}))||void 0===o||o.notify(1)}invoke(){try{this.zone.runOutsideAngular(this.callbackFn)}catch(r){var t;null===(t=this.errorHandler)||void 0===t||t.handleError(r)}}}class wm{constructor(){this.executingCallbacks=!1,this.buckets={[_u.EarlyRead]:new Set,[_u.Write]:new Set,[_u.MixedReadWrite]:new Set,[_u.Read]:new Set},this.deferredCallbacks=new Set}register(t){(this.executingCallbacks?this.deferredCallbacks:this.buckets[t.phase]).add(t)}unregister(t){this.buckets[t.phase].delete(t),this.deferredCallbacks.delete(t)}execute(){this.executingCallbacks=!0;for(const t of Object.values(this.buckets))for(const r of t)r.invoke();this.executingCallbacks=!1;for(const t of this.deferredCallbacks)this.buckets[t.phase].add(t);this.deferredCallbacks.clear()}destroy(){for(const t of Object.values(this.buckets))t.clear();this.deferredCallbacks.clear()}}let ud=(()=>{var e;class t{constructor(){this.handler=null,this.internalCallbacks=[]}execute(){var o;this.executeInternalCallbacks(),null===(o=this.handler)||void 0===o||o.execute()}executeInternalCallbacks(){const o=[...this.internalCallbacks];this.internalCallbacks.length=0;for(const a of o)a()}ngOnDestroy(){var o;null===(o=this.handler)||void 0===o||o.destroy(),this.handler=null,this.internalCallbacks.length=0}}return(e=t).\u0275prov=Ir({token:e,providedIn:"root",factory:()=>new e}),t})();function sl(e){return!!Li(e)}function Eu(e,t,r){let o=r?e.styles:null,a=r?e.classes:null,d=0;if(null!==t)for(let g=0;g0&&o0(e,r,d.join(" "))}}(ln,Bl,Un,o),void 0!==r&&function v_(e,t,r){const o=e.projection=[];for(let a=0;a{class t{}return t.__NG_ELEMENT_ID__=__,t})();function __(){return _p(Xi(),mn())}const y_=pd,E_=class extends y_{constructor(t,r,o){super(),this._lContainer=t,this._hostTNode=r,this._hostLView=o}get element(){return ga(this._hostTNode,this._hostLView)}get injector(){return new po(this._hostTNode,this._hostLView)}get parentInjector(){const t=Ja(this._hostTNode,this._hostLView);if(Cl(t)){const r=Tl(t,this._hostLView),o=Na(t);return new po(r[Bn].data[o+8],r)}return new po(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const r=Mh(this._lContainer);return null!==r&&r[t]||null}get length(){return this._lContainer.length-oo}createEmbeddedView(t,r,o){let a,d;"number"==typeof o?a=o:null!=o&&(a=o.index,d=o.injector);const g=xo(this._lContainer,t.ssrId),y=t.createEmbeddedViewImpl(r||{},d,g);return this.insertImpl(y,a,Ih(this._hostTNode,g)),y}createComponent(t,r,o,a,d){var g,y,A;const U=t&&!function tn(e){return"function"==typeof e}(t);let Y;if(U)Y=r;else{const Un=r||{};Y=Un.index,o=Un.injector,a=Un.projectableNodes,d=Un.environmentInjector||Un.ngModuleRef}const me=U?t:new Rh(jr(t)),Ke=o||this.parentInjector;if(!d&&null==me.ngModule){const _n=(U?Ke:this.parentInjector).get(Qo,null);_n&&(d=_n)}const _t=jr(null!==(g=me.componentType)&&void 0!==g?g:{}),jt=xo(this._lContainer,null!==(y=null==_t?void 0:_t.id)&&void 0!==y?y:null),ln=null!==(A=null==jt?void 0:jt.firstChild)&&void 0!==A?A:null,Nn=me.create(Ke,a,ln,d);return this.insertImpl(Nn.hostView,Y,Ih(this._hostTNode,jt)),Nn}insert(t,r){return this.insertImpl(t,r,!0)}insertImpl(t,r,o){const a=t._lView;if(function Cc(e){return Lo(e[Ni])}(a)){const y=this.indexOf(t);if(-1!==y)this.detach(y);else{const A=a[Ni],U=new E_(A,A[Vi],A[Ni]);U.detach(U.indexOf(t))}}const d=this._adjustIndex(r),g=this._lContainer;return rp(g,a,d,o),t.attachToViewContainerRef(),Fi(vp(g),d,t),t}move(t,r){return this.insert(t,r)}indexOf(t){const r=Mh(this._lContainer);return null!==r?r.indexOf(t):-1}remove(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);o&&(Bi(vp(this._lContainer),r),Zg(o[Bn],o))}detach(t){const r=this._adjustIndex(t,-1),o=qf(this._lContainer,r);return o&&null!=Bi(vp(this._lContainer),r)?new sp(o):null}_adjustIndex(t,r=0){return null==t?this.length+r:t}};function Mh(e){return e[8]}function vp(e){return e[8]||(e[8]=[])}function _p(e,t){let r;const o=t[e.index];return Lo(o)?r=o:(r=E0(o,t,null,e),t[e.index]=r,am(t,r)),Au(r,t,e,o),new E_(r,e,t)}let Au=function Pm(e,t,r,o){if(e[is])return;let a;a=8&r.type?$i(o):function Ph(e,t){const r=e[qr],o=r.createComment(""),a=ms(t,e);return id(r,Yf(r,a),o,function Zy(e,t){return e.nextSibling(t)}(r,a),!1),o}(t,r),e[is]=a},xh=()=>!1;class Oh{constructor(t){this.queryList=t,this.matches=null}clone(){return new Oh(this.queryList)}setDirty(){this.queryList.setDirty()}}class yp{constructor(t=[]){this.queries=t}createEmbeddedView(t){const r=t.queries;if(null!==r){const o=null!==t.contentQueries?t.contentQueries[0]:r.length,a=[];for(let d=0;dt.trim())}(t):t}}class Nm{constructor(t=[]){this.queries=t}elementStart(t,r){for(let o=0;o0)o.push(g[y/2]);else{const U=d[y+1],Y=t[-A];for(let me=oo;me(et(t),t.value);return r[he]=t,r}(e),o=r[he];return null!=t&&t.equal&&(o.equal=t.equal),r.set=a=>Ee(o,a),r.update=a=>function Ve(e,t){mt()||vt(),Ee(e,t(e.value))}(o,a),r.asReadonly=kl.bind(r),r}function kl(){const e=this[he];if(void 0===e.readonlyFn){const t=()=>this();t[he]=e,e.readonlyFn=t}return e.readonlyFn}function Vm(e){return Lm(e)&&"function"==typeof e.set}function wp(e){let t=function Tu(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),r=!0;const o=[e];for(;t;){let a;if(Is(e))a=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new nt(903,!1);a=t.\u0275dir}if(a){if(r){o.push(a);const g=e;g.inputs=Uh(e.inputs),g.inputTransforms=Uh(e.inputTransforms),g.declaredInputs=Uh(e.declaredInputs),g.outputs=Uh(e.outputs);const y=a.hostBindings;y&&L_(e,y);const A=a.viewQuery,U=a.contentQueries;if(A&&Sp(e,A),U&&qs(e,U),k_(e,a),Br(e.outputs,a.outputs),Is(a)&&a.data.animation){const Y=e.data;Y.animation=(Y.animation||[]).concat(a.data.animation)}}const d=a.features;if(d)for(let g=0;g=0;o--){const a=e[o];a.hostVars=t+=a.hostVars,a.hostAttrs=ee(a.hostAttrs,r=ee(r,a.hostAttrs))}}(o)}function k_(e,t){for(const o in t.inputs){if(!t.inputs.hasOwnProperty(o)||e.inputs.hasOwnProperty(o))continue;const a=t.inputs[o];if(void 0!==a&&(e.inputs[o]=a,e.declaredInputs[o]=t.declaredInputs[o],null!==t.inputTransforms)){var r;const d=Array.isArray(a)?a[0]:a;if(!t.inputTransforms.hasOwnProperty(d))continue;null!==(r=e.inputTransforms)&&void 0!==r||(e.inputTransforms={}),e.inputTransforms[d]=t.inputTransforms[d]}}}function Uh(e){return e===Uo?{}:e===Jr?[]:e}function Sp(e,t){const r=e.viewQuery;e.viewQuery=r?(o,a)=>{t(o,a),r(o,a)}:t}function qs(e,t){const r=e.contentQueries;e.contentQueries=r?(o,a,d)=>{t(o,a,d),r(o,a,d)}:t}function L_(e,t){const r=e.hostBindings;e.hostBindings=r?(o,a)=>{t(o,a),r(o,a)}:t}function ro(e){const t=e.inputConfig,r={};for(const o in t)if(t.hasOwnProperty(o)){const a=t[o];Array.isArray(a)&&a[3]&&(r[o]=a[3])}e.inputTransforms=r}class Io{}class ji{}function _s(e,t){return new Du(e,null!=t?t:null,[])}class Du extends Io{constructor(t,r,o){super(),this._parent=r,this._bootstrapComponents=[],this.destroyCbs=[],this.componentFactoryResolver=new f_(this);const a=Li(t);this._bootstrapComponents=va(a.bootstrap),this._r3Injector=Ef(t,r,[{provide:Io,useValue:this},{provide:hc,useValue:this.componentFactoryResolver},...o],ar(t),new Set(["environment"])),this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(t)}get injector(){return this._r3Injector}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(r=>r()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class Qs extends ji{constructor(t){super(),this.moduleType=t}create(t){return new Du(this.moduleType,t,[])}}class Mp extends Io{constructor(t){super(),this.componentFactoryResolver=new f_(this),this.instance=null;const r=new js([...t.providers,{provide:Io,useValue:this},{provide:hc,useValue:this.componentFactoryResolver}],t.parent||fs(),t.debugName,new Set(["environment"]));this.injector=r,t.runEnvironmentInitializers&&r.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}}function Q0(e,t,r=null){return new Mp({providers:e,parent:t,debugName:r,runEnvironmentInitializers:!0}).injector}let Pp=(()=>{var e;class t{constructor(){this.taskId=0,this.pendingTasks=new Set,this.hasPendingTasks=new or.t(!1)}get _hasPendingTasks(){return this.hasPendingTasks.value}add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);const o=this.taskId++;return this.pendingTasks.add(o),o}remove(o){this.pendingTasks.delete(o),0===this.pendingTasks.size&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function U_(e){return!!Y0(e)&&(Array.isArray(e)||!(e instanceof Map)&&Symbol.iterator in e)}function Y0(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function bu(e,t,r){return e[t]=r}function zo(e,t,r){return!Object.is(e[t],r)&&(e[t]=r,!0)}function $h(e,t,r,o){const a=zo(e,t,r);return zo(e,t+1,o)||a}function xp(e,t,r,o,a,d,g,y){const A=mn(),U=Mi(),Y=e+ti,me=U.firstCreatePass?function mb(e,t,r,o,a,d,g,y,A){const U=t.consts,Y=cc(t,e,4,g||null,Ls(U,y));t_(t,r,Y,Ls(U,A)),ju(t,Y);const me=Y.tView=tp(2,Y,o,a,d,t.directiveRegistry,t.pipeRegistry,null,t.schemas,U,null);return null!==t.queries&&(t.queries.template(t,Y),me.queries=t.queries.embeddedTView(Y)),Y}(Y,U,A,t,r,o,a,d,g):U.data[Y];ua(me,!1);const Ke=uA(U,A,me,e);$u()&&tm(U,A,Ke,me),go(Ke,A);const _t=E0(Ke,A,Ke,me);return A[Y]=_t,am(A,_t),function I_(e,t,r){return xh(e,t,r)}(_t,me,A),ia(me)&&yh(U,A,me),null!=g&&ad(A,me,y),xp}let uA=function cA(e,t,r,o){return Ws(!0),t[qr].createComment("")};function aE(e,t,r,o){const a=mn();return zo(a,Vs(),t)&&(Mi(),Ol(Gi(),a,e,t,r,o)),aE}function Up(e,t,r,o){return zo(e,Vs(),r)?t+tr(r)+o:ci}function $p(e,t,r,o,a,d){const y=$h(e,function da(){return Dr.lFrame.bindingIndex}(),r,a);return ha(2),y?t+tr(r)+o+tr(a)+d:ci}function K_(e,t){return e<<17|t<<2}function Ad(e){return e>>17&32767}function lE(e){return 2|e}function zh(e){return(131068&e)>>2}function uE(e,t){return-131069&e|t<<2}function cE(e){return 1|e}function $A(e,t,r,o){const a=e[r+1],d=null===t;let g=o?Ad(a):zh(a),y=!1;for(;0!==g&&(!1===y||d);){const U=e[g+1];nw(e[g],t)&&(y=!0,e[g+1]=o?cE(U):lE(U)),g=o?Ad(U):zh(U)}y&&(e[r+1]=o?lE(a):cE(a))}function nw(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&wo(e,t)>=0}function dE(e,t,r){const o=mn();return zo(o,Vs(),t)&&Xs(Mi(),Gi(),o,e,t,o[qr],r,!1),dE}function hE(e,t,r,o,a){const g=a?"class":"style";i_(e,r,t.inputs[g],g,o)}function fE(e,t,r){return Ll(e,t,r,!1),fE}function pE(e,t){return Ll(e,t,null,!0),pE}function Ll(e,t,r,o){const a=mn(),d=Mi(),g=ha(2);d.firstUpdatePass&&function qA(e,t,r,o){const a=e.data;if(null===a[r+1]){const d=a[Mo()],g=function XA(e,t){return t>=e.expandoStartIndex}(e,r);(function ZA(e,t){return!!(e.flags&(t?8:16))})(d,o)&&null===t&&!g&&(t=!1),t=function dw(e,t,r,o){const a=function Fu(e){const t=Dr.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let d=o?t.residualClasses:t.residualStyles;if(null===a)0===(o?t.classBindings:t.styleBindings)&&(r=Ym(r=gE(null,e,t,r,o),t.attrs,o),d=null);else{const g=t.directiveStylingLast;if(-1===g||e[g]!==a)if(r=gE(a,e,t,r,o),null===d){let A=function hw(e,t,r){const o=r?t.classBindings:t.styleBindings;if(0!==zh(o))return e[Ad(o)]}(e,t,o);void 0!==A&&Array.isArray(A)&&(A=gE(null,e,t,A[1],o),A=Ym(A,t.attrs,o),function fw(e,t,r,o){e[Ad(r?t.classBindings:t.styleBindings)]=o}(e,t,o,A))}else d=function pw(e,t,r){let o;const a=t.directiveEnd;for(let d=1+t.directiveStylingLast;d0)&&(U=!0)):Y=r,a)if(0!==A){const Ke=Ad(e[y+1]);e[o+1]=K_(Ke,y),0!==Ke&&(e[Ke+1]=uE(e[Ke+1],o)),e[y+1]=function Jb(e,t){return 131071&e|t<<17}(e[y+1],o)}else e[o+1]=K_(y,0),0!==y&&(e[y+1]=uE(e[y+1],o)),y=o;else e[o+1]=K_(A,0),0===y?y=o:e[A+1]=uE(e[A+1],o),A=o;U&&(e[o+1]=lE(e[o+1])),$A(e,Y,o,!0),$A(e,Y,o,!1),function tw(e,t,r,o,a){const d=a?e.residualClasses:e.residualStyles;null!=d&&"string"==typeof t&&wo(d,t)>=0&&(r[o+1]=cE(r[o+1]))}(t,Y,e,o,d),g=K_(y,A),d?t.classBindings=g:t.styleBindings=g}(a,d,t,r,g,o)}}(d,e,g,o),t!==ci&&zo(a,g,t)&&function YA(e,t,r,o,a,d,g,y){if(!(3&t.type))return;const A=e.data,U=A[y+1],Y=function Zb(e){return!(1&~e)}(U)?JA(A,t,r,a,zh(U),g):void 0;X_(Y)||(X_(d)||function Yb(e){return!(2&~e)}(U)&&(d=JA(A,null,r,a,y,g)),function EI(e,t,r,o,a){if(t)a?e.addClass(r,o):e.removeClass(r,o);else{let d=-1===o.indexOf("-")?void 0:Yg.DashCase;null==a?e.removeStyle(r,o,d):("string"==typeof a&&a.endsWith("!important")&&(a=a.slice(0,-10),d|=Yg.Important),e.setStyle(r,o,a,d))}}(o,g,qa(Mo(),r),a,d))}(d,d.data[Mo()],a,a[qr],e,a[g+1]=function _w(e,t){return null==e||""===e||("string"==typeof t?e+=t:"object"==typeof e&&(e=ar(Rl(e)))),e}(t,r),o,g)}function gE(e,t,r,o,a){let d=null;const g=r.directiveEnd;let y=r.directiveStylingLast;for(-1===y?y=r.directiveStart:y++;y0;){const A=e[a],U=Array.isArray(A),Y=U?A[1]:A,me=null===Y;let Ke=r[a+1];Ke===ci&&(Ke=me?Jr:void 0);let _t=me?Ko(Ke,o):Y===o?Ke:void 0;if(U&&!X_(_t)&&(_t=Ko(A,o)),X_(_t)&&(y=_t,g))return y;const jt=e[a+1];a=g?Ad(jt):zh(jt)}if(null!==t){let A=d?t.residualClasses:t.residualStyles;null!=A&&(y=Ko(A,o))}return y}function X_(e){return void 0!==e}class Rw{destroy(t){}updateValue(t,r){}swap(t,r){const o=Math.min(t,r),a=Math.max(t,r),d=this.detach(a);if(a-o>1){const g=this.detach(o);this.attach(o,d),this.attach(a,g)}else this.attach(o,d)}move(t,r){this.attach(r,this.detach(t))}}function mE(e,t,r,o,a){return e===r&&Object.is(t,o)?1:Object.is(a(e,t),a(r,o))?-1:0}function vE(e,t,r,o){return!(void 0===t||!t.has(o)||(e.attach(r,t.get(o)),t.delete(o),0))}function eC(e,t,r,o,a){if(vE(e,t,o,r(o,a)))e.updateValue(o,a);else{const d=e.create(o,a);e.attach(o,d)}}function tC(e,t,r,o){const a=new Set;for(let d=t;d<=r;d++)a.add(o(d,e.at(d)));return a}class nC{constructor(){this.kvMap=new Map,this._vMap=void 0}has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;const r=this.kvMap.get(t);return void 0!==this._vMap&&this._vMap.has(r)?(this.kvMap.set(t,this._vMap.get(r)),this._vMap.delete(r)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,r){if(this.kvMap.has(t)){let o=this.kvMap.get(t);void 0===this._vMap&&(this._vMap=new Map);const a=this._vMap;for(;a.has(o);)o=a.get(o);a.set(o,r)}else this.kvMap.set(t,r)}forEach(t){for(let[r,o]of this.kvMap)if(t(o,r),void 0!==this._vMap){const a=this._vMap;for(;a.has(o);)o=a.get(o),t(o,r)}}}function rC(e,t,r){La("NgControlFlow");const o=mn(),a=Vs(),d=_E(o,ti+e);if(zo(o,a,t)){const y=ae(null);try{if(dm(d,0),-1!==t){const A=yE(o[Bn],ti+t),U=xo(d,A.tView.ssrId);rp(d,np(o,A,r,{dehydratedView:U}),0,Ih(A,U))}}finally{ae(y)}}else{const y=o_(d,0);void 0!==y&&(y[Si]=r)}}class Pw{constructor(t,r,o){this.lContainer=t,this.$implicit=r,this.$index=o}get $count(){return this.lContainer.length-oo}}function iC(e,t){return t}class Ow{constructor(t,r,o){this.hasEmptyBlock=t,this.trackByFn=r,this.liveCollection=o}}function oC(e,t,r,o,a,d,g,y,A,U,Y,me,Ke){La("NgControlFlow");const _t=void 0!==A,jt=mn(),ln=y?g.bind(jt[no][Si]):g,Nn=new Ow(_t,ln);jt[ti+e]=Nn,xp(e+1,t,r,o,a,d),_t&&xp(e+2,A,U,Y,me,Ke)}class Nw extends Rw{constructor(t,r,o){super(),this.lContainer=t,this.hostLView=r,this.templateTNode=o,this.needsIndexUpdate=!1}get length(){return this.lContainer.length-oo}at(t){return this.getLView(t)[Si].$implicit}attach(t,r){const o=r[uo];this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length),rp(this.lContainer,r,t,Ih(this.templateTNode,o))}detach(t){return this.needsIndexUpdate||(this.needsIndexUpdate=t!==this.length-1),function kw(e,t){return qf(e,t)}(this.lContainer,t)}create(t,r){const o=xo(this.lContainer,this.templateTNode.tView.ssrId);return np(this.hostLView,this.templateTNode,new Pw(this.lContainer,r,t),{dehydratedView:o})}destroy(t){Zg(t[Bn],t)}updateValue(t,r){this.getLView(t)[Si].$implicit=r}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t{e.destroy(Ke)})}(g,e,d.trackByFn),g.updateIndexes(),d.hasEmptyBlock){const y=Vs(),A=0===g.length;if(zo(o,y,A)){const U=r+2,Y=_E(o,U);if(A){const me=yE(a,U),Ke=xo(Y,me.tView.ssrId);rp(Y,np(o,me,void 0,{dehydratedView:Ke}),0,Ih(me,Ke))}else dm(Y,0)}}}finally{ae(t)}}function _E(e,t){return e[t]}function yE(e,t){return Ql(e,t)}function q_(e,t,r,o){const a=mn(),d=Mi(),g=ti+e,y=a[qr],A=d.firstCreatePass?function Lw(e,t,r,o,a,d){const g=t.consts,A=cc(t,e,2,o,Ls(g,a));return t_(t,r,A,Ls(g,d)),null!==A.attrs&&Eu(A,A.attrs,!1),null!==A.mergedAttrs&&Eu(A,A.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,A),A}(g,d,a,t,r,o):d.data[g],U=aC(d,a,A,y,t,e);a[g]=U;const Y=ia(A);return ua(A,!0),s0(y,U,A),!function Km(e){return!(32&~e.flags)}(A)&&$u()&&tm(d,a,U,A),0===function Dc(){return Dr.lFrame.elementDepthCount}()&&go(U,a),function bc(){Dr.lFrame.elementDepthCount++}(),Y&&(yh(d,a,A),Jv(d,A,a)),null!==o&&ad(a,A),q_}function Q_(){let e=Xi();Nu()?ku():(e=e.parent,ua(e,!1));const t=e;(function _l(e){return Dr.skipHydrationRootTNode===e})(t)&&function Ya(){Dr.skipHydrationRootTNode=null}(),function aa(){Dr.lFrame.elementDepthCount--}();const r=Mi();return r.firstCreatePass&&(ju(r,e),Wl(e)&&r.queries.elementEnd(e)),null!=t.classesWithoutHost&&function zu(e){return!!(8&e.flags)}(t)&&hE(r,t,mn(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function Ld(e){return!!(16&e.flags)}(t)&&hE(r,t,mn(),t.stylesWithoutHost,!1),Q_}function EE(e,t,r,o){return q_(e,t,r,o),Q_(),EE}let aC=(e,t,r,o,a,d)=>(Ws(!0),xl(o,a,function Fd(){return Dr.lFrame.currentNamespace}()));function Y_(e,t,r){const o=mn(),a=Mi(),d=e+ti,g=a.firstCreatePass?function Uw(e,t,r,o,a){const d=t.consts,g=Ls(d,o),y=cc(t,e,8,"ng-container",g);return null!==g&&Eu(y,g,!0),t_(t,r,y,Ls(d,a)),null!==t.queries&&t.queries.elementStart(t,y),y}(d,a,o,t,r):a.data[d];ua(g,!0);const y=lC(a,o,g,e);return o[d]=y,$u()&&tm(a,o,y,g),go(y,o),ia(g)&&(yh(a,o,g),Jv(a,g,o)),null!=r&&ad(o,g),Y_}function J_(){let e=Xi();const t=Mi();return Nu()?ku():(e=e.parent,ua(e,!1)),t.firstCreatePass&&(ju(t,e),Wl(e)&&t.queries.elementEnd(e)),J_}function IE(e,t,r){return Y_(e,t,r),J_(),IE}let lC=(e,t,r,o)=>(Ws(!0),rd(t[qr],""));function uC(){return mn()}const Hh=void 0;var Hw=["en",[["a","p"],["AM","PM"],Hh],[["AM","PM"],Hh,Hh],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],Hh,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],Hh,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",Hh,"{1} 'at' {0}",Hh],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function zw(e){const r=Math.floor(Math.abs(e)),o=e.toString().replace(/^[^.]*\.?/,"").length;return 1===r&&0===o?1:5}];let qp={};function AE(e){const t=function Gw(e){return e.toLowerCase().replace(/_/g,"-")}(e);let r=fC(t);if(r)return r;const o=t.split("-")[0];if(r=fC(o),r)return r;if("en"===o)return Hw;throw new nt(701,!1)}function hC(e){return AE(e)[Qp.PluralCase]}function fC(e){return e in qp||(qp[e]=sr.ng&&sr.ng.common&&sr.ng.common.locales&&sr.ng.common.locales[e]),qp[e]}var Qp=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(Qp||{});const Yp="en-US";let pC=Yp;function DE(e,t,r,o){const a=mn(),d=Mi(),g=Xi();return bE(d,a,a[qr],g,e,t,o),DE}function bE(e,t,r,o,a,d,g){const y=ia(o),U=e.firstCreatePass&&C0(e),Y=t[Si],me=A0(t);let Ke=!0;if(3&o.type||g){const ln=ms(o,t),Nn=g?g(ln):ln,Un=me.length,_n=g?mi=>g($i(mi[o.index])):o.index;let ni=null;if(!g&&y&&(ni=function $S(e,t,r,o){const a=e.cleanup;if(null!=a)for(let d=0;dA?y[A]:null}"string"==typeof g&&(d+=2)}return null}(e,t,a,o.index)),null!==ni)(ni.__ngLastListenerFn__||ni).__ngNextListenerFn__=d,ni.__ngLastListenerFn__=d,Ke=!1;else{d=jC(o,t,Y,d,!1);const mi=r.listen(Nn,a,d);me.push(d,mi),U&&U.push(a,_n,Un,Un+1)}}else d=jC(o,t,Y,d,!1);const _t=o.outputs;let jt;if(Ke&&null!==_t&&(jt=_t[a])){const ln=jt.length;if(ln)for(let Nn=0;Nn-1?$o(e.index,t):t);let A=$C(t,r,o,g),U=d.__ngNextListenerFn__;for(;U;)A=$C(t,r,U,g)&&A,U=U.__ngNextListenerFn__;return a&&!1===A&&g.preventDefault(),A}}function zC(e=1){return function Bu(e){return(Dr.lFrame.contextLView=function rg(e,t){for(;e>0;)t=t[fl],e--;return t}(e,Dr.lFrame.contextLView))[Si]}(e)}function jS(e,t){let r=null;const o=function an(e){const t=e.attrs;if(null!=t){const r=t.indexOf(5);if(!(1&r))return t[r+1]}return null}(e);for(let a=0;a(Ws(!0),function Pl(e,t){return e.createText(t)}(t[qr],o));function SE(e){return iy("",e,""),SE}function iy(e,t,r){const o=mn(),a=Up(o,e,t,r);return a!==ci&&mu(o,Mo(),a),iy}function RE(e,t,r,o,a){const d=mn(),g=$p(d,e,t,r,o,a);return g!==ci&&mu(d,Mo(),g),RE}function ME(e,t,r){Vm(t)&&(t=t());const o=mn();return zo(o,Vs(),t)&&Xs(Mi(),Gi(),o,e,t,o[qr],r,!1),ME}function CT(e,t){const r=Vm(e);return r&&e.set(t),r}function PE(e,t){const r=mn(),o=Mi(),a=Xi();return bE(o,r,r[qr],a,e,t),PE}function xE(e,t,r,o,a){if(e=ve(e),Array.isArray(e))for(let d=0;d>20;if(ds(e)||!e.multi){const _t=new Al(U,a,sd),jt=NE(A,t,a?Y:Y+Ke,me);-1===jt?(Dl(Gu(y,g),d,A),OE(d,e,t.length),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(_t),g.push(_t)):(r[jt]=_t,g[jt]=_t)}else{const _t=NE(A,t,Y+Ke,me),jt=NE(A,t,Y,Y+Ke),Nn=jt>=0&&r[jt];if(a&&!Nn||!a&&!(_t>=0&&r[_t])){Dl(Gu(y,g),d,A);const Un=function aR(e,t,r,o,a){const d=new Al(e,r,sd);return d.multi=[],d.index=t,d.componentProviders=0,TT(d,a,o&&!r),d}(a?sR:oR,r.length,a,o,U);!a&&Nn&&(r[jt].providerFactory=Un),OE(d,e,t.length,0),t.push(A),y.directiveStart++,y.directiveEnd++,a&&(y.providerIndexes+=1048576),r.push(Un),g.push(Un)}else OE(d,e,_t>-1?_t:jt,TT(r[a?jt:_t],U,!a&&o));!a&&o&&Nn&&r[jt].componentProviders++}}}function OE(e,t,r,o){const a=ds(t),d=function Ns(e){return!!e.useClass}(t);if(a||d){const A=(d?ve(t.useClass):t).prototype.ngOnDestroy;if(A){const U=e.destroyHooks||(e.destroyHooks=[]);if(!a&&t.multi){const Y=U.indexOf(r);-1===Y?U.push(r,[o,A]):U[Y+1].push(o,A)}else U.push(r,A)}}}function TT(e,t,r){return r&&e.componentProviders++,e.multi.push(t)-1}function NE(e,t,r,o){for(let a=r;a{r.providersResolver=(o,a)=>function iR(e,t,r){const o=Mi();if(o.firstCreatePass){const a=Is(e);xE(r,o.data,o.blueprint,a,!0),xE(t,o.data,o.blueprint,a,!1)}}(o,a?a(e):e,t)}}let lR=(()=>{var e;class t{constructor(o){this._injector=o,this.cachedInjectors=new Map}getOrCreateStandaloneInjector(o){if(!o.standalone)return null;if(!this.cachedInjectors.has(o)){const a=Ua(0,o.type),d=a.length>0?Q0([a],this._injector,`Standalone[${o.type.name}]`):null;this.cachedInjectors.set(o,d)}return this.cachedInjectors.get(o)}ngOnDestroy(){try{for(const o of this.cachedInjectors.values())null!==o&&o.destroy()}finally{this.cachedInjectors.clear()}}}return(e=t).\u0275prov=Ir({token:e,providedIn:"environment",factory:()=>new e(W(Qo))}),t})();function bT(e){La("NgStandalone"),e.getStandaloneInjector=t=>t.get(lR).getOrCreateStandaloneInjector(e)}function ST(e,t,r){const o=Ro()+e,a=mn();return a[o]===ci?bu(a,o,r?t.call(r):t()):function Wm(e,t){return e[t]}(a,o)}function iv(e,t){const r=e[t];return r===ci?void 0:r}function NT(e,t){const r=Mi();let o;const a=e+ti;var d;r.firstCreatePass?(o=function ER(e,t){if(t)for(let r=t.length-1;r>=0;r--){const o=t[r];if(e===o.name)return o}}(t,r.pipeRegistry),r.data[a]=o,o.onDestroy&&(null!==(d=r.destroyHooks)&&void 0!==d?d:r.destroyHooks=[]).push(a,o.onDestroy)):o=r.data[a];const g=o.factory||(o.factory=Qr(o.type)),A=K(sd);try{const U=eu(!1),Y=g();return eu(U),function WS(e,t,r,o){r>=e.data.length&&(e.data[r]=null,e.blueprint[r]=null),t[r]=o}(r,mn(),a,Y),Y}finally{K(A)}}function kT(e,t,r){const o=e+ti,a=mn(),d=Cs(a,o);return ov(a,o)?function RT(e,t,r,o,a,d){const g=t+r;return zo(e,g,a)?bu(e,g+1,d?o.call(d,a):o(a)):iv(e,g+1)}(a,Ro(),t,d.transform,r,d):d.transform(r)}function FT(e,t,r,o){const a=e+ti,d=mn(),g=Cs(d,a);return ov(d,a)?function MT(e,t,r,o,a,d,g){const y=t+r;return $h(e,y,a,d)?bu(e,y+2,g?o.call(g,a,d):o(a,d)):iv(e,y+2)}(d,Ro(),t,g.transform,r,o,g):g.transform(r,o)}function ov(e,t){return e[Bn].data[t].pure}class JT{constructor(t){this.full=t;const r=t.split(".");this.major=r[0],this.minor=r[1],this.patch=r.slice(2).join(".")}}const WR=new JT("17.3.10");let ZT=(()=>{var e;class t{log(o){console.log(o)}warn(o){console.warn(o)}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();const rD=new We(""),iD=new We("");let jE,_1=(()=>{var e;class t{constructor(o,a,d){this._ngZone=o,this.registry=a,this._pendingCount=0,this._isZoneStable=!0,this._callbacks=[],this.taskTrackingZone=null,jE||(function y1(e){jE=e}(d),d.addToWindow(a)),this._watchAngularEvents(),o.run(()=>{this.taskTrackingZone=typeof Zone>"u"?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Bo.assertNotInAngularZone(),queueMicrotask(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())queueMicrotask(()=>{for(;0!==this._callbacks.length;){let o=this._callbacks.pop();clearTimeout(o.timeoutId),o.doneCb()}});else{let o=this.getPendingTasks();this._callbacks=this._callbacks.filter(a=>!a.updateCb||!a.updateCb(o)||(clearTimeout(a.timeoutId),!1))}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(o=>({source:o.source,creationLocation:o.creationLocation,data:o.data})):[]}addCallback(o,a,d){let g=-1;a&&a>0&&(g=setTimeout(()=>{this._callbacks=this._callbacks.filter(y=>y.timeoutId!==g),o()},a)),this._callbacks.push({doneCb:o,timeoutId:g,updateCb:d})}whenStable(o,a,d){if(d&&!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(o,a,d),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}registerApplication(o){this.registry.registerApplication(o,this)}unregisterApplication(o){this.registry.unregisterApplication(o)}findProviders(o,a,d){return[]}}return(e=t).\u0275fac=function(o){return new(o||e)(W(Bo),W(oD),W(iD))},e.\u0275prov=Ir({token:e,factory:e.\u0275fac}),t})(),oD=(()=>{var e;class t{constructor(){this._applications=new Map}registerApplication(o,a){this._applications.set(o,a)}unregisterApplication(o){this._applications.delete(o)}unregisterAllApplications(){this._applications.clear()}getTestability(o){return this._applications.get(o)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(o,a=!0){var d,g;return null!==(d=null===(g=jE)||void 0===g?void 0:g.findTestabilityInTree(this,o,a))&&void 0!==d?d:null}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})();function zE(e){return!!e&&"function"==typeof e.then}function sD(e){return!!e&&"function"==typeof e.subscribe}const aD=new We("");let HE=(()=>{var e;class t{constructor(){var o;this.initialized=!1,this.done=!1,this.donePromise=new Promise((a,d)=>{this.resolve=a,this.reject=d}),this.appInits=null!==(o=Fe(aD,{optional:!0}))&&void 0!==o?o:[]}runInitializers(){if(this.initialized)return;const o=[];for(const d of this.appInits){const g=d();if(zE(g))o.push(g);else if(sD(g)){const y=new Promise((A,U)=>{g.subscribe({complete:A,error:U})});o.push(y)}}const a=()=>{this.done=!0,this.resolve()};Promise.all(o).then(()=>{a()}).catch(d=>{this.reject(d)}),0===o.length&&a(),this.initialized=!0}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const GE=new We("");function cD(e,t){return Array.isArray(t)?t.reduce(cD,e):{...e,...t}}let Cd=(()=>{var e;class t{constructor(){this._bootstrapListeners=[],this._runningTick=!1,this._destroyed=!1,this._destroyListeners=[],this._views=[],this.internalErrorHandler=Fe(Gd),this.afterRenderEffectManager=Fe(ud),this.externalTestViews=new Set,this.beforeRender=new kn.B,this.afterTick=new kn.B,this.componentTypes=[],this.components=[],this.isStable=Fe(Pp).hasPendingTasks.pipe((0,gr.T)(o=>!o)),this._injector=Fe(Qo)}get destroyed(){return this._destroyed}get injector(){return this._injector}bootstrap(o,a){const d=o instanceof l_;if(!this._injector.get(HE).done)throw!d&&So(o),new nt(405,!1);let y;y=d?o:this._injector.get(hc).resolveComponentFactory(o),this.componentTypes.push(y.componentType);const A=function E1(e){return e.isBoundToModule}(y)?void 0:this._injector.get(Io),Y=y.create(Ts.NULL,[],a||y.selector,A),me=Y.location.nativeElement,Ke=Y.injector.get(rD,null);return null==Ke||Ke.registerApplication(me),Y.onDestroy(()=>{this.detachView(Y.hostView),ly(this.components,Y),null==Ke||Ke.unregisterApplication(me)}),this._loadComponent(Y),Y}tick(){this._tick(!0)}_tick(o){if(this._runningTick)throw new nt(101,!1);const a=ae(null);try{this._runningTick=!0,this.detectChangesInAttachedViews(o)}catch(d){this.internalErrorHandler(d)}finally{this.afterTick.next(),this._runningTick=!1,ae(a)}}detectChangesInAttachedViews(o){let a=0;const d=this.afterRenderEffectManager;for(;;){if(a===w0)throw new nt(103,!1);if(o){const g=0===a;this.beforeRender.next(g);for(let{_lView:y,notifyErrorHandler:A}of this._views)A1(y,g,A)}if(a++,d.executeInternalCallbacks(),![...this.externalTestViews.keys(),...this._views].some(({_lView:g})=>WE(g))&&(d.execute(),![...this.externalTestViews.keys(),...this._views].some(({_lView:g})=>WE(g))))break}}attachView(o){const a=o;this._views.push(a),a.attachToAppRef(this)}detachView(o){const a=o;ly(this._views,a),a.detachFromAppRef()}_loadComponent(o){this.attachView(o.hostView),this.tick(),this.components.push(o);const a=this._injector.get(GE,[]);[...this._bootstrapListeners,...a].forEach(d=>d(o))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(o=>o()),this._views.slice().forEach(o=>o.destroy())}finally{this._destroyed=!0,this._views=[],this._bootstrapListeners=[],this._destroyListeners=[]}}onDestroy(o){return this._destroyListeners.push(o),()=>ly(this._destroyListeners,o)}destroy(){if(this._destroyed)throw new nt(406,!1);const o=this._injector;o.destroy&&!o.destroyed&&o.destroy()}get viewCount(){return this._views.length}warnIfDestroyed(){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function ly(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}function A1(e,t,r){!t&&!WE(e)||function C1(e,t,r){let o;r?(o=0,e[ir]|=1024):o=64&e[ir]?0:1,hm(e,t,o)}(e,r,t)}function WE(e){return Yl(e)}class T1{constructor(t,r){this.ngModuleFactory=t,this.componentFactories=r}}let D1=(()=>{var e;class t{compileModuleSync(o){return new Qs(o)}compileModuleAsync(o){return Promise.resolve(this.compileModuleSync(o))}compileModuleAndAllComponentsSync(o){const a=this.compileModuleSync(o),g=va(Li(o).declarations).reduce((y,A)=>{const U=jr(A);return U&&y.push(new Rh(U)),y},[]);return new T1(a,g)}compileModuleAndAllComponentsAsync(o){return Promise.resolve(this.compileModuleAndAllComponentsSync(o))}clearCache(){}clearCacheFor(o){}getModuleId(o){}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})(),S1=(()=>{var e;class t{constructor(){this.zone=Fe(Bo),this.applicationRef=Fe(Cd)}initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){var o;null===(o=this._onMicrotaskEmptySubscription)||void 0===o||o.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();function R1(){const e=Fe(Bo),t=Fe(tl);return r=>e.runOutsideAngular(()=>t.handleError(r))}let P1=(()=>{var e;class t{constructor(){this.subscription=new On.yU,this.initialized=!1,this.zone=Fe(Bo),this.pendingTasks=Fe(Pp)}initialize(){if(this.initialized)return;this.initialized=!0;let o=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(o=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{Bo.assertNotInAngularZone(),queueMicrotask(()=>{null!==o&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(o),o=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{var a;Bo.assertInAngularZone(),null!==(a=o)&&void 0!==a||(o=this.pendingTasks.add())}))}ngOnDestroy(){this.subscription.unsubscribe()}}return(e=t).\u0275fac=function(o){return new(o||e)},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"root"}),t})();const uy=new We("",{providedIn:"root",factory:()=>Fe(uy,Pt.Optional|Pt.SkipSelf)||function x1(){return typeof $localize<"u"&&$localize.locale||Yp}()}),O1=new We("",{providedIn:"root",factory:()=>"USD"}),KE=new We("");let pD=(()=>{var e;class t{constructor(o){this._injector=o,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(o,a){const d=function wh(e="zone.js",t){return"noop"===e?new Dm:"zone.js"===e?new Bo(t):e}(null==a?void 0:a.ngZone,function fD(e){var t,r;return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:null!==(t=null==e?void 0:e.eventCoalescing)&&void 0!==t&&t,shouldCoalesceRunChangeDetection:null!==(r=null==e?void 0:e.runCoalescing)&&void 0!==r&&r}}({eventCoalescing:null==a?void 0:a.ngZoneEventCoalescing,runCoalescing:null==a?void 0:a.ngZoneRunCoalescing}));return d.run(()=>{const g=function Rp(e,t,r){return new Du(e,t,r)}(o.moduleType,this.injector,function hD(e){return[{provide:Bo,useFactory:e},{provide:Ao,multi:!0,useFactory:()=>{const t=Fe(S1,{optional:!0});return()=>t.initialize()}},{provide:Ao,multi:!0,useFactory:()=>{const t=Fe(P1);return()=>{t.initialize()}}},{provide:Gd,useFactory:R1}]}(()=>d)),y=g.injector.get(tl,null);return d.runOutsideAngular(()=>{const A=d.onError.subscribe({next:U=>{y.handleError(U)}});g.onDestroy(()=>{ly(this._modules,g),A.unsubscribe()})}),function uD(e,t,r){try{const o=r();return zE(o)?o.catch(a=>{throw t.runOutsideAngular(()=>e.handleError(a)),a}):o}catch(o){throw t.runOutsideAngular(()=>e.handleError(o)),o}}(y,d,()=>{const A=g.injector.get(HE);return A.runInitializers(),A.donePromise.then(()=>(function gC(e){"string"==typeof e&&(pC=e.toLowerCase().replace(/_/g,"-"))}(g.injector.get(uy,Yp)||Yp),this._moduleDoBootstrap(g),g))})})}bootstrapModule(o,a=[]){const d=cD({},a);return function w1(e,t,r){const o=new Qs(r);return Promise.resolve(o)}(0,0,o).then(g=>this.bootstrapModuleFactory(g,d))}_moduleDoBootstrap(o){const a=o.injector.get(Cd);if(o._bootstrapComponents.length>0)o._bootstrapComponents.forEach(d=>a.bootstrap(d));else{if(!o.instance.ngDoBootstrap)throw new nt(-403,!1);o.instance.ngDoBootstrap(a)}this._modules.push(o)}onDestroy(o){this._destroyListeners.push(o)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new nt(404,!1);this._modules.slice().forEach(a=>a.destroy()),this._destroyListeners.forEach(a=>a());const o=this._injector.get(KE,null);o&&(o.forEach(a=>a()),o.clear()),this._destroyed=!0}get destroyed(){return this._destroyed}}return(e=t).\u0275fac=function(o){return new(o||e)(W(Ts))},e.\u0275prov=Ir({token:e,factory:e.\u0275fac,providedIn:"platform"}),t})(),Td=null;const gD=new We("");function mD(e,t,r=[]){const o=`Platform: ${t}`,a=new We(o);return(d=[])=>{let g=XE();if(!g||g.injector.get(gD,!1)){const y=[...r,...d,{provide:a,useValue:!0}];e?e(y):function k1(e){if(Td&&!Td.get(gD,!1))throw new nt(400,!1);(function lD(){!function Re(e){cn=e}(()=>{throw new nt(600,!1)})})(),Td=e;const t=e.get(pD);(function _D(e){const t=e.get(Ev,null);null==t||t.forEach(r=>r())})(e)}(function vD(e=[],t){return Ts.create({name:t,providers:[{provide:zl,useValue:"platform"},{provide:KE,useValue:new Set([()=>Td=null])},...e]})}(y,o))}return function F1(e){const t=XE();if(!t)throw new nt(401,!1);return t}()}}function XE(){var e,t;return null!==(e=null===(t=Td)||void 0===t?void 0:t.get(pD))&&void 0!==e?e:null}function V1(){}let ED=(()=>{class t{}return t.__NG_ELEMENT_ID__=B1,t})();function B1(e){return function U1(e,t,r){if(gs(e)&&!r){const o=$o(e.index,t);return new sp(o,o)}return 47&e.type?new sp(t[no],t):null}(Xi(),mn(),!(16&~e))}class TD{constructor(){}supports(t){return U_(t)}create(t){return new G1(t)}}const H1=(e,t)=>t;class G1{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||H1}forEachItem(t){let r;for(r=this._itHead;null!==r;r=r._next)t(r)}forEachOperation(t){let r=this._itHead,o=this._removalsHead,a=0,d=null;for(;r||o;){const g=!o||r&&r.currentIndex{g=this._trackByFn(a,y),null!==r&&Object.is(r.trackById,g)?(o&&(r=this._verifyReinsertion(r,y,g,a)),Object.is(r.item,y)||this._addIdentityChange(r,y)):(r=this._mismatch(r,y,g,a),o=!0),r=r._next,a++}),this.length=a;return this._truncate(r),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,r,o,a){let d;return null===t?d=this._itTail:(d=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._reinsertAfter(t,d,a)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(o,a))?(Object.is(t.item,r)||this._addIdentityChange(t,r),this._moveAfter(t,d,a)):t=this._addAfter(new W1(r,o),d,a),t}_verifyReinsertion(t,r,o,a){let d=null===this._unlinkedRecords?null:this._unlinkedRecords.get(o,null);return null!==d?t=this._reinsertAfter(d,t._prev,a):t.currentIndex!=a&&(t.currentIndex=a,this._addToMoves(t,a)),t}_truncate(t){for(;null!==t;){const r=t._next;this._addToRemovals(this._unlink(t)),t=r}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,r,o){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const a=t._prevRemoved,d=t._nextRemoved;return null===a?this._removalsHead=d:a._nextRemoved=d,null===d?this._removalsTail=a:d._prevRemoved=a,this._insertAfter(t,r,o),this._addToMoves(t,o),t}_moveAfter(t,r,o){return this._unlink(t),this._insertAfter(t,r,o),this._addToMoves(t,o),t}_addAfter(t,r,o){return this._insertAfter(t,r,o),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,r,o){const a=null===r?this._itHead:r._next;return t._next=a,t._prev=r,null===a?this._itTail=t:a._prev=t,null===r?this._itHead=t:r._next=t,null===this._linkedRecords&&(this._linkedRecords=new DD),this._linkedRecords.put(t),t.currentIndex=o,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const r=t._prev,o=t._next;return null===r?this._itHead=o:r._next=o,null===o?this._itTail=r:o._prev=r,t}_addToMoves(t,r){return t.previousIndex===r||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new DD),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,r){return t.item=r,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class W1{constructor(t,r){this.item=t,this.trackById=r,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class K1{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,r){let o;for(o=this._head;null!==o;o=o._nextDup)if((null===r||r<=o.currentIndex)&&Object.is(o.trackById,t))return o;return null}remove(t){const r=t._prevDup,o=t._nextDup;return null===r?this._head=o:r._nextDup=o,null===o?this._tail=r:o._prevDup=r,null===this._head}}class DD{constructor(){this.map=new Map}put(t){const r=t.trackById;let o=this.map.get(r);o||(o=new K1,this.map.set(r,o)),o.add(t)}get(t,r){const a=this.map.get(t);return a?a.get(t,r):null}remove(t){const r=t.trackById;return this.map.get(r).remove(t)&&this.map.delete(r),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function bD(e,t,r){const o=e.previousIndex;if(null===o)return o;let a=0;return r&&o{if(r&&r.key===a)this._maybeAddToChanges(r,o),this._appendAfter=r,r=r._next;else{const d=this._getOrCreateRecordForKey(a,o);r=this._insertBeforeOrAppend(r,d)}}),r){r._prev&&(r._prev._next=null),this._removalsHead=r;for(let o=r;null!==o;o=o._nextRemoved)o===this._mapHead&&(this._mapHead=null),this._records.delete(o.key),o._nextRemoved=o._next,o.previousValue=o.currentValue,o.currentValue=null,o._prev=null,o._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,r){if(t){const o=t._prev;return r._next=t,r._prev=o,t._prev=r,o&&(o._next=r),t===this._mapHead&&(this._mapHead=r),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=r,r._prev=this._appendAfter):this._mapHead=r,this._appendAfter=r,null}_getOrCreateRecordForKey(t,r){if(this._records.has(t)){const a=this._records.get(t);this._maybeAddToChanges(a,r);const d=a._prev,g=a._next;return d&&(d._next=g),g&&(g._prev=d),a._next=null,a._prev=null,a}const o=new q1(t);return this._records.set(t,o),o.currentValue=r,this._addToAdditions(o),o}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,r){Object.is(r,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=r,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,r){t instanceof Map?t.forEach(r):Object.keys(t).forEach(o=>r(t[o],o))}}class q1{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function SD(){return new ZE([new TD])}let ZE=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(null!=a){const d=a.factories.slice();o=o.concat(d)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||SD()),deps:[[t,new _r,new Gn]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(null!=a)return a;throw new nt(901,!1)}}return(e=t).\u0275prov=Ir({token:e,providedIn:"root",factory:SD}),t})();function RD(){return new eI([new wD])}let eI=(()=>{var e;class t{constructor(o){this.factories=o}static create(o,a){if(a){const d=a.factories.slice();o=o.concat(d)}return new t(o)}static extend(o){return{provide:t,useFactory:a=>t.create(o,a||RD()),deps:[[t,new _r,new Gn]]}}find(o){const a=this.factories.find(d=>d.supports(o));if(a)return a;throw new nt(901,!1)}}return(e=t).\u0275prov=Ir({token:e,providedIn:"root",factory:RD}),t})();const J1=mD(null,"core",[]);let Z1=(()=>{var e;class t{constructor(o){}}return(e=t).\u0275fac=function(o){return new(o||e)(W(Cd))},e.\u0275mod=cs({type:e}),e.\u0275inj=vi({}),t})();function SM(e){return"boolean"==typeof e?e:null!=e&&"false"!==e}function RM(e,t=NaN){return isNaN(parseFloat(e))||isNaN(Number(e))?t:Number(e)}function PM(e){const t=ae(null);try{return e()}finally{ae(t)}}const xM=new We("",{providedIn:"root",factory:()=>Fe(OM)});let OM=(()=>{var e;class t{}return(e=t).\u0275prov=Ir({token:e,providedIn:"root",factory:()=>new NM}),t})();class NM{constructor(){this.queuedEffectCount=0,this.queues=new Map,this.pendingTasks=Fe(Pp),this.taskId=null}scheduleEffect(t){if(this.enqueue(t),null===this.taskId){const r=this.taskId=this.pendingTasks.add();queueMicrotask(()=>{this.flush(),this.pendingTasks.remove(r),this.taskId=null})}}enqueue(t){const r=t.creationZone;this.queues.has(r)||this.queues.set(r,new Set);const o=this.queues.get(r);o.has(t)||(this.queuedEffectCount++,o.add(t))}flush(){for(;this.queuedEffectCount>0;)for(const[t,r]of this.queues)null===t?this.flushQueue(r):t.run(()=>this.flushQueue(r))}flushQueue(t){for(const r of t)t.delete(r),this.queuedEffectCount--,r.run()}}class kM{constructor(t,r,o,a,d,g){this.scheduler=t,this.effectFn=r,this.creationZone=o,this.injector=d,this.watcher=function xn(e,t,r){const o=Object.create(Je);r&&(o.consumerAllowSignalWrites=!0),o.fn=e,o.schedule=t;const a=A=>{o.cleanupFn=A};return o.ref={notify:()=>xt(o),run:()=>{if(null===o.fn)return;if(function tt(){return ke}())throw new Error("Schedulers cannot synchronously execute watches while scheduling.");if(o.dirty=!1,o.hasRun&&!Tt(o))return;o.hasRun=!0;const A=Dt(o);try{o.cleanupFn(),o.cleanupFn=un,o.fn(a)}finally{zt(o,A)}},cleanup:()=>o.cleanupFn(),destroy:()=>function g(A){(function d(A){return null===A.fn&&null===A.schedule})(A)||(It(A),A.cleanupFn(),A.fn=null,A.schedule=null,A.cleanupFn=un)}(o),[he]:o},o.ref}(y=>this.runEffect(y),()=>this.schedule(),g),this.unregisterOnDestroy=null==a?void 0:a.onDestroy(()=>this.destroy())}runEffect(t){try{this.effectFn(t)}catch(r){const o=this.injector.get(tl,null,{optional:!0});null==o||o.handleError(r)}}run(){this.watcher.run()}schedule(){this.scheduler.scheduleEffect(this)}destroy(){var t;this.watcher.destroy(),null===(t=this.unregisterOnDestroy)||void 0===t||t.call(this)}}function YD(e,t){var r,o;La("NgSignals"),(null==t||!t.injector)&&Ca();const a=null!==(r=null==t?void 0:t.injector)&&void 0!==r?r:Fe(Ts),d=!0!==(null==t?void 0:t.manualCleanup)?a.get(qu):null,g=new kM(a.get(xM),e,typeof Zone>"u"?null:Zone.current,d,a,null!==(o=null==t?void 0:t.allowSignalWrites)&&void 0!==o&&o),y=a.get(ED,null,{optional:!0});var A,U;return y&&8&y._lView[ir]?(null!==(U=(A=y._lView)[ra])&&void 0!==U?U:A[ra]=[]).push(g.watcher.notify):g.watcher.notify(),g}function FM(e,t){const r=jr(e),o=t.elementInjector||fs();return new Rh(r).create(o,t.projectableNodes,t.hostElement,t.environmentInjector)}function LM(e){const t=jr(e);if(!t)return null;const r=new Rh(t);return{get selector(){return r.selector},get type(){return r.componentType},get inputs(){return r.inputs},get outputs(){return r.outputs},get ngContentSelectors(){return r.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}},7440:(Pn,Et,C)=>{"use strict";C.d(Et,{MW:()=>it,Wp:()=>xt,XU:()=>ke,gL:()=>$});var h=C(2214),c=C(4438),Z=C(5407);class ke{constructor(Ze){return Ze}}class ${constructor(){return(0,h.Dk)()}}const Xe=new c.nKC("angularfire2._apps"),tt={provide:ke,useFactory:function ae(Te){return Te&&1===Te.length?Te[0]:new ke((0,h.Sx)())},deps:[[new c.Xx1,Xe]]},Se={provide:$,deps:[[new c.Xx1,Xe]]};function be(Te){return(Ze,_e)=>{const $e=_e.get(c.Agw);(0,h.KO)("angularfire",Z.xv.full,"core"),(0,h.KO)("angularfire",Z.xv.full,"app"),(0,h.KO)("angular",c.xvI.full,$e.toString());const Le=Ze.runOutsideAngular(()=>Te(_e));return new ke(Le)}}function it(Te,...Ze){return(0,c.EmA)([tt,Se,{provide:Xe,useFactory:be(Te),multi:!0,deps:[c.SKi,c.zZn,Z.u0,...Ze]}])}const xt=(0,Z.S3)(h.Wp,!0)},8737:(Pn,Et,C)=>{"use strict";C.d(Et,{Nj:()=>Ja,DF:()=>Dl,eJ:()=>Wu,xI:()=>ug,_q:()=>bl,x9:()=>Qu,kQ:()=>$c});var h=C(5407),c=C(4438),Z=C(7440),ke=C(2214),$=C(467),he=C(7852),ae=C(1076),Xe=C(8041),tt=C(1635),Se=C(1362);const zt=function xt(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}},Tt=new ae.FA("auth","Firebase",{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}),Te=new Xe.Vy("@firebase/auth");function _e(I,...f){Te.logLevel<=Xe.$b.ERROR&&Te.error(`Auth (${he.MF}): ${I}`,...f)}function $e(I,...f){throw Cn(I,...f)}function Le(I,...f){return Cn(I,...f)}function Oe(I,f,v){const S=Object.assign(Object.assign({},zt()),{[f]:v});return new ae.FA("auth","Firebase",S).create(f,{appName:I.name})}function Ct(I){return Oe(I,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Cn(I,...f){if("string"!=typeof I){const v=f[0],S=[...f.slice(1)];return S[0]&&(S[0].appName=I.name),I._errorFactory.create(v,...S)}return Tt.create(I,...f)}function At(I,f,...v){if(!I)throw Cn(f,...v)}function st(I){const f="INTERNAL ASSERTION FAILED: "+I;throw _e(f),new Error(f)}function cn(I,f){I||st(f)}function vt(){var I;return typeof self<"u"&&(null===(I=self.location)||void 0===I?void 0:I.href)||""}function G(){var I;return typeof self<"u"&&(null===(I=self.location)||void 0===I?void 0:I.protocol)||null}class ue{constructor(f,v){this.shortDelay=f,this.longDelay=v,cn(v>f,"Short delay should be less than long delay!"),this.isMobile=(0,ae.jZ)()||(0,ae.lV)()}get(){return function X(){return!(typeof navigator<"u"&&navigator&&"onLine"in navigator&&"boolean"==typeof navigator.onLine&&(function Re(){return"http:"===G()||"https:"===G()}()||(0,ae.sr)()||"connection"in navigator))||navigator.onLine}()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}function Ee(I,f){cn(I.emulator,"Emulator should always be set here");const{url:v}=I.emulator;return f?`${v}${f.startsWith("/")?f.slice(1):f}`:v}class Ve{static initialize(f,v,S){this.fetchImpl=f,v&&(this.headersImpl=v),S&&(this.responseImpl=S)}static fetch(){return this.fetchImpl?this.fetchImpl:typeof self<"u"&&"fetch"in self?self.fetch:typeof globalThis<"u"&&globalThis.fetch?globalThis.fetch:typeof fetch<"u"?fetch:void st("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){return this.headersImpl?this.headersImpl:typeof self<"u"&&"Headers"in self?self.Headers:typeof globalThis<"u"&&globalThis.Headers?globalThis.Headers:typeof Headers<"u"?Headers:void st("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){return this.responseImpl?this.responseImpl:typeof self<"u"&&"Response"in self?self.Response:typeof globalThis<"u"&&globalThis.Response?globalThis.Response:typeof Response<"u"?Response:void st("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}const ut={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"},fn=new ue(3e4,6e4);function xn(I,f){return I.tenantId&&!f.tenantId?Object.assign(Object.assign({},f),{tenantId:I.tenantId}):f}function un(I,f,v,S){return Je.apply(this,arguments)}function Je(){return(Je=(0,$.A)(function*(I,f,v,S,J={}){return Sn(I,J,(0,$.A)(function*(){let Me={},Mt={};S&&("GET"===f?Mt=S:Me={body:JSON.stringify(S)});const Jt=(0,ae.Am)(Object.assign({key:I.config.apiKey},Mt)).slice(1),Mn=yield I._getAdditionalHeaders();return Mn["Content-Type"]="application/json",I.languageCode&&(Mn["X-Firebase-Locale"]=I.languageCode),Ve.fetch()(gr(I,I.config.apiHost,v,Jt),Object.assign({method:f,headers:Mn,referrerPolicy:"no-referrer"},Me))}))})).apply(this,arguments)}function Sn(I,f,v){return kn.apply(this,arguments)}function kn(){return(kn=(0,$.A)(function*(I,f,v){I._canInitEmulator=!1;const S=Object.assign(Object.assign({},ut),f);try{const J=new dr(I),Me=yield Promise.race([v(),J.promise]);J.clearNetworkTimeout();const Mt=yield Me.json();if("needConfirmation"in Mt)throw nt(I,"account-exists-with-different-credential",Mt);if(Me.ok&&!("errorMessage"in Mt))return Mt;{const Jt=Me.ok?Mt.errorMessage:Mt.error.message,[Mn,Jn]=Jt.split(" : ");if("FEDERATED_USER_ID_ALREADY_LINKED"===Mn)throw nt(I,"credential-already-in-use",Mt);if("EMAIL_EXISTS"===Mn)throw nt(I,"email-already-in-use",Mt);if("USER_DISABLED"===Mn)throw nt(I,"user-disabled",Mt);const xr=S[Mn]||Mn.toLowerCase().replace(/[_\s]+/g,"-");if(Jn)throw Oe(I,xr,Jn);$e(I,xr)}}catch(J){if(J instanceof ae.g)throw J;$e(I,"network-request-failed",{message:String(J)})}})).apply(this,arguments)}function On(I,f,v,S){return or.apply(this,arguments)}function or(){return(or=(0,$.A)(function*(I,f,v,S,J={}){const Me=yield un(I,f,v,S,J);return"mfaPendingCredential"in Me&&$e(I,"multi-factor-auth-required",{_serverResponse:Me}),Me})).apply(this,arguments)}function gr(I,f,v,S){const J=`${f}${v}?${S}`;return I.config.emulator?Ee(I.config,J):`${I.config.apiScheme}://${J}`}function cr(I){switch(I){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class dr{constructor(f){this.auth=f,this.timer=null,this.promise=new Promise((v,S)=>{this.timer=setTimeout(()=>S(Le(this.auth,"network-request-failed")),fn.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}}function nt(I,f,v){const S={appName:I.name};v.email&&(S.email=v.email),v.phoneNumber&&(S.phoneNumber=v.phoneNumber);const J=Le(I,f,S);return J.customData._tokenResponse=v,J}function Xt(I){return void 0!==I&&void 0!==I.enterprise}class yn{constructor(f){if(this.siteKey="",this.recaptchaEnforcementState=[],void 0===f.recaptchaKey)throw new Error("recaptchaKey undefined");this.siteKey=f.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=f.recaptchaEnforcementState}getProviderEnforcementState(f){if(!this.recaptchaEnforcementState||0===this.recaptchaEnforcementState.length)return null;for(const v of this.recaptchaEnforcementState)if(v.provider&&v.provider===f)return cr(v.enforcementState);return null}isProviderEnabled(f){return"ENFORCE"===this.getProviderEnforcementState(f)||"AUDIT"===this.getProviderEnforcementState(f)}}function Vn(I,f){return $n.apply(this,arguments)}function $n(){return($n=(0,$.A)(function*(I,f){return un(I,"GET","/v2/recaptchaConfig",xn(I,f))})).apply(this,arguments)}function on(){return(on=(0,$.A)(function*(I,f){return un(I,"POST","/v1/accounts:delete",f)})).apply(this,arguments)}function Vr(I,f){return rr.apply(this,arguments)}function rr(){return(rr=(0,$.A)(function*(I,f){return un(I,"POST","/v1/accounts:lookup",f)})).apply(this,arguments)}function Mr(I){if(I)try{const f=new Date(Number(I));if(!isNaN(f.getTime()))return f.toUTCString()}catch{}}function Tr(){return(Tr=(0,$.A)(function*(I,f=!1){const v=(0,ae.Ku)(I),S=yield v.getIdToken(f),J=Br(S);At(J&&J.exp&&J.auth_time&&J.iat,v.auth,"internal-error");const Me="object"==typeof J.firebase?J.firebase:void 0,Mt=null==Me?void 0:Me.sign_in_provider;return{claims:J,token:S,authTime:Mr(yr(J.auth_time)),issuedAtTime:Mr(yr(J.iat)),expirationTime:Mr(yr(J.exp)),signInProvider:Mt||null,signInSecondFactor:(null==Me?void 0:Me.sign_in_second_factor)||null}})).apply(this,arguments)}function yr(I){return 1e3*Number(I)}function Br(I){const[f,v,S]=I.split(".");if(void 0===f||void 0===v||void 0===S)return _e("JWT malformed, contained fewer than 3 sections"),null;try{const J=(0,ae.u)(v);return J?JSON.parse(J):(_e("Failed to decode base64 JWT payload"),null)}catch(J){return _e("Caught error parsing JWT payload as JSON",null==J?void 0:J.toString()),null}}function ar(I){const f=Br(I);return At(f,"internal-error"),At(typeof f.exp<"u","internal-error"),At(typeof f.iat<"u","internal-error"),Number(f.exp)-Number(f.iat)}function Lr(I,f){return li.apply(this,arguments)}function li(){return(li=(0,$.A)(function*(I,f,v=!1){if(v)return f;try{return yield f}catch(S){throw S instanceof ae.g&&function Di({code:I}){return"auth/user-disabled"===I||"auth/user-token-expired"===I}(S)&&I.auth.currentUser===I&&(yield I.auth.signOut()),S}})).apply(this,arguments)}class Zr{constructor(f){this.user=f,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,null!==this.timerId&&clearTimeout(this.timerId))}getInterval(f){var v;if(f){const S=this.errorBackoff;return this.errorBackoff=Math.min(2*this.errorBackoff,96e4),S}{this.errorBackoff=3e4;const J=(null!==(v=this.user.stsTokenManager.expirationTime)&&void 0!==v?v:0)-Date.now()-3e5;return Math.max(0,J)}}schedule(f=!1){var v=this;if(!this.isRunning)return;const S=this.getInterval(f);this.timerId=setTimeout((0,$.A)(function*(){yield v.iteration()}),S)}iteration(){var f=this;return(0,$.A)(function*(){try{yield f.user.getIdToken(!0)}catch(v){return void("auth/network-request-failed"===(null==v?void 0:v.code)&&f.schedule(!0))}f.schedule()})()}}class ve{constructor(f,v){this.createdAt=f,this.lastLoginAt=v,this._initializeTime()}_initializeTime(){this.lastSignInTime=Mr(this.lastLoginAt),this.creationTime=Mr(this.createdAt)}_copy(f){this.createdAt=f.createdAt,this.lastLoginAt=f.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}function rt(I){return Nt.apply(this,arguments)}function Nt(){return(Nt=(0,$.A)(function*(I){var f;const v=I.auth,S=yield I.getIdToken(),J=yield Lr(I,Vr(v,{idToken:S}));At(null==J?void 0:J.users.length,v,"internal-error");const Me=J.users[0];I._notifyReloadListener(Me);const Mt=null!==(f=Me.providerUserInfo)&&void 0!==f&&f.length?Ge(Me.providerUserInfo):[],Jt=function Ie(I,f){return[...I.filter(S=>!f.some(J=>J.providerId===S.providerId)),...f]}(I.providerData,Mt),xr=!!I.isAnonymous&&!(I.email&&Me.passwordHash||null!=Jt&&Jt.length),Ci={uid:Me.localId,displayName:Me.displayName||null,photoURL:Me.photoUrl||null,email:Me.email||null,emailVerified:Me.emailVerified||!1,phoneNumber:Me.phoneNumber||null,tenantId:Me.tenantId||null,providerData:Jt,metadata:new ve(Me.createdAt,Me.lastLoginAt),isAnonymous:xr};Object.assign(I,Ci)})).apply(this,arguments)}function de(){return(de=(0,$.A)(function*(I){const f=(0,ae.Ku)(I);yield rt(f),yield f.auth._persistUserIfCurrent(f),f.auth._notifyListenersIfCurrent(f)})).apply(this,arguments)}function Ge(I){return I.map(f=>{var{providerId:v}=f,S=(0,tt.Tt)(f,["providerId"]);return{providerId:v,uid:S.rawId||"",displayName:S.displayName||null,email:S.email||null,phoneNumber:S.phoneNumber||null,photoURL:S.photoUrl||null}})}function le(){return(le=(0,$.A)(function*(I,f){const v=yield Sn(I,{},(0,$.A)(function*(){const S=(0,ae.Am)({grant_type:"refresh_token",refresh_token:f}).slice(1),{tokenApiHost:J,apiKey:Me}=I.config,Mt=gr(I,J,"/v1/token",`key=${Me}`),Jt=yield I._getAdditionalHeaders();return Jt["Content-Type"]="application/x-www-form-urlencoded",Ve.fetch()(Mt,{method:"POST",headers:Jt,body:S})}));return{accessToken:v.access_token,expiresIn:v.expires_in,refreshToken:v.refresh_token}})).apply(this,arguments)}function ft(){return(ft=(0,$.A)(function*(I,f){return un(I,"POST","/v2/accounts:revokeToken",xn(I,f))})).apply(this,arguments)}class Qt{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(f){At(f.idToken,"internal-error"),At(typeof f.idToken<"u","internal-error"),At(typeof f.refreshToken<"u","internal-error");const v="expiresIn"in f&&typeof f.expiresIn<"u"?Number(f.expiresIn):ar(f.idToken);this.updateTokensAndExpiration(f.idToken,f.refreshToken,v)}updateFromIdToken(f){At(0!==f.length,"internal-error");const v=ar(f);this.updateTokensAndExpiration(f,null,v)}getToken(f,v=!1){var S=this;return(0,$.A)(function*(){return v||!S.accessToken||S.isExpired?(At(S.refreshToken,f,"user-token-expired"),S.refreshToken?(yield S.refresh(f,S.refreshToken),S.accessToken):null):S.accessToken})()}clearRefreshToken(){this.refreshToken=null}refresh(f,v){var S=this;return(0,$.A)(function*(){const{accessToken:J,refreshToken:Me,expiresIn:Mt}=yield function $t(I,f){return le.apply(this,arguments)}(f,v);S.updateTokensAndExpiration(J,Me,Number(Mt))})()}updateTokensAndExpiration(f,v,S){this.refreshToken=v||null,this.accessToken=f||null,this.expirationTime=Date.now()+1e3*S}static fromJSON(f,v){const{refreshToken:S,accessToken:J,expirationTime:Me}=v,Mt=new Qt;return S&&(At("string"==typeof S,"internal-error",{appName:f}),Mt.refreshToken=S),J&&(At("string"==typeof J,"internal-error",{appName:f}),Mt.accessToken=J),Me&&(At("number"==typeof Me,"internal-error",{appName:f}),Mt.expirationTime=Me),Mt}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(f){this.accessToken=f.accessToken,this.refreshToken=f.refreshToken,this.expirationTime=f.expirationTime}_clone(){return Object.assign(new Qt,this.toJSON())}_performRefresh(){return st("not implemented")}}function sn(I,f){At("string"==typeof I||typeof I>"u","internal-error",{appName:f})}class Tn{constructor(f){var{uid:v,auth:S,stsTokenManager:J}=f,Me=(0,tt.Tt)(f,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new Zr(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=v,this.auth=S,this.stsTokenManager=J,this.accessToken=J.accessToken,this.displayName=Me.displayName||null,this.email=Me.email||null,this.emailVerified=Me.emailVerified||!1,this.phoneNumber=Me.phoneNumber||null,this.photoURL=Me.photoURL||null,this.isAnonymous=Me.isAnonymous||!1,this.tenantId=Me.tenantId||null,this.providerData=Me.providerData?[...Me.providerData]:[],this.metadata=new ve(Me.createdAt||void 0,Me.lastLoginAt||void 0)}getIdToken(f){var v=this;return(0,$.A)(function*(){const S=yield Lr(v,v.stsTokenManager.getToken(v.auth,f));return At(S,v.auth,"internal-error"),v.accessToken!==S&&(v.accessToken=S,yield v.auth._persistUserIfCurrent(v),v.auth._notifyListenersIfCurrent(v)),S})()}getIdTokenResult(f){return function ii(I){return Tr.apply(this,arguments)}(this,f)}reload(){return function pt(I){return de.apply(this,arguments)}(this)}_assign(f){this!==f&&(At(this.uid===f.uid,this.auth,"internal-error"),this.displayName=f.displayName,this.photoURL=f.photoURL,this.email=f.email,this.emailVerified=f.emailVerified,this.phoneNumber=f.phoneNumber,this.isAnonymous=f.isAnonymous,this.tenantId=f.tenantId,this.providerData=f.providerData.map(v=>Object.assign({},v)),this.metadata._copy(f.metadata),this.stsTokenManager._assign(f.stsTokenManager))}_clone(f){const v=new Tn(Object.assign(Object.assign({},this),{auth:f,stsTokenManager:this.stsTokenManager._clone()}));return v.metadata._copy(this.metadata),v}_onReload(f){At(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=f,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(f){this.reloadListener?this.reloadListener(f):this.reloadUserInfo=f}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}_updateTokensIfNecessary(f,v=!1){var S=this;return(0,$.A)(function*(){let J=!1;f.idToken&&f.idToken!==S.stsTokenManager.accessToken&&(S.stsTokenManager.updateFromServerResponse(f),J=!0),v&&(yield rt(S)),yield S.auth._persistUserIfCurrent(S),J&&S.auth._notifyListenersIfCurrent(S)})()}delete(){var f=this;return(0,$.A)(function*(){if((0,he.xZ)(f.auth.app))return Promise.reject(Ct(f.auth));const v=yield f.getIdToken();return yield Lr(f,function In(I,f){return on.apply(this,arguments)}(f.auth,{idToken:v})),f.stsTokenManager.clearRefreshToken(),f.auth.signOut()})()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(f=>Object.assign({},f)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(f,v){var S,J,Me,Mt,Jt,Mn,Jn,xr;const Ci=null!==(S=v.displayName)&&void 0!==S?S:void 0,Yo=null!==(J=v.email)&&void 0!==J?J:void 0,go=null!==(Me=v.phoneNumber)&&void 0!==Me?Me:void 0,ma=null!==(Mt=v.photoURL)&&void 0!==Mt?Mt:void 0,Xd=null!==(Jt=v.tenantId)&&void 0!==Jt?Jt:void 0,su=null!==(Mn=v._redirectEventId)&&void 0!==Mn?Mn:void 0,qd=null!==(Jn=v.createdAt)&&void 0!==Jn?Jn:void 0,ec=null!==(xr=v.lastLoginAt)&&void 0!==xr?xr:void 0,{uid:tc,emailVerified:nc,isAnonymous:Tf,providerData:au,stsTokenManager:Df}=v;At(tc&&Df,f,"internal-error");const Qd=Qt.fromJSON(this.name,Df);At("string"==typeof tc,f,"internal-error"),sn(Ci,f.name),sn(Yo,f.name),At("boolean"==typeof nc,f,"internal-error"),At("boolean"==typeof Tf,f,"internal-error"),sn(go,f.name),sn(ma,f.name),sn(Xd,f.name),sn(su,f.name),sn(qd,f.name),sn(ec,f.name);const Yd=new Tn({uid:tc,auth:f,email:Yo,emailVerified:nc,displayName:Ci,isAnonymous:Tf,photoURL:ma,phoneNumber:go,tenantId:Xd,stsTokenManager:Qd,createdAt:qd,lastLoginAt:ec});return au&&Array.isArray(au)&&(Yd.providerData=au.map(Jd=>Object.assign({},Jd))),su&&(Yd._redirectEventId=su),Yd}static _fromIdTokenResponse(f,v,S=!1){return(0,$.A)(function*(){const J=new Qt;J.updateFromServerResponse(v);const Me=new Tn({uid:v.localId,auth:f,stsTokenManager:J,isAnonymous:S});return yield rt(Me),Me})()}static _fromGetAccountInfoResponse(f,v,S){return(0,$.A)(function*(){const J=v.users[0];At(void 0!==J.localId,"internal-error");const Me=void 0!==J.providerUserInfo?Ge(J.providerUserInfo):[],Mt=!(J.email&&J.passwordHash||null!=Me&&Me.length),Jt=new Qt;Jt.updateFromIdToken(S);const Mn=new Tn({uid:J.localId,auth:f,stsTokenManager:Jt,isAnonymous:Mt}),Jn={uid:J.localId,displayName:J.displayName||null,photoURL:J.photoUrl||null,email:J.email||null,emailVerified:J.emailVerified||!1,phoneNumber:J.phoneNumber||null,tenantId:J.tenantId||null,providerData:Me,metadata:new ve(J.createdAt,J.lastLoginAt),isAnonymous:!(J.email&&J.passwordHash||null!=Me&&Me.length)};return Object.assign(Mn,Jn),Mn})()}}const Xn=new Map;function dn(I){cn(I instanceof Function,"Expected a class definition");let f=Xn.get(I);return f?(cn(f instanceof I,"Instance stored in cache mismatched with class"),f):(f=new I,Xn.set(I,f),f)}const hr=(()=>{class I{constructor(){this.type="NONE",this.storage={}}_isAvailable(){return(0,$.A)(function*(){return!0})()}_set(v,S){var J=this;return(0,$.A)(function*(){J.storage[v]=S})()}_get(v){var S=this;return(0,$.A)(function*(){const J=S.storage[v];return void 0===J?null:J})()}_remove(v){var S=this;return(0,$.A)(function*(){delete S.storage[v]})()}_addListener(v,S){}_removeListener(v,S){}}return I.type="NONE",I})();function wr(I,f,v){return`firebase:${I}:${f}:${v}`}class fr{constructor(f,v,S){this.persistence=f,this.auth=v,this.userKey=S;const{config:J,name:Me}=this.auth;this.fullUserKey=wr(this.userKey,J.apiKey,Me),this.fullPersistenceKey=wr("persistence",J.apiKey,Me),this.boundEventHandler=v._onStorageEvent.bind(v),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(f){return this.persistence._set(this.fullUserKey,f.toJSON())}getCurrentUser(){var f=this;return(0,$.A)(function*(){const v=yield f.persistence._get(f.fullUserKey);return v?Tn._fromJSON(f.auth,v):null})()}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}setPersistence(f){var v=this;return(0,$.A)(function*(){if(v.persistence===f)return;const S=yield v.getCurrentUser();return yield v.removeCurrentUser(),v.persistence=f,S?v.setCurrentUser(S):void 0})()}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static create(f,v,S="authUser"){return(0,$.A)(function*(){if(!v.length)return new fr(dn(hr),f,S);const J=(yield Promise.all(v.map(function(){var Jn=(0,$.A)(function*(xr){if(yield xr._isAvailable())return xr});return function(xr){return Jn.apply(this,arguments)}}()))).filter(Jn=>Jn);let Me=J[0]||dn(hr);const Mt=wr(S,f.config.apiKey,f.name);let Jt=null;for(const Jn of v)try{const xr=yield Jn._get(Mt);if(xr){const Ci=Tn._fromJSON(f,xr);Jn!==Me&&(Jt=Ci),Me=Jn;break}}catch{}const Mn=J.filter(Jn=>Jn._shouldAllowMigration);return Me._shouldAllowMigration&&Mn.length?(Me=Mn[0],Jt&&(yield Me._set(Mt,Jt.toJSON())),yield Promise.all(v.map(function(){var Jn=(0,$.A)(function*(xr){if(xr!==Me)try{yield xr._remove(Mt)}catch{}});return function(xr){return Jn.apply(this,arguments)}}())),new fr(Me,f,S)):new fr(Me,f,S)})()}}function Ur(I){const f=I.toLowerCase();if(f.includes("opera/")||f.includes("opr/")||f.includes("opios/"))return"Opera";if(vi(f))return"IEMobile";if(f.includes("msie")||f.includes("trident/"))return"IE";if(f.includes("edge/"))return"Edge";if(oi(f))return"Firefox";if(f.includes("silk/"))return"Silk";if(Gt(f))return"Blackberry";if(ie(f))return"Webos";if(Ir(f))return"Safari";if((f.includes("chrome/")||xi(f))&&!f.includes("edge/"))return"Chrome";if(Ar(f))return"Android";{const S=I.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(2===(null==S?void 0:S.length))return S[1]}return"Other"}function oi(I=(0,ae.ZQ)()){return/firefox\//i.test(I)}function Ir(I=(0,ae.ZQ)()){const f=I.toLowerCase();return f.includes("safari/")&&!f.includes("chrome/")&&!f.includes("crios/")&&!f.includes("android")}function xi(I=(0,ae.ZQ)()){return/crios\//i.test(I)}function vi(I=(0,ae.ZQ)()){return/iemobile/i.test(I)}function Ar(I=(0,ae.ZQ)()){return/android/i.test(I)}function Gt(I=(0,ae.ZQ)()){return/blackberry/i.test(I)}function ie(I=(0,ae.ZQ)()){return/webos/i.test(I)}function te(I=(0,ae.ZQ)()){return/iphone|ipad|ipod/i.test(I)||/macintosh/i.test(I)&&/mobile/i.test(I)}function re(I=(0,ae.ZQ)()){return te(I)||Ar(I)||ie(I)||Gt(I)||/windows phone/i.test(I)||vi(I)}function We(I,f=[]){let v;switch(I){case"Browser":v=Ur((0,ae.ZQ)());break;case"Worker":v=`${Ur((0,ae.ZQ)())}-${I}`;break;default:v=I}const S=f.length?f.join(","):"FirebaseCore-web";return`${v}/JsCore/${he.MF}/${S}`}class St{constructor(f){this.auth=f,this.queue=[]}pushCallback(f,v){const S=Me=>new Promise((Mt,Jt)=>{try{Mt(f(Me))}catch(Mn){Jt(Mn)}});S.onAbort=v,this.queue.push(S);const J=this.queue.length-1;return()=>{this.queue[J]=()=>Promise.resolve()}}runMiddleware(f){var v=this;return(0,$.A)(function*(){if(v.auth.currentUser===f)return;const S=[];try{for(const J of v.queue)yield J(f),J.onAbort&&S.push(J.onAbort)}catch(J){S.reverse();for(const Me of S)try{Me()}catch{}throw v.auth._errorFactory.create("login-blocked",{originalMessage:null==J?void 0:J.message})}})()}}function rn(){return(rn=(0,$.A)(function*(I,f={}){return un(I,"GET","/v2/passwordPolicy",xn(I,f))})).apply(this,arguments)}class qn{constructor(f){var v,S,J,Me;const Mt=f.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=null!==(v=Mt.minPasswordLength)&&void 0!==v?v:6,Mt.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=Mt.maxPasswordLength),void 0!==Mt.containsLowercaseCharacter&&(this.customStrengthOptions.containsLowercaseLetter=Mt.containsLowercaseCharacter),void 0!==Mt.containsUppercaseCharacter&&(this.customStrengthOptions.containsUppercaseLetter=Mt.containsUppercaseCharacter),void 0!==Mt.containsNumericCharacter&&(this.customStrengthOptions.containsNumericCharacter=Mt.containsNumericCharacter),void 0!==Mt.containsNonAlphanumericCharacter&&(this.customStrengthOptions.containsNonAlphanumericCharacter=Mt.containsNonAlphanumericCharacter),this.enforcementState=f.enforcementState,"ENFORCEMENT_STATE_UNSPECIFIED"===this.enforcementState&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=null!==(J=null===(S=f.allowedNonAlphanumericCharacters)||void 0===S?void 0:S.join(""))&&void 0!==J?J:"",this.forceUpgradeOnSignin=null!==(Me=f.forceUpgradeOnSignin)&&void 0!==Me&&Me,this.schemaVersion=f.schemaVersion}validatePassword(f){var v,S,J,Me,Mt,Jt;const Mn={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(f,Mn),this.validatePasswordCharacterOptions(f,Mn),Mn.isValid&&(Mn.isValid=null===(v=Mn.meetsMinPasswordLength)||void 0===v||v),Mn.isValid&&(Mn.isValid=null===(S=Mn.meetsMaxPasswordLength)||void 0===S||S),Mn.isValid&&(Mn.isValid=null===(J=Mn.containsLowercaseLetter)||void 0===J||J),Mn.isValid&&(Mn.isValid=null===(Me=Mn.containsUppercaseLetter)||void 0===Me||Me),Mn.isValid&&(Mn.isValid=null===(Mt=Mn.containsNumericCharacter)||void 0===Mt||Mt),Mn.isValid&&(Mn.isValid=null===(Jt=Mn.containsNonAlphanumericCharacter)||void 0===Jt||Jt),Mn}validatePasswordLengthOptions(f,v){const S=this.customStrengthOptions.minPasswordLength,J=this.customStrengthOptions.maxPasswordLength;S&&(v.meetsMinPasswordLength=f.length>=S),J&&(v.meetsMaxPasswordLength=f.length<=J)}validatePasswordCharacterOptions(f,v){let S;this.updatePasswordCharacterOptionsStatuses(v,!1,!1,!1,!1);for(let J=0;J="a"&&S<="z",S>="A"&&S<="Z",S>="0"&&S<="9",this.allowedNonAlphanumericCharacters.includes(S))}updatePasswordCharacterOptionsStatuses(f,v,S,J,Me){this.customStrengthOptions.containsLowercaseLetter&&(f.containsLowercaseLetter||(f.containsLowercaseLetter=v)),this.customStrengthOptions.containsUppercaseLetter&&(f.containsUppercaseLetter||(f.containsUppercaseLetter=S)),this.customStrengthOptions.containsNumericCharacter&&(f.containsNumericCharacter||(f.containsNumericCharacter=J)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(f.containsNonAlphanumericCharacter||(f.containsNonAlphanumericCharacter=Me))}}class Sr{constructor(f,v,S,J){this.app=f,this.heartbeatServiceProvider=v,this.appCheckServiceProvider=S,this.config=J,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new zr(this),this.idTokenSubscription=new zr(this),this.beforeStateQueue=new St(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Tt,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=f.name,this.clientVersion=J.sdkClientVersion}_initializeWithPersistence(f,v){var S=this;return v&&(this._popupRedirectResolver=dn(v)),this._initializationPromise=this.queue((0,$.A)(function*(){var J,Me;if(!S._deleted&&(S.persistenceManager=yield fr.create(S,f),!S._deleted)){if(null!==(J=S._popupRedirectResolver)&&void 0!==J&&J._shouldInitProactively)try{yield S._popupRedirectResolver._initialize(S)}catch{}yield S.initializeCurrentUser(v),S.lastNotifiedUid=(null===(Me=S.currentUser)||void 0===Me?void 0:Me.uid)||null,!S._deleted&&(S._isInitialized=!0)}})),this._initializationPromise}_onStorageEvent(){var f=this;return(0,$.A)(function*(){if(f._deleted)return;const v=yield f.assertedPersistence.getCurrentUser();if(f.currentUser||v){if(f.currentUser&&v&&f.currentUser.uid===v.uid)return f._currentUser._assign(v),void(yield f.currentUser.getIdToken());yield f._updateCurrentUser(v,!0)}})()}initializeCurrentUserFromIdToken(f){var v=this;return(0,$.A)(function*(){try{const S=yield Vr(v,{idToken:f}),J=yield Tn._fromGetAccountInfoResponse(v,S,f);yield v.directlySetCurrentUser(J)}catch(S){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",S),yield v.directlySetCurrentUser(null)}})()}initializeCurrentUser(f){var v=this;return(0,$.A)(function*(){var S;if((0,he.xZ)(v.app)){const Jt=v.app.settings.authIdToken;return Jt?new Promise(Mn=>{setTimeout(()=>v.initializeCurrentUserFromIdToken(Jt).then(Mn,Mn))}):v.directlySetCurrentUser(null)}const J=yield v.assertedPersistence.getCurrentUser();let Me=J,Mt=!1;if(f&&v.config.authDomain){yield v.getOrInitRedirectPersistenceManager();const Jt=null===(S=v.redirectUser)||void 0===S?void 0:S._redirectEventId,Mn=null==Me?void 0:Me._redirectEventId,Jn=yield v.tryRedirectSignIn(f);(!Jt||Jt===Mn)&&null!=Jn&&Jn.user&&(Me=Jn.user,Mt=!0)}if(!Me)return v.directlySetCurrentUser(null);if(!Me._redirectEventId){if(Mt)try{yield v.beforeStateQueue.runMiddleware(Me)}catch(Jt){Me=J,v._popupRedirectResolver._overrideRedirectResult(v,()=>Promise.reject(Jt))}return Me?v.reloadAndSetCurrentUserOrClear(Me):v.directlySetCurrentUser(null)}return At(v._popupRedirectResolver,v,"argument-error"),yield v.getOrInitRedirectPersistenceManager(),v.redirectUser&&v.redirectUser._redirectEventId===Me._redirectEventId?v.directlySetCurrentUser(Me):v.reloadAndSetCurrentUserOrClear(Me)})()}tryRedirectSignIn(f){var v=this;return(0,$.A)(function*(){let S=null;try{S=yield v._popupRedirectResolver._completeRedirectFn(v,f,!0)}catch{yield v._setRedirectUser(null)}return S})()}reloadAndSetCurrentUserOrClear(f){var v=this;return(0,$.A)(function*(){try{yield rt(f)}catch(S){if("auth/network-request-failed"!==(null==S?void 0:S.code))return v.directlySetCurrentUser(null)}return v.directlySetCurrentUser(f)})()}useDeviceLanguage(){this.languageCode=function ce(){if(typeof navigator>"u")return null;const I=navigator;return I.languages&&I.languages[0]||I.language||null}()}_delete(){var f=this;return(0,$.A)(function*(){f._deleted=!0})()}updateCurrentUser(f){var v=this;return(0,$.A)(function*(){if((0,he.xZ)(v.app))return Promise.reject(Ct(v));const S=f?(0,ae.Ku)(f):null;return S&&At(S.auth.config.apiKey===v.config.apiKey,v,"invalid-user-token"),v._updateCurrentUser(S&&S._clone(v))})()}_updateCurrentUser(f,v=!1){var S=this;return(0,$.A)(function*(){if(!S._deleted)return f&&At(S.tenantId===f.tenantId,S,"tenant-id-mismatch"),v||(yield S.beforeStateQueue.runMiddleware(f)),S.queue((0,$.A)(function*(){yield S.directlySetCurrentUser(f),S.notifyAuthListeners()}))})()}signOut(){var f=this;return(0,$.A)(function*(){return(0,he.xZ)(f.app)?Promise.reject(Ct(f)):(yield f.beforeStateQueue.runMiddleware(null),(f.redirectPersistenceManager||f._popupRedirectResolver)&&(yield f._setRedirectUser(null)),f._updateCurrentUser(null,!0))})()}setPersistence(f){var v=this;return(0,he.xZ)(this.app)?Promise.reject(Ct(this)):this.queue((0,$.A)(function*(){yield v.assertedPersistence.setPersistence(dn(f))}))}_getRecaptchaConfig(){return null==this.tenantId?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}validatePassword(f){var v=this;return(0,$.A)(function*(){v._getPasswordPolicyInternal()||(yield v._updatePasswordPolicy());const S=v._getPasswordPolicyInternal();return S.schemaVersion!==v.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(v._errorFactory.create("unsupported-password-policy-schema-version",{})):S.validatePassword(f)})()}_getPasswordPolicyInternal(){return null===this.tenantId?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}_updatePasswordPolicy(){var f=this;return(0,$.A)(function*(){const v=yield function nn(I){return rn.apply(this,arguments)}(f),S=new qn(v);null===f.tenantId?f._projectPasswordPolicy=S:f._tenantPasswordPolicies[f.tenantId]=S})()}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(f){this._errorFactory=new ae.FA("auth","Firebase",f())}onAuthStateChanged(f,v,S){return this.registerStateListener(this.authStateSubscription,f,v,S)}beforeAuthStateChanged(f,v){return this.beforeStateQueue.pushCallback(f,v)}onIdTokenChanged(f,v,S){return this.registerStateListener(this.idTokenSubscription,f,v,S)}authStateReady(){return new Promise((f,v)=>{if(this.currentUser)f();else{const S=this.onAuthStateChanged(()=>{S(),f()},v)}})}revokeAccessToken(f){var v=this;return(0,$.A)(function*(){if(v.currentUser){const S=yield v.currentUser.getIdToken(),J={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:f,idToken:S};null!=v.tenantId&&(J.tenantId=v.tenantId),yield function gt(I,f){return ft.apply(this,arguments)}(v,J)}})()}toJSON(){var f;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:null===(f=this._currentUser)||void 0===f?void 0:f.toJSON()}}_setRedirectUser(f,v){var S=this;return(0,$.A)(function*(){const J=yield S.getOrInitRedirectPersistenceManager(v);return null===f?J.removeCurrentUser():J.setCurrentUser(f)})()}getOrInitRedirectPersistenceManager(f){var v=this;return(0,$.A)(function*(){if(!v.redirectPersistenceManager){const S=f&&dn(f)||v._popupRedirectResolver;At(S,v,"argument-error"),v.redirectPersistenceManager=yield fr.create(v,[dn(S._redirectPersistence)],"redirectUser"),v.redirectUser=yield v.redirectPersistenceManager.getCurrentUser()}return v.redirectPersistenceManager})()}_redirectUserForId(f){var v=this;return(0,$.A)(function*(){var S,J;return v._isInitialized&&(yield v.queue((0,$.A)(function*(){}))),(null===(S=v._currentUser)||void 0===S?void 0:S._redirectEventId)===f?v._currentUser:(null===(J=v.redirectUser)||void 0===J?void 0:J._redirectEventId)===f?v.redirectUser:null})()}_persistUserIfCurrent(f){var v=this;return(0,$.A)(function*(){if(f===v.currentUser)return v.queue((0,$.A)(function*(){return v.directlySetCurrentUser(f)}))})()}_notifyListenersIfCurrent(f){f===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var f,v;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const S=null!==(v=null===(f=this.currentUser)||void 0===f?void 0:f.uid)&&void 0!==v?v:null;this.lastNotifiedUid!==S&&(this.lastNotifiedUid=S,this.authStateSubscription.next(this.currentUser))}registerStateListener(f,v,S,J){if(this._deleted)return()=>{};const Me="function"==typeof v?v:v.next.bind(v);let Mt=!1;const Jt=this._isInitialized?Promise.resolve():this._initializationPromise;if(At(Jt,this,"internal-error"),Jt.then(()=>{Mt||Me(this.currentUser)}),"function"==typeof v){const Mn=f.addObserver(v,S,J);return()=>{Mt=!0,Mn()}}{const Mn=f.addObserver(v);return()=>{Mt=!0,Mn()}}}directlySetCurrentUser(f){var v=this;return(0,$.A)(function*(){v.currentUser&&v.currentUser!==f&&v._currentUser._stopProactiveRefresh(),f&&v.isProactiveRefreshEnabled&&f._startProactiveRefresh(),v.currentUser=f,f?yield v.assertedPersistence.setCurrentUser(f):yield v.assertedPersistence.removeCurrentUser()})()}queue(f){return this.operations=this.operations.then(f,f),this.operations}get assertedPersistence(){return At(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(f){!f||this.frameworks.includes(f)||(this.frameworks.push(f),this.frameworks.sort(),this.clientVersion=We(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}_getAdditionalHeaders(){var f=this;return(0,$.A)(function*(){var v;const S={"X-Client-Version":f.clientVersion};f.app.options.appId&&(S["X-Firebase-gmpid"]=f.app.options.appId);const J=yield null===(v=f.heartbeatServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getHeartbeatsHeader();J&&(S["X-Firebase-Client"]=J);const Me=yield f._getAppCheckToken();return Me&&(S["X-Firebase-AppCheck"]=Me),S})()}_getAppCheckToken(){var f=this;return(0,$.A)(function*(){var v;const S=yield null===(v=f.appCheckServiceProvider.getImmediate({optional:!0}))||void 0===v?void 0:v.getToken();return null!=S&&S.error&&function Ze(I,...f){Te.logLevel<=Xe.$b.WARN&&Te.warn(`Auth (${he.MF}): ${I}`,...f)}(`Error while retrieving App Check token: ${S.error}`),null==S?void 0:S.token})()}}function jn(I){return(0,ae.Ku)(I)}class zr{constructor(f){this.auth=f,this.observer=null,this.addObserver=(0,ae.tD)(v=>this.observer=v)}get next(){return At(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}let $r={loadJS:()=>(0,$.A)(function*(){throw new Error("Unable to load external scripts")})(),recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function Nr(I){return $r.loadJS(I)}function hi(I){return`__${I}${Math.floor(1e6*Math.random())}`}class _i{constructor(f){this.type="recaptcha-enterprise",this.auth=jn(f)}verify(f="verify",v=!1){var S=this;return(0,$.A)(function*(){function Me(){return Me=(0,$.A)(function*(Jt){if(!v){if(null==Jt.tenantId&&null!=Jt._agentRecaptchaConfig)return Jt._agentRecaptchaConfig.siteKey;if(null!=Jt.tenantId&&void 0!==Jt._tenantRecaptchaConfigs[Jt.tenantId])return Jt._tenantRecaptchaConfigs[Jt.tenantId].siteKey}return new Promise(function(){var Mn=(0,$.A)(function*(Jn,xr){Vn(Jt,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(Ci=>{if(void 0!==Ci.recaptchaKey){const Yo=new yn(Ci);return null==Jt.tenantId?Jt._agentRecaptchaConfig=Yo:Jt._tenantRecaptchaConfigs[Jt.tenantId]=Yo,Jn(Yo.siteKey)}xr(new Error("recaptcha Enterprise site key undefined"))}).catch(Ci=>{xr(Ci)})});return function(Jn,xr){return Mn.apply(this,arguments)}}())}),Me.apply(this,arguments)}function Mt(Jt,Mn,Jn){const xr=window.grecaptcha;Xt(xr)?xr.enterprise.ready(()=>{xr.enterprise.execute(Jt,{action:f}).then(Ci=>{Mn(Ci)}).catch(()=>{Mn("NO_RECAPTCHA")})}):Jn(Error("No reCAPTCHA enterprise script loaded."))}return new Promise((Jt,Mn)=>{(function J(Jt){return Me.apply(this,arguments)})(S.auth).then(Jn=>{if(!v&&Xt(window.grecaptcha))Mt(Jn,Jt,Mn);else{if(typeof window>"u")return void Mn(new Error("RecaptchaVerifier is only supported in browser"));let xr=function Rr(){return $r.recaptchaEnterpriseScript}();0!==xr.length&&(xr+=Jn),Nr(xr).then(()=>{Mt(Jn,Jt,Mn)}).catch(Ci=>{Mn(Ci)})}}).catch(Jn=>{Mn(Jn)})})})()}}function tr(I,f,v){return Zn.apply(this,arguments)}function Zn(){return(Zn=(0,$.A)(function*(I,f,v,S=!1){const J=new _i(I);let Me;try{Me=yield J.verify(v)}catch{Me=yield J.verify(v,!0)}const Mt=Object.assign({},f);return Object.assign(Mt,S?{captchaResp:Me}:{captchaResponse:Me}),Object.assign(Mt,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(Mt,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),Mt})).apply(this,arguments)}function mo(I,f,v,S){return fi.apply(this,arguments)}function fi(){return fi=(0,$.A)(function*(I,f,v,S){var J;if(null!==(J=I._getRecaptchaConfig())&&void 0!==J&&J.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const Me=yield tr(I,f,v,"getOobCode"===v);return S(I,Me)}return S(I,f).catch(function(){var Me=(0,$.A)(function*(Mt){if("auth/missing-recaptcha-token"===Mt.code){console.log(`${v} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const Jt=yield tr(I,f,v,"getOobCode"===v);return S(I,Jt)}return Promise.reject(Mt)});return function(Mt){return Me.apply(this,arguments)}}())}),fi.apply(this,arguments)}function ge(I){const f=I.indexOf(":");return f<0?"":I.substr(0,f+1)}function K(I){if(!I)return null;const f=Number(I);return isNaN(f)?null:f}class Be{constructor(f,v){this.providerId=f,this.signInMethod=v}toJSON(){return st("not implemented")}_getIdTokenResponse(f){return st("not implemented")}_linkToIdToken(f,v){return st("not implemented")}_getReauthenticationResolver(f){return st("not implemented")}}function w(I,f){return H.apply(this,arguments)}function H(){return(H=(0,$.A)(function*(I,f){return un(I,"POST","/v1/accounts:signUp",f)})).apply(this,arguments)}function Ce(I,f){return dt.apply(this,arguments)}function dt(){return(dt=(0,$.A)(function*(I,f){return On(I,"POST","/v1/accounts:signInWithPassword",xn(I,f))})).apply(this,arguments)}function bn(){return(bn=(0,$.A)(function*(I,f){return On(I,"POST","/v1/accounts:signInWithEmailLink",xn(I,f))})).apply(this,arguments)}function Yn(){return(Yn=(0,$.A)(function*(I,f){return On(I,"POST","/v1/accounts:signInWithEmailLink",xn(I,f))})).apply(this,arguments)}class _r extends Be{constructor(f,v,S,J=null){super("password",S),this._email=f,this._password=v,this._tenantId=J}static _fromEmailAndPassword(f,v){return new _r(f,v,"password")}static _fromEmailAndCode(f,v,S=null){return new _r(f,v,"emailLink",S)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(f){const v="string"==typeof f?JSON.parse(f):f;if(null!=v&&v.email&&null!=v&&v.password){if("password"===v.signInMethod)return this._fromEmailAndPassword(v.email,v.password);if("emailLink"===v.signInMethod)return this._fromEmailAndCode(v.email,v.password,v.tenantId)}return null}_getIdTokenResponse(f){var v=this;return(0,$.A)(function*(){switch(v.signInMethod){case"password":return mo(f,{returnSecureToken:!0,email:v._email,password:v._password,clientType:"CLIENT_TYPE_WEB"},"signInWithPassword",Ce);case"emailLink":return function vn(I,f){return bn.apply(this,arguments)}(f,{email:v._email,oobCode:v._password});default:$e(f,"internal-error")}})()}_linkToIdToken(f,v){var S=this;return(0,$.A)(function*(){switch(S.signInMethod){case"password":return mo(f,{idToken:v,returnSecureToken:!0,email:S._email,password:S._password,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",w);case"emailLink":return function Gn(I,f){return Yn.apply(this,arguments)}(f,{idToken:v,email:S._email,oobCode:S._password});default:$e(f,"internal-error")}})()}_getReauthenticationResolver(f){return this._getIdTokenResponse(f)}}function Kn(I,f){return Qr.apply(this,arguments)}function Qr(){return(Qr=(0,$.A)(function*(I,f){return On(I,"POST","/v1/accounts:signInWithIdp",xn(I,f))})).apply(this,arguments)}class ho{constructor(f){var v,S,J,Me,Mt,Jt;const Mn=(0,ae.I9)((0,ae.hp)(f)),Jn=null!==(v=Mn.apiKey)&&void 0!==v?v:null,xr=null!==(S=Mn.oobCode)&&void 0!==S?S:null,Ci=function wo(I){switch(I){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}(null!==(J=Mn.mode)&&void 0!==J?J:null);At(Jn&&xr&&Ci,"argument-error"),this.apiKey=Jn,this.operation=Ci,this.code=xr,this.continueUrl=null!==(Me=Mn.continueUrl)&&void 0!==Me?Me:null,this.languageCode=null!==(Mt=Mn.languageCode)&&void 0!==Mt?Mt:null,this.tenantId=null!==(Jt=Mn.tenantId)&&void 0!==Jt?Jt:null}static parseLink(f){const v=function ws(I){const f=(0,ae.I9)((0,ae.hp)(I)).link,v=f?(0,ae.I9)((0,ae.hp)(f)).deep_link_id:null,S=(0,ae.I9)((0,ae.hp)(I)).deep_link_id;return(S?(0,ae.I9)((0,ae.hp)(S)).link:null)||S||v||f||I}(f);try{return new ho(v)}catch{return null}}}let Jr=(()=>{class I{constructor(){this.providerId=I.PROVIDER_ID}static credential(v,S){return _r._fromEmailAndPassword(v,S)}static credentialWithLink(v,S){const J=ho.parseLink(S);return At(J,"argument-error"),_r._fromEmailAndCode(v,J.code,J.tenantId)}}return I.PROVIDER_ID="password",I.EMAIL_PASSWORD_SIGN_IN_METHOD="password",I.EMAIL_LINK_SIGN_IN_METHOD="emailLink",I})();class Ao{constructor(f){this.providerId=f,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(f){this.defaultLanguageCode=f}setCustomParameters(f){return this.customParameters=f,this}getCustomParameters(){return this.customParameters}}class Js extends Ao{constructor(){super(...arguments),this.scopes=[]}addScope(f){return this.scopes.includes(f)||this.scopes.push(f),this}getScopes(){return[...this.scopes]}}function ee(I,f){return qe.apply(this,arguments)}function qe(){return(qe=(0,$.A)(function*(I,f){return On(I,"POST","/v1/accounts:signUp",xn(I,f))})).apply(this,arguments)}class lt{constructor(f){this.user=f.user,this.providerId=f.providerId,this._tokenResponse=f._tokenResponse,this.operationType=f.operationType}static _fromIdTokenResponse(f,v,S,J=!1){return(0,$.A)(function*(){const Me=yield Tn._fromIdTokenResponse(f,S,J),Mt=Vt(S);return new lt({user:Me,providerId:Mt,_tokenResponse:S,operationType:v})})()}static _forOperation(f,v,S){return(0,$.A)(function*(){yield f._updateTokensIfNecessary(S,!0);const J=Vt(S);return new lt({user:f,providerId:J,_tokenResponse:S,operationType:v})})()}}function Vt(I){return I.providerId?I.providerId:"phoneNumber"in I?"phone":null}class x extends ae.g{constructor(f,v,S,J){var Me;super(v.code,v.message),this.operationType=S,this.user=J,Object.setPrototypeOf(this,x.prototype),this.customData={appName:f.name,tenantId:null!==(Me=f.tenantId)&&void 0!==Me?Me:void 0,_serverResponse:v.customData._serverResponse,operationType:S}}static _fromErrorAndOperation(f,v,S,J){return new x(f,v,S,J)}}function se(I,f,v,S){return("reauthenticate"===f?v._getReauthenticationResolver(I):v._getIdTokenResponse(I)).catch(Me=>{throw"auth/multi-factor-auth-required"===Me.code?x._fromErrorAndOperation(I,Me,f,S):Me})}function lr(){return(lr=(0,$.A)(function*(I,f,v=!1){const S=yield Lr(I,f._linkToIdToken(I.auth,yield I.getIdToken()),v);return lt._forOperation(I,"link",S)})).apply(this,arguments)}function ao(){return(ao=(0,$.A)(function*(I,f,v=!1){const{auth:S}=I;if((0,he.xZ)(S.app))return Promise.reject(Ct(S));const J="reauthenticate";try{const Me=yield Lr(I,se(S,J,f,I),v);At(Me.idToken,S,"internal-error");const Mt=Br(Me.idToken);At(Mt,S,"internal-error");const{sub:Jt}=Mt;return At(I.uid===Jt,S,"user-mismatch"),lt._forOperation(I,J,Me)}catch(Me){throw"auth/user-not-found"===(null==Me?void 0:Me.code)&&$e(S,"user-mismatch"),Me}})).apply(this,arguments)}function No(I,f){return Ki.apply(this,arguments)}function Ki(){return(Ki=(0,$.A)(function*(I,f,v=!1){if((0,he.xZ)(I.app))return Promise.reject(Ct(I));const S="signIn",J=yield se(I,S,f),Me=yield lt._fromIdTokenResponse(I,S,J);return v||(yield I._updateCurrentUser(Me.user)),Me})).apply(this,arguments)}function qo(){return(qo=(0,$.A)(function*(I,f){return No(jn(I),f)})).apply(this,arguments)}function cl(I){return ei.apply(this,arguments)}function ei(){return(ei=(0,$.A)(function*(I){const f=jn(I);f._getPasswordPolicyInternal()&&(yield f._updatePasswordPolicy())})).apply(this,arguments)}function $s(I,f,v){return ds.apply(this,arguments)}function ds(){return(ds=(0,$.A)(function*(I,f,v){if((0,he.xZ)(I.app))return Promise.reject(Ct(I));const S=jn(I),Mt=yield mo(S,{returnSecureToken:!0,email:f,password:v,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",ee).catch(Mn=>{throw"auth/password-does-not-meet-requirements"===Mn.code&&cl(I),Mn}),Jt=yield lt._fromIdTokenResponse(S,"signIn",Mt);return yield S._updateCurrentUser(Jt.user),Jt})).apply(this,arguments)}function Ns(I,f,v){return(0,he.xZ)(I.app)?Promise.reject(Ct(I)):function Qi(I,f){return qo.apply(this,arguments)}((0,ae.Ku)(I),Jr.credential(f,v)).catch(function(){var S=(0,$.A)(function*(J){throw"auth/password-does-not-meet-requirements"===J.code&&cl(I),J});return function(J){return S.apply(this,arguments)}}())}function to(I,f,v,S){return(0,ae.Ku)(I).onIdTokenChanged(f,v,S)}const na="__sak";class yc{constructor(f,v){this.storageRetriever=f,this.type=v}_isAvailable(){try{return this.storage?(this.storage.setItem(na,"1"),this.storage.removeItem(na),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(f,v){return this.storage.setItem(f,JSON.stringify(v)),Promise.resolve()}_get(f){const v=this.storage.getItem(f);return Promise.resolve(v?JSON.parse(v):null)}_remove(f){return this.storage.removeItem(f),Promise.resolve()}get storage(){return this.storageRetriever()}}const Ta=(()=>{class I extends yc{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(v,S)=>this.onStorageEvent(v,S),this.listeners={},this.localCache={},this.pollTimer=null,this.safariLocalStorageNotSynced=function Ui(){const I=(0,ae.ZQ)();return Ir(I)||te(I)}()&&function we(){try{return!(!window||window===window.top)}catch{return!1}}(),this.fallbackToPolling=re(),this._shouldAllowMigration=!0}forAllChangedKeys(v){for(const S of Object.keys(this.listeners)){const J=this.storage.getItem(S),Me=this.localCache[S];J!==Me&&v(S,Me,J)}}onStorageEvent(v,S=!1){if(!v.key)return void this.forAllChangedKeys((Jt,Mn,Jn)=>{this.notifyListeners(Jt,Jn)});const J=v.key;if(S?this.detachListener():this.stopPolling(),this.safariLocalStorageNotSynced){const Jt=this.storage.getItem(J);if(v.newValue!==Jt)null!==v.newValue?this.storage.setItem(J,v.newValue):this.storage.removeItem(J);else if(this.localCache[J]===v.newValue&&!S)return}const Me=()=>{const Jt=this.storage.getItem(J);!S&&this.localCache[J]===Jt||this.notifyListeners(J,Jt)},Mt=this.storage.getItem(J);!function O(){return(0,ae.lT)()&&10===document.documentMode}()||Mt===v.newValue||v.newValue===v.oldValue?Me():setTimeout(Me,10)}notifyListeners(v,S){this.localCache[v]=S;const J=this.listeners[v];if(J)for(const Me of Array.from(J))Me(S&&JSON.parse(S))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((v,S,J)=>{this.onStorageEvent(new StorageEvent("storage",{key:v,oldValue:S,newValue:J}),!0)})},1e3)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(v,S){0===Object.keys(this.listeners).length&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[v]||(this.listeners[v]=new Set,this.localCache[v]=this.storage.getItem(v)),this.listeners[v].add(S)}_removeListener(v,S){this.listeners[v]&&(this.listeners[v].delete(S),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&(this.detachListener(),this.stopPolling())}_set(v,S){var J=()=>super._set,Me=this;return(0,$.A)(function*(){yield J().call(Me,v,S),Me.localCache[v]=JSON.stringify(S)})()}_get(v){var S=()=>super._get,J=this;return(0,$.A)(function*(){const Me=yield S().call(J,v);return J.localCache[v]=JSON.stringify(Me),Me})()}_remove(v){var S=()=>super._remove,J=this;return(0,$.A)(function*(){yield S().call(J,v),delete J.localCache[v]})()}}return I.type="LOCAL",I})(),is=(()=>{class I extends yc{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(v,S){}_removeListener(v,S){}}return I.type="SESSION",I})();let Da=(()=>{class I{constructor(v){this.eventTarget=v,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(v){const S=this.receivers.find(Me=>Me.isListeningto(v));if(S)return S;const J=new I(v);return this.receivers.push(J),J}isListeningto(v){return this.eventTarget===v}handleEvent(v){var S=this;return(0,$.A)(function*(){const J=v,{eventId:Me,eventType:Mt,data:Jt}=J.data,Mn=S.handlersMap[Mt];if(null==Mn||!Mn.size)return;J.ports[0].postMessage({status:"ack",eventId:Me,eventType:Mt});const Jn=Array.from(Mn).map(function(){var Ci=(0,$.A)(function*(Yo){return Yo(J.origin,Jt)});return function(Yo){return Ci.apply(this,arguments)}}()),xr=yield function pl(I){return Promise.all(I.map(function(){var f=(0,$.A)(function*(v){try{return{fulfilled:!0,value:yield v}}catch(S){return{fulfilled:!1,reason:S}}});return function(v){return f.apply(this,arguments)}}()))}(Jn);J.ports[0].postMessage({status:"done",eventId:Me,eventType:Mt,response:xr})})()}_subscribe(v,S){0===Object.keys(this.handlersMap).length&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[v]||(this.handlersMap[v]=new Set),this.handlersMap[v].add(S)}_unsubscribe(v,S){this.handlersMap[v]&&S&&this.handlersMap[v].delete(S),(!S||0===this.handlersMap[v].size)&&delete this.handlersMap[v],0===Object.keys(this.handlersMap).length&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}return I.receivers=[],I})();function oo(I="",f=10){let v="";for(let S=0;S{const xr=oo("",20);Me.port1.start();const Ci=setTimeout(()=>{Jn(new Error("unsupported_event"))},S);Jt={messageChannel:Me,onMessage(Yo){const go=Yo;if(go.data.eventId===xr)switch(go.data.status){case"ack":clearTimeout(Ci),Mt=setTimeout(()=>{Jn(new Error("timeout"))},3e3);break;case"done":clearTimeout(Mt),Mn(go.data.response);break;default:clearTimeout(Ci),clearTimeout(Mt),Jn(new Error("invalid_response"))}}},J.handlers.add(Jt),Me.port1.addEventListener("message",Jt.onMessage),J.target.postMessage({eventType:f,eventId:xr,data:v},[Me.port2])}).finally(()=>{Jt&&J.removeMessageHandler(Jt)})})()}}function Ai(){return window}function Wl(){return typeof Ai().WorkerGlobalScope<"u"&&"function"==typeof Ai().importScripts}function ia(){return(ia=(0,$.A)(function*(){if(null==navigator||!navigator.serviceWorker)return null;try{return(yield navigator.serviceWorker.ready).active}catch{return null}})).apply(this,arguments)}const gl="firebaseLocalStorageDb",ba="firebaseLocalStorage",Pu="fbase_key";class wa{constructor(f){this.request=f}toPromise(){return new Promise((f,v)=>{this.request.addEventListener("success",()=>{f(this.request.result)}),this.request.addEventListener("error",()=>{v(this.request.error)})})}}function Ha(I,f){return I.transaction([ba],f?"readwrite":"readonly").objectStore(ba)}function Dd(){const I=indexedDB.open(gl,1);return new Promise((f,v)=>{I.addEventListener("error",()=>{v(I.error)}),I.addEventListener("upgradeneeded",()=>{const S=I.result;try{S.createObjectStore(ba,{keyPath:Pu})}catch(J){v(J)}}),I.addEventListener("success",(0,$.A)(function*(){const S=I.result;S.objectStoreNames.contains(ba)?f(S):(S.close(),yield function tg(){const I=indexedDB.deleteDatabase(gl);return new wa(I).toPromise()}(),f(yield Dd()))}))})}function Sa(I,f,v){return Ga.apply(this,arguments)}function Ga(){return(Ga=(0,$.A)(function*(I,f,v){const S=Ha(I,!0).put({[Pu]:f,value:v});return new wa(S).toPromise()})).apply(this,arguments)}function bd(){return(bd=(0,$.A)(function*(I,f){const v=Ha(I,!1).get(f),S=yield new wa(v).toPromise();return void 0===S?null:S.value})).apply(this,arguments)}function E(I,f){const v=Ha(I,!0).delete(f);return new wa(v).toPromise()}const L=(()=>{class I{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}_openDb(){var v=this;return(0,$.A)(function*(){return v.db||(v.db=yield Dd()),v.db})()}_withRetries(v){var S=this;return(0,$.A)(function*(){let J=0;for(;;)try{const Me=yield S._openDb();return yield v(Me)}catch(Me){if(J++>3)throw Me;S.db&&(S.db.close(),S.db=void 0)}})()}initializeServiceWorkerMessaging(){var v=this;return(0,$.A)(function*(){return Wl()?v.initializeReceiver():v.initializeSender()})()}initializeReceiver(){var v=this;return(0,$.A)(function*(){v.receiver=Da._getInstance(function Kl(){return Wl()?self:null}()),v.receiver._subscribe("keyChanged",function(){var S=(0,$.A)(function*(J,Me){return{keyProcessed:(yield v._poll()).includes(Me.key)}});return function(J,Me){return S.apply(this,arguments)}}()),v.receiver._subscribe("ping",function(){var S=(0,$.A)(function*(J,Me){return["keyChanged"]});return function(J,Me){return S.apply(this,arguments)}}())})()}initializeSender(){var v=this;return(0,$.A)(function*(){var S,J;if(v.activeServiceWorker=yield function gs(){return ia.apply(this,arguments)}(),!v.activeServiceWorker)return;v.sender=new Mu(v.activeServiceWorker);const Me=yield v.sender._send("ping",{},800);Me&&null!==(S=Me[0])&&void 0!==S&&S.fulfilled&&null!==(J=Me[0])&&void 0!==J&&J.value.includes("keyChanged")&&(v.serviceWorkerReceiverAvailable=!0)})()}notifyServiceWorker(v){var S=this;return(0,$.A)(function*(){if(S.sender&&S.activeServiceWorker&&function Is(){var I;return(null===(I=null==navigator?void 0:navigator.serviceWorker)||void 0===I?void 0:I.controller)||null}()===S.activeServiceWorker)try{yield S.sender._send("keyChanged",{key:v},S.serviceWorkerReceiverAvailable?800:50)}catch{}})()}_isAvailable(){return(0,$.A)(function*(){try{if(!indexedDB)return!1;const v=yield Dd();return yield Sa(v,na,"1"),yield E(v,na),!0}catch{}return!1})()}_withPendingWrite(v){var S=this;return(0,$.A)(function*(){S.pendingWrites++;try{yield v()}finally{S.pendingWrites--}})()}_set(v,S){var J=this;return(0,$.A)(function*(){return J._withPendingWrite((0,$.A)(function*(){return yield J._withRetries(Me=>Sa(Me,v,S)),J.localCache[v]=S,J.notifyServiceWorker(v)}))})()}_get(v){var S=this;return(0,$.A)(function*(){const J=yield S._withRetries(Me=>function Kh(I,f){return bd.apply(this,arguments)}(Me,v));return S.localCache[v]=J,J})()}_remove(v){var S=this;return(0,$.A)(function*(){return S._withPendingWrite((0,$.A)(function*(){return yield S._withRetries(J=>E(J,v)),delete S.localCache[v],S.notifyServiceWorker(v)}))})()}_poll(){var v=this;return(0,$.A)(function*(){const S=yield v._withRetries(Mt=>{const Jt=Ha(Mt,!1).getAll();return new wa(Jt).toPromise()});if(!S)return[];if(0!==v.pendingWrites)return[];const J=[],Me=new Set;if(0!==S.length)for(const{fbase_key:Mt,value:Jt}of S)Me.add(Mt),JSON.stringify(v.localCache[Mt])!==JSON.stringify(Jt)&&(v.notifyListeners(Mt,Jt),J.push(Mt));for(const Mt of Object.keys(v.localCache))v.localCache[Mt]&&!Me.has(Mt)&&(v.notifyListeners(Mt,null),J.push(Mt));return J})()}notifyListeners(v,S){this.localCache[v]=S;const J=this.listeners[v];if(J)for(const Me of Array.from(J))Me(S)}startPolling(){var v=this;this.stopPolling(),this.pollTimer=setInterval((0,$.A)(function*(){return v._poll()}),800)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(v,S){0===Object.keys(this.listeners).length&&this.startPolling(),this.listeners[v]||(this.listeners[v]=new Set,this._get(v)),this.listeners[v].add(S)}_removeListener(v,S){this.listeners[v]&&(this.listeners[v].delete(S),0===this.listeners[v].size&&delete this.listeners[v]),0===Object.keys(this.listeners).length&&this.stopPolling()}}return I.type="LOCAL",I})();hi("rcb"),new ue(3e4,6e4);class $o extends Be{constructor(f){super("custom","custom"),this.params=f}_getIdTokenResponse(f){return Kn(f,this._buildIdpRequest())}_linkToIdToken(f,v){return Kn(f,this._buildIdpRequest(v))}_getReauthenticationResolver(f){return Kn(f,this._buildIdpRequest())}_buildIdpRequest(f){const v={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return f&&(v.idToken=f),v}}function wd(I){return No(I.auth,new $o(I),I.bypassAuthState)}function Ac(I){const{auth:f,user:v}=I;return At(v,f,"internal-error"),function Ei(I,f){return ao.apply(this,arguments)}(v,new $o(I),I.bypassAuthState)}function Cc(I){return Ls.apply(this,arguments)}function Ls(){return(Ls=(0,$.A)(function*(I){const{auth:f,user:v}=I;return At(v,f,"internal-error"),function zn(I,f){return lr.apply(this,arguments)}(v,new $o(I),I.bypassAuthState)})).apply(this,arguments)}class Tc{constructor(f,v,S,J,Me=!1){this.auth=f,this.resolver=S,this.user=J,this.bypassAuthState=Me,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(v)?v:[v]}execute(){var f=this;return new Promise(function(){var v=(0,$.A)(function*(S,J){f.pendingPromise={resolve:S,reject:J};try{f.eventManager=yield f.resolver._initialize(f.auth),yield f.onExecution(),f.eventManager.registerConsumer(f)}catch(Me){f.reject(Me)}});return function(S,J){return v.apply(this,arguments)}}())}onAuthEvent(f){var v=this;return(0,$.A)(function*(){const{urlResponse:S,sessionId:J,postBody:Me,tenantId:Mt,error:Jt,type:Mn}=f;if(Jt)return void v.reject(Jt);const Jn={auth:v.auth,requestUri:S,sessionId:J,tenantId:Mt||void 0,postBody:Me||void 0,user:v.user,bypassAuthState:v.bypassAuthState};try{v.resolve(yield v.getIdpTask(Mn)(Jn))}catch(xr){v.reject(xr)}})()}onError(f){this.reject(f)}getIdpTask(f){switch(f){case"signInViaPopup":case"signInViaRedirect":return wd;case"linkViaPopup":case"linkViaRedirect":return Cc;case"reauthViaPopup":case"reauthViaRedirect":return Ac;default:$e(this.auth,"internal-error")}}resolve(f){cn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(f),this.unregisterAndCleanUp()}reject(f){cn(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(f),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}new ue(2e3,1e4);const Dr="pendingRedirect",vl=new Map;class Rd extends Tc{constructor(f,v,S=!1){super(f,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],v,void 0,S),this.eventId=null}execute(){var f=()=>super.execute,v=this;return(0,$.A)(function*(){let S=vl.get(v.auth._key());if(!S){try{const Me=(yield function Dc(I,f){return bc.apply(this,arguments)}(v.resolver,v.auth))?yield f().call(v):null;S=()=>Promise.resolve(Me)}catch(J){S=()=>Promise.reject(J)}vl.set(v.auth._key(),S)}return v.bypassAuthState||vl.set(v.auth._key(),()=>Promise.resolve(null)),S()})()}onAuthEvent(f){var v=()=>super.onAuthEvent,S=this;return(0,$.A)(function*(){if("signInViaRedirect"===f.type)return v().call(S,f);if("unknown"!==f.type){if(f.eventId){const J=yield S.auth._redirectUserForId(f.eventId);if(J)return S.user=J,v().call(S,f);S.resolve(null)}}else S.resolve(null)})()}onExecution(){return(0,$.A)(function*(){})()}cleanUp(){}}function bc(){return(bc=(0,$.A)(function*(I,f){const v=function yl(I){return wr(Dr,I.config.apiKey,I.name)}(f),S=function qh(I){return dn(I._redirectPersistence)}(I);if(!(yield S._isAvailable()))return!1;const J="true"===(yield S._get(v));return yield S._remove(v),J})).apply(this,arguments)}function _l(I,f){vl.set(I._key(),f)}function ku(I,f){return Pd.apply(this,arguments)}function Pd(){return(Pd=(0,$.A)(function*(I,f,v=!1){if((0,he.xZ)(I.app))return Promise.reject(Ct(I));const S=jn(I),J=function Cs(I,f){return f?dn(f):(At(I._popupRedirectResolver,I,"argument-error"),I._popupRedirectResolver)}(S,f),Mt=yield new Rd(S,J,v).execute();return Mt&&!v&&(delete Mt.user._redirectEventId,yield S._persistUserIfCurrent(Mt.user),yield S._setRedirectUser(null,f)),Mt})).apply(this,arguments)}class da{constructor(f){this.auth=f,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(f){this.consumers.add(f),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,f)&&(this.sendToConsumer(this.queuedRedirectEvent,f),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(f){this.consumers.delete(f)}onEvent(f){if(this.hasEventBeenHandled(f))return!1;let v=!1;return this.consumers.forEach(S=>{this.isEventForConsumer(f,S)&&(v=!0,this.sendToConsumer(f,S),this.saveEventToCache(f))}),this.hasHandledPotentialRedirect||!function ha(I){switch(I.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Vs(I);default:return!1}}(f)||(this.hasHandledPotentialRedirect=!0,v||(this.queuedRedirectEvent=f,v=!0)),v}sendToConsumer(f,v){var S;if(f.error&&!Vs(f)){const J=(null===(S=f.error.code)||void 0===S?void 0:S.split("auth/")[1])||"internal-error";v.onError(Le(this.auth,J))}else v.onAuthEvent(f)}isEventForConsumer(f,v){const S=null===v.eventId||!!f.eventId&&f.eventId===v.eventId;return v.filter.includes(f.type)&&S}hasEventBeenHandled(f){return Date.now()-this.lastProcessedEventTime>=6e5&&this.cachedEventUids.clear(),this.cachedEventUids.has(Sc(f))}saveEventToCache(f){this.cachedEventUids.add(Sc(f)),this.lastProcessedEventTime=Date.now()}}function Sc(I){return[I.type,I.eventId,I.sessionId,I.tenantId].filter(f=>f).join("-")}function Vs({type:I,error:f}){return"unknown"===I&&"auth/no-auth-event"===(null==f?void 0:f.code)}function Rc(){return(Rc=(0,$.A)(function*(I,f={}){return un(I,"GET","/v1/projects",f)})).apply(this,arguments)}const xd=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Vo=/^https?/;function Fu(){return Fu=(0,$.A)(function*(I){if(I.config.emulator)return;const{authorizedDomains:f}=yield function og(I){return Rc.apply(this,arguments)}(I);for(const v of f)try{if(Nd(v))return}catch{}$e(I,"unauthorized-domain")}),Fu.apply(this,arguments)}function Nd(I){const f=vt(),{protocol:v,hostname:S}=new URL(f);if(I.startsWith("chrome-extension://")){const Mt=new URL(I);return""===Mt.hostname&&""===S?"chrome-extension:"===v&&I.replace("chrome-extension://","")===f.replace("chrome-extension://",""):"chrome-extension:"===v&&Mt.hostname===S}if(!Vo.test(v))return!1;if(xd.test(I))return S===I;const J=I.replace(/\./g,"\\.");return new RegExp("^(.+\\."+J+"|"+J+")$","i").test(S)}const Mc=new ue(3e4,6e4);function Pc(){const I=Ai().___jsl;if(null!=I&&I.H)for(const f of Object.keys(I.H))if(I.H[f].r=I.H[f].r||[],I.H[f].L=I.H[f].L||[],I.H[f].r=[...I.H[f].L],I.CP)for(let v=0;v{var S,J,Me;function Mt(){Pc(),gapi.load("gapi.iframes",{callback:()=>{f(gapi.iframes.getContext())},ontimeout:()=>{Pc(),v(Le(I,"network-request-failed"))},timeout:Mc.get()})}if(null!==(J=null===(S=Ai().gapi)||void 0===S?void 0:S.iframes)&&void 0!==J&&J.Iframe)f(gapi.iframes.getContext());else{if(null===(Me=Ai().gapi)||void 0===Me||!Me.load){const Jt=hi("iframefcb");return Ai()[Jt]=()=>{gapi.load?Mt():v(Le(I,"network-request-failed"))},Nr(`${function di(){return $r.gapiScript}()}?onload=${Jt}`).catch(Mn=>v(Mn))}Mt()}}).catch(f=>{throw xa=null,f})}(I),xa}(I),v=Ai().gapi;return At(v,I,"internal-error"),f.open({where:document.body,url:Mo(I),messageHandlersFilter:v.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:Vu,dontclear:!0},S=>new Promise(function(){var J=(0,$.A)(function*(Me,Mt){yield S.restyle({setHideOnLeave:!1});const Jt=Le(I,"network-request-failed"),Mn=Ai().setTimeout(()=>{Mt(Jt)},Zh.get());function Jn(){Ai().clearTimeout(Mn),Me(S)}S.ping(Jn).then(Jn,()=>{Mt(Jt)})});return function(Me,Mt){return J.apply(this,arguments)}}()))}),Gi.apply(this,arguments)}const ef={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"};class Uu{constructor(f){this.window=f,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}const ag="__/auth/handler",ju="emulator/auth/handler",Oc=encodeURIComponent("fac");function fa(I,f,v,S,J,Me){return pa.apply(this,arguments)}function pa(){return(pa=(0,$.A)(function*(I,f,v,S,J,Me){At(I.config.authDomain,I,"auth-domain-config-required"),At(I.config.apiKey,I,"invalid-api-key");const Mt={apiKey:I.config.apiKey,appName:I.name,authType:v,redirectUrl:S,v:he.MF,eventId:J};if(f instanceof Ao){f.setDefaultLanguage(I.languageCode),Mt.providerId=f.providerId||"",(0,ae.Im)(f.getCustomParameters())||(Mt.customParameters=JSON.stringify(f.getCustomParameters()));for(const[xr,Ci]of Object.entries(Me||{}))Mt[xr]=Ci}if(f instanceof Js){const xr=f.getScopes().filter(Ci=>""!==Ci);xr.length>0&&(Mt.scopes=xr.join(","))}I.tenantId&&(Mt.tid=I.tenantId);const Jt=Mt;for(const xr of Object.keys(Jt))void 0===Jt[xr]&&delete Jt[xr];const Mn=yield I._getAppCheckToken(),Jn=Mn?`#${Oc}=${encodeURIComponent(Mn)}`:"";return`${function Nc({config:I}){return I.emulator?Ee(I,ju):`https://${I.authDomain}/${ag}`}(I)}?${(0,ae.Am)(Jt).slice(1)}${Jn}`})).apply(this,arguments)}const El="webStorageSupport",Il=class rf{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=is,this._completeRedirectFn=ku,this._overrideRedirectResult=_l}_openPopup(f,v,S,J){var Me=this;return(0,$.A)(function*(){var Mt;cn(null===(Mt=Me.eventManagers[f._key()])||void 0===Mt?void 0:Mt.manager,"_initialize() not called before _openPopup()");const Jt=yield fa(f,v,S,vt(),J);return function $u(I,f,v,S=500,J=600){const Me=Math.max((window.screen.availHeight-J)/2,0).toString(),Mt=Math.max((window.screen.availWidth-S)/2,0).toString();let Jt="";const Mn=Object.assign(Object.assign({},ef),{width:S.toString(),height:J.toString(),top:Me,left:Mt}),Jn=(0,ae.ZQ)().toLowerCase();v&&(Jt=xi(Jn)?"_blank":v),oi(Jn)&&(f=f||"http://localhost",Mn.scrollbars="yes");const xr=Object.entries(Mn).reduce((Yo,[go,ma])=>`${Yo}${go}=${ma},`,"");if(function M(I=(0,ae.ZQ)()){var f;return te(I)&&!(null===(f=window.navigator)||void 0===f||!f.standalone)}(Jn)&&"_self"!==Jt)return function Ws(I,f){const v=document.createElement("a");v.href=I,v.target=f;const S=document.createEvent("MouseEvent");S.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),v.dispatchEvent(S)}(f||"",Jt),new Uu(null);const Ci=window.open(f||"",Jt,xr);At(Ci,I,"popup-blocked");try{Ci.focus()}catch{}return new Uu(Ci)}(f,Jt,oo())})()}_openRedirect(f,v,S,J){var Me=this;return(0,$.A)(function*(){return yield Me._originValidation(f),function Lo(I){Ai().location.href=I}(yield fa(f,v,S,vt(),J)),new Promise(()=>{})})()}_initialize(f){const v=f._key();if(this.eventManagers[v]){const{manager:J,promise:Me}=this.eventManagers[v];return J?Promise.resolve(J):(cn(Me,"If manager is not set, promise should be"),Me)}const S=this.initAndGetManager(f);return this.eventManagers[v]={promise:S},S.catch(()=>{delete this.eventManagers[v]}),S}initAndGetManager(f){var v=this;return(0,$.A)(function*(){const S=yield function Oa(I){return Gi.apply(this,arguments)}(f),J=new da(f);return S.register("authEvent",Me=>(At(null==Me?void 0:Me.authEvent,f,"invalid-auth-event"),{status:J.onEvent(Me.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),v.eventManagers[f._key()]={manager:J},v.iframes[f._key()]=S,J})()}_isIframeWebStorageSupported(f,v){this.iframes[f._key()].send(El,{type:El},J=>{var Me;const Mt=null===(Me=null==J?void 0:J[0])||void 0===Me?void 0:Me[El];void 0!==Mt&&v(!!Mt),$e(f,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(f){const v=f._key();return this.originValidationPromises[v]||(this.originValidationPromises[v]=function Od(I){return Fu.apply(this,arguments)}(f)),this.originValidationPromises[v]}get _shouldInitProactively(){return re()||Ir()||te()}};var Vd="@firebase/auth";class Na{constructor(f){this.auth=f,this.internalListeners=new Map}getUid(){var f;return this.assertAuthConfigured(),(null===(f=this.auth.currentUser)||void 0===f?void 0:f.uid)||null}getToken(f){var v=this;return(0,$.A)(function*(){return v.assertAuthConfigured(),yield v.auth._initializationPromise,v.auth.currentUser?{accessToken:yield v.auth.currentUser.getIdToken(f)}:null})()}addAuthTokenListener(f){if(this.assertAuthConfigured(),this.internalListeners.has(f))return;const v=this.auth.onIdTokenChanged(S=>{f((null==S?void 0:S.stsTokenManager.accessToken)||null)});this.internalListeners.set(f,v),this.updateProactiveRefresh()}removeAuthTokenListener(f){this.assertAuthConfigured();const v=this.internalListeners.get(f);v&&(this.internalListeners.delete(f),v(),this.updateProactiveRefresh())}assertAuthConfigured(){At(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}const eu=(0,ae.XA)("authIdTokenMaxAge")||300;let af=null;const lf=I=>function(){var f=(0,$.A)(function*(v){const S=v&&(yield v.getIdTokenResult()),J=S&&((new Date).getTime()-Date.parse(S.issuedAtTime))/1e3;if(J&&J>eu)return;const Me=null==S?void 0:S.token;af!==Me&&(af=Me,yield fetch(I,{method:Me?"POST":"DELETE",headers:Me?{Authorization:`Bearer ${Me}`}:{}}))});return function(v){return f.apply(this,arguments)}}();function Bd(I=(0,he.Sx)()){const f=(0,he.j6)(I,"auth");if(f.isInitialized())return f.getImmediate();const v=function bo(I,f){const v=(0,he.j6)(I,"auth");if(v.isInitialized()){const J=v.getImmediate(),Me=v.getOptions();if((0,ae.bD)(Me,null!=f?f:{}))return J;$e(J,"already-initialized")}return v.initialize({options:f})}(I,{popupRedirectResolver:Il,persistence:[L,Ta,is]}),S=(0,ae.XA)("authTokenSyncURL");if(S&&"boolean"==typeof isSecureContext&&isSecureContext){const Me=new URL(S,location.origin);if(location.origin===Me.origin){const Mt=lf(Me.toString());(function wi(I,f,v){(0,ae.Ku)(I).beforeAuthStateChanged(f,v)})(v,Mt,()=>Mt(v.currentUser)),to(v,Jt=>Mt(Jt))}}const J=(0,ae.Tj)("auth");return J&&function Pt(I,f,v){const S=jn(I);At(S._canInitEmulator,S,"emulator-config-failed"),At(/^https?:\/\//.test(f),S,"invalid-emulator-scheme");const J=!(null==v||!v.disableWarnings),Me=ge(f),{host:Mt,port:Jt}=function fe(I){const f=ge(I),v=/(\/\/)?([^?#/]+)/.exec(I.substr(f.length));if(!v)return{host:"",port:null};const S=v[2].split("@").pop()||"",J=/^(\[[^\]]+\])(:|$)/.exec(S);if(J){const Me=J[1];return{host:Me,port:K(S.substr(Me.length+1))}}{const[Me,Mt]=S.split(":");return{host:Me,port:K(Mt)}}}(f);S.config.emulator={url:`${Me}//${Mt}${null===Jt?"":`:${Jt}`}/`},S.settings.appVerificationDisabledForTesting=!0,S.emulatorConfig=Object.freeze({host:Mt,port:Jt,protocol:Me.replace(":",""),options:Object.freeze({disableWarnings:J})}),J||function je(){function I(){const f=document.createElement("p"),v=f.style;f.innerText="Running in emulator mode. Do not use with production credentials.",v.position="fixed",v.width="100%",v.backgroundColor="#ffffff",v.border=".1em solid #000000",v.color="#b50000",v.bottom="0px",v.left="0px",v.margin="0px",v.zIndex="10000",v.textAlign="center",f.classList.add("firebase-emulator-warning"),document.body.appendChild(f)}typeof console<"u"&&"function"==typeof console.info&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&("loading"===document.readyState?window.addEventListener("DOMContentLoaded",I):I())}()}(v,`http://${J}`),v}(function Pr(I){$r=I})({loadJS:I=>new Promise((f,v)=>{const S=document.createElement("script");S.setAttribute("src",I),S.onload=f,S.onerror=J=>{const Me=Le("internal-error");Me.customData=J,v(Me)},S.type="text/javascript",S.charset="UTF-8",function Vc(){var I,f;return null!==(f=null===(I=document.getElementsByTagName("head"))||void 0===I?void 0:I[0])&&void 0!==f?f:document}().appendChild(S)}),gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="}),function Tl(I){(0,he.om)(new Se.uA("auth",(f,{options:v})=>{const S=f.getProvider("app").getImmediate(),J=f.getProvider("heartbeat"),Me=f.getProvider("app-check-internal"),{apiKey:Mt,authDomain:Jt}=S.options;At(Mt&&!Mt.includes(":"),"invalid-api-key",{appName:S.name});const Mn={apiKey:Mt,authDomain:Jt,clientPlatform:I,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:We(I)},Jn=new Sr(S,J,Me,Mn);return function ui(I,f){const v=(null==f?void 0:f.persistence)||[],S=(Array.isArray(v)?v:[v]).map(dn);null!=f&&f.errorMap&&I._updateErrorMap(f.errorMap),I._initializeWithPersistence(S,null==f?void 0:f.popupRedirectResolver)}(Jn,v),Jn},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((f,v,S)=>{f.getProvider("auth-internal").initialize()})),(0,he.om)(new Se.uA("auth-internal",f=>{const v=jn(f.getProvider("auth").getImmediate());return new Na(v)},"PRIVATE").setInstantiationMode("EXPLICIT")),(0,he.KO)(Vd,"1.7.4",function Lc(I){switch(I){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}(I)),(0,he.KO)(Vd,"1.7.4","esm2017")}("Browser");var Bs=C(1985);function Gu(I){return new Bs.c(function(f){return{unsubscribe:to(I,f.next.bind(f),f.error.bind(f),f.complete.bind(f))}})}class Ja{constructor(f){return f}}class Dl{constructor(){return(0,h.CA)("auth")}}const tu=new c.nKC("angularfire2.auth-instances");function uf(I){return(f,v)=>{const S=f.runOutsideAngular(()=>I(v));return new Ja(S)}}const cf={provide:Dl,deps:[[new c.Xx1,tu]]},lg={provide:Ja,useFactory:function $d(I,f){const v=(0,h.lR)("auth",I,f);return v&&new Ja(v)},deps:[[new c.Xx1,tu],Z.XU]};function bl(I,...f){return(0,ke.KO)("angularfire",h.xv.full,"auth"),(0,c.EmA)([lg,cf,{provide:tu,useFactory:uf(I),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,h.Jv],...f]}])}const $c=(0,h.S3)(Gu,!0),Wu=(0,h.S3)($s,!0),ug=(0,h.S3)(Bd,!0),Qu=(0,h.S3)(Ns,!0)},4262:(Pn,Et,C)=>{"use strict";C.d(Et,{_7:()=>Eh,rJ:()=>_0,kd:()=>y0,H9:()=>lm,x7:()=>cm,GG:()=>o_,aU:()=>dm,hV:()=>e_,BN:()=>P0,mZ:()=>x0});var it,Ye,h=C(5407),c=C(4438),Z=C(7440),ke=C(8737),$=C(2214),he=C(467),ae=C(7852),Xe=C(1362),tt=C(8041),Se=C(1076),be=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},et={};(function(){var l;function s(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}function u(Bt,ht,Rt){Rt||(Rt=0);var Ut=Array(16);if("string"==typeof ht)for(var Ht=0;16>Ht;++Ht)Ut[Ht]=ht.charCodeAt(Rt++)|ht.charCodeAt(Rt++)<<8|ht.charCodeAt(Rt++)<<16|ht.charCodeAt(Rt++)<<24;else for(Ht=0;16>Ht;++Ht)Ut[Ht]=ht[Rt++]|ht[Rt++]<<8|ht[Rt++]<<16|ht[Rt++]<<24;var Zt=Bt.g[3],bt=(ht=Bt.g[0])+(Zt^(Rt=Bt.g[1])&((Ht=Bt.g[2])^Zt))+Ut[0]+3614090360&4294967295;bt=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=(Rt=(Ht=(Zt=(ht=Rt+(bt<<7&4294967295|bt>>>25))+((bt=Zt+(Ht^ht&(Rt^Ht))+Ut[1]+3905402710&4294967295)<<12&4294967295|bt>>>20))+((bt=Ht+(Rt^Zt&(ht^Rt))+Ut[2]+606105819&4294967295)<<17&4294967295|bt>>>15))+((bt=Rt+(ht^Ht&(Zt^ht))+Ut[3]+3250441966&4294967295)<<22&4294967295|bt>>>10))+((bt=ht+(Zt^Rt&(Ht^Zt))+Ut[4]+4118548399&4294967295)<<7&4294967295|bt>>>25))+((bt=Zt+(Ht^ht&(Rt^Ht))+Ut[5]+1200080426&4294967295)<<12&4294967295|bt>>>20))+((bt=Ht+(Rt^Zt&(ht^Rt))+Ut[6]+2821735955&4294967295)<<17&4294967295|bt>>>15))+((bt=Rt+(ht^Ht&(Zt^ht))+Ut[7]+4249261313&4294967295)<<22&4294967295|bt>>>10))+((bt=ht+(Zt^Rt&(Ht^Zt))+Ut[8]+1770035416&4294967295)<<7&4294967295|bt>>>25))+((bt=Zt+(Ht^ht&(Rt^Ht))+Ut[9]+2336552879&4294967295)<<12&4294967295|bt>>>20))+((bt=Ht+(Rt^Zt&(ht^Rt))+Ut[10]+4294925233&4294967295)<<17&4294967295|bt>>>15))+((bt=Rt+(ht^Ht&(Zt^ht))+Ut[11]+2304563134&4294967295)<<22&4294967295|bt>>>10))+((bt=ht+(Zt^Rt&(Ht^Zt))+Ut[12]+1804603682&4294967295)<<7&4294967295|bt>>>25))+((bt=Zt+(Ht^ht&(Rt^Ht))+Ut[13]+4254626195&4294967295)<<12&4294967295|bt>>>20))+((bt=Ht+(Rt^Zt&(ht^Rt))+Ut[14]+2792965006&4294967295)<<17&4294967295|bt>>>15))+((bt=Rt+(ht^Ht&(Zt^ht))+Ut[15]+1236535329&4294967295)<<22&4294967295|bt>>>10))+((bt=ht+(Ht^Zt&(Rt^Ht))+Ut[1]+4129170786&4294967295)<<5&4294967295|bt>>>27))+((bt=Zt+(Rt^Ht&(ht^Rt))+Ut[6]+3225465664&4294967295)<<9&4294967295|bt>>>23))+((bt=Ht+(ht^Rt&(Zt^ht))+Ut[11]+643717713&4294967295)<<14&4294967295|bt>>>18))+((bt=Rt+(Zt^ht&(Ht^Zt))+Ut[0]+3921069994&4294967295)<<20&4294967295|bt>>>12))+((bt=ht+(Ht^Zt&(Rt^Ht))+Ut[5]+3593408605&4294967295)<<5&4294967295|bt>>>27))+((bt=Zt+(Rt^Ht&(ht^Rt))+Ut[10]+38016083&4294967295)<<9&4294967295|bt>>>23))+((bt=Ht+(ht^Rt&(Zt^ht))+Ut[15]+3634488961&4294967295)<<14&4294967295|bt>>>18))+((bt=Rt+(Zt^ht&(Ht^Zt))+Ut[4]+3889429448&4294967295)<<20&4294967295|bt>>>12))+((bt=ht+(Ht^Zt&(Rt^Ht))+Ut[9]+568446438&4294967295)<<5&4294967295|bt>>>27))+((bt=Zt+(Rt^Ht&(ht^Rt))+Ut[14]+3275163606&4294967295)<<9&4294967295|bt>>>23))+((bt=Ht+(ht^Rt&(Zt^ht))+Ut[3]+4107603335&4294967295)<<14&4294967295|bt>>>18))+((bt=Rt+(Zt^ht&(Ht^Zt))+Ut[8]+1163531501&4294967295)<<20&4294967295|bt>>>12))+((bt=ht+(Ht^Zt&(Rt^Ht))+Ut[13]+2850285829&4294967295)<<5&4294967295|bt>>>27))+((bt=Zt+(Rt^Ht&(ht^Rt))+Ut[2]+4243563512&4294967295)<<9&4294967295|bt>>>23))+((bt=Ht+(ht^Rt&(Zt^ht))+Ut[7]+1735328473&4294967295)<<14&4294967295|bt>>>18))+((bt=Rt+(Zt^ht&(Ht^Zt))+Ut[12]+2368359562&4294967295)<<20&4294967295|bt>>>12))+((bt=ht+(Rt^Ht^Zt)+Ut[5]+4294588738&4294967295)<<4&4294967295|bt>>>28))+((bt=Zt+(ht^Rt^Ht)+Ut[8]+2272392833&4294967295)<<11&4294967295|bt>>>21))+((bt=Ht+(Zt^ht^Rt)+Ut[11]+1839030562&4294967295)<<16&4294967295|bt>>>16))+((bt=Rt+(Ht^Zt^ht)+Ut[14]+4259657740&4294967295)<<23&4294967295|bt>>>9))+((bt=ht+(Rt^Ht^Zt)+Ut[1]+2763975236&4294967295)<<4&4294967295|bt>>>28))+((bt=Zt+(ht^Rt^Ht)+Ut[4]+1272893353&4294967295)<<11&4294967295|bt>>>21))+((bt=Ht+(Zt^ht^Rt)+Ut[7]+4139469664&4294967295)<<16&4294967295|bt>>>16))+((bt=Rt+(Ht^Zt^ht)+Ut[10]+3200236656&4294967295)<<23&4294967295|bt>>>9))+((bt=ht+(Rt^Ht^Zt)+Ut[13]+681279174&4294967295)<<4&4294967295|bt>>>28))+((bt=Zt+(ht^Rt^Ht)+Ut[0]+3936430074&4294967295)<<11&4294967295|bt>>>21))+((bt=Ht+(Zt^ht^Rt)+Ut[3]+3572445317&4294967295)<<16&4294967295|bt>>>16))+((bt=Rt+(Ht^Zt^ht)+Ut[6]+76029189&4294967295)<<23&4294967295|bt>>>9))+((bt=ht+(Rt^Ht^Zt)+Ut[9]+3654602809&4294967295)<<4&4294967295|bt>>>28))+((bt=Zt+(ht^Rt^Ht)+Ut[12]+3873151461&4294967295)<<11&4294967295|bt>>>21))+((bt=Ht+(Zt^ht^Rt)+Ut[15]+530742520&4294967295)<<16&4294967295|bt>>>16))+((bt=Rt+(Ht^Zt^ht)+Ut[2]+3299628645&4294967295)<<23&4294967295|bt>>>9))+((bt=ht+(Ht^(Rt|~Zt))+Ut[0]+4096336452&4294967295)<<6&4294967295|bt>>>26))+((bt=Zt+(Rt^(ht|~Ht))+Ut[7]+1126891415&4294967295)<<10&4294967295|bt>>>22))+((bt=Ht+(ht^(Zt|~Rt))+Ut[14]+2878612391&4294967295)<<15&4294967295|bt>>>17))+((bt=Rt+(Zt^(Ht|~ht))+Ut[5]+4237533241&4294967295)<<21&4294967295|bt>>>11))+((bt=ht+(Ht^(Rt|~Zt))+Ut[12]+1700485571&4294967295)<<6&4294967295|bt>>>26))+((bt=Zt+(Rt^(ht|~Ht))+Ut[3]+2399980690&4294967295)<<10&4294967295|bt>>>22))+((bt=Ht+(ht^(Zt|~Rt))+Ut[10]+4293915773&4294967295)<<15&4294967295|bt>>>17))+((bt=Rt+(Zt^(Ht|~ht))+Ut[1]+2240044497&4294967295)<<21&4294967295|bt>>>11))+((bt=ht+(Ht^(Rt|~Zt))+Ut[8]+1873313359&4294967295)<<6&4294967295|bt>>>26))+((bt=Zt+(Rt^(ht|~Ht))+Ut[15]+4264355552&4294967295)<<10&4294967295|bt>>>22))+((bt=Ht+(ht^(Zt|~Rt))+Ut[6]+2734768916&4294967295)<<15&4294967295|bt>>>17))+((bt=Rt+(Zt^(Ht|~ht))+Ut[13]+1309151649&4294967295)<<21&4294967295|bt>>>11))+((Zt=(ht=Rt+((bt=ht+(Ht^(Rt|~Zt))+Ut[4]+4149444226&4294967295)<<6&4294967295|bt>>>26))+((bt=Zt+(Rt^(ht|~Ht))+Ut[11]+3174756917&4294967295)<<10&4294967295|bt>>>22))^((Ht=Zt+((bt=Ht+(ht^(Zt|~Rt))+Ut[2]+718787259&4294967295)<<15&4294967295|bt>>>17))|~ht))+Ut[9]+3951481745&4294967295,Bt.g[0]=Bt.g[0]+ht&4294967295,Bt.g[1]=Bt.g[1]+(Ht+(bt<<21&4294967295|bt>>>11))&4294967295,Bt.g[2]=Bt.g[2]+Ht&4294967295,Bt.g[3]=Bt.g[3]+Zt&4294967295}function _(Bt,ht){this.h=ht;for(var Rt=[],Ut=!0,Ht=Bt.length-1;0<=Ht;Ht--){var Zt=0|Bt[Ht];Ut&&Zt==ht||(Rt[Ht]=Zt,Ut=!1)}this.g=Rt}(function n(Bt,ht){function Rt(){}Rt.prototype=ht.prototype,Bt.D=ht.prototype,Bt.prototype=new Rt,Bt.prototype.constructor=Bt,Bt.C=function(Ut,Ht,Zt){for(var bt=Array(arguments.length-2),Nl=2;Nlthis.h?this.blockSize:2*this.blockSize)-this.h);Bt[0]=128;for(var ht=1;htht;++ht)for(var Ut=0;32>Ut;Ut+=8)Bt[Rt++]=this.g[ht]>>>Ut&255;return Bt};var R={};function k(Bt){return-128<=Bt&&128>Bt?function p(Bt,ht){var Rt=R;return Object.prototype.hasOwnProperty.call(Rt,Bt)?Rt[Bt]:Rt[Bt]=ht(Bt)}(Bt,function(ht){return new _([0|ht],0>ht?-1:0)}):new _([0|Bt],0>Bt?-1:0)}function q(Bt){if(isNaN(Bt)||!isFinite(Bt))return He;if(0>Bt)return Ln(q(-Bt));for(var ht=[],Rt=1,Ut=0;Bt>=Rt;Ut++)ht[Ut]=Bt/Rt|0,Rt*=4294967296;return new _(ht,0)}var He=k(0),yt=k(1),Yt=k(16777216);function Rn(Bt){if(0!=Bt.h)return!1;for(var ht=0;ht>>16,Bt[ht]&=65535,ht++}function Or(Bt,ht){this.g=Bt,this.h=ht}function si(Bt,ht){if(Rn(ht))throw Error("division by zero");if(Rn(Bt))return new Or(He,He);if(Wn(Bt))return ht=si(Ln(Bt),ht),new Or(Ln(ht.g),Ln(ht.h));if(Wn(ht))return ht=si(Bt,Ln(ht)),new Or(Ln(ht.g),ht.h);if(30=Ut.l(Bt);)Rt=Wi(Rt),Ut=Wi(Ut);var Ht=Ti(Rt,1),Zt=Ti(Ut,1);for(Ut=Ti(Ut,2),Rt=Ti(Rt,2);!Rn(Ut);){var bt=Zt.add(Ut);0>=bt.l(Bt)&&(Ht=Ht.add(Rt),Zt=bt),Ut=Ti(Ut,1),Rt=Ti(Rt,1)}return ht=Cr(Bt,Ht.j(ht)),new Or(Ht,ht)}for(Ht=He;0<=Bt.l(ht);){for(Rt=Math.max(1,Math.floor(Bt.m()/ht.m())),Ut=48>=(Ut=Math.ceil(Math.log(Rt)/Math.LN2))?1:Math.pow(2,Ut-48),bt=(Zt=q(Rt)).j(ht);Wn(bt)||0>>31;return new _(Rt,Bt.h)}function Ti(Bt,ht){var Rt=ht>>5;ht%=32;for(var Ut=Bt.g.length-Rt,Ht=[],Zt=0;Zt>>ht|Bt.i(Zt+Rt+1)<<32-ht:Bt.i(Zt+Rt);return new _(Ht,Bt.h)}(l=_.prototype).m=function(){if(Wn(this))return-Ln(this).m();for(var Bt=0,ht=1,Rt=0;Rt(Bt=Bt||10)||36>>0).toString(Bt);if(Rn(Rt=Ht))return Zt+Ut;for(;6>Zt.length;)Zt="0"+Zt;Ut=Zt+Ut}},l.i=function(Bt){return 0>Bt?0:Bt>>16)+(this.i(Ht)>>>16)+(Bt.i(Ht)>>>16);Ut=bt>>>16,Rt[Ht]=(bt&=65535)<<16|(Zt&=65535)}return new _(Rt,-2147483648&Rt[Rt.length-1]?-1:0)},l.j=function(Bt){if(Rn(this)||Rn(Bt))return He;if(Wn(this))return Wn(Bt)?Ln(this).j(Ln(Bt)):Ln(Ln(this).j(Bt));if(Wn(Bt))return Ln(this.j(Ln(Bt)));if(0>this.l(Yt)&&0>Bt.l(Yt))return q(this.m()*Bt.m());for(var ht=this.g.length+Bt.g.length,Rt=[],Ut=0;Ut<2*ht;Ut++)Rt[Ut]=0;for(Ut=0;Ut>>16,bt=65535&this.i(Ut),Nl=Bt.i(Ht)>>>16,dc=65535&Bt.i(Ht);Rt[2*Ut+2*Ht]+=bt*dc,Gr(Rt,2*Ut+2*Ht),Rt[2*Ut+2*Ht+1]+=Zt*dc,Gr(Rt,2*Ut+2*Ht+1),Rt[2*Ut+2*Ht+1]+=bt*Nl,Gr(Rt,2*Ut+2*Ht+1),Rt[2*Ut+2*Ht+2]+=Zt*Nl,Gr(Rt,2*Ut+2*Ht+2)}for(Ut=0;Ut(ht=ht||10)||36Zt?(Zt=q(Math.pow(ht,Zt)),Ut=Ut.j(Zt).add(q(bt))):Ut=(Ut=Ut.j(Rt)).add(q(bt))}return Ut},it=et.Integer=_}).apply(typeof be<"u"?be:typeof self<"u"?self:typeof window<"u"?window:{});var xt,Dt,zt,Tt,It,Te,Ze,_e,$e,at=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},mt={};(function(){var l,n="function"==typeof Object.defineProperties?Object.defineProperty:function(m,V,Q){return m==Array.prototype||m==Object.prototype||(m[V]=Q.value),m},s=function i(m){m=["object"==typeof globalThis&&globalThis,m,"object"==typeof window&&window,"object"==typeof self&&self,"object"==typeof at&&at];for(var V=0;V{throw m},0)}function bt(){var m=pm;let V=null;return m.g&&(V=m.g,m.g=m.g.next,m.g||(m.h=null),V.next=null),V}var dc=new class Cr{constructor(V,Q){this.i=V,this.j=Q,this.h=0,this.g=null}get(){let V;return 0new O0,m=>m.reset());class O0{constructor(){this.next=this.g=this.h=null}set(V,Q){this.h=V,this.g=Q,this.next=null}reset(){this.next=this.g=this.h=null}}let ld,Ah=!1,pm=new class Nl{constructor(){this.h=this.g=null}add(V,Q){const Ne=dc.get();Ne.set(V,Q),this.h?this.h.next=Ne:this.g=Ne,this.h=Ne}},gm=()=>{const m=R.Promise.resolve(void 0);ld=()=>{m.then(N0)}};var N0=()=>{for(var m;m=bt();){try{m.h.call(m.g)}catch(Q){Zt(Q)}var V=dc;V.j(m),100>V.h&&(V.h++,m.next=V.g,V.g=m)}Ah=!1};function vu(){this.s=this.s,this.C=this.C}function xo(m,V){this.type=m,this.g=this.target=V,this.defaultPrevented=!1}vu.prototype.s=!1,vu.prototype.ma=function(){this.s||(this.s=!0,this.N())},vu.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()},xo.prototype.h=function(){this.defaultPrevented=!0};var mm=function(){if(!R.addEventListener||!Object.defineProperty)return!1;var m=!1,V=Object.defineProperty({},"passive",{get:function(){m=!0}});try{const Q=()=>{};R.addEventListener("test",Q,V),R.removeEventListener("test",Q,V)}catch{}return m}();function Ch(m,V){if(xo.call(this,m?m.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,m){var Q=this.type=m.type,Ne=m.changedTouches&&m.changedTouches.length?m.changedTouches[0]:null;if(this.target=m.target||m.srcElement,this.g=V,V=m.relatedTarget){if(Wi){e:{try{si(V.nodeName);var qt=!0;break e}catch{}qt=!1}qt||(V=null)}}else"mouseover"==Q?V=m.fromElement:"mouseout"==Q&&(V=m.toElement);this.relatedTarget=V,Ne?(this.clientX=void 0!==Ne.clientX?Ne.clientX:Ne.pageX,this.clientY=void 0!==Ne.clientY?Ne.clientY:Ne.pageY,this.screenX=Ne.screenX||0,this.screenY=Ne.screenY||0):(this.clientX=void 0!==m.clientX?m.clientX:m.pageX,this.clientY=void 0!==m.clientY?m.clientY:m.pageY,this.screenX=m.screenX||0,this.screenY=m.screenY||0),this.button=m.button,this.key=m.key||"",this.ctrlKey=m.ctrlKey,this.altKey=m.altKey,this.shiftKey=m.shiftKey,this.metaKey=m.metaKey,this.pointerId=m.pointerId||0,this.pointerType="string"==typeof m.pointerType?m.pointerType:l_[m.pointerType]||"",this.state=m.state,this.i=m,m.defaultPrevented&&Ch.aa.h.call(this)}}Rn(Ch,xo);var l_={2:"touch",3:"pen",4:"mouse"};Ch.prototype.h=function(){Ch.aa.h.call(this);var m=this.i;m.preventDefault?m.preventDefault():m.returnValue=!1};var Th="closure_listenable_"+(1e6*Math.random()|0),u_=0;function nA(m,V,Q,Ne,qt){this.listener=m,this.proxy=null,this.src=V,this.type=Q,this.capture=!!Ne,this.ha=qt,this.key=++u_,this.da=this.fa=!1}function lp(m){m.da=!0,m.listener=null,m.proxy=null,m.src=null,m.ha=null}function hc(m){this.src=m,this.g={},this.h=0}function up(m,V){var Q=V.type;if(Q in m.g){var hn,Ne=m.g[Q],qt=Array.prototype.indexOf.call(Ne,V,void 0);(hn=0<=qt)&&Array.prototype.splice.call(Ne,qt,1),hn&&(lp(V),0==m.g[Q].length&&(delete m.g[Q],m.h--))}}function vm(m,V,Q,Ne){for(var qt=0;qt>>0);function Cm(m){return"function"==typeof m?m:(m[Dh]||(m[Dh]=function(V){return m.handleEvent(V)}),m[Dh])}function vs(){vu.call(this),this.i=new hc(this),this.M=this,this.F=null}function os(m,V){var Q,Ne=m.F;if(Ne)for(Q=[];Ne;Ne=Ne.F)Q.push(Ne);if(m=m.M,Ne=V.type||V,"string"==typeof V)V=new xo(V,m);else if(V instanceof xo)V.target=V.target||m;else{var qt=V;Ut(V=new xo(Ne,m),qt)}if(qt=!0,Q)for(var hn=Q.length-1;0<=hn;hn--){var nr=V.g=Q[hn];qt=bh(nr,Ne,!0,V)&&qt}if(qt=bh(nr=V.g=m,Ne,!0,V)&&qt,qt=bh(nr,Ne,!1,V)&&qt,Q)for(hn=0;hn{m.g=null,m.i&&(m.i=!1,Dm(m))},m.l);const V=m.h;m.h=null,m.m.apply(null,V)}Rn(vs,vu),vs.prototype[Th]=!0,vs.prototype.removeEventListener=function(m,V,Q,Ne){Em(this,m,V,Q,Ne)},vs.prototype.N=function(){if(vs.aa.N.call(this),this.i){var V,m=this.i;for(V in m.g){for(var Q=m.g[V],Ne=0;NeNe.length)){var qt=Ne[1];if(Array.isArray(qt)&&!(1>qt.length)){var hn=qt[0];if("noop"!=hn&&"stop"!=hn&&"close"!=hn)for(var nr=1;nrV.length?Mm:(V=V.slice(Ne,Ne+Q),m.C=Ne+Q,V))}function Mh(m){m.S=Date.now()+m.I,vp(m,m.I)}function vp(m,V){if(null!=m.B)throw Error("WatchDog timer not null");m.B=fp(yt(m.ba,m),V)}function _p(m){m.B&&(R.clearTimeout(m.B),m.B=null)}function Ph(m){0==m.j.G||m.J||q0(m.j,m)}function Au(m){_p(m);var V=m.M;V&&"function"==typeof V.ma&&V.ma(),m.M=null,bm(m.U),m.g&&(V=m.g,m.g=null,V.abort(),V.ma())}function xh(m,V){try{var Q=m.j;if(0!=Q.G&&(Q.g==m||xm(Q.h,m)))if(!m.K&&xm(Q.h,m)&&3==Q.G){try{var Ne=Q.Da.g.parse(V)}catch{Ne=null}if(Array.isArray(Ne)&&3==Ne.length){var qt=Ne;if(0==qt[0]){e:if(!Q.u){if(Q.g){if(!(Q.g.F+3e3qt[2]&&Q.F&&0==Q.v&&!Q.C&&(Q.C=fp(yt(Q.Za,Q),6e3));if(1>=C_(Q.h)&&Q.ca){try{Q.ca()}catch{}Q.ca=void 0}}else Tu(Q,11)}else if((m.K||Q.g==m)&&Bh(Q),!Gr(V))for(qt=Q.Da.g.parse(V),V=0;VDs)&&(3!=Ds||this.g&&(this.h.h||this.g.oa()||R_(this.g)))){this.J||4!=Ds||7==V||pc(),_p(this);var Q=this.g.Z();this.X=Q;t:if(y_(this)){var Ne=R_(this.g);m="";var qt=Ne.length,hn=4==Cu(this.g);if(!this.h.i){if(typeof TextDecoder>"u"){Au(this),Ph(this);var nr="";break t}this.h.i=new R.TextDecoder}for(V=0;V=m.j}function C_(m){return m.h?1:m.g?m.g.size:0}function xm(m,V){return m.h?m.h==V:!!m.g&&m.g.has(V)}function Oh(m,V){m.g?m.g.add(V):m.h=V}function yp(m,V){m.h&&m.h==V?m.h=null:m.g&&m.g.has(V)&&m.g.delete(V)}function Om(m){if(null!=m.h)return m.i.concat(m.h.D);if(null!=m.g&&0!==m.g.size){let V=m.i;for(const Q of m.g.values())V=V.concat(Q.D);return V}return Wn(m.i)}function T_(m,V){if(m.forEach&&"function"==typeof m.forEach)m.forEach(V,void 0);else if(k(m)||"string"==typeof m)Array.prototype.forEach.call(m,V,void 0);else for(var Q=function km(m){if(m.na&&"function"==typeof m.na)return m.na();if(!m.V||"function"!=typeof m.V){if(typeof Map<"u"&&m instanceof Map)return Array.from(m.keys());if(!(typeof Set<"u"&&m instanceof Set)){if(k(m)||"string"==typeof m){var V=[];m=m.length;for(var Q=0;QV)throw Error("Bad port number "+V);m.s=V}else m.s=null}function Fm(m,V,Q){V instanceof _d?(m.i=V,function w_(m,V){V&&!m.j&&(kl(m),m.i=null,m.g.forEach(function(Q,Ne){var qt=Ne.toLowerCase();Ne!=qt&&(Vm(this,Ne),Bm(this,qt,Q))},m)),m.j=V}(m.i,m.h)):(Q||(V=vd(V,rA)),m.i=new _d(V,m.h))}function co(m,V,Q){m.i.set(V,Q)}function Nh(m){return co(m,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),m}function kh(m,V){return m?V?decodeURI(m.replace(/%25/g,"%2525")):decodeURIComponent(m):""}function vd(m,V,Q){return"string"==typeof m?(m=encodeURI(m).replace(V,U0),Q&&(m=m.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),m):null}function U0(m){return"%"+((m=m.charCodeAt(0))>>4&15).toString(16)+(15&m).toString(16)}gc.prototype.toString=function(){var m=[],V=this.j;V&&m.push(vd(V,Ep,!0),":");var Q=this.g;return(Q||"file"==V)&&(m.push("//"),(V=this.o)&&m.push(vd(V,Ep,!0),"@"),m.push(encodeURIComponent(String(Q)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),null!=(Q=this.s)&&m.push(":",String(Q))),(Q=this.l)&&(this.g&&"/"!=Q.charAt(0)&&m.push("/"),m.push(vd(Q,"/"==Q.charAt(0)?Lm:b_,!0))),(Q=this.i.toString())&&m.push("?",Q),(Q=this.m)&&m.push("#",vd(Q,iA)),m.join("")};var Ep=/[#\/\?@]/g,b_=/[#\?:]/g,Lm=/[#\?]/g,rA=/[#\?@]/g,iA=/#/g;function _d(m,V){this.h=this.g=null,this.i=m||null,this.j=!!V}function kl(m){m.g||(m.g=new Map,m.h=0,m.i&&function B0(m,V){if(m){m=m.split("&");for(var Q=0;Q{}),1<=this.readyState&&this.g&&4!=this.readyState&&(this.g=!1,Cp(this)),this.readyState=0},l.Sa=function(m){if(this.g&&(this.l=m,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=m.headers,this.readyState=2,Tp(this)),this.g&&(this.readyState=3,Tp(this),this.g)))if("arraybuffer"===this.responseType)m.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof R.ReadableStream<"u"&&"body"in m){if(this.j=m.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;j0(this)}else m.text().then(this.Ra.bind(this),this.ga.bind(this))},l.Pa=function(m){if(this.g){if(this.o&&m.value)this.response.push(m.value);else if(!this.o){var V=m.value?m.value:new Uint8Array(0);(V=this.v.decode(V,{stream:!m.done}))&&(this.response=this.responseText+=V)}m.done?Cp(this):Tp(this),3==this.readyState&&j0(this)}},l.Ra=function(m){this.g&&(this.response=this.responseText=m,Cp(this))},l.Qa=function(m){this.g&&(this.response=m,Cp(this))},l.ga=function(){this.g&&Cp(this)},l.setRequestHeader=function(m,V){this.u.append(m,V)},l.getResponseHeader=function(m){return this.h&&this.h.get(m.toLowerCase())||""},l.getAllResponseHeaders=function(){if(!this.h)return"";const m=[],V=this.h.entries();for(var Q=V.next();!Q.done;)m.push((Q=Q.value)[0]+": "+Q[1]),Q=V.next();return m.join("\r\n")},Object.defineProperty(Um.prototype,"withCredentials",{get:function(){return"include"===this.m},set:function(m){this.m=m?"include":"same-origin"}}),Rn(Oo,vs);var aA=/^https?$/i,lA=["POST","PUT"];function z0(m,V){m.h=!1,m.g&&(m.j=!0,m.g.abort(),m.j=!1),m.l=V,m.m=5,H0(m),jm(m)}function H0(m){m.A||(m.A=!0,os(m,"complete"),os(m,"error"))}function G0(m){if(m.h&&typeof _<"u"&&(!m.v[1]||4!=Cu(m)||2!=m.Z()))if(m.u&&4==Cu(m))Tm(m.Ea,0,m);else if(os(m,"readystatechange"),4==Cu(m)){m.h=!1;try{const nr=m.Z();e:switch(nr){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var V=!0;break e;default:V=!1}var Q;if(!(Q=V)){var Ne;if(Ne=0===nr){var qt=String(m.D).match(D_)[1]||null;!qt&&R.self&&R.self.location&&(qt=R.self.location.protocol.slice(0,-1)),Ne=!aA.test(qt?qt.toLowerCase():"")}Q=Ne}if(Q)os(m,"complete"),os(m,"success");else{m.m=6;try{var hn=2{}:null;m.g=null,m.v=null,V||os(m,"ready");try{Q.onreadystatechange=Ne}catch{}}}function W0(m){m.I&&(R.clearTimeout(m.I),m.I=null)}function Cu(m){return m.g?m.g.readyState:0}function R_(m){try{if(!m.g)return null;if("response"in m.g)return m.g.response;switch(m.H){case"":case"text":return m.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in m.g)return m.g.mozResponseArrayBuffer}return null}catch{return null}}function Fl(m,V,Q){return Q&&Q.internalChannelParams&&Q.internalChannelParams[m]||V}function M_(m){this.Aa=0,this.i=[],this.j=new Eu,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=Fl("failFast",!1,m),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=Fl("baseRetryDelayMs",5e3,m),this.cb=Fl("retryDelaySeedMs",1e4,m),this.Wa=Fl("forwardChannelMaxRetries",2,m),this.wa=Fl("forwardChannelRequestTimeoutMs",2e4,m),this.pa=m&&m.xmlHttpFactory||void 0,this.Xa=m&&m.Tb||void 0,this.Ca=m&&m.useFetchStreams||!1,this.L=void 0,this.J=m&&m.supportsCrossDomainXhr||!1,this.K="",this.h=new Pm(m&&m.concurrentRequestLimit),this.Da=new oA,this.P=m&&m.fastHandshake||!1,this.O=m&&m.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=m&&m.Rb||!1,m&&m.xa&&this.j.xa(),m&&m.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&m&&m.detectBufferingProxy||!1,this.ja=void 0,m&&m.longPollingTimeout&&0ji)hn=Math.max(0,qt[Io].g-100),ro=!1;else try{sA(_s,nr,"req"+ji+"_")}catch{Ne&&Ne(_s)}}if(ro){Ne=nr.join("&");break e}}}return m=m.i.splice(0,Q),V.D=m,Ne}function Hm(m){if(!m.g&&!m.u){m.Y=1;var V=m.Fa;ld||gm(),Ah||(ld(),Ah=!0),pm.add(V,m),m.v=0}}function Gm(m){return!(m.g||m.u||3<=m.v||(m.Y++,m.u=fp(yt(m.Fa,m),N_(m,m.v)),m.v++,0))}function bp(m){null!=m.A&&(R.clearTimeout(m.A),m.A=null)}function X0(m){m.g=new Iu(m,m.j,"rpc",m.Y),null===m.m&&(m.g.H=m.o),m.g.O=0;var V=al(m.qa);co(V,"RID","rpc"),co(V,"SID",m.K),co(V,"AID",m.T),co(V,"CI",m.F?"0":"1"),!m.F&&m.ja&&co(V,"TO",m.ja),co(V,"TYPE","xmlhttp"),Lh(m,V),m.m&&m.o&&Dp(V,m.m,m.o),m.L&&(m.g.I=m.L);var Q=m.g;m=m.ia,Q.L=1,Q.v=Nh(al(V)),Q.m=null,Q.P=!0,__(Q,m)}function Bh(m){null!=m.C&&(R.clearTimeout(m.C),m.C=null)}function q0(m,V){var Q=null;if(m.g==V){Bh(m),bp(m),m.g=null;var Ne=2}else{if(!xm(m.h,V))return;Q=V.D,yp(m.h,V),Ne=1}if(0!=m.G)if(V.o)if(1==Ne){Q=V.m?V.m.length:0,V=Date.now()-V.F;var qt=m.B;os(Ne=hp(),new hd(Ne,Q)),zm(m)}else Hm(m);else if(3==(qt=V.s)||0==qt&&0=m.h.j-(m.s?1:0)||(m.s?(m.i=V.D.concat(m.i),0):1==m.G||2==m.G||m.B>=(m.Va?0:m.Wa)||(m.s=fp(yt(m.Ga,m,V),N_(m,m.B)),m.B++,0)))}(m,V)||2==Ne&&Gm(m)))switch(Q&&0{Ne.abort(),vc(0,0,!1,V)},1e4);fetch(m,{signal:Ne.signal}).then(hn=>{clearTimeout(qt),vc(0,0,!!hn.ok,V)}).catch(()=>{clearTimeout(qt),vc(0,0,!1,V)})}(Ne.toString(),Q)}else Do(2);m.G=0,m.l&&m.l.sa(V),wp(m),x_(m)}function wp(m){if(m.G=0,m.ka=[],m.l){const V=Om(m.h);(0!=V.length||0!=m.i.length)&&(Ln(m.ka,V),Ln(m.ka,m.i),m.h.i.length=0,Wn(m.i),m.i.length=0),m.l.ra()}}function k_(m,V,Q){var Ne=Q instanceof gc?al(Q):new gc(Q);if(""!=Ne.g)V&&(Ne.g=V+"."+Ne.g),md(Ne,Ne.s);else{var qt=R.location;Ne=qt.protocol,V=V?V+"."+qt.hostname:qt.hostname,qt=+qt.port;var hn=new gc(null);Ne&&gd(hn,Ne),V&&(hn.g=V),qt&&md(hn,qt),Q&&(hn.l=Q),Ne=hn}return V=m.ya,(Q=m.D)&&V&&co(Ne,Q,V),co(Ne,"VER",m.la),Lh(m,Ne),Ne}function F_(m,V,Q){if(V&&!m.J)throw Error("Can't create secondary domain capable XhrIo object.");return(V=new Oo(m.Ca&&!m.pa?new Ap({eb:Q}):m.pa)).Ha(m.J),V}function Uh(){}function Sp(){}function qs(m,V){vs.call(this),this.g=new M_(V),this.l=m,this.h=V&&V.messageUrlParams||null,m=V&&V.messageHeaders||null,V&&V.clientProtocolHeaderRequired&&(m?m["X-Client-Protocol"]="webchannel":m={"X-Client-Protocol":"webchannel"}),this.g.o=m,m=V&&V.initMessageHeaders||null,V&&V.messageContentType&&(m?m["X-WebChannel-Content-Type"]=V.messageContentType:m={"X-WebChannel-Content-Type":V.messageContentType}),V&&V.va&&(m?m["X-WebChannel-Client-Profile"]=V.va:m={"X-WebChannel-Client-Profile":V.va}),this.g.S=m,(m=V&&V.Sb)&&!Gr(m)&&(this.g.m=m),this.v=V&&V.supportsCrossDomainXhr||!1,this.u=V&&V.sendRawJson||!1,(V=V&&V.httpSessionIdParam)&&!Gr(V)&&(this.g.D=V,null!==(m=this.h)&&V in m&&V in(m=this.h)&&delete m[V]),this.j=new Ed(this)}function L_(m){sl.call(this),m.__headers__&&(this.headers=m.__headers__,this.statusCode=m.__status__,delete m.__headers__,delete m.__status__);var V=m.__sm__;if(V){e:{for(const Q in V){m=Q;break e}m=void 0}(this.i=m)&&(m=this.i,V=null!==V&&m in V?V[m]:void 0),this.data=V}else this.data=m}function V_(){cd.call(this),this.status=1}function Ed(m){this.g=m}(l=Oo.prototype).Ha=function(m){this.J=m},l.ea=function(m,V,Q,Ne){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+m);V=V?V.toUpperCase():"GET",this.D=m,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():Rm.g(),this.v=function wm(m){return m.h||(m.h=m.i())}(this.o?this.o:Rm),this.g.onreadystatechange=yt(this.Ea,this);try{this.B=!0,this.g.open(V,String(m),!0),this.B=!1}catch(hn){return void z0(this,hn)}if(m=Q||"",Q=new Map(this.headers),Ne)if(Object.getPrototypeOf(Ne)===Object.prototype)for(var qt in Ne)Q.set(qt,Ne[qt]);else{if("function"!=typeof Ne.keys||"function"!=typeof Ne.get)throw Error("Unknown input type for opt_headers: "+String(Ne));for(const hn of Ne.keys())Q.set(hn,Ne.get(hn))}Ne=Array.from(Q.keys()).find(hn=>"content-type"==hn.toLowerCase()),qt=R.FormData&&m instanceof R.FormData,!(0<=Array.prototype.indexOf.call(lA,V,void 0))||Ne||qt||Q.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[hn,nr]of Q)this.g.setRequestHeader(hn,nr);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{W0(this),this.u=!0,this.g.send(m),this.u=!1}catch(hn){z0(this,hn)}},l.abort=function(m){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=m||7,os(this,"complete"),os(this,"abort"),jm(this))},l.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),jm(this,!0)),Oo.aa.N.call(this)},l.Ea=function(){this.s||(this.B||this.u||this.j?G0(this):this.bb())},l.bb=function(){G0(this)},l.isActive=function(){return!!this.g},l.Z=function(){try{return 2=this.R)){var m=2*this.R;this.j.info("BP detection timer enabled: "+m),this.A=fp(yt(this.ab,this),m)}},l.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,Do(10),Fh(this),X0(this))},l.Za=function(){null!=this.C&&(this.C=null,Fh(this),Gm(this),Do(19))},l.fb=function(m){m?(this.j.info("Successfully pinged google.com"),Do(2)):(this.j.info("Failed to ping google.com"),Do(1))},l.isActive=function(){return!!this.l&&this.l.isActive(this)},(l=Uh.prototype).ua=function(){},l.ta=function(){},l.sa=function(){},l.ra=function(){},l.isActive=function(){return!0},l.Na=function(){},Sp.prototype.g=function(m,V){return new qs(m,V)},Rn(qs,vs),qs.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},qs.prototype.close=function(){P_(this.g)},qs.prototype.o=function(m){var V=this.g;if("string"==typeof m){var Q={};Q.__data__=m,m=Q}else this.u&&((Q={}).__data__=Sh(m),m=Q);V.i.push(new I_(V.Ya++,m)),3==V.G&&zm(V)},qs.prototype.N=function(){this.g.l=null,delete this.j,P_(this.g),delete this.g,qs.aa.N.call(this)},Rn(L_,sl),Rn(V_,cd),Rn(Ed,Uh),Ed.prototype.ua=function(){os(this.g,"a")},Ed.prototype.ta=function(m){os(this.g,new L_(m))},Ed.prototype.sa=function(m){os(this.g,new V_)},Ed.prototype.ra=function(){os(this.g,"b")},Sp.prototype.createWebChannel=Sp.prototype.g,qs.prototype.send=qs.prototype.o,qs.prototype.open=qs.prototype.m,qs.prototype.close=qs.prototype.close,$e=mt.createWebChannelTransport=function(){return new Sp},_e=mt.getStatEventTarget=function(){return hp()},Ze=mt.Event=yu,Te=mt.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},gp.NO_ERROR=0,gp.TIMEOUT=8,gp.HTTP_ERROR=6,It=mt.ErrorCode=gp,g_.COMPLETE="complete",Tt=mt.EventType=g_,ud.EventType=fc,fc.OPEN="a",fc.CLOSE="b",fc.ERROR="c",fc.MESSAGE="d",vs.prototype.listen=vs.prototype.K,zt=mt.WebChannel=ud,Dt=mt.FetchXmlHttpFactory=Ap,Oo.prototype.listenOnce=Oo.prototype.L,Oo.prototype.getLastError=Oo.prototype.Ka,Oo.prototype.getLastErrorCode=Oo.prototype.Ba,Oo.prototype.getStatus=Oo.prototype.Z,Oo.prototype.getResponseJson=Oo.prototype.Oa,Oo.prototype.getResponseText=Oo.prototype.oa,Oo.prototype.send=Oo.prototype.ea,Oo.prototype.setWithCredentials=Oo.prototype.Ha,xt=mt.XhrIo=Oo}).apply(typeof at<"u"?at:typeof self<"u"?self:typeof window<"u"?window:{});const Le="@firebase/firestore";class Oe{constructor(n){this.uid=n}isAuthenticated(){return null!=this.uid}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(n){return n.uid===this.uid}}Oe.UNAUTHENTICATED=new Oe(null),Oe.GOOGLE_CREDENTIALS=new Oe("google-credentials-uid"),Oe.FIRST_PARTY=new Oe("first-party-uid"),Oe.MOCK_USER=new Oe("mock-user");let Ct="10.12.1";const kt=new tt.Vy("@firebase/firestore");function Cn(){return kt.logLevel}function st(l,...n){if(kt.logLevel<=tt.$b.DEBUG){const i=n.map(Re);kt.debug(`Firestore (${Ct}): ${l}`,...i)}}function cn(l,...n){if(kt.logLevel<=tt.$b.ERROR){const i=n.map(Re);kt.error(`Firestore (${Ct}): ${l}`,...i)}}function vt(l,...n){if(kt.logLevel<=tt.$b.WARN){const i=n.map(Re);kt.warn(`Firestore (${Ct}): ${l}`,...i)}}function Re(l){if("string"==typeof l)return l;try{return JSON.stringify(l)}catch{return l}}function G(l="Unexpected state"){const n=`FIRESTORE (${Ct}) INTERNAL ASSERTION FAILED: `+l;throw cn(n),new Error(n)}function X(l,n){l||G()}function ue(l,n){return l}const Ee={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class Ve extends Se.g{constructor(n,i){super(n,i),this.code=n,this.message=i,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}class ut{constructor(){this.promise=new Promise((n,i)=>{this.resolve=n,this.reject=i})}}class fn{constructor(n,i){this.user=i,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${n}`)}}class xn{getToken(){return Promise.resolve(null)}invalidateToken(){}start(n,i){n.enqueueRetryable(()=>i(Oe.UNAUTHENTICATED))}shutdown(){}}class un{constructor(n){this.token=n,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(n,i){this.changeListener=i,n.enqueueRetryable(()=>i(this.token.user))}shutdown(){this.changeListener=null}}class Je{constructor(n){this.t=n,this.currentUser=Oe.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(n,i){var s=this;let u=this.i;const p=q=>this.i!==u?(u=this.i,i(q)):Promise.resolve();let _=new ut;this.o=()=>{this.i++,this.currentUser=this.u(),_.resolve(),_=new ut,n.enqueueRetryable(()=>p(this.currentUser))};const R=()=>{const q=_;n.enqueueRetryable((0,he.A)(function*(){yield q.promise,yield p(s.currentUser)}))},k=q=>{st("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=q,this.auth.addAuthTokenListener(this.o),R()};this.t.onInit(q=>k(q)),setTimeout(()=>{if(!this.auth){const q=this.t.getImmediate({optional:!0});q?k(q):(st("FirebaseAuthCredentialsProvider","Auth not yet detected"),_.resolve(),_=new ut)}},0),R()}getToken(){const n=this.i,i=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(i).then(s=>this.i!==n?(st("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):s?(X("string"==typeof s.accessToken),new fn(s.accessToken,this.currentUser)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.auth.removeAuthTokenListener(this.o)}u(){const n=this.auth&&this.auth.getUid();return X(null===n||"string"==typeof n),new Oe(n)}}class Sn{constructor(n,i,s){this.l=n,this.h=i,this.P=s,this.type="FirstParty",this.user=Oe.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set("X-Goog-AuthUser",this.l);const n=this.T();return n&&this.I.set("Authorization",n),this.h&&this.I.set("X-Goog-Iam-Authorization-Token",this.h),this.I}}class kn{constructor(n,i,s){this.l=n,this.h=i,this.P=s}getToken(){return Promise.resolve(new Sn(this.l,this.h,this.P))}start(n,i){n.enqueueRetryable(()=>i(Oe.FIRST_PARTY))}shutdown(){}invalidateToken(){}}class On{constructor(n){this.value=n,this.type="AppCheck",this.headers=new Map,n&&n.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class or{constructor(n){this.A=n,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(n,i){const s=p=>{null!=p.error&&st("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${p.error.message}`);const _=p.token!==this.R;return this.R=p.token,st("FirebaseAppCheckTokenProvider",`Received ${_?"new":"existing"} token.`),_?i(p.token):Promise.resolve()};this.o=p=>{n.enqueueRetryable(()=>s(p))};const u=p=>{st("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=p,this.appCheck.addTokenListener(this.o)};this.A.onInit(p=>u(p)),setTimeout(()=>{if(!this.appCheck){const p=this.A.getImmediate({optional:!0});p?u(p):st("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}},0)}getToken(){const n=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(n).then(i=>i?(X("string"==typeof i.token),this.R=i.token,new On(i.token)):null):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.appCheck.removeTokenListener(this.o)}}function cr(l){const n=typeof self<"u"&&(self.crypto||self.msCrypto),i=new Uint8Array(l);if(n&&"function"==typeof n.getRandomValues)n.getRandomValues(i);else for(let s=0;sn?1:0}function Lt(l,n,i){return l.length===n.length&&l.every((s,u)=>i(s,n[u]))}class yn{constructor(n,i){if(this.seconds=n,this.nanoseconds=i,i<0)throw new Ve(Ee.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(i>=1e9)throw new Ve(Ee.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+i);if(n<-62135596800)throw new Ve(Ee.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n);if(n>=253402300800)throw new Ve(Ee.INVALID_ARGUMENT,"Timestamp seconds out of range: "+n)}static now(){return yn.fromMillis(Date.now())}static fromDate(n){return yn.fromMillis(n.getTime())}static fromMillis(n){const i=Math.floor(n/1e3),s=Math.floor(1e6*(n-1e3*i));return new yn(i,s)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(n){return this.seconds===n.seconds?nt(this.nanoseconds,n.nanoseconds):nt(this.seconds,n.seconds)}isEqual(n){return n.seconds===this.seconds&&n.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){return String(this.seconds- -62135596800).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}class En{constructor(n){this.timestamp=n}static fromTimestamp(n){return new En(n)}static min(){return new En(new yn(0,0))}static max(){return new En(new yn(253402300799,999999999))}compareTo(n){return this.timestamp._compareTo(n.timestamp)}isEqual(n){return this.timestamp.isEqual(n.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}class Fr{constructor(n,i,s){void 0===i?i=0:i>n.length&&G(),void 0===s?s=n.length-i:s>n.length-i&&G(),this.segments=n,this.offset=i,this.len=s}get length(){return this.len}isEqual(n){return 0===Fr.comparator(this,n)}child(n){const i=this.segments.slice(this.offset,this.limit());return n instanceof Fr?n.forEach(s=>{i.push(s)}):i.push(n),this.construct(i)}limit(){return this.offset+this.length}popFirst(n){return this.construct(this.segments,this.offset+(n=void 0===n?1:n),this.length-n)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(n){return this.segments[this.offset+n]}isEmpty(){return 0===this.length}isPrefixOf(n){if(n.length_)return 1}return n.lengthi.length?1:0}}class Vn extends Fr{construct(n,i,s){return new Vn(n,i,s)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...n){const i=[];for(const s of n){if(s.indexOf("//")>=0)throw new Ve(Ee.INVALID_ARGUMENT,`Invalid segment (${s}). Paths must not contain // in them.`);i.push(...s.split("/").filter(u=>u.length>0))}return new Vn(i)}static emptyPath(){return new Vn([])}}const $n=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class In extends Fr{construct(n,i,s){return new In(n,i,s)}static isValidIdentifier(n){return $n.test(n)}canonicalString(){return this.toArray().map(n=>(n=n.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),In.isValidIdentifier(n)||(n="`"+n+"`"),n)).join(".")}toString(){return this.canonicalString()}isKeyField(){return 1===this.length&&"__name__"===this.get(0)}static keyField(){return new In(["__name__"])}static fromServerFormat(n){const i=[];let s="",u=0;const p=()=>{if(0===s.length)throw new Ve(Ee.INVALID_ARGUMENT,`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);i.push(s),s=""};let _=!1;for(;u=2&&this.path.get(this.path.length-2)===n}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(n){return null!==n&&0===Vn.comparator(this.path,n.path)}toString(){return this.path.toString()}static comparator(n,i){return Vn.comparator(n.path,i.path)}static isDocumentKey(n){return n.length%2==0}static fromSegments(n){return new on(new Vn(n.slice()))}}class Br{constructor(n,i,s){this.readTime=n,this.documentKey=i,this.largestBatchId=s}static min(){return new Br(En.min(),on.empty(),-1)}static max(){return new Br(En.max(),on.empty(),-1)}}function ar(l,n){let i=l.readTime.compareTo(n.readTime);return 0!==i?i:(i=on.comparator(l.documentKey,n.documentKey),0!==i?i:nt(l.largestBatchId,n.largestBatchId))}const Lr="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class li{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(n){this.onCommittedListeners.push(n)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach(n=>n())}}function Di(l){return Zr.apply(this,arguments)}function Zr(){return(Zr=(0,he.A)(function*(l){if(l.code!==Ee.FAILED_PRECONDITION||l.message!==Lr)throw l;st("LocalStore","Unexpectedly lost primary lease")})).apply(this,arguments)}class ve{constructor(n){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,n(i=>{this.isDone=!0,this.result=i,this.nextCallback&&this.nextCallback(i)},i=>{this.isDone=!0,this.error=i,this.catchCallback&&this.catchCallback(i)})}catch(n){return this.next(void 0,n)}next(n,i){return this.callbackAttached&&G(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(i,this.error):this.wrapSuccess(n,this.result):new ve((s,u)=>{this.nextCallback=p=>{this.wrapSuccess(n,p).next(s,u)},this.catchCallback=p=>{this.wrapFailure(i,p).next(s,u)}})}toPromise(){return new Promise((n,i)=>{this.next(n,i)})}wrapUserFunction(n){try{const i=n();return i instanceof ve?i:ve.resolve(i)}catch(i){return ve.reject(i)}}wrapSuccess(n,i){return n?this.wrapUserFunction(()=>n(i)):ve.resolve(i)}wrapFailure(n,i){return n?this.wrapUserFunction(()=>n(i)):ve.reject(i)}static resolve(n){return new ve((i,s)=>{i(n)})}static reject(n){return new ve((i,s)=>{s(n)})}static waitFor(n){return new ve((i,s)=>{let u=0,p=0,_=!1;n.forEach(R=>{++u,R.next(()=>{++p,_&&p===u&&i()},k=>s(k))}),_=!0,p===u&&i()})}static or(n){let i=ve.resolve(!1);for(const s of n)i=i.next(u=>u?ve.resolve(u):s());return i}static forEach(n,i){const s=[];return n.forEach((u,p)=>{s.push(i.call(this,u,p))}),this.waitFor(s)}static mapArray(n,i){return new ve((s,u)=>{const p=n.length,_=new Array(p);let R=0;for(let k=0;k{_[q]=Ae,++R,R===p&&s(_)},Ae=>u(Ae))}})}static doWhile(n,i){return new ve((s,u)=>{const p=()=>{!0===n()?i().next(()=>{p()},u):s()};p()})}}function Ge(l){return"IndexedDbTransactionError"===l.name}let Tn=(()=>{class l{constructor(i,s){this.previousValue=i,s&&(s.sequenceNumberHandler=u=>this.ie(u),this.se=u=>s.writeSequenceNumber(u))}ie(i){return this.previousValue=Math.max(i,this.previousValue),this.previousValue}next(){const i=++this.previousValue;return this.se&&this.se(i),i}}return l.oe=-1,l})();function Xn(l){return null==l}function dn(l){return 0===l&&1/l==-1/0}function Rr(l){let n=0;for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n++;return n}function di(l,n){for(const i in l)Object.prototype.hasOwnProperty.call(l,i)&&n(i,l[i])}function Yr(l){for(const n in l)if(Object.prototype.hasOwnProperty.call(l,n))return!1;return!0}class Hr{constructor(n,i){this.comparator=n,this.root=i||tr.EMPTY}insert(n,i){return new Hr(this.comparator,this.root.insert(n,i,this.comparator).copy(null,null,tr.BLACK,null,null))}remove(n){return new Hr(this.comparator,this.root.remove(n,this.comparator).copy(null,null,tr.BLACK,null,null))}get(n){let i=this.root;for(;!i.isEmpty();){const s=this.comparator(n,i.key);if(0===s)return i.value;s<0?i=i.left:s>0&&(i=i.right)}return null}indexOf(n){let i=0,s=this.root;for(;!s.isEmpty();){const u=this.comparator(n,s.key);if(0===u)return i+s.left.size;u<0?s=s.left:(i+=s.left.size+1,s=s.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(n){return this.root.inorderTraversal(n)}forEach(n){this.inorderTraversal((i,s)=>(n(i,s),!1))}toString(){const n=[];return this.inorderTraversal((i,s)=>(n.push(`${i}:${s}`),!1)),`{${n.join(", ")}}`}reverseTraversal(n){return this.root.reverseTraversal(n)}getIterator(){return new _i(this.root,null,this.comparator,!1)}getIteratorFrom(n){return new _i(this.root,n,this.comparator,!1)}getReverseIterator(){return new _i(this.root,null,this.comparator,!0)}getReverseIteratorFrom(n){return new _i(this.root,n,this.comparator,!0)}}class _i{constructor(n,i,s,u){this.isReverse=u,this.nodeStack=[];let p=1;for(;!n.isEmpty();)if(p=i?s(n.key,i):1,i&&u&&(p*=-1),p<0)n=this.isReverse?n.left:n.right;else{if(0===p){this.nodeStack.push(n);break}this.nodeStack.push(n),n=this.isReverse?n.right:n.left}}getNext(){let n=this.nodeStack.pop();const i={key:n.key,value:n.value};if(this.isReverse)for(n=n.left;!n.isEmpty();)this.nodeStack.push(n),n=n.right;else for(n=n.right;!n.isEmpty();)this.nodeStack.push(n),n=n.left;return i}hasNext(){return this.nodeStack.length>0}peek(){if(0===this.nodeStack.length)return null;const n=this.nodeStack[this.nodeStack.length-1];return{key:n.key,value:n.value}}}class tr{constructor(n,i,s,u,p){this.key=n,this.value=i,this.color=null!=s?s:tr.RED,this.left=null!=u?u:tr.EMPTY,this.right=null!=p?p:tr.EMPTY,this.size=this.left.size+1+this.right.size}copy(n,i,s,u,p){return new tr(null!=n?n:this.key,null!=i?i:this.value,null!=s?s:this.color,null!=u?u:this.left,null!=p?p:this.right)}isEmpty(){return!1}inorderTraversal(n){return this.left.inorderTraversal(n)||n(this.key,this.value)||this.right.inorderTraversal(n)}reverseTraversal(n){return this.right.reverseTraversal(n)||n(this.key,this.value)||this.left.reverseTraversal(n)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(n,i,s){let u=this;const p=s(n,u.key);return u=p<0?u.copy(null,null,null,u.left.insert(n,i,s),null):0===p?u.copy(null,i,null,null,null):u.copy(null,null,null,null,u.right.insert(n,i,s)),u.fixUp()}removeMin(){if(this.left.isEmpty())return tr.EMPTY;let n=this;return n.left.isRed()||n.left.left.isRed()||(n=n.moveRedLeft()),n=n.copy(null,null,null,n.left.removeMin(),null),n.fixUp()}remove(n,i){let s,u=this;if(i(n,u.key)<0)u.left.isEmpty()||u.left.isRed()||u.left.left.isRed()||(u=u.moveRedLeft()),u=u.copy(null,null,null,u.left.remove(n,i),null);else{if(u.left.isRed()&&(u=u.rotateRight()),u.right.isEmpty()||u.right.isRed()||u.right.left.isRed()||(u=u.moveRedRight()),0===i(n,u.key)){if(u.right.isEmpty())return tr.EMPTY;s=u.right.min(),u=u.copy(s.key,s.value,null,null,u.right.removeMin())}u=u.copy(null,null,null,null,u.right.remove(n,i))}return u.fixUp()}isRed(){return this.color}fixUp(){let n=this;return n.right.isRed()&&!n.left.isRed()&&(n=n.rotateLeft()),n.left.isRed()&&n.left.left.isRed()&&(n=n.rotateRight()),n.left.isRed()&&n.right.isRed()&&(n=n.colorFlip()),n}moveRedLeft(){let n=this.colorFlip();return n.right.left.isRed()&&(n=n.copy(null,null,null,null,n.right.rotateRight()),n=n.rotateLeft(),n=n.colorFlip()),n}moveRedRight(){let n=this.colorFlip();return n.left.left.isRed()&&(n=n.rotateRight(),n=n.colorFlip()),n}rotateLeft(){const n=this.copy(null,null,tr.RED,null,this.right.left);return this.right.copy(null,null,this.color,n,null)}rotateRight(){const n=this.copy(null,null,tr.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,n)}colorFlip(){const n=this.left.copy(null,null,!this.left.color,null,null),i=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,n,i)}checkMaxDepth(){const n=this.check();return Math.pow(2,n)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw G();const n=this.left.check();if(n!==this.right.check())throw G();return n+(this.isRed()?0:1)}}tr.EMPTY=null,tr.RED=!0,tr.BLACK=!1,tr.EMPTY=new class{constructor(){this.size=0}get key(){throw G()}get value(){throw G()}get color(){throw G()}get left(){throw G()}get right(){throw G()}copy(n,i,s,u,p){return this}insert(n,i,s){return new tr(n,i)}remove(n,i){return this}isEmpty(){return!0}inorderTraversal(n){return!1}reverseTraversal(n){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};class Zn{constructor(n){this.comparator=n,this.data=new Hr(this.comparator)}has(n){return null!==this.data.get(n)}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(n){return this.data.indexOf(n)}forEach(n){this.data.inorderTraversal((i,s)=>(n(i),!1))}forEachInRange(n,i){const s=this.data.getIteratorFrom(n[0]);for(;s.hasNext();){const u=s.getNext();if(this.comparator(u.key,n[1])>=0)return;i(u.key)}}forEachWhile(n,i){let s;for(s=void 0!==i?this.data.getIteratorFrom(i):this.data.getIterator();s.hasNext();)if(!n(s.getNext().key))return}firstAfterOrEqual(n){const i=this.data.getIteratorFrom(n);return i.hasNext()?i.getNext().key:null}getIterator(){return new mo(this.data.getIterator())}getIteratorFrom(n){return new mo(this.data.getIteratorFrom(n))}add(n){return this.copy(this.data.remove(n).insert(n,!0))}delete(n){return this.has(n)?this.copy(this.data.remove(n)):this}isEmpty(){return this.data.isEmpty()}unionWith(n){let i=this;return i.size{i=i.add(s)}),i}isEqual(n){if(!(n instanceof Zn)||this.size!==n.size)return!1;const i=this.data.getIterator(),s=n.data.getIterator();for(;i.hasNext();){const u=i.getNext().key,p=s.getNext().key;if(0!==this.comparator(u,p))return!1}return!0}toArray(){const n=[];return this.forEach(i=>{n.push(i)}),n}toString(){const n=[];return this.forEach(i=>n.push(i)),"SortedSet("+n.toString()+")"}copy(n){const i=new Zn(this.comparator);return i.data=n,i}}class mo{constructor(n){this.iter=n}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}class yi{constructor(n){this.fields=n,n.sort(In.comparator)}static empty(){return new yi([])}unionWith(n){let i=new Zn(In.comparator);for(const s of this.fields)i=i.add(s);for(const s of n)i=i.add(s);return new yi(i.toArray())}covers(n){for(const i of this.fields)if(i.isPrefixOf(n))return!0;return!1}isEqual(n){return Lt(this.fields,n.fields,(i,s)=>i.isEqual(s))}}class vo extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}class ui{constructor(n){this.binaryString=n}static fromBase64String(n){const i=function(u){try{return atob(u)}catch(p){throw typeof DOMException<"u"&&p instanceof DOMException?new vo("Invalid base64 string: "+p):p}}(n);return new ui(i)}static fromUint8Array(n){const i=function(u){let p="";for(let _=0;_noe(i,n))}function Ce(l,n){if(l===n)return 0;const i=H(l),s=H(n);if(i!==s)return nt(i,s);switch(i){case 0:case 9007199254740991:return 0;case 1:return nt(l.booleanValue,n.booleanValue);case 2:return function(p,_){const R=fe(p.integerValue||p.doubleValue),k=fe(_.integerValue||_.doubleValue);return Rk?1:R===k?0:isNaN(R)?isNaN(k)?0:-1:1}(l,n);case 3:return dt(l.timestampValue,n.timestampValue);case 4:return dt(ct(l),ct(n));case 5:return nt(l.stringValue,n.stringValue);case 6:return function(p,_){const R=K(p),k=K(_);return R.compareTo(k)}(l.bytesValue,n.bytesValue);case 7:return function(p,_){const R=p.split("/"),k=_.split("/");for(let q=0;qn.mapValue.fields[i]=pn(s)),n}if(l.arrayValue){const n={arrayValue:{values:[]}};for(let i=0;i<(l.arrayValue.values||[]).length;++i)n.arrayValue.values[i]=pn(l.arrayValue.values[i]);return n}return Object.assign({},l)}function vn(l){return"__max__"===(((l.mapValue||{}).fields||{}).__type__||{}).stringValue}class Kn{constructor(n){this.value=n}static empty(){return new Kn({mapValue:{}})}field(n){if(n.isEmpty())return this.value;{let i=this.value;for(let s=0;s{if(!i.isImmediateParentOf(R)){const k=this.getFieldsMap(i);this.applyChanges(k,s,u),s={},u=[],i=R.popLast()}_?s[R.lastSegment()]=pn(_):u.push(R.lastSegment())});const p=this.getFieldsMap(i);this.applyChanges(p,s,u)}delete(n){const i=this.field(n.popLast());en(i)&&i.mapValue.fields&&delete i.mapValue.fields[n.lastSegment()]}isEqual(n){return oe(this.value,n.value)}getFieldsMap(n){let i=this.value;i.mapValue.fields||(i.mapValue={fields:{}});for(let s=0;sn[u]=p);for(const u of s)delete n[u]}clone(){return new Kn(pn(this.value))}}function Qr(l){const n=[];return di(l.fields,(i,s)=>{const u=new In([i]);if(en(s)){const p=Qr(s.mapValue).fields;if(0===p.length)n.push(u);else for(const _ of p)n.push(u.child(_))}else n.push(u)}),new yi(n)}class Wr{constructor(n,i,s,u,p,_,R){this.key=n,this.documentType=i,this.version=s,this.readTime=u,this.createTime=p,this.data=_,this.documentState=R}static newInvalidDocument(n){return new Wr(n,0,En.min(),En.min(),En.min(),Kn.empty(),0)}static newFoundDocument(n,i,s,u){return new Wr(n,1,i,En.min(),s,u,0)}static newNoDocument(n,i){return new Wr(n,2,i,En.min(),En.min(),Kn.empty(),0)}static newUnknownDocument(n,i){return new Wr(n,3,i,En.min(),En.min(),Kn.empty(),2)}convertToFoundDocument(n,i){return!this.createTime.isEqual(En.min())||2!==this.documentType&&0!==this.documentType||(this.createTime=n),this.version=n,this.documentType=1,this.data=i,this.documentState=0,this}convertToNoDocument(n){return this.version=n,this.documentType=2,this.data=Kn.empty(),this.documentState=0,this}convertToUnknownDocument(n){return this.version=n,this.documentType=3,this.data=Kn.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=En.min(),this}setReadTime(n){return this.readTime=n,this}get hasLocalMutations(){return 1===this.documentState}get hasCommittedMutations(){return 2===this.documentState}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return 0!==this.documentType}isFoundDocument(){return 1===this.documentType}isNoDocument(){return 2===this.documentType}isUnknownDocument(){return 3===this.documentType}isEqual(n){return n instanceof Wr&&this.key.isEqual(n.key)&&this.version.isEqual(n.version)&&this.documentType===n.documentType&&this.documentState===n.documentState&&this.data.isEqual(n.data)}mutableCopy(){return new Wr(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}class kr{constructor(n,i){this.position=n,this.inclusive=i}}function ki(l,n,i){let s=0;for(let u=0;u":return n>0;case">=":return n>=0;default:return G()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class Oi extends Jo{constructor(n,i){super(),this.filters=n,this.op=i,this.ae=null}static create(n,i){return new Oi(n,i)}matches(n){return Wo(this)?void 0===this.filters.find(i=>!i.matches(n)):void 0!==this.filters.find(i=>i.matches(n))}getFlattenedFilters(){return null!==this.ae||(this.ae=this.filters.reduce((n,i)=>n.concat(i.getFlattenedFilters()),[])),this.ae}getFilters(){return Object.assign([],this.filters)}}function Wo(l){return"and"===l.op}function Ko(l){return function wo(l){for(const n of l.filters)if(n instanceof Oi)return!1;return!0}(l)&&Wo(l)}function ws(l){if(l instanceof Kr)return l.field.canonicalString()+l.op.toString()+vr(l.value);if(Ko(l))return l.filters.map(n=>ws(n)).join(",");{const n=l.filters.map(i=>ws(i)).join(",");return`${l.op}(${n})`}}function ho(l,n){return l instanceof Kr?(s=l,(u=n)instanceof Kr&&s.op===u.op&&s.field.isEqual(u.field)&&oe(s.value,u.value)):l instanceof Oi?function(s,u){return u instanceof Oi&&s.op===u.op&&s.filters.length===u.filters.length&&s.filters.reduce((p,_,R)=>p&&ho(_,u.filters[R]),!0)}(l,n):void G();var s,u}function Jr(l){return l instanceof Kr?`${(i=l).field.canonicalString()} ${i.op} ${vr(i.value)}`:l instanceof Oi?function(i){return i.op.toString()+" {"+i.getFilters().map(Jr).join(" ,")+"}"}(l):"Filter";var i}class Ao extends Kr{constructor(n,i,s){super(n,i,s),this.key=on.fromName(s.referenceValue)}matches(n){const i=on.comparator(n.key,this.key);return this.matchesComparison(i)}}class Js extends Kr{constructor(n,i){super(n,"in",i),this.keys=Us(0,i)}matches(n){return this.keys.some(i=>i.isEqual(n.key))}}class Ss extends Kr{constructor(n,i){super(n,"not-in",i),this.keys=Us(0,i)}matches(n){return!this.keys.some(i=>i.isEqual(n.key))}}function Us(l,n){var i;return((null===(i=n.arrayValue)||void 0===i?void 0:i.values)||[]).map(s=>on.fromName(s.referenceValue))}class Rs extends Kr{constructor(n,i){super(n,"array-contains",i)}matches(n){const i=n.data.field(this.field);return ot(i)&&P(i.arrayValue,this.value)}}class Zo extends Kr{constructor(n,i){super(n,"in",i)}matches(n){const i=n.data.field(this.field);return null!==i&&P(this.value.arrayValue,i)}}class ls extends Kr{constructor(n,i){super(n,"not-in",i)}matches(n){if(P(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const i=n.data.field(this.field);return null!==i&&!P(this.value.arrayValue,i)}}class Xo extends Kr{constructor(n,i){super(n,"array-contains-any",i)}matches(n){const i=n.data.field(this.field);return!(!ot(i)||!i.arrayValue.values)&&i.arrayValue.values.some(s=>P(this.value.arrayValue,s))}}class us{constructor(n,i=null,s=[],u=[],p=null,_=null,R=null){this.path=n,this.collectionGroup=i,this.orderBy=s,this.filters=u,this.limit=p,this.startAt=_,this.endAt=R,this.ue=null}}function Ms(l,n=null,i=[],s=[],u=null,p=null,_=null){return new us(l,n,i,s,u,p,_)}function ne(l){const n=ue(l);if(null===n.ue){let i=n.path.canonicalString();null!==n.collectionGroup&&(i+="|cg:"+n.collectionGroup),i+="|f:",i+=n.filters.map(s=>ws(s)).join(","),i+="|ob:",i+=n.orderBy.map(s=>{return(p=s).field.canonicalString()+p.dir;var p}).join(","),Xn(n.limit)||(i+="|l:",i+=n.limit),n.startAt&&(i+="|lb:",i+=n.startAt.inclusive?"b:":"a:",i+=n.startAt.position.map(s=>vr(s)).join(",")),n.endAt&&(i+="|ub:",i+=n.endAt.inclusive?"a:":"b:",i+=n.endAt.position.map(s=>vr(s)).join(",")),n.ue=i}return n.ue}function ee(l,n){if(l.limit!==n.limit||l.orderBy.length!==n.orderBy.length)return!1;for(let i=0;i0?n.explicitOrderBy[n.explicitOrderBy.length-1].dir:"asc";(function(_){let R=new Zn(In.comparator);return _.filters.forEach(k=>{k.getFlattenedFilters().forEach(q=>{q.isInequality()&&(R=R.add(q.field))})}),R})(n).forEach(p=>{i.has(p.canonicalString())||p.isKeyField()||n.ce.push(new Bi(p,s))}),i.has(In.keyField().canonicalString())||n.ce.push(new Bi(In.keyField(),s))}return n.ce}function zn(l){const n=ue(l);return n.le||(n.le=function pi(l,n){if("F"===l.limitType)return Ms(l.path,l.collectionGroup,n,l.filters,l.limit,l.startAt,l.endAt);{n=n.map(u=>new Bi(u.field,"desc"===u.dir?"asc":"desc"));const i=l.endAt?new kr(l.endAt.position,l.endAt.inclusive):null,s=l.startAt?new kr(l.startAt.position,l.startAt.inclusive):null;return Ms(l.path,l.collectionGroup,n,l.filters,l.limit,i,s)}}(n,an(l))),n.le}function Ei(l,n,i){return new B(l.path,l.collectionGroup,l.explicitOrderBy.slice(),l.filters.slice(),n,i,l.startAt,l.endAt)}function ao(l,n){return ee(zn(l),zn(n))&&l.limitType===n.limitType}function No(l){return`${ne(zn(l))}|lt:${l.limitType}`}function Ki(l){return`Query(target=${function(i){let s=i.path.canonicalString();return null!==i.collectionGroup&&(s+=" collectionGroup="+i.collectionGroup),i.filters.length>0&&(s+=`, filters: [${i.filters.map(u=>Jr(u)).join(", ")}]`),Xn(i.limit)||(s+=", limit: "+i.limit),i.orderBy.length>0&&(s+=`, orderBy: [${i.orderBy.map(u=>{return`${(_=u).field.canonicalString()} (${_.dir})`;var _}).join(", ")}]`),i.startAt&&(s+=", startAt: ",s+=i.startAt.inclusive?"b:":"a:",s+=i.startAt.position.map(u=>vr(u)).join(",")),i.endAt&&(s+=", endAt: ",s+=i.endAt.inclusive?"a:":"b:",s+=i.endAt.position.map(u=>vr(u)).join(",")),`Target(${s})`}(zn(l))}; limitType=${l.limitType})`}function Qi(l,n){return n.isFoundDocument()&&function(s,u){const p=u.key.path;return null!==s.collectionGroup?u.key.hasCollectionId(s.collectionGroup)&&s.path.isPrefixOf(p):on.isDocumentKey(s.path)?s.path.isEqual(p):s.path.isImmediateParentOf(p)}(l,n)&&function(s,u){for(const p of an(s))if(!p.field.isKeyField()&&null===u.data.field(p.field))return!1;return!0}(l,n)&&function(s,u){for(const p of s.filters)if(!p.matches(u))return!1;return!0}(l,n)&&(u=n,!((s=l).startAt&&!function(_,R,k){const q=ki(_,R,k);return _.inclusive?q<=0:q<0}(s.startAt,an(s),u)||s.endAt&&!function(_,R,k){const q=ki(_,R,k);return _.inclusive?q>=0:q>0}(s.endAt,an(s),u)));var s,u}function cs(l){return(n,i)=>{let s=!1;for(const u of an(l)){const p=ys(u,n,i);if(0!==p)return p;s=s||u.field.isKeyField()}return 0}}function ys(l,n,i){const s=l.field.isKeyField()?on.comparator(n.key,i.key):function(p,_,R){const k=_.data.field(p),q=R.data.field(p);return null!==k&&null!==q?Ce(k,q):G()}(l.field,n,i);switch(l.dir){case"asc":return s;case"desc":return-1*s;default:return G()}}class Eo{constructor(n,i){this.mapKeyFn=n,this.equalsFn=i,this.inner={},this.innerSize=0}get(n){const i=this.mapKeyFn(n),s=this.inner[i];if(void 0!==s)for(const[u,p]of s)if(this.equalsFn(u,n))return p}has(n){return void 0!==this.get(n)}set(n,i){const s=this.mapKeyFn(n),u=this.inner[s];if(void 0===u)return this.inner[s]=[[n,i]],void this.innerSize++;for(let p=0;p{for(const[u,p]of s)n(u,p)})}isEmpty(){return Yr(this.inner)}size(){return this.innerSize}}const ko=new Hr(on.comparator);function jr(){return ko}const Zi=new Hr(on.comparator);function eo(...l){let n=Zi;for(const i of l)n=n.insert(i.key,i);return n}function So(l){let n=Zi;return l.forEach((i,s)=>n=n.insert(i,s.overlayedDocument)),n}function Li(){return es()}function Ba(){return es()}function es(){return new Eo(l=>l.toString(),(l,n)=>l.isEqual(n))}const Ps=new Hr(on.comparator),cl=new Zn(on.comparator);function ei(...l){let n=cl;for(const i of l)n=n.add(i);return n}const dl=new Zn(nt);function Ua(l,n){if(l.useProto3Json){if(isNaN(n))return{doubleValue:"NaN"};if(n===1/0)return{doubleValue:"Infinity"};if(n===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:dn(n)?"-0":n}}function xs(l){return{integerValue:""+l}}function hl(l,n){return function wn(l){return"number"==typeof l&&Number.isInteger(l)&&!dn(l)&&l<=Number.MAX_SAFE_INTEGER&&l>=Number.MIN_SAFE_INTEGER}(n)?xs(n):Ua(l,n)}class $a{constructor(){this._=void 0}}function Ul(l,n,i){return l instanceof Os?function(u,p){const _={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:u.seconds,nanos:u.nanoseconds}}}};return p&&je(p)&&(p=Be(p)),p&&(_.fields.__previous_value__=p),{mapValue:_}}(i,n):l instanceof $s?ds(l,n):l instanceof Ns?zl(l,n):function(u,p){const _=jl(u,p),R=Ru(_)+Ru(u.Pe);return Fe(_)&&Fe(u.Pe)?xs(R):Ua(u.serializer,R)}(l,n)}function $l(l,n,i){return l instanceof $s?ds(l,n):l instanceof Ns?zl(l,n):i}function jl(l,n){return l instanceof hs?Fe(s=n)||(p=s)&&"doubleValue"in p?n:{integerValue:0}:null;var s,p}class Os extends $a{}class $s extends $a{constructor(n){super(),this.elements=n}}function ds(l,n){const i=Hl(n);for(const s of l.elements)i.some(u=>oe(u,s))||i.push(s);return{arrayValue:{values:i}}}class Ns extends $a{constructor(n){super(),this.elements=n}}function zl(l,n){let i=Hl(n);for(const s of l.elements)i=i.filter(u=>!oe(u,s));return{arrayValue:{values:i}}}class hs extends $a{constructor(n,i){super(),this.serializer=n,this.Pe=i}}function Ru(l){return fe(l.integerValue||l.doubleValue)}function Hl(l){return ot(l)&&l.arrayValue.values?l.arrayValue.values.slice():[]}class js{constructor(n,i){this.version=n,this.transformResults=i}}class Yi{constructor(n,i){this.updateTime=n,this.exists=i}static none(){return new Yi}static exists(n){return new Yi(void 0,n)}static updateTime(n){return new Yi(n)}get isNone(){return void 0===this.updateTime&&void 0===this.exists}isEqual(n){return this.exists===n.exists&&(this.updateTime?!!n.updateTime&&this.updateTime.isEqual(n.updateTime):!n.updateTime)}}function ya(l,n){return void 0!==l.updateTime?n.isFoundDocument()&&n.version.isEqual(l.updateTime):void 0===l.exists||l.exists===n.isFoundDocument()}class ja{}function Ea(l,n){if(!l.hasLocalMutations||n&&0===n.fields.length)return null;if(null===n)return l.isNoDocument()?new j(l.key,Yi.none()):new ea(l.key,l.data,Yi.none());{const i=l.data,s=Kn.empty();let u=new Zn(In.comparator);for(let p of n.fields)if(!u.has(p)){let _=i.field(p);null===_&&p.length>1&&(p=p.popLast(),_=i.field(p)),null===_?s.delete(p):s.set(p,_),u=u.add(p)}return new Co(l.key,s,new yi(u.toArray()),Yi.none())}}function za(l,n,i){l instanceof ea?function(u,p,_){const R=u.value.clone(),k=Ca(u.fieldTransforms,p,_.transformResults);R.setAll(k),p.convertToFoundDocument(_.version,R).setHasCommittedMutations()}(l,n,i):l instanceof Co?function(u,p,_){if(!ya(u.precondition,p))return void p.convertToUnknownDocument(_.version);const R=Ca(u.fieldTransforms,p,_.transformResults),k=p.data;k.setAll(Gl(u)),k.setAll(R),p.convertToFoundDocument(_.version,k).setHasCommittedMutations()}(l,n,i):n.convertToNoDocument(i.version).setHasCommittedMutations()}function ts(l,n,i,s){return l instanceof ea?function(p,_,R,k){if(!ya(p.precondition,_))return R;const q=p.value.clone(),Ae=T(p.fieldTransforms,k,_);return q.setAll(Ae),_.convertToFoundDocument(_.version,q).setHasLocalMutations(),null}(l,n,i,s):l instanceof Co?function(p,_,R,k){if(!ya(p.precondition,_))return R;const q=T(p.fieldTransforms,k,_),Ae=_.data;return Ae.setAll(Gl(p)),Ae.setAll(q),_.convertToFoundDocument(_.version,Ae).setHasLocalMutations(),null===R?null:R.unionWith(p.fieldMask.fields).unionWith(p.fieldTransforms.map(He=>He.field))}(l,n,i,s):(R=i,ya(l.precondition,_=n)?(_.convertToNoDocument(_.version).setHasLocalMutations(),null):R);var _,R}function Ia(l,n){let i=null;for(const s of l.fieldTransforms){const u=n.data.field(s.field),p=jl(s.transform,u||null);null!=p&&(null===i&&(i=Kn.empty()),i.set(s.field,p))}return i||null}function Aa(l,n){return l.type===n.type&&!!l.key.isEqual(n.key)&&!!l.precondition.isEqual(n.precondition)&&(u=n.fieldTransforms,!!(void 0===(s=l.fieldTransforms)&&void 0===u||s&&u&&Lt(s,u,(p,_)=>function Qo(l,n){return l.field.isEqual(n.field)&&(u=n.transform,(s=l.transform)instanceof $s&&u instanceof $s||s instanceof Ns&&u instanceof Ns?Lt(s.elements,u.elements,oe):s instanceof hs&&u instanceof hs?oe(s.Pe,u.Pe):s instanceof Os&&u instanceof Os);var s,u}(p,_))))&&(0===l.type?l.value.isEqual(n.value):1!==l.type||l.data.isEqual(n.data)&&l.fieldMask.isEqual(n.fieldMask));var s,u}class ea extends ja{constructor(n,i,s,u=[]){super(),this.key=n,this.value=i,this.precondition=s,this.fieldTransforms=u,this.type=0}getFieldMask(){return null}}class Co extends ja{constructor(n,i,s,u,p=[]){super(),this.key=n,this.data=i,this.fieldMask=s,this.precondition=u,this.fieldTransforms=p,this.type=1}getFieldMask(){return this.fieldMask}}function Gl(l){const n=new Map;return l.fieldMask.fields.forEach(i=>{if(!i.isEmpty()){const s=l.data.field(i);n.set(i,s)}}),n}function Ca(l,n,i){const s=new Map;X(l.length===i.length);for(let u=0;u{const p=n.get(u.key),_=p.overlayedDocument;let R=this.applyToLocalView(_,p.mutatedFields);R=i.has(u.key)?null:R;const k=Ea(_,R);null!==k&&s.set(u.key,k),_.isValidDocument()||_.convertToNoDocument(En.min())}),s}keys(){return this.mutations.reduce((n,i)=>n.add(i.key),ei())}isEqual(n){return this.batchId===n.batchId&&Lt(this.mutations,n.mutations,(i,s)=>Aa(i,s))&&Lt(this.baseMutations,n.baseMutations,(i,s)=>Aa(i,s))}}class De{constructor(n,i,s,u){this.batch=n,this.commitVersion=i,this.mutationResults=s,this.docVersions=u}static from(n,i,s){X(n.mutations.length===s.length);let u=function(){return Ps}();const p=n.mutations;for(let _=0;_=8)throw new Ni(`Invalid padding: ${i}`);if(s<0)throw new Ni(`Invalid hash count: ${s}`);if(n.length>0&&0===this.hashCount)throw new Ni(`Invalid hash count: ${s}`);if(0===n.length&&0!==i)throw new Ni(`Invalid padding when bitmap length is 0: ${i}`);this.Ie=8*n.length-i,this.Te=it.fromNumber(this.Ie)}Ee(n,i,s){let u=n.add(i.multiply(it.fromNumber(s)));return 1===u.compare(to)&&(u=new it([u.getBits(0),u.getBits(1)],0)),u.modulo(this.Te).toNumber()}de(n){return!!(this.bitmap[Math.floor(n/8)]&1<_.insert(R)),_}insert(n){if(0===this.Ie)return;const i=wi(n),[s,u]=Bn(i);for(let p=0;p0&&(this.we=!0,this.pe=n)}Ce(){let n=ei(),i=ei(),s=ei();return this.ge.forEach((u,p)=>{switch(p){case 0:n=n.add(u);break;case 2:i=i.add(u);break;case 1:s=s.add(u);break;default:G()}}),new Vi(this.pe,this.ye,n,i,s)}ve(){this.we=!1,this.ge=ta()}Fe(n,i){this.we=!0,this.ge=this.ge.insert(n,i)}Me(n){this.we=!0,this.ge=this.ge.remove(n)}xe(){this.fe+=1}Oe(){this.fe-=1,X(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class zs{constructor(n){this.Le=n,this.Be=new Map,this.ke=jr(),this.qe=qr(),this.Qe=new Hr(nt)}Ke(n){for(const i of n.Re)n.Ve&&n.Ve.isFoundDocument()?this.$e(i,n.Ve):this.Ue(i,n.key,n.Ve);for(const i of n.removedTargetIds)this.Ue(i,n.key,n.Ve)}We(n){this.forEachTarget(n,i=>{const s=this.Ge(i);switch(n.state){case 0:this.ze(i)&&s.De(n.resumeToken);break;case 1:s.Oe(),s.Se||s.ve(),s.De(n.resumeToken);break;case 2:s.Oe(),s.Se||this.removeTarget(i);break;case 3:this.ze(i)&&(s.Ne(),s.De(n.resumeToken));break;case 4:this.ze(i)&&(this.je(i),s.De(n.resumeToken));break;default:G()}})}forEachTarget(n,i){n.targetIds.length>0?n.targetIds.forEach(i):this.Be.forEach((s,u)=>{this.ze(u)&&i(u)})}He(n){const i=n.targetId,s=n.me.count,u=this.Je(i);if(u){const p=u.target;if(qe(p))if(0===s){const _=new on(p.path);this.Ue(i,_,Wr.newNoDocument(_,En.min()))}else X(1===s);else{const _=this.Ye(i);if(_!==s){const R=this.Ze(n),k=R?this.Xe(R,n,_):1;0!==k&&(this.je(i),this.Qe=this.Qe.insert(i,2===k?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch"))}}}}Ze(n){const i=n.me.unchangedNames;if(!i||!i.bits)return null;const{bits:{bitmap:s="",padding:u=0},hashCount:p=0}=i;let _,R;try{_=K(s).toUint8Array()}catch(k){if(k instanceof vo)return vt("Decoding the base64 bloom filter in existence filter failed ("+k.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw k}try{R=new ir(_,u,p)}catch(k){return vt(k instanceof Ni?"BloomFilter error: ":"Applying bloom filter failed: ",k),null}return 0===R.Ie?null:R}Xe(n,i,s){return i.me.count===s-this.nt(n,i.targetId)?0:2}nt(n,i){const s=this.Le.getRemoteKeysForTarget(i);let u=0;return s.forEach(p=>{const _=this.Le.tt(),R=`projects/${_.projectId}/databases/${_.database}/documents/${p.path.canonicalString()}`;n.mightContain(R)||(this.Ue(i,p,null),u++)}),u}rt(n){const i=new Map;this.Be.forEach((p,_)=>{const R=this.Je(_);if(R){if(p.current&&qe(R.target)){const k=new on(R.target.path);null!==this.ke.get(k)||this.it(_,k)||this.Ue(_,k,Wr.newNoDocument(k,n))}p.be&&(i.set(_,p.Ce()),p.ve())}});let s=ei();this.qe.forEach((p,_)=>{let R=!0;_.forEachWhile(k=>{const q=this.Je(k);return!q||"TargetPurposeLimboResolution"===q.purpose||(R=!1,!1)}),R&&(s=s.add(p))}),this.ke.forEach((p,_)=>_.setReadTime(n));const u=new lo(n,i,this.Qe,this.ke,s);return this.ke=jr(),this.qe=qr(),this.Qe=new Hr(nt),u}$e(n,i){if(!this.ze(n))return;const s=this.it(n,i.key)?2:0;this.Ge(n).Fe(i.key,s),this.ke=this.ke.insert(i.key,i),this.qe=this.qe.insert(i.key,this.st(i.key).add(n))}Ue(n,i,s){if(!this.ze(n))return;const u=this.Ge(n);this.it(n,i)?u.Fe(i,1):u.Me(i),this.qe=this.qe.insert(i,this.st(i).delete(n)),s&&(this.ke=this.ke.insert(i,s))}removeTarget(n){this.Be.delete(n)}Ye(n){const i=this.Ge(n).Ce();return this.Le.getRemoteKeysForTarget(n).size+i.addedDocuments.size-i.removedDocuments.size}xe(n){this.Ge(n).xe()}Ge(n){let i=this.Be.get(n);return i||(i=new io,this.Be.set(n,i)),i}st(n){let i=this.qe.get(n);return i||(i=new Zn(nt),this.qe=this.qe.insert(n,i)),i}ze(n){const i=null!==this.Je(n);return i||st("WatchChangeAggregator","Detected inactive target",n),i}Je(n){const i=this.Be.get(n);return i&&i.Se?null:this.Le.ot(n)}je(n){this.Be.set(n,new io),this.Le.getRemoteKeysForTarget(n).forEach(i=>{this.Ue(n,i,null)})}it(n,i){return this.Le.getRemoteKeysForTarget(n).has(i)}}function qr(){return new Hr(on.comparator)}function ta(){return new Hr(on.comparator)}const _c={asc:"ASCENDING",desc:"DESCENDING"},fl={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},no={and:"AND",or:"OR"};class Fo{constructor(n,i){this.databaseId=n,this.useProto3Json=i}}function ks(l,n){return l.useProto3Json||Xn(n)?n:{value:n}}function rs(l,n){return l.useProto3Json?`${new Date(1e3*n.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+n.nanoseconds).slice(-9)}Z`:{seconds:""+n.seconds,nanos:n.nanoseconds}}function na(l,n){return l.useProto3Json?n.toBase64():n.toUint8Array()}function yc(l,n){return rs(l,n.toTimestamp())}function Ui(l){return X(!!l),En.fromTimestamp(function(i){const s=ge(i);return new yn(s.seconds,s.nanos)}(l))}function ra(l,n){return Es(l,n).canonicalString()}function Es(l,n){const i=(u=l,new Vn(["projects",u.projectId,"databases",u.database])).child("documents");var u;return void 0===n?i:i.child(n)}function ti(l){const n=Vn.fromString(l);return X(E(n)),n}function Ta(l,n){return ra(l.databaseId,n.path)}function ps(l,n){const i=ti(n);if(i.get(1)!==l.databaseId.projectId)throw new Ve(Ee.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+i.get(1)+" vs "+l.databaseId.projectId);if(i.get(3)!==l.databaseId.database)throw new Ve(Ee.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+i.get(3)+" vs "+l.databaseId.database);return new on(oo(i))}function is(l,n){return ra(l.databaseId,n)}function Da(l){return new Vn(["projects",l.databaseId.projectId,"databases",l.databaseId.database]).canonicalString()}function oo(l){return X(l.length>4&&"documents"===l.get(4)),l.popFirst(5)}function Mu(l,n,i){return{name:Ta(l,n),fields:i.value.mapValue.fields}}function Kl(l,n){return{documents:[is(l,n.path)]}}function gl(l,n){const i={structuredQuery:{}},s=n.path;let u;null!==n.collectionGroup?(u=s,i.structuredQuery.from=[{collectionId:n.collectionGroup,allDescendants:!0}]):(u=s.popLast(),i.structuredQuery.from=[{collectionId:s.lastSegment()}]),i.parent=is(l,u);const p=function(q){if(0!==q.length)return Kh(Oi.create(q,"and"))}(n.filters);p&&(i.structuredQuery.where=p);const _=function(q){if(0!==q.length)return q.map(Ae=>{return{field:Sa((yt=Ae).field),direction:Ha(yt.dir)};var yt})}(n.orderBy);_&&(i.structuredQuery.orderBy=_);const R=ks(l,n.limit);return null!==R&&(i.structuredQuery.limit=R),n.startAt&&(i.structuredQuery.startAt={before:(q=n.startAt).inclusive,values:q.position}),n.endAt&&(i.structuredQuery.endAt=function(q){return{before:!q.inclusive,values:q.position}}(n.endAt)),{_t:i,parent:u};var q}function ba(l){let n=function pl(l){const n=ti(l);return 4===n.length?Vn.emptyPath():oo(n)}(l.parent);const i=l.structuredQuery,s=i.from?i.from.length:0;let u=null;if(s>0){X(1===s);const Ae=i.from[0];Ae.allDescendants?u=Ae.collectionId:n=n.child(Ae.collectionId)}let p=[];i.where&&(p=function(He){const yt=wa(He);return yt instanceof Oi&&Ko(yt)?yt.getFilters():[yt]}(i.where));let _=[];i.orderBy&&(_=i.orderBy.map(yt=>{return new Bi(Ga((Rn=yt).field),function(Ln){switch(Ln){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}}(Rn.direction));var Rn}));let R=null;i.limit&&(R=function(He){let yt;return yt="object"==typeof He?He.value:He,Xn(yt)?null:yt}(i.limit));let k=null;var He;i.startAt&&(k=new kr((He=i.startAt).values||[],!!He.before));let q=null;return i.endAt&&(q=function(He){return new kr(He.values||[],!He.before)}(i.endAt)),function x(l,n,i,s,u,p,_,R){return new B(l,n,i,s,u,p,_,R)}(n,u,_,p,R,"F",k,q)}function wa(l){return void 0!==l.unaryFilter?function(i){switch(i.unaryFilter.op){case"IS_NAN":const s=Ga(i.unaryFilter.field);return Kr.create(s,"==",{doubleValue:NaN});case"IS_NULL":const u=Ga(i.unaryFilter.field);return Kr.create(u,"==",{nullValue:"NULL_VALUE"});case"IS_NOT_NAN":const p=Ga(i.unaryFilter.field);return Kr.create(p,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const _=Ga(i.unaryFilter.field);return Kr.create(_,"!=",{nullValue:"NULL_VALUE"});default:return G()}}(l):void 0!==l.fieldFilter?Kr.create(Ga((i=l).fieldFilter.field),function(u){switch(u){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return G()}}(i.fieldFilter.op),i.fieldFilter.value):void 0!==l.compositeFilter?function(i){return Oi.create(i.compositeFilter.filters.map(s=>wa(s)),function(u){switch(u){case"AND":return"and";case"OR":return"or";default:return G()}}(i.compositeFilter.op))}(l):G();var i}function Ha(l){return _c[l]}function tg(l){return fl[l]}function Dd(l){return no[l]}function Sa(l){return{fieldPath:l.canonicalString()}}function Ga(l){return In.fromServerFormat(l.fieldPath)}function Kh(l){return l instanceof Kr?function(i){if("=="===i.op){if(wt(i.value))return{unaryFilter:{field:Sa(i.field),op:"IS_NAN"}};if(Ot(i.value))return{unaryFilter:{field:Sa(i.field),op:"IS_NULL"}}}else if("!="===i.op){if(wt(i.value))return{unaryFilter:{field:Sa(i.field),op:"IS_NOT_NAN"}};if(Ot(i.value))return{unaryFilter:{field:Sa(i.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Sa(i.field),op:tg(i.op),value:i.value}}}(l):l instanceof Oi?function(i){const s=i.getFilters().map(u=>Kh(u));return 1===s.length?s[0]:{compositeFilter:{op:Dd(i.op),filters:s}}}(l):G()}function bd(l){const n=[];return l.fields.forEach(i=>n.push(i.canonicalString())),{fieldPaths:n}}function E(l){return l.length>=4&&"projects"===l.get(0)&&"databases"===l.get(2)}class b{constructor(n,i,s,u,p=En.min(),_=En.min(),R=ui.EMPTY_BYTE_STRING,k=null){this.target=n,this.targetId=i,this.purpose=s,this.sequenceNumber=u,this.snapshotVersion=p,this.lastLimboFreeSnapshotVersion=_,this.resumeToken=R,this.expectedCount=k}withSequenceNumber(n){return new b(this.target,this.targetId,this.purpose,n,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(n,i){return new b(this.target,this.targetId,this.purpose,this.sequenceNumber,i,this.lastLimboFreeSnapshotVersion,n,null)}withExpectedCount(n){return new b(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,n)}withLastLimboFreeSnapshotVersion(n){return new b(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,n,this.resumeToken,this.expectedCount)}}class N{constructor(n){this.ct=n}}function Xr(l){const n=ba({parent:l.parent,structuredQuery:l.structuredQuery});return"LAST"===l.limitType?Ei(n,n.limit,"L"):n}class Ra{constructor(){}Pt(n,i){this.It(n,i),i.Tt()}It(n,i){if("nullValue"in n)this.Et(i,5);else if("booleanValue"in n)this.Et(i,10),i.dt(n.booleanValue?1:0);else if("integerValue"in n)this.Et(i,15),i.dt(fe(n.integerValue));else if("doubleValue"in n){const s=fe(n.doubleValue);isNaN(s)?this.Et(i,13):(this.Et(i,15),dn(s)?i.dt(0):i.dt(s))}else if("timestampValue"in n){let s=n.timestampValue;this.Et(i,20),"string"==typeof s&&(s=ge(s)),i.At(`${s.seconds||""}`),i.dt(s.nanos||0)}else if("stringValue"in n)this.Rt(n.stringValue,i),this.Vt(i);else if("bytesValue"in n)this.Et(i,30),i.ft(K(n.bytesValue)),this.Vt(i);else if("referenceValue"in n)this.gt(n.referenceValue,i);else if("geoPointValue"in n){const s=n.geoPointValue;this.Et(i,45),i.dt(s.latitude||0),i.dt(s.longitude||0)}else"mapValue"in n?vn(n)?this.Et(i,Number.MAX_SAFE_INTEGER):(this.yt(n.mapValue,i),this.Vt(i)):"arrayValue"in n?(this.wt(n.arrayValue,i),this.Vt(i)):G()}Rt(n,i){this.Et(i,25),this.St(n,i)}St(n,i){i.At(n)}yt(n,i){const s=n.fields||{};this.Et(i,55);for(const u of Object.keys(s))this.Rt(u,i),this.It(s[u],i)}wt(n,i){const s=n.values||[];this.Et(i,50);for(const u of s)this.It(u,i)}gt(n,i){this.Et(i,37),on.fromName(n).path.forEach(s=>{this.Et(i,60),this.St(s,i)})}Et(n,i){n.dt(i)}Vt(n){n.dt(2)}}Ra.bt=new Ra;class Ls{constructor(){this._n=new Tc}addToCollectionParentIndex(n,i){return this._n.add(i),ve.resolve()}getCollectionParents(n,i){return ve.resolve(this._n.getEntries(i))}addFieldIndex(n,i){return ve.resolve()}deleteFieldIndex(n,i){return ve.resolve()}deleteAllFieldIndexes(n){return ve.resolve()}createTargetIndexes(n,i){return ve.resolve()}getDocumentsMatchingTarget(n,i){return ve.resolve(null)}getIndexType(n,i){return ve.resolve(0)}getFieldIndexes(n,i){return ve.resolve([])}getNextCollectionGroupToUpdate(n){return ve.resolve(null)}getMinOffset(n,i){return ve.resolve(Br.min())}getMinOffsetFromCollectionGroup(n,i){return ve.resolve(Br.min())}updateCollectionGroup(n,i,s){return ve.resolve()}updateIndexEntries(n,i){return ve.resolve()}}class Tc{constructor(){this.index={}}add(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i]||new Zn(Vn.comparator),p=!u.has(s);return this.index[i]=u.add(s),p}has(n){const i=n.lastSegment(),s=n.popLast(),u=this.index[i];return u&&u.has(s)}getEntries(n){return(this.index[n]||new Zn(Vn.comparator)).toArray()}}new Uint8Array(0);class Dr{constructor(n,i,s){this.cacheSizeCollectionThreshold=n,this.percentileToCollect=i,this.maximumSequenceNumbersToCollect=s}static withCacheSize(n){return new Dr(n,Dr.DEFAULT_COLLECTION_PERCENTILE,Dr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}}Dr.DEFAULT_COLLECTION_PERCENTILE=10,Dr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Dr.DEFAULT=new Dr(41943040,Dr.DEFAULT_COLLECTION_PERCENTILE,Dr.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Dr.DISABLED=new Dr(-1,0,0);class _l{constructor(n){this.On=n}next(){return this.On+=2,this.On}static Nn(){return new _l(0)}static Ln(){return new _l(-1)}}class ua{constructor(){this.changes=new Eo(n=>n.toString(),(n,i)=>n.isEqual(i)),this.changesApplied=!1}addEntry(n){this.assertNotApplied(),this.changes.set(n.key,n)}removeEntry(n,i){this.assertNotApplied(),this.changes.set(n,Wr.newInvalidDocument(n).setReadTime(i))}getEntry(n,i){this.assertNotApplied();const s=this.changes.get(i);return void 0!==s?ve.resolve(s):this.getFromCache(n,i)}getEntries(n,i){return this.getAllFromCache(n,i)}apply(n){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(n)}assertNotApplied(){}}class Vs{constructor(n,i){this.overlayedDocument=n,this.mutatedFields=i}}class ha{constructor(n,i,s,u){this.remoteDocumentCache=n,this.mutationQueue=i,this.documentOverlayCache=s,this.indexManager=u}getDocument(n,i){let s=null;return this.documentOverlayCache.getOverlay(n,i).next(u=>(s=u,this.remoteDocumentCache.getEntry(n,i))).next(u=>(null!==s&&ts(s.mutation,u,yi.empty(),yn.now()),u))}getDocuments(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.getLocalViewOfDocuments(n,s,ei()).next(()=>s))}getLocalViewOfDocuments(n,i,s=ei()){const u=Li();return this.populateOverlays(n,u,i).next(()=>this.computeViews(n,i,u,s).next(p=>{let _=eo();return p.forEach((R,k)=>{_=_.insert(R,k.overlayedDocument)}),_}))}getOverlayedDocuments(n,i){const s=Li();return this.populateOverlays(n,s,i).next(()=>this.computeViews(n,i,s,ei()))}populateOverlays(n,i,s){const u=[];return s.forEach(p=>{i.has(p)||u.push(p)}),this.documentOverlayCache.getOverlays(n,u).next(p=>{p.forEach((_,R)=>{i.set(_,R)})})}computeViews(n,i,s,u){let p=jr();const _=es(),R=es();return i.forEach((k,q)=>{const Ae=s.get(q.key);u.has(q.key)&&(void 0===Ae||Ae.mutation instanceof Co)?p=p.insert(q.key,q):void 0!==Ae?(_.set(q.key,Ae.mutation.getFieldMask()),ts(Ae.mutation,q,Ae.mutation.getFieldMask(),yn.now())):_.set(q.key,yi.empty())}),this.recalculateAndSaveOverlays(n,p).next(k=>(k.forEach((q,Ae)=>_.set(q,Ae)),i.forEach((q,Ae)=>{var He;return R.set(q,new Vs(Ae,null!==(He=_.get(q))&&void 0!==He?He:null))}),R))}recalculateAndSaveOverlays(n,i){const s=es();let u=new Hr((_,R)=>_-R),p=ei();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(n,i).next(_=>{for(const R of _)R.keys().forEach(k=>{const q=i.get(k);if(null===q)return;let Ae=s.get(k)||yi.empty();Ae=R.applyToLocalView(q,Ae),s.set(k,Ae);const He=(u.get(R.batchId)||ei()).add(k);u=u.insert(R.batchId,He)})}).next(()=>{const _=[],R=u.getReverseIterator();for(;R.hasNext();){const k=R.getNext(),q=k.key,Ae=k.value,He=Ba();Ae.forEach(yt=>{if(!p.has(yt)){const Yt=Ea(i.get(yt),s.get(yt));null!==Yt&&He.set(yt,Yt),p=p.add(yt)}}),_.push(this.documentOverlayCache.saveOverlays(n,q,He))}return ve.waitFor(_)}).next(()=>s)}recalculateAndSaveOverlaysForDocumentKeys(n,i){return this.remoteDocumentCache.getEntries(n,i).next(s=>this.recalculateAndSaveOverlays(n,s))}getDocumentsMatchingQuery(n,i,s,u){return on.isDocumentKey((_=i).path)&&null===_.collectionGroup&&0===_.filters.length?this.getDocumentsMatchingDocumentQuery(n,i.path):function Pe(l){return null!==l.collectionGroup}(i)?this.getDocumentsMatchingCollectionGroupQuery(n,i,s,u):this.getDocumentsMatchingCollectionQuery(n,i,s,u);var _}getNextDocuments(n,i,s,u){return this.remoteDocumentCache.getAllFromCollectionGroup(n,i,s,u).next(p=>{const _=u-p.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(n,i,s.largestBatchId,u-p.size):ve.resolve(Li());let R=-1,k=p;return _.next(q=>ve.forEach(q,(Ae,He)=>(R{k=k.insert(Ae,yt)}))).next(()=>this.populateOverlays(n,q,p)).next(()=>this.computeViews(n,k,q,ei())).next(Ae=>({batchId:R,changes:So(Ae)})))})}getDocumentsMatchingDocumentQuery(n,i){return this.getDocument(n,new on(i)).next(s=>{let u=eo();return s.isFoundDocument()&&(u=u.insert(s.key,s)),u})}getDocumentsMatchingCollectionGroupQuery(n,i,s,u){const p=i.collectionGroup;let _=eo();return this.indexManager.getCollectionParents(n,p).next(R=>ve.forEach(R,k=>{const q=(He=i,yt=k.child(p),new B(yt,null,He.explicitOrderBy.slice(),He.filters.slice(),He.limit,He.limitType,He.startAt,He.endAt));var He,yt;return this.getDocumentsMatchingCollectionQuery(n,q,s,u).next(Ae=>{Ae.forEach((He,yt)=>{_=_.insert(He,yt)})})}).next(()=>_))}getDocumentsMatchingCollectionQuery(n,i,s,u){let p;return this.documentOverlayCache.getOverlaysForCollection(n,i.path,s.largestBatchId).next(_=>(p=_,this.remoteDocumentCache.getDocumentsMatchingQuery(n,i,s,p,u))).next(_=>{p.forEach((k,q)=>{const Ae=q.getKey();null===_.get(Ae)&&(_=_.insert(Ae,Wr.newInvalidDocument(Ae)))});let R=eo();return _.forEach((k,q)=>{const Ae=p.get(k);void 0!==Ae&&ts(Ae.mutation,q,yi.empty(),yn.now()),Qi(i,q)&&(R=R.insert(k,q))}),R})}}class og{constructor(n){this.serializer=n,this.cr=new Map,this.lr=new Map}getBundleMetadata(n,i){return ve.resolve(this.cr.get(i))}saveBundleMetadata(n,i){return this.cr.set(i.id,{id:(u=i).id,version:u.version,createTime:Ui(u.createTime)}),ve.resolve();var u}getNamedQuery(n,i){return ve.resolve(this.lr.get(i))}saveNamedQuery(n,i){return this.lr.set(i.name,{name:(u=i).name,query:Xr(u.bundledQuery),readTime:Ui(u.readTime)}),ve.resolve();var u}}class Rc{constructor(){this.overlays=new Hr(on.comparator),this.hr=new Map}getOverlay(n,i){return ve.resolve(this.overlays.get(i))}getOverlays(n,i){const s=Li();return ve.forEach(i,u=>this.getOverlay(n,u).next(p=>{null!==p&&s.set(u,p)})).next(()=>s)}saveOverlays(n,i,s){return s.forEach((u,p)=>{this.ht(n,i,p)}),ve.resolve()}removeOverlaysForBatchId(n,i,s){const u=this.hr.get(s);return void 0!==u&&(u.forEach(p=>this.overlays=this.overlays.remove(p)),this.hr.delete(s)),ve.resolve()}getOverlaysForCollection(n,i,s){const u=Li(),p=i.length+1,_=new on(i.child("")),R=this.overlays.getIteratorFrom(_);for(;R.hasNext();){const k=R.getNext().value,q=k.getKey();if(!i.isPrefixOf(q.path))break;q.path.length===p&&k.largestBatchId>s&&u.set(k.getKey(),k)}return ve.resolve(u)}getOverlaysForCollectionGroup(n,i,s,u){let p=new Hr((q,Ae)=>q-Ae);const _=this.overlays.getIterator();for(;_.hasNext();){const q=_.getNext().value;if(q.getKey().getCollectionGroup()===i&&q.largestBatchId>s){let Ae=p.get(q.largestBatchId);null===Ae&&(Ae=Li(),p=p.insert(q.largestBatchId,Ae)),Ae.set(q.getKey(),q)}}const R=Li(),k=p.getIterator();for(;k.hasNext()&&(k.getNext().value.forEach((q,Ae)=>R.set(q,Ae)),!(R.size()>=u)););return ve.resolve(R)}ht(n,i,s){const u=this.overlays.get(s.key);if(null!==u){const _=this.hr.get(u.largestBatchId).delete(s.key);this.hr.set(u.largestBatchId,_)}this.overlays=this.overlays.insert(s.key,new Qe(i,s));let p=this.hr.get(i);void 0===p&&(p=ei(),this.hr.set(i,p)),this.hr.set(i,p.add(s.key))}}class xd{constructor(){this.Pr=new Zn(Vo.Ir),this.Tr=new Zn(Vo.Er)}isEmpty(){return this.Pr.isEmpty()}addReference(n,i){const s=new Vo(n,i);this.Pr=this.Pr.add(s),this.Tr=this.Tr.add(s)}dr(n,i){n.forEach(s=>this.addReference(s,i))}removeReference(n,i){this.Ar(new Vo(n,i))}Rr(n,i){n.forEach(s=>this.removeReference(s,i))}Vr(n){const i=new on(new Vn([])),s=new Vo(i,n),u=new Vo(i,n+1),p=[];return this.Tr.forEachInRange([s,u],_=>{this.Ar(_),p.push(_.key)}),p}mr(){this.Pr.forEach(n=>this.Ar(n))}Ar(n){this.Pr=this.Pr.delete(n),this.Tr=this.Tr.delete(n)}gr(n){const i=new on(new Vn([])),s=new Vo(i,n),u=new Vo(i,n+1);let p=ei();return this.Tr.forEachInRange([s,u],_=>{p=p.add(_.key)}),p}containsKey(n){const i=new Vo(n,0),s=this.Pr.firstAfterOrEqual(i);return null!==s&&n.isEqual(s.key)}}class Vo{constructor(n,i){this.key=n,this.pr=i}static Ir(n,i){return on.comparator(n.key,i.key)||nt(n.pr,i.pr)}static Er(n,i){return nt(n.pr,i.pr)||on.comparator(n.key,i.key)}}class Od{constructor(n,i){this.indexManager=n,this.referenceDelegate=i,this.mutationQueue=[],this.yr=1,this.wr=new Zn(Vo.Ir)}checkEmpty(n){return ve.resolve(0===this.mutationQueue.length)}addMutationBatch(n,i,s,u){const p=this.yr;this.yr++;const _=new F(p,i,s,u);this.mutationQueue.push(_);for(const R of u)this.wr=this.wr.add(new Vo(R.key,p)),this.indexManager.addToCollectionParentIndex(n,R.key.path.popLast());return ve.resolve(_)}lookupMutationBatch(n,i){return ve.resolve(this.Sr(i))}getNextMutationBatchAfterBatchId(n,i){const u=this.br(i+1),p=u<0?0:u;return ve.resolve(this.mutationQueue.length>p?this.mutationQueue[p]:null)}getHighestUnacknowledgedBatchId(){return ve.resolve(0===this.mutationQueue.length?-1:this.yr-1)}getAllMutationBatches(n){return ve.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(n,i){const s=new Vo(i,0),u=new Vo(i,Number.POSITIVE_INFINITY),p=[];return this.wr.forEachInRange([s,u],_=>{const R=this.Sr(_.pr);p.push(R)}),ve.resolve(p)}getAllMutationBatchesAffectingDocumentKeys(n,i){let s=new Zn(nt);return i.forEach(u=>{const p=new Vo(u,0),_=new Vo(u,Number.POSITIVE_INFINITY);this.wr.forEachInRange([p,_],R=>{s=s.add(R.pr)})}),ve.resolve(this.Dr(s))}getAllMutationBatchesAffectingQuery(n,i){const s=i.path,u=s.length+1;let p=s;on.isDocumentKey(p)||(p=p.child(""));const _=new Vo(new on(p),0);let R=new Zn(nt);return this.wr.forEachWhile(k=>{const q=k.key.path;return!!s.isPrefixOf(q)&&(q.length===u&&(R=R.add(k.pr)),!0)},_),ve.resolve(this.Dr(R))}Dr(n){const i=[];return n.forEach(s=>{const u=this.Sr(s);null!==u&&i.push(u)}),i}removeMutationBatch(n,i){X(0===this.Cr(i.batchId,"removed")),this.mutationQueue.shift();let s=this.wr;return ve.forEach(i.mutations,u=>{const p=new Vo(u.key,i.batchId);return s=s.delete(p),this.referenceDelegate.markPotentiallyOrphaned(n,u.key)}).next(()=>{this.wr=s})}Mn(n){}containsKey(n,i){const s=new Vo(i,0),u=this.wr.firstAfterOrEqual(s);return ve.resolve(i.isEqual(u&&u.key))}performConsistencyCheck(n){return ve.resolve()}Cr(n,i){return this.br(n)}br(n){return 0===this.mutationQueue.length?0:n-this.mutationQueue[0].batchId}Sr(n){const i=this.br(n);return i<0||i>=this.mutationQueue.length?null:this.mutationQueue[i]}}class Fu{constructor(n){this.vr=n,this.docs=new Hr(on.comparator),this.size=0}setIndexManager(n){this.indexManager=n}addEntry(n,i){const s=i.key,u=this.docs.get(s),p=u?u.size:0,_=this.vr(i);return this.docs=this.docs.insert(s,{document:i.mutableCopy(),size:_}),this.size+=_-p,this.indexManager.addToCollectionParentIndex(n,s.path.popLast())}removeEntry(n){const i=this.docs.get(n);i&&(this.docs=this.docs.remove(n),this.size-=i.size)}getEntry(n,i){const s=this.docs.get(i);return ve.resolve(s?s.document.mutableCopy():Wr.newInvalidDocument(i))}getEntries(n,i){let s=jr();return i.forEach(u=>{const p=this.docs.get(u);s=s.insert(u,p?p.document.mutableCopy():Wr.newInvalidDocument(u))}),ve.resolve(s)}getDocumentsMatchingQuery(n,i,s,u){let p=jr();const _=i.path,R=new on(_.child("")),k=this.docs.getIteratorFrom(R);for(;k.hasNext();){const{key:q,value:{document:Ae}}=k.getNext();if(!_.isPrefixOf(q.path))break;q.path.length>_.length+1||ar(new Br((l=Ae).readTime,l.key,-1),s)<=0||(u.has(Ae.key)||Qi(i,Ae))&&(p=p.insert(Ae.key,Ae.mutableCopy()))}var l;return ve.resolve(p)}getAllFromCollectionGroup(n,i,s,u){G()}Fr(n,i){return ve.forEach(this.docs,s=>i(s))}newChangeBuffer(n){return new Nd(this)}getSize(n){return ve.resolve(this.size)}}class Nd extends ua{constructor(n){super(),this.ar=n}applyChanges(n){const i=[];return this.changes.forEach((s,u)=>{u.isValidDocument()?i.push(this.ar.addEntry(n,u)):this.ar.removeEntry(s)}),ve.waitFor(i)}getFromCache(n,i){return this.ar.getEntry(n,i)}getAllFromCache(n,i){return this.ar.getEntries(n,i)}}class Mc{constructor(n){this.persistence=n,this.Mr=new Eo(i=>ne(i),ee),this.lastRemoteSnapshotVersion=En.min(),this.highestTargetId=0,this.Or=0,this.Nr=new xd,this.targetCount=0,this.Lr=_l.Nn()}forEachTarget(n,i){return this.Mr.forEach((s,u)=>i(u)),ve.resolve()}getLastRemoteSnapshotVersion(n){return ve.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(n){return ve.resolve(this.Or)}allocateTargetId(n){return this.highestTargetId=this.Lr.next(),ve.resolve(this.highestTargetId)}setTargetsMetadata(n,i,s){return s&&(this.lastRemoteSnapshotVersion=s),i>this.Or&&(this.Or=i),ve.resolve()}qn(n){this.Mr.set(n.target,n);const i=n.targetId;i>this.highestTargetId&&(this.Lr=new _l(i),this.highestTargetId=i),n.sequenceNumber>this.Or&&(this.Or=n.sequenceNumber)}addTargetData(n,i){return this.qn(i),this.targetCount+=1,ve.resolve()}updateTargetData(n,i){return this.qn(i),ve.resolve()}removeTargetData(n,i){return this.Mr.delete(i.target),this.Nr.Vr(i.targetId),this.targetCount-=1,ve.resolve()}removeTargets(n,i,s){let u=0;const p=[];return this.Mr.forEach((_,R)=>{R.sequenceNumber<=i&&null===s.get(R.targetId)&&(this.Mr.delete(_),p.push(this.removeMatchingKeysForTargetId(n,R.targetId)),u++)}),ve.waitFor(p).next(()=>u)}getTargetCount(n){return ve.resolve(this.targetCount)}getTargetData(n,i){const s=this.Mr.get(i)||null;return ve.resolve(s)}addMatchingKeys(n,i,s){return this.Nr.dr(i,s),ve.resolve()}removeMatchingKeys(n,i,s){this.Nr.Rr(i,s);const u=this.persistence.referenceDelegate,p=[];return u&&i.forEach(_=>{p.push(u.markPotentiallyOrphaned(n,_))}),ve.waitFor(p)}removeMatchingKeysForTargetId(n,i){return this.Nr.Vr(i),ve.resolve()}getMatchingKeysForTargetId(n,i){const s=this.Nr.gr(i);return ve.resolve(s)}containsKey(n,i){return ve.resolve(this.Nr.containsKey(i))}}class Pc{constructor(n,i){this.Br={},this.overlays={},this.kr=new Tn(0),this.qr=!1,this.qr=!0,this.referenceDelegate=n(this),this.Qr=new Mc(this),this.indexManager=new Ls,this.remoteDocumentCache=new Fu(s=>this.referenceDelegate.Kr(s)),this.serializer=new N(i),this.$r=new og(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.qr=!1,Promise.resolve()}get started(){return this.qr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(n){return this.indexManager}getDocumentOverlayCache(n){let i=this.overlays[n.toKey()];return i||(i=new Rc,this.overlays[n.toKey()]=i),i}getMutationQueue(n,i){let s=this.Br[n.toKey()];return s||(s=new Od(i,this.referenceDelegate),this.Br[n.toKey()]=s),s}getTargetCache(){return this.Qr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.$r}runTransaction(n,i,s){st("MemoryPersistence","Starting transaction:",n);const u=new Jh(this.kr.next());return this.referenceDelegate.Ur(),s(u).next(p=>this.referenceDelegate.Wr(u).next(()=>p)).toPromise().then(p=>(u.raiseOnCommittedEvent(),p))}Gr(n,i){return ve.or(Object.values(this.Br).map(s=>()=>s.containsKey(n,i)))}}class Jh extends li{constructor(n){super(),this.currentSequenceNumber=n}}class xa{constructor(n){this.persistence=n,this.zr=new xd,this.jr=null}static Hr(n){return new xa(n)}get Jr(){if(this.jr)return this.jr;throw G()}addReference(n,i,s){return this.zr.addReference(s,i),this.Jr.delete(s.toString()),ve.resolve()}removeReference(n,i,s){return this.zr.removeReference(s,i),this.Jr.add(s.toString()),ve.resolve()}markPotentiallyOrphaned(n,i){return this.Jr.add(i.toString()),ve.resolve()}removeTarget(n,i){this.zr.Vr(i.targetId).forEach(u=>this.Jr.add(u.toString()));const s=this.persistence.getTargetCache();return s.getMatchingKeysForTargetId(n,i.targetId).next(u=>{u.forEach(p=>this.Jr.add(p.toString()))}).next(()=>s.removeTargetData(n,i))}Ur(){this.jr=new Set}Wr(n){const i=this.persistence.getRemoteDocumentCache().newChangeBuffer();return ve.forEach(this.Jr,s=>{const u=on.fromPath(s);return this.Yr(n,u).next(p=>{p||i.removeEntry(u,En.min())})}).next(()=>(this.jr=null,i.apply(n)))}updateLimboDocument(n,i){return this.Yr(n,i).next(s=>{s?this.Jr.delete(i.toString()):this.Jr.add(i.toString())})}Kr(n){return 0}Yr(n,i){return ve.or([()=>ve.resolve(this.zr.containsKey(i)),()=>this.persistence.getTargetCache().containsKey(n,i),()=>this.persistence.Gr(n,i)])}}class Gi{constructor(n,i,s,u){this.targetId=n,this.fromCache=i,this.qi=s,this.Qi=u}static Ki(n,i){let s=ei(),u=ei();for(const p of i.docChanges)switch(p.type){case 0:s=s.add(p.doc.key);break;case 1:u=u.add(p.doc.key)}return new Gi(n,i.fromCache,s,u)}}class ef{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(n){this._documentReadCount+=n}}class tf{constructor(){this.$i=!1,this.Ui=!1,this.Wi=100,this.Gi=(0,Se.nr)()?8:function pt(l){const n=l.match(/Android ([\d.]+)/i),i=n?n[1].split(".").slice(0,2).join("."):"-1";return Number(i)}((0,Se.ZQ)())>0?6:4}initialize(n,i){this.zi=n,this.indexManager=i,this.$i=!0}getDocumentsMatchingQuery(n,i,s,u){const p={result:null};return this.ji(n,i).next(_=>{p.result=_}).next(()=>{if(!p.result)return this.Hi(n,i,u,s).next(_=>{p.result=_})}).next(()=>{if(p.result)return;const _=new ef;return this.Ji(n,i,_).next(R=>{if(p.result=R,this.Ui)return this.Yi(n,i,_,R.size)})}).next(()=>p.result)}Yi(n,i,s,u){return s.documentReadCountthis.Gi*u?(Cn()<=tt.$b.DEBUG&&st("QueryEngine","The SDK decides to create cache indexes for query:",Ki(i),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(n,zn(i))):ve.resolve())}ji(n,i){if(z(i))return ve.resolve(null);let s=zn(i);return this.indexManager.getIndexType(n,s).next(u=>0===u?null:(null!==i.limit&&1===u&&(i=Ei(i,null,"F"),s=zn(i)),this.indexManager.getDocumentsMatchingTarget(n,s).next(p=>{const _=ei(...p);return this.zi.getDocuments(n,_).next(R=>this.indexManager.getMinOffset(n,s).next(k=>{const q=this.Zi(i,R);return this.Xi(i,q,_,k.readTime)?this.ji(n,Ei(i,null,"F")):this.es(n,q,i,k)}))})))}Hi(n,i,s,u){return z(i)||u.isEqual(En.min())?ve.resolve(null):this.zi.getDocuments(n,s).next(p=>{const _=this.Zi(i,p);return this.Xi(i,_,s,u)?ve.resolve(null):(Cn()<=tt.$b.DEBUG&&st("QueryEngine","Re-using previous result from %s to execute query: %s",u.toString(),Ki(i)),this.es(n,_,i,function Tr(l,n){const i=l.toTimestamp().seconds,s=l.toTimestamp().nanoseconds+1,u=En.fromTimestamp(1e9===s?new yn(i+1,0):new yn(i,s));return new Br(u,on.empty(),n)}(u,-1)).next(R=>R))})}Zi(n,i){let s=new Zn(cs(n));return i.forEach((u,p)=>{Qi(n,p)&&(s=s.add(p))}),s}Xi(n,i,s,u){if(null===n.limit)return!1;if(s.size!==i.size)return!0;const p="F"===n.limitType?i.last():i.first();return!!p&&(p.hasPendingWrites||p.version.compareTo(u)>0)}Ji(n,i,s){return Cn()<=tt.$b.DEBUG&&st("QueryEngine","Using full collection scan to execute query:",Ki(i)),this.zi.getDocumentsMatchingQuery(n,i,Br.min(),s)}es(n,i,s,u){return this.zi.getDocumentsMatchingQuery(n,s,u).next(p=>(i.forEach(_=>{p=p.insert(_.key,_)}),p))}}class sg{constructor(n,i,s,u){this.persistence=n,this.ts=i,this.serializer=u,this.ns=new Hr(nt),this.rs=new Eo(p=>ne(p),ee),this.ss=new Map,this.os=n.getRemoteDocumentCache(),this.Qr=n.getTargetCache(),this.$r=n.getBundleCache(),this._s(s)}_s(n){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(n),this.indexManager=this.persistence.getIndexManager(n),this.mutationQueue=this.persistence.getMutationQueue(n,this.indexManager),this.localDocuments=new ha(this.os,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.os.setIndexManager(this.indexManager),this.ts.initialize(this.localDocuments,this.indexManager)}collectGarbage(n){return this.persistence.runTransaction("Collect garbage","readwrite-primary",i=>n.collect(i,this.ns))}}function Fd(l,n){return Uu.apply(this,arguments)}function Uu(){return(Uu=(0,he.A)(function*(l,n){const i=ue(l);return yield i.persistence.runTransaction("Handle user change","readonly",s=>{let u;return i.mutationQueue.getAllMutationBatches(s).next(p=>(u=p,i._s(n),i.mutationQueue.getAllMutationBatches(s))).next(p=>{const _=[],R=[];let k=ei();for(const q of u){_.push(q.batchId);for(const Ae of q.mutations)k=k.add(Ae.key)}for(const q of p){R.push(q.batchId);for(const Ae of q.mutations)k=k.add(Ae.key)}return i.localDocuments.getDocuments(s,k).next(q=>({us:q,removedBatchIds:_,addedBatchIds:R}))})})})).apply(this,arguments)}function Ws(l){const n=ue(l);return n.persistence.runTransaction("Get last remote snapshot version","readonly",i=>n.Qr.getLastRemoteSnapshotVersion(i))}function Oc(l,n){const i=ue(l);return i.persistence.runTransaction("Get next mutation batch","readonly",s=>(void 0===n&&(n=-1),i.mutationQueue.getNextMutationBatchAfterBatchId(s,n)))}function pa(l,n,i){return Nc.apply(this,arguments)}function Nc(){return(Nc=(0,he.A)(function*(l,n,i){const s=ue(l),u=s.ns.get(n),p=i?"readwrite":"readwrite-primary";try{i||(yield s.persistence.runTransaction("Release target",p,_=>s.persistence.referenceDelegate.removeTarget(_,u)))}catch(_){if(!Ge(_))throw _;st("LocalStore",`Failed to update sequence numbers for target ${n}: ${_}`)}s.ns=s.ns.remove(n),s.rs.delete(u.target)})).apply(this,arguments)}function El(l,n,i){const s=ue(l);let u=En.min(),p=ei();return s.persistence.runTransaction("Execute query","readwrite",_=>function(k,q,Ae){const He=ue(k),yt=He.rs.get(Ae);return void 0!==yt?ve.resolve(He.ns.get(yt)):He.Qr.getTargetData(q,Ae)}(s,_,zn(n)).next(R=>{if(R)return u=R.lastLimboFreeSnapshotVersion,s.Qr.getMatchingKeysForTargetId(_,R.targetId).next(k=>{p=k})}).next(()=>s.ts.getDocumentsMatchingQuery(_,n,i?u:En.min(),i?p:ei())).next(R=>(function Al(l,n,i){let s=l.ss.get(n)||En.min();i.forEach((u,p)=>{p.readTime.compareTo(s)>0&&(s=p.readTime)}),l.ss.set(n,s)}(s,function qo(l){return l.collectionGroup||(l.path.length%2==1?l.path.lastSegment():l.path.get(l.path.length-2))}(n),R),{documents:R,hs:p})))}class Hu{constructor(){this.activeTargetIds=function Zs(){return dl}()}As(n){this.activeTargetIds=this.activeTargetIds.add(n)}Rs(n){this.activeTargetIds=this.activeTargetIds.delete(n)}ds(){const n={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(n)}}class af{constructor(){this.no=new Hu,this.ro={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(n){}updateMutationState(n,i,s){}addLocalQueryTarget(n){return this.no.As(n),this.ro[n]||"not-current"}updateQueryState(n,i,s){this.ro[n]=i}removeLocalQueryTarget(n){this.no.Rs(n)}isLocalQueryTarget(n){return this.no.activeTargetIds.has(n)}clearQueryState(n){delete this.ro[n]}getAllActiveQueryTargets(){return this.no.activeTargetIds}isActiveQueryTarget(n){return this.no.activeTargetIds.has(n)}start(){return this.no=new Hu,Promise.resolve()}handleUserChange(n,i,s){}setOnlineState(n){}shutdown(){}writeSequenceNumber(n){}notifyBundleLoaded(n){}}class lf{io(n){}shutdown(){}}class Bd{constructor(){this.so=()=>this.oo(),this._o=()=>this.ao(),this.uo=[],this.co()}io(n){this.uo.push(n)}shutdown(){window.removeEventListener("online",this.so),window.removeEventListener("offline",this._o)}co(){window.addEventListener("online",this.so),window.addEventListener("offline",this._o)}oo(){st("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const n of this.uo)n(0)}ao(){st("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const n of this.uo)n(1)}static D(){return typeof window<"u"&&void 0!==window.addEventListener&&void 0!==window.removeEventListener}}let Vc=null;function Bs(){return null===Vc?Vc=268435456+Math.round(2147483648*Math.random()):Vc++,"0x"+Vc.toString(16)}const hv={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};class Gu{constructor(n){this.lo=n.lo,this.ho=n.ho}Po(n){this.Io=n}To(n){this.Eo=n}Ao(n){this.Ro=n}onMessage(n){this.Vo=n}close(){this.ho()}send(n){this.lo(n)}mo(){this.Io()}fo(){this.Eo()}po(n){this.Ro(n)}yo(n){this.Vo(n)}}const jo="WebChannelConnection";class Ud extends class{constructor(i){this.databaseInfo=i,this.databaseId=i.databaseId;const s=i.ssl?"https":"http",u=encodeURIComponent(this.databaseId.projectId),p=encodeURIComponent(this.databaseId.database);this.wo=s+"://"+i.host,this.So=`projects/${u}/databases/${p}`,this.bo="(default)"===this.databaseId.database?`project_id=${u}`:`project_id=${u}&database_id=${p}`}get Do(){return!1}Co(i,s,u,p,_){const R=Bs(),k=this.vo(i,s.toUriEncodedString());st("RestConnection",`Sending RPC '${i}' ${R}:`,k,u);const q={"google-cloud-resource-prefix":this.So,"x-goog-request-params":this.bo};return this.Fo(q,p,_),this.Mo(i,k,q,u).then(Ae=>(st("RestConnection",`Received RPC '${i}' ${R}: `,Ae),Ae),Ae=>{throw vt("RestConnection",`RPC '${i}' ${R} failed with error: `,Ae,"url: ",k,"request:",u),Ae})}xo(i,s,u,p,_,R){return this.Co(i,s,u,p,_)}Fo(i,s,u){i["X-Goog-Api-Client"]="gl-js/ fire/"+Ct,i["Content-Type"]="text/plain",this.databaseInfo.appId&&(i["X-Firebase-GMPID"]=this.databaseInfo.appId),s&&s.headers.forEach((p,_)=>i[_]=p),u&&u.headers.forEach((p,_)=>i[_]=p)}vo(i,s){return`${this.wo}/v1/${s}:${hv[i]}`}terminate(){}}{constructor(n){super(n),this.forceLongPolling=n.forceLongPolling,this.autoDetectLongPolling=n.autoDetectLongPolling,this.useFetchStreams=n.useFetchStreams,this.longPollingOptions=n.longPollingOptions}Mo(n,i,s,u){const p=Bs();return new Promise((_,R)=>{const k=new xt;k.setWithCredentials(!0),k.listenOnce(Tt.COMPLETE,()=>{try{switch(k.getLastErrorCode()){case It.NO_ERROR:const Ae=k.getResponseJson();st(jo,`XHR for RPC '${n}' ${p} received:`,JSON.stringify(Ae)),_(Ae);break;case It.TIMEOUT:st(jo,`RPC '${n}' ${p} timed out`),R(new Ve(Ee.DEADLINE_EXCEEDED,"Request time out"));break;case It.HTTP_ERROR:const He=k.getStatus();if(st(jo,`RPC '${n}' ${p} failed with status:`,He,"response text:",k.getResponseText()),He>0){let yt=k.getResponseJson();Array.isArray(yt)&&(yt=yt[0]);const Yt=null==yt?void 0:yt.error;if(Yt&&Yt.status&&Yt.message){const Rn=function(Ln){const Cr=Ln.toLowerCase().replace(/_/g,"-");return Object.values(Ee).indexOf(Cr)>=0?Cr:Ee.UNKNOWN}(Yt.status);R(new Ve(Rn,Yt.message))}else R(new Ve(Ee.UNKNOWN,"Server responded with status "+k.getStatus()))}else R(new Ve(Ee.UNAVAILABLE,"Connection failed."));break;default:G()}}finally{st(jo,`RPC '${n}' ${p} completed.`)}});const q=JSON.stringify(u);st(jo,`RPC '${n}' ${p} sending request:`,u),k.send(i,"POST",q,s,15)})}Oo(n,i,s){const u=Bs(),p=[this.wo,"/","google.firestore.v1.Firestore","/",n,"/channel"],_=$e(),R=_e(),k={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},q=this.longPollingOptions.timeoutSeconds;void 0!==q&&(k.longPollingTimeout=Math.round(1e3*q)),this.useFetchStreams&&(k.xmlHttpFactory=new Dt({})),this.Fo(k.initMessageHeaders,i,s),k.encodeInitMessageHeaders=!0;const Ae=p.join("");st(jo,`Creating RPC '${n}' stream ${u}: ${Ae}`,k);const He=_.createWebChannel(Ae,k);let yt=!1,Yt=!1;const Rn=new Gu({lo:Ln=>{Yt?st(jo,`Not sending because RPC '${n}' stream ${u} is closed:`,Ln):(yt||(st(jo,`Opening RPC '${n}' stream ${u} transport.`),He.open(),yt=!0),st(jo,`RPC '${n}' stream ${u} sending:`,Ln),He.send(Ln))},ho:()=>He.close()}),Wn=(Ln,Cr,Gr)=>{Ln.listen(Cr,Or=>{try{Gr(Or)}catch(si){setTimeout(()=>{throw si},0)}})};return Wn(He,zt.EventType.OPEN,()=>{Yt||(st(jo,`RPC '${n}' stream ${u} transport opened.`),Rn.mo())}),Wn(He,zt.EventType.CLOSE,()=>{Yt||(Yt=!0,st(jo,`RPC '${n}' stream ${u} transport closed`),Rn.po())}),Wn(He,zt.EventType.ERROR,Ln=>{Yt||(Yt=!0,vt(jo,`RPC '${n}' stream ${u} transport errored:`,Ln),Rn.po(new Ve(Ee.UNAVAILABLE,"The operation could not be completed")))}),Wn(He,zt.EventType.MESSAGE,Ln=>{var Cr;if(!Yt){const Gr=Ln.data[0];X(!!Gr);const si=Gr.error||(null===(Cr=Gr[0])||void 0===Cr?void 0:Cr.error);if(si){st(jo,`RPC '${n}' stream ${u} received error:`,si);const Wi=si.status;let Ti=function(Rt){const Ut=Er[Rt];if(void 0!==Ut)return ri(Ut)}(Wi),Bt=si.message;void 0===Ti&&(Ti=Ee.INTERNAL,Bt="Unknown error status: "+Wi+" with message "+si.message),Yt=!0,Rn.po(new Ve(Ti,Bt)),He.close()}else st(jo,`RPC '${n}' stream ${u} received:`,Gr),Rn.yo(Gr)}}),Wn(R,Ze.STAT_EVENT,Ln=>{Ln.stat===Te.PROXY?st(jo,`RPC '${n}' stream ${u} detected buffering proxy`):Ln.stat===Te.NOPROXY&&st(jo,`RPC '${n}' stream ${u} detected no buffering proxy`)}),setTimeout(()=>{Rn.fo()},0),Rn}}function Dl(){return typeof document<"u"?document:null}function Bc(l){return new Fo(l,!0)}class tu{constructor(n,i,s=1e3,u=1.5,p=6e4){this.oi=n,this.timerId=i,this.No=s,this.Lo=u,this.Bo=p,this.ko=0,this.qo=null,this.Qo=Date.now(),this.reset()}reset(){this.ko=0}Ko(){this.ko=this.Bo}$o(n){this.cancel();const i=Math.floor(this.ko+this.Uo()),s=Math.max(0,Date.now()-this.Qo),u=Math.max(0,i-s);u>0&&st("ExponentialBackoff",`Backing off for ${u} ms (base delay: ${this.ko} ms, delay with jitter: ${i} ms, last attempt: ${s} ms ago)`),this.qo=this.oi.enqueueAfterDelay(this.timerId,u,()=>(this.Qo=Date.now(),n())),this.ko*=this.Lo,this.kothis.Bo&&(this.ko=this.Bo)}Wo(){null!==this.qo&&(this.qo.skipDelay(),this.qo=null)}cancel(){null!==this.qo&&(this.qo.cancel(),this.qo=null)}Uo(){return(Math.random()-.5)*this.ko}}class $d{constructor(n,i,s,u,p,_,R,k){this.oi=n,this.Go=s,this.zo=u,this.connection=p,this.authCredentialsProvider=_,this.appCheckCredentialsProvider=R,this.listener=k,this.state=0,this.jo=0,this.Ho=null,this.Jo=null,this.stream=null,this.Yo=new tu(n,i)}Zo(){return 1===this.state||5===this.state||this.Xo()}Xo(){return 2===this.state||3===this.state}start(){4!==this.state?this.auth():this.e_()}stop(){var n=this;return(0,he.A)(function*(){n.Zo()&&(yield n.close(0))})()}t_(){this.state=0,this.Yo.reset()}n_(){this.Xo()&&null===this.Ho&&(this.Ho=this.oi.enqueueAfterDelay(this.Go,6e4,()=>this.r_()))}i_(n){this.s_(),this.stream.send(n)}r_(){var n=this;return(0,he.A)(function*(){if(n.Xo())return n.close(0)})()}s_(){this.Ho&&(this.Ho.cancel(),this.Ho=null)}o_(){this.Jo&&(this.Jo.cancel(),this.Jo=null)}close(n,i){var s=this;return(0,he.A)(function*(){s.s_(),s.o_(),s.Yo.cancel(),s.jo++,4!==n?s.Yo.reset():i&&i.code===Ee.RESOURCE_EXHAUSTED?(cn(i.toString()),cn("Using maximum backoff delay to prevent overloading the backend."),s.Yo.Ko()):i&&i.code===Ee.UNAUTHENTICATED&&3!==s.state&&(s.authCredentialsProvider.invalidateToken(),s.appCheckCredentialsProvider.invalidateToken()),null!==s.stream&&(s.__(),s.stream.close(),s.stream=null),s.state=n,yield s.listener.Ao(i)})()}__(){}auth(){this.state=1;const n=this.a_(this.jo),i=this.jo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then(([s,u])=>{this.jo===i&&this.u_(s,u)},s=>{n(()=>{const u=new Ve(Ee.UNKNOWN,"Fetching auth token failed: "+s.message);return this.c_(u)})})}u_(n,i){const s=this.a_(this.jo);this.stream=this.l_(n,i),this.stream.Po(()=>{s(()=>this.listener.Po())}),this.stream.To(()=>{s(()=>(this.state=2,this.Jo=this.oi.enqueueAfterDelay(this.zo,1e4,()=>(this.Xo()&&(this.state=3),Promise.resolve())),this.listener.To()))}),this.stream.Ao(u=>{s(()=>this.c_(u))}),this.stream.onMessage(u=>{s(()=>this.onMessage(u))})}e_(){var n=this;this.state=5,this.Yo.$o((0,he.A)(function*(){n.state=0,n.start()}))}c_(n){return st("PersistentStream",`close with error: ${n}`),this.stream=null,this.close(4,n)}a_(n){return i=>{this.oi.enqueueAndForget(()=>this.jo===n?i():(st("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve()))}}}class uf extends $d{constructor(n,i,s,u,p,_){super(n,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",i,s,u,_),this.serializer=p}l_(n,i){return this.connection.Oo("Listen",n,i)}onMessage(n){this.Yo.reset();const i=function Wl(l,n){let i;if("targetChange"in n){const s="NO_CHANGE"===(q=n.targetChange.targetChangeType||"NO_CHANGE")?0:"ADD"===q?1:"REMOVE"===q?2:"CURRENT"===q?3:"RESET"===q?4:G(),u=n.targetChange.targetIds||[],p=function(q,Ae){return q.useProto3Json?(X(void 0===Ae||"string"==typeof Ae),ui.fromBase64String(Ae||"")):(X(void 0===Ae||Ae instanceof Buffer||Ae instanceof Uint8Array),ui.fromUint8Array(Ae||new Uint8Array))}(l,n.targetChange.resumeToken),_=n.targetChange.cause,R=_&&function(q){const Ae=void 0===q.code?Ee.UNKNOWN:ri(q.code);return new Ve(Ae,q.message||"")}(_);i=new Si(s,u,p,R||null)}else if("documentChange"in n){const s=n.documentChange,u=ps(l,s.document.name),p=Ui(s.document.updateTime),_=s.document.createTime?Ui(s.document.createTime):En.min(),R=new Kn({mapValue:{fields:s.document.fields}}),k=Wr.newFoundDocument(u,p,_,R);i=new uo(s.targetIds||[],s.removedTargetIds||[],k.key,k)}else if("documentDelete"in n){const s=n.documentDelete,u=ps(l,s.document),p=s.readTime?Ui(s.readTime):En.min(),_=Wr.newNoDocument(u,p);i=new uo([],s.removedTargetIds||[],_.key,_)}else if("documentRemove"in n){const s=n.documentRemove,u=ps(l,s.document);i=new uo([],s.removedTargetIds||[],u,null)}else{if(!("filter"in n))return G();{const s=n.filter,{count:u=0,unchangedNames:p}=s,_=new Fn(u,p);i=new ns(s.targetId,_)}}var q;return i}(this.serializer,n),s=function(p){if(!("targetChange"in p))return En.min();const _=p.targetChange;return _.targetIds&&_.targetIds.length?En.min():_.readTime?Ui(_.readTime):En.min()}(n);return this.listener.h_(i,s)}P_(n){const i={};i.database=Da(this.serializer),i.addTarget=function(p,_){let R;const k=_.target;if(R=qe(k)?{documents:Kl(p,k)}:{query:gl(p,k)._t},R.targetId=_.targetId,_.resumeToken.approximateByteSize()>0){R.resumeToken=na(p,_.resumeToken);const q=ks(p,_.expectedCount);null!==q&&(R.expectedCount=q)}else if(_.snapshotVersion.compareTo(En.min())>0){R.readTime=rs(p,_.snapshotVersion.toTimestamp());const q=ks(p,_.expectedCount);null!==q&&(R.expectedCount=q)}return R}(this.serializer,n);const s=function Pu(l,n){const i=function(u){switch(u){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return G()}}(n.purpose);return null==i?null:{"goog-listen-tags":i}}(0,n);s&&(i.labels=s),this.i_(i)}I_(n){const i={};i.database=Da(this.serializer),i.removeTarget=n,this.i_(i)}}class cf extends $d{constructor(n,i,s,u,p,_){super(n,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",i,s,u,_),this.serializer=p,this.T_=!1}get E_(){return this.T_}start(){this.T_=!1,this.lastStreamToken=void 0,super.start()}__(){this.T_&&this.d_([])}l_(n,i){return this.connection.Oo("Write",n,i)}onMessage(n){if(X(!!n.streamToken),this.lastStreamToken=n.streamToken,this.T_){this.Yo.reset();const i=function Is(l,n){return l&&l.length>0?(X(void 0!==n),l.map(i=>function(u,p){let _=Ui(u.updateTime?u.updateTime:p);return _.isEqual(En.min())&&(_=Ui(p)),new js(_,u.transformResults||[])}(i,n))):[]}(n.writeResults,n.commitTime),s=Ui(n.commitTime);return this.listener.A_(s,i)}return X(!n.writeResults||0===n.writeResults.length),this.T_=!0,this.listener.R_()}V_(){const n={};n.database=Da(this.serializer),this.i_(n)}d_(n){const i={streamToken:this.lastStreamToken,writes:n.map(s=>function gs(l,n){let i;if(n instanceof ea)i={update:Mu(l,n.key,n.value)};else if(n instanceof j)i={delete:Ta(l,n.key)};else if(n instanceof Co)i={update:Mu(l,n.key,n.data),updateMask:bd(n.fieldMask)};else{if(!(n instanceof Ue))return G();i={verify:Ta(l,n.key)}}return n.fieldTransforms.length>0&&(i.updateTransforms=n.fieldTransforms.map(s=>function(p,_){const R=_.transform;if(R instanceof Os)return{fieldPath:_.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(R instanceof $s)return{fieldPath:_.field.canonicalString(),appendMissingElements:{values:R.elements}};if(R instanceof Ns)return{fieldPath:_.field.canonicalString(),removeAllFromArray:{values:R.elements}};if(R instanceof hs)return{fieldPath:_.field.canonicalString(),increment:R.Pe};throw G()}(0,s))),n.precondition.isNone||(i.currentDocument=void 0!==(p=n.precondition).updateTime?{updateTime:yc(l,p.updateTime)}:void 0!==p.exists?{exists:p.exists}:G()),i;var p}(this.serializer,s))};this.i_(i)}}class lg extends class{}{constructor(n,i,s,u){super(),this.authCredentials=n,this.appCheckCredentials=i,this.connection=s,this.serializer=u,this.m_=!1}f_(){if(this.m_)throw new Ve(Ee.FAILED_PRECONDITION,"The client has already been terminated.")}Co(n,i,s,u){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([p,_])=>this.connection.Co(n,Es(i,s),u,p,_)).catch(p=>{throw"FirebaseError"===p.name?(p.code===Ee.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),p):new Ve(Ee.UNKNOWN,p.toString())})}xo(n,i,s,u,p){return this.f_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then(([_,R])=>this.connection.xo(n,Es(i,s),u,_,R,p)).catch(_=>{throw"FirebaseError"===_.name?(_.code===Ee.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),_):new Ve(Ee.UNKNOWN,_.toString())})}terminate(){this.m_=!0,this.connection.terminate()}}class jd{constructor(n,i){this.asyncQueue=n,this.onlineStateHandler=i,this.state="Unknown",this.g_=0,this.p_=null,this.y_=!0}w_(){0===this.g_&&(this.S_("Unknown"),this.p_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,()=>(this.p_=null,this.b_("Backend didn't respond within 10 seconds."),this.S_("Offline"),Promise.resolve())))}D_(n){"Online"===this.state?this.S_("Unknown"):(this.g_++,this.g_>=1&&(this.C_(),this.b_(`Connection failed 1 times. Most recent error: ${n.toString()}`),this.S_("Offline")))}set(n){this.C_(),this.g_=0,"Online"===n&&(this.y_=!1),this.S_(n)}S_(n){n!==this.state&&(this.state=n,this.onlineStateHandler(n))}b_(n){const i=`Could not reach Cloud Firestore backend. ${n}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.y_?(cn(i),this.y_=!1):st("OnlineStateTracker",i)}C_(){null!==this.p_&&(this.p_.cancel(),this.p_=null)}}class bl{constructor(n,i,s,u,p){var _=this;this.localStore=n,this.datastore=i,this.asyncQueue=s,this.remoteSyncer={},this.v_=[],this.F_=new Map,this.M_=new Set,this.x_=[],this.O_=p,this.O_.io(R=>{s.enqueueAndForget((0,he.A)(function*(){var k;el(_)&&(st("RemoteStore","Restarting streams for network reachability change."),yield(k=(0,he.A)(function*(Ae){const He=ue(Ae);He.M_.add(4),yield nu(He),He.N_.set("Unknown"),He.M_.delete(4),yield Uc(He)}),function q(Ae){return k.apply(this,arguments)})(_))}))}),this.N_=new jd(s,u)}}function Uc(l){return $c.apply(this,arguments)}function $c(){return($c=(0,he.A)(function*(l){if(el(l))for(const n of l.x_)yield n(!0)})).apply(this,arguments)}function nu(l){return wl.apply(this,arguments)}function wl(){return(wl=(0,he.A)(function*(l){for(const n of l.x_)yield n(!1)})).apply(this,arguments)}function Za(l,n){const i=ue(l);i.F_.has(n.targetId)||(i.F_.set(n.targetId,n),ff(i)?Wu(i):Qu(i).Xo()&&df(i,n))}function po(l,n){const i=ue(l),s=Qu(i);i.F_.delete(n),s.Xo()&&hf(i,n),0===i.F_.size&&(s.Xo()?s.n_():el(i)&&i.N_.set("Unknown"))}function df(l,n){if(l.L_.xe(n.targetId),n.resumeToken.approximateByteSize()>0||n.snapshotVersion.compareTo(En.min())>0){const i=l.remoteSyncer.getRemoteKeysForTarget(n.targetId).size;n=n.withExpectedCount(i)}Qu(l).P_(n)}function hf(l,n){l.L_.xe(n),Qu(l).I_(n)}function Wu(l){l.L_=new zs({getRemoteKeysForTarget:n=>l.remoteSyncer.getRemoteKeysForTarget(n),ot:n=>l.F_.get(n)||null,tt:()=>l.datastore.serializer.databaseId}),Qu(l).start(),l.N_.w_()}function ff(l){return el(l)&&!Qu(l).Zo()&&l.F_.size>0}function el(l){return 0===ue(l).M_.size}function jc(l){l.L_=void 0}function ug(l){return zd.apply(this,arguments)}function zd(){return(zd=(0,he.A)(function*(l){l.N_.set("Online")})).apply(this,arguments)}function pf(l){return Ku.apply(this,arguments)}function Ku(){return(Ku=(0,he.A)(function*(l){l.F_.forEach((n,i)=>{df(l,n)})})).apply(this,arguments)}function cg(l,n){return gf.apply(this,arguments)}function gf(){return(gf=(0,he.A)(function*(l,n){jc(l),ff(l)?(l.N_.D_(n),Wu(l)):l.N_.set("Unknown")})).apply(this,arguments)}function fv(l,n,i){return mf.apply(this,arguments)}function mf(){return mf=(0,he.A)(function*(l,n,i){if(l.N_.set("Online"),n instanceof Si&&2===n.state&&n.cause)try{yield(s=(0,he.A)(function*(p,_){const R=_.cause;for(const k of _.targetIds)p.F_.has(k)&&(yield p.remoteSyncer.rejectListen(k,R),p.F_.delete(k),p.L_.removeTarget(k))}),function u(p,_){return s.apply(this,arguments)})(l,n)}catch(s){st("RemoteStore","Failed to remove targets %s: %s ",n.targetIds.join(","),s),yield zc(l,s)}else if(n instanceof uo?l.L_.Ke(n):n instanceof ns?l.L_.He(n):l.L_.We(n),!i.isEqual(En.min()))try{const s=yield Ws(l.localStore);i.compareTo(s)>=0&&(yield function(p,_){const R=p.L_.rt(_);return R.targetChanges.forEach((k,q)=>{if(k.resumeToken.approximateByteSize()>0){const Ae=p.F_.get(q);Ae&&p.F_.set(q,Ae.withResumeToken(k.resumeToken,_))}}),R.targetMismatches.forEach((k,q)=>{const Ae=p.F_.get(k);if(!Ae)return;p.F_.set(k,Ae.withResumeToken(ui.EMPTY_BYTE_STRING,Ae.snapshotVersion)),hf(p,k);const He=new b(Ae.target,k,q,Ae.sequenceNumber);df(p,He)}),p.remoteSyncer.applyRemoteEvent(R)}(l,i))}catch(s){st("RemoteStore","Failed to raise snapshot:",s),yield zc(l,s)}var s}),mf.apply(this,arguments)}function zc(l,n,i){return vf.apply(this,arguments)}function vf(){return(vf=(0,he.A)(function*(l,n,i){if(!Ge(n))throw n;l.M_.add(1),yield nu(l),l.N_.set("Offline"),i||(i=()=>Ws(l.localStore)),l.asyncQueue.enqueueRetryable((0,he.A)(function*(){st("RemoteStore","Retrying IndexedDB access"),yield i(),l.M_.delete(1),yield Uc(l)}))})).apply(this,arguments)}function _f(l,n){return n().catch(i=>zc(l,i,n))}function Xu(l){return yf.apply(this,arguments)}function yf(){return(yf=(0,he.A)(function*(l){const n=ue(l),i=ru(n);let s=n.v_.length>0?n.v_[n.v_.length-1].batchId:-1;for(;vy(n);)try{const u=yield Oc(n.localStore,s);if(null===u){0===n.v_.length&&i.n_();break}s=u.batchId,dg(n,u)}catch(u){yield zc(n,u)}Ef(n)&&Ts(n)})).apply(this,arguments)}function vy(l){return el(l)&&l.v_.length<10}function dg(l,n){l.v_.push(n);const i=ru(l);i.Xo()&&i.E_&&i.d_(n.mutations)}function Ef(l){return el(l)&&!ru(l).Zo()&&l.v_.length>0}function Ts(l){ru(l).start()}function _y(l){return Hd.apply(this,arguments)}function Hd(){return(Hd=(0,he.A)(function*(l){ru(l).V_()})).apply(this,arguments)}function yy(l){return Hc.apply(this,arguments)}function Hc(){return(Hc=(0,he.A)(function*(l){const n=ru(l);for(const i of l.v_)n.d_(i.mutations)})).apply(this,arguments)}function tl(l,n,i){return Gd.apply(this,arguments)}function Gd(){return(Gd=(0,he.A)(function*(l,n,i){const s=l.v_.shift(),u=De.from(s,n,i);yield _f(l,()=>l.remoteSyncer.applySuccessfulWrite(u)),yield Xu(l)})).apply(this,arguments)}function qu(l,n){return If.apply(this,arguments)}function If(){return If=(0,he.A)(function*(l,n){var i;n&&ru(l).E_&&(yield(i=(0,he.A)(function*(u,p){if(function bi(l){switch(l){default:return G();case Ee.CANCELLED:case Ee.UNKNOWN:case Ee.DEADLINE_EXCEEDED:case Ee.RESOURCE_EXHAUSTED:case Ee.INTERNAL:case Ee.UNAVAILABLE:case Ee.UNAUTHENTICATED:return!1;case Ee.INVALID_ARGUMENT:case Ee.NOT_FOUND:case Ee.ALREADY_EXISTS:case Ee.PERMISSION_DENIED:case Ee.FAILED_PRECONDITION:case Ee.ABORTED:case Ee.OUT_OF_RANGE:case Ee.UNIMPLEMENTED:case Ee.DATA_LOSS:return!0}}(R=p.code)&&R!==Ee.ABORTED){const _=u.v_.shift();ru(u).t_(),yield _f(u,()=>u.remoteSyncer.rejectFailedWrite(_.batchId,p)),yield Xu(u)}var R}),function s(u,p){return i.apply(this,arguments)})(l,n)),Ef(l)&&Ts(l)}),If.apply(this,arguments)}function hg(l,n){return Wd.apply(this,arguments)}function Wd(){return(Wd=(0,he.A)(function*(l,n){const i=ue(l);i.asyncQueue.verifyOperationInProgress(),st("RemoteStore","RemoteStore received new credentials");const s=el(i);i.M_.add(3),yield nu(i),s&&i.N_.set("Unknown"),yield i.remoteSyncer.handleCredentialChange(n),i.M_.delete(3),yield Uc(i)})).apply(this,arguments)}function fg(l,n){return pg.apply(this,arguments)}function pg(){return(pg=(0,he.A)(function*(l,n){const i=ue(l);n?(i.M_.delete(2),yield Uc(i)):n||(i.M_.add(2),yield nu(i),i.N_.set("Unknown"))})).apply(this,arguments)}function Qu(l){return l.B_||(l.B_=function(i,s,u){const p=ue(i);return p.f_(),new uf(s,p.connection,p.authCredentials,p.appCheckCredentials,p.serializer,u)}(l.datastore,l.asyncQueue,{Po:ug.bind(null,l),To:pf.bind(null,l),Ao:cg.bind(null,l),h_:fv.bind(null,l)}),l.x_.push(function(){var n=(0,he.A)(function*(i){i?(l.B_.t_(),ff(l)?Wu(l):l.N_.set("Unknown")):(yield l.B_.stop(),jc(l))});return function(i){return n.apply(this,arguments)}}())),l.B_}function ru(l){return l.k_||(l.k_=function(i,s,u){const p=ue(i);return p.f_(),new cf(s,p.connection,p.authCredentials,p.appCheckCredentials,p.serializer,u)}(l.datastore,l.asyncQueue,{Po:()=>Promise.resolve(),To:_y.bind(null,l),Ao:qu.bind(null,l),R_:yy.bind(null,l),A_:tl.bind(null,l)}),l.x_.push(function(){var n=(0,he.A)(function*(i){i?(l.k_.t_(),yield Xu(l)):(yield l.k_.stop(),l.v_.length>0&&(st("RemoteStore",`Stopping write stream with ${l.v_.length} pending writes`),l.v_=[]))});return function(i){return n.apply(this,arguments)}}())),l.k_}class gg{constructor(n,i,s,u,p){this.asyncQueue=n,this.timerId=i,this.targetTimeMs=s,this.op=u,this.removalCallback=p,this.deferred=new ut,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch(_=>{})}get promise(){return this.deferred.promise}static createAndSchedule(n,i,s,u,p){const _=Date.now()+s,R=new gg(n,i,_,u,p);return R.start(s),R}start(n){this.timerHandle=setTimeout(()=>this.handleDelayElapsed(),n)}skipDelay(){return this.handleDelayElapsed()}cancel(n){null!==this.timerHandle&&(this.clearTimeout(),this.deferred.reject(new Ve(Ee.CANCELLED,"Operation cancelled"+(n?": "+n:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget(()=>null!==this.timerHandle?(this.clearTimeout(),this.op().then(n=>this.deferred.resolve(n))):Promise.resolve())}clearTimeout(){null!==this.timerHandle&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function Yu(l,n){if(cn("AsyncQueue",`${n}: ${l}`),Ge(l))return new Ve(Ee.UNAVAILABLE,`${n}: ${l}`);throw l}class ga{constructor(n){this.comparator=n?(i,s)=>n(i,s)||on.comparator(i.key,s.key):(i,s)=>on.comparator(i.key,s.key),this.keyedMap=eo(),this.sortedSet=new Hr(this.comparator)}static emptySet(n){return new ga(n.comparator)}has(n){return null!=this.keyedMap.get(n)}get(n){return this.keyedMap.get(n)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(n){const i=this.keyedMap.get(n);return i?this.sortedSet.indexOf(i):-1}get size(){return this.sortedSet.size}forEach(n){this.sortedSet.inorderTraversal((i,s)=>(n(i),!1))}add(n){const i=this.delete(n.key);return i.copy(i.keyedMap.insert(n.key,n),i.sortedSet.insert(n,null))}delete(n){const i=this.get(n);return i?this.copy(this.keyedMap.remove(n),this.sortedSet.remove(i)):this}isEqual(n){if(!(n instanceof ga)||this.size!==n.size)return!1;const i=this.sortedSet.getIterator(),s=n.sortedSet.getIterator();for(;i.hasNext();){const u=i.getNext().key,p=s.getNext().key;if(!u.isEqual(p))return!1}return!0}toString(){const n=[];return this.forEach(i=>{n.push(i.toString())}),0===n.length?"DocumentSet ()":"DocumentSet (\n "+n.join(" \n")+"\n)"}copy(n,i){const s=new ga;return s.comparator=this.comparator,s.keyedMap=n,s.sortedSet=i,s}}class Ju{constructor(){this.q_=new Hr(on.comparator)}track(n){const i=n.doc.key,s=this.q_.get(i);s?0!==n.type&&3===s.type?this.q_=this.q_.insert(i,n):3===n.type&&1!==s.type?this.q_=this.q_.insert(i,{type:s.type,doc:n.doc}):2===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):2===n.type&&0===s.type?this.q_=this.q_.insert(i,{type:0,doc:n.doc}):1===n.type&&0===s.type?this.q_=this.q_.remove(i):1===n.type&&2===s.type?this.q_=this.q_.insert(i,{type:1,doc:s.doc}):0===n.type&&1===s.type?this.q_=this.q_.insert(i,{type:2,doc:n.doc}):G():this.q_=this.q_.insert(i,n)}Q_(){const n=[];return this.q_.inorderTraversal((i,s)=>{n.push(s)}),n}}class iu{constructor(n,i,s,u,p,_,R,k,q){this.query=n,this.docs=i,this.oldDocs=s,this.docChanges=u,this.mutatedKeys=p,this.fromCache=_,this.syncStateChanged=R,this.excludesMetadataChanges=k,this.hasCachedResults=q}static fromInitialDocuments(n,i,s,u,p){const _=[];return i.forEach(R=>{_.push({type:0,doc:R})}),new iu(n,i,ga.emptySet(i),_,s,u,!0,!1,p)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(n){if(!(this.fromCache===n.fromCache&&this.hasCachedResults===n.hasCachedResults&&this.syncStateChanged===n.syncStateChanged&&this.mutatedKeys.isEqual(n.mutatedKeys)&&ao(this.query,n.query)&&this.docs.isEqual(n.docs)&&this.oldDocs.isEqual(n.oldDocs)))return!1;const i=this.docChanges,s=n.docChanges;if(i.length!==s.length)return!1;for(let u=0;un.G_())}}class Af{constructor(){this.queries=new Eo(n=>No(n),ao),this.onlineState="Unknown",this.z_=new Set}}function Ks(l,n){return Cf.apply(this,arguments)}function Cf(){return(Cf=(0,he.A)(function*(l,n){const i=ue(l);let s=3;const u=n.query;let p=i.queries.get(u);p?!p.W_()&&n.G_()&&(s=2):(p=new pv,s=n.G_()?0:1);try{switch(s){case 0:p.K_=yield i.onListen(u,!0);break;case 1:p.K_=yield i.onListen(u,!1);break;case 2:yield i.onFirstRemoteStoreListen(u)}}catch(_){const R=Yu(_,`Initialization of query '${Ki(n.query)}' failed`);return void n.onError(R)}i.queries.set(u,p),p.U_.push(n),n.j_(i.onlineState),p.K_&&n.H_(p.K_)&&Kd(i)})).apply(this,arguments)}function Zu(l,n){return ou.apply(this,arguments)}function ou(){return(ou=(0,he.A)(function*(l,n){const i=ue(l),s=n.query;let u=3;const p=i.queries.get(s);if(p){const _=p.U_.indexOf(n);_>=0&&(p.U_.splice(_,1),0===p.U_.length?u=n.G_()?0:1:!p.W_()&&n.G_()&&(u=2))}switch(u){case 0:return i.queries.delete(s),i.onUnlisten(s,!0);case 1:return i.queries.delete(s),i.onUnlisten(s,!1);case 2:return i.onLastRemoteStoreUnlisten(s);default:return}})).apply(this,arguments)}function gv(l,n){const i=ue(l);let s=!1;for(const u of n){const _=i.queries.get(u.query);if(_){for(const R of _.U_)R.H_(u)&&(s=!0);_.K_=u}}s&&Kd(i)}function mg(l,n,i){const s=ue(l),u=s.queries.get(n);if(u)for(const p of u.U_)p.onError(i);s.queries.delete(n)}function Kd(l){l.z_.forEach(n=>{n.next()})}var I,f;(f=I||(I={})).J_="default",f.Cache="cache";class v{constructor(n,i,s){this.query=n,this.Y_=i,this.Z_=!1,this.X_=null,this.onlineState="Unknown",this.options=s||{}}H_(n){if(!this.options.includeMetadataChanges){const s=[];for(const u of n.docChanges)3!==u.type&&s.push(u);n=new iu(n.query,n.docs,n.oldDocs,s,n.mutatedKeys,n.fromCache,n.syncStateChanged,!0,n.hasCachedResults)}let i=!1;return this.Z_?this.ea(n)&&(this.Y_.next(n),i=!0):this.ta(n,this.onlineState)&&(this.na(n),i=!0),this.X_=n,i}onError(n){this.Y_.error(n)}j_(n){this.onlineState=n;let i=!1;return this.X_&&!this.Z_&&this.ta(this.X_,n)&&(this.na(this.X_),i=!0),i}ta(n,i){return!n.fromCache||!this.G_()||(!this.options.ra||!("Offline"!==i))&&(!n.docs.isEmpty()||n.hasCachedResults||"Offline"===i)}ea(n){return n.docChanges.length>0||!!(n.syncStateChanged||this.X_&&this.X_.hasPendingWrites!==n.hasPendingWrites)&&!0===this.options.includeMetadataChanges}na(n){n=iu.fromInitialDocuments(n.query,n.docs,n.mutatedKeys,n.fromCache,n.hasCachedResults),this.Z_=!0,this.Y_.next(n)}G_(){return this.options.source!==I.Cache}}class Jt{constructor(n){this.key=n}}class Mn{constructor(n){this.key=n}}class Jn{constructor(n,i){this.query=n,this.la=i,this.ha=null,this.hasCachedResults=!1,this.current=!1,this.Pa=ei(),this.mutatedKeys=ei(),this.Ia=cs(n),this.Ta=new ga(this.Ia)}get Ea(){return this.la}da(n,i){const s=i?i.Aa:new Ju,u=i?i.Ta:this.Ta;let p=i?i.mutatedKeys:this.mutatedKeys,_=u,R=!1;const k="F"===this.query.limitType&&u.size===this.query.limit?u.last():null,q="L"===this.query.limitType&&u.size===this.query.limit?u.first():null;if(n.inorderTraversal((Ae,He)=>{const yt=u.get(Ae),Yt=Qi(this.query,He)?He:null,Rn=!!yt&&this.mutatedKeys.has(yt.key),Wn=!!Yt&&(Yt.hasLocalMutations||this.mutatedKeys.has(Yt.key)&&Yt.hasCommittedMutations);let Ln=!1;yt&&Yt?yt.data.isEqual(Yt.data)?Rn!==Wn&&(s.track({type:3,doc:Yt}),Ln=!0):this.Ra(yt,Yt)||(s.track({type:2,doc:Yt}),Ln=!0,(k&&this.Ia(Yt,k)>0||q&&this.Ia(Yt,q)<0)&&(R=!0)):!yt&&Yt?(s.track({type:0,doc:Yt}),Ln=!0):yt&&!Yt&&(s.track({type:1,doc:yt}),Ln=!0,(k||q)&&(R=!0)),Ln&&(Yt?(_=_.add(Yt),p=Wn?p.add(Ae):p.delete(Ae)):(_=_.delete(Ae),p=p.delete(Ae)))}),null!==this.query.limit)for(;_.size>this.query.limit;){const Ae="F"===this.query.limitType?_.last():_.first();_=_.delete(Ae.key),p=p.delete(Ae.key),s.track({type:1,doc:Ae})}return{Ta:_,Aa:s,Xi:R,mutatedKeys:p}}Ra(n,i){return n.hasLocalMutations&&i.hasCommittedMutations&&!i.hasLocalMutations}applyChanges(n,i,s,u){const p=this.Ta;this.Ta=n.Ta,this.mutatedKeys=n.mutatedKeys;const _=n.Aa.Q_();_.sort((Ae,He)=>function(Yt,Rn){const Wn=Ln=>{switch(Ln){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return G()}};return Wn(Yt)-Wn(Rn)}(Ae.type,He.type)||this.Ia(Ae.doc,He.doc)),this.Va(s),u=null!=u&&u;const R=i&&!u?this.ma():[],k=0===this.Pa.size&&this.current&&!u?1:0,q=k!==this.ha;return this.ha=k,0!==_.length||q?{snapshot:new iu(this.query,n.Ta,p,_,n.mutatedKeys,0===k,q,!1,!!s&&s.resumeToken.approximateByteSize()>0),fa:R}:{fa:R}}j_(n){return this.current&&"Offline"===n?(this.current=!1,this.applyChanges({Ta:this.Ta,Aa:new Ju,mutatedKeys:this.mutatedKeys,Xi:!1},!1)):{fa:[]}}ga(n){return!this.la.has(n)&&!!this.Ta.has(n)&&!this.Ta.get(n).hasLocalMutations}Va(n){n&&(n.addedDocuments.forEach(i=>this.la=this.la.add(i)),n.modifiedDocuments.forEach(i=>{}),n.removedDocuments.forEach(i=>this.la=this.la.delete(i)),this.current=n.current)}ma(){if(!this.current)return[];const n=this.Pa;this.Pa=ei(),this.Ta.forEach(s=>{this.ga(s.key)&&(this.Pa=this.Pa.add(s.key))});const i=[];return n.forEach(s=>{this.Pa.has(s)||i.push(new Mn(s))}),this.Pa.forEach(s=>{n.has(s)||i.push(new Jt(s))}),i}pa(n){this.la=n.hs,this.Pa=ei();const i=this.da(n.documents);return this.applyChanges(i,!0)}ya(){return iu.fromInitialDocuments(this.query,this.Ta,this.mutatedKeys,0===this.ha,this.hasCachedResults)}}class xr{constructor(n,i,s){this.query=n,this.targetId=i,this.view=s}}class Ci{constructor(n){this.key=n,this.wa=!1}}class Yo{constructor(n,i,s,u,p,_){this.localStore=n,this.remoteStore=i,this.eventManager=s,this.sharedClientState=u,this.currentUser=p,this.maxConcurrentLimboResolutions=_,this.Sa={},this.ba=new Eo(R=>No(R),ao),this.Da=new Map,this.Ca=new Set,this.va=new Hr(on.comparator),this.Fa=new Map,this.Ma=new xd,this.xa={},this.Oa=new Map,this.Na=_l.Ln(),this.onlineState="Unknown",this.La=void 0}get isPrimaryClient(){return!0===this.La}}function go(l,n){return ma.apply(this,arguments)}function ma(){return(ma=(0,he.A)(function*(l,n,i=!0){const s=rc(l);let u;const p=s.ba.get(n);return p?(s.sharedClientState.addLocalQueryTarget(p.targetId),u=p.view.ya()):u=yield qd(s,n,i,!0),u})).apply(this,arguments)}function Xd(l,n){return su.apply(this,arguments)}function su(){return(su=(0,he.A)(function*(l,n){const i=rc(l);yield qd(i,n,!0,!1)})).apply(this,arguments)}function qd(l,n,i,s){return ec.apply(this,arguments)}function ec(){return(ec=(0,he.A)(function*(l,n,i,s){const u=yield function fa(l,n){const i=ue(l);return i.persistence.runTransaction("Allocate target","readwrite",s=>{let u;return i.Qr.getTargetData(s,n).next(p=>p?(u=p,ve.resolve(u)):i.Qr.allocateTargetId(s).next(_=>(u=new b(n,_,"TargetPurposeListen",s.currentSequenceNumber),i.Qr.addTargetData(s,u).next(()=>u))))}).then(s=>{const u=i.ns.get(s.targetId);return(null===u||s.snapshotVersion.compareTo(u.snapshotVersion)>0)&&(i.ns=i.ns.insert(s.targetId,s),i.rs.set(n,s.targetId)),s})}(l.localStore,zn(n)),p=u.targetId,_=i?l.sharedClientState.addLocalQueryTarget(p):"not-current";let R;return s&&(R=yield function tc(l,n,i,s,u){return nc.apply(this,arguments)}(l,n,p,"current"===_,u.resumeToken)),l.isPrimaryClient&&i&&Za(l.remoteStore,u),R})).apply(this,arguments)}function nc(){return nc=(0,he.A)(function*(l,n,i,s,u){l.Ba=(He,yt,Yt)=>{return(Rn=(0,he.A)(function*(Ln,Cr,Gr,Or){let si=Cr.view.da(Gr);si.Xi&&(si=yield El(Ln.localStore,Cr.query,!1).then(({documents:ht})=>Cr.view.da(ht,si)));const Wi=Or&&Or.targetChanges.get(Cr.targetId),Ti=Or&&null!=Or.targetMismatches.get(Cr.targetId),Bt=Cr.view.applyChanges(si,Ln.isPrimaryClient,Wi,Ti);return Cg(Ln,Cr.targetId,Bt.fa),Bt.snapshot}),function Wn(Ln,Cr,Gr,Or){return Rn.apply(this,arguments)})(l,He,yt,Yt);var Rn};const p=yield El(l.localStore,n,!0),_=new Jn(n,p.hs),R=_.da(p.documents),k=Vi.createSynthesizedTargetChangeForCurrentChange(i,s&&"Offline"!==l.onlineState,u),q=_.applyChanges(R,l.isPrimaryClient,k);Cg(l,i,q.fa);const Ae=new xr(n,i,_);return l.ba.set(n,Ae),l.Da.has(i)?l.Da.get(i).push(n):l.Da.set(i,[n]),q.snapshot}),nc.apply(this,arguments)}function Tf(l,n,i){return au.apply(this,arguments)}function au(){return(au=(0,he.A)(function*(l,n,i){const s=ue(l),u=s.ba.get(n),p=s.Da.get(u.targetId);if(p.length>1)return s.Da.set(u.targetId,p.filter(_=>!ao(_,n))),void s.ba.delete(n);s.isPrimaryClient?(s.sharedClientState.removeLocalQueryTarget(u.targetId),s.sharedClientState.isActiveQueryTarget(u.targetId)||(yield pa(s.localStore,u.targetId,!1).then(()=>{s.sharedClientState.clearQueryState(u.targetId),i&&po(s.remoteStore,u.targetId),Zd(s,u.targetId)}).catch(Di))):(Zd(s,u.targetId),yield pa(s.localStore,u.targetId,!0))})).apply(this,arguments)}function Df(l,n){return Qd.apply(this,arguments)}function Qd(){return(Qd=(0,he.A)(function*(l,n){const i=ue(l),s=i.ba.get(n),u=i.Da.get(s.targetId);i.isPrimaryClient&&1===u.length&&(i.sharedClientState.removeLocalQueryTarget(s.targetId),po(i.remoteStore,s.targetId))})).apply(this,arguments)}function Jd(){return(Jd=(0,he.A)(function*(l,n,i){const s=function Gc(l){const n=ue(l);return n.remoteStore.remoteSyncer.applySuccessfulWrite=mv.bind(null,n),n.remoteStore.remoteSyncer.rejectFailedWrite=vv.bind(null,n),n}(l);try{const u=yield function(_,R){const k=ue(_),q=yn.now(),Ae=R.reduce((Yt,Rn)=>Yt.add(Rn.key),ei());let He,yt;return k.persistence.runTransaction("Locally write mutations","readwrite",Yt=>{let Rn=jr(),Wn=ei();return k.os.getEntries(Yt,Ae).next(Ln=>{Rn=Ln,Rn.forEach((Cr,Gr)=>{Gr.isValidDocument()||(Wn=Wn.add(Cr))})}).next(()=>k.localDocuments.getOverlayedDocuments(Yt,Rn)).next(Ln=>{He=Ln;const Cr=[];for(const Gr of R){const Or=Ia(Gr,He.get(Gr.key).overlayedDocument);null!=Or&&Cr.push(new Co(Gr.key,Or,Qr(Or.value.mapValue),Yi.exists(!0)))}return k.mutationQueue.addMutationBatch(Yt,q,Cr,R)}).next(Ln=>{yt=Ln;const Cr=Ln.applyToLocalDocumentSet(He,Wn);return k.documentOverlayCache.saveOverlays(Yt,Ln.batchId,Cr)})}).then(()=>({batchId:yt.batchId,changes:So(He)}))}(s.localStore,n);s.sharedClientState.addPendingMutation(u.batchId),function(_,R,k){let q=_.xa[_.currentUser.toKey()];q||(q=new Hr(nt)),q=q.insert(R,k),_.xa[_.currentUser.toKey()]=q}(s,u.batchId,i),yield Sl(s,u.changes),yield Xu(s.remoteStore)}catch(u){const p=Yu(u,"Failed to persist write");i.reject(p)}})).apply(this,arguments)}function vg(l,n){return bf.apply(this,arguments)}function bf(){return(bf=(0,he.A)(function*(l,n){const i=ue(l);try{const s=yield function ag(l,n){const i=ue(l),s=n.snapshotVersion;let u=i.ns;return i.persistence.runTransaction("Apply remote event","readwrite-primary",p=>{const _=i.os.newChangeBuffer({trackRemovals:!0});u=i.ns;const R=[];n.targetChanges.forEach((Ae,He)=>{const yt=u.get(He);if(!yt)return;R.push(i.Qr.removeMatchingKeys(p,Ae.removedDocuments,He).next(()=>i.Qr.addMatchingKeys(p,Ae.addedDocuments,He)));let Yt=yt.withSequenceNumber(p.currentSequenceNumber);var Wn,Ln,Cr;null!==n.targetMismatches.get(He)?Yt=Yt.withResumeToken(ui.EMPTY_BYTE_STRING,En.min()).withLastLimboFreeSnapshotVersion(En.min()):Ae.resumeToken.approximateByteSize()>0&&(Yt=Yt.withResumeToken(Ae.resumeToken,s)),u=u.insert(He,Yt),Ln=Yt,Cr=Ae,(0===(Wn=yt).resumeToken.approximateByteSize()||Ln.snapshotVersion.toMicroseconds()-Wn.snapshotVersion.toMicroseconds()>=3e8||Cr.addedDocuments.size+Cr.modifiedDocuments.size+Cr.removedDocuments.size>0)&&R.push(i.Qr.updateTargetData(p,Yt))});let k=jr(),q=ei();if(n.documentUpdates.forEach(Ae=>{n.resolvedLimboDocuments.has(Ae)&&R.push(i.persistence.referenceDelegate.updateLimboDocument(p,Ae))}),R.push(function ju(l,n,i){let s=ei(),u=ei();return i.forEach(p=>s=s.add(p)),n.getEntries(l,s).next(p=>{let _=jr();return i.forEach((R,k)=>{const q=p.get(R);k.isFoundDocument()!==q.isFoundDocument()&&(u=u.add(R)),k.isNoDocument()&&k.version.isEqual(En.min())?(n.removeEntry(R,k.readTime),_=_.insert(R,k)):!q.isValidDocument()||k.version.compareTo(q.version)>0||0===k.version.compareTo(q.version)&&q.hasPendingWrites?(n.addEntry(k),_=_.insert(R,k)):st("LocalStore","Ignoring outdated watch update for ",R,". Current version:",q.version," Watch version:",k.version)}),{cs:_,ls:u}})}(p,_,n.documentUpdates).next(Ae=>{k=Ae.cs,q=Ae.ls})),!s.isEqual(En.min())){const Ae=i.Qr.getLastRemoteSnapshotVersion(p).next(He=>i.Qr.setTargetsMetadata(p,p.currentSequenceNumber,s));R.push(Ae)}return ve.waitFor(R).next(()=>_.apply(p)).next(()=>i.localDocuments.getLocalViewOfDocuments(p,k,q)).next(()=>k)}).then(p=>(i.ns=u,p))}(i.localStore,n);n.targetChanges.forEach((u,p)=>{const _=i.Fa.get(p);_&&(X(u.addedDocuments.size+u.modifiedDocuments.size+u.removedDocuments.size<=1),u.addedDocuments.size>0?_.wa=!0:u.modifiedDocuments.size>0?X(_.wa):u.removedDocuments.size>0&&(X(_.wa),_.wa=!1))}),yield Sl(i,s,n)}catch(s){yield Di(s)}})).apply(this,arguments)}function _g(l,n,i){const s=ue(l);if(s.isPrimaryClient&&0===i||!s.isPrimaryClient&&1===i){const u=[];s.ba.forEach((p,_)=>{const R=_.view.j_(n);R.snapshot&&u.push(R.snapshot)}),function(_,R){const k=ue(_);k.onlineState=R;let q=!1;k.queries.forEach((Ae,He)=>{for(const yt of He.U_)yt.j_(R)&&(q=!0)}),q&&Kd(k)}(s.eventManager,n),u.length&&s.Sa.h_(u),s.onlineState=n,s.isPrimaryClient&&s.sharedClientState.setOnlineState(n)}}function wf(l,n,i){return Sf.apply(this,arguments)}function Sf(){return(Sf=(0,he.A)(function*(l,n,i){const s=ue(l);s.sharedClientState.updateQueryState(n,"rejected",i);const u=s.Fa.get(n),p=u&&u.key;if(p){let _=new Hr(on.comparator);_=_.insert(p,Wr.newNoDocument(p,En.min()));const R=ei().add(p),k=new lo(En.min(),new Map,new Hr(nt),_,R);yield vg(s,k),s.va=s.va.remove(p),s.Fa.delete(n),_v(s)}else yield pa(s.localStore,n,!1).then(()=>Zd(s,n,i)).catch(Di)})).apply(this,arguments)}function mv(l,n){return Rf.apply(this,arguments)}function Rf(){return(Rf=(0,he.A)(function*(l,n){const i=ue(l),s=n.batch.batchId;try{const u=yield function $u(l,n){const i=ue(l);return i.persistence.runTransaction("Acknowledge batch","readwrite-primary",s=>{const u=n.batch.keys(),p=i.os.newChangeBuffer({trackRemovals:!0});return function(R,k,q,Ae){const He=q.batch,yt=He.keys();let Yt=ve.resolve();return yt.forEach(Rn=>{Yt=Yt.next(()=>Ae.getEntry(k,Rn)).next(Wn=>{const Ln=q.docVersions.get(Rn);X(null!==Ln),Wn.version.compareTo(Ln)<0&&(He.applyToRemoteDocument(Wn,q),Wn.isValidDocument()&&(Wn.setReadTime(q.commitVersion),Ae.addEntry(Wn)))})}),Yt.next(()=>R.mutationQueue.removeMutationBatch(k,He))}(i,s,n,p).next(()=>p.apply(s)).next(()=>i.mutationQueue.performConsistencyCheck(s)).next(()=>i.documentOverlayCache.removeOverlaysForBatchId(s,u,n.batch.batchId)).next(()=>i.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(s,function(R){let k=ei();for(let q=0;q0&&(k=k.add(R.batch.mutations[q].key));return k}(n))).next(()=>i.localDocuments.getDocuments(s,u))})}(i.localStore,n);Mf(i,s,null),Ig(i,s),i.sharedClientState.updateMutationState(s,"acknowledged"),yield Sl(i,u)}catch(u){yield Di(u)}})).apply(this,arguments)}function vv(l,n,i){return yg.apply(this,arguments)}function yg(){return(yg=(0,he.A)(function*(l,n,i){const s=ue(l);try{const u=yield function(_,R){const k=ue(_);return k.persistence.runTransaction("Reject batch","readwrite-primary",q=>{let Ae;return k.mutationQueue.lookupMutationBatch(q,R).next(He=>(X(null!==He),Ae=He.keys(),k.mutationQueue.removeMutationBatch(q,He))).next(()=>k.mutationQueue.performConsistencyCheck(q)).next(()=>k.documentOverlayCache.removeOverlaysForBatchId(q,Ae,R)).next(()=>k.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(q,Ae)).next(()=>k.localDocuments.getDocuments(q,Ae))})}(s.localStore,n);Mf(s,n,i),Ig(s,n),s.sharedClientState.updateMutationState(n,"rejected",i),yield Sl(s,u)}catch(u){yield Di(u)}})).apply(this,arguments)}function Ig(l,n){(l.Oa.get(n)||[]).forEach(i=>{i.resolve()}),l.Oa.delete(n)}function Mf(l,n,i){const s=ue(l);let u=s.xa[s.currentUser.toKey()];if(u){const p=u.get(n);p&&(i?p.reject(i):p.resolve(),u=u.remove(n)),s.xa[s.currentUser.toKey()]=u}}function Zd(l,n,i=null){l.sharedClientState.removeLocalQueryTarget(n);for(const s of l.Da.get(n))l.ba.delete(s),i&&l.Sa.ka(s,i);l.Da.delete(n),l.isPrimaryClient&&l.Ma.Vr(n).forEach(s=>{l.Ma.containsKey(s)||Ag(l,s)})}function Ag(l,n){l.Ca.delete(n.path.canonicalString());const i=l.va.get(n);null!==i&&(po(l.remoteStore,i),l.va=l.va.remove(n),l.Fa.delete(i),_v(l))}function Cg(l,n,i){for(const s of i)s instanceof Jt?(l.Ma.addReference(s.key,n),Iy(l,s)):s instanceof Mn?(st("SyncEngine","Document no longer in limbo: "+s.key),l.Ma.removeReference(s.key,n),l.Ma.containsKey(s.key)||Ag(l,s.key)):G()}function Iy(l,n){const i=n.key,s=i.path.canonicalString();l.va.get(i)||l.Ca.has(s)||(st("SyncEngine","New document in limbo: "+i),l.Ca.add(s),_v(l))}function _v(l){for(;l.Ca.size>0&&l.va.size{_.push(s.Ba(k,n,i).then(q=>{if((q||i)&&s.isPrimaryClient&&s.sharedClientState.updateQueryState(k.targetId,q&&!q.fromCache?"current":"not-current"),q){u.push(q);const Ae=Gi.Ki(k.targetId,q);p.push(Ae)}}))}),yield Promise.all(_),s.Sa.h_(u),yield(R=(0,he.A)(function*(q,Ae){const He=ue(q);try{yield He.persistence.runTransaction("notifyLocalViewChanges","readwrite",yt=>ve.forEach(Ae,Yt=>ve.forEach(Yt.qi,Rn=>He.persistence.referenceDelegate.addReference(yt,Yt.targetId,Rn)).next(()=>ve.forEach(Yt.Qi,Rn=>He.persistence.referenceDelegate.removeReference(yt,Yt.targetId,Rn)))))}catch(yt){if(!Ge(yt))throw yt;st("LocalStore","Failed to update sequence numbers: "+yt)}for(const yt of Ae){const Yt=yt.targetId;if(!yt.fromCache){const Rn=He.ns.get(Yt),Ln=Rn.withLastLimboFreeSnapshotVersion(Rn.snapshotVersion);He.ns=He.ns.insert(Yt,Ln)}}}),function k(q,Ae){return R.apply(this,arguments)})(s.localStore,p))}),Pf.apply(this,arguments)}function Tg(l,n){return Dg.apply(this,arguments)}function Dg(){return(Dg=(0,he.A)(function*(l,n){const i=ue(l);if(!i.currentUser.isEqual(n)){st("SyncEngine","User change. New user:",n.toKey());const s=yield Fd(i.localStore,n);i.currentUser=n,(p=i).Oa.forEach(R=>{R.forEach(k=>{k.reject(new Ve(Ee.CANCELLED,"'waitForPendingWrites' promise is rejected due to a user change."))})}),p.Oa.clear(),i.sharedClientState.handleUserChange(n,s.removedBatchIds,s.addedBatchIds),yield Sl(i,s.us)}var p})).apply(this,arguments)}function lu(l,n){const i=ue(l),s=i.Fa.get(n);if(s&&s.wa)return ei().add(s.key);{let u=ei();const p=i.Da.get(n);if(!p)return u;for(const _ of p){const R=i.ba.get(_);u=u.unionWith(R.view.Ea)}return u}}function rc(l){const n=ue(l);return n.remoteStore.remoteSyncer.applyRemoteEvent=vg.bind(null,n),n.remoteStore.remoteSyncer.getRemoteKeysForTarget=lu.bind(null,n),n.remoteStore.remoteSyncer.rejectListen=wf.bind(null,n),n.Sa.h_=gv.bind(null,n.eventManager),n.Sa.ka=mg.bind(null,n.eventManager),n}class nl{constructor(){this.synchronizeTabs=!1}initialize(n){var i=this;return(0,he.A)(function*(){i.serializer=Bc(n.databaseInfo.databaseId),i.sharedClientState=i.createSharedClientState(n),i.persistence=i.createPersistence(n),yield i.persistence.start(),i.localStore=i.createLocalStore(n),i.gcScheduler=i.createGarbageCollectionScheduler(n,i.localStore),i.indexBackfillerScheduler=i.createIndexBackfillerScheduler(n,i.localStore)})()}createGarbageCollectionScheduler(n,i){return null}createIndexBackfillerScheduler(n,i){return null}createLocalStore(n){return function nf(l,n,i,s){return new sg(l,n,i,s)}(this.persistence,new tf,n.initialUser,this.serializer)}createPersistence(n){return new Pc(xa.Hr,this.serializer)}createSharedClientState(n){return new af}terminate(){var n=this;return(0,he.A)(function*(){var i,s;null===(i=n.gcScheduler)||void 0===i||i.stop(),null===(s=n.indexBackfillerScheduler)||void 0===s||s.stop(),n.sharedClientState.shutdown(),yield n.persistence.shutdown()})()}}class rl{initialize(n,i){var s=this;return(0,he.A)(function*(){s.localStore||(s.localStore=n.localStore,s.sharedClientState=n.sharedClientState,s.datastore=s.createDatastore(i),s.remoteStore=s.createRemoteStore(i),s.eventManager=s.createEventManager(i),s.syncEngine=s.createSyncEngine(i,!n.synchronizeTabs),s.sharedClientState.onlineStateHandler=u=>_g(s.syncEngine,u,1),s.remoteStore.remoteSyncer.handleCredentialChange=Tg.bind(null,s.syncEngine),yield fg(s.remoteStore,s.syncEngine.isPrimaryClient))})()}createEventManager(n){return new Af}createDatastore(n){const i=Bc(n.databaseInfo.databaseId),s=new Ud(n.databaseInfo);return new lg(n.authCredentials,n.appCheckCredentials,s,i)}createRemoteStore(n){return s=this.localStore,u=this.datastore,p=n.asyncQueue,_=i=>_g(this.syncEngine,i,0),R=Bd.D()?new Bd:new lf,new bl(s,u,p,_,R);var s,u,p,_,R}createSyncEngine(n,i){return function(u,p,_,R,k,q,Ae){const He=new Yo(u,p,_,R,k,q);return Ae&&(He.La=!0),He}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,n.initialUser,n.maxConcurrentLimboResolutions,i)}terminate(){var n=this;return(0,he.A)(function*(){var i,s;yield(s=(0,he.A)(function*(p){const _=ue(p);st("RemoteStore","RemoteStore shutting down."),_.M_.add(5),yield nu(_),_.O_.shutdown(),_.N_.set("Unknown")}),function u(p){return s.apply(this,arguments)})(n.remoteStore),null===(i=n.datastore)||void 0===i||i.terminate()})()}}class Xc{constructor(n){this.observer=n,this.muted=!1}next(n){this.observer.next&&this.Ka(this.observer.next,n)}error(n){this.observer.error?this.Ka(this.observer.error,n):cn("Uncaught Error in snapshot listener:",n.toString())}$a(){this.muted=!0}Ka(n,i){this.muted||setTimeout(()=>{this.muted||n(i)},0)}}class wy{constructor(n,i,s,u){var p=this;this.authCredentials=n,this.appCheckCredentials=i,this.asyncQueue=s,this.databaseInfo=u,this.user=Oe.UNAUTHENTICATED,this.clientId=dr.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this.authCredentials.start(s,function(){var _=(0,he.A)(function*(R){st("FirestoreClient","Received user=",R.uid),yield p.authCredentialListener(R),p.user=R});return function(R){return _.apply(this,arguments)}}()),this.appCheckCredentials.start(s,_=>(st("FirestoreClient","Received new app check token=",_),this.appCheckCredentialListener(_,this.user)))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(n){this.authCredentialListener=n}setAppCheckTokenChangeListener(n){this.appCheckCredentialListener=n}verifyNotTerminated(){if(this.asyncQueue.isShuttingDown)throw new Ve(Ee.FAILED_PRECONDITION,"The client has already been terminated.")}terminate(){var n=this;this.asyncQueue.enterRestrictedMode();const i=new ut;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((0,he.A)(function*(){try{n._onlineComponents&&(yield n._onlineComponents.terminate()),n._offlineComponents&&(yield n._offlineComponents.terminate()),n.authCredentials.shutdown(),n.appCheckCredentials.shutdown(),i.resolve()}catch(s){const u=Yu(s,"Failed to shutdown persistence");i.reject(u)}})),i.promise}}function Of(l,n){return oh.apply(this,arguments)}function oh(){return oh=(0,he.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress(),st("FirestoreClient","Initializing OfflineComponentProvider");const i=l.configuration;yield n.initialize(i);let s=i.initialUser;l.setCredentialChangeListener(function(){var u=(0,he.A)(function*(p){s.isEqual(p)||(yield Fd(n.localStore,p),s=p)});return function(p){return u.apply(this,arguments)}}()),n.persistence.setDatabaseDeletedListener(()=>l.terminate()),l._offlineComponents=n}),oh.apply(this,arguments)}function Nf(l,n){return Rg.apply(this,arguments)}function Rg(){return(Rg=(0,he.A)(function*(l,n){l.asyncQueue.verifyOperationInProgress();const i=yield function ic(l){return kf.apply(this,arguments)}(l);st("FirestoreClient","Initializing OnlineComponentProvider"),yield n.initialize(i,l.configuration),l.setCredentialChangeListener(s=>hg(n.remoteStore,s)),l.setAppCheckTokenChangeListener((s,u)=>hg(n.remoteStore,u)),l._onlineComponents=n})).apply(this,arguments)}function kf(){return(kf=(0,he.A)(function*(l){if(!l._offlineComponents)if(l._uninitializedComponentsProvider){st("FirestoreClient","Using user provided OfflineComponentProvider");try{yield Of(l,l._uninitializedComponentsProvider._offline)}catch(n){const i=n;if(!function Dv(l){return"FirebaseError"===l.name?l.code===Ee.FAILED_PRECONDITION||l.code===Ee.UNIMPLEMENTED:!(typeof DOMException<"u"&&l instanceof DOMException)||22===l.code||20===l.code||11===l.code}(i))throw i;vt("Error using user provided cache. Falling back to memory cache: "+i),yield Of(l,new nl)}}else st("FirestoreClient","Using default OfflineComponentProvider"),yield Of(l,new nl);return l._offlineComponents})).apply(this,arguments)}function qc(l){return Mg.apply(this,arguments)}function Mg(){return(Mg=(0,he.A)(function*(l){return l._onlineComponents||(l._uninitializedComponentsProvider?(st("FirestoreClient","Using user provided OnlineComponentProvider"),yield Nf(l,l._uninitializedComponentsProvider._online)):(st("FirestoreClient","Using default OnlineComponentProvider"),yield Nf(l,new rl))),l._onlineComponents})).apply(this,arguments)}function cu(l){return xg.apply(this,arguments)}function xg(){return(xg=(0,he.A)(function*(l){const n=yield qc(l),i=n.eventManager;return i.onListen=go.bind(null,n.syncEngine),i.onUnlisten=Tf.bind(null,n.syncEngine),i.onFirstRemoteStoreListen=Xd.bind(null,n.syncEngine),i.onLastRemoteStoreUnlisten=Df.bind(null,n.syncEngine),i})).apply(this,arguments)}function uh(l){const n={};return void 0!==l.timeoutSeconds&&(n.timeoutSeconds=l.timeoutSeconds),n}const Vf=new Map;function Bf(l,n,i){if(!i)throw new Ve(Ee.INVALID_ARGUMENT,`Function ${l}() cannot be called with an empty ${n}.`)}function Fg(l){if(!on.isDocumentKey(l))throw new Ve(Ee.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${l} has ${l.length}.`)}function du(l){if(on.isDocumentKey(l))throw new Ve(Ee.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${l} has ${l.length}.`)}function Uf(l){if(void 0===l)return"undefined";if(null===l)return"null";if("string"==typeof l)return l.length>20&&(l=`${l.substring(0,20)}...`),JSON.stringify(l);if("number"==typeof l||"boolean"==typeof l)return""+l;if("object"==typeof l){if(l instanceof Array)return"an array";{const n=(s=l).constructor?s.constructor.name:null;return n?`a custom ${n} object`:"an object"}}var s;return"function"==typeof l?"a function":G()}function Pi(l,n){if("_delegate"in l&&(l=l._delegate),!(l instanceof n)){if(n.name===l.constructor.name)throw new Ve(Ee.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const i=Uf(l);throw new Ve(Ee.INVALID_ARGUMENT,`Expected type '${n.name}', but it was: ${i}`)}}return l}class Pv{constructor(n){var i,s;if(void 0===n.host){if(void 0!==n.ssl)throw new Ve(Ee.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=n.host,this.ssl=null===(i=n.ssl)||void 0===i||i;if(this.credentials=n.credentials,this.ignoreUndefinedProperties=!!n.ignoreUndefinedProperties,this.localCache=n.localCache,void 0===n.cacheSizeBytes)this.cacheSizeBytes=41943040;else{if(-1!==n.cacheSizeBytes&&n.cacheSizeBytes<1048576)throw new Ve(Ee.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=n.cacheSizeBytes}(function Rv(l,n,i,s){if(!0===n&&!0===s)throw new Ve(Ee.INVALID_ARGUMENT,`${l} and ${i} cannot be used together.`)})("experimentalForceLongPolling",n.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",n.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!n.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=!(this.experimentalForceLongPolling||void 0!==n.experimentalAutoDetectLongPolling&&!n.experimentalAutoDetectLongPolling),this.experimentalLongPollingOptions=uh(null!==(s=n.experimentalLongPollingOptions)&&void 0!==s?s:{}),function(p){if(void 0!==p.timeoutSeconds){if(isNaN(p.timeoutSeconds))throw new Ve(Ee.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (must not be NaN)`);if(p.timeoutSeconds<5)throw new Ve(Ee.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (minimum allowed value is 5)`);if(p.timeoutSeconds>30)throw new Ve(Ee.INVALID_ARGUMENT,`invalid long polling timeout: ${p.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!n.useFetchStreams}isEqual(n){return this.host===n.host&&this.ssl===n.ssl&&this.credentials===n.credentials&&this.cacheSizeBytes===n.cacheSizeBytes&&this.experimentalForceLongPolling===n.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===n.experimentalAutoDetectLongPolling&&this.experimentalLongPollingOptions.timeoutSeconds===n.experimentalLongPollingOptions.timeoutSeconds&&this.ignoreUndefinedProperties===n.ignoreUndefinedProperties&&this.useFetchStreams===n.useFetchStreams}}class ch{constructor(n,i,s,u){this._authCredentials=n,this._appCheckCredentials=i,this._databaseId=s,this._app=u,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new Pv({}),this._settingsFrozen=!1}get app(){if(!this._app)throw new Ve(Ee.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return void 0!==this._terminateTask}_setSettings(n){if(this._settingsFrozen)throw new Ve(Ee.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new Pv(n),void 0!==n.credentials&&(this._authCredentials=function(s){if(!s)return new xn;switch(s.type){case"firstParty":return new kn(s.sessionIndex||"0",s.iamToken||null,s.authTokenFactory||null);case"provider":return s.client;default:throw new Ve(Ee.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}}(n.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask||(this._terminateTask=this._terminate()),this._terminateTask}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(i){const s=Vf.get(i);s&&(st("ComponentProvider","Removing Datastore"),Vf.delete(i),s.terminate())}(this),Promise.resolve()}}class To{constructor(n,i,s){this.converter=i,this._query=s,this.type="query",this.firestore=n}withConverter(n){return new To(this.firestore,n,this._query)}}class Po{constructor(n,i,s){this.converter=i,this._key=s,this.type="document",this.firestore=n}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new il(this.firestore,this.converter,this._key.path.popLast())}withConverter(n){return new Po(this.firestore,n,this._key)}}class il extends To{constructor(n,i,s){super(n,i,se(s)),this._path=s,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const n=this._path.popLast();return n.isEmpty()?null:new Po(this.firestore,null,new on(n))}withConverter(n){return new il(this.firestore,n,this._path)}}function Py(l,n,...i){if(l=(0,Se.Ku)(l),Bf("collection","path",n),l instanceof ch){const s=Vn.fromString(n,...i);return du(s),new il(l,null,s)}{if(!(l instanceof Po||l instanceof il))throw new Ve(Ee.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(Vn.fromString(n,...i));return du(s),new il(l.firestore,null,s)}}function xv(l,n,...i){if(l=(0,Se.Ku)(l),1===arguments.length&&(n=dr.newId()),Bf("doc","path",n),l instanceof ch){const s=Vn.fromString(n,...i);return Fg(s),new Po(l,null,new on(s))}{if(!(l instanceof Po||l instanceof il))throw new Ve(Ee.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=l._path.child(Vn.fromString(n,...i));return Fg(s),new Po(l.firestore,l instanceof il?l.converter:null,new on(s))}}class xy{constructor(){this.iu=Promise.resolve(),this.su=[],this.ou=!1,this._u=[],this.au=null,this.uu=!1,this.cu=!1,this.lu=[],this.Yo=new tu(this,"async_queue_retry"),this.hu=()=>{const i=Dl();i&&st("AsyncQueue","Visibility state changed to "+i.visibilityState),this.Yo.Wo()};const n=Dl();n&&"function"==typeof n.addEventListener&&n.addEventListener("visibilitychange",this.hu)}get isShuttingDown(){return this.ou}enqueueAndForget(n){this.enqueue(n)}enqueueAndForgetEvenWhileRestricted(n){this.Pu(),this.Iu(n)}enterRestrictedMode(n){if(!this.ou){this.ou=!0,this.cu=n||!1;const i=Dl();i&&"function"==typeof i.removeEventListener&&i.removeEventListener("visibilitychange",this.hu)}}enqueue(n){if(this.Pu(),this.ou)return new Promise(()=>{});const i=new ut;return this.Iu(()=>this.ou&&this.cu?Promise.resolve():(n().then(i.resolve,i.reject),i.promise)).then(()=>i.promise)}enqueueRetryable(n){this.enqueueAndForget(()=>(this.su.push(n),this.Tu()))}Tu(){var n=this;return(0,he.A)(function*(){if(0!==n.su.length){try{yield n.su[0](),n.su.shift(),n.Yo.reset()}catch(i){if(!Ge(i))throw i;st("AsyncQueue","Operation failed with retryable error: "+i)}n.su.length>0&&n.Yo.$o(()=>n.Tu())}})()}Iu(n){const i=this.iu.then(()=>(this.uu=!0,n().catch(s=>{throw this.au=s,this.uu=!1,cn("INTERNAL UNHANDLED ERROR: ",function(_){let R=_.message||"";return _.stack&&(R=_.stack.includes(_.message)?_.stack:_.message+"\n"+_.stack),R}(s)),s}).then(s=>(this.uu=!1,s))));return this.iu=i,i}enqueueAfterDelay(n,i,s){this.Pu(),this.lu.indexOf(n)>-1&&(i=0);const u=gg.createAndSchedule(this,n,i,s,p=>this.Eu(p));return this._u.push(u),u}Pu(){this.au&&G()}verifyOperationInProgress(){}du(){var n=this;return(0,he.A)(function*(){let i;do{i=n.iu,yield i}while(i!==n.iu)})()}Au(n){for(const i of this._u)if(i.timerId===n)return!0;return!1}Ru(n){return this.du().then(()=>{this._u.sort((i,s)=>i.targetTimeMs-s.targetTimeMs);for(const i of this._u)if(i.skipDelay(),"all"!==n&&i.timerId===n)break;return this.du()})}Vu(n){this.lu.push(n)}Eu(n){const i=this._u.indexOf(n);this._u.splice(i,1)}}class qi extends ch{constructor(n,i,s,u){super(n,i,s,u),this.type="firestore",this._queue=new xy,this._persistenceKey=(null==u?void 0:u.name)||"[DEFAULT]"}_terminate(){return this._firestoreClient||Bg(this),this._firestoreClient.terminate()}}function dh(l,n){const i="object"==typeof l?l:(0,ae.Sx)(),s="string"==typeof l?l:n||"(default)",u=(0,ae.j6)(i,"firestore").getImmediate({identifier:s});if(!u._initialized){const p=(0,Se.yU)("firestore");p&&function Rl(l,n,i,s={}){var u;const p=(l=Pi(l,ch))._getSettings(),_=`${n}:${i}`;if("firestore.googleapis.com"!==p.host&&p.host!==_&&vt("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),l._setSettings(Object.assign(Object.assign({},p),{host:_,ssl:!1})),s.mockUserToken){let R,k;if("string"==typeof s.mockUserToken)R=s.mockUserToken,k=Oe.MOCK_USER;else{R=(0,Se.Fy)(s.mockUserToken,null===(u=l._app)||void 0===u?void 0:u.options.projectId);const q=s.mockUserToken.sub||s.mockUserToken.user_id;if(!q)throw new Ve(Ee.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");k=new Oe(q)}l._authCredentials=new un(new fn(R,k))}}(u,...p)}return u}function _o(l){return l._firestoreClient||Bg(l),l._firestoreClient.verifyNotTerminated(),l._firestoreClient}function Bg(l){var n,i,s;const u=l._freezeSettings(),p=(k=(null===(n=l._app)||void 0===n?void 0:n.options.appId)||"",new Kt(l._databaseId,k,l._persistenceKey,(Ae=u).host,Ae.ssl,Ae.experimentalForceLongPolling,Ae.experimentalAutoDetectLongPolling,uh(Ae.experimentalLongPollingOptions),Ae.useFetchStreams));var k,Ae;l._firestoreClient=new wy(l._authCredentials,l._appCheckCredentials,l._queue,p),null!==(i=u.localCache)&&void 0!==i&&i._offlineComponentProvider&&null!==(s=u.localCache)&&void 0!==s&&s._onlineComponentProvider&&(l._firestoreClient._uninitializedComponentsProvider={_offlineKind:u.localCache.kind,_offline:u.localCache._offlineComponentProvider,_online:u.localCache._onlineComponentProvider})}class oc{constructor(n){this._byteString=n}static fromBase64String(n){try{return new oc(ui.fromBase64String(n))}catch(i){throw new Ve(Ee.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+i)}}static fromUint8Array(n){return new oc(ui.fromUint8Array(n))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(n){return this._byteString.isEqual(n._byteString)}}class fu{constructor(...n){for(let i=0;i90)throw new Ve(Ee.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+n);if(!isFinite(i)||i<-180||i>180)throw new Ve(Ee.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+i);this._lat=n,this._long=i}get latitude(){return this._lat}get longitude(){return this._long}isEqual(n){return this._lat===n._lat&&this._long===n._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(n){return nt(this._lat,n._lat)||nt(this._long,n._long)}}const Fv=/^__.*__$/;class $f{constructor(n,i,s){this.data=n,this.fieldMask=i,this.fieldTransforms=s}toMutation(n,i){return null!==this.fieldMask?new Co(n,this.data,this.fieldMask,i,this.fieldTransforms):new ea(n,this.data,i,this.fieldTransforms)}}class $g{constructor(n,i,s){this.data=n,this.fieldMask=i,this.fieldTransforms=s}toMutation(n,i){return new Co(n,this.data,this.fieldMask,i,this.fieldTransforms)}}function jf(l){switch(l){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw G()}}class zf{constructor(n,i,s,u,p,_){this.settings=n,this.databaseId=i,this.serializer=s,this.ignoreUndefinedProperties=u,void 0===p&&this.mu(),this.fieldTransforms=p||[],this.fieldMask=_||[]}get path(){return this.settings.path}get fu(){return this.settings.fu}gu(n){return new zf(Object.assign(Object.assign({},this.settings),n),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}pu(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.wu(n),u}Su(n){var i;const s=null===(i=this.path)||void 0===i?void 0:i.child(n),u=this.gu({path:s,yu:!1});return u.mu(),u}bu(n){return this.gu({path:void 0,yu:!0})}Du(n){return Wf(n,this.settings.methodName,this.settings.Cu||!1,this.path,this.settings.vu)}contains(n){return void 0!==this.fieldMask.find(i=>n.isPrefixOf(i))||void 0!==this.fieldTransforms.find(i=>n.isPrefixOf(i.field))}mu(){if(this.path)for(let n=0;nk.covers(He.field))}else k=null,q=_.fieldTransforms;return new $f(new Kn(R),k,q)}class ac extends Jc{_toFieldTransform(n){if(2!==n.fu)throw n.Du(1===n.fu?`${this._methodName}() can only appear at the top level of your update data`:`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return n.fieldMask.push(n.path),null}isEqual(n){return n instanceof ac}}function ka(l,n){if(Bv(l=(0,Se.Ku)(l)))return Kg("Unsupported field value:",n,l),Vv(l,n);if(l instanceof Jc)return function(s,u){if(!jf(u.fu))throw u.Du(`${s._methodName}() can only be used with update() and set()`);if(!u.path)throw u.Du(`${s._methodName}() is not currently supported inside arrays`);const p=s._toFieldTransform(u);p&&u.fieldTransforms.push(p)}(l,n),null;if(void 0===l&&n.ignoreUndefinedProperties)return null;if(n.path&&n.fieldMask.push(n.path),l instanceof Array){if(n.settings.yu&&4!==n.fu)throw n.Du("Nested arrays are not supported");return function(s,u){const p=[];let _=0;for(const R of s){let k=ka(R,u.bu(_));null==k&&(k={nullValue:"NULL_VALUE"}),p.push(k),_++}return{arrayValue:{values:p}}}(l,n)}return function(s,u){if(null===(s=(0,Se.Ku)(s)))return{nullValue:"NULL_VALUE"};if("number"==typeof s)return hl(u.serializer,s);if("boolean"==typeof s)return{booleanValue:s};if("string"==typeof s)return{stringValue:s};if(s instanceof Date){const p=yn.fromDate(s);return{timestampValue:rs(u.serializer,p)}}if(s instanceof yn){const p=new yn(s.seconds,1e3*Math.floor(s.nanoseconds/1e3));return{timestampValue:rs(u.serializer,p)}}if(s instanceof Ug)return{geoPointValue:{latitude:s.latitude,longitude:s.longitude}};if(s instanceof oc)return{bytesValue:na(u.serializer,s._byteString)};if(s instanceof Po){const p=u.databaseId,_=s.firestore._databaseId;if(!_.isEqual(p))throw u.Du(`Document reference is for database ${_.projectId}/${_.database} but should be for database ${p.projectId}/${p.database}`);return{referenceValue:ra(s.firestore._databaseId||u.databaseId,s._key.path)}}throw u.Du(`Unsupported field value: ${Uf(s)}`)}(l,n)}function Vv(l,n){const i={};return Yr(l)?n.path&&n.path.length>0&&n.fieldMask.push(n.path):di(l,(s,u)=>{const p=ka(u,n.pu(s));null!=p&&(i[s]=p)}),{mapValue:{fields:i}}}function Bv(l){return!("object"!=typeof l||null===l||l instanceof Array||l instanceof Date||l instanceof yn||l instanceof Ug||l instanceof oc||l instanceof Po||l instanceof Jc)}function Kg(l,n,i){if(!Bv(i)||"object"!=typeof(u=i)||null===u||Object.getPrototypeOf(u)!==Object.prototype&&null!==Object.getPrototypeOf(u)){const s=Uf(i);throw n.Du("an object"===s?l+" a custom object":l+" "+s)}var u}function Zc(l,n,i){if((n=(0,Se.Ku)(n))instanceof fu)return n._internalPath;if("string"==typeof n)return Gf(l,n);throw Wf("Field path arguments must be of type string or ",l,!1,void 0,i)}const Uy=new RegExp("[~\\*/\\[\\]]");function Gf(l,n,i){if(n.search(Uy)>=0)throw Wf(`Invalid field path (${n}). Paths must not contain '~', '*', '/', '[', or ']'`,l,!1,void 0,i);try{return new fu(...n.split("."))._internalPath}catch{throw Wf(`Invalid field path (${n}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,l,!1,void 0,i)}}function Wf(l,n,i,s,u){const p=s&&!s.isEmpty(),_=void 0!==u;let R=`Function ${n}() called with invalid data`;i&&(R+=" (via `toFirestore()`)"),R+=". ";let k="";return(p||_)&&(k+=" (found",p&&(k+=` in field ${s}`),_&&(k+=` in document ${u}`),k+=")"),new Ve(Ee.INVALID_ARGUMENT,R+l+k)}function Uv(l,n){return l.some(i=>i.isEqual(n))}class ph{constructor(n,i,s,u,p){this._firestore=n,this._userDataWriter=i,this._key=s,this._document=u,this._converter=p}get id(){return this._key.path.lastSegment()}get ref(){return new Po(this._firestore,this._converter,this._key)}exists(){return null!==this._document}data(){if(this._document){if(this._converter){const n=new $y(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(n)}return this._userDataWriter.convertValue(this._document.data.value)}}get(n){if(this._document){const i=this._document.data.field(ed("DocumentSnapshot.get",n));if(null!==i)return this._userDataWriter.convertValue(i)}}}class $y extends ph{data(){return super.data()}}function ed(l,n){return"string"==typeof n?Gf(l,n):n instanceof fu?n._internalPath:n._delegate._internalPath}class Qg{convertValue(n,i="none"){switch(H(n)){case 0:return null;case 1:return n.booleanValue;case 2:return fe(n.integerValue||n.doubleValue);case 3:return this.convertTimestamp(n.timestampValue);case 4:return this.convertServerTimestamp(n,i);case 5:return n.stringValue;case 6:return this.convertBytes(K(n.bytesValue));case 7:return this.convertReference(n.referenceValue);case 8:return this.convertGeoPoint(n.geoPointValue);case 9:return this.convertArray(n.arrayValue,i);case 10:return this.convertObject(n.mapValue,i);default:throw G()}}convertObject(n,i){return this.convertObjectMap(n.fields,i)}convertObjectMap(n,i="none"){const s={};return di(n,(u,p)=>{s[u]=this.convertValue(p,i)}),s}convertGeoPoint(n){return new Ug(fe(n.latitude),fe(n.longitude))}convertArray(n,i){return(n.values||[]).map(s=>this.convertValue(s,i))}convertServerTimestamp(n,i){switch(i){case"previous":const s=Be(n);return null==s?null:this.convertValue(s,i);case"estimate":return this.convertTimestamp(ct(n));default:return null}}convertTimestamp(n){const i=ge(n);return new yn(i.seconds,i.nanos)}convertDocumentKey(n,i){const s=Vn.fromString(n);X(E(s));const u=new Dn(s.get(1),s.get(3)),p=new on(s.popFirst(5));return u.isEqual(i)||cn(`Document ${p} contains a document reference within a different database (${u.projectId}/${u.database}) which is not supported. It will be treated as a reference in the current database (${i.projectId}/${i.database}) instead.`),p}}class Pl{constructor(n,i){this.hasPendingWrites=n,this.fromCache=i}isEqual(n){return this.hasPendingWrites===n.hasPendingWrites&&this.fromCache===n.fromCache}}class uc extends ph{constructor(n,i,s,u,p,_){super(n,i,s,u,_),this._firestore=n,this._firestoreImpl=n,this.metadata=p}exists(){return super.exists()}data(n={}){if(this._document){if(this._converter){const i=new rd(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(i,n)}return this._userDataWriter.convertValue(this._document.data.value,n.serverTimestamps)}}get(n,i={}){if(this._document){const s=this._document.data.field(ed("DocumentSnapshot.get",n));if(null!==s)return this._userDataWriter.convertValue(s,i.serverTimestamps)}}}class rd extends uc{data(n={}){return super.data(n)}}class xl{constructor(n,i,s,u){this._firestore=n,this._userDataWriter=i,this._snapshot=u,this.metadata=new Pl(u.hasPendingWrites,u.fromCache),this.query=s}get docs(){const n=[];return this.forEach(i=>n.push(i)),n}get size(){return this._snapshot.docs.size}get empty(){return 0===this.size}forEach(n,i){this._snapshot.docs.forEach(s=>{n.call(i,new rd(this._firestore,this._userDataWriter,s.key,s,new Pl(this._snapshot.mutatedKeys.has(s.key),this._snapshot.fromCache),this.query.converter))})}docChanges(n={}){const i=!!n.includeMetadataChanges;if(i&&this._snapshot.excludesMetadataChanges)throw new Ve(Ee.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===i||(this._cachedChanges=function(u,p){if(u._snapshot.oldDocs.isEmpty()){let _=0;return u._snapshot.docChanges.map(R=>({type:"added",doc:new rd(u._firestore,u._userDataWriter,R.doc.key,R.doc,new Pl(u._snapshot.mutatedKeys.has(R.doc.key),u._snapshot.fromCache),u.query.converter),oldIndex:-1,newIndex:_++}))}{let _=u._snapshot.oldDocs;return u._snapshot.docChanges.filter(R=>p||3!==R.type).map(R=>{const k=new rd(u._firestore,u._userDataWriter,R.doc.key,R.doc,new Pl(u._snapshot.mutatedKeys.has(R.doc.key),u._snapshot.fromCache),u.query.converter);let q=-1,Ae=-1;return 0!==R.type&&(q=_.indexOf(R.doc.key),_=_.delete(R.doc.key)),1!==R.type&&(_=_.add(R.doc),Ae=_.indexOf(R.doc.key)),{type:qy(R.type),doc:k,oldIndex:q,newIndex:Ae}})}}(this,i),this._cachedChangesIncludeMetadataChanges=i),this._cachedChanges}}function qy(l){switch(l){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return G()}}function Hv(l){l=Pi(l,Po);const n=Pi(l.firestore,qi);return function lh(l,n,i={}){const s=new ut;return l.asyncQueue.enqueueAndForget((0,he.A)(function*(){return function(p,_,R,k,q){const Ae=new Xc({next:yt=>{_.enqueueAndForget(()=>Zu(p,He));const Yt=yt.docs.has(R);!Yt&&yt.fromCache?q.reject(new Ve(Ee.UNAVAILABLE,"Failed to get document because the client is offline.")):Yt&&yt.fromCache&&k&&"server"===k.source?q.reject(new Ve(Ee.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):q.resolve(yt)},error:yt=>q.reject(yt)}),He=new v(se(R.path),Ae,{includeMetadataChanges:!0,ra:!0});return Ks(p,He)}(yield cu(l),l.asyncQueue,n,i,s)})),s.promise}(_o(n),l._key).then(i=>function Qf(l,n,i){const s=i.docs.get(n._key),u=new gu(l);return new uc(l,u,n._key,s,new Pl(i.hasPendingWrites,i.fromCache),n.converter)}(n,l,i))}class gu extends Qg{constructor(n){super(),this.firestore=n}convertBytes(n){return new oc(n)}convertReference(n){const i=this.convertDocumentKey(n,this.firestore._databaseId);return new Po(this.firestore,null,i)}}function Gv(l){l=Pi(l,To);const n=Pi(l.firestore,qi),i=_o(n),s=new gu(n);return function jy(l){if("L"===l.limitType&&0===l.explicitOrderBy.length)throw new Ve(Ee.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}(l._query),function Ng(l,n,i={}){const s=new ut;return l.asyncQueue.enqueueAndForget((0,he.A)(function*(){return function(p,_,R,k,q){const Ae=new Xc({next:yt=>{_.enqueueAndForget(()=>Zu(p,He)),yt.fromCache&&"server"===k.source?q.reject(new Ve(Ee.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):q.resolve(yt)},error:yt=>q.reject(yt)}),He=new v(R,Ae,{includeMetadataChanges:!0,ra:!0});return Ks(p,He)}(yield cu(l),l.asyncQueue,n,i,s)})),s.promise}(i,l._query).then(u=>new xl(n,s,l,u))}function em(l,n,i){l=Pi(l,Po);const s=Pi(l.firestore,qi),u=function mh(l,n,i){let s;return s=l?i&&(i.merge||i.mergeFields)?l.toFirestore(n,i):l.toFirestore(n):n,s}(l.converter,n,i);return od(s,[fh(pu(s),"setDoc",l._key,u,null!==l.converter,i).toMutation(l._key,Yi.none())])}function Qy(l,n,i,...s){l=Pi(l,Po);const u=Pi(l.firestore,qi),p=pu(u);let _;return _="string"==typeof(n=(0,Se.Ku)(n))||n instanceof fu?function Lv(l,n,i,s,u,p){const _=l.Fu(1,n,i),R=[Zc(n,s,i)],k=[u];if(p.length%2!=0)throw new Ve(Ee.INVALID_ARGUMENT,`Function ${n}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let yt=0;yt=0;--yt)if(!Uv(q,R[yt])){const Yt=R[yt];let Rn=k[yt];Rn=(0,Se.Ku)(Rn);const Wn=_.Su(Yt);if(Rn instanceof ac)q.push(Yt);else{const Ln=ka(Rn,Wn);null!=Ln&&(q.push(Yt),Ae.set(Yt,Ln))}}const He=new yi(q);return new $g(Ae,He,_.fieldTransforms)}(p,"updateDoc",l._key,n,i,s):function Hf(l,n,i,s){const u=l.Fu(1,n,i);Kg("Data must be an object, but it was:",u,s);const p=[],_=Kn.empty();di(s,(k,q)=>{const Ae=Gf(n,k,i);q=(0,Se.Ku)(q);const He=u.Su(Ae);if(q instanceof ac)p.push(Ae);else{const yt=ka(q,He);null!=yt&&(p.push(Ae),_.set(Ae,yt))}});const R=new yi(p);return new $g(_,R,u.fieldTransforms)}(p,"updateDoc",l._key,n),od(u,[_.toMutation(l._key,Yi.exists(!0))])}function Yy(l){return od(Pi(l.firestore,qi),[new j(l._key,Yi.none())])}function od(l,n){return function(s,u){const p=new ut;return s.asyncQueue.enqueueAndForget((0,he.A)(function*(){return function Yd(l,n,i){return Jd.apply(this,arguments)}(yield function Pg(l){return qc(l).then(n=>n.syncEngine)}(s),u,p)})),p.promise}(_o(l),n)}!function(n,i=!0){Ct=ae.MF,(0,ae.om)(new Xe.uA("firestore",(s,{instanceIdentifier:u,options:p})=>{const _=s.getProvider("app").getImmediate(),R=new qi(new Je(s.getProvider("auth-internal")),new or(s.getProvider("app-check-internal")),function(q,Ae){if(!Object.prototype.hasOwnProperty.apply(q.options,["projectId"]))throw new Ve(Ee.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Dn(q.options.projectId,Ae)}(_,u),_);return p=Object.assign({useFetchStreams:i},p),R._setSettings(p),R},"PUBLIC").setMultipleInstances(!0)),(0,ae.KO)(Le,"4.6.3",n),(0,ae.KO)(Le,"4.6.3","esm2017")}();class Eh{constructor(n){return n}}const tp="firestore",sm=new c.nKC("angularfire2.firestore-instances");function h0(l){return(n,i)=>{const s=n.runOutsideAngular(()=>l(i));return new Eh(s)}}const f0={provide:class d0{constructor(){return(0,h.CA)(tp)}},deps:[[new c.Xx1,sm]]},p0={provide:Eh,useFactory:function Zv(l,n){const i=(0,h.lR)(tp,l,n);return i&&new Eh(i)},deps:[[new c.Xx1,sm],Z.XU]};function e_(l,...n){return(0,$.KO)("angularfire",h.xv.full,"fst"),(0,c.EmA)([p0,f0,{provide:sm,useFactory:h0(l),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,ke.DF],[new c.Xx1,h.Jv],...n]}])}const _0=(0,h.S3)(Py,!0),y0=(0,h.S3)(Yy,!0),lm=(0,h.S3)(xv,!0),cm=(0,h.S3)(Hv,!0),o_=(0,h.S3)(Gv,!0),dm=(0,h.S3)(dh,!0),P0=(0,h.S3)(em,!0),x0=(0,h.S3)(Qy,!0)},2107:(Pn,Et,C)=>{"use strict";C.d(Et,{wc:()=>Qr,qk:()=>Jr,c7:()=>Js,Xm:()=>Wo,KR:()=>Zo,bp:()=>us});var h=C(5407),c=C(4438),Z=C(7440),ke=C(8737),$=C(2214),he=C(467),ae=C(7852),Xe=C(1076),tt=C(1362);const Se="firebasestorage.googleapis.com",be="storageBucket";class at extends Xe.g{constructor(ee,qe,lt=0){super(xt(ee),`Firebase Storage: ${qe} (${xt(ee)})`),this.status_=lt,this.customData={serverResponse:null},this._baseMessage=this.message,Object.setPrototypeOf(this,at.prototype)}get status(){return this.status_}set status(ee){this.status_=ee}_codeEquals(ee){return xt(ee)===this.code}get serverResponse(){return this.customData.serverResponse}set serverResponse(ee){this.customData.serverResponse=ee,this.message=this.customData.serverResponse?`${this._baseMessage}\n${this.customData.serverResponse}`:this._baseMessage}}var mt=function(ne){return ne.UNKNOWN="unknown",ne.OBJECT_NOT_FOUND="object-not-found",ne.BUCKET_NOT_FOUND="bucket-not-found",ne.PROJECT_NOT_FOUND="project-not-found",ne.QUOTA_EXCEEDED="quota-exceeded",ne.UNAUTHENTICATED="unauthenticated",ne.UNAUTHORIZED="unauthorized",ne.UNAUTHORIZED_APP="unauthorized-app",ne.RETRY_LIMIT_EXCEEDED="retry-limit-exceeded",ne.INVALID_CHECKSUM="invalid-checksum",ne.CANCELED="canceled",ne.INVALID_EVENT_NAME="invalid-event-name",ne.INVALID_URL="invalid-url",ne.INVALID_DEFAULT_BUCKET="invalid-default-bucket",ne.NO_DEFAULT_BUCKET="no-default-bucket",ne.CANNOT_SLICE_BLOB="cannot-slice-blob",ne.SERVER_FILE_WRONG_SIZE="server-file-wrong-size",ne.NO_DOWNLOAD_URL="no-download-url",ne.INVALID_ARGUMENT="invalid-argument",ne.INVALID_ARGUMENT_COUNT="invalid-argument-count",ne.APP_DELETED="app-deleted",ne.INVALID_ROOT_OPERATION="invalid-root-operation",ne.INVALID_FORMAT="invalid-format",ne.INTERNAL_ERROR="internal-error",ne.UNSUPPORTED_ENVIRONMENT="unsupported-environment",ne}(mt||{});function xt(ne){return"storage/"+ne}function Dt(){return new at(mt.UNKNOWN,"An unknown error occurred, please check the error payload for server response.")}function _e(){return new at(mt.RETRY_LIMIT_EXCEEDED,"Max retry time for operation exceeded, please try again.")}function $e(){return new at(mt.CANCELED,"User canceled the upload/download.")}function kt(){return new at(mt.CANNOT_SLICE_BLOB,"Cannot slice blob for upload. Please retry the upload.")}function cn(ne){return new at(mt.INVALID_ARGUMENT,ne)}function vt(){return new at(mt.APP_DELETED,"The Firebase app was deleted.")}function G(ne,ee){return new at(mt.INVALID_FORMAT,"String does not match format '"+ne+"': "+ee)}function X(ne){throw new at(mt.INTERNAL_ERROR,"Internal error: "+ne)}class ce{constructor(ee,qe){this.bucket=ee,this.path_=qe}get path(){return this.path_}get isRoot(){return 0===this.path.length}fullServerUrl(){const ee=encodeURIComponent;return"/b/"+ee(this.bucket)+"/o/"+ee(this.path)}bucketOnlyServerUrl(){return"/b/"+encodeURIComponent(this.bucket)+"/o"}static makeFromBucketSpec(ee,qe){let lt;try{lt=ce.makeFromUrl(ee,qe)}catch{return new ce(ee,"")}if(""===lt.path)return lt;throw function Oe(ne){return new at(mt.INVALID_DEFAULT_BUCKET,"Invalid default bucket '"+ne+"'.")}(ee)}static makeFromUrl(ee,qe){let lt=null;const Vt="([A-Za-z0-9.\\-_]+)",x=new RegExp("^gs://"+Vt+"(/(.*))?$","i");function z(Qi){Qi.path_=decodeURIComponent(Qi.path)}const an=qe.replace(/[.]/g,"\\."),Ki=[{regex:x,indices:{bucket:1,path:3},postModify:function gn(Qi){"/"===Qi.path.charAt(Qi.path.length-1)&&(Qi.path_=Qi.path_.slice(0,-1))}},{regex:new RegExp(`^https?://${an}/v[A-Za-z0-9_]+/b/${Vt}/o(/([^?#]*).*)?$`,"i"),indices:{bucket:1,path:3},postModify:z},{regex:new RegExp(`^https?://${qe===Se?"(?:storage.googleapis.com|storage.cloud.google.com)":qe}/${Vt}/([^?#]*)`,"i"),indices:{bucket:1,path:2},postModify:z}];for(let Qi=0;Qiqe)throw cn(`Invalid value for '${ne}'. Expected ${qe} or less.`)}function On(ne,ee,qe){let lt=ee;return null==qe&&(lt=`https://${ee}`),`${qe}://${lt}/v0${ne}`}function or(ne){const ee=encodeURIComponent;let qe="?";for(const lt in ne)ne.hasOwnProperty(lt)&&(qe=qe+(ee(lt)+"=")+ee(ne[lt])+"&");return qe=qe.slice(0,-1),qe}var gr=function(ne){return ne[ne.NO_ERROR=0]="NO_ERROR",ne[ne.NETWORK_ERROR=1]="NETWORK_ERROR",ne[ne.ABORT=2]="ABORT",ne}(gr||{});function cr(ne,ee){const qe=ne>=500&&ne<600,Vt=-1!==[408,429].indexOf(ne),gn=-1!==ee.indexOf(ne);return qe||Vt||gn}class dr{constructor(ee,qe,lt,Vt,gn,B,x,se,z,Pe,an,zn=!0){this.url_=ee,this.method_=qe,this.headers_=lt,this.body_=Vt,this.successCodes_=gn,this.additionalRetryCodes_=B,this.callback_=x,this.errorCallback_=se,this.timeout_=z,this.progressCallback_=Pe,this.connectionFactory_=an,this.retry=zn,this.pendingConnection_=null,this.backoffId_=null,this.canceled_=!1,this.appDelete_=!1,this.promise_=new Promise((lr,pi)=>{this.resolve_=lr,this.reject_=pi,this.start_()})}start_(){const qe=(lt,Vt)=>{const gn=this.resolve_,B=this.reject_,x=Vt.connection;if(Vt.wasSuccessCode)try{const se=this.callback_(x,x.getResponse());!function ut(ne){return void 0!==ne}(se)?gn():gn(se)}catch(se){B(se)}else if(null!==x){const se=Dt();se.serverResponse=x.getErrorText(),B(this.errorCallback_?this.errorCallback_(x,se):se)}else B(Vt.canceled?this.appDelete_?vt():$e():_e())};this.canceled_?qe(0,new nt(!1,null,!0)):this.backoffId_=function Ee(ne,ee,qe){let lt=1,Vt=null,gn=null,B=!1,x=0;function se(){return 2===x}let z=!1;function Pe(...Ei){z||(z=!0,ee.apply(null,Ei))}function an(Ei){Vt=setTimeout(()=>{Vt=null,ne(lr,se())},Ei)}function zn(){gn&&clearTimeout(gn)}function lr(Ei,...ao){if(z)return void zn();if(Ei)return zn(),void Pe.call(null,Ei,...ao);if(se()||B)return zn(),void Pe.call(null,Ei,...ao);let Ki;lt<64&&(lt*=2),1===x?(x=2,Ki=0):Ki=1e3*(lt+Math.random()),an(Ki)}let pi=!1;function Hi(Ei){pi||(pi=!0,zn(),!z&&(null!==Vt?(Ei||(x=2),clearTimeout(Vt),an(0)):Ei||(x=1)))}return an(0),gn=setTimeout(()=>{B=!0,Hi(!0)},qe),Hi}((lt,Vt)=>{if(Vt)return void lt(!1,new nt(!1,null,!0));const gn=this.connectionFactory_();this.pendingConnection_=gn;const B=x=>{null!==this.progressCallback_&&this.progressCallback_(x.loaded,x.lengthComputable?x.total:-1)};null!==this.progressCallback_&&gn.addUploadProgressListener(B),gn.send(this.url_,this.method_,this.body_,this.headers_).then(()=>{null!==this.progressCallback_&&gn.removeUploadProgressListener(B),this.pendingConnection_=null;const x=gn.getErrorCode()===gr.NO_ERROR,se=gn.getStatus();if(!x||cr(se,this.additionalRetryCodes_)&&this.retry){const Pe=gn.getErrorCode()===gr.ABORT;return void lt(!1,new nt(!1,null,Pe))}const z=-1!==this.successCodes_.indexOf(se);lt(!0,new nt(z,gn))})},qe,this.timeout_)}getPromise(){return this.promise_}cancel(ee){this.canceled_=!0,this.appDelete_=ee||!1,null!==this.backoffId_&&function Ve(ne){ne(!1)}(this.backoffId_),null!==this.pendingConnection_&&this.pendingConnection_.abort()}}class nt{constructor(ee,qe,lt){this.wasSuccessCode=ee,this.connection=qe,this.canceled=!!lt}}function $n(...ne){const ee=function Vn(){return typeof BlobBuilder<"u"?BlobBuilder:typeof WebKitBlobBuilder<"u"?WebKitBlobBuilder:void 0}();if(void 0!==ee){const qe=new ee;for(let lt=0;lt>6,128|63<):55296==(64512<)?qe>18,128|lt>>12&63,128|lt>>6&63,128|63<)):ee.push(239,191,189):56320==(64512<)?ee.push(239,191,189):ee.push(224|lt>>12,128|lt>>6&63,128|63<)}return new Uint8Array(ee)}function sr(ne,ee){switch(ne){case mr.BASE64:{const Vt=-1!==ee.indexOf("-"),gn=-1!==ee.indexOf("_");if(Vt||gn)throw G(ne,"Invalid character '"+(Vt?"-":"_")+"' found: is it base64url encoded?");break}case mr.BASE64URL:{const Vt=-1!==ee.indexOf("+"),gn=-1!==ee.indexOf("/");if(Vt||gn)throw G(ne,"Invalid character '"+(Vt?"+":"/")+"' found: is it base64 encoded?");ee=ee.replace(/-/g,"+").replace(/_/g,"/");break}}let qe;try{qe=function on(ne){if(typeof atob>"u")throw function st(ne){return new at(mt.UNSUPPORTED_ENVIRONMENT,`${ne} is missing. Make sure to install the required polyfills. See https://firebase.google.com/docs/web/environments-js-sdk#polyfills for more information.`)}("base-64");return atob(ne)}(ee)}catch(Vt){throw Vt.message.includes("polyfill")?Vt:G(ne,"Invalid character found")}const lt=new Uint8Array(qe.length);for(let Vt=0;Vt][;base64],");const lt=qe[1]||null;null!=lt&&(this.base64=function Br(ne,ee){return ne.length>=ee.length&&ne.substring(ne.length-ee.length)===ee}(lt,";base64"),this.contentType=this.base64?lt.substring(0,lt.length-7):lt),this.rest=ee.substring(ee.indexOf(",")+1)}}class ar{constructor(ee,qe){let lt=0,Vt="";Je(ee)?(this.data_=ee,lt=ee.size,Vt=ee.type):ee instanceof ArrayBuffer?(qe?this.data_=new Uint8Array(ee):(this.data_=new Uint8Array(ee.byteLength),this.data_.set(new Uint8Array(ee))),lt=this.data_.length):ee instanceof Uint8Array&&(qe?this.data_=ee:(this.data_=new Uint8Array(ee.length),this.data_.set(ee)),lt=ee.length),this.size_=lt,this.type_=Vt}size(){return this.size_}type(){return this.type_}slice(ee,qe){if(Je(this.data_)){const Vt=function In(ne,ee,qe){return ne.webkitSlice?ne.webkitSlice(ee,qe):ne.mozSlice?ne.mozSlice(ee,qe):ne.slice?ne.slice(ee,qe):null}(this.data_,ee,qe);return null===Vt?null:new ar(Vt)}{const lt=new Uint8Array(this.data_.buffer,ee,qe-ee);return new ar(lt,!0)}}static getBlob(...ee){if(Sn()){const qe=ee.map(lt=>lt instanceof ar?lt.data_:lt);return new ar($n.apply(null,qe))}{const qe=ee.map(B=>un(B)?function Vr(ne,ee){switch(ne){case mr.RAW:return new br(rr(ee));case mr.BASE64:case mr.BASE64URL:return new br(sr(ne,ee));case mr.DATA_URL:return new br(function Tr(ne){const ee=new ii(ne);return ee.base64?sr(mr.BASE64,ee.rest):function Mr(ne){let ee;try{ee=decodeURIComponent(ne)}catch{throw G(mr.DATA_URL,"Malformed data URL.")}return rr(ee)}(ee.rest)}(ee),function yr(ne){return new ii(ne).contentType}(ee))}throw Dt()}(mr.RAW,B).data:B.data_);let lt=0;qe.forEach(B=>{lt+=B.byteLength});const Vt=new Uint8Array(lt);let gn=0;return qe.forEach(B=>{for(let x=0;x{Promise.resolve().then(()=>ne(...ee))}}let jn=null;class zr{constructor(){this.sent_=!1,this.xhr_=new XMLHttpRequest,this.initXhr(),this.errorCode_=gr.NO_ERROR,this.sendPromise_=new Promise(ee=>{this.xhr_.addEventListener("abort",()=>{this.errorCode_=gr.ABORT,ee()}),this.xhr_.addEventListener("error",()=>{this.errorCode_=gr.NETWORK_ERROR,ee()}),this.xhr_.addEventListener("load",()=>{ee()})})}send(ee,qe,lt,Vt){if(this.sent_)throw X("cannot .send() more than once");if(this.sent_=!0,this.xhr_.open(qe,ee,!0),void 0!==Vt)for(const gn in Vt)Vt.hasOwnProperty(gn)&&this.xhr_.setRequestHeader(gn,Vt[gn].toString());return void 0!==lt?this.xhr_.send(lt):this.xhr_.send(),this.sendPromise_}getErrorCode(){if(!this.sent_)throw X("cannot .getErrorCode() before sending");return this.errorCode_}getStatus(){if(!this.sent_)throw X("cannot .getStatus() before sending");try{return this.xhr_.status}catch{return-1}}getResponse(){if(!this.sent_)throw X("cannot .getResponse() before sending");return this.xhr_.response}getErrorText(){if(!this.sent_)throw X("cannot .getErrorText() before sending");return this.xhr_.statusText}abort(){this.xhr_.abort()}getResponseHeader(ee){return this.xhr_.getResponseHeader(ee)}addUploadProgressListener(ee){null!=this.xhr_.upload&&this.xhr_.upload.addEventListener("progress",ee)}removeUploadProgressListener(ee){null!=this.xhr_.upload&&this.xhr_.upload.removeEventListener("progress",ee)}}class $r extends zr{initXhr(){this.xhr_.responseType="text"}}function Pr(){return jn?jn():new $r}class hi{constructor(ee,qe,lt=null){this._transferred=0,this._needToFetchStatus=!1,this._needToFetchMetadata=!1,this._observers=[],this._error=void 0,this._uploadUrl=void 0,this._request=void 0,this._chunkMultiplier=1,this._resolve=void 0,this._reject=void 0,this._ref=ee,this._blob=qe,this._metadata=lt,this._mappings=de(),this._resumable=this._shouldDoResumable(this._blob),this._state="running",this._errorHandler=Vt=>{if(this._request=void 0,this._chunkMultiplier=1,Vt._codeEquals(mt.CANCELED))this._needToFetchStatus=!0,this.completeTransitions_();else{const gn=this.isExponentialBackoffExpired();if(cr(Vt.status,[])){if(!gn)return this.sleepTime=Math.max(2*this.sleepTime,1e3),this._needToFetchStatus=!0,void this.completeTransitions_();Vt=_e()}this._error=Vt,this._transition("error")}},this._metadataErrorHandler=Vt=>{this._request=void 0,Vt._codeEquals(mt.CANCELED)?this.completeTransitions_():(this._error=Vt,this._transition("error"))},this.sleepTime=0,this.maxSleepTime=this._ref.storage.maxUploadRetryTime,this._promise=new Promise((Vt,gn)=>{this._resolve=Vt,this._reject=gn,this._start()}),this._promise.then(null,()=>{})}isExponentialBackoffExpired(){return this.sleepTime>this.maxSleepTime}_makeProgressCallback(){const ee=this._transferred;return qe=>this._updateProgress(ee+qe)}_shouldDoResumable(ee){return ee.size()>262144}_start(){"running"===this._state&&void 0===this._request&&(this._resumable?void 0===this._uploadUrl?this._createResumable():this._needToFetchStatus?this._fetchStatus():this._needToFetchMetadata?this._fetchMetadata():this.pendingTimeout=setTimeout(()=>{this.pendingTimeout=void 0,this._continueUpload()},this.sleepTime):this._oneShotUpload())}_resolveToken(ee){Promise.all([this._ref.storage._getAuthToken(),this._ref.storage._getAppCheckToken()]).then(([qe,lt])=>{switch(this._state){case"running":ee(qe,lt);break;case"canceling":this._transition("canceled");break;case"pausing":this._transition("paused")}})}_createResumable(){this._resolveToken((ee,qe)=>{const lt=function re(ne,ee,qe,lt,Vt){const gn=ee.bucketOnlyServerUrl(),B=te(ee,lt,Vt),x={name:B.fullPath},se=On(gn,ne.host,ne._protocol),Pe={"X-Goog-Upload-Protocol":"resumable","X-Goog-Upload-Command":"start","X-Goog-Upload-Header-Content-Length":`${lt.size()}`,"X-Goog-Upload-Header-Content-Type":B.contentType,"Content-Type":"application/json; charset=utf-8"},an=gt(B,qe),pi=new Xn(se,"POST",function lr(Hi){let Ei;O(Hi);try{Ei=Hi.getResponseHeader("X-Goog-Upload-URL")}catch{dn(!1)}return dn(un(Ei)),Ei},ne.maxUploadRetryTime);return pi.urlParams=x,pi.headers=Pe,pi.body=an,pi.errorHandler=fr(ee),pi}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),Vt=this._ref.storage._makeRequest(lt,Pr,ee,qe);this._request=Vt,Vt.getPromise().then(gn=>{this._request=void 0,this._uploadUrl=gn,this._needToFetchStatus=!1,this.completeTransitions_()},this._errorHandler)})}_fetchStatus(){const ee=this._uploadUrl;this._resolveToken((qe,lt)=>{const Vt=function we(ne,ee,qe,lt){const se=new Xn(qe,"POST",function gn(z){const Pe=O(z,["active","final"]);let an=null;try{an=z.getResponseHeader("X-Goog-Upload-Size-Received")}catch{dn(!1)}an||dn(!1);const zn=Number(an);return dn(!isNaN(zn)),new M(zn,lt.size(),"final"===Pe)},ne.maxUploadRetryTime);return se.headers={"X-Goog-Upload-Command":"query"},se.errorHandler=fr(ee),se}(this._ref.storage,this._ref._location,ee,this._blob),gn=this._ref.storage._makeRequest(Vt,Pr,qe,lt);this._request=gn,gn.getPromise().then(B=>{this._request=void 0,this._updateProgress(B.current),this._needToFetchStatus=!1,B.finalized&&(this._needToFetchMetadata=!0),this.completeTransitions_()},this._errorHandler)})}_continueUpload(){const ee=262144*this._chunkMultiplier,qe=new M(this._transferred,this._blob.size()),lt=this._uploadUrl;this._resolveToken((Vt,gn)=>{let B;try{B=function St(ne,ee,qe,lt,Vt,gn,B,x){const se=new M(0,0);if(B?(se.current=B.current,se.total=B.total):(se.current=0,se.total=lt.size()),lt.size()!==se.total)throw function Cn(){return new at(mt.SERVER_FILE_WRONG_SIZE,"Server recorded incorrect upload file size, please retry the upload.")}();const z=se.total-se.current;let Pe=z;Vt>0&&(Pe=Math.min(Pe,Vt));const an=se.current;let lr="";lr=0===Pe?"finalize":z===Pe?"upload, finalize":"upload";const pi={"X-Goog-Upload-Command":lr,"X-Goog-Upload-Offset":`${se.current}`},Hi=lt.slice(an,an+Pe);if(null===Hi)throw kt();const Ki=new Xn(qe,"POST",function Ei(Qi,qo){const cs=O(Qi,["active","final"]),ys=se.current+Pe,Eo=lt.size();let ko;return ko="final"===cs?wn(ee,gn)(Qi,qo):null,new M(ys,Eo,"final"===cs,ko)},ee.maxUploadRetryTime);return Ki.headers=pi,Ki.body=Hi.uploadData(),Ki.progressCallback=x||null,Ki.errorHandler=fr(ne),Ki}(this._ref._location,this._ref.storage,lt,this._blob,ee,this._mappings,qe,this._makeProgressCallback())}catch(se){return this._error=se,void this._transition("error")}const x=this._ref.storage._makeRequest(B,Pr,Vt,gn,!1);this._request=x,x.getPromise().then(se=>{this._increaseMultiplier(),this._request=void 0,this._updateProgress(se.current),se.finalized?(this._metadata=se.metadata,this._transition("success")):this.completeTransitions_()},this._errorHandler)})}_increaseMultiplier(){262144*this._chunkMultiplier*2<33554432&&(this._chunkMultiplier*=2)}_fetchMetadata(){this._resolveToken((ee,qe)=>{const lt=function oi(ne,ee,qe){const Vt=On(ee.fullServerUrl(),ne.host,ne._protocol),B=ne.maxOperationRetryTime,x=new Xn(Vt,"GET",wn(ne,qe),B);return x.errorHandler=Ur(ee),x}(this._ref.storage,this._ref._location,this._mappings),Vt=this._ref.storage._makeRequest(lt,Pr,ee,qe);this._request=Vt,Vt.getPromise().then(gn=>{this._request=void 0,this._metadata=gn,this._transition("success")},this._metadataErrorHandler)})}_oneShotUpload(){this._resolveToken((ee,qe)=>{const lt=function ze(ne,ee,qe,lt,Vt){const gn=ee.bucketOnlyServerUrl(),B={"X-Goog-Upload-Protocol":"multipart"},se=function x(){let Ki="";for(let Qi=0;Qi<2;Qi++)Ki+=Math.random().toString().slice(2);return Ki}();B["Content-Type"]="multipart/related; boundary="+se;const z=te(ee,lt,Vt),Pe=gt(z,qe),lr=ar.getBlob("--"+se+"\r\nContent-Type: application/json; charset=utf-8\r\n\r\n"+Pe+"\r\n--"+se+"\r\nContent-Type: "+z.contentType+"\r\n\r\n",lt,"\r\n--"+se+"--");if(null===lr)throw kt();const pi={name:z.fullPath},Hi=On(gn,ne.host,ne._protocol),ao=ne.maxUploadRetryTime,No=new Xn(Hi,"POST",wn(ne,qe),ao);return No.urlParams=pi,No.headers=B,No.body=lr.uploadData(),No.errorHandler=fr(ee),No}(this._ref.storage,this._ref._location,this._mappings,this._blob,this._metadata),Vt=this._ref.storage._makeRequest(lt,Pr,ee,qe);this._request=Vt,Vt.getPromise().then(gn=>{this._request=void 0,this._metadata=gn,this._updateProgress(this._blob.size()),this._transition("success")},this._errorHandler)})}_updateProgress(ee){const qe=this._transferred;this._transferred=ee,this._transferred!==qe&&this._notifyObservers()}_transition(ee){if(this._state!==ee)switch(ee){case"canceling":case"pausing":this._state=ee,void 0!==this._request?this._request.cancel():this.pendingTimeout&&(clearTimeout(this.pendingTimeout),this.pendingTimeout=void 0,this.completeTransitions_());break;case"running":const qe="paused"===this._state;this._state=ee,qe&&(this._notifyObservers(),this._start());break;case"paused":case"error":case"success":this._state=ee,this._notifyObservers();break;case"canceled":this._error=$e(),this._state=ee,this._notifyObservers()}}completeTransitions_(){switch(this._state){case"pausing":this._transition("paused");break;case"canceling":this._transition("canceled");break;case"running":this._start()}}get snapshot(){const ee=pr(this._state);return{bytesTransferred:this._transferred,totalBytes:this._blob.size(),state:ee,metadata:this._metadata,task:this,ref:this._ref}}on(ee,qe,lt,Vt){const gn=new qn(qe||void 0,lt||void 0,Vt||void 0);return this._addObserver(gn),()=>{this._removeObserver(gn)}}then(ee,qe){return this._promise.then(ee,qe)}catch(ee){return this.then(null,ee)}_addObserver(ee){this._observers.push(ee),this._notifyObserver(ee)}_removeObserver(ee){const qe=this._observers.indexOf(ee);-1!==qe&&this._observers.splice(qe,1)}_notifyObservers(){this._finishPromise(),this._observers.slice().forEach(qe=>{this._notifyObserver(qe)})}_finishPromise(){if(void 0!==this._resolve){let ee=!0;switch(pr(this._state)){case"success":Sr(this._resolve.bind(null,this.snapshot))();break;case"canceled":case"error":Sr(this._reject.bind(null,this._error))();break;default:ee=!1}ee&&(this._resolve=void 0,this._reject=void 0)}}_notifyObserver(ee){switch(pr(this._state)){case"running":case"paused":ee.next&&Sr(ee.next.bind(ee,this.snapshot))();break;case"success":ee.complete&&Sr(ee.complete.bind(ee))();break;default:ee.error&&Sr(ee.error.bind(ee,this._error))()}}resume(){const ee="paused"===this._state||"pausing"===this._state;return ee&&this._transition("running"),ee}pause(){const ee="running"===this._state;return ee&&this._transition("pausing"),ee}cancel(){const ee="running"===this._state||"pausing"===this._state;return ee&&this._transition("canceling"),ee}}class Yr{constructor(ee,qe){this._service=ee,this._location=qe instanceof ce?qe:ce.makeFromUrl(qe,ee.host)}toString(){return"gs://"+this._location.bucket+"/"+this._location.path}_newRef(ee,qe){return new Yr(ee,qe)}get root(){const ee=new ce(this._location.bucket,"");return this._newRef(this._service,ee)}get bucket(){return this._location.bucket}get fullPath(){return this._location.path}get name(){return Zr(this._location.path)}get storage(){return this._service}get parent(){const ee=function li(ne){if(0===ne.length)return null;const ee=ne.lastIndexOf("/");return-1===ee?"":ne.slice(0,ee)}(this._location.path);if(null===ee)return null;const qe=new ce(this._location.bucket,ee);return new Yr(this._service,qe)}_throwIfRoot(ee){if(""===this._location.path)throw function Re(ne){return new at(mt.INVALID_ROOT_OPERATION,"The operation '"+ne+"' cannot be performed on a root reference, create a non-root reference using child, such as .child('file.png').")}(ee)}}function ge(ne){ne._throwIfRoot("getDownloadURL");const ee=function vi(ne,ee,qe){const Vt=On(ee.fullServerUrl(),ne.host,ne._protocol),B=ne.maxOperationRetryTime,x=new Xn(Vt,"GET",function wr(ne,ee){return function qe(lt,Vt){const gn=$t(ne,Vt,ee);return dn(null!==gn),function le(ne,ee,qe,lt){const Vt=Lr(ee);if(null===Vt||!un(Vt.downloadTokens))return null;const gn=Vt.downloadTokens;if(0===gn.length)return null;const B=encodeURIComponent;return gn.split(",").map(z=>{const an=ne.fullPath;return On("/b/"+B(ne.bucket)+"/o/"+B(an),qe,lt)+or({alt:"media",token:z})})[0]}(gn,Vt,ne.host,ne._protocol)}}(ne,qe),B);return x.errorHandler=Ur(ee),x}(ne.storage,ne._location,de());return ne.storage.makeRequestWithTokens(ee,Pr).then(qe=>{if(null===qe)throw function At(){return new at(mt.NO_DOWNLOAD_URL,"The given file does not have any download URLs.")}();return qe})}function ct(ne,ee){if(ne instanceof w){const qe=ne;if(null==qe._bucket)throw function Ct(){return new at(mt.NO_DEFAULT_BUCKET,"No default bucket found. Did you set the '"+be+"' property when initializing the app?")}();const lt=new Yr(qe,qe._bucket);return null!=ee?ct(lt,ee):lt}return void 0!==ee?function K(ne,ee){const qe=function Di(ne,ee){const qe=ee.split("/").filter(lt=>lt.length>0).join("/");return 0===ne.length?qe:ne+"/"+qe}(ne._location.path,ee),lt=new ce(ne._location.bucket,qe);return new Yr(ne.storage,lt)}(ne,ee):ne}function Dn(ne,ee){const qe=null==ee?void 0:ee[be];return null==qe?null:ce.makeFromBucketSpec(qe,ne)}class w{constructor(ee,qe,lt,Vt,gn){this.app=ee,this._authProvider=qe,this._appCheckProvider=lt,this._url=Vt,this._firebaseVersion=gn,this._bucket=null,this._host=Se,this._protocol="https",this._appId=null,this._deleted=!1,this._maxOperationRetryTime=12e4,this._maxUploadRetryTime=6e5,this._requests=new Set,this._bucket=null!=Vt?ce.makeFromBucketSpec(Vt,this._host):Dn(this._host,this.app.options)}get host(){return this._host}set host(ee){this._host=ee,this._bucket=null!=this._url?ce.makeFromBucketSpec(this._url,ee):Dn(ee,this.app.options)}get maxUploadRetryTime(){return this._maxUploadRetryTime}set maxUploadRetryTime(ee){kn("time",0,Number.POSITIVE_INFINITY,ee),this._maxUploadRetryTime=ee}get maxOperationRetryTime(){return this._maxOperationRetryTime}set maxOperationRetryTime(ee){kn("time",0,Number.POSITIVE_INFINITY,ee),this._maxOperationRetryTime=ee}_getAuthToken(){var ee=this;return(0,he.A)(function*(){if(ee._overrideAuthToken)return ee._overrideAuthToken;const qe=ee._authProvider.getImmediate({optional:!0});if(qe){const lt=yield qe.getToken();if(null!==lt)return lt.accessToken}return null})()}_getAppCheckToken(){var ee=this;return(0,he.A)(function*(){const qe=ee._appCheckProvider.getImmediate({optional:!0});return qe?(yield qe.getToken()).token:null})()}_delete(){return this._deleted||(this._deleted=!0,this._requests.forEach(ee=>ee.cancel()),this._requests.clear()),Promise.resolve()}_makeStorageReference(ee){return new Yr(this,ee)}_makeRequest(ee,qe,lt,Vt,gn=!0){if(this._deleted)return new ue(vt());{const B=function Fr(ne,ee,qe,lt,Vt,gn,B=!0){const x=or(ne.urlParams),se=ne.url+x,z=Object.assign({},ne.headers);return function yn(ne,ee){ee&&(ne["X-Firebase-GMPID"]=ee)}(z,ee),function Lt(ne,ee){null!==ee&&ee.length>0&&(ne.Authorization="Firebase "+ee)}(z,qe),function Xt(ne,ee){ne["X-Firebase-Storage-Version"]="webjs/"+(null!=ee?ee:"AppManager")}(z,gn),function En(ne,ee){null!==ee&&(ne["X-Firebase-AppCheck"]=ee)}(z,lt),new dr(se,ne.method,z,ne.body,ne.successCodes,ne.additionalRetryCodes,ne.handler,ne.errorHandler,ne.timeout,ne.progressCallback,Vt,B)}(ee,this._appId,lt,Vt,qe,this._firebaseVersion,gn);return this._requests.add(B),B.getPromise().then(()=>this._requests.delete(B),()=>this._requests.delete(B)),B}}makeRequestWithTokens(ee,qe){var lt=this;return(0,he.A)(function*(){const[Vt,gn]=yield Promise.all([lt._getAuthToken(),lt._getAppCheckToken()]);return lt._makeRequest(ee,qe,Vt,gn).getPromise()})()}}const H="@firebase/storage",P="storage";function ai(ne,ee,qe){return function Zn(ne,ee,qe){return ne._throwIfRoot("uploadBytesResumable"),new hi(ne,new ar(ee),qe)}(ne=(0,Xe.Ku)(ne),ee,qe)}function Ot(ne){return ge(ne=(0,Xe.Ku)(ne))}function en(ne,ee){return function Kt(ne,ee){if(ee&&function je(ne){return/^[A-Za-z]+:\/\//.test(ne)}(ee)){if(ne instanceof w)return function Be(ne,ee){return new Yr(ne,ee)}(ne,ee);throw cn("To use ref(service, url), the first argument must be a Storage instance.")}return ct(ne,ee)}(ne=(0,Xe.Ku)(ne),ee)}function vn(ne=(0,ae.Sx)(),ee){ne=(0,Xe.Ku)(ne);const lt=(0,ae.j6)(ne,P).getImmediate({identifier:ee}),Vt=(0,Xe.yU)("storage");return Vt&&function bn(ne,ee,qe,lt={}){!function Hn(ne,ee,qe,lt={}){ne.host=`${ee}:${qe}`,ne._protocol="http";const{mockUserToken:Vt}=lt;Vt&&(ne._overrideAuthToken="string"==typeof Vt?Vt:(0,Xe.Fy)(Vt,ne.app.options.projectId))}(ne,ee,qe,lt)}(lt,...Vt),lt}function _r(ne,{instanceIdentifier:ee}){const qe=ne.getProvider("app").getImmediate(),lt=ne.getProvider("auth-internal"),Vt=ne.getProvider("app-check-internal");return new w(qe,lt,Vt,ee,ae.MF)}!function Kn(){(0,ae.om)(new tt.uA(P,_r,"PUBLIC").setMultipleInstances(!0)),(0,ae.KO)(H,"0.12.5",""),(0,ae.KO)(H,"0.12.5","esm2017")}();class Qr{constructor(ee){return ee}}const Wr="storage",Fi=new c.nKC("angularfire2.storage-instances");function yo(ne){return(ee,qe)=>{const lt=ee.runOutsideAngular(()=>ne(qe));return new Qr(lt)}}const Jo={provide:class kr{constructor(){return(0,h.CA)(Wr)}},deps:[[new c.Xx1,Fi]]},Kr={provide:Qr,useFactory:function Bi(ne,ee){const qe=(0,h.lR)(Wr,ne,ee);return qe&&new Qr(qe)},deps:[[new c.Xx1,Fi],Z.XU]};function Wo(ne,...ee){return(0,$.KO)("angularfire",h.xv.full,"gcs"),(0,c.EmA)([Kr,Jo,{provide:Fi,useFactory:yo(ne),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,ke.DF],[new c.Xx1,h.Jv],...ee]}])}const Jr=(0,h.S3)(Ot,!0),Js=(0,h.S3)(vn,!0),Zo=(0,h.S3)(en,!0),us=(0,h.S3)(ai,!0)},9032:(Pn,Et,C)=>{"use strict";C.d(Et,{L9:()=>ar,oc:()=>$t,v_:()=>Ge,cw:()=>Ie});var h=C(5407),c=C(4438),Z=C(7440),ke=C(2214),$=C(467),he=C(7852),ae=C(1362),Xe=C(1076),tt=C(1635),Se="@firebase/vertexai-preview",be="0.0.2";const et="vertexAI",it="us-central1",mt=be,xt="gl-js";class Dt{constructor(gt,ft,Qt,sn){var Tn;this.app=gt,this.options=sn;const Xn=null==Qt?void 0:Qt.getImmediate({optional:!0}),dn=null==ft?void 0:ft.getImmediate({optional:!0});this.auth=dn||null,this.appCheck=Xn||null,this.location=(null===(Tn=this.options)||void 0===Tn?void 0:Tn.location)||it}_delete(){return Promise.resolve()}}const Tt=new Xe.FA("vertexAI","VertexAI",{"fetch-error":"Error fetching from {$url}: {$message}","invalid-content":"Content formatting error: {$message}","no-api-key":'The "apiKey" field is empty in the local Firebase config. Firebase VertexAI requires this field tocontain a valid API key.',"no-project-id":'The "projectId" field is empty in the local Firebase config. Firebase VertexAI requires this field tocontain a valid project ID.',"no-model":"Must provide a model name. Example: getGenerativeModel({ model: 'my-model-name' })","parse-failed":"Parsing failed: {$message}","response-error":"Response error: {$message}. Response body stored in error.customData.response"});var It=function(le){return le.GENERATE_CONTENT="generateContent",le.STREAM_GENERATE_CONTENT="streamGenerateContent",le.COUNT_TOKENS="countTokens",le}(It||{});class Te{constructor(gt,ft,Qt,sn,Tn){this.model=gt,this.task=ft,this.apiSettings=Qt,this.stream=sn,this.requestOptions=Tn}toString(){var gt;let sn=`${(null===(gt=this.requestOptions)||void 0===gt?void 0:gt.baseUrl)||"https://firebaseml.googleapis.com"}/v2beta`;return sn+=`/projects/${this.apiSettings.project}`,sn+=`/locations/${this.apiSettings.location}`,sn+=`/${this.model}`,sn+=`:${this.task}`,this.stream&&(sn+="?alt=sse"),sn}get fullModelString(){let gt=`projects/${this.apiSettings.project}`;return gt+=`/locations/${this.apiSettings.location}`,gt+=`/${this.model}`,gt}}function _e(le){return $e.apply(this,arguments)}function $e(){return($e=(0,$.A)(function*(le){const gt=new Headers;if(gt.append("Content-Type","application/json"),gt.append("x-goog-api-client",function Ze(){const le=[];return le.push(`${xt}/${mt}`),le.push(`fire/${mt}`),le.join(" ")}()),gt.append("x-goog-api-key",le.apiSettings.apiKey),le.apiSettings.getAppCheckToken){const ft=yield le.apiSettings.getAppCheckToken();ft&&!ft.error&>.append("X-Firebase-AppCheck",ft.token)}if(le.apiSettings.getAuthToken){const ft=yield le.apiSettings.getAuthToken();ft&>.append("Authorization",`Firebase ${ft.accessToken}`)}return gt})).apply(this,arguments)}function Oe(){return(Oe=(0,$.A)(function*(le,gt,ft,Qt,sn,Tn){const Xn=new Te(le,gt,ft,Qt,Tn);return{url:Xn.toString(),fetchOptions:Object.assign(Object.assign({},Cn(Tn)),{method:"POST",headers:yield _e(Xn),body:sn})}})).apply(this,arguments)}function Ct(le,gt,ft,Qt,sn,Tn){return kt.apply(this,arguments)}function kt(){return kt=(0,$.A)(function*(le,gt,ft,Qt,sn,Tn){const Xn=new Te(le,gt,ft,Qt,Tn);let dn;try{const wn=yield function Le(le,gt,ft,Qt,sn,Tn){return Oe.apply(this,arguments)}(le,gt,ft,Qt,sn,Tn);if(dn=yield fetch(wn.url,wn.fetchOptions),!dn.ok){let hr="";try{const wr=yield dn.json();hr=wr.error.message,wr.error.details&&(hr+=` ${JSON.stringify(wr.error.details)}`)}catch{}throw new Error(`[${dn.status} ${dn.statusText}] ${hr}`)}}catch(wn){const hr=wn,wr=Tt.create("fetch-error",{url:Xn.toString(),message:hr.message});throw wr.stack=hr.stack,wr}return dn}),kt.apply(this,arguments)}function Cn(le){const gt={};if(null!=le&&le.timeout&&(null==le?void 0:le.timeout)>=0){const ft=new AbortController,Qt=ft.signal;setTimeout(()=>ft.abort(),le.timeout),gt.signal=Qt}return gt}const At=["user","model","function","system"];var ce=function(le){return le.FINISH_REASON_UNSPECIFIED="FINISH_REASON_UNSPECIFIED",le.STOP="STOP",le.MAX_TOKENS="MAX_TOKENS",le.SAFETY="SAFETY",le.RECITATION="RECITATION",le.OTHER="OTHER",le}(ce||{});function Ve(le){return le.text=()=>{if(le.candidates&&le.candidates.length>0){if(le.candidates.length>1&&console.warn(`This response had ${le.candidates.length} candidates. Returning text from the first candidate only. Access response.candidates directly to use the other candidates.`),un(le.candidates[0]))throw Tt.create("response-error",{message:`${Je(le)}`,response:le});return function ut(le){var gt,ft,Qt,sn;const Tn=[];if(null!==(ft=null===(gt=le.candidates)||void 0===gt?void 0:gt[0].content)&&void 0!==ft&&ft.parts)for(const Xn of null===(sn=null===(Qt=le.candidates)||void 0===Qt?void 0:Qt[0].content)||void 0===sn?void 0:sn.parts)Xn.text&&Tn.push(Xn.text);return Tn.length>0?Tn.join(""):""}(le)}if(le.promptFeedback)throw Tt.create("response-error",{message:`Text not available. ${Je(le)}`,response:le});return""},le.functionCalls=()=>{if(le.candidates&&le.candidates.length>0){if(le.candidates.length>1&&console.warn(`This response had ${le.candidates.length} candidates. Returning function calls from the first candidate only. Access response.candidates directly to use the other candidates.`),un(le.candidates[0]))throw Tt.create("response-error",{message:`${Je(le)}`,response:le});return function fn(le){var gt,ft,Qt,sn;const Tn=[];if(null!==(ft=null===(gt=le.candidates)||void 0===gt?void 0:gt[0].content)&&void 0!==ft&&ft.parts)for(const Xn of null===(sn=null===(Qt=le.candidates)||void 0===Qt?void 0:Qt[0].content)||void 0===sn?void 0:sn.parts)Xn.functionCall&&Tn.push(Xn.functionCall);if(Tn.length>0)return Tn}(le)}if(le.promptFeedback)throw Tt.create("response-error",{message:`Function call not available. ${Je(le)}`,response:le})},le}const xn=[ce.RECITATION,ce.SAFETY];function un(le){return!!le.finishReason&&xn.includes(le.finishReason)}function Je(le){var gt,ft,Qt;let sn="";if(le.candidates&&0!==le.candidates.length||!le.promptFeedback){if(null!==(Qt=le.candidates)&&void 0!==Qt&&Qt[0]){const Tn=le.candidates[0];un(Tn)&&(sn+=`Candidate was blocked due to ${Tn.finishReason}`,Tn.finishMessage&&(sn+=`: ${Tn.finishMessage}`))}}else sn+="Response was blocked",!(null===(gt=le.promptFeedback)||void 0===gt)&>.blockReason&&(sn+=` due to ${le.promptFeedback.blockReason}`),null!==(ft=le.promptFeedback)&&void 0!==ft&&ft.blockReasonMessage&&(sn+=`: ${le.promptFeedback.blockReasonMessage}`);return sn}const Sn=/^data\: (.*)(?:\n\n|\r\r|\r\n\r\n)/;function On(le){return or.apply(this,arguments)}function or(){return(or=(0,$.A)(function*(le){const gt=[],ft=le.getReader();for(;;){const{done:Qt,value:sn}=yield ft.read();if(Qt)return Ve(dr(gt));gt.push(sn)}})).apply(this,arguments)}function gr(le){return(0,tt.AQ)(this,arguments,function*(){const ft=le.getReader();for(;;){const{value:Qt,done:sn}=yield(0,tt.N3)(ft.read());if(sn)break;yield yield(0,tt.N3)(Ve(Qt))}})}function dr(le){const gt=le[le.length-1],ft={promptFeedback:null==gt?void 0:gt.promptFeedback};for(const Qt of le)if(Qt.candidates)for(const sn of Qt.candidates){const Tn=sn.index;if(ft.candidates||(ft.candidates=[]),ft.candidates[Tn]||(ft.candidates[Tn]={index:sn.index}),ft.candidates[Tn].citationMetadata=sn.citationMetadata,ft.candidates[Tn].finishReason=sn.finishReason,ft.candidates[Tn].finishMessage=sn.finishMessage,ft.candidates[Tn].safetyRatings=sn.safetyRatings,sn.content&&sn.content.parts){ft.candidates[Tn].content||(ft.candidates[Tn].content={role:sn.content.role||"user",parts:[]});const Xn={};for(const dn of sn.content.parts)dn.text&&(Xn.text=dn.text),dn.functionCall&&(Xn.functionCall=dn.functionCall),0===Object.keys(Xn).length&&(Xn.text=""),ft.candidates[Tn].content.parts.push(Xn)}}return ft}function nt(le,gt,ft,Qt){return Lt.apply(this,arguments)}function Lt(){return(Lt=(0,$.A)(function*(le,gt,ft,Qt){return function kn(le){const ft=function cr(le){const gt=le.getReader();return new ReadableStream({start(Qt){let sn="";return function Tn(){return gt.read().then(({value:Xn,done:dn})=>{if(dn)return sn.trim()?void Qt.error(Tt.create("parse-failed",{message:"Failed to parse stream"})):void Qt.close();sn+=Xn;let hr,wn=sn.match(Sn);for(;wn;){try{hr=JSON.parse(wn[1])}catch{return void Qt.error(Tt.create("parse-failed",{message:`Error parsing JSON response: "${wn[1]}"`}))}Qt.enqueue(hr),sn=sn.substring(wn[0].length),wn=sn.match(Sn)}return Tn()})}()}})}(le.body.pipeThrough(new TextDecoderStream("utf8",{fatal:!0}))),[Qt,sn]=ft.tee();return{stream:gr(Qt),response:On(sn)}}(yield Ct(gt,It.STREAM_GENERATE_CONTENT,le,!0,JSON.stringify(ft),Qt))})).apply(this,arguments)}function Xt(le,gt,ft,Qt){return yn.apply(this,arguments)}function yn(){return(yn=(0,$.A)(function*(le,gt,ft,Qt){return{response:Ve(yield(yield Ct(gt,It.GENERATE_CONTENT,le,!1,JSON.stringify(ft),Qt)).json())}})).apply(this,arguments)}function En(le){if(null!=le){if("string"==typeof le)return{role:"system",parts:[{text:le}]};if(le.text)return{role:"system",parts:[le]};if(le.parts)return le.role?le:{role:"system",parts:le.parts}}}function Fr(le){let gt=[];if("string"==typeof le)gt=[{text:le}];else for(const ft of le)gt.push("string"==typeof ft?{text:ft}:ft);return function Vn(le){const gt={role:"user",parts:[]},ft={role:"function",parts:[]};let Qt=!1,sn=!1;for(const Tn of le)"functionResponse"in Tn?(ft.parts.push(Tn),sn=!0):(gt.parts.push(Tn),Qt=!0);if(Qt&&sn)throw Tt.create("invalid-content",{message:"Within a single message, FunctionResponse cannot be mixed with other type of part in the request for sending chat message."});if(!Qt&&!sn)throw Tt.create("invalid-content",{message:"No content is provided for sending chat message."});return Qt?gt:ft}(gt)}function $n(le){let gt;return gt=le.contents?le:{contents:[Fr(le)]},le.systemInstruction&&(gt.systemInstruction=En(le.systemInstruction)),gt}const In=["text","inlineData","functionCall","functionResponse"],on={user:["text","inlineData"],function:["functionResponse"],model:["text","functionCall"],system:["text"]},mr={user:["model"],function:["model"],model:["user","function"],system:[]},Vr="SILENT_ERROR";class rr{constructor(gt,ft,Qt,sn){this.model=ft,this.params=Qt,this.requestOptions=sn,this._history=[],this._sendPromise=Promise.resolve(),this._apiSettings=gt,null!=Qt&&Qt.history&&(function br(le){let gt=null;for(const ft of le){const{role:Qt,parts:sn}=ft;if(!gt&&"user"!==Qt)throw Tt.create("invalid-content",{message:`First content should be with role 'user', got ${Qt}`});if(!At.includes(Qt))throw Tt.create("invalid-content",{message:`Each item should include role field. Got ${Qt} but valid roles are: ${JSON.stringify(At)}`});if(!Array.isArray(sn))throw Tt.create("invalid-content",{message:"Content should have 'parts' property with an array of Parts"});if(0===sn.length)throw Tt.create("invalid-content",{message:"Each Content should have at least one part"});const Tn={text:0,inlineData:0,functionCall:0,functionResponse:0};for(const dn of sn)for(const wn of In)wn in dn&&(Tn[wn]+=1);const Xn=on[Qt];for(const dn of In)if(!Xn.includes(dn)&&Tn[dn]>0)throw Tt.create("invalid-content",{message:`Content with role '${Qt}' can't contain '${dn}' part`});if(gt&&!mr[Qt].includes(gt.role))throw Tt.create("invalid-content",{message:`Content with role '${Qt}' can't follow '${gt.role}'. Valid previous roles: ${JSON.stringify(mr)}`});gt=ft}}(Qt.history),this._history=Qt.history)}getHistory(){var gt=this;return(0,$.A)(function*(){return yield gt._sendPromise,gt._history})()}sendMessage(gt){var ft=this;return(0,$.A)(function*(){var Qt,sn,Tn,Xn,dn;yield ft._sendPromise;const wn=Fr(gt),hr={safetySettings:null===(Qt=ft.params)||void 0===Qt?void 0:Qt.safetySettings,generationConfig:null===(sn=ft.params)||void 0===sn?void 0:sn.generationConfig,tools:null===(Tn=ft.params)||void 0===Tn?void 0:Tn.tools,toolConfig:null===(Xn=ft.params)||void 0===Xn?void 0:Xn.toolConfig,systemInstruction:null===(dn=ft.params)||void 0===dn?void 0:dn.systemInstruction,contents:[...ft._history,wn]};let wr={};return ft._sendPromise=ft._sendPromise.then(()=>Xt(ft._apiSettings,ft.model,hr,ft.requestOptions)).then(fr=>{var Ur,oi;if(fr.response.candidates&&fr.response.candidates.length>0){ft._history.push(wn);const Ir={parts:(null===(Ur=fr.response.candidates)||void 0===Ur?void 0:Ur[0].content.parts)||[],role:(null===(oi=fr.response.candidates)||void 0===oi?void 0:oi[0].content.role)||"model"};ft._history.push(Ir)}else{const Ir=Je(fr.response);Ir&&console.warn(`sendMessage() was unsuccessful. ${Ir}. Inspect response object for details.`)}wr=fr}),yield ft._sendPromise,wr})()}sendMessageStream(gt){var ft=this;return(0,$.A)(function*(){var Qt,sn,Tn,Xn,dn;yield ft._sendPromise;const wn=Fr(gt),hr={safetySettings:null===(Qt=ft.params)||void 0===Qt?void 0:Qt.safetySettings,generationConfig:null===(sn=ft.params)||void 0===sn?void 0:sn.generationConfig,tools:null===(Tn=ft.params)||void 0===Tn?void 0:Tn.tools,toolConfig:null===(Xn=ft.params)||void 0===Xn?void 0:Xn.toolConfig,systemInstruction:null===(dn=ft.params)||void 0===dn?void 0:dn.systemInstruction,contents:[...ft._history,wn]},wr=nt(ft._apiSettings,ft.model,hr,ft.requestOptions);return ft._sendPromise=ft._sendPromise.then(()=>wr).catch(fr=>{throw new Error(Vr)}).then(fr=>fr.response).then(fr=>{if(fr.candidates&&fr.candidates.length>0){ft._history.push(wn);const Ur=Object.assign({},fr.candidates[0].content);Ur.role||(Ur.role="model"),ft._history.push(Ur)}else{const Ur=Je(fr);Ur&&console.warn(`sendMessageStream() was unsuccessful. ${Ur}. Inspect response object for details.`)}}).catch(fr=>{fr.message!==Vr&&console.error(fr)}),wr})()}}function sr(){return(sr=(0,$.A)(function*(le,gt,ft,Qt){return(yield Ct(gt,It.COUNT_TOKENS,le,!1,JSON.stringify(ft),Qt)).json()})).apply(this,arguments)}class ii{constructor(gt,ft,Qt){var sn,Tn,Xn,dn;if(null===(Tn=null===(sn=gt.app)||void 0===sn?void 0:sn.options)||void 0===Tn||!Tn.apiKey)throw Tt.create("no-api-key");if(null===(dn=null===(Xn=gt.app)||void 0===Xn?void 0:Xn.options)||void 0===dn||!dn.projectId)throw Tt.create("no-project-id");this._apiSettings={apiKey:gt.app.options.apiKey,project:gt.app.options.projectId,location:gt.location},gt.appCheck&&(this._apiSettings.getAppCheckToken=()=>gt.appCheck.getToken()),gt.auth&&(this._apiSettings.getAuthToken=()=>gt.auth.getToken()),this.model=ft.model.includes("/")?ft.model.startsWith("models/")?`publishers/google/${ft.model}`:ft.model:`publishers/google/models/${ft.model}`,this.generationConfig=ft.generationConfig||{},this.safetySettings=ft.safetySettings||[],this.tools=ft.tools,this.toolConfig=ft.toolConfig,this.systemInstruction=En(ft.systemInstruction),this.requestOptions=Qt||{}}generateContent(gt){var ft=this;return(0,$.A)(function*(){const Qt=$n(gt);return Xt(ft._apiSettings,ft.model,Object.assign({generationConfig:ft.generationConfig,safetySettings:ft.safetySettings,tools:ft.tools,toolConfig:ft.toolConfig,systemInstruction:ft.systemInstruction},Qt),ft.requestOptions)})()}generateContentStream(gt){var ft=this;return(0,$.A)(function*(){const Qt=$n(gt);return nt(ft._apiSettings,ft.model,Object.assign({generationConfig:ft.generationConfig,safetySettings:ft.safetySettings,tools:ft.tools,toolConfig:ft.toolConfig,systemInstruction:ft.systemInstruction},Qt),ft.requestOptions)})()}startChat(gt){return new rr(this._apiSettings,this.model,Object.assign({tools:this.tools,toolConfig:this.toolConfig,systemInstruction:this.systemInstruction},gt),this.requestOptions)}countTokens(gt){var ft=this;return(0,$.A)(function*(){const Qt=$n(gt);return function Mr(le,gt,ft,Qt){return sr.apply(this,arguments)}(ft._apiSettings,ft.model,Qt)})()}}function Tr(le=(0,he.Sx)(),gt){return le=(0,Xe.Ku)(le),(0,he.j6)(le,et).getImmediate({identifier:(null==gt?void 0:gt.location)||it})}function yr(le,gt,ft){if(!gt.model)throw Tt.create("no-model");return new ii(le,gt,ft)}!function Br(){(0,he.om)(new ae.uA(et,(le,{instanceIdentifier:gt})=>{const ft=le.getProvider("app").getImmediate(),Qt=le.getProvider("auth-internal"),sn=le.getProvider("app-check-internal");return new Dt(ft,Qt,sn,{location:gt})},"PUBLIC").setMultipleInstances(!0)),(0,he.KO)(Se,be),(0,he.KO)(Se,be,"esm2017")}();class ar{constructor(gt){return gt}}const Lr="vertexai",Zr=new c.nKC("angularfire2.vertexai-instances");function rt(le){return(gt,ft)=>{const Qt=gt.runOutsideAngular(()=>le(ft));return new ar(Qt)}}const Nt={provide:class li{constructor(){return(0,h.CA)(Lr)}},deps:[[new c.Xx1,Zr]]},pt={provide:ar,useFactory:function ve(le,gt){const ft=(0,h.lR)(Lr,le,gt);return ft&&new ar(ft)},deps:[[new c.Xx1,Zr],Z.XU]};function Ie(le,...gt){return(0,ke.KO)("angularfire",h.xv.full,"vertexai"),(0,c.EmA)([pt,Nt,{provide:Zr,useFactory:rt(le),multi:!0,deps:[c.SKi,c.zZn,h.u0,Z.gL,[new c.Xx1,h.Jv],...gt]}])}const Ge=(0,h.S3)(Tr,!0),$t=(0,h.S3)(yr,!0)},5407:(Pn,Et,C)=>{"use strict";C.d(Et,{xv:()=>at,u0:()=>_e,Jv:()=>zt,CA:()=>Dt,lR:()=>xt,S3:()=>cn});var h=C(9842),c=C(4438),Z=C(2214),ke=C(6780),he=C(9687);const Xe=new class ae extends he.q{}(class $ extends ke.R{constructor(Re,G){super(Re,G),this.scheduler=Re,this.work=G}schedule(Re,G=0){return G>0?super.schedule(Re,G):(this.delay=G,this.state=Re,this.scheduler.flush(this),this)}execute(Re,G){return G>0||this.closed?super.execute(Re,G):this._execute(Re,G)}requestAsyncId(Re,G,X=0){return null!=X&&X>0||null==X&&this.delay>0?super.requestAsyncId(Re,G,X):(Re.flush(this),0)}});var Se=C(3236),be=C(1985),et=C(8141),it=C(6745),Ye=C(941);const at=new c.RxE("ANGULARFIRE2_VERSION");function xt(vt,Re,G){if(Re){if(1===Re.length)return Re[0];const ue=Re.filter(Ee=>Ee.app===G);if(1===ue.length)return ue[0]}return G.container.getProvider(vt).getImmediate({optional:!0})}const Dt=(vt,Re)=>{const G=Re?[Re]:(0,Z.Dk)(),X=[];return G.forEach(ce=>{ce.container.getProvider(vt).instances.forEach(Ee=>{X.includes(Ee)||X.push(Ee)})}),X};class zt{constructor(){return Dt(Tt)}}const Tt="app-check";function It(){}class Te{constructor(Re,G=Xe){(0,h.A)(this,"zone",void 0),(0,h.A)(this,"delegate",void 0),this.zone=Re,this.delegate=G}now(){return this.delegate.now()}schedule(Re,G,X){const ce=this.zone;return this.delegate.schedule(function(Ee){ce.runGuarded(()=>{Re.apply(this,[Ee])})},G,X)}}class Ze{constructor(Re){(0,h.A)(this,"zone",void 0),(0,h.A)(this,"task",null),this.zone=Re}call(Re,G){const X=this.unscheduleTask.bind(this);return this.task=this.zone.run(()=>Zone.current.scheduleMacroTask("firebaseZoneBlock",It,{},It,It)),G.pipe((0,et.M)({next:X,complete:X,error:X})).subscribe(Re).add(X)}unscheduleTask(){setTimeout(()=>{null!=this.task&&"scheduled"===this.task.state&&(this.task.invoke(),this.task=null)},10)}}let _e=(()=>{var vt;class Re{constructor(X){(0,h.A)(this,"ngZone",void 0),(0,h.A)(this,"outsideAngular",void 0),(0,h.A)(this,"insideAngular",void 0),this.ngZone=X,this.outsideAngular=X.runOutsideAngular(()=>new Te(Zone.current)),this.insideAngular=X.run(()=>new Te(Zone.current,Se.E)),globalThis.\u0275AngularFireScheduler||(globalThis.\u0275AngularFireScheduler=this)}}return vt=Re,(0,h.A)(Re,"\u0275fac",function(X){return new(X||vt)(c.KVO(c.SKi))}),(0,h.A)(Re,"\u0275prov",c.jDH({token:vt,factory:vt.\u0275fac,providedIn:"root"})),Re})();function $e(){const vt=globalThis.\u0275AngularFireScheduler;if(!vt)throw new Error("Either AngularFireModule has not been provided in your AppModule (this can be done manually or implictly using\nprovideFirebaseApp) or you're calling an AngularFire method outside of an NgModule (which is not supported).");return vt}function Oe(vt){return $e().ngZone.run(()=>vt())}function Cn(vt){return function At(vt){return function(G){return(G=G.lift(new Ze(vt.ngZone))).pipe((0,it._)(vt.outsideAngular),(0,Ye.Q)(vt.insideAngular))}}($e())(vt)}const st=(vt,Re)=>function(){const X=arguments;return Re&&setTimeout(()=>{"scheduled"===Re.state&&Re.invoke()},10),Oe(()=>vt.apply(void 0,X))},cn=(vt,Re)=>function(){let G;const X=arguments;for(let ue=0;ueZone.current.scheduleMacroTask("firebaseZoneBlock",It,{},It,It)))),X[ue]=st(X[ue],G));const ce=function Le(vt){return $e().ngZone.runOutsideAngular(()=>vt())}(()=>vt.apply(this,X));if(!Re){if(ce instanceof be.c){const ue=$e();return ce.pipe((0,it._)(ue.outsideAngular),(0,Ye.Q)(ue.insideAngular))}return Oe(()=>ce)}return ce instanceof be.c?ce.pipe(Cn):ce instanceof Promise?Oe(()=>new Promise((ue,Ee)=>ce.then(Ve=>Oe(()=>ue(Ve)),Ve=>Oe(()=>Ee(Ve))))):"function"==typeof ce&&G?function(){return setTimeout(()=>{G&&"scheduled"===G.state&&G.invoke()},10),ce.apply(this,arguments)}:Oe(()=>ce)}},4341:(Pn,Et,C)=>{"use strict";C.d(Et,{YN:()=>Vt,zX:()=>Bi,VZ:()=>Jo,cz:()=>_e,kq:()=>at,vO:()=>Xt,BC:()=>Vn,vS:()=>Pt});var h=C(4438),c=C(177),Z=C(8455),ke=C(1985),$=C(3073),he=C(8750),ae=C(9326),Xe=C(4360),tt=C(6450),Se=C(8496),et=C(6354);let it=(()=>{var B;class x{constructor(z,Pe){this._renderer=z,this._elementRef=Pe,this.onChange=an=>{},this.onTouched=()=>{}}setProperty(z,Pe){this._renderer.setProperty(this._elementRef.nativeElement,z,Pe)}registerOnTouched(z){this.onTouched=z}registerOnChange(z){this.onChange=z}setDisabledState(z){this.setProperty("disabled",z)}}return(B=x).\u0275fac=function(z){return new(z||B)(h.rXU(h.sFG),h.rXU(h.aKT))},B.\u0275dir=h.FsC({type:B}),x})(),Ye=(()=>{var B;class x extends it{}return(B=x).\u0275fac=(()=>{let se;return function(Pe){return(se||(se=h.xGo(B)))(Pe||B)}})(),B.\u0275dir=h.FsC({type:B,features:[h.Vt3]}),x})();const at=new h.nKC(""),Dt={provide:at,useExisting:(0,h.Rfq)(()=>It),multi:!0},Tt=new h.nKC("");let It=(()=>{var B;class x extends it{constructor(z,Pe,an){super(z,Pe),this._compositionMode=an,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function zt(){const B=(0,c.QT)()?(0,c.QT)().getUserAgent():"";return/android (\d+)/.test(B.toLowerCase())}())}writeValue(z){this.setProperty("value",null==z?"":z)}_handleInput(z){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(z)}_compositionStart(){this._composing=!0}_compositionEnd(z){this._composing=!1,this._compositionMode&&this.onChange(z)}}return(B=x).\u0275fac=function(z){return new(z||B)(h.rXU(h.sFG),h.rXU(h.aKT),h.rXU(Tt,8))},B.\u0275dir=h.FsC({type:B,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(z,Pe){1&z&&h.bIt("input",function(zn){return Pe._handleInput(zn.target.value)})("blur",function(){return Pe.onTouched()})("compositionstart",function(){return Pe._compositionStart()})("compositionend",function(zn){return Pe._compositionEnd(zn.target.value)})},features:[h.Jv_([Dt]),h.Vt3]}),x})();function Te(B){return null==B||("string"==typeof B||Array.isArray(B))&&0===B.length}const _e=new h.nKC(""),$e=new h.nKC("");function G(B){return null}function X(B){return null!=B}function ce(B){return(0,h.jNT)(B)?(0,Z.H)(B):B}function ue(B){let x={};return B.forEach(se=>{x=null!=se?{...x,...se}:x}),0===Object.keys(x).length?null:x}function Ee(B,x){return x.map(se=>se(B))}function ut(B){return B.map(x=>function Ve(B){return!B.validate}(x)?x:se=>x.validate(se))}function xn(B){return null!=B?function fn(B){if(!B)return null;const x=B.filter(X);return 0==x.length?null:function(se){return ue(Ee(se,x))}}(ut(B)):null}function Je(B){return null!=B?function un(B){if(!B)return null;const x=B.filter(X);return 0==x.length?null:function(se){return function be(...B){const x=(0,ae.ms)(B),{args:se,keys:z}=(0,$.D)(B),Pe=new ke.c(an=>{const{length:zn}=se;if(!zn)return void an.complete();const lr=new Array(zn);let pi=zn,Hi=zn;for(let Ei=0;Ei{ao||(ao=!0,Hi--),lr[Ei]=No},()=>pi--,void 0,()=>{(!pi||!ao)&&(Hi||an.next(z?(0,Se.e)(z,lr):lr),an.complete())}))}});return x?Pe.pipe((0,tt.I)(x)):Pe}(Ee(se,x).map(ce)).pipe((0,et.T)(ue))}}(ut(B)):null}function Sn(B,x){return null===B?[x]:Array.isArray(B)?[...B,x]:[B,x]}function or(B){return B?Array.isArray(B)?B:[B]:[]}function gr(B,x){return Array.isArray(B)?B.includes(x):B===x}function cr(B,x){const se=or(x);return or(B).forEach(Pe=>{gr(se,Pe)||se.push(Pe)}),se}function dr(B,x){return or(x).filter(se=>!gr(B,se))}class nt{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(x){this._rawValidators=x||[],this._composedValidatorFn=xn(this._rawValidators)}_setAsyncValidators(x){this._rawAsyncValidators=x||[],this._composedAsyncValidatorFn=Je(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(x){this._onDestroyCallbacks.push(x)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(x=>x()),this._onDestroyCallbacks=[]}reset(x=void 0){this.control&&this.control.reset(x)}hasError(x,se){return!!this.control&&this.control.hasError(x,se)}getError(x,se){return this.control?this.control.getError(x,se):null}}class Lt extends nt{get formDirective(){return null}get path(){return null}}class Xt extends nt{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class yn{constructor(x){this._cd=x}get isTouched(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.touched)}get isUntouched(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.untouched)}get isPristine(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.pristine)}get isDirty(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.dirty)}get isValid(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.valid)}get isInvalid(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.invalid)}get isPending(){var x;return!(null===(x=this._cd)||void 0===x||null===(x=x.control)||void 0===x||!x.pending)}get isSubmitted(){var x;return!(null===(x=this._cd)||void 0===x||!x.submitted)}}let Vn=(()=>{var B;class x extends yn{constructor(z){super(z)}}return(B=x).\u0275fac=function(z){return new(z||B)(h.rXU(Xt,2))},B.\u0275dir=h.FsC({type:B,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(z,Pe){2&z&&h.AVh("ng-untouched",Pe.isUntouched)("ng-touched",Pe.isTouched)("ng-pristine",Pe.isPristine)("ng-dirty",Pe.isDirty)("ng-valid",Pe.isValid)("ng-invalid",Pe.isInvalid)("ng-pending",Pe.isPending)},features:[h.Vt3]}),x})();const ve="VALID",rt="INVALID",Nt="PENDING",pt="DISABLED";function le(B){return null!=B&&!Array.isArray(B)&&"object"==typeof B}class Qt{constructor(x,se){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._assignValidators(x),this._assignAsyncValidators(se)}get validator(){return this._composedValidatorFn}set validator(x){this._rawValidators=this._composedValidatorFn=x}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(x){this._rawAsyncValidators=this._composedAsyncValidatorFn=x}get parent(){return this._parent}get valid(){return this.status===ve}get invalid(){return this.status===rt}get pending(){return this.status==Nt}get disabled(){return this.status===pt}get enabled(){return this.status!==pt}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(x){this._assignValidators(x)}setAsyncValidators(x){this._assignAsyncValidators(x)}addValidators(x){this.setValidators(cr(x,this._rawValidators))}addAsyncValidators(x){this.setAsyncValidators(cr(x,this._rawAsyncValidators))}removeValidators(x){this.setValidators(dr(x,this._rawValidators))}removeAsyncValidators(x){this.setAsyncValidators(dr(x,this._rawAsyncValidators))}hasValidator(x){return gr(this._rawValidators,x)}hasAsyncValidator(x){return gr(this._rawAsyncValidators,x)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(x={}){this.touched=!0,this._parent&&!x.onlySelf&&this._parent.markAsTouched(x)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(x=>x.markAllAsTouched())}markAsUntouched(x={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(se=>{se.markAsUntouched({onlySelf:!0})}),this._parent&&!x.onlySelf&&this._parent._updateTouched(x)}markAsDirty(x={}){this.pristine=!1,this._parent&&!x.onlySelf&&this._parent.markAsDirty(x)}markAsPristine(x={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(se=>{se.markAsPristine({onlySelf:!0})}),this._parent&&!x.onlySelf&&this._parent._updatePristine(x)}markAsPending(x={}){this.status=Nt,!1!==x.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!x.onlySelf&&this._parent.markAsPending(x)}disable(x={}){const se=this._parentMarkedDirty(x.onlySelf);this.status=pt,this.errors=null,this._forEachChild(z=>{z.disable({...x,onlySelf:!0})}),this._updateValue(),!1!==x.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors({...x,skipPristineCheck:se}),this._onDisabledChange.forEach(z=>z(!0))}enable(x={}){const se=this._parentMarkedDirty(x.onlySelf);this.status=ve,this._forEachChild(z=>{z.enable({...x,onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:x.emitEvent}),this._updateAncestors({...x,skipPristineCheck:se}),this._onDisabledChange.forEach(z=>z(!1))}_updateAncestors(x){this._parent&&!x.onlySelf&&(this._parent.updateValueAndValidity(x),x.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(x){this._parent=x}getRawValue(){return this.value}updateValueAndValidity(x={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ve||this.status===Nt)&&this._runAsyncValidator(x.emitEvent)),!1!==x.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!x.onlySelf&&this._parent.updateValueAndValidity(x)}_updateTreeValidity(x={emitEvent:!0}){this._forEachChild(se=>se._updateTreeValidity(x)),this.updateValueAndValidity({onlySelf:!0,emitEvent:x.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?pt:ve}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(x){if(this.asyncValidator){this.status=Nt,this._hasOwnPendingAsyncValidator=!0;const se=ce(this.asyncValidator(this));this._asyncValidationSubscription=se.subscribe(z=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(z,{emitEvent:x})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(x,se={}){this.errors=x,this._updateControlsErrors(!1!==se.emitEvent)}get(x){let se=x;return null==se||(Array.isArray(se)||(se=se.split(".")),0===se.length)?null:se.reduce((z,Pe)=>z&&z._find(Pe),this)}getError(x,se){const z=se?this.get(se):this;return z&&z.errors?z.errors[x]:null}hasError(x,se){return!!this.getError(x,se)}get root(){let x=this;for(;x._parent;)x=x._parent;return x}_updateControlsErrors(x){this.status=this._calculateStatus(),x&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(x)}_initObservables(){this.valueChanges=new h.bkB,this.statusChanges=new h.bkB}_calculateStatus(){return this._allControlsDisabled()?pt:this.errors?rt:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Nt)?Nt:this._anyControlsHaveStatus(rt)?rt:ve}_anyControlsHaveStatus(x){return this._anyControls(se=>se.status===x)}_anyControlsDirty(){return this._anyControls(x=>x.dirty)}_anyControlsTouched(){return this._anyControls(x=>x.touched)}_updatePristine(x={}){this.pristine=!this._anyControlsDirty(),this._parent&&!x.onlySelf&&this._parent._updatePristine(x)}_updateTouched(x={}){this.touched=this._anyControlsTouched(),this._parent&&!x.onlySelf&&this._parent._updateTouched(x)}_registerOnCollectionChange(x){this._onCollectionChange=x}_setUpdateStrategy(x){le(x)&&null!=x.updateOn&&(this._updateOn=x.updateOn)}_parentMarkedDirty(x){return!x&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}_find(x){return null}_assignValidators(x){this._rawValidators=Array.isArray(x)?x.slice():x,this._composedValidatorFn=function Ie(B){return Array.isArray(B)?xn(B):B||null}(this._rawValidators)}_assignAsyncValidators(x){this._rawAsyncValidators=Array.isArray(x)?x.slice():x,this._composedAsyncValidatorFn=function $t(B){return Array.isArray(B)?Je(B):B||null}(this._rawAsyncValidators)}}const wr=new h.nKC("CallSetDisabledState",{providedIn:"root",factory:()=>fr}),fr="always";function oi(B,x,se=fr){var z,Pe;(function Ar(B,x){const se=function kn(B){return B._rawValidators}(B);null!==x.validator?B.setValidators(Sn(se,x.validator)):"function"==typeof se&&B.setValidators([se]);const z=function On(B){return B._rawAsyncValidators}(B);null!==x.asyncValidator?B.setAsyncValidators(Sn(z,x.asyncValidator)):"function"==typeof z&&B.setAsyncValidators([z]);const Pe=()=>B.updateValueAndValidity();xi(x._rawValidators,Pe),xi(x._rawAsyncValidators,Pe)})(B,x),x.valueAccessor.writeValue(B.value),(B.disabled||"always"===se)&&(null===(z=(Pe=x.valueAccessor).setDisabledState)||void 0===z||z.call(Pe,B.disabled)),function ie(B,x){x.valueAccessor.registerOnChange(se=>{B._pendingValue=se,B._pendingChange=!0,B._pendingDirty=!0,"change"===B.updateOn&&ze(B,x)})}(B,x),function M(B,x){const se=(z,Pe)=>{x.valueAccessor.writeValue(z),Pe&&x.viewToModelUpdate(z)};B.registerOnChange(se),x._registerOnDestroy(()=>{B._unregisterOnChange(se)})}(B,x),function te(B,x){x.valueAccessor.registerOnTouched(()=>{B._pendingTouched=!0,"blur"===B.updateOn&&B._pendingChange&&ze(B,x),"submit"!==B.updateOn&&B.markAsTouched()})}(B,x),function vi(B,x){if(x.valueAccessor.setDisabledState){const se=z=>{x.valueAccessor.setDisabledState(z)};B.registerOnDisabledChange(se),x._registerOnDestroy(()=>{B._unregisterOnDisabledChange(se)})}}(B,x)}function xi(B,x){B.forEach(se=>{se.registerOnValidatorChange&&se.registerOnValidatorChange(x)})}function ze(B,x){B._pendingDirty&&B.markAsDirty(),B.setValue(B._pendingValue,{emitModelToViewChange:!1}),x.viewToModelUpdate(B._pendingValue),B._pendingChange=!1}function Rr(B,x){const se=B.indexOf(x);se>-1&&B.splice(se,1)}function di(B){return"object"==typeof B&&null!==B&&2===Object.keys(B).length&&"value"in B&&"disabled"in B}Promise.resolve();const hi=class extends Qt{constructor(x=null,se,z){super(function de(B){return(le(B)?B.validators:B)||null}(se),function Ge(B,x){return(le(x)?x.asyncValidators:B)||null}(z,se)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(x),this._setUpdateStrategy(se),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),le(se)&&(se.nonNullable||se.initialValueIsDefault)&&(this.defaultValue=di(x)?x.value:x)}setValue(x,se={}){this.value=this._pendingValue=x,this._onChange.length&&!1!==se.emitModelToViewChange&&this._onChange.forEach(z=>z(this.value,!1!==se.emitViewToModelChange)),this.updateValueAndValidity(se)}patchValue(x,se={}){this.setValue(x,se)}reset(x=this.defaultValue,se={}){this._applyFormState(x),this.markAsPristine(se),this.markAsUntouched(se),this.setValue(this.value,se),this._pendingChange=!1}_updateValue(){}_anyControls(x){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(x){this._onChange.push(x)}_unregisterOnChange(x){Rr(this._onChange,x)}registerOnDisabledChange(x){this._onDisabledChange.push(x)}_unregisterOnDisabledChange(x){Rr(this._onDisabledChange,x)}_forEachChild(x){}_syncPendingControls(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}_applyFormState(x){di(x)?(this.value=this._pendingValue=x.value,x.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=x}},bo={provide:Xt,useExisting:(0,h.Rfq)(()=>Pt)},ui=Promise.resolve();let Pt=(()=>{var B;class x extends Xt{constructor(z,Pe,an,zn,lr,pi){super(),this._changeDetectorRef=lr,this.callSetDisabledState=pi,this.control=new hi,this._registered=!1,this.name="",this.update=new h.bkB,this._parent=z,this._setValidators(Pe),this._setAsyncValidators(an),this.valueAccessor=function jn(B,x){if(!x)return null;let se,z,Pe;return Array.isArray(x),x.forEach(an=>{an.constructor===It?se=an:function qn(B){return Object.getPrototypeOf(B.constructor)===Ye}(an)?z=an:Pe=an}),Pe||z||se||null}(0,zn)}ngOnChanges(z){if(this._checkForErrors(),!this._registered||"name"in z){if(this._registered&&(this._checkName(),this.formDirective)){const Pe=z.name.previousValue;this.formDirective.removeControl({name:Pe,path:this._getPath(Pe)})}this._setUpControl()}"isDisabled"in z&&this._updateDisabled(z),function pr(B,x){if(!B.hasOwnProperty("model"))return!1;const se=B.model;return!!se.isFirstChange()||!Object.is(x,se.currentValue)}(z,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(z){this.viewModel=z,this.update.emit(z)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){oi(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(z){ui.then(()=>{var Pe;this.control.setValue(z,{emitViewToModelChange:!1}),null===(Pe=this._changeDetectorRef)||void 0===Pe||Pe.markForCheck()})}_updateDisabled(z){const Pe=z.isDisabled.currentValue,an=0!==Pe&&(0,h.L39)(Pe);ui.then(()=>{var zn;an&&!this.control.disabled?this.control.disable():!an&&this.control.disabled&&this.control.enable(),null===(zn=this._changeDetectorRef)||void 0===zn||zn.markForCheck()})}_getPath(z){return this._parent?function Ur(B,x){return[...x.path,B]}(z,this._parent):[z]}}return(B=x).\u0275fac=function(z){return new(z||B)(h.rXU(Lt,9),h.rXU(_e,10),h.rXU($e,10),h.rXU(at,10),h.rXU(h.gRc,8),h.rXU(wr,8))},B.\u0275dir=h.FsC({type:B,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[h.Mj6.None,"disabled","isDisabled"],model:[h.Mj6.None,"ngModel","model"],options:[h.Mj6.None,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[h.Jv_([bo]),h.Vt3,h.OA$]}),x})();function kr(B){return"number"==typeof B?B:parseFloat(B)}let ki=(()=>{var B;class x{constructor(){this._validator=G}ngOnChanges(z){if(this.inputName in z){const Pe=this.normalizeInput(z[this.inputName].currentValue);this._enabled=this.enabled(Pe),this._validator=this._enabled?this.createValidator(Pe):G,this._onChange&&this._onChange()}}validate(z){return this._validator(z)}registerOnValidatorChange(z){this._onChange=z}enabled(z){return null!=z}}return(B=x).\u0275fac=function(z){return new(z||B)},B.\u0275dir=h.FsC({type:B,features:[h.OA$]}),x})();const Fi={provide:_e,useExisting:(0,h.Rfq)(()=>Bi),multi:!0};let Bi=(()=>{var B;class x extends ki{constructor(){super(...arguments),this.inputName="max",this.normalizeInput=z=>kr(z),this.createValidator=z=>function kt(B){return x=>{if(Te(x.value)||Te(B))return null;const se=parseFloat(x.value);return!isNaN(se)&&se>B?{max:{max:B,actual:x.value}}:null}}(z)}}return(B=x).\u0275fac=(()=>{let se;return function(Pe){return(se||(se=h.xGo(B)))(Pe||B)}})(),B.\u0275dir=h.FsC({type:B,selectors:[["input","type","number","max","","formControlName",""],["input","type","number","max","","formControl",""],["input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(z,Pe){2&z&&h.BMQ("max",Pe._enabled?Pe.max:null)},inputs:{max:"max"},features:[h.Jv_([Fi]),h.Vt3]}),x})();const yo={provide:_e,useExisting:(0,h.Rfq)(()=>Jo),multi:!0};let Jo=(()=>{var B;class x extends ki{constructor(){super(...arguments),this.inputName="min",this.normalizeInput=z=>kr(z),this.createValidator=z=>function Ct(B){return x=>{if(Te(x.value)||Te(B))return null;const se=parseFloat(x.value);return!isNaN(se)&&se{let se;return function(Pe){return(se||(se=h.xGo(B)))(Pe||B)}})(),B.\u0275dir=h.FsC({type:B,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(z,Pe){2&z&&h.BMQ("min",Pe._enabled?Pe.min:null)},inputs:{min:"min"},features:[h.Jv_([yo]),h.Vt3]}),x})(),Zo=(()=>{var B;class x{}return(B=x).\u0275fac=function(z){return new(z||B)},B.\u0275mod=h.$C({type:B}),B.\u0275inj=h.G2t({}),x})(),Vt=(()=>{var B;class x{static withConfig(z){var Pe;return{ngModule:x,providers:[{provide:wr,useValue:null!==(Pe=z.callSetDisabledState)&&void 0!==Pe?Pe:fr}]}}}return(B=x).\u0275fac=function(z){return new(z||B)},B.\u0275mod=h.$C({type:B}),B.\u0275inj=h.G2t({imports:[Zo]}),x})()},345:(Pn,Et,C)=>{"use strict";C.d(Et,{Bb:()=>or,hE:()=>dr,sG:()=>Je,up:()=>Mr});var h=C(4438),c=C(177);class Z extends c.VF{constructor(){super(...arguments),this.supportsDOMEvents=!0}}class ke extends Z{static makeCurrent(){(0,c.ZD)(new ke)}onAndCancel(rt,Nt,pt){return rt.addEventListener(Nt,pt),()=>{rt.removeEventListener(Nt,pt)}}dispatchEvent(rt,Nt){rt.dispatchEvent(Nt)}remove(rt){rt.parentNode&&rt.parentNode.removeChild(rt)}createElement(rt,Nt){return(Nt=Nt||this.getDefaultDocument()).createElement(rt)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(rt){return rt.nodeType===Node.ELEMENT_NODE}isShadowRoot(rt){return rt instanceof DocumentFragment}getGlobalEventTarget(rt,Nt){return"window"===Nt?window:"document"===Nt?rt:"body"===Nt?rt.body:null}getBaseHref(rt){const Nt=function he(){return $=$||document.querySelector("base"),$?$.getAttribute("href"):null}();return null==Nt?null:function ae(ve){return new URL(ve,document.baseURI).pathname}(Nt)}resetBaseElement(){$=null}getUserAgent(){return window.navigator.userAgent}getCookie(rt){return(0,c._b)(document.cookie,rt)}}let $=null,tt=(()=>{var ve;class rt{build(){return new XMLHttpRequest}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac}),rt})();const Se=new h.nKC("");let be=(()=>{var ve;class rt{constructor(pt,de){this._zone=de,this._eventNameToPlugin=new Map,pt.forEach(Ie=>{Ie.manager=this}),this._plugins=pt.slice().reverse()}addEventListener(pt,de,Ie){return this._findPluginFor(de).addEventListener(pt,de,Ie)}getZone(){return this._zone}_findPluginFor(pt){let de=this._eventNameToPlugin.get(pt);if(de)return de;if(de=this._plugins.find(Ge=>Ge.supports(pt)),!de)throw new h.wOt(5101,!1);return this._eventNameToPlugin.set(pt,de),de}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(Se),h.KVO(h.SKi))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac}),rt})();class et{constructor(rt){this._doc=rt}}const it="ng-app-id";let Ye=(()=>{var ve;class rt{constructor(pt,de,Ie,Ge={}){this.doc=pt,this.appId=de,this.nonce=Ie,this.platformId=Ge,this.styleRef=new Map,this.hostNodes=new Set,this.styleNodesInDOM=this.collectServerRenderedStyles(),this.platformIsServer=(0,c.Vy)(Ge),this.resetHostNodes()}addStyles(pt){for(const de of pt)1===this.changeUsageCount(de,1)&&this.onStyleAdded(de)}removeStyles(pt){for(const de of pt)this.changeUsageCount(de,-1)<=0&&this.onStyleRemoved(de)}ngOnDestroy(){const pt=this.styleNodesInDOM;pt&&(pt.forEach(de=>de.remove()),pt.clear());for(const de of this.getAllStyles())this.onStyleRemoved(de);this.resetHostNodes()}addHost(pt){this.hostNodes.add(pt);for(const de of this.getAllStyles())this.addStyleToHost(pt,de)}removeHost(pt){this.hostNodes.delete(pt)}getAllStyles(){return this.styleRef.keys()}onStyleAdded(pt){for(const de of this.hostNodes)this.addStyleToHost(de,pt)}onStyleRemoved(pt){var de;const Ie=this.styleRef;null===(de=Ie.get(pt))||void 0===de||null===(de=de.elements)||void 0===de||de.forEach(Ge=>Ge.remove()),Ie.delete(pt)}collectServerRenderedStyles(){var pt;const de=null===(pt=this.doc.head)||void 0===pt?void 0:pt.querySelectorAll(`style[${it}="${this.appId}"]`);if(null!=de&&de.length){const Ie=new Map;return de.forEach(Ge=>{null!=Ge.textContent&&Ie.set(Ge.textContent,Ge)}),Ie}return null}changeUsageCount(pt,de){const Ie=this.styleRef;if(Ie.has(pt)){const Ge=Ie.get(pt);return Ge.usage+=de,Ge.usage}return Ie.set(pt,{usage:de,elements:[]}),de}getStyleElement(pt,de){const Ie=this.styleNodesInDOM,Ge=null==Ie?void 0:Ie.get(de);if((null==Ge?void 0:Ge.parentNode)===pt)return Ie.delete(de),Ge.removeAttribute(it),Ge;{const $t=this.doc.createElement("style");return this.nonce&&$t.setAttribute("nonce",this.nonce),$t.textContent=de,this.platformIsServer&&$t.setAttribute(it,this.appId),pt.appendChild($t),$t}}addStyleToHost(pt,de){var Ie;const Ge=this.getStyleElement(pt,de),$t=this.styleRef,le=null===(Ie=$t.get(de))||void 0===Ie?void 0:Ie.elements;le?le.push(Ge):$t.set(de,{elements:[Ge],usage:1})}resetHostNodes(){const pt=this.hostNodes;pt.clear(),pt.add(this.doc.head)}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(c.qQ),h.KVO(h.sZ2),h.KVO(h.BIS,8),h.KVO(h.Agw))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac}),rt})();const at={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},mt=/%COMP%/g,It=new h.nKC("",{providedIn:"root",factory:()=>!0});function _e(ve,rt){return rt.map(Nt=>Nt.replace(mt,ve))}let $e=(()=>{var ve;class rt{constructor(pt,de,Ie,Ge,$t,le,gt,ft=null){this.eventManager=pt,this.sharedStylesHost=de,this.appId=Ie,this.removeStylesOnCompDestroy=Ge,this.doc=$t,this.platformId=le,this.ngZone=gt,this.nonce=ft,this.rendererByCompId=new Map,this.platformIsServer=(0,c.Vy)(le),this.defaultRenderer=new Le(pt,$t,gt,this.platformIsServer)}createRenderer(pt,de){if(!pt||!de)return this.defaultRenderer;this.platformIsServer&&de.encapsulation===h.gXe.ShadowDom&&(de={...de,encapsulation:h.gXe.Emulated});const Ie=this.getOrCreateRenderer(pt,de);return Ie instanceof st?Ie.applyToHost(pt):Ie instanceof At&&Ie.applyStyles(),Ie}getOrCreateRenderer(pt,de){const Ie=this.rendererByCompId;let Ge=Ie.get(de.id);if(!Ge){const $t=this.doc,le=this.ngZone,gt=this.eventManager,ft=this.sharedStylesHost,Qt=this.removeStylesOnCompDestroy,sn=this.platformIsServer;switch(de.encapsulation){case h.gXe.Emulated:Ge=new st(gt,ft,de,this.appId,Qt,$t,le,sn);break;case h.gXe.ShadowDom:return new Cn(gt,ft,pt,de,$t,le,this.nonce,sn);default:Ge=new At(gt,ft,de,Qt,$t,le,sn)}Ie.set(de.id,Ge)}return Ge}ngOnDestroy(){this.rendererByCompId.clear()}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(be),h.KVO(Ye),h.KVO(h.sZ2),h.KVO(It),h.KVO(c.qQ),h.KVO(h.Agw),h.KVO(h.SKi),h.KVO(h.BIS))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac}),rt})();class Le{constructor(rt,Nt,pt,de){this.eventManager=rt,this.doc=Nt,this.ngZone=pt,this.platformIsServer=de,this.data=Object.create(null),this.throwOnSyntheticProps=!0,this.destroyNode=null}destroy(){}createElement(rt,Nt){return Nt?this.doc.createElementNS(at[Nt]||Nt,rt):this.doc.createElement(rt)}createComment(rt){return this.doc.createComment(rt)}createText(rt){return this.doc.createTextNode(rt)}appendChild(rt,Nt){(kt(rt)?rt.content:rt).appendChild(Nt)}insertBefore(rt,Nt,pt){rt&&(kt(rt)?rt.content:rt).insertBefore(Nt,pt)}removeChild(rt,Nt){rt&&rt.removeChild(Nt)}selectRootElement(rt,Nt){let pt="string"==typeof rt?this.doc.querySelector(rt):rt;if(!pt)throw new h.wOt(-5104,!1);return Nt||(pt.textContent=""),pt}parentNode(rt){return rt.parentNode}nextSibling(rt){return rt.nextSibling}setAttribute(rt,Nt,pt,de){if(de){Nt=de+":"+Nt;const Ie=at[de];Ie?rt.setAttributeNS(Ie,Nt,pt):rt.setAttribute(Nt,pt)}else rt.setAttribute(Nt,pt)}removeAttribute(rt,Nt,pt){if(pt){const de=at[pt];de?rt.removeAttributeNS(de,Nt):rt.removeAttribute(`${pt}:${Nt}`)}else rt.removeAttribute(Nt)}addClass(rt,Nt){rt.classList.add(Nt)}removeClass(rt,Nt){rt.classList.remove(Nt)}setStyle(rt,Nt,pt,de){de&(h.czy.DashCase|h.czy.Important)?rt.style.setProperty(Nt,pt,de&h.czy.Important?"important":""):rt.style[Nt]=pt}removeStyle(rt,Nt,pt){pt&h.czy.DashCase?rt.style.removeProperty(Nt):rt.style[Nt]=""}setProperty(rt,Nt,pt){null!=rt&&(rt[Nt]=pt)}setValue(rt,Nt){rt.nodeValue=Nt}listen(rt,Nt,pt){if("string"==typeof rt&&!(rt=(0,c.QT)().getGlobalEventTarget(this.doc,rt)))throw new Error(`Unsupported event target ${rt} for event ${Nt}`);return this.eventManager.addEventListener(rt,Nt,this.decoratePreventDefault(pt))}decoratePreventDefault(rt){return Nt=>{if("__ngUnwrap__"===Nt)return rt;!1===(this.platformIsServer?this.ngZone.runGuarded(()=>rt(Nt)):rt(Nt))&&Nt.preventDefault()}}}function kt(ve){return"TEMPLATE"===ve.tagName&&void 0!==ve.content}class Cn extends Le{constructor(rt,Nt,pt,de,Ie,Ge,$t,le){super(rt,Ie,Ge,le),this.sharedStylesHost=Nt,this.hostEl=pt,this.shadowRoot=pt.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const gt=_e(de.id,de.styles);for(const ft of gt){const Qt=document.createElement("style");$t&&Qt.setAttribute("nonce",$t),Qt.textContent=ft,this.shadowRoot.appendChild(Qt)}}nodeOrShadowRoot(rt){return rt===this.hostEl?this.shadowRoot:rt}appendChild(rt,Nt){return super.appendChild(this.nodeOrShadowRoot(rt),Nt)}insertBefore(rt,Nt,pt){return super.insertBefore(this.nodeOrShadowRoot(rt),Nt,pt)}removeChild(rt,Nt){return super.removeChild(this.nodeOrShadowRoot(rt),Nt)}parentNode(rt){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(rt)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}}class At extends Le{constructor(rt,Nt,pt,de,Ie,Ge,$t,le){super(rt,Ie,Ge,$t),this.sharedStylesHost=Nt,this.removeStylesOnCompDestroy=de,this.styles=le?_e(le,pt.styles):pt.styles}applyStyles(){this.sharedStylesHost.addStyles(this.styles)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles)}}class st extends At{constructor(rt,Nt,pt,de,Ie,Ge,$t,le){const gt=de+"-"+pt.id;super(rt,Nt,pt,Ie,Ge,$t,le,gt),this.contentAttr=function Te(ve){return"_ngcontent-%COMP%".replace(mt,ve)}(gt),this.hostAttr=function Ze(ve){return"_nghost-%COMP%".replace(mt,ve)}(gt)}applyToHost(rt){this.applyStyles(),this.setAttribute(rt,this.hostAttr,"")}createElement(rt,Nt){const pt=super.createElement(rt,Nt);return super.setAttribute(pt,this.contentAttr,""),pt}}let cn=(()=>{var ve;class rt extends et{constructor(pt){super(pt)}supports(pt){return!0}addEventListener(pt,de,Ie){return pt.addEventListener(de,Ie,!1),()=>this.removeEventListener(pt,de,Ie)}removeEventListener(pt,de,Ie){return pt.removeEventListener(de,Ie)}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(c.qQ))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac}),rt})();const vt=["alt","control","meta","shift"],Re={"\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:ve=>ve.altKey,control:ve=>ve.ctrlKey,meta:ve=>ve.metaKey,shift:ve=>ve.shiftKey};let X=(()=>{var ve;class rt extends et{constructor(pt){super(pt)}supports(pt){return null!=rt.parseEventName(pt)}addEventListener(pt,de,Ie){const Ge=rt.parseEventName(de),$t=rt.eventCallback(Ge.fullKey,Ie,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>(0,c.QT)().onAndCancel(pt,Ge.domEventName,$t))}static parseEventName(pt){const de=pt.toLowerCase().split("."),Ie=de.shift();if(0===de.length||"keydown"!==Ie&&"keyup"!==Ie)return null;const Ge=rt._normalizeKey(de.pop());let $t="",le=de.indexOf("code");if(le>-1&&(de.splice(le,1),$t="code."),vt.forEach(ft=>{const Qt=de.indexOf(ft);Qt>-1&&(de.splice(Qt,1),$t+=ft+".")}),$t+=Ge,0!=de.length||0===Ge.length)return null;const gt={};return gt.domEventName=Ie,gt.fullKey=$t,gt}static matchEventFullKeyCode(pt,de){let Ie=Re[pt.key]||pt.key,Ge="";return de.indexOf("code.")>-1&&(Ie=pt.code,Ge="code."),!(null==Ie||!Ie)&&(Ie=Ie.toLowerCase()," "===Ie?Ie="space":"."===Ie&&(Ie="dot"),vt.forEach($t=>{$t!==Ie&&(0,G[$t])(pt)&&(Ge+=$t+".")}),Ge+=Ie,Ge===de)}static eventCallback(pt,de,Ie){return Ge=>{rt.matchEventFullKeyCode(Ge,pt)&&Ie.runGuarded(()=>de(Ge))}}static _normalizeKey(pt){return"esc"===pt?"escape":pt}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(c.qQ))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac}),rt})();const Je=(0,h.oH4)(h.fpN,"browser",[{provide:h.Agw,useValue:c.AJ},{provide:h.PLl,useValue:function ut(){ke.makeCurrent()},multi:!0},{provide:c.qQ,useFactory:function xn(){return(0,h.TL$)(document),document},deps:[]}]),Sn=new h.nKC(""),kn=[{provide:h.e01,useClass:class Xe{addToWindow(rt){h.JZv.getAngularTestability=(pt,de=!0)=>{const Ie=rt.findTestabilityInTree(pt,de);if(null==Ie)throw new h.wOt(5103,!1);return Ie},h.JZv.getAllAngularTestabilities=()=>rt.getAllTestabilities(),h.JZv.getAllAngularRootElements=()=>rt.getAllRootElements(),h.JZv.frameworkStabilizers||(h.JZv.frameworkStabilizers=[]),h.JZv.frameworkStabilizers.push(pt=>{const de=h.JZv.getAllAngularTestabilities();let Ie=de.length;const Ge=function(){Ie--,0==Ie&&pt()};de.forEach($t=>{$t.whenStable(Ge)})})}findTestabilityInTree(rt,Nt,pt){if(null==Nt)return null;const de=rt.getTestability(Nt);return null!=de?de:pt?(0,c.QT)().isShadowRoot(Nt)?this.findTestabilityInTree(rt,Nt.host,!0):this.findTestabilityInTree(rt,Nt.parentElement,!0):null}},deps:[]},{provide:h.WHO,useClass:h.NYb,deps:[h.SKi,h.giA,h.e01]},{provide:h.NYb,useClass:h.NYb,deps:[h.SKi,h.giA,h.e01]}],On=[{provide:h.H8p,useValue:"root"},{provide:h.zcH,useFactory:function fn(){return new h.zcH},deps:[]},{provide:Se,useClass:cn,multi:!0,deps:[c.qQ,h.SKi,h.Agw]},{provide:Se,useClass:X,multi:!0,deps:[c.qQ]},$e,Ye,be,{provide:h._9s,useExisting:$e},{provide:c.N0,useClass:tt,deps:[]},[]];let or=(()=>{var ve;class rt{constructor(pt){}static withServerTransition(pt){return{ngModule:rt,providers:[{provide:h.sZ2,useValue:pt.appId}]}}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(Sn,12))},ve.\u0275mod=h.$C({type:ve}),ve.\u0275inj=h.G2t({providers:[...On,...kn],imports:[c.MD,h.Hbi]}),rt})(),dr=(()=>{var ve;class rt{constructor(pt){this._doc=pt}getTitle(){return this._doc.title}setTitle(pt){this._doc.title=pt||""}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(c.qQ))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"}),rt})(),Mr=(()=>{var ve;class rt{}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)},ve.\u0275prov=h.jDH({token:ve,factory:function(pt){let de=null;return de=pt?new(pt||ve):h.KVO(sr),de},providedIn:"root"}),rt})(),sr=(()=>{var ve;class rt extends Mr{constructor(pt){super(),this._doc=pt}sanitize(pt,de){if(null==de)return null;switch(pt){case h.WPN.NONE:return de;case h.WPN.HTML:return(0,h.ZF7)(de,"HTML")?(0,h.rcV)(de):(0,h.h9k)(this._doc,String(de)).toString();case h.WPN.STYLE:return(0,h.ZF7)(de,"Style")?(0,h.rcV)(de):de;case h.WPN.SCRIPT:if((0,h.ZF7)(de,"Script"))return(0,h.rcV)(de);throw new h.wOt(5200,!1);case h.WPN.URL:return(0,h.ZF7)(de,"URL")?(0,h.rcV)(de):(0,h.$MX)(String(de));case h.WPN.RESOURCE_URL:if((0,h.ZF7)(de,"ResourceURL"))return(0,h.rcV)(de);throw new h.wOt(5201,!1);default:throw new h.wOt(5202,!1)}}bypassSecurityTrustHtml(pt){return(0,h.Kcf)(pt)}bypassSecurityTrustStyle(pt){return(0,h.cWb)(pt)}bypassSecurityTrustScript(pt){return(0,h.UyX)(pt)}bypassSecurityTrustUrl(pt){return(0,h.osQ)(pt)}bypassSecurityTrustResourceUrl(pt){return(0,h.e5t)(pt)}}return(ve=rt).\u0275fac=function(pt){return new(pt||ve)(h.KVO(c.qQ))},ve.\u0275prov=h.jDH({token:ve,factory:ve.\u0275fac,providedIn:"root"}),rt})()},7650:(Pn,Et,C)=>{"use strict";C.d(Et,{nX:()=>Ce,Zp:()=>Be,wF:()=>Pr,Z:()=>$r,Xk:()=>Je,Kp:()=>io,b:()=>Fn,Ix:()=>ir,Wk:()=>Vi,iI:()=>Is,Sd:()=>yr});var h=C(467),c=C(4438),Z=C(4402),ke=C(8455),$=C(7673),he=C(4412),ae=C(4572),Xe=C(9350),tt=C(8793),Se=C(1985),be=C(8750);function et(E){return new Se.c(b=>{(0,be.Tg)(E()).subscribe(b)})}var it=C(1203),Ye=C(8071);function at(E,b){const N=(0,Ye.T)(E)?E:()=>E,D=L=>L.error(N());return new Se.c(b?L=>b.schedule(D,0,L):D)}var mt=C(983),xt=C(8359),Dt=C(9974),zt=C(4360);function Tt(){return(0,Dt.N)((E,b)=>{let N=null;E._refCount++;const D=(0,zt._)(b,void 0,void 0,void 0,()=>{if(!E||E._refCount<=0||0<--E._refCount)return void(N=null);const L=E._connection,pe=N;N=null,L&&(!pe||L===pe)&&L.unsubscribe(),b.unsubscribe()});E.subscribe(D),D.closed||(N=E.connect())})}class It extends Se.c{constructor(b,N){super(),this.source=b,this.subjectFactory=N,this._subject=null,this._refCount=0,this._connection=null,(0,Dt.S)(b)&&(this.lift=b.lift)}_subscribe(b){return this.getSubject().subscribe(b)}getSubject(){const b=this._subject;return(!b||b.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;const{_connection:b}=this;this._subject=this._connection=null,null==b||b.unsubscribe()}connect(){let b=this._connection;if(!b){b=this._connection=new xt.yU;const N=this.getSubject();b.add(this.source.subscribe((0,zt._)(N,void 0,()=>{this._teardown(),N.complete()},D=>{this._teardown(),N.error(D)},()=>this._teardown()))),b.closed&&(this._connection=null,b=xt.yU.EMPTY)}return b}refCount(){return Tt()(this)}}var Te=C(1413),Ze=C(177),_e=C(6354),$e=C(5558),Le=C(6697),Oe=C(9172),Ct=C(5964),kt=C(1397),Cn=C(1594),At=C(274),st=C(8141);function cn(E){return(0,Dt.N)((b,N)=>{let pe,D=null,L=!1;D=b.subscribe((0,zt._)(N,void 0,void 0,xe=>{pe=(0,be.Tg)(E(xe,cn(E)(b))),D?(D.unsubscribe(),D=null,pe.subscribe(N)):L=!0})),L&&(D.unsubscribe(),D=null,pe.subscribe(N))})}var G=C(9901);function X(E){return E<=0?()=>mt.w:(0,Dt.N)((b,N)=>{let D=[];b.subscribe((0,zt._)(N,L=>{D.push(L),E{for(const L of D)N.next(L);N.complete()},void 0,()=>{D=null}))})}var ce=C(3774),ue=C(3669),Ve=C(3703),ut=C(980),fn=C(6977),xn=C(6365),un=C(345);const Je="primary",Sn=Symbol("RouteTitle");class kn{constructor(b){this.params=b||{}}has(b){return Object.prototype.hasOwnProperty.call(this.params,b)}get(b){if(this.has(b)){const N=this.params[b];return Array.isArray(N)?N[0]:N}return null}getAll(b){if(this.has(b)){const N=this.params[b];return Array.isArray(N)?N:[N]}return[]}get keys(){return Object.keys(this.params)}}function On(E){return new kn(E)}function or(E,b,N){const D=N.path.split("/");if(D.length>E.length||"full"===N.pathMatch&&(b.hasChildren()||D.lengthD[pe]===L)}return E===b}function Lt(E){return E.length>0?E[E.length-1]:null}function Xt(E){return(0,Z.A)(E)?E:(0,c.jNT)(E)?(0,ke.H)(Promise.resolve(E)):(0,$.of)(E)}const yn={exact:function $n(E,b,N){if(!ii(E.segments,b.segments)||!br(E.segments,b.segments,N)||E.numberOfChildren!==b.numberOfChildren)return!1;for(const D in b.children)if(!E.children[D]||!$n(E.children[D],b.children[D],N))return!1;return!0},subset:on},En={exact:function Vn(E,b){return cr(E,b)},subset:function In(E,b){return Object.keys(b).length<=Object.keys(E).length&&Object.keys(b).every(N=>nt(E[N],b[N]))},ignored:()=>!0};function Fr(E,b,N){return yn[N.paths](E.root,b.root,N.matrixParams)&&En[N.queryParams](E.queryParams,b.queryParams)&&!("exact"===N.fragment&&E.fragment!==b.fragment)}function on(E,b,N){return mr(E,b,b.segments,N)}function mr(E,b,N,D){if(E.segments.length>N.length){const L=E.segments.slice(0,N.length);return!(!ii(L,N)||b.hasChildren()||!br(L,N,D))}if(E.segments.length===N.length){if(!ii(E.segments,N)||!br(E.segments,N,D))return!1;for(const L in b.children)if(!E.children[L]||!on(E.children[L],b.children[L],D))return!1;return!0}{const L=N.slice(0,E.segments.length),pe=N.slice(E.segments.length);return!!(ii(E.segments,L)&&br(E.segments,L,D)&&E.children[Je])&&mr(E.children[Je],b,pe,D)}}function br(E,b,N){return b.every((D,L)=>En[N](E[L].parameters,D.parameters))}class Vr{constructor(b=new rr([],{}),N={},D=null){this.root=b,this.queryParams=N,this.fragment=D}get queryParamMap(){var b;return null!==(b=this._queryParamMap)&&void 0!==b||(this._queryParamMap=On(this.queryParams)),this._queryParamMap}toString(){return ar.serialize(this)}}class rr{constructor(b,N){this.segments=b,this.children=N,this.parent=null,Object.values(N).forEach(D=>D.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Lr(this)}}class Mr{constructor(b,N){this.path=b,this.parameters=N}get parameterMap(){var b;return null!==(b=this._parameterMap)&&void 0!==b||(this._parameterMap=On(this.parameters)),this._parameterMap}toString(){return de(this)}}function ii(E,b){return E.length===b.length&&E.every((N,D)=>N.path===b[D].path)}let yr=(()=>{var E;class b{}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>new Br,providedIn:"root"}),b})();class Br{parse(b){const N=new dn(b);return new Vr(N.parseRootSegment(),N.parseQueryParams(),N.parseFragment())}serialize(b){const N=`/${li(b.root,!0)}`,D=function Ge(E){const b=Object.entries(E).map(([N,D])=>Array.isArray(D)?D.map(L=>`${Zr(N)}=${Zr(L)}`).join("&"):`${Zr(N)}=${Zr(D)}`).filter(N=>N);return b.length?`?${b.join("&")}`:""}(b.queryParams);return`${N}${D}${"string"==typeof b.fragment?`#${function ve(E){return encodeURI(E)}(b.fragment)}`:""}`}}const ar=new Br;function Lr(E){return E.segments.map(b=>de(b)).join("/")}function li(E,b){if(!E.hasChildren())return Lr(E);if(b){const N=E.children[Je]?li(E.children[Je],!1):"",D=[];return Object.entries(E.children).forEach(([L,pe])=>{L!==Je&&D.push(`${L}:${li(pe,!1)}`)}),D.length>0?`${N}(${D.join("//")})`:N}{const N=function Tr(E,b){let N=[];return Object.entries(E.children).forEach(([D,L])=>{D===Je&&(N=N.concat(b(L,D)))}),Object.entries(E.children).forEach(([D,L])=>{D!==Je&&(N=N.concat(b(L,D)))}),N}(E,(D,L)=>L===Je?[li(E.children[Je],!1)]:[`${L}:${li(D,!1)}`]);return 1===Object.keys(E.children).length&&null!=E.children[Je]?`${Lr(E)}/${N[0]}`:`${Lr(E)}/(${N.join("//")})`}}function Di(E){return encodeURIComponent(E).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Zr(E){return Di(E).replace(/%3B/gi,";")}function rt(E){return Di(E).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Nt(E){return decodeURIComponent(E)}function pt(E){return Nt(E.replace(/\+/g,"%20"))}function de(E){return`${rt(E.path)}${function Ie(E){return Object.entries(E).map(([b,N])=>`;${rt(b)}=${rt(N)}`).join("")}(E.parameters)}`}const $t=/^[^\/()?;#]+/;function le(E){const b=E.match($t);return b?b[0]:""}const gt=/^[^\/()?;=#]+/,Qt=/^[^=?&#]+/,Tn=/^[^&#]+/;class dn{constructor(b){this.url=b,this.remaining=b}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new rr([],{}):new rr([],this.parseChildren())}parseQueryParams(){const b={};if(this.consumeOptional("?"))do{this.parseQueryParam(b)}while(this.consumeOptional("&"));return b}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const b=[];for(this.peekStartsWith("(")||b.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),b.push(this.parseSegment());let N={};this.peekStartsWith("/(")&&(this.capture("/"),N=this.parseParens(!0));let D={};return this.peekStartsWith("(")&&(D=this.parseParens(!1)),(b.length>0||Object.keys(N).length>0)&&(D[Je]=new rr(b,N)),D}parseSegment(){const b=le(this.remaining);if(""===b&&this.peekStartsWith(";"))throw new c.wOt(4009,!1);return this.capture(b),new Mr(Nt(b),this.parseMatrixParams())}parseMatrixParams(){const b={};for(;this.consumeOptional(";");)this.parseParam(b);return b}parseParam(b){const N=function ft(E){const b=E.match(gt);return b?b[0]:""}(this.remaining);if(!N)return;this.capture(N);let D="";if(this.consumeOptional("=")){const L=le(this.remaining);L&&(D=L,this.capture(D))}b[Nt(N)]=Nt(D)}parseQueryParam(b){const N=function sn(E){const b=E.match(Qt);return b?b[0]:""}(this.remaining);if(!N)return;this.capture(N);let D="";if(this.consumeOptional("=")){const xe=function Xn(E){const b=E.match(Tn);return b?b[0]:""}(this.remaining);xe&&(D=xe,this.capture(D))}const L=pt(N),pe=pt(D);if(b.hasOwnProperty(L)){let xe=b[L];Array.isArray(xe)||(xe=[xe],b[L]=xe),xe.push(pe)}else b[L]=pe}parseParens(b){const N={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const D=le(this.remaining),L=this.remaining[D.length];if("/"!==L&&")"!==L&&";"!==L)throw new c.wOt(4010,!1);let pe;D.indexOf(":")>-1?(pe=D.slice(0,D.indexOf(":")),this.capture(pe),this.capture(":")):b&&(pe=Je);const xe=this.parseChildren();N[pe]=1===Object.keys(xe).length?xe[Je]:new rr([],xe),this.consumeOptional("//")}return N}peekStartsWith(b){return this.remaining.startsWith(b)}consumeOptional(b){return!!this.peekStartsWith(b)&&(this.remaining=this.remaining.substring(b.length),!0)}capture(b){if(!this.consumeOptional(b))throw new c.wOt(4011,!1)}}function wn(E){return E.segments.length>0?new rr([],{[Je]:E}):E}function hr(E){const b={};for(const[D,L]of Object.entries(E.children)){const pe=hr(L);if(D===Je&&0===pe.segments.length&&pe.hasChildren())for(const[xe,Ft]of Object.entries(pe.children))b[xe]=Ft;else(pe.segments.length>0||pe.hasChildren())&&(b[D]=pe)}return function wr(E){if(1===E.numberOfChildren&&E.children[Je]){const b=E.children[Je];return new rr(E.segments.concat(b.segments),b.children)}return E}(new rr(E.segments,b))}function fr(E){return E instanceof Vr}function oi(E){var b;let N;const pe=wn(function D(xe){const Ft={};for(const Wt of xe.children){const Qn=D(Wt);Ft[Wt.outlet]=Qn}const An=new rr(xe.url,Ft);return xe===E&&(N=An),An}(E.root));return null!==(b=N)&&void 0!==b?b:pe}function Ir(E,b,N,D){let L=E;for(;L.parent;)L=L.parent;if(0===b.length)return Ar(L,L,L,N,D);const pe=function te(E){if("string"==typeof E[0]&&1===E.length&&"/"===E[0])return new ie(!0,0,E);let b=0,N=!1;const D=E.reduce((L,pe,xe)=>{if("object"==typeof pe&&null!=pe){if(pe.outlets){const Ft={};return Object.entries(pe.outlets).forEach(([An,Wt])=>{Ft[An]="string"==typeof Wt?Wt.split("/"):Wt}),[...L,{outlets:Ft}]}if(pe.segmentPath)return[...L,pe.segmentPath]}return"string"!=typeof pe?[...L,pe]:0===xe?(pe.split("/").forEach((Ft,An)=>{0==An&&"."===Ft||(0==An&&""===Ft?N=!0:".."===Ft?b++:""!=Ft&&L.push(Ft))}),L):[...L,pe]},[]);return new ie(N,b,D)}(b);if(pe.toRoot())return Ar(L,L,new rr([],{}),N,D);const xe=function M(E,b,N){if(E.isAbsolute)return new ze(b,!0,0);if(!N)return new ze(b,!1,NaN);if(null===N.parent)return new ze(N,!0,0);const D=xi(E.commands[0])?0:1;return function O(E,b,N){let D=E,L=b,pe=N;for(;pe>L;){if(pe-=L,D=D.parent,!D)throw new c.wOt(4005,!1);L=D.segments.length}return new ze(D,!1,L-pe)}(N,N.segments.length-1+D,E.numberOfDoubleDots)}(pe,L,E),Ft=xe.processChildren?We(xe.segmentGroup,xe.index,pe.commands):we(xe.segmentGroup,xe.index,pe.commands);return Ar(L,xe.segmentGroup,Ft,N,D)}function xi(E){return"object"==typeof E&&null!=E&&!E.outlets&&!E.segmentPath}function vi(E){return"object"==typeof E&&null!=E&&E.outlets}function Ar(E,b,N,D,L){let xe,pe={};D&&Object.entries(D).forEach(([An,Wt])=>{pe[An]=Array.isArray(Wt)?Wt.map(Qn=>`${Qn}`):`${Wt}`}),xe=E===b?N:Gt(E,b,N);const Ft=wn(hr(xe));return new Vr(Ft,pe,L)}function Gt(E,b,N){const D={};return Object.entries(E.children).forEach(([L,pe])=>{D[L]=pe===b?N:Gt(pe,b,N)}),new rr(E.segments,D)}class ie{constructor(b,N,D){if(this.isAbsolute=b,this.numberOfDoubleDots=N,this.commands=D,b&&D.length>0&&xi(D[0]))throw new c.wOt(4003,!1);const L=D.find(vi);if(L&&L!==Lt(D))throw new c.wOt(4004,!1)}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class ze{constructor(b,N,D){this.segmentGroup=b,this.processChildren=N,this.index=D}}function we(E,b,N){var D;if(null!==(D=E)&&void 0!==D||(E=new rr([],{})),0===E.segments.length&&E.hasChildren())return We(E,b,N);const L=function St(E,b,N){let D=0,L=b;const pe={match:!1,pathIndex:0,commandIndex:0};for(;L=N.length)return pe;const xe=E.segments[L],Ft=N[D];if(vi(Ft))break;const An=`${Ft}`,Wt=D0&&void 0===An)break;if(An&&Wt&&"object"==typeof Wt&&void 0===Wt.outlets){if(!qn(An,Wt,xe))return pe;D+=2}else{if(!qn(An,{},xe))return pe;D++}L++}return{match:!0,pathIndex:L,commandIndex:D}}(E,b,N),pe=N.slice(L.commandIndex);if(L.match&&L.pathIndexpe!==Je)&&E.children[Je]&&1===E.numberOfChildren&&0===E.children[Je].segments.length){const pe=We(E.children[Je],b,N);return new rr(E.segments,pe.children)}return Object.entries(D).forEach(([pe,xe])=>{"string"==typeof xe&&(xe=[xe]),null!==xe&&(L[pe]=we(E.children[pe],b,xe))}),Object.entries(E.children).forEach(([pe,xe])=>{void 0===D[pe]&&(L[pe]=xe)}),new rr(E.segments,L)}}function nn(E,b,N){const D=E.segments.slice(0,b);let L=0;for(;L{"string"==typeof D&&(D=[D]),null!==D&&(b[N]=nn(new rr([],{}),0,D))}),b}function pr(E){const b={};return Object.entries(E).forEach(([N,D])=>b[N]=`${D}`),b}function qn(E,b,N){return E==N.path&&cr(b,N.parameters)}const Sr="imperative";var jn=function(E){return E[E.NavigationStart=0]="NavigationStart",E[E.NavigationEnd=1]="NavigationEnd",E[E.NavigationCancel=2]="NavigationCancel",E[E.NavigationError=3]="NavigationError",E[E.RoutesRecognized=4]="RoutesRecognized",E[E.ResolveStart=5]="ResolveStart",E[E.ResolveEnd=6]="ResolveEnd",E[E.GuardsCheckStart=7]="GuardsCheckStart",E[E.GuardsCheckEnd=8]="GuardsCheckEnd",E[E.RouteConfigLoadStart=9]="RouteConfigLoadStart",E[E.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",E[E.ChildActivationStart=11]="ChildActivationStart",E[E.ChildActivationEnd=12]="ChildActivationEnd",E[E.ActivationStart=13]="ActivationStart",E[E.ActivationEnd=14]="ActivationEnd",E[E.Scroll=15]="Scroll",E[E.NavigationSkipped=16]="NavigationSkipped",E}(jn||{});class zr{constructor(b,N){this.id=b,this.url=N}}class $r extends zr{constructor(b,N,D="imperative",L=null){super(b,N),this.type=jn.NavigationStart,this.navigationTrigger=D,this.restoredState=L}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class Pr extends zr{constructor(b,N,D){super(b,N),this.urlAfterRedirects=D,this.type=jn.NavigationEnd}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}var Nr=function(E){return E[E.Redirect=0]="Redirect",E[E.SupersededByNewNavigation=1]="SupersededByNewNavigation",E[E.NoDataFromResolver=2]="NoDataFromResolver",E[E.GuardRejected=3]="GuardRejected",E}(Nr||{}),er=function(E){return E[E.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",E[E.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",E}(er||{});class Rr extends zr{constructor(b,N,D,L){super(b,N),this.reason=D,this.code=L,this.type=jn.NavigationCancel}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class di extends zr{constructor(b,N,D,L){super(b,N),this.reason=D,this.code=L,this.type=jn.NavigationSkipped}}class hi extends zr{constructor(b,N,D,L){super(b,N),this.error=D,this.target=L,this.type=jn.NavigationError}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class Yr extends zr{constructor(b,N,D,L){super(b,N),this.urlAfterRedirects=D,this.state=L,this.type=jn.RoutesRecognized}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Hr extends zr{constructor(b,N,D,L){super(b,N),this.urlAfterRedirects=D,this.state=L,this.type=jn.GuardsCheckStart}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class _i extends zr{constructor(b,N,D,L,pe){super(b,N),this.urlAfterRedirects=D,this.state=L,this.shouldActivate=pe,this.type=jn.GuardsCheckEnd}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class tr extends zr{constructor(b,N,D,L){super(b,N),this.urlAfterRedirects=D,this.state=L,this.type=jn.ResolveStart}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class Zn extends zr{constructor(b,N,D,L){super(b,N),this.urlAfterRedirects=D,this.state=L,this.type=jn.ResolveEnd}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class mo{constructor(b){this.route=b,this.type=jn.RouteConfigLoadStart}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class fi{constructor(b){this.route=b,this.type=jn.RouteConfigLoadEnd}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class yi{constructor(b){this.snapshot=b,this.type=jn.ChildActivationStart}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class vo{constructor(b){this.snapshot=b,this.type=jn.ChildActivationEnd}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class bo{constructor(b){this.snapshot=b,this.type=jn.ActivationStart}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class ui{constructor(b){this.snapshot=b,this.type=jn.ActivationEnd}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class Pt{constructor(b,N,D){this.routerEvent=b,this.position=N,this.anchor=D,this.type=jn.Scroll}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}class ge{}class fe{constructor(b){this.url=b}}class je{constructor(){this.outlet=null,this.route=null,this.injector=null,this.children=new Be,this.attachRef=null}}let Be=(()=>{var E;class b{constructor(){this.contexts=new Map}onChildOutletCreated(D,L){const pe=this.getOrCreateContext(D);pe.outlet=L,this.contexts.set(D,pe)}onChildOutletDestroyed(D){const L=this.getContext(D);L&&(L.outlet=null,L.attachRef=null)}onOutletDeactivated(){const D=this.contexts;return this.contexts=new Map,D}onOutletReAttached(D){this.contexts=D}getOrCreateContext(D){let L=this.getContext(D);return L||(L=new je,this.contexts.set(D,L)),L}getContext(D){return this.contexts.get(D)||null}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();class ct{constructor(b){this._root=b}get root(){return this._root.value}parent(b){const N=this.pathFromRoot(b);return N.length>1?N[N.length-2]:null}children(b){const N=Kt(b,this._root);return N?N.children.map(D=>D.value):[]}firstChild(b){const N=Kt(b,this._root);return N&&N.children.length>0?N.children[0].value:null}siblings(b){const N=Dn(b,this._root);return N.length<2?[]:N[N.length-2].children.map(L=>L.value).filter(L=>L!==b)}pathFromRoot(b){return Dn(b,this._root).map(N=>N.value)}}function Kt(E,b){if(E===b.value)return b;for(const N of b.children){const D=Kt(E,N);if(D)return D}return null}function Dn(E,b){if(E===b.value)return[b];for(const N of b.children){const D=Dn(E,N);if(D.length)return D.unshift(b),D}return[]}class Hn{constructor(b,N){this.value=b,this.children=N}toString(){return`TreeNode(${this.value})`}}function w(E){const b={};return E&&E.children.forEach(N=>b[N.value.outlet]=N),b}class H extends ct{constructor(b,N){super(b),this.snapshot=N,W(this,b)}toString(){return this.snapshot.toString()}}function oe(E){const b=function P(E){const pe=new vr([],{},{},"",{},Je,E,null,{});return new ai("",new Hn(pe,[]))}(E),N=new he.t([new Mr("",{})]),D=new he.t({}),L=new he.t({}),pe=new he.t({}),xe=new he.t(""),Ft=new Ce(N,D,pe,xe,L,Je,E,b.root);return Ft.snapshot=b.root,new H(new Hn(Ft,[]),b)}class Ce{constructor(b,N,D,L,pe,xe,Ft,An){var Wt,Qn;this.urlSubject=b,this.paramsSubject=N,this.queryParamsSubject=D,this.fragmentSubject=L,this.dataSubject=pe,this.outlet=xe,this.component=Ft,this._futureSnapshot=An,this.title=null!==(Wt=null===(Qn=this.dataSubject)||void 0===Qn?void 0:Qn.pipe((0,_e.T)(Xr=>Xr[Sn])))&&void 0!==Wt?Wt:(0,$.of)(void 0),this.url=b,this.params=N,this.queryParams=D,this.fragment=L,this.data=pe}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){var b;return null!==(b=this._paramMap)&&void 0!==b||(this._paramMap=this.params.pipe((0,_e.T)(N=>On(N)))),this._paramMap}get queryParamMap(){var b;return null!==(b=this._queryParamMap)&&void 0!==b||(this._queryParamMap=this.queryParams.pipe((0,_e.T)(N=>On(N)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function dt(E,b,N="emptyOnly"){var D;let L;const{routeConfig:pe}=E;var xe;return L=null===b||"always"!==N&&""!==(null==pe?void 0:pe.path)&&(b.component||null!==(D=b.routeConfig)&&void 0!==D&&D.loadComponent)?{params:{...E.params},data:{...E.data},resolve:{...E.data,...null!==(xe=E._resolvedData)&&void 0!==xe?xe:{}}}:{params:{...b.params,...E.params},data:{...b.data,...E.data},resolve:{...E.data,...b.data,...null==pe?void 0:pe.data,...E._resolvedData}},pe&&Ot(pe)&&(L.resolve[Sn]=pe.title),L}class vr{get title(){var b;return null===(b=this.data)||void 0===b?void 0:b[Sn]}constructor(b,N,D,L,pe,xe,Ft,An,Wt){this.url=b,this.params=N,this.queryParams=D,this.fragment=L,this.data=pe,this.outlet=xe,this.component=Ft,this.routeConfig=An,this._resolve=Wt}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){var b;return null!==(b=this._paramMap)&&void 0!==b||(this._paramMap=On(this.params)),this._paramMap}get queryParamMap(){var b;return null!==(b=this._queryParamMap)&&void 0!==b||(this._queryParamMap=On(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(D=>D.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class ai extends ct{constructor(b,N){super(N),this.url=b,W(this,N)}toString(){return ye(this._root)}}function W(E,b){b.value._routerState=E,b.children.forEach(N=>W(E,N))}function ye(E){const b=E.children.length>0?` { ${E.children.map(ye).join(", ")} } `:"";return`${E.value}${b}`}function Fe(E){if(E.snapshot){const b=E.snapshot,N=E._futureSnapshot;E.snapshot=N,cr(b.queryParams,N.queryParams)||E.queryParamsSubject.next(N.queryParams),b.fragment!==N.fragment&&E.fragmentSubject.next(N.fragment),cr(b.params,N.params)||E.paramsSubject.next(N.params),function gr(E,b){if(E.length!==b.length)return!1;for(let N=0;Ncr(N.parameters,b[D].parameters))}(E.url,b.url);return N&&!(!E.parent!=!b.parent)&&(!E.parent||ot(E.parent,b.parent))}function Ot(E){return"string"==typeof E.title||null===E.title}let wt=(()=>{var E;class b{constructor(){this.activated=null,this._activatedRoute=null,this.name=Je,this.activateEvents=new c.bkB,this.deactivateEvents=new c.bkB,this.attachEvents=new c.bkB,this.detachEvents=new c.bkB,this.parentContexts=(0,c.WQX)(Be),this.location=(0,c.WQX)(c.c1b),this.changeDetector=(0,c.WQX)(c.gRc),this.environmentInjector=(0,c.WQX)(c.uvJ),this.inputBinder=(0,c.WQX)(pn,{optional:!0}),this.supportsBindingToComponentInputs=!0}get activatedComponentRef(){return this.activated}ngOnChanges(D){if(D.name){const{firstChange:L,previousValue:pe}=D.name;if(L)return;this.isTrackedInParentContexts(pe)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(pe)),this.initializeOutletWithName()}}ngOnDestroy(){var D;this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),null===(D=this.inputBinder)||void 0===D||D.unsubscribeFromRouteData(this)}isTrackedInParentContexts(D){var L;return(null===(L=this.parentContexts.getContext(D))||void 0===L?void 0:L.outlet)===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;const D=this.parentContexts.getContext(this.name);null!=D&&D.route&&(D.attachRef?this.attach(D.attachRef,D.route):this.activateWith(D.route,D.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new c.wOt(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new c.wOt(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new c.wOt(4012,!1);this.location.detach();const D=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(D.instance),D}attach(D,L){var pe;this.activated=D,this._activatedRoute=L,this.location.insert(D.hostView),null===(pe=this.inputBinder)||void 0===pe||pe.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(D.instance)}deactivate(){if(this.activated){const D=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(D)}}activateWith(D,L){var pe;if(this.isActivated)throw new c.wOt(4013,!1);this._activatedRoute=D;const xe=this.location,An=D.snapshot.component,Wt=this.parentContexts.getOrCreateContext(this.name).children,Qn=new en(D,Wt,xe.injector);this.activated=xe.createComponent(An,{index:xe.length,injector:Qn,environmentInjector:null!=L?L:this.environmentInjector}),this.changeDetector.markForCheck(),null===(pe=this.inputBinder)||void 0===pe||pe.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275dir=c.FsC({type:E,selectors:[["router-outlet"]],inputs:{name:"name"},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],standalone:!0,features:[c.OA$]}),b})();class en{__ngOutletInjector(b){return new en(this.route,this.childContexts,b)}constructor(b,N,D){this.route=b,this.childContexts=N,this.parent=D}get(b,N){return b===Ce?this.route:b===Be?this.childContexts:this.parent.get(b,N)}}const pn=new c.nKC("");let vn=(()=>{var E;class b{constructor(){this.outletDataSubscriptions=new Map}bindActivatedRouteToOutletComponent(D){this.unsubscribeFromRouteData(D),this.subscribeToRouteData(D)}unsubscribeFromRouteData(D){var L;null===(L=this.outletDataSubscriptions.get(D))||void 0===L||L.unsubscribe(),this.outletDataSubscriptions.delete(D)}subscribeToRouteData(D){const{activatedRoute:L}=D,pe=(0,ae.z)([L.queryParams,L.params,L.data]).pipe((0,$e.n)(([xe,Ft,An],Wt)=>(An={...xe,...Ft,...An},0===Wt?(0,$.of)(An):Promise.resolve(An)))).subscribe(xe=>{if(!D.isActivated||!D.activatedComponentRef||D.activatedRoute!==L||null===L.component)return void this.unsubscribeFromRouteData(D);const Ft=(0,c.HJs)(L.component);if(Ft)for(const{templateName:An}of Ft.inputs)D.activatedComponentRef.setInput(An,xe[An]);else this.unsubscribeFromRouteData(D)});this.outletDataSubscriptions.set(D,pe)}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac}),b})();function Gn(E,b,N){if(N&&E.shouldReuseRoute(b.value,N.value.snapshot)){const D=N.value;D._futureSnapshot=b.value;const L=function Yn(E,b,N){return b.children.map(D=>{for(const L of N.children)if(E.shouldReuseRoute(D.value,L.value.snapshot))return Gn(E,D,L);return Gn(E,D)})}(E,b,N);return new Hn(D,L)}{if(E.shouldAttach(b.value)){const pe=E.retrieve(b.value);if(null!==pe){const xe=pe.route;return xe.value._futureSnapshot=b.value,xe.children=b.children.map(Ft=>Gn(E,Ft)),xe}}const D=function _r(E){return new Ce(new he.t(E.url),new he.t(E.params),new he.t(E.queryParams),new he.t(E.fragment),new he.t(E.data),E.outlet,E.component,E)}(b.value),L=b.children.map(pe=>Gn(E,pe));return new Hn(D,L)}}const Kn="ngNavigationCancelingError";function Qr(E,b){const{redirectTo:N,navigationBehaviorOptions:D}=fr(b)?{redirectTo:b,navigationBehaviorOptions:void 0}:b,L=Wr(!1,Nr.Redirect);return L.url=N,L.navigationBehaviorOptions=D,L}function Wr(E,b){const N=new Error(`NavigationCancelingError: ${E||""}`);return N[Kn]=!0,N.cancellationCode=b,N}function ki(E){return!!E&&E[Kn]}let Fi=(()=>{var E;class b{}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275cmp=c.VBU({type:E,selectors:[["ng-component"]],standalone:!0,features:[c.aNF],decls:1,vars:0,template:function(D,L){1&D&&c.nrm(0,"router-outlet")},dependencies:[wt],encapsulation:2}),b})();function ws(E){const b=E.children&&E.children.map(ws),N=b?{...E,children:b}:{...E};return!N.component&&!N.loadComponent&&(b||N.loadChildren)&&N.outlet&&N.outlet!==Je&&(N.component=Fi),N}function ho(E){return E.outlet||Je}function Jr(E){var b;if(!E)return null;if(null!==(b=E.routeConfig)&&void 0!==b&&b._injector)return E.routeConfig._injector;for(let N=E.parent;N;N=N.parent){const D=N.routeConfig;if(null!=D&&D._loadedInjector)return D._loadedInjector;if(null!=D&&D._injector)return D._injector}return null}class Ss{constructor(b,N,D,L,pe){this.routeReuseStrategy=b,this.futureState=N,this.currState=D,this.forwardEvent=L,this.inputBindingEnabled=pe}activate(b){const N=this.futureState._root,D=this.currState?this.currState._root:null;this.deactivateChildRoutes(N,D,b),Fe(this.futureState.root),this.activateChildRoutes(N,D,b)}deactivateChildRoutes(b,N,D){const L=w(N);b.children.forEach(pe=>{const xe=pe.value.outlet;this.deactivateRoutes(pe,L[xe],D),delete L[xe]}),Object.values(L).forEach(pe=>{this.deactivateRouteAndItsChildren(pe,D)})}deactivateRoutes(b,N,D){const L=b.value,pe=N?N.value:null;if(L===pe)if(L.component){const xe=D.getContext(L.outlet);xe&&this.deactivateChildRoutes(b,N,xe.children)}else this.deactivateChildRoutes(b,N,D);else pe&&this.deactivateRouteAndItsChildren(N,D)}deactivateRouteAndItsChildren(b,N){b.value.component&&this.routeReuseStrategy.shouldDetach(b.value.snapshot)?this.detachAndStoreRouteSubtree(b,N):this.deactivateRouteAndOutlet(b,N)}detachAndStoreRouteSubtree(b,N){const D=N.getContext(b.value.outlet),L=D&&b.value.component?D.children:N,pe=w(b);for(const xe of Object.values(pe))this.deactivateRouteAndItsChildren(xe,L);if(D&&D.outlet){const xe=D.outlet.detach(),Ft=D.children.onOutletDeactivated();this.routeReuseStrategy.store(b.value.snapshot,{componentRef:xe,route:b,contexts:Ft})}}deactivateRouteAndOutlet(b,N){const D=N.getContext(b.value.outlet),L=D&&b.value.component?D.children:N,pe=w(b);for(const xe of Object.values(pe))this.deactivateRouteAndItsChildren(xe,L);D&&(D.outlet&&(D.outlet.deactivate(),D.children.onOutletDeactivated()),D.attachRef=null,D.route=null)}activateChildRoutes(b,N,D){const L=w(N);b.children.forEach(pe=>{this.activateRoutes(pe,L[pe.value.outlet],D),this.forwardEvent(new ui(pe.value.snapshot))}),b.children.length&&this.forwardEvent(new vo(b.value.snapshot))}activateRoutes(b,N,D){const L=b.value,pe=N?N.value:null;if(Fe(L),L===pe)if(L.component){const xe=D.getOrCreateContext(L.outlet);this.activateChildRoutes(b,N,xe.children)}else this.activateChildRoutes(b,N,D);else if(L.component){const xe=D.getOrCreateContext(L.outlet);if(this.routeReuseStrategy.shouldAttach(L.snapshot)){const Ft=this.routeReuseStrategy.retrieve(L.snapshot);this.routeReuseStrategy.store(L.snapshot,null),xe.children.onOutletReAttached(Ft.contexts),xe.attachRef=Ft.componentRef,xe.route=Ft.route.value,xe.outlet&&xe.outlet.attach(Ft.componentRef,Ft.route.value),Fe(Ft.route.value),this.activateChildRoutes(b,null,xe.children)}else{const Ft=Jr(L.snapshot);xe.attachRef=null,xe.route=L,xe.injector=Ft,xe.outlet&&xe.outlet.activateWith(L,xe.injector),this.activateChildRoutes(b,null,xe.children)}}else this.activateChildRoutes(b,null,D)}}class Us{constructor(b){this.path=b,this.route=this.path[this.path.length-1]}}class Rs{constructor(b,N){this.component=b,this.route=N}}function Zo(E,b,N){const D=E._root;return us(D,b?b._root:null,N,[D.value])}function Xo(E,b){const N=Symbol(),D=b.get(E,N);return D===N?"function"!=typeof E||(0,c.LfX)(E)?b.get(E):E:D}function us(E,b,N,D,L={canDeactivateChecks:[],canActivateChecks:[]}){const pe=w(b);return E.children.forEach(xe=>{(function Ms(E,b,N,D,L={canDeactivateChecks:[],canActivateChecks:[]}){const pe=E.value,xe=b?b.value:null,Ft=N?N.getContext(E.value.outlet):null;if(xe&&pe.routeConfig===xe.routeConfig){const An=function ne(E,b,N){if("function"==typeof N)return N(E,b);switch(N){case"pathParamsChange":return!ii(E.url,b.url);case"pathParamsOrQueryParamsChange":return!ii(E.url,b.url)||!cr(E.queryParams,b.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!ot(E,b)||!cr(E.queryParams,b.queryParams);default:return!ot(E,b)}}(xe,pe,pe.routeConfig.runGuardsAndResolvers);An?L.canActivateChecks.push(new Us(D)):(pe.data=xe.data,pe._resolvedData=xe._resolvedData),us(E,b,pe.component?Ft?Ft.children:null:N,D,L),An&&Ft&&Ft.outlet&&Ft.outlet.isActivated&&L.canDeactivateChecks.push(new Rs(Ft.outlet.component,xe))}else xe&&ee(b,Ft,L),L.canActivateChecks.push(new Us(D)),us(E,null,pe.component?Ft?Ft.children:null:N,D,L)})(xe,pe[xe.value.outlet],N,D.concat([xe.value]),L),delete pe[xe.value.outlet]}),Object.entries(pe).forEach(([xe,Ft])=>ee(Ft,N.getContext(xe),L)),L}function ee(E,b,N){const D=w(E),L=E.value;Object.entries(D).forEach(([pe,xe])=>{ee(xe,L.component?b?b.children.getContext(pe):null:b,N)}),N.canDeactivateChecks.push(new Rs(L.component&&b&&b.outlet&&b.outlet.isActivated?b.outlet.component:null,L))}function qe(E){return"function"==typeof E}function z(E){return E instanceof Xe.G||"EmptyError"===(null==E?void 0:E.name)}const Pe=Symbol("INITIAL_VALUE");function an(){return(0,$e.n)(E=>(0,ae.z)(E.map(b=>b.pipe((0,Le.s)(1),(0,Oe.Z)(Pe)))).pipe((0,_e.T)(b=>{for(const N of b)if(!0!==N){if(N===Pe)return Pe;if(!1===N||N instanceof Vr)return N}return!0}),(0,Ct.p)(b=>b!==Pe),(0,Le.s)(1)))}function qo(E){return(0,it.F)((0,st.M)(b=>{if(fr(b))throw Qr(0,b)}),(0,_e.T)(b=>!0===b))}class ys{constructor(b){this.segmentGroup=b||null}}class Eo extends Error{constructor(b){super(),this.urlTree=b}}function ko(E){return at(new ys(E))}class So{constructor(b,N){this.urlSerializer=b,this.urlTree=N}lineralizeSegments(b,N){let D=[],L=N.root;for(;;){if(D=D.concat(L.segments),0===L.numberOfChildren)return(0,$.of)(D);if(L.numberOfChildren>1||!L.children[Je])return at(new c.wOt(4e3,!1));L=L.children[Je]}}applyRedirectCommands(b,N,D){const L=this.applyRedirectCreateUrlTree(N,this.urlSerializer.parse(N),b,D);if(N.startsWith("/"))throw new Eo(L);return L}applyRedirectCreateUrlTree(b,N,D,L){const pe=this.createSegmentGroup(b,N.root,D,L);return new Vr(pe,this.createQueryParams(N.queryParams,this.urlTree.queryParams),N.fragment)}createQueryParams(b,N){const D={};return Object.entries(b).forEach(([L,pe])=>{if("string"==typeof pe&&pe.startsWith(":")){const Ft=pe.substring(1);D[L]=N[Ft]}else D[L]=pe}),D}createSegmentGroup(b,N,D,L){const pe=this.createSegments(b,N.segments,D,L);let xe={};return Object.entries(N.children).forEach(([Ft,An])=>{xe[Ft]=this.createSegmentGroup(b,An,D,L)}),new rr(pe,xe)}createSegments(b,N,D,L){return N.map(pe=>pe.path.startsWith(":")?this.findPosParam(b,pe,L):this.findOrReturn(pe,D))}findPosParam(b,N,D){const L=D[N.path.substring(1)];if(!L)throw new c.wOt(4001,!1);return L}findOrReturn(b,N){let D=0;for(const L of N){if(L.path===b.path)return N.splice(D),L;D++}return b}}const Li={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function Ba(E,b,N,D,L){const pe=es(E,b,N);return pe.matched?(D=function Bi(E,b){var N;return E.providers&&!E._injector&&(E._injector=(0,c.Ol2)(E.providers,b,`Route: ${E.path}`)),null!==(N=E._injector)&&void 0!==N?N:b}(b,D),function cs(E,b,N,D){const L=b.canMatch;if(!L||0===L.length)return(0,$.of)(!0);const pe=L.map(xe=>{const Ft=Xo(xe,E);return Xt(function se(E){return E&&qe(E.canMatch)}(Ft)?Ft.canMatch(b,N):(0,c.N4e)(E,()=>Ft(b,N)))});return(0,$.of)(pe).pipe(an(),qo())}(D,b,N).pipe((0,_e.T)(xe=>!0===xe?pe:{...Li}))):(0,$.of)(pe)}function es(E,b,N){var D,L;if("**"===b.path)return function Ps(E){return{matched:!0,parameters:E.length>0?Lt(E).parameters:{},consumedSegments:E,remainingSegments:[],positionalParamSegments:{}}}(N);if(""===b.path)return"full"===b.pathMatch&&(E.hasChildren()||N.length>0)?{...Li}:{matched:!0,consumedSegments:[],remainingSegments:N,parameters:{},positionalParamSegments:{}};const xe=(b.matcher||or)(N,E,b);if(!xe)return{...Li};const Ft={};Object.entries(null!==(D=xe.posParams)&&void 0!==D?D:{}).forEach(([Wt,Qn])=>{Ft[Wt]=Qn.path});const An=xe.consumed.length>0?{...Ft,...xe.consumed[xe.consumed.length-1].parameters}:Ft;return{matched:!0,consumedSegments:xe.consumed,remainingSegments:N.slice(xe.consumed.length),parameters:An,positionalParamSegments:null!==(L=xe.posParams)&&void 0!==L?L:{}}}function cl(E,b,N,D){return N.length>0&&function Zs(E,b,N){return N.some(D=>xs(E,b,D)&&ho(D)!==Je)}(E,N,D)?{segmentGroup:new rr(b,dl(D,new rr(N,E.children))),slicedSegments:[]}:0===N.length&&function Ua(E,b,N){return N.some(D=>xs(E,b,D))}(E,N,D)?{segmentGroup:new rr(E.segments,ei(E,N,D,E.children)),slicedSegments:N}:{segmentGroup:new rr(E.segments,E.children),slicedSegments:N}}function ei(E,b,N,D){const L={};for(const pe of N)if(xs(E,b,pe)&&!D[ho(pe)]){const xe=new rr([],{});L[ho(pe)]=xe}return{...D,...L}}function dl(E,b){const N={};N[Je]=b;for(const D of E)if(""===D.path&&ho(D)!==Je){const L=new rr([],{});N[ho(D)]=L}return N}function xs(E,b,N){return(!(E.hasChildren()||b.length>0)||"full"!==N.pathMatch)&&""===N.path}class Ul{}class Os{constructor(b,N,D,L,pe,xe,Ft){this.injector=b,this.configLoader=N,this.rootComponentType=D,this.config=L,this.urlTree=pe,this.paramsInheritanceStrategy=xe,this.urlSerializer=Ft,this.applyRedirects=new So(this.urlSerializer,this.urlTree),this.absoluteRedirectCount=0,this.allowRedirects=!0}noMatchError(b){return new c.wOt(4002,`'${b.segmentGroup}'`)}recognize(){const b=cl(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(b).pipe((0,_e.T)(N=>{const D=new vr([],Object.freeze({}),Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,{},Je,this.rootComponentType,null,{}),L=new Hn(D,N),pe=new ai("",L),xe=function Ur(E,b,N=null,D=null){return Ir(oi(E),b,N,D)}(D,[],this.urlTree.queryParams,this.urlTree.fragment);return xe.queryParams=this.urlTree.queryParams,pe.url=this.urlSerializer.serialize(xe),this.inheritParamsAndData(pe._root,null),{state:pe,tree:xe}}))}match(b){return this.processSegmentGroup(this.injector,this.config,b,Je).pipe(cn(D=>{if(D instanceof Eo)return this.urlTree=D.urlTree,this.match(D.urlTree.root);throw D instanceof ys?this.noMatchError(D):D}))}inheritParamsAndData(b,N){const D=b.value,L=dt(D,N,this.paramsInheritanceStrategy);D.params=Object.freeze(L.params),D.data=Object.freeze(L.data),b.children.forEach(pe=>this.inheritParamsAndData(pe,D))}processSegmentGroup(b,N,D,L){return 0===D.segments.length&&D.hasChildren()?this.processChildren(b,N,D):this.processSegment(b,N,D,D.segments,L,!0).pipe((0,_e.T)(pe=>pe instanceof Hn?[pe]:[]))}processChildren(b,N,D){const L=[];for(const pe of Object.keys(D.children))"primary"===pe?L.unshift(pe):L.push(pe);return(0,ke.H)(L).pipe((0,At.H)(pe=>{const xe=D.children[pe],Ft=function Uo(E,b){const N=E.filter(D=>ho(D)===b);return N.push(...E.filter(D=>ho(D)!==b)),N}(N,pe);return this.processSegmentGroup(b,Ft,xe,pe)}),function Re(E,b){return(0,Dt.N)(function vt(E,b,N,D,L){return(pe,xe)=>{let Ft=N,An=b,Wt=0;pe.subscribe((0,zt._)(xe,Qn=>{const Xr=Wt++;An=Ft?E(An,Qn,Xr):(Ft=!0,Qn),D&&xe.next(An)},L&&(()=>{Ft&&xe.next(An),xe.complete()})))}}(E,b,arguments.length>=2,!0))}((pe,xe)=>(pe.push(...xe),pe)),(0,G.U)(null),function Ee(E,b){const N=arguments.length>=2;return D=>D.pipe(E?(0,Ct.p)((L,pe)=>E(L,pe,D)):ue.D,X(1),N?(0,G.U)(b):(0,ce.v)(()=>new Xe.G))}(),(0,kt.Z)(pe=>{if(null===pe)return ko(D);const xe=Ns(pe);return function $s(E){E.sort((b,N)=>b.value.outlet===Je?-1:N.value.outlet===Je?1:b.value.outlet.localeCompare(N.value.outlet))}(xe),(0,$.of)(xe)}))}processSegment(b,N,D,L,pe,xe){return(0,ke.H)(N).pipe((0,At.H)(Ft=>{var An;return this.processSegmentAgainstRoute(null!==(An=Ft._injector)&&void 0!==An?An:b,N,Ft,D,L,pe,xe).pipe(cn(Wt=>{if(Wt instanceof ys)return(0,$.of)(null);throw Wt}))}),(0,Cn.$)(Ft=>!!Ft),cn(Ft=>{if(z(Ft))return function $a(E,b,N){return 0===b.length&&!E.children[N]}(D,L,pe)?(0,$.of)(new Ul):ko(D);throw Ft}))}processSegmentAgainstRoute(b,N,D,L,pe,xe,Ft){return function hl(E,b,N,D){return!!(ho(E)===D||D!==Je&&xs(b,N,E))&&es(b,E,N).matched}(D,L,pe,xe)?void 0===D.redirectTo?this.matchSegmentAgainstRoute(b,L,D,pe,xe):this.allowRedirects&&Ft?this.expandSegmentAgainstRouteUsingRedirect(b,L,N,D,pe,xe):ko(L):ko(L)}expandSegmentAgainstRouteUsingRedirect(b,N,D,L,pe,xe){const{matched:Ft,consumedSegments:An,positionalParamSegments:Wt,remainingSegments:Qn}=es(N,L,pe);if(!Ft)return ko(N);L.redirectTo.startsWith("/")&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>31&&(this.allowRedirects=!1));const Xr=this.applyRedirects.applyRedirectCommands(An,L.redirectTo,Wt);return this.applyRedirects.lineralizeSegments(L,Xr).pipe((0,kt.Z)(Ji=>this.processSegment(b,D,N,Ji.concat(Qn),xe,!1)))}matchSegmentAgainstRoute(b,N,D,L,pe){const xe=Ba(N,D,L,b);return"**"===D.path&&(N.children={}),xe.pipe((0,$e.n)(Ft=>{var An;return Ft.matched?(b=null!==(An=D._injector)&&void 0!==An?An:b,this.getChildConfig(b,D,L).pipe((0,$e.n)(({routes:Wt})=>{var Qn,Xr,Ji;const Ri=null!==(Qn=D._loadedInjector)&&void 0!==Qn?Qn:b,{consumedSegments:fo,remainingSegments:oa,parameters:Wa}=Ft,Ka=new vr(fo,Wa,Object.freeze({...this.urlTree.queryParams}),this.urlTree.fragment,function hs(E){return E.data||{}}(D),ho(D),null!==(Xr=null!==(Ji=D.component)&&void 0!==Ji?Ji:D._loadedComponent)&&void 0!==Xr?Xr:null,D,function Ru(E){return E.resolve||{}}(D)),{segmentGroup:Hs,slicedSegments:As}=cl(N,fo,oa,Wt);if(0===As.length&&Hs.hasChildren())return this.processChildren(Ri,Wt,Hs).pipe((0,_e.T)(Xa=>null===Xa?null:new Hn(Ka,Xa)));if(0===Wt.length&&0===As.length)return(0,$.of)(new Hn(Ka,[]));const Ra=ho(D)===pe;return this.processSegment(Ri,Wt,Hs,As,Ra?Je:pe,!0).pipe((0,_e.T)(Xa=>new Hn(Ka,Xa instanceof Hn?[Xa]:[])))}))):ko(N)}))}getChildConfig(b,N,D){return N.children?(0,$.of)({routes:N.children,injector:b}):N.loadChildren?void 0!==N._loadedRoutes?(0,$.of)({routes:N._loadedRoutes,injector:N._loadedInjector}):function Qi(E,b,N,D){const L=b.canLoad;if(void 0===L||0===L.length)return(0,$.of)(!0);const pe=L.map(xe=>{const Ft=Xo(xe,E);return Xt(function Vt(E){return E&&qe(E.canLoad)}(Ft)?Ft.canLoad(b,N):(0,c.N4e)(E,()=>Ft(b,N)))});return(0,$.of)(pe).pipe(an(),qo())}(b,N,D).pipe((0,kt.Z)(L=>L?this.configLoader.loadChildren(b,N).pipe((0,st.M)(pe=>{N._loadedRoutes=pe.routes,N._loadedInjector=pe.injector})):function eo(E){return at(Wr(!1,Nr.GuardRejected))}())):(0,$.of)({routes:[],injector:b})}}function ds(E){const b=E.value.routeConfig;return b&&""===b.path}function Ns(E){const b=[],N=new Set;for(const D of E){if(!ds(D)){b.push(D);continue}const L=b.find(pe=>D.value.routeConfig===pe.value.routeConfig);void 0!==L?(L.children.push(...D.children),N.add(L)):b.push(D)}for(const D of N){const L=Ns(D.children);b.push(new Hn(D.value,L))}return b.filter(D=>!N.has(D))}function Qo(E){const b=E.children.map(N=>Qo(N)).flat();return[E,...b]}function ja(E){return(0,$e.n)(b=>{const N=E(b);return N?(0,ke.H)(N).pipe((0,_e.T)(()=>b)):(0,$.of)(b)})}let Ea=(()=>{var E;class b{buildTitle(D){let L,pe=D.root;for(;void 0!==pe;){var xe;L=null!==(xe=this.getResolvedTitleForRoute(pe))&&void 0!==xe?xe:L,pe=pe.children.find(Ft=>Ft.outlet===Je)}return L}getResolvedTitleForRoute(D){return D.data[Sn]}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(za),providedIn:"root"}),b})(),za=(()=>{var E;class b extends Ea{constructor(D){super(),this.title=D}updateTitle(D){const L=this.buildTitle(D);void 0!==L&&this.title.setTitle(L)}}return(E=b).\u0275fac=function(D){return new(D||E)(c.KVO(un.hE))},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();const ts=new c.nKC("",{providedIn:"root",factory:()=>({})}),Ia=new c.nKC("");let Aa=(()=>{var E;class b{constructor(){this.componentLoaders=new WeakMap,this.childrenLoaders=new WeakMap,this.compiler=(0,c.WQX)(c.Ql9)}loadComponent(D){if(this.componentLoaders.get(D))return this.componentLoaders.get(D);if(D._loadedComponent)return(0,$.of)(D._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(D);const L=Xt(D.loadComponent()).pipe((0,_e.T)(Gl),(0,st.M)(xe=>{this.onLoadEndListener&&this.onLoadEndListener(D),D._loadedComponent=xe}),(0,ut.j)(()=>{this.componentLoaders.delete(D)})),pe=new It(L,()=>new Te.B).pipe(Tt());return this.componentLoaders.set(D,pe),pe}loadChildren(D,L){if(this.childrenLoaders.get(L))return this.childrenLoaders.get(L);if(L._loadedRoutes)return(0,$.of)({routes:L._loadedRoutes,injector:L._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(L);const xe=function ea(E,b,N,D){return Xt(E.loadChildren()).pipe((0,_e.T)(Gl),(0,kt.Z)(L=>L instanceof c.Co$||Array.isArray(L)?(0,$.of)(L):(0,ke.H)(b.compileModuleAsync(L))),(0,_e.T)(L=>{D&&D(E);let pe,xe,Ft=!1;return Array.isArray(L)?(xe=L,!0):(pe=L.create(N).injector,xe=pe.get(Ia,[],{optional:!0,self:!0}).flat()),{routes:xe.map(ws),injector:pe}}))}(L,this.compiler,D,this.onLoadEndListener).pipe((0,ut.j)(()=>{this.childrenLoaders.delete(L)})),Ft=new It(xe,()=>new Te.B).pipe(Tt());return this.childrenLoaders.set(L,Ft),Ft}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();function Gl(E){return function Co(E){return E&&"object"==typeof E&&"default"in E}(E)?E.default:E}let Ca=(()=>{var E;class b{}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(T),providedIn:"root"}),b})(),T=(()=>{var E;class b{shouldProcessUrl(D){return!0}extract(D){return D}merge(D,L){return D}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();const j=new c.nKC(""),Ue=new c.nKC("");function F(E,b,N){const D=E.get(Ue),L=E.get(Ze.qQ);return E.get(c.SKi).runOutsideAngular(()=>{if(!L.startViewTransition||D.skipNextTransition)return D.skipNextTransition=!1,new Promise(Wt=>setTimeout(Wt));let pe;const xe=new Promise(Wt=>{pe=Wt}),Ft=L.startViewTransition(()=>(pe(),function De(E){return new Promise(b=>{(0,c.mal)(b,{injector:E})})}(E))),{onViewTransitionCreated:An}=D;return An&&(0,c.N4e)(E,()=>An({transition:Ft,from:b,to:N})),xe})}let Qe=(()=>{var E;class b{get hasRequestedNavigation(){return 0!==this.navigationId}constructor(){this.currentNavigation=null,this.currentTransition=null,this.lastSuccessfulNavigation=null,this.events=new Te.B,this.transitionAbortSubject=new Te.B,this.configLoader=(0,c.WQX)(Aa),this.environmentInjector=(0,c.WQX)(c.uvJ),this.urlSerializer=(0,c.WQX)(yr),this.rootContexts=(0,c.WQX)(Be),this.location=(0,c.WQX)(Ze.aZ),this.inputBindingEnabled=null!==(0,c.WQX)(pn,{optional:!0}),this.titleStrategy=(0,c.WQX)(Ea),this.options=(0,c.WQX)(ts,{optional:!0})||{},this.paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly",this.urlHandlingStrategy=(0,c.WQX)(Ca),this.createViewTransition=(0,c.WQX)(j,{optional:!0}),this.navigationId=0,this.afterPreactivation=()=>(0,$.of)(void 0),this.rootComponentType=null,this.configLoader.onLoadEndListener=pe=>this.events.next(new fi(pe)),this.configLoader.onLoadStartListener=pe=>this.events.next(new mo(pe))}complete(){var D;null===(D=this.transitions)||void 0===D||D.complete()}handleNavigationRequest(D){var L;const pe=++this.navigationId;null===(L=this.transitions)||void 0===L||L.next({...this.transitions.value,...D,id:pe})}setupNavigations(D,L,pe){return this.transitions=new he.t({id:0,currentUrlTree:L,currentRawUrl:L,extractedUrl:this.urlHandlingStrategy.extract(L),urlAfterRedirects:this.urlHandlingStrategy.extract(L),rawUrl:L,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:Sr,restoredState:null,currentSnapshot:pe.snapshot,targetSnapshot:null,currentRouterState:pe,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.transitions.pipe((0,Ct.p)(xe=>0!==xe.id),(0,_e.T)(xe=>({...xe,extractedUrl:this.urlHandlingStrategy.extract(xe.rawUrl)})),(0,$e.n)(xe=>{let Ft=!1,An=!1;return(0,$.of)(xe).pipe((0,$e.n)(Wt=>{var Qn;if(this.navigationId>xe.id)return this.cancelNavigationTransition(xe,"",Nr.SupersededByNewNavigation),mt.w;this.currentTransition=xe,this.currentNavigation={id:Wt.id,initialUrl:Wt.rawUrl,extractedUrl:Wt.extractedUrl,trigger:Wt.source,extras:Wt.extras,previousNavigation:this.lastSuccessfulNavigation?{...this.lastSuccessfulNavigation,previousNavigation:null}:null};const Xr=!D.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),Ji=null!==(Qn=Wt.extras.onSameUrlNavigation)&&void 0!==Qn?Qn:D.onSameUrlNavigation;if(!Xr&&"reload"!==Ji){const Ri="";return this.events.next(new di(Wt.id,this.urlSerializer.serialize(Wt.rawUrl),Ri,er.IgnoredSameUrlNavigation)),Wt.resolve(null),mt.w}if(this.urlHandlingStrategy.shouldProcessUrl(Wt.rawUrl))return(0,$.of)(Wt).pipe((0,$e.n)(Ri=>{var fo,oa;const Wa=null===(fo=this.transitions)||void 0===fo?void 0:fo.getValue();return this.events.next(new $r(Ri.id,this.urlSerializer.serialize(Ri.extractedUrl),Ri.source,Ri.restoredState)),Wa!==(null===(oa=this.transitions)||void 0===oa?void 0:oa.getValue())?mt.w:Promise.resolve(Ri)}),function Hl(E,b,N,D,L,pe){return(0,kt.Z)(xe=>function $l(E,b,N,D,L,pe,xe="emptyOnly"){return new Os(E,b,N,D,L,xe,pe).recognize()}(E,b,N,D,xe.extractedUrl,L,pe).pipe((0,_e.T)(({state:Ft,tree:An})=>({...xe,targetSnapshot:Ft,urlAfterRedirects:An}))))}(this.environmentInjector,this.configLoader,this.rootComponentType,D.config,this.urlSerializer,this.paramsInheritanceStrategy),(0,st.M)(Ri=>{xe.targetSnapshot=Ri.targetSnapshot,xe.urlAfterRedirects=Ri.urlAfterRedirects,this.currentNavigation={...this.currentNavigation,finalUrl:Ri.urlAfterRedirects};const fo=new Yr(Ri.id,this.urlSerializer.serialize(Ri.extractedUrl),this.urlSerializer.serialize(Ri.urlAfterRedirects),Ri.targetSnapshot);this.events.next(fo)}));if(Xr&&this.urlHandlingStrategy.shouldProcessUrl(Wt.currentRawUrl)){const{id:Ri,extractedUrl:fo,source:oa,restoredState:Wa,extras:Ka}=Wt,Hs=new $r(Ri,this.urlSerializer.serialize(fo),oa,Wa);this.events.next(Hs);const As=oe(this.rootComponentType).snapshot;return this.currentTransition=xe={...Wt,targetSnapshot:As,urlAfterRedirects:fo,extras:{...Ka,skipLocationChange:!1,replaceUrl:!1}},this.currentNavigation.finalUrl=fo,(0,$.of)(xe)}{const Ri="";return this.events.next(new di(Wt.id,this.urlSerializer.serialize(Wt.extractedUrl),Ri,er.IgnoredByUrlHandlingStrategy)),Wt.resolve(null),mt.w}}),(0,st.M)(Wt=>{const Qn=new Hr(Wt.id,this.urlSerializer.serialize(Wt.extractedUrl),this.urlSerializer.serialize(Wt.urlAfterRedirects),Wt.targetSnapshot);this.events.next(Qn)}),(0,_e.T)(Wt=>(this.currentTransition=xe={...Wt,guards:Zo(Wt.targetSnapshot,Wt.currentSnapshot,this.rootContexts)},xe)),function zn(E,b){return(0,kt.Z)(N=>{const{targetSnapshot:D,currentSnapshot:L,guards:{canActivateChecks:pe,canDeactivateChecks:xe}}=N;return 0===xe.length&&0===pe.length?(0,$.of)({...N,guardsResult:!0}):function lr(E,b,N,D){return(0,ke.H)(E).pipe((0,kt.Z)(L=>function Ki(E,b,N,D,L){const pe=b&&b.routeConfig?b.routeConfig.canDeactivate:null;if(!pe||0===pe.length)return(0,$.of)(!0);const xe=pe.map(Ft=>{var An;const Wt=null!==(An=Jr(b))&&void 0!==An?An:L,Qn=Xo(Ft,Wt);return Xt(function x(E){return E&&qe(E.canDeactivate)}(Qn)?Qn.canDeactivate(E,b,N,D):(0,c.N4e)(Wt,()=>Qn(E,b,N,D))).pipe((0,Cn.$)())});return(0,$.of)(xe).pipe(an())}(L.component,L.route,N,b,D)),(0,Cn.$)(L=>!0!==L,!0))}(xe,D,L,E).pipe((0,kt.Z)(Ft=>Ft&&function lt(E){return"boolean"==typeof E}(Ft)?function pi(E,b,N,D){return(0,ke.H)(b).pipe((0,At.H)(L=>(0,tt.x)(function Ei(E,b){return null!==E&&b&&b(new yi(E)),(0,$.of)(!0)}(L.route.parent,D),function Hi(E,b){return null!==E&&b&&b(new bo(E)),(0,$.of)(!0)}(L.route,D),function No(E,b,N){const D=b[b.length-1],pe=b.slice(0,b.length-1).reverse().map(xe=>function ls(E){const b=E.routeConfig?E.routeConfig.canActivateChild:null;return b&&0!==b.length?{node:E,guards:b}:null}(xe)).filter(xe=>null!==xe).map(xe=>et(()=>{const Ft=xe.guards.map(An=>{var Wt;const Qn=null!==(Wt=Jr(xe.node))&&void 0!==Wt?Wt:N,Xr=Xo(An,Qn);return Xt(function B(E){return E&&qe(E.canActivateChild)}(Xr)?Xr.canActivateChild(D,E):(0,c.N4e)(Qn,()=>Xr(D,E))).pipe((0,Cn.$)())});return(0,$.of)(Ft).pipe(an())}));return(0,$.of)(pe).pipe(an())}(E,L.path,N),function ao(E,b,N){const D=b.routeConfig?b.routeConfig.canActivate:null;if(!D||0===D.length)return(0,$.of)(!0);const L=D.map(pe=>et(()=>{var xe;const Ft=null!==(xe=Jr(b))&&void 0!==xe?xe:N,An=Xo(pe,Ft);return Xt(function gn(E){return E&&qe(E.canActivate)}(An)?An.canActivate(b,E):(0,c.N4e)(Ft,()=>An(b,E))).pipe((0,Cn.$)())}));return(0,$.of)(L).pipe(an())}(E,L.route,N))),(0,Cn.$)(L=>!0!==L,!0))}(D,pe,E,b):(0,$.of)(Ft)),(0,_e.T)(Ft=>({...N,guardsResult:Ft})))})}(this.environmentInjector,Wt=>this.events.next(Wt)),(0,st.M)(Wt=>{if(xe.guardsResult=Wt.guardsResult,fr(Wt.guardsResult))throw Qr(0,Wt.guardsResult);const Qn=new _i(Wt.id,this.urlSerializer.serialize(Wt.extractedUrl),this.urlSerializer.serialize(Wt.urlAfterRedirects),Wt.targetSnapshot,!!Wt.guardsResult);this.events.next(Qn)}),(0,Ct.p)(Wt=>!!Wt.guardsResult||(this.cancelNavigationTransition(Wt,"",Nr.GuardRejected),!1)),ja(Wt=>{if(Wt.guards.canActivateChecks.length)return(0,$.of)(Wt).pipe((0,st.M)(Qn=>{const Xr=new tr(Qn.id,this.urlSerializer.serialize(Qn.extractedUrl),this.urlSerializer.serialize(Qn.urlAfterRedirects),Qn.targetSnapshot);this.events.next(Xr)}),(0,$e.n)(Qn=>{let Xr=!1;return(0,$.of)(Qn).pipe(function fs(E,b){return(0,kt.Z)(N=>{const{targetSnapshot:D,guards:{canActivateChecks:L}}=N;if(!L.length)return(0,$.of)(N);const pe=new Set(L.map(An=>An.route)),xe=new Set;for(const An of pe)if(!xe.has(An))for(const Wt of Qo(An))xe.add(Wt);let Ft=0;return(0,ke.H)(xe).pipe((0,At.H)(An=>pe.has(An)?function js(E,b,N,D){const L=E.routeConfig,pe=E._resolve;return void 0!==(null==L?void 0:L.title)&&!Ot(L)&&(pe[Sn]=L.title),function Yi(E,b,N,D){const L=dr(E);if(0===L.length)return(0,$.of)({});const pe={};return(0,ke.H)(L).pipe((0,kt.Z)(xe=>function ya(E,b,N,D){var L;const pe=null!==(L=Jr(b))&&void 0!==L?L:D,xe=Xo(E,pe);return Xt(xe.resolve?xe.resolve(b,N):(0,c.N4e)(pe,()=>xe(b,N)))}(E[xe],b,N,D).pipe((0,Cn.$)(),(0,st.M)(Ft=>{pe[xe]=Ft}))),X(1),(0,Ve.u)(pe),cn(xe=>z(xe)?mt.w:at(xe)))}(pe,E,b,D).pipe((0,_e.T)(xe=>(E._resolvedData=xe,E.data=dt(E,E.parent,N).resolve,null)))}(An,D,E,b):(An.data=dt(An,An.parent,E).resolve,(0,$.of)(void 0))),(0,st.M)(()=>Ft++),X(1),(0,kt.Z)(An=>Ft===xe.size?(0,$.of)(N):mt.w))})}(this.paramsInheritanceStrategy,this.environmentInjector),(0,st.M)({next:()=>Xr=!0,complete:()=>{Xr||this.cancelNavigationTransition(Qn,"",Nr.NoDataFromResolver)}}))}),(0,st.M)(Qn=>{const Xr=new Zn(Qn.id,this.urlSerializer.serialize(Qn.extractedUrl),this.urlSerializer.serialize(Qn.urlAfterRedirects),Qn.targetSnapshot);this.events.next(Xr)}))}),ja(Wt=>{const Qn=Xr=>{var Ji;const Ri=[];null!==(Ji=Xr.routeConfig)&&void 0!==Ji&&Ji.loadComponent&&!Xr.routeConfig._loadedComponent&&Ri.push(this.configLoader.loadComponent(Xr.routeConfig).pipe((0,st.M)(fo=>{Xr.component=fo}),(0,_e.T)(()=>{})));for(const fo of Xr.children)Ri.push(...Qn(fo));return Ri};return(0,ae.z)(Qn(Wt.targetSnapshot.root)).pipe((0,G.U)(null),(0,Le.s)(1))}),ja(()=>this.afterPreactivation()),(0,$e.n)(()=>{var Wt;const{currentSnapshot:Qn,targetSnapshot:Xr}=xe,Ji=null===(Wt=this.createViewTransition)||void 0===Wt?void 0:Wt.call(this,this.environmentInjector,Qn.root,Xr.root);return Ji?(0,ke.H)(Ji).pipe((0,_e.T)(()=>xe)):(0,$.of)(xe)}),(0,_e.T)(Wt=>{const Qn=function bn(E,b,N){const D=Gn(E,b._root,N?N._root:void 0);return new H(D,b)}(D.routeReuseStrategy,Wt.targetSnapshot,Wt.currentRouterState);return this.currentTransition=xe={...Wt,targetRouterState:Qn},this.currentNavigation.targetRouterState=Qn,xe}),(0,st.M)(()=>{this.events.next(new ge)}),((E,b,N,D)=>(0,_e.T)(L=>(new Ss(b,L.targetRouterState,L.currentRouterState,N,D).activate(E),L)))(this.rootContexts,D.routeReuseStrategy,Wt=>this.events.next(Wt),this.inputBindingEnabled),(0,Le.s)(1),(0,st.M)({next:Wt=>{var Qn;Ft=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Pr(Wt.id,this.urlSerializer.serialize(Wt.extractedUrl),this.urlSerializer.serialize(Wt.urlAfterRedirects))),null===(Qn=this.titleStrategy)||void 0===Qn||Qn.updateTitle(Wt.targetRouterState.snapshot),Wt.resolve(!0)},complete:()=>{Ft=!0}}),(0,fn.Q)(this.transitionAbortSubject.pipe((0,st.M)(Wt=>{throw Wt}))),(0,ut.j)(()=>{var Wt;!Ft&&!An&&this.cancelNavigationTransition(xe,"",Nr.SupersededByNewNavigation),(null===(Wt=this.currentTransition)||void 0===Wt?void 0:Wt.id)===xe.id&&(this.currentNavigation=null,this.currentTransition=null)}),cn(Wt=>{if(An=!0,ki(Wt))this.events.next(new Rr(xe.id,this.urlSerializer.serialize(xe.extractedUrl),Wt.message,Wt.cancellationCode)),function kr(E){return ki(E)&&fr(E.url)}(Wt)?this.events.next(new fe(Wt.url)):xe.resolve(!1);else{var Qn;this.events.next(new hi(xe.id,this.urlSerializer.serialize(xe.extractedUrl),Wt,null!==(Qn=xe.targetSnapshot)&&void 0!==Qn?Qn:void 0));try{xe.resolve(D.errorHandler(Wt))}catch(Xr){this.options.resolveNavigationPromiseOnError?xe.resolve(!1):xe.reject(Xr)}}return mt.w}))}))}cancelNavigationTransition(D,L,pe){const xe=new Rr(D.id,this.urlSerializer.serialize(D.extractedUrl),L,pe);this.events.next(xe),D.resolve(!1)}isUpdatingInternalState(){var D,L;return(null===(D=this.currentTransition)||void 0===D?void 0:D.extractedUrl.toString())!==(null===(L=this.currentTransition)||void 0===L?void 0:L.currentUrlTree.toString())}isUpdatedBrowserUrl(){var D,L;return this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))).toString()!==(null===(D=this.currentTransition)||void 0===D?void 0:D.extractedUrl.toString())&&!(null!==(L=this.currentTransition)&&void 0!==L&&L.extras.skipLocationChange)}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();function tn(E){return E!==Sr}let Fn=(()=>{var E;class b{}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(ur),providedIn:"root"}),b})();class Er{shouldDetach(b){return!1}store(b,N){}shouldAttach(b){return!1}retrieve(b){return null}shouldReuseRoute(b,N){return b.routeConfig===N.routeConfig}}let ur=(()=>{var E;class b extends Er{}return(E=b).\u0275fac=(()=>{let N;return function(L){return(N||(N=c.xGo(E)))(L||E)}})(),E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})(),bi=(()=>{var E;class b{}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:()=>(0,c.WQX)(ri),providedIn:"root"}),b})(),ri=(()=>{var E;class b extends bi{constructor(){super(...arguments),this.location=(0,c.WQX)(Ze.aZ),this.urlSerializer=(0,c.WQX)(yr),this.options=(0,c.WQX)(ts,{optional:!0})||{},this.canceledNavigationResolution=this.options.canceledNavigationResolution||"replace",this.urlHandlingStrategy=(0,c.WQX)(Ca),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.currentUrlTree=new Vr,this.rawUrlTree=this.currentUrlTree,this.currentPageId=0,this.lastSuccessfulId=-1,this.routerState=oe(null),this.stateMemento=this.createStateMemento()}getCurrentUrlTree(){return this.currentUrlTree}getRawUrlTree(){return this.rawUrlTree}restoredState(){return this.location.getState()}get browserPageId(){var D,L;return"computed"!==this.canceledNavigationResolution?this.currentPageId:null!==(D=null===(L=this.restoredState())||void 0===L?void 0:L.\u0275routerPageId)&&void 0!==D?D:this.currentPageId}getRouterState(){return this.routerState}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}registerNonRouterCurrentEntryChangeListener(D){return this.location.subscribe(L=>{"popstate"===L.type&&D(L.url,L.state)})}handleRouterEvent(D,L){if(D instanceof $r)this.stateMemento=this.createStateMemento();else if(D instanceof di)this.rawUrlTree=L.initialUrl;else if(D instanceof Yr){if("eager"===this.urlUpdateStrategy&&!L.extras.skipLocationChange){const pe=this.urlHandlingStrategy.merge(L.finalUrl,L.initialUrl);this.setBrowserUrl(pe,L)}}else D instanceof ge?(this.currentUrlTree=L.finalUrl,this.rawUrlTree=this.urlHandlingStrategy.merge(L.finalUrl,L.initialUrl),this.routerState=L.targetRouterState,"deferred"===this.urlUpdateStrategy&&(L.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,L))):D instanceof Rr&&(D.code===Nr.GuardRejected||D.code===Nr.NoDataFromResolver)?this.restoreHistory(L):D instanceof hi?this.restoreHistory(L,!0):D instanceof Pr&&(this.lastSuccessfulId=D.id,this.currentPageId=this.browserPageId)}setBrowserUrl(D,L){const pe=this.urlSerializer.serialize(D);if(this.location.isCurrentPathEqualTo(pe)||L.extras.replaceUrl){const Ft={...L.extras.state,...this.generateNgRouterState(L.id,this.browserPageId)};this.location.replaceState(pe,"",Ft)}else{const xe={...L.extras.state,...this.generateNgRouterState(L.id,this.browserPageId+1)};this.location.go(pe,"",xe)}}restoreHistory(D,L=!1){if("computed"===this.canceledNavigationResolution){const xe=this.currentPageId-this.browserPageId;0!==xe?this.location.historyGo(xe):this.currentUrlTree===D.finalUrl&&0===xe&&(this.resetState(D),this.resetUrlToCurrentUrlTree())}else"replace"===this.canceledNavigationResolution&&(L&&this.resetState(D),this.resetUrlToCurrentUrlTree())}resetState(D){var L;this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,null!==(L=D.finalUrl)&&void 0!==L?L:this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(D,L){return"computed"===this.canceledNavigationResolution?{navigationId:D,\u0275routerPageId:L}:{navigationId:D}}}return(E=b).\u0275fac=(()=>{let N;return function(L){return(N||(N=c.xGo(E)))(L||E)}})(),E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();var Ii=function(E){return E[E.COMPLETE=0]="COMPLETE",E[E.FAILED=1]="FAILED",E[E.REDIRECTING=2]="REDIRECTING",E}(Ii||{});function gi(E,b){E.events.pipe((0,Ct.p)(N=>N instanceof Pr||N instanceof Rr||N instanceof hi||N instanceof di),(0,_e.T)(N=>N instanceof Pr||N instanceof di?Ii.COMPLETE:N instanceof Rr&&(N.code===Nr.Redirect||N.code===Nr.SupersededByNewNavigation)?Ii.REDIRECTING:Ii.FAILED),(0,Ct.p)(N=>N!==Ii.REDIRECTING),(0,Le.s)(1)).subscribe(()=>{b()})}function to(E){throw E}const wi={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},Bn={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let ir=(()=>{var E;class b{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}constructor(){var D,L;this.disposed=!1,this.isNgZoneEnabled=!1,this.console=(0,c.WQX)(c.H3F),this.stateManager=(0,c.WQX)(bi),this.options=(0,c.WQX)(ts,{optional:!0})||{},this.pendingTasks=(0,c.WQX)(c.TgB),this.urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred",this.navigationTransitions=(0,c.WQX)(Qe),this.urlSerializer=(0,c.WQX)(yr),this.location=(0,c.WQX)(Ze.aZ),this.urlHandlingStrategy=(0,c.WQX)(Ca),this._events=new Te.B,this.errorHandler=this.options.errorHandler||to,this.navigated=!1,this.routeReuseStrategy=(0,c.WQX)(Fn),this.onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore",this.config=null!==(D=null===(L=(0,c.WQX)(Ia,{optional:!0}))||void 0===L?void 0:L.flat())&&void 0!==D?D:[],this.componentInputBindingEnabled=!!(0,c.WQX)(pn,{optional:!0}),this.eventsSubscription=new xt.yU,this.isNgZoneEnabled=(0,c.WQX)(c.SKi)instanceof c.SKi&&c.SKi.isInAngularZone(),this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this,this.currentUrlTree,this.routerState).subscribe({error:pe=>{this.console.warn(pe)}}),this.subscribeToNavigationEvents()}subscribeToNavigationEvents(){const D=this.navigationTransitions.events.subscribe(L=>{try{const pe=this.navigationTransitions.currentTransition,xe=this.navigationTransitions.currentNavigation;if(null!==pe&&null!==xe)if(this.stateManager.handleRouterEvent(L,xe),L instanceof Rr&&L.code!==Nr.Redirect&&L.code!==Nr.SupersededByNewNavigation)this.navigated=!0;else if(L instanceof Pr)this.navigated=!0;else if(L instanceof fe){const Ft=this.urlHandlingStrategy.merge(L.url,pe.currentRawUrl),An={info:pe.extras.info,skipLocationChange:pe.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||tn(pe.source)};this.scheduleNavigation(Ft,Sr,null,An,{resolve:pe.resolve,reject:pe.reject,promise:pe.promise})}(function lo(E){return!(E instanceof ge||E instanceof fe)})(L)&&this._events.next(L)}catch(pe){this.navigationTransitions.transitionAbortSubject.next(pe)}});this.eventsSubscription.add(D)}resetRootComponentType(D){this.routerState.root.component=D,this.navigationTransitions.rootComponentType=D}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),Sr,this.stateManager.restoredState())}setUpLocationChangeListener(){var D;null!==(D=this.nonRouterCurrentEntryChangeSubscription)&&void 0!==D||(this.nonRouterCurrentEntryChangeSubscription=this.stateManager.registerNonRouterCurrentEntryChangeListener((L,pe)=>{setTimeout(()=>{this.navigateToSyncWithBrowser(L,"popstate",pe)},0)}))}navigateToSyncWithBrowser(D,L,pe){const xe={replaceUrl:!0},Ft=null!=pe&&pe.navigationId?pe:null;if(pe){const Wt={...pe};delete Wt.navigationId,delete Wt.\u0275routerPageId,0!==Object.keys(Wt).length&&(xe.state=Wt)}const An=this.parseUrl(D);this.scheduleNavigation(An,L,Ft,xe)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(D){this.config=D.map(ws),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(D,L={}){const{relativeTo:pe,queryParams:xe,fragment:Ft,queryParamsHandling:An,preserveFragment:Wt}=L,Qn=Wt?this.currentUrlTree.fragment:Ft;let Ji,Xr=null;switch(An){case"merge":Xr={...this.currentUrlTree.queryParams,...xe};break;case"preserve":Xr=this.currentUrlTree.queryParams;break;default:Xr=xe||null}null!==Xr&&(Xr=this.removeEmptyProps(Xr));try{Ji=oi(pe?pe.snapshot:this.routerState.snapshot.root)}catch{("string"!=typeof D[0]||!D[0].startsWith("/"))&&(D=[]),Ji=this.currentUrlTree.root}return Ir(Ji,D,Xr,null!=Qn?Qn:null)}navigateByUrl(D,L={skipLocationChange:!1}){const pe=fr(D)?D:this.parseUrl(D),xe=this.urlHandlingStrategy.merge(pe,this.rawUrlTree);return this.scheduleNavigation(xe,Sr,null,L)}navigate(D,L={skipLocationChange:!1}){return function Ni(E){for(let b=0;b(null!=xe&&(L[pe]=xe),L),{})}scheduleNavigation(D,L,pe,xe,Ft){if(this.disposed)return Promise.resolve(!1);let An,Wt,Qn;Ft?(An=Ft.resolve,Wt=Ft.reject,Qn=Ft.promise):Qn=new Promise((Ji,Ri)=>{An=Ji,Wt=Ri});const Xr=this.pendingTasks.add();return gi(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(Xr))}),this.navigationTransitions.handleNavigationRequest({source:L,restoredState:pe,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:D,extras:xe,resolve:An,reject:Wt,promise:Qn,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),Qn.catch(Ji=>Promise.reject(Ji))}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})(),Vi=(()=>{var E;class b{constructor(D,L,pe,xe,Ft,An){var Wt;this.router=D,this.route=L,this.tabIndexAttribute=pe,this.renderer=xe,this.el=Ft,this.locationStrategy=An,this.href=null,this.commands=null,this.onChanges=new Te.B,this.preserveFragment=!1,this.skipLocationChange=!1,this.replaceUrl=!1;const Qn=null===(Wt=Ft.nativeElement.tagName)||void 0===Wt?void 0:Wt.toLowerCase();this.isAnchorElement="a"===Qn||"area"===Qn,this.isAnchorElement?this.subscription=D.events.subscribe(Xr=>{Xr instanceof Pr&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}setTabIndexIfNotOnNativeEl(D){null!=this.tabIndexAttribute||this.isAnchorElement||this.applyAttributeValue("tabindex",D)}ngOnChanges(D){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}set routerLink(D){null!=D?(this.commands=Array.isArray(D)?D:[D],this.setTabIndexIfNotOnNativeEl("0")):(this.commands=null,this.setTabIndexIfNotOnNativeEl(null))}onClick(D,L,pe,xe,Ft){const An=this.urlTree;return!!(null===An||this.isAnchorElement&&(0!==D||L||pe||xe||Ft||"string"==typeof this.target&&"_self"!=this.target))||(this.router.navigateByUrl(An,{skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info}),!this.isAnchorElement)}ngOnDestroy(){var D;null===(D=this.subscription)||void 0===D||D.unsubscribe()}updateHref(){var D;const L=this.urlTree;this.href=null!==L&&this.locationStrategy?null===(D=this.locationStrategy)||void 0===D?void 0:D.prepareExternalUrl(this.router.serializeUrl(L)):null;const pe=null===this.href?null:(0,c.n$t)(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",pe)}applyAttributeValue(D,L){const pe=this.renderer,xe=this.el.nativeElement;null!==L?pe.setAttribute(xe,D,L):pe.removeAttribute(xe,D)}get urlTree(){return null===this.commands?null:this.router.createUrlTree(this.commands,{relativeTo:void 0!==this.relativeTo?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}}return(E=b).\u0275fac=function(D){return new(D||E)(c.rXU(ir),c.rXU(Ce),c.kS0("tabindex"),c.rXU(c.sFG),c.rXU(c.aKT),c.rXU(Ze.hb))},E.\u0275dir=c.FsC({type:E,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(D,L){1&D&&c.bIt("click",function(xe){return L.onClick(xe.button,xe.ctrlKey,xe.shiftKey,xe.altKey,xe.metaKey)}),2&D&&c.BMQ("target",L.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[c.Mj6.HasDecoratorInputTransform,"preserveFragment","preserveFragment",c.L39],skipLocationChange:[c.Mj6.HasDecoratorInputTransform,"skipLocationChange","skipLocationChange",c.L39],replaceUrl:[c.Mj6.HasDecoratorInputTransform,"replaceUrl","replaceUrl",c.L39],routerLink:"routerLink"},standalone:!0,features:[c.GFd,c.OA$]}),b})();class Si{}let io=(()=>{var E;class b{preload(D,L){return L().pipe(cn(()=>(0,$.of)(null)))}}return(E=b).\u0275fac=function(D){return new(D||E)},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})(),qr=(()=>{var E;class b{constructor(D,L,pe,xe,Ft){this.router=D,this.injector=pe,this.preloadingStrategy=xe,this.loader=Ft}setUpPreloading(){this.subscription=this.router.events.pipe((0,Ct.p)(D=>D instanceof Pr),(0,At.H)(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(D,L){const pe=[];for(const Wt of L){var xe,Ft;Wt.providers&&!Wt._injector&&(Wt._injector=(0,c.Ol2)(Wt.providers,D,`Route: ${Wt.path}`));const Qn=null!==(xe=Wt._injector)&&void 0!==xe?xe:D,Xr=null!==(Ft=Wt._loadedInjector)&&void 0!==Ft?Ft:Qn;var An;(Wt.loadChildren&&!Wt._loadedRoutes&&void 0===Wt.canLoad||Wt.loadComponent&&!Wt._loadedComponent)&&pe.push(this.preloadConfig(Qn,Wt)),(Wt.children||Wt._loadedRoutes)&&pe.push(this.processRoutes(Xr,null!==(An=Wt.children)&&void 0!==An?An:Wt._loadedRoutes))}return(0,ke.H)(pe).pipe((0,xn.U)())}preloadConfig(D,L){return this.preloadingStrategy.preload(L,()=>{let pe;pe=L.loadChildren&&void 0===L.canLoad?this.loader.loadChildren(D,L):(0,$.of)(null);const xe=pe.pipe((0,kt.Z)(Ft=>{var An;return null===Ft?(0,$.of)(void 0):(L._loadedRoutes=Ft.routes,L._loadedInjector=Ft.injector,this.processRoutes(null!==(An=Ft.injector)&&void 0!==An?An:D,Ft.routes))}));if(L.loadComponent&&!L._loadedComponent){const Ft=this.loader.loadComponent(L);return(0,ke.H)([xe,Ft]).pipe((0,xn.U)())}return xe})}}return(E=b).\u0275fac=function(D){return new(D||E)(c.KVO(ir),c.KVO(c.Ql9),c.KVO(c.uvJ),c.KVO(Si),c.KVO(Aa))},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac,providedIn:"root"}),b})();const ta=new c.nKC("");let _c=(()=>{var E;class b{constructor(D,L,pe,xe,Ft={}){this.urlSerializer=D,this.transitions=L,this.viewportScroller=pe,this.zone=xe,this.options=Ft,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},this.environmentInjector=(0,c.WQX)(c.uvJ),Ft.scrollPositionRestoration||(Ft.scrollPositionRestoration="disabled"),Ft.anchorScrolling||(Ft.anchorScrolling="disabled")}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(D=>{D instanceof $r?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=D.navigationTrigger,this.restoredId=D.restoredState?D.restoredState.navigationId:0):D instanceof Pr?(this.lastId=D.id,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.urlAfterRedirects).fragment)):D instanceof di&&D.code===er.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(D,this.urlSerializer.parse(D.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(D=>{D instanceof Pt&&(D.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(D.position):D.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(D.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(D,L){var pe=this;this.zone.runOutsideAngular((0,h.A)(function*(){yield new Promise(xe=>{setTimeout(()=>{xe()}),(0,c.mal)(()=>{xe()},{injector:pe.environmentInjector})}),pe.zone.run(()=>{pe.transitions.events.next(new Pt(D,"popstate"===pe.lastSource?pe.store[pe.restoredId]:null,L))})}))}ngOnDestroy(){var D,L;null===(D=this.routerEventsSubscription)||void 0===D||D.unsubscribe(),null===(L=this.scrollEventsSubscription)||void 0===L||L.unsubscribe()}}return(E=b).\u0275fac=function(D){c.QTQ()},E.\u0275prov=c.jDH({token:E,factory:E.\u0275fac}),b})();function Fo(E,b){return{\u0275kind:E,\u0275providers:b}}function Ui(){const E=(0,c.WQX)(c.zZn);return b=>{var N,D;const L=E.get(c.o8S);if(b!==L.components[0])return;const pe=E.get(ir),xe=E.get(ra);1===E.get(Es)&&pe.initialNavigation(),null===(N=E.get(is,null,c.$GK.Optional))||void 0===N||N.setUpPreloading(),null===(D=E.get(ta,null,c.$GK.Optional))||void 0===D||D.init(),pe.resetRootComponentType(L.componentTypes[0]),xe.closed||(xe.next(),xe.complete(),xe.unsubscribe())}}const ra=new c.nKC("",{factory:()=>new Te.B}),Es=new c.nKC("",{providedIn:"root",factory:()=>1}),is=new c.nKC("");function pl(E){return Fo(0,[{provide:is,useExisting:qr},{provide:Si,useExisting:E}])}function Lo(E){return Fo(9,[{provide:j,useValue:F},{provide:Ue,useValue:{skipNextTransition:!(null==E||!E.skipInitialTransition),...E}}])}const gs=new c.nKC("ROUTER_FORROOT_GUARD"),ia=[Ze.aZ,{provide:yr,useClass:Br},ir,Be,{provide:Ce,useFactory:function no(E){return E.routerState.root},deps:[ir]},Aa,[]];let Is=(()=>{var E;class b{constructor(D){}static forRoot(D,L){return{ngModule:b,providers:[ia,[],{provide:Ia,multi:!0,useValue:D},{provide:gs,useFactory:ba,deps:[[ir,new c.Xx1,new c.kdw]]},{provide:ts,useValue:L||{}},null!=L&&L.useHash?{provide:Ze.hb,useClass:Ze.fw}:{provide:Ze.hb,useClass:Ze.Sm},{provide:ta,useFactory:()=>{const E=(0,c.WQX)(Ze.Xr),b=(0,c.WQX)(c.SKi),N=(0,c.WQX)(ts),D=(0,c.WQX)(Qe),L=(0,c.WQX)(yr);return N.scrollOffset&&E.setOffset(N.scrollOffset),new _c(L,D,E,b,N)}},null!=L&&L.preloadingStrategy?pl(L.preloadingStrategy).\u0275providers:[],null!=L&&L.initialNavigation?Pu(L):[],null!=L&&L.bindToComponentInputs?Fo(8,[vn,{provide:pn,useExisting:vn}]).\u0275providers:[],null!=L&&L.enableViewTransitions?Lo().\u0275providers:[],[{provide:wa,useFactory:Ui},{provide:c.iLQ,multi:!0,useExisting:wa}]]}}static forChild(D){return{ngModule:b,providers:[{provide:Ia,multi:!0,useValue:D}]}}}return(E=b).\u0275fac=function(D){return new(D||E)(c.KVO(gs,8))},E.\u0275mod=c.$C({type:E}),E.\u0275inj=c.G2t({}),b})();function ba(E){return"guarded"}function Pu(E){return["disabled"===E.initialNavigation?Fo(3,[{provide:c.hnV,multi:!0,useFactory:()=>{const b=(0,c.WQX)(ir);return()=>{b.setUpLocationChangeListener()}}},{provide:Es,useValue:2}]).\u0275providers:[],"enabledBlocking"===E.initialNavigation?Fo(2,[{provide:Es,useValue:0},{provide:c.hnV,multi:!0,deps:[c.zZn],useFactory:b=>{const N=b.get(Ze.hj,Promise.resolve());return()=>N.then(()=>new Promise(D=>{const L=b.get(ir),pe=b.get(ra);gi(L,()=>{D(!0)}),b.get(Qe).afterPreactivation=()=>(D(!0),pe.closed?(0,$.of)(void 0):pe),L.initialNavigation()}))}}]).\u0275providers:[]]}const wa=new c.nKC("")},7852:(Pn,Et,C)=>{"use strict";C.d(Et,{MF:()=>Di,j6:()=>Mr,xZ:()=>Tr,om:()=>rr,Sx:()=>rt,Dk:()=>Nt,Wp:()=>Zr,KO:()=>Ie});var h=C(467),c=C(1362),Z=C(8041),ke=C(1076);const $=(Gt,ie)=>ie.some(te=>Gt instanceof te);let he,ae;const Se=new WeakMap,be=new WeakMap,et=new WeakMap,it=new WeakMap,Ye=new WeakMap;let xt={get(Gt,ie,te){if(Gt instanceof IDBTransaction){if("done"===ie)return be.get(Gt);if("objectStoreNames"===ie)return Gt.objectStoreNames||et.get(Gt);if("store"===ie)return te.objectStoreNames[1]?void 0:te.objectStore(te.objectStoreNames[0])}return It(Gt[ie])},set:(Gt,ie,te)=>(Gt[ie]=te,!0),has:(Gt,ie)=>Gt instanceof IDBTransaction&&("done"===ie||"store"===ie)||ie in Gt};function Tt(Gt){return"function"==typeof Gt?function zt(Gt){return Gt!==IDBDatabase.prototype.transaction||"objectStoreNames"in IDBTransaction.prototype?function tt(){return ae||(ae=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}().includes(Gt)?function(...ie){return Gt.apply(Te(this),ie),It(Se.get(this))}:function(...ie){return It(Gt.apply(Te(this),ie))}:function(ie,...te){const ze=Gt.call(Te(this),ie,...te);return et.set(ze,ie.sort?ie.sort():[ie]),It(ze)}}(Gt):(Gt instanceof IDBTransaction&&function mt(Gt){if(be.has(Gt))return;const ie=new Promise((te,ze)=>{const M=()=>{Gt.removeEventListener("complete",O),Gt.removeEventListener("error",re),Gt.removeEventListener("abort",re)},O=()=>{te(),M()},re=()=>{ze(Gt.error||new DOMException("AbortError","AbortError")),M()};Gt.addEventListener("complete",O),Gt.addEventListener("error",re),Gt.addEventListener("abort",re)});be.set(Gt,ie)}(Gt),$(Gt,function Xe(){return he||(he=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}())?new Proxy(Gt,xt):Gt)}function It(Gt){if(Gt instanceof IDBRequest)return function at(Gt){const ie=new Promise((te,ze)=>{const M=()=>{Gt.removeEventListener("success",O),Gt.removeEventListener("error",re)},O=()=>{te(It(Gt.result)),M()},re=()=>{ze(Gt.error),M()};Gt.addEventListener("success",O),Gt.addEventListener("error",re)});return ie.then(te=>{te instanceof IDBCursor&&Se.set(te,Gt)}).catch(()=>{}),Ye.set(ie,Gt),ie}(Gt);if(it.has(Gt))return it.get(Gt);const ie=Tt(Gt);return ie!==Gt&&(it.set(Gt,ie),Ye.set(ie,Gt)),ie}const Te=Gt=>Ye.get(Gt),$e=["get","getKey","getAll","getAllKeys","count"],Le=["put","add","delete","clear"],Oe=new Map;function Ct(Gt,ie){if(!(Gt instanceof IDBDatabase)||ie in Gt||"string"!=typeof ie)return;if(Oe.get(ie))return Oe.get(ie);const te=ie.replace(/FromIndex$/,""),ze=ie!==te,M=Le.includes(te);if(!(te in(ze?IDBIndex:IDBObjectStore).prototype)||!M&&!$e.includes(te))return;const O=function(){var re=(0,h.A)(function*(we,...We){const St=this.transaction(we,M?"readwrite":"readonly");let nn=St.store;return ze&&(nn=nn.index(We.shift())),(yield Promise.all([nn[te](...We),M&&St.done]))[0]});return function(We){return re.apply(this,arguments)}}();return Oe.set(ie,O),O}!function Dt(Gt){xt=Gt(xt)}(Gt=>({...Gt,get:(ie,te,ze)=>Ct(ie,te)||Gt.get(ie,te,ze),has:(ie,te)=>!!Ct(ie,te)||Gt.has(ie,te)}));class kt{constructor(ie){this.container=ie}getPlatformInfoString(){return this.container.getProviders().map(te=>{if(function Cn(Gt){const ie=Gt.getComponent();return"VERSION"===(null==ie?void 0:ie.type)}(te)){const ze=te.getImmediate();return`${ze.library}/${ze.version}`}return null}).filter(te=>te).join(" ")}}const At="@firebase/app",cn=new Z.Vy("@firebase/app"),Vn="[DEFAULT]",$n={[At]:"fire-core","@firebase/app-compat":"fire-core-compat","@firebase/analytics":"fire-analytics","@firebase/analytics-compat":"fire-analytics-compat","@firebase/app-check":"fire-app-check","@firebase/app-check-compat":"fire-app-check-compat","@firebase/auth":"fire-auth","@firebase/auth-compat":"fire-auth-compat","@firebase/database":"fire-rtdb","@firebase/database-compat":"fire-rtdb-compat","@firebase/functions":"fire-fn","@firebase/functions-compat":"fire-fn-compat","@firebase/installations":"fire-iid","@firebase/installations-compat":"fire-iid-compat","@firebase/messaging":"fire-fcm","@firebase/messaging-compat":"fire-fcm-compat","@firebase/performance":"fire-perf","@firebase/performance-compat":"fire-perf-compat","@firebase/remote-config":"fire-rc","@firebase/remote-config-compat":"fire-rc-compat","@firebase/storage":"fire-gcs","@firebase/storage-compat":"fire-gcs-compat","@firebase/firestore":"fire-fst","@firebase/firestore-compat":"fire-fst-compat","@firebase/vertexai-preview":"fire-vertex","fire-js":"fire-js",firebase:"fire-js-all"},In=new Map,on=new Map,mr=new Map;function br(Gt,ie){try{Gt.container.addComponent(ie)}catch(te){cn.debug(`Component ${ie.name} failed to register with FirebaseApp ${Gt.name}`,te)}}function rr(Gt){const ie=Gt.name;if(mr.has(ie))return cn.debug(`There were multiple attempts to register component ${ie}.`),!1;mr.set(ie,Gt);for(const te of In.values())br(te,Gt);for(const te of on.values())br(te,Gt);return!0}function Mr(Gt,ie){const te=Gt.container.getProvider("heartbeat").getImmediate({optional:!0});return te&&te.triggerHeartbeat(),Gt.container.getProvider(ie)}function Tr(Gt){return void 0!==Gt.settings}const ar=new ke.FA("app","Firebase",{"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invalid-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."});class Lr{constructor(ie,te,ze){this._isDeleted=!1,this._options=Object.assign({},ie),this._config=Object.assign({},te),this._name=te.name,this._automaticDataCollectionEnabled=te.automaticDataCollectionEnabled,this._container=ze,this.container.addComponent(new c.uA("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(ie){this.checkDestroyed(),this._automaticDataCollectionEnabled=ie}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(ie){this._isDeleted=ie}checkDestroyed(){if(this.isDeleted)throw ar.create("app-deleted",{appName:this._name})}}const Di="10.12.2";function Zr(Gt,ie={}){let te=Gt;"object"!=typeof ie&&(ie={name:ie});const ze=Object.assign({name:Vn,automaticDataCollectionEnabled:!1},ie),M=ze.name;if("string"!=typeof M||!M)throw ar.create("bad-app-name",{appName:String(M)});if(te||(te=(0,ke.T9)()),!te)throw ar.create("no-options");const O=In.get(M);if(O){if((0,ke.bD)(te,O.options)&&(0,ke.bD)(ze,O.config))return O;throw ar.create("duplicate-app",{appName:M})}const re=new c.h1(M);for(const We of mr.values())re.addComponent(We);const we=new Lr(te,ze,re);return In.set(M,we),we}function rt(Gt=Vn){const ie=In.get(Gt);if(!ie&&Gt===Vn&&(0,ke.T9)())return Zr();if(!ie)throw ar.create("no-app",{appName:Gt});return ie}function Nt(){return Array.from(In.values())}function Ie(Gt,ie,te){var ze;let M=null!==(ze=$n[Gt])&&void 0!==ze?ze:Gt;te&&(M+=`-${te}`);const O=M.match(/\s|\//),re=ie.match(/\s|\//);if(O||re){const we=[`Unable to register library "${M}" with version "${ie}":`];return O&&we.push(`library name "${M}" contains illegal characters (whitespace or "/")`),O&&re&&we.push("and"),re&&we.push(`version name "${ie}" contains illegal characters (whitespace or "/")`),void cn.warn(we.join(" "))}rr(new c.uA(`${M}-version`,()=>({library:M,version:ie}),"VERSION"))}const le="firebase-heartbeat-database",gt=1,ft="firebase-heartbeat-store";let Qt=null;function sn(){return Qt||(Qt=function Ze(Gt,ie,{blocked:te,upgrade:ze,blocking:M,terminated:O}={}){const re=indexedDB.open(Gt,ie),we=It(re);return ze&&re.addEventListener("upgradeneeded",We=>{ze(It(re.result),We.oldVersion,We.newVersion,It(re.transaction),We)}),te&&re.addEventListener("blocked",We=>te(We.oldVersion,We.newVersion,We)),we.then(We=>{O&&We.addEventListener("close",()=>O()),M&&We.addEventListener("versionchange",St=>M(St.oldVersion,St.newVersion,St))}).catch(()=>{}),we}(le,gt,{upgrade:(Gt,ie)=>{if(0===ie)try{Gt.createObjectStore(ft)}catch(te){console.warn(te)}}}).catch(Gt=>{throw ar.create("idb-open",{originalErrorMessage:Gt.message})})),Qt}function Xn(){return(Xn=(0,h.A)(function*(Gt){try{const te=(yield sn()).transaction(ft),ze=yield te.objectStore(ft).get(hr(Gt));return yield te.done,ze}catch(ie){if(ie instanceof ke.g)cn.warn(ie.message);else{const te=ar.create("idb-get",{originalErrorMessage:null==ie?void 0:ie.message});cn.warn(te.message)}}})).apply(this,arguments)}function dn(Gt,ie){return wn.apply(this,arguments)}function wn(){return(wn=(0,h.A)(function*(Gt,ie){try{const ze=(yield sn()).transaction(ft,"readwrite");yield ze.objectStore(ft).put(ie,hr(Gt)),yield ze.done}catch(te){if(te instanceof ke.g)cn.warn(te.message);else{const ze=ar.create("idb-set",{originalErrorMessage:null==te?void 0:te.message});cn.warn(ze.message)}}})).apply(this,arguments)}function hr(Gt){return`${Gt.name}!${Gt.options.appId}`}class Ur{constructor(ie){this.container=ie,this._heartbeatsCache=null;const te=this.container.getProvider("app").getImmediate();this._storage=new xi(te),this._heartbeatsCachePromise=this._storage.read().then(ze=>(this._heartbeatsCache=ze,ze))}triggerHeartbeat(){var ie=this;return(0,h.A)(function*(){var te,ze;const O=ie.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),re=oi();if((null!=(null===(te=ie._heartbeatsCache)||void 0===te?void 0:te.heartbeats)||(ie._heartbeatsCache=yield ie._heartbeatsCachePromise,null!=(null===(ze=ie._heartbeatsCache)||void 0===ze?void 0:ze.heartbeats)))&&ie._heartbeatsCache.lastSentHeartbeatDate!==re&&!ie._heartbeatsCache.heartbeats.some(we=>we.date===re))return ie._heartbeatsCache.heartbeats.push({date:re,agent:O}),ie._heartbeatsCache.heartbeats=ie._heartbeatsCache.heartbeats.filter(we=>{const We=new Date(we.date).valueOf();return Date.now()-We<=2592e6}),ie._storage.overwrite(ie._heartbeatsCache)})()}getHeartbeatsHeader(){var ie=this;return(0,h.A)(function*(){var te;if(null===ie._heartbeatsCache&&(yield ie._heartbeatsCachePromise),null==(null===(te=ie._heartbeatsCache)||void 0===te?void 0:te.heartbeats)||0===ie._heartbeatsCache.heartbeats.length)return"";const ze=oi(),{heartbeatsToSend:M,unsentEntries:O}=function Ir(Gt,ie=1024){const te=[];let ze=Gt.slice();for(const M of Gt){const O=te.find(re=>re.agent===M.agent);if(O){if(O.dates.push(M.date),vi(te)>ie){O.dates.pop();break}}else if(te.push({agent:M.agent,dates:[M.date]}),vi(te)>ie){te.pop();break}ze=ze.slice(1)}return{heartbeatsToSend:te,unsentEntries:ze}}(ie._heartbeatsCache.heartbeats),re=(0,ke.Uj)(JSON.stringify({version:2,heartbeats:M}));return ie._heartbeatsCache.lastSentHeartbeatDate=ze,O.length>0?(ie._heartbeatsCache.heartbeats=O,yield ie._storage.overwrite(ie._heartbeatsCache)):(ie._heartbeatsCache.heartbeats=[],ie._storage.overwrite(ie._heartbeatsCache)),re})()}}function oi(){return(new Date).toISOString().substring(0,10)}class xi{constructor(ie){this.app=ie,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}runIndexedDBEnvironmentCheck(){return(0,h.A)(function*(){return!!(0,ke.zW)()&&(0,ke.eX)().then(()=>!0).catch(()=>!1)})()}read(){var ie=this;return(0,h.A)(function*(){if(yield ie._canUseIndexedDBPromise){const ze=yield function Tn(Gt){return Xn.apply(this,arguments)}(ie.app);return null!=ze&&ze.heartbeats?ze:{heartbeats:[]}}return{heartbeats:[]}})()}overwrite(ie){var te=this;return(0,h.A)(function*(){var ze;if(yield te._canUseIndexedDBPromise){const O=yield te.read();return dn(te.app,{lastSentHeartbeatDate:null!==(ze=ie.lastSentHeartbeatDate)&&void 0!==ze?ze:O.lastSentHeartbeatDate,heartbeats:ie.heartbeats})}})()}add(ie){var te=this;return(0,h.A)(function*(){var ze;if(yield te._canUseIndexedDBPromise){const O=yield te.read();return dn(te.app,{lastSentHeartbeatDate:null!==(ze=ie.lastSentHeartbeatDate)&&void 0!==ze?ze:O.lastSentHeartbeatDate,heartbeats:[...O.heartbeats,...ie.heartbeats]})}})()}}function vi(Gt){return(0,ke.Uj)(JSON.stringify({version:2,heartbeats:Gt})).length}!function Ar(Gt){rr(new c.uA("platform-logger",ie=>new kt(ie),"PRIVATE")),rr(new c.uA("heartbeat",ie=>new Ur(ie),"PRIVATE")),Ie(At,"0.10.5",Gt),Ie(At,"0.10.5","esm2017"),Ie("fire-js","")}("")},1362:(Pn,Et,C)=>{"use strict";C.d(Et,{h1:()=>Xe,uA:()=>Z});var h=C(467),c=C(1076);class Z{constructor(Se,be,et){this.name=Se,this.instanceFactory=be,this.type=et,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(Se){return this.instantiationMode=Se,this}setMultipleInstances(Se){return this.multipleInstances=Se,this}setServiceProps(Se){return this.serviceProps=Se,this}setInstanceCreatedCallback(Se){return this.onInstanceCreated=Se,this}}const ke="[DEFAULT]";class ${constructor(Se,be){this.name=Se,this.container=be,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(Se){const be=this.normalizeInstanceIdentifier(Se);if(!this.instancesDeferred.has(be)){const et=new c.cY;if(this.instancesDeferred.set(be,et),this.isInitialized(be)||this.shouldAutoInitialize())try{const it=this.getOrInitializeService({instanceIdentifier:be});it&&et.resolve(it)}catch{}}return this.instancesDeferred.get(be).promise}getImmediate(Se){var be;const et=this.normalizeInstanceIdentifier(null==Se?void 0:Se.identifier),it=null!==(be=null==Se?void 0:Se.optional)&&void 0!==be&&be;if(!this.isInitialized(et)&&!this.shouldAutoInitialize()){if(it)return null;throw Error(`Service ${this.name} is not available`)}try{return this.getOrInitializeService({instanceIdentifier:et})}catch(Ye){if(it)return null;throw Ye}}getComponent(){return this.component}setComponent(Se){if(Se.name!==this.name)throw Error(`Mismatching Component ${Se.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=Se,this.shouldAutoInitialize()){if(function ae(tt){return"EAGER"===tt.instantiationMode}(Se))try{this.getOrInitializeService({instanceIdentifier:ke})}catch{}for(const[be,et]of this.instancesDeferred.entries()){const it=this.normalizeInstanceIdentifier(be);try{const Ye=this.getOrInitializeService({instanceIdentifier:it});et.resolve(Ye)}catch{}}}}clearInstance(Se=ke){this.instancesDeferred.delete(Se),this.instancesOptions.delete(Se),this.instances.delete(Se)}delete(){var Se=this;return(0,h.A)(function*(){const be=Array.from(Se.instances.values());yield Promise.all([...be.filter(et=>"INTERNAL"in et).map(et=>et.INTERNAL.delete()),...be.filter(et=>"_delete"in et).map(et=>et._delete())])})()}isComponentSet(){return null!=this.component}isInitialized(Se=ke){return this.instances.has(Se)}getOptions(Se=ke){return this.instancesOptions.get(Se)||{}}initialize(Se={}){const{options:be={}}=Se,et=this.normalizeInstanceIdentifier(Se.instanceIdentifier);if(this.isInitialized(et))throw Error(`${this.name}(${et}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const it=this.getOrInitializeService({instanceIdentifier:et,options:be});for(const[Ye,at]of this.instancesDeferred.entries())et===this.normalizeInstanceIdentifier(Ye)&&at.resolve(it);return it}onInit(Se,be){var et;const it=this.normalizeInstanceIdentifier(be),Ye=null!==(et=this.onInitCallbacks.get(it))&&void 0!==et?et:new Set;Ye.add(Se),this.onInitCallbacks.set(it,Ye);const at=this.instances.get(it);return at&&Se(at,it),()=>{Ye.delete(Se)}}invokeOnInitCallbacks(Se,be){const et=this.onInitCallbacks.get(be);if(et)for(const it of et)try{it(Se,be)}catch{}}getOrInitializeService({instanceIdentifier:Se,options:be={}}){let et=this.instances.get(Se);if(!et&&this.component&&(et=this.component.instanceFactory(this.container,{instanceIdentifier:(tt=Se,tt===ke?void 0:tt),options:be}),this.instances.set(Se,et),this.instancesOptions.set(Se,be),this.invokeOnInitCallbacks(et,Se),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,Se,et)}catch{}var tt;return et||null}normalizeInstanceIdentifier(Se=ke){return this.component?this.component.multipleInstances?Se:ke:Se}shouldAutoInitialize(){return!!this.component&&"EXPLICIT"!==this.component.instantiationMode}}class Xe{constructor(Se){this.name=Se,this.providers=new Map}addComponent(Se){const be=this.getProvider(Se.name);if(be.isComponentSet())throw new Error(`Component ${Se.name} has already been registered with ${this.name}`);be.setComponent(Se)}addOrOverwriteComponent(Se){this.getProvider(Se.name).isComponentSet()&&this.providers.delete(Se.name),this.addComponent(Se)}getProvider(Se){if(this.providers.has(Se))return this.providers.get(Se);const be=new $(Se,this);return this.providers.set(Se,be),be}getProviders(){return Array.from(this.providers.values())}}},8041:(Pn,Et,C)=>{"use strict";C.d(Et,{$b:()=>c,Vy:()=>ae});const h=[];var c=function(Se){return Se[Se.DEBUG=0]="DEBUG",Se[Se.VERBOSE=1]="VERBOSE",Se[Se.INFO=2]="INFO",Se[Se.WARN=3]="WARN",Se[Se.ERROR=4]="ERROR",Se[Se.SILENT=5]="SILENT",Se}(c||{});const Z={debug:c.DEBUG,verbose:c.VERBOSE,info:c.INFO,warn:c.WARN,error:c.ERROR,silent:c.SILENT},ke=c.INFO,$={[c.DEBUG]:"log",[c.VERBOSE]:"log",[c.INFO]:"info",[c.WARN]:"warn",[c.ERROR]:"error"},he=(Se,be,...et)=>{if(be{"use strict";C.d(Et,{Yq:()=>nt,TS:()=>or,sR:()=>gr,el:()=>sn,Sb:()=>Tr,QE:()=>hr,CF:()=>Mr,Rg:()=>Ie,p4:()=>wr,jM:()=>Ar,_t:()=>Ee,q9:()=>Je,Kb:()=>Gt,CE:()=>Tn,pF:()=>Xn,fL:()=>Ur,YV:()=>gt,er:()=>fr,z3:()=>oi});var h=C(467),c=C(9842),Z=C(4438),ke=C(7650),$=C(177),he=C(5531),ae=C(4442);var kt=C(1413),Cn=C(3726),At=C(4412),st=C(4572),cn=C(7673),vt=C(1635),Re=C(5964),G=C(5558),X=C(3294),ce=C(4341);const ue=["tabsInner"];class Ee{constructor(te){(0,c.A)(this,"menuController",void 0),this.menuController=te}open(te){return this.menuController.open(te)}close(te){return this.menuController.close(te)}toggle(te){return this.menuController.toggle(te)}enable(te,ze){return this.menuController.enable(te,ze)}swipeGesture(te,ze){return this.menuController.swipeGesture(te,ze)}isOpen(te){return this.menuController.isOpen(te)}isEnabled(te){return this.menuController.isEnabled(te)}get(te){return this.menuController.get(te)}getOpen(){return this.menuController.getOpen()}getMenus(){return this.menuController.getMenus()}registerAnimation(te,ze){return this.menuController.registerAnimation(te,ze)}isAnimating(){return this.menuController.isAnimating()}_getOpenSync(){return this.menuController._getOpenSync()}_createAnimation(te,ze){return this.menuController._createAnimation(te,ze)}_register(te){return this.menuController._register(te)}_unregister(te){return this.menuController._unregister(te)}_setOpen(te,ze,M){return this.menuController._setOpen(te,ze,M)}}let fn=(()=>{var ie;class te{constructor(M,O){(0,c.A)(this,"doc",void 0),(0,c.A)(this,"_readyPromise",void 0),(0,c.A)(this,"win",void 0),(0,c.A)(this,"backButton",new kt.B),(0,c.A)(this,"keyboardDidShow",new kt.B),(0,c.A)(this,"keyboardDidHide",new kt.B),(0,c.A)(this,"pause",new kt.B),(0,c.A)(this,"resume",new kt.B),(0,c.A)(this,"resize",new kt.B),this.doc=M,O.run(()=>{var re;let we;this.win=M.defaultView,this.backButton.subscribeWithPriority=function(We,St){return this.subscribe(nn=>nn.register(We,rn=>O.run(()=>St(rn))))},un(this.pause,M,"pause",O),un(this.resume,M,"resume",O),un(this.backButton,M,"ionBackButton",O),un(this.resize,this.win,"resize",O),un(this.keyboardDidShow,this.win,"ionKeyboardDidShow",O),un(this.keyboardDidHide,this.win,"ionKeyboardDidHide",O),this._readyPromise=new Promise(We=>{we=We}),null!==(re=this.win)&&void 0!==re&&re.cordova?M.addEventListener("deviceready",()=>{we("cordova")},{once:!0}):we("dom")})}is(M){return(0,he.a)(this.win,M)}platforms(){return(0,he.g)(this.win)}ready(){return this._readyPromise}get isRTL(){return"rtl"===this.doc.dir}getQueryParam(M){return xn(this.win.location.href,M)}isLandscape(){return!this.isPortrait()}isPortrait(){var M,O;return null===(M=(O=this.win).matchMedia)||void 0===M?void 0:M.call(O,"(orientation: portrait)").matches}testUserAgent(M){const O=this.win.navigator;return!!(null!=O&&O.userAgent&&O.userAgent.indexOf(M)>=0)}url(){return this.win.location.href}width(){return this.win.innerWidth}height(){return this.win.innerHeight}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.KVO($.qQ),Z.KVO(Z.SKi))}),(0,c.A)(te,"\u0275prov",Z.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"})),te})();const xn=(ie,te)=>{te=te.replace(/[[\]\\]/g,"\\$&");const M=new RegExp("[\\?&]"+te+"=([^&#]*)").exec(ie);return M?decodeURIComponent(M[1].replace(/\+/g," ")):null},un=(ie,te,ze,M)=>{te&&te.addEventListener(ze,O=>{M.run(()=>{ie.next(null!=O?O.detail:void 0)})})};let Je=(()=>{var ie;class te{constructor(M,O,re,we){(0,c.A)(this,"location",void 0),(0,c.A)(this,"serializer",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"topOutlet",void 0),(0,c.A)(this,"direction",kn),(0,c.A)(this,"animated",On),(0,c.A)(this,"animationBuilder",void 0),(0,c.A)(this,"guessDirection","forward"),(0,c.A)(this,"guessAnimation",void 0),(0,c.A)(this,"lastNavId",-1),this.location=O,this.serializer=re,this.router=we,we&&we.events.subscribe(We=>{if(We instanceof ke.Z){const St=We.restoredState?We.restoredState.navigationId:We.id;this.guessDirection=this.guessAnimation=St{this.pop(),We()})}navigateForward(M,O={}){return this.setDirection("forward",O.animated,O.animationDirection,O.animation),this.navigate(M,O)}navigateBack(M,O={}){return this.setDirection("back",O.animated,O.animationDirection,O.animation),this.navigate(M,O)}navigateRoot(M,O={}){return this.setDirection("root",O.animated,O.animationDirection,O.animation),this.navigate(M,O)}back(M={animated:!0,animationDirection:"back"}){return this.setDirection("back",M.animated,M.animationDirection,M.animation),this.location.back()}pop(){var M=this;return(0,h.A)(function*(){let O=M.topOutlet;for(;O;){if(yield O.pop())return!0;O=O.parentOutlet}return!1})()}setDirection(M,O,re,we){this.direction=M,this.animated=Sn(M,O,re),this.animationBuilder=we}setTopOutlet(M){this.topOutlet=M}consumeTransition(){let O,M="root";const re=this.animationBuilder;return"auto"===this.direction?(M=this.guessDirection,O=this.guessAnimation):(O=this.animated,M=this.direction),this.direction=kn,this.animated=On,this.animationBuilder=void 0,{direction:M,animation:O,animationBuilder:re}}navigate(M,O){if(Array.isArray(M))return this.router.navigate(M,O);{const re=this.serializer.parse(M.toString());return void 0!==O.queryParams&&(re.queryParams={...O.queryParams}),void 0!==O.fragment&&(re.fragment=O.fragment),this.router.navigateByUrl(re,O)}}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.KVO(fn),Z.KVO($.aZ),Z.KVO(ke.Sd),Z.KVO(ke.Ix,8))}),(0,c.A)(te,"\u0275prov",Z.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"})),te})();const Sn=(ie,te,ze)=>{if(!1!==te){if(void 0!==ze)return ze;if("forward"===ie||"back"===ie)return ie;if("root"===ie&&!0===te)return"forward"}},kn="auto",On=void 0;let or=(()=>{var ie;class te{get(M,O){const re=cr();return re?re.get(M,O):null}getBoolean(M,O){const re=cr();return!!re&&re.getBoolean(M,O)}getNumber(M,O){const re=cr();return re?re.getNumber(M,O):0}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)}),(0,c.A)(te,"\u0275prov",Z.jDH({token:ie,factory:ie.\u0275fac,providedIn:"root"})),te})();const gr=new Z.nKC("USERCONFIG"),cr=()=>{if(typeof window<"u"){const ie=window.Ionic;if(null!=ie&&ie.config)return ie.config}return null};class dr{constructor(te={}){(0,c.A)(this,"data",void 0),this.data=te,console.warn("[Ionic Warning]: NavParams has been deprecated in favor of using Angular's input API. Developers should migrate to either the @Input decorator or the Signals-based input API.")}get(te){return this.data[te]}}let nt=(()=>{var ie;class te{constructor(){(0,c.A)(this,"zone",(0,Z.WQX)(Z.SKi)),(0,c.A)(this,"applicationRef",(0,Z.WQX)(Z.o8S)),(0,c.A)(this,"config",(0,Z.WQX)(gr))}create(M,O,re){var we;return new Lt(M,O,this.applicationRef,this.zone,re,null!==(we=this.config.useSetInputAPI)&&void 0!==we&&we)}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)}),(0,c.A)(te,"\u0275prov",Z.jDH({token:ie,factory:ie.\u0275fac})),te})();class Lt{constructor(te,ze,M,O,re,we){(0,c.A)(this,"environmentInjector",void 0),(0,c.A)(this,"injector",void 0),(0,c.A)(this,"applicationRef",void 0),(0,c.A)(this,"zone",void 0),(0,c.A)(this,"elementReferenceKey",void 0),(0,c.A)(this,"enableSignalsSupport",void 0),(0,c.A)(this,"elRefMap",new WeakMap),(0,c.A)(this,"elEventsMap",new WeakMap),this.environmentInjector=te,this.injector=ze,this.applicationRef=M,this.zone=O,this.elementReferenceKey=re,this.enableSignalsSupport=we}attachViewToDom(te,ze,M,O){return this.zone.run(()=>new Promise(re=>{const we={...M};void 0!==this.elementReferenceKey&&(we[this.elementReferenceKey]=te),re(Xt(this.zone,this.environmentInjector,this.injector,this.applicationRef,this.elRefMap,this.elEventsMap,te,ze,we,O,this.elementReferenceKey,this.enableSignalsSupport))}))}removeViewFromDom(te,ze){return this.zone.run(()=>new Promise(M=>{const O=this.elRefMap.get(ze);if(O){O.destroy(),this.elRefMap.delete(ze);const re=this.elEventsMap.get(ze);re&&(re(),this.elEventsMap.delete(ze))}M()}))}}const Xt=(ie,te,ze,M,O,re,we,We,St,nn,rn,pr)=>{const qn=Z.zZn.create({providers:Vn(St),parent:ze}),Sr=(0,Z.a0P)(We,{environmentInjector:te,elementInjector:qn}),jn=Sr.instance,zr=Sr.location.nativeElement;if(St)if(rn&&void 0!==jn[rn]&&console.error(`[Ionic Error]: ${rn} is a reserved property when using ${we.tagName.toLowerCase()}. Rename or remove the "${rn}" property from ${We.name}.`),!0===pr&&void 0!==Sr.setInput){const{modal:Pr,popover:Nr,...er}=St;for(const Rr in er)Sr.setInput(Rr,er[Rr]);void 0!==Pr&&Object.assign(jn,{modal:Pr}),void 0!==Nr&&Object.assign(jn,{popover:Nr})}else Object.assign(jn,St);if(nn)for(const Pr of nn)zr.classList.add(Pr);const $r=En(ie,jn,zr);return we.appendChild(zr),M.attachView(Sr.hostView),O.set(zr,Sr),re.set(zr,$r),zr},yn=[ae.L,ae.a,ae.b,ae.c,ae.d],En=(ie,te,ze)=>ie.run(()=>{const M=yn.filter(O=>"function"==typeof te[O]).map(O=>{const re=we=>te[O](we.detail);return ze.addEventListener(O,re),()=>ze.removeEventListener(O,re)});return()=>M.forEach(O=>O())}),Fr=new Z.nKC("NavParamsToken"),Vn=ie=>[{provide:Fr,useValue:ie},{provide:dr,useFactory:$n,deps:[Fr]}],$n=ie=>new dr(ie),In=(ie,te)=>{const ze=ie.prototype;te.forEach(M=>{Object.defineProperty(ze,M,{get(){return this.el[M]},set(O){this.z.runOutsideAngular(()=>this.el[M]=O)}})})},on=(ie,te)=>{const ze=ie.prototype;te.forEach(M=>{ze[M]=function(){const O=arguments;return this.z.runOutsideAngular(()=>this.el[M].apply(this.el,O))}})},mr=(ie,te,ze)=>{ze.forEach(M=>ie[M]=(0,Cn.R)(te,M))};function br(ie){return function(ze){const{defineCustomElementFn:M,inputs:O,methods:re}=ie;return void 0!==M&&M(),O&&In(ze,O),re&&on(ze,re),ze}}const Vr=["alignment","animated","arrow","keepContentsMounted","backdropDismiss","cssClass","dismissOnSelect","enterAnimation","event","isOpen","keyboardClose","leaveAnimation","mode","showBackdrop","translucent","trigger","triggerAction","reference","size","side"],rr=["present","dismiss","onDidDismiss","onWillDismiss"];let Mr=(()=>{var ie;let te=((0,c.A)(ie=class{constructor(M,O,re){(0,c.A)(this,"z",void 0),(0,c.A)(this,"template",void 0),(0,c.A)(this,"isCmpOpen",!1),(0,c.A)(this,"el",void 0),this.z=re,this.el=O.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,M.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,M.detectChanges()}),mr(this,this.el,["ionPopoverDidPresent","ionPopoverWillPresent","ionPopoverWillDismiss","ionPopoverDidDismiss","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(M){return new(M||ie)(Z.rXU(Z.gRc),Z.rXU(Z.aKT),Z.rXU(Z.SKi))}),(0,c.A)(ie,"\u0275dir",Z.FsC({type:ie,selectors:[["ion-popover"]],contentQueries:function(M,O,re){if(1&M&&Z.wni(re,Z.C4Q,5),2&M){let we;Z.mGM(we=Z.lsd())&&(O.template=we.first)}},inputs:{alignment:"alignment",animated:"animated",arrow:"arrow",keepContentsMounted:"keepContentsMounted",backdropDismiss:"backdropDismiss",cssClass:"cssClass",dismissOnSelect:"dismissOnSelect",enterAnimation:"enterAnimation",event:"event",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger",triggerAction:"triggerAction",reference:"reference",size:"size",side:"side"}})),ie);return te=(0,vt.Cg)([br({inputs:Vr,methods:rr})],te),te})();const sr=["animated","keepContentsMounted","backdropBreakpoint","backdropDismiss","breakpoints","canDismiss","cssClass","enterAnimation","event","handle","handleBehavior","initialBreakpoint","isOpen","keyboardClose","leaveAnimation","mode","presentingElement","showBackdrop","translucent","trigger"],ii=["present","dismiss","onDidDismiss","onWillDismiss","setCurrentBreakpoint","getCurrentBreakpoint"];let Tr=(()=>{var ie;let te=((0,c.A)(ie=class{constructor(M,O,re){(0,c.A)(this,"z",void 0),(0,c.A)(this,"template",void 0),(0,c.A)(this,"isCmpOpen",!1),(0,c.A)(this,"el",void 0),this.z=re,this.el=O.nativeElement,this.el.addEventListener("ionMount",()=>{this.isCmpOpen=!0,M.detectChanges()}),this.el.addEventListener("didDismiss",()=>{this.isCmpOpen=!1,M.detectChanges()}),mr(this,this.el,["ionModalDidPresent","ionModalWillPresent","ionModalWillDismiss","ionModalDidDismiss","ionBreakpointDidChange","didPresent","willPresent","willDismiss","didDismiss"])}},"\u0275fac",function(M){return new(M||ie)(Z.rXU(Z.gRc),Z.rXU(Z.aKT),Z.rXU(Z.SKi))}),(0,c.A)(ie,"\u0275dir",Z.FsC({type:ie,selectors:[["ion-modal"]],contentQueries:function(M,O,re){if(1&M&&Z.wni(re,Z.C4Q,5),2&M){let we;Z.mGM(we=Z.lsd())&&(O.template=we.first)}},inputs:{animated:"animated",keepContentsMounted:"keepContentsMounted",backdropBreakpoint:"backdropBreakpoint",backdropDismiss:"backdropDismiss",breakpoints:"breakpoints",canDismiss:"canDismiss",cssClass:"cssClass",enterAnimation:"enterAnimation",event:"event",handle:"handle",handleBehavior:"handleBehavior",initialBreakpoint:"initialBreakpoint",isOpen:"isOpen",keyboardClose:"keyboardClose",leaveAnimation:"leaveAnimation",mode:"mode",presentingElement:"presentingElement",showBackdrop:"showBackdrop",translucent:"translucent",trigger:"trigger"}})),ie);return te=(0,vt.Cg)([br({inputs:sr,methods:ii})],te),te})();const Br=(ie,te)=>((ie=ie.filter(ze=>ze.stackId!==te.stackId)).push(te),ie),li=(ie,te)=>{const ze=ie.createUrlTree(["."],{relativeTo:te});return ie.serializeUrl(ze)},Di=(ie,te)=>!te||ie.stackId!==te.stackId,Zr=(ie,te)=>{if(!ie)return;const ze=ve(te);for(let M=0;M=ie.length)return ze[M];if(ze[M]!==ie[M])return}},ve=ie=>ie.split("/").map(te=>te.trim()).filter(te=>""!==te),rt=ie=>{ie&&(ie.ref.destroy(),ie.unlistenEvents())};class Nt{constructor(te,ze,M,O,re,we){(0,c.A)(this,"containerEl",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"zone",void 0),(0,c.A)(this,"location",void 0),(0,c.A)(this,"views",[]),(0,c.A)(this,"runningTask",void 0),(0,c.A)(this,"skipTransition",!1),(0,c.A)(this,"tabsPrefix",void 0),(0,c.A)(this,"activeView",void 0),(0,c.A)(this,"nextId",0),this.containerEl=ze,this.router=M,this.navCtrl=O,this.zone=re,this.location=we,this.tabsPrefix=void 0!==te?ve(te):void 0}createView(te,ze){var M;const O=li(this.router,ze),re=null==te||null===(M=te.location)||void 0===M?void 0:M.nativeElement,we=En(this.zone,te.instance,re);return{id:this.nextId++,stackId:Zr(this.tabsPrefix,O),unlistenEvents:we,element:re,ref:te,url:O}}getExistingView(te){const ze=li(this.router,te),M=this.views.find(O=>O.url===ze);return M&&M.ref.changeDetectorRef.reattach(),M}setActive(te){var ze,M;const O=this.navCtrl.consumeTransition();let{direction:re,animation:we,animationBuilder:We}=O;const St=this.activeView,nn=Di(te,St);nn&&(re="back",we=void 0);const rn=this.views.slice();let pr;const qn=this.router;qn.getCurrentNavigation?pr=qn.getCurrentNavigation():null!==(ze=qn.navigations)&&void 0!==ze&&ze.value&&(pr=qn.navigations.value),null!==(M=pr)&&void 0!==M&&null!==(M=M.extras)&&void 0!==M&&M.replaceUrl&&this.views.length>0&&this.views.splice(-1,1);const Sr=this.views.includes(te),jn=this.insertView(te,re);Sr||te.ref.changeDetectorRef.detectChanges();const zr=te.animationBuilder;return void 0===We&&"back"===re&&!nn&&void 0!==zr&&(We=zr),St&&(St.animationBuilder=We),this.zone.runOutsideAngular(()=>this.wait(()=>(St&&St.ref.changeDetectorRef.detach(),te.ref.changeDetectorRef.reattach(),this.transition(te,St,we,this.canGoBack(1),!1,We).then(()=>pt(te,jn,rn,this.location,this.zone)).then(()=>({enteringView:te,direction:re,animation:we,tabSwitch:nn})))))}canGoBack(te,ze=this.getActiveStackId()){return this.getStack(ze).length>te}pop(te,ze=this.getActiveStackId()){return this.zone.run(()=>{const M=this.getStack(ze);if(M.length<=te)return Promise.resolve(!1);const O=M[M.length-te-1];let re=O.url;const we=O.savedData;if(we){var We;const nn=we.get("primary");null!=nn&&null!==(We=nn.route)&&void 0!==We&&null!==(We=We._routerState)&&void 0!==We&&We.snapshot.url&&(re=nn.route._routerState.snapshot.url)}const{animationBuilder:St}=this.navCtrl.consumeTransition();return this.navCtrl.navigateBack(re,{...O.savedExtras,animation:St}).then(()=>!0)})}startBackTransition(){const te=this.activeView;if(te){const ze=this.getStack(te.stackId),M=ze[ze.length-2],O=M.animationBuilder;return this.wait(()=>this.transition(M,te,"back",this.canGoBack(2),!0,O))}return Promise.resolve()}endBackTransition(te){te?(this.skipTransition=!0,this.pop(1)):this.activeView&&de(this.activeView,this.views,this.views,this.location,this.zone)}getLastUrl(te){const ze=this.getStack(te);return ze.length>0?ze[ze.length-1]:void 0}getRootUrl(te){const ze=this.getStack(te);return ze.length>0?ze[0]:void 0}getActiveStackId(){return this.activeView?this.activeView.stackId:void 0}getActiveView(){return this.activeView}hasRunningTask(){return void 0!==this.runningTask}destroy(){this.containerEl=void 0,this.views.forEach(rt),this.activeView=void 0,this.views=[]}getStack(te){return this.views.filter(ze=>ze.stackId===te)}insertView(te,ze){return this.activeView=te,this.views=((ie,te,ze)=>"root"===ze?Br(ie,te):"forward"===ze?((ie,te)=>(ie.indexOf(te)>=0?ie=ie.filter(M=>M.stackId!==te.stackId||M.id<=te.id):ie.push(te),ie))(ie,te):((ie,te)=>ie.indexOf(te)>=0?ie.filter(M=>M.stackId!==te.stackId||M.id<=te.id):Br(ie,te))(ie,te))(this.views,te,ze),this.views.slice()}transition(te,ze,M,O,re,we){if(this.skipTransition)return this.skipTransition=!1,Promise.resolve(!1);if(ze===te)return Promise.resolve(!1);const We=te?te.element:void 0,St=ze?ze.element:void 0,nn=this.containerEl;return We&&We!==St&&(We.classList.add("ion-page"),We.classList.add("ion-page-invisible"),nn.commit)?nn.commit(We,St,{duration:void 0===M?0:void 0,direction:M,showGoBack:O,progressAnimation:re,animationBuilder:we}):Promise.resolve(!1)}wait(te){var ze=this;return(0,h.A)(function*(){void 0!==ze.runningTask&&(yield ze.runningTask,ze.runningTask=void 0);const M=ze.runningTask=te();return M.finally(()=>ze.runningTask=void 0),M})()}}const pt=(ie,te,ze,M,O)=>"function"==typeof requestAnimationFrame?new Promise(re=>{requestAnimationFrame(()=>{de(ie,te,ze,M,O),re()})}):Promise.resolve(),de=(ie,te,ze,M,O)=>{O.run(()=>ze.filter(re=>!te.includes(re)).forEach(rt)),te.forEach(re=>{const We=M.path().split("?")[0].split("#")[0];if(re!==ie&&re.url!==We){const St=re.element;St.setAttribute("aria-hidden","true"),St.classList.add("ion-page-hidden"),re.ref.changeDetectorRef.detach()}})};let Ie=(()=>{var ie;class te{get activatedComponentRef(){return this.activated}set animation(M){this.nativeEl.animation=M}set animated(M){this.nativeEl.animated=M}set swipeGesture(M){this._swipeGesture=M,this.nativeEl.swipeHandler=M?{canStart:()=>this.stackCtrl.canGoBack(1)&&!this.stackCtrl.hasRunningTask(),onStart:()=>this.stackCtrl.startBackTransition(),onEnd:O=>this.stackCtrl.endBackTransition(O)}:void 0}constructor(M,O,re,we,We,St,nn,rn){(0,c.A)(this,"parentOutlet",void 0),(0,c.A)(this,"nativeEl",void 0),(0,c.A)(this,"activatedView",null),(0,c.A)(this,"tabsPrefix",void 0),(0,c.A)(this,"_swipeGesture",void 0),(0,c.A)(this,"stackCtrl",void 0),(0,c.A)(this,"proxyMap",new WeakMap),(0,c.A)(this,"currentActivatedRoute$",new At.t(null)),(0,c.A)(this,"activated",null),(0,c.A)(this,"_activatedRoute",null),(0,c.A)(this,"name",ke.Xk),(0,c.A)(this,"stackWillChange",new Z.bkB),(0,c.A)(this,"stackDidChange",new Z.bkB),(0,c.A)(this,"activateEvents",new Z.bkB),(0,c.A)(this,"deactivateEvents",new Z.bkB),(0,c.A)(this,"parentContexts",(0,Z.WQX)(ke.Zp)),(0,c.A)(this,"location",(0,Z.WQX)(Z.c1b)),(0,c.A)(this,"environmentInjector",(0,Z.WQX)(Z.uvJ)),(0,c.A)(this,"inputBinder",(0,Z.WQX)($t,{optional:!0})),(0,c.A)(this,"supportsBindingToComponentInputs",!0),(0,c.A)(this,"config",(0,Z.WQX)(or)),(0,c.A)(this,"navCtrl",(0,Z.WQX)(Je)),this.parentOutlet=rn,this.nativeEl=we.nativeElement,this.name=M||ke.Xk,this.tabsPrefix="true"===O?li(We,nn):void 0,this.stackCtrl=new Nt(this.tabsPrefix,this.nativeEl,We,this.navCtrl,St,re),this.parentContexts.onChildOutletCreated(this.name,this)}ngOnDestroy(){var M;this.stackCtrl.destroy(),null===(M=this.inputBinder)||void 0===M||M.unsubscribeFromRouteData(this)}getContext(){return this.parentContexts.getContext(this.name)}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(!this.activated){const M=this.getContext();null!=M&&M.route&&this.activateWith(M.route,M.injector)}new Promise(M=>((ie,te)=>{ie.componentOnReady?ie.componentOnReady().then(ze=>te(ze)):(ie=>{"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(ie):"function"==typeof requestAnimationFrame?requestAnimationFrame(ie):setTimeout(ie)})(()=>te(ie))})(this.nativeEl,M)).then(()=>{void 0===this._swipeGesture&&(this.swipeGesture=this.config.getBoolean("swipeBackEnabled","ios"===this.nativeEl.mode))})}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance}get activatedRoute(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){throw new Error("incompatible reuse strategy")}attach(M,O){throw new Error("incompatible reuse strategy")}deactivate(){if(this.activated){if(this.activatedView){const O=this.getContext();this.activatedView.savedData=new Map(O.children.contexts);const re=this.activatedView.savedData.get("primary");if(re&&O.route&&(re.route={...O.route}),this.activatedView.savedExtras={},O.route){const we=O.route.snapshot;this.activatedView.savedExtras.queryParams=we.queryParams,this.activatedView.savedExtras.fragment=we.fragment}}const M=this.component;this.activatedView=null,this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(M)}}activateWith(M,O){var re;if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=M;let we,We=this.stackCtrl.getExistingView(M);if(We){we=this.activated=We.ref;const rn=We.savedData;rn&&(this.getContext().children.contexts=rn),this.updateActivatedRouteProxy(we.instance,M)}else{var St;const rn=M._futureSnapshot,pr=this.parentContexts.getOrCreateContext(this.name).children,qn=new At.t(null),Sr=this.createActivatedRouteProxy(qn,M),jn=new Ge(Sr,pr,this.location.injector),zr=null!==(St=rn.routeConfig.component)&&void 0!==St?St:rn.component;we=this.activated=this.outletContent.createComponent(zr,{index:this.outletContent.length,injector:jn,environmentInjector:null!=O?O:this.environmentInjector}),qn.next(we.instance),We=this.stackCtrl.createView(this.activated,M),this.proxyMap.set(we.instance,Sr),this.currentActivatedRoute$.next({component:we.instance,activatedRoute:M})}null===(re=this.inputBinder)||void 0===re||re.bindActivatedRouteToOutletComponent(this),this.activatedView=We,this.navCtrl.setTopOutlet(this);const nn=this.stackCtrl.getActiveView();this.stackWillChange.emit({enteringView:We,tabSwitch:Di(We,nn)}),this.stackCtrl.setActive(We).then(rn=>{this.activateEvents.emit(we.instance),this.stackDidChange.emit(rn)})}canGoBack(M=1,O){return this.stackCtrl.canGoBack(M,O)}pop(M=1,O){return this.stackCtrl.pop(M,O)}getLastUrl(M){const O=this.stackCtrl.getLastUrl(M);return O?O.url:void 0}getLastRouteView(M){return this.stackCtrl.getLastUrl(M)}getRootView(M){return this.stackCtrl.getRootUrl(M)}getActiveStackId(){return this.stackCtrl.getActiveStackId()}createActivatedRouteProxy(M,O){const re=new ke.nX;return re._futureSnapshot=O._futureSnapshot,re._routerState=O._routerState,re.snapshot=O.snapshot,re.outlet=O.outlet,re.component=O.component,re._paramMap=this.proxyObservable(M,"paramMap"),re._queryParamMap=this.proxyObservable(M,"queryParamMap"),re.url=this.proxyObservable(M,"url"),re.params=this.proxyObservable(M,"params"),re.queryParams=this.proxyObservable(M,"queryParams"),re.fragment=this.proxyObservable(M,"fragment"),re.data=this.proxyObservable(M,"data"),re}proxyObservable(M,O){return M.pipe((0,Re.p)(re=>!!re),(0,G.n)(re=>this.currentActivatedRoute$.pipe((0,Re.p)(we=>null!==we&&we.component===re),(0,G.n)(we=>we&&we.activatedRoute[O]),(0,X.F)())))}updateActivatedRouteProxy(M,O){const re=this.proxyMap.get(M);if(!re)throw new Error("Could not find activated route proxy for view");re._futureSnapshot=O._futureSnapshot,re._routerState=O._routerState,re.snapshot=O.snapshot,re.outlet=O.outlet,re.component=O.component,this.currentActivatedRoute$.next({component:M,activatedRoute:O})}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.kS0("name"),Z.kS0("tabs"),Z.rXU($.aZ),Z.rXU(Z.aKT),Z.rXU(ke.Ix),Z.rXU(Z.SKi),Z.rXU(ke.nX),Z.rXU(ie,12))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:ie,selectors:[["ion-router-outlet"]],inputs:{animated:"animated",animation:"animation",mode:"mode",swipeGesture:"swipeGesture",name:"name"},outputs:{stackWillChange:"stackWillChange",stackDidChange:"stackDidChange",activateEvents:"activate",deactivateEvents:"deactivate"},exportAs:["outlet"]})),te})();class Ge{constructor(te,ze,M){(0,c.A)(this,"route",void 0),(0,c.A)(this,"childContexts",void 0),(0,c.A)(this,"parent",void 0),this.route=te,this.childContexts=ze,this.parent=M}get(te,ze){return te===ke.nX?this.route:te===ke.Zp?this.childContexts:this.parent.get(te,ze)}}const $t=new Z.nKC("");let le=(()=>{var ie;class te{constructor(){(0,c.A)(this,"outletDataSubscriptions",new Map)}bindActivatedRouteToOutletComponent(M){this.unsubscribeFromRouteData(M),this.subscribeToRouteData(M)}unsubscribeFromRouteData(M){var O;null===(O=this.outletDataSubscriptions.get(M))||void 0===O||O.unsubscribe(),this.outletDataSubscriptions.delete(M)}subscribeToRouteData(M){const{activatedRoute:O}=M,re=(0,st.z)([O.queryParams,O.params,O.data]).pipe((0,G.n)(([we,We,St],nn)=>(St={...we,...We,...St},0===nn?(0,cn.of)(St):Promise.resolve(St)))).subscribe(we=>{if(!M.isActivated||!M.activatedComponentRef||M.activatedRoute!==O||null===O.component)return void this.unsubscribeFromRouteData(M);const We=(0,Z.HJs)(O.component);if(We)for(const{templateName:St}of We.inputs)M.activatedComponentRef.setInput(St,we[St]);else this.unsubscribeFromRouteData(M)});this.outletDataSubscriptions.set(M,re)}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)}),(0,c.A)(te,"\u0275prov",Z.jDH({token:ie,factory:ie.\u0275fac})),te})();const gt=()=>({provide:$t,useFactory:ft,deps:[ke.Ix]});function ft(ie){return null!=ie&&ie.componentInputBindingEnabled?new le:null}const Qt=["color","defaultHref","disabled","icon","mode","routerAnimation","text","type"];let sn=(()=>{var ie;let te=((0,c.A)(ie=class{constructor(M,O,re,we,We,St){(0,c.A)(this,"routerOutlet",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"config",void 0),(0,c.A)(this,"r",void 0),(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.routerOutlet=M,this.navCtrl=O,this.config=re,this.r=we,this.z=We,St.detach(),this.el=this.r.nativeElement}onClick(M){var O;const re=this.defaultHref||this.config.get("backButtonDefaultHref");null!==(O=this.routerOutlet)&&void 0!==O&&O.canGoBack()?(this.navCtrl.setDirection("back",void 0,void 0,this.routerAnimation),this.routerOutlet.pop(),M.preventDefault()):null!=re&&(this.navCtrl.navigateBack(re,{animation:this.routerAnimation}),M.preventDefault())}},"\u0275fac",function(M){return new(M||ie)(Z.rXU(Ie,8),Z.rXU(Je),Z.rXU(or),Z.rXU(Z.aKT),Z.rXU(Z.SKi),Z.rXU(Z.gRc))}),(0,c.A)(ie,"\u0275dir",Z.FsC({type:ie,hostBindings:function(M,O){1&M&&Z.bIt("click",function(we){return O.onClick(we)})},inputs:{color:"color",defaultHref:"defaultHref",disabled:"disabled",icon:"icon",mode:"mode",routerAnimation:"routerAnimation",text:"text",type:"type"}})),ie);return te=(0,vt.Cg)([br({inputs:Qt})],te),te})(),Tn=(()=>{var ie;class te{constructor(M,O,re,we,We){(0,c.A)(this,"locationStrategy",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"routerLink",void 0),(0,c.A)(this,"routerDirection","forward"),(0,c.A)(this,"routerAnimation",void 0),this.locationStrategy=M,this.navCtrl=O,this.elementRef=re,this.router=we,this.routerLink=We}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var M;if(null!==(M=this.routerLink)&&void 0!==M&&M.urlTree){const O=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=O}}onClick(M){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation),M.preventDefault()}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.rXU($.hb),Z.rXU(Je),Z.rXU(Z.aKT),Z.rXU(ke.Ix),Z.rXU(ke.Wk,8))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:ie,selectors:[["","routerLink","",5,"a",5,"area"]],hostBindings:function(M,O){1&M&&Z.bIt("click",function(we){return O.onClick(we)})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[Z.OA$]})),te})(),Xn=(()=>{var ie;class te{constructor(M,O,re,we,We){(0,c.A)(this,"locationStrategy",void 0),(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"router",void 0),(0,c.A)(this,"routerLink",void 0),(0,c.A)(this,"routerDirection","forward"),(0,c.A)(this,"routerAnimation",void 0),this.locationStrategy=M,this.navCtrl=O,this.elementRef=re,this.router=we,this.routerLink=We}ngOnInit(){this.updateTargetUrlAndHref()}ngOnChanges(){this.updateTargetUrlAndHref()}updateTargetUrlAndHref(){var M;if(null!==(M=this.routerLink)&&void 0!==M&&M.urlTree){const O=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.routerLink.urlTree));this.elementRef.nativeElement.href=O}}onClick(){this.navCtrl.setDirection(this.routerDirection,void 0,void 0,this.routerAnimation)}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.rXU($.hb),Z.rXU(Je),Z.rXU(Z.aKT),Z.rXU(ke.Ix),Z.rXU(ke.Wk,8))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:ie,selectors:[["a","routerLink",""],["area","routerLink",""]],hostBindings:function(M,O){1&M&&Z.bIt("click",function(){return O.onClick()})},inputs:{routerDirection:"routerDirection",routerAnimation:"routerAnimation"},features:[Z.OA$]})),te})();const dn=["animated","animation","root","rootParams","swipeGesture"],wn=["push","insert","insertPages","pop","popTo","popToRoot","removeIndex","setRoot","setPages","getActive","getByIndex","canGoBack","getPrevious"];let hr=(()=>{var ie;let te=((0,c.A)(ie=class{constructor(M,O,re,we,We,St){(0,c.A)(this,"z",void 0),(0,c.A)(this,"el",void 0),this.z=We,St.detach(),this.el=M.nativeElement,M.nativeElement.delegate=we.create(O,re),mr(this,this.el,["ionNavDidChange","ionNavWillChange"])}},"\u0275fac",function(M){return new(M||ie)(Z.rXU(Z.aKT),Z.rXU(Z.uvJ),Z.rXU(Z.zZn),Z.rXU(nt),Z.rXU(Z.SKi),Z.rXU(Z.gRc))}),(0,c.A)(ie,"\u0275dir",Z.FsC({type:ie,inputs:{animated:"animated",animation:"animation",root:"root",rootParams:"rootParams",swipeGesture:"swipeGesture"}})),ie);return te=(0,vt.Cg)([br({inputs:dn,methods:wn})],te),te})(),wr=(()=>{var ie;class te{constructor(M){(0,c.A)(this,"navCtrl",void 0),(0,c.A)(this,"tabsInner",void 0),(0,c.A)(this,"ionTabsWillChange",new Z.bkB),(0,c.A)(this,"ionTabsDidChange",new Z.bkB),(0,c.A)(this,"tabBarSlot","bottom"),this.navCtrl=M}ngAfterContentInit(){this.detectSlotChanges()}ngAfterContentChecked(){this.detectSlotChanges()}onStackWillChange({enteringView:M,tabSwitch:O}){const re=M.stackId;O&&void 0!==re&&this.ionTabsWillChange.emit({tab:re})}onStackDidChange({enteringView:M,tabSwitch:O}){const re=M.stackId;O&&void 0!==re&&(this.tabBar&&(this.tabBar.selectedTab=re),this.ionTabsDidChange.emit({tab:re}))}select(M){const O="string"==typeof M,re=O?M:M.detail.tab,we=this.outlet.getActiveStackId()===re,We=`${this.outlet.tabsPrefix}/${re}`;if(O||M.stopPropagation(),we){const St=this.outlet.getActiveStackId(),nn=this.outlet.getLastRouteView(St);if((null==nn?void 0:nn.url)===We)return;const rn=this.outlet.getRootView(re);return this.navCtrl.navigateRoot(We,{...rn&&We===rn.url&&rn.savedExtras,animated:!0,animationDirection:"back"})}{const St=this.outlet.getLastRouteView(re);return this.navCtrl.navigateRoot((null==St?void 0:St.url)||We,{...null==St?void 0:St.savedExtras,animated:!0,animationDirection:"back"})}}getSelected(){return this.outlet.getActiveStackId()}detectSlotChanges(){this.tabBars.forEach(M=>{const O=M.el.getAttribute("slot");O!==this.tabBarSlot&&(this.tabBarSlot=O,this.relocateTabBar())})}relocateTabBar(){const M=this.tabBar.el;"top"===this.tabBarSlot?this.tabsInner.nativeElement.before(M):this.tabsInner.nativeElement.after(M)}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.rXU(Je))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:ie,selectors:[["ion-tabs"]],viewQuery:function(M,O){if(1&M&&Z.GBs(ue,7,Z.aKT),2&M){let re;Z.mGM(re=Z.lsd())&&(O.tabsInner=re.first)}},hostBindings:function(M,O){1&M&&Z.bIt("ionTabButtonClick",function(we){return O.select(we)})},outputs:{ionTabsWillChange:"ionTabsWillChange",ionTabsDidChange:"ionTabsDidChange"}})),te})();const fr=ie=>"function"==typeof __zone_symbol__requestAnimationFrame?__zone_symbol__requestAnimationFrame(ie):"function"==typeof requestAnimationFrame?requestAnimationFrame(ie):setTimeout(ie);let Ur=(()=>{var ie;class te{constructor(M,O){(0,c.A)(this,"injector",void 0),(0,c.A)(this,"elementRef",void 0),(0,c.A)(this,"onChange",()=>{}),(0,c.A)(this,"onTouched",()=>{}),(0,c.A)(this,"lastValue",void 0),(0,c.A)(this,"statusChanges",void 0),this.injector=M,this.elementRef=O}writeValue(M){this.elementRef.nativeElement.value=this.lastValue=M,oi(this.elementRef)}handleValueChange(M,O){M===this.elementRef.nativeElement&&(O!==this.lastValue&&(this.lastValue=O,this.onChange(O)),oi(this.elementRef))}_handleBlurEvent(M){M===this.elementRef.nativeElement&&(this.onTouched(),oi(this.elementRef))}registerOnChange(M){this.onChange=M}registerOnTouched(M){this.onTouched=M}setDisabledState(M){this.elementRef.nativeElement.disabled=M}ngOnDestroy(){this.statusChanges&&this.statusChanges.unsubscribe()}ngAfterViewInit(){let M;try{M=this.injector.get(ce.vO)}catch{}if(!M)return;M.statusChanges&&(this.statusChanges=M.statusChanges.subscribe(()=>oi(this.elementRef)));const O=M.control;O&&["markAsTouched","markAllAsTouched","markAsUntouched","markAsDirty","markAsPristine"].forEach(we=>{if(typeof O[we]<"u"){const We=O[we].bind(O);O[we]=(...St)=>{We(...St),oi(this.elementRef)}}})}}return ie=te,(0,c.A)(te,"\u0275fac",function(M){return new(M||ie)(Z.rXU(Z.zZn),Z.rXU(Z.aKT))}),(0,c.A)(te,"\u0275dir",Z.FsC({type:ie,hostBindings:function(M,O){1&M&&Z.bIt("ionBlur",function(we){return O._handleBlurEvent(we.target)})}})),te})();const oi=ie=>{fr(()=>{const te=ie.nativeElement,ze=null!=te.value&&te.value.toString().length>0,M=Ir(te);xi(te,M);const O=te.closest("ion-item");O&&xi(O,ze?[...M,"item-has-value"]:M)})},Ir=ie=>{const te=ie.classList,ze=[];for(let M=0;M{const ze=ie.classList;ze.remove("ion-valid","ion-invalid","ion-touched","ion-untouched","ion-dirty","ion-pristine"),ze.add(...te)},vi=(ie,te)=>ie.substring(0,te.length)===te;class Ar{shouldDetach(te){return!1}shouldAttach(te){return!1}store(te,ze){}retrieve(te){return null}shouldReuseRoute(te,ze){if(te.routeConfig!==ze.routeConfig)return!1;const M=te.params,O=ze.params,re=Object.keys(M),we=Object.keys(O);if(re.length!==we.length)return!1;for(const We of re)if(O[We]!==M[We])return!1;return!0}}class Gt{constructor(te){(0,c.A)(this,"ctrl",void 0),this.ctrl=te}create(te){return this.ctrl.create(te||{})}dismiss(te,ze,M){return this.ctrl.dismiss(te,ze,M)}getTop(){return this.ctrl.getTop()}}},7863:(Pn,Et,C)=>{"use strict";C.d(Et,{hG:()=>yi,hB:()=>vt,U1:()=>Sn,mC:()=>kn,Jm:()=>dr,QW:()=>nt,b_:()=>Lt,I9:()=>Xt,ME:()=>yn,HW:()=>En,tN:()=>Fr,eY:()=>Vn,ZB:()=>$n,hU:()=>In,W9:()=>on,Q8:()=>Vr,M0:()=>sr,lO:()=>ii,eU:()=>Tr,iq:()=>yr,$w:()=>li,uz:()=>Zr,Dg:()=>ve,he:()=>Ie,nf:()=>Ge,oS:()=>gt,MC:()=>ft,cA:()=>Qt,Sb:()=>Hr,To:()=>Ir,Ki:()=>xi,Rg:()=>Nr,ln:()=>ie,Gp:()=>ze,eP:()=>M,Nm:()=>O,Ip:()=>re,HP:()=>St,nc:()=>qn,BC:()=>jn,ai:()=>Pr,bv:()=>Hn,Xi:()=>Pt,_t:()=>ge,N7:()=>hi,oY:()=>Yr,Je:()=>G,Gw:()=>X});var h=C(9842),c=C(4438),Z=C(4341),ke=C(2872),$=C(1635),he=C(3726),ae=C(177),Xe=C(7650),Ye=(C(9986),C(2725),C(8454),C(3314),C(8607),C(3664)),at=C(464),mt=C(5465),xt=C(6002),zt=(C(8476),C(9672));C(1970),C(6411);var _e=C(467);const $e=Ye.i,Le=function(){var w=(0,_e.A)(function*(H,oe){if(!(typeof window>"u"))return yield $e(),(0,zt.b)(JSON.parse('[["ion-menu_3",[[33,"ion-menu-button",{"color":[513],"disabled":[4],"menu":[1],"autoHide":[4,"auto-hide"],"type":[1],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]],[33,"ion-menu",{"contentId":[513,"content-id"],"menuId":[513,"menu-id"],"type":[1025],"disabled":[1028],"side":[513],"swipeGesture":[4,"swipe-gesture"],"maxEdgeStart":[2,"max-edge-start"],"isPaneVisible":[32],"isEndSide":[32],"isOpen":[64],"isActive":[64],"open":[64],"close":[64],"toggle":[64],"setOpen":[64]},[[16,"ionSplitPaneVisible","onSplitPaneChanged"],[2,"click","onBackdropClick"]],{"type":["typeChanged"],"disabled":["disabledChanged"],"side":["sideChanged"],"swipeGesture":["swipeGestureChanged"]}],[1,"ion-menu-toggle",{"menu":[1],"autoHide":[4,"auto-hide"],"visible":[32]},[[16,"ionMenuChange","visibilityChanged"],[16,"ionSplitPaneVisible","visibilityChanged"]]]]],["ion-input-password-toggle",[[33,"ion-input-password-toggle",{"color":[513],"showIcon":[1,"show-icon"],"hideIcon":[1,"hide-icon"],"type":[1025]},null,{"type":["onTypeChange"]}]]],["ion-fab_3",[[33,"ion-fab-button",{"color":[513],"activated":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1],"show":[4],"translucent":[4],"type":[1],"size":[1],"closeIcon":[1,"close-icon"]}],[1,"ion-fab",{"horizontal":[1],"vertical":[1],"edge":[4],"activated":[1028],"close":[64],"toggle":[64]},null,{"activated":["activatedChanged"]}],[1,"ion-fab-list",{"activated":[4],"side":[1]},null,{"activated":["activatedChanged"]}]]],["ion-refresher_2",[[0,"ion-refresher-content",{"pullingIcon":[1025,"pulling-icon"],"pullingText":[1,"pulling-text"],"refreshingSpinner":[1025,"refreshing-spinner"],"refreshingText":[1,"refreshing-text"]}],[32,"ion-refresher",{"pullMin":[2,"pull-min"],"pullMax":[2,"pull-max"],"closeDuration":[1,"close-duration"],"snapbackDuration":[1,"snapback-duration"],"pullFactor":[2,"pull-factor"],"disabled":[4],"nativeRefresher":[32],"state":[32],"complete":[64],"cancel":[64],"getProgress":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-back-button",[[33,"ion-back-button",{"color":[513],"defaultHref":[1025,"default-href"],"disabled":[516],"icon":[1],"text":[1],"type":[1],"routerAnimation":[16]}]]],["ion-toast",[[33,"ion-toast",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"color":[513],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"duration":[2],"header":[1],"layout":[1],"message":[1],"keyboardClose":[4,"keyboard-close"],"position":[1],"positionAnchor":[1,"position-anchor"],"buttons":[16],"translucent":[4],"animated":[4],"icon":[1],"htmlAttributes":[16],"swipeGesture":[1,"swipe-gesture"],"isOpen":[4,"is-open"],"trigger":[1],"revealContentToScreenReader":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"swipeGesture":["swipeGestureChanged"],"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-card_5",[[33,"ion-card",{"color":[513],"button":[4],"type":[1],"disabled":[4],"download":[1],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}],[32,"ion-card-content"],[33,"ion-card-header",{"color":[513],"translucent":[4]}],[33,"ion-card-subtitle",{"color":[513]}],[33,"ion-card-title",{"color":[513]}]]],["ion-item-option_3",[[33,"ion-item-option",{"color":[513],"disabled":[4],"download":[1],"expandable":[4],"href":[1],"rel":[1],"target":[1],"type":[1]}],[32,"ion-item-options",{"side":[1],"fireSwipeEvent":[64]}],[0,"ion-item-sliding",{"disabled":[4],"state":[32],"getOpenAmount":[64],"getSlidingRatio":[64],"open":[64],"close":[64],"closeOpened":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-accordion_2",[[49,"ion-accordion",{"value":[1],"disabled":[4],"readonly":[4],"toggleIcon":[1,"toggle-icon"],"toggleIconSlot":[1,"toggle-icon-slot"],"state":[32],"isNext":[32],"isPrevious":[32]},null,{"value":["valueChanged"]}],[33,"ion-accordion-group",{"animated":[4],"multiple":[4],"value":[1025],"disabled":[4],"readonly":[4],"expand":[1],"requestAccordionToggle":[64],"getAccordions":[64]},[[0,"keydown","onKeydown"]],{"value":["valueChanged"],"disabled":["disabledChanged"],"readonly":["readonlyChanged"]}]]],["ion-infinite-scroll_2",[[32,"ion-infinite-scroll-content",{"loadingSpinner":[1025,"loading-spinner"],"loadingText":[1,"loading-text"]}],[0,"ion-infinite-scroll",{"threshold":[1],"disabled":[4],"position":[1],"isLoading":[32],"complete":[64]},null,{"threshold":["thresholdChanged"],"disabled":["disabledChanged"]}]]],["ion-reorder_2",[[33,"ion-reorder",null,[[2,"click","onClick"]]],[0,"ion-reorder-group",{"disabled":[4],"state":[32],"complete":[64]},null,{"disabled":["disabledChanged"]}]]],["ion-segment_2",[[33,"ion-segment-button",{"disabled":[1028],"layout":[1],"type":[1],"value":[8],"checked":[32],"setFocus":[64]},null,{"value":["valueChanged"]}],[33,"ion-segment",{"color":[513],"disabled":[4],"scrollable":[4],"swipeGesture":[4,"swipe-gesture"],"value":[1032],"selectOnFocus":[4,"select-on-focus"],"activated":[32]},[[0,"keydown","onKeyDown"]],{"color":["colorChanged"],"swipeGesture":["swipeGestureChanged"],"value":["valueChanged"],"disabled":["disabledChanged"]}]]],["ion-tab-bar_2",[[33,"ion-tab-button",{"disabled":[4],"download":[1],"href":[1],"rel":[1],"layout":[1025],"selected":[1028],"tab":[1],"target":[1]},[[8,"ionTabBarChanged","onTabBarChanged"]]],[33,"ion-tab-bar",{"color":[513],"selectedTab":[1,"selected-tab"],"translucent":[4],"keyboardVisible":[32]},null,{"selectedTab":["selectedTabChanged"]}]]],["ion-chip",[[33,"ion-chip",{"color":[513],"outline":[4],"disabled":[4]}]]],["ion-datetime-button",[[33,"ion-datetime-button",{"color":[513],"disabled":[516],"datetime":[1],"datetimePresentation":[32],"dateText":[32],"timeText":[32],"datetimeActive":[32],"selectedButton":[32]}]]],["ion-input",[[38,"ion-input",{"color":[513],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"autofocus":[4],"clearInput":[4,"clear-input"],"clearInputIcon":[1,"clear-input-icon"],"clearOnEdit":[4,"clear-on-edit"],"counter":[4],"counterFormatter":[16],"debounce":[2],"disabled":[516],"enterkeyhint":[1],"errorText":[1,"error-text"],"fill":[1],"inputmode":[1],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"max":[8],"maxlength":[2],"min":[8],"minlength":[2],"multiple":[4],"name":[1],"pattern":[1],"placeholder":[1],"readonly":[516],"required":[4],"shape":[1],"spellcheck":[4],"step":[1],"type":[1],"value":[1032],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"type":["onTypeChange"],"value":["valueChanged"]}]]],["ion-searchbar",[[34,"ion-searchbar",{"color":[513],"animated":[4],"autocapitalize":[1],"autocomplete":[1],"autocorrect":[1],"cancelButtonIcon":[1,"cancel-button-icon"],"cancelButtonText":[1,"cancel-button-text"],"clearIcon":[1,"clear-icon"],"debounce":[2],"disabled":[4],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"searchIcon":[1,"search-icon"],"showCancelButton":[1,"show-cancel-button"],"showClearButton":[1,"show-clear-button"],"spellcheck":[4],"type":[1],"value":[1025],"focused":[32],"noAnimate":[32],"setFocus":[64],"getInputElement":[64]},null,{"lang":["onLangChanged"],"dir":["onDirChanged"],"debounce":["debounceChanged"],"value":["valueChanged"],"showCancelButton":["showCancelButtonChanged"]}]]],["ion-toggle",[[33,"ion-toggle",{"color":[513],"name":[1],"checked":[1028],"disabled":[4],"value":[1],"enableOnOffLabels":[4,"enable-on-off-labels"],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"activated":[32]},null,{"disabled":["disabledChanged"]}]]],["ion-nav_2",[[1,"ion-nav",{"delegate":[16],"swipeGesture":[1028,"swipe-gesture"],"animated":[4],"animation":[16],"rootParams":[16],"root":[1],"push":[64],"insert":[64],"insertPages":[64],"pop":[64],"popTo":[64],"popToRoot":[64],"removeIndex":[64],"setRoot":[64],"setPages":[64],"setRouteId":[64],"getRouteId":[64],"getActive":[64],"getByIndex":[64],"canGoBack":[64],"getPrevious":[64],"getLength":[64]},null,{"swipeGesture":["swipeGestureChanged"],"root":["rootChanged"]}],[0,"ion-nav-link",{"component":[1],"componentProps":[16],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}]]],["ion-textarea",[[38,"ion-textarea",{"color":[513],"autocapitalize":[1],"autofocus":[4],"clearOnEdit":[4,"clear-on-edit"],"debounce":[2],"disabled":[4],"fill":[1],"inputmode":[1],"enterkeyhint":[1],"maxlength":[2],"minlength":[2],"name":[1],"placeholder":[1],"readonly":[4],"required":[4],"spellcheck":[4],"cols":[514],"rows":[2],"wrap":[1],"autoGrow":[516,"auto-grow"],"value":[1025],"counter":[4],"counterFormatter":[16],"errorText":[1,"error-text"],"helperText":[1,"helper-text"],"label":[1],"labelPlacement":[1,"label-placement"],"shape":[1],"hasFocus":[32],"setFocus":[64],"getInputElement":[64]},null,{"debounce":["debounceChanged"],"value":["valueChanged"]}]]],["ion-backdrop",[[33,"ion-backdrop",{"visible":[4],"tappable":[4],"stopPropagation":[4,"stop-propagation"]},[[2,"click","onMouseDown"]]]]],["ion-loading",[[34,"ion-loading",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"message":[1],"cssClass":[1,"css-class"],"duration":[2],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"spinner":[1025],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-breadcrumb_2",[[33,"ion-breadcrumb",{"collapsed":[4],"last":[4],"showCollapsedIndicator":[4,"show-collapsed-indicator"],"color":[1],"active":[4],"disabled":[4],"download":[1],"href":[1],"rel":[1],"separator":[4],"target":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16]}],[33,"ion-breadcrumbs",{"color":[513],"maxItems":[2,"max-items"],"itemsBeforeCollapse":[2,"items-before-collapse"],"itemsAfterCollapse":[2,"items-after-collapse"],"collapsed":[32],"activeChanged":[32]},[[0,"collapsedClick","onCollapsedClick"]],{"maxItems":["maxItemsChanged"],"itemsBeforeCollapse":["maxItemsChanged"],"itemsAfterCollapse":["maxItemsChanged"]}]]],["ion-modal",[[33,"ion-modal",{"hasController":[4,"has-controller"],"overlayIndex":[2,"overlay-index"],"delegate":[16],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"breakpoints":[16],"initialBreakpoint":[2,"initial-breakpoint"],"backdropBreakpoint":[2,"backdrop-breakpoint"],"handle":[4],"handleBehavior":[1,"handle-behavior"],"component":[1],"componentProps":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"showBackdrop":[4,"show-backdrop"],"animated":[4],"presentingElement":[16],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"keepContentsMounted":[4,"keep-contents-mounted"],"focusTrap":[4,"focus-trap"],"canDismiss":[4,"can-dismiss"],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"setCurrentBreakpoint":[64],"getCurrentBreakpoint":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-route_4",[[0,"ion-route",{"url":[1],"component":[1],"componentProps":[16],"beforeLeave":[16],"beforeEnter":[16]},null,{"url":["onUpdate"],"component":["onUpdate"],"componentProps":["onComponentProps"]}],[0,"ion-route-redirect",{"from":[1],"to":[1]},null,{"from":["propDidChange"],"to":["propDidChange"]}],[0,"ion-router",{"root":[1],"useHash":[4,"use-hash"],"canTransition":[64],"push":[64],"back":[64],"printDebug":[64],"navChanged":[64]},[[8,"popstate","onPopState"],[4,"ionBackButton","onBackButton"]]],[1,"ion-router-link",{"color":[513],"href":[1],"rel":[1],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"target":[1]}]]],["ion-avatar_3",[[33,"ion-avatar"],[33,"ion-badge",{"color":[513]}],[1,"ion-thumbnail"]]],["ion-col_3",[[1,"ion-col",{"offset":[1],"offsetXs":[1,"offset-xs"],"offsetSm":[1,"offset-sm"],"offsetMd":[1,"offset-md"],"offsetLg":[1,"offset-lg"],"offsetXl":[1,"offset-xl"],"pull":[1],"pullXs":[1,"pull-xs"],"pullSm":[1,"pull-sm"],"pullMd":[1,"pull-md"],"pullLg":[1,"pull-lg"],"pullXl":[1,"pull-xl"],"push":[1],"pushXs":[1,"push-xs"],"pushSm":[1,"push-sm"],"pushMd":[1,"push-md"],"pushLg":[1,"push-lg"],"pushXl":[1,"push-xl"],"size":[1],"sizeXs":[1,"size-xs"],"sizeSm":[1,"size-sm"],"sizeMd":[1,"size-md"],"sizeLg":[1,"size-lg"],"sizeXl":[1,"size-xl"]},[[9,"resize","onResize"]]],[1,"ion-grid",{"fixed":[4]}],[1,"ion-row"]]],["ion-tab_2",[[1,"ion-tab",{"active":[1028],"delegate":[16],"tab":[1],"component":[1],"setActive":[64]},null,{"active":["changeActive"]}],[1,"ion-tabs",{"useRouter":[1028,"use-router"],"selectedTab":[32],"select":[64],"getTab":[64],"getSelected":[64],"setRouteId":[64],"getRouteId":[64]}]]],["ion-img",[[1,"ion-img",{"alt":[1],"src":[1],"loadSrc":[32],"loadError":[32]},null,{"src":["srcChanged"]}]]],["ion-progress-bar",[[33,"ion-progress-bar",{"type":[1],"reversed":[4],"value":[2],"buffer":[2],"color":[513]}]]],["ion-range",[[33,"ion-range",{"color":[513],"debounce":[2],"name":[1],"label":[1],"dualKnobs":[4,"dual-knobs"],"min":[2],"max":[2],"pin":[4],"pinFormatter":[16],"snaps":[4],"step":[2],"ticks":[4],"activeBarStart":[1026,"active-bar-start"],"disabled":[4],"value":[1026],"labelPlacement":[1,"label-placement"],"ratioA":[32],"ratioB":[32],"pressedKnob":[32]},null,{"debounce":["debounceChanged"],"min":["minChanged"],"max":["maxChanged"],"activeBarStart":["activeBarStartChanged"],"disabled":["disabledChanged"],"value":["valueChanged"]}]]],["ion-split-pane",[[33,"ion-split-pane",{"contentId":[513,"content-id"],"disabled":[4],"when":[8],"visible":[32],"isVisible":[64]},null,{"visible":["visibleChanged"],"disabled":["updateState"],"when":["updateState"]}]]],["ion-text",[[1,"ion-text",{"color":[513]}]]],["ion-select_3",[[33,"ion-select",{"cancelText":[1,"cancel-text"],"color":[513],"compareWith":[1,"compare-with"],"disabled":[4],"fill":[1],"interface":[1],"interfaceOptions":[8,"interface-options"],"justify":[1],"label":[1],"labelPlacement":[1,"label-placement"],"multiple":[4],"name":[1],"okText":[1,"ok-text"],"placeholder":[1],"selectedText":[1,"selected-text"],"toggleIcon":[1,"toggle-icon"],"expandedIcon":[1,"expanded-icon"],"shape":[1],"value":[1032],"isExpanded":[32],"open":[64]},null,{"disabled":["styleChanged"],"isExpanded":["styleChanged"],"placeholder":["styleChanged"],"value":["styleChanged"]}],[1,"ion-select-option",{"disabled":[4],"value":[8]}],[34,"ion-select-popover",{"header":[1],"subHeader":[1,"sub-header"],"message":[1],"multiple":[4],"options":[16]}]]],["ion-picker",[[33,"ion-picker",{"exitInputMode":[64]},[[1,"touchstart","preventTouchStartPropagation"]]]]],["ion-picker-column",[[1,"ion-picker-column",{"disabled":[4],"value":[1032],"color":[513],"numericInput":[4,"numeric-input"],"ariaLabel":[32],"isActive":[32],"scrollActiveItemIntoView":[64],"setValue":[64],"setFocus":[64]},null,{"aria-label":["ariaLabelChanged"],"value":["valueChange"]}]]],["ion-datetime_3",[[33,"ion-datetime",{"color":[1],"name":[1],"disabled":[4],"formatOptions":[16],"readonly":[4],"isDateEnabled":[16],"min":[1025],"max":[1025],"presentation":[1],"cancelText":[1,"cancel-text"],"doneText":[1,"done-text"],"clearText":[1,"clear-text"],"yearValues":[8,"year-values"],"monthValues":[8,"month-values"],"dayValues":[8,"day-values"],"hourValues":[8,"hour-values"],"minuteValues":[8,"minute-values"],"locale":[1],"firstDayOfWeek":[2,"first-day-of-week"],"titleSelectedDatesFormatter":[16],"multiple":[4],"highlightedDates":[16],"value":[1025],"showDefaultTitle":[4,"show-default-title"],"showDefaultButtons":[4,"show-default-buttons"],"showClearButton":[4,"show-clear-button"],"showDefaultTimeLabel":[4,"show-default-time-label"],"hourCycle":[1,"hour-cycle"],"size":[1],"preferWheel":[4,"prefer-wheel"],"showMonthAndYear":[32],"activeParts":[32],"workingParts":[32],"isTimePopoverOpen":[32],"forceRenderDate":[32],"confirm":[64],"reset":[64],"cancel":[64]},null,{"formatOptions":["formatOptionsChanged"],"disabled":["disabledChanged"],"min":["minChanged"],"max":["maxChanged"],"presentation":["presentationChanged"],"yearValues":["yearValuesChanged"],"monthValues":["monthValuesChanged"],"dayValues":["dayValuesChanged"],"hourValues":["hourValuesChanged"],"minuteValues":["minuteValuesChanged"],"value":["valueChanged"]}],[34,"ion-picker-legacy",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"columns":[16],"cssClass":[1,"css-class"],"duration":[2],"showBackdrop":[4,"show-backdrop"],"backdropDismiss":[4,"backdrop-dismiss"],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"presented":[32],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64],"getColumn":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}],[32,"ion-picker-legacy-column",{"col":[16]},null,{"col":["colChanged"]}]]],["ion-radio_2",[[33,"ion-radio",{"color":[513],"name":[1],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1],"checked":[32],"buttonTabindex":[32],"setFocus":[64],"setButtonTabindex":[64]},null,{"value":["valueChanged"]}],[0,"ion-radio-group",{"allowEmptySelection":[4,"allow-empty-selection"],"compareWith":[1,"compare-with"],"name":[1],"value":[1032]},[[4,"keydown","onKeydown"]],{"value":["valueChanged"]}]]],["ion-ripple-effect",[[1,"ion-ripple-effect",{"type":[1],"addRipple":[64]}]]],["ion-button_2",[[33,"ion-button",{"color":[513],"buttonType":[1025,"button-type"],"disabled":[516],"expand":[513],"fill":[1537],"routerDirection":[1,"router-direction"],"routerAnimation":[16],"download":[1],"href":[1],"rel":[1],"shape":[513],"size":[513],"strong":[4],"target":[1],"type":[1],"form":[1],"isCircle":[32]},null,{"disabled":["disabledChanged"]}],[1,"ion-icon",{"mode":[1025],"color":[1],"ios":[1],"md":[1],"flipRtl":[4,"flip-rtl"],"name":[513],"src":[1],"icon":[8],"size":[1],"lazy":[4],"sanitize":[4],"svgContent":[32],"isVisible":[32]},null,{"name":["loadIcon"],"src":["loadIcon"],"icon":["loadIcon"],"ios":["loadIcon"],"md":["loadIcon"]}]]],["ion-action-sheet",[[34,"ion-action-sheet",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"buttons":[16],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"header":[1],"subHeader":[1,"sub-header"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"]}]]],["ion-alert",[[34,"ion-alert",{"overlayIndex":[2,"overlay-index"],"delegate":[16],"hasController":[4,"has-controller"],"keyboardClose":[4,"keyboard-close"],"enterAnimation":[16],"leaveAnimation":[16],"cssClass":[1,"css-class"],"header":[1],"subHeader":[1,"sub-header"],"message":[1],"buttons":[16],"inputs":[1040],"backdropDismiss":[4,"backdrop-dismiss"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"isOpen":[4,"is-open"],"trigger":[1],"present":[64],"dismiss":[64],"onDidDismiss":[64],"onWillDismiss":[64]},[[4,"keydown","onKeydown"]],{"isOpen":["onIsOpenChange"],"trigger":["triggerChanged"],"buttons":["buttonsChanged"],"inputs":["inputsChanged"]}]]],["ion-app_8",[[0,"ion-app",{"setFocus":[64]}],[1,"ion-content",{"color":[513],"fullscreen":[4],"fixedSlotPlacement":[1,"fixed-slot-placement"],"forceOverscroll":[1028,"force-overscroll"],"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"scrollEvents":[4,"scroll-events"],"getScrollElement":[64],"getBackgroundElement":[64],"scrollToTop":[64],"scrollToBottom":[64],"scrollByPoint":[64],"scrollToPoint":[64]},[[9,"resize","onResize"]]],[36,"ion-footer",{"collapse":[1],"translucent":[4],"keyboardVisible":[32]}],[36,"ion-header",{"collapse":[1],"translucent":[4]}],[1,"ion-router-outlet",{"mode":[1025],"delegate":[16],"animated":[4],"animation":[16],"swipeHandler":[16],"commit":[64],"setRouteId":[64],"getRouteId":[64]},null,{"swipeHandler":["swipeHandlerChanged"]}],[33,"ion-title",{"color":[513],"size":[1]},null,{"size":["sizeChanged"]}],[33,"ion-toolbar",{"color":[513]},[[0,"ionStyle","childrenStyle"]]],[38,"ion-buttons",{"collapse":[4]}]]],["ion-picker-column-option",[[33,"ion-picker-column-option",{"disabled":[4],"value":[8],"color":[513],"ariaLabel":[32]},null,{"aria-label":["onAriaLabelChange"]}]]],["ion-popover",[[33,"ion-popover",{"hasController":[4,"has-controller"],"delegate":[16],"overlayIndex":[2,"overlay-index"],"enterAnimation":[16],"leaveAnimation":[16],"component":[1],"componentProps":[16],"keyboardClose":[4,"keyboard-close"],"cssClass":[1,"css-class"],"backdropDismiss":[4,"backdrop-dismiss"],"event":[8],"showBackdrop":[4,"show-backdrop"],"translucent":[4],"animated":[4],"htmlAttributes":[16],"triggerAction":[1,"trigger-action"],"trigger":[1],"size":[1],"dismissOnSelect":[4,"dismiss-on-select"],"reference":[1],"side":[1],"alignment":[1025],"arrow":[4],"isOpen":[4,"is-open"],"keyboardEvents":[4,"keyboard-events"],"focusTrap":[4,"focus-trap"],"keepContentsMounted":[4,"keep-contents-mounted"],"presented":[32],"presentFromTrigger":[64],"present":[64],"dismiss":[64],"getParentPopover":[64],"onDidDismiss":[64],"onWillDismiss":[64]},null,{"trigger":["onTriggerChange"],"triggerAction":["onTriggerChange"],"isOpen":["onIsOpenChange"]}]]],["ion-checkbox",[[33,"ion-checkbox",{"color":[513],"name":[1],"checked":[1028],"indeterminate":[1028],"disabled":[4],"value":[8],"labelPlacement":[1,"label-placement"],"justify":[1],"alignment":[1]}]]],["ion-spinner",[[1,"ion-spinner",{"color":[513],"duration":[2],"name":[1],"paused":[4]}]]],["ion-item_8",[[33,"ion-item-divider",{"color":[513],"sticky":[4]}],[32,"ion-item-group"],[33,"ion-note",{"color":[513]}],[1,"ion-skeleton-text",{"animated":[4]}],[33,"ion-item",{"color":[513],"button":[4],"detail":[4],"detailIcon":[1,"detail-icon"],"disabled":[4],"download":[1],"href":[1],"rel":[1],"lines":[1],"routerAnimation":[16],"routerDirection":[1,"router-direction"],"target":[1],"type":[1],"multipleInputs":[32],"focusable":[32]},[[0,"ionColor","labelColorChanged"],[0,"ionStyle","itemStyle"]],{"button":["buttonChanged"]}],[38,"ion-label",{"color":[513],"position":[1],"noAnimate":[32]},null,{"color":["colorChanged"],"position":["positionChanged"]}],[32,"ion-list",{"lines":[1],"inset":[4],"closeSlidingItems":[64]}],[33,"ion-list-header",{"color":[513],"lines":[1]}]]]]'),oe)});return function(oe,P){return w.apply(this,arguments)}}(),Oe=["*"],Ct=["outletContent"];function st(w,H){if(1&w&&(c.j41(0,"div",1),c.eu8(1,2),c.k0s()),2&w){const oe=c.XpG();c.R7$(),c.Y8G("ngTemplateOutlet",oe.template)}}let vt=(()=>{var w;class H extends ke.fL{constructor(P,Ce){super(P,Ce)}writeValue(P){this.elementRef.nativeElement.checked=this.lastValue=P,(0,ke.z3)(this.elementRef)}_handleIonChange(P){this.handleValueChange(P,P.checked)}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["ion-checkbox"],["ion-toggle"]],hostBindings:function(P,Ce){1&P&&c.bIt("ionChange",function(vr){return Ce._handleIonChange(vr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:w,multi:!0}]),c.Vt3]})),H})(),G=(()=>{var w;class H extends ke.fL{constructor(P,Ce){super(P,Ce)}_handleChangeEvent(P){this.handleValueChange(P,P.value)}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["ion-select"],["ion-radio-group"],["ion-segment"],["ion-datetime"]],hostBindings:function(P,Ce){1&P&&c.bIt("ionChange",function(vr){return Ce._handleChangeEvent(vr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:w,multi:!0}]),c.Vt3]})),H})(),X=(()=>{var w;class H extends ke.fL{constructor(P,Ce){super(P,Ce)}_handleInputEvent(P){this.handleValueChange(P,P.value)}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)(c.rXU(c.zZn),c.rXU(c.aKT))}),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["ion-input",3,"type","number"],["ion-textarea"],["ion-searchbar"]],hostBindings:function(P,Ce){1&P&&c.bIt("ionInput",function(vr){return Ce._handleInputEvent(vr.target)})},features:[c.Jv_([{provide:Z.kq,useExisting:w,multi:!0}]),c.Vt3]})),H})();const ce=(w,H)=>{const oe=w.prototype;H.forEach(P=>{Object.defineProperty(oe,P,{get(){return this.el[P]},set(Ce){this.z.runOutsideAngular(()=>this.el[P]=Ce)},configurable:!0})})},ue=(w,H)=>{const oe=w.prototype;H.forEach(P=>{oe[P]=function(){const Ce=arguments;return this.z.runOutsideAngular(()=>this.el[P].apply(this.el,Ce))}})},Ee=(w,H,oe)=>{oe.forEach(P=>w[P]=(0,he.R)(H,P))};function ut(w){return function(oe){const{defineCustomElementFn:P,inputs:Ce,methods:dt}=w;return void 0!==P&&P(),Ce&&ce(oe,Ce),dt&&ue(oe,dt),oe}}let Sn=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-app"]],ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({})],H),H})(),kn=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-avatar"]],ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({})],H),H})(),dr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement,Ee(this,this.el,["ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-button"]],inputs:{buttonType:"buttonType",color:"color",disabled:"disabled",download:"download",expand:"expand",fill:"fill",form:"form",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",shape:"shape",size:"size",strong:"strong",target:"target",type:"type"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["buttonType","color","disabled","download","expand","fill","form","href","mode","rel","routerAnimation","routerDirection","shape","size","strong","target","type"]})],H),H})(),nt=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-buttons"]],inputs:{collapse:"collapse"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["collapse"]})],H),H})(),Lt=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card"]],inputs:{button:"button",color:"color",disabled:"disabled",download:"download",href:"href",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["button","color","disabled","download","href","mode","rel","routerAnimation","routerDirection","target","type"]})],H),H})(),Xt=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-content"]],inputs:{mode:"mode"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["mode"]})],H),H})(),yn=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-header"]],inputs:{color:"color",mode:"mode",translucent:"translucent"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","mode","translucent"]})],H),H})(),En=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-subtitle"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","mode"]})],H),H})(),Fr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-card-title"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","mode"]})],H),H})(),Vn=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement,Ee(this,this.el,["ionChange","ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-checkbox"]],inputs:{alignment:"alignment",checked:"checked",color:"color",disabled:"disabled",indeterminate:"indeterminate",justify:"justify",labelPlacement:"labelPlacement",mode:"mode",name:"name",value:"value"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["alignment","checked","color","disabled","indeterminate","justify","labelPlacement","mode","name","value"]})],H),H})(),$n=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-chip"]],inputs:{color:"color",disabled:"disabled",mode:"mode",outline:"outline"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","disabled","mode","outline"]})],H),H})(),In=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-col"]],inputs:{offset:"offset",offsetLg:"offsetLg",offsetMd:"offsetMd",offsetSm:"offsetSm",offsetXl:"offsetXl",offsetXs:"offsetXs",pull:"pull",pullLg:"pullLg",pullMd:"pullMd",pullSm:"pullSm",pullXl:"pullXl",pullXs:"pullXs",push:"push",pushLg:"pushLg",pushMd:"pushMd",pushSm:"pushSm",pushXl:"pushXl",pushXs:"pushXs",size:"size",sizeLg:"sizeLg",sizeMd:"sizeMd",sizeSm:"sizeSm",sizeXl:"sizeXl",sizeXs:"sizeXs"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["offset","offsetLg","offsetMd","offsetSm","offsetXl","offsetXs","pull","pullLg","pullMd","pullSm","pullXl","pullXs","push","pushLg","pushMd","pushSm","pushXl","pushXs","size","sizeLg","sizeMd","sizeSm","sizeXl","sizeXs"]})],H),H})(),on=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement,Ee(this,this.el,["ionScrollStart","ionScroll","ionScrollEnd"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-content"]],inputs:{color:"color",fixedSlotPlacement:"fixedSlotPlacement",forceOverscroll:"forceOverscroll",fullscreen:"fullscreen",scrollEvents:"scrollEvents",scrollX:"scrollX",scrollY:"scrollY"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","fixedSlotPlacement","forceOverscroll","fullscreen","scrollEvents","scrollX","scrollY"],methods:["getScrollElement","scrollToTop","scrollToBottom","scrollByPoint","scrollToPoint"]})],H),H})(),Vr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-fab"]],inputs:{activated:"activated",edge:"edge",horizontal:"horizontal",vertical:"vertical"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["activated","edge","horizontal","vertical"],methods:["close"]})],H),H})(),sr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-footer"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["collapse","mode","translucent"]})],H),H})(),ii=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-grid"]],inputs:{fixed:"fixed"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["fixed"]})],H),H})(),Tr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-header"]],inputs:{collapse:"collapse",mode:"mode",translucent:"translucent"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["collapse","mode","translucent"]})],H),H})(),yr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-icon"]],inputs:{color:"color",flipRtl:"flipRtl",icon:"icon",ios:"ios",lazy:"lazy",md:"md",mode:"mode",name:"name",sanitize:"sanitize",size:"size",src:"src"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","flipRtl","icon","ios","lazy","md","mode","name","sanitize","size","src"]})],H),H})(),li=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement,Ee(this,this.el,["ionInput","ionChange","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-input"]],inputs:{autocapitalize:"autocapitalize",autocomplete:"autocomplete",autocorrect:"autocorrect",autofocus:"autofocus",clearInput:"clearInput",clearInputIcon:"clearInputIcon",clearOnEdit:"clearOnEdit",color:"color",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",max:"max",maxlength:"maxlength",min:"min",minlength:"minlength",mode:"mode",multiple:"multiple",name:"name",pattern:"pattern",placeholder:"placeholder",readonly:"readonly",required:"required",shape:"shape",spellcheck:"spellcheck",step:"step",type:"type",value:"value"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["autocapitalize","autocomplete","autocorrect","autofocus","clearInput","clearInputIcon","clearOnEdit","color","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","max","maxlength","min","minlength","mode","multiple","name","pattern","placeholder","readonly","required","shape","spellcheck","step","type","value"],methods:["setFocus","getInputElement"]})],H),H})(),Zr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-item"]],inputs:{button:"button",color:"color",detail:"detail",detailIcon:"detailIcon",disabled:"disabled",download:"download",href:"href",lines:"lines",mode:"mode",rel:"rel",routerAnimation:"routerAnimation",routerDirection:"routerDirection",target:"target",type:"type"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["button","color","detail","detailIcon","disabled","download","href","lines","mode","rel","routerAnimation","routerDirection","target","type"]})],H),H})(),ve=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-item-divider"]],inputs:{color:"color",mode:"mode",sticky:"sticky"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","mode","sticky"]})],H),H})(),Ie=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-label"]],inputs:{color:"color",mode:"mode",position:"position"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","mode","position"]})],H),H})(),Ge=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-list"]],inputs:{inset:"inset",lines:"lines",mode:"mode"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["inset","lines","mode"],methods:["closeSlidingItems"]})],H),H})(),gt=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement,Ee(this,this.el,["ionWillOpen","ionWillClose","ionDidOpen","ionDidClose"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-menu"]],inputs:{contentId:"contentId",disabled:"disabled",maxEdgeStart:"maxEdgeStart",menuId:"menuId",side:"side",swipeGesture:"swipeGesture",type:"type"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["contentId","disabled","maxEdgeStart","menuId","side","swipeGesture","type"],methods:["isOpen","isActive","open","close","toggle","setOpen"]})],H),H})(),ft=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-menu-button"]],inputs:{autoHide:"autoHide",color:"color",disabled:"disabled",menu:"menu",mode:"mode",type:"type"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["autoHide","color","disabled","menu","mode","type"]})],H),H})(),Qt=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-menu-toggle"]],inputs:{autoHide:"autoHide",menu:"menu"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["autoHide","menu"]})],H),H})(),Ir=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement,Ee(this,this.el,["ionRefresh","ionPull","ionStart"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-refresher"]],inputs:{closeDuration:"closeDuration",disabled:"disabled",mode:"mode",pullFactor:"pullFactor",pullMax:"pullMax",pullMin:"pullMin",snapbackDuration:"snapbackDuration"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["closeDuration","disabled","mode","pullFactor","pullMax","pullMin","snapbackDuration"],methods:["complete","cancel","getProgress"]})],H),H})(),xi=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-refresher-content"]],inputs:{pullingIcon:"pullingIcon",pullingText:"pullingText",refreshingSpinner:"refreshingSpinner",refreshingText:"refreshingText"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["pullingIcon","pullingText","refreshingSpinner","refreshingText"]})],H),H})(),ie=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-row"]],ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({})],H),H})(),ze=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement,Ee(this,this.el,["ionChange"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-segment"]],inputs:{color:"color",disabled:"disabled",mode:"mode",scrollable:"scrollable",selectOnFocus:"selectOnFocus",swipeGesture:"swipeGesture",value:"value"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","disabled","mode","scrollable","selectOnFocus","swipeGesture","value"]})],H),H})(),M=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-segment-button"]],inputs:{disabled:"disabled",layout:"layout",mode:"mode",type:"type",value:"value"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["disabled","layout","mode","type","value"]})],H),H})(),O=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement,Ee(this,this.el,["ionChange","ionCancel","ionDismiss","ionFocus","ionBlur"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-select"]],inputs:{cancelText:"cancelText",color:"color",compareWith:"compareWith",disabled:"disabled",expandedIcon:"expandedIcon",fill:"fill",interface:"interface",interfaceOptions:"interfaceOptions",justify:"justify",label:"label",labelPlacement:"labelPlacement",mode:"mode",multiple:"multiple",name:"name",okText:"okText",placeholder:"placeholder",selectedText:"selectedText",shape:"shape",toggleIcon:"toggleIcon",value:"value"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["cancelText","color","compareWith","disabled","expandedIcon","fill","interface","interfaceOptions","justify","label","labelPlacement","mode","multiple","name","okText","placeholder","selectedText","shape","toggleIcon","value"],methods:["open"]})],H),H})(),re=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-select-option"]],inputs:{disabled:"disabled",value:"value"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["disabled","value"]})],H),H})(),St=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement,Ee(this,this.el,["ionSplitPaneVisible"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-split-pane"]],inputs:{contentId:"contentId",disabled:"disabled",when:"when"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["contentId","disabled","when"]})],H),H})(),qn=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement,Ee(this,this.el,["ionChange","ionInput","ionBlur","ionFocus"])}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-textarea"]],inputs:{autoGrow:"autoGrow",autocapitalize:"autocapitalize",autofocus:"autofocus",clearOnEdit:"clearOnEdit",color:"color",cols:"cols",counter:"counter",counterFormatter:"counterFormatter",debounce:"debounce",disabled:"disabled",enterkeyhint:"enterkeyhint",errorText:"errorText",fill:"fill",helperText:"helperText",inputmode:"inputmode",label:"label",labelPlacement:"labelPlacement",maxlength:"maxlength",minlength:"minlength",mode:"mode",name:"name",placeholder:"placeholder",readonly:"readonly",required:"required",rows:"rows",shape:"shape",spellcheck:"spellcheck",value:"value",wrap:"wrap"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["autoGrow","autocapitalize","autofocus","clearOnEdit","color","cols","counter","counterFormatter","debounce","disabled","enterkeyhint","errorText","fill","helperText","inputmode","label","labelPlacement","maxlength","minlength","mode","name","placeholder","readonly","required","rows","shape","spellcheck","value","wrap"],methods:["setFocus","getInputElement"]})],H),H})(),jn=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-title"]],inputs:{color:"color",size:"size"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","size"]})],H),H})(),Pr=(()=>{var w;let H=((0,h.A)(w=class{constructor(P,Ce,dt){(0,h.A)(this,"z",void 0),(0,h.A)(this,"el",void 0),this.z=dt,P.detach(),this.el=Ce.nativeElement}},"\u0275fac",function(P){return new(P||w)(c.rXU(c.gRc),c.rXU(c.aKT),c.rXU(c.SKi))}),(0,h.A)(w,"\u0275cmp",c.VBU({type:w,selectors:[["ion-toolbar"]],inputs:{color:"color",mode:"mode"},ngContentSelectors:Oe,decls:1,vars:0,template:function(P,Ce){1&P&&(c.NAR(),c.SdG(0))},encapsulation:2,changeDetection:0})),w);return H=(0,$.Cg)([ut({inputs:["color","mode"]})],H),H})(),Nr=(()=>{var w;class H extends ke.Rg{constructor(P,Ce,dt,vr,ai,W,ye,Fe){super(P,Ce,dt,vr,ai,W,ye,Fe),(0,h.A)(this,"parentOutlet",void 0),(0,h.A)(this,"outletContent",void 0),this.parentOutlet=Fe}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)(c.kS0("name"),c.kS0("tabs"),c.rXU(ae.aZ),c.rXU(c.aKT),c.rXU(Xe.Ix),c.rXU(c.SKi),c.rXU(Xe.nX),c.rXU(w,12))}),(0,h.A)(H,"\u0275cmp",c.VBU({type:w,selectors:[["ion-router-outlet"]],viewQuery:function(P,Ce){if(1&P&&c.GBs(Ct,7,c.c1b),2&P){let dt;c.mGM(dt=c.lsd())&&(Ce.outletContent=dt.first)}},features:[c.Vt3],ngContentSelectors:Oe,decls:3,vars:0,consts:[["outletContent",""]],template:function(P,Ce){1&P&&(c.NAR(),c.qex(0,null,0),c.SdG(2),c.bVm())},encapsulation:2})),H})(),hi=(()=>{var w;class H extends ke.CE{}return w=H,(0,h.A)(H,"\u0275fac",(()=>{let oe;return function(Ce){return(oe||(oe=c.xGo(w)))(Ce||w)}})()),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["","routerLink","",5,"a",5,"area"]],features:[c.Vt3]})),H})(),Yr=(()=>{var w;class H extends ke.pF{}return w=H,(0,h.A)(H,"\u0275fac",(()=>{let oe;return function(Ce){return(oe||(oe=c.xGo(w)))(Ce||w)}})()),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["a","routerLink",""],["area","routerLink",""]],features:[c.Vt3]})),H})(),Hr=(()=>{var w;class H extends ke.Sb{}return w=H,(0,h.A)(H,"\u0275fac",(()=>{let oe;return function(Ce){return(oe||(oe=c.xGo(w)))(Ce||w)}})()),(0,h.A)(H,"\u0275cmp",c.VBU({type:w,selectors:[["ion-modal"]],features:[c.Vt3],decls:1,vars:1,consts:[["class","ion-delegate-host ion-page",4,"ngIf"],[1,"ion-delegate-host","ion-page"],[3,"ngTemplateOutlet"]],template:function(P,Ce){1&P&&c.DNE(0,st,2,1,"div",0),2&P&&c.Y8G("ngIf",Ce.isCmpOpen||Ce.keepContentsMounted)},dependencies:[ae.bT,ae.T3],encapsulation:2,changeDetection:0})),H})();const tr={provide:Z.cz,useExisting:(0,c.Rfq)(()=>Zn),multi:!0};let Zn=(()=>{var w;class H extends Z.zX{}return w=H,(0,h.A)(H,"\u0275fac",(()=>{let oe;return function(Ce){return(oe||(oe=c.xGo(w)))(Ce||w)}})()),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["ion-input","type","number","max","","formControlName",""],["ion-input","type","number","max","","formControl",""],["ion-input","type","number","max","","ngModel",""]],hostVars:1,hostBindings:function(P,Ce){2&P&&c.BMQ("max",Ce._enabled?Ce.max:null)},features:[c.Jv_([tr]),c.Vt3]})),H})();const mo={provide:Z.cz,useExisting:(0,c.Rfq)(()=>fi),multi:!0};let fi=(()=>{var w;class H extends Z.VZ{}return w=H,(0,h.A)(H,"\u0275fac",(()=>{let oe;return function(Ce){return(oe||(oe=c.xGo(w)))(Ce||w)}})()),(0,h.A)(H,"\u0275dir",c.FsC({type:w,selectors:[["ion-input","type","number","min","","formControlName",""],["ion-input","type","number","min","","formControl",""],["ion-input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(P,Ce){2&P&&c.BMQ("min",Ce._enabled?Ce.min:null)},features:[c.Jv_([mo]),c.Vt3]})),H})(),yi=(()=>{var w;class H extends ke.Kb{constructor(){super(xt.a)}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(H,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),H})(),Pt=(()=>{var w;class H extends ke.Kb{constructor(){super(xt.l)}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(H,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),H})(),ge=(()=>{var w;class H extends ke._t{constructor(){super(mt.m)}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(H,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac,providedIn:"root"})),H})(),fe=(()=>{var w;class H extends ke.Kb{constructor(){super(xt.m),(0,h.A)(this,"angularDelegate",(0,c.WQX)(ke.Yq)),(0,h.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,h.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(P){return super.create({...P,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"modal")})}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(H,"\u0275prov",c.jDH({token:w,factory:w.\u0275fac})),H})();class je extends ke.Kb{constructor(){super(xt.c),(0,h.A)(this,"angularDelegate",(0,c.WQX)(ke.Yq)),(0,h.A)(this,"injector",(0,c.WQX)(c.zZn)),(0,h.A)(this,"environmentInjector",(0,c.WQX)(c.uvJ))}create(H){return super.create({...H,delegate:this.angularDelegate.create(this.environmentInjector,this.injector,"popover")})}}const ct=(w,H,oe)=>()=>{const P=H.defaultView;if(P&&typeof window<"u"){(0,at.s)({...w,_zoneGate:dt=>oe.run(dt)});const Ce="__zone_symbol__addEventListener"in H.body?"__zone_symbol__addEventListener":"addEventListener";return function Ze(){var w=[];if(typeof window<"u"){var H=window;(!H.customElements||H.Element&&(!H.Element.prototype.closest||!H.Element.prototype.matches||!H.Element.prototype.remove||!H.Element.prototype.getRootNode))&&w.push(C.e(7278).then(C.t.bind(C,2190,23))),("function"!=typeof Object.assign||!Object.entries||!Array.prototype.find||!Array.prototype.includes||!String.prototype.startsWith||!String.prototype.endsWith||H.NodeList&&!H.NodeList.prototype.forEach||!H.fetch||!function(){try{var P=new URL("b","http://a");return P.pathname="c%20d","http://a/c%20d"===P.href&&P.searchParams}catch{return!1}}()||typeof WeakMap>"u")&&w.push(C.e(9329).then(C.t.bind(C,7783,23)))}return Promise.all(w)}().then(()=>Le(P,{exclude:["ion-tabs","ion-tab"],syncQueue:!0,raf:ke.er,jmp:dt=>oe.runOutsideAngular(dt),ael(dt,vr,ai,W){dt[Ce](vr,ai,W)},rel(dt,vr,ai,W){dt.removeEventListener(vr,ai,W)}}))}};let Hn=(()=>{var w;class H{static forRoot(P={}){return{ngModule:H,providers:[{provide:ke.sR,useValue:P},{provide:c.hnV,useFactory:ct,multi:!0,deps:[ke.sR,ae.qQ,c.SKi]},ke.Yq,(0,ke.YV)()]}}}return w=H,(0,h.A)(H,"\u0275fac",function(P){return new(P||w)}),(0,h.A)(H,"\u0275mod",c.$C({type:w})),(0,h.A)(H,"\u0275inj",c.G2t({providers:[fe,je],imports:[ae.MD]})),H})()},2214:(Pn,Et,C)=>{"use strict";C.d(Et,{Dk:()=>h.Dk,KO:()=>h.KO,Sx:()=>h.Sx,Wp:()=>h.Wp});var h=C(7852);(0,h.KO)("firebase","10.12.2","app")},2820:(Pn,Et,C)=>{"use strict";C.d(Et,{$P:()=>xt,sN:()=>Tt,eS:()=>Dt});var h=C(467),c=C(4438),Z=C(2771),ke=C(8359),$=C(1413),he=C(3236),ae=C(1985),Xe=C(9974),tt=C(4360),Se=C(8750),et=C(1584);var Ye=C(5558);class at{constructor(){this.subject=new Z.m(1),this.subscriptions=new ke.yU}doFilter(Te){this.subject.next(Te)}dispose(){this.subscriptions.unsubscribe()}notEmpty(Te,Ze){this.subscriptions.add(this.subject.subscribe(_e=>{if(_e[Te]){const $e=_e[Te].currentValue;null!=$e&&Ze($e)}}))}has(Te,Ze){this.subscriptions.add(this.subject.subscribe(_e=>{_e[Te]&&Ze(_e[Te].currentValue)}))}notFirst(Te,Ze){this.subscriptions.add(this.subject.subscribe(_e=>{_e[Te]&&!_e[Te].isFirstChange()&&Ze(_e[Te].currentValue)}))}notFirstAndEmpty(Te,Ze){this.subscriptions.add(this.subject.subscribe(_e=>{if(_e[Te]&&!_e[Te].isFirstChange()){const $e=_e[Te].currentValue;null!=$e&&Ze($e)}}))}}const mt=new c.nKC("NGX_ECHARTS_CONFIG");let xt=(()=>{var It;class Te{constructor(_e,$e,Le){this.el=$e,this.ngZone=Le,this.options=null,this.theme=null,this.initOpts=null,this.merge=null,this.autoResize=!0,this.loading=!1,this.loadingType="default",this.loadingOpts=null,this.chartInit=new c.bkB,this.optionsError=new c.bkB,this.chartClick=this.createLazyEvent("click"),this.chartDblClick=this.createLazyEvent("dblclick"),this.chartMouseDown=this.createLazyEvent("mousedown"),this.chartMouseMove=this.createLazyEvent("mousemove"),this.chartMouseUp=this.createLazyEvent("mouseup"),this.chartMouseOver=this.createLazyEvent("mouseover"),this.chartMouseOut=this.createLazyEvent("mouseout"),this.chartGlobalOut=this.createLazyEvent("globalout"),this.chartContextMenu=this.createLazyEvent("contextmenu"),this.chartHighlight=this.createLazyEvent("highlight"),this.chartDownplay=this.createLazyEvent("downplay"),this.chartSelectChanged=this.createLazyEvent("selectchanged"),this.chartLegendSelectChanged=this.createLazyEvent("legendselectchanged"),this.chartLegendSelected=this.createLazyEvent("legendselected"),this.chartLegendUnselected=this.createLazyEvent("legendunselected"),this.chartLegendLegendSelectAll=this.createLazyEvent("legendselectall"),this.chartLegendLegendInverseSelect=this.createLazyEvent("legendinverseselect"),this.chartLegendScroll=this.createLazyEvent("legendscroll"),this.chartDataZoom=this.createLazyEvent("datazoom"),this.chartDataRangeSelected=this.createLazyEvent("datarangeselected"),this.chartGraphRoam=this.createLazyEvent("graphroam"),this.chartGeoRoam=this.createLazyEvent("georoam"),this.chartTreeRoam=this.createLazyEvent("treeroam"),this.chartTimelineChanged=this.createLazyEvent("timelinechanged"),this.chartTimelinePlayChanged=this.createLazyEvent("timelineplaychanged"),this.chartRestore=this.createLazyEvent("restore"),this.chartDataViewChanged=this.createLazyEvent("dataviewchanged"),this.chartMagicTypeChanged=this.createLazyEvent("magictypechanged"),this.chartGeoSelectChanged=this.createLazyEvent("geoselectchanged"),this.chartGeoSelected=this.createLazyEvent("geoselected"),this.chartGeoUnselected=this.createLazyEvent("geounselected"),this.chartAxisAreaSelected=this.createLazyEvent("axisareaselected"),this.chartBrush=this.createLazyEvent("brush"),this.chartBrushEnd=this.createLazyEvent("brushend"),this.chartBrushSelected=this.createLazyEvent("brushselected"),this.chartGlobalCursorTaken=this.createLazyEvent("globalcursortaken"),this.chartRendered=this.createLazyEvent("rendered"),this.chartFinished=this.createLazyEvent("finished"),this.animationFrameID=null,this.chart$=new Z.m(1),this.resize$=new $.B,this.changeFilter=new at,this.resizeObFired=!1,this.echarts=_e.echarts,this.theme=_e.theme||null}ngOnChanges(_e){this.changeFilter.doFilter(_e)}ngOnInit(){if(!window.ResizeObserver)throw new Error("please install a polyfill for ResizeObserver");this.resizeSub=this.resize$.pipe(function it(It,Te=he.E,Ze){const _e=(0,et.O)(It,Te);return function be(It,Te){return(0,Xe.N)((Ze,_e)=>{const{leading:$e=!0,trailing:Le=!1}=null!=Te?Te:{};let Oe=!1,Ct=null,kt=null,Cn=!1;const At=()=>{null==kt||kt.unsubscribe(),kt=null,Le&&(vt(),Cn&&_e.complete())},st=()=>{kt=null,Cn&&_e.complete()},cn=Re=>kt=(0,Se.Tg)(It(Re)).subscribe((0,tt._)(_e,At,st)),vt=()=>{if(Oe){Oe=!1;const Re=Ct;Ct=null,_e.next(Re),!Cn&&cn(Re)}};Ze.subscribe((0,tt._)(_e,Re=>{Oe=!0,Ct=Re,(!kt||kt.closed)&&($e?vt():cn(Re))},()=>{Cn=!0,(!(Le&&Oe&&kt)||kt.closed)&&_e.complete()}))})}(()=>_e,Ze)}(100,he.E,{leading:!1,trailing:!0})).subscribe(()=>this.resize()),this.autoResize&&(this.resizeOb=this.ngZone.runOutsideAngular(()=>new window.ResizeObserver(_e=>{for(const $e of _e)$e.target===this.el.nativeElement&&(this.resizeObFired?this.animationFrameID=window.requestAnimationFrame(()=>{this.resize$.next()}):this.resizeObFired=!0)})),this.resizeOb.observe(this.el.nativeElement)),this.changeFilter.notFirstAndEmpty("options",_e=>this.onOptionsChange(_e)),this.changeFilter.notFirstAndEmpty("merge",_e=>this.setOption(_e)),this.changeFilter.has("loading",_e=>this.toggleLoading(!!_e)),this.changeFilter.notFirst("theme",()=>this.refreshChart())}ngOnDestroy(){window.clearTimeout(this.initChartTimer),this.resizeSub&&this.resizeSub.unsubscribe(),this.animationFrameID&&window.cancelAnimationFrame(this.animationFrameID),this.resizeOb&&this.resizeOb.unobserve(this.el.nativeElement),this.loadingSub&&this.loadingSub.unsubscribe(),this.changeFilter.dispose(),this.dispose()}ngAfterViewInit(){this.initChartTimer=window.setTimeout(()=>this.initChart())}dispose(){this.chart&&(this.chart.isDisposed()||this.chart.dispose(),this.chart=null)}resize(){this.chart&&this.chart.resize()}toggleLoading(_e){this.chart?_e?this.chart.showLoading(this.loadingType,this.loadingOpts):this.chart.hideLoading():this.loadingSub=this.chart$.subscribe($e=>_e?$e.showLoading(this.loadingType,this.loadingOpts):$e.hideLoading())}setOption(_e,$e){if(this.chart)try{this.chart.setOption(_e,$e)}catch(Le){console.error(Le),this.optionsError.emit(Le)}}refreshChart(){var _e=this;return(0,h.A)(function*(){_e.dispose(),yield _e.initChart()})()}createChart(){const _e=this.el.nativeElement;if(window&&window.getComputedStyle){const $e=window.getComputedStyle(_e,null).getPropertyValue("height");(!$e||"0px"===$e)&&(!_e.style.height||"0px"===_e.style.height)&&(_e.style.height="400px")}return this.ngZone.runOutsideAngular(()=>("function"==typeof this.echarts?this.echarts:()=>Promise.resolve(this.echarts))().then(({init:Le})=>Le(_e,this.theme,this.initOpts)))}initChart(){var _e=this;return(0,h.A)(function*(){yield _e.onOptionsChange(_e.options),_e.merge&&_e.chart&&_e.setOption(_e.merge)})()}onOptionsChange(_e){var $e=this;return(0,h.A)(function*(){_e&&($e.chart||($e.chart=yield $e.createChart(),$e.chart$.next($e.chart),$e.chartInit.emit($e.chart)),$e.setOption($e.options,!0))})()}createLazyEvent(_e){return this.chartInit.pipe((0,Ye.n)($e=>new ae.c(Le=>($e.on(_e,Oe=>this.ngZone.run(()=>Le.next(Oe))),()=>{this.chart&&(this.chart.isDisposed()||$e.off(_e))}))))}}return(It=Te).\u0275fac=function(_e){return new(_e||It)(c.rXU(mt),c.rXU(c.aKT),c.rXU(c.SKi))},It.\u0275dir=c.FsC({type:It,selectors:[["echarts"],["","echarts",""]],inputs:{options:"options",theme:"theme",initOpts:"initOpts",merge:"merge",autoResize:"autoResize",loading:"loading",loadingType:"loadingType",loadingOpts:"loadingOpts"},outputs:{chartInit:"chartInit",optionsError:"optionsError",chartClick:"chartClick",chartDblClick:"chartDblClick",chartMouseDown:"chartMouseDown",chartMouseMove:"chartMouseMove",chartMouseUp:"chartMouseUp",chartMouseOver:"chartMouseOver",chartMouseOut:"chartMouseOut",chartGlobalOut:"chartGlobalOut",chartContextMenu:"chartContextMenu",chartHighlight:"chartHighlight",chartDownplay:"chartDownplay",chartSelectChanged:"chartSelectChanged",chartLegendSelectChanged:"chartLegendSelectChanged",chartLegendSelected:"chartLegendSelected",chartLegendUnselected:"chartLegendUnselected",chartLegendLegendSelectAll:"chartLegendLegendSelectAll",chartLegendLegendInverseSelect:"chartLegendLegendInverseSelect",chartLegendScroll:"chartLegendScroll",chartDataZoom:"chartDataZoom",chartDataRangeSelected:"chartDataRangeSelected",chartGraphRoam:"chartGraphRoam",chartGeoRoam:"chartGeoRoam",chartTreeRoam:"chartTreeRoam",chartTimelineChanged:"chartTimelineChanged",chartTimelinePlayChanged:"chartTimelinePlayChanged",chartRestore:"chartRestore",chartDataViewChanged:"chartDataViewChanged",chartMagicTypeChanged:"chartMagicTypeChanged",chartGeoSelectChanged:"chartGeoSelectChanged",chartGeoSelected:"chartGeoSelected",chartGeoUnselected:"chartGeoUnselected",chartAxisAreaSelected:"chartAxisAreaSelected",chartBrush:"chartBrush",chartBrushEnd:"chartBrushEnd",chartBrushSelected:"chartBrushSelected",chartGlobalCursorTaken:"chartGlobalCursorTaken",chartRendered:"chartRendered",chartFinished:"chartFinished"},exportAs:["echarts"],standalone:!0,features:[c.OA$]}),Te})();const Dt=(It={})=>({provide:mt,useFactory:()=>({...It,echarts:()=>C.e(9697).then(C.bind(C,9697))})}),zt=It=>({provide:mt,useValue:It});let Tt=(()=>{var It;class Te{static forRoot(_e){return{ngModule:Te,providers:[zt(_e)]}}static forChild(){return{ngModule:Te}}}return(It=Te).\u0275fac=function(_e){return new(_e||It)},It.\u0275mod=c.$C({type:It}),It.\u0275inj=c.G2t({}),Te})()},7616:(Pn,Et,C)=>{"use strict";C.d(Et,{E:()=>Te,n:()=>Ze});var h=C(4438),c=C(177);const Z=["flamegraph-node",""];function ke(_e,$e){if(1&_e){const Le=h.RV6();h.j41(0,"div",2)(1,"div",3),h.EFF(2),h.k0s(),h.j41(3,"div",2),h.qSk(),h.j41(4,"svg",4)(5,"g",5),h.bIt("click",function(){const Ct=h.eBV(Le).$implicit,kt=h.XpG();return h.Njj(kt.frameClick.emit(Ct.original))})("mouseOverZoneless",function(){const Ct=h.eBV(Le).$implicit,kt=h.XpG();return h.Njj(kt.frameMouseEnter.emit(Ct.original))})("mouseLeaveZoneless",function(){const Ct=h.eBV(Le).$implicit,kt=h.XpG();return h.Njj(kt.frameMouseLeave.emit(Ct.original))})("zoom",function(){const Ct=h.eBV(Le).$implicit,kt=h.XpG();return h.Njj(kt.zoom.emit(Ct))}),h.k0s()()()()}if(2&_e){const Le=$e.$implicit,Oe=h.XpG();h.xc7("position","absolute")("transform","translate("+Oe.getLeft(Le)+"px,"+Oe.getTop(Le)+"px)")("height",Oe.levelHeight,"px"),h.AVh("hide-bar",!(void 0===Oe.minimumBarSize||Oe.getWidth(Le)>Oe.minimumBarSize)),h.R7$(),h.xc7("width",Oe.getWidth(Le),"px"),h.R7$(),h.SpI(" ",Le.label," "),h.R7$(),h.xc7("transform","scaleX("+Oe.getWidth(Le)/Oe.width+")")("height",Oe.levelHeight,"px"),h.R7$(2),h.Y8G("height",Oe.levelHeight)("navigable",Le.navigable)("color",Le.color)}}function $(_e,$e){if(1&_e){const Le=h.RV6();h.j41(0,"ngx-flamegraph-graph",1),h.bIt("frameClick",function(Ct){h.eBV(Le);const kt=h.XpG();return h.Njj(kt.frameClick.emit(Ct))})("frameMouseEnter",function(Ct){h.eBV(Le);const kt=h.XpG();return h.Njj(kt.onFrameMouseEnter(Ct))})("frameMouseLeave",function(Ct){h.eBV(Le);const kt=h.XpG();return h.Njj(kt.onFrameMouseLeave(Ct))})("zoom",function(Ct){h.eBV(Le);const kt=h.XpG();return h.Njj(kt.onZoom(Ct))}),h.k0s()}if(2&_e){const Le=h.XpG();h.xc7("height",Le.depth*Le.levelHeight,"px")("width",Le.width,"px"),h.Y8G("layout",Le.siblingLayout)("data",Le.entries)("depth",Le.depth)("levelHeight",Le.levelHeight)("width",Le.width)("minimumBarSize",Le.minimumBarSize)}}const he=_e=>_e.reduce(($e,Le)=>Math.max($e,Le.value,he(Le.children||[])),-1/0),ae=([_e,$e],Le)=>_e+($e-_e)*Le,Xe=(_e,$e,Le,Oe,Ct=null,kt=0,Cn=1,At=0)=>{const st=[];let cn=0;_e.forEach(Re=>{cn+=Re.value});const vt=[];return _e.forEach(Re=>{var G,X,ce;let ue=Cn/_e.length;"relative"===$e&&(ue=Re.value/cn*Cn||0);const Ee=Math.min(Re.value/Le,1),Ve=Re.color||`hsl(${null!==(G=ae(Oe.hue,Ee))&&void 0!==G?G:0}, ${null!==(X=ae(Oe.saturation,Ee))&&void 0!==X?X:80}%, ${null!==(ce=ae(Oe.lightness,Ee))&&void 0!==ce?ce:0}%)`,fn={label:Re.label,value:Re.value,siblings:vt,color:Ve,widthRatio:ue,originalWidthRatio:ue,originalLeftRatio:kt,leftRatio:kt,navigable:!1,rowNumber:At,original:Re,children:[],parent:Ct};Ct&&Ct.children.push(fn);const xn=Xe(Re.children||[],$e,Le,Oe,fn,kt,ue,At+1);vt.push(fn),st.push(fn,...xn),kt+=ue}),st},tt=_e=>{if(!_e||!_e.length)return 0;let $e=0;for(const Le of _e)$e=Math.max(1+tt(Le.children),$e);return $e},et=(_e,$e)=>{$e.widthRatio=0,$e.leftRatio=_e,$e.children.forEach(Le=>et(_e,Le))},it=_e=>{const $e=_e.siblings.indexOf(_e);for(let Le=0;Le<$e;Le++)_e.siblings[Le].widthRatio=0,_e.siblings[Le].leftRatio=0,_e.siblings[Le].children.forEach(et.bind(null,0));for(let Le=$e+1;Le<_e.siblings.length;Le++)_e.siblings[Le].widthRatio=0,_e.siblings[Le].leftRatio=1,_e.siblings[Le].children.forEach(et.bind(null,1))},at=(_e,$e,Le=0,Oe=1)=>{let Ct=0;_e.forEach(kt=>{Ct+=kt.value}),_e.forEach(kt=>{let Cn=kt.value/Ct*Oe;"equal"===$e&&(Cn=Oe/_e.length),kt.widthRatio=Cn,kt.leftRatio=Le,at(kt.children,$e,Le,Cn),Le+=Cn})},mt=_e=>{_e.navigable=!1,_e.leftRatio=_e.originalLeftRatio,_e.widthRatio=_e.originalWidthRatio,_e.children.forEach(mt)},Dt={hue:[50,0],saturation:[80,80],lightness:[55,60]};let zt=(()=>{class _e{constructor(Le,Oe,Ct){this._ngZone=Le,this._element=Oe,this._renderer=Ct,this.navigable=!1,this.zoom=new h.bkB,this.mouseOverZoneless=new h.bkB,this.mouseLeaveZoneless=new h.bkB}ngOnInit(){this._ngZone.runOutsideAngular(()=>{this.mouseOverTeardownFn=this._renderer.listen(this._element.nativeElement,"mouseover",Le=>this.mouseOverZoneless.emit(Le)),this.mouseLeaveTeardownFn=this._renderer.listen(this._element.nativeElement,"mouseleave",Le=>this.mouseLeaveZoneless.emit(Le))})}ngOnDestroy(){this.mouseOverTeardownFn(),this.mouseLeaveTeardownFn()}}return _e.\u0275fac=function(Le){return new(Le||_e)(h.rXU(h.SKi),h.rXU(h.aKT),h.rXU(h.sFG))},_e.\u0275cmp=h.VBU({type:_e,selectors:[["","flamegraph-node",""]],inputs:{height:"height",navigable:"navigable",color:"color"},outputs:{zoom:"zoom",mouseOverZoneless:"mouseOverZoneless",mouseLeaveZoneless:"mouseLeaveZoneless"},attrs:Z,decls:1,vars:4,consts:[["stroke","white","stroke-width","1px","pointer-events","all","width","100%","rx","1","ry","1",1,"ngx-fg-rect",3,"dblclick"]],template:function(Le,Oe){1&Le&&(h.qSk(),h.j41(0,"rect",0),h.bIt("dblclick",function(){return Oe.zoom.emit()}),h.k0s()),2&Le&&(h.AVh("ngx-fg-navigable",Oe.navigable),h.BMQ("height",Oe.height)("fill",Oe.color))},styles:[".ngx-fg-navigable{opacity:.5}\n"],encapsulation:2,changeDetection:0}),_e})(),Tt=(()=>{class _e{constructor(){this.selectedData=[],this.entries=[],this.frameClick=new h.bkB,this.frameMouseEnter=new h.bkB,this.frameMouseLeave=new h.bkB,this.zoom=new h.bkB}set data(Le){this.entries=Le}get height(){return this.levelHeight*this.depth}getTop(Le){return Le.rowNumber*this.levelHeight}getLeft(Le){return Le.leftRatio*this.width}getWidth(Le){return Le.widthRatio*this.width||0}}return _e.\u0275fac=function(Le){return new(Le||_e)},_e.\u0275cmp=h.VBU({type:_e,selectors:[["ngx-flamegraph-graph"]],inputs:{width:"width",levelHeight:"levelHeight",layout:"layout",depth:"depth",minimumBarSize:"minimumBarSize",data:"data"},outputs:{frameClick:"frameClick",frameMouseEnter:"frameMouseEnter",frameMouseLeave:"frameMouseLeave",zoom:"zoom"},decls:2,vars:3,consts:[[1,"ngx-fg-chart-wrapper"],["class","svg-wrapper",3,"hide-bar","position","transform","height",4,"ngFor","ngForOf"],[1,"svg-wrapper"],[1,"bar-text"],["width","100%","height","100%",1,"ngx-fg-svg"],["flamegraph-node","",1,"ngx-fg-svg-g",3,"click","mouseOverZoneless","mouseLeaveZoneless","zoom","height","navigable","color"]],template:function(Le,Oe){1&Le&&(h.j41(0,"div",0),h.DNE(1,ke,6,18,"div",1),h.k0s()),2&Le&&(h.AVh("ngx-fg-grayscale",Oe.selectedData&&Oe.selectedData.length),h.R7$(),h.Y8G("ngForOf",Oe.entries))},dependencies:[c.Sq,zt],styles:[".ngx-fg-svg{pointer-events:none}ngx-flamegraph-graph{position:absolute;display:block;overflow:hidden}.svg-wrapper{width:100%;transform-origin:left}.svg-wrapper{transition:transform .333s ease-in-out,opacity .333s ease-in-out}.bar-text{position:absolute;z-index:1;overflow:hidden;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:#fff;padding:5px;font-family:sans-serif;font-size:80%}.hide-bar{opacity:0;pointer-events:none}\n"],encapsulation:2,changeDetection:0}),_e})();const It=typeof ResizeObserver<"u";let Te=(()=>{class _e{constructor(Le,Oe,Ct){this._el=Le,this.cdr=Oe,this._ngZone=Ct,this.entries=[],this.depth=0,this.frameClick=new h.bkB,this.frameMouseEnter=new h.bkB,this.frameMouseLeave=new h.bkB,this.siblingLayout="relative",this.width=null,this.levelHeight=25}set config(Le){var Oe,Ct;this._data=Le.data,this._colors=null!==(Oe=Le.color)&&void 0!==Oe?Oe:Dt,this.minimumBarSize=null!==(Ct=Le.minimumBarSize)&&void 0!==Ct?Ct:2,this._refresh()}get hostStyles(){return`height: ${this.depth*this.levelHeight}px `}ngOnInit(){var Le;const Oe=null===(Le=this._el.nativeElement)||void 0===Le?void 0:Le.parentElement;Oe&&null===this.width&&It&&(this._resizeObserver=new ResizeObserver(()=>this._ngZone.run(()=>this._onParentResize())),this._resizeObserver.observe(Oe))}ngOnDestroy(){var Le;const Oe=null===(Le=this._el.nativeElement)||void 0===Le?void 0:Le.parentElement;Oe&&this._resizeObserver&&It&&this._resizeObserver.unobserve(Oe)}_onParentResize(){var Le;const Oe=null===(Le=this._el.nativeElement)||void 0===Le?void 0:Le.parentElement;Oe&&(this.width=Oe.clientWidth,this.cdr.markForCheck())}_refresh(){const{hue:Le,saturation:Oe,lightness:Ct}=this._colors,kt={hue:Array.isArray(Le)?Le:[Le,Le],saturation:Array.isArray(Oe)?Oe:[Oe,Oe],lightness:Array.isArray(Ct)?Ct:[Ct,Ct]};this.entries=Xe(this._data,this.siblingLayout,he(this._data),kt),this.depth=tt(this._data)}onZoom(Le){Le.navigable&&mt(Le),((_e,$e)=>{let Le=_e;for(;Le;)Le.widthRatio=1,Le.leftRatio=0,it(Le),Le=Le.parent,Le&&(Le.navigable=!0);at(_e.children,$e)})(Le,this.siblingLayout)}onFrameMouseEnter(Le){0!==this.frameMouseEnter.observers.length&&this._ngZone.run(()=>this.frameMouseEnter.emit(Le))}onFrameMouseLeave(Le){0!==this.frameMouseLeave.observers.length&&this._ngZone.run(()=>this.frameMouseLeave.emit(Le))}}return _e.\u0275fac=function(Le){return new(Le||_e)(h.rXU(h.aKT),h.rXU(h.gRc),h.rXU(h.SKi))},_e.\u0275cmp=h.VBU({type:_e,selectors:[["ngx-flamegraph"]],hostVars:1,hostBindings:function(Le,Oe){2&Le&&h.BMQ("style",Oe.hostStyles,h.$dS)},inputs:{siblingLayout:"siblingLayout",width:"width",levelHeight:"levelHeight",config:"config"},outputs:{frameClick:"frameClick",frameMouseEnter:"frameMouseEnter",frameMouseLeave:"frameMouseLeave"},decls:1,vars:1,consts:[[3,"layout","data","depth","levelHeight","width","height","minimumBarSize","frameClick","frameMouseEnter","frameMouseLeave","zoom",4,"ngIf"],[3,"frameClick","frameMouseEnter","frameMouseLeave","zoom","layout","data","depth","levelHeight","width","minimumBarSize"]],template:function(Le,Oe){1&Le&&h.DNE(0,$,1,10,"ngx-flamegraph-graph",0),2&Le&&h.Y8G("ngIf",null!==Oe.width)},dependencies:[c.bT,Tt],styles:["ngx-flamegraph{display:block}\n"],encapsulation:2,changeDetection:0}),_e})(),Ze=(()=>{class _e{}return _e.\u0275fac=function(Le){return new(Le||_e)},_e.\u0275mod=h.$C({type:_e}),_e.\u0275inj=h.G2t({imports:[c.MD]}),_e})()},9549:(Pn,Et,C)=>{"use strict";C.d(Et,{NN:()=>mo,y2:()=>bo});var h=C(467),c=C(177),Z=C(4438),ke=C(1413),$=C(7786),he=C(7673),ae=C(1584),Xe=C(5558),tt=C(3703),Se=C(3294),be=C(2771),et=C(8750),it=C(7707),Ye=C(9974);function mt(Pt,ge,...fe){if(!0===ge)return void Pt();if(!1===ge)return;const K=new it.Ms({next:()=>{K.unsubscribe(),Pt()}});return(0,et.Tg)(ge(...fe)).subscribe(K)}var Dt=C(9172),zt=C(6354),Tt=C(6977);function _e(Pt,ge,fe){if("function"==typeof Pt?Pt===ge:Pt.has(ge))return arguments.length<3?ge:fe;throw new TypeError("Private element is not present on this object")}C(1594);var $e=C(9842);let Oe={async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null};function Ct(Pt){Oe=Pt}const kt=/[&<>"']/,Cn=new RegExp(kt.source,"g"),At=/[<>"']|&(?!(#\d{1,7}|#[Xx][a-fA-F0-9]{1,6}|\w+);)/,st=new RegExp(At.source,"g"),cn={"&":"&","<":"<",">":">",'"':""","'":"'"},vt=Pt=>cn[Pt];function Re(Pt,ge){if(ge){if(kt.test(Pt))return Pt.replace(Cn,vt)}else if(At.test(Pt))return Pt.replace(st,vt);return Pt}const G=/&(#(?:\d+)|(?:#x[0-9A-Fa-f]+)|(?:\w+));?/gi,ce=/(^|[^\[])\^/g;function ue(Pt,ge){let fe="string"==typeof Pt?Pt:Pt.source;ge=ge||"";const K={replace:(je,Be)=>{let ct="string"==typeof Be?Be:Be.source;return ct=ct.replace(ce,"$1"),fe=fe.replace(je,ct),K},getRegex:()=>new RegExp(fe,ge)};return K}function Ee(Pt){try{Pt=encodeURI(Pt).replace(/%25/g,"%")}catch{return null}return Pt}const Ve={exec:()=>null};function ut(Pt,ge){const K=Pt.replace(/\|/g,(Be,ct,Kt)=>{let Dn=!1,Hn=ct;for(;--Hn>=0&&"\\"===Kt[Hn];)Dn=!Dn;return Dn?"|":" |"}).split(/ \|/);let je=0;if(K[0].trim()||K.shift(),K.length>0&&!K[K.length-1].trim()&&K.pop(),ge)if(K.length>ge)K.splice(ge);else for(;K.length0)return{type:"space",raw:fe[0]}}code(ge){const fe=this.rules.block.code.exec(ge);if(fe){const K=fe[0].replace(/^ {1,4}/gm,"");return{type:"code",raw:fe[0],codeBlockStyle:"indented",text:this.options.pedantic?K:fn(K,"\n")}}}fences(ge){const fe=this.rules.block.fences.exec(ge);if(fe){const K=fe[0],je=function Je(Pt,ge){const fe=Pt.match(/^(\s+)(?:```)/);if(null===fe)return ge;const K=fe[1];return ge.split("\n").map(je=>{const Be=je.match(/^\s+/);if(null===Be)return je;const[ct]=Be;return ct.length>=K.length?je.slice(K.length):je}).join("\n")}(K,fe[3]||"");return{type:"code",raw:K,lang:fe[2]?fe[2].trim().replace(this.rules.inline.anyPunctuation,"$1"):fe[2],text:je}}}heading(ge){const fe=this.rules.block.heading.exec(ge);if(fe){let K=fe[2].trim();if(/#$/.test(K)){const je=fn(K,"#");(this.options.pedantic||!je||/ $/.test(je))&&(K=je.trim())}return{type:"heading",raw:fe[0],depth:fe[1].length,text:K,tokens:this.lexer.inline(K)}}}hr(ge){const fe=this.rules.block.hr.exec(ge);if(fe)return{type:"hr",raw:fe[0]}}blockquote(ge){const fe=this.rules.block.blockquote.exec(ge);if(fe){let K=fe[0].replace(/\n {0,3}((?:=+|-+) *)(?=\n|$)/g,"\n $1");K=fn(K.replace(/^ *>[ \t]?/gm,""),"\n");const je=this.lexer.state.top;this.lexer.state.top=!0;const Be=this.lexer.blockTokens(K);return this.lexer.state.top=je,{type:"blockquote",raw:fe[0],tokens:Be,text:K}}}list(ge){let fe=this.rules.block.list.exec(ge);if(fe){let K=fe[1].trim();const je=K.length>1,Be={type:"list",raw:"",ordered:je,start:je?+K.slice(0,-1):"",loose:!1,items:[]};K=je?`\\d{1,9}\\${K.slice(-1)}`:`\\${K}`,this.options.pedantic&&(K=je?K:"[*+-]");const ct=new RegExp(`^( {0,3}${K})((?:[\t ][^\\n]*)?(?:\\n|$))`);let Kt="",Dn="",Hn=!1;for(;ge;){let w=!1;if(!(fe=ct.exec(ge))||this.rules.block.hr.test(ge))break;Kt=fe[0],ge=ge.substring(Kt.length);let H=fe[2].split("\n",1)[0].replace(/^\t+/,ai=>" ".repeat(3*ai.length)),oe=ge.split("\n",1)[0],P=0;this.options.pedantic?(P=2,Dn=H.trimStart()):(P=fe[2].search(/[^ ]/),P=P>4?1:P,Dn=H.slice(P),P+=fe[1].length);let Ce=!1;if(!H&&/^ *$/.test(oe)&&(Kt+=oe+"\n",ge=ge.substring(oe.length+1),w=!0),!w){const ai=new RegExp(`^ {0,${Math.min(3,P-1)}}(?:[*+-]|\\d{1,9}[.)])((?:[ \t][^\\n]*)?(?:\\n|$))`),W=new RegExp(`^ {0,${Math.min(3,P-1)}}((?:- *){3,}|(?:_ *){3,}|(?:\\* *){3,})(?:\\n+|$)`),ye=new RegExp(`^ {0,${Math.min(3,P-1)}}(?:\`\`\`|~~~)`),Fe=new RegExp(`^ {0,${Math.min(3,P-1)}}#`);for(;ge;){const ot=ge.split("\n",1)[0];if(oe=ot,this.options.pedantic&&(oe=oe.replace(/^ {1,4}(?=( {4})*[^ ])/g," ")),ye.test(oe)||Fe.test(oe)||ai.test(oe)||W.test(ge))break;if(oe.search(/[^ ]/)>=P||!oe.trim())Dn+="\n"+oe.slice(P);else{if(Ce||H.search(/[^ ]/)>=4||ye.test(H)||Fe.test(H)||W.test(H))break;Dn+="\n"+oe}!Ce&&!oe.trim()&&(Ce=!0),Kt+=ot+"\n",ge=ge.substring(ot.length+1),H=oe.slice(P)}}Be.loose||(Hn?Be.loose=!0:/\n *\n *$/.test(Kt)&&(Hn=!0));let vr,dt=null;this.options.gfm&&(dt=/^\[[ xX]\] /.exec(Dn),dt&&(vr="[ ] "!==dt[0],Dn=Dn.replace(/^\[[ xX]\] +/,""))),Be.items.push({type:"list_item",raw:Kt,task:!!dt,checked:vr,loose:!1,text:Dn,tokens:[]}),Be.raw+=Kt}Be.items[Be.items.length-1].raw=Kt.trimEnd(),Be.items[Be.items.length-1].text=Dn.trimEnd(),Be.raw=Be.raw.trimEnd();for(let w=0;w"space"===P.type),oe=H.length>0&&H.some(P=>/\n.*\n/.test(P.raw));Be.loose=oe}if(Be.loose)for(let w=0;w$/,"$1").replace(this.rules.inline.anyPunctuation,"$1"):"",Be=fe[3]?fe[3].substring(1,fe[3].length-1).replace(this.rules.inline.anyPunctuation,"$1"):fe[3];return{type:"def",tag:K,raw:fe[0],href:je,title:Be}}}table(ge){const fe=this.rules.block.table.exec(ge);if(!fe||!/[:|]/.test(fe[2]))return;const K=ut(fe[1]),je=fe[2].replace(/^\||\| *$/g,"").split("|"),Be=fe[3]&&fe[3].trim()?fe[3].replace(/\n[ \t]*$/,"").split("\n"):[],ct={type:"table",raw:fe[0],header:[],align:[],rows:[]};if(K.length===je.length){for(const Kt of je)/^ *-+: *$/.test(Kt)?ct.align.push("right"):/^ *:-+: *$/.test(Kt)?ct.align.push("center"):/^ *:-+ *$/.test(Kt)?ct.align.push("left"):ct.align.push(null);for(const Kt of K)ct.header.push({text:Kt,tokens:this.lexer.inline(Kt)});for(const Kt of Be)ct.rows.push(ut(Kt,ct.header.length).map(Dn=>({text:Dn,tokens:this.lexer.inline(Dn)})));return ct}}lheading(ge){const fe=this.rules.block.lheading.exec(ge);if(fe)return{type:"heading",raw:fe[0],depth:"="===fe[2].charAt(0)?1:2,text:fe[1],tokens:this.lexer.inline(fe[1])}}paragraph(ge){const fe=this.rules.block.paragraph.exec(ge);if(fe){const K="\n"===fe[1].charAt(fe[1].length-1)?fe[1].slice(0,-1):fe[1];return{type:"paragraph",raw:fe[0],text:K,tokens:this.lexer.inline(K)}}}text(ge){const fe=this.rules.block.text.exec(ge);if(fe)return{type:"text",raw:fe[0],text:fe[0],tokens:this.lexer.inline(fe[0])}}escape(ge){const fe=this.rules.inline.escape.exec(ge);if(fe)return{type:"escape",raw:fe[0],text:Re(fe[1])}}tag(ge){const fe=this.rules.inline.tag.exec(ge);if(fe)return!this.lexer.state.inLink&&/^
    /i.test(fe[0])&&(this.lexer.state.inLink=!1),!this.lexer.state.inRawBlock&&/^<(pre|code|kbd|script)(\s|>)/i.test(fe[0])?this.lexer.state.inRawBlock=!0:this.lexer.state.inRawBlock&&/^<\/(pre|code|kbd|script)(\s|>)/i.test(fe[0])&&(this.lexer.state.inRawBlock=!1),{type:"html",raw:fe[0],inLink:this.lexer.state.inLink,inRawBlock:this.lexer.state.inRawBlock,block:!1,text:fe[0]}}link(ge){const fe=this.rules.inline.link.exec(ge);if(fe){const K=fe[2].trim();if(!this.options.pedantic&&/^$/.test(K))return;const ct=fn(K.slice(0,-1),"\\");if((K.length-ct.length)%2==0)return}else{const ct=function xn(Pt,ge){if(-1===Pt.indexOf(ge[1]))return-1;let fe=0;for(let K=0;K-1){const Dn=(0===fe[0].indexOf("!")?5:4)+fe[1].length+ct;fe[2]=fe[2].substring(0,ct),fe[0]=fe[0].substring(0,Dn).trim(),fe[3]=""}}let je=fe[2],Be="";if(this.options.pedantic){const ct=/^([^'"]*[^\s])\s+(['"])(.*)\2/.exec(je);ct&&(je=ct[1],Be=ct[3])}else Be=fe[3]?fe[3].slice(1,-1):"";return je=je.trim(),/^$/.test(K)?je.slice(1):je.slice(1,-1)),un(fe,{href:je&&je.replace(this.rules.inline.anyPunctuation,"$1"),title:Be&&Be.replace(this.rules.inline.anyPunctuation,"$1")},fe[0],this.lexer)}}reflink(ge,fe){let K;if((K=this.rules.inline.reflink.exec(ge))||(K=this.rules.inline.nolink.exec(ge))){const Be=fe[(K[2]||K[1]).replace(/\s+/g," ").toLowerCase()];if(!Be){const ct=K[0].charAt(0);return{type:"text",raw:ct,text:ct}}return un(K,Be,K[0],this.lexer)}}emStrong(ge,fe,K=""){let je=this.rules.inline.emStrongLDelim.exec(ge);if(!(!je||je[3]&&K.match(/[0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC\u{10000}-\u{1000B}\u{1000D}-\u{10026}\u{10028}-\u{1003A}\u{1003C}\u{1003D}\u{1003F}-\u{1004D}\u{10050}-\u{1005D}\u{10080}-\u{100FA}\u{10107}-\u{10133}\u{10140}-\u{10178}\u{1018A}\u{1018B}\u{10280}-\u{1029C}\u{102A0}-\u{102D0}\u{102E1}-\u{102FB}\u{10300}-\u{10323}\u{1032D}-\u{1034A}\u{10350}-\u{10375}\u{10380}-\u{1039D}\u{103A0}-\u{103C3}\u{103C8}-\u{103CF}\u{103D1}-\u{103D5}\u{10400}-\u{1049D}\u{104A0}-\u{104A9}\u{104B0}-\u{104D3}\u{104D8}-\u{104FB}\u{10500}-\u{10527}\u{10530}-\u{10563}\u{10570}-\u{1057A}\u{1057C}-\u{1058A}\u{1058C}-\u{10592}\u{10594}\u{10595}\u{10597}-\u{105A1}\u{105A3}-\u{105B1}\u{105B3}-\u{105B9}\u{105BB}\u{105BC}\u{10600}-\u{10736}\u{10740}-\u{10755}\u{10760}-\u{10767}\u{10780}-\u{10785}\u{10787}-\u{107B0}\u{107B2}-\u{107BA}\u{10800}-\u{10805}\u{10808}\u{1080A}-\u{10835}\u{10837}\u{10838}\u{1083C}\u{1083F}-\u{10855}\u{10858}-\u{10876}\u{10879}-\u{1089E}\u{108A7}-\u{108AF}\u{108E0}-\u{108F2}\u{108F4}\u{108F5}\u{108FB}-\u{1091B}\u{10920}-\u{10939}\u{10980}-\u{109B7}\u{109BC}-\u{109CF}\u{109D2}-\u{10A00}\u{10A10}-\u{10A13}\u{10A15}-\u{10A17}\u{10A19}-\u{10A35}\u{10A40}-\u{10A48}\u{10A60}-\u{10A7E}\u{10A80}-\u{10A9F}\u{10AC0}-\u{10AC7}\u{10AC9}-\u{10AE4}\u{10AEB}-\u{10AEF}\u{10B00}-\u{10B35}\u{10B40}-\u{10B55}\u{10B58}-\u{10B72}\u{10B78}-\u{10B91}\u{10BA9}-\u{10BAF}\u{10C00}-\u{10C48}\u{10C80}-\u{10CB2}\u{10CC0}-\u{10CF2}\u{10CFA}-\u{10D23}\u{10D30}-\u{10D39}\u{10E60}-\u{10E7E}\u{10E80}-\u{10EA9}\u{10EB0}\u{10EB1}\u{10F00}-\u{10F27}\u{10F30}-\u{10F45}\u{10F51}-\u{10F54}\u{10F70}-\u{10F81}\u{10FB0}-\u{10FCB}\u{10FE0}-\u{10FF6}\u{11003}-\u{11037}\u{11052}-\u{1106F}\u{11071}\u{11072}\u{11075}\u{11083}-\u{110AF}\u{110D0}-\u{110E8}\u{110F0}-\u{110F9}\u{11103}-\u{11126}\u{11136}-\u{1113F}\u{11144}\u{11147}\u{11150}-\u{11172}\u{11176}\u{11183}-\u{111B2}\u{111C1}-\u{111C4}\u{111D0}-\u{111DA}\u{111DC}\u{111E1}-\u{111F4}\u{11200}-\u{11211}\u{11213}-\u{1122B}\u{1123F}\u{11240}\u{11280}-\u{11286}\u{11288}\u{1128A}-\u{1128D}\u{1128F}-\u{1129D}\u{1129F}-\u{112A8}\u{112B0}-\u{112DE}\u{112F0}-\u{112F9}\u{11305}-\u{1130C}\u{1130F}\u{11310}\u{11313}-\u{11328}\u{1132A}-\u{11330}\u{11332}\u{11333}\u{11335}-\u{11339}\u{1133D}\u{11350}\u{1135D}-\u{11361}\u{11400}-\u{11434}\u{11447}-\u{1144A}\u{11450}-\u{11459}\u{1145F}-\u{11461}\u{11480}-\u{114AF}\u{114C4}\u{114C5}\u{114C7}\u{114D0}-\u{114D9}\u{11580}-\u{115AE}\u{115D8}-\u{115DB}\u{11600}-\u{1162F}\u{11644}\u{11650}-\u{11659}\u{11680}-\u{116AA}\u{116B8}\u{116C0}-\u{116C9}\u{11700}-\u{1171A}\u{11730}-\u{1173B}\u{11740}-\u{11746}\u{11800}-\u{1182B}\u{118A0}-\u{118F2}\u{118FF}-\u{11906}\u{11909}\u{1190C}-\u{11913}\u{11915}\u{11916}\u{11918}-\u{1192F}\u{1193F}\u{11941}\u{11950}-\u{11959}\u{119A0}-\u{119A7}\u{119AA}-\u{119D0}\u{119E1}\u{119E3}\u{11A00}\u{11A0B}-\u{11A32}\u{11A3A}\u{11A50}\u{11A5C}-\u{11A89}\u{11A9D}\u{11AB0}-\u{11AF8}\u{11C00}-\u{11C08}\u{11C0A}-\u{11C2E}\u{11C40}\u{11C50}-\u{11C6C}\u{11C72}-\u{11C8F}\u{11D00}-\u{11D06}\u{11D08}\u{11D09}\u{11D0B}-\u{11D30}\u{11D46}\u{11D50}-\u{11D59}\u{11D60}-\u{11D65}\u{11D67}\u{11D68}\u{11D6A}-\u{11D89}\u{11D98}\u{11DA0}-\u{11DA9}\u{11EE0}-\u{11EF2}\u{11F02}\u{11F04}-\u{11F10}\u{11F12}-\u{11F33}\u{11F50}-\u{11F59}\u{11FB0}\u{11FC0}-\u{11FD4}\u{12000}-\u{12399}\u{12400}-\u{1246E}\u{12480}-\u{12543}\u{12F90}-\u{12FF0}\u{13000}-\u{1342F}\u{13441}-\u{13446}\u{14400}-\u{14646}\u{16800}-\u{16A38}\u{16A40}-\u{16A5E}\u{16A60}-\u{16A69}\u{16A70}-\u{16ABE}\u{16AC0}-\u{16AC9}\u{16AD0}-\u{16AED}\u{16B00}-\u{16B2F}\u{16B40}-\u{16B43}\u{16B50}-\u{16B59}\u{16B5B}-\u{16B61}\u{16B63}-\u{16B77}\u{16B7D}-\u{16B8F}\u{16E40}-\u{16E96}\u{16F00}-\u{16F4A}\u{16F50}\u{16F93}-\u{16F9F}\u{16FE0}\u{16FE1}\u{16FE3}\u{17000}-\u{187F7}\u{18800}-\u{18CD5}\u{18D00}-\u{18D08}\u{1AFF0}-\u{1AFF3}\u{1AFF5}-\u{1AFFB}\u{1AFFD}\u{1AFFE}\u{1B000}-\u{1B122}\u{1B132}\u{1B150}-\u{1B152}\u{1B155}\u{1B164}-\u{1B167}\u{1B170}-\u{1B2FB}\u{1BC00}-\u{1BC6A}\u{1BC70}-\u{1BC7C}\u{1BC80}-\u{1BC88}\u{1BC90}-\u{1BC99}\u{1D2C0}-\u{1D2D3}\u{1D2E0}-\u{1D2F3}\u{1D360}-\u{1D378}\u{1D400}-\u{1D454}\u{1D456}-\u{1D49C}\u{1D49E}\u{1D49F}\u{1D4A2}\u{1D4A5}\u{1D4A6}\u{1D4A9}-\u{1D4AC}\u{1D4AE}-\u{1D4B9}\u{1D4BB}\u{1D4BD}-\u{1D4C3}\u{1D4C5}-\u{1D505}\u{1D507}-\u{1D50A}\u{1D50D}-\u{1D514}\u{1D516}-\u{1D51C}\u{1D51E}-\u{1D539}\u{1D53B}-\u{1D53E}\u{1D540}-\u{1D544}\u{1D546}\u{1D54A}-\u{1D550}\u{1D552}-\u{1D6A5}\u{1D6A8}-\u{1D6C0}\u{1D6C2}-\u{1D6DA}\u{1D6DC}-\u{1D6FA}\u{1D6FC}-\u{1D714}\u{1D716}-\u{1D734}\u{1D736}-\u{1D74E}\u{1D750}-\u{1D76E}\u{1D770}-\u{1D788}\u{1D78A}-\u{1D7A8}\u{1D7AA}-\u{1D7C2}\u{1D7C4}-\u{1D7CB}\u{1D7CE}-\u{1D7FF}\u{1DF00}-\u{1DF1E}\u{1DF25}-\u{1DF2A}\u{1E030}-\u{1E06D}\u{1E100}-\u{1E12C}\u{1E137}-\u{1E13D}\u{1E140}-\u{1E149}\u{1E14E}\u{1E290}-\u{1E2AD}\u{1E2C0}-\u{1E2EB}\u{1E2F0}-\u{1E2F9}\u{1E4D0}-\u{1E4EB}\u{1E4F0}-\u{1E4F9}\u{1E7E0}-\u{1E7E6}\u{1E7E8}-\u{1E7EB}\u{1E7ED}\u{1E7EE}\u{1E7F0}-\u{1E7FE}\u{1E800}-\u{1E8C4}\u{1E8C7}-\u{1E8CF}\u{1E900}-\u{1E943}\u{1E94B}\u{1E950}-\u{1E959}\u{1EC71}-\u{1ECAB}\u{1ECAD}-\u{1ECAF}\u{1ECB1}-\u{1ECB4}\u{1ED01}-\u{1ED2D}\u{1ED2F}-\u{1ED3D}\u{1EE00}-\u{1EE03}\u{1EE05}-\u{1EE1F}\u{1EE21}\u{1EE22}\u{1EE24}\u{1EE27}\u{1EE29}-\u{1EE32}\u{1EE34}-\u{1EE37}\u{1EE39}\u{1EE3B}\u{1EE42}\u{1EE47}\u{1EE49}\u{1EE4B}\u{1EE4D}-\u{1EE4F}\u{1EE51}\u{1EE52}\u{1EE54}\u{1EE57}\u{1EE59}\u{1EE5B}\u{1EE5D}\u{1EE5F}\u{1EE61}\u{1EE62}\u{1EE64}\u{1EE67}-\u{1EE6A}\u{1EE6C}-\u{1EE72}\u{1EE74}-\u{1EE77}\u{1EE79}-\u{1EE7C}\u{1EE7E}\u{1EE80}-\u{1EE89}\u{1EE8B}-\u{1EE9B}\u{1EEA1}-\u{1EEA3}\u{1EEA5}-\u{1EEA9}\u{1EEAB}-\u{1EEBB}\u{1F100}-\u{1F10C}\u{1FBF0}-\u{1FBF9}\u{20000}-\u{2A6DF}\u{2A700}-\u{2B739}\u{2B740}-\u{2B81D}\u{2B820}-\u{2CEA1}\u{2CEB0}-\u{2EBE0}\u{2EBF0}-\u{2EE5D}\u{2F800}-\u{2FA1D}\u{30000}-\u{3134A}\u{31350}-\u{323AF}]/u))&&(!je[1]&&!je[2]||!K||this.rules.inline.punctuation.exec(K))){const ct=[...je[0]].length-1;let Kt,Dn,Hn=ct,w=0;const H="*"===je[0][0]?this.rules.inline.emStrongRDelimAst:this.rules.inline.emStrongRDelimUnd;for(H.lastIndex=0,fe=fe.slice(-1*ge.length+ct);null!=(je=H.exec(fe));){if(Kt=je[1]||je[2]||je[3]||je[4]||je[5]||je[6],!Kt)continue;if(Dn=[...Kt].length,je[3]||je[4]){Hn+=Dn;continue}if((je[5]||je[6])&&ct%3&&!((ct+Dn)%3)){w+=Dn;continue}if(Hn-=Dn,Hn>0)continue;Dn=Math.min(Dn,Dn+Hn+w);const oe=[...je[0]][0].length,P=ge.slice(0,ct+je.index+oe+Dn);if(Math.min(ct,Dn)%2){const dt=P.slice(1,-1);return{type:"em",raw:P,text:dt,tokens:this.lexer.inlineTokens(dt)}}const Ce=P.slice(2,-2);return{type:"strong",raw:P,text:Ce,tokens:this.lexer.inlineTokens(Ce)}}}}codespan(ge){const fe=this.rules.inline.code.exec(ge);if(fe){let K=fe[2].replace(/\n/g," ");const je=/[^ ]/.test(K),Be=/^ /.test(K)&&/ $/.test(K);return je&&Be&&(K=K.substring(1,K.length-1)),K=Re(K,!0),{type:"codespan",raw:fe[0],text:K}}}br(ge){const fe=this.rules.inline.br.exec(ge);if(fe)return{type:"br",raw:fe[0]}}del(ge){const fe=this.rules.inline.del.exec(ge);if(fe)return{type:"del",raw:fe[0],text:fe[2],tokens:this.lexer.inlineTokens(fe[2])}}autolink(ge){const fe=this.rules.inline.autolink.exec(ge);if(fe){let K,je;return"@"===fe[2]?(K=Re(fe[1]),je="mailto:"+K):(K=Re(fe[1]),je=K),{type:"link",raw:fe[0],text:K,href:je,tokens:[{type:"text",raw:K,text:K}]}}}url(ge){let fe;if(fe=this.rules.inline.url.exec(ge)){let Be,ct;if("@"===fe[2])Be=Re(fe[0]),ct="mailto:"+Be;else{let Kt;do{var K,je;Kt=fe[0],fe[0]=null!==(K=null===(je=this.rules.inline._backpedal.exec(fe[0]))||void 0===je?void 0:je[0])&&void 0!==K?K:""}while(Kt!==fe[0]);Be=Re(fe[0]),ct="www."===fe[1]?"http://"+fe[0]:fe[0]}return{type:"link",raw:fe[0],text:Be,href:ct,tokens:[{type:"text",raw:Be,text:Be}]}}}inlineText(ge){const fe=this.rules.inline.text.exec(ge);if(fe){let K;return K=this.lexer.state.inRawBlock?fe[0]:Re(fe[0]),{type:"text",raw:fe[0],text:K}}}}const gr=/^ {0,3}((?:-[\t ]*){3,}|(?:_[ \t]*){3,}|(?:\*[ \t]*){3,})(?:\n+|$)/,dr=/(?:[*+-]|\d{1,9}[.)])/,nt=ue(/^(?!bull |blockCode|fences|blockquote|heading|html)((?:.|\n(?!\s*?\n|bull |blockCode|fences|blockquote|heading|html))+?)\n {0,3}(=+|-+) *(?:\n+|$)/).replace(/bull/g,dr).replace(/blockCode/g,/ {4}/).replace(/fences/g,/ {0,3}(?:`{3,}|~{3,})/).replace(/blockquote/g,/ {0,3}>/).replace(/heading/g,/ {0,3}#{1,6}/).replace(/html/g,/ {0,3}<[^\n>]+>\n/).getRegex(),Lt=/^([^\n]+(?:\n(?!hr|heading|lheading|blockquote|fences|list|html|table| +\n)[^\n]+)*)/,yn=/(?!\s*\])(?:\\.|[^\[\]\\])+/,En=ue(/^ {0,3}\[(label)\]: *(?:\n *)?([^<\s][^\s]*|<.*?>)(?:(?: +(?:\n *)?| *\n *)(title))? *(?:\n+|$)/).replace("label",yn).replace("title",/(?:"(?:\\"?|[^"\\])*"|'[^'\n]*(?:\n[^'\n]+)*\n?'|\([^()]*\))/).getRegex(),Fr=ue(/^( {0,3}bull)([ \t][^\n]+?)?(?:\n|$)/).replace(/bull/g,dr).getRegex(),Vn="address|article|aside|base|basefont|blockquote|body|caption|center|col|colgroup|dd|details|dialog|dir|div|dl|dt|fieldset|figcaption|figure|footer|form|frame|frameset|h[1-6]|head|header|hr|html|iframe|legend|li|link|main|menu|menuitem|meta|nav|noframes|ol|optgroup|option|p|param|search|section|summary|table|tbody|td|tfoot|th|thead|title|tr|track|ul",$n=/|$))/,In=ue("^ {0,3}(?:<(script|pre|style|textarea)[\\s>][\\s\\S]*?(?:[^\\n]*\\n+|$)|comment[^\\n]*(\\n+|$)|<\\?[\\s\\S]*?(?:\\?>\\n*|$)|\\n*|$)|\\n*|$)|)[\\s\\S]*?(?:(?:\\n *)+\\n|$)|<(?!script|pre|style|textarea)([a-z][\\w-]*)(?:attribute)*? */?>(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$)|(?=[ \\t]*(?:\\n|$))[\\s\\S]*?(?:(?:\\n *)+\\n|$))","i").replace("comment",$n).replace("tag",Vn).replace("attribute",/ +[a-zA-Z:_][\w.:-]*(?: *= *"[^"\n]*"| *= *'[^'\n]*'| *= *[^\s"'=<>`]+)?/).getRegex(),on=ue(Lt).replace("hr",gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("|table","").replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Vn).getRegex(),br={blockquote:ue(/^( {0,3}> ?(paragraph|[^\n]*)(?:\n|$))+/).replace("paragraph",on).getRegex(),code:/^( {4}[^\n]+(?:\n(?: *(?:\n|$))*)?)+/,def:En,fences:/^ {0,3}(`{3,}(?=[^`\n]*(?:\n|$))|~{3,})([^\n]*)(?:\n|$)(?:|([\s\S]*?)(?:\n|$))(?: {0,3}\1[~`]* *(?=\n|$)|$)/,heading:/^ {0,3}(#{1,6})(?=\s|$)(.*)(?:\n+|$)/,hr:gr,html:In,lheading:nt,list:Fr,newline:/^(?: *(?:\n|$))+/,paragraph:on,table:Ve,text:/^[^\n]+/},Vr=ue("^ *([^\\n ].*)\\n {0,3}((?:\\| *)?:?-+:? *(?:\\| *:?-+:? *)*(?:\\| *)?)(?:\\n((?:(?! *\\n|hr|heading|blockquote|code|fences|list|html).*(?:\\n|$))*)\\n*|$)").replace("hr",gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("blockquote"," {0,3}>").replace("code"," {4}[^\\n]").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Vn).getRegex(),rr={...br,table:Vr,paragraph:ue(Lt).replace("hr",gr).replace("heading"," {0,3}#{1,6}(?:\\s|$)").replace("|lheading","").replace("table",Vr).replace("blockquote"," {0,3}>").replace("fences"," {0,3}(?:`{3,}(?=[^`\\n]*\\n)|~{3,})[^\\n]*\\n").replace("list"," {0,3}(?:[*+-]|1[.)]) ").replace("html",")|<(?:script|pre|style|textarea|!--)").replace("tag",Vn).getRegex()},Mr={...br,html:ue("^ *(?:comment *(?:\\n|\\s*$)|<(tag)[\\s\\S]+? *(?:\\n{2,}|\\s*$)|\\s]*)*?/?> *(?:\\n{2,}|\\s*$))").replace("comment",$n).replace(/tag/g,"(?!(?:a|em|strong|small|s|cite|q|dfn|abbr|data|time|code|var|samp|kbd|sub|sup|i|b|u|mark|ruby|rt|rp|bdi|bdo|span|br|wbr|ins|del|img)\\b)\\w+(?!:|[^\\w\\s@]*@)\\b").getRegex(),def:/^ *\[([^\]]+)\]: *]+)>?(?: +(["(][^\n]+[")]))? *(?:\n+|$)/,heading:/^(#{1,6})(.*)(?:\n+|$)/,fences:Ve,lheading:/^(.+?)\n {0,3}(=+|-+) *(?:\n+|$)/,paragraph:ue(Lt).replace("hr",gr).replace("heading"," *#{1,6} *[^\n]").replace("lheading",nt).replace("|table","").replace("blockquote"," {0,3}>").replace("|fences","").replace("|list","").replace("|html","").replace("|tag","").getRegex()},sr=/^\\([!"#$%&'()*+,\-./:;<=>?@\[\]\\^_`{|}~])/,Tr=/^( {2,}|\\)\n(?!\s*$)/,Br="\\p{P}\\p{S}",ar=ue(/^((?![*_])[\spunctuation])/,"u").replace(/punctuation/g,Br).getRegex(),li=ue(/^(?:\*+(?:((?!\*)[punct])|[^\s*]))|^_+(?:((?!_)[punct])|([^\s_]))/,"u").replace(/punct/g,Br).getRegex(),Di=ue("^[^_*]*?__[^_*]*?\\*[^_*]*?(?=__)|[^*]+(?=[^*])|(?!\\*)[punct](\\*+)(?=[\\s]|$)|[^punct\\s](\\*+)(?!\\*)(?=[punct\\s]|$)|(?!\\*)[punct\\s](\\*+)(?=[^punct\\s])|[\\s](\\*+)(?!\\*)(?=[punct])|(?!\\*)[punct](\\*+)(?!\\*)(?=[punct])|[^punct\\s](\\*+)(?=[^punct\\s])","gu").replace(/punct/g,Br).getRegex(),Zr=ue("^[^_*]*?\\*\\*[^_*]*?_[^_*]*?(?=\\*\\*)|[^_]+(?=[^_])|(?!_)[punct](_+)(?=[\\s]|$)|[^punct\\s](_+)(?!_)(?=[punct\\s]|$)|(?!_)[punct\\s](_+)(?=[^punct\\s])|[\\s](_+)(?!_)(?=[punct])|(?!_)[punct](_+)(?!_)(?=[punct])","gu").replace(/punct/g,Br).getRegex(),ve=ue(/\\([punct])/,"gu").replace(/punct/g,Br).getRegex(),rt=ue(/^<(scheme:[^\s\x00-\x1f<>]*|email)>/).replace("scheme",/[a-zA-Z][a-zA-Z0-9+.-]{1,31}/).replace("email",/[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+(@)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)+(?![-_])/).getRegex(),Nt=ue($n).replace("(?:--\x3e|$)","--\x3e").getRegex(),pt=ue("^comment|^|^<[a-zA-Z][\\w-]*(?:attribute)*?\\s*/?>|^<\\?[\\s\\S]*?\\?>|^|^").replace("comment",Nt).replace("attribute",/\s+[a-zA-Z:_][\w.:-]*(?:\s*=\s*"[^"]*"|\s*=\s*'[^']*'|\s*=\s*[^\s"'=<>`]+)?/).getRegex(),de=/(?:\[(?:\\.|[^\[\]\\])*\]|\\.|`[^`]*`|[^\[\]\\`])*?/,Ie=ue(/^!?\[(label)\]\(\s*(href)(?:\s+(title))?\s*\)/).replace("label",de).replace("href",/<(?:\\.|[^\n<>\\])+>|[^\s\x00-\x1f]*/).replace("title",/"(?:\\"?|[^"\\])*"|'(?:\\'?|[^'\\])*'|\((?:\\\)?|[^)\\])*\)/).getRegex(),Ge=ue(/^!?\[(label)\]\[(ref)\]/).replace("label",de).replace("ref",yn).getRegex(),$t=ue(/^!?\[(ref)\](?:\[\])?/).replace("ref",yn).getRegex(),gt={_backpedal:Ve,anyPunctuation:ve,autolink:rt,blockSkip:/\[[^[\]]*?\]\([^\(\)]*?\)|`[^`]*?`|<[^<>]*?>/g,br:Tr,code:/^(`+)([^`]|[^`][\s\S]*?[^`])\1(?!`)/,del:Ve,emStrongLDelim:li,emStrongRDelimAst:Di,emStrongRDelimUnd:Zr,escape:sr,link:Ie,nolink:$t,punctuation:ar,reflink:Ge,reflinkSearch:ue("reflink|nolink(?!\\()","g").replace("reflink",Ge).replace("nolink",$t).getRegex(),tag:pt,text:/^(`+|[^`])(?:(?= {2,}\n)|[\s\S]*?(?:(?=[\\Dn+" ".repeat(Hn.length));ge;)if(!(this.options.extensions&&this.options.extensions.block&&this.options.extensions.block.some(Kt=>!!(K=Kt.call({lexer:this},ge,fe))&&(ge=ge.substring(K.raw.length),fe.push(K),!0)))){if(K=this.tokenizer.space(ge)){ge=ge.substring(K.raw.length),1===K.raw.length&&fe.length>0?fe[fe.length-1].raw+="\n":fe.push(K);continue}if(K=this.tokenizer.code(ge)){ge=ge.substring(K.raw.length),je=fe[fe.length-1],!je||"paragraph"!==je.type&&"text"!==je.type?fe.push(K):(je.raw+="\n"+K.raw,je.text+="\n"+K.text,this.inlineQueue[this.inlineQueue.length-1].src=je.text);continue}if(K=this.tokenizer.fences(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.heading(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.hr(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.blockquote(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.list(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.html(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.def(ge)){ge=ge.substring(K.raw.length),je=fe[fe.length-1],!je||"paragraph"!==je.type&&"text"!==je.type?this.tokens.links[K.tag]||(this.tokens.links[K.tag]={href:K.href,title:K.title}):(je.raw+="\n"+K.raw,je.text+="\n"+K.raw,this.inlineQueue[this.inlineQueue.length-1].src=je.text);continue}if(K=this.tokenizer.table(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.lheading(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(Be=ge,this.options.extensions&&this.options.extensions.startBlock){let Kt=1/0;const Dn=ge.slice(1);let Hn;this.options.extensions.startBlock.forEach(w=>{Hn=w.call({lexer:this},Dn),"number"==typeof Hn&&Hn>=0&&(Kt=Math.min(Kt,Hn))}),Kt<1/0&&Kt>=0&&(Be=ge.substring(0,Kt+1))}if(this.state.top&&(K=this.tokenizer.paragraph(Be))){je=fe[fe.length-1],ct&&"paragraph"===je.type?(je.raw+="\n"+K.raw,je.text+="\n"+K.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=je.text):fe.push(K),ct=Be.length!==ge.length,ge=ge.substring(K.raw.length);continue}if(K=this.tokenizer.text(ge)){ge=ge.substring(K.raw.length),je=fe[fe.length-1],je&&"text"===je.type?(je.raw+="\n"+K.raw,je.text+="\n"+K.text,this.inlineQueue.pop(),this.inlineQueue[this.inlineQueue.length-1].src=je.text):fe.push(K);continue}if(ge){const Kt="Infinite loop on byte: "+ge.charCodeAt(0);if(this.options.silent){console.error(Kt);break}throw new Error(Kt)}}return this.state.top=!0,fe}inline(ge,fe=[]){return this.inlineQueue.push({src:ge,tokens:fe}),fe}inlineTokens(ge,fe=[]){let K,je,Be,Kt,Dn,Hn,ct=ge;if(this.tokens.links){const w=Object.keys(this.tokens.links);if(w.length>0)for(;null!=(Kt=this.tokenizer.rules.inline.reflinkSearch.exec(ct));)w.includes(Kt[0].slice(Kt[0].lastIndexOf("[")+1,-1))&&(ct=ct.slice(0,Kt.index)+"["+"a".repeat(Kt[0].length-2)+"]"+ct.slice(this.tokenizer.rules.inline.reflinkSearch.lastIndex))}for(;null!=(Kt=this.tokenizer.rules.inline.blockSkip.exec(ct));)ct=ct.slice(0,Kt.index)+"["+"a".repeat(Kt[0].length-2)+"]"+ct.slice(this.tokenizer.rules.inline.blockSkip.lastIndex);for(;null!=(Kt=this.tokenizer.rules.inline.anyPunctuation.exec(ct));)ct=ct.slice(0,Kt.index)+"++"+ct.slice(this.tokenizer.rules.inline.anyPunctuation.lastIndex);for(;ge;)if(Dn||(Hn=""),Dn=!1,!(this.options.extensions&&this.options.extensions.inline&&this.options.extensions.inline.some(w=>!!(K=w.call({lexer:this},ge,fe))&&(ge=ge.substring(K.raw.length),fe.push(K),!0)))){if(K=this.tokenizer.escape(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.tag(ge)){ge=ge.substring(K.raw.length),je=fe[fe.length-1],je&&"text"===K.type&&"text"===je.type?(je.raw+=K.raw,je.text+=K.text):fe.push(K);continue}if(K=this.tokenizer.link(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.reflink(ge,this.tokens.links)){ge=ge.substring(K.raw.length),je=fe[fe.length-1],je&&"text"===K.type&&"text"===je.type?(je.raw+=K.raw,je.text+=K.text):fe.push(K);continue}if(K=this.tokenizer.emStrong(ge,ct,Hn)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.codespan(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.br(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.del(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(K=this.tokenizer.autolink(ge)){ge=ge.substring(K.raw.length),fe.push(K);continue}if(!this.state.inLink&&(K=this.tokenizer.url(ge))){ge=ge.substring(K.raw.length),fe.push(K);continue}if(Be=ge,this.options.extensions&&this.options.extensions.startInline){let w=1/0;const H=ge.slice(1);let oe;this.options.extensions.startInline.forEach(P=>{oe=P.call({lexer:this},H),"number"==typeof oe&&oe>=0&&(w=Math.min(w,oe))}),w<1/0&&w>=0&&(Be=ge.substring(0,w+1))}if(K=this.tokenizer.inlineText(Be)){ge=ge.substring(K.raw.length),"_"!==K.raw.slice(-1)&&(Hn=K.raw.slice(-1)),Dn=!0,je=fe[fe.length-1],je&&"text"===je.type?(je.raw+=K.raw,je.text+=K.text):fe.push(K);continue}if(ge){const w="Infinite loop on byte: "+ge.charCodeAt(0);if(this.options.silent){console.error(w);break}throw new Error(w)}}return fe}}class wn{constructor(ge){(0,$e.A)(this,"options",void 0),this.options=ge||Oe}code(ge,fe,K){var je;const Be=null===(je=(fe||"").match(/^\S*/))||void 0===je?void 0:je[0];return ge=ge.replace(/\n$/,"")+"\n",Be?'
    '+(K?ge:Re(ge,!0))+"
    \n":"
    "+(K?ge:Re(ge,!0))+"
    \n"}blockquote(ge){return`
    \n${ge}
    \n`}html(ge,fe){return ge}heading(ge,fe,K){return`${ge}\n`}hr(){return"
    \n"}list(ge,fe,K){const je=fe?"ol":"ul";return"<"+je+(fe&&1!==K?' start="'+K+'"':"")+">\n"+ge+"\n"}listitem(ge,fe,K){return`
  • ${ge}
  • \n`}checkbox(ge){return"'}paragraph(ge){return`

    ${ge}

    \n`}table(ge,fe){return fe&&(fe=`${fe}`),"\n\n"+ge+"\n"+fe+"
    \n"}tablerow(ge){return`\n${ge}\n`}tablecell(ge,fe){const K=fe.header?"th":"td";return(fe.align?`<${K} align="${fe.align}">`:`<${K}>`)+ge+`\n`}strong(ge){return`${ge}`}em(ge){return`${ge}`}codespan(ge){return`${ge}`}br(){return"
    "}del(ge){return`${ge}`}link(ge,fe,K){const je=Ee(ge);if(null===je)return K;let Be='
    ",Be}image(ge,fe,K){const je=Ee(ge);if(null===je)return K;let Be=`${K}"colon"===(fe=fe.toLowerCase())?":":"#"===fe.charAt(0)?"x"===fe.charAt(1)?String.fromCharCode(parseInt(fe.substring(2),16)):String.fromCharCode(+fe.substring(1)):""));continue}case"code":K+=this.renderer.code(Be.text,Be.lang,!!Be.escaped);continue;case"table":{const ct=Be;let Kt="",Dn="";for(let w=0;w0&&"paragraph"===oe.tokens[0].type?(oe.tokens[0].text=vr+" "+oe.tokens[0].text,oe.tokens[0].tokens&&oe.tokens[0].tokens.length>0&&"text"===oe.tokens[0].tokens[0].type&&(oe.tokens[0].tokens[0].text=vr+" "+oe.tokens[0].tokens[0].text)):oe.tokens.unshift({type:"text",text:vr+" "}):dt+=vr+" "}dt+=this.parse(oe.tokens,Hn),w+=this.renderer.listitem(dt,Ce,!!P)}K+=this.renderer.list(w,Kt,Dn);continue}case"html":K+=this.renderer.html(Be.text,Be.block);continue;case"paragraph":K+=this.renderer.paragraph(this.parseInline(Be.tokens));continue;case"text":{let ct=Be,Kt=ct.tokens?this.parseInline(ct.tokens):ct.text;for(;je+1{const je={...K},Be={...this.defaults,...je};!0===this.defaults.async&&!1===je.async&&(Be.silent||console.warn("marked(): The async option was set to true by an extension. The async: false option sent to parse will be ignored."),Be.async=!0);const ct=_e(Ur,this,xi).call(this,!!Be.silent,!!Be.async);if(typeof fe>"u"||null===fe)return ct(new Error("marked(): input parameter is undefined or null"));if("string"!=typeof fe)return ct(new Error("marked(): input parameter is of type "+Object.prototype.toString.call(fe)+", string expected"));if(Be.hooks&&(Be.hooks.options=Be),Be.async)return Promise.resolve(Be.hooks?Be.hooks.preprocess(fe):fe).then(Kt=>Pt(Kt,Be)).then(Kt=>Be.hooks?Be.hooks.processAllTokens(Kt):Kt).then(Kt=>Be.walkTokens?Promise.all(this.walkTokens(Kt,Be.walkTokens)).then(()=>Kt):Kt).then(Kt=>ge(Kt,Be)).then(Kt=>Be.hooks?Be.hooks.postprocess(Kt):Kt).catch(ct);try{Be.hooks&&(fe=Be.hooks.preprocess(fe));let Kt=Pt(fe,Be);Be.hooks&&(Kt=Be.hooks.processAllTokens(Kt)),Be.walkTokens&&this.walkTokens(Kt,Be.walkTokens);let Dn=ge(Kt,Be);return Be.hooks&&(Dn=Be.hooks.postprocess(Dn)),Dn}catch(Kt){return ct(Kt)}}}function xi(Pt,ge){return fe=>{if(fe.message+="\nPlease report this to https://github.com/markedjs/marked.",Pt){const K="

    An error occurred:

    "+Re(fe.message+"",!0)+"
    ";return ge?Promise.resolve(K):K}if(ge)return Promise.reject(fe);throw fe}}const vi=new class oi{constructor(...ge){(function Ze(Pt,ge){(function Te(Pt,ge){if(ge.has(Pt))throw new TypeError("Cannot initialize the same private elements twice on an object")})(Pt,ge),ge.add(Pt)})(this,Ur),(0,$e.A)(this,"defaults",{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}),(0,$e.A)(this,"options",this.setOptions),(0,$e.A)(this,"parse",_e(Ur,this,Ir).call(this,dn.lex,wr.parse)),(0,$e.A)(this,"parseInline",_e(Ur,this,Ir).call(this,dn.lexInline,wr.parseInline)),(0,$e.A)(this,"Parser",wr),(0,$e.A)(this,"Renderer",wn),(0,$e.A)(this,"TextRenderer",hr),(0,$e.A)(this,"Lexer",dn),(0,$e.A)(this,"Tokenizer",Sn),(0,$e.A)(this,"Hooks",fr),this.use(...ge)}walkTokens(ge,fe){let K=[];for(const Be of ge)switch(K=K.concat(fe.call(this,Be)),Be.type){case"table":{const ct=Be;for(const Kt of ct.header)K=K.concat(this.walkTokens(Kt.tokens,fe));for(const Kt of ct.rows)for(const Dn of Kt)K=K.concat(this.walkTokens(Dn.tokens,fe));break}case"list":K=K.concat(this.walkTokens(Be.items,fe));break;default:{var je;const ct=Be;null!==(je=this.defaults.extensions)&&void 0!==je&&null!==(je=je.childTokens)&&void 0!==je&&je[ct.type]?this.defaults.extensions.childTokens[ct.type].forEach(Kt=>{const Dn=ct[Kt].flat(1/0);K=K.concat(this.walkTokens(Dn,fe))}):ct.tokens&&(K=K.concat(this.walkTokens(ct.tokens,fe)))}}return K}use(...ge){const fe=this.defaults.extensions||{renderers:{},childTokens:{}};return ge.forEach(K=>{const je={...K};if(je.async=this.defaults.async||je.async||!1,K.extensions&&(K.extensions.forEach(Be=>{if(!Be.name)throw new Error("extension name required");if("renderer"in Be){const ct=fe.renderers[Be.name];fe.renderers[Be.name]=ct?function(...Kt){let Dn=Be.renderer.apply(this,Kt);return!1===Dn&&(Dn=ct.apply(this,Kt)),Dn}:Be.renderer}if("tokenizer"in Be){if(!Be.level||"block"!==Be.level&&"inline"!==Be.level)throw new Error("extension level must be 'block' or 'inline'");const ct=fe[Be.level];ct?ct.unshift(Be.tokenizer):fe[Be.level]=[Be.tokenizer],Be.start&&("block"===Be.level?fe.startBlock?fe.startBlock.push(Be.start):fe.startBlock=[Be.start]:"inline"===Be.level&&(fe.startInline?fe.startInline.push(Be.start):fe.startInline=[Be.start]))}"childTokens"in Be&&Be.childTokens&&(fe.childTokens[Be.name]=Be.childTokens)}),je.extensions=fe),K.renderer){const Be=this.defaults.renderer||new wn(this.defaults);for(const ct in K.renderer){if(!(ct in Be))throw new Error(`renderer '${ct}' does not exist`);if("options"===ct)continue;const Dn=K.renderer[ct],Hn=Be[ct];Be[ct]=(...w)=>{let H=Dn.apply(Be,w);return!1===H&&(H=Hn.apply(Be,w)),H||""}}je.renderer=Be}if(K.tokenizer){const Be=this.defaults.tokenizer||new Sn(this.defaults);for(const ct in K.tokenizer){if(!(ct in Be))throw new Error(`tokenizer '${ct}' does not exist`);if(["options","rules","lexer"].includes(ct))continue;const Dn=K.tokenizer[ct],Hn=Be[ct];Be[ct]=(...w)=>{let H=Dn.apply(Be,w);return!1===H&&(H=Hn.apply(Be,w)),H}}je.tokenizer=Be}if(K.hooks){const Be=this.defaults.hooks||new fr;for(const ct in K.hooks){if(!(ct in Be))throw new Error(`hook '${ct}' does not exist`);if("options"===ct)continue;const Dn=K.hooks[ct],Hn=Be[ct];Be[ct]=fr.passThroughHooks.has(ct)?w=>{if(this.defaults.async)return Promise.resolve(Dn.call(Be,w)).then(oe=>Hn.call(Be,oe));const H=Dn.call(Be,w);return Hn.call(Be,H)}:(...w)=>{let H=Dn.apply(Be,w);return!1===H&&(H=Hn.apply(Be,w)),H}}je.hooks=Be}if(K.walkTokens){const Be=this.defaults.walkTokens,ct=K.walkTokens;je.walkTokens=function(Kt){let Dn=[];return Dn.push(ct.call(this,Kt)),Be&&(Dn=Dn.concat(Be.call(this,Kt))),Dn}}this.defaults={...this.defaults,...je}}),this}setOptions(ge){return this.defaults={...this.defaults,...ge},this}lexer(ge,fe){return dn.lex(ge,null!=fe?fe:this.defaults)}parser(ge,fe){return wr.parse(ge,null!=fe?fe:this.defaults)}};function Ar(Pt,ge){return vi.parse(Pt,ge)}Ar.options=Ar.setOptions=function(Pt){return vi.setOptions(Pt),Ct(Ar.defaults=vi.defaults),Ar},Ar.getDefaults=function Le(){return{async:!1,breaks:!1,extensions:null,gfm:!0,hooks:null,pedantic:!1,renderer:null,silent:!1,tokenizer:null,walkTokens:null}},Ar.defaults=Oe,Ar.use=function(...Pt){return vi.use(...Pt),Ct(Ar.defaults=vi.defaults),Ar},Ar.walkTokens=function(Pt,ge){return vi.walkTokens(Pt,ge)},Ar.parseInline=vi.parseInline,Ar.Parser=wr,Ar.parser=wr.parse,Ar.Renderer=wn,Ar.TextRenderer=hr,Ar.Lexer=dn,Ar.lexer=dn.lex,Ar.Tokenizer=Sn,Ar.Hooks=fr,Ar.parse=Ar;var We=C(1626),St=C(345);const nn=["*"];let qn=(()=>{var Pt;class ge{constructor(){this._buttonClick$=new ke.B,this.copied$=this._buttonClick$.pipe((0,Xe.n)(()=>(0,$.h)((0,he.of)(!0),(0,ae.O)(3e3).pipe((0,tt.u)(!1)))),(0,Se.F)(),function xt(Pt,ge,fe){let K,je=!1;return Pt&&"object"==typeof Pt?({bufferSize:K=1/0,windowTime:ge=1/0,refCount:je=!1,scheduler:fe}=Pt):K=null!=Pt?Pt:1/0,function at(Pt={}){const{connector:ge=(()=>new ke.B),resetOnError:fe=!0,resetOnComplete:K=!0,resetOnRefCountZero:je=!0}=Pt;return Be=>{let ct,Kt,Dn,Hn=0,w=!1,H=!1;const oe=()=>{null==Kt||Kt.unsubscribe(),Kt=void 0},P=()=>{oe(),ct=Dn=void 0,w=H=!1},Ce=()=>{const dt=ct;P(),null==dt||dt.unsubscribe()};return(0,Ye.N)((dt,vr)=>{Hn++,!H&&!w&&oe();const ai=Dn=null!=Dn?Dn:ge();vr.add(()=>{Hn--,0===Hn&&!H&&!w&&(Kt=mt(Ce,je))}),ai.subscribe(vr),!ct&&Hn>0&&(ct=new it.Ms({next:W=>ai.next(W),error:W=>{H=!0,oe(),Kt=mt(P,fe,W),ai.error(W)},complete:()=>{w=!0,oe(),Kt=mt(P,K),ai.complete()}}),(0,et.Tg)(dt).subscribe(ct))})(Be)}}({connector:()=>new be.m(K,ge,fe),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:je})}(1)),this.copiedText$=this.copied$.pipe((0,Dt.Z)(!1),(0,zt.T)(K=>K?"Copied":"Copy"))}onCopyToClipboardClick(){this._buttonClick$.next()}}return(Pt=ge).\u0275fac=function(K){return new(K||Pt)},Pt.\u0275cmp=Z.VBU({type:Pt,selectors:[["markdown-clipboard"]],standalone:!0,features:[Z.aNF],decls:4,vars:7,consts:[[1,"markdown-clipboard-button",3,"click"]],template:function(K,je){1&K&&(Z.j41(0,"button",0),Z.nI1(1,"async"),Z.bIt("click",function(){return je.onCopyToClipboardClick()}),Z.EFF(2),Z.nI1(3,"async"),Z.k0s()),2&K&&(Z.AVh("copied",Z.bMT(1,3,je.copied$)),Z.R7$(2),Z.JRh(Z.bMT(3,5,je.copiedText$)))},dependencies:[c.Jj],encapsulation:2,changeDetection:0}),ge})();const Sr=new Z.nKC("CLIPBOARD_OPTIONS");var $r=function(Pt){return Pt.CommandLine="command-line",Pt.LineHighlight="line-highlight",Pt.LineNumbers="line-numbers",Pt}($r||{});const Pr=new Z.nKC("MARKED_EXTENSIONS"),Nr=new Z.nKC("MARKED_OPTIONS"),_i=new Z.nKC("SECURITY_CONTEXT");let Zn=(()=>{var Pt;class ge{get options(){return this._options}set options(K){this._options={...this.DEFAULT_MARKED_OPTIONS,...K}}get renderer(){return this.options.renderer}set renderer(K){this.options.renderer=K}constructor(K,je,Be,ct,Kt,Dn,Hn){this.clipboardOptions=K,this.extensions=je,this.platform=ct,this.securityContext=Kt,this.http=Dn,this.sanitizer=Hn,this.DEFAULT_MARKED_OPTIONS={renderer:new wn},this.DEFAULT_KATEX_OPTIONS={delimiters:[{left:"$$",right:"$$",display:!0},{left:"$",right:"$",display:!1},{left:"\\(",right:"\\)",display:!1},{left:"\\begin{equation}",right:"\\end{equation}",display:!0},{left:"\\begin{align}",right:"\\end{align}",display:!0},{left:"\\begin{alignat}",right:"\\end{alignat}",display:!0},{left:"\\begin{gather}",right:"\\end{gather}",display:!0},{left:"\\begin{CD}",right:"\\end{CD}",display:!0},{left:"\\[",right:"\\]",display:!0}]},this.DEFAULT_MERMAID_OPTIONS={startOnLoad:!1},this.DEFAULT_CLIPBOARD_OPTIONS={buttonComponent:void 0},this.DEFAULT_PARSE_OPTIONS={decodeHtml:!1,inline:!1,emoji:!1,mermaid:!1,markedOptions:void 0,disableSanitizer:!1},this.DEFAULT_RENDER_OPTIONS={clipboard:!1,clipboardOptions:void 0,katex:!1,katexOptions:void 0,mermaid:!1,mermaidOptions:void 0},this._reload$=new ke.B,this.reload$=this._reload$.asObservable(),this.options=Be}parse(K,je=this.DEFAULT_PARSE_OPTIONS){const{decodeHtml:Be,inline:ct,emoji:Kt,mermaid:Dn,disableSanitizer:Hn}=je,w={...this.options,...je.markedOptions},H=w.renderer||this.renderer||new wn;this.extensions&&(this.renderer=this.extendsRendererForExtensions(H)),Dn&&(this.renderer=this.extendsRendererForMermaid(H));const oe=this.trimIndentation(K),P=Be?this.decodeHtml(oe):oe,Ce=Kt?this.parseEmoji(P):P,dt=this.parseMarked(Ce,w,ct);return(Hn?dt:this.sanitizer.sanitize(this.securityContext,dt))||""}render(K,je=this.DEFAULT_RENDER_OPTIONS,Be){const{clipboard:ct,clipboardOptions:Kt,katex:Dn,katexOptions:Hn,mermaid:w,mermaidOptions:H}=je;Dn&&this.renderKatex(K,{...this.DEFAULT_KATEX_OPTIONS,...Hn}),w&&this.renderMermaid(K,{...this.DEFAULT_MERMAID_OPTIONS,...H}),ct&&this.renderClipboard(K,Be,{...this.DEFAULT_CLIPBOARD_OPTIONS,...this.clipboardOptions,...Kt}),this.highlight(K)}reload(){this._reload$.next()}getSource(K){if(!this.http)throw new Error("[ngx-markdown] When using the `src` attribute you *have to* pass the `HttpClient` as a parameter of the `forRoot` method. See README for more information");return this.http.get(K,{responseType:"text"}).pipe((0,zt.T)(je=>this.handleExtension(K,je)))}highlight(K){if(!(0,c.UE)(this.platform)||typeof Prism>"u"||typeof Prism.highlightAllUnder>"u")return;K||(K=document);const je=K.querySelectorAll('pre code:not([class*="language-"])');Array.prototype.forEach.call(je,Be=>Be.classList.add("language-none")),Prism.highlightAllUnder(K)}decodeHtml(K){if(!(0,c.UE)(this.platform))return K;const je=document.createElement("textarea");return je.innerHTML=K,je.value}extendsRendererForExtensions(K){var je;const Be=K;return!0===Be.\u0275NgxMarkdownRendererExtendedForExtensions||((null===(je=this.extensions)||void 0===je?void 0:je.length)>0&&Ar.use(...this.extensions),Be.\u0275NgxMarkdownRendererExtendedForExtensions=!0),K}extendsRendererForMermaid(K){const je=K;if(!0===je.\u0275NgxMarkdownRendererExtendedForMermaid)return K;const Be=K.code;return K.code=function(ct,Kt,Dn){return"mermaid"===Kt?`
    ${ct}
    `:Be.call(this,ct,Kt,Dn)},je.\u0275NgxMarkdownRendererExtendedForMermaid=!0,K}handleExtension(K,je){const Be=K.lastIndexOf("://"),ct=Be>-1?K.substring(Be+4):K,Kt=ct.lastIndexOf("/"),Dn=Kt>-1?ct.substring(Kt+1).split("?")[0]:"",Hn=Dn.lastIndexOf("."),w=Hn>-1?Dn.substring(Hn+1):"";return w&&"md"!==w?"```"+w+"\n"+je+"\n```":je}parseMarked(K,je,Be=!1){if(je.renderer){const ct={...je.renderer};delete ct.\u0275NgxMarkdownRendererExtendedForExtensions,delete ct.\u0275NgxMarkdownRendererExtendedForMermaid,delete je.renderer,Ar.use({renderer:ct})}return Be?Ar.parseInline(K,je):Ar.parse(K,je)}parseEmoji(K){if(!(0,c.UE)(this.platform))return K;if(typeof joypixels>"u"||typeof joypixels.shortnameToUnicode>"u")throw new Error("[ngx-markdown] When using the `emoji` attribute you *have to* include Emoji-Toolkit files to `angular.json` or use imports. See README for more information");return joypixels.shortnameToUnicode(K)}renderKatex(K,je){if((0,c.UE)(this.platform)){if(typeof katex>"u"||typeof renderMathInElement>"u")throw new Error("[ngx-markdown] When using the `katex` attribute you *have to* include KaTeX files to `angular.json` or use imports. See README for more information");renderMathInElement(K,je)}}renderClipboard(K,je,Be){if(!(0,c.UE)(this.platform))return;if(typeof ClipboardJS>"u")throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* include Clipboard files to `angular.json` or use imports. See README for more information");if(!je)throw new Error("[ngx-markdown] When using the `clipboard` attribute you *have to* provide the `viewContainerRef` parameter to `MarkdownService.render()` function");const{buttonComponent:ct,buttonTemplate:Kt}=Be,Dn=K.querySelectorAll("pre");for(let Hn=0;Hnoe.classList.add("hover"),H.onmouseleave=()=>oe.classList.remove("hover"),ct){const dt=je.createComponent(ct);P=dt.hostView,dt.changeDetectorRef.markForCheck()}else if(Kt)P=je.createEmbeddedView(Kt);else{const dt=je.createComponent(qn);P=dt.hostView,dt.changeDetectorRef.markForCheck()}P.rootNodes.forEach(dt=>{oe.appendChild(dt),Ce=new ClipboardJS(dt,{text:()=>w.innerText})}),P.onDestroy(()=>Ce.destroy())}}renderMermaid(K,je=this.DEFAULT_MERMAID_OPTIONS){if(!(0,c.UE)(this.platform))return;if(typeof mermaid>"u"||typeof mermaid.initialize>"u")throw new Error("[ngx-markdown] When using the `mermaid` attribute you *have to* include Mermaid files to `angular.json` or use imports. See README for more information");const Be=K.querySelectorAll(".mermaid");0!==Be.length&&(mermaid.initialize(je),mermaid.run({nodes:Be}))}trimIndentation(K){if(!K)return"";let je;return K.split("\n").map(Be=>{let ct=je;return Be.length>0&&(ct=isNaN(ct)?Be.search(/\S|$/):Math.min(Be.search(/\S|$/),ct)),isNaN(je)&&(je=ct),ct?Be.substring(ct):Be}).join("\n")}}return(Pt=ge).\u0275fac=function(K){return new(K||Pt)(Z.KVO(Sr,8),Z.KVO(Pr,8),Z.KVO(Nr,8),Z.KVO(Z.Agw),Z.KVO(_i),Z.KVO(We.Qq,8),Z.KVO(St.up))},Pt.\u0275prov=Z.jDH({token:Pt,factory:Pt.\u0275fac}),ge})(),mo=(()=>{var Pt;class ge{get disableSanitizer(){return this._disableSanitizer}set disableSanitizer(K){this._disableSanitizer=this.coerceBooleanProperty(K)}get inline(){return this._inline}set inline(K){this._inline=this.coerceBooleanProperty(K)}get clipboard(){return this._clipboard}set clipboard(K){this._clipboard=this.coerceBooleanProperty(K)}get emoji(){return this._emoji}set emoji(K){this._emoji=this.coerceBooleanProperty(K)}get katex(){return this._katex}set katex(K){this._katex=this.coerceBooleanProperty(K)}get mermaid(){return this._mermaid}set mermaid(K){this._mermaid=this.coerceBooleanProperty(K)}get lineHighlight(){return this._lineHighlight}set lineHighlight(K){this._lineHighlight=this.coerceBooleanProperty(K)}get lineNumbers(){return this._lineNumbers}set lineNumbers(K){this._lineNumbers=this.coerceBooleanProperty(K)}get commandLine(){return this._commandLine}set commandLine(K){this._commandLine=this.coerceBooleanProperty(K)}constructor(K,je,Be){this.element=K,this.markdownService=je,this.viewContainerRef=Be,this.error=new Z.bkB,this.load=new Z.bkB,this.ready=new Z.bkB,this._clipboard=!1,this._commandLine=!1,this._disableSanitizer=!1,this._emoji=!1,this._inline=!1,this._katex=!1,this._lineHighlight=!1,this._lineNumbers=!1,this._mermaid=!1,this.destroyed$=new ke.B}ngOnChanges(){this.loadContent()}loadContent(){null==this.data?null==this.src||this.handleSrc():this.handleData()}ngAfterViewInit(){!this.data&&!this.src&&this.handleTransclusion(),this.markdownService.reload$.pipe((0,Tt.Q)(this.destroyed$)).subscribe(()=>this.loadContent())}ngOnDestroy(){this.destroyed$.next(),this.destroyed$.complete()}render(K,je=!1){var Be=this;return(0,h.A)(function*(){const ct={decodeHtml:je,inline:Be.inline,emoji:Be.emoji,mermaid:Be.mermaid,disableSanitizer:Be.disableSanitizer},Kt={clipboard:Be.clipboard,clipboardOptions:{buttonComponent:Be.clipboardButtonComponent,buttonTemplate:Be.clipboardButtonTemplate},katex:Be.katex,katexOptions:Be.katexOptions,mermaid:Be.mermaid,mermaidOptions:Be.mermaidOptions},Dn=yield Be.markdownService.parse(K,ct);Be.element.nativeElement.innerHTML=Dn,Be.handlePlugins(),Be.markdownService.render(Be.element.nativeElement,Kt,Be.viewContainerRef),Be.ready.emit()})()}coerceBooleanProperty(K){return null!=K&&"false"!=`${String(K)}`}handleData(){this.render(this.data)}handleSrc(){this.markdownService.getSource(this.src).subscribe({next:K=>{this.render(K).then(()=>{this.load.emit(K)})},error:K=>this.error.emit(K)})}handleTransclusion(){this.render(this.element.nativeElement.innerHTML,!0)}handlePlugins(){this.commandLine&&(this.setPluginClass(this.element.nativeElement,$r.CommandLine),this.setPluginOptions(this.element.nativeElement,{dataFilterOutput:this.filterOutput,dataHost:this.host,dataPrompt:this.prompt,dataOutput:this.output,dataUser:this.user})),this.lineHighlight&&this.setPluginOptions(this.element.nativeElement,{dataLine:this.line,dataLineOffset:this.lineOffset}),this.lineNumbers&&(this.setPluginClass(this.element.nativeElement,$r.LineNumbers),this.setPluginOptions(this.element.nativeElement,{dataStart:this.start}))}setPluginClass(K,je){const Be=K.querySelectorAll("pre");for(let ct=0;ct{const Dn=je[Kt];if(Dn){const Hn=this.toLispCase(Kt);Be.item(ct).setAttribute(Hn,Dn.toString())}})}toLispCase(K){const je=K.match(/([A-Z])/g);if(!je)return K;let Be=K.toString();for(let ct=0,Kt=je.length;ct{var Pt;class ge{static forRoot(K){return{ngModule:ge,providers:[yi(K)]}}static forChild(){return{ngModule:ge}}}return(Pt=ge).\u0275fac=function(K){return new(K||Pt)},Pt.\u0275mod=Z.$C({type:Pt}),Pt.\u0275inj=Z.G2t({imports:[c.MD]}),ge})();var ui;!function(Pt){let ge;var je;let fe,K;(je=ge=Pt.SecurityLevel||(Pt.SecurityLevel={})).Strict="strict",je.Loose="loose",je.Antiscript="antiscript",je.Sandbox="sandbox",function(je){je.Base="base",je.Forest="forest",je.Dark="dark",je.Default="default",je.Neutral="neutral"}(fe=Pt.Theme||(Pt.Theme={})),function(je){je[je.Debug=1]="Debug",je[je.Info=2]="Info",je[je.Warn=3]="Warn",je[je.Error=4]="Error",je[je.Fatal=5]="Fatal"}(K=Pt.LogLevel||(Pt.LogLevel={}))}(ui||(ui={}))},467:(Pn,Et,C)=>{"use strict";function h(Z,ke,$,he,ae,Xe,tt){try{var Se=Z[Xe](tt),be=Se.value}catch(et){return void $(et)}Se.done?ke(be):Promise.resolve(be).then(he,ae)}function c(Z){return function(){var ke=this,$=arguments;return new Promise(function(he,ae){var Xe=Z.apply(ke,$);function tt(be){h(Xe,he,ae,tt,Se,"next",be)}function Se(be){h(Xe,he,ae,tt,Se,"throw",be)}tt(void 0)})}}C.d(Et,{A:()=>c})},9842:(Pn,Et,C)=>{"use strict";function h($){return(h="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(he){return typeof he}:function(he){return he&&"function"==typeof Symbol&&he.constructor===Symbol&&he!==Symbol.prototype?"symbol":typeof he})($)}function ke($,he,ae){return(he=function Z($){var he=function c($,he){if("object"!=h($)||!$)return $;var ae=$[Symbol.toPrimitive];if(void 0!==ae){var Xe=ae.call($,he||"default");if("object"!=h(Xe))return Xe;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===he?String:Number)($)}($,"string");return"symbol"==h(he)?he:String(he)}(he))in $?Object.defineProperty($,he,{value:ae,enumerable:!0,configurable:!0,writable:!0}):$[he]=ae,$}C.d(Et,{A:()=>ke})},1635:(Pn,Et,C)=>{"use strict";function ke(G,X){var ce={};for(var ue in G)Object.prototype.hasOwnProperty.call(G,ue)&&X.indexOf(ue)<0&&(ce[ue]=G[ue]);if(null!=G&&"function"==typeof Object.getOwnPropertySymbols){var Ee=0;for(ue=Object.getOwnPropertySymbols(G);Ee=0;fn--)(ut=G[fn])&&(Ve=(Ee<3?ut(Ve):Ee>3?ut(X,ce,Ve):ut(X,ce))||Ve);return Ee>3&&Ve&&Object.defineProperty(X,ce,Ve),Ve}function et(G,X,ce,ue){return new(ce||(ce=Promise))(function(Ve,ut){function fn(Je){try{un(ue.next(Je))}catch(Sn){ut(Sn)}}function xn(Je){try{un(ue.throw(Je))}catch(Sn){ut(Sn)}}function un(Je){Je.done?Ve(Je.value):function Ee(Ve){return Ve instanceof ce?Ve:new ce(function(ut){ut(Ve)})}(Je.value).then(fn,xn)}un((ue=ue.apply(G,X||[])).next())})}function It(G){return this instanceof It?(this.v=G,this):new It(G)}function Te(G,X,ce){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var Ee,ue=ce.apply(G,X||[]),Ve=[];return Ee={},ut("next"),ut("throw"),ut("return"),Ee[Symbol.asyncIterator]=function(){return this},Ee;function ut(kn){ue[kn]&&(Ee[kn]=function(On){return new Promise(function(or,gr){Ve.push([kn,On,or,gr])>1||fn(kn,On)})})}function fn(kn,On){try{!function xn(kn){kn.value instanceof It?Promise.resolve(kn.value.v).then(un,Je):Sn(Ve[0][2],kn)}(ue[kn](On))}catch(or){Sn(Ve[0][3],or)}}function un(kn){fn("next",kn)}function Je(kn){fn("throw",kn)}function Sn(kn,On){kn(On),Ve.shift(),Ve.length&&fn(Ve[0][0],Ve[0][1])}}function _e(G){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var ce,X=G[Symbol.asyncIterator];return X?X.call(G):(G=function mt(G){var X="function"==typeof Symbol&&Symbol.iterator,ce=X&&G[X],ue=0;if(ce)return ce.call(G);if(G&&"number"==typeof G.length)return{next:function(){return G&&ue>=G.length&&(G=void 0),{value:G&&G[ue++],done:!G}}};throw new TypeError(X?"Object is not iterable.":"Symbol.iterator is not defined.")}(G),ce={},ue("next"),ue("throw"),ue("return"),ce[Symbol.asyncIterator]=function(){return this},ce);function ue(Ve){ce[Ve]=G[Ve]&&function(ut){return new Promise(function(fn,xn){!function Ee(Ve,ut,fn,xn){Promise.resolve(xn).then(function(un){Ve({value:un,done:fn})},ut)}(fn,xn,(ut=G[Ve](ut)).done,ut.value)})}}}C.d(Et,{AQ:()=>Te,Cg:()=>$,N3:()=>It,Tt:()=>ke,sH:()=>et,xN:()=>_e}),"function"==typeof SuppressedError&&SuppressedError}},Pn=>{Pn(Pn.s=63)}]); \ No newline at end of file diff --git a/www/runtime.c571ec1430bc7676.js b/www/runtime.c571ec1430bc7676.js new file mode 100644 index 0000000..a867dce --- /dev/null +++ b/www/runtime.c571ec1430bc7676.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,v={},g={};function f(e){var d=g[e];if(void 0!==d)return d.exports;var a=g[e]={exports:{}};return v[e].call(a.exports,a,a.exports,f),a.exports}f.m=v,e=[],f.O=(d,a,t,r)=>{if(!a){var c=1/0;for(b=0;b=r)&&Object.keys(f.O).every(p=>f.O[p](a[n]))?a.splice(n--,1):(l=!1,r0&&e[b-1][2]>r;b--)e[b]=e[b-1];e[b]=[a,t,r]},f.n=e=>{var d=e&&e.__esModule?()=>e.default:()=>e;return f.d(d,{a:d}),d},(()=>{var d,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;f.t=function(a,t){if(1&t&&(a=this(a)),8&t||"object"==typeof a&&a&&(4&t&&a.__esModule||16&t&&"function"==typeof a.then))return a;var r=Object.create(null);f.r(r);var b={};d=d||[null,e({}),e([]),e(e)];for(var c=2&t&&a;"object"==typeof c&&!~d.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach(l=>b[l]=()=>a[l]);return b.default=()=>a,f.d(r,b),r}})(),f.d=(e,d)=>{for(var a in d)f.o(d,a)&&!f.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:d[a]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((d,a)=>(f.f[a](e,d),d),[])),f.u=e=>(({2076:"common",7278:"polyfills-dom",9329:"polyfills-core-js"}[e]||e)+"."+{441:"c8d135e5d56e5723",461:"b1be7794120cc711",964:"466b88054b5c618c",1010:"8e70b895427dd856",1015:"f98cd7158627e10b",1049:"7ef232095c56e4df",1081:"c9d99f35768da88f",1102:"010dfe13f6ca7e15",1133:"c9778691a5138958",1143:"b0763e5514384d40",1293:"ee80f2d33790618d",1313:"46ae0a0d0e94f2f8",1459:"32c41a59c0fd4cf1",1577:"0604cac29dd79422",2075:"1971ba880d06cc30",2076:"62b9652b6820acda",2144:"5d46fa3641b801f2",2348:"12b471577685ffbe",2375:"efb0d99d1467ed67",2415:"dddee43f1c9b92e7",2494:"cbe440bf03b1a014",2560:"f34ba2c5e85b55c8",2757:"85d6029c1243079f",2885:"d64fa10bd441cbc8",3100:"4d5759fc21bf4de6",3162:"825364e1635b086f",3451:"fa589c246ed03c83",3506:"899dcc5e5d913023",3511:"16739e7034875331",3646:"f1263548817e086a",3675:"185a8c86d3ff0b7c",3728:"2a68666ee49959dd",3814:"aed692045b27c466",4163:"511ba1c803d7c59e",4171:"f5bc55c1acb0f5c1",4183:"0d54a4cc8cbc3a61",4304:"6342f47363b5aa32",4348:"16e6409072fc8e11",4406:"03b087c2d77cb960",4463:"ce74c63a27a7a872",4559:"251cbb62d2a2ca8d",4591:"7a48c0cf9464e62b",4699:"01733b3942afbe92",4839:"f32de5d22c9696fa",4867:"17817bc208c2836c",4914:"72751204db50ae35",5054:"2f57954df11c6846",5100:"659224ed1f94442c",5197:"38b8cc3181b51450",5222:"9cbea5f62b0fb679",5371:"2de00f70d237e79d",5399:"c439131f3a61e9b3",5712:"a9a2db8da6f1a8cd",5887:"708ea3877f30ffcd",5949:"2ed93c457aa1e9fb",5995:"818802cbbfe32b83",6024:"3c02ab7fe82fedfe",6303:"4ea7e81fd1aa1e01",6433:"91353c3d7c453322",6480:"5977b854bb56850c",6521:"a8a508f41e539cc5",6536:"dfc5d780e02360c5",6695:"93cacdb118ebec12",6749:"35cfdb01525f2301",6840:"fd32dada9c8ec44e",6975:"6d2e5de0574c6402",6982:"4907cbb0a21f41f1",7030:"f2a9bf080bedfc5b",7056:"d94084a764515e62",7076:"2b7ea8b1f54f4458",7179:"80391eb100990080",7240:"680a87741a5535b1",7278:"bf542500b6fca113",7356:"911eacb1ce959b5e",7372:"e306385d972d6e2c",7428:"cb325b96b92ea4c2",7720:"78509b154c08b472",7762:"e7a5b89bf8544d49",7907:"060d40f84c30ad9b",8066:"67e76a5c3f71f306",8193:"476b12959c4b189d",8314:"52348a57ed623e38",8361:"3d466d853997fbb0",8477:"15dacf21c512c8d4",8566:"52fa7b8c5c22d53f",8584:"94ca33677cedf961",8711:"f6a903c3bb3101f6",8805:"7a687270c4acd743",8814:"4175e28b98837400",8839:"cfb335a41e74f211",8886:"d67de68b3732a1f5",8970:"89f040d889f287fc",8984:"b8081aaadcdeaca4",9013:"2e347313286de95b",9070:"29b18cc91c088f3f",9273:"16673f4c5278d1b8",9329:"c76198334f717402",9344:"2d668603b6130b28",9456:"c3e2b25e7ae1c2c6",9546:"6e1d6e8098da979c",9697:"57e559625e67bb53",9878:"db8640bd416c9008",9977:"948bf38bed890db4"}[e]+".js"),f.miniCssF=e=>{},f.o=(e,d)=>Object.prototype.hasOwnProperty.call(e,d),(()=>{var e={},d="app:";f.l=(a,t,r,b)=>{if(e[a])e[a].push(t);else{var c,l;if(void 0!==r)for(var n=document.getElementsByTagName("script"),i=0;i{c.onerror=c.onload=null,clearTimeout(u);var y=e[a];if(delete e[a],c.parentNode&&c.parentNode.removeChild(c),y&&y.forEach(_=>_(p)),m)return m(p)},u=setTimeout(s.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=s.bind(null,c.onerror),c.onload=s.bind(null,c.onload),l&&document.head.appendChild(c)}}})(),f.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;f.tt=()=>(void 0===e&&(e={createScriptURL:d=>d},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),f.tu=e=>f.tt().createScriptURL(e),f.p="",(()=>{var e={9121:0};f.f.j=(t,r)=>{var b=f.o(e,t)?e[t]:void 0;if(0!==b)if(b)r.push(b[2]);else if(9121!=t){var c=new Promise((o,s)=>b=e[t]=[o,s]);r.push(b[2]=c);var l=f.p+f.u(t),n=new Error;f.l(l,o=>{if(f.o(e,t)&&(0!==(b=e[t])&&(e[t]=void 0),b)){var s=o&&("load"===o.type?"missing":o.type),u=o&&o.target&&o.target.src;n.message="Loading chunk "+t+" failed.\n("+s+": "+u+")",n.name="ChunkLoadError",n.type=s,n.request=u,b[1](n)}},"chunk-"+t,t)}else e[t]=0},f.O.j=t=>0===e[t];var d=(t,r)=>{var n,i,[b,c,l]=r,o=0;if(b.some(u=>0!==e[u])){for(n in c)f.o(c,n)&&(f.m[n]=c[n]);if(l)var s=l(f)}for(t&&t(r);o{"use strict";var e,v={},g={};function f(e){var d=g[e];if(void 0!==d)return d.exports;var a=g[e]={exports:{}};return v[e].call(a.exports,a,a.exports,f),a.exports}f.m=v,e=[],f.O=(d,a,t,r)=>{if(!a){var c=1/0;for(b=0;b=r)&&Object.keys(f.O).every(p=>f.O[p](a[n]))?a.splice(n--,1):(l=!1,r0&&e[b-1][2]>r;b--)e[b]=e[b-1];e[b]=[a,t,r]},f.n=e=>{var d=e&&e.__esModule?()=>e.default:()=>e;return f.d(d,{a:d}),d},(()=>{var d,e=Object.getPrototypeOf?a=>Object.getPrototypeOf(a):a=>a.__proto__;f.t=function(a,t){if(1&t&&(a=this(a)),8&t||"object"==typeof a&&a&&(4&t&&a.__esModule||16&t&&"function"==typeof a.then))return a;var r=Object.create(null);f.r(r);var b={};d=d||[null,e({}),e([]),e(e)];for(var c=2&t&&a;"object"==typeof c&&!~d.indexOf(c);c=e(c))Object.getOwnPropertyNames(c).forEach(l=>b[l]=()=>a[l]);return b.default=()=>a,f.d(r,b),r}})(),f.d=(e,d)=>{for(var a in d)f.o(d,a)&&!f.o(e,a)&&Object.defineProperty(e,a,{enumerable:!0,get:d[a]})},f.f={},f.e=e=>Promise.all(Object.keys(f.f).reduce((d,a)=>(f.f[a](e,d),d),[])),f.u=e=>(({2076:"common",7278:"polyfills-dom",9329:"polyfills-core-js"}[e]||e)+"."+{441:"c8d135e5d56e5723",461:"b1be7794120cc711",964:"466b88054b5c618c",1010:"8e70b895427dd856",1015:"f98cd7158627e10b",1049:"7ef232095c56e4df",1081:"c9d99f35768da88f",1102:"010dfe13f6ca7e15",1133:"c9778691a5138958",1143:"b0763e5514384d40",1293:"ee80f2d33790618d",1313:"46ae0a0d0e94f2f8",1459:"32c41a59c0fd4cf1",1577:"0604cac29dd79422",2075:"1971ba880d06cc30",2076:"d3be83ed72735b56",2144:"5d46fa3641b801f2",2348:"12b471577685ffbe",2375:"efb0d99d1467ed67",2415:"dddee43f1c9b92e7",2494:"cbe440bf03b1a014",2560:"f34ba2c5e85b55c8",2757:"85d6029c1243079f",2885:"d64fa10bd441cbc8",3100:"4d5759fc21bf4de6",3162:"825364e1635b086f",3451:"fa589c246ed03c83",3506:"899dcc5e5d913023",3511:"16739e7034875331",3646:"f1263548817e086a",3675:"881df6996b8040b2",3728:"2a68666ee49959dd",3814:"aed692045b27c466",4163:"511ba1c803d7c59e",4171:"f5bc55c1acb0f5c1",4183:"0d54a4cc8cbc3a61",4304:"6342f47363b5aa32",4348:"16e6409072fc8e11",4406:"03b087c2d77cb960",4463:"ce74c63a27a7a872",4559:"251cbb62d2a2ca8d",4591:"7a48c0cf9464e62b",4699:"01733b3942afbe92",4839:"f32de5d22c9696fa",4867:"17817bc208c2836c",4914:"72751204db50ae35",5054:"2f57954df11c6846",5100:"659224ed1f94442c",5197:"38b8cc3181b51450",5222:"9cbea5f62b0fb679",5371:"2de00f70d237e79d",5399:"c439131f3a61e9b3",5712:"a9a2db8da6f1a8cd",5887:"708ea3877f30ffcd",5949:"2ed93c457aa1e9fb",5995:"818802cbbfe32b83",6024:"3c02ab7fe82fedfe",6303:"4ea7e81fd1aa1e01",6433:"91353c3d7c453322",6480:"5977b854bb56850c",6521:"a8a508f41e539cc5",6536:"dfc5d780e02360c5",6695:"93cacdb118ebec12",6840:"fd32dada9c8ec44e",6975:"6d2e5de0574c6402",6982:"4907cbb0a21f41f1",7030:"f2a9bf080bedfc5b",7056:"d94084a764515e62",7076:"2b7ea8b1f54f4458",7179:"80391eb100990080",7240:"680a87741a5535b1",7278:"bf542500b6fca113",7356:"911eacb1ce959b5e",7372:"e306385d972d6e2c",7428:"cb325b96b92ea4c2",7720:"78509b154c08b472",7762:"e7a5b89bf8544d49",7907:"d72619a0c1833a1b",8066:"67e76a5c3f71f306",8193:"476b12959c4b189d",8314:"52348a57ed623e38",8361:"3d466d853997fbb0",8477:"15dacf21c512c8d4",8566:"52fa7b8c5c22d53f",8584:"94ca33677cedf961",8711:"f6a903c3bb3101f6",8805:"7a687270c4acd743",8814:"4175e28b98837400",8839:"cfb335a41e74f211",8886:"d67de68b3732a1f5",8970:"89f040d889f287fc",8984:"b8081aaadcdeaca4",9013:"2e347313286de95b",9070:"29b18cc91c088f3f",9273:"16673f4c5278d1b8",9329:"c76198334f717402",9344:"2d668603b6130b28",9456:"c3e2b25e7ae1c2c6",9546:"6e1d6e8098da979c",9697:"57e559625e67bb53",9878:"db8640bd416c9008",9977:"948bf38bed890db4"}[e]+".js"),f.miniCssF=e=>{},f.o=(e,d)=>Object.prototype.hasOwnProperty.call(e,d),(()=>{var e={},d="app:";f.l=(a,t,r,b)=>{if(e[a])e[a].push(t);else{var c,l;if(void 0!==r)for(var n=document.getElementsByTagName("script"),i=0;i{c.onerror=c.onload=null,clearTimeout(u);var y=e[a];if(delete e[a],c.parentNode&&c.parentNode.removeChild(c),y&&y.forEach(_=>_(p)),m)return m(p)},u=setTimeout(s.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=s.bind(null,c.onerror),c.onload=s.bind(null,c.onload),l&&document.head.appendChild(c)}}})(),f.r=e=>{typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;f.tt=()=>(void 0===e&&(e={createScriptURL:d=>d},typeof trustedTypes<"u"&&trustedTypes.createPolicy&&(e=trustedTypes.createPolicy("angular#bundler",e))),e)})(),f.tu=e=>f.tt().createScriptURL(e),f.p="",(()=>{var e={9121:0};f.f.j=(t,r)=>{var b=f.o(e,t)?e[t]:void 0;if(0!==b)if(b)r.push(b[2]);else if(9121!=t){var c=new Promise((o,s)=>b=e[t]=[o,s]);r.push(b[2]=c);var l=f.p+f.u(t),n=new Error;f.l(l,o=>{if(f.o(e,t)&&(0!==(b=e[t])&&(e[t]=void 0),b)){var s=o&&("load"===o.type?"missing":o.type),u=o&&o.target&&o.target.src;n.message="Loading chunk "+t+" failed.\n("+s+": "+u+")",n.name="ChunkLoadError",n.type=s,n.request=u,b[1](n)}},"chunk-"+t,t)}else e[t]=0},f.O.j=t=>0===e[t];var d=(t,r)=>{var n,i,[b,c,l]=r,o=0;if(b.some(u=>0!==e[u])){for(n in c)f.o(c,n)&&(f.m[n]=c[n]);if(l)var s=l(f)}for(t&&t(r);o.ion-page{position:relative;contain:layout style;height:100%}.split-pane-visible>.ion-page.split-pane-main{position:relative}ion-route,ion-route-redirect,ion-router,ion-select-option,ion-nav-controller,ion-menu-controller,ion-action-sheet-controller,ion-alert-controller,ion-loading-controller,ion-modal-controller,ion-picker-controller,ion-popover-controller,ion-toast-controller,.ion-page-hidden{display:none!important}.ion-page-invisible{opacity:0}.can-go-back>ion-header ion-back-button{display:block}html.plt-ios.plt-hybrid,html.plt-ios.plt-pwa{--ion-statusbar-padding: 20px}@supports (padding-top: 20px){html{--ion-safe-area-top: var(--ion-statusbar-padding)}}@supports (padding-top: env(safe-area-inset-top)){html{--ion-safe-area-top: env(safe-area-inset-top);--ion-safe-area-bottom: env(safe-area-inset-bottom);--ion-safe-area-left: env(safe-area-inset-left);--ion-safe-area-right: env(safe-area-inset-right)}}ion-card.ion-color .ion-inherit-color,ion-card-header.ion-color .ion-inherit-color{color:inherit}.menu-content{transform:translateZ(0)}.menu-content-open{cursor:pointer;touch-action:manipulation;pointer-events:none;overflow-y:hidden}.menu-content-open ion-content{--overflow: hidden}.menu-content-open .ion-content-scroll-host{overflow:hidden}.ios .menu-content-reveal{box-shadow:-8px 0 42px #00000014}[dir=rtl].ios .menu-content-reveal{box-shadow:8px 0 42px #00000014}.md .menu-content-reveal,.md .menu-content-push{box-shadow:4px 0 16px #0000002e}ion-accordion-group.accordion-group-expand-inset>ion-accordion:first-of-type{border-top-left-radius:8px;border-top-right-radius:8px}ion-accordion-group.accordion-group-expand-inset>ion-accordion:last-of-type{border-bottom-left-radius:8px;border-bottom-right-radius:8px}ion-accordion-group>ion-accordion:last-of-type ion-item[slot=header]{--border-width: 0px}ion-accordion.accordion-animated>[slot=header] .ion-accordion-toggle-icon{transition:.3s transform cubic-bezier(.25,.8,.5,1)}@media (prefers-reduced-motion: reduce){ion-accordion .ion-accordion-toggle-icon{transition:none!important}}ion-accordion.accordion-expanding>[slot=header] .ion-accordion-toggle-icon,ion-accordion.accordion-expanded>[slot=header] .ion-accordion-toggle-icon{transform:rotate(180deg)}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-previous ion-item[slot=header]{--border-width: 0px;--inner-border-width: 0px}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanding:first-of-type,ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanded:first-of-type{margin-top:0}ion-input input::-webkit-date-and-time-value{text-align:start}.ion-datetime-button-overlay{--width: fit-content;--height: fit-content}.ion-datetime-button-overlay ion-datetime.datetime-grid{width:320px;min-height:320px}[ion-last-focus],header[tabindex="-1"]:focus,[role=banner][tabindex="-1"]:focus,main[tabindex="-1"]:focus,[role=main][tabindex="-1"]:focus,h1[tabindex="-1"]:focus,[role=heading][aria-level="1"][tabindex="-1"]:focus{outline:none}.popover-viewport:has(>ion-content){overflow:hidden}@supports not selector(:has(> ion-content)){.popover-viewport{overflow:hidden}}audio,canvas,progress,video{vertical-align:baseline}audio:not([controls]){display:none;height:0}b,strong{font-weight:700}img{max-width:100%}hr{height:1px;border-width:0;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}label,input,select,textarea{font-family:inherit;line-height:normal}textarea{overflow:auto;height:auto;font:inherit;color:inherit}textarea::placeholder{padding-left:2px}form,input,optgroup,select{margin:0;font:inherit;color:inherit}html input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button}a,a div,a span,a ion-icon,a ion-label,button,button div,button span,button ion-icon,button ion-label,.ion-tappable,[tappable],[tappable] div,[tappable] span,[tappable] ion-icon,[tappable] ion-label,input,textarea{touch-action:manipulation}a ion-label,button ion-label{pointer-events:none}button{padding:0;border:0;border-radius:0;font-family:inherit;font-style:inherit;font-variant:inherit;line-height:1;text-transform:none;cursor:pointer;-webkit-appearance:button}[tappable]{cursor:pointer}a[disabled],button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}html{width:100%;height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}html:not(.hydrated) body{display:none}html.ion-ce body{display:block}html.plt-pwa{height:100vh}body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:0;padding:0;position:fixed;width:100%;max-width:100%;height:100%;max-height:100%;transform:translateZ(0);text-rendering:optimizeLegibility;overflow:hidden;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;overscroll-behavior-y:none;-webkit-text-size-adjust:none;text-size-adjust:none}html{font-family:var(--ion-font-family)}@supports (-webkit-touch-callout: none){html{font:var(--ion-dynamic-font, 16px var(--ion-font-family))}}a{background-color:transparent;color:var(--ion-color-primary, #0054e9)}h1,h2,h3,h4,h5,h6{margin-top:16px;margin-bottom:10px;font-weight:500;line-height:1.2}h1{margin-top:20px;font-size:1.625rem}h2{margin-top:18px;font-size:1.5rem}h3{font-size:1.375rem}h4{font-size:1.25rem}h5{font-size:1.125rem}h6{font-size:1rem}small{font-size:75%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}.ion-hide,.ion-hide-up,.ion-hide-down{display:none!important}@media (min-width: 576px){.ion-hide-sm-up{display:none!important}}@media (max-width: 575.98px){.ion-hide-sm-down{display:none!important}}@media (min-width: 768px){.ion-hide-md-up{display:none!important}}@media (max-width: 767.98px){.ion-hide-md-down{display:none!important}}@media (min-width: 992px){.ion-hide-lg-up{display:none!important}}@media (max-width: 991.98px){.ion-hide-lg-down{display:none!important}}@media (min-width: 1200px){.ion-hide-xl-up{display:none!important}}@media (max-width: 1199.98px){.ion-hide-xl-down{display:none!important}}.ion-no-padding{--padding-start: 0;--padding-end: 0;--padding-top: 0;--padding-bottom: 0;padding:0}.ion-padding{--padding-start: var(--ion-padding, 16px);--padding-end: var(--ion-padding, 16px);--padding-top: var(--ion-padding, 16px);--padding-bottom: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-top{--padding-top: var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px)}.ion-padding-start{--padding-start: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px)}.ion-padding-end{--padding-end: var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px)}.ion-padding-bottom{--padding-bottom: var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-vertical{--padding-top: var(--ion-padding, 16px);--padding-bottom: var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-horizontal{--padding-start: var(--ion-padding, 16px);--padding-end: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px)}.ion-no-margin{--margin-start: 0;--margin-end: 0;--margin-top: 0;--margin-bottom: 0;margin:0}.ion-margin{--margin-start: var(--ion-margin, 16px);--margin-end: var(--ion-margin, 16px);--margin-top: var(--ion-margin, 16px);--margin-bottom: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-top{--margin-top: var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px)}.ion-margin-start{--margin-start: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px)}.ion-margin-end{--margin-end: var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px)}.ion-margin-bottom{--margin-bottom: var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-vertical{--margin-top: var(--ion-margin, 16px);--margin-bottom: var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-horizontal{--margin-start: var(--ion-margin, 16px);--margin-end: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px)}.ion-float-left{float:left!important}.ion-float-right{float:right!important}.ion-float-start{float:left!important}:host-context([dir=rtl]) .ion-float-start{float:right!important}[dir=rtl] .ion-float-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-start:dir(rtl){float:right!important}}.ion-float-end{float:right!important}:host-context([dir=rtl]) .ion-float-end{float:left!important}[dir=rtl] .ion-float-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-end:dir(rtl){float:left!important}}@media (min-width: 576px){.ion-float-sm-left{float:left!important}.ion-float-sm-right{float:right!important}.ion-float-sm-start{float:left!important}:host-context([dir=rtl]) .ion-float-sm-start{float:right!important}[dir=rtl] .ion-float-sm-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-sm-start:dir(rtl){float:right!important}}.ion-float-sm-end{float:right!important}:host-context([dir=rtl]) .ion-float-sm-end{float:left!important}[dir=rtl] .ion-float-sm-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-sm-end:dir(rtl){float:left!important}}}@media (min-width: 768px){.ion-float-md-left{float:left!important}.ion-float-md-right{float:right!important}.ion-float-md-start{float:left!important}:host-context([dir=rtl]) .ion-float-md-start{float:right!important}[dir=rtl] .ion-float-md-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-md-start:dir(rtl){float:right!important}}.ion-float-md-end{float:right!important}:host-context([dir=rtl]) .ion-float-md-end{float:left!important}[dir=rtl] .ion-float-md-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-md-end:dir(rtl){float:left!important}}}@media (min-width: 992px){.ion-float-lg-left{float:left!important}.ion-float-lg-right{float:right!important}.ion-float-lg-start{float:left!important}:host-context([dir=rtl]) .ion-float-lg-start{float:right!important}[dir=rtl] .ion-float-lg-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-lg-start:dir(rtl){float:right!important}}.ion-float-lg-end{float:right!important}:host-context([dir=rtl]) .ion-float-lg-end{float:left!important}[dir=rtl] .ion-float-lg-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-lg-end:dir(rtl){float:left!important}}}@media (min-width: 1200px){.ion-float-xl-left{float:left!important}.ion-float-xl-right{float:right!important}.ion-float-xl-start{float:left!important}:host-context([dir=rtl]) .ion-float-xl-start{float:right!important}[dir=rtl] .ion-float-xl-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-xl-start:dir(rtl){float:right!important}}.ion-float-xl-end{float:right!important}:host-context([dir=rtl]) .ion-float-xl-end{float:left!important}[dir=rtl] .ion-float-xl-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-xl-end:dir(rtl){float:left!important}}}.ion-text-center{text-align:center!important}.ion-text-justify{text-align:justify!important}.ion-text-start{text-align:start!important}.ion-text-end{text-align:end!important}.ion-text-left{text-align:left!important}.ion-text-right{text-align:right!important}.ion-text-nowrap{white-space:nowrap!important}.ion-text-wrap{white-space:normal!important}@media (min-width: 576px){.ion-text-sm-center{text-align:center!important}.ion-text-sm-justify{text-align:justify!important}.ion-text-sm-start{text-align:start!important}.ion-text-sm-end{text-align:end!important}.ion-text-sm-left{text-align:left!important}.ion-text-sm-right{text-align:right!important}.ion-text-sm-nowrap{white-space:nowrap!important}.ion-text-sm-wrap{white-space:normal!important}}@media (min-width: 768px){.ion-text-md-center{text-align:center!important}.ion-text-md-justify{text-align:justify!important}.ion-text-md-start{text-align:start!important}.ion-text-md-end{text-align:end!important}.ion-text-md-left{text-align:left!important}.ion-text-md-right{text-align:right!important}.ion-text-md-nowrap{white-space:nowrap!important}.ion-text-md-wrap{white-space:normal!important}}@media (min-width: 992px){.ion-text-lg-center{text-align:center!important}.ion-text-lg-justify{text-align:justify!important}.ion-text-lg-start{text-align:start!important}.ion-text-lg-end{text-align:end!important}.ion-text-lg-left{text-align:left!important}.ion-text-lg-right{text-align:right!important}.ion-text-lg-nowrap{white-space:nowrap!important}.ion-text-lg-wrap{white-space:normal!important}}@media (min-width: 1200px){.ion-text-xl-center{text-align:center!important}.ion-text-xl-justify{text-align:justify!important}.ion-text-xl-start{text-align:start!important}.ion-text-xl-end{text-align:end!important}.ion-text-xl-left{text-align:left!important}.ion-text-xl-right{text-align:right!important}.ion-text-xl-nowrap{white-space:nowrap!important}.ion-text-xl-wrap{white-space:normal!important}}.ion-text-uppercase{text-transform:uppercase!important}.ion-text-lowercase{text-transform:lowercase!important}.ion-text-capitalize{text-transform:capitalize!important}@media (min-width: 576px){.ion-text-sm-uppercase{text-transform:uppercase!important}.ion-text-sm-lowercase{text-transform:lowercase!important}.ion-text-sm-capitalize{text-transform:capitalize!important}}@media (min-width: 768px){.ion-text-md-uppercase{text-transform:uppercase!important}.ion-text-md-lowercase{text-transform:lowercase!important}.ion-text-md-capitalize{text-transform:capitalize!important}}@media (min-width: 992px){.ion-text-lg-uppercase{text-transform:uppercase!important}.ion-text-lg-lowercase{text-transform:lowercase!important}.ion-text-lg-capitalize{text-transform:capitalize!important}}@media (min-width: 1200px){.ion-text-xl-uppercase{text-transform:uppercase!important}.ion-text-xl-lowercase{text-transform:lowercase!important}.ion-text-xl-capitalize{text-transform:capitalize!important}}.ion-align-self-start{align-self:flex-start!important}.ion-align-self-end{align-self:flex-end!important}.ion-align-self-center{align-self:center!important}.ion-align-self-stretch{align-self:stretch!important}.ion-align-self-baseline{align-self:baseline!important}.ion-align-self-auto{align-self:auto!important}.ion-wrap{flex-wrap:wrap!important}.ion-nowrap{flex-wrap:nowrap!important}.ion-wrap-reverse{flex-wrap:wrap-reverse!important}.ion-justify-content-start{justify-content:flex-start!important}.ion-justify-content-center{justify-content:center!important}.ion-justify-content-end{justify-content:flex-end!important}.ion-justify-content-around{justify-content:space-around!important}.ion-justify-content-between{justify-content:space-between!important}.ion-justify-content-evenly{justify-content:space-evenly!important}.ion-align-items-start{align-items:flex-start!important}.ion-align-items-center{align-items:center!important}.ion-align-items-end{align-items:flex-end!important}.ion-align-items-stretch{align-items:stretch!important}.ion-align-items-baseline{align-items:baseline!important}:root{--ion-color-primary: #4d8dff;--ion-color-primary-rgb: 77, 141, 255;--ion-color-primary-contrast: #000;--ion-color-primary-contrast-rgb: 0, 0, 0;--ion-color-primary-shade: #447ce0;--ion-color-primary-tint: #5f98ff;--ion-color-secondary: #46b1ff;--ion-color-secondary-rgb: 70, 177, 255;--ion-color-secondary-contrast: #000;--ion-color-secondary-contrast-rgb: 0, 0, 0;--ion-color-secondary-shade: #3e9ce0;--ion-color-secondary-tint: #59b9ff;--ion-color-tertiary: #8482fb;--ion-color-tertiary-rgb: 132, 130, 251;--ion-color-tertiary-contrast: #000;--ion-color-tertiary-contrast-rgb: 0, 0, 0;--ion-color-tertiary-shade: #7472dd;--ion-color-tertiary-tint: #908ffb;--ion-color-success: #2dd55b;--ion-color-success-rgb: 45, 213, 91;--ion-color-success-contrast: #000;--ion-color-success-contrast-rgb: 0, 0, 0;--ion-color-success-shade: #28bb50;--ion-color-success-tint: #42d96b;--ion-color-warning: #ffce31;--ion-color-warning-rgb: 255, 206, 49;--ion-color-warning-contrast: #000;--ion-color-warning-contrast-rgb: 0, 0, 0;--ion-color-warning-shade: #e0b52b;--ion-color-warning-tint: #ffd346;--ion-color-danger: #f24c58;--ion-color-danger-rgb: 242, 76, 88;--ion-color-danger-contrast: #000;--ion-color-danger-contrast-rgb: 0, 0, 0;--ion-color-danger-shade: #d5434d;--ion-color-danger-tint: #f35e69;--ion-color-light: #222428;--ion-color-light-rgb: 34, 36, 40;--ion-color-light-contrast: #fff;--ion-color-light-contrast-rgb: 255, 255, 255;--ion-color-light-shade: #1e2023;--ion-color-light-tint: #383a3e;--ion-color-medium: #989aa2;--ion-color-medium-rgb: 152, 154, 162;--ion-color-medium-contrast: #000;--ion-color-medium-contrast-rgb: 0, 0, 0;--ion-color-medium-shade: #86888f;--ion-color-medium-tint: #a2a4ab;--ion-color-dark: #f4f5f8;--ion-color-dark-rgb: 244, 245, 248;--ion-color-dark-contrast: #000;--ion-color-dark-contrast-rgb: 0, 0, 0;--ion-color-dark-shade: #d7d8da;--ion-color-dark-tint: #f5f6f9}:root.ios{--ion-background-color: #000000;--ion-background-color-rgb: 0, 0, 0;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-background-color-step-50: #0d0d0d;--ion-background-color-step-100: #1a1a1a;--ion-background-color-step-150: #262626;--ion-background-color-step-200: #333333;--ion-background-color-step-250: #404040;--ion-background-color-step-300: #4d4d4d;--ion-background-color-step-350: #595959;--ion-background-color-step-400: #666666;--ion-background-color-step-450: #737373;--ion-background-color-step-500: #808080;--ion-background-color-step-550: #8c8c8c;--ion-background-color-step-600: #999999;--ion-background-color-step-650: #a6a6a6;--ion-background-color-step-700: #b3b3b3;--ion-background-color-step-750: #bfbfbf;--ion-background-color-step-800: #cccccc;--ion-background-color-step-850: #d9d9d9;--ion-background-color-step-900: #e6e6e6;--ion-background-color-step-950: #f2f2f2;--ion-text-color-step-50: #f2f2f2;--ion-text-color-step-100: #e6e6e6;--ion-text-color-step-150: #d9d9d9;--ion-text-color-step-200: #cccccc;--ion-text-color-step-250: #bfbfbf;--ion-text-color-step-300: #b3b3b3;--ion-text-color-step-350: #a6a6a6;--ion-text-color-step-400: #999999;--ion-text-color-step-450: #8c8c8c;--ion-text-color-step-500: #808080;--ion-text-color-step-550: #737373;--ion-text-color-step-600: #666666;--ion-text-color-step-650: #595959;--ion-text-color-step-700: #4d4d4d;--ion-text-color-step-750: #404040;--ion-text-color-step-800: #333333;--ion-text-color-step-850: #262626;--ion-text-color-step-900: #1a1a1a;--ion-text-color-step-950: #0d0d0d;--ion-item-background: #000000;--ion-card-background: #1c1c1d}:root.ios ion-modal{--ion-background-color: var(--ion-color-step-100, var(--ion-background-color-step-100));--ion-toolbar-background: var(--ion-color-step-150, var(--ion-background-color-step-150));--ion-toolbar-border-color: var(--ion-color-step-250, var(--ion-background-color-step-250))}:root.md{--ion-background-color: #121212;--ion-background-color-rgb: 18, 18, 18;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-background-color-step-50: #1e1e1e;--ion-background-color-step-100: #2a2a2a;--ion-background-color-step-150: #363636;--ion-background-color-step-200: #414141;--ion-background-color-step-250: #4d4d4d;--ion-background-color-step-300: #595959;--ion-background-color-step-350: #656565;--ion-background-color-step-400: #717171;--ion-background-color-step-450: #7d7d7d;--ion-background-color-step-500: #898989;--ion-background-color-step-550: #949494;--ion-background-color-step-600: #a0a0a0;--ion-background-color-step-650: #acacac;--ion-background-color-step-700: #b8b8b8;--ion-background-color-step-750: #c4c4c4;--ion-background-color-step-800: #d0d0d0;--ion-background-color-step-850: #dbdbdb;--ion-background-color-step-900: #e7e7e7;--ion-background-color-step-950: #f3f3f3;--ion-text-color-step-50: #f3f3f3;--ion-text-color-step-100: #e7e7e7;--ion-text-color-step-150: #dbdbdb;--ion-text-color-step-200: #d0d0d0;--ion-text-color-step-250: #c4c4c4;--ion-text-color-step-300: #b8b8b8;--ion-text-color-step-350: #acacac;--ion-text-color-step-400: #a0a0a0;--ion-text-color-step-450: #949494;--ion-text-color-step-500: #898989;--ion-text-color-step-550: #7d7d7d;--ion-text-color-step-600: #717171;--ion-text-color-step-650: #656565;--ion-text-color-step-700: #595959;--ion-text-color-step-750: #4d4d4d;--ion-text-color-step-800: #414141;--ion-text-color-step-850: #363636;--ion-text-color-step-900: #2a2a2a;--ion-text-color-step-950: #1e1e1e;--ion-item-background: #1e1e1e;--ion-toolbar-background: #1f1f1f;--ion-tab-bar-background: #1f1f1f;--ion-card-background: #1e1e1e}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(layers.ef6db8722c2c3f9a.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(layers-2x.9859cd1231006a4a.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(marker-icon.d577052aa271e13f.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.right-0{right:0}.z-10{z-index:10}.z-50{z-index:50}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.m-5{margin:1.25rem}.m-6{margin:1.5rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-6{margin-bottom:1.5rem}.ml-10{margin-left:2.5rem}.ml-auto{margin-left:auto}.mr-10{margin-right:2.5rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-auto{margin-top:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-12{height:3rem}.h-48{height:12rem}.h-60{height:15rem}.h-96{height:24rem}.h-\[25em\]{height:25em}.h-full{height:100%}.min-h-full{min-height:100%}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-1\/6{width:16.666667%}.w-12{width:3rem}.w-2\/3{width:66.666667%}.w-full{width:100%}.min-w-full{min-width:100%}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-y-auto{overflow-y:auto}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-tl-2xl{border-top-left-radius:1rem}.rounded-tr-2xl{border-top-right-radius:1rem}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-cyan-800{--tw-bg-opacity: 1;background-color:rgb(21 94 117 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-purple-300{--tw-bg-opacity: 1;background-color:rgb(216 180 254 / var(--tw-bg-opacity))}.bg-purple-400{--tw-bg-opacity: 1;background-color:rgb(192 132 252 / var(--tw-bg-opacity))}.bg-purple-800{--tw-bg-opacity: 1;background-color:rgb(107 33 168 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-60{--tw-bg-opacity: .6}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.pl-1{padding-left:.25rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}@media (min-width: 768px){.md\:m-10{margin:2.5rem}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-3\/4{height:75%}.md\:h-full{height:100%}.md\:flex-row{flex-direction:row}.md\:justify-end{justify-content:flex-end}.md\:p-4{padding:1rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}}@media (min-width: 1024px){.lg\:m-10{margin:2.5rem}.lg\:ml-2{margin-left:.5rem}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:h-3\/4{height:75%}.lg\:h-96{height:24rem}.lg\:h-full{height:100%}.lg\:min-w-20{min-width:5rem}.lg\:flex-row{flex-direction:row}.lg\:justify-center{justify-content:center}.lg\:p-32{padding:8rem}.lg\:p-4{padding:1rem}.lg\:text-2xl{font-size:1.5rem;line-height:2rem}.lg\:text-6xl{font-size:3.75rem;line-height:1}.lg\:text-lg{font-size:1.125rem;line-height:1.75rem}}:root{--ion-color-ai_purple: #9d68be;--ion-color-ai_purple-rgb: 157,104,190;--ion-color-ai_purple-contrast: #000000;--ion-color-ai_purple-contrast-rgb: 0,0,0;--ion-color-ai_purple-shade: #8a5ca7;--ion-color-ai_purple-tint: #a777c5}.ion-color-ai_purple{--ion-color-base: var(--ion-color-ai_purple);--ion-color-base-rgb: var(--ion-color-ai_purple-rgb);--ion-color-contrast: var(--ion-color-ai_purple-contrast);--ion-color-contrast-rgb: var(--ion-color-ai_purple-contrast-rgb);--ion-color-shade: var(--ion-color-ai_purple-shade);--ion-color-tint: var(--ion-color-ai_purple-tint)} +:root{--ion-color-primary: #0054e9;--ion-color-primary-rgb: 0, 84, 233;--ion-color-primary-contrast: #fff;--ion-color-primary-contrast-rgb: 255, 255, 255;--ion-color-primary-shade: #004acd;--ion-color-primary-tint: #1a65eb;--ion-color-secondary: #0163aa;--ion-color-secondary-rgb: 1, 99, 170;--ion-color-secondary-contrast: #fff;--ion-color-secondary-contrast-rgb: 255, 255, 255;--ion-color-secondary-shade: #015796;--ion-color-secondary-tint: #1a73b3;--ion-color-tertiary: #6030ff;--ion-color-tertiary-rgb: 96, 48, 255;--ion-color-tertiary-contrast: #fff;--ion-color-tertiary-contrast-rgb: 255, 255, 255;--ion-color-tertiary-shade: #542ae0;--ion-color-tertiary-tint: #7045ff;--ion-color-success: #2dd55b;--ion-color-success-rgb: 45, 213, 91;--ion-color-success-contrast: #000;--ion-color-success-contrast-rgb: 0, 0, 0;--ion-color-success-shade: #28bb50;--ion-color-success-tint: #42d96b;--ion-color-warning: #ffc409;--ion-color-warning-rgb: 255, 196, 9;--ion-color-warning-contrast: #000;--ion-color-warning-contrast-rgb: 0, 0, 0;--ion-color-warning-shade: #e0ac08;--ion-color-warning-tint: #ffca22;--ion-color-danger: #c5000f;--ion-color-danger-rgb: 197, 0, 15;--ion-color-danger-contrast: #fff;--ion-color-danger-contrast-rgb: 255, 255, 255;--ion-color-danger-shade: #ad000d;--ion-color-danger-tint: #cb1a27;--ion-color-light: #f4f5f8;--ion-color-light-rgb: 244, 245, 248;--ion-color-light-contrast: #000;--ion-color-light-contrast-rgb: 0, 0, 0;--ion-color-light-shade: #d7d8da;--ion-color-light-tint: #f5f6f9;--ion-color-medium: #636469;--ion-color-medium-rgb: 99, 100, 105;--ion-color-medium-contrast: #fff;--ion-color-medium-contrast-rgb: 255, 255, 255;--ion-color-medium-shade: #57585c;--ion-color-medium-tint: #737478;--ion-color-dark: #222428;--ion-color-dark-rgb: 34, 36, 40;--ion-color-dark-contrast: #fff;--ion-color-dark-contrast-rgb: 255, 255, 255;--ion-color-dark-shade: #1e2023;--ion-color-dark-tint: #383a3e}html.ios{--ion-default-font: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Roboto", sans-serif}html.md{--ion-default-font: "Roboto", "Helvetica Neue", sans-serif}html{--ion-dynamic-font: -apple-system-body;--ion-font-family: var(--ion-default-font)}body{background:var(--ion-background-color);color:var(--ion-text-color)}body.backdrop-no-scroll{overflow:hidden}html.ios ion-modal.modal-card ion-header ion-toolbar:first-of-type,html.ios ion-modal.modal-sheet ion-header ion-toolbar:first-of-type,html.ios ion-modal ion-footer ion-toolbar:first-of-type{padding-top:6px}html.ios ion-modal.modal-card ion-header ion-toolbar:last-of-type,html.ios ion-modal.modal-sheet ion-header ion-toolbar:last-of-type{padding-bottom:6px}html.ios ion-modal ion-toolbar{padding-right:calc(var(--ion-safe-area-right) + 8px);padding-left:calc(var(--ion-safe-area-left) + 8px)}@media screen and (min-width: 768px){html.ios ion-modal.modal-card:first-of-type{--backdrop-opacity: .18}}ion-modal.modal-default.show-modal~ion-modal.modal-default{--backdrop-opacity: 0;--box-shadow: none}html.ios ion-modal.modal-card .ion-page{border-top-left-radius:var(--border-radius)}.ion-color-primary{--ion-color-base: var(--ion-color-primary, #0054e9) !important;--ion-color-base-rgb: var(--ion-color-primary-rgb, 0, 84, 233) !important;--ion-color-contrast: var(--ion-color-primary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-primary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-primary-shade, #004acd) !important;--ion-color-tint: var(--ion-color-primary-tint, #1a65eb) !important}.ion-color-secondary{--ion-color-base: var(--ion-color-secondary, #0163aa) !important;--ion-color-base-rgb: var(--ion-color-secondary-rgb, 1, 99, 170) !important;--ion-color-contrast: var(--ion-color-secondary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-secondary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-secondary-shade, #015796) !important;--ion-color-tint: var(--ion-color-secondary-tint, #1a73b3) !important}.ion-color-tertiary{--ion-color-base: var(--ion-color-tertiary, #6030ff) !important;--ion-color-base-rgb: var(--ion-color-tertiary-rgb, 96, 48, 255) !important;--ion-color-contrast: var(--ion-color-tertiary-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-tertiary-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-tertiary-shade, #542ae0) !important;--ion-color-tint: var(--ion-color-tertiary-tint, #7045ff) !important}.ion-color-success{--ion-color-base: var(--ion-color-success, #2dd55b) !important;--ion-color-base-rgb: var(--ion-color-success-rgb, 45, 213, 91) !important;--ion-color-contrast: var(--ion-color-success-contrast, #000) !important;--ion-color-contrast-rgb: var(--ion-color-success-contrast-rgb, 0, 0, 0) !important;--ion-color-shade: var(--ion-color-success-shade, #28bb50) !important;--ion-color-tint: var(--ion-color-success-tint, #42d96b) !important}.ion-color-warning{--ion-color-base: var(--ion-color-warning, #ffc409) !important;--ion-color-base-rgb: var(--ion-color-warning-rgb, 255, 196, 9) !important;--ion-color-contrast: var(--ion-color-warning-contrast, #000) !important;--ion-color-contrast-rgb: var(--ion-color-warning-contrast-rgb, 0, 0, 0) !important;--ion-color-shade: var(--ion-color-warning-shade, #e0ac08) !important;--ion-color-tint: var(--ion-color-warning-tint, #ffca22) !important}.ion-color-danger{--ion-color-base: var(--ion-color-danger, #c5000f) !important;--ion-color-base-rgb: var(--ion-color-danger-rgb, 197, 0, 15) !important;--ion-color-contrast: var(--ion-color-danger-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-danger-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-danger-shade, #ad000d) !important;--ion-color-tint: var(--ion-color-danger-tint, #cb1a27) !important}.ion-color-light{--ion-color-base: var(--ion-color-light, #f4f5f8) !important;--ion-color-base-rgb: var(--ion-color-light-rgb, 244, 245, 248) !important;--ion-color-contrast: var(--ion-color-light-contrast, #000) !important;--ion-color-contrast-rgb: var(--ion-color-light-contrast-rgb, 0, 0, 0) !important;--ion-color-shade: var(--ion-color-light-shade, #d7d8da) !important;--ion-color-tint: var(--ion-color-light-tint, #f5f6f9) !important}.ion-color-medium{--ion-color-base: var(--ion-color-medium, #636469) !important;--ion-color-base-rgb: var(--ion-color-medium-rgb, 99, 100, 105) !important;--ion-color-contrast: var(--ion-color-medium-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-medium-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-medium-shade, #57585c) !important;--ion-color-tint: var(--ion-color-medium-tint, #737478) !important}.ion-color-dark{--ion-color-base: var(--ion-color-dark, #222428) !important;--ion-color-base-rgb: var(--ion-color-dark-rgb, 34, 36, 40) !important;--ion-color-contrast: var(--ion-color-dark-contrast, #fff) !important;--ion-color-contrast-rgb: var(--ion-color-dark-contrast-rgb, 255, 255, 255) !important;--ion-color-shade: var(--ion-color-dark-shade, #1e2023) !important;--ion-color-tint: var(--ion-color-dark-tint, #383a3e) !important}.ion-page{left:0;right:0;top:0;bottom:0;display:flex;position:absolute;flex-direction:column;justify-content:space-between;contain:layout size style;z-index:0}ion-modal>.ion-page{position:relative;contain:layout style;height:100%}.split-pane-visible>.ion-page.split-pane-main{position:relative}ion-route,ion-route-redirect,ion-router,ion-select-option,ion-nav-controller,ion-menu-controller,ion-action-sheet-controller,ion-alert-controller,ion-loading-controller,ion-modal-controller,ion-picker-controller,ion-popover-controller,ion-toast-controller,.ion-page-hidden{display:none!important}.ion-page-invisible{opacity:0}.can-go-back>ion-header ion-back-button{display:block}html.plt-ios.plt-hybrid,html.plt-ios.plt-pwa{--ion-statusbar-padding: 20px}@supports (padding-top: 20px){html{--ion-safe-area-top: var(--ion-statusbar-padding)}}@supports (padding-top: env(safe-area-inset-top)){html{--ion-safe-area-top: env(safe-area-inset-top);--ion-safe-area-bottom: env(safe-area-inset-bottom);--ion-safe-area-left: env(safe-area-inset-left);--ion-safe-area-right: env(safe-area-inset-right)}}ion-card.ion-color .ion-inherit-color,ion-card-header.ion-color .ion-inherit-color{color:inherit}.menu-content{transform:translateZ(0)}.menu-content-open{cursor:pointer;touch-action:manipulation;pointer-events:none;overflow-y:hidden}.menu-content-open ion-content{--overflow: hidden}.menu-content-open .ion-content-scroll-host{overflow:hidden}.ios .menu-content-reveal{box-shadow:-8px 0 42px #00000014}[dir=rtl].ios .menu-content-reveal{box-shadow:8px 0 42px #00000014}.md .menu-content-reveal,.md .menu-content-push{box-shadow:4px 0 16px #0000002e}ion-accordion-group.accordion-group-expand-inset>ion-accordion:first-of-type{border-top-left-radius:8px;border-top-right-radius:8px}ion-accordion-group.accordion-group-expand-inset>ion-accordion:last-of-type{border-bottom-left-radius:8px;border-bottom-right-radius:8px}ion-accordion-group>ion-accordion:last-of-type ion-item[slot=header]{--border-width: 0px}ion-accordion.accordion-animated>[slot=header] .ion-accordion-toggle-icon{transition:.3s transform cubic-bezier(.25,.8,.5,1)}@media (prefers-reduced-motion: reduce){ion-accordion .ion-accordion-toggle-icon{transition:none!important}}ion-accordion.accordion-expanding>[slot=header] .ion-accordion-toggle-icon,ion-accordion.accordion-expanded>[slot=header] .ion-accordion-toggle-icon{transform:rotate(180deg)}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-previous ion-item[slot=header]{--border-width: 0px;--inner-border-width: 0px}ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanding:first-of-type,ion-accordion-group.accordion-group-expand-inset.md>ion-accordion.accordion-expanded:first-of-type{margin-top:0}ion-input input::-webkit-date-and-time-value{text-align:start}.ion-datetime-button-overlay{--width: fit-content;--height: fit-content}.ion-datetime-button-overlay ion-datetime.datetime-grid{width:320px;min-height:320px}[ion-last-focus],header[tabindex="-1"]:focus,[role=banner][tabindex="-1"]:focus,main[tabindex="-1"]:focus,[role=main][tabindex="-1"]:focus,h1[tabindex="-1"]:focus,[role=heading][aria-level="1"][tabindex="-1"]:focus{outline:none}.popover-viewport:has(>ion-content){overflow:hidden}@supports not selector(:has(> ion-content)){.popover-viewport{overflow:hidden}}audio,canvas,progress,video{vertical-align:baseline}audio:not([controls]){display:none;height:0}b,strong{font-weight:700}img{max-width:100%}hr{height:1px;border-width:0;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}label,input,select,textarea{font-family:inherit;line-height:normal}textarea{overflow:auto;height:auto;font:inherit;color:inherit}textarea::placeholder{padding-left:2px}form,input,optgroup,select{margin:0;font:inherit;color:inherit}html input[type=button],input[type=reset],input[type=submit]{cursor:pointer;-webkit-appearance:button}a,a div,a span,a ion-icon,a ion-label,button,button div,button span,button ion-icon,button ion-label,.ion-tappable,[tappable],[tappable] div,[tappable] span,[tappable] ion-icon,[tappable] ion-label,input,textarea{touch-action:manipulation}a ion-label,button ion-label{pointer-events:none}button{padding:0;border:0;border-radius:0;font-family:inherit;font-style:inherit;font-variant:inherit;line-height:1;text-transform:none;cursor:pointer;-webkit-appearance:button}[tappable]{cursor:pointer}a[disabled],button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}*{box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-tap-highlight-color:transparent;-webkit-touch-callout:none}html{width:100%;height:100%;-webkit-text-size-adjust:100%;text-size-adjust:100%}html:not(.hydrated) body{display:none}html.ion-ce body{display:block}html.plt-pwa{height:100vh}body{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;margin:0;padding:0;position:fixed;width:100%;max-width:100%;height:100%;max-height:100%;transform:translateZ(0);text-rendering:optimizeLegibility;overflow:hidden;touch-action:manipulation;-webkit-user-drag:none;-ms-content-zooming:none;word-wrap:break-word;overscroll-behavior-y:none;-webkit-text-size-adjust:none;text-size-adjust:none}html{font-family:var(--ion-font-family)}@supports (-webkit-touch-callout: none){html{font:var(--ion-dynamic-font, 16px var(--ion-font-family))}}a{background-color:transparent;color:var(--ion-color-primary, #0054e9)}h1,h2,h3,h4,h5,h6{margin-top:16px;margin-bottom:10px;font-weight:500;line-height:1.2}h1{margin-top:20px;font-size:1.625rem}h2{margin-top:18px;font-size:1.5rem}h3{font-size:1.375rem}h4{font-size:1.25rem}h5{font-size:1.125rem}h6{font-size:1rem}small{font-size:75%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}.ion-hide,.ion-hide-up,.ion-hide-down{display:none!important}@media (min-width: 576px){.ion-hide-sm-up{display:none!important}}@media (max-width: 575.98px){.ion-hide-sm-down{display:none!important}}@media (min-width: 768px){.ion-hide-md-up{display:none!important}}@media (max-width: 767.98px){.ion-hide-md-down{display:none!important}}@media (min-width: 992px){.ion-hide-lg-up{display:none!important}}@media (max-width: 991.98px){.ion-hide-lg-down{display:none!important}}@media (min-width: 1200px){.ion-hide-xl-up{display:none!important}}@media (max-width: 1199.98px){.ion-hide-xl-down{display:none!important}}.ion-no-padding{--padding-start: 0;--padding-end: 0;--padding-top: 0;--padding-bottom: 0;padding:0}.ion-padding{--padding-start: var(--ion-padding, 16px);--padding-end: var(--ion-padding, 16px);--padding-top: var(--ion-padding, 16px);--padding-bottom: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-top{--padding-top: var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px)}.ion-padding-start{--padding-start: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px)}.ion-padding-end{--padding-end: var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px)}.ion-padding-bottom{--padding-bottom: var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-vertical{--padding-top: var(--ion-padding, 16px);--padding-bottom: var(--ion-padding, 16px);padding-top:var(--ion-padding, 16px);padding-bottom:var(--ion-padding, 16px)}.ion-padding-horizontal{--padding-start: var(--ion-padding, 16px);--padding-end: var(--ion-padding, 16px);padding-inline-start:var(--ion-padding, 16px);padding-inline-end:var(--ion-padding, 16px)}.ion-no-margin{--margin-start: 0;--margin-end: 0;--margin-top: 0;--margin-bottom: 0;margin:0}.ion-margin{--margin-start: var(--ion-margin, 16px);--margin-end: var(--ion-margin, 16px);--margin-top: var(--ion-margin, 16px);--margin-bottom: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-top{--margin-top: var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px)}.ion-margin-start{--margin-start: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px)}.ion-margin-end{--margin-end: var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px)}.ion-margin-bottom{--margin-bottom: var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-vertical{--margin-top: var(--ion-margin, 16px);--margin-bottom: var(--ion-margin, 16px);margin-top:var(--ion-margin, 16px);margin-bottom:var(--ion-margin, 16px)}.ion-margin-horizontal{--margin-start: var(--ion-margin, 16px);--margin-end: var(--ion-margin, 16px);margin-inline-start:var(--ion-margin, 16px);margin-inline-end:var(--ion-margin, 16px)}.ion-float-left{float:left!important}.ion-float-right{float:right!important}.ion-float-start{float:left!important}:host-context([dir=rtl]) .ion-float-start{float:right!important}[dir=rtl] .ion-float-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-start:dir(rtl){float:right!important}}.ion-float-end{float:right!important}:host-context([dir=rtl]) .ion-float-end{float:left!important}[dir=rtl] .ion-float-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-end:dir(rtl){float:left!important}}@media (min-width: 576px){.ion-float-sm-left{float:left!important}.ion-float-sm-right{float:right!important}.ion-float-sm-start{float:left!important}:host-context([dir=rtl]) .ion-float-sm-start{float:right!important}[dir=rtl] .ion-float-sm-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-sm-start:dir(rtl){float:right!important}}.ion-float-sm-end{float:right!important}:host-context([dir=rtl]) .ion-float-sm-end{float:left!important}[dir=rtl] .ion-float-sm-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-sm-end:dir(rtl){float:left!important}}}@media (min-width: 768px){.ion-float-md-left{float:left!important}.ion-float-md-right{float:right!important}.ion-float-md-start{float:left!important}:host-context([dir=rtl]) .ion-float-md-start{float:right!important}[dir=rtl] .ion-float-md-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-md-start:dir(rtl){float:right!important}}.ion-float-md-end{float:right!important}:host-context([dir=rtl]) .ion-float-md-end{float:left!important}[dir=rtl] .ion-float-md-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-md-end:dir(rtl){float:left!important}}}@media (min-width: 992px){.ion-float-lg-left{float:left!important}.ion-float-lg-right{float:right!important}.ion-float-lg-start{float:left!important}:host-context([dir=rtl]) .ion-float-lg-start{float:right!important}[dir=rtl] .ion-float-lg-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-lg-start:dir(rtl){float:right!important}}.ion-float-lg-end{float:right!important}:host-context([dir=rtl]) .ion-float-lg-end{float:left!important}[dir=rtl] .ion-float-lg-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-lg-end:dir(rtl){float:left!important}}}@media (min-width: 1200px){.ion-float-xl-left{float:left!important}.ion-float-xl-right{float:right!important}.ion-float-xl-start{float:left!important}:host-context([dir=rtl]) .ion-float-xl-start{float:right!important}[dir=rtl] .ion-float-xl-start{float:right!important}@supports selector(:dir(rtl)){.ion-float-xl-start:dir(rtl){float:right!important}}.ion-float-xl-end{float:right!important}:host-context([dir=rtl]) .ion-float-xl-end{float:left!important}[dir=rtl] .ion-float-xl-end{float:left!important}@supports selector(:dir(rtl)){.ion-float-xl-end:dir(rtl){float:left!important}}}.ion-text-center{text-align:center!important}.ion-text-justify{text-align:justify!important}.ion-text-start{text-align:start!important}.ion-text-end{text-align:end!important}.ion-text-left{text-align:left!important}.ion-text-right{text-align:right!important}.ion-text-nowrap{white-space:nowrap!important}.ion-text-wrap{white-space:normal!important}@media (min-width: 576px){.ion-text-sm-center{text-align:center!important}.ion-text-sm-justify{text-align:justify!important}.ion-text-sm-start{text-align:start!important}.ion-text-sm-end{text-align:end!important}.ion-text-sm-left{text-align:left!important}.ion-text-sm-right{text-align:right!important}.ion-text-sm-nowrap{white-space:nowrap!important}.ion-text-sm-wrap{white-space:normal!important}}@media (min-width: 768px){.ion-text-md-center{text-align:center!important}.ion-text-md-justify{text-align:justify!important}.ion-text-md-start{text-align:start!important}.ion-text-md-end{text-align:end!important}.ion-text-md-left{text-align:left!important}.ion-text-md-right{text-align:right!important}.ion-text-md-nowrap{white-space:nowrap!important}.ion-text-md-wrap{white-space:normal!important}}@media (min-width: 992px){.ion-text-lg-center{text-align:center!important}.ion-text-lg-justify{text-align:justify!important}.ion-text-lg-start{text-align:start!important}.ion-text-lg-end{text-align:end!important}.ion-text-lg-left{text-align:left!important}.ion-text-lg-right{text-align:right!important}.ion-text-lg-nowrap{white-space:nowrap!important}.ion-text-lg-wrap{white-space:normal!important}}@media (min-width: 1200px){.ion-text-xl-center{text-align:center!important}.ion-text-xl-justify{text-align:justify!important}.ion-text-xl-start{text-align:start!important}.ion-text-xl-end{text-align:end!important}.ion-text-xl-left{text-align:left!important}.ion-text-xl-right{text-align:right!important}.ion-text-xl-nowrap{white-space:nowrap!important}.ion-text-xl-wrap{white-space:normal!important}}.ion-text-uppercase{text-transform:uppercase!important}.ion-text-lowercase{text-transform:lowercase!important}.ion-text-capitalize{text-transform:capitalize!important}@media (min-width: 576px){.ion-text-sm-uppercase{text-transform:uppercase!important}.ion-text-sm-lowercase{text-transform:lowercase!important}.ion-text-sm-capitalize{text-transform:capitalize!important}}@media (min-width: 768px){.ion-text-md-uppercase{text-transform:uppercase!important}.ion-text-md-lowercase{text-transform:lowercase!important}.ion-text-md-capitalize{text-transform:capitalize!important}}@media (min-width: 992px){.ion-text-lg-uppercase{text-transform:uppercase!important}.ion-text-lg-lowercase{text-transform:lowercase!important}.ion-text-lg-capitalize{text-transform:capitalize!important}}@media (min-width: 1200px){.ion-text-xl-uppercase{text-transform:uppercase!important}.ion-text-xl-lowercase{text-transform:lowercase!important}.ion-text-xl-capitalize{text-transform:capitalize!important}}.ion-align-self-start{align-self:flex-start!important}.ion-align-self-end{align-self:flex-end!important}.ion-align-self-center{align-self:center!important}.ion-align-self-stretch{align-self:stretch!important}.ion-align-self-baseline{align-self:baseline!important}.ion-align-self-auto{align-self:auto!important}.ion-wrap{flex-wrap:wrap!important}.ion-nowrap{flex-wrap:nowrap!important}.ion-wrap-reverse{flex-wrap:wrap-reverse!important}.ion-justify-content-start{justify-content:flex-start!important}.ion-justify-content-center{justify-content:center!important}.ion-justify-content-end{justify-content:flex-end!important}.ion-justify-content-around{justify-content:space-around!important}.ion-justify-content-between{justify-content:space-between!important}.ion-justify-content-evenly{justify-content:space-evenly!important}.ion-align-items-start{align-items:flex-start!important}.ion-align-items-center{align-items:center!important}.ion-align-items-end{align-items:flex-end!important}.ion-align-items-stretch{align-items:stretch!important}.ion-align-items-baseline{align-items:baseline!important}:root{--ion-color-primary: #4d8dff;--ion-color-primary-rgb: 77, 141, 255;--ion-color-primary-contrast: #000;--ion-color-primary-contrast-rgb: 0, 0, 0;--ion-color-primary-shade: #447ce0;--ion-color-primary-tint: #5f98ff;--ion-color-secondary: #46b1ff;--ion-color-secondary-rgb: 70, 177, 255;--ion-color-secondary-contrast: #000;--ion-color-secondary-contrast-rgb: 0, 0, 0;--ion-color-secondary-shade: #3e9ce0;--ion-color-secondary-tint: #59b9ff;--ion-color-tertiary: #8482fb;--ion-color-tertiary-rgb: 132, 130, 251;--ion-color-tertiary-contrast: #000;--ion-color-tertiary-contrast-rgb: 0, 0, 0;--ion-color-tertiary-shade: #7472dd;--ion-color-tertiary-tint: #908ffb;--ion-color-success: #2dd55b;--ion-color-success-rgb: 45, 213, 91;--ion-color-success-contrast: #000;--ion-color-success-contrast-rgb: 0, 0, 0;--ion-color-success-shade: #28bb50;--ion-color-success-tint: #42d96b;--ion-color-warning: #ffce31;--ion-color-warning-rgb: 255, 206, 49;--ion-color-warning-contrast: #000;--ion-color-warning-contrast-rgb: 0, 0, 0;--ion-color-warning-shade: #e0b52b;--ion-color-warning-tint: #ffd346;--ion-color-danger: #f24c58;--ion-color-danger-rgb: 242, 76, 88;--ion-color-danger-contrast: #000;--ion-color-danger-contrast-rgb: 0, 0, 0;--ion-color-danger-shade: #d5434d;--ion-color-danger-tint: #f35e69;--ion-color-light: #222428;--ion-color-light-rgb: 34, 36, 40;--ion-color-light-contrast: #fff;--ion-color-light-contrast-rgb: 255, 255, 255;--ion-color-light-shade: #1e2023;--ion-color-light-tint: #383a3e;--ion-color-medium: #989aa2;--ion-color-medium-rgb: 152, 154, 162;--ion-color-medium-contrast: #000;--ion-color-medium-contrast-rgb: 0, 0, 0;--ion-color-medium-shade: #86888f;--ion-color-medium-tint: #a2a4ab;--ion-color-dark: #f4f5f8;--ion-color-dark-rgb: 244, 245, 248;--ion-color-dark-contrast: #000;--ion-color-dark-contrast-rgb: 0, 0, 0;--ion-color-dark-shade: #d7d8da;--ion-color-dark-tint: #f5f6f9}:root.ios{--ion-background-color: #000000;--ion-background-color-rgb: 0, 0, 0;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-background-color-step-50: #0d0d0d;--ion-background-color-step-100: #1a1a1a;--ion-background-color-step-150: #262626;--ion-background-color-step-200: #333333;--ion-background-color-step-250: #404040;--ion-background-color-step-300: #4d4d4d;--ion-background-color-step-350: #595959;--ion-background-color-step-400: #666666;--ion-background-color-step-450: #737373;--ion-background-color-step-500: #808080;--ion-background-color-step-550: #8c8c8c;--ion-background-color-step-600: #999999;--ion-background-color-step-650: #a6a6a6;--ion-background-color-step-700: #b3b3b3;--ion-background-color-step-750: #bfbfbf;--ion-background-color-step-800: #cccccc;--ion-background-color-step-850: #d9d9d9;--ion-background-color-step-900: #e6e6e6;--ion-background-color-step-950: #f2f2f2;--ion-text-color-step-50: #f2f2f2;--ion-text-color-step-100: #e6e6e6;--ion-text-color-step-150: #d9d9d9;--ion-text-color-step-200: #cccccc;--ion-text-color-step-250: #bfbfbf;--ion-text-color-step-300: #b3b3b3;--ion-text-color-step-350: #a6a6a6;--ion-text-color-step-400: #999999;--ion-text-color-step-450: #8c8c8c;--ion-text-color-step-500: #808080;--ion-text-color-step-550: #737373;--ion-text-color-step-600: #666666;--ion-text-color-step-650: #595959;--ion-text-color-step-700: #4d4d4d;--ion-text-color-step-750: #404040;--ion-text-color-step-800: #333333;--ion-text-color-step-850: #262626;--ion-text-color-step-900: #1a1a1a;--ion-text-color-step-950: #0d0d0d;--ion-item-background: #000000;--ion-card-background: #1c1c1d}:root.ios ion-modal{--ion-background-color: var(--ion-color-step-100, var(--ion-background-color-step-100));--ion-toolbar-background: var(--ion-color-step-150, var(--ion-background-color-step-150));--ion-toolbar-border-color: var(--ion-color-step-250, var(--ion-background-color-step-250))}:root.md{--ion-background-color: #121212;--ion-background-color-rgb: 18, 18, 18;--ion-text-color: #ffffff;--ion-text-color-rgb: 255, 255, 255;--ion-background-color-step-50: #1e1e1e;--ion-background-color-step-100: #2a2a2a;--ion-background-color-step-150: #363636;--ion-background-color-step-200: #414141;--ion-background-color-step-250: #4d4d4d;--ion-background-color-step-300: #595959;--ion-background-color-step-350: #656565;--ion-background-color-step-400: #717171;--ion-background-color-step-450: #7d7d7d;--ion-background-color-step-500: #898989;--ion-background-color-step-550: #949494;--ion-background-color-step-600: #a0a0a0;--ion-background-color-step-650: #acacac;--ion-background-color-step-700: #b8b8b8;--ion-background-color-step-750: #c4c4c4;--ion-background-color-step-800: #d0d0d0;--ion-background-color-step-850: #dbdbdb;--ion-background-color-step-900: #e7e7e7;--ion-background-color-step-950: #f3f3f3;--ion-text-color-step-50: #f3f3f3;--ion-text-color-step-100: #e7e7e7;--ion-text-color-step-150: #dbdbdb;--ion-text-color-step-200: #d0d0d0;--ion-text-color-step-250: #c4c4c4;--ion-text-color-step-300: #b8b8b8;--ion-text-color-step-350: #acacac;--ion-text-color-step-400: #a0a0a0;--ion-text-color-step-450: #949494;--ion-text-color-step-500: #898989;--ion-text-color-step-550: #7d7d7d;--ion-text-color-step-600: #717171;--ion-text-color-step-650: #656565;--ion-text-color-step-700: #595959;--ion-text-color-step-750: #4d4d4d;--ion-text-color-step-800: #414141;--ion-text-color-step-850: #363636;--ion-text-color-step-900: #2a2a2a;--ion-text-color-step-950: #1e1e1e;--ion-item-background: #1e1e1e;--ion-toolbar-background: #1f1f1f;--ion-tab-bar-background: #1f1f1f;--ion-card-background: #1e1e1e}.leaflet-pane,.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-tile-container,.leaflet-pane>svg,.leaflet-pane>canvas,.leaflet-zoom-box,.leaflet-image-layer,.leaflet-layer{position:absolute;left:0;top:0}.leaflet-container{overflow:hidden}.leaflet-tile,.leaflet-marker-icon,.leaflet-marker-shadow{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}.leaflet-tile::selection{background:transparent}.leaflet-safari .leaflet-tile{image-rendering:-webkit-optimize-contrast}.leaflet-safari .leaflet-tile-container{width:1600px;height:1600px;-webkit-transform-origin:0 0}.leaflet-marker-icon,.leaflet-marker-shadow{display:block}.leaflet-container .leaflet-overlay-pane svg{max-width:none!important;max-height:none!important}.leaflet-container .leaflet-marker-pane img,.leaflet-container .leaflet-shadow-pane img,.leaflet-container .leaflet-tile-pane img,.leaflet-container img.leaflet-image-layer,.leaflet-container .leaflet-tile{max-width:none!important;max-height:none!important;width:auto;padding:0}.leaflet-container img.leaflet-tile{mix-blend-mode:plus-lighter}.leaflet-container.leaflet-touch-zoom{touch-action:pan-x pan-y}.leaflet-container.leaflet-touch-drag{touch-action:none;touch-action:pinch-zoom}.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom{touch-action:none}.leaflet-container{-webkit-tap-highlight-color:transparent}.leaflet-container a{-webkit-tap-highlight-color:rgba(51,181,229,.4)}.leaflet-tile{filter:inherit;visibility:hidden}.leaflet-tile-loaded{visibility:inherit}.leaflet-zoom-box{width:0;height:0;box-sizing:border-box;z-index:800}.leaflet-overlay-pane svg{-moz-user-select:none}.leaflet-pane{z-index:400}.leaflet-tile-pane{z-index:200}.leaflet-overlay-pane{z-index:400}.leaflet-shadow-pane{z-index:500}.leaflet-marker-pane{z-index:600}.leaflet-tooltip-pane{z-index:650}.leaflet-popup-pane{z-index:700}.leaflet-map-pane canvas{z-index:100}.leaflet-map-pane svg{z-index:200}.leaflet-vml-shape{width:1px;height:1px}.lvml{behavior:url(#default#VML);display:inline-block;position:absolute}.leaflet-control{position:relative;z-index:800;pointer-events:visiblePainted;pointer-events:auto}.leaflet-top,.leaflet-bottom{position:absolute;z-index:1000;pointer-events:none}.leaflet-top{top:0}.leaflet-right{right:0}.leaflet-bottom{bottom:0}.leaflet-left{left:0}.leaflet-control{float:left;clear:both}.leaflet-right .leaflet-control{float:right}.leaflet-top .leaflet-control{margin-top:10px}.leaflet-bottom .leaflet-control{margin-bottom:10px}.leaflet-left .leaflet-control{margin-left:10px}.leaflet-right .leaflet-control{margin-right:10px}.leaflet-fade-anim .leaflet-popup{opacity:0;transition:opacity .2s linear}.leaflet-fade-anim .leaflet-map-pane .leaflet-popup{opacity:1}.leaflet-zoom-animated{transform-origin:0 0}svg.leaflet-zoom-animated{will-change:transform}.leaflet-zoom-anim .leaflet-zoom-animated{transition:transform .25s cubic-bezier(0,0,.25,1)}.leaflet-zoom-anim .leaflet-tile,.leaflet-pan-anim .leaflet-tile{transition:none}.leaflet-zoom-anim .leaflet-zoom-hide{visibility:hidden}.leaflet-interactive{cursor:pointer}.leaflet-grab{cursor:grab}.leaflet-crosshair,.leaflet-crosshair .leaflet-interactive{cursor:crosshair}.leaflet-popup-pane,.leaflet-control{cursor:auto}.leaflet-dragging .leaflet-grab,.leaflet-dragging .leaflet-grab .leaflet-interactive,.leaflet-dragging .leaflet-marker-draggable{cursor:move;cursor:grabbing}.leaflet-marker-icon,.leaflet-marker-shadow,.leaflet-image-layer,.leaflet-pane>svg path,.leaflet-tile-container{pointer-events:none}.leaflet-marker-icon.leaflet-interactive,.leaflet-image-layer.leaflet-interactive,.leaflet-pane>svg path.leaflet-interactive,svg.leaflet-image-layer.leaflet-interactive path{pointer-events:visiblePainted;pointer-events:auto}.leaflet-container{background:#ddd;outline-offset:1px}.leaflet-container a{color:#0078a8}.leaflet-zoom-box{border:2px dotted #38f;background:#ffffff80}.leaflet-container{font-family:Helvetica Neue,Arial,Helvetica,sans-serif;font-size:12px;font-size:.75rem;line-height:1.5}.leaflet-bar{box-shadow:0 1px 5px #000000a6;border-radius:4px}.leaflet-bar a{background-color:#fff;border-bottom:1px solid #ccc;width:26px;height:26px;line-height:26px;display:block;text-align:center;text-decoration:none;color:#000}.leaflet-bar a,.leaflet-control-layers-toggle{background-position:50% 50%;background-repeat:no-repeat;display:block}.leaflet-bar a:hover,.leaflet-bar a:focus{background-color:#f4f4f4}.leaflet-bar a:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.leaflet-bar a:last-child{border-bottom-left-radius:4px;border-bottom-right-radius:4px;border-bottom:none}.leaflet-bar a.leaflet-disabled{cursor:default;background-color:#f4f4f4;color:#bbb}.leaflet-touch .leaflet-bar a{width:30px;height:30px;line-height:30px}.leaflet-touch .leaflet-bar a:first-child{border-top-left-radius:2px;border-top-right-radius:2px}.leaflet-touch .leaflet-bar a:last-child{border-bottom-left-radius:2px;border-bottom-right-radius:2px}.leaflet-control-zoom-in,.leaflet-control-zoom-out{font:700 18px Lucida Console,Monaco,monospace;text-indent:1px}.leaflet-touch .leaflet-control-zoom-in,.leaflet-touch .leaflet-control-zoom-out{font-size:22px}.leaflet-control-layers{box-shadow:0 1px 5px #0006;background:#fff;border-radius:5px}.leaflet-control-layers-toggle{background-image:url(layers.ef6db8722c2c3f9a.png);width:36px;height:36px}.leaflet-retina .leaflet-control-layers-toggle{background-image:url(layers-2x.9859cd1231006a4a.png);background-size:26px 26px}.leaflet-touch .leaflet-control-layers-toggle{width:44px;height:44px}.leaflet-control-layers .leaflet-control-layers-list,.leaflet-control-layers-expanded .leaflet-control-layers-toggle{display:none}.leaflet-control-layers-expanded .leaflet-control-layers-list{display:block;position:relative}.leaflet-control-layers-expanded{padding:6px 10px 6px 6px;color:#333;background:#fff}.leaflet-control-layers-scrollbar{overflow-y:scroll;overflow-x:hidden;padding-right:5px}.leaflet-control-layers-selector{margin-top:2px;position:relative;top:1px}.leaflet-control-layers label{display:block;font-size:13px;font-size:1.08333em}.leaflet-control-layers-separator{height:0;border-top:1px solid #ddd;margin:5px -10px 5px -6px}.leaflet-default-icon-path{background-image:url(marker-icon.d577052aa271e13f.png)}.leaflet-container .leaflet-control-attribution{background:#fff;background:#fffc;margin:0}.leaflet-control-attribution,.leaflet-control-scale-line{padding:0 5px;color:#333;line-height:1.4}.leaflet-control-attribution a{text-decoration:none}.leaflet-control-attribution a:hover,.leaflet-control-attribution a:focus{text-decoration:underline}.leaflet-attribution-flag{display:inline!important;vertical-align:baseline!important;width:1em;height:.6669em}.leaflet-left .leaflet-control-scale{margin-left:5px}.leaflet-bottom .leaflet-control-scale{margin-bottom:5px}.leaflet-control-scale-line{border:2px solid #777;border-top:none;line-height:1.1;padding:2px 5px 1px;white-space:nowrap;box-sizing:border-box;background:#fffc;text-shadow:1px 1px #fff}.leaflet-control-scale-line:not(:first-child){border-top:2px solid #777;border-bottom:none;margin-top:-2px}.leaflet-control-scale-line:not(:first-child):not(:last-child){border-bottom:2px solid #777}.leaflet-touch .leaflet-control-attribution,.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{box-shadow:none}.leaflet-touch .leaflet-control-layers,.leaflet-touch .leaflet-bar{border:2px solid rgba(0,0,0,.2);background-clip:padding-box}.leaflet-popup{position:absolute;text-align:center;margin-bottom:20px}.leaflet-popup-content-wrapper{padding:1px;text-align:left;border-radius:12px}.leaflet-popup-content{margin:13px 24px 13px 20px;line-height:1.3;font-size:13px;font-size:1.08333em;min-height:1px}.leaflet-popup-content p{margin:1.3em 0}.leaflet-popup-tip-container{width:40px;height:20px;position:absolute;left:50%;margin-top:-1px;margin-left:-20px;overflow:hidden;pointer-events:none}.leaflet-popup-tip{width:17px;height:17px;padding:1px;margin:-10px auto 0;pointer-events:auto;transform:rotate(45deg)}.leaflet-popup-content-wrapper,.leaflet-popup-tip{background:#fff;color:#333;box-shadow:0 3px 14px #0006}.leaflet-container a.leaflet-popup-close-button{position:absolute;top:0;right:0;border:none;text-align:center;width:24px;height:24px;font:16px/24px Tahoma,Verdana,sans-serif;color:#757575;text-decoration:none;background:transparent}.leaflet-container a.leaflet-popup-close-button:hover,.leaflet-container a.leaflet-popup-close-button:focus{color:#585858}.leaflet-popup-scrolled{overflow:auto}.leaflet-oldie .leaflet-popup-content-wrapper{-ms-zoom:1}.leaflet-oldie .leaflet-popup-tip{width:24px;margin:0 auto;-ms-filter:"progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";filter:progid:DXImageTransform.Microsoft.Matrix(M11=.70710678,M12=.70710678,M21=-.70710678,M22=.70710678)}.leaflet-oldie .leaflet-control-zoom,.leaflet-oldie .leaflet-control-layers,.leaflet-oldie .leaflet-popup-content-wrapper,.leaflet-oldie .leaflet-popup-tip{border:1px solid #999}.leaflet-div-icon{background:#fff;border:1px solid #666}.leaflet-tooltip{position:absolute;padding:6px;background-color:#fff;border:1px solid #fff;border-radius:3px;color:#222;white-space:nowrap;-webkit-user-select:none;user-select:none;pointer-events:none;box-shadow:0 1px 3px #0006}.leaflet-tooltip.leaflet-interactive{cursor:pointer;pointer-events:auto}.leaflet-tooltip-top:before,.leaflet-tooltip-bottom:before,.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{position:absolute;pointer-events:none;border:6px solid transparent;background:transparent;content:""}.leaflet-tooltip-bottom{margin-top:6px}.leaflet-tooltip-top{margin-top:-6px}.leaflet-tooltip-bottom:before,.leaflet-tooltip-top:before{left:50%;margin-left:-6px}.leaflet-tooltip-top:before{bottom:0;margin-bottom:-12px;border-top-color:#fff}.leaflet-tooltip-bottom:before{top:0;margin-top:-12px;margin-left:-6px;border-bottom-color:#fff}.leaflet-tooltip-left{margin-left:-6px}.leaflet-tooltip-right{margin-left:6px}.leaflet-tooltip-left:before,.leaflet-tooltip-right:before{top:50%;margin-top:-6px}.leaflet-tooltip-left:before{right:0;margin-right:-12px;border-left-color:#fff}.leaflet-tooltip-right:before{left:0;margin-left:-12px;border-right-color:#fff}@media print{.leaflet-control{-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}}*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:#e5e7eb}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;tab-size:4;font-family:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]{display:none}*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }.container{width:100%}@media (min-width: 640px){.container{max-width:640px}}@media (min-width: 768px){.container{max-width:768px}}@media (min-width: 1024px){.container{max-width:1024px}}@media (min-width: 1280px){.container{max-width:1280px}}@media (min-width: 1536px){.container{max-width:1536px}}.visible{visibility:visible}.collapse{visibility:collapse}.static{position:static}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.bottom-0{bottom:0}.right-0{right:0}.z-10{z-index:10}.z-50{z-index:50}.m-1{margin:.25rem}.m-2{margin:.5rem}.m-4{margin:1rem}.m-5{margin:1.25rem}.m-6{margin:1.5rem}.mb-10{margin-bottom:2.5rem}.mb-2{margin-bottom:.5rem}.mb-6{margin-bottom:1.5rem}.ml-10{margin-left:2.5rem}.ml-auto{margin-left:auto}.mr-10{margin-right:2.5rem}.mt-10{margin-top:2.5rem}.mt-2{margin-top:.5rem}.mt-auto{margin-top:auto}.block{display:block}.flex{display:flex}.grid{display:grid}.hidden{display:none}.h-12{height:3rem}.h-48{height:12rem}.h-60{height:15rem}.h-96{height:24rem}.h-\[25em\]{height:25em}.h-full{height:100%}.min-h-full{min-height:100%}.w-1\/2{width:50%}.w-1\/3{width:33.333333%}.w-1\/6{width:16.666667%}.w-12{width:3rem}.w-2\/3{width:66.666667%}.w-full{width:100%}.min-w-full{min-width:100%}.flex-grow{flex-grow:1}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.flex-row{flex-direction:row}.flex-col{flex-direction:column}.items-start{align-items:flex-start}.items-end{align-items:flex-end}.items-center{align-items:center}.justify-start{justify-content:flex-start}.justify-end{justify-content:flex-end}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.self-start{align-self:flex-start}.self-end{align-self:flex-end}.overflow-y-auto{overflow-y:auto}.rounded-2xl{border-radius:1rem}.rounded-3xl{border-radius:1.5rem}.rounded-full{border-radius:9999px}.rounded-b-lg{border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-b-none{border-bottom-right-radius:0;border-bottom-left-radius:0}.rounded-l-lg{border-top-left-radius:.5rem;border-bottom-left-radius:.5rem}.rounded-r-lg{border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}.rounded-t-lg{border-top-left-radius:.5rem;border-top-right-radius:.5rem}.rounded-t-none{border-top-left-radius:0;border-top-right-radius:0}.rounded-tl-2xl{border-top-left-radius:1rem}.rounded-tr-2xl{border-top-right-radius:1rem}.bg-black{--tw-bg-opacity: 1;background-color:rgb(0 0 0 / var(--tw-bg-opacity))}.bg-cyan-800{--tw-bg-opacity: 1;background-color:rgb(21 94 117 / var(--tw-bg-opacity))}.bg-gray-400{--tw-bg-opacity: 1;background-color:rgb(156 163 175 / var(--tw-bg-opacity))}.bg-gray-500{--tw-bg-opacity: 1;background-color:rgb(107 114 128 / var(--tw-bg-opacity))}.bg-gray-600{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}.bg-gray-700{--tw-bg-opacity: 1;background-color:rgb(55 65 81 / var(--tw-bg-opacity))}.bg-gray-800{--tw-bg-opacity: 1;background-color:rgb(31 41 55 / var(--tw-bg-opacity))}.bg-gray-900{--tw-bg-opacity: 1;background-color:rgb(17 24 39 / var(--tw-bg-opacity))}.bg-purple-300{--tw-bg-opacity: 1;background-color:rgb(216 180 254 / var(--tw-bg-opacity))}.bg-purple-400{--tw-bg-opacity: 1;background-color:rgb(192 132 252 / var(--tw-bg-opacity))}.bg-purple-600{--tw-bg-opacity: 1;background-color:rgb(147 51 234 / var(--tw-bg-opacity))}.bg-purple-800{--tw-bg-opacity: 1;background-color:rgb(107 33 168 / var(--tw-bg-opacity))}.bg-red-600{--tw-bg-opacity: 1;background-color:rgb(220 38 38 / var(--tw-bg-opacity))}.bg-transparent{background-color:transparent}.bg-white{--tw-bg-opacity: 1;background-color:rgb(255 255 255 / var(--tw-bg-opacity))}.bg-opacity-60{--tw-bg-opacity: .6}.p-1{padding:.25rem}.p-10{padding:2.5rem}.p-2{padding:.5rem}.p-3{padding:.75rem}.p-4{padding:1rem}.p-5{padding:1.25rem}.p-6{padding:1.5rem}.p-8{padding:2rem}.pb-5{padding-bottom:1.25rem}.pl-1{padding-left:.25rem}.pr-1{padding-right:.25rem}.pr-2{padding-right:.5rem}.text-right{text-align:right}.text-2xl{font-size:1.5rem;line-height:2rem}.text-3xl{font-size:1.875rem;line-height:2.25rem}.text-4xl{font-size:2.25rem;line-height:2.5rem}.text-5xl{font-size:3rem;line-height:1}.text-6xl{font-size:3.75rem;line-height:1}.text-sm{font-size:.875rem;line-height:1.25rem}.text-xl{font-size:1.25rem;line-height:1.75rem}.text-xs{font-size:.75rem;line-height:1rem}.font-bold{font-weight:700}.text-blue-500{--tw-text-opacity: 1;color:rgb(59 130 246 / var(--tw-text-opacity))}.text-green-600{--tw-text-opacity: 1;color:rgb(22 163 74 / var(--tw-text-opacity))}.text-green-800{--tw-text-opacity: 1;color:rgb(22 101 52 / var(--tw-text-opacity))}.text-red-800{--tw-text-opacity: 1;color:rgb(153 27 27 / var(--tw-text-opacity))}.text-white{--tw-text-opacity: 1;color:rgb(255 255 255 / var(--tw-text-opacity))}.text-yellow-600{--tw-text-opacity: 1;color:rgb(202 138 4 / var(--tw-text-opacity))}.text-yellow-800{--tw-text-opacity: 1;color:rgb(133 77 14 / var(--tw-text-opacity))}.outline{outline-style:solid}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.hover\:bg-gray-300:hover{--tw-bg-opacity: 1;background-color:rgb(209 213 219 / var(--tw-bg-opacity))}.hover\:bg-gray-600:hover{--tw-bg-opacity: 1;background-color:rgb(75 85 99 / var(--tw-bg-opacity))}@media (min-width: 768px){.md\:m-10{margin:2.5rem}.md\:flex{display:flex}.md\:hidden{display:none}.md\:h-3\/4{height:75%}.md\:h-full{height:100%}.md\:flex-row{flex-direction:row}.md\:justify-end{justify-content:flex-end}.md\:p-4{padding:1rem}.md\:text-2xl{font-size:1.5rem;line-height:2rem}}@media (min-width: 1024px){.lg\:m-10{margin:2.5rem}.lg\:ml-2{margin-left:.5rem}.lg\:block{display:block}.lg\:flex{display:flex}.lg\:hidden{display:none}.lg\:h-3\/4{height:75%}.lg\:h-96{height:24rem}.lg\:h-full{height:100%}.lg\:min-w-20{min-width:5rem}.lg\:flex-row{flex-direction:row}.lg\:justify-center{justify-content:center}.lg\:p-32{padding:8rem}.lg\:p-4{padding:1rem}.lg\:text-2xl{font-size:1.5rem;line-height:2rem}.lg\:text-6xl{font-size:3.75rem;line-height:1}.lg\:text-lg{font-size:1.125rem;line-height:1.75rem}}:root{--ion-color-ai_purple: #9d68be;--ion-color-ai_purple-rgb: 157,104,190;--ion-color-ai_purple-contrast: #000000;--ion-color-ai_purple-contrast-rgb: 0,0,0;--ion-color-ai_purple-shade: #8a5ca7;--ion-color-ai_purple-tint: #a777c5}.ion-color-ai_purple{--ion-color-base: var(--ion-color-ai_purple);--ion-color-base-rgb: var(--ion-color-ai_purple-rgb);--ion-color-contrast: var(--ion-color-ai_purple-contrast);--ion-color-contrast-rgb: var(--ion-color-ai_purple-contrast-rgb);--ion-color-shade: var(--ion-color-ai_purple-shade);--ion-color-tint: var(--ion-color-ai_purple-tint)}