diff --git a/angular.json b/angular.json index b141be7..54af60f 100644 --- a/angular.json +++ b/angular.json @@ -15,26 +15,64 @@ "prefix": "app", "architect": { "build": { - "builder": "@angular-devkit/build-angular:browser", + "builder": "@angular/build:application", "options": { - "outputPath": "docs", + "outputPath": { + "base": "docs", + "browser": "" + }, "index": "src/index.html", - "main": "src/main.ts", - "polyfills": "src/polyfills.ts", + "polyfills": [], "tsConfig": "tsconfig.app.json", "assets": [ "src/favicon.ico", "src/assets" ], "styles": [ - "src/styles.scss" + "src/styles.scss", + { + "input": "src/themes/material-light.scss", + "bundleName": "theme-material-light", + "inject": false + }, + { + "input": "src/themes/material-dark.scss", + "bundleName": "theme-material-dark", + "inject": false + }, + { + "input": "src/themes/fluent-light.scss", + "bundleName": "theme-fluent-light", + "inject": false + }, + { + "input": "src/themes/fluent-dark.scss", + "bundleName": "theme-fluent-dark", + "inject": false + }, + { + "input": "src/themes/bootstrap-light.scss", + "bundleName": "theme-bootstrap-light", + "inject": false + }, + { + "input": "src/themes/bootstrap-dark.scss", + "bundleName": "theme-bootstrap-dark", + "inject": false + }, + { + "input": "src/themes/indigo-light.scss", + "bundleName": "theme-indigo-light", + "inject": false + }, + { + "input": "src/themes/indigo-dark.scss", + "bundleName": "theme-indigo-dark", + "inject": false + } ], - "scripts": [ - "./node_modules/hammerjs/hammer.min.js" - ], - "vendorChunk": true, + "scripts": [], "extractLicenses": false, - "buildOptimizer": false, "sourceMap": true, "optimization": false, "namedChunks": true, @@ -42,12 +80,10 @@ "includePaths": [ "node_modules" ] - } + }, + "browser": "src/main.ts" }, "configurations": { - "es5": { - "tsConfig": "tsconfig-es5.app.json" - }, "production": { "fileReplacements": [ { @@ -60,8 +96,6 @@ "sourceMap": false, "namedChunks": false, "extractLicenses": true, - "vendorChunk": false, - "buildOptimizer": true, "budgets": [ { "type": "initial", @@ -75,42 +109,35 @@ } ] } - }, - "defaultConfiguration": "" + } }, "serve": { - "builder": "@angular-devkit/build-angular:dev-server", + "builder": "@angular/build:dev-server", "options": { - "browserTarget": "inventorymanagementapp:build" + "buildTarget": "inventorymanagementapp:build" }, "configurations": { "production": { - "browserTarget": "inventorymanagementapp:build:production" - }, - "es5": { - "browserTarget": "inventorymanagementapp:build:es5" + "buildTarget": "inventorymanagementapp:build:production" } } }, "extract-i18n": { - "builder": "@angular-devkit/build-angular:extract-i18n", + "builder": "@angular/build:extract-i18n", "options": { - "browserTarget": "inventorymanagementapp:build" + "buildTarget": "inventorymanagementapp:build" } }, "test": { - "builder": "@angular-devkit/build-angular:karma", + "builder": "@angular/build:karma", "options": { - "main": "src/test.ts", - "polyfills": "src/polyfills.ts", + "polyfills": [], "tsConfig": "tsconfig.spec.json", "karmaConfig": "karma.conf.js", "styles": [ "src/styles.scss" ], - "scripts": [ - "./node_modules/hammerjs/hammer.min.js" - ], + "scripts": [], "assets": [ "src/favicon.ico", "src/assets" @@ -122,22 +149,48 @@ } } }, - "e2e": { - "builder": "@angular-devkit/build-angular:protractor", + "lint": { + "builder": "@angular-eslint/builder:lint", "options": { - "protractorConfig": "e2e/protractor.conf.js", - "devServerTarget": "inventorymanagementapp:serve" - }, - "configurations": { - "production": { - "devServerTarget": "inventorymanagementapp:serve:production" - } + "lintFilePatterns": [ + "src/**/*.ts", + "src/**/*.html" + ] } } } } }, "cli": { - "analytics": false + "analytics": false, + "schematicCollections": [ + "angular-eslint" + ] + }, + "schematics": { + "@schematics/angular:component": { + "type": "component" + }, + "@schematics/angular:directive": { + "type": "directive" + }, + "@schematics/angular:service": { + "type": "service" + }, + "@schematics/angular:guard": { + "typeSeparator": "." + }, + "@schematics/angular:interceptor": { + "typeSeparator": "." + }, + "@schematics/angular:module": { + "typeSeparator": "." + }, + "@schematics/angular:pipe": { + "typeSeparator": "." + }, + "@schematics/angular:resolver": { + "typeSeparator": "." + } } -} \ No newline at end of file +} diff --git a/docs/3rdpartylicenses.txt b/docs/3rdpartylicenses.txt new file mode 100644 index 0000000..aa71fdc --- /dev/null +++ b/docs/3rdpartylicenses.txt @@ -0,0 +1,1540 @@ + +-------------------------------------------------------------------------------- +Package: fflate +License: "MIT" + +MIT License + +Copyright (c) 2026 Arjun Barrett + +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-2026 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: @angular/common +License: "MIT" + +The MIT License + +Copyright (c) 2010-2026 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-2026 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-2026 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: lodash-es +License: "MIT" + +Copyright OpenJS Foundation and other contributors + +Based on Underscore.js, copyright Jeremy Ashkenas, +DocumentCloud and Investigative Reporters & Editors + +This software consists of voluntary contributions made by many +individuals. For exact contribution history, see the revision history +available at https://github.com/lodash/lodash + +The following license applies to all parts of this software except as +documented below: + +==== + +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. + +==== + +Copyright and related rights for sample code are waived via CC0. Sample +code is defined as all source code displayed within the prose of the +documentation. + +CC0: http://creativecommons.org/publicdomain/zero/1.0/ + +==== + +Files located in the node_modules and vendor directories are externally +maintained libraries used by this software which have their own +licenses; we recommend you read them, as their terms may differ from the +terms above. + +-------------------------------------------------------------------------------- +Package: igniteui-i18n-core +License: "MIT" + +MIT License + +Copyright (c) 2025 INFRAGISTICS + +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/animations +License: "MIT" + +The MIT License + +Copyright (c) 2010-2026 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: igniteui-angular +License: "SEE LICENSE IN LICENSE" + +================================================================= + +Dual License for Ignite UI for Angular + +================================================================= + +This software package is offered under a dual-license model, which allows for both commercial and permissive open-source use, depending on the components, modules, directives, and services being used. + +It is crucial to understand which license applies to which part of the package. + +----------------------------------------------------------------- + +MIT License + +----------------------------------------------------------------- + +The MIT License applies exclusively to the components (encompassing all related modules and directives), directives, and services listed below and their associated source code. All other parts of this package remain under the Infragistics Commercial License. + +Covered Components, Directives and Services with MIT License: + +- igx-accordion +- igx-action-strip +- igxAutocomplete +- igx-avatar +- igx-badge +- igx-banner +- igx-bottom-nav +- igxButton +- igx-card +- igx-carousel +- igx-chat +- igx-checkbox +- igx-chip +- igx-circular-bar +- igx-combo +- igx-date-picker +- igx-date-range-picker +- igx-dialog +- igx-divider +- igx-drop-down +- igx-expansion-panel +- igx-grid-lite +- igx-icon +- igx-input-group +- igx-linear-bar +- igx-list +- igx-navbar +- igx-nav-drawer +- igx-paginator +- igx-radio +- igx-radio-group +- igx-rating +- igx-select +- igx-simple-combo +- igx-slider +- igx-snackbar +- igx-splitter +- igx-switch +- igx-tabs +- igx-toast +- igx-tooltip +- igx-tree +- igx-time-picker +- igx-stepper +- igx-month-picker +- igx-action-strip +- igx-buttongroup +- igx-calendar +- igx-chip-area +- igxDateTimeEditor +- igxDrag +- igxDrop +- igxFor +- igxIconButton +- igxInput +- igxLabel +- igxLayout +- igxMask +- igxRipple +- IgxOverlayService +- IgxTextHighlightDirective +- IgxTextHighlightService +- igxToggle + +The MIT License applies exclusively to the components (encompassing all related modules and directives), directives, and services listed above and their associated source code. +All other parts of this package remain under the Infragistics Commercial License. + +The MIT License (MIT) + +Copyright (c) 2025 Infragistics + +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. + +For details, see https://opensource.org/licenses/MIT + +----------------------------------------------------------------- + +Infragistics Commercial License + +----------------------------------------------------------------- + +All components (encompassing all related modules and directives), modules, directives, services, and code within this package, except those listed under the MIT License section above, are licensed under the Infragistics Commercial License (EULA). + +This is a commercial product, requiring a valid paid-for license for commercial use. +This product is free to use for non-commercial educational use for students in K through 12 grades +or University programs, and for educators to use in a classroom setting as examples/tools in their curriculum. + +To verify eligibility for free usage, please register for trial at: +https://www.infragistics.com/angular and open a support ticket with a request for free license. + +To acquire a license for commercial usage, please register for trial at: +https://www.infragistics.com/angular and refer to the purchasing options in the pricing section on the product page. + +This repository includes code originally copied from https://github.com/zloirock/core-js +in the projects/igniteui-angular/src/lib/core/setImmediate.ts file. The original version of the code is MIT licensed. See the file header for details. + +© Copyright 2025 INFRAGISTICS. All Rights Reserved. +The Infragistics Ultimate license & copyright applies to this distribution. +For information on that license, please go to: +https://www.infragistics.com/legal/license + +-------------------------------------------------------------------------------- +Package: @igniteui/material-icons-extended +License: "MIT" + +MIT License + +Copyright (c) 2020 Infragistics + +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-2026 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: igniteui-angular-core +License: "Infragistics(R) Ultimate license (http://www.infragistics.com/legal/ultimate/license/)" + +============================================================== +==== Ignite UI(R) for Angular 2023 Volume 2 ==== +============================================================== + +============================================================== +==== Distributed under Infragistics(R) Ultimate license ==== +==== agreement. You have to fully read, understand, ==== +==== and agree with the following license prior to ==== +==== using this copy of the Ignite UI product: ==== +==== http://www.infragistics.com/legal/ultimate/license/ ==== +============================================================== + + +Getting Started with Ignite UI for Angular +-------------------------------------------------------------- +You can find getting started information related to this product here: + +http://igniteui.com/ + +THIRD PARTY COMPONENTS, USAGE & RESTRICTIONS. + A. The SOFTWARE may include certain third party components ("MS-PL Components") licensed under the Microsoft Permissive License ("MS-PL"). A list of included MS-PL Components and their respective licenses shall be provided upon request. + To the extent required by the MS-PL, the terms of such license will apply in lieu of the terms of this Agreement, and Infragistics, Inc. hereby represents and warrants that the license granted to such MS-PL Components will be no less broad than the license granted in this Agreement. To the extent the terms of the license applicable to MS-PL Components prohibit any of the restrictions in this agreement with respect to such MS-PL Components, such restrictions will not apply to such MS-PL Components. The MS-PL Components are provided "as is" by the third party licensors who disclaim all liabilities, damages, (even if they have been advised of the possibility of such damages), warranties, indemnities and other obligations of any kind, express or implied, with regard to the MS-PL Components. The MS-PL Components are excluded from any indemnity provided by Infragistics Inc. in this license. Nothing in the foregoing affects any performance warranty provided by Infragistics Inc. with regard to the SOFTWARE as a whole. + +B. The SOFTWARE may also include third party components ("Other Components") licensed under, and subject to the permission of the MIT License found at https://opensource.org/licenses/MIT. The Other Components are 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 OTHER COMPONENTS OR THE USE OF OTHER DEALINGS IN THE OTHER COMPONENTS. + +C. Note: To the best of our knowledge, Microsoft� doesn't forbid third-party companies from developing a product for the XPS document generation. However, according to the XML Paper Specification Patent License, we need to provide the following notice for your information: + This product may incorporate intellectual property owned by Microsoft Corporation. The terms and conditions upon which Microsoft is licensing such intellectual property can be found at http://www.microsoft.com/whdc/XPS/XpsLicense.mspx. + +-------------------------------------------------------------------------------- +Package: igniteui-angular-charts +License: "Infragistics(R) Ultimate license (http://www.infragistics.com/legal/ultimate/license/)" + +============================================================== +==== Ignite UI(R) for Angular 2023 Volume 2 ==== +============================================================== + +============================================================== +==== Distributed under Infragistics(R) Ultimate license ==== +==== agreement. You have to fully read, understand, ==== +==== and agree with the following license prior to ==== +==== using this copy of the Ignite UI product: ==== +==== http://www.infragistics.com/legal/ultimate/license/ ==== +============================================================== + + +Getting Started with Ignite UI for Angular +-------------------------------------------------------------- +You can find getting started information related to this product here: + +http://igniteui.com/ + +THIRD PARTY COMPONENTS, USAGE & RESTRICTIONS. + A. The SOFTWARE may include certain third party components ("MS-PL Components") licensed under the Microsoft Permissive License ("MS-PL"). A list of included MS-PL Components and their respective licenses shall be provided upon request. + To the extent required by the MS-PL, the terms of such license will apply in lieu of the terms of this Agreement, and Infragistics, Inc. hereby represents and warrants that the license granted to such MS-PL Components will be no less broad than the license granted in this Agreement. To the extent the terms of the license applicable to MS-PL Components prohibit any of the restrictions in this agreement with respect to such MS-PL Components, such restrictions will not apply to such MS-PL Components. The MS-PL Components are provided "as is" by the third party licensors who disclaim all liabilities, damages, (even if they have been advised of the possibility of such damages), warranties, indemnities and other obligations of any kind, express or implied, with regard to the MS-PL Components. The MS-PL Components are excluded from any indemnity provided by Infragistics Inc. in this license. Nothing in the foregoing affects any performance warranty provided by Infragistics Inc. with regard to the SOFTWARE as a whole. + +B. The SOFTWARE may also include third party components ("Other Components") licensed under, and subject to the permission of the MIT License found at https://opensource.org/licenses/MIT. The Other Components are 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 OTHER COMPONENTS OR THE USE OF OTHER DEALINGS IN THE OTHER COMPONENTS. + +C. Note: To the best of our knowledge, Microsoft� doesn't forbid third-party companies from developing a product for the XPS document generation. However, according to the XML Paper Specification Patent License, we need to provide the following notice for your information: + This product may incorporate intellectual property owned by Microsoft Corporation. The terms and conditions upon which Microsoft is licensing such intellectual property can be found at http://www.microsoft.com/whdc/XPS/XpsLicense.mspx. + +-------------------------------------------------------------------------------- +Package: @lit/reactive-element +License: "BSD-3-Clause" + +BSD 3-Clause License + +Copyright (c) 2017 Google LLC. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +-------------------------------------------------------------------------------- +Package: lit-html +License: "BSD-3-Clause" + +BSD 3-Clause License + +Copyright (c) 2017 Google LLC. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +-------------------------------------------------------------------------------- +Package: lit-element +License: "BSD-3-Clause" + +BSD 3-Clause License + +Copyright (c) 2017 Google LLC. All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. +-------------------------------------------------------------------------------- +Package: igniteui-trial-watermark +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 [yyyy] [name of copyright owner] + + 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: html2canvas +License: "MIT" + +Copyright (c) 2012 Niklas von Hertzen + +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: dompurify +License: "(MPL-2.0 OR 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 [yyyy] [name of copyright owner] + + 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: core-js +License: "MIT" + +Copyright (c) 2013–2025 Denis Pushkarev (zloirock.ru) +Copyright (c) 2025–2026 CoreJS Company (core-js.io) + +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: performance-now +License: "MIT" + +Copyright (c) 2013 Braveg1rl + +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: raf +License: "MIT" + +Copyright 2013 Chris Dickinson + +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: rgbcolor +License: "MIT OR SEE LICENSE IN FEEL-FREE.md" + +Copyright (c) 2016 Stoyan Stefanov, http://phpied.com/ + +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. + + +Exemptions +========== + +Please either apply this, the MIT license, or the license in './FEEL-FREE.md' + +-------------------------------------------------------------------------------- +Package: canvg +License: "MIT" + +The MIT License (MIT) + +Copyright (c) 2010 - present Gabe Lerner (gabelerner@gmail.com) - https://github.com/canvg/canvg + +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: @babel/runtime +License: "MIT" + +MIT License + +Copyright (c) 2014-present Sebastian McKenzie and other contributors + +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: svg-pathdata +License: "MIT" + +The MIT License (MIT) +Copyright © 2017 Nicolas Froidure + +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: stackblur-canvas +License: "MIT" + +Copyright (c) 2010 Mario Klingemann + +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: iobuffer +License: "MIT" + +The MIT License (MIT) + +Copyright (c) 2015 Michaël Zasso + +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: pako +License: "(MIT AND Zlib)" + +(The MIT License) + +Copyright (C) 2014-2017 by Vitaly Puzrin and Andrei Tuputcyn + +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: fast-png +License: "MIT" + +MIT License + +Copyright (c) 2015 Michaël Zasso + +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: jspdf +License: "MIT" + +Copyright +(c) 2010-2025 James Hall, https://github.com/MrRio/jsPDF +(c) 2015-2025 yWorks GmbH, https://www.yworks.com/ + +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/docs/assets/GitHub/github.svg b/docs/assets/GitHub/github.svg new file mode 100644 index 0000000..0358b9a --- /dev/null +++ b/docs/assets/GitHub/github.svg @@ -0,0 +1 @@ +GitHub \ No newline at end of file diff --git a/docs/assets/im-logo.svg b/docs/assets/im-logo.svg new file mode 100644 index 0000000..5f9af91 --- /dev/null +++ b/docs/assets/im-logo.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/docs/assets/indigo-design.svg b/docs/assets/indigo-design.svg new file mode 100644 index 0000000..d1651e7 --- /dev/null +++ b/docs/assets/indigo-design.svg @@ -0,0 +1,183 @@ + + + + + + + + + + + + + + + + + + + import { IgxGridModule } + from 'igniteui-angular'; + @NgModule({ + imports: [ + ... + IgxGridModule + ... + ] + }) + export class AppModule {} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/docs/assets/products/Apple-AirPods-Pro.png b/docs/assets/products/Apple-AirPods-Pro.png new file mode 100644 index 0000000..f7c90e3 Binary files /dev/null and b/docs/assets/products/Apple-AirPods-Pro.png differ diff --git a/docs/assets/products/BenQ-TK850.png b/docs/assets/products/BenQ-TK850.png new file mode 100644 index 0000000..bd75cfc Binary files /dev/null and b/docs/assets/products/BenQ-TK850.png differ diff --git a/docs/assets/products/Broncolor-Siros-400L.png b/docs/assets/products/Broncolor-Siros-400L.png new file mode 100644 index 0000000..7771e03 Binary files /dev/null and b/docs/assets/products/Broncolor-Siros-400L.png differ diff --git a/docs/assets/products/Canon-EOS-R5.jpg b/docs/assets/products/Canon-EOS-R5.jpg new file mode 100644 index 0000000..e9fd7b8 Binary files /dev/null and b/docs/assets/products/Canon-EOS-R5.jpg differ diff --git a/docs/assets/products/Canon-RF-85mm-f1.2L.png b/docs/assets/products/Canon-RF-85mm-f1.2L.png new file mode 100644 index 0000000..d36275f Binary files /dev/null and b/docs/assets/products/Canon-RF-85mm-f1.2L.png differ diff --git a/docs/assets/products/DJI-Mavic-Air-2.png b/docs/assets/products/DJI-Mavic-Air-2.png new file mode 100644 index 0000000..f10a1ec Binary files /dev/null and b/docs/assets/products/DJI-Mavic-Air-2.png differ diff --git a/docs/assets/products/GoPro-HERO8-Black.png b/docs/assets/products/GoPro-HERO8-Black.png new file mode 100644 index 0000000..56eb6d3 Binary files /dev/null and b/docs/assets/products/GoPro-HERO8-Black.png differ diff --git a/docs/assets/products/Lenovo-14-IdeaPad-Flex5.png b/docs/assets/products/Lenovo-14-IdeaPad-Flex5.png new file mode 100644 index 0000000..0e51820 Binary files /dev/null and b/docs/assets/products/Lenovo-14-IdeaPad-Flex5.png differ diff --git a/docs/assets/products/Rode-Wireless-GO-Black.png b/docs/assets/products/Rode-Wireless-GO-Black.png new file mode 100644 index 0000000..14417f2 Binary files /dev/null and b/docs/assets/products/Rode-Wireless-GO-Black.png differ diff --git a/docs/assets/products/Sony-A8H-55-4K-OLED.png b/docs/assets/products/Sony-A8H-55-4K-OLED.png new file mode 100644 index 0000000..2462e60 Binary files /dev/null and b/docs/assets/products/Sony-A8H-55-4K-OLED.png differ diff --git a/docs/assets/responsive.gif b/docs/assets/responsive.gif new file mode 100644 index 0000000..76ecc95 Binary files /dev/null and b/docs/assets/responsive.gif differ diff --git a/docs/chunk-ACAMUYGZ.js b/docs/chunk-ACAMUYGZ.js new file mode 100644 index 0000000..3e1463b --- /dev/null +++ b/docs/chunk-ACAMUYGZ.js @@ -0,0 +1,5 @@ +import{d as OQ}from"./chunk-IFGU66OU.js";var MQ=OQ((nt,st)=>{(function(IA,P){typeof nt=="object"&&typeof st<"u"?st.exports=P():typeof define=="function"&&define.amd?define(P):(IA=typeof globalThis<"u"?globalThis:IA||self,IA.html2canvas=P())})(nt,(function(){"use strict";var IA=function(e,A){return IA=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,r){t.__proto__=r}||function(t,r){for(var B in r)Object.prototype.hasOwnProperty.call(r,B)&&(t[B]=r[B])},IA(e,A)};function P(e,A){if(typeof A!="function"&&A!==null)throw new TypeError("Class extends value "+String(A)+" is not a constructor or null");IA(e,A);function t(){this.constructor=e}e.prototype=A===null?Object.create(A):(t.prototype=A.prototype,new t)}var ir=function(){return ir=Object.assign||function(A){for(var t,r=1,B=arguments.length;r0&&n[n.length-1])&&(o[0]===6||o[0]===2)){t=0;continue}if(o[0]===3&&(!n||o[1]>n[0]&&o[1]=55296&&B<=56319&&t>10)+55296,s%1024+56320)),(B+1===t||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},at="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",gn=typeof Uint8Array>"u"?[]:new Uint8Array(256),fe=0;fe"u"?[]:new Uint8Array(256),Ue=0;Ue>4,Q[B++]=(s&15)<<4|i>>2,Q[B++]=(i&3)<<6|a&63;return o},cn=function(e){for(var A=e.length,t=[],r=0;r>vA,ln=1<>vA,Un=ot+fn,Fn=Un,hn=32,dn=Fn+hn,En=65536>>or,Hn=1<=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>vA],t=(t<>vA)],t=(t<>or),t=this.index[t],t+=A>>vA&pn,t=this.index[t],t=(t<"u"?[]:new Uint8Array(256),Fe=0;Fewt?(B.push(!0),i-=wt):B.push(!1),["normal","auto","loose"].indexOf(A)!==-1&&[8208,8211,12316,12448].indexOf(n)!==-1)return r.push(s),t.push(Cr);if(i===Dn||i===wr){if(s===0)return r.push(s),t.push(yA);var a=t[s-1];return Rn.indexOf(a)===-1?(r.push(r[s-1]),t.push(a)):(r.push(s),t.push(yA))}if(r.push(s),i===On)return t.push(A==="strict"?ur:$A);if(i===ht||i===Sn)return t.push(yA);if(i===Mn)return n>=131072&&n<=196605||n>=196608&&n<=262141?t.push($A):t.push(yA);t.push(i)}),[r,t,B]},pr=function(e,A,t,r){var B=r[t];if(Array.isArray(e)?e.indexOf(B)!==-1:e===B)for(var n=t;n<=r.length;){n++;var s=r[n];if(s===A)return!0;if(s!==CA)break}if(B===CA)for(var n=t;n>0;){n--;var i=r[n];if(Array.isArray(e)?e.indexOf(i)!==-1:e===i)for(var a=t;a<=r.length;){a++;var s=r[a];if(s===A)return!0;if(s!==CA)break}if(i!==CA)break}return!1},It=function(e,A){for(var t=e;t>=0;){var r=A[t];if(r===CA)t--;else return r}return 0},Xn=function(e,A,t,r,B){if(t[r]===0)return I;var n=r-1;if(Array.isArray(B)&&B[n]===!0)return I;var s=n-1,i=n+1,a=A[n],o=s>=0?A[s]:0,Q=A[i];if(a===ct&&Q===Ct)return I;if(Hr.indexOf(a)!==-1)return dt;if(Hr.indexOf(Q)!==-1||Et.indexOf(Q)!==-1)return I;if(It(n,A)===lt)return Ie;if(Er.get(e[n])===wr||(a===de||a===Ee)&&Er.get(e[i])===wr||a===ut||Q===ut||a===ft||[CA,cr,WA].indexOf(a)===-1&&Q===ft||[he,ZA,Tn,SA,OA].indexOf(Q)!==-1||It(n,A)===qA||pr(lr,qA,n,A)||pr([he,ZA],ur,n,A)||pr(Ut,Ut,n,A))return I;if(a===CA)return Ie;if(a===lr||Q===lr)return I;if(Q===Cr||a===Cr)return Ie;if([cr,WA,ur].indexOf(Q)!==-1||a===xn||o===Fr&&Vn.indexOf(a)!==-1||a===OA&&Q===Fr||Q===Ft||oA.indexOf(Q)!==-1&&a===j||oA.indexOf(a)!==-1&&Q===j||a===zA&&[$A,de,Ee].indexOf(Q)!==-1||[$A,de,Ee].indexOf(a)!==-1&&Q===jA||oA.indexOf(a)!==-1&&Ht.indexOf(Q)!==-1||Ht.indexOf(a)!==-1&&oA.indexOf(Q)!==-1||[zA,jA].indexOf(a)!==-1&&(Q===j||[qA,WA].indexOf(Q)!==-1&&A[i+1]===j)||[qA,WA].indexOf(a)!==-1&&Q===j||a===j&&[j,OA,SA].indexOf(Q)!==-1)return I;if([j,OA,SA,he,ZA].indexOf(Q)!==-1)for(var g=n;g>=0;){var w=A[g];if(w===j)return I;if([OA,SA].indexOf(w)!==-1)g--;else break}if([zA,jA].indexOf(Q)!==-1)for(var g=[he,ZA].indexOf(a)!==-1?s:n;g>=0;){var w=A[g];if(w===j)return I;if([OA,SA].indexOf(w)!==-1)g--;else break}if(hr===a&&[hr,He,fr,Ur].indexOf(Q)!==-1||[He,fr].indexOf(a)!==-1&&[He,pe].indexOf(Q)!==-1||[pe,Ur].indexOf(a)!==-1&&Q===pe||pt.indexOf(a)!==-1&&[Ft,jA].indexOf(Q)!==-1||pt.indexOf(Q)!==-1&&a===zA||oA.indexOf(a)!==-1&&oA.indexOf(Q)!==-1||a===SA&&oA.indexOf(Q)!==-1||oA.concat(j).indexOf(a)!==-1&&Q===qA&&Gn.indexOf(e[i])===-1||oA.concat(j).indexOf(Q)!==-1&&a===ZA)return I;if(a===dr&&Q===dr){for(var f=t[n],c=1;f>0&&(f--,A[f]===dr);)c++;if(c%2!==0)return I}return a===de&&Q===Ee?I:Ie},_n=function(e,A){A||(A={lineBreak:"normal",wordBreak:"normal"});var t=Nn(e,A.lineBreak),r=t[0],B=t[1],n=t[2];(A.wordBreak==="break-all"||A.wordBreak==="break-word")&&(B=B.map(function(i){return[j,yA,ht].indexOf(i)!==-1?$A:i}));var s=A.wordBreak==="keep-all"?n.map(function(i,a){return i&&e[a]>=19968&&e[a]<=40959}):void 0;return[r,B,s]},Jn=(function(){function e(A,t,r,B){this.codePoints=A,this.required=t===dt,this.start=r,this.end=B}return e.prototype.slice=function(){return T.apply(void 0,this.codePoints.slice(this.start,this.end))},e})(),Pn=function(e,A){var t=le(e),r=_n(t,A),B=r[0],n=r[1],s=r[2],i=t.length,a=0,o=0;return{next:function(){if(o>=i)return{done:!0,value:null};for(var Q=I;o=Lt&&e<=57},Is=function(e){return e>=55296&&e<=57343},MA=function(e){return J(e)||e>=xt&&e<=St||e>=Dt&&e<=hs},vs=function(e){return e>=Dt&&e<=Es},ys=function(e){return e>=xt&&e<=ps},Ks=function(e){return vs(e)||ys(e)},ms=function(e){return e>=Qs},De=function(e){return e===ve||e===Wn||e===Zn},be=function(e){return Ks(e)||ms(e)||e===$n},Ot=function(e){return be(e)||J(e)||e===Y},Ls=function(e){return e>=Cs&&e<=us||e===ls||e>=fs&&e<=Us||e===Fs},uA=function(e,A){return e!==ee?!1:A!==ve},xe=function(e,A,t){return e===Y?be(A)||uA(A,t):be(e)?!0:!!(e===ee&&uA(e,A))},vr=function(e,A,t){return e===KA||e===Y?J(A)?!0:A===Be&&J(t):J(e===Be?A:e)},Ds=function(e){var A=0,t=1;(e[A]===KA||e[A]===Y)&&(e[A]===Y&&(t=-1),A++);for(var r=[];J(e[A]);)r.push(e[A++]);var B=r.length?parseInt(T.apply(void 0,r),10):0;e[A]===Be&&A++;for(var n=[];J(e[A]);)n.push(e[A++]);var s=n.length,i=s?parseInt(T.apply(void 0,n),10):0;(e[A]===Tt||e[A]===bt)&&A++;var a=1;(e[A]===KA||e[A]===Y)&&(e[A]===Y&&(a=-1),A++);for(var o=[];J(e[A]);)o.push(e[A++]);var Q=o.length?parseInt(T.apply(void 0,o),10):0;return t*(B+i*Math.pow(10,-s))*Math.pow(10,a*Q)},bs={type:2},xs={type:3},Ts={type:4},Ss={type:13},Os={type:8},Ms={type:21},Gs={type:9},Rs={type:10},Vs={type:11},Ns={type:12},Xs={type:14},Te={type:23},_s={type:1},Js={type:25},Ps={type:24},ks={type:26},Ys={type:27},Ws={type:28},Zs={type:29},qs={type:31},yr={type:32},Mt=(function(){function e(){this._value=[]}return e.prototype.write=function(A){this._value=this._value.concat(le(A))},e.prototype.read=function(){for(var A=[],t=this.consumeToken();t!==yr;)A.push(t),t=this.consumeToken();return A},e.prototype.consumeToken=function(){var A=this.consumeCodePoint();switch(A){case ye:return this.consumeStringToken(ye);case qn:var t=this.peekCodePoint(0),r=this.peekCodePoint(1),B=this.peekCodePoint(2);if(Ot(t)||uA(r,B)){var n=xe(t,r,B)?Yn:kn,s=this.consumeName();return{type:5,value:s,flags:n}}break;case jn:if(this.peekCodePoint(0)===re)return this.consumeCodePoint(),Ss;break;case Ke:return this.consumeStringToken(Ke);case me:return bs;case te:return xs;case Ir:if(this.peekCodePoint(0)===re)return this.consumeCodePoint(),Xs;break;case KA:if(vr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case gs:return Ts;case Y:var i=A,a=this.peekCodePoint(0),o=this.peekCodePoint(1);if(vr(i,a,o))return this.reconsumeCodePoint(A),this.consumeNumericToken();if(xe(i,a,o))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();if(a===Y&&o===rs)return this.consumeCodePoint(),this.consumeCodePoint(),Ps;break;case Be:if(vr(A,this.peekCodePoint(0),this.peekCodePoint(1)))return this.reconsumeCodePoint(A),this.consumeNumericToken();break;case yt:if(this.peekCodePoint(0)===Ir)for(this.consumeCodePoint();;){var Q=this.consumeCodePoint();if(Q===Ir&&(Q=this.consumeCodePoint(),Q===yt))return this.consumeToken();if(Q===BA)return this.consumeToken()}break;case ws:return ks;case cs:return Ys;case es:if(this.peekCodePoint(0)===As&&this.peekCodePoint(1)===Y&&this.peekCodePoint(2)===Y)return this.consumeCodePoint(),this.consumeCodePoint(),Js;break;case ts:var g=this.peekCodePoint(0),w=this.peekCodePoint(1),f=this.peekCodePoint(2);if(xe(g,w,f)){var s=this.consumeName();return{type:7,value:s}}break;case Bs:return Ws;case ee:if(uA(A,this.peekCodePoint(0)))return this.reconsumeCodePoint(A),this.consumeIdentLikeToken();break;case ns:return Zs;case ss:if(this.peekCodePoint(0)===re)return this.consumeCodePoint(),Os;break;case as:return Vs;case is:return Ns;case ds:case Hs:var c=this.peekCodePoint(0),C=this.peekCodePoint(1);return c===KA&&(MA(C)||C===Le)&&(this.consumeCodePoint(),this.consumeUnicodeRangeToken()),this.reconsumeCodePoint(A),this.consumeIdentLikeToken();case Kt:if(this.peekCodePoint(0)===re)return this.consumeCodePoint(),Gs;if(this.peekCodePoint(0)===Kt)return this.consumeCodePoint(),Ms;break;case os:if(this.peekCodePoint(0)===re)return this.consumeCodePoint(),Rs;break;case BA:return yr}return De(A)?(this.consumeWhiteSpace(),qs):J(A)?(this.reconsumeCodePoint(A),this.consumeNumericToken()):be(A)?(this.reconsumeCodePoint(A),this.consumeIdentLikeToken()):{type:6,value:T(A)}},e.prototype.consumeCodePoint=function(){var A=this._value.shift();return typeof A>"u"?-1:A},e.prototype.reconsumeCodePoint=function(A){this._value.unshift(A)},e.prototype.peekCodePoint=function(A){return A>=this._value.length?-1:this._value[A]},e.prototype.consumeUnicodeRangeToken=function(){for(var A=[],t=this.consumeCodePoint();MA(t)&&A.length<6;)A.push(t),t=this.consumeCodePoint();for(var r=!1;t===Le&&A.length<6;)A.push(t),t=this.consumeCodePoint(),r=!0;if(r){var B=parseInt(T.apply(void 0,A.map(function(a){return a===Le?Lt:a})),16),n=parseInt(T.apply(void 0,A.map(function(a){return a===Le?St:a})),16);return{type:30,start:B,end:n}}var s=parseInt(T.apply(void 0,A),16);if(this.peekCodePoint(0)===Y&&MA(this.peekCodePoint(1))){this.consumeCodePoint(),t=this.consumeCodePoint();for(var i=[];MA(t)&&i.length<6;)i.push(t),t=this.consumeCodePoint();var n=parseInt(T.apply(void 0,i),16);return{type:30,start:s,end:n}}else return{type:30,start:s,end:s}},e.prototype.consumeIdentLikeToken=function(){var A=this.consumeName();return A.toLowerCase()==="url"&&this.peekCodePoint(0)===me?(this.consumeCodePoint(),this.consumeUrlToken()):this.peekCodePoint(0)===me?(this.consumeCodePoint(),{type:19,value:A}):{type:20,value:A}},e.prototype.consumeUrlToken=function(){var A=[];if(this.consumeWhiteSpace(),this.peekCodePoint(0)===BA)return{type:22,value:""};var t=this.peekCodePoint(0);if(t===Ke||t===ye){var r=this.consumeStringToken(this.consumeCodePoint());return r.type===0&&(this.consumeWhiteSpace(),this.peekCodePoint(0)===BA||this.peekCodePoint(0)===te)?(this.consumeCodePoint(),{type:22,value:r.value}):(this.consumeBadUrlRemnants(),Te)}for(;;){var B=this.consumeCodePoint();if(B===BA||B===te)return{type:22,value:T.apply(void 0,A)};if(De(B))return this.consumeWhiteSpace(),this.peekCodePoint(0)===BA||this.peekCodePoint(0)===te?(this.consumeCodePoint(),{type:22,value:T.apply(void 0,A)}):(this.consumeBadUrlRemnants(),Te);if(B===ye||B===Ke||B===me||Ls(B))return this.consumeBadUrlRemnants(),Te;if(B===ee)if(uA(B,this.peekCodePoint(0)))A.push(this.consumeEscapedCodePoint());else return this.consumeBadUrlRemnants(),Te;else A.push(B)}},e.prototype.consumeWhiteSpace=function(){for(;De(this.peekCodePoint(0));)this.consumeCodePoint()},e.prototype.consumeBadUrlRemnants=function(){for(;;){var A=this.consumeCodePoint();if(A===te||A===BA)return;uA(A,this.peekCodePoint(0))&&this.consumeEscapedCodePoint()}},e.prototype.consumeStringSlice=function(A){for(var t=5e4,r="";A>0;){var B=Math.min(t,A);r+=T.apply(void 0,this._value.splice(0,B)),A-=B}return this._value.shift(),r},e.prototype.consumeStringToken=function(A){var t="",r=0;do{var B=this._value[r];if(B===BA||B===void 0||B===A)return t+=this.consumeStringSlice(r),{type:0,value:t};if(B===ve)return this._value.splice(0,r),_s;if(B===ee){var n=this._value[r+1];n!==BA&&n!==void 0&&(n===ve?(t+=this.consumeStringSlice(r),r=-1,this._value.shift()):uA(B,n)&&(t+=this.consumeStringSlice(r),t+=T(this.consumeEscapedCodePoint()),r=-1))}r++}while(!0)},e.prototype.consumeNumber=function(){var A=[],t=Ae,r=this.peekCodePoint(0);for((r===KA||r===Y)&&A.push(this.consumeCodePoint());J(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0);var B=this.peekCodePoint(1);if(r===Be&&J(B))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=vt;J(this.peekCodePoint(0));)A.push(this.consumeCodePoint());r=this.peekCodePoint(0),B=this.peekCodePoint(1);var n=this.peekCodePoint(2);if((r===Tt||r===bt)&&((B===KA||B===Y)&&J(n)||J(B)))for(A.push(this.consumeCodePoint(),this.consumeCodePoint()),t=vt;J(this.peekCodePoint(0));)A.push(this.consumeCodePoint());return[Ds(A),t]},e.prototype.consumeNumericToken=function(){var A=this.consumeNumber(),t=A[0],r=A[1],B=this.peekCodePoint(0),n=this.peekCodePoint(1),s=this.peekCodePoint(2);if(xe(B,n,s)){var i=this.consumeName();return{type:15,number:t,flags:r,unit:i}}return B===zn?(this.consumeCodePoint(),{type:16,number:t,flags:r}):{type:17,number:t,flags:r}},e.prototype.consumeEscapedCodePoint=function(){var A=this.consumeCodePoint();if(MA(A)){for(var t=T(A);MA(this.peekCodePoint(0))&&t.length<6;)t+=T(this.consumeCodePoint());De(this.peekCodePoint(0))&&this.consumeCodePoint();var r=parseInt(t,16);return r===0||Is(r)||r>1114111?mt:r}return A===BA?mt:A},e.prototype.consumeName=function(){for(var A="";;){var t=this.consumeCodePoint();if(Ot(t))A+=T(t);else if(uA(t,this.peekCodePoint(0)))A+=T(this.consumeEscapedCodePoint());else return this.reconsumeCodePoint(t),A}},e})(),Gt=(function(){function e(A){this._tokens=A}return e.create=function(A){var t=new Mt;return t.write(A),new e(t.read())},e.parseValue=function(A){return e.create(A).parseComponentValue()},e.parseValues=function(A){return e.create(A).parseComponentValues()},e.prototype.parseComponentValue=function(){for(var A=this.consumeToken();A.type===31;)A=this.consumeToken();if(A.type===32)throw new SyntaxError("Error parsing CSS component value, unexpected EOF");this.reconsumeToken(A);var t=this.consumeComponentValue();do A=this.consumeToken();while(A.type===31);if(A.type===32)return t;throw new SyntaxError("Error parsing CSS component value, multiple values found when expecting only one")},e.prototype.parseComponentValues=function(){for(var A=[];;){var t=this.consumeComponentValue();if(t.type===32)return A;A.push(t),A.push()}},e.prototype.consumeComponentValue=function(){var A=this.consumeToken();switch(A.type){case 11:case 28:case 2:return this.consumeSimpleBlock(A.type);case 19:return this.consumeFunction(A)}return A},e.prototype.consumeSimpleBlock=function(A){for(var t={type:A,values:[]},r=this.consumeToken();;){if(r.type===32||zs(r,A))return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue()),r=this.consumeToken()}},e.prototype.consumeFunction=function(A){for(var t={name:A.value,values:[],type:18};;){var r=this.consumeToken();if(r.type===32||r.type===3)return t;this.reconsumeToken(r),t.values.push(this.consumeComponentValue())}},e.prototype.consumeToken=function(){var A=this._tokens.shift();return typeof A>"u"?yr:A},e.prototype.reconsumeToken=function(A){this._tokens.unshift(A)},e})(),ne=function(e){return e.type===15},GA=function(e){return e.type===17},L=function(e){return e.type===20},js=function(e){return e.type===0},Kr=function(e,A){return L(e)&&e.value===A},Rt=function(e){return e.type!==31},RA=function(e){return e.type!==31&&e.type!==4},nA=function(e){var A=[],t=[];return e.forEach(function(r){if(r.type===4){if(t.length===0)throw new Error("Error parsing function args, zero tokens for arg");A.push(t),t=[];return}r.type!==31&&t.push(r)}),t.length&&A.push(t),A},zs=function(e,A){return A===11&&e.type===12||A===28&&e.type===29?!0:A===2&&e.type===3},lA=function(e){return e.type===17||e.type===15},O=function(e){return e.type===16||lA(e)},Vt=function(e){return e.length>1?[e[0],e[1]]:[e[0]]},V={type:17,number:0,flags:Ae},mr={type:16,number:50,flags:Ae},fA={type:16,number:100,flags:Ae},se=function(e,A,t){var r=e[0],B=e[1];return[b(r,A),b(typeof B<"u"?B:r,t)]},b=function(e,A){if(e.type===16)return e.number/100*A;if(ne(e))switch(e.unit){case"rem":case"em":return 16*e.number;default:return e.number}return e.number},Nt="deg",Xt="grad",_t="rad",Jt="turn",Se={name:"angle",parse:function(e,A){if(A.type===15)switch(A.unit){case Nt:return Math.PI*A.number/180;case Xt:return Math.PI/200*A.number;case _t:return A.number;case Jt:return Math.PI*2*A.number}throw new Error("Unsupported angle type")}},Pt=function(e){return e.type===15&&(e.unit===Nt||e.unit===Xt||e.unit===_t||e.unit===Jt)},kt=function(e){var A=e.filter(L).map(function(t){return t.value}).join(" ");switch(A){case"to bottom right":case"to right bottom":case"left top":case"top left":return[V,V];case"to top":case"bottom":return $(0);case"to bottom left":case"to left bottom":case"right top":case"top right":return[V,fA];case"to right":case"left":return $(90);case"to top left":case"to left top":case"right bottom":case"bottom right":return[fA,fA];case"to bottom":case"top":return $(180);case"to top right":case"to right top":case"left bottom":case"bottom left":return[fA,V];case"to left":case"right":return $(270)}return 0},$=function(e){return Math.PI*e/180},UA={name:"color",parse:function(e,A){if(A.type===18){var t=$s[A.name];if(typeof t>"u")throw new Error('Attempting to parse an unsupported color function "'+A.name+'"');return t(e,A.values)}if(A.type===5){if(A.value.length===3){var r=A.value.substring(0,1),B=A.value.substring(1,2),n=A.value.substring(2,3);return hA(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),1)}if(A.value.length===4){var r=A.value.substring(0,1),B=A.value.substring(1,2),n=A.value.substring(2,3),s=A.value.substring(3,4);return hA(parseInt(r+r,16),parseInt(B+B,16),parseInt(n+n,16),parseInt(s+s,16)/255)}if(A.value.length===6){var r=A.value.substring(0,2),B=A.value.substring(2,4),n=A.value.substring(4,6);return hA(parseInt(r,16),parseInt(B,16),parseInt(n,16),1)}if(A.value.length===8){var r=A.value.substring(0,2),B=A.value.substring(2,4),n=A.value.substring(4,6),s=A.value.substring(6,8);return hA(parseInt(r,16),parseInt(B,16),parseInt(n,16),parseInt(s,16)/255)}}if(A.type===20){var i=QA[A.value.toUpperCase()];if(typeof i<"u")return i}return QA.TRANSPARENT}},FA=function(e){return(255&e)===0},R=function(e){var A=255&e,t=255&e>>8,r=255&e>>16,B=255&e>>24;return A<255?"rgba("+B+","+r+","+t+","+A/255+")":"rgb("+B+","+r+","+t+")"},hA=function(e,A,t,r){return(e<<24|A<<16|t<<8|Math.round(r*255)<<0)>>>0},Yt=function(e,A){if(e.type===17)return e.number;if(e.type===16){var t=A===3?1:255;return A===3?e.number/100*t:Math.round(e.number/100*t)}return 0},Wt=function(e,A){var t=A.filter(RA);if(t.length===3){var r=t.map(Yt),B=r[0],n=r[1],s=r[2];return hA(B,n,s,1)}if(t.length===4){var i=t.map(Yt),B=i[0],n=i[1],s=i[2],a=i[3];return hA(B,n,s,a)}return 0};function Lr(e,A,t){return t<0&&(t+=1),t>=1&&(t-=1),t<1/6?(A-e)*t*6+e:t<1/2?A:t<2/3?(A-e)*6*(2/3-t)+e:e}var Zt=function(e,A){var t=A.filter(RA),r=t[0],B=t[1],n=t[2],s=t[3],i=(r.type===17?$(r.number):Se.parse(e,r))/(Math.PI*2),a=O(B)?B.number/100:0,o=O(n)?n.number/100:0,Q=typeof s<"u"&&O(s)?b(s,1):1;if(a===0)return hA(o*255,o*255,o*255,1);var g=o<=.5?o*(a+1):o+a-o*a,w=o*2-g,f=Lr(w,g,i+1/3),c=Lr(w,g,i),C=Lr(w,g,i-1/3);return hA(f*255,c*255,C*255,Q)},$s={hsl:Zt,hsla:Zt,rgb:Wt,rgba:Wt},ae=function(e,A){return UA.parse(e,Gt.create(A).parseComponentValue())},QA={ALICEBLUE:4042850303,ANTIQUEWHITE:4209760255,AQUA:16777215,AQUAMARINE:2147472639,AZURE:4043309055,BEIGE:4126530815,BISQUE:4293182719,BLACK:255,BLANCHEDALMOND:4293643775,BLUE:65535,BLUEVIOLET:2318131967,BROWN:2771004159,BURLYWOOD:3736635391,CADETBLUE:1604231423,CHARTREUSE:2147418367,CHOCOLATE:3530104575,CORAL:4286533887,CORNFLOWERBLUE:1687547391,CORNSILK:4294499583,CRIMSON:3692313855,CYAN:16777215,DARKBLUE:35839,DARKCYAN:9145343,DARKGOLDENROD:3095837695,DARKGRAY:2846468607,DARKGREEN:6553855,DARKGREY:2846468607,DARKKHAKI:3182914559,DARKMAGENTA:2332068863,DARKOLIVEGREEN:1433087999,DARKORANGE:4287365375,DARKORCHID:2570243327,DARKRED:2332033279,DARKSALMON:3918953215,DARKSEAGREEN:2411499519,DARKSLATEBLUE:1211993087,DARKSLATEGRAY:793726975,DARKSLATEGREY:793726975,DARKTURQUOISE:13554175,DARKVIOLET:2483082239,DEEPPINK:4279538687,DEEPSKYBLUE:12582911,DIMGRAY:1768516095,DIMGREY:1768516095,DODGERBLUE:512819199,FIREBRICK:2988581631,FLORALWHITE:4294635775,FORESTGREEN:579543807,FUCHSIA:4278255615,GAINSBORO:3705462015,GHOSTWHITE:4177068031,GOLD:4292280575,GOLDENROD:3668254975,GRAY:2155905279,GREEN:8388863,GREENYELLOW:2919182335,GREY:2155905279,HONEYDEW:4043305215,HOTPINK:4285117695,INDIANRED:3445382399,INDIGO:1258324735,IVORY:4294963455,KHAKI:4041641215,LAVENDER:3873897215,LAVENDERBLUSH:4293981695,LAWNGREEN:2096890111,LEMONCHIFFON:4294626815,LIGHTBLUE:2916673279,LIGHTCORAL:4034953471,LIGHTCYAN:3774873599,LIGHTGOLDENRODYELLOW:4210742015,LIGHTGRAY:3553874943,LIGHTGREEN:2431553791,LIGHTGREY:3553874943,LIGHTPINK:4290167295,LIGHTSALMON:4288707327,LIGHTSEAGREEN:548580095,LIGHTSKYBLUE:2278488831,LIGHTSLATEGRAY:2005441023,LIGHTSLATEGREY:2005441023,LIGHTSTEELBLUE:2965692159,LIGHTYELLOW:4294959359,LIME:16711935,LIMEGREEN:852308735,LINEN:4210091775,MAGENTA:4278255615,MAROON:2147483903,MEDIUMAQUAMARINE:1724754687,MEDIUMBLUE:52735,MEDIUMORCHID:3126187007,MEDIUMPURPLE:2473647103,MEDIUMSEAGREEN:1018393087,MEDIUMSLATEBLUE:2070474495,MEDIUMSPRINGGREEN:16423679,MEDIUMTURQUOISE:1221709055,MEDIUMVIOLETRED:3340076543,MIDNIGHTBLUE:421097727,MINTCREAM:4127193855,MISTYROSE:4293190143,MOCCASIN:4293178879,NAVAJOWHITE:4292783615,NAVY:33023,OLDLACE:4260751103,OLIVE:2155872511,OLIVEDRAB:1804477439,ORANGE:4289003775,ORANGERED:4282712319,ORCHID:3664828159,PALEGOLDENROD:4008225535,PALEGREEN:2566625535,PALETURQUOISE:2951671551,PALEVIOLETRED:3681588223,PAPAYAWHIP:4293907967,PEACHPUFF:4292524543,PERU:3448061951,PINK:4290825215,PLUM:3718307327,POWDERBLUE:2967529215,PURPLE:2147516671,REBECCAPURPLE:1714657791,RED:4278190335,ROSYBROWN:3163525119,ROYALBLUE:1097458175,SADDLEBROWN:2336560127,SALMON:4202722047,SANDYBROWN:4104413439,SEAGREEN:780883967,SEASHELL:4294307583,SIENNA:2689740287,SILVER:3233857791,SKYBLUE:2278484991,SLATEBLUE:1784335871,SLATEGRAY:1887473919,SLATEGREY:1887473919,SNOW:4294638335,SPRINGGREEN:16744447,STEELBLUE:1182971135,TAN:3535047935,TEAL:8421631,THISTLE:3636451583,TOMATO:4284696575,TRANSPARENT:0,TURQUOISE:1088475391,VIOLET:4001558271,WHEAT:4125012991,WHITE:4294967295,WHITESMOKE:4126537215,YELLOW:4294902015,YELLOWGREEN:2597139199},Aa={name:"background-clip",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(t){if(L(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ea={name:"background-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Oe=function(e,A){var t=UA.parse(e,A[0]),r=A[1];return r&&O(r)?{color:t,stop:r}:{color:t,stop:null}},qt=function(e,A){var t=e[0],r=e[e.length-1];t.stop===null&&(t.stop=V),r.stop===null&&(r.stop=fA);for(var B=[],n=0,s=0;sn?B.push(a):B.push(n),n=a}else B.push(null)}for(var o=null,s=0;ss.optimumDistance)?{optimumCorner:i,optimumDistance:Q}:s},{optimumDistance:B?1/0:-1/0,optimumCorner:null}).optimumCorner},Ba=function(e,A,t,r,B){var n=0,s=0;switch(e.size){case 0:e.shape===0?n=s=Math.min(Math.abs(A),Math.abs(A-r),Math.abs(t),Math.abs(t-B)):e.shape===1&&(n=Math.min(Math.abs(A),Math.abs(A-r)),s=Math.min(Math.abs(t),Math.abs(t-B)));break;case 2:if(e.shape===0)n=s=Math.min(tA(A,t),tA(A,t-B),tA(A-r,t),tA(A-r,t-B));else if(e.shape===1){var i=Math.min(Math.abs(t),Math.abs(t-B))/Math.min(Math.abs(A),Math.abs(A-r)),a=jt(r,B,A,t,!0),o=a[0],Q=a[1];n=tA(o-A,(Q-t)/i),s=i*n}break;case 1:e.shape===0?n=s=Math.max(Math.abs(A),Math.abs(A-r),Math.abs(t),Math.abs(t-B)):e.shape===1&&(n=Math.max(Math.abs(A),Math.abs(A-r)),s=Math.max(Math.abs(t),Math.abs(t-B)));break;case 3:if(e.shape===0)n=s=Math.max(tA(A,t),tA(A,t-B),tA(A-r,t),tA(A-r,t-B));else if(e.shape===1){var i=Math.max(Math.abs(t),Math.abs(t-B))/Math.max(Math.abs(A),Math.abs(A-r)),g=jt(r,B,A,t,!1),o=g[0],Q=g[1];n=tA(o-A,(Q-t)/i),s=i*n}break}return Array.isArray(e.size)&&(n=b(e.size[0],r),s=e.size.length===2?b(e.size[1],B):n),[n,s]},na=function(e,A){var t=$(180),r=[];return nA(A).forEach(function(B,n){if(n===0){var s=B[0];if(s.type===20&&s.value==="to"){t=kt(B);return}else if(Pt(s)){t=Se.parse(e,s);return}}var i=Oe(e,B);r.push(i)}),{angle:t,stops:r,type:1}},Me=function(e,A){var t=$(180),r=[];return nA(A).forEach(function(B,n){if(n===0){var s=B[0];if(s.type===20&&["top","left","right","bottom"].indexOf(s.value)!==-1){t=kt(B);return}else if(Pt(s)){t=(Se.parse(e,s)+$(270))%$(360);return}}var i=Oe(e,B);r.push(i)}),{angle:t,stops:r,type:1}},sa=function(e,A){var t=$(180),r=[],B=1,n=0,s=3,i=[];return nA(A).forEach(function(a,o){var Q=a[0];if(o===0){if(L(Q)&&Q.value==="linear"){B=1;return}else if(L(Q)&&Q.value==="radial"){B=2;return}}if(Q.type===18){if(Q.name==="from"){var g=UA.parse(e,Q.values[0]);r.push({stop:V,color:g})}else if(Q.name==="to"){var g=UA.parse(e,Q.values[0]);r.push({stop:fA,color:g})}else if(Q.name==="color-stop"){var w=Q.values.filter(RA);if(w.length===2){var g=UA.parse(e,w[1]),f=w[0];GA(f)&&r.push({stop:{type:16,number:f.number*100,flags:f.flags},color:g})}}}}),B===1?{angle:(t+$(180))%$(360),stops:r,type:B}:{size:s,shape:n,stops:r,position:i,type:B}},zt="closest-side",$t="farthest-side",AB="closest-corner",eB="farthest-corner",rB="circle",tB="ellipse",BB="cover",nB="contain",aa=function(e,A){var t=0,r=3,B=[],n=[];return nA(A).forEach(function(s,i){var a=!0;if(i===0){var o=!1;a=s.reduce(function(g,w){if(o)if(L(w))switch(w.value){case"center":return n.push(mr),g;case"top":case"left":return n.push(V),g;case"right":case"bottom":return n.push(fA),g}else(O(w)||lA(w))&&n.push(w);else if(L(w))switch(w.value){case rB:return t=0,!1;case tB:return t=1,!1;case"at":return o=!0,!1;case zt:return r=0,!1;case BB:case $t:return r=1,!1;case nB:case AB:return r=2,!1;case eB:return r=3,!1}else if(lA(w)||O(w))return Array.isArray(r)||(r=[]),r.push(w),!1;return g},a)}if(a){var Q=Oe(e,s);B.push(Q)}}),{size:r,shape:t,stops:B,position:n,type:2}},Ge=function(e,A){var t=0,r=3,B=[],n=[];return nA(A).forEach(function(s,i){var a=!0;if(i===0?a=s.reduce(function(Q,g){if(L(g))switch(g.value){case"center":return n.push(mr),!1;case"top":case"left":return n.push(V),!1;case"right":case"bottom":return n.push(fA),!1}else if(O(g)||lA(g))return n.push(g),!1;return Q},a):i===1&&(a=s.reduce(function(Q,g){if(L(g))switch(g.value){case rB:return t=0,!1;case tB:return t=1,!1;case nB:case zt:return r=0,!1;case $t:return r=1,!1;case AB:return r=2,!1;case BB:case eB:return r=3,!1}else if(lA(g)||O(g))return Array.isArray(r)||(r=[]),r.push(g),!1;return Q},a)),a){var o=Oe(e,s);B.push(o)}}),{size:r,shape:t,stops:B,position:n,type:2}},ia=function(e){return e.type===1},oa=function(e){return e.type===2},Dr={name:"image",parse:function(e,A){if(A.type===22){var t={url:A.value,type:0};return e.cache.addImage(A.value),t}if(A.type===18){var r=sB[A.name];if(typeof r>"u")throw new Error('Attempting to parse an unsupported image function "'+A.name+'"');return r(e,A.values)}throw new Error("Unsupported image type "+A.type)}};function Qa(e){return!(e.type===20&&e.value==="none")&&(e.type!==18||!!sB[e.name])}for(var sB={"linear-gradient":na,"-moz-linear-gradient":Me,"-ms-linear-gradient":Me,"-o-linear-gradient":Me,"-webkit-linear-gradient":Me,"radial-gradient":aa,"-moz-radial-gradient":Ge,"-ms-radial-gradient":Ge,"-o-radial-gradient":Ge,"-webkit-radial-gradient":Ge,"-webkit-gradient":sa},ga={name:"background-image",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var t=A[0];return t.type===20&&t.value==="none"?[]:A.filter(function(r){return RA(r)&&Qa(r)}).map(function(r){return Dr.parse(e,r)})}},wa={name:"background-origin",initialValue:"border-box",prefix:!1,type:1,parse:function(e,A){return A.map(function(t){if(L(t))switch(t.value){case"padding-box":return 1;case"content-box":return 2}return 0})}},ca={name:"background-position",initialValue:"0% 0%",type:1,prefix:!1,parse:function(e,A){return nA(A).map(function(t){return t.filter(O)}).map(Vt)}},Ca={name:"background-repeat",initialValue:"repeat",prefix:!1,type:1,parse:function(e,A){return nA(A).map(function(t){return t.filter(L).map(function(r){return r.value}).join(" ")}).map(ua)}},ua=function(e){switch(e){case"no-repeat":return 1;case"repeat-x":case"repeat no-repeat":return 2;case"repeat-y":case"no-repeat repeat":return 3;default:return 0}},ie=(function(e){return e.AUTO="auto",e.CONTAIN="contain",e.COVER="cover",e})(ie||{}),la={name:"background-size",initialValue:"0",prefix:!1,type:1,parse:function(e,A){return nA(A).map(function(t){return t.filter(fa)})}},fa=function(e){return L(e)||O(e)},Re=function(e){return{name:"border-"+e+"-color",initialValue:"transparent",prefix:!1,type:3,format:"color"}},Ua=Re("top"),Fa=Re("right"),ha=Re("bottom"),da=Re("left"),Ve=function(e){return{name:"border-radius-"+e,initialValue:"0 0",prefix:!1,type:1,parse:function(A,t){return Vt(t.filter(O))}}},Ea=Ve("top-left"),Ha=Ve("top-right"),pa=Ve("bottom-right"),Ia=Ve("bottom-left"),Ne=function(e){return{name:"border-"+e+"-style",initialValue:"solid",prefix:!1,type:2,parse:function(A,t){switch(t){case"none":return 0;case"dashed":return 2;case"dotted":return 3;case"double":return 4}return 1}}},va=Ne("top"),ya=Ne("right"),Ka=Ne("bottom"),ma=Ne("left"),Xe=function(e){return{name:"border-"+e+"-width",initialValue:"0",type:0,prefix:!1,parse:function(A,t){return ne(t)?t.number:0}}},La=Xe("top"),Da=Xe("right"),ba=Xe("bottom"),xa=Xe("left"),Ta={name:"color",initialValue:"transparent",prefix:!1,type:3,format:"color"},Sa={name:"direction",initialValue:"ltr",prefix:!1,type:2,parse:function(e,A){return A==="rtl"?1:0}},Oa={name:"display",initialValue:"inline-block",prefix:!1,type:1,parse:function(e,A){return A.filter(L).reduce(function(t,r){return t|Ma(r.value)},0)}},Ma=function(e){switch(e){case"block":case"-webkit-box":return 2;case"inline":return 4;case"run-in":return 8;case"flow":return 16;case"flow-root":return 32;case"table":return 64;case"flex":case"-webkit-flex":return 128;case"grid":case"-ms-grid":return 256;case"ruby":return 512;case"subgrid":return 1024;case"list-item":return 2048;case"table-row-group":return 4096;case"table-header-group":return 8192;case"table-footer-group":return 16384;case"table-row":return 32768;case"table-cell":return 65536;case"table-column-group":return 131072;case"table-column":return 262144;case"table-caption":return 524288;case"ruby-base":return 1048576;case"ruby-text":return 2097152;case"ruby-base-container":return 4194304;case"ruby-text-container":return 8388608;case"contents":return 16777216;case"inline-block":return 33554432;case"inline-list-item":return 67108864;case"inline-table":return 134217728;case"inline-flex":return 268435456;case"inline-grid":return 536870912}return 0},Ga={name:"float",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"left":return 1;case"right":return 2;case"inline-start":return 3;case"inline-end":return 4}return 0}},Ra={name:"letter-spacing",initialValue:"0",prefix:!1,type:0,parse:function(e,A){return A.type===20&&A.value==="normal"?0:A.type===17||A.type===15?A.number:0}},br=(function(e){return e.NORMAL="normal",e.STRICT="strict",e})(br||{}),Va={name:"line-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="strict"?br.STRICT:br.NORMAL}},Na={name:"line-height",initialValue:"normal",prefix:!1,type:4},aB=function(e,A){return L(e)&&e.value==="normal"?1.2*A:e.type===17?A*e.number:O(e)?b(e,A):A},Xa={name:"list-style-image",initialValue:"none",type:0,prefix:!1,parse:function(e,A){return A.type===20&&A.value==="none"?null:Dr.parse(e,A)}},_a={name:"list-style-position",initialValue:"outside",prefix:!1,type:2,parse:function(e,A){return A==="inside"?0:1}},xr={name:"list-style-type",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"disc":return 0;case"circle":return 1;case"square":return 2;case"decimal":return 3;case"cjk-decimal":return 4;case"decimal-leading-zero":return 5;case"lower-roman":return 6;case"upper-roman":return 7;case"lower-greek":return 8;case"lower-alpha":return 9;case"upper-alpha":return 10;case"arabic-indic":return 11;case"armenian":return 12;case"bengali":return 13;case"cambodian":return 14;case"cjk-earthly-branch":return 15;case"cjk-heavenly-stem":return 16;case"cjk-ideographic":return 17;case"devanagari":return 18;case"ethiopic-numeric":return 19;case"georgian":return 20;case"gujarati":return 21;case"gurmukhi":return 22;case"hebrew":return 22;case"hiragana":return 23;case"hiragana-iroha":return 24;case"japanese-formal":return 25;case"japanese-informal":return 26;case"kannada":return 27;case"katakana":return 28;case"katakana-iroha":return 29;case"khmer":return 30;case"korean-hangul-formal":return 31;case"korean-hanja-formal":return 32;case"korean-hanja-informal":return 33;case"lao":return 34;case"lower-armenian":return 35;case"malayalam":return 36;case"mongolian":return 37;case"myanmar":return 38;case"oriya":return 39;case"persian":return 40;case"simp-chinese-formal":return 41;case"simp-chinese-informal":return 42;case"tamil":return 43;case"telugu":return 44;case"thai":return 45;case"tibetan":return 46;case"trad-chinese-formal":return 47;case"trad-chinese-informal":return 48;case"upper-armenian":return 49;case"disclosure-open":return 50;case"disclosure-closed":return 51;default:return-1}}},_e=function(e){return{name:"margin-"+e,initialValue:"0",prefix:!1,type:4}},Ja=_e("top"),Pa=_e("right"),ka=_e("bottom"),Ya=_e("left"),Wa={name:"overflow",initialValue:"visible",prefix:!1,type:1,parse:function(e,A){return A.filter(L).map(function(t){switch(t.value){case"hidden":return 1;case"scroll":return 2;case"clip":return 3;case"auto":return 4;default:return 0}})}},Za={name:"overflow-wrap",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){return A==="break-word"?"break-word":"normal"}},Je=function(e){return{name:"padding-"+e,initialValue:"0",prefix:!1,type:3,format:"length-percentage"}},qa=Je("top"),ja=Je("right"),za=Je("bottom"),$a=Je("left"),Ai={name:"text-align",initialValue:"left",prefix:!1,type:2,parse:function(e,A){switch(A){case"right":return 2;case"center":case"justify":return 1;default:return 0}}},ei={name:"position",initialValue:"static",prefix:!1,type:2,parse:function(e,A){switch(A){case"relative":return 1;case"absolute":return 2;case"fixed":return 3;case"sticky":return 4}return 0}},ri={name:"text-shadow",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.length===1&&Kr(A[0],"none")?[]:nA(A).map(function(t){for(var r={color:QA.TRANSPARENT,offsetX:V,offsetY:V,blur:V},B=0,n=0;n"u")throw new Error('Attempting to parse an unsupported transform function "'+A.name+'"');return t(A.values)}return null}},ni=function(e){var A=e.filter(function(t){return t.type===17}).map(function(t){return t.number});return A.length===6?A:null},si=function(e){var A=e.filter(function(a){return a.type===17}).map(function(a){return a.number}),t=A[0],r=A[1];A[2],A[3];var B=A[4],n=A[5];A[6],A[7],A[8],A[9],A[10],A[11];var s=A[12],i=A[13];return A[14],A[15],A.length===16?[t,r,B,n,s,i]:null},ai={matrix:ni,matrix3d:si},iB={type:16,number:50,flags:Ae},ii=[iB,iB],oi={name:"transform-origin",initialValue:"50% 50%",prefix:!0,type:1,parse:function(e,A){var t=A.filter(O);return t.length!==2?ii:[t[0],t[1]]}},Qi={name:"visible",initialValue:"none",prefix:!1,type:2,parse:function(e,A){switch(A){case"hidden":return 1;case"collapse":return 2;default:return 0}}},Pe=(function(e){return e.NORMAL="normal",e.BREAK_ALL="break-all",e.KEEP_ALL="keep-all",e})(Pe||{}),gi={name:"word-break",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"break-all":return Pe.BREAK_ALL;case"keep-all":return Pe.KEEP_ALL;default:return Pe.NORMAL}}},wi={name:"z-index",initialValue:"auto",prefix:!1,type:0,parse:function(e,A){if(A.type===20)return{auto:!0,order:0};if(GA(A))return{auto:!1,order:A.number};throw new Error("Invalid z-index number parsed")}},oB={name:"time",parse:function(e,A){if(A.type===15)switch(A.unit.toLowerCase()){case"s":return 1e3*A.number;case"ms":return A.number}throw new Error("Unsupported time type")}},ci={name:"opacity",initialValue:"1",type:0,prefix:!1,parse:function(e,A){return GA(A)?A.number:1}},Ci={name:"text-decoration-color",initialValue:"transparent",prefix:!1,type:3,format:"color"},ui={name:"text-decoration-line",initialValue:"none",prefix:!1,type:1,parse:function(e,A){return A.filter(L).map(function(t){switch(t.value){case"underline":return 1;case"overline":return 2;case"line-through":return 3;case"none":return 4}return 0}).filter(function(t){return t!==0})}},li={name:"font-family",initialValue:"",prefix:!1,type:1,parse:function(e,A){var t=[],r=[];return A.forEach(function(B){switch(B.type){case 20:case 0:t.push(B.value);break;case 17:t.push(B.number.toString());break;case 4:r.push(t.join(" ")),t.length=0;break}}),t.length&&r.push(t.join(" ")),r.map(function(B){return B.indexOf(" ")===-1?B:"'"+B+"'"})}},fi={name:"font-size",initialValue:"0",prefix:!1,type:3,format:"length"},Ui={name:"font-weight",initialValue:"normal",type:0,prefix:!1,parse:function(e,A){return GA(A)?A.number:L(A)&&A.value==="bold"?700:400}},Fi={name:"font-variant",initialValue:"none",type:1,prefix:!1,parse:function(e,A){return A.filter(L).map(function(t){return t.value})}},hi={name:"font-style",initialValue:"normal",prefix:!1,type:2,parse:function(e,A){switch(A){case"oblique":return"oblique";case"italic":return"italic";default:return"normal"}}},G=function(e,A){return(e&A)!==0},di={name:"content",initialValue:"none",type:1,prefix:!1,parse:function(e,A){if(A.length===0)return[];var t=A[0];return t.type===20&&t.value==="none"?[]:A}},Ei={name:"counter-increment",initialValue:"none",prefix:!0,type:1,parse:function(e,A){if(A.length===0)return null;var t=A[0];if(t.type===20&&t.value==="none")return null;for(var r=[],B=A.filter(Rt),n=0;n1?1:0],this.overflowWrap=U(A,Za,t.overflowWrap),this.paddingTop=U(A,qa,t.paddingTop),this.paddingRight=U(A,ja,t.paddingRight),this.paddingBottom=U(A,za,t.paddingBottom),this.paddingLeft=U(A,$a,t.paddingLeft),this.paintOrder=U(A,yi,t.paintOrder),this.position=U(A,ei,t.position),this.textAlign=U(A,Ai,t.textAlign),this.textDecorationColor=U(A,Ci,(r=t.textDecorationColor)!==null&&r!==void 0?r:t.color),this.textDecorationLine=U(A,ui,(B=t.textDecorationLine)!==null&&B!==void 0?B:t.textDecoration),this.textShadow=U(A,ri,t.textShadow),this.textTransform=U(A,ti,t.textTransform),this.transform=U(A,Bi,t.transform),this.transformOrigin=U(A,oi,t.transformOrigin),this.visibility=U(A,Qi,t.visibility),this.webkitTextStrokeColor=U(A,Ki,t.webkitTextStrokeColor),this.webkitTextStrokeWidth=U(A,mi,t.webkitTextStrokeWidth),this.wordBreak=U(A,gi,t.wordBreak),this.zIndex=U(A,wi,t.zIndex)}return e.prototype.isVisible=function(){return this.display>0&&this.opacity>0&&this.visibility===0},e.prototype.isTransparent=function(){return FA(this.backgroundColor)},e.prototype.isTransformed=function(){return this.transform!==null},e.prototype.isPositioned=function(){return this.position!==0},e.prototype.isPositionedWithZIndex=function(){return this.isPositioned()&&!this.zIndex.auto},e.prototype.isFloating=function(){return this.float!==0},e.prototype.isInlineLevel=function(){return G(this.display,4)||G(this.display,33554432)||G(this.display,268435456)||G(this.display,536870912)||G(this.display,67108864)||G(this.display,134217728)},e})(),Di=(function(){function e(A,t){this.content=U(A,di,t.content),this.quotes=U(A,Ii,t.quotes)}return e})(),gB=(function(){function e(A,t){this.counterIncrement=U(A,Ei,t.counterIncrement),this.counterReset=U(A,Hi,t.counterReset)}return e})(),U=function(e,A,t){var r=new Mt,B=t!==null&&typeof t<"u"?t.toString():A.initialValue;r.write(B);var n=new Gt(r.read());switch(A.type){case 2:var s=n.parseComponentValue();return A.parse(e,L(s)?s.value:A.initialValue);case 0:return A.parse(e,n.parseComponentValue());case 1:return A.parse(e,n.parseComponentValues());case 4:return n.parseComponentValue();case 3:switch(A.format){case"angle":return Se.parse(e,n.parseComponentValue());case"color":return UA.parse(e,n.parseComponentValue());case"image":return Dr.parse(e,n.parseComponentValue());case"length":var i=n.parseComponentValue();return lA(i)?i:V;case"length-percentage":var a=n.parseComponentValue();return O(a)?a:V;case"time":return oB.parse(e,n.parseComponentValue())}break}},bi="data-html2canvas-debug",xi=function(e){var A=e.getAttribute(bi);switch(A){case"all":return 1;case"clone":return 2;case"parse":return 3;case"render":return 4;default:return 0}},Tr=function(e,A){var t=xi(e);return t===1||A===t},sA=(function(){function e(A,t){if(this.context=A,this.textNodes=[],this.elements=[],this.flags=0,Tr(t,3))debugger;this.styles=new Li(A,window.getComputedStyle(t,null)),Wr(t)&&(this.styles.animationDuration.some(function(r){return r>0})&&(t.style.animationDuration="0s"),this.styles.transform!==null&&(t.style.transform="none")),this.bounds=ue(this.context,t),Tr(t,4)&&(this.flags|=16)}return e})(),Ti="AAAAAAAAAAAAEA4AGBkAAFAaAAACAAAAAAAIABAAGAAwADgACAAQAAgAEAAIABAACAAQAAgAEAAIABAACAAQAAgAEAAIABAAQABIAEQATAAIABAACAAQAAgAEAAIABAAVABcAAgAEAAIABAACAAQAGAAaABwAHgAgACIAI4AlgAIABAAmwCjAKgAsAC2AL4AvQDFAMoA0gBPAVYBWgEIAAgACACMANoAYgFkAWwBdAF8AX0BhQGNAZUBlgGeAaMBlQGWAasBswF8AbsBwwF0AcsBYwHTAQgA2wG/AOMBdAF8AekB8QF0AfkB+wHiAHQBfAEIAAMC5gQIAAsCEgIIAAgAFgIeAggAIgIpAggAMQI5AkACygEIAAgASAJQAlgCYAIIAAgACAAKBQoFCgUTBRMFGQUrBSsFCAAIAAgACAAIAAgACAAIAAgACABdAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABoAmgCrwGvAQgAbgJ2AggAHgEIAAgACADnAXsCCAAIAAgAgwIIAAgACAAIAAgACACKAggAkQKZAggAPADJAAgAoQKkAqwCsgK6AsICCADJAggA0AIIAAgACAAIANYC3gIIAAgACAAIAAgACABAAOYCCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAkASoB+QIEAAgACAA8AEMCCABCBQgACABJBVAFCAAIAAgACAAIAAgACAAIAAgACABTBVoFCAAIAFoFCABfBWUFCAAIAAgACAAIAAgAbQUIAAgACAAIAAgACABzBXsFfQWFBYoFigWKBZEFigWKBYoFmAWfBaYFrgWxBbkFCAAIAAgACAAIAAgACAAIAAgACAAIAMEFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAMgFCADQBQgACAAIAAgACAAIAAgACAAIAAgACAAIAO4CCAAIAAgAiQAIAAgACABAAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAD0AggACAD8AggACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIANYFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAMDvwAIAAgAJAIIAAgACAAIAAgACAAIAAgACwMTAwgACAB9BOsEGwMjAwgAKwMyAwsFYgE3A/MEPwMIAEUDTQNRAwgAWQOsAGEDCAAIAAgACAAIAAgACABpAzQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFOgU0BTUFNgU3BTgFOQU6BTQFNQU2BTcFOAU5BToFNAU1BTYFNwU4BTkFIQUoBSwFCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABtAwgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABMAEwACAAIAAgACAAIABgACAAIAAgACAC/AAgACAAyAQgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACAAIAAwAAgACAAIAAgACAAIAAgACAAIAAAARABIAAgACAAIABQASAAIAAgAIABwAEAAjgCIABsAqAC2AL0AigDQAtwC+IJIQqVAZUBWQqVAZUBlQGVAZUBlQGrC5UBlQGVAZUBlQGVAZUBlQGVAXsKlQGVAbAK6wsrDGUMpQzlDJUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAZUBlQGVAfAKAAuZA64AtwCJALoC6ADwAAgAuACgA/oEpgO6AqsD+AAIAAgAswMIAAgACAAIAIkAuwP5AfsBwwPLAwgACAAIAAgACADRA9kDCAAIAOED6QMIAAgACAAIAAgACADuA/YDCAAIAP4DyQAIAAgABgQIAAgAXQAOBAgACAAIAAgACAAIABMECAAIAAgACAAIAAgACAD8AAQBCAAIAAgAGgQiBCoECAExBAgAEAEIAAgACAAIAAgACAAIAAgACAAIAAgACAA4BAgACABABEYECAAIAAgATAQYAQgAVAQIAAgACAAIAAgACAAIAAgACAAIAFoECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAOQEIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAB+BAcACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAEABhgSMBAgACAAIAAgAlAQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAwAEAAQABAADAAMAAwADAAQABAAEAAQABAAEAAQABHATAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAdQMIAAgACAAIAAgACAAIAMkACAAIAAgAfQMIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACACFA4kDCAAIAAgACAAIAOcBCAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAIcDCAAIAAgACAAIAAgACAAIAAgACAAIAJEDCAAIAAgACADFAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABgBAgAZgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAbAQCBXIECAAIAHkECAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACABAAJwEQACjBKoEsgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAC6BMIECAAIAAgACAAIAAgACABmBAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAxwQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAGYECAAIAAgAzgQIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBd0FXwUIAOIF6gXxBYoF3gT5BQAGCAaKBYoFigWKBYoFigWKBYoFigWKBYoFigXWBIoFigWKBYoFigWKBYoFigWKBYsFEAaKBYoFigWKBYoFigWKBRQGCACKBYoFigWKBQgACAAIANEECAAIABgGigUgBggAJgYIAC4GMwaKBYoF0wQ3Bj4GigWKBYoFigWKBYoFigWKBYoFigWKBYoFigUIAAgACAAIAAgACAAIAAgAigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWKBYoFigWLBf///////wQABAAEAAQABAAEAAQABAAEAAQAAwAEAAQAAgAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAQADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUAAAAFAAUAAAAFAAUAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUAAQAAAAUABQAFAAUABQAFAAAAAAAFAAUAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAFAAUAAQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAAABwAHAAcAAAAHAAcABwAFAAEAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAcABwAFAAUAAAAAAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAAAAQABAAAAAAAAAAAAAAAFAAUABQAFAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAHAAcAAAAHAAcAAAAAAAUABQAHAAUAAQAHAAEABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwABAAUABQAFAAUAAAAAAAAAAAAAAAEAAQABAAEAAQABAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABQANAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABAAEAAQABAAEAAQABAAEAAQABAAEAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAABQAHAAUABQAFAAAAAAAAAAcABQAFAAUABQAFAAQABAAEAAQABAAEAAQABAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAEAAQABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUAAAAFAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAUAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAcABwAFAAcABwAAAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUABwAHAAUABQAFAAUAAAAAAAcABwAAAAAABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAABQAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAAAAAAAAAAABQAFAAAAAAAFAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAFAAUABQAFAAUAAAAFAAUABwAAAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABwAFAAUABQAFAAAAAAAHAAcAAAAAAAcABwAFAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAAAAAAAAAHAAcABwAAAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAABQAHAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAUABQAFAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAHAAcABQAHAAcAAAAFAAcABwAAAAcABwAFAAUAAAAAAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAFAAcABwAFAAUABQAAAAUAAAAHAAcABwAHAAcABwAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAHAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAABwAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAUAAAAFAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABwAFAAUABQAFAAUAAAAFAAUAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABwAFAAUABQAFAAUABQAAAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABQAFAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABQAFAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAHAAUABQAFAAUABQAFAAUABwAHAAcABwAHAAcABwAHAAUABwAHAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABwAHAAcABwAFAAUABwAHAAcAAAAAAAAAAAAHAAcABQAHAAcABwAHAAcABwAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAcABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAUABQAFAAUABQAFAAUAAAAFAAAABQAAAAAABQAFAAUABQAFAAUABQAFAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAFAAUAAAAAAAUABQAFAAUABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABwAFAAcABwAHAAcABwAFAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAUABQAFAAUABwAHAAUABQAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABQAFAAcABwAHAAUABwAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAcABQAFAAUABQAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAAAAAABwAFAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAAAAAAAAAFAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAUABQAHAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAUABQAFAAUABQAHAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAcABwAFAAUABQAFAAcABwAFAAUABwAHAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAFAAcABwAFAAUABwAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAFAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAFAAUABQAAAAAABQAFAAAAAAAAAAAAAAAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAcABwAAAAAAAAAAAAAABwAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAcABwAFAAcABwAAAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAFAAUABQAAAAUABQAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABwAFAAUABQAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAUABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAHAAcABQAHAAUABQAAAAAAAAAAAAAAAAAFAAAABwAHAAcABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAHAAcABwAAAAAABwAHAAAAAAAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABwAHAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAFAAUABwAFAAcABwAFAAcABQAFAAcABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAHAAcABQAFAAUABQAAAAAABwAHAAcABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAHAAUABQAFAAUABQAFAAUABQAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABwAFAAcABwAFAAUABQAFAAUABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAcABwAFAAUABQAFAAcABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAUABQAFAAUABQAHAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAFAAUABQAFAAAAAAAFAAUABwAHAAcABwAFAAAAAAAAAAcAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABwAHAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAcABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUAAAAHAAUABQAFAAUABQAFAAUABwAFAAUABwAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUAAAAAAAAABQAAAAUABQAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAHAAcABwAHAAcAAAAFAAUAAAAHAAcABQAHAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAAAAUABQAFAAAAAAAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAFAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAFAAUABQAAAAAABQAFAAUABQAFAAUABQAAAAUABQAAAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFAAUABQAFAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABQAFAAUABQAFAAUABQAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAFAAUABQAFAAUADgAOAA4ADgAOAA4ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAA8ADwAPAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAcABwAHAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAgACAAIAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAMAAwADAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkACQAJAAkAAAAAAAAAAAAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAKAAoACgAAAAAAAAAAAAsADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwACwAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAMAAwADAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAADgAOAA4AAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAAAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4AAAAOAAAAAAAAAAAAAAAAAA4AAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAAAAAAAAAAAA4AAAAOAAAAAAAAAAAADgAOAA4AAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAA4AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4AAAAAAA4ADgAOAA4ADgAOAA4ADgAOAAAADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4ADgAOAAAAAAAAAAAAAAAAAAAAAAAAAAAADgAOAA4ADgAOAA4AAAAAAAAAAAAAAAAAAAAAAA4ADgAOAA4ADgAOAA4ADgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAOAA4ADgAOAA4ADgAAAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4ADgAOAA4AAAAAAAAAAAA=",wB="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",oe=typeof Uint8Array>"u"?[]:new Uint8Array(256),ke=0;ke>4,Q[B++]=(s&15)<<4|i>>2,Q[B++]=(i&3)<<6|a&63;return o},Oi=function(e){for(var A=e.length,t=[],r=0;r>mA,Ri=1<>mA,Ni=cB+Vi,Xi=Ni,_i=32,Ji=Xi+_i,Pi=65536>>Sr,ki=1<=0){if(A<55296||A>56319&&A<=65535)return t=this.index[A>>mA],t=(t<>mA)],t=(t<>Sr),t=this.index[t],t+=A>>mA&Yi,t=this.index[t],t=(t<"u"?[]:new Uint8Array(256),Ye=0;Ye=55296&&B<=56319&&t>10)+55296,s%1024+56320)),(B+1===t||r.length>16384)&&(n+=String.fromCharCode.apply(String,r),r.length=0)}return n},ro=Zi(Ti),AA="\xD7",_r="\xF7",to=function(e){return ro.get(e)},Bo=function(e,A,t){var r=t-2,B=A[r],n=A[t-1],s=A[t];if(n===Gr&&s===Rr)return AA;if(n===Gr||n===Rr||n===lB||s===Gr||s===Rr||s===lB)return _r;if(n===UB&&[UB,Vr,FB,hB].indexOf(s)!==-1||(n===FB||n===Vr)&&(s===Vr||s===Nr)||(n===hB||n===Nr)&&s===Nr||s===dB||s===fB||s===$i||n===zi)return AA;if(n===dB&&s===EB){for(;B===fB;)B=A[--r];if(B===EB)return AA}if(n===Xr&&s===Xr){for(var i=0;B===Xr;)i++,B=A[--r];if(i%2===0)return AA}return _r},no=function(e){var A=Ao(e),t=A.length,r=0,B=0,n=A.map(to);return{next:function(){if(r>=t)return{done:!0,value:null};for(var s=AA;rs.x||Q.y>s.y;return s=Q,o===0?!0:g});return e.body.removeChild(A),i},oo=function(){return typeof new Image().crossOrigin<"u"},Qo=function(){return typeof new XMLHttpRequest().responseType=="string"},go=function(e){var A=new Image,t=e.createElement("canvas"),r=t.getContext("2d");if(!r)return!1;A.src="data:image/svg+xml,";try{r.drawImage(A,0,0),t.toDataURL()}catch{return!1}return!0},HB=function(e){return e[0]===0&&e[1]===255&&e[2]===0&&e[3]===255},wo=function(e){var A=e.createElement("canvas"),t=100;A.width=t,A.height=t;var r=A.getContext("2d");if(!r)return Promise.reject(!1);r.fillStyle="rgb(0, 255, 0)",r.fillRect(0,0,t,t);var B=new Image,n=A.toDataURL();B.src=n;var s=Jr(t,t,0,0,B);return r.fillStyle="red",r.fillRect(0,0,t,t),pB(s).then(function(i){r.drawImage(i,0,0);var a=r.getImageData(0,0,t,t).data;r.fillStyle="red",r.fillRect(0,0,t,t);var o=e.createElement("div");return o.style.backgroundImage="url("+n+")",o.style.height=t+"px",HB(a)?pB(Jr(t,t,0,0,o)):Promise.reject(!1)}).then(function(i){return r.drawImage(i,0,0),HB(r.getImageData(0,0,t,t).data)}).catch(function(){return!1})},Jr=function(e,A,t,r,B){var n="http://www.w3.org/2000/svg",s=document.createElementNS(n,"svg"),i=document.createElementNS(n,"foreignObject");return s.setAttributeNS(null,"width",e.toString()),s.setAttributeNS(null,"height",A.toString()),i.setAttributeNS(null,"width","100%"),i.setAttributeNS(null,"height","100%"),i.setAttributeNS(null,"x",t.toString()),i.setAttributeNS(null,"y",r.toString()),i.setAttributeNS(null,"externalResourcesRequired","true"),s.appendChild(i),i.appendChild(B),s},pB=function(e){return new Promise(function(A,t){var r=new Image;r.onload=function(){return A(r)},r.onerror=t,r.src="data:image/svg+xml;charset=utf-8,"+encodeURIComponent(new XMLSerializer().serializeToString(e))})},N={get SUPPORT_RANGE_BOUNDS(){var e=ao(document);return Object.defineProperty(N,"SUPPORT_RANGE_BOUNDS",{value:e}),e},get SUPPORT_WORD_BREAKING(){var e=N.SUPPORT_RANGE_BOUNDS&&io(document);return Object.defineProperty(N,"SUPPORT_WORD_BREAKING",{value:e}),e},get SUPPORT_SVG_DRAWING(){var e=go(document);return Object.defineProperty(N,"SUPPORT_SVG_DRAWING",{value:e}),e},get SUPPORT_FOREIGNOBJECT_DRAWING(){var e=typeof Array.from=="function"&&typeof window.fetch=="function"?wo(document):Promise.resolve(!1);return Object.defineProperty(N,"SUPPORT_FOREIGNOBJECT_DRAWING",{value:e}),e},get SUPPORT_CORS_IMAGES(){var e=oo();return Object.defineProperty(N,"SUPPORT_CORS_IMAGES",{value:e}),e},get SUPPORT_RESPONSE_TYPE(){var e=Qo();return Object.defineProperty(N,"SUPPORT_RESPONSE_TYPE",{value:e}),e},get SUPPORT_CORS_XHR(){var e="withCredentials"in new XMLHttpRequest;return Object.defineProperty(N,"SUPPORT_CORS_XHR",{value:e}),e},get SUPPORT_NATIVE_TEXT_SEGMENTATION(){var e=!!(typeof Intl<"u"&&Intl.Segmenter);return Object.defineProperty(N,"SUPPORT_NATIVE_TEXT_SEGMENTATION",{value:e}),e}},Qe=(function(){function e(A,t){this.text=A,this.bounds=t}return e})(),co=function(e,A,t,r){var B=lo(A,t),n=[],s=0;return B.forEach(function(i){if(t.textDecorationLine.length||i.trim().length>0)if(N.SUPPORT_RANGE_BOUNDS){var a=IB(r,s,i.length).getClientRects();if(a.length>1){var o=Pr(i),Q=0;o.forEach(function(w){n.push(new Qe(w,iA.fromDOMRectList(e,IB(r,Q+s,w.length).getClientRects()))),Q+=w.length})}else n.push(new Qe(i,iA.fromDOMRectList(e,a)))}else{var g=r.splitText(i.length);n.push(new Qe(i,Co(e,r))),r=g}else N.SUPPORT_RANGE_BOUNDS||(r=r.splitText(i.length));s+=i.length}),n},Co=function(e,A){var t=A.ownerDocument;if(t){var r=t.createElement("html2canvaswrapper");r.appendChild(A.cloneNode(!0));var B=A.parentNode;if(B){B.replaceChild(r,A);var n=ue(e,r);return r.firstChild&&B.replaceChild(r.firstChild,r),n}}return iA.EMPTY},IB=function(e,A,t){var r=e.ownerDocument;if(!r)throw new Error("Node has no owner document");var B=r.createRange();return B.setStart(e,A),B.setEnd(e,A+t),B},Pr=function(e){if(N.SUPPORT_NATIVE_TEXT_SEGMENTATION){var A=new Intl.Segmenter(void 0,{granularity:"grapheme"});return Array.from(A.segment(e)).map(function(t){return t.segment})}return so(e)},uo=function(e,A){if(N.SUPPORT_NATIVE_TEXT_SEGMENTATION){var t=new Intl.Segmenter(void 0,{granularity:"word"});return Array.from(t.segment(e)).map(function(r){return r.segment})}return Uo(e,A)},lo=function(e,A){return A.letterSpacing!==0?Pr(e):uo(e,A)},fo=[32,160,4961,65792,65793,4153,4241],Uo=function(e,A){for(var t=Pn(e,{lineBreak:A.lineBreak,wordBreak:A.overflowWrap==="break-word"?"break-word":A.wordBreak}),r=[],B,n=function(){if(B.value){var s=B.value.slice(),i=le(s),a="";i.forEach(function(o){fo.indexOf(o)===-1?a+=T(o):(a.length&&r.push(a),r.push(T(o)),a="")}),a.length&&r.push(a)}};!(B=t.next()).done;)n();return r},Fo=(function(){function e(A,t,r){this.text=ho(t.data,r.textTransform),this.textBounds=co(A,this.text,r,t)}return e})(),ho=function(e,A){switch(A){case 1:return e.toLowerCase();case 3:return e.replace(Eo,Ho);case 2:return e.toUpperCase();default:return e}},Eo=/(^|\s|:|-|\(|\))([a-z])/g,Ho=function(e,A,t){return e.length>0?A+t.toUpperCase():e},vB=(function(e){P(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B.src=r.currentSrc||r.src,B.intrinsicWidth=r.naturalWidth,B.intrinsicHeight=r.naturalHeight,B.context.cache.addImage(B.src),B}return A})(sA),yB=(function(e){P(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B.canvas=r,B.intrinsicWidth=r.width,B.intrinsicHeight=r.height,B}return A})(sA),KB=(function(e){P(A,e);function A(t,r){var B=e.call(this,t,r)||this,n=new XMLSerializer,s=ue(t,r);return r.setAttribute("width",s.width+"px"),r.setAttribute("height",s.height+"px"),B.svg="data:image/svg+xml,"+encodeURIComponent(n.serializeToString(r)),B.intrinsicWidth=r.width.baseVal.value,B.intrinsicHeight=r.height.baseVal.value,B.context.cache.addImage(B.svg),B}return A})(sA),mB=(function(e){P(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B.value=r.value,B}return A})(sA),kr=(function(e){P(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B.start=r.start,B.reversed=typeof r.reversed=="boolean"&&r.reversed===!0,B}return A})(sA),po=[{type:15,flags:0,unit:"px",number:3}],Io=[{type:16,flags:0,number:50}],vo=function(e){return e.width>e.height?new iA(e.left+(e.width-e.height)/2,e.top,e.height,e.height):e.width0)t.textNodes.push(new Fo(e,B,t.styles));else if(VA(B))if(XB(B)&&B.assignedNodes)B.assignedNodes().forEach(function(i){return qe(e,i,t,r)});else{var s=TB(e,B);s.styles.isVisible()&&(Lo(B,s,r)?s.flags|=4:Do(s.styles)&&(s.flags|=2),mo.indexOf(B.tagName)!==-1&&(s.flags|=8),t.elements.push(s),B.slot,B.shadowRoot?qe(e,B.shadowRoot,s,r):!ze(B)&&!MB(B)&&!$e(B)&&qe(e,B,s,r))}},TB=function(e,A){return qr(A)?new vB(e,A):GB(A)?new yB(e,A):MB(A)?new KB(e,A):bo(A)?new mB(e,A):xo(A)?new kr(e,A):To(A)?new Yr(e,A):$e(A)?new DB(e,A):ze(A)?new bB(e,A):VB(A)?new xB(e,A):new sA(e,A)},SB=function(e,A){var t=TB(e,A);return t.flags|=4,qe(e,A,t,t),t},Lo=function(e,A,t){return A.styles.isPositionedWithZIndex()||A.styles.opacity<1||A.styles.isTransformed()||Zr(e)&&t.styles.isTransparent()},Do=function(e){return e.isPositioned()||e.isFloating()},OB=function(e){return e.nodeType===Node.TEXT_NODE},VA=function(e){return e.nodeType===Node.ELEMENT_NODE},Wr=function(e){return VA(e)&&typeof e.style<"u"&&!je(e)},je=function(e){return typeof e.className=="object"},bo=function(e){return e.tagName==="LI"},xo=function(e){return e.tagName==="OL"},To=function(e){return e.tagName==="INPUT"},So=function(e){return e.tagName==="HTML"},MB=function(e){return e.tagName==="svg"},Zr=function(e){return e.tagName==="BODY"},GB=function(e){return e.tagName==="CANVAS"},RB=function(e){return e.tagName==="VIDEO"},qr=function(e){return e.tagName==="IMG"},VB=function(e){return e.tagName==="IFRAME"},NB=function(e){return e.tagName==="STYLE"},Oo=function(e){return e.tagName==="SCRIPT"},ze=function(e){return e.tagName==="TEXTAREA"},$e=function(e){return e.tagName==="SELECT"},XB=function(e){return e.tagName==="SLOT"},_B=function(e){return e.tagName.indexOf("-")>0},Mo=(function(){function e(){this.counters={}}return e.prototype.getCounterValue=function(A){var t=this.counters[A];return t&&t.length?t[t.length-1]:1},e.prototype.getCounterValues=function(A){var t=this.counters[A];return t||[]},e.prototype.pop=function(A){var t=this;A.forEach(function(r){return t.counters[r].pop()})},e.prototype.parse=function(A){var t=this,r=A.counterIncrement,B=A.counterReset,n=!0;r!==null&&r.forEach(function(i){var a=t.counters[i.counter];a&&i.increment!==0&&(n=!1,a.length||a.push(1),a[Math.max(0,a.length-1)]+=i.increment)});var s=[];return n&&B.forEach(function(i){var a=t.counters[i.counter];s.push(i.counter),a||(a=t.counters[i.counter]=[]),a.push(i.reset)}),s},e})(),JB={integers:[1e3,900,500,400,100,90,50,40,10,9,5,4,1],values:["M","CM","D","CD","C","XC","L","XL","X","IX","V","IV","I"]},PB={integers:[9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u0554","\u0553","\u0552","\u0551","\u0550","\u054F","\u054E","\u054D","\u054C","\u054B","\u054A","\u0549","\u0548","\u0547","\u0546","\u0545","\u0544","\u0543","\u0542","\u0541","\u0540","\u053F","\u053E","\u053D","\u053C","\u053B","\u053A","\u0539","\u0538","\u0537","\u0536","\u0535","\u0534","\u0533","\u0532","\u0531"]},Go={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,400,300,200,100,90,80,70,60,50,40,30,20,19,18,17,16,15,10,9,8,7,6,5,4,3,2,1],values:["\u05D9\u05F3","\u05D8\u05F3","\u05D7\u05F3","\u05D6\u05F3","\u05D5\u05F3","\u05D4\u05F3","\u05D3\u05F3","\u05D2\u05F3","\u05D1\u05F3","\u05D0\u05F3","\u05EA","\u05E9","\u05E8","\u05E7","\u05E6","\u05E4","\u05E2","\u05E1","\u05E0","\u05DE","\u05DC","\u05DB","\u05D9\u05D8","\u05D9\u05D7","\u05D9\u05D6","\u05D8\u05D6","\u05D8\u05D5","\u05D9","\u05D8","\u05D7","\u05D6","\u05D5","\u05D4","\u05D3","\u05D2","\u05D1","\u05D0"]},Ro={integers:[1e4,9e3,8e3,7e3,6e3,5e3,4e3,3e3,2e3,1e3,900,800,700,600,500,400,300,200,100,90,80,70,60,50,40,30,20,10,9,8,7,6,5,4,3,2,1],values:["\u10F5","\u10F0","\u10EF","\u10F4","\u10EE","\u10ED","\u10EC","\u10EB","\u10EA","\u10E9","\u10E8","\u10E7","\u10E6","\u10E5","\u10E4","\u10F3","\u10E2","\u10E1","\u10E0","\u10DF","\u10DE","\u10DD","\u10F2","\u10DC","\u10DB","\u10DA","\u10D9","\u10D8","\u10D7","\u10F1","\u10D6","\u10D5","\u10D4","\u10D3","\u10D2","\u10D1","\u10D0"]},NA=function(e,A,t,r,B,n){return et?we(e,B,n.length>0):r.integers.reduce(function(s,i,a){for(;e>=i;)e-=i,s+=r.values[a];return s},"")+n},kB=function(e,A,t,r){var B="";do t||e--,B=r(e)+B,e/=A;while(e*A>=A);return B},S=function(e,A,t,r,B){var n=t-A+1;return(e<0?"-":"")+(kB(Math.abs(e),n,r,function(s){return T(Math.floor(s%n)+A)})+B)},LA=function(e,A,t){t===void 0&&(t=". ");var r=A.length;return kB(Math.abs(e),r,!1,function(B){return A[Math.floor(B%r)]})+t},XA=1,dA=2,EA=4,ge=8,gA=function(e,A,t,r,B,n){if(e<-9999||e>9999)return we(e,4,B.length>0);var s=Math.abs(e),i=B;if(s===0)return A[0]+i;for(var a=0;s>0&&a<=4;a++){var o=s%10;o===0&&G(n,XA)&&i!==""?i=A[o]+i:o>1||o===1&&a===0||o===1&&a===1&&G(n,dA)||o===1&&a===1&&G(n,EA)&&e>100||o===1&&a>1&&G(n,ge)?i=A[o]+(a>0?t[a-1]:"")+i:o===1&&a>0&&(i=t[a-1]+i),s=Math.floor(s/10)}return(e<0?r:"")+i},YB="\u5341\u767E\u5343\u842C",WB="\u62FE\u4F70\u4EDF\u842C",ZB="\u30DE\u30A4\u30CA\u30B9",jr="\uB9C8\uC774\uB108\uC2A4",we=function(e,A,t){var r=t?". ":"",B=t?"\u3001":"",n=t?", ":"",s=t?" ":"";switch(A){case 0:return"\u2022"+s;case 1:return"\u25E6"+s;case 2:return"\u25FE"+s;case 5:var i=S(e,48,57,!0,r);return i.length<4?"0"+i:i;case 4:return LA(e,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",B);case 6:return NA(e,1,3999,JB,3,r).toLowerCase();case 7:return NA(e,1,3999,JB,3,r);case 8:return S(e,945,969,!1,r);case 9:return S(e,97,122,!1,r);case 10:return S(e,65,90,!1,r);case 11:return S(e,1632,1641,!0,r);case 12:case 49:return NA(e,1,9999,PB,3,r);case 35:return NA(e,1,9999,PB,3,r).toLowerCase();case 13:return S(e,2534,2543,!0,r);case 14:case 30:return S(e,6112,6121,!0,r);case 15:return LA(e,"\u5B50\u4E11\u5BC5\u536F\u8FB0\u5DF3\u5348\u672A\u7533\u9149\u620C\u4EA5",B);case 16:return LA(e,"\u7532\u4E59\u4E19\u4E01\u620A\u5DF1\u5E9A\u8F9B\u58EC\u7678",B);case 17:case 48:return gA(e,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",YB,"\u8CA0",B,dA|EA|ge);case 47:return gA(e,"\u96F6\u58F9\u8CB3\u53C3\u8086\u4F0D\u9678\u67D2\u634C\u7396",WB,"\u8CA0",B,XA|dA|EA|ge);case 42:return gA(e,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D",YB,"\u8D1F",B,dA|EA|ge);case 41:return gA(e,"\u96F6\u58F9\u8D30\u53C1\u8086\u4F0D\u9646\u67D2\u634C\u7396",WB,"\u8D1F",B,XA|dA|EA|ge);case 26:return gA(e,"\u3007\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u4E07",ZB,B,0);case 25:return gA(e,"\u96F6\u58F1\u5F10\u53C2\u56DB\u4F0D\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343\u4E07",ZB,B,XA|dA|EA);case 31:return gA(e,"\uC601\uC77C\uC774\uC0BC\uC0AC\uC624\uC721\uCE60\uD314\uAD6C","\uC2ED\uBC31\uCC9C\uB9CC",jr,n,XA|dA|EA);case 33:return gA(e,"\u96F6\u4E00\u4E8C\u4E09\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u5341\u767E\u5343\u842C",jr,n,0);case 32:return gA(e,"\u96F6\u58F9\u8CB3\u53C3\u56DB\u4E94\u516D\u4E03\u516B\u4E5D","\u62FE\u767E\u5343",jr,n,XA|dA|EA);case 18:return S(e,2406,2415,!0,r);case 20:return NA(e,1,19999,Ro,3,r);case 21:return S(e,2790,2799,!0,r);case 22:return S(e,2662,2671,!0,r);case 22:return NA(e,1,10999,Go,3,r);case 23:return LA(e,"\u3042\u3044\u3046\u3048\u304A\u304B\u304D\u304F\u3051\u3053\u3055\u3057\u3059\u305B\u305D\u305F\u3061\u3064\u3066\u3068\u306A\u306B\u306C\u306D\u306E\u306F\u3072\u3075\u3078\u307B\u307E\u307F\u3080\u3081\u3082\u3084\u3086\u3088\u3089\u308A\u308B\u308C\u308D\u308F\u3090\u3091\u3092\u3093");case 24:return LA(e,"\u3044\u308D\u306F\u306B\u307B\u3078\u3068\u3061\u308A\u306C\u308B\u3092\u308F\u304B\u3088\u305F\u308C\u305D\u3064\u306D\u306A\u3089\u3080\u3046\u3090\u306E\u304A\u304F\u3084\u307E\u3051\u3075\u3053\u3048\u3066\u3042\u3055\u304D\u3086\u3081\u307F\u3057\u3091\u3072\u3082\u305B\u3059");case 27:return S(e,3302,3311,!0,r);case 28:return LA(e,"\u30A2\u30A4\u30A6\u30A8\u30AA\u30AB\u30AD\u30AF\u30B1\u30B3\u30B5\u30B7\u30B9\u30BB\u30BD\u30BF\u30C1\u30C4\u30C6\u30C8\u30CA\u30CB\u30CC\u30CD\u30CE\u30CF\u30D2\u30D5\u30D8\u30DB\u30DE\u30DF\u30E0\u30E1\u30E2\u30E4\u30E6\u30E8\u30E9\u30EA\u30EB\u30EC\u30ED\u30EF\u30F0\u30F1\u30F2\u30F3",B);case 29:return LA(e,"\u30A4\u30ED\u30CF\u30CB\u30DB\u30D8\u30C8\u30C1\u30EA\u30CC\u30EB\u30F2\u30EF\u30AB\u30E8\u30BF\u30EC\u30BD\u30C4\u30CD\u30CA\u30E9\u30E0\u30A6\u30F0\u30CE\u30AA\u30AF\u30E4\u30DE\u30B1\u30D5\u30B3\u30A8\u30C6\u30A2\u30B5\u30AD\u30E6\u30E1\u30DF\u30B7\u30F1\u30D2\u30E2\u30BB\u30B9",B);case 34:return S(e,3792,3801,!0,r);case 37:return S(e,6160,6169,!0,r);case 38:return S(e,4160,4169,!0,r);case 39:return S(e,2918,2927,!0,r);case 40:return S(e,1776,1785,!0,r);case 43:return S(e,3046,3055,!0,r);case 44:return S(e,3174,3183,!0,r);case 45:return S(e,3664,3673,!0,r);case 46:return S(e,3872,3881,!0,r);default:return S(e,48,57,!0,r)}},qB="data-html2canvas-ignore",jB=(function(){function e(A,t,r){if(this.context=A,this.options=r,this.scrolledElements=[],this.referenceElement=t,this.counters=new Mo,this.quoteDepth=0,!t.ownerDocument)throw new Error("Cloned element does not have an owner document");this.documentElement=this.cloneNode(t.ownerDocument.documentElement,!1)}return e.prototype.toIFrame=function(A,t){var r=this,B=Vo(A,t);if(!B.contentWindow)return Promise.reject("Unable to find iframe window");var n=A.defaultView.pageXOffset,s=A.defaultView.pageYOffset,i=B.contentWindow,a=i.document,o=_o(B).then(function(){return k(r,void 0,void 0,function(){var Q,g;return _(this,function(w){switch(w.label){case 0:return this.scrolledElements.forEach(Yo),i&&(i.scrollTo(t.left,t.top),/(iPad|iPhone|iPod)/g.test(navigator.userAgent)&&(i.scrollY!==t.top||i.scrollX!==t.left)&&(this.context.logger.warn("Unable to restore scroll position for cloned document"),this.context.windowBounds=this.context.windowBounds.add(i.scrollX-t.left,i.scrollY-t.top,0,0))),Q=this.options.onclone,g=this.clonedReferenceElement,typeof g>"u"?[2,Promise.reject("Error finding the "+this.referenceElement.nodeName+" in the cloned document")]:a.fonts&&a.fonts.ready?[4,a.fonts.ready]:[3,2];case 1:w.sent(),w.label=2;case 2:return/(AppleWebKit)/g.test(navigator.userAgent)?[4,Xo(a)]:[3,4];case 3:w.sent(),w.label=4;case 4:return typeof Q=="function"?[2,Promise.resolve().then(function(){return Q(a,g)}).then(function(){return B})]:[2,B]}})})});return a.open(),a.write(Po(document.doctype)+""),ko(this.referenceElement.ownerDocument,n,s),a.replaceChild(a.adoptNode(this.documentElement),a.documentElement),a.close(),o},e.prototype.createElementClone=function(A){if(Tr(A,2))debugger;if(GB(A))return this.createCanvasClone(A);if(RB(A))return this.createVideoClone(A);if(NB(A))return this.createStyleClone(A);var t=A.cloneNode(!1);return qr(t)&&(qr(A)&&A.currentSrc&&A.currentSrc!==A.src&&(t.src=A.currentSrc,t.srcset=""),t.loading==="lazy"&&(t.loading="eager")),_B(t)?this.createCustomElementClone(t):t},e.prototype.createCustomElementClone=function(A){var t=document.createElement("html2canvascustomelement");return zr(A.style,t),t},e.prototype.createStyleClone=function(A){try{var t=A.sheet;if(t&&t.cssRules){var r=[].slice.call(t.cssRules,0).reduce(function(n,s){return s&&typeof s.cssText=="string"?n+s.cssText:n},""),B=A.cloneNode(!1);return B.textContent=r,B}}catch(n){if(this.context.logger.error("Unable to access cssRules property",n),n.name!=="SecurityError")throw n}return A.cloneNode(!1)},e.prototype.createCanvasClone=function(A){var t;if(this.options.inlineImages&&A.ownerDocument){var r=A.ownerDocument.createElement("img");try{return r.src=A.toDataURL(),r}catch{this.context.logger.info("Unable to inline canvas contents, canvas is tainted",A)}}var B=A.cloneNode(!1);try{B.width=A.width,B.height=A.height;var n=A.getContext("2d"),s=B.getContext("2d");if(s)if(!this.options.allowTaint&&n)s.putImageData(n.getImageData(0,0,A.width,A.height),0,0);else{var i=(t=A.getContext("webgl2"))!==null&&t!==void 0?t:A.getContext("webgl");if(i){var a=i.getContextAttributes();a?.preserveDrawingBuffer===!1&&this.context.logger.warn("Unable to clone WebGL context as it has preserveDrawingBuffer=false",A)}s.drawImage(A,0,0)}return B}catch{this.context.logger.info("Unable to clone canvas as it is tainted",A)}return B},e.prototype.createVideoClone=function(A){var t=A.ownerDocument.createElement("canvas");t.width=A.offsetWidth,t.height=A.offsetHeight;var r=t.getContext("2d");try{return r&&(r.drawImage(A,0,0,t.width,t.height),this.options.allowTaint||r.getImageData(0,0,t.width,t.height)),t}catch{this.context.logger.info("Unable to clone video as it is tainted",A)}var B=A.ownerDocument.createElement("canvas");return B.width=A.offsetWidth,B.height=A.offsetHeight,B},e.prototype.appendChildNode=function(A,t,r){(!VA(t)||!Oo(t)&&!t.hasAttribute(qB)&&(typeof this.options.ignoreElements!="function"||!this.options.ignoreElements(t)))&&(!this.options.copyStyles||!VA(t)||!NB(t))&&A.appendChild(this.cloneNode(t,r))},e.prototype.cloneChildNodes=function(A,t,r){for(var B=this,n=A.shadowRoot?A.shadowRoot.firstChild:A.firstChild;n;n=n.nextSibling)if(VA(n)&&XB(n)&&typeof n.assignedNodes=="function"){var s=n.assignedNodes();s.length&&s.forEach(function(i){return B.appendChildNode(t,i,r)})}else this.appendChildNode(t,n,r)},e.prototype.cloneNode=function(A,t){if(OB(A))return document.createTextNode(A.data);if(!A.ownerDocument)return A.cloneNode(!1);var r=A.ownerDocument.defaultView;if(r&&VA(A)&&(Wr(A)||je(A))){var B=this.createElementClone(A);B.style.transitionProperty="none";var n=r.getComputedStyle(A),s=r.getComputedStyle(A,":before"),i=r.getComputedStyle(A,":after");this.referenceElement===A&&Wr(B)&&(this.clonedReferenceElement=B),Zr(B)&&qo(B);var a=this.counters.parse(new gB(this.context,n)),o=this.resolvePseudoContent(A,B,s,Ar.BEFORE);_B(A)&&(t=!0),RB(A)||this.cloneChildNodes(A,B,t),o&&B.insertBefore(o,B.firstChild);var Q=this.resolvePseudoContent(A,B,i,Ar.AFTER);return Q&&B.appendChild(Q),this.counters.pop(a),(n&&(this.options.copyStyles||je(A))&&!VB(A)||t)&&zr(n,B),(A.scrollTop!==0||A.scrollLeft!==0)&&this.scrolledElements.push([B,A.scrollLeft,A.scrollTop]),(ze(A)||$e(A))&&(ze(B)||$e(B))&&(B.value=A.value),B}return A.cloneNode(!1)},e.prototype.resolvePseudoContent=function(A,t,r,B){var n=this;if(r){var s=r.content,i=t.ownerDocument;if(!(!i||!s||s==="none"||s==="-moz-alt-content"||r.display==="none")){this.counters.parse(new gB(this.context,r));var a=new Di(this.context,r),o=i.createElement("html2canvaspseudoelement");zr(r,o),a.content.forEach(function(g){if(g.type===0)o.appendChild(i.createTextNode(g.value));else if(g.type===22){var w=i.createElement("img");w.src=g.value,w.style.opacity="1",o.appendChild(w)}else if(g.type===18){if(g.name==="attr"){var f=g.values.filter(L);f.length&&o.appendChild(i.createTextNode(A.getAttribute(f[0].value)||""))}else if(g.name==="counter"){var c=g.values.filter(RA),C=c[0],H=c[1];if(C&&L(C)){var h=n.counters.getCounterValue(C.value),F=H&&L(H)?xr.parse(n.context,H.value):3;o.appendChild(i.createTextNode(we(h,F,!1)))}}else if(g.name==="counters"){var K=g.values.filter(RA),C=K[0],p=K[1],H=K[2];if(C&&L(C)){var d=n.counters.getCounterValues(C.value),l=H&&L(H)?xr.parse(n.context,H.value):3,v=p&&p.type===0?p.value:"",y=d.map(function(W){return we(W,l,!1)}).join(v);o.appendChild(i.createTextNode(y))}}}else if(g.type===20)switch(g.value){case"open-quote":o.appendChild(i.createTextNode(QB(a.quotes,n.quoteDepth++,!0)));break;case"close-quote":o.appendChild(i.createTextNode(QB(a.quotes,--n.quoteDepth,!1)));break;default:o.appendChild(i.createTextNode(g.value))}}),o.className=$r+" "+At;var Q=B===Ar.BEFORE?" "+$r:" "+At;return je(t)?t.className.baseValue+=Q:t.className+=Q,o}}},e.destroy=function(A){return A.parentNode?(A.parentNode.removeChild(A),!0):!1},e})(),Ar=(function(e){return e[e.BEFORE=0]="BEFORE",e[e.AFTER=1]="AFTER",e})(Ar||{}),Vo=function(e,A){var t=e.createElement("iframe");return t.className="html2canvas-container",t.style.visibility="hidden",t.style.position="fixed",t.style.left="-10000px",t.style.top="0px",t.style.border="0",t.width=A.width.toString(),t.height=A.height.toString(),t.scrolling="no",t.setAttribute(qB,"true"),e.body.appendChild(t),t},No=function(e){return new Promise(function(A){if(e.complete){A();return}if(!e.src){A();return}e.onload=A,e.onerror=A})},Xo=function(e){return Promise.all([].slice.call(e.images,0).map(No))},_o=function(e){return new Promise(function(A,t){var r=e.contentWindow;if(!r)return t("No window assigned for iframe");var B=r.document;r.onload=e.onload=function(){r.onload=e.onload=null;var n=setInterval(function(){B.body.childNodes.length>0&&B.readyState==="complete"&&(clearInterval(n),A(e))},50)}})},Jo=["all","d","content"],zr=function(e,A){for(var t=e.length-1;t>=0;t--){var r=e.item(t);Jo.indexOf(r)===-1&&A.style.setProperty(r,e.getPropertyValue(r))}return A},Po=function(e){var A="";return e&&(A+=""),A},ko=function(e,A,t){e&&e.defaultView&&(A!==e.defaultView.pageXOffset||t!==e.defaultView.pageYOffset)&&e.defaultView.scrollTo(A,t)},Yo=function(e){var A=e[0],t=e[1],r=e[2];A.scrollLeft=t,A.scrollTop=r},Wo=":before",Zo=":after",$r="___html2canvas___pseudoelement_before",At="___html2canvas___pseudoelement_after",zB=`{ + content: "" !important; + display: none !important; +}`,qo=function(e){jo(e,"."+$r+Wo+zB+` + .`+At+Zo+zB)},jo=function(e,A){var t=e.ownerDocument;if(t){var r=t.createElement("style");r.textContent=A,e.appendChild(r)}},$B=(function(){function e(){}return e.getOrigin=function(A){var t=e._link;return t?(t.href=A,t.href=t.href,t.protocol+t.hostname+t.port):"about:blank"},e.isSameOrigin=function(A){return e.getOrigin(A)===e._origin},e.setContext=function(A){e._link=A.document.createElement("a"),e._origin=e.getOrigin(A.location.href)},e._origin="about:blank",e})(),zo=(function(){function e(A,t){this.context=A,this._options=t,this._cache={}}return e.prototype.addImage=function(A){var t=Promise.resolve();return this.has(A)||(rt(A)||rQ(A))&&(this._cache[A]=this.loadImage(A)).catch(function(){}),t},e.prototype.match=function(A){return this._cache[A]},e.prototype.loadImage=function(A){return k(this,void 0,void 0,function(){var t,r,B,n,s=this;return _(this,function(i){switch(i.label){case 0:return t=$B.isSameOrigin(A),r=!et(A)&&this._options.useCORS===!0&&N.SUPPORT_CORS_IMAGES&&!t,B=!et(A)&&!t&&!rt(A)&&typeof this._options.proxy=="string"&&N.SUPPORT_CORS_XHR&&!r,!t&&this._options.allowTaint===!1&&!et(A)&&!rt(A)&&!B&&!r?[2]:(n=A,B?[4,this.proxy(n)]:[3,2]);case 1:n=i.sent(),i.label=2;case 2:return this.context.logger.debug("Added image "+A.substring(0,256)),[4,new Promise(function(a,o){var Q=new Image;Q.onload=function(){return a(Q)},Q.onerror=o,(tQ(n)||r)&&(Q.crossOrigin="anonymous"),Q.src=n,Q.complete===!0&&setTimeout(function(){return a(Q)},500),s._options.imageTimeout>0&&setTimeout(function(){return o("Timed out ("+s._options.imageTimeout+"ms) loading image")},s._options.imageTimeout)})];case 3:return[2,i.sent()]}})})},e.prototype.has=function(A){return typeof this._cache[A]<"u"},e.prototype.keys=function(){return Promise.resolve(Object.keys(this._cache))},e.prototype.proxy=function(A){var t=this,r=this._options.proxy;if(!r)throw new Error("No proxy defined");var B=A.substring(0,256);return new Promise(function(n,s){var i=N.SUPPORT_RESPONSE_TYPE?"blob":"text",a=new XMLHttpRequest;a.onload=function(){if(a.status===200)if(i==="text")n(a.response);else{var g=new FileReader;g.addEventListener("load",function(){return n(g.result)},!1),g.addEventListener("error",function(w){return s(w)},!1),g.readAsDataURL(a.response)}else s("Failed to proxy resource "+B+" with status code "+a.status)},a.onerror=s;var o=r.indexOf("?")>-1?"&":"?";if(a.open("GET",""+r+o+"url="+encodeURIComponent(A)+"&responseType="+i),i!=="text"&&a instanceof XMLHttpRequest&&(a.responseType=i),t._options.imageTimeout){var Q=t._options.imageTimeout;a.timeout=Q,a.ontimeout=function(){return s("Timed out ("+Q+"ms) proxying "+B)}}a.send()})},e})(),$o=/^data:image\/svg\+xml/i,AQ=/^data:image\/.*;base64,/i,eQ=/^data:image\/.*/i,rQ=function(e){return N.SUPPORT_SVG_DRAWING||!BQ(e)},et=function(e){return eQ.test(e)},tQ=function(e){return AQ.test(e)},rt=function(e){return e.substr(0,4)==="blob"},BQ=function(e){return e.substr(-3).toLowerCase()==="svg"||$o.test(e)},u=(function(){function e(A,t){this.type=0,this.x=A,this.y=t}return e.prototype.add=function(A,t){return new e(this.x+A,this.y+t)},e})(),_A=function(e,A,t){return new u(e.x+(A.x-e.x)*t,e.y+(A.y-e.y)*t)},er=(function(){function e(A,t,r,B){this.type=1,this.start=A,this.startControl=t,this.endControl=r,this.end=B}return e.prototype.subdivide=function(A,t){var r=_A(this.start,this.startControl,A),B=_A(this.startControl,this.endControl,A),n=_A(this.endControl,this.end,A),s=_A(r,B,A),i=_A(B,n,A),a=_A(s,i,A);return t?new e(this.start,r,s,a):new e(a,i,n,this.end)},e.prototype.add=function(A,t){return new e(this.start.add(A,t),this.startControl.add(A,t),this.endControl.add(A,t),this.end.add(A,t))},e.prototype.reverse=function(){return new e(this.end,this.endControl,this.startControl,this.start)},e})(),eA=function(e){return e.type===1},nQ=(function(){function e(A){var t=A.styles,r=A.bounds,B=se(t.borderTopLeftRadius,r.width,r.height),n=B[0],s=B[1],i=se(t.borderTopRightRadius,r.width,r.height),a=i[0],o=i[1],Q=se(t.borderBottomRightRadius,r.width,r.height),g=Q[0],w=Q[1],f=se(t.borderBottomLeftRadius,r.width,r.height),c=f[0],C=f[1],H=[];H.push((n+a)/r.width),H.push((c+g)/r.width),H.push((s+C)/r.height),H.push((o+w)/r.height);var h=Math.max.apply(Math,H);h>1&&(n/=h,s/=h,a/=h,o/=h,g/=h,w/=h,c/=h,C/=h);var F=r.width-a,K=r.height-w,p=r.width-g,d=r.height-C,l=t.borderTopWidth,v=t.borderRightWidth,y=t.borderBottomWidth,E=t.borderLeftWidth,M=b(t.paddingTop,A.bounds.width),W=b(t.paddingRight,A.bounds.width),z=b(t.paddingBottom,A.bounds.width),D=b(t.paddingLeft,A.bounds.width);this.topLeftBorderDoubleOuterBox=n>0||s>0?x(r.left+E/3,r.top+l/3,n-E/3,s-l/3,m.TOP_LEFT):new u(r.left+E/3,r.top+l/3),this.topRightBorderDoubleOuterBox=n>0||s>0?x(r.left+F,r.top+l/3,a-v/3,o-l/3,m.TOP_RIGHT):new u(r.left+r.width-v/3,r.top+l/3),this.bottomRightBorderDoubleOuterBox=g>0||w>0?x(r.left+p,r.top+K,g-v/3,w-y/3,m.BOTTOM_RIGHT):new u(r.left+r.width-v/3,r.top+r.height-y/3),this.bottomLeftBorderDoubleOuterBox=c>0||C>0?x(r.left+E/3,r.top+d,c-E/3,C-y/3,m.BOTTOM_LEFT):new u(r.left+E/3,r.top+r.height-y/3),this.topLeftBorderDoubleInnerBox=n>0||s>0?x(r.left+E*2/3,r.top+l*2/3,n-E*2/3,s-l*2/3,m.TOP_LEFT):new u(r.left+E*2/3,r.top+l*2/3),this.topRightBorderDoubleInnerBox=n>0||s>0?x(r.left+F,r.top+l*2/3,a-v*2/3,o-l*2/3,m.TOP_RIGHT):new u(r.left+r.width-v*2/3,r.top+l*2/3),this.bottomRightBorderDoubleInnerBox=g>0||w>0?x(r.left+p,r.top+K,g-v*2/3,w-y*2/3,m.BOTTOM_RIGHT):new u(r.left+r.width-v*2/3,r.top+r.height-y*2/3),this.bottomLeftBorderDoubleInnerBox=c>0||C>0?x(r.left+E*2/3,r.top+d,c-E*2/3,C-y*2/3,m.BOTTOM_LEFT):new u(r.left+E*2/3,r.top+r.height-y*2/3),this.topLeftBorderStroke=n>0||s>0?x(r.left+E/2,r.top+l/2,n-E/2,s-l/2,m.TOP_LEFT):new u(r.left+E/2,r.top+l/2),this.topRightBorderStroke=n>0||s>0?x(r.left+F,r.top+l/2,a-v/2,o-l/2,m.TOP_RIGHT):new u(r.left+r.width-v/2,r.top+l/2),this.bottomRightBorderStroke=g>0||w>0?x(r.left+p,r.top+K,g-v/2,w-y/2,m.BOTTOM_RIGHT):new u(r.left+r.width-v/2,r.top+r.height-y/2),this.bottomLeftBorderStroke=c>0||C>0?x(r.left+E/2,r.top+d,c-E/2,C-y/2,m.BOTTOM_LEFT):new u(r.left+E/2,r.top+r.height-y/2),this.topLeftBorderBox=n>0||s>0?x(r.left,r.top,n,s,m.TOP_LEFT):new u(r.left,r.top),this.topRightBorderBox=a>0||o>0?x(r.left+F,r.top,a,o,m.TOP_RIGHT):new u(r.left+r.width,r.top),this.bottomRightBorderBox=g>0||w>0?x(r.left+p,r.top+K,g,w,m.BOTTOM_RIGHT):new u(r.left+r.width,r.top+r.height),this.bottomLeftBorderBox=c>0||C>0?x(r.left,r.top+d,c,C,m.BOTTOM_LEFT):new u(r.left,r.top+r.height),this.topLeftPaddingBox=n>0||s>0?x(r.left+E,r.top+l,Math.max(0,n-E),Math.max(0,s-l),m.TOP_LEFT):new u(r.left+E,r.top+l),this.topRightPaddingBox=a>0||o>0?x(r.left+Math.min(F,r.width-v),r.top+l,F>r.width+v?0:Math.max(0,a-v),Math.max(0,o-l),m.TOP_RIGHT):new u(r.left+r.width-v,r.top+l),this.bottomRightPaddingBox=g>0||w>0?x(r.left+Math.min(p,r.width-E),r.top+Math.min(K,r.height-y),Math.max(0,g-v),Math.max(0,w-y),m.BOTTOM_RIGHT):new u(r.left+r.width-v,r.top+r.height-y),this.bottomLeftPaddingBox=c>0||C>0?x(r.left+E,r.top+Math.min(d,r.height-y),Math.max(0,c-E),Math.max(0,C-y),m.BOTTOM_LEFT):new u(r.left+E,r.top+r.height-y),this.topLeftContentBox=n>0||s>0?x(r.left+E+D,r.top+l+M,Math.max(0,n-(E+D)),Math.max(0,s-(l+M)),m.TOP_LEFT):new u(r.left+E+D,r.top+l+M),this.topRightContentBox=a>0||o>0?x(r.left+Math.min(F,r.width+E+D),r.top+l+M,F>r.width+E+D?0:a-E+D,o-(l+M),m.TOP_RIGHT):new u(r.left+r.width-(v+W),r.top+l+M),this.bottomRightContentBox=g>0||w>0?x(r.left+Math.min(p,r.width-(E+D)),r.top+Math.min(K,r.height+l+M),Math.max(0,g-(v+W)),w-(y+z),m.BOTTOM_RIGHT):new u(r.left+r.width-(v+W),r.top+r.height-(y+z)),this.bottomLeftContentBox=c>0||C>0?x(r.left+E+D,r.top+d,Math.max(0,c-(E+D)),C-(y+z),m.BOTTOM_LEFT):new u(r.left+E+D,r.top+r.height-(y+z))}return e})(),m=(function(e){return e[e.TOP_LEFT=0]="TOP_LEFT",e[e.TOP_RIGHT=1]="TOP_RIGHT",e[e.BOTTOM_RIGHT=2]="BOTTOM_RIGHT",e[e.BOTTOM_LEFT=3]="BOTTOM_LEFT",e})(m||{}),x=function(e,A,t,r,B){var n=4*((Math.sqrt(2)-1)/3),s=t*n,i=r*n,a=e+t,o=A+r;switch(B){case m.TOP_LEFT:return new er(new u(e,o),new u(e,o-i),new u(a-s,A),new u(a,A));case m.TOP_RIGHT:return new er(new u(e,A),new u(e+s,A),new u(a,o-i),new u(a,o));case m.BOTTOM_RIGHT:return new er(new u(a,A),new u(a,A+i),new u(e+s,o),new u(e,o));case m.BOTTOM_LEFT:default:return new er(new u(a,o),new u(a-s,o),new u(e,A+i),new u(e,A))}},rr=function(e){return[e.topLeftBorderBox,e.topRightBorderBox,e.bottomRightBorderBox,e.bottomLeftBorderBox]},sQ=function(e){return[e.topLeftContentBox,e.topRightContentBox,e.bottomRightContentBox,e.bottomLeftContentBox]},tr=function(e){return[e.topLeftPaddingBox,e.topRightPaddingBox,e.bottomRightPaddingBox,e.bottomLeftPaddingBox]},aQ=(function(){function e(A,t,r){this.offsetX=A,this.offsetY=t,this.matrix=r,this.type=0,this.target=6}return e})(),Br=(function(){function e(A,t){this.path=A,this.target=t,this.type=1}return e})(),iQ=(function(){function e(A){this.opacity=A,this.type=2,this.target=6}return e})(),oQ=function(e){return e.type===0},An=function(e){return e.type===1},QQ=function(e){return e.type===2},en=function(e,A){return e.length===A.length?e.some(function(t,r){return t===A[r]}):!1},gQ=function(e,A,t,r,B){return e.map(function(n,s){switch(s){case 0:return n.add(A,t);case 1:return n.add(A+r,t);case 2:return n.add(A+r,t+B);case 3:return n.add(A,t+B)}return n})},rn=(function(){function e(A){this.element=A,this.inlineLevel=[],this.nonInlineLevel=[],this.negativeZIndex=[],this.zeroOrAutoZIndexOrTransformedOrOpacity=[],this.positiveZIndex=[],this.nonPositionedFloats=[],this.nonPositionedInlineLevel=[]}return e})(),tn=(function(){function e(A,t){if(this.container=A,this.parent=t,this.effects=[],this.curves=new nQ(this.container),this.container.styles.opacity<1&&this.effects.push(new iQ(this.container.styles.opacity)),this.container.styles.transform!==null){var r=this.container.bounds.left+this.container.styles.transformOrigin[0].number,B=this.container.bounds.top+this.container.styles.transformOrigin[1].number,n=this.container.styles.transform;this.effects.push(new aQ(r,B,n))}if(this.container.styles.overflowX!==0){var s=rr(this.curves),i=tr(this.curves);en(s,i)?this.effects.push(new Br(s,6)):(this.effects.push(new Br(s,2)),this.effects.push(new Br(i,4)))}}return e.prototype.getEffects=function(A){for(var t=[2,3].indexOf(this.container.styles.position)===-1,r=this.parent,B=this.effects.slice(0);r;){var n=r.effects.filter(function(a){return!An(a)});if(t||r.container.styles.position!==0||!r.parent){if(B.unshift.apply(B,n),t=[2,3].indexOf(r.container.styles.position)===-1,r.container.styles.overflowX!==0){var s=rr(r.curves),i=tr(r.curves);en(s,i)||B.unshift(new Br(i,6))}}else B.unshift.apply(B,n);r=r.parent}return B.filter(function(a){return G(a.target,A)})},e})(),tt=function(e,A,t,r){e.container.elements.forEach(function(B){var n=G(B.flags,4),s=G(B.flags,2),i=new tn(B,e);G(B.styles.display,2048)&&r.push(i);var a=G(B.flags,8)?[]:r;if(n||s){var o=n||B.styles.isPositioned()?t:A,Q=new rn(i);if(B.styles.isPositioned()||B.styles.opacity<1||B.styles.isTransformed()){var g=B.styles.zIndex.order;if(g<0){var w=0;o.negativeZIndex.some(function(c,C){return g>c.element.container.styles.zIndex.order?(w=C,!1):w>0}),o.negativeZIndex.splice(w,0,Q)}else if(g>0){var f=0;o.positiveZIndex.some(function(c,C){return g>=c.element.container.styles.zIndex.order?(f=C+1,!1):f>0}),o.positiveZIndex.splice(f,0,Q)}else o.zeroOrAutoZIndexOrTransformedOrOpacity.push(Q)}else B.styles.isFloating()?o.nonPositionedFloats.push(Q):o.nonPositionedInlineLevel.push(Q);tt(i,Q,n?Q:t,a)}else B.styles.isInlineLevel()?A.inlineLevel.push(i):A.nonInlineLevel.push(i),tt(i,A,t,a);G(B.flags,8)&&Bn(B,a)})},Bn=function(e,A){for(var t=e instanceof kr?e.start:1,r=e instanceof kr?e.reversed:!1,B=0;B"u"?e[0]:t},FQ=function(e,A,t,r,B){var n=A[0],s=A[1],i=t[0],a=t[1];switch(e){case 2:return[new u(Math.round(r.left),Math.round(r.top+s)),new u(Math.round(r.left+r.width),Math.round(r.top+s)),new u(Math.round(r.left+r.width),Math.round(a+r.top+s)),new u(Math.round(r.left),Math.round(a+r.top+s))];case 3:return[new u(Math.round(r.left+n),Math.round(r.top)),new u(Math.round(r.left+n+i),Math.round(r.top)),new u(Math.round(r.left+n+i),Math.round(r.height+r.top)),new u(Math.round(r.left+n),Math.round(r.height+r.top))];case 1:return[new u(Math.round(r.left+n),Math.round(r.top+s)),new u(Math.round(r.left+n+i),Math.round(r.top+s)),new u(Math.round(r.left+n+i),Math.round(r.top+s+a)),new u(Math.round(r.left+n),Math.round(r.top+s+a))];default:return[new u(Math.round(B.left),Math.round(B.top)),new u(Math.round(B.left+B.width),Math.round(B.top)),new u(Math.round(B.left+B.width),Math.round(B.height+B.top)),new u(Math.round(B.left),Math.round(B.height+B.top))]}},hQ="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",an="Hidden Text",dQ=(function(){function e(A){this._data={},this._document=A}return e.prototype.parseMetrics=function(A,t){var r=this._document.createElement("div"),B=this._document.createElement("img"),n=this._document.createElement("span"),s=this._document.body;r.style.visibility="hidden",r.style.fontFamily=A,r.style.fontSize=t,r.style.margin="0",r.style.padding="0",r.style.whiteSpace="nowrap",s.appendChild(r),B.src=hQ,B.width=1,B.height=1,B.style.margin="0",B.style.padding="0",B.style.verticalAlign="baseline",n.style.fontFamily=A,n.style.fontSize=t,n.style.margin="0",n.style.padding="0",n.appendChild(this._document.createTextNode(an)),r.appendChild(n),r.appendChild(B);var i=B.offsetTop-n.offsetTop+2;r.removeChild(n),r.appendChild(this._document.createTextNode(an)),r.style.lineHeight="normal",B.style.verticalAlign="super";var a=B.offsetTop-r.offsetTop+2;return s.removeChild(r),{baseline:i,middle:a}},e.prototype.getMetrics=function(A,t){var r=A+" "+t;return typeof this._data[r]>"u"&&(this._data[r]=this.parseMetrics(A,t)),this._data[r]},e})(),on=(function(){function e(A,t){this.context=A,this.options=t}return e})(),EQ=1e4,HQ=(function(e){P(A,e);function A(t,r){var B=e.call(this,t,r)||this;return B._activeEffects=[],B.canvas=r.canvas?r.canvas:document.createElement("canvas"),B.ctx=B.canvas.getContext("2d"),r.canvas||(B.canvas.width=Math.floor(r.width*r.scale),B.canvas.height=Math.floor(r.height*r.scale),B.canvas.style.width=r.width+"px",B.canvas.style.height=r.height+"px"),B.fontMetrics=new dQ(document),B.ctx.scale(B.options.scale,B.options.scale),B.ctx.translate(-r.x,-r.y),B.ctx.textBaseline="bottom",B._activeEffects=[],B.context.logger.debug("Canvas renderer initialized ("+r.width+"x"+r.height+") with scale "+r.scale),B}return A.prototype.applyEffects=function(t){for(var r=this;this._activeEffects.length;)this.popEffect();t.forEach(function(B){return r.applyEffect(B)})},A.prototype.applyEffect=function(t){this.ctx.save(),QQ(t)&&(this.ctx.globalAlpha=t.opacity),oQ(t)&&(this.ctx.translate(t.offsetX,t.offsetY),this.ctx.transform(t.matrix[0],t.matrix[1],t.matrix[2],t.matrix[3],t.matrix[4],t.matrix[5]),this.ctx.translate(-t.offsetX,-t.offsetY)),An(t)&&(this.path(t.path),this.ctx.clip()),this._activeEffects.push(t)},A.prototype.popEffect=function(){this._activeEffects.pop(),this.ctx.restore()},A.prototype.renderStack=function(t){return k(this,void 0,void 0,function(){var r;return _(this,function(B){switch(B.label){case 0:return r=t.element.container.styles,r.isVisible()?[4,this.renderStackContent(t)]:[3,2];case 1:B.sent(),B.label=2;case 2:return[2]}})})},A.prototype.renderNode=function(t){return k(this,void 0,void 0,function(){return _(this,function(r){switch(r.label){case 0:if(G(t.container.flags,16))debugger;return t.container.styles.isVisible()?[4,this.renderNodeBackgroundAndBorders(t)]:[3,3];case 1:return r.sent(),[4,this.renderNodeContent(t)];case 2:r.sent(),r.label=3;case 3:return[2]}})})},A.prototype.renderTextWithLetterSpacing=function(t,r,B){var n=this;if(r===0)this.ctx.fillText(t.text,t.bounds.left,t.bounds.top+B);else{var s=Pr(t.text);s.reduce(function(i,a){return n.ctx.fillText(a,i,t.bounds.top+B),i+n.ctx.measureText(a).width},t.bounds.left)}},A.prototype.createFontStyle=function(t){var r=t.fontVariant.filter(function(s){return s==="normal"||s==="small-caps"}).join(""),B=KQ(t.fontFamily).join(", "),n=ne(t.fontSize)?""+t.fontSize.number+t.fontSize.unit:t.fontSize.number+"px";return[[t.fontStyle,r,t.fontWeight,n,B].join(" "),B,n]},A.prototype.renderTextNode=function(t,r){return k(this,void 0,void 0,function(){var B,n,s,i,a,o,Q,g,w=this;return _(this,function(f){return B=this.createFontStyle(r),n=B[0],s=B[1],i=B[2],this.ctx.font=n,this.ctx.direction=r.direction===1?"rtl":"ltr",this.ctx.textAlign="left",this.ctx.textBaseline="alphabetic",a=this.fontMetrics.getMetrics(s,i),o=a.baseline,Q=a.middle,g=r.paintOrder,t.textBounds.forEach(function(c){g.forEach(function(C){switch(C){case 0:w.ctx.fillStyle=R(r.color),w.renderTextWithLetterSpacing(c,r.letterSpacing,o);var H=r.textShadow;H.length&&c.text.trim().length&&(H.slice(0).reverse().forEach(function(h){w.ctx.shadowColor=R(h.color),w.ctx.shadowOffsetX=h.offsetX.number*w.options.scale,w.ctx.shadowOffsetY=h.offsetY.number*w.options.scale,w.ctx.shadowBlur=h.blur.number,w.renderTextWithLetterSpacing(c,r.letterSpacing,o)}),w.ctx.shadowColor="",w.ctx.shadowOffsetX=0,w.ctx.shadowOffsetY=0,w.ctx.shadowBlur=0),r.textDecorationLine.length&&(w.ctx.fillStyle=R(r.textDecorationColor||r.color),r.textDecorationLine.forEach(function(h){switch(h){case 1:w.ctx.fillRect(c.bounds.left,Math.round(c.bounds.top+o),c.bounds.width,1);break;case 2:w.ctx.fillRect(c.bounds.left,Math.round(c.bounds.top),c.bounds.width,1);break;case 3:w.ctx.fillRect(c.bounds.left,Math.ceil(c.bounds.top+Q),c.bounds.width,1);break}}));break;case 1:r.webkitTextStrokeWidth&&c.text.trim().length&&(w.ctx.strokeStyle=R(r.webkitTextStrokeColor),w.ctx.lineWidth=r.webkitTextStrokeWidth,w.ctx.lineJoin=window.chrome?"miter":"round",w.ctx.strokeText(c.text,c.bounds.left,c.bounds.top+o)),w.ctx.strokeStyle="",w.ctx.lineWidth=0,w.ctx.lineJoin="miter";break}})}),[2]})})},A.prototype.renderReplacedElement=function(t,r,B){if(B&&t.intrinsicWidth>0&&t.intrinsicHeight>0){var n=sr(t),s=tr(r);this.path(s),this.ctx.save(),this.ctx.clip(),this.ctx.drawImage(B,0,0,t.intrinsicWidth,t.intrinsicHeight,n.left,n.top,n.width,n.height),this.ctx.restore()}},A.prototype.renderNodeContent=function(t){return k(this,void 0,void 0,function(){var r,B,n,s,i,a,F,F,o,Q,g,w,p,f,c,d,C,H,h,F,K,p,d;return _(this,function(l){switch(l.label){case 0:this.applyEffects(t.getEffects(4)),r=t.container,B=t.curves,n=r.styles,s=0,i=r.textNodes,l.label=1;case 1:return s0&&X>0&&(y=n.ctx.createPattern(d,"repeat"),n.renderRepeat(M,y,Z,q))):oa(Q)&&(E=Bt(t,r,[null,null,null]),M=E[0],W=E[1],z=E[2],D=E[3],X=E[4],HA=Q.position.length===0?[mr]:Q.position,Z=b(HA[0],D),q=b(HA[HA.length-1],X),DA=Ba(Q,Z,q,D,X),aA=DA[0],pA=DA[1],aA>0&&pA>0&&(bA=n.ctx.createRadialGradient(W+Z,z+q,0,W+Z,z+q,aA),qt(Q.stops,aA*2).forEach(function(ce){return bA.addColorStop(ce.stop,R(ce.color))}),n.path(M),n.ctx.fillStyle=bA,aA!==pA?(xA=t.bounds.left+.5*t.bounds.width,wA=t.bounds.top+.5*t.bounds.height,TA=pA/aA,cA=1/TA,n.ctx.save(),n.ctx.translate(xA,wA),n.ctx.transform(1,0,0,TA,0,0),n.ctx.translate(-xA,-wA),n.ctx.fillRect(W,cA*(z-wA)+wA,D,X*cA),n.ctx.restore()):n.ctx.fill())),kA.label=6;case 6:return r--,[2]}})},n=this,s=0,i=t.styles.backgroundImage.slice(0).reverse(),o.label=1;case 1:return s0?Q.style!==2?[3,5]:[4,this.renderDashedDottedBorder(Q.color,Q.width,i,t.curves,2)]:[3,11]):[3,13];case 4:return w.sent(),[3,11];case 5:return Q.style!==3?[3,7]:[4,this.renderDashedDottedBorder(Q.color,Q.width,i,t.curves,3)];case 6:return w.sent(),[3,11];case 7:return Q.style!==4?[3,9]:[4,this.renderDoubleBorder(Q.color,Q.width,i,t.curves)];case 8:return w.sent(),[3,11];case 9:return[4,this.renderSolidBorder(Q.color,i,t.curves)];case 10:w.sent(),w.label=11;case 11:i++,w.label=12;case 12:return a++,[3,3];case 13:return[2]}})})},A.prototype.renderDashedDottedBorder=function(t,r,B,n,s){return k(this,void 0,void 0,function(){var i,a,o,Q,g,w,f,c,C,H,h,F,K,p,d,l,d,l;return _(this,function(v){return this.ctx.save(),i=uQ(n,B),a=nn(n,B),s===2&&(this.path(a),this.ctx.clip()),eA(a[0])?(o=a[0].start.x,Q=a[0].start.y):(o=a[0].x,Q=a[0].y),eA(a[1])?(g=a[1].end.x,w=a[1].end.y):(g=a[1].x,w=a[1].y),B===0||B===2?f=Math.abs(o-g):f=Math.abs(Q-w),this.ctx.beginPath(),s===3?this.formatPath(i):this.formatPath(a.slice(0,2)),c=r<3?r*3:r*2,C=r<3?r*2:r,s===3&&(c=r,C=r),H=!0,f<=c*2?H=!1:f<=c*2+C?(h=f/(2*c+C),c*=h,C*=h):(F=Math.floor((f+C)/(c+C)),K=(f-F*c)/(F-1),p=(f-(F+1)*c)/F,C=p<=0||Math.abs(C-K){"use strict";var br=function(i){return i&&i.Math===Math&&i};zs.exports=br(typeof globalThis=="object"&&globalThis)||br(typeof window=="object"&&window)||br(typeof self=="object"&&self)||br(typeof global=="object"&&global)||br(typeof Ii=="object"&&Ii)||(function(){return this})()||Function("return this")()});var _=d((kO,$s)=>{"use strict";$s.exports=function(i){try{return!!i()}catch{return!0}}});var ue=d((BO,Gs)=>{"use strict";var wg=_();Gs.exports=!wg(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!==7})});var xr=d((jO,Hs)=>{"use strict";var Cg=_();Hs.exports=!Cg(function(){var i=function(){}.bind();return typeof i!="function"||i.hasOwnProperty("prototype")})});var H=d((UO,Ys)=>{"use strict";var qg=xr(),ut=Function.prototype.call;Ys.exports=qg?ut.bind(ut):function(){return ut.apply(ut,arguments)}});var Ks=d(Qs=>{"use strict";var Xs={}.propertyIsEnumerable,Ws=Object.getOwnPropertyDescriptor,Ag=Ws&&!Xs.call({1:2},1);Qs.f=Ag?function(e){var r=Ws(this,e);return!!r&&r.enumerable}:Xs});var lt=d((zO,Zs)=>{"use strict";Zs.exports=function(i,e){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:e}}});var D=d(($O,ro)=>{"use strict";var Js=xr(),eo=Function.prototype,Mi=eo.call,Pg=Js&&eo.bind.bind(Mi,Mi);ro.exports=Js?Pg:function(i){return function(){return Mi.apply(i,arguments)}}});var xe=d((GO,io)=>{"use strict";var to=D(),Rg=to({}.toString),Ng=to("".slice);io.exports=function(i){return Ng(Rg(i),8,-1)}});var _i=d((HO,ao)=>{"use strict";var Ig=D(),Mg=_(),Vg=xe(),Vi=Object,_g=Ig("".split);ao.exports=Mg(function(){return!Vi("z").propertyIsEnumerable(0)})?function(i){return Vg(i)==="String"?_g(i,""):Vi(i)}:Vi});var Tr=d((YO,no)=>{"use strict";no.exports=function(i){return i==null}});var le=d((XO,so)=>{"use strict";var Dg=Tr(),Lg=TypeError;so.exports=function(i){if(Dg(i))throw new Lg("Can't call method on "+i);return i}});var Qe=d((WO,oo)=>{"use strict";var kg=_i(),Bg=le();oo.exports=function(i){return kg(Bg(i))}});var L=d((QO,uo)=>{"use strict";var Di=typeof document=="object"&&document.all;uo.exports=typeof Di>"u"&&Di!==void 0?function(i){return typeof i=="function"||i===Di}:function(i){return typeof i=="function"}});var te=d((KO,lo)=>{"use strict";var jg=L();lo.exports=function(i){return typeof i=="object"?i!==null:jg(i)}});var Pe=d((ZO,ho)=>{"use strict";var Li=M(),Ug=L(),Fg=function(i){return Ug(i)?i:void 0};ho.exports=function(i,e){return arguments.length<2?Fg(Li[i]):Li[i]&&Li[i][e]}});var Or=d((JO,co)=>{"use strict";var zg=D();co.exports=zg({}.isPrototypeOf)});var Ke=d((eS,go)=>{"use strict";var $g=M(),fo=$g.navigator,vo=fo&&fo.userAgent;go.exports=vo?String(vo):""});var ct=d((rS,To)=>{"use strict";var xo=M(),ki=Ke(),po=xo.process,yo=xo.Deno,mo=po&&po.versions||yo&&yo.version,bo=mo&&mo.v8,fe,ht;bo&&(fe=bo.split("."),ht=fe[0]>0&&fe[0]<4?1:+(fe[0]+fe[1]));!ht&&ki&&(fe=ki.match(/Edge\/(\d+)/),(!fe||fe[1]>=74)&&(fe=ki.match(/Chrome\/(\d+)/),fe&&(ht=+fe[1])));To.exports=ht});var Bi=d((tS,So)=>{"use strict";var Oo=ct(),Gg=_(),Hg=M(),Yg=Hg.String;So.exports=!!Object.getOwnPropertySymbols&&!Gg(function(){var i=Symbol("symbol detection");return!Yg(i)||!(Object(i)instanceof Symbol)||!Symbol.sham&&Oo&&Oo<41})});var ji=d((iS,Eo)=>{"use strict";var Xg=Bi();Eo.exports=Xg&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Ui=d((aS,wo)=>{"use strict";var Wg=Pe(),Qg=L(),Kg=Or(),Zg=ji(),Jg=Object;wo.exports=Zg?function(i){return typeof i=="symbol"}:function(i){var e=Wg("Symbol");return Qg(e)&&Kg(e.prototype,Jg(i))}});var Sr=d((nS,Co)=>{"use strict";var ed=String;Co.exports=function(i){try{return ed(i)}catch{return"Object"}}});var Te=d((sS,qo)=>{"use strict";var rd=L(),td=Sr(),id=TypeError;qo.exports=function(i){if(rd(i))return i;throw new id(td(i)+" is not a function")}});var ke=d((oS,Ao)=>{"use strict";var ad=Te(),nd=Tr();Ao.exports=function(i,e){var r=i[e];return nd(r)?void 0:ad(r)}});var Ro=d((uS,Po)=>{"use strict";var Fi=H(),zi=L(),$i=te(),sd=TypeError;Po.exports=function(i,e){var r,t;if(e==="string"&&zi(r=i.toString)&&!$i(t=Fi(r,i))||zi(r=i.valueOf)&&!$i(t=Fi(r,i))||e!=="string"&&zi(r=i.toString)&&!$i(t=Fi(r,i)))return t;throw new sd("Can't convert object to primitive value")}});var ve=d((lS,No)=>{"use strict";No.exports=!1});var ft=d((hS,Mo)=>{"use strict";var Io=M(),od=Object.defineProperty;Mo.exports=function(i,e){try{od(Io,i,{value:e,configurable:!0,writable:!0})}catch{Io[i]=e}return e}});var vt=d((cS,Do)=>{"use strict";var ud=ve(),ld=M(),hd=ft(),Vo="__core-js_shared__",_o=Do.exports=ld[Vo]||hd(Vo,{});(_o.versions||(_o.versions=[])).push({version:"3.50.0",mode:ud?"pure":"global",copyright:"\xA9 2013\u20132025 Denis Pushkarev (zloirock.ru), 2025\u20132026 CoreJS Company (core-js.io). All rights reserved.",license:"https://github.com/zloirock/core-js/blob/v3.50.0/LICENSE",source:"https://github.com/zloirock/core-js"})});var gt=d((fS,ko)=>{"use strict";var Lo=vt(),cd=Object.create||Object;ko.exports=function(i,e){return Lo[i]||(Lo[i]=e||cd(null))}});var Er=d((vS,Bo)=>{"use strict";var fd=le(),vd=Object;Bo.exports=function(i){return vd(fd(i))}});var he=d((gS,jo)=>{"use strict";var gd=D(),dd=Er(),pd=gd({}.hasOwnProperty);jo.exports=Object.hasOwn||function(e,r){return pd(dd(e),r)}});var Gi=d((dS,Uo)=>{"use strict";var yd=D(),md=0,bd=Math.random(),xd=yd(1.1.toString);Uo.exports=function(i){return"Symbol("+(i===void 0?"":i)+")_"+xd(++md+bd,36)}});var z=d((pS,zo)=>{"use strict";var Td=M(),Od=gt(),Fo=he(),Sd=Gi(),Ed=Bi(),wd=ji(),Ze=Td.Symbol,Hi=Od("wks"),Cd=wd?Ze.for||Ze:Ze&&Ze.withoutSetter||Sd;zo.exports=function(i){return Fo(Hi,i)||(Hi[i]=Ed&&Fo(Ze,i)?Ze[i]:Cd("Symbol."+i)),Hi[i]}});var Yo=d((yS,Ho)=>{"use strict";var qd=H(),$o=te(),Go=Ui(),Ad=ke(),Pd=Ro(),Rd=z(),Nd=TypeError,Id=Rd("toPrimitive");Ho.exports=function(i,e){if(!$o(i)||Go(i))return i;var r=Ad(i,Id),t;if(r){if(e===void 0&&(e="default"),t=qd(r,i,e),!$o(t)||Go(t))return t;throw new Nd("Can't convert object to primitive value")}return e===void 0&&(e="number"),Pd(i,e)}});var Yi=d((mS,Xo)=>{"use strict";var Md=Yo(),Vd=Ui();Xo.exports=function(i){var e=Md(i,"string");return Vd(e)?e:e+""}});var wr=d((bS,Qo)=>{"use strict";var _d=M(),Wo=te(),Xi=_d.document,Dd=Wo(Xi)&&Wo(Xi.createElement);Qo.exports=function(i){return Dd?Xi.createElement(i):{}}});var Wi=d((xS,Ko)=>{"use strict";var Ld=ue(),kd=_(),Bd=wr();Ko.exports=!Ld&&!kd(function(){return Object.defineProperty(Bd("div"),"a",{get:function(){return 7}}).a!==7})});var Cr=d(Jo=>{"use strict";var jd=ue(),Ud=H(),Fd=Ks(),zd=lt(),$d=Qe(),Gd=Yi(),Hd=he(),Yd=Wi(),Zo=Object.getOwnPropertyDescriptor;Jo.f=jd?Zo:function(e,r){if(e=$d(e),r=Gd(r),Yd)try{return Zo(e,r)}catch{}if(Hd(e,r))return zd(!Ud(Fd.f,e,r),e[r])}});var Qi=d((OS,eu)=>{"use strict";var Xd=ue(),Wd=_();eu.exports=Xd&&Wd(function(){return Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype!==42})});var J=d((SS,ru)=>{"use strict";var Qd=te(),Kd=String,Zd=TypeError;ru.exports=function(i){if(Qd(i))return i;throw new Zd(Kd(i)+" is not an object")}});var Oe=d(iu=>{"use strict";var Jd=ue(),ep=Wi(),rp=Qi(),dt=J(),tu=Yi(),tp=TypeError,Ki=Object.defineProperty,ip=Object.getOwnPropertyDescriptor,Zi="enumerable",Ji="configurable",ea="writable";iu.f=Jd?rp?function(e,r,t){if(dt(e),r=tu(r),dt(t),typeof e=="function"&&r==="prototype"&&"value"in t&&ea in t&&!t[ea]){var a=ip(e,r);a&&a[ea]&&(e[r]=t.value,t={configurable:Ji in t?t[Ji]:a[Ji],enumerable:Zi in t?t[Zi]:a[Zi],writable:!1})}return Ki(e,r,t)}:Ki:function(e,r,t){if(dt(e),r=tu(r),dt(t),ep)try{return Ki(e,r,t)}catch{}if("get"in t||"set"in t)throw new tp("Accessors not supported");return"value"in t&&(e[r]=t.value),e}});var Je=d((wS,au)=>{"use strict";var ap=ue(),np=Oe(),sp=lt();au.exports=ap?function(i,e,r){return np.f(i,e,sp(1,r))}:function(i,e,r){return i[e]=r,i}});var qr=d((CS,su)=>{"use strict";var ra=ue(),op=he(),nu=Function.prototype,up=ra&&Object.getOwnPropertyDescriptor,ta=op(nu,"name"),lp=ta&&function(){}.name==="something",hp=ta&&(!ra||ra&&up(nu,"name").configurable);su.exports={EXISTS:ta,PROPER:lp,CONFIGURABLE:hp}});var pt=d((qS,ou)=>{"use strict";var cp=D(),fp=L(),ia=vt(),vp=cp(Function.toString);fp(ia.inspectSource)||(ia.inspectSource=function(i){return vp(i)});ou.exports=ia.inspectSource});var hu=d((AS,lu)=>{"use strict";var gp=M(),dp=L(),uu=gp.WeakMap;lu.exports=dp(uu)&&/native code/.test(String(uu))});var yt=d((PS,fu)=>{"use strict";var pp=gt(),yp=Gi(),cu=pp("keys");fu.exports=function(i){return cu[i]||(cu[i]=yp(i))}});var mt=d((RS,vu)=>{"use strict";vu.exports={}});var Pr=d((NS,pu)=>{"use strict";var mp=hu(),du=M(),bp=te(),xp=Je(),aa=he(),na=vt(),Tp=yt(),Op=mt(),gu="Object already initialized",sa=du.TypeError,Sp=du.WeakMap,bt,Ar,xt,Ep=function(i){return xt(i)?Ar(i):bt(i,{})},wp=function(i){return function(e){var r;if(!bp(e)||(r=Ar(e)).type!==i)throw new sa("Incompatible receiver, "+i+" required");return r}};mp||na.state?(ge=na.state||(na.state=new Sp),ge.get=ge.get,ge.has=ge.has,ge.set=ge.set,bt=function(i,e){if(ge.has(i))throw new sa(gu);return e.facade=i,ge.set(i,e),e},Ar=function(i){return ge.get(i)||{}},xt=function(i){return ge.has(i)}):(Be=Tp("state"),Op[Be]=!0,bt=function(i,e){if(aa(i,Be))throw new sa(gu);return e.facade=i,xp(i,Be,e),e},Ar=function(i){return aa(i,Be)?i[Be]:{}},xt=function(i){return aa(i,Be)});var ge,Be;pu.exports={set:bt,get:Ar,has:xt,enforce:Ep,getterFor:wp}});var la=d((IS,bu)=>{"use strict";var ua=D(),Cp=_(),qp=L(),Tt=he(),oa=ue(),Ap=qr().CONFIGURABLE,Pp=pt(),mu=Pr(),Rp=mu.enforce,Np=mu.get,yu=String,Ot=Object.defineProperty,Ip=ua("".slice),Mp=ua("".replace),Vp=ua([].join),_p=oa&&!Cp(function(){return Ot(function(){},"length",{value:8}).length!==8}),Dp=String(String).split("String"),Lp=bu.exports=function(i,e,r){Ip(yu(e),0,7)==="Symbol("&&(e="["+Mp(yu(e),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),r&&r.getter&&(e="get "+e),r&&r.setter&&(e="set "+e),(!Tt(i,"name")||Ap&&i.name!==e)&&(oa?Ot(i,"name",{value:e,configurable:!0}):i.name=e),_p&&r&&Tt(r,"arity")&&i.length!==r.arity&&Ot(i,"length",{value:r.arity});try{r&&Tt(r,"constructor")&&r.constructor?oa&&Ot(i,"prototype",{writable:!1}):i.prototype&&(i.prototype=void 0)}catch{}var t=Rp(i);return Tt(t,"source")||(t.source=Vp(Dp,typeof e=="string"?e:"")),i};Function.prototype.toString=Lp(function(){return qp(this)&&Np(this).source||Pp(this)},"toString")});var Re=d((MS,xu)=>{"use strict";var kp=L(),Bp=Oe(),jp=la(),Up=ft();xu.exports=function(i,e,r,t){t||(t={});var a=t.enumerable,n=t.name!==void 0?t.name:e;if(kp(r)&&jp(r,n,t),t.global)a?i[e]=r:Up(e,r);else{try{t.unsafe?i[e]&&(a=!0):delete i[e]}catch{}a?i[e]=r:Bp.f(i,e,{value:r,enumerable:!1,configurable:!t.nonConfigurable,writable:!t.nonWritable})}return i}});var Ou=d((VS,Tu)=>{"use strict";var Fp=Math.ceil,zp=Math.floor;Tu.exports=Math.trunc||function(e){var r=+e;return(r>0?zp:Fp)(r)}});var Rr=d((_S,Su)=>{"use strict";var $p=Ou();Su.exports=function(i){var e=+i;return e!==e||e===0?0:$p(e)}});var wu=d((DS,Eu)=>{"use strict";var Gp=Rr(),Hp=Math.max,Yp=Math.min;Eu.exports=function(i,e){var r=Gp(i);return r<0?Hp(r+e,0):Yp(r,e)}});var je=d((LS,Cu)=>{"use strict";var Xp=Rr(),Wp=Math.min;Cu.exports=function(i){var e=Xp(i);return e>0?Wp(e,9007199254740991):0}});var St=d((kS,qu)=>{"use strict";var Qp=je();qu.exports=function(i){return Qp(i.length)}});var ha=d((BS,Pu)=>{"use strict";var Kp=Qe(),Zp=wu(),Jp=St(),Au=function(i){return function(e,r,t){var a=Kp(e),n=Jp(a);if(n===0)return!i&&-1;var o=Zp(t,n),s;if(i&&r!==r){for(;n>o;)if(s=a[o++],s!==s)return!0}else for(;n>o;o++)if((i||o in a)&&a[o]===r)return i||o||0;return!i&&-1}};Pu.exports={includes:Au(!0),indexOf:Au(!1)}});var fa=d((jS,Nu)=>{"use strict";var ey=D(),ca=he(),ry=Qe(),ty=ha().indexOf,iy=mt(),Ru=ey([].push);Nu.exports=function(i,e){var r=ry(i),t=0,a=[],n;for(n in r)!ca(iy,n)&&ca(r,n)&&Ru(a,n);for(;e.length>t;)ca(r,n=e[t++])&&(~ty(a,n)||Ru(a,n));return a}});var Et=d((US,Iu)=>{"use strict";Iu.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]});var Vu=d(Mu=>{"use strict";var ay=fa(),ny=Et(),sy=ny.concat("length","prototype");Mu.f=Object.getOwnPropertyNames||function(e){return ay(e,sy)}});var Du=d(_u=>{"use strict";_u.f=Object.getOwnPropertySymbols});var ku=d(($S,Lu)=>{"use strict";var oy=Pe(),uy=D(),ly=Vu(),hy=Du(),cy=J(),fy=uy([].concat);Lu.exports=oy("Reflect","ownKeys")||function(e){var r=ly.f(cy(e)),t=hy.f;return t?fy(r,t(e)):r}});var Uu=d((GS,ju)=>{"use strict";var Bu=he(),vy=ku(),gy=Cr(),dy=Oe();ju.exports=function(i,e,r){for(var t=vy(e),a=dy.f,n=gy.f,o=0;o{"use strict";var py=_(),yy=L(),my=/#|\.prototype\./,Nr=function(i,e){var r=xy[by(i)];return r===Oy?!0:r===Ty?!1:yy(e)?py(e):!!e},by=Nr.normalize=function(i){return String(i).replace(my,".").toLowerCase()},xy=Nr.data={},Ty=Nr.NATIVE="N",Oy=Nr.POLYFILL="P";Fu.exports=Nr});var ee=d((YS,zu)=>{"use strict";var wt=M(),Sy=Cr().f,Ey=Je(),wy=Re(),Cy=ft(),qy=Uu(),Ay=va();zu.exports=function(i,e){var r=i.target,t=i.global,a=i.stat,n,o,s,u,l,h;if(t?o=wt:a?o=wt[r]||Cy(r,{}):o=wt[r]&&wt[r].prototype,o)for(s in e){if(l=e[s],i.dontCallGetSet?(h=Sy(o,s),u=h&&h.value):u=o[s],n=Ay(t?s:r+(a?".":"#")+s,i.forced),!n&&u!==void 0){if(typeof l==typeof u)continue;qy(l,u)}(i.sham||u&&u.sham)&&Ey(l,"sham",!0),wy(o,s,l,i)}}});var ga=d((XS,$u)=>{"use strict";var Ir=M(),Py=Ke(),Ry=xe(),Ct=function(i){return Py.slice(0,i.length)===i};$u.exports=(function(){return Ct("Bun/")?"BUN":Ct("Cloudflare-Workers")?"CLOUDFLARE":Ct("Deno/")?"DENO":Ct("Node.js/")?"NODE":Ir.Bun&&typeof Bun.version=="string"?"BUN":Ir.Deno&&typeof Deno.version=="object"?"DENO":Ry(Ir.process)==="process"?"NODE":Ir.window&&Ir.document?"BROWSER":"REST"})()});var Mr=d((WS,Gu)=>{"use strict";var Ny=ga();Gu.exports=Ny==="NODE"});var Yu=d((QS,Hu)=>{"use strict";var Iy=M();Hu.exports=Iy});var Wu=d((KS,Xu)=>{"use strict";var My=D(),Vy=Te();Xu.exports=function(i,e,r){try{return My(Vy(Object.getOwnPropertyDescriptor(i,e)[r]))}catch{}}});var Ku=d((ZS,Qu)=>{"use strict";var _y=te();Qu.exports=function(i){return _y(i)||i===null}});var Ju=d((JS,Zu)=>{"use strict";var Dy=Ku(),Ly=String,ky=TypeError;Zu.exports=function(i){if(Dy(i))return i;throw new ky("Can't set "+Ly(i)+" as a prototype")}});var da=d((eE,el)=>{"use strict";var By=Wu(),jy=te(),Uy=le(),Fy=Ju();el.exports=Object.setPrototypeOf||("__proto__"in{}?(function(){var i=!1,e={},r;try{r=By(Object.prototype,"__proto__","set"),r(e,[]),i=e instanceof Array}catch{}return function(a,n){return Uy(a),Fy(n),jy(a)&&(i?r(a,n):a.__proto__=n),a}})():void 0)});var Vr=d((rE,tl)=>{"use strict";var zy=Oe().f,$y=he(),Gy=z(),rl=Gy("toStringTag");tl.exports=function(i,e,r){i&&!r&&(i=i.prototype),i&&!$y(i,rl)&&zy(i,rl,{configurable:!0,value:e})}});var nl=d((tE,al)=>{"use strict";var il=la(),Hy=Oe();al.exports=function(i,e,r){return r.get&&il(r.get,e,{getter:!0}),r.set&&il(r.set,e,{setter:!0}),Hy.f(i,e,r)}});var ul=d((iE,ol)=>{"use strict";var Yy=Pe(),Xy=nl(),Wy=z(),Qy=ue(),sl=Wy("species");ol.exports=function(i){var e=Yy(i);Qy&&e&&!e[sl]&&Xy(e,sl,{configurable:!0,get:function(){return this}})}});var hl=d((aE,ll)=>{"use strict";var Ky=Or(),Zy=TypeError;ll.exports=function(i,e){if(Ky(e,i))return i;throw new Zy("Incorrect invocation")}});var vl=d((nE,fl)=>{"use strict";var Jy=z(),e0=Jy("toStringTag"),cl={};cl[e0]="z";fl.exports=String(cl)==="[object z]"});var pa=d((sE,gl)=>{"use strict";var r0=vl(),t0=L(),qt=xe(),i0=z(),a0=i0("toStringTag"),n0=Object,s0=qt((function(){return arguments})())==="Arguments",o0=function(i,e){try{return i[e]}catch{}};gl.exports=r0?qt:function(i){var e,r,t;return i===void 0?"Undefined":i===null?"Null":typeof(r=o0(e=n0(i),a0))=="string"?r:s0?qt(e):(t=qt(e))==="Object"&&t0(e.callee)?"Arguments":t}});var xl=d((oE,bl)=>{"use strict";var u0=D(),l0=_(),dl=L(),h0=pa(),c0=Pe(),f0=pt(),pl=function(){},yl=c0("Reflect","construct"),ya=/^\s*(?:class|function)\b/,v0=u0(ya.exec),g0=!ya.test(pl),_r=function(e){if(!dl(e))return!1;try{return yl(pl,[],e),!0}catch{return!1}},ml=function(e){if(!dl(e))return!1;switch(h0(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return g0||!!v0(ya,f0(e))}catch{return!0}};ml.sham=!0;bl.exports=!yl||l0(function(){var i;return _r(_r.call)||!_r(Object)||!_r(function(){i=!0})||i})?ml:_r});var Ol=d((uE,Tl)=>{"use strict";var d0=xl(),p0=Sr(),y0=TypeError;Tl.exports=function(i){if(d0(i))return i;throw new y0(p0(i)+" is not a constructor")}});var ma=d((lE,El)=>{"use strict";var Sl=J(),m0=Ol(),b0=Tr(),x0=z(),T0=x0("species");El.exports=function(i,e){var r=Sl(i).constructor,t;return r===void 0||b0(t=Sl(r)[T0])?e:m0(t)}});var ba=d((hE,Al)=>{"use strict";var O0=xr(),ql=Function.prototype,wl=ql.apply,Cl=ql.call;Al.exports=typeof Reflect=="object"&&Reflect.apply||(O0?Cl.bind(wl):function(){return Cl.apply(wl,arguments)})});var Dr=d((cE,Pl)=>{"use strict";var S0=xe(),E0=D();Pl.exports=function(i){if(S0(i)==="Function")return E0(i)}});var At=d((fE,Nl)=>{"use strict";var Rl=Dr(),w0=Te(),C0=xr(),q0=Rl(Rl.bind);Nl.exports=function(i,e){return w0(i),e===void 0?i:C0?q0(i,e):function(){return i.apply(e,arguments)}}});var xa=d((vE,Il)=>{"use strict";var A0=Pe();Il.exports=A0("document","documentElement")});var Vl=d((gE,Ml)=>{"use strict";var P0=D();Ml.exports=P0([].slice)});var Dl=d((dE,_l)=>{"use strict";var R0=TypeError;_l.exports=function(i,e){if(i{"use strict";var Ll=Ke();kl.exports=/ipad|iphone|ipod/i.test(Ll)&&/applewebkit/i.test(Ll)});var Ra=d((yE,Yl)=>{"use strict";var ne=M(),N0=ba(),I0=At(),Bl=L(),M0=he(),Hl=_(),jl=xa(),V0=Vl(),Ul=wr(),_0=Dl(),D0=Ta(),L0=Mr(),qa=ne.setImmediate,Aa=ne.clearImmediate,k0=ne.process,Oa=ne.Dispatch,B0=ne.Function,Fl=ne.MessageChannel,j0=ne.String,Sa=0,Lr={},zl="onreadystatechange",kr,Ue,Ea,wa;Hl(function(){kr=ne.location});var Pa=function(i){if(M0(Lr,i)){var e=Lr[i];delete Lr[i],e()}},Ca=function(i){return function(){Pa(i)}},$l=function(i){Pa(i.data)},Gl=function(i){ne.postMessage(j0(i),kr.protocol+"//"+kr.host)};(!qa||!Aa)&&(qa=function(e){_0(arguments.length,1);var r=Bl(e)?e:B0(e),t=V0(arguments,1);return Lr[++Sa]=function(){N0(r,void 0,t)},Ue(Sa),Sa},Aa=function(e){delete Lr[e]},L0?Ue=function(i){k0.nextTick(Ca(i))}:Oa&&Oa.now?Ue=function(i){Oa.now(Ca(i))}:Fl&&!D0?(Ea=new Fl,wa=Ea.port2,Ea.port1.onmessage=$l,Ue=I0(wa.postMessage,wa)):ne.addEventListener&&Bl(ne.postMessage)&&!ne.importScripts&&kr&&kr.protocol!=="file:"&&!Hl(Gl)?(Ue=Gl,ne.addEventListener("message",$l,!1)):zl in Ul("script")?Ue=function(i){jl.appendChild(Ul("script"))[zl]=function(){jl.removeChild(this),Pa(i)}}:Ue=function(i){setTimeout(Ca(i),0)});Yl.exports={set:qa,clear:Aa}});var Ql=d((mE,Wl)=>{"use strict";var Xl=M(),U0=ue(),F0=Object.getOwnPropertyDescriptor;Wl.exports=function(i){if(!U0)return Xl[i];var e=F0(Xl,i);return e&&e.value}});var Na=d((bE,Zl)=>{"use strict";var Kl=function(){this.head=null,this.tail=null};Kl.prototype={add:function(i){var e={item:i,next:null},r=this.tail;r?r.next=e:this.head=e,this.tail=e},get:function(){var i=this.head;if(i){var e=this.head=i.next;return e===null&&(this.tail=null),i.item}}};Zl.exports=Kl});var eh=d((xE,Jl)=>{"use strict";var z0=Ke();Jl.exports=/ipad|iphone|ipod/i.test(z0)&&typeof Pebble<"u"});var th=d((TE,rh)=>{"use strict";var $0=Ke();rh.exports=/web0s(?!.*chrome)/i.test($0)});var lh=d((OE,uh)=>{"use strict";var rr=M(),G0=Ql(),ih=At(),Ia=Ra().set,H0=Na(),Y0=Ta(),X0=eh(),W0=th(),Ma=Mr(),ah=rr.MutationObserver||rr.WebKitMutationObserver,nh=rr.document,sh=rr.process,Pt=rr.Promise,Da=G0("queueMicrotask"),er,Va,_a,Rt,oh;Da||(Br=new H0,jr=function(){var i,e;for(Ma&&(i=sh.domain)&&i.exit();e=Br.get();)try{e()}catch(r){throw Br.head&&er(),r}i&&i.enter()},!Y0&&!Ma&&!W0&&ah&&nh?(Va=!0,_a=nh.createTextNode(""),new ah(jr).observe(_a,{characterData:!0}),er=function(){_a.data=Va=!Va}):!X0&&Pt&&Pt.resolve?(Rt=Pt.resolve(void 0),Rt.constructor=Pt,oh=ih(Rt.then,Rt),er=function(){oh(jr)}):Ma?er=function(){sh.nextTick(jr)}:(Ia=ih(Ia,rr),er=function(){Ia(jr)}),Da=function(i){Br.head||er(),Br.add(i)});var Br,jr;uh.exports=Da});var ch=d((SE,hh)=>{"use strict";hh.exports=function(i,e){try{arguments.length===1?console.error(i):console.error(i,e)}catch{}}});var Nt=d((EE,fh)=>{"use strict";fh.exports=function(i){try{return{error:!1,value:i()}}catch(e){return{error:!0,value:e}}}});var tr=d((wE,vh)=>{"use strict";var Q0=M();vh.exports=Q0.Promise});var ir=d((CE,yh)=>{"use strict";var K0=M(),Ur=tr(),Z0=L(),J0=va(),em=pt(),rm=z(),gh=ga(),tm=ve(),La=ct(),dh=Ur&&Ur.prototype,im=rm("species"),ka=!1,ph=Z0(K0.PromiseRejectionEvent),am=J0("Promise",function(){var i=em(Ur),e=i!==String(Ur);if(!e&&La===66||tm&&!(dh.catch&&dh.finally))return!0;if(!La||La<51||!/native code/.test(i)){var r=new Ur(function(n){n(1)}),t=function(n){n(function(){},function(){})},a=r.constructor={};if(a[im]=t,ka=r.then(function(){})instanceof t,!ka)return!0}return!e&&(gh==="BROWSER"||gh==="DENO")&&!ph});yh.exports={CONSTRUCTOR:am,REJECTION_EVENT:ph,SUBCLASSING:ka}});var ar=d((qE,bh)=>{"use strict";var mh=Te(),nm=TypeError,sm=function(i){var e,r;this.promise=new i(function(t,a){if(e!==void 0||r!==void 0)throw new nm("Bad Promise constructor");e=t,r=a}),this.resolve=mh(e),this.reject=mh(r)};bh.exports.f=function(i){return new sm(i)}});var Bh=d(()=>{"use strict";var om=ee(),um=ve(),_t=Mr(),Ne=M(),lm=Yu(),ur=H(),xh=Re(),Th=da(),hm=Vr(),cm=ul(),fm=Te(),Vt=L(),vm=te(),gm=hl(),dm=ma(),Ch=Ra().set,za=lh(),pm=ch(),ym=Nt(),mm=Na(),qh=Pr(),Dt=tr(),$a=ir(),Ah=ar(),Lt="Promise",Ph=$a.CONSTRUCTOR,bm=$a.REJECTION_EVENT,xm=$a.SUBCLASSING,Ba=qh.getterFor(Lt),Tm=qh.set,nr=Dt&&Dt.prototype,Fe=Dt,It=nr,Rh=Ne.TypeError,ja=Ne.document,Ga=Ne.process,Ua=Ah.f,Om=Ua,Sm=!!(ja&&ja.createEvent&&Ne.dispatchEvent),Nh="unhandledrejection",Em="rejectionhandled",Oh=0,Ih=1,wm=2,Ha=1,Mh=2,Mt,Sh,Vh,Eh,_h=function(i){var e;return vm(i)&&Vt(e=i.then)?e:!1},Dh=function(i,e){var r=e.value,t=e.state===Ih,a=t?i.ok:i.fail,n=i.resolve,o=i.reject,s=i.domain,u,l,h;try{a?(t||(e.rejection===Mh&&qm(e),e.rejection=Ha),a===!0?u=r:(s&&s.enter(),u=a(r),s&&(s.exit(),h=!0)),u===i.promise?o(new Rh("Promise-chain cycle")):(l=_h(u))?ur(l,u,n,o):n(u)):o(r)}catch(c){s&&!h&&s.exit(),o(c)}},Lh=function(i,e){i.notified||(i.notified=!0,za(function(){for(var r=i.reactions,t;t=r.get();)Dh(t,i);i.notified=!1,e&&!i.rejection&&Cm(i)}))},kh=function(i,e,r){var t,a;Sm?(t=ja.createEvent("Event"),t.promise=e,t.reason=r,t.initEvent(i,!1,!0),Ne.dispatchEvent(t)):t={promise:e,reason:r},!bm&&(a=Ne["on"+i])?a(t):i===Nh&&pm("Unhandled promise rejection",r)},Cm=function(i){ur(Ch,Ne,function(){var e=i.facade,r=i.value,t=wh(i),a;if(t&&(a=ym(function(){_t?Ga.emit("unhandledRejection",r,e):kh(Nh,e,r)}),i.rejection=_t||wh(i)?Mh:Ha,a.error))throw a.value})},wh=function(i){return i.rejection!==Ha&&!i.parent},qm=function(i){ur(Ch,Ne,function(){var e=i.facade;_t?Ga.emit("rejectionHandled",e):kh(Em,e,i.value)})},sr=function(i,e,r){return function(t){i(e,t,r)}},or=function(i,e,r){i.done||(i.done=!0,r&&(i=r),i.value=e,i.state=wm,Lh(i,!0))},Fa=function(i,e,r){if(!i.done){i.done=!0,r&&(i=r);try{if(i.facade===e)throw new Rh("Promise can't be resolved itself");var t=_h(e);t?za(function(){var a={done:!1};try{ur(t,e,sr(Fa,a,i),sr(or,a,i))}catch(n){or(a,n,i)}}):(i.value=e,i.state=Ih,Lh(i,!1))}catch(a){or({done:!1},a,i)}}};if(Ph&&(Fe=function(e){gm(this,It),fm(e),ur(Mt,this);var r=Ba(this);try{e(sr(Fa,r),sr(or,r))}catch(t){or(r,t)}},It=Fe.prototype,Mt=function(e){Tm(this,{type:Lt,done:!1,notified:!1,parent:!1,reactions:new mm,rejection:!1,state:Oh,value:null})},Mt.prototype=xh(It,"then",function(e,r){var t=Ba(this),a=Ua(dm(this,Fe));return t.parent=!0,a.ok=Vt(e)?e:!0,a.fail=Vt(r)&&r,a.domain=_t?Ga.domain:void 0,t.state===Oh?t.reactions.add(a):za(function(){Dh(a,t)}),a.promise}),Sh=function(){var i=new Mt,e=Ba(i);this.promise=i,this.resolve=sr(Fa,e),this.reject=sr(or,e)},Ah.f=Ua=function(i){return i===Fe||i===Vh?new Sh(i):Om(i)},!um&&Vt(Dt)&&nr!==Object.prototype)){Eh=nr.then,xm||xh(nr,"then",function(e,r){var t=this;return new Fe(function(a,n){ur(Eh,t,a,n)}).then(e,r)},{unsafe:!0});try{delete nr.constructor}catch{}Th&&Th(nr,It)}om({global:!0,constructor:!0,wrap:!0,forced:Ph},{Promise:Fe});Vh=lm.Promise;hm(Fe,Lt,!1,!0);cm(Lt)});var Fr=d((RE,jh)=>{"use strict";jh.exports=Object.create?Object.create(null):{}});var Fh=d((NE,Uh)=>{"use strict";var Am=z(),Pm=Fr(),Rm=Am("iterator"),Nm=Array.prototype;Uh.exports=function(i){return i!==void 0&&(Pm.Array===i||Nm[Rm]===i)}});var Ya=d((IE,Gh)=>{"use strict";var Im=xe(),Mm=Tr(),zh=ke(),Vm=z(),$h=Vm("iterator"),_m=Array.prototype;Gh.exports=function(i){if(!Mm(i))return zh(i,$h)||zh(i,"@@iterator")||(Im(i)==="Arguments"?_m[$h]:void 0)}});var Yh=d((ME,Hh)=>{"use strict";var Dm=H(),Lm=L(),km=J(),Bm=Sr(),jm=Ya(),Um=TypeError;Hh.exports=function(i,e){var r=arguments.length<2?jm(i):e;if(Lm(r))return km(Dm(r,i));throw new Um(Bm(i)+" is not iterable")}});var Qh=d((VE,Wh)=>{"use strict";var Fm=H(),Xh=J(),zm=ke();Wh.exports=function(i,e,r){var t,a;Xh(i);try{if(t=zm(i,"return"),!t){if(e==="throw")throw r;return r}t=Fm(t,i)}catch(n){a=!0,t=n}if(e==="throw")throw r;if(a)throw t;return Xh(t),r}});var Xa=d((_E,ec)=>{"use strict";var $m=At(),Gm=H(),Hm=J(),Ym=Sr(),Xm=Fh(),Wm=St(),Kh=Or(),Qm=Yh(),Km=Ya(),Zh=Qh(),Zm=TypeError,kt=function(i,e){this.stopped=i,this.result=e},Jh=kt.prototype;ec.exports=function(i,e,r){var t=r&&r.that,a=!!(r&&r.AS_ENTRIES),n=!!(r&&r.IS_RECORD),o=!!(r&&r.IS_ITERATOR),s=!!(r&&r.INTERRUPTED),u=$m(e,t),l,h,c,v,f,g,p,y=function(x){var T=l;return l=void 0,T&&Zh(T,"normal"),new kt(!0,x)},m=function(x){return a?(Hm(x),s?u(x[0],x[1],y):u(x[0],x[1])):s?u(x,y):u(x)};if(n)l=i.iterator;else if(o)l=i;else{if(h=Km(i),!h)throw new Zm(Ym(i)+" is not iterable");if(Xm(h)){for(c=0,v=Wm(i);v>c;c++)if(f=m(i[c]),f&&Kh(Jh,f))return f;return new kt(!1)}l=Qm(i,h)}for(g=n?i.next:l.next;!(p=Gm(g,l)).done;){var O=p.value;try{f=m(O)}catch(x){if(l)Zh(l,"throw",x);else throw x}if(typeof f=="object"&&f&&Kh(Jh,f))return f}return new kt(!1)}});var nc=d((DE,ac)=>{"use strict";var Jm=z(),tc=Jm("iterator"),ic=!1;try{rc=0,Wa={next:function(){return{done:!!rc++}},return:function(){ic=!0}},Wa[tc]=function(){return this},Array.from(Wa,function(){throw 2})}catch{}var rc,Wa;ac.exports=function(i,e){try{if(!e&&!ic)return!1}catch{return!1}var r=!1;try{var t={};t[tc]=function(){return{next:function(){return{done:r=!0}}}},i(t)}catch{}return r}});var Qa=d((LE,sc)=>{"use strict";var eb=tr(),rb=nc(),tb=ir().CONSTRUCTOR;sc.exports=tb||!rb(function(i){eb.all(i).then(void 0,function(){})})});var oc=d(()=>{"use strict";var ib=ee(),ab=H(),nb=Te(),sb=ar(),ob=Nt(),ub=Xa(),lb=Qa();ib({target:"Promise",stat:!0,forced:lb},{all:function(e){var r=this,t=sb.f(r),a=t.resolve,n=t.reject,o=ob(function(){var s=nb(r.resolve),u=[],l=0,h=1;ub(e,function(c){var v=l++,f=!1;h++,ab(s,r,c).then(function(g){f||(f=!0,u[v]=g,--h||a(u))},n)}),--h||a(u)});return o.error&&n(o.value),t.promise}})});var lc=d(()=>{"use strict";var hb=ee(),cb=ve(),fb=ir().CONSTRUCTOR,Za=tr(),vb=Pe(),gb=L(),db=Re(),uc=Za&&Za.prototype;hb({target:"Promise",proto:!0,forced:fb,real:!0},{catch:function(i){return this.then(void 0,i)}});!cb&&gb(Za)&&(Ka=vb("Promise").prototype.catch,uc.catch!==Ka&&db(uc,"catch",Ka,{unsafe:!0}));var Ka});var hc=d(()=>{"use strict";var pb=ee(),yb=H(),mb=Te(),bb=ar(),xb=Nt(),Tb=Xa(),Ob=Qa();pb({target:"Promise",stat:!0,forced:Ob},{race:function(e){var r=this,t=bb.f(r),a=t.reject,n=xb(function(){var o=mb(r.resolve);Tb(e,function(s){yb(o,r,s).then(t.resolve,a)})});return n.error&&a(n.value),t.promise}})});var cc=d(()=>{"use strict";var Sb=ee(),Eb=ar(),wb=ir().CONSTRUCTOR;Sb({target:"Promise",stat:!0,forced:wb},{reject:function(e){var r=Eb.f(this),t=r.reject;return t(e),r.promise}})});var vc=d((HE,fc)=>{"use strict";var Cb=J(),qb=te(),Ab=ar();fc.exports=function(i,e){if(Cb(i),qb(e)&&e.constructor===i)return e;var r=Ab.f(i),t=r.resolve;return t(e),r.promise}});var pc=d(()=>{"use strict";var Pb=ee(),Rb=Pe(),gc=ve(),Nb=tr(),dc=ir().CONSTRUCTOR,Ib=vc(),Mb=Rb("Promise"),Vb=gc&&!dc;Pb({target:"Promise",stat:!0,forced:gc||dc},{resolve:function(e){return Ib(Vb&&this===Mb?Nb:this,e)}})});var yc=d(()=>{"use strict";Bh();oc();lc();hc();cc();pc()});var de=d((ZE,bc)=>{"use strict";var _b=pa(),Db=String;bc.exports=function(i){if(_b(i)==="Symbol")throw new TypeError("Cannot convert a Symbol value to a string");return Db(i)}});var Ja=d((JE,xc)=>{"use strict";var Lb=J();xc.exports=function(){var i=Lb(this),e="";return i.hasIndices&&(e+="d"),i.global&&(e+="g"),i.ignoreCase&&(e+="i"),i.multiline&&(e+="m"),i.dotAll&&(e+="s"),i.unicode&&(e+="u"),i.unicodeSets&&(e+="v"),i.sticky&&(e+="y"),e}});var an=d((ew,Tc)=>{"use strict";var en=_(),kb=M(),rn=kb.RegExp,tn=en(function(){var i=rn("a","y");return i.lastIndex=2,i.exec("abcd")!==null}),Bb=tn||en(function(){return!rn("a","y").sticky}),jb=tn||en(function(){var i=rn("^r","gy");return i.lastIndex=2,i.exec("str")!==null});Tc.exports={BROKEN_CARET:jb,MISSED_STICKY:Bb,UNSUPPORTED_Y:tn}});var Sc=d((rw,Oc)=>{"use strict";var Ub=fa(),Fb=Et();Oc.exports=Object.keys||function(e){return Ub(e,Fb)}});var wc=d(Ec=>{"use strict";var zb=ue(),$b=Qi(),Gb=Oe(),Hb=J(),Yb=Qe(),Xb=Sc();Ec.f=zb&&!$b?Object.defineProperties:function(e,r){Hb(e);for(var t=Yb(r),a=Xb(r),n=a.length,o=0,s;n>o;)Gb.f(e,s=a[o++],t[s]);return e}});var zr=d((iw,Ic)=>{"use strict";var Wb=J(),Qb=wc(),Cc=Et(),Kb=mt(),Zb=xa(),Jb=wr(),ex=yt(),qc=">",Ac="<",sn="prototype",on="script",Rc=ex("IE_PROTO"),nn=function(){},Nc=function(i){return Ac+on+qc+i+Ac+"/"+on+qc},Pc=function(i){i.write(Nc("")),i.close();var e=i.parentWindow.Object;return i=null,e},rx=function(){var i=Jb("iframe"),e="java"+on+":",r;return i.style.display="none",Zb.appendChild(i),i.src=String(e),r=i.contentWindow.document,r.open(),r.write(Nc("document.F=Object")),r.close(),r.F},Bt,jt=function(){try{Bt=new ActiveXObject("htmlfile")}catch{}jt=typeof document<"u"?document.domain&&Bt?Pc(Bt):rx():Pc(Bt);for(var i=Cc.length;i--;)delete jt[sn][Cc[i]];return jt()};Kb[Rc]=!0;Ic.exports=Object.create||function(e,r){var t;return e!==null?(nn[sn]=Wb(e),t=new nn,nn[sn]=null,t[Rc]=e):t=jt(),r===void 0?t:Qb.f(t,r)}});var Vc=d((aw,Mc)=>{"use strict";var tx=_(),ix=M(),ax=ix.RegExp;Mc.exports=tx(function(){var i=ax(".","s");return!(i.dotAll&&i.test(` +`)&&i.flags==="s")})});var Dc=d((nw,_c)=>{"use strict";var nx=_(),sx=M(),ox=sx.RegExp;_c.exports=nx(function(){var i=ox("(?b)","g");return i.exec("b").groups.a!=="b"||"b".replace(i,"$c")!=="bc"})});var zt=d((sw,jc)=>{"use strict";var lr=H(),Ft=D(),ux=de(),lx=Ja(),hx=an(),cx=gt(),fx=zr(),vx=Pr().get,gx=Vc(),dx=Dc(),px=cx("native-string-replace",String.prototype.replace),Ut=RegExp.prototype.exec,un=Ut,yx=Ft("".charAt),mx=Ft("".indexOf),bx=Ft("".replace),Lc=Ft("".slice),ln=(function(){var i=/a/,e=/b*/g;return lr(Ut,i,"a"),lr(Ut,e,"a"),i.lastIndex!==0||e.lastIndex!==0})(),Bc=hx.BROKEN_CARET,hn=/()??/.exec("")[1]!==void 0,xx=ln||hn||Bc||gx||dx,kc=function(i,e){for(var r=i.groups=fx(null),t=0;t0&&yx(a,r.lastIndex-1);r.lastIndex>0&&(!r.multiline||r.multiline&&p!==` +`&&p!=="\r"&&p!=="\u2028"&&p!=="\u2029")&&(v="(?: (?:"+v+"))",g=" "+g,f++),s=new RegExp("^(?:"+v+")",c)}hn&&(s=new RegExp("^"+v+"$(?!\\s)",c)),ln&&(u=r.lastIndex);var y=lr(Ut,h?s:r,g);return h?y?(y.input=a,y[0]=Lc(y[0],f),y.index=r.lastIndex,r.lastIndex+=y[0].length):r.lastIndex=0:ln&&y&&(r.lastIndex=r.global?y.index+y[0].length:u),hn&&y&&y.length>1&&lr(px,y[0],s,function(){for(var m=1;m{"use strict";var Tx=ee(),Uc=zt();Tx({target:"RegExp",proto:!0,forced:/./.exec!==Uc},{exec:Uc})});var $t=d((lw,Yc)=>{"use strict";Fc();var zc=H(),$c=Re(),Ox=zt(),Gc=_(),Hc=z(),Sx=Je(),Ex=Hc("species"),cn=RegExp.prototype;Yc.exports=function(i,e,r,t){var a=Hc(i),n=!Gc(function(){var l={};return l[a]=function(){return 7},""[i](l)!==7}),o=n&&!Gc(function(){var l=!1,h=/a/;if(i==="split"){var c={};c[Ex]=function(){return h},h={constructor:c,flags:""},h[a]=/./[a]}return h.exec=function(){return l=!0,null},h[a](""),!l});if(!n||!o||r){var s=/./[a],u=e(a,""[i],function(l,h,c,v,f){var g=h.exec;return g===Ox||g===cn.exec?n&&!f?{done:!0,value:zc(s,h,c,v)}:{done:!0,value:zc(l,c,h,v)}:{done:!1}});$c(String.prototype,i,u[0]),$c(cn,a,u[1])}t&&Sx(cn[a],"sham",!0)}});var Kc=d((hw,Qc)=>{"use strict";var fn=D(),wx=Rr(),Cx=de(),qx=le(),Ax=fn("".charAt),Xc=fn("".charCodeAt),Px=fn("".slice),Wc=function(i){return function(e,r){var t=Cx(qx(e)),a=wx(r),n=t.length,o,s;return a<0||a>=n?i?"":void 0:(o=Xc(t,a),o<55296||o>56319||a+1===n||(s=Xc(t,a+1))<56320||s>57343?i?Ax(t,a):o:i?Px(t,a,a+2):(o-55296<<10)+(s-56320)+65536)}};Qc.exports={codeAt:Wc(!1),charAt:Wc(!0)}});var Gt=d((cw,Zc)=>{"use strict";var Rx=Kc().charAt;Zc.exports=function(i,e,r){return e+(r&&Rx(i,e).length||1)}});var rf=d((fw,ef)=>{"use strict";var Nx=M(),Ix=_(),Jc=Nx.RegExp,Mx=!Ix(function(){var i=!0;try{Jc(".","d")}catch{i=!1}var e={},r="",t=i?"dgimsy":"gimsy",a=function(u,l){Object.defineProperty(e,u,{get:function(){return r+=l,!0}})},n={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};i&&(n.hasIndices="d");for(var o in n)a(o,n[o]);var s=Object.getOwnPropertyDescriptor(Jc.prototype,"flags").get.call(e);return s!==t||r!==t});ef.exports={correct:Mx}});var $r=d((vw,af)=>{"use strict";var Vx=H(),_x=he(),Dx=Or(),tf=rf(),Lx=Ja(),kx=RegExp.prototype;af.exports=tf.correct?function(i){return i.flags}:function(i){return!tf.correct&&Dx(kx,i)&&!_x(i,"flags")?Vx(Lx,i):i.flags}});var Ht=d((gw,sf)=>{"use strict";var nf=H(),Bx=J(),jx=L(),Ux=xe(),Fx=zt(),zx=TypeError;sf.exports=function(i,e){var r=i.exec;if(jx(r)){var t=nf(r,i,e);return t!==null&&Bx(t),t}if(Ux(i)==="RegExp")return nf(Fx,i,e);throw new zx("RegExp#exec called on incompatible receiver")}});var uf=d(()=>{"use strict";var $x=H(),Gx=D(),Hx=$t(),Yx=J(),Xx=te(),Wx=je(),Yt=de(),Qx=le(),Kx=ke(),Zx=Gt(),Jx=$r(),of=Ht(),vn=Gx("".indexOf);Hx("match",function(i,e,r){return[function(a){var n=Qx(this),o=Xx(a)?Kx(a,i):void 0;if(o)return $x(o,a,n);var s=Yt(n);return new RegExp(a)[i](s)},function(t){var a=Yx(this),n=Yt(t),o=r(e,a,n);if(o.done)return o.value;var s=Yt(Jx(a));if(!~vn(s,"g"))return of(a,n);var u=!!~vn(s,"u")||!!~vn(s,"v");a.lastIndex=0;for(var l=[],h=0,c;(c=of(a,n))!==null;){var v=Yt(c[0]);l[h]=v,v===""&&(a.lastIndex=Zx(n,Wx(a.lastIndex),u)),h++}return h===0?null:l}]})});var hf=d((yw,lf)=>{"use strict";var pn=D(),e1=Er(),r1=Math.floor,gn=pn("".charAt),t1=pn("".replace),dn=pn("".slice),i1=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a1=/\$([$&'`]|\d{1,2})/g;lf.exports=function(i,e,r,t,a,n){var o=r+i.length,s=t.length,u=a1;return a!==void 0&&(a=e1(a),u=i1),t1(n,u,function(l,h){var c;switch(gn(h,0)){case"$":return"$";case"&":return i;case"`":return dn(e,0,r);case"'":return dn(e,o);case"<":c=a[dn(h,1,-1)];break;default:var v=+h;if(v===0)return l;if(v>s){var f=r1(v/10);return f===0?l:f<=s?t[f-1]===void 0?gn(h,1):t[f-1]+gn(h,1):l}c=t[v-1]}return c===void 0?"":c})}});var gf=d(()=>{"use strict";var n1=ba(),cf=H(),Xt=D(),s1=$t(),o1=_(),u1=J(),l1=L(),h1=te(),c1=Rr(),f1=je(),ze=de(),v1=le(),g1=Gt(),d1=ke(),p1=hf(),y1=$r(),m1=Ht(),b1=z(),mn=b1("replace"),x1=Math.max,T1=Math.min,O1=Xt([].concat),yn=Xt([].push),hr=Xt("".indexOf),ff=Xt("".slice),S1=function(i){return i===void 0?i:String(i)},E1=(function(){return"a".replace(/./,"$0")==="$0"})(),vf=(function(){return/./[mn]?/./[mn]("a","$0")==="":!1})(),w1=!o1(function(){var i=/./;return i.exec=function(){var e=[];return e.groups={a:"7"},e},"".replace(i,"$")!=="7"});s1("replace",function(i,e,r){var t=vf?"$":"$0";return[function(n,o){var s=v1(this),u=h1(n)?d1(n,mn):void 0;return u?cf(u,n,s,o):cf(e,ze(s),n,o)},function(a,n){var o=u1(this),s=ze(a),u=l1(n);u||(n=ze(n));var l=ze(y1(o));if(typeof n=="string"&&!~hr(n,t)&&!~hr(n,"$<")&&!~hr(l,"y")){var h=r(e,o,s,n);if(h.done)return h.value}var c=!!~hr(l,"g"),v;c&&(v=!!~hr(l,"u")||!!~hr(l,"v"),o.lastIndex=0);for(var f=[],g;g=m1(o,s),!(g===null||(yn(f,g),!c));){var p=ze(g[0]);p===""&&(o.lastIndex=g1(s,f1(o.lastIndex),v))}for(var y="",m=0,O=0;O=m&&(y+=ff(s,m,T)+C,m=T+x.length)}return y+ff(s,m)}]},!w1||!E1||vf)});var pf=d((xw,df)=>{"use strict";var C1=te(),q1=xe(),A1=z(),P1=A1("match");df.exports=function(i){var e;return C1(i)&&((e=i[P1])!==void 0?!!e:q1(i)==="RegExp")}});var Wt=d((Tw,yf)=>{"use strict";var R1=pf(),N1=TypeError;yf.exports=function(i){if(R1(i))throw new N1("The method doesn't accept regular expressions");return i}});var Qt=d((Ow,mf)=>{"use strict";var I1=z(),M1=I1("match");mf.exports=function(i){var e=/./;try{"/./"[i](e)}catch{try{return e[M1]=!1,"/./"[i](e)}catch{}}return!1}});var Tf=d(()=>{"use strict";var V1=ee(),_1=Dr(),D1=Cr().f,L1=je(),bf=de(),k1=Wt(),B1=le(),j1=Qt(),U1=ve(),F1=_1("".slice),z1=Math.min,xf=j1("startsWith"),$1=!U1&&!xf&&!!(function(){var i=D1(String.prototype,"startsWith");return i&&!i.writable})();V1({target:"String",proto:!0,forced:!$1&&!xf},{startsWith:function(e){var r=bf(B1(this));k1(e);var t=bf(e),a=L1(z1(arguments.length>1?arguments[1]:void 0,r.length));return F1(r,a,a+t.length)===t}})});var Sf=d((ww,Of)=>{"use strict";var G1=z(),H1=zr(),Y1=Oe().f,bn=G1("unscopables"),xn=Array.prototype;xn[bn]===void 0&&Y1(xn,bn,{configurable:!0,value:H1(null)});Of.exports=function(i){xn[bn][i]=!0}});var wf=d((Cw,Ef)=>{"use strict";var X1=_();Ef.exports=!X1(function(){function i(){}return i.prototype.constructor=null,Object.getPrototypeOf(new i)!==i.prototype})});var On=d((qw,qf)=>{"use strict";var W1=he(),Q1=L(),K1=Er(),Z1=yt(),J1=wf(),Cf=Z1("IE_PROTO"),Tn=Object,e2=Tn.prototype;qf.exports=J1?Tn.getPrototypeOf:function(i){var e=K1(i);if(W1(e,Cf))return e[Cf];var r=e.constructor;return Q1(r)&&e instanceof r?r.prototype:e instanceof Tn?e2:null}});var Cn=d((Aw,Rf)=>{"use strict";var r2=_(),t2=L(),i2=te(),a2=zr(),Af=On(),n2=Re(),s2=z(),o2=ve(),wn=s2("iterator"),Pf=!1,Se,Sn,En;[].keys&&(En=[].keys(),"next"in En?(Sn=Af(Af(En)),Sn!==Object.prototype&&(Se=Sn)):Pf=!0);var u2=!i2(Se)||r2(function(){var i={};return Se[wn].call(i)!==i});u2?Se={}:o2&&(Se=a2(Se));t2(Se[wn])||n2(Se,wn,function(){return this});Rf.exports={IteratorPrototype:Se,BUGGY_SAFARI_ITERATORS:Pf}});var If=d((Pw,Nf)=>{"use strict";var l2=Cn().IteratorPrototype,h2=zr(),c2=lt(),f2=Vr(),v2=Fr(),g2=function(){return this};Nf.exports=function(i,e,r,t){var a=e+" Iterator";return i.prototype=h2(l2,{next:c2(+!t,r)}),f2(i,a,!1,!0),v2[a]=g2,i}});var zf=d((Rw,Ff)=>{"use strict";var d2=ee(),p2=H(),Kt=ve(),jf=qr(),y2=L(),m2=If(),Mf=On(),Vf=da(),b2=Vr(),x2=Je(),qn=Re(),T2=z(),_f=Fr(),Uf=Cn(),O2=jf.PROPER,S2=jf.CONFIGURABLE,Df=Uf.IteratorPrototype,Zt=Uf.BUGGY_SAFARI_ITERATORS,Gr=T2("iterator"),Lf="keys",Hr="values",kf="entries",Bf=function(){return this};Ff.exports=function(i,e,r,t,a,n,o){m2(r,e,t);var s=function(m){if(m===a&&v)return v;if(!Zt&&m&&m in h)return h[m];switch(m){case Lf:return function(){return new r(this,m)};case Hr:return function(){return new r(this,m)};case kf:return function(){return new r(this,m)}}return function(){return new r(this)}},u=e+" Iterator",l=!1,h=i.prototype,c=h[Gr]||h["@@iterator"]||a&&h[a],v=!Zt&&c||s(a),f=e==="Array"&&h.entries||c,g,p,y;if(f&&(g=Mf(f.call(new i)),g!==Object.prototype&&g.next&&(!Kt&&Mf(g)!==Df&&(Vf?Vf(g,Df):y2(g[Gr])||qn(g,Gr,Bf)),b2(g,u,!0,!0),Kt&&(_f[u]=Bf))),O2&&a===Hr&&c&&c.name!==Hr&&(!Kt&&S2?x2(h,"name",Hr):(l=!0,v=function(){return p2(c,this)})),a)if(p={values:s(Hr),keys:n?v:s(Lf),entries:s(kf)},o)for(y in p)(Zt||l||!(y in h))&&qn(h,y,p[y]);else d2({target:e,proto:!0,forced:Zt||l},p);return(!Kt||o)&&h[Gr]!==v&&qn(h,Gr,v,{name:a}),_f[e]=v,p}});var Gf=d((Nw,$f)=>{"use strict";$f.exports=function(i,e){return{value:i,done:e}}});var Pn=d((Iw,Qf)=>{"use strict";var E2=Qe(),An=Sf(),Hf=Fr(),Xf=Pr(),w2=Oe().f,C2=zf(),Jt=Gf(),q2=ve(),A2=ue(),Wf="Array Iterator",P2=Xf.set,R2=Xf.getterFor(Wf);Qf.exports=C2(Array,"Array",function(i,e){P2(this,{type:Wf,target:E2(i),index:0,kind:e})},function(){var i=R2(this),e=i.target,r=i.index++;if(!e||r>=e.length)return i.target=null,Jt(void 0,!0);switch(i.kind){case"keys":return Jt(r,!1);case"values":return Jt(e[r],!1)}return Jt([r,e[r]],!1)},"values");var Yf=Hf.Arguments=Hf.Array;An("keys");An("values");An("entries");if(!q2&&A2&&Yf.name!=="values")try{w2(Yf,"name",{value:"values"})}catch{}});var Zf=d((Mw,Kf)=>{"use strict";Kf.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}});var rv=d((Vw,ev)=>{"use strict";var N2=wr(),Rn=N2("span").classList,Jf=Rn&&Rn.constructor&&Rn.constructor.prototype;ev.exports=Jf===Object.prototype?void 0:Jf});var sv=d(()=>{"use strict";var tv=M(),av=Zf(),I2=rv(),Yr=Pn(),iv=Je(),M2=Vr(),V2=z(),Nn=V2("iterator"),In=Yr.values,nv=function(i,e){if(i){if(i[Nn]!==In)try{iv(i,Nn,In)}catch{i[Nn]=In}if(M2(i,e,!0),av[e]){for(var r in Yr)if(i[r]!==Yr[r])try{iv(i,r,Yr[r])}catch{i[r]=Yr[r]}}}};for(ei in av)nv(tv[ei]&&tv[ei].prototype,ei);var ei;nv(I2,"DOMTokenList")});var vv=d(($w,fv)=>{"use strict";var _2=Te(),D2=Er(),L2=_i(),k2=St(),lv=TypeError,hv="Reduce of empty array with no initial value",cv=function(i){return function(e,r,t,a){var n=D2(e),o=L2(n),s=k2(n);if(_2(r),s===0&&t<2)throw new lv(hv);var u=i?s-1:0,l=i?-1:1;if(t<2)for(;;){if(u in o){a=o[u],u+=l;break}if(u+=l,i?u<0:s<=u)throw new lv(hv)}for(;i?u>=0:s>u;u+=l)u in o&&(a=r(a,o[u],u,n));return a}};fv.exports={left:cv(!1),right:cv(!0)}});var Mn=d((Gw,gv)=>{"use strict";var B2=_();gv.exports=function(i,e){var r=[][i];return!!r&&B2(function(){r.call(null,e||function(){return 1},1)})}});var pv=d(()=>{"use strict";var j2=ee(),U2=vv().left,F2=Mn(),dv=ct(),z2=Mr(),$2=!z2&&dv>79&&dv<83,G2=$2||!F2("reduce");j2({target:"Array",proto:!0,forced:G2},{reduce:function(e){var r=arguments.length;return U2(this,e,r,r>1?arguments[1]:void 0)}})});var bv=d(()=>{"use strict";var H2=ee(),Y2=Dr(),X2=Cr().f,W2=je(),yv=de(),Q2=Wt(),K2=le(),Z2=Qt(),J2=ve(),eT=Y2("".slice),rT=Math.min,mv=Z2("endsWith"),tT=!J2&&!mv&&!!(function(){var i=X2(String.prototype,"endsWith");return i&&!i.writable})();H2({target:"String",proto:!0,forced:!tT&&!mv},{endsWith:function(e){var r=yv(K2(this));Q2(e);var t=yv(e),a=arguments.length>1?arguments[1]:void 0,n=r.length,o=a===void 0?n:rT(W2(a),n);return eT(r,o-t.length,o)===t}})});var Ov=d(()=>{"use strict";var Vn=H(),kn=D(),iT=$t(),aT=J(),nT=te(),sT=le(),oT=ma(),uT=Gt(),lT=je(),_n=de(),hT=ke(),cT=$r(),xv=Ht(),fT=an(),vT=_(),cr=fT.UNSUPPORTED_Y,gT=4294967295,dT=Math.min,Dn=kn([].push),Ln=kn("".slice),ti=kn("".indexOf),pT=!vT(function(){var i=/(?:)/,e=i.exec;i.exec=function(){return e.apply(this,arguments)};var r="ab".split(i);return r.length!==2||r[0]!=="a"||r[1]!=="b"}),Tv="abbc".split(/(b)*/)[1]==="c"||"test".split(/(?:)/,-1).length!==4||"ab".split(/(?:ab)*/).length!==2||".".split(/(.?)(.?)/).length!==4||".".split(/()()/).length>1||"".split(/.?/).length;iT("split",function(i,e,r){var t="0".split(void 0,0).length?function(a,n){return a===void 0&&n===0?[]:Vn(e,this,a,n)}:e;return[function(n,o){var s=sT(this),u=nT(n)?hT(n,i):void 0;return u?Vn(u,n,s,o):Vn(t,_n(s),n,o)},function(a,n){var o=aT(this),s=_n(a);if(!Tv){var u=r(t,o,s,n,t!==e);if(u.done)return u.value}var l=oT(o,RegExp),h=_n(cT(o)),c=!!~ti(h,"u")||!!~ti(h,"v");cr?~ti(h,"g")||(h+="g"):~ti(h,"y")||(h+="y");var v=new l(cr?"^(?:"+o.source+")":o,h),f=n===void 0?gT:n>>>0;if(f===0)return[];if(s.length===0)return xv(v,s)===null?[s]:[];for(var g=0,p=0,y=[];p{"use strict";(function(){var i,e,r,t,a,n;typeof performance<"u"&&performance!==null&&performance.now?Xr.exports=function(){return performance.now()}:typeof process<"u"&&process!==null&&process.hrtime?(Xr.exports=function(){return(i()-a)/1e6},e=process.hrtime,i=function(){var o;return o=e(),o[0]*1e9+o[1]},t=i(),n=process.uptime()*1e9,a=t-n):Date.now?(Xr.exports=function(){return Date.now()-r},r=Date.now()):(Xr.exports=function(){return new Date().getTime()-r},r=new Date().getTime())}).call(Sv)});var Cv=d((Zw,ni)=>{"use strict";var yT=Ev(),Ee=typeof window>"u"?global:window,ii=["moz","webkit"],vr="AnimationFrame",gr=Ee["request"+vr],Wr=Ee["cancel"+vr]||Ee["cancelRequest"+vr];for(fr=0;!gr&&fr{"use strict";qv.exports=` +\v\f\r \xA0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u202F\u205F\u3000\u2028\u2029\uFEFF`});var Rv=d((eC,Pv)=>{"use strict";var mT=D(),bT=le(),xT=de(),Fn=jn(),Av=mT("".replace),TT=RegExp("^["+Fn+"]+"),OT=RegExp("(^|[^"+Fn+"])["+Fn+"]+$"),Un=function(i){return function(e){var r=xT(bT(e));return i&1&&(r=Av(r,TT,"")),i&2&&(r=Av(r,OT,"$1")),r}};Pv.exports={start:Un(1),end:Un(2),trim:Un(3)}});var Vv=d((rC,Mv)=>{"use strict";var ST=qr().PROPER,ET=_(),Nv=jn(),Iv="\u200B\x85\u180E";Mv.exports=function(i){return ET(function(){return!!Nv[i]()||Iv[i]()!==Iv||ST&&Nv[i].name!==i})}});var _v=d(()=>{"use strict";var wT=ee(),CT=Rv().trim,qT=Vv();wT({target:"String",proto:!0,forced:qT("trim")},{trim:function(){return CT(this)}})});var Lv=d((aC,Dv)=>{"use strict";Dv.exports=function(i){this.ok=!1,this.alpha=1,i.charAt(0)=="#"&&(i=i.substr(1,6)),i=i.replace(/ /g,""),i=i.toLowerCase();var e={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",rebeccapurple:"663399",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"};i=e[i]||i;for(var r=[{re:/^rgba\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3}),\s*((?:\d?\.)?\d)\)$/,example:["rgba(123, 234, 45, 0.8)","rgba(255,234,245,1.0)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3]),parseFloat(u[4])]}},{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(u){return[parseInt(u[1]),parseInt(u[2]),parseInt(u[3])]}},{re:/^([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,example:["#00ff00","336699"],process:function(u){return[parseInt(u[1],16),parseInt(u[2],16),parseInt(u[3],16)]}},{re:/^([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,example:["#fb0","f0f"],process:function(u){return[parseInt(u[1]+u[1],16),parseInt(u[2]+u[2],16),parseInt(u[3]+u[3],16)]}}],t=0;t3&&(this.alpha=s[3]),this.ok=!0}}this.r=this.r<0||isNaN(this.r)?0:this.r>255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.alpha=this.alpha<0?0:this.alpha>1||isNaN(this.alpha)?1:this.alpha,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toRGBA=function(){return"rgba("+this.r+", "+this.g+", "+this.b+", "+this.alpha+")"},this.toHex=function(){var u=this.r.toString(16),l=this.g.toString(16),h=this.b.toString(16);return u.length==1&&(u="0"+u),l.length==1&&(l="0"+l),h.length==1&&(h="0"+h),"#"+u+l+h},this.getHelpXML=function(){for(var u=new Array,l=0;l "+p.toRGB()+" -> "+p.toHex());g.appendChild(y),g.appendChild(m),f.appendChild(g)}catch{}return f}}});var Bv=d(()=>{"use strict";var AT=ee(),PT=Dr(),RT=ha().indexOf,NT=Mn(),zn=PT([].indexOf),kv=!!zn&&1/zn([1],1,-0)<0,IT=kv||!NT("indexOf");AT({target:"Array",proto:!0,forced:IT},{indexOf:function(e){var r=arguments.length>1?arguments[1]:void 0;return kv?zn(this,e,r)||0:RT(this,e,r)}})});var Uv=d(()=>{"use strict";var MT=ee(),VT=D(),_T=Wt(),DT=le(),jv=de(),LT=Qt(),kT=VT("".indexOf);MT({target:"String",proto:!0,forced:!LT("includes")},{includes:function(e){return!!~kT(jv(DT(this)),jv(_T(e)),arguments.length>1?arguments[1]:void 0)}})});var zv=d((lC,Fv)=>{"use strict";var BT=xe();Fv.exports=Array.isArray||function(e){return BT(e)==="Array"}});var Gv=d(()=>{"use strict";var jT=ee(),UT=D(),FT=zv(),zT=UT([].reverse),$v=[1,2];jT({target:"Array",proto:!0,forced:String($v)===String($v.reverse())},{reverse:function(){return FT(this)&&(this.length=this.length),zT(this)}})});var ag=d(()=>{"use strict";var XT=qr().PROPER,WT=Re(),QT=J(),rg=de(),KT=_(),ZT=$r(),Hn="toString",tg=RegExp.prototype,ig=tg[Hn],JT=KT(function(){return ig.call({source:"a",flags:"b"})!=="/a/b"}),eO=XT&&ig.name!==Hn;(JT||eO)&&WT(tg,Hn,function(){var e=QT(this),r=rg(e.source),t=rg(ZT(e));return"/"+r+"/"+t},{unsafe:!0})});var pC=Z(yc(),1);function mc(i,e,r,t,a,n,o){try{var s=i[n](o),u=s.value}catch(l){return void r(l)}s.done?e(u):Promise.resolve(u).then(t,a)}function be(i){return function(){var e=this,r=arguments;return new Promise(function(t,a){var n=i.apply(e,r);function o(u){mc(n,t,a,o,s,"next",u)}function s(u){mc(n,t,a,o,s,"throw",u)}o(void 0)})}}var mC=Z(uf(),1),bC=Z(gf(),1),xC=Z(Tf(),1),TC=Z(Pn(),1),OC=Z(sv(),1);function ov(i,e){if(mr(i)!="object"||!i)return i;var r=i[Symbol.toPrimitive];if(r!==void 0){var t=r.call(i,e||"default");if(mr(t)!="object")return t;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function uv(i){var e=ov(i,"string");return mr(e)=="symbol"?e:e+""}function ri(i,e,r){return(e=uv(e))in i?Object.defineProperty(i,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):i[e]=r,i}var EC=Z(pv(),1),wC=Z(bv(),1),CC=Z(Ov(),1),hi=Z(Cv(),1),qC=Z(_v(),1),ci=Z(Lv(),1),AC=Z(Bv(),1),PC=Z(Uv(),1),RC=Z(Gv(),1);var Zv=function(i,e){return(Zv=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,t){r.__proto__=t}||function(r,t){for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(r[a]=t[a])})(i,e)};function Jv(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function r(){this.constructor=i}Zv(i,e),i.prototype=e===null?Object.create(e):(r.prototype=e.prototype,new r)}function $T(i){var e="";Array.isArray(i)||(i=[i]);for(var r=0;ri.phi1&&(i.phi2-=2*Me),i.sweepFlag===1&&i.phi2t)return[];if(t===0)return[[i*r/(i*i+e*e),e*r/(i*i+e*e)]];var a=Math.sqrt(t);return[[(i*r+e*a)/(i*i+e*e),(e*r-i*a)/(i*i+e*e)],[(i*r-e*a)/(i*i+e*e),(e*r+i*a)/(i*i+e*e)]]}var j,we=Math.PI/180;function Yv(i,e,r){return(1-r)*i+r*e}function Xv(i,e,r,t){return i+Math.cos(t/180*Me)*e+Math.sin(t/180*Me)*r}function Wv(i,e,r,t){var a=1e-6,n=e-i,o=r-e,s=3*n+3*(t-r)-6*o,u=6*(o-n),l=3*n;return Math.abs(s)S&&(f.sweepFlag=+!f.sweepFlag),f}))}function o(){return function(s){var u={};for(var l in s)u[l]=s[l];return u}}i.ROUND=function(s){function u(l){return Math.round(l*s)/s}return s===void 0&&(s=1e13),ye(s),function(l){return l.x1!==void 0&&(l.x1=u(l.x1)),l.y1!==void 0&&(l.y1=u(l.y1)),l.x2!==void 0&&(l.x2=u(l.x2)),l.y2!==void 0&&(l.y2=u(l.y2)),l.x!==void 0&&(l.x=u(l.x)),l.y!==void 0&&(l.y=u(l.y)),l.rX!==void 0&&(l.rX=u(l.rX)),l.rY!==void 0&&(l.rY=u(l.rY)),l}},i.TO_ABS=e,i.TO_REL=function(){return a((function(s,u,l){return s.relative||(s.x1!==void 0&&(s.x1-=u),s.y1!==void 0&&(s.y1-=l),s.x2!==void 0&&(s.x2-=u),s.y2!==void 0&&(s.y2-=l),s.x!==void 0&&(s.x-=u),s.y!==void 0&&(s.y-=l),s.relative=!0),s}))},i.NORMALIZE_HVZ=function(s,u,l){return s===void 0&&(s=!0),u===void 0&&(u=!0),l===void 0&&(l=!0),a((function(h,c,v,f,g){if(isNaN(f)&&!(h.type&b.MOVE_TO))throw new Error("path must start with moveto");return u&&h.type&b.HORIZ_LINE_TO&&(h.type=b.LINE_TO,h.y=h.relative?0:v),l&&h.type&b.VERT_LINE_TO&&(h.type=b.LINE_TO,h.x=h.relative?0:c),s&&h.type&b.CLOSE_PATH&&(h.type=b.LINE_TO,h.x=h.relative?f-c:f,h.y=h.relative?g-v:g),h.type&b.ARC&&(h.rX===0||h.rY===0)&&(h.type=b.LINE_TO,delete h.rX,delete h.rY,delete h.xRot,delete h.lArcFlag,delete h.sweepFlag),h}))},i.NORMALIZE_ST=r,i.QT_TO_C=t,i.INFO=a,i.SANITIZE=function(s){s===void 0&&(s=0),ye(s);var u=NaN,l=NaN,h=NaN,c=NaN;return a((function(v,f,g,p,y){var m=Math.abs,O=!1,x=0,T=0;if(v.type&b.SMOOTH_CURVE_TO&&(x=isNaN(u)?0:f-u,T=isNaN(l)?0:g-l),v.type&(b.CURVE_TO|b.SMOOTH_CURVE_TO)?(u=v.relative?f+v.x2:v.x2,l=v.relative?g+v.y2:v.y2):(u=NaN,l=NaN),v.type&b.SMOOTH_QUAD_TO?(h=isNaN(h)?f:2*f-h,c=isNaN(c)?g:2*g-c):v.type&b.QUAD_TO?(h=v.relative?f+v.x1:v.x1,c=v.relative?g+v.y1:v.y2):(h=NaN,c=NaN),v.type&b.LINE_COMMANDS||v.type&b.ARC&&(v.rX===0||v.rY===0||!v.lArcFlag)||v.type&b.CURVE_TO||v.type&b.SMOOTH_CURVE_TO||v.type&b.QUAD_TO||v.type&b.SMOOTH_QUAD_TO){var E=v.x===void 0?0:v.relative?v.x:v.x-f,C=v.y===void 0?0:v.relative?v.y:v.y-g;x=isNaN(h)?v.x1===void 0?x:v.relative?v.x:v.x1-f:h-f,T=isNaN(c)?v.y1===void 0?T:v.relative?v.y:v.y1-g:c-g;var S=v.x2===void 0?0:v.relative?v.x:v.x2-f,A=v.y2===void 0?0:v.relative?v.y:v.y2-g;m(E)<=s&&m(C)<=s&&m(x)<=s&&m(T)<=s&&m(S)<=s&&m(A)<=s&&(O=!0)}return v.type&b.CLOSE_PATH&&m(f-p)<=s&&m(g-y)<=s&&(O=!0),O?[]:v}))},i.MATRIX=n,i.ROTATE=function(s,u,l){u===void 0&&(u=0),l===void 0&&(l=0),ye(s,u,l);var h=Math.sin(s),c=Math.cos(s);return n(c,h,-h,c,u-u*c+l*h,l-u*h-l*c)},i.TRANSLATE=function(s,u){return u===void 0&&(u=0),ye(s,u),n(1,0,0,1,s,u)},i.SCALE=function(s,u){return u===void 0&&(u=s),ye(s,u),n(s,0,0,u,0,0)},i.SKEW_X=function(s){return ye(s),n(1,0,Math.atan(s),1,0,0)},i.SKEW_Y=function(s){return ye(s),n(1,Math.atan(s),0,1,0,0)},i.X_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),ye(s),n(-1,0,0,1,s,0)},i.Y_AXIS_SYMMETRY=function(s){return s===void 0&&(s=0),ye(s),n(1,0,0,-1,0,s)},i.A_TO_C=function(){return a((function(s,u,l){return b.ARC===s.type?(function(h,c,v){var f,g,p,y;h.cX||$n(h,c,v);for(var m=Math.min(h.phi1,h.phi2),O=Math.max(h.phi1,h.phi2)-m,x=Math.ceil(O/90),T=new Array(x),E=c,C=v,S=0;Sc.maxX&&(c.maxX=R),Rc.maxY&&(c.maxY=R),RI&&y(Qv(f,p.x1,p.x2,p.x,I));for(var T=0,E=Wv(g,p.y1,p.y2,p.y);TI&&m(Qv(g,p.y1,p.y2,p.y,I))}if(p.type&b.ARC){y(p.x),m(p.y),$n(p,f,g);for(var C=p.xRot/180*Math.PI,S=Math.cos(C)*p.rX,A=Math.sin(C)*p.rX,P=-Math.sin(C)*p.rY,V=Math.cos(C)*p.rY,k=p.phi1p.phi2?[p.phi2+360,p.phi1+360]:[p.phi2,p.phi1],N=k[0],X=k[1],W=function(R){var re=R[0],ce=R[1],me=180*Math.atan2(ce,re)/Math.PI;return meN&&IN&&Ih)throw new SyntaxError('Expected positive number, got "'+h+'" at index "'+o+'"')}else if((this.curArgs.length===3||this.curArgs.length===4)&&this.curNumber!=="0"&&this.curNumber!=="1")throw new SyntaxError('Expected a flag, got "'+this.curNumber+'" at index "'+o+'"')}this.curArgs.push(h),this.curArgs.length===YT[this.curCommandType]&&(b.HORIZ_LINE_TO===this.curCommandType?n({type:b.HORIZ_LINE_TO,relative:this.curCommandRelative,x:h}):b.VERT_LINE_TO===this.curCommandType?n({type:b.VERT_LINE_TO,relative:this.curCommandRelative,y:h}):this.curCommandType===b.MOVE_TO||this.curCommandType===b.LINE_TO||this.curCommandType===b.SMOOTH_QUAD_TO?(n({type:this.curCommandType,relative:this.curCommandRelative,x:this.curArgs[0],y:this.curArgs[1]}),b.MOVE_TO===this.curCommandType&&(this.curCommandType=b.LINE_TO)):this.curCommandType===b.CURVE_TO?n({type:b.CURVE_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x2:this.curArgs[2],y2:this.curArgs[3],x:this.curArgs[4],y:this.curArgs[5]}):this.curCommandType===b.SMOOTH_CURVE_TO?n({type:b.SMOOTH_CURVE_TO,relative:this.curCommandRelative,x2:this.curArgs[0],y2:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===b.QUAD_TO?n({type:b.QUAD_TO,relative:this.curCommandRelative,x1:this.curArgs[0],y1:this.curArgs[1],x:this.curArgs[2],y:this.curArgs[3]}):this.curCommandType===b.ARC&&n({type:b.ARC,relative:this.curCommandRelative,rX:this.curArgs[0],rY:this.curArgs[1],xRot:this.curArgs[2],lArcFlag:this.curArgs[3],sweepFlag:this.curArgs[4],x:this.curArgs[5],y:this.curArgs[6]})),this.curNumber="",this.curNumberHasExpDigits=!1,this.curNumberHasExp=!1,this.curNumberHasDecimal=!1,this.canParseCommandOrComma=!0}if(!GT(s))if(s===","&&this.canParseCommandOrComma)this.canParseCommandOrComma=!1;else if(s!=="+"&&s!=="-"&&s!==".")if(l)this.curNumber=s,this.curNumberHasDecimal=!1;else{if(this.curArgs.length!==0)throw new SyntaxError("Unterminated command at index "+o+".");if(!this.canParseCommandOrComma)throw new SyntaxError('Unexpected character "'+s+'" at index '+o+". Command cannot follow comma");if(this.canParseCommandOrComma=!1,s!=="z"&&s!=="Z")if(s==="h"||s==="H")this.curCommandType=b.HORIZ_LINE_TO,this.curCommandRelative=s==="h";else if(s==="v"||s==="V")this.curCommandType=b.VERT_LINE_TO,this.curCommandRelative=s==="v";else if(s==="m"||s==="M")this.curCommandType=b.MOVE_TO,this.curCommandRelative=s==="m";else if(s==="l"||s==="L")this.curCommandType=b.LINE_TO,this.curCommandRelative=s==="l";else if(s==="c"||s==="C")this.curCommandType=b.CURVE_TO,this.curCommandRelative=s==="c";else if(s==="s"||s==="S")this.curCommandType=b.SMOOTH_CURVE_TO,this.curCommandRelative=s==="s";else if(s==="q"||s==="Q")this.curCommandType=b.QUAD_TO,this.curCommandRelative=s==="q";else if(s==="t"||s==="T")this.curCommandType=b.SMOOTH_QUAD_TO,this.curCommandRelative=s==="t";else{if(s!=="a"&&s!=="A")throw new SyntaxError('Unexpected character "'+s+'" at index '+o+".");this.curCommandType=b.ARC,this.curCommandRelative=s==="a"}else t.push({type:b.CLOSE_PATH}),this.canParseCommandOrComma=!0,this.curCommandType=-1}else this.curNumber=s,this.curNumberHasDecimal=s==="."}else this.curNumber+=s,this.curNumberHasDecimal=!0;else this.curNumber+=s;else this.curNumber+=s,this.curNumberHasExp=!0;else this.curNumber+=s,this.curNumberHasExpDigits=this.curNumberHasExp}return t},e.prototype.transform=function(r){return Object.create(this,{parse:{value:function(t,a){a===void 0&&(a=[]);for(var n=0,o=Object.getPrototypeOf(this).parse.call(this,t);n>>E;if(o[x+3]=Ti,Ti!==0){var Oi=255/Ti;o[x]=(R*T>>>E)*Oi,o[x+1]=(re*T>>>E)*Oi,o[x+2]=(ce*T>>>E)*Oi}else o[x]=o[x+1]=o[x+2]=0;R-=Q,re-=Y,ce-=K,me-=I,Q-=y.r,Y-=y.g,K-=y.b,I-=y.a;var Ve=xi+n+1;Ve=O+(Ve>>E,ie>0?(ie=255/ie,o[ae]=(tt*T>>>E)*ie,o[ae+1]=(it*T>>>E)*ie,o[ae+2]=(at*T>>>E)*ie):o[ae]=o[ae+1]=o[ae+2]=0,tt-=Si,it-=Ei,at-=wi,nt-=Ci,Si-=y.r,Ei-=y.g,wi-=y.b,Ci-=y.a,ae=We+((ae=Ni+h)0&&arguments[0]!==void 0?arguments[0]:{},e={window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:i,createCanvas(r,t){return new OffscreenCanvas(r,t)},createImage(r){return be(function*(){var t=yield fetch(r),a=yield t.blob(),n=yield createImageBitmap(a);return n})()}};return(typeof DOMParser<"u"||typeof i>"u")&&Reflect.deleteProperty(e,"DOMParser"),e}function oO(i){var{DOMParser:e,canvas:r,fetch:t}=i;return{window:null,ignoreAnimation:!0,ignoreMouse:!0,DOMParser:e,fetch:t,createCanvas:r.createCanvas,createImage:r.loadImage}}var VC=Object.freeze({__proto__:null,offscreen:sO,node:oO});function yr(i){return i.replace(/(?!\u3000)\s+/gm," ")}function uO(i){return i.replace(/^[\n \t]+/,"")}function lO(i){return i.replace(/[\n \t]+$/,"")}function se(i){var e=(i||"").match(/-?(\d+(?:\.\d*(?:[eE][+-]?\d+)?)?|\.\d+)(?=\D|$)/gm)||[];return e.map(parseFloat)}var hO=/^[A-Z-]+$/;function cO(i){return hO.test(i)?i.toLowerCase():i}function og(i){var e=/url\(('([^']+)'|"([^"]+)"|([^'")]+))\)/.exec(i)||[];return e[2]||e[3]||e[4]}function fO(i){if(!i.startsWith("rgb"))return i;var e=3,r=i.replace(/\d+(\.\d+)?/g,(t,a)=>e--&&a?String(Math.round(parseFloat(t))):t);return r}var vO=/(\[[^\]]+\])/g,gO=/(#[^\s+>~.[:]+)/g,dO=/(\.[^\s+>~.[:]+)/g,pO=/(::[^\s+>~.[:]+|:first-line|:first-letter|:before|:after)/gi,yO=/(:[\w-]+\([^)]*\))/gi,mO=/(:[^\s+>~.[:]+)/g,bO=/([^\s+>~.[:]+)/g;function $e(i,e){var r=e.exec(i);return r?[i.replace(e," "),r.length]:[i,0]}function xO(i){var e=[0,0,0],r=i.replace(/:not\(([^)]*)\)/g," $1 ").replace(/{[\s\S]*/gm," "),t=0;return[r,t]=$e(r,vO),e[1]+=t,[r,t]=$e(r,gO),e[0]+=t,[r,t]=$e(r,dO),e[1]+=t,[r,t]=$e(r,pO),e[2]+=t,[r,t]=$e(r,yO),e[1]+=t,[r,t]=$e(r,mO),e[1]+=t,r=r.replace(/[*\s+>~]/g," ").replace(/[#.]/g," "),[r,t]=$e(r,bO),e[2]+=t,e.join("")}var dr=1e-8;function ug(i){return Math.sqrt(Math.pow(i[0],2)+Math.pow(i[1],2))}function Yn(i,e){return(i[0]*e[0]+i[1]*e[1])/(ug(i)*ug(e))}function lg(i,e){return(i[0]*e[1]{class i{constructor(r,t,a){this.document=r,this.name=t,this.value=a,this.isNormalizedColor=!1}static empty(r){return new i(r,"EMPTY","")}split(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:" ",{document:t,name:a}=this;return yr(this.getString()).trim().split(r).map(n=>new i(t,a,n))}hasValue(r){var{value:t}=this;return t!==null&&t!==""&&(r||t!==0)&&typeof t<"u"}isString(r){var{value:t}=this,a=typeof t=="string";return!a||!r?a:r.test(t)}isUrlDefinition(){return this.isString(/^url\(/)}isPixels(){if(!this.hasValue())return!1;var r=this.getString();switch(!0){case r.endsWith("px"):case/^[0-9]+$/.test(r):return!0;default:return!1}}setValue(r){return this.value=r,this}getValue(r){return typeof r>"u"||this.hasValue()?this.value:r}getNumber(r){if(!this.hasValue())return typeof r>"u"?0:parseFloat(r);var{value:t}=this,a=parseFloat(t);return this.isString(/%$/)&&(a/=100),a}getString(r){return typeof r>"u"||this.hasValue()?typeof this.value>"u"?"":String(this.value):String(r)}getColor(r){var t=this.getString(r);return this.isNormalizedColor||(this.isNormalizedColor=!0,t=fO(t),this.value=t),t}getDpi(){return 96}getRem(){return this.document.rootEmSize}getEm(){return this.document.emSize}getUnits(){return this.getString().replace(/[0-9.-]/g,"")}getPixels(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(!this.hasValue())return 0;var[a,n]=typeof r=="boolean"?[void 0,r]:[r],{viewPort:o}=this.document.screen;switch(!0){case this.isString(/vmin$/):return this.getNumber()/100*Math.min(o.computeSize("x"),o.computeSize("y"));case this.isString(/vmax$/):return this.getNumber()/100*Math.max(o.computeSize("x"),o.computeSize("y"));case this.isString(/vw$/):return this.getNumber()/100*o.computeSize("x");case this.isString(/vh$/):return this.getNumber()/100*o.computeSize("y");case this.isString(/rem$/):return this.getNumber()*this.getRem();case this.isString(/em$/):return this.getNumber()*this.getEm();case this.isString(/ex$/):return this.getNumber()*this.getEm()/2;case this.isString(/px$/):return this.getNumber();case this.isString(/pt$/):return this.getNumber()*this.getDpi()*(1/72);case this.isString(/pc$/):return this.getNumber()*15;case this.isString(/cm$/):return this.getNumber()*this.getDpi()/2.54;case this.isString(/mm$/):return this.getNumber()*this.getDpi()/25.4;case this.isString(/in$/):return this.getNumber()*this.getDpi();case(this.isString(/%$/)&&n):return this.getNumber()*this.getEm();case this.isString(/%$/):return this.getNumber()*o.computeSize(a);default:{var s=this.getNumber();return t&&s<1?s*o.computeSize(a):s}}}getMilliseconds(){return this.hasValue()?this.isString(/ms$/)?this.getNumber():this.getNumber()*1e3:0}getRadians(){if(!this.hasValue())return 0;switch(!0){case this.isString(/deg$/):return this.getNumber()*(Math.PI/180);case this.isString(/grad$/):return this.getNumber()*(Math.PI/200);case this.isString(/rad$/):return this.getNumber();default:return this.getNumber()*(Math.PI/180)}}getDefinition(){var r=this.getString(),t=/#([^)'"]+)/.exec(r);return t&&(t=t[1]),t||(t=r),this.document.definitions[t]}getFillStyleDefinition(r,t){var a=this.getDefinition();if(!a)return null;if(typeof a.createGradient=="function")return a.createGradient(this.document.ctx,r,t);if(typeof a.createPattern=="function"){if(a.getHrefAttribute().hasValue()){var n=a.getAttribute("patternTransform");a=a.getHrefAttribute().getDefinition(),n.hasValue()&&a.getAttribute("patternTransform",!0).setValue(n.value)}return a.createPattern(this.document.ctx,r,t)}return null}getTextBaseline(){return this.hasValue()?i.textBaselineMapping[this.getString()]:null}addOpacity(r){for(var t=this.getColor(),a=t.length,n=0,o=0;o1&&arguments[1]!==void 0?arguments[1]:0,[t=r,a=r]=se(e);return new i(t,a)}static parseScale(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,[t=r,a=t]=se(e);return new i(t,a)}static parsePath(e){for(var r=se(e),t=r.length,a=[],n=0;n0}runEvents(){if(this.working){var{screen:e,events:r,eventElements:t}=this,{style:a}=e.ctx.canvas;a&&(a.cursor=""),r.forEach((n,o)=>{for(var{run:s}=n,u=t[o];u;)s(u),u=u.parent}),this.events=[],this.eventElements=[]}}checkPath(e,r){if(!(!this.working||!r)){var{events:t,eventElements:a}=this;t.forEach((n,o)=>{var{x:s,y:u}=n;!a[o]&&r.isPointInPath&&r.isPointInPath(s,u)&&(a[o]=e)})}}checkBoundingBox(e,r){if(!(!this.working||!r)){var{events:t,eventElements:a}=this;t.forEach((n,o)=>{var{x:s,y:u}=n;!a[o]&&r.isPointInBox(s,u)&&(a[o]=e)})}}mapXY(e,r){for(var{window:t,ctx:a}=this.screen,n=new $(e,r),o=a.canvas;o;)n.x-=o.offsetLeft,n.y-=o.offsetTop,o=o.offsetParent;return t.scrollX&&(n.x+=t.scrollX),t.scrollY&&(n.y+=t.scrollY),n}onClick(e){var{x:r,y:t}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onclick",x:r,y:t,run(a){a.onClick&&a.onClick()}})}onMouseMove(e){var{x:r,y:t}=this.mapXY(e.clientX,e.clientY);this.events.push({type:"onmousemove",x:r,y:t,run(a){a.onMouseMove&&a.onMouseMove()}})}},yg=typeof window<"u"?window:null,mg=typeof fetch<"u"?fetch.bind(void 0):null,Eg=(()=>{class i{constructor(r){var{fetch:t=mg,window:a=yg}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.ctx=r,this.FRAMERATE=30,this.MAX_VIRTUAL_PIXELS=3e4,this.CLIENT_WIDTH=800,this.CLIENT_HEIGHT=600,this.viewPort=new Xn,this.mouse=new Wn(this),this.animations=[],this.waits=[],this.frameDuration=0,this.isReadyLock=!1,this.isFirstRender=!0,this.intervalId=null,this.window=a,this.fetch=t}wait(r){this.waits.push(r)}ready(){return this.readyPromise?this.readyPromise:Promise.resolve()}isReady(){if(this.isReadyLock)return!0;var r=this.waits.every(t=>t());return r&&(this.waits=[],this.resolveReady&&this.resolveReady()),this.isReadyLock=r,r}setDefaults(r){r.strokeStyle="rgba(0,0,0,0)",r.lineCap="butt",r.lineJoin="miter",r.miterLimit=4}setViewBox(r){var{document:t,ctx:a,aspectRatio:n,width:o,desiredWidth:s,height:u,desiredHeight:l,minX:h=0,minY:c=0,refX:v,refY:f,clip:g=!1,clipX:p=0,clipY:y=0}=r,m=yr(n).replace(/^defer\s/,""),[O,x]=m.split(" "),T=O||"xMidYMid",E=x||"meet",C=o/s,S=u/l,A=Math.min(C,S),P=Math.max(C,S),V=s,k=l;E==="meet"&&(V*=A,k*=A),E==="slice"&&(V*=P,k*=P);var N=new w(t,"refX",v),X=new w(t,"refY",f),W=N.hasValue()&&X.hasValue();if(W&&a.translate(-A*N.getPixels("x"),-A*X.getPixels("y")),g){var G=A*p,Q=A*y;a.beginPath(),a.moveTo(G,Q),a.lineTo(o,Q),a.lineTo(o,u),a.lineTo(G,u),a.closePath(),a.clip()}if(!W){var Y=E==="meet"&&A===S,K=E==="slice"&&P===S,I=E==="meet"&&A===C,R=E==="slice"&&P===C;T.startsWith("xMid")&&(Y||K)&&a.translate(o/2-V/2,0),T.endsWith("YMid")&&(I||R)&&a.translate(0,u/2-k/2),T.startsWith("xMax")&&(Y||K)&&a.translate(o-V,0),T.endsWith("YMax")&&(I||R)&&a.translate(0,u-k)}switch(!0){case T==="none":a.scale(C,S);break;case E==="meet":a.scale(A,A);break;case E==="slice":a.scale(P,P);break}a.translate(-h,-c)}start(r){var{enableRedraw:t=!1,ignoreMouse:a=!1,ignoreAnimation:n=!1,ignoreDimensions:o=!1,ignoreClear:s=!1,forceRedraw:u,scaleWidth:l,scaleHeight:h,offsetX:c,offsetY:v}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{FRAMERATE:f,mouse:g}=this,p=1e3/f;if(this.frameDuration=p,this.readyPromise=new Promise(T=>{this.resolveReady=T}),this.isReady()&&this.render(r,o,s,l,h,c,v),!!t){var y=Date.now(),m=y,O=0,x=()=>{y=Date.now(),O=y-m,O>=p&&(m=y-O%p,this.shouldUpdate(n,u)&&(this.render(r,o,s,l,h,c,v),g.runEvents())),this.intervalId=(0,hi.default)(x)};a||g.start(),this.intervalId=(0,hi.default)(x)}}stop(){this.intervalId&&(hi.default.cancel(this.intervalId),this.intervalId=null),this.mouse.stop()}shouldUpdate(r,t){if(!r){var{frameDuration:a}=this,n=this.animations.reduce((o,s)=>s.update(a)||o,!1);if(n)return!0}return!!(typeof t=="function"&&t()||!this.isReadyLock&&this.isReady()||this.mouse.hasEvents())}render(r,t,a,n,o,s,u){var{CLIENT_WIDTH:l,CLIENT_HEIGHT:h,viewPort:c,ctx:v,isFirstRender:f}=this,g=v.canvas;c.clear(),g.width&&g.height?c.setCurrent(g.width,g.height):c.setCurrent(l,h);var p=r.getStyle("width"),y=r.getStyle("height");!t&&(f||typeof n!="number"&&typeof o!="number")&&(p.hasValue()&&(g.width=p.getPixels("x"),g.style&&(g.style.width="".concat(g.width,"px"))),y.hasValue()&&(g.height=y.getPixels("y"),g.style&&(g.style.height="".concat(g.height,"px"))));var m=g.clientWidth||g.width,O=g.clientHeight||g.height;if(t&&p.hasValue()&&y.hasValue()&&(m=p.getPixels("x"),O=y.getPixels("y")),c.setCurrent(m,O),typeof s=="number"&&r.getAttribute("x",!0).setValue(s),typeof u=="number"&&r.getAttribute("y",!0).setValue(u),typeof n=="number"||typeof o=="number"){var x=se(r.getAttribute("viewBox").getString()),T=0,E=0;if(typeof n=="number"){var C=r.getStyle("width");C.hasValue()?T=C.getPixels("x")/n:isNaN(x[2])||(T=x[2]/n)}if(typeof o=="number"){var S=r.getStyle("height");S.hasValue()?E=S.getPixels("y")/o:isNaN(x[3])||(E=x[3]/o)}T||(T=E),E||(E=T),r.getAttribute("width",!0).setValue(n),r.getAttribute("height",!0).setValue(o);var A=r.getStyle("transform",!0,!0);A.setValue("".concat(A.getString()," scale(").concat(1/T,", ").concat(1/E,")"))}a||v.clearRect(0,0,m,O),r.render(v),f&&(this.isFirstRender=!1)}}return i.defaultWindow=yg,i.defaultFetch=mg,i})(),{defaultFetch:TO}=Eg,OO=typeof DOMParser<"u"?DOMParser:null,Qr=class{constructor(){var{fetch:e=TO,DOMParser:r=OO}=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.fetch=e,this.DOMParser=r}parse(e){var r=this;return be(function*(){return e.startsWith("<")?r.parseFromString(e):r.load(e)})()}parseFromString(e){var r=new this.DOMParser;try{return this.checkDocument(r.parseFromString(e,"image/svg+xml"))}catch{return this.checkDocument(r.parseFromString(e,"text/xml"))}}checkDocument(e){var r=e.getElementsByTagName("parsererror")[0];if(r)throw new Error(r.textContent);return e}load(e){var r=this;return be(function*(){var t=yield r.fetch(e),a=yield t.text();return r.parseFromString(a)})()}},Qn=class{constructor(e,r){this.type="translate",this.point=null,this.point=$.parse(r)}apply(e){var{x:r,y:t}=this.point;e.translate(r||0,t||0)}unapply(e){var{x:r,y:t}=this.point;e.translate(-1*r||0,-1*t||0)}applyToPoint(e){var{x:r,y:t}=this.point;e.applyTransform([1,0,0,1,r||0,t||0])}},Kn=class{constructor(e,r,t){this.type="rotate",this.angle=null,this.originX=null,this.originY=null,this.cx=0,this.cy=0;var a=se(r);this.angle=new w(e,"angle",a[0]),this.originX=t[0],this.originY=t[1],this.cx=a[1]||0,this.cy=a[2]||0}apply(e){var{cx:r,cy:t,originX:a,originY:n,angle:o}=this,s=r+a.getPixels("x"),u=t+n.getPixels("y");e.translate(s,u),e.rotate(o.getRadians()),e.translate(-s,-u)}unapply(e){var{cx:r,cy:t,originX:a,originY:n,angle:o}=this,s=r+a.getPixels("x"),u=t+n.getPixels("y");e.translate(s,u),e.rotate(-1*o.getRadians()),e.translate(-s,-u)}applyToPoint(e){var{cx:r,cy:t,angle:a}=this,n=a.getRadians();e.applyTransform([1,0,0,1,r||0,t||0]),e.applyTransform([Math.cos(n),Math.sin(n),-Math.sin(n),Math.cos(n),0,0]),e.applyTransform([1,0,0,1,-r||0,-t||0])}},Zn=class{constructor(e,r,t){this.type="scale",this.scale=null,this.originX=null,this.originY=null;var a=$.parseScale(r);(a.x===0||a.y===0)&&(a.x=dr,a.y=dr),this.scale=a,this.originX=t[0],this.originY=t[1]}apply(e){var{scale:{x:r,y:t},originX:a,originY:n}=this,o=a.getPixels("x"),s=n.getPixels("y");e.translate(o,s),e.scale(r,t||r),e.translate(-o,-s)}unapply(e){var{scale:{x:r,y:t},originX:a,originY:n}=this,o=a.getPixels("x"),s=n.getPixels("y");e.translate(o,s),e.scale(1/r,1/t||r),e.translate(-o,-s)}applyToPoint(e){var{x:r,y:t}=this.scale;e.applyTransform([r||0,0,0,t||0,0,0])}},fi=class{constructor(e,r,t){this.type="matrix",this.matrix=[],this.originX=null,this.originY=null,this.matrix=se(r),this.originX=t[0],this.originY=t[1]}apply(e){var{originX:r,originY:t,matrix:a}=this,n=r.getPixels("x"),o=t.getPixels("y");e.translate(n,o),e.transform(a[0],a[1],a[2],a[3],a[4],a[5]),e.translate(-n,-o)}unapply(e){var{originX:r,originY:t,matrix:a}=this,n=a[0],o=a[2],s=a[4],u=a[1],l=a[3],h=a[5],c=0,v=0,f=1,g=1/(n*(l*f-h*v)-o*(u*f-h*c)+s*(u*v-l*c)),p=r.getPixels("x"),y=t.getPixels("y");e.translate(p,y),e.transform(g*(l*f-h*v),g*(h*c-u*f),g*(s*v-o*f),g*(n*f-s*c),g*(o*h-s*l),g*(s*u-n*h)),e.translate(-p,-y)}applyToPoint(e){e.applyTransform(this.matrix)}},vi=class extends fi{constructor(e,r,t){super(e,r,t),this.type="skew",this.angle=null,this.angle=new w(e,"angle",r)}},Jn=class extends vi{constructor(e,r,t){super(e,r,t),this.type="skewX",this.matrix=[1,0,Math.tan(this.angle.getRadians()),1,0,0]}},es=class extends vi{constructor(e,r,t){super(e,r,t),this.type="skewY",this.matrix=[1,Math.tan(this.angle.getRadians()),0,1,0,0]}};function SO(i){return yr(i).trim().replace(/\)([a-zA-Z])/g,") $1").replace(/\)(\s?,\s?)/g,") ").split(/\s(?=[a-z])/)}function EO(i){var[e,r]=i.split("(");return[e.trim(),r.trim().replace(")","")]}var Ms=(()=>{class i{constructor(r,t,a){this.document=r,this.transforms=[];var n=SO(t);n.forEach(o=>{if(o!=="none"){var[s,u]=EO(o),l=i.transformTypes[s];typeof l<"u"&&this.transforms.push(new l(this.document,u,a))}})}static fromElement(r,t){var a=t.getStyle("transform",!1,!0),[n,o=n]=t.getStyle("transform-origin",!1,!0).split(),s=[n,o];return a.hasValue()?new i(r,a.getString(),s):null}apply(r){for(var{transforms:t}=this,a=t.length,n=0;n=0;n--)t[n].unapply(r)}applyToPoint(r){for(var{transforms:t}=this,a=t.length,n=0;n{class i{constructor(r,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;if(this.document=r,this.node=t,this.captureTextNodes=a,this.attributes=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.animationFrozen=!1,this.animationFrozenValue="",this.parent=null,this.children=[],!(!t||t.nodeType!==1)){if(Array.from(t.attributes).forEach(u=>{var l=cO(u.nodeName);this.attributes[l]=new w(r,l,u.value)}),this.addStylesFromStyleDefinition(),this.getAttribute("style").hasValue()){var n=this.getAttribute("style").getString().split(";").map(u=>u.trim());n.forEach(u=>{if(u){var[l,h]=u.split(":").map(c=>c.trim());this.styles[l]=new w(r,l,h)}})}var{definitions:o}=r,s=this.getAttribute("id");s.hasValue()&&(o[s.getString()]||(o[s.getString()]=this)),Array.from(t.childNodes).forEach(u=>{if(u.nodeType===1)this.addChild(u);else if(a&&(u.nodeType===3||u.nodeType===4)){var l=r.createTextNode(u);l.getText().length>0&&this.addChild(l)}})}}getAttribute(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=this.attributes[r];if(!a&&t){var n=new w(this.document,r,"");return this.attributes[r]=n,n}return a||w.empty(this.document)}getHrefAttribute(){for(var r in this.attributes)if(r==="href"||r.endsWith(":href"))return this.attributes[r];return w.empty(this.document)}getStyle(r){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,n=this.styles[r];if(n)return n;var o=this.getAttribute(r);if(o!=null&&o.hasValue())return this.styles[r]=o,o;if(!a){var{parent:s}=this;if(s){var u=s.getStyle(r);if(u!=null&&u.hasValue())return u}}if(t){var l=new w(this.document,r,"");return this.styles[r]=l,l}return n||w.empty(this.document)}render(r){if(!(this.getStyle("display").getString()==="none"||this.getStyle("visibility").getString()==="hidden")){if(r.save(),this.getStyle("mask").hasValue()){var t=this.getStyle("mask").getDefinition();t&&(this.applyEffects(r),t.apply(r,this))}else if(this.getStyle("filter").getValue("none")!=="none"){var a=this.getStyle("filter").getDefinition();a&&(this.applyEffects(r),a.apply(r,this))}else this.setContext(r),this.renderChildren(r),this.clearContext(r);r.restore()}}setContext(r){}applyEffects(r){var t=Ms.fromElement(this.document,this);t&&t.apply(r);var a=this.getStyle("clip-path",!1,!0);if(a.hasValue()){var n=a.getDefinition();n&&n.apply(r)}}clearContext(r){}renderChildren(r){this.children.forEach(t=>{t.render(r)})}addChild(r){var t=r instanceof i?r:this.document.createElement(r);t.parent=this,i.ignoreChildTypes.includes(t.type)||this.children.push(t)}matchesSelector(r){var t,{node:a}=this;if(typeof a.matches=="function")return a.matches(r);var n=(t=a.getAttribute)===null||t===void 0?void 0:t.call(a,"class");return!n||n===""?!1:n.split(" ").some(o=>".".concat(o)===r)}addStylesFromStyleDefinition(){var{styles:r,stylesSpecificity:t}=this.document;for(var a in r)if(!a.startsWith("@")&&this.matchesSelector(a)){var n=r[a],o=t[a];if(n)for(var s in n){var u=this.stylesSpecificity[s];typeof u>"u"&&(u="000"),o>=u&&(this.styles[s]=n[s],this.stylesSpecificity[s]=o)}}}removeStyles(r,t){var a=t.reduce((n,o)=>{var s=r.getStyle(o);if(!s.hasValue())return n;var u=s.getString();return s.setValue(""),[...n,[o,u]]},[]);return a}restoreStyles(r,t){t.forEach(a=>{var[n,o]=a;r.getStyle(n,!0).setValue(o)})}isFirstChild(){var r;return((r=this.parent)===null||r===void 0?void 0:r.children.indexOf(this))===0}}return i.ignoreChildTypes=["title"],i})(),rs=class extends B{constructor(e,r,t){super(e,r,t)}};function wO(i){var e=i.trim();return/^('|")/.test(e)?e:'"'.concat(e,'"')}function CO(i){return typeof process>"u"?i:i.trim().split(",").map(wO).join(",")}function qO(i){if(!i)return"";var e=i.trim().toLowerCase();switch(e){case"normal":case"italic":case"oblique":case"inherit":case"initial":case"unset":return e;default:return/^oblique\s+(-|)\d+deg$/.test(e)?e:""}}function AO(i){if(!i)return"";var e=i.trim().toLowerCase();switch(e){case"normal":case"bold":case"lighter":case"bolder":case"inherit":case"initial":case"unset":return e;default:return/^[\d.]+$/.test(e)?e:""}}var pr=(()=>{class i{constructor(r,t,a,n,o,s){var u=s?typeof s=="string"?i.parse(s):s:{};this.fontFamily=o||u.fontFamily,this.fontSize=n||u.fontSize,this.fontStyle=r||u.fontStyle,this.fontWeight=a||u.fontWeight,this.fontVariant=t||u.fontVariant}static parse(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",t=arguments.length>1?arguments[1]:void 0,a="",n="",o="",s="",u="",l=yr(r).trim().split(" "),h={fontSize:!1,fontStyle:!1,fontWeight:!1,fontVariant:!1};return l.forEach(c=>{switch(!0){case(!h.fontStyle&&i.styles.includes(c)):c!=="inherit"&&(a=c),h.fontStyle=!0;break;case(!h.fontVariant&&i.variants.includes(c)):c!=="inherit"&&(n=c),h.fontStyle=!0,h.fontVariant=!0;break;case(!h.fontWeight&&i.weights.includes(c)):c!=="inherit"&&(o=c),h.fontStyle=!0,h.fontVariant=!0,h.fontWeight=!0;break;case!h.fontSize:c!=="inherit"&&([s]=c.split("/")),h.fontStyle=!0,h.fontVariant=!0,h.fontWeight=!0,h.fontSize=!0;break;default:c!=="inherit"&&(u+=c)}}),new i(a,n,o,s,u,t)}toString(){return[qO(this.fontStyle),this.fontVariant,AO(this.fontWeight),this.fontSize,CO(this.fontFamily)].join(" ").trim()}}return i.styles="normal|italic|oblique|inherit",i.variants="normal|small-caps|inherit",i.weights="normal|bold|bolder|lighter|100|200|300|400|500|600|700|800|900|inherit",i})(),oe=class{constructor(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Number.NaN,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Number.NaN,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Number.NaN,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:Number.NaN;this.x1=e,this.y1=r,this.x2=t,this.y2=a,this.addPoint(e,r),this.addPoint(t,a)}get x(){return this.x1}get y(){return this.y1}get width(){return this.x2-this.x1}get height(){return this.y2-this.y1}addPoint(e,r){typeof e<"u"&&((isNaN(this.x1)||isNaN(this.x2))&&(this.x1=e,this.x2=e),ethis.x2&&(this.x2=e)),typeof r<"u"&&((isNaN(this.y1)||isNaN(this.y2))&&(this.y1=r,this.y2=r),rthis.y2&&(this.y2=r))}addX(e){this.addPoint(e,null)}addY(e){this.addPoint(null,e)}addBoundingBox(e){if(e){var{x1:r,y1:t,x2:a,y2:n}=e;this.addPoint(r,t),this.addPoint(a,n)}}sumCubic(e,r,t,a,n){return Math.pow(1-e,3)*r+3*Math.pow(1-e,2)*e*t+3*(1-e)*Math.pow(e,2)*a+Math.pow(e,3)*n}bezierCurveAdd(e,r,t,a,n){var o=6*r-12*t+6*a,s=-3*r+9*t-9*a+3*n,u=3*t-3*r;if(s===0){if(o===0)return;var l=-u/o;0=r.length-1}next(){var e=this.commands[++this.i];return this.previousCommand=this.command,this.command=e,e}getPoint(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"x",r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"y",t=new $(this.command[e],this.command[r]);return this.makeAbsolute(t)}getAsControlPoint(e,r){var t=this.getPoint(e,r);return this.control=t,t}getAsCurrentPoint(e,r){var t=this.getPoint(e,r);return this.current=t,t}getReflectedControlPoint(){var e=this.previousCommand.type;if(e!==b.CURVE_TO&&e!==b.SMOOTH_CURVE_TO&&e!==b.QUAD_TO&&e!==b.SMOOTH_QUAD_TO)return this.current;var{current:{x:r,y:t},control:{x:a,y:n}}=this,o=new $(2*r-a,2*t-n);return o}makeAbsolute(e){if(this.command.relative){var{x:r,y:t}=this.current;e.x+=r,e.y+=t}return e}addMarker(e,r,t){var{points:a,angles:n}=this;t&&n.length>0&&!n[n.length-1]&&(n[n.length-1]=a[a.length-1].angleTo(t)),this.addMarkerAngle(e,r?r.angleTo(e):null)}addMarkerAngle(e,r){this.points.push(e),this.angles.push(r)}getMarkerPoints(){return this.points}getMarkerAngles(){for(var{angles:e}=this,r=e.length,t=0;t1&&arguments[1]!==void 0?arguments[1]:!1;if(!r){var t=this.getStyle("fill"),a=this.getStyle("fill-opacity"),n=this.getStyle("stroke"),o=this.getStyle("stroke-opacity");if(t.isUrlDefinition()){var s=t.getFillStyleDefinition(this,a);s&&(e.fillStyle=s)}else if(t.hasValue()){t.getString()==="currentColor"&&t.setValue(this.getStyle("color").getColor());var u=t.getColor();u!=="inherit"&&(e.fillStyle=u==="none"?"rgba(0,0,0,0)":u)}if(a.hasValue()){var l=new w(this.document,"fill",e.fillStyle).addOpacity(a).getColor();e.fillStyle=l}if(n.isUrlDefinition()){var h=n.getFillStyleDefinition(this,o);h&&(e.strokeStyle=h)}else if(n.hasValue()){n.getString()==="currentColor"&&n.setValue(this.getStyle("color").getColor());var c=n.getString();c!=="inherit"&&(e.strokeStyle=c==="none"?"rgba(0,0,0,0)":c)}if(o.hasValue()){var v=new w(this.document,"stroke",e.strokeStyle).addOpacity(o).getString();e.strokeStyle=v}var f=this.getStyle("stroke-width");if(f.hasValue()){var g=f.getPixels();e.lineWidth=g||dr}var p=this.getStyle("stroke-linecap"),y=this.getStyle("stroke-linejoin"),m=this.getStyle("stroke-miterlimit"),O=this.getStyle("stroke-dasharray"),x=this.getStyle("stroke-dashoffset");if(p.hasValue()&&(e.lineCap=p.getString()),y.hasValue()&&(e.lineJoin=y.getString()),m.hasValue()&&(e.miterLimit=m.getNumber()),O.hasValue()&&O.getString()!=="none"){var T=se(O.getString());typeof e.setLineDash<"u"?e.setLineDash(T):typeof e.webkitLineDash<"u"?e.webkitLineDash=T:typeof e.mozDash<"u"&&!(T.length===1&&T[0]===0)&&(e.mozDash=T);var E=x.getPixels();typeof e.lineDashOffset<"u"?e.lineDashOffset=E:typeof e.webkitLineDashOffset<"u"?e.webkitLineDashOffset=E:typeof e.mozDashOffset<"u"&&(e.mozDashOffset=E)}}if(this.modifiedEmSizeStack=!1,typeof e.font<"u"){var C=this.getStyle("font"),S=this.getStyle("font-style"),A=this.getStyle("font-variant"),P=this.getStyle("font-weight"),V=this.getStyle("font-size"),k=this.getStyle("font-family"),N=new pr(S.getString(),A.getString(),P.getString(),V.hasValue()?"".concat(V.getPixels(!0),"px"):"",k.getString(),pr.parse(C.getString(),e.font));S.setValue(N.fontStyle),A.setValue(N.fontVariant),P.setValue(N.fontWeight),V.setValue(N.fontSize),k.setValue(N.fontFamily),e.font=N.toString(),V.isPixels()&&(this.document.emSize=V.getPixels(),this.modifiedEmSizeStack=!0)}r||(this.applyEffects(e),e.globalAlpha=this.calculateOpacity())}clearContext(e){super.clearContext(e),this.modifiedEmSizeStack&&this.document.popEmSize()}},F=class i extends qe{constructor(e,r,t){super(e,r,t),this.type="path",this.pathParser=null,this.pathParser=new q(this.getAttribute("d").getString())}path(e){var{pathParser:r}=this,t=new oe;for(r.reset(),e&&e.beginPath();!r.isEnd();)switch(r.next().type){case q.MOVE_TO:this.pathM(e,t);break;case q.LINE_TO:this.pathL(e,t);break;case q.HORIZ_LINE_TO:this.pathH(e,t);break;case q.VERT_LINE_TO:this.pathV(e,t);break;case q.CURVE_TO:this.pathC(e,t);break;case q.SMOOTH_CURVE_TO:this.pathS(e,t);break;case q.QUAD_TO:this.pathQ(e,t);break;case q.SMOOTH_QUAD_TO:this.pathT(e,t);break;case q.ARC:this.pathA(e,t);break;case q.CLOSE_PATH:this.pathZ(e,t);break}return t}getBoundingBox(e){return this.path()}getMarkers(){var{pathParser:e}=this,r=e.getMarkerPoints(),t=e.getMarkerAngles(),a=r.map((n,o)=>[n,t[o]]);return a}renderChildren(e){this.path(e),this.document.screen.mouse.checkPath(this,e);var r=this.getStyle("fill-rule");e.fillStyle!==""&&(r.getString("inherit")!=="inherit"?e.fill(r.getString()):e.fill()),e.strokeStyle!==""&&(this.getAttribute("vector-effect").getString()==="non-scaling-stroke"?(e.save(),e.setTransform(1,0,0,1,0,0),e.stroke(),e.restore()):e.stroke());var t=this.getMarkers();if(t){var a=t.length-1,n=this.getStyle("marker-start"),o=this.getStyle("marker-mid"),s=this.getStyle("marker-end");if(n.isUrlDefinition()){var u=n.getDefinition(),[l,h]=t[0];u.render(e,l,h)}if(o.isUrlDefinition())for(var c=o.getDefinition(),v=1;v1&&(a*=Math.sqrt(v),n*=Math.sqrt(v));var f=(s===u?-1:1)*Math.sqrt((Math.pow(a,2)*Math.pow(n,2)-Math.pow(a,2)*Math.pow(c.y,2)-Math.pow(n,2)*Math.pow(c.x,2))/(Math.pow(a,2)*Math.pow(c.y,2)+Math.pow(n,2)*Math.pow(c.x,2)));isNaN(f)&&(f=0);var g=new $(f*a*c.y/n,f*-n*c.x/a),p=new $((r.x+h.x)/2+Math.cos(l)*g.x-Math.sin(l)*g.y,(r.y+h.y)/2+Math.sin(l)*g.x+Math.cos(l)*g.y),y=lg([1,0],[(c.x-g.x)/a,(c.y-g.y)/n]),m=[(c.x-g.x)/a,(c.y-g.y)/n],O=[(-c.x-g.x)/a,(-c.y-g.y)/n],x=lg(m,O);return Yn(m,O)<=-1&&(x=Math.PI),Yn(m,O)>=1&&(x=0),{currentPoint:h,rX:a,rY:n,sweepFlag:u,xAxisRotation:l,centp:p,a1:y,ad:x}}pathA(e,r){var{pathParser:t}=this,{currentPoint:a,rX:n,rY:o,sweepFlag:s,xAxisRotation:u,centp:l,a1:h,ad:c}=i.pathA(t),v=1-s?1:-1,f=h+v*(c/2),g=new $(l.x+n*Math.cos(f),l.y+o*Math.sin(f));if(t.addMarkerAngle(g,f-v*Math.PI/2),t.addMarkerAngle(a,f-v*Math.PI),r.addPoint(a.x,a.y),e&&!isNaN(h)&&!isNaN(c)){var p=n>o?n:o,y=n>o?1:n/o,m=n>o?o/n:1;e.translate(l.x,l.y),e.rotate(u),e.scale(y,m),e.arc(0,0,p,h,h+c,!!(1-s)),e.scale(1/y,1/m),e.rotate(-u),e.translate(-l.x,-l.y)}}static pathZ(e){e.current=e.start}pathZ(e,r){i.pathZ(this.pathParser),e&&r.x1!==r.x2&&r.y1!==r.y2&&e.closePath()}},gi=class extends F{constructor(e,r,t){super(e,r,t),this.type="glyph",this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber(),this.unicode=this.getAttribute("unicode").getString(),this.arabicForm=this.getAttribute("arabic-form").getString()}},He=class i extends qe{constructor(e,r,t){super(e,r,new.target===i?!0:t),this.type="text",this.x=0,this.y=0,this.measureCache=-1}setContext(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;super.setContext(e,r);var t=this.getStyle("dominant-baseline").getTextBaseline()||this.getStyle("alignment-baseline").getTextBaseline();t&&(e.textBaseline=t)}initializeCoordinates(){this.x=0,this.y=0,this.leafTexts=[],this.textChunkStart=0,this.minX=Number.POSITIVE_INFINITY,this.maxX=Number.NEGATIVE_INFINITY}getBoundingBox(e){if(this.type!=="text")return this.getTElementBoundingBox(e);this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e);var r=null;return this.children.forEach((t,a)=>{var n=this.getChildBoundingBox(e,this,this,a);r?r.addBoundingBox(n):r=n}),r}getFontSize(){var{document:e,parent:r}=this,t=pr.parse(e.ctx.font).fontSize,a=r.getStyle("font-size").getNumber(t);return a}getTElementBoundingBox(e){var r=this.getFontSize();return new oe(this.x,this.y-r,this.x+this.measureText(e),this.y)}getGlyph(e,r,t){var a=r[t],n=null;if(e.isArabic){var o=r.length,s=r[t-1],u=r[t+1],l="isolated";if((t===0||s===" ")&&t0&&s!==" "&&t0&&s!==" "&&(t===o-1||u===" ")&&(l="initial"),typeof e.glyphs[a]<"u"){var h=e.glyphs[a];n=h instanceof gi?h:h[l]}}else n=e.glyphs[a];return n||(n=e.missingGlyph),n}getText(){return""}getTextFromNode(e){var r=e||this.node,t=Array.from(r.parentNode.childNodes),a=t.indexOf(r),n=t.length-1,o=yr(r.textContent||"");return a===0&&(o=uO(o)),a===n&&(o=lO(o)),o}renderChildren(e){if(this.type!=="text"){this.renderTElementChildren(e);return}this.initializeCoordinates(),this.adjustChildCoordinatesRecursive(e),this.children.forEach((t,a)=>{this.renderChild(e,this,this,a)});var{mouse:r}=this.document.screen;r.isWorking()&&r.checkBoundingBox(this,this.getBoundingBox(e))}renderTElementChildren(e){var{document:r,parent:t}=this,a=this.getText(),n=t.getStyle("font-family").getDefinition();if(n){for(var{unitsPerEm:o}=n.fontFace,s=pr.parse(r.ctx.font),u=t.getStyle("font-size").getNumber(s.fontSize),l=t.getStyle("font-style").getString(s.fontStyle),h=u/o,c=n.isRTL?a.split("").reverse().join(""):a,v=se(t.getAttribute("dx").getString()),f=c.length,g=0;g=this.leafTexts.length)){var e=this.leafTexts[this.textChunkStart],r=e.getStyle("text-anchor").getString("start"),t=!1,a=0;r==="start"&&!t||r==="end"&&t?a=e.x-this.minX:r==="end"&&!t||r==="start"&&t?a=e.x-this.maxX:a=e.x-(this.minX+this.maxX)/2;for(var n=this.textChunkStart;n{this.adjustChildCoordinatesRecursiveCore(e,this,this,t)}),this.applyAnchoring()}adjustChildCoordinatesRecursiveCore(e,r,t,a){var n=t.children[a];n.children.length>0?n.children.forEach((o,s)=>{r.adjustChildCoordinatesRecursiveCore(e,r,n,s)}):this.adjustChildCoordinates(e,r,t,a)}adjustChildCoordinates(e,r,t,a){var n=t.children[a];if(typeof n.measureText!="function")return n;e.save(),n.setContext(e,!0);var o=n.getAttribute("x"),s=n.getAttribute("y"),u=n.getAttribute("dx"),l=n.getAttribute("dy"),h=n.getStyle("font-family").getDefinition(),c=!!h&&h.isRTL;a===0&&(o.hasValue()||o.setValue(n.getInheritedAttribute("x")),s.hasValue()||s.setValue(n.getInheritedAttribute("y")),u.hasValue()||u.setValue(n.getInheritedAttribute("dx")),l.hasValue()||l.setValue(n.getInheritedAttribute("dy")));var v=n.measureText(e);return c&&(r.x-=v),o.hasValue()?(r.applyAnchoring(),n.x=o.getPixels("x"),u.hasValue()&&(n.x+=u.getPixels("x"))):(u.hasValue()&&(r.x+=u.getPixels("x")),n.x=r.x),r.x=n.x,c||(r.x+=v),s.hasValue()?(n.y=s.getPixels("y"),l.hasValue()&&(n.y+=l.getPixels("y"))):(l.hasValue()&&(r.y+=l.getPixels("y")),n.y=r.y),r.y=n.y,r.leafTexts.push(n),r.minX=Math.min(r.minX,n.x,n.x+v),r.maxX=Math.max(r.maxX,n.x,n.x+v),n.clearContext(e),e.restore(),n}getChildBoundingBox(e,r,t,a){var n=t.children[a];if(typeof n.getBoundingBox!="function")return null;var o=n.getBoundingBox(e);return o?(n.children.forEach((s,u)=>{var l=r.getChildBoundingBox(e,r,n,u);o.addBoundingBox(l)}),o):null}renderChild(e,r,t,a){var n=t.children[a];n.render(e),n.children.forEach((o,s)=>{r.renderChild(e,r,n,s)})}measureText(e){var{measureCache:r}=this;if(~r)return r;var t=this.getText(),a=this.measureTargetText(e,t);return this.measureCache=a,a}measureTargetText(e,r){if(!r.length)return 0;var{parent:t}=this,a=t.getStyle("font-family").getDefinition();if(a){for(var n=this.getFontSize(),o=a.isRTL?r.split("").reverse().join(""):r,s=se(t.getAttribute("dx").getString()),u=o.length,l=0,h=0;h0?"":this.getTextFromNode()}getText(){return this.text}},ts=class extends di{constructor(){super(...arguments),this.type="textNode"}},Ye=class extends qe{constructor(){super(...arguments),this.type="svg",this.root=!1}setContext(e){var r,{document:t}=this,{screen:a,window:n}=t,o=e.canvas;if(a.setDefaults(e),o.style&&typeof e.font<"u"&&n&&typeof n.getComputedStyle<"u"){e.font=n.getComputedStyle(o).getPropertyValue("font");var s=new w(t,"fontSize",pr.parse(e.font).fontSize);s.hasValue()&&(t.rootEmSize=s.getPixels("y"),t.emSize=t.rootEmSize)}this.getAttribute("x").hasValue()||this.getAttribute("x",!0).setValue(0),this.getAttribute("y").hasValue()||this.getAttribute("y",!0).setValue(0);var{width:u,height:l}=a.viewPort;this.getStyle("width").hasValue()||this.getStyle("width",!0).setValue("100%"),this.getStyle("height").hasValue()||this.getStyle("height",!0).setValue("100%"),this.getStyle("color").hasValue()||this.getStyle("color",!0).setValue("black");var h=this.getAttribute("refX"),c=this.getAttribute("refY"),v=this.getAttribute("viewBox"),f=v.hasValue()?se(v.getString()):null,g=!this.root&&this.getStyle("overflow").getValue("hidden")!=="visible",p=0,y=0,m=0,O=0;f&&(p=f[0],y=f[1]),this.root||(u=this.getStyle("width").getPixels("x"),l=this.getStyle("height").getPixels("y"),this.type==="marker"&&(m=p,O=y,p=0,y=0)),a.viewPort.setCurrent(u,l),this.node&&(!this.parent||((r=this.node.parentNode)===null||r===void 0?void 0:r.nodeName)==="foreignObject")&&this.getStyle("transform",!1,!0).hasValue()&&!this.getStyle("transform-origin",!1,!0).hasValue()&&this.getStyle("transform-origin",!0,!0).setValue("50% 50%"),super.setContext(e),e.translate(this.getAttribute("x").getPixels("x"),this.getAttribute("y").getPixels("y")),f&&(u=f[2],l=f[3]),t.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:a.viewPort.width,desiredWidth:u,height:a.viewPort.height,desiredHeight:l,minX:p,minY:y,refX:h.getValue(),refY:c.getValue(),clip:g,clipX:m,clipY:O}),f&&(a.viewPort.removeCurrent(),a.viewPort.setCurrent(u,l))}clearContext(e){super.clearContext(e),this.document.screen.viewPort.removeCurrent()}resize(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,a=this.getAttribute("width",!0),n=this.getAttribute("height",!0),o=this.getAttribute("viewBox"),s=this.getAttribute("style"),u=a.getNumber(0),l=n.getNumber(0);if(t)if(typeof t=="string")this.getAttribute("preserveAspectRatio",!0).setValue(t);else{var h=this.getAttribute("preserveAspectRatio");h.hasValue()&&h.setValue(h.getString().replace(/^\s*(\S.*\S)\s*$/,"$1"))}if(a.setValue(e),n.setValue(r),o.hasValue()||o.setValue("0 0 ".concat(u||e," ").concat(l||r)),s.hasValue()){var c=this.getStyle("width"),v=this.getStyle("height");c.hasValue()&&c.setValue("".concat(e,"px")),v.hasValue()&&v.setValue("".concat(r,"px"))}}},pi=class extends F{constructor(){super(...arguments),this.type="rect"}path(e){var r=this.getAttribute("x").getPixels("x"),t=this.getAttribute("y").getPixels("y"),a=this.getStyle("width",!1,!0).getPixels("x"),n=this.getStyle("height",!1,!0).getPixels("y"),o=this.getAttribute("rx"),s=this.getAttribute("ry"),u=o.getPixels("x"),l=s.getPixels("y");if(o.hasValue()&&!s.hasValue()&&(l=u),s.hasValue()&&!o.hasValue()&&(u=l),u=Math.min(u,a/2),l=Math.min(l,n/2),e){var h=4*((Math.sqrt(2)-1)/3);e.beginPath(),n>0&&a>0&&(e.moveTo(r+u,t),e.lineTo(r+a-u,t),e.bezierCurveTo(r+a-u+h*u,t,r+a,t+l-h*l,r+a,t+l),e.lineTo(r+a,t+n-l),e.bezierCurveTo(r+a,t+n-l+h*l,r+a-u+h*u,t+n,r+a-u,t+n),e.lineTo(r+u,t+n),e.bezierCurveTo(r+u-h*u,t+n,r,t+n-l+h*l,r,t+n-l),e.lineTo(r,t+l),e.bezierCurveTo(r,t+l-h*l,r+u-h*u,t,r+u,t),e.closePath())}return new oe(r,t,r+a,t+n)}getMarkers(){return null}},is=class extends F{constructor(){super(...arguments),this.type="circle"}path(e){var r=this.getAttribute("cx").getPixels("x"),t=this.getAttribute("cy").getPixels("y"),a=this.getAttribute("r").getPixels();return e&&a>0&&(e.beginPath(),e.arc(r,t,a,0,Math.PI*2,!1),e.closePath()),new oe(r-a,t-a,r+a,t+a)}getMarkers(){return null}},as=class extends F{constructor(){super(...arguments),this.type="ellipse"}path(e){var r=4*((Math.sqrt(2)-1)/3),t=this.getAttribute("rx").getPixels("x"),a=this.getAttribute("ry").getPixels("y"),n=this.getAttribute("cx").getPixels("x"),o=this.getAttribute("cy").getPixels("y");return e&&t>0&&a>0&&(e.beginPath(),e.moveTo(n+t,o),e.bezierCurveTo(n+t,o+r*a,n+r*t,o+a,n,o+a),e.bezierCurveTo(n-r*t,o+a,n-t,o+r*a,n-t,o),e.bezierCurveTo(n-t,o-r*a,n-r*t,o-a,n,o-a),e.bezierCurveTo(n+r*t,o-a,n+t,o-r*a,n+t,o),e.closePath()),new oe(n-t,o-a,n+t,o+a)}getMarkers(){return null}},ns=class extends F{constructor(){super(...arguments),this.type="line"}getPoints(){return[new $(this.getAttribute("x1").getPixels("x"),this.getAttribute("y1").getPixels("y")),new $(this.getAttribute("x2").getPixels("x"),this.getAttribute("y2").getPixels("y"))]}path(e){var[{x:r,y:t},{x:a,y:n}]=this.getPoints();return e&&(e.beginPath(),e.moveTo(r,t),e.lineTo(a,n)),new oe(r,t,a,n)}getMarkers(){var[e,r]=this.getPoints(),t=e.angleTo(r);return[[e,t],[r,t]]}},yi=class extends F{constructor(e,r,t){super(e,r,t),this.type="polyline",this.points=[],this.points=$.parsePath(this.getAttribute("points").getString())}path(e){var{points:r}=this,[{x:t,y:a}]=r,n=new oe(t,a);return e&&(e.beginPath(),e.moveTo(t,a)),r.forEach(o=>{var{x:s,y:u}=o;n.addPoint(s,u),e&&e.lineTo(s,u)}),n}getMarkers(){var{points:e}=this,r=e.length-1,t=[];return e.forEach((a,n)=>{n!==r&&t.push([a,a.angleTo(e[n+1])])}),t.length>0&&t.push([e[e.length-1],t[t.length-1][1]]),t}},ss=class extends yi{constructor(){super(...arguments),this.type="polygon"}path(e){var r=super.path(e),[{x:t,y:a}]=this.points;return e&&(e.lineTo(t,a),e.closePath()),r}},os=class extends B{constructor(){super(...arguments),this.type="pattern"}createPattern(e,r,t){var a=this.getStyle("width").getPixels("x",!0),n=this.getStyle("height").getPixels("y",!0),o=new Ye(this.document,null);o.attributes.viewBox=new w(this.document,"viewBox",this.getAttribute("viewBox").getValue()),o.attributes.width=new w(this.document,"width","".concat(a,"px")),o.attributes.height=new w(this.document,"height","".concat(n,"px")),o.attributes.transform=new w(this.document,"transform",this.getAttribute("patternTransform").getValue()),o.children=this.children;var s=this.document.createCanvas(a,n),u=s.getContext("2d"),l=this.getAttribute("x"),h=this.getAttribute("y");l.hasValue()&&h.hasValue()&&u.translate(l.getPixels("x",!0),h.getPixels("y",!0)),t.hasValue()?this.styles["fill-opacity"]=t:Reflect.deleteProperty(this.styles,"fill-opacity");for(var c=-1;c<=1;c++)for(var v=-1;v<=1;v++)u.save(),o.attributes.x=new w(this.document,"x",c*s.width),o.attributes.y=new w(this.document,"y",v*s.height),o.render(u),u.restore();var f=e.createPattern(s,"repeat");return f}},us=class extends B{constructor(){super(...arguments),this.type="marker"}render(e,r,t){if(r){var{x:a,y:n}=r,o=this.getAttribute("orient").getString("auto"),s=this.getAttribute("markerUnits").getString("strokeWidth");e.translate(a,n),o==="auto"&&e.rotate(t),s==="strokeWidth"&&e.scale(e.lineWidth,e.lineWidth),e.save();var u=new Ye(this.document,null);u.type=this.type,u.attributes.viewBox=new w(this.document,"viewBox",this.getAttribute("viewBox").getValue()),u.attributes.refX=new w(this.document,"refX",this.getAttribute("refX").getValue()),u.attributes.refY=new w(this.document,"refY",this.getAttribute("refY").getValue()),u.attributes.width=new w(this.document,"width",this.getAttribute("markerWidth").getValue()),u.attributes.height=new w(this.document,"height",this.getAttribute("markerHeight").getValue()),u.attributes.overflow=new w(this.document,"overflow",this.getAttribute("overflow").getValue()),u.attributes.fill=new w(this.document,"fill",this.getAttribute("fill").getColor("black")),u.attributes.stroke=new w(this.document,"stroke",this.getAttribute("stroke").getValue("none")),u.children=this.children,u.render(e),e.restore(),s==="strokeWidth"&&e.scale(1/e.lineWidth,1/e.lineWidth),o==="auto"&&e.rotate(-t),e.translate(-a,-n)}}},ls=class extends B{constructor(){super(...arguments),this.type="defs"}render(){}},Kr=class extends qe{constructor(){super(...arguments),this.type="g"}getBoundingBox(e){var r=new oe;return this.children.forEach(t=>{r.addBoundingBox(t.getBoundingBox(e))}),r}},mi=class extends B{constructor(e,r,t){super(e,r,t),this.attributesToInherit=["gradientUnits"],this.stops=[];var{stops:a,children:n}=this;n.forEach(o=>{o.type==="stop"&&a.push(o)})}getGradientUnits(){return this.getAttribute("gradientUnits").getString("objectBoundingBox")}createGradient(e,r,t){var a=this;this.getHrefAttribute().hasValue()&&(a=this.getHrefAttribute().getDefinition(),this.inheritStopContainer(a));var{stops:n}=a,o=this.getGradient(e,r);if(!o)return this.addParentOpacity(t,n[n.length-1].color);if(n.forEach(y=>{o.addColorStop(y.offset,this.addParentOpacity(t,y.color))}),this.getAttribute("gradientTransform").hasValue()){var{document:s}=this,{MAX_VIRTUAL_PIXELS:u,viewPort:l}=s.screen,[h]=l.viewPorts,c=new pi(s,null);c.attributes.x=new w(s,"x",-u/3),c.attributes.y=new w(s,"y",-u/3),c.attributes.width=new w(s,"width",u),c.attributes.height=new w(s,"height",u);var v=new Kr(s,null);v.attributes.transform=new w(s,"transform",this.getAttribute("gradientTransform").getValue()),v.children=[c];var f=new Ye(s,null);f.attributes.x=new w(s,"x",0),f.attributes.y=new w(s,"y",0),f.attributes.width=new w(s,"width",h.width),f.attributes.height=new w(s,"height",h.height),f.children=[v];var g=s.createCanvas(h.width,h.height),p=g.getContext("2d");return p.fillStyle=o,f.render(p),p.createPattern(g,"no-repeat")}return o}inheritStopContainer(e){this.attributesToInherit.forEach(r=>{!this.getAttribute(r).hasValue()&&e.getAttribute(r).hasValue()&&this.getAttribute(r,!0).setValue(e.getAttribute(r).getValue())})}addParentOpacity(e,r){if(e.hasValue()){var t=new w(this.document,"color",r);return t.addOpacity(e).getColor()}return r}},hs=class extends mi{constructor(e,r,t){super(e,r,t),this.type="linearGradient",this.attributesToInherit.push("x1","y1","x2","y2")}getGradient(e,r){var t=this.getGradientUnits()==="objectBoundingBox",a=t?r.getBoundingBox(e):null;if(t&&!a)return null;!this.getAttribute("x1").hasValue()&&!this.getAttribute("y1").hasValue()&&!this.getAttribute("x2").hasValue()&&!this.getAttribute("y2").hasValue()&&(this.getAttribute("x1",!0).setValue(0),this.getAttribute("y1",!0).setValue(0),this.getAttribute("x2",!0).setValue(1),this.getAttribute("y2",!0).setValue(0));var n=t?a.x+a.width*this.getAttribute("x1").getNumber():this.getAttribute("x1").getPixels("x"),o=t?a.y+a.height*this.getAttribute("y1").getNumber():this.getAttribute("y1").getPixels("y"),s=t?a.x+a.width*this.getAttribute("x2").getNumber():this.getAttribute("x2").getPixels("x"),u=t?a.y+a.height*this.getAttribute("y2").getNumber():this.getAttribute("y2").getPixels("y");return n===s&&o===u?null:e.createLinearGradient(n,o,s,u)}},cs=class extends mi{constructor(e,r,t){super(e,r,t),this.type="radialGradient",this.attributesToInherit.push("cx","cy","r","fx","fy","fr")}getGradient(e,r){var t=this.getGradientUnits()==="objectBoundingBox",a=r.getBoundingBox(e);if(t&&!a)return null;this.getAttribute("cx").hasValue()||this.getAttribute("cx",!0).setValue("50%"),this.getAttribute("cy").hasValue()||this.getAttribute("cy",!0).setValue("50%"),this.getAttribute("r").hasValue()||this.getAttribute("r",!0).setValue("50%");var n=t?a.x+a.width*this.getAttribute("cx").getNumber():this.getAttribute("cx").getPixels("x"),o=t?a.y+a.height*this.getAttribute("cy").getNumber():this.getAttribute("cy").getPixels("y"),s=n,u=o;this.getAttribute("fx").hasValue()&&(s=t?a.x+a.width*this.getAttribute("fx").getNumber():this.getAttribute("fx").getPixels("x")),this.getAttribute("fy").hasValue()&&(u=t?a.y+a.height*this.getAttribute("fy").getNumber():this.getAttribute("fy").getPixels("y"));var l=t?(a.width+a.height)/2*this.getAttribute("r").getNumber():this.getAttribute("r").getPixels(),h=this.getAttribute("fr").getPixels();return e.createRadialGradient(s,u,h,n,o,l)}},fs=class extends B{constructor(e,r,t){super(e,r,t),this.type="stop";var a=Math.max(0,Math.min(1,this.getAttribute("offset").getNumber())),n=this.getStyle("stop-opacity"),o=this.getStyle("stop-color",!0);o.getString()===""&&o.setValue("#000"),n.hasValue()&&(o=o.addOpacity(n)),this.offset=a,this.color=o.getColor()}},Zr=class extends B{constructor(e,r,t){super(e,r,t),this.type="animate",this.duration=0,this.initialValue=null,this.initialUnits="",this.removed=!1,this.frozen=!1,e.screen.animations.push(this),this.begin=this.getAttribute("begin").getMilliseconds(),this.maxDuration=this.begin+this.getAttribute("dur").getMilliseconds(),this.from=this.getAttribute("from"),this.to=this.getAttribute("to"),this.values=new w(e,"values",null);var a=this.getAttribute("values");a.hasValue()&&this.values.setValue(a.getString().split(";"))}getProperty(){var e=this.getAttribute("attributeType").getString(),r=this.getAttribute("attributeName").getString();return e==="CSS"?this.parent.getStyle(r,!0):this.parent.getAttribute(r,!0)}calcValue(){var{initialUnits:e}=this,{progress:r,from:t,to:a}=this.getProgress(),n=t.getNumber()+(a.getNumber()-t.getNumber())*r;return e==="%"&&(n*=100),"".concat(n).concat(e)}update(e){var{parent:r}=this,t=this.getProperty();if(this.initialValue||(this.initialValue=t.getString(),this.initialUnits=t.getUnits()),this.duration>this.maxDuration){var a=this.getAttribute("fill").getString("remove");if(this.getAttribute("repeatCount").getString()==="indefinite"||this.getAttribute("repeatDur").getString()==="indefinite")this.duration=0;else if(a==="freeze"&&!this.frozen)this.frozen=!0,r.animationFrozen=!0,r.animationFrozenValue=t.getString();else if(a==="remove"&&!this.removed)return this.removed=!0,t.setValue(r.animationFrozen?r.animationFrozenValue:this.initialValue),!0;return!1}this.duration+=e;var n=!1;if(this.begin{var l=n[u];return s+(l-s)*e}).join(" ");return o}},ds=class extends B{constructor(e,r,t){super(e,r,t),this.type="font",this.glyphs=Object.create(null),this.horizAdvX=this.getAttribute("horiz-adv-x").getNumber();var{definitions:a}=e,{children:n}=this;for(var o of n)switch(o.type){case"font-face":{this.fontFace=o;var s=o.getStyle("font-family");s.hasValue()&&(a[s.getString()]=this);break}case"missing-glyph":this.missingGlyph=o;break;case"glyph":{var u=o;u.arabicForm?(this.isRTL=!0,this.isArabic=!0,typeof this.glyphs[u.unicode]>"u"&&(this.glyphs[u.unicode]=Object.create(null)),this.glyphs[u.unicode][u.arabicForm]=u):this.glyphs[u.unicode]=u;break}}}render(){}},ps=class extends B{constructor(e,r,t){super(e,r,t),this.type="font-face",this.ascent=this.getAttribute("ascent").getNumber(),this.descent=this.getAttribute("descent").getNumber(),this.unitsPerEm=this.getAttribute("units-per-em").getNumber()}},ys=class extends F{constructor(){super(...arguments),this.type="missing-glyph",this.horizAdvX=0}},ms=class extends He{constructor(){super(...arguments),this.type="tref"}getText(){var e=this.getHrefAttribute().getDefinition();if(e){var r=e.children[0];if(r)return r.getText()}return""}},bs=class extends He{constructor(e,r,t){super(e,r,t),this.type="a";var{childNodes:a}=r,n=a[0],o=a.length>0&&Array.from(a).every(s=>s.nodeType===3);this.hasText=o,this.text=o?this.getTextFromNode(n):""}getText(){return this.text}renderChildren(e){if(this.hasText){super.renderChildren(e);var{document:r,x:t,y:a}=this,{mouse:n}=r.screen,o=new w(r,"fontSize",pr.parse(r.ctx.font).fontSize);n.isWorking()&&n.checkBoundingBox(this,new oe(t,a-o.getPixels("y"),t+this.measureText(e),a))}else if(this.children.length>0){var s=new Kr(this.document,null);s.children=this.children,s.parent=this,s.render(e)}}onClick(){var{window:e}=this.document;e&&e.open(this.getHrefAttribute().getString())}onMouseMove(){var e=this.document.ctx;e.canvas.style.cursor="pointer"}};function bg(i,e){var r=Object.keys(i);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(i);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),r.push.apply(r,t)}return r}function oi(i){for(var e=1;e{var{type:a,points:n}=t;switch(a){case q.LINE_TO:e&&e.lineTo(n[0],n[1]);break;case q.MOVE_TO:e&&e.moveTo(n[0],n[1]);break;case q.CURVE_TO:e&&e.bezierCurveTo(n[0],n[1],n[2],n[3],n[4],n[5]);break;case q.QUAD_TO:e&&e.quadraticCurveTo(n[0],n[1],n[2],n[3]);break;case q.ARC:{var[o,s,u,l,h,c,v,f]=n,g=u>l?u:l,p=u>l?1:u/l,y=u>l?l/u:1;e&&(e.translate(o,s),e.rotate(v),e.scale(p,y),e.arc(0,0,g,h,h+c,!!(1-f)),e.scale(1/p,1/y),e.rotate(-v),e.translate(-o,-s));break}case q.CLOSE_PATH:e&&e.closePath();break}})}renderChildren(e){this.setTextData(e),e.save();var r=this.parent.getStyle("text-decoration").getString(),t=this.getFontSize(),{glyphInfo:a}=this,n=e.fillStyle;r==="underline"&&e.beginPath(),a.forEach((o,s)=>{var{p0:u,p1:l,rotation:h,text:c}=o;e.save(),e.translate(u.x,u.y),e.rotate(h),e.fillStyle&&e.fillText(c,0,0),e.strokeStyle&&e.strokeText(c,0,0),e.restore(),r==="underline"&&(s===0&&e.moveTo(u.x,u.y+t/8),e.lineTo(l.x,l.y+t/5))}),r==="underline"&&(e.lineWidth=t/20,e.strokeStyle=n,e.stroke(),e.closePath()),e.restore()}getLetterSpacingAt(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0;return this.letterSpacingCache[e]||0}findSegmentToFitChar(e,r,t,a,n,o,s,u,l){var h=o,c=this.measureText(e,u);u===" "&&r==="justify"&&t-1&&(h+=this.getLetterSpacingAt(l));var v=this.textHeight/20,f=this.getEquidistantPointOnPath(h,v,0),g=this.getEquidistantPointOnPath(h+c,v,0),p={p0:f,p1:g},y=f&&g?Math.atan2(g.y-f.y,g.x-f.x):0;if(s){var m=Math.cos(Math.PI/2+y)*s,O=Math.cos(-y)*s;p.p0=oi(oi({},f),{},{x:f.x+m,y:f.y+O}),p.p1=oi(oi({},g),{},{x:g.x+m,y:g.y+O})}return h+=c,{offset:h,segment:p,rotation:y}}measureText(e,r){var{measuresCache:t}=this,a=r||this.getText();if(t.has(a))return t.get(a);var n=this.measureTargetText(e,a);return t.set(a,n),n}setTextData(e){if(!this.glyphInfo){var r=this.getText(),t=r.split(""),a=r.split(" ").length-1,n=this.parent.getAttribute("dx").split().map(T=>T.getPixels("x")),o=this.parent.getAttribute("dy").getPixels("y"),s=this.parent.getStyle("text-anchor").getString("start"),u=this.getStyle("letter-spacing"),l=this.parent.getStyle("letter-spacing"),h=0;!u.hasValue()||u.getValue()==="inherit"?h=l.getPixels():u.hasValue()&&u.getValue()!=="initial"&&u.getValue()!=="unset"&&(h=u.getPixels());var c=[],v=r.length;this.letterSpacingCache=c;for(var f=0;fC===0?0:T+E||0,0),p=this.measureText(e),y=Math.max(p+g,0);this.textWidth=p,this.textHeight=this.getFontSize(),this.glyphInfo=[];var m=this.getPathLength(),O=this.getStyle("startOffset").getNumber(0)*m,x=0;(s==="middle"||s==="center")&&(x=-y/2),(s==="end"||s==="right")&&(x=-y),x+=O,t.forEach((T,E)=>{var{offset:C,segment:S,rotation:A}=this.findSegmentToFitChar(e,s,y,m,a,x,o,T,E);x=C,!(!S.p0||!S.p1)&&this.glyphInfo.push({text:t[E],p0:S.p0,p1:S.p1,rotation:A})})}}parsePathData(e){if(this.pathLength=-1,!e)return[];var r=[],{pathParser:t}=e;for(t.reset();!t.isEnd();){var{current:a}=t,n=a?a.x:0,o=a?a.y:0,s=t.next(),u=s.type,l=[];switch(s.type){case q.MOVE_TO:this.pathM(t,l);break;case q.LINE_TO:u=this.pathL(t,l);break;case q.HORIZ_LINE_TO:u=this.pathH(t,l);break;case q.VERT_LINE_TO:u=this.pathV(t,l);break;case q.CURVE_TO:this.pathC(t,l);break;case q.SMOOTH_CURVE_TO:u=this.pathS(t,l);break;case q.QUAD_TO:this.pathQ(t,l);break;case q.SMOOTH_QUAD_TO:u=this.pathT(t,l);break;case q.ARC:l=this.pathA(t);break;case q.CLOSE_PATH:F.pathZ(t);break}s.type!==q.CLOSE_PATH?r.push({type:u,points:l,start:{x:n,y:o},pathLength:this.calcLength(n,o,u,l)}):r.push({type:q.CLOSE_PATH,points:[],pathLength:0})}return r}pathM(e,r){var{x:t,y:a}=F.pathM(e).point;r.push(t,a)}pathL(e,r){var{x:t,y:a}=F.pathL(e).point;return r.push(t,a),q.LINE_TO}pathH(e,r){var{x:t,y:a}=F.pathH(e).point;return r.push(t,a),q.LINE_TO}pathV(e,r){var{x:t,y:a}=F.pathV(e).point;return r.push(t,a),q.LINE_TO}pathC(e,r){var{point:t,controlPoint:a,currentPoint:n}=F.pathC(e);r.push(t.x,t.y,a.x,a.y,n.x,n.y)}pathS(e,r){var{point:t,controlPoint:a,currentPoint:n}=F.pathS(e);return r.push(t.x,t.y,a.x,a.y,n.x,n.y),q.CURVE_TO}pathQ(e,r){var{controlPoint:t,currentPoint:a}=F.pathQ(e);r.push(t.x,t.y,a.x,a.y)}pathT(e,r){var{controlPoint:t,currentPoint:a}=F.pathT(e);return r.push(t.x,t.y,a.x,a.y),q.QUAD_TO}pathA(e){var{rX:r,rY:t,sweepFlag:a,xAxisRotation:n,centp:o,a1:s,ad:u}=F.pathA(e);return a===0&&u>0&&(u-=2*Math.PI),a===1&&u<0&&(u+=2*Math.PI),[o.x,o.y,r,t,s,u,n,a]}calcLength(e,r,t,a){var n=0,o=null,s=null,u=0;switch(t){case q.LINE_TO:return this.getLineLength(e,r,a[0],a[1]);case q.CURVE_TO:for(n=0,o=this.getPointOnCubicBezier(0,e,r,a[0],a[1],a[2],a[3],a[4],a[5]),u=.01;u<=1;u+=.01)s=this.getPointOnCubicBezier(u,e,r,a[0],a[1],a[2],a[3],a[4],a[5]),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return n;case q.QUAD_TO:for(n=0,o=this.getPointOnQuadraticBezier(0,e,r,a[0],a[1],a[2],a[3]),u=.01;u<=1;u+=.01)s=this.getPointOnQuadraticBezier(u,e,r,a[0],a[1],a[2],a[3]),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;return n;case q.ARC:{n=0;var l=a[4],h=a[5],c=a[4]+h,v=Math.PI/180;if(Math.abs(l-c)c;u-=v)s=this.getPointOnEllipticalArc(a[0],a[1],a[2],a[3],u,0),n+=this.getLineLength(o.x,o.y,s.x,s.y),o=s;else for(u=l+v;u5&&arguments[5]!==void 0?arguments[5]:r,s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:t,u=(n-t)/(a-r+dr),l=Math.sqrt(e*e/(1+u*u));ar)return null;var{dataArray:n}=this;for(var o of n){if(o&&(o.pathLength<5e-5||t+o.pathLength+5e-5=0&&u>c)break;a=this.getPointOnEllipticalArc(o.points[0],o.points[1],o.points[2],o.points[3],u,o.points[6]);break}case q.CURVE_TO:u=s/o.pathLength,u>1&&(u=1),a=this.getPointOnCubicBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3],o.points[4],o.points[5]);break;case q.QUAD_TO:u=s/o.pathLength,u>1&&(u=1),a=this.getPointOnQuadraticBezier(u,o.start.x,o.start.y,o.points[0],o.points[1],o.points[2],o.points[3]);break}if(a)return a;break}return null}getLineLength(e,r,t,a){return Math.sqrt((t-e)*(t-e)+(a-r)*(a-r))}getPathLength(){return this.pathLength===-1&&(this.pathLength=this.dataArray.reduce((e,r)=>r.pathLength>0?e+r.pathLength:e,0)),this.pathLength}getPointOnCubicBezier(e,r,t,a,n,o,s,u,l){var h=u*hg(e)+o*cg(e)+a*fg(e)+r*vg(e),c=l*hg(e)+s*cg(e)+n*fg(e)+t*vg(e);return{x:h,y:c}}getPointOnQuadraticBezier(e,r,t,a,n,o,s){var u=o*gg(e)+a*dg(e)+r*pg(e),l=s*gg(e)+n*dg(e)+t*pg(e);return{x:u,y:l}}getPointOnEllipticalArc(e,r,t,a,n,o){var s=Math.cos(o),u=Math.sin(o),l={x:t*Math.cos(n),y:a*Math.sin(n)};return{x:e+(l.x*s-l.y*u),y:r+(l.x*u+l.y*s)}}buildEquidistantCache(e,r){var t=this.getPathLength(),a=r||.25,n=e||t/100;if(!this.equidistantCache||this.equidistantCache.step!==n||this.equidistantCache.precision!==a){this.equidistantCache={step:n,precision:a,points:[]};for(var o=0,s=0;s<=t;s+=a){var u=this.getPointOnPath(s),l=this.getPointOnPath(s+a);!u||!l||(o+=this.getLineLength(u.x,u.y,l.x,l.y),o>=n&&(this.equidistantCache.points.push({x:u.x,y:u.y,distance:s}),o-=n))}}}getEquidistantPointOnPath(e,r,t){if(this.buildEquidistantCache(r,t),e<0||e-this.getPathLength()>5e-5)return null;var a=Math.round(e/this.getPathLength()*(this.equidistantCache.points.length-1));return this.equidistantCache.points[a]||null}},PO=/^\s*data:(([^/,;]+\/[^/,;]+)(?:;([^,;=]+=[^,;=]+))?)?(?:;(base64))?,(.*)$/i,Ts=class extends qe{constructor(e,r,t){super(e,r,t),this.type="image",this.loaded=!1;var a=this.getHrefAttribute().getString();if(a){var n=a.endsWith(".svg")||/^\s*data:image\/svg\+xml/i.test(a);e.images.push(this),n?this.loadSvg(a):this.loadImage(a),this.isSvg=n}}loadImage(e){var r=this;return be(function*(){try{var t=yield r.document.createImage(e);r.image=t}catch(a){console.error('Error while loading image "'.concat(e,'":'),a)}r.loaded=!0})()}loadSvg(e){var r=this;return be(function*(){var t=PO.exec(e);if(t){var a=t[5];t[4]==="base64"?r.image=atob(a):r.image=decodeURIComponent(a)}else try{var n=yield r.document.fetch(e),o=yield n.text();r.image=o}catch(s){console.error('Error while loading image "'.concat(e,'":'),s)}r.loaded=!0})()}renderChildren(e){var{document:r,image:t,loaded:a}=this,n=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(!(!a||!t||!s||!u)){if(e.save(),e.translate(n,o),this.isSvg){var l=r.canvg.forkString(e,this.image,{ignoreMouse:!0,ignoreAnimation:!0,ignoreDimensions:!0,ignoreClear:!0,offsetX:0,offsetY:0,scaleWidth:s,scaleHeight:u});l.document.documentElement.parent=this,l.render()}else{var h=this.image;r.setViewBox({ctx:e,aspectRatio:this.getAttribute("preserveAspectRatio").getString(),width:s,desiredWidth:h.width,height:u,desiredHeight:h.height}),this.loaded&&(typeof h.complete>"u"||h.complete)&&e.drawImage(h,0,0)}e.restore()}}getBoundingBox(){var e=this.getAttribute("x").getPixels("x"),r=this.getAttribute("y").getPixels("y"),t=this.getStyle("width").getPixels("x"),a=this.getStyle("height").getPixels("y");return new oe(e,r,e+t,r+a)}},Os=class extends qe{constructor(){super(...arguments),this.type="symbol"}render(e){}},Ss=class{constructor(e){this.document=e,this.loaded=!1,e.fonts.push(this)}load(e,r){var t=this;return be(function*(){try{var{document:a}=t,n=yield a.canvg.parser.load(r),o=n.getElementsByTagName("font");Array.from(o).forEach(s=>{var u=a.createElement(s);a.definitions[e]=u})}catch(s){console.error('Error while loading font "'.concat(r,'":'),s)}t.loaded=!0})()}},RO=(()=>{class i extends B{constructor(r,t,a){super(r,t,a),this.type="style";var n=yr(Array.from(t.childNodes).map(s=>s.textContent).join("").replace(/(\/\*([^*]|[\r\n]|(\*+([^*/]|[\r\n])))*\*+\/)|(^[\s]*\/\/.*)/gm,"").replace(/@import.*;/g,"")),o=n.split("}");o.forEach(s=>{var u=s.trim();if(u){var l=u.split("{"),h=l[0].split(","),c=l[1].split(";");h.forEach(v=>{var f=v.trim();if(f){var g=r.styles[f]||{};if(c.forEach(m=>{var O=m.indexOf(":"),x=m.substr(0,O).trim(),T=m.substr(O+1,m.length-O).trim();x&&T&&(g[x]=new w(r,x,T))}),r.styles[f]=g,r.stylesSpecificity[f]=xO(f),f==="@font-face"){var p=g["font-family"].getString().replace(/"|'/g,""),y=g.src.getString().split(",");y.forEach(m=>{if(m.indexOf('format("svg")')>0){var O=og(m);O&&new Ss(r).load(p,O)}})}}})}})}}return i.parseExternalUrl=og,i})(),Es=class extends qe{constructor(){super(...arguments),this.type="use"}setContext(e){super.setContext(e);var r=this.getAttribute("x"),t=this.getAttribute("y");r.hasValue()&&e.translate(r.getPixels("x"),0),t.hasValue()&&e.translate(0,t.getPixels("y"))}path(e){var{element:r}=this;r&&r.path(e)}renderChildren(e){var{document:r,element:t}=this;if(t){var a=t;if(t.type==="symbol"&&(a=new Ye(r,null),a.attributes.viewBox=new w(r,"viewBox",t.getAttribute("viewBox").getString()),a.attributes.preserveAspectRatio=new w(r,"preserveAspectRatio",t.getAttribute("preserveAspectRatio").getString()),a.attributes.overflow=new w(r,"overflow",t.getAttribute("overflow").getString()),a.children=t.children,t.styles.opacity=new w(r,"opacity",this.calculateOpacity())),a.type==="svg"){var n=this.getStyle("width",!1,!0),o=this.getStyle("height",!1,!0);n.hasValue()&&(a.attributes.width=new w(r,"width",n.getString())),o.hasValue()&&(a.attributes.height=new w(r,"height",o.getString()))}var s=a.parent;a.parent=this,a.render(e),a.parent=s}}getBoundingBox(e){var{element:r}=this;return r?r.getBoundingBox(e):null}elementTransform(){var{document:e,element:r}=this;return Ms.fromElement(e,r)}get element(){return this.cachedElement||(this.cachedElement=this.getHrefAttribute().getDefinition()),this.cachedElement}};function ui(i,e,r,t,a,n){return i[r*t*4+e*4+n]}function li(i,e,r,t,a,n,o){i[r*t*4+e*4+n]=o}function U(i,e,r){var t=i[e];return t*r}function Ce(i,e,r,t){return e+Math.cos(i)*r+Math.sin(i)*t}var bi=class extends B{constructor(e,r,t){super(e,r,t),this.type="feColorMatrix";var a=se(this.getAttribute("values").getString());switch(this.getAttribute("type").getString("matrix")){case"saturate":{var n=a[0];a=[.213+.787*n,.715-.715*n,.072-.072*n,0,0,.213-.213*n,.715+.285*n,.072-.072*n,0,0,.213-.213*n,.715-.715*n,.072+.928*n,0,0,0,0,0,1,0,0,0,0,0,1];break}case"hueRotate":{var o=a[0]*Math.PI/180;a=[Ce(o,.213,.787,-.213),Ce(o,.715,-.715,-.715),Ce(o,.072,-.072,.928),0,0,Ce(o,.213,-.213,.143),Ce(o,.715,.285,.14),Ce(o,.072,-.072,-.283),0,0,Ce(o,.213,-.213,-.787),Ce(o,.715,-.715,.715),Ce(o,.072,.928,.072),0,0,0,0,0,1,0,0,0,0,0,1];break}case"luminanceToAlpha":a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,.2125,.7154,.0721,0,0,0,0,0,0,1];break}this.matrix=a,this.includeOpacity=this.getAttribute("includeOpacity").hasValue()}apply(e,r,t,a,n){for(var{includeOpacity:o,matrix:s}=this,u=e.getImageData(0,0,a,n),l=0;l{class i extends B{constructor(){super(...arguments),this.type="mask"}apply(r,t){var{document:a}=this,n=this.getAttribute("x").getPixels("x"),o=this.getAttribute("y").getPixels("y"),s=this.getStyle("width").getPixels("x"),u=this.getStyle("height").getPixels("y");if(!s&&!u){var l=new oe;this.children.forEach(p=>{l.addBoundingBox(p.getBoundingBox(r))}),n=Math.floor(l.x1),o=Math.floor(l.y1),s=Math.floor(l.width),u=Math.floor(l.height)}var h=this.removeStyles(t,i.ignoreStyles),c=a.createCanvas(n+s,o+u),v=c.getContext("2d");a.screen.setDefaults(v),this.renderChildren(v),new bi(a,{nodeType:1,childNodes:[],attributes:[{nodeName:"type",value:"luminanceToAlpha"},{nodeName:"includeOpacity",value:"true"}]}).apply(v,0,0,n+s,o+u);var f=a.createCanvas(n+s,o+u),g=f.getContext("2d");a.screen.setDefaults(g),t.render(g),g.globalCompositeOperation="destination-in",g.fillStyle=v.createPattern(c,"no-repeat"),g.fillRect(0,0,n+s,o+u),r.fillStyle=g.createPattern(f,"no-repeat"),r.fillRect(0,0,n+s,o+u),this.restoreStyles(t,h)}render(r){}}return i.ignoreStyles=["mask","transform","clip-path"],i})(),xg=()=>{},ws=class extends B{constructor(){super(...arguments),this.type="clipPath"}apply(e){var{document:r}=this,t=Reflect.getPrototypeOf(e),{beginPath:a,closePath:n}=e;t&&(t.beginPath=xg,t.closePath=xg),Reflect.apply(a,e,[]),this.children.forEach(o=>{if(!(typeof o.path>"u")){var s=typeof o.elementTransform<"u"?o.elementTransform():null;s||(s=Ms.fromElement(r,o)),s&&s.apply(e),o.path(e),t&&(t.closePath=n),s&&s.unapply(e)}}),Reflect.apply(n,e,[]),e.clip(),t&&(t.beginPath=a,t.closePath=n)}render(e){}},IO=(()=>{class i extends B{constructor(){super(...arguments),this.type="filter"}apply(r,t){var{document:a,children:n}=this,o=t.getBoundingBox(r);if(o){var s=0,u=0;n.forEach(O=>{var x=O.extraFilterDistance||0;s=Math.max(s,x),u=Math.max(u,x)});var l=Math.floor(o.width),h=Math.floor(o.height),c=l+2*s,v=h+2*u;if(!(c<1||v<1)){var f=Math.floor(o.x),g=Math.floor(o.y),p=this.removeStyles(t,i.ignoreStyles),y=a.createCanvas(c,v),m=y.getContext("2d");a.screen.setDefaults(m),m.translate(-f+s,-g+u),t.render(m),n.forEach(O=>{typeof O.apply=="function"&&O.apply(m,0,0,c,v)}),r.drawImage(y,0,0,c,v,f-s,g-u,c,v),this.restoreStyles(t,p)}}}render(r){}}return i.ignoreStyles=["filter","transform","clip-path"],i})(),Cs=class extends B{constructor(e,r,t){super(e,r,t),this.type="feDropShadow",this.addStylesFromStyleDefinition()}apply(e,r,t,a,n){}},qs=class extends B{constructor(){super(...arguments),this.type="feMorphology"}apply(e,r,t,a,n){}},As=class extends B{constructor(){super(...arguments),this.type="feComposite"}apply(e,r,t,a,n){}},Ps=class extends B{constructor(e,r,t){super(e,r,t),this.type="feGaussianBlur",this.blurRadius=Math.floor(this.getAttribute("stdDeviation").getNumber()),this.extraFilterDistance=this.blurRadius}apply(e,r,t,a,n){var{document:o,blurRadius:s}=this,u=o.window?o.window.document.body:null,l=e.canvas;l.id=o.getUniqueId(),u&&(l.style.display="none",u.appendChild(l)),sg(l,r,t,a,n,s),u&&u.removeChild(l)}},Rs=class extends B{constructor(){super(...arguments),this.type="title"}},Ns=class extends B{constructor(){super(...arguments),this.type="desc"}},MO={svg:Ye,rect:pi,circle:is,ellipse:as,line:ns,polyline:yi,polygon:ss,path:F,pattern:os,marker:us,defs:ls,linearGradient:hs,radialGradient:cs,stop:fs,animate:Zr,animateColor:vs,animateTransform:gs,font:ds,"font-face":ps,"missing-glyph":ys,glyph:gi,text:He,tspan:di,tref:ms,a:bs,textPath:xs,image:Ts,g:Kr,symbol:Os,style:RO,use:Es,mask:NO,clipPath:ws,filter:IO,feDropShadow:Cs,feMorphology:qs,feComposite:As,feColorMatrix:bi,feGaussianBlur:Ps,title:Rs,desc:Ns};function Tg(i,e){var r=Object.keys(i);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(i);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),r.push.apply(r,t)}return r}function VO(i){for(var e=1;e1&&arguments[1]!==void 0?arguments[1]:!1,r=document.createElement("img");return e&&(r.crossOrigin="Anonymous"),new Promise((t,a)=>{r.onload=()=>{t(r)},r.onerror=(n,o,s,u,l)=>{a(l)},r.src=i})}),Is.apply(this,arguments)}var LO=(()=>{class i{constructor(r){var{rootEmSize:t=12,emSize:a=12,createCanvas:n=i.createCanvas,createImage:o=i.createImage,anonymousCrossOrigin:s}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.canvg=r,this.definitions=Object.create(null),this.styles=Object.create(null),this.stylesSpecificity=Object.create(null),this.images=[],this.fonts=[],this.emSizeStack=[],this.uniqueId=0,this.screen=r.screen,this.rootEmSize=t,this.emSize=a,this.createCanvas=n,this.createImage=this.bindCreateImage(o,s),this.screen.wait(this.isImagesLoaded.bind(this)),this.screen.wait(this.isFontsLoaded.bind(this))}bindCreateImage(r,t){return typeof t=="boolean"?(a,n)=>r(a,typeof n=="boolean"?n:t):r}get window(){return this.screen.window}get fetch(){return this.screen.fetch}get ctx(){return this.screen.ctx}get emSize(){var{emSizeStack:r}=this;return r[r.length-1]}set emSize(r){var{emSizeStack:t}=this;t.push(r)}popEmSize(){var{emSizeStack:r}=this;r.pop()}getUniqueId(){return"canvg".concat(++this.uniqueId)}isImagesLoaded(){return this.images.every(r=>r.loaded)}isFontsLoaded(){return this.fonts.every(r=>r.loaded)}createDocumentElement(r){var t=this.createElement(r.documentElement);return t.root=!0,t.addStylesFromStyleDefinition(),this.documentElement=t,t}createElement(r){var t=r.nodeName.replace(/^[^:]+:/,""),a=i.elementTypes[t];return typeof a<"u"?new a(this,r):new rs(this,r)}createTextNode(r){return new ts(this,r)}setViewBox(r){this.screen.setViewBox(VO({document:this},r))}}return i.createCanvas=_O,i.createImage=DO,i.elementTypes=MO,i})();function Og(i,e){var r=Object.keys(i);if(Object.getOwnPropertySymbols){var t=Object.getOwnPropertySymbols(i);e&&(t=t.filter(function(a){return Object.getOwnPropertyDescriptor(i,a).enumerable})),r.push.apply(r,t)}return r}function Ge(i){for(var e=1;e2&&arguments[2]!==void 0?arguments[2]:{};this.parser=new Qr(t),this.screen=new Eg(e,t),this.options=t;var a=new LO(this,t),n=a.createDocumentElement(r);this.document=a,this.documentElement=n}static from(e,r){var t=arguments;return be(function*(){var a=t.length>2&&t[2]!==void 0?t[2]:{},n=new Qr(a),o=yield n.parse(r);return new i(e,o,a)})()}static fromString(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},a=new Qr(t),n=a.parseFromString(r);return new i(e,n,t)}fork(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return i.from(e,r,Ge(Ge({},this.options),t))}forkString(e,r){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return i.fromString(e,r,Ge(Ge({},this.options),t))}ready(){return this.screen.ready()}isReady(){return this.screen.isReady()}render(){var e=arguments,r=this;return be(function*(){var t=e.length>0&&e[0]!==void 0?e[0]:{};r.start(Ge({enableRedraw:!0,ignoreAnimation:!0,ignoreMouse:!0},t)),yield r.ready(),r.stop()})()}start(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{documentElement:r,screen:t,options:a}=this;t.start(r,Ge(Ge({enableRedraw:!0},a),e))}stop(){this.screen.stop()}resize(e){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:e,t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;this.documentElement.resize(e,r,t)}};export{bs as AElement,vs as AnimateColorElement,Zr as AnimateElement,gs as AnimateTransformElement,oe as BoundingBox,hg as CB1,cg as CB2,fg as CB3,vg as CB4,Sg as Canvg,is as CircleElement,ws as ClipPathElement,ls as DefsElement,Ns as DescElement,LO as Document,B as Element,as as EllipseElement,bi as FeColorMatrixElement,As as FeCompositeElement,Cs as FeDropShadowElement,Ps as FeGaussianBlurElement,qs as FeMorphologyElement,IO as FilterElement,pr as Font,ds as FontElement,ps as FontFaceElement,Kr as GElement,gi as GlyphElement,mi as GradientElement,Ts as ImageElement,ns as LineElement,hs as LinearGradientElement,us as MarkerElement,NO as MaskElement,fi as Matrix,ys as MissingGlyphElement,Wn as Mouse,dr as PSEUDO_ZERO,Qr as Parser,F as PathElement,q as PathParser,os as PatternElement,$ as Point,ss as PolygonElement,yi as PolylineElement,w as Property,gg as QB1,dg as QB2,pg as QB3,cs as RadialGradientElement,pi as RectElement,qe as RenderedElement,Kn as Rotate,Ye as SVGElement,Ss as SVGFontLoader,Zn as Scale,Eg as Screen,vi as Skew,Jn as SkewX,es as SkewY,fs as StopElement,RO as StyleElement,Os as SymbolElement,ms as TRefElement,di as TSpanElement,He as TextElement,xs as TextPathElement,Rs as TitleElement,Ms as Transform,Qn as Translate,rs as UnknownElement,Es as UseElement,Xn as ViewPort,yr as compressSpaces,Sg as default,xO as getSelectorSpecificity,cO as normalizeAttributeName,fO as normalizeColor,og as parseExternalUrl,VC as presets,se as toNumbers,uO as trimLeft,lO as trimRight,ug as vectorMagnitude,lg as vectorsAngle,Yn as vectorsRatio}; diff --git a/docs/chunk-FK6H3RFT.js b/docs/chunk-FK6H3RFT.js new file mode 100644 index 0000000..81a1079 --- /dev/null +++ b/docs/chunk-FK6H3RFT.js @@ -0,0 +1 @@ +function o(e){"@babel/helpers - typeof";return o=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o(e)}export{o as a}; diff --git a/docs/chunk-IVUHPW63.js b/docs/chunk-IVUHPW63.js new file mode 100644 index 0000000..d4f4911 --- /dev/null +++ b/docs/chunk-IVUHPW63.js @@ -0,0 +1,3 @@ +import"./chunk-IFGU66OU.js";function ke(o,i){(i==null||i>o.length)&&(i=o.length);for(var s=0,c=Array(i);s2?c-2:0),d=2;d1?s-1:0),f=1;f"u"?null:y(BigInt.prototype.toString),Ge=typeof Symbol>"u"?null:y(Symbol.prototype.toString),O=y(Object.prototype.hasOwnProperty),ht=y(Object.prototype.toString),b=y(RegExp.prototype.test),Z=Wn(TypeError);function y(o){return function(i){i instanceof RegExp&&(i.lastIndex=0);for(var s=arguments.length,c=new Array(s>1?s-1:0),f=1;f2&&arguments[2]!==void 0?arguments[2]:_t;if(ve&&ve(o,null),!j(i))return o;let c=i.length;for(;c--;){let f=i[c];if(typeof f=="string"){let d=s(f);d!==f&&(kn(i)||(i[c]=d),f=d)}o[f]=!0}return o}function Yn(o){for(let i=0;i/g),Zn=N(/\${[\w\W]*/g),Jn=N(/^data-[\-\w.\u00B7-\uFFFF]+$/),Qn=N(/^aria-[\-\w]+$/),$e=N(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),to=N(/^(?:\w+script|data):/i),eo=N(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),no=N(/^html$/i),oo=N(/^[a-z][.\w]*(-[.\w]+)+$/i),Xe=N(/<[/\w!]/g),Ve=N(/<[/\w]/g),ro=N(/<\/no(script|embed|frames)/i),io=N(/\/>/i),x={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,processingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},ao=function(){return typeof window>"u"?null:window},so=function(i,s){if(typeof i!="object"||typeof i.createPolicy!="function")return null;let c=null,f="data-tt-policy-suffix";s&&s.hasAttribute(f)&&(c=s.getAttribute(f));let d="dompurify"+(c?"#"+c:"");try{return i.createPolicy(d,{createHTML(S){return S},createScriptURL(S){return S}})}catch{return console.warn("TrustedTypes policy "+d+" could not be created."),null}},qe=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},Y=function(i,s,c,f){return O(i,s)&&j(i[s])?p(f.base?I(f.base):{},i[s],f.transform):c};function Je(){let o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:ao(),i=r=>Je(r);if(i.version="3.4.13",i.removed=[],!o||!o.document||o.document.nodeType!==x.document||!o.Element)return i.isSupported=!1,i;let s=o.document,c=s,f=c.currentScript;o.DocumentFragment;let d=o.HTMLTemplateElement,S=o.Node,lt=o.Element,P=o.NodeFilter,ct=o.NamedNodeMap;ct===void 0&&(o.NamedNodeMap||o.MozNamedAttrMap),o.HTMLFormElement;let Pt=o.DOMParser,gt=o.trustedTypes,$=lt.prototype,Qe=k($,"cloneNode"),xt=k($,"remove"),tn=k($,"nextSibling"),J=k($,"childNodes"),X=k($,"parentNode"),se=k($,"shadowRoot"),kt=k($,"attributes"),D=S&&S.prototype?k(S.prototype,"nodeType"):null,v=S&&S.prototype?k(S.prototype,"nodeName"):null,Et=S&&S.prototype?k(S.prototype,"ownerDocument"):null;if(typeof d=="function"){let r=s.createElement("template");r.content&&r.content.ownerDocument&&(s=r.content.ownerDocument)}let w,V="",vt,le=!1,ut=0,ce=function(){if(ut>0)throw Z('A configured TRUSTED_TYPES_POLICY callback (createHTML or createScriptURL) must not call DOMPurify.sanitize, as that causes infinite recursion. Do not pass a policy whose callbacks wrap DOMPurify as TRUSTED_TYPES_POLICY; see the "DOMPurify and Trusted Types" section of the README.')},Q=function(t){ce(),ut++;try{return w.createHTML(t)}finally{ut--}},en=function(t){ce(),ut++;try{return w.createScriptURL(t)}finally{ut--}},nn=function(){return le||(vt=so(gt,f),le=!0),vt},At=s,Ut=At.implementation,ue=At.createNodeIterator,on=At.createDocumentFragment,rn=At.getElementsByTagName,an=c.importNode,T=qe();i.isSupported=typeof Ke=="function"&&typeof X=="function"&&Ut&&Ut.createHTMLDocument!==void 0;let sn=qn,ln=Kn,cn=Zn,un=Jn,fn=Qn,pn=to,fe=eo,mn=oo,pe=$e,h=null,Ft=p({},[...Be,...ee,...ne,...oe,...We]),_=null,zt=p({},[...Ye,...re,...je,...Mt]),A=Object.seal(st(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),ft=null,me=null,H=Object.seal(st(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}})),de=!0,Ht=!0,Te=!1,he=!0,G=!1,B=!0,q=!1,Gt=!1,yt=null,St=null,Bt=!1,tt=!1,bt=!1,Ot=!1,_e=!0,ge=!1,Ee="user-content-",Wt=!0,Rt=!1,et={},U=null,Yt=p({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","selectedcontent","style","svg","template","thead","title","video","xmp"]),Ae=null,ye=p({},["audio","video","img","source","image","track"]),jt=null,Se=p({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Nt="http://www.w3.org/1998/Math/MathML",It="http://www.w3.org/2000/svg",F="http://www.w3.org/1999/xhtml",nt=F,$t=!1,Xt=null,dn=p({},[Nt,It,F],te),be=R(["mi","mo","mn","ms","mtext"]),Vt=p({},be),Oe=R(["annotation-xml"]),qt=p({},Oe),Tn=p({},["title","style","font","a","script"]),pt=null,hn=["application/xhtml+xml","text/html"],_n="text/html",g=null,ot=null,gn=s.createElement("form"),Re=function(t){return t instanceof RegExp||t instanceof Function},Kt=function(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(ot&&ot===t)return;(!t||typeof t!="object")&&(t={}),t=I(t),pt=hn.indexOf(t.PARSER_MEDIA_TYPE)===-1?_n:t.PARSER_MEDIA_TYPE,g=pt==="application/xhtml+xml"?te:_t,h=Y(t,"ALLOWED_TAGS",Ft,{transform:g}),_=Y(t,"ALLOWED_ATTR",zt,{transform:g}),Xt=Y(t,"ALLOWED_NAMESPACES",dn,{transform:te}),jt=Y(t,"ADD_URI_SAFE_ATTR",Se,{transform:g,base:Se}),Ae=Y(t,"ADD_DATA_URI_TAGS",ye,{transform:g,base:ye}),U=Y(t,"FORBID_CONTENTS",Yt,{transform:g}),ft=Y(t,"FORBID_TAGS",I({}),{transform:g}),me=Y(t,"FORBID_ATTR",I({}),{transform:g}),et=O(t,"USE_PROFILES")?t.USE_PROFILES&&typeof t.USE_PROFILES=="object"?I(t.USE_PROFILES):t.USE_PROFILES:!1,de=t.ALLOW_ARIA_ATTR!==!1,Ht=t.ALLOW_DATA_ATTR!==!1,Te=t.ALLOW_UNKNOWN_PROTOCOLS||!1,he=t.ALLOW_SELF_CLOSE_IN_ATTR!==!1,G=t.SAFE_FOR_TEMPLATES||!1,B=t.SAFE_FOR_XML!==!1,q=t.WHOLE_DOCUMENT||!1,tt=t.RETURN_DOM||!1,bt=t.RETURN_DOM_FRAGMENT||!1,Ot=t.RETURN_TRUSTED_TYPE||!1,Bt=t.FORCE_BODY||!1,_e=t.SANITIZE_DOM!==!1,ge=t.SANITIZE_NAMED_PROPS||!1,Wt=t.KEEP_CONTENT!==!1,Rt=t.IN_PLACE||!1,pe=$n(t.ALLOWED_URI_REGEXP)?t.ALLOWED_URI_REGEXP:$e,nt=typeof t.NAMESPACE=="string"?t.NAMESPACE:F,Vt=O(t,"MATHML_TEXT_INTEGRATION_POINTS")&&t.MATHML_TEXT_INTEGRATION_POINTS&&typeof t.MATHML_TEXT_INTEGRATION_POINTS=="object"?I(t.MATHML_TEXT_INTEGRATION_POINTS):p({},be),qt=O(t,"HTML_INTEGRATION_POINTS")&&t.HTML_INTEGRATION_POINTS&&typeof t.HTML_INTEGRATION_POINTS=="object"?I(t.HTML_INTEGRATION_POINTS):p({},Oe);let e=O(t,"CUSTOM_ELEMENT_HANDLING")&&t.CUSTOM_ELEMENT_HANDLING&&typeof t.CUSTOM_ELEMENT_HANDLING=="object"?I(t.CUSTOM_ELEMENT_HANDLING):st(null);if(A=st(null),O(e,"tagNameCheck")&&Re(e.tagNameCheck)&&(A.tagNameCheck=e.tagNameCheck),O(e,"attributeNameCheck")&&Re(e.attributeNameCheck)&&(A.attributeNameCheck=e.attributeNameCheck),O(e,"allowCustomizedBuiltInElements")&&typeof e.allowCustomizedBuiltInElements=="boolean"&&(A.allowCustomizedBuiltInElements=e.allowCustomizedBuiltInElements),N(A),G&&(Ht=!1),bt&&(tt=!0),et&&(h=p({},We),_=st(null),et.html===!0&&(p(h,Be),p(_,Ye)),et.svg===!0&&(p(h,ee),p(_,re),p(_,Mt)),et.svgFilters===!0&&(p(h,ne),p(_,re),p(_,Mt)),et.mathMl===!0&&(p(h,oe),p(_,je),p(_,Mt))),H.tagCheck=null,H.attributeCheck=null,O(t,"ADD_TAGS")&&(typeof t.ADD_TAGS=="function"?H.tagCheck=t.ADD_TAGS:j(t.ADD_TAGS)&&(h===Ft&&(h=I(h)),p(h,t.ADD_TAGS,g))),O(t,"ADD_ATTR")&&(typeof t.ADD_ATTR=="function"?H.attributeCheck=t.ADD_ATTR:j(t.ADD_ATTR)&&(_===zt&&(_=I(_)),p(_,t.ADD_ATTR,g))),O(t,"ADD_URI_SAFE_ATTR")&&j(t.ADD_URI_SAFE_ATTR)&&p(jt,t.ADD_URI_SAFE_ATTR,g),O(t,"FORBID_CONTENTS")&&j(t.FORBID_CONTENTS)&&(U===Yt&&(U=I(U)),p(U,t.FORBID_CONTENTS,g)),O(t,"ADD_FORBID_CONTENTS")&&j(t.ADD_FORBID_CONTENTS)&&(U===Yt&&(U=I(U)),p(U,t.ADD_FORBID_CONTENTS,g)),Wt&&(h["#text"]=!0),q&&p(h,["html","head","body"]),h.table&&(p(h,["tbody"]),delete ft.tbody),t.TRUSTED_TYPES_POLICY){if(typeof t.TRUSTED_TYPES_POLICY.createHTML!="function")throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof t.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Z('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');let n=w;w=t.TRUSTED_TYPES_POLICY;try{V=Q("")}catch(a){throw w=n,a}}else t.TRUSTED_TYPES_POLICY===null?(w=void 0,V=""):(w===void 0&&(w=nn()),w&&typeof V=="string"&&(V=Q("")));R&&R(t),ot=t},Ne=p({},[...ee,...ne,...Xn]),Ie=p({},[...oe,...Vn]),En=function(t,e,n){return e.namespaceURI===F?t==="svg":e.namespaceURI===Nt?t==="svg"&&(n==="annotation-xml"||Vt[n]):!!Ne[t]},An=function(t,e,n){return e.namespaceURI===F?t==="math":e.namespaceURI===It?t==="math"&&qt[n]:!!Ie[t]},yn=function(t,e,n){return e.namespaceURI===It&&!qt[n]||e.namespaceURI===Nt&&!Vt[n]?!1:!Ie[t]&&(Tn[t]||!Ne[t])},Sn=function(t){let e=X(t);(!e||!e.tagName)&&(e={namespaceURI:nt,tagName:"template"});let n=_t(t.tagName),a=_t(e.tagName);return Xt[t.namespaceURI]?t.namespaceURI===It?En(n,e,a):t.namespaceURI===Nt?An(n,e,a):t.namespaceURI===F?yn(n,e,a):!!(pt==="application/xhtml+xml"&&Xt[t.namespaceURI]):!1},W=function(t){at(i.removed,{element:t});try{X(t).removeChild(t)}catch{if(xt(t),!X(t))throw Z("a node selected for removal could not be detached from its tree and cannot be safely returned; refusing to sanitize in place")}},Dt=function(t){mt(t);let e=J(t);if(e){let a=[];it(e,l=>{at(a,l)}),it(a,l=>{try{xt(l)}catch{}})}let n=kt(t);if(n)for(let a=n.length-1;a>=0;--a){let l=n[a],u=l&&l.name;if(typeof u=="string")try{t.removeAttribute(u)}catch{}}},K=function(t,e){try{at(i.removed,{attribute:e.getAttributeNode(t),from:e})}catch{at(i.removed,{attribute:null,from:e})}if(e.removeAttribute(t),t==="is")if(tt||bt)try{W(e)}catch{}else try{e.setAttribute(t,"")}catch{}},bn=function(t){let e=kt(t);if(e)for(let n=e.length-1;n>=0;--n){let a=e[n],l=a&&a.name;if(!(typeof l!="string"||_[g(l)]))try{t.removeAttribute(l)}catch{}}},mt=function(t){let e=[t];for(;e.length>0;){let n=e.pop();(D?D(n):n.nodeType)===x.element&&bn(n);let l=J(n);if(l)for(let u=l.length-1;u>=0;--u)e.push(l[u])}},On=function(t){if(!B)return;let e=[t];for(;e.length>0;){let n=e.pop(),a=D?D(n):n.nodeType;if(a===x.processingInstruction||a===x.comment&&b(Ve,n.data)){try{xt(n)}catch{}continue}if(a===x.element){let u=n,m=g(v?v(n):n.nodeName);try{u.hasAttribute&&u.hasAttribute("patchsrc")&&u.removeAttribute("patchsrc"),u.hasAttribute&&u.hasAttribute("for")&&m!=="label"&&m!=="output"&&u.removeAttribute("for")}catch{}}let l=J(n);if(l)for(let u=l.length-1;u>=0;--u)e.push(l[u])}},De=function(t){let e=null,n=null;if(Bt)t=""+t;else{let u=Fe(t,/^[\r\n\t ]+/);n=u&&u[0]}pt==="application/xhtml+xml"&&nt===F&&(t=''+t+"");let a=w?Q(t):t;if(nt===F)try{e=new Pt().parseFromString(a,pt)}catch{}if(!e||!e.documentElement){e=Ut.createDocument(nt,"template",null);try{e.documentElement.innerHTML=$t?V:a}catch{}}let l=e.body||e.documentElement;return t&&n&&l.insertBefore(s.createTextNode(n),l.childNodes[0]||null),nt===F?rn.call(e,q?"html":"body")[0]:q?e.documentElement:l},Le=function(t){let e=Et?Et(t):t.ownerDocument;return ue.call(e||t,t,P.SHOW_ELEMENT|P.SHOW_COMMENT|P.SHOW_TEXT|P.SHOW_PROCESSING_INSTRUCTION|P.SHOW_CDATA_SECTION,null)},Lt=function(t){return t=Tt(t,sn," "),t=Tt(t,ln," "),t=Tt(t,cn," "),t},Zt=function(t){var e;t.normalize();let n=Et?Et(t):t.ownerDocument,a=ue.call(n||t,t,P.SHOW_TEXT|P.SHOW_COMMENT|P.SHOW_CDATA_SECTION|P.SHOW_PROCESSING_INSTRUCTION,null),l=a.nextNode();for(;l;)l.data=Lt(l.data),l=a.nextNode();let u=(e=t.querySelectorAll)===null||e===void 0?void 0:e.call(t,"template");u&&it(u,m=>{rt(m.content)&&Zt(m.content)})},wt=function(t){let e=v?v(t):null;return typeof e!="string"||g(e)!=="form"?!1:typeof t.nodeName!="string"||typeof t.textContent!="string"||typeof t.removeChild!="function"||t.attributes!==kt(t)||typeof t.removeAttribute!="function"||typeof t.setAttribute!="function"||typeof t.namespaceURI!="string"||typeof t.insertBefore!="function"||typeof t.hasChildNodes!="function"||t.nodeType!==D(t)||t.childNodes!==J(t)},rt=function(t){if(!D||typeof t!="object"||t===null)return!1;try{return D(t)===x.documentFragment}catch{return!1}},dt=function(t){if(!D||typeof t!="object"||t===null)return!1;try{return typeof D(t)=="number"}catch{return!1}};function z(r,t,e){r.length!==0&&it(r,n=>{n.call(i,t,e,ot)})}let Rn=function(t,e){return!!(B&&t.hasChildNodes()&&!dt(t.firstElementChild)&&b(Xe,t.textContent)&&b(Xe,t.innerHTML)||B&&t.namespaceURI===F&&e==="style"&&dt(t.firstElementChild)||t.nodeType===x.processingInstruction||B&&t.nodeType===x.comment&&b(Ve,t.data))},Nn=function(t,e,n){if(!ft[e]&&Pe(e)&&(A.tagNameCheck instanceof RegExp&&b(A.tagNameCheck,e)||A.tagNameCheck instanceof Function&&A.tagNameCheck(e)))return!1;if(Wt&&!U[e]){let a=X(t),l=J(t);if(l&&a){let u=l.length;for(let m=u-1;m>=0;--m){let E=t===n?Qe(l[m],!0):l[m];a.insertBefore(E,tn(t))}}}return W(t),!0},we=function(t,e,n,a){return t.length===0?e:e===n||e===a?I(e):e},Ce=function(t,e){if(z(T.beforeSanitizeElements,t,null),t!==e&&X(t)===null)return Rt&&mt(t),!0;if(wt(t))return W(t),!0;let n=g(v?v(t):t.nodeName);if(h=we(T.uponSanitizeElement,h,Ft,yt),z(T.uponSanitizeElement,t,{tagName:n,allowedTags:h}),t!==e&&X(t)===null)return Rt&&mt(t),!0;if(Rn(t,n))return W(t),!0;if(ft[n]||!(H.tagCheck instanceof Function&&H.tagCheck(n))&&!h[n]){let l=Nn(t,n,e);return l===!1&&z(T.afterSanitizeElements,t,null),l}if((D?D(t):t.nodeType)===x.element&&!Sn(t)||(n==="noscript"||n==="noembed"||n==="noframes")&&b(ro,t.innerHTML))return W(t),!0;if(G&&t.nodeType===x.text){let l=Lt(t.textContent);t.textContent!==l&&(at(i.removed,{element:t.cloneNode()}),t.textContent=l)}return z(T.afterSanitizeElements,t,null),!1},Me=function(t,e,n){if(me[e]||B&&e==="patchsrc"||B&&e==="for"&&t!=="label"&&t!=="output"||_e&&(e==="id"||e==="name")&&(n in s||n in gn))return!1;let a=_[e]||H.attributeCheck instanceof Function&&H.attributeCheck(e,t);if(!(Ht&&b(un,e))){if(!(de&&b(fn,e))){if(a){if(!jt[e]){if(!b(pe,Tt(n,fe,""))){if(!((e==="src"||e==="xlink:href"||e==="href")&&t!=="script"&&ze(n,"data:")===0&&Ae[t])){if(!(Te&&!b(pn,Tt(n,fe,"")))){if(n)return!1}}}}}else if(!(Pe(t)&&(A.tagNameCheck instanceof RegExp&&b(A.tagNameCheck,t)||A.tagNameCheck instanceof Function&&A.tagNameCheck(t))&&(A.attributeNameCheck instanceof RegExp&&b(A.attributeNameCheck,e)||A.attributeNameCheck instanceof Function&&A.attributeNameCheck(e,t))||e==="is"&&A.allowCustomizedBuiltInElements&&(A.tagNameCheck instanceof RegExp&&b(A.tagNameCheck,n)||A.tagNameCheck instanceof Function&&A.tagNameCheck(n))))return!1}}return!0},In=p({},["annotation-xml","color-profile","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","missing-glyph"]),Pe=function(t){return!In[_t(t)]&&b(mn,t)},Dn=function(t,e,n,a){if(w&&typeof gt=="object"&&typeof gt.getAttributeType=="function"&&!n)switch(gt.getAttributeType(t,e)){case"TrustedHTML":return Q(a);case"TrustedScriptURL":return en(a)}return a},Ln=function(t,e,n,a){try{n?t.setAttributeNS(n,e,a):t.setAttribute(e,a),wt(t)?W(t):Ue(i.removed)}catch{K(e,t)}},xe=function(t){z(T.beforeSanitizeAttributes,t,null);let e=t.attributes;if(!e||wt(t))return;_=we(T.uponSanitizeAttribute,_,zt,St);let n={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_,forceKeepAttr:void 0},a=e.length,l=g(t.nodeName);for(;a--;){let u=e[a],m=u.name,E=u.namespaceURI,C=u.value,M=g(m),Qt=C,L=m==="value"?Qt:Hn(Qt);if(n.attrName=M,n.attrValue=L,n.keepAttr=!0,n.forceKeepAttr=void 0,z(T.uponSanitizeAttribute,t,n),L=n.attrValue,ge&&(M==="id"||M==="name")&&ze(L,Ee)!==0&&(K(m,t),L=Ee+L),B&&b(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,L)){K(m,t);continue}if(M==="attributename"&&Fe(L,"href")){K(m,t);continue}if(!n.forceKeepAttr){if(!n.keepAttr){K(m,t);continue}if(!he&&b(io,L)){K(m,t);continue}if(G&&(L=Lt(L)),!Me(l,M,L)){K(m,t);continue}L=Dn(l,M,E,L),L!==Qt&&Ln(t,m,E,L)}}z(T.afterSanitizeAttributes,t,null)},Ct=function(t){let e=null,n=Le(t);for(z(T.beforeSanitizeShadowDOM,t,null);e=n.nextNode();)if(z(T.uponSanitizeShadowNode,e,null),Ce(e,t),xe(e),rt(e.content)&&Ct(e.content),(D?D(e):e.nodeType)===x.element){let l=se(e);rt(l)&&(Jt(l),Ct(l))}z(T.afterSanitizeShadowDOM,t,null)},Jt=function(t){let e=[{node:t,shadow:null}];for(;e.length>0;){let n=e.pop();if(n.shadow){Ct(n.shadow);continue}let a=n.node,u=(D?D(a):a.nodeType)===x.element,m=J(a);if(m)for(let E=m.length-1;E>=0;--E)e.push({node:m[E],shadow:null});if(u){let E=v?v(a):null;if(typeof E=="string"&&g(E)==="template"){let C=a.content;rt(C)&&e.push({node:C,shadow:null})}}if(u){let E=se(a);rt(E)&&e.push({node:null,shadow:E},{node:E,shadow:null})}}};return i.sanitize=function(r){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},e=null,n=null,a=null,l=null;if($t=!r,$t&&(r=""),typeof r!="string"&&!dt(r)&&(r=jn(r),typeof r!="string"))throw Z("dirty is not a string, aborting");if(!i.isSupported)return r;Gt?(h=yt,_=St):Kt(t),(T.uponSanitizeElement.length>0||T.uponSanitizeAttribute.length>0)&&(h=I(h)),T.uponSanitizeAttribute.length>0&&(_=I(_)),i.removed=[];let u=Rt&&typeof r!="string"&&dt(r);if(u){On(r);let C=v?v(r):r.nodeName;if(typeof C=="string"){let M=g(C);if(!h[M]||ft[M])throw Dt(r),Z("root node is forbidden and cannot be sanitized in-place")}if(wt(r))throw Dt(r),Z("root node is clobbered and cannot be sanitized in-place");try{Jt(r)}catch(M){throw Dt(r),M}}else if(dt(r))e=De(""),n=e.ownerDocument.importNode(r,!0),n.nodeType===x.element&&n.nodeName==="BODY"||n.nodeName==="HTML"?e=n:e.appendChild(n),Jt(n);else{if(!tt&&!G&&!q&&r.indexOf("<")===-1)return w&&Ot?Q(r):r;if(e=De(r),!e)return tt?null:Ot?V:""}e&&Bt&&W(e.firstChild);let m=u?r:e;try{let C=Le(m);for(;a=C.nextNode();)Ce(a,m),xe(a),rt(a.content)&&Ct(a.content)}catch(C){throw u&&(Dt(r),it(i.removed,M=>{M.element&&mt(M.element)})),C}if(u)return it(i.removed,C=>{C.element&&mt(C.element)}),G&&Zt(r),r;if(tt){if(G&&Zt(e),bt)for(l=on.call(e.ownerDocument);e.firstChild;)l.appendChild(e.firstChild);else l=e;return(_.shadowroot||_.shadowrootmode)&&(l=an.call(c,l,!0)),l}let E=q?e.outerHTML:e.innerHTML;return q&&h["!doctype"]&&e.ownerDocument&&e.ownerDocument.doctype&&e.ownerDocument.doctype.name&&b(no,e.ownerDocument.doctype.name)&&(E=" +`+E),G&&(E=Lt(E)),w&&Ot?Q(E):E},i.setConfig=function(){let r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Kt(r),Gt=!0,yt=h,St=_},i.clearConfig=function(){ot=null,Gt=!1,yt=null,St=null,w=vt,V=""},i.isValidAttribute=function(r,t,e){ot||Kt({});let n=g(r),a=g(t);return Me(n,a,e)},i.addHook=function(r,t){typeof t=="function"&&O(T,r)&&at(T[r],t)},i.removeHook=function(r,t){if(O(T,r)){if(t!==void 0){let e=Fn(T[r],t);return e===-1?void 0:zn(T[r],e,1)[0]}return Ue(T[r])}},i.removeHooks=function(r){O(T,r)&&(T[r]=[])},i.removeAllHooks=function(){T=qe()},i}var lo=Je();export{lo as default}; diff --git a/docs/chunk-RWDCCRBB.js b/docs/chunk-RWDCCRBB.js new file mode 100644 index 0000000..29d7df8 --- /dev/null +++ b/docs/chunk-RWDCCRBB.js @@ -0,0 +1,78 @@ +import{a as ts}from"./chunk-Q53QGVUD.js";import{a as Ne}from"./chunk-FK6H3RFT.js";import"./chunk-IFGU66OU.js";function Yh(t){if(Array.isArray(t))return t}function Kh(t,n){var e=t==null?null:typeof Symbol<"u"&&t[Symbol.iterator]||t["@@iterator"];if(e!=null){var i,a,o,f,l=[],c=!0,d=!1;try{if(o=(e=e.call(t)).next,n===0){if(Object(e)!==e)return;c=!1}else for(;!(c=(i=o.call(e)).done)&&(l.push(i.value),l.length!==n);c=!0);}catch(m){d=!0,a=m}finally{try{if(!c&&e.return!=null&&(f=e.return(),Object(f)!==f))return}finally{if(d)throw a}}return l}}function pl(t,n){(n==null||n>t.length)&&(n=t.length);for(var e=0,i=Array(n);e{let t=new Uint8Array(4),n=new Uint32Array(t.buffer);return!((n[0]=1)&t[0])})(),bl={int8:globalThis.Int8Array,uint8:globalThis.Uint8Array,int16:globalThis.Int16Array,uint16:globalThis.Uint16Array,int32:globalThis.Int32Array,uint32:globalThis.Uint32Array,uint64:globalThis.BigUint64Array,int64:globalThis.BigInt64Array,float32:globalThis.Float32Array,float64:globalThis.Float64Array},Ja=class t{buffer;byteLength;byteOffset;length;offset;lastWrittenByte;littleEndian;_data;_mark;_marks;constructor(n=Xu,e={}){let i=!1;typeof n=="number"?n=new ArrayBuffer(n):(i=!0,this.lastWrittenByte=n.byteLength);let a=e.offset?e.offset>>>0:0,o=n.byteLength-a,f=a;(ArrayBuffer.isView(n)||n instanceof t)&&(n.byteLength!==n.buffer.byteLength&&(f=n.byteOffset+a),n=n.buffer),i?this.lastWrittenByte=o:this.lastWrittenByte=0,this.buffer=n,this.length=o,this.byteLength=o,this.byteOffset=f,this.offset=0,this.littleEndian=!0,this._data=new DataView(this.buffer,f,o),this._mark=0,this._marks=[]}available(n=1){return this.offset+n<=this.length}isLittleEndian(){return this.littleEndian}setLittleEndian(){return this.littleEndian=!0,this}isBigEndian(){return!this.littleEndian}setBigEndian(){return this.littleEndian=!1,this}skip(n=1){return this.offset+=n,this}back(n=1){return this.offset-=n,this}seek(n){return this.offset=n,this}mark(){return this._mark=this.offset,this}reset(){return this.offset=this._mark,this}pushMark(){return this._marks.push(this.offset),this}popMark(){let n=this._marks.pop();if(n===void 0)throw new Error("Mark stack empty");return this.seek(n),this}rewind(){return this.offset=0,this}ensureAvailable(n=1){if(!this.available(n)){let i=(this.offset+n)*2,a=new Uint8Array(i);a.set(new Uint8Array(this.buffer)),this.buffer=a.buffer,this.length=i,this.byteLength=i,this._data=new DataView(this.buffer)}return this}readBoolean(){return this.readUint8()!==0}readInt8(){return this._data.getInt8(this.offset++)}readUint8(){return this._data.getUint8(this.offset++)}readByte(){return this.readUint8()}readBytes(n=1){return this.readArray(n,"uint8")}readArray(n,e){let i=bl[e].BYTES_PER_ELEMENT*n,a=this.byteOffset+this.offset,o=this.buffer.slice(a,a+i);if(this.littleEndian===Ju&&e!=="uint8"&&e!=="int8"){let l=new Uint8Array(this.buffer.slice(a,a+i));l.reverse();let c=new bl[e](l.buffer);return this.offset+=i,c.reverse(),c}let f=new bl[e](o);return this.offset+=i,f}readInt16(){let n=this._data.getInt16(this.offset,this.littleEndian);return this.offset+=2,n}readUint16(){let n=this._data.getUint16(this.offset,this.littleEndian);return this.offset+=2,n}readInt32(){let n=this._data.getInt32(this.offset,this.littleEndian);return this.offset+=4,n}readUint32(){let n=this._data.getUint32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat32(){let n=this._data.getFloat32(this.offset,this.littleEndian);return this.offset+=4,n}readFloat64(){let n=this._data.getFloat64(this.offset,this.littleEndian);return this.offset+=8,n}readBigInt64(){let n=this._data.getBigInt64(this.offset,this.littleEndian);return this.offset+=8,n}readBigUint64(){let n=this._data.getBigUint64(this.offset,this.littleEndian);return this.offset+=8,n}readChar(){return String.fromCharCode(this.readInt8())}readChars(n=1){let e="";for(let i=0;ithis.lastWrittenByte&&(this.lastWrittenByte=this.offset)}};function ma(t){let n=t.length;for(;--n>=0;)t[n]=0}var Qu=0,Uc=1,t1=2,e1=3,n1=258,ql=29,uo=256,ao=uo+1+ql,ua=30,zl=19,qc=2*ao+1,Er=15,vl=16,i1=7,Hl=256,zc=16,Hc=17,Wc=18,Fl=new Uint8Array([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0]),os=new Uint8Array([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13]),r1=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7]),Gc=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]),a1=512,qi=new Array((ao+2)*2);ma(qi);var no=new Array(ua*2);ma(no);var oo=new Array(a1);ma(oo);var so=new Array(n1-e1+1);ma(so);var Wl=new Array(ql);ma(Wl);var ss=new Array(ua);ma(ss);function wl(t,n,e,i,a){this.static_tree=t,this.extra_bits=n,this.extra_base=e,this.elems=i,this.max_length=a,this.has_stree=t&&t.length}var Vc,Zc,$c;function _l(t,n){this.dyn_tree=t,this.max_code=0,this.stat_desc=n}var Yc=t=>t<256?oo[t]:oo[256+(t>>>7)],lo=(t,n)=>{t.pending_buf[t.pending++]=n&255,t.pending_buf[t.pending++]=n>>>8&255},Fn=(t,n,e)=>{t.bi_valid>vl-e?(t.bi_buf|=n<>vl-t.bi_valid,t.bi_valid+=e-vl):(t.bi_buf|=n<{Fn(t,e[n*2],e[n*2+1])},Kc=(t,n)=>{let e=0;do e|=t&1,t>>>=1,e<<=1;while(--n>0);return e>>>1},o1=t=>{t.bi_valid===16?(lo(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=t.bi_buf&255,t.bi_buf>>=8,t.bi_valid-=8)},s1=(t,n)=>{let e=n.dyn_tree,i=n.max_code,a=n.stat_desc.static_tree,o=n.stat_desc.has_stree,f=n.stat_desc.extra_bits,l=n.stat_desc.extra_base,c=n.stat_desc.max_length,d,m,A,L,p,T,O=0;for(L=0;L<=Er;L++)t.bl_count[L]=0;for(e[t.heap[t.heap_max]*2+1]=0,d=t.heap_max+1;dc&&(L=c,O++),e[m*2+1]=L,!(m>i)&&(t.bl_count[L]++,p=0,m>=l&&(p=f[m-l]),T=e[m*2],t.opt_len+=T*(L+p),o&&(t.static_len+=T*(a[m*2+1]+p)));if(O!==0){do{for(L=c-1;t.bl_count[L]===0;)L--;t.bl_count[L]--,t.bl_count[L+1]+=2,t.bl_count[c]--,O-=2}while(O>0);for(L=c;L!==0;L--)for(m=t.bl_count[L];m!==0;)A=t.heap[--d],!(A>i)&&(e[A*2+1]!==L&&(t.opt_len+=(L-e[A*2+1])*e[A*2],e[A*2+1]=L),m--)}},Xc=(t,n,e)=>{let i=new Array(Er+1),a=0,o,f;for(o=1;o<=Er;o++)a=a+e[o-1]<<1,i[o]=a;for(f=0;f<=n;f++){let l=t[f*2+1];l!==0&&(t[f*2]=Kc(i[l]++,l))}},l1=()=>{let t,n,e,i,a,o=new Array(Er+1);for(e=0,i=0;i>=7;i{let n;for(n=0;n{t.bi_valid>8?lo(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0},tc=(t,n,e,i)=>{let a=n*2,o=e*2;return t[a]{let i=t.heap[e],a=e<<1;for(;a<=t.heap_len&&(a{let i,a,o=0,f,l;if(t.sym_next!==0)do i=t.pending_buf[t.sym_buf+o++]&255,i+=(t.pending_buf[t.sym_buf+o++]&255)<<8,a=t.pending_buf[t.sym_buf+o++],i===0?_i(t,a,n):(f=so[a],_i(t,f+uo+1,n),l=Fl[f],l!==0&&(a-=Wl[f],Fn(t,a,l)),i--,f=Yc(i),_i(t,f,e),l=os[f],l!==0&&(i-=ss[f],Fn(t,i,l)));while(o{let e=n.dyn_tree,i=n.stat_desc.static_tree,a=n.stat_desc.has_stree,o=n.stat_desc.elems,f,l,c=-1,d;for(t.heap_len=0,t.heap_max=qc,f=0;f>1;f>=1;f--)yl(t,e,f);d=o;do f=t.heap[1],t.heap[1]=t.heap[t.heap_len--],yl(t,e,1),l=t.heap[1],t.heap[--t.heap_max]=f,t.heap[--t.heap_max]=l,e[d*2]=e[f*2]+e[l*2],t.depth[d]=(t.depth[f]>=t.depth[l]?t.depth[f]:t.depth[l])+1,e[f*2+1]=e[l*2+1]=d,t.heap[1]=d++,yl(t,e,1);while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],s1(t,n),Xc(e,c,t.bl_count)},nc=(t,n,e)=>{let i,a=-1,o,f=n[1],l=0,c=7,d=4;for(f===0&&(c=138,d=3),n[(e+1)*2+1]=65535,i=0;i<=e;i++)o=f,f=n[(i+1)*2+1],!(++l{let i,a=-1,o,f=n[1],l=0,c=7,d=4;for(f===0&&(c=138,d=3),i=0;i<=e;i++)if(o=f,f=n[(i+1)*2+1],!(++l{let n;for(nc(t,t.dyn_ltree,t.l_desc.max_code),nc(t,t.dyn_dtree,t.d_desc.max_code),Ol(t,t.bl_desc),n=zl-1;n>=3&&t.bl_tree[Gc[n]*2+1]===0;n--);return t.opt_len+=3*(n+1)+5+5+4,n},c1=(t,n,e,i)=>{let a;for(Fn(t,n-257,5),Fn(t,e-1,5),Fn(t,i-4,4),a=0;a{let n=4093624447,e;for(e=0;e<=31;e++,n>>>=1)if(n&1&&t.dyn_ltree[e*2]!==0)return 0;if(t.dyn_ltree[18]!==0||t.dyn_ltree[20]!==0||t.dyn_ltree[26]!==0)return 1;for(e=32;e{rc||(l1(),rc=!0),t.l_desc=new _l(t.dyn_ltree,Vc),t.d_desc=new _l(t.dyn_dtree,Zc),t.bl_desc=new _l(t.bl_tree,$c),t.bi_buf=0,t.bi_valid=0,Jc(t)},tf=(t,n,e,i)=>{Fn(t,(Qu<<1)+(i?1:0),3),Qc(t),lo(t,e),lo(t,~e),e&&t.pending_buf.set(t.window.subarray(n,n+e),t.pending),t.pending+=e},d1=t=>{Fn(t,Uc<<1,3),_i(t,Hl,qi),o1(t)},p1=(t,n,e,i)=>{let a,o,f=0;t.level>0?(t.strm.data_type===2&&(t.strm.data_type=f1(t)),Ol(t,t.l_desc),Ol(t,t.d_desc),f=h1(t),a=t.opt_len+3+7>>>3,o=t.static_len+3+7>>>3,o<=a&&(a=o)):a=o=e+5,e+4<=a&&n!==-1?tf(t,n,e,i):t.strategy===4||o===a?(Fn(t,(Uc<<1)+(i?1:0),3),ec(t,qi,no)):(Fn(t,(t1<<1)+(i?1:0),3),c1(t,t.l_desc.max_code+1,t.d_desc.max_code+1,f+1),ec(t,t.dyn_ltree,t.dyn_dtree)),Jc(t),i&&Qc(t)},g1=(t,n,e)=>(t.pending_buf[t.sym_buf+t.sym_next++]=n,t.pending_buf[t.sym_buf+t.sym_next++]=n>>8,t.pending_buf[t.sym_buf+t.sym_next++]=e,n===0?t.dyn_ltree[e*2]++:(t.matches++,n--,t.dyn_ltree[(so[e]+uo+1)*2]++,t.dyn_dtree[Yc(n)*2]++),t.sym_next===t.sym_end),m1=u1,b1=tf,v1=p1,w1=g1,_1=d1,y1={_tr_init:m1,_tr_stored_block:b1,_tr_flush_block:v1,_tr_tally:w1,_tr_align:_1},x1=(t,n,e,i)=>{let a=t&65535|0,o=t>>>16&65535|0,f=0;for(;e!==0;){f=e>2e3?2e3:e,e-=f;do a=a+n[i++]|0,o=o+a|0;while(--f);a%=65521,o%=65521}return a|o<<16|0},ho=x1,A1=()=>{let t,n=[];for(var e=0;e<256;e++){t=e;for(var i=0;i<8;i++)t=t&1?3988292384^t>>>1:t>>>1;n[e]=t}return n},N1=new Uint32Array(A1()),L1=(t,n,e,i)=>{let a=N1,o=i+e;t^=-1;for(let f=i;f>>8^a[(t^n[f])&255];return t^-1},an=L1,Fr={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"},ba={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_MEM_ERROR:-4,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8},{_tr_init:S1,_tr_stored_block:Tl,_tr_flush_block:k1,_tr_tally:ar,_tr_align:P1}=y1,{Z_NO_FLUSH:or,Z_PARTIAL_FLUSH:E1,Z_FULL_FLUSH:I1,Z_FINISH:Kn,Z_BLOCK:ac,Z_OK:un,Z_STREAM_END:oc,Z_STREAM_ERROR:yi,Z_DATA_ERROR:C1,Z_BUF_ERROR:xl,Z_DEFAULT_COMPRESSION:F1,Z_FILTERED:O1,Z_HUFFMAN_ONLY:es,Z_RLE:T1,Z_FIXED:R1,Z_DEFAULT_STRATEGY:B1,Z_UNKNOWN:j1,Z_DEFLATED:cs}=ba,M1=9,D1=15,U1=8,q1=29,z1=256,Rl=z1+1+q1,H1=30,W1=19,G1=2*Rl+1,V1=15,be=3,rr=258,xi=rr+be+1,Z1=32,pa=42,Gl=57,Bl=69,jl=73,Ml=91,Dl=103,Ir=113,to=666,kn=1,va=2,Or=3,wa=4,$1=3,Cr=(t,n)=>(t.msg=Fr[n],n),sc=t=>t*2-(t>4?9:0),ir=t=>{let n=t.length;for(;--n>=0;)t[n]=0},Y1=t=>{let n,e,i,a=t.w_size;n=t.hash_size,i=n;do e=t.head[--i],t.head[i]=e>=a?e-a:0;while(--n);n=a,i=n;do e=t.prev[--i],t.prev[i]=e>=a?e-a:0;while(--n)},Vl=(t,n,e)=>(n<{let e;if(t.legacy_hash)e=t.ins_h=Vl(t,t.ins_h,t.window[n+be-1]);else{let a=t.window,o=a[n]|a[n+1]<<8|a[n+2]<<16|a[n+3]<<24;e=t.ins_h=Math.imul(o,66521)+66521>>>16&t.hash_mask}let i=t.prev[n&t.w_mask]=t.head[e];return t.head[e]=n,i},qn=t=>{let n=t.state,e=n.pending;e>t.avail_out&&(e=t.avail_out),e!==0&&(t.output.set(n.pending_buf.subarray(n.pending_out,n.pending_out+e),t.next_out),t.next_out+=e,n.pending_out+=e,t.total_out+=e,t.avail_out-=e,n.pending-=e,n.pending===0&&(n.pending_out=0))},zn=(t,n)=>{k1(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,n),t.block_start=t.strstart,qn(t.strm)},ve=(t,n)=>{t.pending_buf[t.pending++]=n},Qa=(t,n)=>{t.pending_buf[t.pending++]=n>>>8&255,t.pending_buf[t.pending++]=n&255},Ul=(t,n,e,i)=>{let a=t.avail_in;return a>i&&(a=i),a===0?0:(t.avail_in-=a,n.set(t.input.subarray(t.next_in,t.next_in+a),e),t.state.wrap===1?t.adler=ho(t.adler,n,a,e):t.state.wrap===2&&(t.adler=an(t.adler,n,a,e)),t.next_in+=a,t.total_in+=a,a)},ef=(t,n)=>{let e=t.max_chain_length,i=t.strstart,a,o,f=t.prev_length,l=t.nice_match,c=t.strstart>t.w_size-xi?t.strstart-(t.w_size-xi):0,d=t.window,m=t.w_mask,A=t.prev,L=t.strstart+rr,p=d[i+f-1],T=d[i+f];t.prev_length>=t.good_match&&(e>>=2),l>t.lookahead&&(l=t.lookahead);do if(a=n,!(d[a+f]!==T||d[a+f-1]!==p||d[a]!==d[i]||d[++a]!==d[i+1])){i+=2,a++;do;while(d[++i]===d[++a]&&d[++i]===d[++a]&&d[++i]===d[++a]&&d[++i]===d[++a]&&d[++i]===d[++a]&&d[++i]===d[++a]&&d[++i]===d[++a]&&d[++i]===d[++a]&&if){if(t.match_start=n,f=o,o>=l)break;p=d[i+f-1],T=d[i+f]}}while((n=A[n&m])>c&&--e!==0);return f<=t.lookahead?f:t.lookahead},ga=t=>{let n=t.w_size,e,i,a;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=n+(n-xi)&&(t.window.set(t.window.subarray(n,n+n-i),0),t.match_start-=n,t.strstart-=n,t.block_start-=n,t.insert>t.strstart&&(t.insert=t.strstart),Y1(t),i+=n),t.strm.avail_in===0)break;if(e=Ul(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=e,t.legacy_hash){if(t.lookahead+t.insert>=be)for(a=t.strstart-t.insert,t.ins_h=t.window[a],t.ins_h=Vl(t,t.ins_h,t.window[a+1]);t.insert&&(Tr(t,a),a++,t.insert--,!(t.lookahead+t.insertbe)for(a=t.strstart-t.insert;t.insert&&(Tr(t,a),a++,t.insert--,!(t.lookahead+t.insert<=be)););}while(t.lookahead{let e=t.pending_buf_size-5>t.w_size?t.w_size:t.pending_buf_size-5,i,a,o,f=0,l=t.strm.avail_in;do{if(i=65535,o=t.bi_valid+42>>3,t.strm.avail_outa+t.strm.avail_in&&(i=a+t.strm.avail_in),i>o&&(i=o),i>8,t.pending_buf[t.pending-2]=~i,t.pending_buf[t.pending-1]=~i>>8,qn(t.strm),a&&(a>i&&(a=i),t.strm.output.set(t.window.subarray(t.block_start,t.block_start+a),t.strm.next_out),t.strm.next_out+=a,t.strm.avail_out-=a,t.strm.total_out+=a,t.block_start+=a,i-=a),i&&(Ul(t.strm,t.strm.output,t.strm.next_out,i),t.strm.next_out+=i,t.strm.avail_out-=i,t.strm.total_out+=i)}while(f===0);return l-=t.strm.avail_in,l&&(l>=t.w_size?(t.matches=2,t.window.set(t.strm.input.subarray(t.strm.next_in-t.w_size,t.strm.next_in),0),t.strstart=t.w_size,t.insert=t.strstart):(t.window_size-t.strstart<=l&&(t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,t.insert>t.strstart&&(t.insert=t.strstart)),t.window.set(t.strm.input.subarray(t.strm.next_in-l,t.strm.next_in),t.strstart),t.strstart+=l,t.insert+=l>t.w_size-t.insert?t.w_size-t.insert:l),t.block_start=t.strstart),t.high_watero&&t.block_start>=t.w_size&&(t.block_start-=t.w_size,t.strstart-=t.w_size,t.window.set(t.window.subarray(t.w_size,t.w_size+t.strstart),0),t.matches<2&&t.matches++,o+=t.w_size,t.insert>t.strstart&&(t.insert=t.strstart)),o>t.strm.avail_in&&(o=t.strm.avail_in),o&&(Ul(t.strm,t.window,t.strstart,o),t.strstart+=o,t.insert+=o>t.w_size-t.insert?t.w_size-t.insert:o),t.high_water>3,o=t.pending_buf_size-o>65535?65535:t.pending_buf_size-o,e=o>t.w_size?t.w_size:o,a=t.strstart-t.block_start,(a>=e||(a||n===Kn)&&n!==or&&t.strm.avail_in===0&&a<=o)&&(i=a>o?o:a,f=n===Kn&&t.strm.avail_in===0&&i===a?1:0,Tl(t,t.block_start,i,f),t.block_start+=i,qn(t.strm)),f?Or:kn)},Al=(t,n)=>{let e,i;for(;;){if(t.lookahead=be&&(e=Tr(t,t.strstart)),e!==0&&t.strstart-e<=t.w_size-xi&&(t.match_length=ef(t,e)),t.match_length>=be)if(i=ar(t,t.strstart-t.match_start,t.match_length-be),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=be){t.match_length--;do t.strstart++,e=Tr(t,t.strstart);while(--t.match_length!==0);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.legacy_hash&&(t.ins_h=t.window[t.strstart],t.ins_h=Vl(t,t.ins_h,t.window[t.strstart+1]));else i=ar(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(i&&(zn(t,!1),t.strm.avail_out===0))return kn}return t.insert=t.strstart{let e,i,a;for(;;){if(t.lookahead=be&&(e=Tr(t,t.strstart)),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=be-1,e!==0&&t.prev_length4096)&&(t.match_length=be-1)),t.prev_length>=be&&t.match_length<=t.prev_length){a=t.strstart+t.lookahead-be,i=ar(t,t.strstart-1-t.prev_match,t.prev_length-be),t.lookahead-=t.prev_length-1,t.prev_length-=2;do++t.strstart<=a&&(e=Tr(t,t.strstart));while(--t.prev_length!==0);if(t.match_available=0,t.match_length=be-1,t.strstart++,i&&(zn(t,!1),t.strm.avail_out===0))return kn}else if(t.match_available){if(i=ar(t,0,t.window[t.strstart-1]),i&&zn(t,!1),t.strstart++,t.lookahead--,t.strm.avail_out===0)return kn}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(i=ar(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart{let e,i,a,o,f=t.window;for(;;){if(t.lookahead<=rr){if(ga(t),t.lookahead<=rr&&n===or)return kn;if(t.lookahead===0)break}if(t.match_length=0,t.lookahead>=be&&t.strstart>0&&(a=t.strstart-1,i=f[a],i===f[++a]&&i===f[++a]&&i===f[++a])){o=t.strstart+rr;do;while(i===f[++a]&&i===f[++a]&&i===f[++a]&&i===f[++a]&&i===f[++a]&&i===f[++a]&&i===f[++a]&&i===f[++a]&&at.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=be?(e=ar(t,1,t.match_length-be),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(e=ar(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),e&&(zn(t,!1),t.strm.avail_out===0))return kn}return t.insert=0,n===Kn?(zn(t,!0),t.strm.avail_out===0?Or:wa):t.sym_next&&(zn(t,!1),t.strm.avail_out===0)?kn:va},X1=(t,n)=>{let e;for(;;){if(t.lookahead===0&&(ga(t),t.lookahead===0)){if(n===or)return kn;break}if(t.match_length=0,e=ar(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,e&&(zn(t,!1),t.strm.avail_out===0))return kn}return t.insert=0,n===Kn?(zn(t,!0),t.strm.avail_out===0?Or:wa):t.sym_next&&(zn(t,!1),t.strm.avail_out===0)?kn:va};function vi(t,n,e,i,a){this.good_length=t,this.max_lazy=n,this.nice_length=e,this.max_chain=i,this.func=a}var eo=[new vi(0,0,0,0,nf),new vi(4,4,8,4,Al),new vi(4,5,16,8,Al),new vi(4,6,32,32,Al),new vi(4,4,16,16,ca),new vi(8,16,32,32,ca),new vi(8,16,128,128,ca),new vi(8,32,128,256,ca),new vi(32,128,258,1024,ca),new vi(32,258,258,4096,ca)],J1=t=>{t.window_size=2*t.w_size,ir(t.head),t.max_lazy_match=eo[t.level].max_lazy,t.good_match=eo[t.level].good_length,t.nice_match=eo[t.level].nice_length,t.max_chain_length=eo[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=be-1,t.match_available=0,t.ins_h=0};function Q1(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=cs,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.legacy_hash=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new Uint16Array(G1*2),this.dyn_dtree=new Uint16Array((2*H1+1)*2),this.bl_tree=new Uint16Array((2*W1+1)*2),ir(this.dyn_ltree),ir(this.dyn_dtree),ir(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new Uint16Array(V1+1),this.heap=new Uint16Array(2*Rl+1),ir(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new Uint16Array(2*Rl+1),ir(this.depth),this.sym_buf=0,this.lit_bufsize=0,this.sym_next=0,this.sym_end=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}var po=t=>{if(!t)return 1;let n=t.state;return!n||n.strm!==t||n.status!==pa&&n.status!==Gl&&n.status!==Bl&&n.status!==jl&&n.status!==Ml&&n.status!==Dl&&n.status!==Ir&&n.status!==to?1:0},rf=t=>{if(po(t))return Cr(t,yi);t.total_in=t.total_out=0,t.data_type=j1;let n=t.state;return n.pending=0,n.pending_out=0,n.wrap<0&&(n.wrap=-n.wrap),n.status=n.wrap===2?Gl:n.wrap?pa:Ir,t.adler=n.wrap===2?0:1,n.last_flush=-2,S1(n),un},af=t=>{let n=rf(t);return n===un&&J1(t.state),n},t2=(t,n)=>po(t)||t.state.wrap!==2?yi:(t.state.gzhead=n,un),of=(t,n,e,i,a,o,f)=>{if(!t)return yi;let l=1;if(n===F1&&(n=6),i<0?(l=0,i=-i):i>15&&(l=2,i-=16),a<1||a>M1||e!==cs||i<8||i>15||n<0||n>9||o<0||o>R1||i===8&&l!==1)return Cr(t,yi);i===8&&(i=9);let c=new Q1;return t.state=c,c.strm=t,c.status=pa,c.wrap=l,c.gzhead=null,c.w_bits=i,c.w_size=1<of(t,n,cs,D1,U1,B1),n2=(t,n)=>{if(po(t)||n>ac||n<0)return t?Cr(t,yi):yi;let e=t.state;if(!t.output||t.avail_in!==0&&!t.input||e.status===to&&n!==Kn)return Cr(t,t.avail_out===0?xl:yi);let i=e.last_flush;if(e.last_flush=n,e.pending!==0){if(qn(t),t.avail_out===0)return e.last_flush=-1,un}else if(t.avail_in===0&&sc(n)<=sc(i)&&n!==Kn)return Cr(t,xl);if(e.status===to&&t.avail_in!==0)return Cr(t,xl);if(e.status===pa&&e.wrap===0&&(e.status=Ir),e.status===pa){let a=cs+(e.w_bits-8<<4)<<8,o=-1;if(e.strategy>=es||e.level<2?o=0:e.level<6?o=1:e.level===6?o=2:o=3,a|=o<<6,e.strstart!==0&&(a|=Z1),a+=31-a%31,Qa(e,a),e.strstart!==0&&(Qa(e,t.adler>>>16),Qa(e,t.adler&65535)),t.adler=1,e.status=Ir,qn(t),e.pending!==0)return e.last_flush=-1,un}if(e.status===Gl){if(t.adler=0,ve(e,31),ve(e,139),ve(e,8),e.gzhead)ve(e,(e.gzhead.text?1:0)+(e.gzhead.hcrc?2:0)+(e.gzhead.extra?4:0)+(e.gzhead.name?8:0)+(e.gzhead.comment?16:0)),ve(e,e.gzhead.time&255),ve(e,e.gzhead.time>>8&255),ve(e,e.gzhead.time>>16&255),ve(e,e.gzhead.time>>24&255),ve(e,e.level===9?2:e.strategy>=es||e.level<2?4:0),ve(e,e.gzhead.os&255),e.gzhead.extra&&e.gzhead.extra.length&&(ve(e,e.gzhead.extra.length&255),ve(e,e.gzhead.extra.length>>8&255)),e.gzhead.hcrc&&(t.adler=an(t.adler,e.pending_buf,e.pending,0)),e.gzindex=0,e.status=Bl;else if(ve(e,0),ve(e,0),ve(e,0),ve(e,0),ve(e,0),ve(e,e.level===9?2:e.strategy>=es||e.level<2?4:0),ve(e,$1),e.status=Ir,qn(t),e.pending!==0)return e.last_flush=-1,un}if(e.status===Bl){if(e.gzhead.extra){let a=e.pending,o=(e.gzhead.extra.length&65535)-e.gzindex;for(;e.pending+o>e.pending_buf_size;){let l=e.pending_buf_size-e.pending;if(e.pending_buf.set(e.gzhead.extra.subarray(e.gzindex,e.gzindex+l),e.pending),e.pending=e.pending_buf_size,e.gzhead.hcrc&&e.pending>a&&(t.adler=an(t.adler,e.pending_buf,e.pending-a,a)),e.gzindex+=l,qn(t),e.pending!==0)return e.last_flush=-1,un;a=0,o-=l}let f=new Uint8Array(e.gzhead.extra);e.pending_buf.set(f.subarray(e.gzindex,e.gzindex+o),e.pending),e.pending+=o,e.gzhead.hcrc&&e.pending>a&&(t.adler=an(t.adler,e.pending_buf,e.pending-a,a)),e.gzindex=0}e.status=jl}if(e.status===jl){if(e.gzhead.name){let a=e.pending,o;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>a&&(t.adler=an(t.adler,e.pending_buf,e.pending-a,a)),qn(t),e.pending!==0)return e.last_flush=-1,un;a=0}e.gzindexa&&(t.adler=an(t.adler,e.pending_buf,e.pending-a,a)),e.gzindex=0}e.status=Ml}if(e.status===Ml){if(e.gzhead.comment){let a=e.pending,o;do{if(e.pending===e.pending_buf_size){if(e.gzhead.hcrc&&e.pending>a&&(t.adler=an(t.adler,e.pending_buf,e.pending-a,a)),qn(t),e.pending!==0)return e.last_flush=-1,un;a=0}e.gzindexa&&(t.adler=an(t.adler,e.pending_buf,e.pending-a,a))}e.status=Dl}if(e.status===Dl){if(e.gzhead.hcrc){if(e.pending+2>e.pending_buf_size&&(qn(t),e.pending!==0))return e.last_flush=-1,un;ve(e,t.adler&255),ve(e,t.adler>>8&255),t.adler=0}if(e.status=Ir,qn(t),e.pending!==0)return e.last_flush=-1,un}if(t.avail_in!==0||e.lookahead!==0||n!==or&&e.status!==to){let a=e.level===0?nf(e,n):e.strategy===es?X1(e,n):e.strategy===T1?K1(e,n):eo[e.level].func(e,n);if((a===Or||a===wa)&&(e.status=to),a===kn||a===Or)return t.avail_out===0&&(e.last_flush=-1),un;if(a===va&&(n===E1?P1(e):n!==ac&&(Tl(e,0,0,!1),n===I1&&(ir(e.head),e.lookahead===0&&(e.strstart=0,e.block_start=0,e.insert=0))),qn(t),t.avail_out===0))return e.last_flush=-1,un}return n!==Kn?un:e.wrap<=0?oc:(e.wrap===2?(ve(e,t.adler&255),ve(e,t.adler>>8&255),ve(e,t.adler>>16&255),ve(e,t.adler>>24&255),ve(e,t.total_in&255),ve(e,t.total_in>>8&255),ve(e,t.total_in>>16&255),ve(e,t.total_in>>24&255)):(Qa(e,t.adler>>>16),Qa(e,t.adler&65535)),qn(t),e.wrap>0&&(e.wrap=-e.wrap),e.pending!==0?un:oc)},i2=t=>{if(po(t))return yi;let n=t.state.status;return t.state=null,n===Ir?Cr(t,C1):un},r2=(t,n)=>{let e=n.length;if(po(t))return yi;let i=t.state,a=i.wrap;if(a===2||a===1&&i.status!==pa||i.lookahead)return yi;if(a===1&&(t.adler=ho(t.adler,n,e,0)),i.wrap=0,e>=i.w_size){a===0&&(ir(i.head),i.strstart=0,i.block_start=0,i.insert=0);let c=new Uint8Array(i.w_size);c.set(n.subarray(e-i.w_size,e),0),n=c,e=i.w_size}let o=t.avail_in,f=t.next_in,l=t.input;for(t.avail_in=e,t.next_in=0,t.input=n,ga(i);i.lookahead>=be;){let c=i.strstart,d=i.lookahead-(be-1);do Tr(i,c),c++;while(--d);i.strstart=c,i.lookahead=be-1,ga(i)}return i.strstart+=i.lookahead,i.block_start=i.strstart,i.insert=i.lookahead,i.lookahead=0,i.match_length=i.prev_length=be-1,i.match_available=0,t.next_in=f,t.input=l,t.avail_in=o,i.wrap=a,un},a2=e2,o2=of,s2=af,l2=rf,h2=t2,c2=n2,f2=i2,u2=r2,d2="pako deflate (from Nodeca project)",io={deflateInit:a2,deflateInit2:o2,deflateReset:s2,deflateResetKeep:l2,deflateSetHeader:h2,deflate:c2,deflateEnd:f2,deflateSetDictionary:u2,deflateInfo:d2},p2=(t,n)=>Object.prototype.hasOwnProperty.call(t,n),g2=function(t){let n=Array.prototype.slice.call(arguments,1);for(;n.length;){let e=n.shift();if(e){if(typeof e!="object")throw new TypeError(e+"must be non-object");for(let i in e)p2(e,i)&&(t[i]=e[i])}}return t},m2=t=>{let n=0;for(let i=0,a=t.length;i=252?6:t>=248?5:t>=240?4:t>=224?3:t>=192?2:1;co[254]=co[255]=1;var b2=t=>{if(typeof TextEncoder=="function"&&TextEncoder.prototype.encode)return new TextEncoder().encode(t);let n,e,i,a,o,f=t.length,l=0;for(a=0;a>>6,n[o++]=128|e&63):e<65536?(n[o++]=224|e>>>12,n[o++]=128|e>>>6&63,n[o++]=128|e&63):(n[o++]=240|e>>>18,n[o++]=128|e>>>12&63,n[o++]=128|e>>>6&63,n[o++]=128|e&63);return n},v2=(t,n)=>{if(n<65534&&t.subarray&&sf)return String.fromCharCode.apply(null,t.length===n?t:t.subarray(0,n));let e="";for(let i=0;i{let e=n||t.length;if(typeof TextDecoder=="function"&&TextDecoder.prototype.decode)return new TextDecoder().decode(t.subarray(0,n));let i,a,o=new Array(e*2);for(a=0,i=0;i4){o[a++]=65533,i+=l-1;continue}for(f&=l===2?31:l===3?15:7;l>1&&i1){o[a++]=65533;continue}f<65536?o[a++]=f:(f-=65536,o[a++]=55296|f>>10&1023,o[a++]=56320|f&1023)}return v2(o,a)},_2=(t,n)=>{n=n||t.length,n>t.length&&(n=t.length);let e=n-1;for(;e>=0&&(t[e]&192)===128;)e--;return e<0||e===0?n:e+co[t[e]]>n?e:n},fo={string2buf:b2,buf2string:w2,utf8border:_2};function y2(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}var lf=y2,hf=Object.prototype.toString,{Z_NO_FLUSH:x2,Z_SYNC_FLUSH:A2,Z_FULL_FLUSH:N2,Z_FINISH:L2,Z_OK:ls,Z_STREAM_END:S2,Z_DEFAULT_COMPRESSION:k2,Z_DEFAULT_STRATEGY:P2,Z_DEFLATED:E2}=ba,I2={level:k2,method:E2,chunkSize:16384,windowBits:15,memLevel:8,strategy:P2,legacyHash:!0};function go(t){this.options=fs.assign({},I2,t||{});let n=this.options;n.raw&&n.windowBits>0?n.windowBits=-n.windowBits:n.gzip&&n.windowBits>0&&n.windowBits<16&&(n.windowBits+=16),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new lf,this.strm.avail_out=0;let e=io.deflateInit2(this.strm,n.level,n.method,n.windowBits,n.memLevel,n.strategy,n.legacyHash);if(e!==ls)throw new Error(Fr[e]);if(n.header&&io.deflateSetHeader(this.strm,n.header),n.dictionary){let i;if(typeof n.dictionary=="string"?i=fo.string2buf(n.dictionary):hf.call(n.dictionary)==="[object ArrayBuffer]"?i=new Uint8Array(n.dictionary):i=n.dictionary,e=io.deflateSetDictionary(this.strm,i),e!==ls)throw new Error(Fr[e]);this._dict_set=!0}}go.prototype.push=function(t,n){let e=this.strm,i=this.options.chunkSize,a,o;if(this.ended)return!1;for(n===~~n?o=n:o=n===!0?L2:x2,typeof t=="string"?e.input=fo.string2buf(t):hf.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){if(e.avail_out===0&&(e.output=new Uint8Array(i),e.next_out=0,e.avail_out=i),(o===A2||o===N2)&&e.avail_out<=6){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(a=io.deflate(e,o),a===S2)return e.next_out>0&&this.onData(e.output.subarray(0,e.next_out)),a=io.deflateEnd(this.strm),this.onEnd(a),this.ended=!0,a===ls;if(e.avail_out===0){this.onData(e.output);continue}if(o>0&&e.next_out>0){this.onData(e.output.subarray(0,e.next_out)),e.avail_out=0;continue}if(e.avail_in===0)break}return!0};go.prototype.onData=function(t){this.chunks.push(t)};go.prototype.onEnd=function(t){t===ls&&(this.result=fs.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function Zl(t,n){let e=new go(n);if(e.push(t,!0),e.err)throw e.msg||Fr[e.err];return e.result}function C2(t,n){return n=n||{},n.raw=!0,Zl(t,n)}function F2(t,n){return n=n||{},n.gzip=!0,Zl(t,n)}var O2=go,T2=Zl,R2=C2,B2=F2,j2=ba,M2={Deflate:O2,deflate:T2,deflateRaw:R2,gzip:B2,constants:j2},ns=16209,D2=16191,U2=function(n,e){let i,a,o,f,l,c,d,m,A,L,p,T,O,B,k,Z,$,D,lt,_t,mt,tt,z,et,N=n.state;i=n.next_in,z=n.input,a=i+(n.avail_in-5),o=n.next_out,et=n.output,f=o-(e-n.avail_out),l=o+(n.avail_out-257),c=N.dmax,d=N.wsize,m=N.whave,A=N.wnext,L=N.window,p=N.hold,T=N.bits,O=N.lencode,B=N.distcode,k=(1<>>24,p>>>=D,T-=D,D=$>>>16&255,D===0)et[o++]=$&65535;else if(D&16){lt=$&65535,D&=15,D&&(T>>=D,T-=D),T<15&&(p+=z[i++]<>>24,p>>>=D,T-=D,D=$>>>16&255,D&16){if(_t=$&65535,D&=15,Tc){n.msg="invalid distance too far back",N.mode=ns;break t}if(p>>>=D,T-=D,D=o-f,_t>D){if(D=_t-D,D>m&&N.sane){n.msg="invalid distance too far back",N.mode=ns;break t}if(mt=0,tt=L,A===0){if(mt+=d-D,D2;)et[o++]=tt[mt++],et[o++]=tt[mt++],et[o++]=tt[mt++],lt-=3;lt&&(et[o++]=tt[mt++],lt>1&&(et[o++]=tt[mt++]))}else{mt=o-_t;do et[o++]=et[mt++],et[o++]=et[mt++],et[o++]=et[mt++],lt-=3;while(lt>2);lt&&(et[o++]=et[mt++],lt>1&&(et[o++]=et[mt++]))}}else if((D&64)===0){$=B[($&65535)+(p&(1<>3,i-=lt,T-=lt<<3,p&=(1<{let c=l.bits,d=0,m=0,A=0,L=0,p=0,T=0,O=0,B=0,k=0,Z=0,$,D,lt,_t,mt,tt=null,z,et=new Uint16Array(fa+1),N=new Uint16Array(fa+1),F=null,U,q,it;for(d=0;d<=fa;d++)et[d]=0;for(m=0;m=1&&et[L]===0;L--);if(p>L&&(p=L),L===0)return a[o++]=1<<24|64<<16|0,a[o++]=1<<24|64<<16|0,l.bits=1,0;for(A=1;A0&&(t===cc||L!==1))return-1;for(N[1]=0,d=1;dlc||t===fc&&k>hc)return 1;for(;;){U=d-O,f[m]+1=z?(q=F[f[m]-z],it=tt[f[m]-z]):(q=96,it=0),$=1<>O)+D]=U<<24|q<<16|it|0;while(D!==0);for($=1<>=1;if($!==0?(Z&=$-1,Z+=$):Z=0,m++,--et[d]===0){if(d===L)break;d=n[e+f[m]]}if(d>p&&(Z&_t)!==lt){for(O===0&&(O=p),mt+=A,T=d-O,B=1<lc||t===fc&&k>hc)return 1;lt=Z&_t,a[lt]=p<<24|T<<16|mt-o|0}}return Z!==0&&(a[mt+Z]=d-O<<24|64<<16|0),l.bits=p,0},ro=G2,V2=0,cf=1,ff=2,{Z_FINISH:uc,Z_BLOCK:Z2,Z_TREES:is,Z_OK:Rr,Z_STREAM_END:$2,Z_NEED_DICT:Y2,Z_STREAM_ERROR:Xn,Z_DATA_ERROR:uf,Z_MEM_ERROR:df,Z_BUF_ERROR:K2,Z_DEFLATED:dc}=ba,us=16180,pc=16181,gc=16182,mc=16183,bc=16184,vc=16185,wc=16186,_c=16187,yc=16188,xc=16189,hs=16190,Ui=16191,Ll=16192,Ac=16193,Sl=16194,Nc=16195,Lc=16196,Sc=16197,kc=16198,rs=16199,as=16200,Pc=16201,Ec=16202,Ic=16203,Cc=16204,Fc=16205,kl=16206,Oc=16207,Tc=16208,Be=16209,pf=16210,gf=16211,X2=852,J2=592,Q2=15,t0=Q2,Rc=t=>(t>>>24&255)+(t>>>8&65280)+((t&65280)<<8)+((t&255)<<24);function e0(){this.strm=null,this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new Uint16Array(320),this.work=new Uint16Array(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}var Br=t=>{if(!t)return 1;let n=t.state;return!n||n.strm!==t||n.modegf?1:0},mf=t=>{if(Br(t))return Xn;let n=t.state;return t.total_in=t.total_out=n.total=0,t.msg="",n.wrap&&(t.adler=n.wrap&1),n.mode=us,n.last=0,n.havedict=0,n.flags=-1,n.dmax=32768,n.head=null,n.hold=0,n.bits=0,n.lencode=n.lendyn=new Int32Array(X2),n.distcode=n.distdyn=new Int32Array(J2),n.sane=1,n.back=-1,Rr},bf=t=>{if(Br(t))return Xn;let n=t.state;return n.wsize=0,n.whave=0,n.wnext=0,mf(t)},vf=(t,n)=>{let e;if(Br(t))return Xn;let i=t.state;return n<0?(e=0,n=-n):(e=(n>>4)+5,n<48&&(n&=15)),n&&(n<8||n>15)?Xn:(i.window!==null&&i.wbits!==n&&(i.window=null),i.wrap=e,i.wbits=n,bf(t))},wf=(t,n)=>{if(!t)return Xn;let e=new e0;t.state=e,e.strm=t,e.window=null,e.mode=us;let i=vf(t,n);return i!==Rr&&(t.state=null),i},n0=t=>wf(t,t0),Bc=!0,Pl,El,i0=t=>{if(Bc){Pl=new Int32Array(512),El=new Int32Array(32);let n=0;for(;n<144;)t.lens[n++]=8;for(;n<256;)t.lens[n++]=9;for(;n<280;)t.lens[n++]=7;for(;n<288;)t.lens[n++]=8;for(ro(cf,t.lens,0,288,Pl,0,t.work,{bits:9}),n=0;n<32;)t.lens[n++]=5;ro(ff,t.lens,0,32,El,0,t.work,{bits:5}),Bc=!1}t.lencode=Pl,t.lenbits=9,t.distcode=El,t.distbits=5},_f=(t,n,e,i)=>{let a,o=t.state;return o.window===null&&(o.window=new Uint8Array(1<=o.wsize?(o.window.set(n.subarray(e-o.wsize,e),0),o.wnext=0,o.whave=o.wsize):(a=o.wsize-o.wnext,a>i&&(a=i),o.window.set(n.subarray(e-i,e-i+a),o.wnext),i-=a,i?(o.window.set(n.subarray(e-i,e),0),o.wnext=i,o.whave=o.wsize):(o.wnext+=a,o.wnext===o.wsize&&(o.wnext=0),o.whave{let e,i,a,o,f,l,c,d,m,A,L,p,T,O,B=0,k,Z,$,D,lt,_t,mt,tt,z=new Uint8Array(4),et,N,F=new Uint8Array([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);if(Br(t)||!t.output||!t.input&&t.avail_in!==0)return Xn;e=t.state,e.mode===Ui&&(e.mode=Ll),f=t.next_out,a=t.output,c=t.avail_out,o=t.next_in,i=t.input,l=t.avail_in,d=e.hold,m=e.bits,A=l,L=c,tt=Rr;t:for(;;)switch(e.mode){case us:if(e.wrap===0){e.mode=Ll;break}for(;m<16;){if(l===0)break t;l--,d+=i[o++]<>>8&255,e.check=an(e.check,z,2,0),d=0,m=0,e.mode=pc;break}if(e.head&&(e.head.done=!1),!(e.wrap&1)||(((d&255)<<8)+(d>>8))%31){t.msg="incorrect header check",e.mode=Be;break}if((d&15)!==dc){t.msg="unknown compression method",e.mode=Be;break}if(d>>>=4,m-=4,mt=(d&15)+8,e.wbits===0&&(e.wbits=mt),mt>15||mt>e.wbits){t.msg="invalid window size",e.mode=Be;break}e.dmax=1<>8&1),e.flags&512&&e.wrap&4&&(z[0]=d&255,z[1]=d>>>8&255,e.check=an(e.check,z,2,0)),d=0,m=0,e.mode=gc;case gc:for(;m<32;){if(l===0)break t;l--,d+=i[o++]<>>8&255,z[2]=d>>>16&255,z[3]=d>>>24&255,e.check=an(e.check,z,4,0)),d=0,m=0,e.mode=mc;case mc:for(;m<16;){if(l===0)break t;l--,d+=i[o++]<>8),e.flags&512&&e.wrap&4&&(z[0]=d&255,z[1]=d>>>8&255,e.check=an(e.check,z,2,0)),d=0,m=0,e.mode=bc;case bc:if(e.flags&1024){for(;m<16;){if(l===0)break t;l--,d+=i[o++]<>>8&255,e.check=an(e.check,z,2,0)),d=0,m=0}else e.head&&(e.head.extra=null);e.mode=vc;case vc:if(e.flags&1024&&(p=e.length,p>l&&(p=l),p&&(e.head&&(mt=e.head.extra_len-e.length,e.head.extra||(e.head.extra=new Uint8Array(e.head.extra_len)),e.head.extra.set(i.subarray(o,o+p),mt)),e.flags&512&&e.wrap&4&&(e.check=an(e.check,i,p,o)),l-=p,o+=p,e.length-=p),e.length))break t;e.length=0,e.mode=wc;case wc:if(e.flags&2048){if(l===0)break t;p=0;do mt=i[o+p++],e.head&&mt&&e.length<65536&&(e.head.name+=String.fromCharCode(mt));while(mt&&p>9&1,e.head.done=!0),t.adler=e.check=0,e.mode=Ui;break;case xc:for(;m<32;){if(l===0)break t;l--,d+=i[o++]<>>=m&7,m-=m&7,e.mode=kl;break}for(;m<3;){if(l===0)break t;l--,d+=i[o++]<>>=1,m-=1,d&3){case 0:e.mode=Ac;break;case 1:if(i0(e),e.mode=rs,n===is){d>>>=2,m-=2;break t}break;case 2:e.mode=Lc;break;case 3:t.msg="invalid block type",e.mode=Be}d>>>=2,m-=2;break;case Ac:for(d>>>=m&7,m-=m&7;m<32;){if(l===0)break t;l--,d+=i[o++]<>>16^65535)){t.msg="invalid stored block lengths",e.mode=Be;break}if(e.length=d&65535,d=0,m=0,e.mode=Sl,n===is)break t;case Sl:e.mode=Nc;case Nc:if(p=e.length,p){if(p>l&&(p=l),p>c&&(p=c),p===0)break t;a.set(i.subarray(o,o+p),f),l-=p,o+=p,c-=p,f+=p,e.length-=p;break}e.mode=Ui;break;case Lc:for(;m<14;){if(l===0)break t;l--,d+=i[o++]<>>=5,m-=5,e.ndist=(d&31)+1,d>>>=5,m-=5,e.ncode=(d&15)+4,d>>>=4,m-=4,e.nlen>286||e.ndist>30){t.msg="too many length or distance symbols",e.mode=Be;break}e.have=0,e.mode=Sc;case Sc:for(;e.have>>=3,m-=3}for(;e.have<19;)e.lens[F[e.have++]]=0;if(e.lencode=e.lendyn,e.lenbits=7,et={bits:e.lenbits},tt=ro(V2,e.lens,0,19,e.lencode,0,e.work,et),e.lenbits=et.bits,tt){t.msg="invalid code lengths set",e.mode=Be;break}e.have=0,e.mode=kc;case kc:for(;e.have>>24,Z=B>>>16&255,$=B&65535,!(k<=m);){if(l===0)break t;l--,d+=i[o++]<>>=k,m-=k,e.lens[e.have++]=$;else{if($===16){for(N=k+2;m>>=k,m-=k,e.have===0){t.msg="invalid bit length repeat",e.mode=Be;break}mt=e.lens[e.have-1],p=3+(d&3),d>>>=2,m-=2}else if($===17){for(N=k+3;m>>=k,m-=k,mt=0,p=3+(d&7),d>>>=3,m-=3}else{for(N=k+7;m>>=k,m-=k,mt=0,p=11+(d&127),d>>>=7,m-=7}if(e.have+p>e.nlen+e.ndist){t.msg="invalid bit length repeat",e.mode=Be;break}for(;p--;)e.lens[e.have++]=mt}}if(e.mode===Be)break;if(e.lens[256]===0){t.msg="invalid code -- missing end-of-block",e.mode=Be;break}if(e.lenbits=9,et={bits:e.lenbits},tt=ro(cf,e.lens,0,e.nlen,e.lencode,0,e.work,et),e.lenbits=et.bits,tt){t.msg="invalid literal/lengths set",e.mode=Be;break}if(e.distbits=6,e.distcode=e.distdyn,et={bits:e.distbits},tt=ro(ff,e.lens,e.nlen,e.ndist,e.distcode,0,e.work,et),e.distbits=et.bits,tt){t.msg="invalid distances set",e.mode=Be;break}if(e.mode=rs,n===is)break t;case rs:e.mode=as;case as:if(l>=6&&c>=258){t.next_out=f,t.avail_out=c,t.next_in=o,t.avail_in=l,e.hold=d,e.bits=m,U2(t,L),f=t.next_out,a=t.output,c=t.avail_out,o=t.next_in,i=t.input,l=t.avail_in,d=e.hold,m=e.bits,e.mode===Ui&&(e.back=-1);break}for(e.back=0;B=e.lencode[d&(1<>>24,Z=B>>>16&255,$=B&65535,!(k<=m);){if(l===0)break t;l--,d+=i[o++]<>D)],k=B>>>24,Z=B>>>16&255,$=B&65535,!(D+k<=m);){if(l===0)break t;l--,d+=i[o++]<>>=D,m-=D,e.back+=D}if(d>>>=k,m-=k,e.back+=k,e.length=$,Z===0){e.mode=Fc;break}if(Z&32){e.back=-1,e.mode=Ui;break}if(Z&64){t.msg="invalid literal/length code",e.mode=Be;break}e.extra=Z&15,e.mode=Pc;case Pc:if(e.extra){for(N=e.extra;m>>=e.extra,m-=e.extra,e.back+=e.extra}e.was=e.length,e.mode=Ec;case Ec:for(;B=e.distcode[d&(1<>>24,Z=B>>>16&255,$=B&65535,!(k<=m);){if(l===0)break t;l--,d+=i[o++]<>D)],k=B>>>24,Z=B>>>16&255,$=B&65535,!(D+k<=m);){if(l===0)break t;l--,d+=i[o++]<>>=D,m-=D,e.back+=D}if(d>>>=k,m-=k,e.back+=k,Z&64){t.msg="invalid distance code",e.mode=Be;break}e.offset=$,e.extra=Z&15,e.mode=Ic;case Ic:if(e.extra){for(N=e.extra;m>>=e.extra,m-=e.extra,e.back+=e.extra}if(e.offset>e.dmax){t.msg="invalid distance too far back",e.mode=Be;break}e.mode=Cc;case Cc:if(c===0)break t;if(p=L-c,e.offset>p){if(p=e.offset-p,p>e.whave&&e.sane){t.msg="invalid distance too far back",e.mode=Be;break}p>e.wnext?(p-=e.wnext,T=e.wsize-p):T=e.wnext-p,p>e.length&&(p=e.length),O=e.window}else O=a,T=f-e.offset,p=e.length;p>c&&(p=c),c-=p,e.length-=p;do a[f++]=O[T++];while(--p);e.length===0&&(e.mode=as);break;case Fc:if(c===0)break t;a[f++]=e.length,c--,e.mode=as;break;case kl:if(e.wrap){for(;m<32;){if(l===0)break t;l--,d|=i[o++]<{if(Br(t))return Xn;let n=t.state;return n.window&&(n.window=null),t.state=null,Rr},o0=(t,n)=>{if(Br(t))return Xn;let e=t.state;return(e.wrap&2)===0?Xn:(e.head=n,n.done=!1,Rr)},s0=(t,n)=>{let e=n.length,i,a,o;return Br(t)||(i=t.state,i.wrap!==0&&i.mode!==hs)?Xn:i.mode===hs&&(a=1,a=ho(a,n,e,0),a!==i.check)?uf:(o=_f(t,n,e,e),o?(i.mode=pf,df):(i.havedict=1,Rr))},l0=bf,h0=vf,c0=mf,f0=n0,u0=wf,d0=r0,p0=a0,g0=o0,m0=s0,b0="pako inflate (from Nodeca project)",wi={inflateReset:l0,inflateReset2:h0,inflateResetKeep:c0,inflateInit:f0,inflateInit2:u0,inflate:d0,inflateEnd:p0,inflateGetHeader:g0,inflateSetDictionary:m0,inflateInfo:b0};function v0(){this.text=0,this.time=0,this.xflags=0,this.os=0,this.extra=null,this.extra_len=0,this.name="",this.comment="",this.hcrc=0,this.done=!1}var w0=v0,yf=Object.prototype.toString,{Z_NO_FLUSH:_0,Z_FINISH:jc,Z_OK:da,Z_STREAM_END:Il,Z_NEED_DICT:Cl,Z_STREAM_ERROR:y0,Z_DATA_ERROR:Mc,Z_MEM_ERROR:x0,Z_BUF_ERROR:Dc}=ba,A0={chunkSize:1024*64,windowBits:15,to:""};function mo(t){this.options=fs.assign({},A0,t||{});let n=this.options;n.raw&&n.windowBits>=0&&n.windowBits<16&&(n.windowBits=-n.windowBits,n.windowBits===0&&(n.windowBits=-15)),n.windowBits>=0&&n.windowBits<16&&!(t&&t.windowBits)&&(n.windowBits+=32),n.windowBits>15&&n.windowBits<48&&(n.windowBits&15)===0&&(n.windowBits|=15),this.err=0,this.msg="",this.ended=!1,this.chunks=[],this.strm=new lf,this.strm.avail_out=0;let e=wi.inflateInit2(this.strm,n.windowBits);if(e!==da)throw new Error(Fr[e]);if(this.header=new w0,wi.inflateGetHeader(this.strm,this.header),n.dictionary&&(typeof n.dictionary=="string"?n.dictionary=fo.string2buf(n.dictionary):yf.call(n.dictionary)==="[object ArrayBuffer]"&&(n.dictionary=new Uint8Array(n.dictionary)),n.raw&&(e=wi.inflateSetDictionary(this.strm,n.dictionary),e!==da)))throw new Error(Fr[e])}mo.prototype.push=function(t,n){let e=this.strm,i=this.options.chunkSize,a=this.options.dictionary,o,f,l;if(this.ended)return!1;for(n===~~n?f=n:f=n===!0?jc:_0,yf.call(t)==="[object ArrayBuffer]"?e.input=new Uint8Array(t):e.input=t,e.next_in=0,e.avail_in=e.input.length;;){for(e.avail_out===0&&(e.output=new Uint8Array(i),e.next_out=0,e.avail_out=i),o=wi.inflate(e,f),o===Cl&&a&&(o=wi.inflateSetDictionary(e,a),o===da?o=wi.inflate(e,f):o===Mc&&(o=Cl));e.avail_in>0&&o===Il&&e.state.wrap&2&&e.state.flags!==0&&e.input[e.next_in]!==0;)wi.inflateReset(e),o=wi.inflate(e,f);switch(o){case y0:case Mc:case Cl:case x0:return this.onEnd(o),this.ended=!0,!1}if(l=e.avail_out,e.next_out&&(e.avail_out===0||o===Il||f>0))if(this.options.to==="string"){let c=fo.utf8border(e.output,e.next_out),d=e.next_out-c,m=fo.buf2string(e.output,c);e.next_out=d,e.avail_out=i-d,d&&e.output.set(e.output.subarray(c,c+d),0),this.onData(m)}else this.onData(e.output.length===e.next_out?e.output:e.output.subarray(0,e.next_out)),e.avail_out=0,e.next_out=0;if(!((o===da||o===Dc)&&l===0)){if(o===Il)return o=wi.inflateEnd(this.strm),this.onEnd(o),this.ended=!0,!0;if(e.avail_in===0){if(f===jc)return o=wi.inflateEnd(this.strm),this.onEnd(o===da?Dc:o),this.ended=!0,!1;break}}}return!0};mo.prototype.onData=function(t){this.chunks.push(t)};mo.prototype.onEnd=function(t){t===da&&(this.options.to==="string"?this.result=this.chunks.join(""):this.result=fs.flattenChunks(this.chunks)),this.chunks=[],this.err=t,this.msg=this.strm.msg};function $l(t,n){let e=new mo(n);if(e.push(t,!0),e.err)throw e.msg||Fr[e.err];return e.result}function N0(t,n){return n=n||{},n.raw=!0,$l(t,n)}var L0=mo,S0=$l,k0=N0,P0=$l,E0=ba,I0={Inflate:L0,inflate:S0,inflateRaw:k0,ungzip:P0,constants:E0},{Deflate:K5,deflate:X5,deflateRaw:J5,gzip:Q5}=M2,{Inflate:C0,inflate:F0,inflateRaw:td,ungzip:ed}=I0;var Yl=C0,xf=F0;var Nf=[];for(let t=0;t<256;t++){let n=t;for(let e=0;e<8;e++)n&1?n=3988292384^n>>>1:n=n>>>1;Nf[t]=n}var Af=4294967295;function O0(t,n,e){let i=t;for(let a=0;a>>8;return i}function T0(t,n){return(O0(Af,t,n)^Af)>>>0}function Kl(t,n,e){let i=t.readUint32(),a=T0(new Uint8Array(t.buffer,t.byteOffset+t.offset-n-4,n),n);if(a!==i)throw new Error(`CRC mismatch for chunk ${e}. Expected ${i}, found ${a}`)}function ds(t,n,e){for(let i=0;i>1)&255}else{for(;o>1)&255;for(;o>1)&255}}function bs(t,n,e,i,a){let o=0;if(e.length===0){for(;o=e||_t>=i))for(let mt=0;mt>8&255}var U0=new Uint16Array([255]),q0=new Uint8Array(U0.buffer),z0=q0[0]===255,H0=new Uint8Array(0);function Xl(t){let{data:n,width:e,height:i,channels:a,depth:o}=t,f=Math.ceil(o/8)*a,l=Math.ceil(o/8*a*e),c=new Uint8Array(i*l),d=H0,m=0,A,L;for(let p=0;p>8&255}var vs=Uint8Array.of(137,80,78,71,13,10,26,10);function Jl(t){if(!kf(t.readBytes(vs.length)))throw new Error("wrong PNG signature")}function kf(t){if(t.length79)throw new Error("keyword length must be between 1 and 79")}var $0=/^[\u0000-\u00FF]*$/;function Y0(t){if(!$0.test(t))throw new Error("invalid latin1 text")}function If(t,n,e){let i=Ql(n);t[i]=K0(n,e-i.length-1)}function Ql(t){for(t.mark();t.readByte()!==V0;);let n=t.offset;t.reset();let e=Ef.decode(t.readBytes(n-t.offset-1));return t.skip(1),Z0(e),e}function K0(t,n){return Ef.decode(t.readBytes(n))}var Pn={UNKNOWN:-1,GREYSCALE:0,TRUECOLOUR:2,INDEXED_COLOUR:3,GREYSCALE_ALPHA:4,TRUECOLOUR_ALPHA:6},bo={UNKNOWN:-1,DEFLATE:0},ws={UNKNOWN:-1,ADAPTIVE:0},vo={UNKNOWN:-1,NO_INTERLACE:0,ADAM7:1},wo={NONE:0,BACKGROUND:1,PREVIOUS:2},_s={SOURCE:0,OVER:1};var ys=class extends Ja{_checkCrc;_inflator;_png;_apng;_end;_hasPalette;_palette;_hasTransparency;_transparency;_compressionMethod;_filterMethod;_interlaceMethod;_colorType;_isAnimated;_numberOfFrames;_numberOfPlays;_frames;_writingDataChunks;constructor(n,e={}){super(n);let{checkCrc:i=!1}=e;this._checkCrc=i,this._inflator=new Yl,this._png={width:-1,height:-1,channels:-1,data:new Uint8Array(0),depth:1,text:{}},this._apng={width:-1,height:-1,channels:-1,depth:1,numberOfFrames:1,numberOfPlays:0,text:{},frames:[]},this._end=!1,this._hasPalette=!1,this._palette=[],this._hasTransparency=!1,this._transparency=new Uint16Array(0),this._compressionMethod=bo.UNKNOWN,this._filterMethod=ws.UNKNOWN,this._interlaceMethod=vo.UNKNOWN,this._colorType=Pn.UNKNOWN,this._isAnimated=!1,this._numberOfFrames=1,this._numberOfPlays=0,this._frames=[],this._writingDataChunks=!1,this.setBigEndian()}decode(){for(Jl(this);!this._end;){let n=this.readUint32(),e=this.readChars(4);this.decodeChunk(n,e)}return this.decodeImage(),this._png}decodeApng(){for(Jl(this);!this._end;){let n=this.readUint32(),e=this.readChars(4);this.decodeApngChunk(n,e)}return this.decodeApngImage(),this._apng}decodeChunk(n,e){let i=this.offset;switch(e){case"IHDR":this.decodeIHDR();break;case"PLTE":this.decodePLTE(n);break;case"IDAT":this.decodeIDAT(n);break;case"IEND":this._end=!0;break;case"tRNS":this.decodetRNS(n);break;case"iCCP":this.decodeiCCP(n);break;case Pf:If(this._png.text,this,n);break;case"pHYs":this.decodepHYs();break;default:this.skip(n);break}if(this.offset-i!==n)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?Kl(this,n+4,e):this.skip(4)}decodeApngChunk(n,e){let i=this.offset;switch(e!=="fdAT"&&e!=="IDAT"&&this._writingDataChunks&&this.pushDataToFrame(),e){case"acTL":this.decodeACTL();break;case"fcTL":this.decodeFCTL();break;case"fdAT":this.decodeFDAT(n);break;default:this.decodeChunk(n,e),this.offset=i+n;break}if(this.offset-i!==n)throw new Error(`Length mismatch while decoding chunk ${e}`);this._checkCrc?Kl(this,n+4,e):this.skip(4)}decodeIHDR(){let n=this._png;n.width=this.readUint32(),n.height=this.readUint32(),n.depth=X0(this.readUint8());let e=this.readUint8();this._colorType=e;let i;switch(e){case Pn.GREYSCALE:i=1;break;case Pn.TRUECOLOUR:i=3;break;case Pn.INDEXED_COLOUR:i=1;break;case Pn.GREYSCALE_ALPHA:i=2;break;case Pn.TRUECOLOUR_ALPHA:i=4;break;case Pn.UNKNOWN:default:throw new Error(`Unknown color type: ${e}`)}if(this._png.channels=i,this._compressionMethod=this.readUint8(),this._compressionMethod!==bo.DEFLATE)throw new Error(`Unsupported compression method: ${this._compressionMethod}`);this._filterMethod=this.readUint8(),this._interlaceMethod=this.readUint8()}decodeACTL(){this._numberOfFrames=this.readUint32(),this._numberOfPlays=this.readUint32(),this._isAnimated=!0}decodeFCTL(){let n={sequenceNumber:this.readUint32(),width:this.readUint32(),height:this.readUint32(),xOffset:this.readUint32(),yOffset:this.readUint32(),delayNumber:this.readUint16(),delayDenominator:this.readUint16(),disposeOp:this.readUint8(),blendOp:this.readUint8(),data:new Uint8Array(0)};this._frames.push(n)}decodePLTE(n){if(n%3!==0)throw new RangeError(`PLTE field length must be a multiple of 3. Got ${n}`);let e=n/3;this._hasPalette=!0;let i=[];this._palette=i;for(let a=0;athis._png.width*this._png.height)throw new Error(`tRNS chunk contains more alpha values than there are pixels (${n/2} vs ${this._png.width*this._png.height})`);this._hasTransparency=!0,this._transparency=new Uint16Array(n/2);for(let e=0;ethis._palette.length)throw new Error(`tRNS chunk contains more alpha values than there are palette colors (${n} vs ${this._palette.length})`);let e=0;for(;e{let l=((o+e.yOffset)*this._png.width+e.xOffset+f)*this._png.channels,c=(o*e.width+f)*this._png.channels;return{index:l,frameIndex:c}};switch(e.blendOp){case _s.SOURCE:for(let o=0;o=200&&n.status<=299}function xs(t){try{t.dispatchEvent(new MouseEvent("click"))}catch{var n=document.createEvent("MouseEvents");n.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(n)}}var jr=Yt.saveAs||((typeof window>"u"?"undefined":Ne(window))!=="object"||window!==Yt?function(){}:typeof HTMLAnchorElement<"u"&&"download"in HTMLAnchorElement.prototype?function(t,n,e){var i=Yt.URL||Yt.webkitURL,a=document.createElement("a");n=n||t.name||"download",a.download=n,a.rel="noopener",typeof t=="string"?(a.href=t,a.origin!==location.origin?Ff(a.href)?eh(t,n,e):xs(a,a.target="_blank"):xs(a)):(a.href=i.createObjectURL(t),setTimeout(function(){i.revokeObjectURL(a.href)},4e4),setTimeout(function(){xs(a)},0))}:"msSaveOrOpenBlob"in navigator?function(t,n,e){if(n=n||t.name||"download",typeof t=="string")if(Ff(t))eh(t,n,e);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout(function(){xs(i)})}else navigator.msSaveOrOpenBlob((function(a,o){return o===void 0?o={autoBom:!1}:Ne(o)!=="object"&&(ke.warn("Deprecated: Expected third argument to be a object"),o={autoBom:!o}),o.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(a.type)?new Blob(["\uFEFF",a],{type:a.type}):a})(t,e),n)}:function(t,n,e,i){if((i=i||open("","_blank"))&&(i.document.title=i.document.body.innerText="downloading..."),typeof t=="string")return eh(t,n,e);var a=t.type==="application/octet-stream",o=/constructor/i.test(Yt.HTMLElement)||Yt.safari,f=/CriOS\/[\d]+/.test(navigator.userAgent);if((f||a&&o)&&(typeof FileReader>"u"?"undefined":Ne(FileReader))==="object"){var l=new FileReader;l.onloadend=function(){var m=l.result;m=f?m:m.replace(/^data:[^;]*;/,"data:attachment/file;"),i?i.location.href=m:location=m,i=null},l.readAsDataURL(t)}else{var c=Yt.URL||Yt.webkitURL,d=c.createObjectURL(t);i?i.location=d:location.href=d,i=null,setTimeout(function(){c.revokeObjectURL(d)},4e4)}});function tu(t){var n;t=t||"",this.ok=!1,t.charAt(0)=="#"&&(t=t.substr(1,6)),t={aliceblue:"f0f8ff",antiquewhite:"faebd7",aqua:"00ffff",aquamarine:"7fffd4",azure:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"000000",blanchedalmond:"ffebcd",blue:"0000ff",blueviolet:"8a2be2",brown:"a52a2a",burlywood:"deb887",cadetblue:"5f9ea0",chartreuse:"7fff00",chocolate:"d2691e",coral:"ff7f50",cornflowerblue:"6495ed",cornsilk:"fff8dc",crimson:"dc143c",cyan:"00ffff",darkblue:"00008b",darkcyan:"008b8b",darkgoldenrod:"b8860b",darkgray:"a9a9a9",darkgreen:"006400",darkkhaki:"bdb76b",darkmagenta:"8b008b",darkolivegreen:"556b2f",darkorange:"ff8c00",darkorchid:"9932cc",darkred:"8b0000",darksalmon:"e9967a",darkseagreen:"8fbc8f",darkslateblue:"483d8b",darkslategray:"2f4f4f",darkturquoise:"00ced1",darkviolet:"9400d3",deeppink:"ff1493",deepskyblue:"00bfff",dimgray:"696969",dodgerblue:"1e90ff",feldspar:"d19275",firebrick:"b22222",floralwhite:"fffaf0",forestgreen:"228b22",fuchsia:"ff00ff",gainsboro:"dcdcdc",ghostwhite:"f8f8ff",gold:"ffd700",goldenrod:"daa520",gray:"808080",green:"008000",greenyellow:"adff2f",honeydew:"f0fff0",hotpink:"ff69b4",indianred:"cd5c5c",indigo:"4b0082",ivory:"fffff0",khaki:"f0e68c",lavender:"e6e6fa",lavenderblush:"fff0f5",lawngreen:"7cfc00",lemonchiffon:"fffacd",lightblue:"add8e6",lightcoral:"f08080",lightcyan:"e0ffff",lightgoldenrodyellow:"fafad2",lightgrey:"d3d3d3",lightgreen:"90ee90",lightpink:"ffb6c1",lightsalmon:"ffa07a",lightseagreen:"20b2aa",lightskyblue:"87cefa",lightslateblue:"8470ff",lightslategray:"778899",lightsteelblue:"b0c4de",lightyellow:"ffffe0",lime:"00ff00",limegreen:"32cd32",linen:"faf0e6",magenta:"ff00ff",maroon:"800000",mediumaquamarine:"66cdaa",mediumblue:"0000cd",mediumorchid:"ba55d3",mediumpurple:"9370d8",mediumseagreen:"3cb371",mediumslateblue:"7b68ee",mediumspringgreen:"00fa9a",mediumturquoise:"48d1cc",mediumvioletred:"c71585",midnightblue:"191970",mintcream:"f5fffa",mistyrose:"ffe4e1",moccasin:"ffe4b5",navajowhite:"ffdead",navy:"000080",oldlace:"fdf5e6",olive:"808000",olivedrab:"6b8e23",orange:"ffa500",orangered:"ff4500",orchid:"da70d6",palegoldenrod:"eee8aa",palegreen:"98fb98",paleturquoise:"afeeee",palevioletred:"d87093",papayawhip:"ffefd5",peachpuff:"ffdab9",peru:"cd853f",pink:"ffc0cb",plum:"dda0dd",powderblue:"b0e0e6",purple:"800080",red:"ff0000",rosybrown:"bc8f8f",royalblue:"4169e1",saddlebrown:"8b4513",salmon:"fa8072",sandybrown:"f4a460",seagreen:"2e8b57",seashell:"fff5ee",sienna:"a0522d",silver:"c0c0c0",skyblue:"87ceeb",slateblue:"6a5acd",slategray:"708090",snow:"fffafa",springgreen:"00ff7f",steelblue:"4682b4",tan:"d2b48c",teal:"008080",thistle:"d8bfd8",tomato:"ff6347",turquoise:"40e0d0",violet:"ee82ee",violetred:"d02090",wheat:"f5deb3",white:"ffffff",whitesmoke:"f5f5f5",yellow:"ffff00",yellowgreen:"9acd32"}[t=(t=t.replace(/ /g,"")).toLowerCase()]||t;for(var e=[{re:/^rgb\((\d{1,3}),\s*(\d{1,3}),\s*(\d{1,3})\)$/,example:["rgb(123, 234, 45)","rgb(255,234,245)"],process:function(l){return[parseInt(l[1]),parseInt(l[2]),parseInt(l[3])]}},{re:/^(\w{2})(\w{2})(\w{2})$/,example:["#00ff00","336699"],process:function(l){return[parseInt(l[1],16),parseInt(l[2],16),parseInt(l[3],16)]}},{re:/^(\w{1})(\w{1})(\w{1})$/,example:["#fb0","f0f"],process:function(l){return[parseInt(l[1]+l[1],16),parseInt(l[2]+l[2],16),parseInt(l[3]+l[3],16)]}}],i=0;i255?255:this.r,this.g=this.g<0||isNaN(this.g)?0:this.g>255?255:this.g,this.b=this.b<0||isNaN(this.b)?0:this.b>255?255:this.b,this.toRGB=function(){return"rgb("+this.r+", "+this.g+", "+this.b+")"},this.toHex=function(){var l=this.r.toString(16),c=this.g.toString(16),d=this.b.toString(16);return l.length==1&&(l="0"+l),c.length==1&&(c="0"+c),d.length==1&&(d="0"+d),"#"+l+c+d}}var Ls=Yt.atob.bind(Yt),Of=Yt.btoa.bind(Yt);function nh(t,n){var e=t[0],i=t[1],a=t[2],o=t[3];e=vn(e,i,a,o,n[0],7,-680876936),o=vn(o,e,i,a,n[1],12,-389564586),a=vn(a,o,e,i,n[2],17,606105819),i=vn(i,a,o,e,n[3],22,-1044525330),e=vn(e,i,a,o,n[4],7,-176418897),o=vn(o,e,i,a,n[5],12,1200080426),a=vn(a,o,e,i,n[6],17,-1473231341),i=vn(i,a,o,e,n[7],22,-45705983),e=vn(e,i,a,o,n[8],7,1770035416),o=vn(o,e,i,a,n[9],12,-1958414417),a=vn(a,o,e,i,n[10],17,-42063),i=vn(i,a,o,e,n[11],22,-1990404162),e=vn(e,i,a,o,n[12],7,1804603682),o=vn(o,e,i,a,n[13],12,-40341101),a=vn(a,o,e,i,n[14],17,-1502002290),e=wn(e,i=vn(i,a,o,e,n[15],22,1236535329),a,o,n[1],5,-165796510),o=wn(o,e,i,a,n[6],9,-1069501632),a=wn(a,o,e,i,n[11],14,643717713),i=wn(i,a,o,e,n[0],20,-373897302),e=wn(e,i,a,o,n[5],5,-701558691),o=wn(o,e,i,a,n[10],9,38016083),a=wn(a,o,e,i,n[15],14,-660478335),i=wn(i,a,o,e,n[4],20,-405537848),e=wn(e,i,a,o,n[9],5,568446438),o=wn(o,e,i,a,n[14],9,-1019803690),a=wn(a,o,e,i,n[3],14,-187363961),i=wn(i,a,o,e,n[8],20,1163531501),e=wn(e,i,a,o,n[13],5,-1444681467),o=wn(o,e,i,a,n[2],9,-51403784),a=wn(a,o,e,i,n[7],14,1735328473),e=_n(e,i=wn(i,a,o,e,n[12],20,-1926607734),a,o,n[5],4,-378558),o=_n(o,e,i,a,n[8],11,-2022574463),a=_n(a,o,e,i,n[11],16,1839030562),i=_n(i,a,o,e,n[14],23,-35309556),e=_n(e,i,a,o,n[1],4,-1530992060),o=_n(o,e,i,a,n[4],11,1272893353),a=_n(a,o,e,i,n[7],16,-155497632),i=_n(i,a,o,e,n[10],23,-1094730640),e=_n(e,i,a,o,n[13],4,681279174),o=_n(o,e,i,a,n[0],11,-358537222),a=_n(a,o,e,i,n[3],16,-722521979),i=_n(i,a,o,e,n[6],23,76029189),e=_n(e,i,a,o,n[9],4,-640364487),o=_n(o,e,i,a,n[12],11,-421815835),a=_n(a,o,e,i,n[15],16,530742520),e=yn(e,i=_n(i,a,o,e,n[2],23,-995338651),a,o,n[0],6,-198630844),o=yn(o,e,i,a,n[7],10,1126891415),a=yn(a,o,e,i,n[14],15,-1416354905),i=yn(i,a,o,e,n[5],21,-57434055),e=yn(e,i,a,o,n[12],6,1700485571),o=yn(o,e,i,a,n[3],10,-1894986606),a=yn(a,o,e,i,n[10],15,-1051523),i=yn(i,a,o,e,n[1],21,-2054922799),e=yn(e,i,a,o,n[8],6,1873313359),o=yn(o,e,i,a,n[15],10,-30611744),a=yn(a,o,e,i,n[6],15,-1560198380),i=yn(i,a,o,e,n[13],21,1309151649),e=yn(e,i,a,o,n[4],6,-145523070),o=yn(o,e,i,a,n[11],10,-1120210379),a=yn(a,o,e,i,n[2],15,718787259),i=yn(i,a,o,e,n[9],21,-343485551),t[0]=lr(e,t[0]),t[1]=lr(i,t[1]),t[2]=lr(a,t[2]),t[3]=lr(o,t[3])}function Fs(t,n,e,i,a,o){return n=lr(lr(n,t),lr(i,o)),lr(n<>>32-a,e)}function vn(t,n,e,i,a,o,f){return Fs(n&e|~n&i,t,n,a,o,f)}function wn(t,n,e,i,a,o,f){return Fs(n&i|e&~i,t,n,a,o,f)}function _n(t,n,e,i,a,o,f){return Fs(n^e^i,t,n,a,o,f)}function yn(t,n,e,i,a,o,f){return Fs(e^(n|~i),t,n,a,o,f)}function eu(t){var n,e=t.length,i=[1732584193,-271733879,-1732584194,271733878];for(n=64;n<=t.length;n+=64)nh(i,J0(t.substring(n-64,n)));t=t.substring(n-64);var a=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(n=0;n>2]|=t.charCodeAt(n)<<(n%4<<3);if(a[n>>2]|=128<<(n%4<<3),n>55)for(nh(i,a),n=0;n<16;n++)a[n]=0;return a[14]=8*e,nh(i,a),i}function J0(t){var n,e=[];for(n=0;n<64;n+=4)e[n>>2]=t.charCodeAt(n)+(t.charCodeAt(n+1)<<8)+(t.charCodeAt(n+2)<<16)+(t.charCodeAt(n+3)<<24);return e}var Tf="0123456789abcdef".split("");function Q0(t){for(var n="",e=0;e<4;e++)n+=Tf[t>>8*e+4&15]+Tf[t>>8*e&15];return n}function t5(t){return String.fromCharCode(255&t,(65280&t)>>8,(16711680&t)>>16,(4278190080&t)>>24)}function lh(t){return eu(t).map(t5).join("")}var e5=(function(t){for(var n=0;n>16)+(n>>16)+(e>>16)<<16|65535&e}return t+n&4294967295}function hh(t,n){var e,i,a,o;if(t!==e){for(var f=(a=t,o=1+(256/t.length|0),new Array(o+1).join(a)),l=[],c=0;c<256;c++)l[c]=c;var d=0;for(c=0;c<256;c++){var m=l[c];d=(d+m+f.charCodeAt(c))%256,l[c]=l[d],l[d]=m}e=t,i=l}else l=i;var A=n.length,L=0,p=0,T="";for(c=0;c\x80/\f\xA9\xFEdSiz";var o=(n+this.padding).substr(0,32),f=(e+this.padding).substr(0,32);this.O=this.processOwnerPassword(o,f),this.P=-(1+(255^a)),this.encryptionKey=lh(o+this.O+this.lsbFirstWord(this.P)+this.hexToBytes(i)).substr(0,5),this.U=hh(this.encryptionKey,this.padding)}function Aa(t){if(/[^\u0000-\u00ff]/.test(t))throw new Error("Invalid PDF Name Object: "+t+", Only accept ASCII characters.");for(var n="",e=t.length,i=0;i126?"#"+("0"+a.toString(16)).slice(-2):t[i]}return n}function Bf(t){if(Ne(t)!=="object")throw new Error("Invalid Context passed to initialize PubSub (jsPDF-module)");var n={};this.subscribe=function(e,i,a){if(a=a||!1,typeof e!="string"||typeof i!="function"||typeof a!="boolean")throw new Error("Invalid arguments passed to PubSub.subscribe (jsPDF-module)");n.hasOwnProperty(e)||(n[e]={});var o=Math.random().toString(35);return n[e][o]=[i,!!a],o},this.unsubscribe=function(e){for(var i in n)if(n[i][e])return delete n[i][e],Object.keys(n[i]).length===0&&delete n[i],!0;return!1},this.publish=function(e){if(n.hasOwnProperty(e)){var i=Array.prototype.slice.call(arguments,1),a=[];for(var o in n[e]){var f=n[e][o];try{f[0].apply(t,i)}catch(l){Yt.console&&ke.error("jsPDF PubSub Error",l.message,l)}f[1]&&a.push(o)}a.length&&a.forEach(this.unsubscribe)}},this.getTopics=function(){return n}}function Is(t){if(!(this instanceof Is))return new Is(t);var n="opacity,stroke-opacity".split(",");for(var e in t)t.hasOwnProperty(e)&&n.indexOf(e)>=0&&(this[e]=t[e]);this.id="",this.objectNumber=-1}function nu(t,n){this.gState=t,this.matrix=n,this.id="",this.objectNumber=-1}function Mr(t,n,e,i,a){if(!(this instanceof Mr))return new Mr(t,n,e,i,a);this.type=t==="axial"?2:3,this.coords=n,this.colors=e,nu.call(this,i,a)}function Na(t,n,e,i,a){if(!(this instanceof Na))return new Na(t,n,e,i,a);this.boundingBox=t,this.xStep=n,this.yStep=e,this.stream="",this.cloneIndex=0,nu.call(this,i,a)}function Mt(t){var n,e=typeof arguments[0]=="string"?arguments[0]:"p",i=arguments[1],a=arguments[2],o=arguments[3],f=[],l=1,c=16,d="S",m=null;Ne(t=t||{})==="object"&&(e=t.orientation,i=t.unit||i,a=t.format||a,o=t.compress||t.compressPdf||o,(m=t.encryption||null)!==null&&(m.userPassword=m.userPassword||"",m.ownerPassword=m.ownerPassword||"",m.userPermissions=m.userPermissions||[]),l=typeof t.userUnit=="number"?Math.abs(t.userUnit):1,t.precision!==void 0&&(n=t.precision),t.floatPrecision!==void 0&&(c=t.floatPrecision),d=t.defaultPathOperation||"S"),f=t.filters||(o===!0?["FlateEncode"]:f),i=i||"mm",e=(""+(e||"P")).toLowerCase();var A=t.putOnlyUsedFonts||!1,L={},p={internal:{},__private__:{}};p.__private__.PubSub=Bf;var T="1.3",O=p.__private__.getPdfVersion=function(){return T};p.__private__.setPdfVersion=function(h){T=h};var B={a0:[2383.94,3370.39],a1:[1683.78,2383.94],a2:[1190.55,1683.78],a3:[841.89,1190.55],a4:[595.28,841.89],a5:[419.53,595.28],a6:[297.64,419.53],a7:[209.76,297.64],a8:[147.4,209.76],a9:[104.88,147.4],a10:[73.7,104.88],b0:[2834.65,4008.19],b1:[2004.09,2834.65],b2:[1417.32,2004.09],b3:[1000.63,1417.32],b4:[708.66,1000.63],b5:[498.9,708.66],b6:[354.33,498.9],b7:[249.45,354.33],b8:[175.75,249.45],b9:[124.72,175.75],b10:[87.87,124.72],c0:[2599.37,3676.54],c1:[1836.85,2599.37],c2:[1298.27,1836.85],c3:[918.43,1298.27],c4:[649.13,918.43],c5:[459.21,649.13],c6:[323.15,459.21],c7:[229.61,323.15],c8:[161.57,229.61],c9:[113.39,161.57],c10:[79.37,113.39],dl:[311.81,623.62],letter:[612,792],"government-letter":[576,756],legal:[612,1008],"junior-legal":[576,360],ledger:[1224,792],tabloid:[792,1224],"credit-card":[153,243]};p.__private__.getPageFormats=function(){return B};var k=p.__private__.getPageFormat=function(h){return B[h]};a=a||"a4";var Z="compat",$="advanced",D=Z;function lt(){this.saveGraphicsState(),P(new Vt(ne,0,0,-ne,0,mr()*ne).toString()+" cm"),this.setFontSize(this.getFontSize()/ne),d="n",D=$}function _t(){this.restoreGraphicsState(),d="S",D=Z}var mt=p.__private__.combineFontStyleAndFontWeight=function(h,b){if(h=="bold"&&b=="normal"||h=="bold"&&b==400||h=="normal"&&b=="italic"||h=="bold"&&b=="italic")throw new Error("Invalid Combination of fontweight and fontstyle");return b&&(h=b==400||b==="normal"?h==="italic"?"italic":"normal":b!=700&&b!=="bold"||h!=="normal"?(b==700?"bold":b)+""+h:"bold"),h};p.advancedAPI=function(h){var b=D===Z;return b&<.call(this),typeof h!="function"||(h(this),b&&_t.call(this)),this},p.compatAPI=function(h){var b=D===$;return b&&_t.call(this),typeof h!="function"||(h(this),b&<.call(this)),this},p.isAdvancedAPI=function(){return D===$};var tt,z=function(h){if(D!==$)throw new Error(h+" is only available in 'advanced' API mode. You need to call advancedAPI() first.")},et=p.roundToPrecision=p.__private__.roundToPrecision=function(h,b){var E=n||b;if(isNaN(h)||isNaN(E))throw new Error("Invalid argument passed to jsPDF.roundToPrecision");return h.toFixed(E).replace(/0+$/,"")};tt=p.hpf=p.__private__.hpf=typeof c=="number"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return et(h,c)}:c==="smart"?function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return et(h,h>-1&&h<1?16:5)}:function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.hpf");return et(h,16)};var N=p.f2=p.__private__.f2=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f2");return et(h,2)},F=p.__private__.f3=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.f3");return et(h,3)},U=p.scale=p.__private__.scale=function(h){if(isNaN(h))throw new Error("Invalid argument passed to jsPDF.scale");return D===Z?h*ne:D===$?h:void 0},q=function(h){return U((function(b){return D===Z?mr()-b:D===$?b:void 0})(h))};p.__private__.setPrecision=p.setPrecision=function(h){typeof parseInt(h,10)=="number"&&(n=parseInt(h,10))};var it,ft="00000000000000000000000000000000",pt=p.__private__.getFileId=function(){return ft},nt=p.__private__.setFileId=function(h){return ft=h!==void 0&&/^[a-fA-F0-9]{32}$/.test(h)?h.toUpperCase():ft.split("").map(function(){return"ABCDEF0123456789".charAt(Math.floor(16*Math.random()))}).join(""),m!==null&&(ln=new xa(m.userPermissions,m.userPassword,m.ownerPassword,ft)),ft};p.setFileId=function(h){return nt(h),this},p.getFileId=function(){return pt()};var ut=p.__private__.convertDateToPDFDate=function(h){var b=h.getTimezoneOffset(),E=b<0?"+":"-",M=Math.floor(Math.abs(b/60)),V=Math.abs(b%60),ot=[E,j(M),"'",j(V),"'"].join("");return["D:",h.getFullYear(),j(h.getMonth()+1),j(h.getDate()),j(h.getHours()),j(h.getMinutes()),j(h.getSeconds()),ot].join("")},At=p.__private__.convertPDFDateToDate=function(h){var b=parseInt(h.substr(2,4),10),E=parseInt(h.substr(6,2),10)-1,M=parseInt(h.substr(8,2),10),V=parseInt(h.substr(10,2),10),ot=parseInt(h.substr(12,2),10),gt=parseInt(h.substr(14,2),10);return new Date(b,E,M,V,ot,gt,0)},yt=p.__private__.setCreationDate=function(h){var b;if(h===void 0&&(h=new Date),h instanceof Date)b=ut(h);else{if(!/^D:(20[0-2][0-9]|203[0-7]|19[7-9][0-9])(0[0-9]|1[0-2])([0-2][0-9]|3[0-1])(0[0-9]|1[0-9]|2[0-3])(0[0-9]|[1-5][0-9])(0[0-9]|[1-5][0-9])(\+0[0-9]|\+1[0-4]|-0[0-9]|-1[0-1])'(0[0-9]|[1-5][0-9])'?$/.test(h))throw new Error("Invalid argument passed to jsPDF.setCreationDate");b=h}return it=b},y=p.__private__.getCreationDate=function(h){var b=it;return h==="jsDate"&&(b=At(it)),b};p.setCreationDate=function(h){return yt(h),this},p.getCreationDate=function(h){return y(h)};var R,j=p.__private__.padd2=function(h){return("0"+parseInt(h)).slice(-2)},G=p.__private__.padd2Hex=function(h){return("00"+(h=h.toString())).substr(h.length)},Y=0,Q=[],rt=[],at=0,dt=[],xt=[],St=!1,kt=rt;p.__private__.setCustomOutputDestination=function(h){St=!0,kt=h};var zt=function(h){St||(kt=h)};p.__private__.resetCustomOutputDestination=function(){St=!1,kt=rt};var P=p.__private__.out=function(h){return h=h.toString(),at+=h.length+1,kt.push(h),kt},Lt=p.__private__.write=function(h){return P(arguments.length===1?h.toString():Array.prototype.join.call(arguments," "))},ae=p.__private__.getArrayBuffer=function(h){for(var b=h.length,E=new ArrayBuffer(b),M=new Uint8Array(E);b--;)M[b]=h.charCodeAt(b);return E},Ht=[["Helvetica","helvetica","normal","WinAnsiEncoding"],["Helvetica-Bold","helvetica","bold","WinAnsiEncoding"],["Helvetica-Oblique","helvetica","italic","WinAnsiEncoding"],["Helvetica-BoldOblique","helvetica","bolditalic","WinAnsiEncoding"],["Courier","courier","normal","WinAnsiEncoding"],["Courier-Bold","courier","bold","WinAnsiEncoding"],["Courier-Oblique","courier","italic","WinAnsiEncoding"],["Courier-BoldOblique","courier","bolditalic","WinAnsiEncoding"],["Times-Roman","times","normal","WinAnsiEncoding"],["Times-Bold","times","bold","WinAnsiEncoding"],["Times-Italic","times","italic","WinAnsiEncoding"],["Times-BoldItalic","times","bolditalic","WinAnsiEncoding"],["ZapfDingbats","zapfdingbats","normal",null],["Symbol","symbol","normal",null]];p.__private__.getStandardFonts=function(){return Ht};var vt=t.fontSize||16;p.__private__.setFontSize=p.setFontSize=function(h){return vt=D===$?h/ne:h,this};var Wt,Et=p.__private__.getFontSize=p.getFontSize=function(){return D===Z?vt:vt*ne},qt=t.R2L||!1;p.__private__.setR2L=p.setR2L=function(h){return qt=h,this},p.__private__.getR2L=p.getR2L=function(){return qt};var Dt,we=p.__private__.setZoomMode=function(h){if(/^(?:\d+\.\d*|\d*\.\d+|\d+)%$/.test(h))Wt=h;else if(isNaN(h)){if([void 0,null,"fullwidth","fullheight","fullpage","original"].indexOf(h)===-1)throw new Error('zoom must be Integer (e.g. 2), a percentage Value (e.g. 300%) or fullwidth, fullheight, fullpage, original. "'+h+'" is not recognized.');Wt=h}else Wt=parseInt(h,10)};p.__private__.getZoomMode=function(){return Wt};var he,Jt=p.__private__.setPageMode=function(h){if([void 0,null,"UseNone","UseOutlines","UseThumbs","FullScreen"].indexOf(h)==-1)throw new Error('Page mode must be one of UseNone, UseOutlines, UseThumbs, or FullScreen. "'+h+'" is not recognized.');Dt=h};p.__private__.getPageMode=function(){return Dt};var fe=p.__private__.setLayoutMode=function(h){if([void 0,null,"continuous","single","twoleft","tworight","two"].indexOf(h)==-1)throw new Error('Layout mode must be one of continuous, single, twoleft, tworight. "'+h+'" is not recognized.');he=h};p.__private__.getLayoutMode=function(){return he},p.__private__.setDisplayMode=p.setDisplayMode=function(h,b,E){return we(h),fe(b),Jt(E),this};var ce={title:"",subject:"",author:"",keywords:"",creator:""};p.__private__.getDocumentProperty=function(h){if(Object.keys(ce).indexOf(h)===-1)throw new Error("Invalid argument passed to jsPDF.getDocumentProperty");return ce[h]},p.__private__.getDocumentProperties=function(){return ce},p.__private__.setDocumentProperties=p.setProperties=p.setDocumentProperties=function(h){for(var b in ce)ce.hasOwnProperty(b)&&h[b]&&(ce[b]=h[b]);return this},p.__private__.setDocumentProperty=function(h,b){if(Object.keys(ce).indexOf(h)===-1)throw new Error("Invalid arguments passed to jsPDF.setDocumentProperty");return ce[h]=b};var Rt,ne,jt,He,ge,oe={},se={},Te=[],Ut={},Pe={},Zt={},Qt={},Re=null,le=0,Gt=[],_e=new Bf(p),cr=t.hotfixes||[],dn={},Si={},li=[],Vt=function h(b,E,M,V,ot,gt){if(!(this instanceof h))return new h(b,E,M,V,ot,gt);isNaN(b)&&(b=1),isNaN(E)&&(E=0),isNaN(M)&&(M=0),isNaN(V)&&(V=1),isNaN(ot)&&(ot=0),isNaN(gt)&&(gt=0),this._matrix=[b,E,M,V,ot,gt]};Object.defineProperty(Vt.prototype,"sx",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(Vt.prototype,"shy",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(Vt.prototype,"shx",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(Vt.prototype,"sy",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(Vt.prototype,"tx",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(Vt.prototype,"ty",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(Vt.prototype,"a",{get:function(){return this._matrix[0]},set:function(h){this._matrix[0]=h}}),Object.defineProperty(Vt.prototype,"b",{get:function(){return this._matrix[1]},set:function(h){this._matrix[1]=h}}),Object.defineProperty(Vt.prototype,"c",{get:function(){return this._matrix[2]},set:function(h){this._matrix[2]=h}}),Object.defineProperty(Vt.prototype,"d",{get:function(){return this._matrix[3]},set:function(h){this._matrix[3]=h}}),Object.defineProperty(Vt.prototype,"e",{get:function(){return this._matrix[4]},set:function(h){this._matrix[4]=h}}),Object.defineProperty(Vt.prototype,"f",{get:function(){return this._matrix[5]},set:function(h){this._matrix[5]=h}}),Object.defineProperty(Vt.prototype,"rotation",{get:function(){return Math.atan2(this.shx,this.sx)}}),Object.defineProperty(Vt.prototype,"scaleX",{get:function(){return this.decompose().scale.sx}}),Object.defineProperty(Vt.prototype,"scaleY",{get:function(){return this.decompose().scale.sy}}),Object.defineProperty(Vt.prototype,"isIdentity",{get:function(){return this.sx===1&&this.shy===0&&this.shx===0&&this.sy===1&&this.tx===0&&this.ty===0}}),Vt.prototype.join=function(h){return[this.sx,this.shy,this.shx,this.sy,this.tx,this.ty].map(tt).join(h)},Vt.prototype.multiply=function(h){var b=h.sx*this.sx+h.shy*this.shx,E=h.sx*this.shy+h.shy*this.sy,M=h.shx*this.sx+h.sy*this.shx,V=h.shx*this.shy+h.sy*this.sy,ot=h.tx*this.sx+h.ty*this.shx+this.tx,gt=h.tx*this.shy+h.ty*this.sy+this.ty;return new Vt(b,E,M,V,ot,gt)},Vt.prototype.decompose=function(){var h=this.sx,b=this.shy,E=this.shx,M=this.sy,V=this.tx,ot=this.ty,gt=Math.sqrt(h*h+b*b),Ft=(h/=gt)*E+(b/=gt)*M;E-=h*Ft,M-=b*Ft;var Ct=Math.sqrt(E*E+M*M);return Ft/=Ct,h*(M/=Ct)>16&255,M=Ct>>8&255,V=255&Ct}if(M===void 0||ot===void 0&&E===M&&M===V)b=typeof E=="string"?E+" "+gt[0]:h.precision===2?N(E/255)+" "+gt[0]:F(E/255)+" "+gt[0];else if(ot===void 0||Ne(ot)==="object"){if(ot&&!isNaN(ot.a)&&ot.a===0)return["1.","1.","1.",gt[1]].join(" ");b=typeof E=="string"?[E,M,V,gt[1]].join(" "):h.precision===2?[N(E/255),N(M/255),N(V/255),gt[1]].join(" "):[F(E/255),F(M/255),F(V/255),gt[1]].join(" ")}else b=typeof E=="string"?[E,M,V,ot,gt[2]].join(" "):h.precision===2?[N(E),N(M),N(V),N(ot),gt[2]].join(" "):[F(E),F(M),F(V),F(ot),gt[2]].join(" ");return b},ti=p.__private__.getFilters=function(){return f},Gn=p.__private__.putStream=function(h){var b=(h=h||{}).data||"",E=h.filters||ti(),M=h.alreadyAppliedFilters||[],V=h.addLength1||!1,ot=b.length,gt=h.objectId,Ft=function(Fe){return Fe};if(m!==null&>===void 0)throw new Error("ObjectId must be passed to putStream for file encryption");m!==null&&(Ft=ln.encryptor(gt,0));var Ct={};E===!0&&(E=["FlateEncode"]);var Kt=h.additionalKeyValues||[],te=(Ct=Mt.API.processDataByFilters!==void 0?Mt.API.processDataByFilters(b,E):{data:b,reverseChain:[]}).reverseChain+(Array.isArray(M)?M.join(" "):M.toString());if(Ct.data.length!==0&&(Kt.push({key:"Length",value:Ct.data.length}),V===!0&&Kt.push({key:"Length1",value:ot})),te.length!=0)if(te.split("/").length-1==1)Kt.push({key:"Filter",value:te});else{Kt.push({key:"Filter",value:"["+te+"]"});for(var de=0;de>"),Ct.data.length!==0&&(P("stream"),P(Ft(Ct.data)),P("endstream"))},ur=p.__private__.putPage=function(h){var b=h.number,E=h.data,M=h.objId,V=h.contentsObjId;sn(M,!0),P("<>"),P("endobj");var ot=E.join(` +`);return D===$&&(ot+=` +Q`),sn(V,!0),Gn({data:ot,filters:ti(),objectId:V}),P("endobj"),M},ci=p.__private__.putPages=function(){var h,b,E=[];for(h=1;h<=le;h++)Gt[h].objId=rn(),Gt[h].contentsObjId=rn();for(h=1;h<=le;h++)E.push(ur({number:h,data:xt[h],objId:Gt[h].objId,contentsObjId:Gt[h].contentsObjId,mediaBox:Gt[h].mediaBox,cropBox:Gt[h].cropBox,bleedBox:Gt[h].bleedBox,trimBox:Gt[h].trimBox,artBox:Gt[h].artBox,userUnit:Gt[h].userUnit,rootDictionaryObjId:zi,resourceDictionaryObjId:Jn}));sn(zi,!0),P("<>"),P("endobj"),_e.publish("postPutPages")},dr=function(h){_e.publish("putFont",{font:h,out:P,newObject:De,putStream:Gn}),h.isAlreadyPutted!==!0&&(h.objectNumber=De(),P("<<"),P("/Type /Font"),P("/BaseFont /"+Aa(h.postScriptName)),P("/Subtype /Type1"),typeof h.encoding=="string"&&P("/Encoding /"+h.encoding),P("/FirstChar 32"),P("/LastChar 255"),P(">>"),P("endobj"))},zr=function(h){h.objectNumber=De();var b=[];b.push({key:"Type",value:"/XObject"}),b.push({key:"Subtype",value:"/Form"}),b.push({key:"BBox",value:"["+[tt(h.x),tt(h.y),tt(h.x+h.width),tt(h.y+h.height)].join(" ")+"]"}),b.push({key:"Matrix",value:"["+h.matrix.toString()+"]"});var E=h.pages[1].join(` +`);Gn({data:E,additionalKeyValues:b,objectId:h.objectNumber}),P("endobj")},Hr=function(h,b){b||(b=21);var E=De(),M=(function(gt,Ft){var Ct,Kt=[],te=1/(Ft-1);for(Ct=0;Ct<1;Ct+=te)Kt.push(Ct);if(Kt.push(1),gt[0].offset!=0){var de={offset:0,color:gt[0].color};gt.unshift(de)}if(gt[gt.length-1].offset!=1){var Xe={offset:1,color:gt[gt.length-1].color};gt.push(Xe)}for(var Le="",Ae=0,Fe=0;Fegt[Ae+1].offset;)Ae++;var je=gt[Ae].offset,Me=(Ct-je)/(gt[Ae+1].offset-je),pn=gt[Ae].color,Ti=gt[Ae+1].color;Le+=G(Math.round((1-Me)*pn[0]+Me*Ti[0]).toString(16))+G(Math.round((1-Me)*pn[1]+Me*Ti[1]).toString(16))+G(Math.round((1-Me)*pn[2]+Me*Ti[2]).toString(16))}return Le.trim()})(h.colors,b),V=[];V.push({key:"FunctionType",value:"0"}),V.push({key:"Domain",value:"[0.0 1.0]"}),V.push({key:"Size",value:"["+b+"]"}),V.push({key:"BitsPerSample",value:"8"}),V.push({key:"Range",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),V.push({key:"Decode",value:"[0.0 1.0 0.0 1.0 0.0 1.0]"}),Gn({data:M,additionalKeyValues:V,alreadyAppliedFilters:["/ASCIIHexDecode"],objectId:E}),P("endobj"),h.objectNumber=De(),P("<< /ShadingType "+h.type),P("/ColorSpace /DeviceRGB");var ot="/Coords ["+tt(parseFloat(h.coords[0]))+" "+tt(parseFloat(h.coords[1]))+" ";h.type===2?ot+=tt(parseFloat(h.coords[2]))+" "+tt(parseFloat(h.coords[3])):ot+=tt(parseFloat(h.coords[2]))+" "+tt(parseFloat(h.coords[3]))+" "+tt(parseFloat(h.coords[4]))+" "+tt(parseFloat(h.coords[5])),P(ot+="]"),h.matrix&&P("/Matrix ["+h.matrix.toString()+"]"),P("/Function "+E+" 0 R"),P("/Extend [true true]"),P(">>"),P("endobj")},Wr=function(h,b){var E=rn(),M=De();b.push({resourcesOid:E,objectOid:M}),h.objectNumber=M;var V=[];V.push({key:"Type",value:"/Pattern"}),V.push({key:"PatternType",value:"1"}),V.push({key:"PaintType",value:"1"}),V.push({key:"TilingType",value:"1"}),V.push({key:"BBox",value:"["+h.boundingBox.map(tt).join(" ")+"]"}),V.push({key:"XStep",value:tt(h.xStep)}),V.push({key:"YStep",value:tt(h.yStep)}),V.push({key:"Resources",value:E+" 0 R"}),h.matrix&&V.push({key:"Matrix",value:"["+h.matrix.toString()+"]"}),Gn({data:h.stream,additionalKeyValues:V,objectId:h.objectNumber}),P("endobj")},Os=function(h){for(var b in h.objectNumber=De(),P("<<"),h)switch(b){case"opacity":P("/ca "+N(h[b]));break;case"stroke-opacity":P("/CA "+N(h[b]))}P(">>"),P("endobj")},Ea=function(h){sn(h.resourcesOid,!0),P("<<"),P("/ProcSet [/PDF /Text /ImageB /ImageC /ImageI]"),(function(){for(var b in P("/Font <<"),oe)oe.hasOwnProperty(b)&&(A===!1||A===!0&&L.hasOwnProperty(b))&&P("/"+b+" "+oe[b].objectNumber+" 0 R");P(">>")})(),(function(){if(Object.keys(Ut).length>0){for(var b in P("/Shading <<"),Ut)Ut.hasOwnProperty(b)&&Ut[b]instanceof Mr&&Ut[b].objectNumber>=0&&P("/"+b+" "+Ut[b].objectNumber+" 0 R");_e.publish("putShadingPatternDict"),P(">>")}})(),(function(b){if(Object.keys(Ut).length>0){for(var E in P("/Pattern <<"),Ut)Ut.hasOwnProperty(E)&&Ut[E]instanceof p.TilingPattern&&Ut[E].objectNumber>=0&&Ut[E].objectNumber>")}})(h.objectOid),(function(){if(Object.keys(Zt).length>0){var b;for(b in P("/ExtGState <<"),Zt)Zt.hasOwnProperty(b)&&Zt[b].objectNumber>=0&&P("/"+b+" "+Zt[b].objectNumber+" 0 R");_e.publish("putGStateDict"),P(">>")}})(),(function(){for(var b in P("/XObject <<"),dn)dn.hasOwnProperty(b)&&dn[b].objectNumber>=0&&P("/"+b+" "+dn[b].objectNumber+" 0 R");_e.publish("putXobjectDict"),P(">>")})(),P(">>"),P("endobj")},_o=function(h){se[h.fontName]=se[h.fontName]||{},se[h.fontName][h.fontStyle]=h.id},yo=function(h,b,E,M,V){var ot={id:"F"+(Object.keys(oe).length+1).toString(10),postScriptName:h,fontName:b,fontStyle:E,encoding:M,isStandardFont:V||!1,metadata:{}};return _e.publish("addFont",{font:ot,instance:this}),oe[ot.id]=ot,_o(ot),ot.id},Vn=p.__private__.pdfEscape=p.pdfEscape=function(h,b){return(function(E,M){var V,ot,gt,Ft,Ct,Kt,te,de,Xe;if(gt=(M=M||{}).sourceEncoding||"Unicode",Ct=M.outputEncoding,(M.autoencode||Ct)&&oe[Rt].metadata&&oe[Rt].metadata[gt]&&oe[Rt].metadata[gt].encoding&&(Ft=oe[Rt].metadata[gt].encoding,!Ct&&oe[Rt].encoding&&(Ct=oe[Rt].encoding),!Ct&&Ft.codePages&&(Ct=Ft.codePages[0]),typeof Ct=="string"&&(Ct=Ft[Ct]),Ct)){for(te=!1,Kt=[],V=0,ot=E.length;V>8&&(te=!0);E=Kt.join("")}for(V=E.length;te===void 0&&V!==0;)E.charCodeAt(V-1)>>8&&(te=!0),V--;if(!te)return E;for(Kt=M.noBOM?[]:[254,255],V=0,ot=E.length;V>8)>>8)throw new Error("Character at position "+V+" of string '"+E+"' exceeds 16bits. Cannot be encoded into UCS-2 BE");Kt.push(Xe),Kt.push(de-(Xe<<8))}return String.fromCharCode.apply(void 0,Kt)})(h,b).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},Ia=p.__private__.beginPage=function(h){xt[++le]=[],Gt[le]={objId:0,contentsObjId:0,userUnit:Number(l),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(h[0]),topRightY:Number(h[1])}},Ao(le),zt(xt[R])},xo=function(h,b){var E,M,V;switch(e=b||e,typeof h=="string"&&(E=k(h.toLowerCase()),Array.isArray(E)&&(M=E[0],V=E[1])),Array.isArray(h)&&(M=h[0]*ne,V=h[1]*ne),isNaN(M)&&(M=a[0],V=a[1]),(M>14400||V>14400)&&(ke.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400"),M=Math.min(14400,M),V=Math.min(14400,V)),a=[M,V],e.substr(0,1)){case"l":V>M&&(a=[V,M]);break;case"p":M>V&&(a=[V,M])}Ia(a),Hs($t),P(Kr),Ra!==0&&P(Ra+" J"),Gi!==0&&P(Gi+" j"),_e.publish("addPage",{pageNumber:le})},Ca=function(h){h>0&&h<=le&&(xt.splice(h,1),Gt.splice(h,1),le--,R>le&&(R=le),this.setPage(R))},Ao=function(h){h>0&&h<=le&&(R=h)},No=p.__private__.getNumberOfPages=p.getNumberOfPages=function(){return xt.length-1},Lo=function(h,b,E){var M,V=void 0;return E=E||{},h=h!==void 0?h:oe[Rt].fontName,b=b!==void 0?b:oe[Rt].fontStyle,M=h.toLowerCase(),se[M]!==void 0&&se[M][b]!==void 0?V=se[M][b]:se[h]!==void 0&&se[h][b]!==void 0?V=se[h][b]:E.disableWarning===!1&&ke.warn("Unable to look up font label for font '"+h+"', '"+b+"'. Refer to getFontList() for available fonts."),V||E.noFallback||(V=se.times[b])==null&&(V=se.times.normal),V},fi=p.__private__.putInfo=function(){var h=De(),b=function(M){return M};for(var E in m!==null&&(b=ln.encryptor(h,0)),P("<<"),P("/Producer ("+Vn(b("jsPDF "+Mt.version))+")"),ce)ce.hasOwnProperty(E)&&ce[E]&&P("/"+E.substr(0,1).toUpperCase()+E.substr(1)+" ("+Vn(b(ce[E]))+")");P("/CreationDate ("+Vn(b(it))+")"),P(">>"),P("endobj")},Gr=p.__private__.putCatalog=function(h){var b=(h=h||{}).rootDictionaryObjId||zi;switch(De(),P("<<"),P("/Type /Catalog"),P("/Pages "+b+" 0 R"),Wt||(Wt="fullwidth"),Wt){case"fullwidth":P("/OpenAction [3 0 R /FitH null]");break;case"fullheight":P("/OpenAction [3 0 R /FitV null]");break;case"fullpage":P("/OpenAction [3 0 R /Fit]");break;case"original":P("/OpenAction [3 0 R /XYZ null null 1]");break;default:var E=""+Wt;E.substr(E.length-1)==="%"&&(Wt=parseInt(Wt)/100),typeof Wt=="number"&&P("/OpenAction [3 0 R /XYZ null null "+N(Wt)+"]")}switch(he||(he="continuous"),he){case"continuous":P("/PageLayout /OneColumn");break;case"single":P("/PageLayout /SinglePage");break;case"two":case"twoleft":P("/PageLayout /TwoColumnLeft");break;case"tworight":P("/PageLayout /TwoColumnRight")}Dt&&P("/PageMode /"+Dt),_e.publish("putCatalog"),P(">>"),P("endobj")},Ts=p.__private__.putTrailer=function(){P("trailer"),P("<<"),P("/Size "+(Y+1)),P("/Root "+Y+" 0 R"),P("/Info "+(Y-1)+" 0 R"),m!==null&&P("/Encrypt "+ln.oid+" 0 R"),P("/ID [ <"+ft+"> <"+ft+"> ]"),P(">>")},Ke=p.__private__.putHeader=function(){P("%PDF-"+T),P("%\xBA\xDF\xAC\xE0")},So=p.__private__.putXRef=function(){var h="0000000000";P("xref"),P("0 "+(Y+1)),P("0000000000 65535 f ");for(var b=1;b<=Y;b++)typeof Q[b]=="function"?P((h+Q[b]()).slice(-10)+" 00000 n "):Q[b]!==void 0?P((h+Q[b]).slice(-10)+" 00000 n "):P("0000000000 00000 n ")},ui=p.__private__.buildDocument=function(){var h;Y=0,at=0,rt=[],Q=[],dt=[],zi=rn(),Jn=rn(),zt(rt),_e.publish("buildDocument"),Ke(),ci(),(function(){_e.publish("putAdditionalObjects");for(var E=0;E"),P("/O <"+ln.toHexString(ln.O)+">"),P("/P "+ln.P),P(">>"),P("endobj")),fi(),Gr();var b=at;return So(),Ts(),P("startxref"),P(""+b),P("%%EOF"),zt(xt[R]),rt.join(` +`)},Vr=p.__private__.getBlob=function(h){return new Blob([ae(h)],{type:"application/pdf"})},Fa=function(h){for(;h.firstChild;)h.removeChild(h.firstChild)},Tn=function(h){var b,E=h.document,M=E.documentElement,V=E.head,ot=E.body;return V||(V=E.createElement("head"),M.appendChild(V)),ot||(ot=E.createElement("body"),M.appendChild(ot)),Fa(V),Fa(ot),(b=E.createElement("style")).appendChild(E.createTextNode("html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;}")),V.appendChild(b),{document:E,body:ot}},Zr=p.output=p.__private__.output=(Wn=function(h,b){switch(typeof(b=b||{})=="string"?b={filename:b}:b.filename=b.filename||"generated.pdf",h){case void 0:return ui();case"save":p.save(b.filename);break;case"arraybuffer":return ae(ui());case"blob":return Vr(ui());case"bloburi":case"bloburl":if(Yt.URL!==void 0&&typeof Yt.URL.createObjectURL=="function")return Yt.URL&&Yt.URL.createObjectURL(Vr(ui()))||void 0;ke.warn("bloburl is not supported by your system, because URL.createObjectURL is not supported by your browser.");break;case"datauristring":case"dataurlstring":var E="",M=ui();try{E=Of(M)}catch{E=Of(unescape(encodeURIComponent(M)))}return"data:application/pdf;filename="+encodeURIComponent(b.filename)+";base64,"+E;case"pdfobjectnewwindow":if(Object.prototype.toString.call(Yt)==="[object Window]"){var V="https://cdnjs.cloudflare.com/ajax/libs/pdfobject/2.1.1/pdfobject.min.js",ot=!b.pdfObjectUrl;ot||(V=b.pdfObjectUrl);var gt=Yt.open();if(gt!==null){var Ft=Tn(gt),Ct=Ft.document.createElement("script"),Kt=this;Ct.src=V,ot&&(Ct.integrity="sha512-4ze/a9/4jqu+tX9dfOqJYSvyYd5M6qum/3HpCLr+/Jqf0whc37VUbkpNGHR7/8pSnCFw47T1fmIpwBV7UySh3g==",Ct.crossOrigin="anonymous"),Ct.onload=function(){gt.PDFObject.embed(Kt.output("dataurlstring"),b)},Ft.body.appendChild(Ct)}return gt}throw new Error("The option pdfobjectnewwindow just works in a browser-environment.");case"pdfjsnewwindow":if(Object.prototype.toString.call(Yt)==="[object Window]"){var te=b.pdfJsUrl||"examples/PDF.js/web/viewer.html",de=Yt.open();if(de!==null){var Xe=Tn(de),Le=Xe.document.createElement("iframe"),Ae=te.indexOf("?")===-1?"?":"&";Kt=this,Le.id="pdfViewer",Le.width="500px",Le.height="400px",Le.src=te+Ae+"file=&downloadName="+encodeURIComponent(b.filename),Le.onload=function(){de.document.title=b.filename,Le.contentWindow.PDFViewerApplication.open(Kt.output("bloburl"))},Xe.body.appendChild(Le)}return de}throw new Error("The option pdfjsnewwindow just works in a browser-environment.");case"dataurlnewwindow":if(Object.prototype.toString.call(Yt)!=="[object Window]")throw new Error("The option dataurlnewwindow just works in a browser-environment.");var Fe=Yt.open();if(Fe!==null){var je=Tn(Fe),Me=je.document.createElement("iframe");Me.src=this.output("datauristring",b),je.body.appendChild(Me),Fe.document.title=b.filename}if(Fe||typeof safari>"u")return Fe;break;case"datauri":case"dataurl":return Yt.document.location.href=this.output("datauristring",b);default:return null}},Wn.foo=function(){try{return Wn.apply(this,arguments)}catch(E){var h=E.stack||"";~h.indexOf(" at ")&&(h=h.split(" at ")[1]);var b="Error in function "+h.split(` +`)[0].split("<")[0]+": "+E.message;if(!Yt.console)throw new Error(b);Yt.console.error(b,E),Yt.alert&&alert(b)}},Wn.foo.bar=Wn,Wn.foo),Ei=function(h){return Array.isArray(cr)===!0&&cr.indexOf(h)>-1};switch(i){case"pt":ne=1;break;case"mm":ne=72/25.4;break;case"cm":ne=72/2.54;break;case"in":ne=72;break;case"px":ne=Ei("px_scaling")==1?.75:96/72;break;case"pc":case"em":ne=12;break;case"ex":ne=6;break;default:if(typeof i!="number")throw new Error("Invalid unit: "+i);ne=i}var ln=null;yt(),nt();var ko=p.__private__.getPageInfo=p.getPageInfo=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfo");return{objId:Gt[h].objId,pageNumber:h,pageContext:Gt[h]}},Rs=p.__private__.getPageInfoByObjId=function(h){if(isNaN(h)||h%1!=0)throw new Error("Invalid argument passed to jsPDF.getPageInfoByObjId");for(var b in Gt)if(Gt[b].objId===h)break;return ko(b)},Bs=p.__private__.getCurrentPageInfo=p.getCurrentPageInfo=function(){return{objId:Gt[R].objId,pageNumber:R,pageContext:Gt[R]}};p.addPage=function(){return xo.apply(this,arguments),this},p.setPage=function(){return Ao.apply(this,arguments),zt.call(this,xt[R]),this},p.insertPage=function(h){return this.addPage(),this.movePage(R,h),this},p.movePage=function(h,b){var E,M;if(h>b){E=xt[h],M=Gt[h];for(var V=h;V>b;V--)xt[V]=xt[V-1],Gt[V]=Gt[V-1];xt[b]=E,Gt[b]=M,this.setPage(b)}else if(h0&&(typeof h=="string"?h=Ae.splitTextToSize(h,te):Object.prototype.toString.call(h)==="[object Array]"&&(h=h.reduce(function(Ee,Ie){return Ee.concat(Ae.splitTextToSize(Ie,te))},[]))),ot={text:h,x:b,y:E,options:M,mutex:{pdfEscape:Vn,activeFontKey:Rt,fonts:oe,activeFontSize:vt}},_e.publish("preProcessText",ot),h=ot.text,Ft=(M=ot.options).angle,Le instanceof Vt==0&&Ft&&typeof Ft=="number"){Ft*=Math.PI/180,M.rotationDirection===0&&(Ft=-Ft),D===$&&(Ft=-Ft);var Ua=Math.cos(Ft),gi=Math.sin(Ft);Le=new Vt(Ua,gi,-gi,Ua,0,0)}else Ft&&Ft instanceof Vt&&(Le=Ft);D!==$||Le||(Le=Pi),(Kt=M.charSpace||Xr)!==void 0&&(Me+=tt(U(Kt))+` Tc +`,this.setCharSpace(this.getCharSpace()||0)),(Xe=M.horizontalScale)!==void 0&&(Me+=tt(100*Xe)+` Tz +`),M.lang;var xn=-1,Ro=M.renderingMode!==void 0?M.renderingMode:M.stroke,na=Ae.internal.getCurrentPageInfo().pageContext;switch(Ro){case 0:case!1:case"fill":xn=0;break;case 1:case!0:case"stroke":xn=1;break;case 2:case"fillThenStroke":xn=2;break;case 3:case"invisible":xn=3;break;case 4:case"fillAndAddForClipping":xn=4;break;case 5:case"strokeAndAddPathForClipping":xn=5;break;case 6:case"fillThenStrokeAndAddToPathForClipping":xn=6;break;case 7:case"addToPathForClipping":xn=7}var Bo=na.usedRenderingMode!==void 0?na.usedRenderingMode:-1;xn!==-1?Me+=xn+` Tr +`:Bo!==-1&&(Me+=`0 Tr +`),xn!==-1&&(na.usedRenderingMode=xn),Ct=M.align||"left";var Zn,xr=vt*pn,qa=Ae.internal.pageSize.getWidth(),ia=oe[Rt];Kt=M.charSpace||Xr,te=M.maxWidth||0,de=Object.assign({autoencode:!0,noBOM:!0},M.flags);var Ar=[],za=function(Ee){return Ae.getStringUnitWidth(Ee,{font:ia,charSpace:Kt,fontSize:vt,doKerning:!1})*vt/Ti};if(Object.prototype.toString.call(h)==="[object Array]"){var An;gt=br(h),Ct!=="left"&&(Zn=gt.map(za));var En,ra=0;if(Ct==="right"){b-=Zn[0],h=[],gn=gt.length;for(var Zi=0;Zi0?(te-Zn[Je])/Ha:0;Je":")"),Sr=parseFloat(gt[mn][1]),kr=parseFloat(gt[mn][2]);break;case 0:Yi=(je?"<":"(")+gt[mn]+(je?">":")"),Sr=Ii(b),kr=Ci(E)}Ar!==void 0&&Ar[mn]!==void 0&&(Ki=Ar[mn]+` Tw +`),mn===0?h.push(Ki+sa(Sr,kr,Le)+Yi):Ri===0?h.push(Ki+Yi):Ri===1&&h.push(Ki+sa(Sr,kr,Le)+Yi)}h=Ri===0?h.join(` Tj +T* `):h.join(` Tj +`),h+=` Tj +`;var bi=`BT +/`;return bi+=Rt+" "+vt+` Tf +`,bi+=tt(vt*pn)+` TL +`,bi+=pi+` +`,bi+=Me,bi+=h,P(bi+="ET"),L[Rt]=!0,Ae};var js=p.__private__.clip=p.clip=function(h){return P(h==="evenodd"?"W*":"W"),this};p.clipEvenOdd=function(){return js("evenodd")},p.__private__.discardPath=p.discardPath=function(){return P("n"),this};var di=p.__private__.isValidStyle=function(h){var b=!1;return[void 0,null,"S","D","F","DF","FD","f","f*","B","B*","n"].indexOf(h)!==-1&&(b=!0),b};p.__private__.setDefaultPathOperation=p.setDefaultPathOperation=function(h){return di(h)&&(d=h),this};var Po=p.__private__.getStyle=p.getStyle=function(h){var b=d;switch(h){case"D":case"S":b="S";break;case"F":b="f";break;case"FD":case"DF":b="B";break;case"f":case"f*":case"B":case"B*":b=h}return b},$r=p.close=function(){return P("h"),this};p.stroke=function(){return P("S"),this},p.fill=function(h){return Yr("f",h),this},p.fillEvenOdd=function(h){return Yr("f*",h),this},p.fillStroke=function(h){return Yr("B",h),this},p.fillStrokeEvenOdd=function(h){return Yr("B*",h),this};var Yr=function(h,b){Ne(b)==="object"?Ds(b,h):P(h)},Oa=function(h){h===null||D===$&&h===void 0||(h=Po(h),P(h))};function Ms(h,b,E,M,V){var ot=new Na(b||this.boundingBox,E||this.xStep,M||this.yStep,this.gState,V||this.matrix);ot.stream=this.stream;var gt=h+"$$"+this.cloneIndex+++"$$";return Hn(gt,ot),ot}var Ds=function(h,b){var E=Pe[h.key],M=Ut[E];if(M instanceof Mr)P("q"),P(Us(b)),M.gState&&p.setGState(M.gState),P(h.matrix.toString()+" cm"),P("/"+E+" sh"),P("Q");else if(M instanceof Na){var V=new Vt(1,0,0,-1,0,mr());h.matrix&&(V=V.multiply(h.matrix||Pi),E=Ms.call(M,h.key,h.boundingBox,h.xStep,h.yStep,V).id),P("q"),P("/Pattern cs"),P("/"+E+" scn"),M.gState&&p.setGState(M.gState),P(b),P("Q")}},Us=function(h){switch(h){case"f":case"F":case"n":return"W n";case"f*":return"W* n";case"B":case"S":return"W S";case"B*":return"W* S"}},Hi=p.moveTo=function(h,b){return P(tt(U(h))+" "+tt(q(b))+" m"),this},Eo=p.lineTo=function(h,b){return P(tt(U(h))+" "+tt(q(b))+" l"),this},Wi=p.curveTo=function(h,b,E,M,V,ot){return P([tt(U(h)),tt(q(b)),tt(U(E)),tt(q(M)),tt(U(V)),tt(q(ot)),"c"].join(" ")),this};p.__private__.line=p.line=function(h,b,E,M,V){if(isNaN(h)||isNaN(b)||isNaN(E)||isNaN(M)||!di(V))throw new Error("Invalid arguments passed to jsPDF.line");return D===Z?this.lines([[E-h,M-b]],h,b,[1,1],V||"S"):this.lines([[E-h,M-b]],h,b,[1,1]).stroke()},p.__private__.lines=p.lines=function(h,b,E,M,V,ot){var gt,Ft,Ct,Kt,te,de,Xe,Le,Ae,Fe,je,Me;if(typeof h=="number"&&(Me=E,E=b,b=h,h=Me),M=M||[1,1],ot=ot||!1,isNaN(b)||isNaN(E)||!Array.isArray(h)||!Array.isArray(M)||!di(V)||typeof ot!="boolean")throw new Error("Invalid arguments passed to jsPDF.lines");for(Hi(b,E),gt=M[0],Ft=M[1],Kt=h.length,Fe=b,je=E,Ct=0;Ct>8&255,t>>16&255,t>>24&255)},xa.prototype.toHexString=function(t){return t.split("").map(function(n){return("0"+(255&n.charCodeAt(0)).toString(16)).slice(-2)}).join("")},xa.prototype.hexToBytes=function(t){for(var n=[],e=0;e>8&255,t>>16&255,255&n,n>>8&255)).substr(0,10);return function(i){return hh(e,i)}},Is.prototype.equals=function(t){var n,e="id,objectNumber,equals";if(!t||Ne(t)!==Ne(this))return!1;var i=0;for(n in this)if(!(e.indexOf(n)>=0)){if(this.hasOwnProperty(n)&&!t.hasOwnProperty(n)||this[n]!==t[n])return!1;i++}for(n in t)t.hasOwnProperty(n)&&e.indexOf(n)<0&&i--;return i===0},Mt.API={events:[]},Mt.version="4.2.1";var ze=Mt.API,uh=1,qr=function(t){return t.replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)")},_a=function(t){return t.replace(/\\\\/g,"\\").replace(/\\\(/g,"(").replace(/\\\)/g,")")},Ur=function(t){return t.toString().replace(/#/g,"#23").replace(/[\s\n\r()<>[\]{}\/%]/g,function(n){var e=n.charCodeAt(0).toString(16).toUpperCase();return"#"+(e.length===1?"0"+e:e)})},Xt=function(t){return t.toFixed(2)},sr=function(t){return t.toFixed(5)};ze.__acroform__={};var On=function(t,n){t.prototype=Object.create(n.prototype),t.prototype.constructor=t},jf=function(t){return t*uh},Ai=function(t){var n=new ru,e=It.internal.getHeight(t)||0,i=It.internal.getWidth(t)||0;return n.BBox=[0,0,Number(Xt(i)),Number(Xt(e))],n},n5=ze.__acroform__.setBit=function(t,n){if(t=t||0,n=n||0,isNaN(t)||isNaN(n))throw new Error("Invalid arguments passed to jsPDF.API.__acroform__.setBit");return t|1<0;){n="",o--;var d,m,A=As("3",t,o).height,L=t.multiline?f-o:(f-A)/2,p=L+=2,T=0,O=0,B=0;if(o<=0){n=`(...) Tj +`,n+="% Width of Text: "+As(n,t,o=12).width+", FieldWidth:"+l+` +`;break}for(var k="",Z=0,$=0;$f)continue t;k+=a[$][B],D=!0,O=$,$--}else{k=(k+=a[$][B]+" ").substr(k.length-1)==" "?k.substr(0,k.length-1):k;var lt=parseInt($),_t=c(lt,k,o),mt=$>=a.length-1;if(_t&&!mt){k+=" ",B=0;continue}if(_t||mt){if(mt)O=lt;else if(t.multiline&&(A+2)*(Z+2)+2>f)continue t}else{if(!t.multiline||(A+2)*(Z+2)+2>f)continue t;O=lt}}for(var tt="",z=T;z<=O;z++){var et=a[z];if(t.multiline){if(z===O){tt+=et[B]+" ",B=(B+1)%et.length;continue}if(z===T){tt+=et[et.length-1]+" ";continue}}tt+=et[0]+" "}switch(tt=tt.substr(tt.length-1)==" "?tt.substr(0,tt.length-1):tt,m=As(tt,t,o).width,t.textAlign){case"right":d=l-m-2;break;case"center":d=(l-m)/2;break;default:d=2}n+=Xt(d)+" "+Xt(p)+` Td +`,n+="("+qr(tt)+`) Tj +`,n+=-Xt(d)+` 0 Td +`,p=-(o+2),m=0,T=D?O:O+1,Z++,k=""}break}return i.text=n,i.fontSize=o,i},As=function(t,n,e){var i=n.scope.internal.getFont(n.fontName,n.fontStyle),a=n.scope.getStringUnitWidth(t,{font:i,fontSize:parseFloat(e),charSpace:0})*parseFloat(e);return{height:n.scope.getStringUnitWidth("3",{font:i,fontSize:parseFloat(e),charSpace:0})*parseFloat(e)*1.5,width:a}},s5={fields:[],xForms:[],acroFormDictionaryRoot:null,printedOut:!1,internal:null,isInitialized:!1},l5=function(t,n){var e={type:"reference",object:t};n.internal.getPageInfo(t.page).pageContext.annotations.find(function(i){return i.type===e.type&&i.object===e.object})===void 0&&n.internal.getPageInfo(t.page).pageContext.annotations.push(e)},h5=function(t,n){if(n.scope=t,t.internal!==void 0&&(t.internal.acroformPlugin===void 0||t.internal.acroformPlugin.isInitialized===!1)){if(oi.FieldNum=0,t.internal.acroformPlugin=JSON.parse(JSON.stringify(s5)),t.internal.acroformPlugin.acroFormDictionaryRoot)throw new Error("Exception while creating AcroformDictionary");uh=t.internal.scaleFactor,t.internal.acroformPlugin.acroFormDictionaryRoot=new au,t.internal.acroformPlugin.acroFormDictionaryRoot.scope=t,t.internal.acroformPlugin.acroFormDictionaryRoot._eventID=t.internal.events.subscribe("postPutResources",function(){(function(e){e.internal.events.unsubscribe(e.internal.acroformPlugin.acroFormDictionaryRoot._eventID),delete e.internal.acroformPlugin.acroFormDictionaryRoot._eventID,e.internal.acroformPlugin.printedOut=!0})(t)}),t.internal.events.subscribe("buildDocument",function(){(function(e){e.internal.acroformPlugin.acroFormDictionaryRoot.objId=void 0;var i=e.internal.acroformPlugin.acroFormDictionaryRoot.Fields;for(var a in i)if(i.hasOwnProperty(a)){var o=i[a];o.objId=void 0,o.hasAnnotation&&l5(o,e)}})(t)}),t.internal.events.subscribe("putCatalog",function(){(function(e){if(e.internal.acroformPlugin.acroFormDictionaryRoot===void 0)throw new Error("putCatalogCallback: Root missing.");e.internal.write("/AcroForm "+e.internal.acroformPlugin.acroFormDictionaryRoot.objId+" 0 R")})(t)}),t.internal.events.subscribe("postPutPages",function(e){(function(i,a){var o=!i;for(var f in i||(a.internal.newObjectDeferredBegin(a.internal.acroformPlugin.acroFormDictionaryRoot.objId,!0),a.internal.acroformPlugin.acroFormDictionaryRoot.putStream()),i=i||a.internal.acroformPlugin.acroFormDictionaryRoot.Kids)if(i.hasOwnProperty(f)){var l=i[f],c=[],d=l.Rect;if(l.Rect&&(l.Rect=a5(l.Rect,a)),a.internal.newObjectDeferredBegin(l.objId,!0),l.DA=It.createDefaultAppearanceStream(l),Ne(l)==="object"&&typeof l.getKeyValueListForStream=="function"&&(c=l.getKeyValueListForStream()),l.Rect=d,l.hasAppearanceStream&&!l.appearanceStreamContent){var m=o5(l);c.push({key:"AP",value:"<>"}),a.internal.acroformPlugin.xForms.push(m)}if(l.appearanceStreamContent){var A="";for(var L in l.appearanceStreamContent)if(l.appearanceStreamContent.hasOwnProperty(L)){var p=l.appearanceStreamContent[L];if(A+="/"+L+" ",A+="<<",Object.keys(p).length>=1||Array.isArray(p)){for(var f in p)if(p.hasOwnProperty(f)){var T=p[f];typeof T=="function"&&(T=T.call(a,l)),A+="/"+f+" "+T+" ",a.internal.acroformPlugin.xForms.indexOf(T)>=0||a.internal.acroformPlugin.xForms.push(T)}}else typeof(T=p)=="function"&&(T=T.call(a,l)),A+="/"+f+" "+T,a.internal.acroformPlugin.xForms.indexOf(T)>=0||a.internal.acroformPlugin.xForms.push(T);A+=">>"}c.push({key:"AP",value:`<< +`+A+">>"})}a.internal.putStream({additionalKeyValues:c,objectId:l.objId}),a.internal.out("endobj")}o&&(function(O,B){for(var k in O)if(O.hasOwnProperty(k)){var Z=k,$=O[k];B.internal.newObjectDeferredBegin($.objId,!0),Ne($)==="object"&&typeof $.putStream=="function"&&$.putStream(),delete O[Z]}})(a.internal.acroformPlugin.xForms,a)})(e,t)}),t.internal.acroformPlugin.isInitialized=!0}},iu=ze.__acroform__.arrayToPdfArray=function(t,n,e){var i=function(f){return f};if(Array.isArray(t)){for(var a="[",o=0;o0?n:void 0}}),Object.defineProperty(this,"Fields",{enumerable:!1,configurable:!1,get:function(){return n}}),Object.defineProperty(this,"DA",{enumerable:!1,configurable:!1,get:function(){if(t){var e=function(i){return i};return this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),"("+qr(e(t))+")"}},set:function(e){t=e}})};On(au,Ni);var oi=function t(){Ni.call(this);var n=4;Object.defineProperty(this,"F",{enumerable:!1,configurable:!1,get:function(){return n},set:function(k){if(isNaN(k))throw new Error('Invalid value "'+k+'" for attribute F supplied.');n=k}}),Object.defineProperty(this,"showWhenPrinted",{enumerable:!0,configurable:!0,get:function(){return!!Ze(n,3)},set:function(k){k?this.F=$e(n,3):this.F=Ye(n,3)}});var e=0;Object.defineProperty(this,"Ff",{enumerable:!1,configurable:!1,get:function(){return e},set:function(k){if(isNaN(k))throw new Error('Invalid value "'+k+'" for attribute Ff supplied.');e=k}});var i=[];Object.defineProperty(this,"Rect",{enumerable:!1,configurable:!1,get:function(){if(i.length!==0)return i},set:function(k){i=k!==void 0?k:[]}}),Object.defineProperty(this,"x",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[0])?0:i[0]},set:function(k){i[0]=k}}),Object.defineProperty(this,"y",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[1])?0:i[1]},set:function(k){i[1]=k}}),Object.defineProperty(this,"width",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[2])?0:i[2]},set:function(k){i[2]=k}}),Object.defineProperty(this,"height",{enumerable:!0,configurable:!0,get:function(){return!i||isNaN(i[3])?0:i[3]},set:function(k){i[3]=k}});var a="";Object.defineProperty(this,"FT",{enumerable:!0,configurable:!1,get:function(){return a},set:function(k){switch(k){case"/Btn":case"/Tx":case"/Ch":case"/Sig":a=k;break;default:throw new Error('Invalid value "'+k+'" for attribute FT supplied.')}}});var o=null;Object.defineProperty(this,"T",{enumerable:!0,configurable:!1,get:function(){if(!o||o.length<1){if(this instanceof Cs)return;o="FieldObject"+t.FieldNum++}var k=function(Z){return Z};return this.scope&&(k=this.scope.internal.getEncryptor(this.objId)),"("+qr(k(o))+")"},set:function(k){o=k.toString()}}),Object.defineProperty(this,"fieldName",{configurable:!0,enumerable:!0,get:function(){return o},set:function(k){o=k}});var f="helvetica";Object.defineProperty(this,"fontName",{enumerable:!0,configurable:!0,get:function(){return f},set:function(k){f=k}});var l="normal";Object.defineProperty(this,"fontStyle",{enumerable:!0,configurable:!0,get:function(){return l},set:function(k){l=k}});var c=0;Object.defineProperty(this,"fontSize",{enumerable:!0,configurable:!0,get:function(){return c},set:function(k){c=k}});var d=void 0;Object.defineProperty(this,"maxFontSize",{enumerable:!0,configurable:!0,get:function(){return d===void 0?50/uh:d},set:function(k){d=k}});var m="black";Object.defineProperty(this,"color",{enumerable:!0,configurable:!0,get:function(){return m},set:function(k){m=k}});var A="/F1 0 Tf 0 g";Object.defineProperty(this,"DA",{enumerable:!0,configurable:!1,get:function(){if(!(!A||this instanceof Cs||this instanceof Dr))return ih(A,this.objId,this.scope)},set:function(k){k=k.toString(),A=k}});var L=null;Object.defineProperty(this,"DV",{enumerable:!1,configurable:!1,get:function(){if(L)return this instanceof on==0?ih(L,this.objId,this.scope):L},set:function(k){k=k.toString(),L=this instanceof on==0?k.substr(0,1)==="("?_a(k.substr(1,k.length-2)):_a(k):k}}),Object.defineProperty(this,"defaultValue",{enumerable:!0,configurable:!0,get:function(){return this instanceof on==1?_a(L.substr(1,L.length-1)):L},set:function(k){k=k.toString(),L=this instanceof on==1?"/"+Ur(k):k}});var p=null;Object.defineProperty(this,"_V",{enumerable:!1,configurable:!1,get:function(){if(p)return p},set:function(k){this.V=k}}),Object.defineProperty(this,"V",{enumerable:!1,configurable:!1,get:function(){if(p)return this instanceof on==0?ih(p,this.objId,this.scope):p},set:function(k){k=k.toString(),p=this instanceof on==0?k.substr(0,1)==="("?_a(k.substr(1,k.length-2)):_a(k):k}}),Object.defineProperty(this,"value",{enumerable:!0,configurable:!0,get:function(){return this instanceof on==1?_a(p.substr(1,p.length-1)):p},set:function(k){k=k.toString(),p=this instanceof on==1?"/"+Ur(k):k}}),Object.defineProperty(this,"hasAnnotation",{enumerable:!0,configurable:!0,get:function(){return this.Rect}}),Object.defineProperty(this,"Type",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Annot":null}}),Object.defineProperty(this,"Subtype",{enumerable:!0,configurable:!1,get:function(){return this.hasAnnotation?"/Widget":null}});var T,O=!1;Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return O},set:function(k){k=!!k,O=k}}),Object.defineProperty(this,"page",{enumerable:!0,configurable:!0,get:function(){if(T)return T},set:function(k){T=k}}),Object.defineProperty(this,"readOnly",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,1)},set:function(k){k?this.Ff=$e(this.Ff,1):this.Ff=Ye(this.Ff,1)}}),Object.defineProperty(this,"required",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,2)},set:function(k){k?this.Ff=$e(this.Ff,2):this.Ff=Ye(this.Ff,2)}}),Object.defineProperty(this,"noExport",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,3)},set:function(k){k?this.Ff=$e(this.Ff,3):this.Ff=Ye(this.Ff,3)}});var B=null;Object.defineProperty(this,"Q",{enumerable:!0,configurable:!1,get:function(){if(B!==null)return B},set:function(k){if([0,1,2].indexOf(k)===-1)throw new Error('Invalid value "'+k+'" for attribute Q supplied.');B=k}}),Object.defineProperty(this,"textAlign",{get:function(){var k;switch(B){case 0:default:k="left";break;case 1:k="center";break;case 2:k="right"}return k},configurable:!0,enumerable:!0,set:function(k){switch(k){case"right":case 2:B=2;break;case"center":case 1:B=1;break;default:B=0}}})};On(oi,Ni);var La=function(){oi.call(this),this.FT="/Ch",this.V="()",this.fontName="zapfdingbats";var t=0;Object.defineProperty(this,"TI",{enumerable:!0,configurable:!1,get:function(){return t},set:function(e){t=e}}),Object.defineProperty(this,"topIndex",{enumerable:!0,configurable:!0,get:function(){return t},set:function(e){t=e}});var n=[];Object.defineProperty(this,"Opt",{enumerable:!0,configurable:!1,get:function(){return iu(n,this.objId,this.scope)},set:function(e){var i,a;a=[],typeof(i=e)=="string"&&(a=(function(o,f,l){l||(l=1);for(var c,d=[];c=f.exec(o);)d.push(c[l]);return d})(i,/\((.*?)\)/g)),n=a}}),this.getOptions=function(){return n},this.setOptions=function(e){n=e,this.sort&&n.sort()},this.addOption=function(e){e=(e=e||"").toString(),n.push(e),this.sort&&n.sort()},this.removeOption=function(e,i){for(i=i||!1,e=(e=e||"").toString();n.indexOf(e)!==-1&&(n.splice(n.indexOf(e),1),i!==!1););},Object.defineProperty(this,"combo",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,18)},set:function(e){e?this.Ff=$e(this.Ff,18):this.Ff=Ye(this.Ff,18)}}),Object.defineProperty(this,"edit",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,19)},set:function(e){this.combo===!0&&(e?this.Ff=$e(this.Ff,19):this.Ff=Ye(this.Ff,19))}}),Object.defineProperty(this,"sort",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,20)},set:function(e){e?(this.Ff=$e(this.Ff,20),n.sort()):this.Ff=Ye(this.Ff,20)}}),Object.defineProperty(this,"multiSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,22)},set:function(e){e?this.Ff=$e(this.Ff,22):this.Ff=Ye(this.Ff,22)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,23)},set:function(e){e?this.Ff=$e(this.Ff,23):this.Ff=Ye(this.Ff,23)}}),Object.defineProperty(this,"commitOnSelChange",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,27)},set:function(e){e?this.Ff=$e(this.Ff,27):this.Ff=Ye(this.Ff,27)}}),this.hasAppearanceStream=!1};On(La,oi);var Sa=function(){La.call(this),this.fontName="helvetica",this.combo=!1};On(Sa,La);var ka=function(){Sa.call(this),this.combo=!0};On(ka,Sa);var Ss=function(){ka.call(this),this.edit=!0};On(Ss,ka);var on=function(){oi.call(this),this.FT="/Btn",Object.defineProperty(this,"noToggleToOff",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,15)},set:function(e){e?this.Ff=$e(this.Ff,15):this.Ff=Ye(this.Ff,15)}}),Object.defineProperty(this,"radio",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,16)},set:function(e){e?this.Ff=$e(this.Ff,16):this.Ff=Ye(this.Ff,16)}}),Object.defineProperty(this,"pushButton",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,17)},set:function(e){e?this.Ff=$e(this.Ff,17):this.Ff=Ye(this.Ff,17)}}),Object.defineProperty(this,"radioIsUnison",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,26)},set:function(e){e?this.Ff=$e(this.Ff,26):this.Ff=Ye(this.Ff,26)}});var t,n={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var e=function(o){return o};if(this.scope&&(e=this.scope.internal.getEncryptor(this.objId)),Object.keys(n).length!==0){var i,a=[];for(i in a.push("<<"),n)a.push("/"+i+" ("+qr(e(n[i]))+")");return a.push(">>"),a.join(` +`)}},set:function(e){Ne(e)==="object"&&(n=e)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return n.CA||""},set:function(e){typeof e=="string"&&(n.CA=e)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return t},set:function(e){var i=e==null?"":e.toString();i.substr(0,1)==="/"&&(i=i.substr(1)),t="/"+Ur(i)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return t.substr(1,t.length-1)},set:function(e){t="/"+Ur(e)}})};On(on,oi);var ks=function(){on.call(this),this.pushButton=!0};On(ks,on);var Pa=function(){on.call(this),this.radio=!0,this.pushButton=!1;var t=[];Object.defineProperty(this,"Kids",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=n!==void 0?n:[]}})};On(Pa,on);var Cs=function(){var t,n;oi.call(this),Object.defineProperty(this,"Parent",{enumerable:!1,configurable:!1,get:function(){return t},set:function(a){t=a}}),Object.defineProperty(this,"optionName",{enumerable:!1,configurable:!0,get:function(){return n},set:function(a){n=a}});var e,i={};Object.defineProperty(this,"MK",{enumerable:!1,configurable:!1,get:function(){var a=function(l){return l};this.scope&&(a=this.scope.internal.getEncryptor(this.objId));var o,f=[];for(o in f.push("<<"),i)f.push("/"+o+" ("+qr(a(i[o]))+")");return f.push(">>"),f.join(` +`)},set:function(a){Ne(a)==="object"&&(i=a)}}),Object.defineProperty(this,"caption",{enumerable:!0,configurable:!0,get:function(){return i.CA||""},set:function(a){typeof a=="string"&&(i.CA=a)}}),Object.defineProperty(this,"AS",{enumerable:!1,configurable:!1,get:function(){return e},set:function(a){var o=a==null?"":a.toString();o.substr(0,1)==="/"&&(o=o.substr(1)),e="/"+Ur(o)}}),Object.defineProperty(this,"appearanceState",{enumerable:!0,configurable:!0,get:function(){return e.substr(1,e.length-1)},set:function(a){var o=a==null?"":a.toString();o.substr(0,1)==="/"&&(o=o.substr(1)),e="/"+Ur(o)}}),this.caption="l",this.appearanceState="Off",this._AppearanceType=It.RadioButton.Circle,this.appearanceStreamContent=this._AppearanceType.createAppearanceStream(this.optionName)};On(Cs,oi),Pa.prototype.setAppearance=function(t){if(!("createAppearanceStream"in t)||!("getCA"in t))throw new Error("Couldn't assign Appearance to RadioButton. Appearance was Invalid!");for(var n in this.Kids)if(this.Kids.hasOwnProperty(n)){var e=this.Kids[n];e.appearanceStreamContent=t.createAppearanceStream(e.optionName),e.caption=t.getCA()}},Pa.prototype.createOption=function(t){var n=new Cs;return n.Parent=this,n.optionName=t,this.Kids.push(n),c5.call(this.scope,n),n};var Ps=function(){on.call(this),this.fontName="zapfdingbats",this.caption="3",this.appearanceState="On",this.value="On",this.textAlign="center",this.appearanceStreamContent=It.CheckBox.createAppearanceStream()};On(Ps,on);var Dr=function(){oi.call(this),this.FT="/Tx",Object.defineProperty(this,"multiline",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,13)},set:function(n){n?this.Ff=$e(this.Ff,13):this.Ff=Ye(this.Ff,13)}}),Object.defineProperty(this,"fileSelect",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,21)},set:function(n){n?this.Ff=$e(this.Ff,21):this.Ff=Ye(this.Ff,21)}}),Object.defineProperty(this,"doNotSpellCheck",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,23)},set:function(n){n?this.Ff=$e(this.Ff,23):this.Ff=Ye(this.Ff,23)}}),Object.defineProperty(this,"doNotScroll",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,24)},set:function(n){n?this.Ff=$e(this.Ff,24):this.Ff=Ye(this.Ff,24)}}),Object.defineProperty(this,"comb",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,25)},set:function(n){n?this.Ff=$e(this.Ff,25):this.Ff=Ye(this.Ff,25)}}),Object.defineProperty(this,"richText",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,26)},set:function(n){n?this.Ff=$e(this.Ff,26):this.Ff=Ye(this.Ff,26)}});var t=null;Object.defineProperty(this,"MaxLen",{enumerable:!0,configurable:!1,get:function(){return t},set:function(n){t=n}}),Object.defineProperty(this,"maxLength",{enumerable:!0,configurable:!0,get:function(){return t},set:function(n){Number.isInteger(n)&&(t=n)}}),Object.defineProperty(this,"hasAppearanceStream",{enumerable:!0,configurable:!0,get:function(){return this.V||this.DV}})};On(Dr,oi);var Es=function(){Dr.call(this),Object.defineProperty(this,"password",{enumerable:!0,configurable:!0,get:function(){return!!Ze(this.Ff,14)},set:function(t){t?this.Ff=$e(this.Ff,14):this.Ff=Ye(this.Ff,14)}}),this.password=!0};On(Es,Dr);var It={CheckBox:{createAppearanceStream:function(){return{N:{On:It.CheckBox.YesNormal},D:{On:It.CheckBox.YesPushDown,Off:It.CheckBox.OffPushDown}}},YesPushDown:function(t){var n=Ai(t);n.scope=t.scope;var e=[],i=t.scope.internal.getFont(t.fontName,t.fontStyle).id,a=t.scope.__private__.encodeColorString(t.color),o=ch(t,t.caption);return e.push("0.749023 g"),e.push("0 0 "+Xt(It.internal.getWidth(t))+" "+Xt(It.internal.getHeight(t))+" re"),e.push("f"),e.push("BMC"),e.push("q"),e.push("0 0 1 rg"),e.push("/"+i+" "+Xt(o.fontSize)+" Tf "+a),e.push("BT"),e.push(o.text),e.push("ET"),e.push("Q"),e.push("EMC"),n.stream=e.join(` +`),n},YesNormal:function(t){var n=Ai(t);n.scope=t.scope;var e=t.scope.internal.getFont(t.fontName,t.fontStyle).id,i=t.scope.__private__.encodeColorString(t.color),a=[],o=It.internal.getHeight(t),f=It.internal.getWidth(t),l=ch(t,t.caption);return a.push("1 g"),a.push("0 0 "+Xt(f)+" "+Xt(o)+" re"),a.push("f"),a.push("q"),a.push("0 0 1 rg"),a.push("0 0 "+Xt(f-1)+" "+Xt(o-1)+" re"),a.push("W"),a.push("n"),a.push("0 g"),a.push("BT"),a.push("/"+e+" "+Xt(l.fontSize)+" Tf "+i),a.push(l.text),a.push("ET"),a.push("Q"),n.stream=a.join(` +`),n},OffPushDown:function(t){var n=Ai(t);n.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Xt(It.internal.getWidth(t))+" "+Xt(It.internal.getHeight(t))+" re"),e.push("f"),n.stream=e.join(` +`),n}},RadioButton:{Circle:{createAppearanceStream:function(t){var n={D:{Off:It.RadioButton.Circle.OffPushDown},N:{}};return n.N[t]=It.RadioButton.Circle.YesNormal,n.D[t]=It.RadioButton.Circle.YesPushDown,n},getCA:function(){return"l"},YesNormal:function(t){var n=Ai(t);n.scope=t.scope;var e=[],i=It.internal.getWidth(t)<=It.internal.getHeight(t)?It.internal.getWidth(t)/4:It.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var a=It.internal.Bezier_C,o=Number((i*a).toFixed(5));return e.push("q"),e.push("1 0 0 1 "+sr(It.internal.getWidth(t)/2)+" "+sr(It.internal.getHeight(t)/2)+" cm"),e.push(i+" 0 m"),e.push(i+" "+o+" "+o+" "+i+" 0 "+i+" c"),e.push("-"+o+" "+i+" -"+i+" "+o+" -"+i+" 0 c"),e.push("-"+i+" -"+o+" -"+o+" -"+i+" 0 -"+i+" c"),e.push(o+" -"+i+" "+i+" -"+o+" "+i+" 0 c"),e.push("f"),e.push("Q"),n.stream=e.join(` +`),n},YesPushDown:function(t){var n=Ai(t);n.scope=t.scope;var e=[],i=It.internal.getWidth(t)<=It.internal.getHeight(t)?It.internal.getWidth(t)/4:It.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var a=Number((2*i).toFixed(5)),o=Number((a*It.internal.Bezier_C).toFixed(5)),f=Number((i*It.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+sr(It.internal.getWidth(t)/2)+" "+sr(It.internal.getHeight(t)/2)+" cm"),e.push(a+" 0 m"),e.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),e.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),e.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),e.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),e.push("f"),e.push("Q"),e.push("0 g"),e.push("q"),e.push("1 0 0 1 "+sr(It.internal.getWidth(t)/2)+" "+sr(It.internal.getHeight(t)/2)+" cm"),e.push(i+" 0 m"),e.push(i+" "+f+" "+f+" "+i+" 0 "+i+" c"),e.push("-"+f+" "+i+" -"+i+" "+f+" -"+i+" 0 c"),e.push("-"+i+" -"+f+" -"+f+" -"+i+" 0 -"+i+" c"),e.push(f+" -"+i+" "+i+" -"+f+" "+i+" 0 c"),e.push("f"),e.push("Q"),n.stream=e.join(` +`),n},OffPushDown:function(t){var n=Ai(t);n.scope=t.scope;var e=[],i=It.internal.getWidth(t)<=It.internal.getHeight(t)?It.internal.getWidth(t)/4:It.internal.getHeight(t)/4;i=Number((.9*i).toFixed(5));var a=Number((2*i).toFixed(5)),o=Number((a*It.internal.Bezier_C).toFixed(5));return e.push("0.749023 g"),e.push("q"),e.push("1 0 0 1 "+sr(It.internal.getWidth(t)/2)+" "+sr(It.internal.getHeight(t)/2)+" cm"),e.push(a+" 0 m"),e.push(a+" "+o+" "+o+" "+a+" 0 "+a+" c"),e.push("-"+o+" "+a+" -"+a+" "+o+" -"+a+" 0 c"),e.push("-"+a+" -"+o+" -"+o+" -"+a+" 0 -"+a+" c"),e.push(o+" -"+a+" "+a+" -"+o+" "+a+" 0 c"),e.push("f"),e.push("Q"),n.stream=e.join(` +`),n}},Cross:{createAppearanceStream:function(t){var n={D:{Off:It.RadioButton.Cross.OffPushDown},N:{}};return n.N[t]=It.RadioButton.Cross.YesNormal,n.D[t]=It.RadioButton.Cross.YesPushDown,n},getCA:function(){return"8"},YesNormal:function(t){var n=Ai(t);n.scope=t.scope;var e=[],i=It.internal.calculateCross(t);return e.push("q"),e.push("1 1 "+Xt(It.internal.getWidth(t)-2)+" "+Xt(It.internal.getHeight(t)-2)+" re"),e.push("W"),e.push("n"),e.push(Xt(i.x1.x)+" "+Xt(i.x1.y)+" m"),e.push(Xt(i.x2.x)+" "+Xt(i.x2.y)+" l"),e.push(Xt(i.x4.x)+" "+Xt(i.x4.y)+" m"),e.push(Xt(i.x3.x)+" "+Xt(i.x3.y)+" l"),e.push("s"),e.push("Q"),n.stream=e.join(` +`),n},YesPushDown:function(t){var n=Ai(t);n.scope=t.scope;var e=It.internal.calculateCross(t),i=[];return i.push("0.749023 g"),i.push("0 0 "+Xt(It.internal.getWidth(t))+" "+Xt(It.internal.getHeight(t))+" re"),i.push("f"),i.push("q"),i.push("1 1 "+Xt(It.internal.getWidth(t)-2)+" "+Xt(It.internal.getHeight(t)-2)+" re"),i.push("W"),i.push("n"),i.push(Xt(e.x1.x)+" "+Xt(e.x1.y)+" m"),i.push(Xt(e.x2.x)+" "+Xt(e.x2.y)+" l"),i.push(Xt(e.x4.x)+" "+Xt(e.x4.y)+" m"),i.push(Xt(e.x3.x)+" "+Xt(e.x3.y)+" l"),i.push("s"),i.push("Q"),n.stream=i.join(` +`),n},OffPushDown:function(t){var n=Ai(t);n.scope=t.scope;var e=[];return e.push("0.749023 g"),e.push("0 0 "+Xt(It.internal.getWidth(t))+" "+Xt(It.internal.getHeight(t))+" re"),e.push("f"),n.stream=e.join(` +`),n}}},createDefaultAppearanceStream:function(t){var n=t.scope.internal.getFont(t.fontName,t.fontStyle).id,e=t.scope.__private__.encodeColorString(t.color);return"/"+n+" "+t.fontSize+" Tf "+e}};It.internal={Bezier_C:.551915024494,calculateCross:function(t){var n=It.internal.getWidth(t),e=It.internal.getHeight(t),i=Math.min(n,e);return{x1:{x:(n-i)/2,y:(e-i)/2+i},x2:{x:(n-i)/2+i,y:(e-i)/2},x3:{x:(n-i)/2,y:(e-i)/2},x4:{x:(n-i)/2+i,y:(e-i)/2+i}}}},It.internal.getWidth=function(t){var n=0;return Ne(t)==="object"&&(n=jf(t.Rect[2])),n},It.internal.getHeight=function(t){var n=0;return Ne(t)==="object"&&(n=jf(t.Rect[3])),n};var c5=ze.addField=function(t){if(h5(this,t),!(t instanceof oi))throw new Error("Invalid argument passed to jsPDF.addField.");var n;return(n=t).scope.internal.acroformPlugin.printedOut&&(n.scope.internal.acroformPlugin.printedOut=!1,n.scope.internal.acroformPlugin.acroFormDictionaryRoot=null),n.scope.internal.acroformPlugin.acroFormDictionaryRoot.Fields.push(n),t.page=t.scope.internal.getCurrentPageInfo().pageNumber,this};ze.AcroFormChoiceField=La,ze.AcroFormListBox=Sa,ze.AcroFormComboBox=ka,ze.AcroFormEditBox=Ss,ze.AcroFormButton=on,ze.AcroFormPushButton=ks,ze.AcroFormRadioButton=Pa,ze.AcroFormCheckBox=Ps,ze.AcroFormTextField=Dr,ze.AcroFormPasswordField=Es,ze.AcroFormAppearance=It,ze.AcroForm={ChoiceField:La,ListBox:Sa,ComboBox:ka,EditBox:Ss,Button:on,PushButton:ks,RadioButton:Pa,CheckBox:Ps,TextField:Dr,PasswordField:Es,Appearance:It},Mt.AcroForm={ChoiceField:La,ListBox:Sa,ComboBox:ka,EditBox:Ss,Button:on,PushButton:ks,RadioButton:Pa,CheckBox:Ps,TextField:Dr,PasswordField:Es,Appearance:It};var Kd=Mt.AcroForm;function ou(t){return t.reduce(function(n,e,i){return n[e]=i,n},{})}(function(t){var n="addImage_";t.__addimage__={};var e="UNKNOWN",i={PNG:[[137,80,78,71]],TIFF:[[77,77,0,42],[73,73,42,0]],JPEG:[[255,216,255,224,void 0,void 0,74,70,73,70,0],[255,216,255,225,void 0,void 0,69,120,105,102,0,0],[255,216,255,219],[255,216,255,238]],JPEG2000:[[0,0,0,12,106,80,32,32]],GIF87a:[[71,73,70,56,55,97]],GIF89a:[[71,73,70,56,57,97]],WEBP:[[82,73,70,70,void 0,void 0,void 0,void 0,87,69,66,80]],BMP:[[66,77],[66,65],[67,73],[67,80],[73,67],[80,84]]},a=t.__addimage__.getImageFileTypeByImageData=function(N,F){var U,q,it,ft,pt,nt=e;if((F=F||e)==="RGBA"||N.data!==void 0&&N.data instanceof Uint8ClampedArray&&"height"in N&&"width"in N)return"RGBA";if(_t(N))for(pt in i)for(it=i[pt],U=0;U>"}),"transparency"in F&&Array.isArray(F.transparency)&&F.transparency.length>0){for(var pt="",nt=0,ut=F.transparency.length;nt>",O.content=o;var $=O.objId+" 0 R";o="<>";else if(i.options.pageNumber)switch(o="<=0};t.__arabicParser__.arabicLetterHasIsolatedForm=function(O){return f(O)&&o(O)&&n[O.charCodeAt(0)].length>=1};var d=t.__arabicParser__.arabicLetterHasFinalForm=function(O){return f(O)&&o(O)&&n[O.charCodeAt(0)].length>=2};t.__arabicParser__.arabicLetterHasInitialForm=function(O){return f(O)&&o(O)&&n[O.charCodeAt(0)].length>=3};var m=t.__arabicParser__.arabicLetterHasMedialForm=function(O){return f(O)&&o(O)&&n[O.charCodeAt(0)].length==4},A=t.__arabicParser__.resolveLigatures=function(O){var B=0,k=e,Z="",$=0;for(B=0;B>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){this.internal.out("/OpenAction "+n+" 0 R")})),this},(function(t){var n=function(){var e=void 0;Object.defineProperty(this,"pdf",{get:function(){return e},set:function(l){e=l}});var i=150;Object.defineProperty(this,"width",{get:function(){return i},set:function(l){i=isNaN(l)||Number.isInteger(l)===!1||l<0?150:l,this.getContext("2d").pageWrapXEnabled&&(this.getContext("2d").pageWrapX=i+1)}});var a=300;Object.defineProperty(this,"height",{get:function(){return a},set:function(l){a=isNaN(l)||Number.isInteger(l)===!1||l<0?300:l,this.getContext("2d").pageWrapYEnabled&&(this.getContext("2d").pageWrapY=a+1)}});var o=[];Object.defineProperty(this,"childNodes",{get:function(){return o},set:function(l){o=l}});var f={};Object.defineProperty(this,"style",{get:function(){return f},set:function(l){f=l}}),Object.defineProperty(this,"parentNode",{})};n.prototype.getContext=function(e,i){var a;if((e=e||"2d")!=="2d")return null;for(a in i)this.pdf.context2d.hasOwnProperty(a)&&(this.pdf.context2d[a]=i[a]);return this.pdf.context2d._canvas=this,this.pdf.context2d},n.prototype.toDataURL=function(){throw new Error("toDataURL is not implemented.")},t.events.push(["initialized",function(){this.canvas=new n,this.canvas.pdf=this}])})(Mt.API),(function(t){var n={left:0,top:0,bottom:0,right:0},e=!1,i=function(){this.internal.__cell__===void 0&&(this.internal.__cell__={},this.internal.__cell__.padding=3,this.internal.__cell__.headerFunction=void 0,this.internal.__cell__.margins=Object.assign({},n),this.internal.__cell__.margins.width=this.getPageWidth(),a.call(this))},a=function(){this.internal.__cell__.lastCell=new o,this.internal.__cell__.pages=1},o=function(){var c=arguments[0];Object.defineProperty(this,"x",{enumerable:!0,get:function(){return c},set:function(O){c=O}});var d=arguments[1];Object.defineProperty(this,"y",{enumerable:!0,get:function(){return d},set:function(O){d=O}});var m=arguments[2];Object.defineProperty(this,"width",{enumerable:!0,get:function(){return m},set:function(O){m=O}});var A=arguments[3];Object.defineProperty(this,"height",{enumerable:!0,get:function(){return A},set:function(O){A=O}});var L=arguments[4];Object.defineProperty(this,"text",{enumerable:!0,get:function(){return L},set:function(O){L=O}});var p=arguments[5];Object.defineProperty(this,"lineNumber",{enumerable:!0,get:function(){return p},set:function(O){p=O}});var T=arguments[6];return Object.defineProperty(this,"align",{enumerable:!0,get:function(){return T},set:function(O){T=O}}),this};o.prototype.clone=function(){return new o(this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align)},o.prototype.toArray=function(){return[this.x,this.y,this.width,this.height,this.text,this.lineNumber,this.align]},t.setHeaderFunction=function(c){return i.call(this),this.internal.__cell__.headerFunction=typeof c=="function"?c:void 0,this},t.getTextDimensions=function(c,d){i.call(this);var m=(d=d||{}).fontSize||this.getFontSize(),A=d.font||this.getFont(),L=d.scaleFactor||this.internal.scaleFactor,p=0,T=0,O=0,B=this;if(!Array.isArray(c)&&typeof c!="string"){if(typeof c!="number")throw new Error("getTextDimensions expects text-parameter to be of type String or type Number or an Array of Strings.");c=String(c)}var k=d.maxWidth;k>0?typeof c=="string"?c=this.splitTextToSize(c,k):Object.prototype.toString.call(c)==="[object Array]"&&(c=c.reduce(function($,D){return $.concat(B.splitTextToSize(D,k))},[])):c=Array.isArray(c)?c:[c];for(var Z=0;Zthis.getPageHeight()?(this.cellAddPage(),c.y=A.top,p&&L&&(this.printHeaderRow(c.lineNumber,!0),c.y+=L[0].height)):c.y=d.y+d.height||c.y),c.text[0]!==void 0&&(this.rect(c.x,c.y,c.width,c.height,e===!0?"FD":void 0),c.align==="right"?this.text(c.text,c.x+c.width-m,c.y+m,{align:"right",baseline:"top"}):c.align==="center"?this.text(c.text,c.x+c.width/2,c.y+m,{align:"center",baseline:"top",maxWidth:c.width-m-m}):this.text(c.text,c.x+m,c.y+m,{align:"left",baseline:"top",maxWidth:c.width-m-m})),this.internal.__cell__.lastCell=c,this};t.table=function(c,d,m,A,L){if(i.call(this),!m)throw new Error("No data for PDF table.");var p,T,O,B,k=[],Z=[],$=[],D={},lt={},_t=[],mt=[],tt=(L=L||{}).autoSize||!1,z=L.printHeaders!==!1,et=L.css&&L.css["font-size"]!==void 0?16*L.css["font-size"]:L.fontSize||12,N=L.margins||Object.assign({width:this.getPageWidth()},n),F=typeof L.padding=="number"?L.padding:3,U=L.headerBackgroundColor||"#c8c8c8",q=L.headerTextColor||"#000";if(a.call(this),this.internal.__cell__.printHeaders=z,this.internal.__cell__.margins=N,this.internal.__cell__.table_font_size=et,this.internal.__cell__.padding=F,this.internal.__cell__.headerBackgroundColor=U,this.internal.__cell__.headerTextColor=q,this.setFontSize(et),A==null)Z=k=Object.keys(m[0]),$=k.map(function(){return"left"});else if(Array.isArray(A)&&Ne(A[0])==="object")for(k=A.map(function(At){return At.name}),Z=A.map(function(At){return At.prompt||At.name||""}),$=A.map(function(At){return At.align||"left"}),p=0;p0&&this.setTableHeaderRow(L),this.setFont(void 0,"normal"),e=!1}})(Mt.API);var su={italic:["italic","oblique","normal"],oblique:["oblique","italic","normal"],normal:["normal","oblique","italic"]},lu=["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded"],fh=ou(lu),hu=[100,200,300,400,500,600,700,800,900],f5=ou(hu);function rh(t){var n=t.family.replace(/"|'/g,"").toLowerCase(),e=(function(o){return su[o=o||"normal"]?o:"normal"})(t.style),i=(function(o){return o?typeof o=="number"?o>=100&&o<=900&&o%100==0?o:400:/^\d00$/.test(o)?parseInt(o):o==="bold"?700:400:400})(t.weight),a=(function(o){return typeof fh[o=o||"normal"]=="number"?o:"normal"})(t.stretch);return{family:n,style:e,weight:i,stretch:a,src:t.src||[],ref:t.ref||{name:n,style:[a,e,i].join(" ")}}}function Mf(t,n,e,i){var a;for(a=e;a>=0&&a=0&&a>>1)&255}return a}function Yf(t,n,e){var i=t.length,a=[];a[0]=4;for(var o=0;o>o&f}function Kf(t,n,e,i){var a=e*i,o=Math.floor(a/8),f=16-(a-8*o+i),l=(1<>8&255;d.setUint8(m,L)}})(t,o,cu(t,o)&~(l<>7,f=1<<1+(7&a);t[n++],t[n++];var l=null,c=null;o&&(l=n,c=f,n+=3*f);var d=!0,m=[],A=0,L=null,p=0,T=null;for(this.width=e,this.height=i;d&&n=0))throw Error("Invalid block size");if(N===0)break;n+=N}break;case 249:if(t[n++]!==4||t[n+4]!==0)throw new Error("Invalid graphics extension block.");var O=t[n++];A=t[n++]|t[n++]<<8,L=t[n++],1&O||(L=null),p=O>>2&7,n++;break;case 254:for(;;){if(!((N=t[n++])>=0))throw Error("Invalid block size");if(N===0)break;n+=N}break;default:throw new Error("Unknown graphic control label: 0x"+t[n-1].toString(16))}break;case 44:var B=t[n++]|t[n++]<<8,k=t[n++]|t[n++]<<8,Z=t[n++]|t[n++]<<8,$=t[n++]|t[n++]<<8,D=t[n++],lt=D>>6&1,_t=1<<1+(7&D),mt=l,tt=c,z=!1;D>>7&&(z=!0,mt=n,tt=_t,n+=3*_t);var et=n;for(n++;;){var N;if(!((N=t[n++])>=0))throw Error("Invalid block size");if(N===0)break;n+=N}m.push({x:B,y:k,width:Z,height:$,has_local_palette:z,palette_offset:mt,palette_size:tt,data_offset:et,data_length:n-et,transparent_index:L,interlaced:!!lt,delay:A,disposal:p});break;case 59:d=!1;break;default:throw new Error("Unknown gif block: 0x"+t[n-1].toString(16))}this.numFrames=function(){return m.length},this.loopCount=function(){return T},this.frameInfo=function(F){if(F<0||F>=m.length)throw new Error("Frame index out of range.");return m[F]},this.decodeAndBlitFrameBGRA=function(F,U){var q=this.frameInfo(F),it=q.width*q.height;if(it>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var ft=new Uint8Array(it);Xf(t,q.data_offset,ft,it);var pt=q.palette_offset,nt=q.transparent_index;nt===null&&(nt=256);var ut=q.width,At=e-ut,yt=ut,y=4*(q.y*e+q.x),R=4*((q.y+q.height)*e+q.x),j=y,G=4*At;q.interlaced===!0&&(G+=4*e*7);for(var Y=8,Q=0,rt=ft.length;Q=R&&(G=4*At+4*e*(Y-1),j=y+(ut+At)*(Y<<1),Y>>=1)),at===nt)j+=4;else{var dt=t[pt+3*at],xt=t[pt+3*at+1],St=t[pt+3*at+2];U[j++]=St,U[j++]=xt,U[j++]=dt,U[j++]=255}--yt}},this.decodeAndBlitFrameRGBA=function(F,U){var q=this.frameInfo(F),it=q.width*q.height;if(it>536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");var ft=new Uint8Array(it);Xf(t,q.data_offset,ft,it);var pt=q.palette_offset,nt=q.transparent_index;nt===null&&(nt=256);var ut=q.width,At=e-ut,yt=ut,y=4*(q.y*e+q.x),R=4*((q.y+q.height)*e+q.x),j=y,G=4*At;q.interlaced===!0&&(G+=4*e*7);for(var Y=8,Q=0,rt=ft.length;Q=R&&(G=4*At+4*e*(Y-1),j=y+(ut+At)*(Y<<1),Y>>=1)),at===nt)j+=4;else{var dt=t[pt+3*at],xt=t[pt+3*at+1],St=t[pt+3*at+2];U[j++]=dt,U[j++]=xt,U[j++]=St,U[j++]=255}--yt}}}function Xf(t,n,e,i){for(var a=t[n++],o=1<>=c,m-=c,B!==o){if(B===f)break;for(var k=Bo;)$=T[$]>>8,++Z;var D=$;if(L+Z+(k!==B?1:0)>i)return void ke.log("Warning, gif stream longer than expected.");e[L++]=D;var lt=L+=Z;for(k!==B&&(e[L++]=D),$=k;Z--;)$=T[$],e[--lt]=255&$,$>>=8;O!==null&&l<4096&&(T[l++]=O<<8|D,l>=d+1&&c<12&&(++c,d=d<<1|1)),O=B}else l=f+1,d=(1<<(c=a+1))-1,O=null}return L!==i&&ke.log("Warning, gif stream shorter than expected."),e}function sh(t){var n,e,i,a,o,f=Math.floor,l=new Array(64),c=new Array(64),d=new Array(64),m=new Array(64),A=new Array(65535),L=new Array(65535),p=new Array(64),T=new Array(64),O=[],B=0,k=7,Z=new Array(64),$=new Array(64),D=new Array(64),lt=new Array(256),_t=new Array(2048),mt=[0,1,5,6,14,15,27,28,2,4,7,13,16,26,29,42,3,8,12,17,25,30,41,43,9,11,18,24,31,40,44,53,10,19,23,32,39,45,52,54,20,22,33,38,46,51,55,60,21,34,37,47,50,56,59,61,35,36,48,49,57,58,62,63],tt=[0,0,1,5,1,1,1,1,1,1,0,0,0,0,0,0,0],z=[0,1,2,3,4,5,6,7,8,9,10,11],et=[0,0,2,1,3,3,2,4,3,5,5,4,4,0,0,1,125],N=[1,2,3,0,4,17,5,18,33,49,65,6,19,81,97,7,34,113,20,50,129,145,161,8,35,66,177,193,21,82,209,240,36,51,98,114,130,9,10,22,23,24,25,26,37,38,39,40,41,42,52,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,225,226,227,228,229,230,231,232,233,234,241,242,243,244,245,246,247,248,249,250],F=[0,0,3,1,1,1,1,1,1,1,1,1,0,0,0,0,0],U=[0,1,2,3,4,5,6,7,8,9,10,11],q=[0,0,2,1,2,4,4,3,4,7,5,4,4,0,1,2,119],it=[0,1,2,3,17,4,5,33,49,6,18,65,81,7,97,113,19,34,50,129,8,20,66,145,161,177,193,9,35,51,82,240,21,98,114,209,10,22,36,52,225,37,241,23,24,25,26,38,39,40,41,42,53,54,55,56,57,58,67,68,69,70,71,72,73,74,83,84,85,86,87,88,89,90,99,100,101,102,103,104,105,106,115,116,117,118,119,120,121,122,130,131,132,133,134,135,136,137,138,146,147,148,149,150,151,152,153,154,162,163,164,165,166,167,168,169,170,178,179,180,181,182,183,184,185,186,194,195,196,197,198,199,200,201,202,210,211,212,213,214,215,216,217,218,226,227,228,229,230,231,232,233,234,242,243,244,245,246,247,248,249,250];function ft(y,R){for(var j=0,G=0,Y=new Array,Q=1;Q<=16;Q++){for(var rt=1;rt<=y[Q];rt++)Y[R[G]]=[],Y[R[G]][0]=j,Y[R[G]][1]=Q,G++,j++;j*=2}return Y}function pt(y){for(var R=y[0],j=y[1]-1;j>=0;)R&1<>8&255),nt(255&y)}function At(y,R,j,G,Y){for(var Q,rt=Y[0],at=Y[240],dt=(function(vt,Wt){var Et,qt,Dt,we,he,Jt,fe,ce,Rt,ne,jt=0;for(Rt=0;Rt<8;++Rt){Et=vt[jt],qt=vt[jt+1],Dt=vt[jt+2],we=vt[jt+3],he=vt[jt+4],Jt=vt[jt+5],fe=vt[jt+6];var He=Et+(ce=vt[jt+7]),ge=Et-ce,oe=qt+fe,se=qt-fe,Te=Dt+Jt,Ut=Dt-Jt,Pe=we+he,Zt=we-he,Qt=He+Pe,Re=He-Pe,le=oe+Te,Gt=oe-Te;vt[jt]=Qt+le,vt[jt+4]=Qt-le;var _e=.707106781*(Gt+Re);vt[jt+2]=Re+_e,vt[jt+6]=Re-_e;var cr=.382683433*((Qt=Zt+Ut)-(Gt=se+ge)),dn=.5411961*Qt+cr,Si=1.306562965*Gt+cr,li=.707106781*(le=Ut+se),Vt=ge+li,ki=ge-li;vt[jt+5]=ki+dn,vt[jt+3]=ki-dn,vt[jt+1]=Vt+Si,vt[jt+7]=Vt-Si,jt+=8}for(jt=0,Rt=0;Rt<8;++Rt){Et=vt[jt],qt=vt[jt+8],Dt=vt[jt+16],we=vt[jt+24],he=vt[jt+32],Jt=vt[jt+40],fe=vt[jt+48];var Pi=Et+(ce=vt[jt+56]),Hn=Et-ce,Wn=qt+fe,De=qt-fe,rn=Dt+Jt,sn=Dt-Jt,fr=we+he,zi=we-he,Jn=Pi+fr,hi=Pi-fr,Qn=Wn+rn,ti=Wn-rn;vt[jt]=Jn+Qn,vt[jt+32]=Jn-Qn;var Gn=.707106781*(ti+hi);vt[jt+16]=hi+Gn,vt[jt+48]=hi-Gn;var ur=.382683433*((Jn=zi+sn)-(ti=De+Hn)),ci=.5411961*Jn+ur,dr=1.306562965*ti+ur,zr=.707106781*(Qn=sn+De),Hr=Hn+zr,Wr=Hn-zr;vt[jt+40]=Wr+ci,vt[jt+24]=Wr-ci,vt[jt+8]=Hr+dr,vt[jt+56]=Hr-dr,jt++}for(Rt=0;Rt<64;++Rt)ne=vt[Rt]*Wt[Rt],p[Rt]=ne>0?ne+.5|0:ne-.5|0;return p})(y,R),xt=0;xt<64;++xt)T[mt[xt]]=dt[xt];var St=T[0]-j;j=T[0],St==0?pt(G[0]):(pt(G[L[Q=32767+St]]),pt(A[Q]));for(var kt=63;kt>0&&T[kt]==0;)kt--;if(kt==0)return pt(rt),j;for(var zt,P=1;P<=kt;){for(var Lt=P;T[P]==0&&P<=kt;)++P;var ae=P-Lt;if(ae>=16){zt=ae>>4;for(var Ht=1;Ht<=zt;++Ht)pt(at);ae&=15}Q=32767+T[P],pt(Y[(ae<<4)+L[Q]]),pt(A[Q]),P++}return kt!=63&&pt(rt),j}function yt(y){y=Math.min(Math.max(y,1),100),o!=y&&((function(R){for(var j=[16,11,10,16,24,40,51,61,12,12,14,19,26,58,60,55,14,13,16,24,40,57,69,56,14,17,22,29,51,87,80,62,18,22,37,56,68,109,103,77,24,35,55,64,81,104,113,92,49,64,78,87,103,121,120,101,72,92,95,98,112,100,103,99],G=0;G<64;G++){var Y=f((j[G]*R+50)/100);Y=Math.min(Math.max(Y,1),255),l[mt[G]]=Y}for(var Q=[17,18,24,47,99,99,99,99,18,21,26,66,99,99,99,99,24,26,56,99,99,99,99,99,47,66,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99,99],rt=0;rt<64;rt++){var at=f((Q[rt]*R+50)/100);at=Math.min(Math.max(at,1),255),c[mt[rt]]=at}for(var dt=[1,1.387039845,1.306562965,1.175875602,1,.785694958,.5411961,.275899379],xt=0,St=0;St<8;St++)for(var kt=0;kt<8;kt++)d[xt]=1/(l[mt[xt]]*dt[St]*dt[kt]*8),m[xt]=1/(c[mt[xt]]*dt[St]*dt[kt]*8),xt++})(y<50?Math.floor(5e3/y):Math.floor(200-2*y)),o=y)}this.encode=function(y,R){R&&yt(R),O=new Array,B=0,k=7,ut(65496),ut(65504),ut(16),nt(74),nt(70),nt(73),nt(70),nt(0),nt(1),nt(1),nt(0),ut(1),ut(1),nt(0),nt(0),(function(){ut(65499),ut(132),nt(0);for(var qt=0;qt<64;qt++)nt(l[qt]);nt(1);for(var Dt=0;Dt<64;Dt++)nt(c[Dt])})(),(function(qt,Dt){ut(65472),ut(17),nt(8),ut(Dt),ut(qt),nt(3),nt(1),nt(17),nt(0),nt(2),nt(17),nt(1),nt(3),nt(17),nt(1)})(y.width,y.height),(function(){ut(65476),ut(418),nt(0);for(var qt=0;qt<16;qt++)nt(tt[qt+1]);for(var Dt=0;Dt<=11;Dt++)nt(z[Dt]);nt(16);for(var we=0;we<16;we++)nt(et[we+1]);for(var he=0;he<=161;he++)nt(N[he]);nt(1);for(var Jt=0;Jt<16;Jt++)nt(F[Jt+1]);for(var fe=0;fe<=11;fe++)nt(U[fe]);nt(17);for(var ce=0;ce<16;ce++)nt(q[ce+1]);for(var Rt=0;Rt<=161;Rt++)nt(it[Rt])})(),ut(65498),ut(12),nt(3),nt(1),nt(0),nt(2),nt(17),nt(3),nt(17),nt(0),nt(63),nt(0);var j=0,G=0,Y=0;B=0,k=7,this.encode.displayName="_encode_";for(var Q,rt,at,dt,xt,St,kt,zt,P,Lt=y.data,ae=y.width,Ht=y.height,vt=4*ae,Wt=0;Wt>3)*vt+(kt=4*(7&P)),Wt+zt>=Ht&&(St-=vt*(Wt+1+zt-Ht)),Q+kt>=vt&&(St-=Q+kt-vt+4),rt=Lt[St++],at=Lt[St++],dt=Lt[St++],Z[P]=(_t[rt]+_t[at+256|0]+_t[dt+512|0]>>16)-128,$[P]=(_t[rt+768|0]+_t[at+1024|0]+_t[dt+1280|0]>>16)-128,D[P]=(_t[rt+1280|0]+_t[at+1536|0]+_t[dt+1792|0]>>16)-128;j=At(Z,d,j,n,i),G=At($,m,G,e,a),Y=At(D,m,Y,e,a),Q+=32}Wt+=8}if(k>=0){var Et=[];Et[1]=k+1,Et[0]=(1<F;F++)if(z[et+F]!=N.charCodeAt(F))return!0;return!1}function i(z,et,N,F,U){for(var q=0;qq+1?[]:new et),!(it.length>>0;r&u;)u>>>=1;return u?(r&u-1)+u:r}function N(r,s,u,g,v){n(!(g%u));do r[s+(g-=u)]=v;while(0=v),512>=v)var w=o(512);else if((w=o(v))==null)return 0;return(function(_,x,S,I,H,J){var C,W,K=x,st=1<C;++C){if(X[C]>1<(ie-=X[C]))return 0;for(;0=C;++C,H<<=1){if(Pt+=ie<<=1,0>(ie-=X[C]))return 0;for(;0wt&&!(0>=(ct-=X[wt]));)++wt,ct<<=1;st+=Ot=1<<(ct=wt-S),_[x+(wt=Bt&bt)].g=ct+S,_[x+wt].value=K-x-wt}I.g=C-S,I.value=J[W++],N(_,K+(Bt>>S),H,Ot,I),Bt=et(Bt,C)}}return Pt!=2*ht[15]-1?0:st})(r,s,u,g,v,w)}function U(){this.value=this.g=0}function q(){this.value=this.g=0}function it(){this.G=f(5,U),this.H=o(5),this.jc=this.Qb=this.qb=this.nd=0,this.pd=f(ia,q)}function ft(r,s,u,g){n(r!=null),n(s!=null),n(2147483648>g),r.Ca=254,r.I=0,r.b=-8,r.Ka=0,r.oa=s,r.pa=u,r.Jd=s,r.Yc=u+g,r.Zc=4<=g?u+g-4+1:u,rt(r)}function pt(r,s){for(var u=0;0g),r.Sb=g,r.Ra=0,r.u=0,r.h=0,4>>=8,r.Ra+=r.oa[r.pa+r.bb]<>>0,++r.bb,r.u-=8;G(r)&&(r.h=1,r.u=0)}function yt(r,s){if(n(0<=s),!r.h&&s<=za){var u=j(r)&Ar[s];return r.u+=s,At(r),u}return r.h=1,r.u=0}function y(){this.b=this.Ca=this.I=0,this.oa=[],this.pa=0,this.Jd=[],this.Yc=0,this.Zc=[],this.Ka=0}function R(){this.Ra=0,this.oa=[],this.h=this.u=this.bb=this.Sb=this.pa=0}function j(r){return r.Ra>>>(r.u&An-1)>>>0}function G(r){return n(r.bb<=r.Sb),r.h||r.bb==r.Sb&&r.u>An}function Y(r,s){r.u=s,r.h=G(r)}function Q(r){r.u>=En&&(n(r.u>=En),At(r))}function rt(r){n(r!=null&&r.oa!=null),r.pa>>0,r.b+=8):(n(r!=null&&r.oa!=null),r.par.b&&rt(r);var g=r.b,v=u*s>>>8,w=(r.I>>>g>v)+0;for(w?(u-=v,r.I-=v+1<>>0):u=v+1,g=u,v=0;256<=g;)v+=8,g>>=8;return g=7^v+ra[g],r.b-=g,r.Ca=(u<>24&255,r[s+1]=u>>16&255,r[s+2]=u>>8&255,r[s+3]=255&u}function St(r,s){return r[s+0]|r[s+1]<<8}function kt(r,s){return St(r,s)|r[s+2]<<16}function zt(r,s){return St(r,s)|St(r,s+2)<<16}function P(r,s){var u=1<=v||0>=w?0:(u[0]=v,g[0]=w,1)}function vt(r,s){return r+(1<>>s}function Wt(r,s){return((4278255360&r)+(4278255360&s)>>>0&4278255360)+((16711935&r)+(16711935&s)>>>0&16711935)>>>0}function Et(r,s){z[s]=function(u,g,v,w,_,x,S){var I;for(I=0;I<_;++I){var H=z[r](x[S+I-1],v,w+I);x[S+I]=Wt(u[g+I],H)}}}function qt(){this.ud=this.hd=this.jd=0}function Dt(r,s){return((4278124286&(r^s))>>>1)+(r&s)>>>0}function we(r){return 0<=r&&256>r?r:0>r?0:255>1))}function Jt(r,s,u){return Math.abs(s-u)-Math.abs(r-u)}function fe(r,s,u,g,v,w,_){for(g=w[_-1],u=0;u>8&255,S=16711935&(S=(S=16711935&_)+((x<<16)+x));g[v+w]=(4278255360&_)+S>>>0}}function Rt(r,s){s.jd=255&r,s.hd=r>>8&255,s.ud=r>>16&255}function ne(r,s,u,g,v,w){var _;for(_=0;_>>8,I=x,H=255&(H=(H=x>>>16)+((r.jd<<24>>24)*(S<<24>>24)>>>5));I=255&(I=(I+=(r.hd<<24>>24)*(S<<24>>24)>>>5)+((r.ud<<24>>24)*(H<<24>>24)>>>5)),v[w+_]=(4278255360&x)+(H<<16)+I}}function jt(r,s,u,g,v){z[s]=function(w,_,x,S,I,H,J,C,W){for(S=J;S>w.b,W=w.Ea,K=w.K[0],st=w.w;if(8>C)for(w=(1<>=C}else z["VP8LMapColor"+u](S,I,K,st,H,J,_,x,W)}}function He(r,s,u,g,v){for(u=s+u;s>16&255,g[v++]=w>>8&255,g[v++]=255&w}}function ge(r,s,u,g,v){for(u=s+u;s>16&255,g[v++]=w>>8&255,g[v++]=255&w,g[v++]=w>>24&255}}function oe(r,s,u,g,v){for(u=s+u;s>16&240|_>>12&15,_=240&_|_>>28&15;g[v++]=w,g[v++]=_}}function se(r,s,u,g,v){for(u=s+u;s>16&248|_>>13&7,_=_>>5&224|_>>3&31;g[v++]=w,g[v++]=_}}function Te(r,s,u,g,v){for(u=s+u;s>8&255,g[v++]=w>>16&255}}function Ut(r,s,u,g,v,w){if(w==0)for(u=s+u;s>24|w[1]>>8&65280|w[2]<<8&16711680|w[3]<<24)>>>0),v+=32;else i(g,v,r,s,u)}function Pe(r,s){z[s][0]=z[r+"0"],z[s][1]=z[r+"1"],z[s][2]=z[r+"2"],z[s][3]=z[r+"3"],z[s][4]=z[r+"4"],z[s][5]=z[r+"5"],z[s][6]=z[r+"6"],z[s][7]=z[r+"7"],z[s][8]=z[r+"8"],z[s][9]=z[r+"9"],z[s][10]=z[r+"10"],z[s][11]=z[r+"11"],z[s][12]=z[r+"12"],z[s][13]=z[r+"13"],z[s][14]=z[r+"0"],z[s][15]=z[r+"0"]}function Zt(r){return r==tl||r==el||r==Ho||r==nl}function Qt(){this.eb=[],this.size=this.A=this.fb=0}function Re(){this.y=[],this.f=[],this.ea=[],this.F=[],this.Tc=this.Ed=this.Cd=this.Fd=this.lb=this.Db=this.Ab=this.fa=this.J=this.W=this.N=this.O=0}function le(){this.Rd=this.height=this.width=this.S=0,this.f={},this.f.RGBA=new Qt,this.f.kb=new Re,this.sd=null}function Gt(){this.width=[0],this.height=[0],this.Pd=[0],this.Qd=[0],this.format=[0]}function _e(){this.Id=this.fd=this.Md=this.hb=this.ib=this.da=this.bd=this.cd=this.j=this.v=this.Da=this.Sd=this.ob=0}function cr(r){return alert("todo:WebPSamplerProcessPlane"),r.T}function dn(r,s){var u=r.T,g=s.ba.f.RGBA,v=g.eb,w=g.fb+r.ka*g.A,_=Yn[s.ba.S],x=r.y,S=r.O,I=r.f,H=r.N,J=r.ea,C=r.W,W=s.cc,K=s.dc,st=s.Mc,X=s.Nc,ht=r.ka,ct=r.ka+r.T,wt=r.U,bt=wt+1>>1;for(ht==0?_(x,S,null,null,I,H,J,C,I,H,J,C,v,w,null,null,wt):(_(s.ec,s.fc,x,S,W,K,st,X,I,H,J,C,v,w-g.A,v,w,wt),++u);ht+2u,v=u==Uo||u==qo||u==zo||u==Qs||u==12||Zt(u);if(s.memory=null,s.Ib=null,s.Jb=null,s.Nd=null,!Zn(s.Oa,r,v?11:12))return 0;if(v&&Zt(u)&&Ti(),r.da)alert("todo:use_scaling");else{if(g){if(s.Ib=cr,r.Kb){if(u=r.U+1>>1,s.memory=o(r.U+2*u),s.memory==null)return 0;s.ec=s.memory,s.fc=0,s.cc=s.ec,s.dc=s.fc+r.U,s.Mc=s.cc,s.Nc=s.dc+u,s.Ib=dn,Ti()}}else alert("todo:EmitYUV");v&&(s.Jb=Si,g&&Me())}if(g&&!Rh){for(r=0;256>r;++r)Cu[r]=89858*(r-128)+Go>>Wo,Tu[r]=-22014*(r-128)+Go,Ou[r]=-45773*(r-128),Fu[r]=113618*(r-128)+Go>>Wo;for(r=$a;r>Wo,Ru[r-$a]=fi(s,255),Bu[r-$a]=fi(s+8>>4,15);Rh=1}return 1}function Vt(r){var s=r.ma,u=r.U,g=r.T;return n(!(1&r.ka)),0>=u||0>=g?0:(u=s.Ib(r,s),s.Jb!=null&&s.Jb(r,s,u),s.Dc+=u,1)}function ki(r){r.ma.memory=null}function Pi(r,s,u,g){return yt(r,8)!=47?0:(s[0]=yt(r,14)+1,u[0]=yt(r,14)+1,g[0]=yt(r,1),yt(r,3)!=0?0:!r.h)}function Hn(r,s){if(4>r)return r+1;var u=r-2>>1;return(2+(1&r)<>4)*r+(8-(15&u)))?u:1;var u}function De(r,s,u){var g=j(u),v=r[s+=255&g].g-8;return 0>>0,n(8>=u.g),r.g}function sn(r,s,u){var g=r.xc;return n((s=g==0?0:r.vc[r.md*(u>>g)+(s>>g)])>Ot.b)*Pt;stwt&&(Tt=wt),(0,ei[ue[tn++]>>8&15])(C,W+ +re,ht,ct+re-wt,Tt-re,ht,ct+re),re=Tt}W+=wt,ct+=wt,++st&Bt||(Ot+=Pt)}J!=I.nc&&i(S,x-K,S,x+(J-H-1)*K,K);break;case 1:for(K=C,X=W,wt=(C=I.Ea)-(ct=C&~(ht=(W=1<>I.b)*st;H=v),0w.o&&(g=w.o),u=g?u=0:(v[0]+=4*w.v,w.ka=u-w.j,w.U=w.va-w.v,w.T=g-u,u=1),u){if(x=x[0],11>(u=r.ca).S){var H=u.f.RGBA,J=(g=u.S,v=w.U,w=w.T,I=H.eb,H.A),C=w;for(H=H.fb+r.Ma*H.A;0g){var v=r.l.width,w=u.ca,_=u.tb+v*g,x=r.V,S=r.Ba+r.c*g,I=r.gc;n(r.ab==1),n(I[0].hc==3),Xs(I[0],g,s,x,S,w,_),hi(u,g,s,w,_,v)}r.C=r.Ma=s}function ti(r,s,u,g,v,w,_){var x=r.$/g,S=r.$%g,I=r.m,H=r.s,J=u+r.$,C=J;v=u+g*v;var W=u+g*w,K=280+H.ua,st=r.Pb?x:16777216,X=0=st){var Bt=J-u;n((st=r).Pb),st.wd=st.m,st.xd=Bt,0ie.g?(Y(bt,bt.u+ie.g),Bt[Pt]=ie.value,bt=0):(Y(bt,bt.u+ie.g-256),n(256<=ie.value),bt=ie.value),bt==0&&(wt=!0)}else bt=De(ct.G[0],ct.H[0],I);if(I.h)break;if(wt||256>bt){if(!wt)if(ct.nd)s[J]=(ct.qb|bt<<8)>>>0;else{if(Q(I),wt=De(ct.G[1],ct.H[1],I),Q(I),Bt=De(ct.G[2],ct.H[2],I),Pt=De(ct.G[3],ct.H[3],I),I.h)break;s[J]=(Pt<<24|wt<<16|bt<<8|Bt)>>>0}if(wt=!1,++J,++S>=g&&(S=0,++x,_!=null&&x<=w&&!(x%16)&&_(r,x),X!=null))for(;C>>X.Mb]=bt}else if(280>bt){if(bt=Hn(bt-256,I),Bt=De(ct.G[4],ct.H[4],I),Q(I),Bt=Wn(g,Bt=Hn(Bt,I)),I.h)break;if(J-u=g;)S-=g,++x,_!=null&&x<=w&&!(x%16)&&_(r,x);if(n(J<=v),S&ht&&(ct=sn(H,S,x)),X!=null)for(;C>>X.Mb]=bt}else{if(!(bt>>X.Mb]=bt;bt=J,n(!(wt>>>(Bt=X).Xa)),s[bt]=Bt.X[wt],wt=!0}wt||n(I.h==G(I))}if(r.Pb&&I.h&&Jw?w:x),r.a=0,r.$=J-u}return 1}return r.a=3,0}function Gn(r){n(r!=null),r.vc=null,r.yc=null,r.Ya=null;var s=r.Wa;s!=null&&(s.X=null),r.vb=null,n(r!=null)}function ur(){var r=new Ft;return r==null?null:(r.a=0,r.xb=Eh,Pe("Predictor","VP8LPredictors"),Pe("Predictor","VP8LPredictors_C"),Pe("PredictorAdd","VP8LPredictorsAdd"),Pe("PredictorAdd","VP8LPredictorsAdd_C"),aa=ce,Lr=ne,Ha=He,Wa=ge,oa=oe,Sr=se,kr=Te,z.VP8LMapColor32b=Je,z.VP8LMapColor8b=mi,r)}function ci(r,s,u,g,v){var w=1,_=[r],x=[s],S=g.m,I=g.s,H=null,J=0;t:for(;;){if(u)for(;w&&yt(S,1);){var C=_,W=x,K=g,st=1,X=K.m,ht=K.gc[K.ab],ct=yt(X,2);if(K.Oc&1<=K.ab),ct){case 0:case 1:ht.b=yt(X,3)+2,st=ci(vt(ht.Ea,ht.b),vt(ht.nc,ht.b),0,K,ht.K),ht.K=ht.K[0];break;case 3:var wt,bt=yt(X,8)+1,Bt=16>Ot.b),tn=o(ue);if(tn==null)wt=0;else{var re=Ot.K[0],Tt=Ot.w;for(tn[0]=Ot.K[0][0],Pt=1;Pt<1*ie;++Pt)tn[Pt]=Wt(re[Tt+Pt],tn[Pt-1]);for(;Pt<4*ue;++Pt)tn[Pt]=0;Ot.K[0]=null,Ot.K[0]=tn,wt=1}}st=wt;break;case 2:break;default:n(0)}w=st}}if(_=_[0],x=x[0],w&&yt(S,1)&&!(w=1<=(J=yt(S,4))&&11>=J)){g.a=3;break t}var Nt;if(Nt=w)e:{var Ge,ee,pe,Oe=g,hn=_,Nn=x,Ue=J,bn=u,Ln=Oe.m,en=Oe.s,me=[null],ye=1,qe=0,xe=vu[Ue];n:for(;;){if(bn&&yt(Ln,1)){var cn=yt(Ln,3)+2,ii=vt(hn,cn),Ve=vt(Nn,cn),In=ii*Ve;if(!ci(ii,Ve,0,Oe,me))break n;for(me=me[0],en.xc=cn,Ge=0;Ge>8&65535;me[Ge]=Se,Se>=ye&&(ye=Se+1)}}if(Ln.h)break n;for(ee=0;5>ee;++ee){var nn=kh[ee];!ee&&0=Sn),Mn=jn;var Cn=o(qe);if(Mn==null||Cn==null||Bn==null){Oe.a=1;break n}var Dn=Bn;for(Ge=pe=0;Geee;++ee){nn=kh[ee],Un[ee]=Dn,ri[ee]=pe,!ee&&0Xo)break i}else ll=Xo;for(Ka=0;Kaha)zh[Ka++]=ha,ha!=0&&(Hh=ha);else{var Vu=ha==16,Vh=ha-16,Zu=pu[Vh],Zh=yt(tr,du[Vh])+Zu;if(Ka+Zh>Xo)break i;for(var $u=Vu?Hh:0;0=ee){var Xa,cl=Cn[0];for(Xa=1;Xacl&&(cl=Cn[Xa]);fn+=cl}}if(Ce.nd=Mi,Ce.Qb=0,Mi&&(Ce.qb=(Un[3][ri[3]+0].value<<24|Un[1][ri[1]+0].value<<16|Un[2][ri[2]+0].value)>>>0,Pr==0&&256>Un[0][ri[0]+0].value&&(Ce.Qb=1,Ce.qb+=Un[0][ri[0]+0].value<<8)),Ce.jc=!Ce.Qb&&6>fn,Ce.jc){var Jo,Di=Ce;for(Jo=0;Jo>=rn(Qo,8,nr),er>>=rn(Di.G[1][Di.H[1]+er],16,nr),er>>=rn(Di.G[2][Di.H[2]+er],0,nr),rn(Di.G[3][Di.H[3]+er],24,nr))}}}en.vc=me,en.Wb=ye,en.Ya=Mn,en.yc=Bn,Nt=1;break e}Nt=0}if(!(w=Nt)){g.a=3;break t}if(0g+1?[]:0),!(v.lengthr?0:r>s?s:r}function Gr(){this.T=this.U=this.ka=this.height=this.width=0,this.y=[],this.f=[],this.ea=[],this.Rc=this.fa=this.W=this.N=this.O=0,this.ma="void",this.put="VP8IoPutHook",this.ac="VP8IoSetupHook",this.bc="VP8IoTeardownHook",this.ha=this.Kb=0,this.data=[],this.hb=this.ib=this.da=this.o=this.j=this.va=this.v=this.Da=this.ob=this.w=0,this.F=[],this.J=0}function Ts(){var r=new Lo;return r!=null&&(r.a=0,r.sc="OK",r.cb=0,r.Xb=0,Za||(Za=Vr)),r}function Ke(r,s,u){return r.a==0&&(r.a=s,r.sc=u,r.cb=0),0}function So(r,s,u){return 3<=u&&r[s+0]==157&&r[s+1]==1&&r[s+2]==42}function ui(r,s){if(r==null)return 0;if(r.a=0,r.sc="OK",s==null)return Ke(r,2,"null VP8Io passed to VP8GetHeaders()");var u=s.data,g=s.w,v=s.ha;if(4>v)return Ke(r,7,"Truncated header.");var w=u[g+0]|u[g+1]<<8|u[g+2]<<16,_=r.Od;if(_.Rb=!(1&w),_.td=w>>1&7,_.yd=w>>4&1,_.ub=w>>5,3<_.td)return Ke(r,3,"Incorrect keyframe parameters.");if(!_.yd)return Ke(r,4,"Frame not displayable.");g+=3,v-=3;var x=r.Kc;if(_.Rb){if(7>v)return Ke(r,7,"cannot parse picture header");if(!So(u,g,v))return Ke(r,3,"Bad code word");x.c=16383&(u[g+4]<<8|u[g+3]),x.Td=u[g+4]>>6,x.i=16383&(u[g+6]<<8|u[g+5]),x.Ud=u[g+6]>>6,g+=7,v-=7,r.za=x.c+15>>4,r.Ub=x.i+15>>4,s.width=x.c,s.height=x.i,s.Da=0,s.j=0,s.v=0,s.va=s.width,s.o=s.height,s.da=0,s.ib=s.width,s.hb=s.height,s.U=s.width,s.T=s.height,a((w=r.Pa).jb,0,255,w.jb.length),n((w=r.Qa)!=null),w.Cb=0,w.Bb=0,w.Fb=1,a(w.Zb,0,0,w.Zb.length),a(w.Lb,0,0,w.Lb)}if(_.ub>v)return Ke(r,7,"bad partition length");ft(w=r.m,u,g,_.ub),g+=_.ub,v-=_.ub,_.Rb&&(x.Ld=at(w),x.Kd=at(w)),x=r.Qa;var S,I=r.Pa;if(n(w!=null),n(x!=null),x.Cb=at(w),x.Cb){if(x.Bb=at(w),at(w)){for(x.Fb=at(w),S=0;4>S;++S)x.Zb[S]=at(w)?nt(w,7):0;for(S=0;4>S;++S)x.Lb[S]=at(w)?nt(w,6):0}if(x.Bb)for(S=0;3>S;++S)I.jb[S]=at(w)?pt(w,8):255}else x.Bb=0;if(w.Ka)return Ke(r,3,"cannot parse segment header");if((x=r.ed).zd=at(w),x.Tb=pt(w,6),x.wb=pt(w,3),x.Pc=at(w),x.Pc&&at(w)){for(I=0;4>I;++I)at(w)&&(x.vd[I]=nt(w,6));for(I=0;4>I;++I)at(w)&&(x.od[I]=nt(w,6))}if(r.L=x.Tb==0?0:x.zd?1:2,w.Ka)return Ke(r,3,"cannot parse filter header");var H=v;if(v=S=g,g=S+H,x=H,r.Xb=(1<x&&(J=x),ft(r.Jc[+H],u,S,J),S+=J,x-=J,v+=3}ft(r.Jc[+I],u,S,x),u=SJ;++J){if(H.Cb){var C=H.Zb[J];H.Fb||(C+=u)}else{if(0>16,8>W.Eb[1]&&(W.Eb[1]=8),W.Qc[0]=il[fi(C+I,117)],W.Qc[1]=rl[fi(C+S,127)],W.lc=C+S}if(!_.Rb)return Ke(r,4,"Not a key frame.");for(at(w),_=r.Pa,u=0;4>u;++u){for(v=0;8>v;++v)for(g=0;3>g;++g)for(x=0;11>x;++x)I=dt(w,Nu[u][v][g][x])?pt(w,8):xu[u][v][g][x],_.Wc[u][v].Yb[g][x]=I;for(v=0;17>v;++v)_.Xc[u][v]=_.Wc[u][Lu[v]]}return r.kc=at(w),r.kc&&(r.Bd=pt(w,8)),r.cb=1}function Vr(r,s,u,g,v,w,_){var x=s[v].Yb[u];for(u=0;16>v;++v){if(!dt(r,x[u+0]))return v;for(;!dt(r,x[u+1]);)if(x=s[++v].Yb[0],u=0,v==16)return 16;var S=s[v+1].Yb;if(dt(r,x[u+2])){var I=r,H=0;if(dt(I,(C=x)[(J=u)+3]))if(dt(I,C[J+6])){for(x=0,J=2*(H=dt(I,C[J+8]))+(C=dt(I,C[J+9+H])),H=0,C=_u[J];C[x];++x)H+=H+dt(I,C[x]);H+=3+(8<(I=r).b&&rt(I);var J,C=I.b,W=(J=I.Ca>>1)-(I.I>>C)>>31;--I.b,I.Ca+=W,I.Ca|=1,I.I-=(J+1&W)<>3),r[s+u+32*g]=-256&v?0>v?0:255:v}function Zr(r,s,u,g,v,w){Tn(r,s,0,u,g+v),Tn(r,s,1,u,g+w),Tn(r,s,2,u,g-w),Tn(r,s,3,u,g-v)}function Ei(r){return(20091*r>>16)+r}function ln(r,s,u,g){var v,w=0,_=o(16);for(v=0;4>v;++v){var x=r[s+0]+r[s+8],S=r[s+0]-r[s+8],I=(35468*r[s+4]>>16)-Ei(r[s+12]),H=Ei(r[s+4])+(35468*r[s+12]>>16);_[w+0]=x+H,_[w+1]=S+I,_[w+2]=S-I,_[w+3]=x-H,w+=4,s++}for(v=w=0;4>v;++v)x=(r=_[w+0]+4)+_[w+8],S=r-_[w+8],I=(35468*_[w+4]>>16)-Ei(_[w+12]),Tn(u,g,0,0,x+(H=Ei(_[w+4])+(35468*_[w+12]>>16))),Tn(u,g,1,0,S+I),Tn(u,g,2,0,S-I),Tn(u,g,3,0,x-H),w++,g+=32}function ko(r,s,u,g){var v=r[s+0]+4,w=35468*r[s+4]>>16,_=Ei(r[s+4]),x=35468*r[s+1]>>16;Zr(u,g,0,v+_,r=Ei(r[s+1]),x),Zr(u,g,1,v+w,r,x),Zr(u,g,2,v-w,r,x),Zr(u,g,3,v-_,r,x)}function Rs(r,s,u,g,v){ln(r,s,u,g),v&&ln(r,s+16,u,g+4)}function Bs(r,s,u,g){Ri(r,s+0,u,g,1),Ri(r,s+32,u,g+128,1)}function js(r,s,u,g){var v;for(r=r[s+0]+4,v=0;4>v;++v)for(s=0;4>s;++s)Tn(u,g,s,v,r)}function di(r,s,u,g){r[s+0]&&mn(r,s+0,u,g),r[s+16]&&mn(r,s+16,u,g+4),r[s+32]&&mn(r,s+32,u,g+128),r[s+48]&&mn(r,s+48,u,g+128+4)}function Po(r,s,u,g){var v,w=o(16);for(v=0;4>v;++v){var _=r[s+0+v]+r[s+12+v],x=r[s+4+v]+r[s+8+v],S=r[s+4+v]-r[s+8+v],I=r[s+0+v]-r[s+12+v];w[0+v]=_+x,w[8+v]=_-x,w[4+v]=I+S,w[12+v]=I-S}for(v=0;4>v;++v)_=(r=w[0+4*v]+3)+w[3+4*v],x=w[1+4*v]+w[2+4*v],S=w[1+4*v]-w[2+4*v],I=r-w[3+4*v],u[g+0]=_+x>>3,u[g+16]=I+S>>3,u[g+32]=_-x>>3,u[g+48]=I-S>>3,g+=64}function $r(r,s,u){var g,v=s-32,w=Rn,_=255-r[v-1];for(g=0;gu;++u)i(r,s+32*u,r,s-32,16)}function Us(r,s){var u;for(u=16;0g;++g)a(s,u+32*g,r,16)}function Eo(r,s){var u,g=16;for(u=0;16>u;++u)g+=r[s-1+32*u]+r[s+u-32];Hi(g>>5,r,s)}function Wi(r,s){var u,g=8;for(u=0;16>u;++u)g+=r[s-1+32*u];Hi(g>>4,r,s)}function qs(r,s){var u,g=8;for(u=0;16>u;++u)g+=r[s+u-32];Hi(g>>4,r,s)}function pr(r,s){Hi(128,r,s)}function $t(r,s,u){return r+2*s+u+2>>2}function zs(r,s){var u,g=s-32;for(g=new Uint8Array([$t(r[g-1],r[g+0],r[g+1]),$t(r[g+0],r[g+1],r[g+2]),$t(r[g+1],r[g+2],r[g+3]),$t(r[g+2],r[g+3],r[g+4])]),u=0;4>u;++u)i(r,s+32*u,g,0,g.length)}function Hs(r,s){var u=r[s-1],g=r[s-1+32],v=r[s-1+64],w=r[s-1+96];xt(r,s+0,16843009*$t(r[s-1-32],u,g)),xt(r,s+32,16843009*$t(u,g,v)),xt(r,s+64,16843009*$t(g,v,w)),xt(r,s+96,16843009*$t(v,w,w))}function Ws(r,s){var u,g=4;for(u=0;4>u;++u)g+=r[s+u-32]+r[s-1+32*u];for(g>>=3,u=0;4>u;++u)a(r,s+32*u,g,4)}function Gs(r,s){var u=r[s-1+0],g=r[s-1+32],v=r[s-1+64],w=r[s-1-32],_=r[s+0-32],x=r[s+1-32],S=r[s+2-32],I=r[s+3-32];r[s+0+96]=$t(g,v,r[s-1+96]),r[s+1+96]=r[s+0+64]=$t(u,g,v),r[s+2+96]=r[s+1+64]=r[s+0+32]=$t(w,u,g),r[s+3+96]=r[s+2+64]=r[s+1+32]=r[s+0+0]=$t(_,w,u),r[s+3+64]=r[s+2+32]=r[s+1+0]=$t(x,_,w),r[s+3+32]=r[s+2+0]=$t(S,x,_),r[s+3+0]=$t(I,S,x)}function Vs(r,s){var u=r[s+1-32],g=r[s+2-32],v=r[s+3-32],w=r[s+4-32],_=r[s+5-32],x=r[s+6-32],S=r[s+7-32];r[s+0+0]=$t(r[s+0-32],u,g),r[s+1+0]=r[s+0+32]=$t(u,g,v),r[s+2+0]=r[s+1+32]=r[s+0+64]=$t(g,v,w),r[s+3+0]=r[s+2+32]=r[s+1+64]=r[s+0+96]=$t(v,w,_),r[s+3+32]=r[s+2+64]=r[s+1+96]=$t(w,_,x),r[s+3+64]=r[s+2+96]=$t(_,x,S),r[s+3+96]=$t(x,S,S)}function Ii(r,s){var u=r[s-1+0],g=r[s-1+32],v=r[s-1+64],w=r[s-1-32],_=r[s+0-32],x=r[s+1-32],S=r[s+2-32],I=r[s+3-32];r[s+0+0]=r[s+1+64]=w+_+1>>1,r[s+1+0]=r[s+2+64]=_+x+1>>1,r[s+2+0]=r[s+3+64]=x+S+1>>1,r[s+3+0]=S+I+1>>1,r[s+0+96]=$t(v,g,u),r[s+0+64]=$t(g,u,w),r[s+0+32]=r[s+1+96]=$t(u,w,_),r[s+1+32]=r[s+2+96]=$t(w,_,x),r[s+2+32]=r[s+3+96]=$t(_,x,S),r[s+3+32]=$t(x,S,I)}function Ci(r,s){var u=r[s+0-32],g=r[s+1-32],v=r[s+2-32],w=r[s+3-32],_=r[s+4-32],x=r[s+5-32],S=r[s+6-32],I=r[s+7-32];r[s+0+0]=u+g+1>>1,r[s+1+0]=r[s+0+64]=g+v+1>>1,r[s+2+0]=r[s+1+64]=v+w+1>>1,r[s+3+0]=r[s+2+64]=w+_+1>>1,r[s+0+32]=$t(u,g,v),r[s+1+32]=r[s+0+96]=$t(g,v,w),r[s+2+32]=r[s+1+96]=$t(v,w,_),r[s+3+32]=r[s+2+96]=$t(w,_,x),r[s+3+64]=$t(_,x,S),r[s+3+96]=$t(x,S,I)}function Zs(r,s){var u=r[s-1+0],g=r[s-1+32],v=r[s-1+64],w=r[s-1+96];r[s+0+0]=u+g+1>>1,r[s+2+0]=r[s+0+32]=g+v+1>>1,r[s+2+32]=r[s+0+64]=v+w+1>>1,r[s+1+0]=$t(u,g,v),r[s+3+0]=r[s+1+32]=$t(g,v,w),r[s+3+32]=r[s+1+64]=$t(v,w,w),r[s+3+64]=r[s+2+64]=r[s+0+96]=r[s+1+96]=r[s+2+96]=r[s+3+96]=w}function $s(r,s){var u=r[s-1+0],g=r[s-1+32],v=r[s-1+64],w=r[s-1+96],_=r[s-1-32],x=r[s+0-32],S=r[s+1-32],I=r[s+2-32];r[s+0+0]=r[s+2+32]=u+_+1>>1,r[s+0+32]=r[s+2+64]=g+u+1>>1,r[s+0+64]=r[s+2+96]=v+g+1>>1,r[s+0+96]=w+v+1>>1,r[s+3+0]=$t(x,S,I),r[s+2+0]=$t(_,x,S),r[s+1+0]=r[s+3+32]=$t(u,_,x),r[s+1+32]=r[s+3+64]=$t(g,u,_),r[s+1+64]=r[s+3+96]=$t(v,g,u),r[s+1+96]=$t(w,v,g)}function Kr(r,s){var u;for(u=0;8>u;++u)i(r,s+32*u,r,s-32,8)}function Ta(r,s){var u;for(u=0;8>u;++u)a(r,s,r[s-1],8),s+=32}function pi(r,s,u){var g;for(g=0;8>g;++g)a(s,u+32*g,r,8)}function Ys(r,s){var u,g=8;for(u=0;8>u;++u)g+=r[s+u-32]+r[s-1+32*u];pi(g>>4,r,s)}function Xr(r,s){var u,g=4;for(u=0;8>u;++u)g+=r[s+u-32];pi(g>>3,r,s)}function Ks(r,s){var u,g=4;for(u=0;8>u;++u)g+=r[s-1+32*u];pi(g>>3,r,s)}function Ra(r,s){pi(128,r,s)}function Gi(r,s,u){var g=r[s-u],v=r[s+0],w=3*(v-g)+Js[1020+r[s-2*u]-r[s+u]],_=Mo[112+(w+4>>3)];r[s-u]=Rn[255+g+Mo[112+(w+3>>3)]],r[s+0]=Rn[255+v-_]}function Ba(r,s,u,g){var v=r[s+0],w=r[s+u];return $n[255+r[s-2*u]-r[s-u]]>g||$n[255+w-v]>g}function gr(r,s,u,g){return 4*$n[255+r[s-u]-r[s+0]]+$n[255+r[s-2*u]-r[s+u]]<=g}function ja(r,s,u,g,v){var w=r[s-3*u],_=r[s-2*u],x=r[s-u],S=r[s+0],I=r[s+u],H=r[s+2*u],J=r[s+3*u];return 4*$n[255+x-S]+$n[255+_-I]>g?0:$n[255+r[s-4*u]-w]<=v&&$n[255+w-_]<=v&&$n[255+_-x]<=v&&$n[255+J-H]<=v&&$n[255+H-I]<=v&&$n[255+I-S]<=v}function Jr(r,s,u,g){var v=2*g+1;for(g=0;16>g;++g)gr(r,s+g,u,v)&&Gi(r,s+g,u)}function Ma(r,s,u,g){var v=2*g+1;for(g=0;16>g;++g)gr(r,s+g*u,1,v)&&Gi(r,s+g*u,1)}function Qr(r,s,u,g){var v;for(v=3;0>7,ht=18*ct+63>>7,ct=9*ct+63>>7;S[I-3*H]=Rn[255+S[I-3*H]+ct],S[I-2*H]=Rn[255+J+ht],S[I-H]=Rn[255+C+X],S[I+0]=Rn[255+W-X],S[I+H]=Rn[255+K-ht],S[I+2*H]=Rn[255+st-ct]}s+=g}}function Oi(r,s,u,g,v,w,_,x){for(w=2*w+1;0>3)],st=Mo[112+(st+3>>3)],X=K+1>>1;S[I-2*H]=Rn[255+S[I-2*H]+X],S[I-H]=Rn[255+J+st],S[I+0]=Rn[255+C-K],S[I+H]=Rn[255+W-X]}s+=g}}function Co(r,s,u,g,v,w){Fi(r,s,u,1,16,g,v,w)}function Fo(r,s,u,g,v,w){Fi(r,s,1,u,16,g,v,w)}function Oo(r,s,u,g,v,w){var _;for(_=3;0<_;--_)Oi(r,s+=4*u,u,1,16,g,v,w)}function mr(r,s,u,g,v,w){var _;for(_=3;0<_;--_)Oi(r,s+=4,1,u,16,g,v,w)}function To(r,s,u,g,v,w,_,x){Fi(r,s,v,1,8,w,_,x),Fi(u,g,v,1,8,w,_,x)}function h(r,s,u,g,v,w,_,x){Fi(r,s,1,v,8,w,_,x),Fi(u,g,1,v,8,w,_,x)}function b(r,s,u,g,v,w,_,x){Oi(r,s+4*v,v,1,8,w,_,x),Oi(u,g+4*v,v,1,8,w,_,x)}function E(r,s,u,g,v,w,_,x){Oi(r,s+4,1,v,8,w,_,x),Oi(u,g+4,1,v,8,w,_,x)}function M(){this.ba=new le,this.ec=[],this.cc=[],this.Mc=[],this.Dc=this.Nc=this.dc=this.fc=0,this.Oa=new _e,this.memory=0,this.Ib="OutputFunc",this.Jb="OutputAlphaFunc",this.Nd="OutputRowFunc"}function V(){this.data=[],this.offset=this.kd=this.ha=this.w=0,this.na=[],this.xa=this.gb=this.Ja=this.Sa=this.P=0}function ot(){this.nc=this.Ea=this.b=this.hc=0,this.K=[],this.w=0}function gt(){this.ua=0,this.Wa=new ae,this.vb=new ae,this.md=this.xc=this.wc=0,this.vc=[],this.Wb=0,this.Ya=new it,this.yc=new U}function Ft(){this.xb=this.a=0,this.l=new Gr,this.ca=new le,this.V=[],this.Ba=0,this.Ta=[],this.Ua=0,this.m=new R,this.Pb=0,this.wd=new R,this.Ma=this.$=this.C=this.i=this.c=this.xd=0,this.s=new gt,this.ab=0,this.gc=f(4,ot),this.Oc=0}function Ct(){this.Lc=this.Z=this.$a=this.i=this.c=0,this.l=new Gr,this.ic=0,this.ca=[],this.tb=0,this.qd=null,this.rd=0}function Kt(r,s,u,g,v,w,_){for(r=r==null?0:r[s+0],s=0;s<_;++s)v[w+s]=r+u[g+s]&255,r=v[w+s]}function te(r,s,u,g,v,w,_){var x;if(r==null)Kt(null,null,u,g,v,w,_);else for(x=0;x<_;++x)v[w+x]=r[s+x]+u[g+x]&255}function de(r,s,u,g,v,w,_){if(r==null)Kt(null,null,u,g,v,w,_);else{var x,S=r[s+0],I=S,H=S;for(x=0;x<_;++x)I=H+(S=r[s+x])-I,H=u[g+x]+(-256&I?0>I?0:255:I)&255,I=S,v[w+x]=H}}function Xe(r,s,u,g){var v=s.width,w=s.o;if(n(r!=null&&s!=null),0>u||0>=g||u+g>w)return null;if(!r.Cc){if(r.ga==null){var _;if(r.ga=new Ct,(_=r.ga==null)||(_=s.width*s.o,n(r.Gb.length==0),r.Gb=o(_),r.Uc=0,r.Gb==null?_=0:(r.mb=r.Gb,r.nb=r.Uc,r.rc=null,_=1),_=!_),!_){_=r.ga;var x=r.Fa,S=r.P,I=r.qc,H=r.mb,J=r.nb,C=S+1,W=I-1,K=_.l;if(n(x!=null&&H!=null&&s!=null),Ji[0]=null,Ji[1]=Kt,Ji[2]=te,Ji[3]=de,_.ca=H,_.tb=J,_.c=s.width,_.i=s.height,n(0<_.c&&0<_.i),1>=I)s=0;else if(_.$a=3&x[S+0],_.Z=x[S+0]>>2&3,_.Lc=x[S+0]>>4&3,S=x[S+0]>>6&3,0>_.$a||1<_.$a||4<=_.Z||1<_.Lc||S)s=0;else if(K.put=Vt,K.ac=li,K.bc=ki,K.ma=_,K.width=s.width,K.height=s.height,K.Da=s.Da,K.v=s.v,K.va=s.va,K.j=s.j,K.o=s.o,_.$a)t:{n(_.$a==1),s=ur();e:for(;;){if(s==null){s=0;break t}if(n(_!=null),_.mc=s,s.c=_.c,s.i=_.i,s.l=_.l,s.l.ma=_,s.l.width=_.c,s.l.height=_.i,s.a=0,ut(s.m,x,C,W),!ci(_.c,_.i,1,s,null)||(s.ab==1&&s.gc[0].hc==3&&Jn(s.s)?(_.ic=1,x=s.c*s.i,s.Ta=null,s.Ua=0,s.V=o(x),s.Ba=0,s.V==null?(s.a=1,s=0):s=1):(_.ic=0,s=dr(s,_.c)),!s))break e;s=1;break t}_.mc=null,s=0}else s=W>=_.c*_.i;_=!s}if(_)return null;r.ga.Lc!=1?r.Ga=0:g=w-u}n(r.ga!=null),n(u+g<=w);t:{if(s=(x=r.ga).c,w=x.l.o,x.$a==0){if(C=r.rc,W=r.Vc,K=r.Fa,S=r.P+1+u*s,I=r.mb,H=r.nb+u*s,n(S<=r.P+r.qc),x.Z!=0)for(n(Ji[x.Z]!=null),_=0;_=s)s=1;else if(x.ic||Me(),x.ic){x=_.V,C=_.Ba,W=_.c;var st=_.i,X=(K=1,S=_.$/W,I=_.$%W,H=_.m,J=_.s,_.$),ht=W*st,ct=W*s,wt=J.wc,bt=X(st=De(bt.G[0],bt.H[0],H)))x[C+X]=st,++X,++I>=W&&(I=0,++S<=s&&!(S%16)&&Qn(_,S));else{if(!(280>st)){K=0;break e}st=Hn(st-256,H);var Bt,Pt=De(bt.G[4],bt.H[4],H);if(Q(H),!(X>=(Pt=Wn(W,Pt=Hn(Pt,H)))&&ht-X>=st)){K=0;break e}for(Bt=0;Bt=W;)I-=W,++S<=s&&!(S%16)&&Qn(_,S);Xs?s:S);break e}!K||H.h&&X=w&&(r.Cc=1),g=1}if(!g)return null;if(r.Cc&&((g=r.ga)!=null&&(g.mc=null),r.ga=null,0>23,x[S+4*_+1]=x[S+4*_+1]*J>>23,x[S+4*_+2]=x[S+4*_+2]*J>>23)}s+=w}}function Ae(r,s,u,g,v){for(;0>4)*S>>16;r[s+2*w+0]=(240&_|_>>4)*S>>16&240|(15&_|_<<4)*S>>16>>4&15,r[s+2*w+1]=240&I|x}s+=v}}function Fe(r,s,u,g,v,w,_,x){var S,I,H=255;for(I=0;I>8}function Me(){Va=Le,bh=Ae,vh=Fe,wh=je}function pn(r,s,u){z[r]=function(g,v,w,_,x,S,I,H,J,C,W,K,st,X,ht,ct,wt){var bt,Bt=wt-1>>1,Pt=x[S+0]|I[H+0]<<16,ie=J[C+0]|W[K+0]<<16;n(g!=null);var Ot=3*Pt+ie+131074>>2;for(s(g[v+0],255&Ot,Ot>>16,st,X),w!=null&&(Ot=3*ie+Pt+131074>>2,s(w[_+0],255&Ot,Ot>>16,ht,ct)),bt=1;bt<=Bt;++bt){var ue=x[S+bt]|I[H+bt]<<16,tn=J[C+bt]|W[K+bt]<<16,re=Pt+ue+ie+tn+524296,Tt=re+2*(ue+ie)>>3;Ot=Tt+Pt>>1,Pt=(re=re+2*(Pt+tn)>>3)+ue>>1,s(g[v+2*bt-1],255&Ot,Ot>>16,st,X+(2*bt-1)*u),s(g[v+2*bt-0],255&Pt,Pt>>16,st,X+(2*bt-0)*u),w!=null&&(Ot=re+ie>>1,Pt=Tt+tn>>1,s(w[_+2*bt-1],255&Ot,Ot>>16,ht,ct+(2*bt-1)*u),s(w[_+2*bt+0],255&Pt,Pt>>16,ht,ct+(2*bt+0)*u)),Pt=ue,ie=tn}1&wt||(Ot=3*Pt+ie+131074>>2,s(g[v+wt-1],255&Ot,Ot>>16,st,X+(wt-1)*u),w!=null&&(Ot=3*ie+Pt+131074>>2,s(w[_+wt-1],255&Ot,Ot>>16,ht,ct+(wt-1)*u)))}}function Ti(){Yn[Do]=ku,Yn[Uo]=Ih,Yn[Lh]=Pu,Yn[qo]=Ch,Yn[zo]=Fh,Yn[Qs]=Oh,Yn[Sh]=Eu,Yn[tl]=Ih,Yn[el]=Ch,Yn[Ho]=Fh,Yn[nl]=Oh}function Da(r){return r&~Iu?0>r?0:255:r>>Th}function br(r,s){return Da((19077*r>>8)+(26149*s>>8)-14234)}function vr(r,s,u){return Da((19077*r>>8)-(6419*s>>8)-(13320*u>>8)+8708)}function Vi(r,s){return Da((19077*r>>8)+(33050*s>>8)-17685)}function wr(r,s,u,g,v){g[v+0]=br(r,u),g[v+1]=vr(r,s,u),g[v+2]=Vi(r,s)}function ta(r,s,u,g,v){g[v+0]=Vi(r,s),g[v+1]=vr(r,s,u),g[v+2]=br(r,u)}function ea(r,s,u,g,v){var w=vr(r,s,u);s=w<<3&224|Vi(r,s)>>3,g[v+0]=248&br(r,u)|w>>5,g[v+1]=s}function gn(r,s,u,g,v){var w=240&Vi(r,s)|15;g[v+0]=240&br(r,u)|vr(r,s,u)>>4,g[v+1]=w}function _r(r,s,u,g,v){g[v+0]=255,wr(r,s,u,g,v+1)}function yr(r,s,u,g,v){ta(r,s,u,g,v),g[v+3]=255}function Ua(r,s,u,g,v){wr(r,s,u,g,v),g[v+3]=255}function gi(r,s,u){z[r]=function(g,v,w,_,x,S,I,H,J){for(var C=H+(-2&J)*u;H!=C;)s(g[v+0],w[_+0],x[S+0],I,H),s(g[v+1],w[_+0],x[S+0],I,H+u),v+=2,++_,++S,H+=2*u;1&J&&s(g[v+0],w[_+0],x[S+0],I,H)}}function xn(r,s,u){return u==0?r==0?s==0?6:5:s==0?4:0:u}function Ro(r,s,u,g,v){switch(r>>>30){case 3:Ri(s,u,g,v,0);break;case 2:Ki(s,u,g,v);break;case 1:mn(s,u,g,v)}}function na(r,s){var u,g,v=s.M,w=s.Nb,_=r.oc,x=r.pc+40,S=r.oc,I=r.pc+584,H=r.oc,J=r.pc+600;for(u=0;16>u;++u)_[x+32*u-1]=129;for(u=0;8>u;++u)S[I+32*u-1]=129,H[J+32*u-1]=129;for(0u;++u)i(_,x+32*u-4,_,x+32*u+12,4);for(u=-1;8>u;++u)i(S,I+32*u-4,S,I+32*u+4,4),i(H,J+32*u-4,H,J+32*u+4,4)}var W=r.Gd,K=r.Hd+g,st=C.ad,X=C.Hc;if(0=r.za-1?a(ht,ct,W[K].y[15],4):i(ht,ct,W[K+1].y,0,4)),u=0;4>u;u++)ht[ct+128+u]=ht[ct+256+u]=ht[ct+384+u]=ht[ct+0+u];for(u=0;16>u;++u,X<<=2)ht=_,ct=x+Bh[u],ni[C.Ob[u]](ht,ct),Ro(X,st,16*+u,ht,ct)}else if(ht=xn(g,v,C.Ob[0]),Xi[ht](_,x),X!=0)for(u=0;16>u;++u,X<<=2)Ro(X,st,16*+u,_,x+Bh[u]);for(u=C.Gc,ht=xn(g,v,C.Dd),ji[ht](S,I),ji[ht](H,J),X=st,ht=S,ct=I,255&(C=0|u)&&(170&C?sa(X,256,ht,ct):bi(X,256,ht,ct)),C=H,X=J,255&(u>>=8)&&(170&u?sa(st,320,C,X):bi(st,320,C,X)),vu;++u)i(W,K+u*r.R,_,x+32*u,16);for(u=0;8>u;++u)i(st,C+u*r.B,S,I+32*u,8),i(X,ht+u*r.B,H,J+32*u,8)}}function Bo(r,s,u,g,v,w,_,x,S){var I=[0],H=[0],J=0,C=S!=null?S.kd:0,W=S??new V;if(r==null||12>u)return 7;W.data=r,W.w=s,W.ha=u,s=[s],u=[u],W.gb=[W.gb];t:{var K=s,st=u,X=W.gb;if(n(r!=null),n(st!=null),n(X!=null),X[0]=0,12<=st[0]&&!e(r,K[0],"RIFF")){if(e(r,K[0]+8,"WEBP")){X=3;break t}var ht=zt(r,K[0]+4);if(12>ht||4294967286st[0]-8){X=7;break t}X[0]=ht,K[0]+=12,st[0]-=12}X=0}if(X!=0)return X;for(ht=0X[0])X=7;else{if(!e(ct,st[0],"VP8X")){if(zt(ct,st[0]+4)!=10){X=3;break t}if(18>X[0]){X=7;break t}var Pt=zt(ct,st[0]+8),ie=1+kt(ct,st[0]+12);if(2147483648<=ie*(ct=1+kt(ct,st[0]+15))){X=3;break t}Bt!=null&&(Bt[0]=Pt),wt!=null&&(wt[0]=ie),bt!=null&&(bt[0]=ct),st[0]+=18,X[0]-=18,Ot[0]=1}X=0}}if(J=J[0],K=K[0],X!=0)return X;if(st=!!(2&K),!ht&&J)return 3;if(w!=null&&(w[0]=!!(16&K)),_!=null&&(_[0]=st),x!=null&&(x[0]=0),_=I[0],K=H[0],J&&st&&S==null){X=0;break}if(4>u){X=7;break}if(ht&&J||!ht&&!J&&!e(r,s[0],"ALPH")){u=[u],W.na=[W.na],W.P=[W.P],W.Sa=[W.Sa];t:{Pt=r,X=s,ht=u;var Ot=W.gb;wt=W.na,bt=W.P,Bt=W.Sa,ie=22,n(Pt!=null),n(ht!=null),ct=X[0];var ue=ht[0];for(n(wt!=null),n(Bt!=null),wt[0]=null,bt[0]=null,Bt[0]=0;;){if(X[0]=ct,ht[0]=ue,8>ue){X=7;break t}var tn=zt(Pt,ct+4);if(4294967286Ot){X=3;break t}if(!e(Pt,ct,"VP8 ")||!e(Pt,ct,"VP8L")){X=0;break t}if(ue[0]ht[0])X=7;else{if(ct||ie){if(Ot=zt(Ot,Pt+4),12<=wt&&Ot>wt-12){X=3;break t}if(C&&Ot>ht[0]-8){X=7;break t}bt[0]=Ot,X[0]+=8,ht[0]-=8,Bt[0]=ie}else Bt[0]=5<=ht[0]&&Ot[Pt+0]==47&&!(Ot[Pt+4]>>5),bt[0]=ht[0];X=0}if(u=u[0],W.Ja=W.Ja[0],W.xa=W.xa[0],s=s[0],X!=0)break;if(4294967286u){X=7;break}x=_,C=K,st=w,r==null||5>u?r=0:5<=u&&r[s+0]==47&&!(r[s+4]>>5)?(ht=[0],Ot=[0],wt=[0],ut(bt=new R,r,s,u),Pi(bt,ht,Ot,wt)?(x!=null&&(x[0]=ht[0]),C!=null&&(C[0]=Ot[0]),st!=null&&(st[0]=wt[0]),r=1):r=0):r=0}else{if(10>u){X=7;break}x=K,r==null||10>u||!So(r,s+3,u-3)?r=0:(C=r[s+0]|r[s+1]<<8|r[s+2]<<16,st=16383&(r[s+7]<<8|r[s+6]),r=16383&(r[s+9]<<8|r[s+8]),1&C||3<(C>>1&7)||!(C>>4&1)||C>>5>=W.Ja||!st||!r?r=0:(_&&(_[0]=st),x&&(x[0]=r),r=1))}if(!r||(_=_[0],K=K[0],J&&(I[0]!=_||H[0]!=K)))return 3;S!=null&&(S[0]=W,S.offset=s-S.w,n(4294967286>s-S.w),n(S.offset==S.ha-u));break}return X==0||X==7&&J&&S==null?(w!=null&&(w[0]|=W.na!=null&&0u||(w&=-2,_&=-2),0>w||0>_||0>=x||0>=S||w+x>g||_+S>v))return 0;if(s.v=w,s.j=_,s.va=w+x,s.o=_+S,s.U=x,s.T=S,s.da=r!=null&&0r.S){var s=r.f.RGBA;s.fb+=(r.height-1)*s.A,s.A=-s.A}else s=r.f.kb,r=r.height,s.O+=(r-1)*s.fa,s.fa=-s.fa,s.N+=(r-1>>1)*s.Ab,s.Ab=-s.Ab,s.W+=(r-1>>1)*s.Db,s.Db=-s.Db,s.F!=null&&(s.J+=(r-1)*s.lb,s.lb=-s.lb);return 0}function qa(r,s,u,g){if(g==null||0>=r||0>=s)return 2;if(u!=null){if(u.Da){var v=u.cd,w=u.bd,_=-2&u.v,x=-2&u.j;if(0>_||0>x||0>=v||0>=w||_+v>r||x+w>s)return 2;r=v,s=w}if(u.da){if(!Ht(r,s,v=[u.ib],w=[u.hb]))return 2;r=v[0],s=w[0]}}g.width=r,g.height=s;t:{var S=g.width,I=g.height;if(r=g.S,0>=S||0>=I||!(r>=Do&&13>r))r=2;else{if(0>=g.Rd&&g.sd==null){_=w=v=s=0;var H=(x=S*jh[r])*I;if(11>r||(w=(I+1)/2*(s=(S+1)/2),r==12&&(_=(v=S)*I)),(I=o(H+2*w+_))==null){r=1;break t}g.sd=I,11>r?((S=g.f.RGBA).eb=I,S.fb=0,S.A=x,S.size=H):((S=g.f.kb).y=I,S.O=0,S.fa=x,S.Fd=H,S.f=I,S.N=0+H,S.Ab=s,S.Cd=w,S.ea=I,S.W=0+H+w,S.Db=s,S.Ed=w,r==12&&(S.F=I,S.J=0+H+2*w),S.Tc=_,S.lb=v)}if(s=1,v=g.S,w=g.width,_=g.height,v>=Do&&13>v)if(11>v)r=g.f.RGBA,s&=(x=Math.abs(r.A))*(_-1)+w<=r.size,s&=x>=w*jh[v],s&=r.eb!=null;else{r=g.f.kb,x=(w+1)/2,H=(_+1)/2,S=Math.abs(r.fa),I=Math.abs(r.Ab);var J=Math.abs(r.Db),C=Math.abs(r.lb),W=C*(_-1)+w;s&=S*(_-1)+w<=r.Fd,s&=I*(H-1)+x<=r.Cd,s=(s&=J*(H-1)+x<=r.Ed)&S>=w&I>=x&J>=x,s&=r.y!=null,s&=r.f!=null,s&=r.ea!=null,v==12&&(s&=C>=w,s&=W<=r.Tc,s&=r.F!=null)}else s=0;r=s?0:2}}return r!=0||u!=null&&u.fd&&(r=xr(g)),r}var ia=64,Ar=[0,1,3,7,15,31,63,127,255,511,1023,2047,4095,8191,16383,32767,65535,131071,262143,524287,1048575,2097151,4194303,8388607,16777215],za=24,An=32,En=8,ra=[0,0,1,1,2,2,2,2,3,3,3,3,3,3,3,3,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,4,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,6,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7,7];Et("Predictor0","PredictorAdd0"),z.Predictor0=function(){return 4278190080},z.Predictor1=function(r){return r},z.Predictor2=function(r,s,u){return s[u+0]},z.Predictor3=function(r,s,u){return s[u+1]},z.Predictor4=function(r,s,u){return s[u-1]},z.Predictor5=function(r,s,u){return Dt(Dt(r,s[u+1]),s[u+0])},z.Predictor6=function(r,s,u){return Dt(r,s[u-1])},z.Predictor7=function(r,s,u){return Dt(r,s[u+0])},z.Predictor8=function(r,s,u){return Dt(s[u-1],s[u+0])},z.Predictor9=function(r,s,u){return Dt(s[u+0],s[u+1])},z.Predictor10=function(r,s,u){return Dt(Dt(r,s[u-1]),Dt(s[u+0],s[u+1]))},z.Predictor11=function(r,s,u){var g=s[u+0];return 0>=Jt(g>>24&255,r>>24&255,(s=s[u-1])>>24&255)+Jt(g>>16&255,r>>16&255,s>>16&255)+Jt(g>>8&255,r>>8&255,s>>8&255)+Jt(255&g,255&r,255&s)?g:r},z.Predictor12=function(r,s,u){var g=s[u+0];return(we((r>>24&255)+(g>>24&255)-((s=s[u-1])>>24&255))<<24|we((r>>16&255)+(g>>16&255)-(s>>16&255))<<16|we((r>>8&255)+(g>>8&255)-(s>>8&255))<<8|we((255&r)+(255&g)-(255&s)))>>>0},z.Predictor13=function(r,s,u){var g=s[u-1];return(he((r=Dt(r,s[u+0]))>>24&255,g>>24&255)<<24|he(r>>16&255,g>>16&255)<<16|he(r>>8&255,g>>8&255)<<8|he(255&r,255&g))>>>0};var Zi=z.PredictorAdd0;z.PredictorAdd1=fe,Et("Predictor2","PredictorAdd2"),Et("Predictor3","PredictorAdd3"),Et("Predictor4","PredictorAdd4"),Et("Predictor5","PredictorAdd5"),Et("Predictor6","PredictorAdd6"),Et("Predictor7","PredictorAdd7"),Et("Predictor8","PredictorAdd8"),Et("Predictor9","PredictorAdd9"),Et("Predictor10","PredictorAdd10"),Et("Predictor11","PredictorAdd11"),Et("Predictor12","PredictorAdd12"),Et("Predictor13","PredictorAdd13");var $i=z.PredictorAdd2;jt("ColorIndexInverseTransform","MapARGB","32b",function(r){return r>>8&255},function(r){return r}),jt("VP8LColorIndexInverseTransformAlpha","MapAlpha","8b",function(r){return r},function(r){return r>>8&255});var aa,Nr=z.ColorIndexInverseTransform,Je=z.MapARGB,Xs=z.VP8LColorIndexInverseTransformAlpha,mi=z.MapAlpha,ei=z.VP8LPredictorsAdd=[];ei.length=16,(z.VP8LPredictors=[]).length=16,(z.VP8LPredictorsAdd_C=[]).length=16,(z.VP8LPredictors_C=[]).length=16;var Lr,Ha,Wa,oa,Sr,kr,Yi,Ri,Ki,sa,mn,bi,Ee,Ie,We,Qe,Bi,Ga,la,jo,dh,ph,gh,mh,Va,bh,vh,wh,_h=o(511),yh=o(2041),xh=o(225),Ah=o(767),Nh=0,Js=yh,Mo=xh,Rn=Ah,$n=_h,Do=0,Uo=1,Lh=2,qo=3,zo=4,Qs=5,Sh=6,tl=7,el=8,Ho=9,nl=10,du=[2,3,7],pu=[3,3,11],kh=[280,256,256,256,40],gu=[0,1,1,1,0],mu=[17,18,0,1,2,3,4,5,16,6,7,8,9,10,11,12,13,14,15],bu=[24,7,23,25,40,6,39,41,22,26,38,42,56,5,55,57,21,27,54,58,37,43,72,4,71,73,20,28,53,59,70,74,36,44,88,69,75,52,60,3,87,89,19,29,86,90,35,45,68,76,85,91,51,61,104,2,103,105,18,30,102,106,34,46,84,92,67,77,101,107,50,62,120,1,119,121,83,93,17,31,100,108,66,78,118,122,33,47,117,123,49,63,99,109,82,94,0,116,124,65,79,16,32,98,110,48,115,125,81,95,64,114,126,97,111,80,113,127,96,112],vu=[2954,2956,2958,2962,2970,2986,3018,3082,3212,3468,3980,5004],wu=8,il=[4,5,6,7,8,9,10,10,11,12,13,14,15,16,17,17,18,19,20,20,21,21,22,22,23,23,24,25,25,26,27,28,29,30,31,32,33,34,35,36,37,37,38,39,40,41,42,43,44,45,46,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,76,77,78,79,80,81,82,83,84,85,86,87,88,89,91,93,95,96,98,100,101,102,104,106,108,110,112,114,116,118,122,124,126,128,130,132,134,136,138,140,143,145,148,151,154,157],rl=[4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,60,62,64,66,68,70,72,74,76,78,80,82,84,86,88,90,92,94,96,98,100,102,104,106,108,110,112,114,116,119,122,125,128,131,134,137,140,143,146,149,152,155,158,161,164,167,170,173,177,181,185,189,193,197,201,205,209,213,217,221,225,229,234,239,245,249,254,259,264,269,274,279,284],Za=null,_u=[[173,148,140,0],[176,155,140,135,0],[180,157,141,134,130,0],[254,254,243,230,196,177,153,140,133,130,129,0]],yu=[0,1,4,8,5,2,3,6,9,12,13,10,7,11,14,15],Ph=[-0,1,-1,2,-2,3,4,6,-3,5,-4,-5,-6,7,-7,8,-8,-9],xu=[[[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]],[[253,136,254,255,228,219,128,128,128,128,128],[189,129,242,255,227,213,255,219,128,128,128],[106,126,227,252,214,209,255,255,128,128,128]],[[1,98,248,255,236,226,255,255,128,128,128],[181,133,238,254,221,234,255,154,128,128,128],[78,134,202,247,198,180,255,219,128,128,128]],[[1,185,249,255,243,255,128,128,128,128,128],[184,150,247,255,236,224,128,128,128,128,128],[77,110,216,255,236,230,128,128,128,128,128]],[[1,101,251,255,241,255,128,128,128,128,128],[170,139,241,252,236,209,255,255,128,128,128],[37,116,196,243,228,255,255,255,128,128,128]],[[1,204,254,255,245,255,128,128,128,128,128],[207,160,250,255,238,128,128,128,128,128,128],[102,103,231,255,211,171,128,128,128,128,128]],[[1,152,252,255,240,255,128,128,128,128,128],[177,135,243,255,234,225,128,128,128,128,128],[80,129,211,255,194,224,128,128,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[246,1,255,128,128,128,128,128,128,128,128],[255,128,128,128,128,128,128,128,128,128,128]]],[[[198,35,237,223,193,187,162,160,145,155,62],[131,45,198,221,172,176,220,157,252,221,1],[68,47,146,208,149,167,221,162,255,223,128]],[[1,149,241,255,221,224,255,255,128,128,128],[184,141,234,253,222,220,255,199,128,128,128],[81,99,181,242,176,190,249,202,255,255,128]],[[1,129,232,253,214,197,242,196,255,255,128],[99,121,210,250,201,198,255,202,128,128,128],[23,91,163,242,170,187,247,210,255,255,128]],[[1,200,246,255,234,255,128,128,128,128,128],[109,178,241,255,231,245,255,255,128,128,128],[44,130,201,253,205,192,255,255,128,128,128]],[[1,132,239,251,219,209,255,165,128,128,128],[94,136,225,251,218,190,255,255,128,128,128],[22,100,174,245,186,161,255,199,128,128,128]],[[1,182,249,255,232,235,128,128,128,128,128],[124,143,241,255,227,234,128,128,128,128,128],[35,77,181,251,193,211,255,205,128,128,128]],[[1,157,247,255,236,231,255,255,128,128,128],[121,141,235,255,225,227,255,255,128,128,128],[45,99,188,251,195,217,255,224,128,128,128]],[[1,1,251,255,213,255,128,128,128,128,128],[203,1,248,255,255,128,128,128,128,128,128],[137,1,177,255,224,255,128,128,128,128,128]]],[[[253,9,248,251,207,208,255,192,128,128,128],[175,13,224,243,193,185,249,198,255,255,128],[73,17,171,221,161,179,236,167,255,234,128]],[[1,95,247,253,212,183,255,255,128,128,128],[239,90,244,250,211,209,255,255,128,128,128],[155,77,195,248,188,195,255,255,128,128,128]],[[1,24,239,251,218,219,255,205,128,128,128],[201,51,219,255,196,186,128,128,128,128,128],[69,46,190,239,201,218,255,228,128,128,128]],[[1,191,251,255,255,128,128,128,128,128,128],[223,165,249,255,213,255,128,128,128,128,128],[141,124,248,255,255,128,128,128,128,128,128]],[[1,16,248,255,255,128,128,128,128,128,128],[190,36,230,255,236,255,128,128,128,128,128],[149,1,255,128,128,128,128,128,128,128,128]],[[1,226,255,128,128,128,128,128,128,128,128],[247,192,255,128,128,128,128,128,128,128,128],[240,128,255,128,128,128,128,128,128,128,128]],[[1,134,252,255,255,128,128,128,128,128,128],[213,62,250,255,255,128,128,128,128,128,128],[55,93,255,128,128,128,128,128,128,128,128]],[[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128],[128,128,128,128,128,128,128,128,128,128,128]]],[[[202,24,213,235,186,191,220,160,240,175,255],[126,38,182,232,169,184,228,174,255,187,128],[61,46,138,219,151,178,240,170,255,216,128]],[[1,112,230,250,199,191,247,159,255,255,128],[166,109,228,252,211,215,255,174,128,128,128],[39,77,162,232,172,180,245,178,255,255,128]],[[1,52,220,246,198,199,249,220,255,255,128],[124,74,191,243,183,193,250,221,255,255,128],[24,71,130,219,154,170,243,182,255,255,128]],[[1,182,225,249,219,240,255,224,128,128,128],[149,150,226,252,216,205,255,171,128,128,128],[28,108,170,242,183,194,254,223,255,255,128]],[[1,81,230,252,204,203,255,192,128,128,128],[123,102,209,247,188,196,255,233,128,128,128],[20,95,153,243,164,173,255,203,128,128,128]],[[1,222,248,255,216,213,128,128,128,128,128],[168,175,246,252,235,205,255,255,128,128,128],[47,116,215,255,211,212,255,255,128,128,128]],[[1,121,236,253,212,214,255,255,128,128,128],[141,84,213,252,201,202,255,219,128,128,128],[42,80,160,240,162,185,255,205,128,128,128]],[[1,1,255,128,128,128,128,128,128,128,128],[244,1,255,128,128,128,128,128,128,128,128],[238,1,255,128,128,128,128,128,128,128,128]]]],Au=[[[231,120,48,89,115,113,120,152,112],[152,179,64,126,170,118,46,70,95],[175,69,143,80,85,82,72,155,103],[56,58,10,171,218,189,17,13,152],[114,26,17,163,44,195,21,10,173],[121,24,80,195,26,62,44,64,85],[144,71,10,38,171,213,144,34,26],[170,46,55,19,136,160,33,206,71],[63,20,8,114,114,208,12,9,226],[81,40,11,96,182,84,29,16,36]],[[134,183,89,137,98,101,106,165,148],[72,187,100,130,157,111,32,75,80],[66,102,167,99,74,62,40,234,128],[41,53,9,178,241,141,26,8,107],[74,43,26,146,73,166,49,23,157],[65,38,105,160,51,52,31,115,128],[104,79,12,27,217,255,87,17,7],[87,68,71,44,114,51,15,186,23],[47,41,14,110,182,183,21,17,194],[66,45,25,102,197,189,23,18,22]],[[88,88,147,150,42,46,45,196,205],[43,97,183,117,85,38,35,179,61],[39,53,200,87,26,21,43,232,171],[56,34,51,104,114,102,29,93,77],[39,28,85,171,58,165,90,98,64],[34,22,116,206,23,34,43,166,73],[107,54,32,26,51,1,81,43,31],[68,25,106,22,64,171,36,225,114],[34,19,21,102,132,188,16,76,124],[62,18,78,95,85,57,50,48,51]],[[193,101,35,159,215,111,89,46,111],[60,148,31,172,219,228,21,18,111],[112,113,77,85,179,255,38,120,114],[40,42,1,196,245,209,10,25,109],[88,43,29,140,166,213,37,43,154],[61,63,30,155,67,45,68,1,209],[100,80,8,43,154,1,51,26,71],[142,78,78,16,255,128,34,197,171],[41,40,5,102,211,183,4,1,221],[51,50,17,168,209,192,23,25,82]],[[138,31,36,171,27,166,38,44,229],[67,87,58,169,82,115,26,59,179],[63,59,90,180,59,166,93,73,154],[40,40,21,116,143,209,34,39,175],[47,15,16,183,34,223,49,45,183],[46,17,33,183,6,98,15,32,183],[57,46,22,24,128,1,54,17,37],[65,32,73,115,28,128,23,128,205],[40,3,9,115,51,192,18,6,223],[87,37,9,115,59,77,64,21,47]],[[104,55,44,218,9,54,53,130,226],[64,90,70,205,40,41,23,26,57],[54,57,112,184,5,41,38,166,213],[30,34,26,133,152,116,10,32,134],[39,19,53,221,26,114,32,73,255],[31,9,65,234,2,15,1,118,73],[75,32,12,51,192,255,160,43,51],[88,31,35,67,102,85,55,186,85],[56,21,23,111,59,205,45,37,192],[55,38,70,124,73,102,1,34,98]],[[125,98,42,88,104,85,117,175,82],[95,84,53,89,128,100,113,101,45],[75,79,123,47,51,128,81,171,1],[57,17,5,71,102,57,53,41,49],[38,33,13,121,57,73,26,1,85],[41,10,67,138,77,110,90,47,114],[115,21,2,10,102,255,166,23,6],[101,29,16,10,85,128,101,196,26],[57,18,10,102,102,213,34,20,43],[117,20,15,36,163,128,68,1,26]],[[102,61,71,37,34,53,31,243,192],[69,60,71,38,73,119,28,222,37],[68,45,128,34,1,47,11,245,171],[62,17,19,70,146,85,55,62,70],[37,43,37,154,100,163,85,160,1],[63,9,92,136,28,64,32,201,85],[75,15,9,9,64,255,184,119,16],[86,6,28,5,64,255,25,248,1],[56,8,17,132,137,255,55,116,128],[58,15,20,82,135,57,26,121,40]],[[164,50,31,137,154,133,25,35,218],[51,103,44,131,131,123,31,6,158],[86,40,64,135,148,224,45,183,128],[22,26,17,131,240,154,14,1,209],[45,16,21,91,64,222,7,1,197],[56,21,39,155,60,138,23,102,213],[83,12,13,54,192,255,68,47,28],[85,26,85,85,128,128,32,146,171],[18,11,7,63,144,171,4,4,246],[35,27,10,146,174,171,12,26,128]],[[190,80,35,99,180,80,126,54,45],[85,126,47,87,176,51,41,20,32],[101,75,128,139,118,146,116,128,85],[56,41,15,176,236,85,37,9,62],[71,30,17,119,118,255,17,18,138],[101,38,60,138,55,70,43,26,142],[146,36,19,30,171,255,97,27,20],[138,45,61,62,219,1,81,188,64],[32,41,20,117,151,142,20,21,163],[112,19,12,61,195,128,48,4,24]]],Nu=[[[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[176,246,255,255,255,255,255,255,255,255,255],[223,241,252,255,255,255,255,255,255,255,255],[249,253,253,255,255,255,255,255,255,255,255]],[[255,244,252,255,255,255,255,255,255,255,255],[234,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255]],[[255,246,254,255,255,255,255,255,255,255,255],[239,253,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[251,255,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[251,254,254,255,255,255,255,255,255,255,255],[254,255,254,255,255,255,255,255,255,255,255]],[[255,254,253,255,254,255,255,255,255,255,255],[250,255,254,255,254,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[217,255,255,255,255,255,255,255,255,255,255],[225,252,241,253,255,255,254,255,255,255,255],[234,250,241,250,253,255,253,254,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[223,254,254,255,255,255,255,255,255,255,255],[238,253,254,254,255,255,255,255,255,255,255]],[[255,248,254,255,255,255,255,255,255,255,255],[249,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,255,255,255,255,255,255,255,255,255],[247,254,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[252,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[253,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[186,251,250,255,255,255,255,255,255,255,255],[234,251,244,254,255,255,255,255,255,255,255],[251,251,243,253,254,255,254,255,255,255,255]],[[255,253,254,255,255,255,255,255,255,255,255],[236,253,254,255,255,255,255,255,255,255,255],[251,253,253,254,254,255,255,255,255,255,255]],[[255,254,254,255,255,255,255,255,255,255,255],[254,254,254,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,254,255,255,255,255,255,255,255,255,255],[254,254,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]],[[[248,255,255,255,255,255,255,255,255,255,255],[250,254,252,254,255,255,255,255,255,255,255],[248,254,249,253,255,255,255,255,255,255,255]],[[255,253,253,255,255,255,255,255,255,255,255],[246,253,253,255,255,255,255,255,255,255,255],[252,254,251,254,254,255,255,255,255,255,255]],[[255,254,252,255,255,255,255,255,255,255,255],[248,254,253,255,255,255,255,255,255,255,255],[253,255,254,254,255,255,255,255,255,255,255]],[[255,251,254,255,255,255,255,255,255,255,255],[245,251,254,255,255,255,255,255,255,255,255],[253,253,254,255,255,255,255,255,255,255,255]],[[255,251,253,255,255,255,255,255,255,255,255],[252,253,254,255,255,255,255,255,255,255,255],[255,254,255,255,255,255,255,255,255,255,255]],[[255,252,255,255,255,255,255,255,255,255,255],[249,255,254,255,255,255,255,255,255,255,255],[255,255,254,255,255,255,255,255,255,255,255]],[[255,255,253,255,255,255,255,255,255,255,255],[250,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]],[[255,255,255,255,255,255,255,255,255,255,255],[254,255,255,255,255,255,255,255,255,255,255],[255,255,255,255,255,255,255,255,255,255,255]]]],Lu=[0,1,2,3,6,4,5,6,6,6,6,6,6,6,6,7,0],Xi=[],ni=[],ji=[],Su=1,Eh=2,Ji=[],Yn=[];pn("UpsampleRgbLinePair",wr,3),pn("UpsampleBgrLinePair",ta,3),pn("UpsampleRgbaLinePair",Ua,4),pn("UpsampleBgraLinePair",yr,4),pn("UpsampleArgbLinePair",_r,4),pn("UpsampleRgba4444LinePair",gn,2),pn("UpsampleRgb565LinePair",ea,2);var ku=z.UpsampleRgbLinePair,Pu=z.UpsampleBgrLinePair,Ih=z.UpsampleRgbaLinePair,Ch=z.UpsampleBgraLinePair,Fh=z.UpsampleArgbLinePair,Oh=z.UpsampleRgba4444LinePair,Eu=z.UpsampleRgb565LinePair,Wo=16,Go=1<g.ca.S||(alert("todo:WebPInitConvertARGBToYUV"),g.ca.f.kb.F!=null&&Me()),g.Pb&&0(S=u.Md)?0:100I;++I)12>(J=v.pb[I]).lc&&(J.ia=S*ju[0>J.lc?0:J.lc]>>3),H|=J.ia;H&&(alert("todo:VP8InitRandom"),v.ia=1)}v.Ga=u.Id,100v.Ga&&(v.Ga=0)}(function(C,W){if(C==null)return 0;if(W==null)return Ke(C,2,"NULL VP8Io parameter in VP8Decode().");if(!C.cb&&!ui(C,W))return 0;if(n(C.cb),W.ac==null||W.ac(W)){W.ob&&(C.L=0);var K=Vo[C.L];if(C.L==2?(C.yb=0,C.zb=0):(C.yb=W.v-K>>4,C.zb=W.j-K>>4,0>C.yb&&(C.yb=0),0>C.zb&&(C.zb=0)),C.Va=W.o+15+K>>4,C.Hb=W.va+15+K>>4,C.Hb>C.za&&(C.Hb=C.za),C.Va>C.Ub&&(C.Va=C.Ub),0K;++K){var X;if(C.Qa.Cb){var ht=C.Qa.Lb[K];C.Qa.Fb||(ht+=st.Tb)}else ht=st.Tb;for(X=0;1>=X;++X){var ct=C.gd[K][X],wt=ht;if(st.Pc&&(wt+=st.vd[0],X&&(wt+=st.od[0])),0<(wt=0>wt?0:63>2:bt>>1)>9-st.wb&&(bt=9-st.wb),1>bt&&(bt=1),ct.dd=bt,ct.tc=2*wt+bt,ct.ld=40<=wt?2:15<=wt?1:0}else ct.tc=0;ct.La=X}}}K=0}else Ke(C,6,"Frame setup failed"),K=C.a;if(K=K==0){if(K){C.$c=0,0C.Vb){if(C.Vb=0,C.Ec=o(ct),C.Fc=0,C.Ec==null){K=Ke(C,1,"no memory during frame initialization.");break e}C.Vb=ct}ct=C.Ec,wt=C.Fc,C.Ac=ct,C.Bc=wt,wt+=st,C.Gd=f(Bt,No),C.Hd=0,C.rb=f(Pt+1,Ia),C.sb=1,C.wa=ie?f(ie,Vn):null,C.Y=0,C.D.Nb=0,C.D.wa=C.wa,C.D.Y=C.Y,0=K;++K)_h[255+K]=0>K?-K:K;for(K=-1020;1020>=K;++K)yh[1020+K]=-128>K?-128:127=K;++K)xh[112+K]=-16>K?-16:15=K;++K)Ah[255+K]=0>K?0:255pe;++pe){var en,me=Nn[0+pe];for(en=0;4>en;++en){me=Au[Oe[hn+en]][me];for(var ye=Ph[dt(ee,me[0])];0>3;for(ye=0;256>ye;ye+=16)pe[bn+ye]=In}cn=1,ii=hn[0]}var Se=15&ee.la,nn=15&Ln.la;for(ye=0;4>ye;++ye){var Bn=1&nn;for(In=xe=0;4>In;++In)Se=Se>>1|(Bn=(Ve=Za(Oe,ii,Ve=Bn+(1&Se),Ue.Sc,cn,pe,bn))>cn)<<7,xe=xe<<2|(3>=4,nn=nn>>1|Bn<<7,en=(en<<8|xe)>>>0}for(ii=Se,cn=nn>>4,qe=0;4>qe;qe+=2){for(xe=0,Se=ee.la>>4+qe,nn=Ln.la>>4+qe,ye=0;2>ye;++ye){for(Bn=1&nn,In=0;2>In;++In)Ve=Bn+(1&Se),Se=Se>>1|(Bn=0<(Ve=Za(Oe,hn[2],Ve,Ue.Qc,0,pe,bn)))<<3,xe=xe<<2|(3>=2,nn=nn>>1|Bn<<5}me|=xe<<4*qe,ii|=Se<<4<=Tt.zb&&Tt.M<=Tt.Va,Tt.Aa==0)e:{if(re.M=Tt.M,re.uc=ee,na(Tt,re),Ge=1,re=(xe=Tt.D).Nb,ee=(me=Vo[Tt.L])*Tt.R,Oe=me/2*Tt.B,ye=16*re*Tt.R,In=8*re*Tt.B,hn=Tt.sa,Nn=Tt.ta-ee+ye,Ue=Tt.qa,pe=Tt.ra-Oe+In,bn=Tt.Ha,Ln=Tt.Ia-Oe+In,nn=(Se=xe.M)==0,en=Se>=Tt.Va-1,Tt.Aa==2&&na(Tt,xe),xe.uc)for(Bn=(Ve=Tt).D.M,n(Ve.D.uc),xe=Ve.yb;xeNt.o&&(Se=Nt.o),Nt.F=null,Nt.J=null,Tt.Fa!=null&&0>1),Nt.W+=Tt.B*(me>>1),Nt.F!=null&&(Nt.J+=Nt.width*me)),xe>1,Nt.W+=Nt.v>>1,Nt.F!=null&&(Nt.J+=Nt.v),Nt.ka=xe-Nt.j,Nt.U=Nt.va-Nt.v,Nt.T=Se-xe,Ge=Nt.put(Nt))}re+1!=Tt.Ic||en||(i(Tt.sa,Tt.ta-ee,hn,Nn+16*Tt.R,ee),i(Tt.qa,Tt.ra-Oe,Ue,pe+8*Tt.B,Oe),i(Tt.Ha,Tt.Ia-Oe,bn,Ln+8*Tt.B,Oe))}if(!Ge)return Ke(ue,6,"Output aborted.")}return 1})(C,W)),W.bc!=null&&W.bc(W),K&=1}return K?(C.cb=0,K):0})(r,g)||(s=r.a)}}else s=r.a}s==0&&_.Oa!=null&&_.Oa.fd&&(s=xr(_.ba))}_=s}w=_!=0?null:11>w?x.f.RGBA.eb:x.f.kb.y}else w=null;return w};var jh=[3,4,3,4,4,2,2,4,4,4,2,1,1]};function d(z,et){for(var N="",F=0;F<4;F++)N+=String.fromCharCode(z[et++]);return N}function m(z,et){return z[et+0]|z[et+1]<<8}function A(z,et){return(z[et+0]|z[et+1]<<8|z[et+2]<<16)>>>0}function L(z,et){return(z[et+0]|z[et+1]<<8|z[et+2]<<16|z[et+3]<<24)>>>0}new c;var p=[0],T=[0],O=[],B=new c,k=t,Z=(function(z,et){var N={},F=0,U=!1,q=0,it=0;if(N.frames=[],!(function(y,R){for(var j=0;j<4;j++)if(y[R+j]!="RIFF".charCodeAt(j))return!0;return!1})(z,et)){for(L(z,et+=4),et+=8;et>1&1}ft!="ANMF"&&(et+=nt)}return N}})(k,0);Z.response=k,Z.rgbaoutput=!0,Z.dataurl=!1;var $=Z.header?Z.header:null,D=Z.frames?Z.frames:null;if($){$.loop_counter=$.loop_count,p=[$.canvas_height],T=[$.canvas_width];for(var lt=0;lt'+e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")+"",this.internal.__metadata__.metadataObjectNumber=this.internal.newObject(),this.internal.write("<< /Type /Metadata /Subtype /XML /Length "+t.length+" >>"),this.internal.write("stream"),this.internal.write(t),this.internal.write("endstream"),this.internal.write("endobj")}function _5(){this.internal.__metadata__.metadataObjectNumber&&this.internal.write("/Metadata "+this.internal.__metadata__.metadataObjectNumber+" 0 R")}(function(t){var n,e,i,a,o,f,l,c,d,m=function(y){return y=y||{},this.isStrokeTransparent=y.isStrokeTransparent||!1,this.strokeOpacity=y.strokeOpacity||1,this.strokeStyle=y.strokeStyle||"#000000",this.fillStyle=y.fillStyle||"#000000",this.isFillTransparent=y.isFillTransparent||!1,this.fillOpacity=y.fillOpacity||1,this.font=y.font||"10px sans-serif",this.textBaseline=y.textBaseline||"alphabetic",this.textAlign=y.textAlign||"left",this.lineWidth=y.lineWidth||1,this.lineJoin=y.lineJoin||"miter",this.lineCap=y.lineCap||"butt",this.path=y.path||[],this.transform=y.transform!==void 0?y.transform.clone():new c,this.globalCompositeOperation=y.globalCompositeOperation||"normal",this.globalAlpha=y.globalAlpha||1,this.clip_path=y.clip_path||[],this.currentPoint=y.currentPoint||new f,this.miterLimit=y.miterLimit||10,this.lastPoint=y.lastPoint||new f,this.lineDashOffset=y.lineDashOffset||0,this.lineDash=y.lineDash||[],this.margin=y.margin||[0,0,0,0],this.prevPageLastElemOffset=y.prevPageLastElemOffset||0,this.ignoreClearRect=typeof y.ignoreClearRect!="boolean"||y.ignoreClearRect,this};t.events.push(["initialized",function(){this.context2d=new A(this),n=this.internal.f2,e=this.internal.getCoordinateString,i=this.internal.getVerticalCoordinateString,a=this.internal.getHorizontalCoordinate,o=this.internal.getVerticalCoordinate,f=this.internal.Point,l=this.internal.Rectangle,c=this.internal.Matrix,d=new m}]);var A=function(y){Object.defineProperty(this,"canvas",{get:function(){return{parentNode:!1,style:!1}}});var R=y;Object.defineProperty(this,"pdf",{get:function(){return R}});var j=!1;Object.defineProperty(this,"pageWrapXEnabled",{get:function(){return j},set:function(P){j=!!P}});var G=!1;Object.defineProperty(this,"pageWrapYEnabled",{get:function(){return G},set:function(P){G=!!P}});var Y=0;Object.defineProperty(this,"posX",{get:function(){return Y},set:function(P){isNaN(P)||(Y=P)}});var Q=0;Object.defineProperty(this,"posY",{get:function(){return Q},set:function(P){isNaN(P)||(Q=P)}}),Object.defineProperty(this,"margin",{get:function(){return d.margin},set:function(P){var Lt;typeof P=="number"?Lt=[P,P,P,P]:((Lt=new Array(4))[0]=P[0],Lt[1]=P.length>=2?P[1]:Lt[0],Lt[2]=P.length>=3?P[2]:Lt[0],Lt[3]=P.length>=4?P[3]:Lt[1]),d.margin=Lt}});var rt=!1;Object.defineProperty(this,"autoPaging",{get:function(){return rt},set:function(P){rt=P}});var at=0;Object.defineProperty(this,"lastBreak",{get:function(){return at},set:function(P){at=P}});var dt=[];Object.defineProperty(this,"pageBreaks",{get:function(){return dt},set:function(P){dt=P}}),Object.defineProperty(this,"ctx",{get:function(){return d},set:function(P){P instanceof m&&(d=P)}}),Object.defineProperty(this,"path",{get:function(){return d.path},set:function(P){d.path=P}});var xt=[];Object.defineProperty(this,"ctxStack",{get:function(){return xt},set:function(P){xt=P}}),Object.defineProperty(this,"fillStyle",{get:function(){return this.ctx.fillStyle},set:function(P){var Lt;Lt=L(P),this.ctx.fillStyle=Lt.style,this.ctx.isFillTransparent=Lt.a===0,this.ctx.fillOpacity=Lt.a,this.pdf.setFillColor(Lt.r,Lt.g,Lt.b,{a:Lt.a}),this.pdf.setTextColor(Lt.r,Lt.g,Lt.b,{a:Lt.a})}}),Object.defineProperty(this,"strokeStyle",{get:function(){return this.ctx.strokeStyle},set:function(P){var Lt=L(P);this.ctx.strokeStyle=Lt.style,this.ctx.isStrokeTransparent=Lt.a===0,this.ctx.strokeOpacity=Lt.a,Lt.a===0?this.pdf.setDrawColor(255,255,255):(Lt.a,this.pdf.setDrawColor(Lt.r,Lt.g,Lt.b))}}),Object.defineProperty(this,"lineCap",{get:function(){return this.ctx.lineCap},set:function(P){["butt","round","square"].indexOf(P)!==-1&&(this.ctx.lineCap=P,this.pdf.setLineCap(P))}}),Object.defineProperty(this,"lineWidth",{get:function(){return this.ctx.lineWidth},set:function(P){isNaN(P)||(this.ctx.lineWidth=P,this.pdf.setLineWidth(P))}}),Object.defineProperty(this,"lineJoin",{get:function(){return this.ctx.lineJoin},set:function(P){["bevel","round","miter"].indexOf(P)!==-1&&(this.ctx.lineJoin=P,this.pdf.setLineJoin(P))}}),Object.defineProperty(this,"miterLimit",{get:function(){return this.ctx.miterLimit},set:function(P){isNaN(P)||(this.ctx.miterLimit=P,this.pdf.setMiterLimit(P))}}),Object.defineProperty(this,"textBaseline",{get:function(){return this.ctx.textBaseline},set:function(P){this.ctx.textBaseline=P}}),Object.defineProperty(this,"textAlign",{get:function(){return this.ctx.textAlign},set:function(P){["right","end","center","left","start"].indexOf(P)!==-1&&(this.ctx.textAlign=P)}});var St=null,kt=null,zt=null;Object.defineProperty(this,"fontFaces",{get:function(){return zt},set:function(P){St=null,kt=null,zt=P}}),Object.defineProperty(this,"font",{get:function(){return this.ctx.font},set:function(P){var Lt;if(this.ctx.font=P,(Lt=/^\s*(?=(?:(?:[-a-z]+\s*){0,2}(italic|oblique))?)(?=(?:(?:[-a-z]+\s*){0,2}(small-caps))?)(?=(?:(?:[-a-z]+\s*){0,2}(bold(?:er)?|lighter|[1-9]00))?)(?:(?:normal|\1|\2|\3)\s*){0,3}((?:xx?-)?(?:small|large)|medium|smaller|larger|[.\d]+(?:\%|in|[cem]m|ex|p[ctx]))(?:\s*\/\s*(normal|[.\d]+(?:\%|in|[cem]m|ex|p[ctx])))?\s*([-_,\"\'\sa-z0-9]+?)\s*$/i.exec(P))!==null){var ae=Lt[1];Lt[2];var Ht=Lt[3],vt=Lt[4];Lt[5];var Wt=Lt[6],Et=/^([.\d]+)((?:%|in|[cem]m|ex|p[ctx]))$/i.exec(vt)[2];vt=Math.floor(Et==="px"?parseFloat(vt)*this.pdf.internal.scaleFactor:Et==="em"?parseFloat(vt)*this.pdf.getFontSize():parseFloat(vt)*this.pdf.internal.scaleFactor),this.pdf.setFontSize(vt);var qt=(function(jt){var He,ge,oe=[],se=jt.trim();if(se==="")return ah;if(se in Df)return[Df[se]];for(;se!=="";){switch(ge=null,He=(se=qf(se)).charAt(0)){case'"':case"'":ge=d5(se.substring(1),He);break;default:ge=p5(se)}if(ge===null||(oe.push(ge[0]),(se=qf(ge[1]))!==""&&se.charAt(0)!==","))return ah;se=se.replace(/^,/,"")}return oe})(Wt);if(this.fontFaces){var Dt=(function(jt,He){var ge=jt.getFontList(),oe=JSON.stringify(ge);if(St===null||kt!==oe){var se=(function(Te){var Ut=[];return Object.keys(Te).forEach(function(Pe){Te[Pe].forEach(function(Zt){var Qt=null;switch(Zt){case"bold":Qt={family:Pe,weight:"bold"};break;case"italic":Qt={family:Pe,style:"italic"};break;case"bolditalic":Qt={family:Pe,weight:"bold",style:"italic"};break;case"":case"normal":Qt={family:Pe}}Qt!==null&&(Qt.ref={name:Pe,style:Zt},Ut.push(Qt))})}),Ut})(ge);St=(function(Te){for(var Ut={},Pe=0;Pe=700||ae==="bold")&&(Jt="bold"),ae==="italic"&&(Jt+="italic"),Jt.length===0&&(Jt="normal");for(var fe="",ce={arial:"Helvetica",Arial:"Helvetica",verdana:"Helvetica",Verdana:"Helvetica",helvetica:"Helvetica",Helvetica:"Helvetica","sans-serif":"Helvetica",fixed:"Courier",monospace:"Courier",terminal:"Courier",cursive:"Times",fantasy:"Times",serif:"Times"},Rt=0;Rt=2*Math.PI&&(G=0,Y=2*Math.PI),this.path.push({type:"arc",x:y,y:R,radius:j,startAngle:G,endAngle:Y,counterclockwise:Q})},A.prototype.arcTo=function(y,R,j,G,Y){throw new Error("arcTo not implemented.")},A.prototype.rect=function(y,R,j,G){if(isNaN(y)||isNaN(R)||isNaN(j)||isNaN(G))throw ke.error("jsPDF.context2d.rect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.rect");this.moveTo(y,R),this.lineTo(y+j,R),this.lineTo(y+j,R+G),this.lineTo(y,R+G),this.lineTo(y,R),this.lineTo(y+j,R),this.lineTo(y,R)},A.prototype.fillRect=function(y,R,j,G){if(isNaN(y)||isNaN(R)||isNaN(j)||isNaN(G))throw ke.error("jsPDF.context2d.fillRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.fillRect");if(!p.call(this)){var Y={};this.lineCap!=="butt"&&(Y.lineCap=this.lineCap,this.lineCap="butt"),this.lineJoin!=="miter"&&(Y.lineJoin=this.lineJoin,this.lineJoin="miter"),this.beginPath(),this.rect(y,R,j,G),this.fill(),Y.hasOwnProperty("lineCap")&&(this.lineCap=Y.lineCap),Y.hasOwnProperty("lineJoin")&&(this.lineJoin=Y.lineJoin)}},A.prototype.strokeRect=function(y,R,j,G){if(isNaN(y)||isNaN(R)||isNaN(j)||isNaN(G))throw ke.error("jsPDF.context2d.strokeRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.strokeRect");T.call(this)||(this.beginPath(),this.rect(y,R,j,G),this.stroke())},A.prototype.clearRect=function(y,R,j,G){if(isNaN(y)||isNaN(R)||isNaN(j)||isNaN(G))throw ke.error("jsPDF.context2d.clearRect: Invalid arguments",arguments),new Error("Invalid arguments passed to jsPDF.context2d.clearRect");this.ignoreClearRect||(this.fillStyle="#ffffff",this.fillRect(y,R,j,G))},A.prototype.save=function(y){y=typeof y!="boolean"||y;for(var R=this.pdf.internal.getCurrentPageInfo().pageNumber,j=0;j0||this.margin[1]>0||this.margin[2]>0||this.margin[3]>0};A.prototype.drawImage=function(y,R,j,G,Y,Q,rt,at,dt){var xt=this.pdf.getImageProperties(y),St=1,kt=1,zt=1,P=1;G!==void 0&&at!==void 0&&(zt=at/G,P=dt/Y,St=xt.width/G*at/G,kt=xt.height/Y*dt/Y),Q===void 0&&(Q=R,rt=j,R=0,j=0),G!==void 0&&at===void 0&&(at=G,dt=Y),G===void 0&&at===void 0&&(at=xt.width,dt=xt.height);var Lt=this.ctx.transform.decompose(),ae=nt(Lt.rotate.shx),Ht=new c,vt=(Ht=(Ht=(Ht=Ht.multiply(Lt.translate)).multiply(Lt.skew)).multiply(Lt.scale)).applyToRectangle(new l(Q-R*zt,rt-j*P,G*St,Y*kt));if(this.autoPaging){for(var Wt,Et=B.call(this,vt),qt=[],Dt=0;Dtwe||Jtvt||Et0)){for(;dt>=0;dt--)if(Y[dt-1].close!==!0&&Y[dt-1].begin!==!0){Y[dt-1].deltas.push(j),Y[dt-1].abs.push(at);break}}break;case"bct":j=[at.x1-Q[rt-1].x,at.y1-Q[rt-1].y,at.x2-Q[rt-1].x,at.y2-Q[rt-1].y,at.x-Q[rt-1].x,at.y-Q[rt-1].y],Y[Y.length-1].deltas.push(j);break;case"qct":var xt=Q[rt-1].x+2/3*(at.x1-Q[rt-1].x),St=Q[rt-1].y+2/3*(at.y1-Q[rt-1].y),kt=at.x+2/3*(at.x1-at.x),zt=at.y+2/3*(at.y1-at.y),P=at.x,Lt=at.y;j=[xt-Q[rt-1].x,St-Q[rt-1].y,kt-Q[rt-1].x,zt-Q[rt-1].y,P-Q[rt-1].x,Lt-Q[rt-1].y],Y[Y.length-1].deltas.push(j);break;case"arc":Y.push({deltas:[],abs:[],arc:!0}),Array.isArray(Y[Y.length-1].abs)&&Y[Y.length-1].abs.push(at)}}G=R?null:y==="stroke"?"stroke":"fill";for(var ae=!1,Ht=0;Ht=.01&&(G=this.pdf.internal.getFontSize(),this.pdf.setFontSize(G*y.scale),Y=this.lineWidth,this.lineWidth=Y*y.scale);var ne=this.autoPaging!=="text";if(ne||Rt.y+Rt.h<=Dt){if(ne||Rt.y>=Et&&Rt.x<=he){var jt=ne?y.text:this.pdf.splitTextToSize(y.text,y.maxWidth||he-Rt.x)[0],He=Z([JSON.parse(JSON.stringify(kt))],this.posX+this.margin[3],-fe+Et+this.ctx.prevPageLastElemOffset)[0],ge=ne&&(Wt>Ht||Wt=.01&&(this.pdf.setFontSize(G),this.lineWidth=Y)}}else y.scale>=.01&&(G=this.pdf.internal.getFontSize(),this.pdf.setFontSize(G*y.scale),Y=this.lineWidth,this.lineWidth=Y*y.scale),this.pdf.text(y.text,dt.x+this.posX,dt.y+this.posY,{angle:y.angle,align:R,renderingMode:y.renderingMode,maxWidth:y.maxWidth}),y.scale>=.01&&(this.pdf.setFontSize(G),this.lineWidth=Y)},U=function(y,R,j,G){j=j||0,G=G||0,this.pdf.internal.out(e(y+j)+" "+i(R+G)+" l")},q=function(y,R,j){return this.pdf.lines(y,R,j,null,null)},it=function(y,R,j,G,Y,Q,rt,at){this.pdf.internal.out([n(a(j+y)),n(o(G+R)),n(a(Y+y)),n(o(Q+R)),n(a(rt+y)),n(o(at+R)),"c"].join(" "))},ft=function(y,R,j,G){for(var Y=2*Math.PI,Q=Math.PI/2;R>j;)R-=Y;var rt=Math.abs(j-R);rt1e-5;){var St=xt+dt*Math.min(rt,Q);at.push(pt.call(this,y,xt,St)),rt-=Math.abs(St-xt),xt=St}return at},pt=function(y,R,j){var G=(j-R)/2,Y=y*Math.cos(G),Q=y*Math.sin(G),rt=Y,at=-Q,dt=rt*rt+at*at,xt=dt+rt*Y+at*Q,St=4/3*(Math.sqrt(2*dt*xt)-xt)/(rt*Q-at*Y),kt=rt-St*at,zt=at+St*rt,P=kt,Lt=-zt,ae=G+R,Ht=Math.cos(ae),vt=Math.sin(ae);return{x1:y*Math.cos(R),y1:y*Math.sin(R),x2:kt*Ht-zt*vt,y2:kt*vt+zt*Ht,x3:P*Ht-Lt*vt,y3:P*vt+Lt*Ht,x4:y*Math.cos(j),y4:y*Math.sin(j)}},nt=function(y){return 180*y/Math.PI},ut=function(y,R,j,G,Y,Q){var rt=y+.5*(j-y),at=R+.5*(G-R),dt=Y+.5*(j-Y),xt=Q+.5*(G-Q),St=Math.min(y,Y,rt,dt),kt=Math.max(y,Y,rt,dt),zt=Math.min(R,Q,at,xt),P=Math.max(R,Q,at,xt);return new l(St,zt,kt-St,P-zt)},At=function(y,R,j,G,Y,Q,rt,at){var dt,xt,St,kt,zt,P,Lt,ae,Ht,vt,Wt,Et,qt,Dt,we=j-y,he=G-R,Jt=Y-j,fe=Q-G,ce=rt-Y,Rt=at-Q;for(xt=0;xt<41;xt++)Ht=(Lt=(St=y+(dt=xt/40)*we)+dt*((zt=j+dt*Jt)-St))+dt*(zt+dt*(Y+dt*ce-zt)-Lt),vt=(ae=(kt=R+dt*he)+dt*((P=G+dt*fe)-kt))+dt*(P+dt*(Q+dt*Rt-P)-ae),xt==0?(Wt=Ht,Et=vt,qt=Ht,Dt=vt):(Wt=Math.min(Wt,Ht),Et=Math.min(Et,vt),qt=Math.max(qt,Ht),Dt=Math.max(Dt,vt));return new l(Math.round(Wt),Math.round(Et),Math.round(qt-Wt),Math.round(Dt-Et))},yt=function(){if(this.prevLineDash||this.ctx.lineDash.length||this.ctx.lineDashOffset){var y,R,j=(y=this.ctx.lineDash,R=this.ctx.lineDashOffset,JSON.stringify({lineDash:y,lineDashOffset:R}));this.prevLineDash!==j&&(this.pdf.setLineDash(this.ctx.lineDash,this.ctx.lineDashOffset),this.prevLineDash=j)}}})(Mt.API),(function(t){var n=function(f){var l,c,d,m,A,L,p,T,O,B;for(/[^\x00-\xFF]/.test(f),c=[],d=0,m=(f+=l="\0\0\0\0".slice(f.length%4||4)).length;m>d;d+=4)(A=(f.charCodeAt(d)<<24)+(f.charCodeAt(d+1)<<16)+(f.charCodeAt(d+2)<<8)+f.charCodeAt(d+3))!==0?(L=(A=((A=((A=((A=(A-(B=A%85))/85)-(O=A%85))/85)-(T=A%85))/85)-(p=A%85))/85)%85,c.push(L+33,p+33,T+33,O+33,B+33)):c.push(122);return(function(k,Z){for(var $=Z;$>0;$--)k.pop()})(c,l.length),String.fromCharCode.apply(String,c)+"~>"},e=function(f){var l,c,d,m,A,L=String,p="length",T=255,O="charCodeAt",B="slice",k="replace";for(f[B](-2),f=f[B](0,-2)[k](/\s/g,"")[k]("z","!!!!!"),d=[],m=0,A=(f+=l="uuuuu"[B](f[p]%5||5))[p];A>m;m+=5)c=52200625*(f[O](m)-33)+614125*(f[O](m+1)-33)+7225*(f[O](m+2)-33)+85*(f[O](m+3)-33)+(f[O](m+4)-33),d.push(T&c>>24,T&c>>16,T&c>>8,T&c);return(function(Z,$){for(var D=$;D>0;D--)Z.pop()})(d,l[p]),L.fromCharCode.apply(L,d)},i=function(f){return f.split("").map(function(l){return("0"+l.charCodeAt().toString(16)).slice(-2)}).join("")+">"},a=function(f){var l=new RegExp(/^([0-9A-Fa-f]{2})+$/);if((f=f.replace(/\s/g,"")).indexOf(">")!==-1&&(f=f.substr(0,f.indexOf(">"))),f.length%2&&(f+="0"),l.test(f)===!1)return"";for(var c="",d=0;dO&&(T=B,B=O,O=T);else{if(l!=="l"&&l!=="landscape")throw"Invalid orientation: "+l;l="l",O>B&&(T=B,B=O,O=T)}return{width:B,height:O,unit:c,k:A,orientation:l}},t.html=function(l,c){(c=c||{}).callback=c.callback||function(){},c.html2canvas=c.html2canvas||{},c.html2canvas.canvas=c.html2canvas.canvas||this.canvas,c.jsPDF=c.jsPDF||this,c.fontFaces=c.fontFaces?c.fontFaces.map(rh):null;var d=new f(c);return c.worker?d:d.from(l).doCallback()}})(Mt.API),Mt.API.addJS=function(t){var n,e,i=(function(a){for(var o="",f=0;f=0&&a[d]==="\\";d--)c++;o+=c%2==0?"\\"+l:l}else o+=l}return o})(t);return this.internal.events.subscribe("postPutResources",function(){n=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/Names [(EmbeddedJS) "+(n+1)+" 0 R]"),this.internal.out(">>"),this.internal.out("endobj"),e=this.internal.newObject(),this.internal.out("<<"),this.internal.out("/S /JavaScript"),this.internal.out("/JS ("+i+")"),this.internal.out(">>"),this.internal.out("endobj")}),this.internal.events.subscribe("putCatalog",function(){n!==void 0&&e!==void 0&&this.internal.out("/Names <>")}),this},(function(t){var n;t.events.push(["postPutResources",function(){var e=this,i=/^(\d+) 0 obj$/;if(this.outline.root.children.length>0)for(var a=e.outline.render().split(/\r\n/),o=0;o> endobj")}var p=e.internal.newObject();for(e.internal.write("<< /Names [ "),o=0;o>","endobj"),n=e.internal.newObject(),e.internal.write("<< /Dests "+p+" 0 R"),e.internal.write(">>","endobj")}}]),t.events.push(["putCatalog",function(){var e=this;e.outline.root.children.length>0&&(e.internal.write("/Outlines",this.outline.makeRef(this.outline.root)),this.outline.createNamedDestinations&&e.internal.write("/Names "+n+" 0 R"))}]),t.events.push(["initialized",function(){var e=this;e.outline={createNamedDestinations:!1,root:{children:[]}},e.outline.add=function(i,a,o){var f={title:a,options:o,children:[]};return i==null&&(i=this.root),i.children.push(f),f},e.outline.render=function(){return this.ctx={},this.ctx.val="",this.ctx.pdf=e,this.genIds_r(this.root),this.renderRoot(this.root),this.renderItems(this.root),this.ctx.val},e.outline.genIds_r=function(i){i.id=e.internal.newObjectDeferred();for(var a=0;a0&&(this.line("/First "+this.makeRef(i.children[0])),this.line("/Last "+this.makeRef(i.children[i.children.length-1]))),this.line("/Count "+this.count_r({count:0},i)),this.objEnd()},e.outline.renderItems=function(i){for(var a=this.ctx.pdf.internal.getVerticalCoordinateString,o=0;o0&&this.line("/Prev "+this.makeRef(i.children[o-1])),o0&&(this.line("/First "+this.makeRef(f.children[0])),this.line("/Last "+this.makeRef(f.children[f.children.length-1])));var l=this.count=this.count_r({count:0},f);if(l>0&&this.line("/Count "+l),f.options&&f.options.pageNumber){var c=e.internal.getPageInfo(f.options.pageNumber);this.line("/Dest ["+c.objId+" 0 R /XYZ 0 "+a(0)+" 0]")}this.objEnd()}for(var d=0;d> \r +endobj\r +`},e.outline.count_r=function(i,a){for(var o=0;o1){q=!0,ft=void 0;var Y=z*et;pt=new Uint8Array(Y);for(var Q=new DataView(N.buffer),rt=0;rt536870912)throw new Error("Image dimensions exceed 512MB, which is too large.");this.data=new Uint8Array(n);try{this[t]()}catch(e){ke.log("bit decode error:"+e)}},ai.prototype.bit1=function(){var t,n=Math.ceil(this.width/8),e=n%4;for(t=this.height-1;t>=0;t--){for(var i=this.bottom_up?t:this.height-1-t,a=0;a>7-l&1];this.data[f+4*l]=c.blue,this.data[f+4*l+1]=c.green,this.data[f+4*l+2]=c.red,this.data[f+4*l+3]=255}e!==0&&(this.pos+=4-e)}},ai.prototype.bit4=function(){for(var t=Math.ceil(this.width/2),n=t%4,e=this.height-1;e>=0;e--){for(var i=this.bottom_up?e:this.height-1-e,a=0;a>4,c=15&o,d=this.palette[l];if(this.data[f]=d.blue,this.data[f+1]=d.green,this.data[f+2]=d.red,this.data[f+3]=255,2*a+1>=this.width)break;d=this.palette[c],this.data[f+4]=d.blue,this.data[f+4+1]=d.green,this.data[f+4+2]=d.red,this.data[f+4+3]=255}n!==0&&(this.pos+=4-n)}},ai.prototype.bit8=function(){for(var t=this.width%4,n=this.height-1;n>=0;n--){for(var e=this.bottom_up?n:this.height-1-n,i=0;i=0;e--){for(var i=this.bottom_up?e:this.height-1-e,a=0;a>5&n)/n*255|0,c=(o>>10&n)/n*255|0,d=o>>15?255:0,m=i*this.width*4+4*a;this.data[m]=c,this.data[m+1]=l,this.data[m+2]=f,this.data[m+3]=d}this.pos+=t}},ai.prototype.bit16=function(){for(var t=this.width%3,n=parseInt("11111",2),e=parseInt("111111",2),i=this.height-1;i>=0;i--){for(var a=this.bottom_up?i:this.height-1-i,o=0;o>5&e)/e*255|0,d=(f>>11)/n*255|0,m=a*this.width*4+4*o;this.data[m]=d,this.data[m+1]=c,this.data[m+2]=l,this.data[m+3]=255}this.pos+=t}},ai.prototype.bit24=function(){for(var t=this.height-1;t>=0;t--){for(var n=this.bottom_up?t:this.height-1-t,e=0;e=0;t--)for(var n=this.bottom_up?t:this.height-1-t,e=0;ei&&(a.push(t.slice(c,o)),l=0,c=o),l+=n[o],o++;return c!==o&&a.push(t.slice(c,o)),a},Wf=function(t,n,e){e||(e={});var i,a,o,f,l,c,d,m=[],A=[m],L=e.textIndent||0,p=0,T=0,O=t.split(" "),B=Ns.apply(this,[" ",e])[0];if(c=e.lineIndent===-1?O[0].length+2:e.lineIndent||0){var k=Array(c).join(" "),Z=[];O.map(function(D){(D=D.split(/\s*\n/)).length>1?Z=Z.concat(D.map(function(lt,_t){return(_t&<.length?` +`:"")+lt})):Z.push(D[0])}),O=Z,c=zf.apply(this,[k,e])}for(o=0,f=O.length;on||$){if(T>n){for(l=Hf.apply(this,[i,a,n-(L+p),n]),m.push(l.shift()),m=[l.pop()];l.length;)A.push([l.shift()]);T=a.slice(i.length-(m[0]?m[0].length:0)).reduce(function(D,lt){return D+lt},0)}else m=[i];A.push(m),L=T+c,p=B}else m.push(i),L+=p+T,p=B}return d=c?function(D,lt){return(lt?k:"")+D.join(" ")}:function(D){return D.join(" ")},A.map(d)},ya.splitTextToSize=function(t,n,e){var i,a=(e=e||{}).fontSize||this.internal.getFontSize(),o=function(m){if(m.widths&&m.kerning)return{widths:m.widths,kerning:m.kerning};var A=this.internal.getFont(m.fontName,m.fontStyle),L="Unicode";return A.metadata[L]?{widths:A.metadata[L].widths||{0:1},kerning:A.metadata[L].kerning||{}}:{font:A.metadata,fontSize:this.internal.getFontSize(),charSpace:this.internal.getCharSpace()}}.call(this,e);i=Array.isArray(t)?t:String(t).split(/\r?\n/);var f=1*this.internal.scaleFactor*n/a;o.textIndent=e.textIndent?1*e.textIndent*this.internal.scaleFactor/a:0,o.lineIndent=e.lineIndent;var l,c,d=[];for(l=0,c=i.length;l1){for(m=0;m>`)}),this.internal.viewerpreferences.isSubscribed=!0),this.internal.viewerpreferences.configuration=e,this},Mt.API.addMetadata=function(t,n){return this.internal.__metadata__===void 0&&(this.internal.__metadata__={metadata:t,namespaceUri:n??"http://jspdf.default.namespaceuri/",rawXml:typeof n=="boolean"&&n},this.internal.events.subscribe("putCatalog",_5),this.internal.events.subscribe("postPutResources",w5)),this},(function(t){var n=t.API,e=n.pdfEscape16=function(o,f){for(var l,c=f.metadata.Unicode.widths,d=["","0","00","000","0000"],m=[""],A=0,L=o.length;A> def +/CMapName /Adobe-Identity-UCS def +/CMapType 2 def +1 begincodespacerange +<0000> +endcodespacerange`,c=[],A=0,L=(l=Object.keys(o).sort(function(p,T){return p-T})).length;A=100&&(m+=` +`+c.length+` beginbfchar +`+c.join(` +`)+` +endbfchar`,c=[]),o[f]!==void 0&&o[f]!==null&&typeof o[f].toString=="function"&&(d=("0000"+o[f].toString(16)).slice(-4),f=("0000"+(+f).toString(16)).slice(-4),c.push("<"+f+"><"+d+">"));return c.length&&(m+=` +`+c.length+` beginbfchar +`+c.join(` +`)+` +endbfchar +`),m+`endcmap +CMapName currentdict /CMap defineresource pop +end +end`};n.events.push(["putFont",function(o){(function(f){var l=f.font,c=f.out,d=f.newObject,m=f.putStream;if(l.metadata instanceof t.API.TTFFont&&l.encoding==="Identity-H"){for(var A=l.metadata.Unicode.widths,L=l.metadata.subset.encode(l.metadata.glyIdsUsed,1),p="",T=0;T>"),c("endobj");var Z=d();c("<<"),c("/Type /Font"),c("/BaseFont /"+Aa(l.fontName)),c("/FontDescriptor "+k+" 0 R"),c("/W "+t.API.PDFObject.convert(A)),c("/CIDToGIDMap /Identity"),c("/DW 1000"),c("/Subtype /CIDFontType2"),c("/CIDSystemInfo"),c("<<"),c("/Supplement 0"),c("/Registry (Adobe)"),c("/Ordering ("+l.encoding+")"),c(">>"),c(">>"),c("endobj"),l.objectNumber=d(),c("<<"),c("/Type /Font"),c("/Subtype /Type0"),c("/ToUnicode "+B+" 0 R"),c("/BaseFont /"+Aa(l.fontName)),c("/Encoding /"+l.encoding),c("/DescendantFonts ["+Z+" 0 R]"),c(">>"),c("endobj"),l.isAlreadyPutted=!0}})(o)}]),n.events.push(["putFont",function(o){(function(f){var l=f.font,c=f.out,d=f.newObject,m=f.putStream;if(l.metadata instanceof t.API.TTFFont&&l.encoding==="WinAnsiEncoding"){for(var A=l.metadata.rawData,L="",p=0;p>"),c("endobj"),l.objectNumber=d();for(var k=0;k>"),c("endobj"),l.isAlreadyPutted=!0}})(o)}]);var a=function(o){var f,l=o.text||"",c=o.x,d=o.y,m=o.options||{},A=o.mutex||{},L=A.pdfEscape,p=A.activeFontKey,T=A.fonts,O=p,B="",k=0,Z="",$=T[O].encoding;if(T[O].encoding!=="Identity-H")return{text:l,x:c,y:d,options:m,mutex:A};for(Z=l,O=p,Array.isArray(l)&&(Z=l[0]),k=0;k","<","[","]","[","{","}","{","\xAB","\xBB","\xAB","\u2039","\u203A","\u2039","\u2045","\u2046","\u2045","\u207D","\u207E","\u207D","\u208D","\u208E","\u208D","\u2264","\u2265","\u2264","\u2329","\u232A","\u2329","\uFE59","\uFE5A","\uFE59","\uFE5B","\uFE5C","\uFE5B","\uFE5D","\uFE5E","\uFE5D","\uFE64","\uFE65","\uFE64"],k=new RegExp(/^([1-4|9]|1[0-9]|2[0-9]|3[0168]|4[04589]|5[012]|7[78]|159|16[0-9]|17[0-2]|21[569]|22[03489]|250)$/),Z=!1,$=0;this.__bidiEngine__={};var D=function(N){var F=N.charCodeAt(),U=F>>8,q=O[U];return q!==void 0?A[256*q+(255&F)]:U===252||U===253?"AL":k.test(U)?"L":U===8?"R":"N"},lt=function(N){for(var F,U=0;U=F.length||(it=U[q-1])!=="EN"&&it!=="AN"||(ft=F[q+1])!=="EN"&&ft!=="AN"?ut="N":Z&&(ft="AN"),ut=ft===it?ft:"N";break;case"ES":ut=(it=q>0?U[q-1]:"B")==="EN"&&q+10&&U[q-1]==="EN"){ut="EN";break}if(Z){ut="N";break}for(pt=q+1,nt=F.length;pt=1425&&At<=2303||At===64286;if(it=F[pt],yt&&(it==="R"||it==="AL")){ut="R";break}}}ut=q<1||(it=F[q-1])==="B"?"N":U[q-1];break;case"B":Z=!1,a=!0,ut=$;break;case"S":o=!0,ut="N"}return ut},mt=function(N,F,U){var q=N.split("");return U&&tt(q,U,{hiLevel:$}),q.reverse(),F&&F.reverse(),q.join("")},tt=function(N,F,U){var q,it,ft,pt,nt,ut=-1,At=N.length,yt=0,y=[],R=$?p:L,j=[];for(Z=!1,a=!1,o=!1,it=0;it0)if(q===16){for(it=ut;it-1){for(it=ut;it=0&&G[at]==="WS";at--)Y[at]=$}})(j,F,At)},z=function(N,F,U,q,it){if(!(it.hiLevel=N){for(nt=yt+1;nt=N;)nt++;for(ut=yt,pt=nt-1;ut=0&&(ft[At]=B[ut+1])})(q,U,it),z(2,q,F,U,it),z(1,q,F,U,it),q.join("")};return this.__bidiEngine__.doBidiReorder=function(N,F,U){if((function(it,ft){if(ft)for(var pt=0;pt>16)&&(e=-(1+(65535^e))),this.italicAngle=+(e+"."+i)):this.italicAngle=0,this.ascender=Math.round(this.ascender*this.scaleFactor),this.decender=Math.round(this.decender*this.scaleFactor),this.lineGap=Math.round(this.lineGap*this.scaleFactor),this.capHeight=this.os2.exists&&this.os2.capHeight||this.ascender,this.xHeight=this.os2.exists&&this.os2.xHeight||0,this.familyClass=(this.os2.exists&&this.os2.familyClass||0)>>8,this.isSerif=(o=this.familyClass)===1||o===2||o===3||o===4||o===5||o===7,this.isScript=this.familyClass===10,this.flags=0,this.post.isFixedPitch&&(this.flags|=1),this.isSerif&&(this.flags|=2),this.isScript&&(this.flags|=8),this.italicAngle!==0&&(this.flags|=64),this.flags|=32,!this.cmap.unicode)throw new Error("No unicode cmap for font")},t.prototype.characterToGlyph=function(n){var e;return((e=this.cmap.unicode)!=null?e.codeMap[n]:void 0)||0},t.prototype.widthOfGlyph=function(n){var e;return e=1e3/this.head.unitsPerEm,this.hmtx.forGlyph(n).advance*e},t.prototype.widthOfString=function(n,e,i){var a,o,f,l;for(f=0,o=0,l=(n=""+n).length;0<=l?ol;o=0<=l?++o:--o)a=n.charCodeAt(o),f+=this.widthOfGlyph(this.characterToGlyph(a))+i*(1e3/e)||0;return f*(e/1e3)},t.prototype.lineHeight=function(n,e){var i;return e==null&&(e=!1),i=e?this.lineGap:0,(this.ascender+i-this.decender)/1e3*n},t})();var si,hr=(function(){function t(n){this.data=n??[],this.pos=0,this.length=this.data.length}return t.prototype.readByte=function(){return this.data[this.pos++]},t.prototype.writeByte=function(n){return this.data[this.pos++]=n},t.prototype.readUInt32=function(){return 16777216*this.readByte()+(this.readByte()<<16)+(this.readByte()<<8)+this.readByte()},t.prototype.writeUInt32=function(n){return this.writeByte(n>>>24&255),this.writeByte(n>>16&255),this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt32=function(){var n;return(n=this.readUInt32())>=2147483648?n-4294967296:n},t.prototype.writeInt32=function(n){return n<0&&(n+=4294967296),this.writeUInt32(n)},t.prototype.readUInt16=function(){return this.readByte()<<8|this.readByte()},t.prototype.writeUInt16=function(n){return this.writeByte(n>>8&255),this.writeByte(255&n)},t.prototype.readInt16=function(){var n;return(n=this.readUInt16())>=32768?n-65536:n},t.prototype.writeInt16=function(n){return n<0&&(n+=65536),this.writeUInt16(n)},t.prototype.readString=function(n){var e,i;for(i=[],e=0;0<=n?en;e=0<=n?++e:--e)i[e]=String.fromCharCode(this.readByte());return i.join("")},t.prototype.writeString=function(n){var e,i,a;for(a=[],e=0,i=n.length;0<=i?ei;e=0<=i?++e:--e)a.push(this.writeByte(n.charCodeAt(e)));return a},t.prototype.readShort=function(){return this.readInt16()},t.prototype.writeShort=function(n){return this.writeInt16(n)},t.prototype.readLongLong=function(){var n,e,i,a,o,f,l,c;return n=this.readByte(),e=this.readByte(),i=this.readByte(),a=this.readByte(),o=this.readByte(),f=this.readByte(),l=this.readByte(),c=this.readByte(),128&n?-1*(72057594037927940*(255^n)+281474976710656*(255^e)+1099511627776*(255^i)+4294967296*(255^a)+16777216*(255^o)+65536*(255^f)+256*(255^l)+(255^c)+1):72057594037927940*n+281474976710656*e+1099511627776*i+4294967296*a+16777216*o+65536*f+256*l+c},t.prototype.writeLongLong=function(n){var e,i;return e=Math.floor(n/4294967296),i=4294967295&n,this.writeByte(e>>24&255),this.writeByte(e>>16&255),this.writeByte(e>>8&255),this.writeByte(255&e),this.writeByte(i>>24&255),this.writeByte(i>>16&255),this.writeByte(i>>8&255),this.writeByte(255&i)},t.prototype.readInt=function(){return this.readInt32()},t.prototype.writeInt=function(n){return this.writeInt32(n)},t.prototype.read=function(n){var e,i;for(e=[],i=0;0<=n?in;i=0<=n?++i:--i)e.push(this.readByte());return e},t.prototype.write=function(n){var e,i,a,o;for(o=[],i=0,a=n.length;io;a=0<=o?++a:--a)i={tag:e.readString(4),checksum:e.readInt(),offset:e.readInt(),length:e.readInt()},this.tables[i.tag]=i}return n.prototype.encode=function(e){var i,a,o,f,l,c,d,m,A,L,p,T,O;for(O in p=Object.keys(e).length,c=Math.log(2),A=16*Math.floor(Math.log(p)/c),f=Math.floor(A/c),m=16*p-A,(a=new hr).writeInt(this.scalarType),a.writeShort(p),a.writeShort(A),a.writeShort(f),a.writeShort(m),o=16*p,d=a.pos+o,l=null,T=[],e)for(L=e[O],a.writeString(O),a.writeInt(t(L)),a.writeInt(d),a.writeInt(L.length),T=T.concat(L),O==="head"&&(l=d),d+=L.length;d%4;)T.push(0),d++;return a.write(T),i=2981146554-t(a.data),a.pos=l+8,a.writeUInt32(i),a.data},t=function(e){var i,a,o,f;for(e=uu.call(e);e.length%4;)e.push(0);for(o=new hr(e),a=0,i=0,f=e.length;iL;c=0<=L?++D:--D)lt.push(n.readUInt16());return lt})(),n.pos+=2,O=(function(){var D,lt;for(lt=[],c=D=0;0<=L?DL;c=0<=L?++D:--D)lt.push(n.readUInt16());return lt})(),d=(function(){var D,lt;for(lt=[],c=D=0;0<=L?DL;c=0<=L?++D:--D)lt.push(n.readUInt16());return lt})(),m=(function(){var D,lt;for(lt=[],c=D=0;0<=L?DL;c=0<=L?++D:--D)lt.push(n.readUInt16());return lt})(),a=(this.length-n.pos+this.offset)/2,l=(function(){var D,lt;for(lt=[],c=D=0;0<=a?Da;c=0<=a?++D:--D)lt.push(n.readUInt16());return lt})(),c=k=0,$=o.length;k<$;c=++k)for(B=o[c],i=Z=T=O[c];T<=B?Z<=B:Z>=B;i=T<=B?++Z:--Z)m[c]===0?f=i+d[c]:(f=l[m[c]/2+(i-T)-(L-c)]||0)!==0&&(f+=d[c]),this.codeMap[i]=65535&f}n.pos=A}return t.encode=function(n,e){var i,a,o,f,l,c,d,m,A,L,p,T,O,B,k,Z,$,D,lt,_t,mt,tt,z,et,N,F,U,q,it,ft,pt,nt,ut,At,yt,y,R,j,G,Y,Q,rt,at,dt,xt,St;switch(q=new hr,f=Object.keys(n).sort(function(kt,zt){return kt-zt}),e){case"macroman":for(O=0,B=(function(){var kt=[];for(T=0;T<256;++T)kt.push(0);return kt})(),Z={0:0},o={},it=0,ut=f.length;it=32768)for(c.push(0),_t.push(2*(p.length+z-T)),a=nt=N;N<=m?nt<=m:nt>=m;a=N<=m?++nt:--nt)p.push(i[a].new);else c.push(U-N),_t.push(0)}for(q.writeUInt16(3),q.writeUInt16(1),q.writeUInt32(12),q.writeUInt16(4),q.writeUInt16(16+8*z+2*p.length),q.writeUInt16(0),q.writeUInt16(et),q.writeUInt16(tt),q.writeUInt16(L),q.writeUInt16(mt),Q=0,y=A.length;Qa;i=0<=a?++i:--i)e=new Qf(n,this.offset),this.tables.push(e),e.isUnicode&&this.unicode==null&&(this.unicode=e);return!0},t.encode=function(n,e){var i,a;return e==null&&(e="macroman"),i=Qf.encode(n,e),(a=new hr).writeUInt16(0),a.writeUInt16(1),i.table=a.data.concat(i.subtable),i},t})(),N5=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,si),t.prototype.tag="hhea",t.prototype.parse=function(n){return n.pos=this.offset,this.version=n.readInt(),this.ascender=n.readShort(),this.decender=n.readShort(),this.lineGap=n.readShort(),this.advanceWidthMax=n.readShort(),this.minLeftSideBearing=n.readShort(),this.minRightSideBearing=n.readShort(),this.xMaxExtent=n.readShort(),this.caretSlopeRise=n.readShort(),this.caretSlopeRun=n.readShort(),this.caretOffset=n.readShort(),n.pos+=8,this.metricDataFormat=n.readShort(),this.numberOfMetrics=n.readUInt16()},t})(),L5=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,si),t.prototype.tag="OS/2",t.prototype.parse=function(n){if(n.pos=this.offset,this.version=n.readUInt16(),this.averageCharWidth=n.readShort(),this.weightClass=n.readUInt16(),this.widthClass=n.readUInt16(),this.type=n.readShort(),this.ySubscriptXSize=n.readShort(),this.ySubscriptYSize=n.readShort(),this.ySubscriptXOffset=n.readShort(),this.ySubscriptYOffset=n.readShort(),this.ySuperscriptXSize=n.readShort(),this.ySuperscriptYSize=n.readShort(),this.ySuperscriptXOffset=n.readShort(),this.ySuperscriptYOffset=n.readShort(),this.yStrikeoutSize=n.readShort(),this.yStrikeoutPosition=n.readShort(),this.familyClass=n.readShort(),this.panose=(function(){var e,i;for(i=[],e=0;e<10;++e)i.push(n.readByte());return i})(),this.charRange=(function(){var e,i;for(i=[],e=0;e<4;++e)i.push(n.readInt());return i})(),this.vendorID=n.readString(4),this.selection=n.readShort(),this.firstCharIndex=n.readShort(),this.lastCharIndex=n.readShort(),this.version>0&&(this.ascent=n.readShort(),this.descent=n.readShort(),this.lineGap=n.readShort(),this.winAscent=n.readShort(),this.winDescent=n.readShort(),this.codePageRange=(function(){var e,i;for(i=[],e=0;e<2;e=++e)i.push(n.readInt());return i})(),this.version>1))return this.xHeight=n.readShort(),this.capHeight=n.readShort(),this.defaultChar=n.readShort(),this.breakChar=n.readShort(),this.maxContext=n.readShort()},t})(),S5=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,si),t.prototype.tag="post",t.prototype.parse=function(n){var e,i,a;switch(n.pos=this.offset,this.format=n.readInt(),this.italicAngle=n.readInt(),this.underlinePosition=n.readShort(),this.underlineThickness=n.readShort(),this.isFixedPitch=n.readInt(),this.minMemType42=n.readInt(),this.maxMemType42=n.readInt(),this.minMemType1=n.readInt(),this.maxMemType1=n.readInt(),this.format){case 65536:case 196608:break;case 131072:var o;for(i=n.readUInt16(),this.glyphNameIndex=[],o=0;0<=i?oi;o=0<=i?++o:--o)this.glyphNameIndex.push(n.readUInt16());for(this.names=[],a=[];n.posl;o=0<=l?++f:--f)c.push(n.readUInt32());return c}.call(this)}},t})(),k5=function(t,n){this.raw=t,this.length=t.length,this.platformID=n.platformID,this.encodingID=n.encodingID,this.languageID=n.languageID},P5=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,si),t.prototype.tag="name",t.prototype.parse=function(n){var e,i,a,o,f,l,c,d,m,A,L;for(n.pos=this.offset,n.readShort(),e=n.readShort(),l=n.readShort(),i=[],o=0;0<=e?oe;o=0<=e?++o:--o)i.push({platformID:n.readShort(),encodingID:n.readShort(),languageID:n.readShort(),nameID:n.readShort(),length:n.readShort(),offset:this.offset+l+n.readShort()});for(c={},o=m=0,A=i.length;ml;e=0<=l?++e:--e)this.metrics.push({advance:n.readUInt16(),lsb:n.readInt16()});for(a=this.file.maxp.numGlyphs-this.file.hhea.numberOfMetrics,this.leftSideBearings=(function(){var d,m;for(m=[],e=d=0;0<=a?da;e=0<=a?++d:--d)m.push(n.readInt16());return m})(),this.widths=function(){var d,m,A,L;for(L=[],d=0,m=(A=this.metrics).length;da;e=0<=a?++f:--f)c.push(this.widths.push(i));return c},t.prototype.forGlyph=function(n){return n in this.metrics?this.metrics[n]:{advance:this.metrics[this.metrics.length-1].advance,lsb:this.leftSideBearings[n-this.metrics.length]}},t})(),uu=[].slice,C5=(function(){function t(){return t.__super__.constructor.apply(this,arguments)}return Li(t,si),t.prototype.tag="glyf",t.prototype.parse=function(){return this.cache={}},t.prototype.glyphFor=function(n){var e,i,a,o,f,l,c,d,m,A;return n in this.cache?this.cache[n]:(o=this.file.loca,e=this.file.contents,i=o.indexOf(n),(a=o.lengthOf(n))===0?this.cache[n]=null:(e.pos=this.offset+i,f=(l=new hr(e.read(a))).readShort(),d=l.readShort(),A=l.readShort(),c=l.readShort(),m=l.readShort(),this.cache[n]=f===-1?new O5(l,d,A,c,m):new F5(l,f,d,A,c,m),this.cache[n]))},t.prototype.encode=function(n,e,i){var a,o,f,l,c;for(f=[],o=[],l=0,c=e.length;l0&&(a+=c)}for(var d=new Array(4*i.length),m=0;m>8,d[4*m+1]=(16711680&i[m])>>16,d[4*m]=(4278190080&i[m])>>24;return d},t})(),R5=(function(){function t(n){this.font=n,this.subset={},this.unicodes={},this.next=33}return t.prototype.generateCmap=function(){var n,e,i,a,o;for(e in a=this.font.cmap.tables[0].codeMap,n={},o=this.subset)i=o[e],n[e]=a[i];return n},t.prototype.glyphsFor=function(n){var e,i,a,o,f,l,c;for(a={},f=0,l=n.length;f0)for(o in c=this.glyphsFor(e))i=c[o],a[o]=i;return a},t.prototype.encode=function(n,e){var i,a,o,f,l,c,d,m,A,L,p,T,O,B,k;for(a in i=fu.encode(this.generateCmap(),"unicode"),f=this.glyphsFor(n),p={0:0},k=i.charMap)p[(c=k[a]).old]=c.new;for(T in L=i.maxGlyphID,f)T in p||(p[T]=L++);return m=(function(Z){var $,D;for($ in D={},Z)D[Z[$]]=$;return D})(p),A=Object.keys(m).sort(function(Z,$){return Z-$}),O=(function(){var Z,$,D;for(D=[],Z=0,$=A.length;Z<$;Z++)l=A[Z],D.push(m[l]);return D})(),o=this.font.glyf.encode(f,O,p),d=this.font.loca.encode(o.offsets,O),B={cmap:this.font.cmap.raw(),glyf:o.table,loca:d,hmtx:this.font.hmtx.raw(),hhea:this.font.hhea.raw(),maxp:this.font.maxp.raw(),post:this.font.post.raw(),name:this.font.name.raw(),head:this.font.head.encode(e)},this.font.os2.exists&&(B["OS/2"]=this.font.os2.raw()),this.font.directory.encode(B)},t})();Mt.API.PDFObject=(function(){var t;function n(){}return t=function(e,i){return(Array(i+1).join("0")+e).slice(-i)},n.convert=function(e){var i,a,o,f;if(Array.isArray(e))return"["+(function(){var l,c,d;for(d=[],l=0,c=e.length;l>"),o.join(` +`)}return""+e},n})();export{Kd as AcroForm,It as AcroFormAppearance,on as AcroFormButton,Ps as AcroFormCheckBox,La as AcroFormChoiceField,ka as AcroFormComboBox,Ss as AcroFormEditBox,Sa as AcroFormListBox,Es as AcroFormPasswordField,ks as AcroFormPushButton,Pa as AcroFormRadioButton,Dr as AcroFormTextField,Is as GState,Mr as ShadingPattern,Na as TilingPattern,Mt as default,Mt as jsPDF}; diff --git a/docs/favicon.ico b/docs/favicon.ico new file mode 100644 index 0000000..997406a Binary files /dev/null and b/docs/favicon.ico differ diff --git a/docs/index.html b/docs/index.html new file mode 100644 index 0000000..9c9c737 --- /dev/null +++ b/docs/index.html @@ -0,0 +1,21 @@ + + + + + Ignite UI for Angular + + + + + + + + + + + + + + + + diff --git a/docs/main-OPMZFICU.js b/docs/main-OPMZFICU.js new file mode 100644 index 0000000..626874f --- /dev/null +++ b/docs/main-OPMZFICU.js @@ -0,0 +1,141 @@ +var __esmMin=(fn,res,err)=>()=>{if(err)throw err[0];try{return fn&&(res=fn(fn=0)),res}catch(e){throw err=[e],e}};var __commonJSMin=(cb,mod)=>()=>(mod||(cb((mod={exports:{}}).exports,mod),cb=null),mod.exports);var Z,M,or,sr,fr,cr,wr,mr,Dr,er,xr,pr,ir,L,h$1,k,V,d,Tr,Cr,Br,Mr,Or;var init_chunk_Q53QGVUD=__esmMin((()=>{Z=Uint8Array;M=Uint16Array;or=Int32Array;sr=new Z([0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0,0,0,0]);fr=new Z([0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13,0,0]);cr=new Z([16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15]);wr=function(r,n){for(var e=new M(31),t=0;t<31;++t)e[t]=n+=1<>1|(h$1&21845)<<1,L=(L&52428)>>2|(L&13107)<<2,L=(L&61680)>>4|(L&3855)<<4,ir[h$1]=((L&65280)>>8|(L&255)<<8)>>1;;;k=(function(r,n,e){for(var t=r.length,i=0,a=new M(n);i>v]=p}else for(l=new M(t),i=0;i>15-r[i]);return l});V=new Z(288);for(h$1=0;h$1<144;++h$1)V[h$1]=8;;for(h$1=144;h$1<256;++h$1)V[h$1]=9;;for(h$1=256;h$1<280;++h$1)V[h$1]=7;;for(h$1=280;h$1<288;++h$1)V[h$1]=8;;d=new Z(32);for(h$1=0;h$1<32;++h$1)d[h$1]=5;;Tr=k(V,9,0);Cr=k(d,5,0);Br=new or([65540,131080,131088,131104,262176,1048704,1048832,2114560,2117632]);Mr=new Z(0);Or=typeof TextDecoder<`u`&&new TextDecoder;try{Or.decode(Mr,{stream:!0})}catch{}}));var g,l,n,f,h,j,i,r,s,t;var init_chunk_IFGU66OU=__esmMin((()=>{g=Object.defineProperty;l=Object.defineProperties;n=Object.getOwnPropertyDescriptors;f=Object.getOwnPropertySymbols;h=Object.prototype.hasOwnProperty;j=Object.prototype.propertyIsEnumerable;i=(a,b,c)=>b in a?g(a,b,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[b]=c;r=(a,b)=>{for(var c in b||={})h.call(b,c)&&i(a,c,b[c]);if(f)for(var c of f(b))j.call(b,c)&&i(a,c,b[c]);return a};s=(a,b)=>l(a,n(b));t=(a,b)=>{var c={};for(var d in a)h.call(a,d)&&b.indexOf(d)<0&&(c[d]=a[d]);if(a!=null&&f)for(var d of f(a))b.indexOf(d)<0&&j.call(a,d)&&(c[d]=a[d]);return c}}));var require_main_OPMZFICU=__commonJSMin(((exports,module)=>{init_chunk_Q53QGVUD();init_chunk_IFGU66OU();var Po=null;var JS=!1;var yp=1;var UJ=null;var Cr=Symbol(`SIGNAL`);function It(r){let t=Po;return Po=r,t}function ew(){return Po}var wh={version:0,lastCleanEpoch:0,dirty:!1,producers:void 0,producersTail:void 0,consumers:void 0,consumersTail:void 0,recomputing:!1,consumerAllowSignalWrites:!1,consumerIsAlwaysLive:!1,kind:`unknown`,producerMustRecompute:()=>!1,producerRecomputeValue:()=>{},consumerMarkedDirty:()=>{},consumerOnSignalRead:()=>{}};function Ch(r){if(JS)throw new Error(``);if(Po===null)return;Po.consumerOnSignalRead(r);let t=Po.producersTail;if(t!==void 0&&t.producer===r)return;let e,i=Po.recomputing;if(i&&(e=t!==void 0?t.nextProducer:Po.producers,e!==void 0&&e.producer===r)){Po.producersTail=e,e.lastReadVersion=r.version,e.knownValidAtEpoch=yp;return}let n=r.consumersTail;if(n!==void 0&&n.consumer===Po&&(!i||n.knownValidAtEpoch===yp))return;let s=qm(Po),o={producer:r,consumer:Po,nextProducer:e,prevConsumer:void 0,knownValidAtEpoch:yp,lastReadVersion:r.version,nextConsumer:void 0};Po.producersTail=o,t!==void 0?t.nextProducer=o:Po.producers=o,s&&BL(r,o)}function VL(){yp++}function bp(r){if(!(qm(r)&&!r.dirty)&&!(!r.dirty&&r.lastCleanEpoch===yp)){if(!r.producerMustRecompute(r)&&!Hm(r)){jm(r);return}r.producerRecomputeValue(r),jm(r)}}function VT(r){if(r.consumers===void 0)return;let t=JS;JS=!0;try{for(let e=r.consumers;e!==void 0;e=e.nextConsumer){let i=e.consumer;i.dirty||WJ(i)}}finally{JS=t}}function $T(){return Po?.consumerAllowSignalWrites!==!1}function WJ(r){r.dirty=!0,VT(r),r.consumerMarkedDirty?.(r)}function jm(r){r.dirty=!1,r.lastCleanEpoch=yp}function Jd(r){return r&&$L(r),It(r)}function $L(r){if(r.producersTail?.knownValidAtEpoch===yp){let t=r.producers;for(;t!==void 0;)t.knownValidAtEpoch=null,t=t.nextProducer}r.producersTail=void 0,r.recomputing=!0}function Ih(r,t){It(t),r&&zL(r)}function zL(r){r.recomputing=!1;let t=r.producersTail,e=t!==void 0?t.nextProducer:r.producers;if(e!==void 0){if(qm(r))do e=zT(e);while(e!==void 0);t!==void 0?t.nextProducer=void 0:r.producers=void 0}}function Hm(r){for(let t=r.producers;t!==void 0;t=t.nextProducer){let e=t.producer,i=t.lastReadVersion;if(i!==e.version||(bp(e),i!==e.version))return!0}return!1}function Nh(r){if(qm(r)){let t=r.producers;for(;t!==void 0;)t=zT(t)}r.producers=void 0,r.producersTail=void 0,r.consumers=void 0,r.consumersTail=void 0}function BL(r,t){let e=r.consumersTail,i=qm(r);if(e!==void 0?(t.nextConsumer=e.nextConsumer,e.nextConsumer=t):(t.nextConsumer=void 0,r.consumers=t),t.prevConsumer=e,r.consumersTail=t,!i)for(let n=r.producers;n!==void 0;n=n.nextProducer)BL(n.producer,n)}function zT(r){let t=r.producer,e=r.nextProducer,i=r.nextConsumer,n=r.prevConsumer;if(r.nextConsumer=void 0,r.prevConsumer=void 0,i!==void 0?i.prevConsumer=n:t.consumersTail=n,n!==void 0)n.nextConsumer=i;else if(t.consumers=i,!qm(t)){let s=t.producers;for(;s!==void 0;)s=zT(s)}return e}function qm(r){return r.consumerIsAlwaysLive||r.consumers!==void 0}function n_(r){UJ?.(r)}function r_(r,t){return Object.is(r,t)}function s_(r,t){let e=Object.create(KJ);e.computation=r,t!==void 0&&(e.equal=t);let i=()=>{if(bp(e),Ch(e),e.value===Bc)throw e.error;return e.value};return i[Cr]=e,n_(e),i}var _p=Symbol(`UNSET`);var vp=Symbol(`COMPUTING`);var Bc=Symbol(`ERRORED`);var KJ=s(r({},wh),{value:_p,dirty:!0,error:null,equal:r_,kind:`computed`,producerMustRecompute(r){return r.value===_p||r.value===vp},producerRecomputeValue(r){if(r.value===vp)throw new Error(``);let t=r.value;r.value=vp;let e=Jd(r),i,n=!1;try{i=r.computation(),It(null),n=t!==_p&&t!==Bc&&i!==Bc&&r.equal(t,i)}catch(s){i=Bc,r.error=s}finally{Ih(r,e)}if(n){r.value=t;return}r.value=i,r.version++}});function YJ(){throw new Error}var jL=YJ;function HL(r){jL(r)}function BT(r){jL=r}var QJ=null;function jT(r,t){let e=Object.create(o_);e.value=r,t!==void 0&&(e.equal=t);let i=()=>qL(e);return i[Cr]=e,n_(e),[i,o=>Sp(e,o),o=>tw(e,o)]}function qL(r){return Ch(r),r.value}function Sp(r,t){$T()||HL(r),r.equal(r.value,t)||(r.value=t,XJ(r))}function tw(r,t){$T()||HL(r),Sp(r,t(r.value))}var o_=s(r({},wh),{equal:r_,value:void 0,kind:`signal`});function XJ(r){r.version++,VL(),VT(r),QJ?.(r)}var HT=s(r({},wh),{consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,dirty:!0,kind:`effect`});function qT(r){if(r.dirty=!1,r.version>0&&!Hm(r))return;r.version++;let t=Jd(r);try{r.cleanup(),r.fn()}finally{Ih(r,t)}}var GT;function iw(){return GT}function jc(r){let t=GT;return GT=r,t}var GL=Symbol(`NotFound`);function Gm(r){return r===GL||r?.name===`ɵNotFound`}function UT(r,t,e){let i=Object.create(ZJ);i.source=r,i.computation=t,e!=null&&(i.equal=e);let s=()=>{if(bp(i),Ch(i),i.value===Bc)throw i.error;return i.value};return s[Cr]=i,n_(i),s}function WT(r,t){bp(r),Sp(r,t),jm(r)}function UL(r,t){if(bp(r),r.value===Bc)throw r.error;tw(r,t),jm(r)}var ZJ=s(r({},wh),{value:_p,dirty:!0,error:null,equal:r_,kind:`linkedSignal`,producerMustRecompute(r){return r.value===_p||r.value===vp},producerRecomputeValue(r){if(r.value===vp)throw new Error(``);let t=r.value;r.value=vp;let e=Jd(r),i,n=!1;try{let s=r.source(),o=t!==_p&&t!==Bc,a=o?{source:r.sourceValue,value:t}:void 0;i=r.computation(s,a),r.sourceValue=s,It(null),n=o&&i!==Bc&&r.equal(t,i)}catch(s){i=Bc,r.error=s}finally{Ih(r,e)}if(n){r.value=t;return}r.value=i,r.version++}});function WL(r){let t=It(null);try{return r()}finally{It(t)}}function Ot(r){return typeof r==`function`}function Um(r){let e=r(i=>{Error.call(i),i.stack=new Error().stack});return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}var nw=Um(r=>function(e){r(this),this.message=e?`${e.length} errors occurred during unsubscription: +${e.map((i,n)=>`${n+1}) ${i.toString()}`).join(` + `)}`:``,this.name=`UnsubscriptionError`,this.errors=e});function wp(r,t){if(r){let e=r.indexOf(t);0<=e&&r.splice(e,1)}}var Yn=class r{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:e}=this;if(e)if(this._parentage=null,Array.isArray(e))for(let s of e)s.remove(this);else e.remove(this);let{initialTeardown:i}=this;if(Ot(i))try{i()}catch(s){t=s instanceof nw?s.errors:[s]}let{_finalizers:n}=this;if(n){this._finalizers=null;for(let s of n)try{KL(s)}catch(o){t=t??[],o instanceof nw?t=[...t,...o.errors]:t.push(o)}}if(t)throw new nw(t)}}add(t){var e;if(t&&t!==this)if(this.closed)KL(t);else{if(t instanceof r){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(e=this._finalizers)!==null&&e!==void 0?e:[]).push(t)}}_hasParent(t){let{_parentage:e}=this;return e===t||Array.isArray(e)&&e.includes(t)}_addParent(t){let{_parentage:e}=this;this._parentage=Array.isArray(e)?(e.push(t),e):e?[e,t]:t}_removeParent(t){let{_parentage:e}=this;e===t?this._parentage=null:Array.isArray(e)&&wp(e,t)}remove(t){let{_finalizers:e}=this;e&&wp(e,t),t instanceof r&&t._removeParent(this)}};Yn.EMPTY=(()=>{let r=new Yn;return r.closed=!0,r})();var KT=Yn.EMPTY;function rw(r){return r instanceof Yn||r&&`closed`in r&&Ot(r.remove)&&Ot(r.add)&&Ot(r.unsubscribe)}function KL(r){Ot(r)?r():r.unsubscribe()}var jl={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1};var Wm={setTimeout(r,t,...e){let{delegate:i}=Wm;return i?.setTimeout?i.setTimeout(r,t,...e):setTimeout(r,t,...e)},clearTimeout(r){let{delegate:t}=Wm;return(t?.clearTimeout||clearTimeout)(r)},delegate:void 0};function sw(r){Wm.setTimeout(()=>{let{onUnhandledError:t}=jl;if(t)t(r);else throw r})}function pi(){}var YL=YT(`C`,void 0,void 0);function QL(r){return YT(`E`,void 0,r)}function XL(r){return YT(`N`,r,void 0)}function YT(r,t,e){return{kind:r,value:t,error:e}}var Cp=null;function Km(r){if(jl.useDeprecatedSynchronousErrorHandling){let t=!Cp;if(t&&(Cp={errorThrown:!1,error:null}),r(),t){let{errorThrown:e,error:i}=Cp;if(Cp=null,e)throw i}}else r()}function ZL(r){jl.useDeprecatedSynchronousErrorHandling&&Cp&&(Cp.errorThrown=!0,Cp.error=r)}var Ip=class extends Yn{constructor(t){super(),this.isStopped=!1,t?(this.destination=t,rw(t)&&t.add(this)):this.destination=tee}static create(t,e,i){return new eu(t,e,i)}next(t){this.isStopped?XT(XL(t),this):this._next(t)}error(t){this.isStopped?XT(QL(t),this):(this.isStopped=!0,this._error(t))}complete(){this.isStopped?XT(YL,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()}}};var JJ=Function.prototype.bind;function QT(r,t){return JJ.call(r,t)}var ZT=class{constructor(t){this.partialObserver=t}next(t){let{partialObserver:e}=this;if(e.next)try{e.next(t)}catch(i){ow(i)}}error(t){let{partialObserver:e}=this;if(e.error)try{e.error(t)}catch(i){ow(i)}else ow(t)}complete(){let{partialObserver:t}=this;if(t.complete)try{t.complete()}catch(e){ow(e)}}};var eu=class extends Ip{constructor(t,e,i){super();let n;if(Ot(t)||!t)n={next:t??void 0,error:e??void 0,complete:i??void 0};else{let s;this&&jl.useDeprecatedNextContext?(s=Object.create(t),s.unsubscribe=()=>this.unsubscribe(),n={next:t.next&&QT(t.next,s),error:t.error&&QT(t.error,s),complete:t.complete&&QT(t.complete,s)}):n=t}this.destination=new ZT(n)}};function ow(r){jl.useDeprecatedSynchronousErrorHandling?ZL(r):sw(r)}function eee(r){throw r}function XT(r,t){let{onStoppedNotification:e}=jl;e&&Wm.setTimeout(()=>e(r,t))}var tee={closed:!0,next:pi,error:eee,complete:pi};var Ym=typeof Symbol==`function`&&Symbol.observable||`@@observable`;function wa(r){return r}function a_(...r){return JT(r)}function JT(r){return r.length===0?wa:r.length===1?r[0]:function(e){return r.reduce((i,n)=>n(i),e)}}var $t=class r{constructor(t){t&&(this._subscribe=t)}lift(t){let e=new r;return e.source=this,e.operator=t,e}subscribe(t,e,i){let n=nee(t)?t:new eu(t,e,i);return Km(()=>{let{operator:s,source:o}=this;n.add(s?s.call(n,o):o?this._subscribe(n):this._trySubscribe(n))}),n}_trySubscribe(t){try{return this._subscribe(t)}catch(e){t.error(e)}}forEach(t,e){return e=JL(e),new e((i,n)=>{let s=new eu({next:o=>{try{t(o)}catch(a){n(a),s.unsubscribe()}},error:n,complete:i});this.subscribe(s)})}_subscribe(t){var e;return(e=this.source)===null||e===void 0?void 0:e.subscribe(t)}[Ym](){return this}pipe(...t){return JT(t)(this)}toPromise(t){return t=JL(t),new t((e,i)=>{let n;this.subscribe(s=>n=s,s=>i(s),()=>e(n))})}};$t.create=r=>new $t(r);function JL(r){var t;return(t=r??jl.Promise)!==null&&t!==void 0?t:Promise}function iee(r){return r&&Ot(r.next)&&Ot(r.error)&&Ot(r.complete)}function nee(r){return r&&r instanceof Ip||iee(r)&&rw(r)}function ree(r){return Ot(r?.lift)}function Xt(r){return t=>{if(ree(t))return t.lift(function(e){try{return r(e,this)}catch(i){this.error(i)}});throw new TypeError(`Unable to lift unknown Observable type`)}}function Yt(r,t,e,i,n){return new eM(r,t,e,i,n)}var eM=class extends Ip{constructor(t,e,i,n,s,o){super(t),this.onFinalize=s,this.shouldUnsubscribe=o,this._next=e?function(a){try{e(a)}catch(l){t.error(l)}}:super._next,this._error=n?function(a){try{n(a)}catch(l){t.error(l)}finally{this.unsubscribe()}}:super._error,this._complete=i?function(){try{i()}catch(a){t.error(a)}finally{this.unsubscribe()}}:super._complete}unsubscribe(){var t;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){let{closed:e}=this;super.unsubscribe(),!e&&((t=this.onFinalize)===null||t===void 0||t.call(this))}}};var Qm={schedule(r){let t=requestAnimationFrame,e=cancelAnimationFrame,{delegate:i}=Qm;i&&(t=i.requestAnimationFrame,e=i.cancelAnimationFrame);let n=t(s=>{e=void 0,r(s)});return new Yn(()=>e?.(n))},requestAnimationFrame(...r){let{delegate:t}=Qm;return(t?.requestAnimationFrame||requestAnimationFrame)(...r)},cancelAnimationFrame(...r){let{delegate:t}=Qm;return(t?.cancelAnimationFrame||cancelAnimationFrame)(...r)},delegate:void 0};var eV=Um(r=>function(){r(this),this.name=`ObjectUnsubscribedError`,this.message=`object unsubscribed`});var Te=class extends $t{constructor(){super(),this.closed=!1,this.currentObservers=null,this.observers=[],this.isStopped=!1,this.hasError=!1,this.thrownError=null}lift(t){let e=new aw(this,this);return e.operator=t,e}_throwIfClosed(){if(this.closed)throw new eV}next(t){Km(()=>{if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));for(let e of this.currentObservers)e.next(t)}})}error(t){Km(()=>{if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;let{observers:e}=this;for(;e.length;)e.shift().error(t)}})}complete(){Km(()=>{if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;let{observers:t}=this;for(;t.length;)t.shift().complete()}})}unsubscribe(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null}get observed(){var t;return((t=this.observers)===null||t===void 0?void 0:t.length)>0}_trySubscribe(t){return this._throwIfClosed(),super._trySubscribe(t)}_subscribe(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)}_innerSubscribe(t){let{hasError:e,isStopped:i,observers:n}=this;return e||i?KT:(this.currentObservers=null,n.push(t),new Yn(()=>{this.currentObservers=null,wp(n,t)}))}_checkFinalizedStatuses(t){let{hasError:e,thrownError:i,isStopped:n}=this;e?t.error(i):n&&t.complete()}asObservable(){let t=new $t;return t.source=this,t}};Te.create=(r,t)=>new aw(r,t);var aw=class extends Te{constructor(t,e){super(),this.destination=t,this.source=e}next(t){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.next)===null||i===void 0||i.call(e,t)}error(t){var e,i;(i=(e=this.destination)===null||e===void 0?void 0:e.error)===null||i===void 0||i.call(e,t)}complete(){var t,e;(e=(t=this.destination)===null||t===void 0?void 0:t.complete)===null||e===void 0||e.call(t)}_subscribe(t){var e,i;return(i=(e=this.source)===null||e===void 0?void 0:e.subscribe(t))!==null&&i!==void 0?i:KT}};var Ir=class extends Te{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){let e=super._subscribe(t);return!e.closed&&t.next(this._value),e}getValue(){let{hasError:t,thrownError:e,_value:i}=this;if(t)throw e;return this._throwIfClosed(),i}next(t){super.next(this._value=t)}};var l_={now(){return(l_.delegate||Date).now()},delegate:void 0};var c_=class extends Te{constructor(t=Infinity,e=Infinity,i=l_){super(),this._bufferSize=t,this._windowTime=e,this._timestampProvider=i,this._buffer=[],this._infiniteTimeWindow=!0,this._infiniteTimeWindow=e===Infinity,this._bufferSize=Math.max(1,t),this._windowTime=Math.max(1,e)}next(t){let{isStopped:e,_buffer:i,_infiniteTimeWindow:n,_timestampProvider:s,_windowTime:o}=this;e||(i.push(t),!n&&i.push(s.now()+o)),this._trimBuffer(),super.next(t)}_subscribe(t){this._throwIfClosed(),this._trimBuffer();let e=this._innerSubscribe(t),{_infiniteTimeWindow:i,_buffer:n}=this,s=n.slice();for(let o=0;o{class r{constructor(e,i=r.now){this.schedulerActionCtor=e,this.now=i}schedule(e,i=0,n){return new this.schedulerActionCtor(this,e).schedule(n,i)}}return r.now=l_.now,r})();var Zm=class extends tM{constructor(t,e=tM.now){super(t,e),this.actions=[],this._active=!1}flush(t){let{actions:e}=this;if(this._active){e.push(t);return}let i;this._active=!0;do if(i=t.execute(t.state,t.delay))break;while(t=e.shift());if(this._active=!1,i){for(;t=e.shift();)t.unsubscribe();throw i}}};var tu=new Zm(Xm);var tV=tu;var cw=class extends Xm{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}requestAsyncId(t,e,i=0){return i!==null&&i>0?super.requestAsyncId(t,e,i):(t.actions.push(this),t._scheduled||(t._scheduled=Qm.requestAnimationFrame(()=>t.flush(void 0))))}recycleAsyncId(t,e,i=0){var n;if(i!=null?i>0:this.delay>0)return super.recycleAsyncId(t,e,i);let{actions:s}=t;e!=null&&e===t._scheduled&&((n=s[s.length-1])===null||n===void 0?void 0:n.id)!==e&&(Qm.cancelAnimationFrame(e),t._scheduled=void 0)}};var dw=class extends Zm{flush(t){this._active=!0;let e;t?e=t.id:(e=this._scheduled,this._scheduled=void 0);let{actions:i}=this,n;t=t||i.shift();do if(n=t.execute(t.state,t.delay))break;while((t=i[0])&&t.id===e&&i.shift());if(this._active=!1,n){for(;(t=i[0])&&t.id===e&&i.shift();)t.unsubscribe();throw n}}};var ao=new dw(cw);var rs=new $t(r=>r.complete());function uw(r){return r&&Ot(r.schedule)}function iM(r){return r[r.length-1]}function hw(r){return Ot(iM(r))?r.pop():void 0}function Hc(r){return uw(iM(r))?r.pop():void 0}function iV(r,t){return typeof iM(r)==`number`?r.pop():t}function ft(r,t,e,i){var n=arguments.length,s=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,e):i,o;if(typeof Reflect==`object`&&typeof Reflect.decorate==`function`)s=Reflect.decorate(r,t,e,i);else for(var a=r.length-1;a>=0;a--)(o=r[a])&&(s=(n<3?o(s):n>3?o(t,e,s):o(t,e))||s);return n>3&&s&&Object.defineProperty(t,e,s),s}function rV(r,t,e,i){function n(s){return s instanceof e?s:new e(function(o){o(s)})}return new(e||(e=Promise))(function(s,o){function a(d){try{c(i.next(d))}catch(u){o(u)}}function l(d){try{c(i.throw(d))}catch(u){o(u)}}function c(d){d.done?s(d.value):n(d.value).then(a,l)}c((i=i.apply(r,t||[])).next())})}function nV(r){var t=typeof Symbol==`function`&&Symbol.iterator,e=t&&r[t],i=0;if(e)return e.call(r);if(r&&typeof r.length==`number`)return{next:function(){return r&&i>=r.length&&(r=void 0),{value:r&&r[i++],done:!r}}};throw new TypeError(t?`Object is not iterable.`:`Symbol.iterator is not defined.`)}function Np(r){return this instanceof Np?(this.v=r,this):new Np(r)}function sV(r,t,e){if(!Symbol.asyncIterator)throw new TypeError(`Symbol.asyncIterator is not defined.`);var i=e.apply(r,t||[]),n,s=[];return n=Object.create((typeof AsyncIterator==`function`?AsyncIterator:Object).prototype),a(`next`),a(`throw`),a(`return`,o),n[Symbol.asyncIterator]=function(){return this},n;function o(g){return function(p){return Promise.resolve(p).then(g,u)}}function a(g,p){i[g]&&(n[g]=function(y){return new Promise(function(_,w){s.push([g,y,_,w])>1||l(g,y)})},p&&(n[g]=p(n[g])))}function l(g,p){try{c(i[g](p))}catch(y){h(s[0][3],y)}}function c(g){g.value instanceof Np?Promise.resolve(g.value.v).then(d,u):h(s[0][2],g)}function d(g){l(`next`,g)}function u(g){l(`throw`,g)}function h(g,p){g(p),s.shift(),s.length&&l(s[0][0],s[0][1])}}function oV(r){if(!Symbol.asyncIterator)throw new TypeError(`Symbol.asyncIterator is not defined.`);var t=r[Symbol.asyncIterator],e;return t?t.call(r):(r=typeof nV==`function`?nV(r):r[Symbol.iterator](),e={},i(`next`),i(`throw`),i(`return`),e[Symbol.asyncIterator]=function(){return this},e);function i(s){e[s]=r[s]&&function(o){return new Promise(function(a,l){o=r[s](o),n(a,l,o.done,o.value)})}}function n(s,o,a,l){Promise.resolve(l).then(function(c){s({value:c,done:a})},o)}}var Jm=(r=>r&&typeof r.length==`number`&&typeof r!=`function`);function gw(r){return Ot(r?.then)}function pw(r){return Ot(r[Ym])}function fw(r){return Symbol.asyncIterator&&Ot(r?.[Symbol.asyncIterator])}function mw(r){return new TypeError(`You provided ${r!==null&&typeof r==`object`?`an invalid object`:`'${r}'`} where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.`)}function see(){return typeof Symbol!=`function`||!Symbol.iterator?`@@iterator`:Symbol.iterator}var xw=see();function yw(r){return Ot(r?.[xw])}function _w(r){return sV(this,arguments,function*(){let e=r.getReader();try{for(;;){let{value:i,done:n}=yield Np(e.read());if(n)return yield Np(void 0);yield yield Np(i)}}finally{e.releaseLock()}})}function vw(r){return Ot(r?.getReader)}function Ki(r){if(r instanceof $t)return r;if(r!=null){if(pw(r))return oee(r);if(Jm(r))return aee(r);if(gw(r))return lee(r);if(fw(r))return aV(r);if(yw(r))return cee(r);if(vw(r))return dee(r)}throw mw(r)}function oee(r){return new $t(t=>{let e=r[Ym]();if(Ot(e.subscribe))return e.subscribe(t);throw new TypeError(`Provided object does not correctly implement Symbol.observable`)})}function aee(r){return new $t(t=>{for(let e=0;e{r.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,sw)})}function cee(r){return new $t(t=>{for(let e of r)if(t.next(e),t.closed)return;t.complete()})}function aV(r){return new $t(t=>{uee(r,t).catch(e=>t.error(e))})}function dee(r){return aV(_w(r))}function uee(r,t){var e,i,n,s;return rV(this,void 0,void 0,function*(){try{for(e=oV(r);i=yield e.next(),!i.done;){let o=i.value;if(t.next(o),t.closed)return}}catch(o){n={error:o}}finally{try{i&&!i.done&&(s=e.return)&&(yield s.call(e))}finally{if(n)throw n.error}}t.complete()})}function ia(r,t,e,i=0,n=!1){let s=t.schedule(function(){e(),n?r.add(this.schedule(null,i)):this.unsubscribe()},i);if(r.add(s),!n)return s}function bw(r,t=0){return Xt((e,i)=>{e.subscribe(Yt(i,n=>ia(i,r,()=>i.next(n),t),()=>ia(i,r,()=>i.complete(),t),n=>ia(i,r,()=>i.error(n),t)))})}function Sw(r,t=0){return Xt((e,i)=>{i.add(r.schedule(()=>e.subscribe(i),t))})}function lV(r,t){return Ki(r).pipe(Sw(t),bw(t))}function cV(r,t){return Ki(r).pipe(Sw(t),bw(t))}function dV(r,t){return new $t(e=>{let i=0;return t.schedule(function(){i===r.length?e.complete():(e.next(r[i++]),e.closed||this.schedule())})})}function uV(r,t){return new $t(e=>{let i;return ia(e,t,()=>{i=r[xw](),ia(e,t,()=>{let n,s;try{({value:n,done:s}=i.next())}catch(o){e.error(o);return}s?e.complete():e.next(n)},0,!0)}),()=>Ot(i?.return)&&i.return()})}function ww(r,t){if(!r)throw new Error(`Iterable cannot be null`);return new $t(e=>{ia(e,t,()=>{let i=r[Symbol.asyncIterator]();ia(e,t,()=>{i.next().then(n=>{n.done?e.complete():e.next(n.value)})},0,!0)})})}function hV(r,t){return ww(_w(r),t)}function gV(r,t){if(r!=null){if(pw(r))return lV(r,t);if(Jm(r))return dV(r,t);if(gw(r))return cV(r,t);if(fw(r))return ww(r,t);if(yw(r))return uV(r,t);if(vw(r))return hV(r,t)}throw mw(r)}function Qn(r,t){return t?gV(r,t):Ki(r)}function fi(...r){return Qn(r,Hc(r))}function nM(r,t){let e=Ot(r)?r:()=>r,i=n=>n.error(e());return new $t(t?n=>t.schedule(i,0,n):i)}function Cw(r){return!!r&&(r instanceof $t||Ot(r.lift)&&Ot(r.subscribe))}var Dp=Um(r=>function(){r(this),this.name=`EmptyError`,this.message=`no elements in sequence`});function pV(r){return r instanceof Date&&!isNaN(r)}function $i(r,t){return Xt((e,i)=>{let n=0;e.subscribe(Yt(i,s=>{i.next(r.call(t,s,n++))}))})}var{isArray:hee}=Array;function gee(r,t){return hee(t)?r(...t):r(t)}function e0(r){return $i(t=>gee(r,t))}var{isArray:pee}=Array,{getPrototypeOf:fee,prototype:mee,keys:xee}=Object;function Iw(r){if(r.length===1){let t=r[0];if(pee(t))return{args:t,keys:null};if(yee(t)){let e=xee(t);return{args:e.map(i=>t[i]),keys:e}}}return{args:r,keys:null}}function yee(r){return r&&typeof r==`object`&&fee(r)===mee}function Nw(r,t){return r.reduce((e,i,n)=>(e[i]=t[n],e),{})}function rM(...r){let t=Hc(r),e=hw(r),{args:i,keys:n}=Iw(r);if(i.length===0)return Qn([],t);let s=new $t(_ee(i,t,n?o=>Nw(n,o):wa));return e?s.pipe(e0(e)):s}function _ee(r,t,e=wa){return i=>{fV(t,()=>{let{length:n}=r,s=new Array(n),o=n,a=n;for(let l=0;l{let c=Qn(r[l],t),d=!1;c.subscribe(Yt(i,u=>{s[l]=u,d||(d=!0,a--),a||i.next(e(s.slice()))},()=>{--o||i.complete()}))},i)},i)}}function fV(r,t,e){r?ia(e,r,t):t()}function mV(r,t,e,i,n,s,o,a){let l=[],c=0,d=0,u=!1,h=()=>{u&&!l.length&&!c&&t.complete()},g=y=>c{s&&t.next(y),c++;let _=!1;Ki(e(y,d++)).subscribe(Yt(t,w=>{n?.(w),s?g(w):t.next(w)},()=>{_=!0},void 0,()=>{if(_)try{for(c--;l.length&&cp(w)):p(w)}h()}catch(w){t.error(w)}}))};return r.subscribe(Yt(t,g,()=>{u=!0,h()})),()=>{a?.()}}function _s(r,t,e=Infinity){return Ot(t)?_s((i,n)=>$i((s,o)=>t(i,s,n,o))(Ki(r(i,n))),e):(typeof t==`number`&&(e=t),Xt((i,n)=>mV(i,n,r,e)))}function Dh(r=Infinity){return _s(wa,r)}function xV(){return Dh(1)}function t0(...r){return xV()(Qn(r,Hc(r)))}function u_(r){return new $t(t=>{Ki(r()).subscribe(t)})}function sM(...r){let t=hw(r),{args:e,keys:i}=Iw(r),n=new $t(s=>{let{length:o}=e;if(!o){s.complete();return}let a=new Array(o),l=o,c=o;for(let d=0;d{u||(u=!0,c--),a[d]=h},()=>l--,void 0,()=>{(!l||!u)&&(c||s.next(i?Nw(i,a):a),s.complete())}))}});return t?n.pipe(e0(t)):n}var vee=[`addListener`,`removeListener`];var bee=[`addEventListener`,`removeEventListener`];var See=[`on`,`off`];function ri(r,t,e,i){if(Ot(e)&&(i=e,e=void 0),i)return ri(r,t,e).pipe(e0(i));let[n,s]=Iee(r)?bee.map(o=>a=>r[o](t,a,e)):wee(r)?vee.map(yV(r,t)):Cee(r)?See.map(yV(r,t)):[];if(!n&&Jm(r))return _s(o=>ri(o,t,e))(Ki(r));if(!n)throw new TypeError(`Invalid event target`);return new $t(o=>{let a=(...l)=>o.next(1s(a)})}function yV(r,t){return e=>i=>r[e](t,i)}function wee(r){return Ot(r.addListener)&&Ot(r.removeListener)}function Cee(r){return Ot(r.on)&&Ot(r.off)}function Iee(r){return Ot(r.addEventListener)&&Ot(r.removeEventListener)}function iu(r=0,t,e=tV){let i=-1;return t!=null&&(uw(t)?e=t:i=t),new $t(n=>{let s=pV(r)?+r-e.now():r;s<0&&(s=0);let o=0;return e.schedule(function(){n.closed||(n.next(o++),0<=i?this.schedule(void 0,i):n.complete())},s)})}function zs(r=0,t=tu){return r<0&&(r=0),iu(r,r,t)}function kp(...r){let t=Hc(r),e=iV(r,Infinity),i=r;return i.length?i.length===1?Ki(i[0]):Dh(e)(Qn(i,t)):rs}var oM=new $t(pi);function Zt(r,t){return Xt((e,i)=>{let n=0;e.subscribe(Yt(i,s=>r.call(t,s,n++)&&i.next(s)))})}function i0(r){return Xt((t,e)=>{let i=null,n=!1,s;i=t.subscribe(Yt(e,void 0,void 0,o=>{s=Ki(r(o,i0(r)(t))),i?(i.unsubscribe(),i=null,s.subscribe(e)):n=!0})),n&&(i.unsubscribe(),i=null,s.subscribe(e))})}function Ep(r,t){return Ot(t)?_s(r,t,1):_s(r,1)}function Tp(r){return Xt((t,e)=>{let i=!1,n=null,s=null,o=()=>{if(s?.unsubscribe(),s=null,i){i=!1;let a=n;n=null,e.next(a)}};t.subscribe(Yt(e,a=>{s?.unsubscribe(),i=!0,n=a,s=Yt(e,o,pi),Ki(r(a)).subscribe(s)},()=>{o(),e.complete()},void 0,()=>{n=s=null}))})}function h_(r,t=tu){return Xt((e,i)=>{let n=null,s=null,o=null,a=()=>{if(n){n.unsubscribe(),n=null;let c=s;s=null,i.next(c)}};function l(){let c=o+r,d=t.now();if(d{s=c,o=t.now(),n||(n=t.schedule(l,r),i.add(n))},()=>{a(),i.complete()},void 0,()=>{s=n=null}))})}function _V(r){return Xt((t,e)=>{let i=!1;t.subscribe(Yt(e,n=>{i=!0,e.next(n)},()=>{i||e.next(r),e.complete()}))})}function na(r){return r<=0?()=>rs:Xt((t,e)=>{let i=0;t.subscribe(Yt(e,n=>{++i<=r&&(e.next(n),r<=i&&e.complete())}))})}function vV(r=Nee){return Xt((t,e)=>{let i=!1;t.subscribe(Yt(e,n=>{i=!0,e.next(n)},()=>i?e.complete():e.error(r())))})}function Nee(){return new Dp}function g_(r){return Xt((t,e)=>{try{t.subscribe(e)}finally{e.add(r)}})}function Tn(r,t){let e=arguments.length>=2;return i=>i.pipe(r?Zt((n,s)=>r(n,s,i)):wa,na(1),e?_V(t):vV(()=>new Dp))}function Dw(r){return r<=0?()=>rs:Xt((t,e)=>{let i=[];t.subscribe(Yt(e,n=>{i.push(n),r{for(let n of i)e.next(n);e.complete()},void 0,()=>{i=null}))})}function bV(r){return Xt((t,e)=>{let i=!1,n=null;t.subscribe(Yt(e,s=>{i=!0,n=s})),Ki(r).subscribe(Yt(e,()=>{if(i){i=!1;let s=n;n=null,e.next(s)}},pi))})}function aM(r,t=tu){return bV(zs(r,t))}function SV(r={}){let{connector:t=()=>new Te,resetOnError:e=!0,resetOnComplete:i=!0,resetOnRefCountZero:n=!0}=r;return s=>{let o,a,l,c=0,d=!1,u=!1,h=()=>{a?.unsubscribe(),a=void 0},g=()=>{h(),o=l=void 0,d=u=!1},p=()=>{let y=o;g(),y?.unsubscribe()};return Xt((y,_)=>{c++,!u&&!d&&h();let w=l=l??t();_.add(()=>{c--,c===0&&!u&&!d&&(a=lM(p,n))}),w.subscribe(_),!o&&c>0&&(o=new eu({next:E=>w.next(E),error:E=>{u=!0,h(),a=lM(g,e,E),w.error(E)},complete:()=>{d=!0,h(),a=lM(g,i),w.complete()}}),Ki(y).subscribe(o))})(s)}}function lM(r,t,...e){if(t===!0){r();return}if(t===!1)return;let i=new eu({next:()=>{i.unsubscribe(),r()}});return Ki(t(...e)).subscribe(i)}function cM(r,t,e){let i,n=!1;return r&&typeof r==`object`?{bufferSize:i=Infinity,windowTime:t=Infinity,refCount:n=!1,scheduler:e}=r:i=r??Infinity,SV({connector:()=>new c_(i,t,e),resetOnError:!0,resetOnComplete:!1,resetOnRefCountZero:n})}function dM(r){return r<=0?wa:Xt((t,e)=>{let i=new Array(r),n=0;return t.subscribe(Yt(e,s=>{let o=n++;if(o{i=null}})}function uM(...r){let t=Hc(r);return Xt((e,i)=>{(t?t0(r,e,t):t0(r,e)).subscribe(i)})}function ss(r,t){return Xt((e,i)=>{let n=null,s=0,o=!1,a=()=>o&&!n&&i.complete();e.subscribe(Yt(i,l=>{n?.unsubscribe();let c=0,d=s++;Ki(r(l,d)).subscribe(n=Yt(i,u=>i.next(t?t(l,u,d,c++):u),()=>{n=null,a()}))},()=>{o=!0,a()}))})}function oe(r){return Xt((t,e)=>{Ki(r).subscribe(Yt(e,()=>e.complete(),pi)),!e.closed&&t.subscribe(e)})}function Mp(r,t=!1){return Xt((e,i)=>{let n=0;e.subscribe(Yt(i,s=>{let o=r(s,n++);(o||t)&&i.next(s),!o&&i.complete()}))})}function Oo(r,t,e){let i=Ot(r)||t||e?{next:r,error:t,complete:e}:r;return i?Xt((n,s)=>{var o;(o=i.subscribe)===null||o===void 0||o.call(i);let a=!0;n.subscribe(Yt(s,l=>{var c;(c=i.next)===null||c===void 0||c.call(i,l),s.next(l)},()=>{var l;a=!1,(l=i.complete)===null||l===void 0||l.call(i),s.complete()},l=>{var c;a=!1,(c=i.error)===null||c===void 0||c.call(i,l),s.error(l)},()=>{var l,c;a&&((l=i.unsubscribe)===null||l===void 0||l.call(i)),(c=i.finalize)===null||c===void 0||c.call(i)}))}):wa}function Hl(r,t){return Xt((e,i)=>{let{leading:n=!0,trailing:s=!1}=t??{},o=!1,a=null,l=null,c=!1,d=()=>{l?.unsubscribe(),l=null,s&&(g(),c&&i.complete())},u=()=>{l=null,c&&i.complete()},h=p=>l=Ki(r(p)).subscribe(Yt(i,d,u)),g=()=>{if(o){o=!1;let p=a;a=null,i.next(p),!c&&h(p)}};e.subscribe(Yt(i,p=>{o=!0,a=p,!(l&&!l.closed)&&(n?g():h(p))},()=>{c=!0,!(s&&o&&l&&!l.closed)&&i.complete()}))})}function Ca(r,t=tu,e){let i=iu(r,t);return Hl(()=>i,e)}var Pw=`https://angular.dev/best-practices/security#preventing-cross-site-scripting-xss`;var be=class extends Error{code;constructor(t,e){super(ou(t,e)),this.code=t}};function Dee(r){return`NG0${Math.abs(r)}`}function ou(r,t){return`${Dee(r)}${t?`: `+t:``}`}function un(r){for(let t in r)if(r[t]===un)return t;throw Error(``)}function kV(r,t){for(let e in t)t.hasOwnProperty(e)&&!r.hasOwnProperty(e)&&(r[e]=t[e])}function v_(r){if(typeof r==`string`)return r;if(Array.isArray(r))return`[${r.map(v_).join(`, `)}]`;if(r==null)return``+r;let t=r.overriddenName||r.name;if(t)return`${t}`;let e=r.toString();if(e==null)return``+e;let i=e.indexOf(` +`);return i>=0?e.slice(0,i):e}function Ow(r,t){return r?t?`${r} ${t}`:r:t||``}var kee=un({__forward_ref__:un});function si(r){return r.__forward_ref__=si,r}function os(r){return IM(r)?r():r}function IM(r){return typeof r==`function`&&r.hasOwnProperty(kee)&&r.__forward_ref__===si}function ze(r){return{token:r.token,providedIn:r.providedIn||null,factory:r.factory,value:void 0}}function vi(r){return{providers:r.providers||[],imports:r.imports||[]}}function b_(r){return Eee(r,Fw)}function NM(r){return b_(r)!==null}function Eee(r,t){return r.hasOwnProperty(t)&&r[t]||null}function Tee(r){return(r?.[Fw]??null)||null}function gM(r){return r&&r.hasOwnProperty(Ew)?r[Ew]:null}var Fw=un({ɵprov:un});var Ew=un({ɵinj:un});var Oe=class{_desc;ngMetadataName=`InjectionToken`;ɵprov;constructor(t,e){this._desc=t,this.ɵprov=void 0,typeof e==`number`?this.__NG_ELEMENT_ID__=e:e!==void 0&&(this.ɵprov=ze({token:this,providedIn:e.providedIn||`root`,factory:e.factory}))}get multi(){return this}toString(){return`InjectionToken ${this._desc}`}};function DM(r){return r&&!!r.ɵproviders}var S_=un({ɵcmp:un});var w_=un({ɵdir:un});var kM=un({ɵpipe:un});var EM=un({ɵmod:un});var m_=un({ɵfac:un});var Op=un({__NG_ELEMENT_ID__:un});var wV=un({__NG_ENV_ID__:un});function EV(r){return Vw(r,`@NgModule`),r[EM]||null}function Mh(r){return Vw(r,`@Component`),r[S_]||null}function Lw(r){return Vw(r,`@Directive`),r[w_]||null}function TV(r){return Vw(r,`@Pipe`),r[kM]||null}function Vw(r,t){if(r==null)throw new be(-919,!1)}function Ah(r){return typeof r==`string`?r:r==null?``:String(r)}var MV=un({ngErrorCode:un});var Mee=un({ngErrorMessage:un});var Aee=un({ngTokenPath:un});function TM(r,t){return AV(``,-200,t)}function $w(r,t){throw new be(-201,!1)}function AV(r,t,e){let i=new be(t,r);return i[MV]=t,i[Mee]=r,e&&(i[Aee]=e),i}function Ree(r){return r[MV]}var pM;function RV(){return pM}function Fo(r){let t=pM;return pM=r,t}function MM(r,t,e){let i=b_(r);if(i&&i.providedIn==`root`)return i.value===void 0?i.value=i.factory():i.value;if(e&8)return null;if(t!==void 0)return t;$w(r,``)}var nl=globalThis;var Ap={};var Oee=`__NG_DI_FLAG__`;var fM=class{injector;constructor(t){this.injector=t}retrieve(t,e){let i=Rp(e)||0;try{return this.injector.get(t,i&8?null:Ap,i)}catch(n){if(Gm(n))return n;throw n}}};function Fee(r,t=0){let e=iw();if(e===void 0)throw new be(-203,!1);if(e===null)return MM(r,void 0,t);{let i=Lee(t),n=e.retrieve(r,i);if(Gm(n)){if(i.optional)return null;throw n}return n}}function yt(r,t=0){return(RV()||Fee)(os(r),t)}function C(r,t){return yt(r,Rp(t))}function Rp(r){return typeof r>`u`||typeof r==`number`?r:0|(r.optional&&8)|(r.host&&1)|(r.self&&2)|(r.skipSelf&&4)}function Lee(r){return{optional:!!(r&8),host:!!(r&1),self:!!(r&2),skipSelf:!!(r&4)}}function mM(r){let t=[];for(let e=0;eArray.isArray(e)?zw(e,t):t(e))}function AM(r,t,e){t>=r.length?r.push(e):r.splice(t,0,e)}function C_(r,t){return t>=r.length-1?r.pop():r.splice(t,1)[0]}function FV(r,t){let e=[];for(let i=0;it;)r[n]=r[n-2],n--;r[t]=e,r[t+1]=i}}function Bw(r,t,e){let i=o0(r,t);return i>=0?r[i|1]=e:(i=~i,LV(r,i,t,e)),i}function jw(r,t){let e=o0(r,t);if(e>=0)return r[e|1]}function o0(r,t){return $ee(r,t,1)}function $ee(r,t,e){let i=0,n=r.length>>e;for(;n!==i;){let s=i+(n-i>>1),o=r[s<t?n=s:i=s+1}return~(n<{e.push(o)};return zw(t,o=>{let a=o;Tw(a,s,[],i)&&(n||=[],n.push(a))}),n!==void 0&&$V(n,s),e}function $V(r,t){for(let e=0;e{t(s,i)})}}function Tw(r,t,e,i){if(r=os(r),!r)return!1;let n=null,s=gM(r),o=!s&&Mh(r);if(!s&&!o){let l=r.ngModule;if(s=gM(l),s)n=l;else return!1}else{if(o&&!o.standalone)return!1;n=r}let a=i.has(n);if(o){if(a)return!1;if(i.add(n),o.dependencies){let l=typeof o.dependencies==`function`?o.dependencies():o.dependencies;for(let c of l)Tw(c,t,e,i)}}else if(s){if(s.imports!=null&&!a){i.add(n);let c;zw(s.imports,d=>{Tw(d,t,e,i)&&(c||=[],c.push(d))}),c!==void 0&&$V(c,t)}if(!a){let c=Eh(n)||(()=>new n);t({provide:n,useFactory:c,deps:lo},n),t({provide:RM,useValue:n,multi:!0},n),t({provide:a0,useValue:()=>yt(n),multi:!0},n)}let l=s.providers;if(l!=null&&!a){let c=r;OM(l,d=>{t(d,c)})}}else return!1;return n!==r&&r.providers!==void 0}function OM(r,t){for(let e of r)DM(e)&&(e=e.ɵproviders),Array.isArray(e)?OM(e,t):t(e)}var zee=un({provide:String,useValue:un});function zV(r){return r!==null&&typeof r==`object`&&zee in r}function Bee(r){return!!(r&&r.useExisting)}function jee(r){return!!(r&&r.useFactory)}function Pp(r){return typeof r==`function`}function BV(r){return!!r.useClass}var N_=new Oe(``);var kw={};var CV={};var hM;function l0(){return hM===void 0&&(hM=new r0),hM}var Sn=class{};var ru=class extends Sn{parent;source;scopes;records=new Map;_ngOnDestroyHooks=new Set;_onDestroyHooks=[];get destroyed(){return this._destroyed}_destroyed=!1;injectorDefTypes;constructor(t,e,i,n){super(),this.parent=e,this.source=i,this.scopes=n,yM(t,o=>this.processProvider(o)),this.records.set(I_,n0(void 0,this)),n.has(`environment`)&&this.records.set(Sn,n0(void 0,this));let s=this.records.get(N_);s!=null&&typeof s.value==`string`&&this.scopes.add(s.value),this.injectorDefTypes=new Set(this.get(RM,lo,{self:!0}))}retrieve(t,e){let i=Rp(e)||0;try{return this.get(t,Ap,i)}catch(n){if(Gm(n))return n;throw n}}destroy(){p_(this),this._destroyed=!0;let t=It(null);try{for(let i of this._ngOnDestroyHooks)i.ngOnDestroy();let e=this._onDestroyHooks;this._onDestroyHooks=[];for(let i of e)i()}finally{this.records.clear(),this._ngOnDestroyHooks.clear(),this.injectorDefTypes.clear(),It(t)}}onDestroy(t){return p_(this),this._onDestroyHooks.push(t),()=>this.removeOnDestroy(t)}runInContext(t){p_(this);let e=jc(this),i=Fo(void 0);try{return t()}finally{jc(e),Fo(i)}}get(t,e=Ap,i){if(p_(this),t.hasOwnProperty(wV))return t[wV](this);let n=Rp(i),o=jc(this),a=Fo(void 0);try{if(!(n&4)){let c=this.records.get(t);if(c===void 0){let d=Wee(t)&&b_(t);d&&this.injectableDefInScope(d)?c=n0(xM(t),kw):c=null,this.records.set(t,c)}if(c!=null)return this.hydrate(t,c,n)}let l=n&2?l0():this.parent;return e=n&8&&e===Ap?null:e,l.get(t,e)}catch(l){let c=Ree(l);throw c===-200||c===-201?new be(c,null):l}finally{Fo(a),jc(o)}}resolveInjectorInitializers(){let t=It(null),e=jc(this),i=Fo(void 0);try{let s=this.get(a0,lo,{self:!0});for(let o of s)o()}finally{jc(e),Fo(i),It(t)}}toString(){return`R3Injector[...]`}processProvider(t){t=os(t);let e=Pp(t)?t:os(t&&t.provide),i=qee(t);if(!Pp(t)&&t.multi===!0){let n=this.records.get(e);n||(n=n0(void 0,kw,!0),n.factory=()=>mM(n.multi),this.records.set(e,n)),e=t,n.multi.push(t)}this.records.set(e,i)}hydrate(t,e,i){let n=It(null);try{if(e.value===CV)throw TM(``);return e.value===kw&&(e.value=CV,e.value=e.factory(void 0,i)),typeof e.value==`object`&&e.value&&Uee(e.value)&&this._ngOnDestroyHooks.add(e.value),e.value}finally{It(n)}}injectableDefInScope(t){if(!t.providedIn)return!1;let e=os(t.providedIn);return typeof e==`string`?e===`any`||this.scopes.has(e):this.injectorDefTypes.has(e)}removeOnDestroy(t){let e=this._onDestroyHooks.indexOf(t);e!==-1&&this._onDestroyHooks.splice(e,1)}};function xM(r){let t=b_(r),e=t!==null?t.factory:Eh(r);if(e!==null)return e;if(r instanceof Oe)throw new be(-204,!1);if(r instanceof Function)return Hee(r);throw new be(-204,!1)}function Hee(r){if(r.length>0)throw new be(-204,!1);let e=Tee(r);return e!==null?()=>e.factory(r):()=>new r}function qee(r){if(zV(r))return n0(void 0,r.useValue);return n0(FM(r),kw)}function FM(r,t,e){let i;if(Pp(r)){let n=os(r);return Eh(n)||xM(n)}else if(zV(r))i=()=>os(r.useValue);else if(jee(r))i=()=>r.useFactory(...mM(r.deps||[]));else if(Bee(r))i=(n,s)=>yt(os(r.useExisting),s!==void 0&&s&8?8:void 0);else{let n=os(r&&(r.useClass||r.provide));if(Gee(r))i=()=>new n(...mM(r.deps));else return Eh(n)||xM(n)}return i}function p_(r){if(r.destroyed)throw new be(-205,!1)}function n0(r,t,e=!1){return{factory:r,value:t,multi:e?[]:void 0}}function Gee(r){return!!r.deps}function Uee(r){return r!==null&&typeof r==`object`&&typeof r.ngOnDestroy==`function`}function Wee(r){return typeof r==`function`||typeof r==`object`&&r.ngMetadataName===`InjectionToken`}function yM(r,t){for(let e of r)Array.isArray(e)?yM(e,t):e&&DM(e)?yM(e.ɵproviders,t):t(e)}function vs(r,t){let e;r instanceof ru?(p_(r),e=r):e=new fM(r);let n=jc(e),s=Fo(void 0);try{return t()}finally{jc(n),Fo(s)}}function jV(){return RV()!==void 0||iw()!=null}var Gl=0;var vt=1;var zt=2;var as=3;var rl=4;var co=5;var Lp=6;var c0=7;var mr=8;var Gc=9;var Ul=10;var hn=11;var d0=12;var LM=13;var Ph=14;var uo=15;var Oh=16;var Vp=17;var Uc=18;var Wc=19;var VM=20;var nu=21;var Hw=22;var Th=23;var Ia=24;var $p=25;var Kc=26;var nn=27;var HV=1;var $M=6;var zp=7;var D_=8;var Bp=9;var cr=10;function au(r){return Array.isArray(r)&&typeof r[HV]==`object`}function sl(r){return Array.isArray(r)&&r[HV]===!0}function zM(r){return(r.flags&4)!==0}function Yc(r){return r.componentOffset>-1}function u0(r){return(r.flags&1)===1}function Wl(r){return!!r.template}function h0(r){return(r[zt]&512)!==0}function jp(r){return(r[zt]&256)===256}var Mn=(function(r){return r[r.NONE=0]=`NONE`,r[r.HTML=1]=`HTML`,r[r.STYLE=2]=`STYLE`,r[r.SCRIPT=3]=`SCRIPT`,r[r.URL=4]=`URL`,r[r.RESOURCE_URL=5]=`RESOURCE_URL`,r[r.ATTRIBUTE_NO_BINDING=6]=`ATTRIBUTE_NO_BINDING`,r})(Mn||{});var f_;var s0=`svg`;var qw=`math`;var qV=``;var IV=`*`;var _M=()=>Object.create(null);function Kee(){return f_||(f_=_M(),kh(Mn.HTML,void 0,[[`iframe`,[`srcdoc`]],[`*`,[`innerHTML`,`outerHTML`]]]),kh(Mn.STYLE,void 0,[[`*`,[`style`]]]),kh(Mn.URL,void 0,[[`*`,[`formAction`]],[`area`,[`href`]],[`a`,[`href`,`xlink:href`]],[`form`,[`action`]],[`img`,[`src`]],[`video`,[`src`]]]),kh(Mn.URL,qw,[[`*`,[`href`,`xlink:href`]]]),kh(Mn.RESOURCE_URL,void 0,[[`base`,[`href`]],[`embed`,[`src`]],[`frame`,[`src`]],[`iframe`,[`src`]],[`link`,[`href`]],[`object`,[`codebase`,`data`]]]),kh(Mn.URL,s0,[[`a`,[`href`,`xlink:href`]]]),kh(Mn.ATTRIBUTE_NO_BINDING,s0,[[`animate`,[`attributeName`,`values`,`to`,`from`]],[`set`,[`to`,`attributeName`]],[`animateMotion`,[`attributeName`]],[`animateTransform`,[`attributeName`]]]),kh(Mn.ATTRIBUTE_NO_BINDING,void 0,[[`unknown`,[`attributeName`,`values`,`to`,`from`,`sandbox`,`allow`,`allowFullscreen`,`referrerPolicy`,`csp`,`fetchPriority`,`credentialless`]],[`iframe`,[`sandbox`,`allow`,`allowFullscreen`,`referrerPolicy`,`csp`,`fetchPriority`,`credentialless`]]]),f_)}function kh(r,t,e){let i=t??qV;for(let[n,s]of e){let o=n.toLowerCase();for(let a of s){let l=a.toLowerCase(),c=f_[l]??=_M(),d=c[i]??=_M();d[o]=r}}}function GV(r,t,e){let n=Kee()[t.toLowerCase()];if(!n)return Mn.NONE;let s=r.toLowerCase(),o;if(e){let a=n[e];a&&(o=a[s]??a[IV])}if(o===void 0){let a=n[qV];a&&(o=a[s]??a[IV])}return o??Mn.NONE}function Bs(r){for(;Array.isArray(r);)r=r[Gl];return r}function BM(r,t){return Bs(t[r])}function ra(r,t){return Bs(t[r.index])}function Gw(r,t){return r.data[t]}function Fh(r,t){return r[t]}function k_(r,t,e,i){e>=r.data.length&&(r.data[e]=null,r.blueprint[e]=null),t[e]=i}function ol(r,t){let e=t[r];return au(e)?e:e[Gl]}function UV(r){return(r[zt]&4)===4}function Uw(r){return(r[zt]&128)===128}function WV(r){return sl(r[as])}function al(r,t){return t==null?null:r[t]}function jM(r){r[Vp]=0}function HM(r){r[zt]&1024||(r[zt]|=1024,Uw(r)&&Hp(r))}function KV(r,t){for(;r>0;)t=t[Ph],r--;return t}function E_(r){return!!(r[zt]&9216||r[Ia]?.dirty)}function Ww(r){r[Ul].changeDetectionScheduler?.notify(8),r[zt]&64&&(r[zt]|=1024),E_(r)&&Hp(r)}function Hp(r){r[Ul].changeDetectionScheduler?.notify(0);let t=su(r);for(;t!==null&&!(t[zt]&8192||(t[zt]|=8192,!Uw(t)));)t=su(t)}function Kw(r,t){if(jp(r))throw new be(911,!1);r[nu]===null&&(r[nu]=[]),r[nu].push(t)}function YV(r,t){if(r[nu]===null)return;let e=r[nu].indexOf(t);e!==-1&&r[nu].splice(e,1)}function su(r){let t=r[as];return sl(t)?t[as]:t}function qM(r){return r[c0]??=[]}function GM(r){return r.cleanup??=[]}function QV(r,t,e,i){let n=qM(t);n.push(e),r.firstCreatePass&&GM(r).push(i,n.length-1)}var ui={lFrame:a6(null),bindingsEnabled:!0,skipHydrationRootTNode:null};var vM=!1;function XV(){return ui.lFrame.elementDepthCount}function ZV(){ui.lFrame.elementDepthCount++}function UM(){ui.lFrame.elementDepthCount--}function Yw(){return ui.bindingsEnabled}function WM(){return ui.skipHydrationRootTNode!==null}function KM(r){return ui.skipHydrationRootTNode===r}function YM(){ui.skipHydrationRootTNode=null}function rt(){return ui.lFrame.lView}function gn(){return ui.lFrame.tView}function V(r){return ui.lFrame.contextLView=r,r[mr]}function $(r){return ui.lFrame.contextLView=null,r}function Nr(){let r=QM();for(;r!==null&&r.type===64;)r=r.parent;return r}function QM(){return ui.lFrame.currentTNode}function JV(){let r=ui.lFrame,t=r.currentTNode;return r.isParent?t:t.parent}function qp(r,t){let e=ui.lFrame;e.currentTNode=r,e.isParent=t}function XM(){return ui.lFrame.isParent}function ZM(){ui.lFrame.isParent=!1}function JM(){return ui.lFrame.contextLView}function eA(){return vM}function x_(r){let t=vM;return vM=r,t}function ho(){let r=ui.lFrame,t=r.bindingRootIndex;return t===-1&&(t=r.bindingRootIndex=r.tView.bindingStartIndex),t}function e6(){return ui.lFrame.bindingIndex}function t6(r){return ui.lFrame.bindingIndex=r}function Qc(){return ui.lFrame.bindingIndex++}function Qw(r){let t=ui.lFrame,e=t.bindingIndex;return t.bindingIndex=t.bindingIndex+r,e}function i6(){return ui.lFrame.inI18n}function n6(r,t){let e=ui.lFrame;e.bindingIndex=e.bindingRootIndex=r,Xw(t)}function r6(){return ui.lFrame.currentDirectiveIndex}function Xw(r){ui.lFrame.currentDirectiveIndex=r}function s6(r){let t=ui.lFrame.currentDirectiveIndex;return t===-1?null:r[t]}function Zw(){return ui.lFrame.currentQueryIndex}function T_(r){ui.lFrame.currentQueryIndex=r}function Yee(r){let t=r[vt];return t.type===2?t.declTNode:t.type===1?r[co]:null}function tA(r,t,e){if(e&4){let n=t,s=r;for(;n=n.parent,n===null&&!(e&1);)if(n=Yee(s),n===null||(s=s[Ph],n.type&10))break;if(n===null)return!1;t=n,r=s}let i=ui.lFrame=o6();return i.currentTNode=t,i.lView=r,!0}function Jw(r){let t=o6(),e=r[vt];ui.lFrame=t,t.currentTNode=e.firstChild,t.lView=r,t.tView=e,t.contextLView=r,t.bindingIndex=e.bindingStartIndex,t.inI18n=!1}function o6(){let r=ui.lFrame,t=r===null?null:r.child;return t===null?a6(r):t}function a6(r){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:r,child:null,inI18n:!1};return r!==null&&(r.child=t),t}function l6(){let r=ui.lFrame;return ui.lFrame=r.parent,r.currentTNode=null,r.lView=null,r}var iA=l6;function eC(){let r=l6();r.isParent=!0,r.tView=null,r.selectedIndex=-1,r.contextLView=null,r.elementDepthCount=0,r.currentDirectiveIndex=-1,r.currentNamespace=null,r.bindingRootIndex=-1,r.bindingIndex=-1,r.currentQueryIndex=0}function c6(r){return(ui.lFrame.contextLView=KV(r,ui.lFrame.contextLView))[mr]}function ll(){return ui.lFrame.selectedIndex}function Lh(r){ui.lFrame.selectedIndex=r}function Vh(){let r=ui.lFrame;return Gw(r.tView,r.selectedIndex)}function cl(){ui.lFrame.currentNamespace=s0}function M_(){Qee()}function Qee(){ui.lFrame.currentNamespace=null}function nA(){return ui.lFrame.currentNamespace}var d6=!0;function tC(){return d6}function A_(r){d6=r}function bM(r,t=null,e=null,i){let n=rA(r,t,e,i);return n.resolveInjectorInitializers(),n}function rA(r,t=null,e=null,i,n=new Set){return new ru([e||lo,VV(r)],t||l0(),null,n)}var ji=class r{static THROW_IF_NOT_FOUND=Ap;static NULL=new r0;static create(t,e){if(Array.isArray(t))return bM({name:``},e,t,``);{let i=t.name??``;return bM({name:i},t.parent,t.providers,i)}}static ɵprov=ze({token:r,providedIn:`any`,factory:()=>yt(I_)});static __NG_ELEMENT_ID__=-1};var St=new Oe(``);var Ei=class{static __NG_ELEMENT_ID__=Xee;static __NG_ENV_ID__=t=>t};var Mw=class extends Ei{_lView;constructor(t){super(),this._lView=t}get destroyed(){return jp(this._lView)}onDestroy(t){let e=this._lView;return Kw(e,t),()=>YV(e,t)}};function Xee(){return new Mw(rt())}var u6=!1;var h6=new Oe(``);var lu=(()=>{class r{taskId=0;pendingTasks=new Set;destroyed=!1;pendingTask=new Ir(!1);debugTaskTracker=C(h6,{optional:!0});get hasPendingTasks(){return this.destroyed?!1:this.pendingTask.value}get hasPendingTasksObservable(){return this.destroyed?new $t(e=>{e.next(!1),e.complete()}):this.pendingTask}add(){!this.hasPendingTasks&&!this.destroyed&&this.pendingTask.next(!0);let e=this.taskId++;return this.pendingTasks.add(e),this.debugTaskTracker?.add(e),e}has(e){return this.pendingTasks.has(e)}remove(e){this.pendingTasks.delete(e),this.debugTaskTracker?.remove(e),this.pendingTasks.size===0&&this.hasPendingTasks&&this.pendingTask.next(!1)}ngOnDestroy(){this.pendingTasks.clear(),this.hasPendingTasks&&this.pendingTask.next(!1),this.destroyed=!0,this.pendingTask.unsubscribe()}static ɵprov=ze({token:r,providedIn:`root`,factory:()=>new r})}return r})();var SM=class extends Te{__isAsync;destroyRef=void 0;pendingTasks=void 0;constructor(t=!1){super(),this.__isAsync=t,jV()&&(this.destroyRef=C(Ei,{optional:!0})??void 0,this.pendingTasks=C(lu,{optional:!0})??void 0)}emit(t){let e=It(null);try{super.next(t)}finally{It(e)}}subscribe(t,e,i){let n=t,s=e||(()=>null),o=i;if(t&&typeof t==`object`){let l=t;n=l.next?.bind(l),s=l.error?.bind(l),o=l.complete?.bind(l)}this.__isAsync&&(s=this.wrapInTimeout(s),n&&(n=this.wrapInTimeout(n)),o&&(o=this.wrapInTimeout(o)));let a=super.subscribe({next:n,error:s,complete:o});return t instanceof Yn&&t.add(a),a}wrapInTimeout(t){return e=>{let i=this.pendingTasks?.add();setTimeout(()=>{try{t(e)}finally{i!==void 0&&this.pendingTasks?.remove(i)}})}}};var A=SM;function Aw(...r){}function sA(r){let t,e;function i(){r=Aw;try{e!==void 0&&typeof cancelAnimationFrame==`function`&&cancelAnimationFrame(e),t!==void 0&&clearTimeout(t)}catch{}}return t=setTimeout(()=>{r(),i()}),typeof requestAnimationFrame==`function`&&(e=requestAnimationFrame(()=>{r(),i()})),()=>i()}function g6(r){return queueMicrotask(()=>r()),()=>{r=Aw}}var oA=`isAngularZone`;var y_=oA+`_ID`;var Zee=0;var Nt=class r{hasPendingMacrotasks=!1;hasPendingMicrotasks=!1;isStable=!0;onUnstable=new A(!1);onMicrotaskEmpty=new A(!1);onStable=new A(!1);onError=new A(!1);constructor(t){let{enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:i=!1,shouldCoalesceRunChangeDetection:n=!1,scheduleInRootZone:s=u6}=t;if(typeof Zone>`u`)throw new be(908,!1);Zone.assertZonePatched();let o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!n&&i,o.shouldCoalesceRunChangeDetection=n,o.callbackScheduled=!1,o.scheduleInRootZone=s,tte(o)}static isInAngularZone(){return typeof Zone<`u`&&Zone.current.get(oA)===!0}static assertInAngularZone(){if(!r.isInAngularZone())throw new be(909,!1)}static assertNotInAngularZone(){if(r.isInAngularZone())throw new be(909,!1)}run(t,e,i){return this._inner.run(t,e,i)}runTask(t,e,i,n){let s=this._inner,o=s.scheduleEventTask(`NgZoneEvent: `+n,t,Jee,Aw,Aw);try{return s.runTask(o,e,i)}finally{s.cancelTask(o)}}runGuarded(t,e,i){return this._inner.runGuarded(t,e,i)}runOutsideAngular(t){return this._outer.run(t)}};var Jee={};function aA(r){if(r._nesting==0&&!r.hasPendingMicrotasks&&!r.isStable)try{r._nesting++,r.onMicrotaskEmpty.emit(null)}finally{if(r._nesting--,!r.hasPendingMicrotasks)try{r.runOutsideAngular(()=>r.onStable.emit(null))}finally{r.isStable=!0}}}function ete(r){if(r.isCheckStableRunning||r.callbackScheduled)return;r.callbackScheduled=!0;function t(){sA(()=>{r.callbackScheduled=!1,wM(r),r.isCheckStableRunning=!0,aA(r),r.isCheckStableRunning=!1})}r.scheduleInRootZone?Zone.root.run(()=>{t()}):r._outer.run(()=>{t()}),wM(r)}function tte(r){let t=()=>{ete(r)},e=Zee++;r._inner=r._inner.fork({name:`angular`,properties:{[oA]:!0,[y_]:e,[y_+e]:!0},onInvokeTask:(i,n,s,o,a,l)=>{if(ite(l))return i.invokeTask(s,o,a,l);try{return NV(r),i.invokeTask(s,o,a,l)}finally{(r.shouldCoalesceEventChangeDetection&&o.type===`eventTask`||r.shouldCoalesceRunChangeDetection)&&t(),DV(r)}},onInvoke:(i,n,s,o,a,l,c)=>{try{return NV(r),i.invoke(s,o,a,l,c)}finally{r.shouldCoalesceRunChangeDetection&&!r.callbackScheduled&&!nte(l)&&t(),DV(r)}},onHasTask:(i,n,s,o)=>{i.hasTask(s,o),n===s&&(o.change==`microTask`?(r._hasPendingMicrotasks=o.microTask,wM(r),aA(r)):o.change==`macroTask`&&(r.hasPendingMacrotasks=o.macroTask))},onHandleError:(i,n,s,o)=>(i.handleError(s,o),r.runOutsideAngular(()=>r.onError.emit(o)),!1)})}function wM(r){r._hasPendingMicrotasks||(r.shouldCoalesceEventChangeDetection||r.shouldCoalesceRunChangeDetection)&&r.callbackScheduled===!0?r.hasPendingMicrotasks=!0:r.hasPendingMicrotasks=!1}function NV(r){r._nesting++,r.isStable&&(r.isStable=!1,r.onUnstable.emit(null))}function DV(r){r._nesting--,aA(r)}var __=class{hasPendingMicrotasks=!1;hasPendingMacrotasks=!1;isStable=!0;onUnstable=new A;onMicrotaskEmpty=new A;onStable=new A;onError=new A;run(t,e,i){return t.apply(e,i)}runGuarded(t,e,i){return t.apply(e,i)}runOutsideAngular(t){return t()}runTask(t,e,i,n){return t.apply(e,i)}};function ite(r){return p6(r,`__ignore_ng_zone__`)}function nte(r){return p6(r,`__scheduler_tick__`)}function p6(r,t){return!Array.isArray(r)||r.length!==1?!1:r[0]?.data?.[t]===!0}var ql=class{_console=console;handleError(t){this._console.error(`ERROR`,t)}};var dl=new Oe(``,{factory:()=>{let r=C(Nt),t=C(Sn),e;return i=>{r.runOutsideAngular(()=>{t.destroyed&&!e?setTimeout(()=>{throw i}):(e??=t.get(ql),e.handleError(i))})}}});var f6={provide:a0,useValue:()=>{C(ql,{optional:!0})},multi:!0};function oi(r,t){let[e,i,n]=jT(r,t?.equal),s=e;s[Cr];return s.set=i,s.update=n,s.asReadonly=iC.bind(s),s}function iC(){let r=this[Cr];if(r.readonlyFn===void 0){let t=()=>this();t[Cr]=r,r.readonlyFn=t}return r.readonlyFn}var R_=new Oe(``,{factory:()=>rte});var rte=`ng`;var nC=new Oe(``);var cu=new Oe(``,{providedIn:`platform`,factory:()=>`unknown`});var g0=new Oe(``);var P_=new Oe(``,{factory:()=>C(St).body?.querySelector(`[ngCspNonce]`)?.getAttribute(`ngCspNonce`)||null});var p0=(()=>{class r{view;node;constructor(e,i){this.view=e,this.node=i}static __NG_ELEMENT_ID__=ste}return r})();function ste(){return new p0(rt(),Nr())}var qc=class{};var O_=new Oe(``,{factory:()=>!0});var lA=new Oe(``);var rC=(()=>{class r{static ɵprov=ze({token:r,providedIn:`root`,factory:()=>new CM})}return r})();var CM=class{dirtyEffectCount=0;queues=new Map;add(t){this.enqueue(t),this.schedule(t)}schedule(t){t.dirty&&this.dirtyEffectCount++}remove(t){let e=t.zone,i=this.queues.get(e);i.has(t)&&(i.delete(t),t.dirty&&this.dirtyEffectCount--)}enqueue(t){let e=t.zone;this.queues.has(e)||this.queues.set(e,new Set);let i=this.queues.get(e);i.has(t)||i.add(t)}flush(){for(;this.dirtyEffectCount>0;){let t=!1;for(let[e,i]of this.queues)e===null?t||=this.flushQueue(i):t||=e.run(()=>this.flushQueue(i));t||(this.dirtyEffectCount=0)}}flushQueue(t){let e=!1;for(let i of t)i.dirty&&(this.dirtyEffectCount--,e=!0,i.run());return e}};var Rw=class{[Cr];constructor(t){this[Cr]=t}destroy(){this[Cr].destroy()}};function Gp(r,t){let e=t?.injector??C(ji),i=t?.manualCleanup!==!0?e.get(Ei):null,n,s=e.get(p0,null,{optional:!0}),o=e.get(qc);return s!==null?(n=lte(s.view,o,r),i instanceof Mw&&i._lView===s.view&&(i=null)):n=cte(r,e.get(rC),o),n.injector=e,i!==null&&(n.onDestroyFns=[i.onDestroy(()=>n.destroy())]),new Rw(n)}var m6=s(r({},HT),{cleanupFns:void 0,zone:null,onDestroyFns:null,run(){let r=x_(!1);try{qT(this)}finally{x_(r)}},cleanup(){if(!this.cleanupFns?.length)return;let r=It(null);try{for(;this.cleanupFns.length;)this.cleanupFns.pop()()}finally{this.cleanupFns=[],It(r)}}});var ote=s(r({},m6),{consumerMarkedDirty(){this.scheduler.schedule(this),this.notifier.notify(12)},destroy(){if(Nh(this),this.onDestroyFns!==null)for(let r of this.onDestroyFns)r();this.cleanup(),this.scheduler.remove(this)}});var ate=s(r({},m6),{consumerMarkedDirty(){this.view[zt]|=8192,Hp(this.view),this.notifier.notify(13)},destroy(){if(Nh(this),this.onDestroyFns!==null)for(let r of this.onDestroyFns)r();this.cleanup(),this.view[Th]?.delete(this)}});function lte(r,t,e){let i=Object.create(ate);return i.view=r,i.zone=typeof Zone<`u`?Zone.current:null,i.notifier=t,i.fn=x6(i,e),r[Th]??=new Set,r[Th].add(i),i.consumerMarkedDirty(i),i}function cte(r,t,e){let i=Object.create(ote);return i.fn=x6(i,r),i.scheduler=t,i.notifier=e,i.zone=typeof Zone<`u`?Zone.current:null,i.scheduler.add(i),i.notifier.notify(12),i}function x6(r,t){return()=>{t(e=>(r.cleanupFns??=[]).push(e))}}function F_(r){return typeof r==`function`&&r[Cr]!==void 0}function sC(r){return F_(r)&&typeof r.set==`function`}var f0=(()=>{class r{internalPendingTasks=C(lu);scheduler=C(qc);errorHandler=C(dl);add(){let e=this.internalPendingTasks.add();return()=>{this.internalPendingTasks.has(e)&&(this.scheduler.notify(11),this.internalPendingTasks.remove(e))}}run(e){let i=this.add();try{e().catch(this.errorHandler).finally(i)}catch(n){this.errorHandler(n),i()}}static ɵprov=ze({token:r,providedIn:`root`,factory:()=>new r})}return r})();function K_(r){return{toString:r}.toString()}var Yi=(function(r){return r[r.TemplateCreateStart=0]=`TemplateCreateStart`,r[r.TemplateCreateEnd=1]=`TemplateCreateEnd`,r[r.TemplateUpdateStart=2]=`TemplateUpdateStart`,r[r.TemplateUpdateEnd=3]=`TemplateUpdateEnd`,r[r.LifecycleHookStart=4]=`LifecycleHookStart`,r[r.LifecycleHookEnd=5]=`LifecycleHookEnd`,r[r.OutputStart=6]=`OutputStart`,r[r.OutputEnd=7]=`OutputEnd`,r[r.BootstrapApplicationStart=8]=`BootstrapApplicationStart`,r[r.BootstrapApplicationEnd=9]=`BootstrapApplicationEnd`,r[r.BootstrapComponentStart=10]=`BootstrapComponentStart`,r[r.BootstrapComponentEnd=11]=`BootstrapComponentEnd`,r[r.ChangeDetectionStart=12]=`ChangeDetectionStart`,r[r.ChangeDetectionEnd=13]=`ChangeDetectionEnd`,r[r.ChangeDetectionSyncStart=14]=`ChangeDetectionSyncStart`,r[r.ChangeDetectionSyncEnd=15]=`ChangeDetectionSyncEnd`,r[r.AfterRenderHooksStart=16]=`AfterRenderHooksStart`,r[r.AfterRenderHooksEnd=17]=`AfterRenderHooksEnd`,r[r.ComponentStart=18]=`ComponentStart`,r[r.ComponentEnd=19]=`ComponentEnd`,r[r.DeferBlockStateStart=20]=`DeferBlockStateStart`,r[r.DeferBlockStateEnd=21]=`DeferBlockStateEnd`,r[r.DynamicComponentStart=22]=`DynamicComponentStart`,r[r.DynamicComponentEnd=23]=`DynamicComponentEnd`,r[r.HostBindingsUpdateStart=24]=`HostBindingsUpdateStart`,r[r.HostBindingsUpdateEnd=25]=`HostBindingsUpdateEnd`,r})(Yi||{});var y0=class{previousValue;currentValue;firstChange;constructor(t,e,i){this.previousValue=t,this.currentValue=e,this.firstChange=i}isFirstChange(){return this.firstChange}};function o8(r,t,e,i){t!==null?t.applyValueToInputSignal(t,i):r[e]=i}var a8=null;var wn=(()=>{a8=y6;let r=()=>y6;return r.ngInherit=!0,r})();function yte(){return a8}function y6(r){return r.type.prototype.ngOnChanges&&(r.setInput=vte),_te}function _te(){let r=l8(this),t=r?.current;if(t){let e=r.previous;if(e===Rh)r.previous=t;else for(let i in t)e[i]=t[i];r.current=null,this.ngOnChanges(t)}}function vte(r,t,e,i,n){let s=this.declaredInputs[i],o=l8(r)||bte(r,{previous:Rh,current:null}),a=o.current||(o.current={}),l=o.previous,c=l[s];a[s]=new y0(c&&c.currentValue,e,l===Rh),o8(r,t,n,e)}var vA=`__ngSimpleChanges__`;function l8(r){return Object.hasOwn(r,vA)&&r[vA]||null}function bte(r,t){return r[vA]=t}var _6=[];var pn=function(r,t=null,e){for(let i=0;i<_6.length;i++){let n=_6[i];n(r,t,e)}};function Ste(r,t,e){let{ngOnChanges:i,ngOnInit:n,ngDoCheck:s}=t.type.prototype;if(i){let o=yte()(t);(e.preOrderHooks??=[]).push(r,o),(e.preOrderCheckHooks??=[]).push(r,o)}n&&(e.preOrderHooks??=[]).push(0-r,n),s&&((e.preOrderHooks??=[]).push(r,s),(e.preOrderCheckHooks??=[]).push(r,s))}function c8(r,t){for(let e=t.directiveStart,i=t.directiveEnd;e=i)break}else t[l]<0&&(r[Vp]+=65536),(a>14>16&&(r[zt]&3)===t&&(r[zt]+=16384,v6(a,s)):v6(a,s)}var x0=-1;var Kp=class{factory;name;injectImpl;resolving=!1;canSeeViewProviders;multi;componentProviders;index;providerFactory;constructor(t,e,i,n){this.factory=t,this.name=n,this.canSeeViewProviders=e,this.injectImpl=i}};function Cte(r){return(r.flags&8)!==0}function Ite(r){return(r.flags&16)!==0}function Nte(r,t,e){let i=0;for(;it){o=s-1;break}}}for(;s>16}function fC(r,t){let e=kte(r),i=t;for(;e>0;)i=i[Ph],e--;return i}var bA=!0;function mC(r){let t=bA;return bA=r,t}var g8=255;var p8=5;var Tte=0;var Xc={};function Mte(r,t,e){let i;typeof e==`string`?i=e.charCodeAt(0)||0:e.hasOwnProperty(Op)&&(i=e[Op]),i??=e[Op]=Tte++;let n=i&g8,s=1<>p8)]|=s}function xC(r,t){let e=f8(r,t);if(e!==-1)return e;let i=t[vt];i.firstCreatePass&&(r.injectorIndex=t.length,dA(i.data,r),dA(t,null),dA(i.blueprint,null));let n=n5(r,t),s=r.injectorIndex;if(h8(n)){let o=pC(n),a=fC(n,t),l=a[vt].data;for(let c=0;c<8;c++)t[s+c]=a[o+c]|l[o+c]}return t[s+8]=n,s}function dA(r,t){r.push(0,0,0,0,0,0,0,0,t)}function f8(r,t){return r.injectorIndex===-1||r.parent&&r.parent.injectorIndex===r.injectorIndex||t[r.injectorIndex+8]===null?-1:r.injectorIndex}function n5(r,t){if(r.parent&&r.parent.injectorIndex!==-1)return r.parent.injectorIndex;let e=0,i=null,n=t;for(;n!==null;){if(i=v8(n),i===null)return x0;if(e++,n=n[Ph],i.injectorIndex!==-1)return i.injectorIndex|e<<16}return x0}function SA(r,t,e){Mte(r,t,e)}function Ate(r,t){if(t===`class`)return r.classes;if(t===`style`)return r.styles;let e=r.attrs;if(e){let i=e.length,n=0;for(;n>20,u=i?a:a+d,h=n?a+d:c;for(let g=u;g=l&&p.type===e)return g}if(n){let g=o[l];if(g&&Wl(g)&&g.type===e)return l}return null}function B_(r,t,e,i,n){let s=r[e],o=t.data;if(s instanceof Kp){let a=s;if(a.resolving)throw TM(``);let l=mC(a.canSeeViewProviders);a.resolving=!0;o[e].type||o[e];let u=a.injectImpl?Fo(a.injectImpl):null;tA(r,i,0);try{s=r[e]=a.factory(void 0,n,o,r,i),t.firstCreatePass&&e>=i.directiveStart&&Ste(e,o[e],t)}finally{u!==null&&Fo(u),mC(l),a.resolving=!1,iA()}}return s}function Pte(r){if(typeof r==`string`)return r.charCodeAt(0)||0;let t=r.hasOwnProperty(Op)?r[Op]:void 0;return typeof t==`number`?t>=0?t&g8:Ote:t}function S6(r,t,e){let i=1<>p8)]&i)}function w6(r,t){return!(r&2)&&!(r&1&&t)}var $h=class{_tNode;_lView;constructor(t,e){this._tNode=t,this._lView=e}get(t,e,i){return y8(this._tNode,this._lView,t,Rp(i),e)}};function Ote(){return new $h(Nr(),rt())}function pt(r){return K_(()=>{let t=r.prototype.constructor,e=t[m_]||wA(t),i=Object.prototype,n=Object.getPrototypeOf(r.prototype).constructor;for(;n&&n!==i;){let s=n[m_]||wA(n);if(s&&s!==e)return s;n=Object.getPrototypeOf(n)}return s=>new s})}function wA(r){return IM(r)?()=>{let t=wA(os(r));return t&&t()}:Eh(r)}function Fte(r,t,e,i,n){let s=r,o=t;for(;s!==null&&o!==null&&o[zt]&2048&&!h0(o);){let a=_8(s,o,e,i|2,Xc);if(a!==Xc)return a;let l=s.parent;if(!l){let c=o[VM];if(c){let d=c.get(e,Xc,i&-5);if(d!==Xc)return d}l=v8(o),o=o[Ph]}s=l}return n}function v8(r){let t=r[vt],e=t.type;return e===2?t.declTNode:e===1?r[co]:null}function Y_(r){return Ate(Nr(),r)}function An(r){return{token:r.token,providedIn:r.autoProvided===!1?null:`root`,factory:r.factory,value:void 0}}function Lte(){return N0(Nr(),rt())}function N0(r,t){return new Se(ra(r,t))}var Se=(()=>{class r{nativeElement;constructor(e){this.nativeElement=e}static __NG_ELEMENT_ID__=Lte}return r})();function b8(r){return r instanceof Se?r.nativeElement:r}function Vte(){return this._results[Symbol.iterator]()}var ls=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 Te}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,e){return this._results.reduce(t,e)}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,e){this.dirty=!1;let i=OV(t);(this._changesDetected=!PV(this._results,i,e))&&(this._results=i,this.length=i.length,this.last=i[this.length-1],this.first=i[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]=Vte};function S8(r){return(r.flags&128)===128}var r5=(function(r){return r[r.OnPush=0]=`OnPush`,r[r.Eager=1]=`Eager`,r[r.Default=1]=`Default`,r})(r5||{});var w8=new Map;var $te=0;function zte(){return $te++}function Bte(r){w8.set(r[Wc],r)}function CA(r){w8.delete(r[Wc])}var C6=`__ngContext__`;function v0(r,t){au(t)?(r[C6]=t[Wc],Bte(t)):r[C6]=t}function C8(r){return N8(r[d0])}function I8(r){return N8(r[rl])}function N8(r){for(;r!==null&&!sl(r);)r=r[rl];return r}var IA;function s5(r){IA=r}function o5(){if(IA!==void 0)return IA;if(typeof document<`u`)return document;throw new be(210,!1)}var D8=`r`;var k8=`di`;var E8=!1;var T8=new Oe(``,{factory:()=>E8});var I6=new WeakMap;function jte(r,t){if(r==null||typeof r!=`object`)return;let e=I6.get(r);e||(e=new WeakSet,I6.set(r,e)),e.add(t)}function TC(r){return(r.flags&32)===32}var Gte=()=>null;function M8(r,t,e=!1){return Gte(r,t,e)}function A8(r,t){let e=r.contentQueries;if(e!==null){let i=It(null);try{for(let n=0;nr,createScript:r=>r,createScriptURL:r=>r})}catch{}return oC}function MC(r){return Wte()?.createHTML(r)||r}var aC;function R8(){if(aC===void 0&&(aC=null,nl.trustedTypes))try{aC=nl.trustedTypes.createPolicy(`angular#unsafe-bypass`,{createHTML:r=>r,createScript:r=>r,createScriptURL:r=>r})}catch{}return aC}function N6(r){return R8()?.createHTML(r)||r}function D6(r){return R8()?.createScriptURL(r)||r}var du=class{changingThisBreaksApplicationSecurity;constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see ${Pw})`}};var DA=class extends du{getTypeName(){return`HTML`}};var kA=class extends du{getTypeName(){return`Style`}};var EA=class extends du{getTypeName(){return`Script`}};var TA=class extends du{getTypeName(){return`URL`}};var MA=class extends du{getTypeName(){return`ResourceURL`}};function Da(r){return r instanceof du?r.changingThisBreaksApplicationSecurity:r}function Zc(r,t){let e=P8(r);if(e!=null&&e!==t){if(e===`ResourceURL`&&t===`URL`)return!0;throw new Error(`Required a safe ${t}, got a ${e} (see ${Pw})`)}return e===t}function P8(r){return r instanceof du&&r.getTypeName()||null}function l5(r){return new DA(r)}function c5(r){return new kA(r)}function d5(r){return new EA(r)}function u5(r){return new TA(r)}function h5(r){return new MA(r)}function Kte(r){let t=new RA(r);return Yte()?new AA(t):t}var AA=class{inertDocumentHelper;constructor(t){this.inertDocumentHelper=t}getInertBodyElement(t){t=``+t;try{let e=new window.DOMParser().parseFromString(MC(t),`text/html`).body;return e===null?this.inertDocumentHelper.getInertBodyElement(t):(e.firstChild?.remove(),e)}catch{return null}}};var RA=class{defaultDoc;inertDocument;constructor(t){this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument(`sanitization-inert`)}getInertBodyElement(t){let e=this.inertDocument.createElement(`template`);return e.innerHTML=MC(t),e}};function Yte(){try{return!!new window.DOMParser().parseFromString(MC(``),`text/html`)}catch{return!1}}var Qte=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:\/?#]*(?:[\/?#]|$))/i;function Q_(r){return r=String(r),r.match(Qte)?r:`unsafe:`+r}function uu(r){let t={};for(let e of r.split(`,`))t[e]=!0;return t}function X_(...r){let t={};for(let e of r)for(let i in e)e.hasOwnProperty(i)&&(t[i]=!0);return t}var O8=uu(`area,br,col,hr,img,wbr`);var F8=uu(`colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr`);var L8=uu(`rp,rt`);var Xte=X_(L8,F8);var k6=X_(O8,X_(F8,uu(`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`)),X_(L8,uu(`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`)),Xte);var V8=uu(`background,cite,href,itemtype,longdesc,poster,src,xlink:href`);var iie=X_(V8,uu(`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`),uu(`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`));var nie=uu(`script,style,template`);var PA=class{sanitizedSomething=!1;buf=[];sanitizeChildren(t){let e=t.firstChild,i=!0,n=[];for(;e;){if(e.nodeType===Node.ELEMENT_NODE?i=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,i&&e.firstChild){n.push(e),e=oie(e);continue}for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let s=sie(e);if(s){e=s;break}e=n.pop()}}return this.buf.join(``)}startElement(t){let e=E6(t).toLowerCase();if(!k6.hasOwnProperty(e))return this.sanitizedSomething=!0,!nie.hasOwnProperty(e);this.buf.push(`<`),this.buf.push(e);let i=t.attributes;for(let n=0;n`),!0}endElement(t){let e=E6(t).toLowerCase();k6.hasOwnProperty(e)&&!O8.hasOwnProperty(e)&&(this.buf.push(``))}chars(t){this.buf.push(T6(t))}};function rie(r,t){return(r.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)!==Node.DOCUMENT_POSITION_CONTAINED_BY}function sie(r){let t=r.nextSibling;if(t&&r!==t.previousSibling)throw $8(t);return t}function oie(r){let t=r.firstChild;if(t&&rie(r,t))throw $8(t);return t}function E6(r){let t=r.nodeName;return typeof t==`string`?t:`FORM`}function $8(r){return new Error(`Failed to sanitize html because the element is clobbered: ${r.outerHTML}`)}var aie=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g;var lie=/([^\#-~ |!])/g;function T6(r){return r.replace(/&/g,`&`).replace(aie,function(t){let e=t.charCodeAt(0),i=t.charCodeAt(1);return`&#`+((e-55296)*1024+(i-56320)+65536)+`;`}).replace(lie,function(t){return`&#`+t.charCodeAt(0)+`;`}).replace(//g,`>`)}var lC;function AC(r,t){let e=null;try{lC=lC||Kte(r);let i=t?String(t):``;e=lC.getInertBodyElement(i);let n=5,s=i;do{if(n===0)throw new Error(`Failed to sanitize html because the input is unstable`);n--,i=s,s=e.innerHTML,e=lC.getInertBodyElement(i)}while(i!==s);return MC(new PA().sanitizeChildren(M6(e)||e))}finally{if(e){let i=M6(e)||e;for(;i.firstChild;)i.firstChild.remove()}}}function M6(r){return`content`in r&&cie(r)?r.content:null}function cie(r){return r.nodeType===Node.ELEMENT_NODE&&r.nodeName===`TEMPLATE`}var die=/^>|^->||--!>|)/g;var hie=`​$1​`;function gie(r){return r.replace(die,t=>t.replace(uie,hie))}function pie(r,t){return r.createText(t)}function fie(r,t,e){r.setValue(t,e)}function mie(r,t){return r.createComment(gie(t))}function z8(r,t,e){return r.createElement(t,e)}function Up(r,t,e,i,n){r.insertBefore(t,e,i,n)}function B8(r,t,e){r.appendChild(t,e)}function A6(r,t,e,i,n){i!==null?Up(r,t,e,i,n):B8(r,t,e)}function j8(r,t,e,i){r.removeChild(null,t,e,i)}function xie(r,t,e){r.setAttribute(t,`style`,e)}function yie(r,t,e){e===``?r.removeAttribute(t,`class`):r.setAttribute(t,`class`,e)}function H8(r,t,e){let{mergedAttrs:i,classes:n,styles:s}=e;i!==null&&Nte(r,t,i),n!==null&&yie(r,t,n),s!==null&&xie(r,t,s)}function _ie(r,t=!0){if(r[0]!=`:`)return[null,r];let e=r.indexOf(`:`,1);if(e===-1){if(t)throw new Error(`Unsupported format "${r}" expecting ":namespace:name"`);return[null,r]}return[r.slice(1,e),r.slice(e+1)]}function g5(r,t,e){if(t!==void 0&&e!==void 0&&G8(t,e)!==Mn.HTML)return r;let i=f5();return i?N6(i.sanitize(Mn.HTML,r)||``):Zc(r,`HTML`)?N6(Da(r)):AC(o5(),Ah(r))}function jh(r){let t=f5();return t?t.sanitize(Mn.URL,r)||``:Zc(r,`URL`)?Da(r):Q_(Ah(r))}function q8(r){let t=f5();if(t)return D6(t.sanitize(Mn.RESOURCE_URL,r)||``);if(Zc(r,`ResourceURL`))return D6(Da(r));throw new be(904,!1)}function vie(r,t){switch(G8(r,t)){case Mn.RESOURCE_URL:return q8;case Mn.URL:return jh;default:return null}}function p5(r,t,e){return vie(t,e)?.(r)??r}function f5(){let r=rt();return r&&r[Ul].sanitizer}function G8(r,t){let[e,i]=bie(r);return GV(i,t,e)}function bie(r){r=r.toLowerCase();let t=_ie(r,!1);if(t[0])return t;let i=ll()===-1?null:Vh(),n=i?.namespace;if(r===`#host`&&i?.type===2){let s=ra(i,rt());if(s.tagName&&(r=s.tagName.toLowerCase()),n==null){let o=s.namespaceURI;n=o&&Ute[o]}}return[n,r]}function Sie(r){return r instanceof Function?r():r}function wie(r,t,e){let i=r.length;for(;;){let n=r.indexOf(t,e);if(n===-1)return n;if(n===0||r.charCodeAt(n-1)<=32){let s=t.length;if(n+s===i||r.charCodeAt(n+s)<=32)return n}e=n+1}}var U8=`ng-template`;function Cie(r,t,e,i){let n=0;if(i){for(;n-1){let s;for(;++ns?u=``:u=n[d+1].toLowerCase(),i&2&&c!==u){if(Kl(i))return!1;o=!0}}}}return Kl(i)||o}function Kl(r){return(r&1)===0}function Die(r,t,e,i){if(t===null)return-1;let n=0;if(i||!e){let s=!1;for(;n-1)for(e++;e0?`="`+a+`"`:``)+`]`}else i&8?n+=`.`+o:i&4&&(n+=` `+o);else n!==``&&!Kl(o)&&(t+=R6(s,n),n=``),i=o,s=s||!Kl(i);e++}return n!==``&&(t+=R6(s,n)),t}function Rie(r){return r.map(Aie).join(`,`)}function Pie(r){let t=[],e=[],i=1,n=2;for(;i=0;a--){let{el:l,declarationView:c}=i[a],d=l.parentNode;l===t?(i.splice(a,1),V_.add(l),l.dispatchEvent(new CustomEvent(`animationend`,{detail:{cancel:!0}}))):s&&l===s?(i.splice(a,1),l.dispatchEvent(new CustomEvent(`animationend`,{detail:{cancel:!0}})),l.parentNode?.removeChild(l)):d&&n&&d!==n&&(o===null||c===null||o===c)&&(i.splice(a,1),l.dispatchEvent(new CustomEvent(`animationend`,{detail:{cancel:!0}})),l.parentNode?.removeChild(l))}}function Lie(r,t,e){let i=K8(e),n=OA.get(r);n?n.some(s=>s.el===t)||n.push({el:t,declarationView:i}):OA.set(r,[{el:t,declarationView:i}])}var RC=(function(r){return r[r.CHANGE_DETECTION=0]=`CHANGE_DETECTION`,r[r.AFTER_NEXT_RENDER=1]=`AFTER_NEXT_RENDER`,r})(RC||{});var Jc=new Oe(``);var P6=new Set;function ul(r){P6.has(r)||(P6.add(r),performance?.mark?.(`mark_feature_usage`,{detail:{feature:r}}))}var PC=(()=>{class r{impl=null;execute(){this.impl?.execute()}static ɵprov=ze({token:r,providedIn:`root`,factory:()=>new r})}return r})();var y5=[0,1,2,3];var _5=(()=>{class r{ngZone=C(Nt);scheduler=C(qc);errorHandler=C(ql,{optional:!0});sequences=new Set;deferredRegistrations=new Set;executing=!1;constructor(){C(Jc,{optional:!0})}execute(){let e=this.sequences.size>0;e&&pn(Yi.AfterRenderHooksStart),this.executing=!0;for(let i of y5)for(let n of this.sequences)if(!(n.erroredOrDestroyed||!n.hooks[i]))try{n.pipelinedValue=this.ngZone.runOutsideAngular(()=>this.maybeTrace(()=>{let s=n.hooks[i];return s(n.pipelinedValue)},n.snapshot))}catch(s){n.erroredOrDestroyed=!0,this.errorHandler?.handleError(s)}this.executing=!1;for(let i of this.sequences)i.afterRun(),i.once&&(this.sequences.delete(i),i.destroy());for(let i of this.deferredRegistrations)this.sequences.add(i);this.deferredRegistrations.size>0&&this.scheduler.notify(7),this.deferredRegistrations.clear(),e&&pn(Yi.AfterRenderHooksEnd)}register(e){let{view:i}=e;i!==void 0?((i[$p]??=[]).push(e),Hp(i),i[zt]|=8192):this.executing?this.deferredRegistrations.add(e):this.addSequence(e)}addSequence(e){this.sequences.add(e),this.scheduler.notify(7)}unregister(e){this.executing&&this.sequences.has(e)?(e.erroredOrDestroyed=!0,e.pipelinedValue=void 0,e.once=!0):(this.sequences.delete(e),this.deferredRegistrations.delete(e))}maybeTrace(e,i){return i?i.run(RC.AFTER_NEXT_RENDER,e):e()}static ɵprov=ze({token:r,providedIn:`root`,factory:()=>new r})}return r})();var j_=class{impl;hooks;view;once;snapshot;erroredOrDestroyed=!1;pipelinedValue=void 0;unregisterOnDestroy;constructor(t,e,i,n,s,o=null){this.impl=t,this.hooks=e,this.view=i,this.once=n,this.snapshot=o,this.unregisterOnDestroy=s?.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?.[$p];t&&(this.view[$p]=t.filter(e=>e!==this))}};function ed(r,t){let e=t?.injector??C(ji);return ul(`NgAfterNextRender`),$ie(r,e,t,!0)}function Vie(r){return r instanceof Function?[void 0,void 0,r,void 0]:[r.earlyRead,r.write,r.mixedReadWrite,r.read]}function $ie(r,t,e,i){let n=t.get(PC);n.impl??=t.get(_5);let s=t.get(Jc,null,{optional:!0}),o=e?.manualCleanup!==!0?t.get(Ei):null,a=t.get(p0,null,{optional:!0}),l=new j_(n.impl,Vie(r),a?.view,i,o,s?.snapshot(null));return n.impl.register(l),l}var v5=new Oe(``,{factory:()=>{let r=C(Sn),t=new Set;return r.onDestroy(()=>t.clear()),{queue:t,isScheduled:!1,scheduler:null,injector:r}}});function Y8(r,t,e){let i=r.get(v5);if(Array.isArray(t))for(let n of t)i.queue.add(n),e?.detachedLeaveAnimationFns?.push(n);else i.queue.add(t),e?.detachedLeaveAnimationFns?.push(t);i.scheduler&&i.scheduler(r)}function zie(r,t){let e=r.get(v5);if(Array.isArray(t))for(let i of t)e.queue.delete(i);else e.queue.delete(t)}function Bie(r,t){let e=r.get(v5);if(t.detachedLeaveAnimationFns){for(let i of t.detachedLeaveAnimationFns)e.queue.delete(i);t.detachedLeaveAnimationFns=void 0}}function jie(r,t){for(let[e,i]of t)Y8(r,i.animateFns)}function O6(r,t,e,i){let n=r?.[Kc]?.enter;t!==null&&n&&n.has(e.index)&&jie(i,n)}function F6(r,t,e,i){try{e.get(I_)}catch{return i(!1)}let n=r?.[Kc];n?.enter?.has(t.index)&&zie(e,n.enter.get(t.index).animateFns);let s=Hie(r,t,n);if(s.size===0){let o=!1;if(r){let a=[];OC(r,t,a),o=a.length>0}if(!o)return i(!1)}r&&zh.add(r[Wc]),Y8(e,()=>qie(r,t,n||void 0,s,i),n||void 0)}function Hie(r,t,e){let i=new Map,n=e?.leave;if(n&&n.has(t.index)&&i.set(t.index,n.get(t.index)),r&&n)for(let[s,o]of n){if(i.has(s))continue;let l=r[vt].data[s].parent;for(;l;){if(l===t){i.set(s,o);break}l=l.parent}}return i}function qie(r,t,e,i,n){let s=[];if(e&&e.leave)for(let[o]of i){if(!e.leave.has(o))continue;let a=e.leave.get(o);for(let l of a.animateFns){let{promise:c}=l();s.push(c)}e.detachedLeaveAnimationFns=void 0}if(r&&OC(r,t,s),s.length>0){let o=e||r?.[Kc];if(o){let a=o.running;a&&s.push(a),o.running=Promise.allSettled(s),Uie(r,o.running,n)}else Promise.allSettled(s).then(()=>{r&&zh.delete(r[Wc]),n(!0)})}else r&&zh.delete(r[Wc]),n(!1)}function OC(r,t,e){if(t.type&12){let n=r[t.index];if(sl(n))for(let s=cr;s{r[Kc]?.running===t&&(r[Kc].running=void 0,zh.delete(r[Wc])),e(!0)})}function m0(r,t,e,i,n,s,o,a){if(n!=null){let l,c=!1;sl(n)?l=n:au(n)&&(c=!0,n=n[Gl]);let d=Bs(n);r===0&&i!==null?(O6(a,i,s,e),o==null?B8(t,i,d):Up(t,i,d,o||null,!0)):r===1&&i!==null?(O6(a,i,s,e),Up(t,i,d,o||null,!0),Fie(s,d,a)):r===2?(a?.[Kc]?.leave?.has(s.index)&&Lie(s,d,a),V_.delete(d),F6(a,s,e,u=>{if(V_.has(d)){V_.delete(d);return}j8(t,d,c,u)})):r===3&&(V_.delete(d),F6(a,s,e,()=>{t.destroyNode(d)})),l!=null&&nne(t,r,e,l,s,i,o)}}function Wie(r,t){Q8(r,t),t[Gl]=null,t[co]=null}function Kie(r,t,e,i,n,s){i[Gl]=n,i[co]=t,LC(r,i,e,1,n,s)}function Q8(r,t){t[Ul].changeDetectionScheduler?.notify(9),LC(r,t,t[hn],2,null,null)}function Yie(r){let t=r[d0];if(!t)return uA(r[vt],r);for(;t;){let e=null;if(au(t))e=t[d0];else{let i=t[cr];i&&(e=i)}if(!e){for(;t&&!t[rl]&&t!==r;)au(t)&&uA(t[vt],t),t=t[as];t===null&&(t=r),au(t)&&uA(t[vt],t),e=t&&t[rl]}t=e}}function b5(r,t){let e=r[Bp],i=e.indexOf(t);e.splice(i,1)}function FC(r,t){if(jp(t))return;let e=t[hn];e.destroyNode&&LC(r,t,e,3,null,null),Yie(t)}function uA(r,t){if(jp(t))return;let e=It(null);try{t[zt]&=-129,t[zt]|=256,t[Ia]&&Nh(t[Ia]),Xie(r,t),Qie(r,t),t[vt].type===1&&t[hn].destroy();let i=t[Oh];if(i!==null&&sl(t[as])){i!==t[as]&&b5(i,t);let n=t[Uc];n!==null&&n.detachView(r)}CA(t)}finally{It(e)}}function Qie(r,t){let e=r.cleanup,i=t[c0];if(e!==null)for(let o=0;o=0?i[a]():i[-a].unsubscribe(),o+=2}else{let a=i[e[o+1]];e[o].call(a)}i!==null&&(t[c0]=null);let n=t[nu];if(n!==null){t[nu]=null;for(let o=0;onn&&n7(r,t,nn,!1);pn(o?Yi.TemplateUpdateStart:Yi.TemplateCreateStart,n,e),e(i,n)}finally{Lh(s);pn(o?Yi.TemplateUpdateEnd:Yi.TemplateCreateEnd,n,e)}}function $C(r,t,e){hne(r,t,e),(e.flags&64)===64&&gne(r,t,e)}function D0(r,t,e=ra){let i=t.localNames;if(i!==null){let n=t.index+1;for(let s=0;s=a&&g<=l){let p=t.data[g],y=u[h+1];Yp(p,e[g],y,s),c=!0}else if(g>l)break}}return o!==null&&i.inputs.hasOwnProperty(n)&&(Yp(i,e[o],n,s),c=!0),c}function _ne(r,t){let e=ol(t,r),i=e[vt];vne(i,e);let n=e[Gl];n!==null&&e[Lp]===null&&(e[Lp]=M8(n,e[Gc])),pn(Yi.ComponentStart);try{k5(i,e,e[mr])}finally{pn(Yi.ComponentEnd,e[mr])}}function vne(r,t){for(let e=t.length;e{Hp(r.lView)},consumerOnSignalRead(){this.lView[Ia]=this}});function Nne(r){let t=r[Ia]??Object.create(Dne);return t.lView=r,t}var Dne=s(r({},wh),{consumerIsAlwaysLive:!0,kind:`template`,consumerMarkedDirty:r=>{let t=su(r.lView);for(;t&&!h7(t[vt]);)t=su(t);t&&HM(t)},consumerOnSignalRead(){this.lView[Ia]=this}});function h7(r){return r.type!==2}function g7(r){if(r[Th]===null)return;let t=!0;for(;t;){let e=!1;for(let i of r[Th])i.dirty&&(e=!0,i.zone===null||Zone.current===i.zone?i.run():i.zone.run(()=>i.run()));t=e&&!!(r[zt]&8192)}}var kne=100;function p7(r,t=0){let i=r[Ul].rendererFactory;i.begin?.();try{Ene(r,t)}finally{i.end?.()}}function Ene(r,t){let e=eA();try{x_(!0),LA(r,t);let i=0;for(;E_(r);){if(i===kne)throw new be(103,!1);i++,LA(r,1)}}finally{x_(e)}}function Tne(r,t,e,i){if(jp(t))return;let n=t[zt];Jw(t);let a=!0,l=null,c=null;h7(r)?(c=Sne(t),l=Jd(c)):ew()===null?(a=!1,c=Nne(t),l=Jd(c)):t[Ia]&&(Nh(t[Ia]),t[Ia]=null);try{jM(t),t6(r.bindingStartIndex),e!==null&&r7(r,t,e,2,i);let d=(n&3)===3;if(d){let g=r.preOrderCheckHooks;g!==null&&dC(t,g,null)}else{let g=r.preOrderHooks;g!==null&&uC(t,g,0,null),cA(t,0)}if(Mne(t),g7(t),f7(t,0),r.contentQueries!==null&&A8(r,t),true)if(d){let g=r.contentCheckHooks;g!==null&&dC(t,g)}else{let g=r.contentHooks;g!==null&&uC(t,g,1),cA(t,1)}Rne(r,t);let u=r.components;u!==null&&x7(t,u,0);let h=r.viewQuery;if(h!==null&&NA(2,h,i),true)if(d){let g=r.viewCheckHooks;g!==null&&dC(t,g)}else{let g=r.viewHooks;g!==null&&uC(t,g,2),cA(t,2)}if(r.firstUpdatePass===!0&&(r.firstUpdatePass=!1),t[Hw]){for(let g of t[Hw])g();t[Hw]=null}d7(t),t[zt]&=-73}catch(d){throw Hp(t),d}finally{c!==null&&(Ih(c,l),a&&Cne(c)),eC()}}function f7(r,t){for(let e=C8(r);e!==null;e=I8(e))for(let i=cr;i0&&(r[e-1][rl]=i[rl]);let s=C_(r,cr+t);Wie(i[vt],i);let o=s[Uc];o!==null&&o.detachView(s[vt]),i[as]=null,i[rl]=null,i[zt]&=-129}return i}function Pne(r,t,e,i){let n=cr+i,s=e.length;i>0&&(e[n-1][rl]=t),i-1&&(q_(t,i),C_(e,i))}this._attachedToViewContainer=!1}FC(this._lView[vt],this._lView)}onDestroy(t){Kw(this._lView,t)}markForCheck(){E5(this._cdRefInjectingView||this._lView,4)}detach(){this._lView[zt]&=-129}reattach(){Ww(this._lView),this._lView[zt]|=128}detectChanges(){this._lView[zt]|=1024,p7(this._lView)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new be(902,!1);this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null;let t=h0(this._lView),e=this._lView[Oh];e!==null&&!t&&b5(e,this._lView),Q8(this._lView[vt],this._lView)}attachToAppRef(t){if(this._attachedToViewContainer)throw new be(902,!1);this._appRef=t;let e=h0(this._lView),i=this._lView[Oh];i!==null&&!e&&b7(i,this._lView),Ww(this._lView)}};var fe=(()=>{class r{_declarationLView;_declarationTContainer;elementRef;static __NG_ELEMENT_ID__=One;constructor(e,i,n){this._declarationLView=e,this._declarationTContainer=i,this.elementRef=n}get ssrId(){return this._declarationTContainer.tView?.ssrId||null}createEmbeddedView(e,i){return this.createEmbeddedViewImpl(e,i)}createEmbeddedViewImpl(e,i,n){return new Bh(Z_(this._declarationLView,this._declarationTContainer,e,{embeddedViewInjector:i,dehydratedView:n}))}}return r})();function One(){return HC(Nr(),rt())}function HC(r,t){return r.type&4?new fe(t,r,N0(r,t)):null}function Zp(r,t,e,i,n){let s=r.data[t];if(s===null)s=Fne(r,t,e,i,n),i6()&&(s.flags|=32);else if(s.type&64){s.type=e,s.value=i,s.attrs=n;let o=JV();s.injectorIndex=o===null?-1:o.injectorIndex}return qp(s,!0),s}function Fne(r,t,e,i,n){let s=QM(),o=XM(),a=o?s:s&&s.parent,l=r.data[t]=Vne(r,a,e,t,i,n);return Lne(r,l,s,o),l}function Lne(r,t,e,i){r.firstChild===null&&(r.firstChild=t),e!==null&&(i?e.child==null&&t.parent!==null&&(e.child=t):e.next===null&&(e.next=t,t.prev=e))}function Vne(r,t,e,i,n,s){let o=t?t.injectorIndex:-1,a=0;return WM()&&(a|=128),{type:e,index:i,insertBeforeIndex:null,injectorIndex:o,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,componentOffset:-1,controlDirectiveIndex:-1,customControlIndex:-1,propertyBindings:null,flags:a,providerIndexes:0,value:n,namespace:nA(),attrs:s,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}}function $ne(r){let t=r[$M]??[],i=r[as][hn],n=[];for(let s of t)s.data[k8]!==void 0?n.push(s):zne(s,i);r[$M]=n}function zne(r,t){let e=0,i=r.firstChild;if(i){let n=r.data[D8];for(;enull;var jne=()=>null;function yC(r,t){return Bne(r,t)}function S7(r,t,e){return jne(r,t,e)}var w7=class{};var Ql=class{};var Wt=class{destroyNode=null;static __NG_ELEMENT_ID__=()=>Hne()};function Hne(){let r=rt(),e=ol(Nr().index,r);return(au(e)?e:r)[hn]}var C7=(()=>{class r{static ɵprov=ze({token:r,providedIn:`root`,factory:()=>null})}return r})();function I7(r){return r.debugInfo?.className||r.type.name||null}var gC={};var _C=class{injector;parentInjector;constructor(t,e){this.injector=t,this.parentInjector=e}get(t,e,i){let n=this.injector.get(t,gC,i);return n!==gC||e===gC?n:this.parentInjector.get(t,e,i)}};function T5(r){return qC(r)?Array.isArray(r)||!(r instanceof Map)&&Symbol.iterator in r:!1}function N7(r,t){if(Array.isArray(r))for(let e=0;ei(Bs(y[r.index])):r.index,t,e,s,a,g,!1)}return c}function qne(r){return r.startsWith(`animation`)||r.startsWith(`transition`)}function Gne(r,t,e,i){let n=r.cleanup;if(n!=null)for(let s=0;sl?a[l]:null}typeof o==`string`&&(s+=2)}return null}function k7(r,t,e,i,n,s,o){let a=t.firstCreatePass?GM(t):null,l=qM(e),c=l.length;l.push(n,s),a&&a.push(i,r,c,(c+1)*(o?-1:1))}function $6(r,t,e,i,n){let s=null,o=null,a=null,l=!1,c=r.directiveToIndex.get(e.type);if(typeof c==`number`?s=c:[s,o,a]=c,o!==null&&a!==null&&r.hostDirectiveOutputs?.hasOwnProperty(i)){let d=r.hostDirectiveOutputs[i];for(let u=0;u=o&&h<=a)l=!0,vC(r,t,h,d[u+1],i,n);else if(h>a)break}}return e.outputs.hasOwnProperty(i)&&(l=!0,vC(r,t,s,i,i,n)),l}function vC(r,t,e,i,n,s){let o=t[e],a=t[vt],u=o[a.data[e].outputs[i]].subscribe(s);k7(r.index,a,t,n,s,u,!0)}function Jt(){Une()}function Une(){let r=rt(),t=gn(),e=Nr();if(t.firstCreatePass&&Kne(t,e),e.controlDirectiveIndex===-1)return;ul(`NgSignalForms`);let i=r[e.controlDirectiveIndex];t.data[e.controlDirectiveIndex].controlDef.create(i,new bC(r,t,e))}function ei(){Wne()}function Wne(){let r=rt(),t=gn(),e=Vh();if(e.controlDirectiveIndex===-1)return;let i=t.data[e.controlDirectiveIndex].controlDef,n=r[e.controlDirectiveIndex];i.update(n,new bC(r,t,e))}var bC=class{lView;tView;tNode;hasPassThrough;constructor(t,e,i){this.lView=t,this.tView=e,this.tNode=i,this.hasPassThrough=!!(i.flags&4096)}get customControl(){return this.tNode.customControlIndex!==-1?this.lView[this.tNode.customControlIndex]:void 0}get nativeElement(){return ra(this.tNode,this.lView)}get descriptor(){return`<${this.tNode.value}>`}listenToCustomControlOutput(t,e){let i=this.tView.data[this.tNode.customControlIndex];$6(this.tNode,this.lView,i,t,Wp(this.tNode,this.lView,e))}listenToCustomControlModel(t){let e=this.tNode.flags&1024?`valueChange`:`checkedChange`,i=this.tView.data[this.tNode.customControlIndex];$6(this.tNode,this.lView,i,e,Wp(this.tNode,this.lView,t))}listenToDom(t,e){M5(this.tNode,this.tView,this.lView,void 0,this.lView[hn],t,e,Wp(this.tNode,this.lView,e))}setInputOnDirectives(t,e){let i=this.tNode.inputs?.[t],n=this.tNode.hostDirectiveInputs?.[t];if(!i&&!n)return!1;let s=!1;if(i)for(let o of i){if(o===this.tNode.controlDirectiveIndex)continue;let a=this.tView.data[o],l=this.lView[o];Yp(a,l,t,e),s=!0}if(n)for(let o=0;o0;){let n=i.shift();if(typeof n!=`function`){for(let o in n.inputs)e[n.inputs[o]]=!0;let s=z6(n.directive);s!==null&&i.push(...s);continue}for(let s of n()){if(typeof s==`function`)continue;if(s.inputs)for(let a=0;a1){t.flags|=4096;return}Yne(r,t)}function Yne(r,t){for(let e=t.directiveStart;e{let s=t.hostDirectiveInputs[i],o=t.hostDirectiveOutputs[i+`Change`];if(!s||!o)return!1;for(let a=0;a=g&&l<=p)return t.flags|=n,t.customControlIndex=h,!0}}return!1};if(e(`value`,1024)||e(`checked`,2048))return}}function B6(r,t){return Qne(r,t)&&Xne(r,t+`Change`)}function Qne(r,t){return t in r.inputs}function Xne(r,t){return t in r.outputs}var VA=Symbol(`BINDING`);var Jp=new Oe(``);function SC(r,t,e){let i=e?r.styles:null,n=e?r.classes:null,s=0;if(t!==null)for(let o=0;o0&&(e.directiveToIndex=new Map);for(let h=0;h0;){let e=r[--t];if(typeof e==`number`&&e<0)return e}return 0}function sre(r,t,e){if(e){if(t.exportAs)for(let i=0;i{let[e,i,n]=r[t],s={propName:e,templateName:t,isSignal:(i&VC.SignalBased)!==0};return n&&(s.transform=n),s})}function cre(r){return Object.keys(r).map(t=>({propName:r[t],templateName:t}))}function dre(r,t,e){let i=t instanceof Sn?t:t?.injector;return i&&r.getStandaloneInjector!==null&&(i=r.getStandaloneInjector(i)||i),i?new _C(e,i):e}function ure(r){let t=r.get(Ql,null);if(t===null)throw new be(407,!1);return{rendererFactory:t,sanitizer:r.get(C7,null),changeDetectionScheduler:r.get(qc,null),ngReflect:!1,tracingService:r.get(Jc,null,{optional:!0})}}function hre(r,t){let e=R7(r);return z8(t,e,e===`svg`?s0:e===`math`?qw:null)}function gre(r){if((r&&`localName`in r&&typeof r.localName==`string`?r.localName:r?.tagName)?.toLowerCase()===`script`)throw new be(905,!1)}function R7(r){return(r.selectors[0][0]||`div`).toLowerCase()}var C0=class{componentDef;ngModule;selector;componentType;ngContentSelectors;isBoundToModule;cachedInputs=null;cachedOutputs=null;get inputs(){return this.cachedInputs??=lre(this.componentDef.inputs),this.cachedInputs}get outputs(){return this.cachedOutputs??=cre(this.componentDef.outputs),this.cachedOutputs}constructor(t,e){this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=Rie(t.selectors),this.ngContentSelectors=t.ngContentSelectors??[],this.isBoundToModule=!!e}create(t,e,i,n,s,o){pn(Yi.DynamicComponentStart);let a=It(null);try{let l=this.componentDef,c=dre(l,n||this.ngModule,t),d=ure(c),u=d.tracingService;return u&&u.componentCreate?u.componentCreate(I7(l),()=>this.createComponentRef(d,c,e,i,s,o)):this.createComponentRef(d,c,e,i,s,o)}finally{It(a)}}createComponentRef(t,e,i,n,s,o){let a=this.componentDef,l=pre(n,a,o,s),c=t.rendererFactory.createRenderer(null,a),d=n?lne(c,n,a.encapsulation,e):hre(a,c);gre(d);let u=e.get(Jp,null),h=fre(d,()=>e.get(St,null)??o5());u&&u.addHost(h);let g=o?.some(G6)||s?.some(_=>typeof _!=`function`&&_.bindings.some(G6)),p=I5(null,l,null,512|t7(a),null,null,t,c,e,null,M8(d,e,!0));u&&A7&&h instanceof ShadowRoot&&Kw(p,()=>{u.removeHost(h)}),p[nn]=d,Jw(p);let y=null;try{let _=A5(nn,p,2,`#host`,()=>l.directiveRegistry,!0,0);H8(c,d,_),v0(d,p),$C(l,p,_),a5(l,_,p),R5(l,_),i!==void 0&&xre(_,this.ngContentSelectors,i),y=ol(_.index,p),p[mr]=y[mr],k5(l,p,null)}catch(_){throw y!==null&&CA(y),CA(p),_}finally{pn(Yi.DynamicComponentEnd),eC()}return new wC(this.componentType,p,!!g)}};function pre(r,t,e,i){let n=r?[`ng-version`,`22.1.2`]:Pie(t.selectors[0]),s=null,o=null,a=0;if(e)for(let d of e)a+=d[VA].requiredVars,d.create&&(d.targetIdx=0,(s??=[]).push(d)),d.update&&(d.targetIdx=0,(o??=[]).push(d));if(i)for(let d=0;d{if(e&1&&r)for(let i of r)i.create();if(e&2&&t)for(let i of t)i.update()}}function G6(r){let t=r[VA].kind;return t===`input`||t===`twoWay`}var wC=class extends w7{_rootLView;_hasInputBindings;instance;hostView;changeDetectorRef;componentType;location;previousInputValues=null;_tNode;constructor(t,e,i){super(),this._rootLView=e,this._hasInputBindings=i,this._tNode=Gw(e[vt],nn),this.location=N0(this._tNode,e),this.instance=ol(this._tNode.index,e)[mr],this.hostView=this.changeDetectorRef=new Bh(e,void 0),this.componentType=t}setInput(t,e){this._hasInputBindings;let i=this._tNode;if(this.previousInputValues??=new Map,this.previousInputValues.has(t)&&Object.is(this.previousInputValues.get(t),e))return;let n=this._rootLView;jC(i,n[vt],n,t,e);this.previousInputValues.set(t,e);E5(ol(i.index,n),1)}get injector(){return new $h(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}};function xre(r,t,e){let i=r.projection=[];for(let n=0;n{class r{static __NG_ELEMENT_ID__=yre}return r})();function yre(){return P7(Nr(),rt())}var $A=class r extends Ti{_lContainer;_hostTNode;_hostLView;constructor(t,e,i){super(),this._lContainer=t,this._hostTNode=e,this._hostLView=i}get element(){return N0(this._hostTNode,this._hostLView)}get injector(){return new $h(this._hostTNode,this._hostLView)}get parentInjector(){let t=n5(this._hostTNode,this._hostLView);if(h8(t)){let e=fC(t,this._hostLView),i=pC(t),n=e[vt].data[i+8];return new $h(n,e)}else return new $h(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){let e=U6(this._lContainer);return e!==null&&e[t]||null}get length(){return this._lContainer.length-cr}createEmbeddedView(t,e,i){let n,s;typeof i==`number`?n=i:i!=null&&(n=i.index,s=i.injector);let o=yC(this._lContainer,t.ssrId),a=t.createEmbeddedViewImpl(e||{},s,o);return this.insertImpl(a,n,b0(this._hostTNode,o)),a}createComponent(t,e,i,n,s,o,a){let l,c=e||{};l=c.index,i=c.injector,n=c.projectableNodes,s=c.environmentInjector||c.ngModuleRef,o=c.directives,a=c.bindings;let d=new C0(Mh(t)),u=i||this.parentInjector;if(!s&&d.ngModule==null){let w=this.parentInjector.get(Sn,null);w&&(s=w)}let h=Mh(d.componentType??{}),g=yC(this._lContainer,h?.id??null),p=g?.firstChild??null,y=d.create(u,n,p,s,o,a);return this.insertImpl(y.hostView,l,b0(this._hostTNode,g)),y}insert(t,e){return this.insertImpl(t,e,!0)}insertImpl(t,e,i){let n=t._lView;if(WV(n)){let a=this.indexOf(t);if(a!==-1)this.detach(a);else{let l=n[as],c=new r(l,l[co],l[as]);c.detach(c.indexOf(t))}}let s=this._adjustIndex(e),o=this._lContainer;return J_(o,n,s,i),t.attachToViewContainerRef(),AM(hA(o),s,t),t}move(t,e){return this.insert(t,e)}indexOf(t){let e=U6(this._lContainer);return e!==null?e.indexOf(t):-1}remove(t){let e=this._adjustIndex(t,-1),i=q_(this._lContainer,e);i&&(C_(hA(this._lContainer),e),FC(i[vt],i))}detach(t){let e=this._adjustIndex(t,-1),i=q_(this._lContainer,e);return i&&C_(hA(this._lContainer),e)!=null?new Bh(i):null}_adjustIndex(t,e=0){return t??this.length+e}};function U6(r){return r[D_]}function hA(r){return r[D_]||(r[D_]=[])}function P7(r,t){let e,i=t[r.index];return sl(i)?e=i:(e=y7(i,t,null,r),t[r.index]=e,N5(t,e)),vre(e,t,r,i),new $A(e,r,t)}function _re(r,t){let e=r[hn],i=e.createComment(``),n=ra(t,r);return Up(e,e.parentNode(n),i,e.nextSibling(n),!1),i}var vre=wre;var bre=()=>!1;function Sre(r,t,e){return bre(r,t,e)}function wre(r,t,e,i){if(r[zp])return;let n;e.type&8?n=Bs(i):n=_re(t,e),r[zp]=n}var zA=class r{queryList;matches=null;constructor(t){this.queryList=t}clone(){return new r(this.queryList)}setDirty(){this.queryList.setDirty()}};var BA=class r{queries;constructor(t=[]){this.queries=t}createEmbeddedView(t){let e=t.queries;if(e!==null){let i=t.contentQueries!==null?t.contentQueries[0]:e.length,n=[];for(let s=0;s0)i.push(o[a/2]);else{let c=s[a+1],d=t[-l];for(let u=cr;ut.trim())}function V7(r,t,e){r.queries===null&&(r.queries=new jA),r.queries.track(new HA(t,e))}function Tre(r,t){let e=r.contentQueries||(r.contentQueries=[]);t!==(e.length?e[e.length-1]:-1)&&e.push(r.queries.length-1,t)}function O5(r,t){return r.queries.getByIndex(t)}function $7(r,t){let e=r[vt],i=O5(e,t);return i.crossesNgTemplate?qA(e,r,t,[]):O7(e,r,i,t)}function z7(r,t,e){let i,n=s_(()=>{i._dirtyCounter();let s=Are(i,r);if(t&&s===void 0)throw new be(-951,!1);return s});return i=n[Cr],i._dirtyCounter=oi(0),i._flatValue=void 0,n}function B7(r){return z7(!0,!1,r)}function j7(r){return z7(!0,!0,r)}function Mre(r,t){let e=r[Cr];e._lView=rt(),e._queryIndex=t,e._queryList=P5(e._lView,t),e._queryList.onDirty(()=>e._dirtyCounter.update(i=>i+1))}function Are(r,t){let e=r._lView,i=r._queryIndex;if(e===void 0||i===void 0||e[zt]&4)return t?void 0:lo;let n=P5(e,i),s=$7(e,i);return n.reset(s,b8),t?n.first:n._changesDetected||r._flatValue===void 0?r._flatValue=n.toArray():r._flatValue}function Hh(r){return!!r&&typeof r.then==`function`}function F5(r){return!!r&&typeof r.subscribe==`function`}var Qp=class{};var GC=class{};var IC=class extends Qp{ngModuleType;_parent;_bootstrapComponents=[];_r3Injector;instance;destroyCbs=[];constructor(t,e,i,n=!0){super(),this.ngModuleType=t,this._parent=e;let s=EV(t);this._bootstrapComponents=Sie(s.bootstrap),this._r3Injector=rA(t,e,[{provide:Qp,useValue:this},...i],v_(t),new Set([`environment`])),n&&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(e=>e()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}};var NC=class extends GC{moduleType;constructor(t){super(),this.moduleType=t}create(t){return new IC(this.moduleType,t,[])}};var G_=class extends Qp{injector;instance=null;constructor(t){super();let e=new ru([...t.providers,{provide:Qp,useValue:this}],t.parent||l0(),t.debugName,new Set([`environment`]));this.injector=e,t.runEnvironmentInitializers&&e.resolveInjectorInitializers()}destroy(){this.injector.destroy()}onDestroy(t){this.injector.onDestroy(t)}};function tv(r,t,e=null){return new G_({providers:r,parent:t,debugName:e,runEnvironmentInitializers:!0}).injector}var Rre=(()=>{class r{_injector;cachedInjectors=new Map;constructor(e){this._injector=e}getOrCreateStandaloneInjector(e){if(!e.standalone)return null;if(!this.cachedInjectors.has(e)){let i=PM(!1,e.type),n=i.length>0?tv([i],this._injector,``):null;this.cachedInjectors.set(e,n)}return this.cachedInjectors.get(e)}ngOnDestroy(){try{for(let e of this.cachedInjectors.values())e!==null&&e.destroy()}finally{this.cachedInjectors.clear()}}static ɵprov=ze({token:r,providedIn:`environment`,factory:()=>new r(yt(Sn))})}return r})();function re(r$1){return K_(()=>{let t=H7(r$1),e=s(r({},t),{decls:r$1.decls,vars:r$1.vars,template:r$1.template,consts:r$1.consts||null,ngContentSelectors:r$1.ngContentSelectors,onPush:r$1.changeDetection!==r5.Eager,directiveDefs:null,pipeDefs:null,dependencies:t.standalone&&r$1.dependencies||null,getStandaloneInjector:t.standalone?n=>n.get(Rre).getOrCreateStandaloneInjector(e):null,getExternalStyles:null,signals:r$1.signals??!1,data:r$1.data||{},encapsulation:r$1.encapsulation||Na.Emulated,styles:r$1.styles||lo,_:null,schemas:r$1.schemas||null,tView:null,id:``});t.standalone&&ul(`NgStandalone`),q7(e);let i=r$1.dependencies;return e.directiveDefs=W6(i,Pre),e.pipeDefs=W6(i,TV),e.id=Lre(e),e})}function Pre(r){return Mh(r)||Lw(r)}function Si(r){return K_(()=>({type:r.type,bootstrap:r.bootstrap||lo,declarations:r.declarations||lo,imports:r.imports||lo,exports:r.exports||lo,transitiveCompileScopes:null,schemas:r.schemas||null,id:r.id||null}))}function Ore(r,t){if(r==null)return Rh;let e={};for(let i in r)if(r.hasOwnProperty(i)){let n=r[i],s,o,a,l;Array.isArray(n)?(a=n[0],s=n[1],o=n[2]??s,l=n[3]||null):(s=n,o=n,a=VC.None,l=null),e[s]=[i,a,l],t[s]=o}return e}function Fre(r){if(r==null)return Rh;let t={};for(let e in r)r.hasOwnProperty(e)&&(t[r[e]]=e);return t}function ee(r){return K_(()=>{let t=H7(r);return q7(t),t})}function Dt(r){return{type:r.type,name:r.name,factory:null,pure:r.pure!==!1,standalone:r.standalone??!0,onDestroy:r.type.prototype.ngOnDestroy||null}}function H7(r){let t={};return{type:r.type,providersResolver:null,viewProvidersResolver:null,factory:null,hostBindings:r.hostBindings||null,hostVars:r.hostVars||0,hostAttrs:r.hostAttrs||null,contentQueries:r.contentQueries||null,declaredInputs:t,inputConfig:r.inputs||Rh,exportAs:r.exportAs||null,standalone:r.standalone??!0,signals:r.signals===!0,selectors:r.selectors||lo,viewQuery:r.viewQuery||null,features:r.features||null,setInput:null,resolveHostDirectives:null,hostDirectives:null,controlDef:null,signalFormsInputPresence:null,inputs:Ore(r.inputs,t),outputs:Fre(r.outputs),debugInfo:null}}function q7(r){r.features?.forEach(t=>t(r))}function W6(r,t){return r?()=>{let e=typeof r==`function`?r():r,i=[];for(let n of e){let s=t(n);s!==null&&i.push(s)}return i}:null}function Lre(r){let t=0,e=typeof r.consts==`function`?``:r.consts,i=[r.selectors,r.ngContentSelectors,r.hostVars,r.hostAttrs,e,r.vars,r.decls,r.encapsulation,r.standalone,r.signals,r.exportAs,JSON.stringify(r.inputs),JSON.stringify(r.outputs),Object.getOwnPropertyNames(r.type.prototype),!!r.contentQueries,!!r.viewQuery];for(let s of i.join(`|`))t=Math.imul(31,t)+s.charCodeAt(0)<<0;return t+=2147483648,`c`+t}var G7=new Oe(``);var L5=(()=>{class r{resolve;reject;initialized=!1;done=!1;donePromise=new Promise((e,i)=>{this.resolve=e,this.reject=i});appInits=C(G7,{optional:!0})??[];injector=C(ji);constructor(){}runInitializers(){if(this.initialized)return;let e=[];for(let n of this.appInits){let s=vs(this.injector,n);if(Hh(s))e.push(s);else if(F5(s)){let o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});e.push(o)}}let i=()=>{this.done=!0,this.resolve()};Promise.all(e).then(()=>{i()}).catch(n=>{this.reject(n)}),e.length===0&&i(),this.initialized=!0}static ɵfac=function(i){return new(i||r)};static ɵprov=An({token:r,factory:r.ɵfac})}return r})();function UC(r){return t=>{t.controlDef={create:(e,i)=>{e?.ɵngControlCreate(i)},update:(e,i)=>{e?.ɵngControlUpdate?.(i)},passThroughInput:r}}}function Lo(r){let t=e=>{let i=Array.isArray(r);e.hostDirectives===null?(e.resolveHostDirectives=Vre,e.hostDirectives=i?r.map(GA):[r]):i?e.hostDirectives.unshift(...r.map(GA)):e.hostDirectives.unshift(r)};return t.ngInherit=!0,t}function Vre(r){let t=[],e=!1,i=null,n=null;for(let s=0;s{$re(o.declaredInputs,s.inputs)}),[t,i,n]}function U7(r,t,e,i){if(r.hostDirectives!==null)for(let n of r.hostDirectives)if(typeof n==`function`){let s=n();for(let o of s)K6(GA(o),t,e,i)}else K6(n,t,e,i)}function K6(r,t,e,i){let n=Lw(r.directive);if(U7(n,t,e,i),e.has(n)){let s=e.get(n);Y6(s,r.inputs,`input`),Y6(s,r.outputs,`output`)}else i.includes(n)||(e.set(n,r),t.push(n))}function Y6(r,t,e){let i=e===`input`?r.inputs:r.outputs;Object.keys(t).forEach(n=>{let s=t[n];(!i.hasOwnProperty(n)||i[n]===s)&&(i[n]=s)})}function GA(r){return typeof r==`function`?{directive:os(r),inputs:{},outputs:{}}:{directive:os(r.directive),inputs:Q6(r.inputs),outputs:Q6(r.outputs)}}function Q6(r){let t={};if(r!==void 0&&r.length>0)for(let e=0;e=0;i--){let n=r[i];n.hostVars=t+=n.hostVars,n.hostAttrs=_0(n.hostAttrs,e=_0(e,n.hostAttrs))}}function gA(r){return r===Rh?{}:r===lo?[]:r}function Hre(r,t){let e=r.viewQuery;e?r.viewQuery=(i,n)=>{t(i,n),e(i,n)}:r.viewQuery=t}function qre(r,t){let e=r.contentQueries;e?r.contentQueries=(i,n,s)=>{t(i,n,s),e(i,n,s)}:r.contentQueries=t}function Gre(r,t){let e=r.hostBindings;e?r.hostBindings=(i,n)=>{t(i,n),e(i,n)}:r.hostBindings=t}function W7(r,t,e,i,n,s,o,a){if(e.firstCreatePass){r.mergedAttrs=_0(r.mergedAttrs,r.attrs);let d=r.tView=C5(2,r,n,s,o,e.directiveRegistry,e.pipeRegistry,null,e.schemas,e.consts,null);e.queries!==null&&(e.queries.template(e,r),d.queries=e.queries.embeddedTView(r))}a&&(r.flags|=a),qp(r,!1);let l=Wre(e,t,r,i);tC()&&S5(e,t,l,r),v0(l,t);let c=y7(l,t,l,r);t[i+nn]=c,N5(t,c),Sre(c,r,t)}function Ure(r,t,e,i,n,s,o,a,l,c,d){let u=e+nn,h;return t.firstCreatePass?(h=Zp(t,u,4,o||null,a||null),Yw()&&E7(t,r,h,al(t.consts,c),D5),c8(t,h)):h=t.data[u],W7(h,r,t,e,i,n,s,l),u0(h)&&$C(t,r,h),c!=null&&D0(r,h,d),h}function U_(r,t,e,i,n,s,o,a,l,c,d){let u=e+nn,h;if(t.firstCreatePass){if(h=Zp(t,u,4,o||null,a||null),c!=null){let g=al(t.consts,c);h.localNames=[];for(let p=0;p{class r{log(e){console.log(e)}warn(e){console.warn(e)}static ɵfac=function(i){return new(i||r)};static ɵprov=ze({token:r,factory:r.ɵfac,providedIn:`platform`})}return r})();var V5=new Oe(``);var iv=new Oe(``);function K7(){BT(()=>{throw new be(600,``)})}var Yre=10;var id=(()=>{class r{_runningTick=!1;_destroyed=!1;_destroyListeners=[];_views=[];internalErrorHandler=C(dl);afterRenderManager=C(PC);zonelessEnabled=C(O_);rootEffectScheduler=C(rC);dirtyFlags=0;tracingSnapshot=null;allTestViews=new Set;autoDetectTestViews=new Set;includeAllTestViews=!1;afterTick=new Te;get allViews(){return[...(this.includeAllTestViews?this.allTestViews:this.autoDetectTestViews).keys(),...this._views]}get destroyed(){return this._destroyed}componentTypes=[];components=[];internalPendingTask=C(lu);get isStable(){return this.internalPendingTask.hasPendingTasksObservable.pipe($i(e=>!e))}constructor(){C(Jc,{optional:!0})}whenStable(){let e;return new Promise(i=>{e=this.isStable.subscribe({next:n=>{n&&i()}})}).finally(()=>{e.unsubscribe()})}_injector=C(Sn);_rendererFactory=null;get injector(){return this._injector}bootstrap(e,i){return this.bootstrapImpl(e,i)}bootstrapImpl(e,i,n=ji.NULL){return this._injector.get(Nt).run(()=>{if(pn(Yi.BootstrapComponentStart),!this._injector.get(L5).done)throw new be(405,``);let a=Mh(e),l=this._injector.get(Qp),c=new C0(a,l);this.componentTypes.push(e);let{hostElement:d,directives:u,bindings:h}=Qre(i),g=d||c.selector,p=c.create(n,[],g,l.injector,u,h),y=p.location.nativeElement,_=p.injector.get(V5,null);return _?.registerApplication(y),p.onDestroy(()=>{this.detachView(p.hostView),z_(this.components,p),_?.unregisterApplication(y)}),this._loadComponent(p),pn(Yi.BootstrapComponentEnd,p),p})}tick(){this.zonelessEnabled||(this.dirtyFlags|=1),this._tick()}_tick(){pn(Yi.ChangeDetectionStart),this.tracingSnapshot!==null?this.tracingSnapshot.run(RC.CHANGE_DETECTION,this.tickImpl):this.tickImpl()}tickImpl=()=>{if(this._runningTick)throw pn(Yi.ChangeDetectionEnd),new be(101,!1);let e=It(null);try{this._runningTick=!0,this.synchronize()}finally{this._runningTick=!1,this.tracingSnapshot?.dispose(),this.tracingSnapshot=null,It(e),this.afterTick.next(),pn(Yi.ChangeDetectionEnd)}};synchronize(){this._rendererFactory===null&&!this._injector.destroyed&&(this._rendererFactory=this._injector.get(Ql,null,{optional:!0}));let e=0;for(;this.dirtyFlags!==0&&e++E_(e))){this.dirtyFlags|=2;return}else this.dirtyFlags&=-8}attachView(e){let i=e;this._views.push(i),i.attachToAppRef(this)}detachView(e){let i=e;z_(this._views,i),i.detachFromAppRef()}_loadComponent(e){this.attachView(e.hostView);try{this.tick()}catch(n){this.internalErrorHandler(n)}this.components.push(e),this._injector.get(iv,[]).forEach(n=>n(e))}ngOnDestroy(){if(!this._destroyed)try{this._destroyListeners.forEach(e=>e()),this._views.slice().forEach(e=>e.destroy())}finally{this._destroyed=!0,this._views=[],this._destroyListeners=[]}}onDestroy(e){return this._destroyListeners.push(e),()=>z_(this._destroyListeners,e)}destroy(){if(this._destroyed)throw new be(406,!1);let e=this._injector;e.destroy&&!e.destroyed&&e.destroy()}get viewCount(){return this._views.length}static ɵfac=function(i){return new(i||r)};static ɵprov=An({token:r,factory:r.ɵfac})}return r})();function Qre(r){return r===void 0||typeof r==`string`||r instanceof Element?{hostElement:r}:r}function z_(r,t){let e=r.indexOf(t);e>-1&&r.splice(e,1)}function ef(r,t){let e=rt();if(js(e,Qc(),t)){let n=gn(),s=Vh();if(jC(s,n,e,r,t))Yc(s)&&a7(e,s.index);else{let a=ra(s,e);l7(e[hn],a,null,s.value,r,t,null)}}return ef}function ie(r,t,e,i){let n=rt();if(js(n,Qc(),t)){gn();fne(Vh(),n,r,t,e,i)}return ie}function $5(){return rt()[uo][mr]}var UA=class{destroy(t){}updateValue(t,e){}swap(t,e){let i=Math.min(t,e),n=Math.max(t,e),s=this.detach(n);if(n-i>1){let o=this.detach(i);this.attach(i,s),this.attach(n,o)}else this.attach(i,s)}move(t,e){this.attach(e,this.detach(t))}};function pA(r,t,e,i,n){return r===e&&Object.is(t,i)?1:Object.is(n(r,t),n(e,i))?-1:0}function Xre(r,t,e,i){let n,s,o=0,a=r.length-1;if(Array.isArray(t)){It(i);let c=t.length-1;for(It(null);o<=a&&o<=c;){let d=r.at(o),u=t[o],h=pA(o,d,o,u,e);if(h!==0){h<0&&r.updateValue(o,u),o++;continue}let g=r.at(a),p=t[c],y=pA(a,g,c,p,e);if(y!==0){y<0&&r.updateValue(a,p),a--,c--;continue}let _=e(o,d),w=e(a,g),E=e(o,u);if(Object.is(E,w)){let k=e(c,p);Object.is(k,_)?(r.swap(o,a),r.updateValue(a,p),c--,a--):r.move(a,o),r.updateValue(o,u),o++;continue}if(n??=new DC,s??=Z6(r,o,a,e),WA(r,n,o,E))r.updateValue(o,u),o++,a++;else if(s.has(E))n.set(_,r.detach(o)),a--;else{let k=r.create(o,t[o]);r.attach(o,k),o++,a++}}for(;o<=c;)X6(r,n,e,o,t[o]),o++}else if(t!=null){It(i);let c=t[Symbol.iterator]();It(null);let d=c.next();for(;!d.done&&o<=a;){let u=r.at(o),h=d.value,g=pA(o,u,o,h,e);if(g!==0)g<0&&r.updateValue(o,h),o++,d=c.next();else{n??=new DC,s??=Z6(r,o,a,e);let p=e(o,h);if(WA(r,n,o,p))r.updateValue(o,h),o++,a++,d=c.next();else if(!s.has(p))r.attach(o,r.create(o,h)),o++,a++,d=c.next();else{let y=e(o,u);n.set(y,r.detach(o)),a--}}}for(;!d.done;)X6(r,n,e,r.length,d.value),d=c.next()}for(;o<=a;)r.destroy(r.detach(a--));n?.forEach(c=>{r.destroy(c)})}function WA(r,t,e,i){return t!==void 0&&t.has(i)?(r.attach(e,t.get(i)),t.delete(i),!0):!1}function X6(r,t,e,i,n){if(WA(r,t,i,e(i,n)))r.updateValue(i,n);else{let s=r.create(i,n);r.attach(i,s)}}function Z6(r,t,e,i){let n=new Set;for(let s=t;s<=e;s++)n.add(i(s,r.at(s)));return n}var DC=class{kvMap=new Map;_vMap=void 0;has(t){return this.kvMap.has(t)}delete(t){if(!this.has(t))return!1;let e=this.kvMap.get(t);return this._vMap!==void 0&&this._vMap.has(e)?(this.kvMap.set(t,this._vMap.get(e)),this._vMap.delete(e)):this.kvMap.delete(t),!0}get(t){return this.kvMap.get(t)}set(t,e){if(this.kvMap.has(t)){let i=this.kvMap.get(t);this._vMap===void 0&&(this._vMap=new Map);let n=this._vMap;for(;n.has(i);)i=n.get(i);n.set(i,e)}else this.kvMap.set(t,e)}forEach(t){for(let[e,i]of this.kvMap)if(t(i,e),this._vMap!==void 0){let n=this._vMap;for(;n.has(i);)i=n.get(i),t(i,e)}}};function F(r,t,e,i,n,s,o,a){ul(`NgControlFlow`);let l=rt(),c=gn();return U_(l,c,r,t,e,i,n,al(c.consts,s),256,o,a),z5}function z5(r,t,e,i,n,s,o,a){ul(`NgControlFlow`);let l=rt(),c=gn();return U_(l,c,r,t,e,i,n,al(c.consts,s),512,o,a),z5}function L(r,t){ul(`NgControlFlow`);let e=rt(),i=Qc(),n=e[i]!==go?e[i]:-1,s=n!==-1?kC(e,nn+n):void 0,o=0;if(js(e,i,r)){let a=It(null);try{if(s!==void 0&&v7(s,o),r!==-1){let l=nn+r,c=kC(e,l),d=XA(e[vt],l),u=S7(c,d,e);J_(c,Z_(e,d,t,{dehydratedView:u}),o,b0(d,u))}}finally{It(a)}}else if(s!==void 0){let a=_7(s,o);a!==void 0&&(a[mr]=t)}}var KA=class{lContainer;$implicit;$index;constructor(t,e,i){this.lContainer=t,this.$implicit=e,this.$index=i}get $count(){return this.lContainer.length-cr}};function tf(r){return r}function tr(r,t){return t}var YA=class{hasEmptyBlock;trackByFn;liveCollection;constructor(t,e,i){this.hasEmptyBlock=t,this.trackByFn=e,this.liveCollection=i}};function et(r,t,e,i,n,s,o,a,l,c,d,u,h){ul(`NgControlFlow`);let g=rt(),p=gn(),y=l!==void 0,_=rt(),E=new YA(y,a?o.bind(_[uo][mr]):o);_[nn+r]=E,U_(g,p,r+1,t,e,i,n,al(p.consts,s),256),y&&U_(g,p,r+2,l,c,d,u,al(p.consts,h),512)}var QA=class extends UA{lContainer;hostLView;templateTNode;operationsCounter=void 0;needsIndexUpdate=!1;constructor(t,e,i){super(),this.lContainer=t,this.hostLView=e,this.templateTNode=i}get length(){return this.lContainer.length-cr}at(t){return this.getLView(t)[mr].$implicit}attach(t,e){let i=e[Lp];this.needsIndexUpdate||=t!==this.length,J_(this.lContainer,e,t,b0(this.templateTNode,i)),Zre(this.lContainer,t)}detach(t){return this.needsIndexUpdate||=t!==this.length-1,Jre(this.lContainer,t),ese(this.lContainer,t)}create(t,e){let i=yC(this.lContainer,this.templateTNode.tView.ssrId);return Z_(this.hostLView,this.templateTNode,new KA(this.lContainer,e,t),{dehydratedView:i})}destroy(t){FC(t[vt],t)}updateValue(t,e){this.getLView(t)[mr].$implicit=e}reset(){this.needsIndexUpdate=!1}updateIndexes(){if(this.needsIndexUpdate)for(let t=0;t0){let s=i[Gc];Bie(s,n),zh.delete(i[Wc]),n.detachedLeaveAnimationFns=void 0}}function Jre(r,t){if(r.length<=cr)return;let i=r[cr+t],n=i?i[Kc]:void 0;n&&n.leave&&n.leave.size>0&&(n.detachedLeaveAnimationFns=[])}function ese(r,t){return q_(r,t)}function tse(r,t){return _7(r,t)}function XA(r,t){return Gw(r,t)}function I(r,t,e){let i=rt();if(js(i,Qc(),t)){gn();s7(Vh(),i,r,t,i[hn],e)}return I}function ZA(r,t,e,i,n){jC(t,r,e,n?`class`:`style`,i)}function v(r,t,e,i){let n=rt(),s=n[vt],o=r+nn,a=s.firstCreatePass?A5(o,n,2,t,D5,Yw(),e,i):s.data[o];if(Yc(a)){let l=n[Ul].tracingService;if(l&&l.componentCreate){let c=s.data[a.directiveStart+a.componentOffset];return l.componentCreate(I7(c),()=>(J6(r,t,n,a,i),v))}}return J6(r,t,n,a,i),v}function J6(r,t,e,i,n){if(zC(i,e,r,t,Y7),u0(i)){let s=e[vt];$C(s,e,i),a5(s,i,e)}n!=null&&D0(e,i)}function b(){let r=gn(),e=BC(Nr());return r.firstCreatePass&&R5(r,e),KM(e)&&YM(),UM(),e.classesWithoutHost!=null&&Cte(e)&&ZA(r,e,rt(),e.classesWithoutHost,!0),e.stylesWithoutHost!=null&&Ite(e)&&ZA(r,e,rt(),e.stylesWithoutHost,!1),b}function U(r,t,e,i){return v(r,t,e,i),b(),U}function Dr(r,t,e,i){let n=rt(),s=n[vt],o=r+nn,a=s.firstCreatePass?M7(o,s,2,t,e,i):s.data[o];return zC(a,n,r,t,Y7),i!=null&&D0(n,a),Dr}function kr(){return KM(BC(Nr()))&&YM(),UM(),kr}function nf(r,t,e,i){return Dr(r,t,e,i),kr(),nf}var Y7=(r,t,e,i,n)=>(A_(!0),z8(t[hn],i,nA()));function bi(r,t,e){let i=rt(),n=i[vt],s=r+nn,o=n.firstCreatePass?A5(s,i,8,`ng-container`,D5,Yw(),t,e):n.data[s];if(zC(o,i,r,`ng-container`,X7),u0(o)){let a=i[vt];$C(a,i,o),a5(a,o,i)}return e!=null&&D0(i,o),bi}function mi(){let r=gn(),e=BC(Nr());return r.firstCreatePass&&R5(r,e),mi}function xe(r,t,e){return bi(r,t,e),mi(),xe}function B5(r,t,e){let i=rt(),n=i[vt],s=r+nn,o=n.firstCreatePass?M7(s,n,8,`ng-container`,t,e):n.data[s];return zC(o,i,r,`ng-container`,X7),e!=null&&D0(i,o),B5}function Q7(){BC(Nr());return mi}function k0(r,t,e){return B5(r,t,e),Q7(),k0}var X7=(r,t,e,i,n)=>(A_(!0),mie(t[hn],``));function de(){return rt()}function Xl(r,t,e){let i=rt();if(js(i,Qc(),t)){gn();o7(Vh(),i,r,t,i[hn],e)}return Xl}var L_=void 0;function ise(r){let t=Math.floor(Math.abs(r)),e=r.toString().replace(/^[^.]*\.?/,``).length;return t===1&&e===0?1:5}var nse=[`en`,[[`a`,`p`],[`AM`,`PM`]],[[`AM`,`PM`]],[[`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`]],L_,[[`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`]],L_,[[`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}`,L_,L_,L_],[`.`,`,`,`;`,`%`,`+`,`-`,`E`,`×`,`‰`,`∞`,`NaN`,`:`],[`#,##0.###`,`#,##0%`,`¤#,##0.00`,`#E0`],`USD`,`$`,`US Dollar`,{},`ltr`,ise];var fA=Object.create(null);function Hs(r){let t=rse(r),e=e8(t);if(e)return e;let i=t.split(`-`)[0];if(e=e8(i),e)return e;if(i===`en`)return nse;throw new be(701,!1)}function j5(r){return Hs(r)[ir.CurrencyCode]||null}function e8(r){if(!(r in fA)){let t=nl.ng&&nl.ng.common&&nl.ng.common.locales&&nl.ng.common.locales[r];return t!==void 0&&(fA[r]=t),t}return fA[r]}var ir={LocaleId:0,DayPeriodsFormat:1,DayPeriodsStandalone:2,DaysFormat:3,DaysStandalone:4,MonthsFormat:5,MonthsStandalone:6,Eras:7,FirstDayOfWeek:8,WeekendRange:9,DateFormat:10,TimeFormat:11,DateTimeFormat:12,NumberSymbols:13,NumberFormats:14,CurrencyCode:15,CurrencySymbol:16,CurrencyName:17,Currencies:18,Directionality:19,PluralCase:20,ExtraData:21};function rse(r){return r.toLowerCase().replace(/_/g,`-`)}var nv=`en-US`;var sse=`USD`;function Z7(r){typeof r==`string`&&r.toLowerCase().replace(/_/g,`-`)}function j(r,t,e){let i=rt(),n=gn(),s=Nr();return J7(n,i,i[hn],s,r,t,e),j}function E0(r,t,e){let i=rt(),n=gn(),s=Nr();return(s.type&3||e)&&M5(s,n,i,e,i[hn],r,t,Wp(s,i,t)),E0}function J7(r,t,e,i,n,s,o){let a=!0,l=null;if((i.type&3||o)&&(l??=Wp(i,t,s),M5(i,r,t,o,e,n,s,l)&&(a=!1)),a){let c=i.outputs?.[n],d=i.hostDirectiveOutputs?.[n];if(d&&d.length)for(let u=0;u>17&32767}function cse(r){return(r&2)==2}function dse(r,t){return r&131071|t<<17}function JA(r){return r|2}function I0(r){return(r&131068)>>2}function mA(r,t){return r&-131069|t<<2}function use(r){return(r&1)===1}function e5(r){return r|1}function hse(r,t,e,i,n,s){let o=s?t.classBindings:t.styleBindings,a=Xp(o),l=I0(o);r[i]=e;let c=!1,d;if(Array.isArray(e)){let u=e;d=u[1],(d===null||o0(u,d)>0)&&(c=!0)}else d=e;if(n)if(l!==0){let h=Xp(r[a+1]);r[i+1]=cC(h,a),h!==0&&(r[h+1]=mA(r[h+1],i)),r[a+1]=dse(r[a+1],i)}else r[i+1]=cC(a,0),a!==0&&(r[a+1]=mA(r[a+1],i)),a=i;else r[i+1]=cC(l,0),a===0?a=i:r[l+1]=mA(r[l+1],i),l=i;c&&(r[i+1]=JA(r[i+1])),t8(r,d,i,!0),t8(r,d,i,!1),gse(t,d,r,i,s),o=cC(a,l),s?t.classBindings=o:t.styleBindings=o}function gse(r,t,e,i,n){let s=n?r.residualClasses:r.residualStyles;s!=null&&typeof t==`string`&&o0(s,t)>=0&&(e[i+1]=e5(e[i+1]))}function t8(r,t,e,i){let n=r[e+1],s=t===null,o=i?Xp(n):I0(n),a=!1;for(;o!==0&&(a===!1||s);){let l=r[o],c=r[o+1];pse(l,t)&&(a=!0,r[o+1]=i?e5(c):JA(c)),o=i?Xp(c):I0(c)}a&&(r[e+1]=i?JA(n):e5(n))}function pse(r,t){return r===null||t==null||(Array.isArray(r)?r[1]:r)===t?!0:Array.isArray(r)&&typeof t==`string`?o0(r,t)>=0:!1}var Yl={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function fse(r){return r.substring(Yl.key,Yl.keyEnd)}function mse(r){return xse(r),e$(r,t$(r,0,Yl.textEnd))}function e$(r,t){let e=Yl.textEnd;return e===t?-1:(t=Yl.keyEnd=yse(r,Yl.key=t,e),t$(r,t,e))}function xse(r){Yl.key=0,Yl.keyEnd=0,Yl.value=0,Yl.valueEnd=0,Yl.textEnd=r.length}function t$(r,t,e){for(;t32;)t++;return t}function ve(r,t,e){return i$(r,t,e,!1),ve}function we(r,t){return i$(r,t,null,!0),we}function On(r){vse(Nse,_se,r,!0)}function _se(r,t){for(let e=mse(t);e>=0;e=e$(t,e))Bw(r,fse(t),!0)}function i$(r,t,e,i){let n=rt(),s=gn(),o=Qw(2);if(s.firstUpdatePass&&r$(s,r,o,i),t!==go&&js(n,o,t)){let a=s.data[ll()];s$(s,a,n,n[hn],r,n[o+1]=kse(t,e),i,o)}}function vse(r,t,e,i){let n=gn(),s=Qw(2);n.firstUpdatePass&&r$(n,null,s,i);let o=rt();if(e!==go&&js(o,s,e)){let a=n.data[ll()];if(o$(a,i)&&!n$(n,s)){let l=i?a.classesWithoutHost:a.stylesWithoutHost;l!==null&&(e=Ow(l,e||``)),ZA(n,a,o,e,i)}else Dse(n,a,o,o[hn],o[s+1],o[s+1]=Ise(r,t,e),i,s)}}function n$(r,t){return t>=r.expandoStartIndex}function r$(r,t,e,i){let n=r.data;if(n[e+1]===null){let s=n[ll()],o=n$(r,e);o$(s,i)&&t===null&&!o&&(t=!1),t=bse(n,s,t,i),hse(n,s,t,e,o,i)}}function bse(r,t,e,i){let n=s6(r),s=i?t.residualClasses:t.residualStyles;if(n===null)(i?t.classBindings:t.styleBindings)===0&&(e=xA(null,r,t,e,i),e=W_(e,t.attrs,i),s=null);else{let o=t.directiveStylingLast;if(o===-1||r[o]!==n)if(e=xA(n,r,t,e,i),s===null){let l=Sse(r,t,i);l!==void 0&&Array.isArray(l)&&(l=xA(null,r,t,l[1],i),l=W_(l,t.attrs,i),wse(r,t,i,l))}else s=Cse(r,t,i)}return s!==void 0&&(i?t.residualClasses=s:t.residualStyles=s),e}function Sse(r,t,e){let i=e?t.classBindings:t.styleBindings;if(I0(i)!==0)return r[Xp(i)]}function wse(r,t,e,i){let n=e?t.classBindings:t.styleBindings;r[Xp(n)]=i}function Cse(r,t,e){let i,n=t.directiveEnd;for(let s=1+t.directiveStylingLast;s0;){let l=r[n],c=Array.isArray(l),d=c?l[1]:l,u=d===null,h=e[n+1];h===go&&(h=u?lo:void 0);let g=u?jw(h,i):d===i?h:void 0;if(c&&!EC(g)&&(g=jw(l,i)),EC(g)&&(a=g,o))return a;let p=r[n+1];n=o?Xp(p):I0(p)}if(t!==null){let l=s?t.residualClasses:t.residualStyles;l!=null&&(a=jw(l,i))}return a}function EC(r){return r!==void 0}function kse(r,t){return r==null||r===``||(typeof t==`string`?r=Da(r)+t:typeof r==`object`&&(r=v_(Da(r)))),r}function o$(r,t){return(r.flags&(t?8:16))!==0}function B(r,t=``){let e=rt(),i=gn(),n=r+nn,s=i.firstCreatePass?Zp(i,n,1,t,null):i.data[n],o=Ese(i,e,s,t);e[n]=o,tC()&&S5(i,e,o,s),qp(s,!1)}var Ese=(r,t,e,i)=>(A_(!0),pie(t[hn],i));function a$(r,t,e,i=``){return js(r,Qc(),e)?t+Ah(e)+i:go}function l$(r,t,e,i,n,s=``){let a=S0(r,e6(),e,n);return Qw(2),a?t+Ah(e)+i+Ah(n)+s:go}function Ie(r){return Ce(``,r),Ie}function Ce(r,t,e){let i=rt(),n=a$(i,r,t,e);return n!==go&&c$(i,ll(),n),Ce}function qh(r,t,e,i,n){let s=rt(),o=l$(s,r,t,e,i,n);return o!==go&&c$(s,ll(),o),qh}function c$(r,t,e){let i=BM(t,r);fie(r[hn],i,e)}function Ni(r,t,e){sC(t)&&(t=t());let i=rt();if(js(i,Qc(),t)){gn();s7(Vh(),i,r,t,i[hn],e)}return Ni}function Di(r,t){let e=sC(r);return e&&r.set(t),e}function ki(r,t){let e=rt(),i=gn(),n=Nr();return J7(i,e,e[hn],n,r,t),ki}var d$={};function KC(r){ul(`NgLet`);let t=gn(),e=rt(),i=r+nn;return qp(Zp(t,i,128,null,null),!1),k_(t,e,i,d$),KC}function H5(r){return k_(gn(),rt(),ll(),r),r}function M0(r){let e=Fh(JM(),nn+r);if(e===d$)throw new be(314,!1);return e}function Zl(r){return js(rt(),Qc(),r)?Ah(r):go}function A0(r,t,e=``){return a$(rt(),r,t,e)}function q5(r,t,e,i,n=``){return l$(rt(),r,t,e,i,n)}function n8(r,t,e){let i=gn();i.firstCreatePass&&u$(t,i.data,i.blueprint,Wl(r),e)}function u$(r,t,e,i,n){if(r=os(r),Array.isArray(r))for(let s=0;s>20;if(Pp(r)||!r.multi){let g=new Kp(c,n,lt,null),p=_A(l,t,n?d:d+h,u);p===-1?(SA(xC(a,o),s,l),yA(s,r,t.length),t.push(l),a.directiveStart++,a.directiveEnd++,n&&(a.providerIndexes+=1048576),e.push(g),o.push(g)):(e[p]=g,o[p]=g)}else{let g=_A(l,t,d+h,u),p=_A(l,t,d,d+h),y=g>=0&&e[g],_=p>=0&&e[p];if(n&&!_||!n&&!y){SA(xC(a,o),s,l);let w=Ase(n?Mse:Tse,e.length,n,i,c,r);!n&&_&&(e[p].providerFactory=w),yA(s,r,t.length,0),t.push(l),a.directiveStart++,a.directiveEnd++,n&&(a.providerIndexes+=1048576),e.push(w),o.push(w)}else{let w=h$(e[n?p:g],c,!n&&i);yA(s,r,g>-1?g:p,w)}!n&&i&&_&&e[p].componentProviders++}}}function yA(r,t,e,i){let n=Pp(t),s=BV(t);if(n||s){let l=(s?os(t.useClass):t).prototype.ngOnDestroy;if(l){let c=r.destroyHooks||(r.destroyHooks=[]);if(!n&&t.multi){let d=c.indexOf(e);d===-1?c.push(e,[i,l]):c[d+1].push(i,l)}else c.push(e,l)}}}function h$(r,t,e){return e&&r.componentProviders++,r.multi.push(t)-1}function _A(r,t,e,i){for(let n=e;n{e.providersResolver=(i,n)=>n8(i,n?n(r):r,!1),t&&(e.viewProvidersResolver=(i,n)=>n8(i,n?n(t):t,!0))}}function nd(r,t){let e=ho()+r,i=rt();return i[e]===go?td(i,e,t()):ev(i,e)}function Et(r,t,e){return g$(rt(),ho(),r,t,e)}function po(r,t,e,i){return p$(rt(),ho(),r,t,e,i)}function rd(r,t,e,i,n){return f$(rt(),ho(),r,t,e,i,n)}function sa(r,t,e,i,n,s,o){return m$(rt(),ho(),r,t,e,i,n,s)}function Br(r,t,e,i,n,s,o){let a=ho()+r,l=rt(),c=w0(l,a,e,i,n,s);return js(l,a+4,o)||c?td(l,a+5,t(e,i,n,s,o)):ev(l,a+5)}function bs(r,t,e,i,n,s,o,a){let l=ho()+r,c=rt(),d=w0(c,l,e,i,n,s);return S0(c,l+4,o,a)||d?td(c,l+6,t(e,i,n,s,o,a)):ev(c,l+6)}function Gh(r,t,e,i,n,s,o,a,l){let c=ho()+r,d=rt(),u=w0(d,c,e,i,n,s);return D7(d,c+4,o,a,l)||u?td(d,c+7,t(e,i,n,s,o,a,l)):ev(d,c+7)}function YC(r,t,e,i,n,s,o,a,l,c){let d=ho()+r,u=rt(),h=w0(u,d,e,i,n,s);return w0(u,d+4,o,a,l,c)||h?td(u,d+8,t(e,i,n,s,o,a,l,c)):ev(u,d+8)}function sv(r,t,e){return x$(rt(),ho(),r,t,e)}function ov(r,t){let e=r[t];return e===go?void 0:e}function g$(r,t,e,i,n,s){let o=t+e;return js(r,o,n)?td(r,o+1,s?i.call(s,n):i(n)):ov(r,o+1)}function p$(r,t,e,i,n,s,o){let a=t+e;return S0(r,a,n,s)?td(r,a+2,o?i.call(o,n,s):i(n,s)):ov(r,a+2)}function f$(r,t,e,i,n,s,o,a){let l=t+e;return D7(r,l,n,s,o)?td(r,l+3,a?i.call(a,n,s,o):i(n,s,o)):ov(r,l+3)}function m$(r,t,e,i,n,s,o,a,l){let c=t+e;return w0(r,c,n,s,o,a)?td(r,c+4,l?i.call(l,n,s,o,a):i(n,s,o,a)):ov(r,c+4)}function x$(r,t,e,i,n,s){let o=t+e,a=!1;for(let l=0;l=0;e--){let i=t[e];if(r===i.name)return i}}function nr(r,t,e){let i=r+nn,n=rt(),s=Fh(n,i);return av(n,i)?g$(n,ho(),t,s.transform,e,s):s.transform(e)}function fo(r,t,e,i){let n=r+nn,s=rt(),o=Fh(s,n);return av(s,n)?p$(s,ho(),t,o.transform,e,i,o):o.transform(e,i)}function bt(r,t,e,i,n){let s=r+nn,o=rt(),a=Fh(o,s);return av(o,s)?f$(o,ho(),t,a.transform,e,i,n,a):a.transform(e,i,n)}function xr(r,t,e,i,n,s){let o=r+nn,a=rt(),l=Fh(a,o);return av(a,o)?m$(a,ho(),t,l.transform,e,i,n,s,l):l.transform(e,i,n,s)}function Ht(r,t,e){let i=r+nn,n=rt(),s=Fh(n,i);return av(n,i)?x$(n,ho(),t,s.transform,e,s):s.transform.apply(s,e)}function av(r,t){return r[vt].data[t].pure}function pe(r,t){return HC(r,t)}var y$=(()=>{class r{applicationErrorHandler=C(dl);appRef=C(id);taskService=C(lu);ngZone=C(Nt);zonelessEnabled=C(O_);tracing=C(Jc,{optional:!0});zoneIsDefined=typeof Zone<`u`&&!!Zone.root.run;schedulerTickApplyArgs=[{data:{__scheduler_tick__:!0}}];subscriptions=new Yn;angularZoneId=this.zoneIsDefined?this.ngZone._inner?.get(y_):null;scheduleInRootZone=!this.zonelessEnabled&&this.zoneIsDefined&&(C(lA,{optional:!0})??!1);cancelScheduledCallback=null;useMicrotaskScheduler=!1;runningTick=!1;pendingRenderTaskId=null;constructor(){this.subscriptions.add(this.appRef.afterTick.subscribe(()=>{let e=this.taskService.add();if(!this.runningTick&&(this.cleanup(),!this.zonelessEnabled||this.appRef.includeAllTestViews)){this.taskService.remove(e);return}this.switchToMicrotaskScheduler(),this.taskService.remove(e)})),this.subscriptions.add(this.ngZone.onUnstable.subscribe(()=>{this.runningTick||this.cleanup()}))}switchToMicrotaskScheduler(){this.ngZone.runOutsideAngular(()=>{let e=this.taskService.add();this.useMicrotaskScheduler=!0,queueMicrotask(()=>{this.useMicrotaskScheduler=!1,this.taskService.remove(e)})})}notify(e){if(!this.zonelessEnabled&&e===5)return;switch(e){case 0:case 2:this.appRef.dirtyFlags|=2;break;case 3:case 4:case 5:case 1:this.appRef.dirtyFlags|=4;break;case 6:this.appRef.dirtyFlags|=2;break;case 12:this.appRef.dirtyFlags|=16;break;case 13:this.appRef.dirtyFlags|=2;break;case 11:break;default:this.appRef.dirtyFlags|=8}if(this.appRef.tracingSnapshot=this.tracing?.snapshot(this.appRef.tracingSnapshot)??null,!this.shouldScheduleTick())return;let i=this.useMicrotaskScheduler?g6:sA;this.pendingRenderTaskId=this.taskService.add(),this.scheduleInRootZone?this.cancelScheduledCallback=Zone.root.run(()=>i(()=>this.tick())):this.cancelScheduledCallback=this.ngZone.runOutsideAngular(()=>i(()=>this.tick()))}shouldScheduleTick(){return!(this.appRef.destroyed||this.pendingRenderTaskId!==null||this.runningTick||this.appRef._runningTick||!this.zonelessEnabled&&this.zoneIsDefined&&Zone.current.get(y_+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 e=this.taskService.add();try{this.ngZone.run(()=>{this.runningTick=!0,this.appRef._tick()},void 0,this.schedulerTickApplyArgs)}catch(i){this.applicationErrorHandler(i)}finally{this.taskService.remove(e),this.cleanup()}}ngOnDestroy(){this.subscriptions.unsubscribe(),this.cleanup()}cleanup(){if(this.runningTick=!1,this.cancelScheduledCallback?.(),this.cancelScheduledCallback=null,this.pendingRenderTaskId!==null){let e=this.pendingRenderTaskId;this.pendingRenderTaskId=null,this.taskService.remove(e)}}static ɵfac=function(i){return new(i||r)};static ɵprov=An({token:r,factory:r.ɵfac})}return r})();function _$(){return[{provide:qc,useExisting:y$},{provide:Nt,useClass:__},{provide:O_,useValue:!0}]}var G5=(()=>{class r{compileModuleSync(e){return new NC(e)}compileModuleAsync(e){return Promise.resolve(this.compileModuleSync(e))}clearCache(){}clearCacheFor(e){}getModuleId(e){}static ɵfac=function(i){return new(i||r)};static ɵprov=An({token:r,factory:r.ɵfac})}return r})();function Pse(){return typeof $localize<`u`&&$localize.locale||nv}var Ss=new Oe(``,{factory:()=>C(Ss,{optional:!0,skipSelf:!0})||Pse()});var U5=new Oe(``,{factory:()=>sse});function mo(r,t){return s_(r,t?.equal)}function Ci(r){return WL(r)}(class r extends Error{_brand;constructor(t){super(t)}static IDLE=new r(`IDLE`);static LOADING=new r(`LOADING`)});var Ose=r=>r;function W5(r,t){if(typeof r==`function`)return b$(UT(r,Ose,t?.equal),t?.debugName,t?.set);else return b$(UT(r.source,r.computation,r.equal),r.debugName,r.set)}function b$(r,t,e){let i=r[Cr],n=r;if(e!==void 0){let s=o=>WT(i,o);n.set=o=>e(o,s),n.update=o=>e(o(Ci(r)),s)}else n.set=s=>WT(i,s),n.update=s=>UL(i,s);return n.asReadonly=iC.bind(r),n}var T$=Symbol(`InputSignalNode#UNSET`);var Wse=s(r({},o_),{transformFn:void 0,applyValueToInputSignal(r,t){Sp(r,t)}});function M$(r,t){let e=Object.create(Wse);e.value=r,e.transformFn=t?.transform;function i(){if(Ch(e),e.value===T$)throw new be(-950,null);return e.value}return i[Cr]=e,i}var XC=class{attributeName;constructor(t){this.attributeName=t}__NG_ELEMENT_ID__=()=>Y_(this.attributeName);toString(){return`HostAttributeToken ${this.attributeName}`}};function r3(r){return Kse(r)?r.default:r}function Kse(r){return r&&typeof r==`object`&&`default`in r}function S$(r,t){return M$(r,t)}function Yse(r){return M$(T$,r)}var Uh=(S$.required=Yse,S$);function w$(r,t){return B7(t)}function Qse(r,t){return j7(t)}var cv=(w$.required=Qse,w$);var Y5=class{supports(t){return T5(t)}create(t){return new Q5(t)}};var Zse=(r,t)=>t;var Q5=class{length=0;collection;_linkedRecords=null;_unlinkedRecords=null;_previousItHead=null;_itHead=null;_itTail=null;_additionsHead=null;_additionsTail=null;_movesHead=null;_movesTail=null;_removalsHead=null;_removalsTail=null;_identityChangesHead=null;_identityChangesTail=null;_trackByFn;constructor(t){this._trackByFn=t||Zse}forEachItem(t){let e;for(e=this._itHead;e!==null;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,i=this._removalsHead,n=0,s=null;for(;e||i;){let o=!i||e&&e.currentIndex{o=this._trackByFn(n,a),e===null||!Object.is(e.trackById,o)?(e=this._mismatch(e,a,o,n),i=!0):(i&&(e=this._verifyReinsertion(e,a,o,n)),Object.is(e.item,a)||this._addIdentityChange(e,a)),e=e._next,n++}),this.length=n;return this._truncate(e),this.collection=t,this.isDirty}get isDirty(){return this._additionsHead!==null||this._movesHead!==null||this._removalsHead!==null||this._identityChangesHead!==null}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;t!==null;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;t!==null;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,i,n){let s;return t===null?s=this._itTail:(s=t._prev,this._remove(t)),t=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null),t!==null?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,s,n)):(t=this._linkedRecords===null?null:this._linkedRecords.get(i,n),t!==null?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,s,n)):t=this._addAfter(new X5(e,i),s,n)),t}_verifyReinsertion(t,e,i,n){let s=this._unlinkedRecords===null?null:this._unlinkedRecords.get(i,null);return s!==null?t=this._reinsertAfter(s,t._prev,n):t.currentIndex!=n&&(t.currentIndex=n,this._addToMoves(t,n)),t}_truncate(t){for(;t!==null;){let e=t._next;this._addToRemovals(this._unlink(t)),t=e}this._unlinkedRecords!==null&&this._unlinkedRecords.clear(),this._additionsTail!==null&&(this._additionsTail._nextAdded=null),this._movesTail!==null&&(this._movesTail._nextMoved=null),this._itTail!==null&&(this._itTail._next=null),this._removalsTail!==null&&(this._removalsTail._nextRemoved=null),this._identityChangesTail!==null&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,i){this._unlinkedRecords!==null&&this._unlinkedRecords.remove(t);let n=t._prevRemoved,s=t._nextRemoved;return n===null?this._removalsHead=s:n._nextRemoved=s,s===null?this._removalsTail=n:s._prevRemoved=n,this._insertAfter(t,e,i),this._addToMoves(t,i),t}_moveAfter(t,e,i){return this._unlink(t),this._insertAfter(t,e,i),this._addToMoves(t,i),t}_addAfter(t,e,i){return this._insertAfter(t,e,i),this._additionsTail===null?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t}_insertAfter(t,e,i){let n=e===null?this._itHead:e._next;return t._next=n,t._prev=e,n===null?this._itTail=t:n._prev=t,e===null?this._itHead=t:e._next=t,this._linkedRecords===null&&(this._linkedRecords=new ZC),this._linkedRecords.put(t),t.currentIndex=i,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){this._linkedRecords!==null&&this._linkedRecords.remove(t);let e=t._prev,i=t._next;return e===null?this._itHead=i:e._next=i,i===null?this._itTail=e:i._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail===null?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t),t}_addToRemovals(t){return this._unlinkedRecords===null&&(this._unlinkedRecords=new ZC),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,this._removalsTail===null?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail===null?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t}};var X5=class{item;trackById;currentIndex=null;previousIndex=null;_nextPrevious=null;_prev=null;_next=null;_prevDup=null;_nextDup=null;_prevRemoved=null;_nextRemoved=null;_nextAdded=null;_nextMoved=null;_nextIdentityChange=null;constructor(t,e){this.item=t,this.trackById=e}};var Z5=class{_head=null;_tail=null;add(t){this._head===null?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let i;for(i=this._head;i!==null;i=i._nextDup)if((e===null||e<=i.currentIndex)&&Object.is(i.trackById,t))return i;return null}remove(t){let e=t._prevDup,i=t._nextDup;return e===null?this._head=i:e._nextDup=i,i===null?this._tail=e:i._prevDup=e,this._head===null}};var ZC=class{map=new Map;put(t){let e=t.trackById,i=this.map.get(e);i||(i=new Z5,this.map.set(e,i)),i.add(t)}get(t,e){let i=t,n=this.map.get(i);return n?n.get(t,e):null}remove(t){let e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return this.map.size===0}clear(){this.map.clear()}};function C$(r,t,e){let i=r.previousIndex;if(i===null)return i;let n=0;return e&&i{if(e&&e.key===n)this._maybeAddToChanges(e,i),this._appendAfter=e,e=e._next;else{let s=this._getOrCreateRecordForKey(n,i);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let i=e;i!==null;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){let i=t._prev;return e._next=t,e._prev=i,t._prev=e,i&&(i._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){let n=this._records.get(t);this._maybeAddToChanges(n,e);let s=n._prev,o=n._next;return s&&(s._next=o),o&&(o._prev=s),n._next=null,n._prev=null,n}let i=new t3(t);return this._records.set(t,i),i.currentValue=e,this._addToAdditions(i),i}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;t!==null;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;t!==null;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;t!=null;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){this._additionsHead===null?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){this._changesHead===null?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(i=>e(t[i],i))}};var t3=class{key;previousValue=null;currentValue=null;_nextPrevious=null;_next=null;_prev=null;_nextAdded=null;_nextRemoved=null;_nextChanged=null;constructor(t){this.key=t}};function I$(){return new hl([new Y5])}var hl=(()=>{class r{factories;static ɵprov=ze({token:r,providedIn:`root`,factory:I$});constructor(e){this.factories=e}static create(e,i){if(i!=null){let n=i.factories.slice();e=e.concat(n)}return new r(e)}static extend(e){return{provide:r,useFactory:()=>{let i=C(r,{optional:!0,skipSelf:!0});return r.create(e,i||I$())}}}find(e){let i=this.factories.find(n=>n.supports(e));if(i!=null)return i;throw new be(901,!1)}}return r})();function N$(){return new s3([new J5])}var s3=(()=>{class r{static ɵprov=ze({token:r,providedIn:`root`,factory:N$});factories;constructor(e){this.factories=e}static create(e,i){if(i){let n=i.factories.slice();e=e.concat(n)}return new r(e)}static extend(e){return{provide:r,useFactory:()=>{let i=C(r,{optional:!0,skipSelf:!0});return r.create(e,i||N$())}}}find(e){let i=this.factories.find(n=>n.supports(e));if(i)return i;throw new be(901,!1)}}return r})();var at=(()=>{class r{static __NG_ELEMENT_ID__=Jse}return r})();function Jse(r){return eoe(Nr(),rt(),(r&16)===16)}function eoe(r,t,e){if(Yc(r)&&!e){let i=ol(r.index,t);return new Bh(i,i)}else if(r.type&175){let i=t[uo];return new Bh(i,t)}return null}var i3=new Oe(``);var toe=new Oe(``);function lv(r){return!r.moduleRef}function ioe(r){let t=lv(r)?r.r3Injector:r.moduleRef.injector,e=t.get(Nt);return e.run(()=>{lv(r)?r.r3Injector.resolveInjectorInitializers():r.moduleRef.resolveInjectorInitializers();let i=t.get(dl),n;if(e.runOutsideAngular(()=>{n=e.onError.subscribe({next:i})}),lv(r)){let s=()=>t.destroy(),o=r.platformInjector.get(i3);o.add(s),t.onDestroy(()=>{n.unsubscribe(),o.delete(s)})}else{let s=()=>r.moduleRef.destroy(),o=r.platformInjector.get(i3);o.add(s),r.moduleRef.onDestroy(()=>{z_(r.allPlatformModules,r.moduleRef),n.unsubscribe(),o.delete(s)})}return roe(i,e,()=>{let s=t.get(lu),o=s.add(),a=t.get(L5);return a.runInitializers(),a.donePromise.then(()=>{if(Z7(t.get(Ss,nv)||nv),!t.get(toe,!0))return lv(r)?t.get(id):(r.allPlatformModules.push(r.moduleRef),r.moduleRef);if(lv(r)){let d=t.get(id);return r.rootComponent!==void 0&&d.bootstrap(r.rootComponent),d}else return noe?.(r.moduleRef,r.allPlatformModules),r.moduleRef}).finally(()=>{s.remove(o)})})})}var noe;function roe(r,t,e){try{let i=e();return Hh(i)?i.catch(n=>{throw t.runOutsideAngular(()=>r(n)),n}):i}catch(i){throw t.runOutsideAngular(()=>r(i)),i}}var QC=null;function soe(r=[],t){return ji.create({name:t,providers:[{provide:N_,useValue:`platform`},{provide:i3,useValue:new Set([()=>QC=null])},...r]})}function ooe(r=[]){if(QC)return QC;let t=soe(r);return QC=t,K7(),aoe(t),t}function aoe(r){let t=r.get(nC,null);vs(r,()=>{t?.forEach(e=>e())})}function A$(r){let{rootComponent:t,appProviders:e,platformProviders:i,platformRef:n}=r;pn(Yi.BootstrapApplicationStart);try{let s=n?.injector??ooe(i);return ioe({r3Injector:new G_({providers:[_$(),f6,...e||[]],parent:s,debugName:``,runEnvironmentInitializers:!1}).injector,platformInjector:s,rootComponent:t})}catch(s){return Promise.reject(s)}finally{pn(Yi.BootstrapApplicationEnd)}}function K(r){return typeof r==`boolean`?r:r!=null&&r!==`false`}var K5=Symbol(`NOT_SET`);var R$=new Set;var loe=s(r({},o_),{kind:`afterRenderEffectPhase`,consumerIsAlwaysLive:!0,consumerAllowSignalWrites:!0,value:K5,cleanup:null,consumerMarkedDirty(){if(this.sequence.impl.executing){if(this.sequence.lastPhase===null||this.sequence.lastPhase(Ch(c),c.value),c.signal[Cr]=c,c.registerCleanupFn=d=>(c.cleanup??=new Set).add(d),this.nodes[a]=c,this.hooks[a]=d=>c.phaseFn(d)}}afterRun(){super.afterRun(),this.lastPhase=null}destroy(){if(this.onDestroyFns!==null)for(let t of this.onDestroyFns)t();super.destroy();for(let t of this.nodes)if(t)try{for(let e of t.cleanup??R$)e()}finally{Nh(t)}}};function P$(r,t){let e=t?.injector??C(ji),i=e.get(qc),n=e.get(PC),s=e.get(Jc,null,{optional:!0});n.impl??=e.get(_5);let o=r;typeof o==`function`&&(o={mixedReadWrite:r});let a=e.get(p0,null,{optional:!0}),l=new n3(n.impl,[o.earlyRead,o.write,o.mixedReadWrite,o.read],a?.view,i,e,s?.snapshot(null));return n.impl.register(l),l}function rf(r,t){let e=Mh(r),i=t.elementInjector||l0();return new C0(e).create(i,t.projectableNodes,t.hostElement,t.environmentInjector,t.directives,t.bindings)}function O$(){return!1}var F$=null;function gl(){return F$}function o3(r){F$??=r}var dv=class{};var hu=(()=>{class r{historyGo(e){throw new Error(``)}static ɵfac=function(i){return new(i||r)};static ɵprov=ze({token:r,factory:()=>C(L$),providedIn:`platform`})}return r})();var L$=(()=>{class r extends hu{_location;_history;_doc=C(St);constructor(){super(),this._location=window.location,this._history=window.history}getBaseHrefFromDOM(){return gl().getBaseHref(this._doc)}onPopState(e){let i=gl().getGlobalEventTarget(this._doc,`window`);return i.addEventListener(`popstate`,e,!1),()=>i.removeEventListener(`popstate`,e)}onHashChange(e){let i=gl().getGlobalEventTarget(this._doc,`window`);return i.addEventListener(`hashchange`,e,!1),()=>i.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,i,n){this._history.pushState(e,i,n)}replaceState(e,i,n){this._history.replaceState(e,i,n)}forward(){this._history.forward()}back(){this._history.back()}historyGo(e=0){this._history.go(e)}getState(){return this._history.state}static ɵfac=function(i){return new(i||r)};static ɵprov=ze({token:r,factory:()=>new r,providedIn:`platform`})}return r})();function JC(r,t){return r?t?r.endsWith(`/`)?t.startsWith(`/`)?r+t.slice(1):r+t:t.startsWith(`/`)?r+t:`${r}/${t}`:r:t}function V$(r){let t=r.search(/#|\?|$/);return r[t-1]===`/`?r.slice(0,t-1)+r.slice(t):r}function Jl(r){return r&&r[0]!==`?`?`?${r}`:r}var sd=(()=>{class r{historyGo(e){throw new Error(``)}static ɵfac=function(i){return new(i||r)};static ɵprov=ze({token:r,factory:()=>C(z$),providedIn:`root`})}return r})();var a3=new Oe(``);var z$=(()=>{class r extends sd{_platformLocation;_baseHref;_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,this._baseHref=i??this._platformLocation.getBaseHrefFromDOM()??C(St).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 JC(this._baseHref,e)}path(e=!1){let i=this._platformLocation.pathname+Jl(this._platformLocation.search),n=this._platformLocation.hash;return n&&e?`${i}${n}`:i}pushState(e,i,n,s){let o=this.prepareExternalUrl(n+Jl(s));this._platformLocation.pushState(e,i,o)}replaceState(e,i,n,s){let o=this.prepareExternalUrl(n+Jl(s));this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static ɵfac=function(i){return new(i||r)(yt(hu),yt(a3,8))};static ɵprov=ze({token:r,factory:r.ɵfac,providedIn:`root`})}return r})();var sf=(()=>{class r{_subject=new Te;_basePath;_locationStrategy;_urlChangeListeners=[];_urlChangeSubscription=null;constructor(e){this._locationStrategy=e;let i=this._locationStrategy.getBaseHref();this._basePath=uoe(V$($$(i))),this._locationStrategy.onPopState(n=>{this._subject.next({url:this.path(!0),pop:!0,state:n.state,type:n.type})})}ngOnDestroy(){this._urlChangeSubscription?.unsubscribe(),this._urlChangeListeners=[]}path(e=!1){return this.normalize(this._locationStrategy.path(e))}getState(){return this._locationStrategy.getState()}isCurrentPathEqualTo(e,i=``){return this.path()==this.normalize(e+Jl(i))}normalize(e){return r.stripTrailingSlash(doe(this._basePath,$$(e)))}prepareExternalUrl(e){return e&&e[0]!==`/`&&(e=`/`+e),this._locationStrategy.prepareExternalUrl(e)}go(e,i=``,n=null){this._locationStrategy.pushState(n,``,e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Jl(i)),n)}replaceState(e,i=``,n=null){this._locationStrategy.replaceState(n,``,e,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(e+Jl(i)),n)}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(i=>{this._notifyUrlChangeListeners(i.url,i.state)}),()=>{let i=this._urlChangeListeners.indexOf(e);this._urlChangeListeners.splice(i,1),this._urlChangeListeners.length===0&&(this._urlChangeSubscription?.unsubscribe(),this._urlChangeSubscription=null)}}_notifyUrlChangeListeners(e=``,i){this._urlChangeListeners.forEach(n=>n(e,i))}subscribe(e,i,n){return this._subject.subscribe({next:e,error:i??void 0,complete:n??void 0})}static normalizeQueryParams=Jl;static joinWithSlash=JC;static stripTrailingSlash=V$;static ɵfac=function(i){return new(i||r)(yt(sd))};static ɵprov=ze({token:r,factory:()=>coe(),providedIn:`root`})}return r})();function coe(){return new sf(yt(sd))}function doe(r,t){if(!r||!t.startsWith(r))return t;let e=t.substring(r.length);return e===``||[`/`,`;`,`?`,`#`].includes(e[0])?e:t}function $$(r){return r.replace(/\/index\.html$/,``)}function uoe(r){if(new RegExp(`^(https?:)?//`).test(r)){let[,e]=r.split(/\/\/[^\/]+/);return e}return r}var p3=(()=>{class r extends sd{_platformLocation;_baseHref=``;_removeListenerFns=[];constructor(e,i){super(),this._platformLocation=e,i!=null&&(this._baseHref=i)}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 i=this._platformLocation.hash??`#`;return i.length>0?i.substring(1):i}prepareExternalUrl(e){let i=JC(this._baseHref,e);return i.length>0?`#`+i:i}pushState(e,i,n,s){let o=this.prepareExternalUrl(n+Jl(s))||this._platformLocation.pathname;this._platformLocation.pushState(e,i,o)}replaceState(e,i,n,s){let o=this.prepareExternalUrl(n+Jl(s))||this._platformLocation.pathname;this._platformLocation.replaceState(e,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}getState(){return this._platformLocation.getState()}historyGo(e=0){this._platformLocation.historyGo?.(e)}static ɵfac=function(i){return new(i||r)(yt(hu),yt(a3,8))};static ɵprov=ze({token:r,factory:r.ɵfac})}return r})();var G$={ADP:[void 0,void 0,0],AFN:[void 0,`؋`,0],ALL:[void 0,void 0,0],AMD:[void 0,`֏`,2],AOA:[void 0,`Kz`],ARS:[void 0,`$`],AUD:[`A$`,`$`],AZN:[void 0,`₼`],BAM:[void 0,`KM`],BBD:[void 0,`$`],BDT:[void 0,`৳`],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,`$`],BND:[void 0,`$`],BOB:[void 0,`Bs`],BRL:[`R$`],BSD:[void 0,`$`],BWP:[void 0,`P`],BYN:[void 0,void 0,2],BYR:[void 0,void 0,0],BZD:[void 0,`$`],CAD:[`CA$`,`$`,2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,`$`,0],CNY:[`CN¥`,`¥`],COP:[void 0,`$`,2],CRC:[void 0,`₡`,2],CUC:[void 0,`$`],CUP:[void 0,`$`],CZK:[void 0,`Kč`,2],DJF:[void 0,void 0,0],DKK:[void 0,`kr`,2],DOP:[void 0,`$`],EGP:[void 0,`E£`],ESP:[void 0,`₧`,0],EUR:[`€`],FJD:[void 0,`$`],FKP:[void 0,`£`],GBP:[`£`],GEL:[void 0,`₾`],GHS:[void 0,`GH₵`],GIP:[void 0,`£`],GNF:[void 0,`FG`,0],GTQ:[void 0,`Q`],GYD:[void 0,`$`,2],HKD:[`HK$`,`$`],HNL:[void 0,`L`],HRK:[void 0,`kn`],HUF:[void 0,`Ft`,2],IDR:[void 0,`Rp`,2],ILS:[`₪`],INR:[`₹`],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,`kr`,0],ITL:[void 0,void 0,0],JMD:[void 0,`$`],JOD:[void 0,void 0,3],JPY:[`¥`,void 0,0],KGS:[void 0,`⃀`],KHR:[void 0,`៛`],KMF:[void 0,`CF`,0],KPW:[void 0,`₩`,0],KRW:[`₩`,void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,`$`],KZT:[void 0,`₸`],LAK:[void 0,`₭`,0],LBP:[void 0,`L£`,0],LKR:[void 0,`Rs`],LRD:[void 0,`$`],LTL:[void 0,`Lt`],LUF:[void 0,void 0,0],LVL:[void 0,`Ls`],LYD:[void 0,void 0,3],MGA:[void 0,`Ar`,0],MGF:[void 0,void 0,0],MMK:[void 0,`K`,0],MNT:[void 0,`₮`,2],MRO:[void 0,void 0,0],MUR:[void 0,`Rs`,2],MXN:[`MX$`,`$`],MYR:[void 0,`RM`],NAD:[void 0,`$`],NGN:[void 0,`₦`],NIO:[void 0,`C$`],NOK:[void 0,`kr`,2],NPR:[void 0,`Rs`],NZD:[`NZ$`,`$`],OMR:[void 0,void 0,3],PHP:[`₱`],PKR:[void 0,`Rs`,2],PLN:[void 0,`zł`],PYG:[void 0,`₲`,0],RON:[void 0,`lei`],RSD:[void 0,void 0,0],RUB:[void 0,`₽`],RWF:[void 0,`RF`,0],SBD:[void 0,`$`],SEK:[void 0,`kr`,2],SGD:[void 0,`$`],SHP:[void 0,`£`],SLE:[void 0,void 0,2],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,`$`],SSP:[void 0,`£`],STD:[void 0,void 0,0],STN:[void 0,`Db`],SYP:[void 0,`£`,0],THB:[void 0,`฿`],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,`T$`],TRL:[void 0,void 0,0],TRY:[void 0,`₺`],TTD:[void 0,`$`],TWD:[`NT$`,`$`,2],TZS:[void 0,void 0,2],UAH:[void 0,`₴`],UGX:[void 0,void 0,0],USD:[`$`],UYI:[void 0,void 0,0],UYU:[void 0,`$`],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,`Bs`,2],VND:[`₫`,void 0,0],VUV:[void 0,void 0,0],XAF:[`FCFA`,void 0,0],XCD:[`EC$`,`$`],XCG:[`Cg.`],XOF:[`F CFA`,void 0,0],XPF:[`CFPF`,void 0,0],XXX:[`¤`],YER:[void 0,void 0,0],ZAR:[void 0,`R`],ZMK:[void 0,void 0,0],ZMW:[void 0,`ZK`],ZWD:[void 0,void 0,0]};var fv=(function(r){return r[r.Decimal=0]=`Decimal`,r[r.Percent=1]=`Percent`,r[r.Currency=2]=`Currency`,r[r.Scientific=3]=`Scientific`,r})(fv||{});var xo=(function(r){return r[r.Format=0]=`Format`,r[r.Standalone=1]=`Standalone`,r})(xo||{});var Rn=(function(r){return r[r.Narrow=0]=`Narrow`,r[r.Abbreviated=1]=`Abbreviated`,r[r.Wide=2]=`Wide`,r[r.Short=3]=`Short`,r})(Rn||{});var oa=(function(r){return r[r.Short=0]=`Short`,r[r.Medium=1]=`Medium`,r[r.Long=2]=`Long`,r[r.Full=3]=`Full`,r})(oa||{});var Er={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 U$(r){return Hs(r)[ir.LocaleId]}function W$(r,t,e){let i=Hs(r);return pl(pl([i[ir.DayPeriodsFormat],i[ir.DayPeriodsStandalone]],t),e)}function K$(r,t,e){let i=Hs(r);return pl(pl([i[ir.DaysFormat],i[ir.DaysStandalone]],t),e)}function Y$(r,t,e){let i=Hs(r);return pl(pl([i[ir.MonthsFormat],i[ir.MonthsStandalone]],t),e)}function Q$(r,t){let i=Hs(r)[ir.Eras];return pl(i,t)}function a2(r){return Hs(r)[ir.FirstDayOfWeek]}function uv(r,t){return pl(Hs(r)[ir.DateFormat],t)}function hv(r,t){return pl(Hs(r)[ir.TimeFormat],t)}function gv(r,t){let i=Hs(r)[ir.DateTimeFormat];return pl(i,t)}function Ea(r,t){let e=Hs(r),i=e[ir.NumberSymbols][t];if(typeof i>`u`){if(t===Er.CurrencyDecimal)return e[ir.NumberSymbols][Er.Decimal];if(t===Er.CurrencyGroup)return e[ir.NumberSymbols][Er.Group]}return i}function l2(r,t){return Hs(r)[ir.NumberFormats][t]}function f3(r){return j5(r)}function hoe(r){return Hs(r)[ir.Currencies]}function X$(r){if(!r[ir.ExtraData])throw new be(2303,!1)}function Z$(r){let t=Hs(r);return X$(t),(t[ir.ExtraData][2]||[]).map(i=>typeof i==`string`?l3(i):[l3(i[0]),l3(i[1])])}function J$(r,t,e){let i=Hs(r);X$(i);return pl(pl([i[ir.ExtraData][0],i[ir.ExtraData][1]],t)||[],e)||[]}function pl(r,t){for(let e=t;e>-1;e--)if(typeof r[e]<`u`)return r[e];throw new be(2304,!1)}function l3(r){let[t,e]=r.split(`:`);return{hours:+t,minutes:+e}}function c2(r,t,e=`en`){let i=hoe(e)[r]||G$[r]||[],n=i[1];return t===`narrow`&&typeof n==`string`?n:i[0]||r}var goe=2;function ez(r){let t,e=G$[r];return e&&(t=e[2]),typeof t==`number`?t:goe}var poe=/^(\d{4,})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/;var e2=Object.create(null);var foe=/((?:[^BEGHLMOSWYZabcdhmswyz']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|Y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|c{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/;var moe=256;function d2(r,t,e,i){let n=Noe(r);xoe(t),t=gu(e,t)||t;let o=[],a;for(;t;)if(a=foe.exec(t),a){o=o.concat(a.slice(1));let d=o.pop();if(!d)break;t=d}else{o.push(t);break}let l=n.getTimezoneOffset();i&&(l=iz(i,l),n=Ioe(n,i));let c=``;return o.forEach(d=>{let u=woe(d);c+=u?u(n,e,l):d===`''`?`'`:d.replace(/(^'|'$)/g,``).replace(/''/g,`'`)}),c}function xoe(r){if(r.length>moe)throw new be(2300,!1)}function s2(r,t,e){let i=new Date(0);return i.setFullYear(r,t,e),i.setHours(0,0,0),i}function gu(r,t){let e=U$(r);if(e2[e]??=Object.create(null),e2[e][t])return e2[e][t];let i=``;switch(t){case`shortDate`:i=uv(r,oa.Short);break;case`mediumDate`:i=uv(r,oa.Medium);break;case`longDate`:i=uv(r,oa.Long);break;case`fullDate`:i=uv(r,oa.Full);break;case`shortTime`:i=hv(r,oa.Short);break;case`mediumTime`:i=hv(r,oa.Medium);break;case`longTime`:i=hv(r,oa.Long);break;case`fullTime`:i=hv(r,oa.Full);break;case`short`:let n=gu(r,`shortTime`),s=gu(r,`shortDate`);i=t2(gv(r,oa.Short),[n,s]);break;case`medium`:let o=gu(r,`mediumTime`),a=gu(r,`mediumDate`);i=t2(gv(r,oa.Medium),[o,a]);break;case`long`:let l=gu(r,`longTime`),c=gu(r,`longDate`);i=t2(gv(r,oa.Long),[l,c]);break;case`full`:let d=gu(r,`fullTime`),u=gu(r,`fullDate`);i=t2(gv(r,oa.Full),[d,u]);break}return i&&(e2[e][t]=i),i}function t2(r,t){return t&&(r=r.replace(/\{([^}]+)}/g,function(e,i){return Object.hasOwn(t,i)?t[i]:e})),r}function ec(r,t,e=`-`,i,n){let s=``;(r<0||n&&r<=0)&&(n?r=-r+1:(r=-r,s=e));let o=String(r);for(;o.length0||a>-e)&&(a+=e),r===3)a===0&&e===-12&&(a=12);else if(r===6)return yoe(a,t);let l=Ea(o,Er.MinusSign);return ec(a,t,l,i,n)}}function _oe(r,t){switch(r){case 0:return t.getFullYear();case 1:return t.getMonth();case 2:return t.getDate();case 3:return t.getHours();case 4:return t.getMinutes();case 5:return t.getSeconds();case 6:return t.getMilliseconds();case 7:return t.getDay();default:throw new be(2301,!1)}}function Bn(r,t,e=xo.Format,i=!1){return function(n,s){return voe(n,s,r,t,e,i)}}function voe(r,t,e,i,n,s){switch(e){case 2:return Y$(t,n,i)[r.getMonth()];case 1:return K$(t,n,i)[r.getDay()];case 0:let o=r.getHours(),a=r.getMinutes();if(s){let c=Z$(t),d=J$(t,n,i),u=c.findIndex(h=>{if(Array.isArray(h)){let[g,p]=h,y=o>=g.hours&&a>=g.minutes,_=o0?Math.floor(n/60):Math.ceil(n/60);switch(r){case 0:return(n>=0?`+`:``)+ec(o,2,s)+ec(Math.abs(n%60),2,s);case 1:return`GMT`+(n>=0?`+`:``)+ec(o,1,s);case 2:return`GMT`+(n>=0?`+`:``)+ec(o,2,s)+`:`+ec(Math.abs(n%60),2,s);case 3:return i===0?`Z`:(n>=0?`+`:``)+ec(o,2,s)+`:`+ec(Math.abs(n%60),2,s);default:throw new be(2310,!1)}}}var boe=0;var r2=4;function Soe(r){let t=s2(r,boe,1).getDay();return s2(r,0,1+(t<=r2?r2:r2+7)-t)}function tz(r){let t=r.getDay(),e=t===0?-3:r2-t;return s2(r.getFullYear(),r.getMonth(),r.getDate()+e)}function c3(r,t=!1){return function(e,i){let n;if(t){let s=new Date(e.getFullYear(),e.getMonth(),1).getDay()-1,o=e.getDate();n=1+Math.floor((o+s)/7)}else{let s=tz(e),o=Soe(s.getFullYear()),a=s.getTime()-o.getTime();n=1+Math.round(a/6048e5)}return ec(n,r,Ea(i,Er.MinusSign))}}function n2(r,t=!1){return function(e,i){return ec(tz(e).getFullYear(),r,Ea(i,Er.MinusSign),t)}}var d3=Object.create(null);function woe(r){if(d3[r])return d3[r];let t;switch(r){case`G`:case`GG`:case`GGG`:t=Bn(3,Rn.Abbreviated);break;case`GGGG`:t=Bn(3,Rn.Wide);break;case`GGGGG`:t=Bn(3,Rn.Narrow);break;case`y`:t=jr(0,1,0,!1,!0);break;case`yy`:t=jr(0,2,0,!0,!0);break;case`yyy`:t=jr(0,3,0,!1,!0);break;case`yyyy`:t=jr(0,4,0,!1,!0);break;case`Y`:t=n2(1);break;case`YY`:t=n2(2,!0);break;case`YYY`:t=n2(3);break;case`YYYY`:t=n2(4);break;case`M`:case`L`:t=jr(1,1,1);break;case`MM`:case`LL`:t=jr(1,2,1);break;case`MMM`:t=Bn(2,Rn.Abbreviated);break;case`MMMM`:t=Bn(2,Rn.Wide);break;case`MMMMM`:t=Bn(2,Rn.Narrow);break;case`LLL`:t=Bn(2,Rn.Abbreviated,xo.Standalone);break;case`LLLL`:t=Bn(2,Rn.Wide,xo.Standalone);break;case`LLLLL`:t=Bn(2,Rn.Narrow,xo.Standalone);break;case`w`:t=c3(1);break;case`ww`:t=c3(2);break;case`W`:t=c3(1,!0);break;case`d`:t=jr(2,1);break;case`dd`:t=jr(2,2);break;case`c`:case`cc`:t=jr(7,1);break;case`ccc`:t=Bn(1,Rn.Abbreviated,xo.Standalone);break;case`cccc`:t=Bn(1,Rn.Wide,xo.Standalone);break;case`ccccc`:t=Bn(1,Rn.Narrow,xo.Standalone);break;case`cccccc`:t=Bn(1,Rn.Short,xo.Standalone);break;case`E`:case`EE`:case`EEE`:t=Bn(1,Rn.Abbreviated);break;case`EEEE`:t=Bn(1,Rn.Wide);break;case`EEEEE`:t=Bn(1,Rn.Narrow);break;case`EEEEEE`:t=Bn(1,Rn.Short);break;case`a`:case`aa`:case`aaa`:t=Bn(0,Rn.Abbreviated);break;case`aaaa`:t=Bn(0,Rn.Wide);break;case`aaaaa`:t=Bn(0,Rn.Narrow);break;case`b`:case`bb`:case`bbb`:t=Bn(0,Rn.Abbreviated,xo.Standalone,!0);break;case`bbbb`:t=Bn(0,Rn.Wide,xo.Standalone,!0);break;case`bbbbb`:t=Bn(0,Rn.Narrow,xo.Standalone,!0);break;case`B`:case`BB`:case`BBB`:t=Bn(0,Rn.Abbreviated,xo.Format,!0);break;case`BBBB`:t=Bn(0,Rn.Wide,xo.Format,!0);break;case`BBBBB`:t=Bn(0,Rn.Narrow,xo.Format,!0);break;case`h`:t=jr(3,1,-12);break;case`hh`:t=jr(3,2,-12);break;case`H`:t=jr(3,1);break;case`HH`:t=jr(3,2);break;case`m`:t=jr(4,1);break;case`mm`:t=jr(4,2);break;case`s`:t=jr(5,1);break;case`ss`:t=jr(5,2);break;case`S`:t=jr(6,1);break;case`SS`:t=jr(6,2);break;case`SSS`:t=jr(6,3);break;case`Z`:case`ZZ`:case`ZZZ`:t=i2(0);break;case`ZZZZZ`:t=i2(3);break;case`O`:case`OO`:case`OOO`:case`z`:case`zz`:case`zzz`:t=i2(1);break;case`OOOO`:case`ZZZZ`:case`zzzz`:t=i2(2);break;default:return null}return d3[r]=t,t}function iz(r,t){r=r.replace(/:/g,``);let e=Date.parse(`Jan 01, 1970 00:00:00 `+r)/6e4;return isNaN(e)?t:e}function Coe(r,t){return r=new Date(r.getTime()),r.setMinutes(r.getMinutes()+t),r}function Ioe(r,t,e){let n=r.getTimezoneOffset();return Coe(r,-1*(iz(t,n)-n))}function Noe(r){if(B$(r))return r;if(typeof r==`number`&&!isNaN(r))return new Date(r);if(typeof r==`string`){if(r=r.trim(),/^(\d{4}(-\d{1,2}(-\d{1,2})?)?)$/.test(r)){let[n,s=1,o=1]=r.split(`-`).map(a=>+a);return s2(n,s-1,o)}let e=parseFloat(r);if(!isNaN(r-e))return new Date(e);let i;if(i=r.match(poe))return Doe(i)}let t=new Date(r);if(!B$(t))throw new be(2311,!1);return t}function Doe(r){let t=new Date(0),e=0,i=0,n=r[8]?t.setUTCFullYear:t.setFullYear,s=r[8]?t.setUTCHours:t.setHours;r[9]&&(e=Number(r[9]+r[10]),i=Number(r[9]+r[11])),n.call(t,Number(r[1]),Number(r[2])-1,Number(r[3]));let o=Number(r[4]||0)-e,a=Number(r[5]||0)-i,l=Number(r[6]||0),c=Math.floor(parseFloat(`0.`+(r[7]||0))*1e3);return s.call(t,o,a,l,c),t}function B$(r){return r instanceof Date&&!isNaN(r.valueOf())}var koe=/^(\d+)?\.((\d+)(-(\d+))?)?$/;var j$=22;var o2=`.`;var pv=`0`;var Eoe=`;`;var Toe=`,`;var u3=`#`;var H$=`¤`;var Moe=`%`;function m3(r,t,e,i,n,s,o=!1){let a=``,l=!1;if(!isFinite(r))a=Ea(e,Er.Infinity);else{let c=Roe(r);o&&(c=Aoe(c));let d=t.minInt,u=t.minFrac,h=t.maxFrac;if(s){let E=s.match(koe);if(E===null)throw new be(2306,!1);let k=E[1],z=E[3],G=E[5];k!=null&&(d=h3(k)),z!=null&&(u=h3(z)),G!=null?h=h3(G):z!=null&&u>h&&(h=u);let Q=100;if(d>Q||u>Q||h>Q)throw new be(2306,!1)}Poe(c,u,h);let g=c.digits,p=c.integerLen,y=c.exponent,_=[];for(l=g.every(E=>!E);p0?_=g.splice(p,g.length):(_=g,g=[0]);let w=[];for(g.length>=t.lgSize&&w.unshift(g.splice(-t.lgSize,g.length).join(``));g.length>t.gSize;)w.unshift(g.splice(-t.gSize,g.length).join(``));g.length&&w.unshift(g.join(``)),a=w.join(Ea(e,i)),_.length&&(a+=Ea(e,n)+_.join(``)),y&&(a+=Ea(e,Er.Exponential)+`+`+y)}return r<0&&!l?a=t.negPre+a+t.negSuf:a=t.posPre+a+t.posSuf,a}function nz(r,t,e,i,n){let o=_3(l2(t,fv.Currency),Ea(t,Er.MinusSign));return o.minFrac=ez(i),o.maxFrac=o.minFrac,m3(r,o,t,Er.CurrencyGroup,Er.CurrencyDecimal,n).replace(H$,e).replace(H$,``).trim()}function x3(r,t,e){return m3(r,_3(l2(t,fv.Percent),Ea(t,Er.MinusSign)),t,Er.Group,Er.Decimal,e,!0).replace(new RegExp(Moe,`g`),Ea(t,Er.PercentSign))}function y3(r,t,e){return m3(r,_3(l2(t,fv.Decimal),Ea(t,Er.MinusSign)),t,Er.Group,Er.Decimal,e)}function _3(r,t=`-`){let e={minInt:1,minFrac:0,maxFrac:0,posPre:``,posSuf:``,negPre:``,negSuf:``,gSize:0,lgSize:0},i=r.split(Eoe),n=i[0],s=i[1],o=n.indexOf(o2)!==-1?n.split(o2):[n.substring(0,n.lastIndexOf(pv)+1),n.substring(n.lastIndexOf(pv)+1)],a=o[0],l=o[1]||``;e.posPre=a.substring(0,a.indexOf(u3));for(let d=0;d-1&&(t=t.replace(o2,``)),(s=t.search(/e/i))>0?(n<0&&(n=s),n+=+t.slice(s+1),t=t.substring(0,s)):n<0&&(n=t.length),s=0;t.charAt(s)===pv;s++);if(s===(a=t.length))i=[0],n=1;else{for(a--;t.charAt(a)===pv;)a--;for(n-=s,i=[],o=0;s<=a;s++,o++)i[o]=Number(t.charAt(s))}return n>j$&&(i=i.splice(0,j$-1),e=n-1,n=1),{digits:i,exponent:e,integerLen:n}}function Poe(r,t,e){if(t>e)throw new be(2307,!1);let i=r.digits,n=i.length-r.integerLen,s=Math.min(Math.max(t,n),e),o=s+r.integerLen,a=i[o];if(o>0){i.splice(Math.max(r.integerLen,o));for(let u=o;u=5)if(o-1<0){for(let u=0;u>o;u--)i.unshift(0),r.integerLen++;i.unshift(1),r.integerLen++}else i[o-1]++;for(;n=c?p.pop():l=!1),h>=10?1:0},0);d&&(i.unshift(d),r.integerLen++)}function h3(r){let t=parseInt(r);if(isNaN(t))throw new be(2305,!1);return t}var g3=/\s+/;var q$=[];var zi=(()=>{class r{_ngEl;_renderer;initialClasses=q$;rawClass;stateMap=new Map;constructor(e,i){this._ngEl=e,this._renderer=i}set klass(e){this.initialClasses=e!=null?e.trim().split(g3):q$}set ngClass(e){this.rawClass=typeof e==`string`?e.trim().split(g3):e}ngDoCheck(){for(let i of this.initialClasses)this._updateState(i,!0);let e=this.rawClass;if(Array.isArray(e)||e instanceof Set)for(let i of e)this._updateState(i,!0);else if(e!=null)for(let i of Object.keys(e))this._updateState(i,!!e[i]);this._applyStateDiff()}_updateState(e,i){let n=this.stateMap.get(e);n!==void 0?(n.enabled!==i&&(n.changed=!0,n.enabled=i),n.touched=!0):this.stateMap.set(e,{enabled:i,changed:!0,touched:!0})}_applyStateDiff(){for(let e of this.stateMap){let i=e[0],n=e[1];n.changed?(this._toggleClass(i,n.enabled),n.changed=!1):n.touched||(n.enabled&&this._toggleClass(i,!1),this.stateMap.delete(i)),n.touched=!1}}_toggleClass(e,i){e=e.trim(),e.length>0&&e.split(g3).forEach(n=>{i?this._renderer.addClass(this._ngEl.nativeElement,n):this._renderer.removeClass(this._ngEl.nativeElement,n)})}static ɵfac=function(i){return new(i||r)(lt(Se),lt(Wt))};static ɵdir=ee({type:r,selectors:[[``,`ngClass`,``]],inputs:{klass:[0,`class`,`klass`],ngClass:`ngClass`}})}return r})();var of=(()=>{class r{_ngEl;_differs;_renderer;_ngStyle=null;_differ=null;constructor(e,i,n){this._ngEl=e,this._differs=i,this._renderer=n}set ngStyle(e){this._ngStyle=e,!this._differ&&e&&(this._differ=this._differs.find(e).create())}ngDoCheck(){if(this._differ){let e=this._differ.diff(this._ngStyle);e&&this._applyChanges(e)}}_setStyle(e,i){let[n,s]=e.split(`.`),o=n.indexOf(`-`)===-1?void 0:ka.DashCase;i!=null?this._renderer.setStyle(this._ngEl.nativeElement,n,s?`${i}${s}`:i,o):this._renderer.removeStyle(this._ngEl.nativeElement,n,o)}_applyChanges(e){e.forEachRemovedItem(i=>this._setStyle(i.key,null)),e.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),e.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}static ɵfac=function(i){return new(i||r)(lt(Se),lt(s3),lt(Wt))};static ɵdir=ee({type:r,selectors:[[``,`ngStyle`,``]],inputs:{ngStyle:`ngStyle`}})}return r})();var Lt=(()=>{class r{_viewContainerRef;_viewRef=null;ngTemplateOutletContext=null;ngTemplateOutlet=null;ngTemplateOutletInjector=null;injector=C(ji);constructor(e){this._viewContainerRef=e}ngOnChanges(e){if(this._shouldRecreateView(e)){let i=this._viewContainerRef;if(this._viewRef&&i.remove(i.indexOf(this._viewRef)),!this.ngTemplateOutlet){this._viewRef=null;return}let n=this._createContextForwardProxy();this._viewRef=i.createEmbeddedView(this.ngTemplateOutlet,n,{injector:this._getInjector()})}}_getInjector(){return this.ngTemplateOutletInjector===`outlet`?this.injector:this.ngTemplateOutletInjector??void 0}_shouldRecreateView(e){return!!e.ngTemplateOutlet||!!e.ngTemplateOutletInjector}_createContextForwardProxy(){return new Proxy({},{set:(e,i,n)=>this.ngTemplateOutletContext?Reflect.set(this.ngTemplateOutletContext,i,n):!1,get:(e,i,n)=>{if(this.ngTemplateOutletContext)return Reflect.get(this.ngTemplateOutletContext,i,n)}})}static ɵfac=function(i){return new(i||r)(lt(Ti))};static ɵdir=ee({type:r,selectors:[[``,`ngTemplateOutlet`,``]],inputs:{ngTemplateOutletContext:`ngTemplateOutletContext`,ngTemplateOutlet:`ngTemplateOutlet`,ngTemplateOutletInjector:`ngTemplateOutletInjector`},features:[wn]})}return r})();function v3(r,t){return new be(2100,!1)}var Ooe=/(?:[0-9A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDE80-\uDEA9\uDEB0\uDEB1\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDD00-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD50-\uDD52\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E]|\uD838[\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF38\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A])\S*/g;var u2=(()=>{class r{transform(e){return e==null?null:(Foe(r,e),e.replace(Ooe,i=>i[0].toUpperCase()+i.slice(1).toLowerCase()))}static ɵfac=function(i){return new(i||r)};static ɵpipe=Dt({name:`titlecase`,type:r,pure:!0})}return r})();function Foe(r,t){if(typeof t!=`string`)throw v3(r,t)}var Loe=`mediumDate`;var rz=new Oe(``);var sz=new Oe(``);var b3=(()=>{class r{locale;defaultTimezone;defaultOptions;constructor(e,i,n){this.locale=e,this.defaultTimezone=i,this.defaultOptions=n}transform(e,i,n,s){if(e==null||e===``||e!==e)return null;try{let o=i??this.defaultOptions?.dateFormat??Loe,a=n??this.defaultOptions?.timezone??this.defaultTimezone??void 0;return d2(e,o,s||this.locale,a)}catch(o){throw v3(r,o.message)}}static ɵfac=function(i){return new(i||r)(lt(Ss,16),lt(rz,24),lt(sz,24))};static ɵpipe=Dt({name:`date`,type:r,pure:!0})}return r})();var S3=(()=>{class r{_locale;_defaultCurrencyCode;constructor(e,i=`USD`){this._locale=e,this._defaultCurrencyCode=i}transform(e,i=this._defaultCurrencyCode,n=`symbol`,s,o){if(!Voe(e))return null;o||=this._locale,typeof n==`boolean`&&(n=n?`symbol`:`code`);let a=i||this._defaultCurrencyCode;n!==`code`&&(n===`symbol`||n===`symbol-narrow`?a=c2(a,n===`symbol`?`wide`:`narrow`,o):a=n);try{return nz($oe(e),o,a,i,s)}catch(l){throw v3(r,l.message)}}static ɵfac=function(i){return new(i||r)(lt(Ss,16),lt(U5,16))};static ɵpipe=Dt({name:`currency`,type:r,pure:!0})}return r})();function Voe(r){return!(r==null||r===``||r!==r)}function $oe(r){if(typeof r==`string`&&!isNaN(Number(r)-parseFloat(r)))return Number(r);if(typeof r!=`number`)throw new be(2309,!1);return r}var h2=(()=>{class r{static ɵfac=function(i){return new(i||r)};static ɵmod=Si({type:r});static ɵinj=vi({})}return r})();function mv(r,t){t=encodeURIComponent(t);for(let e of r.split(`;`)){let i=e.indexOf(`=`),[n,s]=i==-1?[e,``]:[e.slice(0,i),e.slice(i+1)];if(n.trim()!==t)continue;let o=s;try{o=decodeURIComponent(s)}catch{}return o.length>1&&o[0]===`"`&&o[o.length-1]===`"`&&(o=o.slice(1,-1)),o}return null}var w3=`browser`;function g2(r){return r===w3}var R0=class{_doc;constructor(t){this._doc=t}manager};var xv=(()=>{class r extends R0{constructor(e){super(e)}supports(e){return!0}addEventListener(e,i,n,s){return e.addEventListener(i,n,s),()=>this.removeEventListener(e,i,n,s)}removeEventListener(e,i,n,s){return e.removeEventListener(i,n,s)}static ɵfac=function(i){return new(i||r)(yt(St))};static ɵprov=ze({token:r,factory:r.ɵfac})}return r})();var vv=new Oe(``);var P0=(()=>{class r{_zone;_plugins;_eventNameToPlugin=new Map;constructor(e,i){this._zone=i,e.forEach(o=>{o.manager=this});let n=e.filter(o=>!(o instanceof xv));this._plugins=n.slice().reverse();let s=e.find(o=>o instanceof xv);s&&this._plugins.push(s)}addEventListener(e,i,n,s){return this._findPluginFor(i).addEventListener(e,i,n,s)}getZone(){return this._zone}_findPluginFor(e){let i=this._eventNameToPlugin.get(e);if(i)return i;if(i=this._plugins.find(s=>s.supports(e)),!i)throw new be(-5101,!1);return this._eventNameToPlugin.set(e,i),i}static ɵfac=function(i){return new(i||r)(yt(vv),yt(Nt))};static ɵprov=ze({token:r,factory:r.ɵfac})}return r})();var C3=`ng-app-id`;function az(r){for(let t of r)t.remove()}function lz(r,t){let e=t.createElement(`style`);return e.textContent=r,e}function qoe(r,t,e,i){let n=r.head?.querySelectorAll(`style[${C3}="${t}"],link[${C3}="${t}"]`);if(!n||n.length===0)return!1;for(let s of n)s.removeAttribute(C3),s instanceof HTMLLinkElement?i.set(s.href.slice(s.href.lastIndexOf(`/`)+1),{usage:0,elements:[s]}):s.textContent&&e.set(s.textContent,{usage:0,elements:[s]});return!0}function N3(r,t){let e=t.createElement(`link`);return e.setAttribute(`rel`,`stylesheet`),e.setAttribute(`href`,r),e}var m2=(()=>{class r{doc;appId;nonce;inline=new Map;external=new Map;hosts=new Set;constructor(e,i,n,s={}){this.doc=e,this.appId=i,this.nonce=n,qoe(e,i,this.inline,this.external)&&this.hosts.add(e.head)}addStyles(e,i){for(let n of e)this.addUsage(n,this.inline,lz);i?.forEach(n=>this.addUsage(n,this.external,N3))}removeStyles(e,i){for(let n of e)this.removeUsage(n,this.inline);i?.forEach(n=>this.removeUsage(n,this.external))}addUsage(e,i,n){let s=i.get(e);s?s.usage++:i.set(e,{usage:1,elements:[...this.hosts].map(o=>this.addElement(o,n(e,this.doc)))})}removeUsage(e,i){let n=i.get(e);n&&(n.usage--,n.usage<=0&&(az(n.elements),i.delete(e)))}ngOnDestroy(){for(let[,{elements:e}]of[...this.inline,...this.external])az(e);this.hosts.clear()}addHost(e){if(!this.hosts.has(e)){this.hosts.add(e);for(let[i,{elements:n}]of this.inline)n.push(this.addElement(e,lz(i,this.doc)));for(let[i,{elements:n}]of this.external)n.push(this.addElement(e,N3(i,this.doc)))}}removeHost(e){this.hosts.delete(e);for(let i of[...this.inline.values(),...this.external.values()]){let n=[];for(let s of i.elements)s.parentNode===e?s.remove():n.push(s);i.elements=n}}addElement(e,i){return this.nonce&&i.setAttribute(`nonce`,this.nonce),e.appendChild(i)}static ɵfac=function(i){return new(i||r)(yt(St),yt(R_),yt(P_,8),yt(cu))};static ɵprov=ze({token:r,factory:r.ɵfac})}return r})();var I3={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`};var D3=/%COMP%/g;var dz=`%COMP%`;var Goe=`_nghost-${dz}`;var Uoe=`_ngcontent-${dz}`;var Woe=!0;var uz=new Oe(``,{factory:()=>Woe});var Koe=new Oe(``);function Yoe(r){return Uoe.replace(D3,r)}function Qoe(r){return Goe.replace(D3,r)}function hz(r,t){return t.map(e=>e.replace(D3,r))}var O0=(()=>{class r{eventManager;sharedStylesHost;appId;removeStylesOnCompDestroy;doc;ngZone;nonce;tracingService;rendererByCompId=new Map;defaultRenderer;cssVarNamespace;constructor(e,i,n,s,o,a,l=null,c=null,d=null){this.eventManager=e,this.sharedStylesHost=i,this.appId=n,this.removeStylesOnCompDestroy=s,this.doc=o,this.ngZone=a,this.nonce=l,this.tracingService=c,this.cssVarNamespace=d??``,this.defaultRenderer=new yv(e,o,a,this.tracingService,this.cssVarNamespace)}createRenderer(e,i){if(!e||!i)return this.defaultRenderer;let n=this.getOrCreateRenderer(e,i);return n instanceof f2?n.applyToHost(e):n instanceof _v&&n.applyStyles(),n}getOrCreateRenderer(e,i){let n=this.rendererByCompId,s=n.get(i.id);if(!s){let o=this.doc,a=this.ngZone,l=this.eventManager,c=this.sharedStylesHost,d=this.removeStylesOnCompDestroy,u=this.tracingService;switch(i.encapsulation){case Na.Emulated:s=new f2(l,c,i,this.appId,d,o,a,u,this.cssVarNamespace);break;case Na.ShadowDom:return new p2(l,e,i,o,a,this.nonce,u,this.cssVarNamespace,c);case Na.ExperimentalIsolatedShadowDom:return new p2(l,e,i,o,a,this.nonce,u,this.cssVarNamespace);default:s=new _v(l,c,i,d,o,a,u,this.cssVarNamespace);break}n.set(i.id,s)}return s}ngOnDestroy(){this.rendererByCompId.clear()}componentReplaced(e){this.rendererByCompId.delete(e)}static ɵfac=function(i){return new(i||r)(yt(P0),yt(Jp),yt(R_),yt(uz),yt(St),yt(Nt),yt(P_),yt(Jc,8),yt(Koe,8))};static ɵprov=ze({token:r,factory:r.ɵfac})}return r})();var yv=class{eventManager;doc;ngZone;tracingService;cssVarNamespace;data=Object.create(null);throwOnSyntheticProps=!0;constructor(t,e,i,n,s=``){this.eventManager=t,this.doc=e,this.ngZone=i,this.tracingService=n,this.cssVarNamespace=s}destroy(){}destroyNode=null;createElement(t,e){return e?this.doc.createElementNS(I3[e]||e,t):this.doc.createElement(t)}createComment(t){return this.doc.createComment(t)}createText(t){return this.doc.createTextNode(t)}appendChild(t,e){(cz(t)?t.content:t).appendChild(e)}insertBefore(t,e,i){t&&(cz(t)?t.content:t).insertBefore(e,i)}removeChild(t,e){e.remove()}selectRootElement(t,e){let i=typeof t==`string`?this.doc.querySelector(t):t;if(!i)throw new be(-5104,!1);return e||(i.textContent=``),i}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,i,n){if(n){e=n+`:`+e;let s=I3[n];s?t.setAttributeNS(s,e,i):t.setAttribute(e,i)}else t.setAttribute(e,i)}removeAttribute(t,e,i){if(i){let n=I3[i];n?t.removeAttributeNS(n,e):t.removeAttribute(`${i}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,i,n){let s=e.startsWith(`--`);s&&(e=e.replace(`%NS%`,this.cssVarNamespace)),s||n&(ka.DashCase|ka.Important)?t.style.setProperty(e,i,n&ka.Important?`important`:``):t.style[e]=i}removeStyle(t,e,i){let n=e.startsWith(`--`);n&&(e=e.replace(`%NS%`,this.cssVarNamespace)),n||i&ka.DashCase?t.style.removeProperty(e):t.style[e]=``}setProperty(t,e,i){t!=null&&(t[e]=i)}setValue(t,e){t.nodeValue=e}listen(t,e,i,n){if(typeof t==`string`&&(t=gl().getGlobalEventTarget(this.doc,t),!t))throw new be(-5102,!1);let s=this.decoratePreventDefault(i);return this.tracingService?.wrapEventListener&&(s=this.tracingService.wrapEventListener(t,e,s)),this.eventManager.addEventListener(t,e,s,n)}decoratePreventDefault(t){return e=>{if(e===`__ngUnwrap__`)return t;t(e)===!1&&e.preventDefault()}}};function cz(r){return r.tagName===`TEMPLATE`&&r.content!==void 0}var p2=class extends yv{hostEl;sharedStylesHost;shadowRoot;constructor(t,e,i,n,s,o,a,l,c){super(t,n,s,a,l),this.hostEl=e,this.sharedStylesHost=c,this.shadowRoot=e.attachShadow({mode:`open`}),this.sharedStylesHost&&this.sharedStylesHost.addHost(this.shadowRoot);let d=i.styles;d=hz(i.id,d).map(h=>h.replace(/%NS%/g,l));for(let h of d){let g=document.createElement(`style`);o&&g.setAttribute(`nonce`,o),g.textContent=h,this.shadowRoot.appendChild(g)}let u=i.getExternalStyles?.();if(u)for(let h of u){let g=N3(h,n);o&&g.setAttribute(`nonce`,o),this.shadowRoot.appendChild(g)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,i){return super.insertBefore(this.nodeOrShadowRoot(t),e,i)}removeChild(t,e){return super.removeChild(null,e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}destroy(){this.sharedStylesHost&&this.sharedStylesHost.removeHost(this.shadowRoot)}};var _v=class extends yv{sharedStylesHost;removeStylesOnCompDestroy;styles;styleUrls;constructor(t,e,i,n,s,o,a,l,c){super(t,s,o,a,l),this.sharedStylesHost=e,this.removeStylesOnCompDestroy=n;let d=i.styles,u=c?hz(c,d):d;this.styles=u.map(h=>h.replace(/%NS%/g,l)),this.styleUrls=i.getExternalStyles?.(c)}applyStyles(){this.sharedStylesHost.addStyles(this.styles,this.styleUrls)}destroy(){this.removeStylesOnCompDestroy&&zh.size===0&&this.sharedStylesHost.removeStyles(this.styles,this.styleUrls)}};var f2=class extends _v{contentAttr;hostAttr;constructor(t,e,i,n,s,o,a,l,c){let d=n+`-`+i.id;super(t,e,i,s,o,a,l,c,d),this.contentAttr=Yoe(d),this.hostAttr=Qoe(d)}applyToHost(t){this.applyStyles(),this.setAttribute(t,this.hostAttr,``)}createElement(t,e){let i=super.createElement(t,e);return super.setAttribute(i,this.contentAttr,``),i}};var x2=class r extends dv{supportsDOMEvents=!0;static makeCurrent(){o3(new r)}onAndCancel(t,e,i,n){return t.addEventListener(e,i,n),()=>{t.removeEventListener(e,i,n)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){t.remove()}createElement(t,e){return e=e||this.getDefaultDocument(),e.createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument(`fakeTitle`)}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return e===`window`?window:e===`document`?t:e===`body`?t.body:null}getBaseHref(t){let e=Xoe();return e==null?null:Zoe(e)}resetBaseElement(){bv=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return mv(document.cookie,t)}};var bv=null;function Xoe(){return bv=bv||document.head.querySelector(`base`),bv?bv.getAttribute(`href`):null}function Zoe(r){return new URL(r,document.baseURI).pathname}var gz=[`alt`,`control`,`meta`,`shift`];var Joe={"\b":`Backspace`," ":`Tab`,"":`Delete`,"\x1B":`Escape`,Del:`Delete`,Esc:`Escape`,Left:`ArrowLeft`,Right:`ArrowRight`,Up:`ArrowUp`,Down:`ArrowDown`,Menu:`ContextMenu`,Scroll:`ScrollLock`,Win:`OS`};var eae={alt:r=>r.altKey,control:r=>r.ctrlKey,meta:r=>r.metaKey,shift:r=>r.shiftKey};var pz=(()=>{class r extends R0{constructor(e){super(e)}supports(e){return r.parseEventName(e)!=null}addEventListener(e,i,n,s){let o=r.parseEventName(i),a=r.eventCallback(o.fullKey,n,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>gl().onAndCancel(e,o.domEventName,a,s))}static parseEventName(e){let i=e.toLowerCase().split(`.`),n=i.shift();if(i.length===0||!(n===`keydown`||n===`keyup`))return null;let s=r._normalizeKey(i.pop()),o=``,a=i.indexOf(`code`);if(a>-1&&(i.splice(a,1),o=`code.`),gz.forEach(c=>{let d=i.indexOf(c);d>-1&&(i.splice(d,1),o+=c+`.`)}),o+=s,i.length!=0||s.length===0)return null;let l={};return l.domEventName=n,l.fullKey=o,l}static matchEventFullKeyCode(e,i){let n=Joe[e.key]||e.key,s=``;return i.indexOf(`code.`)>-1&&(n=e.code,s=`code.`),n==null||!n?!1:(n=n.toLowerCase(),n===` `?n=`space`:n===`.`&&(n=`dot`),gz.forEach(o=>{if(o!==n){let a=eae[o];a(e)&&(s+=o+`.`)}}),s+=n,s===i)}static eventCallback(e,i,n){return s=>{r.matchEventFullKeyCode(s,e)&&n.runGuarded(()=>i(s))}}static _normalizeKey(e){return e===`esc`?`escape`:e}static ɵfac=function(i){return new(i||r)(yt(St))};static ɵprov=ze({token:r,factory:r.ɵfac})}return r})();async function k3(r$2,t,e){return A$(r({rootComponent:r$2},tae(t,e)))}function tae(r,t){return{platformRef:t?.platformRef,appProviders:[...oae,...r?.providers??[]],platformProviders:sae}}function iae(){x2.makeCurrent()}function nae(){return new ql}function rae(){return s5(document),document}var sae=[{provide:cu,useValue:w3},{provide:nC,useValue:iae,multi:!0},{provide:St,useFactory:rae}];var oae=[{provide:N_,useValue:`root`},{provide:ql,useFactory:nae},{provide:vv,useClass:xv,multi:!0},{provide:vv,useClass:pz,multi:!0},O0,{provide:Jp,useClass:m2},{provide:m2,useExisting:Jp},P0,{provide:Ql,useExisting:O0},[]];var fu=class r{headers;normalizedNames=new Map;lazyInit;lazyUpdate=null;constructor(t){t?typeof t==`string`?this.lazyInit=()=>{this.headers=new Map,t.split(` +`).forEach(e=>{let i=e.indexOf(`:`);if(i>0){let n=e.slice(0,i),s=e.slice(i+1).trim();this.addHeaderEntry(n,s)}})}:typeof Headers<`u`&&t instanceof Headers?(this.headers=new Map,t.forEach((e,i)=>{this.addHeaderEntry(i,e)})):this.lazyInit=()=>{this.headers=new Map,Object.entries(t).forEach(([e,i])=>{this.setHeaderEntries(e,i)})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();let e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:`a`})}set(t,e){return this.clone({name:t,value:e,op:`s`})}delete(t,e){return this.clone({name:t,value:e,op:`d`})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof r?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init();for(let[e,i]of t.headers.entries())this.headers.set(e,i),this.normalizedNames.set(e,t.normalizedNames.get(e))}clone(t){let e=new r;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof r?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){let e=t.name.toLowerCase();switch(t.op){case`a`:case`s`:let i=t.value;if(typeof i==`string`&&(i=[i]),i.length===0)return;this.maybeSetNormalizedName(t.name,e);let n=t.op===`a`?(this.headers.get(e)||[]).slice():[];n.push(...i),this.headers.set(e,n);break;case`d`:let s=t.value;if(s===void 0)this.headers.delete(e),this.normalizedNames.delete(e);else{let o=Array.isArray(s)?s:[s],a=this.headers.get(e);if(!a)return;a=a.filter(l=>o.indexOf(l)===-1),a.length===0?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}break}}addHeaderEntry(t,e){let i=t.toLowerCase();this.maybeSetNormalizedName(t,i),this.headers.has(i)?this.headers.get(i).push(e):this.headers.set(i,[e])}setHeaderEntries(t,e){let i=(Array.isArray(e)?e:[e]).map(s=>s.toString()),n=t.toLowerCase();this.headers.set(n,i),this.maybeSetNormalizedName(t,n)}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}};var M3=class{map=new Map;set(t,e){return this.map.set(t,e),this}get(t){return this.map.has(t)||this.map.set(t,t.defaultValue()),this.map.get(t)}delete(t){return this.map.delete(t),this}has(t){return this.map.has(t)}keys(){return this.map.keys()}};var A3=class{encodeKey(t){return fz(t)}encodeValue(t){return fz(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}};function aae(r,t){let e=new Map;return r.length>0&&r.replace(/^\?/,``).split(`&`).forEach(n=>{let s=n.indexOf(`=`),[o,a]=s==-1?[t.decodeKey(n),``]:[t.decodeKey(n.slice(0,s)),t.decodeValue(n.slice(s+1))],l=e.get(o)||[];l.push(a),e.set(o,l)}),e}var lae=/%(\d[a-f0-9])/gi;var cae={40:`@`,"3A":`:`,24:`$`,"2C":`,`,"3B":`;`,"3D":`=`,"3F":`?`,"2F":`/`};function fz(r){return encodeURIComponent(r).replace(lae,(t,e)=>cae[e]??t)}function y2(r){return`${r}`}var pu=class r{map;encoder;updates=null;cloneFrom=null;constructor(t={}){if(this.encoder=t.encoder||new A3,t.fromString){if(t.fromObject)throw new be(2805,!1);this.map=aae(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{let i=t.fromObject[e],n=Array.isArray(i)?i.map(y2):[y2(i)];this.map.set(e,n)})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();let e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:`a`})}appendAll(t){let e=[];return Object.keys(t).forEach(i=>{let n=t[i];Array.isArray(n)?n.forEach(s=>{e.push({param:i,value:s,op:`a`})}):e.push({param:i,value:n,op:`a`})}),this.clone(e)}set(t,e){return this.clone({param:t,value:e,op:`s`})}delete(t,e){return this.clone({param:t,value:e,op:`d`})}toString(){return this.init(),this.keys().map(t=>{let e=this.encoder.encodeKey(t);return this.map.get(t).map(i=>e+`=`+this.encoder.encodeValue(i)).join(`&`)}).filter(t=>t!==``).join(`&`)}clone(t){let e=new r({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat(t),e}init(){if(this.map===null&&(this.map=new Map),this.cloneFrom!==null){this.cloneFrom.init();for(let[t,e]of this.cloneFrom.map.entries())this.map.set(t,e);this.updates.forEach(t=>{switch(t.op){case`a`:case`s`:let e=t.op===`a`?(this.map.get(t.param)||[]).slice():[];e.push(y2(t.value)),this.map.set(t.param,e);break;case`d`:if(t.value!==void 0){let i=(this.map.get(t.param)||[]).slice(),n=i.indexOf(y2(t.value));n!==-1&&i.splice(n,1),i.length>0?this.map.set(t.param,i):this.map.delete(t.param)}else{this.map.delete(t.param);break}}}),this.cloneFrom=this.updates=null}}};function dae(r){switch(r){case`DELETE`:case`GET`:case`HEAD`:case`OPTIONS`:case`JSONP`:return!1;default:return!0}}function mz(r){return typeof ArrayBuffer<`u`&&r instanceof ArrayBuffer}function xz(r){return typeof Blob<`u`&&r instanceof Blob}function yz(r){return typeof FormData<`u`&&r instanceof FormData}function uae(r){return typeof URLSearchParams<`u`&&r instanceof URLSearchParams}var E3=`Content-Type`;var _z=`Accept`;var Sz=`text/plain`;var wz=`application/json`;var hae=`${wz}, ${Sz}, */*`;var F0=class r{url;body=null;headers;context;reportProgress=!1;reportUploadProgress=!1;reportDownloadProgress=!1;withCredentials=!1;credentials;keepalive=!1;cache;priority;mode;redirect;referrer;integrity;referrerPolicy;responseType=`json`;method;params;urlWithParams;transferCache;timeout;constructor(t,e,i,n){this.url=e,this.method=t.toUpperCase();let s;if(dae(this.method)||n?(this.body=i!==void 0?i:null,s=n):s=i,s){if(this.reportProgress=!!s.reportProgress,this.reportUploadProgress=!!s.reportUploadProgress,this.reportDownloadProgress=!!s.reportDownloadProgress,this.withCredentials=!!s.withCredentials,this.keepalive=!!s.keepalive,s.responseType&&(this.responseType=s.responseType),s.headers&&(this.headers=s.headers),s.context&&(this.context=s.context),s.params&&(this.params=s.params),s.priority&&(this.priority=s.priority),s.cache&&(this.cache=s.cache),s.credentials&&(this.credentials=s.credentials),typeof s.timeout==`number`){if(s.timeout<1||!Number.isInteger(s.timeout))throw new be(2822,``);this.timeout=s.timeout}s.mode&&(this.mode=s.mode),s.redirect&&(this.redirect=s.redirect),s.integrity&&(this.integrity=s.integrity),s.referrer!==void 0&&(this.referrer=s.referrer),s.referrerPolicy&&(this.referrerPolicy=s.referrerPolicy),this.transferCache=s.transferCache}if(this.headers??=new fu,this.context??=new M3,!this.params)this.params=new pu,this.urlWithParams=e;else{let o=this.params.toString();if(o.length===0)this.urlWithParams=e;else{let a=e,l=``,c=e.indexOf(`#`);c!==-1&&(l=e.substring(c),a=e.substring(0,c));let d=a.indexOf(`?`),u=d===-1?`?`:dne.set(ae,t.setHeaders[ae]),G)),t.setParams&&(Q=Object.keys(t.setParams).reduce((ne,ae)=>ne.set(ae,t.setParams[ae]),Q)),new r(e,i,_,{params:Q,headers:G,context:Y,reportProgress:E,reportUploadProgress:k,reportDownloadProgress:z,responseType:n,withCredentials:w,transferCache:p,keepalive:s,cache:a,priority:o,timeout:y,mode:l,redirect:c,credentials:d,referrer:u,integrity:h,referrerPolicy:g})}};var lf=(function(r){return r[r.Sent=0]=`Sent`,r[r.UploadProgress=1]=`UploadProgress`,r[r.ResponseHeader=2]=`ResponseHeader`,r[r.DownloadProgress=3]=`DownloadProgress`,r[r.Response=4]=`Response`,r[r.User=5]=`User`,r})(lf||{});var Sv=class{headers;status;statusText;url;ok;type;redirected;responseType;constructor(t,e=200,i=`OK`){this.headers=t.headers||new fu,this.status=t.status!==void 0?t.status:e,this.statusText=t.statusText||i,this.url=t.url||null,this.redirected=t.redirected,this.responseType=t.responseType,this.ok=this.status>=200&&this.status<300}};var R3=class r extends Sv{constructor(t={}){super(t)}type=lf.ResponseHeader;clone(t={}){return new r({headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}};var wv=class r extends Sv{body;constructor(t={}){super(t),this.body=t.body!==void 0?t.body:null}type=lf.Response;clone(t={}){return new r({body:t.body!==void 0?t.body:this.body,headers:t.headers||this.headers,status:t.status!==void 0?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0,redirected:t.redirected??this.redirected,responseType:t.responseType??this.responseType})}};var af=class extends Sv{name=`HttpErrorResponse`;message;error;ok=!1;constructor(t){super(t,0,`Unknown Error`),this.status>=200&&this.status<300?this.message=`Http failure during parsing for ${t.url||`(unknown url)`}`:this.message=`Http failure response for ${t.url||`(unknown url)`}: ${t.status} ${t.statusText}`,this.error=t.error||null}};var gae=200;var pae=/^\)\]\}',?\n/;var fae=new Oe(``,{factory:()=>null});var mae=(()=>{class r$3{fetchImpl=C(P3,{optional:!0})?.fetch??((...e)=>globalThis.fetch(...e));ngZone=C(Nt);destroyRef=C(Ei);maxResponseSize=C(fae);handle(e){return new $t(i=>{let n=new AbortController,s=!1,o={next:l=>{l.type===lf.Response&&(s=!0),i.next(l)},error:l=>{s=!0,i.error(l)},complete:()=>{s=!0,i.complete()}};this.doRequest(e,n.signal,o).then(O3,l=>o.error(new af({error:l})));let a;return e.timeout&&(a=this.ngZone.runOutsideAngular(()=>setTimeout(()=>{n.signal.aborted||n.abort(new DOMException(`signal timed out`,`TimeoutError`))},e.timeout))),()=>{a!==void 0&&clearTimeout(a),!s&&!n.signal.aborted&&n.abort()}})}async doRequest(e,i,n){let s=this.createRequestInit(e),o;try{let _=this.ngZone.runOutsideAngular(()=>this.fetchImpl(e.urlWithParams,r({signal:i},s)));xae(_),n.next({type:lf.Sent}),o=await _}catch(_){n.error(new af({error:_,status:_.status??0,statusText:_.statusText,url:e.urlWithParams,headers:_.headers}));return}let a=new fu(o.headers),l=o.statusText,c=o.url||e.urlWithParams,d=o.status,u=null,h=e.reportProgress||e.reportDownloadProgress;if(h&&n.next(new R3({headers:a,status:d,statusText:l,url:c})),o.body){let _=o.headers.get(E3)??``,w=o.headers.get(`content-length`),E=w!==null?Number(w):NaN;this.maxResponseSize!==null&&Number.isFinite(E)&&E>this.maxResponseSize&&vz(this.maxResponseSize);let k=[],z=o.body.getReader(),G=0,Q,Y,ne=typeof Zone<`u`&&Zone.current,ae=!1;if(await this.ngZone.runOutsideAngular(async()=>{for(;;){if(this.destroyRef.destroyed){await z.cancel(),ae=!0;break}let{done:Ee,value:Ke}=await z.read();if(Ee)break;if(k.push(Ke),G+=Ke.length,this.maxResponseSize!==null&&G>this.maxResponseSize&&(await z.cancel(),vz(this.maxResponseSize)),h){Y=e.responseType===`text`?(Y??``)+(Q??=bz(_)).decode(Ke,{stream:!0}):void 0;let ot=()=>n.next({type:lf.DownloadProgress,total:Number.isFinite(E)?E:void 0,loaded:G,partialText:Y});ne?ne.run(ot):ot()}}}),ae){n.complete();return}let me=this.concatChunks(k,G);try{u=this.parseBody(e,me,_,d)}catch(Ee){n.error(new af({error:Ee,headers:new fu(o.headers),status:o.status,statusText:o.statusText,url:o.url||e.urlWithParams}));return}}d===0&&(d=u?gae:0);let g=d>=200&&d<300,p=o.redirected,y=o.type;g?(n.next(new wv({body:u,headers:a,status:d,statusText:l,url:c,redirected:p,responseType:y})),n.complete()):n.error(new af({error:u,headers:a,status:d,statusText:l,url:c,redirected:p,responseType:y}))}parseBody(e,i,n,s){switch(e.responseType){case`json`:let o=new TextDecoder().decode(i).replace(pae,``);if(o===``)return null;try{return JSON.parse(o)}catch(a){if(s<200||s>=300)return o;throw a}case`text`:return bz(n).decode(i);case`blob`:return new Blob([i],{type:n});case`arraybuffer`:return i.buffer}}createRequestInit(e){if(e.reportUploadProgress)throw new be(2824,!1);let i={},n;if(n=e.credentials,e.withCredentials&&(n=`include`),e.headers.forEach((s,o)=>i[s]=o.join(`,`)),e.headers.has(_z)||(i[_z]=hae),!e.headers.has(E3)){let s=e.detectContentTypeHeader();s!==null&&(i[E3]=s)}return{body:e.serializeBody(),method:e.method,headers:i,credentials:n,keepalive:e.keepalive,cache:e.cache,priority:e.priority,mode:e.mode,redirect:e.redirect,referrer:e.referrer,integrity:e.integrity,referrerPolicy:e.referrerPolicy}}concatChunks(e,i){let n=new Uint8Array(i),s=0;for(let o of e)n.set(o,s),s+=o.length;return n}static ɵfac=function(i){return new(i||r$3)};static ɵprov=An({token:r$3,factory:r$3.ɵfac})}return r$3})();var P3=class{};function O3(){}function xae(r){r.then(O3,O3)}function vz(r){throw new be(-2825,!1)}var yae=/charset=\s*["']?([^;"'\s]+)["']?/i;function bz(r){let t=r.match(yae);if(t!==null)try{return new TextDecoder(t[1])}catch{}return new TextDecoder}var _ae=new Oe(``,{factory:()=>!0});var vae=`XSRF-TOKEN`;var bae=new Oe(``,{factory:()=>vae});var Sae=`X-XSRF-TOKEN`;var wae=new Oe(``,{factory:()=>Sae});var Cae=(()=>{class r{cookieName=C(bae);doc=C(St);lastCookieString=``;lastToken=null;parseCount=0;getToken(){let e=this.doc.cookie||``;return e!==this.lastCookieString&&(this.parseCount++,this.lastToken=mv(e,this.cookieName),this.lastCookieString=e),this.lastToken}static ɵfac=function(i){return new(i||r)};static ɵprov=An({token:r,factory:r.ɵfac})}return r})();var Iae=(()=>{class r{static ɵfac=function(i){return new(i||r)};static ɵprov=ze({token:r,factory:function(i){let n=null;return i?n=new(i||r):n=yt(Cae),n},providedIn:`root`})}return r})();function Nae(r,t){if(!C(_ae)||r.method===`GET`||r.method===`HEAD`)return t(r);try{let n=C(hu).href,{origin:s}=new URL(n),{origin:o}=new URL(r.url,s);if(s!==o)return t(r)}catch{return t(r)}let e=C(Iae).getToken(),i=C(wae);return e!=null&&!r.headers.has(i)&&(r=r.clone({headers:r.headers.set(i,e)})),t(r)}function Dae(r,t){return t(r)}function kae(r,t,e){return(i,n)=>vs(e,()=>t(i,s=>r(s,n)))}var Eae=new Oe(``,{factory:()=>[Nae]});var Cz=new Oe(``);var Tae=new Oe(``,{factory:()=>!0});var Mae=(()=>{class r{static ɵfac=function(i){return new(i||r)};static ɵprov=ze({token:r,factory:function(i){let n=null;return i?n=new(i||r):n=yt(mae),n},providedIn:`root`})}return r})();var Aae=(()=>{class r{backend;injector;chain=null;pendingTasks=C(f0);contributeToStability=C(Tae);constructor(e,i){this.backend=e,this.injector=i}handle(e){if(this.chain===null){let n=this.injector.get(Iz,null,{skipSelf:!0}),s=n!==null&&this.backend===n,o=this.injector.get(Cz,[],s?{self:!0}:void 0),a=Array.from(new Set([...this.injector.get(Eae),...o]));this.chain=a.reduceRight((l,c)=>kae(l,c,this.injector),Dae)}let i=this.chain;if(this.contributeToStability){let n=this.pendingTasks.add();return Ci(()=>i(e,s=>this.backend.handle(s))).pipe(g_(n))}else return Ci(()=>i(e,n=>this.backend.handle(n)))}static ɵfac=function(i){return new(i||r)(yt(Mae),yt(Sn))};static ɵprov=ze({token:r,factory:r.ɵfac,providedIn:`root`})}return r})();var Iz=(()=>{class r{static ɵfac=function(i){return new(i||r)};static ɵprov=ze({token:r,factory:function(i){let n=null;return i?n=new(i||r):n=yt(Aae),n},providedIn:`root`})}return r})();function T3(r$4,t){return r({body:t},r$4)}var F3=(()=>{class r{handler;constructor(e){this.handler=e}request(e,i,n={}){let s;if(e instanceof F0)s=e;else{let l;n.headers instanceof fu?l=n.headers:l=new fu(n.headers);let c;n.params&&(n.params instanceof pu?c=n.params:c=new pu({fromObject:n.params})),s=new F0(e,i,n.body!==void 0?n.body:null,{headers:l,context:n.context,params:c,reportProgress:n.reportProgress,reportUploadProgress:n.reportUploadProgress,reportDownloadProgress:n.reportDownloadProgress,responseType:n.responseType||`json`,withCredentials:n.withCredentials,transferCache:n.transferCache,keepalive:n.keepalive,priority:n.priority,cache:n.cache,mode:n.mode,redirect:n.redirect,credentials:n.credentials,referrer:n.referrer,referrerPolicy:n.referrerPolicy,integrity:n.integrity,timeout:n.timeout})}let o=fi(s).pipe(Ep(l=>this.handler.handle(l)));if(e instanceof F0||n.observe===`events`)return o;let a=o.pipe(Zt(l=>l instanceof wv));switch(n.observe||`body`){case`body`:switch(s.responseType){case`arraybuffer`:return a.pipe($i(l=>{if(l.body!==null&&!(l.body instanceof ArrayBuffer))throw new be(2806,!1);return l.body}));case`blob`:return a.pipe($i(l=>{if(l.body!==null&&!(l.body instanceof Blob))throw new be(2807,!1);return l.body}));case`text`:return a.pipe($i(l=>{if(l.body!==null&&typeof l.body!=`string`)throw new be(2808,!1);return l.body}));default:return a.pipe($i(l=>l.body))}case`response`:return a;default:throw new be(2809,!1)}}delete(e,i={}){return this.request(`DELETE`,e,i)}get(e,i={}){return this.request(`GET`,e,i)}head(e,i={}){return this.request(`HEAD`,e,i)}jsonp(e,i){return this.request(`JSONP`,e,{params:new pu().append(i,`JSONP_CALLBACK`),observe:`body`,responseType:`json`})}options(e,i={}){return this.request(`OPTIONS`,e,i)}patch(e,i,n={}){return this.request(`PATCH`,e,T3(n,i))}post(e,i,n={}){return this.request(`POST`,e,T3(n,i))}put(e,i,n={}){return this.request(`PUT`,e,T3(n,i))}static ɵfac=function(i){return new(i||r)(yt(Iz))};static ɵprov=ze({token:r,factory:r.ɵfac,providedIn:`root`})}return r})();var Nz=(()=>{class r{_doc;constructor(e){this._doc=e}getTitle(){return this._doc.title}setTitle(e){this._doc.title=e||``}static ɵfac=function(i){return new(i||r)(yt(St))};static ɵprov=ze({token:r,factory:r.ɵfac,providedIn:`root`})}return r})();var L3=(()=>{class r{static ɵfac=function(i){return new(i||r)};static ɵprov=ze({token:r,factory:function(i){let n=null;return i?n=new(i||r):n=yt(Rae),n},providedIn:`root`})}return r})();var Rae=(()=>{class r extends L3{_doc=C(St);sanitize(e,i){if(i==null)return null;switch(e){case Mn.NONE:return i;case Mn.HTML:return Zc(i,`HTML`)?Da(i):AC(this._doc,String(i)).toString();case Mn.STYLE:return Zc(i,`Style`)?Da(i):i;case Mn.SCRIPT:if(Zc(i,`Script`))return Da(i);throw new be(5200,!1);case Mn.URL:return Zc(i,`URL`)?Da(i):Q_(String(i));case Mn.RESOURCE_URL:if(Zc(i,`ResourceURL`))return Da(i);throw new be(-5201,!1);default:throw new be(5202,!1)}}bypassSecurityTrustHtml(e){return l5(e)}bypassSecurityTrustStyle(e){return c5(e)}bypassSecurityTrustScript(e){return d5(e)}bypassSecurityTrustUrl(e){return u5(e)}bypassSecurityTrustResourceUrl(e){return h5(e)}static ɵfac=function(i){return new(i||r)};static ɵprov=An({token:r,factory:r.ɵfac})}return r})();var ti=`primary`;var Lv=Symbol(`RouteTitle`);var j3=class{params;constructor(t){this.params=t||{}}has(t){return Object.prototype.hasOwnProperty.call(this.params,t)}get(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e[0]:e}return null}getAll(t){if(this.has(t)){let e=this.params[t];return Array.isArray(e)?e:[e]}return[]}get keys(){return Object.keys(this.params)}};function df(r){return new j3(r)}function V3(r,t,e){for(let i=0;ir.length||e.pathMatch===`full`&&(t.hasChildren()||i.lengthr.length||e.pathMatch===`full`&&t.hasChildren()&&e.path!==`**`)return null;let a={};return!V3(s,r.slice(0,s.length),a)||!V3(o,r.slice(r.length-o.length),a)?null:{consumed:r,posParams:a}}function C2(r){return new Promise((t,e)=>{r.pipe(Tn()).subscribe({next:i=>t(i),error:i=>e(i)})})}function Oae(r,t){if(r.length!==t.length)return!1;for(let e=0;ei[s]===n)}else return r===t}function Fae(r){return r.length>0?r[r.length-1]:null}function gf(r){return Cw(r)?r:Hh(r)?Qn(Promise.resolve(r)):fi(r)}function Fz(r){return Cw(r)?C2(r):Promise.resolve(r)}var Lae={exact:Vz,subset:$z};var Lz={exact:Vae,subset:$ae,ignored:()=>!0};var nR={paths:`exact`,fragment:`ignored`,matrixParams:`ignored`,queryParams:`exact`};var z0={paths:`subset`,fragment:`ignored`,matrixParams:`ignored`,queryParams:`subset`};function rR(r$5,t,e){let i=r$5 instanceof Vo?r$5:t.parseUrl(r$5);return mo(()=>q3(t.lastSuccessfulNavigation()?.finalUrl??new Vo,i,r(r({},z0),e)))}function q3(r,t,e){return Lae[e.paths](r.root,t.root,e.matrixParams)&&Lz[e.queryParams](r.queryParams,t.queryParams)&&!(e.fragment===`exact`&&r.fragment!==t.fragment)}function Vae(r,t){return od(r,t)}function Vz(r,t,e){if(!cf(r.segments,t.segments)||!b2(r.segments,t.segments,e)||r.numberOfChildren!==t.numberOfChildren)return!1;for(let i in t.children)if(!r.children[i]||!Vz(r.children[i],t.children[i],e))return!1;return!0}function $ae(r,t){return Object.keys(t).length<=Object.keys(r).length&&Object.keys(t).every(e=>Oz(r[e],t[e]))}function $z(r,t,e){return zz(r,t,t.segments,e)}function zz(r,t,e,i){if(r.segments.length>e.length){let n=r.segments.slice(0,e.length);return!(!cf(n,e)||t.hasChildren()||!b2(n,e,i))}else if(r.segments.length===e.length){if(!cf(r.segments,e)||!b2(r.segments,e,i))return!1;for(let n in t.children)if(!r.children[n]||!$z(r.children[n],t.children[n],i))return!1;return!0}else{let n=e.slice(0,r.segments.length),s=e.slice(r.segments.length);return!cf(r.segments,n)||!b2(r.segments,n,i)||!r.children[ti]?!1:zz(r.children[ti],t,s,i)}}function b2(r,t,e){return t.every((i,n)=>Lz[e](r[n].parameters,i.parameters))}var Vo=class{root;queryParams;fragment;_queryParamMap;constructor(t=new rn([],{}),e={},i=null){this.root=t,this.queryParams=e,this.fragment=i}get queryParamMap(){return this._queryParamMap??=df(this.queryParams),this._queryParamMap}toString(){return jae.serialize(this)}};var rn=class{segments;children;parent=null;constructor(t,e){this.segments=t,this.children=e,Object.values(e).forEach(i=>i.parent=this)}hasChildren(){return this.numberOfChildren>0}get numberOfChildren(){return Object.keys(this.children).length}toString(){return S2(this)}};var Wh=class{path;parameters;_parameterMap;constructor(t,e){this.path=t,this.parameters=e}get parameterMap(){return this._parameterMap??=df(this.parameters),this._parameterMap}toString(){return jz(this)}};function zae(r,t){return cf(r,t)&&r.every((e,i)=>od(e.parameters,t[i].parameters))}function cf(r,t){return r.length!==t.length?!1:r.every((e,i)=>e.path===t[i].path)}function Bae(r,t){let e=[];return Object.entries(r.children).forEach(([i,n])=>{i===ti&&(e=e.concat(t(n,i)))}),Object.entries(r.children).forEach(([i,n])=>{i!==ti&&(e=e.concat(t(n,i)))}),e}var U0=(()=>{class r{static ɵfac=function(i){return new(i||r)};static ɵprov=An({token:r,factory:()=>new Kh})}return r})();var Kh=class{parse(t){let e=new U3(t);return new Vo(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())}serialize(t){let e=`/${Cv(t.root,!0)}`;if(e.startsWith(`//`))throw new be(4019,!1);return`${e}${Gae(t.queryParams)}${typeof t.fragment==`string`?`#${Hae(t.fragment)}`:``}`}};var jae=new Kh;function S2(r){return r.segments.map(t=>jz(t)).join(`/`)}function Cv(r,t){if(!r.hasChildren())return S2(r);if(t){let e=r.children[ti]?Cv(r.children[ti],!1):``,i=[];return Object.entries(r.children).forEach(([n,s])=>{n!==ti&&i.push(`${n}:${Cv(s,!1)}`)}),i.length>0?`${e}(${i.join(`//`)})`:e}else{let e=Bae(r,(i,n)=>n===ti?[Cv(r.children[ti],!1)]:[`${n}:${Cv(i,!1)}`]);return Object.keys(r.children).length===1&&r.children[ti]!=null?`${S2(r)}/${e[0]}`:`${S2(r)}/(${e.join(`//`)})`}}function Bz(r){return encodeURIComponent(r).replace(/%40/g,`@`).replace(/%3A/gi,`:`).replace(/%24/g,`$`).replace(/%2C/gi,`,`)}function _2(r){return Bz(r).replace(/%3B/gi,`;`)}function Hae(r){return encodeURI(r)}function G3(r){return Bz(r).replace(/\(/g,`%28`).replace(/\)/g,`%29`).replace(/%26/gi,`&`)}function w2(r){return decodeURIComponent(r)}function Dz(r){return w2(r.replace(/\+/g,`%20`))}function jz(r){return`${G3(r.path)}${qae(r.parameters)}`}function qae(r){return Object.entries(r).map(([t,e])=>`;${G3(t)}=${G3(e)}`).join(``)}function Gae(r){let t=Object.entries(r).map(([e,i])=>Array.isArray(i)?i.map(n=>`${_2(e)}=${_2(n)}`).join(`&`):`${_2(e)}=${_2(i)}`).filter(e=>e);return t.length?`?${t.join(`&`)}`:``}var Uae=/^[^\/()?;#]+/;function $3(r){let t=r.match(Uae);return t?t[0]:``}var Wae=/^[^\/()?;=#]+/;function Kae(r){let t=r.match(Wae);return t?t[0]:``}var Yae=/^[^=?&#]+/;function Qae(r){let t=r.match(Yae);return t?t[0]:``}var Xae=/^[^&#]+/;function Zae(r){let t=r.match(Xae);return t?t[0]:``}var U3=class{url;remaining;constructor(t){this.url=t,this.remaining=t}parseRootSegment(){for(;this.consumeOptional(`/`););return this.remaining===``||this.peekStartsWith(`?`)||this.peekStartsWith(`#`)?new rn([],{}):new rn([],this.parseChildren())}parseQueryParams(){let t={};if(this.consumeOptional(`?`))do this.parseQueryParam(t);while(this.consumeOptional(`&`));return t}parseFragment(){return this.consumeOptional(`#`)?decodeURIComponent(this.remaining):null}parseChildren(t=0){if(t>50)throw new be(4010,!1);if(this.remaining===``)return{};this.consumeOptional(`/`);let e=[];for(this.peekStartsWith(`(`)||e.push(this.parseSegment());this.peekStartsWith(`/`)&&!this.peekStartsWith(`//`)&&!this.peekStartsWith(`/(`);)this.capture(`/`),e.push(this.parseSegment());let i={};this.peekStartsWith(`/(`)&&(this.capture(`/`),i=this.parseParens(!0,t));let n={};return this.peekStartsWith(`(`)&&(n=this.parseParens(!1,t)),(e.length>0||Object.keys(i).length>0)&&(n[ti]=new rn(e,i)),n}parseSegment(){let t=$3(this.remaining);if(t===``&&this.peekStartsWith(`;`))throw new be(4009,!1);return this.capture(t),new Wh(w2(t),this.parseMatrixParams())}parseMatrixParams(){let t={};for(;this.consumeOptional(`;`);)this.parseParam(t);return t}parseParam(t){let e=Kae(this.remaining);if(!e)return;this.capture(e);let i=``;if(this.consumeOptional(`=`)){let n=$3(this.remaining);n&&(i=n,this.capture(i))}t[w2(e)]=w2(i)}parseQueryParam(t){let e=Qae(this.remaining);if(!e)return;this.capture(e);let i=``;if(this.consumeOptional(`=`)){let o=Zae(this.remaining);o&&(i=o,this.capture(i))}let n=Dz(e),s=Dz(i);if(Object.hasOwn(t,n)){let o=t[n];Array.isArray(o)||(o=[o],t[n]=o),o.push(s)}else t[n]=s}parseParens(t,e){let i=Object.create(null);for(this.capture(`(`);!this.consumeOptional(`)`)&&this.remaining.length>0;){let n=$3(this.remaining),s=this.remaining[n.length];if(s!==`/`&&s!==`)`&&s!==`;`)throw new be(4010,!1);let o;n.indexOf(`:`)>-1?(o=n.slice(0,n.indexOf(`:`)),this.capture(o),this.capture(`:`)):t&&(o=ti);let a=this.parseChildren(e+1);i[o??ti]=Object.keys(a).length===1&&a[ti]?a[ti]:new rn([],a),this.consumeOptional(`//`)}return i}peekStartsWith(t){return this.remaining.startsWith(t)}consumeOptional(t){return this.peekStartsWith(t)?(this.remaining=this.remaining.substring(t.length),!0):!1}capture(t){if(!this.consumeOptional(t))throw new be(4011,!1)}};function Hz(r){return r.segments.length>0?new rn([],{[ti]:r}):r}function qz(r){let t=Object.create(null);for(let[i,n]of Object.entries(r.children)){let s=qz(n);if(i===ti&&s.segments.length===0&&s.hasChildren())for(let[o,a]of Object.entries(s.children))t[o]=a;else(s.segments.length>0||s.hasChildren())&&(t[i]=s)}return Jae(new rn(r.segments,t))}function Jae(r){if(r.numberOfChildren===1&&r.children[ti]){let t=r.children[ti];return new rn(r.segments.concat(t.segments),t.children)}return r}function Yh(r){return r instanceof Vo}function Gz(r,t,e=null,i=null,n=new Kh){return Wz(Uz(r),t,e,i,n)}function Uz(r){let t;function e(s){let o={};for(let l of s.children){let c=e(l);o[l.outlet]=c}let a=new rn(s.url,o);return s===r&&(t=a),a}let n=Hz(e(r.root));return t??n}function Wz(r,t,e,i,n){let s=r;for(;s.parent;)s=s.parent;if(t.length===0)return z3(s,s,s,e,i,n);let o=ele(t);if(o.toRoot())return z3(s,s,new rn([],{}),e,i,n);let a=tle(o,s,r),l=a.processChildren?Nv(a.segmentGroup,a.index,o.commands):Yz(a.segmentGroup,a.index,o.commands);return z3(s,a.segmentGroup,l,e,i,n)}function I2(r){return typeof r==`object`&&r!=null&&!r.outlets&&!r.segmentPath}function Ev(r){return typeof r==`object`&&r!=null&&r.outlets}function kz(r,t,e){r||=`ɵ`;let i=new Vo;return i.queryParams={[r]:t},e.parse(e.serialize(i)).queryParams[r]}function z3(r,t,e,i,n,s){let o={};for(let[c,d]of Object.entries(i??{}))o[c]=Array.isArray(d)?d.map(u=>kz(c,u,s)):kz(c,d,s);let a;r===t?a=e:a=Kz(r,t,e);return new Vo(Hz(qz(a)),o,n)}function Kz(r,t,e){let i=Object.create(null);return Object.entries(r.children).forEach(([n,s])=>{s===t?i[n]=e:i[n]=Kz(s,t,e)}),new rn(r.segments,i)}var N2=class{isAbsolute;numberOfDoubleDots;commands;constructor(t,e,i){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=i,t&&i.length>0&&I2(i[0]))throw new be(4003,!1);let n=i.find(Ev);if(n&&n!==Fae(i))throw new be(4004,!1)}toRoot(){return this.isAbsolute&&this.commands.length===1&&this.commands[0]==`/`}};function ele(r){if(typeof r[0]==`string`&&r.length===1&&r[0]===`/`)return new N2(!0,0,r);let t=0,e=!1,i=r.reduce((n,s,o)=>{if(typeof s==`object`&&s!=null){if(s.outlets){let a={};return Object.entries(s.outlets).forEach(([l,c])=>{a[l]=typeof c==`string`?c.split(`/`):c}),[...n,{outlets:a}]}if(s.segmentPath)return[...n,s.segmentPath]}return typeof s!=`string`?[...n,s]:o===0?(s.split(`/`).forEach((a,l)=>{l==0&&a===`.`||(l==0&&a===``?e=!0:a===`..`?t++:a!=``&&n.push(a))}),n):[...n,s]},[]);return new N2(e,t,i)}var V0=class{segmentGroup;processChildren;index;constructor(t,e,i){this.segmentGroup=t,this.processChildren=e,this.index=i}};function tle(r,t,e){if(r.isAbsolute)return new V0(t,!0,0);if(!e)return new V0(t,!1,NaN);if(e.parent===null)return new V0(e,!0,0);let i=I2(r.commands[0])?0:1;return ile(e,e.segments.length-1+i,r.numberOfDoubleDots)}function ile(r,t,e){let i=r,n=t,s=e;for(;s>n;){if(s-=n,i=i.parent,!i)throw new be(4005,!1);n=i.segments.length}return new V0(i,!1,n-s)}function nle(r){return Ev(r[0])?r[0].outlets:{[ti]:r}}function Yz(r,t,e){if(r??=new rn([],{}),r.segments.length===0&&r.hasChildren())return Nv(r,t,e);let i=rle(r,t,e),n=e.slice(i.commandIndex);if(i.match&&i.pathIndexs!==ti)&&r.children[ti]&&r.numberOfChildren===1&&r.children[ti].segments.length===0){let s=Nv(r.children[ti],t,e);return new rn(r.segments,s.children)}return Object.entries(i).forEach(([s,o])=>{typeof o==`string`&&(o=[o]),o!==null&&(n[s]=Yz(r.children[s],t,o))}),Object.entries(r.children).forEach(([s,o])=>{i[s]===void 0&&(n[s]=o)}),new rn(r.segments,n)}}function rle(r,t,e){let i=0,n=t,s={match:!1,pathIndex:0,commandIndex:0};for(;n=e.length)return s;let o=r.segments[n],a=e[i];if(Ev(a))break;let l=`${a}`,c=i0&&l===void 0)break;if(l&&c&&typeof c==`object`&&c.outlets===void 0){if(!Tz(l,c,o))return s;i+=2}else{if(!Tz(l,{},o))return s;i++}n++}return{match:!0,pathIndex:n,commandIndex:i}}function W3(r,t,e){let i=r.segments.slice(0,t),n=0;for(;n{typeof i==`string`&&(i=[i]),i!==null&&(t[e]=W3(new rn([],{}),0,i))}),t}function Ez(r){let t={};return Object.entries(r).forEach(([e,i])=>t[e]=`${i}`),t}function Tz(r,t,e){return r==e.path&&od(t,e.parameters)}var Dv=`imperative`;var ws=(function(r){return r[r.NavigationStart=0]=`NavigationStart`,r[r.NavigationEnd=1]=`NavigationEnd`,r[r.NavigationCancel=2]=`NavigationCancel`,r[r.NavigationError=3]=`NavigationError`,r[r.RoutesRecognized=4]=`RoutesRecognized`,r[r.ResolveStart=5]=`ResolveStart`,r[r.ResolveEnd=6]=`ResolveEnd`,r[r.GuardsCheckStart=7]=`GuardsCheckStart`,r[r.GuardsCheckEnd=8]=`GuardsCheckEnd`,r[r.RouteConfigLoadStart=9]=`RouteConfigLoadStart`,r[r.RouteConfigLoadEnd=10]=`RouteConfigLoadEnd`,r[r.ChildActivationStart=11]=`ChildActivationStart`,r[r.ChildActivationEnd=12]=`ChildActivationEnd`,r[r.ActivationStart=13]=`ActivationStart`,r[r.ActivationEnd=14]=`ActivationEnd`,r[r.Scroll=15]=`Scroll`,r[r.NavigationSkipped=16]=`NavigationSkipped`,r})(ws||{});var Ma=class{id;url;constructor(t,e){this.id=t,this.url=e}};var uf=class extends Ma{type=ws.NavigationStart;navigationTrigger;restoredState;constructor(t,e,i=`imperative`,n=null){super(t,e),this.navigationTrigger=i,this.restoredState=n}toString(){return`NavigationStart(id: ${this.id}, url: '${this.url}')`}};var Aa=class extends Ma{urlAfterRedirects;type=ws.NavigationEnd;constructor(t,e,i){super(t,e),this.urlAfterRedirects=i}toString(){return`NavigationEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}')`}};var yo=(function(r){return r[r.Redirect=0]=`Redirect`,r[r.SupersededByNewNavigation=1]=`SupersededByNewNavigation`,r[r.NoDataFromResolver=2]=`NoDataFromResolver`,r[r.GuardRejected=3]=`GuardRejected`,r[r.Aborted=4]=`Aborted`,r})(yo||{});var Tv=(function(r){return r[r.IgnoredSameUrlNavigation=0]=`IgnoredSameUrlNavigation`,r[r.IgnoredByUrlHandlingStrategy=1]=`IgnoredByUrlHandlingStrategy`,r})(Tv||{});var fl=class extends Ma{reason;code;type=ws.NavigationCancel;constructor(t,e,i,n){super(t,e),this.reason=i,this.code=n}toString(){return`NavigationCancel(id: ${this.id}, url: '${this.url}')`}};function Qz(r){return r instanceof fl&&(r.code===yo.Redirect||r.code===yo.SupersededByNewNavigation)}var xu=class extends Ma{reason;code;type=ws.NavigationSkipped;constructor(t,e,i,n){super(t,e),this.reason=i,this.code=n}};var hf=class extends Ma{error;target;type=ws.NavigationError;constructor(t,e,i,n){super(t,e),this.error=i,this.target=n}toString(){return`NavigationError(id: ${this.id}, url: '${this.url}', error: ${this.error})`}};var Mv=class extends Ma{urlAfterRedirects;state;type=ws.RoutesRecognized;constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`RoutesRecognized(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var D2=class extends Ma{urlAfterRedirects;state;type=ws.GuardsCheckStart;constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`GuardsCheckStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var k2=class extends Ma{urlAfterRedirects;state;shouldActivate;type=ws.GuardsCheckEnd;constructor(t,e,i,n,s){super(t,e),this.urlAfterRedirects=i,this.state=n,this.shouldActivate=s}toString(){return`GuardsCheckEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state}, shouldActivate: ${this.shouldActivate})`}};var E2=class extends Ma{urlAfterRedirects;state;type=ws.ResolveStart;constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveStart(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var T2=class extends Ma{urlAfterRedirects;state;type=ws.ResolveEnd;constructor(t,e,i,n){super(t,e),this.urlAfterRedirects=i,this.state=n}toString(){return`ResolveEnd(id: ${this.id}, url: '${this.url}', urlAfterRedirects: '${this.urlAfterRedirects}', state: ${this.state})`}};var M2=class{route;type=ws.RouteConfigLoadStart;constructor(t){this.route=t}toString(){return`RouteConfigLoadStart(path: ${this.route.path})`}};var A2=class{route;type=ws.RouteConfigLoadEnd;constructor(t){this.route=t}toString(){return`RouteConfigLoadEnd(path: ${this.route.path})`}};var R2=class{snapshot;type=ws.ChildActivationStart;constructor(t){this.snapshot=t}toString(){return`ChildActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var P2=class{snapshot;type=ws.ChildActivationEnd;constructor(t){this.snapshot=t}toString(){return`ChildActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var O2=class{snapshot;type=ws.ActivationStart;constructor(t){this.snapshot=t}toString(){return`ActivationStart(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var F2=class{snapshot;type=ws.ActivationEnd;constructor(t){this.snapshot=t}toString(){return`ActivationEnd(path: '${this.snapshot.routeConfig&&this.snapshot.routeConfig.path||``}')`}};var B0=class{};var Av=class{};var j0=class{url;navigationBehaviorOptions;constructor(t,e){this.url=t,this.navigationBehaviorOptions=e}};function ole(r){return!(r instanceof B0)&&!(r instanceof j0)&&!(r instanceof Av)}var L2=class{rootInjector;outlet=null;route=null;children;attachRef=null;get injector(){return this.route?.snapshot._environmentInjector??this.rootInjector}constructor(t){this.rootInjector=t,this.children=new W0(this.rootInjector)}};var W0=(()=>{class r{rootInjector;contexts=new Map;constructor(e){this.rootInjector=e}onChildOutletCreated(e,i){let n=this.getOrCreateContext(e);n.outlet=i,this.contexts.set(e,n)}onChildOutletDestroyed(e){let i=this.getContext(e);i&&(i.outlet=null,i.attachRef=null)}onOutletDeactivated(){let e=this.contexts;return this.contexts=new Map,e}onOutletReAttached(e){this.contexts=e}getOrCreateContext(e){let i=this.getContext(e);return i||(i=new L2(this.rootInjector),this.contexts.set(e,i)),i}getContext(e){return this.contexts.get(e)||null}static ɵfac=function(i){return new(i||r)(yt(Sn))};static ɵprov=ze({token:r,factory:r.ɵfac,providedIn:`root`})}return r})();var V2=class{_root;constructor(t){this._root=t}get root(){return this._root.value}parent(t){let e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}children(t){let e=K3(t,this._root);return e?e.children.map(i=>i.value):[]}firstChild(t){let e=K3(t,this._root);return e&&e.children.length>0?e.children[0].value:null}siblings(t){let e=Y3(t,this._root);return e.length<2?[]:e[e.length-2].children.map(n=>n.value).filter(n=>n!==t)}pathFromRoot(t){return Y3(t,this._root).map(e=>e.value)}};function K3(r,t){if(r===t.value)return t;for(let e of t.children){let i=K3(r,e);if(i)return i}return null}function Y3(r,t){if(r===t.value)return[t];for(let e of t.children){let i=Y3(r,e);if(i.length)return i.unshift(t),i}return[]}var Ta=class{value;children;constructor(t,e){this.value=t,this.children=e}toString(){return`TreeNode(${this.value})`}};function L0(r){let t={};return r&&r.children.forEach(e=>t[e.value.outlet]=e),t}var Rv=class extends V2{snapshot;constructor(t,e){super(t),this.snapshot=e,oR(this,t)}toString(){return this.snapshot.toString()}};function Xz(r,t){let e=ale(r,t),i=new Ir([new Wh(``,{})]),n=new Ir({}),s=new Ir({}),l=new yu(i,n,new Ir({}),new Ir(``),s,ti,r,e.root);return l.snapshot=e.root,new Rv(new Ta(l,[]),e)}function ale(r,t){return new Pv(``,new Ta(new H0([],{},{},``,{},ti,r,null,{},t),[]))}var yu=class{urlSubject;paramsSubject;queryParamsSubject;fragmentSubject;dataSubject;outlet;component;snapshot;_futureSnapshot;_routerState;_paramMap;_queryParamMap;title;url;params;queryParams;fragment;data;_localInjector;constructor(t,e,i,n,s,o,a,l){this.urlSubject=t,this.paramsSubject=e,this.queryParamsSubject=i,this.fragmentSubject=n,this.dataSubject=s,this.outlet=o,this.component=a,this._futureSnapshot=l,this.title=this.dataSubject?.pipe($i(c=>c[Lv]))??fi(void 0),this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s}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($i(t=>df(t))),this._paramMap}get queryParamMap(){return this._queryParamMap??=this.queryParams.pipe($i(t=>df(t))),this._queryParamMap}toString(){return this.snapshot?this.snapshot.toString():`Future(${this._futureSnapshot})`}};var lle=`always`;function sR(r$6,t,e){let i,{routeConfig:n}=r$6;return t!==null&&(e===`always`||n?.path===``||!t.component&&!t.routeConfig?.loadComponent)?i={params:r(r({},t.params),r$6.params),data:r(r({},t.data),r$6.data),resolve:r(r(r(r({},r$6.data),t.data),n?.data),r$6._resolvedData)}:i={params:r({},r$6.params),data:r({},r$6.data),resolve:r(r({},r$6.data),r$6._resolvedData??{})},n&&Jz(n)&&(i.resolve[Lv]=n.title),i}var H0=class{url;params;queryParams;fragment;data;outlet;component;routeConfig;_resolve;_resolvedData;_routerState;_paramMap;_queryParamMap;_environmentInjector;get title(){return this.data?.[Lv]}constructor(t,e,i,n,s,o,a,l,c,d){this.url=t,this.params=e,this.queryParams=i,this.fragment=n,this.data=s,this.outlet=o,this.component=a,this.routeConfig=l,this._resolve=c,this._environmentInjector=d}get root(){return this._routerState.root}get parent(){return this._routerState.parent(this)}get firstChild(){return this._routerState.firstChild(this)}get children(){return this._routerState.children(this)}get pathFromRoot(){return this._routerState.pathFromRoot(this)}get paramMap(){return this._paramMap??=df(this.params),this._paramMap}get queryParamMap(){return this._queryParamMap??=df(this.queryParams),this._queryParamMap}toString(){return`Route(url:'${this.url.map(i=>i.toString()).join(`/`)}', path:'${this.routeConfig?this.routeConfig.path:``}')`}};var Pv=class extends V2{url;constructor(t,e){super(e),this.url=t,oR(this,e)}toString(){return Zz(this._root)}};function oR(r,t){t.value._routerState=r,t.children.forEach(e=>oR(r,e))}function Zz(r){let t=r.children.length>0?` { ${r.children.map(Zz).join(`, `)} } `:``;return`${r.value}${t}`}function B3(r){if(r.snapshot){let t=r.snapshot,e=r._futureSnapshot;r.snapshot=e,od(t.queryParams,e.queryParams)||r.queryParamsSubject.next(e.queryParams),t.fragment!==e.fragment&&r.fragmentSubject.next(e.fragment),od(t.params,e.params)||r.paramsSubject.next(e.params),Oae(t.url,e.url)||r.urlSubject.next(e.url),od(t.data,e.data)||r.dataSubject.next(e.data)}else r.snapshot=r._futureSnapshot,r.dataSubject.next(r._futureSnapshot.data)}function Q3(r,t){let e=od(r.params,t.params)&&zae(r.url,t.url),i=!r.parent!=!t.parent;return e&&!i&&(!r.parent||Q3(r.parent,t.parent))}function Jz(r){return typeof r.title==`string`||r.title===null}var e9=new Oe(``);var Vv=(()=>{class r{activated=null;get activatedComponentRef(){return this.activated}_activatedRoute=null;name=ti;activateEvents=new A;deactivateEvents=new A;attachEvents=new A;detachEvents=new A;routerOutletData=Uh();parentContexts=C(W0);location=C(Ti);changeDetector=C(at);inputBinder=C(j2,{optional:!0});supportsBindingToComponentInputs=!0;ngOnChanges(e){if(e.name){let{firstChange:i,previousValue:n}=e.name;if(i)return;this.isTrackedInParentContexts(n)&&(this.deactivate(),this.parentContexts.onChildOutletDestroyed(n)),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,i){this.activated=e,this._activatedRoute=i,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,i){if(this.isActivated)throw new be(4013,!1);this._activatedRoute=e;let n=this.location,o=e.snapshot.component,a=this.parentContexts.getOrCreateContext(this.name).children,l=new X3(e,a,n.injector,this.routerOutletData);this.activated=n.createComponent(o,{index:n.length,injector:l,environmentInjector:i}),this.changeDetector.markForCheck(),this.inputBinder?.bindActivatedRouteToOutletComponent(this),this.activateEvents.emit(this.activated.instance)}static ɵfac=function(i){return new(i||r)};static ɵdir=ee({type:r,selectors:[[`router-outlet`]],inputs:{name:`name`,routerOutletData:[1,`routerOutletData`]},outputs:{activateEvents:`activate`,deactivateEvents:`deactivate`,attachEvents:`attach`,detachEvents:`detach`},exportAs:[`outlet`],features:[wn]})}return r})();var X3=class{route;childContexts;parent;outletData;constructor(t,e,i,n){this.route=t,this.childContexts=e,this.parent=i,this.outletData=n}get(t,e){return t===yu?this.route:t===W0?this.childContexts:t===e9?this.outletData:this.parent.get(t,e)}};var j2=new Oe(``);var aR=(()=>{class r{static ɵfac=function(i){return new(i||r)};static ɵcmp=re({type:r,selectors:[[`ng-component`]],exportAs:[`emptyRouterOutlet`],decls:1,vars:0,template:function(i,n){i&1&&U(0,`router-outlet`)},dependencies:[Vv],encapsulation:2,changeDetection:1})}return r})();function lR(r$7){let t=r$7.children&&r$7.children.map(lR),e=t?s(r({},r$7),{children:t}):r({},r$7);return!e.component&&!e.loadComponent&&(t||e.loadChildren)&&e.outlet&&e.outlet!==ti&&(e.component=aR),e}function cle(r,t,e){let i=new Set;return{newlyCreatedRoutes:i,state:new Rv(Ov(r,t._root,e?e._root:void 0,i),t)}}function Ov(r,t,e,i){if(e&&r.shouldReuseRoute(t.value,e.value.snapshot)){let n=e.value;n._futureSnapshot=t.value;return new Ta(n,dle(r,t,e,i))}else{if(r.shouldAttach(t.value)){let o=r.retrieve(t.value);if(o!==null){let a=o.route;return a.value._futureSnapshot=t.value,a.children=t.children.map(l=>Ov(r,l,void 0,i)),a}}let n=ule(t.value);i.add(n);return new Ta(n,t.children.map(o=>Ov(r,o,void 0,i)))}}function dle(r,t,e,i){return t.children.map(n=>{for(let s of e.children)if(r.shouldReuseRoute(n.value,s.value.snapshot))return Ov(r,n,s,i);return Ov(r,n,void 0,i)})}function ule(r){return new yu(new Ir(r.url),new Ir(r.params),new Ir(r.queryParams),new Ir(r.fragment),new Ir(r.data),r.outlet,r.component,r)}var q0=class{redirectTo;navigationBehaviorOptions;constructor(t,e){this.redirectTo=t,this.navigationBehaviorOptions=e}};var t9=`ngNavigationCancelingError`;function $2(r,t){let{redirectTo:e,navigationBehaviorOptions:i}=Yh(t)?{redirectTo:t,navigationBehaviorOptions:void 0}:t,n=i9(!1,yo.Redirect);return n.url=e,n.navigationBehaviorOptions=i,n}function i9(r,t){let e=new Error(`NavigationCancelingError: ${r||``}`);return e[t9]=!0,e.cancellationCode=t,e}function hle(r){return n9(r)&&Yh(r.url)}function n9(r){return!!r&&r[t9]}var Z3=class{routeReuseStrategy;futureState;currState;forwardEvent;inputBindingEnabled;constructor(t,e,i,n,s){this.routeReuseStrategy=t,this.futureState=e,this.currState=i,this.forwardEvent=n,this.inputBindingEnabled=s}activate(t){let e=this.futureState._root,i=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,i,t),B3(this.futureState.root),this.activateChildRoutes(e,i,t)}deactivateChildRoutes(t,e,i){let n=L0(e);t.children.forEach(s=>{let o=s.value.outlet;this.deactivateRoutes(s,n[o],i),delete n[o]}),Object.values(n).forEach(s=>{this.deactivateRouteAndItsChildren(s,i)})}deactivateRoutes(t,e,i){let n=t.value,s=e?e.value:null;if(n===s)if(n.component){let o=i.getContext(n.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,i);else s&&this.deactivateRouteAndItsChildren(e,i)}deactivateRouteAndItsChildren(t,e){t.value.component&&this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)}detachAndStoreRouteSubtree(t,e){let i=e.getContext(t.value.outlet),n=i&&t.value.component?i.children:e,s=L0(t);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,n);if(i&&i.outlet){let o=i.outlet.detach(),a=i.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:o,route:t,contexts:a})}}deactivateRouteAndOutlet(t,e){let i=e.getContext(t.value.outlet),n=i&&t.value.component?i.children:e,s=L0(t);for(let o of Object.values(s))this.deactivateRouteAndItsChildren(o,n);i&&(i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated()),i.attachRef=null,i.route=null),t.value._localInjector?.destroy()}activateChildRoutes(t,e,i){let n=L0(e);t.children.forEach(s=>{this.activateRoutes(s,n[s.value.outlet],i),this.forwardEvent(new F2(s.value.snapshot))}),t.children.length&&this.forwardEvent(new P2(t.value.snapshot))}activateRoutes(t,e,i){let n=t.value,s=e?e.value:null;if(B3(n),n===s)if(n.component){let o=i.getOrCreateContext(n.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,i);else if(n.component){let o=i.getOrCreateContext(n.outlet);if(this.routeReuseStrategy.shouldAttach(n.snapshot)){let a=this.routeReuseStrategy.retrieve(n.snapshot);this.routeReuseStrategy.store(n.snapshot,null),o.children.onOutletReAttached(a.contexts),o.attachRef=a.componentRef,o.route=a.route.value,o.outlet&&o.outlet.attach(a.componentRef,a.route.value),B3(a.route.value),this.activateChildRoutes(t,null,o.children)}else o.attachRef=null,o.route=n,o.outlet&&o.outlet.activateWith(n,o.injector),this.activateChildRoutes(t,null,o.children)}else this.activateChildRoutes(t,null,i)}};var z2=class{path;route;constructor(t){this.path=t,this.route=this.path[this.path.length-1]}};var $0=class{component;route;constructor(t,e){this.component=t,this.route=e}};function gle(r,t,e){let i=r._root;return Iv(i,t?t._root:null,e,[i.value])}function ple(r){let t=r.routeConfig?r.routeConfig.canActivateChild:null;return!t||t.length===0?null:{node:r,guards:t}}function K0(r,t){let e=Symbol(),i=t.get(r,e);return i===e?typeof r==`function`&&!NM(r)?r:t.get(r):i}function Iv(r,t,e,i,n={canDeactivateChecks:[],canActivateChecks:[]}){let s=L0(t);return r.children.forEach(o=>{fle(o,s[o.value.outlet],e,i.concat([o.value]),n),delete s[o.value.outlet]}),Object.entries(s).forEach(([o,a])=>kv(a,e.getContext(o),n)),n}function fle(r,t,e,i,n={canDeactivateChecks:[],canActivateChecks:[]}){let s=r.value,o=t?t.value:null,a=e?e.getContext(r.value.outlet):null;if(o&&s.routeConfig===o.routeConfig){let l=mle(o,s,s.routeConfig.runGuardsAndResolvers);l?n.canActivateChecks.push(new z2(i)):(s.data=o.data,s._resolvedData=o._resolvedData),s.component?Iv(r,t,a?a.children:null,i,n):Iv(r,t,e,i,n),l&&a&&a.outlet&&a.outlet.isActivated&&n.canDeactivateChecks.push(new $0(a.outlet.component,o))}else o&&kv(t,a,n),n.canActivateChecks.push(new z2(i)),s.component?Iv(r,null,a?a.children:null,i,n):Iv(r,null,e,i,n);return n}function mle(r,t,e){if(typeof e==`function`)return vs(t._environmentInjector,()=>e(r,t));switch(e){case`pathParamsChange`:return!cf(r.url,t.url);case`pathParamsOrQueryParamsChange`:return!cf(r.url,t.url)||!od(r.queryParams,t.queryParams);case`always`:return!0;case`paramsOrQueryParamsChange`:return!Q3(r,t)||!od(r.queryParams,t.queryParams);default:return!Q3(r,t)}}function kv(r,t,e){let i=L0(r),n=r.value;Object.entries(i).forEach(([s,o])=>{n.component?t?kv(o,t.children.getContext(s),e):kv(o,null,e):kv(o,t,e)}),n.component?t&&t.outlet&&t.outlet.isActivated?e.canDeactivateChecks.push(new $0(t.outlet.component,n)):e.canDeactivateChecks.push(new $0(null,n)):e.canDeactivateChecks.push(new $0(null,n))}function $v(r){return typeof r==`function`}function xle(r){return typeof r==`boolean`}function yle(r){return r&&$v(r.canLoad)}function _le(r){return r&&$v(r.canActivate)}function vle(r){return r&&$v(r.canActivateChild)}function ble(r){return r&&$v(r.canDeactivate)}function Sle(r){return r&&$v(r.canMatch)}function r9(r){return r instanceof Dp||r?.name===`EmptyError`}var v2=Symbol(`INITIAL_VALUE`);function G0(){return ss(r=>rM(r.map(t=>t.pipe(na(1),uM(v2)))).pipe($i(t=>{for(let e of t)if(e!==!0){if(e===v2)return v2;if(e===!1||wle(e))return e}return!0}),Zt(t=>t!==v2),na(1)))}function wle(r){return Yh(r)||r instanceof q0}function s9(r){return r.aborted?fi(void 0).pipe(na(1)):new $t(t=>{let e=()=>{t.next(),t.complete()};return r.addEventListener(`abort`,e),()=>r.removeEventListener(`abort`,e)})}function o9(r){return oe(s9(r))}function Cle(r$8){return _s(t=>{let{targetSnapshot:e,currentSnapshot:i,guards:{canActivateChecks:n,canDeactivateChecks:s$1}}=t;return s$1.length===0&&n.length===0?fi(s(r({},t),{guardsResult:!0})):Ile(s$1,e,i).pipe(_s(o=>o&&xle(o)?Nle(e,n,r$8):fi(o)),$i(o=>s(r({},t),{guardsResult:o})))})}function Ile(r,t,e){return Qn(r).pipe(_s(i=>Mle(i.component,i.route,e,t)),Tn(i=>i!==!0,!0))}function Nle(r,t,e){return Qn(t).pipe(Ep(i=>t0(kle(i.route.parent,e),Dle(i.route,e),Tle(r,i.path),Ele(r,i.route))),Tn(i=>i!==!0,!0))}function Dle(r,t){return r!==null&&t&&t(new O2(r)),fi(!0)}function kle(r,t){return r!==null&&t&&t(new R2(r)),fi(!0)}function Ele(r,t){let e=t.routeConfig?t.routeConfig.canActivate:null;if(!e||e.length===0)return fi(!0);return fi(e.map(n=>u_(()=>{let s=t._environmentInjector,o=K0(n,s);return gf(_le(o)?o.canActivate(t,r):vs(s,()=>o(t,r))).pipe(Tn())}))).pipe(G0())}function Tle(r,t){let e=t[t.length-1];return fi(t.slice(0,t.length-1).reverse().map(s=>ple(s)).filter(s=>s!==null).map(s=>u_(()=>{return fi(s.guards.map(a=>{let l=s.node._environmentInjector,c=K0(a,l);return gf(vle(c)?c.canActivateChild(e,r):vs(l,()=>c(e,r))).pipe(Tn())})).pipe(G0())}))).pipe(G0())}function Mle(r,t,e,i){let n=t&&t.routeConfig?t.routeConfig.canDeactivate:null;if(!n||n.length===0)return fi(!0);return fi(n.map(o=>{let a=t._environmentInjector,l=K0(o,a);return gf(ble(l)?l.canDeactivate(r,t,e,i):vs(a,()=>l(r,t,e,i))).pipe(Tn())})).pipe(G0())}function Ale(r,t,e,i,n){let s=t.canLoad;if(s===void 0||s.length===0)return fi(!0);return fi(s.map(a=>{let l=K0(a,r),d=gf(yle(l)?l.canLoad(t,e):vs(r,()=>l(t,e)));return n?d.pipe(o9(n)):d})).pipe(G0(),a9(i))}function a9(r){return a_(Oo(t=>{if(typeof t!=`boolean`)throw $2(r,t)}),$i(t=>t===!0))}function Rle(r,t,e,i,n,s){let o=t.canMatch;if(!o||o.length===0)return fi(!0);return fi(o.map(l=>{let c=K0(l,r);return gf(Sle(c)?c.canMatch(t,e,n):vs(r,()=>c(t,e,n))).pipe(o9(s))})).pipe(G0(),a9(i))}var mu=class r extends Error{segmentGroup;constructor(t){super(),this.segmentGroup=t||null,Object.setPrototypeOf(this,r.prototype)}};var Fv=class r extends Error{urlTree;constructor(t){super(),this.urlTree=t,Object.setPrototypeOf(this,r.prototype)}};function Ple(r){throw new be(4e3,!1)}function Ole(r){throw i9(!1,yo.GuardRejected)}var J3=class{urlSerializer;urlTree;constructor(t,e){this.urlSerializer=t,this.urlTree=e}async lineralizeSegments(t,e){let i=[],n=e.root;for(;;){if(i=i.concat(n.segments),n.numberOfChildren===0)return i;if(n.numberOfChildren>1||!n.children[ti])throw Ple(`${t.redirectTo}`);n=n.children[ti]}}async applyRedirectCommands(t,e,i,n,s){let o=await Fle(e,n,s);if(o instanceof Vo)throw new Fv(o);let a=this.applyRedirectCreateUrlTree(o,this.urlSerializer.parse(o),t,i);if(o[0]===`/`)throw new Fv(a);return a}applyRedirectCreateUrlTree(t,e,i,n){return new Vo(this.createSegmentGroup(t,e.root,i,n),this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)}createQueryParams(t,e){let i={};return Object.entries(t).forEach(([n,s])=>{if(typeof s==`string`&&s[0]===`:`){let a=s.substring(1);i[n]=e[a]}else i[n]=s}),i}createSegmentGroup(t,e,i,n){let s=this.createSegments(t,e.segments,i,n),o=Object.create(null);return Object.entries(e.children).forEach(([a,l])=>{o[a]=this.createSegmentGroup(t,l,i,n)}),new rn(s,o)}createSegments(t,e,i,n){return e.map(s=>s.path[0]===`:`?this.findPosParam(t,s,n):this.findOrReturn(s,i))}findPosParam(t,e,i){let n=i[e.path.substring(1)];if(!n)throw new be(4001,!1);return n}findOrReturn(t,e){let i=0;for(let n of e){if(n.path===t.path)return e.splice(i),n;i++}return t}};function Fle(r,t,e){if(typeof r==`string`)return Promise.resolve(r);let i=r;return C2(gf(vs(e,()=>i(t))))}function Lle(r,t){return r.providers&&!r._injector&&(r._injector=tv(r.providers,t,`Route: ${r.path}`)),r._injector??t}function tc(r){return r.outlet||ti}function Vle(r,t){let e=r.filter(i=>tc(i)===t);return e.push(...r.filter(i=>tc(i)!==t)),e}var eR={matched:!1,consumedSegments:[],remainingSegments:[],parameters:{},positionalParamSegments:{}};function l9(r){return{routeConfig:r.routeConfig,url:r.url,params:r.params,queryParams:r.queryParams,fragment:r.fragment,data:r.data,outlet:r.outlet,title:r.title,paramMap:r.paramMap,queryParamMap:r.queryParamMap}}function $le(r$9,t,e,i,n,s,o){let a=c9(r$9,t,e);if(!a.matched)return fi(a);let l=l9(s(a));return i=Lle(t,i),Rle(i,t,e,n,l,o).pipe($i(c=>c===!0?a:r({},eR)))}function c9(r$10,t,e){if(t.path===``)return t.pathMatch===`full`&&(r$10.hasChildren()||e.length>0)?r({},eR):{matched:!0,consumedSegments:[],remainingSegments:e,parameters:{},positionalParamSegments:{}};let n=(t.matcher||Pz)(e,r$10,t);if(!n)return r({},eR);let s={};Object.entries(n.posParams??{}).forEach(([a,l])=>{s[a]=l.path});let o=n.consumed.length>0?r(r({},s),n.consumed[n.consumed.length-1].parameters):s;return{matched:!0,consumedSegments:n.consumed,remainingSegments:e.slice(n.consumed.length),parameters:o,positionalParamSegments:n.posParams??{}}}function Mz(r,t,e,i,n){return e.length>0&&jle(r,e,i,n)?{segmentGroup:new rn(t,Ble(i,new rn(e,r.children))),slicedSegments:[]}:e.length===0&&Hle(r,e,i)?{segmentGroup:new rn(r.segments,zle(r,e,i,r.children)),slicedSegments:e}:{segmentGroup:new rn(r.segments,r.children),slicedSegments:e}}function zle(r$11,t,e,i){let n={};for(let s of e)if(H2(r$11,t,s)&&!i[tc(s)]){let o=new rn([],{});n[tc(s)]=o}return r(r({},i),n)}function Ble(r,t){let e={};e[ti]=t;for(let i of r)if(i.path===``&&tc(i)!==ti){let n=new rn([],{});e[tc(i)]=n}return e}function jle(r,t,e,i){return e.some(n=>!H2(r,t,n)||!(tc(n)!==ti)?!1:!(i!==void 0&&tc(n)===i))}function Hle(r,t,e){return e.some(i=>H2(r,t,i))}function H2(r,t,e){return(r.hasChildren()||t.length>0)&&e.pathMatch===`full`?!1:e.path===``}function qle(r,t,e){return t.length===0&&!r.children[e]}var tR=class{};async function Gle(r,t,e,i,n,s,o,a){return new iR(r,t,e,i,n,o,s,a).recognize()}var Ule=31;var iR=class{injector;configLoader;rootComponentType;config;urlTree;paramsInheritanceStrategy;urlSerializer;abortSignal;applyRedirects;absoluteRedirectCount=0;allowRedirects=!0;constructor(t,e,i,n,s,o,a,l){this.injector=t,this.configLoader=e,this.rootComponentType=i,this.config=n,this.urlTree=s,this.paramsInheritanceStrategy=o,this.urlSerializer=a,this.abortSignal=l,this.applyRedirects=new J3(this.urlSerializer,this.urlTree)}noMatchError(t){return new be(4002,`'${t.segmentGroup}'`)}async recognize(){let t=Mz(this.urlTree.root,[],[],this.config).segmentGroup,{children:e,rootSnapshot:i}=await this.match(t),s=new Pv(``,new Ta(i,e)),o=Gz(i,[],this.urlTree.queryParams,this.urlTree.fragment);return o.queryParams=this.urlTree.queryParams,s.url=this.urlSerializer.serialize(o),{state:s,tree:o}}async match(t){let e=new H0([],Object.freeze({}),Object.freeze(r({},this.urlTree.queryParams)),this.urlTree.fragment,Object.freeze({}),ti,this.rootComponentType,null,{},this.injector);try{return{children:await this.processSegmentGroup(this.injector,this.config,t,ti,e),rootSnapshot:e}}catch(i){if(i instanceof Fv)return this.urlTree=i.urlTree,this.match(i.urlTree.root);throw i instanceof mu?this.noMatchError(i):i}}async processSegmentGroup(t,e,i,n,s){if(i.segments.length===0&&i.hasChildren())return this.processChildren(t,e,i,s);let o=await this.processSegment(t,e,i,i.segments,n,!0,s);return o instanceof Ta?[o]:[]}async processChildren(t,e,i,n){let s=[];for(let l of Object.keys(i.children))l===`primary`?s.unshift(l):s.push(l);let o=[];for(let l of s){let c=i.children[l],d=Vle(e,l),u=await this.processSegmentGroup(t,d,c,l,n);o.push(...u)}let a=d9(o);return Wle(a),a}async processSegment(t,e,i,n,s,o,a){for(let l of e)try{return await this.processSegmentAgainstRoute(l._injector??t,e,l,i,n,s,o,a)}catch(c){if(c instanceof mu||r9(c))continue;throw c}if(qle(i,n,s))return new tR;throw new mu(i)}async processSegmentAgainstRoute(t,e,i,n,s,o,a,l){if(tc(i)!==o&&(o===ti||!H2(n,s,i)))throw new mu(n);if(i.redirectTo===void 0)return this.matchSegmentAgainstRoute(t,n,i,s,o,l);if(this.allowRedirects&&a)return this.expandSegmentAgainstRouteUsingRedirect(t,n,e,i,s,o,l);throw new mu(n)}async expandSegmentAgainstRouteUsingRedirect(t,e,i,n,s,o,a){let{matched:l,parameters:c,consumedSegments:d,positionalParamSegments:u,remainingSegments:h}=c9(e,n,s);if(!l)throw new mu(e);typeof n.redirectTo==`string`&&n.redirectTo[0]===`/`&&(this.absoluteRedirectCount++,this.absoluteRedirectCount>Ule&&(this.allowRedirects=!1));let g=this.createSnapshot(t,n,s,c,a);if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let p=await this.applyRedirects.applyRedirectCommands(d,n.redirectTo,u,l9(g),t),y=await this.applyRedirects.lineralizeSegments(n,p);return this.processSegment(t,i,e,y.concat(h),o,!1,a)}createSnapshot(t,e,i,n,s){let o=new H0(i,n,Object.freeze(r({},this.urlTree.queryParams)),this.urlTree.fragment,Yle(e),tc(e),e.component??e._loadedComponent??null,e,Qle(e),t),a=sR(o,s,this.paramsInheritanceStrategy);return o.params=Object.freeze(a.params),o.data=Object.freeze(a.data),o}async matchSegmentAgainstRoute(t,e,i,n,s,o){if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);let a=k=>this.createSnapshot(t,i,k.consumedSegments,k.parameters,o),l=await C2($le(e,i,n,t,this.urlSerializer,a,this.abortSignal));if(i.path===`**`&&(e.children={}),!l?.matched)throw new mu(e);t=i._injector??t;let{routes:c}=await this.getChildConfig(t,i,n),d=i._loadedInjector??t,{parameters:u,consumedSegments:h,remainingSegments:g}=l,p=this.createSnapshot(t,i,h,u,o),{segmentGroup:y,slicedSegments:_}=Mz(e,h,g,c,s);if(_.length===0&&y.hasChildren())return new Ta(p,await this.processChildren(d,c,y,p));if(c.length===0&&_.length===0)return new Ta(p,[]);let w=tc(i)===s,E=await this.processSegment(d,c,y,_,w?ti:s,!0,p);return new Ta(p,E instanceof Ta?[E]:[])}async getChildConfig(t,e,i){if(e.children)return{routes:e.children,injector:t};if(e.loadChildren){if(e._loadedRoutes!==void 0){let s=e._loadedNgModuleFactory;return s&&!e._loadedInjector&&(e._loadedInjector=s.create(t).injector),{routes:e._loadedRoutes,injector:e._loadedInjector}}if(this.abortSignal.aborted)throw new Error(this.abortSignal.reason);if(await C2(Ale(t,e,i,this.urlSerializer,this.abortSignal))){let s=await this.configLoader.loadChildren(t,e);return e._loadedRoutes=s.routes,e._loadedInjector=s.injector,e._loadedNgModuleFactory=s.factory,s}throw Ole(e)}return{routes:[],injector:t}}};function Wle(r){r.sort((t,e)=>t.value.outlet===ti?-1:e.value.outlet===ti?1:t.value.outlet.localeCompare(e.value.outlet))}function Kle(r){let t=r.value.routeConfig;return t&&t.path===``}function d9(r){let t=[],e=new Set;for(let i of r){if(!Kle(i)){t.push(i);continue}let n=t.find(s=>i.value.routeConfig===s.value.routeConfig);n!==void 0?(n.children.push(...i.children),e.add(n)):t.push(i)}for(let i of e){let n=d9(i.children);t.push(new Ta(i.value,n))}return t.filter(i=>!e.has(i))}function Yle(r){return r.data||{}}function Qle(r){return r.resolve||{}}function Xle(r$12,t,e,i,n,s$2,o){return _s(async a=>{let{state:l,tree:c}=await Gle(r$12,t,e,i,a.extractedUrl,n,s$2,o);return s(r({},a),{targetSnapshot:l,urlAfterRedirects:c})})}function Zle(r){return _s(t=>{let{targetSnapshot:e,guards:{canActivateChecks:i}}=t;if(!i.length)return fi(t);let n=new Set(i.map(a=>a.route)),s=new Set;for(let a of n)if(!s.has(a))for(let l of u9(a))s.add(l);let o=0;return Qn(s).pipe(Ep(a=>n.has(a)?Jle(a,e,r):(a.data=sR(a,a.parent,r).resolve,fi(void 0))),Oo(()=>o++),Dw(1),_s(a=>o===s.size?fi(t):rs))})}function u9(r){return[r,...r.children.map(e=>u9(e)).flat()]}function Jle(r$13,t,e){let i=r$13.routeConfig,n=r$13._resolve;return i?.title!==void 0&&!Jz(i)&&(n[Lv]=i.title),u_(()=>(r$13.data=sR(r$13,r$13.parent,e).resolve,ece(n,r$13,t).pipe($i(s=>(r$13._resolvedData=s,r$13.data=r(r({},r$13.data),s),null)))))}function ece(r,t,e){let i=H3(r);if(i.length===0)return fi({});let n={};return Qn(i).pipe(_s(s=>tce(r[s],t,e).pipe(Tn(),Oo(o=>{if(o instanceof q0)throw $2(new Kh,o);n[s]=o}))),Dw(1),$i(()=>n),i0(s=>r9(s)?rs:nM(s)))}function tce(r,t,e){let i=t._environmentInjector,n=K0(r,i);return gf(n.resolve?n.resolve(t,e):vs(i,()=>n(t,e)))}function Az(r){return ss(t=>{let e=r(t);return e?Qn(e).pipe($i(()=>t)):fi(t)})}var cR=(()=>{class r{buildTitle(e){let i,n=e.root;for(;n!==void 0;)i=this.getResolvedTitleForRoute(n)??i,n=n.children.find(s=>s.outlet===ti);return i}getResolvedTitleForRoute(e){return e.data[Lv]}static ɵfac=function(i){return new(i||r)};static ɵprov=An({token:r,factory:()=>C(h9)})}return r})();var h9=(()=>{class r extends cR{title;constructor(e){super(),this.title=e}updateTitle(e){let i=this.buildTitle(e);i!==void 0&&this.title.setTitle(i)}static ɵfac=function(i){return new(i||r)(yt(Nz))};static ɵprov=ze({token:r,factory:r.ɵfac,providedIn:`root`})}return r})();var Y0=new Oe(``,{factory:()=>({})});var zv=new Oe(``);var g9=(()=>{class r{componentLoaders=new WeakMap;childrenLoaders=new WeakMap;onLoadStartListener;onLoadEndListener;compiler=C(G5);async loadComponent(e,i){if(this.componentLoaders.get(i))return this.componentLoaders.get(i);if(i._loadedComponent)return Promise.resolve(i._loadedComponent);this.onLoadStartListener&&this.onLoadStartListener(i);let n=(async()=>{try{let o=await f9(r3(await Fz(vs(e,()=>i.loadComponent()))));return this.onLoadEndListener&&this.onLoadEndListener(i),i._loadedComponent=o,o}finally{this.componentLoaders.delete(i)}})();return this.componentLoaders.set(i,n),n}loadChildren(e,i){if(this.childrenLoaders.get(i))return this.childrenLoaders.get(i);if(i._loadedRoutes)return Promise.resolve({routes:i._loadedRoutes,injector:i._loadedInjector});this.onLoadStartListener&&this.onLoadStartListener(i);let n=(async()=>{try{let s=await p9(i,this.compiler,e,this.onLoadEndListener);return i._loadedRoutes=s.routes,i._loadedInjector=s.injector,i._loadedNgModuleFactory=s.factory,s}finally{this.childrenLoaders.delete(i)}})();return this.childrenLoaders.set(i,n),n}static ɵfac=function(i){return new(i||r)};static ɵprov=An({token:r,factory:r.ɵfac})}return r})();async function p9(r,t,e,i){let s=await f9(r3(await Fz(vs(e,()=>r.loadChildren())))),o;s instanceof GC||Array.isArray(s)?o=s:o=await t.compileModuleAsync(s),i&&i(r);let a,l,d;return Array.isArray(o)?l=o:(a=o.create(e).injector,d=o,l=a.get(zv,[],{optional:!0,self:!0}).flat()),{routes:l.map(lR),injector:a,factory:d}}async function f9(r){return r}var q2=(()=>{class r{static ɵfac=function(i){return new(i||r)};static ɵprov=An({token:r,factory:()=>C(ice)})}return r})();var ice=(()=>{class r{shouldProcessUrl(e){return!0}extract(e){return e}merge(e,i){return e}static ɵfac=function(i){return new(i||r)};static ɵprov=An({token:r,factory:r.ɵfac})}return r})();var m9=new Oe(``);var x9=new Oe(``);var nce=()=>{};var y9=new Oe(``);var _9=(()=>{class r$14{currentNavigation=oi(null,{equal:()=>!1});currentTransition=null;lastSuccessfulNavigation=oi(null);events=new Te;transitionAbortWithErrorSubject=new Te;configLoader=C(g9);environmentInjector=C(Sn);destroyRef=C(Ei);urlSerializer=C(U0);rootContexts=C(W0);location=C(sf);inputBindingEnabled=C(j2,{optional:!0})!==null;titleStrategy=C(cR);options=C(Y0,{optional:!0})||{};paramsInheritanceStrategy=this.options.paramsInheritanceStrategy||lle;urlHandlingStrategy=C(q2);createViewTransition=C(m9,{optional:!0});navigationErrorHandler=C(y9,{optional:!0});activatedRouteInjectorFeature=C(x9,{optional:!0});navigationId=0;get hasRequestedNavigation(){return this.navigationId!==0}transitions;afterPreactivation=()=>fi(void 0);rootComponentType=null;destroyed=!1;constructor(){let e=n=>this.events.next(new M2(n)),i=n=>this.events.next(new A2(n));this.configLoader.onLoadEndListener=i,this.configLoader.onLoadStartListener=e,this.destroyRef.onDestroy(()=>{this.destroyed=!0})}complete(){this.transitions?.complete()}handleNavigationRequest(e){let i=++this.navigationId;Ci(()=>{this.transitions?.next(s(r({},e),{extractedUrl:this.urlHandlingStrategy.extract(e.rawUrl),targetSnapshot:null,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null,id:i,routesRecognizeHandler:{},beforeActivateHandler:{}}))})}setupNavigations(e){return this.transitions=new Ir(null),this.transitions.pipe(Zt(i=>i!==null),ss(i=>{let n=!0,s$3=!1,o=new AbortController,a=()=>!s$3&&this.currentTransition?.id===i.id;return fi(i).pipe(ss(l=>{if(this.navigationId>i.id)return this.cancelNavigationTransition(i,``,yo.SupersededByNewNavigation),rs;this.currentTransition=i;let c=this.lastSuccessfulNavigation();this.currentNavigation.set({id:l.id,initialUrl:l.rawUrl,extractedUrl:l.extractedUrl,targetBrowserUrl:typeof l.extras.browserUrl==`string`?this.urlSerializer.parse(l.extras.browserUrl):l.extras.browserUrl,trigger:l.source,extras:l.extras,previousNavigation:c?s(r({},c),{previousNavigation:null}):null,abort:()=>o.abort(),routesRecognizeHandler:l.routesRecognizeHandler,beforeActivateHandler:l.beforeActivateHandler});let d=!e.navigated||this.isUpdatingInternalState()||this.isUpdatedBrowserUrl(),u=l.extras.onSameUrlNavigation??e.onSameUrlNavigation;if(!d&&u!==`reload`)return this.events.next(new xu(l.id,this.urlSerializer.serialize(l.rawUrl),``,Tv.IgnoredSameUrlNavigation)),l.resolve(!1),rs;if(this.urlHandlingStrategy.shouldProcessUrl(l.rawUrl))return fi(l).pipe(ss(h=>(this.events.next(new uf(h.id,this.urlSerializer.serialize(h.extractedUrl),h.source,h.restoredState)),h.id!==this.navigationId?rs:Promise.resolve(h))),Xle(this.environmentInjector,this.configLoader,this.rootComponentType,e.config,this.urlSerializer,this.paramsInheritanceStrategy,o.signal),Oo(h=>{i.targetSnapshot=h.targetSnapshot,i.urlAfterRedirects=h.urlAfterRedirects,this.currentNavigation.update(g=>(g.finalUrl=h.urlAfterRedirects,g)),this.events.next(new Av)}),ss(h=>Qn(i.routesRecognizeHandler.deferredHandle??fi(void 0)).pipe($i(()=>h))),Oo(()=>{let h=new Mv(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(h)}));if(d&&this.urlHandlingStrategy.shouldProcessUrl(l.currentRawUrl)){let{id:h,extractedUrl:g,source:p,restoredState:y,extras:_}=l,w=new uf(h,this.urlSerializer.serialize(g),p,y);this.events.next(w);let E=Xz(this.rootComponentType,this.environmentInjector).snapshot;return this.currentTransition=i=s(r({},l),{targetSnapshot:E,urlAfterRedirects:g,extras:s(r({},_),{skipLocationChange:!1,replaceUrl:!1})}),this.currentNavigation.update(k=>(k.finalUrl=g,k)),fi(i)}else return this.events.next(new xu(l.id,this.urlSerializer.serialize(l.extractedUrl),``,Tv.IgnoredByUrlHandlingStrategy)),l.resolve(!1),rs}),$i(l=>{let c=new D2(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);return this.events.next(c),this.currentTransition=i=s(r({},l),{guards:gle(l.targetSnapshot,l.currentSnapshot,this.rootContexts)}),i}),Cle(l=>this.events.next(l)),ss(l=>{if(i.guardsResult=l.guardsResult,l.guardsResult&&typeof l.guardsResult!=`boolean`)throw $2(this.urlSerializer,l.guardsResult);let c=new k2(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot,!!l.guardsResult);if(this.events.next(c),!a())return rs;if(!l.guardsResult)return this.cancelNavigationTransition(l,``,yo.GuardRejected),rs;if(l.guards.canActivateChecks.length===0)return fi(l);let d=new E2(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);if(this.events.next(d),!a())return rs;let u=!1;return fi(l).pipe(Zle(this.paramsInheritanceStrategy),Oo({next:()=>{u=!0;let h=new T2(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects),l.targetSnapshot);this.events.next(h)},complete:()=>{u||this.cancelNavigationTransition(l,``,yo.NoDataFromResolver)}}))}),Az(l=>{let c=u=>{let h=[];if(u.routeConfig?._loadedComponent)u.component=u.routeConfig?._loadedComponent;else if(u.routeConfig?.loadComponent){let g=u._environmentInjector;h.push(this.configLoader.loadComponent(g,u.routeConfig).then(p=>{u.component=p}))}for(let g of u.children)h.push(...c(g));return h},d=c(l.targetSnapshot.root);return d.length===0?fi(l):Qn(Promise.all(d).then(()=>l))}),ss(l=>{let{newlyCreatedRoutes:c,state:d}=cle(e.routeReuseStrategy,l.targetSnapshot,l.currentRouterState);return this.currentTransition=i=l=s(r({},l),{targetRouterState:d,newlyCreatedRoutes:c}),this.currentNavigation.update(u=>(u.targetRouterState=d,u)),fi(l)}),this.activatedRouteInjectorFeature?.operator()??(l=>l),Az(()=>this.afterPreactivation()),ss(()=>{let{currentSnapshot:l,targetSnapshot:c}=i,d=this.createViewTransition?.(this.environmentInjector,l.root,c.root);return d?Qn(d).pipe($i(()=>i)):fi(i)}),na(1),ss(l=>{n=!1,this.events.next(new B0);let c=i.beforeActivateHandler.deferredHandle;return c?Qn(c.then(()=>l)):fi(l)}),Oo(l=>{new Z3(e.routeReuseStrategy,i.targetRouterState,i.currentRouterState,c=>this.events.next(c),this.inputBindingEnabled).activate(this.rootContexts),l.newlyCreatedRoutes?.clear(),a()&&(s$3=!0,this.currentNavigation.update(c=>(c.abort=nce,c)),this.lastSuccessfulNavigation.set(Ci(this.currentNavigation)),this.events.next(new Aa(l.id,this.urlSerializer.serialize(l.extractedUrl),this.urlSerializer.serialize(l.urlAfterRedirects))),this.titleStrategy?.updateTitle(l.targetRouterState.snapshot),l.resolve(!0))}),oe(s9(o.signal).pipe(Zt(()=>!s$3&&n),Oo(()=>{this.cancelNavigationTransition(i,o.signal.reason+``,yo.Aborted)}))),Oo({complete:()=>{s$3=!0}}),oe(this.transitionAbortWithErrorSubject.pipe(Oo(l=>{throw l}))),g_(()=>{o.abort(),s$3||this.cancelNavigationTransition(i,``,yo.SupersededByNewNavigation),this.currentTransition?.id===i.id&&(this.currentNavigation.set(null),this.currentTransition=null)}),i0(l=>{if(s$3=!0,Rz(i),this.destroyed)return i.resolve(!1),rs;if(n9(l))this.events.next(new fl(i.id,this.urlSerializer.serialize(i.extractedUrl),l.message,l.cancellationCode)),hle(l)?this.events.next(new j0(l.url,l.navigationBehaviorOptions)):i.resolve(!1);else{let c=new hf(i.id,this.urlSerializer.serialize(i.extractedUrl),l,i.targetSnapshot??void 0);try{let d=vs(this.environmentInjector,()=>this.navigationErrorHandler?.(c));if(d instanceof q0){let{message:u,cancellationCode:h}=$2(this.urlSerializer,d);this.events.next(new fl(i.id,this.urlSerializer.serialize(i.extractedUrl),u,h)),this.events.next(new j0(d.redirectTo,d.navigationBehaviorOptions))}else throw this.events.next(c),l}catch(d){this.options.resolveNavigationPromiseOnError?i.resolve(!1):i.reject(d)}}return rs}))}))}cancelNavigationTransition(e,i,n){Rz(e);let s=new fl(e.id,this.urlSerializer.serialize(e.extractedUrl),i,n);this.events.next(s),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))),i=Ci(this.currentNavigation),n=i?.targetBrowserUrl??i?.extractedUrl;return e.toString()!==n?.toString()&&!i?.extras.skipLocationChange}static ɵfac=function(i){return new(i||r$14)};static ɵprov=An({token:r$14,factory:r$14.ɵfac})}return r$14})();function rce(r){return r!==Dv}function Rz(r){if(r.newlyCreatedRoutes)for(let t of r.newlyCreatedRoutes)t._localInjector?.destroy()}var v9=new Oe(``);var b9=(()=>{class r{static ɵfac=function(i){return new(i||r)};static ɵprov=An({token:r,factory:()=>C(sce)})}return r})();var B2=class{shouldDetach(t){return!1}store(t,e){}shouldAttach(t){return!1}retrieve(t){return null}shouldReuseRoute(t,e){return t.routeConfig===e.routeConfig}shouldDestroyInjector(t){return!0}};var sce=(()=>{class r extends B2{static ɵfac=function(i){return new(i||r)};static ɵprov=An({token:r,factory:r.ɵfac})}return r})();var G2=(()=>{class r{urlSerializer=C(U0);options=C(Y0,{optional:!0})||{};canceledNavigationResolution=this.options.canceledNavigationResolution||`replace`;location=C(sf);urlHandlingStrategy=C(q2);urlUpdateStrategy=this.options.urlUpdateStrategy||`deferred`;currentUrlTree=new Vo;getCurrentUrlTree(){return this.currentUrlTree}rawUrlTree=this.currentUrlTree;getRawUrlTree(){return this.rawUrlTree}createBrowserPath({finalUrl:e,initialUrl:i,targetBrowserUrl:n}){let s=e!==void 0?this.urlHandlingStrategy.merge(e,i):i,o=n??s;return o instanceof Vo?this.urlSerializer.serialize(o):o}routerUrlState(e){return e?.targetBrowserUrl===void 0||e?.finalUrl===void 0?{}:{ɵrouterUrl:this.urlSerializer.serialize(e.finalUrl)}}commitTransition({targetRouterState:e,finalUrl:i,initialUrl:n}){i&&e?(this.currentUrlTree=i,this.rawUrlTree=this.urlHandlingStrategy.merge(i,n),this.routerState=e):this.rawUrlTree=n}routerState=Xz(null,C(Sn));getRouterState(){return this.routerState}_stateMemento=this.createStateMemento();get stateMemento(){return this._stateMemento}updateStateMemento(){this._stateMemento=this.createStateMemento()}createStateMemento(){return{rawUrlTree:this.rawUrlTree,currentUrlTree:this.currentUrlTree,routerState:this.routerState}}restoredState(){return this.location.getState()}static ɵfac=function(i){return new(i||r)};static ɵprov=An({token:r,factory:()=>C(oce)})}return r})();var oce=(()=>{class r$15 extends G2{currentPageId=0;lastSuccessfulId=-1;get browserPageId(){return this.canceledNavigationResolution!==`computed`?this.currentPageId:this.restoredState()?.ɵrouterPageId??this.currentPageId}registerNonRouterCurrentEntryChangeListener(e){return this.location.subscribe(i=>{i.type===`popstate`&&setTimeout(()=>{e(i.url,i.state,`popstate`,{replaceUrl:!0})})})}handleRouterEvent(e,i){e instanceof uf?this.updateStateMemento():e instanceof xu?this.commitTransition(i):e instanceof Mv?this.urlUpdateStrategy===`eager`&&(i.extras.skipLocationChange||this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof B0?(this.commitTransition(i),this.urlUpdateStrategy===`deferred`&&!i.extras.skipLocationChange&&this.setBrowserUrl(this.createBrowserPath(i),i)):e instanceof fl&&!Qz(e)?this.restoreHistory(i):e instanceof hf?this.restoreHistory(i,!0):e instanceof Aa&&(this.lastSuccessfulId=e.id,this.currentPageId=this.browserPageId)}setBrowserUrl(e,i){let{extras:n,id:s}=i,{replaceUrl:o,state:a}=n;if(this.location.isCurrentPathEqualTo(e)||o){let l=this.browserPageId,c=r(r({},a),this.generateNgRouterState(s,l,i));this.location.replaceState(e,``,c)}else{let l=r(r({},a),this.generateNgRouterState(s,this.browserPageId+1,i));this.location.go(e,``,l)}}restoreHistory(e,i=!1){if(this.canceledNavigationResolution===`computed`){let n=this.browserPageId,s=this.currentPageId-n;s!==0?this.location.historyGo(s):this.getCurrentUrlTree()===e.finalUrl&&s===0&&(this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}else this.canceledNavigationResolution===`replace`&&(i&&this.resetInternalState(e),this.resetUrlToCurrentUrlTree())}resetInternalState({finalUrl:e}){this.routerState=this.stateMemento.routerState,this.currentUrlTree=this.stateMemento.currentUrlTree,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e??this.rawUrlTree)}resetUrlToCurrentUrlTree(){this.location.replaceState(this.urlSerializer.serialize(this.getRawUrlTree()),``,this.generateNgRouterState(this.lastSuccessfulId,this.currentPageId))}generateNgRouterState(e,i,n){return this.canceledNavigationResolution===`computed`?r({navigationId:e,ɵrouterPageId:i},this.routerUrlState(n)):r({navigationId:e},this.routerUrlState(n))}static ɵfac=function(i){return new(i||r$15)};static ɵprov=An({token:r$15,factory:r$15.ɵfac})}return r$15})();function dR(r,t){r.events.pipe(Zt(e=>e instanceof Aa||e instanceof fl||e instanceof hf||e instanceof xu),$i(e=>e instanceof Aa||e instanceof xu?0:(e instanceof fl?e.code===yo.Redirect||e.code===yo.SupersededByNewNavigation:!1)?2:1),Zt(e=>e!==2),na(1)).subscribe(()=>{t()})}var _u=(()=>{class r$16{get currentUrlTree(){return this.stateManager.getCurrentUrlTree()}get rawUrlTree(){return this.stateManager.getRawUrlTree()}disposed=!1;nonRouterCurrentEntryChangeSubscription;console=C(WC);stateManager=C(G2);options=C(Y0,{optional:!0})||{};pendingTasks=C(lu);urlUpdateStrategy=this.options.urlUpdateStrategy||`deferred`;navigationTransitions=C(_9);urlSerializer=C(U0);location=C(sf);urlHandlingStrategy=C(q2);injector=C(Sn);_events=new Te;get events(){return this._events}get routerState(){return this.stateManager.getRouterState()}navigated=!1;routeReuseStrategy=C(b9);injectorCleanup=C(v9,{optional:!0});onSameUrlNavigation=this.options.onSameUrlNavigation||`ignore`;config=C(zv,{optional:!0})?.flat()??[];componentInputBindingEnabled=!!C(j2,{optional:!0});currentNavigation=this.navigationTransitions.currentNavigation.asReadonly();constructor(){this.resetConfig(this.config),this.navigationTransitions.setupNavigations(this).subscribe({error:e=>{}}),this.subscribeToNavigationEvents()}eventsSubscription=new Yn;subscribeToNavigationEvents(){let e=this.navigationTransitions.events.subscribe(i=>{try{let n=this.navigationTransitions.currentTransition,s=Ci(this.navigationTransitions.currentNavigation);if(n!==null&&s!==null){if(this.stateManager.handleRouterEvent(i,s),i instanceof fl&&i.code!==yo.Redirect&&i.code!==yo.SupersededByNewNavigation)this.navigated=!0;else if(i instanceof Aa)this.navigated=!0,this.injectorCleanup?.(this.routeReuseStrategy,this.routerState,this.config);else if(i instanceof j0){let o=i.navigationBehaviorOptions,a=this.urlHandlingStrategy.merge(i.url,n.currentRawUrl),l=r({scroll:n.extras.scroll,browserUrl:n.extras.browserUrl,info:n.extras.info,skipLocationChange:n.extras.skipLocationChange,replaceUrl:n.extras.replaceUrl||this.urlUpdateStrategy===`eager`||rce(n.source)},o);this.scheduleNavigation(a,Dv,null,l,{resolve:n.resolve,reject:n.reject,promise:n.promise})}}ole(i)&&this._events.next(i)}catch(n){this.navigationTransitions.transitionAbortWithErrorSubject.next(n)}});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),Dv,this.stateManager.restoredState(),{replaceUrl:!0})}setUpLocationChangeListener(){this.nonRouterCurrentEntryChangeSubscription??=this.stateManager.registerNonRouterCurrentEntryChangeListener((e,i,n,s)=>{this.navigateToSyncWithBrowser(e,n,i,s)})}navigateToSyncWithBrowser(e,i,n,s$4){let o=n?.navigationId?n:null,a=n?.ɵrouterUrl??e;if(n?.ɵrouterUrl&&(s$4=s(r({},s$4),{browserUrl:e})),n){let c=r({},n);delete c.navigationId,delete c.ɵrouterPageId,delete c.ɵrouterUrl,Object.keys(c).length!==0&&(s$4.state=c)}let l=this.parseUrl(a);this.scheduleNavigation(l,i,o,s$4).catch(c=>{this.disposed||this.injector.get(dl)(c)})}get url(){return this.serializeUrl(this.currentUrlTree)}getCurrentNavigation(){return Ci(this.navigationTransitions.currentNavigation)}get lastSuccessfulNavigation(){return this.navigationTransitions.lastSuccessfulNavigation}resetConfig(e){this.config=e.map(lR),this.navigated=!1}ngOnDestroy(){this.dispose()}dispose(){this._events.unsubscribe(),this.navigationTransitions.complete(),this.nonRouterCurrentEntryChangeSubscription?.unsubscribe(),this.nonRouterCurrentEntryChangeSubscription=void 0,this.disposed=!0,this.eventsSubscription.unsubscribe()}createUrlTree(e,i={}){let{relativeTo:n,queryParams:s,fragment:o,queryParamsHandling:a,preserveFragment:l}=i,c=l?this.currentUrlTree.fragment:o,d=null;switch(a??this.options.defaultQueryParamsHandling){case`merge`:d=r(r({},this.currentUrlTree.queryParams),s);break;case`preserve`:d=this.currentUrlTree.queryParams;break;default:d=s||null}d!==null&&(d=this.removeEmptyProps(d));let u;try{u=Uz(n?n.snapshot:this.routerState.snapshot.root)}catch{(typeof e[0]!=`string`||e[0][0]!==`/`)&&(e=[]),u=this.currentUrlTree.root}return Wz(u,e,d,c??null,this.urlSerializer)}navigateByUrl(e,i={skipLocationChange:!1}){let n=Yh(e)?e:this.parseUrl(e),s=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(s,Dv,null,i)}navigate(e,i={skipLocationChange:!1}){return ace(e),this.navigateByUrl(this.createUrlTree(e,i),i)}serializeUrl(e){return this.urlSerializer.serialize(e)}parseUrl(e){try{return this.urlSerializer.parse(e)}catch{return this.console.warn(ou(4018,!1)),this.urlSerializer.parse(`/`)}}isActive(e,i){let n;if(i===!0?n=r({},nR):i===!1?n=r({},z0):n=r(r({},z0),i),Yh(e))return q3(this.currentUrlTree,e,n);let s=this.parseUrl(e);return q3(this.currentUrlTree,s,n)}removeEmptyProps(e){return Object.entries(e).reduce((i,[n,s])=>(s!=null&&(i[n]=s),i),{})}scheduleNavigation(e,i,n,s,o){if(this.disposed)return Promise.resolve(!1);let a,l,c;o?(a=o.resolve,l=o.reject,c=o.promise):c=new Promise((u,h)=>{a=u,l=h});let d=this.pendingTasks.add();return dR(this,()=>{queueMicrotask(()=>this.pendingTasks.remove(d))}),this.navigationTransitions.handleNavigationRequest({source:i,restoredState:n,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,rawUrl:e,extras:s,resolve:a,reject:l,promise:c,currentSnapshot:this.routerState.snapshot,currentRouterState:this.routerState}),c.catch(Promise.reject.bind(Promise))}static ɵfac=function(i){return new(i||r$16)};static ɵprov=An({token:r$16,factory:r$16.ɵfac})}return r$16})();function ace(r){for(let t=0;t{class r{router=C(_u);stateManager=C(G2);fragment=oi(``);queryParams=oi({});path=oi(``);serializer=C(U0);constructor(){this.updateState(),this.router.events?.subscribe(e=>{e instanceof Aa&&this.updateState()})}updateState(){let{fragment:e,root:i,queryParams:n}=this.stateManager.getCurrentUrlTree();this.fragment.set(e),this.queryParams.set(n),this.path.set(this.serializer.serialize(new Vo(i)))}static ɵfac=function(i){return new(i||r)};static ɵprov=An({token:r,factory:r.ɵfac})}return r})();var Q0=(()=>{class r$17{router;route;tabIndexAttribute;renderer;el;locationStrategy;hrefAttributeValue=C(new XC(`href`),{optional:!0});reactiveHref=W5(()=>this.isAnchorElement?this.computeHref(this._urlTree()):this.hrefAttributeValue);get href(){return Ci(this.reactiveHref)}set href(e){this.reactiveHref.set(e)}set target(e){this._target.set(e)}get target(){return Ci(this._target)}_target=oi(void 0);set queryParams(e){this._queryParams.set(e)}get queryParams(){return Ci(this._queryParams)}_queryParams=oi(void 0,{equal:()=>!1});set fragment(e){this._fragment.set(e)}get fragment(){return Ci(this._fragment)}_fragment=oi(void 0);set queryParamsHandling(e){this._queryParamsHandling.set(e)}get queryParamsHandling(){return Ci(this._queryParamsHandling)}_queryParamsHandling=oi(void 0);set state(e){this._state.set(e)}get state(){return Ci(this._state)}_state=oi(void 0,{equal:()=>!1});set info(e){this._info.set(e)}get info(){return Ci(this._info)}_info=oi(void 0,{equal:()=>!1});set relativeTo(e){this._relativeTo.set(e)}get relativeTo(){return Ci(this._relativeTo)}_relativeTo=oi(void 0);set preserveFragment(e){this._preserveFragment.set(e)}get preserveFragment(){return Ci(this._preserveFragment)}_preserveFragment=oi(!1);set skipLocationChange(e){this._skipLocationChange.set(e)}get skipLocationChange(){return Ci(this._skipLocationChange)}_skipLocationChange=oi(!1);set replaceUrl(e){this._replaceUrl.set(e)}get replaceUrl(){return Ci(this._replaceUrl)}_replaceUrl=oi(!1);browserUrl=Uh(void 0);isAnchorElement;onChanges=new Te;applicationErrorHandler=C(dl);options=C(Y0,{optional:!0});reactiveRouterState=C(cce);constructor(e,i,n,s,o,a){this.router=e,this.route=i,this.tabIndexAttribute=n,this.renderer=s,this.el=o,this.locationStrategy=a;let l=o.nativeElement.tagName?.toLowerCase();this.isAnchorElement=l===`a`||l===`area`||!!(typeof customElements==`object`&&customElements.get(l)?.observedAttributes?.includes?.(`href`))}setTabIndexIfNotOnNativeEl(e){this.tabIndexAttribute!=null||this.isAnchorElement||this.applyAttributeValue(`tabindex`,e)}ngOnChanges(e){this.onChanges.next(this)}routerLinkInput=oi(null);set routerLink(e){e==null?(this.routerLinkInput.set(null),this.setTabIndexIfNotOnNativeEl(null)):(Yh(e)?this.routerLinkInput.set(e):this.routerLinkInput.set(Array.isArray(e)?e:[e]),this.setTabIndexIfNotOnNativeEl(`0`))}onClick(e,i,n,s,o){let a=this._urlTree();if(a===null||this.isAnchorElement&&(e!==0||i||n||s||o||typeof this.target==`string`&&this.target!=`_self`))return!0;let l=this.browserUrl(),c=r({skipLocationChange:this.skipLocationChange,replaceUrl:this.replaceUrl,state:this.state,info:this.info},l!==void 0&&{browserUrl:l});return this.router.navigateByUrl(a,c)?.catch(d=>{this.applicationErrorHandler(d)}),!this.isAnchorElement}ngOnDestroy(){}applyAttributeValue(e,i){let n=this.renderer,s=this.el.nativeElement;i!==null?n.setAttribute(s,e,i):n.removeAttribute(s,e)}_urlTree=mo(()=>{this.reactiveRouterState.path(),this._preserveFragment()&&this.reactiveRouterState.fragment();let e=n=>n===`preserve`||n===`merge`;(e(this._queryParamsHandling())||e(this.options?.defaultQueryParamsHandling))&&this.reactiveRouterState.queryParams();let i=this.routerLinkInput();return i===null||!this.router.createUrlTree?null:Yh(i)?i:this.router.createUrlTree(i,{relativeTo:this._relativeTo()!==void 0?this._relativeTo():this.route,queryParams:this._queryParams(),fragment:this._fragment(),queryParamsHandling:this._queryParamsHandling(),preserveFragment:this._preserveFragment()})},{equal:(e,i)=>this.computeHref(e)===this.computeHref(i)});get urlTree(){return Ci(this._urlTree)}computeHref(e){return e!==null&&this.locationStrategy?this.locationStrategy?.prepareExternalUrl(this.router.serializeUrl(e))??``:null}static ɵfac=function(i){return new(i||r$17)(lt(_u),lt(yu),Y_(`tabindex`),lt(Wt),lt(Se),lt(sd))};static ɵdir=ee({type:r$17,selectors:[[``,`routerLink`,``]],hostVars:2,hostBindings:function(i,n){i&1&&j(`click`,function(o){return n.onClick(o.button,o.ctrlKey,o.shiftKey,o.altKey,o.metaKey)}),i&2&&ie(`href`,n.reactiveHref(),p5)(`target`,n._target())},inputs:{target:`target`,queryParams:`queryParams`,fragment:`fragment`,queryParamsHandling:`queryParamsHandling`,state:`state`,info:`info`,relativeTo:`relativeTo`,preserveFragment:[2,`preserveFragment`,`preserveFragment`,K],skipLocationChange:[2,`skipLocationChange`,`skipLocationChange`,K],replaceUrl:[2,`replaceUrl`,`replaceUrl`,K],browserUrl:[1,`browserUrl`],routerLink:`routerLink`},features:[wn]})}return r$17})();var uR=(()=>{class r$18{router;element;renderer;cdr;links;classes=[];routerEventsSubscription;linkInputChangesSubscription;_isActive=!1;get isActive(){return this._isActive}routerLinkActiveOptions={exact:!1};ariaCurrentWhenActive;isActiveChange=new A;link=C(Q0,{optional:!0});constructor(e,i,n,s){this.router=e,this.element=i,this.renderer=n,this.cdr=s,this.routerEventsSubscription=e.events.subscribe(o=>{o instanceof Aa&&this.update()})}ngAfterContentInit(){fi(this.links.changes,fi(null)).pipe(Dh()).subscribe(e=>{this.update(),this.subscribeToEachLinkOnChanges()})}subscribeToEachLinkOnChanges(){this.linkInputChangesSubscription?.unsubscribe();let e=[...this.links.toArray(),this.link].filter(i=>!!i).map(i=>i.onChanges);this.linkInputChangesSubscription=Qn(e).pipe(Dh()).subscribe(i=>{this._isActive!==this.isLinkActive(this.router)(i)&&this.update()})}set routerLinkActive(e){if(e==null){this.classes=[];return}let i=Array.isArray(e)?e:e.split(` `);this.classes=i.filter(n=>!!n)}ngOnChanges(e){this.update()}ngOnDestroy(){this.routerEventsSubscription.unsubscribe(),this.linkInputChangesSubscription?.unsubscribe()}update(){!this.links||!this.router.navigated||this.routerLinkActiveOptions===null&&!this._isActive||queueMicrotask(()=>{let e=this.hasActiveLinks();this.classes.forEach(i=>{e?this.renderer.addClass(this.element.nativeElement,i):this.renderer.removeClass(this.element.nativeElement,i)}),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 i=this.routerLinkActiveOptions;if(i===null)return()=>!1;let n;return i===void 0?n=r({},z0):dce(i)?n=i:i.exact??!1?n=r({},nR):n=r({},z0),s=>{let o=s.urlTree;return o?Ci(rR(o,e,n)):!1}}hasActiveLinks(){let e=this.isLinkActive(this.router);return this.link&&e(this.link)||this.links.some(e)}static ɵfac=function(i){return new(i||r$18)(lt(_u),lt(Se),lt(Wt),lt(at))};static ɵdir=ee({type:r$18,selectors:[[``,`routerLinkActive`,``]],contentQueries:function(i,n,s){if(i&1&&kt(s,Q0,5),i&2){let o;R(o=P())&&(n.links=o)}},inputs:{routerLinkActiveOptions:`routerLinkActiveOptions`,ariaCurrentWhenActive:`ariaCurrentWhenActive`,routerLinkActive:`routerLinkActive`},outputs:{isActiveChange:`isActiveChange`},exportAs:[`routerLinkActive`],features:[wn]})}return r$18})();function dce(r){let t=r;return!!(t.paths||t.matrixParams||t.queryParams||t.fragment)}var uce=new Oe(``);function hR(r,...t){return Fp([{provide:zv,multi:!0,useValue:r},{provide:yu,useFactory:hce},{provide:iv,multi:!0,useFactory:pce},t.map(e=>e.ɵproviders)])}function hce(){return C(_u).routerState.root}function gce(r,t){return{ɵkind:r,ɵproviders:t}}function pce(){let r=C(ji);return t=>{let e=r.get(id);if(t!==e.components[0])return;let i=r.get(_u),n=r.get(fce);r.get(mce)===1&&i.initialNavigation(),r.get(xce,null,{optional:!0})?.setUpPreloading(),r.get(uce,null,{optional:!0})?.init(),i.resetRootComponentType(e.componentTypes[0]),n.closed||(n.next(),n.complete(),n.unsubscribe())}}var fce=new Oe(``,{factory:()=>new Te});var mce=new Oe(``,{factory:()=>1});var xce=new Oe(``);function gR(){return gce(6,[{provide:sd,useClass:p3}])}var U2=typeof global==`object`&&global&&global.Object===Object&&global;var _ce=typeof self==`object`&&self&&self.Object===Object&&self;var Hr=U2||_ce||Function(`return this`)();var vu=Hr.Symbol;var S9=Object.prototype;var Sce=S9.hasOwnProperty;var wce=S9.toString;var Bv=vu?vu.toStringTag:void 0;function Cce(r){var t=Sce.call(r,Bv),e=r[Bv];try{r[Bv]=void 0;var i=!0}catch{}var n=wce.call(r);return i&&(t?r[Bv]=e:delete r[Bv]),n}var w9=Cce;var Nce=Object.prototype.toString;function Dce(r){return Nce.call(r)}var C9=Dce;var kce=`[object Null]`;var Ece=`[object Undefined]`;var I9=vu?vu.toStringTag:void 0;function Tce(r){return r==null?r===void 0?Ece:kce:I9&&I9 in Object(r)?w9(r):C9(r)}var ic=Tce;function Mce(r){return r!=null&&typeof r==`object`}var Ra=Mce;var ad=Array.isArray;function Rce(r){var t=typeof r;return r!=null&&(t==`object`||t==`function`)}var aa=Rce;function Pce(r){return r}var W2=Pce;var Oce=`[object AsyncFunction]`;var Fce=`[object Function]`;var Lce=`[object GeneratorFunction]`;var Vce=`[object Proxy]`;function $ce(r){if(!aa(r))return!1;var t=ic(r);return t==Fce||t==Lce||t==Oce||t==Vce}var X0=$ce;var K2=Hr[`__core-js_shared__`];var N9=(function(){var r=/[^.]+$/.exec(K2&&K2.keys&&K2.keys.IE_PROTO||``);return r?`Symbol(src)_1.`+r:``})();function Bce(r){return!!N9&&N9 in r}var D9=Bce;var Hce=Function.prototype.toString;function qce(r){if(r!=null){try{return Hce.call(r)}catch{}try{return r+``}catch{}}return``}var bu=qce;var Gce=/[\\^$.*+?()[\]{}|]/g;var Uce=/^\[object .+?Constructor\]$/;var Wce=Function.prototype;var Kce=Object.prototype;var Yce=Wce.toString;var Qce=Kce.hasOwnProperty;var Xce=RegExp(`^`+Yce.call(Qce).replace(Gce,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function Zce(r){if(!aa(r)||D9(r))return!1;return(X0(r)?Xce:Uce).test(bu(r))}var k9=Zce;function Jce(r,t){return r?.[t]}var E9=Jce;function ede(r,t){var e=E9(r,t);return k9(e)?e:void 0}var la=ede;var Y2=la(Hr,`WeakMap`);var T9=Object.create;var M9=(function(){function r(){}return function(t){if(!aa(t))return{};if(T9)return T9(t);r.prototype=t;var e=new r;return r.prototype=void 0,e}})();function nde(r,t,e){switch(e.length){case 0:return r.call(t);case 1:return r.call(t,e[0]);case 2:return r.call(t,e[0],e[1]);case 3:return r.call(t,e[0],e[1],e[2])}return r.apply(t,e)}var A9=nde;function rde(r,t){var e=-1,i=r.length;for(t||(t=Array(i));++e0){if(++t>=sde)return arguments[0]}else t=0;return r.apply(void 0,arguments)}}var P9=lde;function cde(r){return function(){return r}}var O9=cde;var Z0=(function(){try{var r=la(Object,`defineProperty`);return r({},``,{}),r}catch{}})();var L9=P9(Z0?function(r,t){return Z0(r,`toString`,{configurable:!0,enumerable:!1,value:O9(t),writable:!0})}:W2);var gde=9007199254740991;var pde=/^(?:0|[1-9]\d*)$/;function fde(r,t){var e=typeof r;return t=t??gde,!!t&&(e==`number`||e!=`symbol`&&pde.test(r))&&r>-1&&r%1==0&&r-1&&r%1==0&&r<=Cde}var X2=Ide;function Nde(r){return r!=null&&X2(r.length)&&!X0(r)}var Qh=Nde;function Dde(r,t,e){if(!aa(e))return!1;var i=typeof t;return(i==`number`?Qh(e)&&Q2(t,e.length):i==`string`&&t in e)?ld(e[t],r):!1}var H9=Dde;function kde(r){return j9(function(t,e){var i=-1,n=e.length,s=n>1?e[n-1]:void 0,o=n>2?e[2]:void 0;for(s=r.length>3&&typeof s==`function`?(n--,s):void 0,o&&H9(e[0],e[1],o)&&(s=n<3?void 0:s,n=1),t=Object(t);++i-1}var pB=Kue;function Yue(r,t){var e=this.__data__,i=Xh(e,r);return i<0?(++this.size,e.push([r,t])):e[i][1]=t,this}var fB=Yue;function nx(r){var t=-1,e=r==null?0:r.length;for(this.clear();++ta))return!1;var c=s.get(r),d=s.get(t);if(c&&d)return c==t&&d==r;var u=-1,h=!0,g=e&Uhe?new QB:void 0;for(s.set(r,t),s.set(t,r);++u\d{4})-(?\d{1,2})(?:-(?\d{1,2}))?(? + ${SZ(tke)} + ${this.text} + + + `}};wZ([dT()],pT.prototype,`text`,void 0),wZ([dT()],pT.prototype,`url`,void 0);var fT=class{};var nke=[`groupContent`];var rke=[`defaultGroupByExpandedTemplate`];var ske=[`defaultGroupByCollapsedTemplate`];var fp=r=>({$implicit:r});var oke=(r,t,e)=>({selectedCount:r,totalCount:t,groupRow:e});var Fc=(r,t,e,i,n)=>[r,t,e,i,n];function ake(r,t){r&1&&(v(0,`div`,8),U(1,`igx-icon`,13),b()),r&2&&(f(),ve(`visibility`,`hidden`))}function lke(r,t){}function cke(r,t){r&1&&Z(0,lke,0,0,`ng-template`,null,6,pe)}function dke(r,t){if(r&1){let e=de();v(0,`div`,14),j(`pointerdown`,function(n){return n.preventDefault()})(`click`,function(n){V(e);return $(x().onGroupSelectorClick(n))}),Z(1,cke,2,0,null,11),b()}if(r&2){let e=x(),i=J(16);f(),I(`ngTemplateOutlet`,e.grid.groupByRowSelectorTemplate?e.grid.groupByRowSelectorTemplate:i)(`ngTemplateOutletContext`,Et(6,fp,rd(2,oke,e.selectedRowsInTheGroup.length,e.groupRow.records.length,e.groupRow)))}}function uke(r,t){r&1&&xe(0)}function hke(r,t){r&1&&xe(0)}function gke(r,t){r&1&&U(0,`igx-icon`,15)}function pke(r,t){r&1&&U(0,`igx-icon`,16)}function fke(r,t){if(r&1&&(v(0,`div`,17),U(1,`igx-icon`,18),v(2,`span`,19),B(3),b(),v(4,`span`,20),B(5),ue(6,`columnFormatter`),ue(7,`number`),ue(8,`date`),ue(9,`currency`),ue(10,`percent`),b(),U(11,`igx-badge`,21),b()),r&2){let e=x();f(3),Ce(` `,e.groupRow.column&&e.groupRow.column.header?e.groupRow.column.header:e.groupRow.expression?e.groupRow.expression.fieldName:``,`: `),f(2),Ie(e.formatter?xr(6,3,e.groupRow.value,e.formatter,e.groupRow.records[0],null):e.dataType===`number`?bt(7,8,e.groupRow.value,e.groupRow.column.pipeArgs.digitsInfo,e.grid.locale):e.dataType===`date`||e.dataType===`time`||e.dataType===`dateTime`?xr(8,12,e.groupRow.value,e.groupRow.column.pipeArgs.format,e.groupRow.column.pipeArgs.timezone,e.grid.locale):e.dataType===`currency`?Ht(9,17,Br(27,Fc,e.groupRow.value,e.currencyCode,e.groupRow.column.pipeArgs.display,e.groupRow.column.pipeArgs.digitsInfo,e.grid.locale)):e.dataType===`percent`?bt(10,23,e.groupRow.value,e.groupRow.column.pipeArgs.digitsInfo,e.grid.locale):e.groupRow.value),f(6),I(`value`,e.groupRow.records?e.groupRow.records.length:0)}}function mke(r,t){if(r&1&&(v(0,`div`,22),U(1,`igx-checkbox`,23,7),b()),r&2){let e=x();f(),I(`tabindex`,-1)(`readonly`,!0)(`checked`,e.areAllRowsInTheGroupSelected)(`disableRipple`,!0)(`indeterminate`,e.groupByRowCheckboxIndeterminateState)(`disabled`,e.grid.rowSelection===`single`),ef(`aria-label`,e.groupByRowSelectorBaseAriaLabel)}}var xke=(r,t)=>t.fieldName;function yke(r,t){if(r&1){let e=de();v(0,`igx-chip`,4),ue(1,`igxGroupByMeta`),ue(2,`igxGroupByMeta`),ue(3,`igxGroupByMeta`),ue(4,`igxGroupByMeta`),j(`keyDown`,function(n){V(e);return $(x().handleKeyDown(n.owner.id,n.originalEvent))})(`remove`,function(n){V(e);return $(x().clearGrouping(n.owner.id))})(`chipClick`,function(){let n=V(e).$implicit;return $(x().handleClick(n.fieldName))}),v(5,`span`),B(6),ue(7,`igxGroupByMeta`),b(),U(8,`igx-icon`,5),b(),v(9,`span`,6),U(10,`igx-icon`,7),b()}if(r&2){let e=t.$implicit,i=t.$index,n=t.$count,s=x();I(`id`,e.fieldName)(`title`,bt(1,8,e.fieldName,s.grid,s.grid.groupablePipeTrigger).title)(`removable`,bt(2,12,e.fieldName,s.grid,s.grid.groupablePipeTrigger).groupable)(`draggable`,bt(3,16,e.fieldName,s.grid,s.grid.groupablePipeTrigger).groupable)(`disabled`,!bt(4,20,e.fieldName,s.grid,s.grid.groupablePipeTrigger).groupable),f(6),Ie(bt(7,24,e.fieldName,s.grid,s.grid.groupablePipeTrigger).title),f(2),I(`name`,e.dir===1?`sort_asc`:`sort_desc`),f(2),I(`hidden`,i===n-1&&!s.dropAreaVisible)}}function _ke(r,t){r&1&&xe(0)}function vke(r,t){if(r&1&&(U(0,`igx-icon`,8),v(1,`span`,9),B(2),b()),r&2){let e=x();f(2),Ie(e.dropAreaMessage)}}var bke=[`indicator`];var Ske=[`indentationDiv`];var NZ=[`defaultExpandedTemplate`];var DZ=[`defaultCollapsedTemplate`];var wke=(r,t)=>({"igx-icon--success":r,"igx-icon--error":t});function Cke(r,t){if(r&1&&(v(0,`igx-chip`,13),B(1),b()),r&2){let e=x(2);ve(`--%NS%ig-size`,1),I(`disabled`,!0),f(),Ie(e.grid.resourceStrings.igx_grid_pinned_row_indicator)}}function Ike(r,t){if(r&1&&F(0,Cke,2,4,`igx-chip`,12),r&2)L(x().displayPinnedChip?0:-1)}function Nke(r,t){if(r&1&&(v(0,`div`,17),ue(1,`columnFormatter`),ue(2,`number`),ue(3,`date`),ue(4,`currency`),ue(5,`percent`),B(6),ue(7,`columnFormatter`),ue(8,`number`),ue(9,`date`),ue(10,`currency`),ue(11,`percent`),b()),r&2){let e=x(2);we(`igx-grid__td--number`,e.column.dataType===`number`||e.column.dataType===`percent`||e.column.dataType===`currency`),I(`cssClass`,e.highlightClass)(`activeCssClass`,e.activeHighlightClass)(`groupName`,e.gridID)(`value`,e.formatter?bt(1,11,e.value,e.formatter,e.rowData):e.column.dataType===`number`?bt(2,15,e.value,e.column.pipeArgs.digitsInfo,e.grid.locale):e.column.dataType===`date`||e.column.dataType===`time`||e.column.dataType===`dateTime`?xr(3,19,e.value,e.column.pipeArgs.format,e.column.pipeArgs.timezone,e.grid.locale):e.column.dataType===`currency`?Ht(4,24,Br(57,Fc,e.value,e.currencyCode,e.column.pipeArgs.display,e.column.pipeArgs.digitsInfo,e.grid.locale)):e.column.dataType===`percent`?bt(5,30,e.value,e.column.pipeArgs.digitsInfo,e.grid.locale):e.value)(`row`,e.rowData)(`column`,e.column.field)(`containerClass`,`igx-grid__td-text`)(`metadata`,e.searchMetadata),f(6),Ce(` `,e.formatter?bt(7,34,e.value,e.formatter,e.rowData):e.column.dataType===`number`?bt(8,38,e.value,e.column.pipeArgs.digitsInfo,e.grid.locale):e.column.dataType===`date`||e.column.dataType===`time`||e.column.dataType===`dateTime`?xr(9,42,e.value,e.column.pipeArgs.format,e.column.pipeArgs.timezone,e.grid.locale):e.column.dataType===`currency`?Ht(10,47,Br(63,Fc,e.value,e.currencyCode,e.column.pipeArgs.display,e.column.pipeArgs.digitsInfo,e.grid.locale)):e.column.dataType===`percent`?bt(11,53,e.value,e.column.pipeArgs.digitsInfo,e.grid.locale):e.value,` `)}}function Dke(r,t){if(r&1&&(v(0,`div`),U(1,`igx-icon`,18),b()),r&2){let e=x(2);we(`igx-grid__td--bool`,e.column.dataType===`boolean`),f(),I(`name`,e.value?`confirm`:`close`)(`ngClass`,po(4,wke,e.value,!e.value))}}function kke(r,t){if(r&1&&(U(0,`img`,16),ue(1,`igxCellImageAlt`)),r&2){let e=x(2);I(`src`,e.value,jh)(`alt`,nr(1,2,e.value))}}function Eke(r,t){if(r&1&&(F(0,Nke,12,69,`div`,14),F(1,Dke,2,7,`div`,15),F(2,kke,2,4,`img`,16)),r&2){let e=x();L(e.column.dataType!==`boolean`&&e.column.dataType!==`image`||e.column.dataType===`boolean`&&e.formatter?0:-1),f(),L(e.column.dataType===`boolean`&&!e.formatter?1:-1),f(),L(e.column.dataType===`image`?2:-1)}}function Tke(r,t){if(r&1&&(v(0,`div`,17),ue(1,`columnFormatter`),ue(2,`number`),ue(3,`date`),ue(4,`currency`),ue(5,`percent`),B(6),b()),r&2){let e=x(2);I(`cssClass`,e.highlightClass)(`activeCssClass`,e.activeHighlightClass)(`groupName`,e.gridID)(`value`,e.formatter?bt(1,9,e.value,e.formatter,e.rowData):e.column.dataType===`number`?bt(2,13,e.value,e.column.pipeArgs.digitsInfo,e.grid.locale):e.column.dataType===`date`||e.column.dataType===`time`||e.column.dataType===`dateTime`?xr(3,17,e.value,e.column.pipeArgs.format,e.column.pipeArgs.timezone,e.grid.locale):e.column.dataType===`currency`?Ht(4,22,Br(32,Fc,e.value,e.currencyCode,e.column.pipeArgs.display,e.column.pipeArgs.digitsInfo,e.grid.locale)):e.column.dataType===`percent`?bt(5,28,e.value,e.column.pipeArgs.digitsInfo,e.grid.locale):e.value)(`row`,e.rowData)(`column`,e.column.field)(`containerClass`,`igx-grid__td-text`)(`metadata`,e.searchMetadata),f(6),Ce(` `,e.value?e.value:e.column.header||e.column.field,` `)}}function Mke(r,t){if(r&1&&F(0,Tke,7,38,`div`,17),r&2){let e=x();L(e.column.dataType!==`boolean`||e.column.dataType===`boolean`&&e.formatter?0:-1)}}function Ake(r,t){if(r&1){let e=de();bi(0,19),v(1,`igx-input-group`)(2,`input`,21),j(`compositionstart`,function(){V(e);let n=x(2);return $(n.grid.crudService.isInCompositionMode=!0)})(`compositionend`,function(){V(e);let n=x(2);return $(n.grid.crudService.isInCompositionMode=!1)}),b(),Jt(),b(),mi()}if(r&2){let e=x(2);I(`formGroup`,e.formGroup),f(),ve(`--%NS%ig-size`,1),f(),I(`igxFocus`,!0)(`formControl`,e.formControl),ie(`aria-describedby`,e.ariaDescribeBy)(`aria-invalid`,e.isInvalid),ei()}}function Rke(r,t){if(r&1&&(v(0,`igx-input-group`,19),U(1,`input`,22),Jt(),b()),r&2){let e=x(2);ve(`--%NS%ig-size`,1),I(`formGroup`,e.formGroup),f(),I(`igxFocus`,!0)(`step`,e.step)(`formControl`,e.formControl),ie(`aria-describedby`,e.ariaDescribeBy)(`aria-invalid`,e.isInvalid),ei()}}function Pke(r,t){if(r&1&&(bi(0,19),U(1,`igx-checkbox`,23),Jt(),mi()),r&2){let e=x(2);I(`formGroup`,e.formGroup),f(),I(`checked`,e.editValue)(`igxFocus`,!0)(`disableRipple`,!0)(`formControl`,e.formControl),ei()}}function Oke(r,t){if(r&1){let e=de();bi(0,19),v(1,`igx-date-picker`,24),ki(`valueChange`,function(n){V(e);let s=x(2);return Di(s.editValue,n)||(s.editValue=n),$(n)}),b(),Jt(),mi()}if(r&2){let e=x(2);I(`formGroup`,e.formGroup),f(),ve(`width`,100,`%`),I(`locale`,e.grid.locale)(`weekStart`,e.column.pipeArgs.weekStart),Ni(`value`,e.editValue),I(`igxFocus`,!0)(`formControl`,e.formControl)(`inputFormat`,e.column.editorOptions?.dateTimeFormat)(`displayFormat`,e.column.pipeArgs.format),ei()}}function Fke(r,t){if(r&1){let e=de();bi(0,19),v(1,`igx-time-picker`,25),ki(`valueChange`,function(n){V(e);let s=x(2);return Di(s.editValue,n)||(s.editValue=n),$(n)}),b(),Jt(),mi()}if(r&2){let e=x(2);I(`formGroup`,e.formGroup),f(),ve(`width`,100,`%`),I(`locale`,e.grid.locale),Ni(`value`,e.editValue),I(`igxFocus`,!0)(`formControl`,e.formControl)(`inputFormat`,e.column.editorOptions?.dateTimeFormat)(`displayFormat`,e.column.pipeArgs.format),ei()}}function Lke(r,t){if(r&1&&(v(0,`igx-input-group`,19),U(1,`input`,26),Jt(),b()),r&2){let e=x(2);I(`formGroup`,e.formGroup),f(),I(`formControl`,e.formControl)(`locale`,e.grid.locale)(`igxDateTimeEditor`,e.column.editorOptions?.dateTimeFormat)(`defaultFormatType`,e.column.dataType)(`displayFormat`,e.column.pipeArgs.format)(`igxFocus`,!0),ie(`aria-describedby`,e.ariaDescribeBy)(`aria-invalid`,e.isInvalid),ei()}}function Vke(r,t){if(r&1&&(v(0,`igx-prefix`),B(1),b()),r&2){let e=x(3);f(),Ie(e.currencyCodeSymbol)}}function $ke(r,t){if(r&1&&(v(0,`igx-suffix`),B(1),b()),r&2){let e=x(3);f(),Ie(e.currencyCodeSymbol)}}function zke(r,t){if(r&1&&(v(0,`igx-input-group`,19),F(1,Vke,2,1,`igx-prefix`),U(2,`input`,22),Jt(),F(3,$ke,2,1,`igx-suffix`),b()),r&2){let e=x(2);ve(`--%NS%ig-size`,1),I(`formGroup`,e.formGroup),f(),L(e.grid.currencyPositionLeft?1:-1),f(),I(`igxFocus`,!0)(`step`,e.step)(`formControl`,e.formControl),ie(`aria-describedby`,e.ariaDescribeBy)(`aria-invalid`,e.isInvalid),ei(),f(),L(e.grid.currencyPositionLeft?-1:3)}}function Bke(r,t){if(r&1&&(v(0,`igx-input-group`,19),U(1,`input`,22),Jt(),v(2,`igx-suffix`),B(3),ue(4,`percent`),b()()),r&2){let e=x(2);ve(`--%NS%ig-size`,1),I(`formGroup`,e.formGroup),f(),I(`igxFocus`,!0)(`step`,e.step)(`formControl`,e.formControl),ie(`aria-describedby`,e.ariaDescribeBy)(`aria-invalid`,e.isInvalid),ei(),f(2),Ce(` `,bt(4,9,e.editValue,e.column.pipeArgs.digitsInfo,e.grid.locale),` `)}}function jke(r,t){if(r&1&&(F(0,Ake,3,7,`ng-container`,19),F(1,Rke,2,8,`igx-input-group`,20),F(2,Pke,2,5,`ng-container`,19),F(3,Oke,2,10,`ng-container`,19),F(4,Fke,2,9,`ng-container`,19),F(5,Lke,2,9,`igx-input-group`,19),F(6,zke,4,10,`igx-input-group`,20),F(7,Bke,5,13,`igx-input-group`,20)),r&2){let e=x();L(e.column.dataType===`string`||e.column.dataType===`image`?0:-1),f(),L(e.column.dataType===`number`?1:-1),f(),L(e.column.dataType===`boolean`?2:-1),f(),L(e.column.dataType===`date`?3:-1),f(),L(e.column.dataType===`time`?4:-1),f(),L(e.column.dataType===`dateTime`?5:-1),f(),L(e.column.dataType===`currency`?6:-1),f(),L(e.column.dataType===`percent`?7:-1)}}function Hke(r,t){r&1&&xe(0)}function qke(r,t){if(r&1){let e=de();v(0,`div`,27,7),j(`click`,function(n){V(e);return $(x().toggle(n))})(`focus`,function(){V(e);return $(x().onIndicatorFocus())}),Z(2,Hke,1,0,`ng-container`,11),b()}if(r&2){let e=x();f(2),I(`ngTemplateOutlet`,e.iconTemplate)(`ngTemplateOutletContext`,Et(2,fp,e.row))}}function Gke(r,t){r&1&&xe(0)}function Uke(r,t){r&1&&xe(0)}function Wke(r,t){r&1&&xe(0)}function Kke(r,t){if(r&1){let e=de();v(0,`igx-icon`,28,8),j(`mouseover`,function(){V(e);let n=x();return $(n.errorShowing=!0)})(`mouseout`,function(){V(e);let n=x();return $(n.errorShowing=!1)}),b(),v(2,`div`,29,9)(5,`div`),Z(6,Wke,1,0,`ng-container`,11),b()()}if(r&2){let e=J(4),i=x(),n=J(17);I(`igxTooltipTarget`,e),f(2),I(`id`,i.ariaErrorMessage),f(3),ve(`width`,`max-content`),f(),I(`ngTemplateOutlet`,i.cellValidationErrorTemplate||n)(`ngTemplateOutletContext`,i.context)}}function Yke(r,t){r&1&&U(0,`igx-icon`,30)}function Qke(r,t){r&1&&U(0,`igx-icon`,31)}function Xke(r,t){if(r&1&&(v(0,`div`),B(1),b()),r&2){let e=x(2);f(),Ce(` `,e.grid.resourceStrings.igx_grid_required_validation_error,` `)}}function Zke(r,t){if(r&1&&(v(0,`div`),B(1),ue(2,`igxStringReplace`),b()),r&2){let e=x(2);f(),Ce(` `,bt(2,1,e.grid.resourceStrings.igx_grid_min_length_validation_error,`{0}`,e.formGroup.get(e.column.field).errors.minlength.requiredLength),` `)}}function Jke(r,t){if(r&1&&(v(0,`div`),B(1),ue(2,`igxStringReplace`),b()),r&2){let e=x(2);f(),Ce(` `,bt(2,1,e.grid.resourceStrings.igx_grid_max_length_validation_error,`{0}`,e.formGroup.get(e.column.field).errors.maxlength.requiredLength),` `)}}function eEe(r,t){if(r&1&&(v(0,`div`),B(1),ue(2,`igxStringReplace`),b()),r&2){let e=x(2);f(),Ce(` `,bt(2,1,e.grid.resourceStrings.igx_grid_min_validation_error,`{0}`,e.formGroup.get(e.column.field).errors.min.min),` `)}}function tEe(r,t){if(r&1&&(v(0,`div`),B(1),ue(2,`igxStringReplace`),b()),r&2){let e=x(2);f(),Ce(` `,bt(2,1,e.grid.resourceStrings.igx_grid_max_validation_error,`{0}`,e.formGroup.get(e.column.field).errors.max.max),` `)}}function iEe(r,t){if(r&1&&(v(0,`div`),B(1),b()),r&2){let e=x(2);f(),Ce(` `,e.grid.resourceStrings.igx_grid_email_validation_error,` `)}}function nEe(r,t){if(r&1&&(v(0,`div`),B(1),b()),r&2){let e=x(2);f(),Ce(` `,e.grid.resourceStrings.igx_grid_pattern_validation_error,` `)}}function rEe(r,t){if(r&1&&(F(0,Xke,2,1,`div`),F(1,Zke,3,5,`div`),F(2,Jke,3,5,`div`),F(3,eEe,3,5,`div`),F(4,tEe,3,5,`div`),F(5,iEe,2,1,`div`),F(6,nEe,2,1,`div`)),r&2){let e=x();L(e.formGroup.get(e.column.field).errors?.required?0:-1),f(),L(e.formGroup.get(e.column.field).errors?.minlength?1:-1),f(),L(e.formGroup.get(e.column.field).errors?.maxlength?2:-1),f(),L(e.formGroup.get(e.column.field).errors?.min?3:-1),f(),L(e.formGroup.get(e.column.field).errors?.max?4:-1),f(),L(e.formGroup.get(e.column.field).errors?.email?5:-1),f(),L(e.formGroup.get(e.column.field).errors?.pattern?6:-1)}}var sEe=(r,t,e,i)=>({index:r,rowID:t,key:e,selected:i});var rL=r=>({"grid-template-rows":r});var oEe=(r,t)=>({"grid-template-rows":r,"grid-template-columns":t});var aEe=(r,t,e)=>({"grid-template-rows":r,"grid-template-columns":t,"z-index":e});var HS=(r,t,e,i,n,s,o)=>[r,t,e,i,n,s,o];var bh=(r,t,e,i,n,s)=>[r,t,e,i,n,s];function mT(r,t){return this.trackPinnedColumn(t)}function lEe(r,t){r&1&&xe(0)}function cEe(r,t){r&1&&xe(0)}function dEe(r,t){if(r&1){let e=de();v(0,`div`,11),j(`animationend`,function(){V(e);return $(x().animationEndHandler())}),Z(1,cEe,1,0,`ng-container`,10),b()}if(r&2){let e=x(),i=J(4);we(`igx-grid__tr--add-animate`,e.triggerAddAnimationClass),f(),I(`ngTemplateOutlet`,i)}}function uEe(r,t){r&1&&xe(0)}function hEe(r,t){if(r&1&&(v(0,`div`,15),j(`click`,function(i){return i.stopPropagation()}),Z(1,uEe,1,0,`ng-container`,10),b()),r&2){let e=x(2);On(e.resolveDragIndicatorClasses),I(`igxRowDrag`,e)(`ghostTemplate`,e.grid.getDragGhostCustomTemplate()),f(),I(`ngTemplateOutlet`,e.grid.dragIndicatorIconTemplate?e.grid.dragIndicatorIconTemplate:e.grid.dragIndicatorIconBase)}}function gEe(r,t){}function pEe(r,t){r&1&&Z(0,gEe,0,0,`ng-template`)}function fEe(r,t){if(r&1){let e=de();v(0,`div`,16),j(`pointerdown`,function(n){return n.preventDefault()})(`click`,function(n){V(e);return $(x(2).onRowSelectorClick(n))}),Z(1,pEe,1,0,null,17),b()}if(r&2){let e=x(2),i=J(8);f(),I(`ngTemplateOutlet`,e.grid.rowSelectorTemplate?e.grid.rowSelectorTemplate:i)(`ngTemplateOutletContext`,Et(7,fp,sa(2,sEe,e.viewIndex,e.key,e.key,e.selected)))}}function mEe(r,t){if(r&1&&(v(0,`div`,18),j(`pointerdown`,function(i){return i.preventDefault()})(`click`,function(i){return i.stopPropagation()}),b()),r&2)On(A0(`igx-grid__row-indentation igx-grid__row-indentation--level-`,x(2).grid.groupingExpressions.length))}function xEe(r,t){r&1&&xe(0)}function yEe(r,t){if(r&1&&(v(0,`div`,21),Z(1,xEe,1,0,`ng-container`,17),b()),r&2){let e=x().$implicit,i=x(4),n=J(10),s=J(12);ve(`height`,i.metaData?.cellMergeMeta.get(e.field)?.rowSpan>1?i.getRowHeight():null,`px`)(`visibility`,i.metaData?.cellMergeMeta.get(e.field)?.root?`hidden`:`visible`),I(`ngStyle`,Et(7,rL,i.metaData?.cellMergeMeta.get(e.field)?.rowSpan>1?i.getMergeCellSpan(e):null)),f(),I(`ngTemplateOutlet`,e.visibleIndex===0&&i.grid.hasDetails?s:n)(`ngTemplateOutletContext`,i.getContext(e,i))}}function _Ee(r,t){r&1&&xe(0)}function vEe(r,t){if(r&1&&Z(0,_Ee,1,0,`ng-container`,17),r&2){let e=x().$implicit,i=x(4),n=J(10),s=J(12);I(`ngTemplateOutlet`,e.visibleIndex===0&&i.grid.hasDetails?s:n)(`ngTemplateOutletContext`,i.getContext(e,i))}}function bEe(r,t){if(r&1&&F(0,yEe,2,9,`div`,20)(1,vEe,1,2,`ng-container`),r&2)L(x(4).hasMergedCells?0:1)}function SEe(r,t){if(r&1&&(et(0,bEe,2,1,null,null,mT,!0),ue(2,`igxNotGrouped`)),r&2)tt(nr(2,0,x(3).pinnedStartColumns))}function wEe(r,t){r&1&&xe(0)}function CEe(r,t){if(r&1&&(v(0,`div`,21),Z(1,wEe,1,0,`ng-container`,17),b()),r&2){let e=x().$implicit,i=x(3),n=J(10),s=J(12);ve(`height`,i.metaData?.cellMergeMeta.get(e.field)?.rowSpan>1?i.getRowHeight():null,`px`)(`visibility`,i.metaData?.cellMergeMeta.get(e.field)?.root?`hidden`:`visible`),I(`ngStyle`,Et(7,rL,i.metaData?.cellMergeMeta.get(e.field)?.rowSpan>1?i.getMergeCellSpan(e):null)),f(),I(`ngTemplateOutlet`,e.visibleIndex===0&&i.grid.hasDetails?s:n)(`ngTemplateOutletContext`,i.getContext(e,i))}}function IEe(r,t){r&1&&xe(0)}function NEe(r,t){if(r&1&&Z(0,IEe,1,0,`ng-container`,17),r&2){let e=x().$implicit,i=x(3),n=J(10),s=J(12);I(`ngTemplateOutlet`,e.visibleIndex===0&&i.grid.hasDetails?s:n)(`ngTemplateOutletContext`,i.getContext(e,i))}}function DEe(r,t){if(r&1&&F(0,CEe,2,9,`div`,20)(1,NEe,1,2,`ng-container`),r&2)L(x(3).hasMergedCells?0:1)}function kEe(r,t){r&1&&xe(0)}function EEe(r,t){if(r&1&&(v(0,`div`,21),Z(1,kEe,1,0,`ng-container`,17),b()),r&2){let e=x().$implicit,i=x(4),n=J(10),s=J(12);ve(`height`,i.metaData?.cellMergeMeta.get(e.field)?.rowSpan>1?i.getRowHeight():null,`px`)(`visibility`,i.metaData?.cellMergeMeta.get(e.field)?.root?`hidden`:`visible`),I(`ngStyle`,Et(7,rL,i.metaData?.cellMergeMeta.get(e.field)?.rowSpan>1?i.getMergeCellSpan(e):null)),f(),I(`ngTemplateOutlet`,e.visibleIndex===0&&i.grid.hasDetails?s:n)(`ngTemplateOutletContext`,i.getContext(e,i))}}function TEe(r,t){r&1&&xe(0)}function MEe(r,t){if(r&1&&Z(0,TEe,1,0,`ng-container`,17),r&2){let e=x().$implicit,i=x(4),n=J(10),s=J(12);I(`ngTemplateOutlet`,e.visibleIndex===0&&i.grid.hasDetails?s:n)(`ngTemplateOutletContext`,i.getContext(e,i))}}function AEe(r,t){if(r&1&&F(0,EEe,2,9,`div`,20)(1,MEe,1,2,`ng-container`),r&2)L(x(4).hasMergedCells?0:1)}function REe(r,t){if(r&1&&(et(0,AEe,2,1,null,null,mT,!0),ue(2,`igxNotGrouped`)),r&2)tt(nr(2,0,x(3).pinnedEndColumns))}function PEe(r,t){if(r&1&&(F(0,SEe,3,2),Z(1,DEe,2,1,`ng-template`,19,8,pe),ue(3,`igxNotGrouped`),F(4,REe,3,2)),r&2){let e=x(2);L(e.pinnedStartColumns.length>0?0:-1),f(),I(`igxGridForOf`,nr(3,8,e.unpinnedColumns))(`igxForScrollContainer`,e.grid.parentVirtDir)(`igxForScrollOrientation`,`horizontal`)(`igxForContainerSize`,e.grid.unpinnedWidth)(`igxForSizePropName`,`calcPixelWidth`)(`igxForTrackBy`,e.grid.trackColumnChanges),f(3),L(e.pinnedEndColumns.length>0?4:-1)}}function OEe(r,t){r&1&&xe(0)}function FEe(r,t){if(r&1&&Z(0,OEe,1,0,`ng-container`,17),r&2){let e=x(3);I(`ngTemplateOutlet`,J(6))(`ngTemplateOutletContext`,e.getContextMRL(e.pinnedStartColumns,e))}}function LEe(r,t){r&1&&xe(0)}function VEe(r,t){if(r&1&&Z(0,LEe,1,0,`ng-container`,17),r&2){let e=t.$implicit,i=x(4),n=J(14),s=J(16);I(`ngTemplateOutlet`,e.visibleIndex===0&&i.grid.hasDetails?s:n)(`ngTemplateOutletContext`,i.getContext(e,i))}}function $Ee(r,t){if(r&1&&(v(0,`div`,21),et(1,VEe,1,2,`ng-container`,null,mT,!0),b()),r&2){let e=t.$implicit;I(`ngStyle`,po(1,oEe,e.getGridTemplate(!0),e.getGridTemplate(!1))),f(),tt(e.children)}}function zEe(r,t){r&1&&xe(0)}function BEe(r,t){if(r&1&&Z(0,zEe,1,0,`ng-container`,17),r&2){let e=x(3);I(`ngTemplateOutlet`,J(6))(`ngTemplateOutletContext`,e.getContextMRL(e.pinnedEndColumns,e))}}function jEe(r,t){if(r&1&&(F(0,FEe,1,2,`ng-container`),Z(1,$Ee,3,4,`ng-template`,19,8,pe),ue(3,`igxTopLevel`),F(4,BEe,1,2,`ng-container`)),r&2){let e=x(2);L(e.pinnedStartColumns.length>0?0:-1),f(),I(`igxGridForOf`,nr(3,8,e.unpinnedColumns))(`igxForScrollContainer`,e.grid.parentVirtDir)(`igxForScrollOrientation`,`horizontal`)(`igxForContainerSize`,e.grid.unpinnedWidth)(`igxForSizePropName`,`calcPixelWidth`)(`igxForTrackBy`,e.grid.trackColumnChanges),f(3),L(e.pinnedEndColumns.length>0?4:-1)}}function HEe(r,t){if(r&1&&(F(0,hEe,2,5,`div`,12),F(1,fEe,2,9,`div`,13),F(2,mEe,1,3,`div`,14),F(3,PEe,5,10),F(4,jEe,5,10)),r&2){let e=x();L(e.rowDraggable?0:-1),f(),L(e.showRowSelectors?1:-1),f(),L(e.grid.groupingExpressions.length>0?2:-1),f(),L(e.grid.hasColumnLayouts?-1:3),f(),L(e.grid.hasColumnLayouts?4:-1)}}function qEe(r,t){r&1&&xe(0)}function GEe(r,t){if(r&1&&Z(0,qEe,1,0,`ng-container`,17),r&2){let e=t.$implicit,i=x(3),n=J(14),s=J(16);I(`ngTemplateOutlet`,e.visibleIndex===0&&i.grid.hasDetails?s:n)(`ngTemplateOutletContext`,i.getContext(e,i))}}function UEe(r,t){if(r&1&&(v(0,`div`,21),et(1,GEe,1,2,`ng-container`,null,tr),b()),r&2){let e=t.$implicit;we(`igx-grid__td--pinned-last`,e.hasLastPinnedChildColumn)(`igx-grid__td--pinned-first`,e.hasFirstPinnedChildColumn),I(`ngStyle`,rd(5,aEe,e.getGridTemplate(!0),e.getGridTemplate(!1),e.pinned?1:null)),f(),tt(e.children)}}function WEe(r,t){if(r&1&&(et(0,UEe,3,9,`div`,22,mT,!0),ue(2,`igxTopLevel`)),r&2){let e=t.$implicit;tt(nr(2,0,e))}}function KEe(r,t){if(r&1&&(v(0,`div`,23),U(1,`igx-checkbox`,24),b()),r&2){let e=x();f(),I(`tabindex`,-1)(`checked`,e.selected)(`readonly`,!0)(`disabled`,e.deleted)(`disableRipple`,!0)(`disableTransitions`,e.grid.disableTransitions),ef(`aria-label`,e.rowCheckboxAriaLabel)}}function YEe(r,t){if(r&1&&(U(0,`igx-grid-cell`,25,9),ue(2,`transactionState`),ue(3,`igxCellStyleClasses`),ue(4,`igxCellStyles`),ue(5,`dataMapper`)),r&2){let e,i=t.$implicit,n=x();ve(`min-width`,i.resolvedWidth)(`max-width`,i.resolvedWidth)(`flex-basis`,i.resolvedWidth),we(`igx-grid__td--merged`,n.metaData?.cellMergeMeta.get(i.field)?.rowSpan>1)(`igx-grid__td--merged-selected`,n.isSelectionRoot(i))(`igx-grid__td--merged-hovered`,n.isHoveredRoot(i))(`igx-grid__td--edited`,Ht(2,42,Gh(70,HS,n.key,i.field,n.grid.rowEditable,n.grid.transactions,n.grid.pipeTrigger,n.grid.gridAPI.crudService.cell,n.grid.gridAPI.crudService.row)))(`igx-grid__td--pinned`,i.pinned)(`igx-grid__td--number`,i.dataType===`number`||i.dataType===`percent`||i.dataType===`currency`)(`igx-grid__td--bool`,i.dataType===`boolean`)(`igx-grid__td--image`,i.dataType===`image`),I(`isMerged`,(n.metaData==null||(e=n.metaData.cellMergeMeta.get(i.field))==null?null:e.rowSpan)>1)(`isPlaceholder`,!!n.metaData?.cellMergeMeta.get(i.field)?.root)(`ngClass`,Ht(3,50,bs(78,bh,i.cellClasses,n.data[i.field],n.data,i.field,n.viewIndex,n.grid.pipeTrigger)))(`ngStyle`,Ht(4,57,bs(85,bh,i.cellStyles,n.data[i.field],n.data,i.field,n.viewIndex,n.grid.pipeTrigger)))(`editMode`,i.editable&&n.grid.crudService.targetInEdit(n.index,i.index))(`column`,i)(`formatter`,i.formatter)(`intRow`,n)(`lastPinned`,i.columnLayoutChild?null:i.isLastPinned)(`firstPinned`,i.columnLayoutChild?null:i.isFirstPinned)(`rowData`,n.data)(`width`,i.getCellWidth())(`visibleColumnIndex`,i.visibleIndex)(`value`,Ht(5,64,Br(92,Fc,n.data,i.field,n.grid.pipeTrigger,n.data[i.field],i.hasNestedPath)))(`cellTemplate`,i.bodyTemplate)(`cellValidationErrorTemplate`,i.errorTemplate)(`lastSearchInfo`,n.grid.lastSearchInfo)(`active`,n.isCellActive(i.visibleIndex))(`cellSelectionMode`,n.grid.cellSelection)(`displayPinnedChip`,n.shouldDisplayPinnedChip(i))}}function QEe(r,t){if(r&1&&(U(0,`igx-expandable-grid-cell`,26,9),ue(2,`transactionState`),ue(3,`igxCellStyleClasses`),ue(4,`igxCellStyles`),ue(5,`dataMapper`)),r&2){let e,i=t.$implicit,n=x();ve(`min-width`,i.resolvedWidth)(`max-width`,i.resolvedWidth)(`flex-basis`,i.resolvedWidth),we(`igx-grid__td--merged`,n.metaData?.cellMergeMeta.get(i.field)?.rowSpan>1)(`igx-grid__td--merged-selected`,n.isSelectionRoot(i))(`igx-grid__td--merged-hovered`,n.isHoveredRoot(i))(`igx-grid__td--pinned`,i.pinned)(`igx-grid__td--edited`,Ht(2,38,Gh(66,HS,n.key,i.field,n.grid.rowEditable,n.grid.transactions,n.grid.pipeTrigger,n.grid.gridAPI.crudService.cell,n.grid.gridAPI.crudService.row)))(`igx-grid__td--number`,(i.dataType===`number`||i.dataType===`percent`||i.dataType===`currency`)&&i.visibleIndex!==0),I(`isMerged`,(n.metaData==null||(e=n.metaData.cellMergeMeta.get(i.field))==null?null:e.rowSpan)>1)(`isPlaceholder`,!!n.metaData?.cellMergeMeta.get(i.field)?.root)(`ngClass`,Ht(3,46,bs(74,bh,i.cellClasses,n.data[i.field],n.data,i.field,n.viewIndex,n.grid.pipeTrigger)))(`ngStyle`,Ht(4,53,bs(81,bh,i.cellStyles,n.data[i.field],n.data,i.field,n.viewIndex,n.grid.pipeTrigger)))(`expanded`,n.expanded)(`editMode`,i.editable&&n.grid.crudService.targetInEdit(n.index,i.index))(`column`,i)(`formatter`,i.formatter)(`intRow`,n)(`lastPinned`,i.columnLayoutChild?null:i.isLastPinned)(`rowData`,n.data)(`width`,i.getCellWidth())(`visibleColumnIndex`,i.visibleIndex)(`value`,Ht(5,60,Br(88,Fc,n.data,i.field,n.grid.pipeTrigger,n.data[i.field],i.hasNestedPath)))(`cellTemplate`,i.bodyTemplate)(`cellValidationErrorTemplate`,i.errorTemplate)(`lastSearchInfo`,n.grid.lastSearchInfo)(`active`,n.isCellActive(i.visibleIndex))(`cellSelectionMode`,n.grid.cellSelection)(`displayPinnedChip`,n.shouldDisplayPinnedChip(i))}}function XEe(r,t){if(r&1&&(U(0,`igx-grid-cell`,27,9),ue(2,`transactionState`),ue(3,`igxCellStyleClasses`),ue(4,`igxCellStyles`),ue(5,`dataMapper`)),r&2){let e=t.$implicit,i=x();ve(`grid-row-end`,e.rowEnd)(`grid-column-end`,e.colEnd)(`grid-row-start`,e.rowStart)(`grid-column-start`,e.colStart),we(`igx-grid__td--edited`,Ht(2,31,Gh(59,HS,i.key,e.field,i.grid.rowEditable,i.grid.transactions,i.grid.pipeTrigger,i.grid.gridAPI.crudService.cell,i.grid.gridAPI.crudService.row)))(`igx-grid__td--pinned`,e.pinned)(`igx-grid__td--number`,e.dataType===`number`||e.dataType===`percent`||e.dataType===`currency`),I(`ngClass`,Ht(3,39,bs(67,bh,e.cellClasses,i.data[e.field],i.data,e.field,i.viewIndex,i.grid.pipeTrigger)))(`ngStyle`,Ht(4,46,bs(74,bh,e.cellStyles,i.data[e.field],i.data,e.field,i.viewIndex,i.grid.pipeTrigger)))(`editMode`,e.editable&&i.grid.crudService.targetInEdit(i.index,e.index))(`column`,e)(`lastPinned`,e.columnLayoutChild?null:e.isLastPinned)(`firstPinned`,e.columnLayoutChild?null:e.isFirstPinned)(`formatter`,e.formatter)(`intRow`,i)(`rowData`,i.data)(`visibleColumnIndex`,e.visibleIndex)(`value`,Ht(5,53,Br(81,Fc,i.data,e.field,i.grid.pipeTrigger,i.data[e.field],e.hasNestedPath)))(`cellTemplate`,e.bodyTemplate)(`cellValidationErrorTemplate`,e.errorTemplate)(`lastSearchInfo`,i.grid.lastSearchInfo)(`active`,i.isCellActive(e.visibleIndex))(`cellSelectionMode`,i.grid.cellSelection)(`displayPinnedChip`,i.shouldDisplayPinnedChip(e))}}function ZEe(r,t){if(r&1&&(U(0,`igx-expandable-grid-cell`,28,9),ue(2,`transactionState`),ue(3,`igxCellStyleClasses`),ue(4,`igxCellStyles`),ue(5,`dataMapper`)),r&2){let e=t.$implicit,i=x();ve(`grid-row-end`,e.rowEnd)(`grid-column-end`,e.colEnd)(`grid-row-start`,e.rowStart)(`grid-column-start`,e.colStart),we(`igx-grid__td--edited`,Ht(2,31,Gh(59,HS,i.key,e.field,i.grid.rowEditable,i.grid.transactions,i.grid.pipeTrigger,i.grid.gridAPI.crudService.cell,i.grid.gridAPI.crudService.row)))(`igx-grid__td--pinned`,e.pinned)(`igx-grid__td--number`,(e.dataType===`number`||e.dataType===`percent`||e.dataType===`currency`)&&e.visibleIndex!==0),I(`ngClass`,Ht(3,39,bs(67,bh,e.cellClasses,i.data[e.field],i.data,e.field,i.viewIndex,i.grid.pipeTrigger)))(`ngStyle`,Ht(4,46,bs(74,bh,e.cellStyles,i.data[e.field],i.data,e.field,i.viewIndex,i.grid.pipeTrigger)))(`expanded`,i.expanded)(`editMode`,e.editable&&i.grid.crudService.targetInEdit(i.index,e.index))(`column`,e)(`lastPinned`,e.columnLayoutChild?null:e.isLastPinned)(`formatter`,e.formatter)(`intRow`,i)(`rowData`,i.data)(`visibleColumnIndex`,e.visibleIndex)(`value`,Ht(5,53,Br(81,Fc,i.data,e.field,i.grid.pipeTrigger,i.data[e.field],e.hasNestedPath)))(`cellTemplate`,e.bodyTemplate)(`cellValidationErrorTemplate`,e.errorTemplate)(`lastSearchInfo`,i.grid.lastSearchInfo)(`active`,i.isCellActive(e.visibleIndex))(`cellSelectionMode`,i.grid.cellSelection)(`displayPinnedChip`,i.shouldDisplayPinnedChip(e))}}var JEe=[`loadingOverlay`];var eTe=[`emptyFilteredGrid`];var tTe=[`defaultEmptyGrid`];var iTe=[`defaultLoadingGrid`];var nTe=[`scrollContainer`];var rTe=[`verticalScrollContainer`];var sTe=[`verticalScrollHolder`];var oTe=[`scr`];var aTe=[`headSelectorBaseTemplate`];var lTe=[`footer`];var cTe=[`tbody`];var dTe=[`bodyViewContainerRef`];var uTe=[`pinContainer`];var hTe=[`tfoot`];var gTe=[`dragIndicatorIconBase`];var pTe=[`rowEditingOverlay`];var fTe=[`igxFilteringOverlayOutlet`];var mTe=[`sink`];var xTe=[`defaultESFHeaderIcon`];var yTe=[`defaultRowEditTemplate`];var _Te=[`summaryRow`];var vTe=[`row`];var bTe=[`pinnedRow`];var STe=[`record_template`];var wTe=[`detail_template_container`];var CTe=[`group_template`];var ITe=[`summary_template`];var NTe=[[[`igx-grid-toolbar`],[`igc-grid-toolbar`]],[[`igx-grid-footer`],[`igc-grid-footer`]],[[`igx-paginator`],[`igc-paginator`]],[[`igx-grid-state`],[`igc-grid-state`]],[[`igx-column`],[`igc-column`],[`igx-column-group`],[`igc-column-group`],[`igx-column-layout`],[`igc-column-layout`],[`igx-action-strip`],[`igc-action-strip`]]];var DTe=[`igx-grid-toolbar,igc-grid-toolbar`,`igx-grid-footer,igc-grid-footer`,`igx-paginator,igc-paginator`,`igx-grid-state,igc-grid-state`,`igx-column,igc-column,igx-column-group,igc-column-group,igx-column-layout,igc-column-layout,igx-action-strip,igc-action-strip`];var CZ=(r,t,e,i,n,s,o,a)=>[r,t,e,i,n,s,o,a];var kTe=(r,t,e,i)=>[r,t,e,!1,i];var ETe=()=>[];var sL=(r,t,e,i,n,s,o,a,l,c,d,u)=>[r,t,e,i,n,s,o,a,l,c,!1,d,u];var TTe=(r,t,e,i,n,s,o)=>[r,t,e,i,n,s,o,!0];var MTe=(r,t,e,i,n,s)=>[r,t,e,i,n,s,!0];var ATe=(r,t,e,i)=>[r,t,e,!0,i];var RTe=(r,t)=>({"igx-grid__tr--pinned-bottom":r,"igx-grid__tr--pinned-top":t});var PTe=r=>({"igx-grid__tr-container":!0,"igx-grid__tr-container--active":r});var kZ=r=>({"igx-grid__group-expand-btn":!0,"igx-grid__group-expand-btn--push":r});var OTe=(r,t,e)=>({rowChangesCount:r,endEdit:t,$implicit:e});var FTe=(r,t)=>t.record;var LTe=(r,t)=>t.recordRef||t;function VTe(r,t){if(r&1&&U(0,`igx-grid-group-by-area`,66,27),r&2){let e=x();ve(`flex-basis`,e.outerWidth,`px`),I(`grid`,e)(`expressions`,e.groupingExpressions)(`sortingExpressions`,e.sortingExpressions)(`dropAreaTemplate`,e.dropAreaTemplate)(`dropAreaMessage`,e.dropAreaMessage)}}function $Te(r,t){if(r&1&&U(0,`span`,39),r&2)I(`igxColumnMovingDrop`,x().headerContainer),ie(`droppable`,!0)}function zTe(r,t){if(r&1&&U(0,`span`,67),r&2){let e=x();ve(`left`,e.pinnedStartWidth,`px`),I(`igxColumnMovingDrop`,e.headerContainer),ie(`droppable`,!0)}}function BTe(r,t){r&1&&xe(0)}function jTe(r,t){if(r&1&&(U(0,`igx-grid-row`,69,28),ue(2,`igxGridRowClasses`),ue(3,`igxGridRowStyles`)),r&2){let e=t.$implicit,i=J(1),n=x(2);ve(`top`,n.getMergeCellOffset(e),`px`),I(`gridID`,n.id)(`index`,e.index)(`data`,e.record.recordRef)(`metaData`,e.record)(`ngClass`,Ht(2,8,sv(27,sL,[n.rowClasses,i,i.inEditMode,i.selected,i.dirty,i.deleted,i.dragging,e.index,n.hasColumnLayouts,n.hasCellsToMerge,e.record,n.pipeTrigger])))(`ngStyle`,xr(3,22,n.rowStyles,e.record,e.index,n.pipeTrigger))}}function HTe(r,t){if(r&1&&(v(0,`div`,42),et(1,jTe,4,40,`igx-grid-row`,68,FTe),b()),r&2){let e=x();I(`IgxScrollInertiaScrollContainer`,e.verticalScrollContainer.dc.instance.scrollContainer)(`IgxScrollInertiaDirection`,e.verticalScrollContainer.dc.instance.scrollDirection),f(),tt(e.mergedDataInView)}}function qTe(r,t){r&1&&xe(0)}function GTe(r,t){if(r&1&&Z(0,qTe,1,0,`ng-container`,44),r&2){let e=t.$implicit,i=t.$index,n=x(4);I(`ngTemplateOutlet`,J(30))(`ngTemplateOutletContext`,n.getContext(e,i,!0))}}function UTe(r,t){if(r&1&&(v(0,`div`,71,29),et(2,GTe,1,2,`ng-container`,null,LTe),b()),r&2){let e=x(),i=x(2);ve(`width`,i.calcWidth,`px`),I(`ngClass`,po(3,RTe,!i.isRowPinningToTop,i.isRowPinningToTop)),f(2),tt(e)}}function WTe(r,t){r&1&&F(0,UTe,4,6,`div`,70),r&2&&L(t.length>0?0:-1)}function KTe(r,t){if(r&1&&(F(0,WTe,1,1),ue(1,`gridTransaction`),ue(2,`visibleColumns`),ue(3,`gridAddRow`),ue(4,`gridRowPinning`),ue(5,`gridFiltering`),ue(6,`gridSort`),ue(7,`gridCellMerge`),ue(8,`gridUnmergeActive`)),r&2){let e,i=x();L((e=Ht(8,40,sa(67,ATe,Ht(7,34,Br(61,Fc,Ht(6,26,bs(54,MTe,Ht(5,17,Gh(46,TTe,xr(4,12,bt(3,8,fo(2,5,bt(1,1,i.data,i.id,i.pipeTrigger),i.hasVisibleColumns),!0,i.pipeTrigger),i.id,!0,i.pipeTrigger),i.filteringExpressionsTree,i.filterStrategy,i.advancedFilteringExpressionsTree,i.id,i.pipeTrigger,i.filteringPipeTrigger)),i.sortingExpressions,i.groupingExpressions,i.sortStrategy,i.id,i.pipeTrigger)),i.columnsToMerge,i.cellMergeMode,i.mergeStrategy,i.pipeTrigger)),i.columnsToMerge,i.activeRowIndexes,i.pipeTrigger)))?0:-1,e)}}function YTe(r,t){}function QTe(r,t){if(r&1){let e=de();v(0,`div`),Z(1,YTe,0,0,`ng-template`,72),j(`cachedViewLoaded`,function(n){V(e);return $(x().cachedViewLoaded(n))})(`viewCreated`,function(n){V(e);return $(x().viewCreatedHandler(n))})(`beforeViewDetach`,function(n){V(e);return $(x().viewDetachHandler(n))})(`viewMoved`,function(n){V(e);return $(x().viewMovedHandler(n))}),b()}if(r&2){let e=t.$implicit,i=t.index,n=x();ie(`data-index`,i),f(),I(`igxTemplateOutlet`,n.getRowTemplate(e))(`igxTemplateOutletContext`,n.getContext(e,i))}}function XTe(r,t){r&1&&xe(0)}function ZTe(r,t){if(r&1&&(U(0,`igx-grid-row`,73,28),ue(2,`igxGridRowClasses`),ue(3,`igxGridRowStyles`)),r&2){let e=t.index,i=t.$implicit,n=t.disabled,s=t.metaData,o=J(1),a=x();I(`gridID`,a.id)(`index`,e)(`data`,i)(`disabled`,n)(`metaData`,s)(`ngClass`,Ht(2,7,sv(26,sL,[a.rowClasses,o,o.inEditMode,o.selected,o.dirty,o.deleted,o.dragging,e,a.hasColumnLayouts,a.hasCellsToMerge,i,a.pipeTrigger])))(`ngStyle`,xr(3,21,a.rowStyles,i,e,a.pipeTrigger))}}function JTe(r,t){if(r&1&&(U(0,`igx-grid-row`,74,30),ue(3,`igxGridRowClasses`),ue(4,`igxGridRowStyles`)),r&2){let e=t.index,i=t.$implicit,n=t.metaData,s=J(1),o=x();I(`gridID`,o.id)(`index`,e)(`data`,i)(`metaData`,n)(`ngClass`,Ht(3,6,sv(25,sL,[o.rowClasses,s,s.inEditMode,s.selected,s.dirty,s.deleted,s.dragging,e,o.hasColumnLayouts,o.hasCellsToMerge,i,o.pipeTrigger])))(`ngStyle`,xr(4,20,o.rowStyles,i,e,o.pipeTrigger))}}function eMe(r,t){if(r&1&&U(0,`igx-grid-groupby-row`,75,28),r&2){let e=t.index,i=t.$implicit,n=x();I(`gridID`,n.id)(`index`,e)(`groupRow`,i)(`hideGroupRowSelectors`,n.hideRowSelectors)(`rowDraggable`,n.rowDraggable)}}function tMe(r,t){if(r&1&&U(0,`igx-grid-summary-row`,76,31),r&2){let e=t.index,i=t.$implicit;I(`gridID`,x().id)(`summaries`,i.summaries)(`index`,e)}}function iMe(r,t){if(r&1&&U(0,`div`),r&2)On(A0(`igx-grid__row-indentation igx-grid__row-indentation--level-`,x(2).groupingExpressions.length))}function nMe(r,t){}function rMe(r,t){if(r&1){let e=de();v(0,`div`,77,32),j(`pointerdown`,function(){let n=V(e).index,s=J(1);return $(x().detailsViewFocused(s,n))}),v(2,`div`,78),F(3,iMe,1,3,`div`,79),Z(4,nMe,0,0,`ng-template`,80),b()()}if(r&2){let e=t.index,i=t.$implicit,n=x();I(`id`,q5(``,n.id,`_`,e))(`ngClass`,Et(8,PTe,n.isDetailActive(e))),ie(`data-rowindex`,e),f(3),L(n.groupingExpressions.length>0?3:-1),f(),I(`ngTemplateOutlet`,n.detailTemplate)(`ngTemplateOutletContext`,n.getDetailsContext(i,e))}}function sMe(r,t){r&1&&xe(0)}function oMe(r,t){if(r&1&&U(0,`span`,45),r&2)I(`igxColumnMovingDrop`,x().headerContainer),ie(`droppable`,!0)}function aMe(r,t){}function lMe(r,t){r&1&&U(0,`igx-circular-bar`,55),r&2&&I(`indeterminate`,!0)}function cMe(r,t){if(r&1&&(U(0,`igx-grid-summary-row`,81,31),ue(2,`igxGridSummaryDataPipe`)),r&2){let e=x();ve(`width`,e.calcWidth,`px`)(`height`,e.summaryRowHeight,`px`),I(`gridID`,e.id)(`summaries`,fo(2,7,e.id,e.summaryService.retriggerRootPipe))(`index`,e.dataView.length)}}function dMe(r,t){}function uMe(r,t){r&1&&xe(0)}function hMe(r,t){if(r&1&&(v(0,`span`),Z(1,uMe,1,0,`ng-container`,41),b()),r&2){let e=x(2),i=J(77);f(),I(`ngTemplateOutlet`,e.addRowEmptyTemplate||i)}}function gMe(r,t){if(r&1&&(v(0,`span`,82)(1,`span`),B(2),b(),F(3,hMe,2,1,`span`),b()),r&2){let e=x();f(2),Ie(e.emptyFilteredGridMessage),f(),L(e.showAddButton?3:-1)}}function pMe(r,t){r&1&&xe(0)}function fMe(r,t){if(r&1&&(v(0,`span`),Z(1,pMe,1,0,`ng-container`,41),b()),r&2){let e=x(2),i=J(77);f(),I(`ngTemplateOutlet`,e.addRowEmptyTemplate||i)}}function mMe(r,t){if(r&1&&(v(0,`span`,82)(1,`span`),B(2),b(),F(3,fMe,2,1,`span`),b()),r&2){let e=x();f(2),Ie(e.emptyGridMessage),f(),L(e.showAddButton?3:-1)}}function xMe(r,t){if(r&1){let e=de();v(0,`button`,83),j(`click`,function(n){V(e);return $(x().crudService.enterAddRowMode(null,!1,n))}),B(1),b()}if(r&2){let e=x();f(),Ce(` `,e.resourceStrings.igx_grid_add_row_label,` `)}}function yMe(r,t){r&1&&(v(0,`div`,84),U(1,`igx-circular-bar`,55),b()),r&2&&(f(),I(`indeterminate`,!0))}function _Me(r,t){if(r&1&&U(0,`igx-icon`,85),r&2)I(`ngClass`,Et(1,kZ,x().filteringService.isFilterRowVisible))}function vMe(r,t){if(r&1&&U(0,`igx-icon`,86),r&2)I(`ngClass`,Et(1,kZ,x().filteringService.isFilterRowVisible))}function bMe(r,t){r&1&&xe(0)}function SMe(r,t){if(r&1&&(v(0,`div`,54,33)(2,`div`,87),Z(3,bMe,1,0,`ng-container`,44),b()()),r&2){let e=x();f(2),I(`className`,e.bannerClass),f(),I(`ngTemplateOutlet`,e.rowEditContainer)(`ngTemplateOutletContext`,rd(3,OTe,e.rowChangesCount,e.endEdit.bind(e),e))}}function wMe(r,t){if(r&1&&(B(0),ue(1,`igxStringReplace`),ue(2,`igxStringReplace`)),r&2){let e=x();Ce(` `,bt(2,5,bt(1,1,e.resourceStrings.igx_grid_row_edit_text,`{0}`,e.rowChangesCount.toString()),`{1}`,e.hiddenColumnsCount.toString()),` +`)}}function CMe(r,t){if(r&1){let e=de();v(0,`button`,88),j(`click`,function(n){V(e);return $(x().endRowEditTabStop(!1,n))}),B(1),b(),v(2,`button`,88),j(`click`,function(n){V(e);return $(x().endRowEditTabStop(!0,n))}),B(3),b()}if(r&2){let e=x();f(),Ie(e.resourceStrings.igx_grid_row_edit_btn_cancel),f(2),Ie(e.resourceStrings.igx_grid_row_edit_btn_done)}}function IMe(r,t){r&1&&xe(0)}function NMe(r,t){r&1&&xe(0)}function DMe(r,t){if(r&1&&(v(0,`div`,89)(1,`span`,90),Z(2,IMe,1,0,`ng-container`,44),b()(),v(3,`div`,91)(4,`div`,92),Z(5,NMe,1,0,`ng-container`,44),b()()),r&2){let e=x(),i=J(86),n=J(88);f(2),I(`ngTemplateOutlet`,e.crudService.row?.isAddRow?e.rowAddTextTemplate:e.rowEditTextTemplate?e.rowEditTextTemplate:i)(`ngTemplateOutletContext`,Et(4,fp,e.crudService.row?.isAddRow?null:e.rowChangesCount)),f(3),I(`ngTemplateOutlet`,e.rowEditActionsTemplate?e.rowEditActionsTemplate:n)(`ngTemplateOutletContext`,Et(6,fp,e.endEdit.bind(e)))}}function kMe(r,t){r&1&&U(0,`igx-icon`,93)}function EMe(r,t){r&1&&U(0,`igx-grid-column-resizer`)}function TMe(r,t){r&1&&(U(0,`div`,94,34),Ae(2,3),Ae(3,4))}var MMe=(()=>{class r extends tZ{groupBy(e){let i=sn(this.grid.groupingExpressions);this.prepare_grouping_expression([i],e),this.grid.groupingExpressions=i,this.arrange_sorting_expressions()}groupBy_multiple(e){let i=sn(this.grid.groupingExpressions);for(let n of e)this.prepare_grouping_expression([i],n);this.grid.groupingExpressions=i,this.arrange_sorting_expressions()}clear_groupby(e){let i=sn(this.grid.groupingExpressions);if(e){let n=typeof e==`string`?[e]:e,s=i.filter(o=>n.indexOf(o.fieldName)<0);this.grid.groupingExpressions=s,n.forEach(o=>{let a=i.findIndex(d=>d.fieldName===o),l=this.grid.groupingExpansionState,c=l.filter(d=>d.hierarchy&&d.hierarchy.length<=a);c.length!==l.length&&(this.grid.groupingExpansionState=c)})}else this.grid.groupingExpressions=[],this.grid.groupingExpansionState=[]}groupBy_get_expanded_for_group(e){let i=this.grid.groupingExpansionState,n=Hn.getHierarchy(e);return i.find(s=>Hn.isHierarchyMatch(s.hierarchy||[{fieldName:e.expression.fieldName,value:e.value}],n,this.grid.groupingExpressions))}groupBy_is_row_in_group(e,i){let n=this.grid,s=!1;return e.records.forEach(o=>{(n.primaryKey?o[n.primaryKey]===i:o===i)&&(s=!0)}),s}groupBy_toggle_group(e){let i=this.grid;i.gridAPI.crudService.cellInEditMode&&this.crudService.endEdit(!1);let n=i.groupingExpansionState,s=this.groupBy_get_expanded_for_group(e);s?s.expanded=!s.expanded:n.push({expanded:!i.groupsExpanded,hierarchy:Hn.getHierarchy(e)}),this.grid.groupingExpansionState=[...n],i.rowEditable&&i.repositionRowEditingOverlay(i.gridAPI.crudService.rowInEditMode)}set_grouprow_expansion_state(e,i){this.grid.isExpandedGroup(e)!==i&&this.groupBy_toggle_group(e)}groupBy_fully_expand_group(e){let i=this.groupBy_get_expanded_for_group(e);(i?i.expanded:this.grid.groupsExpanded)||this.groupBy_toggle_group(e),e.groupParent&&this.groupBy_fully_expand_group(e.groupParent)}groupBy_select_all_rows_in_group(e,i){this.grid.selectionService.selectRowsWithNoEvent(this.grid.primaryKey?e.records.map(n=>n[this.grid.primaryKey]):e.records,i)}groupBy_deselect_all_rows_in_group(e){this.grid.selectionService.deselectRowsWithNoEvent(this.grid.primaryKey?e.records.map(i=>i[this.grid.primaryKey]):e.records)}arrange_sorting_expressions(){let e=this.grid.groupingExpressions,i=sn(this.grid.sortingExpressions);for(let n of e){let s=i.findIndex(o=>o.fieldName===n.fieldName);s>-1&&i.splice(s,1)}this.grid.sortingExpressions=i}get_groupBy_record_id(e){let i=`{ `,n=Hn.getHierarchy(e);for(let s=0;ss.fieldName===e);n!==-1&&i.splice(n,1)}static{this.ɵfac=(()=>{let e;return function(n){return(e||(e=pt(r)))(n||r)}})()}static{this.ɵprov=ze({token:r,factory:r.ɵfac})}}return r})();var nL=(()=>{class r{get focused(){return this.isActive()}get currencyCode(){return this.grid.i18nFormatter.getCurrencyCode(this.grid.locale,this.groupRow.column.pipeArgs.currencyCode)}constructor(){this.grid=C(er),this.gridSelection=C(Uy),this.element=C(Se),this.cdr=C(at),this.filteringService=C(Mm),this.isFocused=!1,this.destroy$=new Te,this.defaultCssClass=`igx-grid__group-row`,this.paddingIndentationCssClass=`igx-grid__group-row--padding-level`,this.role=`row`,this.gridSelection.selectedRowsChange.pipe(oe(this.destroy$)).subscribe(()=>{this.cdr.markForCheck()})}activate(){this.grid.navigation.setActiveNode({row:this.index})}onClick(e){this.grid.rowClick.emit({row:this.grid.createRow(this.index),event:e})}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}get expanded(){return this.grid.isExpandedGroup(this.groupRow)}get describedBy(){let e=this.groupRow.expression!==void 0?this.groupRow.expression.fieldName:``;return this.gridID+`_`+e}get dataRowIndex(){return this.index}get nativeElement(){return this.element.nativeElement}get attrCellID(){return`${this.gridID}_${this.index}`}get styleClasses(){return`${this.defaultCssClass} ${this.paddingIndentationCssClass}-`+this.groupRow.level+(this.isActive()?` ${this.defaultCssClass}--active`:``)}isActive(){return this.grid.navigation.activeNode?this.grid.navigation.activeNode.row===this.index:!1}getRowID(e){return this.grid.primaryKey?e[this.grid.primaryKey]:e}onGroupSelectorClick(e){this.grid.isMultiRowSelectionEnabled&&(e.stopPropagation(),this.areAllRowsInTheGroupSelected?this.gridSelection.deselectRows(this.groupRow.records.map(i=>this.getRowID(i)),e):this.gridSelection.selectRows(this.groupRow.records.map(i=>this.getRowID(i)),!1,e))}toggle(){this.grid.toggleGroup(this.groupRow)}get iconTemplate(){return this.expanded?this.grid.rowExpandedIndicatorTemplate||this.defaultGroupByExpandedTemplate:this.grid.rowCollapsedIndicatorTemplate||this.defaultGroupByCollapsedTemplate}get selectionNode(){return{row:this.index,column:this.gridSelection.activeElement?this.gridSelection.activeElement.column:0}}get dataType(){let e=this.groupRow.column;return e&&e.dataType||se.String}get formatter(){let e=this.groupRow.column;return e&&e.formatter||null}get areAllRowsInTheGroupSelected(){return this.groupRow.records.every(e=>this.gridSelection.isRowSelected(this.getRowID(e)))}get selectedRowsInTheGroup(){let e=new Set(this.gridSelection.filteredSelectedRowIds);return this.groupRow.records.filter(i=>e.has(this.getRowID(i)))}get groupByRowCheckboxIndeterminateState(){return this.selectedRowsInTheGroup.length>0?!this.areAllRowsInTheGroupSelected:!1}get groupByRowSelectorBaseAriaLabel(){return(this.areAllRowsInTheGroupSelected?this.grid.resourceStrings.igx_grid_groupByArea_deselect_message:this.grid.resourceStrings.igx_grid_groupByArea_select_message).replace(`{0}`,this.groupRow.expression.fieldName).replace(`{1}`,this.groupRow.value)}get showRowSelectors(){return this.grid.rowSelection!==dn.none&&!this.hideGroupRowSelectors}static{this.ɵfac=function(i){return new(i||r)}}static{this.ɵcmp=re({type:r,selectors:[[`igx-grid-groupby-row`]],viewQuery:function(i,n){if(i&1&&Qe(nke,7)(rke,7,fe)(ske,7,fe),i&2){let s;R(s=P())&&(n.groupContent=s.first),R(s=P())&&(n.defaultGroupByExpandedTemplate=s.first),R(s=P())&&(n.defaultGroupByCollapsedTemplate=s.first)}},hostVars:6,hostBindings:function(i,n){i&1&&j(`pointerdown`,function(){return n.activate()})(`click`,function(o){return n.onClick(o)}),i&2&&(ie(`aria-describedby`,n.describedBy)(`data-rowIndex`,n.dataRowIndex)(`id`,n.attrCellID)(`role`,n.role),On(n.styleClasses))},inputs:{hideGroupRowSelectors:`hideGroupRowSelectors`,rowDraggable:`rowDraggable`,index:`index`,gridID:`gridID`,groupRow:`groupRow`,isFocused:`isFocused`},decls:17,vars:11,consts:[[`defaultGroupRow`,``],[`groupContent`,``],[`defaultGroupByExpandedTemplate`,``],[`defaultGroupByCollapsedTemplate`,``],[`defaultGroupByTemplate`,``],[`groupByRowSelectorBaseTemplate`,``],[`groupByRowSelector`,``],[`groupByRowCheckbox`,``],[`role`,`gridcell`,1,`igx-grid__drag-indicator`,`igx-grid__tr-action`],[`role`,`gridcell`,1,`igx-grid__cbx-selection`,`igx-grid__tr-action`],[`role`,`gridcell`,1,`igx-grid__grouping-indicator`,3,`click`],[4,`ngTemplateOutlet`,`ngTemplateOutletContext`],[`role`,`gridcell`,1,`igx-grid__group-content`],[`family`,`default`,`name`,`drag_indicator`],[`role`,`gridcell`,1,`igx-grid__cbx-selection`,`igx-grid__tr-action`,3,`pointerdown`,`click`],[`family`,`default`,`name`,`tree_collapse`],[`family`,`default`,`name`,`tree_expand`],[1,`igx-group-label`],[`family`,`default`,`name`,`group_work`,1,`igx-group-label__icon`],[1,`igx-group-label__column-name`],[1,`igx-group-label__text`],[1,`igx-group-label__count-badge`,3,`value`],[1,`igx-grid__cbx-padding`],[3,`tabindex`,`readonly`,`checked`,`disableRipple`,`indeterminate`,`disabled`,`aria-label`]],template:function(i,n){if(i&1&&(bi(0,null,0),F(2,ake,2,2,`div`,8),F(3,dke,2,8,`div`,9),v(4,`div`,10),j(`click`,function(){return n.toggle()}),Z(5,uke,1,0,`ng-container`,11),b(),v(6,`div`,12,1),Z(8,hke,1,0,`ng-container`,11),b(),Z(9,gke,1,0,`ng-template`,null,2,pe)(11,pke,1,0,`ng-template`,null,3,pe)(13,fke,12,33,`ng-template`,null,4,pe)(15,mke,3,7,`ng-template`,null,5,pe),mi()),i&2){let s=J(14);f(2),L(n.rowDraggable?2:-1),f(),L(n.showRowSelectors?3:-1),f(),ie(`aria-expanded`,n.expanded),f(),I(`ngTemplateOutlet`,n.iconTemplate)(`ngTemplateOutletContext`,Et(7,fp,n)),f(3),I(`ngTemplateOutlet`,n.grid.groupRowTemplate?n.grid.groupRowTemplate:s)(`ngTemplateOutletContext`,Et(9,fp,n.groupRow))}},dependencies:[Lt,ht,RE,Ls,hb,Lu,Tf,gb,JE],encapsulation:2})}}return r})();var EZ=(()=>{class r extends QE{constructor(){super(...arguments),this.sortingExpressions=[]}handleReorder(e){let{chipsArray:i,originalEvent:n}=e,s=this.getReorderedExpressions(i);this.grid.groupingExpansionState=[],this.expressions=s,n instanceof KeyboardEvent&&(this.grid.groupingExpressions=s)}handleMoveEnd(){this.grid.groupingExpressions=this.expressions}groupBy(e){this.grid.groupBy(e)}clearGrouping(e){this.grid.clearGrouping(e)}static{this.ɵfac=(()=>{let e;return function(n){return(e||(e=pt(r)))(n||r)}})()}static{this.ɵcmp=re({type:r,selectors:[[`igx-grid-group-by-area`]],inputs:{sortingExpressions:`sortingExpressions`,grid:`grid`},features:[it([{provide:QE,useExisting:r}]),ke],decls:7,vars:3,consts:[[`default`,``],[3,`reorder`,`moveEnd`],[`igxGroupAreaDrop`,``,1,`igx-drop-area`,3,`igxDrop`,`hidden`],[4,`ngTemplateOutlet`],[3,`keyDown`,`remove`,`chipClick`,`id`,`title`,`removable`,`draggable`,`disabled`],[`family`,`default`,`igxSuffix`,``,3,`name`],[1,`igx-grid-grouparea__connector`],[`family`,`default`,`name`,`arrow_forward`,3,`hidden`],[`family`,`default`,`name`,`group_work`,1,`igx-drop-area__icon`],[1,`igx-drop-area__text`]],template:function(i,n){if(i&1&&(v(0,`igx-chips-area`,1),j(`reorder`,function(o){return n.handleReorder(o)})(`moveEnd`,function(){return n.handleMoveEnd()}),et(1,yke,11,28,null,null,xke),v(3,`div`,2),j(`igxDrop`,function(o){return n.onDragDrop(o)}),Z(4,_ke,1,0,`ng-container`,3),b()(),Z(5,vke,3,1,`ng-template`,null,0,pe)),i&2){let s=J(6);f(),tt(n.chipExpressions),f(2),I(`hidden`,!n.dropAreaVisible),ie(`gridId`,n.grid.id),f(),I(`ngTemplateOutlet`,n.dropAreaTemplate||s)}},dependencies:[wm,no,ht,Wn,EX,Bu,Lt,xX],encapsulation:2,changeDetection:1})}}return r})();var AMe=(()=>{class r{constructor(){this.grid=C(er)}transform(e,i,n,s){return i?this.addDetailRows(e,n):e}addDetailRows(e,i){let n=[];return e.forEach(s=>{if(n.push(s),!this.grid.isGroupByRecord(s)&&!this.grid.isSummaryRow(s)&&this.grid.gridAPI.get_row_expansion_state(s)){let o={detailsData:s};n.push(o)}}),n}static{this.ɵfac=function(i){return new(i||r)}}static{this.ɵpipe=Dt({name:`gridDetails`,type:r,pure:!0})}}return r})();var RMe=(()=>{class r{constructor(){this.grid=C(er)}transform(e,i,n,s,o,a,l,c){return!e.data||!i||n===oc.rootLevelOnly?e.data:this.addSummaryRows(o,e,s,a)}addSummaryRows(e,i,n,s){let o=[],a=new Map,l=this.grid.summaryService.calcMaxSummaryHeight();if(i.metadata.length&&!this.grid.isGroupByRecord(i.data[0])&&this.grid.isGroupByRecord(i.metadata[0])&&n===el.bottom){let c=[];for(c.push(i.metadata[0]);c[c.length-1].groupParent;)c.push(c[c.length-1].groupParent);c.reverse(),c.forEach(d=>d.skip=!0),i.data.splice(0,0,...c)}for(let c of i.data){let d=!1,u,h=null;if(this.grid.isGroupByRecord(c)?(d=!!c.skip,c.skip=null,h=c,u=this.grid.gridAPI.get_groupBy_record_id(h)):u=this.grid.gridAPI.get_row_id(c),d||o.push(c),n===el.bottom&&s&&h&&!this.grid.isExpandedGroup(h)){let p=this.removeDeletedRecord(this.grid,h.records.slice()),_={summaries:this.grid.summaryService.calculateSummaries(u,p),max:l};o.push(_)}if(n===el.bottom&&a.has(u)){let p=a.get(u);for(let y of p){let _=this.grid.gridAPI.get_groupBy_record_id(y),w=this.removeDeletedRecord(this.grid,y.records.slice()),k={summaries:this.grid.summaryService.calculateSummaries(_,w,y),max:l};o.push(k)}}let g=s?!1:h&&!this.grid.isExpandedGroup(h);if(!(h===null||g)){if(n===el.top){let p=this.removeDeletedRecord(this.grid,h.records.slice()),_={summaries:this.grid.summaryService.calculateSummaries(u,p,h),max:l};o.push(_)}else if(n===el.bottom){let p=h;for(;p.groups&&p.groups.length>0&&this.grid.isExpandedGroup(p);)p=p.groups[p.groups.length-1];let y;this.grid.isExpandedGroup(p)?y=this.grid.gridAPI.get_row_id(p.records[p.records.length-1]):y=this.grid.gridAPI.get_groupBy_record_id(p);let _=a.get(y);_||(_=[],a.set(y,_)),_.unshift(h)}}}return o}removeDeletedRecord(e,i){return e.transactions.enabled&&e.transactions.getTransactionLog().filter(s=>s.type===`delete`).map(s=>s.id).forEach(s=>{let a=(e.primaryKey?i.map(l=>l[e.primaryKey]):i).indexOf(s);a!==-1&&i.splice(a,1)}),i}static{this.ɵfac=function(i){return new(i||r)}}static{this.ɵpipe=Dt({name:`gridSummary`,type:r,pure:!0})}}return r})();var PMe=(()=>{class r{constructor(){this.grid=C(er)}transform(e,i,n,s,o,a,l){let c,d=n.concat(i);return d.length?c=Hn.sort(sn(e),d,s,this.grid):c=e,this.grid.setFilteredSortedData(c,l),c}static{this.ɵfac=function(i){return new(i||r)}}static{this.ɵpipe=Dt({name:`gridSort`,type:r,pure:!0})}}return r})();var OMe=(()=>{class r{constructor(){this.grid=C(er)}transform(e,i,n,s,o,a,l,c){let d={expressions:[],expansion:[],defaultExpanded:o};d.expressions=this.grid.groupingExpressions;let u,h={data:[],metadata:[]};return d.expressions.length?(d.expansion=this.grid.groupingExpansionState,d.defaultExpanded=this.grid.groupsExpanded,u=Hn.group(sn(e),d,s,this.grid,l,h)):(l.splice(0,l.length),u={data:e,metadata:e}),this.grid.groupingFlatResult=u.data,this.grid.groupingResult=h.data,this.grid.groupingMetadata=h.metadata,u}static{this.ɵfac=function(i){return new(i||r)}}static{this.ɵpipe=Dt({name:`gridGroupBy`,type:r,pure:!0})}}return r})();var FMe=(()=>{class r{constructor(){this.grid=C(er)}transform(e,i,n,s,o){return i.length===0?e:Hn.merge(e,i,s,[],this.grid)}static{this.ɵfac=function(i){return new(i||r)}}static{this.ɵpipe=Dt({name:`gridCellMerge`,type:r,pure:!0})}}return r})();var LMe=(()=>{class r{constructor(){this.grid=C(er)}transform(e,i,n,s,o){if(i.length===0)return e;this.grid.hasPinnedRecords&&!s&&this.grid.pinning.rows!==UE.Bottom&&(n=n.map(d=>d-this.grid.pinnedRecordsCount)),n=Array.from(new Set(n)).filter(d=>!isNaN(d));let a=[];n.forEach(d=>{let u=e[d];u&&u.cellMergeMeta&&i.forEach(h=>{let g=u.cellMergeMeta.get(h.field),p=g.root||(g.rowSpan>1?u:null);p&&a.push(p)})});let l=Array.from(new Set(a));if(l.length===0)return e;let c=sn(e);return l.forEach(d=>{let u=d.index,h=[...d.cellMergeMeta.keys()],g=i.filter(p=>h.indexOf(p.field)!==-1);for(let p of g){let _=d.cellMergeMeta.get(p.field).childRecords.map(E=>E.recordRef);if(_.length===0)continue;let w=Hn.merge([d.recordRef,..._],[p],this.grid.mergeStrategy,n.map(E=>E-u),this.grid);for(let E=0;E{class r{constructor(){this.grid=C(er)}transform(e,i,n=0,s=15,o){if(!i||this.grid.pagingMode!==`local`)return e;let a={index:n,recordsPerPage:s},l=this.grid._totalRecords>=0?this.grid._totalRecords:e.data?.length;Hn.correctPagingState(a,l);let c={data:Hn.page(sn(e.data),a,l),metadata:Hn.page(sn(e.metadata),a,l)};return this.grid.page!==a.index&&(this.grid.page=a.index),this.grid.pagingState=a,c}static{this.ɵfac=function(i){return new(i||r)}}static{this.ɵpipe=Dt({name:`gridPaging`,type:r,pure:!0})}}return r})();var $Me=(()=>{class r{constructor(){this.grid=C(er)}transform(e,i,n,s,o,a,l,c){let d={expressionsTree:i,strategy:n,advancedExpressionsTree:s};if(mn.empty(d.expressionsTree)&&mn.empty(d.advancedExpressionsTree))return e;let u=If.filter(sn(e),d,this.grid);return this.grid.setFilteredData(u,c),u}static{this.ɵfac=function(i){return new(i||r)}}static{this.ɵpipe=Dt({name:`gridFiltering`,type:r,pure:!0})}}return r})();var zMe=(()=>{class r extends qF{constructor(){super(...arguments),this.document=C(St),this.expanded=!1}toggle(e){e.stopPropagation();let i=this.grid.gridAPI.get_row_expansion_state(this.intRow.data);this.grid.gridAPI.set_row_expansion_state(this.intRow.key,!i,e)}onIndicatorFocus(){this.grid.crudService.cell&&this.grid.gridAPI.update_cell(this.grid.crudService.cell)}calculateSizeToFit(e){let i=0;if(this.indentationDiv){let s=this.document.defaultView.getComputedStyle(this.indentationDiv.nativeElement);i=parseFloat(s.paddingLeft)}return this.platformUtil.getNodeSizeViaRange(e,this.nativeElement)+i}get iconTemplate(){return this.expanded?this.grid.rowExpandedIndicatorTemplate||this.defaultExpandedTemplate:this.grid.rowCollapsedIndicatorTemplate||this.defaultCollapsedTemplate}get showExpanderIndicator(){let e=this.intRow.pinned&&this.intRow.disabled;return!this.editMode&&(!this.intRow.pinned||e)}static{this.ɵfac=(()=>{let e;return function(n){return(e||(e=pt(r)))(n||r)}})()}static{this.ɵcmp=re({type:r,selectors:[[`igx-expandable-grid-cell`]],viewQuery:function(i,n){if(i&1&&Qe(bke,5,Se)(Ske,5,Se)(NZ,7,fe)(DZ,7,fe),i&2){let s;R(s=P())&&(n.indicator=s.first),R(s=P())&&(n.indentationDiv=s.first),R(s=P())&&(n.defaultExpandedTemplate=s.first),R(s=P())&&(n.defaultCollapsedTemplate=s.first)}},inputs:{expanded:`expanded`},features:[ke],decls:18,vars:6,consts:[[`defaultPinnedIndicator`,``],[`defaultCell`,``],[`addRowCell`,``],[`inlineEditor`,``],[`defaultExpandedTemplate`,``],[`defaultCollapsedTemplate`,``],[`defaultError`,``],[`indicator`,``],[`errorIcon`,``],[`error`,``,`tooltipRef`,`tooltip`],[1,`igx-grid__tree-grouping-indicator`],[4,`ngTemplateOutlet`,`ngTemplateOutletContext`],[1,`igx-grid__td--pinned-chip`,3,`disabled`,`--%NS%ig-size`],[1,`igx-grid__td--pinned-chip`,3,`disabled`],[`igxTextHighlight`,``,1,`igx-grid__td-text`,3,`cssClass`,`igx-grid__td--number`,`activeCssClass`,`groupName`,`value`,`row`,`column`,`containerClass`,`metadata`],[3,`igx-grid__td--bool`],[3,`src`,`alt`],[`igxTextHighlight`,``,1,`igx-grid__td-text`,3,`cssClass`,`activeCssClass`,`groupName`,`value`,`row`,`column`,`containerClass`,`metadata`],[`family`,`default`,3,`name`,`ngClass`],[3,`formGroup`],[3,`--%NS%ig-size`,`formGroup`],[`igxInput`,``,3,`compositionstart`,`compositionend`,`igxFocus`,`formControl`],[`igxInput`,``,`type`,`number`,3,`igxFocus`,`step`,`formControl`],[3,`checked`,`igxFocus`,`disableRipple`,`formControl`],[`mode`,`dropdown`,3,`valueChange`,`locale`,`weekStart`,`value`,`igxFocus`,`formControl`,`inputFormat`,`displayFormat`],[`mode`,`dropdown`,3,`valueChange`,`locale`,`value`,`igxFocus`,`formControl`,`inputFormat`,`displayFormat`],[`type`,`text`,`igxInput`,``,3,`formControl`,`locale`,`igxDateTimeEditor`,`defaultFormatType`,`displayFormat`,`igxFocus`],[1,`igx-grid__tree-grouping-indicator`,3,`click`,`focus`],[`family`,`default`,`name`,`error`,3,`mouseover`,`mouseout`,`igxTooltipTarget`],[`igxTooltip`,``,3,`id`],[`family`,`default`,`name`,`tree_collapse`],[`family`,`default`,`name`,`tree_expand`]],template:function(i,n){i&1&&(Z(0,Ike,1,1,`ng-template`,null,0,pe)(2,Eke,3,3,`ng-template`,null,1,pe)(4,Mke,1,1,`ng-template`,null,2,pe)(6,jke,8,8,`ng-template`,null,3,pe),F(8,qke,3,4,`div`,10),Z(9,Gke,1,0,`ng-container`,11)(10,Uke,1,0,`ng-container`,11),F(11,Kke,7,6),Z(12,Yke,1,0,`ng-template`,null,4,pe)(14,Qke,1,0,`ng-template`,null,5,pe)(16,rEe,7,7,`ng-template`,null,6,pe)),i&2&&(f(8),L(n.showExpanderIndicator?8:-1),f(),I(`ngTemplateOutlet`,n.pinnedIndicatorTemplate)(`ngTemplateOutletContext`,n.context),f(),I(`ngTemplateOutlet`,n.template)(`ngTemplateOutletContext`,n.context),f(),L(n.isInvalid?11:-1))},dependencies:[no,Tx,ht,zi,bl,jo,Rf,Va,Ix,SN,Sb,wb,Kn,bn,kx,Ls,ap,lp,ua,ar,Wn,Lt,hg,Sl,OF,ZE,JE,hb,Tf,gb,Lu],encapsulation:2})}}return r})();var BMe=(()=>{class r extends hp{getContext(e,i){return{$implicit:e,row:i}}getContextMRL(e,i){return{$implicit:e,row:i}}static{this.ɵfac=(()=>{let e;return function(n){return(e||(e=pt(r)))(n||r)}})()}static{this.ɵcmp=re({type:r,selectors:[[`igx-grid-row`]],features:[it([{provide:hp,useExisting:si(()=>r)}]),ke],decls:17,vars:1,consts:[[`addTemp`,``],[`defaultTemp`,``],[`mrlPinnedTemplate`,``],[`rowSelectorBaseTemplate`,``],[`cellTemplate`,``],[`expandableCellTemplate`,``],[`mrlCellTemplate`,``],[`mrlExpandableCellTemplate`,``],[`igxDirRef`,``],[`cell`,``],[4,`ngTemplateOutlet`],[1,`igx-grid__tr--inner`,3,`animationend`],[`role`,`gridcell`,3,`class`,`igxRowDrag`,`ghostTemplate`],[`role`,`gridcell`,1,`igx-grid__cbx-selection`,`igx-grid__tr-action`],[3,`class`],[`role`,`gridcell`,3,`click`,`igxRowDrag`,`ghostTemplate`],[`role`,`gridcell`,1,`igx-grid__cbx-selection`,`igx-grid__tr-action`,3,`pointerdown`,`click`],[4,`ngTemplateOutlet`,`ngTemplateOutletContext`],[3,`pointerdown`,`click`],[`igxGridFor`,``,3,`igxGridForOf`,`igxForScrollContainer`,`igxForScrollOrientation`,`igxForContainerSize`,`igxForSizePropName`,`igxForTrackBy`],[1,`igx-grid__mrl-block`,3,`height`,`visibility`,`ngStyle`],[1,`igx-grid__mrl-block`,3,`ngStyle`],[1,`igx-grid__mrl-block`,3,`igx-grid__td--pinned-last`,`igx-grid__td--pinned-first`,`ngStyle`],[1,`igx-grid__cbx-padding`],[3,`tabindex`,`checked`,`readonly`,`disabled`,`disableRipple`,`disableTransitions`,`aria-label`],[1,`igx-grid__td`,`igx-grid__td--fw`,3,`isMerged`,`isPlaceholder`,`ngClass`,`ngStyle`,`editMode`,`column`,`formatter`,`intRow`,`lastPinned`,`firstPinned`,`rowData`,`width`,`visibleColumnIndex`,`value`,`cellTemplate`,`cellValidationErrorTemplate`,`lastSearchInfo`,`active`,`cellSelectionMode`,`displayPinnedChip`],[1,`igx-grid__td`,`igx-grid__td--fw`,`igx-grid__td--tree-cell`,3,`isMerged`,`isPlaceholder`,`ngClass`,`ngStyle`,`expanded`,`editMode`,`column`,`formatter`,`intRow`,`lastPinned`,`rowData`,`width`,`visibleColumnIndex`,`value`,`cellTemplate`,`cellValidationErrorTemplate`,`lastSearchInfo`,`active`,`cellSelectionMode`,`displayPinnedChip`],[1,`igx-grid__td`,`igx-grid__td--fw`,3,`ngClass`,`ngStyle`,`editMode`,`column`,`lastPinned`,`firstPinned`,`formatter`,`intRow`,`rowData`,`visibleColumnIndex`,`value`,`cellTemplate`,`cellValidationErrorTemplate`,`lastSearchInfo`,`active`,`cellSelectionMode`,`displayPinnedChip`],[1,`igx-grid__td`,`igx-grid__td--fw`,`igx-grid__td--tree-cell`,3,`ngClass`,`ngStyle`,`expanded`,`editMode`,`column`,`lastPinned`,`formatter`,`intRow`,`rowData`,`visibleColumnIndex`,`value`,`cellTemplate`,`cellValidationErrorTemplate`,`lastSearchInfo`,`active`,`cellSelectionMode`,`displayPinnedChip`]],template:function(i,n){if(i&1&&Z(0,lEe,1,0,`ng-container`,10)(1,dEe,2,3,`ng-template`,null,0,pe)(3,HEe,5,5,`ng-template`,null,1,pe)(5,WEe,3,2,`ng-template`,null,2,pe)(7,KEe,2,7,`ng-template`,null,3,pe)(9,YEe,6,98,`ng-template`,null,4,pe)(11,QEe,6,94,`ng-template`,null,5,pe)(13,XEe,6,87,`ng-template`,null,6,pe)(15,ZEe,6,87,`ng-template`,null,7,pe),i&2){let s=J(2),o=J(4);I(`ngTemplateOutlet`,n.addRowUI?s:o)}},dependencies:[Lt,BX,za,of,Ls,qF,zi,zMe,FF,LF,AX,MX,VX,$X],encapsulation:2})}}return r})();var jMe=`@layer ig.base{.igx-grid-thead__title,.igx-grid__td{position:relative;display:flex;flex:1 1 0%;align-items:center;outline-style:none;color:inherit;text-align:start;min-height:var(--cell-height);padding-block:0;background-clip:padding-box !important;font-size:.8125rem;line-height:1rem;padding-inline:max(var(--is-large, 1)*max(1.5rem, -1 * 1.5rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(1rem, -1 * 1rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid-thead__title{flex-flow:row nowrap;justify-content:space-between;align-items:flex-end;min-width:0;min-height:var(--header-size);padding-inline:max(var(--is-large, 1)*max(1.5rem, -1 * 1.5rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(1rem, -1 * 1rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))));padding-block:0;font-size:var(--_grid-head-font-size);font-weight:600;border-inline-end:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38));overflow:hidden;transition:color 120ms ease-in-out;outline-style:none}.igx-grid__td>igx-input-group,.igx-grid__td>igx-combo,.igx-grid__td>igx-simple-combo,.igx-grid__td>igx-select,.igx-grid__td>igx-date-picker,.igx-grid__td>igx-time-picker{position:relative;height:auto;width:100% !important;overflow:hidden;z-index:0}.igx-grid__td>igx-combo igx-input-group,.igx-grid__td>igx-simple-combo igx-input-group,.igx-grid__td>igx-select igx-input-group,.igx-grid__td>igx-date-picker igx-input-group,.igx-grid__td>igx-time-picker igx-input-group,.igx-grid__td>igx-input-group{--_bundle-row: 1}.igx-grid__td>igx-combo igx-input-group input,.igx-grid__td>igx-combo igx-input-group .igx-input-group__input,.igx-grid__td>igx-simple-combo igx-input-group input,.igx-grid__td>igx-simple-combo igx-input-group .igx-input-group__input,.igx-grid__td>igx-select igx-input-group input,.igx-grid__td>igx-select igx-input-group .igx-input-group__input,.igx-grid__td>igx-date-picker igx-input-group input,.igx-grid__td>igx-date-picker igx-input-group .igx-input-group__input,.igx-grid__td>igx-time-picker igx-input-group input,.igx-grid__td>igx-time-picker igx-input-group .igx-input-group__input,.igx-grid__td>igx-input-group input,.igx-grid__td>igx-input-group .igx-input-group__input{height:100%;font-size:.8125rem !important;color:var(--cell-editing-foreground)}.igx-grid__td>igx-combo igx-input-group input,.igx-grid__td>igx-combo igx-input-group .igx-input-group__input:focus,.igx-grid__td>igx-simple-combo igx-input-group input,.igx-grid__td>igx-simple-combo igx-input-group .igx-input-group__input:focus,.igx-grid__td>igx-select igx-input-group input,.igx-grid__td>igx-select igx-input-group .igx-input-group__input:focus,.igx-grid__td>igx-date-picker igx-input-group input,.igx-grid__td>igx-date-picker igx-input-group .igx-input-group__input:focus,.igx-grid__td>igx-time-picker igx-input-group input,.igx-grid__td>igx-time-picker igx-input-group .igx-input-group__input:focus,.igx-grid__td>igx-input-group input,.igx-grid__td>igx-input-group .igx-input-group__input:focus{color:var(--cell-editing-focus-foreground)}.igx-grid__td>igx-combo igx-input-group .igx-input-group__bundle,.igx-grid__td>igx-simple-combo igx-input-group .igx-input-group__bundle,.igx-grid__td>igx-select igx-input-group .igx-input-group__bundle,.igx-grid__td>igx-date-picker igx-input-group .igx-input-group__bundle,.igx-grid__td>igx-time-picker igx-input-group .igx-input-group__bundle,.igx-grid__td>igx-input-group .igx-input-group__bundle{background:rgba(0,0,0,0) !important;height:100% !important;min-height:100% !important;border:none !important}.igx-grid__td>igx-combo igx-input-group .igx-input-group__bundle .igx-input-group__filler,.igx-grid__td>igx-combo igx-input-group .igx-input-group__bundle .igx-input-group__notch,.igx-grid__td>igx-simple-combo igx-input-group .igx-input-group__bundle .igx-input-group__filler,.igx-grid__td>igx-simple-combo igx-input-group .igx-input-group__bundle .igx-input-group__notch,.igx-grid__td>igx-select igx-input-group .igx-input-group__bundle .igx-input-group__filler,.igx-grid__td>igx-select igx-input-group .igx-input-group__bundle .igx-input-group__notch,.igx-grid__td>igx-date-picker igx-input-group .igx-input-group__bundle .igx-input-group__filler,.igx-grid__td>igx-date-picker igx-input-group .igx-input-group__bundle .igx-input-group__notch,.igx-grid__td>igx-time-picker igx-input-group .igx-input-group__bundle .igx-input-group__filler,.igx-grid__td>igx-time-picker igx-input-group .igx-input-group__bundle .igx-input-group__notch,.igx-grid__td>igx-input-group .igx-input-group__bundle .igx-input-group__filler,.igx-grid__td>igx-input-group .igx-input-group__bundle .igx-input-group__notch{border:none !important}.igx-grid__td>igx-combo igx-input-group .igx-input-group__bundle::before,.igx-grid__td>igx-simple-combo igx-input-group .igx-input-group__bundle::before,.igx-grid__td>igx-select igx-input-group .igx-input-group__bundle::before,.igx-grid__td>igx-date-picker igx-input-group .igx-input-group__bundle::before,.igx-grid__td>igx-time-picker igx-input-group .igx-input-group__bundle::before,.igx-grid__td>igx-input-group .igx-input-group__bundle::before{content:none !important}.igx-grid__td>igx-combo igx-input-group .igx-input-group__bundle::after,.igx-grid__td>igx-simple-combo igx-input-group .igx-input-group__bundle::after,.igx-grid__td>igx-select igx-input-group .igx-input-group__bundle::after,.igx-grid__td>igx-date-picker igx-input-group .igx-input-group__bundle::after,.igx-grid__td>igx-time-picker igx-input-group .igx-input-group__bundle::after,.igx-grid__td>igx-input-group .igx-input-group__bundle::after{display:none}.igx-grid__td>igx-combo igx-input-group .igx-input-group__bundle-main,.igx-grid__td>igx-combo igx-input-group .igx-input-group__bundle-start,.igx-grid__td>igx-combo igx-input-group .igx-input-group__bundle-end,.igx-grid__td>igx-simple-combo igx-input-group .igx-input-group__bundle-main,.igx-grid__td>igx-simple-combo igx-input-group .igx-input-group__bundle-start,.igx-grid__td>igx-simple-combo igx-input-group .igx-input-group__bundle-end,.igx-grid__td>igx-select igx-input-group .igx-input-group__bundle-main,.igx-grid__td>igx-select igx-input-group .igx-input-group__bundle-start,.igx-grid__td>igx-select igx-input-group .igx-input-group__bundle-end,.igx-grid__td>igx-date-picker igx-input-group .igx-input-group__bundle-main,.igx-grid__td>igx-date-picker igx-input-group .igx-input-group__bundle-start,.igx-grid__td>igx-date-picker igx-input-group .igx-input-group__bundle-end,.igx-grid__td>igx-time-picker igx-input-group .igx-input-group__bundle-main,.igx-grid__td>igx-time-picker igx-input-group .igx-input-group__bundle-start,.igx-grid__td>igx-time-picker igx-input-group .igx-input-group__bundle-end,.igx-grid__td>igx-input-group .igx-input-group__bundle-main,.igx-grid__td>igx-input-group .igx-input-group__bundle-start,.igx-grid__td>igx-input-group .igx-input-group__bundle-end{height:auto;border:none !important;border-radius:0 !important;box-shadow:none !important}.igx-grid__td>igx-combo igx-input-group .igx-input-group__bundle-main,.igx-grid__td>igx-simple-combo igx-input-group .igx-input-group__bundle-main,.igx-grid__td>igx-select igx-input-group .igx-input-group__bundle-main,.igx-grid__td>igx-date-picker igx-input-group .igx-input-group__bundle-main,.igx-grid__td>igx-time-picker igx-input-group .igx-input-group__bundle-main,.igx-grid__td>igx-input-group .igx-input-group__bundle-main{padding:0}.igx-grid__td>igx-combo igx-input-group .igx-input-group__line,.igx-grid__td>igx-simple-combo igx-input-group .igx-input-group__line,.igx-grid__td>igx-select igx-input-group .igx-input-group__line,.igx-grid__td>igx-date-picker igx-input-group .igx-input-group__line,.igx-grid__td>igx-time-picker igx-input-group .igx-input-group__line,.igx-grid__td>igx-input-group .igx-input-group__line{display:none}.igx-grid__td>igx-combo igx-input-group igx-prefix,.igx-grid__td>igx-combo igx-input-group igx-suffix,.igx-grid__td>igx-simple-combo igx-input-group igx-prefix,.igx-grid__td>igx-simple-combo igx-input-group igx-suffix,.igx-grid__td>igx-select igx-input-group igx-prefix,.igx-grid__td>igx-select igx-input-group igx-suffix,.igx-grid__td>igx-date-picker igx-input-group igx-prefix,.igx-grid__td>igx-date-picker igx-input-group igx-suffix,.igx-grid__td>igx-time-picker igx-input-group igx-prefix,.igx-grid__td>igx-time-picker igx-input-group igx-suffix,.igx-grid__td>igx-input-group igx-prefix,.igx-grid__td>igx-input-group igx-suffix{background:inherit !important;border-radius:0 !important;padding-top:0 !important;padding-bottom:0 !important;border:none !important;padding-inline:max(var(--is-large, 1)*max(0.5rem, -1 * 0.5rem),var(--is-medium, 1)*max(0.375rem, -1 * 0.375rem),var(--is-small, 1)*max(0.25rem, -1 * 0.25rem)) !important}.igx-grid__td>igx-combo igx-input-group .igx-input-group__input,.igx-grid__td>igx-combo igx-input-group .igx-input-group__file-input,.igx-grid__td>igx-combo igx-input-group .igx-input-group__textarea,.igx-grid__td>igx-simple-combo igx-input-group .igx-input-group__input,.igx-grid__td>igx-simple-combo igx-input-group .igx-input-group__file-input,.igx-grid__td>igx-simple-combo igx-input-group .igx-input-group__textarea,.igx-grid__td>igx-select igx-input-group .igx-input-group__input,.igx-grid__td>igx-select igx-input-group .igx-input-group__file-input,.igx-grid__td>igx-select igx-input-group .igx-input-group__textarea,.igx-grid__td>igx-date-picker igx-input-group .igx-input-group__input,.igx-grid__td>igx-date-picker igx-input-group .igx-input-group__file-input,.igx-grid__td>igx-date-picker igx-input-group .igx-input-group__textarea,.igx-grid__td>igx-time-picker igx-input-group .igx-input-group__input,.igx-grid__td>igx-time-picker igx-input-group .igx-input-group__file-input,.igx-grid__td>igx-time-picker igx-input-group .igx-input-group__textarea,.igx-grid__td>igx-input-group .igx-input-group__input,.igx-grid__td>igx-input-group .igx-input-group__file-input,.igx-grid__td>igx-input-group .igx-input-group__textarea{box-shadow:none !important;border:none !important}.igx-grid__td>igx-combo igx-input-group .igx-input-group--disabled,.igx-grid__td>igx-combo igx-input-group .igx-input-group--disabled igx-prefix,.igx-grid__td>igx-combo igx-input-group .igx-input-group--disabled igx-suffix,.igx-grid__td>igx-simple-combo igx-input-group .igx-input-group--disabled,.igx-grid__td>igx-simple-combo igx-input-group .igx-input-group--disabled igx-prefix,.igx-grid__td>igx-simple-combo igx-input-group .igx-input-group--disabled igx-suffix,.igx-grid__td>igx-select igx-input-group .igx-input-group--disabled,.igx-grid__td>igx-select igx-input-group .igx-input-group--disabled igx-prefix,.igx-grid__td>igx-select igx-input-group .igx-input-group--disabled igx-suffix,.igx-grid__td>igx-date-picker igx-input-group .igx-input-group--disabled,.igx-grid__td>igx-date-picker igx-input-group .igx-input-group--disabled igx-prefix,.igx-grid__td>igx-date-picker igx-input-group .igx-input-group--disabled igx-suffix,.igx-grid__td>igx-time-picker igx-input-group .igx-input-group--disabled,.igx-grid__td>igx-time-picker igx-input-group .igx-input-group--disabled igx-prefix,.igx-grid__td>igx-time-picker igx-input-group .igx-input-group--disabled igx-suffix,.igx-grid__td>igx-input-group .igx-input-group--disabled,.igx-grid__td>igx-input-group .igx-input-group--disabled igx-prefix,.igx-grid__td>igx-input-group .igx-input-group--disabled igx-suffix{color:var(--cell-disabled-color)}.igx-grid__td>igx-combo igx-input-group .igx-input-group__toggle-button,.igx-grid__td>igx-simple-combo igx-input-group .igx-input-group__toggle-button,.igx-grid__td>igx-select igx-input-group .igx-input-group__toggle-button,.igx-grid__td>igx-date-picker igx-input-group .igx-input-group__toggle-button,.igx-grid__td>igx-time-picker igx-input-group .igx-input-group__toggle-button,.igx-grid__td>igx-input-group .igx-input-group__toggle-button{margin:0 !important}.igx-grid__td>igx-select igx-input-group,.igx-grid__td>igx-combo igx-input-group,.igx-grid__td>igx-simple-combo igx-input-group,.igx-grid__td>igx-time-picker igx-input-group,.igx-grid__td>igx-date-picker igx-input-group{height:100%}.igx-grid__td>igx-date-range-picker{height:100%}.igx-grid__td>.igx-input-group--indigo .igx-input-group__bundle:hover,.igx-grid__td>.igx-input-group--indigo .igx-input-group__bundle:focus{background:rgba(0,0,0,0)}.igx-grid__td>.igx-input-group--indigo{padding-inline:max(var(--is-large, 1)*max(0.75rem, -1 * 0.75rem),var(--is-medium, 1)*max(0.5rem, -1 * 0.5rem),var(--is-small, 1)*max(0.375rem, -1 * 0.375rem)) !important}.igx-grid__td>.igx-input-group--indigo igx-prefix{padding-inline-start:0 !important}.igx-grid__td>.igx-input-group--indigo igx-suffix{padding-inline-end:0 !important}.igx-grid__td>igx-input-group .igx-input-group__input{padding-inline:max(var(--is-large, 1)*max(0.5rem, -1 * 0.5rem),var(--is-medium, 1)*max(0.375rem, -1 * 0.375rem),var(--is-small, 1)*max(0.25rem, -1 * 0.25rem)) !important}.igx-grid__td>igx-time-picker [igxLabel]{display:none}.igx-grid__td>input{margin:0 auto;max-width:100%}.igx-grid{--is-large: clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-large, 3), 1);--is-medium: min( clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-medium, 2), 1), clamp(0, var(--ig-size-large, 3) - var(--component-size, 1), 1) );--is-small: clamp(0, var(--ig-size-medium) - var(--component-size, 1), 1);--component-size: var(--ig-size, var(--ig-size-large));--grid-size: var(--component-size);--_expander-icon-width: 1.5rem;--_hierarchical-action-icon: 1.5rem;--_hierarchical-indent-small: 0.75rem;--_hierarchical-indent-medium: 1rem;--_hierarchical-indent-large: 1.5rem;--cell-height: max(var(--is-large, 1) * max(3.125rem, -1 * 3.125rem), var(--is-medium, 1) * max(2.5rem, -1 * 2.5rem), var(--is-small, 1) * max(2rem, -1 * 2rem));--header-size: max(var(--is-large, 1) * max(3.125rem, -1 * 3.125rem), var(--is-medium, 1) * max(2.5rem, -1 * 2.5rem), var(--is-small, 1) * max(2rem, -1 * 2rem));--grouparea-size: max(var(--is-large, 1) * max(3.5625rem, -1 * 3.5625rem), var(--is-medium, 1) * max(3.0625rem, -1 * 3.0625rem), var(--is-small, 1) * max(2.5625rem, -1 * 2.5625rem));--ig-tree-indent-size: max(var(--is-large, 1) * max(1.5rem, -1 * 1.5rem), var(--is-medium, 1) * max(1rem, -1 * 1rem), var(--is-small, 1) * max(0.75rem, -1 * 0.75rem));--_grid-head-font-size: 0.75rem;position:relative;display:grid;grid-template-rows:auto auto auto 1fr auto auto;grid-template-columns:100%;overflow:hidden;box-shadow:0 0 0 .0625rem var(--grid-border-color),var(--grid-elevation);outline-style:none;z-index:1}.igx-grid__caption{display:flex;align-items:center;font-size:1.25rem;line-height:2rem;padding:1rem 1.5rem;grid-row:1}.igx-grid__tbody{position:relative;display:flex;grid-row:4;overflow:hidden}.igx-grid__tbody-content{position:relative;background:var(--content-background);color:var(--content-text-color);overflow:hidden;z-index:1;outline-style:none}.igx-grid__tbody-content:focus{outline:0}.igx-grid__tbody-message{display:flex;justify-content:center;align-items:center;height:100%;color:var(--content-text-color);flex-direction:column;padding:1.5rem}.igx-grid__loading{display:flex;align-items:center;justify-content:center;height:100%;min-height:6.25rem}.igx-grid__tbody-scrollbar{background:var(--content-background);border-inline-start:.0625rem solid var(--row-border-color);position:relative}.igx-grid__tbody-scrollbar-main{position:relative}.igx-grid__tbody-scrollbar-start{background:var(--content-background)}.igx-grid__tbody-scrollbar-end{background:var(--header-background)}.igx-grid__scroll{grid-row:6;display:flex;flex-flow:row nowrap;width:100%;background:var(--_grid-background, var(--content-background));z-index:10001}.igx-grid__scroll-start{background:var(--_grid-background, var(--content-background))}.igx-grid__scroll-start--column-selection{border-inline-end:var(--row-border-width) solid var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38))}.igx-grid__scroll-start--pinned{border-inline-end:.125rem solid var(--ig-grid-summary-pinned-border-color, var(--pinned-border-color))}.igx-grid__scroll-end{background:var(--_grid-background, var(--content-background));border-inline-start:var(--pinned-border-width) solid var(--ig-grid-summary-pinned-border-color, var(--pinned-border-color))}.igx-grid__scroll-main igx-display-container{height:0}.igx-grid__tfoot{position:relative;display:flex;background:var(--header-background);color:var(--header-text-color);overflow:hidden;outline-style:none;grid-row:5;z-index:10001}.igx-grid__tfoot .igx-grid__tr{position:relative;background:inherit;color:inherit;z-index:2}.igx-grid__tfoot .igx-grid__tr:hover{background:inherit;color:inherit}.igx-grid__tfoot>[aria-activedescendant]{outline-style:none}.igx-grid__tfoot:focus{outline:0}.igx-grid__tfoot:empty{display:none}.igx-grid__tfoot-thumb{position:absolute;top:0;inset-inline-end:0;background:var(--igx-grid-summary-background-color, var(--ig-grid-summary-background-color, var(--_grid-background, var(--content-background))))}.igx-grid__footer{grid-row:7}.igx-grid__tr{position:relative;display:flex;outline-style:none;border-bottom:var(--row-border-width) var(--row-border-style) var(--row-border-color);background-clip:padding-box !important}.igx-grid__tr .igx-display-container{overflow:visible !important;flex:1 !important;min-width:0}.igx-grid__tr:hover .igx-grid__td--column-selected{color:var(--row-selected-hover-text-color);background:var(--row-selected-hover-background)}.igx-grid__tr:hover .igx-grid__td:not(.igx-grid__td--pinned-last){border-inline-end-color:var(--body-column-hover-border-color)}.igx-grid__tr:not(.igx-grid__tr--header,.igx-grid__tr--selected,.igx-grid__tr--ghost):hover{background:var(--row-hover-background);color:var(--row-hover-text-color)}.igx-grid__tr--odd{background:var(--row-odd-background);color:var(--row-odd-text-color)}.igx-grid__tr--odd .igx-grid__tr-action{border-inline-end:var(--row-border-width) var(--row-border-style) var(--_grid-action-border-color, hsla(from var(--action-border-color) h s l/0.38))}.igx-grid__tr--odd .igx-grid__td:not(.igx-grid__td--pinned-last){border-inline-end:var(--header-border-width) solid var(--body-column-border-color-odd)}.igx-grid__tr--even{background:var(--row-even-background);color:var(--row-even-text-color)}.igx-grid__tr--even .igx-grid__td:not(.igx-grid__td--pinned-last){border-inline-end:var(--header-border-width) solid var(--body-column-border-color-even)}.igx-grid__tr--even .igx-grid__tr-action{border-inline-end:var(--row-border-width) var(--row-border-style) var(--_grid-action-border-color, hsla(from var(--action-border-color) h s l/0.38))}.igx-grid__tr--selected{color:var(--row-selected-text-color);background:var(--row-selected-background)}.igx-grid__tr--selected .igx-grid__td--selected,.igx-grid__tr--selected .igx-grid__td--pinned.igx-grid__td--selected{color:var(--cell-selected-within-text-color);background:var(--cell-selected-within-background)}.igx-grid__tr--selected .igx-grid__td:not(.igx-grid__td--pinned-last){border-inline-end-color:var(--body-column-selected-border-color)}.igx-grid__tr--selected .igx-grid__tree-grouping-indicator{color:var(--row-selected-text-color)}.igx-grid__tr--selected .igx-grid__tree-grouping-indicator:hover{color:var(--row-selected-text-color)}.igx-grid__tr--selected:hover{color:var(--row-selected-hover-text-color);background:var(--row-selected-hover-background)}.igx-grid__tr--selected:hover .igx-grid__td:not(.igx-grid__td--pinned-last){border-inline-end-color:var(--body-column-hover-selected-border-color)}.igx-grid__tr--deleted .igx-grid__td-text{font-style:italic;color:var(--ig-error-500);text-decoration:line-through}.igx-grid__tr--highlighted{position:relative}.igx-grid__tr--highlighted::after{content:"";position:absolute;top:0;inset-inline-start:0;width:.25rem;height:100%;background:var(--row-highlight);z-index:3}.igx-grid__tr--highlighted::before{inset-inline-start:.25rem}.igx-grid__tr--filtered .igx-grid__td-text{color:var(--tree-filtered-text-color)}.igx-grid__tr--selected.igx-grid__tr--filtered .igx-grid__td-text{color:var(--tree-selected-filtered-row-text-color)}.igx-grid__tr--expanded{border-bottom:none}.igx-grid__tr--pinned{position:relative;background:inherit;z-index:10000}.igx-grid__tr--pinned-top{border-bottom:var(--pinned-border-width) var(--pinned-border-style) var(--pinned-border-color) !important}.igx-grid__tr--pinned-bottom{border-top:.125rem solid var(--pinned-border-color) !important;position:absolute;bottom:0}.igx-grid__tr--merged{border-block-end:0}.igx-grid__tr--merged-top{position:absolute;width:100%}.igx-grid__tr--disabled .igx-grid__td-text{color:var(--cell-disabled-color)}.igx-grid__tr-header-row igx-pivot-row-header-group{padding-inline-start:max(var(--is-large, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(1rem, -1 * 1rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__tr-header-row igx-pivot-row-header-group .igx-grid-th{border-block-end:0}.igx-grid__td::after{content:"";position:absolute;inset:0;pointer-events:none}.igx-grid__td--centered{justify-content:center}.igx-grid__td--image{justify-content:center}.igx-grid__td--bool{display:flex;flex-grow:1;justify-content:center}.igx-grid__td--bool>.igx-icon{--component-size: 1}.igx-grid__td--bool .igx-icon--error{color:var(--ig-gray-600)}.igx-grid__td--bool-true .igx-icon--success{color:var(--ig-gray-700)}.igx-grid__td--fw:not(.igx-grid__td--bool){flex-grow:0;outline-style:none}.igx-grid__td--fw:not(.igx-grid__td--bool)>.igx-icon{--component-size: 3}.igx-grid__td-text{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;pointer-events:none}.igx-grid__td--new{color:var(--cell-new-color)}.igx-grid__td--edited .igx-grid__td-text{font-style:italic;color:var(--cell-edited-value-color);padding:0 .0625rem}.igx-grid__td--merged{z-index:1;grid-row:1/-1}.igx-grid__td--merged-selected{color:var(--row-selected-text-color);background:var(--row-selected-background) !important}.igx-grid__td--merged-hovered{color:var(--row-hover-text-color);background:var(--row-hover-background) !important}.igx-grid__td--merged-selected.igx-grid__td--merged-hovered{color:var(--row-selected-hover-text-color);background:var(--row-selected-hover-background) !important}.igx-grid__td--number{text-align:end;justify-content:flex-end;flex-grow:1}.igx-grid__td--pinned{position:relative;background:inherit;z-index:9999}.igx-grid__td--pinned-first{border-inline-start:var(--pinned-border-width) var(--pinned-border-style) var(--pinned-border-color)}.igx-grid__td--pinned-first::after{width:calc(100% - 0.0625rem);inset-inline-end:0;inset-inline-start:unset}.igx-grid__td--pinned-last{border-inline-end:var(--pinned-border-width) var(--pinned-border-style) var(--pinned-border-color)}.igx-grid__td--pinned.igx-grid__td--selected{color:var(--cell-selected-text-color);background:var(--cell-selected-background)}.igx-grid__td--pinned.igx-grid__td--column-selected{color:var(--row-selected-text-color);background:var(--row-selected-background)}.igx-grid__td--pinned.igx-grid__td--column-selected:hover{background:var(--row-selected-hover-background);color:var(--row-selected-text-color)}.igx-grid__td--row-pinned-first{overflow:hidden}.igx-grid__td--pinned-chip{margin-inline-end:max(var(--is-large, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(0.5rem, -1 * 0.5rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(0.25rem, -1 * 0.25rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__td--active::after{border:var(--cell-active-border-width) var(--active-state-border-style) var(--cell-active-border-color)}.igx-grid__td--selected{color:var(--cell-selected-text-color);background:var(--cell-selected-background)}.igx-grid__td--selected .igx-grid__tree-grouping-indicator:hover{color:var(--cell-selected-text-color)}.igx-grid__td--column-selected{color:var(--row-selected-text-color);background:var(--row-selected-background)}.igx-grid__td--column-selected:hover{color:var(--row-selected-hover-text-color);background:var(--row-selected-hover-background)}.igx-grid__td--selected.igx-grid__td--column-selected{color:var(--cell-selected-within-text-color);background:var(--cell-selected-within-background)}.igx-grid__td--selected.igx-grid__td--column-selected:hover{color:var(--cell-selected-within-text-color);background:var(--cell-selected-within-background)}.igx-grid__td--editing{background:var(--cell-editing-background) !important;padding-inline:0}.igx-grid__td--editing::after{box-shadow:inset 0 0 0 0.0625rem var(--edit-mode-color)}.igx-grid__td--editing .igx-input-group{--size: 100% !important;--ig-input-group-border-color: transparent;--ig-input-group-hover-border-color: transparent;--ig-input-group-focused-border-color: transparent;--ig-input-group-focused-secondary-color: transparent;--ig-input-group-disabled-border-color: transparent;width:100%;overflow:hidden}.igx-grid__td--editing .igx-input-group .igx-input-group__bundle::before,.igx-grid__td--editing .igx-input-group .igx-input-group__bundle::after{display:none}.igx-grid__td--editing .igx-input-group .igx-input-group__input{--input-font-size: 0.8125rem;--input-line-height: 1rem;font-size:var(--input-font-size) !important;line-height:var(--input-line-height) !important}.igx-grid__td--editing [aria-readonly=true]{color:var(--cell-disabled-color)}.igx-grid__td--editing [aria-readonly=true] igx-icon{color:var(--cell-disabled-color)}.igx-grid__td--editing.igx-grid__td--invalid .igx-input-group__bundle:focus-within::after{border:none !important}.igx-grid__td--editing.igx-grid__td--invalid::after{box-shadow:inset 0 0 0 0.0625rem var(--ig-error-500) !important}.igx-grid__td--invalid{padding-inline-end:.25rem !important}.igx-grid__td--invalid>igx-icon{--component-size: 1 !important;color:var(--ig-error-500)}.igx-grid__td--editing.igx-grid__td--valid::after{box-shadow:inset 0 0 0 .0625rem var(--ig-success-500)}.igx-grid__td--valid>igx-icon{--component-size: 1 !important}.igx-grid__tr--edit{position:relative}.igx-grid__tr--edit::after{content:"";position:absolute;height:100%;width:100%;inset:0;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;z-index:10000;box-shadow:inset 0 .0625rem 0 0 var(--edit-mode-color),inset 0 -0.0625rem 0 0 var(--edit-mode-color)}.igx-grid__tr--mrl.igx-grid__tr--edit:first-of-type::after{top:0;z-index:5}.igx-grid__tr--drag{opacity:.5}.igx-grid__tr--ghost{background:var(--row-ghost-background);color:var(--row-drag-color);outline:.0625rem solid var(--row-ghost-border-color);z-index:10002}.igx-grid__tr--ghost{--row-ghost-background: var(--igx-grid-row-ghost-background, var(--ig-grid-row-ghost-background, var(--ig-gray-50)));--row-drag-color: var(--igx-grid-row-drag-color, var(--ig-grid-row-drag-color, var(--ig-gray-800)));--row-ghost-border-color: var(--igx-grid-row-ghost-border-color, var(--ig-grid-row-ghost-border-color, var(--ig-gray-500)))}.igx-grid__tr--group{position:relative;background:var(--header-background) !important}.igx-grid__tr--inner{display:flex;background:inherit}.igx-grid__tr--header{display:flex;align-items:center}.igx-grid__tr--header igx-icon{--component-size: 3}.igx-grid__tr--add-animate{animation:scale-in-ver-center .2s cubic-bezier(0.25, 0.46, 0.45, 0.94)}.igx-grid__tr--edited::before{content:"";position:absolute;width:.125rem;height:100%;z-index:10000;background:var(--edited-row-indicator)}.igx-grid__row-editing-outlet{z-index:10000;position:absolute}.igx-grid__tr-container{overflow:auto;width:100%;border-bottom:.0625rem solid var(--row-border-color)}.igx-grid__tr-container--active{border:var(--cell-active-border-width) var(--active-state-border-style) var(--cell-active-border-color)}.igx-grid__tr-action:last-of-type{border-inline-end:var(--row-border-width) var(--row-border-style) var(--_grid-action-border-color, hsla(from var(--action-border-color) h s l/0.38));min-height:var(--cell-height)}.igx-grid__tree-grouping-indicator{display:flex;align-items:center;justify-content:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;outline-style:none;margin-inline-end:.5rem;cursor:pointer;color:var(--expand-icon-color)}.igx-grid__tree-grouping-indicator:hover{color:var(--expand-icon-hover-color)}[dir=rtl] .igx-grid__tree-grouping-indicator{transform:scaleX(-1)}.igx-grid__tree-grouping-indicator igx-icon{--component-size: 3}.igx-grid__tree-loading-indicator{width:1.5rem;height:1.5rem;margin-inline-end:.5rem}.igx-grid__row-indentation{position:relative;display:flex;justify-content:center;align-items:center;padding-inline:max(var(--is-large, 1)*max(1.5rem, -1 * 1.5rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(1rem, -1 * 1rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))));border-inline-end:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38));background:inherit;z-index:1;background-clip:padding-box !important}.igx-grid__hierarchical-expander{-webkit-user-select:none;-moz-user-select:none;user-select:none;background:inherit;padding-inline:max(var(--is-large, 1)*max(var(--_hierarchical-indent-large), -1 * var(--_hierarchical-indent-large))*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(var(--_hierarchical-indent-medium), -1 * var(--_hierarchical-indent-medium))*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(var(--_hierarchical-indent-small), -1 * var(--_hierarchical-indent-small))*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))));display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:3;color:var(--expand-icon-color)}.igx-grid__hierarchical-expander:focus{outline:none}.igx-grid__hierarchical-expander:focus igx-icon{color:var(--expand-icon-hover-color)}.igx-grid__hierarchical-expander:hover igx-icon{color:var(--expand-icon-hover-color)}.igx-grid__hierarchical-expander igx-icon{--component-size: 3;color:var(--expand-icon-color)}[dir=rtl] .igx-grid__hierarchical-expander{transform:scaleX(-1)}.igx-grid__hierarchical-expander--empty{cursor:default;pointer-events:none;padding-inline:max(var(--is-large, 1)*max(var(--_hierarchical-indent-large), -1 * var(--_hierarchical-indent-large))*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(var(--_hierarchical-indent-medium), -1 * var(--_hierarchical-indent-medium))*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(var(--_hierarchical-indent-small), -1 * var(--_hierarchical-indent-small))*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))));border-inline-end:var(--row-border-width) var(--row-border-style) var(--_grid-action-border-color, hsla(from var(--action-border-color) h s l/0.38))}.igx-grid__hierarchical-expander--header{background:inherit;border-inline-end:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38));z-index:3}.igx-grid__hierarchical-expander--header igx-icon{display:flex;align-items:center}.igx-grid__hierarchical-expander--push{align-items:flex-start}.igx-grid__hierarchical-expander--push igx-icon{min-height:var(--header-size);max-height:var(--header-size)}.igx-grid__hierarchical-indent{display:flex;margin-inline-start:max(var(--is-large, 1)*max(calc(2 * var(--_hierarchical-indent-large) + var(--_hierarchical-action-icon)), -1 * calc(2 * var(--_hierarchical-indent-large) + var(--_hierarchical-action-icon)))*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(calc(2 * var(--_hierarchical-indent-medium) + var(--_hierarchical-action-icon)), -1 * calc(2 * var(--_hierarchical-indent-medium) + var(--_hierarchical-action-icon)))*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(calc(2 * var(--_hierarchical-indent-small) + var(--_hierarchical-action-icon)), -1 * calc(2 * var(--_hierarchical-indent-small) + var(--_hierarchical-action-icon)))*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))));margin-inline-end:max(var(--is-large, 1)*max(var(--_hierarchical-indent-large), -1 * var(--_hierarchical-indent-large))*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(var(--_hierarchical-indent-medium), -1 * var(--_hierarchical-indent-medium))*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(var(--_hierarchical-indent-small), -1 * var(--_hierarchical-indent-small))*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))));margin-block:max(var(--is-large, 1)*max(var(--_hierarchical-indent-large), -1 * var(--_hierarchical-indent-large))*var(--ig-spacing-block-large, var(--ig-spacing-block, var(--ig-spacing))),var(--is-medium, 1)*max(var(--_hierarchical-indent-medium), -1 * var(--_hierarchical-indent-medium))*var(--ig-spacing-block-medium, var(--ig-spacing-block, var(--ig-spacing))),var(--is-small, 1)*max(var(--_hierarchical-indent-small), -1 * var(--_hierarchical-indent-small))*var(--ig-spacing-block-small, var(--ig-spacing-block, var(--ig-spacing))))}.igx-grid__hierarchical-indent--scroll{margin-inline-end:max(var(--is-large, 1)*max(calc(var(--_hierarchical-indent-large) + 18px), -1 * calc(var(--_hierarchical-indent-large) + 18px))*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(calc(var(--_hierarchical-indent-medium) + 18px), -1 * calc(var(--_hierarchical-indent-medium) + 18px))*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(calc(var(--_hierarchical-indent-small) + 18px), -1 * calc(var(--_hierarchical-indent-small) + 18px))*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__row-indentation--level-1{padding-inline-start:max(var(--is-large, 1)*max(2.25rem, -1 * 2.25rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(2rem, -1 * 2rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(1.5rem, -1 * 1.5rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__row-indentation--level-2{padding-inline-start:max(var(--is-large, 1)*max(4.5rem, -1 * 4.5rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(4rem, -1 * 4rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(3rem, -1 * 3rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__row-indentation--level-3{padding-inline-start:max(var(--is-large, 1)*max(6.75rem, -1 * 6.75rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(6rem, -1 * 6rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(4.5rem, -1 * 4.5rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__row-indentation--level-4{padding-inline-start:max(var(--is-large, 1)*max(9rem, -1 * 9rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(8rem, -1 * 8rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(6rem, -1 * 6rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__row-indentation--level-5{padding-inline-start:max(var(--is-large, 1)*max(11.25rem, -1 * 11.25rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(10rem, -1 * 10rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(7.5rem, -1 * 7.5rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__row-indentation--level-6{padding-inline-start:max(var(--is-large, 1)*max(13.5rem, -1 * 13.5rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(12rem, -1 * 12rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(9rem, -1 * 9rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__row-indentation--level-7{padding-inline-start:max(var(--is-large, 1)*max(15.75rem, -1 * 15.75rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(14rem, -1 * 14rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(10.5rem, -1 * 10.5rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__row-indentation--level-8{padding-inline-start:max(var(--is-large, 1)*max(18rem, -1 * 18rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(16rem, -1 * 16rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(12rem, -1 * 12rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__row-indentation--level-9{padding-inline-start:max(var(--is-large, 1)*max(20.25rem, -1 * 20.25rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(18rem, -1 * 18rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(13.5rem, -1 * 13.5rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__row-indentation--level-10{padding-inline-start:max(var(--is-large, 1)*max(22.5rem, -1 * 22.5rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(20rem, -1 * 20rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(15rem, -1 * 15rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__header-indentation{position:relative;padding-inline-end:max(var(--is-large, 1)*max(1.5rem, -1 * 1.5rem),var(--is-medium, 1)*max(1rem, -1 * 1rem),var(--is-small, 1)*max(0.75rem, -1 * 0.75rem));border-inline-end:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38));background:var(--header-background);z-index:4;height:100%}.igx-grid__header-indentation igx-icon{--component-size: 3}.igx-grid__header-indentation--no-border{border-inline-end:.0625rem solid rgba(0,0,0,0)}.igx-grid__cbx-padding{display:flex;align-items:center;justify-content:center;padding-inline:max(var(--is-large, 1)*max(1.5rem, -1 * 1.5rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(1rem, -1 * 1rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__cbx-selection{display:flex;justify-content:center;align-items:center;background:inherit;z-index:4;border-inline-end:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38));background-clip:border-box !important}.igx-grid__cbx-selection--push{align-items:flex-start;padding-block-start:max(var(--is-large, 1)*max(0.9375rem, -1 * 0.9375rem)*var(--ig-spacing-block-large, var(--ig-spacing-block, var(--ig-spacing))),var(--is-medium, 1)*max(0.625rem, -1 * 0.625rem)*var(--ig-spacing-block-medium, var(--ig-spacing-block, var(--ig-spacing))),var(--is-small, 1)*max(0.375rem, -1 * 0.375rem)*var(--ig-spacing-block-small, var(--ig-spacing-block, var(--ig-spacing))))}.igx-grid__group-row{background:var(--group-row-background);display:flex;outline-style:none;border-block:var(--row-border-width) var(--row-border-style) var(--row-border-color);min-height:var(--header-size)}.igx-grid__group-row::after{content:"";position:absolute;width:100%;height:100%;inset:0;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igx-grid__group-row--active{position:relative;background:var(--group-row-selected-background)}.igx-grid__group-row--active:hover{background:var(--group-row-selected-background)}.igx-grid__group-row--active::after{border:var(--cell-active-border-width) var(--active-state-border-style) var(--cell-active-border-color);z-index:4}.igx-grid__group-content{display:flex;align-items:center;justify-content:flex-start;flex:1 1 auto;padding-inline-start:max(var(--is-large, 1)*max(1.5rem, -1 * 1.5rem),var(--is-medium, 1)*max(1rem, -1 * 1rem),var(--is-small, 1)*max(0.75rem, -1 * 0.75rem));border-inline-end:var(--header-border-width) solid var(--body-column-border-color-odd);min-height:var(--cell-height)}.igx-grid__group-content:focus{outline:rgba(0,0,0,0)}.igx-grid__grouping-indicator{position:relative;display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none;justify-content:center;align-items:center;z-index:1;cursor:pointer;padding-inline-end:.75rem;margin-inline-start:max(var(--is-large, 1)*max(1.5rem, -1 * 1.5rem),var(--is-medium, 1)*max(1rem, -1 * 1rem),var(--is-small, 1)*max(0.75rem, -1 * 0.75rem));min-height:var(--header-size)}.igx-grid__grouping-indicator igx-icon{--component-size: 3;color:var(--expand-icon-color)}.igx-grid__grouping-indicator:hover,.igx-grid__grouping-indicator:focus{outline-style:none}.igx-grid__grouping-indicator:hover igx-icon,.igx-grid__grouping-indicator:focus igx-icon{color:var(--expand-icon-hover-color)}[dir=rtl] .igx-grid__grouping-indicator{transform:scaleX(-1)}.igx-grid__group-expand-btn{position:absolute;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;inset-block-start:calc(50% - var(--_expander-icon-width)/2);inset-inline-start:var(--_indicator-inline-inset)}.igx-grid__group-expand-btn:hover{color:var(--expand-icon-hover-color)}.igx-grid__group-expand-btn--push{inset-block-start:max(var(--is-large, 1)*max(1.375rem, -1 * 1.375rem),var(--is-medium, 1)*max(1.125rem, -1 * 1.125rem),var(--is-small, 1)*max(0.875rem, -1 * 0.875rem))}.igx-grid__group-row--padding-level-1 .igx-grid__grouping-indicator{padding-inline-start:max(var(--is-large, 1)*max(1.125rem, -1 * 1.125rem),var(--is-medium, 1)*max(1rem, -1 * 1rem),var(--is-small, 1)*max(0.75rem, -1 * 0.75rem))}.igx-grid__group-row--padding-level-2 .igx-grid__grouping-indicator{padding-inline-start:max(var(--is-large, 1)*max(2.25rem, -1 * 2.25rem),var(--is-medium, 1)*max(2rem, -1 * 2rem),var(--is-small, 1)*max(1.5rem, -1 * 1.5rem))}.igx-grid__group-row--padding-level-3 .igx-grid__grouping-indicator{padding-inline-start:max(var(--is-large, 1)*max(3.375rem, -1 * 3.375rem),var(--is-medium, 1)*max(3rem, -1 * 3rem),var(--is-small, 1)*max(2.25rem, -1 * 2.25rem))}.igx-grid__group-row--padding-level-4 .igx-grid__grouping-indicator{padding-inline-start:max(var(--is-large, 1)*max(4.5rem, -1 * 4.5rem),var(--is-medium, 1)*max(4rem, -1 * 4rem),var(--is-small, 1)*max(3rem, -1 * 3rem))}.igx-grid__group-row--padding-level-5 .igx-grid__grouping-indicator{padding-inline-start:max(var(--is-large, 1)*max(5.625rem, -1 * 5.625rem),var(--is-medium, 1)*max(5rem, -1 * 5rem),var(--is-small, 1)*max(3.75rem, -1 * 3.75rem))}.igx-grid__group-row--padding-level-6 .igx-grid__grouping-indicator{padding-inline-start:max(var(--is-large, 1)*max(6.75rem, -1 * 6.75rem),var(--is-medium, 1)*max(6rem, -1 * 6rem),var(--is-small, 1)*max(4.5rem, -1 * 4.5rem))}.igx-grid__group-row--padding-level-7 .igx-grid__grouping-indicator{padding-inline-start:max(var(--is-large, 1)*max(7.875rem, -1 * 7.875rem),var(--is-medium, 1)*max(7rem, -1 * 7rem),var(--is-small, 1)*max(5.25rem, -1 * 5.25rem))}.igx-grid__group-row--padding-level-8 .igx-grid__grouping-indicator{padding-inline-start:max(var(--is-large, 1)*max(9rem, -1 * 9rem),var(--is-medium, 1)*max(8rem, -1 * 8rem),var(--is-small, 1)*max(6rem, -1 * 6rem))}.igx-grid__group-row--padding-level-9 .igx-grid__grouping-indicator{padding-inline-start:max(var(--is-large, 1)*max(10.125rem, -1 * 10.125rem),var(--is-medium, 1)*max(9rem, -1 * 9rem),var(--is-small, 1)*max(6.75rem, -1 * 6.75rem))}.igx-grid__group-row--padding-level-10 .igx-grid__grouping-indicator{padding-inline-start:max(var(--is-large, 1)*max(11.25rem, -1 * 11.25rem),var(--is-medium, 1)*max(10rem, -1 * 10rem),var(--is-small, 1)*max(7.5rem, -1 * 7.5rem))}.igx-grid__mrl-block{display:grid !important;background:inherit;position:relative}.igx-grid__pivot--super-compact{--ig-size: 1 !important}.igx-grid__pivot--super-compact .igx-grid-th,.igx-grid__pivot--super-compact .igx-grid-thead__title,.igx-grid__pivot--super-compact .igx-grid__td{padding:0 .25rem !important;min-height:1.5rem !important;height:1.5rem}.igx-grid__pivot--super-compact .igx-grid-th>*,.igx-grid__pivot--super-compact .igx-grid-thead__title>*{line-height:normal;align-self:initial;max-height:100%}.igx-grid__pivot--super-compact .igx-grid__tr-pivot--row-area{padding-bottom:.25rem}.igx-grid__tr-pivot{display:flex;align-items:center;background:inherit;overflow:hidden;z-index:3;height:var(--header-size);padding-inline:max(var(--is-large, 1)*max(1.5rem, -1 * 1.5rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(1rem, -1 * 1rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))));padding-block:0;border-inline-start:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38));border-bottom:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38))}.igx-grid__tr-pivot igx-chips-area{flex-wrap:nowrap;width:auto}.igx-grid__tr-pivot igx-chips-area>*{margin-inline-end:.25rem}.igx-grid__tr-pivot igx-chips-area:last-child{margin-inline-end:0}.igx-grid__pivot-filter-toggle{display:flex;align-items:center;justify-content:center;cursor:pointer;position:relative}.igx-grid__pivot-filter-toggle>igx-badge{position:absolute;top:-0.25rem;inset-inline-start:60%;width:1.125rem;min-width:1.125rem;height:1.125rem;font-size:.625rem;pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none}.igx-grid__pivot-empty-chip-area{line-height:normal;font-size:.875rem;margin-inline-end:0 !important}.igx-grid__tr-pivot--small-row-area{border-inline-start:0}.igx-grid__tr-pivot--row-area{height:auto !important;align-items:flex-end;padding-bottom:max(var(--is-large, 1)*max(1rem, -1 * 1rem)*var(--ig-spacing-block-large, var(--ig-spacing-block, var(--ig-spacing))),var(--is-medium, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-block-medium, var(--ig-spacing-block, var(--ig-spacing))),var(--is-small, 1)*max(0.5rem, -1 * 0.5rem)*var(--ig-spacing-block-small, var(--ig-spacing-block, var(--ig-spacing))));border-inline-start:0;border-bottom:0}.igx-grid__tr-pivot--filter-container{display:flex;flex-direction:column}.igx-grid__tr-pivot--chip_drop_indicator{width:.125rem;background:var(--resize-line-color);visibility:hidden}.igx-grid__tr-pivot--drop-row-area{flex-grow:1}.igx-grid__tr-pivot--filter{height:var(--header-size);border-inline-start:0}.igx-grid__tr-pivot-group{flex:1}.igx-grid__tr-pivot--columnDimensionLeaf{box-shadow:none}.igx-grid__tr-pivot--columnDimensionLeaf igx-grid-header{border:none}.igx-grid__tr-pivot--columnMultiRowSpan igx-grid-header>*{visibility:hidden}.igx-grid__tr-pivot-toggle-icons{display:inline-flex !important}.igx-grid__drag-indicator{display:flex;align-items:center;justify-content:center;padding-inline:max(var(--is-large, 1)*max(var(--_hierarchical-indent-large), -1 * var(--_hierarchical-indent-large))*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(var(--_hierarchical-indent-medium), -1 * var(--_hierarchical-indent-medium))*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(var(--_hierarchical-indent-small), -1 * var(--_hierarchical-indent-small))*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))));min-height:var(--cell-height);padding-block:0;flex:0 0 auto;background:inherit;background-clip:border-box;z-index:4;cursor:move;border-inline-end:.0625rem solid rgba(0,0,0,0)}.igx-grid__drag-indicator igx-icon{--component-size: 3}.igx-grid__drag-indicator--header{border-inline-end:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38))}.igx-grid__drag-indicator--off{color:var(--row-drag-color)}.igx-grid__drag-ghost-image{position:absolute !important;align-items:center !important;background:var(--ghost-header-background) !important;color:var(--ghost-header-text-color) !important;border:rgba(0,0,0,0) !important;min-width:10.5rem;max-width:20rem;height:var(--header-size);min-height:var(--header-size);padding-inline:max(var(--is-large, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(1rem, -1 * 1rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(1.5rem, -1 * 1.5rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))));top:-625rem;inset-inline-start:-625rem;box-shadow:var(--drag-shadow);overflow:hidden;z-index:20}.igx-grid__drag-ghost-image .igx-grid-th__title{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;flex:1 0 0;text-align:end;color:var(--ghost-header-text-color) !important}.igx-grid__drag-ghost-image .igx-grid-thead__title{border:none;color:var(--ghost-header-text-color) !important;background:rgba(0,0,0,0) !important}.igx-grid__drag-ghost-image .igx-grid-th__icons,.igx-grid__drag-ghost-image::before,.igx-grid__drag-ghost-image::after{display:none}.igx-grid__drag-ghost-image-icon{color:var(--ghost-header-icon-color);margin-inline-end:.75rem}.igx-grid__drag-ghost-image-icon-group{color:var(--ghost-header-icon-color);padding:1.5rem;padding-inline-end:0;margin-inline-end:.5rem}.igx-grid__drag-col-header{background:var(--header-background)}.igx-grid__drag-col-header .igx-grid-thead__title>*,.igx-grid__drag-col-header .igx-grid-th>*{opacity:.4}.igx-grid__scroll-on-drag-left{position:absolute;width:.9375rem;top:0;height:100%;z-index:25;inset-inline-start:0}.igx-grid__scroll-on-drag-right{position:absolute;width:.9375rem;top:0;height:100%;z-index:25;inset-inline-end:0}.igx-grid__scroll-on-drag-pinned{position:absolute;width:.9375rem;height:100%;top:0;z-index:25}.igx-grid__filtering-row{display:flex;flex-flow:row nowrap;align-items:center;justify-content:space-between;position:absolute;inset-inline-start:0;bottom:0;z-index:3;grid-row:2;width:100%;height:var(--cell-height);padding-inline:max(var(--is-large, 1)*max(1.5rem, -1 * 1.5rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(1rem, -1 * 1rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))));color:var(--filtering-row-text-color);background:var(--filtering-row-background);box-shadow:0 .25rem .625rem rgba(0,0,0,.12)}.igx-grid__filtering-row .igx-input-group{--size: calc(var(--cell-height) - 0.5rem) !important;min-height:var(--size);width:100% !important;max-width:12.5rem !important;min-width:8.75rem !important}.igx-grid__filtering-row .igx-input-group igx-prefix,.igx-grid__filtering-row .igx-input-group igx-suffix{height:100% !important}.igx-grid__filtering-row .igx-input-group .igx-input-group__input{font-size:max(var(--is-large, 1)*max(1rem, -1 * 1rem),var(--is-medium, 1)*max(0.875rem, -1 * 0.875rem),var(--is-small, 1)*max(0.75rem, -1 * 0.75rem)) !important;padding-inline-start:0 !important;padding-block:0 !important;height:100% !important}.igx-grid__filtering-row [igxIconButton]{--ig-size: 1;aspect-ratio:1;color:var(--filtering-row-text-color)}.igx-grid__filtering-row-main{display:flex;flex:1 1 auto;align-items:center;overflow:hidden;max-width:calc(100% - 11rem);min-width:3.5rem}.igx-grid__filtering-row-main igx-chips-area{flex-wrap:nowrap;margin-inline:.5rem;gap:.25rem}.igx-grid__filtering-row-editing-buttons{display:flex;align-items:center;padding:.5rem;gap:.25rem}.igx-grid__filtering-row-editing-buttons button{transition:none}.igx-grid__filtering-row-editing-buttons button:not([disabled]) igx-icon{color:var(--sorted-header-icon-color)}.igx-grid__filtering-row-editing-buttons--small{padding:.25rem}.igx-grid__filtering-row-editing-buttons--small button{transition:none}.igx-grid__filtering-row-editing-buttons--small button:not([disabled]) igx-icon{color:var(--sorted-header-icon-color)}.igx-grid__filtering-row-scroll-start{position:relative;margin-inline:.5rem;overflow:visible}.igx-grid__filtering-row-scroll-start::after{display:block;position:absolute;width:.625rem;content:"";inset-block:-0.125rem;background:linear-gradient(to right, var(--filtering-row-background), transparent);inset-inline-end:-0.625rem}.igx-grid__filtering-row-scroll-end{position:relative;margin-inline:.5rem;overflow:visible}.igx-grid__filtering-row-scroll-end::before{display:block;position:absolute;width:.625rem;content:"";inset-block:-0.125rem;background:linear-gradient(to left, var(--filtering-row-background), transparent);inset-inline-start:-0.625rem}.igx-grid .igx-grid__filtering-cell--selected,.igx-grid .igx-grid__filtering-cell{display:flex;align-items:center;padding-inline:max(var(--is-large, 1)*max(1.5rem, -1 * 1.5rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(1rem, -1 * 1rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))));padding-block:0;overflow:hidden;border-inline-end:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38));border-top:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38));height:var(--header-size);gap:max(var(--is-large, 1)*max(1.5rem, -1 * 1.5rem),var(--is-medium, 1)*max(1rem, -1 * 1rem),var(--is-small, 1)*max(0.75rem, -1 * 0.75rem));background-clip:padding-box !important}.igx-grid .igx-grid__filtering-cell--selected igx-chips-area,.igx-grid .igx-grid__filtering-cell igx-chips-area{width:auto;min-width:0;flex-wrap:nowrap}.igx-grid .igx-grid__filtering-cell--selected igx-chips-area .igx-filtering-chips__connector,.igx-grid .igx-grid__filtering-cell igx-chips-area .igx-filtering-chips__connector{font-size:.75rem;text-transform:uppercase;font-weight:600;margin:0 .5rem;overflow:hidden}.igx-grid__filtering-cell--selected{color:var(--header-selected-text-color);background:var(--header-selected-background)}.igx-grid__filtering-cell--selected igx-chips-area{background:inherit}.igx-grid__filtering-cell-indicator{display:flex;align-items:center;position:relative}.igx-grid__filtering-cell-indicator igx-icon,.igx-grid__filtering-cell-indicator .igx-badge{cursor:pointer}.igx-grid__filtering-cell-indicator .igx-badge{position:absolute;top:-0.25rem;inset-inline-start:60%}.igx-grid__filtering-cell-indicator--hidden .igx-badge,.igx-grid__filtering-cell-indicator--hidden igx-icon{display:none}.igx-grid__filtering-dropdown-items{display:flex;align-items:center}.igx-grid__filtering-dropdown-text{margin-inline-start:1rem}.igx-grid__summaries{display:flex;overflow:hidden;outline-style:none;background-color:var(--igx-grid-summary-background-color, var(--ig-grid-summary-background-color, var(--summaries-patch-background)))}.igx-grid__summaries igx-display-container{overflow:visible !important;flex:1;min-width:0}.igx-grid__summaries--body{--summaries-patch-background: var(--group-row-background);display:flex;overflow:hidden;outline-style:none;border-bottom:.0625rem dashed var(--row-border-color);background-color:var(--summaries-patch-background)}.igx-grid__summaries--body:last-of-type{border-bottom:none}.igx-grid__summaries--body .igx-grid-summary{--background-color: inherit !important;--result-color: hsla( from color(from var(--background-color) var(--y-contrast)) h 0 l / 1 ) !important}.igx-grid__summaries--body .igx-display-container{overflow:visible !important;flex:1;min-width:0}.igx-grid__summaries-patch{position:relative;background:inherit;border-inline-end:var(--ig-grid-summary-border-width, 0.0625rem) var(--ig-grid-summary-border-style, solid) var(--ig-grid-summary-border-color, var(--_grid-action-border-color, hsla(from var(--action-border-color) h s l/0.38)));z-index:1}.igx-grid__outlet{--ig-size: var(--grid-size);z-index:10002;position:fixed}.igx-grid__loading-outlet{z-index:10003}.igx-grid__row-editing-outlet{z-index:10000;position:absolute}.igx-grid__addrow-snackbar{position:absolute;bottom:1rem;inset-inline-start:50%;transform:translateX(-50%);z-index:10003}.igx-grid__icon{display:flex;align-items:center;justify-content:center}.igx-grid__column-name{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.igx-grid__count-badge{display:flex;align-items:center;justify-content:center;min-width:1.25rem;height:1.25rem;padding:.125rem .375rem;border-radius:.625rem;font-size:.75rem;background:var(--group-count-background);color:var(--group-count-text-color)}.igx-grid__text{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.igx-grid--loading{--ig-overlay-background-color: transparent}.igx-grid .igx-banner{--is-large: clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-large, 3), 1);--is-medium: min( clamp(0, (var(--component-size, 1) + 1) - var(--ig-size-medium, 2), 1), clamp(0, var(--ig-size-large, 3) - var(--component-size, 1), 1) );--is-small: clamp(0, var(--ig-size-medium) - var(--component-size, 1), 1);--component-size: var(--ig-size, var(--ig-size-large));display:flex;justify-content:flex-end;flex-wrap:wrap;gap:.5rem;padding-block:max(var(--is-large, 1)*max(8px, -1 * 8px)*var(--ig-spacing-block-large, var(--ig-spacing-block, var(--ig-spacing))),var(--is-medium, 1)*max(6px, -1 * 6px)*var(--ig-spacing-block-medium, var(--ig-spacing-block, var(--ig-spacing))),var(--is-small, 1)*max(4px, -1 * 4px)*var(--ig-spacing-block-small, var(--ig-spacing-block, var(--ig-spacing))));padding-inline:max(var(--is-large, 1)*max(16px, -1 * 16px)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(8px, -1 * 8px)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(4px, -1 * 4px)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))));min-width:20rem;color:var(--ig-grid-foreground, var(--ig-surface-500-contrast));background:var(--ig-grid-background, var(--ig-surface-500));border-radius:0}.igx-grid .igx-banner igc-icon,.igx-grid .igx-banner igx-icon,.igx-grid .igx-banner igc-button,.igx-grid .igx-banner [igxButton]{--component-size: var(--ig-size, var(--ig-size-large))}.igx-grid .igx-banner__message{display:flex;align-items:center;min-width:9.375rem;flex:1 0 0%;gap:1rem;padding:0 .5rem}.igx-grid .igx-banner__text{font-family:var(--ig-body-2-font-family, var(--ig-font-family));font-size:var(--ig-body-2-font-size);font-weight:var(--ig-body-2-font-weight);font-style:var(--ig-body-2-font-style);line-height:var(--ig-body-2-line-height);letter-spacing:var(--ig-body-2-letter-spacing);text-transform:var(--ig-body-2-text-transform);margin-top:var(--ig-body-2-margin-top);margin-bottom:var(--ig-body-2-margin-bottom);flex:1 0 0%}.igx-grid .igx-banner__border-top{box-shadow:inset 0 .0625rem 0 0 var(--row-border-color)}.igx-grid .igx-banner__border-bottom{box-shadow:inset 0 -0.0625rem 0 0 var(--row-border-color)}.igx-grid .igx-banner__actions{flex-wrap:wrap;align-self:flex-end;gap:.5rem}.igx-grid .igx-grid__tr:hover .igx-grid__td--selected:has(+.igx-grid__td--selected){border-inline-end-color:var(--cell-selected-background)}.igx-grid .igx-grid__tr--selected:hover .igx-grid__td--selected:has(+.igx-grid__td--selected){border-inline-end-color:var(--cell-selected-within-background)}.igx-grid .igx-grid__tr--selected .igx-grid__td--selected:has(+.igx-grid__td--selected){border-inline-end-color:var(--cell-selected-within-background)}.igx-grid .igx-grid__td--selected:has(+.igx-grid__td--selected){border-inline-end-color:var(--cell-selected-background)}.igx-grid-grouparea{grid-row:2;display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;border-bottom:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38));background:var(--grouparea-background);color:var(--grouparea-color);min-height:var(--grouparea-size);padding-inline:max(var(--is-large, 1)*max(1.5rem, -1 * 1.5rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(1rem, -1 * 1rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))));padding-block:0;z-index:2;height:100%;overflow:hidden}.igx-grid-grouparea:focus{outline-style:none}.igx-grid-grouparea .igx-chip{margin-block:max(var(--is-large, 1)*max(0.5rem, -1 * 0.5rem)*var(--ig-spacing-block-large, var(--ig-spacing-block, var(--ig-spacing))),var(--is-medium, 1)*max(0.5rem, -1 * 0.5rem)*var(--ig-spacing-block-medium, var(--ig-spacing-block, var(--ig-spacing))),var(--is-small, 1)*max(0.25rem, -1 * 0.25rem)*var(--ig-spacing-block-small, var(--ig-spacing-block, var(--ig-spacing))))}.igx-grid-grouparea__connector{--ig-icon-size: 1rem;display:inline-flex;justify-content:center;align-items:center;margin:0 .25rem}[dir=rtl] .igx-grid-grouparea__connector{transform:scaleX(-1)}.igx-grid-th{position:relative;display:flex;flex:1 1 0%;color:inherit;text-align:start;background-clip:padding-box !important;line-height:1rem;flex-flow:row nowrap;justify-content:space-between;align-items:flex-end;min-width:0;min-height:var(--header-size);padding-inline:max(var(--is-large, 1)*max(1.5rem, -1 * 1.5rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(1rem, -1 * 1rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))));padding-block:0;font-size:.75rem;font-weight:600;border-inline-end:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38));overflow:hidden;transition:color 120ms ease-in-out;outline-style:none}.igx-grid-th__expander{display:flex;align-items:center;justify-content:center;margin-inline-end:.5rem;cursor:pointer}.igx-grid-th__expander igx-icon{color:var(--expand-icon-color)}.igx-grid-th__expander:hover igx-icon{color:var(--expand-icon-hover-color)}.igx-grid-th__group-title{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.igx-grid-th__title{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-width:3ch;-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:initial;flex-grow:1;line-height:var(--header-size)}.igx-grid-th__icons{display:inline-flex;align-items:center;justify-content:flex-end;-webkit-user-select:none;-moz-user-select:none;user-select:none;min-width:1.875rem;height:var(--header-size);align-self:flex-end}.igx-grid-th__icons:empty{min-width:0}.igx-grid-th__icons .igx-excel-filter__icon{position:relative;display:flex;cursor:pointer;--ig-icon-size: 0.9375rem}.igx-grid-th__icons .igx-excel-filter__icon::after{content:attr(data-sortIndex);position:absolute;top:-0.3125rem;inset-inline-end:-0.0625rem;font-size:.625rem;text-align:end;font-family:sans-serif;line-height:.625rem}.igx-grid-th__icons .igx-excel-filter__icon--filtered{display:inline-flex;color:var(--sorted-header-icon-color)}.igx-grid-th__icons .igx-excel-filter__icon--filtered:hover,.igx-grid-th__icons .igx-excel-filter__icon--filtered:focus{color:var(--sortable-header-icon-hover-color)}.igx-grid-th__resize-handle{position:absolute;width:.25rem;top:0;inset-inline-end:-0.125rem;height:100%;z-index:2}.igx-grid-th__resize-line{position:absolute;cursor:col-resize;width:.25rem;background:var(--resize-line-color);z-index:2}.igx-grid-th__resize-line::before,.igx-grid-th__resize-line::after{position:absolute;content:"";height:100%;width:6rem}.igx-grid-th__resize-line::before{inset-inline-end:100%}.igx-grid-th__resize-line::after{inset-inline-start:100%}.igx-grid-th__drop-indicator-left{position:absolute;width:.0625rem;height:100%;top:0;z-index:1;inset-inline-start:-0.0625rem}.igx-grid-th__drop-indicator-right{position:absolute;width:.0625rem;height:100%;top:0;z-index:1;inset-inline-end:-0.0625rem}.igx-grid-th--active::after{content:"";position:absolute;inset:0;width:100%;height:100%;border:var(--cell-active-border-width) var(--active-state-border-style) var(--cell-active-border-color);pointer-events:none}.igx-grid-th--active.igx-grid-th--pinned::after{inset-block-start:0;inset-inline-start:0;width:calc(100% - var(--pinned-border-width)) !important}.igx-grid-th--number{text-align:end;flex-grow:1}.igx-grid-th--number .igx-grid-th__icons{justify-content:flex-start;order:-1}.igx-grid-th--number .igx-grid-th__icons .sort-icon{order:1}.igx-grid-th--collapsible{justify-content:normal}.igx-grid-th--sortable :where(.sort-icon){display:flex;align-items:center;cursor:pointer;position:relative;opacity:.7}.igx-grid-th--sortable :where(.sort-icon):is(:hover){opacity:1}.igx-grid-th--sortable :where(.sort-icon)::after{content:attr(data-sortIndex);position:absolute;top:-0.3125rem;inset-inline-end:-0.0625rem;font-size:.625rem;text-align:end;font-family:sans-serif;line-height:.625rem}.igx-grid-th--sorted :where(.sort-icon){opacity:1;color:var(--sorted-header-icon-color)}.igx-grid-th--sorted :where(.sort-icon):is(:hover,:focus){color:var(--sortable-header-icon-hover-color)}.igx-grid-th--selectable{color:var(--header-selected-text-color);background:var(--header-selected-background)}.igx-grid-th--filtrable :where(.igx-grid-th__title){opacity:.7}.igx-grid-th--pinned{position:relative;background:inherit}.igx-grid-th--pinned::after{width:calc(100% - 0.0625rem) !important}.igx-grid-th--pinned-first{border-inline-start:var(--pinned-border-width) var(--pinned-border-style)}.igx-grid-th--pinned-first:dir(ltr){border-inline-start-color:var(--pinned-border-color);border-inline-end:none}.igx-grid-th--pinned-first:dir(rtl){border-inline-end-color:var(--pinned-border-color);border-inline-start:none}.igx-grid-th--pinned-last{border-inline-end:var(--pinned-border-width) var(--pinned-border-style) var(--pinned-border-color)}.igx-grid-th--pinned-last:dir(ltr){border-inline-end-color:var(--header-border-color);border-inline-end-width:var(--pinned-border-width);border-inline-end-style:var(--pinned-border-style)}.igx-grid-th--pinned-last:dir(rtl){border-inline-start-color:var(--header-border-color);border-inline-start-width:var(--pinned-border-width);border-inline-start-style:var(--pinned-border-style)}.igx-grid-th--selected{color:var(--header-selected-text-color);background:var(--header-selected-background)}.igx-grid-th--selected :where(.sort-icon::after){background:var(--header-selected-background)}.igx-grid-th--fw{flex-grow:0;outline-style:none}.igx-grid-th--filtering{background:var(--filtering-header-background);color:var(--filtering-header-text-color);z-index:3}.igx-grid-th--filtrable.igx-grid-th--sortable :where(.sort-icon){cursor:pointer;opacity:.7}.igx-grid-th--filtrable.igx-grid-th--sortable :where(.sort-icon) :is(:hover){opacity:1}.igx-grid-th--selectable.igx-grid-th--sorted :where(.sort-icon){color:var(--header-selected-text-color)}.igx-grid-th--selectable.igx-grid-th--sorted :where(.sort-icon) :is(:hover,:focus){color:var(--header-selected-text-color)}.igx-grid-th--selected.igx-grid-th--sorted :where(.sort-icon){color:var(--header-selected-text-color)}.igx-grid-th--selected.igx-grid-th--sorted :where(.sort-icon) :is(:hover,:focus){color:var(--header-selected-text-color)}.igx-grid-th__drop-indicator--active.igx-grid-th__drop-indicator-left,.igx-grid-th__drop-indicator--active.igx-grid-th__drop-indicator-right{border-inline-end:.0625rem solid var(--drop-indicator-color)}.igx-grid-th__drop-indicator--active::after,.igx-grid-th__drop-indicator--active::before{position:absolute;content:"";width:0;height:0;border-style:solid;inset-inline-start:-0.1875rem}.igx-grid-th__drop-indicator--active::before{bottom:0;border-width:0 .25rem .25rem;border-color:rgba(0,0,0,0) rgba(0,0,0,0) var(--drop-indicator-color)}.igx-grid-th__drop-indicator--active::after{top:0;border-width:.25rem .25rem 0;border-color:var(--drop-indicator-color) rgba(0,0,0,0) rgba(0,0,0,0)}.igx-grid-thead{grid-row:3;display:flex;overflow:hidden;background:var(--header-background);color:var(--header-text-color)}.igx-grid-thead .igx-grid__tr{position:relative;background:inherit;color:inherit;z-index:2}.igx-grid-thead .igx-grid__tr:hover{background:inherit;color:inherit}.igx-grid-thead__wrapper{position:relative;display:flex;background:var(--header-background);color:var(--header-text-color);overflow:hidden;outline-style:none;z-index:2;border-bottom:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38))}.igx-grid-thead__wrapper .igx-grid__tr{border-bottom:none}.igx-grid-thead__wrapper .igx-grid__tr:hover{background:inherit;color:inherit}.igx-grid-thead__wrapper .igx-grid__tr-action:last-of-type{border-inline-end:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38))}.igx-grid-thead__wrapper .igx-grid__cbx-selection--push{align-items:flex-start;padding-block-start:max(var(--is-large, 1)*max(0.9375rem, -1 * 0.9375rem)*var(--ig-spacing-block-large, var(--ig-spacing-block, var(--ig-spacing))),var(--is-medium, 1)*max(0.625rem, -1 * 0.625rem)*var(--ig-spacing-block-medium, var(--ig-spacing-block, var(--ig-spacing))),var(--is-small, 1)*max(0.375rem, -1 * 0.375rem)*var(--ig-spacing-block-small, var(--ig-spacing-block, var(--ig-spacing))))}.igx-grid-thead__wrapper>[aria-activedescendant]{outline-style:none}.igx-grid-thead__wrapper:focus{outline:0}.igx-grid-thead__wrapper--pivot{border-block-end:none !important}.igx-grid-thead__title{flex-basis:auto !important;align-items:center !important;border-block-end:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38));border-inline-end:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38));height:var(--header-size)}.igx-grid-thead__group{display:flex;flex-flow:row nowrap}.igx-grid-thead__subgroup{position:relative}.igx-grid-thead__subgroup.igx-grid-thead__item.igx-grid-th--active::after{height:100%}.igx-grid-thead__item{display:flex;flex-flow:column nowrap;position:relative}.igx-grid-thead__item :where(.igx-grid-th,.igx-grid-thead__group){flex:1 1 auto}.igx-grid-thead__item :where(.igx-grid-thead__title){flex:0 0 auto}.igx-grid-thead__thumb{background:var(--header-background);border-block-end:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38));border-inline-start:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38))}.igx-grid-thead--pivot{display:flex}.igx-grid-thead--pivot .igx-grid-thead--virtualizationWrapper{border-inline-start:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38))}.igx-grid-thead--pivot .igx-grid-thead__wrapper{border-block-end:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38))}.igx-grid-thead--virtualizationWrapper{height:100%}.igx-grid-thead--virtualizationContainer{height:100%;overflow:visible}.igx-grid-thead--virtualizationContainer .igx-grid__tr-pivot--columnDimensionLeaf::after{display:none}.igx-grid-thead .igx-grid__group-expand-btn{color:var(--expand-all-icon-color)}.igx-grid-thead .igx-grid__group-expand-btn:hover,.igx-grid-thead .igx-grid__group-expand-btn:focus{color:var(--expand-all-icon-hover-color)}.igx-drop-area{display:flex;align-items:center;justify-content:flex-start;min-width:5rem;width:100%;height:max(var(--is-large, 1)*max(2rem, -1 * 2rem),var(--is-medium, 1)*max(1.5rem, -1 * 1.5rem),var(--is-small, 1)*max(1.5rem, -1 * 1.5rem));padding-block:0;padding-inline:max(var(--is-large, 1)*max(1.5rem, -1 * 1.5rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(1rem, -1 * 1rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))));flex:1 0 0%;background:var(--drop-area-background);border-radius:var(--drop-area-border-radius)}.igx-drop-area:hover{background:var(--drop-area-on-drop-background)}.igx-drop-area__icon{--ig-icon-size: rem(16px);color:var(--drop-area-icon-color);margin-inline-end:.5rem}.igx-drop-area__text{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;color:var(--drop-area-text-color);font-size:.8125rem}.igx-group-label{display:flex;align-items:center;justify-content:flex-start;line-height:1rem;gap:.25rem}.igx-group-label__text{color:var(--group-label-text);font-size:calc(var(--_grid-head-font-size) + 0.0625rem)}.igx-group-label__icon{--component-size: 1;color:var(--group-label-icon);-webkit-user-select:none;-moz-user-select:none;user-select:none}.igx-group-label__column-name{font-weight:600;font-size:var(--_grid-head-font-size);color:var(--group-label-column-name-text)}.igx-group-label__count-badge{--ig-badge-background-color: var(--group-count-background);--ig-badge-text-color: var(--group-count-text-color)}.igx-group-label__count-badge>span{font-size:var(--_grid-head-font-size)}.igx-advanced-filter .igx-excel-filter__secondary-footer{--ig-size: 2;display:flex;justify-content:space-between;padding-inline:max(var(--is-large, 1)*max(1.5rem, -1 * 1.5rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(1.5rem, -1 * 1.5rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(1.5rem, -1 * 1.5rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))));padding-block-end:max(var(--is-large, 1)*max(1.5rem, -1 * 1.5rem)*var(--ig-spacing-block-large, var(--ig-spacing-block, var(--ig-spacing))),var(--is-medium, 1)*max(1.5rem, -1 * 1.5rem)*var(--ig-spacing-block-medium, var(--ig-spacing-block, var(--ig-spacing))),var(--is-small, 1)*max(1.5rem, -1 * 1.5rem)*var(--ig-spacing-block-small, var(--ig-spacing-block, var(--ig-spacing))))}.igx-advanced-filter .igx-excel-filter__secondary-footer .igx-excel-filter__clear{flex-grow:1}.igx-advanced-filter .igx-excel-filter__secondary-footer .igx-excel-filter__apply,.igx-advanced-filter .igx-excel-filter__secondary-footer .igx-excel-filter__cancel{flex-grow:0}.igx-advanced-filter .igx-excel-filter__cancel+.igx-excel-filter__apply{margin-inline-start:1rem}igx-pivot-row-dimension-header.igx-grid-th{align-items:center}igx-pivot-row-dimension-header-group::after{height:100% !important}igx-pivot-row-header-group::after{inset-inline-start:calc(var(--header-border-width)*-1) !important;width:100% !important;height:100% !important}igx-pivot-row-header-group igx-pivot-row-dimension-header.igx-grid-th .igx-grid-th__icons{align-self:center}igx-pivot-row-header-group igx-pivot-row-dimension-header .igx-grid-th__icons{padding-inline-end:max(var(--is-large, 1)*max(1.5rem, -1 * 1.5rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(1rem, -1 * 1rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}igx-pivot-row-header-group:only-child igx-pivot-row-dimension-header.igx-grid-th,igx-pivot-row-header-group:last-child igx-pivot-row-dimension-header.igx-grid-th{border-inline-end:0 !important}.igx-pivot-grid-row-filler__wrapper .igx-grid-thead__wrapper{height:100%}.igx-pivot-grid-row-filler__wrapper .igx-grid-thead__wrapper .igx-grid-th{height:100%}.igx-grid-thead .igx-grid__header-indentation igx-icon{--component-size: 3}.igx-grid-thead .igx-grid__drag-indicator{cursor:default}.igx-grid-thead .igx-grid__tr--mrl .igx-grid__hierarchical-expander--header,.igx-grid-thead .igx-grid__tr--mrl .igx-grid__hierarchical-expander,.igx-grid-thead .igx-grid__tr--mrl .igx-grid__row-indentation,.igx-grid-thead .igx-grid__tr--mrl .igx-grid__cbx-selection{border-bottom:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38))}.igx-grid-thead:focus-visible{outline-color:rgba(0,0,0,0)}.igx-grid__mrl-block .igx-grid-thead__item{display:flex}.igx-grid__mrl-block .igx-grid-thead__title{border-inline-end:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38)) !important;border-block-end:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38))}.igx-grid__mrl-block .igx-grid-th{border-block-end:var(--header-border-width) var(--header-border-style) var(--_grid-header-border-color, hsla(from var(--header-border-color) h s l/0.38))}.igx-grid__mrl-block .igx-grid-thead__subgroup:only-child .igx-grid-th,.igx-grid__mrl-block .igx-grid-thead__subgroup:last-child .igx-grid-th{border-block-end:0}.igx-grid__mrl-block.igx-grid__tbody-pivot-dimension .igx-grid-th{border-block-end:0}.igx-grid__tr--odd.igx-grid__tr--mrl .igx-grid__td{--body-column-border-color-odd: var(--row-border-color);border-block-end:.0625rem solid var(--row-border-color)}.igx-grid__tr--even.igx-grid__tr--mrl .igx-grid__td{--body-column-border-color-even: var(--row-border-color);border-block-end:.0625rem solid var(--row-border-color)}.igx-grid__tr--mrl .igx-grid__cbx-selection,.igx-grid__tr--mrl .igx-grid__hierarchical-expander,.igx-grid__tr--mrl .igx-grid__row-indentation,.igx-grid__tr--mrl .igx-grid__drag-indicator{border-bottom:.0625rem solid var(--row-border-color)}.igx-grid__tr--mrl{background-clip:padding-box !important}.igx-grid .igx-checkbox{min-width:1.25rem}.igx-grid .igx-checkbox .igx-checkbox__composite-wrapper{width:var(--cbx-size, 1.25rem);height:var(--cbx-size, 1.25rem);padding:0 !important}.igx-grid .igx-checkbox .igx-checkbox__label{margin-inline-start:.75rem}.igx-grid .igx-checkbox .igx-checkbox__label--before{margin-inline-end:.75rem}.igx-grid .igx-checkbox .igx-checkbox__label:empty,.igx-grid .igx-checkbox .igx-checkbox__label--before:empty{padding:0;margin:0}.igx-grid-thead__item.igx-grid-th--active::after{width:calc(100% - var(--header-border-width))}.igx-grid__row-indentation--level-1{--_indicator-inline-inset: max(var(--is-large, 1) * max(1.5rem, -1 * 1.5rem), var(--is-medium, 1) * max(1rem, -1 * 1rem), var(--is-small, 1) * max(0.75rem, -1 * 0.75rem));padding-inline-start:max(var(--is-large, 1)*max(calc(1.5rem + var(--_expander-icon-width)), -1 * calc(1.5rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(calc(1rem + var(--_expander-icon-width)), -1 * calc(1rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(calc(0.75rem + var(--_expander-icon-width)), -1 * calc(0.75rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__row-indentation--level-2{--_indicator-inline-inset: max(var(--is-large, 1) * max(1.5rem, -1 * 1.5rem), var(--is-medium, 1) * max(1rem, -1 * 1rem), var(--is-small, 1) * max(0.75rem, -1 * 0.75rem));padding-inline-start:max(var(--is-large, 1)*max(calc(3rem + var(--_expander-icon-width)), -1 * calc(3rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(calc(2rem + var(--_expander-icon-width)), -1 * calc(2rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(calc(1.5rem + var(--_expander-icon-width)), -1 * calc(1.5rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__row-indentation--level-3{--_indicator-inline-inset: max(var(--is-large, 1) * max(1.5rem, -1 * 1.5rem), var(--is-medium, 1) * max(1rem, -1 * 1rem), var(--is-small, 1) * max(0.75rem, -1 * 0.75rem));padding-inline-start:max(var(--is-large, 1)*max(calc(4.5rem + var(--_expander-icon-width)), -1 * calc(4.5rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(calc(3rem + var(--_expander-icon-width)), -1 * calc(3rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(calc(2.25rem + var(--_expander-icon-width)), -1 * calc(2.25rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__row-indentation--level-4{--_indicator-inline-inset: max(var(--is-large, 1) * max(1.5rem, -1 * 1.5rem), var(--is-medium, 1) * max(1rem, -1 * 1rem), var(--is-small, 1) * max(0.75rem, -1 * 0.75rem));padding-inline-start:max(var(--is-large, 1)*max(calc(6rem + var(--_expander-icon-width)), -1 * calc(6rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(calc(4rem + var(--_expander-icon-width)), -1 * calc(4rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(calc(3rem + var(--_expander-icon-width)), -1 * calc(3rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__row-indentation--level-5{--_indicator-inline-inset: max(var(--is-large, 1) * max(1.5rem, -1 * 1.5rem), var(--is-medium, 1) * max(1rem, -1 * 1rem), var(--is-small, 1) * max(0.75rem, -1 * 0.75rem));padding-inline-start:max(var(--is-large, 1)*max(calc(7.5rem + var(--_expander-icon-width)), -1 * calc(7.5rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(calc(5rem + var(--_expander-icon-width)), -1 * calc(5rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(calc(3.75rem + var(--_expander-icon-width)), -1 * calc(3.75rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__row-indentation--level-6{--_indicator-inline-inset: max(var(--is-large, 1) * max(1.5rem, -1 * 1.5rem), var(--is-medium, 1) * max(1rem, -1 * 1rem), var(--is-small, 1) * max(0.75rem, -1 * 0.75rem));padding-inline-start:max(var(--is-large, 1)*max(calc(9rem + var(--_expander-icon-width)), -1 * calc(9rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(calc(6rem + var(--_expander-icon-width)), -1 * calc(6rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(calc(4.5rem + var(--_expander-icon-width)), -1 * calc(4.5rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__row-indentation--level-7{--_indicator-inline-inset: max(var(--is-large, 1) * max(1.5rem, -1 * 1.5rem), var(--is-medium, 1) * max(1rem, -1 * 1rem), var(--is-small, 1) * max(0.75rem, -1 * 0.75rem));padding-inline-start:max(var(--is-large, 1)*max(calc(10.5rem + var(--_expander-icon-width)), -1 * calc(10.5rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(calc(7rem + var(--_expander-icon-width)), -1 * calc(7rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(calc(5.25rem + var(--_expander-icon-width)), -1 * calc(5.25rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__row-indentation--level-8{--_indicator-inline-inset: max(var(--is-large, 1) * max(1.5rem, -1 * 1.5rem), var(--is-medium, 1) * max(1rem, -1 * 1rem), var(--is-small, 1) * max(0.75rem, -1 * 0.75rem));padding-inline-start:max(var(--is-large, 1)*max(calc(12rem + var(--_expander-icon-width)), -1 * calc(12rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(calc(8rem + var(--_expander-icon-width)), -1 * calc(8rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(calc(6rem + var(--_expander-icon-width)), -1 * calc(6rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__row-indentation--level-9{--_indicator-inline-inset: max(var(--is-large, 1) * max(1.5rem, -1 * 1.5rem), var(--is-medium, 1) * max(1rem, -1 * 1rem), var(--is-small, 1) * max(0.75rem, -1 * 0.75rem));padding-inline-start:max(var(--is-large, 1)*max(calc(13.5rem + var(--_expander-icon-width)), -1 * calc(13.5rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(calc(9rem + var(--_expander-icon-width)), -1 * calc(9rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(calc(6.75rem + var(--_expander-icon-width)), -1 * calc(6.75rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}.igx-grid__row-indentation--level-10{--_indicator-inline-inset: max(var(--is-large, 1) * max(1.5rem, -1 * 1.5rem), var(--is-medium, 1) * max(1rem, -1 * 1rem), var(--is-small, 1) * max(0.75rem, -1 * 0.75rem));padding-inline-start:max(var(--is-large, 1)*max(calc(15rem + var(--_expander-icon-width)), -1 * calc(15rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(calc(10rem + var(--_expander-icon-width)), -1 * calc(10rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(calc(7.5rem + var(--_expander-icon-width)), -1 * calc(7.5rem + var(--_expander-icon-width)))*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}}@layer ig.material{@container style(--ig-theme: material){.igx-grid{--ig-chip-disabled-text-color: var(--ig-gray-500);--ig-chip-disabled-background: var(--ig-gray-300);--ig-chip-disabled-border-color: var(--ig-gray-300)}.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle,.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle-start,.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle-end,.igx-grid__filtering-row .igx-input-group igx-prefix,.igx-grid__filtering-row .igx-input-group igx-suffix{align-items:center;background:rgba(0,0,0,0) !important;border-radius:0 !important}.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle:hover,.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle-start:hover,.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle-end:hover,.igx-grid__filtering-row .igx-input-group igx-prefix:hover,.igx-grid__filtering-row .igx-input-group igx-suffix:hover{background:rgba(0,0,0,0) !important}.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle,.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle-start,.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle-end,.igx-grid__filtering-row .igx-input-group .igx-input-group__input{border:0 !important}.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle:hover,.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle-start:hover,.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle-end:hover,.igx-grid__filtering-row .igx-input-group .igx-input-group__input:hover{border:0 !important;box-shadow:none !important}.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle::after,.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle::before{display:none !important}.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle-main{padding-inline-start:0 !important;margin:0 !important;border:0 !important;outline:none !important;box-shadow:none !important;background:rgba(0,0,0,0) !important}.igx-grid__filtering-row .igx-input-group{border:.0625rem solid var(--ig-gray-300) !important}.igx-grid__filtering-row .igx-input-group:hover{border-color:var(--ig-primary-500) !important}.igx-grid__filtering-row .igx-input-group--focused{border-color:var(--ig-primary-500) !important;border-width:.0625rem !important}.igx-grid__filtering-row .igx-input-group--focused .igx-input-group__bundle,.igx-grid__filtering-row .igx-input-group--focused .igx-input-group__bundle-start,.igx-grid__filtering-row .igx-input-group--focused .igx-input-group__bundle-end,.igx-grid__filtering-row .igx-input-group--focused .igx-input-group__input{border:0 !important;box-shadow:none !important}.igx-grid__filtering-row .igx-input-group--focused .igx-input-group__bundle-main,.igx-grid__filtering-row .igx-input-group--focused .igx-input-group__bundle-start,.igx-grid__filtering-row .igx-input-group--focused .igx-input-group__bundle-end{margin:0 !important;border:0 !important;outline:none !important;box-shadow:none !important;background:rgba(0,0,0,0) !important}.igx-grid__filtering-row .igx-input-group--focused .igx-input-group__bundle,.igx-grid__filtering-row .igx-input-group--focused .igx-input-group__bundle-start,.igx-grid__filtering-row .igx-input-group--focused .igx-input-group__bundle-end,.igx-grid__filtering-row .igx-input-group--focused igx-prefix,.igx-grid__filtering-row .igx-input-group--focused igx-suffix{background:rgba(0,0,0,0) !important;border-radius:0 !important}.igx-grid__filtering-row .igx-input-group__line{display:none !important}.igx-grid__filtering-row igx-prefix:focus{color:var(--ig-secondary-500) !important}.igx-grid__filtering-row igx-suffix igx-icon{outline-style:none !important}.igx-grid__filtering-row igx-suffix igx-icon:focus{color:var(--ig-secondary-500) !important}.igx-grid__filtering-row igx-suffix igx-icon+igx-icon{margin-inline-start:.25rem !important}.igx-grid__filtering-row igx-prefix,.igx-grid__filtering-row igx-suffix{padding:0 max(var(--is-large, 1)*max(1rem, -1 * 1rem),var(--is-medium, 1)*max(0.75rem, -1 * 0.75rem),var(--is-small, 1)*max(0.5rem, -1 * 0.5rem)) !important}}}@layer ig.material{@container style(--ig-theme: material){.igx-grid-th__title{font-weight:600}.igx-grid-th__icons .igx-excel-filter__icon--filtered,.igx-grid-th__icons .sort-icon{--ig-icon-size: 0.9375rem}}}@layer ig.bootstrap{@container style(--ig-theme: bootstrap){.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle,.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle-start,.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle-end,.igx-grid__filtering-row .igx-input-group igx-prefix,.igx-grid__filtering-row .igx-input-group igx-suffix{align-items:center;background:rgba(0,0,0,0) !important;border-radius:0 !important}.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle:hover,.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle-start:hover,.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle-end:hover,.igx-grid__filtering-row .igx-input-group igx-prefix:hover,.igx-grid__filtering-row .igx-input-group igx-suffix:hover{background:rgba(0,0,0,0) !important}.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle,.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle-start,.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle-end,.igx-grid__filtering-row .igx-input-group .igx-input-group__input{border:0 !important}.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle:hover,.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle-start:hover,.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle-end:hover,.igx-grid__filtering-row .igx-input-group .igx-input-group__input:hover{border:0 !important;box-shadow:none !important}.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle::after,.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle::before{display:none !important}.igx-grid__filtering-row .igx-input-group .igx-input-group__bundle-main{padding-inline-start:0 !important;margin:0 !important;border:0 !important;outline:none !important;box-shadow:none !important;background:rgba(0,0,0,0) !important}.igx-grid__filtering-row .igx-input-group{border:.0625rem solid var(--ig-gray-300) !important}.igx-grid__filtering-row .igx-input-group:hover{border-color:var(--ig-primary-500) !important}.igx-grid__filtering-row .igx-input-group--focused{border-color:var(--ig-primary-500) !important;border-width:.0625rem !important}.igx-grid__filtering-row .igx-input-group--focused .igx-input-group__bundle,.igx-grid__filtering-row .igx-input-group--focused .igx-input-group__bundle-start,.igx-grid__filtering-row .igx-input-group--focused .igx-input-group__bundle-end,.igx-grid__filtering-row .igx-input-group--focused .igx-input-group__input{border:0 !important;box-shadow:none !important}.igx-grid__filtering-row .igx-input-group--focused .igx-input-group__bundle-main,.igx-grid__filtering-row .igx-input-group--focused .igx-input-group__bundle-start,.igx-grid__filtering-row .igx-input-group--focused .igx-input-group__bundle-end{margin:0 !important;border:0 !important;outline:none !important;box-shadow:none !important;background:rgba(0,0,0,0) !important}.igx-grid__filtering-row .igx-input-group--focused .igx-input-group__bundle,.igx-grid__filtering-row .igx-input-group--focused .igx-input-group__bundle-start,.igx-grid__filtering-row .igx-input-group--focused .igx-input-group__bundle-end,.igx-grid__filtering-row .igx-input-group--focused igx-prefix,.igx-grid__filtering-row .igx-input-group--focused igx-suffix{background:rgba(0,0,0,0) !important;border-radius:0 !important}.igx-grid__filtering-row .igx-input-group__line{display:none !important}.igx-grid__filtering-row igx-prefix:focus{color:var(--ig-secondary-500) !important}.igx-grid__filtering-row igx-suffix igx-icon{outline-style:none !important}.igx-grid__filtering-row igx-suffix igx-icon:focus{color:var(--ig-secondary-500) !important}.igx-grid__filtering-row igx-suffix igx-icon+igx-icon{margin-inline-start:.25rem !important}.igx-grid__filtering-row igx-prefix,.igx-grid__filtering-row igx-suffix{padding:0 max(var(--is-large, 1)*max(0.875rem, -1 * 0.875rem),var(--is-medium, 1)*max(0.625rem, -1 * 0.625rem),var(--is-small, 1)*max(0.5rem, -1 * 0.5rem)) !important}}}@layer ig.bootstrap{@container style(--ig-theme: bootstrap){.igx-grid-th__title{font-weight:700}.igx-grid-th__icons .igx-excel-filter__icon--filtered,.igx-grid-th__icons .sort-icon{--ig-icon-size: 0.9375rem}}}@layer ig.fluent{@container style(--ig-theme: fluent){.igx-grid{box-shadow:0 0 0 .0625rem var(--grid-border-color)}}}@layer ig.fluent{@container style(--ig-theme: fluent){.igx-grid-th__title{font-weight:800}.igx-grid-th__icons .igx-excel-filter__icon--filtered,.igx-grid-th__icons .sort-icon{--ig-icon-size: 0.9375rem}}}@layer ig.indigo{@container style(--ig-theme: indigo){.igx-grid{--cell-height: max(var(--is-large, 1) * max(3rem, -1 * 3rem), var(--is-medium, 1) * max(2.5rem, -1 * 2.5rem), var(--is-small, 1) * max(2rem, -1 * 2rem));--header-size: max(var(--is-large, 1) * max(3rem, -1 * 3rem), var(--is-medium, 1) * max(2.5rem, -1 * 2.5rem), var(--is-small, 1) * max(2rem, -1 * 2rem));--grouparea-size: max(var(--is-large, 1) * max(3.4375rem, -1 * 3.4375rem), var(--is-medium, 1) * max(3rem, -1 * 3rem), var(--is-small, 1) * max(2.5rem, -1 * 2.5rem));--_expander-icon-width: 1rem;--_hierarchical-action-icon: 1rem;--ig-chip-disabled-text-color: var(--ig-gray-500);--ig-chip-disabled-background: var(--ig-gray-200);--ig-chip-disabled-border-color: var(--ig-gray-300);--_grid-header-border-color: var(--header-border-color);--_grid-action-border-color: var(--action-border-color)}.igx-grid__filtering-row-main igx-chips-area{margin-inline:.75rem;gap:.25rem}.igx-grid__filtering-row igx-input-group{--size: calc(sizable(rem(32px), rem(40px), rem(48px)) - 0.5rem)}.igx-grid__filtering-cell{padding-inline:max(var(--is-large, 1)*max(1rem, -1 * 1rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(0.5rem, -1 * 0.5rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing)))) !important}.igx-grid__td:not(.igx-grid__td--editing){padding-inline:max(var(--is-large, 1)*max(1rem, -1 * 1rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(0.5rem, -1 * 0.5rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))));font-family:var(--ig-detail-1-font-family, var(--ig-font-family));font-size:var(--ig-detail-1-font-size);font-weight:var(--ig-detail-1-font-weight);font-style:var(--ig-detail-1-font-style);line-height:var(--ig-detail-1-line-height);letter-spacing:var(--ig-detail-1-letter-spacing);text-transform:var(--ig-detail-1-text-transform);margin-top:var(--ig-detail-1-margin-top);margin-bottom:var(--ig-detail-1-margin-bottom)}.igx-grid__td--bool{--component-size: 2}.igx-grid__td--bool .igx-icon--error{color:var(--ig-gray-500)}.igx-grid__tr--edited::before{width:.25rem}.igx-grid__tr--header igx-icon{--component-size: 2}.igx-grid__tr-action:last-of-type{min-height:max(var(--is-large, 1)*max(3rem, -1 * 3rem),var(--is-medium, 1)*max(2.5rem, -1 * 2.5rem),var(--is-small, 1)*max(2rem, -1 * 2rem))}.igx-grid__tree-grouping-indicator{margin-inline-end:.25rem}.igx-grid__tree-grouping-indicator igx-icon{--component-size: 2}.igx-grid__hierarchical-expander igx-icon{--component-size: 2}.igx-grid__header-indentation igx-icon{--component-size: 2}.igx-grid__group-content{padding-inline-start:0}.igx-grid__grouping-indicator{padding-inline-end:1rem}.igx-grid__grouping-indicator igx-icon{--component-size: 2}.igx-grid__tr-pivot{padding-inline:max(var(--is-large, 1)*max(1rem, -1 * 1rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(0.5rem, -1 * 0.5rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}}}@layer ig.indigo{@container style(--ig-theme: indigo){.igx-grid-th{padding-inline:max(var(--is-large, 1)*max(1rem, -1 * 1rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(0.5rem, -1 * 0.5rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))));font-family:var(--ig-detail-2-font-family, var(--ig-font-family));font-size:var(--ig-detail-2-font-size);font-weight:var(--ig-detail-2-font-weight);font-style:var(--ig-detail-2-font-style);line-height:var(--ig-detail-2-line-height);letter-spacing:var(--ig-detail-2-letter-spacing);text-transform:var(--ig-detail-2-text-transform);margin-top:var(--ig-detail-2-margin-top);margin-bottom:var(--ig-detail-2-margin-bottom)}.igx-grid-th__expander{--component-size: 2}.igx-grid-th__icons .igx-excel-filter__icon{--ig-icon-size: 0.75rem}.igx-grid-th--filtrable :where(.igx-grid-th__title){opacity:.75}.igx-grid-th--sortable .igx-grid-th__icons .sort-icon{opacity:.75}.igx-grid-th--filtrable.igx-grid-th--sortable :where(.sort-icon){opacity:1}.igx-grid-th__icons .igx-excel-filter__icon--filtered igx-icon,.igx-grid-th__icons .sort-icon igx-icon{--component-size: 2}}}@layer ig.indigo{@container style(--ig-theme: indigo){.igx-grid-thead__title{padding-inline:max(var(--is-large, 1)*max(1rem, -1 * 1rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(0.5rem, -1 * 0.5rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}}}@layer ig.indigo{@container style(--ig-theme: indigo){.igx-drop-area{padding-inline:max(var(--is-large, 1)*max(1rem, -1 * 1rem)*var(--ig-spacing-inline-large, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-medium, 1)*max(0.75rem, -1 * 0.75rem)*var(--ig-spacing-inline-medium, var(--ig-spacing-inline, var(--ig-spacing))),var(--is-small, 1)*max(0.5rem, -1 * 0.5rem)*var(--ig-spacing-inline-small, var(--ig-spacing-inline, var(--ig-spacing))))}}}@layer ig.indigo{@container style(--ig-theme: indigo){igx-icon.igx-group-label__icon{--component-size: 2}.igx-group-label__count-badge{--shadow: none}}}@layer ig.indigo{@container style(--ig-theme: indigo) and style(--ig-theme-variant: light){.igx-grid-th--sortable .igx-grid-th__icons .sort-icon{opacity:.75}.igx-grid-th--sortable .igx-grid-th__icons .sort-icon:hover{opacity:1}}}@layer ig.indigo{@container style(--ig-theme: indigo) and style(--ig-theme-variant: light){.igx-grid__pivot-empty-chip-area{color:var(--ig-gray-600)}.igx-grid__tr-header-row igx-pivot-row-dimension-header-group igx-icon{opacity:.75}.igx-grid__tr-header-row igx-pivot-row-dimension-header-group igx-icon:hover{opacity:1;cursor:pointer}}}@layer ig.indigo{@container style(--ig-theme: indigo) and style(--ig-theme-variant: light){.igx-grid-thead__title igx-icon{opacity:.75}.igx-grid-thead__title igx-icon:hover{opacity:1;cursor:pointer}}}@layer ig.material{@container style(--ig-theme: material) and style(--ig-theme-variant: dark){.igx-grid{--ig-chip-disabled-text-color: var(--ig-gray-300);--ig-chip-disabled-background: var(--ig-gray-200);--ig-chip-disabled-border-color: var(--ig-gray-200)}.igx-grid__td--bool .igx-icon--error{color:var(--ig-gray-500)}}}@layer ig.bootstrap{@container style(--ig-theme: bootstrap) and style(--ig-theme-variant: dark){.igx-grid{--ig-chip-disabled-text-color: var(--ig-gray-400);--ig-chip-disabled-background: var(--ig-gray-200);--ig-chip-disabled-border-color: var(--ig-gray-200)}.igx-grid__td--bool .igx-icon--error{color:var(--ig-gray-500)}}}@layer ig.fluent{@container style(--ig-theme: fluent) and style(--ig-theme-variant: dark){.igx-grid{--ig-chip-disabled-text-color: var(--ig-gray-400);--ig-chip-disabled-background: var(--ig-gray-200);--ig-chip-disabled-border-color: var(--ig-gray-200)}.igx-grid__td--bool .igx-icon--error{color:var(--ig-gray-500)}}}@layer ig.indigo{@container style(--ig-theme: indigo) and style(--ig-theme-variant: dark){.igx-grid-th--sortable .igx-grid-th__icons .sort-icon{opacity:.85}.igx-grid-th--filtrable :where(.igx-grid-th__title){opacity:.85}.igx-grid-th--fw igx-icon{--component-size: 3}}}@layer ig.indigo{@container style(--ig-theme: indigo) and style(--ig-theme-variant: dark){.igx-grid{--ig-chip-disabled-text-color: var(--ig-gray-300);--ig-chip-disabled-background: var(--ig-gray-200);--ig-chip-disabled-border-color: var(--ig-gray-200)}.igx-grid__td--bool .igx-icon--error{color:var(--ig-gray-500)}.igx-grid__pivot-empty-chip-area{color:hsl(from var(--ig-gray-50-contrast) h s l/0.6)}.igx-grid__tr-header-row igx-pivot-row-dimension-header-group igx-icon{opacity:.85}.igx-grid__tr-header-row igx-pivot-row-dimension-header-group igx-icon:hover{opacity:1;cursor:pointer}}}@layer ig.indigo{@container style(--ig-theme: indigo) and style(--ig-theme-variant: dark){.igx-grid-thead__title igx-icon{opacity:.85}.igx-grid-thead__title igx-icon:hover{opacity:1;cursor:pointer}}}`;var HMe=new Oe(`SCROLL_THROTTLE_TIME_MULTIPLIER`,{factory:()=>10});var qMe=-1;var GMe=15;var IZ=136;var UMe=Symbol(`igx-grid-base`);var WMe=(()=>{class r$34{get emptyGridTemplate(){return this._emptyGridTemplate||this.emptyDirectiveTemplate}set emptyGridTemplate(e){this._emptyGridTemplate=e}get loadingGridTemplate(){return this._loadingGridTemplate||this.loadingDirectiveTemplate}set loadingGridTemplate(e){this._loadingGridTemplate=e}set summaryRowHeight(e){this._summaryRowHeight=e|0,this.summaryService.summaryHeight=e,this._init||this.reflow()}get summaryRowHeight(){return this.hasSummarizedColumns&&this.rootSummariesEnabled?this._summaryRowHeight||this.summaryService.calcMaxSummaryHeight():0}get hasColumnsToAutosize(){return this._columns.some(e=>e.width===`fit-content`)}get dataCloneStrategy(){return this._dataCloneStrategy}set dataCloneStrategy(e){e&&(this._dataCloneStrategy=e,this._transactions.cloneStrategy=e)}get primaryKey(){return this._primaryKey}set primaryKey(e){this._primaryKey=e,this.checkPrimaryKeyField()}get excelStyleFilteringComponent(){return this.excelStyleFilteringComponents?.first}get headerGroups(){return this.theadRow.groups}get actionStrip(){return this.actionStripComponents?.first}get dragGhostCustomTemplate(){return this._dragGhostCustomTemplate||this.dragGhostCustomTemplates?.first}set dragGhostCustomTemplate(e){this._dragGhostCustomTemplate=e}get headerContainer(){return this.theadRow?.headerForOf}get headerSelectorContainer(){return this.theadRow?.headerSelectorContainer}get headerDragContainer(){return this.theadRow?.headerDragContainer}get headerGroupContainer(){return this.theadRow?.headerGroupContainer}get filteringRow(){return this.theadRow?.filterRow}get rowEditTextTemplate(){return this._rowEditTextTemplate||this.rowEditTextDirectives?.first}set rowEditTextTemplate(e){this._rowEditTextTemplate=e}get rowAddTextTemplate(){return this._rowAddTextTemplate||this.rowAddText}set rowAddTextTemplate(e){this._rowAddTextTemplate=e}get rowEditActionsTemplate(){return this._rowEditActionsTemplate||this.rowEditActionsDirectives?.first}set rowEditActionsTemplate(e){this._rowEditActionsTemplate=e}get rowExpandedIndicatorTemplate(){return this._rowExpandedIndicatorTemplate||this.rowExpandedIndicatorDirectiveTemplate}set rowExpandedIndicatorTemplate(e){this._rowExpandedIndicatorTemplate=e}get rowCollapsedIndicatorTemplate(){return this._rowCollapsedIndicatorTemplate||this.rowCollapsedIndicatorDirectiveTemplate}set rowCollapsedIndicatorTemplate(e){this._rowCollapsedIndicatorTemplate=e}get headerExpandedIndicatorTemplate(){return this._headerExpandIndicatorTemplate||this.headerExpandedIndicatorDirectiveTemplate}set headerExpandedIndicatorTemplate(e){this._headerExpandIndicatorTemplate=e}get headerCollapsedIndicatorTemplate(){return this._headerCollapseIndicatorTemplate||this.headerCollapsedIndicatorDirectiveTemplate}set headerCollapsedIndicatorTemplate(e){this._headerCollapseIndicatorTemplate=e}get excelStyleHeaderIconTemplate(){return this._excelStyleHeaderIconTemplate||this.excelStyleHeaderIconDirectiveTemplate}set excelStyleHeaderIconTemplate(e){this._excelStyleHeaderIconTemplate=e}get sortAscendingHeaderIconTemplate(){return this._sortAscendingHeaderIconTemplate}set sortAscendingHeaderIconTemplate(e){this._sortAscendingHeaderIconTemplate=e}get sortDescendingHeaderIconTemplate(){return this._sortDescendingHeaderIconTemplate}set sortDescendingHeaderIconTemplate(e){this._sortDescendingHeaderIconTemplate=e}get sortHeaderIconTemplate(){return this._sortHeaderIconTemplate}set sortHeaderIconTemplate(e){this._sortHeaderIconTemplate=e}get ariaColCount(){return this.visibleColumns.length}get ariaRowCount(){return this._rendered?this._rowCount:null}set resourceStrings(e){this._resourceStrings=Object.assign({},this.resourceStrings,e),this.notifyChanges()}get resourceStrings(){return this._resourceStrings||this._defaultResourceStrings}get filteringLogic(){return this._filteringExpressionsTree.operator}set filteringLogic(e){this._filteringExpressionsTree.operator=e}get filteringExpressionsTree(){return this._filteringExpressionsTree}set filteringExpressionsTree(e){if(e&&Ws(e)){for(let i=0;i0?this._filteringExpressionsTree=this.getRecreatedTree(e):this._filteringExpressionsTree=e,this.filteringPipeTrigger++,this.filteringExpressionsTreeChange.emit(this._filteringExpressionsTree),this.filteringService.isFilteringExpressionsTreeEmpty(this._filteringExpressionsTree)&&this.filteringService.isFilteringExpressionsTreeEmpty(this._advancedFilteringExpressionsTree)&&(this._filteredData=null),this.filteringService.refreshExpressions(),this.selectionService.clearHeaderCBState(),this.summaryService.clearSummaryCache(),this.notifyChanges()}}get advancedFilteringExpressionsTree(){return this._advancedFilteringExpressionsTree}set advancedFilteringExpressionsTree(e){let i={owner:this,filteringExpressions:e,cancel:!1};this.filtering.emit(i),!i.cancel&&(e&&Ws(e)?(e.type=tN.Advanced,this._columns&&this._columns.length>0?this._advancedFilteringExpressionsTree=this.getRecreatedTree(e):this._advancedFilteringExpressionsTree=e,this.filteringPipeTrigger++):this._advancedFilteringExpressionsTree=null,this.advancedFilteringExpressionsTreeChange.emit(this._advancedFilteringExpressionsTree),this.filteringService.isFilteringExpressionsTreeEmpty(this._filteringExpressionsTree)&&this.filteringService.isFilteringExpressionsTreeEmpty(this._advancedFilteringExpressionsTree)&&(this._filteredData=null),this.selectionService.clearHeaderCBState(),this.summaryService.clearSummaryCache(),this.notifyChanges(),requestAnimationFrame(()=>this.filteringDone.emit(this._advancedFilteringExpressionsTree)))}get locale(){return this._locale||this._defaultLocale}set locale(e){e!==this._locale&&(this._locale=this.i18nFormatter.verifyLocale(e),this._defaultResourceStrings=Qt(yx,!1,this._locale),this._currencyPositionLeft=void 0,this.summaryService.clearSummaryCache(),this.pipeTrigger++,this.notifyChanges(),this.localeChange.emit())}get pagingMode(){return this._pagingMode}set pagingMode(e){this._pagingMode=e,this.pipeTrigger++,this.notifyChanges(!0)}get page(){return this.paginator?.page||0}set page(e){this.paginator&&(this.paginator.page=e)}get perPage(){return this.paginator?.perPage||GMe}set perPage(e){this.paginator&&(this.paginator.perPage=e)}get hideRowSelectors(){return this._hideRowSelectors}set hideRowSelectors(e){this._hideRowSelectors=e,this.notifyChanges(!0)}get rowDraggable(){return this._rowDrag&&this.hasVisibleColumns}set rowDraggable(e){this._rowDrag=e,this.notifyChanges(!0)}get rowEditable(){return this._rowEditable}set rowEditable(e){this._init||this.refreshGridState(),this._rowEditable=e,this.notifyChanges()}get height(){return this._height}set height(e){this._height!==e&&(this._height=e,this.nativeElement.style.height=e,this.notifyChanges(!0))}get hostWidth(){return this._width||this._hostWidth}get width(){return this._width}set width(e){this._width!==e&&(this._width=e,this.nativeElement.style.width=e,this.notifyChanges(!0))}get headerWidth(){return parseInt(this.width,10)-17}get rowHeight(){return this._rowHeight?this._rowHeight:this.defaultRowHeight}set rowHeight(e){typeof e!=`number`&&(e=parseInt(e,10)),this._rowHeight=e}get columnWidth(){return this._columnWidth}set columnWidth(e){this._columnWidth=e,this.columnWidthSetByUser=!0,this.notifyChanges(!0)}set emptyGridMessage(e){this._emptyGridMessage=e}get emptyGridMessage(){return this._emptyGridMessage||this.resourceStrings.igx_grid_emptyGrid_message}set isLoading(e){this._isLoading!==e&&(this._isLoading=e,this.data&&this.evaluateLoadingState()),Promise.resolve().then(()=>{this.notifyChanges()})}get isLoading(){return this._isLoading}get shouldGenerate(){return this.autoGenerate}set shouldGenerate(e){this.autoGenerate=e}set emptyFilteredGridMessage(e){this._emptyFilteredGridMessage=e}get emptyFilteredGridMessage(){return this._emptyFilteredGridMessage||this.resourceStrings.igx_grid_emptyFilteredGrid_message}get pinning(){return this._pinning}set pinning(e){e!==this._pinning&&this.resetCaches(),this._pinning=Object.assign({},this._pinning,e)}get allowFiltering(){return this._allowFiltering}set allowFiltering(e){this._allowFiltering!==e&&(this._allowFiltering=e,this.filteringService.registerSVGIcons(),this.filteringService.isFilterRowVisible=!1,this.filteringService.filteredColumn=null,this.notifyChanges(!0))}get allowAdvancedFiltering(){return this._allowAdvancedFiltering}set allowAdvancedFiltering(e){this._allowAdvancedFiltering!==e&&(this._allowAdvancedFiltering=e,this.filteringService.registerSVGIcons(),this._init||this.notifyChanges(!0))}get filterMode(){return this._filterMode}set filterMode(e){switch(e){case Em.excelStyleFilter:case Em.quickFilter:this._filterMode=e;break;default:break}this.filteringService.isFilterRowVisible&&this.filteringRow.close(),this.notifyChanges(!0)}get summaryPosition(){return this._summaryPosition}set summaryPosition(e){this._summaryPosition=e,this.notifyChanges()}get summaryCalculationMode(){return this._summaryCalculationMode}set summaryCalculationMode(e){this._summaryCalculationMode=e,this._init||(this.crudService.endEdit(!1),this.summaryService.resetSummaryHeight(),this.notifyChanges(!0))}get showSummaryOnCollapse(){return this._showSummaryOnCollapse}set showSummaryOnCollapse(e){this._showSummaryOnCollapse=e,this.notifyChanges()}get filterStrategy(){return this._filterStrategy}set filterStrategy(e){this._filterStrategy=e}get sortStrategy(){return this._sortingStrategy}set sortStrategy(e){this._sortingStrategy=e}get mergeStrategy(){return this._mergeStrategy}set mergeStrategy(e){this._mergeStrategy=e}set sortingOptions(e){this._init||this.clearSort(),this._sortingOptions=Object.assign(this._sortingOptions,e)}get sortingOptions(){return this._sortingOptions}set selectedRows(e){this.selectRows(e||[],!0)}get selectedRows(){return this.selectionService.getSelectedRows()}get headerGroupsList(){return this.theadRow.groups}get headerCellList(){return this.headerGroupsList.map(e=>e.header).filter(e=>e)}get filterCellList(){return this.headerGroupsList.map(e=>e.filter).filter(e=>e)}get summariesRowList(){let e=new ls;if(!this._summaryRowList)return e;let i=this._summaryRowList.filter(n=>n.element.nativeElement.parentElement!==null);return e.reset(i),e}get rowList(){let e=new ls;if(!this._rowList)return e;let i=this._rowList.filter(n=>n.element.nativeElement.parentElement!==null).sort((n,s)=>n.index-s.index);return e.reset(i),e}get dataRowList(){let e=new ls;if(!this._dataRowList)return e;let i=this._dataRowList.filter(n=>n.element.nativeElement.parentElement!==null).sort((n,s)=>n.index-s.index);return e.reset(i),e}get headSelectorTemplate(){return this._headSelectorTemplate||this.headSelectorsTemplates?.first}set headSelectorTemplate(e){this._headSelectorTemplate=e}get isRowPinningToTop(){return this.pinning.rows!==UE.Bottom}get rowSelectorTemplate(){return this._rowSelectorTemplate||this.rowSelectorsTemplates?.first}set rowSelectorTemplate(e){this._rowSelectorTemplate=e}get rowEditCustom(){return this.rowEditCustomDirectives&&this.rowEditCustomDirectives.first?this.rowEditCustomDirectives.first:null}get rowEditContainer(){return this.rowEditCustom?this.rowEditCustom:this.defaultRowEditTemplate}get dragIndicatorIconTemplate(){return this._customDragIndicatorIconTemplate||this.dragIndicatorIconTemplates?.first}set dragIndicatorIconTemplate(e){this._customDragIndicatorIconTemplate=e}get firstEditableColumnIndex(){let e=this.visibleColumns.filter(i=>i.editable).map(i=>i.visibleIndex).sort((i,n)=>i-n);return e.length?e[0]:null}get lastEditableColumnIndex(){let e=this.visibleColumns.filter(i=>i.editable).map(i=>i.visibleIndex).sort((i,n)=>i>n?-1:1);return e.length?e[0]:null}get rowEditTabs(){return this.rowEditTabsCUSTOM.length?this.rowEditTabsCUSTOM:this.rowEditTabsDEFAULT}get activeDescendant(){let e=this.navigation.activeNode;if(!(!e||!Object.keys(e).length||e.row<0))return`${this.id}_${e.row}_${e.column}`}get bannerClass(){return`igx-banner ${this.rowEditPositioningStrategy.isTop?`igx-banner__border-top`:`igx-banner__border-bottom`}`}get sortingExpressions(){return this._sortingExpressions}set sortingExpressions(e){this._sortingExpressions=sn(e),this.sortingExpressionsChange.emit(this._sortingExpressions),this.cellMergeMode===NF.onSort&&this.resetColumnCollections(),this.notifyChanges()}get hiddenColumnsCount(){return this._columns.filter(e=>e.columnGroup===!1&&e.hidden===!0).length}get pinnedColumnsCount(){return this.pinnedColumns.filter(e=>!e.columnLayout).length}get batchEditing(){return this._batchEditing}set batchEditing(e){e!==this._batchEditing&&(this._transactions=null,this._batchEditing=e,this.switchTransactionService(e),this.subscribeToTransactions())}get transactions(){return this._diTransactions&&!this.batchEditing?this._diTransactions:this._transactions}get currentRowState(){return this._currentRowState}get currencyPositionLeft(){if(this._currencyPositionLeft!==void 0)return this._currencyPositionLeft;let e=pI().getCurrencyPosition(this.locale);return this._currencyPositionLeft=e<1}get cellSelection(){return this._cellSelectionMode}set cellSelection(e){this._cellSelectionMode=e,this.selectionService.clear(!0),this._activeRowIndexes=null,this.notifyChanges()}get cellMergeMode(){return this._cellMergeMode}set cellMergeMode(e){e!==this._cellMergeMode&&(this._cellMergeMode=e,this.resetColumnCollections(),this.notifyChanges())}get rowSelection(){return this._rowSelectionMode}set rowSelection(e){this._rowSelectionMode=e,this._init||(this.selectionService.clearAllSelectedRows(),this.notifyChanges(!0))}get columnSelection(){return this._columnSelectionMode}set columnSelection(e){this._columnSelectionMode=e,this.selectionService.clearAllSelectedColumns(),this.notifyChanges(!0)}set pagingState(e){this._pagingState=e,this.paginator&&!this._init&&e.metadata&&(this.paginator.totalRecords=e.metadata.countRecords)}get pagingState(){return this._pagingState}get lastSearchInfo(){return this._lastSearchInfo}get type(){return`flat`}get paginator(){return this.paginationComponents?.first}get scrollSize(){return this.verticalScrollContainer.getScrollNativeSize()}get minColumnWidth(){return IZ}get isCustomSetRowHeight(){return!isNaN(this._rowHeight)}get filteredData(){return this._filteredData}get filteredSortedData(){return this._filteredSortedData}get rowChangesCount(){if(!this.crudService.row)return 0;let e=n=>{let s=0;return Object.keys(n).forEach(o=>ig(n[o])?s+=e(n[o]):s++),s};if(this.transactions.getState(this.crudService.row.id)?.type===ai.ADD)return this._columns.filter(n=>n.field).length;let i=this.transactions.getAggregatedValue(this.crudService.row.id,!1);return i?e(i):0}get dataWithAddedInTransactionRows(){let e=sn(this.gridAPI.get_all_data());return this.transactions.enabled&&e.push(...this.transactions.getAggregatedChanges(!0).filter(i=>i.type===ai.ADD).map(i=>i.newValue)),this.crudService.row&&this.crudService.row.isAddRow&&e.splice(this.crudService.row.index,0,this.crudService.row.data),e}get dataLength(){return this.transactions.enabled?this.dataWithAddedInTransactionRows.length:this.gridAPI.get_all_data().length}get template(){if(this.isLoading&&(this.hasZeroResultFilter||this.hasNoData))return this.loadingGridTemplate?this.loadingGridTemplate:this.loadingGridDefaultTemplate;if(this.hasZeroResultFilter)return this.emptyGridTemplate?this.emptyGridTemplate:this.emptyFilteredGridTemplate;if(this.hasNoData)return this.emptyGridTemplate?this.emptyGridTemplate:this.emptyGridDefaultTemplate}get hasZeroResultFilter(){return this.filteredData&&this.filteredData.length===0}get totalCalcWidth(){return this.platform.isBrowser?this.calcWidth:void 0}get renderData(){return!this.platform.isBrowser&&this.isPercentHeight?void 0:this.data}get hasNoData(){return!this.data||this.dataLength===0||!this.platform.isBrowser}get shouldOverlayLoading(){return this.isLoading&&!this.hasNoData&&!this.hasZeroResultFilter}get isMultiRowSelectionEnabled(){return this.rowSelection===dn.multiple||this.rowSelection===dn.multipleCascade}get isRowSelectable(){return this.rowSelection!==dn.none}get isCellSelectable(){return this.cellSelection!==dn.none}get columnInDrag(){return this.gridAPI.cms.column}constructor(){this.validation=C(jF),this.selectionService=C(Uy),this.colResizingService=C(Tm),this.gridAPI=C(kF),this.transactionFactory=C(BH),this.elementRef=C(Se),this.zone=C(Nt),this.document=C(St),this.cdr=C(at),this.differs=C(hl),this.viewRef=C(Ti),this.injector=C(ji),this.envInjector=C(Sn),this.navigation=C(tT),this.filteringService=C(Mm),this.textHighlightService=C(h4),this.overlayService=C(Fa),this.summaryService=C($F),this.localeId=C(Ss),this.platform=C(Ut),this._diTransactions=C(kH,{optional:!0}),this.i18nFormatter=C(Ks),this.THROTTLE_TIME_MULTIPLIER=C(HMe),this.throttleTime$=new Ir(this.THROTTLE_TIME_MULTIPLIER),this.throttleScheduler=ao,this.MAX_SCROLL_THROTTLE=60,this.snackbarDisplayTime=6e3,this.autoGenerate=!1,this.autoGenerateExclude=[],this.moving=!1,this.clipboardOptions={enabled:!0,copyHeaders:!0,copyFormatters:!0,separator:` `},this.filteringExpressionsTreeChange=new A,this.advancedFilteringExpressionsTreeChange=new A,this.gridScroll=new A,this.rowStyles=null,this.cellClick=new A,this.rowClick=new A,this.formGroupCreated=new A,this.validationStatusChange=new A,this.selected=new A,this.rowSelectionChanging=new A,this.columnSelectionChanging=new A,this.columnPin=new A,this.columnPinned=new A,this.cellEditEnter=new A,this.cellEditExit=new A,this.cellEdit=new A,this.cellEditDone=new A,this.rowEditEnter=new A,this.rowEdit=new A,this.rowEditDone=new A,this.rowEditExit=new A,this.columnInit=new A,this.sorting=new A,this.sortingDone=new A,this.filtering=new A,this.filteringDone=new A,this.rowAdded=new A,this.rowDeleted=new A,this.rowDelete=new A,this.rowAdd=new A,this.columnResized=new A,this.contextMenu=new A,this.doubleClick=new A,this.columnVisibilityChanging=new A,this.columnVisibilityChanged=new A,this.columnMovingStart=new A,this.columnMoving=new A,this.columnMovingEnd=new A,this.gridKeydown=new A,this.rowDragStart=new A,this.rowDragEnd=new A,this.gridCopy=new A,this.expansionStatesChange=new A,this.selectedRowsChange=new A,this.rowToggle=new A,this.rowPinning=new A,this.rowPinned=new A,this.activeNodeChange=new A,this.sortingExpressionsChange=new A,this.toolbarExporting=new A,this.rangeSelected=new A,this.rendered=new A,this.localeChange=new A,this.dataChanging=new A,this.dataChanged=new A,this.columnList=new ls,this.tmpOutlets=new ls,this.rowExpandedIndicatorDirectiveTemplate=null,this.rowCollapsedIndicatorDirectiveTemplate=null,this.headerExpandedIndicatorDirectiveTemplate=null,this.headerCollapsedIndicatorDirectiveTemplate=null,this.excelStyleHeaderIconDirectiveTemplate=null,this.sortAscendingHeaderIconDirectiveTemplate=null,this.sortDescendingHeaderIconDirectiveTemplate=null,this.sortHeaderIconDirectiveTemplate=null,this.tabindex=0,this.hostRole=`grid`,this.baseClass=`igx-grid`,this.validationTrigger=`change`,this.rowDragging=!1,this.dragRowID=null,this.calcHeight=0,this.disableTransitions=!1,this.columnWidthSetByUser=!1,this.rendered$=this.rendered.asObservable().pipe(cM({bufferSize:1,refCount:!0})),this.resizeNotify=new Te,this.scrollNotify=new Te,this.rowAddedNotifier=new Te,this.rowDeletedNotifier=new Te,this.pipeTriggerNotifier=new Te,this._destroyed=!1,this._totalRecords=-1,this.columnsWithNoSetWidths=null,this.pipeTrigger=0,this.filteringPipeTrigger=0,this.isColumnWidthSum=!1,this.summaryPipeTrigger=0,this.groupablePipeTrigger=0,this.EMPTY_DATA=[],this.destroy$=new Te,this._pagingMode=`local`,this._hideRowSelectors=!1,this._rowDrag=!1,this._columns=[],this._pinnedColumns=[],this._pinnedStartColumns=[],this._pinnedEndColumns=[],this._unpinnedColumns=[],this._filteringExpressionsTree=new mn(Qi.And),this._sortingExpressions=[],this._columnHiding=!1,this._columnPinning=!1,this._pinnedRecordIDs=[],this._mergeStrategy=new OP,this._allowFiltering=!1,this._allowAdvancedFiltering=!1,this._filterMode=Em.quickFilter,this._defaultTargetRecordNumber=10,this._expansionStates=new Map,this._defaultExpandState=!1,this._headerFeaturesWidth=NaN,this._init=!0,this._firstAutoResize=!0,this._autoSizeColumnsNotify=new Te,this._cdrRequestRepaint=!1,this._batchEditing=!1,this._sortingOptions={mode:`multiple`},this._filterStrategy=new ub,this._autoGeneratedCols=[],this._autoGeneratedColsRefs=[],this._dataView=[],this._lastSearchInfo={searchText:``,caseSensitive:!1,exactMatch:!1,activeMatchIndex:0,matchInfoCache:[],matchCount:0,content:``},this._resourceStrings=null,this._rowEditable=!1,this._filteredSortedData=null,this._filteredData=null,this._mergedDataInView=null,this._activeRowIndexes=null,this._cdrRequests=!1,this._defaultResourceStrings=Qt(yx),this._emptyGridMessage=null,this._emptyFilteredGridMessage=null,this._isLoading=!1,this.overlayIDs=[],this._pinning={columns:dr.Start},this._shouldRecalcRowHeight=!1,this._advancedFilteringPositionSettings={verticalDirection:qe.Middle,horizontalDirection:Ve.Center,horizontalStartPoint:Ve.Center,verticalStartPoint:qe.Middle},this._advancedFilteringOverlaySettings={closeOnOutsideClick:!1,modal:!1,positionStrategy:new qr(this._advancedFilteringPositionSettings)},this._height=`100%`,this._width=`100%`,this._horizontalForOfs=[],this._multiRowLayoutRowSize=1,this._totalWidth=NaN,this._pinnedVisible=[],this._unpinnedVisible=[],this._pinnedStartWidth=NaN,this._pinnedEndWidth=NaN,this._unpinnedWidth=NaN,this._visibleColumns=[],this._columnGroups=!1,this._summaryPosition=el.bottom,this._summaryCalculationMode=oc.rootAndChildLevels,this._showSummaryOnCollapse=!1,this._summaryRowHeight=0,this._cellSelectionMode=dn.multiple,this._rowSelectionMode=dn.none,this._selectRowOnClick=!0,this._columnSelectionMode=dn.none,this.rowEditPositioningStrategy=new GE({horizontalDirection:Ve.Right,verticalDirection:qe.Bottom,horizontalStartPoint:Ve.Left,verticalStartPoint:qe.Bottom,closeAnimation:null}),this.rowEditSettings={scrollStrategy:new Cn,modal:!1,closeOnOutsideClick:!1,positionStrategy:this.rowEditPositioningStrategy},this.transactionChange$=new Te,this._rendered=!1,this.DRAG_SCROLL_DELTA=10,this._dataCloneStrategy=new Cf,this._autoSize=!1,this._sortHeaderIconTemplate=null,this._sortAscendingHeaderIconTemplate=null,this._sortDescendingHeaderIconTemplate=null,this._gridSize=wo.Large,this._defaultRowHeight=50,this._borderSize=1,this._cellMergeMode=NF.onSort,this._columnsToMerge=[],this.displayStyle=`grid`,this.templateRows=`auto auto auto 1fr auto auto`,this.isHorizontalScrollHidden=!1,this.preventContainerScroll=e=>{let i=e.target;i.scrollTop!==0&&(this.verticalScrollContainer.addScroll(i.scrollTop),i.scrollTop=0),i.scrollLeft!==0&&(this.headerContainer.scrollPosition+=i.scrollLeft,i.scrollLeft=0)},this.rowEditingWheelHandler=e=>{e.deltaY>0?this.verticalScrollContainer.scrollNext():this.verticalScrollContainer.scrollPrev()},C(jH).register(UMe,jMe),this.initLocale(),this._transactions=this.transactionFactory.create(`None`),this._transactions.cloneStrategy=this.dataCloneStrategy,this.cdr.detach(),pT.register()}hideActionStrip(){this.actionStrip?.hide()}get headerFeaturesWidth(){return this._headerFeaturesWidth}isDetailRecord(e){return!1}isGroupByRecord(e){return!1}isChildGridRecord(e){return!1}isGhostRecord(e){return e.ghostRecord!==void 0}isAddRowRecord(e){return e.addRow!==void 0}getDataViewIndex(e,i){return i&&!this.isRowPinningToTop?e=e+this.unpinnedDataView.length:!i&&this.isRowPinningToTop&&(e=e+this.pinnedDataView.length),e}get hasDetails(){return!1}get virtualizationState(){return this.verticalScrollContainer.state}hideOverlays(){this.overlayIDs.forEach(e=>{let i=this.overlayService.getOverlayById(e);i?.visible&&!i.closeAnimationPlayer?.hasStarted()&&(this.overlayService.hide(e),this.nativeElement.focus())})}isRecordPinnedByViewIndex(e){return this.hasPinnedRecords&&this.isRowPinningToTop&&e=this.unpinnedDataView.length}isRecordPinnedByIndex(e){return this.hasPinnedRecords&&this.isRowPinningToTop&&e=this._filteredSortedUnpinnedData.length}isRecordPinned(e){return this.getInitialPinnedIndex(e)!==-1}isRecordMerged(e){return e?.cellMergeMeta}getMergeCellOffset(e){let i=e.dataIndex,n=this.verticalScrollContainer._virtScrollPosition-this.verticalScrollContainer.getScrollForIndex(i);return this.hasPinnedRecords&&this.isRowPinningToTop&&(n-=this.pinnedRowHeight),-n}getInitialPinnedIndex(e){let i=this.gridAPI.get_row_id(e);return this._pinnedRecordIDs.indexOf(i)}get hasPinnedRecords(){return this._pinnedRecordIDs.length>0}get pinnedRecordsCount(){return this._pinnedRecordIDs.length}get crudService(){return this.gridAPI.crudService}_setupServices(){this.gridAPI.grid=this,this.crudService.grid=this,this.selectionService.grid=this,this.validation.grid=this,this.navigation.grid=this,this.filteringService.grid=this,this.summaryService.grid=this}_setupListeners(){let e=oe(this.destroy$);ri(this.nativeElement,`focusout`).pipe(Zt(()=>!!this.navigation.activeNode),e).subscribe(i=>{let n=this.navigation.activeNode;!this.crudService.cell&&n&&(i.target===this.tbody.nativeElement&&n.row>=0&&n.rowthis.refreshGridState(i)),this.rowDeletedNotifier.pipe(e).subscribe(i=>{this.summaryService.deleteOperation=!0,this.summaryService.clearSummaryCache(i)}),this.subscribeToTransactions(),this.scrollNotify.pipe(Zt(()=>!this._init),Hl(()=>this.throttleTime$.pipe(na(1),ss(i=>iu(i,this.throttleScheduler))),{leading:!0,trailing:!0}),e).subscribe(i=>{this.verticalScrollHandler(i)}),this.resizeNotify.pipe(Zt(()=>!this._init),Ca(40,ao,{leading:!0,trailing:!0}),e).subscribe(()=>{this.zone.run(()=>{this.nativeElement.isConnected&&(this.shouldResize&&(this._gridSize=this.gridSize,this.updateDefaultRowHeight(),this._autoSize=!!(this.isPercentHeight&&this.calcHeight!==this.getDataBasedBodyHeight()),this.crudService.endEdit(!1),this._summaryRowHeight===0&&(this.summaryService.summaryHeight=0)),this.notifyChanges(!0))})}),this.pipeTriggerNotifier.pipe(oe(this.destroy$)).subscribe(()=>this.pipeTrigger++),this.columnMovingEnd.pipe(e).subscribe(()=>this.crudService.endEdit(!1)),this.overlayService.opening.pipe(e).subscribe(i=>{if(this._advancedFilteringOverlayId===i.id){let n=i.componentRef.instance;n&&n.initialize(this,this.overlayService,i.id)}}),this.overlayService.opened.pipe(e).subscribe(i=>{let n=this.overlayService.getOverlayById(i.id)?.settings;if(this._advancedFilteringOverlayId===i.id){let a=i.componentRef.instance;a&&(a.lastActiveNode=this.navigation.activeNode,a.queryBuilder.setAddButtonFocus());return}if(n?.target?.classList.contains(`igx-grid__tr`))return;n?.target instanceof Node&&this.tbody.nativeElement.contains(n?.target)&&this.overlayIDs.indexOf(i.id)===-1&&this.overlayIDs.push(i.id)}),this.overlayService.closed.pipe(Zt(()=>!this._init),e).subscribe(i=>{if(this._advancedFilteringOverlayId===i.id){this.overlayService.detach(this._advancedFilteringOverlayId),this._advancedFilteringOverlayId=null;return}let n=this.overlayIDs.indexOf(i.id);n!==-1&&this.overlayIDs.splice(n,1)}),this.verticalScrollContainer.dataChanging.pipe(Zt(()=>!this._init),e).subscribe(i=>{this.isPercentHeight&&(!this.calcHeight||this.calcHeight===this.getDataBasedBodyHeight()||this.calcHeight===this.renderedRowHeight*this._defaultTargetRecordNumber)&&(this.calculateGridHeight(),i.containerSize=this.calcHeight),this.evaluateLoadingState(),this.updateMergedData()}),this.verticalScrollContainer.chunkSizeChange.pipe(e).subscribe(i=>{this.updateScrollThrottle(i*this.headerContainer.state.chunkSize)}),this.headerContainer?.chunkSizeChange.pipe(e).subscribe(i=>{this.updateScrollThrottle(i*this.verticalScrollContainer.state.chunkSize)}),this.verticalScrollContainer.scrollbarVisibilityChanged.pipe(Zt(()=>!this._init),e).subscribe(()=>{this.notifyChanges(!0),this.cdr.detectChanges(),Promise.resolve().then(()=>this.headerContainer.updateScroll())}),this.headerContainer?.scrollbarVisibilityChanged.pipe(Zt(()=>!this._init),e).subscribe(()=>{this.notifyChanges(!0),this.cdr.detectChanges()}),this.verticalScrollContainer.contentSizeChange.pipe(Zt(()=>!this._init),Ca(30),e).subscribe(()=>{this.onContentSizeChange()}),this.verticalScrollContainer.chunkPreload.pipe(Zt(()=>!this._init),e).subscribe(()=>{this.updateMergedData()}),this._autoSizeColumnsNotify.pipe(Ca(0,this.platform.isBrowser?ao:void 0,{leading:!1,trailing:!0}),e).subscribe(()=>{this.autoSizeColumnsInView(),this._firstAutoResize=!1}),this.activeNodeChange.pipe(Ca(0,this.platform.isBrowser?ao:void 0,{leading:!1,trailing:!0}),e).subscribe(()=>{this._activeRowIndexes=null,this.hasCellsToMerge&&(this.refreshSearch(),this.notifyChanges())}),this.selectionService.selectedRangeChange.pipe(Zt(()=>!this._init),e).subscribe(()=>{this._activeRowIndexes=null,this.hasCellsToMerge&&this.refreshSearch()})}ngOnInit(){this._setupServices(),this._setupListeners(),this.rowListDiffer=this.differs.find([]).create(null),this.columnListDiffer=this.differs.find([]).create((e,i)=>i.field),this.calcWidth=this.width&&this.width.indexOf(`%`)===-1?parseInt(this.width,10):0,this.gridComputedStyles=this.document.defaultView.getComputedStyle(this.nativeElement)}resetColumnsCaches(){this._columns.forEach(e=>e.resetCaches())}generateRowID(){let e=this._columns.find(n=>n.field===this.primaryKey);return(this.data.length?this.resolveDataTypes(this.data[0][this.primaryKey]):e?e.dataType:`string`)===`string`?TF():qMe--}resetForOfCache(){let e=this.dataRowList.first;e&&(this._cdrRequests&&e.virtDirRow.cdr.detectChanges(),e.virtDirRow.assumeMaster())}setFilteredData(e,i){if(this.hasPinnedRecords&&i){this._filteredPinnedData=e||[];let n=this._filteredUnpinnedData||[],s=[...this._filteredPinnedData,...n];this._filteredData=s.length>0?s:this._filteredUnpinnedData}else this.hasPinnedRecords&&!i?this._filteredUnpinnedData=e:this._filteredData=e}get columnsToMerge(){if(this._columnsToMerge.length)return this._columnsToMerge;let e=this.visibleColumns.filter(i=>i.merge&&(this.cellMergeMode===`always`||this.cellMergeMode===`onSort`&&!!this.sortingExpressions.find(n=>n.fieldName===i.field)));return this._columnsToMerge=e,this._columnsToMerge}allowResetOfColumnsToMerge(){return!SH(this.visibleColumns.filter(i=>i.merge&&(this.cellMergeMode===`always`||this.cellMergeMode===`onSort`&&!!this.sortingExpressions.find(n=>n.fieldName===i.field))),this._columnsToMerge)}get mergedDataInView(){return this._mergedDataInView}updateScrollThrottle(e){let i=e<=100?0:Math.floor(e/100)*this.THROTTLE_TIME_MULTIPLIER;this.throttleTime$.next(Math.min(i,this.MAX_SCROLL_THROTTLE))}resetColumnCollections(){this.hasColumnLayouts&&this._columns.filter(e=>e.columnLayout).forEach(e=>e.populateVisibleIndexes()),this._visibleColumns.length=0,this._pinnedVisible.length=0,this._unpinnedVisible.length=0,this.allowResetOfColumnsToMerge()&&(this._columnsToMerge.length=0)}resetCachedWidths(){this._unpinnedWidth=NaN,this._pinnedStartWidth=NaN,this._pinnedEndWidth=NaN,this._totalWidth=NaN}resetCaches(e=!0){e&&(this._headerFeaturesWidth=NaN,this.summaryService.summaryHeight=0),this.resetColumnsCaches(),this.resetColumnCollections(),this.resetForOfCache(),this.resetCachedWidths(),this.hasVisibleColumns=void 0,this._columnGroups=this._columns.some(i=>i.columnGroup)}ngAfterContentInit(){this.sortHeaderIconDirectiveTemplate&&(this.sortHeaderIconTemplate=this.sortHeaderIconDirectiveTemplate),this.sortAscendingHeaderIconDirectiveTemplate&&(this.sortAscendingHeaderIconTemplate=this.sortAscendingHeaderIconDirectiveTemplate),this.sortDescendingHeaderIconDirectiveTemplate&&(this.sortDescendingHeaderIconTemplate=this.sortDescendingHeaderIconDirectiveTemplate),this.setupColumns(),this.toolbar.changes.pipe(Zt(()=>!this._init),oe(this.destroy$)).subscribe(()=>this.notifyChanges(!0)),this.setUpPaginator(),this.paginationComponents.changes.pipe(oe(this.destroy$)).subscribe(()=>{this.setUpPaginator()})}get activeRowIndexes(){if(this._activeRowIndexes)return this._activeRowIndexes;{let e=this.navigation.activeNode?.row,i=this.selectionService.selection?Array.from(this.selectionService.selection.keys()):[];return this._activeRowIndexes=[e,...i],this._activeRowIndexes}}get hasCellsToMerge(){return this.columnsToMerge.length>0}dataRebinding(e){e.state.chunkSize==0&&(this._shouldRecalcRowHeight=!0),this.dataChanging.emit(e)}dataRebound(e){this.selectionService.clearHeaderCBState(),this._shouldRecalcRowHeight&&(this._shouldRecalcRowHeight=!1,this.updateDefaultRowHeight()),this.dataChanged.emit(e)}createFilterDropdown(e,i){if(i.outlet=this.outlet,this.excelStyleFilteringComponent){this.excelStyleFilteringComponent.initialize(e,this.overlayService),this.excelStyleFilteringComponent.populateData();let s=this.overlayService.attach(this.excelStyleFilteringComponent.element,i);return this.excelStyleFilteringComponent.overlayComponentId=s,s}return this.overlayService.attach(WE,this.viewRef,i)}setUpPaginator(){this.paginator?(this.paginator.pageChange.pipe(Mp(()=>!!this.paginator),Zt(()=>!this._init)).pipe(oe(this.destroy$)).subscribe(()=>{this.selectionService.clear(!0),this._activeRowIndexes=null,this.crudService.endEdit(!1),this.pipeTrigger++,this.navigateTo(0),this.notifyChanges()}),this.paginator.perPageChange.pipe(Mp(()=>!!this.paginator),Zt(()=>!this._init)).pipe(oe(this.destroy$)).subscribe(()=>{this.selectionService.clear(!0),this._activeRowIndexes=null,this.page=0,this.crudService.endEdit(!1),this.notifyChanges()})):this.markForCheck()}setFilteredSortedData(e,i){e=e||[],this.pinnedRecordsCount>0?i?(this._filteredSortedPinnedData=e,this.pinnedRecords=e,this._filteredSortedData=this.isRowPinningToTop?[...this._filteredSortedPinnedData,...this._filteredSortedUnpinnedData]:[...this._filteredSortedUnpinnedData,...this._filteredSortedPinnedData],this.refreshSearch(!0,!1)):this._filteredSortedUnpinnedData=e:(this._filteredSortedData=e,this.refreshSearch(!0,!1)),this.buildDataView(e)}resetHorizontalVirtualization(){let e=i=>this.isDefined(i.nativeElement.parentElement);this._horizontalForOfs=[...this._dataRowList.filter(e).map(i=>i.virtDirRow),...this._summaryRowList.filter(e).map(i=>i.virtDirRow)]}_setupRowObservers(){let e=o=>this.isDefined(o.nativeElement.parentElement),i=a_($i(o=>o.filter(e).map(a=>a.virtDirRow))),n=i(this._dataRowList.changes),s=i(this._summaryRowList.changes);n.pipe(oe(this.destroy$)).subscribe(()=>{this.resetHorizontalVirtualization()}),s.pipe(oe(this.destroy$)).subscribe(()=>{this.resetHorizontalVirtualization()}),this.resetHorizontalVirtualization()}_zoneBegoneListeners(){this.zone.runOutsideAngular(()=>{this.verticalScrollHandler=this.verticalScrollHandler.bind(this),this.horizontalScrollHandler=this.horizontalScrollHandler.bind(this),this.verticalScrollContainer.getScroll().addEventListener(`scroll`,e=>this.scrollNotify.next(e)),this.headerContainer?.getScroll().addEventListener(`scroll`,this.horizontalScrollHandler),this.hasColumnsToAutosize&&this.headerContainer?.dataChanged.pipe(oe(this.destroy$)).subscribe(()=>{this.cdr.detectChanges(),Bo(this.injector,()=>this.autoSizeColumnsInView())}),kf(this.nativeElement).pipe(Tn(),oe(this.destroy$)).subscribe(()=>this.resizeNotify.next()),kf(this.tbodyContainer.nativeElement).pipe(oe(this.destroy$)).subscribe(()=>this.resizeNotify.next())})}ngAfterViewInit(){this.initPinning(),this.calculateGridSizes(),this._init=!1,this.cdr.reattach(),this._setupRowObservers(),this._zoneBegoneListeners(),this.verticalScrollContainer.displayContainer.addEventListener(`scroll`,this.preventContainerScroll),this._pinnedRowList.changes.pipe(oe(this.destroy$)).subscribe(i=>{this.onPinnedRowsChanged(i)}),this.addRowSnackbar?.clicked.pipe(oe(this.destroy$)).subscribe(()=>{let i=this.filteredSortedData[this.lastAddedRowIndex];this.scrollTo(i,0),this.addRowSnackbar.close()}),this.rendered$.pipe(oe(this.destroy$)).subscribe(()=>{this.paginator&&(this.paginator.totalRecords=this.totalRecords?this.totalRecords:this.paginator.totalRecords),this.hasColumnsToAutosize&&this.autoSizeColumnsInView(),this._calculateRowCount(),this._rendered=!0}),Promise.resolve().then(()=>this.rendered.next(!0))}notifyChanges(e=!1){this._cdrRequests=!0,this._cdrRequestRepaint=e,this.cdr.markForCheck()}ngDoCheck(){if(!this._init){if(this._cdrRequestRepaint){this.resetNotifyChanges(),this.calculateGridSizes(),this.refreshSearch(!0);return}this._cdrRequests&&(this.resetNotifyChanges(),this.cdr.detectChanges())}}getDragGhostCustomTemplate(){return this.dragGhostCustomTemplate}ngOnDestroy(){this.tmpOutlets.forEach(e=>{e.cleanCache()}),this._autoGeneratedColsRefs.forEach(e=>e.destroy()),this._autoGeneratedColsRefs=[],this.destroy$.next(!0),this.destroy$.complete(),this.transactionChange$.next(),this.transactionChange$.complete(),this._destroyed=!0,this.textHighlightService.destroyGroup(this.id),this._advancedFilteringOverlayId&&(this.overlayService.detach(this._advancedFilteringOverlayId),this._advancedFilteringOverlayId=``),this.overlayIDs.forEach(e=>{let i=this.overlayService.getOverlayById(e);i&&!i.detached&&this.overlayService.detach(e)}),this.zone.runOutsideAngular(()=>{this.verticalScrollContainer?.getScroll()?.removeEventListener(`scroll`,this.verticalScrollHandler),this.headerContainer?.getScroll()?.removeEventListener(`scroll`,this.horizontalScrollHandler),this.verticalScrollContainer?.displayContainer?.removeEventListener(`scroll`,this.preventContainerScroll)})}toggleColumnVisibility(e){let i=e.column?this._columns.find(n=>n===e.column):void 0;i&&i.toggleVisibility(e.newValue)}get expansionStates(){return this._expansionStates}set expansionStates(e){this._expansionStates=new Map(e),this.expansionStatesChange.emit(this._expansionStates),this.notifyChanges(!0),this.gridAPI.grid&&this.cdr.detectChanges()}expandAll(){this._defaultExpandState=!0,this.expansionStates=new Map}collapseAll(){this._defaultExpandState=!1,this.expansionStates=new Map}expandRow(e){this.gridAPI.set_row_expansion_state(e,!0)}collapseRow(e){this.gridAPI.set_row_expansion_state(e,!1)}toggleRow(e){let i=this.gridAPI.get_rec_by_id(e),n=this.gridAPI.get_row_expansion_state(i);this.gridAPI.set_row_expansion_state(e,!n)}getDefaultExpandState(e){return this._defaultExpandState}get nativeElement(){return this.elementRef.nativeElement}get outlet(){return this.resolveOutlet()}set outlet(e){this._userOutletDirective=e}get defaultRowHeight(){return this._defaultRowHeight}get defaultSummaryHeight(){switch(this.gridSize){case wo.Medium:return 30;case wo.Small:return 24;default:return 36}}get pinnedStartWidth(){return isNaN(this._pinnedStartWidth)?(this._pinnedStartWidth=this.getPinnedStartWidth(),this._pinnedStartWidth):this._pinnedStartWidth}get pinnedEndWidth(){return isNaN(this._pinnedEndWidth)?(this._pinnedEndWidth=this.getPinnedEndWidth(),this._pinnedEndWidth):this._pinnedEndWidth}get unpinnedWidth(){return isNaN(this._unpinnedWidth)?(this._unpinnedWidth=this.getUnpinnedWidth(),this._unpinnedWidth):this._unpinnedWidth}getHeaderCellWidth(e){let i=this.document.createRange(),n=this.platform.getNodeSizeViaRange(i,e,e),s=this.document.defaultView.getComputedStyle(e),o=parseFloat(s.paddingLeft)+parseFloat(s.paddingRight)+parseFloat(s.borderRightWidth);return{width:Math.ceil(n),padding:Math.ceil(o)}}featureColumnsWidth(e){if(Number.isNaN(this._headerFeaturesWidth)){let i=this.headerSelectorContainer?.nativeElement?.getBoundingClientRect?this.headerSelectorContainer.nativeElement.getBoundingClientRect().width:0,n=this.rowDraggable&&this.headerDragContainer?.nativeElement?.getBoundingClientRect?this.headerDragContainer.nativeElement.getBoundingClientRect().width:0,s=this.headerGroupContainer?.nativeElement?.getBoundingClientRect?this.headerGroupContainer.nativeElement.getBoundingClientRect().width:0,o=e?.nativeElement?.getBoundingClientRect?e.nativeElement.getBoundingClientRect().width:0;this._headerFeaturesWidth=i+n+s+o}return this._headerFeaturesWidth}get summariesMargin(){return this.featureColumnsWidth()}get columns(){return this._columns||[]}get pinnedColumns(){return this._pinnedVisible.length?this._pinnedVisible:(this._pinnedVisible=this._pinnedColumns.filter(e=>!e.hidden),this._pinnedVisible)}get pinnedStartColumns(){return this._pinnedStartColumns.filter(e=>!e.hidden)}get pinnedEndColumns(){return this._pinnedEndColumns.filter(e=>!e.hidden)}get pinnedRows(){return this._pinnedRowList.toArray().sort((e,i)=>e.index-i.index)}get unpinnedColumns(){return this._unpinnedVisible.length?this._unpinnedVisible:(this._unpinnedVisible=this._unpinnedColumns.filter(e=>!e.hidden),this._unpinnedVisible)}getHeaderGroupWidth(e){return this.hasColumnLayouts?``:`${parseFloat(e.calcWidth?.toString()||e.defaultWidth)}px`}getColumnByName(e){return this._columns.find(i=>i.field===e)}getColumnByVisibleIndex(e){return this.visibleColumns.find(i=>!i.columnGroup&&!i.columnLayout&&i.visibleIndex===e)}recalculateAutoSizes(){this._columns.forEach(e=>e.autoSize=void 0),this.resetCaches(),Bo(this.injector,()=>{this.cdr.detectChanges(),this.autoSizeColumnsInView()})}get visibleColumns(){return this._visibleColumns.length?this._visibleColumns:(this._visibleColumns=this._columns.filter(e=>!e.hidden),this._visibleColumns)}get totalRecords(){return this._totalRecords>=0?this._totalRecords:this.pagingState?.metadata?.countRecords||0}set totalRecords(e){e>=0&&(this.paginator&&(this.paginator.totalRecords=e),this._totalRecords=e,this.pipeTrigger++,this.notifyChanges())}get totalWidth(){if(!isNaN(this._totalWidth))return this._totalWidth;let e=this.visibleColumns.filter(s=>s.level===0&&!s.pinned),i=0,n=0;for(;n0}get showDragIcons(){return this.rowDraggable&&this._columns.length>this.hiddenColumnsCount}_getDataViewIndex(e){let i=e;return(e<0||e>=this.dataView.length)&&this.pagingMode===`remote`&&this.page!==0?i=e-this.perPage*this.page:this.gridAPI.grid.verticalScrollContainer.isRemote&&(i=e-this.gridAPI.grid.virtualizationState.startIndex),i}getDataIndex(e){let i=e;return this.gridAPI.grid.verticalScrollContainer.isRemote&&(i=e+this.gridAPI.grid.virtualizationState.startIndex),i}moveColumn(e,i,n=$l.AfterDropTarget){let s={source:e,target:i,cancel:!1};if(this.columnMovingEnd.emit(s),!s.cancel&&!(e===i||e.level!==i.level||e.topLevelParent!==i.topLevelParent)){if(e.level&&this._moveChildColumns(e.parent,e,i,n),i.pinned&&!e.pinned){let o=i.pinningPosition===dr.Start?this.pinnedStartColumns.indexOf(i):this.pinnedEndColumns.indexOf(i),a=n===$l.AfterDropTarget?o+1:o;e.pin(a,i.pinningPosition)}if(!i.pinned&&e.pinned){let o=this._unpinnedColumns.indexOf(i),a=n===$l.AfterDropTarget?o+1:o;e.unpin(a)}i.pinned&&e.pinned&&i.pinningPosition!==e.pinningPosition&&(e.pinningPosition=i.pinningPosition),this._moveColumns(e,i,n),this._columnsReordered(e)}}markForCheck(){this.pipeTrigger++,this.cdr.detectChanges()}addRow(e){this.crudService.endEdit(!0),this.gridAPI.addRowToData(e),this.pipeTrigger++,this.rowAddedNotifier.next({data:e,rowData:e,owner:this,primaryKey:e[this.primaryKey],rowKey:e[this.primaryKey]}),this.notifyChanges()}deleteRow(e){if(this.primaryKey!==void 0&&this.primaryKey!==null)return this.deleteRowById(e)}deleteRowById(e){let i={rowID:e,primaryKey:e,rowKey:e,rowData:this.getRowData(e),data:this.getRowData(e),oldValue:this.getRowData(e),owner:this,isAddRow:!1,cancel:!1};if(this.rowDelete.emit(i),i.cancel)return;let n=this.gridAPI.deleteRowById(e);if(n!=null){let s={data:n,rowData:n,owner:this,primaryKey:n[this.primaryKey],rowKey:n[this.primaryKey]};this.rowDeleted.emit(s)}return n}updateCell(e,i,n){if(this.isDefined(this.primaryKey)){let s=this._columns.find(o=>o.field===n);if(s){let o=this.gridAPI.getRowData(i),a=this.gridAPI.get_row_index_in_data(i);if(a<0)return;let c=new RS({rowID:i,columnID:s.index,rowIndex:a},a,s,o[s.field],e,o,this);this.validation.getFormControl(c.id.rowID,c.column.field).setValue(e),this.gridAPI.update_cell(c),this.cdr.detectChanges()}}}updateRow(e,i){if(this.isDefined(this.primaryKey)){let n=this.crudService.cell;n&&n.id.rowID===i&&this.crudService.endCellEdit();let s=new dp(i,-1,this.gridAPI.getRowData(i),this);this.gridAPI.update_row(s,e),this.notifyChanges()}}getRowData(e){if(!this.primaryKey)return e;let i=this.gridAPI.get_all_data(this.transactions.enabled),n=this.gridAPI.get_row_index_in_data(e);return n<0?{}:i[n]}sort(e){let i=sn(this.sortingExpressions);if(e instanceof Array)for(let s of e)this.gridAPI.prepare_sorting_expression([i],s);else this._sortingOptions.mode===`single`&&this._columns.forEach(s=>{s.field!==e.fieldName&&this.clearSort(s.field)}),this.gridAPI.prepare_sorting_expression([i],e);let n={owner:this,sortingExpressions:i,cancel:!1};this.sorting.emit(n),!n.cancel&&(this.crudService.endEdit(!1),e instanceof Array?this.gridAPI.sort_multiple(e):this.gridAPI.sort(e),requestAnimationFrame(()=>this.sortingDone.emit(e)))}filter(e,i,n,s){this.filteringService.filter(e,i,n,s)}filterGlobal(e,i,n){this.filteringService.filterGlobal(e,i,n)}enableSummaries(e,i){Array.isArray(e)?this._multipleSummaries(e,!0):typeof e==`string`?this._summaries(e,!0,i):this._summaries(e.fieldName,!0,e.customSummary)}disableSummaries(e){Array.isArray(e)?this._disableMultipleSummaries(e):typeof e==`string`?this._summaries(e,!1):this._summaries(e.fieldName,!1)}clearFilter(e){this.filteringService.clearFilter(e)}clearSort(e){if(!e){this.sortingExpressions=[];return}this.gridAPI.get_column_by_name(e)&&this.gridAPI.clear_sort(e)}refreshGridState(e){this.crudService.endEdit(!0),this.selectionService.clearHeaderCBState(),this.summaryService.clearSummaryCache(e),this.summaryPipeTrigger++,this.cdr.detectChanges()}pinColumn(e,i,n){return(e instanceof zl?e:this.getColumnByName(e)).pin(i,n)}unpinColumn(e,i){return(e instanceof zl?e:this.getColumnByName(e)).unpin(i)}pinRow(e,i,n){if(this._pinnedRecordIDs.indexOf(e)!==-1)return!1;let s=this.gridAPI.get_pin_row_event_args(e,i,n,!0);if(this.rowPinning.emit(s),s.cancel)return;this.crudService.endEdit(!1);let o=typeof s.insertAtIndex==`number`?s.insertAtIndex:this._pinnedRecordIDs.length;return this._pinnedRecordIDs.splice(o,0,e),this.pipeTrigger++,this.gridAPI.grid&&(this.cdr.detectChanges(),this.rowPinned.emit(s)),!0}unpinRow(e,i){let n=this._pinnedRecordIDs.indexOf(e);if(n===-1)return!1;let s=this.gridAPI.get_pin_row_event_args(e,null,i,!1);if(this.rowPinning.emit(s),!s.cancel)return this.crudService.endEdit(!1),this._pinnedRecordIDs.splice(n,1),this.pipeTrigger++,this.gridAPI.grid&&(this.cdr.detectChanges(),this.rowPinned.emit(s)),!0}get pinnedRowHeight(){let e=this.pinContainer?this.pinContainer.nativeElement.offsetHeight:0;return this.hasPinnedRecords?e:0}get totalHeight(){let e=this.calcHeight?this.calcHeight+this.pinnedRowHeight:this.calcHeight;return this.platform.isBrowser?e:void 0}reflow(){this.calculateGridSizes()}findNext(e,i,n){return this.find(e,1,i,n)}findPrev(e,i,n){return this.find(e,-1,i,n)}refreshSearch(e,i=!0){if(this._lastSearchInfo.searchText){if(this.rebuildMatchCache(),e){let n=this.textHighlightService.highlightGroupsMap.get(this.id);this._lastSearchInfo.matchInfoCache.forEach((s,o)=>{s.column===n.column&&s.row===n.row&&s.index===n.index&&YI(s.metadata,n.metadata)&&(this._lastSearchInfo.activeMatchIndex=o)})}return this.find(this._lastSearchInfo.searchText,0,this._lastSearchInfo.caseSensitive,this._lastSearchInfo.exactMatch,!1,i)}else return 0}clearSearch(){this._lastSearchInfo={searchText:``,caseSensitive:!1,exactMatch:!1,activeMatchIndex:0,matchInfoCache:[],matchCount:0,content:``},this.rowList.forEach(e=>{e.cells&&e.cells.forEach(i=>{i.clearHighlight()})})}get hasEditableColumns(){return this._columns.some(e=>e.editable)}get hasSummarizedColumns(){return this._columns.filter(i=>i.hasSummary&&!i.hidden).length>0}get rootSummariesEnabled(){return this.summaryCalculationMode!==oc.childLevelsOnly}get hasVisibleColumns(){return this._hasVisibleColumns===void 0?this._columns?this._columns.some(e=>!e.hidden):!1:this._hasVisibleColumns}set hasVisibleColumns(e){this._hasVisibleColumns=e}get hasMovableColumns(){return this.moving}get hasColumnGroups(){return this._columnGroups}get hasColumnLayouts(){return!!this._columns.some(e=>e.columnLayout)}get multiRowLayoutRowSize(){return this._multiRowLayoutRowSize}get rowBasedHeight(){return this.dataLength*this.rowHeight}get isPercentWidth(){return this.width&&this.width.indexOf(`%`)!==-1}get shouldResize(){return this._gridSize!==this.gridSize}get isPercentHeight(){return this._height&&this._height.indexOf(`%`)!==-1}get defaultTargetBodyHeight(){let e=this.dataLength;return this.renderedActualRowHeight*Math.min(this._defaultTargetRecordNumber,this.paginator?Math.min(e,this.paginator.perPage):e)}get renderedRowHeight(){return this.hasCellsToMerge?this.rowHeight:this.rowHeight+this._borderSize}get outerWidth(){return this.hasVerticalScroll()?this.calcWidth+this.scrollSize:this.calcWidth}get gridSize(){return this.gridComputedStyles?.getPropertyValue(`--component-size`)||wo.Large}getVisibleContentHeight(){let e=this.theadRow.nativeElement.clientHeight+this.tbody.nativeElement.clientHeight;return this.hasSummarizedColumns&&(e+=this.tfoot.nativeElement.clientHeight),e}getPossibleColumnWidth(e=null){let i;e!==null?i=e:i=this.calcWidth||parseFloat(this.document.defaultView.getComputedStyle(this.nativeElement).getPropertyValue(`width`));let n=this.visibleColumns.filter(g=>!g.columnGroup),s=[],a=this.visibleColumns.filter(g=>g.columnGroup).map(g=>g.getInitialChildColumnSizes(g.children)),l=a.reduce((g,p)=>g+p.length,0);a.forEach(g=>s=s.concat(g));let c=this.hasColumnLayouts?s.filter(g=>g.widthSetByUser):n.filter(g=>(g.widthSetByUser||g.widthConstrained)&&g.width!==`fit-content`),d=this.hasColumnLayouts?l-c.length:n.length-c.length,u=c.reduce((g,p)=>{let y=this.hasColumnLayouts?p.ref:p,_=y.widthConstrained?y.calcPixelWidth:p.width,w=typeof _==`string`?parseFloat(_):_;isNaN(w)&&(w=IZ);let E=_&&typeof _==`string`&&_.indexOf(`%`)!==-1?w/100*i:w;return g+(this.hasColumnLayouts?E:y.getConstrainedSizePx(E))},0);return!u&&!d||d<=0&&this.isColumnWidthSum?`0px`:(i-=this.featureColumnsWidth(),(Number.isFinite(u)?(i-u)/d:i/d)+`px`)}hasVerticalScroll(){if(this._init)return!1;let e=this.verticalScrollContainer?this.verticalScrollContainer.isScrollable():!1;return!!(this.calcWidth&&this.dataView&&this.dataView.length>0&&e)}getPinnedStartWidth(e=!1){let i=e?this._pinnedStartColumns:this.pinnedStartColumns,n=0;for(let s of i)s.level===0&&(n+=parseFloat(s.calcWidth?.toString()||s.defaultWidth));return n+=this.featureColumnsWidth(),n}getPinnedEndWidth(e=!1){let i=e?this._pinnedEndColumns:this.pinnedEndColumns,n=0;for(let s of i)s.level===0&&(n+=parseFloat(s.calcWidth?.toString()||s.defaultWidth));return n}isColumnGrouped(e){return!1}get headSelectorBaseAriaLabel(){return this._filteringExpressionsTree.filteringOperands.length>0?this.selectionService.areAllRowSelected()?`Deselect all filtered`:`Select all filtered`:this.selectionService.areAllRowSelected()?`Deselect all`:`Select all`}get totalRowsCountAfterFilter(){return this.data?this.selectionService.allData.length:0}get pinnedDataView(){return this.pinnedRecords?this.pinnedRecords:[]}get unpinnedDataView(){return this.unpinnedRecords?this.unpinnedRecords:this.verticalScrollContainer?.igxForOf||[]}get dataView(){return this._dataView}get selectRowOnClick(){return this._selectRowOnClick}set selectRowOnClick(e){this._selectRowOnClick=e}selectRows(e,i){this.selectionService.selectRowsWithNoEvent(e,i),this.notifyChanges()}deselectRows(e){this.selectionService.deselectRowsWithNoEvent(e),this.notifyChanges()}selectAllRows(e=!0){let i=e&&this.filteredData?this.filteredData:this.gridAPI.get_all_data(!0),n=this.selectionService.getRowIDs(i).filter(s=>!this.gridAPI.row_deleted_transaction(s));this.selectRows(n)}deselectAllRows(e=!0){e&&this.filteredData&&this.filteredData.length>0?this.deselectRows(this.selectionService.getRowIDs(this.filteredData)):(this.selectionService.clearAllSelectedRows(),this.notifyChanges())}clearCellSelection(){this.selectionService.clear(!0),this._activeRowIndexes=null,this.notifyChanges()}dragScroll(e){let i=this.headerContainer.getScroll(),n=this.verticalScrollContainer.getScroll(),{left:s,top:o}=e;i.scrollLeft+=s*this.DRAG_SCROLL_DELTA,n.scrollTop+=o*this.DRAG_SCROLL_DELTA}isDefined(e){return e!=null}selectRange(e){if(!this.isDefined(e)){this.clearCellSelection();return}e instanceof Array?e.forEach(i=>this.setSelection(i)):this.setSelection(e),this.notifyChanges()}columnToVisibleIndex(e){let i=this.visibleColumns;return typeof e==`number`?e:i.find(n=>n.field===e).visibleIndex}setSelection(e){let i={row:e.rowStart,column:this.columnToVisibleIndex(e.columnStart)},n={row:e.rowEnd,column:this.columnToVisibleIndex(e.columnEnd)};this.selectionService.pointerState.node=i,this.selectionService.selectRange(n,this.selectionService.pointerState),this.selectionService.addRangeMeta(n,this.selectionService.pointerState),this.selectionService.initPointerState()}getSelectedRanges(){return this.selectionService.ranges}getSelectedData(e=!1,i=!1){let n=this.filteredSortedData;return this.extractDataFromSelection(n,e,i)}selectedColumns(){return this.selectionService.getSelectedColumns().map(i=>this.getColumnByName(i)).filter(i=>i)}selectColumns(e,i){let n=[];e.length===0||typeof e[0]==`string`?n=e:e.forEach(s=>{if(s.columnGroup){let o=s.allChildren.filter(a=>!a.columnGroup).map(a=>a.field);n=[...n,...o]}else n.push(s.field)}),this.selectionService.selectColumnsWithNoEvent(n,i),this.notifyChanges()}deselectColumns(e){let i=[];e.length===0||typeof e[0]==`string`?i=e:e.forEach(n=>{if(n.columnGroup){let s=n.allChildren.filter(o=>!o.columnGroup).map(o=>o.field);i=[...i,...s]}else i.push(n.field)}),this.selectionService.deselectColumnsWithNoEvent(i),this.notifyChanges()}deselectAllColumns(){this.selectionService.clearAllSelectedColumns(),this.notifyChanges()}selectAllColumns(){this.selectColumns(this._columns.filter(e=>!e.columnGroup))}getSelectedColumnsData(e=!1,i=!1){let n=this.filteredSortedData?this.filteredSortedData:this.data;return this.extractDataFromColumnsSelection(n,e,i)}combineSelectedCellAndColumnData(e,i=!1,n=!1){let s=this.filteredSortedData;return this.extractDataFromSelection(s,i,n,e)}copyHandler(e){let i=e.composedPath().map(c=>c.tagName?.toLowerCase());if(i.includes(`igx-grid-filtering-row`)||i.includes(`igx-grid-filtering-cell`))return;let n=this.gridAPI.grid.selectedColumns(),s=this.getSelectedColumnsData(this.clipboardOptions.copyFormatters,this.clipboardOptions.copyHeaders),o;e.type===`copy`&&(o=this.getSelectedData(this.clipboardOptions.copyFormatters,this.clipboardOptions.copyHeaders));let a=[],l;if(e instanceof KeyboardEvent&&e.code===`KeyC`&&(e.ctrlKey||e.metaKey)&&e.currentTarget?.className===`igx-grid-thead__wrapper`)o.length?s.length===0?l=this.prepareCopyData(e,o):(a=this.combineSelectedCellAndColumnData(s,this.clipboardOptions.copyFormatters,this.clipboardOptions.copyHeaders),l=this.prepareCopyData(e,a[0],a[1])):(a=s,l=this.prepareCopyData(e,a)),navigator.clipboard.writeText(l).then().catch(c=>console.error(c));else{if(!this.clipboardOptions.enabled||this.crudService.cellInEditMode||e.type===`keydown`)return;n.length?(a=this.combineSelectedCellAndColumnData(s,this.clipboardOptions.copyFormatters,this.clipboardOptions.copyHeaders),l=this.prepareCopyData(e,a[0],a[1])):(a=o,l=this.prepareCopyData(e,a)),e.clipboardData?.setData(`text/plain`,l)}}prepareCopyData(e,i,n){let s={data:i,cancel:!1};if(this.gridCopy.emit(s),s.cancel)return;let o=new qE(s.data,this.clipboardOptions.separator),a=n?o.prepareData(n):o.prepareData();return this.clipboardOptions.copyHeaders||(a=a.substring(a.indexOf(` +`)+1)),i&&i.length>0&&Object.values(i[0]).length===1&&(a=a.slice(0,-2)),e.preventDefault(),e.stopPropagation(),a}showSnackbarFor(e){this.addRowSnackbar.actionText=e===-1?``:this.resourceStrings.igx_grid_snackbar_addrow_actiontext,this.addRowSnackbar.positioning=`container`,this.lastAddedRowIndex=e,this.addRowSnackbar.open()}navigateTo(e,i=-1,n=null){let s=this.totalItemCount??this.dataView.length-1;if(e<0||e>s||i!==-1&&this._columns.map(l=>l.visibleIndex).indexOf(i)===-1)return;this.dataView.slice(e,e+1).find(l=>l.expression||l.childGridsData)&&(i=-1);let o=this.navigation.shouldPerformVerticalScroll(e,i),a=this.navigation.shouldPerformHorizontalScroll(i,e);o?this.navigation.performVerticalScrollToCell(e,i,()=>{a?this.navigation.performHorizontalScrollToCell(i,()=>this.executeCallback(e,i,n)):this.executeCallback(e,i,n)}):a?this.navigation.performHorizontalScrollToCell(i,()=>{o?this.navigation.performVerticalScrollToCell(e,i,()=>this.executeCallback(e,i,n)):this.executeCallback(e,i,n)}):this.executeCallback(e,i,n)}getNextCell(e,i,n=null){let s=this._columns.filter(c=>!c.columnGroup&&c.visibleIndex>=0),o=this._getDataViewIndex(e);if(!this.isValidPosition(o,i))return{rowIndex:e,visibleColumnIndex:i};let a=n?s.filter(c=>n(c)).map(c=>c.visibleIndex).sort((c,d)=>c-d):s.map(c=>c.visibleIndex).sort((c,d)=>c-d),l=a.find(c=>c>i);if(this.dataView.slice(o,o+1).find(c=>!c.expression&&!c.summaries&&!c.childGridsData&&!c.detailsData)&&l!==void 0)return{rowIndex:e,visibleColumnIndex:l};{let c=this.getNextDataRowIndex(e);return a.length===0||c===e?{rowIndex:e,visibleColumnIndex:i}:{rowIndex:c,visibleColumnIndex:a[0]}}}getPreviousCell(e,i,n=null){let s=this._columns.filter(c=>!c.columnGroup&&c.visibleIndex>=0),o=this._getDataViewIndex(e);if(!this.isValidPosition(o,i))return{rowIndex:e,visibleColumnIndex:i};let a=n?s.filter(c=>n(c)).map(c=>c.visibleIndex).sort((c,d)=>d-c):s.map(c=>c.visibleIndex).sort((c,d)=>d-c),l=a.find(c=>c!c.expression&&!c.summaries&&!c.childGridsData&&!c.detailsData)&&l!==void 0)return{rowIndex:e,visibleColumnIndex:l};{let c=this.getNextDataRowIndex(e,!0);return a.length===0||c===e?{rowIndex:e,visibleColumnIndex:i}:{rowIndex:c,visibleColumnIndex:a[0]}}}endRowEditTabStop(e=!0,i){if(this.crudService.endEdit(e,i))return!0;this.navigation.restoreActiveNodeFocus()}trackColumnChanges(e,i){return i.field+i.calcWidth?.toString()}isExpandedGroup(e){}openRowOverlay(e){this.configureRowEditingOverlay(e),this.rowEditingOverlay.open(this.rowEditSettings),this.rowEditingOverlay.element.addEventListener(`wheel`,this.rowEditingWheelHandler)}closeRowEditingOverlay(){this.rowEditingOverlay.element.removeEventListener(`wheel`,this.rowEditingWheelHandler),this.rowEditPositioningStrategy.isTopInitialPosition=null,this.rowEditingOverlay.close(),this.rowEditingOverlay.element.parentElement.style.display=``}toggleRowEditingOverlay(e){let i=this.rowEditingOverlay.element.style;e?i.display=`block`:i.display=`none`}repositionRowEditingOverlay(e){if(e&&!this.rowEditingOverlay.collapsed){let i=this.rowEditingOverlay.element.parentElement.style;e?(i.display=``,this.configureRowEditingOverlay(e.key),this.rowEditingOverlay.reposition()):i.display=`none`}}viewDetachHandler(e){this.actionStrip&&e.view.rootNodes.find(i=>i===this.actionStrip.context?.element.nativeElement)&&this.actionStrip.hide()}cachedViewLoaded(e){if(this.hasHorizontalScroll()){let i=e.context.templateID.type,n=e.context.index;e.view.detectChanges(),Bo(this.injector,()=>{let s=i===`dataRow`?this.gridAPI.get_row_by_index(n):null,o=i===`summaryRow`?this.summariesRowList.find(a=>a.dataRowIndex===n):null;s&&s instanceof hp?this._restoreVirtState(s):o&&this._restoreVirtState(o)})}}openAdvancedFilteringDialog(e){let i=e||this._advancedFilteringOverlaySettings;this._advancedFilteringOverlayId||(this._advancedFilteringOverlaySettings.target=this.rootGrid?this.rootGrid.nativeElement:this.nativeElement,this._advancedFilteringOverlaySettings.outlet=this.outlet,this._advancedFilteringOverlayId=this.overlayService.attach(oX,this.viewRef,i),this.overlayService.show(this._advancedFilteringOverlayId))}closeAdvancedFilteringDialog(e){if(this._advancedFilteringOverlayId){let n=this.overlayService.getOverlayById(this._advancedFilteringOverlayId).componentRef.instance;e&&n.applyChanges(),n.closeDialog()}}getEmptyRecordObjectFor(e){let i=r({},e?.data);Object.keys(i).forEach(s=>i[s]=void 0);let n=this.generateRowID();return i[this.primaryKey]=n,{rowID:n,data:i,recordRef:i}}hasHorizontalScroll(){return Math.round(this.totalWidth-this.unpinnedWidth)>0&&this.width!==null}isSummaryRow(e){return e&&e.summaries&&e.summaries instanceof Map}triggerPipes(){this.pipeTrigger++,this.cdr.detectChanges()}getUnpinnedIndexById(e){return this.unpinnedRecords.findIndex(i=>i[this.primaryKey]===e)}endEdit(e=!0,i){if(!this.crudService.cellInEditMode&&!this.crudService.rowInEditMode)return;let n=this.nativeElement?.getRootNode(),s=this.nativeElement?.contains(n.activeElement),o=this.crudService.endEdit(e,i);return s?this.navigation.restoreActiveNodeFocus():this.navigation.activeNode&&this.clearActiveNode(),o}beginAddRowById(e,i){let n=e;if(e==null){if(i){console.warn(`The record cannot be added as a child to an unspecified record.`);return}n=null}else if(n=this.gridAPI.get_rec_index_by_id(e,this.dataView),n===-1){console.warn(`No row with the specified ID was found.`);return}this._addRowForIndex(n,i)}_addRowForIndex(e,i){if(!this.dataView.length){this.beginAddRowForIndex(e,i);return}if(e>=0&&e=this.virtualizationState.startIndex+this.virtualizationState.chunkSize)&&!this.isRecordPinnedByViewIndex(e)){this.verticalScrollContainer.chunkLoad.pipe(Tn(),oe(this.destroy$)).subscribe(()=>{this.beginAddRowForIndex(e,i)}),this.navigateTo(e),this.notifyChanges(!0);return}this.beginAddRowForIndex(e,i)}else console.warn(`The row with the specified PK or index is outside of the current data view.`)}beginAddRowByIndex(e){return e===0?this.beginAddRowById(null):this._addRowForIndex(e-1)}preventHeaderScroll(e){let i=e.target;i.scrollLeft!==0&&(this.navigation.forOfDir().getScroll().scrollLeft=i.scrollLeft,i.scrollLeft=0)}beginAddRowForIndex(e,i=!1){let n=e==null?null:this.rowList.find(s=>s.index===e);n!==void 0?this.crudService.enterAddRowMode(n,i):console.warn(`No row with the specified PK or index was found.`)}switchTransactionService(e){e?this._transactions=this.transactionFactory.create(`Base`):this._transactions=this.transactionFactory.create(`None`),this.dataCloneStrategy&&(this._transactions.cloneStrategy=this.dataCloneStrategy)}subscribeToTransactions(){this.transactionChange$.next(),this.transactions.onStateUpdate.pipe(oe(kp(this.destroy$,this.transactionChange$))).subscribe(this.transactionStatusUpdate.bind(this))}transactionStatusUpdate(e){let i=[];if(e.origin===rc.REDO?i=e.actions?e.actions.filter(n=>n.transaction.type===ai.DELETE):[]:e.origin===rc.UNDO&&(i=e.actions?e.actions.filter(n=>n.transaction.type===ai.ADD):[]),i.length>0)for(let n of i)this.selectionService.isRowSelected(n.transaction.id)&&this.selectionService.deselectRow(n.transaction.id);(e.origin===rc.REDO||e.origin===rc.UNDO)&&e.actions.forEach(n=>{if(n.transaction.type===ai.UPDATE){let s=this.transactions.getAggregatedValue(n.transaction.id,!0);this.validation.update(n.transaction.id,s??n.recordRef)}else if(n.transaction.type===ai.DELETE||n.transaction.type===ai.ADD){let s=this.transactions.getAggregatedValue(n.transaction.id,!0);s?(this.validation.create(n.transaction.id,s??n.recordRef),this.validation.update(n.transaction.id,s??n.recordRef),this.validation.markAsTouched(n.transaction.id)):this.validation.clear(n.transaction.id)}}),this.selectionService.clearHeaderCBState(),this.summaryService.clearSummaryCache(),this.pipeTrigger++,this.notifyChanges()}writeToData(e,i){sc(this.gridAPI.get_all_data()[e],i)}_restoreVirtState(e){let i=e.virtDirRow;if(!i)return;let n=i.getScroll().scrollLeft;i.onHScroll(n),i.cdr.detectChanges()}changeRowEditingOverlayStateOnScroll(e){!this.rowEditable||!this.rowEditingOverlay||this.rowEditingOverlay.collapsed||(e?this.repositionRowEditingOverlay(e):this.toggleRowEditingOverlay(!1))}evaluateLoadingState(){if(this.shouldOverlayLoading){let e={closeOnOutsideClick:!1,positionStrategy:new Nu};this.loadingOverlay.open(e)}else this.loadingOverlay.close()}calculateGridWidth(){let e;if(this.isPercentWidth){let i=this.document.defaultView.getComputedStyle(this.nativeElement).getPropertyValue(`width`);e=i.indexOf(`%`)===-1?parseFloat(i):null}else e=parseInt(this.width,10);!e&&this.nativeElement&&(e=this.nativeElement.offsetWidth),this.width===null||!e?(this.isColumnWidthSum=!0,e=this.getColumnWidthSum()):this.isColumnWidthSum=!1,this.hasVerticalScroll()&&this.width!==null&&(e-=this.scrollSize),(Number.isFinite(e)||e===null)&&e!==this.calcWidth&&(this.calcWidth=e),this._derivePossibleWidth()}_derivePossibleWidth(){if(!this.columnWidthSetByUser){let e=this.getPossibleColumnWidth();if(e===`0px`){this._columnWidth&&this._columnWidth!==`0px`&&this._updateColumnDefaultWidths(),this.resetCachedWidths();return}else this.width!==null?this._columnWidth=Math.max(parseFloat(e),this.minColumnWidth)+`px`:this._columnWidth=this.minColumnWidth+`px`}this._updateColumnDefaultWidths(),this.resetCachedWidths()}_updateColumnDefaultWidths(){this._columns.forEach(e=>{if(this.hasColumnLayouts)e.defaultWidth=parseFloat(this._columnWidth)*(e.colEnd?e.colEnd-e.colStart:1)+`px`;else e.defaultWidth=this._columnWidth,e.resetCaches()})}resetNotifyChanges(){this._cdrRequestRepaint=!1,this._cdrRequests=!1}resolveOutlet(){return this._userOutletDirective?this._userOutletDirective:this._outletDirective}_moveColumns(e,i,n){let o=this._pinnedStartColumns.concat(this._unpinnedColumns,this._pinnedEndColumns);this._reorderColumns(e,i,n,o);let a=this._resetColumnList(o);this.updateColumns(a)}updateColumns(e){this._pinnedColumns=e.filter(i=>i.pinned),this._pinnedStartColumns=e.filter(i=>i.pinned&&i.pinningPosition===dr.Start),this._pinnedEndColumns=e.filter(i=>i.pinned&&i.pinningPosition===dr.End),this._unpinnedColumns=e.filter(i=>!i.pinned),this._columns=e,this._columns&&this._columns.length&&this._filteringExpressionsTree&&(this._filteringExpressionsTree=this.getRecreatedTree(this._filteringExpressionsTree)),this._columns&&this._columns.length&&this._advancedFilteringExpressionsTree&&(this._advancedFilteringExpressionsTree=this.getRecreatedTree(this._advancedFilteringExpressionsTree)),this.resetCaches()}_resetColumnList(e){e||(e=this._columns);let i=[];return e.filter(n=>n.level===0).forEach(n=>{i.push(n),n.columnGroup&&(i=i.concat(n.allChildren))}),i}_reorderColumns(e,i,n,s,o=!1){let a=s.indexOf(e),l=o?1:e.allChildren.length+1;s.splice(a,l);let c=s.indexOf(i);n===$l.AfterDropTarget&&(c++,!o&&i.columnGroup&&(c+=i.allChildren.length)),s.splice(c,0,e)}_moveChildColumns(e,i,n,s){let o=e.children.toArray();this._reorderColumns(i,n,s,o,!0),e.children.reset(o)}setupColumns(){this.autoGenerate?this.autogenerateColumns():this._columns=this.getColumnList(),this._columns&&this._columns.length&&this._filteringExpressionsTree&&(this._filteringExpressionsTree=this.getRecreatedTree(this._filteringExpressionsTree)),this._columns&&this._columns.length&&this._advancedFilteringExpressionsTree&&(this._advancedFilteringExpressionsTree=this.getRecreatedTree(this._advancedFilteringExpressionsTree)),this.initColumns(this._columns,e=>this.columnInit.emit(e)),this.columnListDiffer.diff(this.columnList),this._calculateRowCount(),this.columnList.changes.pipe(oe(this.destroy$)).subscribe(e=>{this.onColumnsChanged(e)})}getColumnList(){return this.columnList.toArray().filter(e=>e.grid===this)}deleteRowFromData(e,i){if(i!==-1)if(this.transactions.enabled){let n={id:e,type:ai.DELETE,newValue:null};this.transactions.add(n,this.data[i])}else this.data.splice(i,1);else{let n=this.transactions.getState(e);this.transactions.add({id:e,type:ai.DELETE,newValue:null},n&&n.recordRef)}}getDataBasedBodyHeight(){return!this.data||this.data.length0){this.updateColumns(this._autoGeneratedCols);return}if(i){let n=!1,s=!1,o=!1;i.forEachAddedItem(a=>{a.item.grid===this&&(n=!0,a.item.pinned?(this._pinnedColumns.push(a.item),a.item.pinningPosition===dr.Start?this._pinnedStartColumns.push(a.item):this._pinnedEndColumns.push(a.item),o=!0):this._unpinnedColumns.push(a.item))}),this.initColumns(this.getColumnList(),a=>this.columnInit.emit(a)),o&&this.initPinning(),i.forEachRemovedItem(a=>{if(a.item.grid!==this)return;a.item instanceof sX||(this.gridAPI.clear_groupby(a.item.field),this.filteringService.clear_filter(a.item.field),this.filteringService.isFilterRowVisible&&this.filteringService.filteredColumn&&this.filteringService.filteredColumn.field===a.item.field&&this.filteringRow.close(),this.gridAPI.clear_sort(a.item.field),this.selectionService.deselectColumnsWithNoEvent([a.item.field])),s=!0}),this.resetCaches(),(n||s)&&this.onColumnsAddedOrRemoved()}}checkPrimaryKeyField(){!this.primaryKey||!this.data?.length||this._validatedPrimaryKey===this.primaryKey&&this._validatedData===this.data||(this._validatedPrimaryKey=this.primaryKey,this._validatedData=this.data,this.primaryKey in this.data[0]||console.warn(`Field "${this.primaryKey}" is not defined in the data. Set \`primaryKey\` to a valid field.`))}onColumnsAddedOrRemoved(){this.summaryService.clearSummaryCache(),Promise.resolve().then(()=>{this.notifyChanges(!0)})}calculateGridSizes(e=!0){this.cdr.detectChanges(),this.resetCaches(e);let i=this.hasVerticalScroll(),n=!this.isHorizontalScrollHidden;this.calculateGridWidth(),this.resetCaches(e),this.cdr.detectChanges(),this.calculateGridHeight(),this.rowEditable&&this.repositionRowEditingOverlay(this.crudService.rowInEditMode),this.filteringService.isFilterRowVisible&&this.filteringRow.resetChipsArea(),this.cdr.detectChanges(),i!==this.hasVerticalScroll()&&(this.calculateGridWidth(),this.cdr.detectChanges()),Bo(this.injector,()=>{this.zone.run(()=>{this._applyWidthHostBinding(),this.cdr.detectChanges()})}),this.resetCaches(e),this.hasColumnsToAutosize&&(this.cdr.detectChanges(),Bo(this.injector,()=>this._autoSizeColumnsNotify.next())),n!==this.hasHorizontalScroll()?(this.isHorizontalScrollHidden=!this.hasHorizontalScroll(),this.cdr.detectChanges(),this.calculateGridHeight(),this.cdr.detectChanges()):this.resetCaches(e)}calculateGridHeight(){this.calcHeight=this._calculateGridBodyHeight(),this.pinnedRowHeight&&this.calcHeight&&(this.calcHeight-=this.pinnedRowHeight)}getGroupAreaHeight(){return 0}getComputedHeight(e){return e.offsetHeight?parseFloat(this.document.defaultView.getComputedStyle(e).getPropertyValue(`height`)):0}getFooterHeight(){return this.summaryRowHeight||this.getComputedHeight(this.tfoot.nativeElement)}getTheadRowHeight(){let e=this.getComputedHeight(this.theadRow.nativeElement)||0;return!this.allowFiltering||this.allowFiltering&&this.filterMode!==Em.quickFilter?e-this.getFilterCellHeight():e}getToolbarHeight(){let e=0;return this.toolbar.first&&(e=this.getComputedHeight(this.toolbar.first.nativeElement)),e}getPagingFooterHeight(){let e=0;if(this.footer){let i=this.getComputedHeight(this.footer.nativeElement);e=this.footer.nativeElement.firstElementChild?i:0}return e}getFilterCellHeight(){let e=this.headerGroupsList.length!==0?this.headerGroupsList[0].nativeElement:null,i=e?e.querySelector(`igx-grid-filtering-cell`):null;return i?i.offsetHeight:0}_calculateGridBodyHeight(){if(!this._height)return null;let e=this.document.defaultView.getComputedStyle(this.nativeElement),i=this.getTheadRowHeight(),n=this.getFooterHeight(),s=this.getToolbarHeight(),o=this.getPagingFooterHeight(),a=this.getGroupAreaHeight(),l=this.getComputedHeight(this.scr.nativeElement),c=parseFloat(e.getPropertyValue(`border-top-width`))||0,d=parseFloat(e.getPropertyValue(`border-bottom-width`))||0,u=s+i+n+o+a+l+c+d,h=0;if(this.isPercentHeight){let p=e.getPropertyValue(`height`);if(this._shouldAutoSize(u)||p.indexOf(`%`)!==-1){let _=this.getDataBasedBodyHeight();return _>0?_:null}h=parseFloat(p)}else h=parseInt(this._height,10);let g=Math.abs(h-u);if(Math.round(g)===0||isNaN(h)){let p=this.defaultTargetBodyHeight;return p>0?p:null}return g}checkContainerSizeChange(){let e=this.nativeElement.parentElement||this.nativeElement.getRootNode().host,i=e.offsetHeight;this.nativeElement.style.display=`none`;let n=e.offsetHeight;return this.nativeElement.style.display=``,i!==n}_shouldAutoSize(e){this.tbody.nativeElement.style.display=`none`;let i=this.nativeElement.parentElement||this.nativeElement.getRootNode().host,n=!i||i.clientHeight===0||i.clientHeight===e;return i&&(n||this._autoSize)&&(this._autoSize=!1,n=this.checkContainerSizeChange()),this.tbody.nativeElement.style.display=``,n}getUnpinnedWidth(e=!1){let i=this.isPercentWidth?this.calcWidth:parseInt(this.width,10)||parseInt(this.hostWidth,10)||this.calcWidth;return this.hasVerticalScroll()&&!this.isPercentWidth&&(i-=this.scrollSize),i-(this.getPinnedStartWidth(e)+this.getPinnedEndWidth(e))}_summaries(e,i,n){let s=this.gridAPI.get_column_by_name(e);s&&(s.hasSummary=i,n&&(this.rootSummariesEnabled&&this.summaryService.retriggerRootPipe++,s.summaries=n))}_multipleSummaries(e,i){e.forEach(n=>{this._summaries(n.fieldName,i,n.customSummary)})}_disableMultipleSummaries(e){e.forEach(i=>{let n=typeof i==`string`?i:i.fieldName;this._summaries(n,!1)})}resolveDataTypes(e){return typeof e==`number`?se.Number:typeof e==`boolean`?se.Boolean:typeof e==`object`&&e instanceof Date?se.Date:typeof e==`string`&&/\.(gif|jpe?g|tiff?|png|webp|bmp)$/i.test(e)?se.Image:se.String}autogenerateColumns(){let e=this.gridAPI.get_data(),i=this.generateDataFields(e),n=[];this._autoGeneratedColsRefs.forEach(s=>s.destroy()),this._autoGeneratedColsRefs=[],i.forEach(s=>{let o=rf(zl,{environmentInjector:this.envInjector,elementInjector:this.injector});o.instance.field=s,o.instance.dataType=this.resolveDataTypes(e[0][s]),o.changeDetectorRef.detectChanges(),this._autoGeneratedColsRefs.push(o),n.push(o.instance)}),this._autoGeneratedCols=n,this.updateColumns(n)}generateDataFields(e){return Object.keys(e&&e.length!==0?e[0]:[]).filter(i=>!this.autoGenerateExclude.includes(i))}initColumns(e,i=null){this._columnGroups=e.some(n=>n.columnGroup),this.hasColumnLayouts&&e.forEach(n=>{if(n.columnLayout){let s=n.children?n.children.reduce((o,a)=>Math.max(a.rowStart+a.gridRowSpan-1,o),1):1;this._multiRowLayoutRowSize=Math.max(s,this._multiRowLayoutRowSize)}}),this.hasColumnLayouts&&this.hasColumnGroups&&(e=e.filter(s=>s.columnLayout||s.columnLayoutChild)),e.forEach(n=>{n.defaultWidth=this.columnWidthSetByUser?this._columnWidth:n.defaultWidth?n.defaultWidth:``,i&&i(n)}),this.updateColumns(e),this.hasColumnLayouts&&e.forEach(n=>{n.populateVisibleIndexes()})}reinitPinStates(){this._pinnedColumns=this._columns.filter(e=>e.pinned).sort((e,i)=>this._pinnedColumns.indexOf(e)-this._pinnedColumns.indexOf(i)),this._pinnedStartColumns=this._columns.filter(e=>e.pinned&&e.pinningPosition===dr.Start).sort((e,i)=>this._pinnedStartColumns.indexOf(e)-this._pinnedStartColumns.indexOf(i)),this._pinnedEndColumns=this._columns.filter(e=>e.pinned&&e.pinningPosition===dr.End).sort((e,i)=>this._pinnedEndColumns.indexOf(e)-this._pinnedEndColumns.indexOf(i)),this._unpinnedColumns=this.hasColumnGroups?this._columns.filter(e=>!e.pinned):this._columns.filter(e=>!e.pinned).sort((e,i)=>this._unpinnedColumns.indexOf(e)-this._unpinnedColumns.indexOf(i))}extractDataFromSelection(e,i=!1,n=!1,s){let o,a={},l=[],c=[],d=new Map,u=[],h=this.selectionService.activeElement;if(this.type===`hierarchical`&&e===this.filteredSortedData){let _=[];for(let[w,E]of this.expansionStates.entries())if(E){let k=this.gridAPI.get_rec_index_by_id(w,this.dataView);_.push(k)}if(this.selectionService.selection.size>0){if(_.length>0)for(let[w,E]of this.selectionService.selection.entries()){let k=w,z=0;_.forEach(G=>{k>Number(G)&&z++}),d.set(k-z,E)}}else if(h){let w=0;_.length>0&&(_.forEach(E=>{h.row>Number(E)&&w++}),h.row-=w)}}let g=this.totalItemCount??0,p=g&&g>this.dataView.length,y;this.type===`hierarchical`&&d.size>0?y=p?new Map(d):new Map(Array.from(d).filter(_=>_[0]_[0]{if(z){let G=this.type!==`pivot`&&n&&z.header||z.field,Q=e[_].ghostRecord?e[_].recordRef:e[_],Y=this.type===`pivot`?Q.aggregationValues.get(z.field):Gr(Q,Us(z.field));a[G]=i&&z.formatter?z.formatter(Y,Q):Y,s&&(a[G]||(a[G]=``),a[G]=a[G].toString().concat(`recordRow-`+_))}});if(Object.keys(a).length)if(s){c.length||(c=Object.keys(s[0]));for(let[k,z]of Object.entries(a)){c.includes(k)||c.push(k);let G=z,Q=+G.split(`recordRow-`)[1];G=G.split(`recordRow-`)[0],a[k]=G;let Y=Object.assign(l[Q],a);l[Q]=Y}}else l.push(a);a={}}return c.length?(u.push(l),u.push(c),u):l}getSelectableColumnsAt(e){if(this.hasColumnLayouts){let n=this.visibleColumns.filter(s=>s.columnLayout).sort((s,o)=>s.visibleIndex-o.visibleIndex)[e];return n?n.children.toArray():[]}else return[this.visibleColumns.filter(n=>!n.columnGroup).sort((n,s)=>n.visibleIndex-s.visibleIndex)[e]]}autoSizeColumnsInView(){if(!this.hasColumnsToAutosize)return;let e=this.headerContainer.state,i=!1,n=this.headerContainer.igxGridForOf.slice(e.startIndex,e.startIndex+e.chunkSize).flatMap(o=>o.columnGroup?o.allChildren:o),s=this.pinnedColumns.concat(n);for(let o of s)if(!o.autoSize&&o.headerCell){let a=[];o._cells.length!==this.rowList.length&&this.rowList.forEach(p=>p.cdr.detectChanges());let l=this._dataRowList.map(p=>p.cells.find(y=>y.column===o));l.forEach(p=>a.push(p?.nativeElement?.offsetWidth||0));let c=Math.max(...a),d=this.headerCellList.find(p=>p.column===o);a.push(d.nativeElement.offsetWidth);let u=Math.max(...a),h=0;if(l.length>0&&o.bodyTemplate){let p=this.document.defaultView.getComputedStyle(l[0].nativeElement);h=parseFloat(p.paddingLeft)+parseFloat(p.paddingRight)}else c=u;if(u===0||c<=h&&this._firstAutoResize)continue;let g=Math.ceil(Math.max(...a))+1;o.maxWidth&&g>o.maxWidthPx?g=o.maxWidthPx:go.resolveDataDiff())),this.isColumnWidthSum&&(this.calcWidth=this.getColumnWidthSum())}extractDataFromColumnsSelection(e,i=!1,n=!1){let s={},o=[],a=this.selectedColumns();if(a.length===0)return[];for(let l of e)a.forEach(c=>{let d=n&&c.header||c.field;s[d]=i&&c.formatter?c.formatter(l[c.field],l):l[c.field]}),Object.keys(s).length&&o.push(s),s={};return o}initPinning(){this.calculateGridWidth(),this.resetCaches(),this.handleColumnPinningForGroups(),this.notifyChanges()}scrollTo(e,i,n=this._filteredSortedUnpinnedData){let s=!1;if(this.paginator&&typeof e!=`number`){let d=n.indexOf(e),u=Math.floor(d/this.perPage);this.page!==u&&(s=!0,this.page=u)}let o=typeof e==`number`?e:this.unpinnedDataView.indexOf(e),a=this.verticalScrollContainer.igxForOf[o],l=typeof i==`number`?this.visibleColumns[i]:i,c=this.isRecordMerged(a)?a?.cellMergeMeta.get(l)?.rowSpan:1;c>1&&(o+=Math.floor(c/2)),s?this.verticalScrollContainer.dataChanged.pipe(Tn(),oe(this.destroy$)).subscribe(()=>{this.scrollDirective(this.verticalScrollContainer,o)}):this.scrollDirective(this.verticalScrollContainer,o),this.scrollToHorizontally(i)}scrollToHorizontally(e){let i=typeof e==`number`?e:this.getColumnByName(e).visibleIndex,n=this.rowList.find(o=>!!o.virtDirRow),s=n?n.virtDirRow:null;this.pinnedStartColumns.length?i>=this.pinnedStartColumns.length&&(i-=this.pinnedStartColumns.length,this.scrollDirective(s,i)):this.scrollDirective(s,i)}scrollDirective(e,i){e&&e.scrollTo(i)}getColumnWidthSum(){let e=0;return(this.hasColumnLayouts?this.visibleColumns.filter(n=>n.columnLayout):this.visibleColumns.filter(n=>!n.columnGroup)).forEach(n=>{e+=parseInt(n.calcWidth?.toString()||n.defaultWidth,10)||this.minColumnWidth}),e?(this.cdr.detectChanges(),e+=this.featureColumnsWidth(),e):null}_columnsReordered(e){this.notifyChanges(),this.resetColumnCollections(),e.resetCaches()}buildDataView(e){this._dataView=this.isRowPinningToTop?[...this.pinnedDataView,...this.unpinnedDataView]:[...this.unpinnedDataView,...this.pinnedDataView]}_applyWidthHostBinding(){let e=this._width;if(e===null){let i=this.calcWidth;this.hasVerticalScroll()&&(i+=this.scrollSize),e=i+`px`,this.resetCaches()}this._hostWidth=e,this.cdr.markForCheck()}verticalScrollHandler(e){this.verticalScrollContainer.onScroll(e),this.disableTransitions=!0;let i=()=>{this.verticalScrollContainer.chunkLoad.emit(this.verticalScrollContainer.state),this.rowEditable&&this.changeRowEditingOverlayStateOnScroll(this.crudService.rowInEditMode)};Bo(this.injector,i),this.disableTransitions=!1,this.hideOverlays();let n=this.actionStrip?.context,s=n?.element?.nativeElement;n?.pinned&&s?.isConnected&&!this.hasMenuPinningActions()||this.actionStrip&&(this.actionStrip.hide(),this.actionStrip.context=null);let a={direction:`vertical`,event:e,scrollPosition:this.verticalScrollContainer.scrollPosition};this.gridScroll.emit(a)}hasMenuPinningActions(){let i=this.actionStrip?.actionButtons;return i?.length?i.toArray().some(n=>n instanceof YE&&n.asMenuItems):!1}horizontalScrollHandler(e){let i=e.target.scrollLeft;this.headerContainer.onHScroll(i),this._horizontalForOfs.forEach(s=>s.onHScroll(i)),this.cdr.markForCheck(),this.zone.run(()=>{Bo(this.injector,()=>{this.parentVirtDir.chunkLoad.emit(this.headerContainer.state),requestAnimationFrame(()=>{this.autoSizeColumnsInView()})})}),this.navigation.isColumnFullyVisible(this.navigation.lastColumnIndex)||this.hideOverlays();let n={direction:`horizontal`,event:e,scrollPosition:this.headerContainer.scrollPosition};this.gridScroll.emit(n)}get renderedActualRowHeight(){return this.rowHeight+this._borderSize}executeCallback(e,i=-1,n=null){if(!n)return;let s=this.summariesRowList.filter(a=>a.index!==0).find(a=>a.index===e)||this.rowList.find(a=>a.index===e);if(!s){this.totalItemCount&&this.verticalScrollContainer.dataChanged.pipe(Tn(),oe(this.destroy$)).subscribe(()=>{if(this.cdr.detectChanges(),s=this.summariesRowList.filter(c=>c.index!==0).find(c=>c.index===e)||this.rowList.find(c=>c.index===e),!s)return;n(this.getNavigationArguments(s,i))});let a=this._getDataViewIndex(e);this.dataView[a].detailsData&&(this.navigation.setActiveNode({row:e}),this.cdr.detectChanges());return}n(this.getNavigationArguments(s,i))}getNavigationArguments(e,i){let n,s;switch(e.nativeElement?.tagName.toLowerCase()){case`igx-grid-groupby-row`:n=`groupRow`,s=e;break;case`igx-grid-summary-row`:n=`summaryCell`,s=i!==-1?e.summaryCells?.find(o=>o.visibleColumnIndex===i):e.summaryCells.first;break;case`igx-child-grid-row`:n=`hierarchicalRow`,s=e;break;default:n=`dataCell`,s=i!==-1?e.cells?.find(o=>o.visibleColumnIndex===i):e.cells.first;break}return{targetType:n,target:s}}getNextDataRowIndex(e,i=!1){let n=this._getDataViewIndex(e);if(e<0||e===0&&i||n>=this.dataView.length-1&&!i)return e;let s=i?this.findPrevEditableDataRowIndex(e):this.dataView.findIndex((a,l)=>l>n&&this.isEditableDataRecordAtIndex(l)),o=this.getDataIndex(s);return o!==-1?o:e}findPrevEditableDataRowIndex(e){let i=this.dataView.length,n=this._getDataViewIndex(e);for(;i--;)if(io.index!==0).length+this.rowList.length,s=this._columns.filter(o=>!o.columnGroup&&o.visibleIndex>=0&&!o.hidden).length;return n<1||s<1?!1:e>-1&&e-1&&i<=Math.max(...this.visibleColumns.map(o=>o.visibleIndex))}find(e,i,n,s,o,a=!0){if(!this.rowList)return 0;if(a&&this.crudService.endEdit(!1),!e)return this.clearSearch(),0;let l=!!n,c=!!s,d=!1;if(this._lastSearchInfo.searchText!==e||this._lastSearchInfo.caseSensitive!==l||this._lastSearchInfo.exactMatch!==c?(this._lastSearchInfo={searchText:e,activeMatchIndex:0,caseSensitive:l,exactMatch:c,matchInfoCache:[],matchCount:0,content:``},d=!0):this._lastSearchInfo.activeMatchIndex+=i,d&&(this.rowList.forEach(u=>{u.cells&&u.cells.forEach(h=>{h.highlightText(e,l,c)})}),this.rebuildMatchCache()),this._lastSearchInfo.activeMatchIndex>=this._lastSearchInfo.matchCount?this._lastSearchInfo.activeMatchIndex=0:this._lastSearchInfo.activeMatchIndex<0&&(this._lastSearchInfo.activeMatchIndex=this._lastSearchInfo.matchCount-1),this._lastSearchInfo.matchCount>0){let u=this._lastSearchInfo.matchInfoCache[this._lastSearchInfo.activeMatchIndex];this._lastSearchInfo=r({},this._lastSearchInfo),o!==!1&&this.scrollTo(u.row,u.column),this.textHighlightService.setActiveHighlight(this.id,{column:u.column,row:u.row,index:u.index,metadata:u.metadata})}else this.textHighlightService.clearActiveHighlight(this.id);return this._lastSearchInfo.matchCount}rebuildMatchCache(){this._lastSearchInfo.matchInfoCache=[];let e=this._lastSearchInfo.caseSensitive,i=this._lastSearchInfo.exactMatch,n=e?this._lastSearchInfo.searchText:this._lastSearchInfo.searchText.toLowerCase(),s=this.filteredSortedData;if(this.hasCellsToMerge){let l=this.activeRowIndexes;this.page>0&&(l=l.map(c=>this.perPage*this.page+c)),s=Hn.merge(sn(this.filteredSortedData),this.columnsToMerge,this.mergeStrategy,l,this)}let o=this.visibleColumns.filter(l=>!l.columnGroup).sort((l,c)=>l.visibleIndex-c.visibleIndex),a=o.map(l=>Us(l.field));s.forEach((l,c)=>{let d=this.isRecordMerged(l)?l.recordRef:l;o.forEach((u,h)=>{let g=this.getColumnByName(u.field).pipeArgs,p=u.formatter?u.formatter(Gr(d,a[h]),d):u.dataType===`number`?this.i18nFormatter.formatNumber(Gr(d,a[h]),this.locale,g.digitsInfo):u.dataType===`date`?this.i18nFormatter.formatDate(Gr(d,a[h]),g.format,this.locale,g.timezone):Gr(d,a[h]);if(p!=null&&u.searchable){let y=e?String(p):String(p).toLowerCase(),_=this.isRecordMerged(l)?!!l?.cellMergeMeta.get(u.field)?.root:!1;if(i){if(y===n&&!_){let w={row:d,column:u.field,index:0,metadata:new Map([[`pinned`,this.isRecordPinnedByIndex(c)]])};this._lastSearchInfo.matchInfoCache.push(w)}}else{let w=0,E=y.indexOf(n);for(;E!==-1&&!_;){let k={row:d,column:u.field,index:w++,metadata:new Map([[`pinned`,this.isRecordPinnedByIndex(c)]])};this._lastSearchInfo.matchInfoCache.push(k),y=y.substring(E+n.length),E=y.indexOf(n)}}}})}),this._lastSearchInfo.matchCount=this._lastSearchInfo.matchInfoCache.length}updateDefaultRowHeight(){if(this.dataRowList.length>0&&this.dataRowList.first.cells&&this.dataRowList.first.cells.length>0){let e=this.dataRowList.first.cells.find(o=>!o.isMerged);if(!e){this._shouldRecalcRowHeight=!0;return}let i=parseFloat(this.document.defaultView.getComputedStyle(e.nativeElement)?.getPropertyValue(`height`));i?this._defaultRowHeight=i:this._shouldRecalcRowHeight=!0;let n=this.document.defaultView.getComputedStyle(this.dataRowList.first.nativeElement),s=n.borderBottomWidth?parseFloat(n.borderBottomWidth):1;s&&(this._borderSize=s)}}configureRowEditingOverlay(e){let i=this.rowEditSettings,n=this.overlayService.getOverlayById(this.rowEditingOverlay.overlayId);n&&(i=n.settings),this.rowEditPositioningStrategy.settings.container=this.tbody.nativeElement,this.rowEditPositioningStrategy.settings.clipToVisibleArea=this.type===`hierarchical`&&this.rootGrid!==this;let o=this._pinnedRecordIDs.indexOf(e)!==-1?this.pinnedRows.find(a=>a.key===e):this.gridAPI.get_row_by_key(e);o&&(i.target=o.element.nativeElement,this.toggleRowEditingOverlay(!0))}handleColumnPinningForGroups(){let e=[],i=[];this._pinnedColumns.forEach(n=>{n.parent&&(n.parent.pinned=!0),n.columnGroup&&n.children.forEach(s=>s.pinned=!0)});for(let n of this._columns)n.pinned&&!n.parent?e.push(n):n.pinned&&n.parent?n.topLevelParent.pinned?e.push(n):(n.pinned=!1,i.push(n)):i.push(n);this._pinnedColumns=e,this._pinnedStartColumns=e.filter(n=>n.pinned&&n.pinningPosition===dr.Start),this._pinnedEndColumns=e.filter(n=>n.pinned&&n.pinningPosition===dr.End),this._unpinnedColumns=i}shouldRecreateColumns(e,i){return!e||!e.length?!0:!i||!i.length?!1:Object.keys(e[0]).join()!==Object.keys(i[0]).join()}onContentSizeChange(){this.notifyChanges(!0)}clearActiveNode(){this.navigation.lastActiveNode=this.navigation.activeNode,this.navigation.activeNode={},this._activeRowIndexes=null,this.notifyChanges()}getRecreatedTree(e){return this._hGridSchema?ng(e,this._hGridSchema,!0):ob(e,this._columns)}_calculateRowCount(){this.verticalScrollContainer?.isRemote?this._rowCount=this.verticalScrollContainer.totalItemCount??0:this.paginator?this._rowCount=this.totalRecords??0:this._rowCount=this.verticalScrollContainer?.igxForOf?.length??0,this._rowCount+=1}updateMergedData(){if(this.columnsToMerge.length>0){let e=this.verticalScrollContainer.state.startIndex,i=[],n=this.verticalScrollContainer.igxForOf[e];n&&n.cellMergeMeta&&this.columnsToMerge.forEach(s=>{let o=n.cellMergeMeta?.get(s.field)?.root;o&&i.push({record:o,index:o.index,dataIndex:o.index})}),this._mergedDataInView=i,this.notifyChanges()}}initLocale(){this._defaultLocale=ml(),this._locale=this.localeId!==ag?this.localeId:this._locale,Fn(this.destroy$,this.onResourceChange,this)}onResourceChange(e){this._defaultLocale=e.detail.newLocale,this._locale||(this._defaultResourceStrings=Qt(yx,!1)),this._currencyPositionLeft=void 0,this._init||(this.pipeTrigger++,this.notifyChanges(!0))}static{this.ɵfac=function(i){return new(i||r$34)}}static{this.ɵdir=ee({type:r$34,contentQueries:function(i,n,s){if(i&1&&kt(s,MF,7,MF)(s,QX,5,fe)(s,_X,5,fe)(s,vX,5,fe)(s,bX,5,fe)(s,SX,5,fe)(s,wX,5,fe)(s,IX,5,fe)(s,NX,5,fe)(s,CX,5,fe)(s,DX,5,fe)(s,kX,5,fe)(s,WE,4,WE)(s,zl,5,zl)(s,UX,4,fe)(s,qX,4,fe)(s,HX,4,fe)(s,KX,4,fe)(s,YX,4,fe)(s,XX,4,fe)(s,gx,4)(s,jX,4,fe)(s,eT,5)(s,HE,4)(s,fT,4),i&2){let o;R(o=P())&&(n.excelStyleLoadingValuesTemplateDirective=o.first),R(o=P())&&(n.rowAddText=o.first),R(o=P())&&(n.rowExpandedIndicatorDirectiveTemplate=o.first),R(o=P())&&(n.rowCollapsedIndicatorDirectiveTemplate=o.first),R(o=P())&&(n.headerExpandedIndicatorDirectiveTemplate=o.first),R(o=P())&&(n.headerCollapsedIndicatorDirectiveTemplate=o.first),R(o=P())&&(n.excelStyleHeaderIconDirectiveTemplate=o.first),R(o=P())&&(n.sortAscendingHeaderIconDirectiveTemplate=o.first),R(o=P())&&(n.sortDescendingHeaderIconDirectiveTemplate=o.first),R(o=P())&&(n.sortHeaderIconDirectiveTemplate=o.first),R(o=P())&&(n.loadingDirectiveTemplate=o.first),R(o=P())&&(n.emptyDirectiveTemplate=o.first),R(o=P())&&(n.excelStyleFilteringComponents=o),R(o=P())&&(n.columnList=o),R(o=P())&&(n.headSelectorsTemplates=o),R(o=P())&&(n.rowSelectorsTemplates=o),R(o=P())&&(n.dragGhostCustomTemplates=o),R(o=P())&&(n.rowEditCustomDirectives=o),R(o=P())&&(n.rowEditTextDirectives=o),R(o=P())&&(n.rowEditActionsDirectives=o),R(o=P())&&(n.actionStripComponents=o),R(o=P())&&(n.dragIndicatorIconTemplates=o),R(o=P())&&(n.rowEditTabsCUSTOM=o),R(o=P())&&(n.toolbar=o),R(o=P())&&(n.paginationComponents=o)}},viewQuery:function(i,n){if(i&1&&Qe(GF,5)(BF,5)(JEe,7,Wr)(eTe,7,fe)(tTe,7,fe)(iTe,7,fe)(nTe,7,za)(rTe,7,za)(sTe,7,za)(oTe,7,Se)(aTe,7,fe)(lTe,5,Se)(VF,7)(EZ,5)(cTe,7)(dTe,7,Ti)(HF,7,Se)(uTe,5,Se)(hTe,7)(gTe,7,fe)(pTe,5,Wr)(fTe,7,gd)(mTe,7,Ti)(NZ,7,fe)(DZ,7,fe)(xTe,7,fe)(yTe,7,fe)(kN,5,kN)(eT,5)(_Te,5,zF)(vTe,5)(bTe,5)(hp,5,hp),i&2){let s;R(s=P())&&(n.addRowSnackbar=s.first),R(s=P())&&(n.resizeLine=s.first),R(s=P())&&(n.loadingOverlay=s.first),R(s=P())&&(n.emptyFilteredGridTemplate=s.first),R(s=P())&&(n.emptyGridDefaultTemplate=s.first),R(s=P())&&(n.loadingGridDefaultTemplate=s.first),R(s=P())&&(n.parentVirtDir=s.first),R(s=P())&&(n.verticalScrollContainer=s.first),R(s=P())&&(n.verticalScroll=s.first),R(s=P())&&(n.scr=s.first),R(s=P())&&(n.headerSelectorBaseTemplate=s.first),R(s=P())&&(n.footer=s.first),R(s=P())&&(n.theadRow=s.first),R(s=P())&&(n.groupArea=s.first),R(s=P())&&(n.tbody=s.first),R(s=P())&&(n.bodyViewContainerRef=s.first),R(s=P())&&(n.tbodyContainer=s.first),R(s=P())&&(n.pinContainer=s.first),R(s=P())&&(n.tfoot=s.first),R(s=P())&&(n.dragIndicatorIconBase=s.first),R(s=P())&&(n.rowEditingOverlay=s.first),R(s=P())&&(n._outletDirective=s.first),R(s=P())&&(n.anchor=s.first),R(s=P())&&(n.defaultExpandedTemplate=s.first),R(s=P())&&(n.defaultCollapsedTemplate=s.first),R(s=P())&&(n.defaultESFHeaderIconTemplate=s.first),R(s=P())&&(n.defaultRowEditTemplate=s.first),R(s=P())&&(n.tmpOutlets=s),R(s=P())&&(n.rowEditTabsDEFAULT=s),R(s=P())&&(n._summaryRowList=s),R(s=P())&&(n._rowList=s),R(s=P())&&(n._pinnedRowList=s),R(s=P())&&(n._dataRowList=s)}},hostVars:16,hostBindings:function(i,n){i&1&&j(`mouseleave`,function(){return n.hideActionStrip()}),i&2&&(ie(`tabindex`,n.tabindex)(`role`,n.hostRole)(`aria-colcount`,n.ariaColCount)(`aria-rowcount`,n.ariaRowCount),ve(`height`,n.height)(`width`,n.hostWidth)(`display`,n.displayStyle)(`grid-template-rows`,n.templateRows),we(`igx-grid`,n.baseClass)(`igx-grid--loading`,n.isLoading))},inputs:{snackbarDisplayTime:`snackbarDisplayTime`,autoGenerate:[2,`autoGenerate`,`autoGenerate`,K],autoGenerateExclude:`autoGenerateExclude`,moving:[2,`moving`,`moving`,K],emptyGridTemplate:`emptyGridTemplate`,addRowEmptyTemplate:`addRowEmptyTemplate`,loadingGridTemplate:`loadingGridTemplate`,summaryRowHeight:`summaryRowHeight`,dataCloneStrategy:`dataCloneStrategy`,clipboardOptions:`clipboardOptions`,rowClasses:`rowClasses`,rowStyles:`rowStyles`,primaryKey:`primaryKey`,uniqueColumnValuesStrategy:`uniqueColumnValuesStrategy`,dragGhostCustomTemplate:`dragGhostCustomTemplate`,rowEditTextTemplate:`rowEditTextTemplate`,rowAddTextTemplate:`rowAddTextTemplate`,rowEditActionsTemplate:`rowEditActionsTemplate`,rowExpandedIndicatorTemplate:`rowExpandedIndicatorTemplate`,rowCollapsedIndicatorTemplate:`rowCollapsedIndicatorTemplate`,headerExpandedIndicatorTemplate:`headerExpandedIndicatorTemplate`,headerCollapsedIndicatorTemplate:`headerCollapsedIndicatorTemplate`,excelStyleHeaderIconTemplate:`excelStyleHeaderIconTemplate`,sortAscendingHeaderIconTemplate:`sortAscendingHeaderIconTemplate`,sortDescendingHeaderIconTemplate:`sortDescendingHeaderIconTemplate`,sortHeaderIconTemplate:`sortHeaderIconTemplate`,resourceStrings:`resourceStrings`,filteringLogic:`filteringLogic`,filteringExpressionsTree:`filteringExpressionsTree`,advancedFilteringExpressionsTree:`advancedFilteringExpressionsTree`,locale:`locale`,pagingMode:`pagingMode`,hideRowSelectors:[2,`hideRowSelectors`,`hideRowSelectors`,K],rowDraggable:[2,`rowDraggable`,`rowDraggable`,K],validationTrigger:`validationTrigger`,rowEditable:[2,`rowEditable`,`rowEditable`,K],height:`height`,width:`width`,rowHeight:`rowHeight`,columnWidth:`columnWidth`,emptyGridMessage:`emptyGridMessage`,isLoading:[2,`isLoading`,`isLoading`,K],emptyFilteredGridMessage:`emptyFilteredGridMessage`,pinning:`pinning`,allowFiltering:[2,`allowFiltering`,`allowFiltering`,K],allowAdvancedFiltering:[2,`allowAdvancedFiltering`,`allowAdvancedFiltering`,K],filterMode:`filterMode`,summaryPosition:`summaryPosition`,summaryCalculationMode:`summaryCalculationMode`,showSummaryOnCollapse:[2,`showSummaryOnCollapse`,`showSummaryOnCollapse`,K],filterStrategy:`filterStrategy`,sortStrategy:`sortStrategy`,mergeStrategy:`mergeStrategy`,sortingOptions:`sortingOptions`,selectedRows:`selectedRows`,headSelectorTemplate:`headSelectorTemplate`,rowSelectorTemplate:`rowSelectorTemplate`,dragIndicatorIconTemplate:`dragIndicatorIconTemplate`,sortingExpressions:`sortingExpressions`,batchEditing:[2,`batchEditing`,`batchEditing`,K],cellSelection:`cellSelection`,cellMergeMode:`cellMergeMode`,rowSelection:`rowSelection`,columnSelection:`columnSelection`,expansionStates:`expansionStates`,outlet:`outlet`,totalRecords:`totalRecords`,selectRowOnClick:[2,`selectRowOnClick`,`selectRowOnClick`,K]},outputs:{filteringExpressionsTreeChange:`filteringExpressionsTreeChange`,advancedFilteringExpressionsTreeChange:`advancedFilteringExpressionsTreeChange`,gridScroll:`gridScroll`,cellClick:`cellClick`,rowClick:`rowClick`,formGroupCreated:`formGroupCreated`,validationStatusChange:`validationStatusChange`,selected:`selected`,rowSelectionChanging:`rowSelectionChanging`,columnSelectionChanging:`columnSelectionChanging`,columnPin:`columnPin`,columnPinned:`columnPinned`,cellEditEnter:`cellEditEnter`,cellEditExit:`cellEditExit`,cellEdit:`cellEdit`,cellEditDone:`cellEditDone`,rowEditEnter:`rowEditEnter`,rowEdit:`rowEdit`,rowEditDone:`rowEditDone`,rowEditExit:`rowEditExit`,columnInit:`columnInit`,sorting:`sorting`,sortingDone:`sortingDone`,filtering:`filtering`,filteringDone:`filteringDone`,rowAdded:`rowAdded`,rowDeleted:`rowDeleted`,rowDelete:`rowDelete`,rowAdd:`rowAdd`,columnResized:`columnResized`,contextMenu:`contextMenu`,doubleClick:`doubleClick`,columnVisibilityChanging:`columnVisibilityChanging`,columnVisibilityChanged:`columnVisibilityChanged`,columnMovingStart:`columnMovingStart`,columnMoving:`columnMoving`,columnMovingEnd:`columnMovingEnd`,gridKeydown:`gridKeydown`,rowDragStart:`rowDragStart`,rowDragEnd:`rowDragEnd`,gridCopy:`gridCopy`,expansionStatesChange:`expansionStatesChange`,selectedRowsChange:`selectedRowsChange`,rowToggle:`rowToggle`,rowPinning:`rowPinning`,rowPinned:`rowPinned`,activeNodeChange:`activeNodeChange`,sortingExpressionsChange:`sortingExpressionsChange`,toolbarExporting:`toolbarExporting`,rangeSelected:`rangeSelected`,rendered:`rendered`,localeChange:`localeChange`,dataChanging:`dataChanging`,dataChanged:`dataChanged`}})}}return ft([$s()],r$34.prototype,`primaryKey`,null),ft([$s()],r$34.prototype,`filteringLogic`,null),ft([$s()],r$34.prototype,`filteringExpressionsTree`,null),ft([$s()],r$34.prototype,`advancedFilteringExpressionsTree`,null),ft([$s()],r$34.prototype,`hideRowSelectors`,null),ft([$s()],r$34.prototype,`rowEditable`,null),ft([$s()],r$34.prototype,`height`,null),ft([$s()],r$34.prototype,`width`,null),ft([$s()],r$34.prototype,`rowHeight`,null),ft([$s()],r$34.prototype,`columnWidth`,null),ft([$s()],r$34.prototype,`isLoading`,null),ft([$s()],r$34.prototype,`sortingExpressions`,null),ft([$s()],r$34.prototype,`cellSelection`,null),ft([$s()],r$34.prototype,`cellMergeMode`,null),ft([$s()],r$34.prototype,`rowSelection`,null),ft([$s()],r$34.prototype,`columnSelection`,null),ft([$s()],r$34.prototype,`selectRowOnClick`,null),r$34})();var KMe=0;var xT=(()=>{class r extends WMe{constructor(){super(...arguments),this.dataPreLoad=new A,this.groupingExpressionsChange=new A,this.groupingExpansionStateChange=new A,this.groupingDone=new A,this.groupsExpanded=!0,this.role=`grid`,this.id=`igx-grid-${KMe++}`,this._groupsRecords=[],this._groupingExpressions=[],this._groupingExpandState=[],this.groupingDiffer=null,this._hideGroupedColumns=!1,this._dropAreaMessage=null,this._showGroupArea=!0,this.childDetailTemplates=new Map,this.groupingPerformedSubject=new Te,this.groupingPerformed$=this.groupingPerformedSubject.asObservable()}get detailTemplate(){return this._detailTemplate}set detailTemplate(e){this._detailTemplate=e}get groupsRecords(){return this._groupsRecords}get data(){return this._data}set data(e){let i=(!this._data||this._data.length===0)&&e&&e.length>0,n=this._data;this._data=e||[],this.summaryService.clearSummaryCache(),this._init||this.validation.updateAll(this._data),this.autoGenerate&&this._data.length>0&&this.shouldRecreateColumns(n,this._data)&&this.gridAPI.grid&&this.setupColumns(),this.cdr.markForCheck(),this.isPercentHeight&&this.notifyChanges(!0),i&&this._columns.some(s=>s._width===`auto`)&&this.recalculateAutoSizes(),this.checkPrimaryKeyField()}set totalItemCount(e){this.verticalScrollContainer.totalItemCount=e}get totalItemCount(){return this.verticalScrollContainer.totalItemCount}get _gridAPI(){return this.gridAPI}get groupingExpressions(){return this._groupingExpressions}set groupingExpressions(e){if(this.groupingExpressions===e)return;if(e&&e.length>10)throw Error(`Maximum amount of grouped columns is 10.`);let i=this.groupingExpressions,n=e;if(this._groupingExpressions=sn(e),this.groupingExpressionsChange.emit(this._groupingExpressions),this._gridAPI.grid&&(this._applyGrouping(),this.notifyChanges()),!this._init&&JSON.stringify(i,this.stringifyCallback)!==JSON.stringify(n,this.stringifyCallback)&&this._columns){let s=[],o=[];n.filter(d=>!i.some(u=>d.fieldName===u.fieldName)).forEach(d=>{s.push(this.getColumnByName(d.fieldName))},this),i.filter(d=>!n.some(u=>d.fieldName===u.fieldName)).forEach(d=>{o.push(this.getColumnByName(d.fieldName))},this),this.notifyChanges();let c={expressions:n,groupedColumns:s,ungroupedColumns:o};this.groupingPerformed$.pipe(na(1)).subscribe(()=>{this.groupingDone.emit(c)})}}get groupingExpansionState(){return this._groupingExpandState}set groupingExpansionState(e){e!==this._groupingExpandState&&this.groupingExpansionStateChange.emit(e),this._groupingExpandState=e,this.gridAPI.grid&&this.cdr.detectChanges()}get hideGroupedColumns(){return this._hideGroupedColumns}set hideGroupedColumns(e){e?this.groupingDiffer=this.differs.find(this.groupingExpressions).create():this.groupingDiffer=null,this._columns&&this.groupingExpressions&&this._setGroupColsVisibility(e),this._hideGroupedColumns=e}get groupStrategy(){return this._groupStrategy}set groupStrategy(e){this._groupStrategy=e}set dropAreaMessage(e){this._dropAreaMessage=e,this.notifyChanges()}get dropAreaMessage(){return this._dropAreaMessage||this.resourceStrings.igx_grid_groupByArea_message}get groupsRowList(){let e=new ls;if(!this._groupsRowList)return e;let i=this._groupsRowList.filter(n=>n.element.nativeElement.parentElement!==null).sort((n,s)=>n.index-s.index);return e.reset(i),e}get groupByRowSelectorTemplate(){return this._groupByRowSelectorTemplate||this.groupByRowSelectorsTemplates?.first}set groupByRowSelectorTemplate(e){this._groupByRowSelectorTemplate=e}getDetailsContext(e,i){return{$implicit:e,index:i}}detailsViewFocused(e,i){this.navigation.setActiveNode({row:i})}get hasDetails(){return!!this.detailTemplate}getRowTemplate(e){return this.isGroupByRecord(e)?this.defaultGroupTemplate:this.isSummaryRow(e)?this.summaryTemplate:this.hasDetails&&this.isDetailRecord(e)?this.detailTemplateContainer:this.recordTemplate}isDetailRecord(e){return e&&e.detailsData!==void 0}isDetailActive(e){return this.navigation.activeNode?this.navigation.activeNode.row===e:!1}get groupRowTemplate(){return this._groupRowTemplate}set groupRowTemplate(e){this._groupRowTemplate=e,this.notifyChanges()}groupBy(e){this.checkIfNoColumnField(e)||(this.crudService.endEdit(!1),e instanceof Array?this._gridAPI.groupBy_multiple(e):this._gridAPI.groupBy(e),this.notifyChanges(!0))}clearGrouping(e){this._gridAPI.clear_groupby(e),this.calculateGridSizes(),this.notifyChanges(!0),this.groupingPerformedSubject.next()}isExpandedGroup(e){let i=this._getStateForGroupRow(e);return i?i.expanded:this.groupsExpanded}toggleGroup(e){this._toggleGroup(e),this.notifyChanges()}selectRowsInGroup(e,i){this._gridAPI.groupBy_select_all_rows_in_group(e,i),this.notifyChanges()}deselectRowsInGroup(e){this._gridAPI.groupBy_deselect_all_rows_in_group(e),this.notifyChanges()}fullyExpandGroup(e){this._fullyExpandGroup(e),this.notifyChanges()}isGroupByRecord(e){return e&&e?.records&&e.records?.length&&e.expression&&e.expression?.fieldName}toggleAllGroupRows(){this.groupingExpansionState=[],this.groupsExpanded=!this.groupsExpanded,this.notifyChanges()}get hasGroupableColumns(){return this._columns.some(e=>e.groupable&&!e.columnGroup)}get showGroupArea(){return this._showGroupArea}set showGroupArea(e){this._showGroupArea=e,this.notifyChanges(!0)}isColumnGrouped(e){return!!this.groupingExpressions.find(i=>i.fieldName===e)}getContext(e,i,n){if(this.isDetailRecord(e)){let s=this.childDetailTemplates.get(e.detailsData),o=this.primaryKey?e.detailsData[this.primaryKey]:e.detailsData;if(s){let a=s.view,l=s.owner;return{$implicit:e.detailsData,moveView:a,owner:l,index:this.dataView.indexOf(e),templateID:{type:`detailRow`,id:o}}}else return{$implicit:e.detailsData,templateID:{type:`detailRow`,id:o},index:this.dataView.indexOf(e)}}return{$implicit:this.isGhostRecord(e)||this.isRecordMerged(e)?e.recordRef:e,index:this.getDataViewIndex(i,n),templateID:{type:this.isGroupByRecord(e)?`groupRow`:this.isSummaryRow(e)?`summaryRow`:`dataRow`,id:null},disabled:this.isGhostRecord(e),metaData:this.isRecordMerged(e)?e:null}}viewCreatedHandler(e){e.context.templateID.type===`detailRow`&&this.childDetailTemplates.set(e.context.$implicit,e)}viewMovedHandler(e){if(e.context.templateID.type===`detailRow`){let i=e.context.$implicit,n=this.childDetailTemplates.get(i);n.owner=e.owner}}get iconTemplate(){return this.groupsExpanded?this.headerExpandedIndicatorTemplate||this.defaultExpandedTemplate:this.headerCollapsedIndicatorTemplate||this.defaultCollapsedTemplate}ngAfterContentInit(){super.ngAfterContentInit(),this.allowFiltering&&this.hasColumnLayouts&&(this.filterMode=Em.excelStyleFilter),this.groupTemplate&&(this._groupRowTemplate=this.groupTemplate.template),this.detailTemplateDirective&&(this._detailTemplate=this.detailTemplateDirective),this.hideGroupedColumns&&this._columns&&this.groupingExpressions&&this._setGroupColsVisibility(this.hideGroupedColumns),this._setupNavigationService()}ngAfterViewInit(){super.ngAfterViewInit(),this.verticalScrollContainer.beforeViewDestroyed.pipe(oe(this.destroy$)).subscribe(e=>{let i=e.context.$implicit;if(this.isDetailRecord(i)){let n=this.childDetailTemplates.get(i.detailsData);n&&n.owner._viewContainerRef.detach(0)}}),this.sortingExpressionsChange.pipe(oe(this.destroy$)).subscribe(e=>{!this.groupingExpressions||!this.groupingExpressions.length||e.forEach(i=>{let n=i.fieldName,s=this.groupingExpressions.find(o=>o.fieldName===n);s&&(s.dir=i.dir)})})}ngOnInit(){super.ngOnInit(),this.trackChanges=(e,i)=>i?.detailsData!==void 0?i.detailsData:i,this.groupingDone.pipe(oe(this.destroy$)).subscribe(e=>{this.crudService.endEdit(!1),this.summaryService.updateSummaryCache(e),this._headerFeaturesWidth=NaN})}ngDoCheck(){if(this.groupingDiffer&&this._columns&&!this.hasColumnLayouts){let e=this.groupingDiffer.diff(this.groupingExpressions);e&&this._columns.length>0&&(e.forEachAddedItem(i=>{let n=this.getColumnByName(i.item.fieldName);n&&(n.hidden=!0)}),e.forEachRemovedItem(i=>{let n=this.getColumnByName(i.item.fieldName);n.hidden=!1}))}super.ngDoCheck()}dataLoading(e){this.dataPreLoad.emit(e)}getSelectedData(e=!1,i=!1){if(this.groupingExpressions.length||this.hasDetails){let n=[],s=o=>{if(o.expression||o.summaries||this.isDetailRecord(o)){n.push(null);return}n.push(o)};return this.dataView.forEach(s),this.extractDataFromSelection(n,e,i)}else return super.getSelectedData(e,i)}getRowByIndex(e){let i;if(!(e<0))return this.dataView.length>=this.virtualizationState.startIndex+this.virtualizationState.chunkSize?i=this.createRow(e):!(ethis.virtualizationState.startIndex+this.virtualizationState.chunkSize)&&(i=this.createRow(e)),this.pagingMode===`remote`&&this.page!==0&&(i.index=e+this.perPage*this.page),i}getRowByKey(e){let i=this.filteredSortedData?this.primaryKey?this.filteredSortedData.find(s=>s[this.primaryKey]===e):this.filteredSortedData.find(s=>s===e):void 0,n=this.dataView.indexOf(i);if(!(n<0||n>this.dataView.length))return new Qd(this,n,i)}allRows(){return this.dataView.map((e,i)=>(this.pagingMode===`remote`&&this.page!==0?i=i+this.perPage*this.page:i=this.dataRowList.first.index+i,this.createRow(i)))}dataRows(){return this.allRows().filter(e=>e instanceof Qd)}get selectedCells(){return this.dataRows().map(e=>e.cells.filter(i=>i.selected)).reduce((e,i)=>e.concat(i),[])}getCellByColumn(e,i){let n=this.getRowByIndex(e),s=this._columns.find(o=>o.field===i);if(n&&n instanceof Qd&&!n.data?.detailsData&&s)return this.pagingMode===`remote`&&this.page!==0&&(n.index=e+this.perPage*this.page),new up(this,n.index,s)}getCellByKey(e,i){let n=this.getRowByKey(e),s=this._columns.find(o=>o.field===i);if(n&&s)return new up(this,n.index,s)}pinRow(e,i){let n=this.getRowByKey(e);return super.pinRow(e,i,n)}unpinRow(e){let i=this.getRowByKey(e);return super.unpinRow(e,i)}createRow(e,i){let n,s=this._getDataViewIndex(e),o=i??this.dataView[s];return o&&this.isGroupByRecord(o)&&(n=new PS(this,e,o)),o&&this.isSummaryRow(o)&&(n=new jE(this,e,o.summaries)),!n&&o&&(n=new Qd(this,e,o)),n}get defaultTargetBodyHeight(){let e=this.totalItemCount||this.dataLength;return this.renderedActualRowHeight*Math.min(this._defaultTargetRecordNumber,this.paginator?Math.min(e,this.perPage):e)}getGroupAreaHeight(){return this.groupArea?this.getComputedHeight(this.groupArea.nativeElement):0}onColumnsAddedOrRemoved(){this.groupablePipeTrigger++,this.groupingExpressions&&this.hideGroupedColumns&&this._setGroupColsVisibility(this.hideGroupedColumns),super.onColumnsAddedOrRemoved()}onColumnsChanged(e){super.onColumnsChanged(e),this.hasColumnLayouts&&!(this.navigation instanceof iT)&&this._setupNavigationService()}scrollTo(e,i){if(this.groupingExpressions&&this.groupingExpressions.length&&typeof e!=`number`){let n=this.groupingResult.indexOf(e),s=this.groupingMetadata[n];s&&this._fullyExpandGroup(s)}super.scrollTo(e,i,this.groupingFlatResult)}_getStateForGroupRow(e){return this._gridAPI.groupBy_get_expanded_for_group(e)}_toggleGroup(e){this._gridAPI.groupBy_toggle_group(e)}_fullyExpandGroup(e){this._gridAPI.groupBy_fully_expand_group(e)}_applyGrouping(){this._gridAPI.sort_groupBy_multiple(this._groupingExpressions)}_setupNavigationService(){this.hasColumnLayouts&&(this.navigation=this.injector.get(iT),this.navigation.grid=this)}checkIfNoColumnField(e){if(e instanceof Array){for(let i of e)if(!i.fieldName)return!0;return!1}return!e.fieldName}_setGroupColsVisibility(e){this._columns.length>0&&!this.hasColumnLayouts&&this.groupingExpressions.forEach(i=>{let n=this.getColumnByName(i.fieldName);n.hidden=e})}stringifyCallback(e,i){if(e!==`externalObject`)return i}static{this.ɵfac=(()=>{let e;return function(n){return(e||(e=pt(r)))(n||r)}})()}static{this.ɵcmp=re({type:r,selectors:[[`igx-grid`]],contentQueries:function(i,n,s){if(i&1&&kt(s,yX,5,fe)(s,PF,5,PF)(s,GX,4,fe),i&2){let o;R(o=P())&&(n.detailTemplateDirective=o.first),R(o=P())&&(n.groupTemplate=o.first),R(o=P())&&(n.groupByRowSelectorsTemplates=o)}},viewQuery:function(i,n){if(i&1&&Qe(STe,7,fe)(wTe,7,fe)(CTe,7,fe)(ITe,7,fe)(nL,5,nL),i&2){let s;R(s=P())&&(n.recordTemplate=s.first),R(s=P())&&(n.detailTemplateContainer=s.first),R(s=P())&&(n.defaultGroupTemplate=s.first),R(s=P())&&(n.summaryTemplate=s.first),R(s=P())&&(n._groupsRowList=s)}},hostVars:2,hostBindings:function(i,n){i&2&&ie(`role`,n.role)(`id`,n.id)},inputs:{groupsExpanded:[2,`groupsExpanded`,`groupsExpanded`,K],dropAreaTemplate:`dropAreaTemplate`,detailTemplate:`detailTemplate`,id:`id`,data:`data`,totalItemCount:`totalItemCount`,groupingExpressions:`groupingExpressions`,groupingExpansionState:`groupingExpansionState`,hideGroupedColumns:[2,`hideGroupedColumns`,`hideGroupedColumns`,K],groupStrategy:`groupStrategy`,dropAreaMessage:`dropAreaMessage`,groupByRowSelectorTemplate:`groupByRowSelectorTemplate`,groupRowTemplate:`groupRowTemplate`,showGroupArea:[2,`showGroupArea`,`showGroupArea`,K]},outputs:{dataPreLoad:`dataPreLoad`,groupingExpressionsChange:`groupingExpressionsChange`,groupingExpansionStateChange:`groupingExpansionStateChange`,groupingDone:`groupingDone`},features:[it([DF,iT,tT,$F,Uy,jF,{provide:kF,useClass:MMe},{provide:er,useExisting:r},Mm,Tm,Ex,NN]),ke],ngContentSelectors:DTe,decls:97,vars:202,consts:[[`tbody`,``],[`pinnedRecordsTemplate`,``],[`verticalScrollContainer`,``],[`record_template`,``],[`pinned_record_template`,``],[`group_template`,``],[`summary_template`,``],[`detail_template_container`,``],[`bodyViewContainerRef`,``],[`verticalScrollHolder`,``],[`addRowSnackbar`,``],[`loadingOverlay`,``],[`tfoot`,``],[`scr`,``],[`scrollContainer`,``],[`footer`,``],[`emptyFilteredGrid`,``],[`defaultEmptyGrid`,``],[`defaultAddRowEmptyTemplate`,``],[`defaultLoadingGrid`,``],[`defaultExpandedTemplate`,``],[`defaultCollapsedTemplate`,``],[`defaultRowEditText`,``],[`defaultRowEditActions`,``],[`defaultRowEditTemplate`,``],[`dragIndicatorIconBase`,``],[`igxFilteringOverlayOutlet`,``],[`groupArea`,``],[`row`,``],[`pinContainer`,``],[`row`,``,`pinnedRow`,``],[`summaryRow`,``],[`detailsContainer`,``],[`rowEditingOverlay`,``],[`sink`,``],[3,`flex-basis`,`grid`,`expressions`,`sortingExpressions`,`dropAreaTemplate`,`dropAreaMessage`],[`tabindex`,`0`,1,`igx-grid-thead`,3,`keydown.meta.c`,`keydown.control.c`,`copy`,`keydown`,`scroll`,`focus`,`grid`,`hasMRL`,`width`,`pinnedStartColumnCollection`,`pinnedEndColumnCollection`,`unpinnedColumnCollection`],[`igxGridBody`,``,`role`,`presentation`,1,`igx-grid__tbody`,3,`keydown.control.c`,`copy`],[`tabindex`,`0`,1,`igx-grid__tbody-content`,3,`keydown`,`focus`,`dragStop`,`scroll`,`dragScroll`,`igxGridDragSelect`],[`id`,`left`,1,`igx-grid__scroll-on-drag-left`,3,`igxColumnMovingDrop`],[`id`,`left`,1,`igx-grid__scroll-on-drag-pinned`,3,`igxColumnMovingDrop`,`left`],[4,`ngTemplateOutlet`],[`igxScrollInertia`,``,3,`IgxScrollInertiaScrollContainer`,`IgxScrollInertiaDirection`],[`igxGridFor`,``,3,`chunkPreload`,`dataChanging`,`dataChanged`,`igxGridForOf`,`igxForScrollOrientation`,`igxForScrollContainer`,`igxForContainerSize`,`igxForItemSize`,`igxForTrackBy`],[4,`ngTemplateOutlet`,`ngTemplateOutletContext`],[`id`,`right`,1,`igx-grid__scroll-on-drag-right`,3,`igxColumnMovingDrop`],[1,`igx-grid__tbody-scrollbar`,3,`pointerdown`,`hidden`],[1,`igx-grid__tbody-scrollbar-start`],[1,`igx-grid__tbody-scrollbar-main`],[`igxGridFor`,``,3,`igxGridForOf`],[1,`igx-grid__tbody-scrollbar-end`],[1,`igx-grid__addrow-snackbar`],[3,`actionText`,`displayTime`],[1,`igx-grid__loading-outlet`],[`igxToggle`,``],[3,`indeterminate`],[`role`,`presentation`,1,`igx-grid__tfoot`],[`tabindex`,`0`,`role`,`rowgroup`,3,`focus`,`keydown`],[`role`,`row`,1,`igx-grid__summaries`,3,`width`,`height`,`gridID`,`summaries`,`index`],[1,`igx-grid__tfoot-thumb`,3,`hidden`],[`role`,`presentation`,1,`igx-grid__scroll`,3,`pointerdown`,`hidden`],[1,`igx-grid__scroll-start`],[1,`igx-grid__scroll-main`],[1,`igx-grid__scroll-end`,3,`hidden`],[`role`,`presentation`,1,`igx-grid__footer`],[`igxOverlayOutlet`,``,1,`igx-grid__outlet`],[3,`grid`,`expressions`,`sortingExpressions`,`dropAreaTemplate`,`dropAreaMessage`],[`id`,`left`,1,`igx-grid__scroll-on-drag-pinned`,3,`igxColumnMovingDrop`],[1,`igx-grid__tr--merged-top`,3,`gridID`,`index`,`data`,`metaData`,`top`,`ngClass`,`ngStyle`],[1,`igx-grid__tr--merged-top`,3,`gridID`,`index`,`data`,`metaData`,`ngClass`,`ngStyle`],[1,`igx-grid__tr--pinned`,3,`ngClass`,`width`],[1,`igx-grid__tr--pinned`,3,`ngClass`],[3,`cachedViewLoaded`,`viewCreated`,`beforeViewDetach`,`viewMoved`,`igxTemplateOutlet`,`igxTemplateOutletContext`],[3,`gridID`,`index`,`data`,`disabled`,`metaData`,`ngClass`,`ngStyle`],[3,`gridID`,`index`,`data`,`metaData`,`ngClass`,`ngStyle`],[3,`gridID`,`index`,`groupRow`,`hideGroupRowSelectors`,`rowDraggable`],[`role`,`row`,1,`igx-grid__summaries--body`,3,`gridID`,`summaries`,`index`],[`detail`,`true`,3,`pointerdown`,`id`,`ngClass`],[1,`igx-grid__hierarchical-indent`],[3,`class`],[3,`ngTemplateOutlet`,`ngTemplateOutletContext`],[`role`,`row`,1,`igx-grid__summaries`,3,`gridID`,`summaries`,`index`],[`role`,`cell`,1,`igx-grid__tbody-message`],[`type`,`button`,`igxButton`,`contained`,`igxRipple`,``,3,`click`],[1,`igx-grid__loading`],[`family`,`default`,`name`,`unfold_less`,`role`,`button`,3,`ngClass`],[`family`,`default`,`name`,`unfold_more`,`role`,`button`,3,`ngClass`],[3,`className`],[`igxButton`,``,`igxRowEditTabStop`,``,`type`,`button`,3,`click`],[1,`igx-banner__message`],[1,`igx-banner__text`],[1,`igx-banner__actions`],[1,`igx-banner__row`],[`family`,`default`,`name`,`drag_indicator`],[2,`display`,`none`]],template:function(i,n){if(i&1&&(dt(NTe),Ae(0),F(1,VTe,2,7,`igx-grid-group-by-area`,35),v(2,`igx-grid-header-row`,36),j(`keydown.meta.c`,function(o){return n.copyHandler(o)})(`keydown.control.c`,function(o){return n.copyHandler(o)})(`copy`,function(o){return n.copyHandler(o)})(`keydown`,function(o){return n.navigation.headerNavigation(o)})(`scroll`,function(o){return n.preventHeaderScroll(o)})(`focus`,function(){return n.navigation.focusFirstCell()}),b(),v(3,`div`,37),j(`keydown.control.c`,function(o){return n.copyHandler(o)})(`copy`,function(o){return n.copyHandler(o)}),v(4,`div`,38,0),j(`keydown`,function(o){return n.navigation.handleNavigation(o)})(`focus`,function(o){return n.navigation.focusTbody(o)})(`dragStop`,function(o){return n.selectionService.dragMode=o})(`scroll`,function(o){return n.preventContainerScroll(o)})(`dragScroll`,function(o){return n.dragScroll(o)}),F(6,$Te,1,2,`span`,39),F(7,zTe,1,4,`span`,40),Z(8,BTe,1,0,`ng-container`,41),F(9,HTe,3,2,`div`,42),Z(10,KTe,9,72,`ng-template`,null,1,pe)(12,QTe,2,3,`ng-template`,43,2,pe),ue(14,`gridTransaction`),ue(15,`visibleColumns`),ue(16,`gridFiltering`),ue(17,`gridSort`),ue(18,`gridGroupBy`),ue(19,`gridPaging`),ue(20,`gridSummary`),ue(21,`gridDetails`),ue(22,`gridAddRow`),ue(23,`gridRowPinning`),ue(24,`gridCellMerge`),ue(25,`gridUnmergeActive`),j(`chunkPreload`,function(o){return n.dataLoading(o)})(`dataChanging`,function(o){return n.dataRebinding(o)})(`dataChanged`,function(o){return n.dataRebound(o)}),Z(26,XTe,1,0,`ng-container`,41)(27,ZTe,4,39,`ng-template`,null,3,pe)(29,JTe,5,38,`ng-template`,null,4,pe)(31,eMe,2,5,`ng-template`,null,5,pe)(33,tMe,2,3,`ng-template`,null,6,pe)(35,rMe,5,10,`ng-template`,null,7,pe)(37,sMe,1,0,`ng-container`,44),xe(38,null,8),U(40,`igc-trial-watermark`),b(),F(41,oMe,1,2,`span`,45),v(42,`div`,46),j(`pointerdown`,function(o){return o.preventDefault()}),U(43,`div`,47),v(44,`div`,48),Z(45,aMe,0,0,`ng-template`,49,9,pe),b(),U(47,`div`,50),b(),v(48,`div`,51)(49,`igx-snackbar`,52,10),B(51),b()(),v(52,`div`,53)(53,`div`,54,11),F(55,lMe,1,1,`igx-circular-bar`,55),b()()(),v(56,`div`,56,12)(58,`div`,57),j(`focus`,function(){return n.navigation.focusFirstCell(!1)})(`keydown`,function(o){return n.navigation.summaryNav(o)}),F(59,cMe,3,10,`igx-grid-summary-row`,58),U(60,`div`,59),b()(),v(61,`div`,60,13),j(`pointerdown`,function(o){return o.preventDefault()}),U(63,`div`,61),v(64,`div`,62),Z(65,dMe,0,0,`ng-template`,49,14,pe),b(),U(67,`div`,63),b(),v(68,`div`,64,15),Ae(70,1),Ae(71,2),b(),Z(72,gMe,4,2,`ng-template`,null,16,pe)(74,mMe,4,2,`ng-template`,null,17,pe)(76,xMe,2,1,`ng-template`,null,18,pe)(78,yMe,2,1,`ng-template`,null,19,pe)(80,_Me,1,3,`ng-template`,null,20,pe)(82,vMe,1,3,`ng-template`,null,21,pe),F(84,SMe,4,7,`div`,54),Z(85,wMe,3,9,`ng-template`,null,22,pe)(87,CMe,4,2,`ng-template`,null,23,pe)(89,DMe,6,8,`ng-template`,null,24,pe)(91,kMe,1,0,`ng-template`,null,25,pe),F(93,EMe,1,0,`igx-grid-column-resizer`),U(94,`div`,65,26),F(96,TMe,4,0)),i&2){let s=J(11);f(),L(n.showGroupArea&&(n.groupingExpressions.length>0||n.hasGroupableColumns)?1:-1),f(),I(`grid`,n)(`hasMRL`,n.hasColumnLayouts)(`width`,n.calcWidth)(`pinnedStartColumnCollection`,n.pinnedStartColumns)(`pinnedEndColumnCollection`,n.pinnedEndColumns)(`unpinnedColumnCollection`,n.unpinnedColumns),f(2),ve(`height`,n.totalHeight,`px`)(`width`,n.totalCalcWidth,`px`)(`width`,n.platform.isBrowser?void 0:`100%`),I(`igxGridDragSelect`,n.selectionService.dragMode),ie(`role`,n.dataView.length?`rowgroup`:`row`)(`aria-activedescendant`,n.activeDescendant),f(2),L(n.moving&&n.columnInDrag&&n.pinnedColumns.length<=0?6:-1),f(),L(n.moving&&n.columnInDrag&&n.pinnedColumns.length>0?7:-1),f(),I(`ngTemplateOutlet`,n.hasPinnedRecords&&n.isRowPinningToTop?s:null),f(),L(n.mergedDataInView&&n.mergedDataInView.length>0?9:-1),f(3),I(`igxGridForOf`,Ht(25,143,sa(194,kTe,Ht(24,137,Br(188,Fc,xr(23,132,bt(22,128,xr(21,123,Ht(20,114,YC(179,CZ,Ht(19,108,Br(173,Fc,Ht(18,99,YC(164,CZ,Ht(17,92,bs(157,bh,Ht(16,84,Gh(149,HS,fo(15,81,bt(14,77,n.renderData,n.id,n.pipeTrigger),n.hasVisibleColumns),n.filteringExpressionsTree,n.filterStrategy,n.advancedFilteringExpressionsTree,n.id,n.pipeTrigger,n.filteringPipeTrigger)),n.sortingExpressions,n.groupingExpressions,n.sortStrategy,n.id,n.pipeTrigger)),n.groupingExpressions,n.groupingExpansionState,n.groupStrategy,n.groupsExpanded,n.id,n.groupsRecords,n.pipeTrigger)),!!n.paginator,n.page,n.perPage,n.pipeTrigger)),n.hasSummarizedColumns,n.summaryCalculationMode,n.summaryPosition,n.id,n.showSummaryOnCollapse,n.pipeTrigger,n.summaryPipeTrigger)),n.hasDetails,n.expansionStates,n.pipeTrigger),!1,n.pipeTrigger),n.id,!1,n.pipeTrigger),n.columnsToMerge,n.cellMergeMode,n.mergeStrategy,n.pipeTrigger)),n.columnsToMerge,n.activeRowIndexes,n.pipeTrigger)))(`igxForScrollOrientation`,`vertical`)(`igxForScrollContainer`,n.verticalScroll)(`igxForContainerSize`,n.calcHeight)(`igxForItemSize`,n.hasColumnLayouts?n.rowHeight*n.multiRowLayoutRowSize+1:n.renderedRowHeight)(`igxForTrackBy`,n.trackChanges),f(14),I(`ngTemplateOutlet`,n.hasPinnedRecords&&!n.isRowPinningToTop?s:null),f(11),I(`ngTemplateOutlet`,n.template)(`ngTemplateOutletContext`,Et(199,fp,n)),f(4),L(n.moving&&n.columnInDrag?41:-1),f(),ve(`width`,n.scrollSize,`px`),I(`hidden`,!n.hasVerticalScroll()),f(),ve(`height`,n.isRowPinningToTop?n.pinnedRowHeight:0,`px`),f(),ve(`height`,n.calcHeight,`px`),f(),I(`igxGridForOf`,nd(201,ETe)),f(2),ve(`height`,n.isRowPinningToTop?0:n.pinnedRowHeight,`px`),f(2),I(`actionText`,n.resourceStrings.igx_grid_snackbar_addrow_actiontext)(`displayTime`,n.snackbarDisplayTime),f(2),Ie(n.resourceStrings.igx_grid_snackbar_addrow_label),f(4),L(n.shouldOverlayLoading?55:-1),f(),ve(`height`,n.summaryRowHeight,`px`),f(2),ie(`aria-activedescendant`,n.activeDescendant),f(),L(n.hasSummarizedColumns&&n.rootSummariesEnabled?59:-1),f(),ve(`height`,n.summaryRowHeight,`px`)(`width`,n.scrollSize,`px`),I(`hidden`,!n.hasVerticalScroll()),f(),ve(`height`,n.scrollSize,`px`),I(`hidden`,n.isHorizontalScrollHidden),f(2),ve(`width`,n.pinnedStartWidth,`px`)(`min-width`,n.pinnedStartWidth,`px`),we(`igx-grid__scroll-start--pinned`,n.pinnedStartColumns.length>0)(`igx-grid__scroll-start--column-selection`,n.columnSelection!==`none`),f(),ve(`width`,n.unpinnedWidth,`px`),f(),I(`igxGridForOf`,n.EMPTY_DATA),f(2),ve(`float`,`right`)(`width`,n.pinnedEndWidth,`px`)(`min-width`,n.pinnedEndWidth,`px`),I(`hidden`,n.pinnedEndWidth===0),f(17),L(n.rowEditable?84:-1),f(9),L(n.colResizingService.showResizer?93:-1),f(3),L(n.platform.isElements?96:-1)}},dependencies:[zi,of,Lt,EZ,VF,HF,WX,XE,za,kN,BMe,nL,zF,gd,Wr,fg,GF,Mi,ur,ht,eT,BF,IN,OX,FX,LX,zX,RX,PX,ZX,OMe,VMe,PMe,$Me,RMe,AMe,ZE,FMe,LMe],encapsulation:2})}}return r})();var YMe=[`*`];var QMe=0;var TZ=(()=>{class r extends EN{constructor(){super(...arguments),this._element=C(Se),this.cssClass=`igx-toast`,this.id=`igx-toast-${QMe++}`,this.role=`alert`,this.isVisibleChange=new A,this._positionSettings={horizontalDirection:Ve.Center,verticalDirection:qe.Bottom,openAnimation:Is(qs),closeAnimation:Is(Gs)}}get positionSettings(){return this._positionSettings}set positionSettings(e){this._positionSettings=e}get element(){return this._element.nativeElement}open(e,i){e!==void 0&&(this.textMessage=e),i!==void 0&&(this.positionSettings=i),this.strategy=new vl(this.positionSettings),super.open()}toggle(){this.collapsed||this.isClosing?this.open():this.close()}ngOnInit(){this.opened.pipe(oe(this.destroy$)).subscribe(()=>{let e={owner:this,id:this._overlayId};this.isVisibleChange.emit(e)}),this.closed.pipe(oe(this.destroy$)).subscribe(()=>{let e={owner:this,id:this._overlayId};this.isVisibleChange.emit(e)})}static{this.ɵfac=(()=>{let e;return function(n){return(e||(e=pt(r)))(n||r)}})()}static{this.ɵcmp=re({type:r,selectors:[[`igx-toast`]],hostVars:4,hostBindings:function(i,n){i&2&&(ie(`id`,n.id)(`role`,n.role),we(`igx-toast`,n.cssClass))},inputs:{id:`id`,role:`role`,positionSettings:`positionSettings`},outputs:{isVisibleChange:`isVisibleChange`},features:[Lo([md]),ke],ngContentSelectors:YMe,decls:3,vars:1,template:function(i,n){i&1&&(dt(),Ae(0),Dr(1,`span`),B(2),kr()),i&2&&(f(2),Ie(n.textMessage))},styles:[`@layer ig.base{.igx-toast{--%NS%_padding: .625rem 1rem;font-family:var(--%NS%ig-body-2-font-family, var(--%NS%ig-font-family));font-size:var(--%NS%ig-body-2-font-size);font-weight:var(--%NS%ig-body-2-font-weight);font-style:var(--%NS%ig-body-2-font-style);line-height:var(--%NS%ig-body-2-line-height);letter-spacing:var(--%NS%ig-body-2-letter-spacing);text-transform:var(--%NS%ig-body-2-text-transform);margin-top:var(--%NS%ig-body-2-margin-top);margin-bottom:var(--%NS%ig-body-2-margin-bottom);display:inline-flex;justify-content:center;align-items:center;margin:2.625rem auto;padding:var(--%NS%_padding);min-width:3.25rem;color:var(--%NS%text-color);background:var(--%NS%background);border-radius:var(--%NS%border-radius);box-shadow:var(--%NS%elevation);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.igx-toast:after{content:"";position:absolute;width:100%;height:100%;border-radius:inherit;box-shadow:inset 0 0 0 .0625rem var(--%NS%border-color)}.igx-toast>*{font-family:var(--%NS%ig-body-2-font-family, var(--%NS%ig-font-family));font-size:var(--%NS%ig-body-2-font-size);font-weight:var(--%NS%ig-body-2-font-weight);font-style:var(--%NS%ig-body-2-font-style);line-height:var(--%NS%ig-body-2-line-height);letter-spacing:var(--%NS%ig-body-2-letter-spacing);text-transform:var(--%NS%ig-body-2-text-transform);margin-top:var(--%NS%ig-body-2-margin-top);margin-bottom:var(--%NS%ig-body-2-margin-bottom);margin:0}}@layer ig.fluent{@container style(--%NS%ig-theme: fluent){.igx-toast{--%NS%_padding: .5rem .75rem;font-family:var(--%NS%ig-caption-font-family, var(--%NS%ig-font-family));font-size:var(--%NS%ig-caption-font-size);font-weight:var(--%NS%ig-caption-font-weight);font-style:var(--%NS%ig-caption-font-style);line-height:var(--%NS%ig-caption-line-height);letter-spacing:var(--%NS%ig-caption-letter-spacing);text-transform:var(--%NS%ig-caption-text-transform);margin-top:var(--%NS%ig-caption-margin-top);margin-bottom:var(--%NS%ig-caption-margin-bottom);margin:revert-layer}.igx-toast>*{font-family:var(--%NS%ig-caption-font-family, var(--%NS%ig-font-family));font-size:var(--%NS%ig-caption-font-size);font-weight:var(--%NS%ig-caption-font-weight);font-style:var(--%NS%ig-caption-font-style);line-height:var(--%NS%ig-caption-line-height);letter-spacing:var(--%NS%ig-caption-letter-spacing);text-transform:var(--%NS%ig-caption-text-transform);margin-top:var(--%NS%ig-caption-margin-top);margin-bottom:var(--%NS%ig-caption-margin-bottom);margin:0}}}@layer ig.bootstrap{@container style(--%NS%ig-theme: bootstrap){.igx-toast{--%NS%_padding: .75rem}}} +`],encapsulation:2,changeDetection:1})}}return r})();var XMe=[`grid`];var ZMe=[`dialogAdd`];function JMe(r,t){r&1&&(v(0,`igx-icon`),B(1,`search`),b())}function eAe(r,t){if(r&1){let e=de();v(0,`igx-icon`,45),j(`click`,function(){V(e);return $(x().clearSearch())}),B(1,`clear`),b()}}function tAe(r,t){if(r&1&&(v(0,`span`),B(1),b()),r&2){x(3);let e=J(36);f(),qh(` `,e.lastSearchInfo.activeMatchIndex+1,` of `,e.lastSearchInfo.matchInfoCache.length,` results `)}}function iAe(r,t){r&1&&(v(0,`span`),B(1,` No results `),b())}function nAe(r,t){if(r&1&&(v(0,`div`,46),F(1,tAe,2,2,`span`),F(2,iAe,2,0,`span`),b()),r&2){x(2);let e=J(36);f(),L(e.lastSearchInfo.matchInfoCache.length>0?1:-1),f(),L(e.lastSearchInfo.matchInfoCache.length===0?2:-1)}}function rAe(r,t){if(r&1){let e=de();v(0,`igx-suffix`),F(1,nAe,3,2,`div`,46),v(2,`div`,47)(3,`button`,48),j(`click`,function(){V(e);let n=x();return $(J(36).findPrev(n.searchText,n.caseSensitive,n.exactMatch))}),v(4,`igx-icon`,49),B(5,`navigate_before`),b()(),v(6,`button`,48),j(`click`,function(){V(e);let n=x();return $(J(36).findNext(n.searchText,n.caseSensitive,n.exactMatch))}),v(7,`igx-icon`,49),B(8,`navigate_next`),b()()()()}if(r&2){x();let e=J(36);f(),L(e.lastSearchInfo?1:-1)}}var oL=class{operate(t){let e=[];return e.push({key:`min`,label:`Min`,summaryResult:_l.min(t)}),e.push({key:`max`,label:`Max`,summaryResult:_l.max(t)}),e.push({key:`sum`,label:`Sum`,summaryResult:_l.sum(t)}),e}};var MZ=(()=>{class r{constructor(){this.grid=cv.required(`grid`,{read:xT}),this.dialog=cv.required(`dialogAdd`,{read:Im}),this.product=new CS,this.numSummary=oL,this.title=`grid`,this.selectionMode=`multiple`,this.transactionsData=[],this.searchText=``,this.caseSensitive=!1,this.exactMatch=!1,this.sku=Uh(),this.data=IQ,this.expr=[{dir:xi.Asc,fieldName:`supplier`,ignoreCase:!1,strategy:Ef.instance()}]}ngAfterViewInit(){this.transactionsData=this.grid().transactions.getAggregatedChanges(!0),this.grid().transactions.onStateUpdate?.subscribe(()=>{this.transactionsData=this.grid().transactions.getAggregatedChanges(!0)}),this.grid().summaryCalculationMode=oc.rootAndChildLevels,this.grid().summaryPosition=el.top,this.grid().showSummaryOnCollapse=!0}onMouseOver(e,i,n){let s=e.target;if(s?.nodeName.toLowerCase()===`igx-grid-cell`){let o=parseInt(s.getAttribute(`data-rowindex`)??``,10),a=i.getRowByIndex(o);n.show(a)}}onMouseLeave(e,i){let n=i?.relatedTarget;(!i||n?.nodeName.toLowerCase()!==`igx-drop-down-item`)&&e.hide()}clearSearch(){this.searchText=``,this.grid().clearSearch()}searchKeyDown(e){e.key===`Enter`||e.key===`ArrowDown`||e.key===`ArrowRight`?(e.preventDefault(),this.grid().findNext(this.searchText,this.caseSensitive,this.exactMatch)):(e.key===`ArrowUp`||e.key===`ArrowLeft`)&&(e.preventDefault(),this.grid().findPrev(this.searchText,this.caseSensitive,this.exactMatch))}updateSearch(){this.caseSensitive=!this.caseSensitive,this.grid().findNext(this.searchText,this.caseSensitive,this.exactMatch)}updateExactSearch(){this.exactMatch=!this.exactMatch,this.grid().findNext(this.searchText,this.caseSensitive,this.exactMatch)}undo(){this.grid().endEdit(!1),this.grid().transactions.undo()}redo(){this.grid().transactions.redo()}commit(){this.grid().transactions.commit(this.data)}get undoEnabled(){return this.grid().transactions.canUndo}get redoEnabled(){return this.grid().transactions.canRedo}get hasTransactions(){return this.grid().transactions.getAggregatedChanges(!1).length>0}addProduct(){let e=this.product.SKU;this.grid().addRow(this.product),this.grid().cdr.detectChanges(),this.cancel(),this.grid().cdr.detectChanges(),requestAnimationFrame(()=>{let i=this.grid(),n=i.filteredSortedData?i.filteredSortedData.map(s=>s.SKU).indexOf(e):i.getRowByKey(e)?.index;n!==void 0&&n>-1&&i.navigateTo(n,-1)})}cancel(){this.dialog().close(),this.product=new CS}filterLowInventory(){this.grid().clearFilter(),this.grid().filter(`available`,13,zo.instance().condition(`lessThan`))}filterTotalCommited(){this.grid().clearFilter(),this.grid().filter(`commited`,0,zo.instance().condition(`greaterThan`))}filterOversold(){this.grid().clearFilter(),this.grid().filter(`commited`,200,zo.instance().condition(`greaterThan`))}filterDropship(){this.grid().clearFilter(),this.grid().filter(`dropship`,!0,Oa.instance().condition(`true`))}filterArchived(){this.grid().clearFilter(),this.grid().filter(`archived`,!0,Oa.instance().condition(`true`))}filterKits(){this.grid().clearFilter(),this.grid().filter(`kits`,!0,Oa.instance().condition(`true`))}filterActive(){this.grid().clearFilter();let e=new mn(Qi.And),i=new mn(Qi.And,`available`),n={condition:zo.instance().condition(`greaterThan`),fieldName:`available`,ignoreCase:!0,searchVal:0};i.filteringOperands.push(n),e.filteringOperands.push(i);let s=new mn(Qi.And,`physOnHand`),o={condition:zo.instance().condition(`greaterThan`),fieldName:`physOnHand`,ignoreCase:!0,searchVal:0};s.filteringOperands.push(o),e.filteringOperands.push(s),this.grid().filteringExpressionsTree=e}static{this.ɵfac=function(i){return new(i||r)}}static{this.ɵcmp=re({type:r,selectors:[[`app-products`]],viewQuery:function(i,n){i&1&&T0(n.grid,XMe,5,xT)(n.dialog,ZMe,5,Im),i&2&&rv(2)},inputs:{sku:[1,`sku`]},decls:87,vars:43,consts:[[`search1`,``],[`grid`,``],[`actionstrip`,``],[`toast`,``],[`dialogAdd`,``],[`form`,``],[1,`filter-section`],[1,`filtering-buttons-row`],[`igxButton`,`flat`,3,`click`],[1,`search-row`],[`type`,`search`,1,`search-row__input`],[`id`,`search1`,`igxInput`,``,`placeholder`,`Search`,3,`ngModelChange`,`keydown`,`ngModel`],[`igxButton`,`flat`,1,`addProdBtn`,3,`click`],[`igxButton`,``,3,`click`,`disabled`],[1,`grid-wrapper`],[3,`mouseleave`,`data`,`primaryKey`,`rowEditable`,`batchEditing`,`rowSelection`,`groupingExpressions`],[`field`,`product`,`header`,`Product`,`width`,`30%`,3,`dataType`,`groupable`],[`field`,`sku`,`header`,`SKU`,3,`groupable`],[`field`,`supplier`,`header`,`Supplier`,`width`,`10%`,3,`dataType`,`groupable`],[`field`,`weight`,`header`,`Weight`,`dataType`,`string`,`width`,`10%`,3,`groupable`],[`field`,`pkgDims`,`header`,`Pkg Dims`,3,`dataType`,`groupable`],[`field`,`physOnHand`,`header`,`Phys On Hand`,`dataType`,`number`,`width`,`10%`,3,`groupable`,`hasSummary`,`summaries`],[`field`,`available`,`header`,`Available`,`dataType`,`number`,`width`,`10%`,3,`groupable`,`hasSummary`,`summaries`],[`field`,`commited`,`header`,`Commited`,`dataType`,`number`,`width`,`10%`,3,`groupable`,`hasSummary`,`summaries`],[3,`addRow`],[3,`autoHide`],[`title`,`Add New Product`,1,`add-product-dialog`,3,`leftButtonSelect`,`rightButtonSelect`,`rightButtonLabel`,`leftButtonLabel`,`rightButtonType`],[1,`dialog-form`],[`type`,`border`,1,`igx-input-group--border`],[`igxLabel`,``,`for`,`product`],[`igxInput`,``,`id`,`product`,`type`,`text`,`name`,`product`,3,`ngModelChange`,`ngModel`],[`igxLabel`,``,`for`,`sku`],[`igxInput`,``,`id`,`sku`,`type`,`text`,`name`,`sku`,3,`ngModelChange`,`ngModel`],[`igxLabel`,``,`for`,`supplier`],[`igxInput`,``,`id`,`supplier`,`type`,`text`,`name`,`supplier`,3,`ngModelChange`,`ngModel`],[`igxLabel`,``,`for`,`weight`],[`igxInput`,``,`id`,`weight`,`type`,`text`,`name`,`weight`,3,`ngModelChange`,`ngModel`],[`igxLabel`,``,`for`,`pkgdims`],[`igxInput`,``,`id`,`pkgdims`,`type`,`text`,`name`,`pkgdims`,3,`ngModelChange`,`ngModel`],[`igxLabel`,``,`for`,`physonhand`],[`igxInput`,``,`id`,`physonhand`,`type`,`number`,`name`,`onhand`,3,`ngModelChange`,`ngModel`],[`igxLabel`,``,`for`,`available`],[`igxInput`,``,`id`,`available`,`type`,`number`,`name`,`available`,3,`ngModelChange`,`ngModel`],[`igxLabel`,``,`for`,`commited`],[`igxInput`,``,`id`,`commited`,`type`,`number`,`name`,`commited`,3,`ngModelChange`,`ngModel`],[3,`click`],[1,`resultsText`],[1,`searchButtons`],[`igxIconButton`,`flat`,`igxRipple`,``,`igxRippleCentered`,`true`,3,`click`],[`family`,`material`]],template:function(i,n){if(i&1){let s=de();v(0,`section`,6)(1,`div`,7)(2,`button`,8),j(`click`,function(){return n.filterActive()}),B(3,`Active`),b(),v(4,`button`,8),j(`click`,function(){return n.filterLowInventory()}),B(5,`Low Inventory`),b(),v(6,`button`,8),j(`click`,function(){return n.filterKits()}),B(7,`Kits`),b(),v(8,`button`,8),j(`click`,function(){return n.filterDropship()}),B(9,`Dropship`),b(),v(10,`button`,8),j(`click`,function(){return n.filterTotalCommited()}),B(11,`Total Commited`),b(),v(12,`button`,8),j(`click`,function(){return n.filterOversold()}),B(13,`Oversold`),b(),v(14,`button`,8),j(`click`,function(){return n.filterArchived()}),B(15,`Archived`),b()(),U(16,`igx-divider`),v(17,`div`,9)(18,`igx-input-group`,10)(19,`igx-prefix`),F(20,JMe,2,0,`igx-icon`),F(21,eAe,2,0,`igx-icon`),b(),v(22,`input`,11,0),ki(`ngModelChange`,function(a){return V(s),Di(n.searchText,a)||(n.searchText=a),$(a)}),j(`ngModelChange`,function(){V(s);return $(J(36).findNext(n.searchText,n.caseSensitive,n.exactMatch))})(`keydown`,function(a){return n.searchKeyDown(a)}),b(),Jt(),F(24,rAe,9,1,`igx-suffix`),b(),v(25,`div`)(26,`button`,12),j(`click`,function(){V(s);return $(J(52).open())}),B(27,`Add Product`),b(),v(28,`button`,13),j(`click`,function(){return n.undo()}),B(29,`Undo`),b(),v(30,`button`,13),j(`click`,function(){return n.redo()}),B(31,`Redo`),b(),v(32,`button`,13),j(`click`,function(){return n.commit()}),B(33,`Commit`),b()()()(),v(34,`section`,14)(35,`igx-grid`,15,1),j(`mouseleave`,function(){V(s);let a=J(46);return $(n.onMouseLeave(a))}),U(37,`igx-column`,16)(38,`igx-column`,17)(39,`igx-column`,18)(40,`igx-column`,19)(41,`igx-column`,20)(42,`igx-column`,21)(43,`igx-column`,22)(44,`igx-column`,23),v(45,`igx-action-strip`,null,2),U(47,`igx-grid-pinning-actions`)(48,`igx-grid-editing-actions`,24),b()()(),U(49,`igx-toast`,25,3),v(51,`igx-dialog`,26,4),j(`leftButtonSelect`,function(){return n.cancel()})(`rightButtonSelect`,function(){return n.addProduct()}),v(53,`form`,27,5)(55,`igx-input-group`,28)(56,`label`,29),B(57,`Product Title`),b(),v(58,`input`,30),ki(`ngModelChange`,function(a){return V(s),Di(n.product.Product,a)||(n.product.Product=a),$(a)}),b(),Jt(),b(),v(59,`igx-input-group`,28)(60,`label`,31),B(61,`SKU`),b(),v(62,`input`,32),ki(`ngModelChange`,function(a){return V(s),Di(n.product.SKU,a)||(n.product.SKU=a),$(a)}),b(),Jt(),b(),v(63,`igx-input-group`,28)(64,`label`,33),B(65,`Supplier`),b(),v(66,`input`,34),ki(`ngModelChange`,function(a){return V(s),Di(n.product.Supplier,a)||(n.product.Supplier=a),$(a)}),b(),Jt(),b(),v(67,`igx-input-group`,28)(68,`label`,35),B(69,`Weight`),b(),v(70,`input`,36),ki(`ngModelChange`,function(a){return V(s),Di(n.product.Weight,a)||(n.product.Weight=a),$(a)}),b(),Jt(),b(),v(71,`igx-input-group`,28)(72,`label`,37),B(73,`Package Dimensions`),b(),v(74,`input`,38),ki(`ngModelChange`,function(a){return V(s),Di(n.product.PkgDims,a)||(n.product.PkgDims=a),$(a)}),b(),Jt(),b(),v(75,`igx-input-group`,28)(76,`label`,39),B(77,`Physical On Hand`),b(),v(78,`input`,40),ki(`ngModelChange`,function(a){return V(s),Di(n.product.PhysOnHand,a)||(n.product.PhysOnHand=a),$(a)}),b(),Jt(),b(),v(79,`igx-input-group`,28)(80,`label`,41),B(81,`Available`),b(),v(82,`input`,42),ki(`ngModelChange`,function(a){return V(s),Di(n.product.Available,a)||(n.product.Available=a),$(a)}),b(),Jt(),b(),v(83,`igx-input-group`,28)(84,`label`,43),B(85,`Commited`),b(),v(86,`input`,44),ki(`ngModelChange`,function(a){return V(s),Di(n.product.Commited,a)||(n.product.Commited=a),$(a)}),b(),Jt(),b()()()}i&2&&(f(20),L(n.searchText.length===0?20:-1),f(),L(n.searchText.length>0?21:-1),f(),Ni(`ngModel`,n.searchText),ei(),f(2),L(n.searchText.length>0?24:-1),f(4),I(`disabled`,!n.undoEnabled),f(2),I(`disabled`,!n.redoEnabled),f(2),I(`disabled`,!n.hasTransactions),f(3),I(`data`,n.data)(`primaryKey`,`sku`)(`rowEditable`,!0)(`batchEditing`,!0)(`rowSelection`,n.selectionMode)(`groupingExpressions`,n.expr),f(2),I(`dataType`,`string`)(`groupable`,!0),f(),I(`groupable`,!0),f(),I(`dataType`,`string`)(`groupable`,!0),f(),I(`groupable`,!0),f(),I(`dataType`,`string`)(`groupable`,!0),f(),I(`groupable`,!0)(`hasSummary`,!0)(`summaries`,n.numSummary),f(),I(`groupable`,!0)(`hasSummary`,!0)(`summaries`,n.numSummary),f(),I(`groupable`,!0)(`hasSummary`,!0)(`summaries`,n.numSummary),f(4),I(`addRow`,!0),f(),I(`autoHide`,!0),f(2),I(`rightButtonLabel`,`Add Product`)(`leftButtonLabel`,`Cancel`)(`rightButtonType`,`contained`),f(7),Ni(`ngModel`,n.product.Product),ei(),f(4),Ni(`ngModel`,n.product.SKU),ei(),f(4),Ni(`ngModel`,n.product.Supplier),ei(),f(4),Ni(`ngModel`,n.product.Weight),ei(),f(4),Ni(`ngModel`,n.product.PkgDims),ei(),f(4),Ni(`ngModel`,n.product.PhysOnHand),ei(),f(4),Ni(`ngModel`,n.product.Available),ei(),f(4),Ni(`ngModel`,n.product.Commited),ei())},dependencies:[bl,SK,jo,Rf,Va,Ix,$a,r4,xT,zl,iZ,YE,RF,Im,TZ,ht,Kn,bn,Rc,ar,Wn,Mi,Io,ug,ur],styles:[`.danger-color[_ngcontent-%COMP%]{color:var(--%NS%ig-error-500)}.warn-color[_ngcontent-%COMP%]{color:var(--%NS%ig-warn-500)}.success-color[_ngcontent-%COMP%]{color:var(--%NS%ig-success-500)}[_nghost-%COMP%]{display:flex;flex-direction:column;height:100%}igx-divider[_ngcontent-%COMP%]{min-height:1px}igx-grid[_ngcontent-%COMP%]{--%NS%ig-size: var(--%NS%ig-size-medium);--%NS%ig-grid-header-background: var(--%NS%ig-gray-100);--%NS%ig-grid-grouparea-background: var(--%NS%ig-gray-100);--%NS%ig-grid-summary-background-color: var(--%NS%ig-gray-100)}igx-grid[_ngcontent-%COMP%] .igx-grid__summaries--body{background-color:var(--%NS%ig-gray-100)}.filtering-buttons-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;margin-bottom:.6666666667rem}.filtering-buttons-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-right:.25rem;margin-bottom:.5rem}.search-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;margin-bottom:1rem;margin-top:1.3333333333rem}.search-row[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-bottom:1rem}.search-row__input[_ngcontent-%COMP%]{flex:1;max-width:37.5rem;min-width:15.625rem}.filter-section[_ngcontent-%COMP%]{display:flex;flex-direction:column}.grid-wrapper[_ngcontent-%COMP%]{flex:1;height:calc(100% - 200px)}.row-selector-checkbox[_ngcontent-%COMP%]{padding-left:5px}.group-label[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:flex-start;line-height:1rem;padding-left:16px}.group-label__icon[_ngcontent-%COMP%], .group-label__column-name[_ngcontent-%COMP%], .group-label__text[_ngcontent-%COMP%], .group-label__count-badge[_ngcontent-%COMP%]{margin-right:4px}.dialog-form[_ngcontent-%COMP%]{min-width:300px;padding:0 1.5rem 1.5rem}.dialog-form[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{margin-bottom:1rem}.dialog-form[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:last-of-type{margin-bottom:0} .igx-dialog__window-actions{padding:1.5rem!important}`]})}}return r})();var AZ=[{path:``,redirectTo:`/products`,pathMatch:`full`},{path:`dashboard`,component:CQ,data:{text:`Dashboard`}},{path:`products`,component:MZ,data:{text:`Products`}}];var RZ=[{path:`/dashboard`,icon:`store_mall_directory`,text:`Dashboard`},{path:`/products`,icon:`label`,text:`Products`}];function sAe(r,t){if(r&1&&(v(0,`a`,13,1)(2,`igx-icon`,17),B(3),b(),v(4,`span`),B(5),b()()),r&2){let e=t.$implicit,i=J(1);I(`routerLink`,e.path)(`active`,i.isActive),f(3),Ie(e.icon),f(2),Ie(e.text)}}function oAe(r,t){if(r&1&&(v(0,`nav`)(1,`h1`,8),cl(),v(2,`svg`,9),U(3,`defs`)(4,`rect`,10)(5,`path`,11)(6,`path`,12),b()(),et(7,sAe,6,4,`a`,13,tr),M_(),v(9,`div`,14)(10,`span`,15),B(11,`Collapse`),b(),v(12,`button`,16)(13,`igx-icon`,17),B(14,`navigate_before`),b()()()()),r&2){let e=x();f(7),tt(e.mainNavItems)}}function aAe(r,t){if(r&1&&(v(0,`a`,19,3)(2,`igx-icon`,17),B(3),b(),v(4,`div`,22,4),B(6),b()()),r&2){let e=t.$implicit,i=J(1);I(`igxTooltipTarget`,J(5))(`routerLink`,e.path)(`active`,i.isActive),f(3),Ie(e.icon),f(3),Ce(` `,e.text,` `)}}function lAe(r,t){if(r&1&&(v(0,`nav`)(1,`h1`,8),cl(),v(2,`svg`,18)(3,`defs`)(4,`style`),B(5,`.a{fill:none;}.b{fill:#f2591c;}.c{fill:#fff;}`),b()(),U(6,`path`,11),b()(),et(7,aAe,7,5,`a`,19,tr),M_(),v(9,`div`,20)(10,`button`,21)(11,`igx-icon`,17),B(12,`navigate_next`),b()(),v(13,`div`,22,2),B(15,` Expand `),b()()()),r&2){let e=J(14),i=x();f(7),tt(i.mainNavItems),f(2),I(`igxTooltipTarget`,e)}}var PZ=(()=>{class r{constructor(){this.mainNavItems=RZ,this.drawerState={miniTemplate:!0,open:!0,pin:!1}}static{this.ɵfac=function(i){return new(i||r)}}static{this.ɵcmp=re({type:r,selectors:[[`app-main-navigation`]],decls:4,vars:3,consts:[[`drawer`,``],[`rla`,`routerLinkActive`],[`tooltipExpandRef`,`tooltip`],[`rlaMini`,`routerLinkActive`],[`tooltipLinkRef`,`tooltip`],[`id`,`main-navigation`,`width`,`190px`,3,`isOpen`,`pin`,`pinThreshold`],[`igxDrawer`,``],[`igxDrawerMini`,``],[`igxDrawerItem`,``,1,`logo`],[`xmlns`,`http://www.w3.org/2000/svg`,`width`,`130`,`height`,`38`,`viewBox`,`0 0 130 38`,1,`logo__image`],[`width`,`130`,`height`,`38`,1,`a`],[`d`,`M36,1H0V37H36ZM2,3H34V35H2ZM8.757,14.322a1.7,1.7,0,0,0,1.216-.386,1.418,1.418,0,0,0,.4-1.079q0-1.455-1.621-1.455T7.136,12.857Q7.136,14.323,8.757,14.322Zm1.484,1.357H7.263V26.6h2.978ZM22.419,26.6,26.1,15.416h.087q-.117,2.7-.131,3.32t-.015,1.1V26.6h2.822V12.32H24.743L21.159,23.239H21.1L17.722,12.32H13.6V26.6h2.705V19.957q0-1.143-.186-4.561h.088l3.438,11.2Z`,1,`b`],[`d`,`M46.258,5.688q0-1.457,1.621-1.455T49.5,5.688A1.421,1.421,0,0,1,49.1,6.767a1.705,1.705,0,0,1-1.216.386Q46.258,7.153,46.258,5.688Zm3.1,13.74H46.385V8.51h2.978Zm9.405,0L55.33,8.227h-.088q.186,3.419.186,4.56v6.641h-2.7V5.151h4.121l3.379,10.918h.058L63.865,5.151h4.121V19.428H65.164V12.67q0-.478.015-1.1t.131-3.321h-.087L61.541,19.428Zm19.511,0L77.7,17.944h-.078a4.4,4.4,0,0,1-1.548,1.313A5.01,5.01,0,0,1,74,19.623a3.355,3.355,0,0,1-2.475-.9,3.448,3.448,0,0,1-.9-2.559A2.882,2.882,0,0,1,71.838,13.6a7.035,7.035,0,0,1,3.667-.913l1.9-.059v-.478a1.486,1.486,0,0,0-1.7-1.661,7.748,7.748,0,0,0-3.076.791l-.987-2.011a8.873,8.873,0,0,1,4.18-.987,5.205,5.205,0,0,1,3.369.957,3.54,3.54,0,0,1,1.172,2.911v7.275ZM77.4,14.369l-1.152.039a3.692,3.692,0,0,0-1.934.469,1.474,1.474,0,0,0-.635,1.309q0,1.26,1.446,1.259a2.288,2.288,0,0,0,1.655-.595,2.094,2.094,0,0,0,.62-1.582Zm16.1,5.059H90.525V13.051a3.061,3.061,0,0,0-.42-1.772,1.525,1.525,0,0,0-1.338-.591,2.013,2.013,0,0,0-1.807.835,5.177,5.177,0,0,0-.556,2.768v5.137H83.425V8.51H85.7l.4,1.4h.166a3.146,3.146,0,0,1,1.372-1.2,4.675,4.675,0,0,1,1.987-.405,3.817,3.817,0,0,1,2.891,1.03,4.137,4.137,0,0,1,.986,2.974Zm10,0-.576-1.484h-.078a4.4,4.4,0,0,1-1.548,1.313,5,5,0,0,1-2.075.366,3.358,3.358,0,0,1-2.476-.9,3.452,3.452,0,0,1-.9-2.559A2.88,2.88,0,0,1,97.063,13.6a7.033,7.033,0,0,1,3.667-.913l1.895-.059v-.478a1.486,1.486,0,0,0-1.7-1.661,7.752,7.752,0,0,0-3.076.791l-.986-2.011a8.869,8.869,0,0,1,4.179-.987,5.21,5.21,0,0,1,3.37.957,3.539,3.539,0,0,1,1.171,2.911v7.275Zm-.878-5.059-1.153.039a3.688,3.688,0,0,0-1.933.469,1.474,1.474,0,0,0-.635,1.309q0,1.26,1.445,1.259A2.286,2.286,0,0,0,102,16.85a2.1,2.1,0,0,0,.621-1.582ZM118.152,8.51v1.514l-1.709.439a2.983,2.983,0,0,1,.469,1.641,3.312,3.312,0,0,1-1.226,2.739,5.309,5.309,0,0,1-3.4.981l-.537-.029-.44-.049a.992.992,0,0,0-.459.782q0,.644,1.641.644h1.855a4.228,4.228,0,0,1,2.74.772,2.759,2.759,0,0,1,.942,2.265,3.36,3.36,0,0,1-1.6,2.97,8.316,8.316,0,0,1-4.585,1.055,6.344,6.344,0,0,1-3.491-.8,2.526,2.526,0,0,1-1.206-2.232,2.337,2.337,0,0,1,.615-1.65,3.494,3.494,0,0,1,1.807-.947,2,2,0,0,1-.8-.64,1.57,1.57,0,0,1,.02-1.982,4.152,4.152,0,0,1,1.045-.816,2.922,2.922,0,0,1-1.363-1.191,3.631,3.631,0,0,1-.5-1.934,3.413,3.413,0,0,1,1.162-2.764,5.033,5.033,0,0,1,3.321-.976,8.576,8.576,0,0,1,1.089.083q.63.082.805.122Zm-8.428,12.461a1.081,1.081,0,0,0,.591.967,3.24,3.24,0,0,0,1.655.352,5.846,5.846,0,0,0,2.51-.44,1.34,1.34,0,0,0,.908-1.2.85.85,0,0,0-.537-.85,4.4,4.4,0,0,0-1.66-.234h-1.543a2.337,2.337,0,0,0-1.372.385A1.192,1.192,0,0,0,109.724,20.971Zm1.084-8.887a2.224,2.224,0,0,0,.4,1.406,1.471,1.471,0,0,0,1.236.518,1.44,1.44,0,0,0,1.23-.518,2.279,2.279,0,0,0,.391-1.406q0-1.973-1.621-1.972Q110.808,10.112,110.808,12.084Zm14.082,7.539a5.634,5.634,0,0,1-4.121-1.455,5.512,5.512,0,0,1-1.484-4.121A6.056,6.056,0,0,1,120.657,9.8a4.883,4.883,0,0,1,3.794-1.5,4.806,4.806,0,0,1,3.6,1.318,4.985,4.985,0,0,1,1.289,3.643v1.445H122.3a2.867,2.867,0,0,0,.752,1.983,2.647,2.647,0,0,0,1.973.712,8.175,8.175,0,0,0,1.865-.2,9.314,9.314,0,0,0,1.836-.654v2.3a6.993,6.993,0,0,1-1.67.581A10.532,10.532,0,0,1,124.89,19.623Zm-.42-9.2a1.886,1.886,0,0,0-1.484.6,2.765,2.765,0,0,0-.615,1.7h4.179a2.477,2.477,0,0,0-.576-1.7A1.948,1.948,0,0,0,124.47,10.424ZM50.775,32.459H46V23.893h4.775v.885H47v2.759h3.551v.879H47v3.153h3.779Zm2.725,0h-.973V23.342H53.5Zm4.775.117a2.951,2.951,0,0,1-2.247-.867,3.356,3.356,0,0,1-.823-2.408,3.724,3.724,0,0,1,.765-2.467,2.539,2.539,0,0,1,2.053-.914,2.425,2.425,0,0,1,1.911.794,3.047,3.047,0,0,1,.7,2.1v.615H56.213a2.546,2.546,0,0,0,.571,1.717,1.979,1.979,0,0,0,1.527.586,5.169,5.169,0,0,0,2.05-.434v.867a5.144,5.144,0,0,1-.975.32A5.527,5.527,0,0,1,58.275,32.576Zm-.263-5.841a1.592,1.592,0,0,0-1.234.5,2.33,2.33,0,0,0-.542,1.395h3.358a2.141,2.141,0,0,0-.41-1.409A1.445,1.445,0,0,0,58.012,26.735Zm6.849,5.841a2.742,2.742,0,0,1-2.159-.858,3.529,3.529,0,0,1-.764-2.429,3.638,3.638,0,0,1,.776-2.49,2.8,2.8,0,0,1,2.212-.879,4.351,4.351,0,0,1,.925.1,3.028,3.028,0,0,1,.727.234l-.3.826a4.607,4.607,0,0,0-.7-.214,3.178,3.178,0,0,0-.674-.085q-1.956,0-1.957,2.5a2.967,2.967,0,0,0,.478,1.816,1.661,1.661,0,0,0,1.415.633,4.317,4.317,0,0,0,1.646-.346v.861A3.506,3.506,0,0,1,64.861,32.576Zm5.221-.8a3.241,3.241,0,0,0,.5-.038,3.142,3.142,0,0,0,.38-.08V32.4a1.82,1.82,0,0,1-.464.126,3.529,3.529,0,0,1-.555.049q-1.863,0-1.863-1.963v-3.82h-.92v-.469l.92-.4.41-1.371h.562v1.488h1.864v.756H69.05v3.779a1.3,1.3,0,0,0,.276.891A.957.957,0,0,0,70.082,31.774Zm5.091-5.854a3.88,3.88,0,0,1,.768.07l-.135.9a3.283,3.283,0,0,0-.7-.088,1.708,1.708,0,0,0-1.332.633,2.309,2.309,0,0,0-.555,1.576v3.445h-.972V26.037h.8l.112,1.19h.047a2.823,2.823,0,0,1,.861-.967A1.935,1.935,0,0,1,75.173,25.92Zm7.512,3.322a3.547,3.547,0,0,1-.791,2.453,2.788,2.788,0,0,1-2.186.881,2.891,2.891,0,0,1-1.529-.4,2.665,2.665,0,0,1-1.031-1.16,4.048,4.048,0,0,1-.363-1.77A3.533,3.533,0,0,1,77.57,26.8a2.776,2.776,0,0,1,2.18-.876,2.717,2.717,0,0,1,2.142.9A3.526,3.526,0,0,1,82.685,29.242Zm-4.893,0a3.046,3.046,0,0,0,.493,1.875,1.953,1.953,0,0,0,2.9,0,3.031,3.031,0,0,0,.494-1.878,2.984,2.984,0,0,0-.494-1.86,1.741,1.741,0,0,0-1.463-.636,1.71,1.71,0,0,0-1.441.627A3.018,3.018,0,0,0,77.792,29.242Zm10.993,3.217V28.305a1.672,1.672,0,0,0-.358-1.172,1.454,1.454,0,0,0-1.119-.387,1.845,1.845,0,0,0-1.476.545,2.748,2.748,0,0,0-.469,1.8v3.369H84.39V26.037h.791l.158.879h.047a1.99,1.99,0,0,1,.838-.735,2.719,2.719,0,0,1,1.2-.261,2.437,2.437,0,0,1,1.746.56,2.379,2.379,0,0,1,.586,1.79v4.189ZM91.673,24.3a.646.646,0,0,1,.164-.489.609.609,0,0,1,.815,0,.634.634,0,0,1,.17.486.644.644,0,0,1-.17.489.6.6,0,0,1-.815,0A.658.658,0,0,1,91.673,24.3Zm1.055,8.162h-.973V26.037h.973Zm4.629.117a2.737,2.737,0,0,1-2.158-.858,3.529,3.529,0,0,1-.766-2.429,3.643,3.643,0,0,1,.777-2.49,2.794,2.794,0,0,1,2.211-.879,4.346,4.346,0,0,1,.926.1,3.028,3.028,0,0,1,.727.234l-.3.826a4.607,4.607,0,0,0-.7-.214,3.185,3.185,0,0,0-.674-.085q-1.957,0-1.957,2.5a2.974,2.974,0,0,0,.478,1.816,1.66,1.66,0,0,0,1.414.633,4.318,4.318,0,0,0,1.647-.346v.861A3.506,3.506,0,0,1,97.357,32.576Zm7.289-1.869a1.609,1.609,0,0,1-.668,1.383,3.14,3.14,0,0,1-1.875.486,4.069,4.069,0,0,1-1.992-.4v-.9a4.825,4.825,0,0,0,.994.369,4.127,4.127,0,0,0,1.021.135,2.308,2.308,0,0,0,1.172-.244.837.837,0,0,0,.086-1.382,5.106,5.106,0,0,0-1.269-.63,6.887,6.887,0,0,1-1.274-.583,1.739,1.739,0,0,1-.562-.566,1.476,1.476,0,0,1-.186-.756,1.441,1.441,0,0,1,.639-1.239,2.975,2.975,0,0,1,1.752-.454,5.13,5.13,0,0,1,2.027.422l-.345.791a4.649,4.649,0,0,0-1.752-.4,2.021,2.021,0,0,0-1.043.216.67.67,0,0,0-.352.6.726.726,0,0,0,.133.439,1.275,1.275,0,0,0,.424.346,9.316,9.316,0,0,0,1.125.475,4.2,4.2,0,0,1,1.545.838A1.477,1.477,0,0,1,104.646,30.707Z`,1,`c`],[`igxDrawerItem`,``,`routerLinkActive`,``,`igxRipple`,``,3,`routerLink`,`active`],[`igxToggleAction`,`main-navigation`,1,`fab-toggle`],[1,`fab-toggle__text`],[`igxIconButton`,`flat`],[`family`,`material`],[`xmlns`,`http://www.w3.org/2000/svg`,`viewBox`,`0 0 36 36`,1,`logo__image`,`logo__image--mobile`],[`igxDrawerItem`,``,`routerLinkActive`,``,`igxRipple`,``,3,`igxTooltipTarget`,`routerLink`,`active`],[1,`fab-toggle`,3,`igxTooltipTarget`],[`igxIconButton`,`flat`,`igxToggleAction`,`main-navigation`],[`igxTooltip`,``]],template:function(i,n){i&1&&(v(0,`igx-nav-drawer`,5,0),Z(2,oAe,15,0,`ng-template`,6)(3,lAe,16,1,`ng-template`,7),b()),i&2&&I(`isOpen`,!0)(`pin`,!0)(`pinThreshold`,0)},dependencies:[Q0,uR,$K,MN,AN,g4,ht,Io,ur,Of,Sl,hg],styles:[`.danger-color[_ngcontent-%COMP%]{color:var(--%NS%ig-error-500)}.warn-color[_ngcontent-%COMP%]{color:var(--%NS%ig-warn-500)}.success-color[_ngcontent-%COMP%]{color:var(--%NS%ig-success-500)}[_nghost-%COMP%]{max-width:14.25rem}.a[_ngcontent-%COMP%]{fill:none}.b[_ngcontent-%COMP%]{fill:#ff9801}.c[_ngcontent-%COMP%]{fill:currentColor}.fab-toggle[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:center;position:absolute;left:0;right:0;margin:0 auto;bottom:2rem}.fab-toggle__text[_ngcontent-%COMP%]{font-size:.75rem;margin-right:.5rem;color:inherit;cursor:pointer}.fab-toggle[_ngcontent-%COMP%] .igx-icon-button{color:inherit}.logo[_ngcontent-%COMP%]{min-height:56px;margin-top:0!important;cursor:default}.logo[_ngcontent-%COMP%]:hover, .logo[_ngcontent-%COMP%]:focus{background:transparent}.logo__image[_ngcontent-%COMP%]{width:8.125rem;height:2.375rem}.logo__image--mobile[_ngcontent-%COMP%]{width:2.25rem;height:2.25rem}`]})}}return r})();var cAe=[[[`igx-navbar-action`],[``,`igxNavbarAction`,``]],[[`igx-navbar-title`],[``,`igxNavbarTitle`,``]],`*`];var dAe=[`igx-navbar-action, [igxNavbarAction]`,`igx-navbar-title, [igxNavbarTitle]`,`*`];function uAe(r,t){if(r&1){let e=de();v(0,`igx-icon`,5),j(`click`,function(){V(e);return $(x()._triggerAction())}),B(1),b()}if(r&2){let e=x();f(),Ce(` `,e.actionButtonIcon,` `)}}function hAe(r,t){if(r&1&&(v(0,`h1`,3),B(1),b()),r&2){let e=x();ie(`id`,e.titleId),f(),Ce(` `,e.title,` `)}}var OZ=(()=>{class r{static{this.ɵfac=function(i){return new(i||r)}}static{this.ɵdir=ee({type:r,selectors:[[``,`igxNavbarAction`,``],[`igx-navbar-action`]]})}}return r})();var FZ=(()=>{class r{static{this.ɵfac=function(i){return new(i||r)}}static{this.ɵdir=ee({type:r,selectors:[[``,`igxNavbarTitle`,``],[`igx-navbar-title`]],features:[Lo([md])]})}}return r})();var LZ=0;var VZ=(()=>{class r{constructor(){this.id=`igx-navbar-${LZ++}`,this.cssClass=`igx-navbar`,this.action=new A,this.titleId=`igx-navbar-title-${LZ++}`,this.isVisible=!0}set isActionButtonVisible(e){this.isVisible=e}get isActionButtonVisible(){return this.actionIconTemplate||!this.actionButtonIcon?!1:this.isVisible}get isTitleContentVisible(){return!!this.titleContent}_triggerAction(){this.action.emit(this)}static{this.ɵfac=function(i){return new(i||r)}}static{this.ɵcmp=re({type:r,selectors:[[`igx-navbar`]],contentQueries:function(i,n,s){if(i&1&&kt(s,OZ,5,OZ)(s,FZ,5,FZ),i&2){let o;R(o=P())&&(n.actionIconTemplate=o.first),R(o=P())&&(n.titleContent=o.first)}},hostVars:3,hostBindings:function(i,n){i&2&&(ie(`id`,n.id),we(`igx-navbar`,n.cssClass))},inputs:{id:`id`,actionButtonIcon:`actionButtonIcon`,title:`title`,titleId:`titleId`,isActionButtonVisible:[2,`isActionButtonVisible`,`isActionButtonVisible`,K]},outputs:{action:`action`},ngContentSelectors:dAe,decls:9,vars:3,consts:[[`role`,`navigation`],[1,`igx-navbar__left`],[1,`igx-navbar__middle`],[`data-no-typography`,``,1,`igx-navbar__title`],[1,`igx-navbar__right`],[3,`click`]],template:function(i,n){i&1&&(dt(cAe),v(0,`nav`,0)(1,`div`,1),F(2,uAe,2,1,`igx-icon`),Ae(3),b(),v(4,`div`,2),F(5,hAe,2,2,`h1`,3),Ae(6,1),b(),v(7,`div`,4),Ae(8,2),b()()),i&2&&(ie(`aria-labelledby`,n.titleId),f(2),L(n.isActionButtonVisible?2:-1),f(3),L(n.isTitleContentVisible?-1:5))},dependencies:[ht],styles:[`@layer ig.base{.igx-navbar__title,igx-navbar-title,[igxNavbarTitle]{font-family:var(--%NS%ig-h6-font-family, var(--%NS%ig-font-family));font-size:var(--%NS%ig-h6-font-size);font-weight:var(--%NS%ig-h6-font-weight);font-style:var(--%NS%ig-h6-font-style);line-height:var(--%NS%ig-h6-line-height);letter-spacing:var(--%NS%ig-h6-letter-spacing);text-transform:var(--%NS%ig-h6-text-transform);margin-top:var(--%NS%ig-h6-margin-top);margin-bottom:var(--%NS%ig-h6-margin-bottom);display:-webkit-inline-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden;margin:0;flex-grow:1;-webkit-user-select:text;-moz-user-select:text;user-select:text;display:flex;flex-direction:row}.igx-navbar__right,.igx-navbar__middle,.igx-navbar__left{display:flex;align-items:center}.igx-navbar__right>igx-icon,.igx-navbar__middle>igx-icon,.igx-navbar__left>igx-icon,.igx-navbar__right>igc-icon,.igx-navbar__middle>igc-icon,.igx-navbar__left>igc-icon{--%NS%component-size: var(--%NS%ig-size-large);cursor:pointer}.igx-navbar__right>igx-icon,.igx-navbar__middle>igx-icon,.igx-navbar__left>igx-icon,.igx-navbar__right>igc-icon,.igx-navbar__middle>igc-icon,.igx-navbar__left>igc-icon{transition:color .15s cubic-bezier(.25,.46,.45,.94);color:var(--%NS%idle-icon-color)}.igx-navbar__right>igx-icon:hover,.igx-navbar__middle>igx-icon:hover,.igx-navbar__left>igx-icon:hover,.igx-navbar__right>igc-icon:hover,.igx-navbar__middle>igc-icon:hover,.igx-navbar__left>igc-icon:hover{color:var(--%NS%hover-icon-color)}.igx-navbar__right>igx-icon,.igx-navbar__middle>igx-icon,.igx-navbar__left>igx-icon,.igx-navbar__right>igc-icon,.igx-navbar__middle>igc-icon,.igx-navbar__left>igc-icon{-webkit-user-select:none;-moz-user-select:none;user-select:none}igx-navbar-action,[igxNavbarAction]{display:flex;align-items:center}igx-navbar-title,[igxNavbarTitle]{align-items:center}.igx-navbar{display:block;width:100%}.igx-navbar nav{display:flex;align-items:center;position:relative;flex-flow:row nowrap;gap:1rem;min-height:3.5rem;padding-inline:1rem;max-height:8rem;z-index:4;overflow:hidden;background:var(--%NS%background);color:var(--%NS%text-color);box-shadow:var(--%NS%elevation);border-bottom:.0625rem solid var(--%NS%border-color)}.igx-navbar igx-avatar{--%NS%ig-size: 1}.igx-navbar [igxIconButton],.igx-navbar igc-icon-button{--%NS%ig-size: 2}.igx-navbar__left:not(:empty){margin-inline-end:1rem}.igx-navbar__left:empty{display:none}.igx-navbar__middle{flex-grow:1}.igx-navbar__right{gap:1rem}.igx-navbar__right:empty{display:none}}@layer ig.material{@container style(--%NS%ig-theme: material){.igx-navbar igx-input-group{--%NS%ig-size: 1}}}@layer ig.bootstrap{@container style(--%NS%ig-theme: bootstrap){.igx-navbar__title{font-family:var(--%NS%ig-h5-font-family, var(--%NS%ig-font-family));font-size:var(--%NS%ig-h5-font-size);font-weight:var(--%NS%ig-h5-font-weight);font-style:var(--%NS%ig-h5-font-style);line-height:var(--%NS%ig-h5-line-height);letter-spacing:var(--%NS%ig-h5-letter-spacing);text-transform:var(--%NS%ig-h5-text-transform);margin-top:var(--%NS%ig-h5-margin-top);margin-bottom:var(--%NS%ig-h5-margin-bottom);margin:0}.igx-navbar igx-navbar-title,.igx-navbar [igxNavbarTitle]{font-family:var(--%NS%ig-h5-font-family, var(--%NS%ig-font-family));font-size:var(--%NS%ig-h5-font-size);font-weight:var(--%NS%ig-h5-font-weight);font-style:var(--%NS%ig-h5-font-style);line-height:var(--%NS%ig-h5-line-height);letter-spacing:var(--%NS%ig-h5-letter-spacing);text-transform:var(--%NS%ig-h5-text-transform);margin-top:var(--%NS%ig-h5-margin-top);margin-bottom:var(--%NS%ig-h5-margin-bottom);margin:0}}}@layer ig.fluent{@container style(--%NS%ig-theme: fluent){.igx-navbar__title{font-family:var(--%NS%ig-subtitle-2-font-family, var(--%NS%ig-font-family));font-size:var(--%NS%ig-subtitle-2-font-size);font-weight:var(--%NS%ig-subtitle-2-font-weight);font-style:var(--%NS%ig-subtitle-2-font-style);line-height:var(--%NS%ig-subtitle-2-line-height);letter-spacing:var(--%NS%ig-subtitle-2-letter-spacing);text-transform:var(--%NS%ig-subtitle-2-text-transform);margin-top:var(--%NS%ig-subtitle-2-margin-top);margin-bottom:var(--%NS%ig-subtitle-2-margin-bottom)}.igx-navbar igx-navbar-title,.igx-navbar [igxNavbarTitle]{font-family:var(--%NS%ig-subtitle-2-font-family, var(--%NS%ig-font-family));font-size:var(--%NS%ig-subtitle-2-font-size);font-weight:var(--%NS%ig-subtitle-2-font-weight);font-style:var(--%NS%ig-subtitle-2-font-style);line-height:var(--%NS%ig-subtitle-2-line-height);letter-spacing:var(--%NS%ig-subtitle-2-letter-spacing);text-transform:var(--%NS%ig-subtitle-2-text-transform);margin-top:var(--%NS%ig-subtitle-2-margin-top);margin-bottom:var(--%NS%ig-subtitle-2-margin-bottom)}}}@layer ig.indigo{@container style(--%NS%ig-theme: indigo){.igx-navbar .igx-navbar__left [igxIconButton],.igx-navbar .igx-navbar__right [igxIconButton],.igx-navbar .igx-navbar__title [igxIconButton],.igx-navbar .igx-navbar__left igc-icon-button,.igx-navbar .igx-navbar__right igc-icon-button,.igx-navbar .igx-navbar__title igc-icon-button{padding:.375rem}.igx-navbar .igx-navbar__left>igx-icon,.igx-navbar .igx-navbar__right>igx-icon,.igx-navbar .igx-navbar__title>igx-icon,.igx-navbar .igx-navbar__left>igc-icon,.igx-navbar .igx-navbar__right>igc-icon,.igx-navbar .igx-navbar__title>igc-icon{--%NS%component-size: var(--%NS%ig-size-medium);--%NS%size: auto}.igx-navbar igx-avatar{--%NS%ig-size: 2}.igx-navbar igx-navbar-title,.igx-navbar [igxNavbarTitle]{font-family:var(--%NS%ig-h5-font-family, var(--%NS%ig-font-family));font-size:var(--%NS%ig-h5-font-size);font-weight:var(--%NS%ig-h5-font-weight);font-style:var(--%NS%ig-h5-font-style);line-height:var(--%NS%ig-h5-line-height);letter-spacing:var(--%NS%ig-h5-letter-spacing);text-transform:var(--%NS%ig-h5-text-transform);margin-top:var(--%NS%ig-h5-margin-top);margin-bottom:var(--%NS%ig-h5-margin-bottom)}.igx-navbar__title{font-family:var(--%NS%ig-h5-font-family, var(--%NS%ig-font-family));font-size:var(--%NS%ig-h5-font-size);font-weight:var(--%NS%ig-h5-font-weight);font-style:var(--%NS%ig-h5-font-style);line-height:var(--%NS%ig-h5-line-height);letter-spacing:var(--%NS%ig-h5-letter-spacing);text-transform:var(--%NS%ig-h5-text-transform);margin-top:var(--%NS%ig-h5-margin-top);margin-bottom:var(--%NS%ig-h5-margin-bottom)}.igx-navbar__right{gap:.5rem}.igx-navbar__left:not(:empty){margin-inline-end:unset}}} +`],encapsulation:2,changeDetection:1})}}return r})();var gAe=[`defaultTemplate`];var pAe=[`imageTemplate`];var fAe=[`initialsTemplate`];var mAe=[`iconTemplate`];var xAe=[`*`];function yAe(r,t){r&1&&Ae(0)}function _Ae(r,t){if(r&1&&U(0,`div`,6,4),r&2)ve(`background-image`,x().getSrcUrl())}function vAe(r,t){if(r&1&&(v(0,`span`),B(1),b()),r&2){let e=x();f(),Ie(e.initials.substring(0,2))}}function bAe(r,t){if(r&1&&(v(0,`igx-icon`),B(1),b()),r&2){let e=x();f(),Ie(e.icon)}}function SAe(r,t){r&1&&xe(0)}var wAe=0;var CAe={SMALL:`small`,MEDIUM:`medium`,LARGE:`large`};var tl={INITIALS:`initials`,IMAGE:`image`,ICON:`icon`,CUSTOM:`custom`};var $Z=(()=>{class r{constructor(){this.elementRef=C(Se),this.ariaLabel=`avatar`,this.role=`img`,this.cssClass=`igx-avatar`,this.id=`igx-avatar-${wAe++}`,this.shape=`square`}get isRounded(){return this.shape===`rounded`}get isCircle(){return this.shape===`circle`}set src(e){this._src=NH(e)}get src(){return this._src}get size(){return this._size||CAe.SMALL}set size(e){switch(e){case`small`:case`medium`:case`large`:this._size=e;break;default:this._size=`small`}}get type(){return this.src?tl.IMAGE:this.icon?tl.ICON:this.initials?tl.INITIALS:tl.CUSTOM}get _isImageType(){return this.type===tl.IMAGE}get _isIconType(){return this.type===tl.ICON}get _isInitialsType(){return this.type===tl.INITIALS}get componentSize(){if(this._size)return`var(--ig-size-${this._size})`}get template(){switch(this.type){case tl.IMAGE:return this.imageTemplate;case tl.INITIALS:return this.initialsTemplate;case tl.ICON:return this.iconTemplate;default:return this.defaultTemplate}}getSrcUrl(){return`url("${this.src}")`}ngOnInit(){this.roleDescription=this.getRole()}getRole(){switch(this.type){case tl.IMAGE:return`image avatar`;case tl.ICON:return`icon avatar`;case tl.INITIALS:return`initials avatar`;default:return`custom avatar`}}static{this.ɵfac=function(i){return new(i||r)}}static{this.ɵcmp=re({type:r,selectors:[[`igx-avatar`]],viewQuery:function(i,n){if(i&1&&Qe(gAe,7,fe)(pAe,7,fe)(fAe,7,fe)(mAe,7,fe),i&2){let s;R(s=P())&&(n.defaultTemplate=s.first),R(s=P())&&(n.imageTemplate=s.first),R(s=P())&&(n.initialsTemplate=s.first),R(s=P())&&(n.iconTemplate=s.first)}},hostVars:22,hostBindings:function(i,n){i&2&&(ie(`aria-label`,n.ariaLabel)(`role`,n.role)(`aria-roledescription`,n.roleDescription)(`id`,n.id),ve(`color`,n.color)(`background`,n.bgColor)(`--%NS%component-size`,n.componentSize),we(`igx-avatar`,n.cssClass)(`igx-avatar--rounded`,n.isRounded)(`igx-avatar--circle`,n.isCircle)(`igx-avatar--image`,n._isImageType)(`igx-avatar--icon`,n._isIconType)(`igx-avatar--initials`,n._isInitialsType))},inputs:{id:`id`,shape:`shape`,color:`color`,bgColor:`bgColor`,initials:`initials`,icon:`icon`,src:`src`,size:`size`},ngContentSelectors:xAe,decls:9,vars:1,consts:[[`defaultTemplate`,``],[`imageTemplate`,``],[`initialsTemplate`,``],[`iconTemplate`,``],[`image`,``],[4,`ngTemplateOutlet`],[1,`igx-avatar__image`]],template:function(i,n){i&1&&(dt(),Z(0,yAe,1,0,`ng-template`,null,0,pe)(2,_Ae,2,2,`ng-template`,null,1,pe)(4,vAe,2,1,`ng-template`,null,2,pe)(6,bAe,2,1,`ng-template`,null,3,pe)(8,SAe,1,0,`ng-container`,5)),i&2&&(f(8),I(`ngTemplateOutlet`,n.template))},dependencies:[ht,Lt],styles:[`@layer ig.base{.igx-avatar{--%NS%is-large: clamp(0, (var(--%NS%component-size, 1) + 1) - var(--%NS%ig-size-large, 3), 1);--%NS%is-medium: min( clamp(0, (var(--%NS%component-size, 1) + 1) - var(--%NS%ig-size-medium, 2), 1), clamp(0, var(--%NS%ig-size-large, 3) - var(--%NS%component-size, 1), 1) );--%NS%is-small: clamp(0, var(--%NS%ig-size-medium) - var(--%NS%component-size, 1), 1);--%NS%component-size: var(--%NS%ig-size, var(--%NS%default-size));position:relative;display:inline-flex;justify-content:center;align-items:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;color:var(--%NS%color);background:var(--%NS%background);vertical-align:middle;outline-style:none;flex-shrink:0;width:var(--%NS%size);height:var(--%NS%size)}.igx-avatar igx-icon{--%NS%ig-size: 3;color:var(--%NS%icon-color)}.igx-avatar:after{box-shadow:none;transition:box-shadow .15s cubic-bezier(.455,.03,.515,.955)}.igx-avatar__image{width:100%;height:100%;border-radius:inherit;background-size:cover;background-repeat:no-repeat;background-position:center}.igx-avatar--circle{border-radius:calc(var(--%NS%size)/2)}.igx-avatar--rounded{border-radius:var(--%NS%border-radius)}.igx-avatar--initials{text-transform:uppercase;font-size:calc(var(--%NS%size)/2);line-height:calc(var(--%NS%size)/2)}}@layer ig.indigo{@container style(--%NS%ig-theme: indigo){.igx-avatar igx-icon{--%NS%ig-size: 1}}} +`],encapsulation:2,changeDetection:1})}}return r})();var mp=(r,t,e)=>({id:r,name:t,bodyClass:`igx-${r}-theme`,colors:e});var Yy=[mp(`material-light`,`Material Light`,{primary:`#09f`,secondary:`#e41c77`}),mp(`material-dark`,`Material Dark`,{primary:`#09f`,secondary:`#72da67`}),mp(`fluent-light`,`Fluent Light`,{primary:`#2b579a`,secondary:`#2b579a`}),mp(`fluent-dark`,`Fluent Dark`,{primary:`#217346`,secondary:`#217346`}),mp(`bootstrap-light`,`Bootstrap Light`,{primary:`#007bff`,secondary:`#6c757d`}),mp(`bootstrap-dark`,`Bootstrap Dark`,{primary:`#007bff`,secondary:`#6c757d`}),mp(`indigo-light`,`Indigo Light`,{primary:`#3f51b5`,secondary:`#3f51b5`}),mp(`indigo-dark`,`Indigo Dark`,{primary:`#3f51b5`,secondary:`#3f51b5`})];var zZ=`indigo-light`;var BZ=`currentThemeId`;var jZ=`igniteui-theme`;var HZ=(()=>{class r{constructor(){this.document=C(St),this._theme=oi(this.restore()),this.theme=this._theme.asReadonly(),this.themes=Yy}async setTheme(e){let i=Yy.find(n=>n.id===e);if(!i)throw new Error(`Unknown theme '${e}'.`);await this.loadStylesheet(i),this.applyBodyClass(i),this._theme.set(i),localStorage.setItem(BZ,i.id)}init(){return this.setTheme(this._theme().id)}loadStylesheet(e){let i=this.document.getElementById(jZ),n=`theme-${e.id}.css`;if(i?.getAttribute(`href`)===n)return Promise.resolve();let s=this.document.createElement(`link`);return s.rel=`stylesheet`,s.href=n,new Promise((o,a)=>{s.addEventListener(`load`,()=>{i?.remove(),s.id=jZ,o()},{once:!0}),s.addEventListener(`error`,()=>{s.remove(),a(new Error(`Failed to load '${n}'.`))},{once:!0}),i?i.after(s):this.document.head.append(s)})}applyBodyClass(e){let i=this.document.body.classList;Yy.forEach(n=>i.remove(n.bodyClass)),i.add(e.bodyClass)}restore(){let e=localStorage.getItem(BZ);return Yy.find(i=>i.id===e)??Yy.find(i=>i.id===zZ)}static{this.ɵfac=function(i){return new(i||r)}}static{this.ɵprov=ze({token:r,factory:r.ɵfac,providedIn:`root`})}}return r})();var IAe=[`dropDown`];var NAe=(r,t)=>t.id;function DAe(r,t){if(r&1&&(v(0,`igx-drop-down-item`,10)(1,`div`,14)(2,`div`,15),U(3,`span`,16)(4,`span`,17),b(),v(5,`span`,18),B(6),b()()()),r&2){let e=t.$implicit,i=x();I(`value`,e.id)(`selected`,e.id===i.activeThemeId()),f(3),ve(`background`,e.colors.primary),f(),ve(`background`,e.colors.secondary),f(2),Ie(e.name)}}var qZ=(()=>{class r{constructor(){this.router=C(_u),this.themeService=C(HZ),this.dropDown=cv.required(`dropDown`,{read:es}),this.title=`Products`,this.themes=this.themeService.themes,this.theme=this.themeService.theme,this.activeThemeId=mo(()=>this.theme().id),this.isLoading=oi(!1),this.overlaySettings={positionStrategy:new qr({horizontalDirection:Ve.Left,horizontalStartPoint:Ve.Right,verticalStartPoint:qe.Bottom}),scrollStrategy:new Du,closeOnOutsideClick:!1},this.router.events.subscribe(e=>e instanceof Aa&&this.handleRouteChange())}ngOnInit(){this.themeService.init()}onThemeSelectionHandler(e){this.applyTheme(e.newSelection.value)}onDropDownClosing(e){e.cancel=this.isLoading()}async applyTheme(e){this.isLoading.set(!0);try{await this.themeService.setTheme(e),this.dropDown().close()}finally{this.isLoading.set(!1)}}handleRouteChange(){let e=this.router.url.substring(1);this.title=e.charAt(0).toUpperCase()+e.slice(1)}static{this.ɵfac=function(i){return new(i||r)}}static{this.ɵcmp=re({type:r,selectors:[[`app-user-navigation`]],viewQuery:function(i,n){i&1&&T0(n.dropDown,IAe,5,es),i&2&&rv()},decls:19,vars:11,consts:[[`dropDown`,``],[`outlet`,`overlay-outlet`],[1,`user-nav`,3,`title`,`isActionButtonVisible`],[`igxLayout`,``,`igxLayoutDir`,`row`,`igxLayoutItemAlign`,`center`,1,`user-nav__profile`],[`size`,`small`,`shape`,`circle`,`src`,`https://picsum.photos/id/1005/200/300`],[1,`user-nav__profile-text`],[1,`user-nav__profile-name`],[1,`user-nav__profile-role`],[`igxIconButton`,`flat`,`igxRipple`,``,3,`igxToggleAction`,`igxToggleOutlet`,`overlaySettings`],[1,`dropdown`,3,`closing`,`selectionChanging`,`width`],[3,`value`,`selected`],[1,`dropdown__loading`],[1,`itw-loader`,3,`animate`,`indeterminate`,`textVisibility`],[`igxOverlayOutlet`,``,1,`itw-overlayOutlet`],[1,`dropdown__item`],[1,`dropdown__colors`],[1,`dropdown__color`,`dropdown__color--primary`],[1,`dropdown__color`,`dropdown__color--secondary`],[1,`dropdown__label`]],template:function(i,n){if(i&1&&(v(0,`igx-navbar`,2)(1,`div`,3),U(2,`igx-avatar`,4),v(3,`div`,5)(4,`strong`,6),B(5,`User name`),b(),v(6,`span`,7),B(7,`Admin`),b()()(),v(8,`button`,8)(9,`igx-icon`),B(10,` palette `),b()(),v(11,`igx-drop-down`,9,0),j(`closing`,function(o){return n.onDropDownClosing(o)})(`selectionChanging`,function(o){return n.onThemeSelectionHandler(o)}),et(13,DAe,7,7,`igx-drop-down-item`,10,NAe),v(15,`div`,11),U(16,`igx-circular-bar`,12),b()(),U(17,`div`,13,1),b()),i&2){let s=J(12),o=J(18);I(`title`,n.title)(`isActionButtonVisible`,!0),f(8),I(`igxToggleAction`,s)(`igxToggleOutlet`,o)(`overlaySettings`,n.overlaySettings),f(3),I(`width`,`200px`),f(2),tt(n.themes),f(2),ve(`visibility`,n.isLoading()?`visible`:`hidden`),f(),I(`animate`,!1)(`indeterminate`,!0)(`textVisibility`,!1)}},dependencies:[VZ,$Z,ht,es,ta,fg,gd,Io,VK,ur,Of],styles:[`.danger-color[_ngcontent-%COMP%]{color:var(--%NS%ig-error-500)}.warn-color[_ngcontent-%COMP%]{color:var(--%NS%ig-warn-500)}.success-color[_ngcontent-%COMP%]{color:var(--%NS%ig-success-500)}.user-nav__notification[_ngcontent-%COMP%]{position:relative}.user-nav__badge[_ngcontent-%COMP%]{position:absolute;background:#ff9801;top:0;right:0}.user-nav__profile[_ngcontent-%COMP%]{cursor:pointer;margin-left:2rem}.user-nav__profile[_ngcontent-%COMP%] .igx-avatar[_ngcontent-%COMP%]{margin-right:.5rem}.user-nav__profile-text[_ngcontent-%COMP%]{display:flex;flex-flow:column nowrap;justify-content:flex-start;line-height:1.2;font-size:.875rem}.user-nav__profile-text[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{font-size:.75rem}@media only screen and (max-width:650px){.user-nav__profile-text[_ngcontent-%COMP%]{display:none}}.dropdown__item[_ngcontent-%COMP%]{display:flex;white-space:nowrap;justify-content:flex-start;align-items:center}.dropdown__colors[_ngcontent-%COMP%]{position:relative;width:1.875rem;height:1.5625rem;margin-right:.5rem}.dropdown__color[_ngcontent-%COMP%]{position:absolute;border:1px solid var(--%NS%ig-surface-500);border-radius:50%}.dropdown__color--primary[_ngcontent-%COMP%]{width:1.25rem;height:1.25rem;top:0;left:0;z-index:2}.dropdown__color--secondary[_ngcontent-%COMP%]{width:1rem;height:1rem;bottom:0;right:0;z-index:1}.dropdown__loading[_ngcontent-%COMP%]{display:flex;justify-content:center;align-items:center;position:absolute;width:100%;height:100%;top:0;left:0;background:var(--%NS%ig-gray-100)}`]})}}return r})();var GZ=(()=>{class r{constructor(){this.iconService=C(fd)}addIcons(){for(let e of[...KP])this.iconService.addSvgIconFromText(e.name,e.value,`imx-icons`)}ngOnInit(){this.addIcons()}static{this.ɵfac=function(i){return new(i||r)}}static{this.ɵcmp=re({type:r,selectors:[[`app-root`]],decls:5,vars:0,consts:[[`id`,`site-wrapper`],[1,`main-content`]],template:function(i,n){i&1&&(U(0,`app-main-navigation`),v(1,`div`,0),U(2,`app-user-navigation`),v(3,`main`,1),U(4,`router-outlet`),b()())},dependencies:[Vv,PZ,qZ],styles:[`.danger-color[_ngcontent-%COMP%]{color:var(--%NS%ig-error-500)}.warn-color[_ngcontent-%COMP%]{color:var(--%NS%ig-warn-500)}.success-color[_ngcontent-%COMP%]{color:var(--%NS%ig-success-500)}[_nghost-%COMP%]{display:flex}#site-wrapper[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100vh;overflow:hidden;flex:1}.main-content[_ngcontent-%COMP%]{display:flex;flex-direction:column;overflow-y:auto;overflow-x:hidden;padding:2rem;height:100%}`]})}}return r})();function UZ(r){return new be(3e3,!1)}function kAe(){return new be(3100,!1)}function EAe(){return new be(3101,!1)}function TAe(r){return new be(3001,!1)}function MAe(r){return new be(3003,!1)}function AAe(r){return new be(3004,!1)}function KZ(r,t){return new be(3005,!1)}function YZ(){return new be(3006,!1)}function QZ(){return new be(3007,!1)}function XZ(r,t){return new be(3008,!1)}function ZZ(r){return new be(3002,!1)}function JZ(r,t,e,i,n){return new be(3010,!1)}function eJ(){return new be(3011,!1)}function tJ(){return new be(3012,!1)}function iJ(){return new be(3200,!1)}function nJ(){return new be(3202,!1)}function rJ(){return new be(3013,!1)}function sJ(r){return new be(3014,!1)}function oJ(r){return new be(3015,!1)}function aJ(r){return new be(3016,!1)}function lJ(r,t){return new be(3404,!1)}function RAe(r){return new be(3502,!1)}function cJ(r){return new be(3503,!1)}function dJ(){return new be(3300,!1)}function uJ(r){return new be(3504,!1)}function hJ(r){return new be(3301,!1)}function gJ(r,t){return new be(3302,!1)}function pJ(r){return new be(3303,!1)}function fJ(r,t){return new be(3400,!1)}function mJ(r){return new be(3401,!1)}function xJ(r){return new be(3402,!1)}function yJ(r,t){return new be(3505,!1)}function Sh(r){switch(r.length){case 0:return new ud;case 1:return r[0];default:return new mf(r)}}function dL(r,t,e=new Map,i=new Map){let n=[],s=[],o=-1,a=null;if(t.forEach(l=>{let c=l.get(`offset`),d=c==o,u=d&&a||new Map;l.forEach((h,g)=>{let p=g,y=h;if(g!==`offset`)switch(p=r.normalizePropertyName(p,n),y){case cx:y=e.get(g);break;case xl:y=i.get(g);break;default:y=r.normalizeStyleValue(g,p,y,n);break}u.set(p,y)}),d||s.push(u),a=u,o=c}),n.length)throw RAe(n);return s}function yT(r,t,e,i){switch(t){case`start`:r.onStart(()=>i(e&&aL(e,`start`,r)));break;case`done`:r.onDone(()=>i(e&&aL(e,`done`,r)));break;case`destroy`:r.onDestroy(()=>i(e&&aL(e,`destroy`,r)));break}}function aL(r,t,e){let i=e.totalTime,n=!!e.disabled,s=_T(r.element,r.triggerName,r.fromState,r.toState,t||r.phaseName,i??r.totalTime,n),o=r._data;return o!=null&&(s._data=o),s}function _T(r,t,e,i,n=``,s=0,o){return{element:r,triggerName:t,fromState:e,toState:i,phaseName:n,totalTime:s,disabled:!!o}}function ba(r,t,e){let i=r.get(t);return i||r.set(t,i=e),i}function uL(r){let t=r.indexOf(`:`);return[r.substring(1,t),r.slice(t+1)]}var PAe=typeof document>`u`?null:document.documentElement;function vT(r){let t=r.parentNode||r.host||null;return t===PAe?null:t}function OAe(r){return r.substring(1,6)==`ebkit`}var Fm=null;var WZ=!1;function _J(r){Fm||(Fm=FAe()||{},WZ=Fm.style?`WebkitAppearance`in Fm.style:!1);let t=!0;return Fm.style&&!OAe(r)&&(t=r in Fm.style,!t&&WZ&&(t=`Webkit`+r.charAt(0).toUpperCase()+r.slice(1)in Fm.style)),t}function FAe(){return typeof document<`u`?document.body:null}function hL(r,t){for(;t;){if(t===r)return!0;t=vT(t)}return!1}function gL(r,t,e){if(e)return Array.from(r.querySelectorAll(t));let i=r.querySelector(t);return i?[i]:[]}var LAe=1e3;var pL=`{{`;var VAe=`}}`;var fL=`ng-enter`;var bT=`ng-leave`;var qS=`ng-trigger`;var GS=`.ng-trigger`;var mL=`ng-animating`;var ST=`.ng-animating`;function Zd(r){if(typeof r==`number`)return r;let t=r.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:lL(parseFloat(t[1]),t[2])}function lL(r,t){return t===`s`?r*LAe:r}function US(r,t,e){return r.hasOwnProperty(`duration`)?r:zAe(r,t,e)}var $Ae=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i;function zAe(r,t,e){let i,n=0,s=``;if(typeof r==`string`){let o=r.match($Ae);if(o===null)return t.push(UZ(r)),{duration:0,delay:0,easing:``};i=lL(parseFloat(o[1]),o[2]);let a=o[3];a!=null&&(n=lL(parseFloat(a),o[4]));let l=o[5];l&&(s=l)}else i=r;if(!e){let o=!1,a=t.length;i<0&&(t.push(kAe()),o=!0),n<0&&(t.push(EAe()),o=!0),o&&t.splice(a,0,UZ(r))}return{duration:i,delay:n,easing:s}}function vJ(r){return r.length?r[0]instanceof Map?r:r.map(t=>new Map(Object.entries(t))):[]}function Lc(r,t,e){t.forEach((i,n)=>{let s=wT(n);e&&!e.has(n)&&e.set(n,r.style[s]),r.style[s]=i})}function xp(r,t){t.forEach((e,i)=>{let n=wT(i);r.style[n]=``})}function Qy(r){return Array.isArray(r)?r.length==1?r[0]:fI(r):r}function bJ(r,t,e){let i=t.params||{},n=xL(r);n.length&&n.forEach(s=>{i.hasOwnProperty(s)||e.push(TAe(s))})}var cL=new RegExp(`${pL}\\s*(.+?)\\s*${VAe}`,`g`);function xL(r){let t=[];if(typeof r==`string`){let e;for(;e=cL.exec(r);)t.push(e[1]);cL.lastIndex=0}return t}function Xy(r,t,e){let i=`${r}`,n=i.replace(cL,(s,o)=>{let a=t[o];return a??(e.push(MAe(o)),a=``),a.toString()});return n==i?r:n}var BAe=/-+([a-z0-9])/g;function wT(r){return r.replace(BAe,(...t)=>t[1].toUpperCase())}function SJ(r,t){return r===0||t===0}function wJ(r,t,e){if(e.size&&t.length){let i=t[0],n=[];if(e.forEach((s,o)=>{i.has(o)||n.push(o),i.set(o,s)}),n.length)for(let s=1;so.set(a,CT(r,a)))}}return t}function Sa(r,t,e){switch(t.type){case ii.Trigger:return r.visitTrigger(t,e);case ii.State:return r.visitState(t,e);case ii.Transition:return r.visitTransition(t,e);case ii.Sequence:return r.visitSequence(t,e);case ii.Group:return r.visitGroup(t,e);case ii.Animate:return r.visitAnimate(t,e);case ii.Keyframes:return r.visitKeyframes(t,e);case ii.Style:return r.visitStyle(t,e);case ii.Reference:return r.visitReference(t,e);case ii.AnimateChild:return r.visitAnimateChild(t,e);case ii.AnimateRef:return r.visitAnimateRef(t,e);case ii.Query:return r.visitQuery(t,e);case ii.Stagger:return r.visitStagger(t,e);default:throw AAe(t.type)}}function CT(r,t){return window.getComputedStyle(r)[t]}var PL=(()=>{class r{validateStyleProperty(e){return _J(e)}containsElement(e,i){return hL(e,i)}getParentElement(e){return vT(e)}query(e,i,n){return gL(e,i,n)}computeStyle(e,i,n){return n||``}animate(e,i,n,s,o,a=[],l){return new ud(n,s)}static ɵfac=function(i){return new(i||r)};static ɵprov=ze({token:r,factory:r.ɵfac})}return r})();var Vm=class{static NOOP=new PL};var $m=class{};var jAe=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`]);var ET=class extends $m{normalizePropertyName(t,e){return wT(t)}normalizeStyleValue(t,e,i,n){let s=``,o=i.toString().trim();if(jAe.has(e)&&i!==0&&i!==`0`)if(typeof i==`number`)s=`px`;else{let a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&a[1].length==0&&n.push(KZ(t,i))}return o+s}};var TT=`*`;function HAe(r,t){let e=[];return typeof r==`string`?r.split(/\s*,\s*/).forEach(i=>qAe(i,e,t)):e.push(r),e}function qAe(r,t,e){if(r[0]==`:`){let l=GAe(r,e);if(typeof l==`function`){t.push(l);return}r=l}let i=r.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(i==null||i.length<4)return e.push(oJ(r)),t;let n=i[1],s=i[2],o=i[3];t.push(CJ(n,o));let a=n==TT&&o==TT;s[0]==`<`&&!a&&t.push(CJ(o,n))}function GAe(r,t){switch(r){case`:enter`:return`void => *`;case`:leave`:return`* => void`;case`:increment`:return(e,i)=>parseFloat(i)>parseFloat(e);case`:decrement`:return(e,i)=>parseFloat(i) *`}}var IT=new Set([`true`,`1`]);var NT=new Set([`false`,`0`]);function CJ(r,t){let e=IT.has(r)||NT.has(r),i=IT.has(t)||NT.has(t);return(n,s)=>{let o=r==TT||r==n,a=t==TT||t==s;return!o&&e&&typeof n==`boolean`&&(o=n?IT.has(r):NT.has(r)),!a&&i&&typeof s==`boolean`&&(a=s?IT.has(t):NT.has(t)),o&&a}}var PJ=`:self`;var UAe=new RegExp(`s*${PJ}s*,?`,`g`);function OJ(r,t,e,i){return new wL(r).build(t,e,i)}var IJ=``;var wL=class{_driver;constructor(t){this._driver=t}build(t,e,i){let n=new CL(e);return this._resetContextStyleTimingState(n),Sa(this,Qy(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector=IJ,t.collectedStyles=new Map,t.collectedStyles.set(IJ,new Map),t.currentTime=0}visitTrigger(t,e){let i=e.queryCount=0,n=e.depCount=0,s=[],o=[];return t.name.charAt(0)==`@`&&e.errors.push(YZ()),t.definitions.forEach(a=>{if(this._resetContextStyleTimingState(e),a.type==ii.State){let l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(d=>{l.name=d,s.push(this.visitState(l,e))}),l.name=c}else if(a.type==ii.Transition){let l=this.visitTransition(a,e);i+=l.queryCount,n+=l.depCount,o.push(l)}else e.errors.push(QZ())}),{type:ii.Trigger,name:t.name,states:s,transitions:o,queryCount:i,depCount:n,options:null}}visitState(t,e){let i=this.visitStyle(t.styles,e),n=t.options&&t.options.params||null;if(i.containsDynamicStyles){let s=new Set,o=n||{};i.styles.forEach(a=>{a instanceof Map&&a.forEach(l=>{xL(l).forEach(c=>{o.hasOwnProperty(c)||s.add(c)})})}),s.size&&e.errors.push(XZ(t.name,[...s.values()]))}return{type:ii.State,name:t.name,style:i,options:n?{params:n}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;let i=Sa(this,Qy(t.animation),e),n=HAe(t.expr,e.errors);return{type:ii.Transition,matchers:n,animation:i,queryCount:e.queryCount,depCount:e.depCount,options:Lm(t.options)}}visitSequence(t,e){return{type:ii.Sequence,steps:t.steps.map(i=>Sa(this,i,e)),options:Lm(t.options)}}visitGroup(t,e){let i=e.currentTime,n=0,s=t.steps.map(o=>{e.currentTime=i;let a=Sa(this,o,e);return n=Math.max(n,e.currentTime),a});return e.currentTime=n,{type:ii.Group,steps:s,options:Lm(t.options)}}visitAnimate(t,e){let i=QAe(t.timings,e.errors);e.currentAnimateTimings=i;let n,s=t.styles?t.styles:hi({});if(s.type==ii.Keyframes)n=this.visitKeyframes(s,e);else{let o=t.styles,a=!1;if(!o){a=!0;let c={};i.easing&&(c.easing=i.easing),o=hi(c)}e.currentTime+=i.duration+i.delay;let l=this.visitStyle(o,e);l.isEmptyStep=a,n=l}return e.currentAnimateTimings=null,{type:ii.Animate,timings:i,style:n,options:null}}visitStyle(t,e){let i=this._makeStyleAst(t,e);return this._validateStyleAst(i,e),i}_makeStyleAst(t,e){let i=[],n=Array.isArray(t.styles)?t.styles:[t.styles];for(let a of n)typeof a==`string`?a===xl?i.push(a):e.errors.push(ZZ(a)):i.push(new Map(Object.entries(a)));let s=!1,o=null;return i.forEach(a=>{if(a instanceof Map&&(a.has(`easing`)&&(o=a.get(`easing`),a.delete(`easing`)),!s)){for(let l of a.values())if(l.toString().indexOf(pL)>=0){s=!0;break}}}),{type:ii.Style,styles:i,easing:o,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){let i=e.currentAnimateTimings,n=e.currentTime,s=e.currentTime;i&&s>0&&(s-=i.duration+i.delay),t.styles.forEach(o=>{typeof o!=`string`&&o.forEach((a,l)=>{let c=e.collectedStyles.get(e.currentQuerySelector),d=c.get(l),u=!0;d&&(s!=n&&s>=d.startTime&&n<=d.endTime&&(e.errors.push(JZ(l,d.startTime,d.endTime,s,n)),u=!1),s=d.startTime),u&&c.set(l,{startTime:s,endTime:n}),e.options&&bJ(a,e.options,e.errors)})})}visitKeyframes(t,e){let i={type:ii.Keyframes,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push(eJ()),i;let n=1,s=0,o=[],a=!1,l=!1,c=0,d=t.steps.map(w=>{let E=this._makeStyleAst(w,e),k=E.offset!=null?E.offset:YAe(E.styles),z=0;return k!=null&&(s++,z=E.offset=k),l=l||z<0||z>1,a=a||z0&&s{let k=h>0?E==g?1:h*E:o[E],z=k*_;e.currentTime=p+y.delay+z,y.duration=z,this._validateStyleAst(w,e),w.offset=k,i.styles.push(w)}),i}visitReference(t,e){return{type:ii.Reference,animation:Sa(this,Qy(t.animation),e),options:Lm(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:ii.AnimateChild,options:Lm(t.options)}}visitAnimateRef(t,e){return{type:ii.AnimateRef,animation:this.visitReference(t.animation,e),options:Lm(t.options)}}visitQuery(t,e){let i=e.currentQuerySelector,n=t.options||{};e.queryCount++,e.currentQuery=t;let[s,o]=WAe(t.selector);e.currentQuerySelector=i.length?i+` `+s:s,ba(e.collectedStyles,e.currentQuerySelector,new Map);let a=Sa(this,Qy(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=i,{type:ii.Query,selector:s,limit:n.limit||0,optional:!!n.optional,includeSelf:o,animation:a,originalSelector:t.selector,options:Lm(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push(rJ());let i=t.timings===`full`?{duration:0,delay:0,easing:`full`}:US(t.timings,e.errors,!0);return{type:ii.Stagger,animation:Sa(this,Qy(t.animation),e),timings:i,options:null}}};function WAe(r){let t=!!r.split(/\s*,\s*/).find(e=>e==PJ);return t&&(r=r.replace(UAe,``)),r=r.replace(/@\*/g,GS).replace(/@\w+/g,e=>GS+`-`+e.slice(1)).replace(/:animating/g,ST),[r,t]}function KAe(r$35){return r$35?r({},r$35):null}var CL=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(t){this.errors=t}};function YAe(r){if(typeof r==`string`)return null;let t=null;if(Array.isArray(r))r.forEach(e=>{if(e instanceof Map&&e.has(`offset`)){let i=e;t=parseFloat(i.get(`offset`)),i.delete(`offset`)}});else if(r instanceof Map&&r.has(`offset`)){let e=r;t=parseFloat(e.get(`offset`)),e.delete(`offset`)}return t}function QAe(r,t){if(r.hasOwnProperty(`duration`))return r;if(typeof r==`number`){let s=US(r,t).duration;return yL(s,0,``)}let e=r;if(e.split(/\s+/).some(s=>s.charAt(0)==`{`&&s.charAt(1)==`{`)){let s=yL(0,0,``);return s.dynamic=!0,s.strValue=e,s}let n=US(e,t);return yL(n.duration,n.delay,n.easing)}function Lm(r$36){return r$36?(r$36=r({},r$36),r$36.params&&(r$36.params=KAe(r$36.params))):r$36={},r$36}function yL(r,t,e){return{duration:r,delay:t,easing:e}}function OL(r,t,e,i,n,s,o=null,a=!1){return{type:1,element:r,keyframes:t,preStyleProps:e,postStyleProps:i,duration:n,delay:s,totalTime:n+s,easing:o,subTimeline:a}}var KS=class{_map=new Map;get(t){return this._map.get(t)||[]}append(t,e){let i=this._map.get(t);i||this._map.set(t,i=[]),i.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}};var XAe=1;var JAe=new RegExp(`:enter`,`g`);var t5e=new RegExp(`:leave`,`g`);function FJ(r,t,e,i,n,s=new Map,o=new Map,a,l,c=[]){return new IL().buildKeyframes(r,t,e,i,n,s,o,a,l,c)}var IL=class{buildKeyframes(t,e,i,n,s,o,a,l,c,d=[]){c=c||new KS;let u=new NL(t,e,c,n,s,d,[]);u.options=l;let h=l.delay?Zd(l.delay):0;u.currentTimeline.delayNextStep(h),u.currentTimeline.setStyles([o],null,u.errors,l),Sa(this,i,u);let g=u.timelines.filter(p=>p.containsAnimation());if(g.length&&a.size){let p;for(let y=g.length-1;y>=0;y--){let _=g[y];if(_.element===e){p=_;break}}p&&!p.allowOnlyTimelineStyles()&&p.setStyles([a],null,u.errors,l)}return g.length?g.map(p=>p.buildKeyframes()):[OL(e,[],[],[],0,h,``,!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){let i=e.subInstructions.get(e.element);if(i){let n=e.createSubContext(t.options),s=e.currentTimeline.currentTime,o=this._visitSubInstructions(i,n,n.options);s!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t}visitAnimateRef(t,e){let i=e.createSubContext(t.options);i.transformIntoNewTimeline(),this._applyAnimationRefDelays([t.options,t.animation.options],e,i),this.visitReference(t.animation,i),e.transformIntoNewTimeline(i.currentTimeline.currentTime),e.previousNode=t}_applyAnimationRefDelays(t,e,i){for(let n of t){let s=n?.delay;if(s){let o=typeof s==`number`?s:Zd(Xy(s,n?.params??{},e.errors));i.delayNextStep(o)}}}_visitSubInstructions(t,e,i){let s=e.currentTimeline.currentTime,o=i.duration!=null?Zd(i.duration):null,a=i.delay!=null?Zd(i.delay):null;return o!==0&&t.forEach(l=>{let c=e.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),Sa(this,t.animation,e),e.previousNode=t}visitSequence(t,e){let i=e.subContextCount,n=e,s=t.options;if(s&&(s.params||s.delay)&&(n=e.createSubContext(s),n.transformIntoNewTimeline(),s.delay!=null)){n.previousNode.type==ii.Style&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=MT);let o=Zd(s.delay);n.delayNextStep(o)}t.steps.length&&(t.steps.forEach(o=>Sa(this,o,n)),n.currentTimeline.applyStylesToKeyframe(),n.subContextCount>i&&n.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){let i=[],n=e.currentTimeline.currentTime,s=t.options&&t.options.delay?Zd(t.options.delay):0;t.steps.forEach(o=>{let a=e.createSubContext(t.options);s&&a.delayNextStep(s),Sa(this,o,a),n=Math.max(n,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>e.currentTimeline.mergeTimelineCollectedStyles(o)),e.transformIntoNewTimeline(n),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){let i=t.strValue;return US(e.params?Xy(i,e.params,e.errors):i,e.errors)}else return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){let i=e.currentAnimateTimings=this._visitTiming(t.timings,e),n=e.currentTimeline;i.delay&&(e.incrementTime(i.delay),n.snapshotCurrentStyles());let s=t.style;s.type==ii.Keyframes?this.visitKeyframes(s,e):(e.incrementTime(i.duration),this.visitStyle(s,e),n.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){let i=e.currentTimeline,n=e.currentAnimateTimings;!n&&i.hasCurrentStyleProperties()&&i.forwardFrame();let s=n&&n.easing||t.easing;t.isEmptyStep?i.applyEmptyStep(s):i.setStyles(t.styles,s,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){let i=e.currentAnimateTimings,n=e.currentTimeline.duration,s=i.duration,a=e.createSubContext().currentTimeline;a.easing=i.easing,t.styles.forEach(l=>{let c=l.offset||0;a.forwardTime(c*s),a.setStyles(l.styles,l.easing,e.errors,e.options),a.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(a),e.transformIntoNewTimeline(n+s),e.previousNode=t}visitQuery(t,e){let i=e.currentTimeline.currentTime,n=t.options||{},s=n.delay?Zd(n.delay):0;s&&(e.previousNode.type===ii.Style||i==0&&e.currentTimeline.hasCurrentStyleProperties())&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=MT);let o=i,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!n.optional,e.errors);e.currentQueryTotal=a.length;let l=null;a.forEach((c,d)=>{e.currentQueryIndex=d;let u=e.createSubContext(t.options,c);s&&u.delayNextStep(s),c===e.element&&(l=u.currentTimeline),Sa(this,t.animation,u),u.currentTimeline.applyStylesToKeyframe();let h=u.currentTimeline.currentTime;o=Math.max(o,h)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(o),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){let i=e.parentContext,n=e.currentTimeline,s=t.timings,o=Math.abs(s.duration),a=o*(e.currentQueryTotal-1),l=o*e.currentQueryIndex;switch(s.duration<0?`reverse`:s.easing){case`reverse`:l=a-l;break;case`full`:l=i.currentStaggerTime;break}let d=e.currentTimeline;l&&d.delayNextStep(l);let u=d.currentTime;Sa(this,t.animation,e),e.previousNode=t,i.currentStaggerTime=n.currentTime-u+(n.startTime-i.currentTimeline.startTime)}};var MT={};var NL=class r{_driver;element;subInstructions;_enterClassName;_leaveClassName;errors;timelines;parentContext=null;currentTimeline;currentAnimateTimings=null;previousNode=MT;subContextCount=0;options={};currentQueryIndex=0;currentQueryTotal=0;currentStaggerTime=0;constructor(t,e,i,n,s,o,a,l){this._driver=t,this.element=e,this.subInstructions=i,this._enterClassName=n,this._leaveClassName=s,this.errors=o,this.timelines=a,this.currentTimeline=l||new AT(this._driver,e,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;let i=t,n=this.options;i.duration!=null&&(n.duration=Zd(i.duration)),i.delay!=null&&(n.delay=Zd(i.delay));let s=i.params;if(s){let o=n.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!e||!o.hasOwnProperty(a))&&(o[a]=Xy(s[a],o,this.errors))})}}_copyOptions(){let t={};if(this.options){let e=this.options.params;if(e){let i=t.params={};Object.keys(e).forEach(n=>{i[n]=e[n]})}}return t}createSubContext(t=null,e,i){let n=e||this.element,s=new r(this._driver,n,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(n,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(t),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(t){return this.previousNode=MT,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,i){let n={duration:e??t.duration,delay:this.currentTimeline.currentTime+(i??0)+t.delay,easing:``},s=new DL(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,n,t.stretchStartingKeyframe);return this.timelines.push(s),n}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,i,n,s,o){let a=[];if(n&&a.push(this.element),t.length>0){t=t.replace(JAe,`.`+this._enterClassName),t=t.replace(t5e,`.`+this._leaveClassName);let l=i!=1,c=this._driver.query(this.element,t,l);i!==0&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&a.length==0&&o.push(sJ(e)),a}};var AT=class r{_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(t,e,i,n){this._driver=t,this.element=e,this.startTime=i,this._elementTimelineStylesLookup=n,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(t){let e=this._keyframes.size===1&&this._pendingStyles.size;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new r(this._driver,t,e||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+=XAe,this._loadKeyframe()}forwardTime(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles.set(t,e),this._globalTimelineStyles.set(t,e),this._styleSummary.set(t,{time:this.currentTime,value:e})}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&this._previousKeyframe.set(`easing`,t);for(let[e,i]of this._globalTimelineStyles)this._backFill.set(e,i||xl),this._currentKeyframe.set(e,xl);this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,i,n){e&&this._previousKeyframe.set(`easing`,e);let s=n&&n.params||{},o=i5e(t,this._globalTimelineStyles);for(let[a,l]of o){let c=Xy(l,s,i);this._pendingStyles.set(a,c),this._localTimelineStyles.has(a)||this._backFill.set(a,this._globalTimelineStyles.get(a)??xl),this._updateStyle(a,c)}}applyStylesToKeyframe(){this._pendingStyles.size!=0&&(this._pendingStyles.forEach((t,e)=>{this._currentKeyframe.set(e,t)}),this._pendingStyles.clear(),this._localTimelineStyles.forEach((t,e)=>{this._currentKeyframe.has(e)||this._currentKeyframe.set(e,t)}))}snapshotCurrentStyles(){for(let[t,e]of this._localTimelineStyles)this._pendingStyles.set(t,e),this._updateStyle(t,e)}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){let t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){t._styleSummary.forEach((e,i)=>{let n=this._styleSummary.get(i);(!n||e.time>n.time)&&this._updateStyle(i,e.value)})}buildKeyframes(){this.applyStylesToKeyframe();let t=new Set,e=new Set,i=this._keyframes.size===1&&this.duration===0,n=[];this._keyframes.forEach((a,l)=>{let c=new Map([...this._backFill,...a]);c.forEach((d,u)=>{d===cx?t.add(u):d===xl&&e.add(u)}),i||c.set(`offset`,l/this.duration),n.push(c)});let s=[...t.values()],o=[...e.values()];if(i){let a=n[0],l=new Map(a);a.set(`offset`,0),l.set(`offset`,1),n=[a,l]}return OL(this.element,n,s,o,this.duration,this.startTime,this.easing,!1)}};var DL=class extends AT{keyframes;preStyleProps;postStyleProps;_stretchStartingKeyframe;timings;constructor(t,e,i,n,s,o,a=!1){super(t,e,o.delay),this.keyframes=i,this.preStyleProps=n,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:i,easing:n}=this.timings;if(this._stretchStartingKeyframe&&e){let s=[],o=i+e,a=e/o,l=new Map(t[0]);l.set(`offset`,0),s.push(l);let c=new Map(t[0]);c.set(`offset`,NJ(a)),s.push(c);let d=t.length-1;for(let u=1;u<=d;u++){let h=new Map(t[u]),g=h.get(`offset`),p=e+g*i;h.set(`offset`,NJ(p/o)),s.push(h)}i=o,e=0,n=``,t=s}return OL(this.element,t,this.preStyleProps,this.postStyleProps,i,e,n,!0)}};function NJ(r,t=3){let e=Math.pow(10,t-1);return Math.round(r*e)/e}function i5e(r,t){let e=new Map,i;return r.forEach(n=>{if(n===`*`){i??=t.keys();for(let s of i)e.set(s,xl)}else for(let[s,o]of n)e.set(s,o)}),e}function DJ(r,t,e,i,n,s,o,a,l,c,d,u,h){return{type:0,element:r,triggerName:t,isRemovalTransition:n,fromState:e,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:d,totalTime:u,errors:h}}var _L={};var RT=class{_triggerName;ast;_stateStyles;constructor(t,e,i){this._triggerName=t,this.ast=e,this._stateStyles=i}match(t,e,i,n){return n5e(this.ast.matchers,t,e,i,n)}buildStyles(t,e,i){let n=this._stateStyles.get(`*`);return t!==void 0&&(n=this._stateStyles.get(t?.toString())||n),n?n.buildStyles(e,i):new Map}build(t,e,i,n,s,o,a,l,c,d){let u=[],h=this.ast.options&&this.ast.options.params||_L,g=a&&a.params||_L,p=this.buildStyles(i,g,u),y=l&&l.params||_L,_=this.buildStyles(n,y,u),w=new Set,E=new Map,k=new Map,z=n===`void`,G={params:LJ(y,h),delay:this.ast.options?.delay},Q=d?[]:FJ(t,e,this.ast.animation,s,o,p,_,G,c,u),Y=0;return Q.forEach(ne=>{Y=Math.max(ne.duration+ne.delay,Y)}),u.length?DJ(e,this._triggerName,i,n,z,p,_,[],[],E,k,Y,u):(Q.forEach(ne=>{let ae=ne.element,me=ba(E,ae,new Set);ne.preStyleProps.forEach(Ke=>me.add(Ke));let Ee=ba(k,ae,new Set);ne.postStyleProps.forEach(Ke=>Ee.add(Ke)),ae!==e&&w.add(ae)}),DJ(e,this._triggerName,i,n,z,p,_,Q,[...w.values()],E,k,Y))}};function n5e(r,t,e,i,n){return r.some(s=>s(t,e,i,n))}function LJ(r$37,t){let e=r({},t);return Object.entries(r$37).forEach(([i,n])=>{n!=null&&(e[i]=n)}),e}var kL=class{styles;defaultParams;normalizer;constructor(t,e,i){this.styles=t,this.defaultParams=e,this.normalizer=i}buildStyles(t,e){let i=new Map,n=LJ(t,this.defaultParams);return this.styles.styles.forEach(s=>{typeof s!=`string`&&s.forEach((o,a)=>{o&&(o=Xy(o,n,e));let l=this.normalizer.normalizePropertyName(a,e);o=this.normalizer.normalizeStyleValue(a,l,o,e),i.set(a,o)})}),i}};function r5e(r,t,e){return new EL(r,t,e)}var EL=class{name;ast;_normalizer;transitionFactories=[];fallbackTransition;states=new Map;constructor(t,e,i){this.name=t,this.ast=e,this._normalizer=i,e.states.forEach(n=>{let s=n.options&&n.options.params||{};this.states.set(n.name,new kL(n.style,s,i))}),kJ(this.states,`true`,`1`),kJ(this.states,`false`,`0`),e.transitions.forEach(n=>{this.transitionFactories.push(new RT(t,n,this.states))}),this.fallbackTransition=s5e(t,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,i,n){return this.transitionFactories.find(o=>o.match(t,e,i,n))||null}matchStyles(t,e,i){return this.fallbackTransition.buildStyles(t,e,i)}};function s5e(r,t,e){let i=[(o,a)=>!0],n={type:ii.Sequence,steps:[],options:null};return new RT(r,{type:ii.Transition,animation:n,matchers:i,options:null,queryCount:0,depCount:0},t)}function kJ(r,t,e){r.has(t)?r.has(e)||r.set(e,r.get(t)):r.has(e)&&r.set(t,r.get(e))}var o5e=new KS;var TL=class{bodyNode;_driver;_normalizer;_animations=new Map;_playersById=new Map;players=[];constructor(t,e,i){this.bodyNode=t,this._driver=e,this._normalizer=i}register(t,e){let i=[],s=OJ(this._driver,e,i,[]);if(i.length)throw cJ(i);this._animations.set(t,s)}_buildPlayer(t,e,i){let n=t.element,s=dL(this._normalizer,t.keyframes,e,i);return this._driver.animate(n,s,t.duration,t.delay,t.easing,[],!0)}create(t,e,i={}){let n=[],s=this._animations.get(t),o,a=new Map;if(s?(o=FJ(this._driver,e,s,fL,bT,new Map,new Map,i,o5e,n),o.forEach(d=>{let u=ba(a,d.element,new Map);d.postStyleProps.forEach(h=>u.set(h,null))})):(n.push(dJ()),o=[]),n.length)throw uJ(n);a.forEach((d,u)=>{d.forEach((h,g)=>{d.set(g,this._driver.computeStyle(u,g,xl))})});let c=Sh(o.map(d=>{let u=a.get(d.element);return this._buildPlayer(d,new Map,u)}));return this._playersById.set(t,c),c.onDestroy(()=>this.destroy(t)),this.players.push(c),c}destroy(t){let e=this._getPlayer(t);e.destroy(),this._playersById.delete(t);let i=this.players.indexOf(e);i>=0&&this.players.splice(i,1)}_getPlayer(t){let e=this._playersById.get(t);if(!e)throw hJ(t);return e}listen(t,e,i,n){let s=_T(e,``,``,``);return yT(this._getPlayer(t),i,s,n),()=>{}}command(t,e,i,n){if(i==`register`){this.register(t,n[0]);return}if(i==`create`){let o=n[0]||{};this.create(t,e,o);return}let s=this._getPlayer(t);switch(i){case`play`:s.play();break;case`pause`:s.pause();break;case`reset`:s.reset();break;case`restart`:s.restart();break;case`finish`:s.finish();break;case`init`:s.init();break;case`setPosition`:s.setPosition(parseFloat(n[0]));break;case`destroy`:this.destroy(t);break}}};var EJ=`ng-animate-queued`;var a5e=`.ng-animate-queued`;var vL=`ng-animate-disabled`;var l5e=`.ng-animate-disabled`;var c5e=`ng-star-inserted`;var d5e=`.ng-star-inserted`;var u5e=[];var VJ={namespaceId:``,setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1};var h5e={namespaceId:``,setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};var Vc=`__ng_removed`;var YS=class{namespaceId;value;options;get params(){return this.options.params}constructor(t$1,e=``){this.namespaceId=e;let i=t$1&&t$1.hasOwnProperty(`value`),n=i?t$1.value:t$1;if(this.value=p5e(n),i){let s=t$1,{value:o}=s,a=t(s,[`value`]);this.options=a}else this.options={};this.options.params||(this.options.params={})}absorbOptions(t){let e=t.params;if(e){let i=this.options.params;Object.keys(e).forEach(n=>{i[n]??(i[n]=e[n])})}}};var WS=`void`;var bL=new YS(WS);var ML=class{id;hostElement;_engine;players=[];_triggers=new Map;_queue=[];_elementListeners=new Map;_hostClassName;constructor(t,e,i){this.id=t,this.hostElement=e,this._engine=i,this._hostClassName=`ng-tns-`+t,Bl(e,this._hostClassName)}listen(t,e,i,n){if(!this._triggers.has(e))throw gJ(i,e);if(i==null||i.length==0)throw pJ(e);if(!f5e(i))throw fJ(i,e);let s=ba(this._elementListeners,t,[]),o={name:e,phase:i,callback:n};s.push(o);let a=ba(this._engine.statesByElement,t,new Map);return a.has(e)||(Bl(t,qS),Bl(t,qS+`-`+e),a.set(e,bL)),()=>{this._engine.afterFlush(()=>{let l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers.has(e)||a.delete(e)})}}register(t,e){return this._triggers.has(t)?!1:(this._triggers.set(t,e),!0)}_getTrigger(t){let e=this._triggers.get(t);if(!e)throw mJ(t);return e}trigger(t,e,i,n=!0){let s=this._getTrigger(e),o=new QS(this.id,e,t),a=this._engine.statesByElement.get(t);a||(Bl(t,qS),Bl(t,qS+`-`+e),this._engine.statesByElement.set(t,a=new Map));let l=a.get(e),c=new YS(i,this.id);if(!(i&&i.hasOwnProperty(`value`))&&l&&c.absorbOptions(l.options),a.set(e,c),l||(l=bL),!(c.value===WS)&&l.value===c.value){if(!y5e(l.params,c.params)){let y=[],_=s.matchStyles(l.value,l.params,y),w=s.matchStyles(c.value,c.params,y);y.length?this._engine.reportError(y):this._engine.afterFlush(()=>{xp(t,_),Lc(t,w)})}return}let h=ba(this._engine.playersByElement,t,[]);h.forEach(y=>{y.namespaceId==this.id&&y.triggerName==e&&y.queued&&y.destroy()});let g=s.matchTransition(l.value,c.value,t,c.params),p=!1;if(!g){if(!n)return;g=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:g,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(Bl(t,EJ),o.onStart(()=>{Zy(t,EJ)})),o.onDone(()=>{let y=this.players.indexOf(o);y>=0&&this.players.splice(y,1);let _=this._engine.playersByElement.get(t);if(_){let w=_.indexOf(o);w>=0&&_.splice(w,1)}}),this.players.push(o),h.push(o),o}deregister(t){this._triggers.delete(t),this._engine.statesByElement.forEach(e=>e.delete(t)),this._elementListeners.forEach((e,i)=>{this._elementListeners.set(i,e.filter(n=>n.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);let e=this._engine.playersByElement.get(t);e&&(e.forEach(i=>i.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){let i=this._engine.driver.query(t,GS,!0);i.forEach(n=>{if(n[Vc])return;let s=this._engine.fetchNamespacesByElement(n);s.size?s.forEach(o=>o.triggerLeaveAnimation(n,e,!1,!0)):this.clearElementCache(n)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(n=>this.clearElementCache(n)))}triggerLeaveAnimation(t,e,i,n){let s=this._engine.statesByElement.get(t),o=new Map;if(s){let a=[];if(s.forEach((l,c)=>{if(o.set(c,l.value),this._triggers.has(c)){let d=this.trigger(t,c,WS,n);d&&a.push(d)}}),a.length)return this._engine.markElementAsRemoved(this.id,t,!0,e,o),i&&Sh(a).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){let e=this._elementListeners.get(t),i=this._engine.statesByElement.get(t);if(e&&i){let n=new Set;e.forEach(s=>{let o=s.name;if(n.has(o))return;n.add(o);let l=this._triggers.get(o).fallbackTransition,c=i.get(o)||bL,d=new YS(WS),u=new QS(this.id,o,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:o,transition:l,fromState:c,toState:d,player:u,isFallbackTransition:!0})})}}removeNode(t,e){let i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let n=!1;if(i.totalAnimations){let s=i.players.length?i.playersByQueriedElement.get(t):[];if(s&&s.length)n=!0;else{let o=t;for(;o=o.parentNode;)if(i.statesByElement.get(o)){n=!0;break}}}if(this.prepareLeaveAnimationListeners(t),n)i.markElementAsRemoved(this.id,t,!1,e);else{let s=t[Vc];(!s||s===VJ)&&(i.afterFlush(()=>this.clearElementCache(t)),i.destroyInnerAnimations(t),i._onRemovalComplete(t,e))}}insertNode(t,e){Bl(t,this._hostClassName)}drainQueuedTransitions(t){let e=[];return this._queue.forEach(i=>{let n=i.player;if(n.destroyed)return;let s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){let l=_T(s,i.triggerName,i.fromState.value,i.toState.value);l._data=t,yT(i.player,a.phase,l,a.callback)}}),n.markedForDestroy?this._engine.afterFlush(()=>{n.destroy()}):e.push(i)}),this._queue=[],e.sort((i,n)=>{let s=i.transition.ast.depCount,o=n.transition.ast.depCount;return s==0||o==0?s-o:this._engine.driver.containsElement(i.element,n.element)?1:-1})}destroy(t){this.players.forEach(e=>e.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}};var AL=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=(t,e)=>{};_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}constructor(t,e,i){this.bodyNode=t,this.driver=e,this._normalizer=i}get queuedPlayers(){let t=[];return this._namespaceList.forEach(e=>{e.players.forEach(i=>{i.queued&&t.push(i)})}),t}createNamespace(t,e){let i=new ML(t,e,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,e)?this._balanceNamespaceList(i,e):(this.newHostElements.set(e,i),this.collectEnterElement(e)),this._namespaceLookup[t]=i}_balanceNamespaceList(t,e){let i=this._namespaceList,n=this.namespacesByHostElement;if(i.length-1>=0){let o=!1,a=this.driver.getParentElement(e);for(;a;){let l=n.get(a);if(l){let c=i.indexOf(l);i.splice(c+1,0,t),o=!0;break}a=this.driver.getParentElement(a)}o||i.unshift(t)}else i.push(t);return n.set(e,t),t}register(t,e){let i=this._namespaceLookup[t];return i||(i=this.createNamespace(t,e)),i}registerTrigger(t,e,i){let n=this._namespaceLookup[t];n&&n.register(e,i)&&this.totalAnimations++}destroy(t,e){t&&(this.afterFlush(()=>{}),this.afterFlushAnimationsDone(()=>{let i=this._fetchNamespace(t);this.namespacesByHostElement.delete(i.hostElement);let n=this._namespaceList.indexOf(i);n>=0&&this._namespaceList.splice(n,1),i.destroy(e),delete this._namespaceLookup[t]}))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){let e=new Set,i=this.statesByElement.get(t);if(i){for(let n of i.values())if(n.namespaceId){let s=this._fetchNamespace(n.namespaceId);s&&e.add(s)}}return e}trigger(t,e,i,n){if(DT(e)){let s=this._fetchNamespace(t);if(s)return s.trigger(e,i,n),!0}return!1}insertNode(t,e,i,n){if(!DT(e))return;let s=e[Vc];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;let o=this.collectedLeaveElements.indexOf(e);o>=0&&this.collectedLeaveElements.splice(o,1)}if(t){let o=this._fetchNamespace(t);o&&o.insertNode(e,i)}n&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Bl(t,vL)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Zy(t,vL))}removeNode(t,e,i){if(DT(e)){let n=t?this._fetchNamespace(t):null;n?n.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i);let s=this.namespacesByHostElement.get(e);s&&s.id!==t&&s.removeNode(e,i)}else this._onRemovalComplete(e,i)}markElementAsRemoved(t,e,i,n,s){this.collectedLeaveElements.push(e),e[Vc]={namespaceId:t,setForRemoval:n,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(t,e,i,n,s){return DT(e)?this._fetchNamespace(t).listen(e,i,n,s):()=>{}}_buildInstruction(t,e,i,n,s){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,i,n,t.fromState.options,t.toState.options,e,s)}destroyInnerAnimations(t){let e=this.driver.query(t,GS,!0);e.forEach(i=>this.destroyActiveAnimationsForElement(i)),this.playersByQueriedElement.size!=0&&(e=this.driver.query(t,ST,!0),e.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(t){let e=this.playersByElement.get(t);e&&e.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(t){let e=this.playersByQueriedElement.get(t);e&&e.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return Sh(this.players).onDone(()=>t());t()})}processLeaveNode(t){let e=t[Vc];if(e&&e.setForRemoval){if(t[Vc]=VJ,e.namespaceId){this.destroyInnerAnimations(t);let i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}t.classList?.contains(vL)&&this.markElementAsDisabled(t,!1),this.driver.query(t,l5e,!0).forEach(i=>{this.markElementAsDisabled(i,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,n)=>this._balanceNamespaceList(i,n)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;ii()),this._flushFns=[],this._whenQuietFns.length){let i=this._whenQuietFns;this._whenQuietFns=[],e.length?Sh(e).onDone(()=>{i.forEach(n=>n())}):i.forEach(n=>n())}}reportError(t){throw xJ(t)}_flushAnimations(t,e){let i=new KS,n=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,d=new Set;this.disabledNodes.forEach(Ye=>{d.add(Ye);let Ze=this.driver.query(Ye,a5e,!0);for(let xt=0;xt{let xt=fL+y++;p.set(Ze,xt),Ye.forEach(Mt=>Bl(Mt,xt))});let _=[],w=new Set,E=new Set;for(let Ye=0;Yew.add(Mt)):E.add(Ze))}let k=new Map,z=AJ(h,Array.from(w));z.forEach((Ye,Ze)=>{let xt=bT+y++;k.set(Ze,xt),Ye.forEach(Mt=>Bl(Mt,xt))}),t.push(()=>{g.forEach((Ye,Ze)=>{let xt=p.get(Ze);Ye.forEach(Mt=>Zy(Mt,xt))}),z.forEach((Ye,Ze)=>{let xt=k.get(Ze);Ye.forEach(Mt=>Zy(Mt,xt))}),_.forEach(Ye=>{this.processLeaveNode(Ye)})});let G=[],Q=[];for(let Ye=this._namespaceList.length-1;Ye>=0;Ye--)this._namespaceList[Ye].drainQueuedTransitions(e).forEach(xt=>{let Mt=xt.player,zn=xt.element;if(G.push(Mt),this.collectedEnterElements.length){let nt=zn[Vc];if(nt&&nt.setForMove){if(nt.previousTriggersValues&&nt.previousTriggersValues.has(xt.triggerName)){let $c=nt.previousTriggersValues.get(xt.triggerName),so=this.statesByElement.get(xt.element);if(so&&so.has(xt.triggerName)){let oo=so.get(xt.triggerName);oo.value=$c,so.set(xt.triggerName,oo)}}Mt.destroy();return}}let is=!u||!this.driver.containsElement(u,zn),ys=k.get(zn),il=p.get(zn),Vi=this._buildInstruction(xt,i,il,ys,is);if(Vi.errors&&Vi.errors.length){Q.push(Vi);return}if(is){Mt.onStart(()=>xp(zn,Vi.fromStyles)),Mt.onDestroy(()=>Lc(zn,Vi.toStyles)),n.push(Mt);return}if(xt.isFallbackTransition){Mt.onStart(()=>xp(zn,Vi.fromStyles)),Mt.onDestroy(()=>Lc(zn,Vi.toStyles)),n.push(Mt);return}let e_=[];Vi.timelines.forEach(nt=>{nt.stretchStartingKeyframe=!0,this.disabledNodes.has(nt.element)||e_.push(nt)}),Vi.timelines=e_,i.append(zn,Vi.timelines);let t_={instruction:Vi,player:Mt,element:zn};o.push(t_),Vi.queriedElements.forEach(nt=>ba(a,nt,[]).push(Mt)),Vi.preStyleProps.forEach((nt,$c)=>{if(nt.size){let so=l.get($c);so||l.set($c,so=new Set),nt.forEach((oo,zm)=>so.add(zm))}}),Vi.postStyleProps.forEach((nt,$c)=>{let so=c.get($c);so||c.set($c,so=new Set),nt.forEach((oo,zm)=>so.add(zm))})});if(Q.length){let Ye=[];Q.forEach(Ze=>{Ye.push(yJ(Ze.triggerName,Ze.errors))}),G.forEach(Ze=>Ze.destroy()),this.reportError(Ye)}let Y=new Map,ne=new Map;o.forEach(Ye=>{let Ze=Ye.element;i.has(Ze)&&(ne.set(Ze,Ze),this._beforeAnimationBuild(Ye.player.namespaceId,Ye.instruction,Y))}),n.forEach(Ye=>{let Ze=Ye.element;this._getPreviousPlayers(Ze,!1,Ye.namespaceId,Ye.triggerName,null).forEach(Mt=>{ba(Y,Ze,[]).push(Mt),Mt.destroy()})});let ae=_.filter(Ye=>RJ(Ye,l,c)),me=new Map;MJ(me,this.driver,E,c,xl).forEach(Ye=>{RJ(Ye,l,c)&&ae.push(Ye)});let Ke=new Map;g.forEach((Ye,Ze)=>{MJ(Ke,this.driver,new Set(Ye),l,cx)}),ae.forEach(Ye=>{let Ze=me.get(Ye),xt=Ke.get(Ye);me.set(Ye,new Map([...Ze?.entries()??[],...xt?.entries()??[]]))});let ot=[],_i=[],Li={};o.forEach(Ye=>{let{element:Ze,player:xt,instruction:Mt}=Ye;if(i.has(Ze)){if(d.has(Ze)){xt.onDestroy(()=>Lc(Ze,Mt.toStyles)),xt.disabled=!0,xt.overrideTotalTime(Mt.totalTime),n.push(xt);return}let zn=Li;if(ne.size>1){let ys=Ze,il=[];for(;ys=ys.parentNode;){let Vi=ne.get(ys);if(Vi){zn=Vi;break}il.push(ys)}il.forEach(Vi=>ne.set(Vi,zn))}let is=this._buildAnimation(xt.namespaceId,Mt,Y,s,Ke,me);if(xt.setRealPlayer(is),zn===Li)ot.push(xt);else{let ys=this.playersByElement.get(zn);ys&&ys.length&&(xt.parentPlayer=Sh(ys)),n.push(xt)}}else xp(Ze,Mt.fromStyles),xt.onDestroy(()=>Lc(Ze,Mt.toStyles)),_i.push(xt),d.has(Ze)&&n.push(xt)}),_i.forEach(Ye=>{let Ze=s.get(Ye.element);if(Ze&&Ze.length){let xt=Sh(Ze);Ye.setRealPlayer(xt)}}),n.forEach(Ye=>{Ye.parentPlayer?Ye.syncPlayerEvents(Ye.parentPlayer):Ye.destroy()});for(let Ye=0;Ye<_.length;Ye++){let Ze=_[Ye],xt=Ze[Vc];if(Zy(Ze,bT),xt&&xt.hasAnimation)continue;let Mt=[];if(a.size){let is=a.get(Ze);is&&is.length&&Mt.push(...is);let ys=this.driver.query(Ze,ST,!0);for(let il=0;il!is.destroyed);zn.length?m5e(this,Ze,zn):this.processLeaveNode(Ze)}return _.length=0,ot.forEach(Ye=>{this.players.push(Ye),Ye.onDone(()=>{Ye.destroy();let Ze=this.players.indexOf(Ye);this.players.splice(Ze,1)}),Ye.play()}),ot}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,i,n,s){let o=[];if(e){let a=this.playersByQueriedElement.get(t);a&&(o=a)}else{let a=this.playersByElement.get(t);if(a){let l=!s||s==WS;a.forEach(c=>{c.queued||!l&&c.triggerName!=n||o.push(c)})}}return(i||n)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||n&&n!=a.triggerName))),o}_beforeAnimationBuild(t,e,i){let n=e.triggerName,s=e.element,o=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:n;for(let l of e.timelines){let c=l.element,d=c!==s,u=ba(i,c,[]);this._getPreviousPlayers(c,d,o,a,e.toState).forEach(g=>{let p=g.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),g.destroy(),u.push(g)})}xp(s,e.fromStyles)}_buildAnimation(t,e,i,n,s,o){let a=e.triggerName,l=e.element,c=[],d=new Set,u=new Set,h=e.timelines.map(p=>{let y=p.element;d.add(y);let _=y[Vc];if(_&&_.removedBeforeQueried)return new ud(p.duration,p.delay);let w=y!==l,E=x5e((i.get(y)||u5e).map(Y=>Y.getRealPlayer())).filter(Y=>{let ne=Y;return ne.element?ne.element===y:!1}),k=s.get(y),z=o.get(y),G=dL(this._normalizer,p.keyframes,k,z),Q=this._buildPlayer(p,G,E);if(p.subTimeline&&n&&u.add(y),w){let Y=new QS(t,a,y);Y.setRealPlayer(Q),c.push(Y)}return Q});c.forEach(p=>{ba(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>g5e(this.playersByQueriedElement,p.element,p))}),d.forEach(p=>Bl(p,mL));let g=Sh(h);return g.onDestroy(()=>{d.forEach(p=>Zy(p,mL)),Lc(l,e.toStyles)}),u.forEach(p=>{ba(n,p,[]).push(g)}),g}_buildPlayer(t,e,i){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,i):new ud(t.duration,t.delay)}};var QS=class{namespaceId;triggerName;element;_player=new ud;_containsRealPlayer=!1;_queuedCallbacks=new Map;destroyed=!1;parentPlayer=null;markedForDestroy=!1;disabled=!1;queued=!0;totalTime=0;constructor(t,e,i){this.namespaceId=t,this.triggerName=e,this.element=i}setRealPlayer(t){this._containsRealPlayer||(this._player=t,this._queuedCallbacks.forEach((e,i)=>{e.forEach(n=>yT(t,i,void 0,n))}),this._queuedCallbacks.clear(),this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){let e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback(`start`)),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){ba(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent(`done`,t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent(`start`,t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent(`destroy`,t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){let e=this._player;e.triggerCallback&&e.triggerCallback(t)}};function g5e(r,t,e){let i=r.get(t);if(i){if(i.length){let n=i.indexOf(e);i.splice(n,1)}i.length==0&&r.delete(t)}return i}function p5e(r){return r??null}function DT(r){return r&&r.nodeType===1}function f5e(r){return r==`start`||r==`done`}function TJ(r,t){let e=r.style.display;return r.style.display=t??`none`,e}function MJ(r,t,e,i,n){let s=[];e.forEach(l=>s.push(TJ(l)));let o=[];i.forEach((l,c)=>{let d=new Map;l.forEach(u=>{let h=t.computeStyle(c,u,n);d.set(u,h),(!h||h.length==0)&&(c[Vc]=h5e,o.push(c))}),r.set(c,d)});let a=0;return e.forEach(l=>TJ(l,s[a++])),o}function AJ(r,t){let e=new Map;if(r.forEach(a=>e.set(a,[])),t.length==0)return e;let i=1,n=new Set(t),s=new Map;function o(a){if(!a)return i;let l=s.get(a);if(l)return l;let c=a.parentNode;return e.has(c)?l=c:n.has(c)?l=i:l=o(c),s.set(a,l),l}return t.forEach(a=>{let l=o(a);l!==i&&e.get(l).push(a)}),e}function Bl(r,t){r.classList?.add(t)}function Zy(r,t){r.classList?.remove(t)}function m5e(r,t,e){Sh(e).onDone(()=>r.processLeaveNode(t))}function x5e(r){let t=[];return $J(r,t),t}function $J(r,t){for(let e=0;en.add(s)):t.set(r,i),e.delete(r),!0}var Jy=class{_driver;_normalizer;_transitionEngine;_timelineEngine;_triggerCache={};onRemovalComplete=(t,e)=>{};constructor(t,e,i){this._driver=e,this._normalizer=i,this._transitionEngine=new AL(t.body,e,i),this._timelineEngine=new TL(t.body,e,i),this._transitionEngine.onRemovalComplete=(n,s)=>this.onRemovalComplete(n,s)}registerTrigger(t,e,i,n,s){let o=t+`-`+n,a=this._triggerCache[o];if(!a){let l=[],d=OJ(this._driver,s,l,[]);if(l.length)throw lJ(n,l);a=r5e(n,d,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,n,a)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,i,n){this._transitionEngine.insertNode(t,e,i,n)}onRemove(t,e,i){this._transitionEngine.removeNode(t,e,i)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,i,n){if(i.charAt(0)==`@`){let[s,o]=uL(i),a=n;this._timelineEngine.command(s,e,o,a)}else this._transitionEngine.trigger(t,e,i,n)}listen(t,e,i,n,s){if(i.charAt(0)==`@`){let[o,a]=uL(i);return this._timelineEngine.listen(o,e,a,s)}return this._transitionEngine.listen(t,e,i,n,s)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return[...this._transitionEngine.players,...this._timelineEngine.players]}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}afterFlushAnimationsDone(t){this._transitionEngine.afterFlushAnimationsDone(t)}};function _5e(r,t){let e=null,i=null;return Array.isArray(t)&&t.length?(e=SL(t[0]),t.length>1&&(i=SL(t[t.length-1]))):t instanceof Map&&(e=SL(t)),e||i?new v5e(r,e,i):null}var v5e=(()=>{class r{_element;_startStyles;_endStyles;static initialStylesByElement=new WeakMap;_state=0;_initialStyles;constructor(e,i,n){this._element=e,this._startStyles=i,this._endStyles=n;let s=r.initialStylesByElement.get(e);s||r.initialStylesByElement.set(e,s=new Map),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Lc(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Lc(this._element,this._initialStyles),this._endStyles&&(Lc(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(r.initialStylesByElement.delete(this._element),this._startStyles&&(xp(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(xp(this._element,this._endStyles),this._endStyles=null),Lc(this._element,this._initialStyles),this._state=3)}}return r})();function SL(r){let t=null;return r.forEach((e,i)=>{b5e(i)&&(t=t||new Map,t.set(i,e))}),t}function b5e(r){return r===`display`||r===`position`}var PT=class{element;keyframes;options;_specialStyles;_onDoneFns=[];_onStartFns=[];_onDestroyFns=[];_duration;_delay;_initialized=!1;_finished=!1;_started=!1;_destroyed=!1;_finalKeyframe;_originalOnDoneFns=[];_originalOnStartFns=[];domPlayer=null;time=0;parentPlayer=null;currentSnapshot=new Map;constructor(t,e,i,n){this.element=t,this.keyframes=e,this.options=i,this._specialStyles=n,this._duration=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer()&&this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return this.domPlayer;this._initialized=!0;let t=this.keyframes,e=this._triggerWebAnimation(this.element,t,this.options);if(!e)return this._onFinish(),null;this.domPlayer=e,this._finalKeyframe=t.length?t[t.length-1]:new Map;let i=()=>this._onFinish();return e.addEventListener(`finish`,i),this.onDestroy(()=>{e.removeEventListener(`finish`,i)}),e}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer?.pause()}_convertKeyframesToObject(t){let e=[];return t.forEach(i=>{e.push(Object.fromEntries(i))}),e}_triggerWebAnimation(t,e,i){let n=this._convertKeyframesToObject(e);try{return t.animate(n,i)}catch{return null}}onStart(t){this._originalOnStartFns.push(t),this._onStartFns.push(t)}onDone(t){this._originalOnDoneFns.push(t),this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){let t=this._buildPlayer();t&&(this.hasStarted()||(this._onStartFns.forEach(e=>e()),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),t.play())}pause(){this.init(),this.domPlayer?.pause()}finish(){this.init(),this.domPlayer&&(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?.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(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer||this.init(),this.domPlayer&&(this.domPlayer.currentTime=t*this.time)}getPosition(){return this.domPlayer?+(this.domPlayer.currentTime??0)/this.time:this._initialized?1:0}get totalTime(){return this._delay+this._duration}beforeDestroy(){let t=new Map;this.hasStarted()&&this._finalKeyframe.forEach((i,n)=>{n!==`offset`&&t.set(n,this._finished?i:CT(this.element,n))}),this.currentSnapshot=t}triggerCallback(t){let e=t===`start`?this._onStartFns:this._onDoneFns;e.forEach(i=>i()),e.length=0}};var OT=class{validateStyleProperty(t){return!0}validateAnimatableStyleProperty(t){return!0}containsElement(t,e){return hL(t,e)}getParentElement(t){return vT(t)}query(t,e,i){return gL(t,e,i)}computeStyle(t,e,i){return CT(t,e)}animate(t,e,i,n,s,o=[]){let l={duration:i,delay:n,fill:n==0?`both`:`forwards`};s&&(l.easing=s);let c=new Map,d=o.filter(g=>g instanceof PT);SJ(i,n)&&d.forEach(g=>{g.currentSnapshot.forEach((p,y)=>c.set(y,p))});let u=vJ(e).map(g=>new Map(g));u=wJ(t,u,c);let h=_5e(t,u);return new PT(t,u,l,h)}};var kT=`@`;var zJ=`@.disabled`;var FT=class{namespaceId;delegate;engine;_onDestroy;ɵtype=0;constructor(t,e,i,n){this.namespaceId=t,this.delegate=e,this.engine=i,this._onDestroy=n}get data(){return this.delegate.data}destroyNode(t){this.delegate.destroyNode?.(t)}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.engine.afterFlushAnimationsDone(()=>{queueMicrotask(()=>{this.delegate.destroy()})}),this._onDestroy?.()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,i,n=!0){this.delegate.insertBefore(t,e,i),this.engine.onInsert(this.namespaceId,e,t,n)}removeChild(t,e,i,n){if(n){this.delegate.removeChild(t,e,i,n);return}this.parentNode(e)&&this.engine.onRemove(this.namespaceId,e,this.delegate)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,i,n){this.delegate.setAttribute(t,e,i,n)}removeAttribute(t,e,i){this.delegate.removeAttribute(t,e,i)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,i,n){this.delegate.setStyle(t,e,i,n)}removeStyle(t,e,i){this.delegate.removeStyle(t,e,i)}setProperty(t,e,i){e.charAt(0)==kT&&e==zJ?this.disableAnimations(t,!!i):this.delegate.setProperty(t,e,i)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,i,n){return this.delegate.listen(t,e,i,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}};var RL=class extends FT{factory;constructor(t,e,i,n,s){super(e,i,n,s),this.factory=t,this.namespaceId=e}setProperty(t,e,i){e.charAt(0)==kT?e.charAt(1)==`.`&&e==zJ?(i=i===void 0?!0:!!i,this.disableAnimations(t,i)):this.engine.process(this.namespaceId,t,e.slice(1),i):this.delegate.setProperty(t,e,i)}listen(t,e,i,n){if(e.charAt(0)==kT){let s=S5e(t),o=e.slice(1),a=``;return o.charAt(0)!=kT&&([o,a]=w5e(o)),this.engine.listen(this.namespaceId,s,o,a,l=>{let c=l._data||-1;this.factory.scheduleListenerCallback(c,i,l)})}return this.delegate.listen(t,e,i,n)}};function S5e(r){switch(r){case`body`:return document.body;case`document`:return document;case`window`:return window;default:return r}}function w5e(r){let t=r.indexOf(`.`);return[r.substring(0,t),r.slice(t+1)]}var LT=class{delegate;engine;_zone;_currentId=0;_microtaskId=1;_animationCallbacksBuffer=[];_rendererCache=new Map;_cdRecurDepth=0;constructor(t,e,i){this.delegate=t,this.engine=e,this._zone=i,e.onRemovalComplete=(n,s)=>{s?.removeChild(null,n)}}createRenderer(t,e){let n=this.delegate.createRenderer(t,e);if(!t||!e?.data?.animation){let c=this._rendererCache,d=c.get(n);if(!d){let u=()=>c.delete(n);d=new FT(``,n,this.engine,u),c.set(n,d)}return d}let s=e.id,o=e.id+`-`+this._currentId;this._currentId++,this.engine.register(o,t);let a=c=>{Array.isArray(c)?c.forEach(a):this.engine.registerTrigger(s,o,t,c.name,c)};return e.data.animation.forEach(a),new RL(this,o,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){queueMicrotask(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,i){if(t>=0&&te(i));return}let n=this._animationCallbacksBuffer;n.length==0&&queueMicrotask(()=>{this._zone.run(()=>{n.forEach(s=>{let[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),n.push([e,i])}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(t){this.engine.flush(),this.delegate.componentReplaced?.(t)}};var I5e=(()=>{class r extends Jy{constructor(e,i,n){super(e,i,n)}ngOnDestroy(){this.flush()}static ɵfac=function(i){return new(i||r)(yt(St),yt(Vm),yt($m))};static ɵprov=ze({token:r,factory:r.ɵfac})}return r})();function N5e(){return new ET}function D5e(){return new LT(C(O0),C(Jy),C(Nt))}var BJ=[{provide:$m,useFactory:N5e},{provide:Jy,useClass:I5e},{provide:Ql,useFactory:D5e}];[...BJ];var k5e=[{provide:Vm,useFactory:()=>new OT},{provide:g0,useFactory:()=>`BrowserAnimations`},...BJ];function jJ(){return ul(`NgEagerAnimations`),[...k5e]}var HJ={providers:[hR(AZ,gR()),jJ()]};({production:!0}).production;k3(GZ,HJ).catch(r=>console.error(r))}));export default require_main_OPMZFICU(); \ No newline at end of file diff --git a/docs/prerendered-routes.json b/docs/prerendered-routes.json new file mode 100644 index 0000000..3226541 --- /dev/null +++ b/docs/prerendered-routes.json @@ -0,0 +1,3 @@ +{ + "routes": {} +} \ No newline at end of file diff --git a/docs/styles-DSPF6ET2.css b/docs/styles-DSPF6ET2.css new file mode 100644 index 0000000..0ee7187 --- /dev/null +++ b/docs/styles-DSPF6ET2.css @@ -0,0 +1 @@ +html,body,p,ol,ul,li,dl,dt,dd,blockquote,figure,fieldset,legend,textarea,pre,iframe,hr,h1,h2,h3,h4,h5,h6{margin:0;padding:0}h1,h2,h3,h4,h5,h6{font-size:100%;font-weight:400}ul{list-style:none}button,input,select,textarea{margin:0}html{box-sizing:border-box}*,*:before,*:after{box-sizing:inherit}img,video{height:auto;max-width:100%}iframe{border:0}table{border-collapse:collapse;border-spacing:0}td,th{padding:0}td:not([align]),th:not([align]){text-align:left}.danger-color{color:var(--ig-error-500)}.warn-color{color:var(--ig-warn-500)}.success-color{color:var(--ig-success-500)}:root{--ig-size: var(--ig-size-large)}html,body{height:100%;overflow:hidden}*{box-sizing:border-box}body{background:var(--ig-surface-500);color:var(--ig-surface-500-contrast)}.igx-bootstrap-light-theme .card-stats-horizontal__header,.igx-bootstrap-dark-theme .card-stats-horizontal__header{margin-bottom:0!important;align-self:center}.igx-nav-drawer__item>igx-icon+span,.igx-nav-drawer__item--active>igx-icon+span{margin-left:.25rem!important}.igx-fluent-light-theme .igx-nav-drawer__aside--mini .igx-nav-drawer__item,.igx-fluent-light-theme .igx-nav-drawer__aside--mini .igx-nav-drawer__item--active,.igx-fluent-dark-theme .igx-nav-drawer__aside--mini .igx-nav-drawer__item,.igx-fluent-dark-theme .igx-nav-drawer__aside--mini .igx-nav-drawer__item--active,.igx-material-light-theme .igx-nav-drawer__aside--mini .igx-nav-drawer__item,.igx-material-light-theme .igx-nav-drawer__aside--mini .igx-nav-drawer__item--active,.igx-material-dark-theme .igx-nav-drawer__aside--mini .igx-nav-drawer__item,.igx-material-dark-theme .igx-nav-drawer__aside--mini .igx-nav-drawer__item--active,.igx-bootstrap-light-theme .igx-nav-drawer__aside--mini .igx-nav-drawer__item,.igx-bootstrap-light-theme .igx-nav-drawer__aside--mini .igx-nav-drawer__item--active,.igx-bootstrap-dark-theme .igx-nav-drawer__aside--mini .igx-nav-drawer__item,.igx-bootstrap-dark-theme .igx-nav-drawer__aside--mini .igx-nav-drawer__item--active{max-width:100%} diff --git a/docs/theme-bootstrap-dark.css b/docs/theme-bootstrap-dark.css new file mode 100644 index 0000000..5fb15fb --- /dev/null +++ b/docs/theme-bootstrap-dark.css @@ -0,0 +1 @@ +.igx-display-container{display:inherit;flex-flow:inherit;position:relative;width:100%;overflow:hidden;flex-shrink:0}.igx-display-container--inactive{width:100%}.igx-drag{touch-action:none}.igx-drag--select-disabled,.igx-drag__handle{-webkit-user-select:none;user-select:none}.igx-vhelper--vertical,.igx-vhelper--horizontal{display:block;overflow:auto;z-index:10001}.igx-vhelper--vertical{position:absolute;top:0;inset-inline-end:0;width:var(--vhelper-scrollbar-size)}.igx-vhelper--horizontal{width:100%}.igx-vhelper--vertical .igx-vhelper__placeholder-content{width:1px}.igx-vhelper--horizontal .igx-vhelper__placeholder-content{height:1px}[hidden]{display:none!important}[class^=igx-],[class^=igx-] *,[class^=igx-] *:before,[class^=igx-] *:after,[class^=ig-],[class^=ig-] *,[class^=ig-] *:before,[class^=ig-] *:after{box-sizing:border-box}@property --ig-size-small{syntax: " | "; initial-value: 1; inherits: true;}@property --ig-size-medium{syntax: " | "; initial-value: 2; inherits: true;}@property --ig-size-large{syntax: " | "; initial-value: 3; inherits: true;}@property --ig-spacing{syntax: " | "; initial-value: 1; inherits: true;}:root{--ig-spacing-inline-small: var(--ig-spacing-inline, var(--ig-spacing-small));--ig-spacing-inline-medium: var(--ig-spacing-inline, var(--ig-spacing-medium));--ig-spacing-inline-large: var(--ig-spacing-inline, var(--ig-spacing-large));--ig-spacing-block-small: var(--ig-spacing-block, var(--ig-spacing-small));--ig-spacing-block-medium: var(--ig-spacing-block, var(--ig-spacing-medium));--ig-spacing-block-large: var(--ig-spacing-block, var(--ig-spacing-large))}@property --_transition-delay{syntax: "