From 6c9c7c0fef430635c0916a1a92b9dbe5e2099800 Mon Sep 17 00:00:00 2001 From: Weebo Date: Tue, 26 Apr 2022 16:42:16 +0100 Subject: [PATCH 1/8] In progress --- DeveloperTest.sln | 31 +- DeveloperTest/DeveloperTest.csproj | 8 +- DeveloperTest/Models/BaseCustomerModel.cs | 9 + DeveloperTest/Models/CustomerModel.cs | 10 + ui/package-lock.json | 1308 ++++++++++++------- ui/src/app/app-routing.module.ts | 2 + ui/src/app/customer/customer.component.html | 10 + ui/src/app/job/job.component.html | 36 +- ui/src/app/models/customer.model.ts | 5 + ui/src/app/services/customer.service.ts | 24 + ui/src/app/services/type.service.ts | 15 + 11 files changed, 957 insertions(+), 501 deletions(-) create mode 100644 DeveloperTest/Models/BaseCustomerModel.cs create mode 100644 DeveloperTest/Models/CustomerModel.cs create mode 100644 ui/src/app/customer/customer.component.html create mode 100644 ui/src/app/models/customer.model.ts create mode 100644 ui/src/app/services/customer.service.ts create mode 100644 ui/src/app/services/type.service.ts diff --git a/DeveloperTest.sln b/DeveloperTest.sln index a8b5d77..072ba43 100644 --- a/DeveloperTest.sln +++ b/DeveloperTest.sln @@ -1,9 +1,30 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio Version 16 -VisualStudioVersion = 16.0.29806.167 +# Visual Studio Version 17 +VisualStudioVersion = 17.1.32407.343 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "DeveloperTest", "DeveloperTest\DeveloperTest.csproj", "{1D4CF36B-FE89-404A-867A-4986AB960BD1}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DeveloperTest", "DeveloperTest\DeveloperTest.csproj", "{1D4CF36B-FE89-404A-867A-4986AB960BD1}" +EndProject +Project("{E24C65DC-7377-472B-9ABA-BC803B73C61A}") = "ui", "ui\", "{4029FB3E-93A6-4943-8D0D-8141DE73AD6B}" + ProjectSection(WebsiteProperties) = preProject + TargetFrameworkMoniker = ".NETFramework,Version%3Dv4.0" + Debug.AspNetCompiler.VirtualPath = "/localhost_54959" + Debug.AspNetCompiler.PhysicalPath = "ui\" + Debug.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_54959\" + Debug.AspNetCompiler.Updateable = "true" + Debug.AspNetCompiler.ForceOverwrite = "true" + Debug.AspNetCompiler.FixedNames = "false" + Debug.AspNetCompiler.Debug = "True" + Release.AspNetCompiler.VirtualPath = "/localhost_54959" + Release.AspNetCompiler.PhysicalPath = "ui\" + Release.AspNetCompiler.TargetPath = "PrecompiledWeb\localhost_54959\" + Release.AspNetCompiler.Updateable = "true" + Release.AspNetCompiler.ForceOverwrite = "true" + Release.AspNetCompiler.FixedNames = "false" + Release.AspNetCompiler.Debug = "False" + VWDPort = "54959" + SlnRelativePath = "ui\" + EndProjectSection EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -15,6 +36,10 @@ Global {1D4CF36B-FE89-404A-867A-4986AB960BD1}.Debug|Any CPU.Build.0 = Debug|Any CPU {1D4CF36B-FE89-404A-867A-4986AB960BD1}.Release|Any CPU.ActiveCfg = Release|Any CPU {1D4CF36B-FE89-404A-867A-4986AB960BD1}.Release|Any CPU.Build.0 = Release|Any CPU + {4029FB3E-93A6-4943-8D0D-8141DE73AD6B}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {4029FB3E-93A6-4943-8D0D-8141DE73AD6B}.Debug|Any CPU.Build.0 = Debug|Any CPU + {4029FB3E-93A6-4943-8D0D-8141DE73AD6B}.Release|Any CPU.ActiveCfg = Debug|Any CPU + {4029FB3E-93A6-4943-8D0D-8141DE73AD6B}.Release|Any CPU.Build.0 = Debug|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/DeveloperTest/DeveloperTest.csproj b/DeveloperTest/DeveloperTest.csproj index cb8732d..f40e84a 100644 --- a/DeveloperTest/DeveloperTest.csproj +++ b/DeveloperTest/DeveloperTest.csproj @@ -5,13 +5,13 @@ - - - + + + all runtime; build; native; contentfiles; analyzers; buildtransitive - + diff --git a/DeveloperTest/Models/BaseCustomerModel.cs b/DeveloperTest/Models/BaseCustomerModel.cs new file mode 100644 index 0000000..f47f49e --- /dev/null +++ b/DeveloperTest/Models/BaseCustomerModel.cs @@ -0,0 +1,9 @@ +namespace DeveloperTest.Models +{ + public class BaseCustomerModel + { + public string Name { get; set; } + + public string Type { get; set; } + } +} diff --git a/DeveloperTest/Models/CustomerModel.cs b/DeveloperTest/Models/CustomerModel.cs new file mode 100644 index 0000000..8032610 --- /dev/null +++ b/DeveloperTest/Models/CustomerModel.cs @@ -0,0 +1,10 @@ +namespace DeveloperTest.Models +{ + public class CustomerModel + { + public int CustomerId { get; set; } + public string Name { get; set; } + + public string Type { get; set; } + } +} diff --git a/ui/package-lock.json b/ui/package-lock.json index abc8434..644acf1 100644 --- a/ui/package-lock.json +++ b/ui/package-lock.json @@ -57,12 +57,12 @@ } }, "node_modules/@angular-devkit/architect": { - "version": "0.1302.1", - "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1302.1.tgz", - "integrity": "sha512-h5LA1VTmWKLLzYvnLPqwdyLI9l43FVIUflvmDf6s2ScTrVf3Bb7B4KkCBDdNa8FxnBitfFqKJBf6RGcKjjeDcw==", + "version": "0.1302.6", + "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1302.6.tgz", + "integrity": "sha512-NztzorUMfwJeRaT7SY00Y8WSqc2lQYuF11yNoyEm7Dae3V7VZ28rW2Z9RwibP27rYQL0RjSMaz2wKITHX2vOAw==", "dev": true, "dependencies": { - "@angular-devkit/core": "13.2.1", + "@angular-devkit/core": "13.2.6", "rxjs": "6.6.7" }, "engines": { @@ -72,15 +72,15 @@ } }, "node_modules/@angular-devkit/build-angular": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-13.2.1.tgz", - "integrity": "sha512-bK1fXqtE/By9cybmVp7oFbCKoI6y9AlZO3k/k7AsyMgLtKL1YYLPN93Tq6L99W+zFI9+8V7x5bjuXWiexA63DA==", + "version": "13.2.6", + "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-13.2.6.tgz", + "integrity": "sha512-Y2ojy6xbZ0kwScppcutLHBP8eW0qNOjburTISSBU/L5l/9FOeZ1E7yAreKuVu/qibZiLbSJfAhk+SLwhRHFSSQ==", "dev": true, "dependencies": { "@ampproject/remapping": "1.1.1", - "@angular-devkit/architect": "0.1302.1", - "@angular-devkit/build-webpack": "0.1302.1", - "@angular-devkit/core": "13.2.1", + "@angular-devkit/architect": "0.1302.6", + "@angular-devkit/build-webpack": "0.1302.6", + "@angular-devkit/core": "13.2.6", "@babel/core": "7.16.12", "@babel/generator": "7.16.8", "@babel/helper-annotate-as-pure": "7.16.7", @@ -91,7 +91,7 @@ "@babel/runtime": "7.16.7", "@babel/template": "7.16.7", "@discoveryjs/json-ext": "0.5.6", - "@ngtools/webpack": "13.2.1", + "@ngtools/webpack": "13.2.6", "ansi-colors": "4.1.1", "babel-loader": "8.2.3", "babel-plugin-istanbul": "6.1.1", @@ -102,7 +102,7 @@ "core-js": "3.20.3", "critters": "0.0.16", "css-loader": "6.5.1", - "esbuild-wasm": "0.14.14", + "esbuild-wasm": "0.14.22", "glob": "7.2.0", "https-proxy-agent": "5.0.0", "inquirer": "8.2.0", @@ -110,7 +110,7 @@ "karma-source-map-support": "1.4.0", "less": "4.1.2", "less-loader": "10.2.0", - "license-webpack-plugin": "4.0.0", + "license-webpack-plugin": "4.0.2", "loader-utils": "3.2.0", "mini-css-extract-plugin": "2.5.3", "minimatch": "3.0.4", @@ -132,7 +132,7 @@ "source-map-support": "0.5.21", "stylus": "0.56.0", "stylus-loader": "6.2.0", - "terser": "5.10.0", + "terser": "5.11.0", "text-table": "0.2.0", "tree-kill": "1.2.2", "tslib": "2.3.1", @@ -148,7 +148,7 @@ "yarn": ">= 1.13.0" }, "optionalDependencies": { - "esbuild": "0.14.14" + "esbuild": "0.14.22" }, "peerDependencies": { "@angular/compiler-cli": "^13.0.0", @@ -188,12 +188,12 @@ "dev": true }, "node_modules/@angular-devkit/build-webpack": { - "version": "0.1302.1", - "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1302.1.tgz", - "integrity": "sha512-MYWGqXK42ksnhArLjycPfwxGh7fsR87LRL4yV3e2EfGl07s7mAnohnRhyAs8o8lxRHQU4+yBs9JnMWRcqqqp2A==", + "version": "0.1302.6", + "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1302.6.tgz", + "integrity": "sha512-TYEh2n9tPe932rEIgdiSpojOqtDppW2jzb/empVqCkLF7WUZsXKvTanttZC34L6R2VD6SAGWhb6JDg75ghUVYA==", "dev": true, "dependencies": { - "@angular-devkit/architect": "0.1302.1", + "@angular-devkit/architect": "0.1302.6", "rxjs": "6.6.7" }, "engines": { @@ -207,9 +207,9 @@ } }, "node_modules/@angular-devkit/core": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-13.2.1.tgz", - "integrity": "sha512-yR+FJq/RfthPmK0LtPIjj6mZLzLGMQ137yyOljsRgHoFhLxtluz9FdjyAk+61rP0LxH3FCt4qRWa9jd7+oBJxw==", + "version": "13.2.6", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-13.2.6.tgz", + "integrity": "sha512-8h2mWdBTN/dYwZuzKMg2IODlOWMdbJcpQG4XVrkk9ejCPP+3aX5Aa3glCe/voN6eBNiRfs8YDM0jxmpN2aWVtg==", "dependencies": { "ajv": "8.9.0", "ajv-formats": "2.1.1", @@ -233,11 +233,11 @@ } }, "node_modules/@angular-devkit/schematics": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-13.2.1.tgz", - "integrity": "sha512-vEQnQfO1IrsWd8VneqGBSbunClP0nQwDAnPKUH2n1yeqPnj8SZmxsw2s8A6WV7Xifk6RUOGK0JGS8rbAwqGvZA==", + "version": "13.2.6", + "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-13.2.6.tgz", + "integrity": "sha512-mPgSqdnZRuPSMeUA+T+mwVCrq2yhXpcYm1/Rjbhy09CyHs4wSrFv21WHCrE6shlvXpcmwr0n+I0DIeagAPmjUA==", "dependencies": { - "@angular-devkit/core": "13.2.1", + "@angular-devkit/core": "13.2.6", "jsonc-parser": "3.0.0", "magic-string": "0.25.7", "ora": "5.4.1", @@ -269,16 +269,16 @@ "integrity": "sha512-77EbyPPpMz+FRFRuAFlWMtmgUWGe9UOG2Z25NqCwiIjRhOf5iKGuzSe5P2w1laq+FkRy4p+PCuVkJSGkzTEKVw==" }, "node_modules/@angular/cli": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-13.2.1.tgz", - "integrity": "sha512-LsnpesZhQerALlshnOZPffi94PIzG6JbT0JGol+qBwxYZ8SfEN+l4G9y/WyLT5FEo/3EtACTbdiObqVKiNnpzg==", + "version": "13.2.6", + "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-13.2.6.tgz", + "integrity": "sha512-xIjEaQI5sWemXXc7GXLm4u9UL5sjtrQL/y1PJvvk/Jsa8+kIT+MutOfZfC7zcdAh9fqHd8mokH3guFV8BJdFxA==", "dev": true, "hasInstallScript": true, "dependencies": { - "@angular-devkit/architect": "0.1302.1", - "@angular-devkit/core": "13.2.1", - "@angular-devkit/schematics": "13.2.1", - "@schematics/angular": "13.2.1", + "@angular-devkit/architect": "0.1302.6", + "@angular-devkit/core": "13.2.6", + "@angular-devkit/schematics": "13.2.6", + "@schematics/angular": "13.2.6", "@yarnpkg/lockfile": "1.1.0", "ansi-colors": "4.1.1", "debug": "4.3.3", @@ -2193,9 +2193,9 @@ } }, "node_modules/@ngtools/webpack": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-13.2.1.tgz", - "integrity": "sha512-NugLJfzp0EFX2Pdbr94bsktE/qniUE6mEgmv3ZkmimPBBHhAd1M73XBx8lesjLh7D3SRecHCjD5yyygF8gNO0g==", + "version": "13.2.6", + "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-13.2.6.tgz", + "integrity": "sha512-N8SvRV91+/57TcAfbghc0k0tKCukw/7KqbDaLPAQTGFekJ4xMGT3elMzOyBXTH3Hvp5HL8/hiBt2tG04qiMf+w==", "dev": true, "engines": { "node": "^12.20.0 || ^14.15.0 || >=16.10.0", @@ -2344,13 +2344,13 @@ } }, "node_modules/@schematics/angular": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-13.2.1.tgz", - "integrity": "sha512-WoJXGYBpv2tBFBO89L82b8e21aR856xAtghe+Il6qr/bz2F9ovGJZRa6SMGWS7hBE65CJFI3HpMCksvWeJiazg==", + "version": "13.2.6", + "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-13.2.6.tgz", + "integrity": "sha512-8NzHMX9+FSgaB0lJYxlTJv9OcBuolwZJqo9M/yX3RPSqSHghA33jWwgVbV551hBJOpbVEePerG1DQkIC99DXKA==", "dev": true, "dependencies": { - "@angular-devkit/core": "13.2.1", - "@angular-devkit/schematics": "13.2.1", + "@angular-devkit/core": "13.2.6", + "@angular-devkit/schematics": "13.2.6", "jsonc-parser": "3.0.0" }, "engines": { @@ -2589,9 +2589,9 @@ } }, "node_modules/@types/ws": { - "version": "8.2.2", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.2.2.tgz", - "integrity": "sha512-NOn5eIcgWLOo6qW8AcuLZ7G8PycXu0xTxxkS6Q18VWFxgPUSOwV0pBj2a/4viNZVu25i7RIB7GttdkAIUUXOOg==", + "version": "8.5.3", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.3.tgz", + "integrity": "sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w==", "dev": true, "dependencies": { "@types/node": "*" @@ -2774,27 +2774,18 @@ "dev": true }, "node_modules/accepts": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", - "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", "dev": true, "dependencies": { - "mime-types": "~2.1.24", - "negotiator": "0.6.2" + "mime-types": "~2.1.34", + "negotiator": "0.6.3" }, "engines": { "node": ">= 0.6" } }, - "node_modules/accepts/node_modules/negotiator": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", - "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", - "dev": true, - "engines": { - "node": ">= 0.6" - } - }, "node_modules/acorn": { "version": "8.7.0", "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.7.0.tgz", @@ -3417,24 +3408,27 @@ } }, "node_modules/body-parser": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.1.tgz", - "integrity": "sha512-8ljfQi5eBk8EJfECMrgqNGWPEY5jWP+1IzkzkGdFFEwFQZZyaZ21UqdaHktgiMlH0xLHqIFtE/u2OYE5dOtViA==", + "version": "1.20.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.0.tgz", + "integrity": "sha512-DfJ+q6EPcGKZD1QWUjSpqp+Q7bDQTsQIF4zfUAtZ6qk+H/3/QRhg9CEp39ss+/T2vw0+HaidC0ecJj/DRLIaKg==", "dev": true, "dependencies": { - "bytes": "3.1.1", + "bytes": "3.1.2", "content-type": "~1.0.4", "debug": "2.6.9", - "depd": "~1.1.2", - "http-errors": "1.8.1", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", "iconv-lite": "0.4.24", - "on-finished": "~2.3.0", - "qs": "6.9.6", - "raw-body": "2.4.2", - "type-is": "~1.6.18" + "on-finished": "2.4.1", + "qs": "6.10.3", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" }, "engines": { - "node": ">= 0.8" + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" } }, "node_modules/body-parser/node_modules/debug": { @@ -3446,12 +3440,33 @@ "ms": "2.0.0" } }, + "node_modules/body-parser/node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/body-parser/node_modules/ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "dev": true }, + "node_modules/body-parser/node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dev": true, + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/bonjour": { "version": "3.5.0", "resolved": "https://registry.npmjs.org/bonjour/-/bonjour-3.5.0.tgz", @@ -3611,9 +3626,9 @@ "dev": true }, "node_modules/bytes": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.1.tgz", - "integrity": "sha512-dWe4nWO/ruEOY7HkUJ5gFt1DCFV9zPRoJr8pV0/ASQermOZjtq8jMjOprC0Kd10GLN+l7xaUPvxzJFWtxGu8Fg==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", "dev": true, "engines": { "node": ">= 0.8" @@ -4800,10 +4815,14 @@ } }, "node_modules/destroy": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", - "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", - "dev": true + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", + "dev": true, + "engines": { + "node": ">= 0.8", + "npm": "1.2.8000 || >= 1.4.16" + } }, "node_modules/detect-node": { "version": "2.1.0", @@ -5125,40 +5144,44 @@ } }, "node_modules/esbuild": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.14.14.tgz", - "integrity": "sha512-aiK4ddv+uui0k52OqSHu4xxu+SzOim7Rlz4i25pMEiC8rlnGU0HJ9r+ZMfdWL5bzifg+nhnn7x4NSWTeehYblg==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.14.22.tgz", + "integrity": "sha512-CjFCFGgYtbFOPrwZNJf7wsuzesx8kqwAffOlbYcFDLFuUtP8xloK1GH+Ai13Qr0RZQf9tE7LMTHJ2iVGJ1SKZA==", "dev": true, "hasInstallScript": true, "optional": true, "bin": { "esbuild": "bin/esbuild" }, + "engines": { + "node": ">=12" + }, "optionalDependencies": { - "esbuild-android-arm64": "0.14.14", - "esbuild-darwin-64": "0.14.14", - "esbuild-darwin-arm64": "0.14.14", - "esbuild-freebsd-64": "0.14.14", - "esbuild-freebsd-arm64": "0.14.14", - "esbuild-linux-32": "0.14.14", - "esbuild-linux-64": "0.14.14", - "esbuild-linux-arm": "0.14.14", - "esbuild-linux-arm64": "0.14.14", - "esbuild-linux-mips64le": "0.14.14", - "esbuild-linux-ppc64le": "0.14.14", - "esbuild-linux-s390x": "0.14.14", - "esbuild-netbsd-64": "0.14.14", - "esbuild-openbsd-64": "0.14.14", - "esbuild-sunos-64": "0.14.14", - "esbuild-windows-32": "0.14.14", - "esbuild-windows-64": "0.14.14", - "esbuild-windows-arm64": "0.14.14" + "esbuild-android-arm64": "0.14.22", + "esbuild-darwin-64": "0.14.22", + "esbuild-darwin-arm64": "0.14.22", + "esbuild-freebsd-64": "0.14.22", + "esbuild-freebsd-arm64": "0.14.22", + "esbuild-linux-32": "0.14.22", + "esbuild-linux-64": "0.14.22", + "esbuild-linux-arm": "0.14.22", + "esbuild-linux-arm64": "0.14.22", + "esbuild-linux-mips64le": "0.14.22", + "esbuild-linux-ppc64le": "0.14.22", + "esbuild-linux-riscv64": "0.14.22", + "esbuild-linux-s390x": "0.14.22", + "esbuild-netbsd-64": "0.14.22", + "esbuild-openbsd-64": "0.14.22", + "esbuild-sunos-64": "0.14.22", + "esbuild-windows-32": "0.14.22", + "esbuild-windows-64": "0.14.22", + "esbuild-windows-arm64": "0.14.22" } }, "node_modules/esbuild-android-arm64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.14.tgz", - "integrity": "sha512-be/Uw6DdpQiPfula1J4bdmA+wtZ6T3BRCZsDMFB5X+k0Gp8TIh9UvmAcqvKNnbRAafSaXG3jPCeXxDKqnc8hFQ==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.22.tgz", + "integrity": "sha512-k1Uu4uC4UOFgrnTj2zuj75EswFSEBK+H6lT70/DdS4mTAOfs2ECv2I9ZYvr3w0WL0T4YItzJdK7fPNxcPw6YmQ==", "cpu": [ "arm64" ], @@ -5166,12 +5189,15 @@ "optional": true, "os": [ "android" - ] + ], + "engines": { + "node": ">=12" + } }, "node_modules/esbuild-darwin-64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.14.tgz", - "integrity": "sha512-BEexYmjWafcISK8cT6O98E3TfcLuZL8DKuubry6G54n2+bD4GkoRD6HYUOnCkfl2p7jodA+s4369IjSFSWjtHg==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.22.tgz", + "integrity": "sha512-d8Ceuo6Vw6HM3fW218FB6jTY6O3r2WNcTAU0SGsBkXZ3k8SDoRLd3Nrc//EqzdgYnzDNMNtrWegK2Qsss4THhw==", "cpu": [ "x64" ], @@ -5179,12 +5205,15 @@ "optional": true, "os": [ "darwin" - ] + ], + "engines": { + "node": ">=12" + } }, "node_modules/esbuild-darwin-arm64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.14.tgz", - "integrity": "sha512-tnBKm41pDOB1GtZ8q/w26gZlLLRzVmP8fdsduYjvM+yFD7E2DLG4KbPAqFMWm4Md9B+DitBglP57FY7AznxbTg==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.22.tgz", + "integrity": "sha512-YAt9Tj3SkIUkswuzHxkaNlT9+sg0xvzDvE75LlBo4DI++ogSgSmKNR6B4eUhU5EUUepVXcXdRIdqMq9ppeRqfw==", "cpu": [ "arm64" ], @@ -5192,12 +5221,15 @@ "optional": true, "os": [ "darwin" - ] + ], + "engines": { + "node": ">=12" + } }, "node_modules/esbuild-freebsd-64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.14.tgz", - "integrity": "sha512-Q9Rx6sgArOHalQtNwAaIzJ6dnQ8A+I7f/RsQsdkS3JrdzmnlFo8JEVofTmwVQLoIop7OKUqIVOGP4PoQcwfVMA==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.22.tgz", + "integrity": "sha512-ek1HUv7fkXMy87Qm2G4IRohN+Qux4IcnrDBPZGXNN33KAL0pEJJzdTv0hB/42+DCYWylSrSKxk3KUXfqXOoH4A==", "cpu": [ "x64" ], @@ -5205,12 +5237,15 @@ "optional": true, "os": [ "freebsd" - ] + ], + "engines": { + "node": ">=12" + } }, "node_modules/esbuild-freebsd-arm64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.14.tgz", - "integrity": "sha512-TJvq0OpLM7BkTczlyPIphcvnwrQwQDG1HqxzoYePWn26SMUAlt6wrLnEvxdbXAvNvDLVzG83kA+JimjK7aRNBA==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.22.tgz", + "integrity": "sha512-zPh9SzjRvr9FwsouNYTqgqFlsMIW07O8mNXulGeQx6O5ApgGUBZBgtzSlBQXkHi18WjrosYfsvp5nzOKiWzkjQ==", "cpu": [ "arm64" ], @@ -5218,12 +5253,15 @@ "optional": true, "os": [ "freebsd" - ] + ], + "engines": { + "node": ">=12" + } }, "node_modules/esbuild-linux-32": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.14.tgz", - "integrity": "sha512-h/CrK9Baimt5VRbu8gqibWV7e1P9l+mkanQgyOgv0Ng3jHT1NVFC9e6rb1zbDdaJVmuhWX5xVliUA5bDDCcJeg==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.22.tgz", + "integrity": "sha512-SnpveoE4nzjb9t2hqCIzzTWBM0RzcCINDMBB67H6OXIuDa4KqFqaIgmTchNA9pJKOVLVIKd5FYxNiJStli21qg==", "cpu": [ "ia32" ], @@ -5231,12 +5269,15 @@ "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": ">=12" + } }, "node_modules/esbuild-linux-64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.14.tgz", - "integrity": "sha512-IC+wAiIg/egp5OhQp4W44D9PcBOH1b621iRn1OXmlLzij9a/6BGr9NMIL4CRwz4j2kp3WNZu5sT473tYdynOuQ==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.22.tgz", + "integrity": "sha512-Zcl9Wg7gKhOWWNqAjygyqzB+fJa19glgl2JG7GtuxHyL1uEnWlpSMytTLMqtfbmRykIHdab797IOZeKwk5g0zg==", "cpu": [ "x64" ], @@ -5244,12 +5285,15 @@ "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": ">=12" + } }, "node_modules/esbuild-linux-arm": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.14.tgz", - "integrity": "sha512-gxpOaHOPwp7zSmcKYsHrtxabScMqaTzfSQioAMUaB047YiMuDBzqVcKBG8OuESrYkGrL9DDljXr/mQNg7pbdaQ==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.22.tgz", + "integrity": "sha512-soPDdbpt/C0XvOOK45p4EFt8HbH5g+0uHs5nUKjHVExfgR7du734kEkXR/mE5zmjrlymk5AA79I0VIvj90WZ4g==", "cpu": [ "arm" ], @@ -5257,12 +5301,15 @@ "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": ">=12" + } }, "node_modules/esbuild-linux-arm64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.14.tgz", - "integrity": "sha512-6QVul3RI4M5/VxVIRF/I5F+7BaxzR3DfNGoqEVSCZqUbgzHExPn+LXr5ly1C7af2Kw4AHpo+wDqx8A4ziP9avw==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.22.tgz", + "integrity": "sha512-8q/FRBJtV5IHnQChO3LHh/Jf7KLrxJ/RCTGdBvlVZhBde+dk3/qS9fFsUy+rs3dEi49aAsyVitTwlKw1SUFm+A==", "cpu": [ "arm64" ], @@ -5270,12 +5317,15 @@ "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": ">=12" + } }, "node_modules/esbuild-linux-mips64le": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.14.tgz", - "integrity": "sha512-4Jl5/+xoINKbA4cesH3f4R+q0vltAztZ6Jm8YycS8lNhN1pgZJBDxWfI6HUMIAdkKlIpR1PIkA9aXQgZ8sxFAg==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.22.tgz", + "integrity": "sha512-SiNDfuRXhGh1JQLLA9JPprBgPVFOsGuQ0yDfSPTNxztmVJd8W2mX++c4FfLpAwxuJe183mLuKf7qKCHQs5ZnBQ==", "cpu": [ "mips64el" ], @@ -5283,12 +5333,15 @@ "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": ">=12" + } }, "node_modules/esbuild-linux-ppc64le": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.14.tgz", - "integrity": "sha512-BitW37GxeebKxqYNl4SVuSdnIJAzH830Lr6Mkq3pBHXtzQay0vK+IeOR/Ele1GtNVJ+/f8wYM53tcThkv5SC5w==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.22.tgz", + "integrity": "sha512-6t/GI9I+3o1EFm2AyN9+TsjdgWCpg2nwniEhjm2qJWtJyJ5VzTXGUU3alCO3evopu8G0hN2Bu1Jhz2YmZD0kng==", "cpu": [ "ppc64" ], @@ -5296,12 +5349,31 @@ "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/esbuild-linux-riscv64": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.22.tgz", + "integrity": "sha512-AyJHipZKe88sc+tp5layovquw5cvz45QXw5SaDgAq2M911wLHiCvDtf/07oDx8eweCyzYzG5Y39Ih568amMTCQ==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } }, "node_modules/esbuild-linux-s390x": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.14.tgz", - "integrity": "sha512-vLj6p76HOZG3wfuTr5MyO3qW5iu8YdhUNxuY+tx846rPo7GcKtYSPMusQjeVEfZlJpSYoR+yrNBBxq+qVF9zrw==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.22.tgz", + "integrity": "sha512-Sz1NjZewTIXSblQDZWEFZYjOK6p8tV6hrshYdXZ0NHTjWE+lwxpOpWeElUGtEmiPcMT71FiuA9ODplqzzSxkzw==", "cpu": [ "s390x" ], @@ -5309,12 +5381,15 @@ "optional": true, "os": [ "linux" - ] + ], + "engines": { + "node": ">=12" + } }, "node_modules/esbuild-netbsd-64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.14.tgz", - "integrity": "sha512-fn8looXPQhpVqUyCBWUuPjesH+yGIyfbIQrLKG05rr1Kgm3rZD/gaYrd3Wpmf5syVZx70pKZPvdHp8OTA+y7cQ==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.22.tgz", + "integrity": "sha512-TBbCtx+k32xydImsHxvFgsOCuFqCTGIxhzRNbgSL1Z2CKhzxwT92kQMhxort9N/fZM2CkRCPPs5wzQSamtzEHA==", "cpu": [ "x64" ], @@ -5322,12 +5397,15 @@ "optional": true, "os": [ "netbsd" - ] + ], + "engines": { + "node": ">=12" + } }, "node_modules/esbuild-openbsd-64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.14.tgz", - "integrity": "sha512-HdAnJ399pPff3SKbd8g+P4o5znseni5u5n5rJ6Z7ouqOdgbOwHe2ofZbMow17WMdNtz1IyOZk2Wo9Ve6/lZ4Rg==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.22.tgz", + "integrity": "sha512-vK912As725haT313ANZZZN+0EysEEQXWC/+YE4rQvOQzLuxAQc2tjbzlAFREx3C8+uMuZj/q7E5gyVB7TzpcTA==", "cpu": [ "x64" ], @@ -5335,12 +5413,15 @@ "optional": true, "os": [ "openbsd" - ] + ], + "engines": { + "node": ">=12" + } }, "node_modules/esbuild-sunos-64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.14.tgz", - "integrity": "sha512-bmDHa99ulsGnYlh/xjBEfxoGuC8CEG5OWvlgD+pF7bKKiVTbtxqVCvOGEZeoDXB+ja6AvHIbPxrEE32J+m5nqQ==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.22.tgz", + "integrity": "sha512-/mbJdXTW7MTcsPhtfDsDyPEOju9EOABvCjeUU2OJ7fWpX/Em/H3WYDa86tzLUbcVg++BScQDzqV/7RYw5XNY0g==", "cpu": [ "x64" ], @@ -5348,24 +5429,27 @@ "optional": true, "os": [ "sunos" - ] + ], + "engines": { + "node": ">=12" + } }, "node_modules/esbuild-wasm": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-wasm/-/esbuild-wasm-0.14.14.tgz", - "integrity": "sha512-qTjK4MWnYtQHCMGg2qDUqeFYXfVvYq5qJkQTIsOV4VZCknoYePVaDTG9ygEB9Ct0kc0DWs7IrS6Ja+GjY62Kzw==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-wasm/-/esbuild-wasm-0.14.22.tgz", + "integrity": "sha512-FOSAM29GN1fWusw0oLMv6JYhoheDIh5+atC72TkJKfIUMID6yISlicoQSd9gsNSFsNBvABvtE2jR4JB1j4FkFw==", "dev": true, "bin": { "esbuild": "bin/esbuild" }, "engines": { - "node": ">=8" + "node": ">=12" } }, "node_modules/esbuild-windows-32": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.14.tgz", - "integrity": "sha512-6tVooQcxJCNenPp5GHZBs/RLu31q4B+BuF4MEoRxswT+Eq2JGF0ZWDRQwNKB8QVIo3t6Svc5wNGez+CwKNQjBg==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.22.tgz", + "integrity": "sha512-1vRIkuvPTjeSVK3diVrnMLSbkuE36jxA+8zGLUOrT4bb7E/JZvDRhvtbWXWaveUc/7LbhaNFhHNvfPuSw2QOQg==", "cpu": [ "ia32" ], @@ -5373,12 +5457,15 @@ "optional": true, "os": [ "win32" - ] + ], + "engines": { + "node": ">=12" + } }, "node_modules/esbuild-windows-64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.14.tgz", - "integrity": "sha512-kl3BdPXh0/RD/dad41dtzj2itMUR4C6nQbXQCyYHHo4zoUoeIXhpCrSl7BAW1nv5EFL8stT1V+TQVXGZca5A2A==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.22.tgz", + "integrity": "sha512-AxjIDcOmx17vr31C5hp20HIwz1MymtMjKqX4qL6whPj0dT9lwxPexmLj6G1CpR3vFhui6m75EnBEe4QL82SYqw==", "cpu": [ "x64" ], @@ -5386,12 +5473,15 @@ "optional": true, "os": [ "win32" - ] + ], + "engines": { + "node": ">=12" + } }, "node_modules/esbuild-windows-arm64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.14.tgz", - "integrity": "sha512-dCm1wTOm6HIisLanmybvRKvaXZZo4yEVrHh1dY0v582GThXJOzuXGja1HIQgV09RpSHYRL3m4KoUBL00l6SWEg==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.22.tgz", + "integrity": "sha512-5wvQ+39tHmRhNpu2Fx04l7QfeK3mQ9tKzDqqGR8n/4WUxsFxnVLfDRBGirIfk4AfWlxk60kqirlODPoT5LqMUg==", "cpu": [ "arm64" ], @@ -5399,7 +5489,10 @@ "optional": true, "os": [ "win32" - ] + ], + "engines": { + "node": ">=12" + } }, "node_modules/escalade": { "version": "3.1.1", @@ -5553,38 +5646,39 @@ } }, "node_modules/express": { - "version": "4.17.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.17.2.tgz", - "integrity": "sha512-oxlxJxcQlYwqPWKVJJtvQiwHgosH/LrLSPA+H4UxpyvSS6jC5aH+5MoHFM+KABgTOt0APue4w66Ha8jCUo9QGg==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/express/-/express-4.18.0.tgz", + "integrity": "sha512-EJEXxiTQJS3lIPrU1AE2vRuT7X7E+0KBbpm5GSoK524yl0K8X+er8zS2P14E64eqsVNoWbMCT7MpmQ+ErAhgRg==", "dev": true, "dependencies": { - "accepts": "~1.3.7", + "accepts": "~1.3.8", "array-flatten": "1.1.1", - "body-parser": "1.19.1", + "body-parser": "1.20.0", "content-disposition": "0.5.4", "content-type": "~1.0.4", - "cookie": "0.4.1", + "cookie": "0.5.0", "cookie-signature": "1.0.6", "debug": "2.6.9", - "depd": "~1.1.2", + "depd": "2.0.0", "encodeurl": "~1.0.2", "escape-html": "~1.0.3", "etag": "~1.8.1", - "finalhandler": "~1.1.2", + "finalhandler": "1.2.0", "fresh": "0.5.2", + "http-errors": "2.0.0", "merge-descriptors": "1.0.1", "methods": "~1.1.2", - "on-finished": "~2.3.0", + "on-finished": "2.4.1", "parseurl": "~1.3.3", "path-to-regexp": "0.1.7", "proxy-addr": "~2.0.7", - "qs": "6.9.6", + "qs": "6.10.3", "range-parser": "~1.2.1", "safe-buffer": "5.2.1", - "send": "0.17.2", - "serve-static": "1.14.2", + "send": "0.18.0", + "serve-static": "1.15.0", "setprototypeof": "1.2.0", - "statuses": "~1.5.0", + "statuses": "2.0.1", "type-is": "~1.6.18", "utils-merge": "1.0.1", "vary": "~1.1.2" @@ -5599,6 +5693,15 @@ "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=", "dev": true }, + "node_modules/express/node_modules/cookie": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", + "dev": true, + "engines": { + "node": ">= 0.6" + } + }, "node_modules/express/node_modules/debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", @@ -5608,12 +5711,51 @@ "ms": "2.0.0" } }, + "node_modules/express/node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/express/node_modules/finalhandler": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", + "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "dev": true, + "dependencies": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/express/node_modules/ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "dev": true }, + "node_modules/express/node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dev": true, + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/express/node_modules/safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", @@ -5634,6 +5776,15 @@ } ] }, + "node_modules/express/node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/extend": { "version": "3.0.2", "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", @@ -5966,6 +6117,15 @@ "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", "dev": true }, + "node_modules/functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/gauge": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.0.tgz", @@ -6313,9 +6473,9 @@ } }, "node_modules/html-entities": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.2.tgz", - "integrity": "sha512-c3Ab/url5ksaT0WyleslpBEthOzWhrjQbg75y7XUsfSzi3Dgzt0l8w5e7DylRn15MTlMMD58dTfzddNS2kcAjQ==", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.3.tgz", + "integrity": "sha512-DV5Ln36z34NNTDgnz0EWGBLZENelNAtkiFA4kyNOG2tDI6Mz1uSWiq1wAKdyjnJwyDiDO7Fa2SO1CTxPXL8VxA==", "dev": true }, "node_modules/html-escaper": { @@ -6337,25 +6497,43 @@ "dev": true }, "node_modules/http-errors": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.8.1.tgz", - "integrity": "sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", "dev": true, "dependencies": { - "depd": "~1.1.2", + "depd": "2.0.0", "inherits": "2.0.4", "setprototypeof": "1.2.0", - "statuses": ">= 1.5.0 < 2", + "statuses": "2.0.1", "toidentifier": "1.0.1" }, "engines": { - "node": ">= 0.6" + "node": ">= 0.8" + } + }, + "node_modules/http-errors/node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/http-errors/node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "dev": true, + "engines": { + "node": ">= 0.8" } }, "node_modules/http-parser-js": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.5.tgz", - "integrity": "sha512-x+JVEkO2PoM8qqpbPbOL3cqHPwerep7OwzK7Ay+sMQjKzaKCqWvjoXm5tqMP9tXWWTnTzAjIhXg+J99XYuPhPA==", + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.6.tgz", + "integrity": "sha512-vDlkRPDJn93swjcjqMSaGSPABbIarsr1TLAui/gLDXzV5VsJNdXNzMYDyNBLQkjWQCJ1uizu8T2oDMhmGt0PRA==", "dev": true }, "node_modules/http-proxy": { @@ -6387,9 +6565,9 @@ } }, "node_modules/http-proxy-middleware": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.2.tgz", - "integrity": "sha512-XtmDN5w+vdFTBZaYhdJAbMqn0DP/EhkUaAeo963mojwpKMMbw6nivtFKw07D7DDOH745L5k0VL0P8KRYNEVF/g==", + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", + "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", "dev": true, "dependencies": { "@types/http-proxy": "^1.17.8", @@ -6403,6 +6581,11 @@ }, "peerDependencies": { "@types/express": "^4.17.13" + }, + "peerDependenciesMeta": { + "@types/express": { + "optional": true + } } }, "node_modules/http-signature": { @@ -7835,9 +8018,9 @@ "dev": true }, "node_modules/license-webpack-plugin": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/license-webpack-plugin/-/license-webpack-plugin-4.0.0.tgz", - "integrity": "sha512-b9iMrROrw2fTOJBZ57h0xJfT5/1Cxg4ucYbtpWoukv4Awb2TFPfDDFVHNM8w6SYQpVfB13a5tQJxgGamqwrsyw==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/license-webpack-plugin/-/license-webpack-plugin-4.0.2.tgz", + "integrity": "sha512-771TFWFD70G1wLTC4oU2Cw4qvtmNrIw+wRvBtn+okgHl7slJVi7zfNcdmqDL72BojM30VNJ2UHylr1o77U37Jw==", "dev": true, "dependencies": { "webpack-sources": "^3.0.0" @@ -8242,9 +8425,9 @@ } }, "node_modules/minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", "dev": true }, "node_modules/minipass": { @@ -8468,9 +8651,9 @@ "optional": true }, "node_modules/node-forge": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.2.1.tgz", - "integrity": "sha512-Fcvtbb+zBcZXbTTVwqGA5W+MKBj56UjVRevvchv5XrcyXbmNdesfZL37nlcWOfpgHhgmxApw3tQbTr4CqNmX4w==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", + "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", "dev": true, "engines": { "node": ">= 6.13.0" @@ -8770,6 +8953,15 @@ "node": ">=0.10.0" } }, + "node_modules/object-inspect": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.0.tgz", + "integrity": "sha512-Ho2z80bVIvJloH+YzRmpZVQe87+qASmBUKZDWgx9cu+KDrX2ZDH/3tMy+gXbZETVGs2M8YdxObOh7XAtim9Y0g==", + "dev": true, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/object-is": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", @@ -9327,12 +9519,12 @@ } }, "node_modules/portfinder/node_modules/mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", "dev": true, "dependencies": { - "minimist": "^1.2.5" + "minimist": "^1.2.6" }, "bin": { "mkdirp": "bin/cmd.js" @@ -10209,10 +10401,13 @@ } }, "node_modules/qs": { - "version": "6.9.6", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.9.6.tgz", - "integrity": "sha512-TIRk4aqYLNoJUbd+g2lEdz5kLWIuTMRagAXxl78Q0RiVjAOugHmeKNGdd3cwo/ktpf9aL9epCfFqWDEKysUlLQ==", + "version": "6.10.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.10.3.tgz", + "integrity": "sha512-wr7M2E0OFRfIfJZjKGieI8lBKb7fRCH4Fv5KNPEs7gJ8jadvotdsS08PzOKR7opXhZ/Xkjtt3WF9g38drmyRqQ==", "dev": true, + "dependencies": { + "side-channel": "^1.0.4" + }, "engines": { "node": ">=0.6" }, @@ -10259,13 +10454,13 @@ } }, "node_modules/raw-body": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.2.tgz", - "integrity": "sha512-RPMAFUJP19WIet/99ngh6Iv8fzAbqum4Li7AD6DtGaW2RpMB/11xDoalPiJMTbu6I3hkbMVkATvZrqb9EEqeeQ==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", "dev": true, "dependencies": { - "bytes": "3.1.1", - "http-errors": "1.8.1", + "bytes": "3.1.2", + "http-errors": "2.0.0", "iconv-lite": "0.4.24", "unpipe": "1.0.0" }, @@ -10366,13 +10561,14 @@ "dev": true }, "node_modules/regexp.prototype.flags": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.1.tgz", - "integrity": "sha512-pMR7hBVUUGI7PMA37m2ofIdQCsomVnas+Jn5UPGAHQ+/LlwKm/aTLJHdasmHRzlfeZwHiAOaRSo2rbBDm3nNUQ==", + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", + "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", "dev": true, "dependencies": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3" + "define-properties": "^1.1.3", + "functions-have-names": "^1.2.2" }, "engines": { "node": ">= 0.4" @@ -10875,12 +11071,12 @@ } }, "node_modules/selfsigned": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.0.0.tgz", - "integrity": "sha512-cUdFiCbKoa1mZ6osuJs2uDHrs0k0oprsKveFiiaBKCNq3SYyb5gs2HxhQyDNLCmL51ZZThqi4YNDpCK6GOP1iQ==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.0.1.tgz", + "integrity": "sha512-LmME957M1zOsUhG+67rAjKfiWFox3SBxE/yymatMZsAx+oMrJ0YQ8AToOnyCm7xbeg2ep37IHLxdu0o2MavQOQ==", "dev": true, "dependencies": { - "node-forge": "^1.2.0" + "node-forge": "^1" }, "engines": { "node": ">=10" @@ -10920,24 +11116,24 @@ } }, "node_modules/send": { - "version": "0.17.2", - "resolved": "https://registry.npmjs.org/send/-/send-0.17.2.tgz", - "integrity": "sha512-UJYB6wFSJE3G00nEivR5rgWp8c2xXvJ3OPWPhmuteU0IKj8nKbG3DrjiOmLwpnHGYWAVwA69zmTm++YG0Hmwww==", + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", "dev": true, "dependencies": { "debug": "2.6.9", - "depd": "~1.1.2", - "destroy": "~1.0.4", + "depd": "2.0.0", + "destroy": "1.2.0", "encodeurl": "~1.0.2", "escape-html": "~1.0.3", "etag": "~1.8.1", "fresh": "0.5.2", - "http-errors": "1.8.1", + "http-errors": "2.0.0", "mime": "1.6.0", "ms": "2.1.3", - "on-finished": "~2.3.0", + "on-finished": "2.4.1", "range-parser": "~1.2.1", - "statuses": "~1.5.0" + "statuses": "2.0.1" }, "engines": { "node": ">= 0.8.0" @@ -10958,6 +11154,15 @@ "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "dev": true }, + "node_modules/send/node_modules/depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/send/node_modules/mime": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", @@ -10976,6 +11181,27 @@ "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "dev": true }, + "node_modules/send/node_modules/on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dev": true, + "dependencies": { + "ee-first": "1.1.1" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/send/node_modules/statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "dev": true, + "engines": { + "node": ">= 0.8" + } + }, "node_modules/serialize-javascript": { "version": "6.0.0", "resolved": "https://registry.npmjs.org/serialize-javascript/-/serialize-javascript-6.0.0.tgz", @@ -11046,15 +11272,15 @@ "dev": true }, "node_modules/serve-static": { - "version": "1.14.2", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.2.tgz", - "integrity": "sha512-+TMNA9AFxUEGuC0z2mevogSnn9MXKb4fa7ngeRMJaaGv8vTwnIEkKi+QGvPt33HSnf8pRS+WGM0EbMtCJLKMBQ==", + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", "dev": true, "dependencies": { "encodeurl": "~1.0.2", "escape-html": "~1.0.3", "parseurl": "~1.3.3", - "send": "0.17.2" + "send": "0.18.0" }, "engines": { "node": ">= 0.8.0" @@ -11114,6 +11340,20 @@ "node": ">=8" } }, + "node_modules/side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dev": true, + "dependencies": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, "node_modules/signal-exit": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.6.tgz", @@ -11570,11 +11810,12 @@ } }, "node_modules/terser": { - "version": "5.10.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.10.0.tgz", - "integrity": "sha512-AMmF99DMfEDiRJfxfY5jj5wNH/bYO09cniSqhfoyxc8sFoYIgkJy86G04UoZU5VjlpnplVu0K6Tx6E9b5+DlHA==", + "version": "5.11.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.11.0.tgz", + "integrity": "sha512-uCA9DLanzzWSsN1UirKwylhhRz3aKPInlfmpGfw8VN6jHsAtu8HJtIpeeHHK23rxnE/cDc+yvmq5wqkIC6Kn0A==", "dev": true, "dependencies": { + "acorn": "^8.5.0", "commander": "^2.20.0", "source-map": "~0.7.2", "source-map-support": "~0.5.20" @@ -11584,14 +11825,6 @@ }, "engines": { "node": ">=10" - }, - "peerDependencies": { - "acorn": "^8.5.0" - }, - "peerDependenciesMeta": { - "acorn": { - "optional": true - } } }, "node_modules/terser-webpack-plugin": { @@ -12870,25 +13103,25 @@ } }, "@angular-devkit/architect": { - "version": "0.1302.1", - "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1302.1.tgz", - "integrity": "sha512-h5LA1VTmWKLLzYvnLPqwdyLI9l43FVIUflvmDf6s2ScTrVf3Bb7B4KkCBDdNa8FxnBitfFqKJBf6RGcKjjeDcw==", + "version": "0.1302.6", + "resolved": "https://registry.npmjs.org/@angular-devkit/architect/-/architect-0.1302.6.tgz", + "integrity": "sha512-NztzorUMfwJeRaT7SY00Y8WSqc2lQYuF11yNoyEm7Dae3V7VZ28rW2Z9RwibP27rYQL0RjSMaz2wKITHX2vOAw==", "dev": true, "requires": { - "@angular-devkit/core": "13.2.1", + "@angular-devkit/core": "13.2.6", "rxjs": "6.6.7" } }, "@angular-devkit/build-angular": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-13.2.1.tgz", - "integrity": "sha512-bK1fXqtE/By9cybmVp7oFbCKoI6y9AlZO3k/k7AsyMgLtKL1YYLPN93Tq6L99W+zFI9+8V7x5bjuXWiexA63DA==", + "version": "13.2.6", + "resolved": "https://registry.npmjs.org/@angular-devkit/build-angular/-/build-angular-13.2.6.tgz", + "integrity": "sha512-Y2ojy6xbZ0kwScppcutLHBP8eW0qNOjburTISSBU/L5l/9FOeZ1E7yAreKuVu/qibZiLbSJfAhk+SLwhRHFSSQ==", "dev": true, "requires": { "@ampproject/remapping": "1.1.1", - "@angular-devkit/architect": "0.1302.1", - "@angular-devkit/build-webpack": "0.1302.1", - "@angular-devkit/core": "13.2.1", + "@angular-devkit/architect": "0.1302.6", + "@angular-devkit/build-webpack": "0.1302.6", + "@angular-devkit/core": "13.2.6", "@babel/core": "7.16.12", "@babel/generator": "7.16.8", "@babel/helper-annotate-as-pure": "7.16.7", @@ -12899,7 +13132,7 @@ "@babel/runtime": "7.16.7", "@babel/template": "7.16.7", "@discoveryjs/json-ext": "0.5.6", - "@ngtools/webpack": "13.2.1", + "@ngtools/webpack": "13.2.6", "ansi-colors": "4.1.1", "babel-loader": "8.2.3", "babel-plugin-istanbul": "6.1.1", @@ -12910,8 +13143,8 @@ "core-js": "3.20.3", "critters": "0.0.16", "css-loader": "6.5.1", - "esbuild": "0.14.14", - "esbuild-wasm": "0.14.14", + "esbuild": "0.14.22", + "esbuild-wasm": "0.14.22", "glob": "7.2.0", "https-proxy-agent": "5.0.0", "inquirer": "8.2.0", @@ -12919,7 +13152,7 @@ "karma-source-map-support": "1.4.0", "less": "4.1.2", "less-loader": "10.2.0", - "license-webpack-plugin": "4.0.0", + "license-webpack-plugin": "4.0.2", "loader-utils": "3.2.0", "mini-css-extract-plugin": "2.5.3", "minimatch": "3.0.4", @@ -12941,7 +13174,7 @@ "source-map-support": "0.5.21", "stylus": "0.56.0", "stylus-loader": "6.2.0", - "terser": "5.10.0", + "terser": "5.11.0", "text-table": "0.2.0", "tree-kill": "1.2.2", "tslib": "2.3.1", @@ -12961,19 +13194,19 @@ } }, "@angular-devkit/build-webpack": { - "version": "0.1302.1", - "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1302.1.tgz", - "integrity": "sha512-MYWGqXK42ksnhArLjycPfwxGh7fsR87LRL4yV3e2EfGl07s7mAnohnRhyAs8o8lxRHQU4+yBs9JnMWRcqqqp2A==", + "version": "0.1302.6", + "resolved": "https://registry.npmjs.org/@angular-devkit/build-webpack/-/build-webpack-0.1302.6.tgz", + "integrity": "sha512-TYEh2n9tPe932rEIgdiSpojOqtDppW2jzb/empVqCkLF7WUZsXKvTanttZC34L6R2VD6SAGWhb6JDg75ghUVYA==", "dev": true, "requires": { - "@angular-devkit/architect": "0.1302.1", + "@angular-devkit/architect": "0.1302.6", "rxjs": "6.6.7" } }, "@angular-devkit/core": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-13.2.1.tgz", - "integrity": "sha512-yR+FJq/RfthPmK0LtPIjj6mZLzLGMQ137yyOljsRgHoFhLxtluz9FdjyAk+61rP0LxH3FCt4qRWa9jd7+oBJxw==", + "version": "13.2.6", + "resolved": "https://registry.npmjs.org/@angular-devkit/core/-/core-13.2.6.tgz", + "integrity": "sha512-8h2mWdBTN/dYwZuzKMg2IODlOWMdbJcpQG4XVrkk9ejCPP+3aX5Aa3glCe/voN6eBNiRfs8YDM0jxmpN2aWVtg==", "requires": { "ajv": "8.9.0", "ajv-formats": "2.1.1", @@ -12984,11 +13217,11 @@ } }, "@angular-devkit/schematics": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-13.2.1.tgz", - "integrity": "sha512-vEQnQfO1IrsWd8VneqGBSbunClP0nQwDAnPKUH2n1yeqPnj8SZmxsw2s8A6WV7Xifk6RUOGK0JGS8rbAwqGvZA==", + "version": "13.2.6", + "resolved": "https://registry.npmjs.org/@angular-devkit/schematics/-/schematics-13.2.6.tgz", + "integrity": "sha512-mPgSqdnZRuPSMeUA+T+mwVCrq2yhXpcYm1/Rjbhy09CyHs4wSrFv21WHCrE6shlvXpcmwr0n+I0DIeagAPmjUA==", "requires": { - "@angular-devkit/core": "13.2.1", + "@angular-devkit/core": "13.2.6", "jsonc-parser": "3.0.0", "magic-string": "0.25.7", "ora": "5.4.1", @@ -13011,15 +13244,15 @@ } }, "@angular/cli": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-13.2.1.tgz", - "integrity": "sha512-LsnpesZhQerALlshnOZPffi94PIzG6JbT0JGol+qBwxYZ8SfEN+l4G9y/WyLT5FEo/3EtACTbdiObqVKiNnpzg==", + "version": "13.2.6", + "resolved": "https://registry.npmjs.org/@angular/cli/-/cli-13.2.6.tgz", + "integrity": "sha512-xIjEaQI5sWemXXc7GXLm4u9UL5sjtrQL/y1PJvvk/Jsa8+kIT+MutOfZfC7zcdAh9fqHd8mokH3guFV8BJdFxA==", "dev": true, "requires": { - "@angular-devkit/architect": "0.1302.1", - "@angular-devkit/core": "13.2.1", - "@angular-devkit/schematics": "13.2.1", - "@schematics/angular": "13.2.1", + "@angular-devkit/architect": "0.1302.6", + "@angular-devkit/core": "13.2.6", + "@angular-devkit/schematics": "13.2.6", + "@schematics/angular": "13.2.6", "@yarnpkg/lockfile": "1.1.0", "ansi-colors": "4.1.1", "debug": "4.3.3", @@ -14368,9 +14601,9 @@ "dev": true }, "@ngtools/webpack": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-13.2.1.tgz", - "integrity": "sha512-NugLJfzp0EFX2Pdbr94bsktE/qniUE6mEgmv3ZkmimPBBHhAd1M73XBx8lesjLh7D3SRecHCjD5yyygF8gNO0g==", + "version": "13.2.6", + "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-13.2.6.tgz", + "integrity": "sha512-N8SvRV91+/57TcAfbghc0k0tKCukw/7KqbDaLPAQTGFekJ4xMGT3elMzOyBXTH3Hvp5HL8/hiBt2tG04qiMf+w==", "dev": true, "requires": {} }, @@ -14485,13 +14718,13 @@ } }, "@schematics/angular": { - "version": "13.2.1", - "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-13.2.1.tgz", - "integrity": "sha512-WoJXGYBpv2tBFBO89L82b8e21aR856xAtghe+Il6qr/bz2F9ovGJZRa6SMGWS7hBE65CJFI3HpMCksvWeJiazg==", + "version": "13.2.6", + "resolved": "https://registry.npmjs.org/@schematics/angular/-/angular-13.2.6.tgz", + "integrity": "sha512-8NzHMX9+FSgaB0lJYxlTJv9OcBuolwZJqo9M/yX3RPSqSHghA33jWwgVbV551hBJOpbVEePerG1DQkIC99DXKA==", "dev": true, "requires": { - "@angular-devkit/core": "13.2.1", - "@angular-devkit/schematics": "13.2.1", + "@angular-devkit/core": "13.2.6", + "@angular-devkit/schematics": "13.2.6", "jsonc-parser": "3.0.0" } }, @@ -14719,9 +14952,9 @@ } }, "@types/ws": { - "version": "8.2.2", - "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.2.2.tgz", - "integrity": "sha512-NOn5eIcgWLOo6qW8AcuLZ7G8PycXu0xTxxkS6Q18VWFxgPUSOwV0pBj2a/4viNZVu25i7RIB7GttdkAIUUXOOg==", + "version": "8.5.3", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.3.tgz", + "integrity": "sha512-6YOoWjruKj1uLf3INHH7D3qTXwFfEsg1kf3c0uDdSBJwfa/llkwIjrAGV7j7mVgGNbzTQ3HiHKKDXl6bJPD97w==", "dev": true, "requires": { "@types/node": "*" @@ -14904,21 +15137,13 @@ "dev": true }, "accepts": { - "version": "1.3.7", - "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.7.tgz", - "integrity": "sha512-Il80Qs2WjYlJIBNzNkK6KYqlVMTbZLXgHx2oT0pU/fjRHyEp+PEfEPY0R3WCwAGVOtauxh1hOxNgIf5bv7dQpA==", + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/accepts/-/accepts-1.3.8.tgz", + "integrity": "sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw==", "dev": true, "requires": { - "mime-types": "~2.1.24", - "negotiator": "0.6.2" - }, - "dependencies": { - "negotiator": { - "version": "0.6.2", - "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.2.tgz", - "integrity": "sha512-hZXc7K2e+PgeI1eDBe/10Ard4ekbfrrqG8Ep+8Jmf4JID2bNg7NvCPOZN+kfF574pFQI7mum2AUqDidoKqcTOw==", - "dev": true - } + "mime-types": "~2.1.34", + "negotiator": "0.6.3" } }, "acorn": { @@ -15383,21 +15608,23 @@ } }, "body-parser": { - "version": "1.19.1", - "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.19.1.tgz", - "integrity": "sha512-8ljfQi5eBk8EJfECMrgqNGWPEY5jWP+1IzkzkGdFFEwFQZZyaZ21UqdaHktgiMlH0xLHqIFtE/u2OYE5dOtViA==", + "version": "1.20.0", + "resolved": "https://registry.npmjs.org/body-parser/-/body-parser-1.20.0.tgz", + "integrity": "sha512-DfJ+q6EPcGKZD1QWUjSpqp+Q7bDQTsQIF4zfUAtZ6qk+H/3/QRhg9CEp39ss+/T2vw0+HaidC0ecJj/DRLIaKg==", "dev": true, "requires": { - "bytes": "3.1.1", + "bytes": "3.1.2", "content-type": "~1.0.4", "debug": "2.6.9", - "depd": "~1.1.2", - "http-errors": "1.8.1", + "depd": "2.0.0", + "destroy": "1.2.0", + "http-errors": "2.0.0", "iconv-lite": "0.4.24", - "on-finished": "~2.3.0", - "qs": "6.9.6", - "raw-body": "2.4.2", - "type-is": "~1.6.18" + "on-finished": "2.4.1", + "qs": "6.10.3", + "raw-body": "2.5.1", + "type-is": "~1.6.18", + "unpipe": "1.0.0" }, "dependencies": { "debug": { @@ -15409,11 +15636,26 @@ "ms": "2.0.0" } }, + "depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "dev": true + }, "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "dev": true + }, + "on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dev": true, + "requires": { + "ee-first": "1.1.1" + } } } }, @@ -15542,9 +15784,9 @@ "dev": true }, "bytes": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.1.tgz", - "integrity": "sha512-dWe4nWO/ruEOY7HkUJ5gFt1DCFV9zPRoJr8pV0/ASQermOZjtq8jMjOprC0Kd10GLN+l7xaUPvxzJFWtxGu8Fg==", + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/bytes/-/bytes-3.1.2.tgz", + "integrity": "sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg==", "dev": true }, "cacache": { @@ -16444,9 +16686,9 @@ "dev": true }, "destroy": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.0.4.tgz", - "integrity": "sha1-l4hXRCxEdJ5CBmE+N5RiBYJqvYA=", + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/destroy/-/destroy-1.2.0.tgz", + "integrity": "sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg==", "dev": true }, "detect-node": { @@ -16722,161 +16964,169 @@ } }, "esbuild": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.14.14.tgz", - "integrity": "sha512-aiK4ddv+uui0k52OqSHu4xxu+SzOim7Rlz4i25pMEiC8rlnGU0HJ9r+ZMfdWL5bzifg+nhnn7x4NSWTeehYblg==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.14.22.tgz", + "integrity": "sha512-CjFCFGgYtbFOPrwZNJf7wsuzesx8kqwAffOlbYcFDLFuUtP8xloK1GH+Ai13Qr0RZQf9tE7LMTHJ2iVGJ1SKZA==", "dev": true, "optional": true, "requires": { - "esbuild-android-arm64": "0.14.14", - "esbuild-darwin-64": "0.14.14", - "esbuild-darwin-arm64": "0.14.14", - "esbuild-freebsd-64": "0.14.14", - "esbuild-freebsd-arm64": "0.14.14", - "esbuild-linux-32": "0.14.14", - "esbuild-linux-64": "0.14.14", - "esbuild-linux-arm": "0.14.14", - "esbuild-linux-arm64": "0.14.14", - "esbuild-linux-mips64le": "0.14.14", - "esbuild-linux-ppc64le": "0.14.14", - "esbuild-linux-s390x": "0.14.14", - "esbuild-netbsd-64": "0.14.14", - "esbuild-openbsd-64": "0.14.14", - "esbuild-sunos-64": "0.14.14", - "esbuild-windows-32": "0.14.14", - "esbuild-windows-64": "0.14.14", - "esbuild-windows-arm64": "0.14.14" + "esbuild-android-arm64": "0.14.22", + "esbuild-darwin-64": "0.14.22", + "esbuild-darwin-arm64": "0.14.22", + "esbuild-freebsd-64": "0.14.22", + "esbuild-freebsd-arm64": "0.14.22", + "esbuild-linux-32": "0.14.22", + "esbuild-linux-64": "0.14.22", + "esbuild-linux-arm": "0.14.22", + "esbuild-linux-arm64": "0.14.22", + "esbuild-linux-mips64le": "0.14.22", + "esbuild-linux-ppc64le": "0.14.22", + "esbuild-linux-riscv64": "0.14.22", + "esbuild-linux-s390x": "0.14.22", + "esbuild-netbsd-64": "0.14.22", + "esbuild-openbsd-64": "0.14.22", + "esbuild-sunos-64": "0.14.22", + "esbuild-windows-32": "0.14.22", + "esbuild-windows-64": "0.14.22", + "esbuild-windows-arm64": "0.14.22" } }, "esbuild-android-arm64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.14.tgz", - "integrity": "sha512-be/Uw6DdpQiPfula1J4bdmA+wtZ6T3BRCZsDMFB5X+k0Gp8TIh9UvmAcqvKNnbRAafSaXG3jPCeXxDKqnc8hFQ==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-android-arm64/-/esbuild-android-arm64-0.14.22.tgz", + "integrity": "sha512-k1Uu4uC4UOFgrnTj2zuj75EswFSEBK+H6lT70/DdS4mTAOfs2ECv2I9ZYvr3w0WL0T4YItzJdK7fPNxcPw6YmQ==", "dev": true, "optional": true }, "esbuild-darwin-64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.14.tgz", - "integrity": "sha512-BEexYmjWafcISK8cT6O98E3TfcLuZL8DKuubry6G54n2+bD4GkoRD6HYUOnCkfl2p7jodA+s4369IjSFSWjtHg==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-darwin-64/-/esbuild-darwin-64-0.14.22.tgz", + "integrity": "sha512-d8Ceuo6Vw6HM3fW218FB6jTY6O3r2WNcTAU0SGsBkXZ3k8SDoRLd3Nrc//EqzdgYnzDNMNtrWegK2Qsss4THhw==", "dev": true, "optional": true }, "esbuild-darwin-arm64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.14.tgz", - "integrity": "sha512-tnBKm41pDOB1GtZ8q/w26gZlLLRzVmP8fdsduYjvM+yFD7E2DLG4KbPAqFMWm4Md9B+DitBglP57FY7AznxbTg==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-darwin-arm64/-/esbuild-darwin-arm64-0.14.22.tgz", + "integrity": "sha512-YAt9Tj3SkIUkswuzHxkaNlT9+sg0xvzDvE75LlBo4DI++ogSgSmKNR6B4eUhU5EUUepVXcXdRIdqMq9ppeRqfw==", "dev": true, "optional": true }, "esbuild-freebsd-64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.14.tgz", - "integrity": "sha512-Q9Rx6sgArOHalQtNwAaIzJ6dnQ8A+I7f/RsQsdkS3JrdzmnlFo8JEVofTmwVQLoIop7OKUqIVOGP4PoQcwfVMA==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-64/-/esbuild-freebsd-64-0.14.22.tgz", + "integrity": "sha512-ek1HUv7fkXMy87Qm2G4IRohN+Qux4IcnrDBPZGXNN33KAL0pEJJzdTv0hB/42+DCYWylSrSKxk3KUXfqXOoH4A==", "dev": true, "optional": true }, "esbuild-freebsd-arm64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.14.tgz", - "integrity": "sha512-TJvq0OpLM7BkTczlyPIphcvnwrQwQDG1HqxzoYePWn26SMUAlt6wrLnEvxdbXAvNvDLVzG83kA+JimjK7aRNBA==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-freebsd-arm64/-/esbuild-freebsd-arm64-0.14.22.tgz", + "integrity": "sha512-zPh9SzjRvr9FwsouNYTqgqFlsMIW07O8mNXulGeQx6O5ApgGUBZBgtzSlBQXkHi18WjrosYfsvp5nzOKiWzkjQ==", "dev": true, "optional": true }, "esbuild-linux-32": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.14.tgz", - "integrity": "sha512-h/CrK9Baimt5VRbu8gqibWV7e1P9l+mkanQgyOgv0Ng3jHT1NVFC9e6rb1zbDdaJVmuhWX5xVliUA5bDDCcJeg==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-32/-/esbuild-linux-32-0.14.22.tgz", + "integrity": "sha512-SnpveoE4nzjb9t2hqCIzzTWBM0RzcCINDMBB67H6OXIuDa4KqFqaIgmTchNA9pJKOVLVIKd5FYxNiJStli21qg==", "dev": true, "optional": true }, "esbuild-linux-64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.14.tgz", - "integrity": "sha512-IC+wAiIg/egp5OhQp4W44D9PcBOH1b621iRn1OXmlLzij9a/6BGr9NMIL4CRwz4j2kp3WNZu5sT473tYdynOuQ==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-64/-/esbuild-linux-64-0.14.22.tgz", + "integrity": "sha512-Zcl9Wg7gKhOWWNqAjygyqzB+fJa19glgl2JG7GtuxHyL1uEnWlpSMytTLMqtfbmRykIHdab797IOZeKwk5g0zg==", "dev": true, "optional": true }, "esbuild-linux-arm": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.14.tgz", - "integrity": "sha512-gxpOaHOPwp7zSmcKYsHrtxabScMqaTzfSQioAMUaB047YiMuDBzqVcKBG8OuESrYkGrL9DDljXr/mQNg7pbdaQ==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm/-/esbuild-linux-arm-0.14.22.tgz", + "integrity": "sha512-soPDdbpt/C0XvOOK45p4EFt8HbH5g+0uHs5nUKjHVExfgR7du734kEkXR/mE5zmjrlymk5AA79I0VIvj90WZ4g==", "dev": true, "optional": true }, "esbuild-linux-arm64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.14.tgz", - "integrity": "sha512-6QVul3RI4M5/VxVIRF/I5F+7BaxzR3DfNGoqEVSCZqUbgzHExPn+LXr5ly1C7af2Kw4AHpo+wDqx8A4ziP9avw==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-arm64/-/esbuild-linux-arm64-0.14.22.tgz", + "integrity": "sha512-8q/FRBJtV5IHnQChO3LHh/Jf7KLrxJ/RCTGdBvlVZhBde+dk3/qS9fFsUy+rs3dEi49aAsyVitTwlKw1SUFm+A==", "dev": true, "optional": true }, "esbuild-linux-mips64le": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.14.tgz", - "integrity": "sha512-4Jl5/+xoINKbA4cesH3f4R+q0vltAztZ6Jm8YycS8lNhN1pgZJBDxWfI6HUMIAdkKlIpR1PIkA9aXQgZ8sxFAg==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-mips64le/-/esbuild-linux-mips64le-0.14.22.tgz", + "integrity": "sha512-SiNDfuRXhGh1JQLLA9JPprBgPVFOsGuQ0yDfSPTNxztmVJd8W2mX++c4FfLpAwxuJe183mLuKf7qKCHQs5ZnBQ==", "dev": true, "optional": true }, "esbuild-linux-ppc64le": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.14.tgz", - "integrity": "sha512-BitW37GxeebKxqYNl4SVuSdnIJAzH830Lr6Mkq3pBHXtzQay0vK+IeOR/Ele1GtNVJ+/f8wYM53tcThkv5SC5w==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-ppc64le/-/esbuild-linux-ppc64le-0.14.22.tgz", + "integrity": "sha512-6t/GI9I+3o1EFm2AyN9+TsjdgWCpg2nwniEhjm2qJWtJyJ5VzTXGUU3alCO3evopu8G0hN2Bu1Jhz2YmZD0kng==", + "dev": true, + "optional": true + }, + "esbuild-linux-riscv64": { + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-riscv64/-/esbuild-linux-riscv64-0.14.22.tgz", + "integrity": "sha512-AyJHipZKe88sc+tp5layovquw5cvz45QXw5SaDgAq2M911wLHiCvDtf/07oDx8eweCyzYzG5Y39Ih568amMTCQ==", "dev": true, "optional": true }, "esbuild-linux-s390x": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.14.tgz", - "integrity": "sha512-vLj6p76HOZG3wfuTr5MyO3qW5iu8YdhUNxuY+tx846rPo7GcKtYSPMusQjeVEfZlJpSYoR+yrNBBxq+qVF9zrw==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-linux-s390x/-/esbuild-linux-s390x-0.14.22.tgz", + "integrity": "sha512-Sz1NjZewTIXSblQDZWEFZYjOK6p8tV6hrshYdXZ0NHTjWE+lwxpOpWeElUGtEmiPcMT71FiuA9ODplqzzSxkzw==", "dev": true, "optional": true }, "esbuild-netbsd-64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.14.tgz", - "integrity": "sha512-fn8looXPQhpVqUyCBWUuPjesH+yGIyfbIQrLKG05rr1Kgm3rZD/gaYrd3Wpmf5syVZx70pKZPvdHp8OTA+y7cQ==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-netbsd-64/-/esbuild-netbsd-64-0.14.22.tgz", + "integrity": "sha512-TBbCtx+k32xydImsHxvFgsOCuFqCTGIxhzRNbgSL1Z2CKhzxwT92kQMhxort9N/fZM2CkRCPPs5wzQSamtzEHA==", "dev": true, "optional": true }, "esbuild-openbsd-64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.14.tgz", - "integrity": "sha512-HdAnJ399pPff3SKbd8g+P4o5znseni5u5n5rJ6Z7ouqOdgbOwHe2ofZbMow17WMdNtz1IyOZk2Wo9Ve6/lZ4Rg==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-openbsd-64/-/esbuild-openbsd-64-0.14.22.tgz", + "integrity": "sha512-vK912As725haT313ANZZZN+0EysEEQXWC/+YE4rQvOQzLuxAQc2tjbzlAFREx3C8+uMuZj/q7E5gyVB7TzpcTA==", "dev": true, "optional": true }, "esbuild-sunos-64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.14.tgz", - "integrity": "sha512-bmDHa99ulsGnYlh/xjBEfxoGuC8CEG5OWvlgD+pF7bKKiVTbtxqVCvOGEZeoDXB+ja6AvHIbPxrEE32J+m5nqQ==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-sunos-64/-/esbuild-sunos-64-0.14.22.tgz", + "integrity": "sha512-/mbJdXTW7MTcsPhtfDsDyPEOju9EOABvCjeUU2OJ7fWpX/Em/H3WYDa86tzLUbcVg++BScQDzqV/7RYw5XNY0g==", "dev": true, "optional": true }, "esbuild-wasm": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-wasm/-/esbuild-wasm-0.14.14.tgz", - "integrity": "sha512-qTjK4MWnYtQHCMGg2qDUqeFYXfVvYq5qJkQTIsOV4VZCknoYePVaDTG9ygEB9Ct0kc0DWs7IrS6Ja+GjY62Kzw==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-wasm/-/esbuild-wasm-0.14.22.tgz", + "integrity": "sha512-FOSAM29GN1fWusw0oLMv6JYhoheDIh5+atC72TkJKfIUMID6yISlicoQSd9gsNSFsNBvABvtE2jR4JB1j4FkFw==", "dev": true }, "esbuild-windows-32": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.14.tgz", - "integrity": "sha512-6tVooQcxJCNenPp5GHZBs/RLu31q4B+BuF4MEoRxswT+Eq2JGF0ZWDRQwNKB8QVIo3t6Svc5wNGez+CwKNQjBg==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-windows-32/-/esbuild-windows-32-0.14.22.tgz", + "integrity": "sha512-1vRIkuvPTjeSVK3diVrnMLSbkuE36jxA+8zGLUOrT4bb7E/JZvDRhvtbWXWaveUc/7LbhaNFhHNvfPuSw2QOQg==", "dev": true, "optional": true }, "esbuild-windows-64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.14.tgz", - "integrity": "sha512-kl3BdPXh0/RD/dad41dtzj2itMUR4C6nQbXQCyYHHo4zoUoeIXhpCrSl7BAW1nv5EFL8stT1V+TQVXGZca5A2A==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-windows-64/-/esbuild-windows-64-0.14.22.tgz", + "integrity": "sha512-AxjIDcOmx17vr31C5hp20HIwz1MymtMjKqX4qL6whPj0dT9lwxPexmLj6G1CpR3vFhui6m75EnBEe4QL82SYqw==", "dev": true, "optional": true }, "esbuild-windows-arm64": { - "version": "0.14.14", - "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.14.tgz", - "integrity": "sha512-dCm1wTOm6HIisLanmybvRKvaXZZo4yEVrHh1dY0v582GThXJOzuXGja1HIQgV09RpSHYRL3m4KoUBL00l6SWEg==", + "version": "0.14.22", + "resolved": "https://registry.npmjs.org/esbuild-windows-arm64/-/esbuild-windows-arm64-0.14.22.tgz", + "integrity": "sha512-5wvQ+39tHmRhNpu2Fx04l7QfeK3mQ9tKzDqqGR8n/4WUxsFxnVLfDRBGirIfk4AfWlxk60kqirlODPoT5LqMUg==", "dev": true, "optional": true }, @@ -16991,38 +17241,39 @@ "dev": true }, "express": { - "version": "4.17.2", - "resolved": "https://registry.npmjs.org/express/-/express-4.17.2.tgz", - "integrity": "sha512-oxlxJxcQlYwqPWKVJJtvQiwHgosH/LrLSPA+H4UxpyvSS6jC5aH+5MoHFM+KABgTOt0APue4w66Ha8jCUo9QGg==", + "version": "4.18.0", + "resolved": "https://registry.npmjs.org/express/-/express-4.18.0.tgz", + "integrity": "sha512-EJEXxiTQJS3lIPrU1AE2vRuT7X7E+0KBbpm5GSoK524yl0K8X+er8zS2P14E64eqsVNoWbMCT7MpmQ+ErAhgRg==", "dev": true, "requires": { - "accepts": "~1.3.7", + "accepts": "~1.3.8", "array-flatten": "1.1.1", - "body-parser": "1.19.1", + "body-parser": "1.20.0", "content-disposition": "0.5.4", "content-type": "~1.0.4", - "cookie": "0.4.1", + "cookie": "0.5.0", "cookie-signature": "1.0.6", "debug": "2.6.9", - "depd": "~1.1.2", + "depd": "2.0.0", "encodeurl": "~1.0.2", "escape-html": "~1.0.3", "etag": "~1.8.1", - "finalhandler": "~1.1.2", + "finalhandler": "1.2.0", "fresh": "0.5.2", + "http-errors": "2.0.0", "merge-descriptors": "1.0.1", "methods": "~1.1.2", - "on-finished": "~2.3.0", + "on-finished": "2.4.1", "parseurl": "~1.3.3", "path-to-regexp": "0.1.7", "proxy-addr": "~2.0.7", - "qs": "6.9.6", + "qs": "6.10.3", "range-parser": "~1.2.1", "safe-buffer": "5.2.1", - "send": "0.17.2", - "serve-static": "1.14.2", + "send": "0.18.0", + "serve-static": "1.15.0", "setprototypeof": "1.2.0", - "statuses": "~1.5.0", + "statuses": "2.0.1", "type-is": "~1.6.18", "utils-merge": "1.0.1", "vary": "~1.1.2" @@ -17034,6 +17285,12 @@ "integrity": "sha1-ml9pkFGx5wczKPKgCJaLZOopVdI=", "dev": true }, + "cookie": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/cookie/-/cookie-0.5.0.tgz", + "integrity": "sha512-YZ3GUyn/o8gfKJlnlX7g7xq4gyO6OSuhGPKaaGssGB2qgDUS0gPgtTvoyZLTt9Ab6dC4hfc9dV5arkvc/OCmrw==", + "dev": true + }, "debug": { "version": "2.6.9", "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", @@ -17043,17 +17300,53 @@ "ms": "2.0.0" } }, + "depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "dev": true + }, + "finalhandler": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/finalhandler/-/finalhandler-1.2.0.tgz", + "integrity": "sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg==", + "dev": true, + "requires": { + "debug": "2.6.9", + "encodeurl": "~1.0.2", + "escape-html": "~1.0.3", + "on-finished": "2.4.1", + "parseurl": "~1.3.3", + "statuses": "2.0.1", + "unpipe": "~1.0.0" + } + }, "ms": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", "integrity": "sha1-VgiurfwAvmwpAd9fmGF4jeDVl8g=", "dev": true }, + "on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dev": true, + "requires": { + "ee-first": "1.1.1" + } + }, "safe-buffer": { "version": "5.2.1", "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", "dev": true + }, + "statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "dev": true } } }, @@ -17309,6 +17602,12 @@ "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", "dev": true }, + "functions-have-names": { + "version": "1.2.3", + "resolved": "https://registry.npmjs.org/functions-have-names/-/functions-have-names-1.2.3.tgz", + "integrity": "sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==", + "dev": true + }, "gauge": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.0.tgz", @@ -17585,9 +17884,9 @@ } }, "html-entities": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.2.tgz", - "integrity": "sha512-c3Ab/url5ksaT0WyleslpBEthOzWhrjQbg75y7XUsfSzi3Dgzt0l8w5e7DylRn15MTlMMD58dTfzddNS2kcAjQ==", + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.3.3.tgz", + "integrity": "sha512-DV5Ln36z34NNTDgnz0EWGBLZENelNAtkiFA4kyNOG2tDI6Mz1uSWiq1wAKdyjnJwyDiDO7Fa2SO1CTxPXL8VxA==", "dev": true }, "html-escaper": { @@ -17609,22 +17908,36 @@ "dev": true }, "http-errors": { - "version": "1.8.1", - "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-1.8.1.tgz", - "integrity": "sha512-Kpk9Sm7NmI+RHhnj6OIWDI1d6fIoFAtFt9RLaTMRlg/8w49juAStsrBgp0Dp4OdxdVbRIeKhtCUvoi/RuAhO4g==", + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/http-errors/-/http-errors-2.0.0.tgz", + "integrity": "sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ==", "dev": true, "requires": { - "depd": "~1.1.2", + "depd": "2.0.0", "inherits": "2.0.4", "setprototypeof": "1.2.0", - "statuses": ">= 1.5.0 < 2", + "statuses": "2.0.1", "toidentifier": "1.0.1" + }, + "dependencies": { + "depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "dev": true + }, + "statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "dev": true + } } }, "http-parser-js": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.5.tgz", - "integrity": "sha512-x+JVEkO2PoM8qqpbPbOL3cqHPwerep7OwzK7Ay+sMQjKzaKCqWvjoXm5tqMP9tXWWTnTzAjIhXg+J99XYuPhPA==", + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/http-parser-js/-/http-parser-js-0.5.6.tgz", + "integrity": "sha512-vDlkRPDJn93swjcjqMSaGSPABbIarsr1TLAui/gLDXzV5VsJNdXNzMYDyNBLQkjWQCJ1uizu8T2oDMhmGt0PRA==", "dev": true }, "http-proxy": { @@ -17650,9 +17963,9 @@ } }, "http-proxy-middleware": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.2.tgz", - "integrity": "sha512-XtmDN5w+vdFTBZaYhdJAbMqn0DP/EhkUaAeo963mojwpKMMbw6nivtFKw07D7DDOH745L5k0VL0P8KRYNEVF/g==", + "version": "2.0.6", + "resolved": "https://registry.npmjs.org/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz", + "integrity": "sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw==", "dev": true, "requires": { "@types/http-proxy": "^1.17.8", @@ -18747,9 +19060,9 @@ } }, "license-webpack-plugin": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/license-webpack-plugin/-/license-webpack-plugin-4.0.0.tgz", - "integrity": "sha512-b9iMrROrw2fTOJBZ57h0xJfT5/1Cxg4ucYbtpWoukv4Awb2TFPfDDFVHNM8w6SYQpVfB13a5tQJxgGamqwrsyw==", + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/license-webpack-plugin/-/license-webpack-plugin-4.0.2.tgz", + "integrity": "sha512-771TFWFD70G1wLTC4oU2Cw4qvtmNrIw+wRvBtn+okgHl7slJVi7zfNcdmqDL72BojM30VNJ2UHylr1o77U37Jw==", "dev": true, "requires": { "webpack-sources": "^3.0.0" @@ -19048,9 +19361,9 @@ } }, "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==", + "version": "1.2.6", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.6.tgz", + "integrity": "sha512-Jsjnk4bw3YJqYzbdyBiNsPWHPfO++UGG749Cxs6peCu5Xg4nrena6OVxOYxrQTqww0Jmwt+Ref8rggumkTLz9Q==", "dev": true }, "minipass": { @@ -19225,9 +19538,9 @@ "optional": true }, "node-forge": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.2.1.tgz", - "integrity": "sha512-Fcvtbb+zBcZXbTTVwqGA5W+MKBj56UjVRevvchv5XrcyXbmNdesfZL37nlcWOfpgHhgmxApw3tQbTr4CqNmX4w==", + "version": "1.3.1", + "resolved": "https://registry.npmjs.org/node-forge/-/node-forge-1.3.1.tgz", + "integrity": "sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA==", "dev": true }, "node-gyp": { @@ -19457,6 +19770,12 @@ "integrity": "sha1-IQmtx5ZYh8/AXLvUQsrIv7s2CGM=", "dev": true }, + "object-inspect": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/object-inspect/-/object-inspect-1.12.0.tgz", + "integrity": "sha512-Ho2z80bVIvJloH+YzRmpZVQe87+qASmBUKZDWgx9cu+KDrX2ZDH/3tMy+gXbZETVGs2M8YdxObOh7XAtim9Y0g==", + "dev": true + }, "object-is": { "version": "1.1.5", "resolved": "https://registry.npmjs.org/object-is/-/object-is-1.1.5.tgz", @@ -19875,12 +20194,12 @@ } }, "mkdirp": { - "version": "0.5.5", - "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.5.tgz", - "integrity": "sha512-NKmAlESf6jMGym1++R0Ra7wvhV+wFW63FaSOFPwRahvea0gMUcGUhVeAg/0BC0wiv9ih5NYPB1Wn1UEI1/L+xQ==", + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-0.5.6.tgz", + "integrity": "sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw==", "dev": true, "requires": { - "minimist": "^1.2.5" + "minimist": "^1.2.6" } } } @@ -20499,10 +20818,13 @@ "dev": true }, "qs": { - "version": "6.9.6", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.9.6.tgz", - "integrity": "sha512-TIRk4aqYLNoJUbd+g2lEdz5kLWIuTMRagAXxl78Q0RiVjAOugHmeKNGdd3cwo/ktpf9aL9epCfFqWDEKysUlLQ==", - "dev": true + "version": "6.10.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.10.3.tgz", + "integrity": "sha512-wr7M2E0OFRfIfJZjKGieI8lBKb7fRCH4Fv5KNPEs7gJ8jadvotdsS08PzOKR7opXhZ/Xkjtt3WF9g38drmyRqQ==", + "dev": true, + "requires": { + "side-channel": "^1.0.4" + } }, "queue-microtask": { "version": "1.2.3", @@ -20526,13 +20848,13 @@ "dev": true }, "raw-body": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.4.2.tgz", - "integrity": "sha512-RPMAFUJP19WIet/99ngh6Iv8fzAbqum4Li7AD6DtGaW2RpMB/11xDoalPiJMTbu6I3hkbMVkATvZrqb9EEqeeQ==", + "version": "2.5.1", + "resolved": "https://registry.npmjs.org/raw-body/-/raw-body-2.5.1.tgz", + "integrity": "sha512-qqJBtEyVgS0ZmPGdCFPWJ3FreoqvG4MVQln/kCgF7Olq95IbOp0/BWyMwbdtn4VTvkM8Y7khCQ2Xgk/tcrCXig==", "dev": true, "requires": { - "bytes": "3.1.1", - "http-errors": "1.8.1", + "bytes": "3.1.2", + "http-errors": "2.0.0", "iconv-lite": "0.4.24", "unpipe": "1.0.0" } @@ -20618,13 +20940,14 @@ "dev": true }, "regexp.prototype.flags": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.1.tgz", - "integrity": "sha512-pMR7hBVUUGI7PMA37m2ofIdQCsomVnas+Jn5UPGAHQ+/LlwKm/aTLJHdasmHRzlfeZwHiAOaRSo2rbBDm3nNUQ==", + "version": "1.4.3", + "resolved": "https://registry.npmjs.org/regexp.prototype.flags/-/regexp.prototype.flags-1.4.3.tgz", + "integrity": "sha512-fjggEOO3slI6Wvgjwflkc4NFRCTZAu5CnNfBd5qOMYhWdn67nJBBu34/TkD++eeFmd8C9r9jfXJ27+nSiRkSUA==", "dev": true, "requires": { "call-bind": "^1.0.2", - "define-properties": "^1.1.3" + "define-properties": "^1.1.3", + "functions-have-names": "^1.2.2" } }, "regexpu-core": { @@ -20992,12 +21315,12 @@ } }, "selfsigned": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.0.0.tgz", - "integrity": "sha512-cUdFiCbKoa1mZ6osuJs2uDHrs0k0oprsKveFiiaBKCNq3SYyb5gs2HxhQyDNLCmL51ZZThqi4YNDpCK6GOP1iQ==", + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/selfsigned/-/selfsigned-2.0.1.tgz", + "integrity": "sha512-LmME957M1zOsUhG+67rAjKfiWFox3SBxE/yymatMZsAx+oMrJ0YQ8AToOnyCm7xbeg2ep37IHLxdu0o2MavQOQ==", "dev": true, "requires": { - "node-forge": "^1.2.0" + "node-forge": "^1" } }, "semver": { @@ -21027,24 +21350,24 @@ } }, "send": { - "version": "0.17.2", - "resolved": "https://registry.npmjs.org/send/-/send-0.17.2.tgz", - "integrity": "sha512-UJYB6wFSJE3G00nEivR5rgWp8c2xXvJ3OPWPhmuteU0IKj8nKbG3DrjiOmLwpnHGYWAVwA69zmTm++YG0Hmwww==", + "version": "0.18.0", + "resolved": "https://registry.npmjs.org/send/-/send-0.18.0.tgz", + "integrity": "sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg==", "dev": true, "requires": { "debug": "2.6.9", - "depd": "~1.1.2", - "destroy": "~1.0.4", + "depd": "2.0.0", + "destroy": "1.2.0", "encodeurl": "~1.0.2", "escape-html": "~1.0.3", "etag": "~1.8.1", "fresh": "0.5.2", - "http-errors": "1.8.1", + "http-errors": "2.0.0", "mime": "1.6.0", "ms": "2.1.3", - "on-finished": "~2.3.0", + "on-finished": "2.4.1", "range-parser": "~1.2.1", - "statuses": "~1.5.0" + "statuses": "2.0.1" }, "dependencies": { "debug": { @@ -21064,6 +21387,12 @@ } } }, + "depd": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz", + "integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw==", + "dev": true + }, "mime": { "version": "1.6.0", "resolved": "https://registry.npmjs.org/mime/-/mime-1.6.0.tgz", @@ -21075,6 +21404,21 @@ "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", "dev": true + }, + "on-finished": { + "version": "2.4.1", + "resolved": "https://registry.npmjs.org/on-finished/-/on-finished-2.4.1.tgz", + "integrity": "sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg==", + "dev": true, + "requires": { + "ee-first": "1.1.1" + } + }, + "statuses": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/statuses/-/statuses-2.0.1.tgz", + "integrity": "sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ==", + "dev": true } } }, @@ -21144,15 +21488,15 @@ } }, "serve-static": { - "version": "1.14.2", - "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.14.2.tgz", - "integrity": "sha512-+TMNA9AFxUEGuC0z2mevogSnn9MXKb4fa7ngeRMJaaGv8vTwnIEkKi+QGvPt33HSnf8pRS+WGM0EbMtCJLKMBQ==", + "version": "1.15.0", + "resolved": "https://registry.npmjs.org/serve-static/-/serve-static-1.15.0.tgz", + "integrity": "sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g==", "dev": true, "requires": { "encodeurl": "~1.0.2", "escape-html": "~1.0.3", "parseurl": "~1.3.3", - "send": "0.17.2" + "send": "0.18.0" } }, "set-blocking": { @@ -21197,6 +21541,17 @@ "integrity": "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A==", "dev": true }, + "side-channel": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/side-channel/-/side-channel-1.0.4.tgz", + "integrity": "sha512-q5XPytqFEIKHkGdiMIrY10mvLRvnQh42/+GoBlFW3b2LXLE2xxJpZFdm94we0BaoV3RwJyGqg5wS7epxTv0Zvw==", + "dev": true, + "requires": { + "call-bind": "^1.0.0", + "get-intrinsic": "^1.0.2", + "object-inspect": "^1.9.0" + } + }, "signal-exit": { "version": "3.0.6", "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.6.tgz", @@ -21532,11 +21887,12 @@ } }, "terser": { - "version": "5.10.0", - "resolved": "https://registry.npmjs.org/terser/-/terser-5.10.0.tgz", - "integrity": "sha512-AMmF99DMfEDiRJfxfY5jj5wNH/bYO09cniSqhfoyxc8sFoYIgkJy86G04UoZU5VjlpnplVu0K6Tx6E9b5+DlHA==", + "version": "5.11.0", + "resolved": "https://registry.npmjs.org/terser/-/terser-5.11.0.tgz", + "integrity": "sha512-uCA9DLanzzWSsN1UirKwylhhRz3aKPInlfmpGfw8VN6jHsAtu8HJtIpeeHHK23rxnE/cDc+yvmq5wqkIC6Kn0A==", "dev": true, "requires": { + "acorn": "^8.5.0", "commander": "^2.20.0", "source-map": "~0.7.2", "source-map-support": "~0.5.20" diff --git a/ui/src/app/app-routing.module.ts b/ui/src/app/app-routing.module.ts index a6af4f8..1670d30 100644 --- a/ui/src/app/app-routing.module.ts +++ b/ui/src/app/app-routing.module.ts @@ -1,6 +1,7 @@ import { NgModule } from '@angular/core'; import { Routes, RouterModule } from '@angular/router'; import { JobComponent } from './job/job.component'; +import { CustomerComponent } from './customer/customer.component'; import { HomeComponent } from './home/home.component'; import { JobDetailComponent } from './job-detail/job-detail.component'; @@ -9,6 +10,7 @@ const routes: Routes = [ { path: '', component: HomeComponent }, { path: 'home', component: HomeComponent }, { path: 'jobs', component: JobComponent }, + { path: 'customers', component: CustomerComponent }, { path: 'job/:id', component: JobDetailComponent } ]; diff --git a/ui/src/app/customer/customer.component.html b/ui/src/app/customer/customer.component.html new file mode 100644 index 0000000..125a5a8 --- /dev/null +++ b/ui/src/app/customer/customer.component.html @@ -0,0 +1,10 @@ + + + + + + + + + + \ No newline at end of file diff --git a/ui/src/app/job/job.component.html b/ui/src/app/job/job.component.html index 085c531..5b4e8d6 100644 --- a/ui/src/app/job/job.component.html +++ b/ui/src/app/job/job.component.html @@ -1,33 +1,33 @@ -

New job form

-
- - - + - Please select an engineer - - - Please select a valid date - + Please select a type + + + Customer Name must be at least 5 +
-

Jobs list

+

Customers list

- - + + - - - + + + -
EngineerWhenNameType
{{job.engineer}}{{job.when | date:'shortDate'}}
{{customer.name}}{{customer.type'}} - Open + Open
\ No newline at end of file + diff --git a/ui/src/app/models/customer.model.ts b/ui/src/app/models/customer.model.ts new file mode 100644 index 0000000..880f930 --- /dev/null +++ b/ui/src/app/models/customer.model.ts @@ -0,0 +1,5 @@ +export interface CustomerModel { + customerId: number; + type: string; + name: string; +} diff --git a/ui/src/app/services/customer.service.ts b/ui/src/app/services/customer.service.ts new file mode 100644 index 0000000..698383a --- /dev/null +++ b/ui/src/app/services/customer.service.ts @@ -0,0 +1,24 @@ +import { Injectable } from '@angular/core'; +import { HttpClient } from '@angular/common/http'; +import { Observable } from 'rxjs'; +import { CustomerModel } from '../models/customer.model'; + +@Injectable({ + providedIn: 'root' +}) +export class JobService { + + constructor(private httpClient: HttpClient) { } + + public GetCustomers(): Observable { + return this.httpClient.get('http://localhost:63235/customer'); + } + + public GetCustomers(customerId: number): Observable { + return this.httpClient.get(`http://localhost:63235/job/${customerId}`); + } + + public CreateCustomer(customer: CustomerModel): Promise { + return this.httpClient.post('http://localhost:63235/customer', customer).toPromise(); + } +} diff --git a/ui/src/app/services/type.service.ts b/ui/src/app/services/type.service.ts new file mode 100644 index 0000000..72e2c5a --- /dev/null +++ b/ui/src/app/services/type.service.ts @@ -0,0 +1,15 @@ +import { Injectable } from '@angular/core'; +import { HttpClient } from '@angular/common/http'; +import { Observable } from 'rxjs'; + +@Injectable({ + providedIn: 'root' +}) +export class TypeService { + + constructor(private httpClient: HttpClient) { } + + public GetTypes(): Observable { + return this.httpClient.get('http://localhost:63235/type'); + } +} From c380e35566151755c2e662a62002e8e424b8c797 Mon Sep 17 00:00:00 2001 From: Weebo Date: Tue, 26 Apr 2022 17:16:15 +0100 Subject: [PATCH 2/8] With corrected job.component.html --- .../Business/Interfaces/ICustomerService.cs | 13 +++++ DeveloperTest/Database/Models/Customer.cs | 11 ++++ .../20200219141416_init.Designer.cs | 52 ------------------- ui/src/app/customer/customer.component.html | 41 +++++++++++---- ui/src/app/customer/customer.component.scss | 40 ++++++++++++++ ui/src/app/job/job.component.html | 34 ++++++------ 6 files changed, 113 insertions(+), 78 deletions(-) create mode 100644 DeveloperTest/Business/Interfaces/ICustomerService.cs create mode 100644 DeveloperTest/Database/Models/Customer.cs delete mode 100644 DeveloperTest/Migrations/20200219141416_init.Designer.cs create mode 100644 ui/src/app/customer/customer.component.scss diff --git a/DeveloperTest/Business/Interfaces/ICustomerService.cs b/DeveloperTest/Business/Interfaces/ICustomerService.cs new file mode 100644 index 0000000..26e0316 --- /dev/null +++ b/DeveloperTest/Business/Interfaces/ICustomerService.cs @@ -0,0 +1,13 @@ +using DeveloperTest.Models; + +namespace DeveloperTest.Business.Interfaces +{ + public interface ICustomerService + { + CustomerModel[] GetCustomers(); + + CustomerModel GetCustomer(int customerId); + + CustomerModel CreateCustomer(BaseCustomerModel model); + } +} diff --git a/DeveloperTest/Database/Models/Customer.cs b/DeveloperTest/Database/Models/Customer.cs new file mode 100644 index 0000000..33912ee --- /dev/null +++ b/DeveloperTest/Database/Models/Customer.cs @@ -0,0 +1,11 @@ +namespace DeveloperTest.Database.Models +{ + public class Customer + { + public int CustomerId { get; set; } + + public string Type { get; set; } + + public string Name { get; set; } + } +} diff --git a/DeveloperTest/Migrations/20200219141416_init.Designer.cs b/DeveloperTest/Migrations/20200219141416_init.Designer.cs deleted file mode 100644 index 713dcb1..0000000 --- a/DeveloperTest/Migrations/20200219141416_init.Designer.cs +++ /dev/null @@ -1,52 +0,0 @@ -// -using System; -using Microsoft.EntityFrameworkCore; -using Microsoft.EntityFrameworkCore.Infrastructure; -using Microsoft.EntityFrameworkCore.Metadata; -using Microsoft.EntityFrameworkCore.Migrations; -using Microsoft.EntityFrameworkCore.Storage.ValueConversion; -using DeveloperTest.Database; - -namespace DeveloperTest.Migrations -{ - [DbContext(typeof(ApplicationDbContext))] - [Migration("20200219141416_init")] - partial class init - { - protected override void BuildTargetModel(ModelBuilder modelBuilder) - { -#pragma warning disable 612, 618 - modelBuilder - .HasAnnotation("ProductVersion", "3.1.1") - .HasAnnotation("Relational:MaxIdentifierLength", 128) - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - modelBuilder.Entity("DeveloperTest.Database.Models.Job", b => - { - b.Property("JobId") - .ValueGeneratedOnAdd() - .HasColumnType("int") - .HasAnnotation("SqlServer:ValueGenerationStrategy", SqlServerValueGenerationStrategy.IdentityColumn); - - b.Property("Engineer") - .HasColumnType("nvarchar(max)"); - - b.Property("When") - .HasColumnType("datetime2"); - - b.HasKey("JobId"); - - b.ToTable("Jobs"); - - b.HasData( - new - { - JobId = 1, - Engineer = "Test", - When = new DateTime(2020, 2, 19, 14, 14, 16, 317, DateTimeKind.Local).AddTicks(2552) - }); - }); -#pragma warning restore 612, 618 - } - } -} diff --git a/ui/src/app/customer/customer.component.html b/ui/src/app/customer/customer.component.html index 125a5a8..a72020c 100644 --- a/ui/src/app/customer/customer.component.html +++ b/ui/src/app/customer/customer.component.html @@ -1,10 +1,33 @@ - - - - - - - +

New Customer form

+
+ + + Please select a type + + + Customer Name must be at least 5 + +
- - \ No newline at end of file +

Customers list

+ + + + + + + + + + + + + + + +
NameType
{{customer.name}}{{customer.type'}} + Open +
diff --git a/ui/src/app/customer/customer.component.scss b/ui/src/app/customer/customer.component.scss new file mode 100644 index 0000000..05c1ea0 --- /dev/null +++ b/ui/src/app/customer/customer.component.scss @@ -0,0 +1,40 @@ +h2 { + margin-left: 15px; +} + +form { + margin: 15px; + + label { + display: block; + } + + input, select, button { + display: block; + width: 250px; + margin-bottom: 15px; + } + + small { + color: red; + margin-top: -12px; + margin-bottom: 15px; + display: block; + } +} + +table { + margin: 15px; + border-collapse: collapse; + + th, td { + border: 1px solid #ddd; + padding: 5px; + min-width: 100px; + text-align: left; + } + + th { + background-color: #ddd; + } +} \ No newline at end of file diff --git a/ui/src/app/job/job.component.html b/ui/src/app/job/job.component.html index 5b4e8d6..de654c0 100644 --- a/ui/src/app/job/job.component.html +++ b/ui/src/app/job/job.component.html @@ -1,32 +1,32 @@ -

New Customer form

-
- - - + - Please select a type - - - Customer Name must be at least 5 - + Please select an engineer + + + Please select a valid date +
-

Customers list

+

Jobs list

- - + + - - - + + + From 01c37015dfe8db2e9188c95fda661c7767747f62 Mon Sep 17 00:00:00 2001 From: Weebo Date: Tue, 26 Apr 2022 17:48:49 +0100 Subject: [PATCH 3/8] Just added CustomerService --- DeveloperTest/Business/CustomerService.cs | 56 +++++++++++++++++++ .../Controllers/CustomerController.cs | 50 +++++++++++++++++ ...erController.cs => EngineeerController.cs} | 0 DeveloperTest/Controllers/TypeController.cs | 25 +++++++++ .../Database/ApplicationDbContext.cs | 16 ++++++ ui/src/app/customer/customer.component.ts | 43 ++++++++++++++ 6 files changed, 190 insertions(+) create mode 100644 DeveloperTest/Business/CustomerService.cs create mode 100644 DeveloperTest/Controllers/CustomerController.cs rename DeveloperTest/Controllers/{EngineerController.cs => EngineeerController.cs} (100%) create mode 100644 DeveloperTest/Controllers/TypeController.cs create mode 100644 ui/src/app/customer/customer.component.ts diff --git a/DeveloperTest/Business/CustomerService.cs b/DeveloperTest/Business/CustomerService.cs new file mode 100644 index 0000000..1925ac5 --- /dev/null +++ b/DeveloperTest/Business/CustomerService.cs @@ -0,0 +1,56 @@ +using System.Linq; +using DeveloperTest.Business.Interfaces; +using DeveloperTest.Database; +using DeveloperTest.Database.Models; +using DeveloperTest.Models; + +namespace DeveloperTest.Business +{ + public class CustomerService : ICustomerService + { + private readonly ApplicationDbContext context; + + public CustomerService(ApplicationDbContext context) + { + this.context = context; + } + + public CustomerModel[] GetCustomers() + { + return context.Customers.Select(x => new CustomerModel + { + CustomerId = x.CustomerId, + Type = x.Type, + Name = x.Name + }).ToArray(); + } + + public CustomerModel GetCustomer(int customerId) + { + return context.Customers.Where(x => x.CustomerId == customerId).Select(x => new CustomerModel + { + CustomerId = x.CustomerId, + Type = x.Type, + Name = x.Name + }).SingleOrDefault(); + } + + public CustomerModel CreateCustomer(BaseCustomerModel model) + { + var addedCustomer = context.Customers.Add(new Customer + { + Type = model.Type, + Name = model.Name + }); + + context.SaveChanges(); + + return new CustomerModel + { + CustomerId = addedCustomer.Entity.CustomerId, + Type = addedCustomer.Entity.Type, + Name = addedCustomer.Entity.Name + }; + } + } +} diff --git a/DeveloperTest/Controllers/CustomerController.cs b/DeveloperTest/Controllers/CustomerController.cs new file mode 100644 index 0000000..448b4d9 --- /dev/null +++ b/DeveloperTest/Controllers/CustomerController.cs @@ -0,0 +1,50 @@ +using System; +using Microsoft.AspNetCore.Mvc; +using DeveloperTest.Business.Interfaces; +using DeveloperTest.Models; + +namespace DeveloperTest.Controllers +{ + [ApiController, Route("[controller]")] + public class CustomerController : ControllerBase + { + private readonly ICustomerService customerService; + + public CustomerController(ICustomerService customerService) + { + this.customerService = customerService; + } + + [HttpGet] + public IActionResult Get() + { + return Ok(customerService.GetCustomers()); + } + + [HttpGet("{id}")] + public IActionResult Get(int id) + { + var customer = customerService.GetCustomers(id); + + if (customer == null) + { + return NotFound(); + } + + return Ok(customer); + } + + [HttpPost] + public IActionResult Create(BaseCustomerModel model) + { + //if (model.When.Date < DateTime.Now.Date) + //{ + // return BadRequest("Date cannot be in the past"); + //} + + var customer = customerService.CreateCustomer(model); + + return Created($"customer/{customer.CustomerId}", customer); + } + } +} \ No newline at end of file diff --git a/DeveloperTest/Controllers/EngineerController.cs b/DeveloperTest/Controllers/EngineeerController.cs similarity index 100% rename from DeveloperTest/Controllers/EngineerController.cs rename to DeveloperTest/Controllers/EngineeerController.cs diff --git a/DeveloperTest/Controllers/TypeController.cs b/DeveloperTest/Controllers/TypeController.cs new file mode 100644 index 0000000..82d8729 --- /dev/null +++ b/DeveloperTest/Controllers/TypeController.cs @@ -0,0 +1,25 @@ +using System.Collections.Generic; +using Microsoft.AspNetCore.Mvc; +using Microsoft.Extensions.Logging; + +namespace DeveloperTest.Controllers +{ + [ApiController, Route("[controller]")] + public class TypeController : ControllerBase + { + private static readonly string[] Types = { "Large", "Small"}; + + private readonly ILogger _logger; + + public TypeController(ILogger logger) + { + _logger = logger; + } + + [HttpGet] + public IEnumerable Get() + { + return Types; + } + } +} diff --git a/DeveloperTest/Database/ApplicationDbContext.cs b/DeveloperTest/Database/ApplicationDbContext.cs index f5be4a1..4be827c 100644 --- a/DeveloperTest/Database/ApplicationDbContext.cs +++ b/DeveloperTest/Database/ApplicationDbContext.cs @@ -7,6 +7,7 @@ namespace DeveloperTest.Database public class ApplicationDbContext : DbContext { public DbSet Jobs { get; set; } + public DbSet Customers { get; set; } public ApplicationDbContext(DbContextOptions options) : base(options) { @@ -20,10 +21,17 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) modelBuilder.Entity() .HasKey(x => x.JobId); + modelBuilder.Entity() + .HasKey(x => x.CustomerId); + modelBuilder.Entity() .Property(x => x.JobId) .ValueGeneratedOnAdd(); + modelBuilder.Entity() + .Property(x => x.CustomerId) + .ValueGeneratedOnAdd(); + modelBuilder.Entity() .HasData(new Job { @@ -31,6 +39,14 @@ protected override void OnModelCreating(ModelBuilder modelBuilder) Engineer = "Test", When = new DateTime(2022, 2, 1, 12, 0, 0) }); + + modelBuilder.Entity() + .HasData(new Customer + { + CustomerId = 1, + Type = "Large", + Name = "Test Customer" + }); } } } diff --git a/ui/src/app/customer/customer.component.ts b/ui/src/app/customer/customer.component.ts new file mode 100644 index 0000000..6fbd07d --- /dev/null +++ b/ui/src/app/customer/customer.component.ts @@ -0,0 +1,43 @@ +import { Component, OnInit } from '@angular/core'; +import { NgForm } from '@angular/forms'; +import { TypeService } from '../services/type.service'; +import { CustomerService } from '../services/customer.service'; +import { CustomerModel } from '../models/customer.model'; + +@Component({ + selector: 'app-customer', + templateUrl: './customer.component.html', + styleUrls: ['./customer.component.scss'] +}) +export class CustomerComponent implements OnInit { + + public types: string[] = []; + + public customers: CustomerModel[] = []; + + public newJob: CustomerModel = { + customerId: null, + type: null, + name: null + }; + + constructor( + private typeService: TypeService, + private customerService: CustomerService) { } + + ngOnInit() { + this.engineerService.GetEngineers().subscribe(engineers => this.engineers = engineers); + this.jobService.GetJobs().subscribe(jobs => this.jobs = jobs); + } + + public createCustomer(form: NgForm): void { + if (form.invalid) { + alert('form is not valid'); + } else { + this.customerService.CreateCustomer(this.newCustomer).then(() => { + this.customerService.GetCustomers().subscribe(customers => this.customers = customers); + }); + } + } + +} From ad2d4b3fc42c7f80c2c535d63b6163d28fea4b3d Mon Sep 17 00:00:00 2001 From: Weebo Date: Tue, 26 Apr 2022 18:06:06 +0100 Subject: [PATCH 4/8] NG build errors --- ui/src/app/customer/customer.component.ts | 6 +++--- ui/src/app/services/customer.service.ts | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ui/src/app/customer/customer.component.ts b/ui/src/app/customer/customer.component.ts index 6fbd07d..dca5b4c 100644 --- a/ui/src/app/customer/customer.component.ts +++ b/ui/src/app/customer/customer.component.ts @@ -15,7 +15,7 @@ export class CustomerComponent implements OnInit { public customers: CustomerModel[] = []; - public newJob: CustomerModel = { + public newCustomer: CustomerModel = { customerId: null, type: null, name: null @@ -26,8 +26,8 @@ export class CustomerComponent implements OnInit { private customerService: CustomerService) { } ngOnInit() { - this.engineerService.GetEngineers().subscribe(engineers => this.engineers = engineers); - this.jobService.GetJobs().subscribe(jobs => this.jobs = jobs); + this.typeService.GetTypes().subscribe(types => this.types = types); + this.customerService.GetCustomers().subscribe(customers => this.customers = customers); } public createCustomer(form: NgForm): void { diff --git a/ui/src/app/services/customer.service.ts b/ui/src/app/services/customer.service.ts index 698383a..dbaf345 100644 --- a/ui/src/app/services/customer.service.ts +++ b/ui/src/app/services/customer.service.ts @@ -14,7 +14,7 @@ export class JobService { return this.httpClient.get('http://localhost:63235/customer'); } - public GetCustomers(customerId: number): Observable { + public GetCustomer(customerId: number): Observable { return this.httpClient.get(`http://localhost:63235/job/${customerId}`); } From 5b49e9f673033b28f9b1f3b045eda5e4cd14c0f8 Mon Sep 17 00:00:00 2001 From: Weebo Date: Wed, 27 Apr 2022 09:52:55 +0100 Subject: [PATCH 5/8] First commit of Wednesday morning --- .../Controllers/CustomerController.cs | 10 +- ui/dist/ui/3rdpartylicenses.txt | 244 ++++++++++++++++++ ui/dist/ui/favicon.ico | Bin 0 -> 948 bytes ui/dist/ui/index.html | 12 + ui/dist/ui/main.js | 1 + ui/dist/ui/polyfills.js | 1 + ui/dist/ui/runtime.js | 1 + ui/dist/ui/styles.css | 1 + ui/src/app/app.component.html | 3 +- ui/src/app/app.module.ts | 2 + ui/src/app/customer/customer.component.html | 4 +- ui/src/app/services/customer.service.ts | 2 +- 12 files changed, 272 insertions(+), 9 deletions(-) create mode 100644 ui/dist/ui/3rdpartylicenses.txt create mode 100644 ui/dist/ui/favicon.ico create mode 100644 ui/dist/ui/index.html create mode 100644 ui/dist/ui/main.js create mode 100644 ui/dist/ui/polyfills.js create mode 100644 ui/dist/ui/runtime.js create mode 100644 ui/dist/ui/styles.css diff --git a/DeveloperTest/Controllers/CustomerController.cs b/DeveloperTest/Controllers/CustomerController.cs index 448b4d9..2b20182 100644 --- a/DeveloperTest/Controllers/CustomerController.cs +++ b/DeveloperTest/Controllers/CustomerController.cs @@ -24,7 +24,7 @@ public IActionResult Get() [HttpGet("{id}")] public IActionResult Get(int id) { - var customer = customerService.GetCustomers(id); + var customer = customerService.GetCustomer(id); if (customer == null) { @@ -37,10 +37,10 @@ public IActionResult Get(int id) [HttpPost] public IActionResult Create(BaseCustomerModel model) { - //if (model.When.Date < DateTime.Now.Date) - //{ - // return BadRequest("Date cannot be in the past"); - //} + if (model.Name.Length < 5) + { + return BadRequest("Name must be at least 5."); + } var customer = customerService.CreateCustomer(model); diff --git a/ui/dist/ui/3rdpartylicenses.txt b/ui/dist/ui/3rdpartylicenses.txt new file mode 100644 index 0000000..2e68c7e --- /dev/null +++ b/ui/dist/ui/3rdpartylicenses.txt @@ -0,0 +1,244 @@ +@angular/common +MIT + +@angular/core +MIT + +@angular/forms +MIT + +@angular/platform-browser +MIT + +@angular/router +MIT + +rxjs +Apache-2.0 + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright (c) 2015-2018 Google, Inc., Netflix, Inc., Microsoft Corp. and contributors + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + + + +zone.js +MIT +The MIT License + +Copyright (c) 2010-2020 Google LLC. https://angular.io/license + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. diff --git a/ui/dist/ui/favicon.ico b/ui/dist/ui/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..997406ad22c29aae95893fb3d666c30258a09537 GIT binary patch literal 948 zcmV;l155mgP)CBYU7IjCFmI-B}4sMJt3^s9NVg!P0 z6hDQy(L`XWMkB@zOLgN$4KYz;j0zZxq9KKdpZE#5@k0crP^5f9KO};h)ZDQ%ybhht z%t9#h|nu0K(bJ ztIkhEr!*UyrZWQ1k2+YkGqDi8Z<|mIN&$kzpKl{cNP=OQzXHz>vn+c)F)zO|Bou>E z2|-d_=qY#Y+yOu1a}XI?cU}%04)zz%anD(XZC{#~WreV!a$7k2Ug`?&CUEc0EtrkZ zL49MB)h!_K{H(*l_93D5tO0;BUnvYlo+;yss%n^&qjt6fZOa+}+FDO(~2>G z2dx@=JZ?DHP^;b7*Y1as5^uphBsh*s*z&MBd?e@I>-9kU>63PjP&^#5YTOb&x^6Cf z?674rmSHB5Fk!{Gv7rv!?qX#ei_L(XtwVqLX3L}$MI|kJ*w(rhx~tc&L&xP#?cQow zX_|gx$wMr3pRZIIr_;;O|8fAjd;1`nOeu5K(pCu7>^3E&D2OBBq?sYa(%S?GwG&_0-s%_v$L@R!5H_fc)lOb9ZoOO#p`Nn`KU z3LTTBtjwo`7(HA6 z7gmO$yTR!5L>Bsg!X8616{JUngg_@&85%>W=mChTR;x4`P=?PJ~oPuy5 zU-L`C@_!34D21{fD~Y8NVnR3t;aqZI3fIhmgmx}$oc-dKDC6Ap$Gy>a!`A*x2L1v0 WcZ@i?LyX}70000 + + Ui + + + + + + + + + \ No newline at end of file diff --git a/ui/dist/ui/main.js b/ui/dist/ui/main.js new file mode 100644 index 0000000..b71f341 --- /dev/null +++ b/ui/dist/ui/main.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[179],{587:()=>{function kn(t){return"function"==typeof t}let ao=!1;const dt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else ao&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ao=t},get useDeprecatedSynchronousErrorHandling(){return ao}};function mn(t){setTimeout(()=>{throw t},0)}const Ai={closed:!0,next(t){},error(t){if(dt.useDeprecatedSynchronousErrorHandling)throw t;mn(t)},complete(){}},Ii=Array.isArray||(t=>t&&"number"==typeof t.length);function Aa(t){return null!==t&&"object"==typeof t}const Ti=(()=>{function t(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return t.prototype=Object.create(Error.prototype),t})();class de{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:o,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof de)n.remove(this);else if(null!==n)for(let s=0;se.concat(n instanceof Ti?n.errors:n),[])}de.EMPTY=((t=new de).closed=!0,t);const xi="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class le extends de{constructor(e,n,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Ai;break;case 1:if(!e){this.destination=Ai;break}if("object"==typeof e){e instanceof le?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Zd(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Zd(this,e,n,r)}}[xi](){return this}static create(e,n,r){const o=new le(e,n,r);return o.syncErrorThrowable=!1,o}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Zd extends le{constructor(e,n,r,o){super(),this._parentSubscriber=e;let i,s=this;kn(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==Ai&&(s=Object.create(n),kn(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=i,this._error=r,this._complete=o}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:n}=this;dt.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:r}=dt;if(this._error)r&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)r?(n.syncErrorValue=e,n.syncErrorThrown=!0):mn(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;mn(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const n=()=>this._complete.call(this._context);dt.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,n){try{e.call(this._context,n)}catch(r){if(this.unsubscribe(),dt.useDeprecatedSynchronousErrorHandling)throw r;mn(r)}}__tryOrSetError(e,n,r){if(!dt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,r)}catch(o){return dt.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=o,e.syncErrorThrown=!0,!0):(mn(o),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const uo="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ni(t){return t}let ie=(()=>{class t{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,o){const{operator:i}=this,s=function zD(t,e,n){if(t){if(t instanceof le)return t;if(t[xi])return t[xi]()}return t||e||n?new le(t,e,n):new le(Ai)}(n,r,o);if(s.add(i?i.call(s,this.source):this.source||dt.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),dt.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){dt.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=r),function qD(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof le?n:null}return!0}(n)?n.error(r):console.warn(r)}}forEach(n,r){return new(r=Yd(r))((o,i)=>{let s;s=this.subscribe(a=>{try{n(a)}catch(u){i(u),s&&s.unsubscribe()}},i,o)})}_subscribe(n){const{source:r}=this;return r&&r.subscribe(n)}[uo](){return this}pipe(...n){return 0===n.length?this:function Kd(t){return 0===t.length?Ni:1===t.length?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=Yd(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=e=>new t(e),t})();function Yd(t){if(t||(t=dt.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const rr=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class WD extends de{constructor(e,n){super(),this.subject=e,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,n=e.observers;if(this.subject=null,!n||0===n.length||e.isStopped||e.closed)return;const r=n.indexOf(this.subscriber);-1!==r&&n.splice(r,1)}}class Xd extends le{constructor(e){super(e),this.destination=e}}let Yt=(()=>{class t extends ie{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[xi](){return new Xd(this)}lift(n){const r=new ef(this,this);return r.operator=n,r}next(n){if(this.closed)throw new rr;if(!this.isStopped){const{observers:r}=this,o=r.length,i=r.slice();for(let s=0;snew ef(e,n),t})();class ef extends Yt{constructor(e,n){super(),this.destination=e,this.source=n}next(e){const{destination:n}=this;n&&n.next&&n.next(e)}error(e){const{destination:n}=this;n&&n.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:n}=this;return n?this.source.subscribe(e):de.EMPTY}}function Ri(t){return t&&"function"==typeof t.schedule}function Q(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new JD(t,e))}}class JD{constructor(e,n){this.project=e,this.thisArg=n}call(e,n){return n.subscribe(new QD(e,this.project,this.thisArg))}}class QD extends le{constructor(e,n,r){super(e),this.project=n,this.count=0,this.thisArg=r||this}_next(e){let n;try{n=this.project.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(n)}}const tf=t=>e=>{for(let n=0,r=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function rf(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const Ia=t=>{if(t&&"function"==typeof t[uo])return(t=>e=>{const n=t[uo]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if(nf(t))return tf(t);if(rf(t))return(t=>e=>(t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,mn),e))(t);if(t&&"function"==typeof t[Fi])return(t=>e=>{const n=t[Fi]();for(;;){let r;try{r=n.next()}catch(o){return e.error(o),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const n=`You provided ${Aa(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function Ta(t,e){return new ie(n=>{const r=new de;let o=0;return r.add(e.schedule(function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function Oe(t,e){return e?function iC(t,e){if(null!=t){if(function rC(t){return t&&"function"==typeof t[uo]}(t))return function eC(t,e){return new ie(n=>{const r=new de;return r.add(e.schedule(()=>{const o=t[uo]();r.add(o.subscribe({next(i){r.add(e.schedule(()=>n.next(i)))},error(i){r.add(e.schedule(()=>n.error(i)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(rf(t))return function tC(t,e){return new ie(n=>{const r=new de;return r.add(e.schedule(()=>t.then(o=>{r.add(e.schedule(()=>{n.next(o),r.add(e.schedule(()=>n.complete()))}))},o=>{r.add(e.schedule(()=>n.error(o)))}))),r})}(t,e);if(nf(t))return Ta(t,e);if(function oC(t){return t&&"function"==typeof t[Fi]}(t)||"string"==typeof t)return function nC(t,e){if(!t)throw new Error("Iterable cannot be null");return new ie(n=>{const r=new de;let o;return r.add(()=>{o&&"function"==typeof o.return&&o.return()}),r.add(e.schedule(()=>{o=t[Fi](),r.add(e.schedule(function(){if(n.closed)return;let i,s;try{const a=o.next();i=a.value,s=a.done}catch(a){return void n.error(a)}s?n.complete():(n.next(i),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof ie?t:new ie(Ia(t))}class xa extends le{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Na extends le{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Ra(t,e){if(e.closed)return;if(t instanceof ie)return t.subscribe(e);let n;try{n=Ia(t)(e)}catch(r){e.error(r)}return n}function Ne(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(Ne((o,i)=>Oe(t(o,i)).pipe(Q((s,a)=>e(o,s,i,a))),n)):("number"==typeof e&&(n=e),r=>r.lift(new sC(t,n)))}class sC{constructor(e,n=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=n}call(e,n){return n.subscribe(new aC(e,this.project,this.concurrent))}}class aC extends Na{constructor(e,n,r=Number.POSITIVE_INFINITY){super(e),this.project=n,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function lo(t=Number.POSITIVE_INFINITY){return Ne(Ni,t)}function Fa(t,e){return e?Ta(t,e):new ie(tf(t))}function Oa(){return function(e){return e.lift(new lC(e))}}class lC{constructor(e){this.connectable=e}call(e,n){const{connectable:r}=this;r._refCount++;const o=new cC(e,r),i=n.subscribe(o);return o.closed||(o.connection=r.connect()),i}}class cC extends le{constructor(e,n){super(e),this.connectable=n}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const n=e._refCount;if(n<=0)return void(this.connection=null);if(e._refCount=n-1,n>1)return void(this.connection=null);const{connection:r}=this,o=e._connection;this.connection=null,o&&(!r||o===r)&&o.unsubscribe()}}class of extends ie{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new de,e.add(this.source.subscribe(new fC(this.getSubject(),this))),e.closed&&(this._connection=null,e=de.EMPTY)),e}refCount(){return Oa()(this)}}const dC=(()=>{const t=of.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class fC extends Xd{constructor(e,n){super(e),this.connectable=n}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const n=e._connection;e._refCount=0,e._subject=null,e._connection=null,n&&n.unsubscribe()}}}class gC{constructor(e,n){this.subjectFactory=e,this.selector=n}call(e,n){const{selector:r}=this,o=this.subjectFactory(),i=r(o).subscribe(e);return i.add(n.subscribe(o)),i}}function mC(){return new Yt}function ee(t){for(let e in t)if(t[e]===ee)return e;throw Error("Could not find renamed property on target object.")}function Pa(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function Z(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Z).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function ka(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const vC=ee({__forward_ref__:ee});function ne(t){return t.__forward_ref__=ne,t.toString=function(){return Z(this())},t}function V(t){return sf(t)?t():t}function sf(t){return"function"==typeof t&&t.hasOwnProperty(vC)&&t.__forward_ref__===ne}class W extends Error{constructor(e,n){super(function Va(t,e){return`NG0${Math.abs(t)}${e?": "+e:""}`}(e,n)),this.code=e}}function R(t){return"string"==typeof t?t:null==t?"":String(t)}function Be(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():R(t)}function Oi(t,e){const n=e?` in ${e}`:"";throw new W(-201,`No provider for ${Be(t)} found${n}`)}function Ye(t,e){null==t&&function se(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}(e,t,null,"!=")}function F(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Xe(t){return{providers:t.providers||[],imports:t.imports||[]}}function La(t){return af(t,Pi)||af(t,lf)}function af(t,e){return t.hasOwnProperty(e)?t[e]:null}function uf(t){return t&&(t.hasOwnProperty(ja)||t.hasOwnProperty(MC))?t[ja]:null}const Pi=ee({\u0275prov:ee}),ja=ee({\u0275inj:ee}),lf=ee({ngInjectableDef:ee}),MC=ee({ngInjectorDef:ee});var P=(()=>((P=P||{})[P.Default=0]="Default",P[P.Host=1]="Host",P[P.Self=2]="Self",P[P.SkipSelf=4]="SkipSelf",P[P.Optional=8]="Optional",P))();let Ba;function yn(t){const e=Ba;return Ba=t,e}function cf(t,e,n){const r=La(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&P.Optional?null:void 0!==e?e:void Oi(Z(t),"Injector")}function vn(t){return{toString:t}.toString()}var bt=(()=>((bt=bt||{})[bt.OnPush=0]="OnPush",bt[bt.Default=1]="Default",bt))(),kt=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(kt||(kt={})),kt))();const AC="undefined"!=typeof globalThis&&globalThis,IC="undefined"!=typeof window&&window,TC="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,K=AC||"undefined"!=typeof global&&global||IC||TC,or={},te=[],ki=ee({\u0275cmp:ee}),Ha=ee({\u0275dir:ee}),Ua=ee({\u0275pipe:ee}),df=ee({\u0275mod:ee}),en=ee({\u0275fac:ee}),co=ee({__NG_ELEMENT_ID__:ee});let xC=0;function _n(t){return vn(()=>{const n={},r={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===bt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||te,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||kt.Emulated,id:"c",styles:t.styles||te,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,i=t.features,s=t.pipes;return r.id+=xC++,r.inputs=gf(t.inputs,n),r.outputs=gf(t.outputs),i&&i.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(ff):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(hf):null,r})}function ff(t){return Pe(t)||function Dn(t){return t[Ha]||null}(t)}function hf(t){return function Vn(t){return t[Ua]||null}(t)}const pf={};function ft(t){return vn(()=>{const e={type:t.type,bootstrap:t.bootstrap||te,declarations:t.declarations||te,imports:t.imports||te,exports:t.exports||te,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(pf[t.id]=t.type),e})}function gf(t,e){if(null==t)return or;const n={};for(const r in t)if(t.hasOwnProperty(r)){let o=t[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,e&&(e[o]=i)}return n}const x=_n;function Je(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Pe(t){return t[ki]||null}function ht(t,e){const n=t[df]||null;if(!n&&!0===e)throw new Error(`Type ${Z(t)} does not have '\u0275mod' property.`);return n}const L=11;function Vt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Et(t){return Array.isArray(t)&&!0===t[1]}function qa(t){return 0!=(8&t.flags)}function Bi(t){return 2==(2&t.flags)}function Hi(t){return 1==(1&t.flags)}function Mt(t){return null!==t.template}function kC(t){return 0!=(512&t[2])}function Hn(t,e){return t.hasOwnProperty(en)?t[en]:null}class jC{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function tt(){return yf}function yf(t){return t.type.prototype.ngOnChanges&&(t.setInput=HC),BC}function BC(){const t=_f(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===or)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function HC(t,e,n,r){const o=_f(t)||function UC(t,e){return t[vf]=e}(t,{previous:or,current:null}),i=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[n],u=s[a];i[a]=new jC(u&&u.currentValue,e,s===or),t[r]=e}tt.ngInherit=!0;const vf="__ngSimpleChanges__";function _f(t){return t[vf]||null}let Za;function fe(t){return!!t.listen}const Df={createRenderer:(t,e)=>function Ka(){return void 0!==Za?Za:"undefined"!=typeof document?document:void 0}()};function _e(t){for(;Array.isArray(t);)t=t[0];return t}function Ui(t,e){return _e(e[t])}function mt(t,e){return _e(e[t.index])}function Ya(t,e){return t.data[e]}function lr(t,e){return t[e]}function nt(t,e){const n=e[t];return Vt(n)?n:n[0]}function Xa(t){return 128==(128&t[2])}function Cn(t,e){return null==e?null:t[e]}function bf(t){t[18]=0}function eu(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const N={lFrame:xf(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function wf(){return N.bindingsEnabled}function y(){return N.lFrame.lView}function J(){return N.lFrame.tView}function tu(t){return N.lFrame.contextLView=t,t[8]}function Ee(){let t=Ef();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ef(){return N.lFrame.currentTNode}function Lt(t,e){const n=N.lFrame;n.currentTNode=t,n.isParent=e}function nu(){return N.lFrame.isParent}function $i(){return N.isInCheckNoChangesMode}function Gi(t){N.isInCheckNoChangesMode=t}function He(){const t=N.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function cr(){return N.lFrame.bindingIndex++}function ib(t,e){const n=N.lFrame;n.bindingIndex=n.bindingRootIndex=t,ou(e)}function ou(t){N.lFrame.currentDirectiveIndex=t}function su(t){N.lFrame.currentQueryIndex=t}function ab(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function If(t,e,n){if(n&P.SkipSelf){let o=e,i=t;for(;!(o=o.parent,null!==o||n&P.Host||(o=ab(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;e=o,t=i}const r=N.lFrame=Tf();return r.currentTNode=e,r.lView=t,!0}function qi(t){const e=Tf(),n=t[1];N.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Tf(){const t=N.lFrame,e=null===t?null:t.child;return null===e?xf(t):e}function xf(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function Nf(){const t=N.lFrame;return N.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Rf=Nf;function zi(){const t=Nf();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Ue(){return N.lFrame.selectedIndex}function bn(t){N.lFrame.selectedIndex=t}function he(){const t=N.lFrame;return Ya(t.tView,t.selectedIndex)}function Wi(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[u]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===e){t[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}class mo{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Zi(t,e,n){const r=fe(t);let o=0;for(;oe){s=i-1;break}}}for(;i>16}(t),r=e;for(;n>0;)r=r[15],n--;return r}let cu=!0;function Yi(t){const e=cu;return cu=t,e}let bb=0;function vo(t,e){const n=fu(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,du(r.data,t),du(e,null),du(r.blueprint,null));const o=Xi(t,e),i=t.injectorIndex;if(kf(o)){const s=dr(o),a=fr(o,e),u=a[1].data;for(let l=0;l<8;l++)e[i+l]=a[s+l]|u[s+l]}return e[i+8]=o,i}function du(t,e){t.push(0,0,0,0,0,0,0,0,e)}function fu(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Xi(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,o=e;for(;null!==o;){const i=o[1],s=i.type;if(r=2===s?i.declTNode:1===s?o[6]:null,null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function es(t,e,n){!function wb(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(co)&&(r=n[co]),null==r&&(r=n[co]=bb++);const o=255&r;e.data[t+(o>>5)]|=1<=0?255&e:Mb:e}(n);if("function"==typeof i){if(!If(e,t,r))return r&P.Host?jf(o,n,r):Bf(e,n,r,o);try{const s=i(r);if(null!=s||r&P.Optional)return s;Oi(n)}finally{Rf()}}else if("number"==typeof i){let s=null,a=fu(t,e),u=-1,l=r&P.Host?e[16][6]:null;for((-1===a||r&P.SkipSelf)&&(u=-1===a?Xi(t,e):e[a+8],-1!==u&&Gf(r,!1)?(s=e[1],a=dr(u),e=fr(u,e)):a=-1);-1!==a;){const c=e[1];if($f(i,a,c.data)){const d=Sb(a,e,n,s,r,l);if(d!==Uf)return d}u=e[a+8],-1!==u&&Gf(r,e[1].data[a+8]===l)&&$f(i,a,e)?(s=c,a=dr(u),e=fr(u,e)):a=-1}}}return Bf(e,n,r,o)}const Uf={};function Mb(){return new hr(Ee(),y())}function Sb(t,e,n,r,o,i){const s=e[1],a=s.data[t+8],c=function ts(t,e,n,r,o){const i=t.providerIndexes,s=e.data,a=1048575&i,u=t.directiveStart,c=i>>20,f=o?a+c:t.directiveEnd;for(let h=r?a:a+c;h=u&&p.type===n)return h}if(o){const h=s[u];if(h&&Mt(h)&&h.type===n)return u}return null}(a,s,n,null==r?Bi(a)&&cu:r!=s&&0!=(3&a.type),o&P.Host&&i===a);return null!==c?_o(e,s,c,a):Uf}function _o(t,e,n,r){let o=t[n];const i=e.data;if(function yb(t){return t instanceof mo}(o)){const s=o;s.resolving&&function _C(t,e){const n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new W(-200,`Circular dependency in DI detected for ${t}${n}`)}(Be(i[n]));const a=Yi(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?yn(s.injectImpl):null;If(t,r,P.Default);try{o=t[n]=s.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function gb(t,e,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){const s=yf(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{null!==u&&yn(u),Yi(a),s.resolving=!1,Rf()}}return o}function $f(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[en]||hu(e),r=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){const i=o[en]||hu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function hu(t){return sf(t)?()=>{const e=hu(V(t));return e&&e()}:Hn(t)}const gr="__parameters__";function yr(t,e,n){return vn(()=>{const r=function pu(t){return function(...n){if(t){const r=t(...n);for(const o in r)this[o]=r[o]}}}(e);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(u,l,c){const d=u.hasOwnProperty(gr)?u[gr]:Object.defineProperty(u,gr,{value:[]})[gr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}class j{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=F({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Tb=new j("AnalyzeForEntryComponents");function jt(t,e){t.forEach(n=>Array.isArray(n)?jt(n,e):e(n))}function zf(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ns(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function rt(t,e,n){let r=vr(t,e);return r>=0?t[1|r]=n:(r=~r,function Rb(t,e,n,r){let o=t.length;if(o==e)t.push(n,r);else if(1===o)t.push(r,t[0]),t[0]=n;else{for(o--,t.push(t[o-1],t[o]);o>e;)t[o]=t[o-2],o--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function mu(t,e){const n=vr(t,e);if(n>=0)return t[1|n]}function vr(t,e){return function Qf(t,e,n){let r=0,o=t.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=t[i<e?o=i:r=i+1}return~(o<({token:t})),-1),Bt=So(yr("Optional"),8),_r=So(yr("SkipSelf"),4);class ah{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function En(t){return t instanceof ah?t.changingThisBreaksApplicationSecurity:t}const dw=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,fw=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;var De=(()=>((De=De||{})[De.NONE=0]="NONE",De[De.HTML=1]="HTML",De[De.STYLE=2]="STYLE",De[De.SCRIPT=3]="SCRIPT",De[De.URL=4]="URL",De[De.RESOURCE_URL=5]="RESOURCE_URL",De))();function Au(t){const e=function No(){const t=y();return t&&t[12]}();return e?e.sanitize(De.URL,t)||"":function To(t,e){const n=function aw(t){return t instanceof ah&&t.getTypeName()||null}(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}(t,"URL")?En(t):function us(t){return(t=String(t)).match(dw)||t.match(fw)?t:"unsafe:"+t}(R(t))}const yh="__ngContext__";function Ve(t,e){t[yh]=e}function Tu(t){const e=function Ro(t){return t[yh]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Nu(t){return t.ngOriginalError}function Pw(t,...e){t.error(...e)}class br{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e),r=function Ow(t){return t&&t.ngErrorLogger||Pw}(e);r(this._console,"ERROR",e),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&Nu(e);for(;n&&Nu(n);)n=Nu(n);return n||null}}const bh=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(K))();function Ut(t){return t instanceof Function?t():t}var ot=(()=>((ot=ot||{})[ot.Important=1]="Important",ot[ot.DashCase=2]="DashCase",ot))();function Fu(t,e){return undefined(t,e)}function Fo(t){const e=t[3];return Et(e)?e[3]:e}function Ou(t){return Ah(t[13])}function Pu(t){return Ah(t[4])}function Ah(t){for(;null!==t&&!Et(t);)t=t[4];return t}function Er(t,e,n,r,o){if(null!=r){let i,s=!1;Et(r)?i=r:Vt(r)&&(s=!0,r=r[0]);const a=_e(r);0===t&&null!==n?null==o?Fh(e,n,a):Un(e,n,a,o||null,!0):1===t&&null!==n?Un(e,n,a,o||null,!0):2===t?function Bh(t,e,n){const r=cs(t,e);r&&function oE(t,e,n,r){fe(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=i&&function aE(t,e,n,r,o){const i=n[7];i!==_e(n)&&Er(e,t,r,i,o);for(let a=10;a0&&(t[n-1][4]=r[4]);const i=ns(t,10+e);!function Zw(t,e){Oo(t,e,e[L],2,null,null),e[0]=null,e[6]=null}(r[1],r);const s=i[19];null!==s&&s.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function xh(t,e){if(!(256&e[2])){const n=e[L];fe(n)&&n.destroyNode&&Oo(t,e,n,3,null,null),function Xw(t){let e=t[13];if(!e)return ju(t[1],t);for(;e;){let n=null;if(Vt(e))n=e[13];else{const r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)Vt(e)&&ju(e[1],e),e=e[3];null===e&&(e=t),Vt(e)&&ju(e[1],e),n=e&&e[4]}e=n}}(e)}}function ju(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function rE(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r=0?r[o=l]():r[o=-l].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;ii?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==$h(h,l,0)||2&r&&l!==f){if(St(r))return!1;s=!0}}}}else{if(!s&&!St(r)&&!St(u))return!1;if(s&&St(u))continue;s=!1,r=u|1&r}}return St(r)||s}function St(t){return 0==(1&t)}function fE(t,e,n,r){if(null===e)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!St(s)&&(e+=Wh(i,o),o=""),r=s,i=i||!St(r);n++}return""!==o&&(e+=Wh(i,o)),e}const O={};function Y(t){Jh(J(),y(),Ue()+t,$i())}function Jh(t,e,n,r){if(!r)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Ji(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Qi(e,i,0,n)}bn(n)}function hs(t,e){return t<<17|e<<2}function At(t){return t>>17&32767}function Gu(t){return 2|t}function rn(t){return(131068&t)>>2}function qu(t,e){return-131069&t|e<<2}function zu(t){return 1|t}function ip(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r20&&Jh(t,e,20,$i()),n(r,o)}finally{bn(i)}}function nl(t,e,n){!wf()||(function UE(t,e,n,r){const o=n.directiveStart,i=n.directiveEnd;t.firstCreatePass||vo(n,e),Ve(r,e);const s=n.initialInputs;for(let a=o;a0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(a)!=u&&a.push(u),a.push(r,o,s)}}function gp(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function mp(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function zE(t,e,n){if(n){if(e.exportAs)for(let r=0;r0&&sl(n)}}function sl(t){for(let r=Ou(t);null!==r;r=Pu(r))for(let o=10;o0&&sl(i)}const n=t[1].components;if(null!==n)for(let r=0;r0&&sl(o)}}function XE(t,e){const n=nt(e,t),r=n[1];(function eM(t,e){for(let n=e.length;nPromise.resolve(null))();function Cp(t){return t[7]||(t[7]=[])}function bp(t){return t.cleanup||(t.cleanup=[])}function Ep(t,e){const n=t[9],r=n?n.get(br,null):null;r&&r.handleError(e)}function Mp(t,e,n,r,o){for(let i=0;ithis.processProvider(a,e,n)),jt([e],a=>this.processInjectorType(a,[],i)),this.records.set(dl,Ir(void 0,this));const s=this.records.get(fl);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof e?null:Z(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,n=Eo,r=P.Default){this.assertNotDestroyed();const o=Yf(this),i=yn(void 0);try{if(!(r&P.SkipSelf)){let a=this.records.get(e);if(void 0===a){const u=function mM(t){return"function"==typeof t||"object"==typeof t&&t instanceof j}(e)&&La(e);a=u&&this.injectableDefInScope(u)?Ir(pl(e),Vo):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(r&P.Self?Ap():this.parent).get(e,n=r&P.Optional&&n===Eo?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[os]=s[os]||[]).unshift(Z(e)),o)throw s;return function Gb(t,e,n,r){const o=t[os];throw e[Kf]&&o.unshift(e[Kf]),t.message=function qb(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let o=Z(e);if(Array.isArray(e))o=e.map(Z).join(" -> ");else if("object"==typeof e){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Z(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${t.replace(jb,"\n ")}`}("\n"+t.message,o,n,r),t.ngTokenPath=o,t[os]=null,t}(s,e,"R3InjectorError",this.source)}throw s}finally{yn(i),Yf(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((r,o)=>e.push(Z(o))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new W(205,"")}processInjectorType(e,n,r){if(!(e=V(e)))return!1;let o=uf(e);const i=null==o&&e.ngModule||void 0,s=void 0===i?e:i,a=-1!==r.indexOf(s);if(void 0!==i&&(o=uf(i)),null==o)return!1;if(null!=o.imports&&!a){let c;r.push(s);try{jt(o.imports,d=>{this.processInjectorType(d,n,r)&&(void 0===c&&(c=[]),c.push(d))})}finally{}if(void 0!==c)for(let d=0;dthis.processProvider(p,f,h||te))}}this.injectorDefTypes.add(s);const u=Hn(s)||(()=>new s);this.records.set(s,Ir(u,Vo));const l=o.providers;if(null!=l&&!a){const c=e;jt(l,d=>this.processProvider(d,c,l))}return void 0!==i&&void 0!==e.providers}processProvider(e,n,r){let o=Tr(e=V(e))?e:V(e&&e.provide);const i=function cM(t,e,n){return Np(t)?Ir(void 0,t.useValue):Ir(xp(t),Vo)}(e);if(Tr(e)||!0!==e.multi)this.records.get(o);else{let s=this.records.get(o);s||(s=Ir(void 0,Vo,!0),s.factory=()=>_u(s.multi),this.records.set(o,s)),o=e,s.multi.push(e)}this.records.set(o,i)}hydrate(e,n){return n.value===Vo&&(n.value=aM,n.value=n.factory()),"object"==typeof n.value&&n.value&&function gM(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;const n=V(e.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function pl(t){const e=La(t),n=null!==e?e.factory:Hn(t);if(null!==n)return n;if(t instanceof j)throw new W(204,"");if(t instanceof Function)return function lM(t){const e=t.length;if(e>0)throw function wo(t,e){const n=[];for(let r=0;rn.factory(t):()=>new t}(t);throw new W(204,"")}function xp(t,e,n){let r;if(Tr(t)){const o=V(t);return Hn(o)||pl(o)}if(Np(t))r=()=>V(t.useValue);else if(function fM(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(..._u(t.deps||[]));else if(function dM(t){return!(!t||!t.useExisting)}(t))r=()=>E(V(t.useExisting));else{const o=V(t&&(t.useClass||t.provide));if(!function pM(t){return!!t.deps}(t))return Hn(o)||pl(o);r=()=>new o(..._u(t.deps))}return r}function Ir(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Np(t){return null!==t&&"object"==typeof t&&Hb in t}function Tr(t){return"function"==typeof t}let Re=(()=>{class t{static create(n,r){var o;if(Array.isArray(n))return Ip({name:""},r,n,"");{const i=null!==(o=n.name)&&void 0!==o?o:"";return Ip({name:i},n.parent,n.providers,i)}}}return t.THROW_IF_NOT_FOUND=Eo,t.NULL=new Sp,t.\u0275prov=F({token:t,providedIn:"any",factory:()=>E(dl)}),t.__NG_ELEMENT_ID__=-1,t})();function EM(t,e){Wi(Tu(t)[1],Ee())}function X(t){let e=function $p(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0;const r=[t];for(;e;){let o;if(Mt(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new W(903,"");o=e.\u0275dir}if(o){if(n){r.push(o);const s=t;s.inputs=yl(t.inputs),s.declaredInputs=yl(t.declaredInputs),s.outputs=yl(t.outputs);const a=o.hostBindings;a&&IM(t,a);const u=o.viewQuery,l=o.contentQueries;if(u&&SM(t,u),l&&AM(t,l),Pa(t.inputs,o.inputs),Pa(t.declaredInputs,o.declaredInputs),Pa(t.outputs,o.outputs),Mt(o)&&o.data.animation){const c=t.data;c.animation=(c.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let s=0;s=0;r--){const o=t[r];o.hostVars=e+=o.hostVars,o.hostAttrs=Ki(o.hostAttrs,n=Ki(n,o.hostAttrs))}}(r)}function yl(t){return t===or?{}:t===te?[]:t}function SM(t,e){const n=t.viewQuery;t.viewQuery=n?(r,o)=>{e(r,o),n(r,o)}:e}function AM(t,e){const n=t.contentQueries;t.contentQueries=n?(r,o,i)=>{e(r,o,i),n(r,o,i)}:e}function IM(t,e){const n=t.hostBindings;t.hostBindings=n?(r,o)=>{e(r,o),n(r,o)}:e}let _s=null;function xr(){if(!_s){const t=K.Symbol;if(t&&t.iterator)_s=t.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let n=0;na(_e(I[r.index])):r.index;if(fe(n)){let I=null;if(!a&&u&&(I=function s0(t,e,n,r){const o=t.cleanup;if(null!=o)for(let i=0;iu?a[u]:null}"string"==typeof s&&(i+=2)}return null}(t,e,o,r.index)),null!==I)(I.__ngLastListenerFn__||I).__ngNextListenerFn__=i,I.__ngLastListenerFn__=i,h=!1;else{i=Al(r,e,d,i,!1);const z=n.listen(D,o,i);f.push(i,z),c&&c.push(o,w,g,g+1)}}else i=Al(r,e,d,i,!0),D.addEventListener(o,i,s),f.push(i),c&&c.push(o,w,g,s)}else i=Al(r,e,d,i,!1);const p=r.outputs;let m;if(h&&null!==p&&(m=p[o])){const _=m.length;if(_)for(let D=0;D<_;D+=2){const ct=e[m[D]][m[D+1]].subscribe(i),nr=f.length;f.push(i,ct),c&&c.push(o,r.index,nr,-(nr+1))}}}(i,o,o[L],s,t,e,!!n,r),Se}function pg(t,e,n,r){try{return!1!==n(r)}catch(o){return Ep(t,o),!1}}function Al(t,e,n,r,o){return function i(s){if(s===Function)return r;const a=2&t.flags?nt(t.index,e):e;0==(32&e[2])&&al(a);let u=pg(e,0,r,s),l=i.__ngNextListenerFn__;for(;l;)u=pg(e,0,l,s)&&u,l=l.__ngNextListenerFn__;return o&&!1===u&&(s.preventDefault(),s.returnValue=!1),u}}function Eg(t,e,n,r,o){const i=t[n+1],s=null===e;let a=r?At(i):rn(i),u=!1;for(;0!==a&&(!1===u||s);){const c=t[a+1];h0(t[a],e)&&(u=!0,t[a+1]=r?zu(c):Gu(c)),a=r?At(c):rn(c)}u&&(t[n+1]=r?Gu(i):zu(i))}function h0(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&vr(t,e)>=0}function bs(t,e){return function Tt(t,e,n,r){const o=y(),i=J(),s=function nn(t){const e=N.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}(2);i.firstUpdatePass&&function Fg(t,e,n,r){const o=t.data;if(null===o[n+1]){const i=o[Ue()],s=function Rg(t,e){return e>=t.expandoStartIndex}(t,n);(function Vg(t,e){return 0!=(t.flags&(e?16:32))})(i,r)&&null===e&&!s&&(e=!1),e=function b0(t,e,n,r){const o=function iu(t){const e=N.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let i=r?e.residualClasses:e.residualStyles;if(null===o)0===(r?e.classBindings:e.styleBindings)&&(n=Uo(n=Tl(null,t,e,n,r),e.attrs,r),i=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==o)if(n=Tl(o,t,e,n,r),null===i){let u=function w0(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==rn(r))return t[At(r)]}(t,e,r);void 0!==u&&Array.isArray(u)&&(u=Tl(null,t,e,u[1],r),u=Uo(u,e.attrs,r),function E0(t,e,n,r){t[At(n?e.classBindings:e.styleBindings)]=r}(t,e,r,u))}else i=function M0(t,e,n){let r;const o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0)&&(l=!0)}else c=n;if(o)if(0!==u){const f=At(t[a+1]);t[r+1]=hs(f,a),0!==f&&(t[f+1]=qu(t[f+1],r)),t[a+1]=function DE(t,e){return 131071&t|e<<17}(t[a+1],r)}else t[r+1]=hs(a,0),0!==a&&(t[a+1]=qu(t[a+1],r)),a=r;else t[r+1]=hs(u,0),0===a?a=r:t[u+1]=qu(t[u+1],r),u=r;l&&(t[r+1]=Gu(t[r+1])),Eg(t,c,r,!0),Eg(t,c,r,!1),function f0(t,e,n,r,o){const i=o?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof e&&vr(i,e)>=0&&(n[r+1]=zu(n[r+1]))}(e,c,t,r,i),s=hs(a,u),i?e.classBindings=s:e.styleBindings=s}(o,i,e,n,s,r)}}(i,t,s,r),e!==O&&Le(o,s,e)&&function Pg(t,e,n,r,o,i,s,a){if(!(3&e.type))return;const u=t.data,l=u[a+1];ws(function Kh(t){return 1==(1&t)}(l)?kg(u,e,n,o,rn(l),s):void 0)||(ws(i)||function Zh(t){return 2==(2&t)}(l)&&(i=kg(u,null,n,o,a,s)),function uE(t,e,n,r,o){const i=fe(t);if(e)o?i?t.addClass(n,r):n.classList.add(r):i?t.removeClass(n,r):n.classList.remove(r);else{let s=-1===r.indexOf("-")?void 0:ot.DashCase;if(null==o)i?t.removeStyle(n,r,s):n.style.removeProperty(r);else{const a="string"==typeof o&&o.endsWith("!important");a&&(o=o.slice(0,-10),s|=ot.Important),i?t.setStyle(n,r,o,s):n.style.setProperty(r,o,a?"important":"")}}}(r,s,Ui(Ue(),n),o,i))}(i,i.data[Ue()],o,o[L],t,o[s+1]=function I0(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=Z(En(t)))),t}(e,n),r,s)}(t,e,null,!0),bs}function Tl(t,e,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const u=t[o],l=Array.isArray(u),c=l?u[1]:u,d=null===c;let f=n[o+1];f===O&&(f=d?te:void 0);let h=d?mu(f,r):c===r?f:void 0;if(l&&!ws(h)&&(h=mu(u,r)),ws(h)&&(a=h,s))return a;const p=t[o+1];o=s?At(p):rn(p)}if(null!==e){let u=i?e.residualClasses:e.residualStyles;null!=u&&(a=mu(u,r))}return a}function ws(t){return void 0!==t}function $(t,e=""){const n=y(),r=J(),o=t+20,i=r.firstCreatePass?Mr(r,o,1,e,null):r.data[o],s=n[o]=function ku(t,e){return fe(t)?t.createText(e):t.createTextNode(e)}(n[L],e);ds(r,n,s,i),Lt(i,!1)}function Gn(t){return Ur("",t,""),Gn}function Ur(t,e,n){const r=y(),o=function Rr(t,e,n,r){return Le(t,cr(),n)?e+R(n)+r:O}(r,t,e,n);return o!==O&&on(r,Ue(),o),Ur}const qn=void 0;var J0=["en",[["a","p"],["AM","PM"],qn],[["AM","PM"],qn,qn],[["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"]],qn,[["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"]],qn,[["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}",qn,"{1} 'at' {0}",qn],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function W0(t){const n=Math.floor(Math.abs(t)),r=t.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let $r={};function qe(t){const e=function Q0(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=om(e);if(n)return n;const r=e.split("-")[0];if(n=om(r),n)return n;if("en"===r)return J0;throw new Error(`Missing locale data for the locale "${t}".`)}function om(t){return t in $r||($r[t]=K.ng&&K.ng.common&&K.ng.common.locales&&K.ng.common.locales[t]),$r[t]}var b=(()=>((b=b||{})[b.LocaleId=0]="LocaleId",b[b.DayPeriodsFormat=1]="DayPeriodsFormat",b[b.DayPeriodsStandalone=2]="DayPeriodsStandalone",b[b.DaysFormat=3]="DaysFormat",b[b.DaysStandalone=4]="DaysStandalone",b[b.MonthsFormat=5]="MonthsFormat",b[b.MonthsStandalone=6]="MonthsStandalone",b[b.Eras=7]="Eras",b[b.FirstDayOfWeek=8]="FirstDayOfWeek",b[b.WeekendRange=9]="WeekendRange",b[b.DateFormat=10]="DateFormat",b[b.TimeFormat=11]="TimeFormat",b[b.DateTimeFormat=12]="DateTimeFormat",b[b.NumberSymbols=13]="NumberSymbols",b[b.NumberFormats=14]="NumberFormats",b[b.CurrencyCode=15]="CurrencyCode",b[b.CurrencySymbol=16]="CurrencySymbol",b[b.CurrencyName=17]="CurrencyName",b[b.Currencies=18]="Currencies",b[b.Directionality=19]="Directionality",b[b.PluralCase=20]="PluralCase",b[b.ExtraData=21]="ExtraData",b))();const Es="en-US";let im=Es;function Rl(t,e,n,r,o){if(t=V(t),Array.isArray(t))for(let i=0;i>20;if(Tr(t)||!t.multi){const h=new mo(u,o,v),p=Ol(a,e,o?c:c+f,d);-1===p?(es(vo(l,s),i,a),Fl(i,t,e.length),e.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=Ol(a,e,c+f,d),p=Ol(a,e,c,c+f),m=h>=0&&n[h],_=p>=0&&n[p];if(o&&!_||!o&&!m){es(vo(l,s),i,a);const D=function WS(t,e,n,r,o){const i=new mo(t,n,v);return i.multi=[],i.index=e,i.componentProviders=0,Tm(i,o,r&&!n),i}(o?zS:qS,n.length,o,r,u);!o&&_&&(n[p].providerFactory=D),Fl(i,t,e.length,0),e.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(D),s.push(D)}else Fl(i,t,h>-1?h:p,Tm(n[o?p:h],u,!o&&r));!o&&r&&_&&n[p].componentProviders++}}}function Fl(t,e,n,r){const o=Tr(e),i=function hM(t){return!!t.useClass}(e);if(o||i){const u=(i?V(e.useClass):e).prototype.ngOnDestroy;if(u){const l=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){const c=l.indexOf(n);-1===c?l.push(n,[r,u]):l[c+1].push(r,u)}else l.push(n,u)}}}function Tm(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Ol(t,e,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function GS(t,e,n){const r=J();if(r.firstCreatePass){const o=Mt(t);Rl(n,r.data,r.blueprint,o,!0),Rl(e,r.data,r.blueprint,o,!1)}}(r,o?o(t):t,e)}}class xm{}class ZS{resolveComponentFactory(e){throw function QS(t){const e=Error(`No component factory found for ${Z(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(e)}}let qr=(()=>{class t{}return t.NULL=new ZS,t})();function KS(){return zr(Ee(),y())}function zr(t,e){return new st(mt(t,e))}let st=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=KS,t})();class Rm{}let un=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function eA(){const t=y(),n=nt(Ee().index,t);return function XS(t){return t[L]}(Vt(n)?n:t)}(),t})(),tA=(()=>{class t{}return t.\u0275prov=F({token:t,providedIn:"root",factory:()=>null}),t})();class Wo{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const nA=new Wo("13.2.0"),kl={};function Ts(t,e,n,r,o=!1){for(;null!==n;){const i=e[n.index];if(null!==i&&r.push(_e(i)),Et(i))for(let a=10;a-1&&(Lu(e,r),ns(n,r))}this._attachedToViewContainer=!1}xh(this._lView[1],this._lView)}onDestroy(e){!function dp(t,e,n,r){const o=Cp(e);null===n?o.push(r):(o.push(n),t.firstCreatePass&&bp(t).push(r,o.length-1))}(this._lView[1],this._lView,null,e)}markForCheck(){al(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ll(this._lView[1],this._lView,this.context)}checkNoChanges(){!function nM(t,e,n){Gi(!0);try{ll(t,e,n)}finally{Gi(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new W(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Yw(t,e){Oo(t,e,e[L],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new W(902,"");this._appRef=e}}class rA extends Jo{constructor(e){super(e),this._view=e}detectChanges(){Dp(this._view)}checkNoChanges(){!function rM(t){Gi(!0);try{Dp(t)}finally{Gi(!1)}}(this._view)}get context(){return null}}class Fm extends qr{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const n=Pe(e);return new Vl(n,this.ngModule)}}function Om(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const iA=new j("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>bh});class Vl extends xm{constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=function vE(t){return t.map(yE).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Om(this.componentDef.inputs)}get outputs(){return Om(this.componentDef.outputs)}create(e,n,r,o){const i=(o=o||this.ngModule)?function sA(t,e){return{get:(n,r,o)=>{const i=t.get(n,kl,o);return i!==kl||r===kl?i:e.get(n,r,o)}}}(e,o.injector):e,s=i.get(Rm,Df),a=i.get(tA,null),u=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=r?function cp(t,e,n){if(fe(t))return t.selectRootElement(e,n===kt.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(u,r,this.componentDef.encapsulation):Vu(s.createRenderer(null,this.componentDef),l,function oA(t){const e=t.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(l)),d=this.componentDef.onPush?576:528,f=function Up(t,e){return{components:[],scheduler:t||bh,clean:oM,playerHandler:e||null,flags:0}}(),h=ms(0,null,null,1,0,null,null,null,null,null),p=Po(null,h,f,d,null,null,s,u,a,i);let m,_;qi(p);try{const D=function Bp(t,e,n,r,o,i){const s=n[1];n[20]=t;const u=Mr(s,20,2,"#host",null),l=u.mergedAttrs=e.hostAttrs;null!==l&&(vs(u,l,!0),null!==t&&(Zi(o,t,l),null!==u.classes&&$u(o,t,u.classes),null!==u.styles&&Uh(o,t,u.styles)));const c=r.createRenderer(t,e),d=Po(n,up(e),null,e.onPush?64:16,n[20],u,r,c,i||null,null);return s.firstCreatePass&&(es(vo(u,n),s,e.type),mp(s,u),yp(u,n.length,1)),ys(n,d),n[20]=d}(c,this.componentDef,p,s,u);if(c)if(r)Zi(u,c,["ng-version",nA.full]);else{const{attrs:g,classes:w}=function _E(t){const e=[],n=[];let r=1,o=2;for(;r0&&$u(u,c,w.join(" "))}if(_=Ya(h,20),void 0!==n){const g=_.projection=[];for(let w=0;wu(s,e)),e.contentQueries){const u=Ee();e.contentQueries(1,s,u.directiveStart)}const a=Ee();return!i.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(bn(a.index),pp(n[1],a,0,a.directiveStart,a.directiveEnd,e),gp(e,s)),s}(D,this.componentDef,p,f,[EM]),ko(h,p,null)}finally{zi()}return new uA(this.componentType,m,zr(_,p),p,_)}}class uA extends class JS{}{constructor(e,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new rA(o),this.componentType=e}get injector(){return new hr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class ln{}class Pm{}const Wr=new Map;class Lm extends ln{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Fm(this);const r=ht(e);this._bootstrapComponents=Ut(r.bootstrap),this._r3Injector=Tp(e,n,[{provide:ln,useValue:this},{provide:qr,useValue:this.componentFactoryResolver}],Z(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,n=Re.THROW_IF_NOT_FOUND,r=P.Default){return e===Re||e===ln||e===dl?this:this._r3Injector.get(e,n,r)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Ll extends Pm{constructor(e){super(),this.moduleType=e,null!==ht(e)&&function cA(t){const e=new Set;!function n(r){const o=ht(r,!0),i=o.id;null!==i&&(function km(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${Z(e)} vs ${Z(e.name)}`)}(i,Wr.get(i),r),Wr.set(i,r));const s=Ut(o.imports);for(const a of s)e.has(a)||(e.add(a),n(a))}(t)}(e)}create(e){return new Lm(this.moduleType,e)}}function jl(t,e,n,r){return function Bm(t,e,n,r,o,i){const s=e+n;return Le(t,s,o)?Gt(t,s+1,i?r.call(i,o):r(o)):Qo(t,s+1)}(y(),He(),t,e,n,r)}function Qo(t,e){const n=t[e];return n===O?void 0:n}function Hm(t,e,n,r,o,i,s){const a=e+n;return function $n(t,e,n,r){const o=Le(t,e,n);return Le(t,e+1,r)||o}(t,a,o,i)?Gt(t,a+2,s?r.call(s,o,i):r(o,i)):Qo(t,a+2)}function Bl(t,e){const n=J();let r;const o=t+20;n.firstCreatePass?(r=function _A(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}}(e,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=Hn(r.type)),s=yn(v);try{const a=Yi(!1),u=i();return Yi(a),function kM(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}(n,y(),o,u),u}finally{yn(s)}}function Hl(t,e,n,r){const o=t+20,i=y(),s=lr(i,o);return function Zo(t,e){return t[1].data[e].pure}(i,o)?Hm(i,He(),e,s.transform,n,r,s):s.transform(n,r)}function Ul(t){return e=>{setTimeout(t,void 0,e)}}const ge=class EA extends Yt{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,r){var o,i,s;let a=e,u=n||(()=>null),l=r;if(e&&"object"==typeof e){const d=e;a=null===(o=d.next)||void 0===o?void 0:o.bind(d),u=null===(i=d.error)||void 0===i?void 0:i.bind(d),l=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(u=Ul(u),a&&(a=Ul(a)),l&&(l=Ul(l)));const c=super.subscribe({next:a,error:u,complete:l});return e instanceof de&&e.add(c),c}};Symbol;let cn=(()=>{class t{}return t.__NG_ELEMENT_ID__=IA,t})();const SA=cn,AA=class extends SA{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(e){const n=this._declarationTContainer.tViews,r=Po(this._declarationLView,n,e,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(r[19]=i.createEmbeddedView(n)),ko(n,r,e),new Jo(r)}};function IA(){return function xs(t,e){return 4&t.type?new AA(e,t,zr(t,e)):null}(Ee(),y())}let Nt=(()=>{class t{}return t.__NG_ELEMENT_ID__=TA,t})();function TA(){return function Wm(t,e){let n;const r=e[t.index];if(Et(r))n=r;else{let o;if(8&t.type)o=_e(r);else{const i=e[L];o=i.createComment("");const s=mt(t,e);Un(i,cs(i,s),o,function iE(t,e){return fe(t)?t.nextSibling(e):e.nextSibling}(i,s),!1)}e[t.index]=n=_p(r,e,o,t),ys(e,n)}return new qm(n,t,e)}(Ee(),y())}const xA=Nt,qm=class extends xA{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return zr(this._hostTNode,this._hostLView)}get injector(){return new hr(this._hostTNode,this._hostLView)}get parentInjector(){const e=Xi(this._hostTNode,this._hostLView);if(kf(e)){const n=fr(e,this._hostLView),r=dr(e);return new hr(n[1].data[r+8],n)}return new hr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=zm(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,n,r){const o=e.createEmbeddedView(n||{});return this.insert(o,r),o}createComponent(e,n,r,o,i){const s=e&&!function bo(t){return"function"==typeof t}(e);let a;if(s)a=n;else{const d=n||{};a=d.index,r=d.injector,o=d.projectableNodes,i=d.ngModuleRef}const u=s?e:new Vl(Pe(e)),l=r||this.parentInjector;if(!i&&null==u.ngModule&&l){const d=l.get(ln,null);d&&(i=d)}const c=u.create(l,o,void 0,i);return this.insert(c.hostView,a),c}insert(e,n){const r=e._lView,o=r[1];if(function KC(t){return Et(t[3])}(r)){const c=this.indexOf(e);if(-1!==c)this.detach(c);else{const d=r[3],f=new qm(d,d[6],d[3]);f.detach(f.indexOf(e))}}const i=this._adjustIndex(n),s=this._lContainer;!function eE(t,e,n,r){const o=10+r,i=n.length;r>0&&(n[o-1][4]=e),r{class t{constructor(n){this.appInits=n,this.resolve=Fs,this.reject=Fs,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{i.subscribe({complete:a,error:u})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return t.\u0275fac=function(n){return new(n||t)(E(Os,8))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const Yo=new j("AppId"),oI={provide:Yo,useFactory:function rI(){return`${oc()}${oc()}${oc()}`},deps:[]};function oc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const gy=new j("Platform Initializer"),Ps=new j("Platform ID"),my=new j("appBootstrapListener");let yy=(()=>{class t{log(n){console.log(n)}warn(n){console.warn(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const An=new j("LocaleId"),vy=new j("DefaultCurrencyCode");class iI{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}}let ks=(()=>{class t{compileModuleSync(n){return new Ll(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=Ut(ht(n).declarations).reduce((s,a)=>{const u=Pe(a);return u&&s.push(new Vl(u)),s},[]);return new iI(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const aI=(()=>Promise.resolve(0))();function ic(t){"undefined"==typeof Zone?aI.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ie{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ge(!1),this.onMicrotaskEmpty=new ge(!1),this.onStable=new ge(!1),this.onError=new ge(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function uI(){let t=K.requestAnimationFrame,e=K.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function dI(t){const e=()=>{!function cI(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(K,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ac(t),t.isCheckStableRunning=!0,sc(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ac(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return _y(t),n.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||t.shouldCoalesceRunChangeDetection)&&e(),Dy(t)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return _y(t),n.invoke(o,i,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&e(),Dy(t)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,ac(t),sc(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ie.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ie.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,lI,Fs,Fs);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}}const lI={};function sc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function ac(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function _y(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Dy(t){t._nesting--,sc(t)}class fI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ge,this.onMicrotaskEmpty=new ge,this.onStable=new ge,this.onError=new ge}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,o){return e.apply(n,r)}}let uc=(()=>{class t{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ie.assertNotInAngularZone(),ic(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())ic(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,o){return[]}}return t.\u0275fac=function(n){return new(n||t)(E(Ie))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),Cy=(()=>{class t{constructor(){this._applications=new Map,lc.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return lc.findTestabilityInTree(this,n,r)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();class hI{addToWindow(e){}findTestabilityInTree(e,n,r){return null}}let Rt,lc=new hI;const by=new j("AllowMultipleToken");class wy{constructor(e,n){this.name=e,this.token=n}}function Ey(t,e,n=[]){const r=`Platform: ${e}`,o=new j(r);return(i=[])=>{let s=My();if(!s||s.injector.get(by,!1))if(t)t(n.concat(i).concat({provide:o,useValue:!0}));else{const a=n.concat(i).concat({provide:o,useValue:!0},{provide:fl,useValue:"platform"});!function yI(t){if(Rt&&!Rt.destroyed&&!Rt.injector.get(by,!1))throw new W(400,"");Rt=t.get(Sy);const e=t.get(gy,null);e&&e.forEach(n=>n())}(Re.create({providers:a,name:r}))}return function vI(t){const e=My();if(!e)throw new W(401,"");return e}()}}function My(){return Rt&&!Rt.destroyed?Rt:null}let Sy=(()=>{class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function _I(t,e){let n;return n="noop"===t?new fI:("zone.js"===t?void 0:t)||new Ie({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),u=[{provide:Ie,useValue:a}];return a.run(()=>{const l=Re.create({providers:u,parent:this.injector,name:n.moduleType.name}),c=n.create(l),d=c.injector.get(br,null);if(!d)throw new W(402,"");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{d.handleError(h)}});c.onDestroy(()=>{cc(this._modules,c),f.unsubscribe()})}),function DI(t,e,n){try{const r=n();return Ho(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(d,a,()=>{const f=c.injector.get(Qr);return f.runInitializers(),f.donePromise.then(()=>(function X0(t){Ye(t,"Expected localeId to be defined"),"string"==typeof t&&(im=t.toLowerCase().replace(/_/g,"-"))}(c.injector.get(An,Es)||Es),this._moduleDoBootstrap(c),c))})})}bootstrapModule(n,r=[]){const o=Ay({},r);return function gI(t,e,n){const r=new Ll(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(Xo);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new W(403,"");n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new W(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(n){return new(n||t)(E(Re))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();function Ay(t,e){return Array.isArray(e)?e.reduce(Ay,t):Object.assign(Object.assign({},t),e)}let Xo=(()=>{class t{constructor(n,r,o,i,s){this._zone=n,this._injector=r,this._exceptionHandler=o,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new ie(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),u=new ie(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Ie.assertNotInAngularZone(),ic(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{Ie.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),d.unsubscribe()}});this.isStable=function uC(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return Ri(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof ie?t[0]:lo(e)(Fa(t,n))}(a,u.pipe(function yC(){return t=>Oa()(function pC(t,e){return function(r){let o;if(o="function"==typeof t?t:function(){return t},"function"==typeof e)return r.lift(new gC(o,e));const i=Object.create(r,dC);return i.source=r,i.subjectFactory=o,i}}(mC)(t))}()))}bootstrap(n,r){if(!this._initStatus.done)throw new W(405,"");let o;o=n instanceof xm?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const i=function mI(t){return t.isBoundToModule}(o)?void 0:this._injector.get(ln),a=o.create(Re.NULL,[],r||o.selector,i),u=a.location.nativeElement,l=a.injector.get(uc,null),c=l&&a.injector.get(Cy);return l&&c&&c.registerApplication(u,l),a.onDestroy(()=>{this.detachView(a.hostView),cc(this.components,a),c&&c.unregisterApplication(u)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new W(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;cc(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(my,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(n){return new(n||t)(E(Ie),E(Re),E(br),E(qr),E(Qr))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();function cc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let dc=(()=>{class t{}return t.__NG_ELEMENT_ID__=wI,t})();function wI(t){return function EI(t,e,n){if(Bi(t)&&!n){const r=nt(t.index,e);return new Jo(r,r)}return 47&t.type?new Jo(e[16],e):null}(Ee(),y(),16==(16&t))}class ky{constructor(){}supports(e){return Lo(e)}create(e){return new xI(e)}}const TI=(t,e)=>e;class xI{constructor(e){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=e||TI}forEachItem(e){let n;for(n=this._itHead;null!==n;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,o){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,i,o)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,i,o)):e=this._addAfter(new NI(n,r),i,o),e}_verifyReinsertion(e,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;null!==e;){const n=e._next;this._addToRemovals(this._unlink(e)),e=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const o=e._prevRemoved,i=e._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){const o=null===n?this._itHead:n._next;return e._next=o,e._prev=n,null===o?this._itTail=e:o._prev=e,null===n?this._itHead=e:n._next=e,null===this._linkedRecords&&(this._linkedRecords=new Vy),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const n=e._prev,r=e._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Vy),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class NI{constructor(e,n){this.item=e,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class RI{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const n=e._prevDup,r=e._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Vy{constructor(){this.map=new Map}put(e){const n=e.trackById;let r=this.map.get(n);r||(r=new RI,this.map.set(n,r)),r.add(e)}get(e,n){const o=this.map.get(e);return o?o.get(e,n):null}remove(e){const n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ly(t,e,n){const r=t.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,n){if(e){const r=e._prev;return n._next=e,n._prev=r,e._prev=n,r&&(r._next=n),e===this._mapHead&&(this._mapHead=n),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(e,n){if(this._records.has(e)){const o=this._records.get(e);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new OI(e);return this._records.set(e,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,n){Object.is(n,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=n,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,n){e instanceof Map?e.forEach(n):Object.keys(e).forEach(r=>n(e[r],r))}}class OI{constructor(e){this.key=e,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 By(){return new ei([new ky])}let ei=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||By()),deps:[[t,new _r,new Bt]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new W(901,"")}}return t.\u0275prov=F({token:t,providedIn:"root",factory:By}),t})();function Hy(){return new Zr([new jy])}let Zr=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||Hy()),deps:[[t,new _r,new Bt]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new W(901,"")}}return t.\u0275prov=F({token:t,providedIn:"root",factory:Hy}),t})();const PI=[new jy],VI=new ei([new ky]),LI=new Zr(PI),jI=Ey(null,"core",[{provide:Ps,useValue:"unknown"},{provide:Sy,deps:[Re]},{provide:Cy,deps:[]},{provide:yy,deps:[]}]),GI=[{provide:Xo,useClass:Xo,deps:[Ie,Re,br,qr,Qr]},{provide:iA,deps:[Ie],useFactory:function qI(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(n){e.push(n)}}},{provide:Qr,useClass:Qr,deps:[[new Bt,Os]]},{provide:ks,useClass:ks,deps:[]},oI,{provide:ei,useFactory:function BI(){return VI},deps:[]},{provide:Zr,useFactory:function HI(){return LI},deps:[]},{provide:An,useFactory:function UI(t){return t||function $I(){return"undefined"!=typeof $localize&&$localize.locale||Es}()},deps:[[new Ao(An),new Bt,new _r]]},{provide:vy,useValue:"USD"}];let zI=(()=>{class t{constructor(n){}}return t.\u0275fac=function(n){return new(n||t)(E(Xo))},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({providers:GI}),t})(),Ls=null;function Jt(){return Ls}const at=new j("DocumentToken");let Wn=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:function(){return function ZI(){return E(Uy)}()},providedIn:"platform"}),t})();const KI=new j("Location Initialized");let Uy=(()=>{class t extends Wn{constructor(n){super(),this._doc=n,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Jt().getBaseHref(this._doc)}onPopState(n){const r=Jt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Jt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(n){this.location.pathname=n}pushState(n,r,o){$y()?this._history.pushState(n,r,o):this.location.hash=o}replaceState(n,r,o){$y()?this._history.replaceState(n,r,o):this.location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return t.\u0275fac=function(n){return new(n||t)(E(at))},t.\u0275prov=F({token:t,factory:function(){return function YI(){return new Uy(E(at))}()},providedIn:"platform"}),t})();function $y(){return!!window.history.pushState}function mc(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function Gy(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function dn(t){return t&&"?"!==t[0]?"?"+t:t}let Kr=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:function(){return function XI(t){const e=E(at).location;return new qy(E(Wn),e&&e.origin||"")}()},providedIn:"root"}),t})();const yc=new j("appBaseHref");let qy=(()=>{class t extends Kr{constructor(n,r){if(super(),this._platformLocation=n,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=r}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return mc(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+dn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+dn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+dn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformLocation).historyGo)||void 0===o||o.call(r,n)}}return t.\u0275fac=function(n){return new(n||t)(E(Wn),E(yc,8))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),eT=(()=>{class t extends Kr{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=mc(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+dn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+dn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformLocation).historyGo)||void 0===o||o.call(r,n)}}return t.\u0275fac=function(n){return new(n||t)(E(Wn),E(yc,8))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),vc=(()=>{class t{constructor(n,r){this._subject=new ge,this._urlChangeListeners=[],this._platformStrategy=n;const o=this._platformStrategy.getBaseHref();this._platformLocation=r,this._baseHref=Gy(zy(o)),this._platformStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}path(n=!1){return this.normalize(this._platformStrategy.path(n))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+dn(r))}normalize(n){return t.stripTrailingSlash(function nT(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,zy(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._platformStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+dn(r)),o)}replaceState(n,r="",o=null){this._platformStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+dn(r)),o)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformStrategy).historyGo)||void 0===o||o.call(r,n)}onUrlChange(n){this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}))}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return t.normalizeQueryParams=dn,t.joinWithSlash=mc,t.stripTrailingSlash=Gy,t.\u0275fac=function(n){return new(n||t)(E(Kr),E(Wn))},t.\u0275prov=F({token:t,factory:function(){return function tT(){return new vc(E(Kr),E(Wn))}()},providedIn:"root"}),t})();function zy(t){return t.replace(/\/index.html$/,"")}var Ce=(()=>((Ce=Ce||{})[Ce.Zero=0]="Zero",Ce[Ce.One=1]="One",Ce[Ce.Two=2]="Two",Ce[Ce.Few=3]="Few",Ce[Ce.Many=4]="Many",Ce[Ce.Other=5]="Other",Ce))(),ve=(()=>((ve=ve||{})[ve.Format=0]="Format",ve[ve.Standalone=1]="Standalone",ve))(),G=(()=>((G=G||{})[G.Narrow=0]="Narrow",G[G.Abbreviated=1]="Abbreviated",G[G.Wide=2]="Wide",G[G.Short=3]="Short",G))(),ce=(()=>((ce=ce||{})[ce.Short=0]="Short",ce[ce.Medium=1]="Medium",ce[ce.Long=2]="Long",ce[ce.Full=3]="Full",ce))(),A=(()=>((A=A||{})[A.Decimal=0]="Decimal",A[A.Group=1]="Group",A[A.List=2]="List",A[A.PercentSign=3]="PercentSign",A[A.PlusSign=4]="PlusSign",A[A.MinusSign=5]="MinusSign",A[A.Exponential=6]="Exponential",A[A.SuperscriptingExponent=7]="SuperscriptingExponent",A[A.PerMille=8]="PerMille",A[A.Infinity=9]="Infinity",A[A.NaN=10]="NaN",A[A.TimeSeparator=11]="TimeSeparator",A[A.CurrencyDecimal=12]="CurrencyDecimal",A[A.CurrencyGroup=13]="CurrencyGroup",A))();function js(t,e){return Dt(qe(t)[b.DateFormat],e)}function Bs(t,e){return Dt(qe(t)[b.TimeFormat],e)}function Hs(t,e){return Dt(qe(t)[b.DateTimeFormat],e)}function _t(t,e){const n=qe(t),r=n[b.NumberSymbols][e];if(void 0===r){if(e===A.CurrencyDecimal)return n[b.NumberSymbols][A.Decimal];if(e===A.CurrencyGroup)return n[b.NumberSymbols][A.Group]}return r}const lT=function rm(t){return qe(t)[b.PluralCase]};function Jy(t){if(!t[b.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[b.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Dt(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function Dc(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const gT=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ti={},mT=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Te=(()=>((Te=Te||{})[Te.Short=0]="Short",Te[Te.ShortGMT=1]="ShortGMT",Te[Te.Long=2]="Long",Te[Te.Extended=3]="Extended",Te))(),T=(()=>((T=T||{})[T.FullYear=0]="FullYear",T[T.Month=1]="Month",T[T.Date=2]="Date",T[T.Hours=3]="Hours",T[T.Minutes=4]="Minutes",T[T.Seconds=5]="Seconds",T[T.FractionalSeconds=6]="FractionalSeconds",T[T.Day=7]="Day",T))(),B=(()=>((B=B||{})[B.DayPeriods=0]="DayPeriods",B[B.Days=1]="Days",B[B.Months=2]="Months",B[B.Eras=3]="Eras",B))();function yT(t,e,n,r){let o=function ST(t){if(Ky(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[o,i=1,s=1]=t.split("-").map(a=>+a);return Us(o,i-1,s)}const n=parseFloat(t);if(!isNaN(t-n))return new Date(n);let r;if(r=t.match(gT))return function AT(t){const e=new Date(0);let n=0,r=0;const o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),o.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-n,a=Number(t[5]||0)-r,u=Number(t[6]||0),l=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,s,a,u,l),e}(r)}const e=new Date(t);if(!Ky(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=fn(n,e)||e;let a,s=[];for(;e;){if(a=mT.exec(e),!a){s.push(e);break}{s=s.concat(a.slice(1));const c=s.pop();if(!c)break;e=c}}let u=o.getTimezoneOffset();r&&(u=Zy(r,u),o=function MT(t,e,n){const r=n?-1:1,o=t.getTimezoneOffset();return function ET(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,r*(Zy(e,o)-o))}(o,r,!0));let l="";return s.forEach(c=>{const d=function wT(t){if(bc[t])return bc[t];let e;switch(t){case"G":case"GG":case"GGG":e=oe(B.Eras,G.Abbreviated);break;case"GGGG":e=oe(B.Eras,G.Wide);break;case"GGGGG":e=oe(B.Eras,G.Narrow);break;case"y":e=be(T.FullYear,1,0,!1,!0);break;case"yy":e=be(T.FullYear,2,0,!0,!0);break;case"yyy":e=be(T.FullYear,3,0,!1,!0);break;case"yyyy":e=be(T.FullYear,4,0,!1,!0);break;case"Y":e=zs(1);break;case"YY":e=zs(2,!0);break;case"YYY":e=zs(3);break;case"YYYY":e=zs(4);break;case"M":case"L":e=be(T.Month,1,1);break;case"MM":case"LL":e=be(T.Month,2,1);break;case"MMM":e=oe(B.Months,G.Abbreviated);break;case"MMMM":e=oe(B.Months,G.Wide);break;case"MMMMM":e=oe(B.Months,G.Narrow);break;case"LLL":e=oe(B.Months,G.Abbreviated,ve.Standalone);break;case"LLLL":e=oe(B.Months,G.Wide,ve.Standalone);break;case"LLLLL":e=oe(B.Months,G.Narrow,ve.Standalone);break;case"w":e=Cc(1);break;case"ww":e=Cc(2);break;case"W":e=Cc(1,!0);break;case"d":e=be(T.Date,1);break;case"dd":e=be(T.Date,2);break;case"c":case"cc":e=be(T.Day,1);break;case"ccc":e=oe(B.Days,G.Abbreviated,ve.Standalone);break;case"cccc":e=oe(B.Days,G.Wide,ve.Standalone);break;case"ccccc":e=oe(B.Days,G.Narrow,ve.Standalone);break;case"cccccc":e=oe(B.Days,G.Short,ve.Standalone);break;case"E":case"EE":case"EEE":e=oe(B.Days,G.Abbreviated);break;case"EEEE":e=oe(B.Days,G.Wide);break;case"EEEEE":e=oe(B.Days,G.Narrow);break;case"EEEEEE":e=oe(B.Days,G.Short);break;case"a":case"aa":case"aaa":e=oe(B.DayPeriods,G.Abbreviated);break;case"aaaa":e=oe(B.DayPeriods,G.Wide);break;case"aaaaa":e=oe(B.DayPeriods,G.Narrow);break;case"b":case"bb":case"bbb":e=oe(B.DayPeriods,G.Abbreviated,ve.Standalone,!0);break;case"bbbb":e=oe(B.DayPeriods,G.Wide,ve.Standalone,!0);break;case"bbbbb":e=oe(B.DayPeriods,G.Narrow,ve.Standalone,!0);break;case"B":case"BB":case"BBB":e=oe(B.DayPeriods,G.Abbreviated,ve.Format,!0);break;case"BBBB":e=oe(B.DayPeriods,G.Wide,ve.Format,!0);break;case"BBBBB":e=oe(B.DayPeriods,G.Narrow,ve.Format,!0);break;case"h":e=be(T.Hours,1,-12);break;case"hh":e=be(T.Hours,2,-12);break;case"H":e=be(T.Hours,1);break;case"HH":e=be(T.Hours,2);break;case"m":e=be(T.Minutes,1);break;case"mm":e=be(T.Minutes,2);break;case"s":e=be(T.Seconds,1);break;case"ss":e=be(T.Seconds,2);break;case"S":e=be(T.FractionalSeconds,1);break;case"SS":e=be(T.FractionalSeconds,2);break;case"SSS":e=be(T.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Gs(Te.Short);break;case"ZZZZZ":e=Gs(Te.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Gs(Te.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Gs(Te.Long);break;default:return null}return bc[t]=e,e}(c);l+=d?d(o,n,u):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Us(t,e,n){const r=new Date(0);return r.setFullYear(t,e,n),r.setHours(0,0,0),r}function fn(t,e){const n=function rT(t){return qe(t)[b.LocaleId]}(t);if(ti[n]=ti[n]||{},ti[n][e])return ti[n][e];let r="";switch(e){case"shortDate":r=js(t,ce.Short);break;case"mediumDate":r=js(t,ce.Medium);break;case"longDate":r=js(t,ce.Long);break;case"fullDate":r=js(t,ce.Full);break;case"shortTime":r=Bs(t,ce.Short);break;case"mediumTime":r=Bs(t,ce.Medium);break;case"longTime":r=Bs(t,ce.Long);break;case"fullTime":r=Bs(t,ce.Full);break;case"short":const o=fn(t,"shortTime"),i=fn(t,"shortDate");r=$s(Hs(t,ce.Short),[o,i]);break;case"medium":const s=fn(t,"mediumTime"),a=fn(t,"mediumDate");r=$s(Hs(t,ce.Medium),[s,a]);break;case"long":const u=fn(t,"longTime"),l=fn(t,"longDate");r=$s(Hs(t,ce.Long),[u,l]);break;case"full":const c=fn(t,"fullTime"),d=fn(t,"fullDate");r=$s(Hs(t,ce.Full),[c,d])}return r&&(ti[n][e]=r),r}function $s(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(n,r){return null!=e&&r in e?e[r]:n})),t}function Ft(t,e,n="-",r,o){let i="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,i=n));let s=String(t);for(;s.length0||a>-n)&&(a+=n),t===T.Hours)0===a&&-12===n&&(a=12);else if(t===T.FractionalSeconds)return function vT(t,e){return Ft(t,3).substr(0,e)}(a,e);const u=_t(s,A.MinusSign);return Ft(a,e,u,r,o)}}function oe(t,e,n=ve.Format,r=!1){return function(o,i){return function DT(t,e,n,r,o,i){switch(n){case B.Months:return function sT(t,e,n){const r=qe(t),i=Dt([r[b.MonthsFormat],r[b.MonthsStandalone]],e);return Dt(i,n)}(e,o,r)[t.getMonth()];case B.Days:return function iT(t,e,n){const r=qe(t),i=Dt([r[b.DaysFormat],r[b.DaysStandalone]],e);return Dt(i,n)}(e,o,r)[t.getDay()];case B.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(i){const l=function cT(t){const e=qe(t);return Jy(e),(e[b.ExtraData][2]||[]).map(r=>"string"==typeof r?Dc(r):[Dc(r[0]),Dc(r[1])])}(e),c=function dT(t,e,n){const r=qe(t);Jy(r);const i=Dt([r[b.ExtraData][0],r[b.ExtraData][1]],e)||[];return Dt(i,n)||[]}(e,o,r),d=l.findIndex(f=>{if(Array.isArray(f)){const[h,p]=f,m=s>=h.hours&&a>=h.minutes,_=s0?Math.floor(o/60):Math.ceil(o/60);switch(t){case Te.Short:return(o>=0?"+":"")+Ft(s,2,i)+Ft(Math.abs(o%60),2,i);case Te.ShortGMT:return"GMT"+(o>=0?"+":"")+Ft(s,1,i);case Te.Long:return"GMT"+(o>=0?"+":"")+Ft(s,2,i)+":"+Ft(Math.abs(o%60),2,i);case Te.Extended:return 0===r?"Z":(o>=0?"+":"")+Ft(s,2,i)+":"+Ft(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${t}"`)}}}function Qy(t){return Us(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Cc(t,e=!1){return function(n,r){let o;if(e){const i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{const i=Qy(n),s=function bT(t){const e=Us(t,0,1).getDay();return Us(t,0,1+(e<=4?4:11)-e)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Ft(o,t,_t(r,A.MinusSign))}}function zs(t,e=!1){return function(n,r){return Ft(Qy(n).getFullYear(),t,_t(r,A.MinusSign),e)}}const bc={};function Zy(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function Ky(t){return t instanceof Date&&!isNaN(t.valueOf())}class Js{}let LT=(()=>{class t extends Js{constructor(n){super(),this.locale=n}getPluralCategory(n,r){switch(lT(r||this.locale)(n)){case Ce.Zero:return"zero";case Ce.One:return"one";case Ce.Two:return"two";case Ce.Few:return"few";case Ce.Many:return"many";default:return"other"}}}return t.\u0275fac=function(n){return new(n||t)(E(An))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();function tv(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}class HT{constructor(e,n,r,o){this.$implicit=e,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ac=(()=>{class t{constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new HT(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),nv(a,o)}});for(let o=0,i=r.length;o{nv(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return t.\u0275fac=function(n){return new(n||t)(v(Nt),v(cn),v(ei))},t.\u0275dir=x({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function nv(t,e){t.context.$implicit=e.item}let Ic=(()=>{class t{constructor(n,r){this._viewContainer=n,this._context=new UT,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){rv("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){rv("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return t.\u0275fac=function(n){return new(n||t)(v(Nt),v(cn))},t.\u0275dir=x({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class UT{constructor(){this.$implicit=null,this.ngIf=null}}function rv(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Z(e)}'.`)}const rx=new j("DATE_PIPE_DEFAULT_TIMEZONE");let Nc=(()=>{class t{constructor(n,r){this.locale=n,this.defaultTimezone=r}transform(n,r="mediumDate",o,i){var s;if(null==n||""===n||n!=n)return null;try{return yT(n,r,i||this.locale,null!==(s=null!=o?o:this.defaultTimezone)&&void 0!==s?s:void 0)}catch(a){throw function Ot(t,e){return new W(2100,"")}()}}}return t.\u0275fac=function(n){return new(n||t)(v(An,16),v(rx,24))},t.\u0275pipe=Je({name:"date",type:t,pure:!0}),t})(),px=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({providers:[{provide:Js,useClass:LT}]}),t})();let vx=(()=>{class t{}return t.\u0275prov=F({token:t,providedIn:"root",factory:()=>new _x(E(at),window)}),t})();class _x{constructor(e,n){this.document=e,this.window=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const n=function Dx(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(e)||i.querySelector(`[name="${e}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,e);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=e)}}scrollToElement(e){const n=e.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=av(this.window.history)||av(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function av(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class uv{}class Oc extends class Cx extends class QI{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function JI(t){Ls||(Ls=t)}(new Oc)}onAndCancel(e,n,r){return e.addEventListener(n,r,!1),()=>{e.removeEventListener(n,r,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=function bx(){return ri=ri||document.querySelector("base"),ri?ri.getAttribute("href"):null}();return null==n?null:function wx(t){Qs=Qs||document.createElement("a"),Qs.setAttribute("href",t);const e=Qs.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){ri=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return tv(document.cookie,e)}}let Qs,ri=null;const lv=new j("TRANSITION_ID"),Mx=[{provide:Os,useFactory:function Ex(t,e,n){return()=>{n.get(Qr).donePromise.then(()=>{const r=Jt(),o=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let i=0;i{const i=e.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},K.getAllAngularTestabilities=()=>e.getAllTestabilities(),K.getAllAngularRootElements=()=>e.getAllRootElements(),K.frameworkStabilizers||(K.frameworkStabilizers=[]),K.frameworkStabilizers.push(r=>{const o=K.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(u){s=s||u,i--,0==i&&r(s)};o.forEach(function(u){u.whenStable(a)})})}findTestabilityInTree(e,n,r){if(null==n)return null;const o=e.getTestability(n);return null!=o?o:r?Jt().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null}}let Sx=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const Zs=new j("EventManagerPlugins");let Ks=(()=>{class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>o.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),r.add(o))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),oi=(()=>{class t extends dv{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,o){n.forEach(i=>{const s=this._doc.createElement("style");s.textContent=i,o.push(r.appendChild(s))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(fv),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(n,o,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(fv))}}return t.\u0275fac=function(n){return new(n||t)(E(at))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();function fv(t){Jt().remove(t)}const kc={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/"},Vc=/%COMP%/g;function Ys(t,e,n){for(let r=0;r{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Lc=(()=>{class t{constructor(n,r,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new jc(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case kt.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new Rx(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(n),o}case 1:case kt.ShadowDom:return new Fx(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const o=Ys(r.id,r.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(n){return new(n||t)(E(Ks),E(oi),E(Yo))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();class jc{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,n){return n?document.createElementNS(kc[n],e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){e.appendChild(n)}insertBefore(e,n,r){e&&e.insertBefore(n,r)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,o){if(o){n=o+":"+n;const i=kc[o];i?e.setAttributeNS(i,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){const o=kc[r];o?e.removeAttributeNS(o,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,o){o&(ot.DashCase|ot.Important)?e.style.setProperty(n,r,o&ot.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&ot.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e[n]=r}setValue(e,n){e.nodeValue=n}listen(e,n,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,gv(r)):this.eventManager.addEventListener(e,n,gv(r))}}class Rx extends jc{constructor(e,n,r,o){super(e),this.component=r;const i=Ys(o+"-"+r.id,r.styles,[]);n.addStyles(i),this.contentAttr=function Tx(t){return"_ngcontent-%COMP%".replace(Vc,t)}(o+"-"+r.id),this.hostAttr=function xx(t){return"_nghost-%COMP%".replace(Vc,t)}(o+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,n){const r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}}class Fx extends jc{constructor(e,n,r,o){super(e),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=Ys(o.id,o.styles,[]);for(let s=0;s{class t extends cv{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return t.\u0275fac=function(n){return new(n||t)(E(at))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const yv=["alt","control","meta","shift"],kx={"\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"},vv={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Vx={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Lx=(()=>{class t extends cv{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,o){const i=t.parseEventName(r),s=t.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Jt().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=t._normalizeKey(r.pop());let s="";if(yv.forEach(u=>{const l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const a={};return a.domEventName=o,a.fullKey=s,a}static getEventFullKey(n){let r="",o=function jx(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&vv.hasOwnProperty(e)&&(e=vv[e]))}return kx[e]||e}(n);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),yv.forEach(i=>{i!=o&&Vx[i](n)&&(r+=i+".")}),r+=o,r}static eventCallback(n,r,o){return i=>{t.getEventFullKey(i)===n&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return t.\u0275fac=function(n){return new(n||t)(E(at))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const $x=Ey(jI,"browser",[{provide:Ps,useValue:"browser"},{provide:gy,useValue:function Bx(){Oc.makeCurrent(),Pc.init()},multi:!0},{provide:at,useFactory:function Ux(){return function WC(t){Za=t}(document),document},deps:[]}]),Gx=[{provide:fl,useValue:"root"},{provide:br,useFactory:function Hx(){return new br},deps:[]},{provide:Zs,useClass:Ox,multi:!0,deps:[at,Ie,Ps]},{provide:Zs,useClass:Lx,multi:!0,deps:[at]},{provide:Lc,useClass:Lc,deps:[Ks,oi,Yo]},{provide:Rm,useExisting:Lc},{provide:dv,useExisting:oi},{provide:oi,useClass:oi,deps:[at]},{provide:uc,useClass:uc,deps:[Ie]},{provide:Ks,useClass:Ks,deps:[Zs,Ie]},{provide:uv,useClass:Sx,deps:[]}];let qx=(()=>{class t{constructor(n){if(n)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(n){return{ngModule:t,providers:[{provide:Yo,useValue:n.appId},{provide:lv,useExisting:Yo},Mx]}}}return t.\u0275fac=function(n){return new(n||t)(E(t,12))},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({providers:Gx,imports:[px,zI]}),t})();function Xs(t,e){return new ie(n=>{const r=t.length;if(0===r)return void n.complete();const o=new Array(r);let i=0,s=0;for(let a=0;a{l||(l=!0,s++),o[a]=c},error:c=>n.error(c),complete:()=>{i++,(i===r||!l)&&(s===r&&n.next(e?e.reduce((c,d,f)=>(c[d]=o[f],c),{}):o),n.complete())}}))}})}"undefined"!=typeof window&&window;let Cv=(()=>{class t{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return t.\u0275fac=function(n){return new(n||t)(v(un),v(st))},t.\u0275dir=x({type:t}),t})(),Jn=(()=>{class t extends Cv{}return t.\u0275fac=function(){let e;return function(r){return(e||(e=$e(t)))(r||t)}}(),t.\u0275dir=x({type:t,features:[X]}),t})();const Qt=new j("NgValueAccessor"),oN={provide:Qt,useExisting:ne(()=>ii),multi:!0},sN=new j("CompositionEventMode");let ii=(()=>{class t extends Cv{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function iN(){const t=Jt()?Jt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(n){this.setProperty("value",null==n?"":n)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return t.\u0275fac=function(n){return new(n||t)(v(un),v(st),v(sN,8))},t.\u0275dir=x({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){1&n&&Se("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[ue([oN]),X]}),t})();const je=new j("NgValidators"),xn=new j("NgAsyncValidators");function Sv(t){return function Tn(t){return null==t||0===t.length}(t.value)?{required:!0}:null}function si(t){return null}function Rv(t){return null!=t}function Fv(t){const e=Ho(t)?Oe(t):t;return Sl(e),e}function Ov(t){let e={};return t.forEach(n=>{e=null!=n?Object.assign(Object.assign({},e),n):e}),0===Object.keys(e).length?null:e}function Pv(t,e){return e.map(n=>n(t))}function kv(t){return t.map(e=>function uN(t){return!t.validate}(e)?e:n=>e.validate(n))}function Hc(t){return null!=t?function Vv(t){if(!t)return null;const e=t.filter(Rv);return 0==e.length?null:function(n){return Ov(Pv(n,e))}}(kv(t)):null}function Uc(t){return null!=t?function Lv(t){if(!t)return null;const e=t.filter(Rv);return 0==e.length?null:function(n){return function nN(...t){if(1===t.length){const e=t[0];if(Ii(e))return Xs(e,null);if(Aa(e)&&Object.getPrototypeOf(e)===Object.prototype){const n=Object.keys(e);return Xs(n.map(r=>e[r]),n)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Xs(t=1===t.length&&Ii(t[0])?t[0]:t,null).pipe(Q(n=>e(...n)))}return Xs(t,null)}(Pv(n,e).map(Fv)).pipe(Q(Ov))}}(kv(t)):null}function jv(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function $c(t){return t?Array.isArray(t)?t:[t]:[]}function ea(t,e){return Array.isArray(t)?t.includes(e):t===e}function Uv(t,e){const n=$c(e);return $c(t).forEach(o=>{ea(n,o)||n.push(o)}),n}function $v(t,e){return $c(e).filter(n=>!ea(t,n))}class Gv{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(e){this._rawValidators=e||[],this._composedValidatorFn=Hc(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Uc(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,n){return!!this.control&&this.control.hasError(e,n)}getError(e,n){return this.control?this.control.getError(e,n):null}}class Nn extends Gv{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class We extends Gv{get formDirective(){return null}get path(){return null}}class qv{constructor(e){this._cd=e}is(e){var n,r,o;return"submitted"===e?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(o=null===(r=this._cd)||void 0===r?void 0:r.control)||void 0===o?void 0:o[e])}}let Gc=(()=>{class t extends qv{constructor(n){super(n)}}return t.\u0275fac=function(n){return new(n||t)(v(Nn,2))},t.\u0275dir=x({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&bs("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))},features:[X]}),t})(),qc=(()=>{class t extends qv{constructor(n){super(n)}}return t.\u0275fac=function(n){return new(n||t)(v(We,10))},t.\u0275dir=x({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&bs("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))("ng-submitted",r.is("submitted"))},features:[X]}),t})();function ai(t,e){Jc(t,e),e.valueAccessor.writeValue(t.value),function mN(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Wv(t,e)})}(t,e),function vN(t,e){const n=(r,o)=>{e.valueAccessor.writeValue(r),o&&e.viewToModelUpdate(r)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function yN(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Wv(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function gN(t,e){if(e.valueAccessor.setDisabledState){const n=r=>{e.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function oa(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function Jc(t,e){const n=function Bv(t){return t._rawValidators}(t);null!==e.validator?t.setValidators(jv(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const r=function Hv(t){return t._rawAsyncValidators}(t);null!==e.asyncValidator?t.setAsyncValidators(jv(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const o=()=>t.updateValueAndValidity();oa(e._rawValidators,o),oa(e._rawAsyncValidators,o)}function Wv(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function sa(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const ui="VALID",aa="INVALID",Yr="PENDING",li="DISABLED";function Yc(t){return(ua(t)?t.validators:t)||null}function Zv(t){return Array.isArray(t)?Hc(t):t||null}function Xc(t,e){return(ua(e)?e.asyncValidators:t)||null}function Kv(t){return Array.isArray(t)?Uc(t):t||null}function ua(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}const ed=t=>t instanceof nd;function Xv(t){return(t=>t instanceof n_)(t)?t.value:t.getRawValue()}function e_(t,e){const n=ed(t),r=t.controls;if(!(n?Object.keys(r):r).length)throw new W(1e3,"");if(!r[e])throw new W(1001,"")}function t_(t,e){ed(t),t._forEachChild((r,o)=>{if(void 0===e[o])throw new W(1002,"")})}class td{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=Zv(this._rawValidators),this._composedAsyncValidatorFn=Kv(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===ui}get invalid(){return this.status===aa}get pending(){return this.status==Yr}get disabled(){return this.status===li}get enabled(){return this.status!==li}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=Zv(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Kv(e)}addValidators(e){this.setValidators(Uv(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Uv(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators($v(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators($v(e,this._rawAsyncValidators))}hasValidator(e){return ea(this._rawValidators,e)}hasAsyncValidator(e){return ea(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Yr,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const n=this._parentMarkedDirty(e.onlySelf);this.status=li,this.errors=null,this._forEachChild(r=>{r.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){const n=this._parentMarkedDirty(e.onlySelf);this.status=ui,this._forEachChild(r=>{r.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ui||this.status===Yr)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?li:ui}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Yr,this._hasOwnPendingAsyncValidator=!0;const n=Fv(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(!1!==n.emitEvent)}get(e){return function bN(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(n)),Array.isArray(e)&&0===e.length))return null;let r=t;return e.forEach(o=>{r=ed(r)?r.controls.hasOwnProperty(o)?r.controls[o]:null:(t=>t instanceof EN)(r)&&r.at(o)||null}),r}(this,e,".")}getError(e,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new ge,this.statusChanges=new ge}_calculateStatus(){return this._allControlsDisabled()?li:this.errors?aa:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Yr)?Yr:this._anyControlsHaveStatus(aa)?aa:ui}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){ua(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class n_ extends td{constructor(e=null,n,r){super(Yc(n),Xc(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ua(n)&&n.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(e)?e.value:e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){sa(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){sa(this._onDisabledChange,e)}_forEachChild(e){}_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(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class nd extends td{constructor(e,n,r){super(Yc(n),Xc(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,r={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){t_(this,e),Object.keys(e).forEach(r=>{e_(this,r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){null!=e&&(Object.keys(e).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((r,o)=>{r.reset(e[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,r)=>(e[r]=Xv(n),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&e(r,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const n of Object.keys(this.controls)){const r=this.controls[n];if(this.contains(n)&&e(r))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(e,n){let r=e;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class EN extends td{constructor(e,n,r){super(Yc(n),Xc(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,n={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(e,n,r={}){this.controls.splice(e,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),n&&(this.controls.splice(e,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,n={}){t_(this,e),e.forEach((r,o)=>{e_(this,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){null!=e&&(e.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e=[],n={}){this._forEachChild((r,o)=>{r.reset(e[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(e=>Xv(e))}clear(e={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((n,r)=>!!r._syncPendingControls()||n,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((n,r)=>{e(n,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(n=>n.enabled&&e(n))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const MN={provide:We,useExisting:ne(()=>di)},ci=(()=>Promise.resolve(null))();let di=(()=>{class t extends We{constructor(n,r){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new ge,this.form=new nd({},Hc(n),Uc(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){ci.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),ai(n.control,n),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){ci.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),sa(this._directives,n)})}addFormGroup(n){ci.then(()=>{const r=this._findContainer(n.path),o=new nd({});(function Jv(t,e){Jc(t,e)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){ci.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){ci.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function Qv(t,e){t._syncPendingControls(),e.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),!1}onReset(){this.resetForm()}resetForm(n){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return t.\u0275fac=function(n){return new(n||t)(v(je,10),v(xn,10))},t.\u0275dir=x({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&Se("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ue([MN]),X]}),t})();const AN={provide:Nn,useExisting:ne(()=>la)},i_=(()=>Promise.resolve(null))();let la=(()=>{class t extends Nn{constructor(n,r,o,i){super(),this.control=new n_,this._registered=!1,this.update=new ge,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Zc(t,e){if(!e)return null;let n,r,o;return Array.isArray(e),e.forEach(i=>{i.constructor===ii?n=i:function CN(t){return Object.getPrototypeOf(t.constructor)===Jn}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in n&&this._updateDisabled(n),function Qc(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function na(t,e){return[...e.path,t]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ai(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){i_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1})})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=""===r||r&&"false"!==r;i_.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(n){return new(n||t)(v(We,9),v(je,10),v(xn,10),v(Qt,10))},t.\u0275dir=x({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ue([AN]),X,tt]}),t})(),rd=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=x({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),a_=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({}),t})();const VN={provide:Qt,useExisting:ne(()=>fi),multi:!0};function p_(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let fi=(()=>{class t extends Jn{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;const r=this._getOptionId(n);null==r&&this.setProperty("selectedIndex",-1);const o=p_(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){const r=function LN(t){return t.split(":")[0]}(n);return this._optionMap.has(r)?this._optionMap.get(r):n}}return t.\u0275fac=function(){let e;return function(r){return(e||(e=$e(t)))(r||t)}}(),t.\u0275dir=x({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){1&n&&Se("change",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[ue([VN]),X]}),t})(),ad=(()=>{class t{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){null!=this._select&&(this._select._optionMap.set(this.id,n),this._setElementValue(p_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(n){return new(n||t)(v(st),v(un),v(fi,9))},t.\u0275dir=x({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const jN={provide:Qt,useExisting:ne(()=>ud),multi:!0};function g_(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let ud=(()=>{class t extends Jn{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){let r;if(this.value=n,Array.isArray(n)){const o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{const o=[],i=r.selectedOptions;if(void 0!==i){const s=i;for(let a=0;a{class t{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(g_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(g_(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(n){return new(n||t)(v(st),v(un),v(ud,9))},t.\u0275dir=x({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})(),Xr=(()=>{class t{constructor(){this._validator=si}ngOnChanges(n){if(this.inputName in n){const r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):si,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return null!=n}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=x({type:t,features:[tt]}),t})();const GN={provide:je,useExisting:ne(()=>hi),multi:!0};let hi=(()=>{class t extends Xr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=n=>function HN(t){return null!=t&&!1!==t&&"false"!=`${t}`}(n),this.createValidator=n=>Sv}enabled(n){return n}}return t.\u0275fac=function(){let e;return function(r){return(e||(e=$e(t)))(r||t)}}(),t.\u0275dir=x({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,r){2&n&&qt("required",r._enabled?"":null)},inputs:{required:"required"},features:[ue([GN]),X]}),t})(),ZN=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({imports:[[a_]]}),t})(),KN=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({imports:[ZN]}),t})();function k(...t){let e=t[t.length-1];return Ri(e)?(t.pop(),Ta(t,e)):Fa(t)}function eo(t,e){return Ne(t,e,1)}function Qn(t,e){return function(r){return r.lift(new YN(t,e))}}class YN{constructor(e,n){this.predicate=e,this.thisArg=n}call(e,n){return n.subscribe(new XN(e,this.predicate,this.thisArg))}}class XN extends le{constructor(e,n,r){super(e),this.predicate=n,this.thisArg=r,this.count=0}_next(e){let n;try{n=this.predicate.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}n&&this.destination.next(e)}}class M_{}class S_{}class hn{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(n=>{let r=e[n];const o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(o,r),this.maybeSetNormalizedName(n,o))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof hn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){const n=new hn;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof hn?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){const n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,n);const o=("a"===e.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=e.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}}class eR{encodeKey(e){return A_(e)}encodeValue(e){return A_(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const nR=/%(\d[a-f0-9])/gi,rR={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function A_(t){return encodeURIComponent(t).replace(nR,(e,n)=>{var r;return null!==(r=rR[n])&&void 0!==r?r:e})}function I_(t){return`${t}`}class Rn{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new eR,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function tR(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,i)),e.decodeValue(o.slice(i+1))],u=n.get(s)||[];u.push(a),n.set(s,u)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{const r=e.fromObject[n];this.map.set(n,Array.isArray(r)?r:[r])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){const n=[];return Object.keys(e).forEach(r=>{const o=e[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const n=new Rn({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const n=("a"===e.op?this.map.get(e.param):void 0)||[];n.push(I_(e.value)),this.map.set(e.param,n);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const o=r.indexOf(I_(e.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class oR{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function T_(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function x_(t){return"undefined"!=typeof Blob&&t instanceof Blob}function N_(t){return"undefined"!=typeof FormData&&t instanceof FormData}class pi{constructor(e,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function iR(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new hn),this.context||(this.context=new oR),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":af.set(h,e.setHeaders[h]),l)),e.setParams&&(c=Object.keys(e.setParams).reduce((f,h)=>f.set(h,e.setParams[h]),c)),new pi(r,o,s,{params:c,headers:l,context:d,reportProgress:u,responseType:i,withCredentials:a})}}var we=(()=>((we=we||{})[we.Sent=0]="Sent",we[we.UploadProgress=1]="UploadProgress",we[we.ResponseHeader=2]="ResponseHeader",we[we.DownloadProgress=3]="DownloadProgress",we[we.Response=4]="Response",we[we.User=5]="User",we))();class cd{constructor(e,n=200,r="OK"){this.headers=e.headers||new hn,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class dd extends cd{constructor(e={}){super(e),this.type=we.ResponseHeader}clone(e={}){return new dd({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class ca extends cd{constructor(e={}){super(e),this.type=we.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new ca({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class R_ extends cd{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function fd(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let gi=(()=>{class t{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof pi)i=n;else{let u,l;u=o.headers instanceof hn?o.headers:new hn(o.headers),o.params&&(l=o.params instanceof Rn?o.params:new Rn({fromObject:o.params})),i=new pi(n,r,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=k(i).pipe(eo(u=>this.handler.handle(u)));if(n instanceof pi||"events"===o.observe)return s;const a=s.pipe(Qn(u=>u instanceof ca));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(Q(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe(Q(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe(Q(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return a.pipe(Q(u=>u.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new Rn).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,fd(o,r))}post(n,r,o={}){return this.request("POST",n,fd(o,r))}put(n,r,o={}){return this.request("PUT",n,fd(o,r))}}return t.\u0275fac=function(n){return new(n||t)(E(M_))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();class F_{constructor(e,n){this.next=e,this.interceptor=n}handle(e){return this.interceptor.intercept(e,this.next)}}const O_=new j("HTTP_INTERCEPTORS");let aR=(()=>{class t{intercept(n,r){return r.handle(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const uR=/^\)\]\}',?\n/;let P_=(()=>{class t{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ie(r=>{const o=this.xhrFactory.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((h,p)=>o.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&o.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();o.responseType="json"!==h?h:"text"}const i=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=1223===o.status?204:o.status,p=o.statusText||"OK",m=new hn(o.getAllResponseHeaders()),_=function lR(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(o)||n.url;return s=new dd({headers:m,status:h,statusText:p,url:_}),s},u=()=>{let{headers:h,status:p,statusText:m,url:_}=a(),D=null;204!==p&&(D=void 0===o.response?o.responseText:o.response),0===p&&(p=D?200:0);let g=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof D){const w=D;D=D.replace(uR,"");try{D=""!==D?JSON.parse(D):null}catch(I){D=w,g&&(g=!1,D={error:I,text:D})}}g?(r.next(new ca({body:D,headers:h,status:p,statusText:m,url:_||void 0})),r.complete()):r.error(new R_({error:D,headers:h,status:p,statusText:m,url:_||void 0}))},l=h=>{const{url:p}=a(),m=new R_({error:h,status:o.status||0,statusText:o.statusText||"Unknown Error",url:p||void 0});r.error(m)};let c=!1;const d=h=>{c||(r.next(a()),c=!0);let p={type:we.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&!!o.responseText&&(p.partialText=o.responseText),r.next(p)},f=h=>{let p={type:we.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return o.addEventListener("load",u),o.addEventListener("error",l),o.addEventListener("timeout",l),o.addEventListener("abort",l),n.reportProgress&&(o.addEventListener("progress",d),null!==i&&o.upload&&o.upload.addEventListener("progress",f)),o.send(i),r.next({type:we.Sent}),()=>{o.removeEventListener("error",l),o.removeEventListener("abort",l),o.removeEventListener("load",u),o.removeEventListener("timeout",l),n.reportProgress&&(o.removeEventListener("progress",d),null!==i&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return t.\u0275fac=function(n){return new(n||t)(E(uv))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const hd=new j("XSRF_COOKIE_NAME"),pd=new j("XSRF_HEADER_NAME");class k_{}let cR=(()=>{class t{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=tv(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return t.\u0275fac=function(n){return new(n||t)(E(at),E(Ps),E(hd))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),gd=(()=>{class t{constructor(n,r){this.tokenService=n,this.headerName=r}intercept(n,r){const o=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||o.startsWith("http://")||o.startsWith("https://"))return r.handle(n);const i=this.tokenService.getToken();return null!==i&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,i)})),r.handle(n)}}return t.\u0275fac=function(n){return new(n||t)(E(k_),E(pd))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),dR=(()=>{class t{constructor(n,r){this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=this.injector.get(O_,[]);this.chain=r.reduceRight((o,i)=>new F_(o,i),this.backend)}return this.chain.handle(n)}}return t.\u0275fac=function(n){return new(n||t)(E(S_),E(Re))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),fR=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:gd,useClass:aR}]}}static withOptions(n={}){return{ngModule:t,providers:[n.cookieName?{provide:hd,useValue:n.cookieName}:[],n.headerName?{provide:pd,useValue:n.headerName}:[]]}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({providers:[gd,{provide:O_,useExisting:gd,multi:!0},{provide:k_,useClass:cR},{provide:hd,useValue:"XSRF-TOKEN"},{provide:pd,useValue:"X-XSRF-TOKEN"}]}),t})(),hR=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({providers:[gi,{provide:M_,useClass:dR},P_,{provide:S_,useExisting:P_}],imports:[[fR.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();class Pt extends Yt{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const n=super._subscribe(e);return n&&!n.closed&&e.next(this._value),n}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new rr;return this._value}next(e){super.next(this._value=e)}}class pR extends le{notifyNext(e,n,r,o,i){this.destination.next(n)}notifyError(e,n){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class gR extends le{constructor(e,n,r){super(),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function mR(t,e,n,r,o=new gR(t,n,r)){if(!o.closed)return e instanceof ie?e.subscribe(o):Ia(e)(o)}const V_={};class vR{constructor(e){this.resultSelector=e}call(e,n){return n.subscribe(new _R(e,this.resultSelector))}}class _R extends pR{constructor(e,n){super(e),this.resultSelector=n,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(V_),this.observables.push(e)}_complete(){const e=this.observables,n=e.length;if(0===n)this.destination.complete();else{this.active=n,this.toRespond=n;for(let r=0;r{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function md(...t){return function DR(){return lo(1)}()(k(...t))}const to=new ie(t=>t.complete());function yd(t){return t?function CR(t){return new ie(e=>t.schedule(()=>e.complete()))}(t):to}function L_(t){return new ie(e=>{let n;try{n=t()}catch(o){return void e.error(o)}return(n?Oe(n):yd()).subscribe(e)})}function Fn(t,e){return"function"==typeof e?n=>n.pipe(Fn((r,o)=>Oe(t(r,o)).pipe(Q((i,s)=>e(r,i,o,s))))):n=>n.lift(new bR(t))}class bR{constructor(e){this.project=e}call(e,n){return n.subscribe(new wR(e,this.project))}}class wR extends Na{constructor(e,n){super(e),this.project=n,this.index=0}_next(e){let n;const r=this.index++;try{n=this.project(e,r)}catch(o){return void this.destination.error(o)}this._innerSub(n)}_innerSub(e){const n=this.innerSubscription;n&&n.unsubscribe();const r=new xa(this),o=this.destination;o.add(r),this.innerSubscription=Ra(e,r),this.innerSubscription!==r&&o.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const j_=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function vd(t){return e=>0===t?yd():e.lift(new ER(t))}class ER{constructor(e){if(this.total=e,this.total<0)throw new j_}call(e,n){return n.subscribe(new MR(e,this.total))}}class MR extends le{constructor(e,n){super(e),this.total=n,this.count=0}_next(e){const n=this.total,r=++this.count;r<=n&&(this.destination.next(e),r===n&&(this.destination.complete(),this.unsubscribe()))}}function B_(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(o){return o.lift(new AR(t,e,n))}}class AR{constructor(e,n,r=!1){this.accumulator=e,this.seed=n,this.hasSeed=r}call(e,n){return n.subscribe(new IR(e,this.accumulator,this.seed,this.hasSeed))}}class IR extends le{constructor(e,n,r,o){super(e),this.accumulator=n,this._seed=r,this.hasSeed=o,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const n=this.index++;let r;try{r=this.accumulator(this.seed,e,n)}catch(o){this.destination.error(o)}this.seed=r,this.destination.next(r)}}function Zn(t){return function(n){const r=new TR(t),o=n.lift(r);return r.caught=o}}class TR{constructor(e){this.selector=e}call(e,n){return n.subscribe(new xR(e,this.selector,this.caught))}}class xR extends Na{constructor(e,n,r){super(e),this.selector=n,this.caught=r}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(i){return void super.error(i)}this._unsubscribeAndRecycle();const r=new xa(this);this.add(r);const o=Ra(n,r);o!==r&&this.add(o)}}}function _d(t){return function(n){return 0===t?yd():n.lift(new NR(t))}}class NR{constructor(e){if(this.total=e,this.total<0)throw new j_}call(e,n){return n.subscribe(new RR(e,this.total))}}class RR extends le{constructor(e,n){super(e),this.total=n,this.ring=new Array,this.count=0}_next(e){const n=this.ring,r=this.total,o=this.count++;n.length0){const r=this.count>=this.total?this.total:this.count,o=this.ring;for(let i=0;ie.lift(new FR(t))}class FR{constructor(e){this.errorFactory=e}call(e,n){return n.subscribe(new OR(e,this.errorFactory))}}class OR extends le{constructor(e,n){super(e),this.errorFactory=n,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(n){e=n}this.destination.error(e)}}}function PR(){return new da}function U_(t=null){return e=>e.lift(new kR(t))}class kR{constructor(e){this.defaultValue=e}call(e,n){return n.subscribe(new VR(e,this.defaultValue))}}class VR extends le{constructor(e,n){super(e),this.defaultValue=n,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function no(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Qn((o,i)=>t(o,i,r)):Ni,vd(1),n?U_(e):H_(()=>new da))}function On(){}function ut(t,e,n){return function(o){return o.lift(new jR(t,e,n))}}class jR{constructor(e,n,r){this.nextOrObserver=e,this.error=n,this.complete=r}call(e,n){return n.subscribe(new BR(e,this.nextOrObserver,this.error,this.complete))}}class BR extends le{constructor(e,n,r,o){super(e),this._tapNext=On,this._tapError=On,this._tapComplete=On,this._tapError=r||On,this._tapComplete=o||On,kn(n)?(this._context=this,this._tapNext=n):n&&(this._context=n,this._tapNext=n.next||On,this._tapError=n.error||On,this._tapComplete=n.complete||On)}_next(e){try{this._tapNext.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}class UR{constructor(e){this.callback=e}call(e,n){return n.subscribe(new $R(e,this.callback))}}class $R extends le{constructor(e,n){super(e),this.add(new de(n))}}class pn{constructor(e,n){this.id=e,this.url=n}}class Dd extends pn{constructor(e,n,r="imperative",o=null){super(e,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class mi extends pn{constructor(e,n,r){super(e,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class $_ extends pn{constructor(e,n,r){super(e,n),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class GR extends pn{constructor(e,n,r){super(e,n),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class qR extends pn{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zR extends pn{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class WR extends pn{constructor(e,n,r,o,i){super(e,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class JR extends pn{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class QR extends pn{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class G_{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class q_{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ZR{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class KR{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class YR{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class XR{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class z_{constructor(e,n,r){this.routerEvent=e,this.position=n,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const U="primary";class eF{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n[0]:n}return null}getAll(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function ro(t){return new eF(t)}const W_="ngNavigationCancelingError";function Cd(t){const e=Error("NavigationCancelingError: "+t);return e[W_]=!0,e}function nF(t,e,n){const r=n.path.split("/");if(r.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||r.lengthr[i]===o)}return t===e}function Q_(t){return Array.prototype.concat.apply([],t)}function Z_(t){return t.length>0?t[t.length-1]:null}function Fe(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Kt(t){return Sl(t)?t:Ho(t)?Oe(Promise.resolve(t)):k(t)}const iF={exact:function X_(t,e,n){if(!Yn(t.segments,e.segments)||!fa(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(const r in e.children)if(!t.children[r]||!X_(t.children[r],e.children[r],n))return!1;return!0},subset:eD},K_={exact:function sF(t,e){return Zt(t,e)},subset:function aF(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>J_(t[n],e[n]))},ignored:()=>!0};function Y_(t,e,n){return iF[n.paths](t.root,e.root,n.matrixParams)&&K_[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function eD(t,e,n){return tD(t,e,e.segments,n)}function tD(t,e,n,r){if(t.segments.length>n.length){const o=t.segments.slice(0,n.length);return!(!Yn(o,n)||e.hasChildren()||!fa(o,n,r))}if(t.segments.length===n.length){if(!Yn(t.segments,n)||!fa(t.segments,n,r))return!1;for(const o in e.children)if(!t.children[o]||!eD(t.children[o],e.children[o],r))return!1;return!0}{const o=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return!!(Yn(t.segments,o)&&fa(t.segments,o,r)&&t.children[U])&&tD(t.children[U],e,i,r)}}function fa(t,e,n){return e.every((r,o)=>K_[n](t[o].parameters,r.parameters))}class Kn{constructor(e,n,r){this.root=e,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ro(this.queryParams)),this._queryParamMap}toString(){return cF.serialize(this)}}class q{constructor(e,n){this.segments=e,this.children=n,this.parent=null,Fe(n,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ha(this)}}class yi{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=ro(this.parameters)),this._parameterMap}toString(){return sD(this)}}function Yn(t,e){return t.length===e.length&&t.every((n,r)=>n.path===e[r].path)}class nD{}class rD{parse(e){const n=new _F(e);return new Kn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){const n=`/${vi(e.root,!0)}`,r=function hF(t){const e=Object.keys(t).map(n=>{const r=t[n];return Array.isArray(r)?r.map(o=>`${pa(n)}=${pa(o)}`).join("&"):`${pa(n)}=${pa(r)}`}).filter(n=>!!n);return e.length?`?${e.join("&")}`:""}(e.queryParams),o="string"==typeof e.fragment?`#${function dF(t){return encodeURI(t)}(e.fragment)}`:"";return`${n}${r}${o}`}}const cF=new rD;function ha(t){return t.segments.map(e=>sD(e)).join("/")}function vi(t,e){if(!t.hasChildren())return ha(t);if(e){const n=t.children[U]?vi(t.children[U],!1):"",r=[];return Fe(t.children,(o,i)=>{i!==U&&r.push(`${i}:${vi(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function lF(t,e){let n=[];return Fe(t.children,(r,o)=>{o===U&&(n=n.concat(e(r,o)))}),Fe(t.children,(r,o)=>{o!==U&&(n=n.concat(e(r,o)))}),n}(t,(r,o)=>o===U?[vi(t.children[U],!1)]:[`${o}:${vi(r,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[U]?`${ha(t)}/${n[0]}`:`${ha(t)}/(${n.join("//")})`}}function oD(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function pa(t){return oD(t).replace(/%3B/gi,";")}function bd(t){return oD(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ga(t){return decodeURIComponent(t)}function iD(t){return ga(t.replace(/\+/g,"%20"))}function sD(t){return`${bd(t.path)}${function fF(t){return Object.keys(t).map(e=>`;${bd(e)}=${bd(t[e])}`).join("")}(t.parameters)}`}const pF=/^[^\/()?;=#]+/;function ma(t){const e=t.match(pF);return e?e[0]:""}const gF=/^[^=?&#]+/,yF=/^[^&#]+/;class _F{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new q([],{}):new q([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(n).length>0)&&(r[U]=new q(e,n)),r}parseSegment(){const e=ma(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new yi(ga(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const n=ma(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=ma(this.remaining);o&&(r=o,this.capture(r))}e[ga(n)]=ga(r)}parseQueryParam(e){const n=function mF(t){const e=t.match(gF);return e?e[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function vF(t){const e=t.match(yF);return e?e[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=iD(n),i=iD(r);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(i)}else e[o]=i}parseParens(e){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=ma(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new Error(`Cannot parse url '${this.url}'`);let i;r.indexOf(":")>-1?(i=r.substr(0,r.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=U);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[U]:new q([],s),this.consumeOptional("//")}return n}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class aD{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null}children(e){const n=wd(e,this._root);return n?n.children.map(r=>r.value):[]}firstChild(e){const n=wd(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){const n=Ed(e,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return Ed(e,this._root).map(n=>n.value)}}function wd(t,e){if(t===e.value)return e;for(const n of e.children){const r=wd(t,n);if(r)return r}return null}function Ed(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Ed(t,n);if(r.length)return r.unshift(e),r}return[]}class gn{constructor(e,n){this.value=e,this.children=n}toString(){return`TreeNode(${this.value})`}}function oo(t){const e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}class uD extends aD{constructor(e,n){super(e),this.snapshot=n,Md(this,e)}toString(){return this.snapshot.toString()}}function lD(t,e){const n=function DF(t,e){const s=new ya([],{},{},"",{},U,e,null,t.root,-1,{});return new dD("",new gn(s,[]))}(t,e),r=new Pt([new yi("",{})]),o=new Pt({}),i=new Pt({}),s=new Pt({}),a=new Pt(""),u=new Xn(r,o,s,a,i,U,e,n.root);return u.snapshot=n.root,new uD(new gn(u,[]),n)}class Xn{constructor(e,n,r,o,i,s,a,u){this.url=e,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this._futureSnapshot=u}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Q(e=>ro(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Q(e=>ro(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function cD(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function CF(t){return t.reduce((e,n)=>({params:Object.assign(Object.assign({},e.params),n.params),data:Object.assign(Object.assign({},e.data),n.data),resolve:Object.assign(Object.assign({},e.resolve),n._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class ya{constructor(e,n,r,o,i,s,a,u,l,c,d){this.url=e,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ro(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ro(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dD extends aD{constructor(e,n){super(n),this.url=e,Md(this,n)}toString(){return fD(this._root)}}function Md(t,e){e.value._routerState=t,e.children.forEach(n=>Md(t,n))}function fD(t){const e=t.children.length>0?` { ${t.children.map(fD).join(", ")} } `:"";return`${t.value}${e}`}function Sd(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Zt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Zt(e.params,n.params)||t.params.next(n.params),function rF(t,e){if(t.length!==e.length)return!1;for(let n=0;nZt(n.parameters,e[r].parameters))}(t.url,e.url);return n&&!(!t.parent!=!e.parent)&&(!t.parent||Ad(t.parent,e.parent))}function _i(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const o=function wF(t,e,n){return e.children.map(r=>{for(const o of n.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return _i(t,r,o);return _i(t,r)})}(t,e,n);return new gn(r,o)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>_i(t,a)),s}}const r=function EF(t){return new Xn(new Pt(t.url),new Pt(t.params),new Pt(t.queryParams),new Pt(t.fragment),new Pt(t.data),t.outlet,t.component,t)}(e.value),o=e.children.map(i=>_i(t,i));return new gn(r,o)}}function va(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Di(t){return"object"==typeof t&&null!=t&&t.outlets}function Id(t,e,n,r,o){let i={};return r&&Fe(r,(s,a)=>{i[a]=Array.isArray(s)?s.map(u=>`${u}`):`${s}`}),new Kn(n.root===t?e:hD(n.root,t,e),i,o)}function hD(t,e,n){const r={};return Fe(t.children,(o,i)=>{r[i]=o===e?n:hD(o,e,n)}),new q(t.segments,r)}class pD{constructor(e,n,r){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&va(r[0]))throw new Error("Root segment cannot have matrix parameters");const o=r.find(Di);if(o&&o!==Z_(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Td{constructor(e,n,r){this.segmentGroup=e,this.processChildren=n,this.index=r}}function gD(t,e,n){if(t||(t=new q([],{})),0===t.segments.length&&t.hasChildren())return _a(t,e,n);const r=function xF(t,e,n){let r=0,o=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=t.segments[o],a=n[r];if(Di(a))break;const u=`${a}`,l=r0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!yD(u,l,s))return i;r+=2}else{if(!yD(u,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(o[s]=gD(t.children[s],e,i))}),Fe(t.children,(i,s)=>{void 0===r[s]&&(o[s]=i)}),new q(t.segments,o)}}function xd(t,e,n){const r=t.segments.slice(0,e);let o=0;for(;o{"string"==typeof n&&(n=[n]),null!==n&&(e[r]=xd(new q([],{}),0,n))}),e}function mD(t){const e={};return Fe(t,(n,r)=>e[r]=`${n}`),e}function yD(t,e,n){return t==n.path&&Zt(e,n.parameters)}class FF{constructor(e,n,r,o){this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=o}activate(e){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,e),Sd(this.futureState.root),this.activateChildRoutes(n,r,e)}deactivateChildRoutes(e,n,r){const o=oo(n);e.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Fe(o,(i,s)=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(e,n,r){const o=e.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(e,n,s.children)}else this.deactivateChildRoutes(e,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(e,n){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,n):this.deactivateRouteAndOutlet(e,n)}detachAndStoreRouteSubtree(e,n){const r=n.getContext(e.value.outlet),o=r&&e.value.component?r.children:n,i=oo(e);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,n){const r=n.getContext(e.value.outlet),o=r&&e.value.component?r.children:n,i=oo(e);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(e,n,r){const o=oo(n);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new XR(i.value.snapshot))}),e.children.length&&this.forwardEvent(new KR(e.value.snapshot))}activateRoutes(e,n,r){const o=e.value,i=n?n.value:null;if(Sd(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(e,n,s.children)}else this.activateChildRoutes(e,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Sd(a.route.value),this.activateChildRoutes(e,null,s.children)}else{const a=function OF(t){for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(o.snapshot),u=a?a.module.componentFactoryResolver:null;s.attachRef=null,s.route=o,s.resolver=u,s.outlet&&s.outlet.activateWith(o,u),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,r)}}class Nd{constructor(e,n){this.routes=e,this.module=n}}function Pn(t){return"function"==typeof t}function er(t){return t instanceof Kn}const Ci=Symbol("INITIAL_VALUE");function bi(){return Fn(t=>function yR(...t){let e,n;return Ri(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Ii(t[0])&&(t=t[0]),Fa(t,n).lift(new vR(e))}(t.map(e=>e.pipe(vd(1),function SR(...t){const e=t[t.length-1];return Ri(e)?(t.pop(),n=>md(t,n,e)):n=>md(t,n)}(Ci)))).pipe(B_((e,n)=>{let r=!1;return n.reduce((o,i,s)=>o!==Ci?o:(i===Ci&&(r=!0),r||!1!==i&&s!==n.length-1&&!er(i)?o:i),e)},Ci),Qn(e=>e!==Ci),Q(e=>er(e)?e:!0===e),vd(1)))}class BF{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new wi,this.attachRef=null}}class wi{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new BF,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}}let Rd=(()=>{class t{constructor(n,r,o,i,s){this.parentContexts=n,this.location=r,this.resolver=o,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new ge,this.deactivateEvents=new ge,this.attachEvents=new ge,this.detachEvents=new ge,this.name=i||U,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const n=this.parentContexts.getContext(this.name);n&&n.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.resolver||null))}}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(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=n;const s=(r=r||this.resolver).resolveComponentFactory(n._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,u=new HF(n,a,this.location.injector);this.activated=this.location.createComponent(s,this.location.length,u),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(n){return new(n||t)(v(wi),v(Nt),v(qr),function Do(t){return function Eb(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const r=n.length;let o=0;for(;o{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=_n({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,r){1&n&&Bo(0,"router-outlet")},directives:[Rd],encapsulation:2}),t})();function _D(t,e=""){for(let n=0;nCt(r)===e);return n.push(...t.filter(r=>Ct(r)!==e)),n}const CD={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Da(t,e,n){var r;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},CD):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const i=(e.matcher||nF)(n,t,e);if(!i)return Object.assign({},CD);const s={};Fe(i.posParams,(u,l)=>{s[l]=u.path});const a=i.consumed.length>0?Object.assign(Object.assign({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function Ca(t,e,n,r,o="corrected"){if(n.length>0&&function zF(t,e,n){return n.some(r=>ba(t,e,r)&&Ct(r)!==U)}(t,n,r)){const s=new q(e,function qF(t,e,n,r){const o={};o[U]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&Ct(i)!==U){const s=new q([],{});s._sourceSegment=t,s._segmentIndexShift=e.length,o[Ct(i)]=s}return o}(t,e,r,new q(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function WF(t,e,n){return n.some(r=>ba(t,e,r))}(t,n,r)){const s=new q(t.segments,function GF(t,e,n,r,o,i){const s={};for(const a of r)if(ba(t,n,a)&&!o[Ct(a)]){const u=new q([],{});u._sourceSegment=t,u._segmentIndexShift="legacy"===i?t.segments.length:e.length,s[Ct(a)]=u}return Object.assign(Object.assign({},o),s)}(t,e,n,r,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const i=new q(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function ba(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function bD(t,e,n,r){return!!(Ct(t)===r||r!==U&&ba(e,n,t))&&("**"===t.path||Da(e,t,n).matched)}function wD(t,e,n){return 0===e.length&&!t.children[n]}class Ei{constructor(e){this.segmentGroup=e||null}}class ED{constructor(e){this.urlTree=e}}function wa(t){return new ie(e=>e.error(new Ei(t)))}function MD(t){return new ie(e=>e.error(new ED(t)))}function JF(t){return new ie(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class KF{constructor(e,n,r,o,i){this.configLoader=n,this.urlSerializer=r,this.urlTree=o,this.config=i,this.allowRedirects=!0,this.ngModule=e.get(ln)}apply(){const e=Ca(this.urlTree.root,[],[],this.config).segmentGroup,n=new q(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,U).pipe(Q(i=>this.createUrlTree(Od(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Zn(i=>{if(i instanceof ED)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof Ei?this.noMatchError(i):i}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,U).pipe(Q(o=>this.createUrlTree(Od(o),e.queryParams,e.fragment))).pipe(Zn(o=>{throw o instanceof Ei?this.noMatchError(o):o}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,n,r){const o=e.segments.length>0?new q([],{[U]:e}):e;return new Kn(o,n,r)}expandSegmentGroup(e,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(e,n,r).pipe(Q(i=>new q([],i))):this.expandSegment(e,r,n,r.segments,o,!0)}expandChildren(e,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return Oe(o).pipe(eo(i=>{const s=r.children[i],a=DD(n,i);return this.expandSegmentGroup(e,a,s,i).pipe(Q(u=>({segment:u,outlet:i})))}),B_((i,s)=>(i[s.outlet]=s.segment,i),{}),function LR(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Qn((o,i)=>t(o,i,r)):Ni,_d(1),n?U_(e):H_(()=>new da))}())}expandSegment(e,n,r,o,i,s){return Oe(r).pipe(eo(a=>this.expandSegmentAgainstRoute(e,n,r,a,o,i,s).pipe(Zn(l=>{if(l instanceof Ei)return k(null);throw l}))),no(a=>!!a),Zn((a,u)=>{if(a instanceof da||"EmptyError"===a.name){if(wD(n,o,i))return k(new q([],{}));throw new Ei(n)}throw a}))}expandSegmentAgainstRoute(e,n,r,o,i,s,a){return bD(o,n,i,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(e,n,o,i,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s):wa(n):wa(n)}expandSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o){const i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?MD(i):this.lineralizeSegments(r,i).pipe(Ne(s=>{const a=new q(s,{});return this.expandSegment(e,a,n,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s){const{matched:a,consumedSegments:u,lastChild:l,positionalParamSegments:c}=Da(n,o,i);if(!a)return wa(n);const d=this.applyRedirectCommands(u,o.redirectTo,c);return o.redirectTo.startsWith("/")?MD(d):this.lineralizeSegments(o,d).pipe(Ne(f=>this.expandSegment(e,n,r,f.concat(i.slice(l)),s,!1)))}matchSegmentAgainstRoute(e,n,r,o,i){if("**"===r.path)return r.loadChildren?(r._loadedConfig?k(r._loadedConfig):this.configLoader.load(e.injector,r)).pipe(Q(f=>(r._loadedConfig=f,new q(o,{})))):k(new q(o,{}));const{matched:s,consumedSegments:a,lastChild:u}=Da(n,r,o);if(!s)return wa(n);const l=o.slice(u);return this.getChildConfig(e,r,o).pipe(Ne(d=>{const f=d.module,h=d.routes,{segmentGroup:p,slicedSegments:m}=Ca(n,a,l,h),_=new q(p.segments,p.children);if(0===m.length&&_.hasChildren())return this.expandChildren(f,h,_).pipe(Q(I=>new q(a,I)));if(0===h.length&&0===m.length)return k(new q(a,{}));const D=Ct(r)===i;return this.expandSegment(f,_,h,m,D?U:i,!0).pipe(Q(w=>new q(a.concat(w.segments),w.children)))}))}getChildConfig(e,n,r){return n.children?k(new Nd(n.children,e)):n.loadChildren?void 0!==n._loadedConfig?k(n._loadedConfig):this.runCanLoadGuards(e.injector,n,r).pipe(Ne(o=>o?this.configLoader.load(e.injector,n).pipe(Q(i=>(n._loadedConfig=i,i))):function QF(t){return new ie(e=>e.error(Cd(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(n))):k(new Nd([],e))}runCanLoadGuards(e,n,r){const o=n.canLoad;if(!o||0===o.length)return k(!0);const i=o.map(s=>{const a=e.get(s);let u;if(function kF(t){return t&&Pn(t.canLoad)}(a))u=a.canLoad(n,r);else{if(!Pn(a))throw new Error("Invalid CanLoad guard");u=a(n,r)}return Kt(u)});return k(i).pipe(bi(),ut(s=>{if(!er(s))return;const a=Cd(`Redirecting to "${this.urlSerializer.serialize(s)}"`);throw a.url=s,a}),Q(s=>!0===s))}lineralizeSegments(e,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return k(r);if(o.numberOfChildren>1||!o.children[U])return JF(e.redirectTo);o=o.children[U]}}applyRedirectCommands(e,n,r){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),e,r)}applyRedirectCreatreUrlTree(e,n,r,o){const i=this.createSegmentGroup(e,n.root,r,o);return new Kn(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(e,n){const r={};return Fe(e,(o,i)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(e,n,r,o){const i=this.createSegments(e,n.segments,r,o);let s={};return Fe(n.children,(a,u)=>{s[u]=this.createSegmentGroup(e,a,r,o)}),new q(i,s)}createSegments(e,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(e,i,o):this.findOrReturn(i,r))}findPosParam(e,n,r){const o=r[n.path.substring(1)];if(!o)throw new Error(`Cannot redirect to '${e}'. Cannot find '${n.path}'.`);return o}findOrReturn(e,n){let r=0;for(const o of n){if(o.path===e.path)return n.splice(r),o;r++}return e}}function Od(t){const e={};for(const r of Object.keys(t.children)){const i=Od(t.children[r]);(i.segments.length>0||i.hasChildren())&&(e[r]=i)}return function YF(t){if(1===t.numberOfChildren&&t.children[U]){const e=t.children[U];return new q(t.segments.concat(e.segments),e.children)}return t}(new q(t.segments,e))}class SD{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Ea{constructor(e,n){this.component=e,this.route=n}}function eO(t,e,n){const r=t._root;return Mi(r,e?e._root:null,n,[r.value])}function Ma(t,e,n){const r=function nO(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Mi(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=oo(e);return t.children.forEach(s=>{(function rO(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const u=function oO(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Yn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Yn(t.url,e.url)||!Zt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ad(t,e)||!Zt(t.queryParams,e.queryParams);default:return!Ad(t,e)}}(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new SD(r)):(i.data=s.data,i._resolvedData=s._resolvedData),Mi(t,e,i.component?a?a.children:null:n,r,o),u&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Ea(a.outlet.component,s))}else s&&Si(e,a,o),o.canActivateChecks.push(new SD(r)),Mi(t,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Fe(i,(s,a)=>Si(s,n.getContext(a),o)),o}function Si(t,e,n){const r=oo(t),o=t.value;Fe(r,(i,s)=>{Si(i,o.component?e?e.children.getContext(s):null:e,n)}),n.canDeactivateChecks.push(new Ea(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}class hO{}function AD(t){return new ie(e=>e.error(t))}class gO{constructor(e,n,r,o,i,s){this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=s}recognize(){const e=Ca(this.urlTree.root,[],[],this.config.filter(s=>void 0===s.redirectTo),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,e,U);if(null===n)return null;const r=new ya([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},U,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new gn(r,n),i=new dD(this.url,o);return this.inheritParamsAndData(i._root),i}inheritParamsAndData(e){const n=e.value,r=cD(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(e,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(e,n):this.processSegment(e,n,n.segments,r)}processChildren(e,n){const r=[];for(const i of Object.keys(n.children)){const s=n.children[i],a=DD(e,i),u=this.processSegmentGroup(a,s,i);if(null===u)return null;r.push(...u)}const o=ID(r);return function mO(t){t.sort((e,n)=>e.value.outlet===U?-1:n.value.outlet===U?1:e.value.outlet.localeCompare(n.value.outlet))}(o),o}processSegment(e,n,r,o){for(const i of e){const s=this.processSegmentAgainstRoute(i,n,r,o);if(null!==s)return s}return wD(n,r,o)?[]:null}processSegmentAgainstRoute(e,n,r,o){if(e.redirectTo||!bD(e,n,r,o))return null;let i,s=[],a=[];if("**"===e.path){const h=r.length>0?Z_(r).parameters:{};i=new ya(r,h,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ND(e),Ct(e),e.component,e,TD(n),xD(n)+r.length,RD(e))}else{const h=Da(n,e,r);if(!h.matched)return null;s=h.consumedSegments,a=r.slice(h.lastChild),i=new ya(s,h.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ND(e),Ct(e),e.component,e,TD(n),xD(n)+s.length,RD(e))}const u=function yO(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=Ca(n,s,a,u.filter(h=>void 0===h.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const h=this.processChildren(u,l);return null===h?null:[new gn(i,h)]}if(0===u.length&&0===c.length)return[new gn(i,[])];const d=Ct(e)===o,f=this.processSegment(u,l,c,d?U:o);return null===f?null:[new gn(i,f)]}}function vO(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function ID(t){const e=[],n=new Set;for(const r of t){if(!vO(r)){e.push(r);continue}const o=e.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):e.push(r)}for(const r of n){const o=ID(r.children);e.push(new gn(r.value,o))}return e.filter(r=>!n.has(r))}function TD(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function xD(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function ND(t){return t.data||{}}function RD(t){return t.resolve||{}}function FD(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Pd(t){return Fn(e=>{const n=t(e);return n?Oe(n).pipe(Q(()=>e)):k(e)})}class SO extends class MO{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}}{}const kd=new j("ROUTES");class OD{constructor(e,n,r,o){this.injector=e,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=o}load(e,n){if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);const o=this.loadModuleFactory(n.loadChildren).pipe(Q(i=>{this.onLoadEndListener&&this.onLoadEndListener(n);const s=i.create(e);return new Nd(Q_(s.injector.get(kd,void 0,P.Self|P.Optional)).map(Fd),s)}),Zn(i=>{throw n._loader$=void 0,i}));return n._loader$=new of(o,()=>new Yt).pipe(Oa()),n._loader$}loadModuleFactory(e){return Kt(e()).pipe(Ne(n=>n instanceof Pm?k(n):Oe(this.compiler.compileModuleAsync(n))))}}class IO{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}}function TO(t){throw t}function xO(t,e,n){return e.parse("/")}function PD(t,e){return k(null)}const NO={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},RO={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let lt=(()=>{class t{constructor(n,r,o,i,s,a,u){this.rootComponentType=n,this.urlSerializer=r,this.rootContexts=o,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Yt,this.errorHandler=TO,this.malformedUriErrorHandler=xO,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:PD,afterPreactivation:PD},this.urlHandlingStrategy=new IO,this.routeReuseStrategy=new SO,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(ln),this.console=s.get(yy);const d=s.get(Ie);this.isNgZoneEnabled=d instanceof Ie&&Ie.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=function oF(){return new Kn(new q([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new OD(s,a,f=>this.triggerEvent(new G_(f)),f=>this.triggerEvent(new q_(f))),this.routerState=lD(this.currentUrlTree,this.rootComponentType),this.transitions=new Pt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}setupNavigations(n){const r=this.events;return n.pipe(Qn(o=>0!==o.id),Q(o=>Object.assign(Object.assign({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Fn(o=>{let i=!1,s=!1;return k(o).pipe(ut(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Fn(a=>{const u=this.browserUrlTree.toString(),l=!this.navigated||a.extractedUrl.toString()!==u||u!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Sa(a.source)&&(this.browserUrlTree=a.extractedUrl),k(a).pipe(Fn(d=>{const f=this.transitions.getValue();return r.next(new Dd(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?to:Promise.resolve(d)}),function XF(t,e,n,r){return Fn(o=>function ZF(t,e,n,r,o){return new KF(t,e,n,r,o).apply()}(t,e,n,o.extractedUrl,r).pipe(Q(i=>Object.assign(Object.assign({},o),{urlAfterRedirects:i}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),ut(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function _O(t,e,n,r,o){return Ne(i=>function pO(t,e,n,r,o="emptyOnly",i="legacy"){try{const s=new gO(t,e,n,r,o,i).recognize();return null===s?AD(new hO):k(s)}catch(s){return AD(s)}}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,o).pipe(Q(s=>Object.assign(Object.assign({},i),{targetSnapshot:s}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),ut(d=>{if("eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const h=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(h,d)}this.browserUrlTree=d.urlAfterRedirects}const f=new qR(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);r.next(f)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:h,source:p,restoredState:m,extras:_}=a,D=new Dd(f,this.serializeUrl(h),p,m);r.next(D);const g=lD(h,this.rootComponentType).snapshot;return k(Object.assign(Object.assign({},a),{targetSnapshot:g,urlAfterRedirects:h,extras:Object.assign(Object.assign({},_),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),to}),Pd(a=>{const{targetSnapshot:u,id:l,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.beforePreactivation(u,{navigationId:l,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),ut(a=>{const u=new zR(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(u)}),Q(a=>Object.assign(Object.assign({},a),{guards:eO(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function iO(t,e){return Ne(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?k(Object.assign(Object.assign({},n),{guardsResult:!0})):function sO(t,e,n,r){return Oe(t).pipe(Ne(o=>function fO(t,e,n,r,o){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?k(i.map(a=>{const u=Ma(a,e,o);let l;if(function jF(t){return t&&Pn(t.canDeactivate)}(u))l=Kt(u.canDeactivate(t,e,n,r));else{if(!Pn(u))throw new Error("Invalid CanDeactivate guard");l=Kt(u(t,e,n,r))}return l.pipe(no())})).pipe(bi()):k(!0)}(o.component,o.route,n,e,r)),no(o=>!0!==o,!0))}(s,r,o,t).pipe(Ne(a=>a&&function PF(t){return"boolean"==typeof t}(a)?function aO(t,e,n,r){return Oe(e).pipe(eo(o=>md(function lO(t,e){return null!==t&&e&&e(new ZR(t)),k(!0)}(o.route.parent,r),function uO(t,e){return null!==t&&e&&e(new YR(t)),k(!0)}(o.route,r),function dO(t,e,n){const r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(s=>function tO(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(s)).filter(s=>null!==s).map(s=>L_(()=>k(s.guards.map(u=>{const l=Ma(u,s.node,n);let c;if(function LF(t){return t&&Pn(t.canActivateChild)}(l))c=Kt(l.canActivateChild(r,t));else{if(!Pn(l))throw new Error("Invalid CanActivateChild guard");c=Kt(l(r,t))}return c.pipe(no())})).pipe(bi())));return k(i).pipe(bi())}(t,o.path,n),function cO(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return k(!0);const o=r.map(i=>L_(()=>{const s=Ma(i,e,n);let a;if(function VF(t){return t&&Pn(t.canActivate)}(s))a=Kt(s.canActivate(e,t));else{if(!Pn(s))throw new Error("Invalid CanActivate guard");a=Kt(s(e,t))}return a.pipe(no())}));return k(o).pipe(bi())}(t,o.route,n))),no(o=>!0!==o,!0))}(r,i,t,e):k(a)),Q(a=>Object.assign(Object.assign({},n),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),ut(a=>{if(er(a.guardsResult)){const l=Cd(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw l.url=a.guardsResult,l}const u=new WR(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(u)}),Qn(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),Pd(a=>{if(a.guards.canActivateChecks.length)return k(a).pipe(ut(u=>{const l=new JR(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}),Fn(u=>{let l=!1;return k(u).pipe(function DO(t,e){return Ne(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return k(n);let i=0;return Oe(o).pipe(eo(s=>function CO(t,e,n,r){return function bO(t,e,n,r){const o=FD(t);if(0===o.length)return k({});const i={};return Oe(o).pipe(Ne(s=>function wO(t,e,n,r){const o=Ma(t,e,r);return Kt(o.resolve?o.resolve(e,n):o(e,n))}(t[s],e,n,r).pipe(ut(a=>{i[s]=a}))),_d(1),Ne(()=>FD(i).length===o.length?k(i):to))}(t._resolve,t,e,r).pipe(Q(i=>(t._resolvedData=i,t.data=Object.assign(Object.assign({},t.data),cD(t,n).resolve),null)))}(s.route,r,t,e)),ut(()=>i++),_d(1),Ne(s=>i===o.length?k(n):to))})}(this.paramsInheritanceStrategy,this.ngModule.injector),ut({next:()=>l=!0,complete:()=>{l||(this.restoreHistory(u),this.cancelNavigationTransition(u,"At least one route resolver didn't emit any value."))}}))}),ut(u=>{const l=new QR(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}))}),Pd(a=>{const{targetSnapshot:u,id:l,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.afterPreactivation(u,{navigationId:l,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),Q(a=>{const u=function bF(t,e,n){const r=_i(t,e._root,n?n._root:void 0);return new uD(r,e)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:u})}),ut(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,e,n)=>Q(r=>(new FF(e,r.targetRouterState,r.currentRouterState,n).activate(t),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),ut({next(){i=!0},complete(){i=!0}}),function HR(t){return e=>e.lift(new UR(t))}(()=>{var a;i||s||this.cancelNavigationTransition(o,`Navigation ID ${o.id} is not equal to the current navigation id ${this.navigationId}`),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===o.id&&(this.currentNavigation=null)}),Zn(a=>{if(s=!0,function tF(t){return t&&t[W_]}(a)){const u=er(a.url);u||(this.navigated=!0,this.restoreHistory(o,!0));const l=new $_(o.id,this.serializeUrl(o.extractedUrl),a.message);r.next(l),u?setTimeout(()=>{const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Sa(o.source)};this.scheduleNavigation(c,"imperative",null,d,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{this.restoreHistory(o,!0);const u=new GR(o.id,this.serializeUrl(o.extractedUrl),a);r.next(u);try{o.resolve(this.errorHandler(a))}catch(l){o.reject(l)}}return to}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}setTransition(n){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),n))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{var o;const i={replaceUrl:!0},s=(null===(o=n.state)||void 0===o?void 0:o.navigationId)?n.state:null;if(s){const u=Object.assign({},s);delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(i.state=u)}const a=this.parseUrl(n.url);this.scheduleNavigation(a,r,s,i)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){_D(n),this.config=n.map(Fd),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,l=o||this.routerState.root,c=u?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=i||null}return null!==d&&(d=this.removeEmptyProps(d)),function MF(t,e,n,r,o){if(0===n.length)return Id(e.root,e.root,e,r,o);const i=function SF(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new pD(!0,0,t);let e=0,n=!1;const r=t.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Fe(i.outlets,(u,l)=>{a[l]="string"==typeof u?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?n=!0:".."===a?e++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new pD(n,e,r)}(n);if(i.toRoot())return Id(e.root,new q([],{}),e,r,o);const s=function AF(t,e,n){if(t.isAbsolute)return new Td(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const i=n.snapshot._urlSegment;return new Td(i,i===e.root,0)}const r=va(t.commands[0])?0:1;return function IF(t,e,n){let r=t,o=e,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new Error("Invalid number of '../'");o=r.segments.length}return new Td(r,!1,o-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=s.processChildren?_a(s.segmentGroup,s.index,i.commands):gD(s.segmentGroup,s.index,i.commands);return Id(s.segmentGroup,a,e,r,o)}(l,this.currentUrlTree,n,d,null!=c?c:null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=er(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,r)}navigate(n,r={skipLocationChange:!1}){return function FO(t){for(let e=0;e{const i=n[o];return null!=i&&(r[o]=i),r},{})}processNavigations(){this.navigations.subscribe(n=>{this.navigated=!0,this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId,this.events.next(new mi(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,n.resolve(!0)},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}scheduleNavigation(n,r,o,i,s){var a,u,l;if(this.disposed)return Promise.resolve(!1);const c=this.transitions.value,d=Sa(r)&&c&&!Sa(c.source),f=c.rawUrl.toString()===n.toString(),h=c.id===(null===(a=this.currentNavigation)||void 0===a?void 0:a.id);if(d&&f&&h)return Promise.resolve(!0);let m,_,D;s?(m=s.resolve,_=s.reject,D=s.promise):D=new Promise((I,z)=>{m=I,_=z});const g=++this.navigationId;let w;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),w=o&&o.\u0275routerPageId?o.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(u=this.browserPageId)&&void 0!==u?u:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):w=0,this.setTransition({id:g,targetPageId:w,source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:i,resolve:m,reject:_,promise:D,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),D.catch(I=>Promise.reject(I))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n),i=Object.assign(Object.assign({},r.extras.state),this.generateNgRouterState(r.id,r.targetPageId));this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl?this.location.replaceState(o,"",i):this.location.go(o,"",i)}restoreHistory(n,r=!1){var o,i;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)||0===s?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(n,r){const o=new $_(n.id,this.serializeUrl(n.extractedUrl),r);this.triggerEvent(o),n.resolve(!1)}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return t.\u0275fac=function(n){wl()},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();function Sa(t){return"imperative"!==t}let io=(()=>{class t{constructor(n,r,o){this.router=n,this.route=r,this.locationStrategy=o,this.commands=null,this.href=null,this.onChanges=new Yt,this.subscription=n.events.subscribe(i=>{i instanceof mi&&this.updateTargetUrlAndHref()})}set routerLink(n){this.commands=null!=n?Array.isArray(n)?n:[n]:null}ngOnChanges(n){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(n,r,o,i,s){if(0!==n||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const a={skipLocationChange:so(this.skipLocationChange),replaceUrl:so(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}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:so(this.preserveFragment)})}}return t.\u0275fac=function(n){return new(n||t)(v(lt),v(Xn),v(Kr))},t.\u0275dir=x({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(n,r){1&n&&Se("click",function(i){return r.onClick(i.button,i.ctrlKey,i.shiftKey,i.altKey,i.metaKey)}),2&n&&qt("target",r.target)("href",r.href,Au)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[tt]}),t})();function so(t){return""===t||!!t}class kD{}class VD{preload(e,n){return k(null)}}let LD=(()=>{class t{constructor(n,r,o,i){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=new OD(o,r,u=>n.triggerEvent(new G_(u)),u=>n.triggerEvent(new q_(u)))}setUpPreloading(){this.subscription=this.router.events.pipe(Qn(n=>n instanceof mi),eo(()=>this.preload())).subscribe(()=>{})}preload(){const n=this.injector.get(ln);return this.processRoutes(n,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const s=i._loadedConfig;o.push(this.processRoutes(s.module,s.routes))}else i.loadChildren&&!i.canLoad?o.push(this.preloadConfig(n,i)):i.children&&o.push(this.processRoutes(n,i.children));return Oe(o).pipe(lo(),Q(i=>{}))}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>(r._loadedConfig?k(r._loadedConfig):this.loader.load(n.injector,r)).pipe(Ne(i=>(r._loadedConfig=i,this.processRoutes(i.module,i.routes)))))}}return t.\u0275fac=function(n){return new(n||t)(E(lt),E(ks),E(Re),E(kD))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),Ld=(()=>{class t{constructor(n,r,o={}){this.router=n,this.viewportScroller=r,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(n=>{n instanceof Dd?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof mi&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof z_&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.router.triggerEvent(new z_(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(n){wl()},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const tr=new j("ROUTER_CONFIGURATION"),jD=new j("ROUTER_FORROOT_GUARD"),VO=[vc,{provide:nD,useClass:rD},{provide:lt,useFactory:function UO(t,e,n,r,o,i,s={},a,u){const l=new lt(null,t,e,n,r,o,Q_(i));return a&&(l.urlHandlingStrategy=a),u&&(l.routeReuseStrategy=u),function $O(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(e.canceledNavigationResolution=t.canceledNavigationResolution)}(s,l),s.enableTracing&&l.events.subscribe(c=>{var d,f;null===(d=console.group)||void 0===d||d.call(console,`Router Event: ${c.constructor.name}`),console.log(c.toString()),console.log(c),null===(f=console.groupEnd)||void 0===f||f.call(console)}),l},deps:[nD,wi,vc,Re,ks,kd,tr,[class AO{},new Bt],[class EO{},new Bt]]},wi,{provide:Xn,useFactory:function GO(t){return t.routerState.root},deps:[lt]},LD,VD,class kO{preload(e,n){return n().pipe(Zn(()=>k(null)))}},{provide:tr,useValue:{enableTracing:!1}}];function LO(){return new wy("Router",lt)}let BD=(()=>{class t{constructor(n,r){}static forRoot(n,r){return{ngModule:t,providers:[VO,HD(n),{provide:jD,useFactory:HO,deps:[[lt,new Bt,new _r]]},{provide:tr,useValue:r||{}},{provide:Kr,useFactory:BO,deps:[Wn,[new Ao(yc),new Bt],tr]},{provide:Ld,useFactory:jO,deps:[lt,vx,tr]},{provide:kD,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:VD},{provide:wy,multi:!0,useFactory:LO},[jd,{provide:Os,multi:!0,useFactory:qO,deps:[jd]},{provide:UD,useFactory:zO,deps:[jd]},{provide:my,multi:!0,useExisting:UD}]]}}static forChild(n){return{ngModule:t,providers:[HD(n)]}}}return t.\u0275fac=function(n){return new(n||t)(E(jD,8),E(lt,8))},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({}),t})();function jO(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Ld(t,e,n)}function BO(t,e,n={}){return n.useHash?new eT(t,e):new qy(t,e)}function HO(t){return"guarded"}function HD(t){return[{provide:Tb,multi:!0,useValue:t},{provide:kd,multi:!0,useValue:t}]}let jd=(()=>{class t{constructor(n){this.injector=n,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Yt}appInitializer(){return this.injector.get(KI,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let r=null;const o=new Promise(a=>r=a),i=this.injector.get(lt),s=this.injector.get(tr);return"disabled"===s.initialNavigation?(i.setUpLocationChangeListener(),r(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?k(null):(this.initNavigation=!0,r(!0),this.resultOfPreactivationDone),i.initialNavigation()):r(!0),o})}bootstrapListener(n){const r=this.injector.get(tr),o=this.injector.get(LD),i=this.injector.get(Ld),s=this.injector.get(lt),a=this.injector.get(Xo);n===a.components[0]&&(("enabledNonBlocking"===r.initialNavigation||void 0===r.initialNavigation)&&s.initialNavigation(),o.setUpPreloading(),i.init(),s.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(n){return new(n||t)(E(Re))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();function qO(t){return t.appInitializer.bind(t)}function zO(t){return t.bootstrapListener.bind(t)}const UD=new j("Router Initializer");let JO=(()=>{class t{constructor(n){this.httpClient=n}GetEngineers(){return this.httpClient.get("http://localhost:63235/engineer")}}return t.\u0275fac=function(n){return new(n||t)(E(gi))},t.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$D=(()=>{class t{constructor(n){this.httpClient=n}GetJobs(){return this.httpClient.get("http://localhost:63235/job")}GetJob(n){return this.httpClient.get(`http://localhost:63235/job/${n}`)}CreateJob(n){return this.httpClient.post("http://localhost:63235/job",n).toPromise()}}return t.\u0275fac=function(n){return new(n||t)(E(gi))},t.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function QO(t,e){if(1&t&&(M(0,"option"),$(1),S()),2&t){const n=e.$implicit;Y(1),Gn(n)}}function ZO(t,e){1&t&&(M(0,"small"),$(1,"Please select an engineer"),S())}function KO(t,e){1&t&&(M(0,"small"),$(1,"Please select a valid date"),S())}const YO=function(t){return["/job",t]};function XO(t,e){if(1&t&&(M(0,"tr"),M(1,"td"),$(2),S(),M(3,"td"),$(4),Bl(5,"date"),S(),M(6,"td"),M(7,"a",13),$(8,"Open"),S(),S(),S()),2&t){const n=e.$implicit;Y(2),Gn(n.engineer),Y(2),Gn(Hl(5,3,n.when,"shortDate")),Y(3),ye("routerLink",jl(6,YO,n.jobId))}}let eP=(()=>{class t{constructor(n,r){this.engineerService=n,this.jobService=r,this.engineers=[],this.jobs=[],this.newJob={jobId:null,engineer:null,when:null}}ngOnInit(){this.engineerService.GetEngineers().subscribe(n=>this.engineers=n),this.jobService.GetJobs().subscribe(n=>this.jobs=n)}createJob(n){n.invalid?alert("form is not valid"):this.jobService.CreateJob(this.newJob).then(()=>{this.jobService.GetJobs().subscribe(r=>this.jobs=r)})}}return t.\u0275fac=function(n){return new(n||t)(v(JO),v($D))},t.\u0275cmp=_n({type:t,selectors:[["app-job"]],decls:31,vars:8,consts:[[3,"ngSubmit"],["jobForm","ngForm"],["for","engineer"],["name","engineer","required","","ngModel","","placeholder","Please select",3,"ngModel","ngModelChange"],["engineer","ngModel"],["selected","",3,"ngValue"],[4,"ngFor","ngForOf"],[4,"ngIf"],["for","when"],["type","date","name","when","ngModel","","required","",3,"ngModel","ngModelChange"],["when","ngModel"],["type","submit",3,"disabled"],["spacing","0"],[3,"routerLink"]],template:function(n,r){if(1&n){const o=Ml();M(0,"h2"),$(1,"New job form"),S(),M(2,"form",0,1),Se("ngSubmit",function(){tu(o);const s=an(3);return r.createJob(s)}),M(4,"label",2),$(5,"Engineer"),S(),M(6,"select",3,4),Se("ngModelChange",function(s){return r.newJob.engineer=s}),M(8,"option",5),$(9,"Please select"),S(),sn(10,QO,2,1,"option",6),S(),sn(11,ZO,2,0,"small",7),M(12,"label",8),$(13,"When"),S(),M(14,"input",9,10),Se("ngModelChange",function(s){return r.newJob.when=s}),S(),sn(16,KO,2,0,"small",7),M(17,"button",11),$(18,"Add Job"),S(),S(),M(19,"h2"),$(20,"Jobs list"),S(),M(21,"table",12),M(22,"thead"),M(23,"tr"),M(24,"th"),$(25,"Engineer"),S(),M(26,"th"),$(27,"When"),S(),Bo(28,"th"),S(),S(),M(29,"tbody"),sn(30,XO,9,8,"tr",6),S(),S()}if(2&n){const o=an(3),i=an(7),s=an(15);Y(6),ye("ngModel",r.newJob.engineer),Y(2),ye("ngValue",void 0),Y(2),ye("ngForOf",r.engineers),Y(1),ye("ngIf",i.invalid),Y(3),ye("ngModel",r.newJob.when),Y(2),ye("ngIf",s.invalid),Y(1),ye("disabled",o.invalid),Y(13),ye("ngForOf",r.jobs)}},directives:[rd,qc,di,fi,hi,Gc,la,ad,ld,Ac,Ic,ii,io],pipes:[Nc],styles:["h2[_ngcontent-%COMP%]{margin-left:15px}form[_ngcontent-%COMP%]{margin:15px}form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%], form[_ngcontent-%COMP%] select[_ngcontent-%COMP%], form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;width:250px;margin-bottom:15px}form[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:red;margin-top:-12px;margin-bottom:15px;display:block}table[_ngcontent-%COMP%]{margin:15px;border-collapse:collapse}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #ddd;padding:5px;min-width:100px;text-align:left}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#ddd}"]}),t})(),tP=(()=>{class t{constructor(n){this.httpClient=n}GetTypes(){return this.httpClient.get("http://localhost:63235/type")}}return t.\u0275fac=function(n){return new(n||t)(E(gi))},t.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),nP=(()=>{class t{constructor(n){this.httpClient=n}GetCustomers(){return this.httpClient.get("http://localhost:63235/customer")}GetCustomer(n){return this.httpClient.get(`http://localhost:63235/job/${n}`)}CreateCustomer(n){return this.httpClient.post("http://localhost:63235/customer",n).toPromise()}}return t.\u0275fac=function(n){return new(n||t)(E(gi))},t.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function rP(t,e){if(1&t&&(M(0,"option"),$(1),S()),2&t){const n=e.$implicit;Y(1),Gn(n)}}function oP(t,e){1&t&&(M(0,"small"),$(1,"Please select a type"),S())}function iP(t,e){1&t&&(M(0,"small"),$(1,"Customer Name must be at least 5"),S())}const sP=function(t){return["/customer",t]};function aP(t,e){if(1&t&&(M(0,"tr"),M(1,"td"),$(2),S(),M(3,"td"),$(4,"{{customer.type'}}"),S(),M(5,"td"),M(6,"a",13),$(7,"Open"),S(),S(),S()),2&t){const n=e.$implicit;Y(2),Gn(n.name),Y(4),ye("routerLink",jl(2,sP,n.customerId))}}let uP=(()=>{class t{constructor(n,r){this.typeService=n,this.customerService=r,this.types=[],this.customers=[],this.newCustomer={customerId:null,type:null,name:null}}ngOnInit(){this.typeService.GetTypes().subscribe(n=>this.types=n),this.customerService.GetCustomers().subscribe(n=>this.customers=n)}createCustomer(n){n.invalid?alert("form is not valid"):this.customerService.CreateCustomer(this.newCustomer).then(()=>{this.customerService.GetCustomers().subscribe(r=>this.customers=r)})}}return t.\u0275fac=function(n){return new(n||t)(v(tP),v(nP))},t.\u0275cmp=_n({type:t,selectors:[["app-customer"]],decls:31,vars:8,consts:[[3,"ngSubmit"],["customerForm","ngForm"],["for","type"],["name","type","required","","ngModel","","placeholder","Please select",3,"ngModel","ngModelChange"],["type","ngModel"],["selected","",3,"ngValue"],[4,"ngFor","ngForOf"],[4,"ngIf"],["for","name"],["type","text","name","name","ngModel","","required","",3,"ngModel","ngModelChange"],["name","ngModel"],["type","submit",3,"disabled"],["spacing","0"],[3,"routerLink"]],template:function(n,r){if(1&n){const o=Ml();M(0,"h2"),$(1,"New Customer form"),S(),M(2,"form",0,1),Se("ngSubmit",function(){tu(o);const s=an(3);return r.createCustomer(s)}),M(4,"label",2),$(5,"Type"),S(),M(6,"select",3,4),Se("ngModelChange",function(s){return r.newCustomer.type=s}),M(8,"option",5),$(9,"Please select"),S(),sn(10,rP,2,1,"option",6),S(),sn(11,oP,2,0,"small",7),M(12,"label",8),$(13,"Name"),S(),M(14,"input",9,10),Se("ngModelChange",function(s){return r.newCustomer.name=s}),S(),sn(16,iP,2,0,"small",7),M(17,"button",11),$(18,"Add Customer"),S(),S(),M(19,"h2"),$(20,"Customers list"),S(),M(21,"table",12),M(22,"thead"),M(23,"tr"),M(24,"th"),$(25,"Name"),S(),M(26,"th"),$(27,"Type"),S(),Bo(28,"th"),S(),S(),M(29,"tbody"),sn(30,aP,8,4,"tr",6),S(),S()}if(2&n){const o=an(3),i=an(7),s=an(15);Y(6),ye("ngModel",r.newCustomer.type),Y(2),ye("ngValue",void 0),Y(2),ye("ngForOf",r.types),Y(1),ye("ngIf",i.invalid),Y(3),ye("ngModel",r.newCustomer.name),Y(2),ye("ngIf",s.invalid),Y(1),ye("disabled",o.invalid),Y(13),ye("ngForOf",r.customers)}},directives:[rd,qc,di,fi,hi,Gc,la,ad,ld,Ac,Ic,ii,io],styles:["h2[_ngcontent-%COMP%]{margin-left:15px}form[_ngcontent-%COMP%]{margin:15px}form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%], form[_ngcontent-%COMP%] select[_ngcontent-%COMP%], form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;width:250px;margin-bottom:15px}form[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:red;margin-top:-12px;margin-bottom:15px;display:block}table[_ngcontent-%COMP%]{margin:15px;border-collapse:collapse}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #ddd;padding:5px;min-width:100px;text-align:left}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#ddd}"]}),t})(),GD=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=_n({type:t,selectors:[["app-home"]],decls:2,vars:0,template:function(n,r){1&n&&(M(0,"h1"),$(1,"Welcome to ServiceSight"),S())},styles:[""]}),t})();const lP=function(){return["/jobs"]},cP=[{path:"",component:GD},{path:"home",component:GD},{path:"jobs",component:eP},{path:"customers",component:uP},{path:"job/:id",component:(()=>{class t{constructor(n,r){this.route=n,this.jobService=r,this.jobId=n.snapshot.params.id}ngOnInit(){this.jobService.GetJob(this.jobId).subscribe(n=>this.job=n)}}return t.\u0275fac=function(n){return new(n||t)(v(Xn),v($D))},t.\u0275cmp=_n({type:t,selectors:[["app-job-detail"]],decls:9,vars:8,consts:[[3,"routerLink"]],template:function(n,r){1&n&&(M(0,"p"),$(1),S(),M(2,"p"),$(3),S(),M(4,"p"),$(5),Bl(6,"date"),S(),M(7,"a",0),$(8,"Back"),S()),2&n&&(Y(1),Ur("JobId: ",r.job.jobId,""),Y(2),Ur("Engineer: ",r.job.engineer,""),Y(2),Ur("When: ",Hl(6,4,r.job.when,"shortDate"),""),Y(2),ye("routerLink",function jm(t,e,n){const r=He()+t,o=y();return o[r]===O?Gt(o,r,n?e.call(n):e()):function jo(t,e){return t[e]}(o,r)}(7,lP)))},directives:[io],pipes:[Nc],styles:[""]}),t})()}];let dP=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({imports:[[BD.forRoot(cP)],BD]}),t})(),fP=(()=>{class t{constructor(){this.title="ui"}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=_n({type:t,selectors:[["app-root"]],decls:8,vars:0,consts:[["href","/home"],["href","/jobs"],["href","/customers"]],template:function(n,r){1&n&&(M(0,"nav"),M(1,"a",0),$(2,"home"),S(),M(3,"a",1),$(4,"jobs"),S(),M(5,"a",2),$(6,"customers"),S(),S(),Bo(7,"router-outlet"))},directives:[Rd],styles:["nav[_ngcontent-%COMP%]{background-color:#002987}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;padding:20px 50px;display:inline-block;text-decoration:none;text-transform:capitalize;border-right:1px solid green}"]}),t})(),hP=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t,bootstrap:[fP]}),t.\u0275inj=Xe({providers:[],imports:[[KN,qx,hR,dP]]}),t})();$x().bootstrapModule(hP).catch(t=>console.error(t))}},kn=>{kn(kn.s=587)}]); \ No newline at end of file diff --git a/ui/dist/ui/polyfills.js b/ui/dist/ui/polyfills.js new file mode 100644 index 0000000..d8b940f --- /dev/null +++ b/ui/dist/ui/polyfills.js @@ -0,0 +1 @@ +"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[429],{435:(Ee,Pe,Oe)=>{Oe(609)},609:(Ee,Pe,Oe)=>{var De;void 0!==(De=function(){!function(e){var r=e.performance;function t(h){r&&r.mark&&r.mark(h)}function n(h,a){r&&r.measure&&r.measure(h,a)}t("Zone");var u=e.__Zone_symbol_prefix||"__zone_symbol__";function c(h){return u+h}var l=!0===e[c("forceDuplicateZoneCheck")];if(e.Zone){if(l||"function"!=typeof e.Zone.__symbol__)throw new Error("Zone already loaded.");return e.Zone}var v=function(){function h(a,o){this._parent=a,this._name=o?o.name||"unnamed":"",this._properties=o&&o.properties||{},this._zoneDelegate=new d(this,this._parent&&this._parent._zoneDelegate,o)}return h.assertZonePatched=function(){if(e.Promise!==F.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(h,"root",{get:function(){for(var a=h.current;a.parent;)a=a.parent;return a},enumerable:!1,configurable:!0}),Object.defineProperty(h,"current",{get:function(){return A.zone},enumerable:!1,configurable:!0}),Object.defineProperty(h,"currentTask",{get:function(){return ie},enumerable:!1,configurable:!0}),h.__load_patch=function(a,o,i){if(void 0===i&&(i=!1),F.hasOwnProperty(a)){if(!i&&l)throw Error("Already loaded patch: "+a)}else if(!e["__Zone_disable_"+a]){var P="Zone:"+a;t(P),F[a]=o(e,h,O),n(P,P)}},Object.defineProperty(h.prototype,"parent",{get:function(){return this._parent},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"name",{get:function(){return this._name},enumerable:!1,configurable:!0}),h.prototype.get=function(a){var o=this.getZoneWith(a);if(o)return o._properties[a]},h.prototype.getZoneWith=function(a){for(var o=this;o;){if(o._properties.hasOwnProperty(a))return o;o=o._parent}return null},h.prototype.fork=function(a){if(!a)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,a)},h.prototype.wrap=function(a,o){if("function"!=typeof a)throw new Error("Expecting function got: "+a);var i=this._zoneDelegate.intercept(this,a,o),P=this;return function(){return P.runGuarded(i,this,arguments,o)}},h.prototype.run=function(a,o,i,P){A={parent:A,zone:this};try{return this._zoneDelegate.invoke(this,a,o,i,P)}finally{A=A.parent}},h.prototype.runGuarded=function(a,o,i,P){void 0===o&&(o=null),A={parent:A,zone:this};try{try{return this._zoneDelegate.invoke(this,a,o,i,P)}catch(z){if(this._zoneDelegate.handleError(this,z))throw z}}finally{A=A.parent}},h.prototype.runTask=function(a,o,i){if(a.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(a.zone||B).name+"; Execution: "+this.name+")");if(a.state!==j||a.type!==R&&a.type!==Y){var P=a.state!=k;P&&a._transitionTo(k,U),a.runCount++;var z=ie;ie=a,A={parent:A,zone:this};try{a.type==Y&&a.data&&!a.data.isPeriodic&&(a.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,a,o,i)}catch(se){if(this._zoneDelegate.handleError(this,se))throw se}}finally{a.state!==j&&a.state!==I&&(a.type==R||a.data&&a.data.isPeriodic?P&&a._transitionTo(U,k):(a.runCount=0,this._updateTaskCount(a,-1),P&&a._transitionTo(j,k,j))),A=A.parent,ie=z}}},h.prototype.scheduleTask=function(a){if(a.zone&&a.zone!==this)for(var o=this;o;){if(o===a.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+a.zone.name);o=o.parent}a._transitionTo(V,j);var i=[];a._zoneDelegates=i,a._zone=this;try{a=this._zoneDelegate.scheduleTask(this,a)}catch(P){throw a._transitionTo(I,V,j),this._zoneDelegate.handleError(this,P),P}return a._zoneDelegates===i&&this._updateTaskCount(a,1),a.state==V&&a._transitionTo(U,V),a},h.prototype.scheduleMicroTask=function(a,o,i,P){return this.scheduleTask(new p(ee,a,o,i,P,void 0))},h.prototype.scheduleMacroTask=function(a,o,i,P,z){return this.scheduleTask(new p(Y,a,o,i,P,z))},h.prototype.scheduleEventTask=function(a,o,i,P,z){return this.scheduleTask(new p(R,a,o,i,P,z))},h.prototype.cancelTask=function(a){if(a.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(a.zone||B).name+"; Execution: "+this.name+")");a._transitionTo($,U,k);try{this._zoneDelegate.cancelTask(this,a)}catch(o){throw a._transitionTo(I,$),this._zoneDelegate.handleError(this,o),o}return this._updateTaskCount(a,-1),a._transitionTo(j,$),a.runCount=0,a},h.prototype._updateTaskCount=function(a,o){var i=a._zoneDelegates;-1==o&&(a._zoneDelegates=null);for(var P=0;P0,macroTask:i.macroTask>0,eventTask:i.eventTask>0,change:a})},h}(),p=function(){function h(a,o,i,P,z,se){if(this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=a,this.source=o,this.data=P,this.scheduleFn=z,this.cancelFn=se,!i)throw new Error("callback is not defined");this.callback=i;var f=this;this.invoke=a===R&&P&&P.useG?h.invokeTask:function(){return h.invokeTask.call(e,f,this,arguments)}}return h.invokeTask=function(a,o,i){a||(a=this),ne++;try{return a.runCount++,a.zone.runTask(a,o,i)}finally{1==ne&&m(),ne--}},Object.defineProperty(h.prototype,"zone",{get:function(){return this._zone},enumerable:!1,configurable:!0}),Object.defineProperty(h.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),h.prototype.cancelScheduleRequest=function(){this._transitionTo(j,V)},h.prototype._transitionTo=function(a,o,i){if(this._state!==o&&this._state!==i)throw new Error(this.type+" '"+this.source+"': can not transition to '"+a+"', expecting state '"+o+"'"+(i?" or '"+i+"'":"")+", was '"+this._state+"'.");this._state=a,a==j&&(this._zoneDelegates=null)},h.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId.toString():Object.prototype.toString.call(this)},h.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},h}(),y=c("setTimeout"),b=c("Promise"),w=c("then"),N=[],M=!1;function g(h){if(0===ne&&0===N.length)if(X||e[b]&&(X=e[b].resolve(0)),X){var a=X[w];a||(a=X.then),a.call(X,m)}else e[y](m,0);h&&N.push(h)}function m(){if(!M){for(M=!0;N.length;){var h=N;N=[];for(var a=0;a=0;t--)"function"==typeof e[t]&&(e[t]=ze(e[t],r+"_"+t));return e}function rr(e){return!e||!1!==e.writable&&!("function"==typeof e.get&&void 0===e.set)}var tr="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,Ne=!("nw"in J)&&void 0!==J.process&&"[object process]"==={}.toString.call(J.process),qe=!Ne&&!tr&&!(!Ze||!ye.HTMLElement),nr=void 0!==J.process&&"[object process]"==={}.toString.call(J.process)&&!tr&&!(!Ze||!ye.HTMLElement),Le={},or=function(e){if(e=e||J.event){var r=Le[e.type];r||(r=Le[e.type]=G("ON_PROPERTY"+e.type));var u,t=this||e.target||J,n=t[r];return qe&&t===ye&&"error"===e.type?!0===(u=n&&n.call(this,e.message,e.filename,e.lineno,e.colno,e.error))&&e.preventDefault():null!=(u=n&&n.apply(this,arguments))&&!u&&e.preventDefault(),u}};function ar(e,r,t){var n=we(e,r);if(!n&&t&&we(t,r)&&(n={enumerable:!0,configurable:!0}),n&&n.configurable){var c=G("on"+r+"patched");if(!e.hasOwnProperty(c)||!e[c]){delete n.writable,delete n.value;var l=n.get,v=n.set,T=r.substr(2),d=Le[T];d||(d=Le[T]=G("ON_PROPERTY"+T)),n.set=function(p){var y=this;!y&&e===J&&(y=J),y&&(y[d]&&y.removeEventListener(T,or),v&&v.apply(y,Sr),"function"==typeof p?(y[d]=p,y.addEventListener(T,or,!1)):y[d]=null)},n.get=function(){var p=this;if(!p&&e===J&&(p=J),!p)return null;var y=p[d];if(y)return y;if(l){var b=l&&l.call(this);if(b)return n.set.call(this,b),"function"==typeof p.removeAttribute&&p.removeAttribute(r),b}return null},xe(e,r,n),e[c]=!0}}}function ir(e,r,t){if(r)for(var n=0;n=0&&"function"==typeof v[T.cbIdx]?We(T.name,v[T.cbIdx],T,u):c.apply(l,v)}})}function he(e,r){e[G("OriginalDelegate")]=r}var sr=!1,Ye=!1;function Zr(){if(sr)return Ye;sr=!0;try{var e=ye.navigator.userAgent;(-1!==e.indexOf("MSIE ")||-1!==e.indexOf("Trident/")||-1!==e.indexOf("Edge/"))&&(Ye=!0)}catch(r){}return Ye}Zone.__load_patch("ZoneAwarePromise",function(e,r,t){var n=Object.getOwnPropertyDescriptor,u=Object.defineProperty;var l=t.symbol,v=[],T=!0===e[l("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")],d=l("Promise"),p=l("then");t.onUnhandledError=function(f){if(t.showUncaughtError()){var E=f&&f.rejection;E?console.error("Unhandled Promise rejection:",E instanceof Error?E.message:E,"; Zone:",f.zone.name,"; Task:",f.task&&f.task.source,"; Value:",E,E instanceof Error?E.stack:void 0):console.error(f)}},t.microtaskDrainDone=function(){for(var f=function(){var E=v.shift();try{E.zone.runGuarded(function(){throw E.throwOriginal?E.rejection:E})}catch(s){!function w(f){t.onUnhandledError(f);try{var E=r[b];"function"==typeof E&&E.call(this,f)}catch(s){}}(s)}};v.length;)f()};var b=l("unhandledPromiseRejectionHandler");function N(f){return f&&f.then}function M(f){return f}function X(f){return o.reject(f)}var g=l("state"),m=l("value"),B=l("finally"),j=l("parentPromiseValue"),V=l("parentPromiseState"),k=null,$=!0,I=!1;function Y(f,E){return function(s){try{A(f,E,s)}catch(_){A(f,!1,_)}}}var O=l("currentTaskTrace");function A(f,E,s){var _=function(){var f=!1;return function(s){return function(){f||(f=!0,s.apply(null,arguments))}}}();if(f===s)throw new TypeError("Promise resolved with itself");if(f[g]===k){var S=null;try{("object"==typeof s||"function"==typeof s)&&(S=s&&s.then)}catch(Z){return _(function(){A(f,!1,Z)})(),f}if(E!==I&&s instanceof o&&s.hasOwnProperty(g)&&s.hasOwnProperty(m)&&s[g]!==k)ne(s),A(f,s[g],s[m]);else if(E!==I&&"function"==typeof S)try{S.call(s,_(Y(f,E)),_(Y(f,!1)))}catch(Z){_(function(){A(f,!1,Z)})()}else{f[g]=E;var C=f[m];if(f[m]=s,f[B]===B&&E===$&&(f[g]=f[V],f[m]=f[j]),E===I&&s instanceof Error){var L=r.currentTask&&r.currentTask.data&&r.currentTask.data.__creationTrace__;L&&u(s,O,{configurable:!0,enumerable:!1,writable:!0,value:L})}for(var x=0;x1?new c(T,d):new c(T),w=e.ObjectGetOwnPropertyDescriptor(p,"onmessage");return w&&!1===w.configurable?(y=e.ObjectCreate(p),b=p,[n,u,"send","close"].forEach(function(N){y[N]=function(){var M=e.ArraySlice.call(arguments);if(N===n||N===u){var X=M.length>0?M[0]:void 0;if(X){var g=Zone.__symbol__("ON_PROPERTY"+X);p[g]=y[g]}}return p[N].apply(p,M)}})):y=p,e.patchOnProperties(y,["close","error","message","open"],b),y};var l=r.WebSocket;for(var v in c)l[v]=c[v]}(e,r),Zone[e.symbol("patchEvents")]=!0}}Zone.__load_patch("util",function(e,r,t){t.patchOnProperties=ir,t.patchMethod=ve,t.bindArguments=Xe,t.patchMacroTask=Cr;var n=r.__symbol__("BLACK_LISTED_EVENTS"),u=r.__symbol__("UNPATCHED_EVENTS");e[u]&&(e[n]=e[u]),e[n]&&(r[n]=r[u]=e[n]),t.patchEventPrototype=Mr,t.patchEventTarget=Lr,t.isIEOrEdge=Zr,t.ObjectDefineProperty=xe,t.ObjectGetOwnPropertyDescriptor=we,t.ObjectCreate=Pr,t.ArraySlice=Or,t.patchClass=Re,t.wrapWithCurrentZone=ze,t.filterProperties=_r,t.attachOriginToPatched=he,t._redefineProperty=Object.defineProperty,t.patchCallbacks=Ir,t.getGlobalObjects=function(){return{globalSources:ur,zoneSymbolEventNames:ae,eventNames:ge,isBrowser:qe,isMix:nr,isNode:Ne,TRUE_STR:fe,FALSE_STR:le,ZONE_SYMBOL_PREFIX:Se,ADD_EVENT_LISTENER_STR:Fe,REMOVE_EVENT_LISTENER_STR:Ge}}}),e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},r=e.__Zone_symbol_prefix||"__zone_symbol__",e[function t(n){return r+n}("legacyPatch")]=function(){var n=e.Zone;n.__load_patch("defineProperty",function(u,c,l){l._redefineProperty=Yr,function qr(){Ie=Zone.__symbol__,Ae=Object[Ie("defineProperty")]=Object.defineProperty,pr=Object[Ie("getOwnPropertyDescriptor")]=Object.getOwnPropertyDescriptor,Er=Object.create,pe=Ie("unconfigurables"),Object.defineProperty=function(e,r,t){if(yr(e,r))throw new TypeError("Cannot assign to read only property '"+r+"' of "+e);var n=t.configurable;return"prototype"!==r&&(t=Qe(e,r,t)),mr(e,r,t,n)},Object.defineProperties=function(e,r){return Object.keys(r).forEach(function(t){Object.defineProperty(e,t,r[t])}),e},Object.create=function(e,r){return"object"==typeof r&&!Object.isFrozen(r)&&Object.keys(r).forEach(function(t){r[t]=Qe(e,t,r[t])}),Er(e,r)},Object.getOwnPropertyDescriptor=function(e,r){var t=pr(e,r);return t&&yr(e,r)&&(t.configurable=!1),t}}()}),n.__load_patch("registerElement",function(u,c,l){!function rt(e,r){var t=r.getGlobalObjects();(t.isBrowser||t.isMix)&&"registerElement"in e.document&&r.patchCallbacks(r,document,"Document","registerElement",["createdCallback","attachedCallback","detachedCallback","attributeChangedCallback"])}(u,l)}),n.__load_patch("EventTargetLegacy",function(u,c,l){(function Kr(e,r){var t=r.getGlobalObjects(),n=t.eventNames,u=t.globalSources,c=t.zoneSymbolEventNames,l=t.TRUE_STR,v=t.FALSE_STR,T=t.ZONE_SYMBOL_PREFIX,p="ApplicationCache,EventSource,FileReader,InputMethodContext,MediaController,MessagePort,Node,Performance,SVGElementInstance,SharedWorker,TextTrack,TextTrackCue,TextTrackList,WebKitNamedFlow,Window,Worker,WorkerGlobalScope,XMLHttpRequest,XMLHttpRequestEventTarget,XMLHttpRequestUpload,IDBRequest,IDBOpenDBRequest,IDBDatabase,IDBTransaction,IDBCursor,DBIndex,WebSocket".split(","),y="EventTarget",b=[],w=e.wtf,N="Anchor,Area,Audio,BR,Base,BaseFont,Body,Button,Canvas,Content,DList,Directory,Div,Embed,FieldSet,Font,Form,Frame,FrameSet,HR,Head,Heading,Html,IFrame,Image,Input,Keygen,LI,Label,Legend,Link,Map,Marquee,Media,Menu,Meta,Meter,Mod,OList,Object,OptGroup,Option,Output,Paragraph,Pre,Progress,Quote,Script,Select,Source,Span,Style,TableCaption,TableCell,TableCol,Table,TableRow,TableSection,TextArea,Title,Track,UList,Unknown,Video".split(",");w?b=N.map(function(H){return"HTML"+H+"Element"}).concat(p):e[y]?b.push(y):b=p;for(var M=e.__Zone_disable_IE_check||!1,X=e.__Zone_enable_cross_context_check||!1,g=r.isIEOrEdge(),B="[object FunctionWrapper]",j="function __BROWSERTOOLS_CONSOLE_SAFEFUNC() { [native code] }",V={MSPointerCancel:"pointercancel",MSPointerDown:"pointerdown",MSPointerEnter:"pointerenter",MSPointerHover:"pointerhover",MSPointerLeave:"pointerleave",MSPointerMove:"pointermove",MSPointerOut:"pointerout",MSPointerOver:"pointerover",MSPointerUp:"pointerup"},U=0;U0){var h=R.invoke;R.invoke=function(){for(var a=O[r.__symbol__("loadfalse")],o=0;o{Ee(Ee.s=435)}]); \ No newline at end of file diff --git a/ui/dist/ui/runtime.js b/ui/dist/ui/runtime.js new file mode 100644 index 0000000..c51d3cc --- /dev/null +++ b/ui/dist/ui/runtime.js @@ -0,0 +1 @@ +(()=>{"use strict";var e,_={},i={};function n(e){var a=i[e];if(void 0!==a)return a.exports;var r=i[e]={exports:{}};return _[e](r,r.exports,n),r.exports}n.m=_,e=[],n.O=(a,r,t,u)=>{if(!r){var o=1/0;for(f=0;f=u)&&Object.keys(n.O).every(h=>n.O[h](r[l]))?r.splice(l--,1):(s=!1,u0&&e[f-1][2]>u;f--)e[f]=e[f-1];e[f]=[r,t,u]},n.n=e=>{var a=e&&e.__esModule?()=>e.default:()=>e;return n.d(a,{a}),a},n.d=(e,a)=>{for(var r in a)n.o(a,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:a[r]})},n.o=(e,a)=>Object.prototype.hasOwnProperty.call(e,a),(()=>{var e={666:0};n.O.j=t=>0===e[t];var a=(t,u)=>{var l,c,[f,o,s]=u,v=0;if(f.some(d=>0!==e[d])){for(l in o)n.o(o,l)&&(n.m[l]=o[l]);if(s)var b=s(n)}for(t&&t(u);v home jobs + customers - \ No newline at end of file + diff --git a/ui/src/app/app.module.ts b/ui/src/app/app.module.ts index 0d1f678..64a2491 100644 --- a/ui/src/app/app.module.ts +++ b/ui/src/app/app.module.ts @@ -6,6 +6,7 @@ import { HttpClientModule } from '@angular/common/http'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; import { JobComponent } from './job/job.component'; +import { CustomerComponent } from './customer/customer.component'; import { HomeComponent } from './home/home.component'; import { JobDetailComponent } from './job-detail/job-detail.component'; @@ -13,6 +14,7 @@ import { JobDetailComponent } from './job-detail/job-detail.component'; declarations: [ AppComponent, JobComponent, + CustomerComponent, HomeComponent, JobDetailComponent ], diff --git a/ui/src/app/customer/customer.component.html b/ui/src/app/customer/customer.component.html index a72020c..128e5b6 100644 --- a/ui/src/app/customer/customer.component.html +++ b/ui/src/app/customer/customer.component.html @@ -8,8 +8,8 @@

New Customer form

Please select a type - Customer Name must be at least 5 - + Customer Name must be at least 5 +

Customers list

diff --git a/ui/src/app/services/customer.service.ts b/ui/src/app/services/customer.service.ts index dbaf345..4b64f0b 100644 --- a/ui/src/app/services/customer.service.ts +++ b/ui/src/app/services/customer.service.ts @@ -6,7 +6,7 @@ import { CustomerModel } from '../models/customer.model'; @Injectable({ providedIn: 'root' }) -export class JobService { +export class CustomerService { constructor(private httpClient: HttpClient) { } From a0329f7194fa2b70b377eb2ffe8ebd7073205541 Mon Sep 17 00:00:00 2001 From: Weebo Date: Wed, 27 Apr 2022 10:11:23 +0100 Subject: [PATCH 6/8] Just added new Migration for creating the Customer table --- ...0220427090904_AddCustomerTable.Designer.cs | 83 +++++++++++++++++++ .../20220427090904_AddCustomerTable.cs | 19 +++++ .../ApplicationDbContextModelSnapshot.cs | 29 ++++++- 3 files changed, 130 insertions(+), 1 deletion(-) create mode 100644 DeveloperTest/Migrations/20220427090904_AddCustomerTable.Designer.cs create mode 100644 DeveloperTest/Migrations/20220427090904_AddCustomerTable.cs diff --git a/DeveloperTest/Migrations/20220427090904_AddCustomerTable.Designer.cs b/DeveloperTest/Migrations/20220427090904_AddCustomerTable.Designer.cs new file mode 100644 index 0000000..de7775f --- /dev/null +++ b/DeveloperTest/Migrations/20220427090904_AddCustomerTable.Designer.cs @@ -0,0 +1,83 @@ +// +using System; +using DeveloperTest.Database; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; + +#nullable disable + +namespace DeveloperTest.Migrations +{ + [DbContext(typeof(ApplicationDbContext))] + [Migration("20220427090904_AddCustomerTable")] + partial class AddCustomerTable + { + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "6.0.4") + .HasAnnotation("Relational:MaxIdentifierLength", 128); + + SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); + + modelBuilder.Entity("DeveloperTest.Database.Models.Customer", b => + { + b.Property("CustomerId") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("CustomerId"), 1L, 1); + + b.Property("Name") + .HasColumnType("nvarchar(max)"); + + b.Property("Type") + .HasColumnType("nvarchar(max)"); + + b.HasKey("CustomerId"); + + b.ToTable("Customers"); + + b.HasData( + new + { + CustomerId = 1, + Name = "Test Customer", + Type = "Large" + }); + }); + + modelBuilder.Entity("DeveloperTest.Database.Models.Job", b => + { + b.Property("JobId") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("JobId"), 1L, 1); + + b.Property("Engineer") + .HasColumnType("nvarchar(max)"); + + b.Property("When") + .HasColumnType("datetime2"); + + b.HasKey("JobId"); + + b.ToTable("Jobs"); + + b.HasData( + new + { + JobId = 1, + Engineer = "Test", + When = new DateTime(2022, 2, 1, 12, 0, 0, 0, DateTimeKind.Unspecified) + }); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/DeveloperTest/Migrations/20220427090904_AddCustomerTable.cs b/DeveloperTest/Migrations/20220427090904_AddCustomerTable.cs new file mode 100644 index 0000000..af16913 --- /dev/null +++ b/DeveloperTest/Migrations/20220427090904_AddCustomerTable.cs @@ -0,0 +1,19 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace DeveloperTest.Migrations +{ + public partial class AddCustomerTable : Migration + { + protected override void Up(MigrationBuilder migrationBuilder) + { + + } + + protected override void Down(MigrationBuilder migrationBuilder) + { + + } + } +} diff --git a/DeveloperTest/Migrations/ApplicationDbContextModelSnapshot.cs b/DeveloperTest/Migrations/ApplicationDbContextModelSnapshot.cs index 0ee623b..4d65974 100644 --- a/DeveloperTest/Migrations/ApplicationDbContextModelSnapshot.cs +++ b/DeveloperTest/Migrations/ApplicationDbContextModelSnapshot.cs @@ -17,11 +17,38 @@ protected override void BuildModel(ModelBuilder modelBuilder) { #pragma warning disable 612, 618 modelBuilder - .HasAnnotation("ProductVersion", "6.0.1") + .HasAnnotation("ProductVersion", "6.0.4") .HasAnnotation("Relational:MaxIdentifierLength", 128); SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder, 1L, 1); + modelBuilder.Entity("DeveloperTest.Database.Models.Customer", b => + { + b.Property("CustomerId") + .ValueGeneratedOnAdd() + .HasColumnType("int"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("CustomerId"), 1L, 1); + + b.Property("Name") + .HasColumnType("nvarchar(max)"); + + b.Property("Type") + .HasColumnType("nvarchar(max)"); + + b.HasKey("CustomerId"); + + b.ToTable("Customers"); + + b.HasData( + new + { + CustomerId = 1, + Name = "Test Customer", + Type = "Large" + }); + }); + modelBuilder.Entity("DeveloperTest.Database.Models.Job", b => { b.Property("JobId") From 1eddd52d88338ec7eeabfa146b74ca3f00c5dcc1 Mon Sep 17 00:00:00 2001 From: Weebo Date: Wed, 27 Apr 2022 10:20:35 +0100 Subject: [PATCH 7/8] Populated Up and Down methods --- .../20220427090904_AddCustomerTable.cs | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/DeveloperTest/Migrations/20220427090904_AddCustomerTable.cs b/DeveloperTest/Migrations/20220427090904_AddCustomerTable.cs index af16913..1967561 100644 --- a/DeveloperTest/Migrations/20220427090904_AddCustomerTable.cs +++ b/DeveloperTest/Migrations/20220427090904_AddCustomerTable.cs @@ -8,12 +8,30 @@ public partial class AddCustomerTable : Migration { protected override void Up(MigrationBuilder migrationBuilder) { + migrationBuilder.CreateTable( + name: "Customers", + columns: table => new + { + CustomerId = table.Column(nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + Type = table.Column(nullable: false), + Name = table.Column(nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Customers", x => x.CustomerId); + }); + migrationBuilder.InsertData( + table: "Customers", + columns: new[] { "CustomerId", "Type", "Name" }, + values: new object[] { 1, "Large", "First Customer" }); } protected override void Down(MigrationBuilder migrationBuilder) { - + migrationBuilder.DropTable( + name: "Customers"); } } } From eba1c071105f679677368199bc2d0f64a7600021 Mon Sep 17 00:00:00 2001 From: Weebo Date: Wed, 27 Apr 2022 11:04:27 +0100 Subject: [PATCH 8/8] Need to be able to get debugging working before being able to resolve problem with Customers not being displayed --- ui/dist/ui/main.js | 2 +- ui/src/app/app-routing.module.ts | 4 ++- ui/src/app/app.module.ts | 4 ++- .../customer-detail.component.html | 7 +++++ .../customer-detail.component.scss | 0 .../customer-detail.component.ts | 27 +++++++++++++++++++ 6 files changed, 41 insertions(+), 3 deletions(-) create mode 100644 ui/src/app/customer-detail/customer-detail.component.html create mode 100644 ui/src/app/customer-detail/customer-detail.component.scss create mode 100644 ui/src/app/customer-detail/customer-detail.component.ts diff --git a/ui/dist/ui/main.js b/ui/dist/ui/main.js index b71f341..eb659f2 100644 --- a/ui/dist/ui/main.js +++ b/ui/dist/ui/main.js @@ -1 +1 @@ -"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[179],{587:()=>{function kn(t){return"function"==typeof t}let ao=!1;const dt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else ao&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ao=t},get useDeprecatedSynchronousErrorHandling(){return ao}};function mn(t){setTimeout(()=>{throw t},0)}const Ai={closed:!0,next(t){},error(t){if(dt.useDeprecatedSynchronousErrorHandling)throw t;mn(t)},complete(){}},Ii=Array.isArray||(t=>t&&"number"==typeof t.length);function Aa(t){return null!==t&&"object"==typeof t}const Ti=(()=>{function t(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return t.prototype=Object.create(Error.prototype),t})();class de{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:o,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof de)n.remove(this);else if(null!==n)for(let s=0;se.concat(n instanceof Ti?n.errors:n),[])}de.EMPTY=((t=new de).closed=!0,t);const xi="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class le extends de{constructor(e,n,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Ai;break;case 1:if(!e){this.destination=Ai;break}if("object"==typeof e){e instanceof le?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Zd(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Zd(this,e,n,r)}}[xi](){return this}static create(e,n,r){const o=new le(e,n,r);return o.syncErrorThrowable=!1,o}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Zd extends le{constructor(e,n,r,o){super(),this._parentSubscriber=e;let i,s=this;kn(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==Ai&&(s=Object.create(n),kn(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=i,this._error=r,this._complete=o}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:n}=this;dt.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:r}=dt;if(this._error)r&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)r?(n.syncErrorValue=e,n.syncErrorThrown=!0):mn(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;mn(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const n=()=>this._complete.call(this._context);dt.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,n){try{e.call(this._context,n)}catch(r){if(this.unsubscribe(),dt.useDeprecatedSynchronousErrorHandling)throw r;mn(r)}}__tryOrSetError(e,n,r){if(!dt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,r)}catch(o){return dt.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=o,e.syncErrorThrown=!0,!0):(mn(o),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const uo="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ni(t){return t}let ie=(()=>{class t{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,o){const{operator:i}=this,s=function zD(t,e,n){if(t){if(t instanceof le)return t;if(t[xi])return t[xi]()}return t||e||n?new le(t,e,n):new le(Ai)}(n,r,o);if(s.add(i?i.call(s,this.source):this.source||dt.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),dt.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){dt.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=r),function qD(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof le?n:null}return!0}(n)?n.error(r):console.warn(r)}}forEach(n,r){return new(r=Yd(r))((o,i)=>{let s;s=this.subscribe(a=>{try{n(a)}catch(u){i(u),s&&s.unsubscribe()}},i,o)})}_subscribe(n){const{source:r}=this;return r&&r.subscribe(n)}[uo](){return this}pipe(...n){return 0===n.length?this:function Kd(t){return 0===t.length?Ni:1===t.length?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=Yd(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=e=>new t(e),t})();function Yd(t){if(t||(t=dt.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const rr=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class WD extends de{constructor(e,n){super(),this.subject=e,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,n=e.observers;if(this.subject=null,!n||0===n.length||e.isStopped||e.closed)return;const r=n.indexOf(this.subscriber);-1!==r&&n.splice(r,1)}}class Xd extends le{constructor(e){super(e),this.destination=e}}let Yt=(()=>{class t extends ie{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[xi](){return new Xd(this)}lift(n){const r=new ef(this,this);return r.operator=n,r}next(n){if(this.closed)throw new rr;if(!this.isStopped){const{observers:r}=this,o=r.length,i=r.slice();for(let s=0;snew ef(e,n),t})();class ef extends Yt{constructor(e,n){super(),this.destination=e,this.source=n}next(e){const{destination:n}=this;n&&n.next&&n.next(e)}error(e){const{destination:n}=this;n&&n.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:n}=this;return n?this.source.subscribe(e):de.EMPTY}}function Ri(t){return t&&"function"==typeof t.schedule}function Q(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new JD(t,e))}}class JD{constructor(e,n){this.project=e,this.thisArg=n}call(e,n){return n.subscribe(new QD(e,this.project,this.thisArg))}}class QD extends le{constructor(e,n,r){super(e),this.project=n,this.count=0,this.thisArg=r||this}_next(e){let n;try{n=this.project.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(n)}}const tf=t=>e=>{for(let n=0,r=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function rf(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const Ia=t=>{if(t&&"function"==typeof t[uo])return(t=>e=>{const n=t[uo]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if(nf(t))return tf(t);if(rf(t))return(t=>e=>(t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,mn),e))(t);if(t&&"function"==typeof t[Fi])return(t=>e=>{const n=t[Fi]();for(;;){let r;try{r=n.next()}catch(o){return e.error(o),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const n=`You provided ${Aa(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function Ta(t,e){return new ie(n=>{const r=new de;let o=0;return r.add(e.schedule(function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function Oe(t,e){return e?function iC(t,e){if(null!=t){if(function rC(t){return t&&"function"==typeof t[uo]}(t))return function eC(t,e){return new ie(n=>{const r=new de;return r.add(e.schedule(()=>{const o=t[uo]();r.add(o.subscribe({next(i){r.add(e.schedule(()=>n.next(i)))},error(i){r.add(e.schedule(()=>n.error(i)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(rf(t))return function tC(t,e){return new ie(n=>{const r=new de;return r.add(e.schedule(()=>t.then(o=>{r.add(e.schedule(()=>{n.next(o),r.add(e.schedule(()=>n.complete()))}))},o=>{r.add(e.schedule(()=>n.error(o)))}))),r})}(t,e);if(nf(t))return Ta(t,e);if(function oC(t){return t&&"function"==typeof t[Fi]}(t)||"string"==typeof t)return function nC(t,e){if(!t)throw new Error("Iterable cannot be null");return new ie(n=>{const r=new de;let o;return r.add(()=>{o&&"function"==typeof o.return&&o.return()}),r.add(e.schedule(()=>{o=t[Fi](),r.add(e.schedule(function(){if(n.closed)return;let i,s;try{const a=o.next();i=a.value,s=a.done}catch(a){return void n.error(a)}s?n.complete():(n.next(i),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof ie?t:new ie(Ia(t))}class xa extends le{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Na extends le{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Ra(t,e){if(e.closed)return;if(t instanceof ie)return t.subscribe(e);let n;try{n=Ia(t)(e)}catch(r){e.error(r)}return n}function Ne(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(Ne((o,i)=>Oe(t(o,i)).pipe(Q((s,a)=>e(o,s,i,a))),n)):("number"==typeof e&&(n=e),r=>r.lift(new sC(t,n)))}class sC{constructor(e,n=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=n}call(e,n){return n.subscribe(new aC(e,this.project,this.concurrent))}}class aC extends Na{constructor(e,n,r=Number.POSITIVE_INFINITY){super(e),this.project=n,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function lo(t=Number.POSITIVE_INFINITY){return Ne(Ni,t)}function Fa(t,e){return e?Ta(t,e):new ie(tf(t))}function Oa(){return function(e){return e.lift(new lC(e))}}class lC{constructor(e){this.connectable=e}call(e,n){const{connectable:r}=this;r._refCount++;const o=new cC(e,r),i=n.subscribe(o);return o.closed||(o.connection=r.connect()),i}}class cC extends le{constructor(e,n){super(e),this.connectable=n}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const n=e._refCount;if(n<=0)return void(this.connection=null);if(e._refCount=n-1,n>1)return void(this.connection=null);const{connection:r}=this,o=e._connection;this.connection=null,o&&(!r||o===r)&&o.unsubscribe()}}class of extends ie{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new de,e.add(this.source.subscribe(new fC(this.getSubject(),this))),e.closed&&(this._connection=null,e=de.EMPTY)),e}refCount(){return Oa()(this)}}const dC=(()=>{const t=of.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class fC extends Xd{constructor(e,n){super(e),this.connectable=n}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const n=e._connection;e._refCount=0,e._subject=null,e._connection=null,n&&n.unsubscribe()}}}class gC{constructor(e,n){this.subjectFactory=e,this.selector=n}call(e,n){const{selector:r}=this,o=this.subjectFactory(),i=r(o).subscribe(e);return i.add(n.subscribe(o)),i}}function mC(){return new Yt}function ee(t){for(let e in t)if(t[e]===ee)return e;throw Error("Could not find renamed property on target object.")}function Pa(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function Z(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(Z).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function ka(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const vC=ee({__forward_ref__:ee});function ne(t){return t.__forward_ref__=ne,t.toString=function(){return Z(this())},t}function V(t){return sf(t)?t():t}function sf(t){return"function"==typeof t&&t.hasOwnProperty(vC)&&t.__forward_ref__===ne}class W extends Error{constructor(e,n){super(function Va(t,e){return`NG0${Math.abs(t)}${e?": "+e:""}`}(e,n)),this.code=e}}function R(t){return"string"==typeof t?t:null==t?"":String(t)}function Be(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():R(t)}function Oi(t,e){const n=e?` in ${e}`:"";throw new W(-201,`No provider for ${Be(t)} found${n}`)}function Ye(t,e){null==t&&function se(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}(e,t,null,"!=")}function F(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Xe(t){return{providers:t.providers||[],imports:t.imports||[]}}function La(t){return af(t,Pi)||af(t,lf)}function af(t,e){return t.hasOwnProperty(e)?t[e]:null}function uf(t){return t&&(t.hasOwnProperty(ja)||t.hasOwnProperty(MC))?t[ja]:null}const Pi=ee({\u0275prov:ee}),ja=ee({\u0275inj:ee}),lf=ee({ngInjectableDef:ee}),MC=ee({ngInjectorDef:ee});var P=(()=>((P=P||{})[P.Default=0]="Default",P[P.Host=1]="Host",P[P.Self=2]="Self",P[P.SkipSelf=4]="SkipSelf",P[P.Optional=8]="Optional",P))();let Ba;function yn(t){const e=Ba;return Ba=t,e}function cf(t,e,n){const r=La(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&P.Optional?null:void 0!==e?e:void Oi(Z(t),"Injector")}function vn(t){return{toString:t}.toString()}var bt=(()=>((bt=bt||{})[bt.OnPush=0]="OnPush",bt[bt.Default=1]="Default",bt))(),kt=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(kt||(kt={})),kt))();const AC="undefined"!=typeof globalThis&&globalThis,IC="undefined"!=typeof window&&window,TC="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,K=AC||"undefined"!=typeof global&&global||IC||TC,or={},te=[],ki=ee({\u0275cmp:ee}),Ha=ee({\u0275dir:ee}),Ua=ee({\u0275pipe:ee}),df=ee({\u0275mod:ee}),en=ee({\u0275fac:ee}),co=ee({__NG_ELEMENT_ID__:ee});let xC=0;function _n(t){return vn(()=>{const n={},r={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===bt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||te,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||kt.Emulated,id:"c",styles:t.styles||te,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,i=t.features,s=t.pipes;return r.id+=xC++,r.inputs=gf(t.inputs,n),r.outputs=gf(t.outputs),i&&i.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(ff):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(hf):null,r})}function ff(t){return Pe(t)||function Dn(t){return t[Ha]||null}(t)}function hf(t){return function Vn(t){return t[Ua]||null}(t)}const pf={};function ft(t){return vn(()=>{const e={type:t.type,bootstrap:t.bootstrap||te,declarations:t.declarations||te,imports:t.imports||te,exports:t.exports||te,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(pf[t.id]=t.type),e})}function gf(t,e){if(null==t)return or;const n={};for(const r in t)if(t.hasOwnProperty(r)){let o=t[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,e&&(e[o]=i)}return n}const x=_n;function Je(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Pe(t){return t[ki]||null}function ht(t,e){const n=t[df]||null;if(!n&&!0===e)throw new Error(`Type ${Z(t)} does not have '\u0275mod' property.`);return n}const L=11;function Vt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Et(t){return Array.isArray(t)&&!0===t[1]}function qa(t){return 0!=(8&t.flags)}function Bi(t){return 2==(2&t.flags)}function Hi(t){return 1==(1&t.flags)}function Mt(t){return null!==t.template}function kC(t){return 0!=(512&t[2])}function Hn(t,e){return t.hasOwnProperty(en)?t[en]:null}class jC{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function tt(){return yf}function yf(t){return t.type.prototype.ngOnChanges&&(t.setInput=HC),BC}function BC(){const t=_f(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===or)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function HC(t,e,n,r){const o=_f(t)||function UC(t,e){return t[vf]=e}(t,{previous:or,current:null}),i=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[n],u=s[a];i[a]=new jC(u&&u.currentValue,e,s===or),t[r]=e}tt.ngInherit=!0;const vf="__ngSimpleChanges__";function _f(t){return t[vf]||null}let Za;function fe(t){return!!t.listen}const Df={createRenderer:(t,e)=>function Ka(){return void 0!==Za?Za:"undefined"!=typeof document?document:void 0}()};function _e(t){for(;Array.isArray(t);)t=t[0];return t}function Ui(t,e){return _e(e[t])}function mt(t,e){return _e(e[t.index])}function Ya(t,e){return t.data[e]}function lr(t,e){return t[e]}function nt(t,e){const n=e[t];return Vt(n)?n:n[0]}function Xa(t){return 128==(128&t[2])}function Cn(t,e){return null==e?null:t[e]}function bf(t){t[18]=0}function eu(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const N={lFrame:xf(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function wf(){return N.bindingsEnabled}function y(){return N.lFrame.lView}function J(){return N.lFrame.tView}function tu(t){return N.lFrame.contextLView=t,t[8]}function Ee(){let t=Ef();for(;null!==t&&64===t.type;)t=t.parent;return t}function Ef(){return N.lFrame.currentTNode}function Lt(t,e){const n=N.lFrame;n.currentTNode=t,n.isParent=e}function nu(){return N.lFrame.isParent}function $i(){return N.isInCheckNoChangesMode}function Gi(t){N.isInCheckNoChangesMode=t}function He(){const t=N.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function cr(){return N.lFrame.bindingIndex++}function ib(t,e){const n=N.lFrame;n.bindingIndex=n.bindingRootIndex=t,ou(e)}function ou(t){N.lFrame.currentDirectiveIndex=t}function su(t){N.lFrame.currentQueryIndex=t}function ab(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function If(t,e,n){if(n&P.SkipSelf){let o=e,i=t;for(;!(o=o.parent,null!==o||n&P.Host||(o=ab(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;e=o,t=i}const r=N.lFrame=Tf();return r.currentTNode=e,r.lView=t,!0}function qi(t){const e=Tf(),n=t[1];N.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function Tf(){const t=N.lFrame,e=null===t?null:t.child;return null===e?xf(t):e}function xf(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function Nf(){const t=N.lFrame;return N.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Rf=Nf;function zi(){const t=Nf();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Ue(){return N.lFrame.selectedIndex}function bn(t){N.lFrame.selectedIndex=t}function he(){const t=N.lFrame;return Ya(t.tView,t.selectedIndex)}function Wi(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[u]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===e){t[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}class mo{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Zi(t,e,n){const r=fe(t);let o=0;for(;oe){s=i-1;break}}}for(;i>16}(t),r=e;for(;n>0;)r=r[15],n--;return r}let cu=!0;function Yi(t){const e=cu;return cu=t,e}let bb=0;function vo(t,e){const n=fu(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,du(r.data,t),du(e,null),du(r.blueprint,null));const o=Xi(t,e),i=t.injectorIndex;if(kf(o)){const s=dr(o),a=fr(o,e),u=a[1].data;for(let l=0;l<8;l++)e[i+l]=a[s+l]|u[s+l]}return e[i+8]=o,i}function du(t,e){t.push(0,0,0,0,0,0,0,0,e)}function fu(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Xi(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,o=e;for(;null!==o;){const i=o[1],s=i.type;if(r=2===s?i.declTNode:1===s?o[6]:null,null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function es(t,e,n){!function wb(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(co)&&(r=n[co]),null==r&&(r=n[co]=bb++);const o=255&r;e.data[t+(o>>5)]|=1<=0?255&e:Mb:e}(n);if("function"==typeof i){if(!If(e,t,r))return r&P.Host?jf(o,n,r):Bf(e,n,r,o);try{const s=i(r);if(null!=s||r&P.Optional)return s;Oi(n)}finally{Rf()}}else if("number"==typeof i){let s=null,a=fu(t,e),u=-1,l=r&P.Host?e[16][6]:null;for((-1===a||r&P.SkipSelf)&&(u=-1===a?Xi(t,e):e[a+8],-1!==u&&Gf(r,!1)?(s=e[1],a=dr(u),e=fr(u,e)):a=-1);-1!==a;){const c=e[1];if($f(i,a,c.data)){const d=Sb(a,e,n,s,r,l);if(d!==Uf)return d}u=e[a+8],-1!==u&&Gf(r,e[1].data[a+8]===l)&&$f(i,a,e)?(s=c,a=dr(u),e=fr(u,e)):a=-1}}}return Bf(e,n,r,o)}const Uf={};function Mb(){return new hr(Ee(),y())}function Sb(t,e,n,r,o,i){const s=e[1],a=s.data[t+8],c=function ts(t,e,n,r,o){const i=t.providerIndexes,s=e.data,a=1048575&i,u=t.directiveStart,c=i>>20,f=o?a+c:t.directiveEnd;for(let h=r?a:a+c;h=u&&p.type===n)return h}if(o){const h=s[u];if(h&&Mt(h)&&h.type===n)return u}return null}(a,s,n,null==r?Bi(a)&&cu:r!=s&&0!=(3&a.type),o&P.Host&&i===a);return null!==c?_o(e,s,c,a):Uf}function _o(t,e,n,r){let o=t[n];const i=e.data;if(function yb(t){return t instanceof mo}(o)){const s=o;s.resolving&&function _C(t,e){const n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new W(-200,`Circular dependency in DI detected for ${t}${n}`)}(Be(i[n]));const a=Yi(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?yn(s.injectImpl):null;If(t,r,P.Default);try{o=t[n]=s.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function gb(t,e,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){const s=yf(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{null!==u&&yn(u),Yi(a),s.resolving=!1,Rf()}}return o}function $f(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[en]||hu(e),r=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){const i=o[en]||hu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function hu(t){return sf(t)?()=>{const e=hu(V(t));return e&&e()}:Hn(t)}const gr="__parameters__";function yr(t,e,n){return vn(()=>{const r=function pu(t){return function(...n){if(t){const r=t(...n);for(const o in r)this[o]=r[o]}}}(e);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(u,l,c){const d=u.hasOwnProperty(gr)?u[gr]:Object.defineProperty(u,gr,{value:[]})[gr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}class j{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=F({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const Tb=new j("AnalyzeForEntryComponents");function jt(t,e){t.forEach(n=>Array.isArray(n)?jt(n,e):e(n))}function zf(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ns(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function rt(t,e,n){let r=vr(t,e);return r>=0?t[1|r]=n:(r=~r,function Rb(t,e,n,r){let o=t.length;if(o==e)t.push(n,r);else if(1===o)t.push(r,t[0]),t[0]=n;else{for(o--,t.push(t[o-1],t[o]);o>e;)t[o]=t[o-2],o--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function mu(t,e){const n=vr(t,e);if(n>=0)return t[1|n]}function vr(t,e){return function Qf(t,e,n){let r=0,o=t.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=t[i<e?o=i:r=i+1}return~(o<({token:t})),-1),Bt=So(yr("Optional"),8),_r=So(yr("SkipSelf"),4);class ah{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function En(t){return t instanceof ah?t.changingThisBreaksApplicationSecurity:t}const dw=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,fw=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;var De=(()=>((De=De||{})[De.NONE=0]="NONE",De[De.HTML=1]="HTML",De[De.STYLE=2]="STYLE",De[De.SCRIPT=3]="SCRIPT",De[De.URL=4]="URL",De[De.RESOURCE_URL=5]="RESOURCE_URL",De))();function Au(t){const e=function No(){const t=y();return t&&t[12]}();return e?e.sanitize(De.URL,t)||"":function To(t,e){const n=function aw(t){return t instanceof ah&&t.getTypeName()||null}(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}(t,"URL")?En(t):function us(t){return(t=String(t)).match(dw)||t.match(fw)?t:"unsafe:"+t}(R(t))}const yh="__ngContext__";function Ve(t,e){t[yh]=e}function Tu(t){const e=function Ro(t){return t[yh]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Nu(t){return t.ngOriginalError}function Pw(t,...e){t.error(...e)}class br{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e),r=function Ow(t){return t&&t.ngErrorLogger||Pw}(e);r(this._console,"ERROR",e),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&Nu(e);for(;n&&Nu(n);)n=Nu(n);return n||null}}const bh=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(K))();function Ut(t){return t instanceof Function?t():t}var ot=(()=>((ot=ot||{})[ot.Important=1]="Important",ot[ot.DashCase=2]="DashCase",ot))();function Fu(t,e){return undefined(t,e)}function Fo(t){const e=t[3];return Et(e)?e[3]:e}function Ou(t){return Ah(t[13])}function Pu(t){return Ah(t[4])}function Ah(t){for(;null!==t&&!Et(t);)t=t[4];return t}function Er(t,e,n,r,o){if(null!=r){let i,s=!1;Et(r)?i=r:Vt(r)&&(s=!0,r=r[0]);const a=_e(r);0===t&&null!==n?null==o?Fh(e,n,a):Un(e,n,a,o||null,!0):1===t&&null!==n?Un(e,n,a,o||null,!0):2===t?function Bh(t,e,n){const r=cs(t,e);r&&function oE(t,e,n,r){fe(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=i&&function aE(t,e,n,r,o){const i=n[7];i!==_e(n)&&Er(e,t,r,i,o);for(let a=10;a0&&(t[n-1][4]=r[4]);const i=ns(t,10+e);!function Zw(t,e){Oo(t,e,e[L],2,null,null),e[0]=null,e[6]=null}(r[1],r);const s=i[19];null!==s&&s.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function xh(t,e){if(!(256&e[2])){const n=e[L];fe(n)&&n.destroyNode&&Oo(t,e,n,3,null,null),function Xw(t){let e=t[13];if(!e)return ju(t[1],t);for(;e;){let n=null;if(Vt(e))n=e[13];else{const r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)Vt(e)&&ju(e[1],e),e=e[3];null===e&&(e=t),Vt(e)&&ju(e[1],e),n=e&&e[4]}e=n}}(e)}}function ju(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function rE(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r=0?r[o=l]():r[o=-l].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;ii?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==$h(h,l,0)||2&r&&l!==f){if(St(r))return!1;s=!0}}}}else{if(!s&&!St(r)&&!St(u))return!1;if(s&&St(u))continue;s=!1,r=u|1&r}}return St(r)||s}function St(t){return 0==(1&t)}function fE(t,e,n,r){if(null===e)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!St(s)&&(e+=Wh(i,o),o=""),r=s,i=i||!St(r);n++}return""!==o&&(e+=Wh(i,o)),e}const O={};function Y(t){Jh(J(),y(),Ue()+t,$i())}function Jh(t,e,n,r){if(!r)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Ji(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Qi(e,i,0,n)}bn(n)}function hs(t,e){return t<<17|e<<2}function At(t){return t>>17&32767}function Gu(t){return 2|t}function rn(t){return(131068&t)>>2}function qu(t,e){return-131069&t|e<<2}function zu(t){return 1|t}function ip(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r20&&Jh(t,e,20,$i()),n(r,o)}finally{bn(i)}}function nl(t,e,n){!wf()||(function UE(t,e,n,r){const o=n.directiveStart,i=n.directiveEnd;t.firstCreatePass||vo(n,e),Ve(r,e);const s=n.initialInputs;for(let a=o;a0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(a)!=u&&a.push(u),a.push(r,o,s)}}function gp(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function mp(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function zE(t,e,n){if(n){if(e.exportAs)for(let r=0;r0&&sl(n)}}function sl(t){for(let r=Ou(t);null!==r;r=Pu(r))for(let o=10;o0&&sl(i)}const n=t[1].components;if(null!==n)for(let r=0;r0&&sl(o)}}function XE(t,e){const n=nt(e,t),r=n[1];(function eM(t,e){for(let n=e.length;nPromise.resolve(null))();function Cp(t){return t[7]||(t[7]=[])}function bp(t){return t.cleanup||(t.cleanup=[])}function Ep(t,e){const n=t[9],r=n?n.get(br,null):null;r&&r.handleError(e)}function Mp(t,e,n,r,o){for(let i=0;ithis.processProvider(a,e,n)),jt([e],a=>this.processInjectorType(a,[],i)),this.records.set(dl,Ir(void 0,this));const s=this.records.get(fl);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof e?null:Z(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,n=Eo,r=P.Default){this.assertNotDestroyed();const o=Yf(this),i=yn(void 0);try{if(!(r&P.SkipSelf)){let a=this.records.get(e);if(void 0===a){const u=function mM(t){return"function"==typeof t||"object"==typeof t&&t instanceof j}(e)&&La(e);a=u&&this.injectableDefInScope(u)?Ir(pl(e),Vo):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(r&P.Self?Ap():this.parent).get(e,n=r&P.Optional&&n===Eo?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[os]=s[os]||[]).unshift(Z(e)),o)throw s;return function Gb(t,e,n,r){const o=t[os];throw e[Kf]&&o.unshift(e[Kf]),t.message=function qb(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let o=Z(e);if(Array.isArray(e))o=e.map(Z).join(" -> ");else if("object"==typeof e){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):Z(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${t.replace(jb,"\n ")}`}("\n"+t.message,o,n,r),t.ngTokenPath=o,t[os]=null,t}(s,e,"R3InjectorError",this.source)}throw s}finally{yn(i),Yf(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((r,o)=>e.push(Z(o))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new W(205,"")}processInjectorType(e,n,r){if(!(e=V(e)))return!1;let o=uf(e);const i=null==o&&e.ngModule||void 0,s=void 0===i?e:i,a=-1!==r.indexOf(s);if(void 0!==i&&(o=uf(i)),null==o)return!1;if(null!=o.imports&&!a){let c;r.push(s);try{jt(o.imports,d=>{this.processInjectorType(d,n,r)&&(void 0===c&&(c=[]),c.push(d))})}finally{}if(void 0!==c)for(let d=0;dthis.processProvider(p,f,h||te))}}this.injectorDefTypes.add(s);const u=Hn(s)||(()=>new s);this.records.set(s,Ir(u,Vo));const l=o.providers;if(null!=l&&!a){const c=e;jt(l,d=>this.processProvider(d,c,l))}return void 0!==i&&void 0!==e.providers}processProvider(e,n,r){let o=Tr(e=V(e))?e:V(e&&e.provide);const i=function cM(t,e,n){return Np(t)?Ir(void 0,t.useValue):Ir(xp(t),Vo)}(e);if(Tr(e)||!0!==e.multi)this.records.get(o);else{let s=this.records.get(o);s||(s=Ir(void 0,Vo,!0),s.factory=()=>_u(s.multi),this.records.set(o,s)),o=e,s.multi.push(e)}this.records.set(o,i)}hydrate(e,n){return n.value===Vo&&(n.value=aM,n.value=n.factory()),"object"==typeof n.value&&n.value&&function gM(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;const n=V(e.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function pl(t){const e=La(t),n=null!==e?e.factory:Hn(t);if(null!==n)return n;if(t instanceof j)throw new W(204,"");if(t instanceof Function)return function lM(t){const e=t.length;if(e>0)throw function wo(t,e){const n=[];for(let r=0;rn.factory(t):()=>new t}(t);throw new W(204,"")}function xp(t,e,n){let r;if(Tr(t)){const o=V(t);return Hn(o)||pl(o)}if(Np(t))r=()=>V(t.useValue);else if(function fM(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(..._u(t.deps||[]));else if(function dM(t){return!(!t||!t.useExisting)}(t))r=()=>E(V(t.useExisting));else{const o=V(t&&(t.useClass||t.provide));if(!function pM(t){return!!t.deps}(t))return Hn(o)||pl(o);r=()=>new o(..._u(t.deps))}return r}function Ir(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Np(t){return null!==t&&"object"==typeof t&&Hb in t}function Tr(t){return"function"==typeof t}let Re=(()=>{class t{static create(n,r){var o;if(Array.isArray(n))return Ip({name:""},r,n,"");{const i=null!==(o=n.name)&&void 0!==o?o:"";return Ip({name:i},n.parent,n.providers,i)}}}return t.THROW_IF_NOT_FOUND=Eo,t.NULL=new Sp,t.\u0275prov=F({token:t,providedIn:"any",factory:()=>E(dl)}),t.__NG_ELEMENT_ID__=-1,t})();function EM(t,e){Wi(Tu(t)[1],Ee())}function X(t){let e=function $p(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0;const r=[t];for(;e;){let o;if(Mt(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new W(903,"");o=e.\u0275dir}if(o){if(n){r.push(o);const s=t;s.inputs=yl(t.inputs),s.declaredInputs=yl(t.declaredInputs),s.outputs=yl(t.outputs);const a=o.hostBindings;a&&IM(t,a);const u=o.viewQuery,l=o.contentQueries;if(u&&SM(t,u),l&&AM(t,l),Pa(t.inputs,o.inputs),Pa(t.declaredInputs,o.declaredInputs),Pa(t.outputs,o.outputs),Mt(o)&&o.data.animation){const c=t.data;c.animation=(c.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let s=0;s=0;r--){const o=t[r];o.hostVars=e+=o.hostVars,o.hostAttrs=Ki(o.hostAttrs,n=Ki(n,o.hostAttrs))}}(r)}function yl(t){return t===or?{}:t===te?[]:t}function SM(t,e){const n=t.viewQuery;t.viewQuery=n?(r,o)=>{e(r,o),n(r,o)}:e}function AM(t,e){const n=t.contentQueries;t.contentQueries=n?(r,o,i)=>{e(r,o,i),n(r,o,i)}:e}function IM(t,e){const n=t.hostBindings;t.hostBindings=n?(r,o)=>{e(r,o),n(r,o)}:e}let _s=null;function xr(){if(!_s){const t=K.Symbol;if(t&&t.iterator)_s=t.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let n=0;na(_e(I[r.index])):r.index;if(fe(n)){let I=null;if(!a&&u&&(I=function s0(t,e,n,r){const o=t.cleanup;if(null!=o)for(let i=0;iu?a[u]:null}"string"==typeof s&&(i+=2)}return null}(t,e,o,r.index)),null!==I)(I.__ngLastListenerFn__||I).__ngNextListenerFn__=i,I.__ngLastListenerFn__=i,h=!1;else{i=Al(r,e,d,i,!1);const z=n.listen(D,o,i);f.push(i,z),c&&c.push(o,w,g,g+1)}}else i=Al(r,e,d,i,!0),D.addEventListener(o,i,s),f.push(i),c&&c.push(o,w,g,s)}else i=Al(r,e,d,i,!1);const p=r.outputs;let m;if(h&&null!==p&&(m=p[o])){const _=m.length;if(_)for(let D=0;D<_;D+=2){const ct=e[m[D]][m[D+1]].subscribe(i),nr=f.length;f.push(i,ct),c&&c.push(o,r.index,nr,-(nr+1))}}}(i,o,o[L],s,t,e,!!n,r),Se}function pg(t,e,n,r){try{return!1!==n(r)}catch(o){return Ep(t,o),!1}}function Al(t,e,n,r,o){return function i(s){if(s===Function)return r;const a=2&t.flags?nt(t.index,e):e;0==(32&e[2])&&al(a);let u=pg(e,0,r,s),l=i.__ngNextListenerFn__;for(;l;)u=pg(e,0,l,s)&&u,l=l.__ngNextListenerFn__;return o&&!1===u&&(s.preventDefault(),s.returnValue=!1),u}}function Eg(t,e,n,r,o){const i=t[n+1],s=null===e;let a=r?At(i):rn(i),u=!1;for(;0!==a&&(!1===u||s);){const c=t[a+1];h0(t[a],e)&&(u=!0,t[a+1]=r?zu(c):Gu(c)),a=r?At(c):rn(c)}u&&(t[n+1]=r?Gu(i):zu(i))}function h0(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&vr(t,e)>=0}function bs(t,e){return function Tt(t,e,n,r){const o=y(),i=J(),s=function nn(t){const e=N.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}(2);i.firstUpdatePass&&function Fg(t,e,n,r){const o=t.data;if(null===o[n+1]){const i=o[Ue()],s=function Rg(t,e){return e>=t.expandoStartIndex}(t,n);(function Vg(t,e){return 0!=(t.flags&(e?16:32))})(i,r)&&null===e&&!s&&(e=!1),e=function b0(t,e,n,r){const o=function iu(t){const e=N.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let i=r?e.residualClasses:e.residualStyles;if(null===o)0===(r?e.classBindings:e.styleBindings)&&(n=Uo(n=Tl(null,t,e,n,r),e.attrs,r),i=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==o)if(n=Tl(o,t,e,n,r),null===i){let u=function w0(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==rn(r))return t[At(r)]}(t,e,r);void 0!==u&&Array.isArray(u)&&(u=Tl(null,t,e,u[1],r),u=Uo(u,e.attrs,r),function E0(t,e,n,r){t[At(n?e.classBindings:e.styleBindings)]=r}(t,e,r,u))}else i=function M0(t,e,n){let r;const o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0)&&(l=!0)}else c=n;if(o)if(0!==u){const f=At(t[a+1]);t[r+1]=hs(f,a),0!==f&&(t[f+1]=qu(t[f+1],r)),t[a+1]=function DE(t,e){return 131071&t|e<<17}(t[a+1],r)}else t[r+1]=hs(a,0),0!==a&&(t[a+1]=qu(t[a+1],r)),a=r;else t[r+1]=hs(u,0),0===a?a=r:t[u+1]=qu(t[u+1],r),u=r;l&&(t[r+1]=Gu(t[r+1])),Eg(t,c,r,!0),Eg(t,c,r,!1),function f0(t,e,n,r,o){const i=o?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof e&&vr(i,e)>=0&&(n[r+1]=zu(n[r+1]))}(e,c,t,r,i),s=hs(a,u),i?e.classBindings=s:e.styleBindings=s}(o,i,e,n,s,r)}}(i,t,s,r),e!==O&&Le(o,s,e)&&function Pg(t,e,n,r,o,i,s,a){if(!(3&e.type))return;const u=t.data,l=u[a+1];ws(function Kh(t){return 1==(1&t)}(l)?kg(u,e,n,o,rn(l),s):void 0)||(ws(i)||function Zh(t){return 2==(2&t)}(l)&&(i=kg(u,null,n,o,a,s)),function uE(t,e,n,r,o){const i=fe(t);if(e)o?i?t.addClass(n,r):n.classList.add(r):i?t.removeClass(n,r):n.classList.remove(r);else{let s=-1===r.indexOf("-")?void 0:ot.DashCase;if(null==o)i?t.removeStyle(n,r,s):n.style.removeProperty(r);else{const a="string"==typeof o&&o.endsWith("!important");a&&(o=o.slice(0,-10),s|=ot.Important),i?t.setStyle(n,r,o,s):n.style.setProperty(r,o,a?"important":"")}}}(r,s,Ui(Ue(),n),o,i))}(i,i.data[Ue()],o,o[L],t,o[s+1]=function I0(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=Z(En(t)))),t}(e,n),r,s)}(t,e,null,!0),bs}function Tl(t,e,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const u=t[o],l=Array.isArray(u),c=l?u[1]:u,d=null===c;let f=n[o+1];f===O&&(f=d?te:void 0);let h=d?mu(f,r):c===r?f:void 0;if(l&&!ws(h)&&(h=mu(u,r)),ws(h)&&(a=h,s))return a;const p=t[o+1];o=s?At(p):rn(p)}if(null!==e){let u=i?e.residualClasses:e.residualStyles;null!=u&&(a=mu(u,r))}return a}function ws(t){return void 0!==t}function $(t,e=""){const n=y(),r=J(),o=t+20,i=r.firstCreatePass?Mr(r,o,1,e,null):r.data[o],s=n[o]=function ku(t,e){return fe(t)?t.createText(e):t.createTextNode(e)}(n[L],e);ds(r,n,s,i),Lt(i,!1)}function Gn(t){return Ur("",t,""),Gn}function Ur(t,e,n){const r=y(),o=function Rr(t,e,n,r){return Le(t,cr(),n)?e+R(n)+r:O}(r,t,e,n);return o!==O&&on(r,Ue(),o),Ur}const qn=void 0;var J0=["en",[["a","p"],["AM","PM"],qn],[["AM","PM"],qn,qn],[["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"]],qn,[["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"]],qn,[["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}",qn,"{1} 'at' {0}",qn],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function W0(t){const n=Math.floor(Math.abs(t)),r=t.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let $r={};function qe(t){const e=function Q0(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=om(e);if(n)return n;const r=e.split("-")[0];if(n=om(r),n)return n;if("en"===r)return J0;throw new Error(`Missing locale data for the locale "${t}".`)}function om(t){return t in $r||($r[t]=K.ng&&K.ng.common&&K.ng.common.locales&&K.ng.common.locales[t]),$r[t]}var b=(()=>((b=b||{})[b.LocaleId=0]="LocaleId",b[b.DayPeriodsFormat=1]="DayPeriodsFormat",b[b.DayPeriodsStandalone=2]="DayPeriodsStandalone",b[b.DaysFormat=3]="DaysFormat",b[b.DaysStandalone=4]="DaysStandalone",b[b.MonthsFormat=5]="MonthsFormat",b[b.MonthsStandalone=6]="MonthsStandalone",b[b.Eras=7]="Eras",b[b.FirstDayOfWeek=8]="FirstDayOfWeek",b[b.WeekendRange=9]="WeekendRange",b[b.DateFormat=10]="DateFormat",b[b.TimeFormat=11]="TimeFormat",b[b.DateTimeFormat=12]="DateTimeFormat",b[b.NumberSymbols=13]="NumberSymbols",b[b.NumberFormats=14]="NumberFormats",b[b.CurrencyCode=15]="CurrencyCode",b[b.CurrencySymbol=16]="CurrencySymbol",b[b.CurrencyName=17]="CurrencyName",b[b.Currencies=18]="Currencies",b[b.Directionality=19]="Directionality",b[b.PluralCase=20]="PluralCase",b[b.ExtraData=21]="ExtraData",b))();const Es="en-US";let im=Es;function Rl(t,e,n,r,o){if(t=V(t),Array.isArray(t))for(let i=0;i>20;if(Tr(t)||!t.multi){const h=new mo(u,o,v),p=Ol(a,e,o?c:c+f,d);-1===p?(es(vo(l,s),i,a),Fl(i,t,e.length),e.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=Ol(a,e,c+f,d),p=Ol(a,e,c,c+f),m=h>=0&&n[h],_=p>=0&&n[p];if(o&&!_||!o&&!m){es(vo(l,s),i,a);const D=function WS(t,e,n,r,o){const i=new mo(t,n,v);return i.multi=[],i.index=e,i.componentProviders=0,Tm(i,o,r&&!n),i}(o?zS:qS,n.length,o,r,u);!o&&_&&(n[p].providerFactory=D),Fl(i,t,e.length,0),e.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(D),s.push(D)}else Fl(i,t,h>-1?h:p,Tm(n[o?p:h],u,!o&&r));!o&&r&&_&&n[p].componentProviders++}}}function Fl(t,e,n,r){const o=Tr(e),i=function hM(t){return!!t.useClass}(e);if(o||i){const u=(i?V(e.useClass):e).prototype.ngOnDestroy;if(u){const l=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){const c=l.indexOf(n);-1===c?l.push(n,[r,u]):l[c+1].push(r,u)}else l.push(n,u)}}}function Tm(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Ol(t,e,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function GS(t,e,n){const r=J();if(r.firstCreatePass){const o=Mt(t);Rl(n,r.data,r.blueprint,o,!0),Rl(e,r.data,r.blueprint,o,!1)}}(r,o?o(t):t,e)}}class xm{}class ZS{resolveComponentFactory(e){throw function QS(t){const e=Error(`No component factory found for ${Z(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(e)}}let qr=(()=>{class t{}return t.NULL=new ZS,t})();function KS(){return zr(Ee(),y())}function zr(t,e){return new st(mt(t,e))}let st=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=KS,t})();class Rm{}let un=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function eA(){const t=y(),n=nt(Ee().index,t);return function XS(t){return t[L]}(Vt(n)?n:t)}(),t})(),tA=(()=>{class t{}return t.\u0275prov=F({token:t,providedIn:"root",factory:()=>null}),t})();class Wo{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const nA=new Wo("13.2.0"),kl={};function Ts(t,e,n,r,o=!1){for(;null!==n;){const i=e[n.index];if(null!==i&&r.push(_e(i)),Et(i))for(let a=10;a-1&&(Lu(e,r),ns(n,r))}this._attachedToViewContainer=!1}xh(this._lView[1],this._lView)}onDestroy(e){!function dp(t,e,n,r){const o=Cp(e);null===n?o.push(r):(o.push(n),t.firstCreatePass&&bp(t).push(r,o.length-1))}(this._lView[1],this._lView,null,e)}markForCheck(){al(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ll(this._lView[1],this._lView,this.context)}checkNoChanges(){!function nM(t,e,n){Gi(!0);try{ll(t,e,n)}finally{Gi(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new W(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Yw(t,e){Oo(t,e,e[L],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new W(902,"");this._appRef=e}}class rA extends Jo{constructor(e){super(e),this._view=e}detectChanges(){Dp(this._view)}checkNoChanges(){!function rM(t){Gi(!0);try{Dp(t)}finally{Gi(!1)}}(this._view)}get context(){return null}}class Fm extends qr{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const n=Pe(e);return new Vl(n,this.ngModule)}}function Om(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const iA=new j("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>bh});class Vl extends xm{constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=function vE(t){return t.map(yE).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Om(this.componentDef.inputs)}get outputs(){return Om(this.componentDef.outputs)}create(e,n,r,o){const i=(o=o||this.ngModule)?function sA(t,e){return{get:(n,r,o)=>{const i=t.get(n,kl,o);return i!==kl||r===kl?i:e.get(n,r,o)}}}(e,o.injector):e,s=i.get(Rm,Df),a=i.get(tA,null),u=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=r?function cp(t,e,n){if(fe(t))return t.selectRootElement(e,n===kt.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(u,r,this.componentDef.encapsulation):Vu(s.createRenderer(null,this.componentDef),l,function oA(t){const e=t.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(l)),d=this.componentDef.onPush?576:528,f=function Up(t,e){return{components:[],scheduler:t||bh,clean:oM,playerHandler:e||null,flags:0}}(),h=ms(0,null,null,1,0,null,null,null,null,null),p=Po(null,h,f,d,null,null,s,u,a,i);let m,_;qi(p);try{const D=function Bp(t,e,n,r,o,i){const s=n[1];n[20]=t;const u=Mr(s,20,2,"#host",null),l=u.mergedAttrs=e.hostAttrs;null!==l&&(vs(u,l,!0),null!==t&&(Zi(o,t,l),null!==u.classes&&$u(o,t,u.classes),null!==u.styles&&Uh(o,t,u.styles)));const c=r.createRenderer(t,e),d=Po(n,up(e),null,e.onPush?64:16,n[20],u,r,c,i||null,null);return s.firstCreatePass&&(es(vo(u,n),s,e.type),mp(s,u),yp(u,n.length,1)),ys(n,d),n[20]=d}(c,this.componentDef,p,s,u);if(c)if(r)Zi(u,c,["ng-version",nA.full]);else{const{attrs:g,classes:w}=function _E(t){const e=[],n=[];let r=1,o=2;for(;r0&&$u(u,c,w.join(" "))}if(_=Ya(h,20),void 0!==n){const g=_.projection=[];for(let w=0;wu(s,e)),e.contentQueries){const u=Ee();e.contentQueries(1,s,u.directiveStart)}const a=Ee();return!i.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(bn(a.index),pp(n[1],a,0,a.directiveStart,a.directiveEnd,e),gp(e,s)),s}(D,this.componentDef,p,f,[EM]),ko(h,p,null)}finally{zi()}return new uA(this.componentType,m,zr(_,p),p,_)}}class uA extends class JS{}{constructor(e,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new rA(o),this.componentType=e}get injector(){return new hr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class ln{}class Pm{}const Wr=new Map;class Lm extends ln{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Fm(this);const r=ht(e);this._bootstrapComponents=Ut(r.bootstrap),this._r3Injector=Tp(e,n,[{provide:ln,useValue:this},{provide:qr,useValue:this.componentFactoryResolver}],Z(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,n=Re.THROW_IF_NOT_FOUND,r=P.Default){return e===Re||e===ln||e===dl?this:this._r3Injector.get(e,n,r)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Ll extends Pm{constructor(e){super(),this.moduleType=e,null!==ht(e)&&function cA(t){const e=new Set;!function n(r){const o=ht(r,!0),i=o.id;null!==i&&(function km(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${Z(e)} vs ${Z(e.name)}`)}(i,Wr.get(i),r),Wr.set(i,r));const s=Ut(o.imports);for(const a of s)e.has(a)||(e.add(a),n(a))}(t)}(e)}create(e){return new Lm(this.moduleType,e)}}function jl(t,e,n,r){return function Bm(t,e,n,r,o,i){const s=e+n;return Le(t,s,o)?Gt(t,s+1,i?r.call(i,o):r(o)):Qo(t,s+1)}(y(),He(),t,e,n,r)}function Qo(t,e){const n=t[e];return n===O?void 0:n}function Hm(t,e,n,r,o,i,s){const a=e+n;return function $n(t,e,n,r){const o=Le(t,e,n);return Le(t,e+1,r)||o}(t,a,o,i)?Gt(t,a+2,s?r.call(s,o,i):r(o,i)):Qo(t,a+2)}function Bl(t,e){const n=J();let r;const o=t+20;n.firstCreatePass?(r=function _A(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}}(e,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=Hn(r.type)),s=yn(v);try{const a=Yi(!1),u=i();return Yi(a),function kM(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}(n,y(),o,u),u}finally{yn(s)}}function Hl(t,e,n,r){const o=t+20,i=y(),s=lr(i,o);return function Zo(t,e){return t[1].data[e].pure}(i,o)?Hm(i,He(),e,s.transform,n,r,s):s.transform(n,r)}function Ul(t){return e=>{setTimeout(t,void 0,e)}}const ge=class EA extends Yt{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,r){var o,i,s;let a=e,u=n||(()=>null),l=r;if(e&&"object"==typeof e){const d=e;a=null===(o=d.next)||void 0===o?void 0:o.bind(d),u=null===(i=d.error)||void 0===i?void 0:i.bind(d),l=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(u=Ul(u),a&&(a=Ul(a)),l&&(l=Ul(l)));const c=super.subscribe({next:a,error:u,complete:l});return e instanceof de&&e.add(c),c}};Symbol;let cn=(()=>{class t{}return t.__NG_ELEMENT_ID__=IA,t})();const SA=cn,AA=class extends SA{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(e){const n=this._declarationTContainer.tViews,r=Po(this._declarationLView,n,e,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(r[19]=i.createEmbeddedView(n)),ko(n,r,e),new Jo(r)}};function IA(){return function xs(t,e){return 4&t.type?new AA(e,t,zr(t,e)):null}(Ee(),y())}let Nt=(()=>{class t{}return t.__NG_ELEMENT_ID__=TA,t})();function TA(){return function Wm(t,e){let n;const r=e[t.index];if(Et(r))n=r;else{let o;if(8&t.type)o=_e(r);else{const i=e[L];o=i.createComment("");const s=mt(t,e);Un(i,cs(i,s),o,function iE(t,e){return fe(t)?t.nextSibling(e):e.nextSibling}(i,s),!1)}e[t.index]=n=_p(r,e,o,t),ys(e,n)}return new qm(n,t,e)}(Ee(),y())}const xA=Nt,qm=class extends xA{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return zr(this._hostTNode,this._hostLView)}get injector(){return new hr(this._hostTNode,this._hostLView)}get parentInjector(){const e=Xi(this._hostTNode,this._hostLView);if(kf(e)){const n=fr(e,this._hostLView),r=dr(e);return new hr(n[1].data[r+8],n)}return new hr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=zm(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,n,r){const o=e.createEmbeddedView(n||{});return this.insert(o,r),o}createComponent(e,n,r,o,i){const s=e&&!function bo(t){return"function"==typeof t}(e);let a;if(s)a=n;else{const d=n||{};a=d.index,r=d.injector,o=d.projectableNodes,i=d.ngModuleRef}const u=s?e:new Vl(Pe(e)),l=r||this.parentInjector;if(!i&&null==u.ngModule&&l){const d=l.get(ln,null);d&&(i=d)}const c=u.create(l,o,void 0,i);return this.insert(c.hostView,a),c}insert(e,n){const r=e._lView,o=r[1];if(function KC(t){return Et(t[3])}(r)){const c=this.indexOf(e);if(-1!==c)this.detach(c);else{const d=r[3],f=new qm(d,d[6],d[3]);f.detach(f.indexOf(e))}}const i=this._adjustIndex(n),s=this._lContainer;!function eE(t,e,n,r){const o=10+r,i=n.length;r>0&&(n[o-1][4]=e),r{class t{constructor(n){this.appInits=n,this.resolve=Fs,this.reject=Fs,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{i.subscribe({complete:a,error:u})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return t.\u0275fac=function(n){return new(n||t)(E(Os,8))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const Yo=new j("AppId"),oI={provide:Yo,useFactory:function rI(){return`${oc()}${oc()}${oc()}`},deps:[]};function oc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const gy=new j("Platform Initializer"),Ps=new j("Platform ID"),my=new j("appBootstrapListener");let yy=(()=>{class t{log(n){console.log(n)}warn(n){console.warn(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const An=new j("LocaleId"),vy=new j("DefaultCurrencyCode");class iI{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}}let ks=(()=>{class t{compileModuleSync(n){return new Ll(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=Ut(ht(n).declarations).reduce((s,a)=>{const u=Pe(a);return u&&s.push(new Vl(u)),s},[]);return new iI(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const aI=(()=>Promise.resolve(0))();function ic(t){"undefined"==typeof Zone?aI.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ie{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ge(!1),this.onMicrotaskEmpty=new ge(!1),this.onStable=new ge(!1),this.onError=new ge(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function uI(){let t=K.requestAnimationFrame,e=K.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function dI(t){const e=()=>{!function cI(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(K,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,ac(t),t.isCheckStableRunning=!0,sc(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),ac(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return _y(t),n.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||t.shouldCoalesceRunChangeDetection)&&e(),Dy(t)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return _y(t),n.invoke(o,i,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&e(),Dy(t)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,ac(t),sc(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ie.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ie.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,lI,Fs,Fs);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}}const lI={};function sc(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function ac(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function _y(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Dy(t){t._nesting--,sc(t)}class fI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ge,this.onMicrotaskEmpty=new ge,this.onStable=new ge,this.onError=new ge}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,o){return e.apply(n,r)}}let uc=(()=>{class t{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ie.assertNotInAngularZone(),ic(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())ic(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,o){return[]}}return t.\u0275fac=function(n){return new(n||t)(E(Ie))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),Cy=(()=>{class t{constructor(){this._applications=new Map,lc.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return lc.findTestabilityInTree(this,n,r)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();class hI{addToWindow(e){}findTestabilityInTree(e,n,r){return null}}let Rt,lc=new hI;const by=new j("AllowMultipleToken");class wy{constructor(e,n){this.name=e,this.token=n}}function Ey(t,e,n=[]){const r=`Platform: ${e}`,o=new j(r);return(i=[])=>{let s=My();if(!s||s.injector.get(by,!1))if(t)t(n.concat(i).concat({provide:o,useValue:!0}));else{const a=n.concat(i).concat({provide:o,useValue:!0},{provide:fl,useValue:"platform"});!function yI(t){if(Rt&&!Rt.destroyed&&!Rt.injector.get(by,!1))throw new W(400,"");Rt=t.get(Sy);const e=t.get(gy,null);e&&e.forEach(n=>n())}(Re.create({providers:a,name:r}))}return function vI(t){const e=My();if(!e)throw new W(401,"");return e}()}}function My(){return Rt&&!Rt.destroyed?Rt:null}let Sy=(()=>{class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function _I(t,e){let n;return n="noop"===t?new fI:("zone.js"===t?void 0:t)||new Ie({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),u=[{provide:Ie,useValue:a}];return a.run(()=>{const l=Re.create({providers:u,parent:this.injector,name:n.moduleType.name}),c=n.create(l),d=c.injector.get(br,null);if(!d)throw new W(402,"");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{d.handleError(h)}});c.onDestroy(()=>{cc(this._modules,c),f.unsubscribe()})}),function DI(t,e,n){try{const r=n();return Ho(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(d,a,()=>{const f=c.injector.get(Qr);return f.runInitializers(),f.donePromise.then(()=>(function X0(t){Ye(t,"Expected localeId to be defined"),"string"==typeof t&&(im=t.toLowerCase().replace(/_/g,"-"))}(c.injector.get(An,Es)||Es),this._moduleDoBootstrap(c),c))})})}bootstrapModule(n,r=[]){const o=Ay({},r);return function gI(t,e,n){const r=new Ll(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(Xo);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new W(403,"");n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new W(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(n){return new(n||t)(E(Re))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();function Ay(t,e){return Array.isArray(e)?e.reduce(Ay,t):Object.assign(Object.assign({},t),e)}let Xo=(()=>{class t{constructor(n,r,o,i,s){this._zone=n,this._injector=r,this._exceptionHandler=o,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new ie(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),u=new ie(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Ie.assertNotInAngularZone(),ic(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{Ie.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),d.unsubscribe()}});this.isStable=function uC(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return Ri(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof ie?t[0]:lo(e)(Fa(t,n))}(a,u.pipe(function yC(){return t=>Oa()(function pC(t,e){return function(r){let o;if(o="function"==typeof t?t:function(){return t},"function"==typeof e)return r.lift(new gC(o,e));const i=Object.create(r,dC);return i.source=r,i.subjectFactory=o,i}}(mC)(t))}()))}bootstrap(n,r){if(!this._initStatus.done)throw new W(405,"");let o;o=n instanceof xm?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const i=function mI(t){return t.isBoundToModule}(o)?void 0:this._injector.get(ln),a=o.create(Re.NULL,[],r||o.selector,i),u=a.location.nativeElement,l=a.injector.get(uc,null),c=l&&a.injector.get(Cy);return l&&c&&c.registerApplication(u,l),a.onDestroy(()=>{this.detachView(a.hostView),cc(this.components,a),c&&c.unregisterApplication(u)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new W(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;cc(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(my,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(n){return new(n||t)(E(Ie),E(Re),E(br),E(qr),E(Qr))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();function cc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let dc=(()=>{class t{}return t.__NG_ELEMENT_ID__=wI,t})();function wI(t){return function EI(t,e,n){if(Bi(t)&&!n){const r=nt(t.index,e);return new Jo(r,r)}return 47&t.type?new Jo(e[16],e):null}(Ee(),y(),16==(16&t))}class ky{constructor(){}supports(e){return Lo(e)}create(e){return new xI(e)}}const TI=(t,e)=>e;class xI{constructor(e){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=e||TI}forEachItem(e){let n;for(n=this._itHead;null!==n;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,o){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,i,o)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,i,o)):e=this._addAfter(new NI(n,r),i,o),e}_verifyReinsertion(e,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;null!==e;){const n=e._next;this._addToRemovals(this._unlink(e)),e=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const o=e._prevRemoved,i=e._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){const o=null===n?this._itHead:n._next;return e._next=o,e._prev=n,null===o?this._itTail=e:o._prev=e,null===n?this._itHead=e:n._next=e,null===this._linkedRecords&&(this._linkedRecords=new Vy),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const n=e._prev,r=e._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Vy),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class NI{constructor(e,n){this.item=e,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class RI{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const n=e._prevDup,r=e._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Vy{constructor(){this.map=new Map}put(e){const n=e.trackById;let r=this.map.get(n);r||(r=new RI,this.map.set(n,r)),r.add(e)}get(e,n){const o=this.map.get(e);return o?o.get(e,n):null}remove(e){const n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ly(t,e,n){const r=t.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,n){if(e){const r=e._prev;return n._next=e,n._prev=r,e._prev=n,r&&(r._next=n),e===this._mapHead&&(this._mapHead=n),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(e,n){if(this._records.has(e)){const o=this._records.get(e);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new OI(e);return this._records.set(e,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,n){Object.is(n,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=n,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,n){e instanceof Map?e.forEach(n):Object.keys(e).forEach(r=>n(e[r],r))}}class OI{constructor(e){this.key=e,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 By(){return new ei([new ky])}let ei=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||By()),deps:[[t,new _r,new Bt]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new W(901,"")}}return t.\u0275prov=F({token:t,providedIn:"root",factory:By}),t})();function Hy(){return new Zr([new jy])}let Zr=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||Hy()),deps:[[t,new _r,new Bt]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new W(901,"")}}return t.\u0275prov=F({token:t,providedIn:"root",factory:Hy}),t})();const PI=[new jy],VI=new ei([new ky]),LI=new Zr(PI),jI=Ey(null,"core",[{provide:Ps,useValue:"unknown"},{provide:Sy,deps:[Re]},{provide:Cy,deps:[]},{provide:yy,deps:[]}]),GI=[{provide:Xo,useClass:Xo,deps:[Ie,Re,br,qr,Qr]},{provide:iA,deps:[Ie],useFactory:function qI(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(n){e.push(n)}}},{provide:Qr,useClass:Qr,deps:[[new Bt,Os]]},{provide:ks,useClass:ks,deps:[]},oI,{provide:ei,useFactory:function BI(){return VI},deps:[]},{provide:Zr,useFactory:function HI(){return LI},deps:[]},{provide:An,useFactory:function UI(t){return t||function $I(){return"undefined"!=typeof $localize&&$localize.locale||Es}()},deps:[[new Ao(An),new Bt,new _r]]},{provide:vy,useValue:"USD"}];let zI=(()=>{class t{constructor(n){}}return t.\u0275fac=function(n){return new(n||t)(E(Xo))},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({providers:GI}),t})(),Ls=null;function Jt(){return Ls}const at=new j("DocumentToken");let Wn=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:function(){return function ZI(){return E(Uy)}()},providedIn:"platform"}),t})();const KI=new j("Location Initialized");let Uy=(()=>{class t extends Wn{constructor(n){super(),this._doc=n,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Jt().getBaseHref(this._doc)}onPopState(n){const r=Jt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Jt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(n){this.location.pathname=n}pushState(n,r,o){$y()?this._history.pushState(n,r,o):this.location.hash=o}replaceState(n,r,o){$y()?this._history.replaceState(n,r,o):this.location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return t.\u0275fac=function(n){return new(n||t)(E(at))},t.\u0275prov=F({token:t,factory:function(){return function YI(){return new Uy(E(at))}()},providedIn:"platform"}),t})();function $y(){return!!window.history.pushState}function mc(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function Gy(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function dn(t){return t&&"?"!==t[0]?"?"+t:t}let Kr=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:function(){return function XI(t){const e=E(at).location;return new qy(E(Wn),e&&e.origin||"")}()},providedIn:"root"}),t})();const yc=new j("appBaseHref");let qy=(()=>{class t extends Kr{constructor(n,r){if(super(),this._platformLocation=n,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=r}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return mc(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+dn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+dn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+dn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformLocation).historyGo)||void 0===o||o.call(r,n)}}return t.\u0275fac=function(n){return new(n||t)(E(Wn),E(yc,8))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),eT=(()=>{class t extends Kr{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=mc(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+dn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+dn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformLocation).historyGo)||void 0===o||o.call(r,n)}}return t.\u0275fac=function(n){return new(n||t)(E(Wn),E(yc,8))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),vc=(()=>{class t{constructor(n,r){this._subject=new ge,this._urlChangeListeners=[],this._platformStrategy=n;const o=this._platformStrategy.getBaseHref();this._platformLocation=r,this._baseHref=Gy(zy(o)),this._platformStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}path(n=!1){return this.normalize(this._platformStrategy.path(n))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+dn(r))}normalize(n){return t.stripTrailingSlash(function nT(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,zy(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._platformStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+dn(r)),o)}replaceState(n,r="",o=null){this._platformStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+dn(r)),o)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformStrategy).historyGo)||void 0===o||o.call(r,n)}onUrlChange(n){this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}))}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return t.normalizeQueryParams=dn,t.joinWithSlash=mc,t.stripTrailingSlash=Gy,t.\u0275fac=function(n){return new(n||t)(E(Kr),E(Wn))},t.\u0275prov=F({token:t,factory:function(){return function tT(){return new vc(E(Kr),E(Wn))}()},providedIn:"root"}),t})();function zy(t){return t.replace(/\/index.html$/,"")}var Ce=(()=>((Ce=Ce||{})[Ce.Zero=0]="Zero",Ce[Ce.One=1]="One",Ce[Ce.Two=2]="Two",Ce[Ce.Few=3]="Few",Ce[Ce.Many=4]="Many",Ce[Ce.Other=5]="Other",Ce))(),ve=(()=>((ve=ve||{})[ve.Format=0]="Format",ve[ve.Standalone=1]="Standalone",ve))(),G=(()=>((G=G||{})[G.Narrow=0]="Narrow",G[G.Abbreviated=1]="Abbreviated",G[G.Wide=2]="Wide",G[G.Short=3]="Short",G))(),ce=(()=>((ce=ce||{})[ce.Short=0]="Short",ce[ce.Medium=1]="Medium",ce[ce.Long=2]="Long",ce[ce.Full=3]="Full",ce))(),A=(()=>((A=A||{})[A.Decimal=0]="Decimal",A[A.Group=1]="Group",A[A.List=2]="List",A[A.PercentSign=3]="PercentSign",A[A.PlusSign=4]="PlusSign",A[A.MinusSign=5]="MinusSign",A[A.Exponential=6]="Exponential",A[A.SuperscriptingExponent=7]="SuperscriptingExponent",A[A.PerMille=8]="PerMille",A[A.Infinity=9]="Infinity",A[A.NaN=10]="NaN",A[A.TimeSeparator=11]="TimeSeparator",A[A.CurrencyDecimal=12]="CurrencyDecimal",A[A.CurrencyGroup=13]="CurrencyGroup",A))();function js(t,e){return Dt(qe(t)[b.DateFormat],e)}function Bs(t,e){return Dt(qe(t)[b.TimeFormat],e)}function Hs(t,e){return Dt(qe(t)[b.DateTimeFormat],e)}function _t(t,e){const n=qe(t),r=n[b.NumberSymbols][e];if(void 0===r){if(e===A.CurrencyDecimal)return n[b.NumberSymbols][A.Decimal];if(e===A.CurrencyGroup)return n[b.NumberSymbols][A.Group]}return r}const lT=function rm(t){return qe(t)[b.PluralCase]};function Jy(t){if(!t[b.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[b.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Dt(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function Dc(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const gT=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ti={},mT=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Te=(()=>((Te=Te||{})[Te.Short=0]="Short",Te[Te.ShortGMT=1]="ShortGMT",Te[Te.Long=2]="Long",Te[Te.Extended=3]="Extended",Te))(),T=(()=>((T=T||{})[T.FullYear=0]="FullYear",T[T.Month=1]="Month",T[T.Date=2]="Date",T[T.Hours=3]="Hours",T[T.Minutes=4]="Minutes",T[T.Seconds=5]="Seconds",T[T.FractionalSeconds=6]="FractionalSeconds",T[T.Day=7]="Day",T))(),B=(()=>((B=B||{})[B.DayPeriods=0]="DayPeriods",B[B.Days=1]="Days",B[B.Months=2]="Months",B[B.Eras=3]="Eras",B))();function yT(t,e,n,r){let o=function ST(t){if(Ky(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[o,i=1,s=1]=t.split("-").map(a=>+a);return Us(o,i-1,s)}const n=parseFloat(t);if(!isNaN(t-n))return new Date(n);let r;if(r=t.match(gT))return function AT(t){const e=new Date(0);let n=0,r=0;const o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),o.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-n,a=Number(t[5]||0)-r,u=Number(t[6]||0),l=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,s,a,u,l),e}(r)}const e=new Date(t);if(!Ky(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=fn(n,e)||e;let a,s=[];for(;e;){if(a=mT.exec(e),!a){s.push(e);break}{s=s.concat(a.slice(1));const c=s.pop();if(!c)break;e=c}}let u=o.getTimezoneOffset();r&&(u=Zy(r,u),o=function MT(t,e,n){const r=n?-1:1,o=t.getTimezoneOffset();return function ET(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,r*(Zy(e,o)-o))}(o,r,!0));let l="";return s.forEach(c=>{const d=function wT(t){if(bc[t])return bc[t];let e;switch(t){case"G":case"GG":case"GGG":e=oe(B.Eras,G.Abbreviated);break;case"GGGG":e=oe(B.Eras,G.Wide);break;case"GGGGG":e=oe(B.Eras,G.Narrow);break;case"y":e=be(T.FullYear,1,0,!1,!0);break;case"yy":e=be(T.FullYear,2,0,!0,!0);break;case"yyy":e=be(T.FullYear,3,0,!1,!0);break;case"yyyy":e=be(T.FullYear,4,0,!1,!0);break;case"Y":e=zs(1);break;case"YY":e=zs(2,!0);break;case"YYY":e=zs(3);break;case"YYYY":e=zs(4);break;case"M":case"L":e=be(T.Month,1,1);break;case"MM":case"LL":e=be(T.Month,2,1);break;case"MMM":e=oe(B.Months,G.Abbreviated);break;case"MMMM":e=oe(B.Months,G.Wide);break;case"MMMMM":e=oe(B.Months,G.Narrow);break;case"LLL":e=oe(B.Months,G.Abbreviated,ve.Standalone);break;case"LLLL":e=oe(B.Months,G.Wide,ve.Standalone);break;case"LLLLL":e=oe(B.Months,G.Narrow,ve.Standalone);break;case"w":e=Cc(1);break;case"ww":e=Cc(2);break;case"W":e=Cc(1,!0);break;case"d":e=be(T.Date,1);break;case"dd":e=be(T.Date,2);break;case"c":case"cc":e=be(T.Day,1);break;case"ccc":e=oe(B.Days,G.Abbreviated,ve.Standalone);break;case"cccc":e=oe(B.Days,G.Wide,ve.Standalone);break;case"ccccc":e=oe(B.Days,G.Narrow,ve.Standalone);break;case"cccccc":e=oe(B.Days,G.Short,ve.Standalone);break;case"E":case"EE":case"EEE":e=oe(B.Days,G.Abbreviated);break;case"EEEE":e=oe(B.Days,G.Wide);break;case"EEEEE":e=oe(B.Days,G.Narrow);break;case"EEEEEE":e=oe(B.Days,G.Short);break;case"a":case"aa":case"aaa":e=oe(B.DayPeriods,G.Abbreviated);break;case"aaaa":e=oe(B.DayPeriods,G.Wide);break;case"aaaaa":e=oe(B.DayPeriods,G.Narrow);break;case"b":case"bb":case"bbb":e=oe(B.DayPeriods,G.Abbreviated,ve.Standalone,!0);break;case"bbbb":e=oe(B.DayPeriods,G.Wide,ve.Standalone,!0);break;case"bbbbb":e=oe(B.DayPeriods,G.Narrow,ve.Standalone,!0);break;case"B":case"BB":case"BBB":e=oe(B.DayPeriods,G.Abbreviated,ve.Format,!0);break;case"BBBB":e=oe(B.DayPeriods,G.Wide,ve.Format,!0);break;case"BBBBB":e=oe(B.DayPeriods,G.Narrow,ve.Format,!0);break;case"h":e=be(T.Hours,1,-12);break;case"hh":e=be(T.Hours,2,-12);break;case"H":e=be(T.Hours,1);break;case"HH":e=be(T.Hours,2);break;case"m":e=be(T.Minutes,1);break;case"mm":e=be(T.Minutes,2);break;case"s":e=be(T.Seconds,1);break;case"ss":e=be(T.Seconds,2);break;case"S":e=be(T.FractionalSeconds,1);break;case"SS":e=be(T.FractionalSeconds,2);break;case"SSS":e=be(T.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Gs(Te.Short);break;case"ZZZZZ":e=Gs(Te.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Gs(Te.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Gs(Te.Long);break;default:return null}return bc[t]=e,e}(c);l+=d?d(o,n,u):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Us(t,e,n){const r=new Date(0);return r.setFullYear(t,e,n),r.setHours(0,0,0),r}function fn(t,e){const n=function rT(t){return qe(t)[b.LocaleId]}(t);if(ti[n]=ti[n]||{},ti[n][e])return ti[n][e];let r="";switch(e){case"shortDate":r=js(t,ce.Short);break;case"mediumDate":r=js(t,ce.Medium);break;case"longDate":r=js(t,ce.Long);break;case"fullDate":r=js(t,ce.Full);break;case"shortTime":r=Bs(t,ce.Short);break;case"mediumTime":r=Bs(t,ce.Medium);break;case"longTime":r=Bs(t,ce.Long);break;case"fullTime":r=Bs(t,ce.Full);break;case"short":const o=fn(t,"shortTime"),i=fn(t,"shortDate");r=$s(Hs(t,ce.Short),[o,i]);break;case"medium":const s=fn(t,"mediumTime"),a=fn(t,"mediumDate");r=$s(Hs(t,ce.Medium),[s,a]);break;case"long":const u=fn(t,"longTime"),l=fn(t,"longDate");r=$s(Hs(t,ce.Long),[u,l]);break;case"full":const c=fn(t,"fullTime"),d=fn(t,"fullDate");r=$s(Hs(t,ce.Full),[c,d])}return r&&(ti[n][e]=r),r}function $s(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(n,r){return null!=e&&r in e?e[r]:n})),t}function Ft(t,e,n="-",r,o){let i="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,i=n));let s=String(t);for(;s.length0||a>-n)&&(a+=n),t===T.Hours)0===a&&-12===n&&(a=12);else if(t===T.FractionalSeconds)return function vT(t,e){return Ft(t,3).substr(0,e)}(a,e);const u=_t(s,A.MinusSign);return Ft(a,e,u,r,o)}}function oe(t,e,n=ve.Format,r=!1){return function(o,i){return function DT(t,e,n,r,o,i){switch(n){case B.Months:return function sT(t,e,n){const r=qe(t),i=Dt([r[b.MonthsFormat],r[b.MonthsStandalone]],e);return Dt(i,n)}(e,o,r)[t.getMonth()];case B.Days:return function iT(t,e,n){const r=qe(t),i=Dt([r[b.DaysFormat],r[b.DaysStandalone]],e);return Dt(i,n)}(e,o,r)[t.getDay()];case B.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(i){const l=function cT(t){const e=qe(t);return Jy(e),(e[b.ExtraData][2]||[]).map(r=>"string"==typeof r?Dc(r):[Dc(r[0]),Dc(r[1])])}(e),c=function dT(t,e,n){const r=qe(t);Jy(r);const i=Dt([r[b.ExtraData][0],r[b.ExtraData][1]],e)||[];return Dt(i,n)||[]}(e,o,r),d=l.findIndex(f=>{if(Array.isArray(f)){const[h,p]=f,m=s>=h.hours&&a>=h.minutes,_=s0?Math.floor(o/60):Math.ceil(o/60);switch(t){case Te.Short:return(o>=0?"+":"")+Ft(s,2,i)+Ft(Math.abs(o%60),2,i);case Te.ShortGMT:return"GMT"+(o>=0?"+":"")+Ft(s,1,i);case Te.Long:return"GMT"+(o>=0?"+":"")+Ft(s,2,i)+":"+Ft(Math.abs(o%60),2,i);case Te.Extended:return 0===r?"Z":(o>=0?"+":"")+Ft(s,2,i)+":"+Ft(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${t}"`)}}}function Qy(t){return Us(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function Cc(t,e=!1){return function(n,r){let o;if(e){const i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{const i=Qy(n),s=function bT(t){const e=Us(t,0,1).getDay();return Us(t,0,1+(e<=4?4:11)-e)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Ft(o,t,_t(r,A.MinusSign))}}function zs(t,e=!1){return function(n,r){return Ft(Qy(n).getFullYear(),t,_t(r,A.MinusSign),e)}}const bc={};function Zy(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function Ky(t){return t instanceof Date&&!isNaN(t.valueOf())}class Js{}let LT=(()=>{class t extends Js{constructor(n){super(),this.locale=n}getPluralCategory(n,r){switch(lT(r||this.locale)(n)){case Ce.Zero:return"zero";case Ce.One:return"one";case Ce.Two:return"two";case Ce.Few:return"few";case Ce.Many:return"many";default:return"other"}}}return t.\u0275fac=function(n){return new(n||t)(E(An))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();function tv(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}class HT{constructor(e,n,r,o){this.$implicit=e,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ac=(()=>{class t{constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new HT(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),nv(a,o)}});for(let o=0,i=r.length;o{nv(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return t.\u0275fac=function(n){return new(n||t)(v(Nt),v(cn),v(ei))},t.\u0275dir=x({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function nv(t,e){t.context.$implicit=e.item}let Ic=(()=>{class t{constructor(n,r){this._viewContainer=n,this._context=new UT,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){rv("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){rv("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return t.\u0275fac=function(n){return new(n||t)(v(Nt),v(cn))},t.\u0275dir=x({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class UT{constructor(){this.$implicit=null,this.ngIf=null}}function rv(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${Z(e)}'.`)}const rx=new j("DATE_PIPE_DEFAULT_TIMEZONE");let Nc=(()=>{class t{constructor(n,r){this.locale=n,this.defaultTimezone=r}transform(n,r="mediumDate",o,i){var s;if(null==n||""===n||n!=n)return null;try{return yT(n,r,i||this.locale,null!==(s=null!=o?o:this.defaultTimezone)&&void 0!==s?s:void 0)}catch(a){throw function Ot(t,e){return new W(2100,"")}()}}}return t.\u0275fac=function(n){return new(n||t)(v(An,16),v(rx,24))},t.\u0275pipe=Je({name:"date",type:t,pure:!0}),t})(),px=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({providers:[{provide:Js,useClass:LT}]}),t})();let vx=(()=>{class t{}return t.\u0275prov=F({token:t,providedIn:"root",factory:()=>new _x(E(at),window)}),t})();class _x{constructor(e,n){this.document=e,this.window=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const n=function Dx(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(e)||i.querySelector(`[name="${e}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,e);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=e)}}scrollToElement(e){const n=e.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=av(this.window.history)||av(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function av(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class uv{}class Oc extends class Cx extends class QI{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function JI(t){Ls||(Ls=t)}(new Oc)}onAndCancel(e,n,r){return e.addEventListener(n,r,!1),()=>{e.removeEventListener(n,r,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=function bx(){return ri=ri||document.querySelector("base"),ri?ri.getAttribute("href"):null}();return null==n?null:function wx(t){Qs=Qs||document.createElement("a"),Qs.setAttribute("href",t);const e=Qs.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){ri=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return tv(document.cookie,e)}}let Qs,ri=null;const lv=new j("TRANSITION_ID"),Mx=[{provide:Os,useFactory:function Ex(t,e,n){return()=>{n.get(Qr).donePromise.then(()=>{const r=Jt(),o=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let i=0;i{const i=e.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},K.getAllAngularTestabilities=()=>e.getAllTestabilities(),K.getAllAngularRootElements=()=>e.getAllRootElements(),K.frameworkStabilizers||(K.frameworkStabilizers=[]),K.frameworkStabilizers.push(r=>{const o=K.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(u){s=s||u,i--,0==i&&r(s)};o.forEach(function(u){u.whenStable(a)})})}findTestabilityInTree(e,n,r){if(null==n)return null;const o=e.getTestability(n);return null!=o?o:r?Jt().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null}}let Sx=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const Zs=new j("EventManagerPlugins");let Ks=(()=>{class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>o.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),r.add(o))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),oi=(()=>{class t extends dv{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,o){n.forEach(i=>{const s=this._doc.createElement("style");s.textContent=i,o.push(r.appendChild(s))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(fv),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(n,o,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(fv))}}return t.\u0275fac=function(n){return new(n||t)(E(at))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();function fv(t){Jt().remove(t)}const kc={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/"},Vc=/%COMP%/g;function Ys(t,e,n){for(let r=0;r{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Lc=(()=>{class t{constructor(n,r,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new jc(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case kt.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new Rx(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(n),o}case 1:case kt.ShadowDom:return new Fx(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const o=Ys(r.id,r.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(n){return new(n||t)(E(Ks),E(oi),E(Yo))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();class jc{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,n){return n?document.createElementNS(kc[n],e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){e.appendChild(n)}insertBefore(e,n,r){e&&e.insertBefore(n,r)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,o){if(o){n=o+":"+n;const i=kc[o];i?e.setAttributeNS(i,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){const o=kc[r];o?e.removeAttributeNS(o,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,o){o&(ot.DashCase|ot.Important)?e.style.setProperty(n,r,o&ot.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&ot.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e[n]=r}setValue(e,n){e.nodeValue=n}listen(e,n,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,gv(r)):this.eventManager.addEventListener(e,n,gv(r))}}class Rx extends jc{constructor(e,n,r,o){super(e),this.component=r;const i=Ys(o+"-"+r.id,r.styles,[]);n.addStyles(i),this.contentAttr=function Tx(t){return"_ngcontent-%COMP%".replace(Vc,t)}(o+"-"+r.id),this.hostAttr=function xx(t){return"_nghost-%COMP%".replace(Vc,t)}(o+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,n){const r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}}class Fx extends jc{constructor(e,n,r,o){super(e),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=Ys(o.id,o.styles,[]);for(let s=0;s{class t extends cv{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return t.\u0275fac=function(n){return new(n||t)(E(at))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const yv=["alt","control","meta","shift"],kx={"\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"},vv={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Vx={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let Lx=(()=>{class t extends cv{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,o){const i=t.parseEventName(r),s=t.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Jt().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=t._normalizeKey(r.pop());let s="";if(yv.forEach(u=>{const l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const a={};return a.domEventName=o,a.fullKey=s,a}static getEventFullKey(n){let r="",o=function jx(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&vv.hasOwnProperty(e)&&(e=vv[e]))}return kx[e]||e}(n);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),yv.forEach(i=>{i!=o&&Vx[i](n)&&(r+=i+".")}),r+=o,r}static eventCallback(n,r,o){return i=>{t.getEventFullKey(i)===n&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return t.\u0275fac=function(n){return new(n||t)(E(at))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const $x=Ey(jI,"browser",[{provide:Ps,useValue:"browser"},{provide:gy,useValue:function Bx(){Oc.makeCurrent(),Pc.init()},multi:!0},{provide:at,useFactory:function Ux(){return function WC(t){Za=t}(document),document},deps:[]}]),Gx=[{provide:fl,useValue:"root"},{provide:br,useFactory:function Hx(){return new br},deps:[]},{provide:Zs,useClass:Ox,multi:!0,deps:[at,Ie,Ps]},{provide:Zs,useClass:Lx,multi:!0,deps:[at]},{provide:Lc,useClass:Lc,deps:[Ks,oi,Yo]},{provide:Rm,useExisting:Lc},{provide:dv,useExisting:oi},{provide:oi,useClass:oi,deps:[at]},{provide:uc,useClass:uc,deps:[Ie]},{provide:Ks,useClass:Ks,deps:[Zs,Ie]},{provide:uv,useClass:Sx,deps:[]}];let qx=(()=>{class t{constructor(n){if(n)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(n){return{ngModule:t,providers:[{provide:Yo,useValue:n.appId},{provide:lv,useExisting:Yo},Mx]}}}return t.\u0275fac=function(n){return new(n||t)(E(t,12))},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({providers:Gx,imports:[px,zI]}),t})();function Xs(t,e){return new ie(n=>{const r=t.length;if(0===r)return void n.complete();const o=new Array(r);let i=0,s=0;for(let a=0;a{l||(l=!0,s++),o[a]=c},error:c=>n.error(c),complete:()=>{i++,(i===r||!l)&&(s===r&&n.next(e?e.reduce((c,d,f)=>(c[d]=o[f],c),{}):o),n.complete())}}))}})}"undefined"!=typeof window&&window;let Cv=(()=>{class t{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return t.\u0275fac=function(n){return new(n||t)(v(un),v(st))},t.\u0275dir=x({type:t}),t})(),Jn=(()=>{class t extends Cv{}return t.\u0275fac=function(){let e;return function(r){return(e||(e=$e(t)))(r||t)}}(),t.\u0275dir=x({type:t,features:[X]}),t})();const Qt=new j("NgValueAccessor"),oN={provide:Qt,useExisting:ne(()=>ii),multi:!0},sN=new j("CompositionEventMode");let ii=(()=>{class t extends Cv{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function iN(){const t=Jt()?Jt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(n){this.setProperty("value",null==n?"":n)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return t.\u0275fac=function(n){return new(n||t)(v(un),v(st),v(sN,8))},t.\u0275dir=x({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){1&n&&Se("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[ue([oN]),X]}),t})();const je=new j("NgValidators"),xn=new j("NgAsyncValidators");function Sv(t){return function Tn(t){return null==t||0===t.length}(t.value)?{required:!0}:null}function si(t){return null}function Rv(t){return null!=t}function Fv(t){const e=Ho(t)?Oe(t):t;return Sl(e),e}function Ov(t){let e={};return t.forEach(n=>{e=null!=n?Object.assign(Object.assign({},e),n):e}),0===Object.keys(e).length?null:e}function Pv(t,e){return e.map(n=>n(t))}function kv(t){return t.map(e=>function uN(t){return!t.validate}(e)?e:n=>e.validate(n))}function Hc(t){return null!=t?function Vv(t){if(!t)return null;const e=t.filter(Rv);return 0==e.length?null:function(n){return Ov(Pv(n,e))}}(kv(t)):null}function Uc(t){return null!=t?function Lv(t){if(!t)return null;const e=t.filter(Rv);return 0==e.length?null:function(n){return function nN(...t){if(1===t.length){const e=t[0];if(Ii(e))return Xs(e,null);if(Aa(e)&&Object.getPrototypeOf(e)===Object.prototype){const n=Object.keys(e);return Xs(n.map(r=>e[r]),n)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Xs(t=1===t.length&&Ii(t[0])?t[0]:t,null).pipe(Q(n=>e(...n)))}return Xs(t,null)}(Pv(n,e).map(Fv)).pipe(Q(Ov))}}(kv(t)):null}function jv(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function $c(t){return t?Array.isArray(t)?t:[t]:[]}function ea(t,e){return Array.isArray(t)?t.includes(e):t===e}function Uv(t,e){const n=$c(e);return $c(t).forEach(o=>{ea(n,o)||n.push(o)}),n}function $v(t,e){return $c(e).filter(n=>!ea(t,n))}class Gv{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(e){this._rawValidators=e||[],this._composedValidatorFn=Hc(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Uc(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,n){return!!this.control&&this.control.hasError(e,n)}getError(e,n){return this.control?this.control.getError(e,n):null}}class Nn extends Gv{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class We extends Gv{get formDirective(){return null}get path(){return null}}class qv{constructor(e){this._cd=e}is(e){var n,r,o;return"submitted"===e?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(o=null===(r=this._cd)||void 0===r?void 0:r.control)||void 0===o?void 0:o[e])}}let Gc=(()=>{class t extends qv{constructor(n){super(n)}}return t.\u0275fac=function(n){return new(n||t)(v(Nn,2))},t.\u0275dir=x({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&bs("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))},features:[X]}),t})(),qc=(()=>{class t extends qv{constructor(n){super(n)}}return t.\u0275fac=function(n){return new(n||t)(v(We,10))},t.\u0275dir=x({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&bs("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))("ng-submitted",r.is("submitted"))},features:[X]}),t})();function ai(t,e){Jc(t,e),e.valueAccessor.writeValue(t.value),function mN(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Wv(t,e)})}(t,e),function vN(t,e){const n=(r,o)=>{e.valueAccessor.writeValue(r),o&&e.viewToModelUpdate(r)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function yN(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Wv(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function gN(t,e){if(e.valueAccessor.setDisabledState){const n=r=>{e.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function oa(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function Jc(t,e){const n=function Bv(t){return t._rawValidators}(t);null!==e.validator?t.setValidators(jv(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const r=function Hv(t){return t._rawAsyncValidators}(t);null!==e.asyncValidator?t.setAsyncValidators(jv(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const o=()=>t.updateValueAndValidity();oa(e._rawValidators,o),oa(e._rawAsyncValidators,o)}function Wv(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function sa(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const ui="VALID",aa="INVALID",Yr="PENDING",li="DISABLED";function Yc(t){return(ua(t)?t.validators:t)||null}function Zv(t){return Array.isArray(t)?Hc(t):t||null}function Xc(t,e){return(ua(e)?e.asyncValidators:t)||null}function Kv(t){return Array.isArray(t)?Uc(t):t||null}function ua(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}const ed=t=>t instanceof nd;function Xv(t){return(t=>t instanceof n_)(t)?t.value:t.getRawValue()}function e_(t,e){const n=ed(t),r=t.controls;if(!(n?Object.keys(r):r).length)throw new W(1e3,"");if(!r[e])throw new W(1001,"")}function t_(t,e){ed(t),t._forEachChild((r,o)=>{if(void 0===e[o])throw new W(1002,"")})}class td{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=Zv(this._rawValidators),this._composedAsyncValidatorFn=Kv(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===ui}get invalid(){return this.status===aa}get pending(){return this.status==Yr}get disabled(){return this.status===li}get enabled(){return this.status!==li}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=Zv(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Kv(e)}addValidators(e){this.setValidators(Uv(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Uv(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators($v(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators($v(e,this._rawAsyncValidators))}hasValidator(e){return ea(this._rawValidators,e)}hasAsyncValidator(e){return ea(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Yr,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const n=this._parentMarkedDirty(e.onlySelf);this.status=li,this.errors=null,this._forEachChild(r=>{r.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){const n=this._parentMarkedDirty(e.onlySelf);this.status=ui,this._forEachChild(r=>{r.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ui||this.status===Yr)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?li:ui}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Yr,this._hasOwnPendingAsyncValidator=!0;const n=Fv(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(!1!==n.emitEvent)}get(e){return function bN(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(n)),Array.isArray(e)&&0===e.length))return null;let r=t;return e.forEach(o=>{r=ed(r)?r.controls.hasOwnProperty(o)?r.controls[o]:null:(t=>t instanceof EN)(r)&&r.at(o)||null}),r}(this,e,".")}getError(e,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new ge,this.statusChanges=new ge}_calculateStatus(){return this._allControlsDisabled()?li:this.errors?aa:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Yr)?Yr:this._anyControlsHaveStatus(aa)?aa:ui}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){ua(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class n_ extends td{constructor(e=null,n,r){super(Yc(n),Xc(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ua(n)&&n.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(e)?e.value:e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){sa(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){sa(this._onDisabledChange,e)}_forEachChild(e){}_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(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class nd extends td{constructor(e,n,r){super(Yc(n),Xc(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,r={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){t_(this,e),Object.keys(e).forEach(r=>{e_(this,r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){null!=e&&(Object.keys(e).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((r,o)=>{r.reset(e[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,r)=>(e[r]=Xv(n),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&e(r,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const n of Object.keys(this.controls)){const r=this.controls[n];if(this.contains(n)&&e(r))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(e,n){let r=e;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class EN extends td{constructor(e,n,r){super(Yc(n),Xc(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,n={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(e,n,r={}){this.controls.splice(e,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),n&&(this.controls.splice(e,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,n={}){t_(this,e),e.forEach((r,o)=>{e_(this,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){null!=e&&(e.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e=[],n={}){this._forEachChild((r,o)=>{r.reset(e[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(e=>Xv(e))}clear(e={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((n,r)=>!!r._syncPendingControls()||n,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((n,r)=>{e(n,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(n=>n.enabled&&e(n))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const MN={provide:We,useExisting:ne(()=>di)},ci=(()=>Promise.resolve(null))();let di=(()=>{class t extends We{constructor(n,r){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new ge,this.form=new nd({},Hc(n),Uc(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){ci.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),ai(n.control,n),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){ci.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),sa(this._directives,n)})}addFormGroup(n){ci.then(()=>{const r=this._findContainer(n.path),o=new nd({});(function Jv(t,e){Jc(t,e)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){ci.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){ci.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function Qv(t,e){t._syncPendingControls(),e.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),!1}onReset(){this.resetForm()}resetForm(n){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return t.\u0275fac=function(n){return new(n||t)(v(je,10),v(xn,10))},t.\u0275dir=x({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&Se("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ue([MN]),X]}),t})();const AN={provide:Nn,useExisting:ne(()=>la)},i_=(()=>Promise.resolve(null))();let la=(()=>{class t extends Nn{constructor(n,r,o,i){super(),this.control=new n_,this._registered=!1,this.update=new ge,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Zc(t,e){if(!e)return null;let n,r,o;return Array.isArray(e),e.forEach(i=>{i.constructor===ii?n=i:function CN(t){return Object.getPrototypeOf(t.constructor)===Jn}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in n&&this._updateDisabled(n),function Qc(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function na(t,e){return[...e.path,t]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ai(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){i_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1})})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=""===r||r&&"false"!==r;i_.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(n){return new(n||t)(v(We,9),v(je,10),v(xn,10),v(Qt,10))},t.\u0275dir=x({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ue([AN]),X,tt]}),t})(),rd=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=x({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),a_=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({}),t})();const VN={provide:Qt,useExisting:ne(()=>fi),multi:!0};function p_(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let fi=(()=>{class t extends Jn{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;const r=this._getOptionId(n);null==r&&this.setProperty("selectedIndex",-1);const o=p_(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){const r=function LN(t){return t.split(":")[0]}(n);return this._optionMap.has(r)?this._optionMap.get(r):n}}return t.\u0275fac=function(){let e;return function(r){return(e||(e=$e(t)))(r||t)}}(),t.\u0275dir=x({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){1&n&&Se("change",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[ue([VN]),X]}),t})(),ad=(()=>{class t{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){null!=this._select&&(this._select._optionMap.set(this.id,n),this._setElementValue(p_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(n){return new(n||t)(v(st),v(un),v(fi,9))},t.\u0275dir=x({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const jN={provide:Qt,useExisting:ne(()=>ud),multi:!0};function g_(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let ud=(()=>{class t extends Jn{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){let r;if(this.value=n,Array.isArray(n)){const o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{const o=[],i=r.selectedOptions;if(void 0!==i){const s=i;for(let a=0;a{class t{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(g_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(g_(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(n){return new(n||t)(v(st),v(un),v(ud,9))},t.\u0275dir=x({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})(),Xr=(()=>{class t{constructor(){this._validator=si}ngOnChanges(n){if(this.inputName in n){const r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):si,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return null!=n}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=x({type:t,features:[tt]}),t})();const GN={provide:je,useExisting:ne(()=>hi),multi:!0};let hi=(()=>{class t extends Xr{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=n=>function HN(t){return null!=t&&!1!==t&&"false"!=`${t}`}(n),this.createValidator=n=>Sv}enabled(n){return n}}return t.\u0275fac=function(){let e;return function(r){return(e||(e=$e(t)))(r||t)}}(),t.\u0275dir=x({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,r){2&n&&qt("required",r._enabled?"":null)},inputs:{required:"required"},features:[ue([GN]),X]}),t})(),ZN=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({imports:[[a_]]}),t})(),KN=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({imports:[ZN]}),t})();function k(...t){let e=t[t.length-1];return Ri(e)?(t.pop(),Ta(t,e)):Fa(t)}function eo(t,e){return Ne(t,e,1)}function Qn(t,e){return function(r){return r.lift(new YN(t,e))}}class YN{constructor(e,n){this.predicate=e,this.thisArg=n}call(e,n){return n.subscribe(new XN(e,this.predicate,this.thisArg))}}class XN extends le{constructor(e,n,r){super(e),this.predicate=n,this.thisArg=r,this.count=0}_next(e){let n;try{n=this.predicate.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}n&&this.destination.next(e)}}class M_{}class S_{}class hn{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(n=>{let r=e[n];const o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(o,r),this.maybeSetNormalizedName(n,o))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof hn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){const n=new hn;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof hn?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){const n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,n);const o=("a"===e.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=e.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}}class eR{encodeKey(e){return A_(e)}encodeValue(e){return A_(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const nR=/%(\d[a-f0-9])/gi,rR={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function A_(t){return encodeURIComponent(t).replace(nR,(e,n)=>{var r;return null!==(r=rR[n])&&void 0!==r?r:e})}function I_(t){return`${t}`}class Rn{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new eR,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function tR(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,i)),e.decodeValue(o.slice(i+1))],u=n.get(s)||[];u.push(a),n.set(s,u)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{const r=e.fromObject[n];this.map.set(n,Array.isArray(r)?r:[r])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){const n=[];return Object.keys(e).forEach(r=>{const o=e[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const n=new Rn({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const n=("a"===e.op?this.map.get(e.param):void 0)||[];n.push(I_(e.value)),this.map.set(e.param,n);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const o=r.indexOf(I_(e.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class oR{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function T_(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function x_(t){return"undefined"!=typeof Blob&&t instanceof Blob}function N_(t){return"undefined"!=typeof FormData&&t instanceof FormData}class pi{constructor(e,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function iR(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new hn),this.context||(this.context=new oR),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":af.set(h,e.setHeaders[h]),l)),e.setParams&&(c=Object.keys(e.setParams).reduce((f,h)=>f.set(h,e.setParams[h]),c)),new pi(r,o,s,{params:c,headers:l,context:d,reportProgress:u,responseType:i,withCredentials:a})}}var we=(()=>((we=we||{})[we.Sent=0]="Sent",we[we.UploadProgress=1]="UploadProgress",we[we.ResponseHeader=2]="ResponseHeader",we[we.DownloadProgress=3]="DownloadProgress",we[we.Response=4]="Response",we[we.User=5]="User",we))();class cd{constructor(e,n=200,r="OK"){this.headers=e.headers||new hn,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class dd extends cd{constructor(e={}){super(e),this.type=we.ResponseHeader}clone(e={}){return new dd({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class ca extends cd{constructor(e={}){super(e),this.type=we.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new ca({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class R_ extends cd{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function fd(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let gi=(()=>{class t{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof pi)i=n;else{let u,l;u=o.headers instanceof hn?o.headers:new hn(o.headers),o.params&&(l=o.params instanceof Rn?o.params:new Rn({fromObject:o.params})),i=new pi(n,r,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=k(i).pipe(eo(u=>this.handler.handle(u)));if(n instanceof pi||"events"===o.observe)return s;const a=s.pipe(Qn(u=>u instanceof ca));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(Q(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe(Q(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe(Q(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return a.pipe(Q(u=>u.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new Rn).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,fd(o,r))}post(n,r,o={}){return this.request("POST",n,fd(o,r))}put(n,r,o={}){return this.request("PUT",n,fd(o,r))}}return t.\u0275fac=function(n){return new(n||t)(E(M_))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();class F_{constructor(e,n){this.next=e,this.interceptor=n}handle(e){return this.interceptor.intercept(e,this.next)}}const O_=new j("HTTP_INTERCEPTORS");let aR=(()=>{class t{intercept(n,r){return r.handle(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const uR=/^\)\]\}',?\n/;let P_=(()=>{class t{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ie(r=>{const o=this.xhrFactory.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((h,p)=>o.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&o.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();o.responseType="json"!==h?h:"text"}const i=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=1223===o.status?204:o.status,p=o.statusText||"OK",m=new hn(o.getAllResponseHeaders()),_=function lR(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(o)||n.url;return s=new dd({headers:m,status:h,statusText:p,url:_}),s},u=()=>{let{headers:h,status:p,statusText:m,url:_}=a(),D=null;204!==p&&(D=void 0===o.response?o.responseText:o.response),0===p&&(p=D?200:0);let g=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof D){const w=D;D=D.replace(uR,"");try{D=""!==D?JSON.parse(D):null}catch(I){D=w,g&&(g=!1,D={error:I,text:D})}}g?(r.next(new ca({body:D,headers:h,status:p,statusText:m,url:_||void 0})),r.complete()):r.error(new R_({error:D,headers:h,status:p,statusText:m,url:_||void 0}))},l=h=>{const{url:p}=a(),m=new R_({error:h,status:o.status||0,statusText:o.statusText||"Unknown Error",url:p||void 0});r.error(m)};let c=!1;const d=h=>{c||(r.next(a()),c=!0);let p={type:we.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&!!o.responseText&&(p.partialText=o.responseText),r.next(p)},f=h=>{let p={type:we.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return o.addEventListener("load",u),o.addEventListener("error",l),o.addEventListener("timeout",l),o.addEventListener("abort",l),n.reportProgress&&(o.addEventListener("progress",d),null!==i&&o.upload&&o.upload.addEventListener("progress",f)),o.send(i),r.next({type:we.Sent}),()=>{o.removeEventListener("error",l),o.removeEventListener("abort",l),o.removeEventListener("load",u),o.removeEventListener("timeout",l),n.reportProgress&&(o.removeEventListener("progress",d),null!==i&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return t.\u0275fac=function(n){return new(n||t)(E(uv))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const hd=new j("XSRF_COOKIE_NAME"),pd=new j("XSRF_HEADER_NAME");class k_{}let cR=(()=>{class t{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=tv(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return t.\u0275fac=function(n){return new(n||t)(E(at),E(Ps),E(hd))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),gd=(()=>{class t{constructor(n,r){this.tokenService=n,this.headerName=r}intercept(n,r){const o=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||o.startsWith("http://")||o.startsWith("https://"))return r.handle(n);const i=this.tokenService.getToken();return null!==i&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,i)})),r.handle(n)}}return t.\u0275fac=function(n){return new(n||t)(E(k_),E(pd))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),dR=(()=>{class t{constructor(n,r){this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=this.injector.get(O_,[]);this.chain=r.reduceRight((o,i)=>new F_(o,i),this.backend)}return this.chain.handle(n)}}return t.\u0275fac=function(n){return new(n||t)(E(S_),E(Re))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),fR=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:gd,useClass:aR}]}}static withOptions(n={}){return{ngModule:t,providers:[n.cookieName?{provide:hd,useValue:n.cookieName}:[],n.headerName?{provide:pd,useValue:n.headerName}:[]]}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({providers:[gd,{provide:O_,useExisting:gd,multi:!0},{provide:k_,useClass:cR},{provide:hd,useValue:"XSRF-TOKEN"},{provide:pd,useValue:"X-XSRF-TOKEN"}]}),t})(),hR=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({providers:[gi,{provide:M_,useClass:dR},P_,{provide:S_,useExisting:P_}],imports:[[fR.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();class Pt extends Yt{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const n=super._subscribe(e);return n&&!n.closed&&e.next(this._value),n}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new rr;return this._value}next(e){super.next(this._value=e)}}class pR extends le{notifyNext(e,n,r,o,i){this.destination.next(n)}notifyError(e,n){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class gR extends le{constructor(e,n,r){super(),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function mR(t,e,n,r,o=new gR(t,n,r)){if(!o.closed)return e instanceof ie?e.subscribe(o):Ia(e)(o)}const V_={};class vR{constructor(e){this.resultSelector=e}call(e,n){return n.subscribe(new _R(e,this.resultSelector))}}class _R extends pR{constructor(e,n){super(e),this.resultSelector=n,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(V_),this.observables.push(e)}_complete(){const e=this.observables,n=e.length;if(0===n)this.destination.complete();else{this.active=n,this.toRespond=n;for(let r=0;r{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function md(...t){return function DR(){return lo(1)}()(k(...t))}const to=new ie(t=>t.complete());function yd(t){return t?function CR(t){return new ie(e=>t.schedule(()=>e.complete()))}(t):to}function L_(t){return new ie(e=>{let n;try{n=t()}catch(o){return void e.error(o)}return(n?Oe(n):yd()).subscribe(e)})}function Fn(t,e){return"function"==typeof e?n=>n.pipe(Fn((r,o)=>Oe(t(r,o)).pipe(Q((i,s)=>e(r,i,o,s))))):n=>n.lift(new bR(t))}class bR{constructor(e){this.project=e}call(e,n){return n.subscribe(new wR(e,this.project))}}class wR extends Na{constructor(e,n){super(e),this.project=n,this.index=0}_next(e){let n;const r=this.index++;try{n=this.project(e,r)}catch(o){return void this.destination.error(o)}this._innerSub(n)}_innerSub(e){const n=this.innerSubscription;n&&n.unsubscribe();const r=new xa(this),o=this.destination;o.add(r),this.innerSubscription=Ra(e,r),this.innerSubscription!==r&&o.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const j_=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function vd(t){return e=>0===t?yd():e.lift(new ER(t))}class ER{constructor(e){if(this.total=e,this.total<0)throw new j_}call(e,n){return n.subscribe(new MR(e,this.total))}}class MR extends le{constructor(e,n){super(e),this.total=n,this.count=0}_next(e){const n=this.total,r=++this.count;r<=n&&(this.destination.next(e),r===n&&(this.destination.complete(),this.unsubscribe()))}}function B_(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(o){return o.lift(new AR(t,e,n))}}class AR{constructor(e,n,r=!1){this.accumulator=e,this.seed=n,this.hasSeed=r}call(e,n){return n.subscribe(new IR(e,this.accumulator,this.seed,this.hasSeed))}}class IR extends le{constructor(e,n,r,o){super(e),this.accumulator=n,this._seed=r,this.hasSeed=o,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const n=this.index++;let r;try{r=this.accumulator(this.seed,e,n)}catch(o){this.destination.error(o)}this.seed=r,this.destination.next(r)}}function Zn(t){return function(n){const r=new TR(t),o=n.lift(r);return r.caught=o}}class TR{constructor(e){this.selector=e}call(e,n){return n.subscribe(new xR(e,this.selector,this.caught))}}class xR extends Na{constructor(e,n,r){super(e),this.selector=n,this.caught=r}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(i){return void super.error(i)}this._unsubscribeAndRecycle();const r=new xa(this);this.add(r);const o=Ra(n,r);o!==r&&this.add(o)}}}function _d(t){return function(n){return 0===t?yd():n.lift(new NR(t))}}class NR{constructor(e){if(this.total=e,this.total<0)throw new j_}call(e,n){return n.subscribe(new RR(e,this.total))}}class RR extends le{constructor(e,n){super(e),this.total=n,this.ring=new Array,this.count=0}_next(e){const n=this.ring,r=this.total,o=this.count++;n.length0){const r=this.count>=this.total?this.total:this.count,o=this.ring;for(let i=0;ie.lift(new FR(t))}class FR{constructor(e){this.errorFactory=e}call(e,n){return n.subscribe(new OR(e,this.errorFactory))}}class OR extends le{constructor(e,n){super(e),this.errorFactory=n,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(n){e=n}this.destination.error(e)}}}function PR(){return new da}function U_(t=null){return e=>e.lift(new kR(t))}class kR{constructor(e){this.defaultValue=e}call(e,n){return n.subscribe(new VR(e,this.defaultValue))}}class VR extends le{constructor(e,n){super(e),this.defaultValue=n,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function no(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Qn((o,i)=>t(o,i,r)):Ni,vd(1),n?U_(e):H_(()=>new da))}function On(){}function ut(t,e,n){return function(o){return o.lift(new jR(t,e,n))}}class jR{constructor(e,n,r){this.nextOrObserver=e,this.error=n,this.complete=r}call(e,n){return n.subscribe(new BR(e,this.nextOrObserver,this.error,this.complete))}}class BR extends le{constructor(e,n,r,o){super(e),this._tapNext=On,this._tapError=On,this._tapComplete=On,this._tapError=r||On,this._tapComplete=o||On,kn(n)?(this._context=this,this._tapNext=n):n&&(this._context=n,this._tapNext=n.next||On,this._tapError=n.error||On,this._tapComplete=n.complete||On)}_next(e){try{this._tapNext.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}class UR{constructor(e){this.callback=e}call(e,n){return n.subscribe(new $R(e,this.callback))}}class $R extends le{constructor(e,n){super(e),this.add(new de(n))}}class pn{constructor(e,n){this.id=e,this.url=n}}class Dd extends pn{constructor(e,n,r="imperative",o=null){super(e,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class mi extends pn{constructor(e,n,r){super(e,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class $_ extends pn{constructor(e,n,r){super(e,n),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class GR extends pn{constructor(e,n,r){super(e,n),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class qR extends pn{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class zR extends pn{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class WR extends pn{constructor(e,n,r,o,i){super(e,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class JR extends pn{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class QR extends pn{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class G_{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class q_{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class ZR{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class KR{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class YR{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class XR{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class z_{constructor(e,n,r){this.routerEvent=e,this.position=n,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const U="primary";class eF{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n[0]:n}return null}getAll(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function ro(t){return new eF(t)}const W_="ngNavigationCancelingError";function Cd(t){const e=Error("NavigationCancelingError: "+t);return e[W_]=!0,e}function nF(t,e,n){const r=n.path.split("/");if(r.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||r.lengthr[i]===o)}return t===e}function Q_(t){return Array.prototype.concat.apply([],t)}function Z_(t){return t.length>0?t[t.length-1]:null}function Fe(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Kt(t){return Sl(t)?t:Ho(t)?Oe(Promise.resolve(t)):k(t)}const iF={exact:function X_(t,e,n){if(!Yn(t.segments,e.segments)||!fa(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(const r in e.children)if(!t.children[r]||!X_(t.children[r],e.children[r],n))return!1;return!0},subset:eD},K_={exact:function sF(t,e){return Zt(t,e)},subset:function aF(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>J_(t[n],e[n]))},ignored:()=>!0};function Y_(t,e,n){return iF[n.paths](t.root,e.root,n.matrixParams)&&K_[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function eD(t,e,n){return tD(t,e,e.segments,n)}function tD(t,e,n,r){if(t.segments.length>n.length){const o=t.segments.slice(0,n.length);return!(!Yn(o,n)||e.hasChildren()||!fa(o,n,r))}if(t.segments.length===n.length){if(!Yn(t.segments,n)||!fa(t.segments,n,r))return!1;for(const o in e.children)if(!t.children[o]||!eD(t.children[o],e.children[o],r))return!1;return!0}{const o=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return!!(Yn(t.segments,o)&&fa(t.segments,o,r)&&t.children[U])&&tD(t.children[U],e,i,r)}}function fa(t,e,n){return e.every((r,o)=>K_[n](t[o].parameters,r.parameters))}class Kn{constructor(e,n,r){this.root=e,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ro(this.queryParams)),this._queryParamMap}toString(){return cF.serialize(this)}}class q{constructor(e,n){this.segments=e,this.children=n,this.parent=null,Fe(n,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ha(this)}}class yi{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=ro(this.parameters)),this._parameterMap}toString(){return sD(this)}}function Yn(t,e){return t.length===e.length&&t.every((n,r)=>n.path===e[r].path)}class nD{}class rD{parse(e){const n=new _F(e);return new Kn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){const n=`/${vi(e.root,!0)}`,r=function hF(t){const e=Object.keys(t).map(n=>{const r=t[n];return Array.isArray(r)?r.map(o=>`${pa(n)}=${pa(o)}`).join("&"):`${pa(n)}=${pa(r)}`}).filter(n=>!!n);return e.length?`?${e.join("&")}`:""}(e.queryParams),o="string"==typeof e.fragment?`#${function dF(t){return encodeURI(t)}(e.fragment)}`:"";return`${n}${r}${o}`}}const cF=new rD;function ha(t){return t.segments.map(e=>sD(e)).join("/")}function vi(t,e){if(!t.hasChildren())return ha(t);if(e){const n=t.children[U]?vi(t.children[U],!1):"",r=[];return Fe(t.children,(o,i)=>{i!==U&&r.push(`${i}:${vi(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function lF(t,e){let n=[];return Fe(t.children,(r,o)=>{o===U&&(n=n.concat(e(r,o)))}),Fe(t.children,(r,o)=>{o!==U&&(n=n.concat(e(r,o)))}),n}(t,(r,o)=>o===U?[vi(t.children[U],!1)]:[`${o}:${vi(r,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[U]?`${ha(t)}/${n[0]}`:`${ha(t)}/(${n.join("//")})`}}function oD(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function pa(t){return oD(t).replace(/%3B/gi,";")}function bd(t){return oD(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ga(t){return decodeURIComponent(t)}function iD(t){return ga(t.replace(/\+/g,"%20"))}function sD(t){return`${bd(t.path)}${function fF(t){return Object.keys(t).map(e=>`;${bd(e)}=${bd(t[e])}`).join("")}(t.parameters)}`}const pF=/^[^\/()?;=#]+/;function ma(t){const e=t.match(pF);return e?e[0]:""}const gF=/^[^=?&#]+/,yF=/^[^&#]+/;class _F{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new q([],{}):new q([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(n).length>0)&&(r[U]=new q(e,n)),r}parseSegment(){const e=ma(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new yi(ga(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const n=ma(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=ma(this.remaining);o&&(r=o,this.capture(r))}e[ga(n)]=ga(r)}parseQueryParam(e){const n=function mF(t){const e=t.match(gF);return e?e[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function vF(t){const e=t.match(yF);return e?e[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=iD(n),i=iD(r);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(i)}else e[o]=i}parseParens(e){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=ma(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new Error(`Cannot parse url '${this.url}'`);let i;r.indexOf(":")>-1?(i=r.substr(0,r.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=U);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[U]:new q([],s),this.consumeOptional("//")}return n}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class aD{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null}children(e){const n=wd(e,this._root);return n?n.children.map(r=>r.value):[]}firstChild(e){const n=wd(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){const n=Ed(e,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return Ed(e,this._root).map(n=>n.value)}}function wd(t,e){if(t===e.value)return e;for(const n of e.children){const r=wd(t,n);if(r)return r}return null}function Ed(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Ed(t,n);if(r.length)return r.unshift(e),r}return[]}class gn{constructor(e,n){this.value=e,this.children=n}toString(){return`TreeNode(${this.value})`}}function oo(t){const e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}class uD extends aD{constructor(e,n){super(e),this.snapshot=n,Md(this,e)}toString(){return this.snapshot.toString()}}function lD(t,e){const n=function DF(t,e){const s=new ya([],{},{},"",{},U,e,null,t.root,-1,{});return new dD("",new gn(s,[]))}(t,e),r=new Pt([new yi("",{})]),o=new Pt({}),i=new Pt({}),s=new Pt({}),a=new Pt(""),u=new Xn(r,o,s,a,i,U,e,n.root);return u.snapshot=n.root,new uD(new gn(u,[]),n)}class Xn{constructor(e,n,r,o,i,s,a,u){this.url=e,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this._futureSnapshot=u}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Q(e=>ro(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Q(e=>ro(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function cD(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function CF(t){return t.reduce((e,n)=>({params:Object.assign(Object.assign({},e.params),n.params),data:Object.assign(Object.assign({},e.data),n.data),resolve:Object.assign(Object.assign({},e.resolve),n._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class ya{constructor(e,n,r,o,i,s,a,u,l,c,d){this.url=e,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=ro(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=ro(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dD extends aD{constructor(e,n){super(n),this.url=e,Md(this,n)}toString(){return fD(this._root)}}function Md(t,e){e.value._routerState=t,e.children.forEach(n=>Md(t,n))}function fD(t){const e=t.children.length>0?` { ${t.children.map(fD).join(", ")} } `:"";return`${t.value}${e}`}function Sd(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Zt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Zt(e.params,n.params)||t.params.next(n.params),function rF(t,e){if(t.length!==e.length)return!1;for(let n=0;nZt(n.parameters,e[r].parameters))}(t.url,e.url);return n&&!(!t.parent!=!e.parent)&&(!t.parent||Ad(t.parent,e.parent))}function _i(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const o=function wF(t,e,n){return e.children.map(r=>{for(const o of n.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return _i(t,r,o);return _i(t,r)})}(t,e,n);return new gn(r,o)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>_i(t,a)),s}}const r=function EF(t){return new Xn(new Pt(t.url),new Pt(t.params),new Pt(t.queryParams),new Pt(t.fragment),new Pt(t.data),t.outlet,t.component,t)}(e.value),o=e.children.map(i=>_i(t,i));return new gn(r,o)}}function va(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Di(t){return"object"==typeof t&&null!=t&&t.outlets}function Id(t,e,n,r,o){let i={};return r&&Fe(r,(s,a)=>{i[a]=Array.isArray(s)?s.map(u=>`${u}`):`${s}`}),new Kn(n.root===t?e:hD(n.root,t,e),i,o)}function hD(t,e,n){const r={};return Fe(t.children,(o,i)=>{r[i]=o===e?n:hD(o,e,n)}),new q(t.segments,r)}class pD{constructor(e,n,r){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&va(r[0]))throw new Error("Root segment cannot have matrix parameters");const o=r.find(Di);if(o&&o!==Z_(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class Td{constructor(e,n,r){this.segmentGroup=e,this.processChildren=n,this.index=r}}function gD(t,e,n){if(t||(t=new q([],{})),0===t.segments.length&&t.hasChildren())return _a(t,e,n);const r=function xF(t,e,n){let r=0,o=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=t.segments[o],a=n[r];if(Di(a))break;const u=`${a}`,l=r0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!yD(u,l,s))return i;r+=2}else{if(!yD(u,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(o[s]=gD(t.children[s],e,i))}),Fe(t.children,(i,s)=>{void 0===r[s]&&(o[s]=i)}),new q(t.segments,o)}}function xd(t,e,n){const r=t.segments.slice(0,e);let o=0;for(;o{"string"==typeof n&&(n=[n]),null!==n&&(e[r]=xd(new q([],{}),0,n))}),e}function mD(t){const e={};return Fe(t,(n,r)=>e[r]=`${n}`),e}function yD(t,e,n){return t==n.path&&Zt(e,n.parameters)}class FF{constructor(e,n,r,o){this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=o}activate(e){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,e),Sd(this.futureState.root),this.activateChildRoutes(n,r,e)}deactivateChildRoutes(e,n,r){const o=oo(n);e.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Fe(o,(i,s)=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(e,n,r){const o=e.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(e,n,s.children)}else this.deactivateChildRoutes(e,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(e,n){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,n):this.deactivateRouteAndOutlet(e,n)}detachAndStoreRouteSubtree(e,n){const r=n.getContext(e.value.outlet),o=r&&e.value.component?r.children:n,i=oo(e);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,n){const r=n.getContext(e.value.outlet),o=r&&e.value.component?r.children:n,i=oo(e);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(e,n,r){const o=oo(n);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new XR(i.value.snapshot))}),e.children.length&&this.forwardEvent(new KR(e.value.snapshot))}activateRoutes(e,n,r){const o=e.value,i=n?n.value:null;if(Sd(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(e,n,s.children)}else this.activateChildRoutes(e,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Sd(a.route.value),this.activateChildRoutes(e,null,s.children)}else{const a=function OF(t){for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(o.snapshot),u=a?a.module.componentFactoryResolver:null;s.attachRef=null,s.route=o,s.resolver=u,s.outlet&&s.outlet.activateWith(o,u),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,r)}}class Nd{constructor(e,n){this.routes=e,this.module=n}}function Pn(t){return"function"==typeof t}function er(t){return t instanceof Kn}const Ci=Symbol("INITIAL_VALUE");function bi(){return Fn(t=>function yR(...t){let e,n;return Ri(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Ii(t[0])&&(t=t[0]),Fa(t,n).lift(new vR(e))}(t.map(e=>e.pipe(vd(1),function SR(...t){const e=t[t.length-1];return Ri(e)?(t.pop(),n=>md(t,n,e)):n=>md(t,n)}(Ci)))).pipe(B_((e,n)=>{let r=!1;return n.reduce((o,i,s)=>o!==Ci?o:(i===Ci&&(r=!0),r||!1!==i&&s!==n.length-1&&!er(i)?o:i),e)},Ci),Qn(e=>e!==Ci),Q(e=>er(e)?e:!0===e),vd(1)))}class BF{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new wi,this.attachRef=null}}class wi{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new BF,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}}let Rd=(()=>{class t{constructor(n,r,o,i,s){this.parentContexts=n,this.location=r,this.resolver=o,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new ge,this.deactivateEvents=new ge,this.attachEvents=new ge,this.detachEvents=new ge,this.name=i||U,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const n=this.parentContexts.getContext(this.name);n&&n.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.resolver||null))}}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(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=n;const s=(r=r||this.resolver).resolveComponentFactory(n._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,u=new HF(n,a,this.location.injector);this.activated=this.location.createComponent(s,this.location.length,u),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(n){return new(n||t)(v(wi),v(Nt),v(qr),function Do(t){return function Eb(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const r=n.length;let o=0;for(;o{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=_n({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,r){1&n&&Bo(0,"router-outlet")},directives:[Rd],encapsulation:2}),t})();function _D(t,e=""){for(let n=0;nCt(r)===e);return n.push(...t.filter(r=>Ct(r)!==e)),n}const CD={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Da(t,e,n){var r;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},CD):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const i=(e.matcher||nF)(n,t,e);if(!i)return Object.assign({},CD);const s={};Fe(i.posParams,(u,l)=>{s[l]=u.path});const a=i.consumed.length>0?Object.assign(Object.assign({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function Ca(t,e,n,r,o="corrected"){if(n.length>0&&function zF(t,e,n){return n.some(r=>ba(t,e,r)&&Ct(r)!==U)}(t,n,r)){const s=new q(e,function qF(t,e,n,r){const o={};o[U]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&Ct(i)!==U){const s=new q([],{});s._sourceSegment=t,s._segmentIndexShift=e.length,o[Ct(i)]=s}return o}(t,e,r,new q(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function WF(t,e,n){return n.some(r=>ba(t,e,r))}(t,n,r)){const s=new q(t.segments,function GF(t,e,n,r,o,i){const s={};for(const a of r)if(ba(t,n,a)&&!o[Ct(a)]){const u=new q([],{});u._sourceSegment=t,u._segmentIndexShift="legacy"===i?t.segments.length:e.length,s[Ct(a)]=u}return Object.assign(Object.assign({},o),s)}(t,e,n,r,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const i=new q(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function ba(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function bD(t,e,n,r){return!!(Ct(t)===r||r!==U&&ba(e,n,t))&&("**"===t.path||Da(e,t,n).matched)}function wD(t,e,n){return 0===e.length&&!t.children[n]}class Ei{constructor(e){this.segmentGroup=e||null}}class ED{constructor(e){this.urlTree=e}}function wa(t){return new ie(e=>e.error(new Ei(t)))}function MD(t){return new ie(e=>e.error(new ED(t)))}function JF(t){return new ie(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class KF{constructor(e,n,r,o,i){this.configLoader=n,this.urlSerializer=r,this.urlTree=o,this.config=i,this.allowRedirects=!0,this.ngModule=e.get(ln)}apply(){const e=Ca(this.urlTree.root,[],[],this.config).segmentGroup,n=new q(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,U).pipe(Q(i=>this.createUrlTree(Od(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Zn(i=>{if(i instanceof ED)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof Ei?this.noMatchError(i):i}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,U).pipe(Q(o=>this.createUrlTree(Od(o),e.queryParams,e.fragment))).pipe(Zn(o=>{throw o instanceof Ei?this.noMatchError(o):o}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,n,r){const o=e.segments.length>0?new q([],{[U]:e}):e;return new Kn(o,n,r)}expandSegmentGroup(e,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(e,n,r).pipe(Q(i=>new q([],i))):this.expandSegment(e,r,n,r.segments,o,!0)}expandChildren(e,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return Oe(o).pipe(eo(i=>{const s=r.children[i],a=DD(n,i);return this.expandSegmentGroup(e,a,s,i).pipe(Q(u=>({segment:u,outlet:i})))}),B_((i,s)=>(i[s.outlet]=s.segment,i),{}),function LR(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Qn((o,i)=>t(o,i,r)):Ni,_d(1),n?U_(e):H_(()=>new da))}())}expandSegment(e,n,r,o,i,s){return Oe(r).pipe(eo(a=>this.expandSegmentAgainstRoute(e,n,r,a,o,i,s).pipe(Zn(l=>{if(l instanceof Ei)return k(null);throw l}))),no(a=>!!a),Zn((a,u)=>{if(a instanceof da||"EmptyError"===a.name){if(wD(n,o,i))return k(new q([],{}));throw new Ei(n)}throw a}))}expandSegmentAgainstRoute(e,n,r,o,i,s,a){return bD(o,n,i,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(e,n,o,i,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s):wa(n):wa(n)}expandSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o){const i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?MD(i):this.lineralizeSegments(r,i).pipe(Ne(s=>{const a=new q(s,{});return this.expandSegment(e,a,n,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s){const{matched:a,consumedSegments:u,lastChild:l,positionalParamSegments:c}=Da(n,o,i);if(!a)return wa(n);const d=this.applyRedirectCommands(u,o.redirectTo,c);return o.redirectTo.startsWith("/")?MD(d):this.lineralizeSegments(o,d).pipe(Ne(f=>this.expandSegment(e,n,r,f.concat(i.slice(l)),s,!1)))}matchSegmentAgainstRoute(e,n,r,o,i){if("**"===r.path)return r.loadChildren?(r._loadedConfig?k(r._loadedConfig):this.configLoader.load(e.injector,r)).pipe(Q(f=>(r._loadedConfig=f,new q(o,{})))):k(new q(o,{}));const{matched:s,consumedSegments:a,lastChild:u}=Da(n,r,o);if(!s)return wa(n);const l=o.slice(u);return this.getChildConfig(e,r,o).pipe(Ne(d=>{const f=d.module,h=d.routes,{segmentGroup:p,slicedSegments:m}=Ca(n,a,l,h),_=new q(p.segments,p.children);if(0===m.length&&_.hasChildren())return this.expandChildren(f,h,_).pipe(Q(I=>new q(a,I)));if(0===h.length&&0===m.length)return k(new q(a,{}));const D=Ct(r)===i;return this.expandSegment(f,_,h,m,D?U:i,!0).pipe(Q(w=>new q(a.concat(w.segments),w.children)))}))}getChildConfig(e,n,r){return n.children?k(new Nd(n.children,e)):n.loadChildren?void 0!==n._loadedConfig?k(n._loadedConfig):this.runCanLoadGuards(e.injector,n,r).pipe(Ne(o=>o?this.configLoader.load(e.injector,n).pipe(Q(i=>(n._loadedConfig=i,i))):function QF(t){return new ie(e=>e.error(Cd(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(n))):k(new Nd([],e))}runCanLoadGuards(e,n,r){const o=n.canLoad;if(!o||0===o.length)return k(!0);const i=o.map(s=>{const a=e.get(s);let u;if(function kF(t){return t&&Pn(t.canLoad)}(a))u=a.canLoad(n,r);else{if(!Pn(a))throw new Error("Invalid CanLoad guard");u=a(n,r)}return Kt(u)});return k(i).pipe(bi(),ut(s=>{if(!er(s))return;const a=Cd(`Redirecting to "${this.urlSerializer.serialize(s)}"`);throw a.url=s,a}),Q(s=>!0===s))}lineralizeSegments(e,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return k(r);if(o.numberOfChildren>1||!o.children[U])return JF(e.redirectTo);o=o.children[U]}}applyRedirectCommands(e,n,r){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),e,r)}applyRedirectCreatreUrlTree(e,n,r,o){const i=this.createSegmentGroup(e,n.root,r,o);return new Kn(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(e,n){const r={};return Fe(e,(o,i)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(e,n,r,o){const i=this.createSegments(e,n.segments,r,o);let s={};return Fe(n.children,(a,u)=>{s[u]=this.createSegmentGroup(e,a,r,o)}),new q(i,s)}createSegments(e,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(e,i,o):this.findOrReturn(i,r))}findPosParam(e,n,r){const o=r[n.path.substring(1)];if(!o)throw new Error(`Cannot redirect to '${e}'. Cannot find '${n.path}'.`);return o}findOrReturn(e,n){let r=0;for(const o of n){if(o.path===e.path)return n.splice(r),o;r++}return e}}function Od(t){const e={};for(const r of Object.keys(t.children)){const i=Od(t.children[r]);(i.segments.length>0||i.hasChildren())&&(e[r]=i)}return function YF(t){if(1===t.numberOfChildren&&t.children[U]){const e=t.children[U];return new q(t.segments.concat(e.segments),e.children)}return t}(new q(t.segments,e))}class SD{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Ea{constructor(e,n){this.component=e,this.route=n}}function eO(t,e,n){const r=t._root;return Mi(r,e?e._root:null,n,[r.value])}function Ma(t,e,n){const r=function nO(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Mi(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=oo(e);return t.children.forEach(s=>{(function rO(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const u=function oO(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Yn(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Yn(t.url,e.url)||!Zt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ad(t,e)||!Zt(t.queryParams,e.queryParams);default:return!Ad(t,e)}}(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new SD(r)):(i.data=s.data,i._resolvedData=s._resolvedData),Mi(t,e,i.component?a?a.children:null:n,r,o),u&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Ea(a.outlet.component,s))}else s&&Si(e,a,o),o.canActivateChecks.push(new SD(r)),Mi(t,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Fe(i,(s,a)=>Si(s,n.getContext(a),o)),o}function Si(t,e,n){const r=oo(t),o=t.value;Fe(r,(i,s)=>{Si(i,o.component?e?e.children.getContext(s):null:e,n)}),n.canDeactivateChecks.push(new Ea(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}class hO{}function AD(t){return new ie(e=>e.error(t))}class gO{constructor(e,n,r,o,i,s){this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=s}recognize(){const e=Ca(this.urlTree.root,[],[],this.config.filter(s=>void 0===s.redirectTo),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,e,U);if(null===n)return null;const r=new ya([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},U,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new gn(r,n),i=new dD(this.url,o);return this.inheritParamsAndData(i._root),i}inheritParamsAndData(e){const n=e.value,r=cD(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(e,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(e,n):this.processSegment(e,n,n.segments,r)}processChildren(e,n){const r=[];for(const i of Object.keys(n.children)){const s=n.children[i],a=DD(e,i),u=this.processSegmentGroup(a,s,i);if(null===u)return null;r.push(...u)}const o=ID(r);return function mO(t){t.sort((e,n)=>e.value.outlet===U?-1:n.value.outlet===U?1:e.value.outlet.localeCompare(n.value.outlet))}(o),o}processSegment(e,n,r,o){for(const i of e){const s=this.processSegmentAgainstRoute(i,n,r,o);if(null!==s)return s}return wD(n,r,o)?[]:null}processSegmentAgainstRoute(e,n,r,o){if(e.redirectTo||!bD(e,n,r,o))return null;let i,s=[],a=[];if("**"===e.path){const h=r.length>0?Z_(r).parameters:{};i=new ya(r,h,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ND(e),Ct(e),e.component,e,TD(n),xD(n)+r.length,RD(e))}else{const h=Da(n,e,r);if(!h.matched)return null;s=h.consumedSegments,a=r.slice(h.lastChild),i=new ya(s,h.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ND(e),Ct(e),e.component,e,TD(n),xD(n)+s.length,RD(e))}const u=function yO(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=Ca(n,s,a,u.filter(h=>void 0===h.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const h=this.processChildren(u,l);return null===h?null:[new gn(i,h)]}if(0===u.length&&0===c.length)return[new gn(i,[])];const d=Ct(e)===o,f=this.processSegment(u,l,c,d?U:o);return null===f?null:[new gn(i,f)]}}function vO(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function ID(t){const e=[],n=new Set;for(const r of t){if(!vO(r)){e.push(r);continue}const o=e.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):e.push(r)}for(const r of n){const o=ID(r.children);e.push(new gn(r.value,o))}return e.filter(r=>!n.has(r))}function TD(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function xD(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function ND(t){return t.data||{}}function RD(t){return t.resolve||{}}function FD(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function Pd(t){return Fn(e=>{const n=t(e);return n?Oe(n).pipe(Q(()=>e)):k(e)})}class SO extends class MO{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}}{}const kd=new j("ROUTES");class OD{constructor(e,n,r,o){this.injector=e,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=o}load(e,n){if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);const o=this.loadModuleFactory(n.loadChildren).pipe(Q(i=>{this.onLoadEndListener&&this.onLoadEndListener(n);const s=i.create(e);return new Nd(Q_(s.injector.get(kd,void 0,P.Self|P.Optional)).map(Fd),s)}),Zn(i=>{throw n._loader$=void 0,i}));return n._loader$=new of(o,()=>new Yt).pipe(Oa()),n._loader$}loadModuleFactory(e){return Kt(e()).pipe(Ne(n=>n instanceof Pm?k(n):Oe(this.compiler.compileModuleAsync(n))))}}class IO{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}}function TO(t){throw t}function xO(t,e,n){return e.parse("/")}function PD(t,e){return k(null)}const NO={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},RO={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let lt=(()=>{class t{constructor(n,r,o,i,s,a,u){this.rootComponentType=n,this.urlSerializer=r,this.rootContexts=o,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Yt,this.errorHandler=TO,this.malformedUriErrorHandler=xO,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:PD,afterPreactivation:PD},this.urlHandlingStrategy=new IO,this.routeReuseStrategy=new SO,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(ln),this.console=s.get(yy);const d=s.get(Ie);this.isNgZoneEnabled=d instanceof Ie&&Ie.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=function oF(){return new Kn(new q([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new OD(s,a,f=>this.triggerEvent(new G_(f)),f=>this.triggerEvent(new q_(f))),this.routerState=lD(this.currentUrlTree,this.rootComponentType),this.transitions=new Pt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}setupNavigations(n){const r=this.events;return n.pipe(Qn(o=>0!==o.id),Q(o=>Object.assign(Object.assign({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),Fn(o=>{let i=!1,s=!1;return k(o).pipe(ut(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),Fn(a=>{const u=this.browserUrlTree.toString(),l=!this.navigated||a.extractedUrl.toString()!==u||u!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Sa(a.source)&&(this.browserUrlTree=a.extractedUrl),k(a).pipe(Fn(d=>{const f=this.transitions.getValue();return r.next(new Dd(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?to:Promise.resolve(d)}),function XF(t,e,n,r){return Fn(o=>function ZF(t,e,n,r,o){return new KF(t,e,n,r,o).apply()}(t,e,n,o.extractedUrl,r).pipe(Q(i=>Object.assign(Object.assign({},o),{urlAfterRedirects:i}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),ut(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function _O(t,e,n,r,o){return Ne(i=>function pO(t,e,n,r,o="emptyOnly",i="legacy"){try{const s=new gO(t,e,n,r,o,i).recognize();return null===s?AD(new hO):k(s)}catch(s){return AD(s)}}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,o).pipe(Q(s=>Object.assign(Object.assign({},i),{targetSnapshot:s}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),ut(d=>{if("eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const h=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(h,d)}this.browserUrlTree=d.urlAfterRedirects}const f=new qR(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);r.next(f)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:h,source:p,restoredState:m,extras:_}=a,D=new Dd(f,this.serializeUrl(h),p,m);r.next(D);const g=lD(h,this.rootComponentType).snapshot;return k(Object.assign(Object.assign({},a),{targetSnapshot:g,urlAfterRedirects:h,extras:Object.assign(Object.assign({},_),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),to}),Pd(a=>{const{targetSnapshot:u,id:l,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.beforePreactivation(u,{navigationId:l,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),ut(a=>{const u=new zR(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(u)}),Q(a=>Object.assign(Object.assign({},a),{guards:eO(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function iO(t,e){return Ne(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?k(Object.assign(Object.assign({},n),{guardsResult:!0})):function sO(t,e,n,r){return Oe(t).pipe(Ne(o=>function fO(t,e,n,r,o){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?k(i.map(a=>{const u=Ma(a,e,o);let l;if(function jF(t){return t&&Pn(t.canDeactivate)}(u))l=Kt(u.canDeactivate(t,e,n,r));else{if(!Pn(u))throw new Error("Invalid CanDeactivate guard");l=Kt(u(t,e,n,r))}return l.pipe(no())})).pipe(bi()):k(!0)}(o.component,o.route,n,e,r)),no(o=>!0!==o,!0))}(s,r,o,t).pipe(Ne(a=>a&&function PF(t){return"boolean"==typeof t}(a)?function aO(t,e,n,r){return Oe(e).pipe(eo(o=>md(function lO(t,e){return null!==t&&e&&e(new ZR(t)),k(!0)}(o.route.parent,r),function uO(t,e){return null!==t&&e&&e(new YR(t)),k(!0)}(o.route,r),function dO(t,e,n){const r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(s=>function tO(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(s)).filter(s=>null!==s).map(s=>L_(()=>k(s.guards.map(u=>{const l=Ma(u,s.node,n);let c;if(function LF(t){return t&&Pn(t.canActivateChild)}(l))c=Kt(l.canActivateChild(r,t));else{if(!Pn(l))throw new Error("Invalid CanActivateChild guard");c=Kt(l(r,t))}return c.pipe(no())})).pipe(bi())));return k(i).pipe(bi())}(t,o.path,n),function cO(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return k(!0);const o=r.map(i=>L_(()=>{const s=Ma(i,e,n);let a;if(function VF(t){return t&&Pn(t.canActivate)}(s))a=Kt(s.canActivate(e,t));else{if(!Pn(s))throw new Error("Invalid CanActivate guard");a=Kt(s(e,t))}return a.pipe(no())}));return k(o).pipe(bi())}(t,o.route,n))),no(o=>!0!==o,!0))}(r,i,t,e):k(a)),Q(a=>Object.assign(Object.assign({},n),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),ut(a=>{if(er(a.guardsResult)){const l=Cd(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw l.url=a.guardsResult,l}const u=new WR(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(u)}),Qn(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),Pd(a=>{if(a.guards.canActivateChecks.length)return k(a).pipe(ut(u=>{const l=new JR(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}),Fn(u=>{let l=!1;return k(u).pipe(function DO(t,e){return Ne(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return k(n);let i=0;return Oe(o).pipe(eo(s=>function CO(t,e,n,r){return function bO(t,e,n,r){const o=FD(t);if(0===o.length)return k({});const i={};return Oe(o).pipe(Ne(s=>function wO(t,e,n,r){const o=Ma(t,e,r);return Kt(o.resolve?o.resolve(e,n):o(e,n))}(t[s],e,n,r).pipe(ut(a=>{i[s]=a}))),_d(1),Ne(()=>FD(i).length===o.length?k(i):to))}(t._resolve,t,e,r).pipe(Q(i=>(t._resolvedData=i,t.data=Object.assign(Object.assign({},t.data),cD(t,n).resolve),null)))}(s.route,r,t,e)),ut(()=>i++),_d(1),Ne(s=>i===o.length?k(n):to))})}(this.paramsInheritanceStrategy,this.ngModule.injector),ut({next:()=>l=!0,complete:()=>{l||(this.restoreHistory(u),this.cancelNavigationTransition(u,"At least one route resolver didn't emit any value."))}}))}),ut(u=>{const l=new QR(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}))}),Pd(a=>{const{targetSnapshot:u,id:l,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.afterPreactivation(u,{navigationId:l,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),Q(a=>{const u=function bF(t,e,n){const r=_i(t,e._root,n?n._root:void 0);return new uD(r,e)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:u})}),ut(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,e,n)=>Q(r=>(new FF(e,r.targetRouterState,r.currentRouterState,n).activate(t),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),ut({next(){i=!0},complete(){i=!0}}),function HR(t){return e=>e.lift(new UR(t))}(()=>{var a;i||s||this.cancelNavigationTransition(o,`Navigation ID ${o.id} is not equal to the current navigation id ${this.navigationId}`),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===o.id&&(this.currentNavigation=null)}),Zn(a=>{if(s=!0,function tF(t){return t&&t[W_]}(a)){const u=er(a.url);u||(this.navigated=!0,this.restoreHistory(o,!0));const l=new $_(o.id,this.serializeUrl(o.extractedUrl),a.message);r.next(l),u?setTimeout(()=>{const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Sa(o.source)};this.scheduleNavigation(c,"imperative",null,d,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{this.restoreHistory(o,!0);const u=new GR(o.id,this.serializeUrl(o.extractedUrl),a);r.next(u);try{o.resolve(this.errorHandler(a))}catch(l){o.reject(l)}}return to}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}setTransition(n){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),n))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{var o;const i={replaceUrl:!0},s=(null===(o=n.state)||void 0===o?void 0:o.navigationId)?n.state:null;if(s){const u=Object.assign({},s);delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(i.state=u)}const a=this.parseUrl(n.url);this.scheduleNavigation(a,r,s,i)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){_D(n),this.config=n.map(Fd),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,l=o||this.routerState.root,c=u?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=i||null}return null!==d&&(d=this.removeEmptyProps(d)),function MF(t,e,n,r,o){if(0===n.length)return Id(e.root,e.root,e,r,o);const i=function SF(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new pD(!0,0,t);let e=0,n=!1;const r=t.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Fe(i.outlets,(u,l)=>{a[l]="string"==typeof u?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?n=!0:".."===a?e++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new pD(n,e,r)}(n);if(i.toRoot())return Id(e.root,new q([],{}),e,r,o);const s=function AF(t,e,n){if(t.isAbsolute)return new Td(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const i=n.snapshot._urlSegment;return new Td(i,i===e.root,0)}const r=va(t.commands[0])?0:1;return function IF(t,e,n){let r=t,o=e,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new Error("Invalid number of '../'");o=r.segments.length}return new Td(r,!1,o-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=s.processChildren?_a(s.segmentGroup,s.index,i.commands):gD(s.segmentGroup,s.index,i.commands);return Id(s.segmentGroup,a,e,r,o)}(l,this.currentUrlTree,n,d,null!=c?c:null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=er(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,r)}navigate(n,r={skipLocationChange:!1}){return function FO(t){for(let e=0;e{const i=n[o];return null!=i&&(r[o]=i),r},{})}processNavigations(){this.navigations.subscribe(n=>{this.navigated=!0,this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId,this.events.next(new mi(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,n.resolve(!0)},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}scheduleNavigation(n,r,o,i,s){var a,u,l;if(this.disposed)return Promise.resolve(!1);const c=this.transitions.value,d=Sa(r)&&c&&!Sa(c.source),f=c.rawUrl.toString()===n.toString(),h=c.id===(null===(a=this.currentNavigation)||void 0===a?void 0:a.id);if(d&&f&&h)return Promise.resolve(!0);let m,_,D;s?(m=s.resolve,_=s.reject,D=s.promise):D=new Promise((I,z)=>{m=I,_=z});const g=++this.navigationId;let w;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),w=o&&o.\u0275routerPageId?o.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(u=this.browserPageId)&&void 0!==u?u:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):w=0,this.setTransition({id:g,targetPageId:w,source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:i,resolve:m,reject:_,promise:D,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),D.catch(I=>Promise.reject(I))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n),i=Object.assign(Object.assign({},r.extras.state),this.generateNgRouterState(r.id,r.targetPageId));this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl?this.location.replaceState(o,"",i):this.location.go(o,"",i)}restoreHistory(n,r=!1){var o,i;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)||0===s?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(n,r){const o=new $_(n.id,this.serializeUrl(n.extractedUrl),r);this.triggerEvent(o),n.resolve(!1)}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return t.\u0275fac=function(n){wl()},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();function Sa(t){return"imperative"!==t}let io=(()=>{class t{constructor(n,r,o){this.router=n,this.route=r,this.locationStrategy=o,this.commands=null,this.href=null,this.onChanges=new Yt,this.subscription=n.events.subscribe(i=>{i instanceof mi&&this.updateTargetUrlAndHref()})}set routerLink(n){this.commands=null!=n?Array.isArray(n)?n:[n]:null}ngOnChanges(n){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(n,r,o,i,s){if(0!==n||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const a={skipLocationChange:so(this.skipLocationChange),replaceUrl:so(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}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:so(this.preserveFragment)})}}return t.\u0275fac=function(n){return new(n||t)(v(lt),v(Xn),v(Kr))},t.\u0275dir=x({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(n,r){1&n&&Se("click",function(i){return r.onClick(i.button,i.ctrlKey,i.shiftKey,i.altKey,i.metaKey)}),2&n&&qt("target",r.target)("href",r.href,Au)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[tt]}),t})();function so(t){return""===t||!!t}class kD{}class VD{preload(e,n){return k(null)}}let LD=(()=>{class t{constructor(n,r,o,i){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=new OD(o,r,u=>n.triggerEvent(new G_(u)),u=>n.triggerEvent(new q_(u)))}setUpPreloading(){this.subscription=this.router.events.pipe(Qn(n=>n instanceof mi),eo(()=>this.preload())).subscribe(()=>{})}preload(){const n=this.injector.get(ln);return this.processRoutes(n,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const s=i._loadedConfig;o.push(this.processRoutes(s.module,s.routes))}else i.loadChildren&&!i.canLoad?o.push(this.preloadConfig(n,i)):i.children&&o.push(this.processRoutes(n,i.children));return Oe(o).pipe(lo(),Q(i=>{}))}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>(r._loadedConfig?k(r._loadedConfig):this.loader.load(n.injector,r)).pipe(Ne(i=>(r._loadedConfig=i,this.processRoutes(i.module,i.routes)))))}}return t.\u0275fac=function(n){return new(n||t)(E(lt),E(ks),E(Re),E(kD))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),Ld=(()=>{class t{constructor(n,r,o={}){this.router=n,this.viewportScroller=r,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(n=>{n instanceof Dd?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof mi&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof z_&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.router.triggerEvent(new z_(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(n){wl()},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const tr=new j("ROUTER_CONFIGURATION"),jD=new j("ROUTER_FORROOT_GUARD"),VO=[vc,{provide:nD,useClass:rD},{provide:lt,useFactory:function UO(t,e,n,r,o,i,s={},a,u){const l=new lt(null,t,e,n,r,o,Q_(i));return a&&(l.urlHandlingStrategy=a),u&&(l.routeReuseStrategy=u),function $O(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(e.canceledNavigationResolution=t.canceledNavigationResolution)}(s,l),s.enableTracing&&l.events.subscribe(c=>{var d,f;null===(d=console.group)||void 0===d||d.call(console,`Router Event: ${c.constructor.name}`),console.log(c.toString()),console.log(c),null===(f=console.groupEnd)||void 0===f||f.call(console)}),l},deps:[nD,wi,vc,Re,ks,kd,tr,[class AO{},new Bt],[class EO{},new Bt]]},wi,{provide:Xn,useFactory:function GO(t){return t.routerState.root},deps:[lt]},LD,VD,class kO{preload(e,n){return n().pipe(Zn(()=>k(null)))}},{provide:tr,useValue:{enableTracing:!1}}];function LO(){return new wy("Router",lt)}let BD=(()=>{class t{constructor(n,r){}static forRoot(n,r){return{ngModule:t,providers:[VO,HD(n),{provide:jD,useFactory:HO,deps:[[lt,new Bt,new _r]]},{provide:tr,useValue:r||{}},{provide:Kr,useFactory:BO,deps:[Wn,[new Ao(yc),new Bt],tr]},{provide:Ld,useFactory:jO,deps:[lt,vx,tr]},{provide:kD,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:VD},{provide:wy,multi:!0,useFactory:LO},[jd,{provide:Os,multi:!0,useFactory:qO,deps:[jd]},{provide:UD,useFactory:zO,deps:[jd]},{provide:my,multi:!0,useExisting:UD}]]}}static forChild(n){return{ngModule:t,providers:[HD(n)]}}}return t.\u0275fac=function(n){return new(n||t)(E(jD,8),E(lt,8))},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({}),t})();function jO(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new Ld(t,e,n)}function BO(t,e,n={}){return n.useHash?new eT(t,e):new qy(t,e)}function HO(t){return"guarded"}function HD(t){return[{provide:Tb,multi:!0,useValue:t},{provide:kd,multi:!0,useValue:t}]}let jd=(()=>{class t{constructor(n){this.injector=n,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Yt}appInitializer(){return this.injector.get(KI,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let r=null;const o=new Promise(a=>r=a),i=this.injector.get(lt),s=this.injector.get(tr);return"disabled"===s.initialNavigation?(i.setUpLocationChangeListener(),r(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?k(null):(this.initNavigation=!0,r(!0),this.resultOfPreactivationDone),i.initialNavigation()):r(!0),o})}bootstrapListener(n){const r=this.injector.get(tr),o=this.injector.get(LD),i=this.injector.get(Ld),s=this.injector.get(lt),a=this.injector.get(Xo);n===a.components[0]&&(("enabledNonBlocking"===r.initialNavigation||void 0===r.initialNavigation)&&s.initialNavigation(),o.setUpPreloading(),i.init(),s.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(n){return new(n||t)(E(Re))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();function qO(t){return t.appInitializer.bind(t)}function zO(t){return t.bootstrapListener.bind(t)}const UD=new j("Router Initializer");let JO=(()=>{class t{constructor(n){this.httpClient=n}GetEngineers(){return this.httpClient.get("http://localhost:63235/engineer")}}return t.\u0275fac=function(n){return new(n||t)(E(gi))},t.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$D=(()=>{class t{constructor(n){this.httpClient=n}GetJobs(){return this.httpClient.get("http://localhost:63235/job")}GetJob(n){return this.httpClient.get(`http://localhost:63235/job/${n}`)}CreateJob(n){return this.httpClient.post("http://localhost:63235/job",n).toPromise()}}return t.\u0275fac=function(n){return new(n||t)(E(gi))},t.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function QO(t,e){if(1&t&&(M(0,"option"),$(1),S()),2&t){const n=e.$implicit;Y(1),Gn(n)}}function ZO(t,e){1&t&&(M(0,"small"),$(1,"Please select an engineer"),S())}function KO(t,e){1&t&&(M(0,"small"),$(1,"Please select a valid date"),S())}const YO=function(t){return["/job",t]};function XO(t,e){if(1&t&&(M(0,"tr"),M(1,"td"),$(2),S(),M(3,"td"),$(4),Bl(5,"date"),S(),M(6,"td"),M(7,"a",13),$(8,"Open"),S(),S(),S()),2&t){const n=e.$implicit;Y(2),Gn(n.engineer),Y(2),Gn(Hl(5,3,n.when,"shortDate")),Y(3),ye("routerLink",jl(6,YO,n.jobId))}}let eP=(()=>{class t{constructor(n,r){this.engineerService=n,this.jobService=r,this.engineers=[],this.jobs=[],this.newJob={jobId:null,engineer:null,when:null}}ngOnInit(){this.engineerService.GetEngineers().subscribe(n=>this.engineers=n),this.jobService.GetJobs().subscribe(n=>this.jobs=n)}createJob(n){n.invalid?alert("form is not valid"):this.jobService.CreateJob(this.newJob).then(()=>{this.jobService.GetJobs().subscribe(r=>this.jobs=r)})}}return t.\u0275fac=function(n){return new(n||t)(v(JO),v($D))},t.\u0275cmp=_n({type:t,selectors:[["app-job"]],decls:31,vars:8,consts:[[3,"ngSubmit"],["jobForm","ngForm"],["for","engineer"],["name","engineer","required","","ngModel","","placeholder","Please select",3,"ngModel","ngModelChange"],["engineer","ngModel"],["selected","",3,"ngValue"],[4,"ngFor","ngForOf"],[4,"ngIf"],["for","when"],["type","date","name","when","ngModel","","required","",3,"ngModel","ngModelChange"],["when","ngModel"],["type","submit",3,"disabled"],["spacing","0"],[3,"routerLink"]],template:function(n,r){if(1&n){const o=Ml();M(0,"h2"),$(1,"New job form"),S(),M(2,"form",0,1),Se("ngSubmit",function(){tu(o);const s=an(3);return r.createJob(s)}),M(4,"label",2),$(5,"Engineer"),S(),M(6,"select",3,4),Se("ngModelChange",function(s){return r.newJob.engineer=s}),M(8,"option",5),$(9,"Please select"),S(),sn(10,QO,2,1,"option",6),S(),sn(11,ZO,2,0,"small",7),M(12,"label",8),$(13,"When"),S(),M(14,"input",9,10),Se("ngModelChange",function(s){return r.newJob.when=s}),S(),sn(16,KO,2,0,"small",7),M(17,"button",11),$(18,"Add Job"),S(),S(),M(19,"h2"),$(20,"Jobs list"),S(),M(21,"table",12),M(22,"thead"),M(23,"tr"),M(24,"th"),$(25,"Engineer"),S(),M(26,"th"),$(27,"When"),S(),Bo(28,"th"),S(),S(),M(29,"tbody"),sn(30,XO,9,8,"tr",6),S(),S()}if(2&n){const o=an(3),i=an(7),s=an(15);Y(6),ye("ngModel",r.newJob.engineer),Y(2),ye("ngValue",void 0),Y(2),ye("ngForOf",r.engineers),Y(1),ye("ngIf",i.invalid),Y(3),ye("ngModel",r.newJob.when),Y(2),ye("ngIf",s.invalid),Y(1),ye("disabled",o.invalid),Y(13),ye("ngForOf",r.jobs)}},directives:[rd,qc,di,fi,hi,Gc,la,ad,ld,Ac,Ic,ii,io],pipes:[Nc],styles:["h2[_ngcontent-%COMP%]{margin-left:15px}form[_ngcontent-%COMP%]{margin:15px}form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%], form[_ngcontent-%COMP%] select[_ngcontent-%COMP%], form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;width:250px;margin-bottom:15px}form[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:red;margin-top:-12px;margin-bottom:15px;display:block}table[_ngcontent-%COMP%]{margin:15px;border-collapse:collapse}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #ddd;padding:5px;min-width:100px;text-align:left}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#ddd}"]}),t})(),tP=(()=>{class t{constructor(n){this.httpClient=n}GetTypes(){return this.httpClient.get("http://localhost:63235/type")}}return t.\u0275fac=function(n){return new(n||t)(E(gi))},t.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),nP=(()=>{class t{constructor(n){this.httpClient=n}GetCustomers(){return this.httpClient.get("http://localhost:63235/customer")}GetCustomer(n){return this.httpClient.get(`http://localhost:63235/job/${n}`)}CreateCustomer(n){return this.httpClient.post("http://localhost:63235/customer",n).toPromise()}}return t.\u0275fac=function(n){return new(n||t)(E(gi))},t.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function rP(t,e){if(1&t&&(M(0,"option"),$(1),S()),2&t){const n=e.$implicit;Y(1),Gn(n)}}function oP(t,e){1&t&&(M(0,"small"),$(1,"Please select a type"),S())}function iP(t,e){1&t&&(M(0,"small"),$(1,"Customer Name must be at least 5"),S())}const sP=function(t){return["/customer",t]};function aP(t,e){if(1&t&&(M(0,"tr"),M(1,"td"),$(2),S(),M(3,"td"),$(4,"{{customer.type'}}"),S(),M(5,"td"),M(6,"a",13),$(7,"Open"),S(),S(),S()),2&t){const n=e.$implicit;Y(2),Gn(n.name),Y(4),ye("routerLink",jl(2,sP,n.customerId))}}let uP=(()=>{class t{constructor(n,r){this.typeService=n,this.customerService=r,this.types=[],this.customers=[],this.newCustomer={customerId:null,type:null,name:null}}ngOnInit(){this.typeService.GetTypes().subscribe(n=>this.types=n),this.customerService.GetCustomers().subscribe(n=>this.customers=n)}createCustomer(n){n.invalid?alert("form is not valid"):this.customerService.CreateCustomer(this.newCustomer).then(()=>{this.customerService.GetCustomers().subscribe(r=>this.customers=r)})}}return t.\u0275fac=function(n){return new(n||t)(v(tP),v(nP))},t.\u0275cmp=_n({type:t,selectors:[["app-customer"]],decls:31,vars:8,consts:[[3,"ngSubmit"],["customerForm","ngForm"],["for","type"],["name","type","required","","ngModel","","placeholder","Please select",3,"ngModel","ngModelChange"],["type","ngModel"],["selected","",3,"ngValue"],[4,"ngFor","ngForOf"],[4,"ngIf"],["for","name"],["type","text","name","name","ngModel","","required","",3,"ngModel","ngModelChange"],["name","ngModel"],["type","submit",3,"disabled"],["spacing","0"],[3,"routerLink"]],template:function(n,r){if(1&n){const o=Ml();M(0,"h2"),$(1,"New Customer form"),S(),M(2,"form",0,1),Se("ngSubmit",function(){tu(o);const s=an(3);return r.createCustomer(s)}),M(4,"label",2),$(5,"Type"),S(),M(6,"select",3,4),Se("ngModelChange",function(s){return r.newCustomer.type=s}),M(8,"option",5),$(9,"Please select"),S(),sn(10,rP,2,1,"option",6),S(),sn(11,oP,2,0,"small",7),M(12,"label",8),$(13,"Name"),S(),M(14,"input",9,10),Se("ngModelChange",function(s){return r.newCustomer.name=s}),S(),sn(16,iP,2,0,"small",7),M(17,"button",11),$(18,"Add Customer"),S(),S(),M(19,"h2"),$(20,"Customers list"),S(),M(21,"table",12),M(22,"thead"),M(23,"tr"),M(24,"th"),$(25,"Name"),S(),M(26,"th"),$(27,"Type"),S(),Bo(28,"th"),S(),S(),M(29,"tbody"),sn(30,aP,8,4,"tr",6),S(),S()}if(2&n){const o=an(3),i=an(7),s=an(15);Y(6),ye("ngModel",r.newCustomer.type),Y(2),ye("ngValue",void 0),Y(2),ye("ngForOf",r.types),Y(1),ye("ngIf",i.invalid),Y(3),ye("ngModel",r.newCustomer.name),Y(2),ye("ngIf",s.invalid),Y(1),ye("disabled",o.invalid),Y(13),ye("ngForOf",r.customers)}},directives:[rd,qc,di,fi,hi,Gc,la,ad,ld,Ac,Ic,ii,io],styles:["h2[_ngcontent-%COMP%]{margin-left:15px}form[_ngcontent-%COMP%]{margin:15px}form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%], form[_ngcontent-%COMP%] select[_ngcontent-%COMP%], form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;width:250px;margin-bottom:15px}form[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:red;margin-top:-12px;margin-bottom:15px;display:block}table[_ngcontent-%COMP%]{margin:15px;border-collapse:collapse}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #ddd;padding:5px;min-width:100px;text-align:left}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#ddd}"]}),t})(),GD=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=_n({type:t,selectors:[["app-home"]],decls:2,vars:0,template:function(n,r){1&n&&(M(0,"h1"),$(1,"Welcome to ServiceSight"),S())},styles:[""]}),t})();const lP=function(){return["/jobs"]},cP=[{path:"",component:GD},{path:"home",component:GD},{path:"jobs",component:eP},{path:"customers",component:uP},{path:"job/:id",component:(()=>{class t{constructor(n,r){this.route=n,this.jobService=r,this.jobId=n.snapshot.params.id}ngOnInit(){this.jobService.GetJob(this.jobId).subscribe(n=>this.job=n)}}return t.\u0275fac=function(n){return new(n||t)(v(Xn),v($D))},t.\u0275cmp=_n({type:t,selectors:[["app-job-detail"]],decls:9,vars:8,consts:[[3,"routerLink"]],template:function(n,r){1&n&&(M(0,"p"),$(1),S(),M(2,"p"),$(3),S(),M(4,"p"),$(5),Bl(6,"date"),S(),M(7,"a",0),$(8,"Back"),S()),2&n&&(Y(1),Ur("JobId: ",r.job.jobId,""),Y(2),Ur("Engineer: ",r.job.engineer,""),Y(2),Ur("When: ",Hl(6,4,r.job.when,"shortDate"),""),Y(2),ye("routerLink",function jm(t,e,n){const r=He()+t,o=y();return o[r]===O?Gt(o,r,n?e.call(n):e()):function jo(t,e){return t[e]}(o,r)}(7,lP)))},directives:[io],pipes:[Nc],styles:[""]}),t})()}];let dP=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({imports:[[BD.forRoot(cP)],BD]}),t})(),fP=(()=>{class t{constructor(){this.title="ui"}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=_n({type:t,selectors:[["app-root"]],decls:8,vars:0,consts:[["href","/home"],["href","/jobs"],["href","/customers"]],template:function(n,r){1&n&&(M(0,"nav"),M(1,"a",0),$(2,"home"),S(),M(3,"a",1),$(4,"jobs"),S(),M(5,"a",2),$(6,"customers"),S(),S(),Bo(7,"router-outlet"))},directives:[Rd],styles:["nav[_ngcontent-%COMP%]{background-color:#002987}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;padding:20px 50px;display:inline-block;text-decoration:none;text-transform:capitalize;border-right:1px solid green}"]}),t})(),hP=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t,bootstrap:[fP]}),t.\u0275inj=Xe({providers:[],imports:[[KN,qx,hR,dP]]}),t})();$x().bootstrapModule(hP).catch(t=>console.error(t))}},kn=>{kn(kn.s=587)}]); \ No newline at end of file +"use strict";(self.webpackChunkui=self.webpackChunkui||[]).push([[179],{73:()=>{function Ln(t){return"function"==typeof t}let ao=!1;const dt={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else ao&&console.log("RxJS: Back to a better error behavior. Thank you. <3");ao=t},get useDeprecatedSynchronousErrorHandling(){return ao}};function vn(t){setTimeout(()=>{throw t},0)}const Ai={closed:!0,next(t){},error(t){if(dt.useDeprecatedSynchronousErrorHandling)throw t;vn(t)},complete(){}},Ii=Array.isArray||(t=>t&&"number"==typeof t.length);function Aa(t){return null!==t&&"object"==typeof t}const Ti=(()=>{function t(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((n,r)=>`${r+1}) ${n.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return t.prototype=Object.create(Error.prototype),t})();class de{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:r,_unsubscribe:o,_subscriptions:i}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof de)n.remove(this);else if(null!==n)for(let s=0;se.concat(n instanceof Ti?n.errors:n),[])}de.EMPTY=((t=new de).closed=!0,t);const xi="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class le extends de{constructor(e,n,r){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Ai;break;case 1:if(!e){this.destination=Ai;break}if("object"==typeof e){e instanceof le?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Kd(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Kd(this,e,n,r)}}[xi](){return this}static create(e,n,r){const o=new le(e,n,r);return o.syncErrorThrowable=!1,o}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Kd extends le{constructor(e,n,r,o){super(),this._parentSubscriber=e;let i,s=this;Ln(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==Ai&&(s=Object.create(n),Ln(s.unsubscribe)&&this.add(s.unsubscribe.bind(s)),s.unsubscribe=this.unsubscribe.bind(this))),this._context=s,this._next=i,this._error=r,this._complete=o}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:n}=this;dt.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:n}=this,{useDeprecatedSynchronousErrorHandling:r}=dt;if(this._error)r&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)r?(n.syncErrorValue=e,n.syncErrorThrown=!0):vn(e),this.unsubscribe();else{if(this.unsubscribe(),r)throw e;vn(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const n=()=>this._complete.call(this._context);dt.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,n){try{e.call(this._context,n)}catch(r){if(this.unsubscribe(),dt.useDeprecatedSynchronousErrorHandling)throw r;vn(r)}}__tryOrSetError(e,n,r){if(!dt.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,r)}catch(o){return dt.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=o,e.syncErrorThrown=!0,!0):(vn(o),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const uo="function"==typeof Symbol&&Symbol.observable||"@@observable";function Ni(t){return t}let ie=(()=>{class t{constructor(n){this._isScalar=!1,n&&(this._subscribe=n)}lift(n){const r=new t;return r.source=this,r.operator=n,r}subscribe(n,r,o){const{operator:i}=this,s=function WD(t,e,n){if(t){if(t instanceof le)return t;if(t[xi])return t[xi]()}return t||e||n?new le(t,e,n):new le(Ai)}(n,r,o);if(s.add(i?i.call(s,this.source):this.source||dt.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),dt.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s}_trySubscribe(n){try{return this._subscribe(n)}catch(r){dt.useDeprecatedSynchronousErrorHandling&&(n.syncErrorThrown=!0,n.syncErrorValue=r),function zD(t){for(;t;){const{closed:e,destination:n,isStopped:r}=t;if(e||r)return!1;t=n&&n instanceof le?n:null}return!0}(n)?n.error(r):console.warn(r)}}forEach(n,r){return new(r=Xd(r))((o,i)=>{let s;s=this.subscribe(a=>{try{n(a)}catch(u){i(u),s&&s.unsubscribe()}},i,o)})}_subscribe(n){const{source:r}=this;return r&&r.subscribe(n)}[uo](){return this}pipe(...n){return 0===n.length?this:function Yd(t){return 0===t.length?Ni:1===t.length?t[0]:function(n){return t.reduce((r,o)=>o(r),n)}}(n)(this)}toPromise(n){return new(n=Xd(n))((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return t.create=e=>new t(e),t})();function Xd(t){if(t||(t=dt.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const ir=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class JD extends de{constructor(e,n){super(),this.subject=e,this.subscriber=n,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,n=e.observers;if(this.subject=null,!n||0===n.length||e.isStopped||e.closed)return;const r=n.indexOf(this.subscriber);-1!==r&&n.splice(r,1)}}class ef extends le{constructor(e){super(e),this.destination=e}}let Yt=(()=>{class t extends ie{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[xi](){return new ef(this)}lift(n){const r=new tf(this,this);return r.operator=n,r}next(n){if(this.closed)throw new ir;if(!this.isStopped){const{observers:r}=this,o=r.length,i=r.slice();for(let s=0;snew tf(e,n),t})();class tf extends Yt{constructor(e,n){super(),this.destination=e,this.source=n}next(e){const{destination:n}=this;n&&n.next&&n.next(e)}error(e){const{destination:n}=this;n&&n.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:n}=this;return n?this.source.subscribe(e):de.EMPTY}}function Ri(t){return t&&"function"==typeof t.schedule}function Z(t,e){return function(r){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new QD(t,e))}}class QD{constructor(e,n){this.project=e,this.thisArg=n}call(e,n){return n.subscribe(new ZD(e,this.project,this.thisArg))}}class ZD extends le{constructor(e,n,r){super(e),this.project=n,this.count=0,this.thisArg=r||this}_next(e){let n;try{n=this.project.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}this.destination.next(n)}}const nf=t=>e=>{for(let n=0,r=t.length;nt&&"number"==typeof t.length&&"function"!=typeof t;function of(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const Ia=t=>{if(t&&"function"==typeof t[uo])return(t=>e=>{const n=t[uo]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)})(t);if(rf(t))return nf(t);if(of(t))return(t=>e=>(t.then(n=>{e.closed||(e.next(n),e.complete())},n=>e.error(n)).then(null,vn),e))(t);if(t&&"function"==typeof t[Fi])return(t=>e=>{const n=t[Fi]();for(;;){let r;try{r=n.next()}catch(o){return e.error(o),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add(()=>{n.return&&n.return()}),e})(t);{const n=`You provided ${Aa(t)?"an invalid object":`'${t}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(n)}};function Ta(t,e){return new ie(n=>{const r=new de;let o=0;return r.add(e.schedule(function(){o!==t.length?(n.next(t[o++]),n.closed||r.add(this.schedule())):n.complete()})),r})}function Oe(t,e){return e?function sC(t,e){if(null!=t){if(function oC(t){return t&&"function"==typeof t[uo]}(t))return function tC(t,e){return new ie(n=>{const r=new de;return r.add(e.schedule(()=>{const o=t[uo]();r.add(o.subscribe({next(i){r.add(e.schedule(()=>n.next(i)))},error(i){r.add(e.schedule(()=>n.error(i)))},complete(){r.add(e.schedule(()=>n.complete()))}}))})),r})}(t,e);if(of(t))return function nC(t,e){return new ie(n=>{const r=new de;return r.add(e.schedule(()=>t.then(o=>{r.add(e.schedule(()=>{n.next(o),r.add(e.schedule(()=>n.complete()))}))},o=>{r.add(e.schedule(()=>n.error(o)))}))),r})}(t,e);if(rf(t))return Ta(t,e);if(function iC(t){return t&&"function"==typeof t[Fi]}(t)||"string"==typeof t)return function rC(t,e){if(!t)throw new Error("Iterable cannot be null");return new ie(n=>{const r=new de;let o;return r.add(()=>{o&&"function"==typeof o.return&&o.return()}),r.add(e.schedule(()=>{o=t[Fi](),r.add(e.schedule(function(){if(n.closed)return;let i,s;try{const a=o.next();i=a.value,s=a.done}catch(a){return void n.error(a)}s?n.complete():(n.next(i),this.schedule())}))})),r})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof ie?t:new ie(Ia(t))}class xa extends le{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class Na extends le{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function Ra(t,e){if(e.closed)return;if(t instanceof ie)return t.subscribe(e);let n;try{n=Ia(t)(e)}catch(r){e.error(r)}return n}function Ne(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?r=>r.pipe(Ne((o,i)=>Oe(t(o,i)).pipe(Z((s,a)=>e(o,s,i,a))),n)):("number"==typeof e&&(n=e),r=>r.lift(new aC(t,n)))}class aC{constructor(e,n=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=n}call(e,n){return n.subscribe(new uC(e,this.project,this.concurrent))}}class uC extends Na{constructor(e,n,r=Number.POSITIVE_INFINITY){super(e),this.project=n,this.concurrent=r,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function lo(t=Number.POSITIVE_INFINITY){return Ne(Ni,t)}function Fa(t,e){return e?Ta(t,e):new ie(nf(t))}function Oa(){return function(e){return e.lift(new cC(e))}}class cC{constructor(e){this.connectable=e}call(e,n){const{connectable:r}=this;r._refCount++;const o=new dC(e,r),i=n.subscribe(o);return o.closed||(o.connection=r.connect()),i}}class dC extends le{constructor(e,n){super(e),this.connectable=n}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const n=e._refCount;if(n<=0)return void(this.connection=null);if(e._refCount=n-1,n>1)return void(this.connection=null);const{connection:r}=this,o=e._connection;this.connection=null,o&&(!r||o===r)&&o.unsubscribe()}}class sf extends ie{constructor(e,n){super(),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new de,e.add(this.source.subscribe(new hC(this.getSubject(),this))),e.closed&&(this._connection=null,e=de.EMPTY)),e}refCount(){return Oa()(this)}}const fC=(()=>{const t=sf.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class hC extends ef{constructor(e,n){super(e),this.connectable=n}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const n=e._connection;e._refCount=0,e._subject=null,e._connection=null,n&&n.unsubscribe()}}}class mC{constructor(e,n){this.subjectFactory=e,this.selector=n}call(e,n){const{selector:r}=this,o=this.subjectFactory(),i=r(o).subscribe(e);return i.add(n.subscribe(o)),i}}function yC(){return new Yt}function ee(t){for(let e in t)if(t[e]===ee)return e;throw Error("Could not find renamed property on target object.")}function Pa(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function K(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(K).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return`${t.overriddenName}`;if(t.name)return`${t.name}`;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function ka(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const _C=ee({__forward_ref__:ee});function ne(t){return t.__forward_ref__=ne,t.toString=function(){return K(this())},t}function V(t){return af(t)?t():t}function af(t){return"function"==typeof t&&t.hasOwnProperty(_C)&&t.__forward_ref__===ne}class W extends Error{constructor(e,n){super(function Va(t,e){return`NG0${Math.abs(t)}${e?": "+e:""}`}(e,n)),this.code=e}}function R(t){return"string"==typeof t?t:null==t?"":String(t)}function Be(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():R(t)}function Oi(t,e){const n=e?` in ${e}`:"";throw new W(-201,`No provider for ${Be(t)} found${n}`)}function Ye(t,e){null==t&&function se(t,e,n,r){throw new Error(`ASSERTION ERROR: ${t}`+(null==r?"":` [Expected=> ${n} ${r} ${e} <=Actual]`))}(e,t,null,"!=")}function F(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function Xe(t){return{providers:t.providers||[],imports:t.imports||[]}}function La(t){return uf(t,Pi)||uf(t,cf)}function uf(t,e){return t.hasOwnProperty(e)?t[e]:null}function lf(t){return t&&(t.hasOwnProperty(ja)||t.hasOwnProperty(SC))?t[ja]:null}const Pi=ee({\u0275prov:ee}),ja=ee({\u0275inj:ee}),cf=ee({ngInjectableDef:ee}),SC=ee({ngInjectorDef:ee});var P=(()=>((P=P||{})[P.Default=0]="Default",P[P.Host=1]="Host",P[P.Self=2]="Self",P[P.SkipSelf=4]="SkipSelf",P[P.Optional=8]="Optional",P))();let Ba;function _n(t){const e=Ba;return Ba=t,e}function df(t,e,n){const r=La(t);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&P.Optional?null:void 0!==e?e:void Oi(K(t),"Injector")}function Dn(t){return{toString:t}.toString()}var bt=(()=>((bt=bt||{})[bt.OnPush=0]="OnPush",bt[bt.Default=1]="Default",bt))(),kt=(()=>(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"}(kt||(kt={})),kt))();const IC="undefined"!=typeof globalThis&&globalThis,TC="undefined"!=typeof window&&window,xC="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Y=IC||"undefined"!=typeof global&&global||TC||xC,sr={},te=[],ki=ee({\u0275cmp:ee}),Ha=ee({\u0275dir:ee}),Ua=ee({\u0275pipe:ee}),ff=ee({\u0275mod:ee}),en=ee({\u0275fac:ee}),co=ee({__NG_ELEMENT_ID__:ee});let NC=0;function tn(t){return Dn(()=>{const n={},r={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===bt.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||te,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||kt.Emulated,id:"c",styles:t.styles||te,_:null,setInput:null,schemas:t.schemas||null,tView:null},o=t.directives,i=t.features,s=t.pipes;return r.id+=NC++,r.inputs=mf(t.inputs,n),r.outputs=mf(t.outputs),i&&i.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(hf):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(pf):null,r})}function hf(t){return Pe(t)||function Cn(t){return t[Ha]||null}(t)}function pf(t){return function jn(t){return t[Ua]||null}(t)}const gf={};function ft(t){return Dn(()=>{const e={type:t.type,bootstrap:t.bootstrap||te,declarations:t.declarations||te,imports:t.imports||te,exports:t.exports||te,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&(gf[t.id]=t.type),e})}function mf(t,e){if(null==t)return sr;const n={};for(const r in t)if(t.hasOwnProperty(r)){let o=t[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,e&&(e[o]=i)}return n}const x=tn;function Je(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Pe(t){return t[ki]||null}function ht(t,e){const n=t[ff]||null;if(!n&&!0===e)throw new Error(`Type ${K(t)} does not have '\u0275mod' property.`);return n}const L=11;function Vt(t){return Array.isArray(t)&&"object"==typeof t[1]}function Et(t){return Array.isArray(t)&&!0===t[1]}function qa(t){return 0!=(8&t.flags)}function Bi(t){return 2==(2&t.flags)}function Hi(t){return 1==(1&t.flags)}function Mt(t){return null!==t.template}function VC(t){return 0!=(512&t[2])}function $n(t,e){return t.hasOwnProperty(en)?t[en]:null}class BC{constructor(e,n,r){this.previousValue=e,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function tt(){return vf}function vf(t){return t.type.prototype.ngOnChanges&&(t.setInput=UC),HC}function HC(){const t=Df(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===sr)t.previous=e;else for(let r in e)n[r]=e[r];t.current=null,this.ngOnChanges(e)}}function UC(t,e,n,r){const o=Df(t)||function $C(t,e){return t[_f]=e}(t,{previous:sr,current:null}),i=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[n],u=s[a];i[a]=new BC(u&&u.currentValue,e,s===sr),t[r]=e}tt.ngInherit=!0;const _f="__ngSimpleChanges__";function Df(t){return t[_f]||null}let Za;function fe(t){return!!t.listen}const Cf={createRenderer:(t,e)=>function Ka(){return void 0!==Za?Za:"undefined"!=typeof document?document:void 0}()};function _e(t){for(;Array.isArray(t);)t=t[0];return t}function Ui(t,e){return _e(e[t])}function mt(t,e){return _e(e[t.index])}function Ya(t,e){return t.data[e]}function dr(t,e){return t[e]}function nt(t,e){const n=e[t];return Vt(n)?n:n[0]}function Xa(t){return 128==(128&t[2])}function bn(t,e){return null==e?null:t[e]}function wf(t){t[18]=0}function eu(t,e){t[5]+=e;let n=t,r=t[3];for(;null!==r&&(1===e&&1===n[5]||-1===e&&0===n[5]);)r[5]+=e,n=r,r=r[3]}const N={lFrame:Nf(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Ef(){return N.bindingsEnabled}function v(){return N.lFrame.lView}function J(){return N.lFrame.tView}function tu(t){return N.lFrame.contextLView=t,t[8]}function Ee(){let t=Mf();for(;null!==t&&64===t.type;)t=t.parent;return t}function Mf(){return N.lFrame.currentTNode}function Lt(t,e){const n=N.lFrame;n.currentTNode=t,n.isParent=e}function nu(){return N.lFrame.isParent}function $i(){return N.isInCheckNoChangesMode}function Gi(t){N.isInCheckNoChangesMode=t}function He(){const t=N.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function fr(){return N.lFrame.bindingIndex++}function sb(t,e){const n=N.lFrame;n.bindingIndex=n.bindingRootIndex=t,ou(e)}function ou(t){N.lFrame.currentDirectiveIndex=t}function su(t){N.lFrame.currentQueryIndex=t}function ub(t){const e=t[1];return 2===e.type?e.declTNode:1===e.type?t[6]:null}function Tf(t,e,n){if(n&P.SkipSelf){let o=e,i=t;for(;!(o=o.parent,null!==o||n&P.Host||(o=ub(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;e=o,t=i}const r=N.lFrame=xf();return r.currentTNode=e,r.lView=t,!0}function qi(t){const e=xf(),n=t[1];N.lFrame=e,e.currentTNode=n.firstChild,e.lView=t,e.tView=n,e.contextLView=t,e.bindingIndex=n.bindingStartIndex,e.inI18n=!1}function xf(){const t=N.lFrame,e=null===t?null:t.child;return null===e?Nf(t):e}function Nf(t){const e={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:t,child:null,inI18n:!1};return null!==t&&(t.child=e),e}function Rf(){const t=N.lFrame;return N.lFrame=t.parent,t.currentTNode=null,t.lView=null,t}const Ff=Rf;function zi(){const t=Rf();t.isParent=!0,t.tView=null,t.selectedIndex=-1,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function Ue(){return N.lFrame.selectedIndex}function wn(t){N.lFrame.selectedIndex=t}function he(){const t=N.lFrame;return Ya(t.tView,t.selectedIndex)}function Wi(t,e){for(let n=e.directiveStart,r=e.directiveEnd;n=r)break}else e[u]<0&&(t[18]+=65536),(a>11>16&&(3&t[2])===e){t[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}class mo{constructor(e,n,r){this.factory=e,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function Zi(t,e,n){const r=fe(t);let o=0;for(;oe){s=i-1;break}}}for(;i>16}(t),r=e;for(;n>0;)r=r[15],n--;return r}let cu=!0;function Yi(t){const e=cu;return cu=t,e}let wb=0;function vo(t,e){const n=fu(t,e);if(-1!==n)return n;const r=e[1];r.firstCreatePass&&(t.injectorIndex=e.length,du(r.data,t),du(e,null),du(r.blueprint,null));const o=Xi(t,e),i=t.injectorIndex;if(Vf(o)){const s=hr(o),a=pr(o,e),u=a[1].data;for(let l=0;l<8;l++)e[i+l]=a[s+l]|u[s+l]}return e[i+8]=o,i}function du(t,e){t.push(0,0,0,0,0,0,0,0,e)}function fu(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null===e[t.injectorIndex+8]?-1:t.injectorIndex}function Xi(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=0,r=null,o=e;for(;null!==o;){const i=o[1],s=i.type;if(r=2===s?i.declTNode:1===s?o[6]:null,null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function es(t,e,n){!function Eb(t,e,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(co)&&(r=n[co]),null==r&&(r=n[co]=wb++);const o=255&r;e.data[t+(o>>5)]|=1<=0?255&e:Sb:e}(n);if("function"==typeof i){if(!Tf(e,t,r))return r&P.Host?Bf(o,n,r):Hf(e,n,r,o);try{const s=i(r);if(null!=s||r&P.Optional)return s;Oi(n)}finally{Ff()}}else if("number"==typeof i){let s=null,a=fu(t,e),u=-1,l=r&P.Host?e[16][6]:null;for((-1===a||r&P.SkipSelf)&&(u=-1===a?Xi(t,e):e[a+8],-1!==u&&qf(r,!1)?(s=e[1],a=hr(u),e=pr(u,e)):a=-1);-1!==a;){const c=e[1];if(Gf(i,a,c.data)){const d=Ab(a,e,n,s,r,l);if(d!==$f)return d}u=e[a+8],-1!==u&&qf(r,e[1].data[a+8]===l)&&Gf(i,a,e)?(s=c,a=hr(u),e=pr(u,e)):a=-1}}}return Hf(e,n,r,o)}const $f={};function Sb(){return new gr(Ee(),v())}function Ab(t,e,n,r,o,i){const s=e[1],a=s.data[t+8],c=function ts(t,e,n,r,o){const i=t.providerIndexes,s=e.data,a=1048575&i,u=t.directiveStart,c=i>>20,f=o?a+c:t.directiveEnd;for(let h=r?a:a+c;h=u&&p.type===n)return h}if(o){const h=s[u];if(h&&Mt(h)&&h.type===n)return u}return null}(a,s,n,null==r?Bi(a)&&cu:r!=s&&0!=(3&a.type),o&P.Host&&i===a);return null!==c?_o(e,s,c,a):$f}function _o(t,e,n,r){let o=t[n];const i=e.data;if(function vb(t){return t instanceof mo}(o)){const s=o;s.resolving&&function DC(t,e){const n=e?`. Dependency path: ${e.join(" > ")} > ${t}`:"";throw new W(-200,`Circular dependency in DI detected for ${t}${n}`)}(Be(i[n]));const a=Yi(s.canSeeViewProviders);s.resolving=!0;const u=s.injectImpl?_n(s.injectImpl):null;Tf(t,r,P.Default);try{o=t[n]=s.factory(void 0,i,t,r),e.firstCreatePass&&n>=r.directiveStart&&function mb(t,e,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=e.type.prototype;if(r){const s=vf(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i))}(n,i[n],e)}finally{null!==u&&_n(u),Yi(a),s.resolving=!1,Ff()}}return o}function Gf(t,e,n){return!!(n[e+(t>>5)]&1<{const e=t.prototype.constructor,n=e[en]||hu(e),r=Object.prototype;let o=Object.getPrototypeOf(t.prototype).constructor;for(;o&&o!==r;){const i=o[en]||hu(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function hu(t){return af(t)?()=>{const e=hu(V(t));return e&&e()}:$n(t)}const yr="__parameters__";function _r(t,e,n){return Dn(()=>{const r=function pu(t){return function(...n){if(t){const r=t(...n);for(const o in r)this[o]=r[o]}}}(e);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(u,l,c){const d=u.hasOwnProperty(yr)?u[yr]:Object.defineProperty(u,yr,{value:[]})[yr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),u}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o})}class j{constructor(e,n){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=F({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}const xb=new j("AnalyzeForEntryComponents");function jt(t,e){t.forEach(n=>Array.isArray(n)?jt(n,e):e(n))}function Wf(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function ns(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function rt(t,e,n){let r=Dr(t,e);return r>=0?t[1|r]=n:(r=~r,function Fb(t,e,n,r){let o=t.length;if(o==e)t.push(n,r);else if(1===o)t.push(r,t[0]),t[0]=n;else{for(o--,t.push(t[o-1],t[o]);o>e;)t[o]=t[o-2],o--;t[e]=n,t[e+1]=r}}(t,r,e,n)),r}function mu(t,e){const n=Dr(t,e);if(n>=0)return t[1|n]}function Dr(t,e){return function Zf(t,e,n){let r=0,o=t.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=t[i<e?o=i:r=i+1}return~(o<({token:t})),-1),Bt=So(_r("Optional"),8),Cr=So(_r("SkipSelf"),4);class uh{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}function Mn(t){return t instanceof uh?t.changingThisBreaksApplicationSecurity:t}const fw=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,hw=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;var De=(()=>((De=De||{})[De.NONE=0]="NONE",De[De.HTML=1]="HTML",De[De.STYLE=2]="STYLE",De[De.SCRIPT=3]="SCRIPT",De[De.URL=4]="URL",De[De.RESOURCE_URL=5]="RESOURCE_URL",De))();function Au(t){const e=function No(){const t=v();return t&&t[12]}();return e?e.sanitize(De.URL,t)||"":function To(t,e){const n=function uw(t){return t instanceof uh&&t.getTypeName()||null}(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see https://g.co/ng/security#xss)`)}return n===e}(t,"URL")?Mn(t):function us(t){return(t=String(t)).match(fw)||t.match(hw)?t:"unsafe:"+t}(R(t))}const vh="__ngContext__";function Ve(t,e){t[vh]=e}function Tu(t){const e=function Ro(t){return t[vh]||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Nu(t){return t.ngOriginalError}function kw(t,...e){t.error(...e)}class Er{constructor(){this._console=console}handleError(e){const n=this._findOriginalError(e),r=function Pw(t){return t&&t.ngErrorLogger||kw}(e);r(this._console,"ERROR",e),n&&r(this._console,"ORIGINAL ERROR",n)}_findOriginalError(e){let n=e&&Nu(e);for(;n&&Nu(n);)n=Nu(n);return n||null}}const wh=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Y))();function Ut(t){return t instanceof Function?t():t}var ot=(()=>((ot=ot||{})[ot.Important=1]="Important",ot[ot.DashCase=2]="DashCase",ot))();function Fu(t,e){return undefined(t,e)}function Fo(t){const e=t[3];return Et(e)?e[3]:e}function Ou(t){return Ih(t[13])}function Pu(t){return Ih(t[4])}function Ih(t){for(;null!==t&&!Et(t);)t=t[4];return t}function Sr(t,e,n,r,o){if(null!=r){let i,s=!1;Et(r)?i=r:Vt(r)&&(s=!0,r=r[0]);const a=_e(r);0===t&&null!==n?null==o?Oh(e,n,a):Gn(e,n,a,o||null,!0):1===t&&null!==n?Gn(e,n,a,o||null,!0):2===t?function Hh(t,e,n){const r=cs(t,e);r&&function iE(t,e,n,r){fe(t)?t.removeChild(e,n,r):e.removeChild(n)}(t,r,e,n)}(e,a,s):3===t&&e.destroyNode(a),null!=i&&function uE(t,e,n,r,o){const i=n[7];i!==_e(n)&&Sr(e,t,r,i,o);for(let a=10;a0&&(t[n-1][4]=r[4]);const i=ns(t,10+e);!function Kw(t,e){Oo(t,e,e[L],2,null,null),e[0]=null,e[6]=null}(r[1],r);const s=i[19];null!==s&&s.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function Nh(t,e){if(!(256&e[2])){const n=e[L];fe(n)&&n.destroyNode&&Oo(t,e,n,3,null,null),function eE(t){let e=t[13];if(!e)return ju(t[1],t);for(;e;){let n=null;if(Vt(e))n=e[13];else{const r=e[10];r&&(n=r)}if(!n){for(;e&&!e[4]&&e!==t;)Vt(e)&&ju(e[1],e),e=e[3];null===e&&(e=t),Vt(e)&&ju(e[1],e),n=e&&e[4]}e=n}}(e)}}function ju(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function oE(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let r=0;r=0?r[o=l]():r[o=-l].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;ii?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Gh(h,l,0)||2&r&&l!==f){if(St(r))return!1;s=!0}}}}else{if(!s&&!St(r)&&!St(u))return!1;if(s&&St(u))continue;s=!1,r=u|1&r}}return St(r)||s}function St(t){return 0==(1&t)}function hE(t,e,n,r){if(null===e)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!St(s)&&(e+=Jh(i,o),o=""),r=s,i=i||!St(r);n++}return""!==o&&(e+=Jh(i,o)),e}const O={};function Q(t){Qh(J(),v(),Ue()+t,$i())}function Qh(t,e,n,r){if(!r)if(3==(3&e[2])){const i=t.preOrderCheckHooks;null!==i&&Ji(e,i,n)}else{const i=t.preOrderHooks;null!==i&&Qi(e,i,0,n)}wn(n)}function hs(t,e){return t<<17|e<<2}function At(t){return t>>17&32767}function Gu(t){return 2|t}function on(t){return(131068&t)>>2}function qu(t,e){return-131069&t|e<<2}function zu(t){return 1|t}function sp(t,e){const n=t.contentQueries;if(null!==n)for(let r=0;r20&&Qh(t,e,20,$i()),n(r,o)}finally{wn(i)}}function nl(t,e,n){!Ef()||(function $E(t,e,n,r){const o=n.directiveStart,i=n.directiveEnd;t.firstCreatePass||vo(n,e),Ve(r,e);const s=n.initialInputs;for(let a=o;a0;){const n=t[--e];if("number"==typeof n&&n<0)return n}return 0})(a)!=u&&a.push(u),a.push(r,o,s)}}function mp(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function yp(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function WE(t,e,n){if(n){if(e.exportAs)for(let r=0;r0&&sl(n)}}function sl(t){for(let r=Ou(t);null!==r;r=Pu(r))for(let o=10;o0&&sl(i)}const n=t[1].components;if(null!==n)for(let r=0;r0&&sl(o)}}function eM(t,e){const n=nt(e,t),r=n[1];(function tM(t,e){for(let n=e.length;nPromise.resolve(null))();function bp(t){return t[7]||(t[7]=[])}function wp(t){return t.cleanup||(t.cleanup=[])}function Mp(t,e){const n=t[9],r=n?n.get(Er,null):null;r&&r.handleError(e)}function Sp(t,e,n,r,o){for(let i=0;ithis.processProvider(a,e,n)),jt([e],a=>this.processInjectorType(a,[],i)),this.records.set(dl,xr(void 0,this));const s=this.records.get(fl);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof e?null:K(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,n=Eo,r=P.Default){this.assertNotDestroyed();const o=Xf(this),i=_n(void 0);try{if(!(r&P.SkipSelf)){let a=this.records.get(e);if(void 0===a){const u=function yM(t){return"function"==typeof t||"object"==typeof t&&t instanceof j}(e)&&La(e);a=u&&this.injectableDefInScope(u)?xr(pl(e),Vo):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(r&P.Self?Ip():this.parent).get(e,n=r&P.Optional&&n===Eo?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[os]=s[os]||[]).unshift(K(e)),o)throw s;return function qb(t,e,n,r){const o=t[os];throw e[Yf]&&o.unshift(e[Yf]),t.message=function zb(t,e,n,r=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let o=K(e);if(Array.isArray(e))o=e.map(K).join(" -> ");else if("object"==typeof e){let i=[];for(let s in e)if(e.hasOwnProperty(s)){let a=e[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):K(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${t.replace(Bb,"\n ")}`}("\n"+t.message,o,n,r),t.ngTokenPath=o,t[os]=null,t}(s,e,"R3InjectorError",this.source)}throw s}finally{_n(i),Xf(o)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((r,o)=>e.push(K(o))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new W(205,"")}processInjectorType(e,n,r){if(!(e=V(e)))return!1;let o=lf(e);const i=null==o&&e.ngModule||void 0,s=void 0===i?e:i,a=-1!==r.indexOf(s);if(void 0!==i&&(o=lf(i)),null==o)return!1;if(null!=o.imports&&!a){let c;r.push(s);try{jt(o.imports,d=>{this.processInjectorType(d,n,r)&&(void 0===c&&(c=[]),c.push(d))})}finally{}if(void 0!==c)for(let d=0;dthis.processProvider(p,f,h||te))}}this.injectorDefTypes.add(s);const u=$n(s)||(()=>new s);this.records.set(s,xr(u,Vo));const l=o.providers;if(null!=l&&!a){const c=e;jt(l,d=>this.processProvider(d,c,l))}return void 0!==i&&void 0!==e.providers}processProvider(e,n,r){let o=Nr(e=V(e))?e:V(e&&e.provide);const i=function dM(t,e,n){return Rp(t)?xr(void 0,t.useValue):xr(Np(t),Vo)}(e);if(Nr(e)||!0!==e.multi)this.records.get(o);else{let s=this.records.get(o);s||(s=xr(void 0,Vo,!0),s.factory=()=>_u(s.multi),this.records.set(o,s)),o=e,s.multi.push(e)}this.records.set(o,i)}hydrate(e,n){return n.value===Vo&&(n.value=uM,n.value=n.factory()),"object"==typeof n.value&&n.value&&function mM(t){return null!==t&&"object"==typeof t&&"function"==typeof t.ngOnDestroy}(n.value)&&this.onDestroy.add(n.value),n.value}injectableDefInScope(e){if(!e.providedIn)return!1;const n=V(e.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function pl(t){const e=La(t),n=null!==e?e.factory:$n(t);if(null!==n)return n;if(t instanceof j)throw new W(204,"");if(t instanceof Function)return function cM(t){const e=t.length;if(e>0)throw function wo(t,e){const n=[];for(let r=0;rn.factory(t):()=>new t}(t);throw new W(204,"")}function Np(t,e,n){let r;if(Nr(t)){const o=V(t);return $n(o)||pl(o)}if(Rp(t))r=()=>V(t.useValue);else if(function hM(t){return!(!t||!t.useFactory)}(t))r=()=>t.useFactory(..._u(t.deps||[]));else if(function fM(t){return!(!t||!t.useExisting)}(t))r=()=>S(V(t.useExisting));else{const o=V(t&&(t.useClass||t.provide));if(!function gM(t){return!!t.deps}(t))return $n(o)||pl(o);r=()=>new o(..._u(t.deps))}return r}function xr(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function Rp(t){return null!==t&&"object"==typeof t&&Ub in t}function Nr(t){return"function"==typeof t}let Re=(()=>{class t{static create(n,r){var o;if(Array.isArray(n))return Tp({name:""},r,n,"");{const i=null!==(o=n.name)&&void 0!==o?o:"";return Tp({name:i},n.parent,n.providers,i)}}}return t.THROW_IF_NOT_FOUND=Eo,t.NULL=new Ap,t.\u0275prov=F({token:t,providedIn:"any",factory:()=>S(dl)}),t.__NG_ELEMENT_ID__=-1,t})();function MM(t,e){Wi(Tu(t)[1],Ee())}function X(t){let e=function Gp(t){return Object.getPrototypeOf(t.prototype).constructor}(t.type),n=!0;const r=[t];for(;e;){let o;if(Mt(t))o=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new W(903,"");o=e.\u0275dir}if(o){if(n){r.push(o);const s=t;s.inputs=yl(t.inputs),s.declaredInputs=yl(t.declaredInputs),s.outputs=yl(t.outputs);const a=o.hostBindings;a&&TM(t,a);const u=o.viewQuery,l=o.contentQueries;if(u&&AM(t,u),l&&IM(t,l),Pa(t.inputs,o.inputs),Pa(t.declaredInputs,o.declaredInputs),Pa(t.outputs,o.outputs),Mt(o)&&o.data.animation){const c=t.data;c.animation=(c.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let s=0;s=0;r--){const o=t[r];o.hostVars=e+=o.hostVars,o.hostAttrs=Ki(o.hostAttrs,n=Ki(n,o.hostAttrs))}}(r)}function yl(t){return t===sr?{}:t===te?[]:t}function AM(t,e){const n=t.viewQuery;t.viewQuery=n?(r,o)=>{e(r,o),n(r,o)}:e}function IM(t,e){const n=t.contentQueries;t.contentQueries=n?(r,o,i)=>{e(r,o,i),n(r,o,i)}:e}function TM(t,e){const n=t.hostBindings;t.hostBindings=n?(r,o)=>{e(r,o),n(r,o)}:e}let _s=null;function Rr(){if(!_s){const t=Y.Symbol;if(t&&t.iterator)_s=t.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let n=0;na(_e(I[r.index])):r.index;if(fe(n)){let I=null;if(!a&&u&&(I=function a0(t,e,n,r){const o=t.cleanup;if(null!=o)for(let i=0;iu?a[u]:null}"string"==typeof s&&(i+=2)}return null}(t,e,o,r.index)),null!==I)(I.__ngLastListenerFn__||I).__ngNextListenerFn__=i,I.__ngLastListenerFn__=i,h=!1;else{i=Al(r,e,d,i,!1);const z=n.listen(D,o,i);f.push(i,z),c&&c.push(o,w,g,g+1)}}else i=Al(r,e,d,i,!0),D.addEventListener(o,i,s),f.push(i),c&&c.push(o,w,g,s)}else i=Al(r,e,d,i,!1);const p=r.outputs;let m;if(h&&null!==p&&(m=p[o])){const _=m.length;if(_)for(let D=0;D<_;D+=2){const ct=e[m[D]][m[D+1]].subscribe(i),or=f.length;f.push(i,ct),c&&c.push(o,r.index,or,-(or+1))}}}(i,o,o[L],s,t,e,!!n,r),Se}function gg(t,e,n,r){try{return!1!==n(r)}catch(o){return Mp(t,o),!1}}function Al(t,e,n,r,o){return function i(s){if(s===Function)return r;const a=2&t.flags?nt(t.index,e):e;0==(32&e[2])&&al(a);let u=gg(e,0,r,s),l=i.__ngNextListenerFn__;for(;l;)u=gg(e,0,l,s)&&u,l=l.__ngNextListenerFn__;return o&&!1===u&&(s.preventDefault(),s.returnValue=!1),u}}function Mg(t,e,n,r,o){const i=t[n+1],s=null===e;let a=r?At(i):on(i),u=!1;for(;0!==a&&(!1===u||s);){const c=t[a+1];p0(t[a],e)&&(u=!0,t[a+1]=r?zu(c):Gu(c)),a=r?At(c):on(c)}u&&(t[n+1]=r?Gu(i):zu(i))}function p0(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&Dr(t,e)>=0}function bs(t,e){return function Tt(t,e,n,r){const o=v(),i=J(),s=function rn(t){const e=N.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}(2);i.firstUpdatePass&&function Og(t,e,n,r){const o=t.data;if(null===o[n+1]){const i=o[Ue()],s=function Fg(t,e){return e>=t.expandoStartIndex}(t,n);(function Lg(t,e){return 0!=(t.flags&(e?16:32))})(i,r)&&null===e&&!s&&(e=!1),e=function w0(t,e,n,r){const o=function iu(t){const e=N.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let i=r?e.residualClasses:e.residualStyles;if(null===o)0===(r?e.classBindings:e.styleBindings)&&(n=Uo(n=Tl(null,t,e,n,r),e.attrs,r),i=null);else{const s=e.directiveStylingLast;if(-1===s||t[s]!==o)if(n=Tl(o,t,e,n,r),null===i){let u=function E0(t,e,n){const r=n?e.classBindings:e.styleBindings;if(0!==on(r))return t[At(r)]}(t,e,r);void 0!==u&&Array.isArray(u)&&(u=Tl(null,t,e,u[1],r),u=Uo(u,e.attrs,r),function M0(t,e,n,r){t[At(n?e.classBindings:e.styleBindings)]=r}(t,e,r,u))}else i=function S0(t,e,n){let r;const o=e.directiveEnd;for(let i=1+e.directiveStylingLast;i0)&&(l=!0)}else c=n;if(o)if(0!==u){const f=At(t[a+1]);t[r+1]=hs(f,a),0!==f&&(t[f+1]=qu(t[f+1],r)),t[a+1]=function CE(t,e){return 131071&t|e<<17}(t[a+1],r)}else t[r+1]=hs(a,0),0!==a&&(t[a+1]=qu(t[a+1],r)),a=r;else t[r+1]=hs(u,0),0===a?a=r:t[u+1]=qu(t[u+1],r),u=r;l&&(t[r+1]=Gu(t[r+1])),Mg(t,c,r,!0),Mg(t,c,r,!1),function h0(t,e,n,r,o){const i=o?t.residualClasses:t.residualStyles;null!=i&&"string"==typeof e&&Dr(i,e)>=0&&(n[r+1]=zu(n[r+1]))}(e,c,t,r,i),s=hs(a,u),i?e.classBindings=s:e.styleBindings=s}(o,i,e,n,s,r)}}(i,t,s,r),e!==O&&Le(o,s,e)&&function kg(t,e,n,r,o,i,s,a){if(!(3&e.type))return;const u=t.data,l=u[a+1];ws(function Yh(t){return 1==(1&t)}(l)?Vg(u,e,n,o,on(l),s):void 0)||(ws(i)||function Kh(t){return 2==(2&t)}(l)&&(i=Vg(u,null,n,o,a,s)),function lE(t,e,n,r,o){const i=fe(t);if(e)o?i?t.addClass(n,r):n.classList.add(r):i?t.removeClass(n,r):n.classList.remove(r);else{let s=-1===r.indexOf("-")?void 0:ot.DashCase;if(null==o)i?t.removeStyle(n,r,s):n.style.removeProperty(r);else{const a="string"==typeof o&&o.endsWith("!important");a&&(o=o.slice(0,-10),s|=ot.Important),i?t.setStyle(n,r,o,s):n.style.setProperty(r,o,a?"important":"")}}}(r,s,Ui(Ue(),n),o,i))}(i,i.data[Ue()],o,o[L],t,o[s+1]=function T0(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=K(Mn(t)))),t}(e,n),r,s)}(t,e,null,!0),bs}function Tl(t,e,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a0;){const u=t[o],l=Array.isArray(u),c=l?u[1]:u,d=null===c;let f=n[o+1];f===O&&(f=d?te:void 0);let h=d?mu(f,r):c===r?f:void 0;if(l&&!ws(h)&&(h=mu(u,r)),ws(h)&&(a=h,s))return a;const p=t[o+1];o=s?At(p):on(p)}if(null!==e){let u=i?e.residualClasses:e.residualStyles;null!=u&&(a=mu(u,r))}return a}function ws(t){return void 0!==t}function B(t,e=""){const n=v(),r=J(),o=t+20,i=r.firstCreatePass?Ar(r,o,1,e,null):r.data[o],s=n[o]=function ku(t,e){return fe(t)?t.createText(e):t.createTextNode(e)}(n[L],e);ds(r,n,s,i),Lt(i,!1)}function zn(t){return ln("",t,""),zn}function ln(t,e,n){const r=v(),o=function Or(t,e,n,r){return Le(t,fr(),n)?e+R(n)+r:O}(r,t,e,n);return o!==O&&sn(r,Ue(),o),ln}const Wn=void 0;var Q0=["en",[["a","p"],["AM","PM"],Wn],[["AM","PM"],Wn,Wn],[["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"]],Wn,[["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"]],Wn,[["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}",Wn,"{1} 'at' {0}",Wn],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function J0(t){const n=Math.floor(Math.abs(t)),r=t.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===r?1:5}];let Gr={};function qe(t){const e=function Z0(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=im(e);if(n)return n;const r=e.split("-")[0];if(n=im(r),n)return n;if("en"===r)return Q0;throw new Error(`Missing locale data for the locale "${t}".`)}function im(t){return t in Gr||(Gr[t]=Y.ng&&Y.ng.common&&Y.ng.common.locales&&Y.ng.common.locales[t]),Gr[t]}var b=(()=>((b=b||{})[b.LocaleId=0]="LocaleId",b[b.DayPeriodsFormat=1]="DayPeriodsFormat",b[b.DayPeriodsStandalone=2]="DayPeriodsStandalone",b[b.DaysFormat=3]="DaysFormat",b[b.DaysStandalone=4]="DaysStandalone",b[b.MonthsFormat=5]="MonthsFormat",b[b.MonthsStandalone=6]="MonthsStandalone",b[b.Eras=7]="Eras",b[b.FirstDayOfWeek=8]="FirstDayOfWeek",b[b.WeekendRange=9]="WeekendRange",b[b.DateFormat=10]="DateFormat",b[b.TimeFormat=11]="TimeFormat",b[b.DateTimeFormat=12]="DateTimeFormat",b[b.NumberSymbols=13]="NumberSymbols",b[b.NumberFormats=14]="NumberFormats",b[b.CurrencyCode=15]="CurrencyCode",b[b.CurrencySymbol=16]="CurrencySymbol",b[b.CurrencyName=17]="CurrencyName",b[b.Currencies=18]="Currencies",b[b.Directionality=19]="Directionality",b[b.PluralCase=20]="PluralCase",b[b.ExtraData=21]="ExtraData",b))();const Es="en-US";let sm=Es;function Rl(t,e,n,r,o){if(t=V(t),Array.isArray(t))for(let i=0;i>20;if(Nr(t)||!t.multi){const h=new mo(u,o,y),p=Ol(a,e,o?c:c+f,d);-1===p?(es(vo(l,s),i,a),Fl(i,t,e.length),e.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=Ol(a,e,c+f,d),p=Ol(a,e,c,c+f),m=h>=0&&n[h],_=p>=0&&n[p];if(o&&!_||!o&&!m){es(vo(l,s),i,a);const D=function JS(t,e,n,r,o){const i=new mo(t,n,y);return i.multi=[],i.index=e,i.componentProviders=0,xm(i,o,r&&!n),i}(o?WS:zS,n.length,o,r,u);!o&&_&&(n[p].providerFactory=D),Fl(i,t,e.length,0),e.push(a),l.directiveStart++,l.directiveEnd++,o&&(l.providerIndexes+=1048576),n.push(D),s.push(D)}else Fl(i,t,h>-1?h:p,xm(n[o?p:h],u,!o&&r));!o&&r&&_&&n[p].componentProviders++}}}function Fl(t,e,n,r){const o=Nr(e),i=function pM(t){return!!t.useClass}(e);if(o||i){const u=(i?V(e.useClass):e).prototype.ngOnDestroy;if(u){const l=t.destroyHooks||(t.destroyHooks=[]);if(!o&&e.multi){const c=l.indexOf(n);-1===c?l.push(n,[r,u]):l[c+1].push(r,u)}else l.push(n,u)}}}function xm(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function Ol(t,e,n,r){for(let o=n;o{n.providersResolver=(r,o)=>function qS(t,e,n){const r=J();if(r.firstCreatePass){const o=Mt(t);Rl(n,r.data,r.blueprint,o,!0),Rl(e,r.data,r.blueprint,o,!1)}}(r,o?o(t):t,e)}}class Nm{}class KS{resolveComponentFactory(e){throw function ZS(t){const e=Error(`No component factory found for ${K(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(e)}}let zr=(()=>{class t{}return t.NULL=new KS,t})();function YS(){return Wr(Ee(),v())}function Wr(t,e){return new st(mt(t,e))}let st=(()=>{class t{constructor(n){this.nativeElement=n}}return t.__NG_ELEMENT_ID__=YS,t})();class Fm{}let cn=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>function tA(){const t=v(),n=nt(Ee().index,t);return function eA(t){return t[L]}(Vt(n)?n:t)}(),t})(),nA=(()=>{class t{}return t.\u0275prov=F({token:t,providedIn:"root",factory:()=>null}),t})();class Wo{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const rA=new Wo("13.2.0"),kl={};function Ts(t,e,n,r,o=!1){for(;null!==n;){const i=e[n.index];if(null!==i&&r.push(_e(i)),Et(i))for(let a=10;a-1&&(Lu(e,r),ns(n,r))}this._attachedToViewContainer=!1}Nh(this._lView[1],this._lView)}onDestroy(e){!function fp(t,e,n,r){const o=bp(e);null===n?o.push(r):(o.push(n),t.firstCreatePass&&wp(t).push(r,o.length-1))}(this._lView[1],this._lView,null,e)}markForCheck(){al(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ll(this._lView[1],this._lView,this.context)}checkNoChanges(){!function rM(t,e,n){Gi(!0);try{ll(t,e,n)}finally{Gi(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new W(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Xw(t,e){Oo(t,e,e[L],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new W(902,"");this._appRef=e}}class oA extends Jo{constructor(e){super(e),this._view=e}detectChanges(){Cp(this._view)}checkNoChanges(){!function oM(t){Gi(!0);try{Cp(t)}finally{Gi(!1)}}(this._view)}get context(){return null}}class Om extends zr{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const n=Pe(e);return new Vl(n,this.ngModule)}}function Pm(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const sA=new j("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>wh});class Vl extends Nm{constructor(e,n){super(),this.componentDef=e,this.ngModule=n,this.componentType=e.type,this.selector=function _E(t){return t.map(vE).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return Pm(this.componentDef.inputs)}get outputs(){return Pm(this.componentDef.outputs)}create(e,n,r,o){const i=(o=o||this.ngModule)?function aA(t,e){return{get:(n,r,o)=>{const i=t.get(n,kl,o);return i!==kl||r===kl?i:e.get(n,r,o)}}}(e,o.injector):e,s=i.get(Fm,Cf),a=i.get(nA,null),u=s.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=r?function dp(t,e,n){if(fe(t))return t.selectRootElement(e,n===kt.ShadowDom);let r="string"==typeof e?t.querySelector(e):e;return r.textContent="",r}(u,r,this.componentDef.encapsulation):Vu(s.createRenderer(null,this.componentDef),l,function iA(t){const e=t.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(l)),d=this.componentDef.onPush?576:528,f=function $p(t,e){return{components:[],scheduler:t||wh,clean:iM,playerHandler:e||null,flags:0}}(),h=ms(0,null,null,1,0,null,null,null,null,null),p=Po(null,h,f,d,null,null,s,u,a,i);let m,_;qi(p);try{const D=function Hp(t,e,n,r,o,i){const s=n[1];n[20]=t;const u=Ar(s,20,2,"#host",null),l=u.mergedAttrs=e.hostAttrs;null!==l&&(vs(u,l,!0),null!==t&&(Zi(o,t,l),null!==u.classes&&$u(o,t,u.classes),null!==u.styles&&$h(o,t,u.styles)));const c=r.createRenderer(t,e),d=Po(n,lp(e),null,e.onPush?64:16,n[20],u,r,c,i||null,null);return s.firstCreatePass&&(es(vo(u,n),s,e.type),yp(s,u),vp(u,n.length,1)),ys(n,d),n[20]=d}(c,this.componentDef,p,s,u);if(c)if(r)Zi(u,c,["ng-version",rA.full]);else{const{attrs:g,classes:w}=function DE(t){const e=[],n=[];let r=1,o=2;for(;r0&&$u(u,c,w.join(" "))}if(_=Ya(h,20),void 0!==n){const g=_.projection=[];for(let w=0;wu(s,e)),e.contentQueries){const u=Ee();e.contentQueries(1,s,u.directiveStart)}const a=Ee();return!i.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(wn(a.index),gp(n[1],a,0,a.directiveStart,a.directiveEnd,e),mp(e,s)),s}(D,this.componentDef,p,f,[MM]),ko(h,p,null)}finally{zi()}return new lA(this.componentType,m,Wr(_,p),p,_)}}class lA extends class QS{}{constructor(e,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new oA(o),this.componentType=e}get injector(){return new gr(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class dn{}class km{}const Jr=new Map;class jm extends dn{constructor(e,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new Om(this);const r=ht(e);this._bootstrapComponents=Ut(r.bootstrap),this._r3Injector=xp(e,n,[{provide:dn,useValue:this},{provide:zr,useValue:this.componentFactoryResolver}],K(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,n=Re.THROW_IF_NOT_FOUND,r=P.Default){return e===Re||e===dn||e===dl?this:this._r3Injector.get(e,n,r)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Ll extends km{constructor(e){super(),this.moduleType=e,null!==ht(e)&&function dA(t){const e=new Set;!function n(r){const o=ht(r,!0),i=o.id;null!==i&&(function Vm(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${K(e)} vs ${K(e.name)}`)}(i,Jr.get(i),r),Jr.set(i,r));const s=Ut(o.imports);for(const a of s)e.has(a)||(e.add(a),n(a))}(t)}(e)}create(e){return new jm(this.moduleType,e)}}function jl(t,e,n){const r=He()+t,o=v();return o[r]===O?Gt(o,r,n?e.call(n):e()):function jo(t,e){return t[e]}(o,r)}function Bl(t,e,n,r){return function Bm(t,e,n,r,o,i){const s=e+n;return Le(t,s,o)?Gt(t,s+1,i?r.call(i,o):r(o)):Qo(t,s+1)}(v(),He(),t,e,n,r)}function Qo(t,e){const n=t[e];return n===O?void 0:n}function Hm(t,e,n,r,o,i,s){const a=e+n;return function qn(t,e,n,r){const o=Le(t,e,n);return Le(t,e+1,r)||o}(t,a,o,i)?Gt(t,a+2,s?r.call(s,o,i):r(o,i)):Qo(t,a+2)}function Hl(t,e){const n=J();let r;const o=t+20;n.firstCreatePass?(r=function DA(t,e){if(e)for(let n=e.length-1;n>=0;n--){const r=e[n];if(t===r.name)return r}}(e,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(o,r.onDestroy)):r=n.data[o];const i=r.factory||(r.factory=$n(r.type)),s=_n(y);try{const a=Yi(!1),u=i();return Yi(a),function VM(t,e,n,r){n>=t.data.length&&(t.data[n]=null,t.blueprint[n]=null),e[n]=r}(n,v(),o,u),u}finally{_n(s)}}function Ul(t,e,n,r){const o=t+20,i=v(),s=dr(i,o);return function Zo(t,e){return t[1].data[e].pure}(i,o)?Hm(i,He(),e,s.transform,n,r,s):s.transform(n,r)}function $l(t){return e=>{setTimeout(t,void 0,e)}}const me=class MA extends Yt{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,n,r){var o,i,s;let a=e,u=n||(()=>null),l=r;if(e&&"object"==typeof e){const d=e;a=null===(o=d.next)||void 0===o?void 0:o.bind(d),u=null===(i=d.error)||void 0===i?void 0:i.bind(d),l=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(u=$l(u),a&&(a=$l(a)),l&&(l=$l(l)));const c=super.subscribe({next:a,error:u,complete:l});return e instanceof de&&e.add(c),c}};Symbol;let fn=(()=>{class t{}return t.__NG_ELEMENT_ID__=TA,t})();const AA=fn,IA=class extends AA{constructor(e,n,r){super(),this._declarationLView=e,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(e){const n=this._declarationTContainer.tViews,r=Po(this._declarationLView,n,e,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(r[19]=i.createEmbeddedView(n)),ko(n,r,e),new Jo(r)}};function TA(){return function xs(t,e){return 4&t.type?new IA(e,t,Wr(t,e)):null}(Ee(),v())}let Nt=(()=>{class t{}return t.__NG_ELEMENT_ID__=xA,t})();function xA(){return function Wm(t,e){let n;const r=e[t.index];if(Et(r))n=r;else{let o;if(8&t.type)o=_e(r);else{const i=e[L];o=i.createComment("");const s=mt(t,e);Gn(i,cs(i,s),o,function sE(t,e){return fe(t)?t.nextSibling(e):e.nextSibling}(i,s),!1)}e[t.index]=n=Dp(r,e,o,t),ys(e,n)}return new qm(n,t,e)}(Ee(),v())}const NA=Nt,qm=class extends NA{constructor(e,n,r){super(),this._lContainer=e,this._hostTNode=n,this._hostLView=r}get element(){return Wr(this._hostTNode,this._hostLView)}get injector(){return new gr(this._hostTNode,this._hostLView)}get parentInjector(){const e=Xi(this._hostTNode,this._hostLView);if(Vf(e)){const n=pr(e,this._hostLView),r=hr(e);return new gr(n[1].data[r+8],n)}return new gr(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const n=zm(this._lContainer);return null!==n&&n[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,n,r){const o=e.createEmbeddedView(n||{});return this.insert(o,r),o}createComponent(e,n,r,o,i){const s=e&&!function bo(t){return"function"==typeof t}(e);let a;if(s)a=n;else{const d=n||{};a=d.index,r=d.injector,o=d.projectableNodes,i=d.ngModuleRef}const u=s?e:new Vl(Pe(e)),l=r||this.parentInjector;if(!i&&null==u.ngModule&&l){const d=l.get(dn,null);d&&(i=d)}const c=u.create(l,o,void 0,i);return this.insert(c.hostView,a),c}insert(e,n){const r=e._lView,o=r[1];if(function YC(t){return Et(t[3])}(r)){const c=this.indexOf(e);if(-1!==c)this.detach(c);else{const d=r[3],f=new qm(d,d[6],d[3]);f.detach(f.indexOf(e))}}const i=this._adjustIndex(n),s=this._lContainer;!function tE(t,e,n,r){const o=10+r,i=n.length;r>0&&(n[o-1][4]=e),r{class t{constructor(n){this.appInits=n,this.resolve=Fs,this.reject=Fs,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o{i.subscribe({complete:a,error:u})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return t.\u0275fac=function(n){return new(n||t)(S(Os,8))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const Yo=new j("AppId"),iI={provide:Yo,useFactory:function oI(){return`${ic()}${ic()}${ic()}`},deps:[]};function ic(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const gy=new j("Platform Initializer"),Ps=new j("Platform ID"),my=new j("appBootstrapListener");let yy=(()=>{class t{log(n){console.log(n)}warn(n){console.warn(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const In=new j("LocaleId"),vy=new j("DefaultCurrencyCode");class sI{constructor(e,n){this.ngModuleFactory=e,this.componentFactories=n}}let ks=(()=>{class t{compileModuleSync(n){return new Ll(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){const r=this.compileModuleSync(n),i=Ut(ht(n).declarations).reduce((s,a)=>{const u=Pe(a);return u&&s.push(new Vl(u)),s},[]);return new sI(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const uI=(()=>Promise.resolve(0))();function sc(t){"undefined"==typeof Zone?uI.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class Ie{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new me(!1),this.onMicrotaskEmpty=new me(!1),this.onStable=new me(!1),this.onError=new me(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function lI(){let t=Y.requestAnimationFrame,e=Y.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const r=e[Zone.__symbol__("OriginalDelegate")];r&&(e=r)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function fI(t){const e=()=>{!function dI(t){t.isCheckStableRunning||-1!==t.lastRequestAnimationFrameId||(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Y,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,uc(t),t.isCheckStableRunning=!0,ac(t),t.isCheckStableRunning=!1},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),uc(t))}(t)};t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return _y(t),n.invokeTask(o,i,s,a)}finally{(t.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||t.shouldCoalesceRunChangeDetection)&&e(),Dy(t)}},onInvoke:(n,r,o,i,s,a,u)=>{try{return _y(t),n.invoke(o,i,s,a,u)}finally{t.shouldCoalesceRunChangeDetection&&e(),Dy(t)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,uc(t),ac(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Ie.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Ie.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,n,r){return this._inner.run(e,n,r)}runTask(e,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,e,cI,Fs,Fs);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(e,n,r){return this._inner.runGuarded(e,n,r)}runOutsideAngular(e){return this._outer.run(e)}}const cI={};function ac(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function uc(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||(t.shouldCoalesceEventChangeDetection||t.shouldCoalesceRunChangeDetection)&&-1!==t.lastRequestAnimationFrameId)}function _y(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Dy(t){t._nesting--,ac(t)}class hI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new me,this.onMicrotaskEmpty=new me,this.onStable=new me,this.onError=new me}run(e,n,r){return e.apply(n,r)}runGuarded(e,n,r){return e.apply(n,r)}runOutsideAngular(e){return e()}runTask(e,n,r,o){return e.apply(n,r)}}let lc=(()=>{class t{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Ie.assertNotInAngularZone(),sc(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())sc(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,o){return[]}}return t.\u0275fac=function(n){return new(n||t)(S(Ie))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),Cy=(()=>{class t{constructor(){this._applications=new Map,cc.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return cc.findTestabilityInTree(this,n,r)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();class pI{addToWindow(e){}findTestabilityInTree(e,n,r){return null}}let Rt,cc=new pI;const by=new j("AllowMultipleToken");class wy{constructor(e,n){this.name=e,this.token=n}}function Ey(t,e,n=[]){const r=`Platform: ${e}`,o=new j(r);return(i=[])=>{let s=My();if(!s||s.injector.get(by,!1))if(t)t(n.concat(i).concat({provide:o,useValue:!0}));else{const a=n.concat(i).concat({provide:o,useValue:!0},{provide:fl,useValue:"platform"});!function vI(t){if(Rt&&!Rt.destroyed&&!Rt.injector.get(by,!1))throw new W(400,"");Rt=t.get(Sy);const e=t.get(gy,null);e&&e.forEach(n=>n())}(Re.create({providers:a,name:r}))}return function _I(t){const e=My();if(!e)throw new W(401,"");return e}()}}function My(){return Rt&&!Rt.destroyed?Rt:null}let Sy=(()=>{class t{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function DI(t,e){let n;return n="noop"===t?new hI:("zone.js"===t?void 0:t)||new Ie({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),u=[{provide:Ie,useValue:a}];return a.run(()=>{const l=Re.create({providers:u,parent:this.injector,name:n.moduleType.name}),c=n.create(l),d=c.injector.get(Er,null);if(!d)throw new W(402,"");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{d.handleError(h)}});c.onDestroy(()=>{dc(this._modules,c),f.unsubscribe()})}),function CI(t,e,n){try{const r=n();return Ho(r)?r.catch(o=>{throw e.runOutsideAngular(()=>t.handleError(o)),o}):r}catch(r){throw e.runOutsideAngular(()=>t.handleError(r)),r}}(d,a,()=>{const f=c.injector.get(Zr);return f.runInitializers(),f.donePromise.then(()=>(function eS(t){Ye(t,"Expected localeId to be defined"),"string"==typeof t&&(sm=t.toLowerCase().replace(/_/g,"-"))}(c.injector.get(In,Es)||Es),this._moduleDoBootstrap(c),c))})})}bootstrapModule(n,r=[]){const o=Ay({},r);return function mI(t,e,n){const r=new Ll(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(Xo);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new W(403,"");n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new W(404,"");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(n){return new(n||t)(S(Re))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();function Ay(t,e){return Array.isArray(e)?e.reduce(Ay,t):Object.assign(Object.assign({},t),e)}let Xo=(()=>{class t{constructor(n,r,o,i,s){this._zone=n,this._injector=r,this._exceptionHandler=o,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new ie(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),u=new ie(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Ie.assertNotInAngularZone(),sc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{Ie.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),d.unsubscribe()}});this.isStable=function lC(...t){let e=Number.POSITIVE_INFINITY,n=null,r=t[t.length-1];return Ri(r)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof r&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof ie?t[0]:lo(e)(Fa(t,n))}(a,u.pipe(function vC(){return t=>Oa()(function gC(t,e){return function(r){let o;if(o="function"==typeof t?t:function(){return t},"function"==typeof e)return r.lift(new mC(o,e));const i=Object.create(r,fC);return i.source=r,i.subjectFactory=o,i}}(yC)(t))}()))}bootstrap(n,r){if(!this._initStatus.done)throw new W(405,"");let o;o=n instanceof Nm?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const i=function yI(t){return t.isBoundToModule}(o)?void 0:this._injector.get(dn),a=o.create(Re.NULL,[],r||o.selector,i),u=a.location.nativeElement,l=a.injector.get(lc,null),c=l&&a.injector.get(Cy);return l&&c&&c.registerApplication(u,l),a.onDestroy(()=>{this.detachView(a.hostView),dc(this.components,a),c&&c.unregisterApplication(u)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new W(101,"");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;dc(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(my,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return t.\u0275fac=function(n){return new(n||t)(S(Ie),S(Re),S(Er),S(zr),S(Zr))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();function dc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}let fc=(()=>{class t{}return t.__NG_ELEMENT_ID__=EI,t})();function EI(t){return function MI(t,e,n){if(Bi(t)&&!n){const r=nt(t.index,e);return new Jo(r,r)}return 47&t.type?new Jo(e[16],e):null}(Ee(),v(),16==(16&t))}class ky{constructor(){}supports(e){return Lo(e)}create(e){return new NI(e)}}const xI=(t,e)=>e;class NI{constructor(e){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=e||xI}forEachItem(e){let n;for(n=this._itHead;null!==n;n=n._next)e(n)}forEachOperation(e){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,n,r,o){let i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,i,o)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,i,o)):e=this._addAfter(new RI(n,r),i,o),e}_verifyReinsertion(e,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?e=this._reinsertAfter(i,e._prev,o):e.currentIndex!=o&&(e.currentIndex=o,this._addToMoves(e,o)),e}_truncate(e){for(;null!==e;){const n=e._next;this._addToRemovals(this._unlink(e)),e=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(e,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const o=e._prevRemoved,i=e._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(e,n,r),this._addToMoves(e,r),e}_moveAfter(e,n,r){return this._unlink(e),this._insertAfter(e,n,r),this._addToMoves(e,r),e}_addAfter(e,n,r){return this._insertAfter(e,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,n,r){const o=null===n?this._itHead:n._next;return e._next=o,e._prev=n,null===o?this._itTail=e:o._prev=e,null===n?this._itHead=e:n._next=e,null===this._linkedRecords&&(this._linkedRecords=new Vy),this._linkedRecords.put(e),e.currentIndex=r,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const n=e._prev,r=e._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,e}_addToMoves(e,n){return e.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Vy),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,n){return e.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class RI{constructor(e,n){this.item=e,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class FI{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,e))return r;return null}remove(e){const n=e._prevDup,r=e._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Vy{constructor(){this.map=new Map}put(e){const n=e.trackById;let r=this.map.get(n);r||(r=new FI,this.map.set(n,r)),r.add(e)}get(e,n){const o=this.map.get(e);return o?o.get(e,n):null}remove(e){const n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Ly(t,e,n){const r=t.previousIndex;if(null===r)return r;let o=0;return n&&r{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,n){if(e){const r=e._prev;return n._next=e,n._prev=r,e._prev=n,r&&(r._next=n),e===this._mapHead&&(this._mapHead=n),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(e,n){if(this._records.has(e)){const o=this._records.get(e);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new PI(e);return this._records.set(e,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,n){Object.is(n,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=n,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,n){e instanceof Map?e.forEach(n):Object.keys(e).forEach(r=>n(e[r],r))}}class PI{constructor(e){this.key=e,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 By(){return new ei([new ky])}let ei=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||By()),deps:[[t,new Cr,new Bt]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new W(901,"")}}return t.\u0275prov=F({token:t,providedIn:"root",factory:By}),t})();function Hy(){return new Kr([new jy])}let Kr=(()=>{class t{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new t(n)}static extend(n){return{provide:t,useFactory:r=>t.create(n,r||Hy()),deps:[[t,new Cr,new Bt]]}}find(n){const r=this.factories.find(i=>i.supports(n));if(r)return r;throw new W(901,"")}}return t.\u0275prov=F({token:t,providedIn:"root",factory:Hy}),t})();const kI=[new jy],LI=new ei([new ky]),jI=new Kr(kI),BI=Ey(null,"core",[{provide:Ps,useValue:"unknown"},{provide:Sy,deps:[Re]},{provide:Cy,deps:[]},{provide:yy,deps:[]}]),qI=[{provide:Xo,useClass:Xo,deps:[Ie,Re,Er,zr,Zr]},{provide:sA,deps:[Ie],useFactory:function zI(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(n){e.push(n)}}},{provide:Zr,useClass:Zr,deps:[[new Bt,Os]]},{provide:ks,useClass:ks,deps:[]},iI,{provide:ei,useFactory:function HI(){return LI},deps:[]},{provide:Kr,useFactory:function UI(){return jI},deps:[]},{provide:In,useFactory:function $I(t){return t||function GI(){return"undefined"!=typeof $localize&&$localize.locale||Es}()},deps:[[new Ao(In),new Bt,new Cr]]},{provide:vy,useValue:"USD"}];let WI=(()=>{class t{constructor(n){}}return t.\u0275fac=function(n){return new(n||t)(S(Xo))},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({providers:qI}),t})(),Ls=null;function Jt(){return Ls}const at=new j("DocumentToken");let Qn=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:function(){return function KI(){return S(Uy)}()},providedIn:"platform"}),t})();const YI=new j("Location Initialized");let Uy=(()=>{class t extends Qn{constructor(n){super(),this._doc=n,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Jt().getBaseHref(this._doc)}onPopState(n){const r=Jt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("popstate",n,!1),()=>r.removeEventListener("popstate",n)}onHashChange(n){const r=Jt().getGlobalEventTarget(this._doc,"window");return r.addEventListener("hashchange",n,!1),()=>r.removeEventListener("hashchange",n)}get href(){return this.location.href}get protocol(){return this.location.protocol}get hostname(){return this.location.hostname}get port(){return this.location.port}get pathname(){return this.location.pathname}get search(){return this.location.search}get hash(){return this.location.hash}set pathname(n){this.location.pathname=n}pushState(n,r,o){$y()?this._history.pushState(n,r,o):this.location.hash=o}replaceState(n,r,o){$y()?this._history.replaceState(n,r,o):this.location.hash=o}forward(){this._history.forward()}back(){this._history.back()}historyGo(n=0){this._history.go(n)}getState(){return this._history.state}}return t.\u0275fac=function(n){return new(n||t)(S(at))},t.\u0275prov=F({token:t,factory:function(){return function XI(){return new Uy(S(at))}()},providedIn:"platform"}),t})();function $y(){return!!window.history.pushState}function yc(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function Gy(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function hn(t){return t&&"?"!==t[0]?"?"+t:t}let Yr=(()=>{class t{historyGo(n){throw new Error("Not implemented")}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:function(){return function eT(t){const e=S(at).location;return new qy(S(Qn),e&&e.origin||"")}()},providedIn:"root"}),t})();const vc=new j("appBaseHref");let qy=(()=>{class t extends Yr{constructor(n,r){if(super(),this._platformLocation=n,this._removeListenerFns=[],null==r&&(r=this._platformLocation.getBaseHrefFromDOM()),null==r)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");this._baseHref=r}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}prepareExternalUrl(n){return yc(this._baseHref,n)}path(n=!1){const r=this._platformLocation.pathname+hn(this._platformLocation.search),o=this._platformLocation.hash;return o&&n?`${r}${o}`:r}pushState(n,r,o,i){const s=this.prepareExternalUrl(o+hn(i));this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){const s=this.prepareExternalUrl(o+hn(i));this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformLocation).historyGo)||void 0===o||o.call(r,n)}}return t.\u0275fac=function(n){return new(n||t)(S(Qn),S(vc,8))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),tT=(()=>{class t extends Yr{constructor(n,r){super(),this._platformLocation=n,this._baseHref="",this._removeListenerFns=[],null!=r&&(this._baseHref=r)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(n){this._removeListenerFns.push(this._platformLocation.onPopState(n),this._platformLocation.onHashChange(n))}getBaseHref(){return this._baseHref}path(n=!1){let r=this._platformLocation.hash;return null==r&&(r="#"),r.length>0?r.substring(1):r}prepareExternalUrl(n){const r=yc(this._baseHref,n);return r.length>0?"#"+r:r}pushState(n,r,o,i){let s=this.prepareExternalUrl(o+hn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.pushState(n,r,s)}replaceState(n,r,o,i){let s=this.prepareExternalUrl(o+hn(i));0==s.length&&(s=this._platformLocation.pathname),this._platformLocation.replaceState(n,r,s)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformLocation).historyGo)||void 0===o||o.call(r,n)}}return t.\u0275fac=function(n){return new(n||t)(S(Qn),S(vc,8))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),_c=(()=>{class t{constructor(n,r){this._subject=new me,this._urlChangeListeners=[],this._platformStrategy=n;const o=this._platformStrategy.getBaseHref();this._platformLocation=r,this._baseHref=Gy(zy(o)),this._platformStrategy.onPopState(i=>{this._subject.emit({url:this.path(!0),pop:!0,state:i.state,type:i.type})})}path(n=!1){return this.normalize(this._platformStrategy.path(n))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(n,r=""){return this.path()==this.normalize(n+hn(r))}normalize(n){return t.stripTrailingSlash(function rT(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,zy(n)))}prepareExternalUrl(n){return n&&"/"!==n[0]&&(n="/"+n),this._platformStrategy.prepareExternalUrl(n)}go(n,r="",o=null){this._platformStrategy.pushState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+hn(r)),o)}replaceState(n,r="",o=null){this._platformStrategy.replaceState(o,"",n,r),this._notifyUrlChangeListeners(this.prepareExternalUrl(n+hn(r)),o)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(n=0){var r,o;null===(o=(r=this._platformStrategy).historyGo)||void 0===o||o.call(r,n)}onUrlChange(n){this._urlChangeListeners.push(n),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(r=>{this._notifyUrlChangeListeners(r.url,r.state)}))}_notifyUrlChangeListeners(n="",r){this._urlChangeListeners.forEach(o=>o(n,r))}subscribe(n,r,o){return this._subject.subscribe({next:n,error:r,complete:o})}}return t.normalizeQueryParams=hn,t.joinWithSlash=yc,t.stripTrailingSlash=Gy,t.\u0275fac=function(n){return new(n||t)(S(Yr),S(Qn))},t.\u0275prov=F({token:t,factory:function(){return function nT(){return new _c(S(Yr),S(Qn))}()},providedIn:"root"}),t})();function zy(t){return t.replace(/\/index.html$/,"")}var Ce=(()=>((Ce=Ce||{})[Ce.Zero=0]="Zero",Ce[Ce.One=1]="One",Ce[Ce.Two=2]="Two",Ce[Ce.Few=3]="Few",Ce[Ce.Many=4]="Many",Ce[Ce.Other=5]="Other",Ce))(),ve=(()=>((ve=ve||{})[ve.Format=0]="Format",ve[ve.Standalone=1]="Standalone",ve))(),G=(()=>((G=G||{})[G.Narrow=0]="Narrow",G[G.Abbreviated=1]="Abbreviated",G[G.Wide=2]="Wide",G[G.Short=3]="Short",G))(),ce=(()=>((ce=ce||{})[ce.Short=0]="Short",ce[ce.Medium=1]="Medium",ce[ce.Long=2]="Long",ce[ce.Full=3]="Full",ce))(),A=(()=>((A=A||{})[A.Decimal=0]="Decimal",A[A.Group=1]="Group",A[A.List=2]="List",A[A.PercentSign=3]="PercentSign",A[A.PlusSign=4]="PlusSign",A[A.MinusSign=5]="MinusSign",A[A.Exponential=6]="Exponential",A[A.SuperscriptingExponent=7]="SuperscriptingExponent",A[A.PerMille=8]="PerMille",A[A.Infinity=9]="Infinity",A[A.NaN=10]="NaN",A[A.TimeSeparator=11]="TimeSeparator",A[A.CurrencyDecimal=12]="CurrencyDecimal",A[A.CurrencyGroup=13]="CurrencyGroup",A))();function js(t,e){return Dt(qe(t)[b.DateFormat],e)}function Bs(t,e){return Dt(qe(t)[b.TimeFormat],e)}function Hs(t,e){return Dt(qe(t)[b.DateTimeFormat],e)}function _t(t,e){const n=qe(t),r=n[b.NumberSymbols][e];if(void 0===r){if(e===A.CurrencyDecimal)return n[b.NumberSymbols][A.Decimal];if(e===A.CurrencyGroup)return n[b.NumberSymbols][A.Group]}return r}const cT=function om(t){return qe(t)[b.PluralCase]};function Jy(t){if(!t[b.ExtraData])throw new Error(`Missing extra locale data for the locale "${t[b.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function Dt(t,e){for(let n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function Cc(t){const[e,n]=t.split(":");return{hours:+e,minutes:+n}}const mT=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,ti={},yT=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var Te=(()=>((Te=Te||{})[Te.Short=0]="Short",Te[Te.ShortGMT=1]="ShortGMT",Te[Te.Long=2]="Long",Te[Te.Extended=3]="Extended",Te))(),T=(()=>((T=T||{})[T.FullYear=0]="FullYear",T[T.Month=1]="Month",T[T.Date=2]="Date",T[T.Hours=3]="Hours",T[T.Minutes=4]="Minutes",T[T.Seconds=5]="Seconds",T[T.FractionalSeconds=6]="FractionalSeconds",T[T.Day=7]="Day",T))(),H=(()=>((H=H||{})[H.DayPeriods=0]="DayPeriods",H[H.Days=1]="Days",H[H.Months=2]="Months",H[H.Eras=3]="Eras",H))();function vT(t,e,n,r){let o=function AT(t){if(Ky(t))return t;if("number"==typeof t&&!isNaN(t))return new Date(t);if("string"==typeof t){if(t=t.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(t)){const[o,i=1,s=1]=t.split("-").map(a=>+a);return Us(o,i-1,s)}const n=parseFloat(t);if(!isNaN(t-n))return new Date(n);let r;if(r=t.match(mT))return function IT(t){const e=new Date(0);let n=0,r=0;const o=t[8]?e.setUTCFullYear:e.setFullYear,i=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=Number(t[9]+t[10]),r=Number(t[9]+t[11])),o.call(e,Number(t[1]),Number(t[2])-1,Number(t[3]));const s=Number(t[4]||0)-n,a=Number(t[5]||0)-r,u=Number(t[6]||0),l=Math.floor(1e3*parseFloat("0."+(t[7]||0)));return i.call(e,s,a,u,l),e}(r)}const e=new Date(t);if(!Ky(e))throw new Error(`Unable to convert "${t}" into a date`);return e}(t);e=pn(n,e)||e;let a,s=[];for(;e;){if(a=yT.exec(e),!a){s.push(e);break}{s=s.concat(a.slice(1));const c=s.pop();if(!c)break;e=c}}let u=o.getTimezoneOffset();r&&(u=Zy(r,u),o=function ST(t,e,n){const r=n?-1:1,o=t.getTimezoneOffset();return function MT(t,e){return(t=new Date(t.getTime())).setMinutes(t.getMinutes()+e),t}(t,r*(Zy(e,o)-o))}(o,r,!0));let l="";return s.forEach(c=>{const d=function ET(t){if(wc[t])return wc[t];let e;switch(t){case"G":case"GG":case"GGG":e=oe(H.Eras,G.Abbreviated);break;case"GGGG":e=oe(H.Eras,G.Wide);break;case"GGGGG":e=oe(H.Eras,G.Narrow);break;case"y":e=be(T.FullYear,1,0,!1,!0);break;case"yy":e=be(T.FullYear,2,0,!0,!0);break;case"yyy":e=be(T.FullYear,3,0,!1,!0);break;case"yyyy":e=be(T.FullYear,4,0,!1,!0);break;case"Y":e=zs(1);break;case"YY":e=zs(2,!0);break;case"YYY":e=zs(3);break;case"YYYY":e=zs(4);break;case"M":case"L":e=be(T.Month,1,1);break;case"MM":case"LL":e=be(T.Month,2,1);break;case"MMM":e=oe(H.Months,G.Abbreviated);break;case"MMMM":e=oe(H.Months,G.Wide);break;case"MMMMM":e=oe(H.Months,G.Narrow);break;case"LLL":e=oe(H.Months,G.Abbreviated,ve.Standalone);break;case"LLLL":e=oe(H.Months,G.Wide,ve.Standalone);break;case"LLLLL":e=oe(H.Months,G.Narrow,ve.Standalone);break;case"w":e=bc(1);break;case"ww":e=bc(2);break;case"W":e=bc(1,!0);break;case"d":e=be(T.Date,1);break;case"dd":e=be(T.Date,2);break;case"c":case"cc":e=be(T.Day,1);break;case"ccc":e=oe(H.Days,G.Abbreviated,ve.Standalone);break;case"cccc":e=oe(H.Days,G.Wide,ve.Standalone);break;case"ccccc":e=oe(H.Days,G.Narrow,ve.Standalone);break;case"cccccc":e=oe(H.Days,G.Short,ve.Standalone);break;case"E":case"EE":case"EEE":e=oe(H.Days,G.Abbreviated);break;case"EEEE":e=oe(H.Days,G.Wide);break;case"EEEEE":e=oe(H.Days,G.Narrow);break;case"EEEEEE":e=oe(H.Days,G.Short);break;case"a":case"aa":case"aaa":e=oe(H.DayPeriods,G.Abbreviated);break;case"aaaa":e=oe(H.DayPeriods,G.Wide);break;case"aaaaa":e=oe(H.DayPeriods,G.Narrow);break;case"b":case"bb":case"bbb":e=oe(H.DayPeriods,G.Abbreviated,ve.Standalone,!0);break;case"bbbb":e=oe(H.DayPeriods,G.Wide,ve.Standalone,!0);break;case"bbbbb":e=oe(H.DayPeriods,G.Narrow,ve.Standalone,!0);break;case"B":case"BB":case"BBB":e=oe(H.DayPeriods,G.Abbreviated,ve.Format,!0);break;case"BBBB":e=oe(H.DayPeriods,G.Wide,ve.Format,!0);break;case"BBBBB":e=oe(H.DayPeriods,G.Narrow,ve.Format,!0);break;case"h":e=be(T.Hours,1,-12);break;case"hh":e=be(T.Hours,2,-12);break;case"H":e=be(T.Hours,1);break;case"HH":e=be(T.Hours,2);break;case"m":e=be(T.Minutes,1);break;case"mm":e=be(T.Minutes,2);break;case"s":e=be(T.Seconds,1);break;case"ss":e=be(T.Seconds,2);break;case"S":e=be(T.FractionalSeconds,1);break;case"SS":e=be(T.FractionalSeconds,2);break;case"SSS":e=be(T.FractionalSeconds,3);break;case"Z":case"ZZ":case"ZZZ":e=Gs(Te.Short);break;case"ZZZZZ":e=Gs(Te.Extended);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":e=Gs(Te.ShortGMT);break;case"OOOO":case"ZZZZ":case"zzzz":e=Gs(Te.Long);break;default:return null}return wc[t]=e,e}(c);l+=d?d(o,n,u):"''"===c?"'":c.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),l}function Us(t,e,n){const r=new Date(0);return r.setFullYear(t,e,n),r.setHours(0,0,0),r}function pn(t,e){const n=function oT(t){return qe(t)[b.LocaleId]}(t);if(ti[n]=ti[n]||{},ti[n][e])return ti[n][e];let r="";switch(e){case"shortDate":r=js(t,ce.Short);break;case"mediumDate":r=js(t,ce.Medium);break;case"longDate":r=js(t,ce.Long);break;case"fullDate":r=js(t,ce.Full);break;case"shortTime":r=Bs(t,ce.Short);break;case"mediumTime":r=Bs(t,ce.Medium);break;case"longTime":r=Bs(t,ce.Long);break;case"fullTime":r=Bs(t,ce.Full);break;case"short":const o=pn(t,"shortTime"),i=pn(t,"shortDate");r=$s(Hs(t,ce.Short),[o,i]);break;case"medium":const s=pn(t,"mediumTime"),a=pn(t,"mediumDate");r=$s(Hs(t,ce.Medium),[s,a]);break;case"long":const u=pn(t,"longTime"),l=pn(t,"longDate");r=$s(Hs(t,ce.Long),[u,l]);break;case"full":const c=pn(t,"fullTime"),d=pn(t,"fullDate");r=$s(Hs(t,ce.Full),[c,d])}return r&&(ti[n][e]=r),r}function $s(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(n,r){return null!=e&&r in e?e[r]:n})),t}function Ft(t,e,n="-",r,o){let i="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,i=n));let s=String(t);for(;s.length0||a>-n)&&(a+=n),t===T.Hours)0===a&&-12===n&&(a=12);else if(t===T.FractionalSeconds)return function _T(t,e){return Ft(t,3).substr(0,e)}(a,e);const u=_t(s,A.MinusSign);return Ft(a,e,u,r,o)}}function oe(t,e,n=ve.Format,r=!1){return function(o,i){return function CT(t,e,n,r,o,i){switch(n){case H.Months:return function aT(t,e,n){const r=qe(t),i=Dt([r[b.MonthsFormat],r[b.MonthsStandalone]],e);return Dt(i,n)}(e,o,r)[t.getMonth()];case H.Days:return function sT(t,e,n){const r=qe(t),i=Dt([r[b.DaysFormat],r[b.DaysStandalone]],e);return Dt(i,n)}(e,o,r)[t.getDay()];case H.DayPeriods:const s=t.getHours(),a=t.getMinutes();if(i){const l=function dT(t){const e=qe(t);return Jy(e),(e[b.ExtraData][2]||[]).map(r=>"string"==typeof r?Cc(r):[Cc(r[0]),Cc(r[1])])}(e),c=function fT(t,e,n){const r=qe(t);Jy(r);const i=Dt([r[b.ExtraData][0],r[b.ExtraData][1]],e)||[];return Dt(i,n)||[]}(e,o,r),d=l.findIndex(f=>{if(Array.isArray(f)){const[h,p]=f,m=s>=h.hours&&a>=h.minutes,_=s0?Math.floor(o/60):Math.ceil(o/60);switch(t){case Te.Short:return(o>=0?"+":"")+Ft(s,2,i)+Ft(Math.abs(o%60),2,i);case Te.ShortGMT:return"GMT"+(o>=0?"+":"")+Ft(s,1,i);case Te.Long:return"GMT"+(o>=0?"+":"")+Ft(s,2,i)+":"+Ft(Math.abs(o%60),2,i);case Te.Extended:return 0===r?"Z":(o>=0?"+":"")+Ft(s,2,i)+":"+Ft(Math.abs(o%60),2,i);default:throw new Error(`Unknown zone width "${t}"`)}}}function Qy(t){return Us(t.getFullYear(),t.getMonth(),t.getDate()+(4-t.getDay()))}function bc(t,e=!1){return function(n,r){let o;if(e){const i=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+i)/7)}else{const i=Qy(n),s=function wT(t){const e=Us(t,0,1).getDay();return Us(t,0,1+(e<=4?4:11)-e)}(i.getFullYear()),a=i.getTime()-s.getTime();o=1+Math.round(a/6048e5)}return Ft(o,t,_t(r,A.MinusSign))}}function zs(t,e=!1){return function(n,r){return Ft(Qy(n).getFullYear(),t,_t(r,A.MinusSign),e)}}const wc={};function Zy(t,e){t=t.replace(/:/g,"");const n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function Ky(t){return t instanceof Date&&!isNaN(t.valueOf())}class Js{}let jT=(()=>{class t extends Js{constructor(n){super(),this.locale=n}getPluralCategory(n,r){switch(cT(r||this.locale)(n)){case Ce.Zero:return"zero";case Ce.One:return"one";case Ce.Two:return"two";case Ce.Few:return"few";case Ce.Many:return"many";default:return"other"}}}return t.\u0275fac=function(n){return new(n||t)(S(In))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();function tv(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===e)return decodeURIComponent(i)}return null}class UT{constructor(e,n,r,o){this.$implicit=e,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let Ic=(()=>{class t{constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;!this._differ&&n&&(this._differ=this._differs.find(n).create(this.ngForTrackBy))}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=this._viewContainer;n.forEachOperation((o,i,s)=>{if(null==o.previousIndex)r.createEmbeddedView(this._template,new UT(o.item,this._ngForOf,-1,-1),null===s?void 0:s);else if(null==s)r.remove(null===i?void 0:i);else if(null!==i){const a=r.get(i);r.move(a,s),nv(a,o)}});for(let o=0,i=r.length;o{nv(r.get(o.currentIndex),o)})}static ngTemplateContextGuard(n,r){return!0}}return t.\u0275fac=function(n){return new(n||t)(y(Nt),y(fn),y(ei))},t.\u0275dir=x({type:t,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),t})();function nv(t,e){t.context.$implicit=e.item}let Tc=(()=>{class t{constructor(n,r){this._viewContainer=n,this._context=new $T,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){rv("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){rv("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return t.\u0275fac=function(n){return new(n||t)(y(Nt),y(fn))},t.\u0275dir=x({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class $T{constructor(){this.$implicit=null,this.ngIf=null}}function rv(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${K(e)}'.`)}const ox=new j("DATE_PIPE_DEFAULT_TIMEZONE");let Rc=(()=>{class t{constructor(n,r){this.locale=n,this.defaultTimezone=r}transform(n,r="mediumDate",o,i){var s;if(null==n||""===n||n!=n)return null;try{return vT(n,r,i||this.locale,null!==(s=null!=o?o:this.defaultTimezone)&&void 0!==s?s:void 0)}catch(a){throw function Ot(t,e){return new W(2100,"")}()}}}return t.\u0275fac=function(n){return new(n||t)(y(In,16),y(ox,24))},t.\u0275pipe=Je({name:"date",type:t,pure:!0}),t})(),gx=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({providers:[{provide:Js,useClass:jT}]}),t})();let _x=(()=>{class t{}return t.\u0275prov=F({token:t,providedIn:"root",factory:()=>new Dx(S(at),window)}),t})();class Dx{constructor(e,n){this.document=e,this.window=n,this.offset=()=>[0,0]}setOffset(e){this.offset=Array.isArray(e)?()=>e:e}getScrollPosition(){return this.supportsScrolling()?[this.window.pageXOffset,this.window.pageYOffset]:[0,0]}scrollToPosition(e){this.supportsScrolling()&&this.window.scrollTo(e[0],e[1])}scrollToAnchor(e){if(!this.supportsScrolling())return;const n=function Cx(t,e){const n=t.getElementById(e)||t.getElementsByName(e)[0];if(n)return n;if("function"==typeof t.createTreeWalker&&t.body&&(t.body.createShadowRoot||t.body.attachShadow)){const r=t.createTreeWalker(t.body,NodeFilter.SHOW_ELEMENT);let o=r.currentNode;for(;o;){const i=o.shadowRoot;if(i){const s=i.getElementById(e)||i.querySelector(`[name="${e}"]`);if(s)return s}o=r.nextNode()}}return null}(this.document,e);n&&(this.scrollToElement(n),n.focus())}setHistoryScrollRestoration(e){if(this.supportScrollRestoration()){const n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=e)}}scrollToElement(e){const n=e.getBoundingClientRect(),r=n.left+this.window.pageXOffset,o=n.top+this.window.pageYOffset,i=this.offset();this.window.scrollTo(r-i[0],o-i[1])}supportScrollRestoration(){try{if(!this.supportsScrolling())return!1;const e=av(this.window.history)||av(Object.getPrototypeOf(this.window.history));return!(!e||!e.writable&&!e.set)}catch(e){return!1}}supportsScrolling(){try{return!!this.window&&!!this.window.scrollTo&&"pageXOffset"in this.window}catch(e){return!1}}}function av(t){return Object.getOwnPropertyDescriptor(t,"scrollRestoration")}class uv{}class Pc extends class bx extends class ZI{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function QI(t){Ls||(Ls=t)}(new Pc)}onAndCancel(e,n,r){return e.addEventListener(n,r,!1),()=>{e.removeEventListener(n,r,!1)}}dispatchEvent(e,n){e.dispatchEvent(n)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}getBaseHref(e){const n=function wx(){return ri=ri||document.querySelector("base"),ri?ri.getAttribute("href"):null}();return null==n?null:function Ex(t){Qs=Qs||document.createElement("a"),Qs.setAttribute("href",t);const e=Qs.pathname;return"/"===e.charAt(0)?e:`/${e}`}(n)}resetBaseElement(){ri=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return tv(document.cookie,e)}}let Qs,ri=null;const lv=new j("TRANSITION_ID"),Sx=[{provide:Os,useFactory:function Mx(t,e,n){return()=>{n.get(Zr).donePromise.then(()=>{const r=Jt(),o=e.querySelectorAll(`style[ng-transition="${t}"]`);for(let i=0;i{const i=e.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},Y.getAllAngularTestabilities=()=>e.getAllTestabilities(),Y.getAllAngularRootElements=()=>e.getAllRootElements(),Y.frameworkStabilizers||(Y.frameworkStabilizers=[]),Y.frameworkStabilizers.push(r=>{const o=Y.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(u){s=s||u,i--,0==i&&r(s)};o.forEach(function(u){u.whenStable(a)})})}findTestabilityInTree(e,n,r){if(null==n)return null;const o=e.getTestability(n);return null!=o?o:r?Jt().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null}}let Ax=(()=>{class t{build(){return new XMLHttpRequest}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const Zs=new j("EventManagerPlugins");let Ks=(()=>{class t{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>o.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let i=0;i{class t{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),r.add(o))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),oi=(()=>{class t extends dv{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,o){n.forEach(i=>{const s=this._doc.createElement("style");s.textContent=i,o.push(r.appendChild(s))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(fv),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(n,o,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(fv))}}return t.\u0275fac=function(n){return new(n||t)(S(at))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();function fv(t){Jt().remove(t)}const Vc={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/"},Lc=/%COMP%/g;function Ys(t,e,n){for(let r=0;r{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let jc=(()=>{class t{constructor(n,r,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new Bc(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case kt.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new Fx(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(n),o}case 1:case kt.ShadowDom:return new Ox(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const o=Ys(r.id,r.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(n){return new(n||t)(S(Ks),S(oi),S(Yo))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();class Bc{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,n){return n?document.createElementNS(Vc[n],e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,n){e.appendChild(n)}insertBefore(e,n,r){e&&e.insertBefore(n,r)}removeChild(e,n){e&&e.removeChild(n)}selectRootElement(e,n){let r="string"==typeof e?document.querySelector(e):e;if(!r)throw new Error(`The selector "${e}" did not match any elements`);return n||(r.textContent=""),r}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,n,r,o){if(o){n=o+":"+n;const i=Vc[o];i?e.setAttributeNS(i,n,r):e.setAttribute(n,r)}else e.setAttribute(n,r)}removeAttribute(e,n,r){if(r){const o=Vc[r];o?e.removeAttributeNS(o,n):e.removeAttribute(`${r}:${n}`)}else e.removeAttribute(n)}addClass(e,n){e.classList.add(n)}removeClass(e,n){e.classList.remove(n)}setStyle(e,n,r,o){o&(ot.DashCase|ot.Important)?e.style.setProperty(n,r,o&ot.Important?"important":""):e.style[n]=r}removeStyle(e,n,r){r&ot.DashCase?e.style.removeProperty(n):e.style[n]=""}setProperty(e,n,r){e[n]=r}setValue(e,n){e.nodeValue=n}listen(e,n,r){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,gv(r)):this.eventManager.addEventListener(e,n,gv(r))}}class Fx extends Bc{constructor(e,n,r,o){super(e),this.component=r;const i=Ys(o+"-"+r.id,r.styles,[]);n.addStyles(i),this.contentAttr=function xx(t){return"_ngcontent-%COMP%".replace(Lc,t)}(o+"-"+r.id),this.hostAttr=function Nx(t){return"_nghost-%COMP%".replace(Lc,t)}(o+"-"+r.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,n){const r=super.createElement(e,n);return super.setAttribute(r,this.contentAttr,""),r}}class Ox extends Bc{constructor(e,n,r,o){super(e),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=Ys(o.id,o.styles,[]);for(let s=0;s{class t extends cv{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return t.\u0275fac=function(n){return new(n||t)(S(at))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const yv=["alt","control","meta","shift"],Vx={"\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"},vv={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"},Lx={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let jx=(()=>{class t extends cv{constructor(n){super(n)}supports(n){return null!=t.parseEventName(n)}addEventListener(n,r,o){const i=t.parseEventName(r),s=t.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Jt().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=t._normalizeKey(r.pop());let s="";if(yv.forEach(u=>{const l=r.indexOf(u);l>-1&&(r.splice(l,1),s+=u+".")}),s+=i,0!=r.length||0===i.length)return null;const a={};return a.domEventName=o,a.fullKey=s,a}static getEventFullKey(n){let r="",o=function Bx(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&vv.hasOwnProperty(e)&&(e=vv[e]))}return Vx[e]||e}(n);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),yv.forEach(i=>{i!=o&&Lx[i](n)&&(r+=i+".")}),r+=o,r}static eventCallback(n,r,o){return i=>{t.getEventFullKey(i)===n&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){return"esc"===n?"escape":n}}return t.\u0275fac=function(n){return new(n||t)(S(at))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const Gx=Ey(BI,"browser",[{provide:Ps,useValue:"browser"},{provide:gy,useValue:function Hx(){Pc.makeCurrent(),kc.init()},multi:!0},{provide:at,useFactory:function $x(){return function JC(t){Za=t}(document),document},deps:[]}]),qx=[{provide:fl,useValue:"root"},{provide:Er,useFactory:function Ux(){return new Er},deps:[]},{provide:Zs,useClass:Px,multi:!0,deps:[at,Ie,Ps]},{provide:Zs,useClass:jx,multi:!0,deps:[at]},{provide:jc,useClass:jc,deps:[Ks,oi,Yo]},{provide:Fm,useExisting:jc},{provide:dv,useExisting:oi},{provide:oi,useClass:oi,deps:[at]},{provide:lc,useClass:lc,deps:[Ie]},{provide:Ks,useClass:Ks,deps:[Zs,Ie]},{provide:uv,useClass:Ax,deps:[]}];let zx=(()=>{class t{constructor(n){if(n)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}static withServerTransition(n){return{ngModule:t,providers:[{provide:Yo,useValue:n.appId},{provide:lv,useExisting:Yo},Sx]}}}return t.\u0275fac=function(n){return new(n||t)(S(t,12))},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({providers:qx,imports:[gx,WI]}),t})();function Xs(t,e){return new ie(n=>{const r=t.length;if(0===r)return void n.complete();const o=new Array(r);let i=0,s=0;for(let a=0;a{l||(l=!0,s++),o[a]=c},error:c=>n.error(c),complete:()=>{i++,(i===r||!l)&&(s===r&&n.next(e?e.reduce((c,d,f)=>(c[d]=o[f],c),{}):o),n.complete())}}))}})}"undefined"!=typeof window&&window;let Cv=(()=>{class t{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return t.\u0275fac=function(n){return new(n||t)(y(cn),y(st))},t.\u0275dir=x({type:t}),t})(),Zn=(()=>{class t extends Cv{}return t.\u0275fac=function(){let e;return function(r){return(e||(e=$e(t)))(r||t)}}(),t.\u0275dir=x({type:t,features:[X]}),t})();const Qt=new j("NgValueAccessor"),iN={provide:Qt,useExisting:ne(()=>ii),multi:!0},aN=new j("CompositionEventMode");let ii=(()=>{class t extends Cv{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function sN(){const t=Jt()?Jt().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(n){this.setProperty("value",null==n?"":n)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return t.\u0275fac=function(n){return new(n||t)(y(cn),y(st),y(aN,8))},t.\u0275dir=x({type:t,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){1&n&&Se("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[ue([iN]),X]}),t})();const je=new j("NgValidators"),Nn=new j("NgAsyncValidators");function Sv(t){return function xn(t){return null==t||0===t.length}(t.value)?{required:!0}:null}function si(t){return null}function Rv(t){return null!=t}function Fv(t){const e=Ho(t)?Oe(t):t;return Sl(e),e}function Ov(t){let e={};return t.forEach(n=>{e=null!=n?Object.assign(Object.assign({},e),n):e}),0===Object.keys(e).length?null:e}function Pv(t,e){return e.map(n=>n(t))}function kv(t){return t.map(e=>function lN(t){return!t.validate}(e)?e:n=>e.validate(n))}function Uc(t){return null!=t?function Vv(t){if(!t)return null;const e=t.filter(Rv);return 0==e.length?null:function(n){return Ov(Pv(n,e))}}(kv(t)):null}function $c(t){return null!=t?function Lv(t){if(!t)return null;const e=t.filter(Rv);return 0==e.length?null:function(n){return function rN(...t){if(1===t.length){const e=t[0];if(Ii(e))return Xs(e,null);if(Aa(e)&&Object.getPrototypeOf(e)===Object.prototype){const n=Object.keys(e);return Xs(n.map(r=>e[r]),n)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Xs(t=1===t.length&&Ii(t[0])?t[0]:t,null).pipe(Z(n=>e(...n)))}return Xs(t,null)}(Pv(n,e).map(Fv)).pipe(Z(Ov))}}(kv(t)):null}function jv(t,e){return null===t?[e]:Array.isArray(t)?[...t,e]:[t,e]}function Gc(t){return t?Array.isArray(t)?t:[t]:[]}function ea(t,e){return Array.isArray(t)?t.includes(e):t===e}function Uv(t,e){const n=Gc(e);return Gc(t).forEach(o=>{ea(n,o)||n.push(o)}),n}function $v(t,e){return Gc(e).filter(n=>!ea(t,n))}class Gv{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(e){this._rawValidators=e||[],this._composedValidatorFn=Uc(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=$c(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,n){return!!this.control&&this.control.hasError(e,n)}getError(e,n){return this.control?this.control.getError(e,n):null}}class Rn extends Gv{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class We extends Gv{get formDirective(){return null}get path(){return null}}class qv{constructor(e){this._cd=e}is(e){var n,r,o;return"submitted"===e?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(o=null===(r=this._cd)||void 0===r?void 0:r.control)||void 0===o?void 0:o[e])}}let qc=(()=>{class t extends qv{constructor(n){super(n)}}return t.\u0275fac=function(n){return new(n||t)(y(Rn,2))},t.\u0275dir=x({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&bs("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))},features:[X]}),t})(),zc=(()=>{class t extends qv{constructor(n){super(n)}}return t.\u0275fac=function(n){return new(n||t)(y(We,10))},t.\u0275dir=x({type:t,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(n,r){2&n&&bs("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))("ng-submitted",r.is("submitted"))},features:[X]}),t})();function ai(t,e){Qc(t,e),e.valueAccessor.writeValue(t.value),function yN(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&Wv(t,e)})}(t,e),function _N(t,e){const n=(r,o)=>{e.valueAccessor.writeValue(r),o&&e.viewToModelUpdate(r)};t.registerOnChange(n),e._registerOnDestroy(()=>{t._unregisterOnChange(n)})}(t,e),function vN(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&Wv(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),function mN(t,e){if(e.valueAccessor.setDisabledState){const n=r=>{e.valueAccessor.setDisabledState(r)};t.registerOnDisabledChange(n),e._registerOnDestroy(()=>{t._unregisterOnDisabledChange(n)})}}(t,e)}function oa(t,e){t.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(e)})}function Qc(t,e){const n=function Bv(t){return t._rawValidators}(t);null!==e.validator?t.setValidators(jv(n,e.validator)):"function"==typeof n&&t.setValidators([n]);const r=function Hv(t){return t._rawAsyncValidators}(t);null!==e.asyncValidator?t.setAsyncValidators(jv(r,e.asyncValidator)):"function"==typeof r&&t.setAsyncValidators([r]);const o=()=>t.updateValueAndValidity();oa(e._rawValidators,o),oa(e._rawAsyncValidators,o)}function Wv(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function sa(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const ui="VALID",aa="INVALID",Xr="PENDING",li="DISABLED";function Xc(t){return(ua(t)?t.validators:t)||null}function Zv(t){return Array.isArray(t)?Uc(t):t||null}function ed(t,e){return(ua(e)?e.asyncValidators:t)||null}function Kv(t){return Array.isArray(t)?$c(t):t||null}function ua(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}const td=t=>t instanceof rd;function Xv(t){return(t=>t instanceof n_)(t)?t.value:t.getRawValue()}function e_(t,e){const n=td(t),r=t.controls;if(!(n?Object.keys(r):r).length)throw new W(1e3,"");if(!r[e])throw new W(1001,"")}function t_(t,e){td(t),t._forEachChild((r,o)=>{if(void 0===e[o])throw new W(1002,"")})}class nd{constructor(e,n){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=n,this._composedValidatorFn=Zv(this._rawValidators),this._composedAsyncValidatorFn=Kv(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===ui}get invalid(){return this.status===aa}get pending(){return this.status==Xr}get disabled(){return this.status===li}get enabled(){return this.status!==li}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=Zv(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Kv(e)}addValidators(e){this.setValidators(Uv(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Uv(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators($v(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators($v(e,this._rawAsyncValidators))}hasValidator(e){return ea(this._rawValidators,e)}hasAsyncValidator(e){return ea(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(n=>{n.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=Xr,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const n=this._parentMarkedDirty(e.onlySelf);this.status=li,this.errors=null,this._forEachChild(r=>{r.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(e={}){const n=this._parentMarkedDirty(e.onlySelf);this.status=ui,this._forEachChild(r=>{r.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===ui||this.status===Xr)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(n=>n._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?li:ui}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=Xr,this._hasOwnPendingAsyncValidator=!0;const n=Fv(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,n={}){this.errors=e,this._updateControlsErrors(!1!==n.emitEvent)}get(e){return function wN(t,e,n){if(null==e||(Array.isArray(e)||(e=e.split(n)),Array.isArray(e)&&0===e.length))return null;let r=t;return e.forEach(o=>{r=td(r)?r.controls.hasOwnProperty(o)?r.controls[o]:null:(t=>t instanceof MN)(r)&&r.at(o)||null}),r}(this,e,".")}getError(e,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[e]:null}hasError(e,n){return!!this.getError(e,n)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new me,this.statusChanges=new me}_calculateStatus(){return this._allControlsDisabled()?li:this.errors?aa:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Xr)?Xr:this._anyControlsHaveStatus(aa)?aa:ui}_anyControlsHaveStatus(e){return this._anyControls(n=>n.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){ua(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class n_ extends nd{constructor(e=null,n,r){super(Xc(n),ed(r,n)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),ua(n)&&n.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(e)?e.value:e)}setValue(e,n={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(e,n={}){this.setValue(e,n)}reset(e=this.defaultValue,n={}){this._applyFormState(e),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){sa(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){sa(this._onDisabledChange,e)}_forEachChild(e){}_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(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class rd extends nd{constructor(e,n,r){super(Xc(n),ed(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,n){return this.controls[e]?this.controls[e]:(this.controls[e]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(e,n,r={}){this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],n&&this.registerControl(e,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,n={}){t_(this,e),Object.keys(e).forEach(r=>{e_(this,r),this.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){null!=e&&(Object.keys(e).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e={},n={}){this._forEachChild((r,o)=>{r.reset(e[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(e,n,r)=>(e[r]=Xv(n),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(n=>{const r=this.controls[n];r&&e(r,n)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const n of Object.keys(this.controls)){const r=this.controls[n];if(this.contains(n)&&e(r))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,n,r)=>((n.enabled||this.disabled)&&(e[r]=n.value),e))}_reduceChildren(e,n){let r=e;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class MN extends nd{constructor(e,n,r){super(Xc(n),ed(r,n)),this.controls=e,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,n={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(e,n,r={}){this.controls.splice(e,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(e,n={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(e,n,r={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),n&&(this.controls.splice(e,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,n={}){t_(this,e),e.forEach((r,o)=>{e_(this,o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(e,n={}){null!=e&&(e.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(e=[],n={}){this._forEachChild((r,o)=>{r.reset(e[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(e=>Xv(e))}clear(e={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((n,r)=>!!r._syncPendingControls()||n,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((n,r)=>{e(n,r)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(n=>n.enabled&&e(n))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const SN={provide:We,useExisting:ne(()=>di)},ci=(()=>Promise.resolve(null))();let di=(()=>{class t extends We{constructor(n,r){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new me,this.form=new rd({},Uc(n),$c(r))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(n){ci.then(()=>{const r=this._findContainer(n.path);n.control=r.registerControl(n.name,n.control),ai(n.control,n),n.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(n)})}getControl(n){return this.form.get(n.path)}removeControl(n){ci.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name),sa(this._directives,n)})}addFormGroup(n){ci.then(()=>{const r=this._findContainer(n.path),o=new rd({});(function Jv(t,e){Qc(t,e)})(o,n),r.registerControl(n.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(n){ci.then(()=>{const r=this._findContainer(n.path);r&&r.removeControl(n.name)})}getFormGroup(n){return this.form.get(n.path)}updateModel(n,r){ci.then(()=>{this.form.get(n.path).setValue(r)})}setValue(n){this.control.setValue(n)}onSubmit(n){return this.submitted=!0,function Qv(t,e){t._syncPendingControls(),e.forEach(n=>{const r=n.control;"submit"===r.updateOn&&r._pendingChange&&(n.viewToModelUpdate(r._pendingValue),r._pendingChange=!1)})}(this.form,this._directives),this.ngSubmit.emit(n),!1}onReset(){this.resetForm()}resetForm(n){this.form.reset(n),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(n){return n.pop(),n.length?this.form.get(n):this.form}}return t.\u0275fac=function(n){return new(n||t)(y(je,10),y(Nn,10))},t.\u0275dir=x({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(n,r){1&n&&Se("submit",function(i){return r.onSubmit(i)})("reset",function(){return r.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[ue([SN]),X]}),t})();const IN={provide:Rn,useExisting:ne(()=>la)},i_=(()=>Promise.resolve(null))();let la=(()=>{class t extends Rn{constructor(n,r,o,i){super(),this.control=new n_,this._registered=!1,this.update=new me,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function Kc(t,e){if(!e)return null;let n,r,o;return Array.isArray(e),e.forEach(i=>{i.constructor===ii?n=i:function bN(t){return Object.getPrototypeOf(t.constructor)===Zn}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in n&&this._updateDisabled(n),function Zc(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function na(t,e){return[...e.path,t]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){ai(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){i_.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1})})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=""===r||r&&"false"!==r;i_.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable()})}}return t.\u0275fac=function(n){return new(n||t)(y(We,9),y(je,10),y(Nn,10),y(Qt,10))},t.\u0275dir=x({type:t,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[ue([IN]),X,tt]}),t})(),od=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=x({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t})(),a_=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({}),t})();const LN={provide:Qt,useExisting:ne(()=>fi),multi:!0};function p_(t,e){return null==t?`${e}`:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let fi=(()=>{class t extends Zn{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){this.value=n;const r=this._getOptionId(n);null==r&&this.setProperty("selectedIndex",-1);const o=p_(r,n);this.setProperty("value",o)}registerOnChange(n){this.onChange=r=>{this.value=this._getOptionValue(r),n(this.value)}}_registerOption(){return(this._idCounter++).toString()}_getOptionId(n){for(const r of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(r),n))return r;return null}_getOptionValue(n){const r=function jN(t){return t.split(":")[0]}(n);return this._optionMap.has(r)?this._optionMap.get(r):n}}return t.\u0275fac=function(){let e;return function(r){return(e||(e=$e(t)))(r||t)}}(),t.\u0275dir=x({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(n,r){1&n&&Se("change",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},inputs:{compareWith:"compareWith"},features:[ue([LN]),X]}),t})(),ud=(()=>{class t{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption())}set ngValue(n){null!=this._select&&(this._select._optionMap.set(this.id,n),this._setElementValue(p_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._setElementValue(n),this._select&&this._select.writeValue(this._select.value)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(n){return new(n||t)(y(st),y(cn),y(fi,9))},t.\u0275dir=x({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})();const BN={provide:Qt,useExisting:ne(()=>ld),multi:!0};function g_(t,e){return null==t?`${e}`:("string"==typeof e&&(e=`'${e}'`),e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}let ld=(()=>{class t extends Zn{constructor(){super(...arguments),this._optionMap=new Map,this._idCounter=0,this._compareWith=Object.is}set compareWith(n){this._compareWith=n}writeValue(n){let r;if(this.value=n,Array.isArray(n)){const o=n.map(i=>this._getOptionId(i));r=(i,s)=>{i._setSelected(o.indexOf(s.toString())>-1)}}else r=(o,i)=>{o._setSelected(!1)};this._optionMap.forEach(r)}registerOnChange(n){this.onChange=r=>{const o=[],i=r.selectedOptions;if(void 0!==i){const s=i;for(let a=0;a{class t{constructor(n,r,o){this._element=n,this._renderer=r,this._select=o,this._select&&(this.id=this._select._registerOption(this))}set ngValue(n){null!=this._select&&(this._value=n,this._setElementValue(g_(this.id,n)),this._select.writeValue(this._select.value))}set value(n){this._select?(this._value=n,this._setElementValue(g_(this.id,n)),this._select.writeValue(this._select.value)):this._setElementValue(n)}_setElementValue(n){this._renderer.setProperty(this._element.nativeElement,"value",n)}_setSelected(n){this._renderer.setProperty(this._element.nativeElement,"selected",n)}ngOnDestroy(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}}return t.\u0275fac=function(n){return new(n||t)(y(st),y(cn),y(ld,9))},t.\u0275dir=x({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t})(),eo=(()=>{class t{constructor(){this._validator=si}ngOnChanges(n){if(this.inputName in n){const r=this.normalizeInput(n[this.inputName].currentValue);this._enabled=this.enabled(r),this._validator=this._enabled?this.createValidator(r):si,this._onChange&&this._onChange()}}validate(n){return this._validator(n)}registerOnValidatorChange(n){this._onChange=n}enabled(n){return null!=n}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275dir=x({type:t,features:[tt]}),t})();const qN={provide:je,useExisting:ne(()=>hi),multi:!0};let hi=(()=>{class t extends eo{constructor(){super(...arguments),this.inputName="required",this.normalizeInput=n=>function UN(t){return null!=t&&!1!==t&&"false"!=`${t}`}(n),this.createValidator=n=>Sv}enabled(n){return n}}return t.\u0275fac=function(){let e;return function(r){return(e||(e=$e(t)))(r||t)}}(),t.\u0275dir=x({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(n,r){2&n&&qt("required",r._enabled?"":null)},inputs:{required:"required"},features:[ue([qN]),X]}),t})(),KN=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({imports:[[a_]]}),t})(),YN=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({imports:[KN]}),t})();function k(...t){let e=t[t.length-1];return Ri(e)?(t.pop(),Ta(t,e)):Fa(t)}function to(t,e){return Ne(t,e,1)}function Kn(t,e){return function(r){return r.lift(new XN(t,e))}}class XN{constructor(e,n){this.predicate=e,this.thisArg=n}call(e,n){return n.subscribe(new eR(e,this.predicate,this.thisArg))}}class eR extends le{constructor(e,n,r){super(e),this.predicate=n,this.thisArg=r,this.count=0}_next(e){let n;try{n=this.predicate.call(this.thisArg,e,this.count++)}catch(r){return void this.destination.error(r)}n&&this.destination.next(e)}}class M_{}class S_{}class gn{constructor(e){this.normalizedNames=new Map,this.lazyUpdate=null,e?this.lazyInit="string"==typeof e?()=>{this.headers=new Map,e.split("\n").forEach(n=>{const r=n.indexOf(":");if(r>0){const o=n.slice(0,r),i=o.toLowerCase(),s=n.slice(r+1).trim();this.maybeSetNormalizedName(o,i),this.headers.has(i)?this.headers.get(i).push(s):this.headers.set(i,[s])}})}:()=>{this.headers=new Map,Object.keys(e).forEach(n=>{let r=e[n];const o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(this.headers.set(o,r),this.maybeSetNormalizedName(n,o))})}:this.headers=new Map}has(e){return this.init(),this.headers.has(e.toLowerCase())}get(e){this.init();const n=this.headers.get(e.toLowerCase());return n&&n.length>0?n[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(e){return this.init(),this.headers.get(e.toLowerCase())||null}append(e,n){return this.clone({name:e,value:n,op:"a"})}set(e,n){return this.clone({name:e,value:n,op:"s"})}delete(e,n){return this.clone({name:e,value:n,op:"d"})}maybeSetNormalizedName(e,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,e)}init(){this.lazyInit&&(this.lazyInit instanceof gn?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(e=>this.applyUpdate(e)),this.lazyUpdate=null))}copyFrom(e){e.init(),Array.from(e.headers.keys()).forEach(n=>{this.headers.set(n,e.headers.get(n)),this.normalizedNames.set(n,e.normalizedNames.get(n))})}clone(e){const n=new gn;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof gn?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n}applyUpdate(e){const n=e.name.toLowerCase();switch(e.op){case"a":case"s":let r=e.value;if("string"==typeof r&&(r=[r]),0===r.length)return;this.maybeSetNormalizedName(e.name,n);const o=("a"===e.op?this.headers.get(n):void 0)||[];o.push(...r),this.headers.set(n,o);break;case"d":const i=e.value;if(i){let s=this.headers.get(n);if(!s)return;s=s.filter(a=>-1===i.indexOf(a)),0===s.length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,s)}else this.headers.delete(n),this.normalizedNames.delete(n)}}forEach(e){this.init(),Array.from(this.normalizedNames.keys()).forEach(n=>e(this.normalizedNames.get(n),this.headers.get(n)))}}class tR{encodeKey(e){return A_(e)}encodeValue(e){return A_(e)}decodeKey(e){return decodeURIComponent(e)}decodeValue(e){return decodeURIComponent(e)}}const rR=/%(\d[a-f0-9])/gi,oR={40:"@","3A":":",24:"$","2C":",","3B":";","2B":"+","3D":"=","3F":"?","2F":"/"};function A_(t){return encodeURIComponent(t).replace(rR,(e,n)=>{var r;return null!==(r=oR[n])&&void 0!==r?r:e})}function I_(t){return`${t}`}class Fn{constructor(e={}){if(this.updates=null,this.cloneFrom=null,this.encoder=e.encoder||new tR,e.fromString){if(e.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function nR(t,e){const n=new Map;return t.length>0&&t.replace(/^\?/,"").split("&").forEach(o=>{const i=o.indexOf("="),[s,a]=-1==i?[e.decodeKey(o),""]:[e.decodeKey(o.slice(0,i)),e.decodeValue(o.slice(i+1))],u=n.get(s)||[];u.push(a),n.set(s,u)}),n}(e.fromString,this.encoder)}else e.fromObject?(this.map=new Map,Object.keys(e.fromObject).forEach(n=>{const r=e.fromObject[n];this.map.set(n,Array.isArray(r)?r:[r])})):this.map=null}has(e){return this.init(),this.map.has(e)}get(e){this.init();const n=this.map.get(e);return n?n[0]:null}getAll(e){return this.init(),this.map.get(e)||null}keys(){return this.init(),Array.from(this.map.keys())}append(e,n){return this.clone({param:e,value:n,op:"a"})}appendAll(e){const n=[];return Object.keys(e).forEach(r=>{const o=e[r];Array.isArray(o)?o.forEach(i=>{n.push({param:r,value:i,op:"a"})}):n.push({param:r,value:o,op:"a"})}),this.clone(n)}set(e,n){return this.clone({param:e,value:n,op:"s"})}delete(e,n){return this.clone({param:e,value:n,op:"d"})}toString(){return this.init(),this.keys().map(e=>{const n=this.encoder.encodeKey(e);return this.map.get(e).map(r=>n+"="+this.encoder.encodeValue(r)).join("&")}).filter(e=>""!==e).join("&")}clone(e){const n=new Fn({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat(e),n}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(e=>this.map.set(e,this.cloneFrom.map.get(e))),this.updates.forEach(e=>{switch(e.op){case"a":case"s":const n=("a"===e.op?this.map.get(e.param):void 0)||[];n.push(I_(e.value)),this.map.set(e.param,n);break;case"d":if(void 0===e.value){this.map.delete(e.param);break}{let r=this.map.get(e.param)||[];const o=r.indexOf(I_(e.value));-1!==o&&r.splice(o,1),r.length>0?this.map.set(e.param,r):this.map.delete(e.param)}}}),this.cloneFrom=this.updates=null)}}class iR{constructor(){this.map=new Map}set(e,n){return this.map.set(e,n),this}get(e){return this.map.has(e)||this.map.set(e,e.defaultValue()),this.map.get(e)}delete(e){return this.map.delete(e),this}has(e){return this.map.has(e)}keys(){return this.map.keys()}}function T_(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function x_(t){return"undefined"!=typeof Blob&&t instanceof Blob}function N_(t){return"undefined"!=typeof FormData&&t instanceof FormData}class pi{constructor(e,n,r,o){let i;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=e.toUpperCase(),function sR(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||o?(this.body=void 0!==r?r:null,i=o):i=r,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.context&&(this.context=i.context),i.params&&(this.params=i.params)),this.headers||(this.headers=new gn),this.context||(this.context=new iR),this.params){const s=this.params.toString();if(0===s.length)this.urlWithParams=n;else{const a=n.indexOf("?");this.urlWithParams=n+(-1===a?"?":af.set(h,e.setHeaders[h]),l)),e.setParams&&(c=Object.keys(e.setParams).reduce((f,h)=>f.set(h,e.setParams[h]),c)),new pi(r,o,s,{params:c,headers:l,context:d,reportProgress:u,responseType:i,withCredentials:a})}}var we=(()=>((we=we||{})[we.Sent=0]="Sent",we[we.UploadProgress=1]="UploadProgress",we[we.ResponseHeader=2]="ResponseHeader",we[we.DownloadProgress=3]="DownloadProgress",we[we.Response=4]="Response",we[we.User=5]="User",we))();class dd{constructor(e,n=200,r="OK"){this.headers=e.headers||new gn,this.status=void 0!==e.status?e.status:n,this.statusText=e.statusText||r,this.url=e.url||null,this.ok=this.status>=200&&this.status<300}}class fd extends dd{constructor(e={}){super(e),this.type=we.ResponseHeader}clone(e={}){return new fd({headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class ca extends dd{constructor(e={}){super(e),this.type=we.Response,this.body=void 0!==e.body?e.body:null}clone(e={}){return new ca({body:void 0!==e.body?e.body:this.body,headers:e.headers||this.headers,status:void 0!==e.status?e.status:this.status,statusText:e.statusText||this.statusText,url:e.url||this.url||void 0})}}class R_ extends dd{constructor(e){super(e,0,"Unknown Error"),this.name="HttpErrorResponse",this.ok=!1,this.message=this.status>=200&&this.status<300?`Http failure during parsing for ${e.url||"(unknown url)"}`:`Http failure response for ${e.url||"(unknown url)"}: ${e.status} ${e.statusText}`,this.error=e.error||null}}function hd(t,e){return{body:e,headers:t.headers,context:t.context,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let gi=(()=>{class t{constructor(n){this.handler=n}request(n,r,o={}){let i;if(n instanceof pi)i=n;else{let u,l;u=o.headers instanceof gn?o.headers:new gn(o.headers),o.params&&(l=o.params instanceof Fn?o.params:new Fn({fromObject:o.params})),i=new pi(n,r,void 0!==o.body?o.body:null,{headers:u,context:o.context,params:l,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials})}const s=k(i).pipe(to(u=>this.handler.handle(u)));if(n instanceof pi||"events"===o.observe)return s;const a=s.pipe(Kn(u=>u instanceof ca));switch(o.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return a.pipe(Z(u=>{if(null!==u.body&&!(u.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return u.body}));case"blob":return a.pipe(Z(u=>{if(null!==u.body&&!(u.body instanceof Blob))throw new Error("Response is not a Blob.");return u.body}));case"text":return a.pipe(Z(u=>{if(null!==u.body&&"string"!=typeof u.body)throw new Error("Response is not a string.");return u.body}));default:return a.pipe(Z(u=>u.body))}case"response":return a;default:throw new Error(`Unreachable: unhandled observe type ${o.observe}}`)}}delete(n,r={}){return this.request("DELETE",n,r)}get(n,r={}){return this.request("GET",n,r)}head(n,r={}){return this.request("HEAD",n,r)}jsonp(n,r){return this.request("JSONP",n,{params:(new Fn).append(r,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(n,r={}){return this.request("OPTIONS",n,r)}patch(n,r,o={}){return this.request("PATCH",n,hd(o,r))}post(n,r,o={}){return this.request("POST",n,hd(o,r))}put(n,r,o={}){return this.request("PUT",n,hd(o,r))}}return t.\u0275fac=function(n){return new(n||t)(S(M_))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();class F_{constructor(e,n){this.next=e,this.interceptor=n}handle(e){return this.interceptor.intercept(e,this.next)}}const O_=new j("HTTP_INTERCEPTORS");let uR=(()=>{class t{intercept(n,r){return r.handle(n)}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const lR=/^\)\]\}',?\n/;let P_=(()=>{class t{constructor(n){this.xhrFactory=n}handle(n){if("JSONP"===n.method)throw new Error("Attempted to construct Jsonp request without HttpClientJsonpModule installed.");return new ie(r=>{const o=this.xhrFactory.build();if(o.open(n.method,n.urlWithParams),n.withCredentials&&(o.withCredentials=!0),n.headers.forEach((h,p)=>o.setRequestHeader(h,p.join(","))),n.headers.has("Accept")||o.setRequestHeader("Accept","application/json, text/plain, */*"),!n.headers.has("Content-Type")){const h=n.detectContentTypeHeader();null!==h&&o.setRequestHeader("Content-Type",h)}if(n.responseType){const h=n.responseType.toLowerCase();o.responseType="json"!==h?h:"text"}const i=n.serializeBody();let s=null;const a=()=>{if(null!==s)return s;const h=1223===o.status?204:o.status,p=o.statusText||"OK",m=new gn(o.getAllResponseHeaders()),_=function cR(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(o)||n.url;return s=new fd({headers:m,status:h,statusText:p,url:_}),s},u=()=>{let{headers:h,status:p,statusText:m,url:_}=a(),D=null;204!==p&&(D=void 0===o.response?o.responseText:o.response),0===p&&(p=D?200:0);let g=p>=200&&p<300;if("json"===n.responseType&&"string"==typeof D){const w=D;D=D.replace(lR,"");try{D=""!==D?JSON.parse(D):null}catch(I){D=w,g&&(g=!1,D={error:I,text:D})}}g?(r.next(new ca({body:D,headers:h,status:p,statusText:m,url:_||void 0})),r.complete()):r.error(new R_({error:D,headers:h,status:p,statusText:m,url:_||void 0}))},l=h=>{const{url:p}=a(),m=new R_({error:h,status:o.status||0,statusText:o.statusText||"Unknown Error",url:p||void 0});r.error(m)};let c=!1;const d=h=>{c||(r.next(a()),c=!0);let p={type:we.DownloadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),"text"===n.responseType&&!!o.responseText&&(p.partialText=o.responseText),r.next(p)},f=h=>{let p={type:we.UploadProgress,loaded:h.loaded};h.lengthComputable&&(p.total=h.total),r.next(p)};return o.addEventListener("load",u),o.addEventListener("error",l),o.addEventListener("timeout",l),o.addEventListener("abort",l),n.reportProgress&&(o.addEventListener("progress",d),null!==i&&o.upload&&o.upload.addEventListener("progress",f)),o.send(i),r.next({type:we.Sent}),()=>{o.removeEventListener("error",l),o.removeEventListener("abort",l),o.removeEventListener("load",u),o.removeEventListener("timeout",l),n.reportProgress&&(o.removeEventListener("progress",d),null!==i&&o.upload&&o.upload.removeEventListener("progress",f)),o.readyState!==o.DONE&&o.abort()}})}}return t.\u0275fac=function(n){return new(n||t)(S(uv))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const pd=new j("XSRF_COOKIE_NAME"),gd=new j("XSRF_HEADER_NAME");class k_{}let dR=(()=>{class t{constructor(n,r,o){this.doc=n,this.platform=r,this.cookieName=o,this.lastCookieString="",this.lastToken=null,this.parseCount=0}getToken(){if("server"===this.platform)return null;const n=this.doc.cookie||"";return n!==this.lastCookieString&&(this.parseCount++,this.lastToken=tv(n,this.cookieName),this.lastCookieString=n),this.lastToken}}return t.\u0275fac=function(n){return new(n||t)(S(at),S(Ps),S(pd))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),md=(()=>{class t{constructor(n,r){this.tokenService=n,this.headerName=r}intercept(n,r){const o=n.url.toLowerCase();if("GET"===n.method||"HEAD"===n.method||o.startsWith("http://")||o.startsWith("https://"))return r.handle(n);const i=this.tokenService.getToken();return null!==i&&!n.headers.has(this.headerName)&&(n=n.clone({headers:n.headers.set(this.headerName,i)})),r.handle(n)}}return t.\u0275fac=function(n){return new(n||t)(S(k_),S(gd))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),fR=(()=>{class t{constructor(n,r){this.backend=n,this.injector=r,this.chain=null}handle(n){if(null===this.chain){const r=this.injector.get(O_,[]);this.chain=r.reduceRight((o,i)=>new F_(o,i),this.backend)}return this.chain.handle(n)}}return t.\u0275fac=function(n){return new(n||t)(S(S_),S(Re))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),hR=(()=>{class t{static disable(){return{ngModule:t,providers:[{provide:md,useClass:uR}]}}static withOptions(n={}){return{ngModule:t,providers:[n.cookieName?{provide:pd,useValue:n.cookieName}:[],n.headerName?{provide:gd,useValue:n.headerName}:[]]}}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({providers:[md,{provide:O_,useExisting:md,multi:!0},{provide:k_,useClass:dR},{provide:pd,useValue:"XSRF-TOKEN"},{provide:gd,useValue:"X-XSRF-TOKEN"}]}),t})(),pR=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({providers:[gi,{provide:M_,useClass:fR},P_,{provide:S_,useExisting:P_}],imports:[[hR.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t})();class Pt extends Yt{constructor(e){super(),this._value=e}get value(){return this.getValue()}_subscribe(e){const n=super._subscribe(e);return n&&!n.closed&&e.next(this._value),n}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new ir;return this._value}next(e){super.next(this._value=e)}}class gR extends le{notifyNext(e,n,r,o,i){this.destination.next(n)}notifyError(e,n){this.destination.error(e)}notifyComplete(e){this.destination.complete()}}class mR extends le{constructor(e,n,r){super(),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}_next(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}_error(e){this.parent.notifyError(e,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function yR(t,e,n,r,o=new mR(t,n,r)){if(!o.closed)return e instanceof ie?e.subscribe(o):Ia(e)(o)}const V_={};class _R{constructor(e){this.resultSelector=e}call(e,n){return n.subscribe(new DR(e,this.resultSelector))}}class DR extends gR{constructor(e,n){super(e),this.resultSelector=n,this.active=0,this.values=[],this.observables=[]}_next(e){this.values.push(V_),this.observables.push(e)}_complete(){const e=this.observables,n=e.length;if(0===n)this.destination.complete();else{this.active=n,this.toRespond=n;for(let r=0;r{function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t})();function yd(...t){return function CR(){return lo(1)}()(k(...t))}const no=new ie(t=>t.complete());function vd(t){return t?function bR(t){return new ie(e=>t.schedule(()=>e.complete()))}(t):no}function L_(t){return new ie(e=>{let n;try{n=t()}catch(o){return void e.error(o)}return(n?Oe(n):vd()).subscribe(e)})}function On(t,e){return"function"==typeof e?n=>n.pipe(On((r,o)=>Oe(t(r,o)).pipe(Z((i,s)=>e(r,i,o,s))))):n=>n.lift(new wR(t))}class wR{constructor(e){this.project=e}call(e,n){return n.subscribe(new ER(e,this.project))}}class ER extends Na{constructor(e,n){super(e),this.project=n,this.index=0}_next(e){let n;const r=this.index++;try{n=this.project(e,r)}catch(o){return void this.destination.error(o)}this._innerSub(n)}_innerSub(e){const n=this.innerSubscription;n&&n.unsubscribe();const r=new xa(this),o=this.destination;o.add(r),this.innerSubscription=Ra(e,r),this.innerSubscription!==r&&o.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const j_=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function _d(t){return e=>0===t?vd():e.lift(new MR(t))}class MR{constructor(e){if(this.total=e,this.total<0)throw new j_}call(e,n){return n.subscribe(new SR(e,this.total))}}class SR extends le{constructor(e,n){super(e),this.total=n,this.count=0}_next(e){const n=this.total,r=++this.count;r<=n&&(this.destination.next(e),r===n&&(this.destination.complete(),this.unsubscribe()))}}function B_(t,e){let n=!1;return arguments.length>=2&&(n=!0),function(o){return o.lift(new IR(t,e,n))}}class IR{constructor(e,n,r=!1){this.accumulator=e,this.seed=n,this.hasSeed=r}call(e,n){return n.subscribe(new TR(e,this.accumulator,this.seed,this.hasSeed))}}class TR extends le{constructor(e,n,r,o){super(e),this.accumulator=n,this._seed=r,this.hasSeed=o,this.index=0}get seed(){return this._seed}set seed(e){this.hasSeed=!0,this._seed=e}_next(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)}_tryNext(e){const n=this.index++;let r;try{r=this.accumulator(this.seed,e,n)}catch(o){this.destination.error(o)}this.seed=r,this.destination.next(r)}}function Yn(t){return function(n){const r=new xR(t),o=n.lift(r);return r.caught=o}}class xR{constructor(e){this.selector=e}call(e,n){return n.subscribe(new NR(e,this.selector,this.caught))}}class NR extends Na{constructor(e,n,r){super(e),this.selector=n,this.caught=r}error(e){if(!this.isStopped){let n;try{n=this.selector(e,this.caught)}catch(i){return void super.error(i)}this._unsubscribeAndRecycle();const r=new xa(this);this.add(r);const o=Ra(n,r);o!==r&&this.add(o)}}}function Dd(t){return function(n){return 0===t?vd():n.lift(new RR(t))}}class RR{constructor(e){if(this.total=e,this.total<0)throw new j_}call(e,n){return n.subscribe(new FR(e,this.total))}}class FR extends le{constructor(e,n){super(e),this.total=n,this.ring=new Array,this.count=0}_next(e){const n=this.ring,r=this.total,o=this.count++;n.length0){const r=this.count>=this.total?this.total:this.count,o=this.ring;for(let i=0;ie.lift(new OR(t))}class OR{constructor(e){this.errorFactory=e}call(e,n){return n.subscribe(new PR(e,this.errorFactory))}}class PR extends le{constructor(e,n){super(e),this.errorFactory=n,this.hasValue=!1}_next(e){this.hasValue=!0,this.destination.next(e)}_complete(){if(this.hasValue)return this.destination.complete();{let e;try{e=this.errorFactory()}catch(n){e=n}this.destination.error(e)}}}function kR(){return new da}function U_(t=null){return e=>e.lift(new VR(t))}class VR{constructor(e){this.defaultValue=e}call(e,n){return n.subscribe(new LR(e,this.defaultValue))}}class LR extends le{constructor(e,n){super(e),this.defaultValue=n,this.isEmpty=!0}_next(e){this.isEmpty=!1,this.destination.next(e)}_complete(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()}}function ro(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Kn((o,i)=>t(o,i,r)):Ni,_d(1),n?U_(e):H_(()=>new da))}function Pn(){}function ut(t,e,n){return function(o){return o.lift(new BR(t,e,n))}}class BR{constructor(e,n,r){this.nextOrObserver=e,this.error=n,this.complete=r}call(e,n){return n.subscribe(new HR(e,this.nextOrObserver,this.error,this.complete))}}class HR extends le{constructor(e,n,r,o){super(e),this._tapNext=Pn,this._tapError=Pn,this._tapComplete=Pn,this._tapError=r||Pn,this._tapComplete=o||Pn,Ln(n)?(this._context=this,this._tapNext=n):n&&(this._context=n,this._tapNext=n.next||Pn,this._tapError=n.error||Pn,this._tapComplete=n.complete||Pn)}_next(e){try{this._tapNext.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(n){return void this.destination.error(n)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}class $R{constructor(e){this.callback=e}call(e,n){return n.subscribe(new GR(e,this.callback))}}class GR extends le{constructor(e,n){super(e),this.add(new de(n))}}class mn{constructor(e,n){this.id=e,this.url=n}}class Cd extends mn{constructor(e,n,r="imperative",o=null){super(e,n),this.navigationTrigger=r,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}}class mi extends mn{constructor(e,n,r){super(e,n),this.urlAfterRedirects=r}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}}class $_ extends mn{constructor(e,n,r){super(e,n),this.reason=r}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}}class qR extends mn{constructor(e,n,r){super(e,n),this.error=r}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}}class zR extends mn{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class WR extends mn{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class JR extends mn{constructor(e,n,r,o,i){super(e,n),this.urlAfterRedirects=r,this.state=o,this.shouldActivate=i}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}}class QR extends mn{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class ZR extends mn{constructor(e,n,r,o){super(e,n),this.urlAfterRedirects=r,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}}class G_{constructor(e){this.route=e}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}}class q_{constructor(e){this.route=e}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}}class KR{constructor(e){this.snapshot=e}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class YR{constructor(e){this.snapshot=e}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class XR{constructor(e){this.snapshot=e}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class eF{constructor(e){this.snapshot=e}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}}class z_{constructor(e,n,r){this.routerEvent=e,this.position=n,this.anchor=r}toString(){return`Scroll(anchor: '${this.anchor}', position: '${this.position?`${this.position[0]}, ${this.position[1]}`:null}')`}}const $="primary";class tF{constructor(e){this.params=e||{}}has(e){return Object.prototype.hasOwnProperty.call(this.params,e)}get(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n[0]:n}return null}getAll(e){if(this.has(e)){const n=this.params[e];return Array.isArray(n)?n:[n]}return[]}get keys(){return Object.keys(this.params)}}function oo(t){return new tF(t)}const W_="ngNavigationCancelingError";function bd(t){const e=Error("NavigationCancelingError: "+t);return e[W_]=!0,e}function rF(t,e,n){const r=n.path.split("/");if(r.length>t.length||"full"===n.pathMatch&&(e.hasChildren()||r.lengthr[i]===o)}return t===e}function Q_(t){return Array.prototype.concat.apply([],t)}function Z_(t){return t.length>0?t[t.length-1]:null}function Fe(t,e){for(const n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Kt(t){return Sl(t)?t:Ho(t)?Oe(Promise.resolve(t)):k(t)}const sF={exact:function X_(t,e,n){if(!er(t.segments,e.segments)||!fa(t.segments,e.segments,n)||t.numberOfChildren!==e.numberOfChildren)return!1;for(const r in e.children)if(!t.children[r]||!X_(t.children[r],e.children[r],n))return!1;return!0},subset:eD},K_={exact:function aF(t,e){return Zt(t,e)},subset:function uF(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(n=>J_(t[n],e[n]))},ignored:()=>!0};function Y_(t,e,n){return sF[n.paths](t.root,e.root,n.matrixParams)&&K_[n.queryParams](t.queryParams,e.queryParams)&&!("exact"===n.fragment&&t.fragment!==e.fragment)}function eD(t,e,n){return tD(t,e,e.segments,n)}function tD(t,e,n,r){if(t.segments.length>n.length){const o=t.segments.slice(0,n.length);return!(!er(o,n)||e.hasChildren()||!fa(o,n,r))}if(t.segments.length===n.length){if(!er(t.segments,n)||!fa(t.segments,n,r))return!1;for(const o in e.children)if(!t.children[o]||!eD(t.children[o],e.children[o],r))return!1;return!0}{const o=n.slice(0,t.segments.length),i=n.slice(t.segments.length);return!!(er(t.segments,o)&&fa(t.segments,o,r)&&t.children[$])&&tD(t.children[$],e,i,r)}}function fa(t,e,n){return e.every((r,o)=>K_[n](t[o].parameters,r.parameters))}class Xn{constructor(e,n,r){this.root=e,this.queryParams=n,this.fragment=r}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=oo(this.queryParams)),this._queryParamMap}toString(){return dF.serialize(this)}}class q{constructor(e,n){this.segments=e,this.children=n,this.parent=null,Fe(n,(r,o)=>r.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return ha(this)}}class yi{constructor(e,n){this.path=e,this.parameters=n}get parameterMap(){return this._parameterMap||(this._parameterMap=oo(this.parameters)),this._parameterMap}toString(){return sD(this)}}function er(t,e){return t.length===e.length&&t.every((n,r)=>n.path===e[r].path)}class nD{}class rD{parse(e){const n=new DF(e);return new Xn(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())}serialize(e){const n=`/${vi(e.root,!0)}`,r=function pF(t){const e=Object.keys(t).map(n=>{const r=t[n];return Array.isArray(r)?r.map(o=>`${pa(n)}=${pa(o)}`).join("&"):`${pa(n)}=${pa(r)}`}).filter(n=>!!n);return e.length?`?${e.join("&")}`:""}(e.queryParams),o="string"==typeof e.fragment?`#${function fF(t){return encodeURI(t)}(e.fragment)}`:"";return`${n}${r}${o}`}}const dF=new rD;function ha(t){return t.segments.map(e=>sD(e)).join("/")}function vi(t,e){if(!t.hasChildren())return ha(t);if(e){const n=t.children[$]?vi(t.children[$],!1):"",r=[];return Fe(t.children,(o,i)=>{i!==$&&r.push(`${i}:${vi(o,!1)}`)}),r.length>0?`${n}(${r.join("//")})`:n}{const n=function cF(t,e){let n=[];return Fe(t.children,(r,o)=>{o===$&&(n=n.concat(e(r,o)))}),Fe(t.children,(r,o)=>{o!==$&&(n=n.concat(e(r,o)))}),n}(t,(r,o)=>o===$?[vi(t.children[$],!1)]:[`${o}:${vi(r,!1)}`]);return 1===Object.keys(t.children).length&&null!=t.children[$]?`${ha(t)}/${n[0]}`:`${ha(t)}/(${n.join("//")})`}}function oD(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function pa(t){return oD(t).replace(/%3B/gi,";")}function wd(t){return oD(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function ga(t){return decodeURIComponent(t)}function iD(t){return ga(t.replace(/\+/g,"%20"))}function sD(t){return`${wd(t.path)}${function hF(t){return Object.keys(t).map(e=>`;${wd(e)}=${wd(t[e])}`).join("")}(t.parameters)}`}const gF=/^[^\/()?;=#]+/;function ma(t){const e=t.match(gF);return e?e[0]:""}const mF=/^[^=?&#]+/,vF=/^[^&#]+/;class DF{constructor(e){this.url=e,this.remaining=e}parseRootSegment(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new q([],{}):new q([],this.parseChildren())}parseQueryParams(){const e={};if(this.consumeOptional("?"))do{this.parseQueryParam(e)}while(this.consumeOptional("&"));return e}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(""===this.remaining)return{};this.consumeOptional("/");const e=[];for(this.peekStartsWith("(")||e.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),e.push(this.parseSegment());let n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));let r={};return this.peekStartsWith("(")&&(r=this.parseParens(!1)),(e.length>0||Object.keys(n).length>0)&&(r[$]=new q(e,n)),r}parseSegment(){const e=ma(this.remaining);if(""===e&&this.peekStartsWith(";"))throw new Error(`Empty path url segment cannot have parameters: '${this.remaining}'.`);return this.capture(e),new yi(ga(e),this.parseMatrixParams())}parseMatrixParams(){const e={};for(;this.consumeOptional(";");)this.parseParam(e);return e}parseParam(e){const n=ma(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const o=ma(this.remaining);o&&(r=o,this.capture(r))}e[ga(n)]=ga(r)}parseQueryParam(e){const n=function yF(t){const e=t.match(mF);return e?e[0]:""}(this.remaining);if(!n)return;this.capture(n);let r="";if(this.consumeOptional("=")){const s=function _F(t){const e=t.match(vF);return e?e[0]:""}(this.remaining);s&&(r=s,this.capture(r))}const o=iD(n),i=iD(r);if(e.hasOwnProperty(o)){let s=e[o];Array.isArray(s)||(s=[s],e[o]=s),s.push(i)}else e[o]=i}parseParens(e){const n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){const r=ma(this.remaining),o=this.remaining[r.length];if("/"!==o&&")"!==o&&";"!==o)throw new Error(`Cannot parse url '${this.url}'`);let i;r.indexOf(":")>-1?(i=r.substr(0,r.indexOf(":")),this.capture(i),this.capture(":")):e&&(i=$);const s=this.parseChildren();n[i]=1===Object.keys(s).length?s[$]:new q([],s),this.consumeOptional("//")}return n}peekStartsWith(e){return this.remaining.startsWith(e)}consumeOptional(e){return!!this.peekStartsWith(e)&&(this.remaining=this.remaining.substring(e.length),!0)}capture(e){if(!this.consumeOptional(e))throw new Error(`Expected "${e}".`)}}class aD{constructor(e){this._root=e}get root(){return this._root.value}parent(e){const n=this.pathFromRoot(e);return n.length>1?n[n.length-2]:null}children(e){const n=Ed(e,this._root);return n?n.children.map(r=>r.value):[]}firstChild(e){const n=Ed(e,this._root);return n&&n.children.length>0?n.children[0].value:null}siblings(e){const n=Md(e,this._root);return n.length<2?[]:n[n.length-2].children.map(o=>o.value).filter(o=>o!==e)}pathFromRoot(e){return Md(e,this._root).map(n=>n.value)}}function Ed(t,e){if(t===e.value)return e;for(const n of e.children){const r=Ed(t,n);if(r)return r}return null}function Md(t,e){if(t===e.value)return[e];for(const n of e.children){const r=Md(t,n);if(r.length)return r.unshift(e),r}return[]}class yn{constructor(e,n){this.value=e,this.children=n}toString(){return`TreeNode(${this.value})`}}function io(t){const e={};return t&&t.children.forEach(n=>e[n.value.outlet]=n),e}class uD extends aD{constructor(e,n){super(e),this.snapshot=n,Sd(this,e)}toString(){return this.snapshot.toString()}}function lD(t,e){const n=function CF(t,e){const s=new ya([],{},{},"",{},$,e,null,t.root,-1,{});return new dD("",new yn(s,[]))}(t,e),r=new Pt([new yi("",{})]),o=new Pt({}),i=new Pt({}),s=new Pt({}),a=new Pt(""),u=new kn(r,o,s,a,i,$,e,n.root);return u.snapshot=n.root,new uD(new yn(u,[]),n)}class kn{constructor(e,n,r,o,i,s,a,u){this.url=e,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this._futureSnapshot=u}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=this.params.pipe(Z(e=>oo(e)))),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(Z(e=>oo(e)))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}}function cD(t,e="emptyOnly"){const n=t.pathFromRoot;let r=0;if("always"!==e)for(r=n.length-1;r>=1;){const o=n[r],i=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(i.component)break;r--}}return function bF(t){return t.reduce((e,n)=>({params:Object.assign(Object.assign({},e.params),n.params),data:Object.assign(Object.assign({},e.data),n.data),resolve:Object.assign(Object.assign({},e.resolve),n._resolvedData)}),{params:{},data:{},resolve:{}})}(n.slice(r))}class ya{constructor(e,n,r,o,i,s,a,u,l,c,d){this.url=e,this.params=n,this.queryParams=r,this.fragment=o,this.data=i,this.outlet=s,this.component=a,this.routeConfig=u,this._urlSegment=l,this._lastPathIndex=c,this._resolve=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap||(this._paramMap=oo(this.params)),this._paramMap}get queryParamMap(){return this._queryParamMap||(this._queryParamMap=oo(this.queryParams)),this._queryParamMap}toString(){return`Route(url:'${this.url.map(r=>r.toString()).join("/")}', path:'${this.routeConfig?this.routeConfig.path:""}')`}}class dD extends aD{constructor(e,n){super(n),this.url=e,Sd(this,n)}toString(){return fD(this._root)}}function Sd(t,e){e.value._routerState=t,e.children.forEach(n=>Sd(t,n))}function fD(t){const e=t.children.length>0?` { ${t.children.map(fD).join(", ")} } `:"";return`${t.value}${e}`}function Ad(t){if(t.snapshot){const e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Zt(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Zt(e.params,n.params)||t.params.next(n.params),function oF(t,e){if(t.length!==e.length)return!1;for(let n=0;nZt(n.parameters,e[r].parameters))}(t.url,e.url);return n&&!(!t.parent!=!e.parent)&&(!t.parent||Id(t.parent,e.parent))}function _i(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){const r=n.value;r._futureSnapshot=e.value;const o=function EF(t,e,n){return e.children.map(r=>{for(const o of n.children)if(t.shouldReuseRoute(r.value,o.value.snapshot))return _i(t,r,o);return _i(t,r)})}(t,e,n);return new yn(r,o)}{if(t.shouldAttach(e.value)){const i=t.retrieve(e.value);if(null!==i){const s=i.route;return s.value._futureSnapshot=e.value,s.children=e.children.map(a=>_i(t,a)),s}}const r=function MF(t){return new kn(new Pt(t.url),new Pt(t.params),new Pt(t.queryParams),new Pt(t.fragment),new Pt(t.data),t.outlet,t.component,t)}(e.value),o=e.children.map(i=>_i(t,i));return new yn(r,o)}}function va(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function Di(t){return"object"==typeof t&&null!=t&&t.outlets}function Td(t,e,n,r,o){let i={};return r&&Fe(r,(s,a)=>{i[a]=Array.isArray(s)?s.map(u=>`${u}`):`${s}`}),new Xn(n.root===t?e:hD(n.root,t,e),i,o)}function hD(t,e,n){const r={};return Fe(t.children,(o,i)=>{r[i]=o===e?n:hD(o,e,n)}),new q(t.segments,r)}class pD{constructor(e,n,r){if(this.isAbsolute=e,this.numberOfDoubleDots=n,this.commands=r,e&&r.length>0&&va(r[0]))throw new Error("Root segment cannot have matrix parameters");const o=r.find(Di);if(o&&o!==Z_(r))throw new Error("{outlets:{}} has to be the last command")}toRoot(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]}}class xd{constructor(e,n,r){this.segmentGroup=e,this.processChildren=n,this.index=r}}function gD(t,e,n){if(t||(t=new q([],{})),0===t.segments.length&&t.hasChildren())return _a(t,e,n);const r=function NF(t,e,n){let r=0,o=e;const i={match:!1,pathIndex:0,commandIndex:0};for(;o=n.length)return i;const s=t.segments[o],a=n[r];if(Di(a))break;const u=`${a}`,l=r0&&void 0===u)break;if(u&&l&&"object"==typeof l&&void 0===l.outlets){if(!yD(u,l,s))return i;r+=2}else{if(!yD(u,{},s))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex{"string"==typeof i&&(i=[i]),null!==i&&(o[s]=gD(t.children[s],e,i))}),Fe(t.children,(i,s)=>{void 0===r[s]&&(o[s]=i)}),new q(t.segments,o)}}function Nd(t,e,n){const r=t.segments.slice(0,e);let o=0;for(;o{"string"==typeof n&&(n=[n]),null!==n&&(e[r]=Nd(new q([],{}),0,n))}),e}function mD(t){const e={};return Fe(t,(n,r)=>e[r]=`${n}`),e}function yD(t,e,n){return t==n.path&&Zt(e,n.parameters)}class OF{constructor(e,n,r,o){this.routeReuseStrategy=e,this.futureState=n,this.currState=r,this.forwardEvent=o}activate(e){const n=this.futureState._root,r=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,r,e),Ad(this.futureState.root),this.activateChildRoutes(n,r,e)}deactivateChildRoutes(e,n,r){const o=io(n);e.children.forEach(i=>{const s=i.value.outlet;this.deactivateRoutes(i,o[s],r),delete o[s]}),Fe(o,(i,s)=>{this.deactivateRouteAndItsChildren(i,r)})}deactivateRoutes(e,n,r){const o=e.value,i=n?n.value:null;if(o===i)if(o.component){const s=r.getContext(o.outlet);s&&this.deactivateChildRoutes(e,n,s.children)}else this.deactivateChildRoutes(e,n,r);else i&&this.deactivateRouteAndItsChildren(n,r)}deactivateRouteAndItsChildren(e,n){e.value.component&&this.routeReuseStrategy.shouldDetach(e.value.snapshot)?this.detachAndStoreRouteSubtree(e,n):this.deactivateRouteAndOutlet(e,n)}detachAndStoreRouteSubtree(e,n){const r=n.getContext(e.value.outlet),o=r&&e.value.component?r.children:n,i=io(e);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);if(r&&r.outlet){const s=r.outlet.detach(),a=r.children.onOutletDeactivated();this.routeReuseStrategy.store(e.value.snapshot,{componentRef:s,route:e,contexts:a})}}deactivateRouteAndOutlet(e,n){const r=n.getContext(e.value.outlet),o=r&&e.value.component?r.children:n,i=io(e);for(const s of Object.keys(i))this.deactivateRouteAndItsChildren(i[s],o);r&&r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated(),r.attachRef=null,r.resolver=null,r.route=null)}activateChildRoutes(e,n,r){const o=io(n);e.children.forEach(i=>{this.activateRoutes(i,o[i.value.outlet],r),this.forwardEvent(new eF(i.value.snapshot))}),e.children.length&&this.forwardEvent(new YR(e.value.snapshot))}activateRoutes(e,n,r){const o=e.value,i=n?n.value:null;if(Ad(o),o===i)if(o.component){const s=r.getOrCreateContext(o.outlet);this.activateChildRoutes(e,n,s.children)}else this.activateChildRoutes(e,n,r);else if(o.component){const s=r.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){const a=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),s.children.onOutletReAttached(a.contexts),s.attachRef=a.componentRef,s.route=a.route.value,s.outlet&&s.outlet.attach(a.componentRef,a.route.value),Ad(a.route.value),this.activateChildRoutes(e,null,s.children)}else{const a=function PF(t){for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}(o.snapshot),u=a?a.module.componentFactoryResolver:null;s.attachRef=null,s.route=o,s.resolver=u,s.outlet&&s.outlet.activateWith(o,u),this.activateChildRoutes(e,null,s.children)}}else this.activateChildRoutes(e,null,r)}}class Rd{constructor(e,n){this.routes=e,this.module=n}}function Vn(t){return"function"==typeof t}function tr(t){return t instanceof Xn}const Ci=Symbol("INITIAL_VALUE");function bi(){return On(t=>function vR(...t){let e,n;return Ri(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&Ii(t[0])&&(t=t[0]),Fa(t,n).lift(new _R(e))}(t.map(e=>e.pipe(_d(1),function AR(...t){const e=t[t.length-1];return Ri(e)?(t.pop(),n=>yd(t,n,e)):n=>yd(t,n)}(Ci)))).pipe(B_((e,n)=>{let r=!1;return n.reduce((o,i,s)=>o!==Ci?o:(i===Ci&&(r=!0),r||!1!==i&&s!==n.length-1&&!tr(i)?o:i),e)},Ci),Kn(e=>e!==Ci),Z(e=>tr(e)?e:!0===e),_d(1)))}class HF{constructor(){this.outlet=null,this.route=null,this.resolver=null,this.children=new wi,this.attachRef=null}}class wi{constructor(){this.contexts=new Map}onChildOutletCreated(e,n){const r=this.getOrCreateContext(e);r.outlet=n,this.contexts.set(e,r)}onChildOutletDestroyed(e){const n=this.getContext(e);n&&(n.outlet=null,n.attachRef=null)}onOutletDeactivated(){const e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let n=this.getContext(e);return n||(n=new HF,this.contexts.set(e,n)),n}getContext(e){return this.contexts.get(e)||null}}let Fd=(()=>{class t{constructor(n,r,o,i,s){this.parentContexts=n,this.location=r,this.resolver=o,this.changeDetector=s,this.activated=null,this._activatedRoute=null,this.activateEvents=new me,this.deactivateEvents=new me,this.attachEvents=new me,this.detachEvents=new me,this.name=i||$,n.onChildOutletCreated(this.name,this)}ngOnDestroy(){this.parentContexts.onChildOutletDestroyed(this.name)}ngOnInit(){if(!this.activated){const n=this.parentContexts.getContext(this.name);n&&n.route&&(n.attachRef?this.attach(n.attachRef,n.route):this.activateWith(n.route,n.resolver||null))}}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(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();const n=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(n.instance),n}attach(n,r){this.activated=n,this._activatedRoute=r,this.location.insert(n.hostView),this.attachEvents.emit(n.instance)}deactivate(){if(this.activated){const n=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(n)}}activateWith(n,r){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=n;const s=(r=r||this.resolver).resolveComponentFactory(n._futureSnapshot.routeConfig.component),a=this.parentContexts.getOrCreateContext(this.name).children,u=new UF(n,a,this.location.injector);this.activated=this.location.createComponent(s,this.location.length,u),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)}}return t.\u0275fac=function(n){return new(n||t)(y(wi),y(Nt),y(zr),function Do(t){return function Mb(t,e){if("class"===e)return t.classes;if("style"===e)return t.styles;const n=t.attrs;if(n){const r=n.length;let o=0;for(;o{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=tn({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(n,r){1&n&&Bo(0,"router-outlet")},directives:[Fd],encapsulation:2}),t})();function _D(t,e=""){for(let n=0;nCt(r)===e);return n.push(...t.filter(r=>Ct(r)!==e)),n}const CD={matched:!1,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};function Da(t,e,n){var r;if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?Object.assign({},CD):{matched:!0,consumedSegments:[],lastChild:0,parameters:{},positionalParamSegments:{}};const i=(e.matcher||rF)(n,t,e);if(!i)return Object.assign({},CD);const s={};Fe(i.posParams,(u,l)=>{s[l]=u.path});const a=i.consumed.length>0?Object.assign(Object.assign({},s),i.consumed[i.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a,positionalParamSegments:null!==(r=i.posParams)&&void 0!==r?r:{}}}function Ca(t,e,n,r,o="corrected"){if(n.length>0&&function WF(t,e,n){return n.some(r=>ba(t,e,r)&&Ct(r)!==$)}(t,n,r)){const s=new q(e,function zF(t,e,n,r){const o={};o[$]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(const i of n)if(""===i.path&&Ct(i)!==$){const s=new q([],{});s._sourceSegment=t,s._segmentIndexShift=e.length,o[Ct(i)]=s}return o}(t,e,r,new q(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function JF(t,e,n){return n.some(r=>ba(t,e,r))}(t,n,r)){const s=new q(t.segments,function qF(t,e,n,r,o,i){const s={};for(const a of r)if(ba(t,n,a)&&!o[Ct(a)]){const u=new q([],{});u._sourceSegment=t,u._segmentIndexShift="legacy"===i?t.segments.length:e.length,s[Ct(a)]=u}return Object.assign(Object.assign({},o),s)}(t,e,n,r,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}const i=new q(t.segments,t.children);return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:n}}function ba(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path}function bD(t,e,n,r){return!!(Ct(t)===r||r!==$&&ba(e,n,t))&&("**"===t.path||Da(e,t,n).matched)}function wD(t,e,n){return 0===e.length&&!t.children[n]}class Ei{constructor(e){this.segmentGroup=e||null}}class ED{constructor(e){this.urlTree=e}}function wa(t){return new ie(e=>e.error(new Ei(t)))}function MD(t){return new ie(e=>e.error(new ED(t)))}function QF(t){return new ie(e=>e.error(new Error(`Only absolute redirects can have named outlets. redirectTo: '${t}'`)))}class YF{constructor(e,n,r,o,i){this.configLoader=n,this.urlSerializer=r,this.urlTree=o,this.config=i,this.allowRedirects=!0,this.ngModule=e.get(dn)}apply(){const e=Ca(this.urlTree.root,[],[],this.config).segmentGroup,n=new q(e.segments,e.children);return this.expandSegmentGroup(this.ngModule,this.config,n,$).pipe(Z(i=>this.createUrlTree(Pd(i),this.urlTree.queryParams,this.urlTree.fragment))).pipe(Yn(i=>{if(i instanceof ED)return this.allowRedirects=!1,this.match(i.urlTree);throw i instanceof Ei?this.noMatchError(i):i}))}match(e){return this.expandSegmentGroup(this.ngModule,this.config,e.root,$).pipe(Z(o=>this.createUrlTree(Pd(o),e.queryParams,e.fragment))).pipe(Yn(o=>{throw o instanceof Ei?this.noMatchError(o):o}))}noMatchError(e){return new Error(`Cannot match any routes. URL Segment: '${e.segmentGroup}'`)}createUrlTree(e,n,r){const o=e.segments.length>0?new q([],{[$]:e}):e;return new Xn(o,n,r)}expandSegmentGroup(e,n,r,o){return 0===r.segments.length&&r.hasChildren()?this.expandChildren(e,n,r).pipe(Z(i=>new q([],i))):this.expandSegment(e,r,n,r.segments,o,!0)}expandChildren(e,n,r){const o=[];for(const i of Object.keys(r.children))"primary"===i?o.unshift(i):o.push(i);return Oe(o).pipe(to(i=>{const s=r.children[i],a=DD(n,i);return this.expandSegmentGroup(e,a,s,i).pipe(Z(u=>({segment:u,outlet:i})))}),B_((i,s)=>(i[s.outlet]=s.segment,i),{}),function jR(t,e){const n=arguments.length>=2;return r=>r.pipe(t?Kn((o,i)=>t(o,i,r)):Ni,Dd(1),n?U_(e):H_(()=>new da))}())}expandSegment(e,n,r,o,i,s){return Oe(r).pipe(to(a=>this.expandSegmentAgainstRoute(e,n,r,a,o,i,s).pipe(Yn(l=>{if(l instanceof Ei)return k(null);throw l}))),ro(a=>!!a),Yn((a,u)=>{if(a instanceof da||"EmptyError"===a.name){if(wD(n,o,i))return k(new q([],{}));throw new Ei(n)}throw a}))}expandSegmentAgainstRoute(e,n,r,o,i,s,a){return bD(o,n,i,s)?void 0===o.redirectTo?this.matchSegmentAgainstRoute(e,n,o,i,s):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s):wa(n):wa(n)}expandSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s){return"**"===o.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(e,r,o,s):this.expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s)}expandWildCardWithParamsAgainstRouteUsingRedirect(e,n,r,o){const i=this.applyRedirectCommands([],r.redirectTo,{});return r.redirectTo.startsWith("/")?MD(i):this.lineralizeSegments(r,i).pipe(Ne(s=>{const a=new q(s,{});return this.expandSegment(e,a,n,s,o,!1)}))}expandRegularSegmentAgainstRouteUsingRedirect(e,n,r,o,i,s){const{matched:a,consumedSegments:u,lastChild:l,positionalParamSegments:c}=Da(n,o,i);if(!a)return wa(n);const d=this.applyRedirectCommands(u,o.redirectTo,c);return o.redirectTo.startsWith("/")?MD(d):this.lineralizeSegments(o,d).pipe(Ne(f=>this.expandSegment(e,n,r,f.concat(i.slice(l)),s,!1)))}matchSegmentAgainstRoute(e,n,r,o,i){if("**"===r.path)return r.loadChildren?(r._loadedConfig?k(r._loadedConfig):this.configLoader.load(e.injector,r)).pipe(Z(f=>(r._loadedConfig=f,new q(o,{})))):k(new q(o,{}));const{matched:s,consumedSegments:a,lastChild:u}=Da(n,r,o);if(!s)return wa(n);const l=o.slice(u);return this.getChildConfig(e,r,o).pipe(Ne(d=>{const f=d.module,h=d.routes,{segmentGroup:p,slicedSegments:m}=Ca(n,a,l,h),_=new q(p.segments,p.children);if(0===m.length&&_.hasChildren())return this.expandChildren(f,h,_).pipe(Z(I=>new q(a,I)));if(0===h.length&&0===m.length)return k(new q(a,{}));const D=Ct(r)===i;return this.expandSegment(f,_,h,m,D?$:i,!0).pipe(Z(w=>new q(a.concat(w.segments),w.children)))}))}getChildConfig(e,n,r){return n.children?k(new Rd(n.children,e)):n.loadChildren?void 0!==n._loadedConfig?k(n._loadedConfig):this.runCanLoadGuards(e.injector,n,r).pipe(Ne(o=>o?this.configLoader.load(e.injector,n).pipe(Z(i=>(n._loadedConfig=i,i))):function ZF(t){return new ie(e=>e.error(bd(`Cannot load children because the guard of the route "path: '${t.path}'" returned false`)))}(n))):k(new Rd([],e))}runCanLoadGuards(e,n,r){const o=n.canLoad;if(!o||0===o.length)return k(!0);const i=o.map(s=>{const a=e.get(s);let u;if(function VF(t){return t&&Vn(t.canLoad)}(a))u=a.canLoad(n,r);else{if(!Vn(a))throw new Error("Invalid CanLoad guard");u=a(n,r)}return Kt(u)});return k(i).pipe(bi(),ut(s=>{if(!tr(s))return;const a=bd(`Redirecting to "${this.urlSerializer.serialize(s)}"`);throw a.url=s,a}),Z(s=>!0===s))}lineralizeSegments(e,n){let r=[],o=n.root;for(;;){if(r=r.concat(o.segments),0===o.numberOfChildren)return k(r);if(o.numberOfChildren>1||!o.children[$])return QF(e.redirectTo);o=o.children[$]}}applyRedirectCommands(e,n,r){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),e,r)}applyRedirectCreatreUrlTree(e,n,r,o){const i=this.createSegmentGroup(e,n.root,r,o);return new Xn(i,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)}createQueryParams(e,n){const r={};return Fe(e,(o,i)=>{if("string"==typeof o&&o.startsWith(":")){const a=o.substring(1);r[i]=n[a]}else r[i]=o}),r}createSegmentGroup(e,n,r,o){const i=this.createSegments(e,n.segments,r,o);let s={};return Fe(n.children,(a,u)=>{s[u]=this.createSegmentGroup(e,a,r,o)}),new q(i,s)}createSegments(e,n,r,o){return n.map(i=>i.path.startsWith(":")?this.findPosParam(e,i,o):this.findOrReturn(i,r))}findPosParam(e,n,r){const o=r[n.path.substring(1)];if(!o)throw new Error(`Cannot redirect to '${e}'. Cannot find '${n.path}'.`);return o}findOrReturn(e,n){let r=0;for(const o of n){if(o.path===e.path)return n.splice(r),o;r++}return e}}function Pd(t){const e={};for(const r of Object.keys(t.children)){const i=Pd(t.children[r]);(i.segments.length>0||i.hasChildren())&&(e[r]=i)}return function XF(t){if(1===t.numberOfChildren&&t.children[$]){const e=t.children[$];return new q(t.segments.concat(e.segments),e.children)}return t}(new q(t.segments,e))}class SD{constructor(e){this.path=e,this.route=this.path[this.path.length-1]}}class Ea{constructor(e,n){this.component=e,this.route=n}}function tO(t,e,n){const r=t._root;return Mi(r,e?e._root:null,n,[r.value])}function Ma(t,e,n){const r=function rO(t){if(!t)return null;for(let e=t.parent;e;e=e.parent){const n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(r?r.module.injector:n).get(t)}function Mi(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=io(e);return t.children.forEach(s=>{(function oO(t,e,n,r,o={canDeactivateChecks:[],canActivateChecks:[]}){const i=t.value,s=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(s&&i.routeConfig===s.routeConfig){const u=function iO(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!er(t.url,e.url);case"pathParamsOrQueryParamsChange":return!er(t.url,e.url)||!Zt(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Id(t,e)||!Zt(t.queryParams,e.queryParams);default:return!Id(t,e)}}(s,i,i.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new SD(r)):(i.data=s.data,i._resolvedData=s._resolvedData),Mi(t,e,i.component?a?a.children:null:n,r,o),u&&a&&a.outlet&&a.outlet.isActivated&&o.canDeactivateChecks.push(new Ea(a.outlet.component,s))}else s&&Si(e,a,o),o.canActivateChecks.push(new SD(r)),Mi(t,null,i.component?a?a.children:null:n,r,o)})(s,i[s.value.outlet],n,r.concat([s.value]),o),delete i[s.value.outlet]}),Fe(i,(s,a)=>Si(s,n.getContext(a),o)),o}function Si(t,e,n){const r=io(t),o=t.value;Fe(r,(i,s)=>{Si(i,o.component?e?e.children.getContext(s):null:e,n)}),n.canDeactivateChecks.push(new Ea(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}class pO{}function AD(t){return new ie(e=>e.error(t))}class mO{constructor(e,n,r,o,i,s){this.rootComponentType=e,this.config=n,this.urlTree=r,this.url=o,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=s}recognize(){const e=Ca(this.urlTree.root,[],[],this.config.filter(s=>void 0===s.redirectTo),this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,e,$);if(null===n)return null;const r=new ya([],Object.freeze({}),Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,{},$,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new yn(r,n),i=new dD(this.url,o);return this.inheritParamsAndData(i._root),i}inheritParamsAndData(e){const n=e.value,r=cD(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),e.children.forEach(o=>this.inheritParamsAndData(o))}processSegmentGroup(e,n,r){return 0===n.segments.length&&n.hasChildren()?this.processChildren(e,n):this.processSegment(e,n,n.segments,r)}processChildren(e,n){const r=[];for(const i of Object.keys(n.children)){const s=n.children[i],a=DD(e,i),u=this.processSegmentGroup(a,s,i);if(null===u)return null;r.push(...u)}const o=ID(r);return function yO(t){t.sort((e,n)=>e.value.outlet===$?-1:n.value.outlet===$?1:e.value.outlet.localeCompare(n.value.outlet))}(o),o}processSegment(e,n,r,o){for(const i of e){const s=this.processSegmentAgainstRoute(i,n,r,o);if(null!==s)return s}return wD(n,r,o)?[]:null}processSegmentAgainstRoute(e,n,r,o){if(e.redirectTo||!bD(e,n,r,o))return null;let i,s=[],a=[];if("**"===e.path){const h=r.length>0?Z_(r).parameters:{};i=new ya(r,h,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ND(e),Ct(e),e.component,e,TD(n),xD(n)+r.length,RD(e))}else{const h=Da(n,e,r);if(!h.matched)return null;s=h.consumedSegments,a=r.slice(h.lastChild),i=new ya(s,h.parameters,Object.freeze(Object.assign({},this.urlTree.queryParams)),this.urlTree.fragment,ND(e),Ct(e),e.component,e,TD(n),xD(n)+s.length,RD(e))}const u=function vO(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(e),{segmentGroup:l,slicedSegments:c}=Ca(n,s,a,u.filter(h=>void 0===h.redirectTo),this.relativeLinkResolution);if(0===c.length&&l.hasChildren()){const h=this.processChildren(u,l);return null===h?null:[new yn(i,h)]}if(0===u.length&&0===c.length)return[new yn(i,[])];const d=Ct(e)===o,f=this.processSegment(u,l,c,d?$:o);return null===f?null:[new yn(i,f)]}}function _O(t){const e=t.value.routeConfig;return e&&""===e.path&&void 0===e.redirectTo}function ID(t){const e=[],n=new Set;for(const r of t){if(!_O(r)){e.push(r);continue}const o=e.find(i=>r.value.routeConfig===i.value.routeConfig);void 0!==o?(o.children.push(...r.children),n.add(o)):e.push(r)}for(const r of n){const o=ID(r.children);e.push(new yn(r.value,o))}return e.filter(r=>!n.has(r))}function TD(t){let e=t;for(;e._sourceSegment;)e=e._sourceSegment;return e}function xD(t){let e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;for(;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function ND(t){return t.data||{}}function RD(t){return t.resolve||{}}function FD(t){return[...Object.keys(t),...Object.getOwnPropertySymbols(t)]}function kd(t){return On(e=>{const n=t(e);return n?Oe(n).pipe(Z(()=>e)):k(e)})}class AO extends class SO{shouldDetach(e){return!1}store(e,n){}shouldAttach(e){return!1}retrieve(e){return null}shouldReuseRoute(e,n){return e.routeConfig===n.routeConfig}}{}const Vd=new j("ROUTES");class OD{constructor(e,n,r,o){this.injector=e,this.compiler=n,this.onLoadStartListener=r,this.onLoadEndListener=o}load(e,n){if(n._loader$)return n._loader$;this.onLoadStartListener&&this.onLoadStartListener(n);const o=this.loadModuleFactory(n.loadChildren).pipe(Z(i=>{this.onLoadEndListener&&this.onLoadEndListener(n);const s=i.create(e);return new Rd(Q_(s.injector.get(Vd,void 0,P.Self|P.Optional)).map(Od),s)}),Yn(i=>{throw n._loader$=void 0,i}));return n._loader$=new sf(o,()=>new Yt).pipe(Oa()),n._loader$}loadModuleFactory(e){return Kt(e()).pipe(Ne(n=>n instanceof km?k(n):Oe(this.compiler.compileModuleAsync(n))))}}class TO{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,n){return e}}function xO(t){throw t}function NO(t,e,n){return e.parse("/")}function PD(t,e){return k(null)}const RO={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},FO={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"};let lt=(()=>{class t{constructor(n,r,o,i,s,a,u){this.rootComponentType=n,this.urlSerializer=r,this.rootContexts=o,this.location=i,this.config=u,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.disposed=!1,this.navigationId=0,this.currentPageId=0,this.isNgZoneEnabled=!1,this.events=new Yt,this.errorHandler=xO,this.malformedUriErrorHandler=NO,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:PD,afterPreactivation:PD},this.urlHandlingStrategy=new TO,this.routeReuseStrategy=new AO,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="corrected",this.canceledNavigationResolution="replace",this.ngModule=s.get(dn),this.console=s.get(yy);const d=s.get(Ie);this.isNgZoneEnabled=d instanceof Ie&&Ie.isInAngularZone(),this.resetConfig(u),this.currentUrlTree=function iF(){return new Xn(new q([],{}),{},null)}(),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new OD(s,a,f=>this.triggerEvent(new G_(f)),f=>this.triggerEvent(new q_(f))),this.routerState=lD(this.currentUrlTree,this.rootComponentType),this.transitions=new Pt({id:0,targetPageId:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",restoredState:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}get browserPageId(){var n;return null===(n=this.location.getState())||void 0===n?void 0:n.\u0275routerPageId}setupNavigations(n){const r=this.events;return n.pipe(Kn(o=>0!==o.id),Z(o=>Object.assign(Object.assign({},o),{extractedUrl:this.urlHandlingStrategy.extract(o.rawUrl)})),On(o=>{let i=!1,s=!1;return k(o).pipe(ut(a=>{this.currentNavigation={id:a.id,initialUrl:a.currentRawUrl,extractedUrl:a.extractedUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?Object.assign(Object.assign({},this.lastSuccessfulNavigation),{previousNavigation:null}):null}}),On(a=>{const u=this.browserUrlTree.toString(),l=!this.navigated||a.extractedUrl.toString()!==u||u!==this.currentUrlTree.toString();if(("reload"===this.onSameUrlNavigation||l)&&this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return Sa(a.source)&&(this.browserUrlTree=a.extractedUrl),k(a).pipe(On(d=>{const f=this.transitions.getValue();return r.next(new Cd(d.id,this.serializeUrl(d.extractedUrl),d.source,d.restoredState)),f!==this.transitions.getValue()?no:Promise.resolve(d)}),function eO(t,e,n,r){return On(o=>function KF(t,e,n,r,o){return new YF(t,e,n,r,o).apply()}(t,e,n,o.extractedUrl,r).pipe(Z(i=>Object.assign(Object.assign({},o),{urlAfterRedirects:i}))))}(this.ngModule.injector,this.configLoader,this.urlSerializer,this.config),ut(d=>{this.currentNavigation=Object.assign(Object.assign({},this.currentNavigation),{finalUrl:d.urlAfterRedirects})}),function DO(t,e,n,r,o){return Ne(i=>function gO(t,e,n,r,o="emptyOnly",i="legacy"){try{const s=new mO(t,e,n,r,o,i).recognize();return null===s?AD(new pO):k(s)}catch(s){return AD(s)}}(t,e,i.urlAfterRedirects,n(i.urlAfterRedirects),r,o).pipe(Z(s=>Object.assign(Object.assign({},i),{targetSnapshot:s}))))}(this.rootComponentType,this.config,d=>this.serializeUrl(d),this.paramsInheritanceStrategy,this.relativeLinkResolution),ut(d=>{if("eager"===this.urlUpdateStrategy){if(!d.extras.skipLocationChange){const h=this.urlHandlingStrategy.merge(d.urlAfterRedirects,d.rawUrl);this.setBrowserUrl(h,d)}this.browserUrlTree=d.urlAfterRedirects}const f=new zR(d.id,this.serializeUrl(d.extractedUrl),this.serializeUrl(d.urlAfterRedirects),d.targetSnapshot);r.next(f)}));if(l&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)){const{id:f,extractedUrl:h,source:p,restoredState:m,extras:_}=a,D=new Cd(f,this.serializeUrl(h),p,m);r.next(D);const g=lD(h,this.rootComponentType).snapshot;return k(Object.assign(Object.assign({},a),{targetSnapshot:g,urlAfterRedirects:h,extras:Object.assign(Object.assign({},_),{skipLocationChange:!1,replaceUrl:!1})}))}return this.rawUrlTree=a.rawUrl,a.resolve(null),no}),kd(a=>{const{targetSnapshot:u,id:l,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.beforePreactivation(u,{navigationId:l,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),ut(a=>{const u=new WR(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot);this.triggerEvent(u)}),Z(a=>Object.assign(Object.assign({},a),{guards:tO(a.targetSnapshot,a.currentSnapshot,this.rootContexts)})),function sO(t,e){return Ne(n=>{const{targetSnapshot:r,currentSnapshot:o,guards:{canActivateChecks:i,canDeactivateChecks:s}}=n;return 0===s.length&&0===i.length?k(Object.assign(Object.assign({},n),{guardsResult:!0})):function aO(t,e,n,r){return Oe(t).pipe(Ne(o=>function hO(t,e,n,r,o){const i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?k(i.map(a=>{const u=Ma(a,e,o);let l;if(function BF(t){return t&&Vn(t.canDeactivate)}(u))l=Kt(u.canDeactivate(t,e,n,r));else{if(!Vn(u))throw new Error("Invalid CanDeactivate guard");l=Kt(u(t,e,n,r))}return l.pipe(ro())})).pipe(bi()):k(!0)}(o.component,o.route,n,e,r)),ro(o=>!0!==o,!0))}(s,r,o,t).pipe(Ne(a=>a&&function kF(t){return"boolean"==typeof t}(a)?function uO(t,e,n,r){return Oe(e).pipe(to(o=>yd(function cO(t,e){return null!==t&&e&&e(new KR(t)),k(!0)}(o.route.parent,r),function lO(t,e){return null!==t&&e&&e(new XR(t)),k(!0)}(o.route,r),function fO(t,e,n){const r=e[e.length-1],i=e.slice(0,e.length-1).reverse().map(s=>function nO(t){const e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(s)).filter(s=>null!==s).map(s=>L_(()=>k(s.guards.map(u=>{const l=Ma(u,s.node,n);let c;if(function jF(t){return t&&Vn(t.canActivateChild)}(l))c=Kt(l.canActivateChild(r,t));else{if(!Vn(l))throw new Error("Invalid CanActivateChild guard");c=Kt(l(r,t))}return c.pipe(ro())})).pipe(bi())));return k(i).pipe(bi())}(t,o.path,n),function dO(t,e,n){const r=e.routeConfig?e.routeConfig.canActivate:null;if(!r||0===r.length)return k(!0);const o=r.map(i=>L_(()=>{const s=Ma(i,e,n);let a;if(function LF(t){return t&&Vn(t.canActivate)}(s))a=Kt(s.canActivate(e,t));else{if(!Vn(s))throw new Error("Invalid CanActivate guard");a=Kt(s(e,t))}return a.pipe(ro())}));return k(o).pipe(bi())}(t,o.route,n))),ro(o=>!0!==o,!0))}(r,i,t,e):k(a)),Z(a=>Object.assign(Object.assign({},n),{guardsResult:a})))})}(this.ngModule.injector,a=>this.triggerEvent(a)),ut(a=>{if(tr(a.guardsResult)){const l=bd(`Redirecting to "${this.serializeUrl(a.guardsResult)}"`);throw l.url=a.guardsResult,l}const u=new JR(a.id,this.serializeUrl(a.extractedUrl),this.serializeUrl(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.triggerEvent(u)}),Kn(a=>!!a.guardsResult||(this.restoreHistory(a),this.cancelNavigationTransition(a,""),!1)),kd(a=>{if(a.guards.canActivateChecks.length)return k(a).pipe(ut(u=>{const l=new QR(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}),On(u=>{let l=!1;return k(u).pipe(function CO(t,e){return Ne(n=>{const{targetSnapshot:r,guards:{canActivateChecks:o}}=n;if(!o.length)return k(n);let i=0;return Oe(o).pipe(to(s=>function bO(t,e,n,r){return function wO(t,e,n,r){const o=FD(t);if(0===o.length)return k({});const i={};return Oe(o).pipe(Ne(s=>function EO(t,e,n,r){const o=Ma(t,e,r);return Kt(o.resolve?o.resolve(e,n):o(e,n))}(t[s],e,n,r).pipe(ut(a=>{i[s]=a}))),Dd(1),Ne(()=>FD(i).length===o.length?k(i):no))}(t._resolve,t,e,r).pipe(Z(i=>(t._resolvedData=i,t.data=Object.assign(Object.assign({},t.data),cD(t,n).resolve),null)))}(s.route,r,t,e)),ut(()=>i++),Dd(1),Ne(s=>i===o.length?k(n):no))})}(this.paramsInheritanceStrategy,this.ngModule.injector),ut({next:()=>l=!0,complete:()=>{l||(this.restoreHistory(u),this.cancelNavigationTransition(u,"At least one route resolver didn't emit any value."))}}))}),ut(u=>{const l=new ZR(u.id,this.serializeUrl(u.extractedUrl),this.serializeUrl(u.urlAfterRedirects),u.targetSnapshot);this.triggerEvent(l)}))}),kd(a=>{const{targetSnapshot:u,id:l,extractedUrl:c,rawUrl:d,extras:{skipLocationChange:f,replaceUrl:h}}=a;return this.hooks.afterPreactivation(u,{navigationId:l,appliedUrlTree:c,rawUrlTree:d,skipLocationChange:!!f,replaceUrl:!!h})}),Z(a=>{const u=function wF(t,e,n){const r=_i(t,e._root,n?n._root:void 0);return new uD(r,e)}(this.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return Object.assign(Object.assign({},a),{targetRouterState:u})}),ut(a=>{this.currentUrlTree=a.urlAfterRedirects,this.rawUrlTree=this.urlHandlingStrategy.merge(a.urlAfterRedirects,a.rawUrl),this.routerState=a.targetRouterState,"deferred"===this.urlUpdateStrategy&&(a.extras.skipLocationChange||this.setBrowserUrl(this.rawUrlTree,a),this.browserUrlTree=a.urlAfterRedirects)}),((t,e,n)=>Z(r=>(new OF(e,r.targetRouterState,r.currentRouterState,n).activate(t),r)))(this.rootContexts,this.routeReuseStrategy,a=>this.triggerEvent(a)),ut({next(){i=!0},complete(){i=!0}}),function UR(t){return e=>e.lift(new $R(t))}(()=>{var a;i||s||this.cancelNavigationTransition(o,`Navigation ID ${o.id} is not equal to the current navigation id ${this.navigationId}`),(null===(a=this.currentNavigation)||void 0===a?void 0:a.id)===o.id&&(this.currentNavigation=null)}),Yn(a=>{if(s=!0,function nF(t){return t&&t[W_]}(a)){const u=tr(a.url);u||(this.navigated=!0,this.restoreHistory(o,!0));const l=new $_(o.id,this.serializeUrl(o.extractedUrl),a.message);r.next(l),u?setTimeout(()=>{const c=this.urlHandlingStrategy.merge(a.url,this.rawUrlTree),d={skipLocationChange:o.extras.skipLocationChange,replaceUrl:"eager"===this.urlUpdateStrategy||Sa(o.source)};this.scheduleNavigation(c,"imperative",null,d,{resolve:o.resolve,reject:o.reject,promise:o.promise})},0):o.resolve(!1)}else{this.restoreHistory(o,!0);const u=new qR(o.id,this.serializeUrl(o.extractedUrl),a);r.next(u);try{o.resolve(this.errorHandler(a))}catch(l){o.reject(l)}}return no}))}))}resetRootComponentType(n){this.rootComponentType=n,this.routerState.root.component=this.rootComponentType}setTransition(n){this.transitions.next(Object.assign(Object.assign({},this.transitions.value),n))}initialNavigation(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})}setUpLocationChangeListener(){this.locationSubscription||(this.locationSubscription=this.location.subscribe(n=>{const r="popstate"===n.type?"popstate":"hashchange";"popstate"===r&&setTimeout(()=>{var o;const i={replaceUrl:!0},s=(null===(o=n.state)||void 0===o?void 0:o.navigationId)?n.state:null;if(s){const u=Object.assign({},s);delete u.navigationId,delete u.\u0275routerPageId,0!==Object.keys(u).length&&(i.state=u)}const a=this.parseUrl(n.url);this.scheduleNavigation(a,r,s,i)},0)}))}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.currentNavigation}triggerEvent(n){this.events.next(n)}resetConfig(n){_D(n),this.config=n.map(Od),this.navigated=!1,this.lastSuccessfulId=-1}ngOnDestroy(){this.dispose()}dispose(){this.transitions.complete(),this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=void 0),this.disposed=!0}createUrlTree(n,r={}){const{relativeTo:o,queryParams:i,fragment:s,queryParamsHandling:a,preserveFragment:u}=r,l=o||this.routerState.root,c=u?this.currentUrlTree.fragment:s;let d=null;switch(a){case"merge":d=Object.assign(Object.assign({},this.currentUrlTree.queryParams),i);break;case"preserve":d=this.currentUrlTree.queryParams;break;default:d=i||null}return null!==d&&(d=this.removeEmptyProps(d)),function SF(t,e,n,r,o){if(0===n.length)return Td(e.root,e.root,e,r,o);const i=function AF(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new pD(!0,0,t);let e=0,n=!1;const r=t.reduce((o,i,s)=>{if("object"==typeof i&&null!=i){if(i.outlets){const a={};return Fe(i.outlets,(u,l)=>{a[l]="string"==typeof u?u.split("/"):u}),[...o,{outlets:a}]}if(i.segmentPath)return[...o,i.segmentPath]}return"string"!=typeof i?[...o,i]:0===s?(i.split("/").forEach((a,u)=>{0==u&&"."===a||(0==u&&""===a?n=!0:".."===a?e++:""!=a&&o.push(a))}),o):[...o,i]},[]);return new pD(n,e,r)}(n);if(i.toRoot())return Td(e.root,new q([],{}),e,r,o);const s=function IF(t,e,n){if(t.isAbsolute)return new xd(e.root,!0,0);if(-1===n.snapshot._lastPathIndex){const i=n.snapshot._urlSegment;return new xd(i,i===e.root,0)}const r=va(t.commands[0])?0:1;return function TF(t,e,n){let r=t,o=e,i=n;for(;i>o;){if(i-=o,r=r.parent,!r)throw new Error("Invalid number of '../'");o=r.segments.length}return new xd(r,!1,o-i)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+r,t.numberOfDoubleDots)}(i,e,t),a=s.processChildren?_a(s.segmentGroup,s.index,i.commands):gD(s.segmentGroup,s.index,i.commands);return Td(s.segmentGroup,a,e,r,o)}(l,this.currentUrlTree,n,d,null!=c?c:null)}navigateByUrl(n,r={skipLocationChange:!1}){const o=tr(n)?n:this.parseUrl(n),i=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,r)}navigate(n,r={skipLocationChange:!1}){return function OO(t){for(let e=0;e{const i=n[o];return null!=i&&(r[o]=i),r},{})}processNavigations(){this.navigations.subscribe(n=>{this.navigated=!0,this.lastSuccessfulId=n.id,this.currentPageId=n.targetPageId,this.events.next(new mi(n.id,this.serializeUrl(n.extractedUrl),this.serializeUrl(this.currentUrlTree))),this.lastSuccessfulNavigation=this.currentNavigation,n.resolve(!0)},n=>{this.console.warn(`Unhandled Navigation Error: ${n}`)})}scheduleNavigation(n,r,o,i,s){var a,u,l;if(this.disposed)return Promise.resolve(!1);const c=this.transitions.value,d=Sa(r)&&c&&!Sa(c.source),f=c.rawUrl.toString()===n.toString(),h=c.id===(null===(a=this.currentNavigation)||void 0===a?void 0:a.id);if(d&&f&&h)return Promise.resolve(!0);let m,_,D;s?(m=s.resolve,_=s.reject,D=s.promise):D=new Promise((I,z)=>{m=I,_=z});const g=++this.navigationId;let w;return"computed"===this.canceledNavigationResolution?(0===this.currentPageId&&(o=this.location.getState()),w=o&&o.\u0275routerPageId?o.\u0275routerPageId:i.replaceUrl||i.skipLocationChange?null!==(u=this.browserPageId)&&void 0!==u?u:0:(null!==(l=this.browserPageId)&&void 0!==l?l:0)+1):w=0,this.setTransition({id:g,targetPageId:w,source:r,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.rawUrlTree,rawUrl:n,extras:i,resolve:m,reject:_,promise:D,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),D.catch(I=>Promise.reject(I))}setBrowserUrl(n,r){const o=this.urlSerializer.serialize(n),i=Object.assign(Object.assign({},r.extras.state),this.generateNgRouterState(r.id,r.targetPageId));this.location.isCurrentPathEqualTo(o)||r.extras.replaceUrl?this.location.replaceState(o,"",i):this.location.go(o,"",i)}restoreHistory(n,r=!1){var o,i;if("computed"===this.canceledNavigationResolution){const s=this.currentPageId-n.targetPageId;"popstate"!==n.source&&"eager"!==this.urlUpdateStrategy&&this.currentUrlTree!==(null===(o=this.currentNavigation)||void 0===o?void 0:o.finalUrl)||0===s?this.currentUrlTree===(null===(i=this.currentNavigation)||void 0===i?void 0:i.finalUrl)&&0===s&&(this.resetState(n),this.browserUrlTree=n.currentUrlTree,this.resetUrlToCurrentUrlTree()):this.location.historyGo(s)}else"replace"===this.canceledNavigationResolution&&(r&&this.resetState(n),this.resetUrlToCurrentUrlTree())}resetState(n){this.routerState=n.currentRouterState,this.currentUrlTree=n.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,n.rawUrl)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}cancelNavigationTransition(n,r){const o=new $_(n.id,this.serializeUrl(n.extractedUrl),r);this.triggerEvent(o),n.resolve(!1)}generateNgRouterState(n,r){return"computed"===this.canceledNavigationResolution?{navigationId:n,\u0275routerPageId:r}:{navigationId:n}}}return t.\u0275fac=function(n){wl()},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();function Sa(t){return"imperative"!==t}let nr=(()=>{class t{constructor(n,r,o){this.router=n,this.route=r,this.locationStrategy=o,this.commands=null,this.href=null,this.onChanges=new Yt,this.subscription=n.events.subscribe(i=>{i instanceof mi&&this.updateTargetUrlAndHref()})}set routerLink(n){this.commands=null!=n?Array.isArray(n)?n:[n]:null}ngOnChanges(n){this.updateTargetUrlAndHref(),this.onChanges.next(this)}ngOnDestroy(){this.subscription.unsubscribe()}onClick(n,r,o,i,s){if(0!==n||r||o||i||s||"string"==typeof this.target&&"_self"!=this.target||null===this.urlTree)return!0;const a={skipLocationChange:so(this.skipLocationChange),replaceUrl:so(this.replaceUrl),state:this.state};return this.router.navigateByUrl(this.urlTree,a),!1}updateTargetUrlAndHref(){this.href=null!==this.urlTree?this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree)):null}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:so(this.preserveFragment)})}}return t.\u0275fac=function(n){return new(n||t)(y(lt),y(kn),y(Yr))},t.\u0275dir=x({type:t,selectors:[["a","routerLink",""],["area","routerLink",""]],hostVars:2,hostBindings:function(n,r){1&n&&Se("click",function(i){return r.onClick(i.button,i.ctrlKey,i.shiftKey,i.altKey,i.metaKey)}),2&n&&qt("target",r.target)("href",r.href,Au)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",preserveFragment:"preserveFragment",skipLocationChange:"skipLocationChange",replaceUrl:"replaceUrl",state:"state",relativeTo:"relativeTo",routerLink:"routerLink"},features:[tt]}),t})();function so(t){return""===t||!!t}class kD{}class VD{preload(e,n){return k(null)}}let LD=(()=>{class t{constructor(n,r,o,i){this.router=n,this.injector=o,this.preloadingStrategy=i,this.loader=new OD(o,r,u=>n.triggerEvent(new G_(u)),u=>n.triggerEvent(new q_(u)))}setUpPreloading(){this.subscription=this.router.events.pipe(Kn(n=>n instanceof mi),to(()=>this.preload())).subscribe(()=>{})}preload(){const n=this.injector.get(dn);return this.processRoutes(n,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(n,r){const o=[];for(const i of r)if(i.loadChildren&&!i.canLoad&&i._loadedConfig){const s=i._loadedConfig;o.push(this.processRoutes(s.module,s.routes))}else i.loadChildren&&!i.canLoad?o.push(this.preloadConfig(n,i)):i.children&&o.push(this.processRoutes(n,i.children));return Oe(o).pipe(lo(),Z(i=>{}))}preloadConfig(n,r){return this.preloadingStrategy.preload(r,()=>(r._loadedConfig?k(r._loadedConfig):this.loader.load(n.injector,r)).pipe(Ne(i=>(r._loadedConfig=i,this.processRoutes(i.module,i.routes)))))}}return t.\u0275fac=function(n){return new(n||t)(S(lt),S(ks),S(Re),S(kD))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})(),jd=(()=>{class t{constructor(n,r,o={}){this.router=n,this.viewportScroller=r,this.options=o,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},o.scrollPositionRestoration=o.scrollPositionRestoration||"disabled",o.anchorScrolling=o.anchorScrolling||"disabled"}init(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.router.events.subscribe(n=>{n instanceof Cd?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=n.navigationTrigger,this.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof mi&&(this.lastId=n.id,this.scheduleScrollEvent(n,this.router.parseUrl(n.urlAfterRedirects).fragment))})}consumeScrollEvents(){return this.router.events.subscribe(n=>{n instanceof z_&&(n.position?"top"===this.options.scrollPositionRestoration?this.viewportScroller.scrollToPosition([0,0]):"enabled"===this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===this.options.anchorScrolling?this.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(n,r){this.router.triggerEvent(new z_(n,"popstate"===this.lastSource?this.store[this.restoredId]:null,r))}ngOnDestroy(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()}}return t.\u0275fac=function(n){wl()},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();const rr=new j("ROUTER_CONFIGURATION"),jD=new j("ROUTER_FORROOT_GUARD"),LO=[_c,{provide:nD,useClass:rD},{provide:lt,useFactory:function $O(t,e,n,r,o,i,s={},a,u){const l=new lt(null,t,e,n,r,o,Q_(i));return a&&(l.urlHandlingStrategy=a),u&&(l.routeReuseStrategy=u),function GO(t,e){t.errorHandler&&(e.errorHandler=t.errorHandler),t.malformedUriErrorHandler&&(e.malformedUriErrorHandler=t.malformedUriErrorHandler),t.onSameUrlNavigation&&(e.onSameUrlNavigation=t.onSameUrlNavigation),t.paramsInheritanceStrategy&&(e.paramsInheritanceStrategy=t.paramsInheritanceStrategy),t.relativeLinkResolution&&(e.relativeLinkResolution=t.relativeLinkResolution),t.urlUpdateStrategy&&(e.urlUpdateStrategy=t.urlUpdateStrategy),t.canceledNavigationResolution&&(e.canceledNavigationResolution=t.canceledNavigationResolution)}(s,l),s.enableTracing&&l.events.subscribe(c=>{var d,f;null===(d=console.group)||void 0===d||d.call(console,`Router Event: ${c.constructor.name}`),console.log(c.toString()),console.log(c),null===(f=console.groupEnd)||void 0===f||f.call(console)}),l},deps:[nD,wi,_c,Re,ks,Vd,rr,[class IO{},new Bt],[class MO{},new Bt]]},wi,{provide:kn,useFactory:function qO(t){return t.routerState.root},deps:[lt]},LD,VD,class VO{preload(e,n){return n().pipe(Yn(()=>k(null)))}},{provide:rr,useValue:{enableTracing:!1}}];function jO(){return new wy("Router",lt)}let BD=(()=>{class t{constructor(n,r){}static forRoot(n,r){return{ngModule:t,providers:[LO,HD(n),{provide:jD,useFactory:UO,deps:[[lt,new Bt,new Cr]]},{provide:rr,useValue:r||{}},{provide:Yr,useFactory:HO,deps:[Qn,[new Ao(vc),new Bt],rr]},{provide:jd,useFactory:BO,deps:[lt,_x,rr]},{provide:kD,useExisting:r&&r.preloadingStrategy?r.preloadingStrategy:VD},{provide:wy,multi:!0,useFactory:jO},[Bd,{provide:Os,multi:!0,useFactory:zO,deps:[Bd]},{provide:UD,useFactory:WO,deps:[Bd]},{provide:my,multi:!0,useExisting:UD}]]}}static forChild(n){return{ngModule:t,providers:[HD(n)]}}}return t.\u0275fac=function(n){return new(n||t)(S(jD,8),S(lt,8))},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({}),t})();function BO(t,e,n){return n.scrollOffset&&e.setOffset(n.scrollOffset),new jd(t,e,n)}function HO(t,e,n={}){return n.useHash?new tT(t,e):new qy(t,e)}function UO(t){return"guarded"}function HD(t){return[{provide:xb,multi:!0,useValue:t},{provide:Vd,multi:!0,useValue:t}]}let Bd=(()=>{class t{constructor(n){this.injector=n,this.initNavigation=!1,this.destroyed=!1,this.resultOfPreactivationDone=new Yt}appInitializer(){return this.injector.get(YI,Promise.resolve(null)).then(()=>{if(this.destroyed)return Promise.resolve(!0);let r=null;const o=new Promise(a=>r=a),i=this.injector.get(lt),s=this.injector.get(rr);return"disabled"===s.initialNavigation?(i.setUpLocationChangeListener(),r(!0)):"enabled"===s.initialNavigation||"enabledBlocking"===s.initialNavigation?(i.hooks.afterPreactivation=()=>this.initNavigation?k(null):(this.initNavigation=!0,r(!0),this.resultOfPreactivationDone),i.initialNavigation()):r(!0),o})}bootstrapListener(n){const r=this.injector.get(rr),o=this.injector.get(LD),i=this.injector.get(jd),s=this.injector.get(lt),a=this.injector.get(Xo);n===a.components[0]&&(("enabledNonBlocking"===r.initialNavigation||void 0===r.initialNavigation)&&s.initialNavigation(),o.setUpPreloading(),i.init(),s.resetRootComponentType(a.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())}ngOnDestroy(){this.destroyed=!0}}return t.\u0275fac=function(n){return new(n||t)(S(Re))},t.\u0275prov=F({token:t,factory:t.\u0275fac}),t})();function zO(t){return t.appInitializer.bind(t)}function WO(t){return t.bootstrapListener.bind(t)}const UD=new j("Router Initializer");let QO=(()=>{class t{constructor(n){this.httpClient=n}GetEngineers(){return this.httpClient.get("http://localhost:63235/engineer")}}return t.\u0275fac=function(n){return new(n||t)(S(gi))},t.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),$D=(()=>{class t{constructor(n){this.httpClient=n}GetJobs(){return this.httpClient.get("http://localhost:63235/job")}GetJob(n){return this.httpClient.get(`http://localhost:63235/job/${n}`)}CreateJob(n){return this.httpClient.post("http://localhost:63235/job",n).toPromise()}}return t.\u0275fac=function(n){return new(n||t)(S(gi))},t.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function ZO(t,e){if(1&t&&(E(0,"option"),B(1),M()),2&t){const n=e.$implicit;Q(1),zn(n)}}function KO(t,e){1&t&&(E(0,"small"),B(1,"Please select an engineer"),M())}function YO(t,e){1&t&&(E(0,"small"),B(1,"Please select a valid date"),M())}const XO=function(t){return["/job",t]};function eP(t,e){if(1&t&&(E(0,"tr"),E(1,"td"),B(2),M(),E(3,"td"),B(4),Hl(5,"date"),M(),E(6,"td"),E(7,"a",13),B(8,"Open"),M(),M(),M()),2&t){const n=e.$implicit;Q(2),zn(n.engineer),Q(2),zn(Ul(5,3,n.when,"shortDate")),Q(3),pe("routerLink",Bl(6,XO,n.jobId))}}let tP=(()=>{class t{constructor(n,r){this.engineerService=n,this.jobService=r,this.engineers=[],this.jobs=[],this.newJob={jobId:null,engineer:null,when:null}}ngOnInit(){this.engineerService.GetEngineers().subscribe(n=>this.engineers=n),this.jobService.GetJobs().subscribe(n=>this.jobs=n)}createJob(n){n.invalid?alert("form is not valid"):this.jobService.CreateJob(this.newJob).then(()=>{this.jobService.GetJobs().subscribe(r=>this.jobs=r)})}}return t.\u0275fac=function(n){return new(n||t)(y(QO),y($D))},t.\u0275cmp=tn({type:t,selectors:[["app-job"]],decls:31,vars:8,consts:[[3,"ngSubmit"],["jobForm","ngForm"],["for","engineer"],["name","engineer","required","","ngModel","","placeholder","Please select",3,"ngModel","ngModelChange"],["engineer","ngModel"],["selected","",3,"ngValue"],[4,"ngFor","ngForOf"],[4,"ngIf"],["for","when"],["type","date","name","when","ngModel","","required","",3,"ngModel","ngModelChange"],["when","ngModel"],["type","submit",3,"disabled"],["spacing","0"],[3,"routerLink"]],template:function(n,r){if(1&n){const o=Ml();E(0,"h2"),B(1,"New job form"),M(),E(2,"form",0,1),Se("ngSubmit",function(){tu(o);const s=un(3);return r.createJob(s)}),E(4,"label",2),B(5,"Engineer"),M(),E(6,"select",3,4),Se("ngModelChange",function(s){return r.newJob.engineer=s}),E(8,"option",5),B(9,"Please select"),M(),an(10,ZO,2,1,"option",6),M(),an(11,KO,2,0,"small",7),E(12,"label",8),B(13,"When"),M(),E(14,"input",9,10),Se("ngModelChange",function(s){return r.newJob.when=s}),M(),an(16,YO,2,0,"small",7),E(17,"button",11),B(18,"Add Job"),M(),M(),E(19,"h2"),B(20,"Jobs list"),M(),E(21,"table",12),E(22,"thead"),E(23,"tr"),E(24,"th"),B(25,"Engineer"),M(),E(26,"th"),B(27,"When"),M(),Bo(28,"th"),M(),M(),E(29,"tbody"),an(30,eP,9,8,"tr",6),M(),M()}if(2&n){const o=un(3),i=un(7),s=un(15);Q(6),pe("ngModel",r.newJob.engineer),Q(2),pe("ngValue",void 0),Q(2),pe("ngForOf",r.engineers),Q(1),pe("ngIf",i.invalid),Q(3),pe("ngModel",r.newJob.when),Q(2),pe("ngIf",s.invalid),Q(1),pe("disabled",o.invalid),Q(13),pe("ngForOf",r.jobs)}},directives:[od,zc,di,fi,hi,qc,la,ud,cd,Ic,Tc,ii,nr],pipes:[Rc],styles:["h2[_ngcontent-%COMP%]{margin-left:15px}form[_ngcontent-%COMP%]{margin:15px}form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%], form[_ngcontent-%COMP%] select[_ngcontent-%COMP%], form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;width:250px;margin-bottom:15px}form[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:red;margin-top:-12px;margin-bottom:15px;display:block}table[_ngcontent-%COMP%]{margin:15px;border-collapse:collapse}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #ddd;padding:5px;min-width:100px;text-align:left}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#ddd}"]}),t})(),nP=(()=>{class t{constructor(n){this.httpClient=n}GetTypes(){return this.httpClient.get("http://localhost:63235/type")}}return t.\u0275fac=function(n){return new(n||t)(S(gi))},t.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"}),t})(),GD=(()=>{class t{constructor(n){this.httpClient=n}GetCustomers(){return this.httpClient.get("http://localhost:63235/customer")}GetCustomer(n){return this.httpClient.get(`http://localhost:63235/job/${n}`)}CreateCustomer(n){return this.httpClient.post("http://localhost:63235/customer",n).toPromise()}}return t.\u0275fac=function(n){return new(n||t)(S(gi))},t.\u0275prov=F({token:t,factory:t.\u0275fac,providedIn:"root"}),t})();function rP(t,e){if(1&t&&(E(0,"option"),B(1),M()),2&t){const n=e.$implicit;Q(1),zn(n)}}function oP(t,e){1&t&&(E(0,"small"),B(1,"Please select a type"),M())}function iP(t,e){1&t&&(E(0,"small"),B(1,"Customer Name must be at least 5"),M())}const sP=function(t){return["/customer",t]};function aP(t,e){if(1&t&&(E(0,"tr"),E(1,"td"),B(2),M(),E(3,"td"),B(4,"{{customer.type'}}"),M(),E(5,"td"),E(6,"a",13),B(7,"Open"),M(),M(),M()),2&t){const n=e.$implicit;Q(2),zn(n.name),Q(4),pe("routerLink",Bl(2,sP,n.customerId))}}let uP=(()=>{class t{constructor(n,r){this.typeService=n,this.customerService=r,this.types=[],this.customers=[],this.newCustomer={customerId:null,type:null,name:null}}ngOnInit(){this.typeService.GetTypes().subscribe(n=>this.types=n),this.customerService.GetCustomers().subscribe(n=>this.customers=n)}createCustomer(n){n.invalid?alert("form is not valid"):this.customerService.CreateCustomer(this.newCustomer).then(()=>{this.customerService.GetCustomers().subscribe(r=>this.customers=r)})}}return t.\u0275fac=function(n){return new(n||t)(y(nP),y(GD))},t.\u0275cmp=tn({type:t,selectors:[["app-customer"]],decls:31,vars:8,consts:[[3,"ngSubmit"],["customerForm","ngForm"],["for","type"],["name","type","required","","ngModel","","placeholder","Please select",3,"ngModel","ngModelChange"],["type","ngModel"],["selected","",3,"ngValue"],[4,"ngFor","ngForOf"],[4,"ngIf"],["for","name"],["type","text","name","name","ngModel","","required","",3,"ngModel","ngModelChange"],["name","ngModel"],["type","submit",3,"disabled"],["spacing","0"],[3,"routerLink"]],template:function(n,r){if(1&n){const o=Ml();E(0,"h2"),B(1,"New Customer form"),M(),E(2,"form",0,1),Se("ngSubmit",function(){tu(o);const s=un(3);return r.createCustomer(s)}),E(4,"label",2),B(5,"Type"),M(),E(6,"select",3,4),Se("ngModelChange",function(s){return r.newCustomer.type=s}),E(8,"option",5),B(9,"Please select"),M(),an(10,rP,2,1,"option",6),M(),an(11,oP,2,0,"small",7),E(12,"label",8),B(13,"Name"),M(),E(14,"input",9,10),Se("ngModelChange",function(s){return r.newCustomer.name=s}),M(),an(16,iP,2,0,"small",7),E(17,"button",11),B(18,"Add Customer"),M(),M(),E(19,"h2"),B(20,"Customers list"),M(),E(21,"table",12),E(22,"thead"),E(23,"tr"),E(24,"th"),B(25,"Name"),M(),E(26,"th"),B(27,"Type"),M(),Bo(28,"th"),M(),M(),E(29,"tbody"),an(30,aP,8,4,"tr",6),M(),M()}if(2&n){const o=un(3),i=un(7),s=un(15);Q(6),pe("ngModel",r.newCustomer.type),Q(2),pe("ngValue",void 0),Q(2),pe("ngForOf",r.types),Q(1),pe("ngIf",i.invalid),Q(3),pe("ngModel",r.newCustomer.name),Q(2),pe("ngIf",s.invalid),Q(1),pe("disabled",o.invalid),Q(13),pe("ngForOf",r.customers)}},directives:[od,zc,di,fi,hi,qc,la,ud,cd,Ic,Tc,ii,nr],styles:["h2[_ngcontent-%COMP%]{margin-left:15px}form[_ngcontent-%COMP%]{margin:15px}form[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block}form[_ngcontent-%COMP%] input[_ngcontent-%COMP%], form[_ngcontent-%COMP%] select[_ngcontent-%COMP%], form[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{display:block;width:250px;margin-bottom:15px}form[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{color:red;margin-top:-12px;margin-bottom:15px;display:block}table[_ngcontent-%COMP%]{margin:15px;border-collapse:collapse}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%], table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]{border:1px solid #ddd;padding:5px;min-width:100px;text-align:left}table[_ngcontent-%COMP%] th[_ngcontent-%COMP%]{background-color:#ddd}"]}),t})(),qD=(()=>{class t{constructor(){}ngOnInit(){}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=tn({type:t,selectors:[["app-home"]],decls:2,vars:0,template:function(n,r){1&n&&(E(0,"h1"),B(1,"Welcome to ServiceSight"),M())},styles:[""]}),t})();const lP=function(){return["/jobs"]};let cP=(()=>{class t{constructor(n,r){this.route=n,this.jobService=r,this.jobId=n.snapshot.params.id}ngOnInit(){this.jobService.GetJob(this.jobId).subscribe(n=>this.job=n)}}return t.\u0275fac=function(n){return new(n||t)(y(kn),y($D))},t.\u0275cmp=tn({type:t,selectors:[["app-job-detail"]],decls:9,vars:8,consts:[[3,"routerLink"]],template:function(n,r){1&n&&(E(0,"p"),B(1),M(),E(2,"p"),B(3),M(),E(4,"p"),B(5),Hl(6,"date"),M(),E(7,"a",0),B(8,"Back"),M()),2&n&&(Q(1),ln("JobId: ",r.job.jobId,""),Q(2),ln("Engineer: ",r.job.engineer,""),Q(2),ln("When: ",Ul(6,4,r.job.when,"shortDate"),""),Q(2),pe("routerLink",jl(7,lP)))},directives:[nr],pipes:[Rc],styles:[""]}),t})();const dP=function(){return["/customers"]},fP=[{path:"",component:qD},{path:"home",component:qD},{path:"jobs",component:tP},{path:"customers",component:uP},{path:"job/:id",component:cP},{path:"customer/:id",component:(()=>{class t{constructor(n,r){this.route=n,this.customerService=r,this.customerId=n.snapshot.params.id}ngOnInit(){this.customerService.GetCustomer(this.customerId).subscribe(n=>this.customer=n)}}return t.\u0275fac=function(n){return new(n||t)(y(kn),y(GD))},t.\u0275cmp=tn({type:t,selectors:[["app-customer-detail"]],decls:8,vars:5,consts:[[3,"routerLink"]],template:function(n,r){1&n&&(E(0,"p"),B(1),M(),E(2,"p"),B(3),M(),E(4,"p"),B(5),M(),E(6,"a",0),B(7,"Back"),M()),2&n&&(Q(1),ln("CustomerId: ",r.customer.customerId,""),Q(2),ln("Type: ",r.customer.type,""),Q(2),ln("Name: ",r.customer.name,""),Q(1),pe("routerLink",jl(4,dP)))},directives:[nr],styles:[""]}),t})()}];let hP=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t}),t.\u0275inj=Xe({imports:[[BD.forRoot(fP)],BD]}),t})(),pP=(()=>{class t{constructor(){this.title="ui"}}return t.\u0275fac=function(n){return new(n||t)},t.\u0275cmp=tn({type:t,selectors:[["app-root"]],decls:8,vars:0,consts:[["href","/home"],["href","/jobs"],["href","/customers"]],template:function(n,r){1&n&&(E(0,"nav"),E(1,"a",0),B(2,"home"),M(),E(3,"a",1),B(4,"jobs"),M(),E(5,"a",2),B(6,"customers"),M(),M(),Bo(7,"router-outlet"))},directives:[Fd],styles:["nav[_ngcontent-%COMP%]{background-color:#002987}nav[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{color:#fff;padding:20px 50px;display:inline-block;text-decoration:none;text-transform:capitalize;border-right:1px solid green}"]}),t})(),gP=(()=>{class t{}return t.\u0275fac=function(n){return new(n||t)},t.\u0275mod=ft({type:t,bootstrap:[pP]}),t.\u0275inj=Xe({providers:[],imports:[[YN,zx,pR,hP]]}),t})();Gx().bootstrapModule(gP).catch(t=>console.error(t))}},Ln=>{Ln(Ln.s=73)}]); \ No newline at end of file diff --git a/ui/src/app/app-routing.module.ts b/ui/src/app/app-routing.module.ts index 1670d30..53a7821 100644 --- a/ui/src/app/app-routing.module.ts +++ b/ui/src/app/app-routing.module.ts @@ -4,6 +4,7 @@ import { JobComponent } from './job/job.component'; import { CustomerComponent } from './customer/customer.component'; import { HomeComponent } from './home/home.component'; import { JobDetailComponent } from './job-detail/job-detail.component'; +import { CustomerDetailComponent } from './customer-detail/customer-detail.component'; const routes: Routes = [ @@ -11,7 +12,8 @@ const routes: Routes = [ { path: 'home', component: HomeComponent }, { path: 'jobs', component: JobComponent }, { path: 'customers', component: CustomerComponent }, - { path: 'job/:id', component: JobDetailComponent } + { path: 'job/:id', component: JobDetailComponent }, + { path: 'customer/:id', component: CustomerDetailComponent } ]; @NgModule({ diff --git a/ui/src/app/app.module.ts b/ui/src/app/app.module.ts index 64a2491..7eddfd6 100644 --- a/ui/src/app/app.module.ts +++ b/ui/src/app/app.module.ts @@ -9,6 +9,7 @@ import { JobComponent } from './job/job.component'; import { CustomerComponent } from './customer/customer.component'; import { HomeComponent } from './home/home.component'; import { JobDetailComponent } from './job-detail/job-detail.component'; +import { CustomerDetailComponent } from './customer-detail/customer-detail.component'; @NgModule({ declarations: [ @@ -16,7 +17,8 @@ import { JobDetailComponent } from './job-detail/job-detail.component'; JobComponent, CustomerComponent, HomeComponent, - JobDetailComponent + JobDetailComponent, + CustomerDetailComponent ], imports: [ FormsModule, diff --git a/ui/src/app/customer-detail/customer-detail.component.html b/ui/src/app/customer-detail/customer-detail.component.html new file mode 100644 index 0000000..0340519 --- /dev/null +++ b/ui/src/app/customer-detail/customer-detail.component.html @@ -0,0 +1,7 @@ +

CustomerId: {{customer.customerId}}

+

Type: {{customer.type}}

+

Name: {{customer.name}}

+ +Back + + diff --git a/ui/src/app/customer-detail/customer-detail.component.scss b/ui/src/app/customer-detail/customer-detail.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/ui/src/app/customer-detail/customer-detail.component.ts b/ui/src/app/customer-detail/customer-detail.component.ts new file mode 100644 index 0000000..a4b4c33 --- /dev/null +++ b/ui/src/app/customer-detail/customer-detail.component.ts @@ -0,0 +1,27 @@ +import { Component, OnInit } from '@angular/core'; +import { ActivatedRoute } from '@angular/router'; +import { CustomerService } from '../services/customer.service'; +import { CustomerModel } from '../models/customer.model'; + +@Component({ + selector: 'app-customer-detail', + templateUrl: './customer-detail.component.html', + styleUrls: ['./customer-detail.component.scss'] +}) +export class CustomerDetailComponent implements OnInit { + + private customerId: number; + + public customer: CustomerModel; + + constructor( + private route: ActivatedRoute, + private customerService: CustomerService) { + this.customerId = route.snapshot.params.id; + } + + ngOnInit() { + this.customerService.GetCustomer(this.customerId).subscribe(customer => this.customer = customer); + } + +}
NameTypeEngineerWhen
{{customer.name}}{{customer.type'}}
{{job.engineer}}{{job.when | date:'shortDate'}} - Open + Open