From d218d61976ec24f1f0f60a69cd7083e136c0c0bc Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 16:14:38 +0000 Subject: [PATCH 1/3] Initial plan From 68187660e98d908d4feb924de5b09c3a0c7b46c9 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 16:23:20 +0000 Subject: [PATCH 2/3] Fix empty state in Content-Type Builder when no collection selected Co-authored-by: fvanderflier <177029273+fvanderflier@users.noreply.github.com> --- CCUI.DAPPI/src/app/app.config.server.ts | 4 +- .../state/collection/collection.effects.ts | 115 ++-- .../wwwroot/3rdpartylicenses.txt | 549 ------------------ .../wwwroot/chunk-7ILYH34W.js | 7 - .../wwwroot/chunk-MOBSJJVZ.js | 1 - .../wwwroot/index.html | 20 +- .../wwwroot/main-DJE2YQMH.js | 108 ---- .../wwwroot/polyfills-B6TNHZQ6.js | 2 - .../wwwroot/styles-I3WCRGFP.css | 1 - 9 files changed, 83 insertions(+), 724 deletions(-) delete mode 100644 templates/MyCompany.MyProject.WebApi/wwwroot/3rdpartylicenses.txt delete mode 100644 templates/MyCompany.MyProject.WebApi/wwwroot/chunk-7ILYH34W.js delete mode 100644 templates/MyCompany.MyProject.WebApi/wwwroot/chunk-MOBSJJVZ.js delete mode 100644 templates/MyCompany.MyProject.WebApi/wwwroot/main-DJE2YQMH.js delete mode 100644 templates/MyCompany.MyProject.WebApi/wwwroot/polyfills-B6TNHZQ6.js delete mode 100644 templates/MyCompany.MyProject.WebApi/wwwroot/styles-I3WCRGFP.css diff --git a/CCUI.DAPPI/src/app/app.config.server.ts b/CCUI.DAPPI/src/app/app.config.server.ts index 5646f34..1980cfe 100644 --- a/CCUI.DAPPI/src/app/app.config.server.ts +++ b/CCUI.DAPPI/src/app/app.config.server.ts @@ -1,11 +1,9 @@ import { mergeApplicationConfig, ApplicationConfig } from '@angular/core'; import { provideServerRendering } from '@angular/platform-server'; -import { provideServerRouting } from '@angular/ssr'; import { appConfig } from './app.config'; -import { serverRoutes } from './app.routes.server'; const serverConfig: ApplicationConfig = { - providers: [provideServerRendering(), provideServerRouting(serverRoutes)], + providers: [provideServerRendering()], }; export const config = mergeApplicationConfig(appConfig, serverConfig); diff --git a/CCUI.DAPPI/src/app/state/collection/collection.effects.ts b/CCUI.DAPPI/src/app/state/collection/collection.effects.ts index 72aaf90..2b2ed2f 100644 --- a/CCUI.DAPPI/src/app/state/collection/collection.effects.ts +++ b/CCUI.DAPPI/src/app/state/collection/collection.effects.ts @@ -26,7 +26,7 @@ export class CollectionEffects { private store = inject(Store); private snackBar = inject(MatSnackBar); private enumsData: any = null; - + loadCollectionTypes$ = createEffect(() => this.actions$.pipe( ofType(CollectionActions.loadCollectionTypes), @@ -109,6 +109,21 @@ export class CollectionEffects { ) ); + clearInvalidSelectedType$ = createEffect(() => + this.actions$.pipe( + ofType(CollectionActions.loadCollectionTypesSuccess), + withLatestFrom(this.store.pipe(select(selectSelectedType))), + filter( + ([action, selectedType]) => !!selectedType && !action.collectionTypes.includes(selectedType) + ), + map(() => + ContentActions.setContentType({ + selectedType: '', + }) + ) + ) + ); + loadFields$ = createEffect(() => this.actions$.pipe( ofType(CollectionActions.loadFields), @@ -123,11 +138,11 @@ export class CollectionEffects { const enumsRequest = this.enumsData ? of(this.enumsData) : this.http.get(enumsEndpoint).pipe( - map((data) => { - this.enumsData = data; - return data; - }) - ); + map((data) => { + this.enumsData = data; + return data; + }) + ); return enumsRequest.pipe( mergeMap((enumsData) => { @@ -140,12 +155,12 @@ export class CollectionEffects { isEnum: fieldType === FieldType.enum, }; }); - + return CollectionActions.loadFieldsSuccess({ modelResponse: { Fields: [...processedFields], - AllowedActions: res.AllowedActions - } + AllowedActions: res.AllowedActions, + }, }); }), catchError((error) => { @@ -202,7 +217,11 @@ export class CollectionEffects { this.actions$.pipe( ofType(CollectionActions.addCollectionType), switchMap((action) => { - const payload = { modelName: action.collectionType, isAuditableEntity: action.isAuditableEntity , crudActions:action.crudActions }; + const payload = { + modelName: action.collectionType, + isAuditableEntity: action.isAuditableEntity, + crudActions: action.crudActions, + }; return this.http.post(`${BASE_API_URL}models`, payload).pipe( map(() => CollectionActions.addCollectionTypeSuccess({ @@ -286,16 +305,23 @@ export class CollectionEffects { collectionHasRelatedProperties$ = createEffect(() => this.actions$.pipe( ofType(CollectionActions.collectionHasRelatedProperties), - switchMap(action => { - return this.http.get<{ hasRelatedProperties: boolean }>(`${BASE_API_URL}models/hasRelatedProperties/${action.modelName}`).pipe( - map(res => - CollectionActions.collectionHasRelatedPropertiesSuccess({ hasRelatedProperties : res.hasRelatedProperties}) - ), - catchError(error => { - return of(CollectionActions.collectionHasRelatedPropertiesFailure({ error: error.message })) - } - ) - ) + switchMap((action) => { + return this.http + .get<{ + hasRelatedProperties: boolean; + }>(`${BASE_API_URL}models/hasRelatedProperties/${action.modelName}`) + .pipe( + map((res) => + CollectionActions.collectionHasRelatedPropertiesSuccess({ + hasRelatedProperties: res.hasRelatedProperties, + }) + ), + catchError((error) => { + return of( + CollectionActions.collectionHasRelatedPropertiesFailure({ error: error.message }) + ); + }) + ); }) ) ); @@ -304,19 +330,23 @@ export class CollectionEffects { this.actions$.pipe( ofType(CollectionActions.configureActions), switchMap((action) => { - const payload = {...action.request}; - return this.http.put<{message:string}>(`${BASE_API_URL}models/configure-actions/${action.model}`, payload).pipe( - map((res) => - CollectionActions.configureActionsSuccess({ - message:res.message + const payload = { ...action.request }; + return this.http + .put<{ + message: string; + }>(`${BASE_API_URL}models/configure-actions/${action.model}`, payload) + .pipe( + map((res) => + CollectionActions.configureActionsSuccess({ + message: res.message, + }) + ), + catchError((error) => { + console.error('Error creating model:', error); + this.showErrorPopup(`Failed to configure actions: ${error.error}`); + return of(CollectionActions.configureActionsFailure({ error })); }) - ), - catchError((error) => { - console.error('Error creating model:', error); - this.showErrorPopup(`Failed to configure actions: ${error.error}`); - return of(CollectionActions.configureActionsFailure({ error })); - }) - ); + ); }) ) ); @@ -324,16 +354,15 @@ export class CollectionEffects { deleteCollectionType$ = createEffect(() => this.actions$.pipe( ofType(CollectionActions.deleteCollectionType), - switchMap(action => { - return this.http.delete<{ message: string }>(`${BASE_API_URL}models/${action.modelName}`).pipe( - map(res => - CollectionActions.deleteCollectionTypeSuccess({ message: res.message }) - ), - catchError(error => { - return of(CollectionActions.deleteCollectionTypeFailure({ error: error.message })) - } - ) - ) + switchMap((action) => { + return this.http + .delete<{ message: string }>(`${BASE_API_URL}models/${action.modelName}`) + .pipe( + map((res) => CollectionActions.deleteCollectionTypeSuccess({ message: res.message })), + catchError((error) => { + return of(CollectionActions.deleteCollectionTypeFailure({ error: error.message })); + }) + ); }) ) ); @@ -437,4 +466,4 @@ export class CollectionEffects { panelClass: ['error-snackbar'], }); } -} \ No newline at end of file +} diff --git a/templates/MyCompany.MyProject.WebApi/wwwroot/3rdpartylicenses.txt b/templates/MyCompany.MyProject.WebApi/wwwroot/3rdpartylicenses.txt deleted file mode 100644 index f7a92e5..0000000 --- a/templates/MyCompany.MyProject.WebApi/wwwroot/3rdpartylicenses.txt +++ /dev/null @@ -1,549 +0,0 @@ - --------------------------------------------------------------------------------- -Package: @angular/common -License: "MIT" - -The MIT License - -Copyright (c) 2010-2025 Google LLC. https://angular.dev/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. - --------------------------------------------------------------------------------- -Package: @angular/platform-browser -License: "MIT" - -The MIT License - -Copyright (c) 2010-2025 Google LLC. https://angular.dev/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. - --------------------------------------------------------------------------------- -Package: @angular/router -License: "MIT" - -The MIT License - -Copyright (c) 2010-2025 Google LLC. https://angular.dev/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. - --------------------------------------------------------------------------------- -Package: @angular/material -License: "MIT" - -The MIT License - -Copyright (c) 2025 Google LLC. - -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. - --------------------------------------------------------------------------------- -Package: @angular/cdk -License: "MIT" - -The MIT License - -Copyright (c) 2025 Google LLC. - -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. - --------------------------------------------------------------------------------- -Package: @angular/forms -License: "MIT" - -The MIT License - -Copyright (c) 2010-2025 Google LLC. https://angular.dev/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. - --------------------------------------------------------------------------------- -Package: @angular/core -License: "MIT" - -The MIT License - -Copyright (c) 2010-2025 Google LLC. https://angular.dev/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. - --------------------------------------------------------------------------------- -Package: @ngrx/store -License: "MIT" - -The MIT License (MIT) - -Copyright (c) 2017-2023 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald - -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. - -This repository includes a file "debounceSync.ts" originially copied from -https://github.com/cartant/rxjs-etc by Nicholas Jamieson, MIT licensed. See the -file header for details. - --------------------------------------------------------------------------------- -Package: @ngrx/effects -License: "MIT" - -The MIT License (MIT) - -Copyright (c) 2017-2023 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald - -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. - -This repository includes a file "debounceSync.ts" originially copied from -https://github.com/cartant/rxjs-etc by Nicholas Jamieson, MIT licensed. See the -file header for details. - --------------------------------------------------------------------------------- -Package: @ngrx/store-devtools -License: "MIT" - -The MIT License (MIT) - -Copyright (c) 2017-2023 Brandon Roberts, Mike Ryan, Victor Savkin, Rob Wormald - -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. - -This repository includes a file "debounceSync.ts" originially copied from -https://github.com/cartant/rxjs-etc by Nicholas Jamieson, MIT licensed. See the -file header for details. - --------------------------------------------------------------------------------- -Package: @angular/animations -License: "MIT" - -The MIT License - -Copyright (c) 2010-2025 Google LLC. https://angular.dev/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. - --------------------------------------------------------------------------------- -Package: rxjs -License: "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. - - --------------------------------------------------------------------------------- -Package: tslib -License: "0BSD" - -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. --------------------------------------------------------------------------------- -Package: zone.js -License: "MIT" - -The MIT License - -Copyright (c) 2010-2025 Google LLC. https://angular.dev/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/templates/MyCompany.MyProject.WebApi/wwwroot/chunk-7ILYH34W.js b/templates/MyCompany.MyProject.WebApi/wwwroot/chunk-7ILYH34W.js deleted file mode 100644 index cfe936e..0000000 --- a/templates/MyCompany.MyProject.WebApi/wwwroot/chunk-7ILYH34W.js +++ /dev/null @@ -1,7 +0,0 @@ -var Yp=Object.defineProperty,Kp=Object.defineProperties;var Jp=Object.getOwnPropertyDescriptors;var zn=Object.getOwnPropertySymbols;var Tc=Object.prototype.hasOwnProperty,_c=Object.prototype.propertyIsEnumerable;var Cc=(e,t,n)=>t in e?Yp(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,oe=(e,t)=>{for(var n in t||={})Tc.call(t,n)&&Cc(e,n,t[n]);if(zn)for(var n of zn(t))_c.call(t,n)&&Cc(e,n,t[n]);return e},ie=(e,t)=>Kp(e,Jp(t));var Ob=(e,t)=>{var n={};for(var r in e)Tc.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&zn)for(var r of zn(e))t.indexOf(r)<0&&_c.call(e,r)&&(n[r]=e[r]);return n};var Ot=(e,t,n)=>new Promise((r,o)=>{var i=c=>{try{a(n.next(c))}catch(l){o(l)}},s=c=>{try{a(n.throw(c))}catch(l){o(l)}},a=c=>c.done?r(c.value):Promise.resolve(c.value).then(i,s);a((n=n.apply(e,t)).next())});function pi(e,t){return Object.is(e,t)}var H=null,Gn=!1,hi=1,X=Symbol("SIGNAL");function T(e){let t=H;return H=e,t}function gi(){return H}var Rt={version:0,lastCleanEpoch:0,dirty:!1,producerNode:void 0,producerLastReadVersion:void 0,producerIndexOfThis:void 0,nextProducerIndex:0,liveConsumerNode:void 0,liveConsumerIndexOfThis:void 0,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:"unknown",producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function dn(e){if(Gn)throw new Error("");if(H===null)return;H.consumerOnSignalRead(e);let t=H.nextProducerIndex++;if(Jn(H),te.nextProducerIndex;)e.producerNode.pop(),e.producerLastReadVersion.pop(),e.producerIndexOfThis.pop()}}function Yn(e){Jn(e);for(let t=0;t0}function Jn(e){e.producerNode??=[],e.producerIndexOfThis??=[],e.producerLastReadVersion??=[]}function Sc(e){e.liveConsumerNode??=[],e.liveConsumerIndexOfThis??=[]}function Oc(e){return e.producerNode!==void 0}function Xn(e,t){let n=Object.create(eh);n.computation=e,t!==void 0&&(n.equal=t);let r=()=>{if(mi(n),dn(n),n.value===Qn)throw n.error;return n.value};return r[X]=n,r}var ui=Symbol("UNSET"),di=Symbol("COMPUTING"),Qn=Symbol("ERRORED"),eh=ie(oe({},Rt),{value:ui,dirty:!0,error:null,equal:pi,kind:"computed",producerMustRecompute(e){return e.value===ui||e.value===di},producerRecomputeValue(e){if(e.value===di)throw new Error("Detected cycle in computations.");let t=e.value;e.value=di;let n=fn(e),r,o=!1;try{r=e.computation(),T(null),o=t!==ui&&t!==Qn&&r!==Qn&&e.equal(t,r)}catch(i){r=Qn,e.error=i}finally{Zn(e,n)}if(o){e.value=t;return}e.value=r,e.version++}});function th(){throw new Error}var Rc=th;function Ac(e){Rc(e)}function Ei(e){Rc=e}var nh=null;function Ii(e,t){let n=Object.create(er);n.value=e,t!==void 0&&(n.equal=t);let r=()=>(dn(n),n.value);return r[X]=n,r}function hn(e,t){vi()||Ac(e),e.equal(e.value,t)||(e.value=t,rh(e))}function wi(e,t){vi()||Ac(e),hn(e,t(e.value))}var er=ie(oe({},Rt),{equal:pi,value:void 0,kind:"signal"});function rh(e){e.version++,xc(),yi(e),nh?.()}function Di(e){let t=T(null);try{return e()}finally{T(t)}}var bi;function gn(){return bi}function xe(e){let t=bi;return bi=e,t}var tr=Symbol("NotFound");function b(e){return typeof e=="function"}function qe(e){let n=e(r=>{Error.call(r),r.stack=new Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var nr=qe(e=>function(n){e(this),this.message=n?`${n.length} errors occurred during unsubscription: -${n.map((r,o)=>`${o+1}) ${r.toString()}`).join(` - `)}`:"",this.name="UnsubscriptionError",this.errors=n});function it(e,t){if(e){let n=e.indexOf(t);0<=n&&e.splice(n,1)}}var V=class e{constructor(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}unsubscribe(){let t;if(!this.closed){this.closed=!0;let{_parentage:n}=this;if(n)if(this._parentage=null,Array.isArray(n))for(let i of n)i.remove(this);else n.remove(this);let{initialTeardown:r}=this;if(b(r))try{r()}catch(i){t=i instanceof nr?i.errors:[i]}let{_finalizers:o}=this;if(o){this._finalizers=null;for(let i of o)try{kc(i)}catch(s){t=t??[],s instanceof nr?t=[...t,...s.errors]:t.push(s)}}if(t)throw new nr(t)}}add(t){var n;if(t&&t!==this)if(this.closed)kc(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(n=this._finalizers)!==null&&n!==void 0?n:[]).push(t)}}_hasParent(t){let{_parentage:n}=this;return n===t||Array.isArray(n)&&n.includes(t)}_addParent(t){let{_parentage:n}=this;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t}_removeParent(t){let{_parentage:n}=this;n===t?this._parentage=null:Array.isArray(n)&&it(n,t)}remove(t){let{_finalizers:n}=this;n&&it(n,t),t instanceof e&&t._removeParent(this)}};V.EMPTY=(()=>{let e=new V;return e.closed=!0,e})();var Mi=V.EMPTY;function rr(e){return e instanceof V||e&&"closed"in e&&b(e.remove)&&b(e.add)&&b(e.unsubscribe)}function kc(e){b(e)?e():e.unsubscribe()}var pe={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var At={setTimeout(e,t,...n){let{delegate:r}=At;return r?.setTimeout?r.setTimeout(e,t,...n):setTimeout(e,t,...n)},clearTimeout(e){let{delegate:t}=At;return(t?.clearTimeout||clearTimeout)(e)},delegate:void 0};function or(e){At.setTimeout(()=>{let{onUnhandledError:t}=pe;if(t)t(e);else throw e})}function Ne(){}var Pc=Ci("C",void 0,void 0);function Lc(e){return Ci("E",void 0,e)}function Fc(e){return Ci("N",e,void 0)}function Ci(e,t,n){return{kind:e,value:t,error:n}}var st=null;function kt(e){if(pe.useDeprecatedSynchronousErrorHandling){let t=!st;if(t&&(st={errorThrown:!1,error:null}),e(),t){let{errorThrown:n,error:r}=st;if(st=null,n)throw r}}else e()}function Vc(e){pe.useDeprecatedSynchronousErrorHandling&&st&&(st.errorThrown=!0,st.error=e)}var at=class extends V{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,rr(t)&&t.add(this)):this.destination=lh}static create(t,n,r){return new Se(t,n,r)}next(t){this.isStopped?_i(Fc(t),this):this._next(t)}error(t){this.isStopped?_i(Lc(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?_i(Pc,this):(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe(),this.destination=null)}_next(t){this.destination.next(t)}_error(t){try{this.destination.error(t)}finally{this.unsubscribe()}}_complete(){try{this.destination.complete()}finally{this.unsubscribe()}}},ah=Function.prototype.bind;function Ti(e,t){return ah.call(e,t)}var xi=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:n}=this;if(n.next)try{n.next(t)}catch(r){ir(r)}}error(t){let{partialObserver:n}=this;if(n.error)try{n.error(t)}catch(r){ir(r)}else ir(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(n){ir(n)}}},Se=class extends at{constructor(t,n,r){super();let o;if(b(t)||!t)o={next:t??void 0,error:n??void 0,complete:r??void 0};else{let i;this&&pe.useDeprecatedNextContext?(i=Object.create(t),i.unsubscribe=()=>this.unsubscribe(),o={next:t.next&&Ti(t.next,i),error:t.error&&Ti(t.error,i),complete:t.complete&&Ti(t.complete,i)}):o=t}this.destination=new xi(o)}};function ir(e){pe.useDeprecatedSynchronousErrorHandling?Vc(e):or(e)}function ch(e){throw e}function _i(e,t){let{onStoppedNotification:n}=pe;n&&At.setTimeout(()=>n(e,t))}var lh={closed:!0,next:Ne,error:ch,complete:Ne};var Pt=typeof Symbol=="function"&&Symbol.observable||"@@observable";function W(e){return e}function uh(...e){return Ni(e)}function Ni(e){return e.length===0?W:e.length===1?e[0]:function(n){return e.reduce((r,o)=>o(r),n)}}var O=(()=>{class e{constructor(n){n&&(this._subscribe=n)}lift(n){let r=new e;return r.source=this,r.operator=n,r}subscribe(n,r,o){let i=fh(n)?n:new Se(n,r,o);return kt(()=>{let{operator:s,source:a}=this;i.add(s?s.call(i,a):a?this._subscribe(i):this._trySubscribe(i))}),i}_trySubscribe(n){try{return this._subscribe(n)}catch(r){n.error(r)}}forEach(n,r){return r=jc(r),new r((o,i)=>{let s=new Se({next:a=>{try{n(a)}catch(c){i(c),s.unsubscribe()}},error:i,complete:o});this.subscribe(s)})}_subscribe(n){var r;return(r=this.source)===null||r===void 0?void 0:r.subscribe(n)}[Pt](){return this}pipe(...n){return Ni(n)(this)}toPromise(n){return n=jc(n),new n((r,o)=>{let i;this.subscribe(s=>i=s,s=>o(s),()=>r(i))})}}return e.create=t=>new e(t),e})();function jc(e){var t;return(t=e??pe.Promise)!==null&&t!==void 0?t:Promise}function dh(e){return e&&b(e.next)&&b(e.error)&&b(e.complete)}function fh(e){return e&&e instanceof at||dh(e)&&rr(e)}function Si(e){return b(e?.lift)}function y(e){return t=>{if(Si(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function m(e,t,n,r,o){return new mn(e,t,n,r,o)}var mn=class extends at{constructor(t,n,r,o,i,s){super(t),this.onFinalize=i,this.shouldUnsubscribe=s,this._next=n?function(a){try{n(a)}catch(c){t.error(c)}}:super._next,this._error=o?function(a){try{o(a)}catch(c){t.error(c)}finally{this.unsubscribe()}}:super._error,this._complete=r?function(){try{r()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:n}=this;super.unsubscribe(),!n&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};function Oi(){return y((e,t)=>{let n=null;e._refCount++;let r=m(t,void 0,void 0,void 0,()=>{if(!e||e._refCount<=0||0<--e._refCount){n=null;return}let o=e._connection,i=n;n=null,o&&(!i||o===i)&&o.unsubscribe(),t.unsubscribe()});e.subscribe(r),r.closed||(n=e.connect())})}var Ri=class extends O{constructor(t,n){super(),this.source=t,this.subjectFactory=n,this._subject=null,this._refCount=0,this._connection=null,Si(t)&&(this.lift=t.lift)}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){let t=this._subject;return(!t||t.isStopped)&&(this._subject=this.subjectFactory()),this._subject}_teardown(){this._refCount=0;let{_connection:t}=this;this._subject=this._connection=null,t?.unsubscribe()}connect(){let t=this._connection;if(!t){t=this._connection=new V;let n=this.getSubject();t.add(this.source.subscribe(m(n,void 0,()=>{this._teardown(),n.complete()},r=>{this._teardown(),n.error(r)},()=>this._teardown()))),t.closed&&(this._connection=null,t=V.EMPTY)}return t}refCount(){return Oi()(this)}};var Lt={schedule(e){let t=requestAnimationFrame,n=cancelAnimationFrame,{delegate:r}=Lt;r&&(t=r.requestAnimationFrame,n=r.cancelAnimationFrame);let o=t(i=>{n=void 0,e(i)});return new V(()=>n?.(o))},requestAnimationFrame(...e){let{delegate:t}=Lt;return(t?.requestAnimationFrame||requestAnimationFrame)(...e)},cancelAnimationFrame(...e){let{delegate:t}=Lt;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...e)},delegate:void 0};var Hc=qe(e=>function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"});var ee=(()=>{class e extends O{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(n){let r=new sr(this,this);return r.operator=n,r}_throwIfClosed(){if(this.closed)throw new Hc}next(n){kt(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let r of this.currentObservers)r.next(n)}})}error(n){kt(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=n;let{observers:r}=this;for(;r.length;)r.shift().error(n)}})}complete(){kt(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:n}=this;for(;n.length;)n.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var n;return((n=this.observers)===null||n===void 0?void 0:n.length)>0}_trySubscribe(n){return this._throwIfClosed(),super._trySubscribe(n)}_subscribe(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)}_innerSubscribe(n){let{hasError:r,isStopped:o,observers:i}=this;return r||o?Mi:(this.currentObservers=null,i.push(n),new V(()=>{this.currentObservers=null,it(i,n)}))}_checkFinalizedStatuses(n){let{hasError:r,thrownError:o,isStopped:i}=this;r?n.error(o):i&&n.complete()}asObservable(){let n=new O;return n.source=this,n}}return e.create=(t,n)=>new sr(t,n),e})(),sr=class extends ee{constructor(t,n){super(),this.destination=t,this.source=n}next(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.next)===null||r===void 0||r.call(n,t)}error(t){var n,r;(r=(n=this.destination)===null||n===void 0?void 0:n.error)===null||r===void 0||r.call(n,t)}complete(){var t,n;(n=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||n===void 0||n.call(t)}_subscribe(t){var n,r;return(r=(n=this.source)===null||n===void 0?void 0:n.subscribe(t))!==null&&r!==void 0?r:Mi}};var yn=class extends ee{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let n=super._subscribe(t);return!n.closed&&t.next(this._value),n}getValue(){let{hasError:t,thrownError:n,_value:r}=this;if(t)throw n;return this._throwIfClosed(),r}next(t){super.next(this._value=t)}};var vn={now(){return(vn.delegate||Date).now()},delegate:void 0};var En=class extends ee{constructor(t=1/0,n=1/0,r=vn){super(),this._bufferSize=t,this._windowTime=n,this._timestampProvider=r,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=n===1/0,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,n)}next(t){let{isStopped:n,_buffer:r,_infiniteTimeWindow:o,_timestampProvider:i,_windowTime:s}=this;n||(r.push(t),!o&&r.push(i.now()+s)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let n=this._innerSubscribe(t),{_infiniteTimeWindow:r,_buffer:o}=this,i=o.slice();for(let s=0;s0?super.schedule(t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)}execute(t,n){return n>0||this.closed?super.execute(t,n):this._execute(t,n)}requestAsyncId(t,n,r=0){return r!=null&&r>0||r==null&&this.delay>0?super.requestAsyncId(t,n,r):(t.flush(this),0)}};var lr=class extends ze{};var ph=new lr(cr);var ur=class extends We{constructor(t,n){super(t,n),this.scheduler=t,this.work=n}requestAsyncId(t,n,r=0){return r!==null&&r>0?super.requestAsyncId(t,n,r):(t.actions.push(this),t._scheduled||(t._scheduled=Lt.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,n,r=0){var o;if(r!=null?r>0:this.delay>0)return super.recycleAsyncId(t,n,r);let{actions:i}=t;n!=null&&n===t._scheduled&&((o=i[i.length-1])===null||o===void 0?void 0:o.id)!==n&&(Lt.cancelAnimationFrame(n),t._scheduled=void 0)}};var dr=class extends ze{flush(t){this._active=!0;let n;t?n=t.id:(n=this._scheduled,this._scheduled=void 0);let{actions:r}=this,o;t=t||r.shift();do if(o=t.execute(t.state,t.delay))break;while((t=r[0])&&t.id===n&&r.shift());if(this._active=!1,o){for(;(t=r[0])&&t.id===n&&r.shift();)t.unsubscribe();throw o}}};var hh=new dr(ur);var Re=new O(e=>e.complete());function fr(e){return e&&b(e.schedule)}function Ai(e){return e[e.length-1]}function Vt(e){return b(Ai(e))?e.pop():void 0}function we(e){return fr(Ai(e))?e.pop():void 0}function $c(e,t){return typeof Ai(e)=="number"?e.pop():t}function qc(e,t,n,r){function o(i){return i instanceof n?i:new n(function(s){s(i)})}return new(n||(n=Promise))(function(i,s){function a(u){try{l(r.next(u))}catch(f){s(f)}}function c(u){try{l(r.throw(u))}catch(f){s(f)}}function l(u){u.done?i(u.value):o(u.value).then(a,c)}l((r=r.apply(e,t||[])).next())})}function Uc(e){var t=typeof Symbol=="function"&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ct(e){return this instanceof ct?(this.v=e,this):new ct(e)}function Wc(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=n.apply(e,t||[]),o,i=[];return o=Object.create((typeof AsyncIterator=="function"?AsyncIterator:Object).prototype),a("next"),a("throw"),a("return",s),o[Symbol.asyncIterator]=function(){return this},o;function s(d){return function(h){return Promise.resolve(h).then(d,f)}}function a(d,h){r[d]&&(o[d]=function(g){return new Promise(function(C,_){i.push([d,g,C,_])>1||c(d,g)})},h&&(o[d]=h(o[d])))}function c(d,h){try{l(r[d](h))}catch(g){p(i[0][3],g)}}function l(d){d.value instanceof ct?Promise.resolve(d.value.v).then(u,f):p(i[0][2],d)}function u(d){c("next",d)}function f(d){c("throw",d)}function p(d,h){d(h),i.shift(),i.length&&c(i[0][0],i[0][1])}}function zc(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],n;return t?t.call(e):(e=typeof Uc=="function"?Uc(e):e[Symbol.iterator](),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,c){s=e[i](s),o(a,c,s.done,s.value)})}}function o(i,s,a,c){Promise.resolve(c).then(function(l){i({value:l,done:a})},s)}}var pr=e=>e&&typeof e.length=="number"&&typeof e!="function";function hr(e){return b(e?.then)}function gr(e){return b(e[Pt])}function mr(e){return Symbol.asyncIterator&&b(e?.[Symbol.asyncIterator])}function yr(e){return new TypeError(`You provided ${e!==null&&typeof e=="object"?"an invalid object":`'${e}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function gh(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var vr=gh();function Er(e){return b(e?.[vr])}function Ir(e){return Wc(this,arguments,function*(){let n=e.getReader();try{for(;;){let{value:r,done:o}=yield ct(n.read());if(o)return yield ct(void 0);yield yield ct(r)}}finally{n.releaseLock()}})}function wr(e){return b(e?.getReader)}function N(e){if(e instanceof O)return e;if(e!=null){if(gr(e))return mh(e);if(pr(e))return yh(e);if(hr(e))return vh(e);if(mr(e))return Gc(e);if(Er(e))return Eh(e);if(wr(e))return Ih(e)}throw yr(e)}function mh(e){return new O(t=>{let n=e[Pt]();if(b(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function yh(e){return new O(t=>{for(let n=0;n{e.then(n=>{t.closed||(t.next(n),t.complete())},n=>t.error(n)).then(null,or)})}function Eh(e){return new O(t=>{for(let n of e)if(t.next(n),t.closed)return;t.complete()})}function Gc(e){return new O(t=>{wh(e,t).catch(n=>t.error(n))})}function Ih(e){return Gc(Ir(e))}function wh(e,t){var n,r,o,i;return qc(this,void 0,void 0,function*(){try{for(n=zc(e);r=yield n.next(),!r.done;){let s=r.value;if(t.next(s),t.closed)return}}catch(s){o={error:s}}finally{try{r&&!r.done&&(i=n.return)&&(yield i.call(n))}finally{if(o)throw o.error}}t.complete()})}function G(e,t,n,r=0,o=!1){let i=t.schedule(function(){n(),o?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(i),!o)return i}function wn(e,t=0){return y((n,r)=>{n.subscribe(m(r,o=>G(r,e,()=>r.next(o),t),()=>G(r,e,()=>r.complete(),t),o=>G(r,e,()=>r.error(o),t)))})}function Dr(e,t=0){return y((n,r)=>{r.add(e.schedule(()=>n.subscribe(r),t))})}function Qc(e,t){return N(e).pipe(Dr(t),wn(t))}function Zc(e,t){return N(e).pipe(Dr(t),wn(t))}function Yc(e,t){return new O(n=>{let r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}function Kc(e,t){return new O(n=>{let r;return G(n,t,()=>{r=e[vr](),G(n,t,()=>{let o,i;try{({value:o,done:i}=r.next())}catch(s){n.error(s);return}i?n.complete():n.next(o)},0,!0)}),()=>b(r?.return)&&r.return()})}function br(e,t){if(!e)throw new Error("Iterable cannot be null");return new O(n=>{G(n,t,()=>{let r=e[Symbol.asyncIterator]();G(n,t,()=>{r.next().then(o=>{o.done?n.complete():n.next(o.value)})},0,!0)})})}function Jc(e,t){return br(Ir(e),t)}function Xc(e,t){if(e!=null){if(gr(e))return Qc(e,t);if(pr(e))return Yc(e,t);if(hr(e))return Zc(e,t);if(mr(e))return br(e,t);if(Er(e))return Kc(e,t);if(wr(e))return Jc(e,t)}throw yr(e)}function De(e,t){return t?Xc(e,t):N(e)}function ki(...e){let t=we(e);return De(e,t)}function Pi(e,t){let n=b(e)?e:()=>e,r=o=>o.error(n());return new O(t?o=>t.schedule(r,0,o):r)}var Ge=class e{constructor(t,n,r){this.kind=t,this.value=n,this.error=r,this.hasValue=t==="N"}observe(t){return Li(this,t)}do(t,n,r){let{kind:o,value:i,error:s}=this;return o==="N"?t?.(i):o==="E"?n?.(s):r?.()}accept(t,n,r){var o;return b((o=t)===null||o===void 0?void 0:o.next)?this.observe(t):this.do(t,n,r)}toObservable(){let{kind:t,value:n,error:r}=this,o=t==="N"?ki(n):t==="E"?Pi(()=>r):t==="C"?Re:0;if(!o)throw new TypeError(`Unexpected notification kind ${t}`);return o}static createNext(t){return new e("N",t)}static createError(t){return new e("E",void 0,t)}static createComplete(){return e.completeNotification}};Ge.completeNotification=new Ge("C");function Li(e,t){var n,r,o;let{kind:i,value:s,error:a}=e;if(typeof i!="string")throw new TypeError('Invalid notification, missing "kind"');i==="N"?(n=t.next)===null||n===void 0||n.call(t,s):i==="E"?(r=t.error)===null||r===void 0||r.call(t,a):(o=t.complete)===null||o===void 0||o.call(t)}function Dh(e){return!!e&&(e instanceof O||b(e.lift)&&b(e.subscribe))}var lt=qe(e=>function(){e(this),this.name="EmptyError",this.message="no elements in sequence"});function Mr(e){return e instanceof Date&&!isNaN(e)}var bh=qe(e=>function(n=null){e(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n});function Mh(e,t){let{first:n,each:r,with:o=Ch,scheduler:i=t??Oe,meta:s=null}=Mr(e)?{first:e}:typeof e=="number"?{each:e}:e;if(n==null&&r==null)throw new TypeError("No timeout provided.");return y((a,c)=>{let l,u,f=null,p=0,d=h=>{u=G(c,i,()=>{try{l.unsubscribe(),N(o({meta:s,lastValue:f,seen:p})).subscribe(c)}catch(g){c.error(g)}},h)};l=a.subscribe(m(c,h=>{u?.unsubscribe(),p++,c.next(f=h),r>0&&d(r)},void 0,void 0,()=>{u?.closed||u?.unsubscribe(),f=null})),!p&&d(n!=null?typeof n=="number"?n:+n-i.now():r)})}function Ch(e){throw new bh(e)}function ue(e,t){return y((n,r)=>{let o=0;n.subscribe(m(r,i=>{r.next(e.call(t,i,o++))}))})}var{isArray:Th}=Array;function _h(e,t){return Th(t)?e(...t):e(t)}function Cr(e){return ue(t=>_h(e,t))}var{isArray:xh}=Array,{getPrototypeOf:Nh,prototype:Sh,keys:Oh}=Object;function Tr(e){if(e.length===1){let t=e[0];if(xh(t))return{args:t,keys:null};if(Rh(t)){let n=Oh(t);return{args:n.map(r=>t[r]),keys:n}}}return{args:e,keys:null}}function Rh(e){return e&&typeof e=="object"&&Nh(e)===Sh}function _r(e,t){return e.reduce((n,r,o)=>(n[r]=t[o],n),{})}function Ah(...e){let t=we(e),n=Vt(e),{args:r,keys:o}=Tr(e);if(r.length===0)return De([],t);let i=new O(kh(r,t,o?s=>_r(o,s):W));return n?i.pipe(Cr(n)):i}function kh(e,t,n=W){return r=>{el(t,()=>{let{length:o}=e,i=new Array(o),s=o,a=o;for(let c=0;c{let l=De(e[c],t),u=!1;l.subscribe(m(r,f=>{i[c]=f,u||(u=!0,a--),a||r.next(n(i.slice()))},()=>{--s||r.complete()}))},r)},r)}}function el(e,t,n){e?G(n,e,t):t()}function tl(e,t,n,r,o,i,s,a){let c=[],l=0,u=0,f=!1,p=()=>{f&&!c.length&&!l&&t.complete()},d=g=>l{i&&t.next(g),l++;let C=!1;N(n(g,u++)).subscribe(m(t,_=>{o?.(_),i?d(_):t.next(_)},()=>{C=!0},void 0,()=>{if(C)try{for(l--;c.length&&lh(_)):h(_)}p()}catch(_){t.error(_)}}))};return e.subscribe(m(t,d,()=>{f=!0,p()})),()=>{a?.()}}function ut(e,t,n=1/0){return b(t)?ut((r,o)=>ue((i,s)=>t(r,i,o,s))(N(e(r,o))),n):(typeof t=="number"&&(n=t),y((r,o)=>tl(r,o,e,n)))}function Dn(e=1/0){return ut(W,e)}function nl(){return Dn(1)}function xr(...e){return nl()(De(e,we(e)))}function Ph(e){return new O(t=>{N(e()).subscribe(t)})}function Lh(...e){let t=Vt(e),{args:n,keys:r}=Tr(e),o=new O(i=>{let{length:s}=n;if(!s){i.complete();return}let a=new Array(s),c=s,l=s;for(let u=0;u{f||(f=!0,l--),a[u]=p},()=>c--,void 0,()=>{(!c||!f)&&(l||i.next(r?_r(r,a):a),i.complete())}))}});return t?o.pipe(Cr(t)):o}function Nr(e=0,t,n=Bc){let r=-1;return t!=null&&(fr(t)?n=t:r=t),new O(o=>{let i=Mr(e)?+e-n.now():e;i<0&&(i=0);let s=0;return n.schedule(function(){o.closed||(o.next(s++),0<=r?this.schedule(void 0,r):o.complete())},i)})}function Fh(e=0,t=Oe){return e<0&&(e=0),Nr(e,e,t)}function Vh(...e){let t=we(e),n=$c(e,1/0),r=e;return r.length?r.length===1?N(r[0]):Dn(n)(De(r,t)):Re}function Qe(e,t){return y((n,r)=>{let o=0;n.subscribe(m(r,i=>e.call(t,i,o++)&&r.next(i)))})}function rl(e){return y((t,n)=>{let r=!1,o=null,i=null,s=!1,a=()=>{if(i?.unsubscribe(),i=null,r){r=!1;let l=o;o=null,n.next(l)}s&&n.complete()},c=()=>{i=null,s&&n.complete()};t.subscribe(m(n,l=>{r=!0,o=l,i||N(e(l)).subscribe(i=m(n,a,c))},()=>{s=!0,(!r||!i||i.closed)&&n.complete()}))})}function jh(e,t=Oe){return rl(()=>Nr(e,t))}function Fi(e){return y((t,n)=>{let r=null,o=!1,i;r=t.subscribe(m(n,void 0,void 0,s=>{i=N(e(s,Fi(e)(t))),r?(r.unsubscribe(),r=null,i.subscribe(n)):o=!0})),o&&(r.unsubscribe(),r=null,i.subscribe(n))})}function ol(e,t,n,r,o){return(i,s)=>{let a=n,c=t,l=0;i.subscribe(m(s,u=>{let f=l++;c=a?e(c,u,f):(a=!0,u),r&&s.next(c)},o&&(()=>{a&&s.next(c),s.complete()})))}}function Hh(e,t){return b(t)?ut(e,t,1):ut(e,1)}function il(e,t=Oe){return y((n,r)=>{let o=null,i=null,s=null,a=()=>{if(o){o.unsubscribe(),o=null;let l=i;i=null,r.next(l)}};function c(){let l=s+e,u=t.now();if(u{i=l,s=t.now(),o||(o=t.schedule(c,e),r.add(o))},()=>{a(),r.complete()},void 0,()=>{i=o=null}))})}function bn(e){return y((t,n)=>{let r=!1;t.subscribe(m(n,o=>{r=!0,n.next(o)},()=>{r||n.next(e),n.complete()}))})}function Sr(e){return e<=0?()=>Re:y((t,n)=>{let r=0;t.subscribe(m(n,o=>{++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Bh(){return y((e,t)=>{e.subscribe(m(t,Ne))})}function $h(){return y((e,t)=>{e.subscribe(m(t,n=>Li(n,t)))})}function sl(e,t=W){return e=e??Uh,y((n,r)=>{let o,i=!0;n.subscribe(m(r,s=>{let a=t(s);(i||!e(o,a))&&(i=!1,o=a,r.next(s))}))})}function Uh(e,t){return e===t}function Or(e=qh){return y((t,n)=>{let r=!1;t.subscribe(m(n,o=>{r=!0,n.next(o)},()=>r?n.complete():n.error(e())))})}function qh(){return new lt}function al(e,t){return t?n=>n.pipe(al((r,o)=>N(e(r,o)).pipe(ue((i,s)=>t(r,i,o,s))))):y((n,r)=>{let o=0,i=null,s=!1;n.subscribe(m(r,a=>{i||(i=m(r,void 0,()=>{i=null,s&&r.complete()}),N(e(a,o++)).subscribe(i))},()=>{s=!0,!i&&r.complete()}))})}function Wh(e){return y((t,n)=>{try{t.subscribe(n)}finally{n.add(e)}})}function zh(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Qe((o,i)=>e(o,i,r)):W,Sr(1),n?bn(t):Or(()=>new lt))}function Gh(e,t,n,r){return y((o,i)=>{let s;!t||typeof t=="function"?s=t:{duration:n,element:s,connector:r}=t;let a=new Map,c=h=>{a.forEach(h),h(i)},l=h=>c(g=>g.error(h)),u=0,f=!1,p=new mn(i,h=>{try{let g=e(h),C=a.get(g);if(!C){a.set(g,C=r?r():new ee);let _=d(g,C);if(i.next(_),n){let q=m(C,()=>{C.complete(),q?.unsubscribe()},void 0,void 0,()=>a.delete(g));p.add(N(n(_)).subscribe(q))}}C.next(s?s(h):h)}catch(g){l(g)}},()=>c(h=>h.complete()),l,()=>a.clear(),()=>(f=!0,u===0));o.subscribe(p);function d(h,g){let C=new O(_=>{u++;let q=g.subscribe(_);return()=>{q.unsubscribe(),--u===0&&f&&p.unsubscribe()}});return C.key=h,C}})}function Vi(e){return e<=0?()=>Re:y((t,n)=>{let r=[];t.subscribe(m(n,o=>{r.push(o),e{for(let o of r)n.next(o);n.complete()},void 0,()=>{r=null}))})}function Qh(e,t){let n=arguments.length>=2;return r=>r.pipe(e?Qe((o,i)=>e(o,i,r)):W,Vi(1),n?bn(t):Or(()=>new lt))}function Zh(){return y((e,t)=>{e.subscribe(m(t,n=>{t.next(Ge.createNext(n))},()=>{t.next(Ge.createComplete()),t.complete()},n=>{t.next(Ge.createError(n)),t.complete()}))})}function Yh(){return y((e,t)=>{let n,r=!1;e.subscribe(m(t,o=>{let i=n;n=o,r&&t.next([i,o]),r=!0}))})}function Kh(...e){let t=e.length;if(t===0)throw new Error("list of properties cannot be empty.");return ue(n=>{let r=n;for(let o=0;o=2,!0))}function Hi(e={}){let{connector:t=()=>new ee,resetOnError:n=!0,resetOnComplete:r=!0,resetOnRefCountZero:o=!0}=e;return i=>{let s,a,c,l=0,u=!1,f=!1,p=()=>{a?.unsubscribe(),a=void 0},d=()=>{p(),s=c=void 0,u=f=!1},h=()=>{let g=s;d(),g?.unsubscribe()};return y((g,C)=>{l++,!f&&!u&&p();let _=c=c??t();C.add(()=>{l--,l===0&&!f&&!u&&(a=ji(h,o))}),_.subscribe(C),!s&&l>0&&(s=new Se({next:q=>_.next(q),error:q=>{f=!0,p(),a=ji(d,n,q),_.error(q)},complete:()=>{u=!0,p(),a=ji(d,r),_.complete()}}),N(g).subscribe(s))})(i)}}function ji(e,t,...n){if(t===!0){e();return}if(t===!1)return;let r=new Se({next:()=>{r.unsubscribe(),e()}});return N(t(...n)).subscribe(r)}function Xh(e,t,n){let r,o=!1;return e&&typeof e=="object"?{bufferSize:r=1/0,windowTime:t=1/0,refCount:o=!1,scheduler:n}=e:r=e??1/0,Hi({connector:()=>new En(r,t,n),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:o})}function eg(e){return Qe((t,n)=>e<=n)}function tg(...e){let t=we(e);return y((n,r)=>{(t?xr(e,n,t):xr(e,n)).subscribe(r)})}function ng(e,t){return y((n,r)=>{let o=null,i=0,s=!1,a=()=>s&&!o&&r.complete();n.subscribe(m(r,c=>{o?.unsubscribe();let l=0,u=i++;N(e(c,u)).subscribe(o=m(r,f=>r.next(t?t(c,f,u,l++):f),()=>{o=null,a()}))},()=>{s=!0,a()}))})}function cl(e){return y((t,n)=>{N(e).subscribe(m(n,()=>n.complete(),Ne)),!n.closed&&t.subscribe(n)})}function rg(e,t=!1){return y((n,r)=>{let o=0;n.subscribe(m(r,i=>{let s=e(i,o++);(s||t)&&r.next(i),!s&&r.complete()}))})}function og(e,t,n){let r=b(e)||t||n?{next:e,error:t,complete:n}:e;return r?y((o,i)=>{var s;(s=r.subscribe)===null||s===void 0||s.call(r);let a=!0;o.subscribe(m(i,c=>{var l;(l=r.next)===null||l===void 0||l.call(r,c),i.next(c)},()=>{var c;a=!1,(c=r.complete)===null||c===void 0||c.call(r),i.complete()},c=>{var l;a=!1,(l=r.error)===null||l===void 0||l.call(r,c),i.error(c)},()=>{var c,l;a&&((c=r.unsubscribe)===null||c===void 0||c.call(r)),(l=r.finalize)===null||l===void 0||l.call(r)}))}):W}function ig(...e){let t=Vt(e);return y((n,r)=>{let o=e.length,i=new Array(o),s=e.map(()=>!1),a=!1;for(let c=0;c{i[c]=l,!a&&!s[c]&&(s[c]=!0,(a=s.every(W))&&(s=null))},Ne));n.subscribe(m(r,c=>{if(a){let l=[c,...i];r.next(t?t(...l):l)}}))})}var Wi={JSACTION:"jsaction"},zi={JSACTION:"__jsaction",OWNER:"__owner"},fl={};function sg(e){return e[zi.JSACTION]}function ll(e,t){e[zi.JSACTION]=t}function ag(e){return fl[e]}function cg(e,t){fl[e]=t}var v={CLICK:"click",CLICKMOD:"clickmod",DBLCLICK:"dblclick",FOCUS:"focus",FOCUSIN:"focusin",BLUR:"blur",FOCUSOUT:"focusout",SUBMIT:"submit",KEYDOWN:"keydown",KEYPRESS:"keypress",KEYUP:"keyup",MOUSEOVER:"mouseover",MOUSEOUT:"mouseout",MOUSEENTER:"mouseenter",MOUSELEAVE:"mouseleave",POINTEROVER:"pointerover",POINTEROUT:"pointerout",POINTERENTER:"pointerenter",POINTERLEAVE:"pointerleave",ERROR:"error",LOAD:"load",TOUCHSTART:"touchstart",TOUCHEND:"touchend",TOUCHMOVE:"touchmove",TOGGLE:"toggle"},lg=[v.MOUSEENTER,v.MOUSELEAVE,"pointerenter","pointerleave"],LO=[v.CLICK,v.DBLCLICK,v.FOCUSIN,v.FOCUSOUT,v.KEYDOWN,v.KEYUP,v.KEYPRESS,v.MOUSEOVER,v.MOUSEOUT,v.SUBMIT,v.TOUCHSTART,v.TOUCHEND,v.TOUCHMOVE,"touchcancel","auxclick","change","compositionstart","compositionupdate","compositionend","beforeinput","input","select","copy","cut","paste","mousedown","mouseup","wheel","contextmenu","dragover","dragenter","dragleave","drop","dragstart","dragend","pointerdown","pointermove","pointerup","pointercancel","pointerover","pointerout","gotpointercapture","lostpointercapture","ended","loadedmetadata","pagehide","pageshow","visibilitychange","beforematch"],ug=[v.FOCUS,v.BLUR,v.ERROR,v.LOAD,v.TOGGLE],Gi=e=>ug.indexOf(e)>=0;function dg(e){return e===v.MOUSEENTER?v.MOUSEOVER:e===v.MOUSELEAVE?v.MOUSEOUT:e===v.POINTERENTER?v.POINTEROVER:e===v.POINTERLEAVE?v.POINTEROUT:e}function fg(e,t,n,r){let o=!1;Gi(t)&&(o=!0);let i=typeof r=="boolean"?{capture:o,passive:r}:o;return e.addEventListener(t,n,i),{eventType:t,handler:n,capture:o,passive:r}}function pg(e,t){if(e.removeEventListener){let n=typeof t.passive=="boolean"?{capture:t.capture}:t.capture;e.removeEventListener(t.eventType,t.handler,n)}else e.detachEvent&&e.detachEvent(`on${t.eventType}`,t.handler)}function hg(e){e.preventDefault?e.preventDefault():e.returnValue=!1}var ul=typeof navigator<"u"&&/Macintosh/.test(navigator.userAgent);function gg(e){return e.which===2||e.which==null&&e.button===4}function mg(e){return ul&&e.metaKey||!ul&&e.ctrlKey||gg(e)||e.shiftKey}function yg(e,t,n){let r=e.relatedTarget;return(e.type===v.MOUSEOVER&&t===v.MOUSEENTER||e.type===v.MOUSEOUT&&t===v.MOUSELEAVE||e.type===v.POINTEROVER&&t===v.POINTERENTER||e.type===v.POINTEROUT&&t===v.POINTERLEAVE)&&(!r||r!==n&&!n.contains(r))}function vg(e,t){let n={};for(let r in e){if(r==="srcElement"||r==="target")continue;let o=r,i=e[o];typeof i!="function"&&(n[o]=i)}return e.type===v.MOUSEOVER?n.type=v.MOUSEENTER:e.type===v.MOUSEOUT?n.type=v.MOUSELEAVE:e.type===v.POINTEROVER?n.type=v.POINTERENTER:n.type=v.POINTERLEAVE,n.target=n.srcElement=t,n.bubbles=!1,n._originalEvent=e,n}var Eg=typeof navigator<"u"&&/iPhone|iPad|iPod/.test(navigator.userAgent),Pr=class{element;handlerInfos=[];constructor(t){this.element=t}addEventListener(t,n,r){Eg&&(this.element.style.cursor="pointer"),this.handlerInfos.push(fg(this.element,t,n(this.element),r))}cleanUp(){for(let t=0;t{this.eventReplayScheduled=!1,this.eventReplayer(this.replayEventInfoWrappers)}))}};function Ng(e,t){return e.tagName==="A"&&(t.getEventType()===v.CLICK||t.getEventType()===v.CLICKMOD)}var bl=Symbol.for("propagationStopped"),Zi={REPLAY:101};var Sg="`preventDefault` called during event replay.";var Og="`composedPath` called during event replay.",Lr=class{dispatchDelegate;clickModSupport;actionResolver;dispatcher;constructor(t,n=!0){this.dispatchDelegate=t,this.clickModSupport=n,this.actionResolver=new Ui({clickModSupport:n}),this.dispatcher=new qi(r=>{this.dispatchToDelegate(r)},{actionResolver:this.actionResolver})}dispatch(t){this.dispatcher.dispatch(t)}dispatchToDelegate(t){for(t.getIsReplay()&&kg(t),Rg(t);t.getAction();){if(Pg(t),Gi(t.getEventType())&&t.getAction().element!==t.getTargetElement()||(this.dispatchDelegate(t.getEvent(),t.getAction().name),Ag(t)))return;this.actionResolver.resolveParentAction(t.eventInfo)}}};function Rg(e){let t=e.getEvent(),n=e.getEvent().stopPropagation.bind(t),r=()=>{t[bl]=!0,n()};dt(t,"stopPropagation",r),dt(t,"stopImmediatePropagation",r)}function Ag(e){return!!e.getEvent()[bl]}function kg(e){let t=e.getEvent(),n=e.getTargetElement(),r=t.preventDefault.bind(t);dt(t,"target",n),dt(t,"eventPhase",Zi.REPLAY),dt(t,"preventDefault",()=>{throw r(),new Error(Sg+"")}),dt(t,"composedPath",()=>{throw new Error(Og+"")})}function Pg(e){let t=e.getEvent(),n=e.getAction()?.element;n&&dt(t,"currentTarget",n,{configurable:!0})}function dt(e,t,n,{configurable:r=!1}={}){Object.defineProperty(e,t,{value:n,configurable:r})}function Ml(e,t){e.ecrd(n=>{t.dispatch(n)},Dl.I_AM_THE_JSACTION_FRAMEWORK)}function Lg(e){return e?.q??[]}function Fg(e){e&&(dl(e.c,e.et,e.h),dl(e.c,e.etc,e.h,!0))}function dl(e,t,n,r){for(let o=0;o{class e{static MOUSE_SPECIAL_SUPPORT=Vg;containerManager;eventHandlers={};browserEventTypeToExtraEventTypes={};dispatcher=null;queuedEventInfos=[];constructor(n){this.containerManager=n}handleEvent(n,r,o){let i=Cg(n,r,r.target,o,Date.now());this.handleEventInfo(i)}handleEventInfo(n){if(!this.dispatcher){vl(n,!0),this.queuedEventInfos?.push(n);return}this.dispatcher(n)}addEvent(n,r,o){if(n in this.eventHandlers||!this.containerManager||!e.MOUSE_SPECIAL_SUPPORT&&lg.indexOf(n)>=0)return;let i=(a,c,l)=>{this.handleEvent(a,c,l)};this.eventHandlers[n]=i;let s=dg(r||n);if(s!==n){let a=this.browserEventTypeToExtraEventTypes[s]||[];a.push(n),this.browserEventTypeToExtraEventTypes[s]=a}this.containerManager.addEventListener(s,a=>c=>{i(n,c,a)},o)}replayEarlyEvents(n=window._ejsa){n&&(this.replayEarlyEventInfos(n.q),Fg(n),delete window._ejsa)}replayEarlyEventInfos(n){for(let r=0;r{let r=$g(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;let s=new o(...i);return a.annotation=s,a;function a(c,l,u){let f=c.hasOwnProperty(Fr)?c[Fr]:Object.defineProperty(c,Fr,{value:[]})[Fr];for(;f.length<=u;)f.push(null);return(f[u]=f[u]||[]).push(s),c}}return o.prototype.ngMetadataName=e,o.annotationCls=o,o})}var Ye=globalThis;function L(e){for(let t in e)if(e[t]===L)return t;throw Error("Could not find renamed property on target object.")}function Ug(e,t){for(let n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function ne(e){if(typeof e=="string")return e;if(Array.isArray(e))return`[${e.map(ne).join(", ")}]`;if(e==null)return""+e;let t=e.overriddenName||e.name;if(t)return`${t}`;let n=e.toString();if(n==null)return""+n;let r=n.indexOf(` -`);return r>=0?n.slice(0,r):n}function ms(e,t){return e?t?`${e} ${t}`:e:t||""}var qg=L({__forward_ref__:L});function Ou(e){return e.__forward_ref__=Ou,e.toString=function(){return ne(this())},e}function K(e){return Ru(e)?e():e}function Ru(e){return typeof e=="function"&&e.hasOwnProperty(qg)&&e.__forward_ref__===Ou}function U(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function SR(e){return{providers:e.providers||[],imports:e.imports||[]}}function xo(e){return _l(e,Au)||_l(e,ku)}function OR(e){return xo(e)!==null}function _l(e,t){return e.hasOwnProperty(t)?e[t]:null}function Wg(e){let t=e&&(e[Au]||e[ku]);return t||null}function xl(e){return e&&(e.hasOwnProperty(Nl)||e.hasOwnProperty(zg))?e[Nl]:null}var Au=L({\u0275prov:L}),Nl=L({\u0275inj:L}),ku=L({ngInjectableDef:L}),zg=L({ngInjectorDef:L}),R=class{_desc;ngMetadataName="InjectionToken";\u0275prov;constructor(t,n){this._desc=t,this.\u0275prov=void 0,typeof n=="number"?this.__NG_ELEMENT_ID__=n:n!==void 0&&(this.\u0275prov=U({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function Pu(e){return e&&!!e.\u0275providers}var Gg=L({\u0275cmp:L}),Qg=L({\u0275dir:L}),Zg=L({\u0275pipe:L}),Yg=L({\u0275mod:L}),Jr=L({\u0275fac:L}),_n=L({__NG_ELEMENT_ID__:L}),Sl=L({__NG_ENV_ID__:L});function Ae(e){return typeof e=="string"?e:e==null?"":String(e)}function Kg(e){return typeof e=="function"?e.name||e.toString():typeof e=="object"&&e!=null&&typeof e.type=="function"?e.type.name||e.type.toString():Ae(e)}function Lu(e,t){throw new S(-200,e)}function Ca(e,t){throw new S(-201,!1)}var x=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}(x||{}),ys;function Fu(){return ys}function te(e){let t=ys;return ys=e,t}function Vu(e,t,n){let r=xo(e);if(r&&r.providedIn=="root")return r.value===void 0?r.value=r.factory():r.value;if(n&x.Optional)return null;if(t!==void 0)return t;Ca(e,"Injector")}var Jg={},pt=Jg,vs="__NG_DI_FLAG__",Xr=class{injector;constructor(t){this.injector=t}retrieve(t,n){let r=n;return this.injector.get(t,r.optional?tr:pt,r)}},eo="ngTempTokenPath",Xg="ngTokenPath",em=/\n/gm,tm="\u0275",Ol="__source";function nm(e,t=x.Default){if(gn()===void 0)throw new S(-203,!1);if(gn()===null)return Vu(e,void 0,t);{let n=gn(),r;return n instanceof Xr?r=n.injector:r=n,r.get(e,t&x.Optional?null:void 0,t)}}function Xe(e,t=x.Default){return(Fu()||nm)(K(e),t)}function w(e,t=x.Default){return Xe(e,No(t))}function No(e){return typeof e>"u"||typeof e=="number"?e:0|(e.optional&&8)|(e.host&&1)|(e.self&&2)|(e.skipSelf&&4)}function Es(e){let t=[];for(let n=0;n ");else if(typeof t=="object"){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+(typeof a=="string"?JSON.stringify(a):ne(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(em,` - `)}`}var RR=Ta(Ma("Inject",e=>({token:e})),-1),AR=Ta(Ma("Optional"),8);var kR=Ta(Ma("SkipSelf"),4);function gt(e,t){let n=e.hasOwnProperty(Jr);return n?e[Jr]:null}function sm(e,t,n){if(e.length!==t.length)return!1;for(let r=0;rArray.isArray(n)?_a(n,t):t(n))}function ju(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function to(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function cm(e,t){let n=[];for(let r=0;rt;){let i=o-2;e[o]=e[i],o--}e[t]=n,e[t+1]=r}}function So(e,t,n){let r=jn(e,t);return r>=0?e[r|1]=n:(r=~r,lm(e,r,t,n)),r}function Ki(e,t){let n=jn(e,t);if(n>=0)return e[n|1]}function jn(e,t){return um(e,t,1)}function um(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){let i=r+(o-r>>1),s=e[i<t?o=i:r=i+1}return~(o<{n.push(s)};return _a(t,s=>{let a=s;Is(a,i,[],r)&&(o||=[],o.push(a))}),o!==void 0&&Wu(o,i),n}function Wu(e,t){for(let n=0;n{t(i,r)})}}function Is(e,t,n,r){if(e=K(e),!e)return!1;let o=null,i=xl(e),s=!i&&ke(e);if(!i&&!s){let c=e.ngModule;if(i=xl(c),i)o=c;else return!1}else{if(s&&!s.standalone)return!1;o=e}let a=r.has(o);if(s){if(a)return!1;if(r.add(o),s.dependencies){let c=typeof s.dependencies=="function"?s.dependencies():s.dependencies;for(let l of c)Is(l,t,n,r)}}else if(i){if(i.imports!=null&&!a){r.add(o);let l;try{_a(i.imports,u=>{Is(u,t,n,r)&&(l||=[],l.push(u))})}finally{}l!==void 0&&Wu(l,t)}if(!a){let l=gt(o)||(()=>new o);t({provide:o,useFactory:l,deps:J},o),t({provide:Bu,useValue:o,multi:!0},o),t({provide:yt,useValue:()=>Xe(o),multi:!0},o)}let c=i.providers;if(c!=null&&!a){let l=e;Na(c,u=>{t(u,l)})}}else return!1;return o!==e&&e.providers!==void 0}function Na(e,t){for(let n of e)Pu(n)&&(n=n.\u0275providers),Array.isArray(n)?Na(n,t):t(n)}var fm=L({provide:String,useValue:L});function zu(e){return e!==null&&typeof e=="object"&&fm in e}function pm(e){return!!(e&&e.useExisting)}function hm(e){return!!(e&&e.useFactory)}function Zt(e){return typeof e=="function"}function gm(e){return!!e.useClass}var Gu=new R(""),qr={},Rl={},Ji;function Ro(){return Ji===void 0&&(Ji=new no),Ji}var Pe=class{},xn=class extends Pe{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,n,r,o){super(),this.parent=n,this.source=r,this.scopes=o,Ds(t,s=>this.processProvider(s)),this.records.set(Hu,jt(void 0,this)),o.has("environment")&&this.records.set(Pe,jt(void 0,this));let i=this.records.get(Gu);i!=null&&typeof i.value=="string"&&this.scopes.add(i.value),this.injectorDefTypes=new Set(this.get(Bu,J,x.Self))}retrieve(t,n){let r=n;return this.get(t,r.optional?tr:pt,r)}destroy(){Cn(this),this._destroyed=!0;let t=T(null);try{for(let r of this._ngOnDestroyHooks)r.ngOnDestroy();let n=this._onDestroyHooks;this._onDestroyHooks=[];for(let r of n)r()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),T(t)}}onDestroy(t){return Cn(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){Cn(this);let n=xe(this),r=te(void 0),o;try{return t()}finally{xe(n),te(r)}}get(t,n=pt,r=x.Default){if(Cn(this),t.hasOwnProperty(Sl))return t[Sl](this);r=No(r);let o,i=xe(this),s=te(void 0);try{if(!(r&x.SkipSelf)){let c=this.records.get(t);if(c===void 0){let l=Im(t)&&xo(t);l&&this.injectableDefInScope(l)?c=jt(ws(t),qr):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c,r)}let a=r&x.Self?Ro():this.parent;return n=r&x.Optional&&n===pt?null:n,a.get(t,n)}catch(a){if(a.name==="NullInjectorError"){if((a[eo]=a[eo]||[]).unshift(ne(t)),i)throw a;return om(a,t,"R3InjectorError",this.source)}else throw a}finally{te(s),xe(i)}}resolveInjectorInitializers(){let t=T(null),n=xe(this),r=te(void 0),o;try{let i=this.get(yt,J,x.Self);for(let s of i)s()}finally{xe(n),te(r),T(t)}}toString(){let t=[],n=this.records;for(let r of n.keys())t.push(ne(r));return`R3Injector[${t.join(", ")}]`}processProvider(t){t=K(t);let n=Zt(t)?t:K(t&&t.provide),r=ym(t);if(!Zt(t)&&t.multi===!0){let o=this.records.get(n);o||(o=jt(void 0,qr,!0),o.factory=()=>Es(o.multi),this.records.set(n,o)),n=t,o.multi.push(t)}this.records.set(n,r)}hydrate(t,n,r){let o=T(null);try{return n.value===Rl?Lu(ne(t)):n.value===qr&&(n.value=Rl,n.value=n.factory(void 0,r)),typeof n.value=="object"&&n.value&&Em(n.value)&&this._ngOnDestroyHooks.add(n.value),n.value}finally{T(o)}}injectableDefInScope(t){if(!t.providedIn)return!1;let n=K(t.providedIn);return typeof n=="string"?n==="any"||this.scopes.has(n):this.injectorDefTypes.has(n)}removeOnDestroy(t){let n=this._onDestroyHooks.indexOf(t);n!==-1&&this._onDestroyHooks.splice(n,1)}};function ws(e){let t=xo(e),n=t!==null?t.factory:gt(e);if(n!==null)return n;if(e instanceof R)throw new S(204,!1);if(e instanceof Function)return mm(e);throw new S(204,!1)}function mm(e){if(e.length>0)throw new S(204,!1);let n=Wg(e);return n!==null?()=>n.factory(e):()=>new e}function ym(e){if(zu(e))return jt(void 0,e.useValue);{let t=Qu(e);return jt(t,qr)}}function Qu(e,t,n){let r;if(Zt(e)){let o=K(e);return gt(o)||ws(o)}else if(zu(e))r=()=>K(e.useValue);else if(hm(e))r=()=>e.useFactory(...Es(e.deps||[]));else if(pm(e))r=(o,i)=>Xe(K(e.useExisting),i!==void 0&&i&x.Optional?x.Optional:void 0);else{let o=K(e&&(e.useClass||e.provide));if(vm(e))r=()=>new o(...Es(e.deps));else return gt(o)||ws(o)}return r}function Cn(e){if(e.destroyed)throw new S(205,!1)}function jt(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function vm(e){return!!e.deps}function Em(e){return e!==null&&typeof e=="object"&&typeof e.ngOnDestroy=="function"}function Im(e){return typeof e=="function"||typeof e=="object"&&e instanceof R}function Ds(e,t){for(let n of e)Array.isArray(n)?Ds(n,t):n&&Pu(n)?Ds(n.\u0275providers,t):t(n)}function Zu(e,t){let n;e instanceof xn?(Cn(e),n=e):n=new Xr(e);let r,o=xe(n),i=te(void 0);try{return t()}finally{xe(o),te(i)}}function Yu(){return Fu()!==void 0||gn()!=null}function Sa(e){if(!Yu())throw new S(-203,!1)}function wm(e){return typeof e=="function"}var ce=0,I=1,D=2,$=3,me=4,re=5,fe=6,ro=7,j=8,Me=9,Le=10,k=11,Nn=12,Al=13,en=14,Q=15,vt=16,Ht=17,Fe=18,Ao=19,Ku=20,Je=21,Xi=22,Et=23,de=24,qt=25,P=26,Ju=1,Ve=6,je=7,oo=8,Yt=9,z=10;function ye(e){return Array.isArray(e)&&typeof e[Ju]=="object"}function _e(e){return Array.isArray(e)&&e[Ju]===!0}function Oa(e){return(e.flags&4)!==0}function _t(e){return e.componentOffset>-1}function ko(e){return(e.flags&1)===1}function Ce(e){return!!e.template}function Sn(e){return(e[D]&512)!==0}function xt(e){return(e[D]&256)===256}var bs=class{previousValue;currentValue;firstChange;constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}};function Xu(e,t,n,r){t!==null?t.applyValueToInputSignal(t,r):e[n]=r}var LR=(()=>{let e=()=>ed;return e.ngInherit=!0,e})();function ed(e){return e.type.prototype.ngOnChanges&&(e.setInput=bm),Dm}function Dm(){let e=nd(this),t=e?.current;if(t){let n=e.previous;if(n===mt)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function bm(e,t,n,r,o){let i=this.declaredInputs[r],s=nd(e)||Mm(e,{previous:mt,current:null}),a=s.current||(s.current={}),c=s.previous,l=c[i];a[i]=new bs(l&&l.currentValue,n,c===mt),Xu(e,t,o,n)}var td="__ngSimpleChanges__";function nd(e){return e[td]||null}function Mm(e,t){return e[td]=t}var kl=null;var A=function(e,t=null,n){kl?.(e,t,n)},rd="svg",Cm="math";function ve(e){for(;Array.isArray(e);)e=e[ce];return e}function od(e,t){return ve(t[e])}function Ee(e,t){return ve(t[e.index])}function Hn(e,t){return e.data[t]}function Po(e,t){return e[t]}function Ra(e,t,n,r){n>=e.data.length&&(e.data[n]=null,e.blueprint[n]=null),t[n]=r}function Te(e,t){let n=t[e];return ye(n)?n:n[ce]}function Tm(e){return(e[D]&4)===4}function Aa(e){return(e[D]&128)===128}function _m(e){return _e(e[$])}function et(e,t){return t==null?null:e[t]}function id(e){e[Ht]=0}function sd(e){e[D]&1024||(e[D]|=1024,Aa(e)&&tn(e))}function xm(e,t){for(;e>0;)t=t[en],e--;return t}function Lo(e){return!!(e[D]&9216||e[de]?.dirty)}function Ms(e){e[Le].changeDetectionScheduler?.notify(8),e[D]&64&&(e[D]|=1024),Lo(e)&&tn(e)}function tn(e){e[Le].changeDetectionScheduler?.notify(0);let t=It(e);for(;t!==null&&!(t[D]&8192||(t[D]|=8192,!Aa(t)));)t=It(t)}function ad(e,t){if(xt(e))throw new S(911,!1);e[Je]===null&&(e[Je]=[]),e[Je].push(t)}function Nm(e,t){if(e[Je]===null)return;let n=e[Je].indexOf(t);n!==-1&&e[Je].splice(n,1)}function It(e){let t=e[$];return _e(t)?t[$]:t}function ka(e){return e[ro]??=[]}function Pa(e){return e.cleanup??=[]}function Sm(e,t,n,r){let o=ka(t);o.push(n),e.firstCreatePass&&Pa(e).push(r,o.length-1)}var M={lFrame:hd(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var Cs=!1;function Om(){return M.lFrame.elementDepthCount}function Rm(){M.lFrame.elementDepthCount++}function Am(){M.lFrame.elementDepthCount--}function La(){return M.bindingsEnabled}function nn(){return M.skipHydrationRootTNode!==null}function km(e){return M.skipHydrationRootTNode===e}function Pm(e){M.skipHydrationRootTNode=e}function Lm(){M.skipHydrationRootTNode=null}function E(){return M.lFrame.lView}function F(){return M.lFrame.tView}function FR(e){return M.lFrame.contextLView=e,e[j]}function VR(e){return M.lFrame.contextLView=null,e}function Z(){let e=cd();for(;e!==null&&e.type===64;)e=e.parent;return e}function cd(){return M.lFrame.currentTNode}function Fm(){let e=M.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}function rt(e,t){let n=M.lFrame;n.currentTNode=e,n.isParent=t}function Fa(){return M.lFrame.isParent}function Va(){M.lFrame.isParent=!1}function ld(){return M.lFrame.contextLView}function ud(){return Cs}function io(e){let t=Cs;return Cs=e,t}function Bn(){let e=M.lFrame,t=e.bindingRootIndex;return t===-1&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function dd(){return M.lFrame.bindingIndex}function Vm(e){return M.lFrame.bindingIndex=e}function Nt(){return M.lFrame.bindingIndex++}function Fo(e){let t=M.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function jm(){return M.lFrame.inI18n}function Hm(e,t){let n=M.lFrame;n.bindingIndex=n.bindingRootIndex=e,Ts(t)}function Bm(){return M.lFrame.currentDirectiveIndex}function Ts(e){M.lFrame.currentDirectiveIndex=e}function $m(e){let t=M.lFrame.currentDirectiveIndex;return t===-1?null:e[t]}function ja(){return M.lFrame.currentQueryIndex}function Vo(e){M.lFrame.currentQueryIndex=e}function Um(e){let t=e[I];return t.type===2?t.declTNode:t.type===1?e[re]:null}function fd(e,t,n){if(n&x.SkipSelf){let o=t,i=e;for(;o=o.parent,o===null&&!(n&x.Host);)if(o=Um(i),o===null||(i=i[en],o.type&10))break;if(o===null)return!1;t=o,e=i}let r=M.lFrame=pd();return r.currentTNode=t,r.lView=e,!0}function Ha(e){let t=pd(),n=e[I];M.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function pd(){let e=M.lFrame,t=e===null?null:e.child;return t===null?hd(e):t}function hd(e){let t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return e!==null&&(e.child=t),t}function gd(){let e=M.lFrame;return M.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var md=gd;function Ba(){let e=gd();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function qm(e){return(M.lFrame.contextLView=xm(e,M.lFrame.contextLView))[j]}function Ie(){return M.lFrame.selectedIndex}function wt(e){M.lFrame.selectedIndex=e}function $n(){let e=M.lFrame;return Hn(e.tView,e.selectedIndex)}function jR(){M.lFrame.currentNamespace=rd}function HR(){Wm()}function Wm(){M.lFrame.currentNamespace=null}function yd(){return M.lFrame.currentNamespace}var vd=!0;function jo(){return vd}function ot(e){vd=e}function zm(e,t,n){let{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){let s=ed(t);(n.preOrderHooks??=[]).push(e,s),(n.preOrderCheckHooks??=[]).push(e,s)}o&&(n.preOrderHooks??=[]).push(0-e,o),i&&((n.preOrderHooks??=[]).push(e,i),(n.preOrderCheckHooks??=[]).push(e,i))}function $a(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n=r)break}else t[c]<0&&(e[Ht]+=65536),(a>14>16&&(e[D]&3)===t&&(e[D]+=16384,Pl(a,i)):Pl(a,i)}var Wt=-1,Dt=class{factory;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,n,r){this.factory=t,this.canSeeViewProviders=n,this.injectImpl=r}};function Qm(e){return(e.flags&8)!==0}function Zm(e){return(e.flags&16)!==0}function Ym(e,t,n){let r=0;for(;rt){s=i-1;break}}}for(;i>16}function ao(e,t){let n=Jm(e),r=t;for(;n>0;)r=r[en],n--;return r}var _s=!0;function co(e){let t=_s;return _s=e,t}var Xm=256,Dd=Xm-1,bd=5,ey=0,be={};function ty(e,t,n){let r;typeof n=="string"?r=n.charCodeAt(0)||0:n.hasOwnProperty(_n)&&(r=n[_n]),r==null&&(r=n[_n]=ey++);let o=r&Dd,i=1<>bd)]|=i}function lo(e,t){let n=Md(e,t);if(n!==-1)return n;let r=t[I];r.firstCreatePass&&(e.injectorIndex=t.length,ts(r.data,e),ts(t,null),ts(r.blueprint,null));let o=Ua(e,t),i=e.injectorIndex;if(wd(o)){let s=so(o),a=ao(o,t),c=a[I].data;for(let l=0;l<8;l++)t[i+l]=a[s+l]|c[s+l]}return t[i+8]=o,i}function ts(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Md(e,t){return e.injectorIndex===-1||e.parent&&e.parent.injectorIndex===e.injectorIndex||t[e.injectorIndex+8]===null?-1:e.injectorIndex}function Ua(e,t){if(e.parent&&e.parent.injectorIndex!==-1)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;o!==null;){if(r=Nd(o),r===null)return Wt;if(n++,o=o[en],r.injectorIndex!==-1)return r.injectorIndex|n<<16}return Wt}function xs(e,t,n){ty(e,t,n)}function ny(e,t){if(t==="class")return e.classes;if(t==="style")return e.styles;let n=e.attrs;if(n){let r=n.length,o=0;for(;o>20,f=r?a:a+u,p=o?a+u:l;for(let d=f;d=c&&h.type===n)return d}if(o){let d=s[c];if(d&&Ce(d)&&d.type===n)return c}return null}function On(e,t,n,r,o){let i=e[n],s=t.data;if(i instanceof Dt){let a=i;a.resolving&&Lu(Kg(s[n]));let c=co(a.canSeeViewProviders);a.resolving=!0;let l,u=a.injectImpl?te(a.injectImpl):null,f=fd(e,r,x.Default);try{i=e[n]=a.factory(void 0,o,s,e,r),t.firstCreatePass&&n>=r.directiveStart&&zm(n,s[n],t)}finally{u!==null&&te(u),co(c),a.resolving=!1,md()}}return i}function oy(e){if(typeof e=="string")return e.charCodeAt(0)||0;let t=e.hasOwnProperty(_n)?e[_n]:void 0;return typeof t=="number"?t>=0?t&Dd:iy:t}function Fl(e,t,n){let r=1<>bd)]&r)}function Vl(e,t){return!(e&x.Self)&&!(e&x.Host&&t)}var ht=class{_tNode;_lView;constructor(t,n){this._tNode=t,this._lView=n}get(t,n,r){return _d(this._tNode,this._lView,t,No(r),n)}};function iy(){return new ht(Z(),E())}function BR(e){return Vn(()=>{let t=e.prototype.constructor,n=t[Jr]||Ns(t),r=Object.prototype,o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){let i=o[Jr]||Ns(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function Ns(e){return Ru(e)?()=>{let t=Ns(K(e));return t&&t()}:gt(e)}function sy(e,t,n,r,o){let i=e,s=t;for(;i!==null&&s!==null&&s[D]&2048&&!Sn(s);){let a=xd(i,s,n,r|x.Self,be);if(a!==be)return a;let c=i.parent;if(!c){let l=s[Ku];if(l){let u=l.get(n,be,r);if(u!==be)return u}c=Nd(s),s=s[en]}i=c}return o}function Nd(e){let t=e[I],n=t.type;return n===2?t.declTNode:n===1?e[re]:null}function ay(e){return ny(Z(),e)}function jl(e,t=null,n=null,r){let o=Sd(e,t,n,r);return o.resolveInjectorInitializers(),o}function Sd(e,t=null,n=null,r,o=new Set){let i=[n||J,dm(e)];return r=r||(typeof e=="object"?void 0:ne(e)),new xn(i,t||Ro(),r||null,o)}var tt=class e{static THROW_IF_NOT_FOUND=pt;static NULL=new no;static create(t,n){if(Array.isArray(t))return jl({name:""},n,t,"");{let r=t.name??"";return jl({name:r},t.parent,t.providers,r)}}static \u0275prov=U({token:e,providedIn:"any",factory:()=>Xe(Hu)});static __NG_ELEMENT_ID__=-1};var Hl=class{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>ay(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}},cy=new R("");cy.__NG_ELEMENT_ID__=e=>{let t=Z();if(t===null)throw new S(204,!1);if(t.type&2)return t.value;if(e&x.Optional)return null;throw new S(204,!1)};var Od=!1,Ho=(()=>{class e{static __NG_ELEMENT_ID__=ly;static __NG_ENV_ID__=n=>n}return e})(),uo=class extends Ho{_lView;constructor(t){super(),this._lView=t}onDestroy(t){let n=this._lView;return xt(n)?(t(),()=>{}):(ad(n,t),()=>Nm(n,t))}};function ly(){return new uo(E())}var nt=class{},qa=new R("",{providedIn:"root",factory:()=>!1});var Rd=new R(""),Ad=new R(""),rn=(()=>{class e{taskId=0;pendingTasks=new Set;get _hasPendingTasks(){return this.hasPendingTasks.value}hasPendingTasks=new yn(!1);add(){this._hasPendingTasks||this.hasPendingTasks.next(!0);let n=this.taskId++;return this.pendingTasks.add(n),n}has(n){return this.pendingTasks.has(n)}remove(n){this.pendingTasks.delete(n),this.pendingTasks.size===0&&this._hasPendingTasks&&this.hasPendingTasks.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this._hasPendingTasks&&this.hasPendingTasks.next(!1)}static \u0275prov=U({token:e,providedIn:"root",factory:()=>new e})}return e})(),uy=(()=>{class e{internalPendingTasks=w(rn);scheduler=w(nt);add(){let n=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(n)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(n))}}run(n){return Ot(this,null,function*(){let r=this.add();try{return yield n()}finally{r()}})}static \u0275prov=U({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ss=class extends ee{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,Yu()&&(this.destroyRef=w(Ho,{optional:!0})??void 0,this.pendingTasks=w(rn,{optional:!0})??void 0)}emit(t){let n=T(null);try{super.next(t)}finally{T(n)}}subscribe(t,n,r){let o=t,i=n||(()=>null),s=r;if(t&&typeof t=="object"){let c=t;o=c.next?.bind(c),i=c.error?.bind(c),s=c.complete?.bind(c)}this.__isAsync&&(i=this.wrapInTimeout(i),o&&(o=this.wrapInTimeout(o)),s&&(s=this.wrapInTimeout(s)));let a=super.subscribe({next:o,error:i,complete:s});return t instanceof V&&t.add(a),a}wrapInTimeout(t){return n=>{let r=this.pendingTasks?.add();setTimeout(()=>{try{t(n)}finally{r!==void 0&&this.pendingTasks?.remove(r)}})}}},Ke=Ss;function Rn(...e){}function kd(e){let t,n;function r(){e=Rn;try{n!==void 0&&typeof cancelAnimationFrame=="function"&&cancelAnimationFrame(n),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{e(),r()}),typeof requestAnimationFrame=="function"&&(n=requestAnimationFrame(()=>{e(),r()})),()=>r()}function Bl(e){return queueMicrotask(()=>e()),()=>{e=Rn}}var Wa="isAngularZone",fo=Wa+"_ID",dy=0,ae=class e{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new Ke(!1);onMicrotaskEmpty=new Ke(!1);onStable=new Ke(!1);onError=new Ke(!1);constructor(t){let{enableLongStackTrace:n=!1,shouldCoalesceEventChangeDetection:r=!1,shouldCoalesceRunChangeDetection:o=!1,scheduleInRootZone:i=Od}=t;if(typeof Zone>"u")throw new S(908,!1);Zone.assertZonePatched();let s=this;s._nesting=0,s._outer=s._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(s._inner=s._inner.fork(new Zone.TaskTrackingZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(s._inner=s._inner.fork(Zone.longStackTraceZoneSpec)),s.shouldCoalesceEventChangeDetection=!o&&r,s.shouldCoalesceRunChangeDetection=o,s.callbackScheduled=!1,s.scheduleInRootZone=i,hy(s)}static isInAngularZone(){return typeof Zone<"u"&&Zone.current.get(Wa)===!0}static assertInAngularZone(){if(!e.isInAngularZone())throw new S(909,!1)}static assertNotInAngularZone(){if(e.isInAngularZone())throw new S(909,!1)}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){let i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,fy,Rn,Rn);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}},fy={};function za(e){if(e._nesting==0&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function py(e){if(e.isCheckStableRunning||e.callbackScheduled)return;e.callbackScheduled=!0;function t(){kd(()=>{e.callbackScheduled=!1,Os(e),e.isCheckStableRunning=!0,za(e),e.isCheckStableRunning=!1})}e.scheduleInRootZone?Zone.root.run(()=>{t()}):e._outer.run(()=>{t()}),Os(e)}function hy(e){let t=()=>{py(e)},n=dy++;e._inner=e._inner.fork({name:"angular",properties:{[Wa]:!0,[fo]:n,[fo+n]:!0},onInvokeTask:(r,o,i,s,a,c)=>{if(gy(c))return r.invokeTask(i,s,a,c);try{return $l(e),r.invokeTask(i,s,a,c)}finally{(e.shouldCoalesceEventChangeDetection&&s.type==="eventTask"||e.shouldCoalesceRunChangeDetection)&&t(),Ul(e)}},onInvoke:(r,o,i,s,a,c,l)=>{try{return $l(e),r.invoke(i,s,a,c,l)}finally{e.shouldCoalesceRunChangeDetection&&!e.callbackScheduled&&!my(c)&&t(),Ul(e)}},onHasTask:(r,o,i,s)=>{r.hasTask(i,s),o===i&&(s.change=="microTask"?(e._hasPendingMicrotasks=s.microTask,Os(e),za(e)):s.change=="macroTask"&&(e.hasPendingMacrotasks=s.macroTask))},onHandleError:(r,o,i,s)=>(r.handleError(i,s),e.runOutsideAngular(()=>e.onError.emit(s)),!1)})}function Os(e){e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&e.callbackScheduled===!0?e.hasPendingMicrotasks=!0:e.hasPendingMicrotasks=!1}function $l(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ul(e){e._nesting--,za(e)}var Rs=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new Ke;onMicrotaskEmpty=new Ke;onStable=new Ke;onError=new Ke;run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}};function gy(e){return Pd(e,"__ignore_ng_zone__")}function my(e){return Pd(e,"__scheduler_tick__")}function Pd(e,t){return!Array.isArray(e)||e.length!==1?!1:e[0]?.data?.[t]===!0}var bt=class{_console=console;handleError(t){this._console.error("ERROR",t)}},yy=new R("",{providedIn:"root",factory:()=>{let e=w(ae),t=w(bt);return n=>e.runOutsideAngular(()=>t.handleError(n))}});function ql(e,t){return Su(e,t)}function vy(e){return Su(Nu,e)}var $R=(ql.required=vy,ql);function Ey(){return on(Z(),E())}function on(e,t){return new Bo(Ee(e,t))}var Bo=(()=>{class e{nativeElement;constructor(n){this.nativeElement=n}static __NG_ELEMENT_ID__=Ey}return e})();function Ld(e){return e instanceof Bo?e.nativeElement:e}function Iy(e){return typeof e=="function"&&e[X]!==void 0}function wy(e,t){let n=Ii(e,t?.equal),r=n[X];return n.set=o=>hn(r,o),n.update=o=>wi(r,o),n.asReadonly=Dy.bind(n),n}function Dy(){let e=this[X];if(e.readonlyFn===void 0){let t=()=>this();t[X]=e,e.readonlyFn=t}return e.readonlyFn}function Fd(e){return Iy(e)&&typeof e.set=="function"}function by(){return this._results[Symbol.iterator]()}var As=class{_emitDistinctChangesOnly;dirty=!0;_onDirty=void 0;_results=[];_changesDetected=!1;_changes=void 0;length=0;first=void 0;last=void 0;get changes(){return this._changes??=new ee}constructor(t=!1){this._emitDistinctChangesOnly=t}get(t){return this._results[t]}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,n){return this._results.reduce(t,n)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t,n){this.dirty=!1;let r=am(t);(this._changesDetected=!sm(this._results,r,n))&&(this._results=r,this.length=r.length,this.last=r[this.length-1],this.first=r[0])}notifyOnChanges(){this._changes!==void 0&&(this._changesDetected||!this._emitDistinctChangesOnly)&&this._changes.next(this)}onDirty(t){this._onDirty=t}setDirty(){this.dirty=!0,this._onDirty?.()}destroy(){this._changes!==void 0&&(this._changes.complete(),this._changes.unsubscribe())}[Symbol.iterator]=by},My="ngSkipHydration",Cy="ngskiphydration";function Vd(e){let t=e.mergedAttrs;if(t===null)return!1;for(let n=0;nSy}),Sy="ng",Oy=new R(""),qR=new R("",{providedIn:"platform",factory:()=>"unknown"});var WR=new R(""),zR=new R("",{providedIn:"root",factory:()=>$o().body?.querySelector("[ngCspNonce]")?.getAttribute("ngCspNonce")||null});function Ry(){let e=new Uo;return e.store=Ay($o(),w(zt)),e}var Uo=(()=>{class e{static \u0275prov=U({token:e,providedIn:"root",factory:Ry});store={};onSerializeCallbacks={};get(n,r){return this.store[n]!==void 0?this.store[n]:r}set(n,r){this.store[n]=r}remove(n){delete this.store[n]}hasKey(n){return this.store.hasOwnProperty(n)}get isEmpty(){return Object.keys(this.store).length===0}onSerialize(n,r){this.onSerializeCallbacks[n]=r}toJson(){for(let n in this.onSerializeCallbacks)if(this.onSerializeCallbacks.hasOwnProperty(n))try{this.store[n]=this.onSerializeCallbacks[n]()}catch(r){console.warn("Exception in onSerialize callback: ",r)}return JSON.stringify(this.store).replace(/Zd});var Kd=new R(""),Uy=!1,qy=new R(""),zl=new R("",{providedIn:"root",factory:()=>new Map}),Qa=function(e){return e[e.CHANGE_DETECTION=0]="CHANGE_DETECTION",e[e.AFTER_NEXT_RENDER=1]="AFTER_NEXT_RENDER",e}(Qa||{}),qo=new R(""),Gl=new Set;function $e(e){Gl.has(e)||(Gl.add(e),performance?.mark?.("mark_feature_usage",{detail:{feature:e}}))}var Za=(()=>{class e{view;node;constructor(n,r){this.view=n,this.node=r}static __NG_ELEMENT_ID__=Wy}return e})();function Wy(){return new Za(E(),Z())}var Bt=function(e){return e[e.EarlyRead=0]="EarlyRead",e[e.Write=1]="Write",e[e.MixedReadWrite=2]="MixedReadWrite",e[e.Read=3]="Read",e}(Bt||{}),Jd=(()=>{class e{impl=null;execute(){this.impl?.execute()}static \u0275prov=U({token:e,providedIn:"root",factory:()=>new e})}return e})(),zy=[Bt.EarlyRead,Bt.Write,Bt.MixedReadWrite,Bt.Read],Gy=(()=>{class e{ngZone=w(ae);scheduler=w(nt);errorHandler=w(bt,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){w(qo,{optional:!0})}execute(){let n=this.sequences.size>0;n&&A(16),this.executing=!0;for(let r of zy)for(let o of this.sequences)if(!(o.erroredOrDestroyed||!o.hooks[r]))try{o.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let i=o.hooks[r];return i(o.pipelinedValue)},o.snapshot))}catch(i){o.erroredOrDestroyed=!0,this.errorHandler?.handleError(i)}this.executing=!1;for(let r of this.sequences)r.afterRun(),r.once&&(this.sequences.delete(r),r.destroy());for(let r of this.deferredRegistrations)this.sequences.add(r);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),n&&A(17)}register(n){let{view:r}=n;r!==void 0?((r[qt]??=[]).push(n),tn(r),r[D]|=8192):this.executing?this.deferredRegistrations.add(n):this.addSequence(n)}addSequence(n){this.sequences.add(n),this.scheduler.notify(7)}unregister(n){this.executing&&this.sequences.has(n)?(n.erroredOrDestroyed=!0,n.pipelinedValue=void 0,n.once=!0):(this.sequences.delete(n),this.deferredRegistrations.delete(n))}maybeTrace(n,r){return r?r.run(Qa.AFTER_NEXT_RENDER,n):n()}static \u0275prov=U({token:e,providedIn:"root",factory:()=>new e})}return e})(),Ls=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,n,r,o,i,s=null){this.impl=t,this.hooks=n,this.view=r,this.once=o,this.snapshot=s,this.unregisterOnDestroy=i?.onDestroy(()=>this.destroy())}afterRun(){this.erroredOrDestroyed=!1,this.pipelinedValue=void 0,this.snapshot?.dispose(),this.snapshot=null}destroy(){this.impl.unregister(this),this.unregisterOnDestroy?.();let t=this.view?.[qt];t&&(this.view[qt]=t.filter(n=>n!==this))}};function Qy(e,t){!t?.injector&&Sa(Qy);let n=t?.injector??w(tt);return $e("NgAfterRender"),ef(e,n,t,!1)}function Xd(e,t){!t?.injector&&Sa(Xd);let n=t?.injector??w(tt);return $e("NgAfterNextRender"),ef(e,n,t,!0)}function Zy(e,t){if(e instanceof Function){let n=[void 0,void 0,void 0,void 0];return n[t]=e,n}else return[e.earlyRead,e.write,e.mixedReadWrite,e.read]}function ef(e,t,n,r){let o=t.get(Jd);o.impl??=t.get(Gy);let i=t.get(qo,null,{optional:!0}),s=n?.phase??Bt.MixedReadWrite,a=n?.manualCleanup!==!0?t.get(Ho):null,c=t.get(Za,null,{optional:!0}),l=new Ls(o.impl,Zy(e,s),c?.view,r,a,i?.snapshot(null));return o.impl.register(l),l}var se=function(e){return e[e.NOT_STARTED=0]="NOT_STARTED",e[e.IN_PROGRESS=1]="IN_PROGRESS",e[e.COMPLETE=2]="COMPLETE",e[e.FAILED=3]="FAILED",e}(se||{}),Ql=0,Yy=1,B=function(e){return e[e.Placeholder=0]="Placeholder",e[e.Loading=1]="Loading",e[e.Complete=2]="Complete",e[e.Error=3]="Error",e}(B||{});var Ky=0,Wo=1;var Jy=4,Xy=5;var ev=7,Gt=8,tv=9,tf=function(e){return e[e.Manual=0]="Manual",e[e.Playthrough=1]="Playthrough",e}(tf||{});function Qr(e,t){let n=rv(e),r=t[n];if(r!==null){for(let o of r)o();t[n]=null}}function nv(e){Qr(1,e),Qr(0,e),Qr(2,e)}function rv(e){let t=Jy;return e===1?t=Xy:e===2&&(t=tv),t}function nf(e){return e+1}function Un(e,t){let n=e[I],r=nf(t.index);return e[r]}function zo(e,t){let n=nf(t.index);return e.data[n]}function ov(e,t,n){let r=t[I],o=zo(r,n);switch(e){case B.Complete:return o.primaryTmplIndex;case B.Loading:return o.loadingTmplIndex;case B.Error:return o.errorTmplIndex;case B.Placeholder:return o.placeholderTmplIndex;default:return null}}function Zl(e,t){return t===B.Placeholder?e.placeholderBlockConfig?.[Ql]??null:t===B.Loading?e.loadingBlockConfig?.[Ql]??null:null}function iv(e){return e.loadingBlockConfig?.[Yy]??null}function Yl(e,t){if(!e||e.length===0)return t;let n=new Set(e);for(let r of t)n.add(r);return e.length===n.size?e:Array.from(n)}function sv(e,t){let n=t.primaryTmplIndex+P;return Hn(e,n)}var Go="ngb";var av=(e,t,n)=>{let r=e,o=r.__jsaction_fns??new Map,i=o.get(t)??[];i.push(n),o.set(t,i),r.__jsaction_fns=o},cv=(e,t)=>{let n=e,r=n.getAttribute(Go)??"",o=t.get(r)??new Set;o.has(n)||o.add(n),t.set(r,o)};var lv=e=>{e.removeAttribute(Wi.JSACTION),e.removeAttribute(Go),e.__jsaction_fns=void 0},uv=new R("",{providedIn:"root",factory:()=>({})});function rf(e,t){let n=t?.__jsaction_fns?.get(e.type);if(!(!n||!t?.isConnected))for(let r of n)r(e)}var Fs=new Map;function dv(e,t){return Fs.set(e,t),()=>Fs.delete(e)}var Kl=!1,of=(e,t,n,r)=>{};function fv(e,t,n,r){of(e,t,n,r)}function pv(){Kl||(of=(e,t,n,r)=>{let o=e[Me].get(zt);Fs.get(o)?.(t,n,r)},Kl=!0)}var Ya=new R("");var hv="__nghData__",sf=hv,gv="__nghDeferData__",mv=gv,ns="ngh",yv="nghm",af=()=>null;function vv(e,t,n=!1){let r=e.getAttribute(ns);if(r==null)return null;let[o,i]=r.split("|");if(r=n?i:o,!r)return null;let s=i?`|${i}`:"",a=n?o:s,c={};if(r!==""){let u=t.get(Uo,null,{optional:!0});u!==null&&(c=u.get(sf,[])[Number(r)])}let l={data:c,firstChild:e.firstChild??null};return n&&(l.firstChild=e,Qo(l,0,e.nextSibling)),a?e.setAttribute(ns,a):e.removeAttribute(ns),l}function Ev(){af=vv}function cf(e,t,n=!1){return af(e,t,n)}function Iv(e){let t=e._lView;return t[I].type===2?null:(Sn(t)&&(t=t[P]),t)}function wv(e){return e.textContent?.replace(/\s/gm,"")}function Dv(e){let t=$o(),n=t.createNodeIterator(e,NodeFilter.SHOW_COMMENT,{acceptNode(i){let s=wv(i);return s==="ngetn"||s==="ngtns"?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_REJECT}}),r,o=[];for(;r=n.nextNode();)o.push(r);for(let i of o)i.textContent==="ngetn"?i.replaceWith(t.createTextNode("")):i.remove()}function Qo(e,t,n){e.segmentHeads??={},e.segmentHeads[t]=n}function Vs(e,t){return e.segmentHeads?.[t]??null}function bv(e){return e.get(qy,!1,{optional:!0})}function Mv(e,t){let n=e.data,r=n[Ly]?.[t]??null;return r===null&&n[Ga]?.[t]&&(r=Ka(e,t)),r}function lf(e,t){return e.data[Ga]?.[t]??null}function Ka(e,t){let n=lf(e,t)??[],r=0;for(let o of n)r+=o[ho]*(o[Gd]??1);return r}function Cv(e){if(typeof e.disconnectedNodes>"u"){let t=e.data[Qd];e.disconnectedNodes=t?new Set(t):null}return e.disconnectedNodes}function qn(e,t){if(typeof e.disconnectedNodes>"u"){let n=e.data[Qd];e.disconnectedNodes=n?new Set(n):null}return!!Cv(e)?.has(t)}function Tv(e,t){let n=t.get(Ya),o=t.get(Uo).get(mv,{}),i=!1,s=e,a=null,c=[];for(;!i&&s;){i=n.has(s);let l=n.hydrating.get(s);if(a===null&&l!=null){a=l.promise;break}c.unshift(s),s=o[s][$y]}return{parentBlockPromise:a,hydrationQueue:c}}function rs(e){return!!e&&e.nodeType===Node.COMMENT_NODE&&e.textContent?.trim()===yv}function Jl(e){for(;e&&e.nodeType===Node.TEXT_NODE;)e=e.previousSibling;return e}function _v(e){for(let r of e.body.childNodes)if(rs(r))return;let t=Jl(e.body.previousSibling);if(rs(t))return;let n=Jl(e.head.lastChild);if(!rs(n))throw new S(-507,!1)}function uf(e,t){let n=e.contentQueries;if(n!==null){let r=T(null);try{for(let o=0;oe,createScript:e=>e,createScriptURL:e=>e})}catch{}return jr}function Zo(e){return xv()?.createHTML(e)||e}var Hr;function Nv(){if(Hr===void 0&&(Hr=null,Ye.trustedTypes))try{Hr=Ye.trustedTypes.createPolicy("angular#unsafe-bypass",{createHTML:e=>e,createScript:e=>e,createScriptURL:e=>e})}catch{}return Hr}function Xl(e){return Nv()?.createScriptURL(e)||e}var He=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${xu})`}},Hs=class extends He{getTypeName(){return"HTML"}},Bs=class extends He{getTypeName(){return"Style"}},$s=class extends He{getTypeName(){return"Script"}},Us=class extends He{getTypeName(){return"URL"}},qs=class extends He{getTypeName(){return"ResourceURL"}};function Yo(e){return e instanceof He?e.changingThisBreaksApplicationSecurity:e}function df(e,t){let n=Sv(e);if(n!=null&&n!==t){if(n==="ResourceURL"&&t==="URL")return!0;throw new Error(`Required a safe ${t}, got a ${n} (see ${xu})`)}return n===t}function Sv(e){return e instanceof He&&e.getTypeName()||null}function GR(e){return new Hs(e)}function QR(e){return new Bs(e)}function ZR(e){return new $s(e)}function YR(e){return new Us(e)}function KR(e){return new qs(e)}function Ov(e){let t=new zs(e);return Rv()?new Ws(t):t}var Ws=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=""+t;try{let n=new window.DOMParser().parseFromString(Zo(t),"text/html").body;return n===null?this.inertDocumentHelper.getInertBodyElement(t):(n.firstChild?.remove(),n)}catch{return null}}},zs=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert")}getInertBodyElement(t){let n=this.inertDocument.createElement("template");return n.innerHTML=Zo(t),n}};function Rv(){try{return!!new window.DOMParser().parseFromString(Zo(""),"text/html")}catch{return!1}}var Av=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function ff(e){return e=String(e),e.match(Av)?e:"unsafe:"+e}function Ue(e){let t={};for(let n of e.split(","))t[n]=!0;return t}function Wn(...e){let t={};for(let n of e)for(let r in n)n.hasOwnProperty(r)&&(t[r]=!0);return t}var pf=Ue("area,br,col,hr,img,wbr"),hf=Ue("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),gf=Ue("rp,rt"),kv=Wn(gf,hf),Pv=Wn(hf,Ue("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Lv=Wn(gf,Ue("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),eu=Wn(pf,Pv,Lv,kv),mf=Ue("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Fv=Ue("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,srcset,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Vv=Ue("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext"),jv=Wn(mf,Fv,Vv),Hv=Ue("script,style,template"),Gs=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let n=t.firstChild,r=!0,o=[];for(;n;){if(n.nodeType===Node.ELEMENT_NODE?r=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,r&&n.firstChild){o.push(n),n=Uv(n);continue}for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);let i=$v(n);if(i){n=i;break}n=o.pop()}}return this.buf.join("")}startElement(t){let n=tu(t).toLowerCase();if(!eu.hasOwnProperty(n))return this.sanitizedSomething=!0,!Hv.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);let r=t.attributes;for(let o=0;o"),!0}endElement(t){let n=tu(t).toLowerCase();eu.hasOwnProperty(n)&&!pf.hasOwnProperty(n)&&(this.buf.push(""))}chars(t){this.buf.push(nu(t))}};function Bv(e,t){return(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function $v(e){let t=e.nextSibling;if(t&&e!==t.previousSibling)throw yf(t);return t}function Uv(e){let t=e.firstChild;if(t&&Bv(e,t))throw yf(t);return t}function tu(e){let t=e.nodeName;return typeof t=="string"?t:"FORM"}function yf(e){return new Error(`Failed to sanitize html because the element is clobbered: ${e.outerHTML}`)}var qv=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Wv=/([^\#-~ |!])/g;function nu(e){return e.replace(/&/g,"&").replace(qv,function(t){let n=t.charCodeAt(0),r=t.charCodeAt(1);return"&#"+((n-55296)*1024+(r-56320)+65536)+";"}).replace(Wv,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}var Br;function JR(e,t){let n=null;try{Br=Br||Ov(e);let r=t?String(t):"";n=Br.getInertBodyElement(r);let o=5,i=r;do{if(o===0)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Br.getInertBodyElement(r)}while(r!==i);let a=new Gs().sanitizeChildren(ru(n)||n);return Zo(a)}finally{if(n){let r=ru(n)||n;for(;r.firstChild;)r.firstChild.remove()}}}function ru(e){return"content"in e&&zv(e)?e.content:null}function zv(e){return e.nodeType===Node.ELEMENT_NODE&&e.nodeName==="TEMPLATE"}var Xa=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}(Xa||{});function Gv(e){let t=vf();return t?t.sanitize(Xa.URL,e)||"":df(e,"URL")?Yo(e):ff(Ae(e))}function Qv(e){let t=vf();if(t)return Xl(t.sanitize(Xa.RESOURCE_URL,e)||"");if(df(e,"ResourceURL"))return Xl(Yo(e));throw new S(904,!1)}function Zv(e,t){return t==="src"&&(e==="embed"||e==="frame"||e==="iframe"||e==="media"||e==="script")||t==="href"&&(e==="base"||e==="link")?Qv:Gv}function XR(e,t,n){return Zv(t,n)(e)}function vf(){let e=E();return e&&e[Le].sanitizer}var Yv=/^>|^->||--!>|)/g,Jv="\u200B$1\u200B";function Xv(e){return e.replace(Yv,t=>t.replace(Kv,Jv))}function eA(e){return e.ownerDocument}function eE(e){return e.ownerDocument.body}function Ef(e){return e instanceof Function?e():e}function tE(e,t,n){let r=e.length;for(;;){let o=e.indexOf(t,n);if(o===-1)return o;if(o===0||e.charCodeAt(o-1)<=32){let i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}var If="ng-template";function nE(e,t,n,r){let o=0;if(r){for(;o-1){let i;for(;++oi?f="":f=o[u+1].toLowerCase(),r&2&&l!==f){if(he(r))return!1;s=!0}}}}return he(r)||s}function he(e){return(e&1)===0}function iE(e,t,n,r){if(t===null)return-1;let o=0;if(r||!n){let i=!1;for(;o-1)for(n++;n0?'="'+a+'"':"")+"]"}else r&8?o+="."+s:r&4&&(o+=" "+s);else o!==""&&!he(s)&&(t+=ou(i,o),o=""),r=s,i=i||!he(r);n++}return o!==""&&(t+=ou(i,o)),t}function dE(e){return e.map(uE).join(",")}function fE(e){let t=[],n=[],r=1,o=2;for(;rP&&Nf(e,t,P,!1),A(s?2:0,o),n(r,o)}finally{wt(i),A(s?3:1,o)}}function Jo(e,t,n){CE(e,t,n),(n.flags&64)===64&&TE(e,t,n)}function sc(e,t,n=Ee){let r=t.localNames;if(r!==null){let o=t.index+1;for(let i=0;inull;function wE(e){jd(e)?Cf(e):Dv(e)}function DE(){Of=wE}function bE(e){return e==="class"?"className":e==="for"?"htmlFor":e==="formaction"?"formAction":e==="innerHtml"?"innerHTML":e==="readonly"?"readOnly":e==="tabindex"?"tabIndex":e}function Xo(e,t,n,r,o,i,s,a){if(!a&&lc(t,e,n,r,o)){_t(t)&&ME(n,t.index);return}if(t.type&3){let c=Ee(t,n);r=bE(r),o=s!=null?s(o,t.value||"",r):o,i.setProperty(c,r,o)}else t.type&12}function ME(e,t){let n=Te(t,e);n[D]&16||(n[D]|=64)}function CE(e,t,n){let r=n.directiveStart,o=n.directiveEnd;_t(n)&&vE(t,n,e.data[r+n.componentOffset]),e.firstCreatePass||lo(n,t);let i=n.initialInputs;for(let s=r;s=0?r[a]():r[-a].unsubscribe(),s+=2}else{let a=r[n[s+1]];n[s].call(a)}r!==null&&(t[ro]=null);let o=t[Je];if(o!==null){t[Je]=null;for(let s=0;s{tn(e.lView)},consumerOnSignalRead(){this.lView[de]=this}});function KE(e){let t=e[de]??Object.create(JE);return t.lView=e,t}var JE=ie(oe({},Rt),{consumerIsAlwaysLive:!0,kind:"template",consumerMarkedDirty:e=>{let t=It(e.lView);for(;t&&!jf(t[I]);)t=It(t);t&&sd(t)},consumerOnSignalRead(){this.lView[de]=this}});function jf(e){return e.type!==2}function Hf(e){if(e[Et]===null)return;let t=!0;for(;t;){let n=!1;for(let r of e[Et])r.dirty&&(n=!0,r.zone===null||Zone.current===r.zone?r.run():r.zone.run(()=>r.run()));t=n&&!!(e[D]&8192)}}var XE=100;function Bf(e,t=!0,n=0){let o=e[Le].rendererFactory,i=!1;i||o.begin?.();try{eI(e,n)}catch(s){throw t&&cc(e,s),s}finally{i||o.end?.()}}function eI(e,t){let n=ud();try{io(!0),Ks(e,t);let r=0;for(;Lo(e);){if(r===XE)throw new S(103,!1);r++,Ks(e,1)}}finally{io(n)}}function tI(e,t,n,r){if(xt(t))return;let o=t[D],i=!1,s=!1;Ha(t);let a=!0,c=null,l=null;i||(jf(e)?(l=GE(t),c=fn(l)):gi()===null?(a=!1,l=KE(t),c=fn(l)):t[de]&&(pn(t[de]),t[de]=null));try{id(t),Vm(e.bindingStartIndex),n!==null&&Sf(e,t,n,2,r);let u=(o&3)===3;if(!i)if(u){let d=e.preOrderCheckHooks;d!==null&&Wr(t,d,null)}else{let d=e.preOrderHooks;d!==null&&zr(t,d,0,null),es(t,0)}if(s||nI(t),Hf(t),$f(t,0),e.contentQueries!==null&&uf(e,t),!i)if(u){let d=e.contentCheckHooks;d!==null&&Wr(t,d)}else{let d=e.contentHooks;d!==null&&zr(t,d,1),es(t,1)}oI(e,t);let f=e.components;f!==null&&qf(t,f,0);let p=e.viewQuery;if(p!==null&&js(2,p,r),!i)if(u){let d=e.viewCheckHooks;d!==null&&Wr(t,d)}else{let d=e.viewHooks;d!==null&&zr(t,d,2),es(t,2)}if(e.firstUpdatePass===!0&&(e.firstUpdatePass=!1),t[Xi]){for(let d of t[Xi])d();t[Xi]=null}i||(Ff(t),t[D]&=-73)}catch(u){throw i||tn(t),u}finally{l!==null&&(Zn(l,c),a&&ZE(l)),Ba()}}function $f(e,t){for(let n=$d(e);n!==null;n=Ud(n))for(let r=z;r0&&(e[n-1][me]=r[me]);let i=to(e,z+t);PE(r[I],r);let s=i[Fe];s!==null&&s.detachView(i[I]),r[$]=null,r[me]=null,r[D]&=-129}return r}function iI(e,t,n,r){let o=z+r,i=n.length;r>0&&(n[o-1][me]=t),r-1&&(kn(t,r),to(n,r))}this._attachedToViewContainer=!1}ei(this._lView[I],this._lView)}onDestroy(t){ad(this._lView,t)}markForCheck(){ri(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[D]&=-129}reattach(){Ms(this._lView),this._lView[D]|=128}detectChanges(){this._lView[D]|=1024,Bf(this._lView,this.notifyErrorHandler)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new S(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=Sn(this._lView),n=this._lView[vt];n!==null&&!t&&fc(n,this._lView),Rf(this._lView[I],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new S(902,!1);this._appRef=t;let n=Sn(this._lView),r=this._lView[vt];r!==null&&!n&&Gf(r,this._lView),Ms(this._lView)}};var yo=(()=>{class e{static __NG_ELEMENT_ID__=cI}return e})(),sI=yo,aI=class extends sI{_declarationLView;_declarationTContainer;elementRef;constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(t,n){return this.createEmbeddedViewImpl(t,n)}createEmbeddedViewImpl(t,n,r){let o=an(this._declarationLView,this._declarationTContainer,t,{embeddedViewInjector:n,dehydratedView:r});return new Pn(o)}};function cI(){return oi(Z(),E())}function oi(e,t){return e.type&4?new aI(t,e,on(e,t)):null}function ln(e,t,n,r,o){let i=e.data[t];if(i===null)i=lI(e,t,n,r,o),jm()&&(i.flags|=32);else if(i.type&64){i.type=n,i.value=r,i.attrs=o;let s=Fm();i.injectorIndex=s===null?-1:s.injectorIndex}return rt(i,!0),i}function lI(e,t,n,r,o){let i=cd(),s=Fa(),a=s?i:i&&i.parent,c=e.data[t]=dI(e,a,n,t,r,o);return uI(e,c,i,s),c}function uI(e,t,n,r){e.firstChild===null&&(e.firstChild=t),n!==null&&(r?n.child==null&&t.parent!==null&&(n.child=t):n.next===null&&(n.next=t,t.prev=n))}function dI(e,t,n,r,o,i){let s=t?t.injectorIndex:-1,a=0;return nn()&&(a|=128),{type:n,index:r,insertBeforeIndex:null,injectorIndex:s,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,propertyBindings:null,flags:a,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:null,inputs:null,hostDirectiveInputs:null,outputs:null,hostDirectiveOutputs:null,directiveToIndex:null,tView:null,next:null,prev:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}var fI=new RegExp(`^(\\d+)*(${zd}|${Wd})*(.*)`);function pI(e){let t=e.match(fI),[n,r,o,i]=t,s=r?parseInt(r,10):o,a=[];for(let[c,l,u]of i.matchAll(/(f|n)(\d*)/g)){let f=parseInt(u,10)||1;a.push(l,f)}return[s,...a]}function hI(e){return!e.prev&&e.parent?.type===8}function is(e){return e.index-P}function gI(e,t){let n=e.i18nNodes;if(n)return n.get(t)}function ii(e,t,n,r){let o=is(r),i=gI(e,o);if(i===void 0){let s=e.data[jy];if(s?.[o])i=yI(s[o],n);else if(t.firstChild===r)i=e.firstChild;else{let a=r.prev===null,c=r.prev??r.parent;if(hI(r)){let l=is(r.parent);i=Vs(e,l)}else{let l=Ee(c,n);if(a)i=l.firstChild;else{let u=is(c),f=Vs(e,u);if(c.type===2&&f){let d=Ka(e,u)+1;i=si(d,f)}else i=l.nextSibling}}}}return i}function si(e,t){let n=t;for(let r=0;r0&&(i.firstChild=e,e=si(r[ho],e)),n.push(i)}return[e,n]}var Kf=()=>null;function CI(e,t){let n=e[Ve];return!t||n===null||n.length===0?null:n[0].data[Vy]===t?n.shift():(Qf(e),null)}function TI(){Kf=CI}function Jt(e,t){return Kf(e,t)}var _I=class{},Jf=class{},Js=class{resolveComponentFactory(t){throw Error(`No component factory found for ${ne(t)}.`)}},ci=class{static NULL=new Js},Eo=class{},aA=(()=>{class e{destroyNode=null;static __NG_ELEMENT_ID__=()=>xI()}return e})();function xI(){let e=E(),t=Z(),n=Te(t.index,e);return(ye(n)?n:e)[k]}var NI=(()=>{class e{static \u0275prov=U({token:e,providedIn:"root",factory:()=>null})}return e})();var ss={},Qt=class{injector;parentInjector;constructor(t,n){this.injector=t,this.parentInjector=n}get(t,n,r){r=No(r);let o=this.injector.get(t,ss,r);return o!==ss||n===ss?o:this.parentInjector.get(t,n,r)}};function Xs(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(t!==null)for(let s=0;s0&&(n.directiveToIndex=new Map);for(let p=0;p0;){let n=e[--t];if(typeof n=="number"&&n<0)return n}return 0}function jI(e,t,n){if(n){if(t.exportAs)for(let r=0;r{let[n,r,o]=e[t],i={propName:n,templateName:t,isSignal:(r&Ko.SignalBased)!==0};return o&&(i.transform=o),i})}function $I(e){return Object.keys(e).map(t=>({propName:e[t],templateName:t}))}function UI(e,t,n){let r=t instanceof Pe?t:t?.injector;return r&&e.getStandaloneInjector!==null&&(r=e.getStandaloneInjector(r)||r),r?new Qt(n,r):n}function qI(e){let t=e.get(Eo,null);if(t===null)throw new S(407,!1);let n=e.get(NI,null),r=e.get(nt,null);return{rendererFactory:t,sanitizer:n,changeDetectionScheduler:r}}function WI(e,t){let n=(e.selectors[0][0]||"div").toLowerCase();return tc(t,n,n==="svg"?rd:n==="math"?Cm:null)}var Ct=class extends Jf{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=BI(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=$I(this.componentDef.outputs),this.cachedOutputs}constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=dE(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!n}create(t,n,r,o){A(22);let i=T(null);try{let s=this.componentDef,a=r?["ng-version","19.2.14"]:fE(this.componentDef.selectors[0]),c=rc(0,null,null,1,0,null,null,null,null,[a],null),l=UI(s,o||this.ngModule,t),u=qI(l),f=u.rendererFactory.createRenderer(null,s),p=r?EE(f,r,s.encapsulation,l):WI(s,f),d=oc(null,c,null,512|_f(s),null,null,u,f,l,null,cf(p,l,!0));d[P]=p,Ha(d);let h=null;try{let g=ep(P,c,d,"#host",()=>[this.componentDef],!0,0);p&&(Tf(f,p,g),sn(p,d)),Jo(c,d,g),Ja(c,g,d),tp(c,g),n!==void 0&&zI(g,this.ngContentSelectors,n),h=Te(g.index,d),d[j]=h[j],uc(c,d,null)}catch(g){throw h!==null&&ks(h),ks(d),g}finally{A(23),Ba()}return new ea(this.componentType,d)}finally{T(i)}}},ea=class extends _I{_rootLView;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,n){super(),this._rootLView=n,this._tNode=Hn(n[I],P),this.location=on(this._tNode,n),this.instance=Te(this._tNode.index,n)[j],this.hostView=this.changeDetectorRef=new Pn(n,void 0,!1),this.componentType=t}setInput(t,n){let r=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),n))return;let o=this._rootLView,i=lc(r,o[I],o,t,n);this.previousInputValues.set(t,n);let s=Te(r.index,o);ri(s,1)}get injector(){return new ht(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function zI(e,t,n){let r=e.projection=[];for(let o=0;o{class e{static __NG_ELEMENT_ID__=GI}return e})();function GI(){let e=Z();return rp(e,E())}var QI=mc,np=class extends QI{_lContainer;_hostTNode;_hostLView;constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return on(this._hostTNode,this._hostLView)}get injector(){return new ht(this._hostTNode,this._hostLView)}get parentInjector(){let t=Ua(this._hostTNode,this._hostLView);if(wd(t)){let n=ao(t,this._hostLView),r=so(t),o=n[I].data[r+8];return new ht(o,n)}else return new ht(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let n=uu(this._lContainer);return n!==null&&n[t]||null}get length(){return this._lContainer.length-z}createEmbeddedView(t,n,r){let o,i;typeof r=="number"?o=r:r!=null&&(o=r.index,i=r.injector);let s=Jt(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(n||{},i,s);return this.insertImpl(a,o,Mt(this._hostTNode,s)),a}createComponent(t,n,r,o,i){let s=t&&!wm(t),a;if(s)a=n;else{let h=n||{};a=h.index,r=h.injector,o=h.projectableNodes,i=h.environmentInjector||h.ngModuleRef}let c=s?t:new Ct(ke(t)),l=r||this.parentInjector;if(!i&&c.ngModule==null){let g=(s?l:this.parentInjector).get(Pe,null);g&&(i=g)}let u=ke(c.componentType??{}),f=Jt(this._lContainer,u?.id??null),p=f?.firstChild??null,d=c.create(l,o,p,i);return this.insertImpl(d.hostView,a,Mt(this._hostTNode,f)),d}insert(t,n){return this.insertImpl(t,n,!0)}insertImpl(t,n,r){let o=t._lView;if(_m(o)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let c=o[$],l=new np(c,c[re],c[$]);l.detach(l.indexOf(t))}}let i=this._adjustIndex(n),s=this._lContainer;return cn(s,o,i,r),t.attachToViewContainerRef(),ju(as(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){let n=uu(this._lContainer);return n!==null?n.indexOf(t):-1}remove(t){let n=this._adjustIndex(t,-1),r=kn(this._lContainer,n);r&&(to(as(this._lContainer),n),ei(r[I],r))}detach(t){let n=this._adjustIndex(t,-1),r=kn(this._lContainer,n);return r&&to(as(this._lContainer),n)!=null?new Pn(r):null}_adjustIndex(t,n=0){return t??this.length+n}};function uu(e){return e[oo]}function as(e){return e[oo]||(e[oo]=[])}function rp(e,t){let n,r=t[e.index];return _e(r)?n=r:(n=Wf(r,t,null,e),t[e.index]=n,ic(t,n)),op(n,t,e,r),new np(n,e,t)}function ZI(e,t){let n=e[k],r=n.createComment(""),o=Ee(t,e),i=n.parentNode(o);return go(n,i,r,n.nextSibling(o),!1),r}var op=ip,yc=()=>!1;function YI(e,t,n){return yc(e,t,n)}function ip(e,t,n,r){if(e[je])return;let o;n.type&8?o=ve(r):o=ZI(t,n),e[je]=o}function KI(e,t,n){if(e[je]&&e[Ve])return!0;let r=n[fe],o=t.index-P;if(!r||Ty(t)||qn(r,o))return!1;let s=Vs(r,o),a=r.data[Ga]?.[o],[c,l]=MI(s,a);return e[je]=c,e[Ve]=l,!0}function JI(e,t,n,r){yc(e,n,t)||ip(e,t,n,r)}function XI(){op=JI,yc=KI}var ta=class e{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new e(this.queryList)}setDirty(){this.queryList.setDirty()}},na=class e{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let n=t.queries;if(n!==null){let r=t.contentQueries!==null?t.contentQueries[0]:n.length,o=[];for(let i=0;i0)r.push(s[a/2]);else{let l=i[a+1],u=t[-c];for(let f=z;ft.trim())}function lp(e,t,n){e.queries===null&&(e.queries=new ra),e.queries.track(new oa(t,n))}function sw(e,t){let n=e.contentQueries||(e.contentQueries=[]),r=n.length?n[n.length-1]:-1;t!==r&&n.push(e.queries.length-1,t)}function Ec(e,t){return e.queries.getByIndex(t)}function up(e,t){let n=e[I],r=Ec(n,t);return r.crossesNgTemplate?ia(n,e,t,[]):sp(n,e,r,t)}function dp(e,t,n){let r,o=Xn(()=>{r._dirtyCounter();let i=uw(r,e);if(t&&i===void 0)throw new S(-951,!1);return i});return r=o[X],r._dirtyCounter=wy(0),r._flatValue=void 0,o}function aw(e){return dp(!0,!1,e)}function cw(e){return dp(!0,!0,e)}function lw(e,t){let n=e[X];n._lView=E(),n._queryIndex=t,n._queryList=vc(n._lView,t),n._queryList.onDirty(()=>n._dirtyCounter.update(r=>r+1))}function uw(e,t){let n=e._lView,r=e._queryIndex;if(n===void 0||r===void 0||n[D]&4)return t?void 0:J;let o=vc(n,r),i=up(n,r);return o.reset(i,Ld),t?o.first:o._changesDetected||e._flatValue===void 0?e._flatValue=o.toArray():e._flatValue}function du(e,t){return aw(t)}function dw(e,t){return cw(t)}var uA=(du.required=dw,du);var Ln=class{},fw=class{};var sa=class extends Ln{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];componentFactoryResolver=new Io(this);constructor(t,n,r,o=!0){super(),this.ngModuleType=t,this._parent=n;let i=$u(t);this._bootstrapComponents=Ef(i.bootstrap),this._r3Injector=Sd(t,n,[{provide:Ln,useValue:this},{provide:ci,useValue:this.componentFactoryResolver},...r],ne(t),new Set(["environment"])),o&&this.resolveInjectorInitializers()}resolveInjectorInitializers(){this._r3Injector.resolveInjectorInitializers(),this.instance=this._r3Injector.get(this.ngModuleType)}get injector(){return this._r3Injector}destroy(){let t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}},aa=class extends fw{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new sa(this.moduleType,t,[])}};var Do=class extends Ln{injector;componentFactoryResolver=new Io(this);instance=null;constructor(t){super();let n=new xn([...t.providers,{provide:Ln,useValue:this},{provide:ci,useValue:this.componentFactoryResolver}],t.parent||Ro(),t.debugName,new Set(["environment"]));this.injector=n,t.runEnvironmentInitializers&&n.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function fp(e,t,n=null){return new Do({providers:e,parent:t,debugName:n,runEnvironmentInitializers:!0}).injector}var pw=(()=>{class e{_injector;cachedInjectors=new Map;constructor(n){this._injector=n}getOrCreateStandaloneInjector(n){if(!n.standalone)return null;if(!this.cachedInjectors.has(n)){let r=xa(!1,n.type),o=r.length>0?fp([r],this._injector,`Standalone[${n.type.name}]`):null;this.cachedInjectors.set(n,o)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=U({token:e,providedIn:"environment",factory:()=>new e(Xe(Pe))})}return e})();function pA(e){return Vn(()=>{let t=pp(e),n=ie(oe({},t),{decls:e.decls,vars:e.vars,template:e.template,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,onPush:e.changeDetection===Hd.OnPush,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&e.dependencies||null,getStandaloneInjector:t.standalone?o=>o.get(pw).getOrCreateStandaloneInjector(n):null,getExternalStyles:null,signals:e.signals??!1,data:e.data||{},encapsulation:e.encapsulation||An.Emulated,styles:e.styles||J,_:null,schemas:e.schemas||null,tView:null,id:""});t.standalone&&$e("NgStandalone"),hp(n);let r=e.dependencies;return n.directiveDefs=fu(r,!1),n.pipeDefs=fu(r,!0),n.id=vw(n),n})}function hw(e){return ke(e)||Uu(e)}function gw(e){return e!==null}function hA(e){return Vn(()=>({type:e.type,bootstrap:e.bootstrap||J,declarations:e.declarations||J,imports:e.imports||J,exports:e.exports||J,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null}))}function mw(e,t){if(e==null)return mt;let n={};for(let r in e)if(e.hasOwnProperty(r)){let o=e[r],i,s,a,c;Array.isArray(o)?(a=o[0],i=o[1],s=o[2]??i,c=o[3]||null):(i=o,s=o,a=Ko.None,c=null),n[i]=[r,a,c],t[i]=s}return n}function yw(e){if(e==null)return mt;let t={};for(let n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}function gA(e){return Vn(()=>{let t=pp(e);return hp(t),t})}function mA(e){return{type:e.type,name:e.name,factory:null,pure:e.pure!==!1,standalone:e.standalone??!0,onDestroy:e.type.prototype.ngOnDestroy||null}}function pp(e){let t={};return{type:e.type,providersResolver:null,factory:null,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:t,inputConfig:e.inputs||mt,exportAs:e.exportAs||null,standalone:e.standalone??!0,signals:e.signals===!0,selectors:e.selectors||J,viewQuery:e.viewQuery||null,features:e.features||null,setInput:null,findHostDirectiveDefs:null,hostDirectives:null,inputs:mw(e.inputs,t),outputs:yw(e.outputs),debugInfo:null}}function hp(e){e.features?.forEach(t=>t(e))}function fu(e,t){if(!e)return null;let n=t?qu:hw;return()=>(typeof e=="function"?e():e).map(r=>n(r)).filter(gw)}function vw(e){let t=0,n=typeof e.consts=="function"?"":e.consts,r=[e.selectors,e.ngContentSelectors,e.hostVars,e.hostAttrs,n,e.vars,e.decls,e.encapsulation,e.standalone,e.signals,e.exportAs,JSON.stringify(e.inputs),JSON.stringify(e.outputs),Object.getOwnPropertyNames(e.type.prototype),!!e.contentQueries,!!e.viewQuery];for(let i of r.join("|"))t=Math.imul(31,t)+i.charCodeAt(0)<<0;return t+=2147483648,"c"+t}function Ew(e){return Object.getPrototypeOf(e.prototype).constructor}function Iw(e){let t=Ew(e.type),n=!0,r=[e];for(;t;){let o;if(Ce(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new S(903,!1);o=t.\u0275dir}if(o){if(n){r.push(o);let s=e;s.inputs=cs(e.inputs),s.declaredInputs=cs(e.declaredInputs),s.outputs=cs(e.outputs);let a=o.hostBindings;a&&Cw(e,a);let c=o.viewQuery,l=o.contentQueries;if(c&&bw(e,c),l&&Mw(e,l),ww(e,o),Ug(e.outputs,o.outputs),Ce(o)&&o.data.animation){let u=e.data;u.animation=(u.animation||[]).concat(o.data.animation)}}let i=o.features;if(i)for(let s=0;s=0;r--){let o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=Kt(o.hostAttrs,n=Kt(n,o.hostAttrs))}}function cs(e){return e===mt?{}:e===J?[]:e}function bw(e,t){let n=e.viewQuery;n?e.viewQuery=(r,o)=>{t(r,o),n(r,o)}:e.viewQuery=t}function Mw(e,t){let n=e.contentQueries;n?e.contentQueries=(r,o,i)=>{t(r,o,i),n(r,o,i)}:e.contentQueries=t}function Cw(e,t){let n=e.hostBindings;n?e.hostBindings=(r,o)=>{t(r,o),n(r,o)}:e.hostBindings=t}function Ic(e,t,n){return e[t]=n}function Tw(e,t){return e[t]}function le(e,t,n){let r=e[t];return Object.is(r,n)?!1:(e[t]=n,!0)}function wc(e,t,n,r){let o=le(e,t,n);return le(e,t+1,r)||o}function _w(e,t,n,r,o){let i=wc(e,t,n,r);return le(e,t+2,o)||i}function xw(e,t,n,r,o,i,s,a,c){let l=t.consts,u=ln(t,e,4,s||null,a||null);La()&&gc(t,n,u,et(l,c),ac),u.mergedAttrs=Kt(u.mergedAttrs,u.attrs),$a(t,u);let f=u.tView=rc(2,u,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l,null);return t.queries!==null&&(t.queries.template(t,u),f.queries=t.queries.embeddedTView(u)),u}function bo(e,t,n,r,o,i,s,a,c,l){let u=n+P,f=t.firstCreatePass?xw(u,t,e,r,o,i,s,a,c):t.data[u];rt(f,!1);let p=gp(t,e,f,n);jo()&&ti(t,e,p,f),sn(p,e);let d=Wf(p,e,p,f);return e[u]=d,ic(e,d),YI(d,f,e),ko(f)&&Jo(t,e,f),c!=null&&sc(e,f,l),f}function Nw(e,t,n,r,o,i,s,a){let c=E(),l=F(),u=et(l.consts,i);return bo(c,l,e,t,n,r,o,u,s,a),Nw}var gp=mp;function mp(e,t,n,r){return ot(!0),t[k].createComment("")}function Sw(e,t,n,r){let o=t[fe],i=!o||nn()||St(n)||qn(o,r);if(ot(i),i)return mp(e,t);let s=o.data[Fy]?.[r]??null;s!==null&&n.tView!==null&&n.tView.ssrId===null&&(n.tView.ssrId=s);let a=ii(o,e,t,n);Qo(o,r,a);let c=Ka(o,r);return si(c,a)}function Ow(){gp=Sw}var Rw=(()=>{class e{cachedInjectors=new Map;getOrCreateInjector(n,r,o,i){if(!this.cachedInjectors.has(n)){let s=o.length>0?fp(o,r,i):null;this.cachedInjectors.set(n,s)}return this.cachedInjectors.get(n)}ngOnDestroy(){try{for(let n of this.cachedInjectors.values())n!==null&&n.destroy()}finally{this.cachedInjectors.clear()}}static \u0275prov=U({token:e,providedIn:"environment",factory:()=>new e})}return e})();var Aw=new R("");function ls(e,t,n){return e.get(Rw).getOrCreateInjector(t,e,n,"")}function kw(e,t,n){if(e instanceof Qt){let o=e.injector,i=e.parentInjector,s=ls(i,t,n);return new Qt(o,s)}let r=e.get(Pe);if(r!==e){let o=ls(r,t,n);return new Qt(e,o)}return ls(e,t,n)}function Ut(e,t,n,r=!1){let o=n[$],i=o[I];if(xt(o))return;let s=Un(o,t),a=s[Wo],c=s[ev];if(!(c!==null&&eo.data[By]===t[Wo])??-1;return{dehydratedView:n>-1?e[Ve][n]:null,dehydratedViewIx:n}}function Lw(e,t,n,r,o){A(20);let i=ov(e,o,r);if(i!==null){t[Wo]=e;let s=o[I],a=i+P,c=Hn(s,a),l=0;hc(n,l);let u;if(e===B.Complete){let h=zo(s,r),g=h.providers;g&&g.length>0&&(u=kw(o[Me],h,g))}let{dehydratedView:f,dehydratedViewIx:p}=Pw(n,t),d=an(o,c,null,{injector:u,dehydratedView:f});if(cn(n,d,l,Mt(c,f)),ri(d,2),p>-1&&n[Ve]?.splice(p,1),(e===B.Complete||e===B.Error)&&Array.isArray(t[Gt])){for(let h of t[Gt])h();t[Gt]=null}}A(21)}function pu(e,t){return e{e.loadingState===se.COMPLETE?Ut(B.Complete,t,n):e.loadingState===se.FAILED&&Ut(B.Error,t,n)})}var Fw=null;var yA=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}static \u0275fac=function(r){return new(r||e)};static \u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"platform"})}return e})();var Vw=new R("");var yp=(()=>{class e{static \u0275prov=U({token:e,providedIn:"root",factory:()=>new ca})}return e})(),ca=class{queuedEffectCount=0;queues=new Map;schedule(t){this.enqueue(t)}remove(t){let n=t.zone,r=this.queues.get(n);r.has(t)&&(r.delete(t),this.queuedEffectCount--)}enqueue(t){let n=t.zone;this.queues.has(n)||this.queues.set(n,new Set);let r=this.queues.get(n);r.has(t)||(this.queuedEffectCount++,r.add(t))}flush(){for(;this.queuedEffectCount>0;)for(let[t,n]of this.queues)t===null?this.flushQueue(n):t.run(()=>this.flushQueue(n))}flushQueue(t){for(let n of t)t.delete(n),this.queuedEffectCount--,n.run()}};function vp(e){return!!e&&typeof e.then=="function"}function jw(e){return!!e&&typeof e.subscribe=="function"}var Ep=new R("");function vA(e){return Oo([{provide:Ep,multi:!0,useValue:e}])}var Ip=(()=>{class e{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((n,r)=>{this.resolve=n,this.reject=r});appInits=w(Ep,{optional:!0})??[];injector=w(tt);constructor(){}runInitializers(){if(this.initialized)return;let n=[];for(let o of this.appInits){let i=Zu(this.injector,o);if(vp(i))n.push(i);else if(jw(i)){let s=new Promise((a,c)=>{i.subscribe({complete:a,error:c})});n.push(s)}}let r=()=>{this.done=!0,this.resolve()};Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),n.length===0&&r(),this.initialized=!0}static \u0275fac=function(r){return new(r||e)};static \u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),Dc=new R("");function Hw(){Ei(()=>{throw new S(600,!1)})}function Bw(e){return e.isBoundToModule}var $w=10;var Be=(()=>{class e{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=w(yy);afterRenderManager=w(Jd);zonelessEnabled=w(qa);rootEffectScheduler=w(yp);dirtyFlags=0;tracingSnapshot=null;externalTestViews=new Set;afterTick=new ee;get allViews(){return[...this.externalTestViews.keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];isStable=w(rn).hasPendingTasks.pipe(ue(n=>!n));constructor(){w(qo,{optional:!0})}whenStable(){let n;return new Promise(r=>{n=this.isStable.subscribe({next:o=>{o&&r()}})}).finally(()=>{n.unsubscribe()})}_injector=w(Pe);_rendererFactory=null;get injector(){return this._injector}bootstrap(n,r){return this.bootstrapImpl(n,r)}bootstrapImpl(n,r,o=tt.NULL){A(10);let i=n instanceof Jf;if(!this._injector.get(Ip).done){let d="";throw new S(405,d)}let a;i?a=n:a=this._injector.get(ci).resolveComponentFactory(n),this.componentTypes.push(a.componentType);let c=Bw(a)?void 0:this._injector.get(Ln),l=r||a.selector,u=a.create(o,[],l,c),f=u.location.nativeElement,p=u.injector.get(Vw,null);return p?.registerApplication(f),u.onDestroy(()=>{this.detachView(u.hostView),Zr(this.components,u),p?.unregisterApplication(f)}),this._loadComponent(u),A(11,u),u}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){A(12),this.tracingSnapshot!==null?this.tracingSnapshot.run(Qa.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw new S(101,!1);let n=T(null);try{this._runningTick=!0,this.synchronize()}catch(r){this.internalErrorHandler(r)}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,T(n),this.afterTick.next(),A(13)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Eo,null,{optional:!0}));let n=0;for(;this.dirtyFlags!==0&&n++<$w;)A(14),this.synchronizeOnce(),A(15)}synchronizeOnce(){if(this.dirtyFlags&16&&(this.dirtyFlags&=-17,this.rootEffectScheduler.flush()),this.dirtyFlags&7){let n=!!(this.dirtyFlags&1);this.dirtyFlags&=-8,this.dirtyFlags|=8;for(let{_lView:r,notifyErrorHandler:o}of this.allViews)Uw(r,o,n,this.zonelessEnabled);if(this.dirtyFlags&=-5,this.syncDirtyFlagsWithViews(),this.dirtyFlags&23)return}else this._rendererFactory?.begin?.(),this._rendererFactory?.end?.();this.dirtyFlags&8&&(this.dirtyFlags&=-9,this.afterRenderManager.execute()),this.syncDirtyFlagsWithViews()}syncDirtyFlagsWithViews(){if(this.allViews.some(({_lView:n})=>Lo(n))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(n){let r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){let r=n;Zr(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(Dc,[]).forEach(o=>o(n))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(n=>n()),this._views.slice().forEach(n=>n.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(n){return this._destroyListeners.push(n),()=>Zr(this._destroyListeners,n)}destroy(){if(this._destroyed)throw new S(406,!1);let n=this._injector;n.destroy&&!n.destroyed&&n.destroy()}get viewCount(){return this._views.length}static \u0275fac=function(r){return new(r||e)};static \u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function Zr(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}function Uw(e,t,n,r){if(!n&&!Lo(e))return;Bf(e,t,n&&!r?0:1)}function qw(e,t,n){let r=t[Me],o=t[I];if(e.loadingState!==se.NOT_STARTED)return e.loadingPromise??Promise.resolve();let i=Un(t,n),s=sv(o,e);e.loadingState=se.IN_PROGRESS,Qr(1,i);let a=e.dependencyResolverFn,c=r.get(uy).add();return a?(e.loadingPromise=Promise.allSettled(a()).then(l=>{let u=!1,f=[],p=[];for(let d of l)if(d.status==="fulfilled"){let h=d.value,g=ke(h)||Uu(h);if(g)f.push(g);else{let C=qu(h);C&&p.push(C)}}else{u=!0;break}if(u){if(e.loadingState=se.FAILED,e.errorTmplIndex===null){let d="",h=new S(-750,!1);cc(t,h)}}else{e.loadingState=se.COMPLETE;let d=s.tView;if(f.length>0){d.directiveRegistry=Yl(d.directiveRegistry,f);let h=f.map(C=>C.type),g=xa(!1,...h);e.providers=g}p.length>0&&(d.pipeRegistry=Yl(d.pipeRegistry,p))}}),e.loadingPromise.finally(()=>{e.loadingPromise=null,c()})):(e.loadingPromise=Promise.resolve().then(()=>{e.loadingPromise=null,e.loadingState=se.COMPLETE,c()}),e.loadingPromise)}function Ww(e,t){return t[Me].get(Aw,null,{optional:!0})?.behavior!==tf.Manual}function zw(e,t,n){let r=t[I],o=t[n.index];if(!Ww(e,t))return;let i=Un(t,n),s=zo(r,n);switch(nv(i),s.loadingState){case se.NOT_STARTED:Ut(B.Loading,n,o),qw(s,t,n),s.loadingState===se.IN_PROGRESS&&hu(s,n,o);break;case se.IN_PROGRESS:Ut(B.Loading,n,o),hu(s,n,o);break;case se.COMPLETE:Ut(B.Complete,n,o);break;case se.FAILED:Ut(B.Error,n,o);break;default:}}function Gw(e,t,n){return Ot(this,null,function*(){let r=e.get(Ya);if(r.hydrating.has(t))return;let{parentBlockPromise:i,hydrationQueue:s}=Tv(t,e);if(s.length===0)return;i!==null&&s.shift(),Yw(r,s),i!==null&&(yield i);let a=s[0];r.has(a)?yield gu(e,s,n):r.awaitParentBlock(a,()=>Ot(null,null,function*(){return yield gu(e,s,n)}))})}function gu(e,t,n){return Ot(this,null,function*(){let r=e.get(Ya),o=r.hydrating,i=e.get(rn),s=i.add();for(let c=0;c-1?n.get(t[r]):null;o&&ai(o.lContainer)}function mu(e,t){let n=t.hydrating;for(let r in e)n.get(r)?.reject();t.cleanup(e)}function Yw(e,t){for(let n of t)e.hydrating.set(n,Promise.withResolvers())}function Kw(e){return new Promise(t=>Xd(t,{injector:e}))}function Jw(e){return Ot(this,null,function*(){let{tNode:t,lView:n}=e,r=Un(n,t);return new Promise(o=>{Xw(r,o),zw(2,n,t)})})}function Xw(e,t){Array.isArray(e[Gt])||(e[Gt]=[]),e[Gt].push(t)}function eD(e,t,n,r){let o=E(),i=Nt();if(le(o,i,t)){let s=F(),a=$n();xE(a,o,e,t,n,r)}return eD}function bc(e,t,n,r){return le(e,Nt(),n)?t+Ae(n)+r:Y}function tD(e,t,n,r,o,i){let s=dd(),a=wc(e,s,n,o);return Fo(2),a?t+Ae(n)+r+Ae(o)+i:Y}function nD(e,t,n,r,o,i,s,a){let c=dd(),l=_w(e,c,n,o,s);return Fo(3),l?t+Ae(n)+r+Ae(o)+i+Ae(s)+a:Y}function $r(e,t){return e<<17|t<<2}function Tt(e){return e>>17&32767}function rD(e){return(e&2)==2}function oD(e,t){return e&131071|t<<17}function la(e){return e|2}function Xt(e){return(e&131068)>>2}function us(e,t){return e&-131069|t<<2}function iD(e){return(e&1)===1}function ua(e){return e|1}function sD(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Tt(s),c=Xt(s);e[r]=n;let l=!1,u;if(Array.isArray(n)){let f=n;u=f[1],(u===null||jn(f,u)>0)&&(l=!0)}else u=n;if(o)if(c!==0){let p=Tt(e[a+1]);e[r+1]=$r(p,a),p!==0&&(e[p+1]=us(e[p+1],r)),e[a+1]=oD(e[a+1],r)}else e[r+1]=$r(a,0),a!==0&&(e[a+1]=us(e[a+1],r)),a=r;else e[r+1]=$r(c,0),a===0?a=r:e[c+1]=us(e[c+1],r),c=r;l&&(e[r+1]=la(e[r+1])),yu(e,u,r,!0),yu(e,u,r,!1),aD(t,u,e,r,i),s=$r(a,c),i?t.classBindings=s:t.styleBindings=s}function aD(e,t,n,r,o){let i=o?e.residualClasses:e.residualStyles;i!=null&&typeof t=="string"&&jn(i,t)>=0&&(n[r+1]=ua(n[r+1]))}function yu(e,t,n,r){let o=e[n+1],i=t===null,s=r?Tt(o):Xt(o),a=!1;for(;s!==0&&(a===!1||i);){let c=e[s],l=e[s+1];cD(c,t)&&(a=!0,e[s+1]=r?ua(l):la(l)),s=r?Tt(l):Xt(l)}a&&(e[n+1]=r?la(o):ua(o))}function cD(e,t){return e===null||t==null||(Array.isArray(e)?e[1]:e)===t?!0:Array.isArray(e)&&typeof t=="string"?jn(e,t)>=0:!1}var ge={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function lD(e){return e.substring(ge.key,ge.keyEnd)}function uD(e){return dD(e),wp(e,Dp(e,0,ge.textEnd))}function wp(e,t){let n=ge.textEnd;return n===t?-1:(t=ge.keyEnd=fD(e,ge.key=t,n),Dp(e,t,n))}function dD(e){ge.key=0,ge.keyEnd=0,ge.value=0,ge.valueEnd=0,ge.textEnd=e.length}function Dp(e,t,n){for(;t32;)t++;return t}function pD(e,t,n){let r=E(),o=Nt();if(le(r,o,t)){let i=F(),s=$n();Xo(i,s,r,e,t,r[k],n,!1)}return pD}function da(e,t,n,r,o){lc(t,e,n,o?"class":"style",r)}function hD(e,t,n){return Mp(e,t,n,!1),hD}function gD(e,t){return Mp(e,t,null,!0),gD}function EA(e){Cp(wD,bp,e,!0)}function bp(e,t){for(let n=uD(t);n>=0;n=wp(t,n))So(e,lD(t),!0)}function Mp(e,t,n,r){let o=E(),i=F(),s=Fo(2);if(i.firstUpdatePass&&_p(i,e,s,r),t!==Y&&le(o,s,t)){let a=i.data[Ie()];xp(i,a,o,o[k],e,o[s+1]=bD(t,n),r,s)}}function Cp(e,t,n,r){let o=F(),i=Fo(2);o.firstUpdatePass&&_p(o,null,i,r);let s=E();if(n!==Y&&le(s,i,n)){let a=o.data[Ie()];if(Np(a,r)&&!Tp(o,i)){let c=r?a.classesWithoutHost:a.stylesWithoutHost;c!==null&&(n=ms(c,n||"")),da(o,a,s,n,r)}else DD(o,a,s,s[k],s[i+1],s[i+1]=ID(e,t,n),r,i)}}function Tp(e,t){return t>=e.expandoStartIndex}function _p(e,t,n,r){let o=e.data;if(o[n+1]===null){let i=o[Ie()],s=Tp(e,n);Np(i,r)&&t===null&&!s&&(t=!1),t=mD(o,i,t,r),sD(o,i,t,n,s,r)}}function mD(e,t,n,r){let o=$m(e),i=r?t.residualClasses:t.residualStyles;if(o===null)(r?t.classBindings:t.styleBindings)===0&&(n=ds(null,e,t,n,r),n=Fn(n,t.attrs,r),i=null);else{let s=t.directiveStylingLast;if(s===-1||e[s]!==o)if(n=ds(o,e,t,n,r),i===null){let c=yD(e,t,r);c!==void 0&&Array.isArray(c)&&(c=ds(null,e,t,c[1],r),c=Fn(c,t.attrs,r),vD(e,t,r,c))}else i=ED(e,t,r)}return i!==void 0&&(r?t.residualClasses=i:t.residualStyles=i),n}function yD(e,t,n){let r=n?t.classBindings:t.styleBindings;if(Xt(r)!==0)return e[Tt(r)]}function vD(e,t,n,r){let o=n?t.classBindings:t.styleBindings;e[Tt(o)]=r}function ED(e,t,n){let r,o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i0;){let c=e[o],l=Array.isArray(c),u=l?c[1]:c,f=u===null,p=n[o+1];p===Y&&(p=f?J:void 0);let d=f?Ki(p,r):u===r?p:void 0;if(l&&!Mo(d)&&(d=Ki(c,r)),Mo(d)&&(a=d,s))return a;let h=e[o+1];o=s?Tt(h):Xt(h)}if(t!==null){let c=i?t.residualClasses:t.residualStyles;c!=null&&(a=Ki(c,r))}return a}function Mo(e){return e!==void 0}function bD(e,t){return e==null||e===""||(typeof t=="string"?e=e+t:typeof e=="object"&&(e=ne(Yo(e)))),e}function Np(e,t){return(e.flags&(t?8:16))!==0}function IA(e,t,n){let r=E(),o=bc(r,e,t,n);Cp(So,bp,o,!0)}function wA(){return E()[Q][j]}var fa=class{destroy(t){}updateValue(t,n){}swap(t,n){let r=Math.min(t,n),o=Math.max(t,n),i=this.detach(o);if(o-r>1){let s=this.detach(r);this.attach(r,i),this.attach(o,s)}else this.attach(r,i)}move(t,n){this.attach(n,this.detach(t))}};function fs(e,t,n,r,o){return e===n&&Object.is(t,r)?1:Object.is(o(e,t),o(n,r))?-1:0}function MD(e,t,n){let r,o,i=0,s=e.length-1,a=void 0;if(Array.isArray(t)){let c=t.length-1;for(;i<=s&&i<=c;){let l=e.at(i),u=t[i],f=fs(i,l,i,u,n);if(f!==0){f<0&&e.updateValue(i,u),i++;continue}let p=e.at(s),d=t[c],h=fs(s,p,c,d,n);if(h!==0){h<0&&e.updateValue(s,d),s--,c--;continue}let g=n(i,l),C=n(s,p),_=n(i,u);if(Object.is(_,C)){let q=n(c,d);Object.is(q,g)?(e.swap(i,s),e.updateValue(s,d),c--,s--):e.move(s,i),e.updateValue(i,u),i++;continue}if(r??=new Co,o??=Iu(e,i,s,n),pa(e,r,i,_))e.updateValue(i,u),i++,s++;else if(o.has(_))r.set(g,e.detach(i)),s--;else{let q=e.create(i,t[i]);e.attach(i,q),i++,s++}}for(;i<=c;)Eu(e,r,n,i,t[i]),i++}else if(t!=null){let c=t[Symbol.iterator](),l=c.next();for(;!l.done&&i<=s;){let u=e.at(i),f=l.value,p=fs(i,u,i,f,n);if(p!==0)p<0&&e.updateValue(i,f),i++,l=c.next();else{r??=new Co,o??=Iu(e,i,s,n);let d=n(i,f);if(pa(e,r,i,d))e.updateValue(i,f),i++,s++,l=c.next();else if(!o.has(d))e.attach(i,e.create(i,f)),i++,s++,l=c.next();else{let h=n(i,u);r.set(h,e.detach(i)),s--}}}for(;!l.done;)Eu(e,r,n,e.length,l.value),l=c.next()}for(;i<=s;)e.destroy(e.detach(s--));r?.forEach(c=>{e.destroy(c)})}function pa(e,t,n,r){return t!==void 0&&t.has(r)?(e.attach(n,t.get(r)),t.delete(r),!0):!1}function Eu(e,t,n,r,o){if(pa(e,t,r,n(r,o)))e.updateValue(r,o);else{let i=e.create(r,o);e.attach(r,i)}}function Iu(e,t,n,r){let o=new Set;for(let i=t;i<=n;i++)o.add(r(i,e.at(i)));return o}var Co=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let n=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(n)?(this.kvMap.set(t,this._vMap.get(n)),this._vMap.delete(n)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,n){if(this.kvMap.has(t)){let r=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let o=this._vMap;for(;o.has(r);)r=o.get(r);o.set(r,n)}else this.kvMap.set(t,n)}forEach(t){for(let[n,r]of this.kvMap)if(t(r,n),this._vMap!==void 0){let o=this._vMap;for(;o.has(r);)r=o.get(r),t(r,n)}}};function DA(e,t){$e("NgControlFlow");let n=E(),r=Nt(),o=n[r]!==Y?n[r]:-1,i=o!==-1?To(n,P+o):void 0,s=0;if(le(n,r,e)){let a=T(null);try{if(i!==void 0&&hc(i,s),e!==-1){let c=P+e,l=To(n,c),u=ya(n[I],c),f=Jt(l,u.tView.ssrId),p=an(n,u,t,{dehydratedView:f});cn(l,p,s,Mt(u,f))}}finally{T(a)}}else if(i!==void 0){let a=zf(i,s);a!==void 0&&(a[j]=t)}}var ha=class{lContainer;$implicit;$index;constructor(t,n,r){this.lContainer=t,this.$implicit=n,this.$index=r}get $count(){return this.lContainer.length-z}};function bA(e){return e}function MA(e,t){return t}var ga=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,n,r){this.hasEmptyBlock=t,this.trackByFn=n,this.liveCollection=r}};function CA(e,t,n,r,o,i,s,a,c,l,u,f,p){$e("NgControlFlow");let d=E(),h=F(),g=c!==void 0,C=E(),_=a?s.bind(C[Q][j]):s,q=new ga(g,_);C[P+e]=q,bo(d,h,e+1,t,n,r,o,et(h.consts,i)),g&&bo(d,h,e+2,c,l,u,f,et(h.consts,p))}var ma=class extends fa{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,n,r){super(),this.lContainer=t,this.hostLView=n,this.templateTNode=r}get length(){return this.lContainer.length-z}at(t){return this.getLView(t)[j].$implicit}attach(t,n){let r=n[fe];this.needsIndexUpdate||=t!==this.length,cn(this.lContainer,n,t,Mt(this.templateTNode,r))}detach(t){return this.needsIndexUpdate||=t!==this.length-1,CD(this.lContainer,t)}create(t,n){let r=Jt(this.lContainer,this.templateTNode.tView.ssrId),o=an(this.hostLView,this.templateTNode,new ha(this.lContainer,n,t),{dehydratedView:r});return this.operationsCounter?.recordCreate(),o}destroy(t){ei(t[I],t),this.operationsCounter?.recordDestroy()}updateValue(t,n){this.getLView(t)[j].$implicit=n}reset(){this.needsIndexUpdate=!1,this.operationsCounter?.reset()}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t(ot(!0),tc(r,o,yd()));function xD(e,t,n,r,o,i){let s=t[fe],a=!s||nn()||St(n)||qn(s,i);if(ot(a),a)return tc(r,o,yd());let c=ii(s,e,t,n);return lf(s,i)&&Qo(s,i,c.nextSibling),s&&(Vd(n)||jd(c))&&_t(n)&&(Pm(n),Cf(c)),c}function ND(){Rp=xD}function SD(e,t,n,r,o){let i=t.consts,s=et(i,r),a=ln(t,e,8,"ng-container",s);s!==null&&Xs(a,s,!0);let c=et(i,o);return La()&&gc(t,n,a,c,ac),a.mergedAttrs=Kt(a.mergedAttrs,a.attrs),t.queries!==null&&t.queries.elementStart(t,a),a}function Ap(e,t,n){let r=E(),o=F(),i=e+P,s=o.firstCreatePass?SD(i,o,r,t,n):o.data[i];rt(s,!0);let a=Pp(o,r,s,e);return r[i]=a,jo()&&ti(o,r,a,s),sn(a,r),ko(s)&&(Jo(o,r,s),Ja(o,s,r)),n!=null&&sc(r,s),Ap}function kp(){let e=Z(),t=F();return Fa()?Va():(e=e.parent,rt(e,!1)),t.firstCreatePass&&($a(t,e),Oa(e)&&t.queries.elementEnd(e)),kp}function OD(e,t,n){return Ap(e,t,n),kp(),OD}var Pp=(e,t,n,r)=>(ot(!0),bf(t[k],""));function RD(e,t,n,r){let o,i=t[fe],s=!i||nn()||qn(i,r)||St(n);if(ot(s),s)return bf(t[k],"");let a=ii(i,e,t,n),c=Mv(i,r);return Qo(i,r,a),o=si(c,a),o}function AD(){Pp=RD}function _A(){return E()}function kD(e,t,n){let r=E(),o=Nt();if(le(r,o,t)){let i=F(),s=$n();Xo(i,s,r,e,t,r[k],n,!0)}return kD}var ft=void 0;function PD(e){let t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return t===1&&n===0?1:5}var LD=["en",[["a","p"],["AM","PM"],ft],[["AM","PM"],ft,ft],[["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"]],ft,[["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"]],ft,[["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}",ft,"{1} 'at' {0}",ft],[".",",",";","%","+","-","E","\xD7","\u2030","\u221E","NaN",":"],["#,##0.###","#,##0%","\xA4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",PD],ps={};function xA(e){let t=VD(e),n=wu(t);if(n)return n;let r=t.split("-")[0];if(n=wu(r),n)return n;if(r==="en")return LD;throw new S(701,!1)}function wu(e){return e in ps||(ps[e]=Ye.ng&&Ye.ng.common&&Ye.ng.common.locales&&Ye.ng.common.locales[e]),ps[e]}var FD=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}(FD||{});function VD(e){return e.toLowerCase().replace(/_/g,"-")}var _o="en-US";var jD=_o;function HD(e){typeof e=="string"&&(jD=e.toLowerCase().replace(/_/g,"-"))}function Du(e,t,n){return function r(o){if(o===Function)return n;let i=_t(e)?Te(e.index,t):t;ri(i,5);let s=t[j],a=bu(t,s,n,o),c=r.__ngNextListenerFn__;for(;c;)a=bu(t,s,c,o)&&a,c=c.__ngNextListenerFn__;return a}}function bu(e,t,n,r){let o=T(null);try{return A(6,t,n),n(r)!==!1}catch(i){return BD(e,i),!1}finally{A(7,t,n),T(o)}}function BD(e,t){let n=e[Me],r=n?n.get(bt,null):null;r&&r.handleError(t)}function Mu(e,t,n,r,o,i){let s=t[n],a=t[I],l=a.data[n].outputs[r],u=s[l],f=a.firstCreatePass?Pa(a):null,p=ka(t),d=u.subscribe(i),h=p.length;p.push(i,d),f&&f.push(o,e.index,h,-(h+1))}function $D(e,t,n,r){let o=E(),i=F(),s=Z();return Lp(i,o,o[k],s,e,t,r),$D}function UD(e,t,n,r){let o=e.cleanup;if(o!=null)for(let i=0;ic?a[c]:null}typeof s=="string"&&(i+=2)}return null}function Lp(e,t,n,r,o,i,s){let a=ko(r),l=e.firstCreatePass?Pa(e):null,u=ka(t),f=!0;if(r.type&3||s){let p=Ee(r,t),d=s?s(p):p,h=u.length,g=s?_=>s(ve(_[r.index])):r.index,C=null;if(!s&&a&&(C=UD(e,t,o,r.index)),C!==null){let _=C.__ngLastListenerFn__||C;_.__ngNextListenerFn__=i,C.__ngLastListenerFn__=i,f=!1}else{i=Du(r,t,i),fv(t,d,o,i);let _=n.listen(d,o,i);u.push(i,_),l&&l.push(o,g,h,h+1)}}else i=Du(r,t,i);if(f){let p=r.outputs?.[o],d=r.hostDirectiveOutputs?.[o];if(d&&d.length)for(let h=0;h(ot(!0),Df(t[k],r));function GD(e,t,n,r,o){let i=t[fe],s=!i||nn()||St(n)||qn(i,o);return ot(s),s?Df(t[k],r):ii(i,e,t,n)}function QD(){Vp=GD}function ZD(e){return jp("",e,""),ZD}function jp(e,t,n){let r=E(),o=bc(r,e,t,n);return o!==Y&&Mc(r,Ie(),o),jp}function YD(e,t,n,r,o){let i=E(),s=tD(i,e,t,n,r,o);return s!==Y&&Mc(i,Ie(),s),YD}function KD(e,t,n,r,o,i,s){let a=E(),c=nD(a,e,t,n,r,o,i,s);return c!==Y&&Mc(a,Ie(),c),KD}function Mc(e,t,n){let r=od(t,e);pE(e[k],r,n)}function JD(e,t,n){Fd(t)&&(t=t());let r=E(),o=Nt();if(le(r,o,t)){let i=F(),s=$n();Xo(i,s,r,e,t,r[k],n,!1)}return JD}function HA(e,t){let n=Fd(e);return n&&e.set(t),n}function XD(e,t){let n=E(),r=F(),o=Z();return Lp(r,n,n[k],o,e,t),XD}var Hp={};function eb(e){let t=F(),n=E(),r=e+P,o=ln(t,r,128,null,null);return rt(o,!1),Ra(t,n,r,Hp),eb}function BA(e){$e("NgLet");let t=F(),n=E(),r=Ie();return Ra(t,n,r,e),e}function $A(e){let t=ld(),n=Po(t,P+e);if(n===Hp)throw new S(314,!1);return n}function tb(e,t,n){let r=F();if(r.firstCreatePass){let o=Ce(e);va(n,r.data,r.blueprint,o,!0),va(t,r.data,r.blueprint,o,!1)}}function va(e,t,n,r,o){if(e=K(e),Array.isArray(e))for(let i=0;i>20;if(Zt(e)||!e.multi){let d=new Dt(l,o,li),h=gs(c,t,o?u:u+p,f);h===-1?(xs(lo(a,s),i,c),hs(i,e,t.length),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(d),s.push(d)):(n[h]=d,s[h]=d)}else{let d=gs(c,t,u+p,f),h=gs(c,t,u,u+p),g=d>=0&&n[d],C=h>=0&&n[h];if(o&&!C||!o&&!g){xs(lo(a,s),i,c);let _=ob(o?rb:nb,n.length,o,r,l);!o&&C&&(n[h].providerFactory=_),hs(i,e,t.length,0),t.push(c),a.directiveStart++,a.directiveEnd++,o&&(a.providerIndexes+=1048576),n.push(_),s.push(_)}else{let _=Bp(n[o?h:d],l,!o&&r);hs(i,e,d>-1?d:h,_)}!o&&r&&C&&n[h].componentProviders++}}}function hs(e,t,n,r){let o=Zt(t),i=gm(t);if(o||i){let c=(i?K(t.useClass):t).prototype.ngOnDestroy;if(c){let l=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){let u=l.indexOf(n);u===-1?l.push(n,[r,c]):l[u+1].push(r,c)}else l.push(n,c)}}}function Bp(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function gs(e,t,n,r){for(let o=n;o{n.providersResolver=(r,o)=>tb(r,o?o(e):e,t)}}function qA(e,t,n){let r=Bn()+e,o=E();return o[r]===Y?Ic(o,r,n?t.call(n):t()):Tw(o,r)}function WA(e,t,n,r){return Up(E(),Bn(),e,t,n,r)}function zA(e,t,n,r,o){return qp(E(),Bn(),e,t,n,r,o)}function $p(e,t){let n=e[t];return n===Y?void 0:n}function Up(e,t,n,r,o,i){let s=t+n;return le(e,s,o)?Ic(e,s+1,i?r.call(i,o):r(o)):$p(e,s+1)}function qp(e,t,n,r,o,i,s){let a=t+n;return wc(e,a,o,i)?Ic(e,a+2,s?r.call(s,o,i):r(o,i)):$p(e,a+2)}function GA(e,t){let n=F(),r,o=e+P;n.firstCreatePass?(r=ib(t,n.pipeRegistry),n.data[o]=r,r.onDestroy&&(n.destroyHooks??=[]).push(o,r.onDestroy)):r=n.data[o];let i=r.factory||(r.factory=gt(r.type,!0)),s,a=te(li);try{let c=co(!1),l=i();return co(c),Ra(n,E(),o,l),l}finally{te(a)}}function ib(e,t){if(t)for(let n=t.length-1;n>=0;n--){let r=t[n];if(e===r.name)return r}}function QA(e,t,n){let r=e+P,o=E(),i=Po(o,r);return Wp(o,r)?Up(o,Bn(),t,i.transform,n,i):i.transform(n)}function ZA(e,t,n,r){let o=e+P,i=E(),s=Po(i,o);return Wp(i,o)?qp(i,Bn(),t,s.transform,n,r,s):s.transform(n,r)}function Wp(e,t){return e[I].data[t].pure}function YA(e,t){return oi(e,t)}var Ia=class{full;major;minor;patch;constructor(t){this.full=t;let n=t.split(".");this.major=n[0],this.minor=n[1],this.patch=n.slice(2).join(".")}},KA=new Ia("19.2.14"),wa=class{ngModuleFactory;componentFactories;constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}},JA=(()=>{class e{compileModuleSync(n){return new aa(n)}compileModuleAsync(n){return Promise.resolve(this.compileModuleSync(n))}compileModuleAndAllComponentsSync(n){let r=this.compileModuleSync(n),o=$u(n),i=Ef(o.declarations).reduce((s,a)=>{let c=ke(a);return c&&s.push(new Ct(c)),s},[]);return new wa(r,i)}compileModuleAndAllComponentsAsync(n){return Promise.resolve(this.compileModuleAndAllComponentsSync(n))}clearCache(){}clearCacheFor(n){}getModuleId(n){}static \u0275fac=function(r){return new(r||e)};static \u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var sb=(()=>{class e{zone=w(ae);changeDetectionScheduler=w(nt);applicationRef=w(Be);_onMicrotaskEmptySubscription;initialize(){this._onMicrotaskEmptySubscription||(this._onMicrotaskEmptySubscription=this.zone.onMicrotaskEmpty.subscribe({next:()=>{this.changeDetectionScheduler.runningTick||this.zone.run(()=>{this.applicationRef.tick()})}}))}ngOnDestroy(){this._onMicrotaskEmptySubscription?.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})(),ab=new R("",{factory:()=>!1});function zp({ngZoneFactory:e,ignoreChangesOutsideZone:t,scheduleInRootZone:n}){return e??=()=>new ae(ie(oe({},Gp()),{scheduleInRootZone:n})),[{provide:ae,useFactory:e},{provide:yt,multi:!0,useFactory:()=>{let r=w(sb,{optional:!0});return()=>r.initialize()}},{provide:yt,multi:!0,useFactory:()=>{let r=w(cb);return()=>{r.initialize()}}},t===!0?{provide:Rd,useValue:!0}:[],{provide:Ad,useValue:n??Od}]}function XA(e){let t=e?.ignoreChangesOutsideZone,n=e?.scheduleInRootZone,r=zp({ngZoneFactory:()=>{let o=Gp(e);return o.scheduleInRootZone=n,o.shouldCoalesceEventChangeDetection&&$e("NgZone_CoalesceEvent"),new ae(o)},ignoreChangesOutsideZone:t,scheduleInRootZone:n});return Oo([{provide:ab,useValue:!0},{provide:qa,useValue:!1},r])}function Gp(e){return{enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:e?.eventCoalescing??!1,shouldCoalesceRunChangeDetection:e?.runCoalescing??!1}}var cb=(()=>{class e{subscription=new V;initialized=!1;zone=w(ae);pendingTasks=w(rn);initialize(){if(this.initialized)return;this.initialized=!0;let n=null;!this.zone.isStable&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(n=this.pendingTasks.add()),this.zone.runOutsideAngular(()=>{this.subscription.add(this.zone.onStable.subscribe(()=>{ae.assertNotInAngularZone(),queueMicrotask(()=>{n!==null&&!this.zone.hasPendingMacrotasks&&!this.zone.hasPendingMicrotasks&&(this.pendingTasks.remove(n),n=null)})}))}),this.subscription.add(this.zone.onUnstable.subscribe(()=>{ae.assertInAngularZone(),n??=this.pendingTasks.add()}))}ngOnDestroy(){this.subscription.unsubscribe()}static \u0275fac=function(r){return new(r||e)};static \u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();var lb=(()=>{class e{appRef=w(Be);taskService=w(rn);ngZone=w(ae);zonelessEnabled=w(qa);tracing=w(qo,{optional:!0});disableScheduling=w(Rd,{optional:!0})??!1;zoneIsDefined=typeof Zone<"u"&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new V;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(fo):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(w(Ad,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{this.runningTick||this.cleanup()})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()})),this.disableScheduling||=!this.zonelessEnabled&&(this.ngZone instanceof Rs||!this.zoneIsDefined)}notify(n){if(!this.zonelessEnabled&&n===5)return;let r=!1;switch(n){case 0:{this.appRef.dirtyFlags|=2;break}case 3:case 2:case 4:case 5:case 1:{this.appRef.dirtyFlags|=4;break}case 6:{this.appRef.dirtyFlags|=2,r=!0;break}case 12:{this.appRef.dirtyFlags|=16,r=!0;break}case 13:{this.appRef.dirtyFlags|=2,r=!0;break}case 11:{r=!0;break}case 9:case 8:case 7:case 10:default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick(r))return;let o=this.useMicrotaskScheduler?Bl:kd;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>o(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>o(()=>this.tick()))}shouldScheduleTick(n){return!(this.disableScheduling&&!n||this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(fo+this.angularZoneId))}tick(){if(this.runningTick||this.appRef.destroyed)return;if(this.appRef.dirtyFlags===0){this.cleanup();return}!this.zonelessEnabled&&this.appRef.dirtyFlags&7&&(this.appRef.dirtyFlags|=1);let n=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(r){throw this.taskService.remove(n),r}finally{this.cleanup()}this.useMicrotaskScheduler=!0,Bl(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(n)})}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let n=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(n)}}static \u0275fac=function(r){return new(r||e)};static \u0275prov=U({token:e,factory:e.\u0275fac,providedIn:"root"})}return e})();function ub(){return typeof $localize<"u"&&$localize.locale||_o}var Qp=new R("",{providedIn:"root",factory:()=>w(Qp,x.Optional|x.SkipSelf)||ub()});var Da=new R(""),db=new R("");function Mn(e){return!e.moduleRef}function fb(e){let t=Mn(e)?e.r3Injector:e.moduleRef.injector,n=t.get(ae);return n.run(()=>{Mn(e)?e.r3Injector.resolveInjectorInitializers():e.moduleRef.resolveInjectorInitializers();let r=t.get(bt,null),o;if(n.runOutsideAngular(()=>{o=n.onError.subscribe({next:i=>{r.handleError(i)}})}),Mn(e)){let i=()=>t.destroy(),s=e.platformInjector.get(Da);s.add(i),t.onDestroy(()=>{o.unsubscribe(),s.delete(i)})}else{let i=()=>e.moduleRef.destroy(),s=e.platformInjector.get(Da);s.add(i),e.moduleRef.onDestroy(()=>{Zr(e.allPlatformModules,e.moduleRef),o.unsubscribe(),s.delete(i)})}return hb(r,n,()=>{let i=t.get(Ip);return i.runInitializers(),i.donePromise.then(()=>{let s=t.get(Qp,_o);if(HD(s||_o),!t.get(db,!0))return Mn(e)?t.get(Be):(e.allPlatformModules.push(e.moduleRef),e.moduleRef);if(Mn(e)){let c=t.get(Be);return e.rootComponent!==void 0&&c.bootstrap(e.rootComponent),c}else return pb(e.moduleRef,e.allPlatformModules),e.moduleRef})})})}function pb(e,t){let n=e.injector.get(Be);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(r=>n.bootstrap(r));else if(e.instance.ngDoBootstrap)e.instance.ngDoBootstrap(n);else throw new S(-403,!1);t.push(e)}function hb(e,t,n){try{let r=n();return vp(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}var Yr=null;function gb(e=[],t){return tt.create({name:t,providers:[{provide:Gu,useValue:"platform"},{provide:Da,useValue:new Set([()=>Yr=null])},...e]})}function mb(e=[]){if(Yr)return Yr;let t=gb(e);return Yr=t,Hw(),yb(t),t}function yb(e){let t=e.get(Oy,null);Zu(e,()=>{t?.forEach(n=>n())})}function ek(){return!1}var tk=(()=>{class e{static __NG_ELEMENT_ID__=vb}return e})();function vb(e){return Eb(Z(),E(),(e&16)===16)}function Eb(e,t,n){if(_t(e)&&!n){let r=Te(e.index,t);return new Pn(r,r)}else if(e.type&175){let r=t[Q];return new Pn(r,t)}return null}function nk(e){A(8);try{let{rootComponent:t,appProviders:n,platformProviders:r}=e,o=mb(r),i=[zp({}),{provide:nt,useExisting:lb},...n||[]],s=new Do({providers:i,parent:o,debugName:"",runEnvironmentInitializers:!1});return fb({r3Injector:s.injector,platformInjector:o,rootComponent:t})}catch(t){return Promise.reject(t)}finally{A(9)}}var Ur=new WeakSet,Cu="",Kr=[];function Tu(e){return e.get(Kd,Uy)}function rk(){let e=[{provide:Kd,useFactory:()=>{let t=!0;{let n=w(zt);t=!!window._ejsas?.[n]}return t&&$e("NgEventReplay"),t}}];return e.push({provide:yt,useValue:()=>{let t=w(Be),{injector:n}=t;if(!Ur.has(t)){let r=w(zl);if(Tu(n)){pv();let o=n.get(zt),i=dv(o,(s,a,c)=>{s.nodeType===Node.ELEMENT_NODE&&(av(s,a,c),cv(s,r))});t.onDestroy(i)}}},multi:!0},{provide:Dc,useFactory:()=>{let t=w(Be),{injector:n}=t;return()=>{!Tu(n)||Ur.has(t)||(Ur.add(t),t.onDestroy(()=>{Ur.delete(t);{let r=n.get(zt);Yi(r)}}),t.whenStable().then(()=>{if(t.destroyed)return;let r=n.get(uv);Ib(r,n);let o=n.get(zl);o.get(Cu)?.forEach(lv),o.delete(Cu);let i=r.instance;bv(n)?t.onDestroy(()=>i.cleanUp()):i.cleanUp()}))}},multi:!0}),e}var Ib=(e,t)=>{let n=t.get(zt),r=window._ejsas[n],o=e.instance=new Cl(new Pr(r.c));for(let a of r.et)o.addEvent(a);for(let a of r.etc)o.addEvent(a);let i=Tl(n);o.replayEarlyEventInfos(i),Yi(n);let s=new Lr(a=>{wb(t,a,a.currentTarget)});Ml(o,s)};function wb(e,t,n){let r=(n&&n.getAttribute(Go))??"";/d\d+/.test(r)?Db(r,e,t,n):t.eventPhase===Zi.REPLAY&&rf(t,n)}function Db(e,t,n,r){Kr.push({event:n,currentTarget:r}),Gw(t,e,bb)}function bb(e){let t=[...Kr],n=new Set(e);Kr=[];for(let{event:r,currentTarget:o}of t){let i=o.getAttribute(Go);n.has(i)?rf(r,o):Kr.push({event:r,currentTarget:o})}}var _u=!1;function Mb(){_u||(_u=!0,Ev(),ND(),QD(),AD(),Ow(),XI(),TI(),DE())}function Cb(e){return e.whenStable()}function ok(){let e=[{provide:Vr,useFactory:()=>{let t=!0;return t=!!w(Uo,{optional:!0})?.get(sf,null),t&&$e("NgHydration"),t}},{provide:yt,useValue:()=>{EI(!1),w(Vr)&&(_v($o()),Mb())},multi:!0}];return e.push({provide:Yd,useFactory:()=>w(Vr)},{provide:Dc,useFactory:()=>{if(w(Vr)){let t=w(Be);return()=>{Cb(t).then(()=>{t.destroyed||Yf(t)})}}return()=>{}},multi:!0}),Oo(e)}function ik(e){return typeof e=="boolean"?e:e!=null&&e!=="false"}function sk(e,t=NaN){return!isNaN(parseFloat(e))&&!isNaN(Number(e))?Number(e):t}function ak(e){return Di(e)}function ck(e,t){return Xn(e,t?.equal)}var ba=class{[X];constructor(t){this[X]=t}destroy(){this[X].destroy()}};function Tb(e,t){!t?.injector&&Sa(Tb);let n=t?.injector??w(tt),r=t?.manualCleanup!==!0?n.get(Ho):null,o,i=n.get(Za,null,{optional:!0}),s=n.get(nt);return i!==null&&!t?.forceRoot?(o=Nb(i.view,s,e),r instanceof uo&&r._lView===i.view&&(r=null)):o=Sb(e,n.get(yp),s),o.injector=n,r!==null&&(o.onDestroyFn=r.onDestroy(()=>o.destroy())),new ba(o)}var Zp=ie(oe({},Rt),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,hasRun:!1,cleanupFns:void 0,zone:null,kind:"effect",onDestroyFn:Rn,run(){if(this.dirty=!1,this.hasRun&&!Yn(this))return;this.hasRun=!0;let e=r=>(this.cleanupFns??=[]).push(r),t=fn(this),n=io(!1);try{this.maybeCleanup(),this.fn(e)}finally{io(n),Zn(this,t)}},maybeCleanup(){if(this.cleanupFns?.length)try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[]}}}),_b=ie(oe({},Zp),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){pn(this),this.onDestroyFn(),this.maybeCleanup(),this.scheduler.remove(this)}}),xb=ie(oe({},Zp),{consumerMarkedDirty(){this.view[D]|=8192,tn(this.view),this.notifier.notify(13)},destroy(){pn(this),this.onDestroyFn(),this.maybeCleanup(),this.view[Et]?.delete(this)}});function Nb(e,t,n){let r=Object.create(xb);return r.view=e,r.zone=typeof Zone<"u"?Zone.current:null,r.notifier=t,r.fn=n,e[Et]??=new Set,e[Et].add(r),r.consumerMarkedDirty(r),r}function Sb(e,t,n){let r=Object.create(_b);return r.fn=e,r.scheduler=t,r.notifier=n,r.zone=typeof Zone<"u"?Zone.current:null,r.scheduler.schedule(r),r.notifier.notify(12),r}function lk(e,t){let n=ke(e),r=t.elementInjector||Ro();return new Ct(n).create(r,t.projectableNodes,t.hostElement,t.environmentInjector)}function uk(e){let t=ke(e);if(!t)return null;let n=new Ct(t);return{get selector(){return n.selector},get type(){return n.componentType},get inputs(){return n.inputs},get outputs(){return n.outputs},get ngContentSelectors(){return n.ngContentSelectors},get isStandalone(){return t.standalone},get isSignal(){return t.signals}}}export{oe as a,ie as b,Ob as c,Ot as d,V as e,uh as f,O as g,Oi as h,Ri as i,ee as j,yn as k,En as l,ph as m,hh as n,Re as o,wn as p,De as q,ki as r,Pi as s,Dh as t,lt as u,Mh as v,ue as w,Ah as x,ut as y,Dn as z,xr as A,Ph as B,Lh as C,Fh as D,Vh as E,Qe as F,jh as G,Fi as H,Hh as I,il as J,bn as K,Sr as L,Bh as M,$h as N,sl as O,al as P,Wh as Q,zh as R,Gh as S,Vi as T,Qh as U,Zh as V,Yh as W,Kh as X,Jh as Y,Hi as Z,Xh as _,eg as $,tg as aa,ng as ba,cl as ca,rg as da,og as ea,ig as fa,S as ga,Ou as ha,U as ia,SR as ja,OR as ka,R as la,x as ma,Xe as na,w as oa,RR as pa,AR as qa,kR as ra,Oo as sa,PR as ta,Gu as ua,Pe as va,Zu as wa,Sa as xa,LR as ya,FR as za,VR as Aa,jR as Ba,HR as Ca,BR as Da,ay as Ea,tt as Fa,Hl as Ga,Ho as Ha,nt as Ia,rn as Ja,Ke as Ka,ae as La,bt as Ma,$R as Na,Bo as Oa,Iy as Pa,wy as Qa,As as Ra,UR as Sa,zt as Ta,Oy as Ua,qR as Va,WR as Wa,zR as Xa,Uo as Ya,qo as Za,$e as _a,Qy as $a,Xd as ab,An as bb,Yo as cb,df as db,GR as eb,QR as fb,ZR as gb,YR as hb,KR as ib,ff as jb,JR as kb,Xa as lb,Gv as mb,XR as nb,eA as ob,tA as pb,Zs as qb,yo as rb,Eo as sb,aA as tb,li as ub,cA as vb,mc as wb,uA as xb,Ln as yb,fw as zb,fp as Ab,pA as Bb,hA as Cb,gA as Db,mA as Eb,Iw as Fb,Nw as Gb,yA as Hb,vp as Ib,jw as Jb,vA as Kb,Dc as Lb,Be as Mb,eD as Nb,pD as Ob,hD as Pb,gD as Qb,EA as Rb,IA as Sb,wA as Tb,DA as Ub,bA as Vb,MA as Wb,CA as Xb,TA as Yb,Sp as Zb,Op as _b,_D as $b,Ap as ac,kp as bc,OD as cc,_A as dc,kD as ec,xA as fc,FD as gc,$D as hc,NA as ic,SA as jc,OA as kc,zD as lc,RA as mc,AA as nc,kA as oc,PA as pc,LA as qc,FA as rc,VA as sc,jA as tc,ZD as uc,jp as vc,YD as wc,KD as xc,JD as yc,HA as zc,XD as Ac,eb as Bc,BA as Cc,$A as Dc,UA as Ec,qA as Fc,WA as Gc,zA as Hc,GA as Ic,QA as Jc,ZA as Kc,YA as Lc,KA as Mc,JA as Nc,XA as Oc,Qp as Pc,ek as Qc,tk as Rc,nk as Sc,rk as Tc,ok as Uc,ik as Vc,sk as Wc,ak as Xc,ck as Yc,Tb as Zc,lk as _c,uk as $c}; diff --git a/templates/MyCompany.MyProject.WebApi/wwwroot/chunk-MOBSJJVZ.js b/templates/MyCompany.MyProject.WebApi/wwwroot/chunk-MOBSJJVZ.js deleted file mode 100644 index c0eacfe..0000000 --- a/templates/MyCompany.MyProject.WebApi/wwwroot/chunk-MOBSJJVZ.js +++ /dev/null @@ -1 +0,0 @@ -import{a as me,c as Et,ga as E,ia as Tt}from"./chunk-7ILYH34W.js";var _=function(n){return n[n.State=0]="State",n[n.Transition=1]="Transition",n[n.Sequence=2]="Sequence",n[n.Group=3]="Group",n[n.Animate=4]="Animate",n[n.Keyframes=5]="Keyframes",n[n.Style=6]="Style",n[n.Trigger=7]="Trigger",n[n.Reference=8]="Reference",n[n.AnimateChild=9]="AnimateChild",n[n.AnimateRef=10]="AnimateRef",n[n.Query=11]="Query",n[n.Stagger=12]="Stagger",n}(_||{}),z="*";function vt(n,e=null){return{type:_.Sequence,steps:n,options:e}}function Le(n){return{type:_.Style,styles:n,offset:null}}var $=class{_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_originalOnDoneFns=[];_originalOnStartFns=[];_started=!1;_destroyed=!1;_finished=!1;_position=0;parentPlayer=null;totalTime;constructor(e=0,t=0){this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){queueMicrotask(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1,this._finished=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},ee=class{_onDoneFns=[];_onStartFns=[];_finished=!1;_started=!1;_destroyed=!1;_onDestroyFns=[];parentPlayer=null;totalTime=0;players;constructor(e){this.players=e;let t=0,s=0,i=0,r=this.players.length;r==0?queueMicrotask(()=>this._onFinish()):this.players.forEach(a=>{a.onDone(()=>{++t==r&&this._onFinish()}),a.onDestroy(()=>{++s==r&&this._onDestroy()}),a.onStart(()=>{++i==r&&this._onStart()})}),this.totalTime=this.players.reduce((a,o)=>Math.max(a,o.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){let t=e*this.totalTime;this.players.forEach(s=>{let i=s.totalTime?Math.min(1,t/s.totalTime):1;s.setPosition(i)})}getPosition(){let e=this.players.reduce((t,s)=>t===null||s.totalTime>t.totalTime?s:t,null);return e!=null?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){let t=e=="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},re="!";function bt(n){return new E(3e3,!1)}function bs(){return new E(3100,!1)}function ws(){return new E(3101,!1)}function Ps(n){return new E(3001,!1)}function As(n){return new E(3003,!1)}function Ns(n){return new E(3004,!1)}function Pt(n,e){return new E(3005,!1)}function At(){return new E(3006,!1)}function Nt(){return new E(3007,!1)}function Ct(n,e){return new E(3008,!1)}function Dt(n){return new E(3002,!1)}function Mt(n,e,t,s,i){return new E(3010,!1)}function kt(){return new E(3011,!1)}function Ft(){return new E(3012,!1)}function Rt(){return new E(3200,!1)}function Ot(){return new E(3202,!1)}function Lt(){return new E(3013,!1)}function It(n){return new E(3014,!1)}function zt(n){return new E(3015,!1)}function Kt(n){return new E(3016,!1)}function qt(n){return new E(3500,!1)}function Bt(n){return new E(3501,!1)}function Qt(n,e){return new E(3404,!1)}function Cs(n){return new E(3502,!1)}function Vt(n){return new E(3503,!1)}function $t(){return new E(3300,!1)}function Ut(n){return new E(3504,!1)}function Gt(n){return new E(3301,!1)}function jt(n,e){return new E(3302,!1)}function Wt(n){return new E(3303,!1)}function Ht(n,e){return new E(3400,!1)}function Yt(n){return new E(3401,!1)}function Xt(n){return new E(3402,!1)}function xt(n,e){return new E(3505,!1)}var Ds=new Set(["-moz-outline-radius","-moz-outline-radius-bottomleft","-moz-outline-radius-bottomright","-moz-outline-radius-topleft","-moz-outline-radius-topright","-ms-grid-columns","-ms-grid-rows","-webkit-line-clamp","-webkit-text-fill-color","-webkit-text-stroke","-webkit-text-stroke-color","accent-color","all","backdrop-filter","background","background-color","background-position","background-size","block-size","border","border-block-end","border-block-end-color","border-block-end-width","border-block-start","border-block-start-color","border-block-start-width","border-bottom","border-bottom-color","border-bottom-left-radius","border-bottom-right-radius","border-bottom-width","border-color","border-end-end-radius","border-end-start-radius","border-image-outset","border-image-slice","border-image-width","border-inline-end","border-inline-end-color","border-inline-end-width","border-inline-start","border-inline-start-color","border-inline-start-width","border-left","border-left-color","border-left-width","border-radius","border-right","border-right-color","border-right-width","border-start-end-radius","border-start-start-radius","border-top","border-top-color","border-top-left-radius","border-top-right-radius","border-top-width","border-width","bottom","box-shadow","caret-color","clip","clip-path","color","column-count","column-gap","column-rule","column-rule-color","column-rule-width","column-width","columns","filter","flex","flex-basis","flex-grow","flex-shrink","font","font-size","font-size-adjust","font-stretch","font-variation-settings","font-weight","gap","grid-column-gap","grid-gap","grid-row-gap","grid-template-columns","grid-template-rows","height","inline-size","input-security","inset","inset-block","inset-block-end","inset-block-start","inset-inline","inset-inline-end","inset-inline-start","left","letter-spacing","line-clamp","line-height","margin","margin-block-end","margin-block-start","margin-bottom","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","mask","mask-border","mask-position","mask-size","max-block-size","max-height","max-inline-size","max-lines","max-width","min-block-size","min-height","min-inline-size","min-width","object-position","offset","offset-anchor","offset-distance","offset-path","offset-position","offset-rotate","opacity","order","outline","outline-color","outline-offset","outline-width","padding","padding-block-end","padding-block-start","padding-bottom","padding-inline-end","padding-inline-start","padding-left","padding-right","padding-top","perspective","perspective-origin","right","rotate","row-gap","scale","scroll-margin","scroll-margin-block","scroll-margin-block-end","scroll-margin-block-start","scroll-margin-bottom","scroll-margin-inline","scroll-margin-inline-end","scroll-margin-inline-start","scroll-margin-left","scroll-margin-right","scroll-margin-top","scroll-padding","scroll-padding-block","scroll-padding-block-end","scroll-padding-block-start","scroll-padding-bottom","scroll-padding-inline","scroll-padding-inline-end","scroll-padding-inline-start","scroll-padding-left","scroll-padding-right","scroll-padding-top","scroll-snap-coordinate","scroll-snap-destination","scrollbar-color","shape-image-threshold","shape-margin","shape-outside","tab-size","text-decoration","text-decoration-color","text-decoration-thickness","text-emphasis","text-emphasis-color","text-indent","text-shadow","text-underline-offset","top","transform","transform-origin","translate","vertical-align","visibility","width","word-spacing","z-index","zoom"]);function U(n){switch(n.length){case 0:return new $;case 1:return n[0];default:return new ee(n)}}function qe(n,e,t=new Map,s=new Map){let i=[],r=[],a=-1,o=null;if(e.forEach(l=>{let u=l.get("offset"),c=u==a,h=c&&o||new Map;l.forEach((S,y)=>{let d=y,g=S;if(y!=="offset")switch(d=n.normalizePropertyName(d,i),g){case re:g=t.get(y);break;case z:g=s.get(y);break;default:g=n.normalizeStyleValue(y,d,g,i);break}h.set(d,g)}),c||r.push(h),o=h,a=u}),i.length)throw Cs(i);return r}function pe(n,e,t,s){switch(e){case"start":n.onStart(()=>s(t&&Ie(t,"start",n)));break;case"done":n.onDone(()=>s(t&&Ie(t,"done",n)));break;case"destroy":n.onDestroy(()=>s(t&&Ie(t,"destroy",n)));break}}function Ie(n,e,t){let s=t.totalTime,i=!!t.disabled,r=ge(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,s??n.totalTime,i),a=n._data;return a!=null&&(r._data=a),r}function ge(n,e,t,s,i="",r=0,a){return{element:n,triggerName:e,fromState:t,toState:s,phaseName:i,totalTime:r,disabled:!!a}}function F(n,e,t){let s=n.get(e);return s||n.set(e,s=t),s}function Be(n){let e=n.indexOf(":"),t=n.substring(1,e),s=n.slice(e+1);return[t,s]}var Ms=typeof document>"u"?null:document.documentElement;function ye(n){let e=n.parentNode||n.host||null;return e===Ms?null:e}function ks(n){return n.substring(1,6)=="ebkit"}var X=null,wt=!1;function Jt(n){X||(X=Rs()||{},wt=X.style?"WebkitAppearance"in X.style:!1);let e=!0;return X.style&&!ks(n)&&(e=n in X.style,!e&&wt&&(e="Webkit"+n.charAt(0).toUpperCase()+n.slice(1)in X.style)),e}function Fs(n){return Ds.has(n)}function Rs(){return typeof document<"u"?document.body:null}function Qe(n,e){for(;e;){if(e===n)return!0;e=ye(e)}return!1}function Ve(n,e,t){if(t)return Array.from(n.querySelectorAll(e));let s=n.querySelector(e);return s?[s]:[]}var Os=1e3,$e="{{",Ls="}}",_e="ng-enter",ae="ng-leave",oe="ng-trigger",le=".ng-trigger",Ue="ng-animating",Se=".ng-animating";function V(n){if(typeof n=="number")return n;let e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:ze(parseFloat(e[1]),e[2])}function ze(n,e){switch(e){case"s":return n*Os;default:return n}}function ue(n,e,t){return n.hasOwnProperty("duration")?n:Is(n,e,t)}function Is(n,e,t){let s=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,i,r=0,a="";if(typeof n=="string"){let o=n.match(s);if(o===null)return e.push(bt(n)),{duration:0,delay:0,easing:""};i=ze(parseFloat(o[1]),o[2]);let l=o[3];l!=null&&(r=ze(parseFloat(l),o[4]));let u=o[5];u&&(a=u)}else i=n;if(!t){let o=!1,l=e.length;i<0&&(e.push(bs()),o=!0),r<0&&(e.push(ws()),o=!0),o&&e.splice(l,0,bt(n))}return{duration:i,delay:r,easing:a}}function Zt(n){return n.length?n[0]instanceof Map?n:n.map(e=>new Map(Object.entries(e))):[]}function Ge(n){return Array.isArray(n)?new Map(...n):new Map(n)}function K(n,e,t){e.forEach((s,i)=>{let r=Ee(i);t&&!t.has(i)&&t.set(i,n.style[r]),n.style[r]=s})}function j(n,e){e.forEach((t,s)=>{let i=Ee(s);n.style[i]=""})}function te(n){return Array.isArray(n)?n.length==1?n[0]:vt(n):n}function es(n,e,t){let s=e.params||{},i=je(n);i.length&&i.forEach(r=>{s.hasOwnProperty(r)||t.push(Ps(r))})}var Ke=new RegExp(`${$e}\\s*(.+?)\\s*${Ls}`,"g");function je(n){let e=[];if(typeof n=="string"){let t;for(;t=Ke.exec(n);)e.push(t[1]);Ke.lastIndex=0}return e}function se(n,e,t){let s=`${n}`,i=s.replace(Ke,(r,a)=>{let o=e[a];return o==null&&(t.push(As(a)),o=""),o.toString()});return i==s?n:i}var zs=/-+([a-z0-9])/g;function Ee(n){return n.replace(zs,(...e)=>e[1].toUpperCase())}function Ks(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function ts(n,e){return n===0||e===0}function ss(n,e,t){if(t.size&&e.length){let s=e[0],i=[];if(t.forEach((r,a)=>{s.has(a)||i.push(a),s.set(a,r)}),i.length)for(let r=1;ra.set(o,Te(n,o)))}}return e}function R(n,e,t){switch(e.type){case _.Trigger:return n.visitTrigger(e,t);case _.State:return n.visitState(e,t);case _.Transition:return n.visitTransition(e,t);case _.Sequence:return n.visitSequence(e,t);case _.Group:return n.visitGroup(e,t);case _.Animate:return n.visitAnimate(e,t);case _.Keyframes:return n.visitKeyframes(e,t);case _.Style:return n.visitStyle(e,t);case _.Reference:return n.visitReference(e,t);case _.AnimateChild:return n.visitAnimateChild(e,t);case _.AnimateRef:return n.visitAnimateRef(e,t);case _.Query:return n.visitQuery(e,t);case _.Stagger:return n.visitStagger(e,t);default:throw Ns(e.type)}}function Te(n,e){return window.getComputedStyle(n)[e]}var gs=(()=>{class n{validateStyleProperty(t){return Jt(t)}containsElement(t,s){return Qe(t,s)}getParentElement(t){return ye(t)}query(t,s,i){return Ve(t,s,i)}computeStyle(t,s,i){return i||""}animate(t,s,i,r,a,o=[],l){return new $(i,r)}static \u0275fac=function(s){return new(s||n)};static \u0275prov=Tt({token:n,factory:n.\u0275fac})}return n})(),is=class{static NOOP=new gs},Je=class{},Ze=class{normalizePropertyName(e,t){return e}normalizeStyleValue(e,t,s,i){return s}},qs=new Set(["width","height","minWidth","minHeight","maxWidth","maxHeight","left","top","bottom","right","fontSize","outlineWidth","outlineOffset","paddingTop","paddingLeft","paddingBottom","paddingRight","marginTop","marginLeft","marginBottom","marginRight","borderRadius","borderWidth","borderTopWidth","borderLeftWidth","borderRightWidth","borderBottomWidth","textIndent","perspective"]),et=class extends Je{normalizePropertyName(e,t){return Ee(e)}normalizeStyleValue(e,t,s,i){let r="",a=s.toString().trim();if(qs.has(t)&&s!==0&&s!=="0")if(typeof s=="number")r="px";else{let o=s.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&i.push(Pt(e,s))}return a+r}};var Ae="*";function Bs(n,e){let t=[];return typeof n=="string"?n.split(/\s*,\s*/).forEach(s=>Qs(s,t,e)):t.push(n),t}function Qs(n,e,t){if(n[0]==":"){let l=Vs(n,t);if(typeof l=="function"){e.push(l);return}n=l}let s=n.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(s==null||s.length<4)return t.push(zt(n)),e;let i=s[1],r=s[2],a=s[3];e.push(ns(i,a));let o=i==Ae&&a==Ae;r[0]=="<"&&!o&&e.push(ns(a,i))}function Vs(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,s)=>parseFloat(s)>parseFloat(t);case":decrement":return(t,s)=>parseFloat(s) *"}}var ve=new Set(["true","1"]),be=new Set(["false","0"]);function ns(n,e){let t=ve.has(n)||be.has(n),s=ve.has(e)||be.has(e);return(i,r)=>{let a=n==Ae||n==i,o=e==Ae||e==r;return!a&&t&&typeof i=="boolean"&&(a=i?ve.has(n):be.has(n)),!o&&s&&typeof r=="boolean"&&(o=r?ve.has(e):be.has(e)),a&&o}}var ys=":self",$s=new RegExp(`s*${ys}s*,?`,"g");function dt(n,e,t,s){return new tt(n).build(e,t,s)}var rs="",tt=class{_driver;constructor(e){this._driver=e}build(e,t,s){let i=new st(t);return this._resetContextStyleTimingState(i),R(this,te(e),i)}_resetContextStyleTimingState(e){e.currentQuerySelector=rs,e.collectedStyles=new Map,e.collectedStyles.set(rs,new Map),e.currentTime=0}visitTrigger(e,t){let s=t.queryCount=0,i=t.depCount=0,r=[],a=[];return e.name.charAt(0)=="@"&&t.errors.push(At()),e.definitions.forEach(o=>{if(this._resetContextStyleTimingState(t),o.type==_.State){let l=o,u=l.name;u.toString().split(/\s*,\s*/).forEach(c=>{l.name=c,r.push(this.visitState(l,t))}),l.name=u}else if(o.type==_.Transition){let l=this.visitTransition(o,t);s+=l.queryCount,i+=l.depCount,a.push(l)}else t.errors.push(Nt())}),{type:_.Trigger,name:e.name,states:r,transitions:a,queryCount:s,depCount:i,options:null}}visitState(e,t){let s=this.visitStyle(e.styles,t),i=e.options&&e.options.params||null;if(s.containsDynamicStyles){let r=new Set,a=i||{};s.styles.forEach(o=>{o instanceof Map&&o.forEach(l=>{je(l).forEach(u=>{a.hasOwnProperty(u)||r.add(u)})})}),r.size&&t.errors.push(Ct(e.name,[...r.values()]))}return{type:_.State,name:e.name,style:s,options:i?{params:i}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;let s=R(this,te(e.animation),t),i=Bs(e.expr,t.errors);return{type:_.Transition,matchers:i,animation:s,queryCount:t.queryCount,depCount:t.depCount,options:x(e.options)}}visitSequence(e,t){return{type:_.Sequence,steps:e.steps.map(s=>R(this,s,t)),options:x(e.options)}}visitGroup(e,t){let s=t.currentTime,i=0,r=e.steps.map(a=>{t.currentTime=s;let o=R(this,a,t);return i=Math.max(i,t.currentTime),o});return t.currentTime=i,{type:_.Group,steps:r,options:x(e.options)}}visitAnimate(e,t){let s=Ws(e.timings,t.errors);t.currentAnimateTimings=s;let i,r=e.styles?e.styles:Le({});if(r.type==_.Keyframes)i=this.visitKeyframes(r,t);else{let a=e.styles,o=!1;if(!a){o=!0;let u={};s.easing&&(u.easing=s.easing),a=Le(u)}t.currentTime+=s.duration+s.delay;let l=this.visitStyle(a,t);l.isEmptyStep=o,i=l}return t.currentAnimateTimings=null,{type:_.Animate,timings:s,style:i,options:null}}visitStyle(e,t){let s=this._makeStyleAst(e,t);return this._validateStyleAst(s,t),s}_makeStyleAst(e,t){let s=[],i=Array.isArray(e.styles)?e.styles:[e.styles];for(let o of i)typeof o=="string"?o===z?s.push(o):t.errors.push(Dt(o)):s.push(new Map(Object.entries(o)));let r=!1,a=null;return s.forEach(o=>{if(o instanceof Map&&(o.has("easing")&&(a=o.get("easing"),o.delete("easing")),!r)){for(let l of o.values())if(l.toString().indexOf($e)>=0){r=!0;break}}}),{type:_.Style,styles:s,easing:a,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){let s=t.currentAnimateTimings,i=t.currentTime,r=t.currentTime;s&&r>0&&(r-=s.duration+s.delay),e.styles.forEach(a=>{typeof a!="string"&&a.forEach((o,l)=>{let u=t.collectedStyles.get(t.currentQuerySelector),c=u.get(l),h=!0;c&&(r!=i&&r>=c.startTime&&i<=c.endTime&&(t.errors.push(Mt(l,c.startTime,c.endTime,r,i)),h=!1),r=c.startTime),h&&u.set(l,{startTime:r,endTime:i}),t.options&&es(o,t.options,t.errors)})})}visitKeyframes(e,t){let s={type:_.Keyframes,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(kt()),s;let i=1,r=0,a=[],o=!1,l=!1,u=0,c=e.steps.map(w=>{let P=this._makeStyleAst(w,t),D=P.offset!=null?P.offset:js(P.styles),N=0;return D!=null&&(r++,N=P.offset=D),l=l||N<0||N>1,o=o||N0&&r{let D=S>0?P==y?1:S*P:a[P],N=D*v;t.currentTime=d+g.delay+N,g.duration=N,this._validateStyleAst(w,t),w.offset=D,s.styles.push(w)}),s}visitReference(e,t){return{type:_.Reference,animation:R(this,te(e.animation),t),options:x(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:_.AnimateChild,options:x(e.options)}}visitAnimateRef(e,t){return{type:_.AnimateRef,animation:this.visitReference(e.animation,t),options:x(e.options)}}visitQuery(e,t){let s=t.currentQuerySelector,i=e.options||{};t.queryCount++,t.currentQuery=e;let[r,a]=Us(e.selector);t.currentQuerySelector=s.length?s+" "+r:r,F(t.collectedStyles,t.currentQuerySelector,new Map);let o=R(this,te(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=s,{type:_.Query,selector:r,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:o,originalSelector:e.selector,options:x(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(Lt());let s=e.timings==="full"?{duration:0,delay:0,easing:"full"}:ue(e.timings,t.errors,!0);return{type:_.Stagger,animation:R(this,te(e.animation),t),timings:s,options:null}}};function Us(n){let e=!!n.split(/\s*,\s*/).find(t=>t==ys);return e&&(n=n.replace($s,"")),n=n.replace(/@\*/g,le).replace(/@\w+/g,t=>le+"-"+t.slice(1)).replace(/:animating/g,Se),[n,e]}function Gs(n){return n?me({},n):null}var st=class{errors;queryCount=0;depCount=0;currentTransition=null;currentQuery=null;currentQuerySelector=null;currentAnimateTimings=null;currentTime=0;collectedStyles=new Map;options=null;unsupportedCSSPropertiesFound=new Set;constructor(e){this.errors=e}};function js(n){if(typeof n=="string")return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(t instanceof Map&&t.has("offset")){let s=t;e=parseFloat(s.get("offset")),s.delete("offset")}});else if(n instanceof Map&&n.has("offset")){let t=n;e=parseFloat(t.get("offset")),t.delete("offset")}return e}function Ws(n,e){if(n.hasOwnProperty("duration"))return n;if(typeof n=="number"){let r=ue(n,e).duration;return We(r,0,"")}let t=n;if(t.split(/\s+/).some(r=>r.charAt(0)=="{"&&r.charAt(1)=="{")){let r=We(0,0,"");return r.dynamic=!0,r.strValue=t,r}let i=ue(t,e);return We(i.duration,i.delay,i.easing)}function x(n){return n?(n=me({},n),n.params&&(n.params=Gs(n.params))):n={},n}function We(n,e,t){return{duration:n,delay:e,easing:t}}function mt(n,e,t,s,i,r,a=null,o=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:a,subTimeline:o}}var ne=class{_map=new Map;get(e){return this._map.get(e)||[]}append(e,t){let s=this._map.get(e);s||this._map.set(e,s=[]),s.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}},Hs=1,Ys=":enter",Xs=new RegExp(Ys,"g"),xs=":leave",Js=new RegExp(xs,"g");function pt(n,e,t,s,i,r=new Map,a=new Map,o,l,u=[]){return new it().buildKeyframes(n,e,t,s,i,r,a,o,l,u)}var it=class{buildKeyframes(e,t,s,i,r,a,o,l,u,c=[]){u=u||new ne;let h=new nt(e,t,u,i,r,c,[]);h.options=l;let S=l.delay?V(l.delay):0;h.currentTimeline.delayNextStep(S),h.currentTimeline.setStyles([a],null,h.errors,l),R(this,s,h);let y=h.timelines.filter(d=>d.containsAnimation());if(y.length&&o.size){let d;for(let g=y.length-1;g>=0;g--){let v=y[g];if(v.element===t){d=v;break}}d&&!d.allowOnlyTimelineStyles()&&d.setStyles([o],null,h.errors,l)}return y.length?y.map(d=>d.buildKeyframes()):[mt(t,[],[],[],0,S,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){let s=t.subInstructions.get(t.element);if(s){let i=t.createSubContext(e.options),r=t.currentTimeline.currentTime,a=this._visitSubInstructions(s,i,i.options);r!=a&&t.transformIntoNewTimeline(a)}t.previousNode=e}visitAnimateRef(e,t){let s=t.createSubContext(e.options);s.transformIntoNewTimeline(),this._applyAnimationRefDelays([e.options,e.animation.options],t,s),this.visitReference(e.animation,s),t.transformIntoNewTimeline(s.currentTimeline.currentTime),t.previousNode=e}_applyAnimationRefDelays(e,t,s){for(let i of e){let r=i?.delay;if(r){let a=typeof r=="number"?r:V(se(r,i?.params??{},t.errors));s.delayNextStep(a)}}}_visitSubInstructions(e,t,s){let r=t.currentTimeline.currentTime,a=s.duration!=null?V(s.duration):null,o=s.delay!=null?V(s.delay):null;return a!==0&&e.forEach(l=>{let u=t.appendInstructionToTimeline(l,a,o);r=Math.max(r,u.duration+u.delay)}),r}visitReference(e,t){t.updateOptions(e.options,!0),R(this,e.animation,t),t.previousNode=e}visitSequence(e,t){let s=t.subContextCount,i=t,r=e.options;if(r&&(r.params||r.delay)&&(i=t.createSubContext(r),i.transformIntoNewTimeline(),r.delay!=null)){i.previousNode.type==_.Style&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Ne);let a=V(r.delay);i.delayNextStep(a)}e.steps.length&&(e.steps.forEach(a=>R(this,a,i)),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>s&&i.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){let s=[],i=t.currentTimeline.currentTime,r=e.options&&e.options.delay?V(e.options.delay):0;e.steps.forEach(a=>{let o=t.createSubContext(e.options);r&&o.delayNextStep(r),R(this,a,o),i=Math.max(i,o.currentTimeline.currentTime),s.push(o.currentTimeline)}),s.forEach(a=>t.currentTimeline.mergeTimelineCollectedStyles(a)),t.transformIntoNewTimeline(i),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){let s=e.strValue,i=t.params?se(s,t.params,t.errors):s;return ue(i,t.errors)}else return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){let s=t.currentAnimateTimings=this._visitTiming(e.timings,t),i=t.currentTimeline;s.delay&&(t.incrementTime(s.delay),i.snapshotCurrentStyles());let r=e.style;r.type==_.Keyframes?this.visitKeyframes(r,t):(t.incrementTime(s.duration),this.visitStyle(r,t),i.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){let s=t.currentTimeline,i=t.currentAnimateTimings;!i&&s.hasCurrentStyleProperties()&&s.forwardFrame();let r=i&&i.easing||e.easing;e.isEmptyStep?s.applyEmptyStep(r):s.setStyles(e.styles,r,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){let s=t.currentAnimateTimings,i=t.currentTimeline.duration,r=s.duration,o=t.createSubContext().currentTimeline;o.easing=s.easing,e.styles.forEach(l=>{let u=l.offset||0;o.forwardTime(u*r),o.setStyles(l.styles,l.easing,t.errors,t.options),o.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(o),t.transformIntoNewTimeline(i+r),t.previousNode=e}visitQuery(e,t){let s=t.currentTimeline.currentTime,i=e.options||{},r=i.delay?V(i.delay):0;r&&(t.previousNode.type===_.Style||s==0&&t.currentTimeline.hasCurrentStyleProperties())&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Ne);let a=s,o=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!i.optional,t.errors);t.currentQueryTotal=o.length;let l=null;o.forEach((u,c)=>{t.currentQueryIndex=c;let h=t.createSubContext(e.options,u);r&&h.delayNextStep(r),u===t.element&&(l=h.currentTimeline),R(this,e.animation,h),h.currentTimeline.applyStylesToKeyframe();let S=h.currentTimeline.currentTime;a=Math.max(a,S)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(a),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){let s=t.parentContext,i=t.currentTimeline,r=e.timings,a=Math.abs(r.duration),o=a*(t.currentQueryTotal-1),l=a*t.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":l=o-l;break;case"full":l=s.currentStaggerTime;break}let c=t.currentTimeline;l&&c.delayNextStep(l);let h=c.currentTime;R(this,e.animation,t),t.previousNode=e,s.currentStaggerTime=i.currentTime-h+(i.startTime-s.currentTimeline.startTime)}},Ne={},nt=class n{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=Ne;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(e,t,s,i,r,a,o,l){this._driver=e,this.element=t,this.subInstructions=s,this._enterClassName=i,this._leaveClassName=r,this.errors=a,this.timelines=o,this.currentTimeline=l||new Ce(this._driver,t,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;let s=e,i=this.options;s.duration!=null&&(i.duration=V(s.duration)),s.delay!=null&&(i.delay=V(s.delay));let r=s.params;if(r){let a=i.params;a||(a=this.options.params={}),Object.keys(r).forEach(o=>{(!t||!a.hasOwnProperty(o))&&(a[o]=se(r[o],a,this.errors))})}}_copyOptions(){let e={};if(this.options){let t=this.options.params;if(t){let s=e.params={};Object.keys(t).forEach(i=>{s[i]=t[i]})}}return e}createSubContext(e=null,t,s){let i=t||this.element,r=new n(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,s||0));return r.previousNode=this.previousNode,r.currentAnimateTimings=this.currentAnimateTimings,r.options=this._copyOptions(),r.updateOptions(e),r.currentQueryIndex=this.currentQueryIndex,r.currentQueryTotal=this.currentQueryTotal,r.parentContext=this,this.subContextCount++,r}transformIntoNewTimeline(e){return this.previousNode=Ne,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,s){let i={duration:t??e.duration,delay:this.currentTimeline.currentTime+(s??0)+e.delay,easing:""},r=new rt(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,i,e.stretchStartingKeyframe);return this.timelines.push(r),i}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,s,i,r,a){let o=[];if(i&&o.push(this.element),e.length>0){e=e.replace(Xs,"."+this._enterClassName),e=e.replace(Js,"."+this._leaveClassName);let l=s!=1,u=this._driver.query(this.element,e,l);s!==0&&(u=s<0?u.slice(u.length+s,u.length):u.slice(0,s)),o.push(...u)}return!r&&o.length==0&&a.push(It(t)),o}},Ce=class n{_driver;element;startTime;_elementTimelineStylesLookup;duration=0;easing=null;_previousKeyframe=new Map;_currentKeyframe=new Map;_keyframes=new Map;_styleSummary=new Map;_localTimelineStyles=new Map;_globalTimelineStyles;_pendingStyles=new Map;_backFill=new Map;_currentEmptyStepKeyframe=null;constructor(e,t,s,i){this._driver=e,this.element=t,this.startTime=s,this._elementTimelineStylesLookup=i,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}containsAnimation(){switch(this._keyframes.size){case 0:return!1;case 1:return this.hasCurrentStyleProperties();default:return!0}}hasCurrentStyleProperties(){return this._currentKeyframe.size>0}get currentTime(){return this.startTime+this.duration}delayNextStep(e){let t=this._keyframes.size===1&&this._pendingStyles.size;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new n(this._driver,e,t||this.currentTime,this._elementTimelineStylesLookup)}_loadKeyframe(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=new Map,this._keyframes.set(this.duration,this._currentKeyframe))}forwardFrame(){this.duration+=Hs,this._loadKeyframe()}forwardTime(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles.set(e,t),this._globalTimelineStyles.set(e,t),this._styleSummary.set(e,{time:this.currentTime,value:t})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&this._previousKeyframe.set("easing",e);for(let[t,s]of this._globalTimelineStyles)this._backFill.set(t,s||z),this._currentKeyframe.set(t,z);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,s,i){t&&this._previousKeyframe.set("easing",t);let r=i&&i.params||{},a=Zs(e,this._globalTimelineStyles);for(let[o,l]of a){let u=se(l,r,s);this._pendingStyles.set(o,u),this._localTimelineStyles.has(o)||this._backFill.set(o,this._globalTimelineStyles.get(o)??z),this._updateStyle(o,u)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((e,t)=>{this._currentKeyframe.set(t,e)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((e,t)=>{this._currentKeyframe.has(t)||this._currentKeyframe.set(t,e)}))}snapshotCurrentStyles(){for(let[e,t]of this._localTimelineStyles)this._pendingStyles.set(e,t),this._updateStyle(e,t)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){e._styleSummary.forEach((t,s)=>{let i=this._styleSummary.get(s);(!i||t.time>i.time)&&this._updateStyle(s,t.value)})}buildKeyframes(){this.applyStylesToKeyframe();let e=new Set,t=new Set,s=this._keyframes.size===1&&this.duration===0,i=[];this._keyframes.forEach((o,l)=>{let u=new Map([...this._backFill,...o]);u.forEach((c,h)=>{c===re?e.add(h):c===z&&t.add(h)}),s||u.set("offset",l/this.duration),i.push(u)});let r=[...e.values()],a=[...t.values()];if(s){let o=i[0],l=new Map(o);o.set("offset",0),l.set("offset",1),i=[o,l]}return mt(this.element,i,r,a,this.duration,this.startTime,this.easing,!1)}},rt=class extends Ce{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(e,t,s,i,r,a,o=!1){super(e,t,a.delay),this.keyframes=s,this.preStyleProps=i,this.postStyleProps=r,this._stretchStartingKeyframe=o,this.timings={duration:a.duration,delay:a.delay,easing:a.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:s,easing:i}=this.timings;if(this._stretchStartingKeyframe&&t){let r=[],a=s+t,o=t/a,l=new Map(e[0]);l.set("offset",0),r.push(l);let u=new Map(e[0]);u.set("offset",as(o)),r.push(u);let c=e.length-1;for(let h=1;h<=c;h++){let S=new Map(e[h]),y=S.get("offset"),d=t+y*s;S.set("offset",as(d/a)),r.push(S)}s=a,t=0,i="",e=r}return mt(this.element,e,this.preStyleProps,this.postStyleProps,s,t,i,!0)}};function as(n,e=3){let t=Math.pow(10,e-1);return Math.round(n*t)/t}function Zs(n,e){let t=new Map,s;return n.forEach(i=>{if(i==="*"){s??=e.keys();for(let r of s)t.set(r,z)}else for(let[r,a]of i)t.set(r,a)}),t}function os(n,e,t,s,i,r,a,o,l,u,c,h,S){return{type:0,element:n,triggerName:e,isRemovalTransition:i,fromState:t,fromStyles:r,toState:s,toStyles:a,timelines:o,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:h,errors:S}}var He={},De=class{_triggerName;ast;_stateStyles;constructor(e,t,s){this._triggerName=e,this.ast=t,this._stateStyles=s}match(e,t,s,i){return ei(this.ast.matchers,e,t,s,i)}buildStyles(e,t,s){let i=this._stateStyles.get("*");return e!==void 0&&(i=this._stateStyles.get(e?.toString())||i),i?i.buildStyles(t,s):new Map}build(e,t,s,i,r,a,o,l,u,c){let h=[],S=this.ast.options&&this.ast.options.params||He,y=o&&o.params||He,d=this.buildStyles(s,y,h),g=l&&l.params||He,v=this.buildStyles(i,g,h),w=new Set,P=new Map,D=new Map,N=i==="void",J={params:_s(g,S),delay:this.ast.options?.delay},B=c?[]:pt(e,t,this.ast.animation,r,a,d,v,J,u,h),M=0;return B.forEach(k=>{M=Math.max(k.duration+k.delay,M)}),h.length?os(t,this._triggerName,s,i,N,d,v,[],[],P,D,M,h):(B.forEach(k=>{let W=k.element,Z=F(P,W,new Set);k.preStyleProps.forEach(H=>Z.add(H));let gt=F(D,W,new Set);k.postStyleProps.forEach(H=>gt.add(H)),W!==t&&w.add(W)}),os(t,this._triggerName,s,i,N,d,v,B,[...w.values()],P,D,M))}};function ei(n,e,t,s,i){return n.some(r=>r(e,t,s,i))}function _s(n,e){let t=me({},e);return Object.entries(n).forEach(([s,i])=>{i!=null&&(t[s]=i)}),t}var at=class{styles;defaultParams;normalizer;constructor(e,t,s){this.styles=e,this.defaultParams=t,this.normalizer=s}buildStyles(e,t){let s=new Map,i=_s(e,this.defaultParams);return this.styles.styles.forEach(r=>{typeof r!="string"&&r.forEach((a,o)=>{a&&(a=se(a,i,t));let l=this.normalizer.normalizePropertyName(o,t);a=this.normalizer.normalizeStyleValue(o,l,a,t),s.set(o,a)})}),s}};function ti(n,e,t){return new ot(n,e,t)}var ot=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(e,t,s){this.name=e,this.ast=t,this._normalizer=s,t.states.forEach(i=>{let r=i.options&&i.options.params||{};this.states.set(i.name,new at(i.style,r,s))}),ls(this.states,"true","1"),ls(this.states,"false","0"),t.transitions.forEach(i=>{this.transitionFactories.push(new De(e,i,this.states))}),this.fallbackTransition=si(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,s,i){return this.transitionFactories.find(a=>a.match(e,t,s,i))||null}matchStyles(e,t,s){return this.fallbackTransition.buildStyles(e,t,s)}};function si(n,e,t){let s=[(a,o)=>!0],i={type:_.Sequence,steps:[],options:null},r={type:_.Transition,animation:i,matchers:s,options:null,queryCount:0,depCount:0};return new De(n,r,e)}function ls(n,e,t){n.has(e)?n.has(t)||n.set(t,n.get(e)):n.has(t)&&n.set(e,n.get(t))}var ii=new ne,lt=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(e,t,s){this.bodyNode=e,this._driver=t,this._normalizer=s}register(e,t){let s=[],i=[],r=dt(this._driver,t,s,i);if(s.length)throw Vt(s);this._animations.set(e,r)}_buildPlayer(e,t,s){let i=e.element,r=qe(this._normalizer,e.keyframes,t,s);return this._driver.animate(i,r,e.duration,e.delay,e.easing,[],!0)}create(e,t,s={}){let i=[],r=this._animations.get(e),a,o=new Map;if(r?(a=pt(this._driver,t,r,_e,ae,new Map,new Map,s,ii,i),a.forEach(c=>{let h=F(o,c.element,new Map);c.postStyleProps.forEach(S=>h.set(S,null))})):(i.push($t()),a=[]),i.length)throw Ut(i);o.forEach((c,h)=>{c.forEach((S,y)=>{c.set(y,this._driver.computeStyle(h,y,z))})});let l=a.map(c=>{let h=o.get(c.element);return this._buildPlayer(c,new Map,h)}),u=U(l);return this._playersById.set(e,u),u.onDestroy(()=>this.destroy(e)),this.players.push(u),u}destroy(e){let t=this._getPlayer(e);t.destroy(),this._playersById.delete(e);let s=this.players.indexOf(t);s>=0&&this.players.splice(s,1)}_getPlayer(e){let t=this._playersById.get(e);if(!t)throw Gt(e);return t}listen(e,t,s,i){let r=ge(t,"","","");return pe(this._getPlayer(e),s,r,i),()=>{}}command(e,t,s,i){if(s=="register"){this.register(e,i[0]);return}if(s=="create"){let a=i[0]||{};this.create(e,t,a);return}let r=this._getPlayer(e);switch(s){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(e);break}}},us="ng-animate-queued",ni=".ng-animate-queued",Ye="ng-animate-disabled",ri=".ng-animate-disabled",ai="ng-star-inserted",oi=".ng-star-inserted",li=[],Ss={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},ui={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},q="__ng_removed",ce=class{namespaceId;value;options;get params(){return this.options.params}constructor(e,t=""){this.namespaceId=t;let s=e&&e.hasOwnProperty("value"),i=s?e.value:e;if(this.value=ci(i),s){let r=e,{value:a}=r,o=Et(r,["value"]);this.options=o}else this.options={};this.options.params||(this.options.params={})}absorbOptions(e){let t=e.params;if(t){let s=this.options.params;Object.keys(t).forEach(i=>{s[i]==null&&(s[i]=t[i])})}}},he="void",Xe=new ce(he),ut=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(e,t,s){this.id=e,this.hostElement=t,this._engine=s,this._hostClassName="ng-tns-"+e,I(t,this._hostClassName)}listen(e,t,s,i){if(!this._triggers.has(t))throw jt(s,t);if(s==null||s.length==0)throw Wt(t);if(!fi(s))throw Ht(s,t);let r=F(this._elementListeners,e,[]),a={name:t,phase:s,callback:i};r.push(a);let o=F(this._engine.statesByElement,e,new Map);return o.has(t)||(I(e,oe),I(e,oe+"-"+t),o.set(t,Xe)),()=>{this._engine.afterFlush(()=>{let l=r.indexOf(a);l>=0&&r.splice(l,1),this._triggers.has(t)||o.delete(t)})}}register(e,t){return this._triggers.has(e)?!1:(this._triggers.set(e,t),!0)}_getTrigger(e){let t=this._triggers.get(e);if(!t)throw Yt(e);return t}trigger(e,t,s,i=!0){let r=this._getTrigger(t),a=new fe(this.id,t,e),o=this._engine.statesByElement.get(e);o||(I(e,oe),I(e,oe+"-"+t),this._engine.statesByElement.set(e,o=new Map));let l=o.get(t),u=new ce(s,this.id);if(!(s&&s.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),o.set(t,u),l||(l=Xe),!(u.value===he)&&l.value===u.value){if(!pi(l.params,u.params)){let g=[],v=r.matchStyles(l.value,l.params,g),w=r.matchStyles(u.value,u.params,g);g.length?this._engine.reportError(g):this._engine.afterFlush(()=>{j(e,v),K(e,w)})}return}let S=F(this._engine.playersByElement,e,[]);S.forEach(g=>{g.namespaceId==this.id&&g.triggerName==t&&g.queued&&g.destroy()});let y=r.matchTransition(l.value,u.value,e,u.params),d=!1;if(!y){if(!i)return;y=r.fallbackTransition,d=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:y,fromState:l,toState:u,player:a,isFallbackTransition:d}),d||(I(e,us),a.onStart(()=>{ie(e,us)})),a.onDone(()=>{let g=this.players.indexOf(a);g>=0&&this.players.splice(g,1);let v=this._engine.playersByElement.get(e);if(v){let w=v.indexOf(a);w>=0&&v.splice(w,1)}}),this.players.push(a),S.push(a),a}deregister(e){this._triggers.delete(e),this._engine.statesByElement.forEach(t=>t.delete(e)),this._elementListeners.forEach((t,s)=>{this._elementListeners.set(s,t.filter(i=>i.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);let t=this._engine.playersByElement.get(e);t&&(t.forEach(s=>s.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){let s=this._engine.driver.query(e,le,!0);s.forEach(i=>{if(i[q])return;let r=this._engine.fetchNamespacesByElement(i);r.size?r.forEach(a=>a.triggerLeaveAnimation(i,t,!1,!0)):this.clearElementCache(i)}),this._engine.afterFlushAnimationsDone(()=>s.forEach(i=>this.clearElementCache(i)))}triggerLeaveAnimation(e,t,s,i){let r=this._engine.statesByElement.get(e),a=new Map;if(r){let o=[];if(r.forEach((l,u)=>{if(a.set(u,l.value),this._triggers.has(u)){let c=this.trigger(e,u,he,i);c&&o.push(c)}}),o.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,a),s&&U(o).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){let t=this._elementListeners.get(e),s=this._engine.statesByElement.get(e);if(t&&s){let i=new Set;t.forEach(r=>{let a=r.name;if(i.has(a))return;i.add(a);let l=this._triggers.get(a).fallbackTransition,u=s.get(a)||Xe,c=new ce(he),h=new fe(this.id,a,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:a,transition:l,fromState:u,toState:c,player:h,isFallbackTransition:!0})})}}removeNode(e,t){let s=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let i=!1;if(s.totalAnimations){let r=s.players.length?s.playersByQueriedElement.get(e):[];if(r&&r.length)i=!0;else{let a=e;for(;a=a.parentNode;)if(s.statesByElement.get(a)){i=!0;break}}}if(this.prepareLeaveAnimationListeners(e),i)s.markElementAsRemoved(this.id,e,!1,t);else{let r=e[q];(!r||r===Ss)&&(s.afterFlush(()=>this.clearElementCache(e)),s.destroyInnerAnimations(e),s._onRemovalComplete(e,t))}}insertNode(e,t){I(e,this._hostClassName)}drainQueuedTransitions(e){let t=[];return this._queue.forEach(s=>{let i=s.player;if(i.destroyed)return;let r=s.element,a=this._elementListeners.get(r);a&&a.forEach(o=>{if(o.name==s.triggerName){let l=ge(r,s.triggerName,s.fromState.value,s.toState.value);l._data=e,pe(s.player,o.phase,l,o.callback)}}),i.markedForDestroy?this._engine.afterFlush(()=>{i.destroy()}):t.push(s)}),this._queue=[],t.sort((s,i)=>{let r=s.transition.ast.depCount,a=i.transition.ast.depCount;return r==0||a==0?r-a:this._engine.driver.containsElement(s.element,i.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}},ht=class{bodyNode;driver;_normalizer;players=[];newHostElements=new Map;playersByElement=new Map;playersByQueriedElement=new Map;statesByElement=new Map;disabledNodes=new Set;totalAnimations=0;totalQueuedPlayers=0;_namespaceLookup={};_namespaceList=[];_flushFns=[];_whenQuietFns=[];namespacesByHostElement=new Map;collectedEnterElements=[];collectedLeaveElements=[];onRemovalComplete=(e,t)=>{};_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}constructor(e,t,s){this.bodyNode=e,this.driver=t,this._normalizer=s}get queuedPlayers(){let e=[];return this._namespaceList.forEach(t=>{t.players.forEach(s=>{s.queued&&e.push(s)})}),e}createNamespace(e,t){let s=new ut(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(s,t):(this.newHostElements.set(t,s),this.collectEnterElement(t)),this._namespaceLookup[e]=s}_balanceNamespaceList(e,t){let s=this._namespaceList,i=this.namespacesByHostElement;if(s.length-1>=0){let a=!1,o=this.driver.getParentElement(t);for(;o;){let l=i.get(o);if(l){let u=s.indexOf(l);s.splice(u+1,0,e),a=!0;break}o=this.driver.getParentElement(o)}a||s.unshift(e)}else s.push(e);return i.set(t,e),e}register(e,t){let s=this._namespaceLookup[e];return s||(s=this.createNamespace(e,t)),s}registerTrigger(e,t,s){let i=this._namespaceLookup[e];i&&i.register(t,s)&&this.totalAnimations++}destroy(e,t){e&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let s=this._fetchNamespace(e);this.namespacesByHostElement.delete(s.hostElement);let i=this._namespaceList.indexOf(s);i>=0&&this._namespaceList.splice(i,1),s.destroy(t),delete this._namespaceLookup[e]}))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){let t=new Set,s=this.statesByElement.get(e);if(s){for(let i of s.values())if(i.namespaceId){let r=this._fetchNamespace(i.namespaceId);r&&t.add(r)}}return t}trigger(e,t,s,i){if(we(t)){let r=this._fetchNamespace(e);if(r)return r.trigger(t,s,i),!0}return!1}insertNode(e,t,s,i){if(!we(t))return;let r=t[q];if(r&&r.setForRemoval){r.setForRemoval=!1,r.setForMove=!0;let a=this.collectedLeaveElements.indexOf(t);a>=0&&this.collectedLeaveElements.splice(a,1)}if(e){let a=this._fetchNamespace(e);a&&a.insertNode(t,s)}i&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),I(e,Ye)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),ie(e,Ye))}removeNode(e,t,s){if(we(t)){let i=e?this._fetchNamespace(e):null;i?i.removeNode(t,s):this.markElementAsRemoved(e,t,!1,s);let r=this.namespacesByHostElement.get(t);r&&r.id!==e&&r.removeNode(t,s)}else this._onRemovalComplete(t,s)}markElementAsRemoved(e,t,s,i,r){this.collectedLeaveElements.push(t),t[q]={namespaceId:e,setForRemoval:i,hasAnimation:s,removedBeforeQueried:!1,previousTriggersValues:r}}listen(e,t,s,i,r){return we(t)?this._fetchNamespace(e).listen(t,s,i,r):()=>{}}_buildInstruction(e,t,s,i,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,s,i,e.fromState.options,e.toState.options,t,r)}destroyInnerAnimations(e){let t=this.driver.query(e,le,!0);t.forEach(s=>this.destroyActiveAnimationsForElement(s)),this.playersByQueriedElement.size!=0&&(t=this.driver.query(e,Se,!0),t.forEach(s=>this.finishActiveQueriedAnimationOnElement(s)))}destroyActiveAnimationsForElement(e){let t=this.playersByElement.get(e);t&&t.forEach(s=>{s.queued?s.markedForDestroy=!0:s.destroy()})}finishActiveQueriedAnimationOnElement(e){let t=this.playersByQueriedElement.get(e);t&&t.forEach(s=>s.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return U(this.players).onDone(()=>e());e()})}processLeaveNode(e){let t=e[q];if(t&&t.setForRemoval){if(e[q]=Ss,t.namespaceId){this.destroyInnerAnimations(e);let s=this._fetchNamespace(t.namespaceId);s&&s.clearElementCache(e)}this._onRemovalComplete(e,t.setForRemoval)}e.classList?.contains(Ye)&&this.markElementAsDisabled(e,!1),this.driver.query(e,ri,!0).forEach(s=>{this.markElementAsDisabled(s,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((s,i)=>this._balanceNamespaceList(s,i)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let s=0;ss()),this._flushFns=[],this._whenQuietFns.length){let s=this._whenQuietFns;this._whenQuietFns=[],t.length?U(t).onDone(()=>{s.forEach(i=>i())}):s.forEach(i=>i())}}reportError(e){throw Xt(e)}_flushAnimations(e,t){let s=new ne,i=[],r=new Map,a=[],o=new Map,l=new Map,u=new Map,c=new Set;this.disabledNodes.forEach(f=>{c.add(f);let m=this.driver.query(f,ni,!0);for(let p=0;p{let p=_e+g++;d.set(m,p),f.forEach(T=>I(T,p))});let v=[],w=new Set,P=new Set;for(let f=0;fw.add(T)):P.add(m))}let D=new Map,N=fs(S,Array.from(w));N.forEach((f,m)=>{let p=ae+g++;D.set(m,p),f.forEach(T=>I(T,p))}),e.push(()=>{y.forEach((f,m)=>{let p=d.get(m);f.forEach(T=>ie(T,p))}),N.forEach((f,m)=>{let p=D.get(m);f.forEach(T=>ie(T,p))}),v.forEach(f=>{this.processLeaveNode(f)})});let J=[],B=[];for(let f=this._namespaceList.length-1;f>=0;f--)this._namespaceList[f].drainQueuedTransitions(t).forEach(p=>{let T=p.player,A=p.element;if(J.push(T),this.collectedEnterElements.length){let C=A[q];if(C&&C.setForMove){if(C.previousTriggersValues&&C.previousTriggersValues.has(p.triggerName)){let Y=C.previousTriggersValues.get(p.triggerName),L=this.statesByElement.get(p.element);if(L&&L.has(p.triggerName)){let de=L.get(p.triggerName);de.value=Y,L.set(p.triggerName,de)}}T.destroy();return}}let Q=!h||!this.driver.containsElement(h,A),O=D.get(A),G=d.get(A),b=this._buildInstruction(p,s,G,O,Q);if(b.errors&&b.errors.length){B.push(b);return}if(Q){T.onStart(()=>j(A,b.fromStyles)),T.onDestroy(()=>K(A,b.toStyles)),i.push(T);return}if(p.isFallbackTransition){T.onStart(()=>j(A,b.fromStyles)),T.onDestroy(()=>K(A,b.toStyles)),i.push(T);return}let St=[];b.timelines.forEach(C=>{C.stretchStartingKeyframe=!0,this.disabledNodes.has(C.element)||St.push(C)}),b.timelines=St,s.append(A,b.timelines);let vs={instruction:b,player:T,element:A};a.push(vs),b.queriedElements.forEach(C=>F(o,C,[]).push(T)),b.preStyleProps.forEach((C,Y)=>{if(C.size){let L=l.get(Y);L||l.set(Y,L=new Set),C.forEach((de,Oe)=>L.add(Oe))}}),b.postStyleProps.forEach((C,Y)=>{let L=u.get(Y);L||u.set(Y,L=new Set),C.forEach((de,Oe)=>L.add(Oe))})});if(B.length){let f=[];B.forEach(m=>{f.push(xt(m.triggerName,m.errors))}),J.forEach(m=>m.destroy()),this.reportError(f)}let M=new Map,k=new Map;a.forEach(f=>{let m=f.element;s.has(m)&&(k.set(m,m),this._beforeAnimationBuild(f.player.namespaceId,f.instruction,M))}),i.forEach(f=>{let m=f.element;this._getPreviousPlayers(m,!1,f.namespaceId,f.triggerName,null).forEach(T=>{F(M,m,[]).push(T),T.destroy()})});let W=v.filter(f=>ds(f,l,u)),Z=new Map;cs(Z,this.driver,P,u,z).forEach(f=>{ds(f,l,u)&&W.push(f)});let H=new Map;y.forEach((f,m)=>{cs(H,this.driver,new Set(f),l,re)}),W.forEach(f=>{let m=Z.get(f),p=H.get(f);Z.set(f,new Map([...m?.entries()??[],...p?.entries()??[]]))});let Re=[],yt=[],_t={};a.forEach(f=>{let{element:m,player:p,instruction:T}=f;if(s.has(m)){if(c.has(m)){p.onDestroy(()=>K(m,T.toStyles)),p.disabled=!0,p.overrideTotalTime(T.totalTime),i.push(p);return}let A=_t;if(k.size>1){let O=m,G=[];for(;O=O.parentNode;){let b=k.get(O);if(b){A=b;break}G.push(O)}G.forEach(b=>k.set(b,A))}let Q=this._buildAnimation(p.namespaceId,T,M,r,H,Z);if(p.setRealPlayer(Q),A===_t)Re.push(p);else{let O=this.playersByElement.get(A);O&&O.length&&(p.parentPlayer=U(O)),i.push(p)}}else j(m,T.fromStyles),p.onDestroy(()=>K(m,T.toStyles)),yt.push(p),c.has(m)&&i.push(p)}),yt.forEach(f=>{let m=r.get(f.element);if(m&&m.length){let p=U(m);f.setRealPlayer(p)}}),i.forEach(f=>{f.parentPlayer?f.syncPlayerEvents(f.parentPlayer):f.destroy()});for(let f=0;f!Q.destroyed);A.length?di(this,m,A):this.processLeaveNode(m)}return v.length=0,Re.forEach(f=>{this.players.push(f),f.onDone(()=>{f.destroy();let m=this.players.indexOf(f);this.players.splice(m,1)}),f.play()}),Re}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,s,i,r){let a=[];if(t){let o=this.playersByQueriedElement.get(e);o&&(a=o)}else{let o=this.playersByElement.get(e);if(o){let l=!r||r==he;o.forEach(u=>{u.queued||!l&&u.triggerName!=i||a.push(u)})}}return(s||i)&&(a=a.filter(o=>!(s&&s!=o.namespaceId||i&&i!=o.triggerName))),a}_beforeAnimationBuild(e,t,s){let i=t.triggerName,r=t.element,a=t.isRemovalTransition?void 0:e,o=t.isRemovalTransition?void 0:i;for(let l of t.timelines){let u=l.element,c=u!==r,h=F(s,u,[]);this._getPreviousPlayers(u,c,a,o,t.toState).forEach(y=>{let d=y.getRealPlayer();d.beforeDestroy&&d.beforeDestroy(),y.destroy(),h.push(y)})}j(r,t.fromStyles)}_buildAnimation(e,t,s,i,r,a){let o=t.triggerName,l=t.element,u=[],c=new Set,h=new Set,S=t.timelines.map(d=>{let g=d.element;c.add(g);let v=g[q];if(v&&v.removedBeforeQueried)return new $(d.duration,d.delay);let w=g!==l,P=mi((s.get(g)||li).map(M=>M.getRealPlayer())).filter(M=>{let k=M;return k.element?k.element===g:!1}),D=r.get(g),N=a.get(g),J=qe(this._normalizer,d.keyframes,D,N),B=this._buildPlayer(d,J,P);if(d.subTimeline&&i&&h.add(g),w){let M=new fe(e,o,g);M.setRealPlayer(B),u.push(M)}return B});u.forEach(d=>{F(this.playersByQueriedElement,d.element,[]).push(d),d.onDone(()=>hi(this.playersByQueriedElement,d.element,d))}),c.forEach(d=>I(d,Ue));let y=U(S);return y.onDestroy(()=>{c.forEach(d=>ie(d,Ue)),K(l,t.toStyles)}),h.forEach(d=>{F(i,d,[]).push(y)}),y}_buildPlayer(e,t,s){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,s):new $(e.duration,e.delay)}},fe=class{namespaceId;triggerName;element;_player=new $;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(e,t,s){this.namespaceId=e,this.triggerName=t,this.element=s}setRealPlayer(e){this._containsRealPlayer||(this._player=e,this._queuedCallbacks.forEach((t,s)=>{t.forEach(i=>pe(e,s,void 0,i))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){let t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){F(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}init(){this._player.init()}hasStarted(){return this.queued?!1:this._player.hasStarted()}play(){!this.queued&&this._player.play()}pause(){!this.queued&&this._player.pause()}restart(){!this.queued&&this._player.restart()}finish(){this._player.finish()}destroy(){this.destroyed=!0,this._player.destroy()}reset(){!this.queued&&this._player.reset()}setPosition(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){let t=this._player;t.triggerCallback&&t.triggerCallback(e)}};function hi(n,e,t){let s=n.get(e);if(s){if(s.length){let i=s.indexOf(t);s.splice(i,1)}s.length==0&&n.delete(e)}return s}function ci(n){return n??null}function we(n){return n&&n.nodeType===1}function fi(n){return n=="start"||n=="done"}function hs(n,e){let t=n.style.display;return n.style.display=e??"none",t}function cs(n,e,t,s,i){let r=[];t.forEach(l=>r.push(hs(l)));let a=[];s.forEach((l,u)=>{let c=new Map;l.forEach(h=>{let S=e.computeStyle(u,h,i);c.set(h,S),(!S||S.length==0)&&(u[q]=ui,a.push(u))}),n.set(u,c)});let o=0;return t.forEach(l=>hs(l,r[o++])),a}function fs(n,e){let t=new Map;if(n.forEach(o=>t.set(o,[])),e.length==0)return t;let s=1,i=new Set(e),r=new Map;function a(o){if(!o)return s;let l=r.get(o);if(l)return l;let u=o.parentNode;return t.has(u)?l=u:i.has(u)?l=s:l=a(u),r.set(o,l),l}return e.forEach(o=>{let l=a(o);l!==s&&t.get(l).push(o)}),t}function I(n,e){n.classList?.add(e)}function ie(n,e){n.classList?.remove(e)}function di(n,e,t){U(t).onDone(()=>n.processLeaveNode(e))}function mi(n){let e=[];return Es(n,e),e}function Es(n,e){for(let t=0;ti.add(r)):e.set(n,s),t.delete(n),!0}var Me=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(e,t)=>{};constructor(e,t,s){this._driver=t,this._normalizer=s,this._transitionEngine=new ht(e.body,t,s),this._timelineEngine=new lt(e.body,t,s),this._transitionEngine.onRemovalComplete=(i,r)=>this.onRemovalComplete(i,r)}registerTrigger(e,t,s,i,r){let a=e+"-"+i,o=this._triggerCache[a];if(!o){let l=[],u=[],c=dt(this._driver,r,l,u);if(l.length)throw Qt(i,l);o=ti(i,c,this._normalizer),this._triggerCache[a]=o}this._transitionEngine.registerTrigger(t,i,o)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,s,i){this._transitionEngine.insertNode(e,t,s,i)}onRemove(e,t,s){this._transitionEngine.removeNode(e,t,s)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,s,i){if(s.charAt(0)=="@"){let[r,a]=Be(s),o=i;this._timelineEngine.command(r,t,a,o)}else this._transitionEngine.trigger(e,t,s,i)}listen(e,t,s,i,r){if(s.charAt(0)=="@"){let[a,o]=Be(s);return this._timelineEngine.listen(a,t,o,r)}return this._transitionEngine.listen(e,t,s,i,r)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(e){this._transitionEngine.afterFlushAnimationsDone(e)}};function gi(n,e){let t=null,s=null;return Array.isArray(e)&&e.length?(t=xe(e[0]),e.length>1&&(s=xe(e[e.length-1]))):e instanceof Map&&(t=xe(e)),t||s?new yi(n,t,s):null}var yi=(()=>{class n{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(t,s,i){this._element=t,this._startStyles=s,this._endStyles=i;let r=n.initialStylesByElement.get(t);r||n.initialStylesByElement.set(t,r=new Map),this._initialStyles=r}start(){this._state<1&&(this._startStyles&&K(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(K(this._element,this._initialStyles),this._endStyles&&(K(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(j(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(j(this._element,this._endStyles),this._endStyles=null),K(this._element,this._initialStyles),this._state=3)}}return n})();function xe(n){let e=null;return n.forEach((t,s)=>{_i(s)&&(e=e||new Map,e.set(s,t))}),e}function _i(n){return n==="display"||n==="position"}var ke=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(e,t,s,i){this.element=e,this.keyframes=t,this.options=s,this._specialStyles=i,this._duration=s.duration,this._delay=s.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;let e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:new Map;let t=()=>this._onFinish();this.domPlayer.addEventListener("finish",t),this.onDestroy(()=>{this.domPlayer.removeEventListener("finish",t)})}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_convertKeyframesToObject(e){let t=[];return e.forEach(s=>{t.push(Object.fromEntries(s))}),t}_triggerWebAnimation(e,t,s){return e.animate(this._convertKeyframesToObject(t),s)}onStart(e){this._originalOnStartFns.push(e),this._onStartFns.push(e)}onDone(e){this._originalOnDoneFns.push(e),this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()}pause(){this.init(),this.domPlayer.pause()}finish(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()}reset(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1,this._onStartFns=this._originalOnStartFns,this._onDoneFns=this._originalOnDoneFns}_resetDomPlayerState(){this.domPlayer&&this.domPlayer.cancel()}restart(){this.reset(),this.play()}hasStarted(){return this._started}destroy(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}setPosition(e){this.domPlayer===void 0&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return+(this.domPlayer.currentTime??0)/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){let e=new Map;this.hasStarted()&&this._finalKeyframe.forEach((s,i)=>{i!=="offset"&&e.set(i,this._finished?s:Te(this.element,i))}),this.currentSnapshot=e}triggerCallback(e){let t=e==="start"?this._onStartFns:this._onDoneFns;t.forEach(s=>s()),t.length=0}},ct=class{validateStyleProperty(e){return!0}validateAnimatableStyleProperty(e){return!0}containsElement(e,t){return Qe(e,t)}getParentElement(e){return ye(e)}query(e,t,s){return Ve(e,t,s)}computeStyle(e,t,s){return Te(e,t)}animate(e,t,s,i,r,a=[]){let o=i==0?"both":"forwards",l={duration:s,delay:i,fill:o};r&&(l.easing=r);let u=new Map,c=a.filter(y=>y instanceof ke);ts(s,i)&&c.forEach(y=>{y.currentSnapshot.forEach((d,g)=>u.set(g,d))});let h=Zt(t).map(y=>new Map(y));h=ss(e,h,u);let S=gi(e,h);return new ke(e,h,l,S)}};function Ci(n,e){return n==="noop"?new Me(e,new gs,new Ze):new Me(e,new ct,new et)}var ms=class{_driver;_animationAst;constructor(e,t){this._driver=e;let s=[],r=dt(e,t,s,[]);if(s.length)throw qt(s);this._animationAst=r}buildTimelines(e,t,s,i,r){let a=Array.isArray(t)?Ge(t):t,o=Array.isArray(s)?Ge(s):s,l=[];r=r||new ne;let u=pt(this._driver,e,this._animationAst,_e,ae,a,o,i,r,l);if(l.length)throw Bt(l);return u}},Pe="@",Ts="@.disabled",Fe=class{namespaceId;delegate;engine;_onDestroy;\u0275type=0;constructor(e,t,s,i){this.namespaceId=e,this.delegate=t,this.engine=s,this._onDestroy=i}get data(){return this.delegate.data}destroyNode(e){this.delegate.destroyNode?.(e)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,s,i=!0){this.delegate.insertBefore(e,t,s),this.engine.onInsert(this.namespaceId,t,e,i)}removeChild(e,t,s){this.parentNode(t)&&this.engine.onRemove(this.namespaceId,t,this.delegate)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,s,i){this.delegate.setAttribute(e,t,s,i)}removeAttribute(e,t,s){this.delegate.removeAttribute(e,t,s)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,s,i){this.delegate.setStyle(e,t,s,i)}removeStyle(e,t,s){this.delegate.removeStyle(e,t,s)}setProperty(e,t,s){t.charAt(0)==Pe&&t==Ts?this.disableAnimations(e,!!s):this.delegate.setProperty(e,t,s)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,s,i){return this.delegate.listen(e,t,s,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}},ft=class extends Fe{factory;constructor(e,t,s,i,r){super(t,s,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,s){t.charAt(0)==Pe?t.charAt(1)=="."&&t==Ts?(s=s===void 0?!0:!!s,this.disableAnimations(e,s)):this.engine.process(this.namespaceId,e,t.slice(1),s):this.delegate.setProperty(e,t,s)}listen(e,t,s,i){if(t.charAt(0)==Pe){let r=Si(e),a=t.slice(1),o="";return a.charAt(0)!=Pe&&([a,o]=Ei(a)),this.engine.listen(this.namespaceId,r,a,o,l=>{let u=l._data||-1;this.factory.scheduleListenerCallback(u,s,l)})}return this.delegate.listen(e,t,s,i)}};function Si(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}function Ei(n){let e=n.indexOf("."),t=n.substring(0,e),s=n.slice(e+1);return[t,s]}var ps=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(e,t,s){this.delegate=e,this.engine=t,this._zone=s,t.onRemovalComplete=(i,r)=>{r?.removeChild(null,i)}}createRenderer(e,t){let s="",i=this.delegate.createRenderer(e,t);if(!e||!t?.data?.animation){let u=this._rendererCache,c=u.get(i);if(!c){let h=()=>u.delete(i);c=new Fe(s,i,this.engine,h),u.set(i,c)}return c}let r=t.id,a=t.id+"-"+this._currentId;this._currentId++,this.engine.register(a,e);let o=u=>{Array.isArray(u)?u.forEach(o):this.engine.registerTrigger(r,a,e,u.name,u)};return t.data.animation.forEach(o),new ft(this,a,i,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(e,t,s){if(e>=0&&et(s));return}let i=this._animationCallbacksBuffer;i.length==0&&queueMicrotask(()=>{this._zone.run(()=>{i.forEach(r=>{let[a,o]=r;a(o)}),this._animationCallbacksBuffer=[]})}),i.push([t,s])}end(){this._cdRecurDepth--,this._cdRecurDepth==0&&this._zone.runOutsideAngular(()=>{this._scheduleCountTask(),this.engine.flush(this._microtaskId)}),this.delegate.end&&this.delegate.end()}whenRenderingDone(){return this.engine.whenRenderingDone()}componentReplaced(e){this.engine.flush(),this.delegate.componentReplaced?.(e)}};export{is as AnimationDriver,gs as NoopAnimationDriver,ms as \u0275Animation,Me as \u0275AnimationEngine,ft as \u0275AnimationRenderer,ps as \u0275AnimationRendererFactory,Je as \u0275AnimationStyleNormalizer,Fe as \u0275BaseAnimationRenderer,_e as \u0275ENTER_CLASSNAME,ae as \u0275LEAVE_CLASSNAME,Ze as \u0275NoopAnimationStyleNormalizer,fe as \u0275TransitionAnimationPlayer,ct as \u0275WebAnimationsDriver,ke as \u0275WebAnimationsPlayer,et as \u0275WebAnimationsStyleNormalizer,ts as \u0275allowPreviousPlayerStylesMerge,Ks as \u0275camelCaseToDashCase,Qe as \u0275containsElement,Ci as \u0275createEngine,ye as \u0275getParentElement,Ve as \u0275invokeQuery,Zt as \u0275normalizeKeyframes,Jt as \u0275validateStyleProperty,Fs as \u0275validateWebAnimatableStyleProperty}; diff --git a/templates/MyCompany.MyProject.WebApi/wwwroot/index.html b/templates/MyCompany.MyProject.WebApi/wwwroot/index.html index 242062d..87699ff 100644 --- a/templates/MyCompany.MyProject.WebApi/wwwroot/index.html +++ b/templates/MyCompany.MyProject.WebApi/wwwroot/index.html @@ -1,15 +1,15 @@ - - - + + + DAPPI - - - - - - + + + + + + - + diff --git a/templates/MyCompany.MyProject.WebApi/wwwroot/main-DJE2YQMH.js b/templates/MyCompany.MyProject.WebApi/wwwroot/main-DJE2YQMH.js deleted file mode 100644 index 0a51e53..0000000 --- a/templates/MyCompany.MyProject.WebApi/wwwroot/main-DJE2YQMH.js +++ /dev/null @@ -1,108 +0,0 @@ -import{$ as fr,$a as _r,$b as M,$c as Hg,A as Wl,Aa as P,Ab as Kl,Ac as kn,B as vn,Ba as vt,Bb as E,Bc as Zl,C as pr,Ca as gi,Cb as W,Cc as Rg,D as ng,Da as Ve,Db as z,Dc as Fg,E as Le,Ea as Lm,Eb as Vm,Ec as Me,F as le,Fa as ce,Fb as xe,Fc as Gn,G as Sm,Ga as ro,Gb as w,Gc as Ng,H as ve,Ha as gr,Hb as Bm,Hc as Lg,I as qt,Ia as mg,Ib as xr,Ic as gt,J as yn,Ja as Ha,Jb as Eg,Jc as Ot,K as Em,Ka as L,Kb as jm,Kc as Um,L as _e,La as K,Lb as qa,Lc as Za,M as og,Ma as Ri,Mb as wn,Mc as Hm,N as rg,Na as pg,Nb as Y,Nc as Vg,O as Po,Oa as Z,Ob as x,Oc as Bg,P as ja,Pa as Ro,Pb as pt,Pc as Qa,Q as Cn,Qa as Ft,Qb as j,Qc as Xa,R as xn,Ra as $a,Rb as jt,Rc as ye,S as Om,Sa as hg,Sb as Og,Sc as jg,T as Tm,Ta as Fo,Tb as Tg,Tc as zg,U as ag,Ua as fg,Ub as C,Uc as Ug,V as sg,Va as Fi,Vb as Vo,Vc as X,W as Am,Wa as ze,Wb as Qe,Wc as yi,X as lg,Xa as Ga,Xb as de,Xc as Lt,Y as hr,Ya as gg,Yb as ue,Yc as oi,Z as Yl,Za as _g,Zb as l,Zc as Bo,_ as Im,_a as No,_b as c,_c as Ql,a as _,aa as ot,ab as Et,ac as nn,b as O,ba as Pe,bb as Wa,bc as on,c as Xf,ca as pe,cb as Lo,cc as wr,d as Io,da as cg,db as br,dc as Q,e as ie,ea as Ge,eb as bg,ec as vi,f as Jf,fa as fi,fb as vg,fc as Ni,g as mt,ga as be,gb as yg,gc as Ct,h as wm,ha as St,hb as Cg,hc as b,i as Dm,ia as D,ib as xg,ic as f,j as S,ja as G,jb as wg,jc as Te,k as lt,ka as dg,kb as Dg,kc as ae,l as eg,la as v,lb as _i,lc as zm,m as $l,ma as Pm,mb as vr,mc as it,n as Mm,na as N,nb as Mg,nc as ge,o as Rt,oa as d,ob as Ya,oc as ee,p as Gl,pa as Rm,pb as m,pc as te,q as kt,qa as za,qb as yr,qc as Ag,r as T,ra as Fm,rb as bi,rc as Ig,s as tn,sa as ii,sb as yt,sc as ft,t as km,ta as Ua,tb as tt,tc as p,u as tg,ua as ug,ub as k,uc as $,v as ig,va as ni,vb as Cr,vc as U,w as A,wa as Pi,wb as Nt,wc as Ka,x as Ii,xa as Nm,xb as kg,xc as Pg,y as Ie,ya as Oe,yb as ql,yc as Dn,z as Ba,za as I,zb as Sg,zc as Mn}from"./chunk-7ILYH34W.js";var re=new v("");var Wg=null;function Li(){return Wg}function $m(i){Wg??=i}var Ja=class{},es=(()=>{class i{historyGo(e){throw new Error("")}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:()=>d(Yg),providedIn:"platform"})}return i})(),Gm=new v(""),Yg=(()=>{class i extends es{_location;_history;_doc=d(re);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Li().getBaseHref(this._doc)}onPopState(e){let t=Li().getGlobalEventTarget(this._doc,"window");return t.addEventListener("popstate",e,!1),()=>t.removeEventListener("popstate",e)}onHashChange(e){let t=Li().getGlobalEventTarget(this._doc,"window");return t.addEventListener("hashchange",e,!1),()=>t.removeEventListener("hashchange",e)}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(e){this._location.pathname=e}pushState(e,t,o){this._history.pushState(e,t,o)}replaceState(e,t,o){this._history.replaceState(e,t,o)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:()=>new i,providedIn:"platform"})}return i})();function Xl(i,n){return i?n?i.endsWith("/")?n.startsWith("/")?i+n.slice(1):i+n:n.startsWith("/")?i+n:`${i}/${n}`:i:n}function $g(i){let n=i.search(/#|\?|$/);return i[n-1]==="/"?i.slice(0,n-1)+i.slice(n):i}function rn(i){return i&&i[0]!=="?"?`?${i}`:i}var an=(()=>{class i{historyGo(e){throw new Error("")}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:()=>d(ec),providedIn:"root"})}return i})(),Jl=new v(""),ec=(()=>{class i extends an{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,t){super(),this._platformLocation=e,this._baseHref=t??this._platformLocation.getBaseHrefFromDOM()??d(re).location?.origin??""}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}prepareExternalUrl(e){return Xl(this._baseHref,e)}path(e=!1){let t=this._platformLocation.pathname+rn(this._platformLocation.search),o=this._platformLocation.hash;return o&&e?`${t}${o}`:t}pushState(e,t,o,r){let a=this.prepareExternalUrl(o+rn(r));this._platformLocation.pushState(e,t,a)}replaceState(e,t,o,r){let a=this.prepareExternalUrl(o+rn(r));this._platformLocation.replaceState(e,t,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(t){return new(t||i)(N(es),N(Jl,8))};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),ri=(()=>{class i{_subject=new S;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let t=this._locationStrategy.getBaseHref();this._basePath=jx($g(Gg(t))),this._locationStrategy.onPopState(o=>{this._subject.next({url:this.path(!0),pop:!0,state:o.state,type:o.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,t=""){return this.path()==this.normalize(e+rn(t))}normalize(e){return i.stripTrailingSlash(Bx(this._basePath,Gg(e)))}prepareExternalUrl(e){return e&&e[0]!=="/"&&(e="/"+e),this._locationStrategy.prepareExternalUrl(e)}go(e,t="",o=null){this._locationStrategy.pushState(o,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+rn(t)),o)}replaceState(e,t="",o=null){this._locationStrategy.replaceState(o,"",e,t),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+rn(t)),o)}forward(){this._locationStrategy.forward()}back(){this._locationStrategy.back()}historyGo(e=0){this._locationStrategy.historyGo?.(e)}onUrlChange(e){return this._urlChangeListeners.push(e),this._urlChangeSubscription??=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}),()=>{let t=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(t,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e="",t){this._urlChangeListeners.forEach(o=>o(e,t))}subscribe(e,t,o){return this._subject.subscribe({next:e,error:t??void 0,complete:o??void 0})}static normalizeQueryParams=rn;static joinWithSlash=Xl;static stripTrailingSlash=$g;static \u0275fac=function(t){return new(t||i)(N(an))};static \u0275prov=D({token:i,factory:()=>Vx(),providedIn:"root"})}return i})();function Vx(){return new ri(N(an))}function Bx(i,n){if(!i||!n.startsWith(i))return n;let e=n.substring(i.length);return e===""||["/",";","?","#"].includes(e[0])?e:n}function Gg(i){return i.replace(/\/index.html$/,"")}function jx(i){if(new RegExp("^(https?:)?//").test(i)){let[,e]=i.split(/\/\/[^\/]+/);return e}return i}var Xm=(()=>{class i extends an{_platformLocation;_baseHref="";_removeListenerFns=[];constructor(e,t){super(),this._platformLocation=e,t!=null&&(this._baseHref=t)}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(e){this._removeListenerFns.push(this._platformLocation.onPopState(e),this._platformLocation.onHashChange(e))}getBaseHref(){return this._baseHref}path(e=!1){let t=this._platformLocation.hash??"#";return t.length>0?t.substring(1):t}prepareExternalUrl(e){let t=Xl(this._baseHref,e);return t.length>0?"#"+t:t}pushState(e,t,o,r){let a=this.prepareExternalUrl(o+rn(r))||this._platformLocation.pathname;this._platformLocation.pushState(e,t,a)}replaceState(e,t,o,r){let a=this.prepareExternalUrl(o+rn(r))||this._platformLocation.pathname;this._platformLocation.replaceState(e,t,a)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static \u0275fac=function(t){return new(t||i)(N(es),N(Jl,8))};static \u0275prov=D({token:i,factory:i.\u0275fac})}return i})();var zt=function(i){return i[i.Format=0]="Format",i[i.Standalone=1]="Standalone",i}(zt||{}),qe=function(i){return i[i.Narrow=0]="Narrow",i[i.Abbreviated=1]="Abbreviated",i[i.Wide=2]="Wide",i[i.Short=3]="Short",i}(qe||{}),ai=function(i){return i[i.Short=0]="Short",i[i.Medium=1]="Medium",i[i.Long=2]="Long",i[i.Full=3]="Full",i}(ai||{}),Yn={Decimal:0,Group:1,List:2,PercentSign:3,PlusSign:4,MinusSign:5,Exponential:6,SuperscriptingExponent:7,PerMille:8,Infinity:9,NaN:10,TimeSeparator:11,CurrencyDecimal:12,CurrencyGroup:13};function Zg(i){return Ni(i)[Ct.LocaleId]}function Qg(i,n,e){let t=Ni(i),o=[t[Ct.DayPeriodsFormat],t[Ct.DayPeriodsStandalone]],r=Vi(o,n);return Vi(r,e)}function Xg(i,n,e){let t=Ni(i),o=[t[Ct.DaysFormat],t[Ct.DaysStandalone]],r=Vi(o,n);return Vi(r,e)}function Jg(i,n,e){let t=Ni(i),o=[t[Ct.MonthsFormat],t[Ct.MonthsStandalone]],r=Vi(o,n);return Vi(r,e)}function e_(i,n){let t=Ni(i)[Ct.Eras];return Vi(t,n)}function ts(i,n){let e=Ni(i);return Vi(e[Ct.DateFormat],n)}function is(i,n){let e=Ni(i);return Vi(e[Ct.TimeFormat],n)}function ns(i,n){let t=Ni(i)[Ct.DateTimeFormat];return Vi(t,n)}function os(i,n){let e=Ni(i),t=e[Ct.NumberSymbols][n];if(typeof t>"u"){if(n===Yn.CurrencyDecimal)return e[Ct.NumberSymbols][Yn.Decimal];if(n===Yn.CurrencyGroup)return e[Ct.NumberSymbols][Yn.Group]}return t}function t_(i){if(!i[Ct.ExtraData])throw new Error(`Missing extra locale data for the locale "${i[Ct.LocaleId]}". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.`)}function i_(i){let n=Ni(i);return t_(n),(n[Ct.ExtraData][2]||[]).map(t=>typeof t=="string"?Wm(t):[Wm(t[0]),Wm(t[1])])}function n_(i,n,e){let t=Ni(i);t_(t);let o=[t[Ct.ExtraData][0],t[Ct.ExtraData][1]],r=Vi(o,n)||[];return Vi(r,e)||[]}function Vi(i,n){for(let e=n;e>-1;e--)if(typeof i[e]<"u")return i[e];throw new Error("Locale data API: locale data undefined")}function Wm(i){let[n,e]=i.split(":");return{hours:+n,minutes:+e}}var Ux=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,tc={},Hx=/((?:[^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]*)/;function Jm(i,n,e,t){let o=Xx(i);n=Wn(e,n)||n;let a=[],s;for(;n;)if(s=Hx.exec(n),s){a=a.concat(s.slice(1));let g=a.pop();if(!g)break;n=g}else{a.push(n);break}let u=o.getTimezoneOffset();t&&(u=r_(t,u),o=Qx(o,t));let h="";return a.forEach(g=>{let y=Kx(g);h+=y?y(o,e,u):g==="''"?"'":g.replace(/(^'|'$)/g,"").replace(/''/g,"'")}),h}function ac(i,n,e){let t=new Date(0);return t.setFullYear(i,n,e),t.setHours(0,0,0),t}function Wn(i,n){let e=Zg(i);if(tc[e]??={},tc[e][n])return tc[e][n];let t="";switch(n){case"shortDate":t=ts(i,ai.Short);break;case"mediumDate":t=ts(i,ai.Medium);break;case"longDate":t=ts(i,ai.Long);break;case"fullDate":t=ts(i,ai.Full);break;case"shortTime":t=is(i,ai.Short);break;case"mediumTime":t=is(i,ai.Medium);break;case"longTime":t=is(i,ai.Long);break;case"fullTime":t=is(i,ai.Full);break;case"short":let o=Wn(i,"shortTime"),r=Wn(i,"shortDate");t=ic(ns(i,ai.Short),[o,r]);break;case"medium":let a=Wn(i,"mediumTime"),s=Wn(i,"mediumDate");t=ic(ns(i,ai.Medium),[a,s]);break;case"long":let u=Wn(i,"longTime"),h=Wn(i,"longDate");t=ic(ns(i,ai.Long),[u,h]);break;case"full":let g=Wn(i,"fullTime"),y=Wn(i,"fullDate");t=ic(ns(i,ai.Full),[g,y]);break}return t&&(tc[e][n]=t),t}function ic(i,n){return n&&(i=i.replace(/\{([^}]+)}/g,function(e,t){return n!=null&&t in n?n[t]:e})),i}function sn(i,n,e="-",t,o){let r="";(i<0||o&&i<=0)&&(o?i=-i+1:(i=-i,r=e));let a=String(i);for(;a.length0||s>-e)&&(s+=e),i===3)s===0&&e===-12&&(s=12);else if(i===6)return $x(s,n);let u=os(a,Yn.MinusSign);return sn(s,n,u,t,o)}}function Gx(i,n){switch(i){case 0:return n.getFullYear();case 1:return n.getMonth();case 2:return n.getDate();case 3:return n.getHours();case 4:return n.getMinutes();case 5:return n.getSeconds();case 6:return n.getMilliseconds();case 7:return n.getDay();default:throw new Error(`Unknown DateType value "${i}".`)}}function nt(i,n,e=zt.Format,t=!1){return function(o,r){return Wx(o,r,i,n,e,t)}}function Wx(i,n,e,t,o,r){switch(e){case 2:return Jg(n,o,t)[i.getMonth()];case 1:return Xg(n,o,t)[i.getDay()];case 0:let a=i.getHours(),s=i.getMinutes();if(r){let h=i_(n),g=n_(n,o,t),y=h.findIndex(R=>{if(Array.isArray(R)){let[F,H]=R,B=a>=F.hours&&s>=F.minutes,J=a0?Math.floor(o/60):Math.ceil(o/60);switch(i){case 0:return(o>=0?"+":"")+sn(a,2,r)+sn(Math.abs(o%60),2,r);case 1:return"GMT"+(o>=0?"+":"")+sn(a,1,r);case 2:return"GMT"+(o>=0?"+":"")+sn(a,2,r)+":"+sn(Math.abs(o%60),2,r);case 3:return t===0?"Z":(o>=0?"+":"")+sn(a,2,r)+":"+sn(Math.abs(o%60),2,r);default:throw new Error(`Unknown zone width "${i}"`)}}}var Yx=0,rc=4;function qx(i){let n=ac(i,Yx,1).getDay();return ac(i,0,1+(n<=rc?rc:rc+7)-n)}function o_(i){let n=i.getDay(),e=n===0?-3:rc-n;return ac(i.getFullYear(),i.getMonth(),i.getDate()+e)}function Ym(i,n=!1){return function(e,t){let o;if(n){let r=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,a=e.getDate();o=1+Math.floor((a+r)/7)}else{let r=o_(e),a=qx(r.getFullYear()),s=r.getTime()-a.getTime();o=1+Math.round(s/6048e5)}return sn(o,i,os(t,Yn.MinusSign))}}function oc(i,n=!1){return function(e,t){let r=o_(e).getFullYear();return sn(r,i,os(t,Yn.MinusSign),n)}}var qm={};function Kx(i){if(qm[i])return qm[i];let n;switch(i){case"G":case"GG":case"GGG":n=nt(3,qe.Abbreviated);break;case"GGGG":n=nt(3,qe.Wide);break;case"GGGGG":n=nt(3,qe.Narrow);break;case"y":n=xt(0,1,0,!1,!0);break;case"yy":n=xt(0,2,0,!0,!0);break;case"yyy":n=xt(0,3,0,!1,!0);break;case"yyyy":n=xt(0,4,0,!1,!0);break;case"Y":n=oc(1);break;case"YY":n=oc(2,!0);break;case"YYY":n=oc(3);break;case"YYYY":n=oc(4);break;case"M":case"L":n=xt(1,1,1);break;case"MM":case"LL":n=xt(1,2,1);break;case"MMM":n=nt(2,qe.Abbreviated);break;case"MMMM":n=nt(2,qe.Wide);break;case"MMMMM":n=nt(2,qe.Narrow);break;case"LLL":n=nt(2,qe.Abbreviated,zt.Standalone);break;case"LLLL":n=nt(2,qe.Wide,zt.Standalone);break;case"LLLLL":n=nt(2,qe.Narrow,zt.Standalone);break;case"w":n=Ym(1);break;case"ww":n=Ym(2);break;case"W":n=Ym(1,!0);break;case"d":n=xt(2,1);break;case"dd":n=xt(2,2);break;case"c":case"cc":n=xt(7,1);break;case"ccc":n=nt(1,qe.Abbreviated,zt.Standalone);break;case"cccc":n=nt(1,qe.Wide,zt.Standalone);break;case"ccccc":n=nt(1,qe.Narrow,zt.Standalone);break;case"cccccc":n=nt(1,qe.Short,zt.Standalone);break;case"E":case"EE":case"EEE":n=nt(1,qe.Abbreviated);break;case"EEEE":n=nt(1,qe.Wide);break;case"EEEEE":n=nt(1,qe.Narrow);break;case"EEEEEE":n=nt(1,qe.Short);break;case"a":case"aa":case"aaa":n=nt(0,qe.Abbreviated);break;case"aaaa":n=nt(0,qe.Wide);break;case"aaaaa":n=nt(0,qe.Narrow);break;case"b":case"bb":case"bbb":n=nt(0,qe.Abbreviated,zt.Standalone,!0);break;case"bbbb":n=nt(0,qe.Wide,zt.Standalone,!0);break;case"bbbbb":n=nt(0,qe.Narrow,zt.Standalone,!0);break;case"B":case"BB":case"BBB":n=nt(0,qe.Abbreviated,zt.Format,!0);break;case"BBBB":n=nt(0,qe.Wide,zt.Format,!0);break;case"BBBBB":n=nt(0,qe.Narrow,zt.Format,!0);break;case"h":n=xt(3,1,-12);break;case"hh":n=xt(3,2,-12);break;case"H":n=xt(3,1);break;case"HH":n=xt(3,2);break;case"m":n=xt(4,1);break;case"mm":n=xt(4,2);break;case"s":n=xt(5,1);break;case"ss":n=xt(5,2);break;case"S":n=xt(6,1);break;case"SS":n=xt(6,2);break;case"SSS":n=xt(6,3);break;case"Z":case"ZZ":case"ZZZ":n=nc(0);break;case"ZZZZZ":n=nc(3);break;case"O":case"OO":case"OOO":case"z":case"zz":case"zzz":n=nc(1);break;case"OOOO":case"ZZZZ":case"zzzz":n=nc(2);break;default:return null}return qm[i]=n,n}function r_(i,n){i=i.replace(/:/g,"");let e=Date.parse("Jan 01, 1970 00:00:00 "+i)/6e4;return isNaN(e)?n:e}function Zx(i,n){return i=new Date(i.getTime()),i.setMinutes(i.getMinutes()+n),i}function Qx(i,n,e){let o=i.getTimezoneOffset(),r=r_(n,o);return Zx(i,-1*(r-o))}function Xx(i){if(qg(i))return i;if(typeof i=="number"&&!isNaN(i))return new Date(i);if(typeof i=="string"){if(i=i.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(i)){let[o,r=1,a=1]=i.split("-").map(s=>+s);return ac(o,r-1,a)}let e=parseFloat(i);if(!isNaN(i-e))return new Date(e);let t;if(t=i.match(Ux))return Jx(t)}let n=new Date(i);if(!qg(n))throw new Error(`Unable to convert "${i}" into a date`);return n}function Jx(i){let n=new Date(0),e=0,t=0,o=i[8]?n.setUTCFullYear:n.setFullYear,r=i[8]?n.setUTCHours:n.setHours;i[9]&&(e=Number(i[9]+i[10]),t=Number(i[9]+i[11])),o.call(n,Number(i[1]),Number(i[2])-1,Number(i[3]));let a=Number(i[4]||0)-e,s=Number(i[5]||0)-t,u=Number(i[6]||0),h=Math.floor(parseFloat("0."+(i[7]||0))*1e3);return r.call(n,a,s,u,h),n}function qg(i){return i instanceof Date&&!isNaN(i.valueOf())}var Km=/\s+/,Kg=[],ln=(()=>{class i{_ngEl;_renderer;initialClasses=Kg;rawClass;stateMap=new Map;constructor(e,t){this._ngEl=e,this._renderer=t}set klass(e){this.initialClasses=e!=null?e.trim().split(Km):Kg}set ngClass(e){this.rawClass=typeof e=="string"?e.trim().split(Km):e}ngDoCheck(){for(let t of this.initialClasses)this._updateState(t,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let t of e)this._updateState(t,!0);else if(e!=null)for(let t of Object.keys(e))this._updateState(t,!!e[t]);this._applyStateDiff()}_updateState(e,t){let o=this.stateMap.get(e);o!==void 0?(o.enabled!==t&&(o.changed=!0,o.enabled=t),o.touched=!0):this.stateMap.set(e,{enabled:t,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let t=e[0],o=e[1];o.changed?(this._toggleClass(t,o.enabled),o.changed=!1):o.touched||(o.enabled&&this._toggleClass(t,!1),this.stateMap.delete(t)),o.touched=!1}}_toggleClass(e,t){e=e.trim(),e.length>0&&e.split(Km).forEach(o=>{t?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}static \u0275fac=function(t){return new(t||i)(k(Z),k(tt))};static \u0275dir=z({type:i,selectors:[["","ngClass",""]],inputs:{klass:[0,"class","klass"],ngClass:"ngClass"}})}return i})();var rs=(()=>{class i{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let t=this._viewContainerRef;if(this._viewRef&&t.remove(t.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let o=this._createContextForwardProxy();this._viewRef=t.createEmbeddedView(this.ngTemplateOutlet,o,{injector:this.ngTemplateOutletInjector??void 0})}}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,t,o)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,t,o):!1,get:(e,t,o)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,t,o)}})}static \u0275fac=function(t){return new(t||i)(k(Nt))};static \u0275dir=z({type:i,selectors:[["","ngTemplateOutlet",""]],inputs:{ngTemplateOutletContext:"ngTemplateOutletContext",ngTemplateOutlet:"ngTemplateOutlet",ngTemplateOutletInjector:"ngTemplateOutletInjector"},features:[Oe]})}return i})();function a_(i,n){return new be(2100,!1)}var Zm=class{createSubscription(n,e){return Lt(()=>n.subscribe({next:e,error:t=>{throw t}}))}dispose(n){Lt(()=>n.unsubscribe())}},Qm=class{createSubscription(n,e){return n.then(t=>e?.(t),t=>{throw t}),{unsubscribe:()=>{e=null}}}dispose(n){n.unsubscribe()}},ew=new Qm,tw=new Zm,Ci=(()=>{class i{_ref;_latestValue=null;markForCheckOnValueUpdate=!0;_subscription=null;_obj=null;_strategy=null;constructor(e){this._ref=e}ngOnDestroy(){this._subscription&&this._dispose(),this._ref=null}transform(e){if(!this._obj){if(e)try{this.markForCheckOnValueUpdate=!1,this._subscribe(e)}finally{this.markForCheckOnValueUpdate=!0}return this._latestValue}return e!==this._obj?(this._dispose(),this.transform(e)):this._latestValue}_subscribe(e){this._obj=e,this._strategy=this._selectStrategy(e),this._subscription=this._strategy.createSubscription(e,t=>this._updateLatestValue(e,t))}_selectStrategy(e){if(xr(e))return ew;if(Eg(e))return tw;throw a_(i,e)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(e,t){e===this._obj&&(this._latestValue=t,this.markForCheckOnValueUpdate&&this._ref?.markForCheck())}static \u0275fac=function(t){return new(t||i)(k(ye,16))};static \u0275pipe=Vm({name:"async",type:i,pure:!1})}return i})();var ep=(()=>{class i{transform(e,t,o){if(e==null)return null;if(!(typeof e=="string"||Array.isArray(e)))throw a_(i,e);return e.slice(t,o)}static \u0275fac=function(t){return new(t||i)};static \u0275pipe=Vm({name:"slice",type:i,pure:!1})}return i})();var Ae=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({})}return i})();function as(i,n){n=encodeURIComponent(n);for(let e of i.split(";")){let t=e.indexOf("="),[o,r]=t==-1?[e,""]:[e.slice(0,t),e.slice(t+1)];if(o.trim()===n)return decodeURIComponent(r)}return null}var sc="browser",s_="server";function qn(i){return i===sc}function lc(i){return i===s_}var jo=class{};var c_=(()=>{class i{static \u0275prov=D({token:i,providedIn:"root",factory:()=>new tp(d(re),window)})}return i})(),tp=class{document;window;offset=()=>[0,0];constructor(n,e){this.document=n,this.window=e}setOffset(n){Array.isArray(n)?this.offset=()=>n:this.offset=n}getScrollPosition(){return[this.window.scrollX,this.window.scrollY]}scrollToPosition(n){this.window.scrollTo(n[0],n[1])}scrollToAnchor(n){let e=nw(this.document,n);e&&(this.scrollToElement(e),e.focus())}setHistoryScrollRestoration(n){this.window.history.scrollRestoration=n}scrollToElement(n){let e=n.getBoundingClientRect(),t=e.left+this.window.pageXOffset,o=e.top+this.window.pageYOffset,r=this.offset();this.window.scrollTo(t-r[0],o-r[1])}};function nw(i,n){let e=i.getElementById(n)||i.getElementsByName(n)[0];if(e)return e;if(typeof i.createTreeWalker=="function"&&i.body&&typeof i.body.attachShadow=="function"){let t=i.createTreeWalker(i.body,NodeFilter.SHOW_ELEMENT),o=t.currentNode;for(;o;){let r=o.shadowRoot;if(r){let a=r.getElementById(n)||r.querySelector(`[name="${n}"]`);if(a)return a}o=t.nextNode()}}return null}var uc=new v(""),ap=(()=>{class i{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,t){this._zone=t,e.forEach(o=>{o.manager=this}),this._plugins=e.slice().reverse()}addEventListener(e,t,o,r){return this._findPluginFor(t).addEventListener(e,t,o,r)}getZone(){return this._zone}_findPluginFor(e){let t=this._eventNameToPlugin.get(e);if(t)return t;if(t=this._plugins.find(r=>r.supports(e)),!t)throw new be(5101,!1);return this._eventNameToPlugin.set(e,t),t}static \u0275fac=function(t){return new(t||i)(N(uc),N(K))};static \u0275prov=D({token:i,factory:i.\u0275fac})}return i})(),ss=class{_doc;constructor(n){this._doc=n}manager},cc="ng-app-id";function d_(i){for(let n of i)n.remove()}function u_(i,n){let e=n.createElement("style");return e.textContent=i,e}function ow(i,n,e,t){let o=i.head?.querySelectorAll(`style[${cc}="${n}"],link[${cc}="${n}"]`);if(o)for(let r of o)r.removeAttribute(cc),r instanceof HTMLLinkElement?t.set(r.href.slice(r.href.lastIndexOf("/")+1),{usage:0,elements:[r]}):r.textContent&&e.set(r.textContent,{usage:0,elements:[r]})}function op(i,n){let e=n.createElement("link");return e.setAttribute("rel","stylesheet"),e.setAttribute("href",i),e}var sp=(()=>{class i{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;isServer;constructor(e,t,o,r={}){this.doc=e,this.appId=t,this.nonce=o,this.isServer=lc(r),ow(e,t,this.inline,this.external),this.hosts.add(e.head)}addStyles(e,t){for(let o of e)this.addUsage(o,this.inline,u_);t?.forEach(o=>this.addUsage(o,this.external,op))}removeStyles(e,t){for(let o of e)this.removeUsage(o,this.inline);t?.forEach(o=>this.removeUsage(o,this.external))}addUsage(e,t,o){let r=t.get(e);r?r.usage++:t.set(e,{usage:1,elements:[...this.hosts].map(a=>this.addElement(a,o(e,this.doc)))})}removeUsage(e,t){let o=t.get(e);o&&(o.usage--,o.usage<=0&&(d_(o.elements),t.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])d_(e);this.hosts.clear()}addHost(e){this.hosts.add(e);for(let[t,{elements:o}]of this.inline)o.push(this.addElement(e,u_(t,this.doc)));for(let[t,{elements:o}]of this.external)o.push(this.addElement(e,op(t,this.doc)))}removeHost(e){this.hosts.delete(e)}addElement(e,t){return this.nonce&&t.setAttribute("nonce",this.nonce),this.isServer&&t.setAttribute(cc,this.appId),e.appendChild(t)}static \u0275fac=function(t){return new(t||i)(N(re),N(Fo),N(Ga,8),N(Fi))};static \u0275prov=D({token:i,factory:i.\u0275fac})}return i})(),np={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/Math/MathML"},lp=/%COMP%/g;var p_="%COMP%",rw=`_nghost-${p_}`,aw=`_ngcontent-${p_}`,sw=!0,lw=new v("",{providedIn:"root",factory:()=>sw});function cw(i){return aw.replace(lp,i)}function dw(i){return rw.replace(lp,i)}function h_(i,n){return n.map(e=>e.replace(lp,i))}var ds=(()=>{class i{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;platformId;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;platformIsServer;constructor(e,t,o,r,a,s,u,h=null,g=null){this.eventManager=e,this.sharedStylesHost=t,this.appId=o,this.removeStylesOnCompDestroy=r,this.doc=a,this.platformId=s,this.ngZone=u,this.nonce=h,this.tracingService=g,this.platformIsServer=lc(s),this.defaultRenderer=new ls(e,a,u,this.platformIsServer,this.tracingService)}createRenderer(e,t){if(!e||!t)return this.defaultRenderer;this.platformIsServer&&t.encapsulation===Wa.ShadowDom&&(t=O(_({},t),{encapsulation:Wa.Emulated}));let o=this.getOrCreateRenderer(e,t);return o instanceof dc?o.applyToHost(e):o instanceof cs&&o.applyStyles(),o}getOrCreateRenderer(e,t){let o=this.rendererByCompId,r=o.get(t.id);if(!r){let a=this.doc,s=this.ngZone,u=this.eventManager,h=this.sharedStylesHost,g=this.removeStylesOnCompDestroy,y=this.platformIsServer,R=this.tracingService;switch(t.encapsulation){case Wa.Emulated:r=new dc(u,h,t,this.appId,g,a,s,y,R);break;case Wa.ShadowDom:return new rp(u,h,e,t,a,s,this.nonce,y,R);default:r=new cs(u,h,t,g,a,s,y,R);break}o.set(t.id,r)}return r}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static \u0275fac=function(t){return new(t||i)(N(ap),N(sp),N(Fo),N(lw),N(re),N(Fi),N(K),N(Ga),N(_g,8))};static \u0275prov=D({token:i,factory:i.\u0275fac})}return i})(),ls=class{eventManager;doc;ngZone;platformIsServer;tracingService;data=Object.create(null);throwOnSyntheticProps=!0;constructor(n,e,t,o,r){this.eventManager=n,this.doc=e,this.ngZone=t,this.platformIsServer=o,this.tracingService=r}destroy(){}destroyNode=null;createElement(n,e){return e?this.doc.createElementNS(np[e]||e,n):this.doc.createElement(n)}createComment(n){return this.doc.createComment(n)}createText(n){return this.doc.createTextNode(n)}appendChild(n,e){(m_(n)?n.content:n).appendChild(e)}insertBefore(n,e,t){n&&(m_(n)?n.content:n).insertBefore(e,t)}removeChild(n,e){e.remove()}selectRootElement(n,e){let t=typeof n=="string"?this.doc.querySelector(n):n;if(!t)throw new be(-5104,!1);return e||(t.textContent=""),t}parentNode(n){return n.parentNode}nextSibling(n){return n.nextSibling}setAttribute(n,e,t,o){if(o){e=o+":"+e;let r=np[o];r?n.setAttributeNS(r,e,t):n.setAttribute(e,t)}else n.setAttribute(e,t)}removeAttribute(n,e,t){if(t){let o=np[t];o?n.removeAttributeNS(o,e):n.removeAttribute(`${t}:${e}`)}else n.removeAttribute(e)}addClass(n,e){n.classList.add(e)}removeClass(n,e){n.classList.remove(e)}setStyle(n,e,t,o){o&(yr.DashCase|yr.Important)?n.style.setProperty(e,t,o&yr.Important?"important":""):n.style[e]=t}removeStyle(n,e,t){t&yr.DashCase?n.style.removeProperty(e):n.style[e]=""}setProperty(n,e,t){n!=null&&(n[e]=t)}setValue(n,e){n.nodeValue=e}listen(n,e,t,o){if(typeof n=="string"&&(n=Li().getGlobalEventTarget(this.doc,n),!n))throw new be(5102,!1);let r=this.decoratePreventDefault(t);return this.tracingService?.wrapEventListener&&(r=this.tracingService.wrapEventListener(n,e,r)),this.eventManager.addEventListener(n,e,r,o)}decoratePreventDefault(n){return e=>{if(e==="__ngUnwrap__")return n;(this.platformIsServer?this.ngZone.runGuarded(()=>n(e)):n(e))===!1&&e.preventDefault()}}};function m_(i){return i.tagName==="TEMPLATE"&&i.content!==void 0}var rp=class extends ls{sharedStylesHost;hostEl;shadowRoot;constructor(n,e,t,o,r,a,s,u,h){super(n,r,a,u,h),this.sharedStylesHost=e,this.hostEl=t,this.shadowRoot=t.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);let g=o.styles;g=h_(o.id,g);for(let R of g){let F=document.createElement("style");s&&F.setAttribute("nonce",s),F.textContent=R,this.shadowRoot.appendChild(F)}let y=o.getExternalStyles?.();if(y)for(let R of y){let F=op(R,r);s&&F.setAttribute("nonce",s),this.shadowRoot.appendChild(F)}}nodeOrShadowRoot(n){return n===this.hostEl?this.shadowRoot:n}appendChild(n,e){return super.appendChild(this.nodeOrShadowRoot(n),e)}insertBefore(n,e,t){return super.insertBefore(this.nodeOrShadowRoot(n),e,t)}removeChild(n,e){return super.removeChild(null,e)}parentNode(n){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(n)))}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}},cs=class extends ls{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(n,e,t,o,r,a,s,u,h){super(n,r,a,s,u),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=o;let g=t.styles;this.styles=h?h_(h,g):g,this.styleUrls=t.getExternalStyles?.(h)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}},dc=class extends cs{contentAttr;hostAttr;constructor(n,e,t,o,r,a,s,u,h){let g=o+"-"+t.id;super(n,e,t,r,a,s,u,h,g),this.contentAttr=cw(g),this.hostAttr=dw(g)}applyToHost(n){this.applyStyles(),this.setAttribute(n,this.hostAttr,"")}createElement(n,e){let t=super.createElement(n,e);return super.setAttribute(t,this.contentAttr,""),t}};var mc=class i extends Ja{supportsDOMEvents=!0;static makeCurrent(){$m(new i)}onAndCancel(n,e,t,o){return n.addEventListener(e,t,o),()=>{n.removeEventListener(e,t,o)}}dispatchEvent(n,e){n.dispatchEvent(e)}remove(n){n.remove()}createElement(n,e){return e=e||this.getDefaultDocument(),e.createElement(n)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(n){return n.nodeType===Node.ELEMENT_NODE}isShadowRoot(n){return n instanceof DocumentFragment}getGlobalEventTarget(n,e){return e==="window"?window:e==="document"?n:e==="body"?n.body:null}getBaseHref(n){let e=mw();return e==null?null:pw(e)}resetBaseElement(){us=null}getUserAgent(){return window.navigator.userAgent}getCookie(n){return as(document.cookie,n)}},us=null;function mw(){return us=us||document.head.querySelector("base"),us?us.getAttribute("href"):null}function pw(i){return new URL(i,document.baseURI).pathname}var hw=(()=>{class i{build(){return new XMLHttpRequest}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac})}return i})(),g_=(()=>{class i extends ss{constructor(e){super(e)}supports(e){return!0}addEventListener(e,t,o,r){return e.addEventListener(t,o,r),()=>this.removeEventListener(e,t,o,r)}removeEventListener(e,t,o,r){return e.removeEventListener(t,o,r)}static \u0275fac=function(t){return new(t||i)(N(re))};static \u0275prov=D({token:i,factory:i.\u0275fac})}return i})(),f_=["alt","control","meta","shift"],fw={"\b":"Backspace"," ":"Tab","\x7F":"Delete","\x1B":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},gw={alt:i=>i.altKey,control:i=>i.ctrlKey,meta:i=>i.metaKey,shift:i=>i.shiftKey},__=(()=>{class i extends ss{constructor(e){super(e)}supports(e){return i.parseEventName(e)!=null}addEventListener(e,t,o,r){let a=i.parseEventName(t),s=i.eventCallback(a.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Li().onAndCancel(e,a.domEventName,s,r))}static parseEventName(e){let t=e.toLowerCase().split("."),o=t.shift();if(t.length===0||!(o==="keydown"||o==="keyup"))return null;let r=i._normalizeKey(t.pop()),a="",s=t.indexOf("code");if(s>-1&&(t.splice(s,1),a="code."),f_.forEach(h=>{let g=t.indexOf(h);g>-1&&(t.splice(g,1),a+=h+".")}),a+=r,t.length!=0||r.length===0)return null;let u={};return u.domEventName=o,u.fullKey=a,u}static matchEventFullKeyCode(e,t){let o=fw[e.key]||e.key,r="";return t.indexOf("code.")>-1&&(o=e.code,r="code."),o==null||!o?!1:(o=o.toLowerCase(),o===" "?o="space":o==="."&&(o="dot"),f_.forEach(a=>{if(a!==o){let s=gw[a];s(e)&&(r+=a+".")}}),r+=o,r===t)}static eventCallback(e,t,o){return r=>{i.matchEventFullKeyCode(r,e)&&o.runGuarded(()=>t(r))}}static _normalizeKey(e){return e==="esc"?"escape":e}static \u0275fac=function(t){return new(t||i)(N(re))};static \u0275prov=D({token:i,factory:i.\u0275fac})}return i})();function cp(i,n){return jg(_({rootComponent:i},_w(n)))}function _w(i){return{appProviders:[...xw,...i?.providers??[]],platformProviders:Cw}}function bw(){mc.makeCurrent()}function vw(){return new Ri}function yw(){return hg(document),document}var Cw=[{provide:Fi,useValue:sc},{provide:fg,useValue:bw,multi:!0},{provide:re,useFactory:yw}];var xw=[{provide:ug,useValue:"root"},{provide:Ri,useFactory:vw},{provide:uc,useClass:g_,multi:!0,deps:[re]},{provide:uc,useClass:__,multi:!0,deps:[re]},ds,sp,ap,{provide:yt,useExisting:ds},{provide:jo,useClass:hw},[]];var Mr=class{},ms=class{},Qn=class i{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(n){n?typeof n=="string"?this.lazyInit=()=>{this.headers=new Map,n.split(` -`).forEach(e=>{let t=e.indexOf(":");if(t>0){let o=e.slice(0,t),r=e.slice(t+1).trim();this.addHeaderEntry(o,r)}})}:typeof Headers<"u"&&n instanceof Headers?(this.headers=new Map,n.forEach((e,t)=>{this.addHeaderEntry(t,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(n).forEach(([e,t])=>{this.setHeaderEntries(e,t)})}:this.headers=new Map}has(n){return this.init(),this.headers.has(n.toLowerCase())}get(n){this.init();let e=this.headers.get(n.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(n){return this.init(),this.headers.get(n.toLowerCase())||null}append(n,e){return this.clone({name:n,value:e,op:"a"})}set(n,e){return this.clone({name:n,value:e,op:"s"})}delete(n,e){return this.clone({name:n,value:e,op:"d"})}maybeSetNormalizedName(n,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,n)}init(){this.lazyInit&&(this.lazyInit instanceof i?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(n=>this.applyUpdate(n)),this.lazyUpdate=null))}copyFrom(n){n.init(),Array.from(n.headers.keys()).forEach(e=>{this.headers.set(e,n.headers.get(e)),this.normalizedNames.set(e,n.normalizedNames.get(e))})}clone(n){let e=new i;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof i?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e}applyUpdate(n){let e=n.name.toLowerCase();switch(n.op){case"a":case"s":let t=n.value;if(typeof t=="string"&&(t=[t]),t.length===0)return;this.maybeSetNormalizedName(n.name,e);let o=(n.op==="a"?this.headers.get(e):void 0)||[];o.push(...t),this.headers.set(e,o);break;case"d":let r=n.value;if(!r)this.headers.delete(e),this.normalizedNames.delete(e);else{let a=this.headers.get(e);if(!a)return;a=a.filter(s=>r.indexOf(s)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(n,e){let t=n.toLowerCase();this.maybeSetNormalizedName(n,t),this.headers.has(t)?this.headers.get(t).push(e):this.headers.set(t,[e])}setHeaderEntries(n,e){let t=(Array.isArray(e)?e:[e]).map(r=>r.toString()),o=n.toLowerCase();this.headers.set(o,t),this.maybeSetNormalizedName(n,o)}forEach(n){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>n(this.normalizedNames.get(e),this.headers.get(e)))}};var hc=class{encodeKey(n){return b_(n)}encodeValue(n){return b_(n)}decodeKey(n){return decodeURIComponent(n)}decodeValue(n){return decodeURIComponent(n)}};function ww(i,n){let e=new Map;return i.length>0&&i.replace(/^\?/,"").split("&").forEach(o=>{let r=o.indexOf("="),[a,s]=r==-1?[n.decodeKey(o),""]:[n.decodeKey(o.slice(0,r)),n.decodeValue(o.slice(r+1))],u=e.get(a)||[];u.push(s),e.set(a,u)}),e}var Dw=/%(\d[a-f0-9])/gi,Mw={40:"@","3A":":",24:"$","2C":",","3B":";","3D":"=","3F":"?","2F":"/"};function b_(i){return encodeURIComponent(i).replace(Dw,(n,e)=>Mw[e]??n)}function pc(i){return`${i}`}var Zn=class i{map;encoder;updates=null;cloneFrom=null;constructor(n={}){if(this.encoder=n.encoder||new hc,n.fromString){if(n.fromObject)throw new be(2805,!1);this.map=ww(n.fromString,this.encoder)}else n.fromObject?(this.map=new Map,Object.keys(n.fromObject).forEach(e=>{let t=n.fromObject[e],o=Array.isArray(t)?t.map(pc):[pc(t)];this.map.set(e,o)})):this.map=null}has(n){return this.init(),this.map.has(n)}get(n){this.init();let e=this.map.get(n);return e?e[0]:null}getAll(n){return this.init(),this.map.get(n)||null}keys(){return this.init(),Array.from(this.map.keys())}append(n,e){return this.clone({param:n,value:e,op:"a"})}appendAll(n){let e=[];return Object.keys(n).forEach(t=>{let o=n[t];Array.isArray(o)?o.forEach(r=>{e.push({param:t,value:r,op:"a"})}):e.push({param:t,value:o,op:"a"})}),this.clone(e)}set(n,e){return this.clone({param:n,value:e,op:"s"})}delete(n,e){return this.clone({param:n,value:e,op:"d"})}toString(){return this.init(),this.keys().map(n=>{let e=this.encoder.encodeKey(n);return this.map.get(n).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(n=>n!=="").join("&")}clone(n){let e=new i({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(n),e}init(){this.map===null&&(this.map=new Map),this.cloneFrom!==null&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(n=>this.map.set(n,this.cloneFrom.map.get(n))),this.updates.forEach(n=>{switch(n.op){case"a":case"s":let e=(n.op==="a"?this.map.get(n.param):void 0)||[];e.push(pc(n.value)),this.map.set(n.param,e);break;case"d":if(n.value!==void 0){let t=this.map.get(n.param)||[],o=t.indexOf(pc(n.value));o!==-1&&t.splice(o,1),t.length>0?this.map.set(n.param,t):this.map.delete(n.param)}else{this.map.delete(n.param);break}}}),this.cloneFrom=this.updates=null)}};var fc=class{map=new Map;set(n,e){return this.map.set(n,e),this}get(n){return this.map.has(n)||this.map.set(n,n.defaultValue()),this.map.get(n)}delete(n){return this.map.delete(n),this}has(n){return this.map.has(n)}keys(){return this.map.keys()}};function kw(i){switch(i){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function v_(i){return typeof ArrayBuffer<"u"&&i instanceof ArrayBuffer}function y_(i){return typeof Blob<"u"&&i instanceof Blob}function C_(i){return typeof FormData<"u"&&i instanceof FormData}function Sw(i){return typeof URLSearchParams<"u"&&i instanceof URLSearchParams}var x_="Content-Type",w_="Accept",M_="X-Request-URL",k_="text/plain",S_="application/json",Ew=`${S_}, ${k_}, */*`,Dr=class i{url;body=null;headers;context;reportProgress=!1;withCredentials=!1;responseType="json";method;params;urlWithParams;transferCache;constructor(n,e,t,o){this.url=e,this.method=n.toUpperCase();let r;if(kw(this.method)||o?(this.body=t!==void 0?t:null,r=o):r=t,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.context&&(this.context=r.context),r.params&&(this.params=r.params),this.transferCache=r.transferCache),this.headers??=new Qn,this.context??=new fc,!this.params)this.params=new Zn,this.urlWithParams=e;else{let a=this.params.toString();if(a.length===0)this.urlWithParams=e;else{let s=e.indexOf("?"),u=s===-1?"?":sR.set(F,n.setHeaders[F]),h)),n.setParams&&(g=Object.keys(n.setParams).reduce((R,F)=>R.set(F,n.setParams[F]),g)),new i(e,t,a,{params:g,headers:h,context:y,reportProgress:u,responseType:o,withCredentials:s,transferCache:r})}},zo=function(i){return i[i.Sent=0]="Sent",i[i.UploadProgress=1]="UploadProgress",i[i.ResponseHeader=2]="ResponseHeader",i[i.DownloadProgress=3]="DownloadProgress",i[i.Response=4]="Response",i[i.User=5]="User",i}(zo||{}),kr=class{headers;status;statusText;url;ok;type;constructor(n,e=200,t="OK"){this.headers=n.headers||new Qn,this.status=n.status!==void 0?n.status:e,this.statusText=n.statusText||t,this.url=n.url||null,this.ok=this.status>=200&&this.status<300}},gc=class i extends kr{constructor(n={}){super(n)}type=zo.ResponseHeader;clone(n={}){return new i({headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},Uo=class i extends kr{body;constructor(n={}){super(n),this.body=n.body!==void 0?n.body:null}type=zo.Response;clone(n={}){return new i({body:n.body!==void 0?n.body:this.body,headers:n.headers||this.headers,status:n.status!==void 0?n.status:this.status,statusText:n.statusText||this.statusText,url:n.url||this.url||void 0})}},ps=class extends kr{name="HttpErrorResponse";message;error;ok=!1;constructor(n){super(n,0,"Unknown Error"),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${n.url||"(unknown url)"}`:this.message=`Http failure response for ${n.url||"(unknown url)"}: ${n.status} ${n.statusText}`,this.error=n.error||null}},Ow=200,Tw=204;function dp(i,n){return{body:n,headers:i.headers,context:i.context,observe:i.observe,params:i.params,reportProgress:i.reportProgress,responseType:i.responseType,withCredentials:i.withCredentials,transferCache:i.transferCache}}var si=(()=>{class i{handler;constructor(e){this.handler=e}request(e,t,o={}){let r;if(e instanceof Dr)r=e;else{let u;o.headers instanceof Qn?u=o.headers:u=new Qn(o.headers);let h;o.params&&(o.params instanceof Zn?h=o.params:h=new Zn({fromObject:o.params})),r=new Dr(e,t,o.body!==void 0?o.body:null,{headers:u,context:o.context,params:h,reportProgress:o.reportProgress,responseType:o.responseType||"json",withCredentials:o.withCredentials,transferCache:o.transferCache})}let a=T(r).pipe(qt(u=>this.handler.handle(u)));if(e instanceof Dr||o.observe==="events")return a;let s=a.pipe(le(u=>u instanceof Uo));switch(o.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return s.pipe(A(u=>{if(u.body!==null&&!(u.body instanceof ArrayBuffer))throw new be(2806,!1);return u.body}));case"blob":return s.pipe(A(u=>{if(u.body!==null&&!(u.body instanceof Blob))throw new be(2807,!1);return u.body}));case"text":return s.pipe(A(u=>{if(u.body!==null&&typeof u.body!="string")throw new be(2808,!1);return u.body}));case"json":default:return s.pipe(A(u=>u.body))}case"response":return s;default:throw new be(2809,!1)}}delete(e,t={}){return this.request("DELETE",e,t)}get(e,t={}){return this.request("GET",e,t)}head(e,t={}){return this.request("HEAD",e,t)}jsonp(e,t){return this.request("JSONP",e,{params:new Zn().append(t,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(e,t={}){return this.request("OPTIONS",e,t)}patch(e,t,o={}){return this.request("PATCH",e,dp(o,t))}post(e,t,o={}){return this.request("POST",e,dp(o,t))}put(e,t,o={}){return this.request("PUT",e,dp(o,t))}static \u0275fac=function(t){return new(t||i)(N(Mr))};static \u0275prov=D({token:i,factory:i.\u0275fac})}return i})();var Aw=new v("");function E_(i,n){return n(i)}function Iw(i,n){return(e,t)=>n.intercept(e,{handle:o=>i(o,t)})}function Pw(i,n,e){return(t,o)=>Pi(e,()=>n(t,r=>i(r,o)))}var bc=new v(""),mp=new v(""),pp=new v(""),hp=new v("",{providedIn:"root",factory:()=>!0});function Rw(){let i=null;return(n,e)=>{i===null&&(i=(d(bc,{optional:!0})??[]).reduceRight(Iw,E_));let t=d(Ha);if(d(hp)){let r=t.add();return i(n,e).pipe(Cn(()=>t.remove(r)))}else return i(n,e)}}var _c=(()=>{class i extends Mr{backend;injector;chain=null;pendingTasks=d(Ha);contributeToStability=d(hp);constructor(e,t){super(),this.backend=e,this.injector=t}handle(e){if(this.chain===null){let t=Array.from(new Set([...this.injector.get(mp),...this.injector.get(pp,[])]));this.chain=t.reduceRight((o,r)=>Pw(o,r,this.injector),E_)}if(this.contributeToStability){let t=this.pendingTasks.add();return this.chain(e,o=>this.backend.handle(o)).pipe(Cn(()=>this.pendingTasks.remove(t)))}else return this.chain(e,t=>this.backend.handle(t))}static \u0275fac=function(t){return new(t||i)(N(ms),N(ni))};static \u0275prov=D({token:i,factory:i.\u0275fac})}return i})();var Fw=/^\)\]\}',?\n/,Nw=RegExp(`^${M_}:`,"m");function Lw(i){return"responseURL"in i&&i.responseURL?i.responseURL:Nw.test(i.getAllResponseHeaders())?i.getResponseHeader(M_):null}var up=(()=>{class i{xhrFactory;constructor(e){this.xhrFactory=e}handle(e){if(e.method==="JSONP")throw new be(-2800,!1);let t=this.xhrFactory;return(t.\u0275loadImpl?kt(t.\u0275loadImpl()):T(null)).pipe(Pe(()=>new mt(r=>{let a=t.build();if(a.open(e.method,e.urlWithParams),e.withCredentials&&(a.withCredentials=!0),e.headers.forEach((B,J)=>a.setRequestHeader(B,J.join(","))),e.headers.has(w_)||a.setRequestHeader(w_,Ew),!e.headers.has(x_)){let B=e.detectContentTypeHeader();B!==null&&a.setRequestHeader(x_,B)}if(e.responseType){let B=e.responseType.toLowerCase();a.responseType=B!=="json"?B:"text"}let s=e.serializeBody(),u=null,h=()=>{if(u!==null)return u;let B=a.statusText||"OK",J=new Qn(a.getAllResponseHeaders()),Fe=Lw(a)||e.url;return u=new gc({headers:J,status:a.status,statusText:B,url:Fe}),u},g=()=>{let{headers:B,status:J,statusText:Fe,url:at}=h(),De=null;J!==Tw&&(De=typeof a.response>"u"?a.responseText:a.response),J===0&&(J=De?Ow:0);let Ne=J>=200&&J<300;if(e.responseType==="json"&&typeof De=="string"){let et=De;De=De.replace(Fw,"");try{De=De!==""?JSON.parse(De):null}catch(st){De=et,Ne&&(Ne=!1,De={error:st,text:De})}}Ne?(r.next(new Uo({body:De,headers:B,status:J,statusText:Fe,url:at||void 0})),r.complete()):r.error(new ps({error:De,headers:B,status:J,statusText:Fe,url:at||void 0}))},y=B=>{let{url:J}=h(),Fe=new ps({error:B,status:a.status||0,statusText:a.statusText||"Unknown Error",url:J||void 0});r.error(Fe)},R=!1,F=B=>{R||(r.next(h()),R=!0);let J={type:zo.DownloadProgress,loaded:B.loaded};B.lengthComputable&&(J.total=B.total),e.responseType==="text"&&a.responseText&&(J.partialText=a.responseText),r.next(J)},H=B=>{let J={type:zo.UploadProgress,loaded:B.loaded};B.lengthComputable&&(J.total=B.total),r.next(J)};return a.addEventListener("load",g),a.addEventListener("error",y),a.addEventListener("timeout",y),a.addEventListener("abort",y),e.reportProgress&&(a.addEventListener("progress",F),s!==null&&a.upload&&a.upload.addEventListener("progress",H)),a.send(s),r.next({type:zo.Sent}),()=>{a.removeEventListener("error",y),a.removeEventListener("abort",y),a.removeEventListener("load",g),a.removeEventListener("timeout",y),e.reportProgress&&(a.removeEventListener("progress",F),s!==null&&a.upload&&a.upload.removeEventListener("progress",H)),a.readyState!==a.DONE&&a.abort()}})))}static \u0275fac=function(t){return new(t||i)(N(jo))};static \u0275prov=D({token:i,factory:i.\u0275fac})}return i})(),O_=new v(""),Vw="XSRF-TOKEN",Bw=new v("",{providedIn:"root",factory:()=>Vw}),jw="X-XSRF-TOKEN",zw=new v("",{providedIn:"root",factory:()=>jw}),hs=class{},Uw=(()=>{class i{doc;cookieName;lastCookieString="";lastToken=null;parseCount=0;constructor(e,t){this.doc=e,this.cookieName=t}getToken(){let e=this.doc.cookie||"";return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=as(e,this.cookieName),this.lastCookieString=e),this.lastToken}static \u0275fac=function(t){return new(t||i)(N(re),N(Bw))};static \u0275prov=D({token:i,factory:i.\u0275fac})}return i})();function Hw(i,n){let e=i.url.toLowerCase();if(!d(O_)||i.method==="GET"||i.method==="HEAD"||e.startsWith("http://")||e.startsWith("https://"))return n(i);let t=d(hs).getToken(),o=d(zw);return t!=null&&!i.headers.has(o)&&(i=i.clone({headers:i.headers.set(o,t)})),n(i)}var fp=function(i){return i[i.Interceptors=0]="Interceptors",i[i.LegacyInterceptors=1]="LegacyInterceptors",i[i.CustomXsrfConfiguration=2]="CustomXsrfConfiguration",i[i.NoXsrfProtection=3]="NoXsrfProtection",i[i.JsonpSupport=4]="JsonpSupport",i[i.RequestsMadeViaParent=5]="RequestsMadeViaParent",i[i.Fetch=6]="Fetch",i}(fp||{});function $w(i,n){return{\u0275kind:i,\u0275providers:n}}function gp(...i){let n=[si,up,_c,{provide:Mr,useExisting:_c},{provide:ms,useFactory:()=>d(Aw,{optional:!0})??d(up)},{provide:mp,useValue:Hw,multi:!0},{provide:O_,useValue:!0},{provide:hs,useClass:Uw}];for(let e of i)n.push(...e.\u0275providers);return ii(n)}var D_=new v("");function _p(){return $w(fp.LegacyInterceptors,[{provide:D_,useFactory:Rw},{provide:mp,useExisting:D_,multi:!0}])}var Gw=new v(""),Ww="b",Yw="h",qw="s",Kw="st",Zw="u",Qw="rt",bp=new v(""),Xw=["GET","HEAD"];function Jw(i,n){let R=d(bp),{isCacheActive:e}=R,t=Xf(R,["isCacheActive"]),{transferCache:o,method:r}=i;if(!e||o===!1||r==="POST"&&!t.includePostRequests&&!o||r!=="POST"&&!Xw.includes(r)||!t.includeRequestsWithAuthHeaders&&e1(i)||t.filter?.(i)===!1)return n(i);let a=d(gg);if(d(Gw,{optional:!0}))throw new be(2803,!1);let u=i.url,h=t1(i,u),g=a.get(h,null),y=t.includeHeaders;if(typeof o=="object"&&o.includeHeaders&&(y=o.includeHeaders),g){let{[Ww]:F,[Qw]:H,[Yw]:B,[qw]:J,[Kw]:Fe,[Zw]:at}=g,De=F;switch(H){case"arraybuffer":De=new TextEncoder().encode(F).buffer;break;case"blob":De=new Blob([F]);break}let Ne=new Qn(B);return T(new Uo({body:De,headers:Ne,status:J,statusText:Fe,url:at}))}return n(i).pipe(Ge(F=>{F instanceof Uo}))}function e1(i){return i.headers.has("authorization")||i.headers.has("proxy-authorization")}function T_(i){return[...i.keys()].sort().map(n=>`${n}=${i.getAll(n)}`).join("&")}function t1(i,n){let{params:e,method:t,responseType:o}=i,r=T_(e),a=i.serializeBody();a instanceof URLSearchParams?a=T_(a):typeof a!="string"&&(a="");let s=[t,o,n,a,r].join("|"),u=i1(s);return u}function i1(i){let n=0;for(let e of i)n=Math.imul(31,n)+e.charCodeAt(0)<<0;return n+=2147483648,n.toString()}function A_(i){return[{provide:bp,useFactory:()=>(No("NgHttpTransferCache"),_({isCacheActive:!0},i))},{provide:pp,useValue:Jw,multi:!0},{provide:qa,multi:!0,useFactory:()=>{let n=d(wn),e=d(bp);return()=>{n.whenStable().then(()=>{e.isCacheActive=!1})}}}]}var I_=(()=>{class i{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||""}static \u0275fac=function(t){return new(t||i)(N(re))};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var fs=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:function(t){let o=null;return t?o=new(t||i):o=N(o1),o},providedIn:"root"})}return i})(),o1=(()=>{class i extends fs{_doc;constructor(e){super(),this._doc=e}sanitize(e,t){if(t==null)return null;switch(e){case _i.NONE:return t;case _i.HTML:return br(t,"HTML")?Lo(t):Dg(this._doc,String(t)).toString();case _i.STYLE:return br(t,"Style")?Lo(t):t;case _i.SCRIPT:if(br(t,"Script"))return Lo(t);throw new be(5200,!1);case _i.URL:return br(t,"URL")?Lo(t):wg(String(t));case _i.RESOURCE_URL:if(br(t,"ResourceURL"))return Lo(t);throw new be(5201,!1);default:throw new be(5202,!1)}}bypassSecurityTrustHtml(e){return bg(e)}bypassSecurityTrustStyle(e){return vg(e)}bypassSecurityTrustScript(e){return yg(e)}bypassSecurityTrustUrl(e){return Cg(e)}bypassSecurityTrustResourceUrl(e){return xg(e)}static \u0275fac=function(t){return new(t||i)(N(re))};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),yc=function(i){return i[i.NoHttpTransferCache=0]="NoHttpTransferCache",i[i.HttpTransferCacheOptions=1]="HttpTransferCacheOptions",i[i.I18nSupport=2]="I18nSupport",i[i.EventReplay=3]="EventReplay",i[i.IncrementalHydration=4]="IncrementalHydration",i}(yc||{});function r1(i,n=[],e={}){return{\u0275kind:i,\u0275providers:n}}function P_(){return r1(yc.EventReplay,zg())}function R_(...i){let n=[],e=new Set;for(let{\u0275providers:o,\u0275kind:r}of i)e.add(r),o.length&&n.push(o);let t=e.has(yc.HttpTransferCacheOptions);return ii([[],Ug(),e.has(yc.NoHttpTransferCache)||t?[]:A_({}),n])}var we="primary",Es=Symbol("RouteTitle"),Dp=class{params;constructor(n){this.params=n||{}}has(n){return Object.prototype.hasOwnProperty.call(this.params,n)}get(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e[0]:e}return null}getAll(n){if(this.has(n)){let e=this.params[n];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function Go(i){return new Dp(i)}function U_(i,n,e){let t=e.path.split("/");if(t.length>i.length||e.pathMatch==="full"&&(n.hasChildren()||t.lengtht[r]===o)}else return i===n}function $_(i){return i.length>0?i[i.length-1]:null}function uo(i){return km(i)?i:xr(i)?kt(Promise.resolve(i)):T(i)}var s1={exact:W_,subset:Y_},G_={exact:l1,subset:c1,ignored:()=>!0};function F_(i,n,e){return s1[e.paths](i.root,n.root,e.matrixParams)&&G_[e.queryParams](i.queryParams,n.queryParams)&&!(e.fragment==="exact"&&i.fragment!==n.fragment)}function l1(i,n){return Sn(i,n)}function W_(i,n,e){if(!Ho(i.segments,n.segments)||!wc(i.segments,n.segments,e)||i.numberOfChildren!==n.numberOfChildren)return!1;for(let t in n.children)if(!i.children[t]||!W_(i.children[t],n.children[t],e))return!1;return!0}function c1(i,n){return Object.keys(n).length<=Object.keys(i).length&&Object.keys(n).every(e=>H_(i[e],n[e]))}function Y_(i,n,e){return q_(i,n,n.segments,e)}function q_(i,n,e,t){if(i.segments.length>e.length){let o=i.segments.slice(0,e.length);return!(!Ho(o,e)||n.hasChildren()||!wc(o,e,t))}else if(i.segments.length===e.length){if(!Ho(i.segments,e)||!wc(i.segments,e,t))return!1;for(let o in n.children)if(!i.children[o]||!Y_(i.children[o],n.children[o],t))return!1;return!0}else{let o=e.slice(0,i.segments.length),r=e.slice(i.segments.length);return!Ho(i.segments,o)||!wc(i.segments,o,t)||!i.children[we]?!1:q_(i.children[we],n,r,t)}}function wc(i,n,e){return n.every((t,o)=>G_[e](i[o].parameters,t.parameters))}var On=class{root;queryParams;fragment;_queryParamMap;constructor(n=new He([],{}),e={},t=null){this.root=n,this.queryParams=e,this.fragment=t}get queryParamMap(){return this._queryParamMap??=Go(this.queryParams),this._queryParamMap}toString(){return m1.serialize(this)}},He=class{segments;children;parent=null;constructor(n,e){this.segments=n,this.children=e,Object.values(e).forEach(t=>t.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return Dc(this)}},ao=class{path;parameters;_parameterMap;constructor(n,e){this.path=n,this.parameters=e}get parameterMap(){return this._parameterMap??=Go(this.parameters),this._parameterMap}toString(){return Z_(this)}};function d1(i,n){return Ho(i,n)&&i.every((e,t)=>Sn(e.parameters,n[t].parameters))}function Ho(i,n){return i.length!==n.length?!1:i.every((e,t)=>e.path===n[t].path)}function u1(i,n){let e=[];return Object.entries(i.children).forEach(([t,o])=>{t===we&&(e=e.concat(n(o,t)))}),Object.entries(i.children).forEach(([t,o])=>{t!==we&&(e=e.concat(n(o,t)))}),e}var Wo=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:()=>new so,providedIn:"root"})}return i})(),so=class{parse(n){let e=new Sp(n);return new On(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(n){let e=`/${gs(n.root,!0)}`,t=f1(n.queryParams),o=typeof n.fragment=="string"?`#${p1(n.fragment)}`:"";return`${e}${t}${o}`}},m1=new so;function Dc(i){return i.segments.map(n=>Z_(n)).join("/")}function gs(i,n){if(!i.hasChildren())return Dc(i);if(n){let e=i.children[we]?gs(i.children[we],!1):"",t=[];return Object.entries(i.children).forEach(([o,r])=>{o!==we&&t.push(`${o}:${gs(r,!1)}`)}),t.length>0?`${e}(${t.join("//")})`:e}else{let e=u1(i,(t,o)=>o===we?[gs(i.children[we],!1)]:[`${o}:${gs(t,!1)}`]);return Object.keys(i.children).length===1&&i.children[we]!=null?`${Dc(i)}/${e[0]}`:`${Dc(i)}/(${e.join("//")})`}}function K_(i){return encodeURIComponent(i).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Cc(i){return K_(i).replace(/%3B/gi,";")}function p1(i){return encodeURI(i)}function kp(i){return K_(i).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Mc(i){return decodeURIComponent(i)}function N_(i){return Mc(i.replace(/\+/g,"%20"))}function Z_(i){return`${kp(i.path)}${h1(i.parameters)}`}function h1(i){return Object.entries(i).map(([n,e])=>`;${kp(n)}=${kp(e)}`).join("")}function f1(i){let n=Object.entries(i).map(([e,t])=>Array.isArray(t)?t.map(o=>`${Cc(e)}=${Cc(o)}`).join("&"):`${Cc(e)}=${Cc(t)}`).filter(e=>e);return n.length?`?${n.join("&")}`:""}var g1=/^[^\/()?;#]+/;function yp(i){let n=i.match(g1);return n?n[0]:""}var _1=/^[^\/()?;=#]+/;function b1(i){let n=i.match(_1);return n?n[0]:""}var v1=/^[^=?&#]+/;function y1(i){let n=i.match(v1);return n?n[0]:""}var C1=/^[^&#]+/;function x1(i){let n=i.match(C1);return n?n[0]:""}var Sp=class{url;remaining;constructor(n){this.url=n,this.remaining=n}parseRootSegment(){return this.consumeOptional("/"),this.remaining===""||this.peekStartsWith("?")||this.peekStartsWith("#")?new He([],{}):new He([],this.parseChildren())}parseQueryParams(){let n={};if(this.consumeOptional("?"))do this.parseQueryParam(n);while(this.consumeOptional("&"));return n}parseFragment(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null}parseChildren(){if(this.remaining==="")return{};this.consumeOptional("/");let n=[];for(this.peekStartsWith("(")||n.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),n.push(this.parseSegment());let e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));let t={};return this.peekStartsWith("(")&&(t=this.parseParens(!1)),(n.length>0||Object.keys(e).length>0)&&(t[we]=new He(n,e)),t}parseSegment(){let n=yp(this.remaining);if(n===""&&this.peekStartsWith(";"))throw new be(4009,!1);return this.capture(n),new ao(Mc(n),this.parseMatrixParams())}parseMatrixParams(){let n={};for(;this.consumeOptional(";");)this.parseParam(n);return n}parseParam(n){let e=b1(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let o=yp(this.remaining);o&&(t=o,this.capture(t))}n[Mc(e)]=Mc(t)}parseQueryParam(n){let e=y1(this.remaining);if(!e)return;this.capture(e);let t="";if(this.consumeOptional("=")){let a=x1(this.remaining);a&&(t=a,this.capture(t))}let o=N_(e),r=N_(t);if(n.hasOwnProperty(o)){let a=n[o];Array.isArray(a)||(a=[a],n[o]=a),a.push(r)}else n[o]=r}parseParens(n){let e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){let t=yp(this.remaining),o=this.remaining[t.length];if(o!=="/"&&o!==")"&&o!==";")throw new be(4010,!1);let r;t.indexOf(":")>-1?(r=t.slice(0,t.indexOf(":")),this.capture(r),this.capture(":")):n&&(r=we);let a=this.parseChildren();e[r]=Object.keys(a).length===1?a[we]:new He([],a),this.consumeOptional("//")}return e}peekStartsWith(n){return this.remaining.startsWith(n)}consumeOptional(n){return this.peekStartsWith(n)?(this.remaining=this.remaining.substring(n.length),!0):!1}capture(n){if(!this.consumeOptional(n))throw new be(4011,!1)}};function Q_(i){return i.segments.length>0?new He([],{[we]:i}):i}function X_(i){let n={};for(let[t,o]of Object.entries(i.children)){let r=X_(o);if(t===we&&r.segments.length===0&&r.hasChildren())for(let[a,s]of Object.entries(r.children))n[a]=s;else(r.segments.length>0||r.hasChildren())&&(n[t]=r)}let e=new He(i.segments,n);return w1(e)}function w1(i){if(i.numberOfChildren===1&&i.children[we]){let n=i.children[we];return new He(i.segments.concat(n.segments),n.children)}return i}function lo(i){return i instanceof On}function J_(i,n,e=null,t=null){let o=eb(i);return tb(o,n,e,t)}function eb(i){let n;function e(r){let a={};for(let u of r.children){let h=e(u);a[u.outlet]=h}let s=new He(r.url,a);return r===i&&(n=s),s}let t=e(i.root),o=Q_(t);return n??o}function tb(i,n,e,t){let o=i;for(;o.parent;)o=o.parent;if(n.length===0)return Cp(o,o,o,e,t);let r=D1(n);if(r.toRoot())return Cp(o,o,new He([],{}),e,t);let a=M1(r,o,i),s=a.processChildren?bs(a.segmentGroup,a.index,r.commands):nb(a.segmentGroup,a.index,r.commands);return Cp(o,a.segmentGroup,s,e,t)}function Sc(i){return typeof i=="object"&&i!=null&&!i.outlets&&!i.segmentPath}function ys(i){return typeof i=="object"&&i!=null&&i.outlets}function Cp(i,n,e,t,o){let r={};t&&Object.entries(t).forEach(([u,h])=>{r[u]=Array.isArray(h)?h.map(g=>`${g}`):`${h}`});let a;i===n?a=e:a=ib(i,n,e);let s=Q_(X_(a));return new On(s,r,o)}function ib(i,n,e){let t={};return Object.entries(i.children).forEach(([o,r])=>{r===n?t[o]=e:t[o]=ib(r,n,e)}),new He(i.segments,t)}var Ec=class{isAbsolute;numberOfDoubleDots;commands;constructor(n,e,t){if(this.isAbsolute=n,this.numberOfDoubleDots=e,this.commands=t,n&&t.length>0&&Sc(t[0]))throw new be(4003,!1);let o=t.find(ys);if(o&&o!==$_(t))throw new be(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]=="/"}};function D1(i){if(typeof i[0]=="string"&&i.length===1&&i[0]==="/")return new Ec(!0,0,i);let n=0,e=!1,t=i.reduce((o,r,a)=>{if(typeof r=="object"&&r!=null){if(r.outlets){let s={};return Object.entries(r.outlets).forEach(([u,h])=>{s[u]=typeof h=="string"?h.split("/"):h}),[...o,{outlets:s}]}if(r.segmentPath)return[...o,r.segmentPath]}return typeof r!="string"?[...o,r]:a===0?(r.split("/").forEach((s,u)=>{u==0&&s==="."||(u==0&&s===""?e=!0:s===".."?n++:s!=""&&o.push(s))}),o):[...o,r]},[]);return new Ec(e,n,t)}var Or=class{segmentGroup;processChildren;index;constructor(n,e,t){this.segmentGroup=n,this.processChildren=e,this.index=t}};function M1(i,n,e){if(i.isAbsolute)return new Or(n,!0,0);if(!e)return new Or(n,!1,NaN);if(e.parent===null)return new Or(e,!0,0);let t=Sc(i.commands[0])?0:1,o=e.segments.length-1+t;return k1(e,o,i.numberOfDoubleDots)}function k1(i,n,e){let t=i,o=n,r=e;for(;r>o;){if(r-=o,t=t.parent,!t)throw new be(4005,!1);o=t.segments.length}return new Or(t,!1,o-r)}function S1(i){return ys(i[0])?i[0].outlets:{[we]:i}}function nb(i,n,e){if(i??=new He([],{}),i.segments.length===0&&i.hasChildren())return bs(i,n,e);let t=E1(i,n,e),o=e.slice(t.commandIndex);if(t.match&&t.pathIndexr!==we)&&i.children[we]&&i.numberOfChildren===1&&i.children[we].segments.length===0){let r=bs(i.children[we],n,e);return new He(i.segments,r.children)}return Object.entries(t).forEach(([r,a])=>{typeof a=="string"&&(a=[a]),a!==null&&(o[r]=nb(i.children[r],n,a))}),Object.entries(i.children).forEach(([r,a])=>{t[r]===void 0&&(o[r]=a)}),new He(i.segments,o)}}function E1(i,n,e){let t=0,o=n,r={match:!1,pathIndex:0,commandIndex:0};for(;o=e.length)return r;let a=i.segments[o],s=e[t];if(ys(s))break;let u=`${s}`,h=t0&&u===void 0)break;if(u&&h&&typeof h=="object"&&h.outlets===void 0){if(!V_(u,h,a))return r;t+=2}else{if(!V_(u,{},a))return r;t++}o++}return{match:!0,pathIndex:o,commandIndex:t}}function Ep(i,n,e){let t=i.segments.slice(0,n),o=0;for(;o{typeof t=="string"&&(t=[t]),t!==null&&(n[e]=Ep(new He([],{}),0,t))}),n}function L_(i){let n={};return Object.entries(i).forEach(([e,t])=>n[e]=`${t}`),n}function V_(i,n,e){return i==e.path&&Sn(n,e.parameters)}var kc="imperative",Tt=function(i){return i[i.NavigationStart=0]="NavigationStart",i[i.NavigationEnd=1]="NavigationEnd",i[i.NavigationCancel=2]="NavigationCancel",i[i.NavigationError=3]="NavigationError",i[i.RoutesRecognized=4]="RoutesRecognized",i[i.ResolveStart=5]="ResolveStart",i[i.ResolveEnd=6]="ResolveEnd",i[i.GuardsCheckStart=7]="GuardsCheckStart",i[i.GuardsCheckEnd=8]="GuardsCheckEnd",i[i.RouteConfigLoadStart=9]="RouteConfigLoadStart",i[i.RouteConfigLoadEnd=10]="RouteConfigLoadEnd",i[i.ChildActivationStart=11]="ChildActivationStart",i[i.ChildActivationEnd=12]="ChildActivationEnd",i[i.ActivationStart=13]="ActivationStart",i[i.ActivationEnd=14]="ActivationEnd",i[i.Scroll=15]="Scroll",i[i.NavigationSkipped=16]="NavigationSkipped",i}(Tt||{}),wi=class{id;url;constructor(n,e){this.id=n,this.url=e}},co=class extends wi{type=Tt.NavigationStart;navigationTrigger;restoredState;constructor(n,e,t="imperative",o=null){super(n,e),this.navigationTrigger=t,this.restoredState=o}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}},Kt=class extends wi{urlAfterRedirects;type=Tt.NavigationEnd;constructor(n,e,t){super(n,e),this.urlAfterRedirects=t}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}},li=function(i){return i[i.Redirect=0]="Redirect",i[i.SupersededByNewNavigation=1]="SupersededByNewNavigation",i[i.NoDataFromResolver=2]="NoDataFromResolver",i[i.GuardRejected=3]="GuardRejected",i}(li||{}),Ar=function(i){return i[i.IgnoredSameUrlNavigation=0]="IgnoredSameUrlNavigation",i[i.IgnoredByUrlHandlingStrategy=1]="IgnoredByUrlHandlingStrategy",i}(Ar||{}),En=class extends wi{reason;code;type=Tt.NavigationCancel;constructor(n,e,t,o){super(n,e),this.reason=t,this.code=o}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}},Tn=class extends wi{reason;code;type=Tt.NavigationSkipped;constructor(n,e,t,o){super(n,e),this.reason=t,this.code=o}},Ir=class extends wi{error;target;type=Tt.NavigationError;constructor(n,e,t,o){super(n,e),this.error=t,this.target=o}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}},Cs=class extends wi{urlAfterRedirects;state;type=Tt.RoutesRecognized;constructor(n,e,t,o){super(n,e),this.urlAfterRedirects=t,this.state=o}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Oc=class extends wi{urlAfterRedirects;state;type=Tt.GuardsCheckStart;constructor(n,e,t,o){super(n,e),this.urlAfterRedirects=t,this.state=o}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Tc=class extends wi{urlAfterRedirects;state;shouldActivate;type=Tt.GuardsCheckEnd;constructor(n,e,t,o,r){super(n,e),this.urlAfterRedirects=t,this.state=o,this.shouldActivate=r}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}},Ac=class extends wi{urlAfterRedirects;state;type=Tt.ResolveStart;constructor(n,e,t,o){super(n,e),this.urlAfterRedirects=t,this.state=o}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Ic=class extends wi{urlAfterRedirects;state;type=Tt.ResolveEnd;constructor(n,e,t,o){super(n,e),this.urlAfterRedirects=t,this.state=o}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}},Pc=class{route;type=Tt.RouteConfigLoadStart;constructor(n){this.route=n}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}},Rc=class{route;type=Tt.RouteConfigLoadEnd;constructor(n){this.route=n}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}},Fc=class{snapshot;type=Tt.ChildActivationStart;constructor(n){this.snapshot=n}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Nc=class{snapshot;type=Tt.ChildActivationEnd;constructor(n){this.snapshot=n}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Lc=class{snapshot;type=Tt.ActivationStart;constructor(n){this.snapshot=n}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Vc=class{snapshot;type=Tt.ActivationEnd;constructor(n){this.snapshot=n}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||""}')`}},Pr=class{routerEvent;position;anchor;type=Tt.Scroll;constructor(n,e,t){this.routerEvent=n,this.position=e,this.anchor=t}toString(){let n=this.position?`${this.position[0]}, ${this.position[1]}`:null;return`Scroll(anchor: '${this.anchor}', position: '${n}')`}},xs=class{},Rr=class{url;navigationBehaviorOptions;constructor(n,e){this.url=n,this.navigationBehaviorOptions=e}};function T1(i,n){return i.providers&&!i._injector&&(i._injector=Kl(i.providers,n,`Route: ${i.path}`)),i._injector??n}function cn(i){return i.outlet||we}function A1(i,n){let e=i.filter(t=>cn(t)===n);return e.push(...i.filter(t=>cn(t)!==n)),e}function Os(i){if(!i)return null;if(i.routeConfig?._injector)return i.routeConfig._injector;for(let n=i.parent;n;n=n.parent){let e=n.routeConfig;if(e?._loadedInjector)return e._loadedInjector;if(e?._injector)return e._injector}return null}var Bc=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return Os(this.route?.snapshot)??this.rootInjector}constructor(n){this.rootInjector=n,this.children=new Yo(this.rootInjector)}},Yo=(()=>{class i{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,t){let o=this.getOrCreateContext(e);o.outlet=t,this.contexts.set(e,o)}onChildOutletDestroyed(e){let t=this.getContext(e);t&&(t.outlet=null,t.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let t=this.getContext(e);return t||(t=new Bc(this.rootInjector),this.contexts.set(e,t)),t}getContext(e){return this.contexts.get(e)||null}static \u0275fac=function(t){return new(t||i)(N(ni))};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),jc=class{_root;constructor(n){this._root=n}get root(){return this._root.value}parent(n){let e=this.pathFromRoot(n);return e.length>1?e[e.length-2]:null}children(n){let e=Op(n,this._root);return e?e.children.map(t=>t.value):[]}firstChild(n){let e=Op(n,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(n){let e=Tp(n,this._root);return e.length<2?[]:e[e.length-2].children.map(o=>o.value).filter(o=>o!==n)}pathFromRoot(n){return Tp(n,this._root).map(e=>e.value)}};function Op(i,n){if(i===n.value)return n;for(let e of n.children){let t=Op(i,e);if(t)return t}return null}function Tp(i,n){if(i===n.value)return[n];for(let e of n.children){let t=Tp(i,e);if(t.length)return t.unshift(n),t}return[]}var xi=class{value;children;constructor(n,e){this.value=n,this.children=e}toString(){return`TreeNode(${this.value})`}};function Er(i){let n={};return i&&i.children.forEach(e=>n[e.value.outlet]=e),n}var ws=class extends jc{snapshot;constructor(n,e){super(n),this.snapshot=e,Vp(this,n)}toString(){return this.snapshot.toString()}};function ob(i){let n=I1(i),e=new lt([new ao("",{})]),t=new lt({}),o=new lt({}),r=new lt({}),a=new lt(""),s=new An(e,t,r,a,o,we,i,n.root);return s.snapshot=n.root,new ws(new xi(s,[]),n)}function I1(i){let n={},e={},t={},o="",r=new $o([],n,t,o,e,we,i,null,{});return new Ds("",new xi(r,[]))}var An=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;constructor(n,e,t,o,r,a,s,u){this.urlSubject=n,this.paramsSubject=e,this.queryParamsSubject=t,this.fragmentSubject=o,this.dataSubject=r,this.outlet=a,this.component=s,this._futureSnapshot=u,this.title=this.dataSubject?.pipe(A(h=>h[Es]))??T(void 0),this.url=n,this.params=e,this.queryParams=t,this.fragment=o,this.data=r}get routeConfig(){return this._futureSnapshot.routeConfig}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=this.params.pipe(A(n=>Go(n))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe(A(n=>Go(n))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};function zc(i,n,e="emptyOnly"){let t,{routeConfig:o}=i;return n!==null&&(e==="always"||o?.path===""||!n.component&&!n.routeConfig?.loadComponent)?t={params:_(_({},n.params),i.params),data:_(_({},n.data),i.data),resolve:_(_(_(_({},i.data),n.data),o?.data),i._resolvedData)}:t={params:_({},i.params),data:_({},i.data),resolve:_(_({},i.data),i._resolvedData??{})},o&&ab(o)&&(t.resolve[Es]=o.title),t}var $o=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;get title(){return this.data?.[Es]}constructor(n,e,t,o,r,a,s,u,h){this.url=n,this.params=e,this.queryParams=t,this.fragment=o,this.data=r,this.outlet=a,this.component=s,this.routeConfig=u,this._resolve=h}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??=Go(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=Go(this.queryParams),this._queryParamMap}toString(){let n=this.url.map(t=>t.toString()).join("/"),e=this.routeConfig?this.routeConfig.path:"";return`Route(url:'${n}', path:'${e}')`}},Ds=class extends jc{url;constructor(n,e){super(e),this.url=n,Vp(this,e)}toString(){return rb(this._root)}};function Vp(i,n){n.value._routerState=i,n.children.forEach(e=>Vp(i,e))}function rb(i){let n=i.children.length>0?` { ${i.children.map(rb).join(", ")} } `:"";return`${i.value}${n}`}function xp(i){if(i.snapshot){let n=i.snapshot,e=i._futureSnapshot;i.snapshot=e,Sn(n.queryParams,e.queryParams)||i.queryParamsSubject.next(e.queryParams),n.fragment!==e.fragment&&i.fragmentSubject.next(e.fragment),Sn(n.params,e.params)||i.paramsSubject.next(e.params),a1(n.url,e.url)||i.urlSubject.next(e.url),Sn(n.data,e.data)||i.dataSubject.next(e.data)}else i.snapshot=i._futureSnapshot,i.dataSubject.next(i._futureSnapshot.data)}function Ap(i,n){let e=Sn(i.params,n.params)&&d1(i.url,n.url),t=!i.parent!=!n.parent;return e&&!t&&(!i.parent||Ap(i.parent,n.parent))}function ab(i){return typeof i.title=="string"||i.title===null}var sb=new v(""),Ts=(()=>{class i{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=we;activateEvents=new L;deactivateEvents=new L;attachEvents=new L;detachEvents=new L;routerOutletData=pg(void 0);parentContexts=d(Yo);location=d(Nt);changeDetector=d(ye);inputBinder=d(As,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:t,previousValue:o}=e.name;if(t)return;this.isTrackedInParentContexts(o)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(o)),this.initializeOutletWithName()}}ngOnDestroy(){this.isTrackedInParentContexts(this.name)&&this.parentContexts.onChildOutletDestroyed(this.name),this.inputBinder?.unsubscribeFromRouteData(this)}isTrackedInParentContexts(e){return this.parentContexts.getContext(e)?.outlet===this}ngOnInit(){this.initializeOutletWithName()}initializeOutletWithName(){if(this.parentContexts.onChildOutletCreated(this.name,this),this.activated)return;let e=this.parentContexts.getContext(this.name);e?.route&&(e.attachRef?this.attach(e.attachRef,e.route):this.activateWith(e.route,e.injector))}get isActivated(){return!!this.activated}get component(){if(!this.activated)throw new be(4012,!1);return this.activated.instance}get activatedRoute(){if(!this.activated)throw new be(4012,!1);return this._activatedRoute}get activatedRouteData(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}}detach(){if(!this.activated)throw new be(4012,!1);this.location.detach();let e=this.activated;return this.activated=null,this._activatedRoute=null,this.detachEvents.emit(e.instance),e}attach(e,t){this.activated=e,this._activatedRoute=t,this.location.insert(e.hostView),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.attachEvents.emit(e.instance)}deactivate(){if(this.activated){let e=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(e)}}activateWith(e,t){if(this.isActivated)throw new be(4013,!1);this._activatedRoute=e;let o=this.location,a=e.snapshot.component,s=this.parentContexts.getOrCreateContext(this.name).children,u=new Ip(e,s,o.injector,this.routerOutletData);this.activated=o.createComponent(a,{index:o.length,injector:u,environmentInjector:t}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["router-outlet"]],inputs:{name:"name",routerOutletData:[1,"routerOutletData"]},outputs:{activateEvents:"activate",deactivateEvents:"deactivate",attachEvents:"attach",detachEvents:"detach"},exportAs:["outlet"],features:[Oe]})}return i})(),Ip=class{route;childContexts;parent;outletData;constructor(n,e,t,o){this.route=n,this.childContexts=e,this.parent=t,this.outletData=o}get(n,e){return n===An?this.route:n===Yo?this.childContexts:n===sb?this.outletData:this.parent.get(n,e)}},As=new v(""),Bp=(()=>{class i{outletDataSubscriptions=new Map;bindActivatedRouteToOutletComponent(e){this.unsubscribeFromRouteData(e),this.subscribeToRouteData(e)}unsubscribeFromRouteData(e){this.outletDataSubscriptions.get(e)?.unsubscribe(),this.outletDataSubscriptions.delete(e)}subscribeToRouteData(e){let{activatedRoute:t}=e,o=Ii([t.queryParams,t.params,t.data]).pipe(Pe(([r,a,s],u)=>(s=_(_(_({},r),a),s),u===0?T(s):Promise.resolve(s)))).subscribe(r=>{if(!e.isActivated||!e.activatedComponentRef||e.activatedRoute!==t||t.component===null){this.unsubscribeFromRouteData(e);return}let a=Hg(t.component);if(!a){this.unsubscribeFromRouteData(e);return}for(let{templateName:s}of a.inputs)e.activatedComponentRef.setInput(s,r[s])});this.outletDataSubscriptions.set(e,o)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac})}return i})(),jp=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["ng-component"]],exportAs:["emptyRouterOutlet"],decls:1,vars:0,template:function(t,o){t&1&&M(0,"router-outlet")},dependencies:[Ts],encapsulation:2})}return i})();function zp(i){let n=i.children&&i.children.map(zp),e=n?O(_({},i),{children:n}):_({},i);return!e.component&&!e.loadComponent&&(n||e.loadChildren)&&e.outlet&&e.outlet!==we&&(e.component=jp),e}function P1(i,n,e){let t=Ms(i,n._root,e?e._root:void 0);return new ws(t,n)}function Ms(i,n,e){if(e&&i.shouldReuseRoute(n.value,e.value.snapshot)){let t=e.value;t._futureSnapshot=n.value;let o=R1(i,n,e);return new xi(t,o)}else{if(i.shouldAttach(n.value)){let r=i.retrieve(n.value);if(r!==null){let a=r.route;return a.value._futureSnapshot=n.value,a.children=n.children.map(s=>Ms(i,s)),a}}let t=F1(n.value),o=n.children.map(r=>Ms(i,r));return new xi(t,o)}}function R1(i,n,e){return n.children.map(t=>{for(let o of e.children)if(i.shouldReuseRoute(t.value,o.value.snapshot))return Ms(i,t,o);return Ms(i,t)})}function F1(i){return new An(new lt(i.url),new lt(i.params),new lt(i.queryParams),new lt(i.fragment),new lt(i.data),i.outlet,i.component,i)}var Fr=class{redirectTo;navigationBehaviorOptions;constructor(n,e){this.redirectTo=n,this.navigationBehaviorOptions=e}},lb="ngNavigationCancelingError";function Uc(i,n){let{redirectTo:e,navigationBehaviorOptions:t}=lo(n)?{redirectTo:n,navigationBehaviorOptions:void 0}:n,o=cb(!1,li.Redirect);return o.url=e,o.navigationBehaviorOptions=t,o}function cb(i,n){let e=new Error(`NavigationCancelingError: ${i||""}`);return e[lb]=!0,e.cancellationCode=n,e}function N1(i){return db(i)&&lo(i.url)}function db(i){return!!i&&i[lb]}var L1=(i,n,e,t)=>A(o=>(new Pp(n,o.targetRouterState,o.currentRouterState,e,t).activate(i),o)),Pp=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(n,e,t,o,r){this.routeReuseStrategy=n,this.futureState=e,this.currState=t,this.forwardEvent=o,this.inputBindingEnabled=r}activate(n){let e=this.futureState._root,t=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,t,n),xp(this.futureState.root),this.activateChildRoutes(e,t,n)}deactivateChildRoutes(n,e,t){let o=Er(e);n.children.forEach(r=>{let a=r.value.outlet;this.deactivateRoutes(r,o[a],t),delete o[a]}),Object.values(o).forEach(r=>{this.deactivateRouteAndItsChildren(r,t)})}deactivateRoutes(n,e,t){let o=n.value,r=e?e.value:null;if(o===r)if(o.component){let a=t.getContext(o.outlet);a&&this.deactivateChildRoutes(n,e,a.children)}else this.deactivateChildRoutes(n,e,t);else r&&this.deactivateRouteAndItsChildren(e,t)}deactivateRouteAndItsChildren(n,e){n.value.component&&this.routeReuseStrategy.shouldDetach(n.value.snapshot)?this.detachAndStoreRouteSubtree(n,e):this.deactivateRouteAndOutlet(n,e)}detachAndStoreRouteSubtree(n,e){let t=e.getContext(n.value.outlet),o=t&&n.value.component?t.children:e,r=Er(n);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);if(t&&t.outlet){let a=t.outlet.detach(),s=t.children.onOutletDeactivated();this.routeReuseStrategy.store(n.value.snapshot,{componentRef:a,route:n,contexts:s})}}deactivateRouteAndOutlet(n,e){let t=e.getContext(n.value.outlet),o=t&&n.value.component?t.children:e,r=Er(n);for(let a of Object.values(r))this.deactivateRouteAndItsChildren(a,o);t&&(t.outlet&&(t.outlet.deactivate(),t.children.onOutletDeactivated()),t.attachRef=null,t.route=null)}activateChildRoutes(n,e,t){let o=Er(e);n.children.forEach(r=>{this.activateRoutes(r,o[r.value.outlet],t),this.forwardEvent(new Vc(r.value.snapshot))}),n.children.length&&this.forwardEvent(new Nc(n.value.snapshot))}activateRoutes(n,e,t){let o=n.value,r=e?e.value:null;if(xp(o),o===r)if(o.component){let a=t.getOrCreateContext(o.outlet);this.activateChildRoutes(n,e,a.children)}else this.activateChildRoutes(n,e,t);else if(o.component){let a=t.getOrCreateContext(o.outlet);if(this.routeReuseStrategy.shouldAttach(o.snapshot)){let s=this.routeReuseStrategy.retrieve(o.snapshot);this.routeReuseStrategy.store(o.snapshot,null),a.children.onOutletReAttached(s.contexts),a.attachRef=s.componentRef,a.route=s.route.value,a.outlet&&a.outlet.attach(s.componentRef,s.route.value),xp(s.route.value),this.activateChildRoutes(n,null,a.children)}else a.attachRef=null,a.route=o,a.outlet&&a.outlet.activateWith(o,a.injector),this.activateChildRoutes(n,null,a.children)}else this.activateChildRoutes(n,null,t)}},Hc=class{path;route;constructor(n){this.path=n,this.route=this.path[this.path.length-1]}},Tr=class{component;route;constructor(n,e){this.component=n,this.route=e}};function V1(i,n,e){let t=i._root,o=n?n._root:null;return _s(t,o,e,[t.value])}function B1(i){let n=i.routeConfig?i.routeConfig.canActivateChild:null;return!n||n.length===0?null:{node:i,guards:n}}function Lr(i,n){let e=Symbol(),t=n.get(i,e);return t===e?typeof i=="function"&&!dg(i)?i:n.get(i):t}function _s(i,n,e,t,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=Er(n);return i.children.forEach(a=>{j1(a,r[a.value.outlet],e,t.concat([a.value]),o),delete r[a.value.outlet]}),Object.entries(r).forEach(([a,s])=>vs(s,e.getContext(a),o)),o}function j1(i,n,e,t,o={canDeactivateChecks:[],canActivateChecks:[]}){let r=i.value,a=n?n.value:null,s=e?e.getContext(i.value.outlet):null;if(a&&r.routeConfig===a.routeConfig){let u=z1(a,r,r.routeConfig.runGuardsAndResolvers);u?o.canActivateChecks.push(new Hc(t)):(r.data=a.data,r._resolvedData=a._resolvedData),r.component?_s(i,n,s?s.children:null,t,o):_s(i,n,e,t,o),u&&s&&s.outlet&&s.outlet.isActivated&&o.canDeactivateChecks.push(new Tr(s.outlet.component,a))}else a&&vs(n,s,o),o.canActivateChecks.push(new Hc(t)),r.component?_s(i,null,s?s.children:null,t,o):_s(i,null,e,t,o);return o}function z1(i,n,e){if(typeof e=="function")return e(i,n);switch(e){case"pathParamsChange":return!Ho(i.url,n.url);case"pathParamsOrQueryParamsChange":return!Ho(i.url,n.url)||!Sn(i.queryParams,n.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Ap(i,n)||!Sn(i.queryParams,n.queryParams);case"paramsChange":default:return!Ap(i,n)}}function vs(i,n,e){let t=Er(i),o=i.value;Object.entries(t).forEach(([r,a])=>{o.component?n?vs(a,n.children.getContext(r),e):vs(a,null,e):vs(a,n,e)}),o.component?n&&n.outlet&&n.outlet.isActivated?e.canDeactivateChecks.push(new Tr(n.outlet.component,o)):e.canDeactivateChecks.push(new Tr(null,o)):e.canDeactivateChecks.push(new Tr(null,o))}function Is(i){return typeof i=="function"}function U1(i){return typeof i=="boolean"}function H1(i){return i&&Is(i.canLoad)}function $1(i){return i&&Is(i.canActivate)}function G1(i){return i&&Is(i.canActivateChild)}function W1(i){return i&&Is(i.canDeactivate)}function Y1(i){return i&&Is(i.canMatch)}function ub(i){return i instanceof tg||i?.name==="EmptyError"}var xc=Symbol("INITIAL_VALUE");function Nr(){return Pe(i=>Ii(i.map(n=>n.pipe(_e(1),ot(xc)))).pipe(A(n=>{for(let e of n)if(e!==!0){if(e===xc)return xc;if(e===!1||q1(e))return e}return!0}),le(n=>n!==xc),_e(1)))}function q1(i){return lo(i)||i instanceof Fr}function K1(i,n){return Ie(e=>{let{targetSnapshot:t,currentSnapshot:o,guards:{canActivateChecks:r,canDeactivateChecks:a}}=e;return a.length===0&&r.length===0?T(O(_({},e),{guardsResult:!0})):Z1(a,t,o,i).pipe(Ie(s=>s&&U1(s)?Q1(t,r,i,n):T(s)),A(s=>O(_({},e),{guardsResult:s})))})}function Z1(i,n,e,t){return kt(i).pipe(Ie(o=>iD(o.component,o.route,e,n,t)),xn(o=>o!==!0,!0))}function Q1(i,n,e,t){return kt(n).pipe(qt(o=>Wl(J1(o.route.parent,t),X1(o.route,t),tD(i,o.path,e),eD(i,o.route,e))),xn(o=>o!==!0,!0))}function X1(i,n){return i!==null&&n&&n(new Lc(i)),T(!0)}function J1(i,n){return i!==null&&n&&n(new Fc(i)),T(!0)}function eD(i,n,e){let t=n.routeConfig?n.routeConfig.canActivate:null;if(!t||t.length===0)return T(!0);let o=t.map(r=>vn(()=>{let a=Os(n)??e,s=Lr(r,a),u=$1(s)?s.canActivate(n,i):Pi(a,()=>s(n,i));return uo(u).pipe(xn())}));return T(o).pipe(Nr())}function tD(i,n,e){let t=n[n.length-1],r=n.slice(0,n.length-1).reverse().map(a=>B1(a)).filter(a=>a!==null).map(a=>vn(()=>{let s=a.guards.map(u=>{let h=Os(a.node)??e,g=Lr(u,h),y=G1(g)?g.canActivateChild(t,i):Pi(h,()=>g(t,i));return uo(y).pipe(xn())});return T(s).pipe(Nr())}));return T(r).pipe(Nr())}function iD(i,n,e,t,o){let r=n&&n.routeConfig?n.routeConfig.canDeactivate:null;if(!r||r.length===0)return T(!0);let a=r.map(s=>{let u=Os(n)??o,h=Lr(s,u),g=W1(h)?h.canDeactivate(i,n,e,t):Pi(u,()=>h(i,n,e,t));return uo(g).pipe(xn())});return T(a).pipe(Nr())}function nD(i,n,e,t){let o=n.canLoad;if(o===void 0||o.length===0)return T(!0);let r=o.map(a=>{let s=Lr(a,i),u=H1(s)?s.canLoad(n,e):Pi(i,()=>s(n,e));return uo(u)});return T(r).pipe(Nr(),mb(t))}function mb(i){return Jf(Ge(n=>{if(typeof n!="boolean")throw Uc(i,n)}),A(n=>n===!0))}function oD(i,n,e,t){let o=n.canMatch;if(!o||o.length===0)return T(!0);let r=o.map(a=>{let s=Lr(a,i),u=Y1(s)?s.canMatch(n,e):Pi(i,()=>s(n,e));return uo(u)});return T(r).pipe(Nr(),mb(t))}var ks=class{segmentGroup;constructor(n){this.segmentGroup=n||null}},Ss=class extends Error{urlTree;constructor(n){super(),this.urlTree=n}};function Sr(i){return tn(new ks(i))}function rD(i){return tn(new be(4e3,!1))}function aD(i){return tn(cb(!1,li.GuardRejected))}var Rp=class{urlSerializer;urlTree;constructor(n,e){this.urlSerializer=n,this.urlTree=e}lineralizeSegments(n,e){let t=[],o=e.root;for(;;){if(t=t.concat(o.segments),o.numberOfChildren===0)return T(t);if(o.numberOfChildren>1||!o.children[we])return rD(`${n.redirectTo}`);o=o.children[we]}}applyRedirectCommands(n,e,t,o,r){if(typeof e!="string"){let s=e,{queryParams:u,fragment:h,routeConfig:g,url:y,outlet:R,params:F,data:H,title:B}=o,J=Pi(r,()=>s({params:F,data:H,queryParams:u,fragment:h,routeConfig:g,url:y,outlet:R,title:B}));if(J instanceof On)throw new Ss(J);e=J}let a=this.applyRedirectCreateUrlTree(e,this.urlSerializer.parse(e),n,t);if(e[0]==="/")throw new Ss(a);return a}applyRedirectCreateUrlTree(n,e,t,o){let r=this.createSegmentGroup(n,e.root,t,o);return new On(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(n,e){let t={};return Object.entries(n).forEach(([o,r])=>{if(typeof r=="string"&&r[0]===":"){let s=r.substring(1);t[o]=e[s]}else t[o]=r}),t}createSegmentGroup(n,e,t,o){let r=this.createSegments(n,e.segments,t,o),a={};return Object.entries(e.children).forEach(([s,u])=>{a[s]=this.createSegmentGroup(n,u,t,o)}),new He(r,a)}createSegments(n,e,t,o){return e.map(r=>r.path[0]===":"?this.findPosParam(n,r,o):this.findOrReturn(r,t))}findPosParam(n,e,t){let o=t[e.path.substring(1)];if(!o)throw new be(4001,!1);return o}findOrReturn(n,e){let t=0;for(let o of e){if(o.path===n.path)return e.splice(t),o;t++}return n}},Fp={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function sD(i,n,e,t,o){let r=pb(i,n,e);return r.matched?(t=T1(n,t),oD(t,n,e,o).pipe(A(a=>a===!0?r:_({},Fp)))):T(r)}function pb(i,n,e){if(n.path==="**")return lD(e);if(n.path==="")return n.pathMatch==="full"&&(i.hasChildren()||e.length>0)?_({},Fp):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let o=(n.matcher||U_)(e,i,n);if(!o)return _({},Fp);let r={};Object.entries(o.posParams??{}).forEach(([s,u])=>{r[s]=u.path});let a=o.consumed.length>0?_(_({},r),o.consumed[o.consumed.length-1].parameters):r;return{matched:!0,consumedSegments:o.consumed,remainingSegments:e.slice(o.consumed.length),parameters:a,positionalParamSegments:o.posParams??{}}}function lD(i){return{matched:!0,parameters:i.length>0?$_(i).parameters:{},consumedSegments:i,remainingSegments:[],positionalParamSegments:{}}}function B_(i,n,e,t){return e.length>0&&uD(i,e,t)?{segmentGroup:new He(n,dD(t,new He(e,i.children))),slicedSegments:[]}:e.length===0&&mD(i,e,t)?{segmentGroup:new He(i.segments,cD(i,e,t,i.children)),slicedSegments:e}:{segmentGroup:new He(i.segments,i.children),slicedSegments:e}}function cD(i,n,e,t){let o={};for(let r of e)if(Gc(i,n,r)&&!t[cn(r)]){let a=new He([],{});o[cn(r)]=a}return _(_({},t),o)}function dD(i,n){let e={};e[we]=n;for(let t of i)if(t.path===""&&cn(t)!==we){let o=new He([],{});e[cn(t)]=o}return e}function uD(i,n,e){return e.some(t=>Gc(i,n,t)&&cn(t)!==we)}function mD(i,n,e){return e.some(t=>Gc(i,n,t))}function Gc(i,n,e){return(i.hasChildren()||n.length>0)&&e.pathMatch==="full"?!1:e.path===""}function pD(i,n,e){return n.length===0&&!i.children[e]}var Np=class{};function hD(i,n,e,t,o,r,a="emptyOnly"){return new Lp(i,n,e,t,o,a,r).recognize()}var fD=31,Lp=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(n,e,t,o,r,a,s){this.injector=n,this.configLoader=e,this.rootComponentType=t,this.config=o,this.urlTree=r,this.paramsInheritanceStrategy=a,this.urlSerializer=s,this.applyRedirects=new Rp(this.urlSerializer,this.urlTree)}noMatchError(n){return new be(4002,`'${n.segmentGroup}'`)}recognize(){let n=B_(this.urlTree.root,[],[],this.config).segmentGroup;return this.match(n).pipe(A(({children:e,rootSnapshot:t})=>{let o=new xi(t,e),r=new Ds("",o),a=J_(t,[],this.urlTree.queryParams,this.urlTree.fragment);return a.queryParams=this.urlTree.queryParams,r.url=this.urlSerializer.serialize(a),{state:r,tree:a}}))}match(n){let e=new $o([],Object.freeze({}),Object.freeze(_({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),we,this.rootComponentType,null,{});return this.processSegmentGroup(this.injector,this.config,n,we,e).pipe(A(t=>({children:t,rootSnapshot:e})),ve(t=>{if(t instanceof Ss)return this.urlTree=t.urlTree,this.match(t.urlTree.root);throw t instanceof ks?this.noMatchError(t):t}))}processSegmentGroup(n,e,t,o,r){return t.segments.length===0&&t.hasChildren()?this.processChildren(n,e,t,r):this.processSegment(n,e,t,t.segments,o,!0,r).pipe(A(a=>a instanceof xi?[a]:[]))}processChildren(n,e,t,o){let r=[];for(let a of Object.keys(t.children))a==="primary"?r.unshift(a):r.push(a);return kt(r).pipe(qt(a=>{let s=t.children[a],u=A1(e,a);return this.processSegmentGroup(n,u,s,a,o)}),hr((a,s)=>(a.push(...s),a)),Em(null),ag(),Ie(a=>{if(a===null)return Sr(t);let s=hb(a);return gD(s),T(s)}))}processSegment(n,e,t,o,r,a,s){return kt(e).pipe(qt(u=>this.processSegmentAgainstRoute(u._injector??n,e,u,t,o,r,a,s).pipe(ve(h=>{if(h instanceof ks)return T(null);throw h}))),xn(u=>!!u),ve(u=>{if(ub(u))return pD(t,o,r)?T(new Np):Sr(t);throw u}))}processSegmentAgainstRoute(n,e,t,o,r,a,s,u){return cn(t)!==a&&(a===we||!Gc(o,r,t))?Sr(o):t.redirectTo===void 0?this.matchSegmentAgainstRoute(n,o,t,r,a,u):this.allowRedirects&&s?this.expandSegmentAgainstRouteUsingRedirect(n,o,e,t,r,a,u):Sr(o)}expandSegmentAgainstRouteUsingRedirect(n,e,t,o,r,a,s){let{matched:u,parameters:h,consumedSegments:g,positionalParamSegments:y,remainingSegments:R}=pb(e,o,r);if(!u)return Sr(e);typeof o.redirectTo=="string"&&o.redirectTo[0]==="/"&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>fD&&(this.allowRedirects=!1));let F=new $o(r,h,Object.freeze(_({},this.urlTree.queryParams)),this.urlTree.fragment,j_(o),cn(o),o.component??o._loadedComponent??null,o,z_(o)),H=zc(F,s,this.paramsInheritanceStrategy);F.params=Object.freeze(H.params),F.data=Object.freeze(H.data);let B=this.applyRedirects.applyRedirectCommands(g,o.redirectTo,y,F,n);return this.applyRedirects.lineralizeSegments(o,B).pipe(Ie(J=>this.processSegment(n,t,e,J.concat(R),a,!1,s)))}matchSegmentAgainstRoute(n,e,t,o,r,a){let s=sD(e,t,o,n,this.urlSerializer);return t.path==="**"&&(e.children={}),s.pipe(Pe(u=>u.matched?(n=t._injector??n,this.getChildConfig(n,t,o).pipe(Pe(({routes:h})=>{let g=t._loadedInjector??n,{parameters:y,consumedSegments:R,remainingSegments:F}=u,H=new $o(R,y,Object.freeze(_({},this.urlTree.queryParams)),this.urlTree.fragment,j_(t),cn(t),t.component??t._loadedComponent??null,t,z_(t)),B=zc(H,a,this.paramsInheritanceStrategy);H.params=Object.freeze(B.params),H.data=Object.freeze(B.data);let{segmentGroup:J,slicedSegments:Fe}=B_(e,R,F,h);if(Fe.length===0&&J.hasChildren())return this.processChildren(g,h,J,H).pipe(A(De=>new xi(H,De)));if(h.length===0&&Fe.length===0)return T(new xi(H,[]));let at=cn(t)===r;return this.processSegment(g,h,J,Fe,at?we:r,!0,H).pipe(A(De=>new xi(H,De instanceof xi?[De]:[])))}))):Sr(e)))}getChildConfig(n,e,t){return e.children?T({routes:e.children,injector:n}):e.loadChildren?e._loadedRoutes!==void 0?T({routes:e._loadedRoutes,injector:e._loadedInjector}):nD(n,e,t,this.urlSerializer).pipe(Ie(o=>o?this.configLoader.loadChildren(n,e).pipe(Ge(r=>{e._loadedRoutes=r.routes,e._loadedInjector=r.injector})):aD(e))):T({routes:[],injector:n})}};function gD(i){i.sort((n,e)=>n.value.outlet===we?-1:e.value.outlet===we?1:n.value.outlet.localeCompare(e.value.outlet))}function _D(i){let n=i.value.routeConfig;return n&&n.path===""}function hb(i){let n=[],e=new Set;for(let t of i){if(!_D(t)){n.push(t);continue}let o=n.find(r=>t.value.routeConfig===r.value.routeConfig);o!==void 0?(o.children.push(...t.children),e.add(o)):n.push(t)}for(let t of e){let o=hb(t.children);n.push(new xi(t.value,o))}return n.filter(t=>!e.has(t))}function j_(i){return i.data||{}}function z_(i){return i.resolve||{}}function bD(i,n,e,t,o,r){return Ie(a=>hD(i,n,e,t,a.extractedUrl,o,r).pipe(A(({state:s,tree:u})=>O(_({},a),{targetSnapshot:s,urlAfterRedirects:u}))))}function vD(i,n){return Ie(e=>{let{targetSnapshot:t,guards:{canActivateChecks:o}}=e;if(!o.length)return T(e);let r=new Set(o.map(u=>u.route)),a=new Set;for(let u of r)if(!a.has(u))for(let h of fb(u))a.add(h);let s=0;return kt(a).pipe(qt(u=>r.has(u)?yD(u,t,i,n):(u.data=zc(u,u.parent,i).resolve,T(void 0))),Ge(()=>s++),Tm(1),Ie(u=>s===a.size?T(e):Rt))})}function fb(i){let n=i.children.map(e=>fb(e)).flat();return[i,...n]}function yD(i,n,e,t){let o=i.routeConfig,r=i._resolve;return o?.title!==void 0&&!ab(o)&&(r[Es]=o.title),CD(r,i,n,t).pipe(A(a=>(i._resolvedData=a,i.data=zc(i,i.parent,e).resolve,null)))}function CD(i,n,e,t){let o=Mp(i);if(o.length===0)return T({});let r={};return kt(o).pipe(Ie(a=>xD(i[a],n,e,t).pipe(xn(),Ge(s=>{if(s instanceof Fr)throw Uc(new so,s);r[a]=s}))),Tm(1),A(()=>r),ve(a=>ub(a)?Rt:tn(a)))}function xD(i,n,e,t){let o=Os(n)??t,r=Lr(i,o),a=r.resolve?r.resolve(n,e):Pi(o,()=>r(n,e));return uo(a)}function wp(i){return Pe(n=>{let e=i(n);return e?kt(e).pipe(A(()=>n)):T(n)})}var Up=(()=>{class i{buildTitle(e){let t,o=e.root;for(;o!==void 0;)t=this.getResolvedTitleForRoute(o)??t,o=o.children.find(r=>r.outlet===we);return t}getResolvedTitleForRoute(e){return e.data[Es]}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:()=>d(gb),providedIn:"root"})}return i})(),gb=(()=>{class i extends Up{title;constructor(e){super(),this.title=e}updateTitle(e){let t=this.buildTitle(e);t!==void 0&&this.title.setTitle(t)}static \u0275fac=function(t){return new(t||i)(N(I_))};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),qo=new v("",{providedIn:"root",factory:()=>({})}),Ko=new v(""),Wc=(()=>{class i{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=d(Vg);loadComponent(e){if(this.componentLoaders.get(e))return this.componentLoaders.get(e);if(e._loadedComponent)return T(e._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(e);let t=uo(e.loadComponent()).pipe(A(bb),Ge(r=>{this.onLoadEndListener&&this.onLoadEndListener(e),e._loadedComponent=r}),Cn(()=>{this.componentLoaders.delete(e)})),o=new Dm(t,()=>new S).pipe(wm());return this.componentLoaders.set(e,o),o}loadChildren(e,t){if(this.childrenLoaders.get(t))return this.childrenLoaders.get(t);if(t._loadedRoutes)return T({routes:t._loadedRoutes,injector:t._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(t);let r=_b(t,this.compiler,e,this.onLoadEndListener).pipe(Cn(()=>{this.childrenLoaders.delete(t)})),a=new Dm(r,()=>new S).pipe(wm());return this.childrenLoaders.set(t,a),a}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function _b(i,n,e,t){return uo(i.loadChildren()).pipe(A(bb),Ie(o=>o instanceof Sg||Array.isArray(o)?T(o):kt(n.compileModuleAsync(o))),A(o=>{t&&t(i);let r,a,s=!1;return Array.isArray(o)?(a=o,s=!0):(r=o.create(e).injector,a=r.get(Ko,[],{optional:!0,self:!0}).flat()),{routes:a.map(zp),injector:r}}))}function wD(i){return i&&typeof i=="object"&&"default"in i}function bb(i){return wD(i)?i.default:i}var Yc=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:()=>d(DD),providedIn:"root"})}return i})(),DD=(()=>{class i{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,t){return e}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Hp=new v(""),$p=new v("");function vb(i,n,e){let t=i.get($p),o=i.get(re);return i.get(K).runOutsideAngular(()=>{if(!o.startViewTransition||t.skipNextTransition)return t.skipNextTransition=!1,new Promise(h=>setTimeout(h));let r,a=new Promise(h=>{r=h}),s=o.startViewTransition(()=>(r(),MD(i))),{onViewTransitionCreated:u}=t;return u&&Pi(i,()=>u({transition:s,from:n,to:e})),a})}function MD(i){return new Promise(n=>{Et({read:()=>setTimeout(n)},{injector:i})})}var Gp=new v(""),qc=(()=>{class i{currentNavigation=null;currentTransition=null;lastSuccessfulNavigation=null;events=new S;transitionAbortSubject=new S;configLoader=d(Wc);environmentInjector=d(ni);destroyRef=d(gr);urlSerializer=d(Wo);rootContexts=d(Yo);location=d(ri);inputBindingEnabled=d(As,{optional:!0})!==null;titleStrategy=d(Up);options=d(qo,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||"emptyOnly";urlHandlingStrategy=d(Yc);createViewTransition=d(Hp,{optional:!0});navigationErrorHandler=d(Gp,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>T(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=o=>this.events.next(new Pc(o)),t=o=>this.events.next(new Rc(o));this.configLoader.onLoadEndListener=t,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let t=++this.navigationId;this.transitions?.next(O(_({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:t}))}setupNavigations(e){return this.transitions=new lt(null),this.transitions.pipe(le(t=>t!==null),Pe(t=>{let o=!1,r=!1;return T(t).pipe(Pe(a=>{if(this.navigationId>t.id)return this.cancelNavigationTransition(t,"",li.SupersededByNewNavigation),Rt;this.currentTransition=t,this.currentNavigation={id:a.id,initialUrl:a.rawUrl,extractedUrl:a.extractedUrl,targetBrowserUrl:typeof a.extras.browserUrl=="string"?this.urlSerializer.parse(a.extras.browserUrl):a.extras.browserUrl,trigger:a.source,extras:a.extras,previousNavigation:this.lastSuccessfulNavigation?O(_({},this.lastSuccessfulNavigation),{previousNavigation:null}):null};let s=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=a.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!s&&u!=="reload"){let h="";return this.events.next(new Tn(a.id,this.urlSerializer.serialize(a.rawUrl),h,Ar.IgnoredSameUrlNavigation)),a.resolve(!1),Rt}if(this.urlHandlingStrategy.shouldProcessUrl(a.rawUrl))return T(a).pipe(Pe(h=>(this.events.next(new co(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),h.id!==this.navigationId?Rt:Promise.resolve(h))),bD(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy),Ge(h=>{t.targetSnapshot=h.targetSnapshot,t.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation=O(_({},this.currentNavigation),{finalUrl:h.urlAfterRedirects});let g=new Cs(h.id,this.urlSerializer.serialize(h.extractedUrl),this.urlSerializer.serialize(h.urlAfterRedirects),h.targetSnapshot);this.events.next(g)}));if(s&&this.urlHandlingStrategy.shouldProcessUrl(a.currentRawUrl)){let{id:h,extractedUrl:g,source:y,restoredState:R,extras:F}=a,H=new co(h,this.urlSerializer.serialize(g),y,R);this.events.next(H);let B=ob(this.rootComponentType).snapshot;return this.currentTransition=t=O(_({},a),{targetSnapshot:B,urlAfterRedirects:g,extras:O(_({},F),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.finalUrl=g,T(t)}else{let h="";return this.events.next(new Tn(a.id,this.urlSerializer.serialize(a.extractedUrl),h,Ar.IgnoredByUrlHandlingStrategy)),a.resolve(!1),Rt}}),Ge(a=>{let s=new Oc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot);this.events.next(s)}),A(a=>(this.currentTransition=t=O(_({},a),{guards:V1(a.targetSnapshot,a.currentSnapshot,this.rootContexts)}),t)),K1(this.environmentInjector,a=>this.events.next(a)),Ge(a=>{if(t.guardsResult=a.guardsResult,a.guardsResult&&typeof a.guardsResult!="boolean")throw Uc(this.urlSerializer,a.guardsResult);let s=new Tc(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects),a.targetSnapshot,!!a.guardsResult);this.events.next(s)}),le(a=>a.guardsResult?!0:(this.cancelNavigationTransition(a,"",li.GuardRejected),!1)),wp(a=>{if(a.guards.canActivateChecks.length!==0)return T(a).pipe(Ge(s=>{let u=new Ac(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(u)}),Pe(s=>{let u=!1;return T(s).pipe(vD(this.paramsInheritanceStrategy,this.environmentInjector),Ge({next:()=>u=!0,complete:()=>{u||this.cancelNavigationTransition(s,"",li.NoDataFromResolver)}}))}),Ge(s=>{let u=new Ic(s.id,this.urlSerializer.serialize(s.extractedUrl),this.urlSerializer.serialize(s.urlAfterRedirects),s.targetSnapshot);this.events.next(u)}))}),wp(a=>{let s=u=>{let h=[];u.routeConfig?.loadComponent&&!u.routeConfig._loadedComponent&&h.push(this.configLoader.loadComponent(u.routeConfig).pipe(Ge(g=>{u.component=g}),A(()=>{})));for(let g of u.children)h.push(...s(g));return h};return Ii(s(a.targetSnapshot.root)).pipe(Em(null),_e(1))}),wp(()=>this.afterPreactivation()),Pe(()=>{let{currentSnapshot:a,targetSnapshot:s}=t,u=this.createViewTransition?.(this.environmentInjector,a.root,s.root);return u?kt(u).pipe(A(()=>t)):T(t)}),A(a=>{let s=P1(e.routeReuseStrategy,a.targetSnapshot,a.currentRouterState);return this.currentTransition=t=O(_({},a),{targetRouterState:s}),this.currentNavigation.targetRouterState=s,t}),Ge(()=>{this.events.next(new xs)}),L1(this.rootContexts,e.routeReuseStrategy,a=>this.events.next(a),this.inputBindingEnabled),_e(1),Ge({next:a=>{o=!0,this.lastSuccessfulNavigation=this.currentNavigation,this.events.next(new Kt(a.id,this.urlSerializer.serialize(a.extractedUrl),this.urlSerializer.serialize(a.urlAfterRedirects))),this.titleStrategy?.updateTitle(a.targetRouterState.snapshot),a.resolve(!0)},complete:()=>{o=!0}}),pe(this.transitionAbortSubject.pipe(Ge(a=>{throw a}))),Cn(()=>{!o&&!r&&this.cancelNavigationTransition(t,"",li.SupersededByNewNavigation),this.currentTransition?.id===t.id&&(this.currentNavigation=null,this.currentTransition=null)}),ve(a=>{if(this.destroyed)return t.resolve(!1),Rt;if(r=!0,db(a))this.events.next(new En(t.id,this.urlSerializer.serialize(t.extractedUrl),a.message,a.cancellationCode)),N1(a)?this.events.next(new Rr(a.url,a.navigationBehaviorOptions)):t.resolve(!1);else{let s=new Ir(t.id,this.urlSerializer.serialize(t.extractedUrl),a,t.targetSnapshot??void 0);try{let u=Pi(this.environmentInjector,()=>this.navigationErrorHandler?.(s));if(u instanceof Fr){let{message:h,cancellationCode:g}=Uc(this.urlSerializer,u);this.events.next(new En(t.id,this.urlSerializer.serialize(t.extractedUrl),h,g)),this.events.next(new Rr(u.redirectTo,u.navigationBehaviorOptions))}else throw this.events.next(s),a}catch(u){this.options.resolveNavigationPromiseOnError?t.resolve(!1):t.reject(u)}}return Rt}))}))}cancelNavigationTransition(e,t,o){let r=new En(e.id,this.urlSerializer.serialize(e.extractedUrl),t,o);this.events.next(r),e.resolve(!1)}isUpdatingInternalState(){return this.currentTransition?.extractedUrl.toString()!==this.currentTransition?.currentUrlTree.toString()}isUpdatedBrowserUrl(){let e=this.urlHandlingStrategy.extract(this.urlSerializer.parse(this.location.path(!0))),t=this.currentNavigation?.targetBrowserUrl??this.currentNavigation?.extractedUrl;return e.toString()!==t?.toString()&&!this.currentNavigation?.extras.skipLocationChange}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function kD(i){return i!==kc}var yb=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:()=>d(SD),providedIn:"root"})}return i})(),$c=class{shouldDetach(n){return!1}store(n,e){}shouldAttach(n){return!1}retrieve(n){return null}shouldReuseRoute(n,e){return n.routeConfig===e.routeConfig}},SD=(()=>{class i extends $c{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ve(i)))(o||i)}})();static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Cb=(()=>{class i{urlSerializer=d(Wo);options=d(qo,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||"replace";location=d(ri);urlHandlingStrategy=d(Yc);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";currentUrlTree=new On;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:t,targetBrowserUrl:o}){let r=e!==void 0?this.urlHandlingStrategy.merge(e,t):t,a=o??r;return a instanceof On?this.urlSerializer.serialize(a):a}commitTransition({targetRouterState:e,finalUrl:t,initialUrl:o}){t&&e?(this.currentUrlTree=t,this.rawUrlTree=this.urlHandlingStrategy.merge(t,o),this.routerState=e):this.rawUrlTree=o}routerState=ob(null);getRouterState(){return this.routerState}stateMemento=this.createStateMemento();updateStateMemento(){this.stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:()=>d(ED),providedIn:"root"})}return i})(),ED=(()=>{class i extends Cb{currentPageId=0;lastSuccessfulId=-1;restoredState(){return this.location.getState()}get browserPageId(){return this.canceledNavigationResolution!=="computed"?this.currentPageId:this.restoredState()?.\u0275routerPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(t=>{t.type==="popstate"&&setTimeout(()=>{e(t.url,t.state,"popstate")})})}handleRouterEvent(e,t){e instanceof co?this.updateStateMemento():e instanceof Tn?this.commitTransition(t):e instanceof Cs?this.urlUpdateStrategy==="eager"&&(t.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(t),t)):e instanceof xs?(this.commitTransition(t),this.urlUpdateStrategy==="deferred"&&!t.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(t),t)):e instanceof En&&(e.code===li.GuardRejected||e.code===li.NoDataFromResolver)?this.restoreHistory(t):e instanceof Ir?this.restoreHistory(t,!0):e instanceof Kt&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,{extras:t,id:o}){let{replaceUrl:r,state:a}=t;if(this.location.isCurrentPathEqualTo(e)||r){let s=this.browserPageId,u=_(_({},a),this.generateNgRouterState(o,s));this.location.replaceState(e,"",u)}else{let s=_(_({},a),this.generateNgRouterState(o,this.browserPageId+1));this.location.go(e,"",s)}}restoreHistory(e,t=!1){if(this.canceledNavigationResolution==="computed"){let o=this.browserPageId,r=this.currentPageId-o;r!==0?this.location.historyGo(r):this.getCurrentUrlTree()===e.finalUrl&&r===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution==="replace"&&(t&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),"",this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,t){return this.canceledNavigationResolution==="computed"?{navigationId:e,\u0275routerPageId:t}:{navigationId:e}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ve(i)))(o||i)}})();static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Kc(i,n){i.events.pipe(le(e=>e instanceof Kt||e instanceof En||e instanceof Ir||e instanceof Tn),A(e=>e instanceof Kt||e instanceof Tn?0:(e instanceof En?e.code===li.Redirect||e.code===li.SupersededByNewNavigation:!1)?2:1),le(e=>e!==2),_e(1)).subscribe(()=>{n()})}var OD={paths:"exact",fragment:"ignored",matrixParams:"ignored",queryParams:"exact"},TD={paths:"subset",fragment:"ignored",matrixParams:"ignored",queryParams:"subset"},$e=(()=>{class i{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=d(Bm);stateManager=d(Cb);options=d(qo,{optional:!0})||{};pendingTasks=d(Ha);urlUpdateStrategy=this.options.urlUpdateStrategy||"deferred";navigationTransitions=d(qc);urlSerializer=d(Wo);location=d(ri);urlHandlingStrategy=d(Yc);_events=new S;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=d(yb);onSameUrlNavigation=this.options.onSameUrlNavigation||"ignore";config=d(Ko,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!d(As,{optional:!0});constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{this.console.warn(e)}}),this.subscribeToNavigationEvents()}eventsSubscription=new ie;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(t=>{try{let o=this.navigationTransitions.currentTransition,r=this.navigationTransitions.currentNavigation;if(o!==null&&r!==null){if(this.stateManager.handleRouterEvent(t,r),t instanceof En&&t.code!==li.Redirect&&t.code!==li.SupersededByNewNavigation)this.navigated=!0;else if(t instanceof Kt)this.navigated=!0;else if(t instanceof Rr){let a=t.navigationBehaviorOptions,s=this.urlHandlingStrategy.merge(t.url,o.currentRawUrl),u=_({browserUrl:o.extras.browserUrl,info:o.extras.info,skipLocationChange:o.extras.skipLocationChange,replaceUrl:o.extras.replaceUrl||this.urlUpdateStrategy==="eager"||kD(o.source)},a);this.scheduleNavigation(s,kc,null,u,{resolve:o.resolve,reject:o.reject,promise:o.promise})}}ID(t)&&this._events.next(t)}catch(o){this.navigationTransitions.transitionAbortSubject.next(o)}});this.eventsSubscription.add(e)}resetRootComponentType(e){this.routerState.root.component=e,this.navigationTransitions.rootComponentType=e}initialNavigation(){this.setUpLocationChangeListener(),this.navigationTransitions.hasRequestedNavigation||this.navigateToSyncWithBrowser(this.location.path(!0),kc,this.stateManager.restoredState())}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,t,o)=>{this.navigateToSyncWithBrowser(e,o,t)})}navigateToSyncWithBrowser(e,t,o){let r={replaceUrl:!0},a=o?.navigationId?o:null;if(o){let u=_({},o);delete u.navigationId,delete u.\u0275routerPageId,Object.keys(u).length!==0&&(r.state=u)}let s=this.parseUrl(e);this.scheduleNavigation(s,t,a,r)}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return this.navigationTransitions.currentNavigation}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(zp),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription&&(this.nonRouterCurrentEntryChangeSubscription.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0),this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,t={}){let{relativeTo:o,queryParams:r,fragment:a,queryParamsHandling:s,preserveFragment:u}=t,h=u?this.currentUrlTree.fragment:a,g=null;switch(s??this.options.defaultQueryParamsHandling){case"merge":g=_(_({},this.currentUrlTree.queryParams),r);break;case"preserve":g=this.currentUrlTree.queryParams;break;default:g=r||null}g!==null&&(g=this.removeEmptyProps(g));let y;try{let R=o?o.snapshot:this.routerState.snapshot.root;y=eb(R)}catch{(typeof e[0]!="string"||e[0][0]!=="/")&&(e=[]),y=this.currentUrlTree.root}return tb(y,e,g,h??null)}navigateByUrl(e,t={skipLocationChange:!1}){let o=lo(e)?e:this.parseUrl(e),r=this.urlHandlingStrategy.merge(o,this.rawUrlTree);return this.scheduleNavigation(r,kc,null,t)}navigate(e,t={skipLocationChange:!1}){return AD(e),this.navigateByUrl(this.createUrlTree(e,t),t)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.urlSerializer.parse("/")}}isActive(e,t){let o;if(t===!0?o=_({},OD):t===!1?o=_({},TD):o=t,lo(e))return F_(this.currentUrlTree,e,o);let r=this.parseUrl(e);return F_(this.currentUrlTree,r,o)}removeEmptyProps(e){return Object.entries(e).reduce((t,[o,r])=>(r!=null&&(t[o]=r),t),{})}scheduleNavigation(e,t,o,r,a){if(this.disposed)return Promise.resolve(!1);let s,u,h;a?(s=a.resolve,u=a.reject,h=a.promise):h=new Promise((y,R)=>{s=y,u=R});let g=this.pendingTasks.add();return Kc(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(g))}),this.navigationTransitions.handleNavigationRequest({source:t,restoredState:o,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:r,resolve:s,reject:u,promise:h,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),h.catch(y=>Promise.reject(y))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function AD(i){for(let n=0;n{class i{router;route;tabIndexAttribute;renderer;el;locationStrategy;href=null;target;queryParams;fragment;queryParamsHandling;state;info;relativeTo;isAnchorElement;subscription;onChanges=new S;constructor(e,t,o,r,a,s){this.router=e,this.route=t,this.tabIndexAttribute=o,this.renderer=r,this.el=a,this.locationStrategy=s;let u=a.nativeElement.tagName?.toLowerCase();this.isAnchorElement=u==="a"||u==="area",this.isAnchorElement?this.subscription=e.events.subscribe(h=>{h instanceof Kt&&this.updateHref()}):this.setTabIndexIfNotOnNativeEl("0")}preserveFragment=!1;skipLocationChange=!1;replaceUrl=!1;setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue("tabindex",e)}ngOnChanges(e){this.isAnchorElement&&this.updateHref(),this.onChanges.next(this)}routerLinkInput=null;set routerLink(e){e==null?(this.routerLinkInput=null,this.setTabIndexIfNotOnNativeEl(null)):(lo(e)?this.routerLinkInput=e:this.routerLinkInput=Array.isArray(e)?e:[e],this.setTabIndexIfNotOnNativeEl("0"))}onClick(e,t,o,r,a){let s=this.urlTree;if(s===null||this.isAnchorElement&&(e!==0||t||o||r||a||typeof this.target=="string"&&this.target!="_self"))return!0;let u={skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info};return this.router.navigateByUrl(s,u),!this.isAnchorElement}ngOnDestroy(){this.subscription?.unsubscribe()}updateHref(){let e=this.urlTree;this.href=e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e)):null;let t=this.href===null?null:Mg(this.href,this.el.nativeElement.tagName.toLowerCase(),"href");this.applyAttributeValue("href",t)}applyAttributeValue(e,t){let o=this.renderer,r=this.el.nativeElement;t!==null?o.setAttribute(r,e,t):o.removeAttribute(r,e)}get urlTree(){return this.routerLinkInput===null?null:lo(this.routerLinkInput)?this.routerLinkInput:this.router.createUrlTree(this.routerLinkInput,{relativeTo:this.relativeTo!==void 0?this.relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,queryParamsHandling:this.queryParamsHandling,preserveFragment:this.preserveFragment})}static \u0275fac=function(t){return new(t||i)(k($e),k(An),Lm("tabindex"),k(tt),k(Z),k(an))};static \u0275dir=z({type:i,selectors:[["","routerLink",""]],hostVars:1,hostBindings:function(t,o){t&1&&b("click",function(a){return o.onClick(a.button,a.ctrlKey,a.shiftKey,a.altKey,a.metaKey)}),t&2&&Y("target",o.target)},inputs:{target:"target",queryParams:"queryParams",fragment:"fragment",queryParamsHandling:"queryParamsHandling",state:"state",info:"info",relativeTo:"relativeTo",preserveFragment:[2,"preserveFragment","preserveFragment",X],skipLocationChange:[2,"skipLocationChange","skipLocationChange",X],replaceUrl:[2,"replaceUrl","replaceUrl",X],routerLink:"routerLink"},features:[Oe]})}return i})(),Yp=(()=>{class i{router;element;renderer;cdr;link;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new L;constructor(e,t,o,r,a){this.router=e,this.element=t,this.renderer=o,this.cdr=r,this.link=a,this.routerEventsSubscription=e.events.subscribe(s=>{s instanceof Kt&&this.update()})}ngAfterContentInit(){T(this.links.changes,T(null)).pipe(Ba()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(t=>!!t).map(t=>t.onChanges);this.linkInputChangesSubscription=kt(e).pipe(Ba()).subscribe(t=>{this._isActive!==this.isLinkActive(this.router)(t)&&this.update()})}set routerLinkActive(e){let t=Array.isArray(e)?e:e.split(" ");this.classes=t.filter(o=>!!o)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(t=>{e?this.renderer.addClass(this.element.nativeElement,t):this.renderer.removeClass(this.element.nativeElement,t)}),e&&this.ariaCurrentWhenActive!==void 0?this.renderer.setAttribute(this.element.nativeElement,"aria-current",this.ariaCurrentWhenActive.toString()):this.renderer.removeAttribute(this.element.nativeElement,"aria-current"),this._isActive!==e&&(this._isActive=e,this.cdr.markForCheck(),this.isActiveChange.emit(e))})}isLinkActive(e){let t=PD(this.routerLinkActiveOptions)?this.routerLinkActiveOptions:this.routerLinkActiveOptions.exact||!1;return o=>{let r=o.urlTree;return r?e.isActive(r,t):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static \u0275fac=function(t){return new(t||i)(k($e),k(Z),k(tt),k(ye),k(Vr,8))};static \u0275dir=z({type:i,selectors:[["","routerLinkActive",""]],contentQueries:function(t,o,r){if(t&1&&it(r,Vr,5),t&2){let a;ee(a=te())&&(o.links=a)}},inputs:{routerLinkActiveOptions:"routerLinkActiveOptions",ariaCurrentWhenActive:"ariaCurrentWhenActive",routerLinkActive:"routerLinkActive"},outputs:{isActiveChange:"isActiveChange"},exportAs:["routerLinkActive"],features:[Oe]})}return i})();function PD(i){return!!i.paths}var Ps=class{};var xb=(()=>{class i{router;injector;preloadingStrategy;loader;subscription;constructor(e,t,o,r){this.router=e,this.injector=t,this.preloadingStrategy=o,this.loader=r}setUpPreloading(){this.subscription=this.router.events.pipe(le(e=>e instanceof Kt),qt(()=>this.preload())).subscribe(()=>{})}preload(){return this.processRoutes(this.injector,this.router.config)}ngOnDestroy(){this.subscription&&this.subscription.unsubscribe()}processRoutes(e,t){let o=[];for(let r of t){r.providers&&!r._injector&&(r._injector=Kl(r.providers,e,`Route: ${r.path}`));let a=r._injector??e,s=r._loadedInjector??a;(r.loadChildren&&!r._loadedRoutes&&r.canLoad===void 0||r.loadComponent&&!r._loadedComponent)&&o.push(this.preloadConfig(a,r)),(r.children||r._loadedRoutes)&&o.push(this.processRoutes(s,r.children??r._loadedRoutes))}return kt(o).pipe(Ba())}preloadConfig(e,t){return this.preloadingStrategy.preload(t,()=>{let o;t.loadChildren&&t.canLoad===void 0?o=this.loader.loadChildren(e,t):o=T(null);let r=o.pipe(Ie(a=>a===null?T(void 0):(t._loadedRoutes=a.routes,t._loadedInjector=a.injector,this.processRoutes(a.injector??e,a.routes))));if(t.loadComponent&&!t._loadedComponent){let a=this.loader.loadComponent(t);return kt([r,a]).pipe(Ba())}else return r})}static \u0275fac=function(t){return new(t||i)(N($e),N(ni),N(Ps),N(Wc))};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),wb=new v(""),RD=(()=>{class i{urlSerializer;transitions;viewportScroller;zone;options;routerEventsSubscription;scrollEventsSubscription;lastId=0;lastSource="imperative";restoredId=0;store={};constructor(e,t,o,r,a={}){this.urlSerializer=e,this.transitions=t,this.viewportScroller=o,this.zone=r,this.options=a,a.scrollPositionRestoration||="disabled",a.anchorScrolling||="disabled"}init(){this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()}createScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof co?(this.store[this.lastId]=this.viewportScroller.getScrollPosition(),this.lastSource=e.navigationTrigger,this.restoredId=e.restoredState?e.restoredState.navigationId:0):e instanceof Kt?(this.lastId=e.id,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.urlAfterRedirects).fragment)):e instanceof Tn&&e.code===Ar.IgnoredSameUrlNavigation&&(this.lastSource=void 0,this.restoredId=0,this.scheduleScrollEvent(e,this.urlSerializer.parse(e.url).fragment))})}consumeScrollEvents(){return this.transitions.events.subscribe(e=>{e instanceof Pr&&(e.position?this.options.scrollPositionRestoration==="top"?this.viewportScroller.scrollToPosition([0,0]):this.options.scrollPositionRestoration==="enabled"&&this.viewportScroller.scrollToPosition(e.position):e.anchor&&this.options.anchorScrolling==="enabled"?this.viewportScroller.scrollToAnchor(e.anchor):this.options.scrollPositionRestoration!=="disabled"&&this.viewportScroller.scrollToPosition([0,0]))})}scheduleScrollEvent(e,t){this.zone.runOutsideAngular(()=>{setTimeout(()=>{this.zone.run(()=>{this.transitions.events.next(new Pr(e,this.lastSource==="popstate"?this.store[this.restoredId]:null,t))})},0)})}ngOnDestroy(){this.routerEventsSubscription?.unsubscribe(),this.scrollEventsSubscription?.unsubscribe()}static \u0275fac=function(t){Cr()};static \u0275prov=D({token:i,factory:i.\u0275fac})}return i})();function qp(i,...n){return ii([{provide:Ko,multi:!0,useValue:i},[],{provide:An,useFactory:Db,deps:[$e]},{provide:qa,multi:!0,useFactory:Mb},n.map(e=>e.\u0275providers)])}function Db(i){return i.routerState.root}function Rs(i,n){return{\u0275kind:i,\u0275providers:n}}function Mb(){let i=d(ce);return n=>{let e=i.get(wn);if(n!==e.components[0])return;let t=i.get($e),o=i.get(kb);i.get(Kp)===1&&t.initialNavigation(),i.get(Ob,null,Pm.Optional)?.setUpPreloading(),i.get(wb,null,Pm.Optional)?.init(),t.resetRootComponentType(e.componentTypes[0]),o.closed||(o.next(),o.complete(),o.unsubscribe())}}var kb=new v("",{factory:()=>new S}),Kp=new v("",{providedIn:"root",factory:()=>1});function Sb(){let i=[{provide:Kp,useValue:0},jm(()=>{let n=d(ce);return n.get(Gm,Promise.resolve()).then(()=>new Promise(t=>{let o=n.get($e),r=n.get(kb);Kc(o,()=>{t(!0)}),n.get(qc).afterPreactivation=()=>(t(!0),r.closed?T(void 0):r),o.initialNavigation()}))})];return Rs(2,i)}function Eb(){let i=[jm(()=>{d($e).setUpLocationChangeListener()}),{provide:Kp,useValue:2}];return Rs(3,i)}var Ob=new v("");function Tb(i){return Rs(0,[{provide:Ob,useExisting:xb},{provide:Ps,useExisting:i}])}function Zc(){return Rs(8,[Bp,{provide:As,useExisting:Bp}])}function Ab(i){No("NgRouterViewTransitions");let n=[{provide:Hp,useValue:vb},{provide:$p,useValue:_({skipNextTransition:!!i?.skipInitialTransition},i)}];return Rs(9,n)}var Ib=[ri,{provide:Wo,useClass:so},$e,Yo,{provide:An,useFactory:Db,deps:[$e]},Wc,[]],Zp=(()=>{class i{constructor(){}static forRoot(e,t){return{ngModule:i,providers:[Ib,[],{provide:Ko,multi:!0,useValue:e},[],t?.errorHandler?{provide:Gp,useValue:t.errorHandler}:[],{provide:qo,useValue:t||{}},t?.useHash?ND():LD(),FD(),t?.preloadingStrategy?Tb(t.preloadingStrategy).\u0275providers:[],t?.initialNavigation?VD(t):[],t?.bindToComponentInputs?Zc().\u0275providers:[],t?.enableViewTransitions?Ab().\u0275providers:[],BD()]}}static forChild(e){return{ngModule:i,providers:[{provide:Ko,multi:!0,useValue:e}]}}static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({})}return i})();function FD(){return{provide:wb,useFactory:()=>{let i=d(c_),n=d(K),e=d(qo),t=d(qc),o=d(Wo);return e.scrollOffset&&i.setOffset(e.scrollOffset),new RD(o,t,i,n,e)}}}function ND(){return{provide:an,useClass:Xm}}function LD(){return{provide:an,useClass:ec}}function VD(i){return[i.initialNavigation==="disabled"?Eb().\u0275providers:[],i.initialNavigation==="enabledBlocking"?Sb().\u0275providers:[]]}var Wp=new v("");function BD(){return[{provide:Wp,useFactory:Mb},{provide:qa,multi:!0,useExisting:Wp}]}var Qc;function jD(){if(Qc===void 0&&(Qc=null,typeof window<"u")){let i=window;i.trustedTypes!==void 0&&(Qc=i.trustedTypes.createPolicy("angular#components",{createHTML:n=>n}))}return Qc}function Fs(i){return jD()?.createHTML(i)||i}function Pb(i){return Error(`Unable to find icon with the name "${i}"`)}function zD(){return Error("Could not find HttpClient for use with Angular Material icons. Please add provideHttpClient() to your providers.")}function Rb(i){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${i}".`)}function Fb(i){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${i}".`)}var Xn=class{url;svgText;options;svgElement;constructor(n,e,t){this.url=n,this.svgText=e,this.options=t}},Lb=(()=>{class i{_httpClient;_sanitizer;_errorHandler;_document;_svgIconConfigs=new Map;_iconSetConfigs=new Map;_cachedIconsByUrl=new Map;_inProgressUrlFetches=new Map;_fontCssClassesByAlias=new Map;_resolvers=[];_defaultFontSetClass=["material-icons","mat-ligature-font"];constructor(e,t,o,r){this._httpClient=e,this._sanitizer=t,this._errorHandler=r,this._document=o}addSvgIcon(e,t,o){return this.addSvgIconInNamespace("",e,t,o)}addSvgIconLiteral(e,t,o){return this.addSvgIconLiteralInNamespace("",e,t,o)}addSvgIconInNamespace(e,t,o,r){return this._addSvgIconConfig(e,t,new Xn(o,null,r))}addSvgIconResolver(e){return this._resolvers.push(e),this}addSvgIconLiteralInNamespace(e,t,o,r){let a=this._sanitizer.sanitize(_i.HTML,o);if(!a)throw Fb(o);let s=Fs(a);return this._addSvgIconConfig(e,t,new Xn("",s,r))}addSvgIconSet(e,t){return this.addSvgIconSetInNamespace("",e,t)}addSvgIconSetLiteral(e,t){return this.addSvgIconSetLiteralInNamespace("",e,t)}addSvgIconSetInNamespace(e,t,o){return this._addSvgIconSetConfig(e,new Xn(t,null,o))}addSvgIconSetLiteralInNamespace(e,t,o){let r=this._sanitizer.sanitize(_i.HTML,t);if(!r)throw Fb(t);let a=Fs(r);return this._addSvgIconSetConfig(e,new Xn("",a,o))}registerFontClassAlias(e,t=e){return this._fontCssClassesByAlias.set(e,t),this}classNameForFontAlias(e){return this._fontCssClassesByAlias.get(e)||e}setDefaultFontSetClass(...e){return this._defaultFontSetClass=e,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(e){let t=this._sanitizer.sanitize(_i.RESOURCE_URL,e);if(!t)throw Rb(e);let o=this._cachedIconsByUrl.get(t);return o?T(Xc(o)):this._loadSvgIconFromConfig(new Xn(e,null)).pipe(Ge(r=>this._cachedIconsByUrl.set(t,r)),A(r=>Xc(r)))}getNamedSvgIcon(e,t=""){let o=Nb(t,e),r=this._svgIconConfigs.get(o);if(r)return this._getSvgFromConfig(r);if(r=this._getIconConfigFromResolvers(t,e),r)return this._svgIconConfigs.set(o,r),this._getSvgFromConfig(r);let a=this._iconSetConfigs.get(t);return a?this._getSvgFromIconSetConfigs(e,a):tn(Pb(o))}ngOnDestroy(){this._resolvers=[],this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(e){return e.svgText?T(Xc(this._svgElementFromConfig(e))):this._loadSvgIconFromConfig(e).pipe(A(t=>Xc(t)))}_getSvgFromIconSetConfigs(e,t){let o=this._extractIconWithNameFromAnySet(e,t);if(o)return T(o);let r=t.filter(a=>!a.svgText).map(a=>this._loadSvgIconSetFromConfig(a).pipe(ve(s=>{let h=`Loading icon set URL: ${this._sanitizer.sanitize(_i.RESOURCE_URL,a.url)} failed: ${s.message}`;return this._errorHandler.handleError(new Error(h)),T(null)})));return pr(r).pipe(A(()=>{let a=this._extractIconWithNameFromAnySet(e,t);if(!a)throw Pb(e);return a}))}_extractIconWithNameFromAnySet(e,t){for(let o=t.length-1;o>=0;o--){let r=t[o];if(r.svgText&&r.svgText.toString().indexOf(e)>-1){let a=this._svgElementFromConfig(r),s=this._extractSvgIconFromSet(a,e,r.options);if(s)return s}}return null}_loadSvgIconFromConfig(e){return this._fetchIcon(e).pipe(Ge(t=>e.svgText=t),A(()=>this._svgElementFromConfig(e)))}_loadSvgIconSetFromConfig(e){return e.svgText?T(null):this._fetchIcon(e).pipe(Ge(t=>e.svgText=t))}_extractSvgIconFromSet(e,t,o){let r=e.querySelector(`[id="${t}"]`);if(!r)return null;let a=r.cloneNode(!0);if(a.removeAttribute("id"),a.nodeName.toLowerCase()==="svg")return this._setSvgAttributes(a,o);if(a.nodeName.toLowerCase()==="symbol")return this._setSvgAttributes(this._toSvgElement(a),o);let s=this._svgElementFromString(Fs(""));return s.appendChild(a),this._setSvgAttributes(s,o)}_svgElementFromString(e){let t=this._document.createElement("DIV");t.innerHTML=e;let o=t.querySelector("svg");if(!o)throw Error(" tag not found");return o}_toSvgElement(e){let t=this._svgElementFromString(Fs("")),o=e.attributes;for(let r=0;rFs(h)),Cn(()=>this._inProgressUrlFetches.delete(a)),Yl());return this._inProgressUrlFetches.set(a,u),u}_addSvgIconConfig(e,t,o){return this._svgIconConfigs.set(Nb(e,t),o),this}_addSvgIconSetConfig(e,t){let o=this._iconSetConfigs.get(e);return o?o.push(t):this._iconSetConfigs.set(e,[t]),this}_svgElementFromConfig(e){if(!e.svgElement){let t=this._svgElementFromString(e.svgText);this._setSvgAttributes(t,e.options),e.svgElement=t}return e.svgElement}_getIconConfigFromResolvers(e,t){for(let o=0;o19||r===19&&a>0||r===0&&a===0?i.listen(n,e,t,o):(n.addEventListener(e,t,o),()=>{n.removeEventListener(e,t,o)})}var Xp;try{Xp=typeof Intl<"u"&&Intl.v8BreakIterator}catch{Xp=!1}var Se=(()=>{class i{_platformId=d(Fi);isBrowser=this._platformId?qn(this._platformId):typeof document=="object"&&!!document;EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent);TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent);BLINK=this.isBrowser&&!!(window.chrome||Xp)&&typeof CSS<"u"&&!this.EDGE&&!this.TRIDENT;WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT;IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window);FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent);ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT;SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT;constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Ns;function Bb(){if(Ns==null&&typeof window<"u")try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Ns=!0}))}finally{Ns=Ns||!1}return Ns}function po(i){return Bb()?i:!!i.capture}function Ut(i,n=0){return Jc(i)?Number(i):arguments.length===2?n:0}function Jc(i){return!isNaN(parseFloat(i))&&!isNaN(Number(i))}function ct(i){return i instanceof Z?i.nativeElement:i}var jb=new v("cdk-input-modality-detector-options"),zb={ignoreKeys:[18,17,224,91,16]},Ub=650,Jp={passive:!0,capture:!0},Hb=(()=>{class i{_platform=d(Se);_listenerCleanups;modalityDetected;modalityChanged;get mostRecentModality(){return this._modality.value}_mostRecentTarget=null;_modality=new lt(null);_options;_lastTouchMs=0;_onKeydown=e=>{this._options?.ignoreKeys?.some(t=>t===e.keyCode)||(this._modality.next("keyboard"),this._mostRecentTarget=wt(e))};_onMousedown=e=>{Date.now()-this._lastTouchMs{if(eo(e)){this._modality.next("keyboard");return}this._lastTouchMs=Date.now(),this._modality.next("touch"),this._mostRecentTarget=wt(e)};constructor(){let e=d(K),t=d(re),o=d(jb,{optional:!0});if(this._options=_(_({},zb),o),this.modalityDetected=this._modality.pipe(fr(1)),this.modalityChanged=this.modalityDetected.pipe(Po()),this._platform.isBrowser){let r=d(yt).createRenderer(null,null);this._listenerCleanups=e.runOutsideAngular(()=>[Ue(r,t,"keydown",this._onKeydown,Jp),Ue(r,t,"mousedown",this._onMousedown,Jp),Ue(r,t,"touchstart",this._onTouchstart,Jp)])}}ngOnDestroy(){this._modality.complete(),this._listenerCleanups?.forEach(e=>e())}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Ls=function(i){return i[i.IMMEDIATE=0]="IMMEDIATE",i[i.EVENTUAL=1]="EVENTUAL",i}(Ls||{}),$b=new v("cdk-focus-monitor-default-options"),ed=po({passive:!0,capture:!0}),un=(()=>{class i{_ngZone=d(K);_platform=d(Se);_inputModalityDetector=d(Hb);_origin=null;_lastFocusOrigin;_windowFocused=!1;_windowFocusTimeoutId;_originTimeoutId;_originFromTouchInteraction=!1;_elementInfo=new Map;_monitoredElementCount=0;_rootNodeFocusListenerCount=new Map;_detectionMode;_windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)};_document=d(re,{optional:!0});_stopInputModalityDetector=new S;constructor(){let e=d($b,{optional:!0});this._detectionMode=e?.detectionMode||Ls.IMMEDIATE}_rootNodeFocusAndBlurListener=e=>{let t=wt(e);for(let o=t;o;o=o.parentElement)e.type==="focus"?this._onFocus(e,o):this._onBlur(e,o)};monitor(e,t=!1){let o=ct(e);if(!this._platform.isBrowser||o.nodeType!==1)return T();let r=Zo(o)||this._getDocument(),a=this._elementInfo.get(o);if(a)return t&&(a.checkChildren=!0),a.subject;let s={checkChildren:t,subject:new S,rootNode:r};return this._elementInfo.set(o,s),this._registerGlobalListeners(s),s.subject}stopMonitoring(e){let t=ct(e),o=this._elementInfo.get(t);o&&(o.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._removeGlobalListeners(o))}focusVia(e,t,o){let r=ct(e),a=this._getDocument().activeElement;r===a?this._getClosestElementsInfo(r).forEach(([s,u])=>this._originChanged(s,t,u)):(this._setOrigin(t),typeof r.focus=="function"&&r.focus(o))}ngOnDestroy(){this._elementInfo.forEach((e,t)=>this.stopMonitoring(t))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_getFocusOrigin(e){return this._origin?this._originFromTouchInteraction?this._shouldBeAttributedToTouch(e)?"touch":"program":this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:e&&this._isLastInteractionFromInputLabel(e)?"mouse":"program"}_shouldBeAttributedToTouch(e){return this._detectionMode===Ls.EVENTUAL||!!e?.contains(this._inputModalityDetector._mostRecentTarget)}_setClasses(e,t){e.classList.toggle("cdk-focused",!!t),e.classList.toggle("cdk-touch-focused",t==="touch"),e.classList.toggle("cdk-keyboard-focused",t==="keyboard"),e.classList.toggle("cdk-mouse-focused",t==="mouse"),e.classList.toggle("cdk-program-focused",t==="program")}_setOrigin(e,t=!1){this._ngZone.runOutsideAngular(()=>{if(this._origin=e,this._originFromTouchInteraction=e==="touch"&&t,this._detectionMode===Ls.IMMEDIATE){clearTimeout(this._originTimeoutId);let o=this._originFromTouchInteraction?Ub:1;this._originTimeoutId=setTimeout(()=>this._origin=null,o)}})}_onFocus(e,t){let o=this._elementInfo.get(t),r=wt(e);!o||!o.checkChildren&&t!==r||this._originChanged(t,this._getFocusOrigin(r),o)}_onBlur(e,t){let o=this._elementInfo.get(t);!o||o.checkChildren&&e.relatedTarget instanceof Node&&t.contains(e.relatedTarget)||(this._setClasses(t),this._emitOrigin(o,null))}_emitOrigin(e,t){e.subject.observers.length&&this._ngZone.run(()=>e.subject.next(t))}_registerGlobalListeners(e){if(!this._platform.isBrowser)return;let t=e.rootNode,o=this._rootNodeFocusListenerCount.get(t)||0;o||this._ngZone.runOutsideAngular(()=>{t.addEventListener("focus",this._rootNodeFocusAndBlurListener,ed),t.addEventListener("blur",this._rootNodeFocusAndBlurListener,ed)}),this._rootNodeFocusListenerCount.set(t,o+1),++this._monitoredElementCount===1&&(this._ngZone.runOutsideAngular(()=>{this._getWindow().addEventListener("focus",this._windowFocusListener)}),this._inputModalityDetector.modalityDetected.pipe(pe(this._stopInputModalityDetector)).subscribe(r=>{this._setOrigin(r,!0)}))}_removeGlobalListeners(e){let t=e.rootNode;if(this._rootNodeFocusListenerCount.has(t)){let o=this._rootNodeFocusListenerCount.get(t);o>1?this._rootNodeFocusListenerCount.set(t,o-1):(t.removeEventListener("focus",this._rootNodeFocusAndBlurListener,ed),t.removeEventListener("blur",this._rootNodeFocusAndBlurListener,ed),this._rootNodeFocusListenerCount.delete(t))}--this._monitoredElementCount||(this._getWindow().removeEventListener("focus",this._windowFocusListener),this._stopInputModalityDetector.next(),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._originTimeoutId))}_originChanged(e,t,o){this._setClasses(e,t),this._emitOrigin(o,t),this._lastFocusOrigin=t}_getClosestElementsInfo(e){let t=[];return this._elementInfo.forEach((o,r)=>{(r===e||o.checkChildren&&r.contains(e))&&t.push([r,o])}),t}_isLastInteractionFromInputLabel(e){let{_mostRecentTarget:t,mostRecentModality:o}=this._inputModalityDetector;if(o!=="mouse"||!t||t===e||e.nodeName!=="INPUT"&&e.nodeName!=="TEXTAREA"||e.disabled)return!1;let r=e.labels;if(r){for(let a=0;a{class i{_elementRef=d(Z);_focusMonitor=d(un);_monitorSubscription;_focusOrigin=null;cdkFocusChange=new L;constructor(){}get focusOrigin(){return this._focusOrigin}ngAfterViewInit(){let e=this._elementRef.nativeElement;this._monitorSubscription=this._focusMonitor.monitor(e,e.nodeType===1&&e.hasAttribute("cdkMonitorSubtreeFocus")).subscribe(t=>{this._focusOrigin=t,this.cdkFocusChange.emit(t)})}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._monitorSubscription&&this._monitorSubscription.unsubscribe()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","cdkMonitorElementFocus",""],["","cdkMonitorSubtreeFocus",""]],outputs:{cdkFocusChange:"cdkFocusChange"},exportAs:["cdkMonitorFocus"]})}return i})();var td=new WeakMap,We=(()=>{class i{_appRef;_injector=d(ce);_environmentInjector=d(ni);load(e){let t=this._appRef=this._appRef||this._injector.get(wn),o=td.get(t);o||(o={loaders:new Set,refs:[]},td.set(t,o),t.onDestroy(()=>{td.get(t)?.refs.forEach(r=>r.destroy()),td.delete(t)})),o.loaders.has(e)||(o.loaders.add(e),o.refs.push(Ql(e,{environmentInjector:this._environmentInjector})))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var In=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["ng-component"]],exportAs:["cdkVisuallyHidden"],decls:0,vars:0,template:function(t,o){},styles:[`.cdk-visually-hidden{border:0;clip:rect(0 0 0 0);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;width:1px;white-space:nowrap;outline:0;-webkit-appearance:none;-moz-appearance:none;left:0}[dir=rtl] .cdk-visually-hidden{left:auto;right:0} -`],encapsulation:2,changeDetection:0})}return i})();function ho(i){return Array.isArray(i)?i:[i]}var Gb=new Set,Qo,Yb=(()=>{class i{_platform=d(Se);_nonce=d(Ga,{optional:!0});_matchMedia;constructor(){this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):$D}matchMedia(e){return(this._platform.WEBKIT||this._platform.BLINK)&&HD(e,this._nonce),this._matchMedia(e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function HD(i,n){if(!Gb.has(i))try{Qo||(Qo=document.createElement("style"),n&&Qo.setAttribute("nonce",n),Qo.setAttribute("type","text/css"),document.head.appendChild(Qo)),Qo.sheet&&(Qo.sheet.insertRule(`@media ${i} {body{ }}`,0),Gb.add(i))}catch(e){console.error(e)}}function $D(i){return{matches:i==="all"||i==="",media:i,addListener:()=>{},removeListener:()=>{}}}var Vs=(()=>{class i{_mediaMatcher=d(Yb);_zone=d(K);_queries=new Map;_destroySubject=new S;constructor(){}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(e){return Wb(ho(e)).some(o=>this._registerQuery(o).mql.matches)}observe(e){let o=Wb(ho(e)).map(a=>this._registerQuery(a).observable),r=Ii(o);return r=Wl(r.pipe(_e(1)),r.pipe(fr(1),yn(0))),r.pipe(A(a=>{let s={matches:!1,breakpoints:{}};return a.forEach(({matches:u,query:h})=>{s.matches=s.matches||u,s.breakpoints[h]=u}),s}))}_registerQuery(e){if(this._queries.has(e))return this._queries.get(e);let t=this._mediaMatcher.matchMedia(e),r={observable:new mt(a=>{let s=u=>this._zone.run(()=>a.next(u));return t.addListener(s),()=>{t.removeListener(s)}}).pipe(ot(t),A(({matches:a})=>({query:e,matches:a})),pe(this._destroySubject)),mql:t};return this._queries.set(e,r),r}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function Wb(i){return i.map(n=>n.split(",")).reduce((n,e)=>n.concat(e)).map(n=>n.trim())}function GD(i){if(i.type==="characterData"&&i.target instanceof Comment)return!0;if(i.type==="childList"){for(let n=0;n{class i{create(e){return typeof MutationObserver>"u"?null:new MutationObserver(e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Kb=(()=>{class i{_mutationObserverFactory=d(qb);_observedElements=new Map;_ngZone=d(K);constructor(){}ngOnDestroy(){this._observedElements.forEach((e,t)=>this._cleanupObserver(t))}observe(e){let t=ct(e);return new mt(o=>{let a=this._observeElement(t).pipe(A(s=>s.filter(u=>!GD(u))),le(s=>!!s.length)).subscribe(s=>{this._ngZone.run(()=>{o.next(s)})});return()=>{a.unsubscribe(),this._unobserveElement(t)}})}_observeElement(e){return this._ngZone.runOutsideAngular(()=>{if(this._observedElements.has(e))this._observedElements.get(e).count++;else{let t=new S,o=this._mutationObserverFactory.create(r=>t.next(r));o&&o.observe(e,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(e,{observer:o,stream:t,count:1})}return this._observedElements.get(e).stream})}_unobserveElement(e){this._observedElements.has(e)&&(this._observedElements.get(e).count--,this._observedElements.get(e).count||this._cleanupObserver(e))}_cleanupObserver(e){if(this._observedElements.has(e)){let{observer:t,stream:o}=this._observedElements.get(e);t&&t.disconnect(),o.complete(),this._observedElements.delete(e)}}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Zb=(()=>{class i{_contentObserver=d(Kb);_elementRef=d(Z);event=new L;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._disabled?this._unsubscribe():this._subscribe()}_disabled=!1;get debounce(){return this._debounce}set debounce(e){this._debounce=Ut(e),this._subscribe()}_debounce;_currentSubscription=null;constructor(){}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();let e=this._contentObserver.observe(this._elementRef);this._currentSubscription=(this.debounce?e.pipe(yn(this.debounce)):e).subscribe(this.event)}_unsubscribe(){this._currentSubscription?.unsubscribe()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","cdkObserveContent",""]],inputs:{disabled:[2,"cdkObserveContentDisabled","disabled",X],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]})}return i})(),Br=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({providers:[qb]})}return i})();var nh=(()=>{class i{_platform=d(Se);constructor(){}isDisabled(e){return e.hasAttribute("disabled")}isVisible(e){return YD(e)&&getComputedStyle(e).visibility==="visible"}isTabbable(e){if(!this._platform.isBrowser)return!1;let t=WD(tM(e));if(t&&(Qb(t)===-1||!this.isVisible(t)))return!1;let o=e.nodeName.toLowerCase(),r=Qb(e);return e.hasAttribute("contenteditable")?r!==-1:o==="iframe"||o==="object"||this._platform.WEBKIT&&this._platform.IOS&&!JD(e)?!1:o==="audio"?e.hasAttribute("controls")?r!==-1:!1:o==="video"?r===-1?!1:r!==null?!0:this._platform.FIREFOX||e.hasAttribute("controls"):e.tabIndex>=0}isFocusable(e,t){return eM(e)&&!this.isDisabled(e)&&(t?.ignoreVisibility||this.isVisible(e))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function WD(i){try{return i.frameElement}catch{return null}}function YD(i){return!!(i.offsetWidth||i.offsetHeight||typeof i.getClientRects=="function"&&i.getClientRects().length)}function qD(i){let n=i.nodeName.toLowerCase();return n==="input"||n==="select"||n==="button"||n==="textarea"}function KD(i){return QD(i)&&i.type=="hidden"}function ZD(i){return XD(i)&&i.hasAttribute("href")}function QD(i){return i.nodeName.toLowerCase()=="input"}function XD(i){return i.nodeName.toLowerCase()=="a"}function ev(i){if(!i.hasAttribute("tabindex")||i.tabIndex===void 0)return!1;let n=i.getAttribute("tabindex");return!!(n&&!isNaN(parseInt(n,10)))}function Qb(i){if(!ev(i))return null;let n=parseInt(i.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}function JD(i){let n=i.nodeName.toLowerCase(),e=n==="input"&&i.type;return e==="text"||e==="password"||n==="select"||n==="textarea"}function eM(i){return KD(i)?!1:qD(i)||ZD(i)||i.hasAttribute("contenteditable")||ev(i)}function tM(i){return i.ownerDocument&&i.ownerDocument.defaultView||window}var ih=class{_element;_checker;_ngZone;_document;_injector;_startAnchor;_endAnchor;_hasAttached=!1;startAnchorListener=()=>this.focusLastTabbableElement();endAnchorListener=()=>this.focusFirstTabbableElement();get enabled(){return this._enabled}set enabled(n){this._enabled=n,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_enabled=!0;constructor(n,e,t,o,r=!1,a){this._element=n,this._checker=e,this._ngZone=t,this._document=o,this._injector=a,r||this.attachAnchors()}destroy(){let n=this._startAnchor,e=this._endAnchor;n&&(n.removeEventListener("focus",this.startAnchorListener),n.remove()),e&&(e.removeEventListener("focus",this.endAnchorListener),e.remove()),this._startAnchor=this._endAnchor=null,this._hasAttached=!1}attachAnchors(){return this._hasAttached?!0:(this._ngZone.runOutsideAngular(()=>{this._startAnchor||(this._startAnchor=this._createAnchor(),this._startAnchor.addEventListener("focus",this.startAnchorListener)),this._endAnchor||(this._endAnchor=this._createAnchor(),this._endAnchor.addEventListener("focus",this.endAnchorListener))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)}focusInitialElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusInitialElement(n)))})}focusFirstTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusFirstTabbableElement(n)))})}focusLastTabbableElementWhenReady(n){return new Promise(e=>{this._executeOnStable(()=>e(this.focusLastTabbableElement(n)))})}_getRegionBoundary(n){let e=this._element.querySelectorAll(`[cdk-focus-region-${n}], [cdkFocusRegion${n}], [cdk-focus-${n}]`);return n=="start"?e.length?e[0]:this._getFirstTabbableElement(this._element):e.length?e[e.length-1]:this._getLastTabbableElement(this._element)}focusInitialElement(n){let e=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");if(e){if(!this._checker.isFocusable(e)){let t=this._getFirstTabbableElement(e);return t?.focus(n),!!t}return e.focus(n),!0}return this.focusFirstTabbableElement(n)}focusFirstTabbableElement(n){let e=this._getRegionBoundary("start");return e&&e.focus(n),!!e}focusLastTabbableElement(n){let e=this._getRegionBoundary("end");return e&&e.focus(n),!!e}hasAttached(){return this._hasAttached}_getFirstTabbableElement(n){if(this._checker.isFocusable(n)&&this._checker.isTabbable(n))return n;let e=n.children;for(let t=0;t=0;t--){let o=e[t].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[t]):null;if(o)return o}return null}_createAnchor(){let n=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,n),n.classList.add("cdk-visually-hidden"),n.classList.add("cdk-focus-trap-anchor"),n.setAttribute("aria-hidden","true"),n}_toggleAnchorTabIndex(n,e){n?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")}toggleAnchors(n){this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(n,this._startAnchor),this._toggleAnchorTabIndex(n,this._endAnchor))}_executeOnStable(n){this._injector?Et(n,{injector:this._injector}):setTimeout(n)}},id=(()=>{class i{_checker=d(nh);_ngZone=d(K);_document=d(re);_injector=d(ce);constructor(){d(We).load(In)}create(e,t=!1){return new ih(e,this._checker,this._ngZone,this._document,t,this._injector)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),oh=(()=>{class i{_elementRef=d(Z);_focusTrapFactory=d(id);focusTrap;_previouslyFocusedElement=null;get enabled(){return this.focusTrap?.enabled||!1}set enabled(e){this.focusTrap&&(this.focusTrap.enabled=e)}autoCapture;constructor(){d(Se).isBrowser&&(this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0))}ngOnDestroy(){this.focusTrap?.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)}ngAfterContentInit(){this.focusTrap?.attachAnchors(),this.autoCapture&&this._captureFocus()}ngDoCheck(){this.focusTrap&&!this.focusTrap.hasAttached()&&this.focusTrap.attachAnchors()}ngOnChanges(e){let t=e.autoCapture;t&&!t.firstChange&&this.autoCapture&&this.focusTrap?.hasAttached()&&this._captureFocus()}_captureFocus(){this._previouslyFocusedElement=dn(),this.focusTrap?.focusInitialElementWhenReady()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:[2,"cdkTrapFocus","enabled",X],autoCapture:[2,"cdkTrapFocusAutoCapture","autoCapture",X]},exportAs:["cdkTrapFocus"],features:[Oe]})}return i})(),tv=new v("liveAnnouncerElement",{providedIn:"root",factory:iv});function iv(){return null}var nv=new v("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),iM=0,Bs=(()=>{class i{_ngZone=d(K);_defaultOptions=d(nv,{optional:!0});_liveElement;_document=d(re);_previousTimeout;_currentPromise;_currentResolve;constructor(){let e=d(tv,{optional:!0});this._liveElement=e||this._createLiveElement()}announce(e,...t){let o=this._defaultOptions,r,a;return t.length===1&&typeof t[0]=="number"?a=t[0]:[r,a]=t,this.clear(),clearTimeout(this._previousTimeout),r||(r=o&&o.politeness?o.politeness:"polite"),a==null&&o&&(a=o.duration),this._liveElement.setAttribute("aria-live",r),this._liveElement.id&&this._exposeAnnouncerToModals(this._liveElement.id),this._ngZone.runOutsideAngular(()=>(this._currentPromise||(this._currentPromise=new Promise(s=>this._currentResolve=s)),clearTimeout(this._previousTimeout),this._previousTimeout=setTimeout(()=>{this._liveElement.textContent=e,typeof a=="number"&&(this._previousTimeout=setTimeout(()=>this.clear(),a)),this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0},100),this._currentPromise))}clear(){this._liveElement&&(this._liveElement.textContent="")}ngOnDestroy(){clearTimeout(this._previousTimeout),this._liveElement?.remove(),this._liveElement=null,this._currentResolve?.(),this._currentPromise=this._currentResolve=void 0}_createLiveElement(){let e="cdk-live-announcer-element",t=this._document.getElementsByClassName(e),o=this._document.createElement("div");for(let r=0;r .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{class i{_platform=d(Se);_hasCheckedHighContrastMode;_document=d(re);_breakpointSubscription;constructor(){this._breakpointSubscription=d(Vs).observe("(forced-colors: active)").subscribe(()=>{this._hasCheckedHighContrastMode&&(this._hasCheckedHighContrastMode=!1,this._applyBodyHighContrastModeCssClasses())})}getHighContrastMode(){if(!this._platform.isBrowser)return fo.NONE;let e=this._document.createElement("div");e.style.backgroundColor="rgb(1,2,3)",e.style.position="absolute",this._document.body.appendChild(e);let t=this._document.defaultView||window,o=t&&t.getComputedStyle?t.getComputedStyle(e):null,r=(o&&o.backgroundColor||"").replace(/ /g,"");switch(e.remove(),r){case"rgb(0,0,0)":case"rgb(45,50,54)":case"rgb(32,32,32)":return fo.WHITE_ON_BLACK;case"rgb(255,255,255)":case"rgb(255,250,239)":return fo.BLACK_ON_WHITE}return fo.NONE}ngOnDestroy(){this._breakpointSubscription.unsubscribe()}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){let e=this._document.body.classList;e.remove(th,Xb,Jb),this._hasCheckedHighContrastMode=!0;let t=this.getHighContrastMode();t===fo.BLACK_ON_WHITE?e.add(th,Xb):t===fo.WHITE_ON_BLACK&&e.add(th,Jb)}}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Xo=(()=>{class i{constructor(){d(nd)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({imports:[Br]})}return i})();var rh={},Ye=(()=>{class i{_appId=d(Fo);getId(e){return this._appId!=="ng"&&(e+=this._appId),rh.hasOwnProperty(e)||(rh[e]=0),`${e}${rh[e]++}`}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var nM=200,od=class{_letterKeyStream=new S;_items=[];_selectedItemIndex=-1;_pressedLetters=[];_skipPredicateFn;_selectedItem=new S;selectedItem=this._selectedItem;constructor(n,e){let t=typeof e?.debounceInterval=="number"?e.debounceInterval:nM;e?.skipPredicate&&(this._skipPredicateFn=e.skipPredicate),this.setItems(n),this._setupKeyHandler(t)}destroy(){this._pressedLetters=[],this._letterKeyStream.complete(),this._selectedItem.complete()}setCurrentSelectedItemIndex(n){this._selectedItemIndex=n}setItems(n){this._items=n}handleKey(n){let e=n.keyCode;n.key&&n.key.length===1?this._letterKeyStream.next(n.key.toLocaleUpperCase()):(e>=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e))}isTyping(){return this._pressedLetters.length>0}reset(){this._pressedLetters=[]}_setupKeyHandler(n){this._letterKeyStream.pipe(Ge(e=>this._pressedLetters.push(e)),yn(n),le(()=>this._pressedLetters.length>0),A(()=>this._pressedLetters.join("").toLocaleUpperCase())).subscribe(e=>{for(let t=1;ti[e]):i.altKey||i.shiftKey||i.ctrlKey||i.metaKey}var jr=class{_items;_activeItemIndex=-1;_activeItem=Ft(null);_wrap=!1;_typeaheadSubscription=ie.EMPTY;_itemChangesSubscription;_vertical=!0;_horizontal;_allowedModifierKeys=[];_homeAndEnd=!1;_pageUpAndDown={enabled:!1,delta:10};_effectRef;_typeahead;_skipPredicateFn=n=>n.disabled;constructor(n,e){this._items=n,n instanceof $a?this._itemChangesSubscription=n.changes.subscribe(t=>this._itemsChanged(t.toArray())):Ro(n)&&(this._effectRef=Bo(()=>this._itemsChanged(n()),{injector:e}))}tabOut=new S;change=new S;skipPredicate(n){return this._skipPredicateFn=n,this}withWrap(n=!0){return this._wrap=n,this}withVerticalOrientation(n=!0){return this._vertical=n,this}withHorizontalOrientation(n){return this._horizontal=n,this}withAllowedModifierKeys(n){return this._allowedModifierKeys=n,this}withTypeAhead(n=200){this._typeaheadSubscription.unsubscribe();let e=this._getItemsArray();return this._typeahead=new od(e,{debounceInterval:typeof n=="number"?n:void 0,skipPredicate:t=>this._skipPredicateFn(t)}),this._typeaheadSubscription=this._typeahead.selectedItem.subscribe(t=>{this.setActiveItem(t)}),this}cancelTypeahead(){return this._typeahead?.reset(),this}withHomeAndEnd(n=!0){return this._homeAndEnd=n,this}withPageUpDown(n=!0,e=10){return this._pageUpAndDown={enabled:n,delta:e},this}setActiveItem(n){let e=this._activeItem();this.updateActiveItem(n),this._activeItem()!==e&&this.change.next(this._activeItemIndex)}onKeydown(n){let e=n.keyCode,o=["altKey","ctrlKey","metaKey","shiftKey"].every(r=>!n[r]||this._allowedModifierKeys.indexOf(r)>-1);switch(e){case 9:this.tabOut.next();return;case 40:if(this._vertical&&o){this.setNextItemActive();break}else return;case 38:if(this._vertical&&o){this.setPreviousItemActive();break}else return;case 39:if(this._horizontal&&o){this._horizontal==="rtl"?this.setPreviousItemActive():this.setNextItemActive();break}else return;case 37:if(this._horizontal&&o){this._horizontal==="rtl"?this.setNextItemActive():this.setPreviousItemActive();break}else return;case 36:if(this._homeAndEnd&&o){this.setFirstItemActive();break}else return;case 35:if(this._homeAndEnd&&o){this.setLastItemActive();break}else return;case 33:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex-this._pageUpAndDown.delta;this._setActiveItemByIndex(r>0?r:0,1);break}else return;case 34:if(this._pageUpAndDown.enabled&&o){let r=this._activeItemIndex+this._pageUpAndDown.delta,a=this._getItemsArray().length;this._setActiveItemByIndex(r-1&&t!==this._activeItemIndex&&(this._activeItemIndex=t,this._typeahead?.setCurrentSelectedItemIndex(t))}}};var Us=class extends jr{setActiveItem(n){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(n),this.activeItem&&this.activeItem.setActiveStyles()}};var Hs=class extends jr{_origin="program";setFocusOrigin(n){return this._origin=n,this}setActiveItem(n){super.setActiveItem(n),this.activeItem&&this.activeItem.focus(this._origin)}};var av=" ";function lh(i,n,e){let t=ld(i,n);e=e.trim(),!t.some(o=>o.trim()===e)&&(t.push(e),i.setAttribute(n,t.join(av)))}function cd(i,n,e){let t=ld(i,n);e=e.trim();let o=t.filter(r=>r!==e);o.length?i.setAttribute(n,o.join(av)):i.removeAttribute(n)}function ld(i,n){return i.getAttribute(n)?.match(/\S+/g)??[]}var sv="cdk-describedby-message",sd="cdk-describedby-host",sh=0,lv=(()=>{class i{_platform=d(Se);_document=d(re);_messageRegistry=new Map;_messagesContainer=null;_id=`${sh++}`;constructor(){d(We).load(In),this._id=d(Fo)+"-"+sh++}describe(e,t,o){if(!this._canBeDescribed(e,t))return;let r=ah(t,o);typeof t!="string"?(rv(t,this._id),this._messageRegistry.set(r,{messageElement:t,referenceCount:0})):this._messageRegistry.has(r)||this._createMessageElement(t,o),this._isElementDescribedByMessage(e,r)||this._addMessageReference(e,r)}removeDescription(e,t,o){if(!t||!this._isElementNode(e))return;let r=ah(t,o);if(this._isElementDescribedByMessage(e,r)&&this._removeMessageReference(e,r),typeof t=="string"){let a=this._messageRegistry.get(r);a&&a.referenceCount===0&&this._deleteMessageElement(r)}this._messagesContainer?.childNodes.length===0&&(this._messagesContainer.remove(),this._messagesContainer=null)}ngOnDestroy(){let e=this._document.querySelectorAll(`[${sd}="${this._id}"]`);for(let t=0;to.indexOf(sv)!=0);e.setAttribute("aria-describedby",t.join(" "))}_addMessageReference(e,t){let o=this._messageRegistry.get(t);lh(e,"aria-describedby",o.messageElement.id),e.setAttribute(sd,this._id),o.referenceCount++}_removeMessageReference(e,t){let o=this._messageRegistry.get(t);o.referenceCount--,cd(e,"aria-describedby",o.messageElement.id),e.removeAttribute(sd)}_isElementDescribedByMessage(e,t){let o=ld(e,"aria-describedby"),r=this._messageRegistry.get(t),a=r&&r.messageElement.id;return!!a&&o.indexOf(a)!=-1}_canBeDescribed(e,t){if(!this._isElementNode(e))return!1;if(t&&typeof t=="object")return!0;let o=t==null?"":`${t}`.trim(),r=e.getAttribute("aria-label");return o?!r||r.trim()!==o:!1}_isElementNode(e){return e.nodeType===this._document.ELEMENT_NODE}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function ah(i,n){return typeof i=="string"?`${n||""}/${i}`:i}function rv(i,n){i.id||(i.id=`${sv}-${n}-${sh++}`)}var oM=new v("cdk-dir-doc",{providedIn:"root",factory:rM});function rM(){return d(re)}var aM=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;function cv(i){let n=i?.toLowerCase()||"";return n==="auto"&&typeof navigator<"u"&&navigator?.language?aM.test(navigator.language)?"rtl":"ltr":n==="rtl"?"rtl":"ltr"}var dt=(()=>{class i{value="ltr";change=new L;constructor(){let e=d(oM,{optional:!0});if(e){let t=e.body?e.body.dir:null,o=e.documentElement?e.documentElement.dir:null;this.value=cv(t||o||"ltr")}}ngOnDestroy(){this.change.complete()}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var go=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({})}return i})();var se=(()=>{class i{constructor(){d(nd)._applyBodyHighContrastModeCssClasses()}static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({imports:[go,go]})}return i})();var sM=["*"],lM=new v("MAT_ICON_DEFAULT_OPTIONS"),cM=new v("mat-icon-location",{providedIn:"root",factory:dM});function dM(){let i=d(re),n=i?i.location:null;return{getPathname:()=>n?n.pathname+n.search:""}}var dv=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],uM=dv.map(i=>`[${i}]`).join(", "),mM=/^url\(['"]?#(.*?)['"]?\)$/,Ce=(()=>{class i{_elementRef=d(Z);_iconRegistry=d(Lb);_location=d(cM);_errorHandler=d(Ri);_defaultColor;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;inline=!1;get svgIcon(){return this._svgIcon}set svgIcon(e){e!==this._svgIcon&&(e?this._updateSvgIcon(e):this._svgIcon&&this._clearSvgElement(),this._svgIcon=e)}_svgIcon;get fontSet(){return this._fontSet}set fontSet(e){let t=this._cleanupFontValue(e);t!==this._fontSet&&(this._fontSet=t,this._updateFontIconClasses())}_fontSet;get fontIcon(){return this._fontIcon}set fontIcon(e){let t=this._cleanupFontValue(e);t!==this._fontIcon&&(this._fontIcon=t,this._updateFontIconClasses())}_fontIcon;_previousFontSetClass=[];_previousFontIconClass;_svgName;_svgNamespace;_previousPath;_elementsWithExternalReferences;_currentIconFetch=ie.EMPTY;constructor(){let e=d(new ro("aria-hidden"),{optional:!0}),t=d(lM,{optional:!0});t&&(t.color&&(this.color=this._defaultColor=t.color),t.fontSet&&(this.fontSet=t.fontSet)),e||this._elementRef.nativeElement.setAttribute("aria-hidden","true")}_splitIconName(e){if(!e)return["",""];let t=e.split(":");switch(t.length){case 1:return["",t[0]];case 2:return t;default:throw Error(`Invalid icon name: "${e}"`)}}ngOnInit(){this._updateFontIconClasses()}ngAfterViewChecked(){let e=this._elementsWithExternalReferences;if(e&&e.size){let t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(e){this._clearSvgElement();let t=this._location.getPathname();this._previousPath=t,this._cacheChildrenWithExternalReferences(e),this._prependPathToReferences(t),this._elementRef.nativeElement.appendChild(e)}_clearSvgElement(){let e=this._elementRef.nativeElement,t=e.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();t--;){let o=e.childNodes[t];(o.nodeType!==1||o.nodeName.toLowerCase()==="svg")&&o.remove()}}_updateFontIconClasses(){if(!this._usingFontIcon())return;let e=this._elementRef.nativeElement,t=(this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet).split(/ +/):this._iconRegistry.getDefaultFontSetClass()).filter(o=>o.length>0);this._previousFontSetClass.forEach(o=>e.classList.remove(o)),t.forEach(o=>e.classList.add(o)),this._previousFontSetClass=t,this.fontIcon!==this._previousFontIconClass&&!t.includes("mat-ligature-font")&&(this._previousFontIconClass&&e.classList.remove(this._previousFontIconClass),this.fontIcon&&e.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(e){return typeof e=="string"?e.trim().split(" ")[0]:e}_prependPathToReferences(e){let t=this._elementsWithExternalReferences;t&&t.forEach((o,r)=>{o.forEach(a=>{r.setAttribute(a.name,`url('${e}#${a.value}')`)})})}_cacheChildrenWithExternalReferences(e){let t=e.querySelectorAll(uM),o=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let r=0;r{let s=t[r],u=s.getAttribute(a),h=u?u.match(mM):null;if(h){let g=o.get(s);g||(g=[],o.set(s,g)),g.push({name:a,value:h[1]})}})}_updateSvgIcon(e){if(this._svgNamespace=null,this._svgName=null,this._currentIconFetch.unsubscribe(),e){let[t,o]=this._splitIconName(e);t&&(this._svgNamespace=t),o&&(this._svgName=o),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(o,t).pipe(_e(1)).subscribe(r=>this._setSvgElement(r),r=>{let a=`Error retrieving icon ${t}:${o}! ${r.message}`;this._errorHandler.handleError(new Error(a))})}}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:10,hostBindings:function(t,o){t&2&&(Y("data-mat-icon-type",o._usingFontIcon()?"font":"svg")("data-mat-icon-name",o._svgName||o.fontIcon)("data-mat-icon-namespace",o._svgNamespace||o.fontSet)("fontIcon",o._usingFontIcon()?o.fontIcon:null),jt(o.color?"mat-"+o.color:""),j("mat-icon-inline",o.inline)("mat-icon-no-color",o.color!=="primary"&&o.color!=="accent"&&o.color!=="warn"))},inputs:{color:"color",inline:[2,"inline","inline",X],svgIcon:"svgIcon",fontSet:"fontSet",fontIcon:"fontIcon"},exportAs:["matIcon"],ngContentSelectors:sM,decls:1,vars:0,template:function(t,o){t&1&&(Te(),ae(0))},styles:[`mat-icon,mat-icon.mat-primary,mat-icon.mat-accent,mat-icon.mat-warn{color:var(--mat-icon-color, inherit)}.mat-icon{-webkit-user-select:none;user-select:none;background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px;overflow:hidden}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}.mat-icon.mat-ligature-font[fontIcon]::before{content:attr(fontIcon)}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto} -`],encapsulation:2,changeDetection:0})}return i})(),fe=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({imports:[se,se]})}return i})();var zr=class{_attachedHost;attach(n){return this._attachedHost=n,n.attach(this)}detach(){let n=this._attachedHost;n!=null&&(this._attachedHost=null,n.detach())}get isAttached(){return this._attachedHost!=null}setAttachedHost(n){this._attachedHost=n}},Zt=class extends zr{component;viewContainerRef;injector;componentFactoryResolver;projectableNodes;constructor(n,e,t,o,r){super(),this.component=n,this.viewContainerRef=e,this.injector=t,this.projectableNodes=r}},Di=class extends zr{templateRef;viewContainerRef;context;injector;constructor(n,e,t,o){super(),this.templateRef=n,this.viewContainerRef=e,this.context=t,this.injector=o}get origin(){return this.templateRef.elementRef}attach(n,e=this.context){return this.context=e,super.attach(n)}detach(){return this.context=void 0,super.detach()}},dd=class extends zr{element;constructor(n){super(),this.element=n instanceof Z?n.nativeElement:n}},to=class{_attachedPortal;_disposeFn;_isDisposed=!1;hasAttached(){return!!this._attachedPortal}attach(n){if(n instanceof Zt)return this._attachedPortal=n,this.attachComponentPortal(n);if(n instanceof Di)return this._attachedPortal=n,this.attachTemplatePortal(n);if(this.attachDomPortal&&n instanceof dd)return this._attachedPortal=n,this.attachDomPortal(n)}attachDomPortal=null;detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(n){this._disposeFn=n}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}};var Ur=class extends to{outletElement;_appRef;_defaultInjector;_document;constructor(n,e,t,o,r){super(),this.outletElement=n,this._appRef=t,this._defaultInjector=o,this._document=r}attachComponentPortal(n){let e;if(n.viewContainerRef){let t=n.injector||n.viewContainerRef.injector,o=t.get(ql,null,{optional:!0})||void 0;e=n.viewContainerRef.createComponent(n.component,{index:n.viewContainerRef.length,injector:t,ngModuleRef:o,projectableNodes:n.projectableNodes||void 0}),this.setDisposeFn(()=>e.destroy())}else{let t=this._appRef,o=n.injector||this._defaultInjector||ce.NULL,r=o.get(ni,t.injector);e=Ql(n.component,{elementInjector:o,environmentInjector:r,projectableNodes:n.projectableNodes||void 0}),t.attachView(e.hostView),this.setDisposeFn(()=>{t.viewCount>0&&t.detachView(e.hostView),e.destroy()})}return this.outletElement.appendChild(this._getComponentRootNode(e)),this._attachedPortal=n,e}attachTemplatePortal(n){let e=n.viewContainerRef,t=e.createEmbeddedView(n.templateRef,n.context,{injector:n.injector});return t.rootNodes.forEach(o=>this.outletElement.appendChild(o)),t.detectChanges(),this.setDisposeFn(()=>{let o=e.indexOf(t);o!==-1&&e.remove(o)}),this._attachedPortal=n,t}attachDomPortal=n=>{let e=n.element;e.parentNode;let t=this._document.createComment("dom-portal");e.parentNode.insertBefore(t,e),this.outletElement.appendChild(e),this._attachedPortal=n,super.setDisposeFn(()=>{t.parentNode&&t.parentNode.replaceChild(e,t)})};dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(n){return n.hostView.rootNodes[0]}};var Bi=(()=>{class i extends to{_moduleRef=d(ql,{optional:!0});_document=d(re);_viewContainerRef=d(Nt);_isInitialized=!1;_attachedRef;constructor(){super()}get portal(){return this._attachedPortal}set portal(e){this.hasAttached()&&!e&&!this._isInitialized||(this.hasAttached()&&super.detach(),e&&super.attach(e),this._attachedPortal=e||null)}attached=new L;get attachedRef(){return this._attachedRef}ngOnInit(){this._isInitialized=!0}ngOnDestroy(){super.dispose(),this._attachedRef=this._attachedPortal=null}attachComponentPortal(e){e.setAttachedHost(this);let t=e.viewContainerRef!=null?e.viewContainerRef:this._viewContainerRef,o=t.createComponent(e.component,{index:t.length,injector:e.injector||t.injector,projectableNodes:e.projectableNodes||void 0,ngModuleRef:this._moduleRef||void 0});return t!==this._viewContainerRef&&this._getRootNode().appendChild(o.hostView.rootNodes[0]),super.setDisposeFn(()=>o.destroy()),this._attachedPortal=e,this._attachedRef=o,this.attached.emit(o),o}attachTemplatePortal(e){e.setAttachedHost(this);let t=this._viewContainerRef.createEmbeddedView(e.templateRef,e.context,{injector:e.injector});return super.setDisposeFn(()=>this._viewContainerRef.clear()),this._attachedPortal=e,this._attachedRef=t,this.attached.emit(t),t}attachDomPortal=e=>{let t=e.element;t.parentNode;let o=this._document.createComment("dom-portal");e.setAttachedHost(this),t.parentNode.insertBefore(o,t),this._getRootNode().appendChild(t),this._attachedPortal=e,super.setDisposeFn(()=>{o.parentNode&&o.parentNode.replaceChild(t,o)})};_getRootNode(){let e=this._viewContainerRef.element.nativeElement;return e.nodeType===e.ELEMENT_NODE?e:e.parentNode}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","cdkPortalOutlet",""]],inputs:{portal:[0,"cdkPortalOutlet","portal"]},outputs:{attached:"attached"},exportAs:["cdkPortalOutlet"],features:[xe]})}return i})();var ji=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({})}return i})();function ch(){return typeof __karma__<"u"&&!!__karma__||typeof jasmine<"u"&&!!jasmine||typeof jest<"u"&&!!jest||typeof Mocha<"u"&&!!Mocha}function _t(i){return i==null?"":typeof i=="string"?i:`${i}px`}var Jo;function uv(){if(Jo==null){if(typeof document!="object"||!document||typeof Element!="function"||!Element)return Jo=!1,Jo;if("scrollBehavior"in document.documentElement.style)Jo=!0;else{let i=Element.prototype.scrollTo;i?Jo=!/\{\s*\[native code\]\s*\}/.test(i.toString()):Jo=!1}}return Jo}var $s=class{};var pM=20,_o=(()=>{class i{_ngZone=d(K);_platform=d(Se);_renderer=d(yt).createRenderer(null,null);_cleanupGlobalListener;constructor(){}_scrolled=new S;_scrolledCount=0;scrollContainers=new Map;register(e){this.scrollContainers.has(e)||this.scrollContainers.set(e,e.elementScrolled().subscribe(()=>this._scrolled.next(e)))}deregister(e){let t=this.scrollContainers.get(e);t&&(t.unsubscribe(),this.scrollContainers.delete(e))}scrolled(e=pM){return this._platform.isBrowser?new mt(t=>{this._cleanupGlobalListener||(this._cleanupGlobalListener=this._ngZone.runOutsideAngular(()=>this._renderer.listen("document","scroll",()=>this._scrolled.next())));let o=e>0?this._scrolled.pipe(Sm(e)).subscribe(t):this._scrolled.subscribe(t);return this._scrolledCount++,()=>{o.unsubscribe(),this._scrolledCount--,this._scrolledCount||(this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0)}}):T()}ngOnDestroy(){this._cleanupGlobalListener?.(),this._cleanupGlobalListener=void 0,this.scrollContainers.forEach((e,t)=>this.deregister(t)),this._scrolled.complete()}ancestorScrolled(e,t){let o=this.getAncestorScrollContainers(e);return this.scrolled(t).pipe(le(r=>!r||o.indexOf(r)>-1))}getAncestorScrollContainers(e){let t=[];return this.scrollContainers.forEach((o,r)=>{this._scrollableContainsElement(r,e)&&t.push(r)}),t}_scrollableContainsElement(e,t){let o=ct(t),r=e.getElementRef().nativeElement;do if(o==r)return!0;while(o=o.parentElement);return!1}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var hM=20,Fn=(()=>{class i{_platform=d(Se);_listeners;_viewportSize;_change=new S;_document=d(re,{optional:!0});constructor(){let e=d(K),t=d(yt).createRenderer(null,null);e.runOutsideAngular(()=>{if(this._platform.isBrowser){let o=r=>this._change.next(r);this._listeners=[t.listen("window","resize",o),t.listen("window","orientationchange",o)]}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){this._listeners?.forEach(e=>e()),this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();let e={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),e}getViewportRect(){let e=this.getViewportScrollPosition(),{width:t,height:o}=this.getViewportSize();return{top:e.top,left:e.left,bottom:e.top+o,right:e.left+t,height:o,width:t}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};let e=this._document,t=this._getWindow(),o=e.documentElement,r=o.getBoundingClientRect(),a=-r.top||e.body.scrollTop||t.scrollY||o.scrollTop||0,s=-r.left||e.body.scrollLeft||t.scrollX||o.scrollLeft||0;return{top:a,left:s}}change(e=hM){return e>0?this._change.pipe(Sm(e)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){let e=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:e.innerWidth,height:e.innerHeight}:{width:0,height:0}}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Ht=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({})}return i})(),Gs=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({imports:[go,Ht,go,Ht]})}return i})();var mv=uv(),ud=class{_viewportRuler;_previousHTMLStyles={top:"",left:""};_previousScrollPosition;_isEnabled=!1;_document;constructor(n,e){this._viewportRuler=n,this._document=e}attach(){}enable(){if(this._canBeEnabled()){let n=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=n.style.left||"",this._previousHTMLStyles.top=n.style.top||"",n.style.left=_t(-this._previousScrollPosition.left),n.style.top=_t(-this._previousScrollPosition.top),n.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){let n=this._document.documentElement,e=this._document.body,t=n.style,o=e.style,r=t.scrollBehavior||"",a=o.scrollBehavior||"";this._isEnabled=!1,t.left=this._previousHTMLStyles.left,t.top=this._previousHTMLStyles.top,n.classList.remove("cdk-global-scrollblock"),mv&&(t.scrollBehavior=o.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),mv&&(t.scrollBehavior=r,o.scrollBehavior=a)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;let e=this._document.documentElement,t=this._viewportRuler.getViewportSize();return e.scrollHeight>t.height||e.scrollWidth>t.width}};var md=class{_scrollDispatcher;_ngZone;_viewportRuler;_config;_scrollSubscription=null;_overlayRef;_initialScrollPosition;constructor(n,e,t,o){this._scrollDispatcher=n,this._ngZone=e,this._viewportRuler=t,this._config=o}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(this._scrollSubscription)return;let n=this._scrollDispatcher.scrolled(0).pipe(le(e=>!e||!this._overlayRef.overlayElement.contains(e.getElementRef().nativeElement)));this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(()=>{let e=this._viewportRuler.getViewportScrollPosition().top;Math.abs(e-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}_detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}},Ws=class{enable(){}disable(){}attach(){}};function dh(i,n){return n.some(e=>{let t=i.bottome.bottom,r=i.righte.right;return t||o||r||a})}function pv(i,n){return n.some(e=>{let t=i.tope.bottom,r=i.lefte.right;return t||o||r||a})}var pd=class{_scrollDispatcher;_viewportRuler;_ngZone;_config;_scrollSubscription=null;_overlayRef;constructor(n,e,t,o){this._scrollDispatcher=n,this._viewportRuler=e,this._ngZone=t,this._config=o}attach(n){this._overlayRef,this._overlayRef=n}enable(){if(!this._scrollSubscription){let n=this._config?this._config.scrollThrottle:0;this._scrollSubscription=this._scrollDispatcher.scrolled(n).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){let e=this._overlayRef.overlayElement.getBoundingClientRect(),{width:t,height:o}=this._viewportRuler.getViewportSize();dh(e,[{width:t,height:o,bottom:o,right:t,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}})}}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}},vv=(()=>{class i{_scrollDispatcher=d(_o);_viewportRuler=d(Fn);_ngZone=d(K);_document=d(re);constructor(){}noop=()=>new Ws;close=e=>new md(this._scrollDispatcher,this._ngZone,this._viewportRuler,e);block=()=>new ud(this._viewportRuler,this._document);reposition=e=>new pd(this._scrollDispatcher,this._viewportRuler,this._ngZone,e);static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Mi=class{positionStrategy;scrollStrategy=new Ws;panelClass="";hasBackdrop=!1;backdropClass="cdk-overlay-dark-backdrop";width;height;minWidth;minHeight;maxWidth;maxHeight;direction;disposeOnNavigation=!1;constructor(n){if(n){let e=Object.keys(n);for(let t of e)n[t]!==void 0&&(this[t]=n[t])}}};var hd=class{connectionPair;scrollableViewProperties;constructor(n,e){this.connectionPair=n,this.scrollableViewProperties=e}};var yv=(()=>{class i{_attachedOverlays=[];_document=d(re);_isAttached;constructor(){}ngOnDestroy(){this.detach()}add(e){this.remove(e),this._attachedOverlays.push(e)}remove(e){let t=this._attachedOverlays.indexOf(e);t>-1&&this._attachedOverlays.splice(t,1),this._attachedOverlays.length===0&&this.detach()}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Cv=(()=>{class i extends yv{_ngZone=d(K);_renderer=d(yt).createRenderer(null,null);_cleanupKeydown;add(e){super.add(e),this._isAttached||(this._ngZone.runOutsideAngular(()=>{this._cleanupKeydown=this._renderer.listen("body","keydown",this._keydownListener)}),this._isAttached=!0)}detach(){this._isAttached&&(this._cleanupKeydown?.(),this._isAttached=!1)}_keydownListener=e=>{let t=this._attachedOverlays;for(let o=t.length-1;o>-1;o--)if(t[o]._keydownEvents.observers.length>0){this._ngZone.run(()=>t[o]._keydownEvents.next(e));break}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ve(i)))(o||i)}})();static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),xv=(()=>{class i extends yv{_platform=d(Se);_ngZone=d(K);_renderer=d(yt).createRenderer(null,null);_cursorOriginalValue;_cursorStyleIsSet=!1;_pointerDownEventTarget;_cleanups;add(e){if(super.add(e),!this._isAttached){let t=this._document.body,o={capture:!0};this._cleanups=this._ngZone.runOutsideAngular(()=>[Ue(this._renderer,t,"pointerdown",this._pointerDownListener,o),Ue(this._renderer,t,"click",this._clickListener,o),Ue(this._renderer,t,"auxclick",this._clickListener,o),Ue(this._renderer,t,"contextmenu",this._clickListener,o)]),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=t.style.cursor,t.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){this._isAttached&&(this._cleanups?.forEach(e=>e()),this._cleanups=void 0,this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}_pointerDownListener=e=>{this._pointerDownEventTarget=wt(e)};_clickListener=e=>{let t=wt(e),o=e.type==="click"&&this._pointerDownEventTarget?this._pointerDownEventTarget:t;this._pointerDownEventTarget=null;let r=this._attachedOverlays.slice();for(let a=r.length-1;a>-1;a--){let s=r[a];if(s._outsidePointerEvents.observers.length<1||!s.hasAttached())continue;if(hv(s.overlayElement,t)||hv(s.overlayElement,o))break;let u=s._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>u.next(e)):u.next(e)}};static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ve(i)))(o||i)}})();static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function hv(i,n){let e=typeof ShadowRoot<"u"&&ShadowRoot,t=n;for(;t;){if(t===i)return!0;t=e&&t instanceof ShadowRoot?t.host:t.parentNode}return!1}var wv=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["ng-component"]],hostAttrs:["cdk-overlay-style-loader",""],decls:0,vars:0,template:function(t,o){},styles:[`.cdk-overlay-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed}@layer cdk-overlay{.cdk-overlay-container{z-index:1000}}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute}@layer cdk-overlay{.cdk-global-overlay-wrapper{z-index:1000}}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;display:flex;max-width:100%;max-height:100%}@layer cdk-overlay{.cdk-overlay-pane{z-index:1000}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;pointer-events:auto;-webkit-tap-highlight-color:rgba(0,0,0,0);opacity:0;touch-action:manipulation}@layer cdk-overlay{.cdk-overlay-backdrop{z-index:1000;transition:opacity 400ms cubic-bezier(0.25, 0.8, 0.25, 1)}}@media(prefers-reduced-motion){.cdk-overlay-backdrop{transition-duration:1ms}}.cdk-overlay-backdrop-showing{opacity:1}@media(forced-colors: active){.cdk-overlay-backdrop-showing{opacity:.6}}@layer cdk-overlay{.cdk-overlay-dark-backdrop{background:rgba(0,0,0,.32)}}.cdk-overlay-transparent-backdrop{transition:visibility 1ms linear,opacity 1ms linear;visibility:hidden;opacity:1}.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing,.cdk-high-contrast-active .cdk-overlay-transparent-backdrop{opacity:0;visibility:visible}.cdk-overlay-backdrop-noop-animation{transition:none}.cdk-overlay-connected-position-bounding-box{position:absolute;display:flex;flex-direction:column;min-width:1px;min-height:1px}@layer cdk-overlay{.cdk-overlay-connected-position-bounding-box{z-index:1000}}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll} -`],encapsulation:2,changeDetection:0})}return i})(),gd=(()=>{class i{_platform=d(Se);_containerElement;_document=d(re);_styleLoader=d(We);constructor(){}ngOnDestroy(){this._containerElement?.remove()}getContainerElement(){return this._loadStyles(),this._containerElement||this._createContainer(),this._containerElement}_createContainer(){let e="cdk-overlay-container";if(this._platform.isBrowser||ch()){let o=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let r=0;r{let n=this.element;clearTimeout(this._fallbackTimeout),this._cleanupTransitionEnd?.(),this._cleanupTransitionEnd=this._renderer.listen(n,"transitionend",this.dispose),this._fallbackTimeout=setTimeout(this.dispose,500),n.style.pointerEvents="none",n.classList.remove("cdk-overlay-backdrop-showing")})}dispose=()=>{clearTimeout(this._fallbackTimeout),this._cleanupClick?.(),this._cleanupTransitionEnd?.(),this._cleanupClick=this._cleanupTransitionEnd=this._fallbackTimeout=void 0,this.element.remove()}},tr=class{_portalOutlet;_host;_pane;_config;_ngZone;_keyboardDispatcher;_document;_location;_outsideClickDispatcher;_animationsDisabled;_injector;_renderer;_backdropClick=new S;_attachments=new S;_detachments=new S;_positionStrategy;_scrollStrategy;_locationChanges=ie.EMPTY;_backdropRef=null;_previousHostParent;_keydownEvents=new S;_outsidePointerEvents=new S;_renders=new S;_afterRenderRef;_afterNextRenderRef;constructor(n,e,t,o,r,a,s,u,h,g=!1,y,R){this._portalOutlet=n,this._host=e,this._pane=t,this._config=o,this._ngZone=r,this._keyboardDispatcher=a,this._document=s,this._location=u,this._outsideClickDispatcher=h,this._animationsDisabled=g,this._injector=y,this._renderer=R,o.scrollStrategy&&(this._scrollStrategy=o.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=o.positionStrategy,this._afterRenderRef=Lt(()=>_r(()=>{this._renders.next()},{injector:this._injector}))}get overlayElement(){return this._pane}get backdropElement(){return this._backdropRef?.element||null}get hostElement(){return this._host}attach(n){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);let e=this._portalOutlet.attach(n);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._afterNextRenderRef?.destroy(),this._afterNextRenderRef=Et(()=>{this.hasAttached()&&this.updatePosition()},{injector:this._injector}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),typeof e?.onDestroy=="function"&&e.onDestroy(()=>{this.hasAttached()&&this._ngZone.runOutsideAngular(()=>Promise.resolve().then(()=>this.detach()))}),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();let n=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenEmpty(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),n}dispose(){let n=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._backdropRef?.dispose(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),this._host?.remove(),this._afterNextRenderRef?.destroy(),this._previousHostParent=this._pane=this._host=this._backdropRef=null,n&&this._detachments.next(),this._detachments.complete(),this._afterRenderRef.destroy(),this._renders.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(n){n!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=n,this.hasAttached()&&(n.attach(this),this.updatePosition()))}updateSize(n){this._config=_(_({},this._config),n),this._updateElementSize()}setDirection(n){this._config=O(_({},this._config),{direction:n}),this._updateElementDirection()}addPanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!0)}removePanelClass(n){this._pane&&this._toggleClasses(this._pane,n,!1)}getDirection(){let n=this._config.direction;return n?typeof n=="string"?n:n.value:"ltr"}updateScrollStrategy(n){n!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=n,this.hasAttached()&&(n.attach(this),n.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;let n=this._pane.style;n.width=_t(this._config.width),n.height=_t(this._config.height),n.minWidth=_t(this._config.minWidth),n.minHeight=_t(this._config.minHeight),n.maxWidth=_t(this._config.maxWidth),n.maxHeight=_t(this._config.maxHeight)}_togglePointerEvents(n){this._pane.style.pointerEvents=n?"":"none"}_attachBackdrop(){let n="cdk-overlay-backdrop-showing";this._backdropRef?.dispose(),this._backdropRef=new uh(this._document,this._renderer,this._ngZone,e=>{this._backdropClick.next(e)}),this._animationsDisabled&&this._backdropRef.element.classList.add("cdk-overlay-backdrop-noop-animation"),this._config.backdropClass&&this._toggleClasses(this._backdropRef.element,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropRef.element,this._host),!this._animationsDisabled&&typeof requestAnimationFrame<"u"?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this._backdropRef?.element.classList.add(n))}):this._backdropRef.element.classList.add(n)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){this._animationsDisabled?(this._backdropRef?.dispose(),this._backdropRef=null):this._backdropRef?.detach()}_toggleClasses(n,e,t){let o=ho(e||[]).filter(r=>!!r);o.length&&(t?n.classList.add(...o):n.classList.remove(...o))}_detachContentWhenEmpty(){this._ngZone.runOutsideAngular(()=>{let n=this._renders.pipe(pe(Le(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||this._pane.children.length===0)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),n.unsubscribe())})})}_disposeScrollStrategy(){let n=this._scrollStrategy;n?.disable(),n?.detach?.()}},fv="cdk-overlay-connected-position-bounding-box",fM=/([A-Za-z%]+)$/,Hr=class{_viewportRuler;_document;_platform;_overlayContainer;_overlayRef;_isInitialRender;_lastBoundingBoxSize={width:0,height:0};_isPushed=!1;_canPush=!0;_growAfterOpen=!1;_hasFlexibleDimensions=!0;_positionLocked=!1;_originRect;_overlayRect;_viewportRect;_containerRect;_viewportMargin=0;_scrollables=[];_preferredPositions=[];_origin;_pane;_isDisposed;_boundingBox;_lastPosition;_lastScrollVisibility;_positionChanges=new S;_resizeSubscription=ie.EMPTY;_offsetX=0;_offsetY=0;_transformOriginSelector;_appliedPanelClasses=[];_previousPushAmount;positionChanges=this._positionChanges;get positions(){return this._preferredPositions}constructor(n,e,t,o,r){this._viewportRuler=e,this._document=t,this._platform=o,this._overlayContainer=r,this.setOrigin(n)}attach(n){this._overlayRef&&this._overlayRef,this._validatePositions(),n.hostElement.classList.add(fv),this._overlayRef=n,this._boundingBox=n.hostElement,this._pane=n.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition){this.reapplyLastPosition();return}this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let n=this._originRect,e=this._overlayRect,t=this._viewportRect,o=this._containerRect,r=[],a;for(let s of this._preferredPositions){let u=this._getOriginPoint(n,o,s),h=this._getOverlayPoint(u,e,s),g=this._getOverlayFit(h,e,t,s);if(g.isCompletelyWithinViewport){this._isPushed=!1,this._applyPosition(s,u);return}if(this._canFitWithFlexibleDimensions(g,h,t)){r.push({position:s,origin:u,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(u,s)});continue}(!a||a.overlayFit.visibleAreau&&(u=g,s=h)}this._isPushed=!1,this._applyPosition(s.position,s.origin);return}if(this._canPush){this._isPushed=!0,this._applyPosition(a.position,a.originPoint);return}this._applyPosition(a.position,a.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&er(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(fv),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;let n=this._lastPosition;if(n){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();let e=this._getOriginPoint(this._originRect,this._containerRect,n);this._applyPosition(n,e)}else this.apply()}withScrollableContainers(n){return this._scrollables=n,this}withPositions(n){return this._preferredPositions=n,n.indexOf(this._lastPosition)===-1&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(n){return this._viewportMargin=n,this}withFlexibleDimensions(n=!0){return this._hasFlexibleDimensions=n,this}withGrowAfterOpen(n=!0){return this._growAfterOpen=n,this}withPush(n=!0){return this._canPush=n,this}withLockedPosition(n=!0){return this._positionLocked=n,this}setOrigin(n){return this._origin=n,this}withDefaultOffsetX(n){return this._offsetX=n,this}withDefaultOffsetY(n){return this._offsetY=n,this}withTransformOriginOn(n){return this._transformOriginSelector=n,this}_getOriginPoint(n,e,t){let o;if(t.originX=="center")o=n.left+n.width/2;else{let a=this._isRtl()?n.right:n.left,s=this._isRtl()?n.left:n.right;o=t.originX=="start"?a:s}e.left<0&&(o-=e.left);let r;return t.originY=="center"?r=n.top+n.height/2:r=t.originY=="top"?n.top:n.bottom,e.top<0&&(r-=e.top),{x:o,y:r}}_getOverlayPoint(n,e,t){let o;t.overlayX=="center"?o=-e.width/2:t.overlayX==="start"?o=this._isRtl()?-e.width:0:o=this._isRtl()?0:-e.width;let r;return t.overlayY=="center"?r=-e.height/2:r=t.overlayY=="top"?0:-e.height,{x:n.x+o,y:n.y+r}}_getOverlayFit(n,e,t,o){let r=_v(e),{x:a,y:s}=n,u=this._getOffset(o,"x"),h=this._getOffset(o,"y");u&&(a+=u),h&&(s+=h);let g=0-a,y=a+r.width-t.width,R=0-s,F=s+r.height-t.height,H=this._subtractOverflows(r.width,g,y),B=this._subtractOverflows(r.height,R,F),J=H*B;return{visibleArea:J,isCompletelyWithinViewport:r.width*r.height===J,fitsInViewportVertically:B===r.height,fitsInViewportHorizontally:H==r.width}}_canFitWithFlexibleDimensions(n,e,t){if(this._hasFlexibleDimensions){let o=t.bottom-e.y,r=t.right-e.x,a=gv(this._overlayRef.getConfig().minHeight),s=gv(this._overlayRef.getConfig().minWidth),u=n.fitsInViewportVertically||a!=null&&a<=o,h=n.fitsInViewportHorizontally||s!=null&&s<=r;return u&&h}return!1}_pushOverlayOnScreen(n,e,t){if(this._previousPushAmount&&this._positionLocked)return{x:n.x+this._previousPushAmount.x,y:n.y+this._previousPushAmount.y};let o=_v(e),r=this._viewportRect,a=Math.max(n.x+o.width-r.width,0),s=Math.max(n.y+o.height-r.height,0),u=Math.max(r.top-t.top-n.y,0),h=Math.max(r.left-t.left-n.x,0),g=0,y=0;return o.width<=r.width?g=h||-a:g=n.xH&&!this._isInitialRender&&!this._growAfterOpen&&(a=n.y-H/2)}let u=e.overlayX==="start"&&!o||e.overlayX==="end"&&o,h=e.overlayX==="end"&&!o||e.overlayX==="start"&&o,g,y,R;if(h)R=t.width-n.x+this._viewportMargin*2,g=n.x-this._viewportMargin;else if(u)y=n.x,g=t.right-n.x;else{let F=Math.min(t.right-n.x+t.left,n.x),H=this._lastBoundingBoxSize.width;g=F*2,y=n.x-F,g>H&&!this._isInitialRender&&!this._growAfterOpen&&(y=n.x-H/2)}return{top:a,left:y,bottom:s,right:R,width:g,height:r}}_setBoundingBoxStyles(n,e){let t=this._calculateBoundingBoxRect(n,e);!this._isInitialRender&&!this._growAfterOpen&&(t.height=Math.min(t.height,this._lastBoundingBoxSize.height),t.width=Math.min(t.width,this._lastBoundingBoxSize.width));let o={};if(this._hasExactPosition())o.top=o.left="0",o.bottom=o.right=o.maxHeight=o.maxWidth="",o.width=o.height="100%";else{let r=this._overlayRef.getConfig().maxHeight,a=this._overlayRef.getConfig().maxWidth;o.height=_t(t.height),o.top=_t(t.top),o.bottom=_t(t.bottom),o.width=_t(t.width),o.left=_t(t.left),o.right=_t(t.right),e.overlayX==="center"?o.alignItems="center":o.alignItems=e.overlayX==="end"?"flex-end":"flex-start",e.overlayY==="center"?o.justifyContent="center":o.justifyContent=e.overlayY==="bottom"?"flex-end":"flex-start",r&&(o.maxHeight=_t(r)),a&&(o.maxWidth=_t(a))}this._lastBoundingBoxSize=t,er(this._boundingBox.style,o)}_resetBoundingBoxStyles(){er(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){er(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(n,e){let t={},o=this._hasExactPosition(),r=this._hasFlexibleDimensions,a=this._overlayRef.getConfig();if(o){let g=this._viewportRuler.getViewportScrollPosition();er(t,this._getExactOverlayY(e,n,g)),er(t,this._getExactOverlayX(e,n,g))}else t.position="static";let s="",u=this._getOffset(e,"x"),h=this._getOffset(e,"y");u&&(s+=`translateX(${u}px) `),h&&(s+=`translateY(${h}px)`),t.transform=s.trim(),a.maxHeight&&(o?t.maxHeight=_t(a.maxHeight):r&&(t.maxHeight="")),a.maxWidth&&(o?t.maxWidth=_t(a.maxWidth):r&&(t.maxWidth="")),er(this._pane.style,t)}_getExactOverlayY(n,e,t){let o={top:"",bottom:""},r=this._getOverlayPoint(e,this._overlayRect,n);if(this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,t)),n.overlayY==="bottom"){let a=this._document.documentElement.clientHeight;o.bottom=`${a-(r.y+this._overlayRect.height)}px`}else o.top=_t(r.y);return o}_getExactOverlayX(n,e,t){let o={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,n);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,t));let a;if(this._isRtl()?a=n.overlayX==="end"?"left":"right":a=n.overlayX==="end"?"right":"left",a==="right"){let s=this._document.documentElement.clientWidth;o.right=`${s-(r.x+this._overlayRect.width)}px`}else o.left=_t(r.x);return o}_getScrollVisibility(){let n=this._getOriginRect(),e=this._pane.getBoundingClientRect(),t=this._scrollables.map(o=>o.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:pv(n,t),isOriginOutsideView:dh(n,t),isOverlayClipped:pv(e,t),isOverlayOutsideView:dh(e,t)}}_subtractOverflows(n,...e){return e.reduce((t,o)=>t-Math.max(o,0),n)}_getNarrowedViewportRect(){let n=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,t=this._viewportRuler.getViewportScrollPosition();return{top:t.top+this._viewportMargin,left:t.left+this._viewportMargin,right:t.left+n-this._viewportMargin,bottom:t.top+e-this._viewportMargin,width:n-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return this._overlayRef.getDirection()==="rtl"}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(n,e){return e==="x"?n.offsetX==null?this._offsetX:n.offsetX:n.offsetY==null?this._offsetY:n.offsetY}_validatePositions(){}_addPanelClasses(n){this._pane&&ho(n).forEach(e=>{e!==""&&this._appliedPanelClasses.indexOf(e)===-1&&(this._appliedPanelClasses.push(e),this._pane.classList.add(e))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(n=>{this._pane.classList.remove(n)}),this._appliedPanelClasses=[])}_getOriginRect(){let n=this._origin;if(n instanceof Z)return n.nativeElement.getBoundingClientRect();if(n instanceof Element)return n.getBoundingClientRect();let e=n.width||0,t=n.height||0;return{top:n.y,bottom:n.y+t,left:n.x,right:n.x+e,height:t,width:e}}};function er(i,n){for(let e in n)n.hasOwnProperty(e)&&(i[e]=n[e]);return i}function gv(i){if(typeof i!="number"&&i!=null){let[n,e]=i.split(fM);return!e||e==="px"?parseFloat(n):null}return i||null}function _v(i){return{top:Math.floor(i.top),right:Math.floor(i.right),bottom:Math.floor(i.bottom),left:Math.floor(i.left),width:Math.floor(i.width),height:Math.floor(i.height)}}function gM(i,n){return i===n?!0:i.isOriginClipped===n.isOriginClipped&&i.isOriginOutsideView===n.isOriginOutsideView&&i.isOverlayClipped===n.isOverlayClipped&&i.isOverlayOutsideView===n.isOverlayOutsideView}var bv="cdk-global-overlay-wrapper",fd=class{_overlayRef;_cssPosition="static";_topOffset="";_bottomOffset="";_alignItems="";_xPosition="";_xOffset="";_width="";_height="";_isDisposed=!1;attach(n){let e=n.getConfig();this._overlayRef=n,this._width&&!e.width&&n.updateSize({width:this._width}),this._height&&!e.height&&n.updateSize({height:this._height}),n.hostElement.classList.add(bv),this._isDisposed=!1}top(n=""){return this._bottomOffset="",this._topOffset=n,this._alignItems="flex-start",this}left(n=""){return this._xOffset=n,this._xPosition="left",this}bottom(n=""){return this._topOffset="",this._bottomOffset=n,this._alignItems="flex-end",this}right(n=""){return this._xOffset=n,this._xPosition="right",this}start(n=""){return this._xOffset=n,this._xPosition="start",this}end(n=""){return this._xOffset=n,this._xPosition="end",this}width(n=""){return this._overlayRef?this._overlayRef.updateSize({width:n}):this._width=n,this}height(n=""){return this._overlayRef?this._overlayRef.updateSize({height:n}):this._height=n,this}centerHorizontally(n=""){return this.left(n),this._xPosition="center",this}centerVertically(n=""){return this.top(n),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,t=this._overlayRef.getConfig(),{width:o,height:r,maxWidth:a,maxHeight:s}=t,u=(o==="100%"||o==="100vw")&&(!a||a==="100%"||a==="100vw"),h=(r==="100%"||r==="100vh")&&(!s||s==="100%"||s==="100vh"),g=this._xPosition,y=this._xOffset,R=this._overlayRef.getConfig().direction==="rtl",F="",H="",B="";u?B="flex-start":g==="center"?(B="center",R?H=y:F=y):R?g==="left"||g==="end"?(B="flex-end",F=y):(g==="right"||g==="start")&&(B="flex-start",H=y):g==="left"||g==="start"?(B="flex-start",F=y):(g==="right"||g==="end")&&(B="flex-end",H=y),n.position=this._cssPosition,n.marginLeft=u?"0":F,n.marginTop=h?"0":this._topOffset,n.marginBottom=this._bottomOffset,n.marginRight=u?"0":H,e.justifyContent=B,e.alignItems=h?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;let n=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,t=e.style;e.classList.remove(bv),t.justifyContent=t.alignItems=n.marginTop=n.marginBottom=n.marginLeft=n.marginRight=n.position="",this._overlayRef=null,this._isDisposed=!0}},Dv=(()=>{class i{_viewportRuler=d(Fn);_document=d(re);_platform=d(Se);_overlayContainer=d(gd);constructor(){}global(){return new fd}flexibleConnectedTo(e){return new Hr(e,this._viewportRuler,this._document,this._platform,this._overlayContainer)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),Ke=(()=>{class i{scrollStrategies=d(vv);_overlayContainer=d(gd);_positionBuilder=d(Dv);_keyboardDispatcher=d(Cv);_injector=d(ce);_ngZone=d(K);_document=d(re);_directionality=d(dt);_location=d(ri);_outsideClickDispatcher=d(xv);_animationsModuleType=d(ze,{optional:!0});_idGenerator=d(Ye);_renderer=d(yt).createRenderer(null,null);_appRef;_styleLoader=d(We);constructor(){}create(e){this._styleLoader.load(wv);let t=this._createHostElement(),o=this._createPaneElement(t),r=this._createPortalOutlet(o),a=new Mi(e);return a.direction=a.direction||this._directionality.value,new tr(r,t,o,a,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher,this._animationsModuleType==="NoopAnimations",this._injector.get(ni),this._renderer)}position(){return this._positionBuilder}_createPaneElement(e){let t=this._document.createElement("div");return t.id=this._idGenerator.getId("cdk-overlay-"),t.classList.add("cdk-overlay-pane"),e.appendChild(t),t}_createHostElement(){let e=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(e),e}_createPortalOutlet(e){return this._appRef||(this._appRef=this._injector.get(wn)),new Ur(e,null,this._appRef,this._injector,this._document)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),_M=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],Mv=new v("cdk-connected-overlay-scroll-strategy",{providedIn:"root",factory:()=>{let i=d(Ke);return()=>i.scrollStrategies.reposition()}}),$r=(()=>{class i{elementRef=d(Z);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","cdk-overlay-origin",""],["","overlay-origin",""],["","cdkOverlayOrigin",""]],exportAs:["cdkOverlayOrigin"]})}return i})(),_d=(()=>{class i{_overlay=d(Ke);_dir=d(dt,{optional:!0});_overlayRef;_templatePortal;_backdropSubscription=ie.EMPTY;_attachSubscription=ie.EMPTY;_detachSubscription=ie.EMPTY;_positionSubscription=ie.EMPTY;_offsetX;_offsetY;_position;_scrollStrategyFactory=d(Mv);_disposeOnNavigation=!1;_ngZone=d(K);origin;positions;positionStrategy;get offsetX(){return this._offsetX}set offsetX(e){this._offsetX=e,this._position&&this._updatePositionStrategy(this._position)}get offsetY(){return this._offsetY}set offsetY(e){this._offsetY=e,this._position&&this._updatePositionStrategy(this._position)}width;height;minWidth;minHeight;backdropClass;panelClass;viewportMargin=0;scrollStrategy;open=!1;disableClose=!1;transformOriginSelector;hasBackdrop=!1;lockPosition=!1;flexibleDimensions=!1;growAfterOpen=!1;push=!1;get disposeOnNavigation(){return this._disposeOnNavigation}set disposeOnNavigation(e){this._disposeOnNavigation=e}backdropClick=new L;positionChange=new L;attach=new L;detach=new L;overlayKeydown=new L;overlayOutsideClick=new L;constructor(){let e=d(bi),t=d(Nt);this._templatePortal=new Di(e,t),this.scrollStrategy=this._scrollStrategyFactory()}get overlayRef(){return this._overlayRef}get dir(){return this._dir?this._dir.value:"ltr"}ngOnDestroy(){this._attachSubscription.unsubscribe(),this._detachSubscription.unsubscribe(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this._overlayRef?.dispose()}ngOnChanges(e){this._position&&(this._updatePositionStrategy(this._position),this._overlayRef?.updateSize({width:this.width,minWidth:this.minWidth,height:this.height,minHeight:this.minHeight}),e.origin&&this.open&&this._position.apply()),e.open&&(this.open?this.attachOverlay():this.detachOverlay())}_createOverlay(){(!this.positions||!this.positions.length)&&(this.positions=_M);let e=this._overlayRef=this._overlay.create(this._buildConfig());this._attachSubscription=e.attachments().subscribe(()=>this.attach.emit()),this._detachSubscription=e.detachments().subscribe(()=>this.detach.emit()),e.keydownEvents().subscribe(t=>{this.overlayKeydown.next(t),t.keyCode===27&&!this.disableClose&&!rt(t)&&(t.preventDefault(),this.detachOverlay())}),this._overlayRef.outsidePointerEvents().subscribe(t=>{let o=this._getOriginElement(),r=wt(t);(!o||o!==r&&!o.contains(r))&&this.overlayOutsideClick.next(t)})}_buildConfig(){let e=this._position=this.positionStrategy||this._createPositionStrategy(),t=new Mi({direction:this._dir||"ltr",positionStrategy:e,scrollStrategy:this.scrollStrategy,hasBackdrop:this.hasBackdrop,disposeOnNavigation:this.disposeOnNavigation});return(this.width||this.width===0)&&(t.width=this.width),(this.height||this.height===0)&&(t.height=this.height),(this.minWidth||this.minWidth===0)&&(t.minWidth=this.minWidth),(this.minHeight||this.minHeight===0)&&(t.minHeight=this.minHeight),this.backdropClass&&(t.backdropClass=this.backdropClass),this.panelClass&&(t.panelClass=this.panelClass),t}_updatePositionStrategy(e){let t=this.positions.map(o=>({originX:o.originX,originY:o.originY,overlayX:o.overlayX,overlayY:o.overlayY,offsetX:o.offsetX||this.offsetX,offsetY:o.offsetY||this.offsetY,panelClass:o.panelClass||void 0}));return e.setOrigin(this._getOrigin()).withPositions(t).withFlexibleDimensions(this.flexibleDimensions).withPush(this.push).withGrowAfterOpen(this.growAfterOpen).withViewportMargin(this.viewportMargin).withLockedPosition(this.lockPosition).withTransformOriginOn(this.transformOriginSelector)}_createPositionStrategy(){let e=this._overlay.position().flexibleConnectedTo(this._getOrigin());return this._updatePositionStrategy(e),e}_getOrigin(){return this.origin instanceof $r?this.origin.elementRef:this.origin}_getOriginElement(){return this.origin instanceof $r?this.origin.elementRef.nativeElement:this.origin instanceof Z?this.origin.nativeElement:typeof Element<"u"&&this.origin instanceof Element?this.origin:null}attachOverlay(){this._overlayRef?this._overlayRef.getConfig().hasBackdrop=this.hasBackdrop:this._createOverlay(),this._overlayRef.hasAttached()||this._overlayRef.attach(this._templatePortal),this.hasBackdrop?this._backdropSubscription=this._overlayRef.backdropClick().subscribe(e=>{this.backdropClick.emit(e)}):this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.positionChange.observers.length>0&&(this._positionSubscription=this._position.positionChanges.pipe(cg(()=>this.positionChange.observers.length>0)).subscribe(e=>{this._ngZone.run(()=>this.positionChange.emit(e)),this.positionChange.observers.length===0&&this._positionSubscription.unsubscribe()})),this.open=!0}detachOverlay(){this._overlayRef?.detach(),this._backdropSubscription.unsubscribe(),this._positionSubscription.unsubscribe(),this.open=!1}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","cdk-connected-overlay",""],["","connected-overlay",""],["","cdkConnectedOverlay",""]],inputs:{origin:[0,"cdkConnectedOverlayOrigin","origin"],positions:[0,"cdkConnectedOverlayPositions","positions"],positionStrategy:[0,"cdkConnectedOverlayPositionStrategy","positionStrategy"],offsetX:[0,"cdkConnectedOverlayOffsetX","offsetX"],offsetY:[0,"cdkConnectedOverlayOffsetY","offsetY"],width:[0,"cdkConnectedOverlayWidth","width"],height:[0,"cdkConnectedOverlayHeight","height"],minWidth:[0,"cdkConnectedOverlayMinWidth","minWidth"],minHeight:[0,"cdkConnectedOverlayMinHeight","minHeight"],backdropClass:[0,"cdkConnectedOverlayBackdropClass","backdropClass"],panelClass:[0,"cdkConnectedOverlayPanelClass","panelClass"],viewportMargin:[0,"cdkConnectedOverlayViewportMargin","viewportMargin"],scrollStrategy:[0,"cdkConnectedOverlayScrollStrategy","scrollStrategy"],open:[0,"cdkConnectedOverlayOpen","open"],disableClose:[0,"cdkConnectedOverlayDisableClose","disableClose"],transformOriginSelector:[0,"cdkConnectedOverlayTransformOriginOn","transformOriginSelector"],hasBackdrop:[2,"cdkConnectedOverlayHasBackdrop","hasBackdrop",X],lockPosition:[2,"cdkConnectedOverlayLockPosition","lockPosition",X],flexibleDimensions:[2,"cdkConnectedOverlayFlexibleDimensions","flexibleDimensions",X],growAfterOpen:[2,"cdkConnectedOverlayGrowAfterOpen","growAfterOpen",X],push:[2,"cdkConnectedOverlayPush","push",X],disposeOnNavigation:[2,"cdkConnectedOverlayDisposeOnNavigation","disposeOnNavigation",X]},outputs:{backdropClick:"backdropClick",positionChange:"positionChange",attach:"attach",detach:"detach",overlayKeydown:"overlayKeydown",overlayOutsideClick:"overlayOutsideClick"},exportAs:["cdkConnectedOverlay"],features:[Oe]})}return i})();function bM(i){return()=>i.scrollStrategies.reposition()}var vM={provide:Mv,deps:[Ke],useFactory:bM},Qt=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({providers:[Ke,vM],imports:[go,ji,Gs,Gs]})}return i})();function yM(i,n){}var bo=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;positionStrategy;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;scrollStrategy;closeOnNavigation=!0;closeOnDestroy=!0;closeOnOverlayDetachments=!0;componentFactoryResolver;providers;container;templateContext};var ph=(()=>{class i extends to{_elementRef=d(Z);_focusTrapFactory=d(id);_config;_interactivityChecker=d(nh);_ngZone=d(K);_overlayRef=d(tr);_focusMonitor=d(un);_renderer=d(tt);_changeDetectorRef=d(ye);_injector=d(ce);_platform=d(Se);_document=d(re,{optional:!0});_portalOutlet;_focusTrapped=new S;_focusTrap=null;_elementFocusedBeforeDialogWasOpened=null;_closeInteractionType=null;_ariaLabelledByQueue=[];_isDestroyed=!1;constructor(){super(),this._config=d(bo,{optional:!0})||new bo,this._config.ariaLabelledBy&&this._ariaLabelledByQueue.push(this._config.ariaLabelledBy)}_addAriaLabelledBy(e){this._ariaLabelledByQueue.push(e),this._changeDetectorRef.markForCheck()}_removeAriaLabelledBy(e){let t=this._ariaLabelledByQueue.indexOf(e);t>-1&&(this._ariaLabelledByQueue.splice(t,1),this._changeDetectorRef.markForCheck())}_contentAttached(){this._initializeFocusTrap(),this._handleBackdropClicks(),this._captureInitialFocus()}_captureInitialFocus(){this._trapFocus()}ngOnDestroy(){this._focusTrapped.complete(),this._isDestroyed=!0,this._restoreFocus()}attachComponentPortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._contentAttached(),t}attachTemplatePortal(e){this._portalOutlet.hasAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._contentAttached(),t}attachDomPortal=e=>{this._portalOutlet.hasAttached();let t=this._portalOutlet.attachDomPortal(e);return this._contentAttached(),t};_recaptureFocus(){this._containsFocus()||this._trapFocus()}_forceFocus(e,t){this._interactivityChecker.isFocusable(e)||(e.tabIndex=-1,this._ngZone.runOutsideAngular(()=>{let o=()=>{r(),a(),e.removeAttribute("tabindex")},r=this._renderer.listen(e,"blur",o),a=this._renderer.listen(e,"mousedown",o)})),e.focus(t)}_focusByCssSelector(e,t){let o=this._elementRef.nativeElement.querySelector(e);o&&this._forceFocus(o,t)}_trapFocus(e){this._isDestroyed||Et(()=>{let t=this._elementRef.nativeElement;switch(this._config.autoFocus){case!1:case"dialog":this._containsFocus()||t.focus(e);break;case!0:case"first-tabbable":this._focusTrap?.focusInitialElement(e)||this._focusDialogContainer(e);break;case"first-heading":this._focusByCssSelector('h1, h2, h3, h4, h5, h6, [role="heading"]',e);break;default:this._focusByCssSelector(this._config.autoFocus,e);break}this._focusTrapped.next()},{injector:this._injector})}_restoreFocus(){let e=this._config.restoreFocus,t=null;if(typeof e=="string"?t=this._document.querySelector(e):typeof e=="boolean"?t=e?this._elementFocusedBeforeDialogWasOpened:null:e&&(t=e),this._config.restoreFocus&&t&&typeof t.focus=="function"){let o=dn(),r=this._elementRef.nativeElement;(!o||o===this._document.body||o===r||r.contains(o))&&(this._focusMonitor?(this._focusMonitor.focusVia(t,this._closeInteractionType),this._closeInteractionType=null):t.focus())}this._focusTrap&&this._focusTrap.destroy()}_focusDialogContainer(e){this._elementRef.nativeElement.focus&&this._elementRef.nativeElement.focus(e)}_containsFocus(){let e=this._elementRef.nativeElement,t=dn();return e===t||e.contains(t)}_initializeFocusTrap(){this._platform.isBrowser&&(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement),this._document&&(this._elementFocusedBeforeDialogWasOpened=dn()))}_handleBackdropClicks(){this._overlayRef.backdropClick().subscribe(()=>{this._config.disableClose&&this._recaptureFocus()})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["cdk-dialog-container"]],viewQuery:function(t,o){if(t&1&&ge(Bi,7),t&2){let r;ee(r=te())&&(o._portalOutlet=r.first)}},hostAttrs:["tabindex","-1",1,"cdk-dialog-container"],hostVars:6,hostBindings:function(t,o){t&2&&Y("id",o._config.id||null)("role",o._config.role)("aria-modal",o._config.ariaModal)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null)},features:[xe],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,o){t&1&&w(0,yM,0,0,"ng-template",0)},dependencies:[Bi],styles:[`.cdk-dialog-container{display:block;width:100%;height:100%;min-height:inherit;max-height:inherit} -`],encapsulation:2})}return i})(),Ys=class{overlayRef;config;componentInstance;componentRef;containerInstance;disableClose;closed=new S;backdropClick;keydownEvents;outsidePointerEvents;id;_detachSubscription;constructor(n,e){this.overlayRef=n,this.config=e,this.disableClose=e.disableClose,this.backdropClick=n.backdropClick(),this.keydownEvents=n.keydownEvents(),this.outsidePointerEvents=n.outsidePointerEvents(),this.id=e.id,this.keydownEvents.subscribe(t=>{t.keyCode===27&&!this.disableClose&&!rt(t)&&(t.preventDefault(),this.close(void 0,{focusOrigin:"keyboard"}))}),this.backdropClick.subscribe(()=>{this.disableClose||this.close(void 0,{focusOrigin:"mouse"})}),this._detachSubscription=n.detachments().subscribe(()=>{e.closeOnOverlayDetachments!==!1&&this.close()})}close(n,e){if(this.containerInstance){let t=this.closed;this.containerInstance._closeInteractionType=e?.focusOrigin||"program",this._detachSubscription.unsubscribe(),this.overlayRef.dispose(),t.next(n),t.complete(),this.componentInstance=this.containerInstance=null}}updatePosition(){return this.overlayRef.updatePosition(),this}updateSize(n="",e=""){return this.overlayRef.updateSize({width:n,height:e}),this}addPanelClass(n){return this.overlayRef.addPanelClass(n),this}removePanelClass(n){return this.overlayRef.removePanelClass(n),this}},CM=new v("DialogScrollStrategy",{providedIn:"root",factory:()=>{let i=d(Ke);return()=>i.scrollStrategies.block()}}),xM=new v("DialogData"),wM=new v("DefaultDialogConfig");var hh=(()=>{class i{_overlay=d(Ke);_injector=d(ce);_defaultOptions=d(wM,{optional:!0});_parentDialog=d(i,{optional:!0,skipSelf:!0});_overlayContainer=d(gd);_idGenerator=d(Ye);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new S;_afterOpenedAtThisLevel=new S;_ariaHiddenElements=new Map;_scrollStrategy=d(CM);get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}afterAllClosed=vn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ot(void 0)));constructor(){}open(e,t){let o=this._defaultOptions||new bo;t=_(_({},o),t),t.id=t.id||this._idGenerator.getId("cdk-dialog-"),t.id&&this.getDialogById(t.id);let r=this._getOverlayConfig(t),a=this._overlay.create(r),s=new Ys(a,t),u=this._attachContainer(a,s,t);if(s.containerInstance=u,!this.openDialogs.length){let h=this._overlayContainer.getContainerElement();u._focusTrapped?u._focusTrapped.pipe(_e(1)).subscribe(()=>{this._hideNonDialogContentFromAssistiveTechnology(h)}):this._hideNonDialogContentFromAssistiveTechnology(h)}return this._attachDialogContent(e,s,u,t),this.openDialogs.push(s),s.closed.subscribe(()=>this._removeOpenDialog(s,!0)),this.afterOpened.next(s),s}closeAll(){mh(this.openDialogs,e=>e.close())}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){mh(this._openDialogsAtThisLevel,e=>{e.config.closeOnDestroy===!1&&this._removeOpenDialog(e,!1)}),mh(this._openDialogsAtThisLevel,e=>e.close()),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete(),this._openDialogsAtThisLevel=[]}_getOverlayConfig(e){let t=new Mi({positionStrategy:e.positionStrategy||this._overlay.position().global().centerHorizontally().centerVertically(),scrollStrategy:e.scrollStrategy||this._scrollStrategy(),panelClass:e.panelClass,hasBackdrop:e.hasBackdrop,direction:e.direction,minWidth:e.minWidth,minHeight:e.minHeight,maxWidth:e.maxWidth,maxHeight:e.maxHeight,width:e.width,height:e.height,disposeOnNavigation:e.closeOnNavigation});return e.backdropClass&&(t.backdropClass=e.backdropClass),t}_attachContainer(e,t,o){let r=o.injector||o.viewContainerRef?.injector,a=[{provide:bo,useValue:o},{provide:Ys,useValue:t},{provide:tr,useValue:e}],s;o.container?typeof o.container=="function"?s=o.container:(s=o.container.type,a.push(...o.container.providers(o))):s=ph;let u=new Zt(s,o.viewContainerRef,ce.create({parent:r||this._injector,providers:a}));return e.attach(u).instance}_attachDialogContent(e,t,o,r){if(e instanceof bi){let a=this._createInjector(r,t,o,void 0),s={$implicit:r.data,dialogRef:t};r.templateContext&&(s=_(_({},s),typeof r.templateContext=="function"?r.templateContext():r.templateContext)),o.attachTemplatePortal(new Di(e,null,s,a))}else{let a=this._createInjector(r,t,o,this._injector),s=o.attachComponentPortal(new Zt(e,r.viewContainerRef,a));t.componentRef=s,t.componentInstance=s.instance}}_createInjector(e,t,o,r){let a=e.injector||e.viewContainerRef?.injector,s=[{provide:xM,useValue:e.data},{provide:Ys,useValue:t}];return e.providers&&(typeof e.providers=="function"?s.push(...e.providers(t,e,o)):s.push(...e.providers)),e.direction&&(!a||!a.get(dt,null,{optional:!0}))&&s.push({provide:dt,useValue:{value:e.direction,change:T()}}),ce.create({parent:a||r,providers:s})}_removeOpenDialog(e,t){let o=this.openDialogs.indexOf(e);o>-1&&(this.openDialogs.splice(o,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((r,a)=>{r?a.setAttribute("aria-hidden",r):a.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),t&&this._getAfterAllClosed().next()))}_hideNonDialogContentFromAssistiveTechnology(e){if(e.parentElement){let t=e.parentElement.children;for(let o=t.length-1;o>-1;o--){let r=t[o];r!==e&&r.nodeName!=="SCRIPT"&&r.nodeName!=="STYLE"&&!r.hasAttribute("aria-live")&&(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}}}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();function mh(i,n){let e=i.length;for(;e--;)n(i[e])}var kv=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({providers:[hh],imports:[Qt,ji,Xo,ji]})}return i})();function $t(i){return i!=null&&`${i}`!="false"}function Sv(i,n=/\s+/){let e=[];if(i!=null){let t=Array.isArray(i)?i:`${i}`.split(n);for(let o of t){let r=`${o}`.trim();r&&e.push(r)}}return e}function MM(i,n){}var Ks=class{viewContainerRef;injector;id;role="dialog";panelClass="";hasBackdrop=!0;backdropClass="";disableClose=!1;width="";height="";minWidth;minHeight;maxWidth;maxHeight;position;data=null;direction;ariaDescribedBy=null;ariaLabelledBy=null;ariaLabel=null;ariaModal=!1;autoFocus="first-tabbable";restoreFocus=!0;delayFocusTrap=!0;scrollStrategy;closeOnNavigation=!0;componentFactoryResolver;enterAnimationDuration;exitAnimationDuration},fh="mdc-dialog--open",Ev="mdc-dialog--opening",Ov="mdc-dialog--closing",kM=150,SM=75,Iv=(()=>{class i extends ph{_animationMode=d(ze,{optional:!0});_animationStateChanged=new L;_animationsEnabled=this._animationMode!=="NoopAnimations";_actionSectionCount=0;_hostElement=this._elementRef.nativeElement;_enterAnimationDuration=this._animationsEnabled?Av(this._config.enterAnimationDuration)??kM:0;_exitAnimationDuration=this._animationsEnabled?Av(this._config.exitAnimationDuration)??SM:0;_animationTimer=null;_contentAttached(){super._contentAttached(),this._startOpenAnimation()}_startOpenAnimation(){this._animationStateChanged.emit({state:"opening",totalTime:this._enterAnimationDuration}),this._animationsEnabled?(this._hostElement.style.setProperty(Tv,`${this._enterAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Ev,fh)),this._waitForAnimationToComplete(this._enterAnimationDuration,this._finishDialogOpen)):(this._hostElement.classList.add(fh),Promise.resolve().then(()=>this._finishDialogOpen()))}_startExitAnimation(){this._animationStateChanged.emit({state:"closing",totalTime:this._exitAnimationDuration}),this._hostElement.classList.remove(fh),this._animationsEnabled?(this._hostElement.style.setProperty(Tv,`${this._exitAnimationDuration}ms`),this._requestAnimationFrame(()=>this._hostElement.classList.add(Ov)),this._waitForAnimationToComplete(this._exitAnimationDuration,this._finishDialogClose)):Promise.resolve().then(()=>this._finishDialogClose())}_updateActionSectionCount(e){this._actionSectionCount+=e,this._changeDetectorRef.markForCheck()}_finishDialogOpen=()=>{this._clearAnimationClasses(),this._openAnimationDone(this._enterAnimationDuration)};_finishDialogClose=()=>{this._clearAnimationClasses(),this._animationStateChanged.emit({state:"closed",totalTime:this._exitAnimationDuration})};_clearAnimationClasses(){this._hostElement.classList.remove(Ev,Ov)}_waitForAnimationToComplete(e,t){this._animationTimer!==null&&clearTimeout(this._animationTimer),this._animationTimer=setTimeout(t,e)}_requestAnimationFrame(e){this._ngZone.runOutsideAngular(()=>{typeof requestAnimationFrame=="function"?requestAnimationFrame(e):e()})}_captureInitialFocus(){this._config.delayFocusTrap||this._trapFocus()}_openAnimationDone(e){this._config.delayFocusTrap&&this._trapFocus(),this._animationStateChanged.next({state:"opened",totalTime:e})}ngOnDestroy(){super.ngOnDestroy(),this._animationTimer!==null&&clearTimeout(this._animationTimer)}attachComponentPortal(e){let t=super.attachComponentPortal(e);return t.location.nativeElement.classList.add("mat-mdc-dialog-component-host"),t}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ve(i)))(o||i)}})();static \u0275cmp=E({type:i,selectors:[["mat-dialog-container"]],hostAttrs:["tabindex","-1",1,"mat-mdc-dialog-container","mdc-dialog"],hostVars:10,hostBindings:function(t,o){t&2&&(vi("id",o._config.id),Y("aria-modal",o._config.ariaModal)("role",o._config.role)("aria-labelledby",o._config.ariaLabel?null:o._ariaLabelledByQueue[0])("aria-label",o._config.ariaLabel)("aria-describedby",o._config.ariaDescribedBy||null),j("_mat-animation-noopable",!o._animationsEnabled)("mat-mdc-dialog-container-with-actions",o._actionSectionCount>0))},features:[xe],decls:3,vars:0,consts:[[1,"mat-mdc-dialog-inner-container","mdc-dialog__container"],[1,"mat-mdc-dialog-surface","mdc-dialog__surface"],["cdkPortalOutlet",""]],template:function(t,o){t&1&&(l(0,"div",0)(1,"div",1),w(2,MM,0,0,"ng-template",2),c()())},dependencies:[Bi],styles:[`.mat-mdc-dialog-container{width:100%;height:100%;display:block;box-sizing:border-box;max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;outline:0}.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-max-width, 560px);min-width:var(--mat-dialog-container-min-width, 280px)}@media(max-width: 599px){.cdk-overlay-pane.mat-mdc-dialog-panel{max-width:var(--mat-dialog-container-small-max-width, calc(100vw - 32px))}}.mat-mdc-dialog-inner-container{display:flex;flex-direction:row;align-items:center;justify-content:space-around;box-sizing:border-box;height:100%;opacity:0;transition:opacity linear var(--mat-dialog-transition-duration, 0ms);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit}.mdc-dialog--closing .mat-mdc-dialog-inner-container{transition:opacity 75ms linear;transform:none}.mdc-dialog--open .mat-mdc-dialog-inner-container{opacity:1}._mat-animation-noopable .mat-mdc-dialog-inner-container{transition:none}.mat-mdc-dialog-surface{display:flex;flex-direction:column;flex-grow:0;flex-shrink:0;box-sizing:border-box;width:100%;height:100%;position:relative;overflow-y:auto;outline:0;transform:scale(0.8);transition:transform var(--mat-dialog-transition-duration, 0ms) cubic-bezier(0, 0, 0.2, 1);max-height:inherit;min-height:inherit;min-width:inherit;max-width:inherit;box-shadow:var(--mat-dialog-container-elevation-shadow, none);border-radius:var(--mdc-dialog-container-shape, var(--mat-sys-corner-extra-large, 4px));background-color:var(--mdc-dialog-container-color, var(--mat-sys-surface, white))}[dir=rtl] .mat-mdc-dialog-surface{text-align:right}.mdc-dialog--open .mat-mdc-dialog-surface,.mdc-dialog--closing .mat-mdc-dialog-surface{transform:none}._mat-animation-noopable .mat-mdc-dialog-surface{transition:none}.mat-mdc-dialog-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:2px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-dialog-title{display:block;position:relative;flex-shrink:0;box-sizing:border-box;margin:0 0 1px;padding:var(--mat-dialog-headline-padding, 6px 24px 13px)}.mat-mdc-dialog-title::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}[dir=rtl] .mat-mdc-dialog-title{text-align:right}.mat-mdc-dialog-container .mat-mdc-dialog-title{color:var(--mdc-dialog-subhead-color, var(--mat-sys-on-surface, rgba(0, 0, 0, 0.87)));font-family:var(--mdc-dialog-subhead-font, var(--mat-sys-headline-small-font, inherit));line-height:var(--mdc-dialog-subhead-line-height, var(--mat-sys-headline-small-line-height, 1.5rem));font-size:var(--mdc-dialog-subhead-size, var(--mat-sys-headline-small-size, 1rem));font-weight:var(--mdc-dialog-subhead-weight, var(--mat-sys-headline-small-weight, 400));letter-spacing:var(--mdc-dialog-subhead-tracking, var(--mat-sys-headline-small-tracking, 0.03125em))}.mat-mdc-dialog-content{display:block;flex-grow:1;box-sizing:border-box;margin:0;overflow:auto;max-height:65vh}.mat-mdc-dialog-content>:first-child{margin-top:0}.mat-mdc-dialog-content>:last-child{margin-bottom:0}.mat-mdc-dialog-container .mat-mdc-dialog-content{color:var(--mdc-dialog-supporting-text-color, var(--mat-sys-on-surface-variant, rgba(0, 0, 0, 0.6)));font-family:var(--mdc-dialog-supporting-text-font, var(--mat-sys-body-medium-font, inherit));line-height:var(--mdc-dialog-supporting-text-line-height, var(--mat-sys-body-medium-line-height, 1.5rem));font-size:var(--mdc-dialog-supporting-text-size, var(--mat-sys-body-medium-size, 1rem));font-weight:var(--mdc-dialog-supporting-text-weight, var(--mat-sys-body-medium-weight, 400));letter-spacing:var(--mdc-dialog-supporting-text-tracking, var(--mat-sys-body-medium-tracking, 0.03125em))}.mat-mdc-dialog-container .mat-mdc-dialog-content{padding:var(--mat-dialog-content-padding, 20px 24px)}.mat-mdc-dialog-container-with-actions .mat-mdc-dialog-content{padding:var(--mat-dialog-with-actions-content-padding, 20px 24px 0)}.mat-mdc-dialog-container .mat-mdc-dialog-title+.mat-mdc-dialog-content{padding-top:0}.mat-mdc-dialog-actions{display:flex;position:relative;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;box-sizing:border-box;min-height:52px;margin:0;padding:8px;border-top:1px solid rgba(0,0,0,0);padding:var(--mat-dialog-actions-padding, 16px 24px);justify-content:var(--mat-dialog-actions-alignment, flex-end)}@media(forced-colors: active){.mat-mdc-dialog-actions{border-top-color:CanvasText}}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-start,.mat-mdc-dialog-actions[align=start]{justify-content:start}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-center,.mat-mdc-dialog-actions[align=center]{justify-content:center}.mat-mdc-dialog-actions.mat-mdc-dialog-actions-align-end,.mat-mdc-dialog-actions[align=end]{justify-content:flex-end}.mat-mdc-dialog-actions .mat-button-base+.mat-button-base,.mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:8px}[dir=rtl] .mat-mdc-dialog-actions .mat-button-base+.mat-button-base,[dir=rtl] .mat-mdc-dialog-actions .mat-mdc-button-base+.mat-mdc-button-base{margin-left:0;margin-right:8px}.mat-mdc-dialog-component-host{display:contents} -`],encapsulation:2})}return i})(),Tv="--mat-dialog-transition-duration";function Av(i){return i==null?null:typeof i=="number"?i:i.endsWith("ms")?Ut(i.substring(0,i.length-2)):i.endsWith("s")?Ut(i.substring(0,i.length-1))*1e3:i==="0"?0:null}var qs=function(i){return i[i.OPEN=0]="OPEN",i[i.CLOSING=1]="CLOSING",i[i.CLOSED=2]="CLOSED",i}(qs||{}),Dt=class{_ref;_containerInstance;componentInstance;componentRef;disableClose;id;_afterOpened=new S;_beforeClosed=new S;_result;_closeFallbackTimeout;_state=qs.OPEN;_closeInteractionType;constructor(n,e,t){this._ref=n,this._containerInstance=t,this.disableClose=e.disableClose,this.id=n.id,n.addPanelClass("mat-mdc-dialog-panel"),t._animationStateChanged.pipe(le(o=>o.state==="opened"),_e(1)).subscribe(()=>{this._afterOpened.next(),this._afterOpened.complete()}),t._animationStateChanged.pipe(le(o=>o.state==="closed"),_e(1)).subscribe(()=>{clearTimeout(this._closeFallbackTimeout),this._finishDialogClose()}),n.overlayRef.detachments().subscribe(()=>{this._beforeClosed.next(this._result),this._beforeClosed.complete(),this._finishDialogClose()}),Le(this.backdropClick(),this.keydownEvents().pipe(le(o=>o.keyCode===27&&!this.disableClose&&!rt(o)))).subscribe(o=>{this.disableClose||(o.preventDefault(),Pv(this,o.type==="keydown"?"keyboard":"mouse"))})}close(n){this._result=n,this._containerInstance._animationStateChanged.pipe(le(e=>e.state==="closing"),_e(1)).subscribe(e=>{this._beforeClosed.next(n),this._beforeClosed.complete(),this._ref.overlayRef.detachBackdrop(),this._closeFallbackTimeout=setTimeout(()=>this._finishDialogClose(),e.totalTime+100)}),this._state=qs.CLOSING,this._containerInstance._startExitAnimation()}afterOpened(){return this._afterOpened}afterClosed(){return this._ref.closed}beforeClosed(){return this._beforeClosed}backdropClick(){return this._ref.backdropClick}keydownEvents(){return this._ref.keydownEvents}updatePosition(n){let e=this._ref.config.positionStrategy;return n&&(n.left||n.right)?n.left?e.left(n.left):e.right(n.right):e.centerHorizontally(),n&&(n.top||n.bottom)?n.top?e.top(n.top):e.bottom(n.bottom):e.centerVertically(),this._ref.updatePosition(),this}updateSize(n="",e=""){return this._ref.updateSize(n,e),this}addPanelClass(n){return this._ref.addPanelClass(n),this}removePanelClass(n){return this._ref.removePanelClass(n),this}getState(){return this._state}_finishDialogClose(){this._state=qs.CLOSED,this._ref.close(this._result,{focusOrigin:this._closeInteractionType}),this.componentInstance=null}};function Pv(i,n,e){return i._closeInteractionType=n,i.close(e)}var ci=new v("MatMdcDialogData"),Rv=new v("mat-mdc-dialog-default-options"),Fv=new v("mat-mdc-dialog-scroll-strategy",{providedIn:"root",factory:()=>{let i=d(Ke);return()=>i.scrollStrategies.block()}});var Nn=(()=>{class i{_overlay=d(Ke);_defaultOptions=d(Rv,{optional:!0});_scrollStrategy=d(Fv);_parentDialog=d(i,{optional:!0,skipSelf:!0});_idGenerator=d(Ye);_dialog=d(hh);_openDialogsAtThisLevel=[];_afterAllClosedAtThisLevel=new S;_afterOpenedAtThisLevel=new S;dialogConfigClass=Ks;_dialogRefConstructor;_dialogContainerType;_dialogDataToken;get openDialogs(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel}get afterOpened(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel}_getAfterAllClosed(){let e=this._parentDialog;return e?e._getAfterAllClosed():this._afterAllClosedAtThisLevel}afterAllClosed=vn(()=>this.openDialogs.length?this._getAfterAllClosed():this._getAfterAllClosed().pipe(ot(void 0)));constructor(){this._dialogRefConstructor=Dt,this._dialogContainerType=Iv,this._dialogDataToken=ci}open(e,t){let o;t=_(_({},this._defaultOptions||new Ks),t),t.id=t.id||this._idGenerator.getId("mat-mdc-dialog-"),t.scrollStrategy=t.scrollStrategy||this._scrollStrategy();let r=this._dialog.open(e,O(_({},t),{positionStrategy:this._overlay.position().global().centerHorizontally().centerVertically(),disableClose:!0,closeOnDestroy:!1,closeOnOverlayDetachments:!1,container:{type:this._dialogContainerType,providers:()=>[{provide:this.dialogConfigClass,useValue:t},{provide:bo,useValue:t}]},templateContext:()=>({dialogRef:o}),providers:(a,s,u)=>(o=new this._dialogRefConstructor(a,t,u),o.updatePosition(t?.position),[{provide:this._dialogContainerType,useValue:u},{provide:this._dialogDataToken,useValue:s.data},{provide:this._dialogRefConstructor,useValue:o}])}));return o.componentRef=r.componentRef,o.componentInstance=r.componentInstance,this.openDialogs.push(o),this.afterOpened.next(o),o.afterClosed().subscribe(()=>{let a=this.openDialogs.indexOf(o);a>-1&&(this.openDialogs.splice(a,1),this.openDialogs.length||this._getAfterAllClosed().next())}),o}closeAll(){this._closeDialogs(this.openDialogs)}getDialogById(e){return this.openDialogs.find(t=>t.id===e)}ngOnDestroy(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()}_closeDialogs(e){let t=e.length;for(;t--;)e[t].close()}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Vt=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({providers:[Nn],imports:[kv,Qt,ji,se,se]})}return i})();var Gr,Nv=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function gh(){if(Gr)return Gr;if(typeof document!="object"||!document)return Gr=new Set(Nv),Gr;let i=document.createElement("input");return Gr=new Set(Nv.filter(n=>(i.setAttribute("type",n),i.type===n))),Gr}var _h=class{_box;_destroyed=new S;_resizeSubject=new S;_resizeObserver;_elementObservables=new Map;constructor(n){this._box=n,typeof ResizeObserver<"u"&&(this._resizeObserver=new ResizeObserver(e=>this._resizeSubject.next(e)))}observe(n){return this._elementObservables.has(n)||this._elementObservables.set(n,new mt(e=>{let t=this._resizeSubject.subscribe(e);return this._resizeObserver?.observe(n,{box:this._box}),()=>{this._resizeObserver?.unobserve(n),t.unsubscribe(),this._elementObservables.delete(n)}}).pipe(le(e=>e.some(t=>t.target===n)),Im({bufferSize:1,refCount:!0}),pe(this._destroyed))),this._elementObservables.get(n)}destroy(){this._destroyed.next(),this._destroyed.complete(),this._resizeSubject.complete(),this._elementObservables.clear()}},Lv=(()=>{class i{_cleanupErrorListener;_observers=new Map;_ngZone=d(K);constructor(){typeof ResizeObserver<"u"}ngOnDestroy(){for(let[,e]of this._observers)e.destroy();this._observers.clear(),this._cleanupErrorListener?.()}observe(e,t){let o=t?.box||"content-box";return this._observers.has(o)||this._observers.set(o,new _h(o)),this._observers.get(o).observe(e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var EM=["notch"],OM=["matFormFieldNotchedOutline",""],TM=["*"],AM=["textField"],IM=["iconPrefixContainer"],PM=["textPrefixContainer"],RM=["iconSuffixContainer"],FM=["textSuffixContainer"],NM=["*",[["mat-label"]],[["","matPrefix",""],["","matIconPrefix",""]],[["","matTextPrefix",""]],[["","matTextSuffix",""]],[["","matSuffix",""],["","matIconSuffix",""]],[["mat-error"],["","matError",""]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],LM=["*","mat-label","[matPrefix], [matIconPrefix]","[matTextPrefix]","[matTextSuffix]","[matSuffix], [matIconSuffix]","mat-error, [matError]","mat-hint:not([align='end'])","mat-hint[align='end']"];function VM(i,n){i&1&&M(0,"span",20)}function BM(i,n){if(i&1&&(l(0,"label",19),ae(1,1),w(2,VM,1,0,"span",20),c()),i&2){let e=f(2);x("floating",e._shouldLabelFloat())("monitorResize",e._hasOutline())("id",e._labelId),Y("for",e._control.disableAutomaticLabeling?null:e._control.id),m(2),C(!e.hideRequiredMarker&&e._control.required?2:-1)}}function jM(i,n){if(i&1&&w(0,BM,3,5,"label",19),i&2){let e=f();C(e._hasFloatingLabel()?0:-1)}}function zM(i,n){i&1&&M(0,"div",7)}function UM(i,n){}function HM(i,n){if(i&1&&w(0,UM,0,0,"ng-template",13),i&2){f(2);let e=ft(1);x("ngTemplateOutlet",e)}}function $M(i,n){if(i&1&&(l(0,"div",9),w(1,HM,1,1,null,13),c()),i&2){let e=f();x("matFormFieldNotchedOutlineOpen",e._shouldLabelFloat()),m(),C(e._forceDisplayInfixLabel()?-1:1)}}function GM(i,n){i&1&&(l(0,"div",10,2),ae(2,2),c())}function WM(i,n){i&1&&(l(0,"div",11,3),ae(2,3),c())}function YM(i,n){}function qM(i,n){if(i&1&&w(0,YM,0,0,"ng-template",13),i&2){f();let e=ft(1);x("ngTemplateOutlet",e)}}function KM(i,n){i&1&&(l(0,"div",14,4),ae(2,4),c())}function ZM(i,n){i&1&&(l(0,"div",15,5),ae(2,5),c())}function QM(i,n){i&1&&M(0,"div",16)}function XM(i,n){i&1&&ae(0,6)}function JM(i,n){if(i&1&&(l(0,"mat-hint",21),p(1),c()),i&2){let e=f(2);x("id",e._hintLabelId),m(),$(e.hintLabel)}}function ek(i,n){if(i&1&&(w(0,JM,2,2,"mat-hint",21),ae(1,7),M(2,"div",22),ae(3,8)),i&2){let e=f();C(e.hintLabel?0:-1)}}var Xt=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["mat-label"]]})}return i})(),bh=new v("MatError"),hn=(()=>{class i{id=d(Ye).getId("mat-mdc-error-");constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["mat-error"],["","matError",""]],hostAttrs:[1,"mat-mdc-form-field-error","mat-mdc-form-field-bottom-align"],hostVars:1,hostBindings:function(t,o){t&2&&vi("id",o.id)},inputs:{id:"id"},features:[Me([{provide:bh,useExisting:i}])]})}return i})(),Zs=(()=>{class i{align="start";id=d(Ye).getId("mat-mdc-hint-");static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["mat-hint"]],hostAttrs:[1,"mat-mdc-form-field-hint","mat-mdc-form-field-bottom-align"],hostVars:4,hostBindings:function(t,o){t&2&&(vi("id",o.id),Y("align",null),j("mat-mdc-form-field-hint-end",o.align==="end"))},inputs:{align:"align",id:"id"}})}return i})(),$v=new v("MatPrefix");var vh=new v("MatSuffix"),yh=(()=>{class i{set _isTextSelector(e){this._isText=!0}_isText=!1;static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","matSuffix",""],["","matIconSuffix",""],["","matTextSuffix",""]],inputs:{_isTextSelector:[0,"matTextSuffix","_isTextSelector"]},features:[Me([{provide:vh,useExisting:i}])]})}return i})(),Gv=new v("FloatingLabelParent"),Vv=(()=>{class i{_elementRef=d(Z);get floating(){return this._floating}set floating(e){this._floating=e,this.monitorResize&&this._handleResize()}_floating=!1;get monitorResize(){return this._monitorResize}set monitorResize(e){this._monitorResize=e,this._monitorResize?this._subscribeToResize():this._resizeSubscription.unsubscribe()}_monitorResize=!1;_resizeObserver=d(Lv);_ngZone=d(K);_parent=d(Gv);_resizeSubscription=new ie;constructor(){}ngOnDestroy(){this._resizeSubscription.unsubscribe()}getWidth(){return tk(this._elementRef.nativeElement)}get element(){return this._elementRef.nativeElement}_handleResize(){setTimeout(()=>this._parent._handleLabelResized())}_subscribeToResize(){this._resizeSubscription.unsubscribe(),this._ngZone.runOutsideAngular(()=>{this._resizeSubscription=this._resizeObserver.observe(this._elementRef.nativeElement,{box:"border-box"}).subscribe(()=>this._handleResize())})}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["label","matFormFieldFloatingLabel",""]],hostAttrs:[1,"mdc-floating-label","mat-mdc-floating-label"],hostVars:2,hostBindings:function(t,o){t&2&&j("mdc-floating-label--float-above",o.floating)},inputs:{floating:"floating",monitorResize:"monitorResize"}})}return i})();function tk(i){let n=i;if(n.offsetParent!==null)return n.scrollWidth;let e=n.cloneNode(!0);e.style.setProperty("position","absolute"),e.style.setProperty("transform","translate(-9999px, -9999px)"),document.documentElement.appendChild(e);let t=e.scrollWidth;return e.remove(),t}var Bv="mdc-line-ripple--active",bd="mdc-line-ripple--deactivating",jv=(()=>{class i{_elementRef=d(Z);_cleanupTransitionEnd;constructor(){let e=d(K),t=d(tt);e.runOutsideAngular(()=>{this._cleanupTransitionEnd=t.listen(this._elementRef.nativeElement,"transitionend",this._handleTransitionEnd)})}activate(){let e=this._elementRef.nativeElement.classList;e.remove(bd),e.add(Bv)}deactivate(){this._elementRef.nativeElement.classList.add(bd)}_handleTransitionEnd=e=>{let t=this._elementRef.nativeElement.classList,o=t.contains(bd);e.propertyName==="opacity"&&o&&t.remove(Bv,bd)};ngOnDestroy(){this._cleanupTransitionEnd()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["div","matFormFieldLineRipple",""]],hostAttrs:[1,"mdc-line-ripple"]})}return i})(),zv=(()=>{class i{_elementRef=d(Z);_ngZone=d(K);open=!1;_notch;constructor(){}ngAfterViewInit(){let e=this._elementRef.nativeElement.querySelector(".mdc-floating-label");e?(this._elementRef.nativeElement.classList.add("mdc-notched-outline--upgraded"),typeof requestAnimationFrame=="function"&&(e.style.transitionDuration="0s",this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>e.style.transitionDuration="")}))):this._elementRef.nativeElement.classList.add("mdc-notched-outline--no-label")}_setNotchWidth(e){!this.open||!e?this._notch.nativeElement.style.width="":this._notch.nativeElement.style.width=`calc(${e}px * var(--mat-mdc-form-field-floating-label-scale, 0.75) + 9px)`}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["div","matFormFieldNotchedOutline",""]],viewQuery:function(t,o){if(t&1&&ge(EM,5),t&2){let r;ee(r=te())&&(o._notch=r.first)}},hostAttrs:[1,"mdc-notched-outline"],hostVars:2,hostBindings:function(t,o){t&2&&j("mdc-notched-outline--notched",o.open)},inputs:{open:[0,"matFormFieldNotchedOutlineOpen","open"]},attrs:OM,ngContentSelectors:TM,decls:5,vars:0,consts:[["notch",""],[1,"mat-mdc-notch-piece","mdc-notched-outline__leading"],[1,"mat-mdc-notch-piece","mdc-notched-outline__notch"],[1,"mat-mdc-notch-piece","mdc-notched-outline__trailing"]],template:function(t,o){t&1&&(Te(),M(0,"div",1),l(1,"div",2,0),ae(3),c(),M(4,"div",3))},encapsulation:2,changeDetection:0})}return i})(),ir=(()=>{class i{value;stateChanges;id;placeholder;ngControl;focused;empty;shouldLabelFloat;required;disabled;errorState;controlType;autofilled;userAriaDescribedBy;disableAutomaticLabeling;static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i})}return i})();var vo=new v("MatFormField"),Wv=new v("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Uv="fill",ik="auto",Hv="fixed",nk="translateY(-50%)",fn=(()=>{class i{_elementRef=d(Z);_changeDetectorRef=d(ye);_dir=d(dt);_platform=d(Se);_idGenerator=d(Ye);_ngZone=d(K);_injector=d(ce);_defaults=d(Wv,{optional:!0});_textField;_iconPrefixContainer;_textPrefixContainer;_iconSuffixContainer;_textSuffixContainer;_floatingLabel;_notchedOutline;_lineRipple;_formFieldControl;_prefixChildren;_suffixChildren;_errorChildren;_hintChildren;_labelChild=kg(Xt);get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(e){this._hideRequiredMarker=$t(e)}_hideRequiredMarker=!1;color="primary";get floatLabel(){return this._floatLabel||this._defaults?.floatLabel||ik}set floatLabel(e){e!==this._floatLabel&&(this._floatLabel=e,this._changeDetectorRef.markForCheck())}_floatLabel;get appearance(){return this._appearance}set appearance(e){let t=this._appearance,o=e||this._defaults?.appearance||Uv;this._appearance=o,this._appearance==="outline"&&this._appearance!==t&&(this._needsOutlineLabelOffsetUpdate=!0)}_appearance=Uv;get subscriptSizing(){return this._subscriptSizing||this._defaults?.subscriptSizing||Hv}set subscriptSizing(e){this._subscriptSizing=e||this._defaults?.subscriptSizing||Hv}_subscriptSizing=null;get hintLabel(){return this._hintLabel}set hintLabel(e){this._hintLabel=e,this._processHints()}_hintLabel="";_hasIconPrefix=!1;_hasTextPrefix=!1;_hasIconSuffix=!1;_hasTextSuffix=!1;_labelId=this._idGenerator.getId("mat-mdc-form-field-label-");_hintLabelId=this._idGenerator.getId("mat-mdc-hint-");get _control(){return this._explicitFormFieldControl||this._formFieldControl}set _control(e){this._explicitFormFieldControl=e}_destroyed=new S;_isFocused=null;_explicitFormFieldControl;_needsOutlineLabelOffsetUpdate=!1;_previousControl=null;_previousControlValidatorFn=null;_stateChanges;_valueChanges;_describedByChanges;_animationsDisabled;constructor(){let e=this._defaults;e&&(e.appearance&&(this.appearance=e.appearance),this._hideRequiredMarker=!!e?.hideRequiredMarker,e.color&&(this.color=e.color)),this._animationsDisabled=d(ze,{optional:!0})==="NoopAnimations"}ngAfterViewInit(){this._updateFocusState(),this._animationsDisabled||this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-form-field-animations-enabled")},300)}),this._changeDetectorRef.detectChanges()}ngAfterContentInit(){this._assertFormFieldControl(),this._initializeSubscript(),this._initializePrefixAndSuffix(),this._initializeOutlineLabelOffsetSubscriptions()}ngAfterContentChecked(){this._assertFormFieldControl(),this._control!==this._previousControl&&(this._initializeControl(this._previousControl),this._control.ngControl&&this._control.ngControl.control&&(this._previousControlValidatorFn=this._control.ngControl.control.validator),this._previousControl=this._control),this._control.ngControl&&this._control.ngControl.control&&this._control.ngControl.control.validator!==this._previousControlValidatorFn&&this._changeDetectorRef.markForCheck()}ngOnDestroy(){this._stateChanges?.unsubscribe(),this._valueChanges?.unsubscribe(),this._describedByChanges?.unsubscribe(),this._destroyed.next(),this._destroyed.complete()}getLabelId=oi(()=>this._hasFloatingLabel()?this._labelId:null);getConnectedOverlayOrigin(){return this._textField||this._elementRef}_animateAndLockLabel(){this._hasFloatingLabel()&&(this.floatLabel="always")}_initializeControl(e){let t=this._control,o="mat-mdc-form-field-type-";e&&this._elementRef.nativeElement.classList.remove(o+e.controlType),t.controlType&&this._elementRef.nativeElement.classList.add(o+t.controlType),this._stateChanges?.unsubscribe(),this._stateChanges=t.stateChanges.subscribe(()=>{this._updateFocusState(),this._changeDetectorRef.markForCheck()}),this._describedByChanges?.unsubscribe(),this._describedByChanges=t.stateChanges.pipe(ot([void 0,void 0]),A(()=>[t.errorState,t.userAriaDescribedBy]),Am(),le(([[r,a],[s,u]])=>r!==s||a!==u)).subscribe(()=>this._syncDescribedByIds()),this._valueChanges?.unsubscribe(),t.ngControl&&t.ngControl.valueChanges&&(this._valueChanges=t.ngControl.valueChanges.pipe(pe(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()))}_checkPrefixAndSuffixTypes(){this._hasIconPrefix=!!this._prefixChildren.find(e=>!e._isText),this._hasTextPrefix=!!this._prefixChildren.find(e=>e._isText),this._hasIconSuffix=!!this._suffixChildren.find(e=>!e._isText),this._hasTextSuffix=!!this._suffixChildren.find(e=>e._isText)}_initializePrefixAndSuffix(){this._checkPrefixAndSuffixTypes(),Le(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._checkPrefixAndSuffixTypes(),this._changeDetectorRef.markForCheck()})}_initializeSubscript(){this._hintChildren.changes.subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._validateHints(),this._syncDescribedByIds()}_assertFormFieldControl(){this._control}_updateFocusState(){this._control.focused&&!this._isFocused?(this._isFocused=!0,this._lineRipple?.activate()):!this._control.focused&&(this._isFocused||this._isFocused===null)&&(this._isFocused=!1,this._lineRipple?.deactivate()),this._textField?.nativeElement.classList.toggle("mdc-text-field--focused",this._control.focused)}_initializeOutlineLabelOffsetSubscriptions(){this._prefixChildren.changes.subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0),_r(()=>{this._needsOutlineLabelOffsetUpdate&&(this._needsOutlineLabelOffsetUpdate=!1,this._updateOutlineLabelOffset())},{injector:this._injector}),this._dir.change.pipe(pe(this._destroyed)).subscribe(()=>this._needsOutlineLabelOffsetUpdate=!0)}_shouldAlwaysFloat(){return this.floatLabel==="always"}_hasOutline(){return this.appearance==="outline"}_forceDisplayInfixLabel(){return!this._platform.isBrowser&&this._prefixChildren.length&&!this._shouldLabelFloat()}_hasFloatingLabel=oi(()=>!!this._labelChild());_shouldLabelFloat(){return this._hasFloatingLabel()?this._control.shouldLabelFloat||this._shouldAlwaysFloat():!1}_shouldForward(e){let t=this._control?this._control.ngControl:null;return t&&t[e]}_getSubscriptMessageType(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_handleLabelResized(){this._refreshOutlineNotchWidth()}_refreshOutlineNotchWidth(){!this._hasOutline()||!this._floatingLabel||!this._shouldLabelFloat()?this._notchedOutline?._setNotchWidth(0):this._notchedOutline?._setNotchWidth(this._floatingLabel.getWidth())}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){this._hintChildren}_syncDescribedByIds(){if(this._control){let e=[];if(this._control.userAriaDescribedBy&&typeof this._control.userAriaDescribedBy=="string"&&e.push(...this._control.userAriaDescribedBy.split(" ")),this._getSubscriptMessageType()==="hint"){let t=this._hintChildren?this._hintChildren.find(r=>r.align==="start"):null,o=this._hintChildren?this._hintChildren.find(r=>r.align==="end"):null;t?e.push(t.id):this._hintLabel&&e.push(this._hintLabelId),o&&e.push(o.id)}else this._errorChildren&&e.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(e)}}_updateOutlineLabelOffset(){if(!this._hasOutline()||!this._floatingLabel)return;let e=this._floatingLabel.element;if(!(this._iconPrefixContainer||this._textPrefixContainer)){e.style.transform="";return}if(!this._isAttachedToDom()){this._needsOutlineLabelOffsetUpdate=!0;return}let t=this._iconPrefixContainer?.nativeElement,o=this._textPrefixContainer?.nativeElement,r=this._iconSuffixContainer?.nativeElement,a=this._textSuffixContainer?.nativeElement,s=t?.getBoundingClientRect().width??0,u=o?.getBoundingClientRect().width??0,h=r?.getBoundingClientRect().width??0,g=a?.getBoundingClientRect().width??0,y=this._dir.value==="rtl"?"-1":"1",R=`${s+u}px`,H=`calc(${y} * (${R} + var(--mat-mdc-form-field-label-offset-x, 0px)))`;e.style.transform=`var( - --mat-mdc-form-field-label-transform, - ${nk} translateX(${H}) - )`;let B=s+u+h+g;this._elementRef.nativeElement.style.setProperty("--mat-form-field-notch-max-width",`calc(100% - ${B}px)`)}_isAttachedToDom(){let e=this._elementRef.nativeElement;if(e.getRootNode){let t=e.getRootNode();return t&&t!==e}return document.documentElement.contains(e)}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-form-field"]],contentQueries:function(t,o,r){if(t&1&&(Ag(r,o._labelChild,Xt,5),it(r,ir,5),it(r,$v,5),it(r,vh,5),it(r,bh,5),it(r,Zs,5)),t&2){Ig();let a;ee(a=te())&&(o._formFieldControl=a.first),ee(a=te())&&(o._prefixChildren=a),ee(a=te())&&(o._suffixChildren=a),ee(a=te())&&(o._errorChildren=a),ee(a=te())&&(o._hintChildren=a)}},viewQuery:function(t,o){if(t&1&&(ge(AM,5),ge(IM,5),ge(PM,5),ge(RM,5),ge(FM,5),ge(Vv,5),ge(zv,5),ge(jv,5)),t&2){let r;ee(r=te())&&(o._textField=r.first),ee(r=te())&&(o._iconPrefixContainer=r.first),ee(r=te())&&(o._textPrefixContainer=r.first),ee(r=te())&&(o._iconSuffixContainer=r.first),ee(r=te())&&(o._textSuffixContainer=r.first),ee(r=te())&&(o._floatingLabel=r.first),ee(r=te())&&(o._notchedOutline=r.first),ee(r=te())&&(o._lineRipple=r.first)}},hostAttrs:[1,"mat-mdc-form-field"],hostVars:40,hostBindings:function(t,o){t&2&&j("mat-mdc-form-field-label-always-float",o._shouldAlwaysFloat())("mat-mdc-form-field-has-icon-prefix",o._hasIconPrefix)("mat-mdc-form-field-has-icon-suffix",o._hasIconSuffix)("mat-form-field-invalid",o._control.errorState)("mat-form-field-disabled",o._control.disabled)("mat-form-field-autofilled",o._control.autofilled)("mat-form-field-appearance-fill",o.appearance=="fill")("mat-form-field-appearance-outline",o.appearance=="outline")("mat-form-field-hide-placeholder",o._hasFloatingLabel()&&!o._shouldLabelFloat())("mat-focused",o._control.focused)("mat-primary",o.color!=="accent"&&o.color!=="warn")("mat-accent",o.color==="accent")("mat-warn",o.color==="warn")("ng-untouched",o._shouldForward("untouched"))("ng-touched",o._shouldForward("touched"))("ng-pristine",o._shouldForward("pristine"))("ng-dirty",o._shouldForward("dirty"))("ng-valid",o._shouldForward("valid"))("ng-invalid",o._shouldForward("invalid"))("ng-pending",o._shouldForward("pending"))},inputs:{hideRequiredMarker:"hideRequiredMarker",color:"color",floatLabel:"floatLabel",appearance:"appearance",subscriptSizing:"subscriptSizing",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[Me([{provide:vo,useExisting:i},{provide:Gv,useExisting:i}])],ngContentSelectors:LM,decls:20,vars:25,consts:[["labelTemplate",""],["textField",""],["iconPrefixContainer",""],["textPrefixContainer",""],["textSuffixContainer",""],["iconSuffixContainer",""],[1,"mat-mdc-text-field-wrapper","mdc-text-field",3,"click"],[1,"mat-mdc-form-field-focus-overlay"],[1,"mat-mdc-form-field-flex"],["matFormFieldNotchedOutline","",3,"matFormFieldNotchedOutlineOpen"],[1,"mat-mdc-form-field-icon-prefix"],[1,"mat-mdc-form-field-text-prefix"],[1,"mat-mdc-form-field-infix"],[3,"ngTemplateOutlet"],[1,"mat-mdc-form-field-text-suffix"],[1,"mat-mdc-form-field-icon-suffix"],["matFormFieldLineRipple",""],[1,"mat-mdc-form-field-subscript-wrapper","mat-mdc-form-field-bottom-align"],["aria-atomic","true","aria-live","polite"],["matFormFieldFloatingLabel","",3,"floating","monitorResize","id"],["aria-hidden","true",1,"mat-mdc-form-field-required-marker","mdc-floating-label--required"],[3,"id"],[1,"mat-mdc-form-field-hint-spacer"]],template:function(t,o){if(t&1){let r=Q();Te(NM),w(0,jM,1,1,"ng-template",null,0,Za),l(2,"div",6,1),b("click",function(s){return I(r),P(o._control.onContainerClick(s))}),w(4,zM,1,0,"div",7),l(5,"div",8),w(6,$M,2,2,"div",9)(7,GM,3,0,"div",10)(8,WM,3,0,"div",11),l(9,"div",12),w(10,qM,1,1,null,13),ae(11),c(),w(12,KM,3,0,"div",14)(13,ZM,3,0,"div",15),c(),w(14,QM,1,0,"div",16),c(),l(15,"div",17),Zl(16),l(17,"div",18),w(18,XM,1,0)(19,ek,4,1),c()()}if(t&2){let r;m(2),j("mdc-text-field--filled",!o._hasOutline())("mdc-text-field--outlined",o._hasOutline())("mdc-text-field--no-label",!o._hasFloatingLabel())("mdc-text-field--disabled",o._control.disabled)("mdc-text-field--invalid",o._control.errorState),m(2),C(!o._hasOutline()&&!o._control.disabled?4:-1),m(2),C(o._hasOutline()?6:-1),m(),C(o._hasIconPrefix?7:-1),m(),C(o._hasTextPrefix?8:-1),m(2),C(!o._hasOutline()||o._forceDisplayInfixLabel()?10:-1),m(2),C(o._hasTextSuffix?12:-1),m(),C(o._hasIconSuffix?13:-1),m(),C(o._hasOutline()?-1:14),m(),j("mat-mdc-form-field-subscript-dynamic-size",o.subscriptSizing==="dynamic");let a=o._getSubscriptMessageType();m(2),j("mat-mdc-form-field-error-wrapper",a==="error")("mat-mdc-form-field-hint-wrapper",a==="hint"),m(),C((r=a)==="error"?18:r==="hint"?19:-1)}},dependencies:[Vv,zv,rs,jv,Zs],styles:[`.mdc-text-field{display:inline-flex;align-items:baseline;padding:0 16px;position:relative;box-sizing:border-box;overflow:hidden;will-change:opacity,transform,color;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-text-field__input{width:100%;min-width:0;border:none;border-radius:0;background:none;padding:0;-moz-appearance:none;-webkit-appearance:none;height:28px}.mdc-text-field__input::-webkit-calendar-picker-indicator{display:none}.mdc-text-field__input::-ms-clear{display:none}.mdc-text-field__input:focus{outline:none}.mdc-text-field__input:invalid{box-shadow:none}.mdc-text-field__input::placeholder{opacity:0}.mdc-text-field__input::-moz-placeholder{opacity:0}.mdc-text-field__input::-webkit-input-placeholder{opacity:0}.mdc-text-field__input:-ms-input-placeholder{opacity:0}.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mdc-text-field--focused .mdc-text-field__input::placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{opacity:1}.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{opacity:1}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-moz-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive::-webkit-input-placeholder{opacity:0}.mdc-text-field--disabled:not(.mdc-text-field--no-label) .mdc-text-field__input.mat-mdc-input-disabled-interactive:-ms-input-placeholder{opacity:0}.mdc-text-field--outlined .mdc-text-field__input,.mdc-text-field--filled.mdc-text-field--no-label .mdc-text-field__input{height:100%}.mdc-text-field--outlined .mdc-text-field__input{display:flex;border:none !important;background-color:rgba(0,0,0,0)}.mdc-text-field--disabled .mdc-text-field__input{pointer-events:auto}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-filled-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-filled-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-filled-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-filled-text-field-error-caret-color)}.mdc-text-field--filled.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-filled-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input{color:var(--mdc-outlined-text-field-input-text-color, var(--mat-sys-on-surface));caret-color:var(--mdc-outlined-text-field-caret-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-moz-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input::-webkit-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-text-field__input:-ms-input-placeholder{color:var(--mdc-outlined-text-field-input-text-placeholder-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-text-field__input{caret-color:var(--mdc-outlined-text-field-error-caret-color)}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-text-field__input{color:var(--mdc-outlined-text-field-disabled-input-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mdc-text-field--disabled .mdc-text-field__input{background-color:Window}}.mdc-text-field--filled{height:56px;border-bottom-right-radius:0;border-bottom-left-radius:0;border-top-left-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small));border-top-right-radius:var(--mdc-filled-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--filled:not(.mdc-text-field--disabled){background-color:var(--mdc-filled-text-field-container-color, var(--mat-sys-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled{background-color:var(--mdc-filled-text-field-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 4%, transparent))}.mdc-text-field--outlined{height:56px;overflow:visible;padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)));padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px)}[dir=rtl] .mdc-text-field--outlined{padding-right:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)) + 4px);padding-left:max(16px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}.mdc-floating-label{position:absolute;left:0;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform}[dir=rtl] .mdc-floating-label{right:0;left:auto;transform-origin:right top;text-align:right}.mdc-text-field .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-text-field--outlined .mdc-floating-label{left:4px;right:auto}[dir=rtl] .mdc-text-field--outlined .mdc-floating-label{left:auto;right:4px}.mdc-text-field--filled .mdc-floating-label{left:16px;right:auto}[dir=rtl] .mdc-text-field--filled .mdc-floating-label{left:auto;right:16px}.mdc-text-field--disabled .mdc-floating-label{cursor:default}@media(forced-colors: active){.mdc-text-field--disabled .mdc-floating-label{z-index:1}}.mdc-text-field--filled.mdc-text-field--no-label .mdc-floating-label{display:none}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-filled-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-filled-text-field-hover-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-filled-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-filled-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-filled-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-filled-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--filled .mdc-floating-label{font-family:var(--mdc-filled-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-filled-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-filled-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-filled-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mdc-floating-label{color:var(--mdc-outlined-text-field-label-text-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-focus-label-text-color, var(--mat-sys-primary))}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined.mdc-text-field--disabled .mdc-floating-label{color:var(--mdc-outlined-text-field-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-floating-label{color:var(--mdc-outlined-text-field-error-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mdc-floating-label{color:var(--mdc-outlined-text-field-error-focus-label-text-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--disabled):hover .mdc-floating-label{color:var(--mdc-outlined-text-field-error-hover-label-text-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined .mdc-floating-label{font-family:var(--mdc-outlined-text-field-label-text-font, var(--mat-sys-body-large-font));font-size:var(--mdc-outlined-text-field-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-outlined-text-field-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-outlined-text-field-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-floating-label--float-above{cursor:auto;transform:translateY(-106%) scale(0.75)}.mdc-text-field--filled .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-text-field--outlined .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1);font-size:.75rem}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-text-field--outlined.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:1px;margin-right:0;content:"*"}[dir=rtl] .mdc-floating-label--required:not(.mdc-floating-label--hide-required-marker)::after{margin-left:0;margin-right:1px}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline{text-align:right}.mdc-text-field--outlined .mdc-notched-outline{z-index:1}.mat-mdc-notch-piece{box-sizing:border-box;height:100%;pointer-events:none;border-top:1px solid;border-bottom:1px solid}.mdc-text-field--focused .mat-mdc-notch-piece{border-width:2px}.mdc-text-field--outlined:not(.mdc-text-field--disabled) .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-outline-color, var(--mat-sys-outline));border-width:var(--mdc-outlined-text-field-outline-width, 1px)}.mdc-text-field--outlined:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-hover-outline-color, var(--mat-sys-on-surface))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-focus-outline-color, var(--mat-sys-primary))}.mdc-text-field--outlined.mdc-text-field--disabled .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-notched-outline .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-hover-outline-color, var(--mat-sys-on-error-container))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--invalid.mdc-text-field--focused .mat-mdc-notch-piece{border-color:var(--mdc-outlined-text-field-error-focus-outline-color, var(--mat-sys-error))}.mdc-text-field--outlined:not(.mdc-text-field--disabled).mdc-text-field--focused .mdc-notched-outline .mat-mdc-notch-piece{border-width:var(--mdc-outlined-text-field-focus-outline-width, 2px)}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))}[dir=rtl] .mdc-notched-outline__leading{border-left:none;border-right:1px solid;border-bottom-left-radius:0;border-top-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__trailing{flex-grow:1;border-left:none;border-right:1px solid;border-top-left-radius:0;border-bottom-left-radius:0;border-top-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-right-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}[dir=rtl] .mdc-notched-outline__trailing{border-left:1px solid;border-right:none;border-top-right-radius:0;border-bottom-right-radius:0;border-top-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small));border-bottom-left-radius:var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small))}.mdc-notched-outline__notch{flex:0 0 auto;width:auto}.mdc-text-field--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:min(var(--mat-form-field-notch-max-width, 100%),100% - max(12px,var(--mdc-outlined-text-field-container-shape, var(--mat-sys-corner-extra-small)))*2)}.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-text-field--focused.mdc-text-field--outlined .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none;--mat-form-field-notch-max-width: 100%}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:8px;padding-right:0}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{z-index:1;border-bottom-width:var(--mdc-filled-text-field-active-indicator-height, 1px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-active-indicator-color, var(--mat-sys-on-surface-variant))}.mdc-text-field--filled:not(.mdc-text-field--disabled):not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-hover-active-indicator-color, var(--mat-sys-on-surface))}.mdc-text-field--filled.mdc-text-field--disabled .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-disabled-active-indicator-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-active-indicator-color, var(--mat-sys-error))}.mdc-text-field--filled:not(.mdc-text-field--disabled).mdc-text-field--invalid:not(.mdc-text-field--focused):hover .mdc-line-ripple::before{border-bottom-color:var(--mdc-filled-text-field-error-hover-active-indicator-color, var(--mat-sys-on-error-container))}.mdc-line-ripple::after{transform:scaleX(0);opacity:0;z-index:2}.mdc-text-field--filled .mdc-line-ripple::after{border-bottom-width:var(--mdc-filled-text-field-focus-active-indicator-height, 2px)}.mdc-text-field--filled:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-focus-active-indicator-color, var(--mat-sys-primary))}.mdc-text-field--filled.mdc-text-field--invalid:not(.mdc-text-field--disabled) .mdc-line-ripple::after{border-bottom-color:var(--mdc-filled-text-field-error-focus-active-indicator-color, var(--mat-sys-error))}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-text-field--disabled{pointer-events:none}.mat-mdc-form-field-textarea-control{vertical-align:middle;resize:vertical;box-sizing:border-box;height:auto;margin:0;padding:0;border:none;overflow:auto}.mat-mdc-form-field-input-control.mat-mdc-form-field-input-control{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font:inherit;letter-spacing:inherit;text-decoration:inherit;text-transform:inherit;border:none}.mat-mdc-form-field .mat-mdc-floating-label.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;line-height:normal;pointer-events:all;will-change:auto}.mat-mdc-form-field:not(.mat-form-field-disabled) .mat-mdc-floating-label.mdc-floating-label{cursor:inherit}.mdc-text-field--no-label:not(.mdc-text-field--textarea) .mat-mdc-form-field-input-control.mdc-text-field__input,.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control{height:auto}.mat-mdc-text-field-wrapper .mat-mdc-form-field-input-control.mdc-text-field__input[type=color]{height:23px}.mat-mdc-text-field-wrapper{height:auto;flex:auto;will-change:auto}.mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-left:0;--mat-mdc-form-field-label-offset-x: -16px}.mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-right:0}[dir=rtl] .mat-mdc-text-field-wrapper{padding-left:16px;padding-right:16px}[dir=rtl] .mat-mdc-form-field-has-icon-suffix .mat-mdc-text-field-wrapper{padding-left:0}[dir=rtl] .mat-mdc-form-field-has-icon-prefix .mat-mdc-text-field-wrapper{padding-right:0}.mat-form-field-disabled .mdc-text-field__input::placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-moz-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input::-webkit-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-disabled .mdc-text-field__input:-ms-input-placeholder{color:var(--mat-form-field-disabled-input-text-placeholder-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-label-always-float .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms;opacity:1}.mat-mdc-text-field-wrapper .mat-mdc-form-field-infix .mat-mdc-floating-label{left:auto;right:auto}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-text-field__input{display:inline-block}.mat-mdc-form-field .mat-mdc-text-field-wrapper.mdc-text-field .mdc-notched-outline__notch{padding-top:0}.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:1px solid rgba(0,0,0,0)}[dir=rtl] .mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field.mat-mdc-form-field .mdc-notched-outline__notch{border-left:none;border-right:1px solid rgba(0,0,0,0)}.mat-mdc-form-field-infix{min-height:var(--mat-form-field-container-height, 56px);padding-top:var(--mat-form-field-filled-with-label-container-padding-top, 24px);padding-bottom:var(--mat-form-field-filled-with-label-container-padding-bottom, 8px)}.mdc-text-field--outlined .mat-mdc-form-field-infix,.mdc-text-field--no-label .mat-mdc-form-field-infix{padding-top:var(--mat-form-field-container-vertical-padding, 16px);padding-bottom:var(--mat-form-field-container-vertical-padding, 16px)}.mat-mdc-text-field-wrapper .mat-mdc-form-field-flex .mat-mdc-floating-label{top:calc(var(--mat-form-field-container-height, 56px)/2)}.mdc-text-field--filled .mat-mdc-floating-label{display:var(--mat-form-field-filled-label-display, block)}.mat-mdc-text-field-wrapper.mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{--mat-mdc-form-field-label-transform: translateY(calc(calc(6.75px + var(--mat-form-field-container-height, 56px) / 2) * -1)) scale(var(--mat-mdc-form-field-floating-label-scale, 0.75));transform:var(--mat-mdc-form-field-label-transform)}@keyframes _mat-form-field-subscript-animation{from{opacity:0;transform:translateY(-5px)}to{opacity:1;transform:translateY(0)}}.mat-mdc-form-field-subscript-wrapper{box-sizing:border-box;width:100%;position:relative}.mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-error-wrapper{position:absolute;top:0;left:0;right:0;padding:0 16px;opacity:1;transform:translateY(0);animation:_mat-form-field-subscript-animation 0ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field-subscript-dynamic-size .mat-mdc-form-field-error-wrapper{position:static}.mat-mdc-form-field-bottom-align::before{content:"";display:inline-block;height:16px}.mat-mdc-form-field-bottom-align.mat-mdc-form-field-subscript-dynamic-size::before{content:unset}.mat-mdc-form-field-hint-end{order:1}.mat-mdc-form-field-hint-wrapper{display:flex}.mat-mdc-form-field-hint-spacer{flex:1 0 1em}.mat-mdc-form-field-error{display:block;color:var(--mat-form-field-error-text-color, var(--mat-sys-error))}.mat-mdc-form-field-subscript-wrapper,.mat-mdc-form-field-bottom-align::before{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-subscript-text-font, var(--mat-sys-body-small-font));line-height:var(--mat-form-field-subscript-text-line-height, var(--mat-sys-body-small-line-height));font-size:var(--mat-form-field-subscript-text-size, var(--mat-sys-body-small-size));letter-spacing:var(--mat-form-field-subscript-text-tracking, var(--mat-sys-body-small-tracking));font-weight:var(--mat-form-field-subscript-text-weight, var(--mat-sys-body-small-weight))}.mat-mdc-form-field-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;opacity:0;pointer-events:none;background-color:var(--mat-form-field-state-layer-color, var(--mat-sys-on-surface))}.mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-form-field.mat-focused .mat-mdc-form-field-focus-overlay{opacity:var(--mat-form-field-focus-state-layer-opacity, 0)}select.mat-mdc-form-field-input-control{-moz-appearance:none;-webkit-appearance:none;background-color:rgba(0,0,0,0);display:inline-flex;box-sizing:border-box}select.mat-mdc-form-field-input-control:not(:disabled){cursor:pointer}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option{color:var(--mat-form-field-select-option-text-color, var(--mat-sys-neutral10))}select.mat-mdc-form-field-input-control:not(.mat-mdc-native-select-inline) option:disabled{color:var(--mat-form-field-select-disabled-option-text-color, color-mix(in srgb, var(--mat-sys-neutral10) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-top:5px solid;position:absolute;right:0;top:50%;margin-top:-2.5px;pointer-events:none;color:var(--mat-form-field-enabled-select-arrow-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-infix::after{right:auto;left:0}.mat-mdc-form-field-type-mat-native-select.mat-focused .mat-mdc-form-field-infix::after{color:var(--mat-form-field-focus-select-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field-type-mat-native-select.mat-form-field-disabled .mat-mdc-form-field-infix::after{color:var(--mat-form-field-disabled-select-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:15px}[dir=rtl] .mat-mdc-form-field-type-mat-native-select .mat-mdc-form-field-input-control{padding-right:0;padding-left:15px}@media(forced-colors: active){.mat-form-field-appearance-fill .mat-mdc-text-field-wrapper{outline:solid 1px}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-form-field-disabled .mat-mdc-text-field-wrapper{outline-color:GrayText}}@media(forced-colors: active){.mat-form-field-appearance-fill.mat-focused .mat-mdc-text-field-wrapper{outline:dashed 3px}}@media(forced-colors: active){.mat-mdc-form-field.mat-focused .mdc-notched-outline{border:dashed 3px}}.mat-mdc-form-field-input-control[type=date],.mat-mdc-form-field-input-control[type=datetime],.mat-mdc-form-field-input-control[type=datetime-local],.mat-mdc-form-field-input-control[type=month],.mat-mdc-form-field-input-control[type=week],.mat-mdc-form-field-input-control[type=time]{line-height:1}.mat-mdc-form-field-input-control::-webkit-datetime-edit{line-height:1;padding:0;margin-bottom:-2px}.mat-mdc-form-field{--mat-mdc-form-field-floating-label-scale: 0.75;display:inline-flex;flex-direction:column;min-width:0;text-align:left;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:var(--mat-form-field-container-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-form-field-container-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-form-field-container-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-form-field-container-text-tracking, var(--mat-sys-body-large-tracking));font-weight:var(--mat-form-field-container-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-floating-label--float-above{font-size:calc(var(--mat-form-field-outlined-label-text-populated-size)*var(--mat-mdc-form-field-floating-label-scale))}.mat-mdc-form-field .mdc-text-field--outlined .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:var(--mat-form-field-outlined-label-text-populated-size)}[dir=rtl] .mat-mdc-form-field{text-align:right}.mat-mdc-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-mdc-text-field-wrapper{width:100%;z-index:0}.mat-mdc-form-field-icon-prefix,.mat-mdc-form-field-icon-suffix{align-self:center;line-height:0;pointer-events:auto;position:relative;z-index:1}.mat-mdc-form-field-icon-prefix>.mat-icon,.mat-mdc-form-field-icon-suffix>.mat-icon{padding:0 12px;box-sizing:content-box}.mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-leading-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-prefix{color:var(--mat-form-field-disabled-leading-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-trailing-icon-color, var(--mat-sys-on-surface-variant))}.mat-form-field-disabled .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-disabled-trailing-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-form-field-invalid .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-trailing-icon-color, var(--mat-sys-error))}.mat-form-field-invalid:not(.mat-focused):not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper:hover .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-hover-trailing-icon-color, var(--mat-sys-on-error-container))}.mat-form-field-invalid.mat-focused .mat-mdc-text-field-wrapper .mat-mdc-form-field-icon-suffix{color:var(--mat-form-field-error-focus-trailing-icon-color, var(--mat-sys-error))}.mat-mdc-form-field-icon-prefix,[dir=rtl] .mat-mdc-form-field-icon-suffix{padding:0 4px 0 0}.mat-mdc-form-field-icon-suffix,[dir=rtl] .mat-mdc-form-field-icon-prefix{padding:0 0 0 4px}.mat-mdc-form-field-subscript-wrapper .mat-icon,.mat-mdc-form-field label .mat-icon{width:1em;height:1em;font-size:inherit}.mat-mdc-form-field-infix{flex:auto;min-width:0;width:180px;position:relative;box-sizing:border-box}.mat-mdc-form-field-infix:has(textarea[cols]){width:auto}.mat-mdc-form-field .mdc-notched-outline__notch{margin-left:-1px;-webkit-clip-path:inset(-9em -999em -9em 1px);clip-path:inset(-9em -999em -9em 1px)}[dir=rtl] .mat-mdc-form-field .mdc-notched-outline__notch{margin-left:0;margin-right:-1px;-webkit-clip-path:inset(-9em 1px -9em -999em);clip-path:inset(-9em 1px -9em -999em)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-floating-label{transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1),color 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input{transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-moz-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input::-webkit-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field__input:-ms-input-placeholder{transition:opacity 67ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-moz-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-moz-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input::-webkit-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input::-webkit-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--no-label .mdc-text-field__input:-ms-input-placeholder,.mat-mdc-form-field.mat-form-field-animations-enabled.mdc-text-field--focused .mdc-text-field__input:-ms-input-placeholder{transition-delay:40ms;transition-duration:110ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-text-field--filled:not(.mdc-ripple-upgraded):focus .mdc-text-field__ripple::before{transition-duration:75ms}.mat-mdc-form-field.mat-form-field-animations-enabled .mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1),opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-hint-wrapper,.mat-mdc-form-field.mat-form-field-animations-enabled .mat-mdc-form-field-error-wrapper{animation-duration:300ms}.mdc-notched-outline .mdc-floating-label{max-width:calc(100% + 1px)}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:calc(133.3333333333% + 1px)} -`],encapsulation:2,changeDetection:0})}return i})();var It=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({imports:[se,Br,se]})}return i})();var ok=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["ng-component"]],hostAttrs:["cdk-text-field-style-loader",""],decls:0,vars:0,template:function(t,o){},styles:[`textarea.cdk-textarea-autosize{resize:none}textarea.cdk-textarea-autosize-measuring{padding:2px 0 !important;box-sizing:content-box !important;height:auto !important;overflow:hidden !important}textarea.cdk-textarea-autosize-measuring-firefox{padding:2px 0 !important;box-sizing:content-box !important;height:0 !important}@keyframes cdk-text-field-autofill-start{/*!*/}@keyframes cdk-text-field-autofill-end{/*!*/}.cdk-text-field-autofill-monitored:-webkit-autofill{animation:cdk-text-field-autofill-start 0s 1ms}.cdk-text-field-autofill-monitored:not(:-webkit-autofill){animation:cdk-text-field-autofill-end 0s 1ms} -`],encapsulation:2,changeDetection:0})}return i})(),rk={passive:!0},Yv=(()=>{class i{_platform=d(Se);_ngZone=d(K);_renderer=d(yt).createRenderer(null,null);_styleLoader=d(We);_monitoredElements=new Map;constructor(){}monitor(e){if(!this._platform.isBrowser)return Rt;this._styleLoader.load(ok);let t=ct(e),o=this._monitoredElements.get(t);if(o)return o.subject;let r=new S,a="cdk-text-field-autofilled",s=h=>{h.animationName==="cdk-text-field-autofill-start"&&!t.classList.contains(a)?(t.classList.add(a),this._ngZone.run(()=>r.next({target:h.target,isAutofilled:!0}))):h.animationName==="cdk-text-field-autofill-end"&&t.classList.contains(a)&&(t.classList.remove(a),this._ngZone.run(()=>r.next({target:h.target,isAutofilled:!1})))},u=this._ngZone.runOutsideAngular(()=>(t.classList.add("cdk-text-field-autofill-monitored"),Ue(this._renderer,t,"animationstart",s,rk)));return this._monitoredElements.set(t,{subject:r,unlisten:u}),r}stopMonitoring(e){let t=ct(e),o=this._monitoredElements.get(t);o&&(o.unlisten(),o.subject.complete(),t.classList.remove("cdk-text-field-autofill-monitored"),t.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(t))}ngOnDestroy(){this._monitoredElements.forEach((e,t)=>this.stopMonitoring(t))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var qv=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({})}return i})();var n0=(()=>{class i{_renderer;_elementRef;onChange=e=>{};onTouched=()=>{};constructor(e,t){this._renderer=e,this._elementRef=t}setProperty(e,t){this._renderer.setProperty(this._elementRef.nativeElement,e,t)}registerOnTouched(e){this.onTouched=e}registerOnChange(e){this.onChange=e}setDisabledState(e){this.setProperty("disabled",e)}static \u0275fac=function(t){return new(t||i)(k(tt),k(Z))};static \u0275dir=z({type:i})}return i})(),Dh=(()=>{class i extends n0{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ve(i)))(o||i)}})();static \u0275dir=z({type:i,features:[xe]})}return i})(),io=new v(""),ak={provide:io,useExisting:St(()=>Mh),multi:!0},Mh=(()=>{class i extends Dh{writeValue(e){this.setProperty("checked",e)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ve(i)))(o||i)}})();static \u0275dir=z({type:i,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,o){t&1&&b("change",function(a){return o.onChange(a.target.checked)})("blur",function(){return o.onTouched()})},standalone:!1,features:[Me([ak]),xe]})}return i})(),sk={provide:io,useExisting:St(()=>Mt),multi:!0};function lk(){let i=Li()?Li().getUserAgent():"";return/android (\d+)/.test(i.toLowerCase())}var ck=new v(""),Mt=(()=>{class i extends n0{_compositionMode;_composing=!1;constructor(e,t,o){super(e,t),this._compositionMode=o,this._compositionMode==null&&(this._compositionMode=!lk())}writeValue(e){let t=e??"";this.setProperty("value",t)}_handleInput(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}_compositionStart(){this._composing=!0}_compositionEnd(e){this._composing=!1,this._compositionMode&&this.onChange(e)}static \u0275fac=function(t){return new(t||i)(k(tt),k(Z),k(ck,8))};static \u0275dir=z({type:i,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(t,o){t&1&&b("input",function(a){return o._handleInput(a.target.value)})("blur",function(){return o.onTouched()})("compositionstart",function(){return o._compositionStart()})("compositionend",function(a){return o._compositionEnd(a.target.value)})},standalone:!1,features:[Me([sk]),xe]})}return i})();function kh(i){return i==null||Sh(i)===0}function Sh(i){return i==null?null:Array.isArray(i)||typeof i=="string"?i.length:i instanceof Set?i.size:null}var $i=new v(""),Qr=new v(""),dk=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,me=class{static min(n){return o0(n)}static max(n){return uk(n)}static required(n){return r0(n)}static requiredTrue(n){return mk(n)}static email(n){return pk(n)}static minLength(n){return hk(n)}static maxLength(n){return fk(n)}static pattern(n){return gk(n)}static nullValidator(n){return yd()}static compose(n){return u0(n)}static composeAsync(n){return m0(n)}};function o0(i){return n=>{if(n.value==null||i==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e{if(n.value==null||i==null)return null;let e=parseFloat(n.value);return!isNaN(e)&&e>i?{max:{max:i,actual:n.value}}:null}}function r0(i){return kh(i.value)?{required:!0}:null}function mk(i){return i.value===!0?null:{required:!0}}function pk(i){return kh(i.value)||dk.test(i.value)?null:{email:!0}}function hk(i){return n=>{let e=n.value?.length??Sh(n.value);return e===null||e===0?null:e{let e=n.value?.length??Sh(n.value);return e!==null&&e>i?{maxlength:{requiredLength:i,actualLength:e}}:null}}function gk(i){if(!i)return yd;let n,e;return typeof i=="string"?(e="",i.charAt(0)!=="^"&&(e+="^"),e+=i,i.charAt(i.length-1)!=="$"&&(e+="$"),n=new RegExp(e)):(e=i.toString(),n=i),t=>{if(kh(t.value))return null;let o=t.value;return n.test(o)?null:{pattern:{requiredPattern:e,actualValue:o}}}}function yd(i){return null}function a0(i){return i!=null}function s0(i){return xr(i)?kt(i):i}function l0(i){let n={};return i.forEach(e=>{n=e!=null?_(_({},n),e):n}),Object.keys(n).length===0?null:n}function c0(i,n){return n.map(e=>e(i))}function _k(i){return!i.validate}function d0(i){return i.map(n=>_k(n)?n:e=>n.validate(e))}function u0(i){if(!i)return null;let n=i.filter(a0);return n.length==0?null:function(e){return l0(c0(e,n))}}function Eh(i){return i!=null?u0(d0(i)):null}function m0(i){if(!i)return null;let n=i.filter(a0);return n.length==0?null:function(e){let t=c0(e,n).map(s0);return pr(t).pipe(A(l0))}}function Oh(i){return i!=null?m0(d0(i)):null}function Kv(i,n){return i===null?[n]:Array.isArray(i)?[...i,n]:[i,n]}function p0(i){return i._rawValidators}function h0(i){return i._rawAsyncValidators}function Ch(i){return i?Array.isArray(i)?i:[i]:[]}function Cd(i,n){return Array.isArray(i)?i.includes(n):i===n}function Zv(i,n){let e=Ch(n);return Ch(i).forEach(o=>{Cd(e,o)||e.push(o)}),e}function Qv(i,n){return Ch(n).filter(e=>!Cd(i,e))}var xd=class{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}_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators=[];_rawAsyncValidators=[];_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=Eh(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=Oh(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_onDestroyCallbacks=[];_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n=void 0){this.control&&this.control.reset(n)}hasError(n,e){return this.control?this.control.hasError(n,e):!1}getError(n,e){return this.control?this.control.getError(n,e):null}},Gt=class extends xd{name;get formDirective(){return null}get path(){return null}},Hi=class extends xd{_parent=null;name=null;valueAccessor=null},wd=class{_cd;constructor(n){this._cd=n}get isTouched(){return this._cd?.control?._touched?.(),!!this._cd?.control?.touched}get isUntouched(){return!!this._cd?.control?.untouched}get isPristine(){return this._cd?.control?._pristine?.(),!!this._cd?.control?.pristine}get isDirty(){return!!this._cd?.control?.dirty}get isValid(){return this._cd?.control?._status?.(),!!this._cd?.control?.valid}get isInvalid(){return!!this._cd?.control?.invalid}get isPending(){return!!this._cd?.control?.pending}get isSubmitted(){return this._cd?._submitted?.(),!!this._cd?.submitted}},bk={"[class.ng-untouched]":"isUntouched","[class.ng-touched]":"isTouched","[class.ng-pristine]":"isPristine","[class.ng-dirty]":"isDirty","[class.ng-valid]":"isValid","[class.ng-invalid]":"isInvalid","[class.ng-pending]":"isPending"},Sj=O(_({},bk),{"[class.ng-submitted]":"isSubmitted"}),Pt=(()=>{class i extends wd{constructor(e){super(e)}static \u0275fac=function(t){return new(t||i)(k(Hi,2))};static \u0275dir=z({type:i,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,o){t&2&&j("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)},standalone:!1,features:[xe]})}return i})(),di=(()=>{class i extends wd{constructor(e){super(e)}static \u0275fac=function(t){return new(t||i)(k(Gt,10))};static \u0275dir=z({type:i,selectors:[["","formGroupName",""],["","formArrayName",""],["","ngModelGroup",""],["","formGroup",""],["form",3,"ngNoForm",""],["","ngForm",""]],hostVars:16,hostBindings:function(t,o){t&2&&j("ng-untouched",o.isUntouched)("ng-touched",o.isTouched)("ng-pristine",o.isPristine)("ng-dirty",o.isDirty)("ng-valid",o.isValid)("ng-invalid",o.isInvalid)("ng-pending",o.isPending)("ng-submitted",o.isSubmitted)},standalone:!1,features:[xe]})}return i})();var Qs="VALID",vd="INVALID",Yr="PENDING",Xs="DISABLED",yo=class{},Dd=class extends yo{value;source;constructor(n,e){super(),this.value=n,this.source=e}},el=class extends yo{pristine;source;constructor(n,e){super(),this.pristine=n,this.source=e}},tl=class extends yo{touched;source;constructor(n,e){super(),this.touched=n,this.source=e}},qr=class extends yo{status;source;constructor(n,e){super(),this.status=n,this.source=e}},Md=class extends yo{source;constructor(n){super(),this.source=n}},kd=class extends yo{source;constructor(n){super(),this.source=n}};function Th(i){return(Td(i)?i.validators:i)||null}function vk(i){return Array.isArray(i)?Eh(i):i||null}function Ah(i,n){return(Td(n)?n.asyncValidators:i)||null}function yk(i){return Array.isArray(i)?Oh(i):i||null}function Td(i){return i!=null&&!Array.isArray(i)&&typeof i=="object"}function f0(i,n,e){let t=i.controls;if(!(n?Object.keys(t):t).length)throw new be(1e3,"");if(!t[e])throw new be(1001,"")}function g0(i,n,e){i._forEachChild((t,o)=>{if(e[o]===void 0)throw new be(1002,"")})}var Kr=class{_pendingDirty=!1;_hasOwnPendingAsyncValidator=null;_pendingTouched=!1;_onCollectionChange=()=>{};_updateOn;_parent=null;_asyncValidationSubscription;_composedValidatorFn;_composedAsyncValidatorFn;_rawValidators;_rawAsyncValidators;value;constructor(n,e){this._assignValidators(n),this._assignAsyncValidators(e)}get validator(){return this._composedValidatorFn}set validator(n){this._rawValidators=this._composedValidatorFn=n}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(n){this._rawAsyncValidators=this._composedAsyncValidatorFn=n}get parent(){return this._parent}get status(){return Lt(this.statusReactive)}set status(n){Lt(()=>this.statusReactive.set(n))}_status=oi(()=>this.statusReactive());statusReactive=Ft(void 0);get valid(){return this.status===Qs}get invalid(){return this.status===vd}get pending(){return this.status==Yr}get disabled(){return this.status===Xs}get enabled(){return this.status!==Xs}errors;get pristine(){return Lt(this.pristineReactive)}set pristine(n){Lt(()=>this.pristineReactive.set(n))}_pristine=oi(()=>this.pristineReactive());pristineReactive=Ft(!0);get dirty(){return!this.pristine}get touched(){return Lt(this.touchedReactive)}set touched(n){Lt(()=>this.touchedReactive.set(n))}_touched=oi(()=>this.touchedReactive());touchedReactive=Ft(!1);get untouched(){return!this.touched}_events=new S;events=this._events.asObservable();valueChanges;statusChanges;get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(n){this._assignValidators(n)}setAsyncValidators(n){this._assignAsyncValidators(n)}addValidators(n){this.setValidators(Zv(n,this._rawValidators))}addAsyncValidators(n){this.setAsyncValidators(Zv(n,this._rawAsyncValidators))}removeValidators(n){this.setValidators(Qv(n,this._rawValidators))}removeAsyncValidators(n){this.setAsyncValidators(Qv(n,this._rawAsyncValidators))}hasValidator(n){return Cd(this._rawValidators,n)}hasAsyncValidator(n){return Cd(this._rawAsyncValidators,n)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(n={}){let e=this.touched===!1;this.touched=!0;let t=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsTouched(O(_({},n),{sourceControl:t})),e&&n.emitEvent!==!1&&this._events.next(new tl(!0,t))}markAllAsTouched(n={}){this.markAsTouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:this}),this._forEachChild(e=>e.markAllAsTouched(n))}markAsUntouched(n={}){let e=this.touched===!0;this.touched=!1,this._pendingTouched=!1;let t=n.sourceControl??this;this._forEachChild(o=>{o.markAsUntouched({onlySelf:!0,emitEvent:n.emitEvent,sourceControl:t})}),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,t),e&&n.emitEvent!==!1&&this._events.next(new tl(!1,t))}markAsDirty(n={}){let e=this.pristine===!0;this.pristine=!1;let t=n.sourceControl??this;this._parent&&!n.onlySelf&&this._parent.markAsDirty(O(_({},n),{sourceControl:t})),e&&n.emitEvent!==!1&&this._events.next(new el(!1,t))}markAsPristine(n={}){let e=this.pristine===!1;this.pristine=!0,this._pendingDirty=!1;let t=n.sourceControl??this;this._forEachChild(o=>{o.markAsPristine({onlySelf:!0,emitEvent:n.emitEvent})}),this._parent&&!n.onlySelf&&this._parent._updatePristine(n,t),e&&n.emitEvent!==!1&&this._events.next(new el(!0,t))}markAsPending(n={}){this.status=Yr;let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new qr(this.status,e)),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.markAsPending(O(_({},n),{sourceControl:e}))}disable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Xs,this.errors=null,this._forEachChild(o=>{o.disable(O(_({},n),{onlySelf:!0}))}),this._updateValue();let t=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Dd(this.value,t)),this._events.next(new qr(this.status,t)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(O(_({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(o=>o(!0))}enable(n={}){let e=this._parentMarkedDirty(n.onlySelf);this.status=Qs,this._forEachChild(t=>{t.enable(O(_({},n),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent}),this._updateAncestors(O(_({},n),{skipPristineCheck:e}),this),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(n,e){this._parent&&!n.onlySelf&&(this._parent.updateValueAndValidity(n),n.skipPristineCheck||this._parent._updatePristine({},e),this._parent._updateTouched({},e))}setParent(n){this._parent=n}getRawValue(){return this.value}updateValueAndValidity(n={}){if(this._setInitialStatus(),this._updateValue(),this.enabled){let t=this._cancelExistingSubscription();this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Qs||this.status===Yr)&&this._runAsyncValidator(t,n.emitEvent)}let e=n.sourceControl??this;n.emitEvent!==!1&&(this._events.next(new Dd(this.value,e)),this._events.next(new qr(this.status,e)),this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!n.onlySelf&&this._parent.updateValueAndValidity(O(_({},n),{sourceControl:e}))}_updateTreeValidity(n={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(n)),this.updateValueAndValidity({onlySelf:!0,emitEvent:n.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Xs:Qs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(n,e){if(this.asyncValidator){this.status=Yr,this._hasOwnPendingAsyncValidator={emitEvent:e!==!1};let t=s0(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(o=>{this._hasOwnPendingAsyncValidator=null,this.setErrors(o,{emitEvent:e,shouldHaveEmitted:n})})}}_cancelExistingSubscription(){if(this._asyncValidationSubscription){this._asyncValidationSubscription.unsubscribe();let n=this._hasOwnPendingAsyncValidator?.emitEvent??!1;return this._hasOwnPendingAsyncValidator=null,n}return!1}setErrors(n,e={}){this.errors=n,this._updateControlsErrors(e.emitEvent!==!1,this,e.shouldHaveEmitted)}get(n){let e=n;return e==null||(Array.isArray(e)||(e=e.split(".")),e.length===0)?null:e.reduce((t,o)=>t&&t._find(o),this)}getError(n,e){let t=e?this.get(e):this;return t&&t.errors?t.errors[n]:null}hasError(n,e){return!!this.getError(n,e)}get root(){let n=this;for(;n._parent;)n=n._parent;return n}_updateControlsErrors(n,e,t){this.status=this._calculateStatus(),n&&this.statusChanges.emit(this.status),(n||t)&&this._events.next(new qr(this.status,e)),this._parent&&this._parent._updateControlsErrors(n,e,t)}_initObservables(){this.valueChanges=new L,this.statusChanges=new L}_calculateStatus(){return this._allControlsDisabled()?Xs:this.errors?vd:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(Yr)?Yr:this._anyControlsHaveStatus(vd)?vd:Qs}_anyControlsHaveStatus(n){return this._anyControls(e=>e.status===n)}_anyControlsDirty(){return this._anyControls(n=>n.dirty)}_anyControlsTouched(){return this._anyControls(n=>n.touched)}_updatePristine(n,e){let t=!this._anyControlsDirty(),o=this.pristine!==t;this.pristine=t,this._parent&&!n.onlySelf&&this._parent._updatePristine(n,e),o&&this._events.next(new el(this.pristine,e))}_updateTouched(n={},e){this.touched=this._anyControlsTouched(),this._events.next(new tl(this.touched,e)),this._parent&&!n.onlySelf&&this._parent._updateTouched(n,e)}_onDisabledChange=[];_registerOnCollectionChange(n){this._onCollectionChange=n}_setUpdateStrategy(n){Td(n)&&n.updateOn!=null&&(this._updateOn=n.updateOn)}_parentMarkedDirty(n){let e=this._parent&&this._parent.dirty;return!n&&!!e&&!this._parent._anyControlsDirty()}_find(n){return null}_assignValidators(n){this._rawValidators=Array.isArray(n)?n.slice():n,this._composedValidatorFn=vk(this._rawValidators)}_assignAsyncValidators(n){this._rawAsyncValidators=Array.isArray(n)?n.slice():n,this._composedAsyncValidatorFn=yk(this._rawAsyncValidators)}},Zr=class extends Kr{constructor(n,e,t){super(Th(e),Ah(t,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;registerControl(n,e){return this.controls[n]?this.controls[n]:(this.controls[n]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(n,e,t={}){this.registerControl(n,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}removeControl(n,e={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}setControl(n,e,t={}){this.controls[n]&&this.controls[n]._registerOnCollectionChange(()=>{}),delete this.controls[n],e&&this.registerControl(n,e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}contains(n){return this.controls.hasOwnProperty(n)&&this.controls[n].enabled}setValue(n,e={}){g0(this,!0,n),Object.keys(n).forEach(t=>{f0(this,!0,t),this.controls[t].setValue(n[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(Object.keys(n).forEach(t=>{let o=this.controls[t];o&&o.patchValue(n[t],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n={},e={}){this._forEachChild((t,o)=>{t.reset(n?n[o]:null,{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(n,e,t)=>(n[t]=e.getRawValue(),n))}_syncPendingControls(){let n=this._reduceChildren(!1,(e,t)=>t._syncPendingControls()?!0:e);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){Object.keys(this.controls).forEach(e=>{let t=this.controls[e];t&&n(t,e)})}_setUpControls(){this._forEachChild(n=>{n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(n){for(let[e,t]of Object.entries(this.controls))if(this.contains(e)&&n(t))return!0;return!1}_reduceValue(){let n={};return this._reduceChildren(n,(e,t,o)=>((t.enabled||this.disabled)&&(e[o]=t.value),e))}_reduceChildren(n,e){let t=n;return this._forEachChild((o,r)=>{t=e(t,o,r)}),t}_allControlsDisabled(){for(let n of Object.keys(this.controls))if(this.controls[n].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_find(n){return this.controls.hasOwnProperty(n)?this.controls[n]:null}};var xh=class extends Zr{};var nl=new v("",{providedIn:"root",factory:()=>Ad}),Ad="always";function Id(i,n){return[...n.path,i]}function Sd(i,n,e=Ad){Ih(i,n),n.valueAccessor.writeValue(i.value),(i.disabled||e==="always")&&n.valueAccessor.setDisabledState?.(i.disabled),xk(i,n),Dk(i,n),wk(i,n),Ck(i,n)}function Xv(i,n,e=!0){let t=()=>{};n.valueAccessor&&(n.valueAccessor.registerOnChange(t),n.valueAccessor.registerOnTouched(t)),Od(i,n),i&&(n._invokeOnDestroyCallbacks(),i._registerOnCollectionChange(()=>{}))}function Ed(i,n){i.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(n)})}function Ck(i,n){if(n.valueAccessor.setDisabledState){let e=t=>{n.valueAccessor.setDisabledState(t)};i.registerOnDisabledChange(e),n._registerOnDestroy(()=>{i._unregisterOnDisabledChange(e)})}}function Ih(i,n){let e=p0(i);n.validator!==null?i.setValidators(Kv(e,n.validator)):typeof e=="function"&&i.setValidators([e]);let t=h0(i);n.asyncValidator!==null?i.setAsyncValidators(Kv(t,n.asyncValidator)):typeof t=="function"&&i.setAsyncValidators([t]);let o=()=>i.updateValueAndValidity();Ed(n._rawValidators,o),Ed(n._rawAsyncValidators,o)}function Od(i,n){let e=!1;if(i!==null){if(n.validator!==null){let o=p0(i);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==n.validator);r.length!==o.length&&(e=!0,i.setValidators(r))}}if(n.asyncValidator!==null){let o=h0(i);if(Array.isArray(o)&&o.length>0){let r=o.filter(a=>a!==n.asyncValidator);r.length!==o.length&&(e=!0,i.setAsyncValidators(r))}}}let t=()=>{};return Ed(n._rawValidators,t),Ed(n._rawAsyncValidators,t),e}function xk(i,n){n.valueAccessor.registerOnChange(e=>{i._pendingValue=e,i._pendingChange=!0,i._pendingDirty=!0,i.updateOn==="change"&&_0(i,n)})}function wk(i,n){n.valueAccessor.registerOnTouched(()=>{i._pendingTouched=!0,i.updateOn==="blur"&&i._pendingChange&&_0(i,n),i.updateOn!=="submit"&&i.markAsTouched()})}function _0(i,n){i._pendingDirty&&i.markAsDirty(),i.setValue(i._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(i._pendingValue),i._pendingChange=!1}function Dk(i,n){let e=(t,o)=>{n.valueAccessor.writeValue(t),o&&n.viewToModelUpdate(t)};i.registerOnChange(e),n._registerOnDestroy(()=>{i._unregisterOnChange(e)})}function b0(i,n){i==null,Ih(i,n)}function Mk(i,n){return Od(i,n)}function v0(i,n){if(!i.hasOwnProperty("model"))return!1;let e=i.model;return e.isFirstChange()?!0:!Object.is(n,e.currentValue)}function kk(i){return Object.getPrototypeOf(i.constructor)===Dh}function y0(i,n){i._syncPendingControls(),n.forEach(e=>{let t=e.control;t.updateOn==="submit"&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})}function C0(i,n){if(!n)return null;Array.isArray(n);let e,t,o;return n.forEach(r=>{r.constructor===Mt?e=r:kk(r)?t=r:o=r}),o||t||e||null}function Sk(i,n){let e=i.indexOf(n);e>-1&&i.splice(e,1)}var Ek={provide:Gt,useExisting:St(()=>Xr)},Js=Promise.resolve(),Xr=(()=>{class i extends Gt{callSetDisabledState;get submitted(){return Lt(this.submittedReactive)}_submitted=oi(()=>this.submittedReactive());submittedReactive=Ft(!1);_directives=new Set;form;ngSubmit=new L;options;constructor(e,t,o){super(),this.callSetDisabledState=o,this.form=new Zr({},Eh(e),Oh(t))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(e){Js.then(()=>{let t=this._findContainer(e.path);e.control=t.registerControl(e.name,e.control),Sd(e.control,e,this.callSetDisabledState),e.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(e)})}getControl(e){return this.form.get(e.path)}removeControl(e){Js.then(()=>{let t=this._findContainer(e.path);t&&t.removeControl(e.name),this._directives.delete(e)})}addFormGroup(e){Js.then(()=>{let t=this._findContainer(e.path),o=new Zr({});b0(o,e),t.registerControl(e.name,o),o.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(e){Js.then(()=>{let t=this._findContainer(e.path);t&&t.removeControl(e.name)})}getFormGroup(e){return this.form.get(e.path)}updateModel(e,t){Js.then(()=>{this.form.get(e.path).setValue(t)})}setValue(e){this.control.setValue(e)}onSubmit(e){return this.submittedReactive.set(!0),y0(this.form,this._directives),this.ngSubmit.emit(e),this.form._events.next(new Md(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this.submittedReactive.set(!1),this.form._events.next(new kd(this.form))}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.form._updateOn=this.options.updateOn)}_findContainer(e){return e.pop(),e.length?this.form.get(e):this.form}static \u0275fac=function(t){return new(t||i)(k($i,10),k(Qr,10),k(nl,8))};static \u0275dir=z({type:i,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,o){t&1&&b("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{options:[0,"ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Me([Ek]),xe]})}return i})();function Jv(i,n){let e=i.indexOf(n);e>-1&&i.splice(e,1)}function e0(i){return typeof i=="object"&&i!==null&&Object.keys(i).length===2&&"value"in i&&"disabled"in i}var il=class extends Kr{defaultValue=null;_onChange=[];_pendingValue;_pendingChange=!1;constructor(n=null,e,t){super(Th(e),Ah(t,e)),this._applyFormState(n),this._setUpdateStrategy(e),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),Td(e)&&(e.nonNullable||e.initialValueIsDefault)&&(e0(n)?this.defaultValue=n.value:this.defaultValue=n)}setValue(n,e={}){this.value=this._pendingValue=n,this._onChange.length&&e.emitModelToViewChange!==!1&&this._onChange.forEach(t=>t(this.value,e.emitViewToModelChange!==!1)),this.updateValueAndValidity(e)}patchValue(n,e={}){this.setValue(n,e)}reset(n=this.defaultValue,e={}){this._applyFormState(n),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(n){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(n){this._onChange.push(n)}_unregisterOnChange(n){Jv(this._onChange,n)}registerOnDisabledChange(n){this._onDisabledChange.push(n)}_unregisterOnDisabledChange(n){Jv(this._onDisabledChange,n)}_forEachChild(n){}_syncPendingControls(){return this.updateOn==="submit"&&(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),this._pendingChange)?(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),!0):!1}_applyFormState(n){e0(n)?(this.value=this._pendingValue=n.value,n.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=n}};var Ok=i=>i instanceof il,Tk=(()=>{class i extends Gt{_parent;ngOnInit(){this._checkParentType(),this.formDirective.addFormGroup(this)}ngOnDestroy(){this.formDirective&&this.formDirective.removeFormGroup(this)}get control(){return this.formDirective.getFormGroup(this)}get path(){return Id(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_checkParentType(){}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ve(i)))(o||i)}})();static \u0275dir=z({type:i,standalone:!1,features:[xe]})}return i})();var Ak={provide:Hi,useExisting:St(()=>nr)},t0=Promise.resolve(),nr=(()=>{class i extends Hi{_changeDetectorRef;callSetDisabledState;control=new il;static ngAcceptInputType_isDisabled;_registered=!1;viewModel;name="";isDisabled;model;options;update=new L;constructor(e,t,o,r,a,s){super(),this._changeDetectorRef=a,this.callSetDisabledState=s,this._parent=e,this._setValidators(t),this._setAsyncValidators(o),this.valueAccessor=C0(this,r)}ngOnChanges(e){if(this._checkForErrors(),!this._registered||"name"in e){if(this._registered&&(this._checkName(),this.formDirective)){let t=e.name.previousValue;this.formDirective.removeControl({name:t,path:this._getPath(t)})}this._setUpControl()}"isDisabled"in e&&this._updateDisabled(e),v0(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._getPath(this.name)}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&this.options.updateOn!=null&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!!(this.options&&this.options.standalone)}_setUpStandalone(){Sd(this.control,this,this.callSetDisabledState),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._checkName()}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),!this._isStandalone()&&this.name}_updateValue(e){t0.then(()=>{this.control.setValue(e,{emitViewToModelChange:!1}),this._changeDetectorRef?.markForCheck()})}_updateDisabled(e){let t=e.isDisabled.currentValue,o=t!==0&&X(t);t0.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable(),this._changeDetectorRef?.markForCheck()})}_getPath(e){return this._parent?Id(e,this._parent):[e]}static \u0275fac=function(t){return new(t||i)(k(Gt,9),k($i,10),k(Qr,10),k(io,10),k(ye,8),k(nl,8))};static \u0275dir=z({type:i,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"],options:[0,"ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],standalone:!1,features:[Me([Ak]),xe,Oe]})}return i})();var ui=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""],standalone:!1})}return i})(),Ik={provide:io,useExisting:St(()=>or),multi:!0},or=(()=>{class i extends Dh{writeValue(e){let t=e??"";this.setProperty("value",t)}registerOnChange(e){this.onChange=t=>{e(t==""?null:parseFloat(t))}}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ve(i)))(o||i)}})();static \u0275dir=z({type:i,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,o){t&1&&b("input",function(a){return o.onChange(a.target.value)})("blur",function(){return o.onTouched()})},standalone:!1,features:[Me([Ik]),xe]})}return i})();var x0=new v("");var Pk={provide:Gt,useExisting:St(()=>bt)},bt=(()=>{class i extends Gt{callSetDisabledState;get submitted(){return Lt(this._submittedReactive)}set submitted(e){this._submittedReactive.set(e)}_submitted=oi(()=>this._submittedReactive());_submittedReactive=Ft(!1);_oldForm;_onCollectionChange=()=>this._updateDomValue();directives=[];form=null;ngSubmit=new L;constructor(e,t,o){super(),this.callSetDisabledState=o,this._setValidators(e),this._setAsyncValidators(t)}ngOnChanges(e){e.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(Od(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(e){let t=this.form.get(e.path);return Sd(t,e,this.callSetDisabledState),t.updateValueAndValidity({emitEvent:!1}),this.directives.push(e),t}getControl(e){return this.form.get(e.path)}removeControl(e){Xv(e.control||null,e,!1),Sk(this.directives,e)}addFormGroup(e){this._setUpFormContainer(e)}removeFormGroup(e){this._cleanUpFormContainer(e)}getFormGroup(e){return this.form.get(e.path)}addFormArray(e){this._setUpFormContainer(e)}removeFormArray(e){this._cleanUpFormContainer(e)}getFormArray(e){return this.form.get(e.path)}updateModel(e,t){this.form.get(e.path).setValue(t)}onSubmit(e){return this._submittedReactive.set(!0),y0(this.form,this.directives),this.ngSubmit.emit(e),this.form._events.next(new Md(this.control)),e?.target?.method==="dialog"}onReset(){this.resetForm()}resetForm(e=void 0){this.form.reset(e),this._submittedReactive.set(!1),this.form._events.next(new kd(this.form))}_updateDomValue(){this.directives.forEach(e=>{let t=e.control,o=this.form.get(e.path);t!==o&&(Xv(t||null,e),Ok(o)&&(Sd(o,e,this.callSetDisabledState),e.control=o))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(e){let t=this.form.get(e.path);b0(t,e),t.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(e){if(this.form){let t=this.form.get(e.path);t&&Mk(t,e)&&t.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){Ih(this.form,this),this._oldForm&&Od(this._oldForm,this)}static \u0275fac=function(t){return new(t||i)(k($i,10),k(Qr,10),k(nl,8))};static \u0275dir=z({type:i,selectors:[["","formGroup",""]],hostBindings:function(t,o){t&1&&b("submit",function(a){return o.onSubmit(a)})("reset",function(){return o.onReset()})},inputs:{form:[0,"formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],standalone:!1,features:[Me([Pk]),xe,Oe]})}return i})(),Rk={provide:Gt,useExisting:St(()=>Jr)},Jr=(()=>{class i extends Tk{name=null;constructor(e,t,o){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(o)}_checkParentType(){w0(this._parent)}static \u0275fac=function(t){return new(t||i)(k(Gt,13),k($i,10),k(Qr,10))};static \u0275dir=z({type:i,selectors:[["","formGroupName",""]],inputs:{name:[0,"formGroupName","name"]},standalone:!1,features:[Me([Rk]),xe]})}return i})(),Fk={provide:Gt,useExisting:St(()=>ea)},ea=(()=>{class i extends Gt{_parent;name=null;constructor(e,t,o){super(),this._parent=e,this._setValidators(t),this._setAsyncValidators(o)}ngOnInit(){w0(this._parent),this.formDirective.addFormArray(this)}ngOnDestroy(){this.formDirective?.removeFormArray(this)}get control(){return this.formDirective.getFormArray(this)}get formDirective(){return this._parent?this._parent.formDirective:null}get path(){return Id(this.name==null?this.name:this.name.toString(),this._parent)}static \u0275fac=function(t){return new(t||i)(k(Gt,13),k($i,10),k(Qr,10))};static \u0275dir=z({type:i,selectors:[["","formArrayName",""]],inputs:{name:[0,"formArrayName","name"]},standalone:!1,features:[Me([Fk]),xe]})}return i})();function w0(i){return!(i instanceof Jr)&&!(i instanceof bt)&&!(i instanceof ea)}var Nk={provide:Hi,useExisting:St(()=>ki)},ki=(()=>{class i extends Hi{_ngModelWarningConfig;_added=!1;viewModel;control;name=null;set isDisabled(e){}model;update=new L;static _ngModelWarningSentOnce=!1;_ngModelWarningSent=!1;constructor(e,t,o,r,a){super(),this._ngModelWarningConfig=a,this._parent=e,this._setValidators(t),this._setAsyncValidators(o),this.valueAccessor=C0(this,r)}ngOnChanges(e){this._added||this._setUpControl(),v0(e,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}viewToModelUpdate(e){this.viewModel=e,this.update.emit(e)}get path(){return Id(this.name==null?this.name:this.name.toString(),this._parent)}get formDirective(){return this._parent?this._parent.formDirective:null}_setUpControl(){this.control=this.formDirective.addControl(this),this._added=!0}static \u0275fac=function(t){return new(t||i)(k(Gt,13),k($i,10),k(Qr,10),k(io,10),k(x0,8))};static \u0275dir=z({type:i,selectors:[["","formControlName",""]],inputs:{name:[0,"formControlName","name"],isDisabled:[0,"disabled","isDisabled"],model:[0,"ngModel","model"]},outputs:{update:"ngModelChange"},standalone:!1,features:[Me([Nk]),xe,Oe]})}return i})();function Lk(i){return typeof i=="number"?i:parseFloat(i)}var D0=(()=>{class i{_validator=yd;_onChange;_enabled;ngOnChanges(e){if(this.inputName in e){let t=this.normalizeInput(e[this.inputName].currentValue);this._enabled=this.enabled(t),this._validator=this._enabled?this.createValidator(t):yd,this._onChange&&this._onChange()}}validate(e){return this._validator(e)}registerOnValidatorChange(e){this._onChange=e}enabled(e){return e!=null}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,features:[Oe]})}return i})();var Vk={provide:$i,useExisting:St(()=>Ph),multi:!0},Ph=(()=>{class i extends D0{min;inputName="min";normalizeInput=e=>Lk(e);createValidator=e=>o0(e);static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ve(i)))(o||i)}})();static \u0275dir=z({type:i,selectors:[["input","type","number","min","","formControlName",""],["input","type","number","min","","formControl",""],["input","type","number","min","","ngModel",""]],hostVars:1,hostBindings:function(t,o){t&2&&Y("min",o._enabled?o.min:null)},inputs:{min:"min"},standalone:!1,features:[Me([Vk]),xe]})}return i})(),Bk={provide:$i,useExisting:St(()=>Rh),multi:!0};var Rh=(()=>{class i extends D0{required;inputName="required";normalizeInput=X;createValidator=e=>r0;enabled(e){return e}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ve(i)))(o||i)}})();static \u0275dir=z({type:i,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,o){t&2&&Y("required",o._enabled?"":null)},inputs:{required:"required"},standalone:!1,features:[Me([Bk]),xe]})}return i})();var M0=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({})}return i})(),wh=class extends Kr{constructor(n,e,t){super(Th(e),Ah(t,e)),this.controls=n,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}controls;at(n){return this.controls[this._adjustIndex(n)]}push(n,e={}){this.controls.push(n),this._registerControl(n),this.updateValueAndValidity({emitEvent:e.emitEvent}),this._onCollectionChange()}insert(n,e,t={}){this.controls.splice(n,0,e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent})}removeAt(n,e={}){let t=this._adjustIndex(n);t<0&&(t=0),this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:e.emitEvent})}setControl(n,e,t={}){let o=this._adjustIndex(n);o<0&&(o=0),this.controls[o]&&this.controls[o]._registerOnCollectionChange(()=>{}),this.controls.splice(o,1),e&&(this.controls.splice(o,0,e),this._registerControl(e)),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(n,e={}){g0(this,!1,n),n.forEach((t,o)=>{f0(this,!1,o),this.at(o).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(n,e={}){n!=null&&(n.forEach((t,o)=>{this.at(o)&&this.at(o).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e))}reset(n=[],e={}){this._forEachChild((t,o)=>{t.reset(n[o],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e,this),this._updateTouched(e,this),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(n=>n.getRawValue())}clear(n={}){this.controls.length<1||(this._forEachChild(e=>e._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:n.emitEvent}))}_adjustIndex(n){return n<0?n+this.length:n}_syncPendingControls(){let n=this.controls.reduce((e,t)=>t._syncPendingControls()?!0:e,!1);return n&&this.updateValueAndValidity({onlySelf:!0}),n}_forEachChild(n){this.controls.forEach((e,t)=>{n(e,t)})}_updateValue(){this.value=this.controls.filter(n=>n.enabled||this.disabled).map(n=>n.value)}_anyControls(n){return this.controls.some(e=>e.enabled&&n(e))}_setUpControls(){this._forEachChild(n=>this._registerControl(n))}_allControlsDisabled(){for(let n of this.controls)if(n.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(n){n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange)}_find(n){return this.at(n)??null}};function i0(i){return!!i&&(i.asyncValidators!==void 0||i.validators!==void 0||i.updateOn!==void 0)}var mi=(()=>{class i{useNonNullable=!1;get nonNullable(){let e=new i;return e.useNonNullable=!0,e}group(e,t=null){let o=this._reduceControls(e),r={};return i0(t)?r=t:t!==null&&(r.validators=t.validator,r.asyncValidators=t.asyncValidator),new Zr(o,r)}record(e,t=null){let o=this._reduceControls(e);return new xh(o,t)}control(e,t,o){let r={};return this.useNonNullable?(i0(t)?r=t:(r.validators=t,r.asyncValidators=o),new il(e,O(_({},r),{nonNullable:!0}))):new il(e,t,o)}array(e,t,o){let r=e.map(a=>this._createControl(a));return new wh(r,t,o)}_reduceControls(e){let t={};return Object.keys(e).forEach(o=>{t[o]=this._createControl(e[o])}),t}_createControl(e){if(e instanceof il)return e;if(e instanceof Kr)return e;if(Array.isArray(e)){let t=e[0],o=e.length>1?e[1]:null,r=e.length>2?e[2]:null;return this.control(t,o,r)}else return this.control(e)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var pi=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:nl,useValue:e.callSetDisabledState??Ad}]}}static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({imports:[M0]})}return i})(),hi=(()=>{class i{static withConfig(e){return{ngModule:i,providers:[{provide:x0,useValue:e.warnOnNgModelWithFormControl??"always"},{provide:nl,useValue:e.callSetDisabledState??Ad}]}}static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({imports:[M0]})}return i})();var Pd=new v("MAT_INPUT_VALUE_ACCESSOR");var Rd=(()=>{class i{isErrorState(e,t){return!!(e&&e.invalid&&(e.touched||t&&t.submitted))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var ta=class{_defaultMatcher;ngControl;_parentFormGroup;_parentForm;_stateChanges;errorState=!1;matcher;constructor(n,e,t,o,r){this._defaultMatcher=n,this.ngControl=e,this._parentFormGroup=t,this._parentForm=o,this._stateChanges=r}updateErrorState(){let n=this.errorState,e=this._parentFormGroup||this._parentForm,t=this.matcher||this._defaultMatcher,o=this.ngControl?this.ngControl.control:null,r=t?.isErrorState(o,e)??!1;r!==n&&(this.errorState=r,this._stateChanges.next())}};var jk=["button","checkbox","file","hidden","image","radio","range","reset","submit"],zk=new v("MAT_INPUT_CONFIG"),Vn=(()=>{class i{_elementRef=d(Z);_platform=d(Se);ngControl=d(Hi,{optional:!0,self:!0});_autofillMonitor=d(Yv);_ngZone=d(K);_formField=d(vo,{optional:!0});_renderer=d(tt);_uid=d(Ye).getId("mat-input-");_previousNativeValue;_inputValueAccessor;_signalBasedValueAccessor;_previousPlaceholder;_errorStateTracker;_config=d(zk,{optional:!0});_cleanupIosKeyup;_cleanupWebkitWheel;_formFieldDescribedBy;_isServer;_isNativeSelect;_isTextarea;_isInFormField;focused=!1;stateChanges=new S;controlType="mat-input";autofilled=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=$t(e),this.focused&&(this.focused=!1,this.stateChanges.next())}_disabled=!1;get id(){return this._id}set id(e){this._id=e||this._uid}_id;placeholder;name;get required(){return this._required??this.ngControl?.control?.hasValidator(me.required)??!1}set required(e){this._required=$t(e)}_required;get type(){return this._type}set type(e){let t=this._type;this._type=e||"text",this._validateType(),!this._isTextarea&&gh().has(this._type)&&(this._elementRef.nativeElement.type=this._type),this._type!==t&&this._ensureWheelDefaultBehavior()}_type="text";get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}userAriaDescribedBy;get value(){return this._signalBasedValueAccessor?this._signalBasedValueAccessor.value():this._inputValueAccessor.value}set value(e){e!==this.value&&(this._signalBasedValueAccessor?this._signalBasedValueAccessor.value.set(e):this._inputValueAccessor.value=e,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(e){this._readonly=$t(e)}_readonly=!1;disabledInteractive;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}_neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(e=>gh().has(e));constructor(){let e=d(Xr,{optional:!0}),t=d(bt,{optional:!0}),o=d(Rd),r=d(Pd,{optional:!0,self:!0}),a=this._elementRef.nativeElement,s=a.nodeName.toLowerCase();r?Ro(r.value)?this._signalBasedValueAccessor=r:this._inputValueAccessor=r:this._inputValueAccessor=a,this._previousNativeValue=this.value,this.id=this.id,this._platform.IOS&&this._ngZone.runOutsideAngular(()=>{this._cleanupIosKeyup=this._renderer.listen(a,"keyup",this._iOSKeyupListener)}),this._errorStateTracker=new ta(o,this.ngControl,t,e,this.stateChanges),this._isServer=!this._platform.isBrowser,this._isNativeSelect=s==="select",this._isTextarea=s==="textarea",this._isInFormField=!!this._formField,this.disabledInteractive=this._config?.disabledInteractive||!1,this._isNativeSelect&&(this.controlType=a.multiple?"mat-native-select-multiple":"mat-native-select"),this._signalBasedValueAccessor&&Bo(()=>{this._signalBasedValueAccessor.value(),this.stateChanges.next()})}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(e=>{this.autofilled=e.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._cleanupIosKeyup?.(),this._cleanupWebkitWheel?.()}ngDoCheck(){this.ngControl&&(this.updateErrorState(),this.ngControl.disabled!==null&&this.ngControl.disabled!==this.disabled&&(this.disabled=this.ngControl.disabled,this.stateChanges.next())),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(e){this._elementRef.nativeElement.focus(e)}updateErrorState(){this._errorStateTracker.updateErrorState()}_focusChanged(e){if(e!==this.focused){if(!this._isNativeSelect&&e&&this.disabled&&this.disabledInteractive){let t=this._elementRef.nativeElement;t.type==="number"?(t.type="text",t.setSelectionRange(0,0),t.type="number"):t.setSelectionRange(0,0)}this.focused=e,this.stateChanges.next()}}_onInput(){}_dirtyCheckNativeValue(){let e=this._elementRef.nativeElement.value;this._previousNativeValue!==e&&(this._previousNativeValue=e,this.stateChanges.next())}_dirtyCheckPlaceholder(){let e=this._getPlaceholder();if(e!==this._previousPlaceholder){let t=this._elementRef.nativeElement;this._previousPlaceholder=e,e?t.setAttribute("placeholder",e):t.removeAttribute("placeholder")}}_getPlaceholder(){return this.placeholder||null}_validateType(){jk.indexOf(this._type)>-1}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let e=this._elementRef.nativeElement.validity;return e&&e.badInput}get empty(){return!this._isNeverEmpty()&&!this._elementRef.nativeElement.value&&!this._isBadInput()&&!this.autofilled}get shouldLabelFloat(){if(this._isNativeSelect){let e=this._elementRef.nativeElement,t=e.options[0];return this.focused||e.multiple||!this.empty||!!(e.selectedIndex>-1&&t&&t.label)}else return this.focused&&!this.disabled||!this.empty}setDescribedByIds(e){let t=this._elementRef.nativeElement,o=t.getAttribute("aria-describedby"),r;if(o){let a=this._formFieldDescribedBy||e;r=e.concat(o.split(" ").filter(s=>s&&!a.includes(s)))}else r=e;this._formFieldDescribedBy=e,r.length?t.setAttribute("aria-describedby",r.join(" ")):t.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){let e=this._elementRef.nativeElement;return this._isNativeSelect&&(e.multiple||e.size>1)}_iOSKeyupListener=e=>{let t=e.target;!t.value&&t.selectionStart===0&&t.selectionEnd===0&&(t.setSelectionRange(1,1),t.setSelectionRange(0,0))};_webkitBlinkWheelListener=()=>{};_ensureWheelDefaultBehavior(){this._cleanupWebkitWheel?.(),this._type==="number"&&(this._platform.BLINK||this._platform.WEBKIT)&&(this._cleanupWebkitWheel=this._renderer.listen(this._elementRef.nativeElement,"wheel",this._webkitBlinkWheelListener))}_getReadonlyAttribute(){return this._isNativeSelect?null:this.readonly||this.disabled&&this.disabledInteractive?"true":null}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-mdc-input-element"],hostVars:21,hostBindings:function(t,o){t&1&&b("focus",function(){return o._focusChanged(!0)})("blur",function(){return o._focusChanged(!1)})("input",function(){return o._onInput()}),t&2&&(vi("id",o.id)("disabled",o.disabled&&!o.disabledInteractive)("required",o.required),Y("name",o.name||null)("readonly",o._getReadonlyAttribute())("aria-disabled",o.disabled&&o.disabledInteractive?"true":null)("aria-invalid",o.empty&&o.required?null:o.errorState)("aria-required",o.required)("id",o.id),j("mat-input-server",o._isServer)("mat-mdc-form-field-textarea-control",o._isInFormField&&o._isTextarea)("mat-mdc-form-field-input-control",o._isInFormField)("mat-mdc-input-disabled-interactive",o.disabledInteractive)("mdc-text-field__input",o._isInFormField)("mat-mdc-native-select-inline",o._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly",disabledInteractive:[2,"disabledInteractive","disabledInteractive",X]},exportAs:["matInput"],features:[Me([{provide:ir,useExisting:i}]),Oe]})}return i})(),Gi=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({imports:[se,It,It,qv,se]})}return i})();var Wi=function(i){return i[i.FADING_IN=0]="FADING_IN",i[i.VISIBLE=1]="VISIBLE",i[i.FADING_OUT=2]="FADING_OUT",i[i.HIDDEN=3]="HIDDEN",i}(Wi||{}),Fh=class{_renderer;element;config;_animationForciblyDisabledThroughCss;state=Wi.HIDDEN;constructor(n,e,t,o=!1){this._renderer=n,this.element=e,this.config=t,this._animationForciblyDisabledThroughCss=o}fadeOut(){this._renderer.fadeOutRipple(this)}},k0=po({passive:!0,capture:!0}),Nh=class{_events=new Map;addHandler(n,e,t,o){let r=this._events.get(e);if(r){let a=r.get(t);a?a.add(o):r.set(t,new Set([o]))}else this._events.set(e,new Map([[t,new Set([o])]])),n.runOutsideAngular(()=>{document.addEventListener(e,this._delegateEventHandler,k0)})}removeHandler(n,e,t){let o=this._events.get(n);if(!o)return;let r=o.get(e);r&&(r.delete(t),r.size===0&&o.delete(e),o.size===0&&(this._events.delete(n),document.removeEventListener(n,this._delegateEventHandler,k0)))}_delegateEventHandler=n=>{let e=wt(n);e&&this._events.get(n.type)?.forEach((t,o)=>{(o===e||o.contains(e))&&t.forEach(r=>r.handleEvent(n))})}},rl={enterDuration:225,exitDuration:150},Uk=800,S0=po({passive:!0,capture:!0}),E0=["mousedown","touchstart"],O0=["mouseup","mouseleave","touchend","touchcancel"],Hk=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["ng-component"]],hostAttrs:["mat-ripple-style-loader",""],decls:0,vars:0,template:function(t,o){},styles:[`.mat-ripple{overflow:hidden;position:relative}.mat-ripple:not(:empty){transform:translateZ(0)}.mat-ripple.mat-ripple-unbounded{overflow:visible}.mat-ripple-element{position:absolute;border-radius:50%;pointer-events:none;transition:opacity,transform 0ms cubic-bezier(0, 0, 0.2, 1);transform:scale3d(0, 0, 0);background-color:var(--mat-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface) 10%, transparent))}@media(forced-colors: active){.mat-ripple-element{display:none}}.cdk-drag-preview .mat-ripple-element,.cdk-drag-placeholder .mat-ripple-element{display:none} -`],encapsulation:2,changeDetection:0})}return i})(),rr=class i{_target;_ngZone;_platform;_containerElement;_triggerElement;_isPointerDown=!1;_activeRipples=new Map;_mostRecentTransientRipple;_lastTouchStartEvent;_pointerUpEventsRegistered=!1;_containerRect;static _eventManager=new Nh;constructor(n,e,t,o,r){this._target=n,this._ngZone=e,this._platform=o,o.isBrowser&&(this._containerElement=ct(t)),r&&r.get(We).load(Hk)}fadeInRipple(n,e,t={}){let o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=_(_({},rl),t.animation);t.centered&&(n=o.left+o.width/2,e=o.top+o.height/2);let a=t.radius||$k(n,e,o),s=n-o.left,u=e-o.top,h=r.enterDuration,g=document.createElement("div");g.classList.add("mat-ripple-element"),g.style.left=`${s-a}px`,g.style.top=`${u-a}px`,g.style.height=`${a*2}px`,g.style.width=`${a*2}px`,t.color!=null&&(g.style.backgroundColor=t.color),g.style.transitionDuration=`${h}ms`,this._containerElement.appendChild(g);let y=window.getComputedStyle(g),R=y.transitionProperty,F=y.transitionDuration,H=R==="none"||F==="0s"||F==="0s, 0s"||o.width===0&&o.height===0,B=new Fh(this,g,t,H);g.style.transform="scale3d(1, 1, 1)",B.state=Wi.FADING_IN,t.persistent||(this._mostRecentTransientRipple=B);let J=null;return!H&&(h||r.exitDuration)&&this._ngZone.runOutsideAngular(()=>{let Fe=()=>{J&&(J.fallbackTimer=null),clearTimeout(De),this._finishRippleTransition(B)},at=()=>this._destroyRipple(B),De=setTimeout(at,h+100);g.addEventListener("transitionend",Fe),g.addEventListener("transitioncancel",at),J={onTransitionEnd:Fe,onTransitionCancel:at,fallbackTimer:De}}),this._activeRipples.set(B,J),(H||!h)&&this._finishRippleTransition(B),B}fadeOutRipple(n){if(n.state===Wi.FADING_OUT||n.state===Wi.HIDDEN)return;let e=n.element,t=_(_({},rl),n.config.animation);e.style.transitionDuration=`${t.exitDuration}ms`,e.style.opacity="0",n.state=Wi.FADING_OUT,(n._animationForciblyDisabledThroughCss||!t.exitDuration)&&this._finishRippleTransition(n)}fadeOutAll(){this._getActiveRipples().forEach(n=>n.fadeOut())}fadeOutAllNonPersistent(){this._getActiveRipples().forEach(n=>{n.config.persistent||n.fadeOut()})}setupTriggerEvents(n){let e=ct(n);!this._platform.isBrowser||!e||e===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=e,E0.forEach(t=>{i._eventManager.addHandler(this._ngZone,t,e,this)}))}handleEvent(n){n.type==="mousedown"?this._onMousedown(n):n.type==="touchstart"?this._onTouchStart(n):this._onPointerUp(),this._pointerUpEventsRegistered||(this._ngZone.runOutsideAngular(()=>{O0.forEach(e=>{this._triggerElement.addEventListener(e,this,S0)})}),this._pointerUpEventsRegistered=!0)}_finishRippleTransition(n){n.state===Wi.FADING_IN?this._startFadeOutTransition(n):n.state===Wi.FADING_OUT&&this._destroyRipple(n)}_startFadeOutTransition(n){let e=n===this._mostRecentTransientRipple,{persistent:t}=n.config;n.state=Wi.VISIBLE,!t&&(!e||!this._isPointerDown)&&n.fadeOut()}_destroyRipple(n){let e=this._activeRipples.get(n)??null;this._activeRipples.delete(n),this._activeRipples.size||(this._containerRect=null),n===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),n.state=Wi.HIDDEN,e!==null&&(n.element.removeEventListener("transitionend",e.onTransitionEnd),n.element.removeEventListener("transitioncancel",e.onTransitionCancel),e.fallbackTimer!==null&&clearTimeout(e.fallbackTimer)),n.element.remove()}_onMousedown(n){let e=Jn(n),t=this._lastTouchStartEvent&&Date.now(){let e=n.state===Wi.VISIBLE||n.config.terminateOnPointerUp&&n.state===Wi.FADING_IN;!n.config.persistent&&e&&n.fadeOut()}))}_getActiveRipples(){return Array.from(this._activeRipples.keys())}_removeTriggerEvents(){let n=this._triggerElement;n&&(E0.forEach(e=>i._eventManager.removeHandler(e,n,this)),this._pointerUpEventsRegistered&&(O0.forEach(e=>n.removeEventListener(e,this,S0)),this._pointerUpEventsRegistered=!1))}};function $k(i,n,e){let t=Math.max(Math.abs(i-e.left),Math.abs(i-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(t*t+o*o)}var al=new v("mat-ripple-global-options"),ia=(()=>{class i{_elementRef=d(Z);_animationMode=d(ze,{optional:!0});color;unbounded;centered;radius=0;animation;get disabled(){return this._disabled}set disabled(e){e&&this.fadeOutAllNonPersistent(),this._disabled=e,this._setupTriggerEventsIfEnabled()}_disabled=!1;get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(e){this._trigger=e,this._setupTriggerEventsIfEnabled()}_trigger;_rippleRenderer;_globalOptions;_isInitialized=!1;constructor(){let e=d(K),t=d(Se),o=d(al,{optional:!0}),r=d(ce);this._globalOptions=o||{},this._rippleRenderer=new rr(this,e,this._elementRef,t,r)}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:_(_(_({},this._globalOptions.animation),this._animationMode==="NoopAnimations"?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(e,t=0,o){return typeof e=="number"?this._rippleRenderer.fadeInRipple(e,t,_(_({},this.rippleConfig),o)):this._rippleRenderer.fadeInRipple(0,0,_(_({},this.rippleConfig),e))}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,o){t&2&&j("mat-ripple-unbounded",o.unbounded)},inputs:{color:[0,"matRippleColor","color"],unbounded:[0,"matRippleUnbounded","unbounded"],centered:[0,"matRippleCentered","centered"],radius:[0,"matRippleRadius","radius"],animation:[0,"matRippleAnimation","animation"],disabled:[0,"matRippleDisabled","disabled"],trigger:[0,"matRippleTrigger","trigger"]},exportAs:["matRipple"]})}return i})();var Gk={capture:!0},Wk=["focus","mousedown","mouseenter","touchstart"],Lh="mat-ripple-loader-uninitialized",Vh="mat-ripple-loader-class-name",T0="mat-ripple-loader-centered",Fd="mat-ripple-loader-disabled",A0=(()=>{class i{_document=d(re);_animationMode=d(ze,{optional:!0});_globalRippleOptions=d(al,{optional:!0});_platform=d(Se);_ngZone=d(K);_injector=d(ce);_eventCleanups;_hosts=new Map;constructor(){let e=d(yt).createRenderer(null,null);this._eventCleanups=this._ngZone.runOutsideAngular(()=>Wk.map(t=>Ue(e,this._document,t,this._onInteraction,Gk)))}ngOnDestroy(){let e=this._hosts.keys();for(let t of e)this.destroyRipple(t);this._eventCleanups.forEach(t=>t())}configureRipple(e,t){e.setAttribute(Lh,this._globalRippleOptions?.namespace??""),(t.className||!e.hasAttribute(Vh))&&e.setAttribute(Vh,t.className||""),t.centered&&e.setAttribute(T0,""),t.disabled&&e.setAttribute(Fd,"")}setDisabled(e,t){let o=this._hosts.get(e);o?(o.target.rippleDisabled=t,!t&&!o.hasSetUpEvents&&(o.hasSetUpEvents=!0,o.renderer.setupTriggerEvents(e))):t?e.setAttribute(Fd,""):e.removeAttribute(Fd)}_onInteraction=e=>{let t=wt(e);if(t instanceof HTMLElement){let o=t.closest(`[${Lh}="${this._globalRippleOptions?.namespace??""}"]`);o&&this._createRipple(o)}};_createRipple(e){if(!this._document||this._hosts.has(e))return;e.querySelector(".mat-ripple")?.remove();let t=this._document.createElement("span");t.classList.add("mat-ripple",e.getAttribute(Vh)),e.append(t);let o=this._animationMode==="NoopAnimations",r=this._globalRippleOptions,a=o?0:r?.animation?.enterDuration??rl.enterDuration,s=o?0:r?.animation?.exitDuration??rl.exitDuration,u={rippleDisabled:o||r?.disabled||e.hasAttribute(Fd),rippleConfig:{centered:e.hasAttribute(T0),terminateOnPointerUp:r?.terminateOnPointerUp,animation:{enterDuration:a,exitDuration:s}}},h=new rr(u,this._ngZone,t,this._platform,this._injector),g=!u.rippleDisabled;g&&h.setupTriggerEvents(e),this._hosts.set(e,{target:u,renderer:h,hasSetUpEvents:g}),e.removeAttribute(Lh)}destroyRipple(e){let t=this._hosts.get(e);t&&(t.renderer._removeTriggerEvents(),this._hosts.delete(e))}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var Yi=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["structural-styles"]],decls:0,vars:0,template:function(t,o){},styles:[`.mat-focus-indicator{position:relative}.mat-focus-indicator::before{top:0;left:0;right:0;bottom:0;position:absolute;box-sizing:border-box;pointer-events:none;display:var(--mat-focus-indicator-display, none);border-width:var(--mat-focus-indicator-border-width, 3px);border-style:var(--mat-focus-indicator-border-style, solid);border-color:var(--mat-focus-indicator-border-color, transparent);border-radius:var(--mat-focus-indicator-border-radius, 4px)}.mat-focus-indicator:focus::before{content:""}@media(forced-colors: active){html{--mat-focus-indicator-display: block}} -`],encapsulation:2,changeDetection:0})}return i})();var Yk=["mat-icon-button",""],qk=["*"];var Kk=new v("MAT_BUTTON_CONFIG");var Zk=[{attribute:"mat-button",mdcClasses:["mdc-button","mat-mdc-button"]},{attribute:"mat-flat-button",mdcClasses:["mdc-button","mdc-button--unelevated","mat-mdc-unelevated-button"]},{attribute:"mat-raised-button",mdcClasses:["mdc-button","mdc-button--raised","mat-mdc-raised-button"]},{attribute:"mat-stroked-button",mdcClasses:["mdc-button","mdc-button--outlined","mat-mdc-outlined-button"]},{attribute:"mat-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mat-mdc-fab"]},{attribute:"mat-mini-fab",mdcClasses:["mdc-fab","mat-mdc-fab-base","mdc-fab--mini","mat-mdc-mini-fab"]},{attribute:"mat-icon-button",mdcClasses:["mdc-icon-button","mat-mdc-icon-button"]}],Nd=(()=>{class i{_elementRef=d(Z);_ngZone=d(K);_animationMode=d(ze,{optional:!0});_focusMonitor=d(un);_rippleLoader=d(A0);_isFab=!1;color;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=e,this._updateRippleDisabled()}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._updateRippleDisabled()}_disabled=!1;ariaDisabled;disabledInteractive;constructor(){d(We).load(Yi);let e=d(Kk,{optional:!0}),t=this._elementRef.nativeElement,o=t.classList;this.disabledInteractive=e?.disabledInteractive??!1,this.color=e?.color??null,this._rippleLoader?.configureRipple(t,{className:"mat-mdc-button-ripple"});for(let{attribute:r,mdcClasses:a}of Zk)t.hasAttribute(r)&&o.add(...a)}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef),this._rippleLoader?.destroyRipple(this._elementRef.nativeElement)}focus(e="program",t){e?this._focusMonitor.focusVia(this._elementRef.nativeElement,e,t):this._elementRef.nativeElement.focus(t)}_getAriaDisabled(){return this.ariaDisabled!=null?this.ariaDisabled:this.disabled&&this.disabledInteractive?!0:null}_getDisabledAttribute(){return this.disabledInteractive||!this.disabled?null:!0}_updateRippleDisabled(){this._rippleLoader?.setDisabled(this._elementRef.nativeElement,this.disableRipple||this.disabled)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,inputs:{color:"color",disableRipple:[2,"disableRipple","disableRipple",X],disabled:[2,"disabled","disabled",X],ariaDisabled:[2,"aria-disabled","ariaDisabled",X],disabledInteractive:[2,"disabledInteractive","disabledInteractive",X]}})}return i})();var Ze=(()=>{class i extends Nd{constructor(){super(),this._rippleLoader.configureRipple(this._elementRef.nativeElement,{centered:!0})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["button","mat-icon-button",""]],hostVars:14,hostBindings:function(t,o){t&2&&(Y("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),jt(o.color?"mat-"+o.color:""),j("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[xe],attrs:Yk,ngContentSelectors:qk,decls:4,vars:0,consts:[[1,"mat-mdc-button-persistent-ripple","mdc-icon-button__ripple"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,o){t&1&&(Te(),M(0,"span",0),ae(1),M(2,"span",1)(3,"span",2))},styles:[`.mat-mdc-icon-button{-webkit-user-select:none;user-select:none;display:inline-block;position:relative;box-sizing:border-box;border:none;outline:none;background-color:rgba(0,0,0,0);fill:currentColor;color:inherit;text-decoration:none;cursor:pointer;z-index:0;overflow:visible;border-radius:50%;flex-shrink:0;text-align:center;width:var(--mdc-icon-button-state-layer-size, 40px);height:var(--mdc-icon-button-state-layer-size, 40px);padding:calc(calc(var(--mdc-icon-button-state-layer-size, 40px) - var(--mdc-icon-button-icon-size, 24px)) / 2);font-size:var(--mdc-icon-button-icon-size, 24px);color:var(--mdc-icon-button-icon-color, var(--mat-sys-on-surface-variant));-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-icon-button .mat-mdc-button-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple,.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-icon-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-icon-button .mdc-button__label,.mat-mdc-icon-button .mat-icon{z-index:1;position:relative}.mat-mdc-icon-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-icon-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-icon-button .mat-ripple-element{background-color:var(--mat-icon-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-surface-variant) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-icon-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-icon-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-icon-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-icon-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-icon-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-icon-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-icon-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-icon-button-touch-target-display, block)}.mat-mdc-icon-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-icon-button[disabled],.mat-mdc-icon-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-icon-button-disabled-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-icon-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-icon-button img,.mat-mdc-icon-button svg{width:var(--mdc-icon-button-icon-size, 24px);height:var(--mdc-icon-button-icon-size, 24px);vertical-align:baseline}.mat-mdc-icon-button .mat-mdc-button-persistent-ripple{border-radius:50%}.mat-mdc-icon-button[hidden]{display:none}.mat-mdc-icon-button.mat-unthemed:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-primary:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-accent:not(.mdc-ripple-upgraded):focus::before,.mat-mdc-icon-button.mat-warn:not(.mdc-ripple-upgraded):focus::before{background:rgba(0,0,0,0);opacity:1} -`,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} -`],encapsulation:2,changeDetection:0})}return i})();var Co=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({imports:[se,se]})}return i})();var Qk=["mat-button",""],P0=[[["",8,"material-icons",3,"iconPositionEnd",""],["mat-icon",3,"iconPositionEnd",""],["","matButtonIcon","",3,"iconPositionEnd",""]],"*",[["","iconPositionEnd","",8,"material-icons"],["mat-icon","iconPositionEnd",""],["","matButtonIcon","","iconPositionEnd",""]]],R0=[".material-icons:not([iconPositionEnd]), mat-icon:not([iconPositionEnd]), [matButtonIcon]:not([iconPositionEnd])","*",".material-icons[iconPositionEnd], mat-icon[iconPositionEnd], [matButtonIcon][iconPositionEnd]"];var Xk=["mat-fab",""];var Xe=(()=>{class i extends Nd{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ve(i)))(o||i)}})();static \u0275cmp=E({type:i,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-flat-button",""],["button","mat-stroked-button",""]],hostVars:14,hostBindings:function(t,o){t&2&&(Y("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),jt(o.color?"mat-"+o.color:""),j("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0))},exportAs:["matButton"],features:[xe],attrs:Qk,ngContentSelectors:R0,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,o){t&1&&(Te(P0),M(0,"span",0),ae(1),l(2,"span",1),ae(3,1),c(),ae(4,2),M(5,"span",2)(6,"span",3)),t&2&&j("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[`.mat-mdc-button-base{text-decoration:none}.mdc-button{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;min-width:64px;border:none;outline:none;line-height:inherit;-webkit-appearance:none;overflow:visible;vertical-align:middle;background:rgba(0,0,0,0);padding:0 8px}.mdc-button::-moz-focus-inner{padding:0;border:0}.mdc-button:active{outline:none}.mdc-button:hover{cursor:pointer}.mdc-button:disabled{cursor:default;pointer-events:none}.mdc-button[hidden]{display:none}.mdc-button .mdc-button__label{position:relative}.mat-mdc-button{padding:0 var(--mat-text-button-horizontal-padding, 12px);height:var(--mdc-text-button-container-height, 40px);font-family:var(--mdc-text-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-text-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-text-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-text-button-label-text-transform);font-weight:var(--mdc-text-button-label-text-weight, var(--mat-sys-label-large-weight))}.mat-mdc-button,.mat-mdc-button .mdc-button__ripple{border-radius:var(--mdc-text-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-button:not(:disabled){color:var(--mdc-text-button-label-text-color, var(--mat-sys-primary))}.mat-mdc-button[disabled],.mat-mdc-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-text-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button:has(.material-icons,mat-icon,[matButtonIcon]){padding:0 var(--mat-text-button-with-icon-horizontal-padding, 16px)}.mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}[dir=rtl] .mat-mdc-button>.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}.mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-offset, -4px);margin-left:var(--mat-text-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-button .mdc-button__label+.mat-icon{margin-right:var(--mat-text-button-icon-spacing, 8px);margin-left:var(--mat-text-button-icon-offset, -4px)}.mat-mdc-button .mat-ripple-element{background-color:var(--mat-text-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-text-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-text-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-text-button-touch-target-display, block)}.mat-mdc-unelevated-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-filled-button-container-height, 40px);font-family:var(--mdc-filled-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-filled-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-filled-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-filled-button-label-text-transform);font-weight:var(--mdc-filled-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-filled-button-horizontal-padding, 24px)}.mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-unelevated-button>.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}.mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-offset, -8px);margin-left:var(--mat-filled-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-unelevated-button .mdc-button__label+.mat-icon{margin-right:var(--mat-filled-button-icon-spacing, 8px);margin-left:var(--mat-filled-button-icon-offset, -8px)}.mat-mdc-unelevated-button .mat-ripple-element{background-color:var(--mat-filled-button-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-state-layer-color, var(--mat-sys-on-primary))}.mat-mdc-unelevated-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-filled-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-unelevated-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-unelevated-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-unelevated-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-filled-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-unelevated-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-filled-button-touch-target-display, block)}.mat-mdc-unelevated-button:not(:disabled){color:var(--mdc-filled-button-label-text-color, var(--mat-sys-on-primary));background-color:var(--mdc-filled-button-container-color, var(--mat-sys-primary))}.mat-mdc-unelevated-button,.mat-mdc-unelevated-button .mdc-button__ripple{border-radius:var(--mdc-filled-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-unelevated-button[disabled],.mat-mdc-unelevated-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-filled-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-filled-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-unelevated-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-raised-button{transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);box-shadow:var(--mdc-protected-button-container-elevation-shadow, var(--mat-sys-level1));height:var(--mdc-protected-button-container-height, 40px);font-family:var(--mdc-protected-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-protected-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-protected-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-protected-button-label-text-transform);font-weight:var(--mdc-protected-button-label-text-weight, var(--mat-sys-label-large-weight));padding:0 var(--mat-protected-button-horizontal-padding, 24px)}.mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-raised-button>.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}.mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-offset, -8px);margin-left:var(--mat-protected-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-raised-button .mdc-button__label+.mat-icon{margin-right:var(--mat-protected-button-icon-spacing, 8px);margin-left:var(--mat-protected-button-icon-offset, -8px)}.mat-mdc-raised-button .mat-ripple-element{background-color:var(--mat-protected-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-raised-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-protected-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-raised-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-raised-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-raised-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-protected-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-raised-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-protected-button-touch-target-display, block)}.mat-mdc-raised-button:not(:disabled){color:var(--mdc-protected-button-label-text-color, var(--mat-sys-primary));background-color:var(--mdc-protected-button-container-color, var(--mat-sys-surface))}.mat-mdc-raised-button,.mat-mdc-raised-button .mdc-button__ripple{border-radius:var(--mdc-protected-button-container-shape, var(--mat-sys-corner-full))}.mat-mdc-raised-button:hover{box-shadow:var(--mdc-protected-button-hover-container-elevation-shadow, var(--mat-sys-level2))}.mat-mdc-raised-button:focus{box-shadow:var(--mdc-protected-button-focus-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button:active,.mat-mdc-raised-button:focus:active{box-shadow:var(--mdc-protected-button-pressed-container-elevation-shadow, var(--mat-sys-level1))}.mat-mdc-raised-button[disabled],.mat-mdc-raised-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-protected-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mdc-protected-button-disabled-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-raised-button[disabled].mat-mdc-button-disabled,.mat-mdc-raised-button.mat-mdc-button-disabled.mat-mdc-button-disabled{box-shadow:var(--mdc-protected-button-disabled-container-elevation-shadow, var(--mat-sys-level0))}.mat-mdc-raised-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-outlined-button{border-style:solid;transition:border 280ms cubic-bezier(0.4, 0, 0.2, 1);height:var(--mdc-outlined-button-container-height, 40px);font-family:var(--mdc-outlined-button-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-outlined-button-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mdc-outlined-button-label-text-tracking, var(--mat-sys-label-large-tracking));text-transform:var(--mdc-outlined-button-label-text-transform);font-weight:var(--mdc-outlined-button-label-text-weight, var(--mat-sys-label-large-weight));border-radius:var(--mdc-outlined-button-container-shape, var(--mat-sys-corner-full));border-width:var(--mdc-outlined-button-outline-width, 1px);padding:0 var(--mat-outlined-button-horizontal-padding, 24px)}.mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}[dir=rtl] .mat-mdc-outlined-button>.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}.mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-offset, -8px);margin-left:var(--mat-outlined-button-icon-spacing, 8px)}[dir=rtl] .mat-mdc-outlined-button .mdc-button__label+.mat-icon{margin-right:var(--mat-outlined-button-icon-spacing, 8px);margin-left:var(--mat-outlined-button-icon-offset, -8px)}.mat-mdc-outlined-button .mat-ripple-element{background-color:var(--mat-outlined-button-ripple-color, color-mix(in srgb, var(--mat-sys-primary) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-state-layer-color, var(--mat-sys-primary))}.mat-mdc-outlined-button.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-outlined-button-disabled-state-layer-color, var(--mat-sys-on-surface-variant))}.mat-mdc-outlined-button:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-outlined-button.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-outlined-button:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-outlined-button-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-outlined-button .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:0;right:0;transform:translateY(-50%);display:var(--mat-outlined-button-touch-target-display, block)}.mat-mdc-outlined-button:not(:disabled){color:var(--mdc-outlined-button-label-text-color, var(--mat-sys-primary));border-color:var(--mdc-outlined-button-outline-color, var(--mat-sys-outline))}.mat-mdc-outlined-button[disabled],.mat-mdc-outlined-button.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mdc-outlined-button-disabled-label-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:var(--mdc-outlined-button-disabled-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-outlined-button.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-button,.mat-mdc-unelevated-button,.mat-mdc-raised-button,.mat-mdc-outlined-button{-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple,.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-button .mat-mdc-button-ripple,.mat-mdc-unelevated-button .mat-mdc-button-ripple,.mat-mdc-raised-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-unelevated-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-raised-button .mat-mdc-button-persistent-ripple::before,.mat-mdc-outlined-button .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-button .mdc-button__label,.mat-mdc-button .mat-icon,.mat-mdc-unelevated-button .mdc-button__label,.mat-mdc-unelevated-button .mat-icon,.mat-mdc-raised-button .mdc-button__label,.mat-mdc-raised-button .mat-icon,.mat-mdc-outlined-button .mdc-button__label,.mat-mdc-outlined-button .mat-icon{z-index:1;position:relative}.mat-mdc-button .mat-focus-indicator,.mat-mdc-unelevated-button .mat-focus-indicator,.mat-mdc-raised-button .mat-focus-indicator,.mat-mdc-outlined-button .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:inherit}.mat-mdc-button:focus>.mat-focus-indicator::before,.mat-mdc-unelevated-button:focus>.mat-focus-indicator::before,.mat-mdc-raised-button:focus>.mat-focus-indicator::before,.mat-mdc-outlined-button:focus>.mat-focus-indicator::before{content:"";border-radius:inherit}.mat-mdc-button._mat-animation-noopable,.mat-mdc-unelevated-button._mat-animation-noopable,.mat-mdc-raised-button._mat-animation-noopable,.mat-mdc-outlined-button._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-button>.mat-icon,.mat-mdc-unelevated-button>.mat-icon,.mat-mdc-raised-button>.mat-icon,.mat-mdc-outlined-button>.mat-icon{display:inline-block;position:relative;vertical-align:top;font-size:1.125rem;height:1.125rem;width:1.125rem}.mat-mdc-outlined-button .mat-mdc-button-ripple,.mat-mdc-outlined-button .mdc-button__ripple{top:-1px;left:-1px;bottom:-1px;right:-1px}.mat-mdc-unelevated-button .mat-focus-indicator::before,.mat-mdc-raised-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-outlined-button .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)} -`,`@media(forced-colors: active){.mat-mdc-button:not(.mdc-button--outlined),.mat-mdc-unelevated-button:not(.mdc-button--outlined),.mat-mdc-raised-button:not(.mdc-button--outlined),.mat-mdc-outlined-button:not(.mdc-button--outlined),.mat-mdc-icon-button.mat-mdc-icon-button,.mat-mdc-outlined-button .mdc-button__ripple{outline:solid 1px}} -`],encapsulation:2,changeDetection:0})}return i})();var Jk=new v("mat-mdc-fab-default-options",{providedIn:"root",factory:F0});function F0(){return{color:"accent"}}var I0=F0(),Ld=(()=>{class i extends Nd{_options=d(Jk,{optional:!0});_isFab=!0;extended;constructor(){super(),this._options=this._options||I0,this.color=this._options.color||I0.color}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["button","mat-fab",""]],hostVars:18,hostBindings:function(t,o){t&2&&(Y("disabled",o._getDisabledAttribute())("aria-disabled",o._getAriaDisabled()),jt(o.color?"mat-"+o.color:""),j("mat-mdc-button-disabled",o.disabled)("mat-mdc-button-disabled-interactive",o.disabledInteractive)("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mat-unthemed",!o.color)("mat-mdc-button-base",!0)("mdc-fab--extended",o.extended)("mat-mdc-extended-fab",o.extended))},inputs:{extended:[2,"extended","extended",X]},exportAs:["matButton"],features:[xe],attrs:Xk,ngContentSelectors:R0,decls:7,vars:4,consts:[[1,"mat-mdc-button-persistent-ripple"],[1,"mdc-button__label"],[1,"mat-focus-indicator"],[1,"mat-mdc-button-touch-target"]],template:function(t,o){t&1&&(Te(P0),M(0,"span",0),ae(1),l(2,"span",1),ae(3,1),c(),ae(4,2),M(5,"span",2)(6,"span",3)),t&2&&j("mdc-button__ripple",!o._isFab)("mdc-fab__ripple",o._isFab)},styles:[`.mat-mdc-fab-base{-webkit-user-select:none;user-select:none;position:relative;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:56px;height:56px;padding:0;border:none;fill:currentColor;text-decoration:none;cursor:pointer;-moz-appearance:none;-webkit-appearance:none;overflow:visible;transition:box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1),opacity 15ms linear 30ms,transform 270ms 0ms cubic-bezier(0, 0, 0.2, 1);flex-shrink:0;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-fab-base .mat-mdc-button-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple,.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-mdc-fab-base .mat-mdc-button-ripple{overflow:hidden}.mat-mdc-fab-base .mat-mdc-button-persistent-ripple::before{content:"";opacity:0}.mat-mdc-fab-base .mdc-button__label,.mat-mdc-fab-base .mat-icon{z-index:1;position:relative}.mat-mdc-fab-base .mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute}.mat-mdc-fab-base:focus>.mat-focus-indicator::before{content:""}.mat-mdc-fab-base._mat-animation-noopable{transition:none !important;animation:none !important}.mat-mdc-fab-base::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mat-mdc-fab-base[hidden]{display:none}.mat-mdc-fab-base::-moz-focus-inner{padding:0;border:0}.mat-mdc-fab-base:active,.mat-mdc-fab-base:focus{outline:none}.mat-mdc-fab-base:hover{cursor:pointer}.mat-mdc-fab-base>svg{width:100%}.mat-mdc-fab-base .mat-icon,.mat-mdc-fab-base .material-icons{transition:transform 180ms 90ms cubic-bezier(0, 0, 0.2, 1);fill:currentColor;will-change:transform}.mat-mdc-fab-base .mat-focus-indicator::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 2px)*-1)}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-fab-base[disabled],.mat-mdc-fab-base[disabled]:focus,.mat-mdc-fab-base.mat-mdc-button-disabled,.mat-mdc-fab-base.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-fab-base.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab{background-color:var(--mdc-fab-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-container-shape, var(--mat-sys-corner-large));color:var(--mat-fab-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:hover{box-shadow:var(--mdc-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-fab:focus{box-shadow:var(--mdc-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab:active,.mat-mdc-fab:focus:active{box-shadow:var(--mdc-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-fab[disabled],.mat-mdc-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-touch-target-display, block)}.mat-mdc-fab .mat-ripple-element{background-color:var(--mat-fab-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-disabled-state-layer-color)}.mat-mdc-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-mini-fab{width:40px;height:40px;background-color:var(--mdc-fab-small-container-color, var(--mat-sys-primary-container));border-radius:var(--mdc-fab-small-container-shape, var(--mat-sys-corner-medium));color:var(--mat-fab-small-foreground-color, var(--mat-sys-on-primary-container, inherit));box-shadow:var(--mdc-fab-small-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:hover{box-shadow:var(--mdc-fab-small-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-mini-fab:focus{box-shadow:var(--mdc-fab-small-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab:active,.mat-mdc-mini-fab:focus:active{box-shadow:var(--mdc-fab-small-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-mini-fab[disabled],.mat-mdc-mini-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none;color:var(--mat-fab-small-disabled-state-foreground-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));background-color:var(--mat-fab-small-disabled-state-container-color, color-mix(in srgb, var(--mat-sys-on-surface) 12%, transparent))}.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}.mat-mdc-mini-fab .mat-mdc-button-touch-target{position:absolute;top:50%;height:48px;left:50%;width:48px;transform:translate(-50%, -50%);display:var(--mat-fab-small-touch-target-display)}.mat-mdc-mini-fab .mat-ripple-element{background-color:var(--mat-fab-small-ripple-color, color-mix(in srgb, var(--mat-sys-on-primary-container) calc(var(--mat-sys-pressed-state-layer-opacity) * 100%), transparent))}.mat-mdc-mini-fab .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-state-layer-color, var(--mat-sys-on-primary-container))}.mat-mdc-mini-fab.mat-mdc-button-disabled .mat-mdc-button-persistent-ripple::before{background-color:var(--mat-fab-small-disabled-state-layer-color)}.mat-mdc-mini-fab:hover>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mat-mdc-mini-fab.cdk-program-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.cdk-keyboard-focused>.mat-mdc-button-persistent-ripple::before,.mat-mdc-mini-fab.mat-mdc-button-disabled-interactive:focus>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mat-mdc-mini-fab:active>.mat-mdc-button-persistent-ripple::before{opacity:var(--mat-fab-small-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity))}.mat-mdc-extended-fab{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;border-radius:24px;padding-left:20px;padding-right:20px;width:auto;max-width:100%;line-height:normal;height:var(--mdc-extended-fab-container-height, 56px);border-radius:var(--mdc-extended-fab-container-shape, var(--mat-sys-corner-large));font-family:var(--mdc-extended-fab-label-text-font, var(--mat-sys-label-large-font));font-size:var(--mdc-extended-fab-label-text-size, var(--mat-sys-label-large-size));font-weight:var(--mdc-extended-fab-label-text-weight, var(--mat-sys-label-large-weight));letter-spacing:var(--mdc-extended-fab-label-text-tracking, var(--mat-sys-label-large-tracking));box-shadow:var(--mdc-extended-fab-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:hover{box-shadow:var(--mdc-extended-fab-hover-container-elevation-shadow, var(--mat-sys-level4))}.mat-mdc-extended-fab:focus{box-shadow:var(--mdc-extended-fab-focus-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab:active,.mat-mdc-extended-fab:focus:active{box-shadow:var(--mdc-extended-fab-pressed-container-elevation-shadow, var(--mat-sys-level3))}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab.mat-mdc-button-disabled{cursor:default;pointer-events:none}.mat-mdc-extended-fab[disabled],.mat-mdc-extended-fab[disabled]:focus,.mat-mdc-extended-fab.mat-mdc-button-disabled,.mat-mdc-extended-fab.mat-mdc-button-disabled:focus{box-shadow:none}.mat-mdc-extended-fab.mat-mdc-button-disabled-interactive{pointer-events:auto}[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.mat-icon,[dir=rtl] .mat-mdc-extended-fab .mdc-button__label+.material-icons,.mat-mdc-extended-fab>.mat-icon,.mat-mdc-extended-fab>.material-icons{margin-left:-8px;margin-right:12px}.mat-mdc-extended-fab .mdc-button__label+.mat-icon,.mat-mdc-extended-fab .mdc-button__label+.material-icons,[dir=rtl] .mat-mdc-extended-fab>.mat-icon,[dir=rtl] .mat-mdc-extended-fab>.material-icons{margin-left:12px;margin-right:-8px}.mat-mdc-extended-fab .mat-mdc-button-touch-target{width:100%} -`],encapsulation:2,changeDetection:0})}return i})();var ke=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({imports:[se,Co,se]})}return i})();function sl(i,n){let e=!n?.manualCleanup;e&&!n?.injector&&Nm(sl);let t=e?n?.injector?.get(gr)??d(gr):null,o=eS(n?.equal),r;n?.requireSync?r=Ft({kind:0},{equal:o}):r=Ft({kind:1,value:n?.initialValue},{equal:o});let a,s=i.subscribe({next:u=>r.set({kind:1,value:u}),error:u=>{if(n?.rejectErrors)throw u;r.set({kind:2,error:u})},complete:()=>{a?.()}});if(n?.requireSync&&r().kind===0)throw new be(601,!1);return a=t?.onDestroy(s.unsubscribe.bind(s)),oi(()=>{let u=r();switch(u.kind){case 1:return u.value;case 2:throw u.error;case 0:throw new be(601,!1)}},{equal:n?.equal})}function eS(i=Object.is){return(n,e)=>n.kind===1&&e.kind===1&&i(n.value,e.value)}var zh={};function q(i,n){if(zh[i]=(zh[i]||0)+1,typeof n=="function")return Bh(i,(...t)=>O(_({},n(...t)),{type:i}));switch(n?n._as:"empty"){case"empty":return Bh(i,()=>({type:i}));case"props":return Bh(i,t=>O(_({},t),{type:i}));default:throw new Error("Unexpected config.")}}function ne(){return{_as:"props",_p:void 0}}function Bh(i,n){return Object.defineProperty(n,"type",{value:i,writable:!1})}function tS(i,n){if(i==null)throw new Error(`${n} must be defined.`)}var dl="@ngrx/store/init",Bn=(()=>{class i extends lt{constructor(){super({type:dl})}next(e){if(typeof e=="function")throw new TypeError(` - Dispatch expected an object, instead it received a function. - If you're using the createAction function, make sure to invoke the function - before dispatching the action. For example, someAction should be someAction().`);if(typeof e>"u")throw new TypeError("Actions must be objects");if(typeof e.type>"u")throw new TypeError("Actions must have a type property");super.next(e)}complete(){}ngOnDestroy(){super.complete()}static{this.\u0275fac=function(t){return new(t||i)}}static{this.\u0275prov=D({token:i,factory:i.\u0275fac})}}return i})(),iS=[Bn],q0=new v("@ngrx/store Internal Root Guard"),N0=new v("@ngrx/store Internal Initial State"),ul=new v("@ngrx/store Initial State"),K0=new v("@ngrx/store Reducer Factory"),L0=new v("@ngrx/store Internal Reducer Factory Provider"),Z0=new v("@ngrx/store Initial Reducers"),jh=new v("@ngrx/store Internal Initial Reducers"),i6=new v("@ngrx/store Store Features"),V0=new v("@ngrx/store Internal Store Reducers"),n6=new v("@ngrx/store Internal Feature Reducers"),o6=new v("@ngrx/store Internal Feature Configs"),nS=new v("@ngrx/store Internal Store Features"),r6=new v("@ngrx/store Internal Feature Reducers Token"),oS=new v("@ngrx/store Feature Reducers"),B0=new v("@ngrx/store User Provided Meta Reducers"),Vd=new v("@ngrx/store Meta Reducers"),j0=new v("@ngrx/store Internal Resolved Meta Reducers"),z0=new v("@ngrx/store User Runtime Checks Config"),U0=new v("@ngrx/store Internal User Runtime Checks Config"),ll=new v("@ngrx/store Internal Runtime Checks"),Gh=new v("@ngrx/store Check if Action types are unique"),cl=new v("@ngrx/store Root Store Provider"),Bd=new v("@ngrx/store Feature State Provider");function rS(i,n={}){let e=Object.keys(i),t={};for(let r=0;re!==n).reduce((e,t)=>Object.assign(e,{[t]:i[t]}),{})}function Q0(...i){return function(n){if(i.length===0)return n;let e=i[i.length-1];return i.slice(0,-1).reduceRight((o,r)=>r(o),e(n))}}function X0(i,n){return Array.isArray(n)&&n.length>0&&(i=Q0.apply(null,[...n,i])),(e,t)=>{let o=i(e);return(r,a)=>(r=r===void 0?t:r,o(r,a))}}function sS(i){let n=Array.isArray(i)&&i.length>0?Q0(...i):e=>e;return(e,t)=>(e=n(e),(o,r)=>(o=o===void 0?t:o,e(o,r)))}var ar=class extends mt{},na=class extends Bn{},zd="@ngrx/store/update-reducers",jd=(()=>{class i extends lt{get currentReducers(){return this.reducers}constructor(e,t,o,r){super(r(o,t)),this.dispatcher=e,this.initialState=t,this.reducers=o,this.reducerFactory=r}addFeature(e){this.addFeatures([e])}addFeatures(e){let t=e.reduce((o,{reducers:r,reducerFactory:a,metaReducers:s,initialState:u,key:h})=>{let g=typeof r=="function"?sS(s)(r,u):X0(a,s)(r,u);return o[h]=g,o},{});this.addReducers(t)}removeFeature(e){this.removeFeatures([e])}removeFeatures(e){this.removeReducers(e.map(t=>t.key))}addReducer(e,t){this.addReducers({[e]:t})}addReducers(e){this.reducers=_(_({},this.reducers),e),this.updateReducers(Object.keys(e))}removeReducer(e){this.removeReducers([e])}removeReducers(e){e.forEach(t=>{this.reducers=aS(this.reducers,t)}),this.updateReducers(e)}updateReducers(e){this.next(this.reducerFactory(this.reducers,this.initialState)),this.dispatcher.next({type:zd,features:e})}ngOnDestroy(){this.complete()}static{this.\u0275fac=function(t){return new(t||i)(N(na),N(ul),N(Z0),N(K0))}}static{this.\u0275prov=D({token:i,factory:i.\u0275fac})}}return i})(),lS=[jd,{provide:ar,useExisting:jd},{provide:na,useExisting:Bn}],sr=(()=>{class i extends S{ngOnDestroy(){this.complete()}static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ve(i)))(o||i)}})()}static{this.\u0275prov=D({token:i,factory:i.\u0275fac})}}return i})(),cS=[sr],oa=class extends mt{},H0=(()=>{class i extends lt{static{this.INIT=dl}constructor(e,t,o,r){super(r);let s=e.pipe(Gl($l)).pipe(fi(t)),u={state:r},h=s.pipe(hr(dS,u));this.stateSubscription=h.subscribe(({state:g,action:y})=>{this.next(g),o.next(y)}),this.state=sl(this,{manualCleanup:!0,requireSync:!0})}ngOnDestroy(){this.stateSubscription.unsubscribe(),this.complete()}static{this.\u0275fac=function(t){return new(t||i)(N(Bn),N(ar),N(sr),N(ul))}}static{this.\u0275prov=D({token:i,factory:i.\u0275fac})}}return i})();function dS(i={state:void 0},[n,e]){let{state:t}=i;return{state:e(t,n),action:n}}var uS=[H0,{provide:oa,useExisting:H0}],he=(()=>{class i extends mt{constructor(e,t,o,r){super(),this.actionsObserver=t,this.reducerManager=o,this.injector=r,this.source=e,this.state=e.state}select(e,...t){return gn.call(null,e,...t)(this)}selectSignal(e,t){return oi(()=>e(this.state()),t)}lift(e){let t=new i(this,this.actionsObserver,this.reducerManager);return t.operator=e,t}dispatch(e,t){if(typeof e=="function")return this.processDispatchFn(e,t);this.actionsObserver.next(e)}next(e){this.actionsObserver.next(e)}error(e){this.actionsObserver.error(e)}complete(){this.actionsObserver.complete()}addReducer(e,t){this.reducerManager.addReducer(e,t)}removeReducer(e){this.reducerManager.removeReducer(e)}processDispatchFn(e,t){tS(this.injector,"Store Injector");let o=t?.injector??pS()??this.injector;return Bo(()=>{let r=e();Lt(()=>this.dispatch(r))},{injector:o})}static{this.\u0275fac=function(t){return new(t||i)(N(oa),N(Bn),N(jd),N(ce))}}static{this.\u0275prov=D({token:i,factory:i.\u0275fac})}}return i})(),mS=[he];function gn(i,n,...e){return function(o){let r;if(typeof i=="string"){let a=[n,...e].filter(Boolean);r=o.pipe(lg(i,...a))}else if(typeof i=="function")r=o.pipe(A(a=>i(a,n)));else throw new TypeError(`Unexpected type '${typeof i}' in select operator, expected 'string' or 'function'`);return r.pipe(Po())}}function pS(){try{return d(ce)}catch{return}}var Wh="https://ngrx.io/guide/store/configuration/runtime-checks";function $0(i){return i===void 0}function G0(i){return i===null}function J0(i){return Array.isArray(i)}function hS(i){return typeof i=="string"}function fS(i){return typeof i=="boolean"}function gS(i){return typeof i=="number"}function ey(i){return typeof i=="object"&&i!==null}function _S(i){return ey(i)&&!J0(i)}function bS(i){if(!_S(i))return!1;let n=Object.getPrototypeOf(i);return n===Object.prototype||n===null}function Uh(i){return typeof i=="function"}function vS(i){return Uh(i)&&i.hasOwnProperty("\u0275cmp")}function yS(i,n){return Object.prototype.hasOwnProperty.call(i,n)}var CS=!1;function xS(){return CS}function W0(i,n){return i===n}function wS(i,n,e){for(let t=0;ta(i));return t.memoized.apply(null,r)}let o=n.map(r=>r(i,e));return t.memoized.apply(null,[...o,e])}function MS(i,n={stateFn:DS}){return function(...e){let t=e;if(Array.isArray(t[0])){let[g,...y]=t;t=[...g,...y]}else t.length===1&&kS(t[0])&&(t=SS(t[0]));let o=t.slice(0,t.length-1),r=t[t.length-1],a=o.filter(g=>g.release&&typeof g.release=="function"),s=i(function(...g){return r.apply(null,g)}),u=ty(function(g,y){return n.stateFn.apply(null,[g,o,y,s])});function h(){u.reset(),s.reset(),a.forEach(g=>g.release())}return Object.assign(u.memoized,{release:h,projector:s.memoized,setResult:u.setResult,clearResult:u.clearResult})}}function ra(i){return Re(n=>{let e=n[i];return!xS()&&Xa()&&!(i in n)&&console.warn(`@ngrx/store: The feature name "${i}" does not exist in the state, therefore createFeatureSelector cannot access it. Be sure it is imported in a loaded module using StoreModule.forRoot('${i}', ...) or StoreModule.forFeature('${i}', ...). If the default state is intended to be undefined, as is the case with router state, this development-only warning message can be ignored.`),e},n=>n)}function kS(i){return!!i&&typeof i=="object"&&Object.values(i).every(n=>typeof n=="function")}function SS(i){let n=Object.values(i),e=Object.keys(i),t=(...o)=>e.reduce((r,a,s)=>O(_({},r),{[a]:o[s]}),{});return[...n,t]}function ES(i){return i instanceof v?d(i):i}function iy(i){return typeof i=="function"?i():i}function OS(i,n){return i.concat(n)}function TS(){if(d(he,{optional:!0,skipSelf:!0}))throw new TypeError("The root Store has been provided more than once. Feature modules should provide feature states instead.");return"guarded"}function AS(i,n){return function(e,t){let o=n.action(t)?Hh(t):t,r=i(e,o);return n.state()?Hh(r):r}}function Hh(i){Object.freeze(i);let n=Uh(i);return Object.getOwnPropertyNames(i).forEach(e=>{if(!e.startsWith("\u0275")&&yS(i,e)&&(!n||e!=="caller"&&e!=="callee"&&e!=="arguments")){let t=i[e];(ey(t)||Uh(t))&&!Object.isFrozen(t)&&Hh(t)}}),i}function IS(i,n){return function(e,t){if(n.action(t)){let r=$h(t);Y0(r,"action")}let o=i(e,t);if(n.state()){let r=$h(o);Y0(r,"state")}return o}}function $h(i,n=[]){return($0(i)||G0(i))&&n.length===0?{path:["root"],value:i}:Object.keys(i).reduce((t,o)=>{if(t)return t;let r=i[o];return vS(r)?t:$0(r)||G0(r)||gS(r)||fS(r)||hS(r)||J0(r)?!1:bS(r)?$h(r,[...n,o]):{path:[...n,o],value:r}},!1)}function Y0(i,n){if(i===!1)return;let e=i.path.join("."),t=new Error(`Detected unserializable ${n} at "${e}". ${Wh}#strict${n}serializability`);throw t.value=i.value,t.unserializablePath=e,t}function PS(i,n){return function(e,t){if(n.action(t)&&!K.isInAngularZone())throw new Error(`Action '${t.type}' running outside NgZone. ${Wh}#strictactionwithinngzone`);return i(e,t)}}function RS(i){return Xa()?_({strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!0,strictActionImmutability:!0,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1},i):{strictStateSerializability:!1,strictActionSerializability:!1,strictStateImmutability:!1,strictActionImmutability:!1,strictActionWithinNgZone:!1,strictActionTypeUniqueness:!1}}function FS({strictActionSerializability:i,strictStateSerializability:n}){return e=>i||n?IS(e,{action:t=>i&&!Yh(t),state:()=>n}):e}function NS({strictActionImmutability:i,strictStateImmutability:n}){return e=>i||n?AS(e,{action:t=>i&&!Yh(t),state:()=>n}):e}function Yh(i){return i.type.startsWith("@ngrx")}function LS({strictActionWithinNgZone:i}){return n=>i?PS(n,{action:e=>i&&!Yh(e)}):n}function VS(i){return[{provide:U0,useValue:i},{provide:z0,useFactory:jS,deps:[U0]},{provide:ll,deps:[z0],useFactory:RS},{provide:Vd,multi:!0,deps:[ll],useFactory:NS},{provide:Vd,multi:!0,deps:[ll],useFactory:FS},{provide:Vd,multi:!0,deps:[ll],useFactory:LS}]}function BS(){return[{provide:Gh,multi:!0,deps:[ll],useFactory:zS}]}function jS(i){return i}function zS(i){if(!i.strictActionTypeUniqueness)return;let n=Object.entries(zh).filter(([,e])=>e>1).map(([e])=>e);if(n.length)throw new Error(`Action types are registered more than once, ${n.map(e=>`"${e}"`).join(", ")}. ${Wh}#strictactiontypeuniqueness`)}function US(i={},n={}){return[{provide:q0,useFactory:TS},{provide:N0,useValue:n.initialState},{provide:ul,useFactory:iy,deps:[N0]},{provide:jh,useValue:i},{provide:V0,useExisting:i instanceof v?i:jh},{provide:Z0,deps:[jh,[new Rm(V0)]],useFactory:ES},{provide:B0,useValue:n.metaReducers?n.metaReducers:[]},{provide:j0,deps:[Vd,B0],useFactory:OS},{provide:L0,useValue:n.reducerFactory?n.reducerFactory:rS},{provide:K0,deps:[L0,j0],useFactory:X0},iS,lS,cS,uS,mS,VS(n.runtimeChecks),BS()]}function HS(){d(Bn),d(ar),d(sr),d(he),d(q0,{optional:!0}),d(Gh,{optional:!0})}var $S=[{provide:cl,useFactory:HS},Ua(()=>d(cl))];function ny(i,n){return ii([...US(i,n),$S])}function GS(){d(cl);let i=d(nS),n=d(oS),e=d(jd);d(Gh,{optional:!0});let t=i.map((o,r)=>{let s=n.shift()[r];return O(_({},o),{reducers:s,initialState:iy(o.initialState)})});e.addFeatures(t)}var a6=[{provide:Bd,useFactory:GS},Ua(()=>d(Bd))];function oe(...i){let n=i.pop(),e=i.map(t=>t.type);return{reducer:n,types:e}}function aa(i,...n){let e=new Map;for(let t of n)for(let o of t.types){let r=e.get(o);if(r){let a=(s,u)=>t.reducer(r(s,u),u);e.set(o,a)}else e.set(o,t.reducer)}return function(t=i,o){let r=e.get(o.type);return r?r(t,o):t}}var _n=q("[Collection] Load Published Collection Types"),Ud=q("[Collection] Load Published Collection Types Success",ne()),Hd=q("[Collection] Load Published Collection Types Failure",ne()),xo=q("[Collection] Load Draft Collection Types"),$d=q("[Collection] Load Draft Collection Types Success",ne()),Gd=q("[Collection] Load Draft Collection Types Failure",ne()),bn=q("[Collection] Load Collection Types"),ml=q("[Collection] Load Collection Types Success",ne()),Wd=q("[Collection] Load Collection Types Failure",ne()),jn=q("[Collection] Load Fields",ne()),Yd=q("[Collection] Load Fields Success",ne()),pl=q("[Collection] Load Fields Failure",ne()),qd=q("[Collection] Add Collection Type",ne()),hl=q("[Collection] Add Collection Type Success",ne()),oy=q("[Collection] Add Collection Type Failure",ne()),Kd=q("[Collection] Add Field",ne()),fl=q("[Collection] Add Field Success",ne()),ry=q("[Collection] Add Field Failure",ne()),sa=q("[Collection] Save Content"),gl=q("[Collection] Save Content Success",ne()),Zd=q("[Collection] Save Content Failure",ne()),la=q("[Collection] Delete Collection Type",ne()),Qd=q("[Collection] Delete Collection Type Success",ne()),Xd=q("[Collection] Delete Collection Type Failure",ne()),ca=q("[Colleciton] Collection has related properties",ne()),Jd=q("[Colleciton] Collection has related properties Success",ne()),eu=q("[Colleciton] Collection has related properties Failure",ne()),tu=q("[Collection] Configure actions",ne()),iu=q("[Collection] Configure actions Success",ne()),nu=q("[Collection] Configure actions Failure",ne());var WS=["abstract","as","base","bool","break","byte","case","catch","char","checked","class","const","continue","decimal","default","delegate","do","double","else","enum","event","explicit","extern","false","finally","fixed","float","for","foreach","goto","if","implicit","in","int","interface","internal","is","lock","long","namespace","new","null","object","operator","out","override","params","private","protected","public","readonly","ref","return","sbyte","sealed","short","sizeof","stackalloc","static","string","struct","switch","this","throw","true","try","typeof","uint","ulong","unchecked","unsafe","ushort","using","virtual","void","volatile","while"],Si=class{static pascalCase(n){let e=n.value,t=/^[A-Z][a-zA-Z0-9]*$/;return e?typeof e!="string"?{invalidPascalCase:!0}:t.test(n.value)?null:{invalidPascalCase:!0}:null}static reservedKeyword(n){return n.value&&WS.includes(n.value.toLowerCase())?{reservedKeyword:!0}:null}static collectionNameIsTaken(n){return e=>e.value?n.pipe(_e(1),A(t=>t.map(o=>o.toLowerCase()).includes(e.value.toLowerCase())?{collectionNameIsTaken:!0}:null),ve(()=>T(null))):T(null)}static fieldNameIsTaken(n){return e=>e.value?n.pipe(_e(1),A(t=>t?.some(o=>o.fieldName.toLowerCase()===e.value.toLowerCase())?{fieldNameIsTaken:!0}:null),ve(()=>T(null))):T(null)}static fieldNameSameAsModel(n){return e=>{let t=e.value;return t&&t===n?{fieldNameSameAsModel:!0}:null}}static validRegex(n){let e=n.value;if(!e)return null;if(typeof e!="string")return{invalidRegex:!0};try{let t=e.trim();if(t.startsWith("/")&&t.lastIndexOf("/")>0){let o=t.lastIndexOf("/"),r=t.substring(1,o),a=t.substring(o+1);new RegExp(r,a)}else new RegExp(t);return null}catch{return{invalidRegex:!0}}}};var Ei=ra("collection"),zn=Re(Ei,i=>i?i.collectionTypes:[]),f6=Re(Ei,i=>i.loadingCollectionTypes),ay=Re(Ei,i=>i.errorCollectionTypes),ou=Re(Ei,i=>i.publishedCollectionTypes||[]),sy=Re(Ei,i=>i.draftCollectionTypes),ru=Re(Ei,i=>i.modelResponse?.Fields),au=Re(Ei,i=>i.modelResponse),da=Re(Ei,i=>i.modelResponse?.AllowedActions),g6=Re(Ei,i=>i.loadingFields),_6=Re(Ei,i=>i.isSaving),ly=Re(Ei,i=>i.serverRestarting),cy=Re(Ei,i=>i.saveError),dy=Re(Ei,i=>i.hasRelatedProperties);var YS=["mat-internal-form-field",""],qS=["*"],uy=(()=>{class i{labelPosition;static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(t,o){t&2&&j("mdc-form-field--align-end",o.labelPosition==="before")},inputs:{labelPosition:"labelPosition"},attrs:YS,ngContentSelectors:qS,decls:1,vars:0,template:function(t,o){t&1&&(Te(),ae(0))},styles:[`.mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0} -`],encapsulation:2,changeDetection:0})}return i})();var KS=["input"],ZS=["label"],QS=["*"],XS=new v("mat-checkbox-default-options",{providedIn:"root",factory:py});function py(){return{color:"accent",clickAction:"check-indeterminate",disabledInteractive:!1}}var Wt=function(i){return i[i.Init=0]="Init",i[i.Checked=1]="Checked",i[i.Unchecked=2]="Unchecked",i[i.Indeterminate=3]="Indeterminate",i}(Wt||{}),JS={provide:io,useExisting:St(()=>qi),multi:!0},qh=class{source;checked},my=py(),qi=(()=>{class i{_elementRef=d(Z);_changeDetectorRef=d(ye);_ngZone=d(K);_animationMode=d(ze,{optional:!0});_options=d(XS,{optional:!0});focus(){this._inputElement.nativeElement.focus()}_createChangeEvent(e){let t=new qh;return t.source=this,t.checked=e,t}_getAnimationTargetElement(){return this._inputElement?.nativeElement}_animationClasses={uncheckedToChecked:"mdc-checkbox--anim-unchecked-checked",uncheckedToIndeterminate:"mdc-checkbox--anim-unchecked-indeterminate",checkedToUnchecked:"mdc-checkbox--anim-checked-unchecked",checkedToIndeterminate:"mdc-checkbox--anim-checked-indeterminate",indeterminateToChecked:"mdc-checkbox--anim-indeterminate-checked",indeterminateToUnchecked:"mdc-checkbox--anim-indeterminate-unchecked"};ariaLabel="";ariaLabelledby=null;ariaDescribedby;ariaExpanded;ariaControls;ariaOwns;_uniqueId;id;get inputId(){return`${this.id||this._uniqueId}-input`}required;labelPosition="after";name=null;change=new L;indeterminateChange=new L;value;disableRipple;_inputElement;_labelElement;tabIndex;color;disabledInteractive;_onTouched=()=>{};_currentAnimationClass="";_currentCheckState=Wt.Init;_controlValueAccessorChangeFn=()=>{};_validatorChangeFn=()=>{};constructor(){d(We).load(Yi);let e=d(new ro("tabindex"),{optional:!0});this._options=this._options||my,this.color=this._options.color||my.color,this.tabIndex=e==null?0:parseInt(e)||0,this.id=this._uniqueId=d(Ye).getId("mat-mdc-checkbox-"),this.disabledInteractive=this._options?.disabledInteractive??!1}ngOnChanges(e){e.required&&this._validatorChangeFn()}ngAfterViewInit(){this._syncIndeterminate(this._indeterminate)}get checked(){return this._checked}set checked(e){e!=this.checked&&(this._checked=e,this._changeDetectorRef.markForCheck())}_checked=!1;get disabled(){return this._disabled}set disabled(e){e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())}_disabled=!1;get indeterminate(){return this._indeterminate}set indeterminate(e){let t=e!=this._indeterminate;this._indeterminate=e,t&&(this._indeterminate?this._transitionCheckState(Wt.Indeterminate):this._transitionCheckState(this.checked?Wt.Checked:Wt.Unchecked),this.indeterminateChange.emit(this._indeterminate)),this._syncIndeterminate(this._indeterminate)}_indeterminate=!1;_isRippleDisabled(){return this.disableRipple||this.disabled}_onLabelTextChange(){this._changeDetectorRef.detectChanges()}writeValue(e){this.checked=!!e}registerOnChange(e){this._controlValueAccessorChangeFn=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}validate(e){return this.required&&e.value!==!0?{required:!0}:null}registerOnValidatorChange(e){this._validatorChangeFn=e}_transitionCheckState(e){let t=this._currentCheckState,o=this._getAnimationTargetElement();if(!(t===e||!o)&&(this._currentAnimationClass&&o.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(t,e),this._currentCheckState=e,this._currentAnimationClass.length>0)){o.classList.add(this._currentAnimationClass);let r=this._currentAnimationClass;this._ngZone.runOutsideAngular(()=>{setTimeout(()=>{o.classList.remove(r)},1e3)})}}_emitChangeEvent(){this._controlValueAccessorChangeFn(this.checked),this.change.emit(this._createChangeEvent(this.checked)),this._inputElement&&(this._inputElement.nativeElement.checked=this.checked)}toggle(){this.checked=!this.checked,this._controlValueAccessorChangeFn(this.checked)}_handleInputClick(){let e=this._options?.clickAction;!this.disabled&&e!=="noop"?(this.indeterminate&&e!=="check"&&Promise.resolve().then(()=>{this._indeterminate=!1,this.indeterminateChange.emit(this._indeterminate)}),this._checked=!this._checked,this._transitionCheckState(this._checked?Wt.Checked:Wt.Unchecked),this._emitChangeEvent()):(this.disabled&&this.disabledInteractive||!this.disabled&&e==="noop")&&(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate)}_onInteractionEvent(e){e.stopPropagation()}_onBlur(){Promise.resolve().then(()=>{this._onTouched(),this._changeDetectorRef.markForCheck()})}_getAnimationClassForCheckStateTransition(e,t){if(this._animationMode==="NoopAnimations")return"";switch(e){case Wt.Init:if(t===Wt.Checked)return this._animationClasses.uncheckedToChecked;if(t==Wt.Indeterminate)return this._checked?this._animationClasses.checkedToIndeterminate:this._animationClasses.uncheckedToIndeterminate;break;case Wt.Unchecked:return t===Wt.Checked?this._animationClasses.uncheckedToChecked:this._animationClasses.uncheckedToIndeterminate;case Wt.Checked:return t===Wt.Unchecked?this._animationClasses.checkedToUnchecked:this._animationClasses.checkedToIndeterminate;case Wt.Indeterminate:return t===Wt.Checked?this._animationClasses.indeterminateToChecked:this._animationClasses.indeterminateToUnchecked}return""}_syncIndeterminate(e){let t=this._inputElement;t&&(t.nativeElement.indeterminate=e)}_onInputClick(){this._handleInputClick()}_onTouchTargetClick(){this._handleInputClick(),this.disabled||this._inputElement.nativeElement.focus()}_preventBubblingFromLabel(e){e.target&&this._labelElement.nativeElement.contains(e.target)&&e.stopPropagation()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-checkbox"]],viewQuery:function(t,o){if(t&1&&(ge(KS,5),ge(ZS,5)),t&2){let r;ee(r=te())&&(o._inputElement=r.first),ee(r=te())&&(o._labelElement=r.first)}},hostAttrs:[1,"mat-mdc-checkbox"],hostVars:16,hostBindings:function(t,o){t&2&&(vi("id",o.id),Y("tabindex",null)("aria-label",null)("aria-labelledby",null),jt(o.color?"mat-"+o.color:"mat-accent"),j("_mat-animation-noopable",o._animationMode==="NoopAnimations")("mdc-checkbox--disabled",o.disabled)("mat-mdc-checkbox-disabled",o.disabled)("mat-mdc-checkbox-checked",o.checked)("mat-mdc-checkbox-disabled-interactive",o.disabledInteractive))},inputs:{ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],ariaExpanded:[2,"aria-expanded","ariaExpanded",X],ariaControls:[0,"aria-controls","ariaControls"],ariaOwns:[0,"aria-owns","ariaOwns"],id:"id",required:[2,"required","required",X],labelPosition:"labelPosition",name:"name",value:"value",disableRipple:[2,"disableRipple","disableRipple",X],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?void 0:yi(e)],color:"color",disabledInteractive:[2,"disabledInteractive","disabledInteractive",X],checked:[2,"checked","checked",X],disabled:[2,"disabled","disabled",X],indeterminate:[2,"indeterminate","indeterminate",X]},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Me([JS,{provide:$i,useExisting:i,multi:!0}]),Oe],ngContentSelectors:QS,decls:15,vars:23,consts:[["checkbox",""],["input",""],["label",""],["mat-internal-form-field","",3,"click","labelPosition"],[1,"mdc-checkbox"],[1,"mat-mdc-checkbox-touch-target",3,"click"],["type","checkbox",1,"mdc-checkbox__native-control",3,"blur","click","change","checked","indeterminate","disabled","id","required","tabIndex"],[1,"mdc-checkbox__ripple"],[1,"mdc-checkbox__background"],["focusable","false","viewBox","0 0 24 24","aria-hidden","true",1,"mdc-checkbox__checkmark"],["fill","none","d","M1.73,12.91 8.1,19.28 22.79,4.59",1,"mdc-checkbox__checkmark-path"],[1,"mdc-checkbox__mixedmark"],["mat-ripple","",1,"mat-mdc-checkbox-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled","matRippleCentered"],[1,"mdc-label",3,"for"]],template:function(t,o){if(t&1){let r=Q();Te(),l(0,"div",3),b("click",function(s){return I(r),P(o._preventBubblingFromLabel(s))}),l(1,"div",4,0)(3,"div",5),b("click",function(){return I(r),P(o._onTouchTargetClick())}),c(),l(4,"input",6,1),b("blur",function(){return I(r),P(o._onBlur())})("click",function(){return I(r),P(o._onInputClick())})("change",function(s){return I(r),P(o._onInteractionEvent(s))}),c(),M(6,"div",7),l(7,"div",8),vt(),l(8,"svg",9),M(9,"path",10),c(),gi(),M(10,"div",11),c(),M(11,"div",12),c(),l(12,"label",13,2),ae(14),c()()}if(t&2){let r=ft(2);x("labelPosition",o.labelPosition),m(4),j("mdc-checkbox--selected",o.checked),x("checked",o.checked)("indeterminate",o.indeterminate)("disabled",o.disabled&&!o.disabledInteractive)("id",o.inputId)("required",o.required)("tabIndex",o.disabled&&!o.disabledInteractive?-1:o.tabIndex),Y("aria-label",o.ariaLabel||null)("aria-labelledby",o.ariaLabelledby)("aria-describedby",o.ariaDescribedby)("aria-checked",o.indeterminate?"mixed":null)("aria-controls",o.ariaControls)("aria-disabled",o.disabled&&o.disabledInteractive?!0:null)("aria-expanded",o.ariaExpanded)("aria-owns",o.ariaOwns)("name",o.name)("value",o.value),m(7),x("matRippleTrigger",r)("matRippleDisabled",o.disableRipple||o.disabled)("matRippleCentered",!0),m(),x("for",o.inputId)}},dependencies:[ia,uy],styles:[`.mdc-checkbox{display:inline-block;position:relative;flex:0 0 18px;box-sizing:content-box;width:18px;height:18px;line-height:0;white-space:nowrap;cursor:pointer;vertical-align:bottom;padding:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);margin:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox:hover>.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:hover>.mat-mdc-checkbox-ripple>.mat-ripple-element{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control:focus~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-focus-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-unselected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-unselected-pressed-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity));background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:hover .mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-hover-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity));background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox .mdc-checkbox__native-control:focus:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-focus-state-layer-color, var(--mat-sys-primary))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked+.mdc-checkbox__ripple{opacity:var(--mdc-checkbox-selected-pressed-state-layer-opacity, var(--mat-sys-pressed-state-layer-opacity));background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox:active>.mdc-checkbox__native-control:checked~.mat-mdc-checkbox-ripple .mat-ripple-element{background-color:var(--mdc-checkbox-selected-pressed-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control~.mat-mdc-checkbox-ripple .mat-ripple-element,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control+.mdc-checkbox__ripple{background-color:var(--mdc-checkbox-unselected-hover-state-layer-color, var(--mat-sys-on-surface))}.mdc-checkbox .mdc-checkbox__native-control{position:absolute;margin:0;padding:0;opacity:0;cursor:inherit;z-index:1;width:var(--mdc-checkbox-state-layer-size, 40px);height:var(--mdc-checkbox-state-layer-size, 40px);top:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);right:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - var(--mdc-checkbox-state-layer-size, 40px))/2)}.mdc-checkbox--disabled{cursor:default;pointer-events:none}@media(forced-colors: active){.mdc-checkbox--disabled{opacity:.5}}.mdc-checkbox__background{display:inline-flex;position:absolute;align-items:center;justify-content:center;box-sizing:border-box;width:18px;height:18px;border:2px solid currentColor;border-radius:2px;background-color:rgba(0,0,0,0);pointer-events:none;will-change:background-color,border-color;transition:background-color 90ms cubic-bezier(0.4, 0, 0.6, 1),border-color 90ms cubic-bezier(0.4, 0, 0.6, 1);-webkit-print-color-adjust:exact;color-adjust:exact;border-color:var(--mdc-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));top:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2);left:calc((var(--mdc-checkbox-state-layer-size, 40px) - 18px)/2)}.mdc-checkbox__native-control:enabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:enabled:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox__native-control:disabled:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:disabled:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:checked)~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-hover-icon-color, var(--mat-sys-on-surface));background-color:rgba(0,0,0,0)}.mdc-checkbox:hover>.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox:hover>.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-hover-icon-color, var(--mat-sys-primary))}.mdc-checkbox__native-control:focus:focus:not(:checked)~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:not(:indeterminate)~.mdc-checkbox__background{border-color:var(--mdc-checkbox-unselected-focus-icon-color, var(--mat-sys-on-surface))}.mdc-checkbox__native-control:focus:focus:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:focus:focus:indeterminate~.mdc-checkbox__background{border-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary));background-color:var(--mdc-checkbox-selected-focus-icon-color, var(--mat-sys-primary))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox:hover>.mdc-checkbox__native-control~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox .mdc-checkbox__native-control:focus~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__background{border-color:var(--mdc-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{background-color:var(--mdc-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent));border-color:rgba(0,0,0,0)}.mdc-checkbox__checkmark{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.6, 1);color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}@media(forced-colors: active){.mdc-checkbox--disabled .mdc-checkbox__checkmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__checkmark{color:CanvasText}}.mdc-checkbox__checkmark-path{transition:stroke-dashoffset 180ms cubic-bezier(0.4, 0, 0.6, 1);stroke:currentColor;stroke-width:3.12px;stroke-dashoffset:29.7833385;stroke-dasharray:29.7833385}.mdc-checkbox__mixedmark{width:100%;height:0;transform:scaleX(0) rotate(0deg);border-width:1px;border-style:solid;opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1);border-color:var(--mdc-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}@media(forced-colors: active){.mdc-checkbox__mixedmark{margin:0 1px}}.mdc-checkbox--disabled .mdc-checkbox__mixedmark,.mdc-checkbox--disabled.mat-mdc-checkbox-disabled-interactive .mdc-checkbox__mixedmark{border-color:var(--mdc-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__background,.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__background,.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__background,.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__background{animation-duration:180ms;animation-timing-function:linear}.mdc-checkbox--anim-unchecked-checked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-unchecked-checked-checkmark-path 180ms linear;transition:none}.mdc-checkbox--anim-unchecked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-unchecked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-unchecked .mdc-checkbox__checkmark-path{animation:mdc-checkbox-checked-unchecked-checkmark-path 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__checkmark{animation:mdc-checkbox-checked-indeterminate-checkmark 90ms linear;transition:none}.mdc-checkbox--anim-checked-indeterminate .mdc-checkbox__mixedmark{animation:mdc-checkbox-checked-indeterminate-mixedmark 90ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__checkmark{animation:mdc-checkbox-indeterminate-checked-checkmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-checked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-checked-mixedmark 500ms linear;transition:none}.mdc-checkbox--anim-indeterminate-unchecked .mdc-checkbox__mixedmark{animation:mdc-checkbox-indeterminate-unchecked-mixedmark 300ms linear;transition:none}.mdc-checkbox__native-control:checked~.mdc-checkbox__background,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background{transition:border-color 90ms cubic-bezier(0, 0, 0.2, 1),background-color 90ms cubic-bezier(0, 0, 0.2, 1)}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path{stroke-dashoffset:0}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__checkmark{transition:opacity 180ms cubic-bezier(0, 0, 0.2, 1),transform 180ms cubic-bezier(0, 0, 0.2, 1);opacity:1}.mdc-checkbox__native-control:checked~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(-45deg)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__checkmark{transform:rotate(45deg);opacity:0;transition:opacity 90ms cubic-bezier(0.4, 0, 0.6, 1),transform 90ms cubic-bezier(0.4, 0, 0.6, 1)}.mdc-checkbox__native-control:indeterminate~.mdc-checkbox__background>.mdc-checkbox__mixedmark{transform:scaleX(1) rotate(0deg);opacity:1}@keyframes mdc-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:29.7833385}50%{animation-timing-function:cubic-bezier(0, 0, 0.2, 1)}100%{stroke-dashoffset:0}}@keyframes mdc-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0, 0, 0, 1)}100%{transform:scaleX(1)}}@keyframes mdc-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(0.4, 0, 1, 1);opacity:1;stroke-dashoffset:0}to{opacity:0;stroke-dashoffset:-29.7833385}}@keyframes mdc-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(45deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(45deg);opacity:0}to{transform:rotate(360deg);opacity:1}}@keyframes mdc-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0, 0, 0.2, 1);transform:rotate(-45deg);opacity:0}to{transform:rotate(0deg);opacity:1}}@keyframes mdc-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(0.14, 0, 0, 1);transform:rotate(0deg);opacity:1}to{transform:rotate(315deg);opacity:0}}@keyframes mdc-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;transform:scaleX(1);opacity:1}32.8%,100%{transform:scaleX(0);opacity:0}}.mat-mdc-checkbox{display:inline-block;position:relative;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-touch-target,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__native-control,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__ripple,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mat-mdc-checkbox-ripple::before,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__checkmark>.mdc-checkbox__checkmark-path,.mat-mdc-checkbox._mat-animation-noopable>.mat-internal-form-field>.mdc-checkbox>.mdc-checkbox__background>.mdc-checkbox__mixedmark{transition:none !important;animation:none !important}.mat-mdc-checkbox label{cursor:pointer}.mat-mdc-checkbox .mat-internal-form-field{color:var(--mat-checkbox-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-checkbox-label-text-font, var(--mat-sys-body-medium-font));line-height:var(--mat-checkbox-label-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mat-checkbox-label-text-size, var(--mat-sys-body-medium-size));letter-spacing:var(--mat-checkbox-label-text-tracking, var(--mat-sys-body-medium-tracking));font-weight:var(--mat-checkbox-label-text-weight, var(--mat-sys-body-medium-weight))}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive{pointer-events:auto}.mat-mdc-checkbox.mat-mdc-checkbox-disabled.mat-mdc-checkbox-disabled-interactive input{cursor:default}.mat-mdc-checkbox.mat-mdc-checkbox-disabled label{cursor:default;color:var(--mat-checkbox-disabled-label-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-checkbox label:empty{display:none}.mat-mdc-checkbox .mdc-checkbox__ripple{opacity:0}.mat-mdc-checkbox .mat-mdc-checkbox-ripple,.mdc-checkbox__ripple{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:50%;pointer-events:none}.mat-mdc-checkbox .mat-mdc-checkbox-ripple:not(:empty),.mdc-checkbox__ripple:not(:empty){transform:translateZ(0)}.mat-mdc-checkbox-ripple .mat-ripple-element{opacity:.1}.mat-mdc-checkbox-touch-target{position:absolute;top:50%;left:50%;height:48px;width:48px;transform:translate(-50%, -50%);display:var(--mat-checkbox-touch-target-display, block)}.mat-mdc-checkbox .mat-mdc-checkbox-ripple::before{border-radius:50%}.mdc-checkbox__native-control:focus~.mat-focus-indicator::before{content:""} -`],encapsulation:2,changeDetection:0})}return i})();var Ki=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({imports:[qi,se,se]})}return i})();var cr=(F=>(F[F.text=0]="text",F[F.textarea=1]="textarea",F[F.file=2]="file",F[F.collection=3]="collection",F[F.id=4]="id",F[F.relation=5]="relation",F[F.number=6]="number",F[F.checkbox=7]="checkbox",F[F.date=8]="date",F[F.dateonly=9]="dateonly",F[F.select=10]="select",F[F.role=11]="role",F[F.enum=12]="enum",F))(cr||{}),wo=(s=>(s[s.Get=0]="Get",s[s.GetOne=1]="GetOne",s[s.GetAll=2]="GetAll",s[s.Create=3]="Create",s[s.Update=4]="Update",s[s.Patch=5]="Patch",s[s.Delete=6]="Delete",s))(wo||{});function su(i){let n=[];for(let e in i)if(!isNaN(Number(e))){let t=Number(e),o=i[e];n.push({value:t,label:o})}return n}function eE(i,n){i&1&&(l(0,"mat-error"),p(1,"Display name is required"),c())}function tE(i,n){i&1&&(l(0,"mat-error"),p(1,"Display name cannot exceed 50 characters"),c())}function iE(i,n){i&1&&(l(0,"mat-error"),p(1," Collection name format is invalid "),c())}function nE(i,n){i&1&&(l(0,"mat-error"),p(1," Collection name is a reserved C# keyword "),c())}function oE(i,n){i&1&&(l(0,"mat-error"),p(1," Collection name is already used "),c())}function rE(i,n){if(i&1){let e=Q();l(0,"div",12)(1,"mat-label")(2,"mat-checkbox",15),b("change",function(o){let r=I(e).$implicit,a=f();return P(a.onCheckboxChange(o,r.value))}),c(),p(3),c()()}if(i&2){let e=n.$implicit,t=f();m(2),x("value",e.value.toString())("checked",t.selectedCrudActions.value.includes(e.value)),m(),U(" ",e.label," ")}}function aE(i,n){i&1&&(l(0,"span"),p(1,"Continue"),c())}function sE(i,n){i&1&&(l(0,"span"),p(1,"Processing..."),c())}var Do=class i{constructor(n,e,t,o){this.dialogRef=n;this.fb=e;this.store=t;this.data=o;this.isSubmitting=!1;this.collectionTypes$=this.store.select(zn);this.crudActions=su(wo);this.defaultCrudActions=[0,1,3,4,6];this.collectionForm=this.fb.group({isAuditableEntity:[!1,{}],crudActions:this.fb.array([]),displayName:["",{validators:[me.required,me.maxLength(50),Si.pascalCase,Si.reservedKeyword],asyncValidators:[Si.collectionNameIsTaken(this.collectionTypes$)]}]}),this.setDefaultCrudActions()}get selectedCrudActions(){return this.collectionForm.get("crudActions")}onCheckboxChange(n,e){let t=this.selectedCrudActions;if(n.source._checked)t.push(this.fb.control(e));else{let o=t.controls.findIndex(r=>r.value===e);t.removeAt(o)}}setDefaultCrudActions(){this.defaultCrudActions.forEach(n=>{this.selectedCrudActions.push(this.fb.control(n))})}onContinue(){if(!this.collectionForm.valid||this.isSubmitting){this.collectionForm.markAllAsTouched();return}this.isSubmitting=!0,this.store.dispatch(qd({collectionType:this.collectionForm.value.displayName,isAuditableEntity:this.collectionForm.value.isAuditableEntity,crudActions:this.collectionForm.value.crudActions})),this.isSubmitting=!1,this.dialogRef.close({success:!0})}onClose(){this.dialogRef.close()}get canSubmit(){return this.collectionForm.valid&&!this.isSubmitting}static{this.\u0275fac=function(e){return new(e||i)(k(Dt),k(mi),k(he),k(ci))}}static{this.\u0275cmp=E({type:i,selectors:[["app-add-collection-type-dialog"]],decls:40,vars:9,consts:[[1,"add-collection-type-dialog"],[1,"dialog-header"],["mat-icon-button","","aria-label","Close dialog",3,"click"],[1,"dialog-content"],[3,"formGroup"],[1,"form-field"],["appearance","outline",1,"input-field"],["matInput","","id","displayName","formControlName","displayName","placeholder","Enter display name"],[1,"helper-text"],["formControlName","isAuditableEntity","id","isAuditableEntity"],[1,"description"],[1,"actions-container"],[1,"action"],[1,"dialog-footer"],["mat-flat-button","",1,"continue-button",3,"click","disabled"],["type","checkbox",3,"change","value","checked"]],template:function(e,t){if(e&1&&(l(0,"div",0)(1,"div",1)(2,"h2"),p(3,"Add new collection type"),c(),l(4,"button",2),b("click",function(){return t.onClose()}),l(5,"mat-icon"),p(6,"close"),c()()(),l(7,"div",3),M(8,"hr"),l(9,"form",4)(10,"div",5)(11,"mat-form-field",6)(12,"mat-label"),p(13,"Display name"),c(),M(14,"input",7),w(15,eE,2,0,"mat-error")(16,tE,2,0,"mat-error")(17,iE,2,0,"mat-error")(18,nE,2,0,"mat-error")(19,oE,2,0,"mat-error"),c(),l(20,"div",8),p(21," Use \u2018PascalCase\u2019: start with a capital letter, use only letters and numbers, no spaces or symbols. "),c()(),l(22,"div",5)(23,"mat-checkbox",9),p(24,"Auditable Entity"),c(),l(25,"div")(26,"small",10),p(27,"Save audit trail for entity"),c()()(),l(28,"p"),p(29,"Allowed Actions"),c(),l(30,"div",11),de(31,rE,4,3,"div",12,Vo),c(),l(33,"div",8),p(34," *If no actions are selected, resource will have default actions (Get,GetById,Post,Put,Update) "),c()(),M(35,"hr"),c(),l(36,"div",13)(37,"button",14),b("click",function(){return t.onContinue()}),w(38,aE,2,0,"span")(39,sE,2,0,"span"),c()()()),e&2){let o,r,a,s,u;m(9),x("formGroup",t.collectionForm),m(6),C((o=t.collectionForm.get("displayName"))!=null&&o.hasError("required")&&((o=t.collectionForm.get("displayName"))!=null&&o.touched)?15:-1),m(),C((r=t.collectionForm.get("displayName"))!=null&&r.hasError("maxlength")?16:-1),m(),C((a=t.collectionForm.get("displayName"))!=null&&a.hasError("invalidPascalCase")?17:-1),m(),C((s=t.collectionForm.get("displayName"))!=null&&s.hasError("reservedKeyword")?18:-1),m(),C((u=t.collectionForm.get("displayName"))!=null&&u.hasError("collectionNameIsTaken")?19:-1),m(12),ue(t.crudActions),m(6),x("disabled",!t.canSubmit),m(),C(t.isSubmitting?-1:38),m(),C(t.isSubmitting?39:-1)}},dependencies:[Vt,It,fn,Xt,hn,Gi,Vn,ke,Xe,Ze,fe,Ce,pi,ui,Mt,Pt,di,hi,bt,ki,Ki,qi],styles:[".add-collection-type-dialog[_ngcontent-%COMP%]{background-color:#1e1e1e;color:#fff;border-radius:8px;min-width:400px;max-width:90vw}.dialog-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:16px}.dialog-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:16px;font-weight:400}.dialog-header[_ngcontent-%COMP%] button[mat-icon-button][_ngcontent-%COMP%]{color:#fff}.dialog-content[_ngcontent-%COMP%]{padding:0 16px 16px}.dialog-content[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%]{margin-bottom:16px}.dialog-content[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font-size:12px;margin-bottom:8px;color:#ffffffb3}.dialog-content[_ngcontent-%COMP%] .input-field[_ngcontent-%COMP%]{width:100%}.dialog-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding:16px}.dialog-footer[_ngcontent-%COMP%] .continue-button[_ngcontent-%COMP%]{background-color:#ac99ea;color:#212121;font-weight:500;text-transform:none;transition:all .2s ease;min-width:100px;border-radius:4px}.dialog-footer[_ngcontent-%COMP%] .continue-button[_ngcontent-%COMP%]:hover{background-color:#9b84e6}.dialog-footer[_ngcontent-%COMP%] .continue-button[disabled][_ngcontent-%COMP%]{color:#ffffff61!important;background-color:#ffffff1f;cursor:not-allowed}form[_ngcontent-%COMP%]{margin-top:20px}.description[_ngcontent-%COMP%]{font-size:12px;color:#ffffffb3;text-align:center;line-height:1.4}.actions-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;flex-direction:column;width:100%}.actions-container[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{width:50%}.helper-text[_ngcontent-%COMP%]{font-size:12px;margin-top:4px;color:#fff9}"]})}};var lu=class i{constructor(n,e,t,o){this.router=n;this.dialog=e;this.cdr=t;this.store=o;this.numberOfCollectionTypes=0;this.numberOfPublishedCollectionTypes=0;this.subscription=new ie;this.models$=this.store.select(zn);this.publishedModels$=this.store.select(ou)}ngOnInit(){this.store.dispatch(bn()),this.store.dispatch(_n()),this.subscription.add(this.models$.subscribe(n=>{this.numberOfCollectionTypes=n.length,this.cdr.markForCheck()})),this.subscription.add(this.publishedModels$.subscribe(n=>{this.numberOfPublishedCollectionTypes=n.length,this.cdr.markForCheck()}))}ngOnDestroy(){this.subscription.unsubscribe()}openPopup(){this.router.navigate(["/builder"]).then(()=>{this.dialog.open(Do,{width:"450px",panelClass:"dark-theme-dialog",disableClose:!0})})}static{this.\u0275fac=function(e){return new(e||i)(k($e),k(Nn),k(ye),k(he))}}static{this.\u0275cmp=E({type:i,selectors:[["app-stats-card"]],inputs:{icon:"icon",value:"value",title:"title"},decls:34,vars:3,consts:[[1,"stats-container"],[1,"stats-card","create-new",3,"click"],[1,"icon-container"],[1,"stats-card"],[1,"stats-content"],[1,"icon-container","green"],[1,"green-text"],[1,"icon-container","blue-icon"],[1,"blue"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"div",1),b("click",function(){return t.openPopup()}),l(2,"div",2)(3,"mat-icon"),p(4,"add"),c()(),l(5,"span"),p(6,"Create New Collection Type"),c()(),l(7,"div",3)(8,"div",2)(9,"mat-icon"),p(10,"web"),c()(),l(11,"div",4)(12,"h2"),p(13),c(),l(14,"span"),p(15,"Created Collection Types"),c()()(),l(16,"div",3)(17,"div",5)(18,"mat-icon"),p(19,"public"),c()(),l(20,"div",4)(21,"h2"),p(22),c(),l(23,"span",6),p(24,"Published Types"),c()()(),l(25,"div",3)(26,"div",7)(27,"mat-icon"),p(28,"edit_notes"),c()(),l(29,"div",4)(30,"h2"),p(31),c(),l(32,"span",8),p(33,"Drafts"),c()()()()),e&2&&(m(13),$(t.numberOfCollectionTypes),m(9),$(t.numberOfPublishedCollectionTypes),m(9),$(t.numberOfCollectionTypes-t.numberOfPublishedCollectionTypes))},dependencies:[fe,Ce],styles:[".stats-container[_ngcontent-%COMP%]{display:flex;flex-grow:1;gap:21px;justify-content:space-between;margin-bottom:24px;flex-wrap:wrap}.stats-card[_ngcontent-%COMP%]{background:#1e1e1e;border-radius:8px;display:flex;align-items:center;padding:16px;gap:12px;box-shadow:0 4px 6px #0000001a;transition:.3s ease-in-out;flex-grow:1;flex-basis:0}.stats-card[_ngcontent-%COMP%]:hover{box-shadow:0 6px 10px #0003}.create-new[_ngcontent-%COMP%]{background:#d5ccf529;border:1px solid rgba(255,255,255,.2);color:#ac99ea}.create-new[_ngcontent-%COMP%] .icon-container[_ngcontent-%COMP%]{background:#d5ccf529;color:#ac99ea}.create-new[_ngcontent-%COMP%] [_ngcontent-%COMP%]:hover{cursor:pointer}.icon-container[_ngcontent-%COMP%]{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:50%;color:#ac99ea;background:#ffffff1a}.green[_ngcontent-%COMP%]{background:#66bb6a29;color:#66bb6a}.blue-icon[_ngcontent-%COMP%]{background:#29b6f629;color:#29b6f6}.stats-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:20px;font-weight:700;color:#fff}.stats-content[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:14px;color:#ac99ea}.blue[_ngcontent-%COMP%]{color:#29b6f6!important}.green-text[_ngcontent-%COMP%]{color:#66bb6a!important}"],changeDetection:0})}};var hy=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({imports:[Gs]})}return i})();var bl=class{_multiple;_emitChanges;compareWith;_selection=new Set;_deselectedToEmit=[];_selectedToEmit=[];_selected;get selected(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected}changed=new S;constructor(n=!1,e,t=!0,o){this._multiple=n,this._emitChanges=t,this.compareWith=o,e&&e.length&&(n?e.forEach(r=>this._markSelected(r)):this._markSelected(e[0]),this._selectedToEmit.length=0)}select(...n){this._verifyValueAssignment(n),n.forEach(t=>this._markSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}deselect(...n){this._verifyValueAssignment(n),n.forEach(t=>this._unmarkSelected(t));let e=this._hasQueuedChanges();return this._emitChangeEvent(),e}setSelection(...n){this._verifyValueAssignment(n);let e=this.selected,t=new Set(n.map(r=>this._getConcreteValue(r)));n.forEach(r=>this._markSelected(r)),e.filter(r=>!t.has(this._getConcreteValue(r,t))).forEach(r=>this._unmarkSelected(r));let o=this._hasQueuedChanges();return this._emitChangeEvent(),o}toggle(n){return this.isSelected(n)?this.deselect(n):this.select(n)}clear(n=!0){this._unmarkAll();let e=this._hasQueuedChanges();return n&&this._emitChangeEvent(),e}isSelected(n){return this._selection.has(this._getConcreteValue(n))}isEmpty(){return this._selection.size===0}hasValue(){return!this.isEmpty()}sort(n){this._multiple&&this.selected&&this._selected.sort(n)}isMultipleSelection(){return this._multiple}_emitChangeEvent(){this._selected=null,(this._selectedToEmit.length||this._deselectedToEmit.length)&&(this.changed.next({source:this,added:this._selectedToEmit,removed:this._deselectedToEmit}),this._deselectedToEmit=[],this._selectedToEmit=[])}_markSelected(n){n=this._getConcreteValue(n),this.isSelected(n)||(this._multiple||this._unmarkAll(),this.isSelected(n)||this._selection.add(n),this._emitChanges&&this._selectedToEmit.push(n))}_unmarkSelected(n){n=this._getConcreteValue(n),this.isSelected(n)&&(this._selection.delete(n),this._emitChanges&&this._deselectedToEmit.push(n))}_unmarkAll(){this.isEmpty()||this._selection.forEach(n=>this._unmarkSelected(n))}_verifyValueAssignment(n){n.length>1&&this._multiple}_hasQueuedChanges(){return!!(this._deselectedToEmit.length||this._selectedToEmit.length)}_getConcreteValue(n,e){if(this.compareWith){e=e??this._selection;for(let t of e)if(this.compareWith(n,t))return t;return n}else return n}};var fy=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({imports:[se,hy,se]})}return i})(),lE=9007199254740991,vl=class extends $s{_data;_renderData=new lt([]);_filter=new lt("");_internalPageChanges=new S;_renderChangesSubscription=null;filteredData;get data(){return this._data.value}set data(n){n=Array.isArray(n)?n:[],this._data.next(n),this._renderChangesSubscription||this._filterData(n)}get filter(){return this._filter.value}set filter(n){this._filter.next(n),this._renderChangesSubscription||this._filterData(this.data)}get sort(){return this._sort}set sort(n){this._sort=n,this._updateChangeSubscription()}_sort;get paginator(){return this._paginator}set paginator(n){this._paginator=n,this._updateChangeSubscription()}_paginator;sortingDataAccessor=(n,e)=>{let t=n[e];if(Jc(t)){let o=Number(t);return o{let t=e.active,o=e.direction;return!t||o==""?n:n.sort((r,a)=>{let s=this.sortingDataAccessor(r,t),u=this.sortingDataAccessor(a,t),h=typeof s,g=typeof u;h!==g&&(h==="number"&&(s+=""),g==="number"&&(u+=""));let y=0;return s!=null&&u!=null?s>u?y=1:s{let t=e.trim().toLowerCase();return Object.values(n).some(o=>`${o}`.toLowerCase().includes(t))};constructor(n=[]){super(),this._data=new lt(n),this._updateChangeSubscription()}_updateChangeSubscription(){let n=this._sort?Le(this._sort.sortChange,this._sort.initialized):T(null),e=this._paginator?Le(this._paginator.page,this._internalPageChanges,this._paginator.initialized):T(null),t=this._data,o=Ii([t,this._filter]).pipe(A(([s])=>this._filterData(s))),r=Ii([o,n]).pipe(A(([s])=>this._orderData(s))),a=Ii([r,e]).pipe(A(([s])=>this._pageData(s)));this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=a.subscribe(s=>this._renderData.next(s))}_filterData(n){return this.filteredData=this.filter==null||this.filter===""?n:n.filter(e=>this.filterPredicate(e,this.filter)),this.paginator&&this._updatePaginator(this.filteredData.length),this.filteredData}_orderData(n){return this.sort?this.sortData(n.slice(),this.sort):n}_pageData(n){if(!this.paginator)return n;let e=this.paginator.pageIndex*this.paginator.pageSize;return n.slice(e,e+this.paginator.pageSize)}_updatePaginator(n){Promise.resolve().then(()=>{let e=this.paginator;if(e&&(e.length=n,e.pageIndex>0)){let t=Math.ceil(e.length/e.pageSize)-1||0,o=Math.min(e.pageIndex,t);o!==e.pageIndex&&(e.pageIndex=o,this._internalPageChanges.next())}})}connect(){return this._renderChangesSubscription||this._updateChangeSubscription(),this._renderData}disconnect(){this._renderChangesSubscription?.unsubscribe(),this._renderChangesSubscription=null}};var cE=["tooltip"],Kh=20;var Zh=new v("mat-tooltip-scroll-strategy",{providedIn:"root",factory:()=>{let i=d(Ke);return()=>i.scrollStrategies.reposition({scrollThrottle:Kh})}});function by(i){return()=>i.scrollStrategies.reposition({scrollThrottle:Kh})}var vy={provide:Zh,deps:[Ke],useFactory:by};function yy(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}var Cy=new v("mat-tooltip-default-options",{providedIn:"root",factory:yy});var gy="tooltip-panel",_y=po({passive:!0}),dE=8,uE=8,mE=24,pE=200,yl=(()=>{class i{_elementRef=d(Z);_ngZone=d(K);_platform=d(Se);_ariaDescriber=d(lv);_focusMonitor=d(un);_dir=d(dt);_injector=d(ce);_viewContainerRef=d(Nt);_defaultOptions=d(Cy,{optional:!0});_overlayRef;_tooltipInstance;_portal;_position="below";_positionAtOrigin=!1;_disabled=!1;_tooltipClass;_viewInitialized=!1;_pointerExitEventsInitialized=!1;_tooltipComponent=xy;_viewportMargin=8;_currentPosition;_cssClassPrefix="mat-mdc";_ariaDescriptionPending;_dirSubscribed=!1;get position(){return this._position}set position(e){e!==this._position&&(this._position=e,this._overlayRef&&(this._updatePosition(this._overlayRef),this._tooltipInstance?.show(0),this._overlayRef.updatePosition()))}get positionAtOrigin(){return this._positionAtOrigin}set positionAtOrigin(e){this._positionAtOrigin=$t(e),this._detach(),this._overlayRef=null}get disabled(){return this._disabled}set disabled(e){let t=$t(e);this._disabled!==t&&(this._disabled=t,t?this.hide(0):this._setupPointerEnterEventsIfNeeded(),this._syncAriaDescription(this.message))}get showDelay(){return this._showDelay}set showDelay(e){this._showDelay=Ut(e)}_showDelay;get hideDelay(){return this._hideDelay}set hideDelay(e){this._hideDelay=Ut(e),this._tooltipInstance&&(this._tooltipInstance._mouseLeaveHideDelay=this._hideDelay)}_hideDelay;touchGestures="auto";get message(){return this._message}set message(e){let t=this._message;this._message=e!=null?String(e).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage()),this._syncAriaDescription(t)}_message="";get tooltipClass(){return this._tooltipClass}set tooltipClass(e){this._tooltipClass=e,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}_passiveListeners=[];_touchstartTimeout=null;_destroyed=new S;_isDestroyed=!1;constructor(){let e=this._defaultOptions;e&&(this._showDelay=e.showDelay,this._hideDelay=e.hideDelay,e.position&&(this.position=e.position),e.positionAtOrigin&&(this.positionAtOrigin=e.positionAtOrigin),e.touchGestures&&(this.touchGestures=e.touchGestures),e.tooltipClass&&(this.tooltipClass=e.tooltipClass)),this._viewportMargin=dE}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(pe(this._destroyed)).subscribe(e=>{e?e==="keyboard"&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){let e=this._elementRef.nativeElement;this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._passiveListeners.forEach(([t,o])=>{e.removeEventListener(t,o,_y)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._isDestroyed=!0,this._ariaDescriber.removeDescription(e,this.message,"tooltip"),this._focusMonitor.stopMonitoring(e)}show(e=this.showDelay,t){if(this.disabled||!this.message||this._isTooltipVisible()){this._tooltipInstance?._cancelPendingAnimations();return}let o=this._createOverlay(t);this._detach(),this._portal=this._portal||new Zt(this._tooltipComponent,this._viewContainerRef);let r=this._tooltipInstance=o.attach(this._portal).instance;r._triggerElement=this._elementRef.nativeElement,r._mouseLeaveHideDelay=this._hideDelay,r.afterHidden().pipe(pe(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),r.show(e)}hide(e=this.hideDelay){let t=this._tooltipInstance;t&&(t.isVisible()?t.hide(e):(t._cancelPendingAnimations(),this._detach()))}toggle(e){this._isTooltipVisible()?this.hide():this.show(void 0,e)}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(e){if(this._overlayRef){let a=this._overlayRef.getConfig().positionStrategy;if((!this.positionAtOrigin||!e)&&a._origin instanceof Z)return this._overlayRef;this._detach()}let t=this._injector.get(_o).getAncestorScrollContainers(this._elementRef),o=this._injector.get(Ke),r=o.position().flexibleConnectedTo(this.positionAtOrigin?e||this._elementRef:this._elementRef).withTransformOriginOn(`.${this._cssClassPrefix}-tooltip`).withFlexibleDimensions(!1).withViewportMargin(this._viewportMargin).withScrollableContainers(t);return r.positionChanges.pipe(pe(this._destroyed)).subscribe(a=>{this._updateCurrentPositionClass(a.connectionPair),this._tooltipInstance&&a.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=o.create({direction:this._dir,positionStrategy:r,panelClass:`${this._cssClassPrefix}-${gy}`,scrollStrategy:this._injector.get(Zh)()}),this._updatePosition(this._overlayRef),this._overlayRef.detachments().pipe(pe(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef.outsidePointerEvents().pipe(pe(this._destroyed)).subscribe(()=>this._tooltipInstance?._handleBodyInteraction()),this._overlayRef.keydownEvents().pipe(pe(this._destroyed)).subscribe(a=>{this._isTooltipVisible()&&a.keyCode===27&&!rt(a)&&(a.preventDefault(),a.stopPropagation(),this._ngZone.run(()=>this.hide(0)))}),this._defaultOptions?.disableTooltipInteractivity&&this._overlayRef.addPanelClass(`${this._cssClassPrefix}-tooltip-panel-non-interactive`),this._dirSubscribed||(this._dirSubscribed=!0,this._dir.change.pipe(pe(this._destroyed)).subscribe(()=>{this._overlayRef&&this._updatePosition(this._overlayRef)})),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(e){let t=e.getConfig().positionStrategy,o=this._getOrigin(),r=this._getOverlayPosition();t.withPositions([this._addOffset(_(_({},o.main),r.main)),this._addOffset(_(_({},o.fallback),r.fallback))])}_addOffset(e){let t=uE,o=!this._dir||this._dir.value=="ltr";return e.originY==="top"?e.offsetY=-t:e.originY==="bottom"?e.offsetY=t:e.originX==="start"?e.offsetX=o?-t:t:e.originX==="end"&&(e.offsetX=o?t:-t),e}_getOrigin(){let e=!this._dir||this._dir.value=="ltr",t=this.position,o;t=="above"||t=="below"?o={originX:"center",originY:t=="above"?"top":"bottom"}:t=="before"||t=="left"&&e||t=="right"&&!e?o={originX:"start",originY:"center"}:(t=="after"||t=="right"&&e||t=="left"&&!e)&&(o={originX:"end",originY:"center"});let{x:r,y:a}=this._invertPosition(o.originX,o.originY);return{main:o,fallback:{originX:r,originY:a}}}_getOverlayPosition(){let e=!this._dir||this._dir.value=="ltr",t=this.position,o;t=="above"?o={overlayX:"center",overlayY:"bottom"}:t=="below"?o={overlayX:"center",overlayY:"top"}:t=="before"||t=="left"&&e||t=="right"&&!e?o={overlayX:"end",overlayY:"center"}:(t=="after"||t=="right"&&e||t=="left"&&!e)&&(o={overlayX:"start",overlayY:"center"});let{x:r,y:a}=this._invertPosition(o.overlayX,o.overlayY);return{main:o,fallback:{overlayX:r,overlayY:a}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),Et(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()},{injector:this._injector}))}_setTooltipClass(e){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=e,this._tooltipInstance._markForCheck())}_invertPosition(e,t){return this.position==="above"||this.position==="below"?t==="top"?t="bottom":t==="bottom"&&(t="top"):e==="end"?e="start":e==="start"&&(e="end"),{x:e,y:t}}_updateCurrentPositionClass(e){let{overlayY:t,originX:o,originY:r}=e,a;if(t==="center"?this._dir&&this._dir.value==="rtl"?a=o==="end"?"left":"right":a=o==="start"?"left":"right":a=t==="bottom"&&r==="top"?"above":"below",a!==this._currentPosition){let s=this._overlayRef;if(s){let u=`${this._cssClassPrefix}-${gy}-`;s.removePanelClass(u+this._currentPosition),s.addPanelClass(u+a)}this._currentPosition=a}}_setupPointerEnterEventsIfNeeded(){this._disabled||!this.message||!this._viewInitialized||this._passiveListeners.length||(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",e=>{this._setupPointerExitEventsIfNeeded();let t;e.x!==void 0&&e.y!==void 0&&(t=e),this.show(void 0,t)}]):this.touchGestures!=="off"&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",e=>{let t=e.targetTouches?.[0],o=t?{x:t.clientX,y:t.clientY}:void 0;this._setupPointerExitEventsIfNeeded(),this._touchstartTimeout&&clearTimeout(this._touchstartTimeout);let r=500;this._touchstartTimeout=setTimeout(()=>{this._touchstartTimeout=null,this.show(void 0,o)},this._defaultOptions?.touchLongPressShowDelay??r)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;let e=[];if(this._platformSupportsMouseEvents())e.push(["mouseleave",t=>{let o=t.relatedTarget;(!o||!this._overlayRef?.overlayElement.contains(o))&&this.hide()}],["wheel",t=>this._wheelListener(t)]);else if(this.touchGestures!=="off"){this._disableNativeGesturesIfNecessary();let t=()=>{this._touchstartTimeout&&clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions?.touchendHideDelay)};e.push(["touchend",t],["touchcancel",t])}this._addListeners(e),this._passiveListeners.push(...e)}_addListeners(e){e.forEach(([t,o])=>{this._elementRef.nativeElement.addEventListener(t,o,_y)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_wheelListener(e){if(this._isTooltipVisible()){let t=this._injector.get(re).elementFromPoint(e.clientX,e.clientY),o=this._elementRef.nativeElement;t!==o&&!o.contains(t)&&this.hide()}}_disableNativeGesturesIfNecessary(){let e=this.touchGestures;if(e!=="off"){let t=this._elementRef.nativeElement,o=t.style;(e==="on"||t.nodeName!=="INPUT"&&t.nodeName!=="TEXTAREA")&&(o.userSelect=o.msUserSelect=o.webkitUserSelect=o.MozUserSelect="none"),(e==="on"||!t.draggable)&&(o.webkitUserDrag="none"),o.touchAction="none",o.webkitTapHighlightColor="transparent"}}_syncAriaDescription(e){this._ariaDescriptionPending||(this._ariaDescriptionPending=!0,this._ariaDescriber.removeDescription(this._elementRef.nativeElement,e,"tooltip"),this._isDestroyed||Et({write:()=>{this._ariaDescriptionPending=!1,this.message&&!this.disabled&&this._ariaDescriber.describe(this._elementRef.nativeElement,this.message,"tooltip")}},{injector:this._injector}))}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-mdc-tooltip-trigger"],hostVars:2,hostBindings:function(t,o){t&2&&j("mat-mdc-tooltip-disabled",o.disabled)},inputs:{position:[0,"matTooltipPosition","position"],positionAtOrigin:[0,"matTooltipPositionAtOrigin","positionAtOrigin"],disabled:[0,"matTooltipDisabled","disabled"],showDelay:[0,"matTooltipShowDelay","showDelay"],hideDelay:[0,"matTooltipHideDelay","hideDelay"],touchGestures:[0,"matTooltipTouchGestures","touchGestures"],message:[0,"matTooltip","message"],tooltipClass:[0,"matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]})}return i})(),xy=(()=>{class i{_changeDetectorRef=d(ye);_elementRef=d(Z);_isMultiline=!1;message;tooltipClass;_showTimeoutId;_hideTimeoutId;_triggerElement;_mouseLeaveHideDelay;_animationsDisabled;_tooltip;_closeOnInteraction=!1;_isVisible=!1;_onHide=new S;_showAnimation="mat-mdc-tooltip-show";_hideAnimation="mat-mdc-tooltip-hide";constructor(){let e=d(ze,{optional:!0});this._animationsDisabled=e==="NoopAnimations"}show(e){this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=setTimeout(()=>{this._toggleVisibility(!0),this._showTimeoutId=void 0},e)}hide(e){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(()=>{this._toggleVisibility(!1),this._hideTimeoutId=void 0},e)}afterHidden(){return this._onHide}isVisible(){return this._isVisible}ngOnDestroy(){this._cancelPendingAnimations(),this._onHide.complete(),this._triggerElement=null}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}_handleMouseLeave({relatedTarget:e}){(!e||!this._triggerElement.contains(e))&&(this.isVisible()?this.hide(this._mouseLeaveHideDelay):this._finalizeAnimation(!1))}_onShow(){this._isMultiline=this._isTooltipMultiline(),this._markForCheck()}_isTooltipMultiline(){let e=this._elementRef.nativeElement.getBoundingClientRect();return e.height>mE&&e.width>=pE}_handleAnimationEnd({animationName:e}){(e===this._showAnimation||e===this._hideAnimation)&&this._finalizeAnimation(e===this._showAnimation)}_cancelPendingAnimations(){this._showTimeoutId!=null&&clearTimeout(this._showTimeoutId),this._hideTimeoutId!=null&&clearTimeout(this._hideTimeoutId),this._showTimeoutId=this._hideTimeoutId=void 0}_finalizeAnimation(e){e?this._closeOnInteraction=!0:this.isVisible()||this._onHide.next()}_toggleVisibility(e){let t=this._tooltip.nativeElement,o=this._showAnimation,r=this._hideAnimation;if(t.classList.remove(e?r:o),t.classList.add(e?o:r),this._isVisible!==e&&(this._isVisible=e,this._changeDetectorRef.markForCheck()),e&&!this._animationsDisabled&&typeof getComputedStyle=="function"){let a=getComputedStyle(t);(a.getPropertyValue("animation-duration")==="0s"||a.getPropertyValue("animation-name")==="none")&&(this._animationsDisabled=!0)}e&&this._onShow(),this._animationsDisabled&&(t.classList.add("_mat-animation-noopable"),this._finalizeAnimation(e))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-tooltip-component"]],viewQuery:function(t,o){if(t&1&&ge(cE,7),t&2){let r;ee(r=te())&&(o._tooltip=r.first)}},hostAttrs:["aria-hidden","true"],hostBindings:function(t,o){t&1&&b("mouseleave",function(a){return o._handleMouseLeave(a)})},decls:4,vars:4,consts:[["tooltip",""],[1,"mdc-tooltip","mat-mdc-tooltip",3,"animationend","ngClass"],[1,"mat-mdc-tooltip-surface","mdc-tooltip__surface"]],template:function(t,o){if(t&1){let r=Q();l(0,"div",1,0),b("animationend",function(s){return I(r),P(o._handleAnimationEnd(s))}),l(2,"div",2),p(3),c()()}t&2&&(j("mdc-tooltip--multiline",o._isMultiline),x("ngClass",o.tooltipClass),m(3),$(o.message))},dependencies:[ln],styles:[`.mat-mdc-tooltip{position:relative;transform:scale(0);display:inline-flex}.mat-mdc-tooltip::before{content:"";top:0;right:0;bottom:0;left:0;z-index:-1;position:absolute}.mat-mdc-tooltip-panel-below .mat-mdc-tooltip::before{top:-8px}.mat-mdc-tooltip-panel-above .mat-mdc-tooltip::before{bottom:-8px}.mat-mdc-tooltip-panel-right .mat-mdc-tooltip::before{left:-8px}.mat-mdc-tooltip-panel-left .mat-mdc-tooltip::before{right:-8px}.mat-mdc-tooltip._mat-animation-noopable{animation:none;transform:scale(1)}.mat-mdc-tooltip-surface{word-break:normal;overflow-wrap:anywhere;padding:4px 8px;min-width:40px;max-width:200px;min-height:24px;max-height:40vh;box-sizing:border-box;overflow:hidden;text-align:center;will-change:transform,opacity;background-color:var(--mdc-plain-tooltip-container-color, var(--mat-sys-inverse-surface));color:var(--mdc-plain-tooltip-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-plain-tooltip-container-shape, var(--mat-sys-corner-extra-small));font-family:var(--mdc-plain-tooltip-supporting-text-font, var(--mat-sys-body-small-font));font-size:var(--mdc-plain-tooltip-supporting-text-size, var(--mat-sys-body-small-size));font-weight:var(--mdc-plain-tooltip-supporting-text-weight, var(--mat-sys-body-small-weight));line-height:var(--mdc-plain-tooltip-supporting-text-line-height, var(--mat-sys-body-small-line-height));letter-spacing:var(--mdc-plain-tooltip-supporting-text-tracking, var(--mat-sys-body-small-tracking))}.mat-mdc-tooltip-surface::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;border:1px solid rgba(0,0,0,0);border-radius:inherit;content:"";pointer-events:none}.mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:left}[dir=rtl] .mdc-tooltip--multiline .mat-mdc-tooltip-surface{text-align:right}.mat-mdc-tooltip-panel{line-height:normal}.mat-mdc-tooltip-panel.mat-mdc-tooltip-panel-non-interactive{pointer-events:none}@keyframes mat-mdc-tooltip-show{0%{opacity:0;transform:scale(0.8)}100%{opacity:1;transform:scale(1)}}@keyframes mat-mdc-tooltip-hide{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(0.8)}}.mat-mdc-tooltip-show{animation:mat-mdc-tooltip-show 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-mdc-tooltip-hide{animation:mat-mdc-tooltip-hide 75ms cubic-bezier(0.4, 0, 1, 1) forwards} -`],encapsulation:2,changeDetection:0})}return i})(),Cl=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({providers:[vy],imports:[Xo,Qt,se,se,Ht]})}return i})();var ua=q("[Content] Load Content Type Changes"),cu=q("[Content] Load Content Type Changes Success",ne()),du=q("[Content] Load Content Type Changes Failure",ne()),ei=q("[Content] Load Content",ne()),uu=q("[Content] Upload File",ne()),mu=q("[Content] Upload File Success",ne()),Dy=q("[Content] Upload File Failure",ne()),ma=q("[Content] Load Related Items",ne()),pu=q("[Content] Load Content Success",ne()),hu=q("[Content] Load Related Items Success",ne()),fu=q("[Content] Load Content Failure",ne()),gu=q("[Content] Load Related Items Failure",ne()),_u=q("[Content] Load Headers",ne()),bu=q("[Content] Load Headers Success",ne()),My=q("[Content] Load Headers Failure",ne()),Zi=q("[Content] Set Content Type",ne()),pa=q("[Content] Set Current Item",ne()),xl=q("[Content] Set Is Searching",ne()),Qh=q("[Content] Set Search Text",ne()),ha=q("[Content] Delete Content",ne()),wl=q("[Content] Delete Content Success",ne()),vu=q("[Content] Delete Content Failure",ne()),fa=q("[Content] Delete Multiple Content",ne()),Dl=q("[Content] Delete Multiple Content Success",ne()),yu=q("[Content] Delete Multiple Content Failure",ne()),ga=q("[Content] Create Content",ne()),dr=q("[Content] Create Content Success",ne()),Cu=q("[Content] Create Content Failure",ne()),_a=q("[Content] Update Content",ne()),ky=q("[Content] Update Content Success"),xu=q("[Content] Update Content Failure",ne());var Qi=ra("content"),ba=Re(Qi,i=>i.items),Sy=Re(Qi,i=>i.relatedItems||{}),va=Re(Qi,i=>i.headers),ut=Re(Qi,i=>i.selectedType),ya=Re(Qi,i=>i.loading),Ey=Re(Qi,i=>i.error),Oy=Re(Qi,i=>i.totalItems),Ca=Re(Qi,i=>i.itemsPerPage),Ty=Re(Qi,i=>i.currentItem),wu=Re(Qi,i=>i.isSearching),Ay=Re(Qi,i=>i.contentTypeChanges),Iy=Re(Qi,i=>i.loadingContentTypeChanges);var Xh=(a=>(a[a.PendingPublish=1]="PendingPublish",a[a.PendingDelete=2]="PendingDelete",a[a.Published=3]="Published",a[a.Deleted=4]="Deleted",a[a.PendingActionsChange=5]="PendingActionsChange",a[a.ActionsChanged=6]="ActionsChanged",a))(Xh||{});var hE=(i,n)=>n.modelName;function fE(i,n){i&1&&(l(0,"div",4),p(1," Loading content types... "),c())}function gE(i,n){i&1&&(l(0,"div",5),p(1," No content types found. "),c())}function _E(i,n){if(i&1){let e=Q();l(0,"div",21),b("click",function(){I(e);let o=f(2).$implicit,r=f(2);return P(r.navigateToPathBuilder(o.modelName))}),l(1,"mat-icon"),p(2),c()()}if(i&2){let e=n.$implicit,t=f(4);x("matTooltip",t.getFieldTooltip(e)),m(2),$(t.getFieldIcon(e))}}function bE(i,n){if(i&1&&(l(0,"span",20),p(1),c()),i&2){let e=f(2).$implicit;m(),U("+",e.additionalFields,"")}}function vE(i,n){if(i&1&&(de(0,_E,3,2,"div",19,Qe),w(2,bE,2,1,"span",20)),i&2){let e=f().$implicit;ue(e.fieldTypes),m(2),C(e.additionalFields>0?2:-1)}}function yE(i,n){i&1&&(l(0,"span"),p(1,"-"),c())}function CE(i,n){i&1&&(l(0,"div",15),p(1,"Deleted"),c())}function xE(i,n){i&1&&(l(0,"div",15),p(1,"Pending Delete"),c())}function wE(i,n){i&1&&(l(0,"div",16),p(1,"Pending Publish"),c())}function DE(i,n){i&1&&(l(0,"div",16),p(1,"Published"),c())}function ME(i,n){if(i&1){let e=Q();l(0,"button",22),b("click",function(){I(e);let o=f().$implicit,r=f(2);return P(r.editContentType(o.modelName))}),l(1,"mat-icon"),p(2,"edit"),c()()}}function kE(i,n){if(i&1&&(l(0,"tr",11)(1,"td",12),p(2),c(),l(3,"td",13)(4,"div",14),w(5,vE,3,1)(6,yE,2,0,"span"),c()(),l(7,"td",12),w(8,CE,2,0,"div",15)(9,xE,2,0,"div",15)(10,wE,2,0,"div",16)(11,DE,2,0,"div",16),c(),l(12,"td",12),p(13),c(),l(14,"td",17),w(15,ME,3,0,"button",18),c()()),i&2){let e=n.$implicit,t=f(2);m(2),$(e.modelName),m(3),C(e.fieldTypes&&e.fieldTypes.length>0?5:6),m(3),C(e.state==t.state.Deleted?8:-1),m(),C(e.state==t.state.PendingDelete?9:-1),m(),C(e.state==t.state.PendingPublish?10:-1),m(),C(e.state==t.state.Published?11:-1),m(2),$(e.modifiedAt),m(2),C(e.state!=t.state.Published?15:-1)}}function SE(i,n){if(i&1&&(l(0,"table",6)(1,"thead")(2,"tr",7)(3,"th",8),p(4,"Model Name"),c(),l(5,"th",8),p(6,"Fields"),c(),l(7,"th",8),p(8,"Status"),c(),l(9,"th",8),p(10,"Last edited"),c(),l(11,"th",9)(12,"span",10),p(13,"Actions"),c()()()(),l(14,"tbody"),de(15,kE,16,8,"tr",11,hE),c()()),i&2){let e=f();m(15),ue(e.dataSource.data)}}var Du=class i{constructor(n,e,t){this.router=n;this.store=e;this.cdr=t;this.fieldIcons={text:"text_fields",number:"123",DateOnly:"calendar_today",DateTime:"today",media:"perm_media",link:"link",file:"insert_drive_file",OneToOne:"leak_remove",ManyToOne:"leak_remove",ManyToMany:"leak_remove",OneToMany:"leak_remove",collection:"grid_view",string:"text_fields",bool:"check_box",array:"view_list",object:"code",Guid:"fingerprint",int:"123",MediaInfo:"perm_media"};this.fieldTooltips={text:"Text Field",number:"Number Field",DateOnly:"Date Field",DateTime:"DateTime Field",media:"Media Field",link:"Link Field",file:"File Field",OneToOne:"Relation Field",ManyToOne:"Relation Field",ManyToMany:"Relation Field",OneToMany:"Relation Field",collection:"Collection Field",string:"String Field",bool:"Boolean Field",array:"Array Field",object:"Object Field",Guid:"ID Field",int:"Integer Field",MediaInfo:"Media Field"};this.dataSource=new vl([]);this.loading=!1;this.destroy$=new S;this.state=Xh}ngOnInit(){this.store.pipe(gn(Iy),pe(this.destroy$)).subscribe(n=>{this.loading=n,this.cdr.detectChanges()}),this.store.dispatch(ua()),this.store.pipe(gn(Ay),pe(this.destroy$)).subscribe(n=>{n&&n.length>0?this.updateTableData(n):(this.dataSource.data=[],this.cdr.detectChanges())})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}updateTableData(n){if(!n||n.length===0){console.warn("No content type changes found"),this.dataSource.data=[],this.cdr.detectChanges();return}let e=n.map(t=>{let o=t.Fields?Object.keys(t.Fields).length:0,r=t.Fields?Object.values(t.Fields):[],a=new Date(t.ModifiedAt),u=new Date().getTime()-a.getTime(),h=Math.floor(u/(1e3*60)),g=Math.floor(u/(1e3*60*60)),y=Math.floor(u/(1e3*60*60*24)),R="";return h<5?R="just now":g<1?R=`${h}m ago`:g<24?R=`${g}h ago`:y===1?R="yesterday":y<7?R=`${y} days ago`:R=`${Math.floor(y/7)} week${Math.floor(y/7)>1?"s":""} ago`,{id:t.Id,modelName:t.ModelName,fieldsCount:o,fieldTypes:r.slice(0,3),additionalFields:Math.max(0,o-3),modifiedBy:t.ModifiedBy,modifiedAt:R,state:t.State}});this.dataSource=new vl(e),this.cdr.detectChanges()}getFieldIcon(n){return this.fieldIcons[n]||"help_outline"}getFieldTooltip(n){return this.fieldTooltips[n]||"Unknown Field Type"}navigateToPathBuilder(n){this.store.dispatch(Zi({selectedType:n})),this.router.navigate(["/builder"])}editContentType(n){this.store.dispatch(Zi({selectedType:n})),this.router.navigate(["/builder"])}static{this.\u0275fac=function(e){return new(e||i)(k($e),k(he),k(ye))}}static{this.\u0275cmp=E({type:i,selectors:[["app-recent-content-table"]],decls:10,vars:1,consts:[[1,"recent-content"],[1,"table-header"],[1,"history-icon"],[1,"scrollable-list"],[1,"loading-container",2,"padding","20px","text-align","center"],[1,"empty-container",2,"padding","20px","text-align","center"],["role","table","aria-label","Recent Content Types",1,"content-table"],["role","row",1,"header-row"],["role","columnheader",1,"cell"],["role","columnheader",1,"small-cell","actions-cell"],[1,"sr-only"],["role","row",1,"content-row"],["role","cell",1,"cell"],["role","cell",1,"cell","field-cell"],[1,"field-icons"],[1,"status-pill-deleted","deleted"],[1,"status-pill","published"],["role","cell",1,"small-cell","actions-cell"],["mat-icon-button","","aria-label","Edit content type"],[1,"field-icon",3,"matTooltip"],[1,"additional-fields"],[1,"field-icon",3,"click","matTooltip"],["mat-icon-button","","aria-label","Edit content type",3,"click"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"div",1)(2,"mat-icon",2),p(3,"history"),c(),l(4,"span"),p(5,"Recent Content-Types"),c()(),l(6,"div",3),w(7,fE,2,0,"div",4)(8,gE,2,0,"div",5)(9,SE,17,0,"table",6),c()()),e&2&&(m(7),C(t.loading?7:!t.loading&&t.dataSource.data.length===0?8:9))},dependencies:[Ae,fe,Ce,ke,Ze,Cl,yl],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%;width:100%}.recent-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;background:transparent;border-radius:8px;height:100%;width:100%}.table-header[_ngcontent-%COMP%]{display:flex;align-items:center;font-size:1rem;font-weight:500;margin-bottom:1rem;color:#fff}.history-icon[_ngcontent-%COMP%]{margin-right:8px;color:#fff}.scrollable-list[_ngcontent-%COMP%]{flex:1;width:100%;overflow:auto;border-radius:8px;min-height:0}.content-table[_ngcontent-%COMP%]{width:100%;border-spacing:0 4px;border-collapse:separate;table-layout:fixed}.header-row[_ngcontent-%COMP%], .content-row[_ngcontent-%COMP%]{display:table-row}.header-row[_ngcontent-%COMP%]{font-weight:700;background:#1e1e1e}.header-row[_ngcontent-%COMP%]:hover{background:#2b2b2b}.edit-icon[_ngcontent-%COMP%]{color:#fff}.small-cell[_ngcontent-%COMP%], .cell[_ngcontent-%COMP%]{display:table-cell;padding:12px 16px;box-shadow:none}.content-row[_ngcontent-%COMP%]{background:#1e1e1e}.content-row[_ngcontent-%COMP%]:hover{background:#2b2b2b}.small-cell[_ngcontent-%COMP%], .cell[_ngcontent-%COMP%]{display:table-cell;padding:12px 16px;vertical-align:middle;text-align:left;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.small-cell[_ngcontent-%COMP%]{width:50px}.cell[_ngcontent-%COMP%]{flex-grow:1}.actions-cell[_ngcontent-%COMP%]{width:50px;text-align:right}.field-icons[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px}.field-icon[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;background-color:#d5ccf529;color:#ac99ea;border-radius:4px;padding:.25rem;height:24px;width:24px;cursor:pointer;transition:background-color .2s ease;border:1px solid rgba(213,204,245,.5)}.field-icon[_ngcontent-%COMP%]:hover{background-color:#ac99ea33}.field-icon[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;height:18px;width:18px}.field-cell[_ngcontent-%COMP%]{min-width:160px}.additional-fields[_ngcontent-%COMP%]{font-size:.85rem;color:#ffffffb3;margin-left:.25rem}.status-pill[_ngcontent-%COMP%]{display:inline-block;padding:4px 12px;border-radius:16px;font-size:.8rem;font-weight:500}.status-pill.published[_ngcontent-%COMP%]{background-color:#66bb6a33;color:#66bb6a}.status-pill.deleted[_ngcontent-%COMP%]{background-color:#ef535033;color:#66bb6a}.status-pill-deleted[_ngcontent-%COMP%]{display:inline-block;padding:4px 12px;border-radius:16px;font-size:.8rem;font-weight:500}.status-pill-deleted.deleted[_ngcontent-%COMP%]{background-color:#ef535033;color:#fff}.status-pill-draft[_ngcontent-%COMP%]{display:inline-block;padding:4px 12px;border-radius:16px;font-size:.8rem;font-weight:500}.status-pill-draft.draft[_ngcontent-%COMP%]{background-color:#fff3;color:#fff}.sr-only[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}"]})}};var Mu=class i{constructor(){}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=E({type:i,selectors:[["app-dashboard"]],decls:8,vars:0,consts:[[1,"dashboard"],[1,"dashboard__header"],[1,"dashboard__title"],[1,"dashboard__subtitle"],[1,"dashboard__stats"],[1,"dashboard__recent-content"]],template:function(e,t){e&1&&(l(0,"section",0)(1,"header",1)(2,"h2",2),p(3,"Welcome to dappi"),c(),l(4,"p",3),p(5,"Build the data architecture of your design"),c()(),M(6,"app-stats-card",4)(7,"app-recent-content-table",5),c())},dependencies:[lu,Du,fe],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;background-color:#121212;color:#fff;height:100vh;width:100%;box-sizing:border-box;padding:1.5rem;overflow:hidden}.dashboard[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;width:100%}.dashboard__header[_ngcontent-%COMP%]{margin-bottom:1.25rem;flex-shrink:0}.dashboard__title[_ngcontent-%COMP%]{margin:0;font-weight:600}.dashboard__subtitle[_ngcontent-%COMP%]{margin:.5rem 0 0;color:#ffffffb3;font-size:.95rem}.dashboard__stats[_ngcontent-%COMP%]{margin-bottom:1rem;flex-shrink:0}.dashboard__recent-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex-grow:1;min-height:0;overflow:hidden;width:100%}"],changeDetection:0})}};var Mo=class i{constructor(){this.text="Button";this.disabled=!1}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=E({type:i,selectors:[["app-button"]],inputs:{text:"text",disabled:"disabled"},decls:2,vars:2,consts:[[1,"button",3,"disabled"]],template:function(e,t){e&1&&(l(0,"button",0),p(1),c()),e&2&&(x("disabled",t.disabled),m(),$(t.text))},styles:[".button[_ngcontent-%COMP%]{display:block;margin:3px auto;text-align:center;color:#ac99ea;background-color:transparent;padding:10px 8px!important;border:1px solid rgba(213,204,245,.5);border-radius:4px}.button[_ngcontent-%COMP%]:hover{background:#fff3;cursor:pointer}"]})}};var Py=(()=>{class i{_animationMode=d(ze,{optional:!0});state="unchecked";disabled=!1;appearance="full";constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:12,hostBindings:function(t,o){t&2&&j("mat-pseudo-checkbox-indeterminate",o.state==="indeterminate")("mat-pseudo-checkbox-checked",o.state==="checked")("mat-pseudo-checkbox-disabled",o.disabled)("mat-pseudo-checkbox-minimal",o.appearance==="minimal")("mat-pseudo-checkbox-full",o.appearance==="full")("_mat-animation-noopable",o._animationMode==="NoopAnimations")},inputs:{state:"state",disabled:"disabled",appearance:"appearance"},decls:0,vars:0,template:function(t,o){},styles:[`.mat-pseudo-checkbox{border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox._mat-animation-noopable{transition:none !important;animation:none !important}.mat-pseudo-checkbox._mat-animation-noopable::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{left:1px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{left:1px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-minimal-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-primary))}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-minimal-pseudo-checkbox-disabled-selected-checkmark-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full{border-color:var(--mat-full-pseudo-checkbox-unselected-icon-color, var(--mat-sys-on-surface-variant));border-width:2px;border-style:solid}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-disabled{border-color:var(--mat-full-pseudo-checkbox-disabled-unselected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate{background-color:var(--mat-full-pseudo-checkbox-selected-icon-color, var(--mat-sys-primary));border-color:rgba(0,0,0,0)}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{color:var(--mat-full-pseudo-checkbox-selected-checkmark-color, var(--mat-sys-on-primary))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled{background-color:var(--mat-full-pseudo-checkbox-disabled-selected-icon-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked.mat-pseudo-checkbox-disabled::after,.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate.mat-pseudo-checkbox-disabled::after{color:var(--mat-full-pseudo-checkbox-disabled-selected-checkmark-color, var(--mat-sys-surface))}.mat-pseudo-checkbox{width:18px;height:18px}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-checked::after{width:14px;height:6px;transform-origin:center;top:-4.2426406871px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-minimal.mat-pseudo-checkbox-indeterminate::after{top:8px;width:16px}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-checked::after{width:10px;height:4px;transform-origin:center;top:-2.8284271247px;left:0;bottom:0;right:0;margin:auto}.mat-pseudo-checkbox-full.mat-pseudo-checkbox-indeterminate::after{top:6px;width:12px} -`],encapsulation:2,changeDetection:0})}return i})();var EE=["text"],OE=[[["mat-icon"]],"*"],TE=["mat-icon","*"];function AE(i,n){if(i&1&&M(0,"mat-pseudo-checkbox",1),i&2){let e=f();x("disabled",e.disabled)("state",e.selected?"checked":"unchecked")}}function IE(i,n){if(i&1&&M(0,"mat-pseudo-checkbox",3),i&2){let e=f();x("disabled",e.disabled)}}function PE(i,n){if(i&1&&(l(0,"span",4),p(1),c()),i&2){let e=f();m(),U("(",e.group.label,")")}}var Su=new v("MAT_OPTION_PARENT_COMPONENT"),Eu=new v("MatOptgroup");var ku=class{source;isUserInput;constructor(n,e=!1){this.source=n,this.isUserInput=e}},ko=(()=>{class i{_element=d(Z);_changeDetectorRef=d(ye);_parent=d(Su,{optional:!0});group=d(Eu,{optional:!0});_signalDisableRipple=!1;_selected=!1;_active=!1;_disabled=!1;_mostRecentViewValue="";get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}value;id=d(Ye).getId("mat-option-");get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(e){this._disabled=e}get disableRipple(){return this._signalDisableRipple?this._parent.disableRipple():!!this._parent?.disableRipple}get hideSingleSelectionIndicator(){return!!(this._parent&&this._parent.hideSingleSelectionIndicator)}onSelectionChange=new L;_text;_stateChanges=new S;constructor(){let e=d(We);e.load(Yi),e.load(In),this._signalDisableRipple=!!this._parent&&Ro(this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._text?.nativeElement.textContent||"").trim()}select(e=!0){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}deselect(e=!0){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),e&&this._emitSelectionChangeEvent())}focus(e,t){let o=this._getHostElement();typeof o.focus=="function"&&o.focus(t)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(e){(e.keyCode===13||e.keyCode===32)&&!rt(e)&&(this._selectViaInteraction(),e.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=this.multiple?!this._selected:!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){let e=this.viewValue;e!==this._mostRecentViewValue&&(this._mostRecentViewValue&&this._stateChanges.next(),this._mostRecentViewValue=e)}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(e=!1){this.onSelectionChange.emit(new ku(this,e))}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-option"]],viewQuery:function(t,o){if(t&1&&ge(EE,7),t&2){let r;ee(r=te())&&(o._text=r.first)}},hostAttrs:["role","option",1,"mat-mdc-option","mdc-list-item"],hostVars:11,hostBindings:function(t,o){t&1&&b("click",function(){return o._selectViaInteraction()})("keydown",function(a){return o._handleKeydown(a)}),t&2&&(vi("id",o.id),Y("aria-selected",o.selected)("aria-disabled",o.disabled.toString()),j("mdc-list-item--selected",o.selected)("mat-mdc-option-multiple",o.multiple)("mat-mdc-option-active",o.active)("mdc-list-item--disabled",o.disabled))},inputs:{value:"value",id:"id",disabled:[2,"disabled","disabled",X]},outputs:{onSelectionChange:"onSelectionChange"},exportAs:["matOption"],ngContentSelectors:TE,decls:8,vars:5,consts:[["text",""],["aria-hidden","true",1,"mat-mdc-option-pseudo-checkbox",3,"disabled","state"],[1,"mdc-list-item__primary-text"],["state","checked","aria-hidden","true","appearance","minimal",1,"mat-mdc-option-pseudo-checkbox",3,"disabled"],[1,"cdk-visually-hidden"],["aria-hidden","true","mat-ripple","",1,"mat-mdc-option-ripple","mat-focus-indicator",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,o){t&1&&(Te(OE),w(0,AE,1,2,"mat-pseudo-checkbox",1),ae(1),l(2,"span",2,0),ae(4,1),c(),w(5,IE,1,1,"mat-pseudo-checkbox",3)(6,PE,2,1,"span",4),M(7,"div",5)),t&2&&(C(o.multiple?0:-1),m(5),C(!o.multiple&&o.selected&&!o.hideSingleSelectionIndicator?5:-1),m(),C(o.group&&o.group._inert?6:-1),m(),x("matRippleTrigger",o._getHostElement())("matRippleDisabled",o.disabled||o.disableRipple))},dependencies:[Py,ia],styles:[`.mat-mdc-option{-webkit-user-select:none;user-select:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;min-height:48px;padding:0 16px;cursor:pointer;-webkit-tap-highlight-color:rgba(0,0,0,0);color:var(--mat-option-label-text-color, var(--mat-sys-on-surface));font-family:var(--mat-option-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-option-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-option-label-text-size, var(--mat-sys-body-large-size));letter-spacing:var(--mat-option-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-option-label-text-weight, var(--mat-sys-body-large-weight))}.mat-mdc-option:hover:not(.mdc-list-item--disabled){background-color:var(--mat-option-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-option:focus.mdc-list-item,.mat-mdc-option.mat-mdc-option-active.mdc-list-item{background-color:var(--mat-option-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent));outline:0}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple){background-color:var(--mat-option-selected-state-layer-color, var(--mat-sys-secondary-container))}.mat-mdc-option.mdc-list-item--selected:not(.mdc-list-item--disabled):not(.mat-mdc-option-multiple) .mdc-list-item__primary-text{color:var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option .mat-pseudo-checkbox{--mat-minimal-pseudo-checkbox-selected-checkmark-color: var(--mat-option-selected-state-label-text-color, var(--mat-sys-on-secondary-container))}.mat-mdc-option.mdc-list-item{align-items:center;background:rgba(0,0,0,0)}.mat-mdc-option.mdc-list-item--disabled{cursor:default;pointer-events:none}.mat-mdc-option.mdc-list-item--disabled .mat-mdc-option-pseudo-checkbox,.mat-mdc-option.mdc-list-item--disabled .mdc-list-item__primary-text,.mat-mdc-option.mdc-list-item--disabled>mat-icon{opacity:.38}.mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:32px}[dir=rtl] .mat-mdc-optgroup .mat-mdc-option:not(.mat-mdc-option-multiple){padding-left:16px;padding-right:32px}.mat-mdc-option .mat-icon,.mat-mdc-option .mat-pseudo-checkbox-full{margin-right:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-icon,[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-full{margin-right:0;margin-left:16px}.mat-mdc-option .mat-pseudo-checkbox-minimal{margin-left:16px;flex-shrink:0}[dir=rtl] .mat-mdc-option .mat-pseudo-checkbox-minimal{margin-right:16px;margin-left:0}.mat-mdc-option .mat-mdc-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-option .mdc-list-item__primary-text{white-space:normal;font-size:inherit;font-weight:inherit;letter-spacing:inherit;line-height:inherit;font-family:inherit;text-decoration:inherit;text-transform:inherit;margin-right:auto}[dir=rtl] .mat-mdc-option .mdc-list-item__primary-text{margin-right:0;margin-left:auto}@media(forced-colors: active){.mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}[dir=rtl] .mat-mdc-option.mdc-list-item--selected:not(:has(.mat-mdc-option-pseudo-checkbox))::after{right:auto;left:16px}}.mat-mdc-option-multiple{--mdc-list-list-item-selected-container-color:var(--mdc-list-list-item-container-color, transparent)}.mat-mdc-option-active .mat-focus-indicator::before{content:""} -`],encapsulation:2,changeDetection:0})}return i})();function Jh(i,n,e){if(e.length){let t=n.toArray(),o=e.toArray(),r=0;for(let a=0;ae+t?Math.max(0,i-t+n):e}var Ou=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({imports:[se]})}return i})();var tf=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({imports:[Co,se,Ou]})}return i})();var RE=["trigger"],FE=["panel"],NE=[[["mat-select-trigger"]],"*"],LE=["mat-select-trigger","*"];function VE(i,n){if(i&1&&(l(0,"span",4),p(1),c()),i&2){let e=f();m(),$(e.placeholder)}}function BE(i,n){i&1&&ae(0)}function jE(i,n){if(i&1&&(l(0,"span",11),p(1),c()),i&2){let e=f(2);m(),$(e.triggerValue)}}function zE(i,n){if(i&1&&(l(0,"span",5),w(1,BE,1,0)(2,jE,2,1,"span",11),c()),i&2){let e=f();m(),C(e.customTrigger?1:2)}}function UE(i,n){if(i&1){let e=Q();l(0,"div",12,1),b("keydown",function(o){I(e);let r=f();return P(r._handleKeydown(o))}),ae(2,1),c()}if(i&2){let e=f();Og("mat-mdc-select-panel mdc-menu-surface mdc-menu-surface--open ",e._getPanelTheme(),""),j("mat-select-panel-animations-enabled",!e._animationsDisabled),x("ngClass",e.panelClass),Y("id",e.id+"-panel")("aria-multiselectable",e.multiple)("aria-label",e.ariaLabel||null)("aria-labelledby",e._getPanelAriaLabelledby())}}var nf=new v("mat-select-scroll-strategy",{providedIn:"root",factory:()=>{let i=d(Ke);return()=>i.scrollStrategies.reposition()}});function Ry(i){return()=>i.scrollStrategies.reposition()}var Fy=new v("MAT_SELECT_CONFIG"),Ny={provide:nf,deps:[Ke],useFactory:Ry},Ly=new v("MatSelectTrigger"),Tu=class{source;value;constructor(n,e){this.source=n,this.value=e}},Ml=(()=>{class i{_viewportRuler=d(Fn);_changeDetectorRef=d(ye);_elementRef=d(Z);_dir=d(dt,{optional:!0});_idGenerator=d(Ye);_renderer=d(tt);_parentFormField=d(vo,{optional:!0});ngControl=d(Hi,{self:!0,optional:!0});_liveAnnouncer=d(Bs);_defaultOptions=d(Fy,{optional:!0});_animationsDisabled=d(ze,{optional:!0})==="NoopAnimations";_initialized=new S;_cleanupDetach;options;optionGroups;customTrigger;_positions=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:"mat-mdc-select-panel-above"}];_scrollOptionIntoView(e){let t=this.options.toArray()[e];if(t){let o=this.panel.nativeElement,r=Jh(e,this.options,this.optionGroups),a=t._getHostElement();e===0&&r===1?o.scrollTop=0:o.scrollTop=ef(a.offsetTop,a.offsetHeight,o.scrollTop,o.offsetHeight)}}_positioningSettled(){this._scrollOptionIntoView(this._keyManager.activeItemIndex||0)}_getChangeEvent(e){return new Tu(this,e)}_scrollStrategyFactory=d(nf);_panelOpen=!1;_compareWith=(e,t)=>e===t;_uid=this._idGenerator.getId("mat-select-");_triggerAriaLabelledBy=null;_previousControl;_destroy=new S;_errorStateTracker;stateChanges=new S;disableAutomaticLabeling=!0;userAriaDescribedBy;_selectionModel;_keyManager;_preferredOverlayOrigin;_overlayWidth;_onChange=()=>{};_onTouched=()=>{};_valueId=this._idGenerator.getId("mat-select-value-");_scrollStrategy;_overlayPanelClass=this._defaultOptions?.overlayPanelClass||"";get focused(){return this._focused||this._panelOpen}_focused=!1;controlType="mat-select";trigger;panel;_overlayDir;panelClass;disabled=!1;disableRipple=!1;tabIndex=0;get hideSingleSelectionIndicator(){return this._hideSingleSelectionIndicator}set hideSingleSelectionIndicator(e){this._hideSingleSelectionIndicator=e,this._syncParentProperties()}_hideSingleSelectionIndicator=this._defaultOptions?.hideSingleSelectionIndicator??!1;get placeholder(){return this._placeholder}set placeholder(e){this._placeholder=e,this.stateChanges.next()}_placeholder;get required(){return this._required??this.ngControl?.control?.hasValidator(me.required)??!1}set required(e){this._required=e,this.stateChanges.next()}_required;get multiple(){return this._multiple}set multiple(e){this._selectionModel,this._multiple=e}_multiple=!1;disableOptionCentering=this._defaultOptions?.disableOptionCentering??!1;get compareWith(){return this._compareWith}set compareWith(e){this._compareWith=e,this._selectionModel&&this._initializeSelection()}get value(){return this._value}set value(e){this._assignValue(e)&&this._onChange(e)}_value;ariaLabel="";ariaLabelledby;get errorStateMatcher(){return this._errorStateTracker.matcher}set errorStateMatcher(e){this._errorStateTracker.matcher=e}typeaheadDebounceInterval;sortComparator;get id(){return this._id}set id(e){this._id=e||this._uid,this.stateChanges.next()}_id;get errorState(){return this._errorStateTracker.errorState}set errorState(e){this._errorStateTracker.errorState=e}panelWidth=this._defaultOptions&&typeof this._defaultOptions.panelWidth<"u"?this._defaultOptions.panelWidth:"auto";canSelectNullableOptions=this._defaultOptions?.canSelectNullableOptions??!1;optionSelectionChanges=vn(()=>{let e=this.options;return e?e.changes.pipe(ot(e),Pe(()=>Le(...e.map(t=>t.onSelectionChange)))):this._initialized.pipe(Pe(()=>this.optionSelectionChanges))});openedChange=new L;_openedStream=this.openedChange.pipe(le(e=>e),A(()=>{}));_closedStream=this.openedChange.pipe(le(e=>!e),A(()=>{}));selectionChange=new L;valueChange=new L;constructor(){let e=d(Rd),t=d(Xr,{optional:!0}),o=d(bt,{optional:!0}),r=d(new ro("tabindex"),{optional:!0});this.ngControl&&(this.ngControl.valueAccessor=this),this._defaultOptions?.typeaheadDebounceInterval!=null&&(this.typeaheadDebounceInterval=this._defaultOptions.typeaheadDebounceInterval),this._errorStateTracker=new ta(e,this.ngControl,o,t,this.stateChanges),this._scrollStrategy=this._scrollStrategyFactory(),this.tabIndex=r==null?0:parseInt(r)||0,this.id=this.id}ngOnInit(){this._selectionModel=new bl(this.multiple),this.stateChanges.next(),this._viewportRuler.change().pipe(pe(this._destroy)).subscribe(()=>{this.panelOpen&&(this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._changeDetectorRef.detectChanges())})}ngAfterContentInit(){this._initialized.next(),this._initialized.complete(),this._initKeyManager(),this._selectionModel.changed.pipe(pe(this._destroy)).subscribe(e=>{e.added.forEach(t=>t.select()),e.removed.forEach(t=>t.deselect())}),this.options.changes.pipe(ot(null),pe(this._destroy)).subscribe(()=>{this._resetOptions(),this._initializeSelection()})}ngDoCheck(){let e=this._getTriggerAriaLabelledby(),t=this.ngControl;if(e!==this._triggerAriaLabelledBy){let o=this._elementRef.nativeElement;this._triggerAriaLabelledBy=e,e?o.setAttribute("aria-labelledby",e):o.removeAttribute("aria-labelledby")}t&&(this._previousControl!==t.control&&(this._previousControl!==void 0&&t.disabled!==null&&t.disabled!==this.disabled&&(this.disabled=t.disabled),this._previousControl=t.control),this.updateErrorState())}ngOnChanges(e){(e.disabled||e.userAriaDescribedBy)&&this.stateChanges.next(),e.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)}ngOnDestroy(){this._cleanupDetach?.(),this._keyManager?.destroy(),this._destroy.next(),this._destroy.complete(),this.stateChanges.complete(),this._clearFromModal()}toggle(){this.panelOpen?this.close():this.open()}open(){this._canOpen()&&(this._parentFormField&&(this._preferredOverlayOrigin=this._parentFormField.getConnectedOverlayOrigin()),this._cleanupDetach?.(),this._overlayWidth=this._getOverlayWidth(this._preferredOverlayOrigin),this._applyModalPanelOwnership(),this._panelOpen=!0,this._overlayDir.positionChange.pipe(_e(1)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this._positioningSettled()}),this._overlayDir.attachOverlay(),this._keyManager.withHorizontalOrientation(null),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!0)))}_trackedModal=null;_applyModalPanelOwnership(){let e=this._elementRef.nativeElement.closest('body > .cdk-overlay-container [aria-modal="true"]');if(!e)return;let t=`${this.id}-panel`;this._trackedModal&&cd(this._trackedModal,"aria-owns",t),lh(e,"aria-owns",t),this._trackedModal=e}_clearFromModal(){if(!this._trackedModal)return;let e=`${this.id}-panel`;cd(this._trackedModal,"aria-owns",e),this._trackedModal=null}close(){this._panelOpen&&(this._panelOpen=!1,this._exitAndDetach(),this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched(),this.stateChanges.next(),Promise.resolve().then(()=>this.openedChange.emit(!1)))}_exitAndDetach(){if(this._animationsDisabled||!this.panel){this._detachOverlay();return}this._cleanupDetach?.(),this._cleanupDetach=()=>{t(),clearTimeout(o),this._cleanupDetach=void 0};let e=this.panel.nativeElement,t=this._renderer.listen(e,"animationend",r=>{r.animationName==="_mat-select-exit"&&(this._cleanupDetach?.(),this._detachOverlay())}),o=setTimeout(()=>{this._cleanupDetach?.(),this._detachOverlay()},200);e.classList.add("mat-select-panel-exit")}_detachOverlay(){this._overlayDir.detachOverlay(),this._changeDetectorRef.markForCheck()}writeValue(e){this._assignValue(e)}registerOnChange(e){this._onChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e,this._changeDetectorRef.markForCheck(),this.stateChanges.next()}get panelOpen(){return this._panelOpen}get selected(){return this.multiple?this._selectionModel?.selected||[]:this._selectionModel?.selected[0]}get triggerValue(){if(this.empty)return"";if(this._multiple){let e=this._selectionModel.selected.map(t=>t.viewValue);return this._isRtl()&&e.reverse(),e.join(", ")}return this._selectionModel.selected[0].viewValue}updateErrorState(){this._errorStateTracker.updateErrorState()}_isRtl(){return this._dir?this._dir.value==="rtl":!1}_handleKeydown(e){this.disabled||(this.panelOpen?this._handleOpenKeydown(e):this._handleClosedKeydown(e))}_handleClosedKeydown(e){let t=e.keyCode,o=t===40||t===38||t===37||t===39,r=t===13||t===32,a=this._keyManager;if(!a.isTyping()&&r&&!rt(e)||(this.multiple||e.altKey)&&o)e.preventDefault(),this.open();else if(!this.multiple){let s=this.selected;a.onKeydown(e);let u=this.selected;u&&s!==u&&this._liveAnnouncer.announce(u.viewValue,1e4)}}_handleOpenKeydown(e){let t=this._keyManager,o=e.keyCode,r=o===40||o===38,a=t.isTyping();if(r&&e.altKey)e.preventDefault(),this.close();else if(!a&&(o===13||o===32)&&t.activeItem&&!rt(e))e.preventDefault(),t.activeItem._selectViaInteraction();else if(!a&&this._multiple&&o===65&&e.ctrlKey){e.preventDefault();let s=this.options.some(u=>!u.disabled&&!u.selected);this.options.forEach(u=>{u.disabled||(s?u.select():u.deselect())})}else{let s=t.activeItemIndex;t.onKeydown(e),this._multiple&&r&&e.shiftKey&&t.activeItem&&t.activeItemIndex!==s&&t.activeItem._selectViaInteraction()}}_handleOverlayKeydown(e){e.keyCode===27&&!rt(e)&&(e.preventDefault(),this.close())}_onFocus(){this.disabled||(this._focused=!0,this.stateChanges.next())}_onBlur(){this._focused=!1,this._keyManager?.cancelTypeahead(),!this.disabled&&!this.panelOpen&&(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())}_getPanelTheme(){return this._parentFormField?`mat-${this._parentFormField.color}`:""}get empty(){return!this._selectionModel||this._selectionModel.isEmpty()}_initializeSelection(){Promise.resolve().then(()=>{this.ngControl&&(this._value=this.ngControl.value),this._setSelectionByValue(this._value),this.stateChanges.next()})}_setSelectionByValue(e){if(this.options.forEach(t=>t.setInactiveStyles()),this._selectionModel.clear(),this.multiple&&e)Array.isArray(e),e.forEach(t=>this._selectOptionByValue(t)),this._sortValues();else{let t=this._selectOptionByValue(e);t?this._keyManager.updateActiveItem(t):this.panelOpen||this._keyManager.updateActiveItem(-1)}this._changeDetectorRef.markForCheck()}_selectOptionByValue(e){let t=this.options.find(o=>{if(this._selectionModel.isSelected(o))return!1;try{return(o.value!=null||this.canSelectNullableOptions)&&this._compareWith(o.value,e)}catch{return!1}});return t&&this._selectionModel.select(t),t}_assignValue(e){return e!==this._value||this._multiple&&Array.isArray(e)?(this.options&&this._setSelectionByValue(e),this._value=e,!0):!1}_skipPredicate=e=>this.panelOpen?!1:e.disabled;_getOverlayWidth(e){return this.panelWidth==="auto"?(e instanceof $r?e.elementRef:e||this._elementRef).nativeElement.getBoundingClientRect().width:this.panelWidth===null?"":this.panelWidth}_syncParentProperties(){if(this.options)for(let e of this.options)e._changeDetectorRef.markForCheck()}_initKeyManager(){this._keyManager=new Us(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withHomeAndEnd().withPageUpDown().withAllowedModifierKeys(["shiftKey"]).skipPredicate(this._skipPredicate),this._keyManager.tabOut.subscribe(()=>{this.panelOpen&&(!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction(),this.focus(),this.close())}),this._keyManager.change.subscribe(()=>{this._panelOpen&&this.panel?this._scrollOptionIntoView(this._keyManager.activeItemIndex||0):!this._panelOpen&&!this.multiple&&this._keyManager.activeItem&&this._keyManager.activeItem._selectViaInteraction()})}_resetOptions(){let e=Le(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(pe(e)).subscribe(t=>{this._onSelect(t.source,t.isUserInput),t.isUserInput&&!this.multiple&&this._panelOpen&&(this.close(),this.focus())}),Le(...this.options.map(t=>t._stateChanges)).pipe(pe(e)).subscribe(()=>{this._changeDetectorRef.detectChanges(),this.stateChanges.next()})}_onSelect(e,t){let o=this._selectionModel.isSelected(e);!this.canSelectNullableOptions&&e.value==null&&!this._multiple?(e.deselect(),this._selectionModel.clear(),this.value!=null&&this._propagateChanges(e.value)):(o!==e.selected&&(e.selected?this._selectionModel.select(e):this._selectionModel.deselect(e)),t&&this._keyManager.setActiveItem(e),this.multiple&&(this._sortValues(),t&&this.focus())),o!==this._selectionModel.isSelected(e)&&this._propagateChanges(),this.stateChanges.next()}_sortValues(){if(this.multiple){let e=this.options.toArray();this._selectionModel.sort((t,o)=>this.sortComparator?this.sortComparator(t,o,e):e.indexOf(t)-e.indexOf(o)),this.stateChanges.next()}}_propagateChanges(e){let t;this.multiple?t=this.selected.map(o=>o.value):t=this.selected?this.selected.value:e,this._value=t,this.valueChange.emit(t),this._onChange(t),this.selectionChange.emit(this._getChangeEvent(t)),this._changeDetectorRef.markForCheck()}_highlightCorrectOption(){if(this._keyManager)if(this.empty){let e=-1;for(let t=0;t0&&!!this._overlayDir}focus(e){this._elementRef.nativeElement.focus(e)}_getPanelAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||null,t=e?e+" ":"";return this.ariaLabelledby?t+this.ariaLabelledby:e}_getAriaActiveDescendant(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null}_getTriggerAriaLabelledby(){if(this.ariaLabel)return null;let e=this._parentFormField?.getLabelId()||"";return this.ariaLabelledby&&(e+=" "+this.ariaLabelledby),e||(e=this._valueId),e}setDescribedByIds(e){e.length?this._elementRef.nativeElement.setAttribute("aria-describedby",e.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focus(),this.open()}get shouldLabelFloat(){return this.panelOpen||!this.empty||this.focused&&!!this.placeholder}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-select"]],contentQueries:function(t,o,r){if(t&1&&(it(r,Ly,5),it(r,ko,5),it(r,Eu,5)),t&2){let a;ee(a=te())&&(o.customTrigger=a.first),ee(a=te())&&(o.options=a),ee(a=te())&&(o.optionGroups=a)}},viewQuery:function(t,o){if(t&1&&(ge(RE,5),ge(FE,5),ge(_d,5)),t&2){let r;ee(r=te())&&(o.trigger=r.first),ee(r=te())&&(o.panel=r.first),ee(r=te())&&(o._overlayDir=r.first)}},hostAttrs:["role","combobox","aria-haspopup","listbox",1,"mat-mdc-select"],hostVars:19,hostBindings:function(t,o){t&1&&b("keydown",function(a){return o._handleKeydown(a)})("focus",function(){return o._onFocus()})("blur",function(){return o._onBlur()}),t&2&&(Y("id",o.id)("tabindex",o.disabled?-1:o.tabIndex)("aria-controls",o.panelOpen?o.id+"-panel":null)("aria-expanded",o.panelOpen)("aria-label",o.ariaLabel||null)("aria-required",o.required.toString())("aria-disabled",o.disabled.toString())("aria-invalid",o.errorState)("aria-activedescendant",o._getAriaActiveDescendant()),j("mat-mdc-select-disabled",o.disabled)("mat-mdc-select-invalid",o.errorState)("mat-mdc-select-required",o.required)("mat-mdc-select-empty",o.empty)("mat-mdc-select-multiple",o.multiple))},inputs:{userAriaDescribedBy:[0,"aria-describedby","userAriaDescribedBy"],panelClass:"panelClass",disabled:[2,"disabled","disabled",X],disableRipple:[2,"disableRipple","disableRipple",X],tabIndex:[2,"tabIndex","tabIndex",e=>e==null?0:yi(e)],hideSingleSelectionIndicator:[2,"hideSingleSelectionIndicator","hideSingleSelectionIndicator",X],placeholder:"placeholder",required:[2,"required","required",X],multiple:[2,"multiple","multiple",X],disableOptionCentering:[2,"disableOptionCentering","disableOptionCentering",X],compareWith:"compareWith",value:"value",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:[2,"typeaheadDebounceInterval","typeaheadDebounceInterval",yi],sortComparator:"sortComparator",id:"id",panelWidth:"panelWidth",canSelectNullableOptions:[2,"canSelectNullableOptions","canSelectNullableOptions",X]},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Me([{provide:ir,useExisting:i},{provide:Su,useExisting:i}]),Oe],ngContentSelectors:LE,decls:11,vars:9,consts:[["fallbackOverlayOrigin","cdkOverlayOrigin","trigger",""],["panel",""],["cdk-overlay-origin","",1,"mat-mdc-select-trigger",3,"click"],[1,"mat-mdc-select-value"],[1,"mat-mdc-select-placeholder","mat-mdc-select-min-line"],[1,"mat-mdc-select-value-text"],[1,"mat-mdc-select-arrow-wrapper"],[1,"mat-mdc-select-arrow"],["viewBox","0 0 24 24","width","24px","height","24px","focusable","false","aria-hidden","true"],["d","M7 10l5 5 5-5z"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"detach","backdropClick","overlayKeydown","cdkConnectedOverlayDisableClose","cdkConnectedOverlayPanelClass","cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayPositions","cdkConnectedOverlayWidth","cdkConnectedOverlayFlexibleDimensions"],[1,"mat-mdc-select-min-line"],["role","listbox","tabindex","-1",3,"keydown","ngClass"]],template:function(t,o){if(t&1){let r=Q();Te(NE),l(0,"div",2,0),b("click",function(){return I(r),P(o.open())}),l(3,"div",3),w(4,VE,2,1,"span",4)(5,zE,3,1,"span",5),c(),l(6,"div",6)(7,"div",7),vt(),l(8,"svg",8),M(9,"path",9),c()()()(),w(10,UE,3,10,"ng-template",10),b("detach",function(){return I(r),P(o.close())})("backdropClick",function(){return I(r),P(o.close())})("overlayKeydown",function(s){return I(r),P(o._handleOverlayKeydown(s))})}if(t&2){let r=ft(1);m(3),Y("id",o._valueId),m(),C(o.empty?4:5),m(6),x("cdkConnectedOverlayDisableClose",!0)("cdkConnectedOverlayPanelClass",o._overlayPanelClass)("cdkConnectedOverlayScrollStrategy",o._scrollStrategy)("cdkConnectedOverlayOrigin",o._preferredOverlayOrigin||r)("cdkConnectedOverlayPositions",o._positions)("cdkConnectedOverlayWidth",o._overlayWidth)("cdkConnectedOverlayFlexibleDimensions",!0)}},dependencies:[$r,_d,ln],styles:[`@keyframes _mat-select-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-select-exit{from{opacity:1}to{opacity:0}}.mat-mdc-select{display:inline-block;width:100%;outline:none;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;color:var(--mat-select-enabled-trigger-text-color, var(--mat-sys-on-surface));font-family:var(--mat-select-trigger-text-font, var(--mat-sys-body-large-font));line-height:var(--mat-select-trigger-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mat-select-trigger-text-size, var(--mat-sys-body-large-size));font-weight:var(--mat-select-trigger-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mat-select-trigger-text-tracking, var(--mat-sys-body-large-tracking))}div.mat-mdc-select-panel{box-shadow:var(--mat-select-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12))}.mat-mdc-select-disabled{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-disabled .mat-mdc-select-placeholder{color:var(--mat-select-disabled-trigger-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-trigger{display:inline-flex;align-items:center;cursor:pointer;position:relative;box-sizing:border-box;width:100%}.mat-mdc-select-disabled .mat-mdc-select-trigger{-webkit-user-select:none;user-select:none;cursor:default}.mat-mdc-select-value{width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-mdc-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-mdc-select-arrow-wrapper{height:24px;flex-shrink:0;display:inline-flex;align-items:center}.mat-form-field-appearance-fill .mdc-text-field--no-label .mat-mdc-select-arrow-wrapper{transform:none}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-invalid .mat-mdc-select-arrow,.mat-form-field-invalid:not(.mat-form-field-disabled) .mat-mdc-form-field-infix::after{color:var(--mat-select-invalid-arrow-color, var(--mat-sys-error))}.mat-mdc-select-arrow{width:10px;height:5px;position:relative;color:var(--mat-select-enabled-arrow-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field.mat-focused .mat-mdc-select-arrow{color:var(--mat-select-focused-arrow-color, var(--mat-sys-primary))}.mat-mdc-form-field .mat-mdc-select.mat-mdc-select-disabled .mat-mdc-select-arrow{color:var(--mat-select-disabled-arrow-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-mdc-select-arrow svg{fill:currentColor;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}@media(forced-colors: active){.mat-mdc-select-arrow svg{fill:CanvasText}.mat-mdc-select-disabled .mat-mdc-select-arrow svg{fill:GrayText}}div.mat-mdc-select-panel{width:100%;max-height:275px;outline:0;overflow:auto;padding:8px 0;border-radius:4px;box-sizing:border-box;position:relative;background-color:var(--mat-select-panel-background-color, var(--mat-sys-surface-container))}@media(forced-colors: active){div.mat-mdc-select-panel{outline:solid 1px}}.cdk-overlay-pane:not(.mat-mdc-select-panel-above) div.mat-mdc-select-panel{border-top-left-radius:0;border-top-right-radius:0;transform-origin:top center}.mat-mdc-select-panel-above div.mat-mdc-select-panel{border-bottom-left-radius:0;border-bottom-right-radius:0;transform-origin:bottom center}.mat-select-panel-animations-enabled{animation:_mat-select-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-select-panel-animations-enabled.mat-select-panel-exit{animation:_mat-select-exit 100ms linear}.mat-mdc-select-placeholder{transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1);color:var(--mat-select-placeholder-text-color, var(--mat-sys-on-surface-variant))}.mat-mdc-form-field:not(.mat-form-field-animations-enabled) .mat-mdc-select-placeholder,._mat-animation-noopable .mat-mdc-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-mdc-select-placeholder{color:rgba(0,0,0,0);-webkit-text-fill-color:rgba(0,0,0,0);transition:none;display:block}.mat-mdc-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-mdc-text-field-wrapper{cursor:pointer}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mat-mdc-floating-label{max-width:calc(100% - 18px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-fill .mdc-floating-label--float-above{max-width:calc(100%/0.75 - 24px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mat-mdc-form-field-type-mat-select.mat-form-field-appearance-outline .mdc-text-field--label-floating .mdc-notched-outline__notch{max-width:calc(100% - 24px)}.mat-mdc-select-min-line:empty::before{content:" ";white-space:pre;width:1px;display:inline-block;visibility:hidden}.mat-form-field-appearance-fill .mat-mdc-select-arrow-wrapper{transform:var(--mat-select-arrow-transform, translateY(-8px))} -`],encapsulation:2,changeDetection:0})}return i})();var kl=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({providers:[Ny],imports:[Qt,tf,se,Ht,It,tf,se]})}return i})();var Sl=class{static{this.Irregular=new Map([["person","people"],["man","men"],["woman","women"],["child","children"],["tooth","teeth"],["foot","feet"],["mouse","mice"],["goose","geese"],["ox","oxen"],["louse","lice"],["die","dice"],["index","indices"],["appendix","appendices"],["cactus","cacti"],["focus","foci"],["fungus","fungi"],["nucleus","nuclei"],["radius","radii"],["stimulus","stimuli"],["analysis","analyses"],["thesis","theses"],["crisis","crises"],["phenomenon","phenomena"],["criterion","criteria"],["datum","data"]])}static{this.Uncountables=new Set(["sheep","fish","deer","series","species","money","rice","information","equipment","knowledge","traffic","baggage","furniture","advice"])}static{this.F_Exceptions=new Set(["roof","belief","chef","chief","proof","safe"])}static{this.O_Es_Exceptions=new Set(["hero","echo","potato","tomato","torpedo","veto"])}static pluralizeEN(n){if(!n||!n.trim())return n;let e=n.toLowerCase();return this.Uncountables.has(e)?n:this.Irregular.has(e)?this.matchCase(n,this.Irregular.get(e)):/(s|x|z|ch|sh)$/.test(e)?this.matchCase(n,n+"es"):/[^aeiou]y$/.test(e)?this.matchCase(n,this.takeCharsFromEnd(n,1)+"ies"):e.endsWith("y")?this.matchCase(n,n+"s"):e.endsWith("fe")?this.F_Exceptions.has(e)?this.matchCase(n,n+"s"):this.matchCase(n,this.takeCharsFromEnd(n,2)+"ves"):e.endsWith("f")?this.F_Exceptions.has(e)?this.matchCase(n,n+"s"):this.matchCase(n,this.takeCharsFromEnd(n,1)+"ves"):e.endsWith("o")?this.O_Es_Exceptions.has(e)?this.matchCase(n,n+"es"):this.matchCase(n,n+"s"):e.endsWith("is")?this.matchCase(n,this.takeCharsFromEnd(n,2)+"es"):this.matchCase(n,n+"s")}static matchCase(n,e){return n?this.isAllUpper(n)?e.toUpperCase():this.isCapitalized(n)?e.charAt(0).toUpperCase()+e.slice(1):e:e}static takeCharsFromEnd(n,e){return n.substring(0,n.length-e)}static isAllUpper(n){return[...n].every(e=>!/[a-z]/.test(e)||e===e.toUpperCase())}static isCapitalized(n){return n.length>1&&n[0]===n[0].toUpperCase()&&n[1]===n[1].toLowerCase()}};var of=(h=>(h[h.String=0]="String",h[h.Number=1]="Number",h[h.Date=2]="Date",h[h.Dropdown=3]="Dropdown",h[h.Relation=4]="Relation",h[h.Media=5]="Media",h[h.Link=6]="Link",h[h.Checkbox=7]="Checkbox",h[h.DateTime=8]="DateTime",h))(of||{});var Be="/api/";var Au=class i{constructor(n){this.http=n}getEnums(){return this.http.get(`${Be}enums/getAll`).pipe(A(n=>{let e={};for(let t in n){let o=n[t];e[t]=Object.keys(o).map(r=>({name:r,value:o[r]}))}return e}))}static{this.\u0275fac=function(e){return new(e||i)(N(si))}}static{this.\u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}};var Un=class i{constructor(n){this.http=n}getAllEnums(){return this.http.get(`${Be}enum-manager/getAll`).pipe(A(n=>{let e={};for(let t in n)e[t]=Object.keys(n[t]).map(o=>({name:o,value:n[t][o]}));return e}))}getEnum(n){return this.http.get(`${Be}enum-manager/${n}`)}createEnum(n,e){let t={name:n,values:e};return this.http.post(`${Be}enum-manager`,t)}updateEnum(n,e){let t={values:e};return this.http.put(`${Be}enum-manager/${n}`,t)}deleteEnum(n){return this.http.delete(`${Be}enum-manager/${n}`)}static{this.\u0275fac=function(e){return new(e||i)(N(si))}}static{this.\u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}};function GE(i,n){if(i&1){let e=Q();l(0,"div",11),b("click",function(){let o=I(e).$implicit,r=f();return P(r.selectFieldType(o.type))})("keydown.enter",function(){let o=I(e).$implicit,r=f();return P(r.selectFieldType(o.type))}),l(1,"mat-icon",12),p(2),c(),l(3,"div",13),p(4),c(),l(5,"div",14),p(6),c()()}if(i&2){let e=n.$implicit,t=f();j("selected",t.selectedFieldTypeId===e.type),Y("aria-selected",t.selectedFieldTypeId===e.type),m(2),U(" ",e.icon," "),m(2),$(e.label),m(2),$(e.description)}}function WE(i,n){i&1&&(l(0,"mat-error"),p(1," Field name is required"),c())}function YE(i,n){i&1&&(l(0,"mat-error"),p(1," Field name cannot exceed 50 characters"),c())}function qE(i,n){i&1&&(l(0,"mat-error"),p(1," Field name format is invalid"),c())}function KE(i,n){i&1&&(l(0,"mat-error"),p(1," Field name is a reserved C# keyword"),c())}function ZE(i,n){if(i&1&&(l(0,"mat-error"),p(1),c()),i&2){let e,t=f(2);m(),U(" The current collection already has a field with the name ",(e=t.fieldForm.get("fieldName"))==null?null:e.value,"")}}function QE(i,n){i&1&&(l(0,"mat-error"),p(1," Field name must be different than the model"),c())}function XE(i,n){i&1&&(l(0,"mat-error"),p(1,"Invalid regex"),c())}function JE(i,n){if(i&1&&(l(0,"mat-form-field",16)(1,"mat-label"),p(2,"Regex Pattern*"),c(),M(3,"input",22),w(4,XE,2,0,"mat-error"),c()),i&2){let e,t=f(2);m(4),C((e=t.fieldForm.get("regex"))!=null&&e.hasError("invalidRegex")&&((e=t.fieldForm.get("regex"))!=null&&e.touched)?4:-1)}}function eO(i,n){i&1&&(l(0,"div",20)(1,"mat-checkbox",23),p(2,"Indexed field"),c(),l(3,"small"),p(4,"This field will be indexed for faster searches"),c()())}function tO(i,n){i&1&&(l(0,"div",21)(1,"mat-checkbox",24),p(2,"No past dates"),c(),l(3,"small"),p(4,"Prevents selection of dates before today"),c()())}function iO(i,n){if(i&1&&(l(0,"h3",5),p(1,"2. Field settings"),c(),l(2,"div",15)(3,"mat-form-field",16)(4,"mat-label"),p(5,"Field name"),c(),M(6,"input",17),w(7,WE,2,0,"mat-error")(8,YE,2,0,"mat-error")(9,qE,2,0,"mat-error")(10,KE,2,0,"mat-error")(11,ZE,2,1,"mat-error")(12,QE,2,0,"mat-error"),c(),w(13,JE,5,1,"mat-form-field",16),c(),l(14,"div",18)(15,"mat-checkbox",19),p(16,"Required field"),c(),l(17,"small"),p(18,"You will not be able to create an entry if this field is empty"),c()(),w(19,eO,5,0,"div",20)(20,tO,5,0,"div",21)),i&2){let e,t,o,r,a,s,u=f();m(7),C((e=u.fieldForm.get("fieldName"))!=null&&e.hasError("required")&&((e=u.fieldForm.get("fieldName"))!=null&&e.touched)?7:-1),m(),C((t=u.fieldForm.get("fieldName"))!=null&&t.hasError("maxlength")?8:-1),m(),C((o=u.fieldForm.get("fieldName"))!=null&&o.hasError("invalidPascalCase")?9:-1),m(),C((r=u.fieldForm.get("fieldName"))!=null&&r.hasError("reservedKeyword")?10:-1),m(),C((a=u.fieldForm.get("fieldName"))!=null&&a.hasError("fieldNameIsTaken")?11:-1),m(),C((s=u.fieldForm.get("fieldName"))!=null&&s.hasError("fieldNameSameAsModel")?12:-1),m(),C(u.selectedFieldTypeId===u.fieldTypeEnum.String?13:-1),m(6),C(u.selectedFieldTypeId===u.fieldTypeEnum.Media||u.selectedFieldTypeId===u.fieldTypeEnum.Link||u.selectedFieldTypeId===u.fieldTypeEnum.Checkbox?-1:19),m(),C(u.selectedFieldTypeId===u.fieldTypeEnum.Date||u.selectedFieldTypeId===u.fieldTypeEnum.DateTime?20:-1)}}function nO(i,n){if(i&1&&(l(0,"mat-option",28),p(1),c()),i&2){let e=n.$implicit;x("value",e),m(),$(e)}}function oO(i,n){i&1&&(l(0,"mat-error"),p(1," Field name is required "),c())}function rO(i,n){i&1&&(l(0,"mat-error"),p(1," Field name cannot exceed 50 characters "),c())}function aO(i,n){if(i&1&&(l(0,"h3",5),p(1,"2. Dropdown settings"),c(),l(2,"div",25)(3,"mat-form-field",26)(4,"mat-label"),p(5,"Select Enum Type"),c(),l(6,"mat-select",27),de(7,nO,2,2,"mat-option",28,Qe),c()(),l(9,"mat-form-field",16)(10,"mat-label"),p(11,"Field name"),c(),M(12,"input",17),w(13,oO,2,0,"mat-error")(14,rO,2,0,"mat-error"),c()()),i&2){let e,t,o=f();m(7),ue(o.availableEnums),m(6),C((e=o.fieldForm.get("fieldName"))!=null&&e.hasError("required")?13:-1),m(),C((t=o.fieldForm.get("fieldName"))!=null&&t.hasError("maxlength")?14:-1)}}function sO(i,n){if(i&1&&p(0),i&2){let e=f(2);U(" ",e.relationTypes[e.selectedRelationTypeIndex].description," ")}}function lO(i,n){i&1&&p(0," Select a relation type ")}function cO(i,n){if(i&1&&(l(0,"mat-option",28),p(1),c()),i&2){let e=n.$implicit;x("value",e.value),m(),$(e.label)}}function dO(i,n){i&1&&(l(0,"mat-error"),p(1," Related model is required "),c())}function uO(i,n){if(i&1){let e=Q();l(0,"h3",5),p(1),c(),l(2,"div",29)(3,"div",25)(4,"div",30),p(5),c(),l(6,"mat-form-field",31)(7,"mat-label"),p(8,"Relation name*"),c(),M(9,"input",32),c()(),l(10,"div",33)(11,"div",34)(12,"div",35),b("click",function(){I(e);let o=f();return P(o.selectRelationType(1))}),vt(),l(13,"svg",36),M(14,"path",37),c()(),gi(),l(15,"div",38),b("click",function(){I(e);let o=f();return P(o.selectRelationType(3))}),vt(),l(16,"svg",36),M(17,"path",39),c()(),gi(),l(18,"div",40),b("click",function(){I(e);let o=f();return P(o.selectRelationType(2))}),vt(),l(19,"svg",36),M(20,"path",41),c()(),gi(),l(21,"div",42),b("click",function(){I(e);let o=f();return P(o.selectRelationType(0))}),vt(),l(22,"svg",36),M(23,"path",43),c()()(),gi(),l(24,"div",44),w(25,sO,1,1)(26,lO,1,0),c()(),l(27,"div",25)(28,"mat-form-field",26)(29,"mat-label"),p(30,"Related Model"),c(),l(31,"mat-select",27),de(32,cO,2,2,"mat-option",28,Qe),c(),w(34,dO,2,0,"mat-error"),c(),l(35,"mat-form-field",31)(36,"mat-label"),p(37,"Relation name"),c(),M(38,"input",45),c()()()}if(i&2){let e,t=f();m(),U("2. Configure Relationship with ",t.selectedType,""),m(4),$(t.selectedType),m(4),x("placeholder",t.selectedType),m(3),j("selected",t.selectedRelationTypeIndex===1),m(2),Y("stroke",t.selectedRelationTypeIndex===1?"#AC99EA":"#FFFFFF"),m(),j("selected",t.selectedRelationTypeIndex===3),m(2),Y("stroke",t.selectedRelationTypeIndex===3?"#AC99EA":"#FFFFFF"),m(),j("selected",t.selectedRelationTypeIndex===2),m(2),Y("stroke",t.selectedRelationTypeIndex===2?"#AC99EA":"#FFFFFF"),m(),j("selected",t.selectedRelationTypeIndex===0),m(2),Y("stroke",t.selectedRelationTypeIndex===0?"#AC99EA":"#FFFFFF"),m(2),C(t.selectedRelationTypeIndex!==null?25:26),m(7),ue(t.availableModels),m(2),C((e=t.fieldForm.get("relatedModel"))!=null&&e.hasError("required")?34:-1)}}var Pu=class i{constructor(n,e,t,o,r,a){this.dialogRef=n;this.fb=e;this.enumsService=t;this.enumManagementService=o;this.data=r;this.store=a;this.selectedType$=this.store.select(ut);this.selectedTypeFields$=this.store.select(ru);this.selectedType="";this.selectedRelationTypeIndex=null;this.selectedRelationType="ManyToMany";this.relationTypeMap={0:"ManyToMany",1:"OneToMany",2:"ManyToOne",3:"OneToOne"};this.availableModels=[];this.availableEnums=[];this.selectedEnum="";this.fieldTypes=[{type:0,icon:"Aa",label:"Text",description:"For single or multi-line text input",value:"text",netType:"string"},{type:1,icon:"123",label:"Number",description:"For numerical values and calculations",value:"number",netType:"int"},{type:2,icon:"calendar_today",label:"Date",description:"For selecting dates",value:"date",netType:"DateOnly"},{type:5,icon:"perm_media",label:"Media",description:"For uploading images or videos",value:"media",netType:"MediaInfo"},{type:6,icon:"link",label:"Link",description:"For website URLs or references",value:"link",netType:"string"},{type:3,icon:"list",label:"Dropdown",description:"For selecting from predefined options(Enumerations)",value:"dropdown",netType:this.selectedEnum??"Enum"},{type:7,icon:"check_box",label:"Checkbox",description:"For yes/no or true/false values",value:"checkbox",netType:"bool"},{type:8,icon:"today",label:"DateTime",description:"For date and time values together",value:"datetime",netType:"DateTime"},{type:4,icon:"leak_remove",label:"Relation",description:"Create relation between models",value:"relation",netType:this.selectedRelationType},{type:1,icon:"123",label:"Decimal Number",description:"For decimal numerical values and calculations",value:"float",netType:"float"}];this.subscription=new ie;this.relatedTo="";this.fieldForm=this.fb.group({fieldName:["",[me.required,me.maxLength(50)]],requiredField:[!1],relatedModel:[""],relatedRelationName:[""],hasIndex:[!1],noPastDates:[!1]});this.selectedFieldTypeId=null;this.fieldTypeEnum=of;this.collectionTypes$=this.store.select(zn);this.relationTypes=[];this.fieldForm=this.fb.group({fieldName:["",{validators:[me.required,me.maxLength(50),Si.pascalCase,Si.reservedKeyword,Si.collectionNameIsTaken],asyncValidators:[Si.fieldNameIsTaken(this.selectedTypeFields$)]}],requiredField:[!1],relatedModel:[""],relatedRelationName:[""],regex:["",[Si.validRegex]],hasIndex:[!1],noPastDates:[!1]})}ngOnDestroy(){this.subscription.unsubscribe()}ngOnInit(){pr({generatedEnums:this.enumsService.getEnums(),userCreatedEnums:this.enumManagementService.getAllEnums()}).subscribe({next:n=>{let e=Object.keys(n.generatedEnums||{}),t=Object.keys(n.userCreatedEnums||{}),o=[...e,...t];this.availableEnums=[...new Set(o)].sort()},error:n=>{console.error("Failed to load enums:",n),this.enumsService.getEnums().subscribe({next:e=>{this.availableEnums=Object.keys(e||{})},error:e=>{console.error("Fallback enum loading failed:",e),this.availableEnums=[]}})}}),this.fieldForm.get("relatedModel")?.valueChanges.subscribe(n=>{this.selectedEnum=n}),this.subscription.add(this.collectionTypes$.subscribe(n=>this.availableModels=n.filter(e=>e!=this.selectedType).map(e=>({label:e,value:e})))),this.subscription.add(this.fieldForm.get("relatedModel")?.valueChanges.subscribe(n=>{this.updateRelationTypes(n)})),this.subscription.add(this.selectedType$.subscribe(n=>{this.availableModels=this.availableModels.filter(e=>e.value!=n).map(e=>({label:e.label,value:e.value})),this.selectedType=n,this.updateRelationTypes()})),this.fieldForm.get("fieldName")?.addValidators(Si.fieldNameSameAsModel(this.selectedType)),this.fieldForm.get("relatedModel")?.setValidators([me.required]),this.updateRelationTypes()}updateRelationTypes(n){let e=n||"/";this.relatedTo=n;let t=Sl.pluralizeEN(this.selectedType),o=Sl.pluralizeEN(e);this.relationTypes=[{label:"Many-to-many",description:`Many ${t} can relate to many ${o}`,value:"many-to-many"},{label:"One-to-many",description:`One ${this.selectedType} can relate to many ${o}`,value:"one-to-many"},{label:"Many-to-one",description:`Many ${t} can relate to one ${e}`,value:"many-to-one"},{label:"One-to-one",description:`One ${this.selectedType} relates to one ${e}`,value:"one-to-one"}]}selectRelationType(n){this.selectedRelationTypeIndex=n,this.selectedRelationType=this.relationTypeMap[n]}selectFieldType(n){this.selectedFieldTypeId=n,n===this.fieldTypeEnum.Relation?(this.fieldForm.get("relatedModel")?.setValidators([me.required]),this.fieldForm.get("relatedRelationName")?.setValidators([me.required])):(this.fieldForm.get("relatedModel")?.clearValidators(),this.fieldForm.get("relatedRelationName")?.clearValidators()),this.fieldForm.get("relatedModel")?.updateValueAndValidity(),this.fieldForm.get("relatedRelationName")?.updateValueAndValidity(),this.selectedRelationTypeIndex=null}onAddField(){if(!this.fieldForm.valid||this.selectedFieldTypeId===null){this.fieldForm.markAllAsTouched();return}let n=this.fieldTypes.find(t=>t.type.toString()===this.selectedFieldTypeId?.toString());if(!n)return;n.type===this.fieldTypeEnum.Relation&&this.selectedRelationTypeIndex!==null&&(n.netType=this.relationTypeMap[this.selectedRelationTypeIndex]);let e={fieldName:this.fieldForm.value.fieldName,fieldType:n.netType,relatedTo:this.relatedTo,isRequired:this.fieldForm.value.requiredField,relatedRelationName:this.fieldForm.value.relatedRelationName,regex:this.fieldForm.value.regex,hasIndex:this.fieldForm.value.hasIndex,noPastDates:this.fieldForm.value.noPastDates};this.selectedFieldTypeId===this.fieldTypeEnum.Dropdown&&(e.fieldType=this.selectedEnum),this.store.dispatch(Kd({field:e})),this.dialogRef.close()}onClose(){this.dialogRef.close()}get canSubmit(){return this.selectedFieldTypeId===this.fieldTypeEnum.Relation?this.selectedRelationTypeIndex!==null:this.fieldForm.get("fieldName")?.valid}static{this.\u0275fac=function(e){return new(e||i)(k(Dt),k(mi),k(Au),k(Un),k(ci),k(he))}}static{this.\u0275cmp=E({type:i,selectors:[["app-add-field-dialog"]],decls:21,vars:5,consts:[[1,"add-field-dialog-container"],[1,"dialog-header"],["mat-icon-button","","aria-label","Close dialog",3,"click"],[1,"dialog-content"],[3,"formGroup"],[1,"section-title"],[1,"field-type-grid-wrapper"],[1,"field-type-grid"],["role","option","tabindex","0",1,"box",3,"selected"],[1,"dialog-footer"],["mat-flat-button","",1,"add-field-button",3,"click","disabled"],["role","option","tabindex","0",1,"box",3,"click","keydown.enter"],[1,"field-type-box"],[1,"label"],[1,"description"],[1,"field-settings-row"],["appearance","outline",1,"input-field"],["matInput","","formControlName","fieldName","placeholder","Enter field name"],[1,"required-field"],["formControlName","requiredField"],[1,"index-field"],[1,"no-past-dates-field"],["matInput","","formControlName","regex","placeholder","Enter regex pattern"],["formControlName","hasIndex"],["formControlName","noPastDates"],[1,"model-box"],["appearance","outline",1,"model-select"],["formControlName","relatedModel"],[3,"value"],[1,"relationship-config"],[1,"model-title"],["appearance","outline",1,"relation-name-input"],["matInput","","formControlName","fieldName",3,"placeholder"],[1,"center-section"],[1,"relation-icons-row"],["title","One-to-Many",1,"relation-icon-item",3,"click"],["width","24","height","24","viewBox","0 0 24 24","fill","none"],["d","M4.80769 16.6154V13.5385C4.80769 13.1136 5.15209 12.7692 5.57693 12.7692H12.5M12.5 12.7692H19.4231C19.8479 12.7692 20.1923 13.1136 20.1923 13.5385V16.6154M12.5 12.7692V7.38462M12.5 12.7692V16.6154M10.9615 7.38462H14.0385C14.4633 7.38462 14.8077 7.04022 14.8077 6.61538V3.53846C14.8077 3.11362 14.4633 2.76923 14.0385 2.76923H10.9615C10.5367 2.76923 10.1923 3.11362 10.1923 3.53846V6.61538C10.1923 7.04022 10.5367 7.38462 10.9615 7.38462ZM3.26923 21.2308H6.34616C6.77099 21.2308 7.11539 20.8864 7.11539 20.4616V17.3846C7.11539 16.9598 6.77099 16.6154 6.34616 16.6154H3.26923C2.8444 16.6154 2.5 16.9598 2.5 17.3846V20.4616C2.5 20.8864 2.8444 21.2308 3.26923 21.2308ZM10.9615 21.2308H14.0385C14.4633 21.2308 14.8077 20.8864 14.8077 20.4616V17.3846C14.8077 16.9598 14.4633 16.6154 14.0385 16.6154H10.9615C10.5367 16.6154 10.1923 16.9598 10.1923 17.3846V20.4616C10.1923 20.8864 10.5367 21.2308 10.9615 21.2308ZM18.6539 21.2308H21.7308C22.1556 21.2308 22.5 20.8864 22.5 20.4616V17.3846C22.5 16.9598 22.1556 16.6154 21.7308 16.6154H18.6539C18.229 16.6154 17.8846 16.9598 17.8846 17.3846V20.4616C17.8846 20.8864 18.229 21.2308 18.6539 21.2308Z","stroke-width","1.5"],["title","One-to-One",1,"relation-icon-item",3,"click"],["d","M12.5001 7.38462V16.6154M10.9616 7.38462H14.0385C14.4634 7.38462 14.8078 7.04022 14.8078 6.61538V3.53846C14.8078 3.11362 14.4634 2.76923 14.0385 2.76923H10.9616C10.5368 2.76923 10.1924 3.11362 10.1924 3.53846V6.61538C10.1924 7.04022 10.5368 7.38462 10.9616 7.38462ZM10.9616 21.2308H14.0385C14.4634 21.2308 14.8078 20.8864 14.8078 20.4616V17.3846C14.8078 16.9598 14.4634 16.6154 14.0385 16.6154H10.9616C10.5368 16.6154 10.1924 16.9598 10.1924 17.3846V20.4616C10.1924 20.8864 10.5368 21.2308 10.9616 21.2308Z","stroke-width","1.5"],["title","Many-to-One",1,"relation-icon-item",3,"click"],["d","M4.80769 7.3846V10.4615C4.80769 10.8864 5.15209 11.2308 5.57693 11.2308H12.5M12.5 11.2308H19.4231C19.8479 11.2308 20.1923 10.8864 20.1923 10.4615V7.3846M12.5 11.2308V16.6154M12.5 11.2308V7.3846M10.9615 16.6154H14.0385C14.4633 16.6154 14.8077 16.9598 14.8077 17.3846V20.4615C14.8077 20.8864 14.4633 21.2308 14.0385 21.2308H10.9615C10.5367 21.2308 10.1923 20.8864 10.1923 20.4615V17.3846C10.1923 16.9598 10.5367 16.6154 10.9615 16.6154ZM3.26923 2.76922H6.34616C6.77099 2.76922 7.11539 3.11361 7.11539 3.53845V6.61537C7.11539 7.04021 6.77099 7.3846 6.34616 7.3846H3.26923C2.8444 7.3846 2.5 7.04021 2.5 6.61537V3.53845C2.5 3.11361 2.8444 2.76922 3.26923 2.76922ZM10.9615 2.76922H14.0385C14.4633 2.76922 14.8077 3.11361 14.8077 3.53845V6.61537C14.8077 7.04021 14.4633 7.3846 14.0385 7.3846H10.9615C10.5367 7.3846 10.1923 7.04021 10.1923 6.61537V3.53845C10.1923 3.11361 10.5367 2.76922 10.9615 2.76922ZM18.6539 2.76922H21.7308C22.1556 2.76922 22.5 3.11361 22.5 3.53845V6.61537C22.5 7.04021 22.1556 7.3846 21.7308 7.3846H18.6539C18.229 7.3846 17.8846 7.04021 17.8846 6.61537V3.53845C17.8846 3.11361 18.229 2.76922 18.6539 2.76922Z","stroke-width","1.5"],["title","Many-to-Many",1,"relation-icon-item",3,"click"],["d","M4.80769 15.8461V12.7691C4.80769 12.3443 5.15209 11.9999 5.57693 11.9999M5.57693 11.9999H12.5M5.57693 11.9999C5.15209 11.9999 4.80769 11.6555 4.80769 11.2307V8.15375M12.5 11.9999H19.4231M12.5 11.9999V7.76913M12.5 11.9999V15.0768M12.5 11.9999V15.8461M12.5 11.9999V8.15375M19.4231 11.9999C19.8479 11.9999 20.1923 12.3443 20.1923 12.7691V15.8461M19.4231 11.9999C19.8479 11.9999 20.1923 11.6555 20.1923 11.2307V8.15375M10.9615 8.15375H14.0385C14.4633 8.15375 14.8077 7.80935 14.8077 7.38452V4.30759C14.8077 3.88276 14.4633 3.53836 14.0385 3.53836H10.9615C10.5367 3.53836 10.1923 3.88276 10.1923 4.30759V7.38452C10.1923 7.80935 10.5367 8.15375 10.9615 8.15375ZM3.26923 20.4615H6.34616C6.77099 20.4615 7.11539 20.1171 7.11539 19.6922V16.6153C7.11539 16.1905 6.77099 15.8461 6.34616 15.8461H3.26923C2.8444 15.8461 2.5 16.1905 2.5 16.6153V19.6922C2.5 20.1171 2.8444 20.4615 3.26923 20.4615ZM3.26923 8.15375H6.34616C6.77099 8.15375 7.11539 7.80935 7.11539 7.38452V4.30759C7.11539 3.88276 6.77099 3.53836 6.34616 3.53836H3.26923C2.8444 3.53836 2.5 3.88276 2.5 4.30759V7.38452C2.5 7.80935 2.8444 8.15375 3.26923 8.15375ZM10.9615 20.4615H14.0385C14.4633 20.4615 14.8077 20.1171 14.8077 19.6922V16.6153C14.8077 16.1905 14.4633 15.8461 14.0385 15.8461H10.9615C10.5367 15.8461 10.1923 16.1905 10.1923 16.6153V19.6922C10.1923 20.1171 10.5367 20.4615 10.9615 20.4615ZM18.6539 20.4615H21.7308C22.1556 20.4615 22.5 20.1171 22.5 19.6922V16.6153C22.5 16.1905 22.1556 15.8461 21.7308 15.8461H18.6539C18.229 15.8461 17.8846 16.1905 17.8846 16.6153V19.6922C17.8846 20.1171 18.229 20.4615 18.6539 20.4615ZM18.6539 8.15375H21.7308C22.1556 8.15375 22.5 7.80935 22.5 7.38452V4.30759C22.5 3.88276 22.1556 3.53836 21.7308 3.53836H18.6539C18.229 3.53836 17.8846 3.88276 17.8846 4.30759V7.38452C17.8846 7.80935 18.229 8.15375 18.6539 8.15375Z","stroke-width","1.5"],[1,"relation-description"],["matInput","","formControlName","relatedRelationName","placeholder","Related model"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"div",1)(2,"h2"),p(3,"Add new field"),c(),l(4,"button",2),b("click",function(){return t.onClose()}),l(5,"mat-icon"),p(6,"close"),c()()(),l(7,"div",3)(8,"form",4)(9,"h3",5),p(10,"1. Select field type"),c(),l(11,"div",6)(12,"div",7),de(13,GE,7,6,"div",8,Qe),c()(),w(15,iO,21,9)(16,aO,15,2)(17,uO,39,17),c()(),l(18,"div",9)(19,"button",10),b("click",function(){return t.onAddField()}),p(20," Add new field "),c()()()),e&2&&(m(8),x("formGroup",t.fieldForm),m(5),ue(t.fieldTypes),m(2),C(t.selectedFieldTypeId!==null&&t.selectedFieldTypeId!==t.fieldTypeEnum.Relation&&t.selectedFieldTypeId!==t.fieldTypeEnum.Dropdown?15:-1),m(),C(t.selectedFieldTypeId===t.fieldTypeEnum.Dropdown?16:-1),m(),C(t.selectedFieldTypeId===t.fieldTypeEnum.Relation?17:-1),m(2),x("disabled",!t.canSubmit))},dependencies:[Vt,It,fn,Xt,hn,kl,Ml,ko,Ki,qi,Gi,Vn,ke,Xe,Ze,fe,Ce,pi,ui,Mt,Pt,di,hi,bt,ki,Ae],styles:['[_nghost-%COMP%]{max-height:100vh;overflow:hidden}.add-field-dialog-container[_ngcontent-%COMP%]{background-color:#1e1e1e;color:#fff;border-radius:8px;padding:10px;min-width:500px;max-width:90vw;overflow:hidden;display:flex;flex-direction:column;max-height:90vh} .mat-mdc-select-min-line{color:#fff!important}.dialog-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:16px 24px;position:sticky;top:0;z-index:10;background-color:#1e1e1e;border-top-left-radius:8px;border-top-right-radius:8px}.dialog-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:18px;font-weight:500}.dialog-header[_ngcontent-%COMP%] button[mat-icon-button][_ngcontent-%COMP%]{color:#fff;background-color:transparent}.dialog-header[_ngcontent-%COMP%] button[mat-icon-button][_ngcontent-%COMP%]:hover{background-color:#fff3}.dialog-header[_ngcontent-%COMP%] button[mat-icon-button][_ngcontent-%COMP%]:not(:focus-visible){outline:none}.dialog-content[_ngcontent-%COMP%]{padding:16px 24px;flex:1;overflow-y:auto}.dialog-content[_ngcontent-%COMP%] .section-title[_ngcontent-%COMP%]{font-size:14px;color:#fff}.dialog-content[_ngcontent-%COMP%] .input-field[_ngcontent-%COMP%]{width:100%}.dialog-content[_ngcontent-%COMP%] .field-type-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:24px}.dialog-content[_ngcontent-%COMP%] .field-type-grid[_ngcontent-%COMP%] .field-type-box[_ngcontent-%COMP%]{width:100%;background-color:#d5ccf529;border:1px solid rgba(213,204,245,.5);border-radius:8px;text-align:center;cursor:pointer;transition:background .2s;color:#ac99ea;font-size:28px;height:40px;display:flex;align-items:center;justify-content:center}.dialog-content[_ngcontent-%COMP%] .field-type-grid-wrapper[_ngcontent-%COMP%]{max-height:220px;overflow-y:auto;margin-bottom:24px;scrollbar-width:thin}.dialog-content[_ngcontent-%COMP%] .required-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:24px;margin-top:16px}.dialog-content[_ngcontent-%COMP%] .required-field[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{color:#ac99ea;margin-bottom:4px}.dialog-content[_ngcontent-%COMP%] .required-field[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:12px;color:#ffffffb3;margin-left:24px}.dialog-content[_ngcontent-%COMP%] .index-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:24px;margin-top:16px}.dialog-content[_ngcontent-%COMP%] .index-field[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{color:#ac99ea;margin-bottom:4px}.dialog-content[_ngcontent-%COMP%] .index-field[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:12px;color:#ffffffb3;margin-left:24px}.dialog-content[_ngcontent-%COMP%] .no-past-dates-field[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:24px;margin-top:16px}.dialog-content[_ngcontent-%COMP%] .no-past-dates-field[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{color:#ac99ea;margin-bottom:4px}.dialog-content[_ngcontent-%COMP%] .no-past-dates-field[_ngcontent-%COMP%] small[_ngcontent-%COMP%]{font-size:12px;color:#ffffffb3;margin-left:24px}.dialog-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding:16px 24px;border-top:1px solid rgba(255,255,255,.12)}.dialog-footer[_ngcontent-%COMP%] .add-field-button[_ngcontent-%COMP%]{background-color:#ac99ea;color:#212121;font-weight:500;text-transform:none;transition:all .2s ease}.dialog-footer[_ngcontent-%COMP%] .add-field-button[_ngcontent-%COMP%]:hover{background-color:#bdaeee}.dialog-footer[_ngcontent-%COMP%] .add-field-button[disabled][_ngcontent-%COMP%]{background-color:#ac99ea80;cursor:not-allowed}.box[_ngcontent-%COMP%]{max-width:100%;overflow:hidden;display:flex;flex-direction:column;padding:12px;align-items:center;border:1px solid rgba(255,255,255,.12);background-color:#232323;cursor:pointer;transition:all .2s ease;position:relative;border-radius:6px}.box[_ngcontent-%COMP%]:hover{background-color:#fff3}.box.selected[_ngcontent-%COMP%]{background-color:#d5ccf529;border:1px solid #ac99ea;box-shadow:0 0 0 1px #ac99ea}.box[_ngcontent-%COMP%]:focus, .box[_ngcontent-%COMP%]:focus-visible{outline:none;background-color:#d5ccf529;border:1px solid #ac99ea;box-shadow:0 0 0 2px #ac99ea}.box[_ngcontent-%COMP%] .selected-indicator[_ngcontent-%COMP%]{position:absolute;top:5px;right:5px;width:8px;height:8px;border-radius:50%;background-color:#ac99ea}.label[_ngcontent-%COMP%]{color:#fff;margin:6px 0 4px;font-weight:500}.description[_ngcontent-%COMP%]{font-size:12px;color:#ffffffb3;text-align:center;line-height:1.4}.relationship-config[_ngcontent-%COMP%]{display:flex;align-items:stretch;gap:0;margin-top:24px;position:relative}.relationship-config[_ngcontent-%COMP%] .model-box[_ngcontent-%COMP%]{flex:1;background-color:#232323;border:1px solid rgba(255,255,255,.12);border-radius:8px;padding:20px;display:flex;flex-direction:column;position:relative}.relationship-config[_ngcontent-%COMP%] .model-box[_ngcontent-%COMP%] .model-title[_ngcontent-%COMP%]{font-size:14px;font-weight:500;color:#fff;margin-bottom:16px;text-align:center;padding:8px 0}.relationship-config[_ngcontent-%COMP%] .model-box[_ngcontent-%COMP%] .relation-name-input[_ngcontent-%COMP%]{width:100%;margin-top:auto}.relationship-config[_ngcontent-%COMP%] .model-box[_ngcontent-%COMP%] .model-select[_ngcontent-%COMP%]{width:100%;margin-bottom:16px}.relationship-config[_ngcontent-%COMP%] .center-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:200px;position:relative;margin:0 24px}.relationship-config[_ngcontent-%COMP%] .center-section[_ngcontent-%COMP%] .relation-icons-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;gap:8px;margin-bottom:16px;position:relative}.relationship-config[_ngcontent-%COMP%] .center-section[_ngcontent-%COMP%] .relation-icons-row[_ngcontent-%COMP%]:before{content:"";position:absolute;top:50%;left:-24px;right:-24px;height:1px;background-color:#ffffffb3;z-index:1}.relationship-config[_ngcontent-%COMP%] .center-section[_ngcontent-%COMP%] .relation-icons-row[_ngcontent-%COMP%] .relation-icon-item[_ngcontent-%COMP%]{width:40px;height:40px;display:flex;align-items:center;justify-content:center;cursor:pointer;border-radius:6px;background-color:#232323;border:1px solid rgba(255,255,255,.12);transition:all .2s ease;position:relative;z-index:2}.relationship-config[_ngcontent-%COMP%] .center-section[_ngcontent-%COMP%] .relation-icons-row[_ngcontent-%COMP%] .relation-icon-item[_ngcontent-%COMP%]:hover{background-color:#fff3}.relationship-config[_ngcontent-%COMP%] .center-section[_ngcontent-%COMP%] .relation-icons-row[_ngcontent-%COMP%] .relation-icon-item.selected[_ngcontent-%COMP%]{background-color:#d5ccf529;border:1px solid #ac99ea;box-shadow:0 0 0 1px #ac99ea}.relationship-config[_ngcontent-%COMP%] .center-section[_ngcontent-%COMP%] .relation-icons-row[_ngcontent-%COMP%] .relation-icon-item[_ngcontent-%COMP%] svg[_ngcontent-%COMP%]{width:20px;height:20px}.relationship-config[_ngcontent-%COMP%] .center-section[_ngcontent-%COMP%] .relation-description[_ngcontent-%COMP%]{font-size:12px;color:#ffffffb3;text-align:center;line-height:1.4;max-width:180px;padding:0 8px}.relation-icon-item[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{stroke:#ffffffb3}.relation-icon-item[_ngcontent-%COMP%] svg[_ngcontent-%COMP%] path.selected[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{stroke:#ac99ea}.field-settings-row[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}']})}};function Jy(i){let n=i.cloneNode(!0),e=n.querySelectorAll("[id]"),t=i.nodeName.toLowerCase();n.removeAttribute("id");for(let o=0;o=t&&e<=o&&n>=r&&n<=a}function Tl(i,n,e){i.top+=n,i.bottom=i.top+i.height,i.left+=e,i.right=i.left+i.width}function Uy(i,n,e,t){let{top:o,right:r,bottom:a,left:s,width:u,height:h}=i,g=u*n,y=h*n;return t>o-y&&ts-g&&e{this.positions.set(e,{scrollPosition:{top:e.scrollTop,left:e.scrollLeft},clientRect:pf(e)})})}handleScroll(n){let e=wt(n),t=this.positions.get(e);if(!t)return null;let o=t.scrollPosition,r,a;if(e===this._document){let h=this.getViewportScrollPosition();r=h.top,a=h.left}else r=e.scrollTop,a=e.scrollLeft;let s=o.top-r,u=o.left-a;return this.positions.forEach((h,g)=>{h.clientRect&&e!==g&&e.contains(g)&&Tl(h.clientRect,s,u)}),o.top=r,o.left=a,{top:s,left:u}}getViewportScrollPosition(){return{top:window.scrollY,left:window.scrollX}}};function eC(i,n){let e=i.rootNodes;if(e.length===1&&e[0].nodeType===n.ELEMENT_NODE)return e[0];let t=n.createElement("div");return e.forEach(o=>t.appendChild(o)),t}function hf(i,n,e){for(let t in n)if(n.hasOwnProperty(t)){let o=n[t];o?i.setProperty(t,o,e?.has(t)?"important":""):i.removeProperty(t)}return i}function xa(i,n){let e=n?"":"none";hf(i.style,{"touch-action":n?"":"none","-webkit-user-drag":n?"":"none","-webkit-tap-highlight-color":n?"":"transparent","user-select":e,"-ms-user-select":e,"-webkit-user-select":e,"-moz-user-select":e})}function Hy(i,n,e){hf(i.style,{position:n?"":"fixed",top:n?"":"0",opacity:n?"":"0",left:n?"":"-999em"},e)}function Fu(i,n){return n&&n!="none"?i+" "+n:i}function $y(i,n){i.style.width=`${n.width}px`,i.style.height=`${n.height}px`,i.style.transform=Nu(n.left,n.top)}function Nu(i,n){return`translate3d(${Math.round(i)}px, ${Math.round(n)}px, 0)`}function Gy(i){let n=i.toLowerCase().indexOf("ms")>-1?1:1e3;return parseFloat(i)*n}function pO(i){let n=getComputedStyle(i),e=rf(n,"transition-property"),t=e.find(s=>s==="transform"||s==="all");if(!t)return 0;let o=e.indexOf(t),r=rf(n,"transition-duration"),a=rf(n,"transition-delay");return Gy(r[o])+Gy(a[o])}function rf(i,n){return i.getPropertyValue(n).split(",").map(t=>t.trim())}var hO=new Set(["position"]),lf=class{_document;_rootElement;_direction;_initialDomRect;_previewTemplate;_previewClass;_pickupPositionOnPage;_initialTransform;_zIndex;_renderer;_previewEmbeddedView;_preview;get element(){return this._preview}constructor(n,e,t,o,r,a,s,u,h,g){this._document=n,this._rootElement=e,this._direction=t,this._initialDomRect=o,this._previewTemplate=r,this._previewClass=a,this._pickupPositionOnPage=s,this._initialTransform=u,this._zIndex=h,this._renderer=g}attach(n){this._preview=this._createPreview(),n.appendChild(this._preview),Wy(this._preview)&&this._preview.showPopover()}destroy(){this._preview.remove(),this._previewEmbeddedView?.destroy(),this._preview=this._previewEmbeddedView=null}setTransform(n){this._preview.style.transform=n}getBoundingClientRect(){return this._preview.getBoundingClientRect()}addClass(n){this._preview.classList.add(n)}getTransitionDuration(){return pO(this._preview)}addEventListener(n,e){return this._renderer.listen(this._preview,n,e)}_createPreview(){let n=this._previewTemplate,e=this._previewClass,t=n?n.template:null,o;if(t&&n){let r=n.matchSize?this._initialDomRect:null,a=n.viewContainer.createEmbeddedView(t,n.context);a.detectChanges(),o=eC(a,this._document),this._previewEmbeddedView=a,n.matchSize?$y(o,r):o.style.transform=Nu(this._pickupPositionOnPage.x,this._pickupPositionOnPage.y)}else o=Jy(this._rootElement),$y(o,this._initialDomRect),this._initialTransform&&(o.style.transform=this._initialTransform);return hf(o.style,{"pointer-events":"none",margin:Wy(o)?"0 auto 0 0":"0",position:"fixed",top:"0",left:"0","z-index":this._zIndex+""},hO),xa(o,!1),o.classList.add("cdk-drag-preview"),o.setAttribute("popover","manual"),o.setAttribute("dir",this._direction),e&&(Array.isArray(e)?e.forEach(r=>o.classList.add(r)):o.classList.add(e)),o}};function Wy(i){return"showPopover"in i}var fO={passive:!0},Yy={passive:!1},gO={passive:!1,capture:!0},_O=800,qy=new Set(["position"]),cf=class{_config;_document;_ngZone;_viewportRuler;_dragDropRegistry;_renderer;_rootElementCleanups;_cleanupShadowRootSelectStart;_preview;_previewContainer;_placeholderRef;_placeholder;_pickupPositionInElement;_pickupPositionOnPage;_anchor;_passiveTransform={x:0,y:0};_activeTransform={x:0,y:0};_initialTransform;_hasStartedDragging=Ft(!1);_hasMoved;_initialContainer;_initialIndex;_parentPositions;_moveEvents=new S;_pointerDirectionDelta;_pointerPositionAtLastDirectionChange;_lastKnownPointerPosition;_rootElement;_ownerSVGElement;_rootElementTapHighlight;_pointerMoveSubscription=ie.EMPTY;_pointerUpSubscription=ie.EMPTY;_scrollSubscription=ie.EMPTY;_resizeSubscription=ie.EMPTY;_lastTouchEventTime;_dragStartTime;_boundaryElement=null;_nativeInteractionsEnabled=!0;_initialDomRect;_previewRect;_boundaryRect;_previewTemplate;_placeholderTemplate;_handles=[];_disabledHandles=new Set;_dropContainer;_direction="ltr";_parentDragRef;_cachedShadowRoot;lockAxis;dragStartDelay=0;previewClass;scale=1;get disabled(){return this._disabled||!!(this._dropContainer&&this._dropContainer.disabled)}set disabled(n){n!==this._disabled&&(this._disabled=n,this._toggleNativeDragInteractions(),this._handles.forEach(e=>xa(e,n)))}_disabled=!1;beforeStarted=new S;started=new S;released=new S;ended=new S;entered=new S;exited=new S;dropped=new S;moved=this._moveEvents;data;constrainPosition;constructor(n,e,t,o,r,a,s){this._config=e,this._document=t,this._ngZone=o,this._viewportRuler=r,this._dragDropRegistry=a,this._renderer=s,this.withRootElement(n).withParent(e.parentDragRef||null),this._parentPositions=new Ru(t),a.registerDragItem(this)}getPlaceholderElement(){return this._placeholder}getRootElement(){return this._rootElement}getVisibleElement(){return this.isDragging()?this.getPlaceholderElement():this.getRootElement()}withHandles(n){this._handles=n.map(t=>ct(t)),this._handles.forEach(t=>xa(t,this.disabled)),this._toggleNativeDragInteractions();let e=new Set;return this._disabledHandles.forEach(t=>{this._handles.indexOf(t)>-1&&e.add(t)}),this._disabledHandles=e,this}withPreviewTemplate(n){return this._previewTemplate=n,this}withPlaceholderTemplate(n){return this._placeholderTemplate=n,this}withRootElement(n){let e=ct(n);return e!==this._rootElement&&(this._removeRootElementListeners(),this._rootElementCleanups=this._ngZone.runOutsideAngular(()=>[Ue(this._renderer,e,"mousedown",this._pointerDown,Yy),Ue(this._renderer,e,"touchstart",this._pointerDown,fO),Ue(this._renderer,e,"dragstart",this._nativeDragStart,Yy)]),this._initialTransform=void 0,this._rootElement=e),typeof SVGElement<"u"&&this._rootElement instanceof SVGElement&&(this._ownerSVGElement=this._rootElement.ownerSVGElement),this}withBoundaryElement(n){return this._boundaryElement=n?ct(n):null,this._resizeSubscription.unsubscribe(),n&&(this._resizeSubscription=this._viewportRuler.change(10).subscribe(()=>this._containInsideBoundaryOnResize())),this}withParent(n){return this._parentDragRef=n,this}dispose(){this._removeRootElementListeners(),this.isDragging()&&this._rootElement?.remove(),this._anchor?.remove(),this._destroyPreview(),this._destroyPlaceholder(),this._dragDropRegistry.removeDragItem(this),this._removeListeners(),this.beforeStarted.complete(),this.started.complete(),this.released.complete(),this.ended.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this._moveEvents.complete(),this._handles=[],this._disabledHandles.clear(),this._dropContainer=void 0,this._resizeSubscription.unsubscribe(),this._parentPositions.clear(),this._boundaryElement=this._rootElement=this._ownerSVGElement=this._placeholderTemplate=this._previewTemplate=this._anchor=this._parentDragRef=null}isDragging(){return this._hasStartedDragging()&&this._dragDropRegistry.isDragging(this)}reset(){this._rootElement.style.transform=this._initialTransform||"",this._activeTransform={x:0,y:0},this._passiveTransform={x:0,y:0}}disableHandle(n){!this._disabledHandles.has(n)&&this._handles.indexOf(n)>-1&&(this._disabledHandles.add(n),xa(n,!0))}enableHandle(n){this._disabledHandles.has(n)&&(this._disabledHandles.delete(n),xa(n,this.disabled))}withDirection(n){return this._direction=n,this}_withDropContainer(n){this._dropContainer=n}getFreeDragPosition(){let n=this.isDragging()?this._activeTransform:this._passiveTransform;return{x:n.x,y:n.y}}setFreeDragPosition(n){return this._activeTransform={x:0,y:0},this._passiveTransform.x=n.x,this._passiveTransform.y=n.y,this._dropContainer||this._applyRootElementTransform(n.x,n.y),this}withPreviewContainer(n){return this._previewContainer=n,this}_sortFromLastPointerPosition(){let n=this._lastKnownPointerPosition;n&&this._dropContainer&&this._updateActiveDropContainer(this._getConstrainedPointerPosition(n),n)}_removeListeners(){this._pointerMoveSubscription.unsubscribe(),this._pointerUpSubscription.unsubscribe(),this._scrollSubscription.unsubscribe(),this._cleanupShadowRootSelectStart?.(),this._cleanupShadowRootSelectStart=void 0}_destroyPreview(){this._preview?.destroy(),this._preview=null}_destroyPlaceholder(){this._placeholder?.remove(),this._placeholderRef?.destroy(),this._placeholder=this._placeholderRef=null}_pointerDown=n=>{if(this.beforeStarted.next(),this._handles.length){let e=this._getTargetHandle(n);e&&!this._disabledHandles.has(e)&&!this.disabled&&this._initializeDragSequence(e,n)}else this.disabled||this._initializeDragSequence(this._rootElement,n)};_pointerMove=n=>{let e=this._getPointerPositionOnPage(n);if(!this._hasStartedDragging()){let o=Math.abs(e.x-this._pickupPositionOnPage.x),r=Math.abs(e.y-this._pickupPositionOnPage.y);if(o+r>=this._config.dragStartThreshold){let s=Date.now()>=this._dragStartTime+this._getDragStartDelay(n),u=this._dropContainer;if(!s){this._endDragSequence(n);return}(!u||!u.isDragging()&&!u.isReceiving())&&(n.cancelable&&n.preventDefault(),this._hasStartedDragging.set(!0),this._ngZone.run(()=>this._startDragSequence(n)))}return}n.cancelable&&n.preventDefault();let t=this._getConstrainedPointerPosition(e);if(this._hasMoved=!0,this._lastKnownPointerPosition=e,this._updatePointerDirectionDelta(t),this._dropContainer)this._updateActiveDropContainer(t,e);else{let o=this.constrainPosition?this._initialDomRect:this._pickupPositionOnPage,r=this._activeTransform;r.x=t.x-o.x+this._passiveTransform.x,r.y=t.y-o.y+this._passiveTransform.y,this._applyRootElementTransform(r.x,r.y)}this._moveEvents.observers.length&&this._ngZone.run(()=>{this._moveEvents.next({source:this,pointerPosition:t,event:n,distance:this._getDragDistance(t),delta:this._pointerDirectionDelta})})};_pointerUp=n=>{this._endDragSequence(n)};_endDragSequence(n){if(this._dragDropRegistry.isDragging(this)&&(this._removeListeners(),this._dragDropRegistry.stopDragging(this),this._toggleNativeDragInteractions(),this._handles&&(this._rootElement.style.webkitTapHighlightColor=this._rootElementTapHighlight),!!this._hasStartedDragging()))if(this.released.next({source:this,event:n}),this._dropContainer)this._dropContainer._stopScrolling(),this._animatePreviewToPlaceholder().then(()=>{this._cleanupDragArtifacts(n),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)});else{this._passiveTransform.x=this._activeTransform.x;let e=this._getPointerPositionOnPage(n);this._passiveTransform.y=this._activeTransform.y,this._ngZone.run(()=>{this.ended.next({source:this,distance:this._getDragDistance(e),dropPoint:e,event:n})}),this._cleanupCachedDimensions(),this._dragDropRegistry.stopDragging(this)}}_startDragSequence(n){El(n)&&(this._lastTouchEventTime=Date.now()),this._toggleNativeDragInteractions();let e=this._getShadowRoot(),t=this._dropContainer;if(e&&this._ngZone.runOutsideAngular(()=>{this._cleanupShadowRootSelectStart=Ue(this._renderer,e,"selectstart",bO,gO)}),t){let o=this._rootElement,r=o.parentNode,a=this._placeholder=this._createPlaceholderElement(),s=this._anchor=this._anchor||this._document.createComment("");r.insertBefore(s,o),this._initialTransform=o.style.transform||"",this._preview=new lf(this._document,this._rootElement,this._direction,this._initialDomRect,this._previewTemplate||null,this.previewClass||null,this._pickupPositionOnPage,this._initialTransform,this._config.zIndex||1e3,this._renderer),this._preview.attach(this._getPreviewInsertionPoint(r,e)),Hy(o,!1,qy),this._document.body.appendChild(r.replaceChild(a,o)),this.started.next({source:this,event:n}),t.start(),this._initialContainer=t,this._initialIndex=t.getItemIndex(this)}else this.started.next({source:this,event:n}),this._initialContainer=this._initialIndex=void 0;this._parentPositions.cache(t?t.getScrollableParents():[])}_initializeDragSequence(n,e){this._parentDragRef&&e.stopPropagation();let t=this.isDragging(),o=El(e),r=!o&&e.button!==0,a=this._rootElement,s=wt(e),u=!o&&this._lastTouchEventTime&&this._lastTouchEventTime+_O>Date.now(),h=o?eo(e):Jn(e);if(s&&s.draggable&&e.type==="mousedown"&&e.preventDefault(),t||r||u||h)return;if(this._handles.length){let R=a.style;this._rootElementTapHighlight=R.webkitTapHighlightColor||"",R.webkitTapHighlightColor="transparent"}this._hasMoved=!1,this._hasStartedDragging.set(this._hasMoved),this._removeListeners(),this._initialDomRect=this._rootElement.getBoundingClientRect(),this._pointerMoveSubscription=this._dragDropRegistry.pointerMove.subscribe(this._pointerMove),this._pointerUpSubscription=this._dragDropRegistry.pointerUp.subscribe(this._pointerUp),this._scrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(R=>this._updateOnScroll(R)),this._boundaryElement&&(this._boundaryRect=pf(this._boundaryElement));let g=this._previewTemplate;this._pickupPositionInElement=g&&g.template&&!g.matchSize?{x:0,y:0}:this._getPointerPositionInElement(this._initialDomRect,n,e);let y=this._pickupPositionOnPage=this._lastKnownPointerPosition=this._getPointerPositionOnPage(e);this._pointerDirectionDelta={x:0,y:0},this._pointerPositionAtLastDirectionChange={x:y.x,y:y.y},this._dragStartTime=Date.now(),this._dragDropRegistry.startDragging(this,e)}_cleanupDragArtifacts(n){Hy(this._rootElement,!0,qy),this._anchor.parentNode.replaceChild(this._rootElement,this._anchor),this._destroyPreview(),this._destroyPlaceholder(),this._initialDomRect=this._boundaryRect=this._previewRect=this._initialTransform=void 0,this._ngZone.run(()=>{let e=this._dropContainer,t=e.getItemIndex(this),o=this._getPointerPositionOnPage(n),r=this._getDragDistance(o),a=e._isOverContainer(o.x,o.y);this.ended.next({source:this,distance:r,dropPoint:o,event:n}),this.dropped.next({item:this,currentIndex:t,previousIndex:this._initialIndex,container:e,previousContainer:this._initialContainer,isPointerOverContainer:a,distance:r,dropPoint:o,event:n}),e.drop(this,t,this._initialIndex,this._initialContainer,a,r,o,n),this._dropContainer=this._initialContainer})}_updateActiveDropContainer({x:n,y:e},{x:t,y:o}){let r=this._initialContainer._getSiblingContainerFromPosition(this,n,e);!r&&this._dropContainer!==this._initialContainer&&this._initialContainer._isOverContainer(n,e)&&(r=this._initialContainer),r&&r!==this._dropContainer&&this._ngZone.run(()=>{this.exited.next({item:this,container:this._dropContainer}),this._dropContainer.exit(this),this._dropContainer=r,this._dropContainer.enter(this,n,e,r===this._initialContainer&&r.sortingDisabled?this._initialIndex:void 0),this.entered.next({item:this,container:r,currentIndex:r.getItemIndex(this)})}),this.isDragging()&&(this._dropContainer._startScrollingIfNecessary(t,o),this._dropContainer._sortItem(this,n,e,this._pointerDirectionDelta),this.constrainPosition?this._applyPreviewTransform(n,e):this._applyPreviewTransform(n-this._pickupPositionInElement.x,e-this._pickupPositionInElement.y))}_animatePreviewToPlaceholder(){if(!this._hasMoved)return Promise.resolve();let n=this._placeholder.getBoundingClientRect();this._preview.addClass("cdk-drag-animating"),this._applyPreviewTransform(n.left,n.top);let e=this._preview.getTransitionDuration();return e===0?Promise.resolve():this._ngZone.runOutsideAngular(()=>new Promise(t=>{let o=s=>{(!s||this._preview&&wt(s)===this._preview.element&&s.propertyName==="transform")&&(a(),t(),clearTimeout(r))},r=setTimeout(o,e*1.5),a=this._preview.addEventListener("transitionend",o)}))}_createPlaceholderElement(){let n=this._placeholderTemplate,e=n?n.template:null,t;return e?(this._placeholderRef=n.viewContainer.createEmbeddedView(e,n.context),this._placeholderRef.detectChanges(),t=eC(this._placeholderRef,this._document)):t=Jy(this._rootElement),t.style.pointerEvents="none",t.classList.add("cdk-drag-placeholder"),t}_getPointerPositionInElement(n,e,t){let o=e===this._rootElement?null:e,r=o?o.getBoundingClientRect():n,a=El(t)?t.targetTouches[0]:t,s=this._getViewportScrollPosition(),u=a.pageX-r.left-s.left,h=a.pageY-r.top-s.top;return{x:r.left-n.left+u,y:r.top-n.top+h}}_getPointerPositionOnPage(n){let e=this._getViewportScrollPosition(),t=El(n)?n.touches[0]||n.changedTouches[0]||{pageX:0,pageY:0}:n,o=t.pageX-e.left,r=t.pageY-e.top;if(this._ownerSVGElement){let a=this._ownerSVGElement.getScreenCTM();if(a){let s=this._ownerSVGElement.createSVGPoint();return s.x=o,s.y=r,s.matrixTransform(a.inverse())}}return{x:o,y:r}}_getConstrainedPointerPosition(n){let e=this._dropContainer?this._dropContainer.lockAxis:null,{x:t,y:o}=this.constrainPosition?this.constrainPosition(n,this,this._initialDomRect,this._pickupPositionInElement):n;if(this.lockAxis==="x"||e==="x"?o=this._pickupPositionOnPage.y-(this.constrainPosition?this._pickupPositionInElement.y:0):(this.lockAxis==="y"||e==="y")&&(t=this._pickupPositionOnPage.x-(this.constrainPosition?this._pickupPositionInElement.x:0)),this._boundaryRect){let{x:r,y:a}=this.constrainPosition?{x:0,y:0}:this._pickupPositionInElement,s=this._boundaryRect,{width:u,height:h}=this._getPreviewRect(),g=s.top+a,y=s.bottom-(h-a),R=s.left+r,F=s.right-(u-r);t=Ky(t,R,F),o=Ky(o,g,y)}return{x:t,y:o}}_updatePointerDirectionDelta(n){let{x:e,y:t}=n,o=this._pointerDirectionDelta,r=this._pointerPositionAtLastDirectionChange,a=Math.abs(e-r.x),s=Math.abs(t-r.y);return a>this._config.pointerDirectionChangeThreshold&&(o.x=e>r.x?1:-1,r.x=e),s>this._config.pointerDirectionChangeThreshold&&(o.y=t>r.y?1:-1,r.y=t),o}_toggleNativeDragInteractions(){if(!this._rootElement||!this._handles)return;let n=this._handles.length>0||!this.isDragging();n!==this._nativeInteractionsEnabled&&(this._nativeInteractionsEnabled=n,xa(this._rootElement,n))}_removeRootElementListeners(){this._rootElementCleanups?.forEach(n=>n()),this._rootElementCleanups=void 0}_applyRootElementTransform(n,e){let t=1/this.scale,o=Nu(n*t,e*t),r=this._rootElement.style;this._initialTransform==null&&(this._initialTransform=r.transform&&r.transform!="none"?r.transform:""),r.transform=Fu(o,this._initialTransform)}_applyPreviewTransform(n,e){let t=this._previewTemplate?.template?void 0:this._initialTransform,o=Nu(n,e);this._preview.setTransform(Fu(o,t))}_getDragDistance(n){let e=this._pickupPositionOnPage;return e?{x:n.x-e.x,y:n.y-e.y}:{x:0,y:0}}_cleanupCachedDimensions(){this._boundaryRect=this._previewRect=void 0,this._parentPositions.clear()}_containInsideBoundaryOnResize(){let{x:n,y:e}=this._passiveTransform;if(n===0&&e===0||this.isDragging()||!this._boundaryElement)return;let t=this._rootElement.getBoundingClientRect(),o=this._boundaryElement.getBoundingClientRect();if(o.width===0&&o.height===0||t.width===0&&t.height===0)return;let r=o.left-t.left,a=t.right-o.right,s=o.top-t.top,u=t.bottom-o.bottom;o.width>t.width?(r>0&&(n+=r),a>0&&(n-=a)):n=0,o.height>t.height?(s>0&&(e+=s),u>0&&(e-=u)):e=0,(n!==this._passiveTransform.x||e!==this._passiveTransform.y)&&this.setFreeDragPosition({y:e,x:n})}_getDragStartDelay(n){let e=this.dragStartDelay;return typeof e=="number"?e:El(n)?e.touch:e?e.mouse:0}_updateOnScroll(n){let e=this._parentPositions.handleScroll(n);if(e){let t=wt(n);this._boundaryRect&&t!==this._boundaryElement&&t.contains(this._boundaryElement)&&Tl(this._boundaryRect,e.top,e.left),this._pickupPositionOnPage.x+=e.left,this._pickupPositionOnPage.y+=e.top,this._dropContainer||(this._activeTransform.x-=e.left,this._activeTransform.y-=e.top,this._applyRootElementTransform(this._activeTransform.x,this._activeTransform.y))}}_getViewportScrollPosition(){return this._parentPositions.positions.get(this._document)?.scrollPosition||this._parentPositions.getViewportScrollPosition()}_getShadowRoot(){return this._cachedShadowRoot===void 0&&(this._cachedShadowRoot=Zo(this._rootElement)),this._cachedShadowRoot}_getPreviewInsertionPoint(n,e){let t=this._previewContainer||"global";if(t==="parent")return n;if(t==="global"){let o=this._document;return e||o.fullscreenElement||o.webkitFullscreenElement||o.mozFullScreenElement||o.msFullscreenElement||o.body}return ct(t)}_getPreviewRect(){return(!this._previewRect||!this._previewRect.width&&!this._previewRect.height)&&(this._previewRect=this._preview?this._preview.getBoundingClientRect():this._initialDomRect),this._previewRect}_nativeDragStart=n=>{if(this._handles.length){let e=this._getTargetHandle(n);e&&!this._disabledHandles.has(e)&&!this.disabled&&n.preventDefault()}else this.disabled||n.preventDefault()};_getTargetHandle(n){return this._handles.find(e=>n.target&&(n.target===e||e.contains(n.target)))}};function Ky(i,n,e){return Math.max(n,Math.min(e,i))}function El(i){return i.type[0]==="t"}function bO(i){i.preventDefault()}function Vu(i,n,e){let t=Zy(n,i.length-1),o=Zy(e,i.length-1);if(t===o)return;let r=i[t],a=o0)return null;let s=this.orientation==="horizontal",u=r.findIndex(J=>J.drag===n),h=r[a],g=r[u].clientRect,y=h.clientRect,R=u>a?1:-1,F=this._getItemOffsetPx(g,y,R),H=this._getSiblingOffsetPx(u,r,R),B=r.slice();return Vu(r,u,a),r.forEach((J,Fe)=>{if(B[Fe]===J)return;let at=J.drag===n,De=at?F:H,Ne=at?n.getPlaceholderElement():J.drag.getRootElement();J.offset+=De;let et=Math.round(J.offset*(1/J.drag.scale));s?(Ne.style.transform=Fu(`translate3d(${et}px, 0, 0)`,J.initialTransform),Tl(J.clientRect,0,De)):(Ne.style.transform=Fu(`translate3d(0, ${et}px, 0)`,J.initialTransform),Tl(J.clientRect,De,0))}),this._previousSwap.overlaps=sf(y,e,t),this._previousSwap.drag=h.drag,this._previousSwap.delta=s?o.x:o.y,{previousIndex:u,currentIndex:a}}enter(n,e,t,o){let r=o==null||o<0?this._getItemIndexFromPointerPosition(n,e,t):o,a=this._activeDraggables,s=a.indexOf(n),u=n.getPlaceholderElement(),h=a[r];if(h===n&&(h=a[r+1]),!h&&(r==null||r===-1||r-1&&a.splice(s,1),h&&!this._dragDropRegistry.isDragging(h)){let g=h.getRootElement();g.parentElement.insertBefore(u,g),a.splice(r,0,n)}else this._element.appendChild(u),a.push(n);u.style.transform="",this._cacheItemPositions()}withItems(n){this._activeDraggables=n.slice(),this._cacheItemPositions()}withSortPredicate(n){this._sortPredicate=n}reset(){this._activeDraggables?.forEach(n=>{let e=n.getRootElement();if(e){let t=this._itemPositions.find(o=>o.drag===n)?.initialTransform;e.style.transform=t||""}}),this._itemPositions=[],this._activeDraggables=[],this._previousSwap.drag=null,this._previousSwap.delta=0,this._previousSwap.overlaps=!1}getActiveItemsSnapshot(){return this._activeDraggables}getItemIndex(n){return(this.orientation==="horizontal"&&this.direction==="rtl"?this._itemPositions.slice().reverse():this._itemPositions).findIndex(t=>t.drag===n)}updateOnScroll(n,e){this._itemPositions.forEach(({clientRect:t})=>{Tl(t,n,e)}),this._itemPositions.forEach(({drag:t})=>{this._dragDropRegistry.isDragging(t)&&t._sortFromLastPointerPosition()})}withElementContainer(n){this._element=n}_cacheItemPositions(){let n=this.orientation==="horizontal";this._itemPositions=this._activeDraggables.map(e=>{let t=e.getVisibleElement();return{drag:e,offset:0,initialTransform:t.style.transform||"",clientRect:pf(t)}}).sort((e,t)=>n?e.clientRect.left-t.clientRect.left:e.clientRect.top-t.clientRect.top)}_getItemOffsetPx(n,e,t){let o=this.orientation==="horizontal",r=o?e.left-n.left:e.top-n.top;return t===-1&&(r+=o?e.width-n.width:e.height-n.height),r}_getSiblingOffsetPx(n,e,t){let o=this.orientation==="horizontal",r=e[n].clientRect,a=e[n+t*-1],s=r[o?"width":"height"]*t;if(a){let u=o?"left":"top",h=o?"right":"bottom";t===-1?s-=a.clientRect[u]-r[h]:s+=r[u]-a.clientRect[h]}return s}_shouldEnterAsFirstChild(n,e){if(!this._activeDraggables.length)return!1;let t=this._itemPositions,o=this.orientation==="horizontal";if(t[0].drag!==this._activeDraggables[0]){let a=t[t.length-1].clientRect;return o?n>=a.right:e>=a.bottom}else{let a=t[0].clientRect;return o?n<=a.left:e<=a.top}}_getItemIndexFromPointerPosition(n,e,t,o){let r=this.orientation==="horizontal",a=this._itemPositions.findIndex(({drag:s,clientRect:u})=>{if(s===n)return!1;if(o){let h=r?o.x:o.y;if(s===this._previousSwap.drag&&this._previousSwap.overlaps&&h===this._previousSwap.delta)return!1}return r?e>=Math.floor(u.left)&&e=Math.floor(u.top)&&tu?g.after(h):g.before(h),Vu(this._activeItems,u,r);let y=this._getRootNode().elementFromPoint(e,t);return a.deltaX=o.x,a.deltaY=o.y,a.drag=s,a.overlaps=g===y||g.contains(y),{previousIndex:u,currentIndex:r}}enter(n,e,t,o){let r=o==null||o<0?this._getItemIndexFromPointerPosition(n,e,t):o;r===-1&&(r=this._getClosestItemIndexToPointer(n,e,t));let a=this._activeItems[r],s=this._activeItems.indexOf(n);s>-1&&this._activeItems.splice(s,1),a&&!this._dragDropRegistry.isDragging(a)?(this._activeItems.splice(r,0,n),a.getRootElement().before(n.getPlaceholderElement())):(this._activeItems.push(n),this._element.appendChild(n.getPlaceholderElement()))}withItems(n){this._activeItems=n.slice()}withSortPredicate(n){this._sortPredicate=n}reset(){let n=this._element,e=this._previousSwap;for(let t=this._relatedNodes.length-1;t>-1;t--){let[o,r]=this._relatedNodes[t];o.parentNode===n&&o.nextSibling!==r&&(r===null?n.appendChild(o):r.parentNode===n&&n.insertBefore(o,r))}this._relatedNodes=[],this._activeItems=[],e.drag=null,e.deltaX=e.deltaY=0,e.overlaps=!1}getActiveItemsSnapshot(){return this._activeItems}getItemIndex(n){return this._activeItems.indexOf(n)}updateOnScroll(){this._activeItems.forEach(n=>{this._dragDropRegistry.isDragging(n)&&n._sortFromLastPointerPosition()})}withElementContainer(n){n!==this._element&&(this._element=n,this._rootNode=void 0)}_getItemIndexFromPointerPosition(n,e,t){let o=this._getRootNode().elementFromPoint(Math.floor(e),Math.floor(t)),r=o?this._activeItems.findIndex(a=>{let s=a.getRootElement();return o===s||s.contains(o)}):-1;return r===-1||!this._sortPredicate(r,n)?-1:r}_getRootNode(){return this._rootNode||(this._rootNode=Zo(this._element)||this._document),this._rootNode}_getClosestItemIndexToPointer(n,e,t){if(this._activeItems.length===0)return-1;if(this._activeItems.length===1)return 0;let o=1/0,r=-1;for(let a=0;a!0;sortPredicate=()=>!0;beforeStarted=new S;entered=new S;exited=new S;dropped=new S;sorted=new S;receivingStarted=new S;receivingStopped=new S;data;_container;_isDragging=!1;_parentPositions;_sortStrategy;_domRect;_draggables=[];_siblings=[];_activeSiblings=new Set;_viewportScrollSubscription=ie.EMPTY;_verticalScrollDirection=Xi.NONE;_horizontalScrollDirection=ti.NONE;_scrollNode;_stopScrollTimers=new S;_cachedShadowRoot=null;_document;_scrollableElements=[];_initialScrollSnap;_direction="ltr";constructor(n,e,t,o,r){this._dragDropRegistry=e,this._ngZone=o,this._viewportRuler=r;let a=this.element=ct(n);this._document=t,this.withOrientation("vertical").withElementContainer(a),e.registerDropContainer(this),this._parentPositions=new Ru(t)}dispose(){this._stopScrolling(),this._stopScrollTimers.complete(),this._viewportScrollSubscription.unsubscribe(),this.beforeStarted.complete(),this.entered.complete(),this.exited.complete(),this.dropped.complete(),this.sorted.complete(),this.receivingStarted.complete(),this.receivingStopped.complete(),this._activeSiblings.clear(),this._scrollNode=null,this._parentPositions.clear(),this._dragDropRegistry.removeDropContainer(this)}isDragging(){return this._isDragging}start(){this._draggingStarted(),this._notifyReceivingSiblings()}enter(n,e,t,o){this._draggingStarted(),o==null&&this.sortingDisabled&&(o=this._draggables.indexOf(n)),this._sortStrategy.enter(n,e,t,o),this._cacheParentPositions(),this._notifyReceivingSiblings(),this.entered.next({item:n,container:this,currentIndex:this.getItemIndex(n)})}exit(n){this._reset(),this.exited.next({item:n,container:this})}drop(n,e,t,o,r,a,s,u={}){this._reset(),this.dropped.next({item:n,currentIndex:e,previousIndex:t,container:this,previousContainer:o,isPointerOverContainer:r,distance:a,dropPoint:s,event:u})}withItems(n){let e=this._draggables;return this._draggables=n,n.forEach(t=>t._withDropContainer(this)),this.isDragging()&&(e.filter(o=>o.isDragging()).every(o=>n.indexOf(o)===-1)?this._reset():this._sortStrategy.withItems(this._draggables)),this}withDirection(n){return this._direction=n,this._sortStrategy instanceof Lu&&(this._sortStrategy.direction=n),this}connectedTo(n){return this._siblings=n.slice(),this}withOrientation(n){if(n==="mixed")this._sortStrategy=new df(this._document,this._dragDropRegistry);else{let e=new Lu(this._dragDropRegistry);e.direction=this._direction,e.orientation=n,this._sortStrategy=e}return this._sortStrategy.withElementContainer(this._container),this._sortStrategy.withSortPredicate((e,t)=>this.sortPredicate(e,t,this)),this}withScrollableParents(n){let e=this._container;return this._scrollableElements=n.indexOf(e)===-1?[e,...n]:n.slice(),this}withElementContainer(n){if(n===this._container)return this;let e=ct(this.element),t=this._scrollableElements.indexOf(this._container),o=this._scrollableElements.indexOf(n);return t>-1&&this._scrollableElements.splice(t,1),o>-1&&this._scrollableElements.splice(o,1),this._sortStrategy&&this._sortStrategy.withElementContainer(n),this._cachedShadowRoot=null,this._scrollableElements.unshift(n),this._container=n,this}getScrollableParents(){return this._scrollableElements}getItemIndex(n){return this._isDragging?this._sortStrategy.getItemIndex(n):this._draggables.indexOf(n)}isReceiving(){return this._activeSiblings.size>0}_sortItem(n,e,t,o){if(this.sortingDisabled||!this._domRect||!Uy(this._domRect,Qy,e,t))return;let r=this._sortStrategy.sort(n,e,t,o);r&&this.sorted.next({previousIndex:r.previousIndex,currentIndex:r.currentIndex,container:this,item:n})}_startScrollingIfNecessary(n,e){if(this.autoScrollDisabled)return;let t,o=Xi.NONE,r=ti.NONE;if(this._parentPositions.positions.forEach((a,s)=>{s===this._document||!a.clientRect||t||Uy(a.clientRect,Qy,n,e)&&([o,r]=vO(s,a.clientRect,this._direction,n,e),(o||r)&&(t=s))}),!o&&!r){let{width:a,height:s}=this._viewportRuler.getViewportSize(),u={width:a,height:s,top:0,right:a,bottom:s,left:0};o=iC(u,e),r=nC(u,n),t=window}t&&(o!==this._verticalScrollDirection||r!==this._horizontalScrollDirection||t!==this._scrollNode)&&(this._verticalScrollDirection=o,this._horizontalScrollDirection=r,this._scrollNode=t,(o||r)&&t?this._ngZone.runOutsideAngular(this._startScrollInterval):this._stopScrolling())}_stopScrolling(){this._stopScrollTimers.next()}_draggingStarted(){let n=this._container.style;this.beforeStarted.next(),this._isDragging=!0,this._initialScrollSnap=n.msScrollSnapType||n.scrollSnapType||"",n.scrollSnapType=n.msScrollSnapType="none",this._sortStrategy.start(this._draggables),this._cacheParentPositions(),this._viewportScrollSubscription.unsubscribe(),this._listenToScrollEvents()}_cacheParentPositions(){this._parentPositions.cache(this._scrollableElements),this._domRect=this._parentPositions.positions.get(this._container).clientRect}_reset(){this._isDragging=!1;let n=this._container.style;n.scrollSnapType=n.msScrollSnapType=this._initialScrollSnap,this._siblings.forEach(e=>e._stopReceiving(this)),this._sortStrategy.reset(),this._stopScrolling(),this._viewportScrollSubscription.unsubscribe(),this._parentPositions.clear()}_startScrollInterval=()=>{this._stopScrolling(),ng(0,Mm).pipe(pe(this._stopScrollTimers)).subscribe(()=>{let n=this._scrollNode,e=this.autoScrollStep;this._verticalScrollDirection===Xi.UP?n.scrollBy(0,-e):this._verticalScrollDirection===Xi.DOWN&&n.scrollBy(0,e),this._horizontalScrollDirection===ti.LEFT?n.scrollBy(-e,0):this._horizontalScrollDirection===ti.RIGHT&&n.scrollBy(e,0)})};_isOverContainer(n,e){return this._domRect!=null&&sf(this._domRect,n,e)}_getSiblingContainerFromPosition(n,e,t){return this._siblings.find(o=>o._canReceive(n,e,t))}_canReceive(n,e,t){if(!this._domRect||!sf(this._domRect,e,t)||!this.enterPredicate(n,this))return!1;let o=this._getShadowRoot().elementFromPoint(e,t);return o?o===this._container||this._container.contains(o):!1}_startReceiving(n,e){let t=this._activeSiblings;!t.has(n)&&e.every(o=>this.enterPredicate(o,this)||this._draggables.indexOf(o)>-1)&&(t.add(n),this._cacheParentPositions(),this._listenToScrollEvents(),this.receivingStarted.next({initiator:n,receiver:this,items:e}))}_stopReceiving(n){this._activeSiblings.delete(n),this._viewportScrollSubscription.unsubscribe(),this.receivingStopped.next({initiator:n,receiver:this})}_listenToScrollEvents(){this._viewportScrollSubscription=this._dragDropRegistry.scrolled(this._getShadowRoot()).subscribe(n=>{if(this.isDragging()){let e=this._parentPositions.handleScroll(n);e&&this._sortStrategy.updateOnScroll(e.top,e.left)}else this.isReceiving()&&this._cacheParentPositions()})}_getShadowRoot(){if(!this._cachedShadowRoot){let n=Zo(this._container);this._cachedShadowRoot=n||this._document}return this._cachedShadowRoot}_notifyReceivingSiblings(){let n=this._sortStrategy.getActiveItemsSnapshot().filter(e=>e.isDragging());this._siblings.forEach(e=>e._startReceiving(this,n))}};function iC(i,n){let{top:e,bottom:t,height:o}=i,r=o*tC;return n>=e-r&&n<=e+r?Xi.UP:n>=t-r&&n<=t+r?Xi.DOWN:Xi.NONE}function nC(i,n){let{left:e,right:t,width:o}=i,r=o*tC;return n>=e-r&&n<=e+r?ti.LEFT:n>=t-r&&n<=t+r?ti.RIGHT:ti.NONE}function vO(i,n,e,t,o){let r=iC(n,o),a=nC(n,t),s=Xi.NONE,u=ti.NONE;if(r){let h=i.scrollTop;r===Xi.UP?h>0&&(s=Xi.UP):i.scrollHeight-h>i.clientHeight&&(s=Xi.DOWN)}if(a){let h=i.scrollLeft;e==="rtl"?a===ti.RIGHT?h<0&&(u=ti.RIGHT):i.scrollWidth+h>i.clientWidth&&(u=ti.LEFT):a===ti.LEFT?h>0&&(u=ti.LEFT):i.scrollWidth-h>i.clientWidth&&(u=ti.RIGHT)}return[s,u]}var Ol={capture:!0},af={passive:!1,capture:!0},yO=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["ng-component"]],hostAttrs:["cdk-drag-resets-container",""],decls:0,vars:0,template:function(t,o){},styles:[`@layer cdk-resets{.cdk-drag-preview{background:none;border:none;padding:0;color:inherit;inset:auto}}.cdk-drag-placeholder *,.cdk-drag-preview *{pointer-events:none !important} -`],encapsulation:2,changeDetection:0})}return i})(),ff=(()=>{class i{_ngZone=d(K);_document=d(re);_styleLoader=d(We);_renderer=d(yt).createRenderer(null,null);_cleanupDocumentTouchmove;_dropInstances=new Set;_dragInstances=new Set;_activeDragInstances=Ft([]);_globalListeners;_draggingPredicate=e=>e.isDragging();_domNodesToDirectives=null;pointerMove=new S;pointerUp=new S;scroll=new S;constructor(){}registerDropContainer(e){this._dropInstances.has(e)||this._dropInstances.add(e)}registerDragItem(e){this._dragInstances.add(e),this._dragInstances.size===1&&this._ngZone.runOutsideAngular(()=>{this._cleanupDocumentTouchmove?.(),this._cleanupDocumentTouchmove=Ue(this._renderer,this._document,"touchmove",this._persistentTouchmoveListener,af)})}removeDropContainer(e){this._dropInstances.delete(e)}removeDragItem(e){this._dragInstances.delete(e),this.stopDragging(e),this._dragInstances.size===0&&this._cleanupDocumentTouchmove?.()}startDragging(e,t){if(!(this._activeDragInstances().indexOf(e)>-1)&&(this._styleLoader.load(yO),this._activeDragInstances.update(o=>[...o,e]),this._activeDragInstances().length===1)){let o=t.type.startsWith("touch"),r=s=>this.pointerUp.next(s),a=[["scroll",s=>this.scroll.next(s),Ol],["selectstart",this._preventDefaultWhileDragging,af]];o?a.push(["touchend",r,Ol],["touchcancel",r,Ol]):a.push(["mouseup",r,Ol]),o||a.push(["mousemove",s=>this.pointerMove.next(s),af]),this._ngZone.runOutsideAngular(()=>{this._globalListeners=a.map(([s,u,h])=>Ue(this._renderer,this._document,s,u,h))})}}stopDragging(e){this._activeDragInstances.update(t=>{let o=t.indexOf(e);return o>-1?(t.splice(o,1),[...t]):t}),this._activeDragInstances().length===0&&this._clearGlobalListeners()}isDragging(e){return this._activeDragInstances().indexOf(e)>-1}scrolled(e){let t=[this.scroll];return e&&e!==this._document&&t.push(new mt(o=>this._ngZone.runOutsideAngular(()=>{let r=Ue(this._renderer,e,"scroll",a=>{this._activeDragInstances().length&&o.next(a)},Ol);return()=>{r()}}))),Le(...t)}registerDirectiveNode(e,t){this._domNodesToDirectives??=new WeakMap,this._domNodesToDirectives.set(e,t)}removeDirectiveNode(e){this._domNodesToDirectives?.delete(e)}getDragDirectiveForNode(e){return this._domNodesToDirectives?.get(e)||null}ngOnDestroy(){this._dragInstances.forEach(e=>this.removeDragItem(e)),this._dropInstances.forEach(e=>this.removeDropContainer(e)),this._domNodesToDirectives=null,this._clearGlobalListeners(),this.pointerMove.complete(),this.pointerUp.complete()}_preventDefaultWhileDragging=e=>{this._activeDragInstances().length>0&&e.preventDefault()};_persistentTouchmoveListener=e=>{this._activeDragInstances().length>0&&(this._activeDragInstances().some(this._draggingPredicate)&&e.preventDefault(),this.pointerMove.next(e))};_clearGlobalListeners(){this._globalListeners?.forEach(e=>e()),this._globalListeners=void 0}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),CO={dragStartThreshold:5,pointerDirectionChangeThreshold:5},gf=(()=>{class i{_document=d(re);_ngZone=d(K);_viewportRuler=d(Fn);_dragDropRegistry=d(ff);_renderer=d(yt).createRenderer(null,null);constructor(){}createDrag(e,t=CO){return new cf(e,t,this._document,this._ngZone,this._viewportRuler,this._dragDropRegistry,this._renderer)}createDropList(e){return new uf(e,this._dragDropRegistry,this._document,this._ngZone,this._viewportRuler)}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),mf=new v("CDK_DRAG_PARENT");var oC=new v("CdkDragHandle"),rC=(()=>{class i{element=d(Z);_parentDrag=d(mf,{optional:!0,skipSelf:!0});_dragDropRegistry=d(ff);_stateChanges=new S;get disabled(){return this._disabled}set disabled(e){this._disabled=e,this._stateChanges.next(this)}_disabled=!1;constructor(){this._parentDrag?._addHandle(this)}ngAfterViewInit(){if(!this._parentDrag){let e=this.element.nativeElement.parentElement;for(;e;){let t=this._dragDropRegistry.getDragDirectiveForNode(e);if(t){this._parentDrag=t,t._addHandle(this);break}e=e.parentElement}}}ngOnDestroy(){this._parentDrag?._removeHandle(this),this._stateChanges.complete()}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","cdkDragHandle",""]],hostAttrs:[1,"cdk-drag-handle"],inputs:{disabled:[2,"cdkDragHandleDisabled","disabled",X]},features:[Me([{provide:oC,useExisting:i}])]})}return i})(),aC=new v("CDK_DRAG_CONFIG"),sC=new v("CdkDropList"),lC=(()=>{class i{element=d(Z);dropContainer=d(sC,{optional:!0,skipSelf:!0});_ngZone=d(K);_viewContainerRef=d(Nt);_dir=d(dt,{optional:!0});_changeDetectorRef=d(ye);_selfHandle=d(oC,{optional:!0,self:!0});_parentDrag=d(mf,{optional:!0,skipSelf:!0});_dragDropRegistry=d(ff);_destroyed=new S;_handles=new lt([]);_previewTemplate;_placeholderTemplate;_dragRef;data;lockAxis;rootElementSelector;boundaryElement;dragStartDelay;freeDragPosition;get disabled(){return this._disabled||!!(this.dropContainer&&this.dropContainer.disabled)}set disabled(e){this._disabled=e,this._dragRef.disabled=this._disabled}_disabled;constrainPosition;previewClass;previewContainer;scale=1;started=new L;released=new L;ended=new L;entered=new L;exited=new L;dropped=new L;moved=new mt(e=>{let t=this._dragRef.moved.pipe(A(o=>({source:this,pointerPosition:o.pointerPosition,event:o.event,delta:o.delta,distance:o.distance}))).subscribe(e);return()=>{t.unsubscribe()}});_injector=d(ce);constructor(){let e=this.dropContainer,t=d(aC,{optional:!0}),o=d(gf);this._dragRef=o.createDrag(this.element,{dragStartThreshold:t&&t.dragStartThreshold!=null?t.dragStartThreshold:5,pointerDirectionChangeThreshold:t&&t.pointerDirectionChangeThreshold!=null?t.pointerDirectionChangeThreshold:5,zIndex:t?.zIndex}),this._dragRef.data=this,this._dragDropRegistry.registerDirectiveNode(this.element.nativeElement,this),t&&this._assignDefaults(t),e&&(this._dragRef._withDropContainer(e._dropListRef),e.addItem(this),e._dropListRef.beforeStarted.pipe(pe(this._destroyed)).subscribe(()=>{this._dragRef.scale=this.scale})),this._syncInputs(this._dragRef),this._handleEvents(this._dragRef)}getPlaceholderElement(){return this._dragRef.getPlaceholderElement()}getRootElement(){return this._dragRef.getRootElement()}reset(){this._dragRef.reset()}getFreeDragPosition(){return this._dragRef.getFreeDragPosition()}setFreeDragPosition(e){this._dragRef.setFreeDragPosition(e)}ngAfterViewInit(){Et(()=>{this._updateRootElement(),this._setupHandlesListener(),this._dragRef.scale=this.scale,this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)},{injector:this._injector})}ngOnChanges(e){let t=e.rootElementSelector,o=e.freeDragPosition;t&&!t.firstChange&&this._updateRootElement(),this._dragRef.scale=this.scale,o&&!o.firstChange&&this.freeDragPosition&&this._dragRef.setFreeDragPosition(this.freeDragPosition)}ngOnDestroy(){this.dropContainer&&this.dropContainer.removeItem(this),this._dragDropRegistry.removeDirectiveNode(this.element.nativeElement),this._ngZone.runOutsideAngular(()=>{this._handles.complete(),this._destroyed.next(),this._destroyed.complete(),this._dragRef.dispose()})}_addHandle(e){let t=this._handles.getValue();t.push(e),this._handles.next(t)}_removeHandle(e){let t=this._handles.getValue(),o=t.indexOf(e);o>-1&&(t.splice(o,1),this._handles.next(t))}_setPreviewTemplate(e){this._previewTemplate=e}_resetPreviewTemplate(e){e===this._previewTemplate&&(this._previewTemplate=null)}_setPlaceholderTemplate(e){this._placeholderTemplate=e}_resetPlaceholderTemplate(e){e===this._placeholderTemplate&&(this._placeholderTemplate=null)}_updateRootElement(){let e=this.element.nativeElement,t=e;this.rootElementSelector&&(t=e.closest!==void 0?e.closest(this.rootElementSelector):e.parentElement?.closest(this.rootElementSelector)),this._dragRef.withRootElement(t||e)}_getBoundaryElement(){let e=this.boundaryElement;return e?typeof e=="string"?this.element.nativeElement.closest(e):ct(e):null}_syncInputs(e){e.beforeStarted.subscribe(()=>{if(!e.isDragging()){let t=this._dir,o=this.dragStartDelay,r=this._placeholderTemplate?{template:this._placeholderTemplate.templateRef,context:this._placeholderTemplate.data,viewContainer:this._viewContainerRef}:null,a=this._previewTemplate?{template:this._previewTemplate.templateRef,context:this._previewTemplate.data,matchSize:this._previewTemplate.matchSize,viewContainer:this._viewContainerRef}:null;e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.scale=this.scale,e.dragStartDelay=typeof o=="object"&&o?o:Ut(o),e.constrainPosition=this.constrainPosition,e.previewClass=this.previewClass,e.withBoundaryElement(this._getBoundaryElement()).withPlaceholderTemplate(r).withPreviewTemplate(a).withPreviewContainer(this.previewContainer||"global"),t&&e.withDirection(t.value)}}),e.beforeStarted.pipe(_e(1)).subscribe(()=>{if(this._parentDrag){e.withParent(this._parentDrag._dragRef);return}let t=this.element.nativeElement.parentElement;for(;t;){let o=this._dragDropRegistry.getDragDirectiveForNode(t);if(o){e.withParent(o._dragRef);break}t=t.parentElement}})}_handleEvents(e){e.started.subscribe(t=>{this.started.emit({source:this,event:t.event}),this._changeDetectorRef.markForCheck()}),e.released.subscribe(t=>{this.released.emit({source:this,event:t.event})}),e.ended.subscribe(t=>{this.ended.emit({source:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:t.container.data,item:this,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:t.container.data,item:this})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,isPointerOverContainer:t.isPointerOverContainer,item:this,distance:t.distance,dropPoint:t.dropPoint,event:t.event})})}_assignDefaults(e){let{lockAxis:t,dragStartDelay:o,constrainPosition:r,previewClass:a,boundaryElement:s,draggingDisabled:u,rootElementSelector:h,previewContainer:g}=e;this.disabled=u??!1,this.dragStartDelay=o||0,t&&(this.lockAxis=t),r&&(this.constrainPosition=r),a&&(this.previewClass=a),s&&(this.boundaryElement=s),h&&(this.rootElementSelector=h),g&&(this.previewContainer=g)}_setupHandlesListener(){this._handles.pipe(Ge(e=>{let t=e.map(o=>o.element);this._selfHandle&&this.rootElementSelector&&t.push(this.element),this._dragRef.withHandles(t)}),Pe(e=>Le(...e.map(t=>t._stateChanges.pipe(ot(t))))),pe(this._destroyed)).subscribe(e=>{let t=this._dragRef,o=e.element.nativeElement;e.disabled?t.disableHandle(o):t.enableHandle(o)})}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","cdkDrag",""]],hostAttrs:[1,"cdk-drag"],hostVars:4,hostBindings:function(t,o){t&2&&j("cdk-drag-disabled",o.disabled)("cdk-drag-dragging",o._dragRef.isDragging())},inputs:{data:[0,"cdkDragData","data"],lockAxis:[0,"cdkDragLockAxis","lockAxis"],rootElementSelector:[0,"cdkDragRootElement","rootElementSelector"],boundaryElement:[0,"cdkDragBoundary","boundaryElement"],dragStartDelay:[0,"cdkDragStartDelay","dragStartDelay"],freeDragPosition:[0,"cdkDragFreeDragPosition","freeDragPosition"],disabled:[2,"cdkDragDisabled","disabled",X],constrainPosition:[0,"cdkDragConstrainPosition","constrainPosition"],previewClass:[0,"cdkDragPreviewClass","previewClass"],previewContainer:[0,"cdkDragPreviewContainer","previewContainer"],scale:[2,"cdkDragScale","scale",yi]},outputs:{started:"cdkDragStarted",released:"cdkDragReleased",ended:"cdkDragEnded",entered:"cdkDragEntered",exited:"cdkDragExited",dropped:"cdkDragDropped",moved:"cdkDragMoved"},exportAs:["cdkDrag"],features:[Me([{provide:mf,useExisting:i}]),Oe]})}return i})(),Xy=new v("CdkDropListGroup");var cC=(()=>{class i{element=d(Z);_changeDetectorRef=d(ye);_scrollDispatcher=d(_o);_dir=d(dt,{optional:!0});_group=d(Xy,{optional:!0,skipSelf:!0});_latestSortedRefs;_destroyed=new S;_scrollableParentsResolved;static _dropLists=[];_dropListRef;connectedTo=[];data;orientation;id=d(Ye).getId("cdk-drop-list-");lockAxis;get disabled(){return this._disabled||!!this._group&&this._group.disabled}set disabled(e){this._dropListRef.disabled=this._disabled=e}_disabled;sortingDisabled;enterPredicate=()=>!0;sortPredicate=()=>!0;autoScrollDisabled;autoScrollStep;elementContainerSelector;dropped=new L;entered=new L;exited=new L;sorted=new L;_unsortedItems=new Set;constructor(){let e=d(gf),t=d(aC,{optional:!0});this._dropListRef=e.createDropList(this.element),this._dropListRef.data=this,t&&this._assignDefaults(t),this._dropListRef.enterPredicate=(o,r)=>this.enterPredicate(o.data,r.data),this._dropListRef.sortPredicate=(o,r,a)=>this.sortPredicate(o,r.data,a.data),this._setupInputSyncSubscription(this._dropListRef),this._handleEvents(this._dropListRef),i._dropLists.push(this),this._group&&this._group._items.add(this)}addItem(e){this._unsortedItems.add(e),this._dropListRef.isDragging()&&this._syncItemsWithRef(this.getSortedItems().map(t=>t._dragRef))}removeItem(e){if(this._unsortedItems.delete(e),this._latestSortedRefs){let t=this._latestSortedRefs.indexOf(e._dragRef);t>-1&&(this._latestSortedRefs.splice(t,1),this._syncItemsWithRef(this._latestSortedRefs))}}getSortedItems(){return Array.from(this._unsortedItems).sort((e,t)=>e._dragRef.getVisibleElement().compareDocumentPosition(t._dragRef.getVisibleElement())&Node.DOCUMENT_POSITION_FOLLOWING?-1:1)}ngOnDestroy(){let e=i._dropLists.indexOf(this);e>-1&&i._dropLists.splice(e,1),this._group&&this._group._items.delete(this),this._latestSortedRefs=void 0,this._unsortedItems.clear(),this._dropListRef.dispose(),this._destroyed.next(),this._destroyed.complete()}_setupInputSyncSubscription(e){this._dir&&this._dir.change.pipe(ot(this._dir.value),pe(this._destroyed)).subscribe(t=>e.withDirection(t)),e.beforeStarted.subscribe(()=>{let t=ho(this.connectedTo).map(o=>{if(typeof o=="string"){let r=i._dropLists.find(a=>a.id===o);return r}return o});if(this._group&&this._group._items.forEach(o=>{t.indexOf(o)===-1&&t.push(o)}),!this._scrollableParentsResolved){let o=this._scrollDispatcher.getAncestorScrollContainers(this.element).map(r=>r.getElementRef().nativeElement);this._dropListRef.withScrollableParents(o),this._scrollableParentsResolved=!0}if(this.elementContainerSelector){let o=this.element.nativeElement.querySelector(this.elementContainerSelector);e.withElementContainer(o)}e.disabled=this.disabled,e.lockAxis=this.lockAxis,e.sortingDisabled=this.sortingDisabled,e.autoScrollDisabled=this.autoScrollDisabled,e.autoScrollStep=Ut(this.autoScrollStep,2),e.connectedTo(t.filter(o=>o&&o!==this).map(o=>o._dropListRef)).withOrientation(this.orientation)})}_handleEvents(e){e.beforeStarted.subscribe(()=>{this._syncItemsWithRef(this.getSortedItems().map(t=>t._dragRef)),this._changeDetectorRef.markForCheck()}),e.entered.subscribe(t=>{this.entered.emit({container:this,item:t.item.data,currentIndex:t.currentIndex})}),e.exited.subscribe(t=>{this.exited.emit({container:this,item:t.item.data}),this._changeDetectorRef.markForCheck()}),e.sorted.subscribe(t=>{this.sorted.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,container:this,item:t.item.data})}),e.dropped.subscribe(t=>{this.dropped.emit({previousIndex:t.previousIndex,currentIndex:t.currentIndex,previousContainer:t.previousContainer.data,container:t.container.data,item:t.item.data,isPointerOverContainer:t.isPointerOverContainer,distance:t.distance,dropPoint:t.dropPoint,event:t.event}),this._changeDetectorRef.markForCheck()}),Le(e.receivingStarted,e.receivingStopped).subscribe(()=>this._changeDetectorRef.markForCheck())}_assignDefaults(e){let{lockAxis:t,draggingDisabled:o,sortingDisabled:r,listAutoScrollDisabled:a,listOrientation:s}=e;this.disabled=o??!1,this.sortingDisabled=r??!1,this.autoScrollDisabled=a??!1,this.orientation=s||"vertical",t&&(this.lockAxis=t)}_syncItemsWithRef(e){this._latestSortedRefs=e,this._dropListRef.withItems(e)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","cdkDropList",""],["cdk-drop-list"]],hostAttrs:[1,"cdk-drop-list"],hostVars:7,hostBindings:function(t,o){t&2&&(Y("id",o.id),j("cdk-drop-list-disabled",o.disabled)("cdk-drop-list-dragging",o._dropListRef.isDragging())("cdk-drop-list-receiving",o._dropListRef.isReceiving()))},inputs:{connectedTo:[0,"cdkDropListConnectedTo","connectedTo"],data:[0,"cdkDropListData","data"],orientation:[0,"cdkDropListOrientation","orientation"],id:"id",lockAxis:[0,"cdkDropListLockAxis","lockAxis"],disabled:[2,"cdkDropListDisabled","disabled",X],sortingDisabled:[2,"cdkDropListSortingDisabled","sortingDisabled",X],enterPredicate:[0,"cdkDropListEnterPredicate","enterPredicate"],sortPredicate:[0,"cdkDropListSortPredicate","sortPredicate"],autoScrollDisabled:[2,"cdkDropListAutoScrollDisabled","autoScrollDisabled",X],autoScrollStep:[0,"cdkDropListAutoScrollStep","autoScrollStep"],elementContainerSelector:[0,"cdkDropListElementContainer","elementContainerSelector"]},outputs:{dropped:"cdkDropListDropped",entered:"cdkDropListEntered",exited:"cdkDropListExited",sorted:"cdkDropListSorted"},exportAs:["cdkDropList"],features:[Me([{provide:Xy,useValue:void 0},{provide:sC,useExisting:i}])]})}return i})();var dC=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({providers:[gf],imports:[Ht]})}return i})();var wO=(i,n)=>({published:i,draft:n}),Bu=class i{constructor(){this.text=""}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=E({type:i,selectors:[["app-pill"]],inputs:{text:"text"},decls:2,vars:5,consts:[[1,"status-pill",3,"ngClass"]],template:function(e,t){e&1&&(l(0,"span",0),p(1),c()),e&2&&(x("ngClass",Lg(2,wO,t.text==="Published",t.text!=="Published")),m(),U(" ",t.text,` -`))},dependencies:[Ae,ln],styles:[".status-pill[_ngcontent-%COMP%]{border:1px solid;border-radius:12px;padding:4px 12px;font-size:12px;font-weight:700}.published[_ngcontent-%COMP%]{border-color:#66bb6a;color:#66bb6a}.draft[_ngcontent-%COMP%]{border-color:#616161;color:#fff}"]})}};function DO(i,n){if(i&1&&p(0),i&2){let e=f(2).$implicit;U(" ",e.iconText," ")}}function MO(i,n){if(i&1&&(l(0,"mat-icon"),p(1),c()),i&2){let e=f(2).$implicit;m(),$(e.iconName)}}function kO(i,n){if(i&1&&(l(0,"div",7),w(1,DO,1,1)(2,MO,2,1,"mat-icon"),c()),i&2){let e=f().$implicit;m(),C(e.iconText?1:-1),m(),C(e.iconName?2:-1)}}function SO(i,n){if(i&1&&(l(0,"div",3)(1,"div",5)(2,"div",6)(3,"mat-icon"),p(4,"drag_indicator"),c()(),w(5,kO,3,2,"div",7),l(6,"span",8),p(7),c()(),l(8,"div",9),M(9,"app-pill",10),c()()),i&2){let e=n.$implicit;x("cdkDragData",e),m(5),C(e.iconText||e.iconName?5:-1),m(2),$(e.name),m(2),x("text",e.type)}}function EO(i,n){i&1&&(l(0,"div",4),p(1,"No fields available"),c())}var ju=class i{constructor(){this.fields=[];this.fieldsChange=new L;this.editField=new L;this.deleteField=new L}onEdit(n){this.editField.emit(n)}onDelete(n){this.deleteField.emit(n)}drop(n){n.previousIndex!==n.currentIndex&&(Vu(this.fields,n.previousIndex,n.currentIndex),this.fieldsChange.emit([...this.fields]))}trackByField(n,e){return e.id||e.name}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=E({type:i,selectors:[["app-fields-list"]],inputs:{fields:"fields"},outputs:{fieldsChange:"fieldsChange",editField:"editField",deleteField:"deleteField"},decls:6,vars:2,consts:[[1,"fields-container"],[1,"fields-container__scrollable-list"],["cdkDropList","",1,"fields-container__list",3,"cdkDropListDropped","cdkDropListData"],["cdkDrag","",1,"fields-container__row",3,"cdkDragData"],[1,"fields-container__empty"],[1,"fields-container__column","fields-container__column--left"],["cdkDragHandle","",1,"fields-container__drag-handle"],[1,"fields-container__icon"],[1,"fields-container__name"],[1,"fields-container__column","fields-container__column--middle"],[3,"text"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"div",1)(2,"div",2),b("cdkDropListDropped",function(r){return t.drop(r)}),de(3,SO,10,4,"div",3,t.trackByField,!0),w(5,EO,2,0,"div",4),c()()()),e&2&&(m(2),x("cdkDropListData",t.fields),m(),ue(t.fields),m(2),C(t.fields.length===0?5:-1))},dependencies:[fe,Ce,ke,dC,cC,lC,rC,Bu],styles:[".fields-container__scrollable-list[_ngcontent-%COMP%]{height:63vh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(172,153,234,.3) transparent}.fields-container__list[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:.5rem}.fields-container__row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;background:#1e1e1e;border-radius:8px;padding:.5rem 1rem;box-shadow:0 4px 6px #0000001a;transition:transform .2s ease,box-shadow .2s ease}.fields-container__row[_ngcontent-%COMP%]:hover{box-shadow:0 6px 8px #00000026}.fields-container__column[_ngcontent-%COMP%]{display:flex;align-items:center}.fields-container__column--left[_ngcontent-%COMP%]{flex:0 0 33%;max-width:33%;gap:.5rem}.fields-container__column--middle[_ngcontent-%COMP%]{flex:0 0 33%;display:flex;justify-content:center}.fields-container__column--right[_ngcontent-%COMP%]{flex:0 0 33%;display:flex;justify-content:flex-end;gap:.25rem}.fields-container__drag-handle[_ngcontent-%COMP%]{color:#aaaaaa1f;cursor:move;display:flex;align-items:center;transition:color .2s ease}.fields-container__drag-handle[_ngcontent-%COMP%]:hover{color:#aaaaaa80}.fields-container__icon[_ngcontent-%COMP%]{background-color:#d5ccf529;color:#ac99ea;width:50px;height:32px;border-radius:4px;display:flex;align-items:center;justify-content:center;font-weight:600;font-size:1rem;border:1px solid rgba(213,204,245,.5)}.fields-container__name[_ngcontent-%COMP%]{color:#fff;font-size:.875rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.fields-container__action-button[_ngcontent-%COMP%]{opacity:.7;transition:opacity .2s ease}.fields-container__action-button[_ngcontent-%COMP%]:hover{opacity:1}.fields-container__empty[_ngcontent-%COMP%]{padding:1rem;text-align:center;color:#ffffffb3;font-style:italic}.cdk-drag-preview[_ngcontent-%COMP%]{box-sizing:border-box;border-radius:8px;box-shadow:0 5px 5px -3px #0003,0 8px 10px 1px #00000024,0 3px 14px 2px #0000001f;background-color:#1e1e1e;opacity:.9}.cdk-drag-placeholder[_ngcontent-%COMP%]{opacity:.3}.cdk-drag-animating[_ngcontent-%COMP%]{transition:transform .25s cubic-bezier(0,0,.2,1)}.fields-container__list.cdk-drop-list-dragging[_ngcontent-%COMP%] .fields-container__row[_ngcontent-%COMP%]:not(.cdk-drag-placeholder){transition:transform .25s cubic-bezier(0,0,.2,1)}"],changeDetection:0})}};var uC=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({imports:[se,Ht,Ht,se]})}return i})();var mC=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({imports:[se,se]})}return i})();var OO=["*"],TO=`.mdc-list{margin:0;padding:8px 0;list-style-type:none}.mdc-list:focus{outline:none}.mdc-list-item{display:flex;position:relative;justify-content:flex-start;overflow:hidden;padding:0;align-items:stretch;cursor:pointer;padding-left:16px;padding-right:16px;background-color:var(--mdc-list-list-item-container-color, transparent);border-radius:var(--mdc-list-list-item-container-shape, var(--mat-sys-corner-none))}.mdc-list-item.mdc-list-item--selected{background-color:var(--mdc-list-list-item-selected-container-color)}.mdc-list-item:focus{outline:0}.mdc-list-item.mdc-list-item--disabled{cursor:auto}.mdc-list-item.mdc-list-item--with-one-line{height:var(--mdc-list-list-item-one-line-container-height, 48px)}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__start{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-one-line .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-two-lines{height:var(--mdc-list-list-item-two-line-container-height, 64px)}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-two-lines .mdc-list-item__end{align-self:center;margin-top:0}.mdc-list-item.mdc-list-item--with-three-lines{height:var(--mdc-list-list-item-three-line-container-height, 88px)}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__start{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:16px}.mdc-list-item.mdc-list-item--selected::before,.mdc-list-item.mdc-list-item--selected:focus::before,.mdc-list-item:not(.mdc-list-item--selected):focus::before{position:absolute;box-sizing:border-box;width:100%;height:100%;top:0;left:0;content:"";pointer-events:none}a.mdc-list-item{color:inherit;text-decoration:none}.mdc-list-item__start{fill:currentColor;flex-shrink:0;pointer-events:none}.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-leading-icon-color, var(--mat-sys-on-surface-variant));width:var(--mdc-list-list-item-leading-icon-size, 24px);height:var(--mdc-list-list-item-leading-icon-size, 24px);margin-left:16px;margin-right:32px}[dir=rtl] .mdc-list-item--with-leading-icon .mdc-list-item__start{margin-left:32px;margin-right:16px}.mdc-list-item--with-leading-icon:hover .mdc-list-item__start{color:var(--mdc-list-list-item-hover-leading-icon-color)}.mdc-list-item--with-leading-avatar .mdc-list-item__start{width:var(--mdc-list-list-item-leading-avatar-size, 40px);height:var(--mdc-list-list-item-leading-avatar-size, 40px);margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item--with-leading-avatar .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-avatar .mdc-list-item__start{margin-left:16px;margin-right:16px;border-radius:50%}.mdc-list-item__end{flex-shrink:0;pointer-events:none}.mdc-list-item--with-trailing-meta .mdc-list-item__end{font-family:var(--mdc-list-list-item-trailing-supporting-text-font, var(--mat-sys-label-small-font));line-height:var(--mdc-list-list-item-trailing-supporting-text-line-height, var(--mat-sys-label-small-line-height));font-size:var(--mdc-list-list-item-trailing-supporting-text-size, var(--mat-sys-label-small-size));font-weight:var(--mdc-list-list-item-trailing-supporting-text-weight, var(--mat-sys-label-small-weight));letter-spacing:var(--mdc-list-list-item-trailing-supporting-text-tracking, var(--mat-sys-label-small-tracking))}.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-icon-color, var(--mat-sys-on-surface-variant));width:var(--mdc-list-list-item-trailing-icon-size, 24px);height:var(--mdc-list-list-item-trailing-icon-size, 24px)}.mdc-list-item--with-trailing-icon:hover .mdc-list-item__end{color:var(--mdc-list-list-item-hover-trailing-icon-color)}.mdc-list-item.mdc-list-item--with-trailing-meta .mdc-list-item__end{color:var(--mdc-list-list-item-trailing-supporting-text-color, var(--mat-sys-on-surface-variant))}.mdc-list-item--selected.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-selected-trailing-icon-color, var(--mat-sys-primary))}.mdc-list-item__content{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;align-self:center;flex:1;pointer-events:none}.mdc-list-item--with-two-lines .mdc-list-item__content,.mdc-list-item--with-three-lines .mdc-list-item__content{align-self:stretch}.mdc-list-item__primary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;color:var(--mdc-list-list-item-label-text-color, var(--mat-sys-on-surface));font-family:var(--mdc-list-list-item-label-text-font, var(--mat-sys-body-large-font));line-height:var(--mdc-list-list-item-label-text-line-height, var(--mat-sys-body-large-line-height));font-size:var(--mdc-list-list-item-label-text-size, var(--mat-sys-body-large-size));font-weight:var(--mdc-list-list-item-label-text-weight, var(--mat-sys-body-large-weight));letter-spacing:var(--mdc-list-list-item-label-text-tracking, var(--mat-sys-body-large-tracking))}.mdc-list-item:hover .mdc-list-item__primary-text{color:var(--mdc-list-list-item-hover-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:focus .mdc-list-item__primary-text{color:var(--mdc-list-list-item-focus-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-three-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-three-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item__secondary-text{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;margin-top:0;color:var(--mdc-list-list-item-supporting-text-color, var(--mat-sys-on-surface-variant));font-family:var(--mdc-list-list-item-supporting-text-font, var(--mat-sys-body-medium-font));line-height:var(--mdc-list-list-item-supporting-text-line-height, var(--mat-sys-body-medium-line-height));font-size:var(--mdc-list-list-item-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-list-list-item-supporting-text-weight, var(--mat-sys-body-medium-weight));letter-spacing:var(--mdc-list-list-item-supporting-text-tracking, var(--mat-sys-body-medium-tracking))}.mdc-list-item__secondary-text::before{display:inline-block;width:0;height:20px;content:"";vertical-align:0}.mdc-list-item--with-three-lines .mdc-list-item__secondary-text{white-space:normal;line-height:20px}.mdc-list-item--with-overline .mdc-list-item__secondary-text{white-space:nowrap;line-height:auto}.mdc-list-item--with-leading-radio.mdc-list-item,.mdc-list-item--with-leading-checkbox.mdc-list-item,.mdc-list-item--with-leading-icon.mdc-list-item,.mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:0;padding-right:16px}[dir=rtl] .mdc-list-item--with-leading-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-checkbox.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-leading-avatar.mdc-list-item{padding-left:16px;padding-right:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-icon.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before,.mdc-list-item--with-leading-avatar.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:32px;content:"";vertical-align:0}.mdc-list-item--with-trailing-icon.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-icon.mdc-list-item{padding-left:0;padding-right:0}.mdc-list-item--with-trailing-icon .mdc-list-item__end{margin-left:16px;margin-right:16px}.mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-meta.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-meta .mdc-list-item__end{-webkit-user-select:none;user-select:none;margin-left:28px;margin-right:16px}[dir=rtl] .mdc-list-item--with-trailing-meta .mdc-list-item__end{margin-left:16px;margin-right:28px}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end{display:block;line-height:normal;align-self:flex-start;margin-top:0}.mdc-list-item--with-trailing-meta.mdc-list-item--with-three-lines .mdc-list-item__end::before,.mdc-list-item--with-trailing-meta.mdc-list-item--with-two-lines .mdc-list-item__end::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-list-item--with-leading-radio .mdc-list-item__start,.mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:8px;margin-right:24px}[dir=rtl] .mdc-list-item--with-leading-radio .mdc-list-item__start,[dir=rtl] .mdc-list-item--with-leading-checkbox .mdc-list-item__start{margin-left:24px;margin-right:8px}.mdc-list-item--with-leading-radio.mdc-list-item--with-two-lines .mdc-list-item__start,.mdc-list-item--with-leading-checkbox.mdc-list-item--with-two-lines .mdc-list-item__start{align-self:flex-start;margin-top:8px}.mdc-list-item--with-trailing-radio.mdc-list-item,.mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:16px;padding-right:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item{padding-left:0;padding-right:16px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-left:0}[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-radio.mdc-list-item--with-leading-avatar,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-icon,[dir=rtl] .mdc-list-item--with-trailing-checkbox.mdc-list-item--with-leading-avatar{padding-right:0}.mdc-list-item--with-trailing-radio .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:24px;margin-right:8px}[dir=rtl] .mdc-list-item--with-trailing-radio .mdc-list-item__end,[dir=rtl] .mdc-list-item--with-trailing-checkbox .mdc-list-item__end{margin-left:8px;margin-right:24px}.mdc-list-item--with-trailing-radio.mdc-list-item--with-three-lines .mdc-list-item__end,.mdc-list-item--with-trailing-checkbox.mdc-list-item--with-three-lines .mdc-list-item__end{align-self:flex-start;margin-top:8px}.mdc-list-group__subheader{margin:.75rem 16px}.mdc-list-item--disabled .mdc-list-item__start,.mdc-list-item--disabled .mdc-list-item__content,.mdc-list-item--disabled .mdc-list-item__end{opacity:1}.mdc-list-item--disabled .mdc-list-item__primary-text,.mdc-list-item--disabled .mdc-list-item__secondary-text{opacity:var(--mdc-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--disabled.mdc-list-item--with-leading-icon .mdc-list-item__start{color:var(--mdc-list-list-item-disabled-leading-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-leading-icon-opacity, 0.38)}.mdc-list-item--disabled.mdc-list-item--with-trailing-icon .mdc-list-item__end{color:var(--mdc-list-list-item-disabled-trailing-icon-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-trailing-icon-opacity, 0.38)}.mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing,[dir=rtl] .mat-mdc-list-item.mat-mdc-list-item-both-leading-and-trailing{padding-left:0;padding-right:0}.mdc-list-item.mdc-list-item--disabled .mdc-list-item__primary-text{color:var(--mdc-list-list-item-disabled-label-text-color, var(--mat-sys-on-surface))}.mdc-list-item:hover::before{background-color:var(--mdc-list-list-item-hover-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-hover-state-layer-opacity, var(--mat-sys-hover-state-layer-opacity))}.mdc-list-item.mdc-list-item--disabled::before{background-color:var(--mdc-list-list-item-disabled-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-disabled-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item:focus::before{background-color:var(--mdc-list-list-item-focus-state-layer-color, var(--mat-sys-on-surface));opacity:var(--mdc-list-list-item-focus-state-layer-opacity, var(--mat-sys-focus-state-layer-opacity))}.mdc-list-item--disabled .mdc-radio,.mdc-list-item--disabled .mdc-checkbox{opacity:var(--mdc-list-list-item-disabled-label-text-opacity, 0.3)}.mdc-list-item--with-leading-avatar .mat-mdc-list-item-avatar{border-radius:var(--mdc-list-list-item-leading-avatar-shape, var(--mat-sys-corner-full));background-color:var(--mdc-list-list-item-leading-avatar-color, var(--mat-sys-primary-container))}.mat-mdc-list-item-icon{font-size:var(--mdc-list-list-item-leading-icon-size, 24px)}@media(forced-colors: active){a.mdc-list-item--activated::after{content:"";position:absolute;top:50%;right:16px;transform:translateY(-50%);width:10px;height:0;border-bottom:solid 10px;border-radius:10px}a.mdc-list-item--activated [dir=rtl]::after{right:auto;left:16px}}.mat-mdc-list-base{display:block}.mat-mdc-list-base .mdc-list-item__start,.mat-mdc-list-base .mdc-list-item__end,.mat-mdc-list-base .mdc-list-item__content{pointer-events:auto}.mat-mdc-list-item,.mat-mdc-list-option{width:100%;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-list-item:not(.mat-mdc-list-item-interactive),.mat-mdc-list-option:not(.mat-mdc-list-item-interactive){cursor:default}.mat-mdc-list-item .mat-divider-inset,.mat-mdc-list-option .mat-divider-inset{position:absolute;left:0;right:0;bottom:0}.mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,.mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-left:72px}[dir=rtl] .mat-mdc-list-item .mat-mdc-list-item-avatar~.mat-divider-inset,[dir=rtl] .mat-mdc-list-option .mat-mdc-list-item-avatar~.mat-divider-inset{margin-right:72px}.mat-mdc-list-item-interactive::before{top:0;left:0;right:0;bottom:0;position:absolute;content:"";opacity:0;pointer-events:none;border-radius:inherit}.mat-mdc-list-item>.mat-focus-indicator{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-mdc-list-item:focus>.mat-focus-indicator::before{content:""}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-line.mdc-list-item__secondary-text{white-space:nowrap;line-height:normal}.mat-mdc-list-item.mdc-list-item--with-three-lines .mat-mdc-list-item-unscoped-content.mdc-list-item__secondary-text{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}mat-action-list button{background:none;color:inherit;border:none;font:inherit;outline:inherit;-webkit-tap-highlight-color:rgba(0,0,0,0);text-align:start}mat-action-list button::-moz-focus-inner{border:0}.mdc-list-item--with-leading-icon .mdc-list-item__start{margin-inline-start:var(--mat-list-list-item-leading-icon-start-space, 16px);margin-inline-end:var(--mat-list-list-item-leading-icon-end-space, 16px)}.mat-mdc-nav-list .mat-mdc-list-item{border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full));--mat-focus-indicator-border-radius:var(--mat-list-active-indicator-shape, var(--mat-sys-corner-full))}.mat-mdc-nav-list .mat-mdc-list-item.mdc-list-item--activated{background-color:var(--mat-list-active-indicator-color, var(--mat-sys-secondary-container))} -`,AO=["unscopedContent"],IO=["text"],PO=[[["","matListItemAvatar",""],["","matListItemIcon",""]],[["","matListItemTitle",""]],[["","matListItemLine",""]],"*",[["","matListItemMeta",""]],[["mat-divider"]]],RO=["[matListItemAvatar],[matListItemIcon]","[matListItemTitle]","[matListItemLine]","*","[matListItemMeta]","mat-divider"];var FO=new v("ListOption"),NO=(()=>{class i{_elementRef=d(Z);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","matListItemTitle",""]],hostAttrs:[1,"mat-mdc-list-item-title","mdc-list-item__primary-text"]})}return i})(),LO=(()=>{class i{_elementRef=d(Z);constructor(){}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","matListItemLine",""]],hostAttrs:[1,"mat-mdc-list-item-line","mdc-list-item__secondary-text"]})}return i})(),VO=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","matListItemMeta",""]],hostAttrs:[1,"mat-mdc-list-item-meta","mdc-list-item__end"]})}return i})(),pC=(()=>{class i{_listOption=d(FO,{optional:!0});constructor(){}_isAlignedAtStart(){return!this._listOption||this._listOption?._getTogglePosition()==="after"}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,hostVars:4,hostBindings:function(t,o){t&2&&j("mdc-list-item__start",o._isAlignedAtStart())("mdc-list-item__end",!o._isAlignedAtStart())}})}return i})(),BO=(()=>{class i extends pC{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ve(i)))(o||i)}})();static \u0275dir=z({type:i,selectors:[["","matListItemAvatar",""]],hostAttrs:[1,"mat-mdc-list-item-avatar"],features:[xe]})}return i})(),jO=(()=>{class i extends pC{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ve(i)))(o||i)}})();static \u0275dir=z({type:i,selectors:[["","matListItemIcon",""]],hostAttrs:[1,"mat-mdc-list-item-icon"],features:[xe]})}return i})(),zO=new v("MAT_LIST_CONFIG"),_f=(()=>{class i{_isNonInteractive=!0;get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=$t(e)}_disableRipple=!1;get disabled(){return this._disabled}set disabled(e){this._disabled=$t(e)}_disabled=!1;_defaultOptions=d(zO,{optional:!0});static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,hostVars:1,hostBindings:function(t,o){t&2&&Y("aria-disabled",o.disabled)},inputs:{disableRipple:"disableRipple",disabled:"disabled"}})}return i})(),UO=(()=>{class i{_elementRef=d(Z);_ngZone=d(K);_listBase=d(_f,{optional:!0});_platform=d(Se);_hostElement;_isButtonElement;_noopAnimations;_avatars;_icons;set lines(e){this._explicitLines=Ut(e,null),this._updateItemLines(!1)}_explicitLines=null;get disableRipple(){return this.disabled||this._disableRipple||this._noopAnimations||!!this._listBase?.disableRipple}set disableRipple(e){this._disableRipple=$t(e)}_disableRipple=!1;get disabled(){return this._disabled||!!this._listBase?.disabled}set disabled(e){this._disabled=$t(e)}_disabled=!1;_subscriptions=new ie;_rippleRenderer=null;_hasUnscopedTextContent=!1;rippleConfig;get rippleDisabled(){return this.disableRipple||!!this.rippleConfig.disabled}constructor(){d(We).load(Yi);let e=d(al,{optional:!0}),t=d(ze,{optional:!0});this.rippleConfig=e||{},this._hostElement=this._elementRef.nativeElement,this._isButtonElement=this._hostElement.nodeName.toLowerCase()==="button",this._noopAnimations=t==="NoopAnimations",this._listBase&&!this._listBase._isNonInteractive&&this._initInteractiveListItem(),this._isButtonElement&&!this._hostElement.hasAttribute("type")&&this._hostElement.setAttribute("type","button")}ngAfterViewInit(){this._monitorProjectedLinesAndTitle(),this._updateItemLines(!0)}ngOnDestroy(){this._subscriptions.unsubscribe(),this._rippleRenderer!==null&&this._rippleRenderer._removeTriggerEvents()}_hasIconOrAvatar(){return!!(this._avatars.length||this._icons.length)}_initInteractiveListItem(){this._hostElement.classList.add("mat-mdc-list-item-interactive"),this._rippleRenderer=new rr(this,this._ngZone,this._hostElement,this._platform,d(ce)),this._rippleRenderer.setupTriggerEvents(this._hostElement)}_monitorProjectedLinesAndTitle(){this._ngZone.runOutsideAngular(()=>{this._subscriptions.add(Le(this._lines.changes,this._titles.changes).subscribe(()=>this._updateItemLines(!1)))})}_updateItemLines(e){if(!this._lines||!this._titles||!this._unscopedContent)return;e&&this._checkDomForUnscopedTextContent();let t=this._explicitLines??this._inferLinesFromContent(),o=this._unscopedContent.nativeElement;if(this._hostElement.classList.toggle("mat-mdc-list-item-single-line",t<=1),this._hostElement.classList.toggle("mdc-list-item--with-one-line",t<=1),this._hostElement.classList.toggle("mdc-list-item--with-two-lines",t===2),this._hostElement.classList.toggle("mdc-list-item--with-three-lines",t===3),this._hasUnscopedTextContent){let r=this._titles.length===0&&t===1;o.classList.toggle("mdc-list-item__primary-text",r),o.classList.toggle("mdc-list-item__secondary-text",!r)}else o.classList.remove("mdc-list-item__primary-text"),o.classList.remove("mdc-list-item__secondary-text")}_inferLinesFromContent(){let e=this._titles.length+this._lines.length;return this._hasUnscopedTextContent&&(e+=1),e}_checkDomForUnscopedTextContent(){this._hasUnscopedTextContent=Array.from(this._unscopedContent.nativeElement.childNodes).filter(e=>e.nodeType!==e.COMMENT_NODE).some(e=>!!(e.textContent&&e.textContent.trim()))}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,contentQueries:function(t,o,r){if(t&1&&(it(r,BO,4),it(r,jO,4)),t&2){let a;ee(a=te())&&(o._avatars=a),ee(a=te())&&(o._icons=a)}},hostVars:4,hostBindings:function(t,o){t&2&&(Y("aria-disabled",o.disabled)("disabled",o._isButtonElement&&o.disabled||null),j("mdc-list-item--disabled",o.disabled))},inputs:{lines:"lines",disableRipple:"disableRipple",disabled:"disabled"}})}return i})();var hC=(()=>{class i extends _f{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ve(i)))(o||i)}})();static \u0275cmp=E({type:i,selectors:[["mat-list"]],hostAttrs:[1,"mat-mdc-list","mat-mdc-list-base","mdc-list"],exportAs:["matList"],features:[Me([{provide:_f,useExisting:i}]),xe],ngContentSelectors:OO,decls:1,vars:0,template:function(t,o){t&1&&(Te(),ae(0))},styles:[TO],encapsulation:2,changeDetection:0})}return i})(),fC=(()=>{class i extends UO{_lines;_titles;_meta;_unscopedContent;_itemText;get activated(){return this._activated}set activated(e){this._activated=$t(e)}_activated=!1;_getAriaCurrent(){return this._hostElement.nodeName==="A"&&this._activated?"page":null}_hasBothLeadingAndTrailing(){return this._meta.length!==0&&(this._avatars.length!==0||this._icons.length!==0)}static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ve(i)))(o||i)}})();static \u0275cmp=E({type:i,selectors:[["mat-list-item"],["a","mat-list-item",""],["button","mat-list-item",""]],contentQueries:function(t,o,r){if(t&1&&(it(r,LO,5),it(r,NO,5),it(r,VO,5)),t&2){let a;ee(a=te())&&(o._lines=a),ee(a=te())&&(o._titles=a),ee(a=te())&&(o._meta=a)}},viewQuery:function(t,o){if(t&1&&(ge(AO,5),ge(IO,5)),t&2){let r;ee(r=te())&&(o._unscopedContent=r.first),ee(r=te())&&(o._itemText=r.first)}},hostAttrs:[1,"mat-mdc-list-item","mdc-list-item"],hostVars:13,hostBindings:function(t,o){t&2&&(Y("aria-current",o._getAriaCurrent()),j("mdc-list-item--activated",o.activated)("mdc-list-item--with-leading-avatar",o._avatars.length!==0)("mdc-list-item--with-leading-icon",o._icons.length!==0)("mdc-list-item--with-trailing-meta",o._meta.length!==0)("mat-mdc-list-item-both-leading-and-trailing",o._hasBothLeadingAndTrailing())("_mat-animation-noopable",o._noopAnimations))},inputs:{activated:"activated"},exportAs:["matListItem"],features:[xe],ngContentSelectors:RO,decls:10,vars:0,consts:[["unscopedContent",""],[1,"mdc-list-item__content"],[1,"mat-mdc-list-item-unscoped-content",3,"cdkObserveContent"],[1,"mat-focus-indicator"]],template:function(t,o){if(t&1){let r=Q();Te(PO),ae(0),l(1,"span",1),ae(2,1),ae(3,2),l(4,"span",2,0),b("cdkObserveContent",function(){return I(r),P(o._updateItemLines(!0))}),ae(6,3),c()(),ae(7,4),ae(8,5),M(9,"div",3)}},dependencies:[Zb],encapsulation:2,changeDetection:0})}return i})();var gC=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({imports:[Br,se,Co,Ou,mC]})}return i})();var $O=["determinateSpinner"];function GO(i,n){if(i&1&&(vt(),l(0,"svg",11),M(1,"circle",12),c()),i&2){let e=f();Y("viewBox",e._viewBox()),m(),pt("stroke-dasharray",e._strokeCircumference(),"px")("stroke-dashoffset",e._strokeCircumference()/2,"px")("stroke-width",e._circleStrokeWidth(),"%"),Y("r",e._circleRadius())}}var WO=new v("mat-progress-spinner-default-options",{providedIn:"root",factory:YO});function YO(){return{diameter:_C}}var _C=100,qO=10,Al=(()=>{class i{_elementRef=d(Z);_noopAnimations;get color(){return this._color||this._defaultColor}set color(e){this._color=e}_color;_defaultColor="primary";_determinateCircle;constructor(){let e=d(ze,{optional:!0}),t=d(WO);this._noopAnimations=e==="NoopAnimations"&&!!t&&!t._forceAnimations,this.mode=this._elementRef.nativeElement.nodeName.toLowerCase()==="mat-spinner"?"indeterminate":"determinate",t&&(t.color&&(this.color=this._defaultColor=t.color),t.diameter&&(this.diameter=t.diameter),t.strokeWidth&&(this.strokeWidth=t.strokeWidth))}mode;get value(){return this.mode==="determinate"?this._value:0}set value(e){this._value=Math.max(0,Math.min(100,e||0))}_value=0;get diameter(){return this._diameter}set diameter(e){this._diameter=e||0}_diameter=_C;get strokeWidth(){return this._strokeWidth??this.diameter/10}set strokeWidth(e){this._strokeWidth=e||0}_strokeWidth;_circleRadius(){return(this.diameter-qO)/2}_viewBox(){let e=this._circleRadius()*2+this.strokeWidth;return`0 0 ${e} ${e}`}_strokeCircumference(){return 2*Math.PI*this._circleRadius()}_strokeDashOffset(){return this.mode==="determinate"?this._strokeCircumference()*(100-this._value)/100:null}_circleStrokeWidth(){return this.strokeWidth/this.diameter*100}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-progress-spinner"],["mat-spinner"]],viewQuery:function(t,o){if(t&1&&ge($O,5),t&2){let r;ee(r=te())&&(o._determinateCircle=r.first)}},hostAttrs:["role","progressbar","tabindex","-1",1,"mat-mdc-progress-spinner","mdc-circular-progress"],hostVars:18,hostBindings:function(t,o){t&2&&(Y("aria-valuemin",0)("aria-valuemax",100)("aria-valuenow",o.mode==="determinate"?o.value:null)("mode",o.mode),jt("mat-"+o.color),pt("width",o.diameter,"px")("height",o.diameter,"px")("--mdc-circular-progress-size",o.diameter+"px")("--mdc-circular-progress-active-indicator-width",o.diameter+"px"),j("_mat-animation-noopable",o._noopAnimations)("mdc-circular-progress--indeterminate",o.mode==="indeterminate"))},inputs:{color:"color",mode:"mode",value:[2,"value","value",yi],diameter:[2,"diameter","diameter",yi],strokeWidth:[2,"strokeWidth","strokeWidth",yi]},exportAs:["matProgressSpinner"],decls:14,vars:11,consts:[["circle",""],["determinateSpinner",""],["aria-hidden","true",1,"mdc-circular-progress__determinate-container"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__determinate-circle-graphic"],["cx","50%","cy","50%",1,"mdc-circular-progress__determinate-circle"],["aria-hidden","true",1,"mdc-circular-progress__indeterminate-container"],[1,"mdc-circular-progress__spinner-layer"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-left"],[3,"ngTemplateOutlet"],[1,"mdc-circular-progress__gap-patch"],[1,"mdc-circular-progress__circle-clipper","mdc-circular-progress__circle-right"],["xmlns","http://www.w3.org/2000/svg","focusable","false",1,"mdc-circular-progress__indeterminate-circle-graphic"],["cx","50%","cy","50%"]],template:function(t,o){if(t&1&&(w(0,GO,2,8,"ng-template",null,0,Za),l(2,"div",2,1),vt(),l(4,"svg",3),M(5,"circle",4),c()(),gi(),l(6,"div",5)(7,"div",6)(8,"div",7),wr(9,8),c(),l(10,"div",9),wr(11,8),c(),l(12,"div",10),wr(13,8),c()()()),t&2){let r=ft(1);m(4),Y("viewBox",o._viewBox()),m(),pt("stroke-dasharray",o._strokeCircumference(),"px")("stroke-dashoffset",o._strokeDashOffset(),"px")("stroke-width",o._circleStrokeWidth(),"%"),Y("r",o._circleRadius()),m(4),x("ngTemplateOutlet",r),m(2),x("ngTemplateOutlet",r),m(2),x("ngTemplateOutlet",r)}},dependencies:[rs],styles:[`.mat-mdc-progress-spinner{display:block;overflow:hidden;line-height:0;position:relative;direction:ltr;transition:opacity 250ms cubic-bezier(0.4, 0, 0.6, 1)}.mat-mdc-progress-spinner circle{stroke-width:var(--mdc-circular-progress-active-indicator-width, 4px)}.mat-mdc-progress-spinner._mat-animation-noopable,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__determinate-circle{transition:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__spinner-layer,.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container{animation:none !important}.mat-mdc-progress-spinner._mat-animation-noopable .mdc-circular-progress__indeterminate-container circle{stroke-dasharray:0 !important}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic,.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle{stroke:currentColor;stroke:CanvasText}}.mdc-circular-progress__determinate-container,.mdc-circular-progress__indeterminate-circle-graphic,.mdc-circular-progress__indeterminate-container,.mdc-circular-progress__spinner-layer{position:absolute;width:100%;height:100%}.mdc-circular-progress__determinate-container{transform:rotate(-90deg)}.mdc-circular-progress--indeterminate .mdc-circular-progress__determinate-container{opacity:0}.mdc-circular-progress__indeterminate-container{font-size:0;letter-spacing:0;white-space:nowrap;opacity:0}.mdc-circular-progress--indeterminate .mdc-circular-progress__indeterminate-container{opacity:1;animation:mdc-circular-progress-container-rotate 1568.2352941176ms linear infinite}.mdc-circular-progress__determinate-circle-graphic,.mdc-circular-progress__indeterminate-circle-graphic{fill:rgba(0,0,0,0)}.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:var(--mdc-circular-progress-active-indicator-color, var(--mat-sys-primary))}@media(forced-colors: active){.mat-mdc-progress-spinner .mdc-circular-progress__determinate-circle,.mat-mdc-progress-spinner .mdc-circular-progress__indeterminate-circle-graphic{stroke:CanvasText}}.mdc-circular-progress__determinate-circle{transition:stroke-dashoffset 500ms cubic-bezier(0, 0, 0.2, 1)}.mdc-circular-progress__gap-patch{position:absolute;top:0;left:47.5%;box-sizing:border-box;width:5%;height:100%;overflow:hidden}.mdc-circular-progress__gap-patch .mdc-circular-progress__indeterminate-circle-graphic{left:-900%;width:2000%;transform:rotate(180deg)}.mdc-circular-progress__circle-clipper .mdc-circular-progress__indeterminate-circle-graphic{width:200%}.mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{left:-100%}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-left .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-left-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress--indeterminate .mdc-circular-progress__circle-right .mdc-circular-progress__indeterminate-circle-graphic{animation:mdc-circular-progress-right-spin 1333ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}.mdc-circular-progress__circle-clipper{display:inline-flex;position:relative;width:50%;height:100%;overflow:hidden}.mdc-circular-progress--indeterminate .mdc-circular-progress__spinner-layer{animation:mdc-circular-progress-spinner-layer-rotate 5332ms cubic-bezier(0.4, 0, 0.2, 1) infinite both}@keyframes mdc-circular-progress-container-rotate{to{transform:rotate(360deg)}}@keyframes mdc-circular-progress-spinner-layer-rotate{12.5%{transform:rotate(135deg)}25%{transform:rotate(270deg)}37.5%{transform:rotate(405deg)}50%{transform:rotate(540deg)}62.5%{transform:rotate(675deg)}75%{transform:rotate(810deg)}87.5%{transform:rotate(945deg)}100%{transform:rotate(1080deg)}}@keyframes mdc-circular-progress-left-spin{from{transform:rotate(265deg)}50%{transform:rotate(130deg)}to{transform:rotate(265deg)}}@keyframes mdc-circular-progress-right-spin{from{transform:rotate(-265deg)}50%{transform:rotate(-130deg)}to{transform:rotate(-265deg)}} -`],encapsulation:2,changeDetection:0})}return i})(),zu=Al,Uu=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({imports:[se]})}return i})();var Il=ra("auth"),bC=Re(Il,i=>i.user),vC=Re(Il,i=>i.token),wa=Re(Il,i=>i.isAuthenticated),yC=Re(Il,i=>i.loading),CC=Re(Il,i=>i.error);var ZO=["searchInput"],QO=i=>({selected:i});function XO(i,n){if(i&1){let e=Q();l(0,"span",8),p(1),c(),l(2,"button",9),b("click",function(){I(e);let o=f();return P(o.toggleSearch())}),l(3,"mat-icon"),p(4,"search"),c()()}if(i&2){let e=f();m(),$(e.headerText)}}function JO(i,n){if(i&1){let e=Q();l(0,"button",13),b("click",function(){I(e);let o=f(2);return P(o.clearSearch())}),l(1,"mat-icon",14),p(2,"close"),c()()}}function eT(i,n){if(i&1){let e=Q();l(0,"div",2)(1,"mat-icon",10),p(2,"search"),c(),l(3,"input",11,0),kn("ngModelChange",function(o){I(e);let r=f();return Mn(r.searchText,o)||(r.searchText=o),P(o)}),b("blur",function(){I(e);let o=f();return P(o.closeSearch())})("input",function(){I(e);let o=f();return P(o.onSearchTextChange(o.searchText))})("keydown",function(o){I(e);let r=f();return P(r.onKeyDown(o))}),c(),w(5,JO,3,0,"button",12),c()}if(i&2){let e=f();m(3),Dn("ngModel",e.searchText),m(2),C(e.searchText?5:-1)}}function tT(i,n){if(i&1){let e=Q();l(0,"div",5)(1,"app-button",15),b("click",function(){I(e);let o=f();return P(o.openAddCollectionTypeDialog())}),c()()}}function iT(i,n){i&1&&(l(0,"mat-icon",18),p(1,"people"),c())}function nT(i,n){if(i&1){let e=Q();l(0,"mat-list-item",17),b("click",function(){let o=I(e).$implicit,r=f(2);return P(r.selectCollectionType(o))}),w(1,iT,2,0,"mat-icon",18),p(2),c()}if(i&2){let e=n.$implicit;f(2);let t=Fg(8);x("ngClass",Ng(4,QO,t===e)),Y("aria-label",e),m(),C(e==="Users"?1:-1),m(),U(" ",e," ")}}function oT(i,n){if(i&1&&(l(0,"mat-list"),de(1,nT,3,6,"mat-list-item",16,Tg().trackByFn,!0),c()),i&2){let e=f();m(),ue(e.filteredCollectionTypes)}}function rT(i,n){i&1&&(l(0,"div",7)(1,"mat-icon"),p(2,"search_off"),c(),l(3,"p"),p(4,"No collection types found"),c(),l(5,"p",19),p(6,"Try different search terms"),c()())}var So=class i{constructor(n,e,t){this.dialog=n;this.router=e;this.store=t;this.headerText="Builder";this.subscriptions=new ie;this.isLoadingTypes=!1;this.isSearching=!1;this.isAdmin=!1;this.selectedType$=this.store.select(ut);this.collectionTypes$=this.store.select(zn);this.collectionTypes=[];this.collectionTypesError$=this.store.select(ay);this.publishedCollectionTypes$=this.store.select(ou);this.filteredCollectionTypes=[];this.searchText="";this.selectedType="";this.responseModel$=this.store.select(au);this.responseModel=null;this.destroy$=new S;this.searchTextChanged=new S;this.baseCollectionTypes$=null}ngOnInit(){let n=this.headerText==="Builder"?this.collectionTypes$:this.publishedCollectionTypes$;this.baseCollectionTypes$=Ii([n,this.store.select(bC)]).pipe(A(([e,t])=>{let o=t?.roles.includes("Admin")??!1;this.isAdmin=o;let r=new Set([...e]),a=Array.from(r);return this.headerText!=="Builder"&&o&&!r.has("Users")&&a.push("Users"),a}),pe(this.destroy$)),this.headerText==="Builder"?this.store.dispatch(bn()):this.store.dispatch(_n()),this.subscriptions.add(this.baseCollectionTypes$.subscribe(e=>{this.filteredCollectionTypes=this.applySearchFilter(e,this.searchText)})),this.subscriptions.add(this.searchTextChanged.pipe(pe(this.destroy$),yn(300),Po()).subscribe(e=>{this.baseCollectionTypes$&&this.baseCollectionTypes$.pipe(_e(1)).subscribe(t=>{this.filteredCollectionTypes=this.applySearchFilter(t,e)})})),this.subscriptions.add(this.collectionTypesError$.subscribe(e=>{e&&(this.isLoadingTypes=!1)})),this.subscriptions.add(this.collectionTypes$.subscribe(e=>this.collectionTypes=e)),this.subscriptions.add(this.responseModel$.subscribe(e=>{this.responseModel=e}))}ngAfterViewInit(){this.isSearching&&this.searchInput&&this.searchInput.nativeElement.focus()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete(),this.subscriptions.unsubscribe()}selectCollectionType(n){this.store.dispatch(Zi({selectedType:n})),this.store.dispatch(jn({modelType:n})),this.headerText==="Builder"?this.router.navigate(["/builder"]):this.router.navigate(["/content-manager"])}toggleSearch(){this.isSearching=!0,setTimeout(()=>{this.searchInput&&this.searchInput.nativeElement.focus()})}closeSearch(){this.isSearching=!1,this.onSearchTextChange(""),this.searchText=""}clearSearch(){this.onSearchTextChange(""),this.searchText="",this.isSearching=!1}onSearchTextChange(n){this.searchText=n,this.searchTextChanged.next(n)}trackByFn(n,e){return`${e}-${n}`}onKeyDown(n){n.key==="Escape"&&this.clearSearch()}openAddCollectionTypeDialog(){let n=this.dialog.open(Do,{width:"450px",panelClass:"dark-theme-dialog",disableClose:!0});this.subscriptions.add(n.afterClosed().subscribe(()=>{this.headerText==="Builder"?this.store.dispatch(bn()):this.store.dispatch(_n())}))}applySearchFilter(n,e){if(!e.trim())return[...n];let t=e.toLowerCase();return n.filter(o=>o.toLowerCase().includes(t))}static{this.\u0275fac=function(e){return new(e||i)(k(Nn),k($e),k(he))}}static{this.\u0275cmp=E({type:i,selectors:[["app-sidebar"]],viewQuery:function(e,t){if(e&1&&ge(ZO,5),e&2){let o;ee(o=te())&&(t.searchInput=o.first)}},inputs:{headerText:"headerText"},decls:12,vars:6,consts:[["searchInput",""],[1,"sidebar-header"],[1,"search-container"],[1,"sidebar-divider"],[1,"section-title"],[1,"add-button-container"],[1,"scrollable-list"],[1,"no-results"],[1,"header-text"],["aria-label","Search",1,"header-icon",3,"click"],[1,"search-icon"],["type","text","placeholder","Search collection types...","autocomplete","off",3,"ngModelChange","blur","input","keydown","ngModel"],["aria-label","Clear search",1,"clear-button"],["aria-label","Clear search",1,"clear-button",3,"click"],[1,"close-icon"],["text","+ Add new collection type",3,"click"],[1,"custom-list-item",3,"ngClass"],[1,"custom-list-item",3,"click","ngClass"],[1,"item-icon"],[1,"search-hint"]],template:function(e,t){e&1&&(l(0,"div",1),w(1,XO,5,1)(2,eT,6,2,"div",2),c(),M(3,"div",3),l(4,"div",4),p(5,"Collection Types"),c(),w(6,tT,2,0,"div",5),l(7,"div",6),Zl(8),gt(9,"async"),w(10,oT,3,0,"mat-list")(11,rT,7,0,"div",7),c()),e&2&&(m(),C(t.isSearching?2:1),m(5),C(t.headerText!=="Content Manager"?6:-1),m(2),Rg(Ot(9,3,t.selectedType$)),m(2),C(t.filteredCollectionTypes.length>0?10:11))},dependencies:[uC,gC,hC,fC,Ae,ln,Ci,fe,Ce,pi,Mt,Pt,nr,Mo,Uu],styles:["[_nghost-%COMP%]{display:flex;flex-direction:column;width:280px;background:#121212;color:#fff;height:100vh;padding:32px 16px;border-right:1px solid rgba(255,255,255,.12);box-sizing:border-box;font-family:var(--mdc-typography-font-family, Roboto, sans-serif)}.sidebar-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;font-size:18px;font-weight:700;padding:8px 0;margin-bottom:4px}.header-text[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.header-icon[_ngcontent-%COMP%]{width:40px;height:40px;display:flex;justify-content:center;align-items:center;color:#ac99ea;border:1px solid rgba(213,204,245,.5);border-radius:4px;cursor:pointer;background:transparent;padding:0;transition:background-color .2s ease}.header-icon[_ngcontent-%COMP%]:hover{background-color:#ffffff0d}.header-icon[_ngcontent-%COMP%]:focus-visible{outline:2px solid #ac99ea;outline-offset:2px}.sidebar-divider[_ngcontent-%COMP%]{border:none;height:1px;background-color:#ffffff1f;margin:8px 0}.section-title[_ngcontent-%COMP%]{font-size:12px;margin:16px 0 8px;text-transform:uppercase;letter-spacing:.5px;opacity:.7;font-weight:500}.search-container[_ngcontent-%COMP%]{display:flex;align-items:center;border-radius:4px;height:40px;border:1px solid #ac99ea;width:100%;background-color:#ffffff0d;transition:box-shadow .2s ease}.search-container[_ngcontent-%COMP%]:focus-within{box-shadow:0 0 0 2px #ac99ea33}.search-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{background:transparent;border:none;outline:none;color:#fff;flex:1;font-size:14px;width:30%}.search-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#ffffff80}.search-icon[_ngcontent-%COMP%]{color:#ac99ea;margin:0 8px}.clear-button[_ngcontent-%COMP%]{background:transparent;border:none;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:4px;border-radius:50%}.clear-button[_ngcontent-%COMP%]:hover{background-color:#ffffff1a}.clear-button[_ngcontent-%COMP%]:focus-visible{outline:2px solid #ac99ea;outline-offset:2px}.close-icon[_ngcontent-%COMP%]{color:#ffffff8f;font-size:18px;height:18px;width:18px}.add-button-container[_ngcontent-%COMP%]{margin:8px 0 16px}.scrollable-list[_ngcontent-%COMP%]{flex:1;overflow-y:auto;margin-right:-16px;padding-right:16px;scrollbar-width:thin}.scrollable-list[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px}.scrollable-list[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#fff3;border-radius:2px}.scrollable-list[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:transparent}.item-icon[_ngcontent-%COMP%]{margin-right:5px}.item-icon-end[_ngcontent-%COMP%]{margin-left:auto}.item-icon-red[_ngcontent-%COMP%]{cursor:pointer;color:#ef5350!important} .custom-list-item{display:flex;height:40px!important;padding:0 8px!important;border-radius:4px;margin-bottom:2px;transition:background-color .2s ease} .custom-list-item .mdc-list-item__primary-text{display:flex;color:#fffc;font-size:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .custom-list-item:hover{background-color:#fff3!important;cursor:pointer} .custom-list-item:hover .mdc-list-item__primary-text{color:#ac99ea!important} .custom-list-item.selected{background-color:#ac99ea33!important} .custom-list-item.selected .mdc-list-item__primary-text{color:#ac99ea!important;font-weight:500}.no-results[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 16px;color:#ffffff80}.no-results[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:36px;height:36px;width:36px;margin-bottom:8px}.no-results[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:8px 0 0;font-size:14px}.no-results[_ngcontent-%COMP%] .search-hint[_ngcontent-%COMP%]{font-size:12px;opacity:.7}"]})}};var aT=["mat-menu-item",""],sT=[[["mat-icon"],["","matMenuItemIcon",""]],"*"],lT=["mat-icon, [matMenuItemIcon]","*"];function cT(i,n){i&1&&(vt(),l(0,"svg",2),M(1,"polygon",3),c())}var dT=["*"];function uT(i,n){if(i&1){let e=Q();l(0,"div",0),b("click",function(){I(e);let o=f();return P(o.closed.emit("click"))})("animationstart",function(o){I(e);let r=f();return P(r._onAnimationStart(o.animationName))})("animationend",function(o){I(e);let r=f();return P(r._onAnimationDone(o.animationName))})("animationcancel",function(o){I(e);let r=f();return P(r._onAnimationDone(o.animationName))}),l(1,"div",1),ae(2),c()()}if(i&2){let e=f();jt(e._classList),j("mat-menu-panel-animations-disabled",e._animationsDisabled)("mat-menu-panel-exit-animation",e._panelAnimationState==="void")("mat-menu-panel-animating",e._isAnimating),x("id",e.panelId),Y("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby||null)("aria-describedby",e.ariaDescribedby||null)}}var vf=new v("MAT_MENU_PANEL"),Rl=(()=>{class i{_elementRef=d(Z);_document=d(re);_focusMonitor=d(un);_parentMenu=d(vf,{optional:!0});_changeDetectorRef=d(ye);role="menuitem";disabled=!1;disableRipple=!1;_hovered=new S;_focused=new S;_highlighted=!1;_triggersSubmenu=!1;constructor(){d(We).load(Yi),this._parentMenu?.addItem?.(this)}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._getHostElement(),e,t):this._getHostElement().focus(t),this._focused.next(this)}ngAfterViewInit(){this._focusMonitor&&this._focusMonitor.monitor(this._elementRef,!1)}ngOnDestroy(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete(),this._focused.complete()}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._elementRef.nativeElement}_checkDisabled(e){this.disabled&&(e.preventDefault(),e.stopPropagation())}_handleMouseEnter(){this._hovered.next(this)}getLabel(){let e=this._elementRef.nativeElement.cloneNode(!0),t=e.querySelectorAll("mat-icon, .material-icons");for(let o=0;o{class i{_elementRef=d(Z);_changeDetectorRef=d(ye);_injector=d(ce);_keyManager;_xPosition;_yPosition;_firstItemFocusRef;_exitFallbackTimeout;_animationsDisabled;_allItems;_directDescendantItems=new $a;_classList={};_panelAnimationState="void";_animationDone=new S;_isAnimating=!1;parentMenu;direction;overlayPanelClass;backdropClass;ariaLabel;ariaLabelledby;ariaDescribedby;get xPosition(){return this._xPosition}set xPosition(e){this._xPosition=e,this.setPositionClasses()}get yPosition(){return this._yPosition}set yPosition(e){this._yPosition=e,this.setPositionClasses()}templateRef;items;lazyContent;overlapTrigger;hasBackdrop;set panelClass(e){let t=this._previousPanelClass,o=_({},this._classList);t&&t.length&&t.split(" ").forEach(r=>{o[r]=!1}),this._previousPanelClass=e,e&&e.length&&(e.split(" ").forEach(r=>{o[r]=!0}),this._elementRef.nativeElement.className=""),this._classList=o}_previousPanelClass;get classList(){return this.panelClass}set classList(e){this.panelClass=e}closed=new L;close=this.closed;panelId=d(Ye).getId("mat-menu-panel-");constructor(){let e=d(pT);this.overlayPanelClass=e.overlayPanelClass||"",this._xPosition=e.xPosition,this._yPosition=e.yPosition,this.backdropClass=e.backdropClass,this.overlapTrigger=e.overlapTrigger,this.hasBackdrop=e.hasBackdrop,this._animationsDisabled=d(ze,{optional:!0})==="NoopAnimations"}ngOnInit(){this.setPositionClasses()}ngAfterContentInit(){this._updateDirectDescendants(),this._keyManager=new Hs(this._directDescendantItems).withWrap().withTypeAhead().withHomeAndEnd(),this._keyManager.tabOut.subscribe(()=>this.closed.emit("tab")),this._directDescendantItems.changes.pipe(ot(this._directDescendantItems),Pe(e=>Le(...e.map(t=>t._focused)))).subscribe(e=>this._keyManager.updateActiveItem(e)),this._directDescendantItems.changes.subscribe(e=>{let t=this._keyManager;if(this._panelAnimationState==="enter"&&t.activeItem?._hasFocus()){let o=e.toArray(),r=Math.max(0,Math.min(o.length-1,t.activeItemIndex||0));o[r]&&!o[r].disabled?t.setActiveItem(r):t.setNextItemActive()}})}ngOnDestroy(){this._keyManager?.destroy(),this._directDescendantItems.destroy(),this.closed.complete(),this._firstItemFocusRef?.destroy(),clearTimeout(this._exitFallbackTimeout)}_hovered(){return this._directDescendantItems.changes.pipe(ot(this._directDescendantItems),Pe(t=>Le(...t.map(o=>o._hovered))))}addItem(e){}removeItem(e){}_handleKeydown(e){let t=e.keyCode,o=this._keyManager;switch(t){case 27:rt(e)||(e.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&this.direction==="ltr"&&this.closed.emit("keydown");break;case 39:this.parentMenu&&this.direction==="rtl"&&this.closed.emit("keydown");break;default:(t===38||t===40)&&o.setFocusOrigin("keyboard"),o.onKeydown(e);return}}focusFirstItem(e="program"){this._firstItemFocusRef?.destroy(),this._firstItemFocusRef=Et(()=>{let t=this._resolvePanel();if(!t||!t.contains(document.activeElement)){let o=this._keyManager;o.setFocusOrigin(e).setFirstItemActive(),!o.activeItem&&t&&t.focus()}},{injector:this._injector})}resetActiveItem(){this._keyManager.setActiveItem(-1)}setElevation(e){}setPositionClasses(e=this.xPosition,t=this.yPosition){this._classList=O(_({},this._classList),{"mat-menu-before":e==="before","mat-menu-after":e==="after","mat-menu-above":t==="above","mat-menu-below":t==="below"}),this._changeDetectorRef.markForCheck()}_onAnimationDone(e){let t=e===Hu;(t||e===bf)&&(t&&(clearTimeout(this._exitFallbackTimeout),this._exitFallbackTimeout=void 0),this._animationDone.next(t?"void":"enter"),this._isAnimating=!1)}_onAnimationStart(e){(e===bf||e===Hu)&&(this._isAnimating=!0)}_setIsOpen(e){if(this._panelAnimationState=e?"enter":"void",e){if(this._keyManager.activeItemIndex===0){let t=this._resolvePanel();t&&(t.scrollTop=0)}}else this._animationsDisabled||(this._exitFallbackTimeout=setTimeout(()=>this._onAnimationDone(Hu),200));this._animationsDisabled&&setTimeout(()=>{this._onAnimationDone(e?bf:Hu)}),this._changeDetectorRef.markForCheck()}_updateDirectDescendants(){this._allItems.changes.pipe(ot(this._allItems)).subscribe(e=>{this._directDescendantItems.reset(e.filter(t=>t._parentMenu===this)),this._directDescendantItems.notifyOnChanges()})}_resolvePanel(){let e=null;return this._directDescendantItems.length&&(e=this._directDescendantItems.first._getHostElement().closest('[role="menu"]')),e}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-menu"]],contentQueries:function(t,o,r){if(t&1&&(it(r,mT,5),it(r,Rl,5),it(r,Rl,4)),t&2){let a;ee(a=te())&&(o.lazyContent=a.first),ee(a=te())&&(o._allItems=a),ee(a=te())&&(o.items=a)}},viewQuery:function(t,o){if(t&1&&ge(bi,5),t&2){let r;ee(r=te())&&(o.templateRef=r.first)}},hostVars:3,hostBindings:function(t,o){t&2&&Y("aria-label",null)("aria-labelledby",null)("aria-describedby",null)},inputs:{backdropClass:"backdropClass",ariaLabel:[0,"aria-label","ariaLabel"],ariaLabelledby:[0,"aria-labelledby","ariaLabelledby"],ariaDescribedby:[0,"aria-describedby","ariaDescribedby"],xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:[2,"overlapTrigger","overlapTrigger",X],hasBackdrop:[2,"hasBackdrop","hasBackdrop",e=>e==null?null:X(e)],panelClass:[0,"class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"},exportAs:["matMenu"],features:[Me([{provide:vf,useExisting:i}])],ngContentSelectors:dT,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-mdc-menu-panel",3,"click","animationstart","animationend","animationcancel","id"],[1,"mat-mdc-menu-content"]],template:function(t,o){t&1&&(Te(),w(0,uT,3,12,"ng-template"))},styles:[`mat-menu{display:none}.mat-mdc-menu-content{margin:0;padding:8px 0;outline:0}.mat-mdc-menu-content,.mat-mdc-menu-content .mat-mdc-menu-item .mat-mdc-menu-item-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;flex:1;white-space:normal;font-family:var(--mat-menu-item-label-text-font, var(--mat-sys-label-large-font));line-height:var(--mat-menu-item-label-text-line-height, var(--mat-sys-label-large-line-height));font-size:var(--mat-menu-item-label-text-size, var(--mat-sys-label-large-size));letter-spacing:var(--mat-menu-item-label-text-tracking, var(--mat-sys-label-large-tracking));font-weight:var(--mat-menu-item-label-text-weight, var(--mat-sys-label-large-weight))}@keyframes _mat-menu-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-menu-exit{from{opacity:1}to{opacity:0}}.mat-mdc-menu-panel{min-width:112px;max-width:280px;overflow:auto;box-sizing:border-box;outline:0;animation:_mat-menu-enter 120ms cubic-bezier(0, 0, 0.2, 1);border-radius:var(--mat-menu-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mat-menu-container-color, var(--mat-sys-surface-container));box-shadow:var(--mat-menu-container-elevation-shadow, 0px 3px 1px -2px rgba(0, 0, 0, 0.2), 0px 2px 2px 0px rgba(0, 0, 0, 0.14), 0px 1px 5px 0px rgba(0, 0, 0, 0.12));will-change:transform,opacity}.mat-mdc-menu-panel.mat-menu-panel-exit-animation{animation:_mat-menu-exit 100ms 25ms linear forwards}.mat-mdc-menu-panel.mat-menu-panel-animations-disabled{animation:none}.mat-mdc-menu-panel.mat-menu-panel-animating{pointer-events:none}.mat-mdc-menu-panel.mat-menu-panel-animating:has(.mat-mdc-menu-content:empty){display:none}@media(forced-colors: active){.mat-mdc-menu-panel{outline:solid 1px}}.mat-mdc-menu-panel .mat-divider{color:var(--mat-menu-divider-color, var(--mat-sys-surface-variant));margin-bottom:var(--mat-menu-divider-bottom-spacing, 8px);margin-top:var(--mat-menu-divider-top-spacing, 8px)}.mat-mdc-menu-item{display:flex;position:relative;align-items:center;justify-content:flex-start;overflow:hidden;padding:0;cursor:pointer;width:100%;text-align:left;box-sizing:border-box;color:inherit;font-size:inherit;background:none;text-decoration:none;margin:0;min-height:48px;padding-left:var(--mat-menu-item-leading-spacing, 12px);padding-right:var(--mat-menu-item-trailing-spacing, 12px);-webkit-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:rgba(0,0,0,0)}.mat-mdc-menu-item::-moz-focus-inner{border:0}[dir=rtl] .mat-mdc-menu-item{padding-left:var(--mat-menu-item-trailing-spacing, 12px);padding-right:var(--mat-menu-item-leading-spacing, 12px)}.mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-leading-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-trailing-spacing, 12px)}[dir=rtl] .mat-mdc-menu-item:has(.material-icons,mat-icon,[matButtonIcon]){padding-left:var(--mat-menu-item-with-icon-trailing-spacing, 12px);padding-right:var(--mat-menu-item-with-icon-leading-spacing, 12px)}.mat-mdc-menu-item,.mat-mdc-menu-item:visited,.mat-mdc-menu-item:link{color:var(--mat-menu-item-label-text-color, var(--mat-sys-on-surface))}.mat-mdc-menu-item .mat-icon-no-color,.mat-mdc-menu-item .mat-mdc-menu-submenu-icon{color:var(--mat-menu-item-icon-color, var(--mat-sys-on-surface-variant))}.mat-mdc-menu-item[disabled]{cursor:default;opacity:.38}.mat-mdc-menu-item[disabled]::after{display:block;position:absolute;content:"";top:0;left:0;bottom:0;right:0}.mat-mdc-menu-item:focus{outline:0}.mat-mdc-menu-item .mat-icon{flex-shrink:0;margin-right:var(--mat-menu-item-spacing, 12px);height:var(--mat-menu-item-icon-size, 24px);width:var(--mat-menu-item-icon-size, 24px)}[dir=rtl] .mat-mdc-menu-item{text-align:right}[dir=rtl] .mat-mdc-menu-item .mat-icon{margin-right:0;margin-left:var(--mat-menu-item-spacing, 12px)}.mat-mdc-menu-item:not([disabled]):hover{background-color:var(--mat-menu-item-hover-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}.mat-mdc-menu-item:not([disabled]).cdk-program-focused,.mat-mdc-menu-item:not([disabled]).cdk-keyboard-focused,.mat-mdc-menu-item:not([disabled]).mat-mdc-menu-item-highlighted{background-color:var(--mat-menu-item-focus-state-layer-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(forced-colors: active){.mat-mdc-menu-item{margin-top:1px}}.mat-mdc-menu-submenu-icon{width:var(--mat-menu-item-icon-size, 24px);height:10px;fill:currentColor;padding-left:var(--mat-menu-item-spacing, 12px)}[dir=rtl] .mat-mdc-menu-submenu-icon{padding-right:var(--mat-menu-item-spacing, 12px);padding-left:0}[dir=rtl] .mat-mdc-menu-submenu-icon polygon{transform:scaleX(-1);transform-origin:center}@media(forced-colors: active){.mat-mdc-menu-submenu-icon{fill:CanvasText}}.mat-mdc-menu-item .mat-mdc-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none} -`],encapsulation:2,changeDetection:0})}return i})(),xC=new v("mat-menu-scroll-strategy",{providedIn:"root",factory:()=>{let i=d(Ke);return()=>i.scrollStrategies.reposition()}});function fT(i){return()=>i.scrollStrategies.reposition()}var gT={provide:xC,deps:[Ke],useFactory:fT},_T={passive:!0};var Pl=new WeakMap,wC=(()=>{class i{_overlay=d(Ke);_element=d(Z);_viewContainerRef=d(Nt);_menuItemInstance=d(Rl,{optional:!0,self:!0});_dir=d(dt,{optional:!0});_focusMonitor=d(un);_ngZone=d(K);_scrollStrategy=d(xC);_changeDetectorRef=d(ye);_cleanupTouchstart;_portal;_overlayRef=null;_menuOpen=!1;_closingActionsSubscription=ie.EMPTY;_hoverSubscription=ie.EMPTY;_menuCloseSubscription=ie.EMPTY;_pendingRemoval;_parentMaterialMenu;_parentInnerPadding;_openedBy=void 0;get _deprecatedMatMenuTriggerFor(){return this.menu}set _deprecatedMatMenuTriggerFor(e){this.menu=e}get menu(){return this._menu}set menu(e){e!==this._menu&&(this._menu=e,this._menuCloseSubscription.unsubscribe(),e&&(this._parentMaterialMenu,this._menuCloseSubscription=e.close.subscribe(t=>{this._destroyMenu(t),(t==="click"||t==="tab")&&this._parentMaterialMenu&&this._parentMaterialMenu.closed.emit(t)})),this._menuItemInstance?._setTriggersSubmenu(this.triggersSubmenu()))}_menu;menuData;restoreFocus=!0;menuOpened=new L;onMenuOpen=this.menuOpened;menuClosed=new L;onMenuClose=this.menuClosed;constructor(){let e=d(vf,{optional:!0}),t=d(tt);this._parentMaterialMenu=e instanceof Da?e:void 0,this._cleanupTouchstart=Ue(t,this._element.nativeElement,"touchstart",o=>{eo(o)||(this._openedBy="touch")},_T)}ngAfterContentInit(){this._handleHover()}ngOnDestroy(){this.menu&&this._ownsMenu(this.menu)&&Pl.delete(this.menu),this._cleanupTouchstart(),this._pendingRemoval?.unsubscribe(),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe(),this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null)}get menuOpen(){return this._menuOpen}get dir(){return this._dir&&this._dir.value==="rtl"?"rtl":"ltr"}triggersSubmenu(){return!!(this._menuItemInstance&&this._parentMaterialMenu&&this.menu)}toggleMenu(){return this._menuOpen?this.closeMenu():this.openMenu()}openMenu(){let e=this.menu;if(this._menuOpen||!e)return;this._pendingRemoval?.unsubscribe();let t=Pl.get(e);Pl.set(e,this),t&&t!==this&&t.closeMenu();let o=this._createOverlay(e),r=o.getConfig(),a=r.positionStrategy;this._setPosition(e,a),r.hasBackdrop=e.hasBackdrop==null?!this.triggersSubmenu():e.hasBackdrop,o.hasAttached()||(o.attach(this._getPortal(e)),e.lazyContent?.attach(this.menuData)),this._closingActionsSubscription=this._menuClosingActions().subscribe(()=>this.closeMenu()),e.parentMenu=this.triggersSubmenu()?this._parentMaterialMenu:void 0,e.direction=this.dir,e.focusFirstItem(this._openedBy||"program"),this._setIsMenuOpen(!0),e instanceof Da&&(e._setIsOpen(!0),e._directDescendantItems.changes.pipe(pe(e.close)).subscribe(()=>{a.withLockedPosition(!1).reapplyLastPosition(),a.withLockedPosition(!0)}))}closeMenu(){this.menu?.close.emit()}focus(e,t){this._focusMonitor&&e?this._focusMonitor.focusVia(this._element,e,t):this._element.nativeElement.focus(t)}updatePosition(){this._overlayRef?.updatePosition()}_destroyMenu(e){let t=this._overlayRef,o=this._menu;!t||!this.menuOpen||(this._closingActionsSubscription.unsubscribe(),this._pendingRemoval?.unsubscribe(),o instanceof Da&&this._ownsMenu(o)?(this._pendingRemoval=o._animationDone.pipe(_e(1)).subscribe(()=>{t.detach(),o.lazyContent?.detach()}),o._setIsOpen(!1)):(t.detach(),o?.lazyContent?.detach()),o&&this._ownsMenu(o)&&Pl.delete(o),this.restoreFocus&&(e==="keydown"||!this._openedBy||!this.triggersSubmenu())&&this.focus(this._openedBy),this._openedBy=void 0,this._setIsMenuOpen(!1))}_setIsMenuOpen(e){e!==this._menuOpen&&(this._menuOpen=e,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&this._menuItemInstance._setHighlighted(e),this._changeDetectorRef.markForCheck())}_createOverlay(e){if(!this._overlayRef){let t=this._getOverlayConfig(e);this._subscribeToPositions(e,t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe(o=>{this.menu instanceof Da&&this.menu._handleKeydown(o)})}return this._overlayRef}_getOverlayConfig(e){return new Mi({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withGrowAfterOpen().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:e.backdropClass||"cdk-overlay-transparent-backdrop",panelClass:e.overlayPanelClass,scrollStrategy:this._scrollStrategy(),direction:this._dir||"ltr"})}_subscribeToPositions(e,t){e.setPositionClasses&&t.positionChanges.subscribe(o=>{this._ngZone.run(()=>{let r=o.connectionPair.overlayX==="start"?"after":"before",a=o.connectionPair.overlayY==="top"?"below":"above";e.setPositionClasses(r,a)})})}_setPosition(e,t){let[o,r]=e.xPosition==="before"?["end","start"]:["start","end"],[a,s]=e.yPosition==="above"?["bottom","top"]:["top","bottom"],[u,h]=[a,s],[g,y]=[o,r],R=0;if(this.triggersSubmenu()){if(y=o=e.xPosition==="before"?"start":"end",r=g=o==="end"?"start":"end",this._parentMaterialMenu){if(this._parentInnerPadding==null){let F=this._parentMaterialMenu.items.first;this._parentInnerPadding=F?F._getHostElement().offsetTop:0}R=a==="bottom"?this._parentInnerPadding:-this._parentInnerPadding}}else e.overlapTrigger||(u=a==="top"?"bottom":"top",h=s==="top"?"bottom":"top");t.withPositions([{originX:o,originY:u,overlayX:g,overlayY:a,offsetY:R},{originX:r,originY:u,overlayX:y,overlayY:a,offsetY:R},{originX:o,originY:h,overlayX:g,overlayY:s,offsetY:-R},{originX:r,originY:h,overlayX:y,overlayY:s,offsetY:-R}])}_menuClosingActions(){let e=this._overlayRef.backdropClick(),t=this._overlayRef.detachments(),o=this._parentMaterialMenu?this._parentMaterialMenu.closed:T(),r=this._parentMaterialMenu?this._parentMaterialMenu._hovered().pipe(le(a=>this._menuOpen&&a!==this._menuItemInstance)):T();return Le(e,o,r,t)}_handleMousedown(e){Jn(e)||(this._openedBy=e.button===0?"mouse":void 0,this.triggersSubmenu()&&e.preventDefault())}_handleKeydown(e){let t=e.keyCode;(t===13||t===32)&&(this._openedBy="keyboard"),this.triggersSubmenu()&&(t===39&&this.dir==="ltr"||t===37&&this.dir==="rtl")&&(this._openedBy="keyboard",this.openMenu())}_handleClick(e){this.triggersSubmenu()?(e.stopPropagation(),this.openMenu()):this.toggleMenu()}_handleHover(){this.triggersSubmenu()&&this._parentMaterialMenu&&(this._hoverSubscription=this._parentMaterialMenu._hovered().subscribe(e=>{e===this._menuItemInstance&&!e.disabled&&(this._openedBy="mouse",this.openMenu())}))}_getPortal(e){return(!this._portal||this._portal.templateRef!==e.templateRef)&&(this._portal=new Di(e.templateRef,this._viewContainerRef)),this._portal}_ownsMenu(e){return Pl.get(e)===this}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:[1,"mat-mdc-menu-trigger"],hostVars:3,hostBindings:function(t,o){t&1&&b("click",function(a){return o._handleClick(a)})("mousedown",function(a){return o._handleMousedown(a)})("keydown",function(a){return o._handleKeydown(a)}),t&2&&Y("aria-haspopup",o.menu?"menu":null)("aria-expanded",o.menuOpen)("aria-controls",o.menuOpen?o.menu.panelId:null)},inputs:{_deprecatedMatMenuTriggerFor:[0,"mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:[0,"matMenuTriggerFor","menu"],menuData:[0,"matMenuTriggerData","menuData"],restoreFocus:[0,"matMenuTriggerRestoreFocus","restoreFocus"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]})}return i})(),Ma=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({providers:[gT],imports:[Co,se,Qt,Ht,se]})}return i})(),DC={transformMenu:{type:7,name:"transformMenu",definitions:[{type:0,name:"void",styles:{type:6,styles:{opacity:0,transform:"scale(0.8)"},offset:null}},{type:1,expr:"void => enter",animation:{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1)"},offset:null},timings:"120ms cubic-bezier(0, 0, 0.2, 1)"},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"100ms 25ms linear"},options:null}],options:{}},fadeInItems:{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null}},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}},S7=DC.fadeInItems,E7=DC.transformMenu;var $u=class i{constructor(n,e,t){this.dialogRef=n;this.store=t;this.hasRelatedProperties=!1;this.selectedType="";this.subscription=new ie;this.selectedType=e.selectedType,this.hasRelatedProperties$=t.select(dy)}ngOnInit(){return Io(this,null,function*(){this.store.dispatch(ca({modelName:this.selectedType}))})}onClose(){this.dialogRef.close()}onDelete(){this.store.dispatch(la({modelName:this.selectedType})),this.dialogRef.close({success:!0})}static{this.\u0275fac=function(e){return new(e||i)(k(Dt),k(ci),k(he))}}static{this.\u0275cmp=E({type:i,selectors:[["app-delete-colletion-type-dialog"]],decls:18,vars:0,consts:[[1,"delete-collection-type-dialog"],[1,"dialog-header"],[1,"warning-icon"],[1,"dialog-content"],[1,"dialog-message"],[1,"dialog-footer"],["mat-flat-button","","aria-label","Close dialog",1,"cancel-button",3,"click"],["mat-flat-button","",1,"delete-button",3,"click"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"div",1)(2,"h1"),p(3,"Confirmation"),c(),l(4,"div")(5,"mat-icon",2),p(6,"error"),c()()(),l(7,"div",3),M(8,"hr"),l(9,"p",4),p(10,"Are you sure you want to delete this document? This action is irreversible."),c()(),l(11,"div",5)(12,"button",6),b("click",function(){return t.onClose()}),l(13,"Span"),p(14,"Close"),c()(),l(15,"button",7),b("click",function(){return t.onDelete()}),l(16,"span"),p(17,"Delete"),c()()()())},dependencies:[Vt,ke,Xe,fe,Ce,Ae],styles:['.delete-collection-type-dialog[_ngcontent-%COMP%]{background-color:#1e1e1e;color:#fff;border-radius:8px;width:759px}.dialog-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;padding:16px;flex-direction:column;gap:24px}.dialog-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;font-size:24px;font-weight:400}.dialog-header[_ngcontent-%COMP%] button[mat-icon-button][_ngcontent-%COMP%]{color:#fff}.dialog-content[_ngcontent-%COMP%]{padding:0 16px 16px}.dialog-content[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%]{margin-bottom:16px}.dialog-content[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font-size:12px;margin-bottom:8px;color:#ffffffb3}.dialog-content[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .helper-text[_ngcontent-%COMP%]{font-size:12px;margin-top:4px;color:#fff9}.dialog-content[_ngcontent-%COMP%] .input-field[_ngcontent-%COMP%]{width:100%}.dialog-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding:16px;gap:10px}.dialog-footer[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]{background-color:#ac99ea;color:#212121;font-weight:500;text-transform:none;transition:all .2s ease;min-width:100px;border-radius:4px}.dialog-footer[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]:hover{background-color:#9077e3}.dialog-footer[_ngcontent-%COMP%] .cancel-button[disabled][_ngcontent-%COMP%]{color:#ffffff61!important;background-color:#ffffff1f;cursor:not-allowed}.dialog-footer[_ngcontent-%COMP%] .delete-button[_ngcontent-%COMP%]{background-color:#e47273;color:#212021;font-weight:500;text-transform:none;transition:all .2s ease;min-width:100px;border-radius:4px}.dialog-footer[_ngcontent-%COMP%] .delete-button[_ngcontent-%COMP%]:hover{background-color:#e05d5e}.warning-icon[_ngcontent-%COMP%]{color:#e47273}.dialog-message[_ngcontent-%COMP%]{color:var(--text-secondary, rgba(255, 255, 255, .7));text-align:start;font-feature-settings:"liga" off,"clig" off;font-family:var(--fontFamily, Roboto);font-size:var(--font-size-0875-rem, 14px);font-style:normal;font-weight:var(--fontWeightRegular, 400);line-height:143%;letter-spacing:.17px}form[_ngcontent-%COMP%]{margin-top:20px}.description[_ngcontent-%COMP%]{font-size:12px;color:#ffffffb3;text-align:center;line-height:1.4}']})}};function vT(i,n){if(i&1){let e=Q();l(0,"div",5)(1,"mat-label")(2,"mat-checkbox",10),b("change",function(o){let r=I(e).$implicit,a=f();return P(a.onCheckboxChange(o,r.value))}),c(),p(3),c()()}if(i&2){let e=n.$implicit,t=f();m(2),x("value",e.value.toString())("checked",t.allowedActions==null?null:t.allowedActions.includes(e.value)),m(),U(" ",e.label," ")}}var Gu=class i{constructor(n,e,t){this.dialogRef=n;this.store=e;this.fb=t;this.allowedActions$=this.store.select(da);this.allowedActions=[];this.selectedType$=this.store.select(ut);this.selectedtype="";this.crudActions=su(wo);this.subscription=new ie;this.configureActionsForm=this.fb.group({crudActions:this.fb.array([])})}get selectedCrudActions(){return this.configureActionsForm.get("crudActions")}setSelectedCrudActions(){this.allowedActions?.forEach(n=>{this.selectedCrudActions.push(this.fb.control(n))})}onCheckboxChange(n,e){let t=this.selectedCrudActions;if(n.source._checked)t.push(this.fb.control(e));else{let o=t.controls.findIndex(r=>r.value===e);t.removeAt(o)}}ngOnInit(){this.subscription.add(this.allowedActions$.subscribe(n=>{this.allowedActions=n})),this.subscription.add(this.selectedType$.subscribe(n=>{this.selectedtype=n})),this.setSelectedCrudActions()}onClose(){this.dialogRef.close()}onSubmit(){let n={crudActions:this.configureActionsForm.get("crudActions")?.value};this.store.dispatch(tu({model:this.selectedtype,request:n})),this.dialogRef.close()}static{this.\u0275fac=function(e){return new(e||i)(k(Dt),k(he),k(mi))}}static{this.\u0275cmp=E({type:i,selectors:[["app-configure-actions-dialog"]],decls:21,vars:1,consts:[[1,"configure-actions-dialog"],[1,"dialog-header"],[1,"dialog-content"],[3,"formGroup"],[1,"actions-container"],[1,"action"],[1,"helper-text"],[1,"dialog-footer"],["mat-flat-button","","aria-label","Close dialog",1,"cancel-button",3,"click"],["mat-flat-button","",1,"submit-button",3,"click"],["type","checkbox",3,"change","value","checked"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"div",1)(2,"h1"),p(3,"Configure Actions"),c()(),l(4,"div",2),M(5,"hr"),l(6,"form",3)(7,"p"),p(8,"Allowed Actions"),c(),l(9,"div",4),de(10,vT,4,3,"div",5,Vo),c(),l(12,"div",6),p(13," *If no actions are selected, resource will have default actions (Get,GetById,Post,Put,Update) "),c()()(),l(14,"div",7)(15,"button",8),b("click",function(){return t.onClose()}),l(16,"Span"),p(17,"Close"),c()(),l(18,"button",9),b("click",function(){return t.onSubmit()}),l(19,"span"),p(20,"Submit"),c()()()()),e&2&&(m(6),x("formGroup",t.configureActionsForm),m(4),ue(t.crudActions))},dependencies:[Vt,ke,Xe,Ae,It,Xt,Gi,fe,pi,ui,di,hi,bt,Ki,qi],styles:['.configure-actions-dialog[_ngcontent-%COMP%]{background-color:#1e1e1e;color:#fff;border-radius:8px}.dialog-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;padding:16px;flex-direction:column;gap:24px}.dialog-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;font-size:24px;font-weight:400}.dialog-header[_ngcontent-%COMP%] button[mat-icon-button][_ngcontent-%COMP%]{color:#fff}.dialog-content[_ngcontent-%COMP%]{padding:0 16px 16px}.dialog-content[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%]{margin-bottom:16px}.dialog-content[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font-size:12px;margin-bottom:8px;color:#ffffffb3}.dialog-content[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .helper-text[_ngcontent-%COMP%]{font-size:12px;margin-top:4px;color:#fff9}.dialog-content[_ngcontent-%COMP%] .input-field[_ngcontent-%COMP%]{width:100%}.dialog-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding:16px;gap:10px}.dialog-footer[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]{background-color:#ac99ea;color:#212121;font-weight:500;text-transform:none;transition:all .2s ease;min-width:100px;border-radius:4px}.dialog-footer[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]:hover{background-color:#9077e3}.dialog-footer[_ngcontent-%COMP%] .cancel-button[disabled][_ngcontent-%COMP%]{color:#ffffff61!important;background-color:#ffffff1f;cursor:not-allowed}.dialog-footer[_ngcontent-%COMP%] .submit-button[_ngcontent-%COMP%]{background-color:#66bb6a;color:#212021;font-weight:500;text-transform:none;transition:all .2s ease;min-width:100px;border-radius:4px}.dialog-footer[_ngcontent-%COMP%] .submit-button[_ngcontent-%COMP%]:hover{background-color:#49a54e}.warning-icon[_ngcontent-%COMP%]{color:#e47273}.dialog-message[_ngcontent-%COMP%]{color:var(--text-secondary, rgba(255, 255, 255, .7));text-align:start;font-feature-settings:"liga" off,"clig" off;font-family:var(--fontFamily, Roboto);font-size:var(--font-size-0875-rem, 14px);font-style:normal;font-weight:var(--fontWeightRegular, 400);line-height:143%;letter-spacing:.17px}form[_ngcontent-%COMP%]{margin-top:20px}.description[_ngcontent-%COMP%]{font-size:12px;color:#ffffffb3;text-align:center;line-height:1.4}.actions-container[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;flex-direction:column;width:100%}.actions-container[_ngcontent-%COMP%] .action[_ngcontent-%COMP%]{width:50%}.helper-text[_ngcontent-%COMP%]{font-size:12px;margin-top:4px;color:#fff9}']})}};function yT(i,n){if(i&1&&(l(0,"h1"),p(1),c()),i&2){let e=f();m(),$(e.selectedType)}}function CT(i,n){i&1&&(l(0,"h1"),p(1,"Type Name"),c())}function xT(i,n){if(i&1){let e=Q();l(0,"button",10)(1,"mat-icon"),p(2,"more_vert"),c()(),l(3,"mat-menu",11,0)(5,"button",12),b("click",function(){I(e);let o=f();return P(o.openDeleteCollectionTypeDialog())}),l(6,"mat-icon",13),p(7,"delete"),c(),l(8,"span"),p(9,"Delete Collection"),c()(),l(10,"button",14),b("click",function(){I(e);let o=f();return P(o.openConfigureActionsDialog())}),l(11,"mat-icon"),p(12,"settings"),c(),l(13,"span"),p(14,"Configure Actions"),c()()()}if(i&2){let e=ft(4);x("matMenuTriggerFor",e)}}function wT(i,n){if(i&1){let e=Q();l(0,"div",5),M(1,"img",15),l(2,"h2"),p(3,"There are no collections created yet"),c(),l(4,"p"),p(5,"Add your first Collection-Type"),c(),l(6,"app-button",16),b("click",function(){I(e);let o=f();return P(o.openAddCollectionTypeDialog())}),c()()}}function DT(i,n){if(i&1){let e=Q();l(0,"div",6)(1,"app-button",17),b("click",function(){I(e);let o=f();return P(o.openAddFieldDialog())}),c(),M(2,"app-fields-list",18),c()}if(i&2){let e=f();m(2),x("fields",e.fieldsData)}}function MT(i,n){i&1&&p(0," Save your content ")}function kT(i,n){i&1&&(M(0,"mat-spinner",19),p(1," Applying migrations... "))}function ST(i,n){i&1&&(l(0,"div",9)(1,"div",20)(2,"div",21),M(3,"mat-spinner",22),c(),l(4,"h2"),p(5,"Saving your content"),c(),l(6,"p"),p(7,"The page will automatically restart with the updated content"),c()()())}var Wu=class i{constructor(n,e){this.dialog=n;this.store=e;this.disabled=!1;this.fieldsData=[];this.model=null;this.selectedType="";this.isSaving=!1;this.isModalOpen=!1;this.selectedType$=this.store.select(ut);this.fieldsData$=this.store.select(ru);this.model$=this.store.select(au);this.draftCollectionTypes=[];this.draftCollectionTypes$=this.store.select(sy);this.collectionTypes=[];this.collectionTypes$=this.store.select(zn);this.subscription=new ie}ngOnInit(){return Io(this,null,function*(){this.store.dispatch(xo()),this.subscription.add(this.draftCollectionTypes$.subscribe(n=>{this.draftCollectionTypes=n,this.updateSaveButtonState()})),this.subscription.add(this.selectedType$.subscribe(n=>{this.selectedType=n,this.updateSaveButtonState()})),this.subscription.add(this.selectedType$.subscribe(n=>{this.store.dispatch(jn({modelType:n}))})),this.subscription.add(this.model$.subscribe(n=>this.model=n)),this.subscription.add(this.fieldsData$.subscribe(n=>{this.formatFields(this.model?.Fields)})),this.subscription.add(this.store.pipe(gn(ly),le(n=>n),_e(1)).subscribe(()=>{alert("Migrations applied. Application restarting... Please wait a moment before making additional changes."),location.reload()})),this.subscription.add(this.store.pipe(gn(cy),le(n=>!!n),_e(1)).subscribe(()=>{alert("Failed to save content. Please try again."),this.closeModal()})),this.subscription.add(this.collectionTypes$.subscribe(n=>this.collectionTypes=n))})}openAddFieldDialog(){let n=this.dialog.open(Pu,{panelClass:"add-field-dialog-container",disableClose:!0,width:"67vw",maxWidth:"100vw",data:{selectedType:this.selectedType}});this.subscription.add(n.afterClosed().subscribe(()=>Io(this,null,function*(){this.disabled=!1})))}openAddCollectionTypeDialog(){let n=this.dialog.open(Do,{width:"450px",panelClass:"dark-theme-dialog",disableClose:!0})}updateSaveButtonState(){this.disabled=this.draftCollectionTypes.length==0}formatFields(n){n&&n&&n.length>0&&(this.fieldsData=n.map(e=>{let t=e.isEnum?"enum":e.fieldType,o,r,a;switch(t){case"string":e.fieldName.toLowerCase().includes("url")||e.fieldName.toLowerCase().includes("link")?(o="Link",a="link"):(o="Text",r="Aa");break;case"int":o="Number",r="123";break;case"double":case"decimal":case"float":o="Decimal",r="1.75";break;case"DateOnly":o="Date",a="calendar_today";break;case"DateTime":o="DateTime",a="today";break;case"bool":o="Checkbox",a="check_box";break;case"MediaInfo":o="Media",a="perm_media";break;case"Guid":o="Media",a="fingerprint";break;case"enum":o=e.fieldType,a="list";break;default:o=t,a="leak_remove"}return{name:e.fieldName,type:o,iconText:r,iconName:a}}))}openDeleteCollectionTypeDialog(){if(!this.selectedType)return;let n=this.dialog.open($u,{minWidth:759,panelClass:"dark-theme-dialog",disableClose:!0,data:{selectedType:this.selectedType}});var e=this.collectionTypes.filter(t=>t!==this.selectedType)[0];this.subscription.add(n.afterClosed().subscribe(()=>{this.store.dispatch(bn()),this.store.dispatch(Zi({selectedType:e??""})),this.store.dispatch(jn({modelType:e}))}))}openConfigureActionsDialog(){if(!this.selectedType)return;let n=this.dialog.open(Gu,{width:"600px",panelClass:"dark-theme-dialog",disableClose:!0,data:{selectedType:this.selectedType}})}closeModal(){this.isSaving=!1,this.isModalOpen=!1}saveContent(){this.store.dispatch(sa()),this.isModalOpen=!0}ngOnDestroy(){this.subscription.unsubscribe()}static{this.\u0275fac=function(e){return new(e||i)(k(Nn),k(he))}}static{this.\u0275cmp=E({type:i,selectors:[["app-builder"]],decls:18,vars:6,consts:[["menu","matMenu"],[1,"layout"],[1,"container"],[1,"header"],[1,"title-block"],[1,"content"],[1,"fields-list"],[1,"footer"],["mat-button","","aria-label","Save content",1,"save-button",3,"click","disabled"],[1,"saving-modal"],["mat-icon-button","","aria-label","Settings",1,"settings-button",3,"matMenuTriggerFor"],[1,"menu-container"],["mat-menu-item","",1,"menu-delete",3,"click"],[1,"menu-delete"],["mat-menu-item","",1,"menu-info",3,"click"],["src","assets/illustration.svg","alt","No content"],["text","+ New Collection","aria-label","Add your first field",3,"click"],["text","+ Add field","aria-label","Add another field",1,"add-field-button",3,"click"],[3,"fields"],["diameter","20"],[1,"modal-content"],[1,"spinner-container"],["diameter","50"]],template:function(e,t){e&1&&(l(0,"div",1),M(1,"app-sidebar"),l(2,"div",2)(3,"header",3)(4,"div",4),w(5,yT,2,1,"h1")(6,CT,2,0,"h1"),l(7,"p"),p(8,"Build the data architecture of your design"),c()(),w(9,xT,15,1),c(),w(10,wT,7,0,"div",5)(11,DT,3,1,"div",6),l(12,"footer",7),M(13,"hr"),l(14,"button",8),b("click",function(){return t.saveContent()}),w(15,MT,1,0)(16,kT,2,0),c()()()(),w(17,ST,8,0,"div",9)),e&2&&(m(5),C(t.selectedType!==""?5:6),m(4),C(t.selectedType?9:-1),m(),C(!t.fieldsData.length||t.selectedType===""?10:11),m(4),x("disabled",t.disabled||t.isSaving),m(),C(t.isSaving?16:15),m(2),C(t.isModalOpen?17:-1))},dependencies:[So,fe,Ce,ke,Xe,Ze,Mo,ju,zu,Ma,Da,Rl,wC],styles:["[_nghost-%COMP%]{display:flex;flex-grow:1}.layout[_ngcontent-%COMP%]{display:flex;height:100vh;width:100%}app-sidebar[_ngcontent-%COMP%]{width:250px;flex-shrink:0}.container[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;padding:24px;background-color:#141414;color:#fff}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.header[_ngcontent-%COMP%] .title-block[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;font-size:24px;font-weight:500}.header[_ngcontent-%COMP%] .title-block[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:4px 0 0;font-size:14px;color:#ffffffb3}.header[_ngcontent-%COMP%] .settings-button[_ngcontent-%COMP%]{color:#ac99ea;border:1px solid rgba(213,204,245,.5);border-radius:4px;transition:background-color .2s ease}.header[_ngcontent-%COMP%] .settings-button[_ngcontent-%COMP%]:hover{background-color:#ac99ea1a}.content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 0}.content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-bottom:16px;max-width:200px}.content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:20px;font-weight:500}.content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:14px;color:#ffffffb3}.fields-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;min-height:0}.fields-list[_ngcontent-%COMP%] .add-field-button[_ngcontent-%COMP%]{align-self:flex-end;margin-bottom:16px}.footer[_ngcontent-%COMP%]{margin-top:auto;padding-top:auto;justify-content:flex-end}.footer[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border:0;height:1px;background-color:#ffffff1f;margin-bottom:16px}.footer[_ngcontent-%COMP%] .save-button[_ngcontent-%COMP%]{display:flex;justify-self:flex-end;border-radius:4px;background-color:#ac99ea;color:#212121;transition:background-color .2s ease;padding:6px 16px}.footer[_ngcontent-%COMP%] .save-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#8a6fe1}.footer[_ngcontent-%COMP%] .save-button[_ngcontent-%COMP%]:disabled{color:#ffffff61!important;background-color:#ffffff1f;cursor:not-allowed}.saving-modal[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;display:flex;justify-content:center;z-index:1000;padding-top:10%}.modal-content[_ngcontent-%COMP%]{padding:30px;border-radius:8px;text-align:center;max-width:400px}.modal-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin-top:20px;color:#fff;font-size:24px}.modal-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:10px;color:#fff}.spinner-container[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:20px}.menu-delete[_ngcontent-%COMP%]{color:#ee5251!important}.menu-info[_ngcontent-%COMP%] *[_ngcontent-%COMP%]{color:#fff}"]})}};var ka=class i{constructor(n){this.store=n;this.editText="Edit";this.deleteText="Delete";this.edit=new L;this.delete=new L;this.allowedCrudActions$=this.store.select(da);this.updateDisabled=!1;this.deleteDisabled=!1;this.subscription=new ie}ngOnInit(){this.subscription.add(this.allowedCrudActions$.subscribe(n=>{this.updateDisabled=!n?.includes(4),this.deleteDisabled=!n?.includes(6)}))}onEdit(){this.edit.emit(this.item)}onDelete(){this.delete.emit(this.item)}static{this.\u0275fac=function(e){return new(e||i)(k(he))}}static{this.\u0275cmp=E({type:i,selectors:[["app-menu"]],inputs:{item:"item",editText:"editText",deleteText:"deleteText"},outputs:{edit:"edit",delete:"delete"},decls:11,vars:6,consts:[["role","menu",1,"context-menu"],["role","menuitem",1,"context-menu__item","context-menu__item--edit",3,"click","disabled"],[1,"context-menu__text"],["role","menuitem",1,"context-menu__item","context-menu__item--delete",3,"click","disabled"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"button",1),b("click",function(){return t.onEdit()}),l(2,"mat-icon"),p(3,"edit"),c(),l(4,"span",2),p(5),c()(),l(6,"button",3),b("click",function(){return t.onDelete()}),l(7,"mat-icon"),p(8,"delete"),c(),l(9,"span",2),p(10),c()()()),e&2&&(m(),x("disabled",t.updateDisabled),Y("aria-label",t.editText),m(4),$(t.editText),m(),x("disabled",t.deleteDisabled),Y("aria-label",t.deleteText),m(4),$(t.deleteText))},dependencies:[fe,Ce],styles:[".context-menu[_ngcontent-%COMP%]{display:flex;flex-direction:column;background-color:#1e1e1e;border-radius:4px;box-shadow:0 4px 8px #00000080;padding:.5rem 0;min-width:120px;overflow:hidden}.context-menu__item[_ngcontent-%COMP%]{display:flex;align-items:center;padding:.5rem 1rem;font-size:.875rem;cursor:pointer;background:none;border:none;text-align:left;width:100%;transition:background-color .2s ease}.context-menu__item[_ngcontent-%COMP%]:hover:not([disabled]), .context-menu__item[_ngcontent-%COMP%]:focus:not([disabled]){background-color:#fff3;outline:none}.context-menu__item[_ngcontent-%COMP%]:active{background-color:#fff3}.context-menu__item[_ngcontent-%COMP%]:disabled{cursor:not-allowed}.context-menu__item[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:.75rem;font-size:1.25rem;height:1.25rem;width:1.25rem}.context-menu__item--edit[_ngcontent-%COMP%]{color:#fff}.context-menu__item--edit[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#fff}.context-menu__item--edit[_ngcontent-%COMP%]:disabled *[_ngcontent-%COMP%]{color:#ffffff61}.context-menu__item--delete[_ngcontent-%COMP%]{color:#ef5350}.context-menu__item--delete[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{color:#ef5350}.context-menu__item--delete[_ngcontent-%COMP%]:disabled *[_ngcontent-%COMP%]{color:#9f2f22}.context-menu__text[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}"],changeDetection:0})}};var ET=["*"],Yu=class i{constructor(){this.isOpen=!1;this.title="";this.width="35%";this.closed=new L;this.objectKeys=Object.keys}close(){this.closed.emit()}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=E({type:i,selectors:[["app-drawer"]],inputs:{isOpen:"isOpen",title:"title",width:"width"},outputs:{closed:"closed"},ngContentSelectors:ET,decls:11,vars:5,consts:[[1,"drawer-container"],[1,"drawer-backdrop",3,"click"],[1,"drawer"],[1,"drawer-header"],[1,"close-button",3,"click"],[1,"drawer-content"]],template:function(e,t){e&1&&(Te(),l(0,"div",0)(1,"div",1),b("click",function(){return t.close()}),c(),l(2,"div",2)(3,"div",3)(4,"h2"),p(5),c(),l(6,"button",4),b("click",function(){return t.close()}),l(7,"mat-icon"),p(8,"close"),c()()(),l(9,"div",5),ae(10),c()()()),e&2&&(j("drawer-open",t.isOpen),m(2),pt("width",t.width),m(3),$(t.title))},dependencies:[fe,Ce],styles:[".drawer-container[_ngcontent-%COMP%]{position:fixed;inset:0;pointer-events:none;z-index:1000}.drawer-container.drawer-open[_ngcontent-%COMP%]{pointer-events:auto}.drawer-backdrop[_ngcontent-%COMP%]{position:absolute;inset:0;background-color:#00000080;opacity:0;transition:opacity .3s ease}.drawer-open[_ngcontent-%COMP%] .drawer-backdrop[_ngcontent-%COMP%]{opacity:1}.drawer[_ngcontent-%COMP%]{position:absolute;top:0;right:-100%;bottom:0;width:400px;background-color:#2e2e2e;box-shadow:-2px 0 12px #0000004d;transition:right .3s ease;display:flex;flex-direction:column}.drawer-open[_ngcontent-%COMP%] .drawer[_ngcontent-%COMP%]{right:0}.drawer-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid rgba(255,255,255,.1)}.drawer-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:18px}.drawer-header[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]{background:transparent;border:none;color:#ffffffb3;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:4px;border-radius:50%}.drawer-header[_ngcontent-%COMP%] .close-button[_ngcontent-%COMP%]:hover{background-color:#ffffff1a}.drawer-content[_ngcontent-%COMP%]{flex:1;padding:16px;overflow-y:auto}"]})}};var qu=class i{constructor(){this.imageUrl="";this.title="Image Preview";this.closed=new L;this.zoomLevel=1}zoomIn(){this.zoomLevel<3&&(this.zoomLevel+=.25)}zoomOut(){this.zoomLevel>.5&&(this.zoomLevel-=.25)}resetZoom(){this.zoomLevel=1}close(){this.closed.emit()}onOverlayClick(n){n.target===n.currentTarget&&this.close()}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=E({type:i,selectors:[["app-image-viewer"]],inputs:{imageUrl:"imageUrl",title:"title"},outputs:{closed:"closed"},decls:22,vars:7,consts:[[1,"image-viewer-overlay",3,"click"],[1,"image-viewer-container"],[1,"image-viewer-header"],[1,"image-viewer-title"],["aria-label","Close image viewer",1,"close-button",3,"click"],[1,"image-viewer-content"],["alt","Full size image",1,"viewer-image",3,"src"],[1,"image-viewer-footer"],["aria-label","Zoom out",1,"zoom-button",3,"click","disabled"],[1,"zoom-level"],["aria-label","Zoom in",1,"zoom-button",3,"click","disabled"],["aria-label","Reset zoom",1,"zoom-button",3,"click"]],template:function(e,t){e&1&&(l(0,"div",0),b("click",function(r){return t.onOverlayClick(r)}),l(1,"div",1)(2,"div",2)(3,"h2",3),p(4),c(),l(5,"button",4),b("click",function(){return t.close()}),l(6,"mat-icon"),p(7,"close"),c()()(),l(8,"div",5),M(9,"img",6),c(),l(10,"div",7)(11,"button",8),b("click",function(){return t.zoomOut()}),l(12,"mat-icon"),p(13,"zoom_out"),c()(),l(14,"span",9),p(15),c(),l(16,"button",10),b("click",function(){return t.zoomIn()}),l(17,"mat-icon"),p(18,"zoom_in"),c()(),l(19,"button",11),b("click",function(){return t.resetZoom()}),l(20,"mat-icon"),p(21,"zoom_out_map"),c()()()()()),e&2&&(m(4),$(t.title),m(5),pt("transform","scale("+t.zoomLevel+")"),x("src",t.imageUrl,vr),m(2),x("disabled",t.zoomLevel<=.5),m(4),U("",(t.zoomLevel*100).toFixed(0),"%"),m(),x("disabled",t.zoomLevel>=3))},dependencies:[Ae,fe,Ce,ke],styles:[".image-viewer-overlay[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;background-color:#000000d9;z-index:1000;display:flex;justify-content:center;align-items:center}.image-viewer-container[_ngcontent-%COMP%]{width:90%;height:90%;background-color:#1e1e1e;border-radius:8px;display:flex;flex-direction:column;overflow:hidden}.image-viewer-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:16px;border-bottom:1px solid rgba(213,204,245,.5)}.image-viewer-title[_ngcontent-%COMP%]{margin:0;color:#fff;font-size:18px}.close-button[_ngcontent-%COMP%]{background:transparent;border:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:8px;border-radius:50%}.close-button[_ngcontent-%COMP%]:hover{background-color:#ffffff1a}.image-viewer-content[_ngcontent-%COMP%]{flex:1;display:flex;justify-content:center;align-items:center;overflow:auto;padding:16px}.viewer-image[_ngcontent-%COMP%]{max-width:100%;max-height:100%;object-fit:contain;transition:transform .2s ease}.image-viewer-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:16px;border-top:1px solid rgba(255,255,255,.1)}.zoom-button[_ngcontent-%COMP%]{background:transparent;border:none;color:#fff;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:8px;border-radius:4px;margin:0 8px}.zoom-button[_ngcontent-%COMP%]:hover:not(:disabled){background-color:#ffffff1a}.zoom-button[_ngcontent-%COMP%]:disabled{color:#ffffff4d;cursor:not-allowed}.zoom-level[_ngcontent-%COMP%]{color:#fff;margin:0 16px;min-width:60px;text-align:center}"]})}};var OT=(i,n)=>n.Id,MC=(i,n)=>n.key;function TT(i,n){if(i&1){let e=Q();l(0,"button",21),b("click",function(){I(e);let o=f();return P(o.toggleSearch())}),l(1,"mat-icon"),p(2,"search"),c()()}}function AT(i,n){if(i&1){let e=Q();l(0,"div",3)(1,"mat-icon",22),p(2,"search"),c(),l(3,"input",23),kn("ngModelChange",function(o){I(e);let r=f();return Mn(r.searchText,o)||(r.searchText=o),P(o)}),b("ngModelChange",function(o){I(e);let r=f();return P(r.onSearchTextChange(o))}),c(),l(4,"button",24),b("click",function(){I(e);let o=f();return P(o.clearSearch())}),l(5,"mat-icon"),p(6,"close"),c()()()}if(i&2){let e=f();m(3),Dn("ngModel",e.searchText)}}function IT(i,n){if(i&1){let e=Q();l(0,"button",25),b("click",function(){I(e);let o=f();return P(o.deleteSelectedItems())}),l(1,"mat-icon"),p(2,"delete"),c(),l(3,"span"),p(4,"Delete selected"),c()()}}function PT(i,n){if(i&1){let e=Q();l(0,"button",27),b("click",function(){I(e);let o=f(2);return P(o.navigateToCreate())}),p(1),c()}if(i&2){let e=f(),t=f();x("disabled",t.disabled),m(),U(" + Create new ",e," ")}}function RT(i,n){i&1&&w(0,PT,2,2,"button",26),i&2&&C(n!=="Users"?0:-1)}function FT(i,n){if(i&1&&(l(0,"th",29),p(1),c()),i&2){let e=n.$implicit,t=f(2);pt("max-width",t.getColumnWidth(e),"px"),m(),U(" ",e.label," ")}}function NT(i,n){if(i&1&&(de(0,FT,2,3,"th",28,MC),gt(2,"slice")),i&2){let e=f();ue(Um(2,0,e.getFilteredHeaders(n),1))}}function LT(i,n){if(i&1){let e=Q();l(0,"app-image-viewer",39),b("closed",function(){I(e);let o=f(6);return P(o.closeImageViewer())}),c()}if(i&2){let e=f(6);x("imageUrl",e.currentImageUrl)("title",e.currentImageTitle)}}function VT(i,n){if(i&1){let e=Q();l(0,"img",37),b("click",function(){I(e);let o=f(2).$implicit,r=f(2).$implicit,a=f();return P(a.openImageViewer(a.getCellDisplay(r,o),o.label))}),c(),w(1,LT,1,2,"app-image-viewer",38)}if(i&2){let e=f(2).$implicit,t=f(2).$implicit,o=f();zm("alt",e.label),x("src",o.getCellDisplay(t,e),vr),m(),C(o.isImageViewerOpen&&o.currentImageUrl===o.getCellDisplay(t,e)?1:-1)}}function BT(i,n){if(i&1&&w(0,VT,2,3),i&2){let e=f().$implicit,t=f(2).$implicit,o=f();C(o.getCellDisplay(t,e)?0:-1)}}function jT(i,n){if(i&1){let e=Q();l(0,"span",42),b("click",function(){I(e);let o=f(2).$implicit,r=f(2).$implicit,a=f();return P(a.openDrawer(r,o))}),p(1),l(2,"mat-icon",43),p(3,"chevron_right"),c()()}if(i&2){let e=f(2).$implicit,t=f(2).$implicit,o=f();m(),U(" ",o.getCellDisplay(t,e)," ")}}function zT(i,n){i&1&&(l(0,"mat-icon",45),p(1,"check_circle"),c())}function UT(i,n){i&1&&(l(0,"mat-icon",46),p(1,"cancel"),c())}function HT(i,n){if(i&1&&(l(0,"span",44),w(1,zT,2,0,"mat-icon",45)(2,UT,2,0,"mat-icon",46),c()),i&2){let e=f(2).$implicit,t=f(2).$implicit,o=f();j("checked",o.getCellDisplay(t,e)),zm("ariaLabel",o.getCellDisplay(t,e)?"Yes":"No"),m(),C(o.getCellDisplay(t,e)?1:2)}}function $T(i,n){if(i&1&&p(0),i&2){let e=f(2).$implicit,t=f(2).$implicit,o=f();U(" ",o.getCellDisplay(t,e)," ")}}function GT(i,n){if(i&1&&w(0,jT,4,1,"span",40)(1,HT,3,4,"span",41)(2,$T,1,1),i&2){let e=f().$implicit,t=f(3);C(e.type===t.fieldType.relation||e.type===t.fieldType.collection?0:e.type===t.fieldType.checkbox?1:2)}}function WT(i,n){if(i&1&&(l(0,"td",36),w(1,BT,1,1)(2,GT,3,1),c()),i&2){let e=n.$implicit,t=f(3);pt("max-width",t.getColumnWidth(e),"px"),m(),C(e.type===t.fieldType.file?1:2)}}function YT(i,n){if(i&1&&(de(0,WT,3,3,"td",35,MC),gt(2,"slice")),i&2){let e=f(2);ue(Um(2,0,e.getFilteredHeaders(n),1))}}function qT(i,n){if(i&1){let e=Q();l(0,"tr",30)(1,"td",31)(2,"mat-checkbox",32),b("change",function(o){let r=I(e).$implicit,a=f();return P(a.toggleSelectItem(o,r.Id))}),c()(),w(3,YT,3,3),gt(4,"async"),l(5,"td",33)(6,"button",34),b("click",function(o){let r=I(e).$implicit,a=f();return P(a.toggleMenu(r,o))}),l(7,"mat-icon"),p(8,"more_vert"),c()()()()}if(i&2){let e,t=n.$implicit,o=f();j("selected",o.selectedItems.has(t.Id)),Y("aria-selected",o.activeMenuItemId===t.Id||o.selectedItems.has(t.Id)),m(2),x("checked",o.selectedItems.has(t.Id)),m(),C((e=Ot(4,6,o.headers$))?3:-1,e),m(3),Y("aria-expanded",o.activeMenuItemId===t.Id)}}function KT(i,n){i&1&&(l(0,"div",14)(1,"p"),p(2,"Loading data..."),c()())}function ZT(i,n){i&1&&(l(0,"div",15)(1,"p"),p(2,"No items found. Try adjusting your search criteria."),c()())}function QT(i,n){i&1&&(l(0,"span",50),p(1,"..."),c())}function XT(i,n){if(i&1){let e=Q();l(0,"button",52),b("click",function(){I(e);let o=f().$implicit,r=f(2);return P(r.goToPage(o))}),p(1),c()}if(i&2){let e=f().$implicit,t=f(2);j("active",t.currentPage===e),m(),U(" ",e," ")}}function JT(i,n){if(i&1&&w(0,QT,2,0,"span",50)(1,XT,2,3,"button",51),i&2){let e=n.$implicit;C(e===-1?0:1)}}function eA(i,n){if(i&1){let e=Q();l(0,"div",16)(1,"button",47),b("click",function(){I(e);let o=f();return P(o.previousPage())}),l(2,"mat-icon"),p(3,"chevron_left"),c()(),de(4,JT,2,1,null,null,Vo),l(6,"button",48),b("click",function(){I(e);let o=f();return P(o.nextPage())}),l(7,"mat-icon"),p(8,"chevron_right"),c()(),l(9,"span",49),p(10),c()()}if(i&2){let e=f();m(),x("disabled",e.currentPage===1),m(3),ue(e.paginationArray),m(2),x("disabled",e.currentPage===e.totalPages),m(4),Pg(" ",(e.currentPage-1)*e.itemsPerPage+1,"-",e.Math.min(e.currentPage*e.itemsPerPage,e.totalItems)," of ",e.totalItems," items ")}}function tA(i,n){if(i&1){let e=Q();l(0,"div",53),b("click",function(o){return I(e),P(o.stopPropagation())}),l(1,"div",54)(2,"app-menu",55),b("edit",function(o){I(e);let r=f();return P(r.onEdit(o))})("delete",function(o){I(e);let r=f();return P(r.onDelete(o))}),c()()()}if(i&2){let e=f();m(),pt("top",e.menuPosition.top,"px")("left",e.menuPosition.left,"px"),m(),x("item",e.getSelectedItem())}}function iA(i,n){if(i&1&&(l(0,"div",56)(1,"strong"),p(2),c(),p(3),c()),i&2){let e=n.$implicit,t=f(2);m(2),U("",e,": "),m(),U(" ",t.drawerData[e]," ")}}function nA(i,n){if(i&1&&(l(0,"div",19),de(1,iA,4,2,"div",56,Qe),c()),i&2){let e=f();m(),ue(e.objectKeys(e.drawerData))}}function oA(i,n){if(i&1&&(l(0,"div",56)(1,"strong"),p(2),c(),p(3),c()),i&2){let e=n.$implicit,t=f().$implicit;m(2),U("",e,": "),m(),U(" ",t[e]," ")}}function rA(i,n){i&1&&M(0,"hr")}function aA(i,n){if(i&1&&(l(0,"div",57),de(1,oA,4,2,"div",56,Qe),w(3,rA,1,0,"hr"),c()),i&2){let e=n.$implicit,t=n.$index,o=n.$count,r=f(2);m(),ue(r.objectKeys(e)),m(2),C(t!==o-1?3:-1)}}function sA(i,n){if(i&1&&(l(0,"div",20),de(1,aA,4,1,"div",57,Vo),c()),i&2){let e=f();m(),ue(e.drawerData)}}var Ku=class i{constructor(n,e,t){this.router=n;this.sanitizer=e;this.store=t;this.subscription=new ie;this.fieldType=cr;this.Math=Math;this.selectedType=void 0;this.searchText=void 0;this.limit=void 0;this.items=[];this.objectKeys=Object.keys;this.isDrawerOpen=!1;this.drawerTitle="";this.drawerData=null;this.drawerType=null;this.isImageViewerOpen=!1;this.currentImageUrl="";this.currentImageTitle="";this.selectedType$=this.store.select(ut);this.isSearching$=this.store.select(wu);this.itemsPerPage$=this.store.select(Ca);this.items$=this.store.select(ba);this.headers$=this.store.select(va);this.loading$=this.store.select(ya);this.isSearching=!1;this.menuPosition={top:0,left:0};this.activeMenuItemId=void 0;this.selectAll=!1;this.selectedItems=new Set;this.currentPage=1;this.itemsPerPage=10;this.totalItems=0;this.totalPages=1;this.paginationArray=[];this.isLoading=!0;this.allowedCrudActions$=this.store.select(da);this.disabled=!1;this.crudActions=wo}ngOnDestroy(){this.subscription.unsubscribe()}onCellClick(n,e){(e.type===5||e.type===3)&&(this.drawerTitle=e.label,this.drawerData=n[e.key],this.drawerType=e.type)}closeDrawer(){this.isDrawerOpen=!1}openImageViewer(n,e){this.currentImageUrl=n,this.currentImageTitle=e,this.isImageViewerOpen=!0,document.body.style.overflow="hidden"}closeImageViewer(){this.isImageViewerOpen=!1,this.currentImageUrl="",document.body.style.overflow=""}getRelationDisplay(n,e){let t=n[e.key];return t?e.type===5?t.title||t.name||"View relation":e.type===3?`${Array.isArray(t)?t.length:0} items`:String(t):"None"}ngOnInit(){this.subscription.add(this.selectedType$.subscribe(n=>this.selectedType=n)),this.subscription.add(this.isSearching$.subscribe(n=>this.isSearching=n)),this.subscription.add(this.itemsPerPage$.subscribe(n=>this.limit=n)),this.subscription.add(this.items$.subscribe(n=>{this.items=n?.Data??[],this.totalItems=n?.Total??0,this.calculatePagination()})),this.subscription.add(this.allowedCrudActions$.subscribe(n=>{n&&n.includes(3)?this.disabled=!1:this.disabled=!0})),this.subscription.add(this.loading$.subscribe(n=>this.isLoading=n))}openDrawer(n,e){(e.type===5||e.type===3)&&(this.drawerTitle=e.label,this.drawerData=n[e.key],this.drawerType=e.type,this.isDrawerOpen=!0)}ngOnChanges(n){n.items&&(this.selectedItems.clear(),this.selectAll=!1)}calculatePagination(){this.totalPages=Math.ceil(this.totalItems/this.itemsPerPage),this.paginationArray=[],this.totalPages>0&&this.paginationArray.push(1);let e=Math.floor(5/2),t=Math.max(2,this.currentPage-e),o=Math.min(this.totalPages-1,this.currentPage+e);t>2&&this.paginationArray.push(-1);for(let r=t;r<=o;r++)this.paginationArray.includes(r)||this.paginationArray.push(r);o1&&this.paginationArray.push(-1),this.totalPages>1&&!this.paginationArray.includes(this.totalPages)&&this.paginationArray.push(this.totalPages)}goToPage(n){n<1||n>this.totalPages||n===this.currentPage||this.selectedType&&(this.currentPage=n,this.store.dispatch(ei({selectedType:this.selectedType,page:n,limit:this.limit??10,searchText:this.searchText??""})))}previousPage(){this.currentPage>1&&this.goToPage(this.currentPage-1)}nextPage(){this.currentPagethis.selectedItems.add(t.Id))}toggleSelectItem(n,e){n.checked?this.selectedItems.add(e):this.selectedItems.delete(e),this.selectAll=this.items.length>0&&this.selectedItems.size===this.items.length}deleteSelectedItems(){if(this.selectedItems.size===0)return;if(window.confirm(`Are you sure you want to delete ${this.selectedItems.size} selected item(s)?`)){let e=Array.from(this.selectedItems);this.store.dispatch(fa({ids:e,contentType:this.selectedType??""})),this.store.dispatch(ei({selectedType:this.selectedType??"",page:this.currentPage,limit:this.limit??10,searchText:this.searchText??""})),this.selectedItems.clear(),this.selectAll=!1}}getFilteredHeaders(n){return n?n.filter(e=>e.type!==5):[]}getColumnWidth(n){switch(n.type){case 2:return 150;case 8:return 220;case 1:return 250;case 0:return 200;case 7:return 80;default:return 150}}getCellDisplay(n,e){let t=n[e.key];if(t==null)return"-";switch(e.type){case 2:return t.Url;case 8:return this.formatDate(t);case 7:return t;case 5:return t.title||"View relation";case 3:return`${t.length||0} items`;default:return t}}formatDate(n){if(!n)return"-";try{let e=new Date(n);return isNaN(e.getTime())?n:e.toLocaleDateString("en-US",{year:"numeric",month:"short",day:"numeric"})+" at "+e.toLocaleTimeString("en-US",{hour:"numeric",minute:"2-digit",hour12:!0})}catch(e){return console.error("Error formatting date:",e),n}}navigateToCreate(){this.router.navigate(["/content-create"])}toggleMenu(n,e){if(e.stopPropagation(),this.activeMenuItemId===n.Id)this.activeMenuItemId=void 0;else{let t=e.currentTarget.getBoundingClientRect(),o=150,r=t.right+window.scrollX,a=window.innerWidth,s=r-o>a?a-o-12:t.right-o+window.scrollX;this.menuPosition={top:t.bottom+window.scrollY+4,left:s},this.activeMenuItemId=n.Id}}getSelectedItem(){return this.items.find(n=>n.Id===this.activeMenuItemId)||null}onDocumentClick(){this.activeMenuItemId!==null&&this.closeMenu()}closeMenu(){this.activeMenuItemId=void 0}onEdit(n){this.router.navigate(["content-create"]),this.store.dispatch(pa({currentItem:n})),this.closeMenu()}onDelete(n){window.confirm("Are you sure you want to delete?")&&this.store.dispatch(ha({id:n.Id,contentType:this.selectedType??""})),this.closeMenu()}toggleSearch(){this.store.dispatch(xl({isSearching:!0}))}clearSearch(){this.store.dispatch(Qh({searchText:""})),this.searchText="",this.currentPage=1,this.store.dispatch(xl({isSearching:!1})),this.store.dispatch(ei({selectedType:this.selectedType??"",page:1,limit:this.itemsPerPage,searchText:""}))}onSearchTextChange(n){this.store.dispatch(Qh({searchText:n})),this.store.dispatch(ei({selectedType:this.selectedType??"",page:1,limit:this.itemsPerPage,searchText:n}))}static{this.\u0275fac=function(e){return new(e||i)(k($e),k(fs),k(he))}}static{this.\u0275cmp=E({type:i,selectors:[["app-content-table"]],hostBindings:function(e,t){e&1&&b("click",function(){return t.onDocumentClick()},!1,Ya)},features:[Oe],decls:33,vars:18,consts:[[1,"action-buttons"],[1,"left-controls"],["aria-label","Search",1,"icon-button"],[1,"search-container"],["aria-label","Filter content",1,"filter-button"],["aria-label","Delete selected items",1,"delete-selected-button"],[1,"scrollable-list"],["role","table","aria-label","Content items",1,"content-table"],["role","row",1,"header-row"],["role","columnheader",1,"small-cell"],["aria-label","Select all items",3,"change","checked","indeterminate"],["role","columnheader",1,"small-cell","actions-cell"],[1,"sr-only"],["role","row",1,"content-row",3,"selected"],[1,"loading-indicator"],[1,"no-results"],[1,"pagination-controls"],[1,"floating-menu-container"],[3,"closed","isOpen","title"],[1,"relation-details"],[1,"collection-list"],["aria-label","Search",1,"icon-button",3,"click"],[1,"search-icon"],["type","text","placeholder","Type to search....","aria-label","Search content","autofocus","",3,"ngModelChange","ngModel"],["aria-label","Clear search",1,"clear-button",3,"click"],["aria-label","Delete selected items",1,"delete-selected-button",3,"click"],["aria-label","Create new content",1,"create-button",3,"disabled"],["aria-label","Create new content",1,"create-button",3,"click","disabled"],["role","columnheader",1,"cell",3,"max-width"],["role","columnheader",1,"cell"],["role","row",1,"content-row"],["role","cell",1,"small-cell"],[3,"change","checked"],["role","cell",1,"small-cell","actions-cell"],["mat-icon-button","","aria-haspopup","true",3,"click"],["role","cell",1,"cell",3,"max-width"],["role","cell",1,"cell"],[1,"file-preview",3,"click","src","alt"],[3,"imageUrl","title"],[3,"closed","imageUrl","title"],[1,"clickable-cell"],[1,"checkbox-indicator",3,"checked","ariaLabel"],[1,"clickable-cell",3,"click"],[1,"cell-icon"],[1,"checkbox-indicator",3,"ariaLabel"],[1,"check-icon"],[1,"x-icon"],["aria-label","Previous page",1,"pagination-button",3,"click","disabled"],["aria-label","Next page",1,"pagination-button",3,"click","disabled"],[1,"pagination-info"],[1,"pagination-ellipsis"],[1,"pagination-button",3,"active"],[1,"pagination-button",3,"click"],[1,"floating-menu-container",3,"click"],["role","menu",1,"floating-menu"],["editText","Edit","deleteText","Delete",3,"edit","delete","item"],[1,"relation-item"],[1,"collection-item"]],template:function(e,t){if(e&1&&(l(0,"div",0)(1,"div",1),w(2,TT,3,0,"button",2)(3,AT,7,1,"div",3),l(4,"button",4)(5,"mat-icon"),p(6,"filter_list"),c(),l(7,"span"),p(8,"Filter"),c()(),w(9,IT,5,0,"button",5),c(),w(10,RT,1,1),gt(11,"async"),c(),l(12,"div",6)(13,"table",7)(14,"thead")(15,"tr",8)(16,"th",9)(17,"mat-checkbox",10),b("change",function(r){return t.toggleSelectAll(r)}),c()(),w(18,NT,3,3),gt(19,"async"),l(20,"th",11)(21,"span",12),p(22,"Actions"),c()()()(),l(23,"tbody"),de(24,qT,9,8,"tr",13,OT),c()(),w(26,KT,3,0,"div",14)(27,ZT,3,0,"div",15)(28,eA,11,5,"div",16),c(),w(29,tA,3,5,"div",17),l(30,"app-drawer",18),b("closed",function(){return t.closeDrawer()}),w(31,nA,3,0,"div",19)(32,sA,3,0,"div",20),c()),e&2){let o,r;m(2),C(t.isSearching?3:2),m(7),C(t.selectedItems.size>0?9:-1),m(),C((o=Ot(11,14,t.selectedType$))?10:-1,o),m(7),x("checked",t.selectAll)("indeterminate",t.selectedItems.size>0&&t.selectedItems.size1?28:-1),m(),C(t.activeMenuItemId!==void 0?29:-1),m(),x("isOpen",t.isDrawerOpen)("title",t.drawerTitle),m(),C(t.drawerType===t.fieldType.relation&&t.drawerData?31:-1),m(),C(t.drawerType===t.fieldType.collection&&t.drawerData?32:-1)}},dependencies:[Ki,qi,fe,Ce,ke,Ze,Ae,Ci,ep,pi,Mt,Pt,nr,Ma,ka,Yu,qu],styles:["[_nghost-%COMP%]{display:block}.action-buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:16px}.action-buttons[_ngcontent-%COMP%] .left-controls[_ngcontent-%COMP%]{display:flex;gap:12px;align-items:center}.checkbox-indicator[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:start}.checkbox-indicator[_ngcontent-%COMP%] .check-icon[_ngcontent-%COMP%]{color:#66bb6a;font-size:20px}.checkbox-indicator[_ngcontent-%COMP%] .x-icon[_ngcontent-%COMP%]{color:#ef5350;font-size:20px}.icon-button[_ngcontent-%COMP%], .filter-button[_ngcontent-%COMP%]{height:40px;display:flex;align-items:center;justify-content:center;color:#ac99ea;border:1px solid rgba(213,204,245,.5);border-radius:4px;cursor:pointer;background:transparent;padding:0 8px;transition:background-color .2s ease}.icon-button[_ngcontent-%COMP%]:hover, .filter-button[_ngcontent-%COMP%]:hover{background-color:#ac99ea1a}.icon-button[_ngcontent-%COMP%]:focus-visible, .filter-button[_ngcontent-%COMP%]:focus-visible{outline:2px solid #ac99ea;outline-offset:2px}.icon-button[_ngcontent-%COMP%]{width:40px;padding:0}.filter-button[_ngcontent-%COMP%]{display:flex;gap:8px}.create-button[_ngcontent-%COMP%]{color:#212121;background-color:#ac99ea;padding:10px 16px;border:none;border-radius:4px;cursor:pointer;font-weight:500;transition:background-color .2s ease}.create-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#8a6fe1}.create-button[_ngcontent-%COMP%]:focus-visible{outline:2px solid #212121;outline-offset:2px}.create-button[_ngcontent-%COMP%]:disabled{color:#ffffff61!important;background-color:#ffffff1f;cursor:not-allowed}.search-container[_ngcontent-%COMP%]{display:flex;align-items:center;background:#ffffff1a;border-radius:4px;height:40px;border:1px solid #ac99ea;min-width:240px}.search-container[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{background:transparent;border:none;outline:none;color:#fff;flex:1;padding:0 8px;font-size:14px}.search-container[_ngcontent-%COMP%] .search-icon[_ngcontent-%COMP%]{color:#ac99ea;margin:0 8px}.search-container[_ngcontent-%COMP%] .clear-button[_ngcontent-%COMP%]{background:transparent;border:none;display:flex;align-items:center;justify-content:center;cursor:pointer;color:#ffffff8f;padding:4px;margin-right:4px;border-radius:50%}.search-container[_ngcontent-%COMP%] .clear-button[_ngcontent-%COMP%]:hover{background-color:#ffffff1a}.scrollable-list[_ngcontent-%COMP%]{width:100%;overflow:auto;border-radius:8px}.content-table[_ngcontent-%COMP%]{width:100%;border-spacing:0 4px;border-collapse:separate}.header-row[_ngcontent-%COMP%], .content-row[_ngcontent-%COMP%]{display:table-row;background:#1e1e1e}.header-row[_ngcontent-%COMP%]{position:sticky;top:0;z-index:2;background-color:#d5ccf51f}.small-cell[_ngcontent-%COMP%], .cell[_ngcontent-%COMP%]{display:table-cell;padding:12px 16px;vertical-align:middle;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px}.small-cell[_ngcontent-%COMP%], .cell[_ngcontent-%COMP%]{text-align:left}.small-cell[_ngcontent-%COMP%]{width:50px}.small-cell[_ngcontent-%COMP%] .mat-mdc-checkbox[_ngcontent-%COMP%]{margin-right:8px}.cell[_ngcontent-%COMP%]{flex-grow:1}.file-preview[_ngcontent-%COMP%]{max-width:100px;max-height:100px;object-fit:cover;border-radius:4px}.actions-cell[_ngcontent-%COMP%]{width:50px;text-align:right}.floating-menu-container[_ngcontent-%COMP%]{position:fixed;top:0;left:0;width:100%;height:100%;z-index:10;pointer-events:none}.floating-menu[_ngcontent-%COMP%]{position:absolute;background:#2e2e2e;border-radius:4px;box-shadow:0 4px 8px #0000004d;pointer-events:auto;min-width:150px}.no-results[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:32px;color:#fff9;font-style:italic}.loading-indicator[_ngcontent-%COMP%]{display:flex;justify-content:center;padding:32px;color:#fffc}.sr-only[_ngcontent-%COMP%]{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.delete-selected-button[_ngcontent-%COMP%]{background:transparent;color:#ef5350;justify-content:center;align-items:center;display:flex;border:none}.pagination-controls[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;padding:16px 0;gap:8px}.pagination-button[_ngcontent-%COMP%]{min-width:36px;height:36px;display:flex;align-items:center;justify-content:center;border-radius:4px;background:transparent;border:1px solid rgba(172,153,234,.3);color:#ac99ea;cursor:pointer;transition:all .2s ease}.pagination-button[_ngcontent-%COMP%]:hover:not(:disabled){background-color:#ac99ea1a;border-color:#ac99ea}.pagination-button[_ngcontent-%COMP%]:disabled{opacity:.5;cursor:not-allowed}.pagination-button.active[_ngcontent-%COMP%]{background-color:#ac99ea;color:#212121;border-color:#ac99ea}.pagination-ellipsis[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;min-width:36px;height:36px;color:#ac99ea}.pagination-info[_ngcontent-%COMP%]{margin-left:16px;color:#ffffffb3;font-size:14px}.clickable-cell[_ngcontent-%COMP%]{display:flex;align-items:center;cursor:pointer;color:#ac99ea}.clickable-cell[_ngcontent-%COMP%]:hover{text-decoration:underline}.clickable-cell[_ngcontent-%COMP%] .cell-icon[_ngcontent-%COMP%]{margin-top:6px;margin-left:4px;font-size:18px}.relation-details[_ngcontent-%COMP%] .relation-item[_ngcontent-%COMP%], .collection-list[_ngcontent-%COMP%] .relation-item[_ngcontent-%COMP%]{margin-bottom:8px}.relation-details[_ngcontent-%COMP%] .relation-item[_ngcontent-%COMP%] strong[_ngcontent-%COMP%], .collection-list[_ngcontent-%COMP%] .relation-item[_ngcontent-%COMP%] strong[_ngcontent-%COMP%]{color:#ac99ea}.collection-item[_ngcontent-%COMP%]{padding:12px 0}.collection-item[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border:none;border-top:1px solid rgba(255,255,255,.1);margin:16px 0 0}"]})}};function lA(i,n){if(i&1&&(l(0,"div",8),M(1,"mat-spinner",9),l(2,"p"),p(3),c()()),i&2){let e=f(2);m(3),U("Loading content for ",e,"...")}}function cA(i,n){if(i&1&&(w(0,lA,4,1,"div",8),gt(1,"async")),i&2){let e=f(2);C(Ot(1,1,e.isLoading$)?0:-1)}}function dA(i,n){if(i&1){let e=Q();l(0,"div",6),M(1,"img",10),l(2,"h2"),p(3),c(),l(4,"p"),p(5),c(),l(6,"app-button",11),b("click",function(){I(e);let o=f(2);return P(o.navigateToCreate())}),c()()}if(i&2){let e=f();m(3),U("There are no ",e," items created yet"),m(2),U("Add your first ",e," to this Collection-Type"),m(),x("text","+ Add new "+e)}}function uA(i,n){i&1&&(l(0,"div",7),M(1,"app-content-table"),c())}function mA(i,n){i&1&&(l(0,"div",6),M(1,"img",12),l(2,"h2"),p(3,"No collection type selected"),c(),l(4,"p"),p(5,"Please select a collection type from the sidebar"),c()())}function pA(i,n){if(i&1&&(l(0,"div",2)(1,"header",3)(2,"div",4)(3,"h1"),p(4),c(),l(5,"p"),p(6,"Create the content of your design"),c()(),l(7,"button",5)(8,"mat-icon"),p(9,"more_vert"),c()()(),w(10,cA,2,3),gt(11,"async"),w(12,dA,7,3,"div",6)(13,uA,2,0,"div",7)(14,mA,6,0,"div",6),gt(15,"async"),c()),i&2){let e,t=n,o=f();m(4),$(t||"Select a Type"),m(3),x("disabled",!t),m(3),C((e=Ot(11,5,o.isLoading$))?10:-1,e),m(2),C(!o.items.length&&!o.isSearching?12:13),m(2),C(Ot(15,7,o.isLoading$)&&!t?14:-1)}}var Zu=class i{constructor(n,e){this.router=n;this.store=e;this.disabled=!1;this.isSearching=!1;this.subscription=new ie;this.items=[];this.isSearching$=this.store.select(wu);this.items$=this.store.select(ba);this.headers$=this.store.select(va);this.error$=this.store.select(Ey);this.retry=0;this.isLoading$=this.store.select(ya);this.selectedType$=this.store.select(ut);this.totalItems$=this.store.select(Oy)}ngOnInit(){this.subscription.add(this.isSearching$.subscribe(n=>this.isSearching=n)),this.subscription.add(this.selectedType$.subscribe(n=>{n&&(this.store.dispatch(_u({selectedType:n})),this.store.dispatch(ei({selectedType:n,page:1,limit:10,searchText:""})))})),this.subscription.add(this.items$.subscribe(n=>{this.items=n?.Data??[]}))}ngOnDestroy(){this.subscription.unsubscribe()}navigateToCreate(){this.router.navigate(["/content-create"])}static{this.\u0275fac=function(e){return new(e||i)(k($e),k(he))}}static{this.\u0275cmp=E({type:i,selectors:[["app-content-manager"]],decls:4,vars:3,consts:[[1,"layout"],["headerText","Content Manager"],[1,"container"],[1,"header"],[1,"title-block"],["mat-icon-button","","aria-label","Settings",1,"settings-button",3,"disabled"],[1,"content"],[1,"content-list"],[1,"content","loading-content"],["diameter","40"],["src","assets/illustration.svg","alt","No content"],["aria-label","Add new content",3,"click","text"],["src","assets/illustration.svg","alt","No type selected"]],template:function(e,t){if(e&1&&(l(0,"div",0),M(1,"app-sidebar",1),w(2,pA,16,9,"div",2),gt(3,"async"),c()),e&2){let o;m(2),C((o=Ot(3,1,t.selectedType$))?2:-1,o)}},dependencies:[So,Ku,fe,Ce,ke,Ze,Mo,Ae,Ci,zu],styles:["[_nghost-%COMP%]{display:flex;flex-grow:1}.layout[_ngcontent-%COMP%]{display:flex;height:100vh;width:100%}app-sidebar[_ngcontent-%COMP%]{width:250px;flex-shrink:0}.container[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;padding:24px;background-color:#141414;color:#fff}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.header[_ngcontent-%COMP%] .title-block[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;font-size:24px}.header[_ngcontent-%COMP%] .title-block[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:4px 0 0;font-size:14px;color:#ffffffb3}.header[_ngcontent-%COMP%] .settings-button[_ngcontent-%COMP%]{color:#ac99ea;border:1px solid rgba(213,204,245,.5);border-radius:4px;transition:background-color .2s ease}.header[_ngcontent-%COMP%] .settings-button[_ngcontent-%COMP%]:hover{background-color:#ac99ea1a}.content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 0}.content[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-bottom:24px;max-width:200px}.content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:20px;font-weight:500}.content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:14px;color:#ffffffb3}.content-list[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;margin-bottom:24px;overflow:auto;width:100%;position:relative;contain:size}.footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex-direction:column;margin-top:auto}.footer[_ngcontent-%COMP%] hr[_ngcontent-%COMP%]{border:0;height:1px;background-color:#ffffff1f;margin-bottom:16px}.footer[_ngcontent-%COMP%] .save-button[_ngcontent-%COMP%]{align-self:flex-end;border-radius:4px;background-color:#ac99ea;color:#212121;transition:background-color .2s ease;padding:6px 16px}.footer[_ngcontent-%COMP%] .save-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#8a6fe1}.footer[_ngcontent-%COMP%] .save-button[_ngcontent-%COMP%]:disabled{color:#ffffff61!important;background-color:#ffffff1f;cursor:not-allowed}.loading-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin-top:16px}"]})}};var yf=new v("MAT_DATE_LOCALE",{providedIn:"root",factory:hA});function hA(){return d(Qa)}var Sa="Method not implemented",Yt=class{locale;_localeChanges=new S;localeChanges=this._localeChanges;setTime(n,e,t,o){throw new Error(Sa)}getHours(n){throw new Error(Sa)}getMinutes(n){throw new Error(Sa)}getSeconds(n){throw new Error(Sa)}parseTime(n,e){throw new Error(Sa)}addSeconds(n,e){throw new Error(Sa)}getValidDateOrNull(n){return this.isDateInstance(n)&&this.isValid(n)?n:null}deserialize(n){return n==null||this.isDateInstance(n)&&this.isValid(n)?n:this.invalid()}setLocale(n){this.locale=n,this._localeChanges.next()}compareDate(n,e){return this.getYear(n)-this.getYear(e)||this.getMonth(n)-this.getMonth(e)||this.getDate(n)-this.getDate(e)}compareTime(n,e){return this.getHours(n)-this.getHours(e)||this.getMinutes(n)-this.getMinutes(e)||this.getSeconds(n)-this.getSeconds(e)}sameDate(n,e){if(n&&e){let t=this.isValid(n),o=this.isValid(e);return t&&o?!this.compareDate(n,e):t==o}return n==e}sameTime(n,e){if(n&&e){let t=this.isValid(n),o=this.isValid(e);return t&&o?!this.compareTime(n,e):t==o}return n==e}clampDate(n,e,t){return e&&this.compareDate(n,e)<0?e:t&&this.compareDate(n,t)>0?t:n}},Eo=new v("mat-date-formats");var fA=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,gA=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function Cf(i,n){let e=Array(i);for(let t=0;t{class i extends Yt{useUtcForDisplay=!1;_matDateLocale=d(yf,{optional:!0});constructor(){super();let e=d(yf,{optional:!0});e!==void 0&&(this._matDateLocale=e),super.setLocale(this._matDateLocale)}getYear(e){return e.getFullYear()}getMonth(e){return e.getMonth()}getDate(e){return e.getDate()}getDayOfWeek(e){return e.getDay()}getMonthNames(e){let t=new Intl.DateTimeFormat(this.locale,{month:e,timeZone:"utc"});return Cf(12,o=>this._format(t,new Date(2017,o,1)))}getDateNames(){let e=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return Cf(31,t=>this._format(e,new Date(2017,0,t+1)))}getDayOfWeekNames(e){let t=new Intl.DateTimeFormat(this.locale,{weekday:e,timeZone:"utc"});return Cf(7,o=>this._format(t,new Date(2017,0,o+1)))}getYearName(e){let t=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(t,e)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){let e=new Intl.Locale(this.locale),t=(e.getWeekInfo?.()||e.weekInfo)?.firstDay??0;return t===7?0:t}return 0}getNumDaysInMonth(e){return this.getDate(this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+1,0))}clone(e){return new Date(e.getTime())}createDate(e,t,o){let r=this._createDateWithOverflow(e,t,o);return r.getMonth()!=t,r}today(){return new Date}parse(e,t){return typeof e=="number"?new Date(e):e?new Date(Date.parse(e)):null}format(e,t){if(!this.isValid(e))throw Error("NativeDateAdapter: Cannot format invalid date.");let o=new Intl.DateTimeFormat(this.locale,O(_({},t),{timeZone:"utc"}));return this._format(o,e)}addCalendarYears(e,t){return this.addCalendarMonths(e,t*12)}addCalendarMonths(e,t){let o=this._createDateWithOverflow(this.getYear(e),this.getMonth(e)+t,this.getDate(e));return this.getMonth(o)!=((this.getMonth(e)+t)%12+12)%12&&(o=this._createDateWithOverflow(this.getYear(o),this.getMonth(o),0)),o}addCalendarDays(e,t){return this._createDateWithOverflow(this.getYear(e),this.getMonth(e),this.getDate(e)+t)}toIso8601(e){return[e.getUTCFullYear(),this._2digit(e.getUTCMonth()+1),this._2digit(e.getUTCDate())].join("-")}deserialize(e){if(typeof e=="string"){if(!e)return null;if(fA.test(e)){let t=new Date(e);if(this.isValid(t))return t}}return super.deserialize(e)}isDateInstance(e){return e instanceof Date}isValid(e){return!isNaN(e.getTime())}invalid(){return new Date(NaN)}setTime(e,t,o,r){let a=this.clone(e);return a.setHours(t,o,r,0),a}getHours(e){return e.getHours()}getMinutes(e){return e.getMinutes()}getSeconds(e){return e.getSeconds()}parseTime(e,t){if(typeof e!="string")return e instanceof Date?new Date(e.getTime()):null;let o=e.trim();if(o.length===0)return null;let r=this._parseTimeString(o);if(r===null){let a=o.replace(/[^0-9:(AM|PM)]/gi,"").trim();a.length>0&&(r=this._parseTimeString(a))}return r||this.invalid()}addSeconds(e,t){return new Date(e.getTime()+t*1e3)}_createDateWithOverflow(e,t,o){let r=new Date;return r.setFullYear(e,t,o),r.setHours(0,0,0,0),r}_2digit(e){return("00"+e).slice(-2)}_format(e,t){let o=new Date;return o.setUTCFullYear(t.getFullYear(),t.getMonth(),t.getDate()),o.setUTCHours(t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()),e.format(o)}_parseTimeString(e){let t=e.toUpperCase().match(gA);if(t){let o=parseInt(t[1]),r=parseInt(t[2]),a=t[3]==null?void 0:parseInt(t[3]),s=t[4];if(o===12?o=s==="AM"?0:o:s==="PM"&&(o+=12),xf(o,0,23)&&xf(r,0,59)&&(a==null||xf(a,0,59)))return this.setTime(this.today(),o,r,a||0)}return null}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac})}return i})();function xf(i,n,e){return!isNaN(i)&&i>=n&&i<=e}var bA={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};var kC=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({providers:[vA()]})}return i})();function vA(i=bA){return[{provide:Yt,useClass:_A},{provide:Eo,useValue:i}]}var yA=["mat-calendar-body",""];function CA(i,n){return this._trackRow(n)}var PC=(i,n)=>n.id;function xA(i,n){if(i&1&&(l(0,"tr",0)(1,"td",3),p(2),c()()),i&2){let e=f();m(),pt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),Y("colspan",e.numCols),m(),U(" ",e.label," ")}}function wA(i,n){if(i&1&&(l(0,"td",3),p(1),c()),i&2){let e=f(2);pt("padding-top",e._cellPadding)("padding-bottom",e._cellPadding),Y("colspan",e._firstRowOffset),m(),U(" ",e._firstRowOffset>=e.labelMinRequiredCells?e.label:""," ")}}function DA(i,n){if(i&1){let e=Q();l(0,"td",6)(1,"button",7),b("click",function(o){let r=I(e).$implicit,a=f(2);return P(a._cellClicked(r,o))})("focus",function(o){let r=I(e).$implicit,a=f(2);return P(a._emitActiveDateChange(r,o))}),l(2,"span",8),p(3),c(),M(4,"span",9),c()()}if(i&2){let e=n.$implicit,t=n.$index,o=f().$index,r=f();pt("width",r._cellWidth)("padding-top",r._cellPadding)("padding-bottom",r._cellPadding),Y("data-mat-row",o)("data-mat-col",t),m(),j("mat-calendar-body-disabled",!e.enabled)("mat-calendar-body-active",r._isActiveCell(o,t))("mat-calendar-body-range-start",r._isRangeStart(e.compareValue))("mat-calendar-body-range-end",r._isRangeEnd(e.compareValue))("mat-calendar-body-in-range",r._isInRange(e.compareValue))("mat-calendar-body-comparison-bridge-start",r._isComparisonBridgeStart(e.compareValue,o,t))("mat-calendar-body-comparison-bridge-end",r._isComparisonBridgeEnd(e.compareValue,o,t))("mat-calendar-body-comparison-start",r._isComparisonStart(e.compareValue))("mat-calendar-body-comparison-end",r._isComparisonEnd(e.compareValue))("mat-calendar-body-in-comparison-range",r._isInComparisonRange(e.compareValue))("mat-calendar-body-preview-start",r._isPreviewStart(e.compareValue))("mat-calendar-body-preview-end",r._isPreviewEnd(e.compareValue))("mat-calendar-body-in-preview",r._isInPreview(e.compareValue)),x("ngClass",e.cssClasses)("tabindex",r._isActiveCell(o,t)?0:-1),Y("aria-label",e.ariaLabel)("aria-disabled",!e.enabled||null)("aria-pressed",r._isSelected(e.compareValue))("aria-current",r.todayValue===e.compareValue?"date":null)("aria-describedby",r._getDescribedby(e.compareValue)),m(),j("mat-calendar-body-selected",r._isSelected(e.compareValue))("mat-calendar-body-comparison-identical",r._isComparisonIdentical(e.compareValue))("mat-calendar-body-today",r.todayValue===e.compareValue),m(),U(" ",e.displayValue," ")}}function MA(i,n){if(i&1&&(l(0,"tr",1),w(1,wA,2,6,"td",4),de(2,DA,5,48,"td",5,PC),c()),i&2){let e=n.$implicit,t=n.$index,o=f();m(),C(t===0&&o._firstRowOffset?1:-1),m(),ue(e)}}function kA(i,n){if(i&1&&(l(0,"th",2)(1,"span",6),p(2),c(),l(3,"span",3),p(4),c()()),i&2){let e=n.$implicit;m(2),$(e.long),m(2),$(e.narrow)}}var SA=["*"];function EA(i,n){}function OA(i,n){if(i&1){let e=Q();l(0,"mat-month-view",4),kn("activeDateChange",function(o){I(e);let r=f();return Mn(r.activeDate,o)||(r.activeDate=o),P(o)}),b("_userSelection",function(o){I(e);let r=f();return P(r._dateSelected(o))})("dragStarted",function(o){I(e);let r=f();return P(r._dragStarted(o))})("dragEnded",function(o){I(e);let r=f();return P(r._dragEnded(o))}),c()}if(i&2){let e=f();Dn("activeDate",e.activeDate),x("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)("comparisonStart",e.comparisonStart)("comparisonEnd",e.comparisonEnd)("startDateAccessibleName",e.startDateAccessibleName)("endDateAccessibleName",e.endDateAccessibleName)("activeDrag",e._activeDrag)}}function TA(i,n){if(i&1){let e=Q();l(0,"mat-year-view",5),kn("activeDateChange",function(o){I(e);let r=f();return Mn(r.activeDate,o)||(r.activeDate=o),P(o)}),b("monthSelected",function(o){I(e);let r=f();return P(r._monthSelectedInYearView(o))})("selectedChange",function(o){I(e);let r=f();return P(r._goToDateInView(o,"month"))}),c()}if(i&2){let e=f();Dn("activeDate",e.activeDate),x("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function AA(i,n){if(i&1){let e=Q();l(0,"mat-multi-year-view",6),kn("activeDateChange",function(o){I(e);let r=f();return Mn(r.activeDate,o)||(r.activeDate=o),P(o)}),b("yearSelected",function(o){I(e);let r=f();return P(r._yearSelectedInMultiYearView(o))})("selectedChange",function(o){I(e);let r=f();return P(r._goToDateInView(o,"year"))}),c()}if(i&2){let e=f();Dn("activeDate",e.activeDate),x("selected",e.selected)("dateFilter",e.dateFilter)("maxDate",e.maxDate)("minDate",e.minDate)("dateClass",e.dateClass)}}function IA(i,n){}var PA=["button"],RA=[[["","matDatepickerToggleIcon",""]]],FA=["[matDatepickerToggleIcon]"];function NA(i,n){i&1&&(vt(),l(0,"svg",2),M(1,"path",3),c())}var Ta=(()=>{class i{changes=new S;calendarLabel="Calendar";openCalendarLabel="Open calendar";closeCalendarLabel="Close calendar";prevMonthLabel="Previous month";nextMonthLabel="Next month";prevYearLabel="Previous year";nextYearLabel="Next year";prevMultiYearLabel="Previous 24 years";nextMultiYearLabel="Next 24 years";switchToMonthViewLabel="Choose date";switchToMultiYearViewLabel="Choose month and year";startDateLabel="Start date";endDateLabel="End date";comparisonDateLabel="Comparison range";formatYearRange(e,t){return`${e} \u2013 ${t}`}formatYearRangeLabel(e,t){return`${e} to ${t}`}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})(),LA=0,Nl=class{value;displayValue;ariaLabel;enabled;cssClasses;compareValue;rawValue;id=LA++;constructor(n,e,t,o,r={},a=n,s){this.value=n,this.displayValue=e,this.ariaLabel=t,this.enabled=o,this.cssClasses=r,this.compareValue=a,this.rawValue=s}},VA={passive:!1,capture:!0},Qu={passive:!0,capture:!0},SC={passive:!0},Oa=(()=>{class i{_elementRef=d(Z);_ngZone=d(K);_platform=d(Se);_intl=d(Ta);_eventCleanups;_skipNextFocus;_focusActiveCellAfterViewChecked=!1;label;rows;todayValue;startValue;endValue;labelMinRequiredCells;numCols=7;activeCell=0;ngAfterViewChecked(){this._focusActiveCellAfterViewChecked&&(this._focusActiveCell(),this._focusActiveCellAfterViewChecked=!1)}isRange=!1;cellAspectRatio=1;comparisonStart;comparisonEnd;previewStart=null;previewEnd=null;startDateAccessibleName;endDateAccessibleName;selectedValueChange=new L;previewChange=new L;activeDateChange=new L;dragStarted=new L;dragEnded=new L;_firstRowOffset;_cellPadding;_cellWidth;_startDateLabelId;_endDateLabelId;_comparisonStartDateLabelId;_comparisonEndDateLabelId;_didDragSinceMouseDown=!1;_injector=d(ce);comparisonDateAccessibleName=this._intl.comparisonDateLabel;_trackRow=e=>e;constructor(){let e=d(tt),t=d(Ye);this._startDateLabelId=t.getId("mat-calendar-body-start-"),this._endDateLabelId=t.getId("mat-calendar-body-end-"),this._comparisonStartDateLabelId=t.getId("mat-calendar-body-comparison-start-"),this._comparisonEndDateLabelId=t.getId("mat-calendar-body-comparison-end-"),d(We).load(Yi),this._ngZone.runOutsideAngular(()=>{let o=this._elementRef.nativeElement,r=[Ue(e,o,"touchmove",this._touchmoveHandler,VA),Ue(e,o,"mouseenter",this._enterHandler,Qu),Ue(e,o,"focus",this._enterHandler,Qu),Ue(e,o,"mouseleave",this._leaveHandler,Qu),Ue(e,o,"blur",this._leaveHandler,Qu),Ue(e,o,"mousedown",this._mousedownHandler,SC),Ue(e,o,"touchstart",this._mousedownHandler,SC)];this._platform.isBrowser&&r.push(e.listen("window","mouseup",this._mouseupHandler),e.listen("window","touchend",this._touchendHandler)),this._eventCleanups=r})}_cellClicked(e,t){this._didDragSinceMouseDown||e.enabled&&this.selectedValueChange.emit({value:e.value,event:t})}_emitActiveDateChange(e,t){e.enabled&&this.activeDateChange.emit({value:e.value,event:t})}_isSelected(e){return this.startValue===e||this.endValue===e}ngOnChanges(e){let t=e.numCols,{rows:o,numCols:r}=this;(e.rows||t)&&(this._firstRowOffset=o&&o.length&&o[0].length?r-o[0].length:0),(e.cellAspectRatio||t||!this._cellPadding)&&(this._cellPadding=`${50*this.cellAspectRatio/r}%`),(t||!this._cellWidth)&&(this._cellWidth=`${100/r}%`)}ngOnDestroy(){this._eventCleanups.forEach(e=>e())}_isActiveCell(e,t){let o=e*this.numCols+t;return e&&(o-=this._firstRowOffset),o==this.activeCell}_focusActiveCell(e=!0){Et(()=>{setTimeout(()=>{let t=this._elementRef.nativeElement.querySelector(".mat-calendar-body-active");t&&(e||(this._skipNextFocus=!0),t.focus())})},{injector:this._injector})}_scheduleFocusActiveCellAfterViewChecked(){this._focusActiveCellAfterViewChecked=!0}_isRangeStart(e){return Mf(e,this.startValue,this.endValue)}_isRangeEnd(e){return kf(e,this.startValue,this.endValue)}_isInRange(e){return Sf(e,this.startValue,this.endValue,this.isRange)}_isComparisonStart(e){return Mf(e,this.comparisonStart,this.comparisonEnd)}_isComparisonBridgeStart(e,t,o){if(!this._isComparisonStart(e)||this._isRangeStart(e)||!this._isInRange(e))return!1;let r=this.rows[t][o-1];if(!r){let a=this.rows[t-1];r=a&&a[a.length-1]}return r&&!this._isRangeEnd(r.compareValue)}_isComparisonBridgeEnd(e,t,o){if(!this._isComparisonEnd(e)||this._isRangeEnd(e)||!this._isInRange(e))return!1;let r=this.rows[t][o+1];if(!r){let a=this.rows[t+1];r=a&&a[0]}return r&&!this._isRangeStart(r.compareValue)}_isComparisonEnd(e){return kf(e,this.comparisonStart,this.comparisonEnd)}_isInComparisonRange(e){return Sf(e,this.comparisonStart,this.comparisonEnd,this.isRange)}_isComparisonIdentical(e){return this.comparisonStart===this.comparisonEnd&&e===this.comparisonStart}_isPreviewStart(e){return Mf(e,this.previewStart,this.previewEnd)}_isPreviewEnd(e){return kf(e,this.previewStart,this.previewEnd)}_isInPreview(e){return Sf(e,this.previewStart,this.previewEnd,this.isRange)}_getDescribedby(e){if(!this.isRange)return null;if(this.startValue===e&&this.endValue===e)return`${this._startDateLabelId} ${this._endDateLabelId}`;if(this.startValue===e)return this._startDateLabelId;if(this.endValue===e)return this._endDateLabelId;if(this.comparisonStart!==null&&this.comparisonEnd!==null){if(e===this.comparisonStart&&e===this.comparisonEnd)return`${this._comparisonStartDateLabelId} ${this._comparisonEndDateLabelId}`;if(e===this.comparisonStart)return this._comparisonStartDateLabelId;if(e===this.comparisonEnd)return this._comparisonEndDateLabelId}return null}_enterHandler=e=>{if(this._skipNextFocus&&e.type==="focus"){this._skipNextFocus=!1;return}if(e.target&&this.isRange){let t=this._getCellFromElement(e.target);t&&this._ngZone.run(()=>this.previewChange.emit({value:t.enabled?t:null,event:e}))}};_touchmoveHandler=e=>{if(!this.isRange)return;let t=EC(e),o=t?this._getCellFromElement(t):null;t!==e.target&&(this._didDragSinceMouseDown=!0),Df(e.target)&&e.preventDefault(),this._ngZone.run(()=>this.previewChange.emit({value:o?.enabled?o:null,event:e}))};_leaveHandler=e=>{this.previewEnd!==null&&this.isRange&&(e.type!=="blur"&&(this._didDragSinceMouseDown=!0),e.target&&this._getCellFromElement(e.target)&&!(e.relatedTarget&&this._getCellFromElement(e.relatedTarget))&&this._ngZone.run(()=>this.previewChange.emit({value:null,event:e})))};_mousedownHandler=e=>{if(!this.isRange)return;this._didDragSinceMouseDown=!1;let t=e.target&&this._getCellFromElement(e.target);!t||!this._isInRange(t.compareValue)||this._ngZone.run(()=>{this.dragStarted.emit({value:t.rawValue,event:e})})};_mouseupHandler=e=>{if(!this.isRange)return;let t=Df(e.target);if(!t){this._ngZone.run(()=>{this.dragEnded.emit({value:null,event:e})});return}t.closest(".mat-calendar-body")===this._elementRef.nativeElement&&this._ngZone.run(()=>{let o=this._getCellFromElement(t);this.dragEnded.emit({value:o?.rawValue??null,event:e})})};_touchendHandler=e=>{let t=EC(e);t&&this._mouseupHandler({target:t})};_getCellFromElement(e){let t=Df(e);if(t){let o=t.getAttribute("data-mat-row"),r=t.getAttribute("data-mat-col");if(o&&r)return this.rows[parseInt(o)][parseInt(r)]}return null}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["","mat-calendar-body",""]],hostAttrs:[1,"mat-calendar-body"],inputs:{label:"label",rows:"rows",todayValue:"todayValue",startValue:"startValue",endValue:"endValue",labelMinRequiredCells:"labelMinRequiredCells",numCols:"numCols",activeCell:"activeCell",isRange:"isRange",cellAspectRatio:"cellAspectRatio",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",previewStart:"previewStart",previewEnd:"previewEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedValueChange:"selectedValueChange",previewChange:"previewChange",activeDateChange:"activeDateChange",dragStarted:"dragStarted",dragEnded:"dragEnded"},exportAs:["matCalendarBody"],features:[Oe],attrs:yA,decls:11,vars:11,consts:[["aria-hidden","true"],["role","row"],[1,"mat-calendar-body-hidden-label",3,"id"],[1,"mat-calendar-body-label"],[1,"mat-calendar-body-label",3,"paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container",3,"width","paddingTop","paddingBottom"],["role","gridcell",1,"mat-calendar-body-cell-container"],["type","button",1,"mat-calendar-body-cell",3,"click","focus","ngClass","tabindex"],[1,"mat-calendar-body-cell-content","mat-focus-indicator"],["aria-hidden","true",1,"mat-calendar-body-cell-preview"]],template:function(t,o){t&1&&(w(0,xA,3,6,"tr",0),de(1,MA,4,1,"tr",1,CA,!0),l(3,"span",2),p(4),c(),l(5,"span",2),p(6),c(),l(7,"span",2),p(8),c(),l(9,"span",2),p(10),c()),t&2&&(C(o._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){color:var(--mat-datepicker-calendar-date-disabled-state-text-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-disabled>.mat-calendar-body-today:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){border-color:var(--mat-datepicker-calendar-date-today-disabled-state-outline-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}@media(forced-colors: active){.mat-calendar-body-disabled{opacity:.5}}.mat-calendar-body-cell-content{top:5%;left:5%;z-index:1;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:90%;height:90%;line-height:1;border-width:1px;border-style:solid;border-radius:999px;color:var(--mat-datepicker-calendar-date-text-color, var(--mat-sys-on-surface));border-color:var(--mat-datepicker-calendar-date-outline-color, transparent)}.mat-calendar-body-cell-content.mat-focus-indicator{position:absolute}@media(forced-colors: active){.mat-calendar-body-cell-content{border:none}}.cdk-keyboard-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-focus-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-focus-state-layer-opacity) * 100%), transparent))}@media(hover: hover){.mat-calendar-body-cell:not(.mat-calendar-body-disabled):hover>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected):not(.mat-calendar-body-comparison-identical){background-color:var(--mat-datepicker-calendar-date-hover-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) calc(var(--mat-sys-hover-state-layer-opacity) * 100%), transparent))}}.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-state-background-color, var(--mat-sys-primary));color:var(--mat-datepicker-calendar-date-selected-state-text-color, var(--mat-sys-on-primary))}.mat-calendar-body-disabled>.mat-calendar-body-selected{background-color:var(--mat-datepicker-calendar-date-selected-disabled-state-background-color, color-mix(in srgb, var(--mat-sys-on-surface) 38%, transparent))}.mat-calendar-body-selected.mat-calendar-body-today{box-shadow:inset 0 0 0 1px var(--mat-datepicker-calendar-date-today-selected-state-outline-color, var(--mat-sys-primary))}.mat-calendar-body-in-range::before{background:var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range::before{background:var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container))}.mat-calendar-body-comparison-bridge-start::before,[dir=rtl] .mat-calendar-body-comparison-bridge-end::before{background:linear-gradient(to right, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-comparison-bridge-end::before,[dir=rtl] .mat-calendar-body-comparison-bridge-start::before{background:linear-gradient(to left, var(--mat-datepicker-calendar-date-in-range-state-background-color, var(--mat-sys-primary-container)) 50%, var(--mat-datepicker-calendar-date-in-comparison-range-state-background-color, var(--mat-sys-tertiary-container)) 50%)}.mat-calendar-body-in-range>.mat-calendar-body-comparison-identical,.mat-calendar-body-in-comparison-range.mat-calendar-body-in-range::after{background:var(--mat-datepicker-calendar-date-in-overlap-range-state-background-color, var(--mat-sys-secondary-container))}.mat-calendar-body-comparison-identical.mat-calendar-body-selected,.mat-calendar-body-in-comparison-range>.mat-calendar-body-selected{background:var(--mat-datepicker-calendar-date-in-overlap-range-selected-state-background-color, var(--mat-sys-secondary))}@media(forced-colors: active){.mat-datepicker-popup:not(:empty),.mat-calendar-body-cell:not(.mat-calendar-body-in-range) .mat-calendar-body-selected{outline:solid 1px}.mat-calendar-body-today{outline:dotted 1px}.mat-calendar-body-cell::before,.mat-calendar-body-cell::after,.mat-calendar-body-selected{background:none}.mat-calendar-body-in-range::before,.mat-calendar-body-comparison-bridge-start::before,.mat-calendar-body-comparison-bridge-end::before{border-top:solid 1px;border-bottom:solid 1px}.mat-calendar-body-range-start::before{border-left:solid 1px}[dir=rtl] .mat-calendar-body-range-start::before{border-left:0;border-right:solid 1px}.mat-calendar-body-range-end::before{border-right:solid 1px}[dir=rtl] .mat-calendar-body-range-end::before{border-right:0;border-left:solid 1px}.mat-calendar-body-in-comparison-range::before{border-top:dashed 1px;border-bottom:dashed 1px}.mat-calendar-body-comparison-start::before{border-left:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-start::before{border-left:0;border-right:dashed 1px}.mat-calendar-body-comparison-end::before{border-right:dashed 1px}[dir=rtl] .mat-calendar-body-comparison-end::before{border-right:0;border-left:dashed 1px}} -`],encapsulation:2,changeDetection:0})}return i})();function wf(i){return i?.nodeName==="TD"}function Df(i){let n;return wf(i)?n=i:wf(i.parentNode)?n=i.parentNode:wf(i.parentNode?.parentNode)&&(n=i.parentNode.parentNode),n?.getAttribute("data-mat-row")!=null?n:null}function Mf(i,n,e){return e!==null&&n!==e&&i=n&&i===e}function Sf(i,n,e,t){return t&&n!==null&&e!==null&&n!==e&&i>=n&&i<=e}function EC(i){let n=i.changedTouches[0];return document.elementFromPoint(n.clientX,n.clientY)}var Ji=class{start;end;_disableStructuralEquivalency;constructor(n,e){this.start=n,this.end=e}},Ll=(()=>{class i{selection;_adapter;_selectionChanged=new S;selectionChanged=this._selectionChanged;constructor(e,t){this.selection=e,this._adapter=t,this.selection=e}updateSelection(e,t){let o=this.selection;this.selection=e,this._selectionChanged.next({selection:e,source:t,oldValue:o})}ngOnDestroy(){this._selectionChanged.complete()}_isValidDateInstance(e){return this._adapter.isDateInstance(e)&&this._adapter.isValid(e)}static \u0275fac=function(t){Cr()};static \u0275prov=D({token:i,factory:i.\u0275fac})}return i})(),BA=(()=>{class i extends Ll{constructor(e){super(null,e)}add(e){super.updateSelection(e,this)}isValid(){return this.selection!=null&&this._isValidDateInstance(this.selection)}isComplete(){return this.selection!=null}clone(){let e=new i(this._adapter);return e.updateSelection(this.selection,this),e}static \u0275fac=function(t){return new(t||i)(N(Yt))};static \u0275prov=D({token:i,factory:i.\u0275fac})}return i})();function jA(i,n){return i||new BA(n)}var RC={provide:Ll,deps:[[new za,new Fm,Ll],Yt],useFactory:jA};var FC=new v("MAT_DATE_RANGE_SELECTION_STRATEGY");var Ef=7,zA=0,OC=(()=>{class i{_changeDetectorRef=d(ye);_dateFormats=d(Eo,{optional:!0});_dateAdapter=d(Yt,{optional:!0});_dir=d(dt,{optional:!0});_rangeStrategy=d(FC,{optional:!0});_rerenderSubscription=ie.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._hasSameMonthAndYear(t,this._activeDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof Ji?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setRanges(this._selected)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;activeDrag=null;selectedChange=new L;_userSelection=new L;dragStarted=new L;dragEnded=new L;activeDateChange=new L;_matCalendarBody;_monthLabel;_weeks;_firstWeekOffset;_rangeStart;_rangeEnd;_comparisonRangeStart;_comparisonRangeEnd;_previewStart;_previewEnd;_isRange;_todayDate;_weekdays;constructor(){d(We).load(In),this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ot(null)).subscribe(()=>this._init())}ngOnChanges(e){let t=e.comparisonStart||e.comparisonEnd;t&&!t.firstChange&&this._setRanges(this.selected),e.activeDrag&&!this.activeDrag&&this._clearPreview()}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_dateSelected(e){let t=e.value,o=this._getDateFromDayOfMonth(t),r,a;this._selected instanceof Ji?(r=this._getDateInCurrentMonth(this._selected.start),a=this._getDateInCurrentMonth(this._selected.end)):r=a=this._getDateInCurrentMonth(this._selected),(r!==t||a!==t)&&this.selectedChange.emit(o),this._userSelection.emit({value:o,event:e.event}),this._clearPreview(),this._changeDetectorRef.markForCheck()}_updateActiveDate(e){let t=e.value,o=this._activeDate;this.activeDate=this._getDateFromDayOfMonth(t),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this._activeDate)}_handleCalendarBodyKeydown(e){let t=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=e.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:this._selectionKeyPressed=!0,this._canSelect(this._activeDate)&&e.preventDefault();return;case 27:this._previewEnd!=null&&!rt(e)&&(this._clearPreview(),this.activeDrag?this.dragEnded.emit({value:null,event:e}):(this.selectedChange.emit(null),this._userSelection.emit({value:null,event:e})),e.preventDefault(),e.stopPropagation());return;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._canSelect(this._activeDate)&&this._dateSelected({value:this._dateAdapter.getDate(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setRanges(this.selected),this._todayDate=this._getCellCompareValue(this._dateAdapter.today()),this._monthLabel=this._dateFormats.display.monthLabel?this._dateAdapter.format(this.activeDate,this._dateFormats.display.monthLabel):this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();let e=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(Ef+this._dateAdapter.getDayOfWeek(e)-this._dateAdapter.getFirstDayOfWeek())%Ef,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()}_focusActiveCell(e){this._matCalendarBody._focusActiveCell(e)}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_previewChanged({event:e,value:t}){if(this._rangeStrategy){let o=t?t.rawValue:null,r=this._rangeStrategy.createPreview(o,this.selected,e);if(this._previewStart=this._getCellCompareValue(r.start),this._previewEnd=this._getCellCompareValue(r.end),this.activeDrag&&o){let a=this._rangeStrategy.createDrag?.(this.activeDrag.value,this.selected,o,e);a&&(this._previewStart=this._getCellCompareValue(a.start),this._previewEnd=this._getCellCompareValue(a.end))}this._changeDetectorRef.detectChanges()}}_dragEnded(e){if(this.activeDrag)if(e.value){let t=this._rangeStrategy?.createDrag?.(this.activeDrag.value,this.selected,e.value,e.event);this.dragEnded.emit({value:t??null,event:e.event})}else this.dragEnded.emit({value:null,event:e.event})}_getDateFromDayOfMonth(e){return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),e)}_initWeekdays(){let e=this._dateAdapter.getFirstDayOfWeek(),t=this._dateAdapter.getDayOfWeekNames("narrow"),r=this._dateAdapter.getDayOfWeekNames("long").map((a,s)=>({long:a,narrow:t[s],id:zA++}));this._weekdays=r.slice(e).concat(r.slice(0,e))}_createWeekCells(){let e=this._dateAdapter.getNumDaysInMonth(this.activeDate),t=this._dateAdapter.getDateNames();this._weeks=[[]];for(let o=0,r=this._firstWeekOffset;o=0)&&(!this.maxDate||this._dateAdapter.compareDate(e,this.maxDate)<=0)&&(!this.dateFilter||this.dateFilter(e))}_getDateInCurrentMonth(e){return e&&this._hasSameMonthAndYear(e,this.activeDate)?this._dateAdapter.getDate(e):null}_hasSameMonthAndYear(e,t){return!!(e&&t&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t)&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t))}_getCellCompareValue(e){if(e){let t=this._dateAdapter.getYear(e),o=this._dateAdapter.getMonth(e),r=this._dateAdapter.getDate(e);return new Date(t,o,r).getTime()}return null}_isRtl(){return this._dir&&this._dir.value==="rtl"}_setRanges(e){e instanceof Ji?(this._rangeStart=this._getCellCompareValue(e.start),this._rangeEnd=this._getCellCompareValue(e.end),this._isRange=!0):(this._rangeStart=this._rangeEnd=this._getCellCompareValue(e),this._isRange=!1),this._comparisonRangeStart=this._getCellCompareValue(this.comparisonStart),this._comparisonRangeEnd=this._getCellCompareValue(this.comparisonEnd)}_canSelect(e){return!this.dateFilter||this.dateFilter(e)}_clearPreview(){this._previewStart=this._previewEnd=null}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-month-view"]],viewQuery:function(t,o){if(t&1&&ge(Oa,5),t&2){let r;ee(r=te())&&(o._matCalendarBody=r.first)}},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName",activeDrag:"activeDrag"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",dragStarted:"dragStarted",dragEnded:"dragEnded",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],features:[Oe],decls:8,vars:14,consts:[["role","grid",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col"],["aria-hidden","true"],["colspan","7",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"selectedValueChange","activeDateChange","previewChange","dragStarted","dragEnded","keyup","keydown","label","rows","todayValue","startValue","endValue","comparisonStart","comparisonEnd","previewStart","previewEnd","isRange","labelMinRequiredCells","activeCell","startDateAccessibleName","endDateAccessibleName"],[1,"cdk-visually-hidden"]],template:function(t,o){t&1&&(l(0,"table",0)(1,"thead",1)(2,"tr"),de(3,kA,5,2,"th",2,PC),c(),l(5,"tr",3),M(6,"th",4),c()(),l(7,"tbody",5),b("selectedValueChange",function(a){return o._dateSelected(a)})("activeDateChange",function(a){return o._updateActiveDate(a)})("previewChange",function(a){return o._previewChanged(a)})("dragStarted",function(a){return o.dragStarted.emit(a)})("dragEnded",function(a){return o._dragEnded(a)})("keyup",function(a){return o._handleCalendarBodyKeyup(a)})("keydown",function(a){return o._handleCalendarBodyKeydown(a)}),c()()),t&2&&(m(3),ue(o._weekdays),m(4),x("label",o._monthLabel)("rows",o._weeks)("todayValue",o._todayDate)("startValue",o._rangeStart)("endValue",o._rangeEnd)("comparisonStart",o._comparisonRangeStart)("comparisonEnd",o._comparisonRangeEnd)("previewStart",o._previewStart)("previewEnd",o._previewEnd)("isRange",o._isRange)("labelMinRequiredCells",3)("activeCell",o._dateAdapter.getDate(o.activeDate)-1)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName))},dependencies:[Oa],encapsulation:2,changeDetection:0})}return i})(),Ai=24,Of=4,TC=(()=>{class i{_changeDetectorRef=d(ye);_dateAdapter=d(Yt,{optional:!0});_dir=d(dt,{optional:!0});_rerenderSubscription=ie.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),NC(this._dateAdapter,t,this._activeDate,this.minDate,this.maxDate)||this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof Ji?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedYear(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new L;yearSelected=new L;activeDateChange=new L;_matCalendarBody;_years;_todayYear;_selectedYear;constructor(){this._dateAdapter,this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ot(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_init(){this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());let t=this._dateAdapter.getYear(this._activeDate)-Fl(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(let o=0,r=[];othis._createCellForYear(a))),r=[]);this._changeDetectorRef.markForCheck()}_yearSelected(e){let t=e.value,o=this._dateAdapter.createDate(t,0,1),r=this._getDateFromYear(t);this.yearSelected.emit(o),this.selectedChange.emit(r)}_updateActiveDate(e){let t=e.value,o=this._activeDate;this.activeDate=this._getDateFromYear(t),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let t=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Of);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Of);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-Fl(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,Ai-Fl(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-Ai*10:-Ai);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?Ai*10:Ai);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked(),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._yearSelected({value:this._dateAdapter.getYear(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_getActiveCell(){return Fl(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getDateFromYear(e){let t=this._dateAdapter.getMonth(this.activeDate),o=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(e,t,1));return this._dateAdapter.createDate(e,t,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForYear(e){let t=this._dateAdapter.createDate(e,0,1),o=this._dateAdapter.getYearName(t),r=this.dateClass?this.dateClass(t,"multi-year"):void 0;return new Nl(e,o,o,this._shouldEnableYear(e),r)}_shouldEnableYear(e){if(e==null||this.maxDate&&e>this._dateAdapter.getYear(this.maxDate)||this.minDate&&e{class i{_changeDetectorRef=d(ye);_dateFormats=d(Eo,{optional:!0});_dateAdapter=d(Yt,{optional:!0});_dir=d(dt,{optional:!0});_rerenderSubscription=ie.EMPTY;_selectionKeyPressed;get activeDate(){return this._activeDate}set activeDate(e){let t=this._activeDate,o=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(o,this.minDate,this.maxDate),this._dateAdapter.getYear(t)!==this._dateAdapter.getYear(this._activeDate)&&this._init()}_activeDate;get selected(){return this._selected}set selected(e){e instanceof Ji?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e)),this._setSelectedMonth(e)}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;selectedChange=new L;monthSelected=new L;activeDateChange=new L;_matCalendarBody;_months;_yearLabel;_todayMonth;_selectedMonth;constructor(){this._activeDate=this._dateAdapter.today()}ngAfterContentInit(){this._rerenderSubscription=this._dateAdapter.localeChanges.pipe(ot(null)).subscribe(()=>this._init())}ngOnDestroy(){this._rerenderSubscription.unsubscribe()}_monthSelected(e){let t=e.value,o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),t,1);this.monthSelected.emit(o);let r=this._getDateFromMonth(t);this.selectedChange.emit(r)}_updateActiveDate(e){let t=e.value,o=this._activeDate;this.activeDate=this._getDateFromMonth(t),this._dateAdapter.compareDate(o,this.activeDate)&&this.activeDateChange.emit(this.activeDate)}_handleCalendarBodyKeydown(e){let t=this._activeDate,o=this._isRtl();switch(e.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,o?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,-this._dateAdapter.getMonth(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarMonths(this._activeDate,11-this._dateAdapter.getMonth(this._activeDate));break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?-10:-1);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,e.altKey?10:1);break;case 13:case 32:this._selectionKeyPressed=!0;break;default:return}this._dateAdapter.compareDate(t,this.activeDate)&&(this.activeDateChange.emit(this.activeDate),this._focusActiveCellAfterViewChecked()),e.preventDefault()}_handleCalendarBodyKeyup(e){(e.keyCode===32||e.keyCode===13)&&(this._selectionKeyPressed&&this._monthSelected({value:this._dateAdapter.getMonth(this._activeDate),event:e}),this._selectionKeyPressed=!1)}_init(){this._setSelectedMonth(this.selected),this._todayMonth=this._getMonthInCurrentYear(this._dateAdapter.today()),this._yearLabel=this._dateAdapter.getYearName(this.activeDate);let e=this._dateAdapter.getMonthNames("short");this._months=[[0,1,2,3],[4,5,6,7],[8,9,10,11]].map(t=>t.map(o=>this._createCellForMonth(o,e[o]))),this._changeDetectorRef.markForCheck()}_focusActiveCell(){this._matCalendarBody._focusActiveCell()}_focusActiveCellAfterViewChecked(){this._matCalendarBody._scheduleFocusActiveCellAfterViewChecked()}_getMonthInCurrentYear(e){return e&&this._dateAdapter.getYear(e)==this._dateAdapter.getYear(this.activeDate)?this._dateAdapter.getMonth(e):null}_getDateFromMonth(e){let t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),o=this._dateAdapter.getNumDaysInMonth(t);return this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,Math.min(this._dateAdapter.getDate(this.activeDate),o))}_createCellForMonth(e,t){let o=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),e,1),r=this._dateAdapter.format(o,this._dateFormats.display.monthYearA11yLabel),a=this.dateClass?this.dateClass(o,"year"):void 0;return new Nl(e,t.toLocaleUpperCase(),r,this._shouldEnableMonth(e),a)}_shouldEnableMonth(e){let t=this._dateAdapter.getYear(this.activeDate);if(e==null||this._isYearAndMonthAfterMaxDate(t,e)||this._isYearAndMonthBeforeMinDate(t,e))return!1;if(!this.dateFilter)return!0;let o=this._dateAdapter.createDate(t,e,1);for(let r=o;this._dateAdapter.getMonth(r)==e;r=this._dateAdapter.addCalendarDays(r,1))if(this.dateFilter(r))return!0;return!1}_isYearAndMonthAfterMaxDate(e,t){if(this.maxDate){let o=this._dateAdapter.getYear(this.maxDate),r=this._dateAdapter.getMonth(this.maxDate);return e>o||e===o&&t>r}return!1}_isYearAndMonthBeforeMinDate(e,t){if(this.minDate){let o=this._dateAdapter.getYear(this.minDate),r=this._dateAdapter.getMonth(this.minDate);return e{class i{_intl=d(Ta);calendar=d(Tf);_dateAdapter=d(Yt,{optional:!0});_dateFormats=d(Eo,{optional:!0});constructor(){d(We).load(In);let e=d(ye);this.calendar.stateChanges.subscribe(()=>e.markForCheck())}get periodButtonText(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRange(...this._formatMinAndMaxYearLabels())}get periodButtonDescription(){return this.calendar.currentView=="month"?this._dateAdapter.format(this.calendar.activeDate,this._dateFormats.display.monthYearLabel).toLocaleUpperCase():this.calendar.currentView=="year"?this._dateAdapter.getYearName(this.calendar.activeDate):this._intl.formatYearRangeLabel(...this._formatMinAndMaxYearLabels())}get periodButtonLabel(){return this.calendar.currentView=="month"?this._intl.switchToMultiYearViewLabel:this._intl.switchToMonthViewLabel}get prevButtonLabel(){return{month:this._intl.prevMonthLabel,year:this._intl.prevYearLabel,"multi-year":this._intl.prevMultiYearLabel}[this.calendar.currentView]}get nextButtonLabel(){return{month:this._intl.nextMonthLabel,year:this._intl.nextYearLabel,"multi-year":this._intl.nextMultiYearLabel}[this.calendar.currentView]}currentPeriodClicked(){this.calendar.currentView=this.calendar.currentView=="month"?"multi-year":"month"}previousClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,-1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?-1:-Ai)}nextClicked(){this.calendar.activeDate=this.calendar.currentView=="month"?this._dateAdapter.addCalendarMonths(this.calendar.activeDate,1):this._dateAdapter.addCalendarYears(this.calendar.activeDate,this.calendar.currentView=="year"?1:Ai)}previousEnabled(){return this.calendar.minDate?!this.calendar.minDate||!this._isSameView(this.calendar.activeDate,this.calendar.minDate):!0}nextEnabled(){return!this.calendar.maxDate||!this._isSameView(this.calendar.activeDate,this.calendar.maxDate)}_isSameView(e,t){return this.calendar.currentView=="month"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t)&&this._dateAdapter.getMonth(e)==this._dateAdapter.getMonth(t):this.calendar.currentView=="year"?this._dateAdapter.getYear(e)==this._dateAdapter.getYear(t):NC(this._dateAdapter,e,t,this.calendar.minDate,this.calendar.maxDate)}_formatMinAndMaxYearLabels(){let t=this._dateAdapter.getYear(this.calendar.activeDate)-Fl(this._dateAdapter,this.calendar.activeDate,this.calendar.minDate,this.calendar.maxDate),o=t+Ai-1,r=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1)),a=this._dateAdapter.getYearName(this._dateAdapter.createDate(o,0,1));return[r,a]}_periodButtonLabelId=d(Ye).getId("mat-calendar-period-label-");static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-calendar-header"]],exportAs:["matCalendarHeader"],ngContentSelectors:SA,decls:17,vars:11,consts:[[1,"mat-calendar-header"],[1,"mat-calendar-controls"],["aria-live","polite",1,"cdk-visually-hidden",3,"id"],["mat-button","","type","button",1,"mat-calendar-period-button",3,"click"],["aria-hidden","true"],["viewBox","0 0 10 5","focusable","false","aria-hidden","true",1,"mat-calendar-arrow"],["points","0,0 5,5 10,0"],[1,"mat-calendar-spacer"],["mat-icon-button","","type","button",1,"mat-calendar-previous-button",3,"click","disabled"],["viewBox","0 0 24 24","focusable","false","aria-hidden","true"],["d","M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"],["mat-icon-button","","type","button",1,"mat-calendar-next-button",3,"click","disabled"],["d","M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"]],template:function(t,o){t&1&&(Te(),l(0,"div",0)(1,"div",1)(2,"span",2),p(3),c(),l(4,"button",3),b("click",function(){return o.currentPeriodClicked()}),l(5,"span",4),p(6),c(),vt(),l(7,"svg",5),M(8,"polygon",6),c()(),gi(),M(9,"div",7),ae(10),l(11,"button",8),b("click",function(){return o.previousClicked()}),vt(),l(12,"svg",9),M(13,"path",10),c()(),gi(),l(14,"button",11),b("click",function(){return o.nextClicked()}),vt(),l(15,"svg",9),M(16,"path",12),c()()()()),t&2&&(m(2),x("id",o._periodButtonLabelId),m(),$(o.periodButtonDescription),m(),Y("aria-label",o.periodButtonLabel)("aria-describedby",o._periodButtonLabelId),m(2),$(o.periodButtonText),m(),j("mat-calendar-invert",o.calendar.currentView!=="month"),m(4),x("disabled",!o.previousEnabled()),Y("aria-label",o.prevButtonLabel),m(3),x("disabled",!o.nextEnabled()),Y("aria-label",o.nextButtonLabel))},dependencies:[Xe,Ze],encapsulation:2,changeDetection:0})}return i})(),Tf=(()=>{class i{_dateAdapter=d(Yt,{optional:!0});_dateFormats=d(Eo,{optional:!0});_changeDetectorRef=d(ye);_elementRef=d(Z);headerComponent;_calendarHeaderPortal;_intlChanges;_moveFocusOnNextTick=!1;get startAt(){return this._startAt}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get selected(){return this._selected}set selected(e){e instanceof Ji?this._selected=e:this._selected=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_selected;get minDate(){return this._minDate}set minDate(e){this._minDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_minDate;get maxDate(){return this._maxDate}set maxDate(e){this._maxDate=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_maxDate;dateFilter;dateClass;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;selectedChange=new L;yearSelected=new L;monthSelected=new L;viewChanged=new L(!0);_userSelection=new L;_userDragDrop=new L;monthView;yearView;multiYearView;get activeDate(){return this._clampedActiveDate}set activeDate(e){this._clampedActiveDate=this._dateAdapter.clampDate(e,this.minDate,this.maxDate),this.stateChanges.next(),this._changeDetectorRef.markForCheck()}_clampedActiveDate;get currentView(){return this._currentView}set currentView(e){let t=this._currentView!==e?e:null;this._currentView=e,this._moveFocusOnNextTick=!0,this._changeDetectorRef.markForCheck(),t&&this.viewChanged.emit(t)}_currentView;_activeDrag=null;stateChanges=new S;constructor(){this._intlChanges=d(Ta).changes.subscribe(()=>{this._changeDetectorRef.markForCheck(),this.stateChanges.next()})}ngAfterContentInit(){this._calendarHeaderPortal=new Zt(this.headerComponent||VC),this.activeDate=this.startAt||this._dateAdapter.today(),this._currentView=this.startView}ngAfterViewChecked(){this._moveFocusOnNextTick&&(this._moveFocusOnNextTick=!1,this.focusActiveCell())}ngOnDestroy(){this._intlChanges.unsubscribe(),this.stateChanges.complete()}ngOnChanges(e){let t=e.minDate&&!this._dateAdapter.sameDate(e.minDate.previousValue,e.minDate.currentValue)?e.minDate:void 0,o=e.maxDate&&!this._dateAdapter.sameDate(e.maxDate.previousValue,e.maxDate.currentValue)?e.maxDate:void 0,r=t||o||e.dateFilter;if(r&&!r.firstChange){let a=this._getCurrentViewComponent();a&&(this._elementRef.nativeElement.contains(dn())&&(this._moveFocusOnNextTick=!0),this._changeDetectorRef.detectChanges(),a._init())}this.stateChanges.next()}focusActiveCell(){this._getCurrentViewComponent()._focusActiveCell(!1)}updateTodaysDate(){this._getCurrentViewComponent()._init()}_dateSelected(e){let t=e.value;(this.selected instanceof Ji||t&&!this._dateAdapter.sameDate(t,this.selected))&&this.selectedChange.emit(t),this._userSelection.emit(e)}_yearSelectedInMultiYearView(e){this.yearSelected.emit(e)}_monthSelectedInYearView(e){this.monthSelected.emit(e)}_goToDateInView(e,t){this.activeDate=e,this.currentView=t}_dragStarted(e){this._activeDrag=e}_dragEnded(e){this._activeDrag&&(e.value&&this._userDragDrop.emit(e),this._activeDrag=null)}_getCurrentViewComponent(){return this.monthView||this.yearView||this.multiYearView}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-calendar"]],viewQuery:function(t,o){if(t&1&&(ge(OC,5),ge(AC,5),ge(TC,5)),t&2){let r;ee(r=te())&&(o.monthView=r.first),ee(r=te())&&(o.yearView=r.first),ee(r=te())&&(o.multiYearView=r.first)}},hostAttrs:[1,"mat-calendar"],inputs:{headerComponent:"headerComponent",startAt:"startAt",startView:"startView",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass",comparisonStart:"comparisonStart",comparisonEnd:"comparisonEnd",startDateAccessibleName:"startDateAccessibleName",endDateAccessibleName:"endDateAccessibleName"},outputs:{selectedChange:"selectedChange",yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",_userSelection:"_userSelection",_userDragDrop:"_userDragDrop"},exportAs:["matCalendar"],features:[Me([RC]),Oe],decls:5,vars:2,consts:[[3,"cdkPortalOutlet"],["cdkMonitorSubtreeFocus","","tabindex","-1",1,"mat-calendar-content"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","_userSelection","dragStarted","dragEnded","activeDate","selected","dateFilter","maxDate","minDate","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName","activeDrag"],[3,"activeDateChange","monthSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"],[3,"activeDateChange","yearSelected","selectedChange","activeDate","selected","dateFilter","maxDate","minDate","dateClass"]],template:function(t,o){if(t&1&&(w(0,EA,0,0,"ng-template",0),l(1,"div",1),w(2,OA,1,11,"mat-month-view",2)(3,TA,1,6,"mat-year-view",3)(4,AA,1,6,"mat-multi-year-view",3),c()),t&2){let r;x("cdkPortalOutlet",o._calendarHeaderPortal),m(2),C((r=o.currentView)==="month"?2:r==="year"?3:r==="multi-year"?4:-1)}},dependencies:[Bi,eh,OC,AC,TC],styles:[`.mat-calendar{display:block;line-height:normal;font-family:var(--mat-datepicker-calendar-text-font, var(--mat-sys-body-medium-font));font-size:var(--mat-datepicker-calendar-text-size, var(--mat-sys-body-medium-size))}.mat-calendar-header{padding:8px 8px 0 8px}.mat-calendar-content{padding:0 8px 8px 8px;outline:none}.mat-calendar-controls{display:flex;align-items:center;margin:5% calc(4.7142857143% - 16px)}.mat-calendar-spacer{flex:1 1 auto}.mat-calendar-period-button{min-width:0;margin:0 8px;font-size:var(--mat-datepicker-calendar-period-button-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-period-button-text-weight, var(--mat-sys-title-small-weight));--mdc-text-button-label-text-color:var(--mat-datepicker-calendar-period-button-text-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow{display:inline-block;width:10px;height:5px;margin:0 0 0 5px;vertical-align:middle;fill:var(--mat-datepicker-calendar-period-button-icon-color, var(--mat-sys-on-surface-variant))}.mat-calendar-arrow.mat-calendar-invert{transform:rotate(180deg)}[dir=rtl] .mat-calendar-arrow{margin:0 5px 0 0}@media(forced-colors: active){.mat-calendar-arrow{fill:CanvasText}}.mat-datepicker-content .mat-calendar-previous-button:not(.mat-mdc-button-disabled),.mat-datepicker-content .mat-calendar-next-button:not(.mat-mdc-button-disabled){color:var(--mat-datepicker-calendar-navigation-button-icon-color, var(--mat-sys-on-surface-variant))}[dir=rtl] .mat-calendar-previous-button,[dir=rtl] .mat-calendar-next-button{transform:rotate(180deg)}.mat-calendar-table{border-spacing:0;border-collapse:collapse;width:100%}.mat-calendar-table-header th{text-align:center;padding:0 0 8px 0;color:var(--mat-datepicker-calendar-header-text-color, var(--mat-sys-on-surface-variant));font-size:var(--mat-datepicker-calendar-header-text-size, var(--mat-sys-title-small-size));font-weight:var(--mat-datepicker-calendar-header-text-weight, var(--mat-sys-title-small-weight))}.mat-calendar-table-header-divider{position:relative;height:1px}.mat-calendar-table-header-divider::after{content:"";position:absolute;top:0;left:-8px;right:-8px;height:1px;background:var(--mat-datepicker-calendar-header-divider-color, transparent)}.mat-calendar-body-cell-content::before{margin:calc(calc(var(--mat-focus-indicator-border-width, 3px) + 3px)*-1)}.mat-calendar-body-cell:focus .mat-focus-indicator::before{content:""} -`],encapsulation:2,changeDetection:0})}return i})(),BC=new v("mat-datepicker-scroll-strategy",{providedIn:"root",factory:()=>{let i=d(Ke);return()=>i.scrollStrategies.reposition()}});function HA(i){return()=>i.scrollStrategies.reposition()}var $A={provide:BC,deps:[Ke],useFactory:HA},jC=(()=>{class i{_elementRef=d(Z);_animationsDisabled=d(ze,{optional:!0})==="NoopAnimations";_changeDetectorRef=d(ye);_globalModel=d(Ll);_dateAdapter=d(Yt);_ngZone=d(K);_rangeSelectionStrategy=d(FC,{optional:!0});_stateChanges;_model;_eventCleanups;_animationFallback;_calendar;color;datepicker;comparisonStart;comparisonEnd;startDateAccessibleName;endDateAccessibleName;_isAbove;_animationDone=new S;_isAnimating=!1;_closeButtonText;_closeButtonFocused;_actionsPortal=null;_dialogLabelId;constructor(){if(d(We).load(In),this._closeButtonText=d(Ta).closeCalendarLabel,!this._animationsDisabled){let e=this._elementRef.nativeElement,t=d(tt);this._eventCleanups=this._ngZone.runOutsideAngular(()=>[t.listen(e,"animationstart",this._handleAnimationEvent),t.listen(e,"animationend",this._handleAnimationEvent),t.listen(e,"animationcancel",this._handleAnimationEvent)])}}ngAfterViewInit(){this._stateChanges=this.datepicker.stateChanges.subscribe(()=>{this._changeDetectorRef.markForCheck()}),this._calendar.focusActiveCell()}ngOnDestroy(){clearTimeout(this._animationFallback),this._eventCleanups?.forEach(e=>e()),this._stateChanges?.unsubscribe(),this._animationDone.complete()}_handleUserSelection(e){let t=this._model.selection,o=e.value,r=t instanceof Ji;if(r&&this._rangeSelectionStrategy){let a=this._rangeSelectionStrategy.selectionFinished(o,t,e.event);this._model.updateSelection(a,this)}else o&&(r||!this._dateAdapter.sameDate(o,t))&&this._model.add(o);(!this._model||this._model.isComplete())&&!this._actionsPortal&&this.datepicker.close()}_handleUserDragDrop(e){this._model.updateSelection(e.value,this)}_startExitAnimation(){this._elementRef.nativeElement.classList.add("mat-datepicker-content-exit"),this._animationsDisabled?this._animationDone.next():(clearTimeout(this._animationFallback),this._animationFallback=setTimeout(()=>{this._isAnimating||this._animationDone.next()},200))}_handleAnimationEvent=e=>{let t=this._elementRef.nativeElement;e.target!==t||!e.animationName.startsWith("_mat-datepicker-content")||(clearTimeout(this._animationFallback),this._isAnimating=e.type==="animationstart",t.classList.toggle("mat-datepicker-content-animating",this._isAnimating),this._isAnimating||this._animationDone.next())};_getSelected(){return this._model.selection}_applyPendingSelection(){this._model!==this._globalModel&&this._globalModel.updateSelection(this._model.selection,this)}_assignActions(e,t){this._model=e?this._globalModel.clone():this._globalModel,this._actionsPortal=e,t&&this._changeDetectorRef.detectChanges()}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-datepicker-content"]],viewQuery:function(t,o){if(t&1&&ge(Tf,5),t&2){let r;ee(r=te())&&(o._calendar=r.first)}},hostAttrs:[1,"mat-datepicker-content"],hostVars:6,hostBindings:function(t,o){t&2&&(jt(o.color?"mat-"+o.color:""),j("mat-datepicker-content-touch",o.datepicker.touchUi)("mat-datepicker-content-animations-enabled",!o._animationsDisabled))},inputs:{color:"color"},exportAs:["matDatepickerContent"],decls:5,vars:26,consts:[["cdkTrapFocus","","role","dialog",1,"mat-datepicker-content-container"],[3,"yearSelected","monthSelected","viewChanged","_userSelection","_userDragDrop","id","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","comparisonStart","comparisonEnd","startDateAccessibleName","endDateAccessibleName"],[3,"cdkPortalOutlet"],["type","button","mat-raised-button","",1,"mat-datepicker-close-button",3,"focus","blur","click","color"]],template:function(t,o){if(t&1&&(l(0,"div",0)(1,"mat-calendar",1),b("yearSelected",function(a){return o.datepicker._selectYear(a)})("monthSelected",function(a){return o.datepicker._selectMonth(a)})("viewChanged",function(a){return o.datepicker._viewChanged(a)})("_userSelection",function(a){return o._handleUserSelection(a)})("_userDragDrop",function(a){return o._handleUserDragDrop(a)}),c(),w(2,IA,0,0,"ng-template",2),l(3,"button",3),b("focus",function(){return o._closeButtonFocused=!0})("blur",function(){return o._closeButtonFocused=!1})("click",function(){return o.datepicker.close()}),p(4),c()()),t&2){let r;j("mat-datepicker-content-container-with-custom-header",o.datepicker.calendarHeaderComponent)("mat-datepicker-content-container-with-actions",o._actionsPortal),Y("aria-modal",!0)("aria-labelledby",(r=o._dialogLabelId)!==null&&r!==void 0?r:void 0),m(),jt(o.datepicker.panelClass),x("id",o.datepicker.id)("startAt",o.datepicker.startAt)("startView",o.datepicker.startView)("minDate",o.datepicker._getMinDate())("maxDate",o.datepicker._getMaxDate())("dateFilter",o.datepicker._getDateFilter())("headerComponent",o.datepicker.calendarHeaderComponent)("selected",o._getSelected())("dateClass",o.datepicker.dateClass)("comparisonStart",o.comparisonStart)("comparisonEnd",o.comparisonEnd)("startDateAccessibleName",o.startDateAccessibleName)("endDateAccessibleName",o.endDateAccessibleName),m(),x("cdkPortalOutlet",o._actionsPortal),m(),j("cdk-visually-hidden",!o._closeButtonFocused),x("color",o.color||"primary"),m(),$(o._closeButtonText)}},dependencies:[oh,Tf,Bi,Xe],styles:[`@keyframes _mat-datepicker-content-dropdown-enter{from{opacity:0;transform:scaleY(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-dialog-enter{from{opacity:0;transform:scale(0.8)}to{opacity:1;transform:none}}@keyframes _mat-datepicker-content-exit{from{opacity:1}to{opacity:0}}.mat-datepicker-content{display:block;border-radius:4px;background-color:var(--mat-datepicker-calendar-container-background-color, var(--mat-sys-surface-container-high));color:var(--mat-datepicker-calendar-container-text-color, var(--mat-sys-on-surface));box-shadow:var(--mat-datepicker-calendar-container-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-shape, var(--mat-sys-corner-large))}.mat-datepicker-content.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dropdown-enter 120ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content .mat-datepicker-content-container-with-custom-header .mat-calendar{height:auto}.mat-datepicker-content .mat-datepicker-close-button{position:absolute;top:100%;left:0;margin-top:8px}.mat-datepicker-content-animating .mat-datepicker-content .mat-datepicker-close-button{display:none}.mat-datepicker-content-container{display:flex;flex-direction:column;justify-content:space-between}.mat-datepicker-content-touch{display:block;max-height:80vh;box-shadow:var(--mat-datepicker-calendar-container-touch-elevation-shadow, 0px 0px 0px 0px rgba(0, 0, 0, 0.2), 0px 0px 0px 0px rgba(0, 0, 0, 0.14), 0px 0px 0px 0px rgba(0, 0, 0, 0.12));border-radius:var(--mat-datepicker-calendar-container-touch-shape, var(--mat-sys-corner-extra-large));position:relative;overflow:visible}.mat-datepicker-content-touch.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-dialog-enter 150ms cubic-bezier(0, 0, 0.2, 1)}.mat-datepicker-content-touch .mat-datepicker-content-container{min-height:312px;max-height:788px;min-width:250px;max-width:750px}.mat-datepicker-content-touch .mat-calendar{width:100%;height:auto}.mat-datepicker-content-exit.mat-datepicker-content-animations-enabled{animation:_mat-datepicker-content-exit 100ms linear}@media all and (orientation: landscape){.mat-datepicker-content-touch .mat-datepicker-content-container{width:64vh;height:80vh}}@media all and (orientation: portrait){.mat-datepicker-content-touch .mat-datepicker-content-container{width:80vw;height:100vw}.mat-datepicker-content-touch .mat-datepicker-content-container-with-actions{height:115vw}} -`],encapsulation:2,changeDetection:0})}return i})(),IC=(()=>{class i{_overlay=d(Ke);_viewContainerRef=d(Nt);_dateAdapter=d(Yt,{optional:!0});_dir=d(dt,{optional:!0});_model=d(Ll);_scrollStrategy=d(BC);_inputStateChanges=ie.EMPTY;_document=d(re);calendarHeaderComponent;get startAt(){return this._startAt||(this.datepickerInput?this.datepickerInput.getStartValue():null)}set startAt(e){this._startAt=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e))}_startAt;startView="month";get color(){return this._color||(this.datepickerInput?this.datepickerInput.getThemePalette():void 0)}set color(e){this._color=e}_color;touchUi=!1;get disabled(){return this._disabled===void 0&&this.datepickerInput?this.datepickerInput.disabled:!!this._disabled}set disabled(e){e!==this._disabled&&(this._disabled=e,this.stateChanges.next(void 0))}_disabled;xPosition="start";yPosition="below";restoreFocus=!0;yearSelected=new L;monthSelected=new L;viewChanged=new L(!0);dateClass;openedStream=new L;closedStream=new L;get panelClass(){return this._panelClass}set panelClass(e){this._panelClass=Sv(e)}_panelClass;get opened(){return this._opened}set opened(e){e?this.open():this.close()}_opened=!1;id=d(Ye).getId("mat-datepicker-");_getMinDate(){return this.datepickerInput&&this.datepickerInput.min}_getMaxDate(){return this.datepickerInput&&this.datepickerInput.max}_getDateFilter(){return this.datepickerInput&&this.datepickerInput.dateFilter}_overlayRef;_componentRef;_focusedElementBeforeOpen=null;_backdropHarnessClass=`${this.id}-backdrop`;_actionsPortal;datepickerInput;stateChanges=new S;_injector=d(ce);_changeDetectorRef=d(ye);constructor(){this._dateAdapter,this._model.selectionChanged.subscribe(()=>{this._changeDetectorRef.markForCheck()})}ngOnChanges(e){let t=e.xPosition||e.yPosition;if(t&&!t.firstChange&&this._overlayRef){let o=this._overlayRef.getConfig().positionStrategy;o instanceof Hr&&(this._setConnectedPositions(o),this.opened&&this._overlayRef.updatePosition())}this.stateChanges.next(void 0)}ngOnDestroy(){this._destroyOverlay(),this.close(),this._inputStateChanges.unsubscribe(),this.stateChanges.complete()}select(e){this._model.add(e)}_selectYear(e){this.yearSelected.emit(e)}_selectMonth(e){this.monthSelected.emit(e)}_viewChanged(e){this.viewChanged.emit(e)}registerInput(e){return this.datepickerInput,this._inputStateChanges.unsubscribe(),this.datepickerInput=e,this._inputStateChanges=e.stateChanges.subscribe(()=>this.stateChanges.next(void 0)),this._model}registerActions(e){this._actionsPortal,this._actionsPortal=e,this._componentRef?.instance._assignActions(e,!0)}removeActions(e){e===this._actionsPortal&&(this._actionsPortal=null,this._componentRef?.instance._assignActions(null,!0))}open(){this._opened||this.disabled||this._componentRef?.instance._isAnimating||(this.datepickerInput,this._focusedElementBeforeOpen=dn(),this._openOverlay(),this._opened=!0,this.openedStream.emit())}close(){if(!this._opened||this._componentRef?.instance._isAnimating)return;let e=this.restoreFocus&&this._focusedElementBeforeOpen&&typeof this._focusedElementBeforeOpen.focus=="function",t=()=>{this._opened&&(this._opened=!1,this.closedStream.emit())};if(this._componentRef){let{instance:o,location:r}=this._componentRef;o._animationDone.pipe(_e(1)).subscribe(()=>{let a=this._document.activeElement;e&&(!a||a===this._document.activeElement||r.nativeElement.contains(a))&&this._focusedElementBeforeOpen.focus(),this._focusedElementBeforeOpen=null,this._destroyOverlay()}),o._startExitAnimation()}e?setTimeout(t):t()}_applyPendingSelection(){this._componentRef?.instance?._applyPendingSelection()}_forwardContentValues(e){e.datepicker=this,e.color=this.color,e._dialogLabelId=this.datepickerInput.getOverlayLabelId(),e._assignActions(this._actionsPortal,!1)}_openOverlay(){this._destroyOverlay();let e=this.touchUi,t=new Zt(jC,this._viewContainerRef),o=this._overlayRef=this._overlay.create(new Mi({positionStrategy:e?this._getDialogStrategy():this._getDropdownStrategy(),hasBackdrop:!0,backdropClass:[e?"cdk-overlay-dark-backdrop":"mat-overlay-transparent-backdrop",this._backdropHarnessClass],direction:this._dir||"ltr",scrollStrategy:e?this._overlay.scrollStrategies.block():this._scrollStrategy(),panelClass:`mat-datepicker-${e?"dialog":"popup"}`}));this._getCloseStream(o).subscribe(r=>{r&&r.preventDefault(),this.close()}),o.keydownEvents().subscribe(r=>{let a=r.keyCode;(a===38||a===40||a===37||a===39||a===33||a===34)&&r.preventDefault()}),this._componentRef=o.attach(t),this._forwardContentValues(this._componentRef.instance),e||Et(()=>{o.updatePosition()},{injector:this._injector})}_destroyOverlay(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=this._componentRef=null)}_getDialogStrategy(){return this._overlay.position().global().centerHorizontally().centerVertically()}_getDropdownStrategy(){let e=this._overlay.position().flexibleConnectedTo(this.datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition();return this._setConnectedPositions(e)}_setConnectedPositions(e){let t=this.xPosition==="end"?"end":"start",o=t==="start"?"end":"start",r=this.yPosition==="above"?"bottom":"top",a=r==="top"?"bottom":"top";return e.withPositions([{originX:t,originY:a,overlayX:t,overlayY:r},{originX:t,originY:r,overlayX:t,overlayY:a},{originX:o,originY:a,overlayX:o,overlayY:r},{originX:o,originY:r,overlayX:o,overlayY:a}])}_getCloseStream(e){let t=["ctrlKey","shiftKey","metaKey"];return Le(e.backdropClick(),e.detachments(),e.keydownEvents().pipe(le(o=>o.keyCode===27&&!rt(o)||this.datepickerInput&&rt(o,"altKey")&&o.keyCode===38&&t.every(r=>!rt(o,r)))))}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,inputs:{calendarHeaderComponent:"calendarHeaderComponent",startAt:"startAt",startView:"startView",color:"color",touchUi:[2,"touchUi","touchUi",X],disabled:[2,"disabled","disabled",X],xPosition:"xPosition",yPosition:"yPosition",restoreFocus:[2,"restoreFocus","restoreFocus",X],dateClass:"dateClass",panelClass:"panelClass",opened:[2,"opened","opened",X]},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",viewChanged:"viewChanged",openedStream:"opened",closedStream:"closed"},features:[Oe]})}return i})(),zC=(()=>{class i extends IC{static \u0275fac=(()=>{let e;return function(o){return(e||(e=Ve(i)))(o||i)}})();static \u0275cmp=E({type:i,selectors:[["mat-datepicker"]],exportAs:["matDatepicker"],features:[Me([RC,{provide:IC,useExisting:i}]),xe],decls:0,vars:0,template:function(t,o){},encapsulation:2,changeDetection:0})}return i})(),Ea=class{target;targetElement;value;constructor(n,e){this.target=n,this.targetElement=e,this.value=this.target.value}},GA=(()=>{class i{_elementRef=d(Z);_dateAdapter=d(Yt,{optional:!0});_dateFormats=d(Eo,{optional:!0});_isInitialized;get value(){return this._model?this._getValueFromModel(this._model.selection):this._pendingValue}set value(e){this._assignValueProgrammatically(e)}_model;get disabled(){return!!this._disabled||this._parentDisabled()}set disabled(e){let t=e,o=this._elementRef.nativeElement;this._disabled!==t&&(this._disabled=t,this.stateChanges.next(void 0)),t&&this._isInitialized&&o.blur&&o.blur()}_disabled;dateChange=new L;dateInput=new L;stateChanges=new S;_onTouched=()=>{};_validatorOnChange=()=>{};_cvaOnChange=()=>{};_valueChangesSubscription=ie.EMPTY;_localeSubscription=ie.EMPTY;_pendingValue;_parseValidator=()=>this._lastValueValid?null:{matDatepickerParse:{text:this._elementRef.nativeElement.value}};_filterValidator=e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value));return!t||this._matchesFilter(t)?null:{matDatepickerFilter:!0}};_minValidator=e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMinDate();return!o||!t||this._dateAdapter.compareDate(o,t)<=0?null:{matDatepickerMin:{min:o,actual:t}}};_maxValidator=e=>{let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e.value)),o=this._getMaxDate();return!o||!t||this._dateAdapter.compareDate(o,t)>=0?null:{matDatepickerMax:{max:o,actual:t}}};_getValidators(){return[this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]}_registerModel(e){this._model=e,this._valueChangesSubscription.unsubscribe(),this._pendingValue&&this._assignValue(this._pendingValue),this._valueChangesSubscription=this._model.selectionChanged.subscribe(t=>{if(this._shouldHandleChangeEvent(t)){let o=this._getValueFromModel(t.selection);this._lastValueValid=this._isValidValue(o),this._cvaOnChange(o),this._onTouched(),this._formatValue(o),this.dateInput.emit(new Ea(this,this._elementRef.nativeElement)),this.dateChange.emit(new Ea(this,this._elementRef.nativeElement))}})}_lastValueValid=!1;constructor(){this._localeSubscription=this._dateAdapter.localeChanges.subscribe(()=>{this._assignValueProgrammatically(this.value)})}ngAfterViewInit(){this._isInitialized=!0}ngOnChanges(e){WA(e,this._dateAdapter)&&this.stateChanges.next(void 0)}ngOnDestroy(){this._valueChangesSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this.stateChanges.complete()}registerOnValidatorChange(e){this._validatorOnChange=e}validate(e){return this._validator?this._validator(e):null}writeValue(e){this._assignValueProgrammatically(e)}registerOnChange(e){this._cvaOnChange=e}registerOnTouched(e){this._onTouched=e}setDisabledState(e){this.disabled=e}_onKeydown(e){let t=["ctrlKey","shiftKey","metaKey"];rt(e,"altKey")&&e.keyCode===40&&t.every(r=>!rt(e,r))&&!this._elementRef.nativeElement.readOnly&&(this._openPopup(),e.preventDefault())}_onInput(e){let t=this._lastValueValid,o=this._dateAdapter.parse(e,this._dateFormats.parse.dateInput);this._lastValueValid=this._isValidValue(o),o=this._dateAdapter.getValidDateOrNull(o);let r=!this._dateAdapter.sameDate(o,this.value);!o||r?this._cvaOnChange(o):(e&&!this.value&&this._cvaOnChange(o),t!==this._lastValueValid&&this._validatorOnChange()),r&&(this._assignValue(o),this.dateInput.emit(new Ea(this,this._elementRef.nativeElement)))}_onChange(){this.dateChange.emit(new Ea(this,this._elementRef.nativeElement))}_onBlur(){this.value&&this._formatValue(this.value),this._onTouched()}_formatValue(e){this._elementRef.nativeElement.value=e!=null?this._dateAdapter.format(e,this._dateFormats.display.dateInput):""}_assignValue(e){this._model?(this._assignValueToModel(e),this._pendingValue=null):this._pendingValue=e}_isValidValue(e){return!e||this._dateAdapter.isValid(e)}_parentDisabled(){return!1}_assignValueProgrammatically(e){e=this._dateAdapter.deserialize(e),this._lastValueValid=this._isValidValue(e),e=this._dateAdapter.getValidDateOrNull(e),this._assignValue(e),this._formatValue(e)}_matchesFilter(e){let t=this._getDateFilter();return!t||t(e)}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,inputs:{value:"value",disabled:[2,"disabled","disabled",X]},outputs:{dateChange:"dateChange",dateInput:"dateInput"},features:[Oe]})}return i})();function WA(i,n){let e=Object.keys(i);for(let t of e){let{previousValue:o,currentValue:r}=i[t];if(n.isDateInstance(o)&&n.isDateInstance(r)){if(!n.sameDate(o,r))return!0}else return!0}return!1}var YA={provide:io,useExisting:St(()=>Xu),multi:!0},qA={provide:$i,useExisting:St(()=>Xu),multi:!0},Xu=(()=>{class i extends GA{_formField=d(vo,{optional:!0});_closedSubscription=ie.EMPTY;_openedSubscription=ie.EMPTY;set matDatepicker(e){e&&(this._datepicker=e,this._ariaOwns.set(e.opened?e.id:null),this._closedSubscription=e.closedStream.subscribe(()=>{this._onTouched(),this._ariaOwns.set(null)}),this._openedSubscription=e.openedStream.subscribe(()=>{this._ariaOwns.set(e.id)}),this._registerModel(e.registerInput(this)))}_datepicker;_ariaOwns=Ft(null);get min(){return this._min}set min(e){let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._min)||(this._min=t,this._validatorOnChange())}_min;get max(){return this._max}set max(e){let t=this._dateAdapter.getValidDateOrNull(this._dateAdapter.deserialize(e));this._dateAdapter.sameDate(t,this._max)||(this._max=t,this._validatorOnChange())}_max;get dateFilter(){return this._dateFilter}set dateFilter(e){let t=this._matchesFilter(this.value);this._dateFilter=e,this._matchesFilter(this.value)!==t&&this._validatorOnChange()}_dateFilter;_validator;constructor(){super(),this._validator=me.compose(super._getValidators())}getConnectedOverlayOrigin(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef}getOverlayLabelId(){return this._formField?this._formField.getLabelId():this._elementRef.nativeElement.getAttribute("aria-labelledby")}getThemePalette(){return this._formField?this._formField.color:void 0}getStartValue(){return this.value}ngOnDestroy(){super.ngOnDestroy(),this._closedSubscription.unsubscribe(),this._openedSubscription.unsubscribe()}_openPopup(){this._datepicker&&this._datepicker.open()}_getValueFromModel(e){return e}_assignValueToModel(e){this._model&&this._model.updateSelection(e,this)}_getMinDate(){return this._min}_getMaxDate(){return this._max}_getDateFilter(){return this._dateFilter}_shouldHandleChangeEvent(e){return e.source!==this}static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["input","matDatepicker",""]],hostAttrs:[1,"mat-datepicker-input"],hostVars:6,hostBindings:function(t,o){t&1&&b("input",function(a){return o._onInput(a.target.value)})("change",function(){return o._onChange()})("blur",function(){return o._onBlur()})("keydown",function(a){return o._onKeydown(a)}),t&2&&(vi("disabled",o.disabled),Y("aria-haspopup",o._datepicker?"dialog":null)("aria-owns",o._ariaOwns())("min",o.min?o._dateAdapter.toIso8601(o.min):null)("max",o.max?o._dateAdapter.toIso8601(o.max):null)("data-mat-calendar",o._datepicker?o._datepicker.id:null))},inputs:{matDatepicker:"matDatepicker",min:"min",max:"max",dateFilter:[0,"matDatepickerFilter","dateFilter"]},exportAs:["matDatepickerInput"],features:[Me([YA,qA,{provide:Pd,useExisting:i}]),xe]})}return i})(),KA=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","matDatepickerToggleIcon",""]]})}return i})(),Af=(()=>{class i{_intl=d(Ta);_changeDetectorRef=d(ye);_stateChanges=ie.EMPTY;datepicker;tabIndex;ariaLabel;get disabled(){return this._disabled===void 0&&this.datepicker?this.datepicker.disabled:!!this._disabled}set disabled(e){this._disabled=e}_disabled;disableRipple;_customIcon;_button;constructor(){let e=d(new ro("tabindex"),{optional:!0}),t=Number(e);this.tabIndex=t||t===0?t:null}ngOnChanges(e){e.datepicker&&this._watchStateChanges()}ngOnDestroy(){this._stateChanges.unsubscribe()}ngAfterContentInit(){this._watchStateChanges()}_open(e){this.datepicker&&!this.disabled&&(this.datepicker.open(),e.stopPropagation())}_watchStateChanges(){let e=this.datepicker?this.datepicker.stateChanges:T(),t=this.datepicker&&this.datepicker.datepickerInput?this.datepicker.datepickerInput.stateChanges:T(),o=this.datepicker?Le(this.datepicker.openedStream,this.datepicker.closedStream):T();this._stateChanges.unsubscribe(),this._stateChanges=Le(this._intl.changes,e,t,o).subscribe(()=>this._changeDetectorRef.markForCheck())}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,o,r){if(t&1&&it(r,KA,5),t&2){let a;ee(a=te())&&(o._customIcon=a.first)}},viewQuery:function(t,o){if(t&1&&ge(PA,5),t&2){let r;ee(r=te())&&(o._button=r.first)}},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:8,hostBindings:function(t,o){t&1&&b("click",function(a){return o._open(a)}),t&2&&(Y("tabindex",null)("data-mat-calendar",o.datepicker?o.datepicker.id:null),j("mat-datepicker-toggle-active",o.datepicker&&o.datepicker.opened)("mat-accent",o.datepicker&&o.datepicker.color==="accent")("mat-warn",o.datepicker&&o.datepicker.color==="warn"))},inputs:{datepicker:[0,"for","datepicker"],tabIndex:"tabIndex",ariaLabel:[0,"aria-label","ariaLabel"],disabled:[2,"disabled","disabled",X],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Oe],ngContentSelectors:FA,decls:4,vars:7,consts:[["button",""],["mat-icon-button","","type","button",3,"disabled","disableRipple"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false","aria-hidden","true",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,o){t&1&&(Te(RA),l(0,"button",1,0),w(2,NA,2,0,":svg:svg",2),ae(3),c()),t&2&&(x("disabled",o.disabled)("disableRipple",o.disableRipple),Y("aria-haspopup",o.datepicker?"dialog":null)("aria-label",o.ariaLabel||o._intl.openCalendarLabel)("tabindex",o.disabled?-1:o.tabIndex)("aria-expanded",o.datepicker?o.datepicker.opened:null),m(2),C(o._customIcon?-1:2))},dependencies:[Ze],styles:[`.mat-datepicker-toggle{pointer-events:auto;color:var(--mat-datepicker-toggle-icon-color, var(--mat-sys-on-surface-variant))}.mat-datepicker-toggle-active{color:var(--mat-datepicker-toggle-active-state-icon-color, var(--mat-sys-on-surface-variant))}@media(forced-colors: active){.mat-datepicker-toggle-default-icon{color:CanvasText}} -`],encapsulation:2,changeDetection:0})}return i})();var UC=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({providers:[Ta,$A],imports:[ke,Qt,Xo,ji,se,jC,Af,VC,Ht]})}return i})();var QA={dispatch:!0,functional:!1,useEffectsErrorHandler:!0},Ju="__@ngrx/effects_create__";function je(i,n={}){let e=n.functional?i:i(),t=_(_({},QA),n);return Object.defineProperty(e,Ju,{value:t}),e}function XA(i){return Object.getOwnPropertyNames(i).filter(t=>i[t]&&i[t].hasOwnProperty(Ju)?i[t][Ju].hasOwnProperty("dispatch"):!1).map(t=>{let o=i[t][Ju];return _({propertyName:t},o)})}function JA(i){return XA(i)}function HC(i){return Object.getPrototypeOf(i)}function eI(i){return!!i.constructor&&i.constructor.name!=="Object"&&i.constructor.name!=="Function"}function $C(i){return typeof i=="function"}function tI(i){return i.filter($C)}function iI(i,n,e){let t=HC(i),r=!!t&&t.constructor.name!=="Object"?t.constructor.name:null,a=JA(i).map(({propertyName:s,dispatch:u,useEffectsErrorHandler:h})=>{let g=typeof i[s]=="function"?i[s]():i[s],y=h?e(g,n):g;return u===!1?y.pipe(og()):y.pipe(sg()).pipe(A(F=>({effect:i[s],notification:F,propertyName:s,sourceName:r,sourceInstance:i})))});return Le(...a)}var nI=10;function GC(i,n,e=nI){return i.pipe(ve(t=>(n&&n.handleError(t),e<=1?i:GC(i,n,e-1))))}var Hn=(()=>{class i extends mt{constructor(e){super(),e&&(this.source=e)}lift(e){let t=new i;return t.source=this,t.operator=e,t}static{this.\u0275fac=function(t){return new(t||i)(N(sr))}}static{this.\u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function Ee(...i){return le(n=>i.some(e=>typeof e=="string"?e===n.type:e.type===n.type))}var EY=new v("@ngrx/effects Internal Root Guard"),OY=new v("@ngrx/effects User Provided Effects"),TY=new v("@ngrx/effects Internal Root Effects"),AY=new v("@ngrx/effects Internal Root Effects Instances"),IY=new v("@ngrx/effects Internal Feature Effects"),PY=new v("@ngrx/effects Internal Feature Effects Instance Groups"),oI=new v("@ngrx/effects Effects Error Handler",{providedIn:"root",factory:()=>GC}),rI="@ngrx/effects/init",aI=q(rI);function sI(i,n){if(i.notification.kind==="N"){let e=i.notification.value;!lI(e)&&n.handleError(new Error(`Effect ${cI(i)} dispatched an invalid action: ${dI(e)}`))}}function lI(i){return typeof i!="function"&&i&&i.type&&typeof i.type=="string"}function cI({propertyName:i,sourceInstance:n,sourceName:e}){let t=typeof n[i]=="function";return!!e?`"${e}.${String(i)}${t?"()":""}"`:`"${String(i)}()"`}function dI(i){try{return JSON.stringify(i)}catch{return i}}var uI="ngrxOnIdentifyEffects";function mI(i){return If(i,uI)}var pI="ngrxOnRunEffects";function hI(i){return If(i,pI)}var fI="ngrxOnInitEffects";function gI(i){return If(i,fI)}function If(i,n){return i&&n in i&&typeof i[n]=="function"}var WC=(()=>{class i extends S{constructor(e,t){super(),this.errorHandler=e,this.effectsErrorHandler=t}addEffects(e){this.next(e)}toActions(){return this.pipe(Om(e=>eI(e)?HC(e):e),Ie(e=>e.pipe(Om(_I))),Ie(e=>{let t=e.pipe(ja(r=>bI(this.errorHandler,this.effectsErrorHandler)(r)),A(r=>(sI(r,this.errorHandler),r.notification)),le(r=>r.kind==="N"&&r.value!=null),rg()),o=e.pipe(_e(1),le(gI),A(r=>r.ngrxOnInitEffects()));return Le(t,o)}))}static{this.\u0275fac=function(t){return new(t||i)(N(Ri),N(oI))}}static{this.\u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function _I(i){return mI(i)?i.ngrxOnIdentifyEffects():""}function bI(i,n){return e=>{let t=iI(e,i,n);return hI(e)?e.ngrxOnRunEffects(t):t}}var vI=(()=>{class i{get isStarted(){return!!this.effectsSubscription}constructor(e,t){this.effectSources=e,this.store=t,this.effectsSubscription=null}start(){this.effectsSubscription||(this.effectsSubscription=this.effectSources.toActions().subscribe(this.store))}ngOnDestroy(){this.effectsSubscription&&(this.effectsSubscription.unsubscribe(),this.effectsSubscription=null)}static{this.\u0275fac=function(t){return new(t||i)(N(WC),N(he))}}static{this.\u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}}return i})();function YC(...i){let n=i.flat(),e=tI(n);return ii([e,Ua(()=>{d(cl),d(Bd,{optional:!0});let t=d(vI),o=d(WC),r=!t.isStarted;r&&t.start();for(let a of n){let s=$C(a)?d(a):a;o.addEffects(s)}r&&d(he).dispatch(aI())})])}var Oo=()=>[];function yI(i,n){if(i&1&&M(0,"input",11),i&2){let e=f().$implicit;x("placeholder",e.placeholder||"")("formControlName",e.key)("required",e.required)}}function CI(i,n){if(i&1&&M(0,"textarea",12),i&2){let e=f().$implicit;x("placeholder",e.placeholder||"")("formControlName",e.key)("required",e.required)}}function xI(i,n){if(i&1&&M(0,"input",13),i&2){let e=f().$implicit;x("placeholder",e.placeholder||"")("formControlName",e.key)("required",e.required)}}function wI(i,n){if(i&1&&(nn(0),M(1,"input",17),nn(2,18),M(3,"mat-datepicker-toggle",19),on(),M(4,"mat-datepicker",null,0),on()),i&2){let e=ft(5),t=f().$implicit;m(),x("matDatepicker",e)("placeholder",t.placeholder||"")("formControlName",t.key)("required",t.required),m(2),x("for",e)}}function DI(i,n){if(i&1&&(nn(0),M(1,"input",17),nn(2,18),M(3,"mat-datepicker-toggle",19),on(),M(4,"mat-datepicker",null,0),on()),i&2){let e=ft(5),t=f().$implicit;m(),x("matDatepicker",e)("placeholder",t.placeholder||"")("formControlName",t.key)("required",t.required),m(2),x("for",e)}}function MI(i,n){if(i&1&&(l(0,"mat-option",20),p(1),c()),i&2){let e=n.$implicit,t=f(3);x("value",e),m(),U(" ",t.getRelationDisplayValue(e)," ")}}function kI(i,n){if(i&1&&(l(0,"mat-select",14),de(1,MI,2,2,"mat-option",20,Qe),c()),i&2){let e=f().$implicit,t=f();x("formControlName",e.key)("compareWith",t.compareObjects),m(),ue(e.relatedItems||Gn(2,Oo))}}function SI(i,n){if(i&1&&(l(0,"mat-option",20),p(1),c()),i&2){let e=n.$implicit,t=f(3);x("value",e),m(),U(" ",t.getRelationDisplayValue(e)," ")}}function EI(i,n){if(i&1&&(l(0,"mat-select",15),de(1,SI,2,2,"mat-option",20,Qe),c()),i&2){let e=f().$implicit,t=f();x("formControlName",e.key)("multiple",e.multiple)("compareWith",t.compareObjects),m(),ue(e.relatedItems||Gn(3,Oo))}}function OI(i,n){if(i&1&&(l(0,"mat-option",20),p(1),c()),i&2){let e=n.$implicit,t=f(3);x("value",e),m(),U(" ",t.getRelationDisplayValue(e)," ")}}function TI(i,n){if(i&1&&(l(0,"mat-select",14),de(1,OI,2,2,"mat-option",20,Qe),c()),i&2){let e=f().$implicit,t=f();x("formControlName",e.key)("compareWith",t.compareObjects),m(),ue(e.relatedItems||Gn(2,Oo))}}function AI(i,n){if(i&1&&(l(0,"mat-option",20),p(1),c()),i&2){let e=n.$implicit,t=f(3);x("value",e),m(),U(" ",t.getRelationDisplayValue(e)," ")}}function II(i,n){if(i&1&&(l(0,"mat-select",14),de(1,AI,2,2,"mat-option",20,Qe),c()),i&2){let e=f().$implicit,t=f();x("formControlName",e.key)("compareWith",t.compareObjects),m(),ue(e.relatedItems||Gn(2,Oo))}}function PI(i,n){if(i&1&&(l(0,"mat-select",16)(1,"mat-option",21),p(2,"Admin"),c(),l(3,"mat-option",22),p(4,"Maintainer"),c(),l(5,"mat-option",23),p(6,"User"),c()()),i&2){let e=f().$implicit;x("formControlName",e.key)}}function RI(i,n){if(i&1&&(l(0,"span"),p(1),c()),i&2){let e=f().$implicit;m(),U("Unsupported field type ",e.type,"")}}function FI(i,n){if(i&1&&(l(0,"mat-error"),p(1),c()),i&2){let e=f().$implicit,t=f();m(),U(" ",t.getErrorMessage(e.key)," ")}}function NI(i,n){if(i&1&&(l(0,"mat-form-field",7)(1,"mat-label"),p(2),c(),w(3,yI,1,3,"input",11)(4,CI,1,3,"textarea",12)(5,xI,1,3,"input",13)(6,wI,6,5,"ng-container")(7,DI,6,5,"ng-container")(8,kI,3,3,"mat-select",14)(9,EI,3,4,"mat-select",15)(10,TI,3,3,"mat-select",14)(11,II,3,3,"mat-select",14)(12,PI,7,1,"mat-select",16)(13,RI,2,1,"span")(14,FI,2,1,"mat-error"),c()),i&2){let e,t,o=n.$implicit,r=f();m(2),$(o.label),m(),C((e=o.type)===r.fieldType.text?3:e===r.fieldType.textarea?4:e===r.fieldType.number?5:e===r.fieldType.date?6:e===r.fieldType.dateonly?7:e===r.fieldType.select?8:e===r.fieldType.collection?9:e===r.fieldType.relation?10:e===r.fieldType.enum?11:e===r.fieldType.role?12:13),m(11),C((t=r.contentForm.get(o.key))!=null&&t.invalid&&((t=r.contentForm.get(o.key))!=null&&t.touched)?14:-1)}}function LI(i,n){if(i&1&&(l(0,"div",25),p(1),c()),i&2){let e=f().$implicit,t=f();m(),U(" ",t.getErrorMessage(e.key)," ")}}function VI(i,n){if(i&1&&(l(0,"div",8)(1,"mat-checkbox",24),p(2),c(),w(3,LI,2,1,"div",25),c()),i&2){let e,t=n.$implicit,o=f();m(),x("formControlName",t.key)("required",t.required),m(),U(" ",t.label," "),m(),C((e=o.contentForm.get(t.key))!=null&&e.invalid&&((e=o.contentForm.get(t.key))!=null&&e.touched)?3:-1)}}function BI(i,n){i&1&&(l(0,"span",27),p(1,"*"),c())}function jI(i,n){if(i&1){let e=Q();l(0,"div",29)(1,"mat-icon"),p(2,"upload_file_filled"),c(),l(3,"div")(4,"a",32),b("click",function(){I(e);let o=ft(10);return P(o.click())}),p(5,"Link"),c(),p(6," or drag and drop "),c(),l(7,"span",33),p(8,"SVG, PNG, JPG or GIF (max. 3MB)"),c(),l(9,"input",34,1),b("change",function(o){I(e);let r=f().$implicit,a=f();return P(a.onFileChange(o,r.key))}),c()()}}function zI(i,n){if(i&1){let e=Q();l(0,"div",30)(1,"div",35),M(2,"img",36),l(3,"div",37)(4,"div",38),p(5),c(),l(6,"div",39),p(7),c()()(),l(8,"div",40)(9,"button",41),b("click",function(){I(e);let o=f(2);return P(o.resetFile())}),l(10,"mat-icon"),p(11,"delete_outline"),c()(),l(12,"button",42)(13,"mat-icon"),p(14,"check_circle"),c()()()()}if(i&2){let e=f(2);m(2),x("src",e.filePreviewUrl,vr),m(3),$(e.selectedFile==null?null:e.selectedFile.name),m(2),Ka(" ",e.getFileSize(e.selectedFile)," \u2022 ",e.uploadStatus," ")}}function UI(i,n){i&1&&(l(0,"div",31),p(1,"Please select a file"),c())}function HI(i,n){if(i&1&&(l(0,"div",10)(1,"div",26),p(2),w(3,BI,2,0,"span",27),c(),l(4,"div",28),w(5,jI,11,0,"div",29)(6,zI,15,4,"div",30),c(),w(7,UI,2,0,"div",31),c()),i&2){let e=n.$implicit,t=f();m(2),U(" ",e.label," "),m(),C(e.required?3:-1),m(),j("has-file",t.filePreviewUrl)("invalid-file",t.fileFieldTouched&&e.required&&!t.selectedFile),m(),C(t.filePreviewUrl?-1:5),m(),C(t.filePreviewUrl?6:-1),m(),C(t.fileFieldTouched&&e.required&&!t.selectedFile?7:-1)}}function $I(i,n){if(i&1&&M(0,"input",11),i&2){let e=f().$implicit;x("placeholder",e.placeholder||"")("formControlName",e.key)("required",e.required)}}function GI(i,n){if(i&1&&M(0,"textarea",12),i&2){let e=f().$implicit;x("placeholder",e.placeholder||"")("formControlName",e.key)("required",e.required)}}function WI(i,n){if(i&1&&M(0,"input",13),i&2){let e=f().$implicit;x("placeholder",e.placeholder||"")("formControlName",e.key)("required",e.required)}}function YI(i,n){if(i&1&&(nn(0),M(1,"input",17),nn(2,18),M(3,"mat-datepicker-toggle",19),on(),M(4,"mat-datepicker",null,2),on()),i&2){let e=ft(5),t=f().$implicit;m(),x("matDatepicker",e)("placeholder",t.placeholder||"")("formControlName",t.key)("required",t.required),m(2),x("for",e)}}function qI(i,n){if(i&1&&(nn(0),M(1,"input",17),nn(2,18),M(3,"mat-datepicker-toggle",19),on(),M(4,"mat-datepicker",null,2),on()),i&2){let e=ft(5),t=f().$implicit;m(),x("matDatepicker",e)("placeholder",t.placeholder||"")("formControlName",t.key)("required",t.required),m(2),x("for",e)}}function KI(i,n){if(i&1&&(l(0,"mat-option",20),p(1),c()),i&2){let e=n.$implicit,t=f(3);x("value",e),m(),U(" ",t.getRelationDisplayValue(e)," ")}}function ZI(i,n){if(i&1&&(l(0,"mat-select",14),de(1,KI,2,2,"mat-option",20,Qe),c()),i&2){let e=f().$implicit,t=f();x("formControlName",e.key)("compareWith",t.compareObjects),m(),ue(e.relatedItems||Gn(2,Oo))}}function QI(i,n){if(i&1&&(l(0,"mat-option",20),p(1),c()),i&2){let e=n.$implicit,t=f(3);x("value",e),m(),U(" ",t.getRelationDisplayValue(e)," ")}}function XI(i,n){if(i&1&&(l(0,"mat-select",15),de(1,QI,2,2,"mat-option",20,Qe),c()),i&2){let e=f().$implicit,t=f();x("formControlName",e.key)("multiple",e.multiple)("compareWith",t.compareObjects),m(),ue(e.relatedItems||Gn(3,Oo))}}function JI(i,n){if(i&1&&(l(0,"mat-option",20),p(1),c()),i&2){let e=n.$implicit,t=f(3);x("value",e),m(),U(" ",t.getRelationDisplayValue(e)," ")}}function eP(i,n){if(i&1&&(l(0,"mat-select",14),de(1,JI,2,2,"mat-option",20,Qe),c()),i&2){let e=f().$implicit,t=f();x("formControlName",e.key)("compareWith",t.compareObjects),m(),ue(e.relatedItems||Gn(2,Oo))}}function tP(i,n){if(i&1&&(l(0,"mat-option",20),p(1),c()),i&2){let e=n.$implicit,t=f(3);x("value",e),m(),U(" ",t.getRelationDisplayValue(e)," ")}}function iP(i,n){if(i&1&&(l(0,"mat-select",14),de(1,tP,2,2,"mat-option",20,Qe),c()),i&2){let e=f().$implicit,t=f();x("formControlName",e.key)("compareWith",t.compareObjects),m(),ue(e.relatedItems||Gn(2,Oo))}}function nP(i,n){if(i&1&&(l(0,"mat-select",16)(1,"mat-option",21),p(2,"Admin"),c(),l(3,"mat-option",22),p(4,"Maintainer"),c(),l(5,"mat-option",23),p(6,"User"),c()()),i&2){let e=f().$implicit;x("formControlName",e.key)}}function oP(i,n){if(i&1&&(l(0,"mat-error"),p(1),c()),i&2){let e=f().$implicit,t=f();m(),U(" ",t.getErrorMessage(e.key)," ")}}function rP(i,n){if(i&1&&(l(0,"mat-form-field",7)(1,"mat-label"),p(2),c(),w(3,$I,1,3,"input",11)(4,GI,1,3,"textarea",12)(5,WI,1,3,"input",13)(6,YI,6,5,"ng-container")(7,qI,6,5,"ng-container")(8,ZI,3,3,"mat-select",14)(9,XI,3,4,"mat-select",15)(10,eP,3,3,"mat-select",14)(11,iP,3,3,"mat-select",14)(12,nP,7,1,"mat-select",16)(13,oP,2,1,"mat-error"),c()),i&2){let e,t,o=n.$implicit,r=f();m(2),$(o.label),m(),C((e=o.type)===r.fieldType.text?3:e===r.fieldType.textarea?4:e===r.fieldType.number?5:e===r.fieldType.date?6:e===r.fieldType.dateonly?7:e===r.fieldType.select?8:e===r.fieldType.collection?9:e===r.fieldType.relation?10:e===r.fieldType.enum?11:e===r.fieldType.role?12:-1),m(10),C((t=r.contentForm.get(o.key))!=null&&t.invalid&&((t=r.contentForm.get(o.key))!=null&&t.touched)?13:-1)}}function aP(i,n){if(i&1&&(l(0,"div",25),p(1),c()),i&2){let e=f().$implicit,t=f();m(),U(" ",t.getErrorMessage(e.key)," ")}}function sP(i,n){if(i&1&&(l(0,"div",8)(1,"mat-checkbox",24),p(2),c(),w(3,aP,2,1,"div",25),c()),i&2){let e,t=n.$implicit,o=f();m(),x("formControlName",t.key)("required",t.required),m(),U(" ",t.label," "),m(),C((e=o.contentForm.get(t.key))!=null&&e.invalid&&((e=o.contentForm.get(t.key))!=null&&e.touched)?3:-1)}}var em=class i{constructor(n,e,t,o,r){this.fb=n;this.location=e;this.store=t;this.actions$=o;this.locale=r;this.subscriptions=new ie;this.fields=[];this.selectedType="";this.fieldType=cr;this.headers$=this.store.select(va);this.selectedType$=this.store.select(ut);this.currentItem=void 0;this.relationFields=[];this.contentTypes$=this.store.select(ba);this.relatedItems$=this.store.select(Sy);this.subscription=new ie;this.currentItem$=this.store.select(Ty);this.contentFields=[];this.leftColumnFields=[];this.rightColumnFields=[];this.fileFields=[];this.leftColumnCheckboxFields=[];this.rightColumnCheckboxFields=[];this.fileStates={};this.maxFileSize=3*1024*1024;this.contentForm=this.fb.group({})}ngOnDestroy(){this.subscriptions.unsubscribe()}get selectedFile(){let n=this.fileFields[0];return n?this.fileStates[n.key]?.selectedFile??null:null}get filePreviewUrl(){let n=this.fileFields[0];return n?this.fileStates[n.key]?.previewUrl??null:null}get uploadStatus(){let n=this.fileFields[0];return n?this.fileStates[n.key]?.uploadStatus||"Ready to upload":"No file field"}get fileFieldTouched(){let n=this.fileFields[0];return n&&this.fileStates[n?.key]?.touched||!1}getRelationDisplayValue(n){if(!n)return"";let e=["name","title","label","displayName","value","Name","Title","Label","DisplayName","Value"];for(let t of e)if(n[t]!==void 0&&n[t]!==null)return String(n[t]);return n.id?n.id:JSON.stringify(n)}populateFormWithData(n){Object.keys(this.contentForm.controls).forEach(e=>{let t=this.contentFields.find(r=>r.key===e);if(!t)return;let o=n[e];switch(t.type){case 5:case 12:if(o==null){let r=n[`${e}Id`];o=r!=null&&t.relatedItems?.length&&t.relatedItems.find(a=>a.Id===r)||null}break;case 3:Array.isArray(o)&&t.relatedItems?.length&&(o=o.map(r=>t.relatedItems.find(a=>a.Id===r.Id)).filter(r=>r!==void 0));break;case 2:if(o){this.initializeFileState(e);let r=typeof o=="object"?o.Url:o;r&&(this.fileStates[e].previewUrl=r,this.fileStates[e].uploadStatus="Complete",o=r)}break;case 8:o&&(o=new Date(o));break;default:break}o!==void 0&&this.contentForm.get(e)?.setValue(o)})}initializeFileState(n){this.fileStates[n]||(this.fileStates[n]={selectedFile:null,previewUrl:null,uploadStatus:"Ready to upload",touched:!1})}compareObjects(n,e){return!n||!e?n===e:n.Id&&e.Id?n.Id===e.Id:n===e}ngOnInit(){this.subscriptions.add(this.headers$.subscribe(n=>{this.fields=n,this.contentFields=this.fields.filter(a=>a.type!==4).map(a=>{let s={key:a.key,label:a.label,type:a.type,placeholder:`Enter ${a.label}`,required:a.isRequired,validators:a.isRequired?[me.required]:void 0,relatedTo:a.relatedTo,relatedItems:[]};return(a.type===3||a.type===5||a.type===12)&&(s.multiple=a.type===3,a.relatedTo&&this.store.dispatch(ma({selectedType:a.relatedTo}))),a.type===11&&(s.multiple=!0),s}),this.relationFields=this.contentFields.filter(a=>a.type===3||a.type===5||a.type===12),this.fileFields=this.contentFields.filter(a=>a.type===2),this.fileFields.forEach(a=>{this.fileStates[a.key]||(this.fileStates[a.key]={selectedFile:null,previewUrl:null,uploadStatus:"Ready to upload",touched:!1})});let e=this.contentFields.filter(a=>a.type===7),t=this.contentFields.filter(a=>a.type!==2&&a.type!==7),o=Math.ceil(t.length/2),r=Math.ceil(e.length/2);this.leftColumnFields=t.slice(0,o),this.rightColumnFields=t.slice(o),this.leftColumnCheckboxFields=e.slice(0,r),this.rightColumnCheckboxFields=e.slice(r),this.buildForm()})),this.subscription.add(this.relatedItems$.subscribe(n=>{if(n){let e=this.contentFields.some(s=>s.relatedItems&&s.relatedItems.length>0);this.contentFields=this.contentFields.map(s=>(s.type===3||s.type===5||s.type===12)&&s.relatedTo&&n[s.relatedTo]?O(_({},s),{relatedItems:n[s.relatedTo]?.Data||[]}):s),this.relationFields=this.contentFields.filter(s=>s.type===3||s.type===5||s.type===12),this.fileFields=this.contentFields.filter(s=>s.type===2),this.fileFields.forEach(s=>{this.fileStates[s.key]||(this.fileStates[s.key]={selectedFile:null,previewUrl:null,uploadStatus:"Ready to upload",touched:!1})});let t=this.contentFields.filter(s=>s.type===7),o=this.contentFields.filter(s=>s.type!==2&&s.type!==7),r=Math.ceil(o.length/2),a=Math.ceil(t.length/2);this.leftColumnFields=o.slice(0,r),this.rightColumnFields=o.slice(r),this.leftColumnCheckboxFields=t.slice(0,a),this.rightColumnCheckboxFields=t.slice(a),this.buildForm(),this.currentItem!==void 0&&setTimeout(()=>{this.populateFormWithData(this.currentItem)},0)}})),this.subscriptions.add(this.selectedType$.subscribe(n=>this.selectedType=n)),this.subscription.add(this.currentItem$.subscribe(n=>{n!==void 0&&(this.currentItem=n,this.populateFormWithData(n))}))}buildForm(){let n={};this.contentFields.forEach(e=>{let t=e.required?[me.required,...e.validators||[]]:e.validators||[];if(e.type===7)n[e.key]=[!1,t];else if(e.type===3||e.type===5||e.type===12||e.type===11)n[e.key]=[e.multiple?[]:null,t];else if(e.type===6){let o=[...t];o.push(me.pattern("^[0-9]+(\\.[0-9]+)?$")),n[e.key]=[0,o]}else e.type===8?n[e.key]=[null,t]:n[e.key]=["",t]}),this.contentForm=this.fb.group(n)}onFileChange(n,e){if(this.fileStates[e]||(this.fileStates[e]={selectedFile:null,previewUrl:null,uploadStatus:"Ready to upload",touched:!1}),this.fileStates[e].touched=!0,n.target.files&&n.target.files.length){let t=n.target.files[0];if(t.size>this.maxFileSize){this.fileStates[e].uploadStatus="File too large (max 3MB)";return}if(this.fileStates[e].selectedFile=t,this.fileStates[e].uploadStatus="Ready to upload",t.type.startsWith("image/")){let o=new FileReader;o.onload=()=>{this.fileStates[e].previewUrl=o.result},o.readAsDataURL(t)}this.contentForm.get(e)?.setValue("pending-upload")}}resetFile(){this.fileFields.forEach(n=>{this.fileStates[n.key]&&(this.fileStates[n.key]={selectedFile:null,previewUrl:null,uploadStatus:"Ready to upload",touched:!1}),this.contentForm.get(n.key)?.setValue(null)})}getFileSize(n){return n?n.size<1024?`${n.size} B`:n.size<1024*1024?`${(n.size/1024).toFixed(0)} KB`:`${(n.size/(1024*1024)).toFixed(1)} MB`:"0 KB"}getErrorMessage(n){let e=this.contentForm.get(n);return!e||!e.errors?"":e.errors.required?"This field is required":e.errors.maxlength?`Maximum length is ${e.errors.maxlength.requiredLength} characters`:e.errors.pattern?"Invalid format":"Invalid input"}isFormValid(){let n=this.contentForm.valid,e=this.fileFields.filter(t=>t.required).every(t=>{let o=this.fileStates[t.key];return o&&(o.selectedFile!==null||o.previewUrl!==null)});return n&&e}resetForm(){this.contentForm.reset(),this.resetFile()}onSubmit(){if(Object.keys(this.contentForm.controls).forEach(n=>{this.contentForm.get(n)?.markAsTouched()}),this.fileFields.forEach(n=>{this.fileStates[n.key]&&(this.fileStates[n.key].touched=!0)}),this.isFormValid()){let n={};Object.keys(this.contentForm.value).forEach(e=>{let t=this.contentForm.value[e],o=this.contentFields.find(r=>r.key===e);if(o?.type!==2)if(o?.type===5||o?.type===12){if(t)if(!o.multiple&&t.Id){let r=`${e}Id`;n[r]=t.Id}else if(!o.multiple&&this.isEnumLikeObject(t)){let r=this.extractEnumValue(t);r!==null?n[e]=r:n[e]=t}else if(o.multiple&&Array.isArray(t))n[e]=t.map(r=>r.Id?{Id:r.Id}:r);else if(t.Id){let r=`${e}Id`;n[r]=t.Id}else n[e]=t}else o?.type===3&&Array.isArray(t)?n[e]=t:o?.type===11?n[e]=Array.isArray(t)?t:t?[t]:[]:o?.type===8&&t?t instanceof Date?n[e]=t.toISOString():n[e]=t:o?.type===9&&t?n[e]=Jm(t,"yyyy-MM-dd",this.locale):n[e]=t}),this.submitToBackend(n)}}isEnumLikeObject(n){if(!n||typeof n!="object"||Array.isArray(n)||n.Id!==void 0)return!1;let e=Object.keys(n);return e.length!==1?!1:typeof n[e[0]]=="number"}extractEnumValue(n){if(!this.isEnumLikeObject(n))return null;let e=Object.keys(n);return n[e[0]]}submitToBackend(n){this.currentItem!==void 0?this.store.dispatch(_a({id:this.currentItem.Id,formData:n,contentType:this.selectedType})):this.store.dispatch(ga({formData:n,contentType:this.selectedType})),this.subscriptions.add(this.actions$.pipe(Ee(dr),_e(1)).subscribe(e=>{let t=e.id;t&&this.selectedFile?this.uploadFileIfExists(t):this.finishSubmission()}))}uploadFileIfExists(n){if(this.selectedFile&&this.fileFields.length>0){let e=this.fileFields[0].key;this.store.dispatch(uu({id:n,file:this.selectedFile,fieldName:e,contentType:this.selectedType})),this.subscription.add(this.actions$.pipe(Ee(mu),_e(1)).subscribe(t=>{this.finishSubmission()}))}else this.finishSubmission()}finishSubmission(){this.store.dispatch(pa({currentItem:void 0})),this.resetForm(),this.location.back()}static{this.\u0275fac=function(e){return new(e||i)(k(mi),k(ri),k(he),k(Hn),k(Qa))}}static{this.\u0275cmp=E({type:i,selectors:[["app-new-record-form"]],decls:15,vars:1,consts:[["leftDatePicker",""],["fileInput",""],["rightDatePicker",""],[1,"form-container","scrollable-list"],[3,"ngSubmit","formGroup"],[1,"form-grid"],[1,"form-column","left-column"],["appearance","outline"],[1,"checkbox-container"],[1,"form-column","right-column"],[1,"file-upload-container"],["matInput","",3,"placeholder","formControlName","required"],["matInput","","rows","5",3,"placeholder","formControlName","required"],["matInput","","type","number","min","0","step","any",3,"placeholder","formControlName","required"],[3,"formControlName","compareWith"],[3,"formControlName","multiple","compareWith"],["multiple","",3,"formControlName"],["matInput","",3,"matDatepicker","placeholder","formControlName","required"],["matSuffix",""],[3,"for"],[3,"value"],["value","Admin"],["value","Maintainer"],["value","User"],[3,"formControlName","required"],[1,"mat-error","checkbox-error"],[1,"file-label"],[1,"required-field"],[1,"file-upload-area"],[1,"upload-instructions"],[1,"file-preview"],[1,"file-error-message"],[1,"upload-link",3,"click"],[1,"file-types"],["type","file","accept","image/svg+xml,image/png,image/jpeg,image/gif",1,"file-input",3,"change"],[1,"file-preview-content"],["alt","Preview",1,"preview-thumbnail",3,"src"],[1,"file-info"],[1,"file-name"],[1,"file-meta"],[1,"file-actions"],["type","button","mat-icon-button","",1,"remove-file",3,"click"],["type","button","mat-icon-button","",1,"check-file"]],template:function(e,t){e&1&&(l(0,"div",3)(1,"form",4),b("ngSubmit",function(){return t.onSubmit()}),l(2,"div",5)(3,"div",6),de(4,NI,15,3,"mat-form-field",7,Qe),de(6,VI,4,4,"div",8,Qe),c(),l(8,"div",9),de(9,HI,8,9,"div",10,Qe),de(11,rP,14,3,"mat-form-field",7,Qe),de(13,sP,4,4,"div",8,Qe),c()()()()),e&2&&(m(),x("formGroup",t.contentForm),m(3),ue(t.leftColumnFields),m(2),ue(t.leftColumnCheckboxFields),m(3),ue(t.fileFields),m(2),ue(t.rightColumnFields),m(2),ue(t.rightColumnCheckboxFields))},dependencies:[It,fn,Xt,hn,yh,Gi,Vn,fe,Ce,ke,Ze,pi,ui,Mt,or,Pt,di,Rh,Ph,hi,bt,ki,ko,kl,Ml,Ki,qi,UC,zC,Xu,Af,kC],styles:[".form-container[_ngcontent-%COMP%]{margin:0 auto;padding:20px;color:#fff;background-color:#1e1e1e;border-radius:4px}.form-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:20px}@media (max-width: 768px){.form-grid[_ngcontent-%COMP%]{grid-template-columns:1fr}}.form-column[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:16px}.form-column.left-column[_ngcontent-%COMP%]{grid-column:1}.form-column.right-column[_ngcontent-%COMP%]{grid-column:2}@media (max-width: 768px){.form-column.right-column[_ngcontent-%COMP%]{grid-column:1}}.file-upload-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;margin-bottom:16px}.file-upload-container[_ngcontent-%COMP%] .file-label[_ngcontent-%COMP%]{font-size:14px;font-weight:500;margin-bottom:8px;color:#ffffffb3}.file-upload-container[_ngcontent-%COMP%] .file-label[_ngcontent-%COMP%] .required-field[_ngcontent-%COMP%]{color:#ef5350;margin-left:2px}.file-upload-container[_ngcontent-%COMP%] .file-upload-area[_ngcontent-%COMP%]{border:2px dashed rgba(255,255,255,.23);border-radius:4px;position:relative;background-color:#ffffff0d;overflow:hidden;display:flex;transition:all .2s ease}.file-upload-container[_ngcontent-%COMP%] .file-upload-area[_ngcontent-%COMP%]:hover{border-color:#fff6}.file-upload-container[_ngcontent-%COMP%] .file-upload-area.has-file[_ngcontent-%COMP%]{border:1px solid rgba(255,255,255,.2);min-height:auto;background-color:#ffffff0d}.file-upload-container[_ngcontent-%COMP%] .file-upload-area.invalid-file[_ngcontent-%COMP%]{border-color:#ef5350}.file-upload-container[_ngcontent-%COMP%] .upload-instructions[_ngcontent-%COMP%]{text-align:center;color:#ffffffb3;padding:30px 20px;display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:150px;width:100%}.file-upload-container[_ngcontent-%COMP%] .upload-instructions[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:36px;height:36px;width:36px;margin-bottom:16px;color:#ac99ea}.file-upload-container[_ngcontent-%COMP%] .upload-instructions[_ngcontent-%COMP%] .upload-link[_ngcontent-%COMP%]{color:#ac99ea;cursor:pointer;text-decoration:underline}.file-upload-container[_ngcontent-%COMP%] .upload-instructions[_ngcontent-%COMP%] .file-types[_ngcontent-%COMP%]{font-size:12px;display:block;margin-top:8px;opacity:.5}.file-upload-container[_ngcontent-%COMP%] .file-input[_ngcontent-%COMP%]{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.file-upload-container[_ngcontent-%COMP%] .file-preview[_ngcontent-%COMP%]{width:100%;display:flex;justify-content:space-between;align-items:center;padding:8px 12px;flex-grow:1}.file-upload-container[_ngcontent-%COMP%] .file-preview[_ngcontent-%COMP%] .file-preview-content[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.file-upload-container[_ngcontent-%COMP%] .file-preview[_ngcontent-%COMP%] .file-preview-content[_ngcontent-%COMP%] .preview-thumbnail[_ngcontent-%COMP%]{width:40px;height:40px;border-radius:4px;object-fit:cover}.file-upload-container[_ngcontent-%COMP%] .file-preview[_ngcontent-%COMP%] .file-preview-content[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%]{display:flex;flex-direction:column}.file-upload-container[_ngcontent-%COMP%] .file-preview[_ngcontent-%COMP%] .file-preview-content[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%] .file-name[_ngcontent-%COMP%]{font-size:14px;color:#ffffffde;margin-bottom:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:200px}.file-upload-container[_ngcontent-%COMP%] .file-preview[_ngcontent-%COMP%] .file-preview-content[_ngcontent-%COMP%] .file-info[_ngcontent-%COMP%] .file-meta[_ngcontent-%COMP%]{font-size:12px;color:#fff9}.file-upload-container[_ngcontent-%COMP%] .file-preview[_ngcontent-%COMP%] .file-actions[_ngcontent-%COMP%]{display:flex;align-items:center}.file-upload-container[_ngcontent-%COMP%] .file-preview[_ngcontent-%COMP%] .file-actions[_ngcontent-%COMP%] .remove-file[_ngcontent-%COMP%]{color:#ffffff8f;height:24px;width:24px;line-height:24px;background-color:transparent;border:none;cursor:pointer;transition:color .2s ease}.file-upload-container[_ngcontent-%COMP%] .file-preview[_ngcontent-%COMP%] .file-actions[_ngcontent-%COMP%] .remove-file[_ngcontent-%COMP%]:hover{color:#ef5350}.file-upload-container[_ngcontent-%COMP%] .file-preview[_ngcontent-%COMP%] .file-actions[_ngcontent-%COMP%] .remove-file[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:20px;height:20px;width:20px}.file-upload-container[_ngcontent-%COMP%] .file-preview[_ngcontent-%COMP%] .file-actions[_ngcontent-%COMP%] .check-file[_ngcontent-%COMP%]{color:#66bb6a;height:24px;width:24px;line-height:24px;background-color:transparent;border:none}.file-upload-container[_ngcontent-%COMP%] .file-preview[_ngcontent-%COMP%] .file-actions[_ngcontent-%COMP%] .check-file[_ngcontent-%COMP%] .mat-icon[_ngcontent-%COMP%]{font-size:20px;height:20px;width:20px}.file-upload-container[_ngcontent-%COMP%] .file-error-message[_ngcontent-%COMP%]{color:#ef5350;font-size:12px;margin-top:4px}.scrollable-list[_ngcontent-%COMP%]{height:63vh;overflow-y:auto;scrollbar-width:thin;scrollbar-color:rgba(255,255,255,.3) rgba(255,255,255,.1)}.scrollable-list[_ngcontent-%COMP%]::-webkit-scrollbar{width:8px}.scrollable-list[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#ffffff1a;border-radius:4px}.scrollable-list[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background-color:#ffffff4d;border-radius:4px}.form-actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px;margin-top:20px}.form-actions[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]{color:#ffffffb3}[_nghost-%COMP%]{color:#fff;width:100%}.checkbox-container[_ngcontent-%COMP%]{display:flex;align-items:flex-start;margin-bottom:16px}.checkbox-container[_ngcontent-%COMP%] mat-checkbox[_ngcontent-%COMP%]{margin-left:4px}.checkbox-container[_ngcontent-%COMP%] .checkbox-error[_ngcontent-%COMP%]{margin-left:8px;font-size:12px}.form-column[_ngcontent-%COMP%] .mat-form-field[_ngcontent-%COMP%], .form-column[_ngcontent-%COMP%] .checkbox-container[_ngcontent-%COMP%]{width:100%}"]})}};function lP(i,n){i&1&&(l(0,"div",10),M(1,"mat-spinner",13),l(2,"span"),p(3,"Saving content..."),c()())}function cP(i,n){if(i&1){let e=Q();l(0,"button",14),b("click",function(){I(e),f();let o=ft(21);return P(o.onSubmit())}),p(1," Save your content "),c()}if(i&2){f();let e=ft(21);x("disabled",!e.isFormValid())}}function dP(i,n){if(i&1){let e=Q();l(0,"div",12)(1,"div",15),b("click",function(o){return I(e),P(o.stopPropagation())}),l(2,"app-menu",16),b("edit",function(o){I(e);let r=f();return P(r.onEdit(o))})("delete",function(o){I(e);let r=f();return P(r.onDelete(o))}),c()()()}if(i&2){let e=f();m(),pt("top",e.menuPosition.top,"px")("left",e.menuPosition.left,"px")}}var tm=class i{constructor(n,e){this.location=n;this.store=e;this.disabled=!0;this.dateCreated="yesterday";this.typeName="Type Name";this.showMenu=!1;this.menuPosition={top:0,left:0};this.subscription=new ie;this.selectedType$=this.store.select(ut);this.isSaving$=this.store.select(ya)}ngOnInit(){this.subscription.add(this.selectedType$.subscribe(n=>this.typeName=n))}ngOnDestroy(){this.subscription.unsubscribe()}goBack(){this.location.back()}toggleMenu(n){if(n.stopPropagation(),this.showMenu)this.showMenu=!1;else{let e=n.currentTarget.getBoundingClientRect();this.menuPosition={top:e.bottom+window.scrollY,left:e.right-150+window.scrollX},this.showMenu=!0}}onDocumentClick(){this.showMenu&&this.closeMenu()}onEscapePress(){this.showMenu&&this.closeMenu()}onEdit(n){console.log("Edit item:",n),this.closeMenu()}onDelete(n){console.log("Delete item:",n),this.closeMenu()}closeMenu(){this.showMenu=!1}onFormValidityChange(n){this.disabled=!n}static{this.\u0275fac=function(e){return new(e||i)(k(ri),k(he))}}static{this.\u0275cmp=E({type:i,selectors:[["app-new-entry"]],hostBindings:function(e,t){e&1&&b("click",function(){return t.onDocumentClick()},!1,Ya)("keydown.escape",function(){return t.onEscapePress()},!1,Ya)},decls:28,vars:6,consts:[["newRecordForm",""],[1,"layout"],["headerText","Content Manager"],[1,"container"],[1,"back-button",3,"click"],[1,"header"],[1,"title-block"],["mat-icon-button","","aria-label","Settings menu",1,"settings-button",3,"click"],[1,"content"],[1,"footer"],[1,"saving-content"],["mat-button","",1,"save-button",3,"disabled"],[1,"floating-menu-container"],["diameter","24"],["mat-button","",1,"save-button",3,"click","disabled"],[1,"floating-menu",3,"click"],["editText","Edit the model","deleteText","Delete entry",3,"edit","delete"]],template:function(e,t){if(e&1){let o=Q();l(0,"div",1),M(1,"app-sidebar",2),l(2,"div",3)(3,"div",4),b("click",function(){return I(o),P(t.goBack())}),l(4,"mat-icon"),p(5,"arrow_back"),c(),l(6,"span"),p(7,"Back"),c()(),l(8,"div",5)(9,"div",6)(10,"h1"),p(11),c(),l(12,"p"),p(13," created "),l(14,"b"),p(15),c()()(),l(16,"button",7),b("click",function(a){return I(o),P(t.toggleMenu(a))}),l(17,"mat-icon"),p(18,"more_vert"),c()()(),l(19,"div",8),M(20,"app-new-record-form",null,0),c(),l(22,"div",9),M(23,"hr"),w(24,lP,4,0,"div",10),gt(25,"async"),w(26,cP,2,1,"button",11),c()()(),w(27,dP,3,4,"div",12)}e&2&&(m(11),$(t.typeName),m(4),$(t.dateCreated),m(9),C(Ot(25,4,t.isSaving$)?24:26),m(3),C(t.showMenu?27:-1))},dependencies:[So,fe,Ce,ke,Xe,Ze,em,ka,Al,Ae,Ci],styles:["[_nghost-%COMP%]{display:flex;flex-grow:1}.layout[_ngcontent-%COMP%]{display:flex;height:100vh;flex-grow:1}.container[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;padding:24px;background-color:#121212;color:#fff}.footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;flex-direction:column;margin-top:auto}.footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{align-self:flex-end}.save-button[_ngcontent-%COMP%]{border-radius:4px;background-color:#ac99ea;margin-right:8px;margin-top:10px;color:#212121!important;transition:background-color .3s ease}.save-button[_ngcontent-%COMP%]:hover:not(:disabled){background-color:#8a6fe1}.save-button[_ngcontent-%COMP%]:disabled, .save-button[disabled][_ngcontent-%COMP%]{color:#ffffff61!important;background-color:#ffffff1f}.content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background-color:#1e1e1e}.content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:20px}.content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 16px;font-size:14px;color:#ffffffb3}.settings-button[_ngcontent-%COMP%]{color:#ac99ea;border:1px solid rgba(213,204,245,.5);border-radius:4px}.title-block[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;font-size:24px}.title-block[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:4px 0 0;font-size:14px;color:#ffffffb3}.header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.back-button[_ngcontent-%COMP%]{height:40px;display:flex;color:#ac99ea;cursor:pointer;align-items:center}.back-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px}.back-button[_ngcontent-%COMP%]:hover{background:#fff3;cursor:pointer}.floating-menu-container[_ngcontent-%COMP%]{position:fixed;inset:0;z-index:1000;pointer-events:none}.floating-menu[_ngcontent-%COMP%]{position:absolute;z-index:1001;background-color:#2e2e2e;border-radius:4px;box-shadow:0 2px 10px #0003;min-width:150px;pointer-events:auto}.saving-content[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-end;margin-top:10px;margin-right:8px}.saving-content[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{margin-right:12px}.saving-content[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{color:#ffffffb3;font-size:14px}"]})}};var uP=(i,n)=>n.name;function mP(i,n){if(i&1){let e=Q();l(0,"button",13),b("click",function(){I(e);let o=f();return P(o.toggleJsonPreview())}),l(1,"mat-icon"),p(2),c(),p(3),c()}if(i&2){let e=f();m(2),$(e.showJsonPreview?"visibility_off":"visibility"),m(),U(" ",e.showJsonPreview?"Hide":"View"," JSON ")}}function pP(i,n){if(i&1&&(l(0,"div",19)(1,"pre"),p(2),c()()),i&2){let e=f(2);m(2),$(e.getPrettyJson())}}function hP(i,n){i&1&&(l(0,"mat-icon",33),p(1,"check_circle"),c())}function fP(i,n){i&1&&(l(0,"mat-icon",34),p(1,"remove_circle_outline"),c())}function gP(i,n){if(i&1&&(l(0,"div",28)(1,"div",29)(2,"mat-icon",30),p(3),c(),l(4,"span"),p(5),c()(),l(6,"div",31),p(7),c(),l(8,"div",32),w(9,hP,2,0,"mat-icon",33)(10,fP,2,0,"mat-icon",34),c()()),i&2){let e=n.$implicit,t=f(3);m(3),$(t.getAttributeIcon(e.type)),m(2),$(e.name),m(2),$(t.getAttributeTypeLabel(e)),m(2),C(e.required?9:10)}}function _P(i,n){if(i&1&&(l(0,"div",20)(1,"div",23)(2,"div",24),p(3,"Field Name"),c(),l(4,"div",25),p(5,"Type"),c(),l(6,"div",26),p(7,"Required"),c()(),l(8,"div",27),de(9,gP,11,4,"div",28,uP),c()()),i&2){let e=f(2);m(9),ue(e.attributeList)}}function bP(i,n){if(i&1){let e=Q();l(0,"div",12)(1,"div",14)(2,"h2"),p(3),c(),l(4,"p",15)(5,"span",16),p(6),c(),l(7,"span",17),p(8),c()(),l(9,"p",18),p(10),c()(),w(11,pP,3,1,"div",19)(12,_P,11,0,"div",20),l(13,"div",21)(14,"button",22),b("click",function(){I(e);let o=f();return P(o.saveSchema())}),p(15,"Save Schema"),c()()()}if(i&2){let e=f();m(3),U("",e.parsedSchema.info.displayName," Schema"),m(3),$(e.parsedSchema.kind),m(2),$(e.parsedSchema.uid),m(2),$(e.parsedSchema.info.description),m(),C(e.showJsonPreview?11:12)}}var im=class i{constructor(){this.jsonInput="";this.isValidJson=!0;this.validationMessage="";this.parsedSchema=null;this.attributeList=[];this.showJsonPreview=!1;this.sampleSchema=`{ - "collectionName": "articles", - "info": { - "singularName": "article", - "pluralName": "articles", - "displayName": "Article", - "description": "Create your blog content" - }, - "options": { - "draftAndPublish": true - }, - "pluginOptions": {}, - "attributes": { - "title": { - "type": "string" - }, - "description": { - "type": "text", - "maxLength": 80 - }, - "slug": { - "type": "uid", - "targetField": "title" - }, - "cover": { - "type": "media", - "multiple": false, - "required": false, - "allowedTypes": ["images", "files", "videos"] - }, - "author": { - "type": "relation", - "relation": "manyToOne", - "target": "api::author.author", - "inversedBy": "articles" - }, - "category": { - "type": "relation", - "relation": "manyToOne", - "target": "api::category.category", - "inversedBy": "articles" - }, - "blocks": { - "type": "dynamiczone", - "components": ["shared.media", "shared.quote", "shared.rich-text", "shared.slider"] - } - }, - "kind": "collectionType", - "modelType": "contentType", - "modelName": "article", - "uid": "api::article.article", - "globalId": "Article" - }`}parseJsonInput(){if(!this.jsonInput.trim()){this.isValidJson=!1,this.validationMessage="Please enter a JSON schema";return}try{this.parsedSchema=JSON.parse(this.jsonInput),this.isValidJson=!0,this.validationMessage="Schema parsed successfully",this.processSchema()}catch(n){this.isValidJson=!1,this.validationMessage=`Invalid JSON: ${n.message}`,this.parsedSchema=null,this.attributeList=[]}}processSchema(){if(!this.parsedSchema)return;this.attributeList=[];let n=this.parsedSchema.attributes;for(let e in n)if(n.hasOwnProperty(e)){let t=n[e];this.attributeList.push({name:e,type:t.type,description:t.description,required:t.required,multiple:t.multiple,allowedTypes:t.allowedTypes,components:t.components,targetField:t.targetField,maxLength:t.maxLength,target:t.target,relation:t.relation,inversedBy:t.inversedBy})}}toggleJsonPreview(){this.showJsonPreview=!this.showJsonPreview}getPrettyJson(){return this.parsedSchema?JSON.stringify(this.parsedSchema,null,2):""}getAttributeIcon(n){switch(n){case"string":return"text_fields";case"text":return"subject";case"media":return"image";case"relation":return"link";case"uid":return"key";case"datetime":return"schedule";case"dynamiczone":return"widgets";case"boolean":return"check_box";case"email":return"email";case"password":return"password";case"integer":case"float":case"decimal":case"number":return"calculate";case"enumeration":return"list";case"json":return"code";default:return"data_object"}}getAttributeTypeLabel(n){return n.type==="relation"&&n.relation?`${n.relation} relation to ${n.target?.split(".").pop()}`:n.type==="media"&&n.allowedTypes?.length?`Media (${n.allowedTypes.join(", ")})`:n.type==="dynamiczone"&&n.components?.length?`Dynamic Zone (${n.components.length} components)`:n.type==="text"&&n.maxLength?`Text (max ${n.maxLength} chars)`:n.type==="uid"&&n.targetField?`UID from ${n.targetField}`:n.type}saveSchema(){alert("Schema saved successfully!")}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275cmp=E({type:i,selectors:[["app-schema-importer"]],decls:20,vars:12,consts:[[1,"schema-importer-container"],[1,"header"],[1,"description"],[1,"container"],[1,"input-section"],[1,"json-input-container"],[1,"input-label"],[1,"action-button"],["placeholder",'{"collectionName": "articles", "info": {"singularName": "article", ...}}',1,"json-textarea",3,"ngModelChange","change","ngModel"],[1,"validation-message"],[1,"actions"],[1,"primary-button",3,"click"],[1,"schema-preview"],[1,"action-button",3,"click"],[1,"preview-header"],[1,"collection-info"],[1,"collection-type"],[1,"collection-uid"],[1,"collection-description"],[1,"json-preview"],[1,"attributes-list"],[1,"schema-actions"],[1,"primary-button","save-button",3,"click"],[1,"attribute-header"],[1,"attribute-name-header"],[1,"attribute-type-header"],[1,"attribute-required-header"],[1,"attribute-container"],[1,"attribute-item"],[1,"attribute-name"],[1,"attribute-icon"],[1,"attribute-type"],[1,"attribute-required"],[1,"required-icon"],[1,"not-required-icon"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"div",1)(2,"h1"),p(3,"Schema Importer"),c(),l(4,"p",2),p(5,"Import your content schema from JSON"),c()(),l(6,"div",3)(7,"div",4)(8,"div",5)(9,"div",6)(10,"span"),p(11,"Paste your JSON schema below"),c(),w(12,mP,4,2,"button",7),c(),l(13,"textarea",8),kn("ngModelChange",function(r){return Mn(t.jsonInput,r)||(t.jsonInput=r),r}),b("change",function(){return t.parseJsonInput()}),c(),l(14,"div",9),p(15),c(),l(16,"div",10)(17,"button",11),b("click",function(){return t.parseJsonInput()}),p(18,"Parse Schema"),c()()()(),w(19,bP,16,5,"div",12),c()()),e&2&&(m(12),C(t.parsedSchema?12:-1),m(),j("error",!t.isValidJson&&t.jsonInput)("success",t.isValidJson&&t.parsedSchema),Dn("ngModel",t.jsonInput),m(),j("error",!t.isValidJson)("success",t.isValidJson&&t.parsedSchema),m(),U(" ",t.validationMessage," "),m(4),C(t.parsedSchema?19:-1))},dependencies:[pi,Mt,Pt,nr,ke,fe,Ce,Ki,Ma],styles:["[_nghost-%COMP%]{height:100%;width:100%}.schema-importer-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%;padding:24px;color:#fff;overflow:hidden}.header[_ngcontent-%COMP%]{margin-bottom:24px;flex-shrink:0}.header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:24px;font-weight:500;margin-bottom:8px}.header[_ngcontent-%COMP%] .description[_ngcontent-%COMP%]{color:#fff9}.container[_ngcontent-%COMP%]{display:flex;gap:24px;flex:1;min-height:0;overflow:hidden}.input-section[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;min-width:0;max-height:calc(100vh - 150px);overflow:hidden}.json-input-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1}.json-input-container[_ngcontent-%COMP%] .input-label[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;color:#ffffffde}.json-input-container[_ngcontent-%COMP%] .json-textarea[_ngcontent-%COMP%]{min-height:200px;max-height:calc(100vh - 300px);background-color:#1e1e1e;color:#fff;border:1px solid rgba(255,255,255,.12);border-radius:4px;padding:16px;font-family:Roboto Mono,monospace;font-size:14px;resize:vertical;overflow-y:auto}.json-input-container[_ngcontent-%COMP%] .json-textarea[_ngcontent-%COMP%]:focus{outline:none;border-color:#ac99ea}.json-input-container[_ngcontent-%COMP%] .json-textarea.error[_ngcontent-%COMP%]{border-color:#ef5350}.json-input-container[_ngcontent-%COMP%] .json-textarea.success[_ngcontent-%COMP%]{border-color:#66bb6a}.json-input-container[_ngcontent-%COMP%] .validation-message[_ngcontent-%COMP%]{margin-top:8px;font-size:14px;min-height:20px}.json-input-container[_ngcontent-%COMP%] .validation-message.error[_ngcontent-%COMP%]{color:#ef5350}.json-input-container[_ngcontent-%COMP%] .validation-message.success[_ngcontent-%COMP%]{color:#66bb6a}.json-input-container[_ngcontent-%COMP%] .actions[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;margin-top:16px}.primary-button[_ngcontent-%COMP%]{background-color:#ac99ea;color:#212121;border:none;border-radius:4px;padding:10px 16px;font-weight:500;cursor:pointer;transition:background-color .2s ease}.primary-button[_ngcontent-%COMP%]:hover{background-color:#8a6fe1}.primary-button[_ngcontent-%COMP%]:focus{outline:2px solid rgba(172,153,234,.5);outline-offset:2px}.action-button[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;background:transparent;color:#ac99ea;border:1px solid #ac99ea;border-radius:4px;padding:6px 12px;font-size:14px;cursor:pointer;transition:all .2s ease}.action-button[_ngcontent-%COMP%]:hover{background-color:#ac99ea1a}.action-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:18px;height:18px;width:18px;display:flex;align-items:center;justify-content:center}.schema-preview[_ngcontent-%COMP%]{border-radius:8px;background-color:#1e1e1e;flex:1;min-width:0;max-height:calc(100vh - 150px);display:flex;flex-direction:column;overflow:hidden;transition:all .3s ease}.schema-preview[_ngcontent-%COMP%] .preview-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(255,255,255,.1);flex-shrink:0}.schema-preview[_ngcontent-%COMP%] .preview-header[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:20px;font-weight:500;margin-bottom:8px}.schema-preview[_ngcontent-%COMP%] .preview-header[_ngcontent-%COMP%] .collection-info[_ngcontent-%COMP%]{display:flex;gap:16px;font-size:14px;color:#fff9;margin-bottom:8px}.schema-preview[_ngcontent-%COMP%] .preview-header[_ngcontent-%COMP%] .collection-info[_ngcontent-%COMP%] .collection-type[_ngcontent-%COMP%]{color:#ac99ea;background-color:#ac99ea1a;padding:2px 8px;border-radius:12px}.schema-preview[_ngcontent-%COMP%] .preview-header[_ngcontent-%COMP%] .collection-info[_ngcontent-%COMP%] .collection-uid[_ngcontent-%COMP%]{font-family:Roboto Mono,monospace;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.schema-preview[_ngcontent-%COMP%] .preview-header[_ngcontent-%COMP%] .collection-description[_ngcontent-%COMP%]{color:#fffc;font-size:14px}.schema-preview[_ngcontent-%COMP%] .json-preview[_ngcontent-%COMP%]{padding:16px;background-color:#0003;overflow-y:auto;flex:1}.schema-preview[_ngcontent-%COMP%] .json-preview[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{font-family:Roboto Mono,monospace;font-size:14px;color:#fffc;margin:0;white-space:pre-wrap}.schema-preview[_ngcontent-%COMP%] .attributes-list[_ngcontent-%COMP%]{display:flex;flex-direction:column;flex:1;overflow:hidden}.schema-preview[_ngcontent-%COMP%] .attributes-list[_ngcontent-%COMP%] .attribute-header[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr 100px;padding:16px 8px;font-weight:500;color:#ffffffb3;border-bottom:1px solid rgba(255,255,255,.1);position:sticky;top:0;background-color:#1e1e1e;z-index:1}.schema-preview[_ngcontent-%COMP%] .attributes-list[_ngcontent-%COMP%] .attribute-container[_ngcontent-%COMP%]{flex:1;overflow-y:auto;padding:0 16px}.schema-preview[_ngcontent-%COMP%] .attributes-list[_ngcontent-%COMP%] .attribute-item[_ngcontent-%COMP%]{display:grid;grid-template-columns:1fr 1fr 100px;padding:12px 8px;border-bottom:1px solid rgba(255,255,255,.05);transition:background-color .2s ease}.schema-preview[_ngcontent-%COMP%] .attributes-list[_ngcontent-%COMP%] .attribute-item[_ngcontent-%COMP%]:hover{background-color:#ffffff0d}.schema-preview[_ngcontent-%COMP%] .attributes-list[_ngcontent-%COMP%] .attribute-item[_ngcontent-%COMP%] .attribute-name[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.schema-preview[_ngcontent-%COMP%] .attributes-list[_ngcontent-%COMP%] .attribute-item[_ngcontent-%COMP%] .attribute-name[_ngcontent-%COMP%] .attribute-icon[_ngcontent-%COMP%]{color:#ac99ea;font-size:20px;flex-shrink:0}.schema-preview[_ngcontent-%COMP%] .attributes-list[_ngcontent-%COMP%] .attribute-item[_ngcontent-%COMP%] .attribute-name[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.schema-preview[_ngcontent-%COMP%] .attributes-list[_ngcontent-%COMP%] .attribute-item[_ngcontent-%COMP%] .attribute-type[_ngcontent-%COMP%]{color:#ffffffb3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding-right:8px}.schema-preview[_ngcontent-%COMP%] .attributes-list[_ngcontent-%COMP%] .attribute-item[_ngcontent-%COMP%] .attribute-required[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center}.schema-preview[_ngcontent-%COMP%] .attributes-list[_ngcontent-%COMP%] .attribute-item[_ngcontent-%COMP%] .attribute-required[_ngcontent-%COMP%] .required-icon[_ngcontent-%COMP%]{color:#66bb6a}.schema-preview[_ngcontent-%COMP%] .attributes-list[_ngcontent-%COMP%] .attribute-item[_ngcontent-%COMP%] .attribute-required[_ngcontent-%COMP%] .not-required-icon[_ngcontent-%COMP%]{color:#ffffff4d}.schema-preview[_ngcontent-%COMP%] .schema-actions[_ngcontent-%COMP%]{padding:16px;display:flex;justify-content:flex-end;border-top:1px solid rgba(255,255,255,.1);flex-shrink:0}.schema-preview[_ngcontent-%COMP%] .schema-actions[_ngcontent-%COMP%] .save-button[_ngcontent-%COMP%]{padding:10px 24px}"]})}};var vP=["*"];var yP=[[["","mat-card-avatar",""],["","matCardAvatar",""]],[["mat-card-title"],["mat-card-subtitle"],["","mat-card-title",""],["","mat-card-subtitle",""],["","matCardTitle",""],["","matCardSubtitle",""]],"*"],CP=["[mat-card-avatar], [matCardAvatar]",`mat-card-title, mat-card-subtitle, - [mat-card-title], [mat-card-subtitle], - [matCardTitle], [matCardSubtitle]`,"*"],xP=new v("MAT_CARD_CONFIG"),qC=(()=>{class i{appearance;constructor(){let e=d(xP,{optional:!0});this.appearance=e?.appearance||"raised"}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-card"]],hostAttrs:[1,"mat-mdc-card","mdc-card"],hostVars:4,hostBindings:function(t,o){t&2&&j("mat-mdc-card-outlined",o.appearance==="outlined")("mdc-card--outlined",o.appearance==="outlined")},inputs:{appearance:"appearance"},exportAs:["matCard"],ngContentSelectors:vP,decls:1,vars:0,template:function(t,o){t&1&&(Te(),ae(0))},styles:[`.mat-mdc-card{display:flex;flex-direction:column;box-sizing:border-box;position:relative;border-style:solid;border-width:0;background-color:var(--mdc-elevated-card-container-color, var(--mat-sys-surface-container-low));border-color:var(--mdc-elevated-card-container-color, var(--mat-sys-surface-container-low));border-radius:var(--mdc-elevated-card-container-shape, var(--mat-sys-corner-medium));box-shadow:var(--mdc-elevated-card-container-elevation, var(--mat-sys-level1))}.mat-mdc-card::after{position:absolute;top:0;left:0;width:100%;height:100%;border:solid 1px rgba(0,0,0,0);content:"";display:block;pointer-events:none;box-sizing:border-box;border-radius:var(--mdc-elevated-card-container-shape, var(--mat-sys-corner-medium))}.mat-mdc-card-outlined{background-color:var(--mdc-outlined-card-container-color, var(--mat-sys-surface));border-radius:var(--mdc-outlined-card-container-shape, var(--mat-sys-corner-medium));border-width:var(--mdc-outlined-card-outline-width, 1px);border-color:var(--mdc-outlined-card-outline-color, var(--mat-sys-outline-variant));box-shadow:var(--mdc-outlined-card-container-elevation, var(--mat-sys-level0))}.mat-mdc-card-outlined::after{border:none}.mdc-card__media{position:relative;box-sizing:border-box;background-repeat:no-repeat;background-position:center;background-size:cover}.mdc-card__media::before{display:block;content:""}.mdc-card__media:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.mdc-card__media:last-child{border-bottom-left-radius:inherit;border-bottom-right-radius:inherit}.mat-mdc-card-actions{display:flex;flex-direction:row;align-items:center;box-sizing:border-box;min-height:52px;padding:8px}.mat-mdc-card-title{font-family:var(--mat-card-title-text-font, var(--mat-sys-title-large-font));line-height:var(--mat-card-title-text-line-height, var(--mat-sys-title-large-line-height));font-size:var(--mat-card-title-text-size, var(--mat-sys-title-large-size));letter-spacing:var(--mat-card-title-text-tracking, var(--mat-sys-title-large-tracking));font-weight:var(--mat-card-title-text-weight, var(--mat-sys-title-large-weight))}.mat-mdc-card-subtitle{color:var(--mat-card-subtitle-text-color, var(--mat-sys-on-surface));font-family:var(--mat-card-subtitle-text-font, var(--mat-sys-title-medium-font));line-height:var(--mat-card-subtitle-text-line-height, var(--mat-sys-title-medium-line-height));font-size:var(--mat-card-subtitle-text-size, var(--mat-sys-title-medium-size));letter-spacing:var(--mat-card-subtitle-text-tracking, var(--mat-sys-title-medium-tracking));font-weight:var(--mat-card-subtitle-text-weight, var(--mat-sys-title-medium-weight))}.mat-mdc-card-title,.mat-mdc-card-subtitle{display:block;margin:0}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle{padding:16px 16px 0}.mat-mdc-card-header{display:flex;padding:16px 16px 0}.mat-mdc-card-content{display:block;padding:0 16px}.mat-mdc-card-content:first-child{padding-top:16px}.mat-mdc-card-content:last-child{padding-bottom:16px}.mat-mdc-card-title-group{display:flex;justify-content:space-between;width:100%}.mat-mdc-card-avatar{height:40px;width:40px;border-radius:50%;flex-shrink:0;margin-bottom:16px;object-fit:cover}.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-avatar~.mat-mdc-card-header-text .mat-mdc-card-title{line-height:normal}.mat-mdc-card-sm-image{width:80px;height:80px}.mat-mdc-card-md-image{width:112px;height:112px}.mat-mdc-card-lg-image{width:152px;height:152px}.mat-mdc-card-xl-image{width:240px;height:240px}.mat-mdc-card-subtitle~.mat-mdc-card-title,.mat-mdc-card-title~.mat-mdc-card-subtitle,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-title,.mat-mdc-card-header .mat-mdc-card-header-text .mat-mdc-card-subtitle,.mat-mdc-card-title-group .mat-mdc-card-title,.mat-mdc-card-title-group .mat-mdc-card-subtitle{padding-top:0}.mat-mdc-card-content>:last-child:not(.mat-mdc-card-footer){margin-bottom:0}.mat-mdc-card-actions-align-end{justify-content:flex-end} -`],encapsulation:2,changeDetection:0})}return i})(),KC=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["mat-card-title"],["","mat-card-title",""],["","matCardTitle",""]],hostAttrs:[1,"mat-mdc-card-title"]})}return i})();var ZC=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["mat-card-content"]],hostAttrs:[1,"mat-mdc-card-content"]})}return i})(),QC=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["mat-card-subtitle"],["","mat-card-subtitle",""],["","matCardSubtitle",""]],hostAttrs:[1,"mat-mdc-card-subtitle"]})}return i})(),XC=(()=>{class i{align="start";static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["mat-card-actions"]],hostAttrs:[1,"mat-mdc-card-actions","mdc-card__actions"],hostVars:2,hostBindings:function(t,o){t&2&&j("mat-mdc-card-actions-align-end",o.align==="end")},inputs:{align:"align"},exportAs:["matCardActions"]})}return i})(),JC=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-card-header"]],hostAttrs:[1,"mat-mdc-card-header"],ngContentSelectors:CP,decls:4,vars:0,consts:[[1,"mat-mdc-card-header-text"]],template:function(t,o){t&1&&(Te(yP),ae(0),l(1,"div",0),ae(2,1),c(),ae(3,2))},encapsulation:2,changeDetection:0})}return i})();var ex=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","mat-card-avatar",""],["","matCardAvatar",""]],hostAttrs:[1,"mat-mdc-card-avatar"]})}return i})();var tx=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({imports:[se,se]})}return i})();var ix={XSmall:"(max-width: 599.98px)",Small:"(min-width: 600px) and (max-width: 959.98px)",Medium:"(min-width: 960px) and (max-width: 1279.98px)",Large:"(min-width: 1280px) and (max-width: 1919.98px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599.98px) and (orientation: portrait), (max-width: 959.98px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599.98px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839.98px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959.98px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279.98px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"};function DP(i,n){if(i&1){let e=Q();l(0,"div",1)(1,"button",2),b("click",function(){I(e);let o=f();return P(o.action())}),p(2),c()()}if(i&2){let e=f();m(2),U(" ",e.data.action," ")}}var MP=["label"];function kP(i,n){}var SP=Math.pow(2,31)-1,Vl=class{_overlayRef;instance;containerInstance;_afterDismissed=new S;_afterOpened=new S;_onAction=new S;_durationTimeoutId;_dismissedByAction=!1;constructor(n,e){this._overlayRef=e,this.containerInstance=n,n._onExit.subscribe(()=>this._finishDismiss())}dismiss(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)}dismissWithAction(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete(),this.dismiss()),clearTimeout(this._durationTimeoutId)}closeWithAction(){this.dismissWithAction()}_dismissAfter(n){this._durationTimeoutId=setTimeout(()=>this.dismiss(),Math.min(n,SP))}_open(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())}_finishDismiss(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1}afterDismissed(){return this._afterDismissed}afterOpened(){return this.containerInstance._onEnter}onAction(){return this._onAction}},nx=new v("MatSnackBarData"),Aa=class{politeness="assertive";announcementMessage="";viewContainerRef;duration=0;panelClass;direction;data=null;horizontalPosition="center";verticalPosition="bottom"},EP=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","matSnackBarLabel",""]],hostAttrs:[1,"mat-mdc-snack-bar-label","mdc-snackbar__label"]})}return i})(),OP=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","matSnackBarActions",""]],hostAttrs:[1,"mat-mdc-snack-bar-actions","mdc-snackbar__actions"]})}return i})(),TP=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275dir=z({type:i,selectors:[["","matSnackBarAction",""]],hostAttrs:[1,"mat-mdc-snack-bar-action","mdc-snackbar__action"]})}return i})(),ox=(()=>{class i{snackBarRef=d(Vl);data=d(nx);constructor(){}action(){this.snackBarRef.dismissWithAction()}get hasAction(){return!!this.data.action}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-mdc-simple-snack-bar"],exportAs:["matSnackBar"],decls:3,vars:2,consts:[["matSnackBarLabel",""],["matSnackBarActions",""],["mat-button","","matSnackBarAction","",3,"click"]],template:function(t,o){t&1&&(l(0,"div",0),p(1),c(),w(2,DP,3,1,"div",1)),t&2&&(m(),U(" ",o.data.message,` -`),m(),C(o.hasAction?2:-1))},dependencies:[Xe,EP,OP,TP],styles:[`.mat-mdc-simple-snack-bar{display:flex} -`],encapsulation:2,changeDetection:0})}return i})(),Rf="_mat-snack-bar-enter",Ff="_mat-snack-bar-exit",AP=(()=>{class i extends to{_ngZone=d(K);_elementRef=d(Z);_changeDetectorRef=d(ye);_platform=d(Se);_rendersRef;_animationsDisabled=d(ze,{optional:!0})==="NoopAnimations";snackBarConfig=d(Aa);_document=d(re);_trackedModals=new Set;_enterFallback;_exitFallback;_renders=new S;_announceDelay=150;_announceTimeoutId;_destroyed=!1;_portalOutlet;_onAnnounce=new S;_onExit=new S;_onEnter=new S;_animationState="void";_live;_label;_role;_liveElementId=d(Ye).getId("mat-snack-bar-container-live-");constructor(){super();let e=this.snackBarConfig;e.politeness==="assertive"&&!e.announcementMessage?this._live="assertive":e.politeness==="off"?this._live="off":this._live="polite",this._platform.FIREFOX&&(this._live==="polite"&&(this._role="status"),this._live==="assertive"&&(this._role="alert")),this._rendersRef=_r(()=>this._renders.next(),{manualCleanup:!0})}attachComponentPortal(e){this._assertNotAttached();let t=this._portalOutlet.attachComponentPortal(e);return this._afterPortalAttached(),t}attachTemplatePortal(e){this._assertNotAttached();let t=this._portalOutlet.attachTemplatePortal(e);return this._afterPortalAttached(),t}attachDomPortal=e=>{this._assertNotAttached();let t=this._portalOutlet.attachDomPortal(e);return this._afterPortalAttached(),t};onAnimationEnd(e){e===Ff?this._completeExit():e===Rf&&(clearTimeout(this._enterFallback),this._ngZone.run(()=>{this._onEnter.next(),this._onEnter.complete()}))}enter(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.markForCheck(),this._changeDetectorRef.detectChanges(),this._screenReaderAnnounce(),this._animationsDisabled?this._renders.pipe(_e(1)).subscribe(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(Rf)))}):(clearTimeout(this._enterFallback),this._enterFallback=setTimeout(()=>{this._elementRef.nativeElement.classList.add("mat-snack-bar-fallback-visible"),this.onAnimationEnd(Rf)},200)))}exit(){return this._destroyed?T(void 0):(this._ngZone.run(()=>{this._animationState="hidden",this._changeDetectorRef.markForCheck(),this._elementRef.nativeElement.setAttribute("mat-exit",""),clearTimeout(this._announceTimeoutId),this._animationsDisabled?this._renders.pipe(_e(1)).subscribe(()=>{this._ngZone.run(()=>queueMicrotask(()=>this.onAnimationEnd(Ff)))}):(clearTimeout(this._exitFallback),this._exitFallback=setTimeout(()=>this.onAnimationEnd(Ff),200))}),this._onExit)}ngOnDestroy(){this._destroyed=!0,this._clearFromModals(),this._completeExit(),this._renders.complete(),this._rendersRef.destroy()}_completeExit(){clearTimeout(this._exitFallback),queueMicrotask(()=>{this._onExit.next(),this._onExit.complete()})}_afterPortalAttached(){let e=this._elementRef.nativeElement,t=this.snackBarConfig.panelClass;t&&(Array.isArray(t)?t.forEach(a=>e.classList.add(a)):e.classList.add(t)),this._exposeToModals();let o=this._label.nativeElement,r="mdc-snackbar__label";o.classList.toggle(r,!o.querySelector(`.${r}`))}_exposeToModals(){let e=this._liveElementId,t=this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');for(let o=0;o{let t=e.getAttribute("aria-owns");if(t){let o=t.replace(this._liveElementId,"").trim();o.length>0?e.setAttribute("aria-owns",o):e.removeAttribute("aria-owns")}}),this._trackedModals.clear()}_assertNotAttached(){this._portalOutlet.hasAttached()}_screenReaderAnnounce(){this._announceTimeoutId||this._ngZone.runOutsideAngular(()=>{this._announceTimeoutId=setTimeout(()=>{if(this._destroyed)return;let e=this._elementRef.nativeElement,t=e.querySelector("[aria-hidden]"),o=e.querySelector("[aria-live]");if(t&&o){let r=null;this._platform.isBrowser&&document.activeElement instanceof HTMLElement&&t.contains(document.activeElement)&&(r=document.activeElement),t.removeAttribute("aria-hidden"),o.appendChild(t),r?.focus(),this._onAnnounce.next(),this._onAnnounce.complete()}},this._announceDelay)})}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=E({type:i,selectors:[["mat-snack-bar-container"]],viewQuery:function(t,o){if(t&1&&(ge(Bi,7),ge(MP,7)),t&2){let r;ee(r=te())&&(o._portalOutlet=r.first),ee(r=te())&&(o._label=r.first)}},hostAttrs:[1,"mdc-snackbar","mat-mdc-snack-bar-container"],hostVars:6,hostBindings:function(t,o){t&1&&b("animationend",function(a){return o.onAnimationEnd(a.animationName)})("animationcancel",function(a){return o.onAnimationEnd(a.animationName)}),t&2&&j("mat-snack-bar-container-enter",o._animationState==="visible")("mat-snack-bar-container-exit",o._animationState==="hidden")("mat-snack-bar-container-animations-enabled",!o._animationsDisabled)},features:[xe],decls:6,vars:3,consts:[["label",""],[1,"mdc-snackbar__surface","mat-mdc-snackbar-surface"],[1,"mat-mdc-snack-bar-label"],["aria-hidden","true"],["cdkPortalOutlet",""]],template:function(t,o){t&1&&(l(0,"div",1)(1,"div",2,0)(3,"div",3),w(4,kP,0,0,"ng-template",4),c(),M(5,"div"),c()()),t&2&&(m(5),Y("aria-live",o._live)("role",o._role)("id",o._liveElementId))},dependencies:[Bi],styles:[`@keyframes _mat-snack-bar-enter{from{transform:scale(0.8);opacity:0}to{transform:scale(1);opacity:1}}@keyframes _mat-snack-bar-exit{from{opacity:1}to{opacity:0}}.mat-mdc-snack-bar-container{display:flex;align-items:center;justify-content:center;box-sizing:border-box;-webkit-tap-highlight-color:rgba(0,0,0,0);margin:8px}.mat-mdc-snack-bar-handset .mat-mdc-snack-bar-container{width:100vw}.mat-snack-bar-container-animations-enabled{opacity:0}.mat-snack-bar-container-animations-enabled.mat-snack-bar-fallback-visible{opacity:1}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-enter{animation:_mat-snack-bar-enter 150ms cubic-bezier(0, 0, 0.2, 1) forwards}.mat-snack-bar-container-animations-enabled.mat-snack-bar-container-exit{animation:_mat-snack-bar-exit 75ms cubic-bezier(0.4, 0, 1, 1) forwards}.mat-mdc-snackbar-surface{box-shadow:0px 3px 5px -1px rgba(0, 0, 0, 0.2), 0px 6px 10px 0px rgba(0, 0, 0, 0.14), 0px 1px 18px 0px rgba(0, 0, 0, 0.12);display:flex;align-items:center;justify-content:flex-start;box-sizing:border-box;padding-left:0;padding-right:8px}[dir=rtl] .mat-mdc-snackbar-surface{padding-right:0;padding-left:8px}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{min-width:344px;max-width:672px}.mat-mdc-snack-bar-handset .mat-mdc-snackbar-surface{width:100%;min-width:0}@media(forced-colors: active){.mat-mdc-snackbar-surface{outline:solid 1px}}.mat-mdc-snack-bar-container .mat-mdc-snackbar-surface{color:var(--mdc-snackbar-supporting-text-color, var(--mat-sys-inverse-on-surface));border-radius:var(--mdc-snackbar-container-shape, var(--mat-sys-corner-extra-small));background-color:var(--mdc-snackbar-container-color, var(--mat-sys-inverse-surface))}.mdc-snackbar__label{width:100%;flex-grow:1;box-sizing:border-box;margin:0;padding:14px 8px 14px 16px}[dir=rtl] .mdc-snackbar__label{padding-left:8px;padding-right:16px}.mat-mdc-snack-bar-container .mdc-snackbar__label{font-family:var(--mdc-snackbar-supporting-text-font, var(--mat-sys-body-medium-font));font-size:var(--mdc-snackbar-supporting-text-size, var(--mat-sys-body-medium-size));font-weight:var(--mdc-snackbar-supporting-text-weight, var(--mat-sys-body-medium-weight));line-height:var(--mdc-snackbar-supporting-text-line-height, var(--mat-sys-body-medium-line-height))}.mat-mdc-snack-bar-actions{display:flex;flex-shrink:0;align-items:center;box-sizing:border-box}.mat-mdc-snack-bar-handset,.mat-mdc-snack-bar-container,.mat-mdc-snack-bar-label{flex:1 1 auto}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled).mat-unthemed{color:var(--mat-snack-bar-button-color, var(--mat-sys-inverse-primary))}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled){--mat-text-button-state-layer-color:currentColor;--mat-text-button-ripple-color:currentColor}.mat-mdc-snack-bar-container .mat-mdc-button.mat-mdc-snack-bar-action:not(:disabled) .mat-ripple-element{opacity:.1} -`],encapsulation:2})}return i})();function IP(){return new Aa}var PP=new v("mat-snack-bar-default-options",{providedIn:"root",factory:IP}),Bt=(()=>{class i{_overlay=d(Ke);_live=d(Bs);_injector=d(ce);_breakpointObserver=d(Vs);_parentSnackBar=d(i,{optional:!0,skipSelf:!0});_defaultConfig=d(PP);_snackBarRefAtThisLevel=null;simpleSnackBarComponent=ox;snackBarContainerComponent=AP;handsetCssClass="mat-mdc-snack-bar-handset";get _openedSnackBarRef(){let e=this._parentSnackBar;return e?e._openedSnackBarRef:this._snackBarRefAtThisLevel}set _openedSnackBarRef(e){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=e:this._snackBarRefAtThisLevel=e}constructor(){}openFromComponent(e,t){return this._attach(e,t)}openFromTemplate(e,t){return this._attach(e,t)}open(e,t="",o){let r=_(_({},this._defaultConfig),o);return r.data={message:e,action:t},r.announcementMessage===e&&(r.announcementMessage=void 0),this.openFromComponent(this.simpleSnackBarComponent,r)}dismiss(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()}ngOnDestroy(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()}_attachSnackBarContainer(e,t){let o=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=ce.create({parent:o||this._injector,providers:[{provide:Aa,useValue:t}]}),a=new Zt(this.snackBarContainerComponent,t.viewContainerRef,r),s=e.attach(a);return s.instance.snackBarConfig=t,s.instance}_attach(e,t){let o=_(_(_({},new Aa),this._defaultConfig),t),r=this._createOverlay(o),a=this._attachSnackBarContainer(r,o),s=new Vl(a,r);if(e instanceof bi){let u=new Di(e,null,{$implicit:o.data,snackBarRef:s});s.instance=a.attachTemplatePortal(u)}else{let u=this._createInjector(o,s),h=new Zt(e,void 0,u),g=a.attachComponentPortal(h);s.instance=g.instance}return this._breakpointObserver.observe(ix.HandsetPortrait).pipe(pe(r.detachments())).subscribe(u=>{r.overlayElement.classList.toggle(this.handsetCssClass,u.matches)}),o.announcementMessage&&a._onAnnounce.subscribe(()=>{this._live.announce(o.announcementMessage,o.politeness)}),this._animateSnackBar(s,o),this._openedSnackBarRef=s,this._openedSnackBarRef}_animateSnackBar(e,t){e.afterDismissed().subscribe(()=>{this._openedSnackBarRef==e&&(this._openedSnackBarRef=null),t.announcementMessage&&this._live.clear()}),t.duration&&t.duration>0&&e.afterOpened().subscribe(()=>e._dismissAfter(t.duration)),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe(()=>{e.containerInstance.enter()}),this._openedSnackBarRef.dismiss()):e.containerInstance.enter()}_createOverlay(e){let t=new Mi;t.direction=e.direction;let o=this._overlay.position().global(),r=e.direction==="rtl",a=e.horizontalPosition==="left"||e.horizontalPosition==="start"&&!r||e.horizontalPosition==="end"&&r,s=!a&&e.horizontalPosition!=="center";return a?o.left("0"):s?o.right("0"):o.centerHorizontally(),e.verticalPosition==="top"?o.top("0"):o.bottom("0"),t.positionStrategy=o,this._overlay.create(t)}_createInjector(e,t){let o=e&&e.viewContainerRef&&e.viewContainerRef.injector;return ce.create({parent:o||this._injector,providers:[{provide:Vl,useValue:t},{provide:nx,useValue:e.data}]})}static \u0275fac=function(t){return new(t||i)};static \u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}return i})();var To=(()=>{class i{static \u0275fac=function(t){return new(t||i)};static \u0275mod=W({type:i});static \u0275inj=G({providers:[Bt],imports:[Qt,ji,ke,se,ox,se]})}return i})();function RP(i,n){i&1&&(l(0,"mat-error"),p(1,"Enum name is required"),c())}function FP(i,n){i&1&&(l(0,"mat-error"),p(1,"Name must start with uppercase letter and contain only alphanumeric characters"),c())}function NP(i,n){if(i&1&&(l(0,"mat-error"),p(1),c()),i&2){let e=f().$index,t=f();m(),$(t.getNameError(e))}}function LP(i,n){if(i&1&&(l(0,"mat-error"),p(1),c()),i&2){let e=f().$index,t=f();m(),$(t.getValueError(e))}}function VP(i,n){if(i&1){let e=Q();l(0,"div",18)(1,"div",22)(2,"span",23),p(3),c(),l(4,"button",24),b("click",function(){let o=I(e).$index,r=f();return P(r.removeValue(o))}),l(5,"mat-icon"),p(6,"delete"),c()()(),l(7,"div",25)(8,"mat-form-field",26)(9,"mat-label"),p(10,"Name"),c(),M(11,"input",27),w(12,NP,2,1,"mat-error"),c(),l(13,"mat-form-field",28)(14,"mat-label"),p(15,"Value"),c(),M(16,"input",29),w(17,LP,2,1,"mat-error"),c()()()}if(i&2){let e=n.$index,t=f();x("formGroupName",e),m(3),U("#",e+1,""),m(),j("disabled",t.values.length<=1),x("disabled",t.values.length<=1),m(8),C(t.getNameError(e)?12:-1),m(5),C(t.getValueError(e)?17:-1)}}var nm=class i{constructor(n,e,t,o){this.fb=n;this.dialogRef=e;this.enumsService=t;this.snackBar=o;this.enumForm=this.fb.group({name:["",[me.required,me.pattern(/^[A-Z][a-zA-Z0-9]*$/)]],values:this.fb.array([])})}ngOnInit(){this.addValue()}get values(){return this.enumForm.get("values")}addValue(){let n=this.fb.group({name:["",[me.required,me.pattern(/^[A-Z][a-zA-Z0-9]*$/)]],value:[this.getNextValue(),[me.required,me.min(0)]]});this.values.push(n)}removeValue(n){this.values.length>1&&this.values.removeAt(n)}getNextValue(){if(this.values.length===0)return 0;let n=this.values.controls.map(t=>t.get("value")?.value||0);return Math.max(...n)+1}onSubmit(){if(!this.enumForm.valid){this.enumForm.markAllAsTouched();return}let n=this.enumForm.value,e=n.values.map(o=>o.name);if(e.length!==new Set(e).size){this.snackBar.open("Duplicate value names are not allowed","Close",{duration:3e3});return}let t=n.values.map(o=>o.value);if(t.length!==new Set(t).size){this.snackBar.open("Duplicate numeric values are not allowed","Close",{duration:3e3});return}this.enumsService.createEnum(n.name,n.values).subscribe({next:()=>{this.dialogRef.close(!0)},error:o=>{console.error("Failed to create enum:",o);let r=o.error?.message||"Failed to create enum";this.snackBar.open(r,"Close",{duration:5e3})}})}onCancel(){this.dialogRef.close(!1)}getNameError(n){let e=this.values.at(n).get("name");return e?.hasError("required")?"Name is required":e?.hasError("pattern")?"Name must start with uppercase letter and contain only alphanumeric characters":""}getValueError(n){let e=this.values.at(n).get("value");return e?.hasError("required")?"Value is required":e?.hasError("min")?"Value must be non-negative":""}static{this.\u0275fac=function(e){return new(e||i)(k(mi),k(Dt),k(Un),k(Bt))}}static{this.\u0275cmp=E({type:i,selectors:[["app-create-enum-dialog"]],decls:51,vars:4,consts:[[1,"create-enum-dialog"],[1,"dialog-header"],[1,"header-content"],[1,"title-section"],[1,"icon-wrapper"],[1,"header-icon"],[1,"title-content"],["mat-icon-button","","aria-label","Close dialog",1,"close-btn",3,"click"],[1,"dialog-content"],[3,"ngSubmit","formGroup"],[1,"form-section"],[1,"section-header"],[1,"section-icon"],["appearance","outline",1,"full-width","modern-field"],["matInput","","formControlName","name","placeholder","e.g., Status, Priority, Category"],[1,"section-actions"],["type","button","mat-fab","","mini","","color","primary",1,"add-value-btn",3,"click"],["formArrayName","values",1,"values-container"],[1,"value-card",3,"formGroupName"],[1,"dialog-footer"],["mat-button","",1,"cancel-btn",3,"click"],["mat-raised-button","","color","primary",1,"create-btn",3,"click","disabled"],[1,"value-header"],[1,"value-index"],["type","button","mat-icon-button","",1,"remove-btn",3,"click","disabled"],[1,"value-fields"],["appearance","outline",1,"name-field","modern-field"],["matInput","","formControlName","name","placeholder","e.g., Active, Pending"],["appearance","outline",1,"value-field","modern-field"],["matInput","","type","number","formControlName","value"]],template:function(e,t){if(e&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"mat-icon",5),p(6,"add_circle"),c()(),l(7,"div",6)(8,"h2"),p(9,"Create New Enumeration"),c(),l(10,"p"),p(11,"Define a new C# enum with custom values"),c()()(),l(12,"button",7),b("click",function(){return t.onCancel()}),l(13,"mat-icon"),p(14,"close"),c()()()(),l(15,"div",8)(16,"form",9),b("ngSubmit",function(){return t.onSubmit()}),l(17,"div",10)(18,"div",11)(19,"mat-icon",12),p(20,"label"),c(),l(21,"h3"),p(22,"Enum Information"),c()(),l(23,"mat-form-field",13)(24,"mat-label"),p(25,"Enum Name"),c(),M(26,"input",14),l(27,"mat-hint"),p(28,"Must start with uppercase letter (PascalCase)"),c(),w(29,RP,2,0,"mat-error")(30,FP,2,0,"mat-error"),c()(),l(31,"div",10)(32,"div",11)(33,"mat-icon",12),p(34,"list"),c(),l(35,"h3"),p(36,"Enum Values"),c(),l(37,"div",15)(38,"button",16),b("click",function(){return t.addValue()}),l(39,"mat-icon"),p(40,"add"),c()()()(),l(41,"div",17),de(42,VP,18,7,"div",18,Qe),c()()()(),l(44,"div",19)(45,"button",20),b("click",function(){return t.onCancel()}),p(46,"Cancel"),c(),l(47,"button",21),b("click",function(){return t.onSubmit()}),l(48,"mat-icon"),p(49,"code"),c(),p(50," Create Enum "),c()()()),e&2){let o,r;m(16),x("formGroup",t.enumForm),m(13),C((o=t.enumForm.get("name"))!=null&&o.hasError("required")&&((o=t.enumForm.get("name"))!=null&&o.touched)?29:-1),m(),C((r=t.enumForm.get("name"))!=null&&r.hasError("pattern")&&((r=t.enumForm.get("name"))!=null&&r.touched)?30:-1),m(12),ue(t.values.controls),m(5),x("disabled",!t.enumForm.valid)}},dependencies:[Ae,hi,ui,Mt,or,Pt,di,bt,ki,Jr,ea,Vt,It,fn,Xt,Zs,hn,Gi,Vn,ke,Xe,Ze,Ld,fe,Ce,To],styles:[".create-enum-dialog[_ngcontent-%COMP%]{width:100%;max-width:600px;background-color:#1e1e1e;color:#fff}.create-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:24px;border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:24px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.create-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background-color:#ac99ea;border-radius:4px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;color:#212121}.create-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:20px;font-weight:500}.create-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:4px 0 0;font-size:14px;color:#ffffffb3}.create-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]{color:#ffffffb3;border-radius:4px;transition:all .2s ease}.create-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]:hover{background-color:#fff3;color:#fff}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:0 24px;max-height:60vh;overflow-y:auto}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%]{margin-bottom:24px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.12)}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .section-icon[_ngcontent-%COMP%]{color:#ac99ea;margin-right:8px;font-size:16px;width:16px;height:16px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:16px;font-weight:500;display:flex;align-items:center;flex:1}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .section-actions[_ngcontent-%COMP%] .add-value-btn[_ngcontent-%COMP%]{background-color:#ac99ea;color:#212121;width:32px;height:32px;transition:all .2s ease}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .section-actions[_ngcontent-%COMP%] .add-value-btn[_ngcontent-%COMP%]:hover{background-color:#8a6fe1}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .section-actions[_ngcontent-%COMP%] .add-value-btn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .full-width[_ngcontent-%COMP%]{width:100%}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%]{background-color:#232323;border:1px solid rgba(255,255,255,.12);border-radius:4px;padding:16px;transition:all .2s ease}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%]:hover{background-color:#2e2e2e}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-header[_ngcontent-%COMP%] .value-index[_ngcontent-%COMP%]{background-color:#ac99ea;color:#212121;padding:2px 8px;border-radius:12px;font-size:12px;font-weight:500}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-header[_ngcontent-%COMP%] .remove-btn[_ngcontent-%COMP%]{color:#ef5350;height:max-content;border-radius:4px;transition:all .2s ease}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-header[_ngcontent-%COMP%] .remove-btn[_ngcontent-%COMP%]:hover:not(.disabled){background-color:#ef53501a}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-header[_ngcontent-%COMP%] .remove-btn.disabled[_ngcontent-%COMP%]{opacity:.3;cursor:not-allowed}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-header[_ngcontent-%COMP%] .remove-btn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:14px;width:14px;height:14px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-fields[_ngcontent-%COMP%]{display:flex;gap:12px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-fields[_ngcontent-%COMP%] .name-field[_ngcontent-%COMP%]{flex:2}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-fields[_ngcontent-%COMP%] .value-field[_ngcontent-%COMP%]{flex:1}.create-enum-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px;padding:24px;border-top:1px solid rgba(255,255,255,.12);margin-top:24px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%]{color:#ffffffb3;padding:6px 16px;border-radius:4px;transition:all .2s ease}.create-enum-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%]:hover{background-color:#fff3;color:#fff}.create-enum-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] .create-btn[_ngcontent-%COMP%]{background-color:#ac99ea;color:#212121;padding:6px 16px;border-radius:4px;transition:all .2s ease}.create-enum-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] .create-btn[_ngcontent-%COMP%]:hover:not(:disabled){background-color:#8a6fe1}.create-enum-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] .create-btn[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed;background-color:#ffffff1f;color:#ffffff61}.create-enum-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] .create-btn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;font-size:16px;width:16px;height:16px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#232323}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#fff3;border-radius:2px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#ffffff4d}@media (max-width: 768px){.create-enum-dialog[_ngcontent-%COMP%]{max-width:95vw}.create-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%]{padding:20px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%]{gap:12px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%]{width:36px;height:36px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:0 20px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-fields[_ngcontent-%COMP%]{flex-direction:column;gap:8px}.create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-fields[_ngcontent-%COMP%] .name-field[_ngcontent-%COMP%], .create-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-fields[_ngcontent-%COMP%] .value-field[_ngcontent-%COMP%]{flex:1}.create-enum-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%]{padding:20px;flex-direction:column}.create-enum-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%], .create-enum-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] .create-btn[_ngcontent-%COMP%]{width:100%;justify-content:center}}"]})}};function BP(i,n){if(i&1&&(l(0,"mat-error"),p(1),c()),i&2){let e=f().$index,t=f();m(),$(t.getNameError(e))}}function jP(i,n){if(i&1&&(l(0,"mat-error"),p(1),c()),i&2){let e=f().$index,t=f();m(),$(t.getValueError(e))}}function zP(i,n){if(i&1){let e=Q();l(0,"div",20)(1,"div",24)(2,"span",25),p(3),c(),l(4,"button",26),b("click",function(){let o=I(e).$index,r=f();return P(r.removeValue(o))}),l(5,"mat-icon"),p(6,"delete"),c()()(),l(7,"div",27)(8,"mat-form-field",28)(9,"mat-label"),p(10,"Name"),c(),M(11,"input",29),w(12,BP,2,1,"mat-error"),c(),l(13,"mat-form-field",30)(14,"mat-label"),p(15,"Value"),c(),M(16,"input",31),w(17,jP,2,1,"mat-error"),c()()()}if(i&2){let e=n.$index,t=f();x("formGroupName",e),m(3),U("#",e+1,""),m(),j("disabled",t.values.length<=1),x("disabled",t.values.length<=1),m(8),C(t.getNameError(e)?12:-1),m(5),C(t.getValueError(e)?17:-1)}}var om=class i{constructor(n,e,t,o,r){this.fb=n;this.dialogRef=e;this.enumsService=t;this.snackBar=o;this.data=r;this.enumForm=this.fb.group({values:this.fb.array([])})}ngOnInit(){this.loadEnumValues()}get values(){return this.enumForm.get("values")}loadEnumValues(){let n=this.values;this.data.values.forEach(e=>{let t=this.fb.group({name:[e.name,[me.required,me.pattern(/^[A-Z][a-zA-Z0-9]*$/)]],value:[e.value,[me.required,me.min(0)]]});n.push(t)})}addValue(){let n=this.fb.group({name:["",[me.required,me.pattern(/^[A-Z][a-zA-Z0-9]*$/)]],value:[this.getNextValue(),[me.required,me.min(0)]]});this.values.push(n)}removeValue(n){this.values.length>1&&this.values.removeAt(n)}getNextValue(){if(this.values.length===0)return 0;let n=this.values.controls.map(t=>t.get("value")?.value||0);return Math.max(...n)+1}onSubmit(){if(!this.enumForm.valid){this.enumForm.markAllAsTouched();return}let n=this.enumForm.value,e=n.values.map(o=>o.name);if(e.length!==new Set(e).size){this.snackBar.open("Duplicate value names are not allowed","Close",{duration:3e3});return}let t=n.values.map(o=>o.value);if(t.length!==new Set(t).size){this.snackBar.open("Duplicate numeric values are not allowed","Close",{duration:3e3});return}this.enumsService.updateEnum(this.data.name,n.values).subscribe({next:()=>{this.dialogRef.close(!0)},error:o=>{console.error("Failed to update enum:",o);let r=o.error?.message||"Failed to update enum";this.snackBar.open(r,"Close",{duration:5e3})}})}onCancel(){this.dialogRef.close(!1)}getNameError(n){let e=this.values.at(n).get("name");return e?.hasError("required")?"Name is required":e?.hasError("pattern")?"Name must start with uppercase letter and contain only alphanumeric characters":""}getValueError(n){let e=this.values.at(n).get("value");return e?.hasError("required")?"Value is required":e?.hasError("min")?"Value must be non-negative":""}static{this.\u0275fac=function(e){return new(e||i)(k(mi),k(Dt),k(Un),k(Bt),k(ci))}}static{this.\u0275cmp=E({type:i,selectors:[["app-edit-enum-dialog"]],decls:54,vars:5,consts:[[1,"edit-enum-dialog"],[1,"dialog-header"],[1,"header-content"],[1,"title-section"],[1,"icon-wrapper"],[1,"header-icon"],[1,"title-content"],["mat-icon-button","","aria-label","Close dialog",1,"close-btn",3,"click"],[1,"dialog-content"],[3,"ngSubmit","formGroup"],[1,"form-section"],[1,"section-header"],[1,"section-icon"],[1,"enum-info"],[1,"info-item"],[1,"info-label"],[1,"info-value"],[1,"section-actions"],["type","button","mat-fab","","mini","","color","primary",1,"add-value-btn",3,"click"],["formArrayName","values",1,"values-container"],[1,"value-card",3,"formGroupName"],[1,"dialog-footer"],["mat-button","",1,"cancel-btn",3,"click"],["mat-raised-button","","color","primary",1,"update-btn",3,"click","disabled"],[1,"value-header"],[1,"value-index"],["type","button","mat-icon-button","",1,"remove-btn",3,"click","disabled"],[1,"value-fields"],["appearance","outline",1,"name-field","modern-field"],["matInput","","formControlName","name","placeholder","e.g., Active, Pending"],["appearance","outline",1,"value-field","modern-field"],["matInput","","type","number","formControlName","value"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"div",4)(5,"mat-icon",5),p(6,"edit"),c()(),l(7,"div",6)(8,"h2"),p(9),c(),l(10,"p"),p(11,"Modify the C# enumeration values"),c()()(),l(12,"button",7),b("click",function(){return t.onCancel()}),l(13,"mat-icon"),p(14,"close"),c()()()(),l(15,"div",8)(16,"form",9),b("ngSubmit",function(){return t.onSubmit()}),l(17,"div",10)(18,"div",11)(19,"mat-icon",12),p(20,"info"),c(),l(21,"h3"),p(22,"Enum Information"),c()(),l(23,"div",13)(24,"div",14)(25,"span",15),p(26,"Name:"),c(),l(27,"span",16),p(28),c()(),l(29,"div",14)(30,"span",15),p(31,"Total Values:"),c(),l(32,"span",16),p(33),c()()()(),l(34,"div",10)(35,"div",11)(36,"mat-icon",12),p(37,"list"),c(),l(38,"h3"),p(39,"Enum Values"),c(),l(40,"div",17)(41,"button",18),b("click",function(){return t.addValue()}),l(42,"mat-icon"),p(43,"add"),c()()()(),l(44,"div",19),de(45,zP,18,7,"div",20,Qe),c()()()(),l(47,"div",21)(48,"button",22),b("click",function(){return t.onCancel()}),p(49,"Cancel"),c(),l(50,"button",23),b("click",function(){return t.onSubmit()}),l(51,"mat-icon"),p(52,"save"),c(),p(53," Update Enum "),c()()()),e&2&&(m(9),U("Edit ",t.data.name,""),m(7),x("formGroup",t.enumForm),m(12),$(t.data.name),m(5),$(t.values.length),m(12),ue(t.values.controls),m(5),x("disabled",!t.enumForm.valid))},dependencies:[Ae,hi,ui,Mt,or,Pt,di,bt,ki,Jr,ea,Vt,It,fn,Xt,hn,Gi,Vn,ke,Xe,Ze,Ld,fe,Ce,To],styles:[".edit-enum-dialog[_ngcontent-%COMP%]{width:100%;max-width:600px;background-color:#1e1e1e;color:#fff}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;padding:24px;border-bottom:1px solid rgba(255,255,255,.12);margin-bottom:24px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;width:100%}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%]{display:flex;align-items:center;gap:16px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;width:40px;height:40px;background-color:#66bb6a;border-radius:4px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px;color:#fff}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:20px;font-weight:500}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:4px 0 0;font-size:14px;color:#ffffffb3}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]{color:#ffffffb3;width:32px;height:32px;border-radius:4px;transition:all .2s ease}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%]:hover{background-color:#fff3;color:#fff}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .close-btn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;width:max-content;height:max-content;margin-bottom:8px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:0 24px;max-height:60vh;overflow-y:auto}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%]{margin-bottom:24px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.12)}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .section-icon[_ngcontent-%COMP%]{color:#66bb6a;margin-right:8px;font-size:16px;width:16px;height:16px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] h3[_ngcontent-%COMP%]{margin:0;font-size:16px;font-weight:500;display:flex;align-items:center;flex:1}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .section-actions[_ngcontent-%COMP%] .add-value-btn[_ngcontent-%COMP%]{background-color:#66bb6a;color:#fff;width:32px;height:32px;transition:all .2s ease}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .section-actions[_ngcontent-%COMP%] .add-value-btn[_ngcontent-%COMP%]:hover{background-color:#49a54e}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .section-header[_ngcontent-%COMP%] .section-actions[_ngcontent-%COMP%] .add-value-btn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;width:16px;height:16px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .enum-info[_ngcontent-%COMP%]{display:flex;gap:24px;flex-wrap:wrap}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .enum-info[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .enum-info[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .info-label[_ngcontent-%COMP%]{font-size:12px;color:#ffffffb3;font-weight:500;text-transform:uppercase;letter-spacing:.5px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .enum-info[_ngcontent-%COMP%] .info-item[_ngcontent-%COMP%] .info-value[_ngcontent-%COMP%]{font-size:16px;color:#fff;font-weight:500}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:12px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%]{background-color:#232323;border:1px solid rgba(255,255,255,.12);border-radius:4px;padding:16px;transition:all .2s ease}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%]:hover{background-color:#2e2e2e}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-header[_ngcontent-%COMP%] .value-index[_ngcontent-%COMP%]{background-color:#66bb6a;color:#fff;padding:2px 8px;border-radius:12px;font-size:12px;font-weight:500}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-header[_ngcontent-%COMP%] .remove-btn[_ngcontent-%COMP%]{color:#ef5350;width:28px;height:28px;border-radius:4px;transition:all .2s ease}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-header[_ngcontent-%COMP%] .remove-btn[_ngcontent-%COMP%]:hover:not(.disabled){background-color:#ef53501a}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-header[_ngcontent-%COMP%] .remove-btn.disabled[_ngcontent-%COMP%]{opacity:.3;cursor:not-allowed}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-header[_ngcontent-%COMP%] .remove-btn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:14px;width:14px;height:14px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-fields[_ngcontent-%COMP%]{display:flex;gap:12px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-fields[_ngcontent-%COMP%] .name-field[_ngcontent-%COMP%]{flex:2}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-fields[_ngcontent-%COMP%] .value-field[_ngcontent-%COMP%]{flex:1}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px;padding:24px;border-top:1px solid rgba(255,255,255,.12);margin-top:24px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%]{color:#ffffffb3;padding:6px 16px;border-radius:4px;transition:all .2s ease}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%]:hover{background-color:#fff3;color:#fff}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] .update-btn[_ngcontent-%COMP%]{background-color:#66bb6a;color:#fff;padding:6px 16px;border-radius:4px;transition:all .2s ease}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] .update-btn[_ngcontent-%COMP%]:hover:not(:disabled){background-color:#49a54e}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] .update-btn[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed;background-color:#ffffff1f;color:#ffffff61}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] .update-btn[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;font-size:16px;width:16px;height:16px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]::-webkit-scrollbar{width:4px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#232323}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#fff3;border-radius:2px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#ffffff4d}@media (max-width: 768px){.edit-enum-dialog[_ngcontent-%COMP%]{max-width:95vw}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%]{padding:20px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%]{gap:12px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%]{width:36px;height:36px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%] .icon-wrapper[_ngcontent-%COMP%] .header-icon[_ngcontent-%COMP%]{font-size:18px;width:18px;height:18px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%] .title-content[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:18px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{padding:0 20px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .form-section[_ngcontent-%COMP%] .enum-info[_ngcontent-%COMP%]{gap:16px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-fields[_ngcontent-%COMP%]{flex-direction:column;gap:8px}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-fields[_ngcontent-%COMP%] .name-field[_ngcontent-%COMP%], .edit-enum-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .values-container[_ngcontent-%COMP%] .value-card[_ngcontent-%COMP%] .value-fields[_ngcontent-%COMP%] .value-field[_ngcontent-%COMP%]{flex:1}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%]{padding:20px;flex-direction:column}.edit-enum-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] .cancel-btn[_ngcontent-%COMP%], .edit-enum-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] .update-btn[_ngcontent-%COMP%]{width:100%;justify-content:center}}"]})}};var rm=class i{constructor(n,e){this.dialogRef=n;this.data=e}onConfirm(){this.dialogRef.close(!0)}onCancel(){this.dialogRef.close(!1)}static{this.\u0275fac=function(e){return new(e||i)(k(Dt),k(ci))}}static{this.\u0275cmp=E({type:i,selectors:[["app-confirm-dialog"]],decls:16,vars:4,consts:[[1,"confirm-dialog"],[1,"dialog-header"],[1,"warning-icon"],[1,"dialog-content"],[1,"dialog-footer"],["mat-button","",1,"cancel-button",3,"click"],["mat-raised-button","","color","warn",1,"delete-button",3,"click"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"div",1)(2,"h2"),p(3),c(),l(4,"div")(5,"mat-icon",2),p(6,"error"),c()()(),l(7,"div",3),M(8,"hr"),l(9,"p"),p(10),c()(),l(11,"div",4)(12,"button",5),b("click",function(){return t.onCancel()}),p(13),c(),l(14,"button",6),b("click",function(){return t.onConfirm()}),p(15),c()()()),e&2&&(m(3),$(t.data.title),m(7),$(t.data.message),m(3),$(t.data.cancelText),m(2),U(" ",t.data.confirmText," "))},dependencies:[Ae,Vt,ke,Xe,fe,Ce],styles:['.confirm-dialog[_ngcontent-%COMP%]{background-color:#1e1e1e;color:#fff;border-radius:8px;width:759px}.dialog-header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:flex-start;padding:16px;flex-direction:column;gap:24px}.dialog-header[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;font-size:24px;font-weight:400}.dialog-header[_ngcontent-%COMP%] button[mat-icon-button][_ngcontent-%COMP%]{color:#fff}.dialog-content[_ngcontent-%COMP%]{padding:0 16px 16px}.dialog-content[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%]{margin-bottom:16px}.dialog-content[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font-size:12px;margin-bottom:8px;color:#ffffffb3}.dialog-content[_ngcontent-%COMP%] .form-field[_ngcontent-%COMP%] .helper-text[_ngcontent-%COMP%]{font-size:12px;margin-top:4px;color:#fff9}.dialog-content[_ngcontent-%COMP%] .input-field[_ngcontent-%COMP%]{width:100%}.dialog-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;padding:16px;gap:10px}.dialog-footer[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]{background-color:#ac99ea;color:#212121;font-weight:500;text-transform:none;transition:all .2s ease;min-width:100px;border-radius:4px}.dialog-footer[_ngcontent-%COMP%] .cancel-button[_ngcontent-%COMP%]:hover{background-color:#9077e3}.dialog-footer[_ngcontent-%COMP%] .cancel-button[disabled][_ngcontent-%COMP%]{color:#ffffff61!important;background-color:#ffffff1f;cursor:not-allowed}.dialog-footer[_ngcontent-%COMP%] .delete-button[_ngcontent-%COMP%]{background-color:#e47273;color:#212021;font-weight:500;text-transform:none;transition:all .2s ease;min-width:100px;border-radius:4px}.dialog-footer[_ngcontent-%COMP%] .delete-button[_ngcontent-%COMP%]:hover{background-color:#e05d5e}.warning-icon[_ngcontent-%COMP%]{color:#e47273}.dialog-message[_ngcontent-%COMP%]{color:var(--text-secondary, rgba(255, 255, 255, .7));text-align:start;font-feature-settings:"liga" off,"clig" off;font-family:var(--fontFamily, Roboto);font-size:var(--font-size-0875-rem, 14px);font-style:normal;font-weight:var(--fontWeightRegular, 400);line-height:143%;letter-spacing:.17px}form[_ngcontent-%COMP%]{margin-top:20px}.description[_ngcontent-%COMP%]{font-size:12px;color:#ffffffb3;text-align:center;line-height:1.4}']})}};var am=class i{constructor(n,e,t){this.dialogRef=n;this.snackBar=e;this.data=t;this.generatedCode=this.generateCSharpCode(t)}generateCSharpCode(n){let e=n.values.sort((a,s)=>a.value-s.value),t=new Date().toISOString().split("T")[0],o=new Date().toTimeString().split(" ")[0],r=`// Auto-generated file - do not modify manually -`;return r+=`// Generated: ${t} ${o} UTC - -`,r+=`namespace MyCompany.MyProject.WebApi.Models; - -`,r+=`public enum ${n.name} -`,r+=`{ -`,e.forEach((a,s)=>{r+=` ${a.name} = ${a.value}`,s{this.snackBar.open("Code copied to clipboard!","Close",{duration:2e3})}).catch(()=>{this.snackBar.open("Failed to copy code","Close",{duration:3e3})})}onClose(){this.dialogRef.close()}static{this.\u0275fac=function(e){return new(e||i)(k(Dt),k(Bt),k(ci))}}static{this.\u0275cmp=E({type:i,selectors:[["app-view-enum-code-dialog"]],decls:30,vars:2,consts:[[1,"view-code-dialog"],[1,"dialog-header"],[1,"header-content"],[1,"title-section"],[1,"code-icon"],[1,"header-actions"],["mat-icon-button","","title","Copy to clipboard",1,"copy-btn",3,"click"],["mat-icon-button","","title","Close",1,"close-btn",3,"click"],[1,"dialog-content"],[1,"code-container"],[1,"code-block"],[1,"dialog-footer"],["mat-button","",3,"click"],["mat-raised-button","","color","primary",3,"click"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"div",3)(4,"mat-icon",4),p(5,"code"),c(),l(6,"div")(7,"h2"),p(8),c(),l(9,"p"),p(10,"Generated C# Enumeration"),c()()(),l(11,"div",5)(12,"button",6),b("click",function(){return t.copyToClipboard()}),l(13,"mat-icon"),p(14,"content_copy"),c()(),l(15,"button",7),b("click",function(){return t.onClose()}),l(16,"mat-icon"),p(17,"close"),c()()()()(),l(18,"div",8)(19,"div",9)(20,"pre",10)(21,"code"),p(22),c()()()(),l(23,"div",11)(24,"button",12),b("click",function(){return t.onClose()}),p(25,"Close"),c(),l(26,"button",13),b("click",function(){return t.copyToClipboard()}),l(27,"mat-icon"),p(28,"content_copy"),c(),p(29," Copy Code "),c()()()),e&2&&(m(8),U("",t.data.name,".cs"),m(14),$(t.generatedCode))},dependencies:[Ae,Vt,ke,Xe,Ze,fe,Ce,To],styles:[".view-code-dialog[_ngcontent-%COMP%]{width:100%;max-width:700px;max-height:80vh;display:flex;flex-direction:column;background-color:#1e1e1e;color:#fff}.view-code-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%]{background-color:#232323;color:#fff;padding:20px 24px;border-bottom:1px solid rgba(255,255,255,.12)}.view-code-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center}.view-code-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%]{display:flex;align-items:center;gap:12px}.view-code-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%] .code-icon[_ngcontent-%COMP%]{font-size:24px;width:24px;height:24px;color:#ac99ea}.view-code-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0;font-size:18px;font-weight:500}.view-code-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .title-section[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:2px 0 0;color:#ffffffb3;font-size:14px}.view-code-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%]{display:flex;gap:4px}.view-code-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{color:#ffffffb3;width:32px;height:32px;border-radius:4px;transition:all .2s ease}.view-code-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:hover{background-color:#fff3;color:#fff}.view-code-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] button.copy-btn[_ngcontent-%COMP%]:hover{color:#66bb6a}.view-code-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] button.close-btn[_ngcontent-%COMP%]:hover{color:#ef5350}.view-code-dialog[_ngcontent-%COMP%] .dialog-header[_ngcontent-%COMP%] .header-content[_ngcontent-%COMP%] .header-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;width:min-content;height:min-content;margin-bottom:8px}.view-code-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%]{flex:1;overflow:hidden;background-color:#121212}.view-code-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .code-container[_ngcontent-%COMP%]{height:100%;overflow:auto;padding:0}.view-code-dialog[_ngcontent-%COMP%] .dialog-content[_ngcontent-%COMP%] .code-container[_ngcontent-%COMP%] .code-block[_ngcontent-%COMP%]{margin:0;padding:20px;background-color:#121212;color:#fff;font-family:Consolas,Monaco,Courier New,monospace;font-size:13px;line-height:1.5;white-space:pre-wrap;word-wrap:break-word;border:none;outline:none}.view-code-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;gap:12px;padding:16px 24px;background-color:#1e1e1e;border-top:1px solid rgba(255,255,255,.12)}.view-code-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{border-radius:4px;font-weight:500;padding:6px 16px;transition:all .2s ease}.view-code-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] button[color=primary][_ngcontent-%COMP%]{background-color:#ac99ea;color:#212121}.view-code-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] button[color=primary][_ngcontent-%COMP%]:hover{background-color:#8a6fe1}.view-code-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] button[color=primary][_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px;font-size:16px;width:16px;height:16px}.view-code-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not([color]){color:#ffffffb3}.view-code-dialog[_ngcontent-%COMP%] .dialog-footer[_ngcontent-%COMP%] button[_ngcontent-%COMP%]:not([color]):hover{background-color:#fff3;color:#fff}.view-code-dialog[_ngcontent-%COMP%] .code-container[_ngcontent-%COMP%]::-webkit-scrollbar{width:6px;height:6px}.view-code-dialog[_ngcontent-%COMP%] .code-container[_ngcontent-%COMP%]::-webkit-scrollbar-track{background:#1e1e1e}.view-code-dialog[_ngcontent-%COMP%] .code-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb{background:#fff3;border-radius:3px}.view-code-dialog[_ngcontent-%COMP%] .code-container[_ngcontent-%COMP%]::-webkit-scrollbar-thumb:hover{background:#ffffff4d}"]})}};var rx=(i,n)=>n.name;function UP(i,n){i&1&&(l(0,"div",5),M(1,"mat-spinner",8),l(2,"p"),p(3,"Loading enumerations..."),c()())}function HP(i,n){if(i&1){let e=Q();l(0,"div",6)(1,"mat-icon",9),p(2,"code_off"),c(),l(3,"h2"),p(4,"No Enumerations Yet"),c(),l(5,"p"),p(6,"Start building your application by creating your first enumeration. Enums help you define sets of named constants that make your code more readable and maintainable."),c(),l(7,"button",10),b("click",function(){I(e);let o=f();return P(o.createEnum())}),l(8,"mat-icon"),p(9,"add"),c(),p(10," Create Your First Enum "),c()()}}function $P(i,n){if(i&1&&(l(0,"div",18)(1,"span",22),p(2),c(),l(3,"span",23),p(4),c()()),i&2){let e=n.$implicit;m(2),$(e.name),m(2),$(e.value)}}function GP(i,n){if(i&1&&(l(0,"div",19),p(1),c()),i&2){let e=f().$implicit;m(),U(" +",e.values.length-4," more ")}}function WP(i,n){if(i&1){let e=Q();l(0,"mat-card",12)(1,"mat-card-header")(2,"div",13)(3,"mat-icon"),p(4,"code"),c()(),l(5,"mat-card-title"),p(6),c(),l(7,"mat-card-subtitle"),p(8),c(),l(9,"div",14)(10,"button",15),b("click",function(){let o=I(e).$implicit,r=f(2);return P(r.editEnum(o))}),l(11,"mat-icon"),p(12,"edit"),c()(),l(13,"button",16),b("click",function(){let o=I(e).$implicit,r=f(2);return P(r.deleteEnum(o))}),l(14,"mat-icon"),p(15,"delete"),c()()()(),l(16,"mat-card-content")(17,"div",17),de(18,$P,5,2,"div",18,rx),w(20,GP,2,1,"div",19),c()(),l(21,"mat-card-actions")(22,"button",20),b("click",function(){let o=I(e).$implicit,r=f(2);return P(r.editEnum(o))}),l(23,"mat-icon"),p(24,"edit"),c(),p(25," Edit "),c(),l(26,"button",21),b("click",function(){let o=I(e).$implicit,r=f(2);return P(r.viewEnum(o))}),l(27,"mat-icon"),p(28,"visibility"),c(),p(29," View Code "),c()()()}if(i&2){let e=n.$implicit,t=f(2);j("loading",t.loading),m(6),$(e.name),m(2),U("",e.valueCount," values"),m(10),ue(e.values.slice(0,4)),m(2),C(e.values.length>4?20:-1)}}function YP(i,n){if(i&1&&(l(0,"div",7),de(1,WP,30,5,"mat-card",11,rx),c()),i&2){let e=f();m(),ue(e.enums)}}var sm=class i{constructor(n,e,t){this.enumsService=n;this.dialog=e;this.snackBar=t;this.enums=[];this.displayedColumns=["name","valueCount","actions"];this.loading=!1;this.subscription=new ie}ngOnInit(){this.loadEnums()}ngOnDestroy(){this.subscription.unsubscribe()}loadEnums(){this.loading=!0,this.subscription.add(this.enumsService.getAllEnums().subscribe({next:n=>{this.enums=Object.keys(n).map(e=>{let t=n[e];return{name:e,values:t,valueCount:t.length}}),this.loading=!1},error:n=>{console.error("Failed to load enums:",n),this.snackBar.open("Failed to load enums","Close",{duration:3e3}),this.loading=!1}}))}createEnum(){this.dialog.open(nm,{width:"600px",disableClose:!0}).afterClosed().subscribe(e=>{e&&(this.loadEnums(),this.snackBar.open("Enum created successfully","Close",{duration:3e3}))})}editEnum(n){this.dialog.open(om,{width:"600px",disableClose:!0,data:n}).afterClosed().subscribe(t=>{t&&(this.loadEnums(),this.snackBar.open("Enum updated successfully","Close",{duration:3e3}))})}deleteEnum(n){this.dialog.open(rm,{minWidth:759,data:{title:"Delete Enum",message:`Are you sure you want to delete the enum "${n.name}"? This action is irreversible.`,confirmText:"Delete",cancelText:"Cancel"}}).afterClosed().subscribe(t=>{t&&this.subscription.add(this.enumsService.deleteEnum(n.name).subscribe({next:()=>{this.loadEnums(),this.snackBar.open("Enum deleted successfully","Close",{duration:3e3})},error:o=>{console.error("Failed to delete enum:",o),this.snackBar.open("Failed to delete enum","Close",{duration:3e3})}}))})}viewEnum(n){this.dialog.open(am,{width:"700px",data:n})}getValuesList(n){return n.map(e=>`${e.name} (${e.value})`).join(", ")}static{this.\u0275fac=function(e){return new(e||i)(k(Un),k(Nn),k(Bt))}}static{this.\u0275cmp=E({type:i,selectors:[["app-enum-manager"]],decls:15,vars:1,consts:[[1,"enum-manager-container"],[1,"header"],[1,"title-block"],["mat-stroked-button","",1,"create-button",3,"click"],[1,"content"],[1,"loading-container"],[1,"empty-state"],[1,"enums-grid"],["diameter","40"],[1,"empty-icon"],["mat-raised-button","",1,"primary-action",3,"click"],[1,"enum-card",3,"loading"],[1,"enum-card"],["mat-card-avatar","",1,"enum-avatar"],[1,"card-actions"],["mat-icon-button","","title","Edit enum",1,"edit-btn",3,"click"],["mat-icon-button","","title","Delete enum",1,"delete-btn",3,"click"],[1,"enum-values"],[1,"enum-value-chip"],[1,"more-values"],["mat-button","","color","primary",3,"click"],["mat-button","","color","accent",3,"click"],[1,"value-name"],[1,"value-number"]],template:function(e,t){e&1&&(l(0,"div",0)(1,"div",1)(2,"div",2)(3,"h1"),p(4,"Enum Manager"),c(),l(5,"p"),p(6,"Create and manage C# enumerations for your application"),c()(),l(7,"button",3),b("click",function(){return t.createEnum()}),l(8,"mat-icon"),p(9,"add"),c(),p(10," Create Enum "),c()(),l(11,"div",4),w(12,UP,4,0,"div",5)(13,HP,11,0,"div",6)(14,YP,3,0,"div",7),c()()),e&2&&(m(12),C(t.loading?12:t.enums.length===0?13:14))},dependencies:[Ae,ke,Xe,Ze,fe,Ce,fy,tx,qC,XC,ex,ZC,JC,QC,KC,Uu,Al,To],styles:["[_nghost-%COMP%]{display:flex;flex-grow:1}.enum-manager-container[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;padding:24px;background-color:#141414;color:#fff}.enum-manager-container[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{display:flex;justify-content:space-between;align-items:center;margin-bottom:24px}.enum-manager-container[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .title-block[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{margin:0;font-size:24px;font-weight:500}.enum-manager-container[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .title-block[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:4px 0 0;font-size:14px;color:#ffffffb3}.enum-manager-container[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .create-button[_ngcontent-%COMP%]{color:#ac99ea;border:1px solid rgba(213,204,245,.5);border-radius:4px;transition:background-color .2s ease;padding:6px 16px}.enum-manager-container[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .create-button[_ngcontent-%COMP%]:hover{background-color:#ac99ea1a}.enum-manager-container[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .create-button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px}.enum-manager-container[_ngcontent-%COMP%] .content[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column}.enum-manager-container[_ngcontent-%COMP%] .loading-container[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:80px 24px;text-align:center}.enum-manager-container[_ngcontent-%COMP%] .loading-container[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%]{margin-bottom:16px}.enum-manager-container[_ngcontent-%COMP%] .loading-container[_ngcontent-%COMP%] mat-spinner[_ngcontent-%COMP%] circle{stroke:#ac99ea}.enum-manager-container[_ngcontent-%COMP%] .loading-container[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{color:#ffffffb3;margin:0}.enum-manager-container[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%]{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:32px 0}.enum-manager-container[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] .empty-icon[_ngcontent-%COMP%]{font-size:64px;width:64px;height:64px;color:#ffffffb3;margin-bottom:16px;opacity:.5}.enum-manager-container[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{margin:0 0 8px;font-size:20px;font-weight:500}.enum-manager-container[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:0 0 24px;font-size:14px;color:#ffffffb3;max-width:400px;line-height:1.5}.enum-manager-container[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] .primary-action[_ngcontent-%COMP%]{border-radius:4px;background-color:#ac99ea;color:#212121;transition:background-color .2s ease;padding:6px 16px}.enum-manager-container[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] .primary-action[_ngcontent-%COMP%]:hover{background-color:#8a6fe1}.enum-manager-container[_ngcontent-%COMP%] .empty-state[_ngcontent-%COMP%] .primary-action[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:8px}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fill,minmax(320px,1fr));gap:16px;padding:0}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%]{background-color:#1e1e1e;border-radius:8px;border:1px solid rgba(255,255,255,.12);transition:all .2s ease;overflow:hidden}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%]:hover{background-color:#232323;border-color:#ac99ea4d}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%]{padding:16px;border-bottom:1px solid rgba(255,255,255,.12)}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .enum-avatar[_ngcontent-%COMP%]{background-color:#ac99ea;color:#212121;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:4px}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .enum-avatar[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:20px;width:20px;height:20px}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .mat-mdc-card-title[_ngcontent-%COMP%]{font-size:16px;font-weight:500;color:#fff;margin:0}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .mat-mdc-card-subtitle[_ngcontent-%COMP%]{font-size:14px;color:#ffffffb3;margin:2px 0 0}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .card-actions[_ngcontent-%COMP%]{margin-left:auto;display:flex;gap:4px}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .card-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:4px;transition:all .2s ease}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .card-actions[_ngcontent-%COMP%] button.edit-btn[_ngcontent-%COMP%]{color:#ac99ea}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .card-actions[_ngcontent-%COMP%] button.edit-btn[_ngcontent-%COMP%]:hover{background-color:#ac99ea1a}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .card-actions[_ngcontent-%COMP%] button.delete-btn[_ngcontent-%COMP%]{color:#ef5350}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .card-actions[_ngcontent-%COMP%] button.delete-btn[_ngcontent-%COMP%]:hover{background-color:#ef53501a}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-header[_ngcontent-%COMP%] .card-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:16px;width:min-content;height:min-content;margin-bottom:8px}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-content[_ngcontent-%COMP%]{padding:16px}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-content[_ngcontent-%COMP%] .enum-values[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:6px}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-content[_ngcontent-%COMP%] .enum-values[_ngcontent-%COMP%] .enum-value-chip[_ngcontent-%COMP%]{display:flex;align-items:center;background-color:#232323;border:1px solid rgba(255,255,255,.12);border-radius:12px;padding:4px 8px;font-size:12px;transition:all .2s ease}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-content[_ngcontent-%COMP%] .enum-values[_ngcontent-%COMP%] .enum-value-chip[_ngcontent-%COMP%]:hover{background-color:#2e2e2e}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-content[_ngcontent-%COMP%] .enum-values[_ngcontent-%COMP%] .enum-value-chip[_ngcontent-%COMP%] .value-name[_ngcontent-%COMP%]{font-weight:500;color:#fff}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-content[_ngcontent-%COMP%] .enum-values[_ngcontent-%COMP%] .enum-value-chip[_ngcontent-%COMP%] .value-number[_ngcontent-%COMP%]{margin-left:6px;background-color:#ac99ea;color:#212121;border-radius:8px;padding:1px 6px;font-size:11px;font-weight:500}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-content[_ngcontent-%COMP%] .enum-values[_ngcontent-%COMP%] .more-values[_ngcontent-%COMP%]{display:flex;align-items:center;color:#ffffffb3;font-size:12px;font-style:italic;padding:4px 8px}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-actions[_ngcontent-%COMP%]{padding:12px 16px;border-top:1px solid rgba(255,255,255,.12);display:flex;gap:8px}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%]{flex:1;border-radius:4px;font-size:12px;font-weight:500;padding:6px 12px;transition:all .2s ease}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-actions[_ngcontent-%COMP%] button[color=primary][_ngcontent-%COMP%]{color:#ac99ea;border:1px solid rgba(172,153,234,.3)}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-actions[_ngcontent-%COMP%] button[color=primary][_ngcontent-%COMP%]:hover{background-color:#ac99ea1a}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-actions[_ngcontent-%COMP%] button[color=accent][_ngcontent-%COMP%]{color:#66bb6a;border:1px solid rgba(102,187,106,.3)}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-actions[_ngcontent-%COMP%] button[color=accent][_ngcontent-%COMP%]:hover{background-color:#66bb6a1a}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%] .enum-card[_ngcontent-%COMP%] .mat-mdc-card-actions[_ngcontent-%COMP%] button[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{margin-right:4px;font-size:14px;width:14px;height:14px}@media (max-width: 768px){.enum-manager-container[_ngcontent-%COMP%]{padding:16px}.enum-manager-container[_ngcontent-%COMP%] .header[_ngcontent-%COMP%]{flex-direction:column;align-items:flex-start;gap:16px}.enum-manager-container[_ngcontent-%COMP%] .header[_ngcontent-%COMP%] .create-button[_ngcontent-%COMP%]{align-self:stretch;justify-content:center}.enum-manager-container[_ngcontent-%COMP%] .enums-grid[_ngcontent-%COMP%]{grid-template-columns:1fr;gap:12px}}"]})}};var Pa=q("[Auth] Login",ne()),Bl=q("[Auth] Login Success",ne()),lm=q("[Auth] Login Failure",ne()),Ra=q("[Auth] Register",ne()),ur=q("[Auth] Register Success",ne()),Fa=q("[Auth] Register Failure",ne()),$n=q("[Auth] Check Auth Status"),cm=q("[Auth] Auth Status Success",ne()),jl=q("[Auth] Auth Status Failure"),Ao=q("[Auth] Logout"),zl=q("[Auth] Logout Success");function qP(i,n){i&1&&(l(0,"div",6),p(1),c()),i&2&&(m(),$(n))}function KP(i,n){i&1&&(l(0,"div",11),p(1,"Username is required"),c())}function ZP(i,n){i&1&&p(0," Email is required ")}function QP(i,n){i&1&&p(0," Please enter a valid email address ")}function XP(i,n){if(i&1&&(l(0,"div",11),w(1,ZP,1,0)(2,QP,1,0),c()),i&2){let e,t=f(2);m(),C(!((e=t.authForm.get("email"))==null||e.errors==null)&&e.errors.required?1:!((e=t.authForm.get("email"))==null||e.errors==null)&&e.errors.email?2:-1)}}function JP(i,n){if(i&1&&(l(0,"div",8)(1,"label",19),p(2,"Email address"),c(),M(3,"input",20),w(4,XP,3,1,"div",11),c()),i&2){let e,t=f();m(4),C((e=t.authForm.get("email"))!=null&&e.invalid&&((e=t.authForm.get("email"))!=null&&e.touched)?4:-1)}}function eR(i,n){i&1&&p(0," Password is required ")}function tR(i,n){i&1&&p(0," Password must be at least 8 characters long ")}function iR(i,n){if(i&1&&(l(0,"div",11),w(1,eR,1,0)(2,tR,1,0),c()),i&2){let e,t=f();m(),C(!((e=t.authForm.get("password"))==null||e.errors==null)&&e.errors.required?1:!((e=t.authForm.get("password"))==null||e.errors==null)&&e.errors.minlength?2:-1)}}function nR(i,n){i&1&&(l(0,"div",11),p(1,"Please confirm your password"),c())}function oR(i,n){i&1&&(l(0,"div",11),p(1,"Passwords do not match"),c())}function rR(i,n){if(i&1&&w(0,nR,2,0,"div",11)(1,oR,2,0,"div",11),i&2){let e,t=f(2);C(!((e=t.authForm.get("confirmPassword"))==null||e.errors==null)&&e.errors.required?0:t.authForm.hasError("passwordMismatch")?1:-1)}}function aR(i,n){if(i&1&&(l(0,"div",8)(1,"label",21),p(2,"Confirm Password"),c(),M(3,"input",22),w(4,rR,2,1),c()),i&2){let e,t=f();m(4),C((e=t.authForm.get("confirmPassword"))!=null&&e.touched?4:-1)}}function sR(i,n){i&1&&(l(0,"div",11),p(1,"You must accept the terms and conditions"),c())}function lR(i,n){i&1&&p(0," Loading... ")}function cR(i,n){if(i&1&&p(0),i&2){let e=f();U(" ",e.isLoginMode?"Sign in":"Register"," ")}}function dR(i,n){i&1&&(l(0,"div",18),p(1," Please fix the validation errors before submitting "),c())}function uR(){return i=>{let n=i.get("password"),e=i.get("confirmPassword");return!n||!e||n.value===e.value?null:{passwordMismatch:!0}}}var dm=class i{constructor(n,e,t){this.fb=n;this.store=e;this.actions$=t;this.isLoginMode=!0;this.showPasswordRequirements=!1;this.isLoading$=this.store.select(yC),this.errorMessage$=this.store.select(CC)}ngOnInit(){this.initializeForm(),this.registerSuccessSub=this.actions$.pipe(Ee(ur)).subscribe(()=>{this.isLoginMode=!0}),this.isLoginMode||this.authForm.get("password")?.valueChanges.subscribe(()=>{this.showPasswordRequirements=!0})}ngOnDestroy(){this.registerSuccessSub&&this.registerSuccessSub.unsubscribe()}initializeForm(){this.isLoginMode?this.authForm=this.fb.group({username:["",me.required],password:["",me.required],termsAccepted:[!1,me.requiredTrue]}):(this.authForm=this.fb.group({username:["",me.required],email:["",[me.required,me.email]],password:["",[me.required,me.minLength(8)]],confirmPassword:["",me.required],termsAccepted:[!1,me.requiredTrue]},{validators:uR()}),this.showPasswordRequirements=!1)}toggleAuthMode(){this.isLoginMode=!this.isLoginMode,this.initializeForm(),this.store.dispatch(Fa({error:""}))}onSubmit(){if(this.authForm.valid)if(this.isLoginMode){let{username:n,password:e}=this.authForm.value;this.store.dispatch(Pa({username:n,password:e}))}else{let{username:n,email:e,password:t}=this.authForm.value;this.store.dispatch(Ra({username:n,email:e,password:t}))}else Object.keys(this.authForm.controls).forEach(n=>{this.authForm.get(n)?.markAsTouched()})}static{this.\u0275fac=function(e){return new(e||i)(k(mi),k(he),k(Hn))}}static{this.\u0275cmp=E({type:i,selectors:[["app-auth"]],decls:36,vars:19,consts:[[1,"auth-container"],[1,"auth-card"],[1,"title"],[1,"subtitle"],[1,"toggle-prompt"],[1,"toggle-link",3,"click"],[1,"error-banner"],[3,"ngSubmit","formGroup"],[1,"form-field"],["for","username"],["type","text","id","username","formControlName","username","placeholder","johndoe"],[1,"error-message"],["for","password"],["type","password","id","password","formControlName","password","placeholder","**********"],[1,"terms-checkbox"],["type","checkbox","id","terms","formControlName","termsAccepted"],["for","terms"],["type","submit",1,"submit-button",3,"disabled"],[1,"error-message","form-validation-summary"],["for","email"],["type","email","id","email","formControlName","email","placeholder","john@gmail.com"],["for","confirmPassword"],["type","password","id","confirmPassword","formControlName","confirmPassword","placeholder","**********"]],template:function(e,t){if(e&1&&(l(0,"div",0)(1,"div",1)(2,"h1",2),p(3,"Welcome to dappi"),c(),l(4,"p",3),p(5),c(),l(6,"p",4),p(7),l(8,"a",5),b("click",function(){return t.toggleAuthMode()}),p(9),c()(),w(10,qP,2,1,"div",6),gt(11,"async"),l(12,"form",7),b("ngSubmit",function(){return t.onSubmit()}),l(13,"div",8)(14,"label",9),p(15,"Username"),c(),M(16,"input",10),w(17,KP,2,0,"div",11),c(),w(18,JP,5,1,"div",8),l(19,"div",8)(20,"label",12),p(21,"Password"),c(),M(22,"input",13),w(23,iR,3,1,"div",11),c(),w(24,aR,5,1,"div",8),l(25,"div",14),M(26,"input",15),l(27,"label",16),p(28,"I accept the Terms and Conditions"),c(),w(29,sR,2,0,"div",11),c(),l(30,"button",17),gt(31,"async"),w(32,lR,1,0),gt(33,"async"),w(34,cR,1,1),c(),w(35,dR,2,0,"div",18),c()()()),e&2){let o,r,a,s;m(5),U(" ",t.isLoginMode?"Login to your dappi account.":"Create your dappi account."," "),m(2),U(" ",t.isLoginMode?"You don't have account?":"Already have an account?"," "),m(2),U(" ",t.isLoginMode?"Register here":"Login here"," "),m(),C((o=Ot(11,13,t.errorMessage$))?10:-1,o),m(2),x("formGroup",t.authForm),m(5),C((r=t.authForm.get("username"))!=null&&r.invalid&&((r=t.authForm.get("username"))!=null&&r.touched)?17:-1),m(),C(t.isLoginMode?-1:18),m(5),C(!t.isLoginMode&&((a=t.authForm.get("password"))!=null&&a.invalid)&&((a=t.authForm.get("password"))!=null&&a.touched)?23:-1),m(),C(t.isLoginMode?-1:24),m(5),C((s=t.authForm.get("termsAccepted"))!=null&&s.invalid&&((s=t.authForm.get("termsAccepted"))!=null&&s.touched)?29:-1),m(),x("disabled",!t.authForm.valid||Ot(31,15,t.isLoading$)),m(2),C(Ot(33,17,t.isLoading$)?32:34),m(3),C(!t.authForm.valid&&t.authForm.touched?35:-1)}},dependencies:[Ae,Ci,hi,ui,Mt,Mh,Pt,di,bt,ki],styles:["[_nghost-%COMP%]{display:flex;flex-grow:1;height:100vh;width:100vw}.auth-container[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;width:100%;height:100%}.auth-card[_ngcontent-%COMP%]{background-color:#1e1e1e;border-radius:8px;padding:32px;width:100%;max-width:450px;box-shadow:0 4px 8px #0003}.title[_ngcontent-%COMP%]{font-size:24px;font-weight:500;color:#fff;margin:0 0 8px;text-align:center}.subtitle[_ngcontent-%COMP%]{font-size:16px;color:#ffffffb3;margin:0 0 8px;text-align:center}.toggle-prompt[_ngcontent-%COMP%]{font-size:14px;color:#ffffffb3;margin:0 0 32px;text-align:center}.toggle-link[_ngcontent-%COMP%]{color:#ac99ea;cursor:pointer;text-decoration:none}.toggle-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.form-field[_ngcontent-%COMP%]{margin-bottom:16px}.form-field[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{display:block;font-size:12px;color:#ffffffb3;margin-bottom:8px}.form-field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{width:100%;padding:12px 16px;border:1px solid rgba(255,255,255,.12);border-radius:4px;background-color:transparent;color:#fff;font-size:16px;box-sizing:border-box}.form-field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]:focus{outline:none;border-color:#ac99ea}.form-field[_ngcontent-%COMP%] input[_ngcontent-%COMP%]::placeholder{color:#ffffff61}.error-message[_ngcontent-%COMP%]{color:#ef5350;font-size:12px;margin-top:4px}.terms-checkbox[_ngcontent-%COMP%]{display:flex;align-items:center;margin-bottom:24px}.terms-checkbox[_ngcontent-%COMP%] input[type=checkbox][_ngcontent-%COMP%]{margin-right:8px;width:18px;height:18px;accent-color:#ac99ea}.terms-checkbox[_ngcontent-%COMP%] label[_ngcontent-%COMP%]{font-size:14px;color:#ffffffb3}.submit-button[_ngcontent-%COMP%]{width:100%;padding:12px;border:none;border-radius:4px;background-color:#ac99ea;color:#212121;font-size:16px;font-weight:500;cursor:pointer;transition:background-color .2s ease}.submit-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#8a6fe1}.submit-button[_ngcontent-%COMP%]:disabled{background-color:#ffffff1f;color:#ffffff61;cursor:not-allowed}.error-banner[_ngcontent-%COMP%]{background-color:#ff00001a;border:1px solid #ef5350;color:#ef5350;padding:10px;border-radius:4px;margin-bottom:16px;font-size:14px}.submit-button[_ngcontent-%COMP%]:disabled{cursor:not-allowed}"]})}};var mr=()=>{let i=d(he),n=d($e);return i.dispatch($n()),i.select(wa).pipe(_e(1),A(e=>e?!0:n.createUrlTree(["/auth"])))};var ax=(i,n)=>{let e=d(he),t=d($e);return e.dispatch($n()),e.select(wa).pipe(_e(1),A(o=>o?t.createUrlTree(["/home"]):!0))};var sx=[{path:"",redirectTo:"/home",pathMatch:"full"},{path:"home",component:Mu,canActivate:[mr]},{path:"builder",component:Wu,canActivate:[mr]},{path:"content-manager",component:Zu,canActivate:[mr]},{path:"content-create",component:tm,canActivate:[mr]},{path:"schema-importer",component:im,canActivate:[mr]},{path:"enum-manager",component:sm,canActivate:[mr]},{path:"auth",component:dm,canActivate:[ax]},{path:"**",redirectTo:"/home"}];var mR="@",pR=(()=>{class i{doc;delegate;zone;animationType;moduleImpl;_rendererFactoryPromise=null;scheduler=null;injector=d(ce);loadingSchedulerFn=d(hR,{optional:!0});_engine;constructor(e,t,o,r,a){this.doc=e,this.delegate=t,this.zone=o,this.animationType=r,this.moduleImpl=a}ngOnDestroy(){this._engine?.flush()}loadImpl(){let e=()=>this.moduleImpl??import("./chunk-MOBSJJVZ.js").then(o=>o),t;return this.loadingSchedulerFn?t=this.loadingSchedulerFn(e):t=e(),t.catch(o=>{throw new be(5300,!1)}).then(({\u0275createEngine:o,\u0275AnimationRendererFactory:r})=>{this._engine=o(this.animationType,this.doc);let a=new r(this.delegate,this._engine,this.zone);return this.delegate=a,a})}createRenderer(e,t){let o=this.delegate.createRenderer(e,t);if(o.\u0275type===0)return o;typeof o.throwOnSyntheticProps=="boolean"&&(o.throwOnSyntheticProps=!1);let r=new Nf(o);return t?.data?.animation&&!this._rendererFactoryPromise&&(this._rendererFactoryPromise=this.loadImpl()),this._rendererFactoryPromise?.then(a=>{let s=a.createRenderer(e,t);r.use(s),this.scheduler??=this.injector.get(mg,null,{optional:!0}),this.scheduler?.notify(10)}).catch(a=>{r.use(o)}),r}begin(){this.delegate.begin?.()}end(){this.delegate.end?.()}whenRenderingDone(){return this.delegate.whenRenderingDone?.()??Promise.resolve()}componentReplaced(e){this._engine?.flush(),this.delegate.componentReplaced?.(e)}static \u0275fac=function(t){Cr()};static \u0275prov=D({token:i,factory:i.\u0275fac})}return i})(),Nf=class{delegate;replay=[];\u0275type=1;constructor(n){this.delegate=n}use(n){if(this.delegate=n,this.replay!==null){for(let e of this.replay)e(n);this.replay=null}}get data(){return this.delegate.data}destroy(){this.replay=null,this.delegate.destroy()}createElement(n,e){return this.delegate.createElement(n,e)}createComment(n){return this.delegate.createComment(n)}createText(n){return this.delegate.createText(n)}get destroyNode(){return this.delegate.destroyNode}appendChild(n,e){this.delegate.appendChild(n,e)}insertBefore(n,e,t,o){this.delegate.insertBefore(n,e,t,o)}removeChild(n,e,t){this.delegate.removeChild(n,e,t)}selectRootElement(n,e){return this.delegate.selectRootElement(n,e)}parentNode(n){return this.delegate.parentNode(n)}nextSibling(n){return this.delegate.nextSibling(n)}setAttribute(n,e,t,o){this.delegate.setAttribute(n,e,t,o)}removeAttribute(n,e,t){this.delegate.removeAttribute(n,e,t)}addClass(n,e){this.delegate.addClass(n,e)}removeClass(n,e){this.delegate.removeClass(n,e)}setStyle(n,e,t,o){this.delegate.setStyle(n,e,t,o)}removeStyle(n,e,t){this.delegate.removeStyle(n,e,t)}setProperty(n,e,t){this.shouldReplay(e)&&this.replay.push(o=>o.setProperty(n,e,t)),this.delegate.setProperty(n,e,t)}setValue(n,e){this.delegate.setValue(n,e)}listen(n,e,t,o){return this.shouldReplay(e)&&this.replay.push(r=>r.listen(n,e,t,o)),this.delegate.listen(n,e,t,o)}shouldReplay(n){return this.replay!==null&&n.startsWith(mR)}},hR=new v("");function lx(i="animations"){return No("NgAsyncAnimations"),ii([{provide:yt,useFactory:(n,e,t)=>new pR(n,e,t,i),deps:[re,ds,K]},{provide:ze,useValue:i==="noop"?"NoopAnimations":"BrowserAnimations"}])}var Hl="PERFORM_ACTION",fR="REFRESH",hx="RESET",fx="ROLLBACK",gx="COMMIT",_x="SWEEP",bx="TOGGLE_ACTION",gR="SET_ACTIONS_ACTIVE",vx="JUMP_TO_STATE",yx="JUMP_TO_ACTION",Kf="IMPORT_STATE",Cx="LOCK_CHANGES",xx="PAUSE_RECORDING",La=class{constructor(n,e){if(this.action=n,this.timestamp=e,this.type=Hl,typeof n.type>"u")throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?')}},Lf=class{constructor(){this.type=fR}},Vf=class{constructor(n){this.timestamp=n,this.type=hx}},Bf=class{constructor(n){this.timestamp=n,this.type=fx}},jf=class{constructor(n){this.timestamp=n,this.type=gx}},zf=class{constructor(){this.type=_x}},Uf=class{constructor(n){this.id=n,this.type=bx}};var Hf=class{constructor(n){this.index=n,this.type=vx}},$f=class{constructor(n){this.actionId=n,this.type=yx}},Gf=class{constructor(n){this.nextLiftedState=n,this.type=Kf}},Wf=class{constructor(n){this.status=n,this.type=Cx}},Yf=class{constructor(n){this.status=n,this.type=xx}};var hm=new v("@ngrx/store-devtools Options"),cx=new v("@ngrx/store-devtools Initial Config");function wx(){return null}var _R="NgRx Store DevTools";function bR(i){let n={maxAge:!1,monitor:wx,actionSanitizer:void 0,stateSanitizer:void 0,name:_R,serialize:!1,logOnly:!1,autoPause:!1,trace:!1,traceLimit:75,features:{pause:!0,lock:!0,persist:!0,export:!0,import:"custom",jump:!0,skip:!0,reorder:!0,dispatch:!0,test:!0},connectInZone:!1},e=typeof i=="function"?i():i,t=e.logOnly?{pause:!0,export:!0,test:!0}:!1,o=e.features||t||n.features;o.import===!0&&(o.import="custom");let r=Object.assign({},n,{features:o},e);if(r.maxAge&&r.maxAge<2)throw new Error(`Devtools 'maxAge' cannot be less than 2, got ${r.maxAge}`);return r}function dx(i,n){return i.filter(e=>n.indexOf(e)<0)}function Dx(i){let{computedStates:n,currentStateIndex:e}=i;if(e>=n.length){let{state:o}=n[n.length-1];return o}let{state:t}=n[e];return t}function Ul(i){return new La(i,+Date.now())}function vR(i,n){return Object.keys(n).reduce((e,t)=>{let o=Number(t);return e[o]=Mx(i,n[o],o),e},{})}function Mx(i,n,e){return O(_({},n),{action:i(n.action,e)})}function yR(i,n){return n.map((e,t)=>({state:kx(i,e.state,t),error:e.error}))}function kx(i,n,e){return i(n,e)}function Sx(i){return i.predicate||i.actionsSafelist||i.actionsBlocklist}function CR(i,n,e,t){let o=[],r={},a=[];return i.stagedActionIds.forEach((s,u)=>{let h=i.actionsById[s];h&&(u&&Zf(i.computedStates[u],h,n,e,t)||(r[s]=h,o.push(s),a.push(i.computedStates[u])))}),O(_({},i),{stagedActionIds:o,actionsById:r,computedStates:a})}function Zf(i,n,e,t,o){let r=e&&!e(i,n.action),a=t&&!n.action.type.match(t.map(u=>ux(u)).join("|")),s=o&&n.action.type.match(o.map(u=>ux(u)).join("|"));return r||a||s}function ux(i){return i.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function Ex(i){return{ngZone:i?d(K):null,connectInZone:i}}var fm=(()=>{class i extends Bn{static{this.\u0275fac=(()=>{let e;return function(o){return(e||(e=Ve(i)))(o||i)}})()}static{this.\u0275prov=D({token:i,factory:i.\u0275fac})}}return i})(),um={START:"START",DISPATCH:"DISPATCH",STOP:"STOP",ACTION:"ACTION"},qf=new v("@ngrx/store-devtools Redux Devtools Extension"),Ox=(()=>{class i{constructor(e,t,o){this.config=t,this.dispatcher=o,this.zoneConfig=Ex(this.config.connectInZone),this.devtoolsExtension=e,this.createActionStreams()}notify(e,t){if(this.devtoolsExtension)if(e.type===Hl){if(t.isLocked||t.isPaused)return;let o=Dx(t);if(Sx(this.config)&&Zf(o,e,this.config.predicate,this.config.actionsSafelist,this.config.actionsBlocklist))return;let r=this.config.stateSanitizer?kx(this.config.stateSanitizer,o,t.currentStateIndex):o,a=this.config.actionSanitizer?Mx(this.config.actionSanitizer,e,t.nextActionId):e;this.sendToReduxDevtools(()=>this.extensionConnection.send(a,r))}else{let o=O(_({},t),{stagedActionIds:t.stagedActionIds,actionsById:this.config.actionSanitizer?vR(this.config.actionSanitizer,t.actionsById):t.actionsById,computedStates:this.config.stateSanitizer?yR(this.config.stateSanitizer,t.computedStates):t.computedStates});this.sendToReduxDevtools(()=>this.devtoolsExtension.send(null,o,this.getExtensionConfig(this.config)))}}createChangesObservable(){return this.devtoolsExtension?new mt(e=>{let t=this.zoneConfig.connectInZone?this.zoneConfig.ngZone.runOutsideAngular(()=>this.devtoolsExtension.connect(this.getExtensionConfig(this.config))):this.devtoolsExtension.connect(this.getExtensionConfig(this.config));return this.extensionConnection=t,t.init(),t.subscribe(o=>e.next(o)),t.unsubscribe}):Rt}createActionStreams(){let e=this.createChangesObservable().pipe(Yl()),t=e.pipe(le(h=>h.type===um.START)),o=e.pipe(le(h=>h.type===um.STOP)),r=e.pipe(le(h=>h.type===um.DISPATCH),A(h=>this.unwrapAction(h.payload)),qt(h=>h.type===Kf?this.dispatcher.pipe(le(g=>g.type===zd),ig(1e3),yn(1e3),A(()=>h),ve(()=>T(h)),_e(1)):T(h))),s=e.pipe(le(h=>h.type===um.ACTION),A(h=>this.unwrapAction(h.payload))).pipe(pe(o)),u=r.pipe(pe(o));this.start$=t.pipe(pe(o)),this.actions$=this.start$.pipe(Pe(()=>s)),this.liftedActions$=this.start$.pipe(Pe(()=>u))}unwrapAction(e){return typeof e=="string"?(0,eval)(`(${e})`):e}getExtensionConfig(e){let t={name:e.name,features:e.features,serialize:e.serialize,autoPause:e.autoPause??!1,trace:e.trace??!1,traceLimit:e.traceLimit??75};return e.maxAge!==!1&&(t.maxAge=e.maxAge),t}sendToReduxDevtools(e){try{e()}catch(t){console.warn("@ngrx/store-devtools: something went wrong inside the redux devtools",t)}}static{this.\u0275fac=function(t){return new(t||i)(N(qf),N(hm),N(fm))}}static{this.\u0275prov=D({token:i,factory:i.\u0275fac})}}return i})(),pm={type:dl},xR="@ngrx/store-devtools/recompute",wR={type:xR};function Tx(i,n,e,t,o){if(t)return{state:e,error:"Interrupted by an error up the chain"};let r=e,a;try{r=i(e,n)}catch(s){a=s.toString(),o.handleError(s)}return{state:r,error:a}}function mm(i,n,e,t,o,r,a,s,u){if(n>=i.length&&i.length===r.length)return i;let h=i.slice(0,n),g=r.length-(u?1:0);for(let y=n;y-1?H:Tx(e,F,B,J,s);h.push(at)}return u&&h.push(i[i.length-1]),h}function DR(i,n){return{monitorState:n(void 0,{}),nextActionId:1,actionsById:{0:Ul(pm)},stagedActionIds:[0],skippedActionIds:[],committedState:i,currentStateIndex:0,computedStates:[],isLocked:!1,isPaused:!1}}function MR(i,n,e,t,o={}){return r=>(a,s)=>{let{monitorState:u,actionsById:h,nextActionId:g,stagedActionIds:y,skippedActionIds:R,committedState:F,currentStateIndex:H,computedStates:B,isLocked:J,isPaused:Fe}=a||n;a||(h=Object.create(h));function at(et){let st=et,oo=y.slice(1,st+1);for(let en=0;enoo.indexOf(en)===-1),y=[0,...y.slice(st+1)],F=B[st].state,B=B.slice(st),H=H>st?H-st:0}function De(){h={0:Ul(pm)},g=1,y=[0],R=[],F=B[H].state,H=0,B=[]}let Ne=0;switch(s.type){case Cx:{J=s.status,Ne=1/0;break}case xx:{Fe=s.status,Fe?(y=[...y,g],h[g]=new La({type:"@ngrx/devtools/pause"},+Date.now()),g++,Ne=y.length-1,B=B.concat(B[B.length-1]),H===y.length-2&&H++,Ne=1/0):De();break}case hx:{h={0:Ul(pm)},g=1,y=[0],R=[],F=i,H=0,B=[];break}case gx:{De();break}case fx:{h={0:Ul(pm)},g=1,y=[0],R=[],H=0,B=[];break}case bx:{let{id:et}=s;R.indexOf(et)===-1?R=[et,...R]:R=R.filter(oo=>oo!==et),Ne=y.indexOf(et);break}case gR:{let{start:et,end:st,active:oo}=s,en=[];for(let xm=et;xmo.maxAge&&(B=mm(B,Ne,r,F,h,y,R,e,Fe),at(y.length-o.maxAge),Ne=1/0);break}case zd:{if(B.filter(st=>st.error).length>0)Ne=0,o.maxAge&&y.length>o.maxAge&&(B=mm(B,Ne,r,F,h,y,R,e,Fe),at(y.length-o.maxAge),Ne=1/0);else{if(!Fe&&!J){H===y.length-1&&H++;let st=g++;h[st]=new La(s,+Date.now()),y=[...y,st],Ne=y.length-1,B=mm(B,Ne,r,F,h,y,R,e,Fe)}B=B.map(st=>O(_({},st),{state:r(st.state,wR)})),H=y.length-1,o.maxAge&&y.length>o.maxAge&&at(y.length-o.maxAge),Ne=1/0}break}default:{Ne=1/0;break}}return B=mm(B,Ne,r,F,h,y,R,e,Fe),u=t(u,s),{monitorState:u,actionsById:h,nextActionId:g,stagedActionIds:y,skippedActionIds:R,committedState:F,currentStateIndex:H,computedStates:B,isLocked:J,isPaused:Fe}}}var mx=(()=>{class i{constructor(e,t,o,r,a,s,u,h){let g=DR(u,h.monitor),y=MR(u,g,s,h.monitor,h),R=Le(Le(t.asObservable().pipe(fr(1)),r.actions$).pipe(A(Ul)),e,r.liftedActions$).pipe(Gl($l)),F=o.pipe(A(y)),H=Ex(h.connectInZone),B=new eg(1);this.liftedStateSubscription=R.pipe(fi(F),px(H),hr(({state:at},[De,Ne])=>{let et=Ne(at,De);return De.type!==Hl&&Sx(h)&&(et=CR(et,h.predicate,h.actionsSafelist,h.actionsBlocklist)),r.notify(De,et),{state:et,action:De}},{state:g,action:null})).subscribe(({state:at,action:De})=>{if(B.next(at),De.type===Hl){let Ne=De.action;a.next(Ne)}}),this.extensionStartSubscription=r.start$.pipe(px(H)).subscribe(()=>{this.refresh()});let J=B.asObservable(),Fe=J.pipe(A(Dx));Object.defineProperty(Fe,"state",{value:sl(Fe,{manualCleanup:!0,requireSync:!0})}),this.dispatcher=e,this.liftedState=J,this.state=Fe}ngOnDestroy(){this.liftedStateSubscription.unsubscribe(),this.extensionStartSubscription.unsubscribe()}dispatch(e){this.dispatcher.next(e)}next(e){this.dispatcher.next(e)}error(e){}complete(){}performAction(e){this.dispatch(new La(e,+Date.now()))}refresh(){this.dispatch(new Lf)}reset(){this.dispatch(new Vf(+Date.now()))}rollback(){this.dispatch(new Bf(+Date.now()))}commit(){this.dispatch(new jf(+Date.now()))}sweep(){this.dispatch(new zf)}toggleAction(e){this.dispatch(new Uf(e))}jumpToAction(e){this.dispatch(new $f(e))}jumpToState(e){this.dispatch(new Hf(e))}importState(e){this.dispatch(new Gf(e))}lockChanges(e){this.dispatch(new Wf(e))}pauseRecording(e){this.dispatch(new Yf(e))}static{this.\u0275fac=function(t){return new(t||i)(N(fm),N(Bn),N(ar),N(Ox),N(sr),N(Ri),N(ul),N(hm))}}static{this.\u0275prov=D({token:i,factory:i.\u0275fac})}}return i})();function px({ngZone:i,connectInZone:n}){return e=>n?new mt(t=>e.subscribe({next:o=>i.run(()=>t.next(o)),error:o=>i.run(()=>t.error(o)),complete:()=>i.run(()=>t.complete())})):e}var kR=new v("@ngrx/store-devtools Is Devtools Extension or Monitor Present");function SR(i,n){return!!i||n.monitor!==wx}function ER(){let i="__REDUX_DEVTOOLS_EXTENSION__";return typeof window=="object"&&typeof window[i]<"u"?window[i]:null}function OR(i){return i.state}function Ax(i={}){return ii([Ox,fm,mx,{provide:cx,useValue:i},{provide:kR,deps:[qf,hm],useFactory:SR},{provide:qf,useFactory:ER},{provide:hm,deps:[cx],useFactory:bR},{provide:oa,deps:[mx],useFactory:OR},{provide:na,useExisting:fm}])}var Ix={currentItem:void 0,items:void 0,headers:[],selectedType:"",loading:!1,error:null,totalItems:0,itemsPerPage:10,isSearching:!1,relatedItems:void 0,loadingContentTypeChanges:!1,contentTypeChanges:null};var Px=aa(Ix,oe(ei,i=>O(_({},i),{loading:!0,error:null})),oe(pu,(i,{items:n})=>O(_({},i),{items:n,loading:!1})),oe(fu,(i,{error:n})=>O(_({},i),{loading:!1,error:n})),oe(ma,i=>O(_({},i),{loading:!0,error:null})),oe(hu,(i,{relatedItems:n,relatedType:e})=>O(_({},i),{loading:!1,relatedItems:O(_({},i.relatedItems),{[e]:n})})),oe(gu,(i,{error:n})=>O(_({},i),{loading:!1,error:n})),oe(Zi,(i,{selectedType:n})=>O(_({},i),{selectedType:n,currentPage:1})),oe(bu,(i,{headers:n})=>O(_({},i),{headers:n})),oe(pa,(i,{currentItem:n})=>O(_({},i),{currentItem:n})),oe(ha,i=>O(_({},i),{loading:!0})),oe(wl,i=>O(_({},i),{loading:!1})),oe(vu,(i,{error:n})=>O(_({},i),{loading:!1,error:n})),oe(fa,i=>O(_({},i),{loading:!0})),oe(Dl,i=>O(_({},i),{selectedItems:new Set,loading:!1})),oe(yu,(i,{error:n})=>O(_({},i),{loading:!1,error:n})),oe(ga,i=>O(_({},i),{loading:!0,error:null})),oe(dr,i=>O(_({},i),{loading:!1})),oe(Cu,(i,{error:n})=>O(_({},i),{loading:!1,error:n})),oe(_a,i=>O(_({},i),{loading:!0,error:null})),oe(ky,i=>O(_({},i),{loading:!1})),oe(xu,(i,{error:n})=>O(_({},i),{loading:!1,error:n})),oe(xl,(i,{isSearching:n})=>O(_({},i),{isSearching:n})),oe(ua,i=>O(_({},i),{loadingContentTypeChanges:!0,error:null})),oe(cu,(i,{changes:n})=>O(_({},i),{contentTypeChanges:n,loadingContentTypeChanges:!1,error:null})),oe(du,(i,{error:n})=>O(_({},i),{loadingContentTypeChanges:!1,error:n})));var gm=class i{constructor(){this.actions$=d(Hn);this.http=d(si);this.store=d(he);this.snackBar=d(Bt);this.enumsData=null;this.headers={};this.loadContent$=je(()=>this.actions$.pipe(Ee(ei),fi(this.store.select(ut)),Ie(([n,e])=>{let t=`${Be}${e.toLowerCase().replace(/\s+/g,"-")}`;return this.http.get(t,{params:{offset:((n.page-1)*n.limit).toString(),limit:n.limit.toString(),SearchTerm:n.searchText||""}}).pipe(A(o=>{let r=this.transformEnumValues(o.Data);return pu({items:O(_({},o),{Data:r})})}),ve(o=>(this.showErrorPopup(`Failed to load content: ${o.error}`),T(fu({error:o.message})))))})));this.loadRelatedItems$=je(()=>this.actions$.pipe(Ee(ma),Ie(n=>{let e=`${Be}${n.selectedType.toLowerCase().replace(/\s+/g,"-")}`;return this.http.get(e).pipe(A(t=>hu({relatedItems:O(_({},t),{Data:t.Data}),relatedType:n.selectedType})),ve(t=>(this.showErrorPopup(`Failed to load related items: ${t.error}`),T(gu({error:t.message})))))})));this.loadHeaders$=je(()=>this.actions$.pipe(Ee(_u),Ie(n=>{if(!n.selectedType)return Rt;let e=`${Be}models/fields/${n.selectedType}`,t=`${Be}enums/getAll`;return(this.enumsData?T(this.enumsData):this.http.get(t).pipe(A(r=>(this.enumsData=r,r)))).pipe(Ie(r=>this.http.get(e).pipe(A(a=>{let s=a.Fields.map(u=>{let h=this.mapFieldTypeToInputType(u.fieldType,r),g=h===5||h===12;return{key:u.fieldName,label:this.formatHeaderLabel(u.fieldName),type:h,relatedTo:g?u.fieldType:this.getRelatedType(u.fieldType),isRequired:u.isRequired??!1,isEnum:h===12}});return this.headers=s,bu({headers:s})}))),ve(r=>(this.showErrorPopup(`Failed to load headers: ${r.error}`),T(My({error:r.message})))))})));this.deleteContent$=je(()=>this.actions$.pipe(Ee(ha),Ie(n=>{let e=`${Be}${n.contentType.toLowerCase().replace(/\s+/g,"-")}/${n.id}`;return this.http.delete(e).pipe(A(()=>wl({id:n.id})),ve(t=>(this.showErrorPopup(`Failed to delete content: ${t.error}`),T(vu({error:t.message})))))})));this.deleteMultipleContent$=je(()=>this.actions$.pipe(Ee(fa),Ie(n=>{let e=n.ids.map(t=>{let o=`${Be}${n.contentType.toLowerCase().replace(/\s+/g,"-")}/${t}`;return this.http.delete(o).toPromise()});return Promise.all(e).then(()=>Dl({ids:n.ids})).catch(t=>(this.showErrorPopup(`Failed to delete multiple content: ${t.error}`),yu({error:t.message})))})));this.reloadAfterDelete$=je(()=>this.actions$.pipe(Ee(wl,Dl),fi(this.store.select(Ca),this.store.select(ut)),A(([n,e,t])=>ei({selectedType:t,page:1,limit:e,searchText:""}))));this.createContent$=je(()=>this.actions$.pipe(Ee(ga),fi(this.store.select(Ca)),Ie(([n,e])=>{let t=`${Be}${n.contentType.toLowerCase().replace(/\s+/g,"-")}`;return this.http.post(t,n.formData,{headers:{}}).pipe(A(o=>(this.store.dispatch(dr({id:o.Id})),ei({selectedType:n.contentType,page:1,limit:e,searchText:""}))),ve(o=>(this.showErrorPopup(`Failed to create content: ${o.error}`),T(Cu({error:o.message})))))})));this.uploadFile$=je(()=>this.actions$.pipe(Ee(uu),Ie(n=>{let e=`${Be}${n.contentType.toLowerCase().replace(/\s+/g,"-")}/upload-file/${n.id}`,t=new FormData;return t.append("file",n.file),t.append("fieldName",n.fieldName),this.http.post(e,t).pipe(A(o=>(this.store.dispatch(ei({selectedType:n.contentType,page:1,limit:10,searchText:""})),mu({fileName:o.OriginalFileName,size:o.FileSize}))),ve(o=>(this.showErrorPopup(`Failed to upload file: ${o.error}`),T(Dy({error:o.message})))))})));this.loadContentTypeChanges$=je(()=>this.actions$.pipe(Ee(ua),Ie(()=>{let n=`${Be}content-type-changes`;return this.http.get(n).pipe(A(e=>cu({changes:e})),ve(e=>(this.showErrorPopup(`Failed to load content type changes: ${e.error}`),T(du({error:e.message})))))})));this.updateContent$=je(()=>this.actions$.pipe(Ee(_a),fi(this.store.select(Ca)),Ie(([n,e])=>{let t=`${Be}${n.contentType.toLowerCase().replace(/\s+/g,"-")}/${n.id}`;return this.http.put(t,n.formData,{headers:{}}).pipe(A(o=>(this.store.dispatch(dr({id:o.Id})),ei({selectedType:n.contentType,page:1,limit:e,searchText:""}))),ve(o=>(this.showErrorPopup(`Failed to update content: ${o.error}`),T(xu({error:o.message})))))})))}transformEnumValues(n){if(!n||!this.enumsData)return n;let e=this.headers.filter(t=>t.type===12).map(t=>({key:t.key,enumType:t.relatedTo}));return e.length===0?n:n.map(t=>{let o=_({},t);return e.forEach(r=>{if(o[r.key]!==null&&o[r.key]!==void 0){let a=o[r.key],s=this.getEnumDisplayValue(r.enumType,a);s!==null&&(o[r.key]=s)}}),o})}getEnumDisplayValue(n,e){if(!this.enumsData||!this.enumsData[n])return null;let t=this.enumsData[n];for(let[o,r]of Object.entries(t))if(r===e)return o;return null}showErrorPopup(n){this.snackBar.open(n,"Close",{duration:5e3,horizontalPosition:"center",verticalPosition:"bottom",panelClass:["error-snackbar"]})}getRelatedType(n){return n.includes("ICollection")?n.match(/<([^>]+)>/)?.[1]:void 0}formatHeaderLabel(n){return n.replace(/([A-Z])/g," $1").replace(/_/g," ").replace(/^./,e=>e.toUpperCase()).trim()}mapFieldTypeToInputType(n,e){let t=n.toLowerCase();return e&&e[n]?12:t.includes("userroles")?11:!t.includes("string")&&!t.includes("mediainfo")&&!t.includes("blob")&&!t.includes("icollection")&&!t.includes("guid")&&!["int","integer","number","float","double","decimal","long","short","mediainfo","boolean","bool","date","datetime","dateonly","time","char","enum"].includes(t)?5:t.includes("mediainfo")||t.includes("blob")||t==="binary"?2:t==="string"&&["description","content","text","textarea"].some(o=>t.includes(o))?1:t.includes("icollection")?3:t.includes("guid")||t==="uuid"?4:t==="boolean"||t==="bool"?7:["date","datetime","time"].includes(t)?8:t==="dateonly"?9:t==="enum"?10:t==="char"?0:t==="int"?6:0}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}};var Rx={publishedCollectionTypes:[],collectionTypes:[],loadingCollectionTypes:!1,errorCollectionTypes:null,fields:[],loadingFields:!1,isSaving:!1,saveError:null,serverRestarting:!1,draftCollectionTypes:[],hasRelatedProperties:!1,modelResponse:null};var Fx=aa(Rx,oe(_n,i=>O(_({},i),{loading:!0,error:null})),oe(Ud,(i,{publishedCollectionTypes:n})=>O(_({},i),{publishedCollectionTypes:n,loading:!1,error:null})),oe(Hd,(i,{error:n})=>O(_({},i),{loading:!1,error:n})),oe(xo,i=>O(_({},i),{loading:!0,error:null})),oe($d,(i,{draftCollectionTypes:n})=>O(_({},i),{draftCollectionTypes:n,loading:!1})),oe(Gd,(i,{error:n})=>O(_({},i),{error:n,loading:!1})),oe(bn,i=>O(_({},i),{loadingCollectionTypes:!0,errorCollectionTypes:null})),oe(ml,(i,{collectionTypes:n})=>O(_({},i),{collectionTypes:n,filteredCollectionTypes:n,loadingCollectionTypes:!1})),oe(Wd,(i,{error:n})=>O(_({},i),{loadingCollectionTypes:!1,errorCollectionTypes:n})),oe(jn,i=>O(_({},i),{loadingFields:!0,errorFields:null})),oe(Yd,(i,{modelResponse:n})=>O(_({},i),{modelResponse:n,loadingFields:!1})),oe(pl,(i,{error:n})=>O(_({},i),{loadingFields:!1,errorFields:n})),oe(hl,(i,{collectionType:n})=>{let e=[...i.collectionTypes,n].sort();return O(_({},i),{collectionTypes:e})}),oe(fl,(i,{field:n})=>O(_({},i),{fields:[...i.fields,n]})),oe(sa,i=>O(_({},i),{isSaving:!0,saveError:null,serverRestarting:!1})),oe(gl,(i,{restarting:n})=>O(_({},i),{isSaving:!n,disabled:!n,serverRestarting:!!n})),oe(Zd,(i,{error:n})=>O(_({},i),{isSaving:!1,saveError:n})),oe(ca,i=>O(_({},i),{loading:!0})),oe(Jd,(i,{hasRelatedProperties:n})=>O(_({},i),{hasRelatedProperties:n,loading:!1,error:null})),oe(eu,(i,{error:n})=>O(_({},i),{error:n,loading:!1})),oe(la,i=>O(_({},i),{loading:!0,error:null})),oe(Qd,(i,{message:n})=>O(_({},i),{message:n,loading:!1})),oe(Xd,(i,{error:n})=>O(_({},i),{error:n,loading:!1})),oe(iu,(i,{message:n})=>O(_({},i),{message:n,loading:!1})),oe(nu,(i,{error:n})=>O(_({},i),{error:n,loading:!1})));var _m=class i{constructor(){this.actions$=d(Hn);this.http=d(si);this.store=d(he);this.snackBar=d(Bt);this.enumsData=null;this.loadCollectionTypes$=je(()=>this.actions$.pipe(Ee(bn),Ie(()=>this.http.get(`${Be}models`).pipe(A(n=>ml({collectionTypes:n})),ve(n=>(this.showErrorPopup(`Failed to load collection types: ${n.error}`),T(Wd({error:n.message}))))))));this.loadDraftCollectionTypes$=je(()=>this.actions$.pipe(Ee(xo),Ie(()=>this.http.get(`${Be}content-type-changes/draft-models`).pipe(A(n=>$d({draftCollectionTypes:n})),ve(n=>(this.showErrorPopup(`Failed to load draft collection types: ${n.error}`),T(Gd({error:n.message}))))))));this.loadPublishedCollectionTypes$=je(()=>this.actions$.pipe(Ee(_n),Ie(()=>this.http.get(`${Be}content-type-changes/published-models`).pipe(A(n=>Ud({publishedCollectionTypes:n})),ve(n=>(this.showErrorPopup(`Failed to load published collection types: ${n.error}`),T(Hd({error:n.message}))))))));this.setDefaultSelectedType$=je(()=>this.actions$.pipe(Ee(ml),fi(this.store.pipe(gn(ut))),le(([n,e])=>!e&&n.collectionTypes.length>0),A(([n])=>Zi({selectedType:n.collectionTypes[0]}))));this.loadFields$=je(()=>this.actions$.pipe(Ee(jn),Ie(n=>{if(!n.modelType)return Rt;let e=`${Be}models/fields/${n.modelType}`,t=`${Be}enums/getAll`;return(this.enumsData?T(this.enumsData):this.http.get(t).pipe(A(r=>(this.enumsData=r,r)))).pipe(Ie(r=>this.http.get(e).pipe(A(a=>{let s=a.Fields.map(u=>{let h=this.mapFieldTypeToInputType(u.fieldType,r);return O(_({},u),{isEnum:h===12})});return Yd({modelResponse:{Fields:[...s],AllowedActions:a.AllowedActions}})}),ve(a=>(this.showErrorPopup(`Failed to load fields: ${a.error}`),T(pl({error:a.message})))))),ve(r=>(this.showErrorPopup(`Failed to load enums: ${r.error}`),T(pl({error:r.message})))))})));this.saveContent$=je(()=>this.actions$.pipe(Ee(sa),Pe(()=>this.http.post(`${Be}create-migrations-update-db`,{}).pipe(A(n=>{let e=n&&n.success!==void 0?n:{success:!0};return gl({restarting:!!e.restarting})}),ve(n=>n.status===200?(console.log("Backend is restarting. This is expected behavior."),T(gl({restarting:!0}))):(this.showErrorPopup(`Failed to save content: ${n.error}`),console.error("Error saving content:",n),T(Zd({error:n}))))))));this.addCollectionType$=je(()=>this.actions$.pipe(Ee(qd),Pe(n=>{let e={modelName:n.collectionType,isAuditableEntity:n.isAuditableEntity,crudActions:n.crudActions};return this.http.post(`${Be}models`,e).pipe(A(()=>hl({collectionType:n.collectionType})),ve(t=>(console.error("Error creating model:",t),this.showErrorPopup(`Failed to create model: ${t.error}`),T(oy({error:t})))))})));this.reloadCollectionTypesAfterAdd$=je(()=>this.actions$.pipe(Ee(hl),qt(n=>[_n(),xo(),Zi({selectedType:n.collectionType})])));this.addField$=je(()=>this.actions$.pipe(Ee(Kd),fi(this.store.pipe(gn(ut))),le(([n])=>!!n),Pe(([n,e])=>this.http.put(`${Be}models/${e}`,n.field).pipe(A(()=>fl({field:n.field})),ve(t=>(this.showErrorPopup(`Failed to add field: ${t.error}`),T(ry({error:t.message}))))))));this.reloadCollectionTypesAfterField$=je(()=>this.actions$.pipe(Ee(fl),fi(this.store.pipe(gn(ut))),le(([n,e])=>!!e),qt(([n,e])=>[_n(),xo(),jn({modelType:e})])));this.collectionHasRelatedProperties$=je(()=>this.actions$.pipe(Ee(ca),Pe(n=>this.http.get(`${Be}models/hasRelatedProperties/${n.modelName}`).pipe(A(e=>Jd({hasRelatedProperties:e.hasRelatedProperties})),ve(e=>T(eu({error:e.message})))))));this.configureActions$=je(()=>this.actions$.pipe(Ee(tu),Pe(n=>{let e=_({},n.request);return this.http.put(`${Be}models/configure-actions/${n.model}`,e).pipe(A(t=>iu({message:t.message})),ve(t=>(console.error("Error creating model:",t),this.showErrorPopup(`Failed to configure actions: ${t.error}`),T(nu({error:t})))))})));this.deleteCollectionType$=je(()=>this.actions$.pipe(Ee(la),Pe(n=>this.http.delete(`${Be}models/${n.modelName}`).pipe(A(e=>Qd({message:e.message})),ve(e=>T(Xd({error:e.message})))))))}mapFieldTypeToInputType(n,e){let t=n.toLowerCase();return e&&e[n]?12:t.includes("userroles")?11:!t.includes("string")&&!t.includes("mediainfo")&&!t.includes("blob")&&!t.includes("icollection")&&!t.includes("guid")&&!["int","integer","number","float","double","decimal","long","short","mediainfo","boolean","bool","date","datetime","time","char","enum"].includes(t)?5:t.includes("mediainfo")||t.includes("blob")||t==="binary"?2:t==="string"&&["description","content","text","textarea"].some(o=>t.includes(o))?1:t.includes("icollection")?3:t.includes("guid")||t==="uuid"?4:t==="boolean"||t==="bool"?7:["date","datetime","time"].includes(t)?8:t==="char"?0:t==="int"?6:0}showErrorPopup(n){this.snackBar.open(n,"Close",{duration:5e3,horizontalPosition:"center",verticalPosition:"bottom",panelClass:["error-snackbar"]})}static{this.\u0275fac=function(e){return new(e||i)}}static{this.\u0275prov=D({token:i,factory:i.\u0275fac})}};var Va=class i{constructor(n){this.http=n;this.API_URL=`${Be}Auth`}login(n,e){let t={username:n,password:e};return this.http.post(`${this.API_URL}/login`,t).pipe(ve(this.handleError))}register(n,e,t){let o={username:n,email:e,password:t};return this.http.post(`${this.API_URL}/register`,o).pipe(ve(this.handleError))}handleError(n){let e="An unknown error occurred!";if(n.error instanceof ErrorEvent)e=`Error: ${n.error.message}`;else if(n.status===401)e="Invalid username or password";else if(n.status===400)if(n.error&&typeof n.error=="object"){let t=[];for(let o in n.error)n.error.hasOwnProperty(o)&&t.push(n.error[o]);e=t.map(o=>o.description).join(" ")}else e=n.error?.message||"Bad request";else e=`Error Code: ${n.status}, Message: ${n.error?.message||n.message}`;return tn(()=>new Error(e))}static{this.\u0275fac=function(e){return new(e||i)(N(si))}}static{this.\u0275prov=D({token:i,factory:i.\u0275fac,providedIn:"root"})}};var bm=class i{constructor(n,e,t){this.store=n;this.router=e;this.snackBar=t}intercept(n,e){return this.store.select(vC).pipe(xn(),Pe(t=>(t&&(n=n.clone({setHeaders:{Authorization:`Bearer ${t}`}})),e.handle(n).pipe(ve(o=>(o.status===401&&(this.store.dispatch(Ao()),this.snackBar.open("Your session has expired. Please log in again.","Close",{duration:5e3})),o.status===403&&this.snackBar.open("Oops! It looks like you don\u2019t have permission to do that. Reach out to your administrator if you need access.","Close",{duration:5e3}),tn(()=>o)))))))}static{this.\u0275fac=function(e){return new(e||i)(N(he),N($e),N(Bt))}}static{this.\u0275prov=D({token:i,factory:i.\u0275fac})}};var vm=class i{constructor(n,e,t,o,r){this.actions$=n;this.authService=e;this.router=t;this.snackBar=o;this.platformId=r;this.login$=je(()=>this.actions$.pipe(Ee(Pa),ja(({username:n,password:e})=>this.authService.login(n,e).pipe(A(t=>Bl({user:{username:t.username,roles:t.roles},token:t.token})),ve(t=>T(lm({error:t.message})))))));this.loginSuccess$=je(()=>this.actions$.pipe(Ee(Bl),Ge(({user:n,token:e})=>{qn(this.platformId)&&(localStorage.setItem("jwt_token",e),localStorage.setItem("user_data",JSON.stringify(n)),this.snackBar.open("Login successful!","Close",{duration:3e3}),this.router.navigate(["/home"]))})),{dispatch:!1});this.register$=je(()=>this.actions$.pipe(Ee(Ra),ja(({username:n,email:e,password:t})=>this.authService.register(n,e,t).pipe(A(()=>ur({message:"Registration successful! Please login."})),ve(o=>T(Fa({error:o.message})))))));this.registerSuccess$=je(()=>this.actions$.pipe(Ee(ur),Ge(({message:n})=>{this.snackBar.open(n,"Close",{duration:3e3}),this.router.navigate(["/auth"])})),{dispatch:!1});this.checkAuth$=je(()=>this.actions$.pipe(Ee($n),A(()=>{if(qn(this.platformId)){let n=localStorage.getItem("jwt_token"),e=localStorage.getItem("user_data");if(n&&e)try{let t=JSON.parse(e);return cm({user:t,token:n})}catch{return jl()}}return jl()})));this.logout$=je(()=>this.actions$.pipe(Ee(Ao),A(()=>(qn(this.platformId)&&(localStorage.removeItem("jwt_token"),localStorage.removeItem("user_data")),zl()))));this.logoutSuccess$=je(()=>this.actions$.pipe(Ee(zl),Ge(()=>{this.router.navigate(["/auth"])})),{dispatch:!1})}static{this.\u0275fac=function(e){return new(e||i)(N(Hn),N(Va),N($e),N(Bt),N(Fi))}}static{this.\u0275prov=D({token:i,factory:i.\u0275fac})}};var Qf={user:null,token:null,isAuthenticated:!1,loading:!1,error:null};var Nx=aa(Qf,oe(Pa,i=>O(_({},i),{loading:!0,error:null})),oe(Bl,(i,{user:n,token:e})=>O(_({},i),{user:n,token:e,isAuthenticated:!0,loading:!1,error:null})),oe(lm,(i,{error:n})=>O(_({},i),{loading:!1,error:n})),oe(Ra,i=>O(_({},i),{loading:!0,error:null})),oe(ur,i=>O(_({},i),{loading:!1,error:null})),oe(Fa,(i,{error:n})=>O(_({},i),{loading:!1,error:n})),oe($n,i=>O(_({},i),{loading:!0})),oe(cm,(i,{user:n,token:e})=>O(_({},i),{user:n,token:e,isAuthenticated:!0,loading:!1})),oe(jl,i=>O(_({},i),{user:null,token:null,isAuthenticated:!1,loading:!1})),oe(Ao,i=>O(_({},i),{loading:!0})),oe(zl,()=>_({},Qf)));var Lx={providers:[Bg({eventCoalescing:!0}),qp(sx,Zc()),Va,R_(P_()),lx(),gp(_p()),{provide:bc,useClass:bm,multi:!0},ny({content:Px,collection:Fx,auth:Nx}),YC([gm,_m,vm]),Ax({maxAge:25,logOnly:!Xa()})]};var ym=class i{constructor(n,e){this.router=n;this.store=e;this.subscriptions=new ie;this.activeIcon="home";this.menuItems=[{icon:"home",tooltip:"Home",route:"/home",id:"home"},{icon:"web",tooltip:"Builder",route:"/builder",id:"builder"},{icon:"article",tooltip:"Content Manager",route:"/content-manager",id:"content-manager"},{icon:"list",tooltip:"Enum Manager",route:"/enum-manager",id:"enum-manager"},{icon:"import_export",tooltip:"Schema Importer",route:"/schema-importer",id:"schema-importer"}];this.destroy$=new S}ngOnInit(){this.subscriptions.add(this.router.events.pipe(le(e=>e instanceof Kt),pe(this.destroy$)).subscribe(e=>{let t=e.url.split("/")[1]||"home";this.updateActiveIcon(t)}));let n=this.router.url.split("/")[1]||"home";this.updateActiveIcon(n)}ngOnDestroy(){this.subscriptions.unsubscribe(),this.destroy$.next(),this.destroy$.complete()}onMenuItemClick(n){this.activeIcon=n}isCurrentIcon(n){return n===this.activeIcon}updateActiveIcon(n){let e=this.menuItems.find(t=>t.route===`/${n}`||t.id===n);e&&(this.activeIcon=e.id)}logout(){this.store.dispatch(Ao())}static{this.\u0275fac=function(e){return new(e||i)(k($e),k(he))}}static{this.\u0275cmp=E({type:i,selectors:[["app-left-menu"]],decls:31,vars:0,consts:[[1,"sidenav"],[1,"sidenav__logo"],[1,"sidenav__divider"],[1,"sidenav__nav"],[1,"sidenav__menu"],[1,"sidenav__menu-item"],["routerLink","/home","routerLinkActive","sidenav__link--active","matTooltip","Home","matTooltipPosition","right",1,"sidenav__link",3,"click"],["routerLink","/builder","routerLinkActive","sidenav__link--active","matTooltip","Builder","matTooltipPosition","right",1,"sidenav__link",3,"click"],["routerLink","/content-manager","routerLinkActive","sidenav__link--active","matTooltip","Content Manager","matTooltipPosition","right",1,"sidenav__link",3,"click"],["routerLink","/enum-manager","routerLinkActive","sidenav__link--active","matTooltip","Enum Manager","matTooltipPosition","right",1,"sidenav__link",3,"click"],["routerLink","/schema-importer","routerLinkActive","sidenav__link--active","matTooltip","Schema Importer","matTooltipPosition","right",1,"sidenav__link",3,"click"],[1,"sidenav__spacer"],[1,"sidenav__footer"],["matTooltip","Logout","matTooltipPosition","right",1,"sidenav__link","sidenav__logout-btn",3,"click"]],template:function(e,t){e&1&&(l(0,"aside",0)(1,"div",1),p(2,"DAPPI"),c(),M(3,"hr",2),l(4,"nav",3)(5,"ul",4)(6,"li",5)(7,"a",6),b("click",function(){return t.onMenuItemClick("home")}),l(8,"mat-icon"),p(9,"home"),c()()(),l(10,"li",5)(11,"a",7),b("click",function(){return t.onMenuItemClick("builder")}),l(12,"mat-icon"),p(13,"web"),c()()(),l(14,"li",5)(15,"a",8),b("click",function(){return t.onMenuItemClick("content-manager")}),l(16,"mat-icon"),p(17,"article"),c()()(),l(18,"li",5)(19,"a",9),b("click",function(){return t.onMenuItemClick("enum-manager")}),l(20,"mat-icon"),p(21,"format_list_numbered"),c()()(),l(22,"li",5)(23,"a",10),b("click",function(){return t.onMenuItemClick("schema-importer")}),l(24,"mat-icon"),p(25,"import_export"),c()()()()(),M(26,"div",11),l(27,"div",12)(28,"button",13),b("click",function(){return t.logout()}),l(29,"mat-icon"),p(30,"logout"),c()()()())},dependencies:[Cl,yl,fe,Ce,Zp,Vr,Yp],styles:["[_nghost-%COMP%]{display:block;height:100%}.sidenav[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;width:72px;height:100vh;background-color:#1e1e1e;padding:2rem 1rem;box-sizing:border-box}.sidenav__logo[_ngcontent-%COMP%]{font-size:1.125rem;font-weight:700;color:#fff;letter-spacing:.5px;margin-bottom:1rem}.sidenav__divider[_ngcontent-%COMP%]{width:80%;margin:.5rem 0;border:none;border-top:1px solid rgba(255,255,255,.1)}.sidenav__nav[_ngcontent-%COMP%]{width:100%;margin-top:2rem}.sidenav__menu[_ngcontent-%COMP%]{list-style:none;padding:0;margin:0;display:flex;flex-direction:column;gap:1rem}.sidenav__menu-item[_ngcontent-%COMP%]{display:flex;justify-content:center}.sidenav__link[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;height:40px;width:40px;color:#fff;border-radius:4px;text-decoration:none;transition:background-color .2s ease,color .2s ease}.sidenav__link[_ngcontent-%COMP%]:hover{background-color:#ffffff0d}.sidenav__link--active[_ngcontent-%COMP%]{color:#ac99ea;background-color:#d5ccf529}.sidenav__link--active[_ngcontent-%COMP%]:hover{background-color:#d5ccf529}.sidenav__link[_ngcontent-%COMP%] mat-icon[_ngcontent-%COMP%]{font-size:24px;width:24px;height:24px}.sidenav__spacer[_ngcontent-%COMP%]{flex-grow:1}.sidenav__footer[_ngcontent-%COMP%]{margin-top:auto;width:100%;display:flex;justify-content:center;padding-top:1rem}.sidenav__logout-btn[_ngcontent-%COMP%]{background:none;border:none;cursor:pointer;padding:0}"]})}};function AR(i,n){i&1&&M(0,"app-left-menu")}var Cm=class i{constructor(n,e){this.platformId=n;this.store=e;this.title="CCUI.DAPPI";this.isAuthenticated$=this.store.select(wa)}ngOnInit(){qn(this.platformId)&&this.store.dispatch($n())}static{this.\u0275fac=function(e){return new(e||i)(k(Fi),k(he))}}static{this.\u0275cmp=E({type:i,selectors:[["app-root"]],decls:4,vars:3,consts:[[1,"app-container"]],template:function(e,t){e&1&&(l(0,"div",0),w(1,AR,1,0,"app-left-menu"),gt(2,"async"),M(3,"router-outlet"),c()),e&2&&(m(),C(Ot(2,1,t.isAuthenticated$)?1:-1))},dependencies:[Ts,ym,Ae,Ci],styles:[".app-container[_ngcontent-%COMP%]{display:flex;height:100vh;overflow:hidden}app-left-menu[_ngcontent-%COMP%]{flex-shrink:0}app-sidebar[_ngcontent-%COMP%]{flex-shrink:0;width:250px}.main-content[_ngcontent-%COMP%]{flex-grow:1;background-color:#121212;width:100%;overflow:hidden}.loading-state[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px 16px;text-align:center;color:#ffffffb3;margin-left:auto;margin-right:auto}.loading-state[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{margin:16px 0 0;font-size:14px}"]})}};cp(Cm,Lx).catch(i=>console.error(i)); diff --git a/templates/MyCompany.MyProject.WebApi/wwwroot/polyfills-B6TNHZQ6.js b/templates/MyCompany.MyProject.WebApi/wwwroot/polyfills-B6TNHZQ6.js deleted file mode 100644 index 9590af5..0000000 --- a/templates/MyCompany.MyProject.WebApi/wwwroot/polyfills-B6TNHZQ6.js +++ /dev/null @@ -1,2 +0,0 @@ -var ce=globalThis;function te(t){return(ce.__Zone_symbol_prefix||"__zone_symbol__")+t}function ht(){let t=ce.performance;function n(I){t&&t.mark&&t.mark(I)}function a(I,s){t&&t.measure&&t.measure(I,s)}n("Zone");class e{static __symbol__=te;static assertZonePatched(){if(ce.Promise!==S.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")}static get root(){let s=e.current;for(;s.parent;)s=s.parent;return s}static get current(){return b.zone}static get currentTask(){return D}static __load_patch(s,i,r=!1){if(S.hasOwnProperty(s)){let E=ce[te("forceDuplicateZoneCheck")]===!0;if(!r&&E)throw Error("Already loaded patch: "+s)}else if(!ce["__Zone_disable_"+s]){let E="Zone:"+s;n(E),S[s]=i(ce,e,R),a(E,E)}}get parent(){return this._parent}get name(){return this._name}_parent;_name;_properties;_zoneDelegate;constructor(s,i){this._parent=s,this._name=i?i.name||"unnamed":"",this._properties=i&&i.properties||{},this._zoneDelegate=new f(this,this._parent&&this._parent._zoneDelegate,i)}get(s){let i=this.getZoneWith(s);if(i)return i._properties[s]}getZoneWith(s){let i=this;for(;i;){if(i._properties.hasOwnProperty(s))return i;i=i._parent}return null}fork(s){if(!s)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,s)}wrap(s,i){if(typeof s!="function")throw new Error("Expecting function got: "+s);let r=this._zoneDelegate.intercept(this,s,i),E=this;return function(){return E.runGuarded(r,this,arguments,i)}}run(s,i,r,E){b={parent:b,zone:this};try{return this._zoneDelegate.invoke(this,s,i,r,E)}finally{b=b.parent}}runGuarded(s,i=null,r,E){b={parent:b,zone:this};try{try{return this._zoneDelegate.invoke(this,s,i,r,E)}catch(x){if(this._zoneDelegate.handleError(this,x))throw x}}finally{b=b.parent}}runTask(s,i,r){if(s.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(s.zone||J).name+"; Execution: "+this.name+")");let E=s,{type:x,data:{isPeriodic:ee=!1,isRefreshable:M=!1}={}}=s;if(s.state===q&&(x===U||x===k))return;let he=s.state!=A;he&&E._transitionTo(A,d);let _e=D;D=E,b={parent:b,zone:this};try{x==k&&s.data&&!ee&&!M&&(s.cancelFn=void 0);try{return this._zoneDelegate.invokeTask(this,E,i,r)}catch(Q){if(this._zoneDelegate.handleError(this,Q))throw Q}}finally{let Q=s.state;if(Q!==q&&Q!==X)if(x==U||ee||M&&Q===p)he&&E._transitionTo(d,A,p);else{let Te=E._zoneDelegates;this._updateTaskCount(E,-1),he&&E._transitionTo(q,A,q),M&&(E._zoneDelegates=Te)}b=b.parent,D=_e}}scheduleTask(s){if(s.zone&&s.zone!==this){let r=this;for(;r;){if(r===s.zone)throw Error(`can not reschedule task to ${this.name} which is descendants of the original zone ${s.zone.name}`);r=r.parent}}s._transitionTo(p,q);let i=[];s._zoneDelegates=i,s._zone=this;try{s=this._zoneDelegate.scheduleTask(this,s)}catch(r){throw s._transitionTo(X,p,q),this._zoneDelegate.handleError(this,r),r}return s._zoneDelegates===i&&this._updateTaskCount(s,1),s.state==p&&s._transitionTo(d,p),s}scheduleMicroTask(s,i,r,E){return this.scheduleTask(new g(F,s,i,r,E,void 0))}scheduleMacroTask(s,i,r,E,x){return this.scheduleTask(new g(k,s,i,r,E,x))}scheduleEventTask(s,i,r,E,x){return this.scheduleTask(new g(U,s,i,r,E,x))}cancelTask(s){if(s.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(s.zone||J).name+"; Execution: "+this.name+")");if(!(s.state!==d&&s.state!==A)){s._transitionTo(V,d,A);try{this._zoneDelegate.cancelTask(this,s)}catch(i){throw s._transitionTo(X,V),this._zoneDelegate.handleError(this,i),i}return this._updateTaskCount(s,-1),s._transitionTo(q,V),s.runCount=-1,s}}_updateTaskCount(s,i){let r=s._zoneDelegates;i==-1&&(s._zoneDelegates=null);for(let E=0;EI.hasTask(i,r),onScheduleTask:(I,s,i,r)=>I.scheduleTask(i,r),onInvokeTask:(I,s,i,r,E,x)=>I.invokeTask(i,r,E,x),onCancelTask:(I,s,i,r)=>I.cancelTask(i,r)};class f{get zone(){return this._zone}_zone;_taskCounts={microTask:0,macroTask:0,eventTask:0};_parentDelegate;_forkDlgt;_forkZS;_forkCurrZone;_interceptDlgt;_interceptZS;_interceptCurrZone;_invokeDlgt;_invokeZS;_invokeCurrZone;_handleErrorDlgt;_handleErrorZS;_handleErrorCurrZone;_scheduleTaskDlgt;_scheduleTaskZS;_scheduleTaskCurrZone;_invokeTaskDlgt;_invokeTaskZS;_invokeTaskCurrZone;_cancelTaskDlgt;_cancelTaskZS;_cancelTaskCurrZone;_hasTaskDlgt;_hasTaskDlgtOwner;_hasTaskZS;_hasTaskCurrZone;constructor(s,i,r){this._zone=s,this._parentDelegate=i,this._forkZS=r&&(r&&r.onFork?r:i._forkZS),this._forkDlgt=r&&(r.onFork?i:i._forkDlgt),this._forkCurrZone=r&&(r.onFork?this._zone:i._forkCurrZone),this._interceptZS=r&&(r.onIntercept?r:i._interceptZS),this._interceptDlgt=r&&(r.onIntercept?i:i._interceptDlgt),this._interceptCurrZone=r&&(r.onIntercept?this._zone:i._interceptCurrZone),this._invokeZS=r&&(r.onInvoke?r:i._invokeZS),this._invokeDlgt=r&&(r.onInvoke?i:i._invokeDlgt),this._invokeCurrZone=r&&(r.onInvoke?this._zone:i._invokeCurrZone),this._handleErrorZS=r&&(r.onHandleError?r:i._handleErrorZS),this._handleErrorDlgt=r&&(r.onHandleError?i:i._handleErrorDlgt),this._handleErrorCurrZone=r&&(r.onHandleError?this._zone:i._handleErrorCurrZone),this._scheduleTaskZS=r&&(r.onScheduleTask?r:i._scheduleTaskZS),this._scheduleTaskDlgt=r&&(r.onScheduleTask?i:i._scheduleTaskDlgt),this._scheduleTaskCurrZone=r&&(r.onScheduleTask?this._zone:i._scheduleTaskCurrZone),this._invokeTaskZS=r&&(r.onInvokeTask?r:i._invokeTaskZS),this._invokeTaskDlgt=r&&(r.onInvokeTask?i:i._invokeTaskDlgt),this._invokeTaskCurrZone=r&&(r.onInvokeTask?this._zone:i._invokeTaskCurrZone),this._cancelTaskZS=r&&(r.onCancelTask?r:i._cancelTaskZS),this._cancelTaskDlgt=r&&(r.onCancelTask?i:i._cancelTaskDlgt),this._cancelTaskCurrZone=r&&(r.onCancelTask?this._zone:i._cancelTaskCurrZone),this._hasTaskZS=null,this._hasTaskDlgt=null,this._hasTaskDlgtOwner=null,this._hasTaskCurrZone=null;let E=r&&r.onHasTask,x=i&&i._hasTaskZS;(E||x)&&(this._hasTaskZS=E?r:c,this._hasTaskDlgt=i,this._hasTaskDlgtOwner=this,this._hasTaskCurrZone=this._zone,r.onScheduleTask||(this._scheduleTaskZS=c,this._scheduleTaskDlgt=i,this._scheduleTaskCurrZone=this._zone),r.onInvokeTask||(this._invokeTaskZS=c,this._invokeTaskDlgt=i,this._invokeTaskCurrZone=this._zone),r.onCancelTask||(this._cancelTaskZS=c,this._cancelTaskDlgt=i,this._cancelTaskCurrZone=this._zone))}fork(s,i){return this._forkZS?this._forkZS.onFork(this._forkDlgt,this.zone,s,i):new e(s,i)}intercept(s,i,r){return this._interceptZS?this._interceptZS.onIntercept(this._interceptDlgt,this._interceptCurrZone,s,i,r):i}invoke(s,i,r,E,x){return this._invokeZS?this._invokeZS.onInvoke(this._invokeDlgt,this._invokeCurrZone,s,i,r,E,x):i.apply(r,E)}handleError(s,i){return this._handleErrorZS?this._handleErrorZS.onHandleError(this._handleErrorDlgt,this._handleErrorCurrZone,s,i):!0}scheduleTask(s,i){let r=i;if(this._scheduleTaskZS)this._hasTaskZS&&r._zoneDelegates.push(this._hasTaskDlgtOwner),r=this._scheduleTaskZS.onScheduleTask(this._scheduleTaskDlgt,this._scheduleTaskCurrZone,s,i),r||(r=i);else if(i.scheduleFn)i.scheduleFn(i);else if(i.type==F)z(i);else throw new Error("Task is missing scheduleFn.");return r}invokeTask(s,i,r,E){return this._invokeTaskZS?this._invokeTaskZS.onInvokeTask(this._invokeTaskDlgt,this._invokeTaskCurrZone,s,i,r,E):i.callback.apply(r,E)}cancelTask(s,i){let r;if(this._cancelTaskZS)r=this._cancelTaskZS.onCancelTask(this._cancelTaskDlgt,this._cancelTaskCurrZone,s,i);else{if(!i.cancelFn)throw Error("Task is not cancelable");r=i.cancelFn(i)}return r}hasTask(s,i){try{this._hasTaskZS&&this._hasTaskZS.onHasTask(this._hasTaskDlgt,this._hasTaskCurrZone,s,i)}catch(r){this.handleError(s,r)}}_updateTaskCount(s,i){let r=this._taskCounts,E=r[s],x=r[s]=E+i;if(x<0)throw new Error("More tasks executed then were scheduled.");if(E==0||x==0){let ee={microTask:r.microTask>0,macroTask:r.macroTask>0,eventTask:r.eventTask>0,change:s};this.hasTask(this._zone,ee)}}}class g{type;source;invoke;callback;data;scheduleFn;cancelFn;_zone=null;runCount=0;_zoneDelegates=null;_state="notScheduled";constructor(s,i,r,E,x,ee){if(this.type=s,this.source=i,this.data=E,this.scheduleFn=x,this.cancelFn=ee,!r)throw new Error("callback is not defined");this.callback=r;let M=this;s===U&&E&&E.useG?this.invoke=g.invokeTask:this.invoke=function(){return g.invokeTask.call(ce,M,this,arguments)}}static invokeTask(s,i,r){s||(s=this),K++;try{return s.runCount++,s.zone.runTask(s,i,r)}finally{K==1&&$(),K--}}get zone(){return this._zone}get state(){return this._state}cancelScheduleRequest(){this._transitionTo(q,p)}_transitionTo(s,i,r){if(this._state===i||this._state===r)this._state=s,s==q&&(this._zoneDelegates=null);else throw new Error(`${this.type} '${this.source}': can not transition to '${s}', expecting state '${i}'${r?" or '"+r+"'":""}, was '${this._state}'.`)}toString(){return this.data&&typeof this.data.handleId<"u"?this.data.handleId.toString():Object.prototype.toString.call(this)}toJSON(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}}}let T=te("setTimeout"),y=te("Promise"),w=te("then"),_=[],P=!1,L;function H(I){if(L||ce[y]&&(L=ce[y].resolve(0)),L){let s=L[w];s||(s=L.then),s.call(L,I)}else ce[T](I,0)}function z(I){K===0&&_.length===0&&H($),I&&_.push(I)}function $(){if(!P){for(P=!0;_.length;){let I=_;_=[];for(let s=0;sb,onUnhandledError:W,microtaskDrainDone:W,scheduleMicroTask:z,showUncaughtError:()=>!e[te("ignoreConsoleErrorUncaughtError")],patchEventTarget:()=>[],patchOnProperties:W,patchMethod:()=>W,bindArguments:()=>[],patchThen:()=>W,patchMacroTask:()=>W,patchEventPrototype:()=>W,isIEOrEdge:()=>!1,getGlobalObjects:()=>{},ObjectDefineProperty:()=>W,ObjectGetOwnPropertyDescriptor:()=>{},ObjectCreate:()=>{},ArraySlice:()=>[],patchClass:()=>W,wrapWithCurrentZone:()=>W,filterProperties:()=>[],attachOriginToPatched:()=>W,_redefineProperty:()=>W,patchCallbacks:()=>W,nativeScheduleMicroTask:H},b={parent:null,zone:new e(null,null)},D=null,K=0;function W(){}return a("Zone","Zone"),e}function dt(){let t=globalThis,n=t[te("forceDuplicateZoneCheck")]===!0;if(t.Zone&&(n||typeof t.Zone.__symbol__!="function"))throw new Error("Zone already loaded.");return t.Zone??=ht(),t.Zone}var pe=Object.getOwnPropertyDescriptor,Me=Object.defineProperty,Ae=Object.getPrototypeOf,_t=Object.create,Tt=Array.prototype.slice,je="addEventListener",He="removeEventListener",Ne=te(je),Ze=te(He),ae="true",le="false",ve=te("");function Ve(t,n){return Zone.current.wrap(t,n)}function xe(t,n,a,e,c){return Zone.current.scheduleMacroTask(t,n,a,e,c)}var j=te,we=typeof window<"u",be=we?window:void 0,Y=we&&be||globalThis,Et="removeAttribute";function Fe(t,n){for(let a=t.length-1;a>=0;a--)typeof t[a]=="function"&&(t[a]=Ve(t[a],n+"_"+a));return t}function gt(t,n){let a=t.constructor.name;for(let e=0;e{let y=function(){return T.apply(this,Fe(arguments,a+"."+c))};return fe(y,T),y})(f)}}}function et(t){return t?t.writable===!1?!1:!(typeof t.get=="function"&&typeof t.set>"u"):!0}var tt=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope,De=!("nw"in Y)&&typeof Y.process<"u"&&Y.process.toString()==="[object process]",Ge=!De&&!tt&&!!(we&&be.HTMLElement),nt=typeof Y.process<"u"&&Y.process.toString()==="[object process]"&&!tt&&!!(we&&be.HTMLElement),Ce={},kt=j("enable_beforeunload"),Xe=function(t){if(t=t||Y.event,!t)return;let n=Ce[t.type];n||(n=Ce[t.type]=j("ON_PROPERTY"+t.type));let a=this||t.target||Y,e=a[n],c;if(Ge&&a===be&&t.type==="error"){let f=t;c=e&&e.call(this,f.message,f.filename,f.lineno,f.colno,f.error),c===!0&&t.preventDefault()}else c=e&&e.apply(this,arguments),t.type==="beforeunload"&&Y[kt]&&typeof c=="string"?t.returnValue=c:c!=null&&!c&&t.preventDefault();return c};function Ye(t,n,a){let e=pe(t,n);if(!e&&a&&pe(a,n)&&(e={enumerable:!0,configurable:!0}),!e||!e.configurable)return;let c=j("on"+n+"patched");if(t.hasOwnProperty(c)&&t[c])return;delete e.writable,delete e.value;let f=e.get,g=e.set,T=n.slice(2),y=Ce[T];y||(y=Ce[T]=j("ON_PROPERTY"+T)),e.set=function(w){let _=this;if(!_&&t===Y&&(_=Y),!_)return;typeof _[y]=="function"&&_.removeEventListener(T,Xe),g?.call(_,null),_[y]=w,typeof w=="function"&&_.addEventListener(T,Xe,!1)},e.get=function(){let w=this;if(!w&&t===Y&&(w=Y),!w)return null;let _=w[y];if(_)return _;if(f){let P=f.call(this);if(P)return e.set.call(this,P),typeof w[Et]=="function"&&w.removeAttribute(n),P}return null},Me(t,n,e),t[c]=!0}function rt(t,n,a){if(n)for(let e=0;efunction(g,T){let y=a(g,T);return y.cbIdx>=0&&typeof T[y.cbIdx]=="function"?xe(y.name,T[y.cbIdx],y,c):f.apply(g,T)})}function fe(t,n){t[j("OriginalDelegate")]=n}var $e=!1,Le=!1;function yt(){if($e)return Le;$e=!0;try{let t=be.navigator.userAgent;(t.indexOf("MSIE ")!==-1||t.indexOf("Trident/")!==-1||t.indexOf("Edge/")!==-1)&&(Le=!0)}catch{}return Le}function Je(t){return typeof t=="function"}function Ke(t){return typeof t=="number"}var pt={useG:!0},ne={},ot={},st=new RegExp("^"+ve+"(\\w+)(true|false)$"),it=j("propagationStopped");function ct(t,n){let a=(n?n(t):t)+le,e=(n?n(t):t)+ae,c=ve+a,f=ve+e;ne[t]={},ne[t][le]=c,ne[t][ae]=f}function vt(t,n,a,e){let c=e&&e.add||je,f=e&&e.rm||He,g=e&&e.listeners||"eventListeners",T=e&&e.rmAll||"removeAllListeners",y=j(c),w="."+c+":",_="prependListener",P="."+_+":",L=function(p,d,A){if(p.isRemoved)return;let V=p.callback;typeof V=="object"&&V.handleEvent&&(p.callback=k=>V.handleEvent(k),p.originalDelegate=V);let X;try{p.invoke(p,d,[A])}catch(k){X=k}let F=p.options;if(F&&typeof F=="object"&&F.once){let k=p.originalDelegate?p.originalDelegate:p.callback;d[f].call(d,A.type,k,F)}return X};function H(p,d,A){if(d=d||t.event,!d)return;let V=p||d.target||t,X=V[ne[d.type][A?ae:le]];if(X){let F=[];if(X.length===1){let k=L(X[0],V,d);k&&F.push(k)}else{let k=X.slice();for(let U=0;U{throw U})}}}let z=function(p){return H(this,p,!1)},$=function(p){return H(this,p,!0)};function J(p,d){if(!p)return!1;let A=!0;d&&d.useG!==void 0&&(A=d.useG);let V=d&&d.vh,X=!0;d&&d.chkDup!==void 0&&(X=d.chkDup);let F=!1;d&&d.rt!==void 0&&(F=d.rt);let k=p;for(;k&&!k.hasOwnProperty(c);)k=Ae(k);if(!k&&p[c]&&(k=p),!k||k[y])return!1;let U=d&&d.eventNameToString,S={},R=k[y]=k[c],b=k[j(f)]=k[f],D=k[j(g)]=k[g],K=k[j(T)]=k[T],W;d&&d.prepend&&(W=k[j(d.prepend)]=k[d.prepend]);function I(o,u){return u?typeof o=="boolean"?{capture:o,passive:!0}:o?typeof o=="object"&&o.passive!==!1?{...o,passive:!0}:o:{passive:!0}:o}let s=function(o){if(!S.isExisting)return R.call(S.target,S.eventName,S.capture?$:z,S.options)},i=function(o){if(!o.isRemoved){let u=ne[o.eventName],v;u&&(v=u[o.capture?ae:le]);let C=v&&o.target[v];if(C){for(let m=0;mre.zone.cancelTask(re);o.call(Ee,"abort",ie,{once:!0}),re.removeAbortListener=()=>Ee.removeEventListener("abort",ie)}if(S.target=null,me&&(me.taskData=null),Be&&(S.options.once=!0),typeof re.options!="boolean"&&(re.options=se),re.target=N,re.capture=Se,re.eventName=Z,B&&(re.originalDelegate=G),O?ge.unshift(re):ge.push(re),m)return N}};return k[c]=l(R,w,ee,M,F),W&&(k[_]=l(W,P,E,M,F,!0)),k[f]=function(){let o=this||t,u=arguments[0];d&&d.transferEventName&&(u=d.transferEventName(u));let v=arguments[2],C=v?typeof v=="boolean"?!0:v.capture:!1,m=arguments[1];if(!m)return b.apply(this,arguments);if(V&&!V(b,m,o,arguments))return;let O=ne[u],N;O&&(N=O[C?ae:le]);let Z=N&&o[N];if(Z)for(let G=0;Gfunction(c,f){c[it]=!0,e&&e.apply(c,f)})}function Pt(t,n){n.patchMethod(t,"queueMicrotask",a=>function(e,c){Zone.current.scheduleMicroTask("queueMicrotask",c[0])})}var Re=j("zoneTask");function ke(t,n,a,e){let c=null,f=null;n+=e,a+=e;let g={};function T(w){let _=w.data;_.args[0]=function(){return w.invoke.apply(this,arguments)};let P=c.apply(t,_.args);return Ke(P)?_.handleId=P:(_.handle=P,_.isRefreshable=Je(P.refresh)),w}function y(w){let{handle:_,handleId:P}=w.data;return f.call(t,_??P)}c=ue(t,n,w=>function(_,P){if(Je(P[0])){let L={isRefreshable:!1,isPeriodic:e==="Interval",delay:e==="Timeout"||e==="Interval"?P[1]||0:void 0,args:P},H=P[0];P[0]=function(){try{return H.apply(this,arguments)}finally{let{handle:A,handleId:V,isPeriodic:X,isRefreshable:F}=L;!X&&!F&&(V?delete g[V]:A&&(A[Re]=null))}};let z=xe(n,P[0],L,T,y);if(!z)return z;let{handleId:$,handle:J,isRefreshable:q,isPeriodic:p}=z.data;if($)g[$]=z;else if(J&&(J[Re]=z,q&&!p)){let d=J.refresh;J.refresh=function(){let{zone:A,state:V}=z;return V==="notScheduled"?(z._state="scheduled",A._updateTaskCount(z,1)):V==="running"&&(z._state="scheduling"),d.call(this)}}return J??$??z}else return w.apply(t,P)}),f=ue(t,a,w=>function(_,P){let L=P[0],H;Ke(L)?(H=g[L],delete g[L]):(H=L?.[Re],H?L[Re]=null:H=L),H?.type?H.cancelFn&&H.zone.cancelTask(H):w.apply(t,P)})}function Rt(t,n){let{isBrowser:a,isMix:e}=n.getGlobalObjects();if(!a&&!e||!t.customElements||!("customElements"in t))return;let c=["connectedCallback","disconnectedCallback","adoptedCallback","attributeChangedCallback","formAssociatedCallback","formDisabledCallback","formResetCallback","formStateRestoreCallback"];n.patchCallbacks(n,t.customElements,"customElements","define",c)}function Ct(t,n){if(Zone[n.symbol("patchEventTarget")])return;let{eventNames:a,zoneSymbolEventNames:e,TRUE_STR:c,FALSE_STR:f,ZONE_SYMBOL_PREFIX:g}=n.getGlobalObjects();for(let y=0;yf.target===t);if(e.length===0)return n;let c=e[0].ignoreProperties;return n.filter(f=>c.indexOf(f)===-1)}function Qe(t,n,a,e){if(!t)return;let c=lt(t,n,a);rt(t,c,e)}function Ie(t){return Object.getOwnPropertyNames(t).filter(n=>n.startsWith("on")&&n.length>2).map(n=>n.substring(2))}function Dt(t,n){if(De&&!nt||Zone[t.symbol("patchEvents")])return;let a=n.__Zone_ignore_on_properties,e=[];if(Ge){let c=window;e=e.concat(["Document","SVGElement","Element","HTMLElement","HTMLBodyElement","HTMLMediaElement","HTMLFrameSetElement","HTMLFrameElement","HTMLIFrameElement","HTMLMarqueeElement","Worker"]);let f=[];Qe(c,Ie(c),a&&a.concat(f),Ae(c))}e=e.concat(["XMLHttpRequest","XMLHttpRequestEventTarget","IDBIndex","IDBRequest","IDBOpenDBRequest","IDBDatabase","IDBTransaction","IDBCursor","WebSocket"]);for(let c=0;c{let a=n[t.__symbol__("legacyPatch")];a&&a()}),t.__load_patch("timers",n=>{let a="set",e="clear";ke(n,a,e,"Timeout"),ke(n,a,e,"Interval"),ke(n,a,e,"Immediate")}),t.__load_patch("requestAnimationFrame",n=>{ke(n,"request","cancel","AnimationFrame"),ke(n,"mozRequest","mozCancel","AnimationFrame"),ke(n,"webkitRequest","webkitCancel","AnimationFrame")}),t.__load_patch("blocking",(n,a)=>{let e=["alert","prompt","confirm"];for(let c=0;cfunction(w,_){return a.current.run(g,n,_,y)})}}),t.__load_patch("EventTarget",(n,a,e)=>{wt(n,e),Ct(n,e);let c=n.XMLHttpRequestEventTarget;c&&c.prototype&&e.patchEventTarget(n,e,[c.prototype])}),t.__load_patch("MutationObserver",(n,a,e)=>{ye("MutationObserver"),ye("WebKitMutationObserver")}),t.__load_patch("IntersectionObserver",(n,a,e)=>{ye("IntersectionObserver")}),t.__load_patch("FileReader",(n,a,e)=>{ye("FileReader")}),t.__load_patch("on_property",(n,a,e)=>{Dt(e,n)}),t.__load_patch("customElements",(n,a,e)=>{Rt(n,e)}),t.__load_patch("XHR",(n,a)=>{w(n);let e=j("xhrTask"),c=j("xhrSync"),f=j("xhrListener"),g=j("xhrScheduled"),T=j("xhrURL"),y=j("xhrErrorBeforeScheduled");function w(_){let P=_.XMLHttpRequest;if(!P)return;let L=P.prototype;function H(R){return R[e]}let z=L[Ne],$=L[Ze];if(!z){let R=_.XMLHttpRequestEventTarget;if(R){let b=R.prototype;z=b[Ne],$=b[Ze]}}let J="readystatechange",q="scheduled";function p(R){let b=R.data,D=b.target;D[g]=!1,D[y]=!1;let K=D[f];z||(z=D[Ne],$=D[Ze]),K&&$.call(D,J,K);let W=D[f]=()=>{if(D.readyState===D.DONE)if(!b.aborted&&D[g]&&R.state===q){let s=D[a.__symbol__("loadfalse")];if(D.status!==0&&s&&s.length>0){let i=R.invoke;R.invoke=function(){let r=D[a.__symbol__("loadfalse")];for(let E=0;Efunction(R,b){return R[c]=b[2]==!1,R[T]=b[1],V.apply(R,b)}),X="XMLHttpRequest.send",F=j("fetchTaskAborting"),k=j("fetchTaskScheduling"),U=ue(L,"send",()=>function(R,b){if(a.current[k]===!0||R[c])return U.apply(R,b);{let D={target:R,url:R[T],isPeriodic:!1,args:b,aborted:!1},K=xe(X,d,D,p,A);R&&R[y]===!0&&!D.aborted&&K.state===q&&K.invoke()}}),S=ue(L,"abort",()=>function(R,b){let D=H(R);if(D&&typeof D.type=="string"){if(D.cancelFn==null||D.data&&D.data.aborted)return;D.zone.cancelTask(D)}else if(a.current[F]===!0)return S.apply(R,b)})}}),t.__load_patch("geolocation",n=>{n.navigator&&n.navigator.geolocation&>(n.navigator.geolocation,["getCurrentPosition","watchPosition"])}),t.__load_patch("PromiseRejectionEvent",(n,a)=>{function e(c){return function(f){at(n,c).forEach(T=>{let y=n.PromiseRejectionEvent;if(y){let w=new y(c,{promise:f.promise,reason:f.rejection});T.invoke(w)}})}}n.PromiseRejectionEvent&&(a[j("unhandledPromiseRejectionHandler")]=e("unhandledrejection"),a[j("rejectionHandledHandler")]=e("rejectionhandled"))}),t.__load_patch("queueMicrotask",(n,a,e)=>{Pt(n,e)})}function Ot(t){t.__load_patch("ZoneAwarePromise",(n,a,e)=>{let c=Object.getOwnPropertyDescriptor,f=Object.defineProperty;function g(h){if(h&&h.toString===Object.prototype.toString){let l=h.constructor&&h.constructor.name;return(l||"")+": "+JSON.stringify(h)}return h?h.toString():Object.prototype.toString.call(h)}let T=e.symbol,y=[],w=n[T("DISABLE_WRAPPING_UNCAUGHT_PROMISE_REJECTION")]!==!1,_=T("Promise"),P=T("then"),L="__creationTrace__";e.onUnhandledError=h=>{if(e.showUncaughtError()){let l=h&&h.rejection;l?console.error("Unhandled Promise rejection:",l instanceof Error?l.message:l,"; Zone:",h.zone.name,"; Task:",h.task&&h.task.source,"; Value:",l,l instanceof Error?l.stack:void 0):console.error(h)}},e.microtaskDrainDone=()=>{for(;y.length;){let h=y.shift();try{h.zone.runGuarded(()=>{throw h.throwOriginal?h.rejection:h})}catch(l){z(l)}}};let H=T("unhandledPromiseRejectionHandler");function z(h){e.onUnhandledError(h);try{let l=a[H];typeof l=="function"&&l.call(this,h)}catch{}}function $(h){return h&&typeof h.then=="function"}function J(h){return h}function q(h){return M.reject(h)}let p=T("state"),d=T("value"),A=T("finally"),V=T("parentPromiseValue"),X=T("parentPromiseState"),F="Promise.then",k=null,U=!0,S=!1,R=0;function b(h,l){return o=>{try{I(h,l,o)}catch(u){I(h,!1,u)}}}let D=function(){let h=!1;return function(o){return function(){h||(h=!0,o.apply(null,arguments))}}},K="Promise resolved with itself",W=T("currentTaskTrace");function I(h,l,o){let u=D();if(h===o)throw new TypeError(K);if(h[p]===k){let v=null;try{(typeof o=="object"||typeof o=="function")&&(v=o&&o.then)}catch(C){return u(()=>{I(h,!1,C)})(),h}if(l!==S&&o instanceof M&&o.hasOwnProperty(p)&&o.hasOwnProperty(d)&&o[p]!==k)i(o),I(h,o[p],o[d]);else if(l!==S&&typeof v=="function")try{v.call(o,u(b(h,l)),u(b(h,!1)))}catch(C){u(()=>{I(h,!1,C)})()}else{h[p]=l;let C=h[d];if(h[d]=o,h[A]===A&&l===U&&(h[p]=h[X],h[d]=h[V]),l===S&&o instanceof Error){let m=a.currentTask&&a.currentTask.data&&a.currentTask.data[L];m&&f(o,W,{configurable:!0,enumerable:!1,writable:!0,value:m})}for(let m=0;m{try{let O=h[d],N=!!o&&A===o[A];N&&(o[V]=O,o[X]=C);let Z=l.run(m,void 0,N&&m!==q&&m!==J?[]:[O]);I(o,!0,Z)}catch(O){I(o,!1,O)}},o)}let E="function ZoneAwarePromise() { [native code] }",x=function(){},ee=n.AggregateError;class M{static toString(){return E}static resolve(l){return l instanceof M?l:I(new this(null),U,l)}static reject(l){return I(new this(null),S,l)}static withResolvers(){let l={};return l.promise=new M((o,u)=>{l.resolve=o,l.reject=u}),l}static any(l){if(!l||typeof l[Symbol.iterator]!="function")return Promise.reject(new ee([],"All promises were rejected"));let o=[],u=0;try{for(let m of l)u++,o.push(M.resolve(m))}catch{return Promise.reject(new ee([],"All promises were rejected"))}if(u===0)return Promise.reject(new ee([],"All promises were rejected"));let v=!1,C=[];return new M((m,O)=>{for(let N=0;N{v||(v=!0,m(Z))},Z=>{C.push(Z),u--,u===0&&(v=!0,O(new ee(C,"All promises were rejected")))})})}static race(l){let o,u,v=new this((O,N)=>{o=O,u=N});function C(O){o(O)}function m(O){u(O)}for(let O of l)$(O)||(O=this.resolve(O)),O.then(C,m);return v}static all(l){return M.allWithCallback(l)}static allSettled(l){return(this&&this.prototype instanceof M?this:M).allWithCallback(l,{thenCallback:u=>({status:"fulfilled",value:u}),errorCallback:u=>({status:"rejected",reason:u})})}static allWithCallback(l,o){let u,v,C=new this((Z,G)=>{u=Z,v=G}),m=2,O=0,N=[];for(let Z of l){$(Z)||(Z=this.resolve(Z));let G=O;try{Z.then(B=>{N[G]=o?o.thenCallback(B):B,m--,m===0&&u(N)},B=>{o?(N[G]=o.errorCallback(B),m--,m===0&&u(N)):v(B)})}catch(B){v(B)}m++,O++}return m-=2,m===0&&u(N),C}constructor(l){let o=this;if(!(o instanceof M))throw new Error("Must be an instanceof Promise.");o[p]=k,o[d]=[];try{let u=D();l&&l(u(b(o,U)),u(b(o,S)))}catch(u){I(o,!1,u)}}get[Symbol.toStringTag](){return"Promise"}get[Symbol.species](){return M}then(l,o){let u=this.constructor?.[Symbol.species];(!u||typeof u!="function")&&(u=this.constructor||M);let v=new u(x),C=a.current;return this[p]==k?this[d].push(C,v,l,o):r(this,C,v,l,o),v}catch(l){return this.then(null,l)}finally(l){let o=this.constructor?.[Symbol.species];(!o||typeof o!="function")&&(o=M);let u=new o(x);u[A]=A;let v=a.current;return this[p]==k?this[d].push(v,u,l,l):r(this,v,u,l,l),u}}M.resolve=M.resolve,M.reject=M.reject,M.race=M.race,M.all=M.all;let he=n[_]=n.Promise;n.Promise=M;let _e=T("thenPatched");function Q(h){let l=h.prototype,o=c(l,"then");if(o&&(o.writable===!1||!o.configurable))return;let u=l.then;l[P]=u,h.prototype.then=function(v,C){return new M((O,N)=>{u.call(this,O,N)}).then(v,C)},h[_e]=!0}e.patchThen=Q;function Te(h){return function(l,o){let u=h.apply(l,o);if(u instanceof M)return u;let v=u.constructor;return v[_e]||Q(v),u}}return he&&(Q(he),ue(n,"fetch",h=>Te(h))),Promise[a.__symbol__("uncaughtPromiseErrors")]=y,M})}function Nt(t){t.__load_patch("toString",n=>{let a=Function.prototype.toString,e=j("OriginalDelegate"),c=j("Promise"),f=j("Error"),g=function(){if(typeof this=="function"){let _=this[e];if(_)return typeof _=="function"?a.call(_):Object.prototype.toString.call(_);if(this===Promise){let P=n[c];if(P)return a.call(P)}if(this===Error){let P=n[f];if(P)return a.call(P)}}return a.call(this)};g[e]=a,Function.prototype.toString=g;let T=Object.prototype.toString,y="[object Promise]";Object.prototype.toString=function(){return typeof Promise=="function"&&this instanceof Promise?y:T.call(this)}})}function Zt(t,n,a,e,c){let f=Zone.__symbol__(e);if(n[f])return;let g=n[f]=n[e];n[e]=function(T,y,w){return y&&y.prototype&&c.forEach(function(_){let P=`${a}.${e}::`+_,L=y.prototype;try{if(L.hasOwnProperty(_)){let H=t.ObjectGetOwnPropertyDescriptor(L,_);H&&H.value?(H.value=t.wrapWithCurrentZone(H.value,P),t._redefineProperty(y.prototype,_,H)):L[_]&&(L[_]=t.wrapWithCurrentZone(L[_],P))}else L[_]&&(L[_]=t.wrapWithCurrentZone(L[_],P))}catch{}}),g.call(n,T,y,w)},t.attachOriginToPatched(n[e],g)}function Lt(t){t.__load_patch("util",(n,a,e)=>{let c=Ie(n);e.patchOnProperties=rt,e.patchMethod=ue,e.bindArguments=Fe,e.patchMacroTask=mt;let f=a.__symbol__("BLACK_LISTED_EVENTS"),g=a.__symbol__("UNPATCHED_EVENTS");n[g]&&(n[f]=n[g]),n[f]&&(a[f]=a[g]=n[f]),e.patchEventPrototype=bt,e.patchEventTarget=vt,e.isIEOrEdge=yt,e.ObjectDefineProperty=Me,e.ObjectGetOwnPropertyDescriptor=pe,e.ObjectCreate=_t,e.ArraySlice=Tt,e.patchClass=ye,e.wrapWithCurrentZone=Ve,e.filterProperties=lt,e.attachOriginToPatched=fe,e._redefineProperty=Object.defineProperty,e.patchCallbacks=Zt,e.getGlobalObjects=()=>({globalSources:ot,zoneSymbolEventNames:ne,eventNames:c,isBrowser:Ge,isMix:nt,isNode:De,TRUE_STR:ae,FALSE_STR:le,ZONE_SYMBOL_PREFIX:ve,ADD_EVENT_LISTENER_STR:je,REMOVE_EVENT_LISTENER_STR:He})})}function It(t){Ot(t),Nt(t),Lt(t)}var ut=dt();It(ut);St(ut); diff --git a/templates/MyCompany.MyProject.WebApi/wwwroot/styles-I3WCRGFP.css b/templates/MyCompany.MyProject.WebApi/wwwroot/styles-I3WCRGFP.css deleted file mode 100644 index 975311d..0000000 --- a/templates/MyCompany.MyProject.WebApi/wwwroot/styles-I3WCRGFP.css +++ /dev/null @@ -1 +0,0 @@ -html{--mat-sys-background: #faf9fd;--mat-sys-error: #ba1a1a;--mat-sys-error-container: #ffdad6;--mat-sys-inverse-on-surface: #f2f0f4;--mat-sys-inverse-primary: #abc7ff;--mat-sys-inverse-surface: #2f3033;--mat-sys-on-background: #1a1b1f;--mat-sys-on-error: #ffffff;--mat-sys-on-error-container: #93000a;--mat-sys-on-primary: #ffffff;--mat-sys-on-primary-container: #00458f;--mat-sys-on-primary-fixed: #001b3f;--mat-sys-on-primary-fixed-variant: #00458f;--mat-sys-on-secondary: #ffffff;--mat-sys-on-secondary-container: #3e4759;--mat-sys-on-secondary-fixed: #131c2b;--mat-sys-on-secondary-fixed-variant: #3e4759;--mat-sys-on-surface: #1a1b1f;--mat-sys-on-surface-variant: #44474e;--mat-sys-on-tertiary: #ffffff;--mat-sys-on-tertiary-container: #0000ef;--mat-sys-on-tertiary-fixed: #00006e;--mat-sys-on-tertiary-fixed-variant: #0000ef;--mat-sys-outline: #74777f;--mat-sys-outline-variant: #c4c6d0;--mat-sys-primary: #005cbb;--mat-sys-primary-container: #d7e3ff;--mat-sys-primary-fixed: #d7e3ff;--mat-sys-primary-fixed-dim: #abc7ff;--mat-sys-scrim: #000000;--mat-sys-secondary: #565e71;--mat-sys-secondary-container: #dae2f9;--mat-sys-secondary-fixed: #dae2f9;--mat-sys-secondary-fixed-dim: #bec6dc;--mat-sys-shadow: #000000;--mat-sys-surface: #faf9fd;--mat-sys-surface-bright: #faf9fd;--mat-sys-surface-container: #efedf0;--mat-sys-surface-container-high: #e9e7eb;--mat-sys-surface-container-highest: #e3e2e6;--mat-sys-surface-container-low: #f4f3f6;--mat-sys-surface-container-lowest: #ffffff;--mat-sys-surface-dim: #dbd9dd;--mat-sys-surface-tint: #005cbb;--mat-sys-surface-variant: #e0e2ec;--mat-sys-tertiary: #343dff;--mat-sys-tertiary-container: #e0e0ff;--mat-sys-tertiary-fixed: #e0e0ff;--mat-sys-tertiary-fixed-dim: #bec2ff;--mat-sys-neutral-variant20: #2d3038;--mat-sys-neutral10: #1a1b1f}html{--mat-sys-level0: 0px 0px 0px 0px rgba(0, 0, 0, .2), 0px 0px 0px 0px rgba(0, 0, 0, .14), 0px 0px 0px 0px rgba(0, 0, 0, .12)}html{--mat-sys-level1: 0px 2px 1px -1px rgba(0, 0, 0, .2), 0px 1px 1px 0px rgba(0, 0, 0, .14), 0px 1px 3px 0px rgba(0, 0, 0, .12)}html{--mat-sys-level2: 0px 3px 3px -2px rgba(0, 0, 0, .2), 0px 3px 4px 0px rgba(0, 0, 0, .14), 0px 1px 8px 0px rgba(0, 0, 0, .12)}html{--mat-sys-level3: 0px 3px 5px -1px rgba(0, 0, 0, .2), 0px 6px 10px 0px rgba(0, 0, 0, .14), 0px 1px 18px 0px rgba(0, 0, 0, .12)}html{--mat-sys-level4: 0px 5px 5px -3px rgba(0, 0, 0, .2), 0px 8px 10px 1px rgba(0, 0, 0, .14), 0px 3px 14px 2px rgba(0, 0, 0, .12)}html{--mat-sys-level5: 0px 7px 8px -4px rgba(0, 0, 0, .2), 0px 12px 17px 2px rgba(0, 0, 0, .14), 0px 5px 22px 4px rgba(0, 0, 0, .12)}html{--mat-sys-body-large: 400 1rem / 1.5rem Roboto;--mat-sys-body-large-font: Roboto;--mat-sys-body-large-line-height: 1.5rem;--mat-sys-body-large-size: 1rem;--mat-sys-body-large-tracking: .031rem;--mat-sys-body-large-weight: 400;--mat-sys-body-medium: 400 .875rem / 1.25rem Roboto;--mat-sys-body-medium-font: Roboto;--mat-sys-body-medium-line-height: 1.25rem;--mat-sys-body-medium-size: .875rem;--mat-sys-body-medium-tracking: .016rem;--mat-sys-body-medium-weight: 400;--mat-sys-body-small: 400 .75rem / 1rem Roboto;--mat-sys-body-small-font: Roboto;--mat-sys-body-small-line-height: 1rem;--mat-sys-body-small-size: .75rem;--mat-sys-body-small-tracking: .025rem;--mat-sys-body-small-weight: 400;--mat-sys-display-large: 400 3.562rem / 4rem Roboto;--mat-sys-display-large-font: Roboto;--mat-sys-display-large-line-height: 4rem;--mat-sys-display-large-size: 3.562rem;--mat-sys-display-large-tracking: -.016rem;--mat-sys-display-large-weight: 400;--mat-sys-display-medium: 400 2.812rem / 3.25rem Roboto;--mat-sys-display-medium-font: Roboto;--mat-sys-display-medium-line-height: 3.25rem;--mat-sys-display-medium-size: 2.812rem;--mat-sys-display-medium-tracking: 0;--mat-sys-display-medium-weight: 400;--mat-sys-display-small: 400 2.25rem / 2.75rem Roboto;--mat-sys-display-small-font: Roboto;--mat-sys-display-small-line-height: 2.75rem;--mat-sys-display-small-size: 2.25rem;--mat-sys-display-small-tracking: 0;--mat-sys-display-small-weight: 400;--mat-sys-headline-large: 400 2rem / 2.5rem Roboto;--mat-sys-headline-large-font: Roboto;--mat-sys-headline-large-line-height: 2.5rem;--mat-sys-headline-large-size: 2rem;--mat-sys-headline-large-tracking: 0;--mat-sys-headline-large-weight: 400;--mat-sys-headline-medium: 400 1.75rem / 2.25rem Roboto;--mat-sys-headline-medium-font: Roboto;--mat-sys-headline-medium-line-height: 2.25rem;--mat-sys-headline-medium-size: 1.75rem;--mat-sys-headline-medium-tracking: 0;--mat-sys-headline-medium-weight: 400;--mat-sys-headline-small: 400 1.5rem / 2rem Roboto;--mat-sys-headline-small-font: Roboto;--mat-sys-headline-small-line-height: 2rem;--mat-sys-headline-small-size: 1.5rem;--mat-sys-headline-small-tracking: 0;--mat-sys-headline-small-weight: 400;--mat-sys-label-large: 500 .875rem / 1.25rem Roboto;--mat-sys-label-large-font: Roboto;--mat-sys-label-large-line-height: 1.25rem;--mat-sys-label-large-size: .875rem;--mat-sys-label-large-tracking: .006rem;--mat-sys-label-large-weight: 500;--mat-sys-label-large-weight-prominent: 700;--mat-sys-label-medium: 500 .75rem / 1rem Roboto;--mat-sys-label-medium-font: Roboto;--mat-sys-label-medium-line-height: 1rem;--mat-sys-label-medium-size: .75rem;--mat-sys-label-medium-tracking: .031rem;--mat-sys-label-medium-weight: 500;--mat-sys-label-medium-weight-prominent: 700;--mat-sys-label-small: 500 .688rem / 1rem Roboto;--mat-sys-label-small-font: Roboto;--mat-sys-label-small-line-height: 1rem;--mat-sys-label-small-size: .688rem;--mat-sys-label-small-tracking: .031rem;--mat-sys-label-small-weight: 500;--mat-sys-title-large: 400 1.375rem / 1.75rem Roboto;--mat-sys-title-large-font: Roboto;--mat-sys-title-large-line-height: 1.75rem;--mat-sys-title-large-size: 1.375rem;--mat-sys-title-large-tracking: 0;--mat-sys-title-large-weight: 400;--mat-sys-title-medium: 500 1rem / 1.5rem Roboto;--mat-sys-title-medium-font: Roboto;--mat-sys-title-medium-line-height: 1.5rem;--mat-sys-title-medium-size: 1rem;--mat-sys-title-medium-tracking: .009rem;--mat-sys-title-medium-weight: 500;--mat-sys-title-small: 500 .875rem / 1.25rem Roboto;--mat-sys-title-small-font: Roboto;--mat-sys-title-small-line-height: 1.25rem;--mat-sys-title-small-size: .875rem;--mat-sys-title-small-tracking: .006rem;--mat-sys-title-small-weight: 500}html{--mat-sys-corner-extra-large: 28px;--mat-sys-corner-extra-large-top: 28px 28px 0 0;--mat-sys-corner-extra-small: 4px;--mat-sys-corner-extra-small-top: 4px 4px 0 0;--mat-sys-corner-full: 9999px;--mat-sys-corner-large: 16px;--mat-sys-corner-large-end: 0 16px 16px 0;--mat-sys-corner-large-start: 16px 0 0 16px;--mat-sys-corner-large-top: 16px 16px 0 0;--mat-sys-corner-medium: 12px;--mat-sys-corner-none: 0;--mat-sys-corner-small: 8px}html{--mat-sys-dragged-state-layer-opacity: .16;--mat-sys-focus-state-layer-opacity: .12;--mat-sys-hover-state-layer-opacity: .08;--mat-sys-pressed-state-layer-opacity: .12}html,body{height:100%}body{margin:0;font-family:Roboto,Helvetica Neue,sans-serif}:root{box-sizing:border-box;width:100%}:root .mat-mdc-select-value{color:#fff}:root .mat-mdc-dialog-surface{border-radius:8px}:root .mat-mdc-menu-content{background-color:#2f2f2e}:root mat-dialog-container{max-height:80vh}:root ::-webkit-scrollbar{width:6px}:root ::-webkit-scrollbar-thumb{background-color:#ac99ea4d!important;border-radius:3px}:root ::-webkit-scrollbar-track{background:green}:root *{scrollbar-width:thin;scrollbar-color:rgba(172,153,234,.3) transparent}:root{--mdc-outlined-text-field-label-text-color: rgba(255, 255, 255, .7)}:root{--mdc-outlined-text-field-hover-label-text-color: rgba(255, 255, 255, .7)}:root{--mdc-outlined-text-field-input-text-color: #ffffff}:root{--mdc-filled-text-field-hover-label-text-color: rgba(255, 255, 255, .7)}:root{--mdc-filled-text-field-focus-active-indicator-color: rgba(255, 255, 255, .7)}:root{--mdc-outlined-text-field-hover-outline-color: #ac99ea}:root{--mdc-filled-text-field-active-indicator-color: #ac99ea}:root{--mdc-outlined-text-field-focus-outline-color: #ac99ea}:root{--mdc-outlined-text-field-focus-label-text-color: #ac99ea}:root{--mdc-filled-text-field-error-hover-label-text-color: #ef5350}:root{--mdc-filled-text-field-error-focus-label-text-color: #ef5350}:root{--mdc-filled-text-field-error-label-text-color: #ef5350}:root{--mdc-filled-text-field-error-caret-color: #ef5350}:root{--mdc-filled-text-field-error-active-indicator-color: #ef5350}:root{--mdc-filled-text-field-error-focus-active-indicator-color: #ef5350}:root{--mdc-filled-text-field-error-hover-active-indicator-color: #ef5350}:root{--mdc-outlined-text-field-error-caret-color: #ef5350}:root{--mdc-outlined-text-field-error-focus-label-text-color: #ef5350}:root{--mdc-outlined-text-field-error-label-text-color: #ef5350}:root{--mdc-outlined-text-field-error-hover-label-text-color: #ef5350}:root{--mdc-outlined-text-field-error-focus-outline-color: #ef5350}:root{--mdc-outlined-text-field-error-hover-outline-color: #ef5350}:root{--mdc-outlined-text-field-error-outline-color: #ef5350}:root{--mat-form-field-error-text-color: #ef5350}:root{--mat-form-field-error-focus-trailing-icon-color: #ef5350}:root{--mat-form-field-error-hover-trailing-icon-color: #ef5350}:root{--mat-form-field-error-trailing-icon-color: #ef5350}:root{--mdc-filled-text-field-input-text-color: #ffffff}:root{--mdc-filled-text-field-input-text-placeholder-color: #ffffff}:root{--mdc-filled-text-field-focus-label-text-color: #ffffff}:root{--mdc-filled-text-field-label-text-color: #ffffff}:root{--mdc-filled-text-field-disabled-label-text-color: #ffffff}:root{--mdc-outlined-text-field-disabled-label-text-color: #ffffff}:root{--mdc-outlined-text-field-input-text-placeholder-color: #ffffff}:root{--mat-form-field-select-option-text-color: #ffffff}:root{--mdc-checkbox-unselected-icon-color: rgba(255, 255, 255, .56)}:root{--mdc-checkbox-unselected-focus-icon-color: rgba(255, 255, 255, .56)}:root{--mdc-checkbox-selected-pressed-icon-color: #ac99ea}:root{--mdc-checkbox-selected-icon-color: #ac99ea}:root{--mdc-checkbox-selected-focus-icon-color: #ac99ea}:root{--mdc-checkbox-selected-hover-icon-color: #ac99ea}:root{--mdc-checkbox-unselected-hover-icon-color: rgba(255, 255, 255, .56)}:root{--mdc-checkbox-selected-checkmark-color: #121212}:root{--mdc-checkbox-selected-hover-state-layer-color: #121212}:root{--mdc-checkbox-unselected-pressed-state-layer-color: #121212}:root{--mdc-checkbox-unselected-hover-state-layer-color: #121212}:root{--mdc-checkbox-selected-pressed-state-layer-color: #121212}:root{--mdc-checkbox-selected-focus-state-layer-color: #121212}:root{--mdc-checkbox-unselected-focus-state-layer-color: #121212}:root{--mdc-checkbox-selected-hover-state-layer-opacity: 1}:root{--mdc-checkbox-unselected-hover-state-layer-opacity: 1}:root{--mdc-checkbox-selected-focus-state-layer-opacity: 0}:root{--mdc-checkbox-unselected-pressed-state-layer-opacity: 0}:root{--mdc-checkbox-selected-pressed-state-layer-opacity: 0}:root{--mat-checkbox-label-text-color: #ffffff}:root{--mdc-circular-progress-active-indicator-color: #ac99ea}:root{--mdc-dialog-container-color: #1e1e1e}:root{background-color:#121212}hr{width:100%;border-color:#fff3}.floating-menu-container{position:fixed;top:0;left:0;width:100%;height:100%;z-index:1000;pointer-events:none}.floating-menu{position:absolute;z-index:1001;pointer-events:auto;background-color:#2e2e2e;border-radius:4px;box-shadow:0 4px 8px #00000080} From 0b57737c4e76264ad2c34a222e2fb07d8d5c39a3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Mon, 29 Dec 2025 16:25:25 +0000 Subject: [PATCH 3/3] Add documentation and improve code quality based on review Co-authored-by: fvanderflier <177029273+fvanderflier@users.noreply.github.com> --- CCUI.DAPPI/src/app/app.config.server.ts | 5 +++++ .../src/app/state/collection/collection.effects.ts | 11 ++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/CCUI.DAPPI/src/app/app.config.server.ts b/CCUI.DAPPI/src/app/app.config.server.ts index 1980cfe..b291f7b 100644 --- a/CCUI.DAPPI/src/app/app.config.server.ts +++ b/CCUI.DAPPI/src/app/app.config.server.ts @@ -2,6 +2,11 @@ import { mergeApplicationConfig, ApplicationConfig } from '@angular/core'; import { provideServerRendering } from '@angular/platform-server'; import { appConfig } from './app.config'; +/** + * Server-side rendering configuration for Angular 20+. + * Note: provideServerRouting was deprecated in Angular 20 and removed. + * Server routes configuration is now handled differently in Angular 20+. + */ const serverConfig: ApplicationConfig = { providers: [provideServerRendering()], }; diff --git a/CCUI.DAPPI/src/app/state/collection/collection.effects.ts b/CCUI.DAPPI/src/app/state/collection/collection.effects.ts index 2b2ed2f..7759704 100644 --- a/CCUI.DAPPI/src/app/state/collection/collection.effects.ts +++ b/CCUI.DAPPI/src/app/state/collection/collection.effects.ts @@ -109,12 +109,21 @@ export class CollectionEffects { ) ); + /** + * Clears the selected collection type when it's no longer valid. + * This effect triggers when collection types are reloaded (e.g., after deletion) + * and ensures the UI shows the empty state if the currently selected type + * doesn't exist in the new list of collection types. + */ clearInvalidSelectedType$ = createEffect(() => this.actions$.pipe( ofType(CollectionActions.loadCollectionTypesSuccess), withLatestFrom(this.store.pipe(select(selectSelectedType))), filter( - ([action, selectedType]) => !!selectedType && !action.collectionTypes.includes(selectedType) + ([action, selectedType]) => + selectedType !== null && + selectedType !== '' && + !action.collectionTypes.includes(selectedType) ), map(() => ContentActions.setContentType({